Team roster and hand-off model #170
Notifications
Due Date
No due date set.
Blocks
Depends on
#171 Package boundaries and names
Mortis/Holocron
#167 Multi-agent team patterns in practice
Mortis/Holocron
Reference: Mortis/Holocron#170
Reference in new issue
Block a user
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
mattpocockskills and the*-orchestrateagents.Inputs (from #167)
mattpocockalready 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.mattpocockskills; infra ships skills, not specialist agents. Sharpened question: is a team package needed at all, and if so which roles does it add thatmattpococklacks?Resolution
Grilled with the map owner. Recorded as ADR-0031 (
docs/adr/0031-first-party-delivery-team-replaces-mattpocock-chain.md, branchdocs/wayfinding-operations) and new GLOSSARY terms: Human on the loop, Gate, Mode, Lead, Role agent, Odd job.Scope
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
leadagent 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.*-orchestrateagents.Control: human on the loop
step(stop after every stage) orrun(to the next mandatory gate). Per-issueGate/Steplabel forces step — tighten-only.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.Hand-off
Part of #<spec>, native blocking) → PR linking ticket → Gitea PR review → operator report comment on the PR.Status/Ready for Human.Apply, verify, rollback
Status/Ready for Human.Claude referenced this issue2026-11-13 14:26:34 +00:00
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:
docs/research/team-structures/agent-team-structures.mdonresearch/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--agentonly 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.--agentas 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.
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:
plannerplannerimplement-leadtest-author→implementer→qa, sequentialrevieweroperatorImplement flow (shift-left)
test-authorwrites failing tests from acceptance criteria →implementermakes them pass, tests read-only (enforcement → Safety model). Pre-commit hooks gate every commit; never--no-verify.--check --diff,tofu plan).qareads 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 toimplementer.qapasses →implement-leadopens 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
Status/Ready for Agent), PR approved (review approval). Human-set; enforcement → Safety model.Status/Ready for Human. Review cap 3 rounds, blocking findings only.Gate/Stepand session mode deferred with it.Reviewer independence (single vendor): fresh session + pinned
modelin 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
--agentdelegation in practice (inferred from docs),modelhonoured for apm-deployed agents (older Copilot issues),strict-tools-listagents must listagent.