Skip to content

Complete Routine pipeline go-live: register Routines + pilot validation #307

@schmug

Description

@schmug

Task

Bring the issue→PR→merge Routine pipeline (added in PR #306, #306) to live operation on dmarcheck. Branch protection on main has already been applied manually (requiring the check CI context). What remains: register the two Routines in the Claude cloud, pin the ledger issue, fix the shipped branch-protection script so it matches what was actually applied, and run the five pilot validation scenarios recording results in docs/routine-pipeline.md.

Context

PR #306 deliberately stopped at "merged code"; go-live mutates production settings and Claude-cloud state and was owner-gated. Branch protection was found absent on main and has since been applied (context: check). The shipped script still encodes a hollow ruleset and must be reconciled so future repos onboard correctly.

Motivation

Pointers

Constraints

  • No change to gate logic (scripts/routine-gate/) in this issue — script + ops only.
  • setup-branch-protection.sh keeps audit-only default; only the applied JSON contexts changes.
  • Routine registration is manual (no IaC) — document the exact schedule used.

Acceptance criteria

  • Both Routines registered in claude.ai/code, bound to schmug/dmarcheck, schedules recorded (implementer ~4h, reviewer +1h).
  • setup-branch-protection.sh applies "contexts": ["check"]; audit shows required_status_checks.contexts == ["check"].
  • Ledger issue Routine pipeline ledger #304 pinned.
  • All 5 pilot scenarios executed; actual vs expected recorded in docs/routine-pipeline.md.
  • A real spec-approved test issue produces an auto-merged PR end-to-end.

Out of scope

  • Expanding to other repos (separate issue).
  • Gate parser hardening (separate issue).

Reasoning guidance

Think carefully and step-by-step; this touches production settings and the safety backstop.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions