GAIA Lifecycle -- Activity Diagram

This diagram shows the full end-to-end command flow across all five GAIA lifecycle phases. Every box is a clickable link to that command's documentation page. Gates are highlighted in orange. Optional steps have dashed borders.

Required step
Optional step
Quality gate
A Agent badge
START
New Project /gaia-init then Phase 1
Existing Project /gaia-brownfield
Add Feature /gaia-add-feature
Small Change /gaia-quick-spec
Resume /gaia-resume
Val -- Cross-Phase Validator Available in all phases: /gaia-val-validate /gaia-val-validate-plan /gaia-val-save /gaia-refresh-ground-truth
4Implementation Nate (SM) + Dev Agents + Val + Zara + Sable
BACKLOG
READY
IN-PROGRESS
REVIEW
DONE
Story Prep
/gaia-create-story Elaborate story from epics-and-stories.md Nate Open docs
/gaia-validate-story Validate story completeness Val GATE Open docs
PASS / FAIL?
FAIL: /gaia-fix-story PASS: ready-for-dev
/gaia-fix-story Fix story issues, re-validate Nate Open docs
Sprint Planning
/gaia-sprint-plan Select stories, set velocity, commit sprint Nate Open docs
Development (TDD)
/gaia-dev-story Implement story: Red, Green, Refactor Dev Agent Open docs
/gaia-check-dod Check Definition of Done Nate GATE Open docs
/gaia-check-review-gate Check composite gate, transition story to done Nate GATE Open docs
Sprint Operations
/gaia-sprint-status Sprint progress dashboard Nate Open docs /gaia-epic-status Epic completion dashboard Nate Open docs /gaia-correct-course Mid-sprint scope changes Nate Open docs /gaia-add-stories Add stories to existing epics Derek Open docs
Sprint Closure
/gaia-triage-findings Scan the active sprint, triage findings into backlog, then classify and prioritize tech debt (absorbed tech-debt-review). Required before sprint close. Nate Open docs
/gaia-retro Post-sprint retrospective Nate Open docs
/gaia-action-items Process action items from retro and triage Open docs
More sprints? Loop to Story Prep

Alternate Entry Paths

Brownfield Onboarding
Onboard an existing codebase to GAIA. Runs deep discovery, multi-scan gap analysis, and NFR assessment, then produces a gap-focused PRD. Feeds into Phase 3 (Solutioning) at /gaia-create-arch.
Add Feature (Mid-Lifecycle)
Triage and route a fix, enhancement, or feature through only the affected artifacts. Cascades through PRD, architecture, test plan, epics, traceability, and readiness as needed.

Anytime Commands

These commands can be run at any point in the lifecycle. They are not tied to a specific phase.

Gates Summary

Gates are quality checkpoints that must pass before the workflow proceeds. A failed gate loops back to the producing command for remediation.

Gate Command What It Checks On Failure
PRD Adversarial /gaia-adversarial Critical/high findings in PRD must be addressed Incorporate findings into prd.md, re-run
PRD Validation /gaia-val-validate PRD quality and completeness Run /gaia-edit-prd, re-validate
Arch Adversarial /gaia-adversarial Architecture "Review Findings" section present Incorporate findings into architecture.md
Test Plan /gaia-test-strategy test-plan.md must exist before epics Run /gaia-test-strategy to create plan
Traceability /gaia-trace traceability-matrix.md exists and maps all requirements Run /gaia-trace to generate matrix
CI Setup /gaia-ci-setup ci-setup.md must exist Run /gaia-ci-setup to scaffold CI pipeline
Readiness /gaia-readiness-check All planning artifacts complete, no blocking contradictions Resolve contradictions, fill missing artifacts
Story Validation /gaia-validate-story Story completeness and factual accuracy Run /gaia-fix-story, re-validate
Definition of Done /gaia-check-dod All DoD checklist items checked Address unchecked items, re-run
6-Gate Review /gaia-review-all Code, QA, Security, Test Auto, Test Review, Performance all PASS Fix issues, run /gaia-dev-story to address, re-review
Review Gate /gaia-check-review-gate Composite gate: all 6 reviews passed Return to IN-PROGRESS, fix remaining failures
Deploy Checklist /gaia-deploy-checklist Pre-deployment verification passes Fix blockers, re-check
Post-Deploy /gaia-post-deploy Health checks and metrics within thresholds Execute rollback plan