Files
Holocron/docs/adr/0031-first-party-delivery-team-replaces-mattpocock-chain.md
T
Defame1297 7661d14b43 feat(plan)!: move codebase-design into plan and amend ADR-0031
Why: codebase-design is the deep-module vocabulary that planning relies on
when it shapes a spec or ticket breakdown, so it belongs beside the other
planning skills. ADR-0031 still said the thinking tools live in mattpocock,
which this PR makes untrue.

Implementation notes:
- The codebase-design v1.3.2 pin moves from plugins/mattpocock to plugins/plan.
  mattpocock's tdd and improve-codebase-architecture now reach it through plan.
- mattpocock's description says "architecture review" instead of "codebase
  design"; marketplace.json is regenerated to match.
- ADR-0031 gets a dated amendment listing what moved to plan, why
  setup-matt-pocock-skills is pinned in both packages, and why delivery
  does not need to depend on plan.

BREAKING CHANGE: mattpocock no longer ships codebase-design; install plan
for it.
Refs: #246
ADR: 0031
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
2026-11-28 23:15:23 +00:00

3.8 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.
  • Amended 2026-11-28 (holocron#246): the thinking tools no longer live in mattpocock. wayfinder, grilling, grill-me, grill-with-docs, domain-modeling, research, prototype, codebase-design, triage, to-spec and to-tickets are now pinned in plan, and bin's research-docs moved there too. setup-matt-pocock-skills is pinned in both packages, at one upstream tag that is bumped in both together. delivery keeps its mattpocock dependency, but references none of the moved skills, so it does not depend on plan.
  • 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.