gaia-framework 1.58.0 → 1.58.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/commands/gaia-a11y-testing.md +17 -0
- package/.claude/commands/gaia-action-items.md +23 -0
- package/.claude/commands/gaia-add-feature.md +17 -0
- package/.claude/commands/gaia-add-stories.md +17 -0
- package/.claude/commands/gaia-advanced-elicitation.md +17 -0
- package/.claude/commands/gaia-adversarial.md +15 -0
- package/.claude/commands/gaia-agent-analyst.md +14 -0
- package/.claude/commands/gaia-agent-architect.md +14 -0
- package/.claude/commands/gaia-agent-brainstorming.md +14 -0
- package/.claude/commands/gaia-agent-data-engineer.md +14 -0
- package/.claude/commands/gaia-agent-design-thinking.md +14 -0
- package/.claude/commands/gaia-agent-dev-angular.md +14 -0
- package/.claude/commands/gaia-agent-dev-flutter.md +14 -0
- package/.claude/commands/gaia-agent-dev-go.md +14 -0
- package/.claude/commands/gaia-agent-dev-java.md +14 -0
- package/.claude/commands/gaia-agent-dev-mobile.md +14 -0
- package/.claude/commands/gaia-agent-dev-python.md +14 -0
- package/.claude/commands/gaia-agent-dev-typescript.md +14 -0
- package/.claude/commands/gaia-agent-devops.md +14 -0
- package/.claude/commands/gaia-agent-innovation.md +14 -0
- package/.claude/commands/gaia-agent-performance.md +14 -0
- package/.claude/commands/gaia-agent-pm.md +14 -0
- package/.claude/commands/gaia-agent-presentation.md +14 -0
- package/.claude/commands/gaia-agent-problem-solver.md +14 -0
- package/.claude/commands/gaia-agent-qa.md +14 -0
- package/.claude/commands/gaia-agent-security.md +14 -0
- package/.claude/commands/gaia-agent-sm.md +14 -0
- package/.claude/commands/gaia-agent-storyteller.md +14 -0
- package/.claude/commands/gaia-agent-tech-writer.md +14 -0
- package/.claude/commands/gaia-agent-test-architect.md +14 -0
- package/.claude/commands/gaia-agent-ux-designer.md +14 -0
- package/.claude/commands/gaia-agent-validator.md +14 -0
- package/.claude/commands/gaia-atdd.md +17 -0
- package/.claude/commands/gaia-brainstorm.md +17 -0
- package/.claude/commands/gaia-brainstorming.md +17 -0
- package/.claude/commands/gaia-brownfield.md +17 -0
- package/.claude/commands/gaia-build-configs.md +22 -0
- package/.claude/commands/gaia-change-request.md +11 -0
- package/.claude/commands/gaia-changelog.md +16 -0
- package/.claude/commands/gaia-check-dod.md +17 -0
- package/.claude/commands/gaia-check-review-gate.md +17 -0
- package/.claude/commands/gaia-ci-setup.md +17 -0
- package/.claude/commands/gaia-code-review.md +17 -0
- package/.claude/commands/gaia-correct-course.md +17 -0
- package/.claude/commands/gaia-create-arch.md +17 -0
- package/.claude/commands/gaia-create-epics.md +17 -0
- package/.claude/commands/gaia-create-prd.md +17 -0
- package/.claude/commands/gaia-create-story.md +23 -0
- package/.claude/commands/gaia-create-ux.md +17 -0
- package/.claude/commands/gaia-creative-sprint.md +17 -0
- package/.claude/commands/gaia-deploy-checklist.md +17 -0
- package/.claude/commands/gaia-design-thinking.md +17 -0
- package/.claude/commands/gaia-dev-story.md +23 -0
- package/.claude/commands/gaia-document-project.md +17 -0
- package/.claude/commands/gaia-domain-research.md +17 -0
- package/.claude/commands/gaia-edge-cases.md +15 -0
- package/.claude/commands/gaia-edit-arch.md +17 -0
- package/.claude/commands/gaia-edit-prd.md +17 -0
- package/.claude/commands/gaia-edit-test-plan.md +17 -0
- package/.claude/commands/gaia-editorial-prose.md +15 -0
- package/.claude/commands/gaia-editorial-structure.md +15 -0
- package/.claude/commands/gaia-epic-status.md +17 -0
- package/.claude/commands/gaia-fix-story.md +17 -0
- package/.claude/commands/gaia-help.md +15 -0
- package/.claude/commands/gaia-index-docs.md +15 -0
- package/.claude/commands/gaia-infra-design.md +17 -0
- package/.claude/commands/gaia-innovation.md +17 -0
- package/.claude/commands/gaia-market-research.md +17 -0
- package/.claude/commands/gaia-memory-hygiene.md +17 -0
- package/.claude/commands/gaia-merge-docs.md +16 -0
- package/.claude/commands/gaia-mobile-testing.md +17 -0
- package/.claude/commands/gaia-nfr.md +17 -0
- package/.claude/commands/gaia-party.md +17 -0
- package/.claude/commands/gaia-perf-testing.md +17 -0
- package/.claude/commands/gaia-performance-review.md +17 -0
- package/.claude/commands/gaia-pitch-deck.md +17 -0
- package/.claude/commands/gaia-post-deploy.md +17 -0
- package/.claude/commands/gaia-problem-solving.md +17 -0
- package/.claude/commands/gaia-product-brief.md +17 -0
- package/.claude/commands/gaia-project-context.md +17 -0
- package/.claude/commands/gaia-qa-tests.md +17 -0
- package/.claude/commands/gaia-quick-dev.md +17 -0
- package/.claude/commands/gaia-quick-spec.md +17 -0
- package/.claude/commands/gaia-readiness-check.md +17 -0
- package/.claude/commands/gaia-refresh-ground-truth.md +17 -0
- package/.claude/commands/gaia-release-plan.md +17 -0
- package/.claude/commands/gaia-resume.md +25 -0
- package/.claude/commands/gaia-retro.md +20 -0
- package/.claude/commands/gaia-review-a11y.md +16 -0
- package/.claude/commands/gaia-review-api.md +16 -0
- package/.claude/commands/gaia-review-deps.md +16 -0
- package/.claude/commands/gaia-review-perf.md +16 -0
- package/.claude/commands/gaia-review-security.md +16 -0
- package/.claude/commands/gaia-rollback-plan.md +17 -0
- package/.claude/commands/gaia-run-all-reviews.md +17 -0
- package/.claude/commands/gaia-security-review.md +17 -0
- package/.claude/commands/gaia-shard-doc.md +15 -0
- package/.claude/commands/gaia-slide-deck.md +17 -0
- package/.claude/commands/gaia-sprint-plan.md +17 -0
- package/.claude/commands/gaia-sprint-status.md +17 -0
- package/.claude/commands/gaia-storytelling.md +17 -0
- package/.claude/commands/gaia-summarize.md +16 -0
- package/.claude/commands/gaia-teach-testing.md +17 -0
- package/.claude/commands/gaia-tech-debt-review.md +20 -0
- package/.claude/commands/gaia-tech-research.md +17 -0
- package/.claude/commands/gaia-test-automate.md +17 -0
- package/.claude/commands/gaia-test-design.md +17 -0
- package/.claude/commands/gaia-test-framework.md +17 -0
- package/.claude/commands/gaia-test-review.md +17 -0
- package/.claude/commands/gaia-threat-model.md +17 -0
- package/.claude/commands/gaia-trace.md +17 -0
- package/.claude/commands/gaia-triage-findings.md +20 -0
- package/.claude/commands/gaia-val-validate-plan.md +17 -0
- package/.claude/commands/gaia-val-validate.md +17 -0
- package/.claude/commands/gaia-validate-framework.md +17 -0
- package/.claude/commands/gaia-validate-prd.md +17 -0
- package/.claude/commands/gaia-validate-story.md +22 -0
- package/.claude/commands/gaia.md +32 -0
- package/CLAUDE.md +165 -0
- package/README.md +3 -3
- package/_gaia/_config/agent-manifest.csv +29 -0
- package/_gaia/_config/agents/CUSTOMIZATION-README.md +117 -0
- package/_gaia/_config/files-manifest.csv +30 -0
- package/_gaia/_config/gaia-help.csv +82 -0
- package/_gaia/_config/global.yaml +45 -0
- package/_gaia/_config/lifecycle-sequence.yaml +623 -0
- package/_gaia/_config/manifest.yaml +24 -0
- package/_gaia/_config/skill-manifest.csv +12 -0
- package/_gaia/_config/task-manifest.csv +17 -0
- package/_gaia/_config/workflow-manifest.csv +73 -0
- package/_gaia/_memory/tier2-results/.gitkeep +0 -0
- package/_gaia/_memory/tier2-results/checkpoint-resume-2026-03-24.yaml +6 -0
- package/_gaia/_memory/tier2-results/engine-scenarios-2026-03-22.yaml +14 -0
- package/_gaia/core/.resolved/.gitkeep +0 -0
- package/_gaia/core/agents/orchestrator.md +303 -0
- package/_gaia/core/config.yaml +8 -0
- package/_gaia/core/engine/error-recovery.xml +28 -0
- package/_gaia/core/engine/protocols/discover-inputs.xml +31 -0
- package/_gaia/core/engine/protocols/handoff.xml +21 -0
- package/_gaia/core/engine/protocols/preflight-check.xml +31 -0
- package/_gaia/core/engine/task-runner.xml +63 -0
- package/_gaia/core/engine/workflow.xml +225 -0
- package/_gaia/core/module-help.csv +21 -0
- package/_gaia/core/protocols/agent-specification-protocol.md +103 -0
- package/_gaia/core/protocols/review-gate-check.xml +29 -0
- package/_gaia/core/protocols/sprint-status-write-safety.xml +35 -0
- package/_gaia/core/protocols/status-sync.xml +49 -0
- package/_gaia/core/tasks/editorial-review-prose.xml +42 -0
- package/_gaia/core/tasks/editorial-review-structure.xml +43 -0
- package/_gaia/core/tasks/generate-changelog.xml +35 -0
- package/_gaia/core/tasks/help.md +45 -0
- package/_gaia/core/tasks/index-docs.xml +46 -0
- package/_gaia/core/tasks/merge-docs.xml +34 -0
- package/_gaia/core/tasks/review-accessibility.xml +47 -0
- package/_gaia/core/tasks/review-adversarial.xml +55 -0
- package/_gaia/core/tasks/review-api-design.xml +38 -0
- package/_gaia/core/tasks/review-dependency-audit.xml +38 -0
- package/_gaia/core/tasks/review-edge-case-hunter.xml +52 -0
- package/_gaia/core/tasks/review-performance.xml +49 -0
- package/_gaia/core/tasks/review-security.xml +37 -0
- package/_gaia/core/tasks/shard-doc.xml +49 -0
- package/_gaia/core/tasks/summarize-doc.xml +33 -0
- package/_gaia/core/tasks/validate-framework.xml +66 -0
- package/_gaia/core/workflows/brainstorming/steps/step-01-session-setup.md +7 -0
- package/_gaia/core/workflows/brainstorming/steps/step-02-technique-selection.md +20 -0
- package/_gaia/core/workflows/brainstorming/steps/step-03-technique-execution.md +11 -0
- package/_gaia/core/workflows/brainstorming/steps/step-04-idea-organization.md +14 -0
- package/_gaia/core/workflows/brainstorming/template.md +38 -0
- package/_gaia/core/workflows/brainstorming/workflow.yaml +26 -0
- package/_gaia/core/workflows/party-mode/steps/step-01-agent-loading.md +11 -0
- package/_gaia/core/workflows/party-mode/steps/step-02-discussion-orchestration.md +16 -0
- package/_gaia/core/workflows/party-mode/steps/step-03-graceful-exit.md +10 -0
- package/_gaia/core/workflows/party-mode/workflow.yaml +23 -0
- package/_gaia/creative/.resolved/.gitkeep +0 -0
- package/_gaia/creative/agents/brainstorming-coach.md +93 -0
- package/_gaia/creative/agents/design-thinking-coach.md +91 -0
- package/_gaia/creative/agents/innovation-strategist.md +89 -0
- package/_gaia/creative/agents/presentation-designer.md +99 -0
- package/_gaia/creative/agents/problem-solver.md +90 -0
- package/_gaia/creative/agents/storyteller.md +90 -0
- package/_gaia/creative/config.yaml +8 -0
- package/_gaia/creative/data/design-methods.csv +28 -0
- package/_gaia/creative/data/innovation-frameworks.csv +15 -0
- package/_gaia/creative/data/solving-methods.csv +14 -0
- package/_gaia/creative/data/story-types.csv +12 -0
- package/_gaia/creative/module-help.csv +8 -0
- package/_gaia/creative/teams/creative-squad.yaml +10 -0
- package/_gaia/creative/workflows/creative-sprint/checklist.md +10 -0
- package/_gaia/creative/workflows/creative-sprint/instructions.xml +40 -0
- package/_gaia/creative/workflows/creative-sprint/workflow.yaml +11 -0
- package/_gaia/creative/workflows/design-thinking/checklist.md +25 -0
- package/_gaia/creative/workflows/design-thinking/instructions.xml +38 -0
- package/_gaia/creative/workflows/design-thinking/workflow.yaml +13 -0
- package/_gaia/creative/workflows/innovation-strategy/checklist.md +26 -0
- package/_gaia/creative/workflows/innovation-strategy/instructions.xml +34 -0
- package/_gaia/creative/workflows/innovation-strategy/workflow.yaml +13 -0
- package/_gaia/creative/workflows/pitch-deck/checklist.md +22 -0
- package/_gaia/creative/workflows/pitch-deck/instructions.xml +49 -0
- package/_gaia/creative/workflows/pitch-deck/workflow.yaml +15 -0
- package/_gaia/creative/workflows/problem-solving/checklist.md +26 -0
- package/_gaia/creative/workflows/problem-solving/instructions.xml +39 -0
- package/_gaia/creative/workflows/problem-solving/workflow.yaml +13 -0
- package/_gaia/creative/workflows/slide-deck/checklist.md +21 -0
- package/_gaia/creative/workflows/slide-deck/instructions.xml +39 -0
- package/_gaia/creative/workflows/slide-deck/workflow.yaml +15 -0
- package/_gaia/creative/workflows/storytelling/checklist.md +26 -0
- package/_gaia/creative/workflows/storytelling/instructions.xml +38 -0
- package/_gaia/creative/workflows/storytelling/workflow.yaml +13 -0
- package/_gaia/dev/agents/_base-dev.md +180 -0
- package/_gaia/dev/agents/angular-dev.md +70 -0
- package/_gaia/dev/agents/flutter-dev.md +70 -0
- package/_gaia/dev/agents/go-dev.md +72 -0
- package/_gaia/dev/agents/java-dev.md +70 -0
- package/_gaia/dev/agents/mobile-dev.md +70 -0
- package/_gaia/dev/agents/python-dev.md +70 -0
- package/_gaia/dev/agents/typescript-dev.md +70 -0
- package/_gaia/dev/config.yaml +11 -0
- package/_gaia/dev/knowledge/_index.csv +25 -0
- package/_gaia/dev/knowledge/angular/angular-conventions.md +119 -0
- package/_gaia/dev/knowledge/angular/angular-patterns.md +126 -0
- package/_gaia/dev/knowledge/angular/ngrx-state.md +124 -0
- package/_gaia/dev/knowledge/angular/rxjs-patterns.md +119 -0
- package/_gaia/dev/knowledge/flutter/dart-conventions.md +143 -0
- package/_gaia/dev/knowledge/flutter/platform-channels.md +144 -0
- package/_gaia/dev/knowledge/flutter/state-management.md +144 -0
- package/_gaia/dev/knowledge/flutter/widget-patterns.md +134 -0
- package/_gaia/dev/knowledge/go/gin-fiber-patterns.md +40 -0
- package/_gaia/dev/knowledge/go/go-conventions.md +54 -0
- package/_gaia/dev/knowledge/go/go-stdlib-patterns.md +39 -0
- package/_gaia/dev/knowledge/go/go-testing-patterns.md +39 -0
- package/_gaia/dev/knowledge/java/jpa-patterns.md +136 -0
- package/_gaia/dev/knowledge/java/maven-gradle.md +189 -0
- package/_gaia/dev/knowledge/java/microservices.md +159 -0
- package/_gaia/dev/knowledge/java/spring-boot-patterns.md +160 -0
- package/_gaia/dev/knowledge/mobile/kotlin-patterns.md +193 -0
- package/_gaia/dev/knowledge/mobile/mobile-testing.md +186 -0
- package/_gaia/dev/knowledge/mobile/react-native-patterns.md +162 -0
- package/_gaia/dev/knowledge/mobile/swift-patterns.md +190 -0
- package/_gaia/dev/knowledge/python/data-pipelines.md +169 -0
- package/_gaia/dev/knowledge/python/django-patterns.md +145 -0
- package/_gaia/dev/knowledge/python/fastapi-patterns.md +164 -0
- package/_gaia/dev/knowledge/python/python-conventions.md +170 -0
- package/_gaia/dev/knowledge/typescript/express-patterns.md +188 -0
- package/_gaia/dev/knowledge/typescript/nextjs-patterns.md +166 -0
- package/_gaia/dev/knowledge/typescript/react-patterns.md +176 -0
- package/_gaia/dev/knowledge/typescript/ts-conventions.md +133 -0
- package/_gaia/dev/module-help.csv +10 -0
- package/_gaia/dev/skills/_skill-index.yaml +55 -0
- package/_gaia/dev/skills/api-design.md +229 -0
- package/_gaia/dev/skills/code-review-standards.md +226 -0
- package/_gaia/dev/skills/database-design.md +172 -0
- package/_gaia/dev/skills/docker-workflow.md +222 -0
- package/_gaia/dev/skills/documentation-standards.md +256 -0
- package/_gaia/dev/skills/git-workflow.md +157 -0
- package/_gaia/dev/skills/security-basics.md +230 -0
- package/_gaia/dev/skills/testing-patterns.md +232 -0
- package/_gaia/lifecycle/.resolved/.gitkeep +0 -0
- package/_gaia/lifecycle/agents/analyst.md +104 -0
- package/_gaia/lifecycle/agents/architect.md +109 -0
- package/_gaia/lifecycle/agents/data-engineer.md +99 -0
- package/_gaia/lifecycle/agents/devops.md +110 -0
- package/_gaia/lifecycle/agents/performance.md +92 -0
- package/_gaia/lifecycle/agents/pm.md +112 -0
- package/_gaia/lifecycle/agents/qa.md +89 -0
- package/_gaia/lifecycle/agents/security.md +108 -0
- package/_gaia/lifecycle/agents/sm.md +119 -0
- package/_gaia/lifecycle/agents/tech-writer.md +94 -0
- package/_gaia/lifecycle/agents/ux-designer.md +94 -0
- package/_gaia/lifecycle/agents/validator.md +189 -0
- package/_gaia/lifecycle/config.yaml +14 -0
- package/_gaia/lifecycle/module-help.csv +39 -0
- package/_gaia/lifecycle/skills/ground-truth-management.md +252 -0
- package/_gaia/lifecycle/skills/memory-management.md +322 -0
- package/_gaia/lifecycle/skills/validation-patterns.md +230 -0
- package/_gaia/lifecycle/teams/team-data-intensive.yaml +12 -0
- package/_gaia/lifecycle/teams/team-enterprise.yaml +16 -0
- package/_gaia/lifecycle/teams/team-full.yaml +13 -0
- package/_gaia/lifecycle/teams/team-implementation.yaml +8 -0
- package/_gaia/lifecycle/teams/team-planning.yaml +9 -0
- package/_gaia/lifecycle/teams/team-quick-ship.yaml +6 -0
- package/_gaia/lifecycle/teams/team-security-focused.yaml +13 -0
- package/_gaia/lifecycle/templates/api-documentation-template.md +112 -0
- package/_gaia/lifecycle/templates/architecture-template.md +65 -0
- package/_gaia/lifecycle/templates/brownfield-architecture-template.md +198 -0
- package/_gaia/lifecycle/templates/brownfield-assessment-template.md +78 -0
- package/_gaia/lifecycle/templates/brownfield-onboarding-template.md +160 -0
- package/_gaia/lifecycle/templates/dependency-map-template.md +73 -0
- package/_gaia/lifecycle/templates/deployment-template.md +52 -0
- package/_gaia/lifecycle/templates/epic-status-template.md +64 -0
- package/_gaia/lifecycle/templates/event-catalog-template.md +78 -0
- package/_gaia/lifecycle/templates/nfr-assessment-template.md +96 -0
- package/_gaia/lifecycle/templates/prd-template.md +83 -0
- package/_gaia/lifecycle/templates/product-brief-template.md +48 -0
- package/_gaia/lifecycle/templates/review-template.md +47 -0
- package/_gaia/lifecycle/templates/sprint-plan-template.md +45 -0
- package/_gaia/lifecycle/templates/story-template.md +118 -0
- package/_gaia/lifecycle/templates/tech-debt-dashboard-template.md +71 -0
- package/_gaia/lifecycle/templates/test-plan-template.md +56 -0
- package/_gaia/lifecycle/templates/ux-design-assessment-template.md +122 -0
- package/_gaia/lifecycle/workflows/1-analysis/advanced-elicitation/instructions.xml +44 -0
- package/_gaia/lifecycle/workflows/1-analysis/advanced-elicitation/methods.csv +9 -0
- package/_gaia/lifecycle/workflows/1-analysis/advanced-elicitation/workflow.yaml +33 -0
- package/_gaia/lifecycle/workflows/1-analysis/brainstorm-project/checklist.md +24 -0
- package/_gaia/lifecycle/workflows/1-analysis/brainstorm-project/instructions.xml +39 -0
- package/_gaia/lifecycle/workflows/1-analysis/brainstorm-project/workflow.yaml +19 -0
- package/_gaia/lifecycle/workflows/1-analysis/create-product-brief/checklist.md +27 -0
- package/_gaia/lifecycle/workflows/1-analysis/create-product-brief/instructions.xml +57 -0
- package/_gaia/lifecycle/workflows/1-analysis/create-product-brief/workflow.yaml +38 -0
- package/_gaia/lifecycle/workflows/1-analysis/domain-research/checklist.md +22 -0
- package/_gaia/lifecycle/workflows/1-analysis/domain-research/instructions.xml +34 -0
- package/_gaia/lifecycle/workflows/1-analysis/domain-research/workflow.yaml +15 -0
- package/_gaia/lifecycle/workflows/1-analysis/market-research/checklist.md +28 -0
- package/_gaia/lifecycle/workflows/1-analysis/market-research/instructions.xml +42 -0
- package/_gaia/lifecycle/workflows/1-analysis/market-research/workflow.yaml +15 -0
- package/_gaia/lifecycle/workflows/1-analysis/technical-research/checklist.md +22 -0
- package/_gaia/lifecycle/workflows/1-analysis/technical-research/instructions.xml +34 -0
- package/_gaia/lifecycle/workflows/1-analysis/technical-research/workflow.yaml +15 -0
- package/_gaia/lifecycle/workflows/2-planning/create-prd/checklist.md +36 -0
- package/_gaia/lifecycle/workflows/2-planning/create-prd/instructions.xml +80 -0
- package/_gaia/lifecycle/workflows/2-planning/create-prd/workflow.yaml +23 -0
- package/_gaia/lifecycle/workflows/2-planning/create-ux-design/checklist.md +26 -0
- package/_gaia/lifecycle/workflows/2-planning/create-ux-design/instructions.xml +49 -0
- package/_gaia/lifecycle/workflows/2-planning/create-ux-design/workflow.yaml +23 -0
- package/_gaia/lifecycle/workflows/2-planning/edit-prd/checklist.md +17 -0
- package/_gaia/lifecycle/workflows/2-planning/edit-prd/instructions.xml +50 -0
- package/_gaia/lifecycle/workflows/2-planning/edit-prd/workflow.yaml +22 -0
- package/_gaia/lifecycle/workflows/2-planning/validate-prd/checklist.md +12 -0
- package/_gaia/lifecycle/workflows/2-planning/validate-prd/instructions.xml +52 -0
- package/_gaia/lifecycle/workflows/2-planning/validate-prd/workflow.yaml +19 -0
- package/_gaia/lifecycle/workflows/3-solutioning/create-architecture/checklist.md +32 -0
- package/_gaia/lifecycle/workflows/3-solutioning/create-architecture/instructions.xml +100 -0
- package/_gaia/lifecycle/workflows/3-solutioning/create-architecture/workflow.yaml +41 -0
- package/_gaia/lifecycle/workflows/3-solutioning/create-epics-stories/checklist.md +30 -0
- package/_gaia/lifecycle/workflows/3-solutioning/create-epics-stories/instructions.xml +86 -0
- package/_gaia/lifecycle/workflows/3-solutioning/create-epics-stories/workflow.yaml +34 -0
- package/_gaia/lifecycle/workflows/3-solutioning/edit-architecture/checklist.md +24 -0
- package/_gaia/lifecycle/workflows/3-solutioning/edit-architecture/instructions.xml +91 -0
- package/_gaia/lifecycle/workflows/3-solutioning/edit-architecture/workflow.yaml +32 -0
- package/_gaia/lifecycle/workflows/3-solutioning/implementation-readiness/checklist.md +66 -0
- package/_gaia/lifecycle/workflows/3-solutioning/implementation-readiness/instructions.xml +160 -0
- package/_gaia/lifecycle/workflows/3-solutioning/implementation-readiness/workflow.yaml +48 -0
- package/_gaia/lifecycle/workflows/3-solutioning/infrastructure-design/checklist.md +24 -0
- package/_gaia/lifecycle/workflows/3-solutioning/infrastructure-design/instructions.xml +44 -0
- package/_gaia/lifecycle/workflows/3-solutioning/infrastructure-design/workflow.yaml +23 -0
- package/_gaia/lifecycle/workflows/3-solutioning/security-threat-model/checklist.md +24 -0
- package/_gaia/lifecycle/workflows/3-solutioning/security-threat-model/instructions.xml +55 -0
- package/_gaia/lifecycle/workflows/3-solutioning/security-threat-model/workflow.yaml +23 -0
- package/_gaia/lifecycle/workflows/4-implementation/action-items/instructions.xml +131 -0
- package/_gaia/lifecycle/workflows/4-implementation/action-items/workflow.yaml +19 -0
- package/_gaia/lifecycle/workflows/4-implementation/add-stories/checklist.md +27 -0
- package/_gaia/lifecycle/workflows/4-implementation/add-stories/instructions.xml +100 -0
- package/_gaia/lifecycle/workflows/4-implementation/add-stories/workflow.yaml +35 -0
- package/_gaia/lifecycle/workflows/4-implementation/change-request/checklist.md +25 -0
- package/_gaia/lifecycle/workflows/4-implementation/change-request/instructions.xml +123 -0
- package/_gaia/lifecycle/workflows/4-implementation/change-request/workflow.yaml +38 -0
- package/_gaia/lifecycle/workflows/4-implementation/check-dod/checklist.md +18 -0
- package/_gaia/lifecycle/workflows/4-implementation/check-dod/instructions.xml +54 -0
- package/_gaia/lifecycle/workflows/4-implementation/check-dod/workflow.yaml +19 -0
- package/_gaia/lifecycle/workflows/4-implementation/check-review-gate/checklist.md +18 -0
- package/_gaia/lifecycle/workflows/4-implementation/check-review-gate/instructions.xml +53 -0
- package/_gaia/lifecycle/workflows/4-implementation/check-review-gate/workflow.yaml +19 -0
- package/_gaia/lifecycle/workflows/4-implementation/code-review/checklist.md +18 -0
- package/_gaia/lifecycle/workflows/4-implementation/code-review/instructions.xml +50 -0
- package/_gaia/lifecycle/workflows/4-implementation/code-review/workflow.yaml +24 -0
- package/_gaia/lifecycle/workflows/4-implementation/correct-course/checklist.md +21 -0
- package/_gaia/lifecycle/workflows/4-implementation/correct-course/instructions.xml +63 -0
- package/_gaia/lifecycle/workflows/4-implementation/correct-course/workflow.yaml +25 -0
- package/_gaia/lifecycle/workflows/4-implementation/create-story/checklist.md +38 -0
- package/_gaia/lifecycle/workflows/4-implementation/create-story/instructions.xml +194 -0
- package/_gaia/lifecycle/workflows/4-implementation/create-story/workflow.yaml +26 -0
- package/_gaia/lifecycle/workflows/4-implementation/dev-story/checklist.md +26 -0
- package/_gaia/lifecycle/workflows/4-implementation/dev-story/instructions.xml +268 -0
- package/_gaia/lifecycle/workflows/4-implementation/dev-story/workflow.yaml +51 -0
- package/_gaia/lifecycle/workflows/4-implementation/epic-status/checklist.md +25 -0
- package/_gaia/lifecycle/workflows/4-implementation/epic-status/instructions.xml +62 -0
- package/_gaia/lifecycle/workflows/4-implementation/epic-status/workflow.yaml +24 -0
- package/_gaia/lifecycle/workflows/4-implementation/fix-story/checklist.md +12 -0
- package/_gaia/lifecycle/workflows/4-implementation/fix-story/instructions.xml +67 -0
- package/_gaia/lifecycle/workflows/4-implementation/fix-story/workflow.yaml +17 -0
- package/_gaia/lifecycle/workflows/4-implementation/qa-generate-tests/checklist.md +19 -0
- package/_gaia/lifecycle/workflows/4-implementation/qa-generate-tests/instructions.xml +52 -0
- package/_gaia/lifecycle/workflows/4-implementation/qa-generate-tests/workflow.yaml +20 -0
- package/_gaia/lifecycle/workflows/4-implementation/retrospective/checklist.md +15 -0
- package/_gaia/lifecycle/workflows/4-implementation/retrospective/instructions.xml +164 -0
- package/_gaia/lifecycle/workflows/4-implementation/retrospective/workflow.yaml +30 -0
- package/_gaia/lifecycle/workflows/4-implementation/run-all-reviews/checklist.md +14 -0
- package/_gaia/lifecycle/workflows/4-implementation/run-all-reviews/instructions.xml +78 -0
- package/_gaia/lifecycle/workflows/4-implementation/run-all-reviews/workflow.yaml +16 -0
- package/_gaia/lifecycle/workflows/4-implementation/security-review/checklist.md +29 -0
- package/_gaia/lifecycle/workflows/4-implementation/security-review/instructions.xml +80 -0
- package/_gaia/lifecycle/workflows/4-implementation/security-review/workflow.yaml +27 -0
- package/_gaia/lifecycle/workflows/4-implementation/sprint-planning/checklist.md +29 -0
- package/_gaia/lifecycle/workflows/4-implementation/sprint-planning/instructions.xml +140 -0
- package/_gaia/lifecycle/workflows/4-implementation/sprint-planning/workflow.yaml +33 -0
- package/_gaia/lifecycle/workflows/4-implementation/sprint-status/checklist.md +18 -0
- package/_gaia/lifecycle/workflows/4-implementation/sprint-status/instructions.xml +36 -0
- package/_gaia/lifecycle/workflows/4-implementation/sprint-status/workflow.yaml +19 -0
- package/_gaia/lifecycle/workflows/4-implementation/tech-debt-review/checklist.md +30 -0
- package/_gaia/lifecycle/workflows/4-implementation/tech-debt-review/instructions.xml +147 -0
- package/_gaia/lifecycle/workflows/4-implementation/tech-debt-review/workflow.yaml +24 -0
- package/_gaia/lifecycle/workflows/4-implementation/triage-findings/checklist.md +17 -0
- package/_gaia/lifecycle/workflows/4-implementation/triage-findings/instructions.xml +124 -0
- package/_gaia/lifecycle/workflows/4-implementation/triage-findings/workflow.yaml +15 -0
- package/_gaia/lifecycle/workflows/4-implementation/val-refresh-ground-truth/checklist.md +48 -0
- package/_gaia/lifecycle/workflows/4-implementation/val-refresh-ground-truth/instructions.xml +125 -0
- package/_gaia/lifecycle/workflows/4-implementation/val-refresh-ground-truth/workflow.yaml +31 -0
- package/_gaia/lifecycle/workflows/4-implementation/val-validate-artifact/checklist.md +54 -0
- package/_gaia/lifecycle/workflows/4-implementation/val-validate-artifact/instructions.xml +147 -0
- package/_gaia/lifecycle/workflows/4-implementation/val-validate-artifact/test-structure.sh +116 -0
- package/_gaia/lifecycle/workflows/4-implementation/val-validate-artifact/workflow.yaml +29 -0
- package/_gaia/lifecycle/workflows/4-implementation/val-validate-plan/checklist.md +34 -0
- package/_gaia/lifecycle/workflows/4-implementation/val-validate-plan/instructions.xml +162 -0
- package/_gaia/lifecycle/workflows/4-implementation/val-validate-plan/workflow.yaml +39 -0
- package/_gaia/lifecycle/workflows/4-implementation/validate-story/checklist.md +23 -0
- package/_gaia/lifecycle/workflows/4-implementation/validate-story/instructions.xml +146 -0
- package/_gaia/lifecycle/workflows/4-implementation/validate-story/workflow.yaml +25 -0
- package/_gaia/lifecycle/workflows/5-deployment/deployment-checklist/checklist.md +29 -0
- package/_gaia/lifecycle/workflows/5-deployment/deployment-checklist/instructions.xml +59 -0
- package/_gaia/lifecycle/workflows/5-deployment/deployment-checklist/workflow.yaml +39 -0
- package/_gaia/lifecycle/workflows/5-deployment/post-deploy-verify/checklist.md +19 -0
- package/_gaia/lifecycle/workflows/5-deployment/post-deploy-verify/instructions.xml +33 -0
- package/_gaia/lifecycle/workflows/5-deployment/post-deploy-verify/workflow.yaml +15 -0
- package/_gaia/lifecycle/workflows/5-deployment/release-plan/checklist.md +20 -0
- package/_gaia/lifecycle/workflows/5-deployment/release-plan/instructions.xml +33 -0
- package/_gaia/lifecycle/workflows/5-deployment/release-plan/workflow.yaml +19 -0
- package/_gaia/lifecycle/workflows/5-deployment/rollback-plan/checklist.md +20 -0
- package/_gaia/lifecycle/workflows/5-deployment/rollback-plan/instructions.xml +33 -0
- package/_gaia/lifecycle/workflows/5-deployment/rollback-plan/workflow.yaml +15 -0
- package/_gaia/lifecycle/workflows/anytime/brownfield-onboarding/checklist.md +52 -0
- package/_gaia/lifecycle/workflows/anytime/brownfield-onboarding/instructions.xml +122 -0
- package/_gaia/lifecycle/workflows/anytime/brownfield-onboarding/test-step7.sh +149 -0
- package/_gaia/lifecycle/workflows/anytime/brownfield-onboarding/workflow.yaml +33 -0
- package/_gaia/lifecycle/workflows/anytime/document-project/checklist.md +11 -0
- package/_gaia/lifecycle/workflows/anytime/document-project/instructions.xml +26 -0
- package/_gaia/lifecycle/workflows/anytime/document-project/workflow.yaml +15 -0
- package/_gaia/lifecycle/workflows/anytime/generate-project-context/checklist.md +11 -0
- package/_gaia/lifecycle/workflows/anytime/generate-project-context/instructions.xml +22 -0
- package/_gaia/lifecycle/workflows/anytime/generate-project-context/workflow.yaml +15 -0
- package/_gaia/lifecycle/workflows/anytime/memory-hygiene/checklist.md +66 -0
- package/_gaia/lifecycle/workflows/anytime/memory-hygiene/instructions.xml +206 -0
- package/_gaia/lifecycle/workflows/anytime/memory-hygiene/workflow.yaml +15 -0
- package/_gaia/lifecycle/workflows/anytime/performance-review/checklist.md +25 -0
- package/_gaia/lifecycle/workflows/anytime/performance-review/instructions.xml +62 -0
- package/_gaia/lifecycle/workflows/anytime/performance-review/workflow.yaml +15 -0
- package/_gaia/lifecycle/workflows/cross-phase/add-feature/checklist.md +30 -0
- package/_gaia/lifecycle/workflows/cross-phase/add-feature/instructions.xml +85 -0
- package/_gaia/lifecycle/workflows/cross-phase/add-feature/workflow.yaml +37 -0
- package/_gaia/lifecycle/workflows/quick-flow/quick-dev/checklist.md +11 -0
- package/_gaia/lifecycle/workflows/quick-flow/quick-dev/instructions.xml +26 -0
- package/_gaia/lifecycle/workflows/quick-flow/quick-dev/workflow.yaml +19 -0
- package/_gaia/lifecycle/workflows/quick-flow/quick-spec/checklist.md +13 -0
- package/_gaia/lifecycle/workflows/quick-flow/quick-spec/instructions.xml +27 -0
- package/_gaia/lifecycle/workflows/quick-flow/quick-spec/workflow.yaml +15 -0
- package/_gaia/testing/.resolved/.gitkeep +0 -0
- package/_gaia/testing/agents/test-architect.md +131 -0
- package/_gaia/testing/config.yaml +8 -0
- package/_gaia/testing/knowledge/_index.csv +22 -0
- package/_gaia/testing/knowledge/accessibility/axe-core-patterns.md +177 -0
- package/_gaia/testing/knowledge/accessibility/wcag-checks.md +191 -0
- package/_gaia/testing/knowledge/core/deterministic-testing.md +167 -0
- package/_gaia/testing/knowledge/core/fixture-architecture.md +131 -0
- package/_gaia/testing/knowledge/core/test-isolation.md +142 -0
- package/_gaia/testing/knowledge/core/test-pyramid.md +129 -0
- package/_gaia/testing/knowledge/extended/api-testing-patterns.md +196 -0
- package/_gaia/testing/knowledge/extended/data-factories.md +158 -0
- package/_gaia/testing/knowledge/extended/risk-governance.md +119 -0
- package/_gaia/testing/knowledge/extended/selector-resilience.md +109 -0
- package/_gaia/testing/knowledge/mobile-testing/appium-patterns.md +164 -0
- package/_gaia/testing/knowledge/mobile-testing/react-native-testing.md +193 -0
- package/_gaia/testing/knowledge/mobile-testing/responsive-testing.md +177 -0
- package/_gaia/testing/knowledge/performance/k6-patterns.md +200 -0
- package/_gaia/testing/knowledge/performance/lighthouse-ci.md +158 -0
- package/_gaia/testing/knowledge/specialized/contract-testing.md +173 -0
- package/_gaia/testing/knowledge/specialized/test-healing.md +129 -0
- package/_gaia/testing/knowledge/specialized/visual-testing.md +129 -0
- package/_gaia/testing/knowledge/unit-testing/jest-vitest-patterns.md +193 -0
- package/_gaia/testing/knowledge/unit-testing/junit5-patterns.md +200 -0
- package/_gaia/testing/knowledge/unit-testing/pytest-patterns.md +185 -0
- package/_gaia/testing/module-help.csv +13 -0
- package/_gaia/testing/workflows/accessibility-testing/checklist.md +12 -0
- package/_gaia/testing/workflows/accessibility-testing/instructions.xml +41 -0
- package/_gaia/testing/workflows/accessibility-testing/workflow.yaml +13 -0
- package/_gaia/testing/workflows/atdd/checklist.md +6 -0
- package/_gaia/testing/workflows/atdd/instructions.xml +36 -0
- package/_gaia/testing/workflows/atdd/workflow.yaml +22 -0
- package/_gaia/testing/workflows/ci-setup/checklist.md +9 -0
- package/_gaia/testing/workflows/ci-setup/instructions.xml +43 -0
- package/_gaia/testing/workflows/ci-setup/workflow.yaml +11 -0
- package/_gaia/testing/workflows/edit-test-plan/checklist.md +20 -0
- package/_gaia/testing/workflows/edit-test-plan/instructions.xml +65 -0
- package/_gaia/testing/workflows/edit-test-plan/workflow.yaml +35 -0
- package/_gaia/testing/workflows/mobile-testing/checklist.md +13 -0
- package/_gaia/testing/workflows/mobile-testing/instructions.xml +41 -0
- package/_gaia/testing/workflows/mobile-testing/workflow.yaml +11 -0
- package/_gaia/testing/workflows/nfr-assessment/checklist.md +7 -0
- package/_gaia/testing/workflows/nfr-assessment/instructions.xml +26 -0
- package/_gaia/testing/workflows/nfr-assessment/workflow.yaml +11 -0
- package/_gaia/testing/workflows/performance-testing/checklist.md +11 -0
- package/_gaia/testing/workflows/performance-testing/instructions.xml +41 -0
- package/_gaia/testing/workflows/performance-testing/workflow.yaml +11 -0
- package/_gaia/testing/workflows/teach-me-testing/checklist.md +6 -0
- package/_gaia/testing/workflows/teach-me-testing/instructions.xml +28 -0
- package/_gaia/testing/workflows/teach-me-testing/workflow.yaml +12 -0
- package/_gaia/testing/workflows/test-automation/checklist.md +6 -0
- package/_gaia/testing/workflows/test-automation/instructions.xml +49 -0
- package/_gaia/testing/workflows/test-automation/workflow.yaml +11 -0
- package/_gaia/testing/workflows/test-design/checklist.md +9 -0
- package/_gaia/testing/workflows/test-design/instructions.xml +47 -0
- package/_gaia/testing/workflows/test-design/workflow.yaml +11 -0
- package/_gaia/testing/workflows/test-framework/checklist.md +8 -0
- package/_gaia/testing/workflows/test-framework/instructions.xml +25 -0
- package/_gaia/testing/workflows/test-framework/workflow.yaml +11 -0
- package/_gaia/testing/workflows/test-review/checklist.md +9 -0
- package/_gaia/testing/workflows/test-review/instructions.xml +51 -0
- package/_gaia/testing/workflows/test-review/workflow.yaml +11 -0
- package/_gaia/testing/workflows/traceability/checklist.md +6 -0
- package/_gaia/testing/workflows/traceability/instructions.xml +49 -0
- package/_gaia/testing/workflows/traceability/workflow.yaml +21 -0
- package/bin/gaia-framework.js +58 -20
- package/gaia-install.sh +1 -1
- package/package.json +21 -7
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
<workflow name="add-stories">
|
|
2
|
+
<critical>
|
|
3
|
+
<mandate>Story protection is ENFORCED — stories with status in-progress, review, ready-for-dev, or done are READ-ONLY. Never modify them.</mandate>
|
|
4
|
+
<mandate>New stories MUST follow the exact format used in existing epics-and-stories.md</mandate>
|
|
5
|
+
<mandate>Story and epic IDs must not collide with existing IDs — auto-increment from highest existing</mandate>
|
|
6
|
+
<mandate>Append to existing content — never overwrite or reorder existing stories or epics</mandate>
|
|
7
|
+
</critical>
|
|
8
|
+
|
|
9
|
+
<step n="1" title="Load and Analyze Existing State">
|
|
10
|
+
<action>Read {planning_artifacts}/epics-and-stories.md in full</action>
|
|
11
|
+
<action>Read {implementation_artifacts}/sprint-status.yaml in full</action>
|
|
12
|
+
<action>Parse all existing epic IDs and names</action>
|
|
13
|
+
<action>Parse all existing story IDs per epic — identify highest ID per epic and overall</action>
|
|
14
|
+
<action>Build protection map: for each story, record its current status from sprint-status.yaml:
|
|
15
|
+
- LOCKED: done, review, in-progress, ready-for-dev — cannot be modified
|
|
16
|
+
- PROTECTED: invalid — cannot be modified by default
|
|
17
|
+
- CAUTIOUS: validating, backlog — modification requires explicit user confirmation
|
|
18
|
+
- OPEN: new stories not yet in sprint-status — full read/write</action>
|
|
19
|
+
<action>Display summary: total epics, total stories, stories by protection level (locked/protected/cautious/open)</action>
|
|
20
|
+
</step>
|
|
21
|
+
|
|
22
|
+
<step n="2" title="Identify New Requirements">
|
|
23
|
+
<check if="triggered_by_orchestrator">Inherit feature_description, prd_diff (new FR/NFR IDs), arch_diff (architecture changes), and cr_id from triggering workflow context. Skip user questions — proceed to Step 3.</check>
|
|
24
|
+
<ask>What new stories need to be added? Describe the feature or requirements.</ask>
|
|
25
|
+
<ask>Do these belong to an existing epic, or is a new epic needed?</ask>
|
|
26
|
+
<ask>Is this linked to a change request? If so, provide the CR ID.</ask>
|
|
27
|
+
<action>Read relevant sections of {planning_artifacts}/prd.md for context — focus on NEW requirements if prd_diff is available</action>
|
|
28
|
+
<action>Read relevant sections of {planning_artifacts}/architecture.md for technical context — focus on changes if arch_diff is available</action>
|
|
29
|
+
</step>
|
|
30
|
+
|
|
31
|
+
<step n="3" title="Epic Decision — New or Existing?">
|
|
32
|
+
<action>Analyze the new requirements against existing epics</action>
|
|
33
|
+
<action>For each requirement cluster, determine fit:
|
|
34
|
+
- Extends existing epic: new stories naturally belong under an existing epic's theme/goal
|
|
35
|
+
- New epic needed: the feature is a distinct capability that doesn't fit any existing epic
|
|
36
|
+
- Mixed: some stories extend existing epics, others need a new epic</action>
|
|
37
|
+
<ask>Present recommendation: "I recommend [creating new Epic {N}: {name} / adding to existing Epic {X}: {name}] for this feature. [Count] stories will be created. Do you agree?"</ask>
|
|
38
|
+
<action>User confirms or adjusts the epic assignment</action>
|
|
39
|
+
</step>
|
|
40
|
+
|
|
41
|
+
<step n="4" title="Create New Epic" optional="true" condition="new_epic_needed">
|
|
42
|
+
<action>Skip if all new stories fit into existing epics.</action>
|
|
43
|
+
<action>Auto-increment epic ID from highest existing (e.g., if E2 exists, new epic is E3)</action>
|
|
44
|
+
<action>Define epic with: name, description, goal, success criteria, estimated story count</action>
|
|
45
|
+
<action>Present epic definition to user for confirmation</action>
|
|
46
|
+
</step>
|
|
47
|
+
|
|
48
|
+
<step n="5" title="Define New Stories">
|
|
49
|
+
<action>For each new story:
|
|
50
|
+
- Title using "As a [user], I want to [action] so that [benefit]"
|
|
51
|
+
- Description with context
|
|
52
|
+
- Acceptance criteria (AC1, AC2, etc.)
|
|
53
|
+
- Size: S/M/L/XL
|
|
54
|
+
- Priority: P0/P1/P2
|
|
55
|
+
- Assign to correct epic (existing or newly created)
|
|
56
|
+
- Auto-increment story ID within the epic (e.g., if E2 has S1-S5, new stories start at E2-S6; if new E3, start at E3-S1)</action>
|
|
57
|
+
<action>If {test_artifacts}/test-plan.md exists: apply risk levels (high/medium/low) based on architectural complexity and test coverage</action>
|
|
58
|
+
<action>Declare depends_on and blocks against ALL existing stories</action>
|
|
59
|
+
<action>ENFORCE PROTECTION: dependency links FROM new stories TO locked/protected stories are allowed (read-only reference). But locked/protected stories themselves are NEVER modified.</action>
|
|
60
|
+
<action>Verify no circular dependencies introduced</action>
|
|
61
|
+
<action>If CR ID provided, add Source: CR-{cr_id} to each story</action>
|
|
62
|
+
</step>
|
|
63
|
+
|
|
64
|
+
<step n="6" title="Protection Validation">
|
|
65
|
+
<action>Scan all proposed changes against the protection map from Step 1</action>
|
|
66
|
+
<action>Verify: ZERO modifications to stories with status in-progress, review, ready-for-dev, done, or invalid</action>
|
|
67
|
+
<action>If any backlog or validating story would be modified: present the specific change and ask for explicit user confirmation with documented reason</action>
|
|
68
|
+
<action>Display protection report: "{count} locked stories verified READ-ONLY. {count} protected stories verified READ-ONLY. {count} new stories will be created."</action>
|
|
69
|
+
<action>If any protection violation detected: HALT — do not proceed until resolved</action>
|
|
70
|
+
</step>
|
|
71
|
+
|
|
72
|
+
<step n="7" title="Append to Epics and Stories">
|
|
73
|
+
<action>If new epic created: append entire epic section at end of document with all new stories</action>
|
|
74
|
+
<action>If adding to existing epic: append new stories after the last story in that epic</action>
|
|
75
|
+
<action>Add change log entry: date, feature name, CR ID (if applicable), epics affected, stories added</action>
|
|
76
|
+
<template-output file="{planning_artifacts}/epics-and-stories.md">
|
|
77
|
+
Append new stories to existing epics-and-stories.md. Each new story formatted as:
|
|
78
|
+
### Story {epic-N}-{story-N}: {Title}
|
|
79
|
+
- Epic: {epic name}
|
|
80
|
+
- Priority: {P0/P1/P2}
|
|
81
|
+
- Size: {S/M/L/XL}
|
|
82
|
+
- Risk: {high/medium/low}
|
|
83
|
+
- Depends on: [{story-ids}]
|
|
84
|
+
- Blocks: [{story-ids}]
|
|
85
|
+
- Source: CR-{cr_id} (if applicable)
|
|
86
|
+
- Acceptance Criteria:
|
|
87
|
+
- AC1: {criteria}
|
|
88
|
+
If new epic: include epic header with name, description, goal, success criteria before its stories.
|
|
89
|
+
Prepend a Change Log entry if not already present.
|
|
90
|
+
</template-output>
|
|
91
|
+
</step>
|
|
92
|
+
|
|
93
|
+
<step n="8" title="Next Steps">
|
|
94
|
+
<action>Report summary: new epic(s) created (if any), stories added with IDs and epic assignments</action>
|
|
95
|
+
<action>For each new story: "Run /gaia-create-story {story_key} to elaborate before development"</action>
|
|
96
|
+
<action>If stories should enter current sprint: "Run /gaia-correct-course to inject into sprint"</action>
|
|
97
|
+
<action>If stories should wait: "Stories are in backlog. Include in next /gaia-sprint-plan"</action>
|
|
98
|
+
<action>Recommend: "Run /gaia-trace to update traceability matrix with new stories"</action>
|
|
99
|
+
</step>
|
|
100
|
+
</workflow>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
name: add-stories
|
|
2
|
+
description: 'Add new stories to existing epics or create new epics with stories'
|
|
3
|
+
module: lifecycle
|
|
4
|
+
agent: pm
|
|
5
|
+
config_resolved: "{installed_path}/.resolved/add-stories.yaml"
|
|
6
|
+
config_source: "{project-root}/_gaia/lifecycle/config.yaml"
|
|
7
|
+
installed_path: "{project-root}/_gaia/lifecycle/workflows/4-implementation/add-stories"
|
|
8
|
+
instructions: "{installed_path}/instructions.xml"
|
|
9
|
+
validation: "{installed_path}/checklist.md"
|
|
10
|
+
input_file_patterns:
|
|
11
|
+
prd:
|
|
12
|
+
whole: "{planning_artifacts}/prd.md"
|
|
13
|
+
load_strategy: "SELECTIVE_LOAD"
|
|
14
|
+
architecture:
|
|
15
|
+
whole: "{planning_artifacts}/architecture.md"
|
|
16
|
+
load_strategy: "SELECTIVE_LOAD"
|
|
17
|
+
epics:
|
|
18
|
+
whole: "{planning_artifacts}/epics-and-stories.md"
|
|
19
|
+
load_strategy: "FULL_LOAD"
|
|
20
|
+
test_plan:
|
|
21
|
+
whole: "{test_artifacts}/test-plan.md"
|
|
22
|
+
load_strategy: "SELECTIVE_LOAD"
|
|
23
|
+
sprint_status:
|
|
24
|
+
whole: "{implementation_artifacts}/sprint-status.yaml"
|
|
25
|
+
load_strategy: "FULL_LOAD"
|
|
26
|
+
quality_gates:
|
|
27
|
+
pre_start:
|
|
28
|
+
- check: "epics_exists"
|
|
29
|
+
on_fail: "HALT: epics-and-stories.md does not exist. Run /gaia-create-epics first."
|
|
30
|
+
on_error:
|
|
31
|
+
missing_file: "ask_user"
|
|
32
|
+
unresolved_variable: "halt"
|
|
33
|
+
|
|
34
|
+
output:
|
|
35
|
+
primary: "{planning_artifacts}/epics-and-stories.md"
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Change Request Validation'
|
|
3
|
+
validation-target: 'Change request with impact analysis'
|
|
4
|
+
---
|
|
5
|
+
## Capture
|
|
6
|
+
- [ ] Change description documented
|
|
7
|
+
- [ ] Source/driver identified
|
|
8
|
+
- [ ] Urgency classified (critical/high/normal)
|
|
9
|
+
- [ ] CR ID assigned (CR-{date}-{seq})
|
|
10
|
+
## Impact Analysis
|
|
11
|
+
- [ ] Requirements impact assessed (NONE/MINOR/SIGNIFICANT/BREAKING)
|
|
12
|
+
- [ ] Technical impact assessed (NONE/MINOR/SIGNIFICANT/BREAKING)
|
|
13
|
+
- [ ] Sprint/effort impact assessed (ABSORBABLE/NEXT_SPRINT/MULTI_SPRINT)
|
|
14
|
+
- [ ] Affected artifacts identified
|
|
15
|
+
- [ ] Effort estimated (story points)
|
|
16
|
+
## Approval
|
|
17
|
+
- [ ] Impact analysis presented to user
|
|
18
|
+
- [ ] User APPROVED or REJECTED the change
|
|
19
|
+
## Cascade Updates (if approved)
|
|
20
|
+
- [ ] PRD updated (or skipped — requirements_impact = NONE)
|
|
21
|
+
- [ ] Architecture updated (or skipped — technical_impact = NONE)
|
|
22
|
+
- [ ] Stories created/modified (or skipped — no story changes needed)
|
|
23
|
+
## Output
|
|
24
|
+
- [ ] Change request record generated at {planning_artifacts}/change-request-{cr_id}.md
|
|
25
|
+
- [ ] Downstream next steps communicated
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
<workflow name="change-request">
|
|
2
|
+
<critical>
|
|
3
|
+
<mandate>Every change request must have a formal impact analysis before any artifact updates begin</mandate>
|
|
4
|
+
<mandate>User must APPROVE the change after reviewing impact analysis — this is a hard gate</mandate>
|
|
5
|
+
<mandate>Cascade updates to downstream artifacts via subagents after approval</mandate>
|
|
6
|
+
</critical>
|
|
7
|
+
|
|
8
|
+
<step n="1" title="Capture Change Request">
|
|
9
|
+
<ask>Describe the change request: What needs to change and why?</ask>
|
|
10
|
+
<ask>What is driving this change? (user feedback / stakeholder request / technical discovery / market shift / regulatory)</ask>
|
|
11
|
+
<ask>Urgency level? (critical — blocks current sprint / high — next sprint / normal — backlog)</ask>
|
|
12
|
+
<action>Assign CR ID: CR-{date}-{seq} (e.g., CR-2026-03-09-1). Check {planning_artifacts}/ for existing CR files to determine next sequence number.</action>
|
|
13
|
+
</step>
|
|
14
|
+
|
|
15
|
+
<step n="2" title="Load All Artifacts">
|
|
16
|
+
<action>Read {planning_artifacts}/prd.md — extract requirement IDs (FR-*, NFR-*), feature section headers, user personas, NFR targets</action>
|
|
17
|
+
<action>Read {planning_artifacts}/architecture.md — extract component list, API endpoints, data models, ADR references, tech stack</action>
|
|
18
|
+
<action>Read {planning_artifacts}/epics-and-stories.md — extract all story IDs, statuses, dependencies, sizes, risk levels</action>
|
|
19
|
+
<action>Read {implementation_artifacts}/sprint-status.yaml — current sprint ID, story statuses, velocity used vs available</action>
|
|
20
|
+
<action>Read {test_artifacts}/test-plan.md if exists — extract risk areas and high-risk components</action>
|
|
21
|
+
<action>Read {test_artifacts}/traceability-matrix.md if exists — extract requirement-to-test coverage mappings</action>
|
|
22
|
+
<action>Note any missing artifacts as INFO — they limit analysis depth but do not block the workflow</action>
|
|
23
|
+
</step>
|
|
24
|
+
|
|
25
|
+
<step n="3" title="Requirements Impact Analysis">
|
|
26
|
+
<action>Analyze the change against PRD content:</action>
|
|
27
|
+
<action>— Identify PRD sections affected (features, personas, user journeys, NFRs, constraints)</action>
|
|
28
|
+
<action>— List requirement IDs (FR-*, NFR-*) that need modification, addition, or removal</action>
|
|
29
|
+
<action>— Assess NFR impact: does this change performance, security, scalability, or availability targets?</action>
|
|
30
|
+
<action>— Identify user journeys affected — which personas and flows change?</action>
|
|
31
|
+
<action>Classify requirements_impact: NONE (no PRD changes) / MINOR (wording, clarification) / SIGNIFICANT (new requirements, modified scope) / BREAKING (removes or contradicts existing requirements)</action>
|
|
32
|
+
</step>
|
|
33
|
+
|
|
34
|
+
<step n="4" title="Technical Impact Analysis">
|
|
35
|
+
<action>Analyze the change against architecture:</action>
|
|
36
|
+
<action>— Identify architecture components affected (services, modules, layers)</action>
|
|
37
|
+
<action>— Assess API changes: new endpoints, modified contracts, breaking changes, versioning impact</action>
|
|
38
|
+
<action>— Assess data model changes: schema migrations needed, new entities, modified relationships</action>
|
|
39
|
+
<action>— Identify infrastructure impact: new services, scaling changes, deployment topology</action>
|
|
40
|
+
<action>— Check ADR implications: existing decisions invalidated? New architectural decisions needed?</action>
|
|
41
|
+
<action>Classify technical_impact: NONE / MINOR (config, minor refactor) / SIGNIFICANT (new component, API change) / BREAKING (architectural shift, tech stack change)</action>
|
|
42
|
+
</step>
|
|
43
|
+
|
|
44
|
+
<step n="5" title="Sprint and Effort Impact Analysis">
|
|
45
|
+
<action>Analyze the change against current sprint and stories:</action>
|
|
46
|
+
<action>— Identify existing stories directly affected (scope changes, new blockers, invalidated acceptance criteria)</action>
|
|
47
|
+
<action>— If stories in 'in-progress' or 'review' are affected: flag as HIGH_RISK — these may need rework</action>
|
|
48
|
+
<action>— Estimate new stories needed: count and size (S=1pt, M=3pt, L=5pt, XL=8pt)</action>
|
|
49
|
+
<action>— Calculate total effort: sum of new story points + rework estimate for affected existing stories</action>
|
|
50
|
+
<action>— Assess sprint absorption: compare effort against remaining sprint velocity capacity</action>
|
|
51
|
+
<action>Classify sprint_impact: ABSORBABLE (fits in current sprint) / NEXT_SPRINT (defer to next sprint) / MULTI_SPRINT (requires multiple sprints)</action>
|
|
52
|
+
<action>If traceability-matrix.md exists: flag test coverage gaps that this change will create</action>
|
|
53
|
+
</step>
|
|
54
|
+
|
|
55
|
+
<step n="6" title="Impact Summary and Approval Gate">
|
|
56
|
+
<action>Present consolidated impact analysis:
|
|
57
|
+
|
|
58
|
+
**Change Request: {cr_id}**
|
|
59
|
+
| Dimension | Impact Level | Details |
|
|
60
|
+
|-----------|-------------|---------|
|
|
61
|
+
| Requirements | {requirements_impact} | {affected PRD sections and requirement IDs} |
|
|
62
|
+
| Technical | {technical_impact} | {affected components, APIs, data models} |
|
|
63
|
+
| Sprint/Effort | {sprint_impact} | {story points estimate, sprint absorption capacity} |
|
|
64
|
+
|
|
65
|
+
**Artifacts to be modified:**
|
|
66
|
+
- {list each artifact and what will change}
|
|
67
|
+
|
|
68
|
+
**New artifacts to be created:**
|
|
69
|
+
- {list new stories, ADRs, etc.}
|
|
70
|
+
|
|
71
|
+
**Risk flags:**
|
|
72
|
+
- {HIGH_RISK stories, breaking changes, test coverage gaps}
|
|
73
|
+
</action>
|
|
74
|
+
<ask>Review the impact analysis above. Do you APPROVE or REJECT this change request?</ask>
|
|
75
|
+
<check if="user_rejects">Set cr_status = REJECTED. Skip steps 7-9 — proceed directly to step 10 to generate the CR record.</check>
|
|
76
|
+
<check if="user_approves">Set cr_status = APPROVED. Proceed with artifact cascade updates.</check>
|
|
77
|
+
</step>
|
|
78
|
+
|
|
79
|
+
<step n="7" title="Update PRD" optional="true" condition="requirements_impact != NONE AND cr_status == APPROVED">
|
|
80
|
+
<action>Skip if requirements_impact = NONE.</action>
|
|
81
|
+
<action>Spawn a subagent using the Agent tool: "Load {project-root}/_gaia/core/engine/workflow.xml, then process {project-root}/_gaia/lifecycle/workflows/2-planning/edit-prd/workflow.yaml as workflow-config. Run in YOLO mode. Follow the workflow engine instructions EXACTLY. Context: This is change request {cr_id}. Apply these changes to the PRD: {change_description}. Use CR ID {cr_id} when prompted."</action>
|
|
82
|
+
<action>When subagent returns: verify prd.md version note references {cr_id}. Record: prd_updated = true.</action>
|
|
83
|
+
</step>
|
|
84
|
+
|
|
85
|
+
<step n="8" title="Update Architecture" optional="true" condition="technical_impact != NONE AND cr_status == APPROVED">
|
|
86
|
+
<action>Skip if technical_impact = NONE.</action>
|
|
87
|
+
<action>If technical_impact = MINOR: spawn a subagent using the Agent tool: "Load {project-root}/_gaia/core/engine/workflow.xml, then process {project-root}/_gaia/lifecycle/workflows/3-solutioning/edit-architecture/workflow.yaml as workflow-config. Run in YOLO mode. Follow the workflow engine instructions EXACTLY. Context: This is change request {cr_id}. Apply these changes to the architecture: {change_description}. Technical impact is MINOR. Use CR ID {cr_id} when prompted."</action>
|
|
88
|
+
<action>If technical_impact = SIGNIFICANT: spawn a subagent using the Agent tool: "Load {project-root}/_gaia/core/engine/workflow.xml, then process {project-root}/_gaia/lifecycle/workflows/3-solutioning/edit-architecture/workflow.yaml as workflow-config. Run in YOLO mode. Follow the workflow engine instructions EXACTLY. Context: This is change request {cr_id}. Apply these changes to the architecture: {change_description}. Technical impact is SIGNIFICANT — adversarial review is required. Use CR ID {cr_id} when prompted."</action>
|
|
89
|
+
<action>If technical_impact = BREAKING: warn user — "BREAKING architectural change detected. Consider /gaia-create-arch for full regeneration, or /gaia-edit-arch for targeted major changes." Let user choose approach.</action>
|
|
90
|
+
<action>When subagent returns: verify architecture.md version note references {cr_id}. Record: architecture_updated = true.</action>
|
|
91
|
+
</step>
|
|
92
|
+
|
|
93
|
+
<step n="9" title="Update Stories" optional="true" condition="new_stories_needed OR existing_stories_affected AND cr_status == APPROVED">
|
|
94
|
+
<action>Skip if no new stories needed AND no existing stories affected.</action>
|
|
95
|
+
<action>If new stories needed: spawn a subagent using the Agent tool: "Load {project-root}/_gaia/core/engine/workflow.xml, then process {project-root}/_gaia/lifecycle/workflows/4-implementation/add-stories/workflow.yaml as workflow-config. Run in YOLO mode. Follow the workflow engine instructions EXACTLY. Context: Adding stories for change request {cr_id}. Requirements: {new_story_descriptions}."</action>
|
|
96
|
+
<action>When subagent returns: verify epics-and-stories.md has new stories with Source: {cr_id}. Record: stories_added = {count}.</action>
|
|
97
|
+
<action>If existing stories need scope changes: list affected stories with what needs to change — flag for manual update via /gaia-fix-story.</action>
|
|
98
|
+
<action>If sprint injection needed: inform user — "Run /gaia-correct-course with CR ID {cr_id} to inject new stories into current sprint."</action>
|
|
99
|
+
</step>
|
|
100
|
+
|
|
101
|
+
<step n="10" title="Generate Change Request Record">
|
|
102
|
+
<template-output file="{planning_artifacts}/change-request-{cr_id}.md">
|
|
103
|
+
Generate change request document with YAML frontmatter:
|
|
104
|
+
---
|
|
105
|
+
cr_id: "{cr_id}"
|
|
106
|
+
date: "{date}"
|
|
107
|
+
status: "{APPROVED|REJECTED}"
|
|
108
|
+
urgency: "{critical|high|normal}"
|
|
109
|
+
driver: "{source}"
|
|
110
|
+
requirements_impact: "{NONE|MINOR|SIGNIFICANT|BREAKING}"
|
|
111
|
+
technical_impact: "{NONE|MINOR|SIGNIFICANT|BREAKING}"
|
|
112
|
+
sprint_impact: "{ABSORBABLE|NEXT_SPRINT|MULTI_SPRINT}"
|
|
113
|
+
effort_estimate_points: {number}
|
|
114
|
+
---
|
|
115
|
+
Then detailed sections: Change Description, Impact Analysis (requirements, technical, sprint),
|
|
116
|
+
Affected Artifacts (what changed, what still needs manual update), Stories Created/Modified,
|
|
117
|
+
Cascade Status (completed updates vs pending), and Recommended Next Actions.
|
|
118
|
+
If REJECTED: include rejection reason and impact analysis for future reference.
|
|
119
|
+
</template-output>
|
|
120
|
+
<action>If cr_status == APPROVED and stories were added: recommend "/gaia-correct-course with CR ID {cr_id}" or "/gaia-create-story {story_key}" as next steps.</action>
|
|
121
|
+
<action>If cr_status == APPROVED and architecture update needed: recommend "/gaia-edit-arch to update architecture".</action>
|
|
122
|
+
</step>
|
|
123
|
+
</workflow>
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
name: change-request
|
|
2
|
+
description: 'Impact-driven change request with analysis, approval gate, and cascade updates'
|
|
3
|
+
module: lifecycle
|
|
4
|
+
agent: pm
|
|
5
|
+
config_resolved: "{installed_path}/.resolved/change-request.yaml"
|
|
6
|
+
config_source: "{project-root}/_gaia/lifecycle/config.yaml"
|
|
7
|
+
installed_path: "{project-root}/_gaia/lifecycle/workflows/4-implementation/change-request"
|
|
8
|
+
instructions: "{installed_path}/instructions.xml"
|
|
9
|
+
validation: "{installed_path}/checklist.md"
|
|
10
|
+
input_file_patterns:
|
|
11
|
+
prd:
|
|
12
|
+
whole: "{planning_artifacts}/prd.md"
|
|
13
|
+
load_strategy: "SELECTIVE_LOAD"
|
|
14
|
+
architecture:
|
|
15
|
+
whole: "{planning_artifacts}/architecture.md"
|
|
16
|
+
load_strategy: "SELECTIVE_LOAD"
|
|
17
|
+
epics:
|
|
18
|
+
whole: "{planning_artifacts}/epics-and-stories.md"
|
|
19
|
+
load_strategy: "SELECTIVE_LOAD"
|
|
20
|
+
sprint_status:
|
|
21
|
+
whole: "{implementation_artifacts}/sprint-status.yaml"
|
|
22
|
+
load_strategy: "FULL_LOAD"
|
|
23
|
+
test_plan:
|
|
24
|
+
whole: "{test_artifacts}/test-plan.md"
|
|
25
|
+
load_strategy: "SELECTIVE_LOAD"
|
|
26
|
+
traceability:
|
|
27
|
+
whole: "{test_artifacts}/traceability-matrix.md"
|
|
28
|
+
load_strategy: "SELECTIVE_LOAD"
|
|
29
|
+
quality_gates:
|
|
30
|
+
pre_start:
|
|
31
|
+
- check: "prd.md exists"
|
|
32
|
+
on_fail: "HALT: No PRD to assess impact against. Run /gaia-create-prd first."
|
|
33
|
+
on_error:
|
|
34
|
+
missing_file: "skip_and_note"
|
|
35
|
+
unresolved_variable: "halt"
|
|
36
|
+
|
|
37
|
+
output:
|
|
38
|
+
primary: "{planning_artifacts}/change-request-{cr_id}.md"
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Definition of Done Check'
|
|
3
|
+
validation-target: 'DoD validation for story review readiness'
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
## Checks
|
|
7
|
+
|
|
8
|
+
- [ ] Story file found and loaded
|
|
9
|
+
- [ ] Story status is in-progress or review
|
|
10
|
+
- [ ] All acceptance criteria checked (- [x])
|
|
11
|
+
- [ ] All tasks/subtasks checked (- [x])
|
|
12
|
+
- [ ] Test scenarios table populated
|
|
13
|
+
- [ ] Dev Agent Record has content
|
|
14
|
+
- [ ] Definition of Done section items all checked
|
|
15
|
+
- [ ] DoD items are not just template placeholder
|
|
16
|
+
- [ ] DoD Check Report appended to story file
|
|
17
|
+
- [ ] Overall verdict determined (PASS/FAIL)
|
|
18
|
+
- [ ] Next step suggestion provided
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
<workflow name="check-dod">
|
|
2
|
+
<critical>
|
|
3
|
+
<mandate>This is a validation check — do NOT modify story status or sprint-status.yaml</mandate>
|
|
4
|
+
<mandate>Report results by appending a DoD Check Report section to the story file</mandate>
|
|
5
|
+
<mandate>Use glob {story_key}-*.md to find the story file</mandate>
|
|
6
|
+
</critical>
|
|
7
|
+
<step n="1" title="Load Story">
|
|
8
|
+
<ask>Which story to check? (provide story key, e.g., E1-S1)</ask>
|
|
9
|
+
<action>Find and read the story file matching {story_key}-*.md in {implementation_artifacts}/</action>
|
|
10
|
+
<action>Verify story status is 'in-progress' or 'review' — HALT if story is in backlog, validating, ready-for-dev, or done</action>
|
|
11
|
+
<action>Read the story template from {project-root}/_gaia/lifecycle/templates/story-template.md for reference on expected sections</action>
|
|
12
|
+
</step>
|
|
13
|
+
<step n="2" title="Check Implicit DoD Criteria">
|
|
14
|
+
<action>Check: All acceptance criteria are marked complete (- [x]) in the "Acceptance Criteria" section. Count total vs checked.</action>
|
|
15
|
+
<action>Check: All tasks and subtasks are marked complete (- [x]) in the "Tasks / Subtasks" section. Count total vs checked.</action>
|
|
16
|
+
<action>Check: Test Scenarios table is populated (at least one non-placeholder row)</action>
|
|
17
|
+
<action>Check: Dev Agent Record section has content (agent, files changed list populated)</action>
|
|
18
|
+
</step>
|
|
19
|
+
<step n="3" title="Check Explicit DoD Items">
|
|
20
|
+
<action>Read the "Definition of Done" section of the story file</action>
|
|
21
|
+
<action>For each checkbox item: record whether it is checked (- [x]) or unchecked (- [ ])</action>
|
|
22
|
+
<action>If the DoD section only contains the template placeholder "Define all the Definition of Done" — report WARNING: DoD items were never defined for this story</action>
|
|
23
|
+
</step>
|
|
24
|
+
<step n="4" title="Generate DoD Check Report">
|
|
25
|
+
<action>Determine overall verdict: PASS (all implicit + explicit items checked) or FAIL (any unchecked)</action>
|
|
26
|
+
<action>Append DoD Check Report at the END of the story file, after a horizontal rule (---) separator</action>
|
|
27
|
+
<template-output file="{implementation_artifacts}/{story_key}-{story_title_slug}.md">
|
|
28
|
+
Append a section titled "## DoD Check Report" at the very end of the story file, preceded by a --- separator. Include:
|
|
29
|
+
- Date of check
|
|
30
|
+
- Overall verdict: PASS or FAIL
|
|
31
|
+
- Implicit criteria results table:
|
|
32
|
+
|
|
33
|
+
| Criterion | Status | Details |
|
|
34
|
+
|-----------|--------|---------|
|
|
35
|
+
| Acceptance Criteria | n/m checked | list unchecked if any |
|
|
36
|
+
| Subtasks | n/m checked | list unchecked if any |
|
|
37
|
+
| Test Scenarios | populated/empty | — |
|
|
38
|
+
| Dev Agent Record | populated/empty | — |
|
|
39
|
+
|
|
40
|
+
- Explicit DoD items results table:
|
|
41
|
+
|
|
42
|
+
| # | Item | Status |
|
|
43
|
+
|---|------|--------|
|
|
44
|
+
| 1 | {item text} | PASS/FAIL |
|
|
45
|
+
|
|
46
|
+
- If FAIL: list all unchecked items and recommend actions
|
|
47
|
+
- If PASS: confirm story is ready for review gate (/gaia-run-all-reviews)
|
|
48
|
+
</template-output>
|
|
49
|
+
<next-step>
|
|
50
|
+
<on_pass>/gaia-run-all-reviews — Start the review gate</on_pass>
|
|
51
|
+
<on_fail>/gaia-dev-story — Resume implementation to address unchecked DoD items</on_fail>
|
|
52
|
+
</next-step>
|
|
53
|
+
</step>
|
|
54
|
+
</workflow>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
name: check-dod
|
|
2
|
+
description: 'Check Definition of Done criteria for a story before review transition'
|
|
3
|
+
module: lifecycle
|
|
4
|
+
agent: sm
|
|
5
|
+
config_resolved: "{installed_path}/.resolved/check-dod.yaml"
|
|
6
|
+
config_source: "{project-root}/_gaia/lifecycle/config.yaml"
|
|
7
|
+
installed_path: "{project-root}/_gaia/lifecycle/workflows/4-implementation/check-dod"
|
|
8
|
+
instructions: "{installed_path}/instructions.xml"
|
|
9
|
+
validation: "{installed_path}/checklist.md"
|
|
10
|
+
quality_gates:
|
|
11
|
+
pre_start:
|
|
12
|
+
- check: "story_status in ['in-progress', 'review']"
|
|
13
|
+
on_fail: "HALT: Story must be in-progress or review status to check DoD. Run /gaia-dev-story to start implementation first."
|
|
14
|
+
on_error:
|
|
15
|
+
missing_file: "ask_user"
|
|
16
|
+
unresolved_variable: "halt"
|
|
17
|
+
|
|
18
|
+
output:
|
|
19
|
+
primary: "{implementation_artifacts}/{story_key}-{story_title_slug}.md"
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Review Gate Check'
|
|
3
|
+
validation-target: 'Composite review gate evaluation and status transition'
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
## Checks
|
|
7
|
+
|
|
8
|
+
- [ ] Story file found and loaded
|
|
9
|
+
- [ ] Story status is review or done
|
|
10
|
+
- [ ] Review Gate table has exactly 6 rows
|
|
11
|
+
- [ ] All 6 review statuses parsed (PASSED/FAILED/PENDING)
|
|
12
|
+
- [ ] Shared protocol review-gate-check.xml loaded and executed
|
|
13
|
+
- [ ] DoD validation performed before transition
|
|
14
|
+
- [ ] Status transition applied correctly (or blocked with reason)
|
|
15
|
+
- [ ] Gate Status Report appended to story file
|
|
16
|
+
- [ ] Overall verdict determined
|
|
17
|
+
- [ ] Next step suggestion provided
|
|
18
|
+
- [ ] sprint-status.yaml NOT modified
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
<workflow name="check-review-gate">
|
|
2
|
+
<critical>
|
|
3
|
+
<mandate>Do NOT re-run any reviews — this workflow only inspects the current Review Gate state</mandate>
|
|
4
|
+
<mandate>Do NOT write to sprint-status.yaml — story file frontmatter is the source of truth</mandate>
|
|
5
|
+
<mandate>Use the shared protocol at {project-root}/_gaia/core/protocols/review-gate-check.xml for gate evaluation</mandate>
|
|
6
|
+
<mandate>Use glob {story_key}-*.md to find the story file</mandate>
|
|
7
|
+
</critical>
|
|
8
|
+
<step n="1" title="Load Story">
|
|
9
|
+
<ask>Which story to check? (provide story key, e.g., E1-S1)</ask>
|
|
10
|
+
<action>Find and read the story file matching {story_key}-*.md in {implementation_artifacts}/</action>
|
|
11
|
+
<action>Verify story status is 'review' or 'done' — HALT if story is in any other status</action>
|
|
12
|
+
</step>
|
|
13
|
+
<step n="2" title="Evaluate Review Gate">
|
|
14
|
+
<action>Load and execute the shared protocol: {project-root}/_gaia/core/protocols/review-gate-check.xml</action>
|
|
15
|
+
<action>Parse the Review Gate table — verify exactly 6 rows exist (Code Review, QA Tests, Security Review, Test Automation, Test Review, Performance Review)</action>
|
|
16
|
+
<action>Classify each row as PASSED, FAILED, or PENDING</action>
|
|
17
|
+
<action>If any row is missing or has an invalid status, flag it as an error</action>
|
|
18
|
+
</step>
|
|
19
|
+
<step n="3" title="Execute Gate Transition">
|
|
20
|
+
<action>If ALL 6 rows PASSED AND all Definition of Done items checked AND story status is 'review': transition story status to 'done' in story file frontmatter ONLY</action>
|
|
21
|
+
<action>If ALL 6 rows PASSED but DoD incomplete: log "BLOCKED: DoD incomplete" — do NOT transition</action>
|
|
22
|
+
<action>If ALL 6 rows PASSED AND story already 'done': log "Story already done. No update needed."</action>
|
|
23
|
+
<action>If any row FAILED or PENDING: do NOT change story status</action>
|
|
24
|
+
</step>
|
|
25
|
+
<step n="4" title="Generate Gate Status Report">
|
|
26
|
+
<action>Append Gate Status Report at the END of the story file, after a horizontal rule (---) separator</action>
|
|
27
|
+
<template-output file="{implementation_artifacts}/{story_key}-{story_title_slug}.md">
|
|
28
|
+
Append a section titled "## Review Gate Status Report" at the very end of the story file, preceded by a --- separator. Include:
|
|
29
|
+
- Date of check
|
|
30
|
+
- Overall verdict: ALL PASSED | HAS FAILURES | HAS PENDING
|
|
31
|
+
- Gate summary table:
|
|
32
|
+
|
|
33
|
+
| Review | Status | Report |
|
|
34
|
+
|--------|--------|--------|
|
|
35
|
+
| Code Review | PASSED/FAILED/PENDING | link or — |
|
|
36
|
+
| QA Tests | PASSED/FAILED/PENDING | link or — |
|
|
37
|
+
| Security Review | PASSED/FAILED/PENDING | link or — |
|
|
38
|
+
| Test Automation | PASSED/FAILED/PENDING | link or — |
|
|
39
|
+
| Test Review | PASSED/FAILED/PENDING | link or — |
|
|
40
|
+
| Performance Review | PASSED/FAILED/PENDING | link or — |
|
|
41
|
+
|
|
42
|
+
- Transition result: what action was taken (transitioned to done / blocked by DoD / no change)
|
|
43
|
+
- If FAILED: list failed reviews and recommend re-running them individually
|
|
44
|
+
- If PENDING: list pending reviews and recommend running them or /gaia-run-all-reviews
|
|
45
|
+
- If ALL PASSED: confirm story is done
|
|
46
|
+
</template-output>
|
|
47
|
+
<next-step>
|
|
48
|
+
<on_all_passed>Story is done — proceed to /gaia-sprint-status to update sprint tracking</on_all_passed>
|
|
49
|
+
<on_failures>Re-run failed reviews individually, then run /gaia-check-review-gate again</on_failures>
|
|
50
|
+
<on_pending>Run /gaia-run-all-reviews to complete remaining reviews</on_pending>
|
|
51
|
+
</next-step>
|
|
52
|
+
</step>
|
|
53
|
+
</workflow>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
name: check-review-gate
|
|
2
|
+
description: 'Check composite review gate status and transition story to done if all reviews pass'
|
|
3
|
+
module: lifecycle
|
|
4
|
+
agent: sm
|
|
5
|
+
config_resolved: "{installed_path}/.resolved/check-review-gate.yaml"
|
|
6
|
+
config_source: "{project-root}/_gaia/lifecycle/config.yaml"
|
|
7
|
+
installed_path: "{project-root}/_gaia/lifecycle/workflows/4-implementation/check-review-gate"
|
|
8
|
+
instructions: "{installed_path}/instructions.xml"
|
|
9
|
+
validation: "{installed_path}/checklist.md"
|
|
10
|
+
quality_gates:
|
|
11
|
+
pre_start:
|
|
12
|
+
- check: "story_status in ['review', 'done']"
|
|
13
|
+
on_fail: "HALT: Story must be in review or done status to check review gate. Complete /gaia-dev-story first."
|
|
14
|
+
on_error:
|
|
15
|
+
missing_file: "ask_user"
|
|
16
|
+
unresolved_variable: "halt"
|
|
17
|
+
|
|
18
|
+
output:
|
|
19
|
+
primary: "{implementation_artifacts}/{story_key}-{story_title_slug}.md"
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Code Review Validation'
|
|
3
|
+
validation-target: 'Code review report'
|
|
4
|
+
---
|
|
5
|
+
## Review
|
|
6
|
+
- [ ] All changed files reviewed
|
|
7
|
+
- [ ] Security issues checked
|
|
8
|
+
- [ ] Performance concerns noted
|
|
9
|
+
- [ ] Test coverage verified
|
|
10
|
+
## Decision
|
|
11
|
+
- [ ] APPROVE or REQUEST_CHANGES clearly stated
|
|
12
|
+
## Review Gate
|
|
13
|
+
- [ ] Review Gate table updated in story file
|
|
14
|
+
- [ ] If APPROVE: Code Review row shows PASSED with report link
|
|
15
|
+
- [ ] If REQUEST_CHANGES: Code Review row shows FAILED, story status set to in-progress
|
|
16
|
+
- [ ] Review gate check protocol invoked
|
|
17
|
+
## Output Verification
|
|
18
|
+
- [ ] Review report exists at {implementation_artifacts}/{story_key}-review.md
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
<workflow name="code-review">
|
|
2
|
+
<critical>
|
|
3
|
+
<mandate>Story must be in review status before code review</mandate>
|
|
4
|
+
<mandate>Output must include machine-readable APPROVE or REQUEST_CHANGES</mandate>
|
|
5
|
+
<mandate>When reading or running application source code, use {project-path} as the base directory — NOT {project-root}. {project-path} is resolved by the engine from global.yaml.</mandate>
|
|
6
|
+
</critical>
|
|
7
|
+
<step n="1" title="Load Story">
|
|
8
|
+
<action>Resolve story file: search for {story_key}-*.md in {implementation_artifacts}/ using glob pattern to match the full filename ({story_key}-{title_slug}.md)</action>
|
|
9
|
+
<action>Read story file, identify files changed</action>
|
|
10
|
+
</step>
|
|
11
|
+
<step n="2" title="Status Gate">
|
|
12
|
+
<action>Verify story is in 'review' status</action>
|
|
13
|
+
<check if="status != review">HALT: Story must be in review status</check>
|
|
14
|
+
</step>
|
|
15
|
+
<step n="3" title="Code Review">
|
|
16
|
+
<action>Review each changed file for: correctness, security, performance, readability, test coverage</action>
|
|
17
|
+
</step>
|
|
18
|
+
<step n="3b" title="Architecture Conformance">
|
|
19
|
+
<action>Load {planning_artifacts}/architecture.md — extract ADRs, component hierarchy, layer boundaries, and API patterns</action>
|
|
20
|
+
<action>For each changed file, verify:
|
|
21
|
+
- Component placement follows the documented hierarchy (e.g., controllers in controller layer, services in service layer)
|
|
22
|
+
- Dependencies flow in the correct direction per architecture (no upward dependencies across layers)
|
|
23
|
+
- API patterns match the architecture specification (naming, versioning, error format)
|
|
24
|
+
- Referenced ADRs exist and have status Accepted — flag if implementation contradicts an ADR decision
|
|
25
|
+
</action>
|
|
26
|
+
<action>Include an "Architecture Conformance" section in findings with PASS/FAIL per check</action>
|
|
27
|
+
</step>
|
|
28
|
+
<step n="4" title="Generate Findings">
|
|
29
|
+
<action>List issues by severity: critical, warning, suggestion</action>
|
|
30
|
+
</step>
|
|
31
|
+
<step n="5" title="Decision">
|
|
32
|
+
<action>If no critical issues: verdict is APPROVE</action>
|
|
33
|
+
<action>If critical issues found: verdict is REQUEST_CHANGES</action>
|
|
34
|
+
</step>
|
|
35
|
+
<step n="6" title="Generate Output">
|
|
36
|
+
<template-output file="{implementation_artifacts}/{story_key}-review.md">
|
|
37
|
+
Generate review report with machine-readable verdict (APPROVE/REQUEST_CHANGES) and findings.
|
|
38
|
+
</template-output>
|
|
39
|
+
</step>
|
|
40
|
+
<step n="7" title="Update Review Gate and Transition">
|
|
41
|
+
<action>Read story file, locate Review Gate table</action>
|
|
42
|
+
<action>If APPROVE: update Code Review row status to PASSED, link report file</action>
|
|
43
|
+
<action>If REQUEST_CHANGES: update Code Review row status to REQUEST_CHANGES, link report file. Do NOT change story status — the review-gate-check protocol or run-all-reviews orchestrator handles status transitions.</action>
|
|
44
|
+
<template-output file="{implementation_artifacts}/{story_key}-*.md">
|
|
45
|
+
Update story file Review Gate table with code review result and report link.
|
|
46
|
+
</template-output>
|
|
47
|
+
<action>Inform user: "Note: sprint-status.yaml may now be out of sync. Run /gaia-sprint-status to reconcile."</action>
|
|
48
|
+
<invoke-protocol name="review-gate-check" file="{project-root}/_gaia/core/protocols/review-gate-check.xml" />
|
|
49
|
+
</step>
|
|
50
|
+
</workflow>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
name: code-review
|
|
2
|
+
description: 'Perform code review on implemented story'
|
|
3
|
+
module: lifecycle
|
|
4
|
+
agent: dev-*
|
|
5
|
+
config_resolved: "{installed_path}/.resolved/code-review.yaml"
|
|
6
|
+
config_source: "{project-root}/_gaia/lifecycle/config.yaml"
|
|
7
|
+
installed_path: "{project-root}/_gaia/lifecycle/workflows/4-implementation/code-review"
|
|
8
|
+
instructions: "{installed_path}/instructions.xml"
|
|
9
|
+
validation: "{installed_path}/checklist.md"
|
|
10
|
+
input_file_patterns:
|
|
11
|
+
architecture:
|
|
12
|
+
whole: "{planning_artifacts}/architecture.md"
|
|
13
|
+
load_strategy: "INDEX_GUIDED"
|
|
14
|
+
quality_gates:
|
|
15
|
+
pre_start:
|
|
16
|
+
- check: "story_status == 'review'"
|
|
17
|
+
on_fail: "HALT: Story must be in review status before code review. Complete /gaia-dev-story first."
|
|
18
|
+
on_error:
|
|
19
|
+
missing_file: "ask_user"
|
|
20
|
+
unresolved_variable: "halt"
|
|
21
|
+
|
|
22
|
+
output:
|
|
23
|
+
primary: "{test_artifacts}/{story_key}-code-review.md"
|
|
24
|
+
secondary: "{implementation_artifacts}/{story_key}-*.md"
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Course Correction Validation'
|
|
3
|
+
validation-target: 'Updated sprint plan'
|
|
4
|
+
---
|
|
5
|
+
## Change
|
|
6
|
+
- [ ] Reason for change documented
|
|
7
|
+
- [ ] Impact analysis completed
|
|
8
|
+
- [ ] CR ID recorded (if applicable)
|
|
9
|
+
## Adjustment
|
|
10
|
+
- [ ] Sprint plan updated
|
|
11
|
+
- [ ] sprint-status.yaml updated
|
|
12
|
+
- [ ] Changes approved by user
|
|
13
|
+
## New Story Injection (if applicable)
|
|
14
|
+
- [ ] Injected stories exist in epics-and-stories.md
|
|
15
|
+
- [ ] Velocity impact assessed
|
|
16
|
+
- [ ] Story file creation recommended for new stories
|
|
17
|
+
## Action Item Tracking
|
|
18
|
+
- [ ] Action items persisted to sprint-status.yaml with tracking fields (id, description, assigned_to, due_date, status)
|
|
19
|
+
- [ ] Existing correction_action_items preserved (append only)
|
|
20
|
+
## Change Request (if applicable)
|
|
21
|
+
- [ ] Change request record updated with sprint assignment
|