# Routine catalog
URL: /documentation/reference/routines



{/* GENERATED FILE — do not edit. Source: src/automation/routines/index.ts (BUNDLED_ROUTINES). Regenerate: pnpm exec tsx scripts/docs/site/generate-routine-reference.ts */}

## Bundled routines [#bundled-routines]

| Routine                                      | Name                                 | Autonomy mode | Triggers                                                                           |
| -------------------------------------------- | ------------------------------------ | ------------- | ---------------------------------------------------------------------------------- |
| `routine.finish-my-app`                      | Finish My App                        | `review`      | `manual`                                                                           |
| `routine.project-rescue`                     | Project Rescue                       | `review`      | `manual`                                                                           |
| `routine.understand-repository`              | Understand Repository                | `review`      | `manual`                                                                           |
| `routine.bug-investigation`                  | Bug Investigation                    | `review`      | `manual`                                                                           |
| `routine.pr-review`                          | PR Review                            | `review`      | `manual`                                                                           |
| `routine.placeholder-audit`                  | Placeholder Audit                    | `review`      | `manual`                                                                           |
| `routine.spec-completeness-interview`        | Spec Completeness Interview          | `review`      | `manual`                                                                           |
| `routine.test-impact`                        | Test Impact Analysis                 | `review`      | `manual`                                                                           |
| `routine.adversarial-critique`               | Adversarial Plan Critique            | `review`      | `manual`                                                                           |
| `routine.security-sweep`                     | Security Sweep                       | `review`      | `manual`, `periodic` (config: `{"intervalDays":7,"catchUpPolicy":"skip_to_next"}`) |
| `routine.findings-triage`                    | Findings Triage                      | `suggest`     | `manual`                                                                           |
| `routine.findings-land`                      | Findings Land                        | `review`      | `manual`                                                                           |
| `routine.session-catchup`                    | Session Catchup                      | `suggest`     | `manual`                                                                           |
| `routine.findings-propose`                   | Findings Propose                     | `suggest`     | `manual`                                                                           |
| `routine.backlog-burndown`                   | Backlog Burndown                     | `review`      | `manual`                                                                           |
| `routine.findings-surface`                   | Surface Custom Findings              | `review`      | `manual`                                                                           |
| `routine.release-readiness-gate`             | Release Readiness Gate               | `review`      | `manual`                                                                           |
| `routine.drift-resolve`                      | Drift Resolve                        | `suggest`     | `manual`                                                                           |
| `routine.spec-recheck`                       | Spec Recheck                         | `suggest`     | `index.updated`                                                                    |
| `routine.change-request-verify`              | Change Request Verify                | `suggest`     | *The source does not carry a `triggers` entry for this routine.*                   |
| `routine.adopt-brownfield`                   | Adopt Brownfield                     | `suggest`     | `manual`                                                                           |
| `routine.build-validate-index`               | Build Validate Index                 | `suggest`     | `manual`                                                                           |
| `routine.repair-broken-gate`                 | Repair Broken Gate                   | `suggest`     | `manual`                                                                           |
| `routine.proposal-delivery`                  | Proposal Delivery                    | `suggest`     | `manual`                                                                           |
| `routine.capture-and-continue`               | Capture And Continue                 | `suggest`     | `manual`                                                                           |
| `routine.directional-bulk-resolution`        | Directional Bulk Resolution          | `suggest`     | `manual`                                                                           |
| `routine.lane-orchestrator-briefing`         | Lane Orchestrator Briefing           | `suggest`     | `manual`                                                                           |
| `routine.enumerate-assess-worked-pattern`    | Enumerate & Assess (Worked Pattern)  | `review`      | `manual`                                                                           |
| `routine.enrich-decide-worked-pattern`       | Enrich & Decide (Worked Pattern)     | `review`      | `manual`                                                                           |
| `routine.shared-cause-review-worked-pattern` | Shared-Cause Review (Worked Pattern) | `review`      | `manual`                                                                           |
| `routine.approve-resume-worked-pattern`      | Approve & Resume (Worked Pattern)    | `review`      | `manual`                                                                           |
| `routine.verify-worked-pattern`              | Verify (Worked Pattern)              | `shadow`      | `manual`                                                                           |
| `routine.qa-campaign`                        | QA Campaign                          | `review`      | `manual`                                                                           |
| `routine.qa-tester-run`                      | QA Tester Run                        | `review`      | `manual`                                                                           |
| `routine.qa-repair-loop`                     | QA Repair Loop                       | `review`      | `manual`                                                                           |
| `routine.docs-to-specbook`                   | Docs To Specbook                     | `suggest`     | `manual`                                                                           |

