Autonomous Implementation Pipeline — as-built specification
Split from a single file by #2094 so every part is within the 100,000-byte documentation size budget (docs/README.md “Size budget”).
- Acceptance checks
- Acceptance checks — continued (part 2 of 10; items 2m–2k)
- Acceptance checks — continued (part 3 of 10; items 7g–25c)
- Acceptance checks — continued (part 4 of 10; items 39a–8s)
- Acceptance checks — continued (part 5 of 10; items 8t–50)
- Acceptance checks — continued (part 6 of 10; items 51–52d)
- Acceptance checks — continued (part 7 of 10; items 1h–2s, 79)
- Acceptance checks — continued (part 8 of 10; items 11e–11e)
- Acceptance checks — continued (part 9 of 10; items 8q–11d)
- Acceptance checks — continued (part 10 of 10; items 2j-i–34p)
- Components
- Components — continued (part 2 of 3; 12b–17d)
- Components — continued (part 3 of 3; 17e–24f)
- Configuration
- Cost profile
- Design decisions
- Environment (verified 2026-07-20)
- Gotchas
- The Landing Gate
- The Approver
- The Approver — requirements, continued (part 2 of 2; 51–55: Fleet-level invariants (the pager)…)
- The Co-Ordinator (selection only)
- The Co-Ordinator — requirements, continued (part 2 of 3; 18a–20: Fresh evidence on a blocked issue makes requirement 18’s r…)
- The Co-Ordinator — requirements, continued (part 3 of 3; 17g–18: The reservation-release retry sweep…)
- The Enabler
- The Enabler — requirements, continued (part 2 of 2; 36f–38g: The delegate mandate (D18, PR #1389, recommendation 3 of…)
- Every stage (untrusted external content)
- The Implementer
- Logging and state
- Logging and state — requirements, continued (part 2 of 2; 34i–34p: A block whose work is gone is cleared without asking anyone…)
- The Refiner
- The Reviewer
- The Script (
agent-cycle.sh) - The Script — requirements, continued (part 2 of 13; 2–2.3: Stand-down checks…)
- The Script — requirements, continued (part 3 of 13; 2.3a–2.4: The fleet switch…)
- The Script — requirements, continued (part 4 of 13; 2.5–2.5: The fleet’s shared memory…)
- The Script — requirements, continued (part 5 of 13; 2.5a–3a: Compose reconciliation…)
- The Script — requirements, continued (part 6 of 13; 3c–3v: Review-feedback pre-fetch (requirement 3c)…)
- The Script — requirements, continued (part 7 of 13; 3w–4m: Verdict quality is a rate, and every verdict pays for its …)
- The Script — requirements, continued (part 8 of 13; 4i–8c: The assembled Co-Ordinator prompt is bounded by its model’…)
- The Script — requirements, continued (part 9 of 13; 8e–62: The classifier-escape audit re-checks the outcome, not just the decision…)
- The Script — requirements, continued (part 10 of 13; 9–17d: Failure handling and execution control…)
- The Script — requirements, continued (part 11 of 13; 54–59: Wake-poll, Liveness, Readiness, and Health…)
- The Script — requirements, continued (part 12 of 13; 60–69: The CLI surface:
scripts/node-health.sh…) - The Script — requirements, continued (part 13 of 13; 8d–8d: The arming step (D18 WI-7, same design §5.1/§6/§7; agent-ops#410)…)
About this document
Section titled “About this document”This is the as-built requirements specification for the implementation
pipeline: the numbered requirements the system satisfies, the components that
satisfy them, the acceptance checks that prove it, and the reasoning behind
them. It describes the system as it exists, and it must keep doing so — any
change to the pipeline lands together with the edit that keeps this document
accurate (see AGENTS.md, “As-built specifications”). Where this document is
silent, follow the conventions of the two target repositories (their
AGENTS.md files — or CLAUDE.md, for a repository that has not migrated —
are binding on any agent working inside them).
Requirement ids may recur across ### sections — e.g., “requirement 39c
(The Refiner)” and “requirement 39c (Finish-then-continue)” name two
different requirements — and, for the two legacy ids 17b and 17g, even
within the single section that defines both of each pair (“The Co-Ordinator
(selection only)”). A citation of an id defined in more than one place is
qualified with its owning section unless the surrounding clause already
names the owner (e.g., “the Refiner’s (requirement 39)”); a citation of an
id defined in exactly one place may be left bare.
What it is
Section titled “What it is”A pipeline that, on a configured cadence
(schedule.cycle_interval_minutes), picks at most one well-scoped item
of pending work from the configured GitHub repositories, implements it on a
feature branch in an ephemeral clone, reviews and corrects the result, and
leaves a mergeable pull request for approval and landing at the repository’s
configured merge_autonomy level (see “## The Landing Gate”). It runs
unattended on a containerized node; human involvement narrows to
whatever that level still requires.
cron (schedule.cycle_interval_minutes) └─ agent-cycle.sh ← the Script: lock, stand-down checks, repo ordering ├─ Co-Ordinator (Haiku) ← selects ≤ 1 item, emits a work order; nothing else ├─ Implementer (Sonnet/Haiku)← ephemeral clone, feature branch, draft PR ├─ Reviewer (Sonnet/Opus) ← corrects the branch, flips the PR to ready │ └─ Human Reviewer ← approves/merges per `merge_autonomy` (D18) ├─ Enabler (Opus, rarely) ← re-examines long-blocked items at the end of a │ cycle: unblocks, voids, or raises an issue │ assigned to the Human saying what to do └─ Refiner (Haiku) ← same end of the cycle: writes the specification an unscoped item lacks, before it has to be blocked and wait for the EnablerActors
Section titled “Actors”- The Cronjob — the crontab entry that fires the Script.
- The Script (
agent-cycle.sh) — a bash script that orchestrates one whole cycle. It launches every agent; agents never launch other agents. - The Co-Ordinator — a headless Claude Code invocation that selects one item of work and emits a work order. It does not implement anything.
- The Implementer — a headless Claude Code invocation that carries out the work order and raises a draft pull request.
- The Reviewer — a headless Claude Code invocation that checks and
corrects the Implementer’s branch, then marks the pull request ready.
5a. The Approver — a headless Claude Code invocation, engaged only where
merge_autonomyis abovehuman(D18, “## The Landing Gate”), that independently judges a pull request the Reviewer has already marked ready and returns a verdict. It writes no code and pushes nothing; the Script turns its verdict into a real GitHub review —APPROVEorREQUEST_CHANGES— posted under a non-author GitHub App identity (“Pullwright Approver”), never under this system’s own authoring account. - The Human Reviewer — gives final approval (at
human) or an additional one alongside the Approver’s own (abovehuman), through the ordinary GitHub process. Merges the pull request directly athumanandagent-approves; atagent-merges-routineandagent-merges-all, the arming step lands an eligible pull request itself (D18, “## The Landing Gate”), and the Human Reviewer’s own role narrows to whatever that classifier did not cover. Not launched by any part of this system. - The Enabler — a headless Claude Code invocation, engaged rarely and at
the end of a cycle, that re-examines items recorded as blocked which the
pipeline has not cleared by itself. It unblocks, voids, or leaves them
blocked with a fresher condition; where an item was never specified well
enough to select, it specifies it (requirement 36b); and where an item
cannot be moved without escalating, it composes a GitHub issue that the
Script files, assigned to a human — directly, or after one bounded pass
per
escalation_autonomy: an adjudication, for a refinement-disagreement item only (requirement 36b), or, atdecide-tactical, a decide pass over any escalation, which may settle it or decide a tactical question on the pipeline’s own authority instead of paging a human at all (requirement 36d). It writes no code and raises no pull request. - The Refiner — a headless Claude Code invocation, engaged from the same
end-of-cycle cleanup as the Enabler and immediately after it, that writes
the specification an under-specified item lacks before the item has to be
blocked and wait for the Enabler to reach it (requirement 39 (The
Refiner)). Every item it takes ends
refined— the specification posted as a comment on the item’s own issue, or returned asrefined_specwhere the source has no thread to write into — orneeds-refinement, where only a human can supply what is missing (requirements 39c (The Refiner) and 39d). It also bands every open issue whosePriorityis unset, a one-way ratchet the Script alone enforces (requirement 39g). Its powers are otherwise deliberately narrower than the Enabler’s: it writes no code, raises no pull request, and can neither escalate nor void.
Two further Actors belong to the sibling pipelines rather than to this one,
and are named here because lib/pipeline-marker.sh’s pipeline_actor_label
and dashboard/index.html’s ACTOR map carry every Actor token this system
has, whichever pipeline runs it (requirement 9d):
- The Project Reviewer (token
project-reviewer) — the repository-review pipeline’s single agent. Specified atdocs/spec/review/README.md, Actors, where that document calls it the Reviewer-Agent. - The Pipeline Monitor (token
monitor) — the Monitor pipeline’s single agent: a scheduled reading of this pipeline’s own recorded state, whose mechanical findings are filed aspw::type:tech-debtissues that this pipeline’s owntech-debtwork source then selects (requirement 16). Specified atdocs/spec/monitor.md, Actors. It never runs as a stage ofagent-cycle.shand writes no label this pipeline’s Co-Ordinator keys on.