Team roster and hand-off model #170

Closed
opened 2026-11-12 18:05:40 +00:00 by Claude · 3 comments
Owner

Part of #166

Question

Which agents make up the domain-agnostic delivery team, what does each own, and how does work pass between them (spec → ticket → code → review → apply) without a provider-specific runtime? Includes: which roles are domain-agnostic vs. infra-only (e.g. an operator that executes approved applies), where hand-off state lives (Gitea issues/PRs, files), and how the team relates to existing mattpocock skills and the *-orchestrate agents.

Inputs (from #167)

  • Practice favours a few generic functional roles that load skills on demand over tool-specialist agents; orchestrator–worker with state carried by pointer (issues, branches, files) is the standard shape. Peer teams with a shared task list are experimental and Claude-only — excluded by the map's provider-agnostic note.
  • Portably an apm agent keeps only name, description and body; tool fences hold on Claude only — an agent definition is not a safety boundary.
  • mattpocock already ships the chain as skills (wayfinder, to-spec, to-tickets, triage, implement-spec, tdd, code-review). Gaps: no role-agent files, no operator role, hand-invoked entry points.
  • Research recommendation to weigh: at most a thin generic-roles package (planner, implementer, reviewer, optional operator) composing mattpocock skills; infra ships skills, not specialist agents. Sharpened question: is a team package needed at all, and if so which roles does it add that mattpocock lacks?
Part of #166 ## Question Which agents make up the domain-agnostic delivery team, what does each own, and how does work pass between them (spec → ticket → code → review → apply) without a provider-specific runtime? Includes: which roles are domain-agnostic vs. infra-only (e.g. an operator that executes approved applies), where hand-off state lives (Gitea issues/PRs, files), and how the team relates to existing `mattpocock` skills and the `*-orchestrate` agents. ## Inputs (from #167) - Practice favours a **few generic functional roles that load skills on demand** over tool-specialist agents; orchestrator–worker with state carried by pointer (issues, branches, files) is the standard shape. Peer teams with a shared task list are experimental and Claude-only — excluded by the map's provider-agnostic note. - Portably an apm agent keeps only name, description and body; tool fences hold on Claude only — an agent definition is not a safety boundary. - `mattpocock` already ships the chain as skills (`wayfinder`, `to-spec`, `to-tickets`, `triage`, `implement-spec`, `tdd`, `code-review`). Gaps: no role-agent files, no operator role, hand-invoked entry points. - Research recommendation to weigh: **at most a thin generic-roles package** (planner, implementer, reviewer, optional operator) composing `mattpocock` skills; infra ships skills, not specialist agents. Sharpened question: *is a team package needed at all, and if so which roles does it add that `mattpocock` lacks?*
Claude added this to the Map: Infra and agent-team packages milestone 2026-11-12 18:05:40 +00:00
Claude added the Wayfinder/Grilling label 2026-11-12 18:05:40 +00:00
Claude added a new dependency 2026-11-12 18:05:51 +00:00
Claude added a new dependency 2026-11-12 18:05:52 +00:00
Defame1297 was assigned by Claude 2026-11-13 12:45:01 +00:00
Author
Owner

Resolution

Grilled with the map owner. Recorded as ADR-0031 (docs/adr/0031-first-party-delivery-team-replaces-mattpocock-chain.md, branch docs/wayfinding-operations) and new GLOSSARY terms: Human on the loop, Gate, Mode, Lead, Role agent, Odd job.

Scope

  • A team package is needed: it replaces mattpocock's delivery chain (to-spec, to-tickets, triage, implement, implement-spec, code-review, tdd), authored first-party as far as reasonable (borrow ideas, don't fork). Upstream is skill-shaped and mostly hand-invoked, so no agent can chain it.
  • mattpocock's thinking tools (wayfinder, grilling, domain-modeling, research, prototype, …) stay; removing it entirely is out of scope for this map.

Roster

  • Lead: a skill run by the main session (portable), plus a thin lead agent that only loads the skill, for runtimes with main-session agents (Claude Code / Copilot CLI --agent). It reads Gitea state, picks the item and stage, dispatches roles, stops at gates. It is the only dispatcher: subagents cannot portably spawn subagents.
  • Role agents (leaves, load skills, never spawn): planner (intake → spec → tickets), implementer (ticket → worktree branch → PR), reviewer (fresh context; one dispatch per review axis, merged by the lead), operator (post-merge verification, odd jobs). Fan-out = the lead dispatching more role instances (e.g. one implementer per frontier ticket).
  • Operator lives in the team package and is tool-agnostic; infra packages supply the per-tool skills it loads.
  • The team does not use or mimic the *-orchestrate agents.