### `routine.finish-my-app` — Finish My App [#routinefinish-my-app--finish-my-app]

Full lifecycle from understanding the project to verifying the implementation. Finds gaps, creates work items, computes change impact, and evaluates readiness.

**Actions, in declared order:** Initialize Project (`initialize_project`) → Get Spec Context (`get_spec_context`) → Initial Verification (`verify_implementation`) → Create Work Item (`create_or_update_work_item`) → Get Next Work Item (remote-only — no-op without a configured remote) (`get_next_work_item`) → Compute Change Impact (`compute_change_impact`) → Verify Progress (`verify_implementation`) → Evaluate Readiness (`evaluate_readiness`)

|               |          |
| ------------- | -------- |
| Autonomy mode | `review` |
| Triggers      | `manual` |

### `routine.project-rescue` — Project Rescue [#routineproject-rescue--project-rescue]

Analyze a broken or abandoned project, identify findings, remediate issues, create checkpoints, and verify the rescue is complete.

**Actions, in declared order:** Initialize Project (`initialize_project`) → Query Code Graph (`query_code_graph`) → Verify Implementation (`verify_implementation`) → Retrieve Finding Detail (`retrieve_finding_detail`) → Remediate Finding (`remediate_finding`) → Create Checkpoint (`create_checkpoint`) → Evaluate Readiness (`evaluate_readiness`)

|               |          |
| ------------- | -------- |
| Autonomy mode | `review` |
| Triggers      | `manual` |

### `routine.understand-repository` — Understand Repository [#routineunderstand-repository--understand-repository]

Quickly understand a repository by initializing the project context, querying the code graph, and retrieving spec context.

**Actions, in declared order:** Initialize Project (`initialize_project`) → Query Code Graph (`query_code_graph`) → Get Spec Context (`get_spec_context`)

|               |          |
| ------------- | -------- |
| Autonomy mode | `review` |
| Triggers      | `manual` |

### `routine.bug-investigation` — Bug Investigation [#routinebug-investigation--bug-investigation]

Investigate a bug by verifying the implementation, retrieving finding details, computing the change impact, and creating a work item to track the fix.

**Actions, in declared order:** Verify Implementation (`verify_implementation`) → Retrieve Finding Detail (`retrieve_finding_detail`) → Compute Change Impact (`compute_change_impact`) → Create Work Item (`create_or_update_work_item`)

|               |          |
| ------------- | -------- |
| Autonomy mode | `review` |
| Triggers      | `manual` |

### `routine.pr-review` — PR Review [#routinepr-review--pr-review]

Review a pull request with the nine-panel review engine: scope drift, spec criteria touched, blast radius, guard crossings, taint, unresolved sites, spec/code drift, test impact and detector findings.

**Actions, in declared order:** Review Pull Request (`review_pull_request`)

|               |          |
| ------------- | -------- |
| Autonomy mode | `review` |
| Triggers      | `manual` |

### `routine.placeholder-audit` — Placeholder Audit [#routineplaceholder-audit--placeholder-audit]

Audit a codebase for placeholder patterns (TODOs, FIXMEs, stubs). Verifies implementation quality, retrieves finding details, and creates work items to track remediation.

**Actions, in declared order:** Verify Implementation (`verify_implementation`) → Retrieve Finding Detail (`retrieve_finding_detail`) → Create Work Item (`create_or_update_work_item`)

|               |          |
| ------------- | -------- |
| Autonomy mode | `review` |
| Triggers      | `manual` |

### `routine.spec-completeness-interview` — Spec Completeness Interview [#routinespec-completeness-interview--spec-completeness-interview]

Interview-style analysis to assess spec completeness. Gets spec context, analyzes specification completeness, asks clarifying questions, and creates work items for missing or incomplete requirements.

