Eleven phases, each with evidence
Intake, plan, worktrees, implement, prove-red, gates, QA, PR, review, CI and close-out. Every phase leaves a file on disk and updates the run's state, so any run can resume where it stopped.
- Orchestrator delegates, never writes product code
- Fresh, narrow subagents per repo and wave
- bin/gaia resume continues from the last phase
- 01IntakeReads the ticket, classifies it, extracts acceptance criteriaruns/T/ticket.md
- 02PlanPlanner agent grades the risk and splits the work by reporuns/T/plan.md
- 03WorktreesOne isolated git worktree per repo touchedworktrees/<repo>-T
- 04ImplementOne implementer per repo, contract owners firstfeat/* commits
- 05Prove-redNew tests must fail on the base before they passPROVEN
- 06GatesThe repo's own lint, types and build, up to 3 fix roundsruns/T/gates.md
- 07QABrowser checks of every criterion, only when askedruns/T/qa.md
- 08PRPreflight fails closed, then draft PRs, cross-linkeddraft PRs
- 09ReviewIndependent reviewer with fresh contextruns/T/review.md
- 10CIWatches checks and fixes red ones, up to 2 roundsgreen checks
- 11Close-outLinks the ticket, writes the record and a manual test guidespecs/T.md