Files
Holocron/docs/adr/0031-first-party-delivery-team-replaces-mattpocock-chain.md

3.2 KiB

First-party delivery team replaces mattpocock's delivery chain

We will replace mattpocock's delivery chain (to-spec, to-tickets, triage, implement, implement-spec, code-review, tdd) with a first-party team package. Upstream's stages are skills, not agents, and most are hand-invoked, so no agent can chain them; forking would keep that shape. Delivery runs as one fresh session per Stage (spec → tickets → implement → review → verify), each started as its Stage lead agent, whose body is the stage flow and which loads skills for the know-how. There is no lead spanning stages: work passes only through tracker issues, blocking links, branches and PRs, each stage ending with a Handoff comment, and Gates (spec approved, PR approved) are human-set tracker state. mattpocock's thinking tools (wayfinder, grilling, research, …) stay as a dependency. Decided in holocron#170.

Considered Options

  • One LLM lead across all stages, dispatching leaf role agents (the first resolution of #170): rejected — the orchestrator becomes a long-running context, and a lead in front of single-role stages only adds a lossy hand-off. Practice puts the orchestrator in the main session.
  • A lead skill plus a thin agent wrapper: rejected once v1 targeted Claude Code and Copilot CLI, which both start a main session as a custom agent that can dispatch subagents.
  • A custom driver script chaining stages: rejected — sequencing will come from Gitea Actions on gate events (run mode, later); v1 is step mode, the human launching each stage.

Consequences

  • We own the chain's maintenance from now on; upstream improvements arrive only by deliberate porting.
  • Only the implement stage has a team: test author → implementer (tests read-only) → QA, sequential. After the first push the implement-stage lead opens a draft PR (Gitea WIP: title prefix, which blocks merge) and QA judges that PR's CI checks; when QA passes, the lead removes WIP:, and that hand-off starts the review stage. Most repos run CI on PRs, not branch pushes, so the draft PR keeps QA before review without changing any consuming repo's workflows.
  • The test author always writes Acceptance checks: failing tests where a test applies, otherwise post-merge assertions with a stated reason, which the operator verifies and the reviewer judges.
  • Agents never duplicate deterministic checks: pre-commit hooks gate commits, CI (on the PR) runs tests, lint, Molecule and plan/diff output; QA, reviewer and operator add only judgement.
  • Amended 2026-11-22 (holocron#173): QA ran on the pushed branch before the PR opened, and CI was required on branch push as well as PR; both moved to the draft PR, and acceptance checks were added.
  • Claude Code is the tested target; Copilot CLI is written to its documented behaviour but untested until an account exists; other runtimes are best effort.
  • Amended 2026-11-22 (holocron#173): Copilot CLI was a tested target; with no account to test on, it is supported from its documentation only.
  • Infra applies happen by merge (GitOps for Flux, Ansible and OpenTofu alike), so the PR gate is the apply gate; the operator verifies and opens revert PRs, never reverting on its own.