**Actions, in declared order:** Get Spec Context (`get_spec_context`) → Analyze Specification Completeness (`analyze_specification_completeness`) → Ask Question (`ask_question`) → Create Work Item (`create_or_update_work_item`)

|               |          |
| ------------- | -------- |
| Autonomy mode | `review` |
| Triggers      | `manual` |

### `routine.test-impact` — Test Impact Analysis [#routinetest-impact--test-impact-analysis]

Analyze the impact of changes on tests by computing change impact, verifying the implementation, and creating work items to track test updates.

**Actions, in declared order:** Compute Change Impact (`compute_change_impact`) → Verify Implementation (`verify_implementation`) → Create Work Item (`create_or_update_work_item`)

|               |          |
| ------------- | -------- |
| Autonomy mode | `review` |
| Triggers      | `manual` |

### `routine.adversarial-critique` — Adversarial Plan Critique [#routineadversarial-critique--adversarial-plan-critique]

Adversarial critique of a proposed plan — the routine-engine step whose only job is to refute the plan. Runs deterministic static analysis against the plan and returns a typed AdversarialCritiqueResult with a closed verdict enum (clean, conditional, or refuted) and a sorted list of risks. This is the direct countermeasure to confident wrong answers that read as clean (CRITIQUE-01).

**Actions, in declared order:** Adversarial Critique (`adversarial_critique`)

|               |          |
| ------------- | -------- |
| Autonomy mode | `review` |
| Triggers      | `manual` |

### `routine.security-sweep` — Security Sweep [#routinesecurity-sweep--security-sweep]

Run the native taint-based security detectors and compiler-backed semantic detectors over the project. The periodic trigger surfaces a due reminder every 7 days — it never auto-runs the scan; starting it always remains an explicit action. Findings from a run are triaged in the Security lane / via capture\_finding, not by this routine.

**Actions, in declared order:** Run Native Security Analysis (`run_native_security_analysis`)

|               |                                                                                    |
| ------------- | ---------------------------------------------------------------------------------- |
| Autonomy mode | `review`                                                                           |
| Triggers      | `manual`, `periodic` (config: `{"intervalDays":7,"catchUpPolicy":"skip_to_next"}`) |

### `routine.findings-triage` — Findings Triage [#routinefindings-triage--findings-triage]

Narrow a large finding set to the few that matter for the current change. Inspects project status, retrieves detail on individual findings, and creates or updates a work item for the findings worth acting on now.

**Actions, in declared order:** Inspect Project Status (`inspect_project_status`) → Retrieve Finding Detail (`retrieve_finding_detail`) → Create Work Item (`create_or_update_work_item`)

|               |           |
| ------------- | --------- |
| Autonomy mode | `suggest` |
| Triggers      | `manual`  |

### `routine.findings-land` — Findings Land [#routinefindings-land--findings-land]

After a human has approved a change set, land the work: request approval, checkpoint the working tree, commit, push the branch, and merge the candidate. The only bundled routine that reaches the working tree, so it is deliberately conservative and stays gated at review autonomy.

**Actions, in declared order:** Request Approval (`request_approval`) → Create Checkpoint (`create_checkpoint`) → Create Commit (`create_commit`) → Push Branch (`push_branch`) → Merge Candidate (`merge_candidate`) → Apply Change Set (`manage_change_set`)

|               |          |
| ------------- | -------- |
| Autonomy mode | `review` |
| Triggers      | `manual` |

### `routine.session-catchup` — Session Catchup [#routinesession-catchup--session-catchup]

On returning to a project, report what changed while you were away and open work for anything that drifted. Builds the code index, compares the git range since the last visit, inspects current project status, and creates or updates a work item for anything worth following up on. Deliberately short and read-only.

**Actions, in declared order:** Build Code Index (`build_code_index`) → Compare Git Range (`compare_git_range`) → Inspect Project Status (`inspect_project_status`) → Create Work Item (`create_or_update_work_item`)

|               |           |
| ------------- | --------- |
| Autonomy mode | `suggest` |
| Triggers      | `manual`  |

### `routine.findings-propose` — Findings Propose [#routinefindings-propose--findings-propose]