Control: human on the loop

  • Session mode: step (stop after every stage) or run (to the next mandatory gate). Per-issue Gate/Step label forces step — tighten-only.
  • Mandatory gates: (1) spec approved — human labels spec issue Status/Ready for Agent; (3) PR approved — human Gitea review approval; for GitOps the merge is the apply. Tickets gate (2) only in step mode, same label on tickets. Agents read gate signals, never set them.
  • Odd jobs: the human instructs the operator directly or via the lead; that instruction is the approval. No ticket for ad-hoc playbook runs (decided against the recommendation; durable trace of such runs passed to the Safety model).
  • v1 trigger: a launched session works the queue. Event-driven (Gitea Actions) maybe later.

Hand-off

  • Pointers only: spec issue → tickets (Part of #<spec>, native blocking) → PR linking ticket → Gitea PR review → operator report comment on the PR.
  • Review loop cap 3 rounds, then Status/Ready for Human.

Apply, verify, rollback

  • GitOps for everything (Flux, Ansible, OpenTofu): applies happen by merge via controller/CI; the agent holds no apply credentials.
  • Operator report shape (role-owned): applied commit, trigger, result, change summary, verification, output link; per-tool content from the infra skill (PLAY RECAP, tofu resource counts, Flux Ready status).
  • Rollback mechanisms are always built into the repo (Helm remediation, CI rollback steps) and are the only automatic rollback. The agent never reverts on its own: it opens a revert PR (or acts on explicit approval), labelled Status/Ready for Human.
## Resolution Grilled with the map owner. Recorded as ADR-0031 (`docs/adr/0031-first-party-delivery-team-replaces-mattpocock-chain.md`, branch `docs/wayfinding-operations`) and new GLOSSARY terms: Human on the loop, Gate, Mode, Lead, Role agent, Odd job. **Scope** - A team package **is** needed: it **replaces `mattpocock`'s delivery chain** (`to-spec`, `to-tickets`, `triage`, `implement`, `implement-spec`, `code-review`, `tdd`), authored first-party as far as reasonable (borrow ideas, don't fork). Upstream is skill-shaped and mostly hand-invoked, so no agent can chain it. - `mattpocock`'s thinking tools (`wayfinder`, `grilling`, `domain-modeling`, `research`, `prototype`, …) stay; removing it entirely is out of scope for this map. **Roster** - **Lead**: a skill run by the main session (portable), plus a thin `lead` agent that only loads the skill, for runtimes with main-session agents (Claude Code / Copilot CLI `--agent`). It reads Gitea state, picks the item and stage, dispatches roles, stops at gates. **It is the only dispatcher**: subagents cannot portably spawn subagents. - **Role agents** (leaves, load skills, never spawn): **planner** (intake → spec → tickets), **implementer** (ticket → worktree branch → PR), **reviewer** (fresh context; one dispatch per review axis, merged by the lead), **operator** (post-merge verification, odd jobs). Fan-out = the lead dispatching more role instances (e.g. one implementer per frontier ticket). - Operator lives in the team package and is tool-agnostic; infra packages supply the per-tool skills it loads. - The team does not use or mimic the `*-orchestrate` agents. **Control: human on the loop** - Session **mode**: `step` (stop after every stage) or `run` (to the next mandatory gate). Per-issue `Gate/Step` label forces step — tighten-only. - **Mandatory gates**: (1) spec approved — human labels spec issue `Status/Ready for Agent`; (3) PR approved — human Gitea review approval; for GitOps the merge *is* the apply. Tickets gate (2) only in step mode, same label on tickets. Agents read gate signals, never set them. - **Odd jobs**: the human instructs the operator directly or via the lead; that instruction is the approval. No ticket for ad-hoc playbook runs (decided against the recommendation; durable trace of such runs passed to the Safety model). - v1 trigger: a launched session works the queue. Event-driven (Gitea Actions) maybe later. **Hand-off** - Pointers only: spec issue → tickets (`Part of #<spec>`, native blocking) → PR linking ticket → Gitea PR review → operator report comment on the PR. - Review loop cap **3** rounds, then `Status/Ready for Human`. **Apply, verify, rollback** - **GitOps for everything** (Flux, Ansible, OpenTofu): applies happen by merge via controller/CI; the agent holds no apply credentials. - Operator report shape (role-owned): applied commit, trigger, result, change summary, verification, output link; per-tool content from the infra skill (PLAY RECAP, tofu resource counts, Flux Ready status). - **Rollback mechanisms are always built into the repo** (Helm remediation, CI rollback steps) and are the only automatic rollback. The agent never reverts on its own: it opens a revert PR (or acts on explicit approval), labelled `Status/Ready for Human`.
Claude reopened this issue 2026-11-13 15:10:01 +00:00
Author
Owner

Reopened for a follow-up grilling

The owner doubts the single-Lead + leaf-roles shape and proposes a delivery team per stage (e.g. test writer, implementer, QA inside implement), with each stage run as its own main-session agent.

Inputs:

  • Research: docs/research/team-structures/agent-team-structures.md on research/team-structures (throwaway branch). Gist: the orchestrator is nearly always the main session; nesting is supported in Claude Code (3 levels) and Cursor (+1), not in Gemini CLI or Codex (default), Copilot unverified — so ADR-0031's no-nesting reason is stale, the conclusion holds; headless --agent only on Claude Code and Copilot CLI; evidence favours a separate fresh-context verifier and (more weakly) a separate test author. Recommends one session per stage, label + script sequencing, sequential test-author → implementer (tests read-only) → verifier.
  • Adversarial review (session report, not committed): QA should be CI status checks, not an LLM; tests read-only to the implementer by enforcement; reviewer on a different vendor model, scoped to acceptance criteria / test integrity / security, only blocking findings count toward the cap; stage leads as skills with --agent as optimisation and run mode only on validated runtimes; schema-validated hand-off comments; per-stage budget/turn caps. Safety-side findings moved to the Safety model ticket.

ADR-0031 and the GLOSSARY "Delivery team" terms will be amended by this grilling's outcome.

## Reopened for a follow-up grilling The owner doubts the single-Lead + leaf-roles shape and proposes a **delivery team per stage** (e.g. test writer, implementer, QA inside implement), with each stage run as its own main-session agent. Inputs: - Research: [`docs/research/team-structures/agent-team-structures.md` on `research/team-structures`](https://git.rkdr.net/Defame1297/holocron/src/branch/research/team-structures/docs/research/team-structures/agent-team-structures.md) (throwaway branch). Gist: the orchestrator is nearly always the main session; nesting is supported in Claude Code (3 levels) and Cursor (+1), not in Gemini CLI or Codex (default), Copilot unverified — so ADR-0031's no-nesting *reason* is stale, the conclusion holds; headless `--agent` only on Claude Code and Copilot CLI; evidence favours a separate fresh-context verifier and (more weakly) a separate test author. Recommends one session per stage, label + script sequencing, sequential test-author → implementer (tests read-only) → verifier. - Adversarial review (session report, not committed): QA should be CI status checks, not an LLM; tests read-only to the implementer by enforcement; reviewer on a different vendor model, scoped to acceptance criteria / test integrity / security, only blocking findings count toward the cap; stage leads as skills with `--agent` as optimisation and run mode only on validated runtimes; schema-validated hand-off comments; per-stage budget/turn caps. Safety-side findings moved to the Safety model ticket. ADR-0031 and the GLOSSARY "Delivery team" terms will be amended by this grilling's outcome.
Author
Owner

Revised resolution (supersedes the Roster, Control and Hand-off parts of the first resolution)

Re-grilled with the owner on the team-structures research and an adversarial review. ADR-0031 and GLOSSARY "Delivery team" amended (Stage, Stage lead, Role agent, Handoff comment; Lead and Mode removed). Scope (replace mattpocock's delivery chain), GitOps-for-everything, operator report shape and rollback stand from the first resolution.

Stages — one fresh session each, no agent spanning stages:

Stage Stage lead (main-session agent) Dispatches
spec planner —
tickets planner —
implement (per ticket) implement-lead test-author → implementer → qa, sequential
review (on the PR) reviewer —
verify (post-merge) operator —
  • A stage lead's body is the stage flow; skills hold the know-how. No skill-under-agent wrapper.
  • Every stage ends with a Handoff comment (decisions, rejected options, evidence, next pointer, open questions, the command to launch the next stage).

Implement flow (shift-left)

  1. test-author writes failing tests from acceptance criteria → implementer makes them pass, tests read-only (enforcement → Safety model). Pre-commit hooks gate every commit; never --no-verify.
  2. Branch pushed → CI runs on branch push (tests, Molecule, --check --diff, tofu plan).
  3. qa reads that CI result and adds only judgement: acceptance criteria met, uncovered edge cases, does the plan/diff do what the ticket meant, idempotence check mode can't simulate. Failures loop to implementer.
  4. qa passes → implement-lead opens the PR → review stage on the PR.

Checks principle: agents never re-run what hooks/CI run deterministically; they only add judgement. Commit = pre-commit; branch push + PR = CI (same pre-commit config reused); qa = pre-PR judgement; reviewer = PR judgement (right change, test strength/weakening, security); operator = post-merge judgement on what reconciled.

Gates & control

  • Mandatory gates: spec approved (Status/Ready for Agent), PR approved (review approval). Human-set; enforcement → Safety model.
  • Every role has a spec/test-conflict exit → Status/Ready for Human. Review cap 3 rounds, blocking findings only.
  • v1 is step mode only: the human launches each stage. Run mode later via Gitea Actions on gate events — no custom driver scripts. Gate/Step and session mode deferred with it.

Reviewer independence (single vendor): fresh session + pinned model in its agent definition + an explicit checklist. Cross-vendor review deferred.

Runtimes: Claude Code and Copilot CLI tested and promised; others best effort. Verified: both start a main session as a custom agent that can dispatch subagents and pin per-agent models. To smoke-test at build: Copilot --agent delegation in practice (inferred from docs), model honoured for apm-deployed agents (older Copilot issues), strict-tools-list agents must list agent.

## Revised resolution (supersedes the Roster, Control and Hand-off parts of the first resolution) Re-grilled with the owner on the [team-structures research](https://git.rkdr.net/Defame1297/holocron/src/branch/research/team-structures/docs/research/team-structures/agent-team-structures.md) and an adversarial review. ADR-0031 and GLOSSARY "Delivery team" amended (Stage, Stage lead, Role agent, Handoff comment; Lead and Mode removed). Scope (replace `mattpocock`'s delivery chain), GitOps-for-everything, operator report shape and rollback stand from the first resolution. **Stages** — one fresh session each, no agent spanning stages: | Stage | Stage lead (main-session agent) | Dispatches | |---|---|---| | spec | `planner` | — | | tickets | `planner` | — | | implement (per ticket) | `implement-lead` | `test-author` → `implementer` → `qa`, sequential | | review (on the PR) | `reviewer` | — | | verify (post-merge) | `operator` | — | - A stage lead's **body is the stage flow**; skills hold the know-how. No skill-under-agent wrapper. - Every stage ends with a **Handoff comment** (decisions, rejected options, evidence, next pointer, open questions, the command to launch the next stage). **Implement flow (shift-left)** 1. `test-author` writes failing tests from acceptance criteria → `implementer` makes them pass, tests read-only (enforcement → Safety model). Pre-commit hooks gate every commit; never `--no-verify`. 2. Branch pushed → **CI runs on branch push** (tests, Molecule, `--check --diff`, `tofu plan`). 3. `qa` reads that CI result and adds only judgement: acceptance criteria met, uncovered edge cases, does the plan/diff do what the ticket meant, idempotence check mode can't simulate. Failures loop to `implementer`. 4. `qa` passes → `implement-lead` opens the PR → review stage on the PR. **Checks principle:** agents never re-run what hooks/CI run deterministically; they only add judgement. Commit = pre-commit; branch push + PR = CI (same pre-commit config reused); `qa` = pre-PR judgement; `reviewer` = PR judgement (right change, test strength/weakening, security); `operator` = post-merge judgement on what reconciled. **Gates & control** - Mandatory gates: spec approved (`Status/Ready for Agent`), PR approved (review approval). Human-set; enforcement → Safety model. - Every role has a spec/test-conflict exit → `Status/Ready for Human`. Review cap 3 rounds, blocking findings only. - **v1 is step mode only**: the human launches each stage. Run mode later via Gitea Actions on gate events — no custom driver scripts. `Gate/Step` and session mode deferred with it. **Reviewer independence (single vendor):** fresh session + pinned `model` in its agent definition + an explicit checklist. Cross-vendor review deferred. **Runtimes:** Claude Code and Copilot CLI tested and promised; others best effort. Verified: both start a main session as a custom agent that can dispatch subagents and pin per-agent models. To smoke-test at build: Copilot `--agent` delegation in practice (inferred from docs), `model` honoured for apm-deployed agents (older Copilot issues), `strict-tools-list` agents must list `agent`.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: Mortis/Holocron#170