docs(adr): record first-party delivery team replacing mattpocock chain #176
No files matched your search
+39
@@ -105,6 +105,45 @@ irreversible or high-stakes actions — architecture changes, production deploym
|
||||
configuration.
|
||||
_Avoid_: manual approval, gated action
|
||||
|
||||
**Human on the loop**:
|
||||
Agents advance a work item from stage to stage unprompted and stop only at a **Gate**; the human
|
||||
approves rather than orchestrates. Contrasts with **HITL**, where the human starts or approves each
|
||||
step in the session itself.
|
||||
_Avoid_: autonomous mode, autopilot
|
||||
|
||||
**Gate**:
|
||||
A point a work item cannot pass until a human records approval in the issue tracker — a label or a
|
||||
PR review approval. Agents read gates and never set them. A **Mandatory gate** is one nothing can
|
||||
skip.
|
||||
_Avoid_: checkpoint, approval step (a **Gate** is tracker state; a **HITL** pause is not)
|
||||
|
||||
### Delivery team
|
||||
|
||||
**Stage**:
|
||||
One step of the delivery flow — spec, tickets, implement, review, verify — run as its own fresh
|
||||
session that starts from tracker pointers and ends with a **Handoff comment**.
|
||||
_Avoid_: phase, step
|
||||
|
||||
**Stage lead**:
|
||||
The agent a **Stage** session runs as. Its body is the stage's flow; skills supply the know-how. It
|
||||
is the only part of its stage that dispatches subagents, and no agent spans stages.
|
||||
_Avoid_: lead, orchestrator agent, manager
|
||||
|
||||
**Role agent**:
|
||||
A delivery-team agent defined by its function — planner, test author, implementer, QA, reviewer,
|
||||
operator — not by a tool; it loads skills on demand. A role agent may itself be a **Stage lead**.
|
||||
_Avoid_: specialist agent (implies a tool specialist), worker, persona
|
||||
|
||||
**Handoff comment**:
|
||||
The fixed-shape tracker comment that ends every **Stage** — decisions, rejected options, evidence,
|
||||
the pointer the next stage starts from, and open questions. The next stage reads it first.
|
||||
_Avoid_: summary, status update
|
||||
|
||||
**Odd job**:
|
||||
A one-off operator action that is not the effect of a merge, such as an ad-hoc playbook run. It
|
||||
reaches the operator directly on the human's instruction, skipping planner, implementer and reviewer.
|
||||
_Avoid_: manual apply, ad-hoc task
|
||||
|
||||
### Documents
|
||||
|
||||
**AGENTS.md**:
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
# 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.
|
||||
QA runs on the pushed branch before the PR opens; review runs on the PR.
|
||||
- Agents never duplicate deterministic checks: pre-commit hooks gate commits, CI (on branch push and
|
||||
PR) runs tests, lint, Molecule and plan/diff output; QA, reviewer and operator add only judgement.
|
||||
- Claude Code and Copilot CLI are the tested targets; other runtimes are best effort.
|
||||
- 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.
|
||||
Reference in new issue
Block a user