Assemble triaged/clustered findings into one reviewable change set a human can approve or deny in a single decision, then stop. Gets the next work item, assembles or advances a change set for it, and requests approval. Deliberately stops at a proposal — the change set reaches `proposed` and a human decides; it never lands anything. `routine.findings-land` is the separate, review-gated routine that actually lands approved work.

**Actions, in declared order:** Get Next Work Item (`get_next_work_item`) → Manage Change Set (`manage_change_set`) → Request Approval (`request_approval`)

|               |           |
| ------------- | --------- |
| Autonomy mode | `suggest` |
| Triggers      | `manual`  |

### `routine.backlog-burndown` — Backlog Burndown [#routinebacklog-burndown--backlog-burndown]

Work a batch of findings across multiple sessions rather than finishing in one turn. Gets the next work item, produces a remediation plan for it (never applies it), verifies the current implementation, then pauses so the run can resume in a later session. No daemon, no cron — the pause step is the mechanism.

**Actions, in declared order:** Get Next Work Item (`get_next_work_item`) → Remediate Finding (`remediate_finding`) → Verify Implementation (`verify_implementation`) → Pause Until Next Session (`pause_until_next_session`)

|               |          |
| ------------- | -------- |
| Autonomy mode | `review` |
| Triggers      | `manual` |

### `routine.findings-surface` — Surface Custom Findings [#routinefindings-surface--surface-custom-findings]

Run a custom, versioned-grammar graph query (unresolved reference sites the built-in detectors do not report on their own), author what it surfaces as a first-class finding, confirm it is retrievable, and file a work item to track it. The worked example for using the code graph as a customization substrate.

**Actions, in declared order:** Query Unresolved Reference Sites (`query_code_graph`) → Author a Finding From the Custom Query (`author_finding`) → Confirm the Finding Is Retrievable (`retrieve_finding_detail`) → Track the Custom Finding (`create_or_update_work_item`)

|               |          |
| ------------- | -------- |
| Autonomy mode | `review` |
| Triggers      | `manual` |

### `routine.release-readiness-gate` — Release Readiness Gate [#routinerelease-readiness-gate--release-readiness-gate]

Automate a sign-off process: verify the implementation, checkpoint the current state, ask a clarifying question, get explicit human approval, then confirm overall readiness. The worked example for a multi-step routine with human gates — never lands anything itself.

**Actions, in declared order:** Verify Implementation (`verify_implementation`) → Checkpoint Current State (`create_checkpoint`) → Ask: Ready to Ship? (`ask_question`) → Request Sign-Off (`request_approval`) → Confirm Readiness (`evaluate_readiness`)

|               |          |
| ------------- | -------- |
| Autonomy mode | `review` |
| Triggers      | `manual` |

### `routine.drift-resolve` — Drift Resolve [#routinedrift-resolve--drift-resolve]

Resolve detected spec-vs-code drift by delivering the fix vehicle a human decides on: detect drift over a scope (the spec-drift pass), group it, ask the person to confirm the direction (fix-code or update-intent) BEFORE any write, then deliver — a change set at `proposed` (fix-code, the object `routine.findings-land` lands) or a Change Request submitted for review (update-intent). Stops at the proposal; never touches the working tree.

**Actions, in declared order:** Detect Drift (spec-drift pass) (`verify_implementation`) → Confirm Resolution Direction (`ask_question`) → Assemble Drift Fix Change Set (`manage_change_set`) → Propose Drift Fix Change Set (`manage_change_set`) → Open Intent Change Request (`create_change_proposal`) → Submit Intent Change Request for Review (`request_change_approval`)

|               |           |
| ------------- | --------- |
| Autonomy mode | `suggest` |
| Triggers      | `manual`  |

### `routine.spec-recheck` — Spec Recheck [#routinespec-recheck--spec-recheck]

The index moved; re-evaluate the suspect obligations. Runs the 9.332 spec pass (verify\_implementation's detector scan) over the scope so every obligation is re-measured against the current index, and delivers the refreshed findings — drift, unconfirmed links, stale evidence — into the ONE review inbox where they are decided. Never touches the working tree.

**Actions, in declared order:** Re-evaluate Suspect Obligations (spec pass) (`verify_implementation`)

|               |                 |
| ------------- | --------------- |
| Autonomy mode | `suggest`       |
| Triggers      | `index.updated` |

### `routine.change-request-verify` — Change Request Verify [#routinechange-request-verify--change-request-verify]

The work a Change Request proposed is completed; close it with proofs. Runs the 9.332 spec pass to re-measure the affected obligations and refresh their proofs, then attempts the VERIFIED close (`close_change_request`) — a human-gated step whose closure gate refuses with `unverified_change` naming each unmet obligation unless every live obligation carries a satisfied proof. The refusal is the routine's honest "what is still missing" output, never an error.

**Actions, in declared order:** Re-measure Affected Obligations (spec pass) (`verify_implementation`) → Close Change Request with Proofs (`close_change_request`)

|               |                                                                  |
| ------------- | ---------------------------------------------------------------- |
| Autonomy mode | `suggest`                                                        |
| Triggers      | *The source does not carry a `triggers` entry for this routine.* |

### `routine.adopt-brownfield` — Adopt Brownfield [#routineadopt-brownfield--adopt-brownfield]

Adopt an EXISTING repository: index what is actually there, draft the intent the index supports (generate\_local\_specbook — local, confirm-gated), ask the ranked questions the draft raises (the human gate), and leave the drafted sections in the ONE review inbox as specbook\_chunk proposals for batch approval. Computable without a model key; never touches the working tree.

**Actions, in declared order:** Index the Repository (`verify_implementation`) → Draft Intent from the Index (`generate_local_specbook`) → Answer the Draft's Ranked Questions (`ask_question`)

|               |           |
| ------------- | --------- |
| Autonomy mode | `suggest` |
| Triggers      | `manual`  |

### `routine.build-validate-index` — Build Validate Index [#routinebuild-validate-index--build-validate-index]

Establish a trustworthy code index and report its readiness, with nothing else bundled: initialize the project, build the code index, and evaluate readiness. Free and deterministic end to end — the only durable effect is the local index itself, never the working tree.

**Actions, in declared order:** Initialize Project (`initialize_project`) → Build Code Index (`build_code_index`) → Evaluate Readiness (`evaluate_readiness`)

|               |           |
| ------------- | --------- |
| Autonomy mode | `suggest` |
| Triggers      | `manual`  |

### `routine.repair-broken-gate` — Repair Broken Gate [#routinerepair-broken-gate--repair-broken-gate]

Take a broken-gate finding (a gate that reports green while verifying nothing — D-132) from suspicion to an owned work item: retrieve the finding's detail, re-run the verification pass so the gate's CURRENT state is measured, and open the delete-or-fix work item a human decides on. Never touches the working tree.

**Actions, in declared order:** Retrieve Finding Detail (`retrieve_finding_detail`) → Re-run the Gate (verification pass) (`verify_implementation`) → Open Delete-or-Fix Work Item (`create_or_update_work_item`)

|               |           |
| ------------- | --------- |
| Autonomy mode | `suggest` |
| Triggers      | `manual`  |

### `routine.proposal-delivery` — Proposal Delivery [#routineproposal-delivery--proposal-delivery]

Deliver the next work item's assembled change set as a proposal in the ONE review inbox: get the next work item, assemble its change set, and record the delivery as a durable proposal row (manage\_proposal) the inbox lists and a human decides on. Stops at the delivery — the change set stays in `draft` and nothing is landed; `routine.findings-land` is the routine that lands approved work.

**Actions, in declared order:** Get Next Work Item (`get_next_work_item`) → Assemble Work Item Change Set (`manage_change_set`) → Record Delivery Proposal (`manage_proposal`)

|               |           |
| ------------- | --------- |
| Autonomy mode | `suggest` |
| Triggers      | `manual`  |

### `routine.capture-and-continue` — Capture And Continue [#routinecapture-and-continue--capture-and-continue]

The mid-work capture loop: capture an observation so it is not lost, then promote it into a proposal in the ONE review inbox (the 9.402 relationship promotion — the proposal evidence-links the capture, the capture row stays queryable) and continue the work. Never blocking, never deleting; the promotion is decided in the inbox like every proposal.

**Actions, in declared order:** Capture Observation (`capture_observation`) → Promote Capture to Proposal (`triage_capture`)

|               |           |
| ------------- | --------- |
| Autonomy mode | `suggest` |
| Triggers      | `manual`  |

### `routine.directional-bulk-resolution` — Directional Bulk Resolution [#routinedirectional-bulk-resolution--directional-bulk-resolution]

One decision, N Change Requests: detect the drift group (the spec-drift pass), ask the human to confirm the directional resolution ("the code is right — update the spec") BEFORE any write, then fan out one Change Request per drift finding — each titled from its finding, sharing the confirmed direction, each reviewable on its own. Stops at the created requests; never touches the working tree.

**Actions, in declared order:** Detect Drift Group (spec-drift pass) (`verify_implementation`) → Confirm Directional Resolution (`ask_question`) → Open One Change Request per Drift Finding (`create_change_proposal`)

|               |           |
| ------------- | --------- |
| Autonomy mode | `suggest` |
| Triggers      | `manual`  |

### `routine.lane-orchestrator-briefing` — Lane Orchestrator Briefing [#routinelane-orchestrator-briefing--lane-orchestrator-briefing]

The orchestrator's loop: dispatch work into a conversation lane (start\_run), wait a bounded window for the run to reach a state (await\_run), then compose the orchestrator's briefing (compose\_briefing, human audience) from the run's own records. The dispatch parks at its confirm gate first — dispatching provider work is cost-bearing and user-visible, and never happens without a real approval.

**Actions, in declared order:** Dispatch Work into Lane (`start_run`) → Await Run State (`await_run`) → Compose Orchestrator Briefing (`compose_briefing`)

|               |           |
| ------------- | --------- |
| Autonomy mode | `suggest` |
| Triggers      | `manual`  |

### `routine.enumerate-assess-worked-pattern` — Enumerate & Assess (Worked Pattern) [#routineenumerate-assess-worked-pattern--enumerate--assess-worked-pattern]

Task 10.4c worked pattern 1 of 5: enumerate a real population of spec obligations, page through it with a paginated traversal, assess each one as a first-class finding, and end with an honest coverage reconciliation. No hardcoded subject ids anywhere — the population is whatever step-enumerate actually finds.

**Actions, in declared order:** Enumerate the Real Population (`get_spec_context`) → Assess Each Subject (`author_finding`) → Track the Run (`create_or_update_work_item`)

|               |          |
| ------------- | -------- |
| Autonomy mode | `review` |
| Triggers      | `manual` |

### `routine.enrich-decide-worked-pattern` — Enrich & Decide (Worked Pattern) [#routineenrich-decide-worked-pattern--enrich--decide-worked-pattern]

Task 10.4c worked pattern 2 of 5: for each subject in a real population, enrich it (draft a spec\_delta work item capturing its requirement text) and then decide on it (confirm the draft) — a same-subject two-step chain with no caller-supplied ids anywhere; each id flows forward through real step-output bindings.

**Actions, in declared order:** Enumerate the Real Population (`get_spec_context`) → Enrich: Draft One spec\_delta Per Subject (`create_or_update_work_item`) → Decide: Confirm Each Draft (`confirm_work_item`)

|               |          |
| ------------- | -------- |
| Autonomy mode | `review` |
| Triggers      | `manual` |

### `routine.shared-cause-review-worked-pattern` — Shared-Cause Review (Worked Pattern) [#routineshared-cause-review-worked-pattern--shared-cause-review-worked-pattern]

Task 10.4c worked pattern 3 of 5: group live findings by shared cause (category, respecting the canonical groupability registry) and review each SHARED CAUSE as one decision instead of one decision per finding — PopulationTraversalV1's "concern" mode, dispatching hide\_finding\_group once per concern.

**Actions, in declared order:** Group Live Findings by Shared Cause (`group_findings_by_concern`) → Review Each Shared Cause (`hide_finding_group`)

|               |          |
| ------------- | -------- |
| Autonomy mode | `review` |
| Triggers      | `manual` |

### `routine.approve-resume-worked-pattern` — Approve & Resume (Worked Pattern) [#routineapprove-resume-worked-pattern--approve--resume-worked-pattern]

Task 10.4c worked pattern 4 of 5: page through a real population, requiring one human approval per page (manage\_change\_set is confirm-gated). A page attempted without approval genuinely pauses the run at waiting\_for\_human, mid-traversal — and resumes from the real stored cursor, never a caller's claim, once approval is granted, even across a session boundary.

**Actions, in declared order:** Enumerate the Real Population (`get_spec_context`) → Approve & Decide, One Page At A Time (`manage_change_set`)

|               |          |
| ------------- | -------- |
| Autonomy mode | `review` |
| Triggers      | `manual` |

### `routine.verify-worked-pattern` — Verify (Worked Pattern) [#routineverify-worked-pattern--verify-worked-pattern]

Task 10.4c worked pattern 5 of 5: a read-only re-check over a real population, producing a stable, idempotent coverage report. No writes, no approvals — the same routine run twice against an unchanged population produces byte-identical traversal and reconciliation output.

**Actions, in declared order:** Enumerate the Real Population (`get_spec_context`) → Verify Each Subject, Read-Only (`retrieve_finding_detail`)

|               |          |
| ------------- | -------- |
| Autonomy mode | `shadow` |
| Triggers      | `manual` |

### `routine.qa-campaign` — QA Campaign [#routineqa-campaign--qa-campaign]

Plan a QA campaign from the journey graph, run persona testers against the declared qa-target, cluster what they observed, reproduce each candidate with fresh testers before it becomes a finding, and send each reproduced blocking finding through a bounded repair loop. Approve the budget and the billed account before anything runs.

**Actions, in declared order:** Plan the campaign (`plan_campaign`) → Approve the budget and the billed account (`request_approval`) → Run the testers (`run_tester`) → Cluster what the testers observed (`campaign_collect`) → Plan the independent replay of each candidate (`reproduce_candidate`) → List the replays to run (`campaign_collect`) → Replay each candidate with fresh testers (`run_tester`) → Join each candidate with its replays (`campaign_collect`) → Conclude: reproduced, flaky or environmental (`reproduce_candidate`) → Pick the blocking findings (`campaign_collect`) → Open a work item for each blocking finding (`create_or_update_work_item`) → Pair each blocking finding with its work item (`campaign_collect`) → Repair each blocking finding (one at a time) (`routine.run`) → Readiness verdict (`evaluate_readiness`)

|               |          |
| ------------- | -------- |
| Autonomy mode | `review` |
| Triggers      | `manual` |

### `routine.qa-tester-run` — QA Tester Run [#routineqa-tester-run--qa-tester-run]

Run one QA tester (a persona walking one journey) against the declared qa-target with the enforced-boundary driver. Observations become captures, never findings; the outcome and the behavioural telemetry are derived from what the tester did, not from what it says.

**Actions, in declared order:** Run the tester (`run_tester`)

|               |          |
| ------------- | -------- |
| Autonomy mode | `review` |
| Triggers      | `manual` |

### `routine.qa-repair-loop` — QA Repair Loop [#routineqa-repair-loop--qa-repair-loop]

Repair one reproduced QA finding with a bounded loop: dispatch the repair to the host, verify the implementation, replay the original tester steps with a fresh tester, and stop when the replay no longer shows the finding (at most 3 iterations; reaching the limit is not a pass).

**Actions, in declared order:** Dispatch the repair to the host lane (`start_run`) → Wait for the repair run (`await_run`) → Verify the implementation (`verify_implementation`) → Replay the original steps with a fresh tester (`run_tester`) → Does the replay still show the finding? (`evaluate_candidate`)

|               |          |
| ------------- | -------- |
| Autonomy mode | `review` |
| Triggers      | `manual` |

### `routine.docs-to-specbook` — Docs To Specbook [#routinedocs-to-specbook--docs-to-specbook]

Turn an imported pile of documents in the Library into a reviewable specbook: deterministic candidate extraction (requirements, capabilities, endpoints, data models, workflow steps), the canonical intent pages, one pending proposal per surviving candidate with a verbatim citation, and one decision question per contradiction. No model, no network; nothing is approved — a person decides the proposals.

**Actions, in declared order:** Extract Spec Candidates (`extract_spec_candidates`) → Seed Canonical Intent Pages (`seed_intent_pages`) → Propose Surviving Candidates (`propose_spec_candidates`) → Raise Contradiction And Open Questions (`raise_spec_contradiction_questions`)

|               |           |
| ------------- | --------- |
| Autonomy mode | `suggest` |
| Triggers      | `manual`  |
