gaia-framework 1.57.0 → 1.57.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/README.md +1 -1
- package/bin/gaia-framework.js +27 -19
- package/gaia-install.sh +1 -1
- package/package.json +15 -11
- package/.claude/commands/gaia-a11y-testing.md +0 -17
- package/.claude/commands/gaia-action-items.md +0 -23
- package/.claude/commands/gaia-add-feature.md +0 -17
- package/.claude/commands/gaia-add-stories.md +0 -17
- package/.claude/commands/gaia-advanced-elicitation.md +0 -17
- package/.claude/commands/gaia-adversarial.md +0 -15
- package/.claude/commands/gaia-agent-analyst.md +0 -14
- package/.claude/commands/gaia-agent-architect.md +0 -14
- package/.claude/commands/gaia-agent-brainstorming.md +0 -14
- package/.claude/commands/gaia-agent-data-engineer.md +0 -14
- package/.claude/commands/gaia-agent-design-thinking.md +0 -14
- package/.claude/commands/gaia-agent-dev-angular.md +0 -14
- package/.claude/commands/gaia-agent-dev-flutter.md +0 -14
- package/.claude/commands/gaia-agent-dev-go.md +0 -14
- package/.claude/commands/gaia-agent-dev-java.md +0 -14
- package/.claude/commands/gaia-agent-dev-mobile.md +0 -14
- package/.claude/commands/gaia-agent-dev-python.md +0 -14
- package/.claude/commands/gaia-agent-dev-typescript.md +0 -14
- package/.claude/commands/gaia-agent-devops.md +0 -14
- package/.claude/commands/gaia-agent-innovation.md +0 -14
- package/.claude/commands/gaia-agent-performance.md +0 -14
- package/.claude/commands/gaia-agent-pm.md +0 -14
- package/.claude/commands/gaia-agent-presentation.md +0 -14
- package/.claude/commands/gaia-agent-problem-solver.md +0 -14
- package/.claude/commands/gaia-agent-qa.md +0 -14
- package/.claude/commands/gaia-agent-security.md +0 -14
- package/.claude/commands/gaia-agent-sm.md +0 -14
- package/.claude/commands/gaia-agent-storyteller.md +0 -14
- package/.claude/commands/gaia-agent-tech-writer.md +0 -14
- package/.claude/commands/gaia-agent-test-architect.md +0 -14
- package/.claude/commands/gaia-agent-ux-designer.md +0 -14
- package/.claude/commands/gaia-agent-validator.md +0 -14
- package/.claude/commands/gaia-atdd.md +0 -17
- package/.claude/commands/gaia-brainstorm.md +0 -17
- package/.claude/commands/gaia-brainstorming.md +0 -17
- package/.claude/commands/gaia-brownfield.md +0 -17
- package/.claude/commands/gaia-build-configs.md +0 -22
- package/.claude/commands/gaia-change-request.md +0 -11
- package/.claude/commands/gaia-changelog.md +0 -16
- package/.claude/commands/gaia-check-dod.md +0 -17
- package/.claude/commands/gaia-check-review-gate.md +0 -17
- package/.claude/commands/gaia-ci-setup.md +0 -17
- package/.claude/commands/gaia-code-review.md +0 -17
- package/.claude/commands/gaia-correct-course.md +0 -17
- package/.claude/commands/gaia-create-arch.md +0 -17
- package/.claude/commands/gaia-create-epics.md +0 -17
- package/.claude/commands/gaia-create-prd.md +0 -17
- package/.claude/commands/gaia-create-story.md +0 -23
- package/.claude/commands/gaia-create-ux.md +0 -17
- package/.claude/commands/gaia-creative-sprint.md +0 -17
- package/.claude/commands/gaia-deploy-checklist.md +0 -17
- package/.claude/commands/gaia-design-thinking.md +0 -17
- package/.claude/commands/gaia-dev-story.md +0 -23
- package/.claude/commands/gaia-document-project.md +0 -17
- package/.claude/commands/gaia-domain-research.md +0 -17
- package/.claude/commands/gaia-edge-cases.md +0 -15
- package/.claude/commands/gaia-edit-arch.md +0 -17
- package/.claude/commands/gaia-edit-prd.md +0 -17
- package/.claude/commands/gaia-edit-test-plan.md +0 -17
- package/.claude/commands/gaia-editorial-prose.md +0 -15
- package/.claude/commands/gaia-editorial-structure.md +0 -15
- package/.claude/commands/gaia-epic-status.md +0 -17
- package/.claude/commands/gaia-fix-story.md +0 -17
- package/.claude/commands/gaia-help.md +0 -15
- package/.claude/commands/gaia-index-docs.md +0 -15
- package/.claude/commands/gaia-infra-design.md +0 -17
- package/.claude/commands/gaia-innovation.md +0 -17
- package/.claude/commands/gaia-market-research.md +0 -17
- package/.claude/commands/gaia-memory-hygiene.md +0 -17
- package/.claude/commands/gaia-merge-docs.md +0 -16
- package/.claude/commands/gaia-mobile-testing.md +0 -17
- package/.claude/commands/gaia-nfr.md +0 -17
- package/.claude/commands/gaia-party.md +0 -17
- package/.claude/commands/gaia-perf-testing.md +0 -17
- package/.claude/commands/gaia-performance-review.md +0 -17
- package/.claude/commands/gaia-pitch-deck.md +0 -17
- package/.claude/commands/gaia-post-deploy.md +0 -17
- package/.claude/commands/gaia-problem-solving.md +0 -17
- package/.claude/commands/gaia-product-brief.md +0 -17
- package/.claude/commands/gaia-project-context.md +0 -17
- package/.claude/commands/gaia-qa-tests.md +0 -17
- package/.claude/commands/gaia-quick-dev.md +0 -17
- package/.claude/commands/gaia-quick-spec.md +0 -17
- package/.claude/commands/gaia-readiness-check.md +0 -17
- package/.claude/commands/gaia-refresh-ground-truth.md +0 -17
- package/.claude/commands/gaia-release-plan.md +0 -17
- package/.claude/commands/gaia-resume.md +0 -25
- package/.claude/commands/gaia-retro.md +0 -20
- package/.claude/commands/gaia-review-a11y.md +0 -16
- package/.claude/commands/gaia-review-api.md +0 -16
- package/.claude/commands/gaia-review-deps.md +0 -16
- package/.claude/commands/gaia-review-perf.md +0 -16
- package/.claude/commands/gaia-review-security.md +0 -16
- package/.claude/commands/gaia-rollback-plan.md +0 -17
- package/.claude/commands/gaia-run-all-reviews.md +0 -17
- package/.claude/commands/gaia-security-review.md +0 -17
- package/.claude/commands/gaia-shard-doc.md +0 -15
- package/.claude/commands/gaia-slide-deck.md +0 -17
- package/.claude/commands/gaia-sprint-plan.md +0 -17
- package/.claude/commands/gaia-sprint-status.md +0 -17
- package/.claude/commands/gaia-storytelling.md +0 -17
- package/.claude/commands/gaia-summarize.md +0 -16
- package/.claude/commands/gaia-teach-testing.md +0 -17
- package/.claude/commands/gaia-tech-debt-review.md +0 -20
- package/.claude/commands/gaia-tech-research.md +0 -17
- package/.claude/commands/gaia-test-automate.md +0 -17
- package/.claude/commands/gaia-test-design.md +0 -17
- package/.claude/commands/gaia-test-framework.md +0 -17
- package/.claude/commands/gaia-test-review.md +0 -17
- package/.claude/commands/gaia-threat-model.md +0 -17
- package/.claude/commands/gaia-trace.md +0 -17
- package/.claude/commands/gaia-triage-findings.md +0 -20
- package/.claude/commands/gaia-val-validate-plan.md +0 -17
- package/.claude/commands/gaia-val-validate.md +0 -17
- package/.claude/commands/gaia-validate-framework.md +0 -17
- package/.claude/commands/gaia-validate-prd.md +0 -17
- package/.claude/commands/gaia-validate-story.md +0 -22
- package/.claude/commands/gaia.md +0 -32
- package/CLAUDE.md +0 -165
- package/_gaia/_config/agent-manifest.csv +0 -29
- package/_gaia/_config/agents/CUSTOMIZATION-README.md +0 -117
- package/_gaia/_config/files-manifest.csv +0 -30
- package/_gaia/_config/gaia-help.csv +0 -82
- package/_gaia/_config/global.yaml +0 -45
- package/_gaia/_config/lifecycle-sequence.yaml +0 -593
- package/_gaia/_config/manifest.yaml +0 -24
- package/_gaia/_config/skill-manifest.csv +0 -12
- package/_gaia/_config/task-manifest.csv +0 -17
- package/_gaia/_config/workflow-manifest.csv +0 -73
- package/_gaia/_memory/tier2-results/.gitkeep +0 -0
- package/_gaia/_memory/tier2-results/checkpoint-resume-2026-03-24.yaml +0 -6
- package/_gaia/_memory/tier2-results/engine-scenarios-2026-03-22.yaml +0 -14
- package/_gaia/core/.resolved/.gitkeep +0 -0
- package/_gaia/core/agents/orchestrator.md +0 -303
- package/_gaia/core/config.yaml +0 -8
- package/_gaia/core/engine/error-recovery.xml +0 -28
- package/_gaia/core/engine/protocols/discover-inputs.xml +0 -31
- package/_gaia/core/engine/protocols/handoff.xml +0 -21
- package/_gaia/core/engine/protocols/preflight-check.xml +0 -31
- package/_gaia/core/engine/task-runner.xml +0 -63
- package/_gaia/core/engine/workflow.xml +0 -225
- package/_gaia/core/module-help.csv +0 -21
- package/_gaia/core/protocols/agent-specification-protocol.md +0 -103
- package/_gaia/core/protocols/review-gate-check.xml +0 -29
- package/_gaia/core/protocols/sprint-status-write-safety.xml +0 -35
- package/_gaia/core/protocols/status-sync.xml +0 -49
- package/_gaia/core/tasks/editorial-review-prose.xml +0 -42
- package/_gaia/core/tasks/editorial-review-structure.xml +0 -43
- package/_gaia/core/tasks/generate-changelog.xml +0 -35
- package/_gaia/core/tasks/help.md +0 -45
- package/_gaia/core/tasks/index-docs.xml +0 -46
- package/_gaia/core/tasks/merge-docs.xml +0 -34
- package/_gaia/core/tasks/review-accessibility.xml +0 -47
- package/_gaia/core/tasks/review-adversarial.xml +0 -55
- package/_gaia/core/tasks/review-api-design.xml +0 -38
- package/_gaia/core/tasks/review-dependency-audit.xml +0 -38
- package/_gaia/core/tasks/review-edge-case-hunter.xml +0 -52
- package/_gaia/core/tasks/review-performance.xml +0 -49
- package/_gaia/core/tasks/review-security.xml +0 -37
- package/_gaia/core/tasks/shard-doc.xml +0 -49
- package/_gaia/core/tasks/summarize-doc.xml +0 -33
- package/_gaia/core/tasks/validate-framework.xml +0 -66
- package/_gaia/core/workflows/brainstorming/steps/step-01-session-setup.md +0 -7
- package/_gaia/core/workflows/brainstorming/steps/step-02-technique-selection.md +0 -20
- package/_gaia/core/workflows/brainstorming/steps/step-03-technique-execution.md +0 -11
- package/_gaia/core/workflows/brainstorming/steps/step-04-idea-organization.md +0 -14
- package/_gaia/core/workflows/brainstorming/template.md +0 -38
- package/_gaia/core/workflows/brainstorming/workflow.yaml +0 -26
- package/_gaia/core/workflows/party-mode/steps/step-01-agent-loading.md +0 -11
- package/_gaia/core/workflows/party-mode/steps/step-02-discussion-orchestration.md +0 -16
- package/_gaia/core/workflows/party-mode/steps/step-03-graceful-exit.md +0 -10
- package/_gaia/core/workflows/party-mode/workflow.yaml +0 -23
- package/_gaia/creative/.resolved/.gitkeep +0 -0
- package/_gaia/creative/agents/brainstorming-coach.md +0 -93
- package/_gaia/creative/agents/design-thinking-coach.md +0 -91
- package/_gaia/creative/agents/innovation-strategist.md +0 -89
- package/_gaia/creative/agents/presentation-designer.md +0 -99
- package/_gaia/creative/agents/problem-solver.md +0 -90
- package/_gaia/creative/agents/storyteller.md +0 -90
- package/_gaia/creative/config.yaml +0 -8
- package/_gaia/creative/data/design-methods.csv +0 -28
- package/_gaia/creative/data/innovation-frameworks.csv +0 -15
- package/_gaia/creative/data/solving-methods.csv +0 -14
- package/_gaia/creative/data/story-types.csv +0 -12
- package/_gaia/creative/module-help.csv +0 -8
- package/_gaia/creative/teams/creative-squad.yaml +0 -10
- package/_gaia/creative/workflows/creative-sprint/checklist.md +0 -10
- package/_gaia/creative/workflows/creative-sprint/instructions.xml +0 -40
- package/_gaia/creative/workflows/creative-sprint/workflow.yaml +0 -11
- package/_gaia/creative/workflows/design-thinking/checklist.md +0 -25
- package/_gaia/creative/workflows/design-thinking/instructions.xml +0 -38
- package/_gaia/creative/workflows/design-thinking/workflow.yaml +0 -13
- package/_gaia/creative/workflows/innovation-strategy/checklist.md +0 -26
- package/_gaia/creative/workflows/innovation-strategy/instructions.xml +0 -34
- package/_gaia/creative/workflows/innovation-strategy/workflow.yaml +0 -13
- package/_gaia/creative/workflows/pitch-deck/checklist.md +0 -22
- package/_gaia/creative/workflows/pitch-deck/instructions.xml +0 -49
- package/_gaia/creative/workflows/pitch-deck/workflow.yaml +0 -15
- package/_gaia/creative/workflows/problem-solving/checklist.md +0 -26
- package/_gaia/creative/workflows/problem-solving/instructions.xml +0 -39
- package/_gaia/creative/workflows/problem-solving/workflow.yaml +0 -13
- package/_gaia/creative/workflows/slide-deck/checklist.md +0 -21
- package/_gaia/creative/workflows/slide-deck/instructions.xml +0 -39
- package/_gaia/creative/workflows/slide-deck/workflow.yaml +0 -15
- package/_gaia/creative/workflows/storytelling/checklist.md +0 -26
- package/_gaia/creative/workflows/storytelling/instructions.xml +0 -38
- package/_gaia/creative/workflows/storytelling/workflow.yaml +0 -13
- package/_gaia/dev/agents/_base-dev.md +0 -180
- package/_gaia/dev/agents/angular-dev.md +0 -70
- package/_gaia/dev/agents/flutter-dev.md +0 -70
- package/_gaia/dev/agents/go-dev.md +0 -72
- package/_gaia/dev/agents/java-dev.md +0 -70
- package/_gaia/dev/agents/mobile-dev.md +0 -70
- package/_gaia/dev/agents/python-dev.md +0 -70
- package/_gaia/dev/agents/typescript-dev.md +0 -70
- package/_gaia/dev/config.yaml +0 -11
- package/_gaia/dev/knowledge/_index.csv +0 -25
- package/_gaia/dev/knowledge/angular/angular-conventions.md +0 -119
- package/_gaia/dev/knowledge/angular/angular-patterns.md +0 -126
- package/_gaia/dev/knowledge/angular/ngrx-state.md +0 -124
- package/_gaia/dev/knowledge/angular/rxjs-patterns.md +0 -119
- package/_gaia/dev/knowledge/flutter/dart-conventions.md +0 -143
- package/_gaia/dev/knowledge/flutter/platform-channels.md +0 -144
- package/_gaia/dev/knowledge/flutter/state-management.md +0 -144
- package/_gaia/dev/knowledge/flutter/widget-patterns.md +0 -134
- package/_gaia/dev/knowledge/go/gin-fiber-patterns.md +0 -40
- package/_gaia/dev/knowledge/go/go-conventions.md +0 -54
- package/_gaia/dev/knowledge/go/go-stdlib-patterns.md +0 -39
- package/_gaia/dev/knowledge/go/go-testing-patterns.md +0 -39
- package/_gaia/dev/knowledge/java/jpa-patterns.md +0 -136
- package/_gaia/dev/knowledge/java/maven-gradle.md +0 -189
- package/_gaia/dev/knowledge/java/microservices.md +0 -159
- package/_gaia/dev/knowledge/java/spring-boot-patterns.md +0 -160
- package/_gaia/dev/knowledge/mobile/kotlin-patterns.md +0 -193
- package/_gaia/dev/knowledge/mobile/mobile-testing.md +0 -186
- package/_gaia/dev/knowledge/mobile/react-native-patterns.md +0 -162
- package/_gaia/dev/knowledge/mobile/swift-patterns.md +0 -190
- package/_gaia/dev/knowledge/python/data-pipelines.md +0 -169
- package/_gaia/dev/knowledge/python/django-patterns.md +0 -145
- package/_gaia/dev/knowledge/python/fastapi-patterns.md +0 -164
- package/_gaia/dev/knowledge/python/python-conventions.md +0 -170
- package/_gaia/dev/knowledge/typescript/express-patterns.md +0 -188
- package/_gaia/dev/knowledge/typescript/nextjs-patterns.md +0 -166
- package/_gaia/dev/knowledge/typescript/react-patterns.md +0 -176
- package/_gaia/dev/knowledge/typescript/ts-conventions.md +0 -133
- package/_gaia/dev/module-help.csv +0 -10
- package/_gaia/dev/skills/_skill-index.yaml +0 -55
- package/_gaia/dev/skills/api-design.md +0 -229
- package/_gaia/dev/skills/code-review-standards.md +0 -226
- package/_gaia/dev/skills/database-design.md +0 -172
- package/_gaia/dev/skills/docker-workflow.md +0 -222
- package/_gaia/dev/skills/documentation-standards.md +0 -256
- package/_gaia/dev/skills/git-workflow.md +0 -157
- package/_gaia/dev/skills/security-basics.md +0 -230
- package/_gaia/dev/skills/testing-patterns.md +0 -232
- package/_gaia/lifecycle/.resolved/.gitkeep +0 -0
- package/_gaia/lifecycle/agents/analyst.md +0 -104
- package/_gaia/lifecycle/agents/architect.md +0 -109
- package/_gaia/lifecycle/agents/data-engineer.md +0 -99
- package/_gaia/lifecycle/agents/devops.md +0 -110
- package/_gaia/lifecycle/agents/performance.md +0 -92
- package/_gaia/lifecycle/agents/pm.md +0 -112
- package/_gaia/lifecycle/agents/qa.md +0 -89
- package/_gaia/lifecycle/agents/security.md +0 -108
- package/_gaia/lifecycle/agents/sm.md +0 -119
- package/_gaia/lifecycle/agents/tech-writer.md +0 -94
- package/_gaia/lifecycle/agents/ux-designer.md +0 -94
- package/_gaia/lifecycle/agents/validator.md +0 -189
- package/_gaia/lifecycle/config.yaml +0 -14
- package/_gaia/lifecycle/module-help.csv +0 -39
- package/_gaia/lifecycle/skills/ground-truth-management.md +0 -252
- package/_gaia/lifecycle/skills/memory-management.md +0 -322
- package/_gaia/lifecycle/skills/validation-patterns.md +0 -230
- package/_gaia/lifecycle/teams/team-data-intensive.yaml +0 -12
- package/_gaia/lifecycle/teams/team-enterprise.yaml +0 -16
- package/_gaia/lifecycle/teams/team-full.yaml +0 -13
- package/_gaia/lifecycle/teams/team-implementation.yaml +0 -8
- package/_gaia/lifecycle/teams/team-planning.yaml +0 -9
- package/_gaia/lifecycle/teams/team-quick-ship.yaml +0 -6
- package/_gaia/lifecycle/teams/team-security-focused.yaml +0 -13
- package/_gaia/lifecycle/templates/api-documentation-template.md +0 -112
- package/_gaia/lifecycle/templates/architecture-template.md +0 -65
- package/_gaia/lifecycle/templates/brownfield-architecture-template.md +0 -198
- package/_gaia/lifecycle/templates/brownfield-assessment-template.md +0 -78
- package/_gaia/lifecycle/templates/brownfield-onboarding-template.md +0 -160
- package/_gaia/lifecycle/templates/dependency-map-template.md +0 -73
- package/_gaia/lifecycle/templates/deployment-template.md +0 -52
- package/_gaia/lifecycle/templates/epic-status-template.md +0 -64
- package/_gaia/lifecycle/templates/event-catalog-template.md +0 -78
- package/_gaia/lifecycle/templates/nfr-assessment-template.md +0 -96
- package/_gaia/lifecycle/templates/prd-template.md +0 -83
- package/_gaia/lifecycle/templates/product-brief-template.md +0 -48
- package/_gaia/lifecycle/templates/review-template.md +0 -47
- package/_gaia/lifecycle/templates/sprint-plan-template.md +0 -45
- package/_gaia/lifecycle/templates/story-template.md +0 -118
- package/_gaia/lifecycle/templates/tech-debt-dashboard-template.md +0 -71
- package/_gaia/lifecycle/templates/test-plan-template.md +0 -56
- package/_gaia/lifecycle/templates/ux-design-assessment-template.md +0 -122
- package/_gaia/lifecycle/workflows/1-analysis/advanced-elicitation/instructions.xml +0 -44
- package/_gaia/lifecycle/workflows/1-analysis/advanced-elicitation/methods.csv +0 -9
- package/_gaia/lifecycle/workflows/1-analysis/advanced-elicitation/workflow.yaml +0 -33
- package/_gaia/lifecycle/workflows/1-analysis/brainstorm-project/checklist.md +0 -24
- package/_gaia/lifecycle/workflows/1-analysis/brainstorm-project/instructions.xml +0 -39
- package/_gaia/lifecycle/workflows/1-analysis/brainstorm-project/workflow.yaml +0 -19
- package/_gaia/lifecycle/workflows/1-analysis/create-product-brief/checklist.md +0 -27
- package/_gaia/lifecycle/workflows/1-analysis/create-product-brief/instructions.xml +0 -57
- package/_gaia/lifecycle/workflows/1-analysis/create-product-brief/workflow.yaml +0 -38
- package/_gaia/lifecycle/workflows/1-analysis/domain-research/checklist.md +0 -22
- package/_gaia/lifecycle/workflows/1-analysis/domain-research/instructions.xml +0 -34
- package/_gaia/lifecycle/workflows/1-analysis/domain-research/workflow.yaml +0 -15
- package/_gaia/lifecycle/workflows/1-analysis/market-research/checklist.md +0 -28
- package/_gaia/lifecycle/workflows/1-analysis/market-research/instructions.xml +0 -42
- package/_gaia/lifecycle/workflows/1-analysis/market-research/workflow.yaml +0 -15
- package/_gaia/lifecycle/workflows/1-analysis/technical-research/checklist.md +0 -22
- package/_gaia/lifecycle/workflows/1-analysis/technical-research/instructions.xml +0 -34
- package/_gaia/lifecycle/workflows/1-analysis/technical-research/workflow.yaml +0 -15
- package/_gaia/lifecycle/workflows/2-planning/create-prd/checklist.md +0 -36
- package/_gaia/lifecycle/workflows/2-planning/create-prd/instructions.xml +0 -80
- package/_gaia/lifecycle/workflows/2-planning/create-prd/workflow.yaml +0 -23
- package/_gaia/lifecycle/workflows/2-planning/create-ux-design/checklist.md +0 -26
- package/_gaia/lifecycle/workflows/2-planning/create-ux-design/instructions.xml +0 -49
- package/_gaia/lifecycle/workflows/2-planning/create-ux-design/workflow.yaml +0 -23
- package/_gaia/lifecycle/workflows/2-planning/edit-prd/checklist.md +0 -17
- package/_gaia/lifecycle/workflows/2-planning/edit-prd/instructions.xml +0 -50
- package/_gaia/lifecycle/workflows/2-planning/edit-prd/workflow.yaml +0 -22
- package/_gaia/lifecycle/workflows/2-planning/validate-prd/checklist.md +0 -12
- package/_gaia/lifecycle/workflows/2-planning/validate-prd/instructions.xml +0 -52
- package/_gaia/lifecycle/workflows/2-planning/validate-prd/workflow.yaml +0 -19
- package/_gaia/lifecycle/workflows/3-solutioning/create-architecture/checklist.md +0 -32
- package/_gaia/lifecycle/workflows/3-solutioning/create-architecture/instructions.xml +0 -100
- package/_gaia/lifecycle/workflows/3-solutioning/create-architecture/workflow.yaml +0 -41
- package/_gaia/lifecycle/workflows/3-solutioning/create-epics-stories/checklist.md +0 -30
- package/_gaia/lifecycle/workflows/3-solutioning/create-epics-stories/instructions.xml +0 -86
- package/_gaia/lifecycle/workflows/3-solutioning/create-epics-stories/workflow.yaml +0 -34
- package/_gaia/lifecycle/workflows/3-solutioning/edit-architecture/checklist.md +0 -24
- package/_gaia/lifecycle/workflows/3-solutioning/edit-architecture/instructions.xml +0 -91
- package/_gaia/lifecycle/workflows/3-solutioning/edit-architecture/workflow.yaml +0 -32
- package/_gaia/lifecycle/workflows/3-solutioning/implementation-readiness/checklist.md +0 -66
- package/_gaia/lifecycle/workflows/3-solutioning/implementation-readiness/instructions.xml +0 -160
- package/_gaia/lifecycle/workflows/3-solutioning/implementation-readiness/workflow.yaml +0 -48
- package/_gaia/lifecycle/workflows/3-solutioning/infrastructure-design/checklist.md +0 -24
- package/_gaia/lifecycle/workflows/3-solutioning/infrastructure-design/instructions.xml +0 -44
- package/_gaia/lifecycle/workflows/3-solutioning/infrastructure-design/workflow.yaml +0 -23
- package/_gaia/lifecycle/workflows/3-solutioning/security-threat-model/checklist.md +0 -24
- package/_gaia/lifecycle/workflows/3-solutioning/security-threat-model/instructions.xml +0 -55
- package/_gaia/lifecycle/workflows/3-solutioning/security-threat-model/workflow.yaml +0 -23
- package/_gaia/lifecycle/workflows/4-implementation/action-items/instructions.xml +0 -131
- package/_gaia/lifecycle/workflows/4-implementation/action-items/workflow.yaml +0 -19
- package/_gaia/lifecycle/workflows/4-implementation/add-stories/checklist.md +0 -27
- package/_gaia/lifecycle/workflows/4-implementation/add-stories/instructions.xml +0 -100
- package/_gaia/lifecycle/workflows/4-implementation/add-stories/workflow.yaml +0 -35
- package/_gaia/lifecycle/workflows/4-implementation/change-request/checklist.md +0 -25
- package/_gaia/lifecycle/workflows/4-implementation/change-request/instructions.xml +0 -123
- package/_gaia/lifecycle/workflows/4-implementation/change-request/workflow.yaml +0 -38
- package/_gaia/lifecycle/workflows/4-implementation/check-dod/checklist.md +0 -18
- package/_gaia/lifecycle/workflows/4-implementation/check-dod/instructions.xml +0 -54
- package/_gaia/lifecycle/workflows/4-implementation/check-dod/workflow.yaml +0 -19
- package/_gaia/lifecycle/workflows/4-implementation/check-review-gate/checklist.md +0 -18
- package/_gaia/lifecycle/workflows/4-implementation/check-review-gate/instructions.xml +0 -53
- package/_gaia/lifecycle/workflows/4-implementation/check-review-gate/workflow.yaml +0 -19
- package/_gaia/lifecycle/workflows/4-implementation/code-review/checklist.md +0 -18
- package/_gaia/lifecycle/workflows/4-implementation/code-review/instructions.xml +0 -50
- package/_gaia/lifecycle/workflows/4-implementation/code-review/workflow.yaml +0 -24
- package/_gaia/lifecycle/workflows/4-implementation/correct-course/checklist.md +0 -21
- package/_gaia/lifecycle/workflows/4-implementation/correct-course/instructions.xml +0 -63
- package/_gaia/lifecycle/workflows/4-implementation/correct-course/workflow.yaml +0 -25
- package/_gaia/lifecycle/workflows/4-implementation/create-story/checklist.md +0 -38
- package/_gaia/lifecycle/workflows/4-implementation/create-story/instructions.xml +0 -194
- package/_gaia/lifecycle/workflows/4-implementation/create-story/workflow.yaml +0 -26
- package/_gaia/lifecycle/workflows/4-implementation/dev-story/checklist.md +0 -26
- package/_gaia/lifecycle/workflows/4-implementation/dev-story/instructions.xml +0 -268
- package/_gaia/lifecycle/workflows/4-implementation/dev-story/workflow.yaml +0 -51
- package/_gaia/lifecycle/workflows/4-implementation/epic-status/checklist.md +0 -25
- package/_gaia/lifecycle/workflows/4-implementation/epic-status/instructions.xml +0 -62
- package/_gaia/lifecycle/workflows/4-implementation/epic-status/workflow.yaml +0 -24
- package/_gaia/lifecycle/workflows/4-implementation/fix-story/checklist.md +0 -12
- package/_gaia/lifecycle/workflows/4-implementation/fix-story/instructions.xml +0 -67
- package/_gaia/lifecycle/workflows/4-implementation/fix-story/workflow.yaml +0 -17
- package/_gaia/lifecycle/workflows/4-implementation/qa-generate-tests/checklist.md +0 -19
- package/_gaia/lifecycle/workflows/4-implementation/qa-generate-tests/instructions.xml +0 -52
- package/_gaia/lifecycle/workflows/4-implementation/qa-generate-tests/workflow.yaml +0 -20
- package/_gaia/lifecycle/workflows/4-implementation/retrospective/checklist.md +0 -15
- package/_gaia/lifecycle/workflows/4-implementation/retrospective/instructions.xml +0 -164
- package/_gaia/lifecycle/workflows/4-implementation/retrospective/workflow.yaml +0 -30
- package/_gaia/lifecycle/workflows/4-implementation/run-all-reviews/checklist.md +0 -14
- package/_gaia/lifecycle/workflows/4-implementation/run-all-reviews/instructions.xml +0 -78
- package/_gaia/lifecycle/workflows/4-implementation/run-all-reviews/workflow.yaml +0 -16
- package/_gaia/lifecycle/workflows/4-implementation/security-review/checklist.md +0 -29
- package/_gaia/lifecycle/workflows/4-implementation/security-review/instructions.xml +0 -80
- package/_gaia/lifecycle/workflows/4-implementation/security-review/workflow.yaml +0 -27
- package/_gaia/lifecycle/workflows/4-implementation/sprint-planning/checklist.md +0 -29
- package/_gaia/lifecycle/workflows/4-implementation/sprint-planning/instructions.xml +0 -140
- package/_gaia/lifecycle/workflows/4-implementation/sprint-planning/workflow.yaml +0 -33
- package/_gaia/lifecycle/workflows/4-implementation/sprint-status/checklist.md +0 -18
- package/_gaia/lifecycle/workflows/4-implementation/sprint-status/instructions.xml +0 -36
- package/_gaia/lifecycle/workflows/4-implementation/sprint-status/workflow.yaml +0 -19
- package/_gaia/lifecycle/workflows/4-implementation/tech-debt-review/checklist.md +0 -30
- package/_gaia/lifecycle/workflows/4-implementation/tech-debt-review/instructions.xml +0 -147
- package/_gaia/lifecycle/workflows/4-implementation/tech-debt-review/workflow.yaml +0 -24
- package/_gaia/lifecycle/workflows/4-implementation/triage-findings/checklist.md +0 -17
- package/_gaia/lifecycle/workflows/4-implementation/triage-findings/instructions.xml +0 -124
- package/_gaia/lifecycle/workflows/4-implementation/triage-findings/workflow.yaml +0 -15
- package/_gaia/lifecycle/workflows/4-implementation/val-refresh-ground-truth/checklist.md +0 -48
- package/_gaia/lifecycle/workflows/4-implementation/val-refresh-ground-truth/instructions.xml +0 -125
- package/_gaia/lifecycle/workflows/4-implementation/val-refresh-ground-truth/workflow.yaml +0 -31
- package/_gaia/lifecycle/workflows/4-implementation/val-validate-artifact/checklist.md +0 -54
- package/_gaia/lifecycle/workflows/4-implementation/val-validate-artifact/instructions.xml +0 -147
- package/_gaia/lifecycle/workflows/4-implementation/val-validate-artifact/test-structure.sh +0 -116
- package/_gaia/lifecycle/workflows/4-implementation/val-validate-artifact/workflow.yaml +0 -29
- package/_gaia/lifecycle/workflows/4-implementation/val-validate-plan/checklist.md +0 -34
- package/_gaia/lifecycle/workflows/4-implementation/val-validate-plan/instructions.xml +0 -162
- package/_gaia/lifecycle/workflows/4-implementation/val-validate-plan/workflow.yaml +0 -39
- package/_gaia/lifecycle/workflows/4-implementation/validate-story/checklist.md +0 -23
- package/_gaia/lifecycle/workflows/4-implementation/validate-story/instructions.xml +0 -146
- package/_gaia/lifecycle/workflows/4-implementation/validate-story/workflow.yaml +0 -25
- package/_gaia/lifecycle/workflows/5-deployment/deployment-checklist/checklist.md +0 -29
- package/_gaia/lifecycle/workflows/5-deployment/deployment-checklist/instructions.xml +0 -59
- package/_gaia/lifecycle/workflows/5-deployment/deployment-checklist/workflow.yaml +0 -39
- package/_gaia/lifecycle/workflows/5-deployment/post-deploy-verify/checklist.md +0 -19
- package/_gaia/lifecycle/workflows/5-deployment/post-deploy-verify/instructions.xml +0 -33
- package/_gaia/lifecycle/workflows/5-deployment/post-deploy-verify/workflow.yaml +0 -15
- package/_gaia/lifecycle/workflows/5-deployment/release-plan/checklist.md +0 -20
- package/_gaia/lifecycle/workflows/5-deployment/release-plan/instructions.xml +0 -33
- package/_gaia/lifecycle/workflows/5-deployment/release-plan/workflow.yaml +0 -19
- package/_gaia/lifecycle/workflows/5-deployment/rollback-plan/checklist.md +0 -20
- package/_gaia/lifecycle/workflows/5-deployment/rollback-plan/instructions.xml +0 -33
- package/_gaia/lifecycle/workflows/5-deployment/rollback-plan/workflow.yaml +0 -15
- package/_gaia/lifecycle/workflows/anytime/brownfield-onboarding/checklist.md +0 -52
- package/_gaia/lifecycle/workflows/anytime/brownfield-onboarding/instructions.xml +0 -122
- package/_gaia/lifecycle/workflows/anytime/brownfield-onboarding/test-step7.sh +0 -149
- package/_gaia/lifecycle/workflows/anytime/brownfield-onboarding/workflow.yaml +0 -33
- package/_gaia/lifecycle/workflows/anytime/document-project/checklist.md +0 -11
- package/_gaia/lifecycle/workflows/anytime/document-project/instructions.xml +0 -26
- package/_gaia/lifecycle/workflows/anytime/document-project/workflow.yaml +0 -15
- package/_gaia/lifecycle/workflows/anytime/generate-project-context/checklist.md +0 -11
- package/_gaia/lifecycle/workflows/anytime/generate-project-context/instructions.xml +0 -22
- package/_gaia/lifecycle/workflows/anytime/generate-project-context/workflow.yaml +0 -15
- package/_gaia/lifecycle/workflows/anytime/memory-hygiene/checklist.md +0 -24
- package/_gaia/lifecycle/workflows/anytime/memory-hygiene/instructions.xml +0 -108
- package/_gaia/lifecycle/workflows/anytime/memory-hygiene/workflow.yaml +0 -15
- package/_gaia/lifecycle/workflows/anytime/performance-review/checklist.md +0 -25
- package/_gaia/lifecycle/workflows/anytime/performance-review/instructions.xml +0 -62
- package/_gaia/lifecycle/workflows/anytime/performance-review/workflow.yaml +0 -15
- package/_gaia/lifecycle/workflows/cross-phase/add-feature/checklist.md +0 -30
- package/_gaia/lifecycle/workflows/cross-phase/add-feature/instructions.xml +0 -85
- package/_gaia/lifecycle/workflows/cross-phase/add-feature/workflow.yaml +0 -37
- package/_gaia/lifecycle/workflows/quick-flow/quick-dev/checklist.md +0 -11
- package/_gaia/lifecycle/workflows/quick-flow/quick-dev/instructions.xml +0 -26
- package/_gaia/lifecycle/workflows/quick-flow/quick-dev/workflow.yaml +0 -19
- package/_gaia/lifecycle/workflows/quick-flow/quick-spec/checklist.md +0 -13
- package/_gaia/lifecycle/workflows/quick-flow/quick-spec/instructions.xml +0 -27
- package/_gaia/lifecycle/workflows/quick-flow/quick-spec/workflow.yaml +0 -15
- package/_gaia/testing/.resolved/.gitkeep +0 -0
- package/_gaia/testing/agents/test-architect.md +0 -131
- package/_gaia/testing/config.yaml +0 -8
- package/_gaia/testing/knowledge/_index.csv +0 -22
- package/_gaia/testing/knowledge/accessibility/axe-core-patterns.md +0 -177
- package/_gaia/testing/knowledge/accessibility/wcag-checks.md +0 -191
- package/_gaia/testing/knowledge/core/deterministic-testing.md +0 -167
- package/_gaia/testing/knowledge/core/fixture-architecture.md +0 -131
- package/_gaia/testing/knowledge/core/test-isolation.md +0 -142
- package/_gaia/testing/knowledge/core/test-pyramid.md +0 -129
- package/_gaia/testing/knowledge/extended/api-testing-patterns.md +0 -196
- package/_gaia/testing/knowledge/extended/data-factories.md +0 -158
- package/_gaia/testing/knowledge/extended/risk-governance.md +0 -119
- package/_gaia/testing/knowledge/extended/selector-resilience.md +0 -109
- package/_gaia/testing/knowledge/mobile-testing/appium-patterns.md +0 -164
- package/_gaia/testing/knowledge/mobile-testing/react-native-testing.md +0 -193
- package/_gaia/testing/knowledge/mobile-testing/responsive-testing.md +0 -177
- package/_gaia/testing/knowledge/performance/k6-patterns.md +0 -200
- package/_gaia/testing/knowledge/performance/lighthouse-ci.md +0 -158
- package/_gaia/testing/knowledge/specialized/contract-testing.md +0 -173
- package/_gaia/testing/knowledge/specialized/test-healing.md +0 -129
- package/_gaia/testing/knowledge/specialized/visual-testing.md +0 -129
- package/_gaia/testing/knowledge/unit-testing/jest-vitest-patterns.md +0 -193
- package/_gaia/testing/knowledge/unit-testing/junit5-patterns.md +0 -200
- package/_gaia/testing/knowledge/unit-testing/pytest-patterns.md +0 -185
- package/_gaia/testing/module-help.csv +0 -13
- package/_gaia/testing/workflows/accessibility-testing/checklist.md +0 -12
- package/_gaia/testing/workflows/accessibility-testing/instructions.xml +0 -41
- package/_gaia/testing/workflows/accessibility-testing/workflow.yaml +0 -13
- package/_gaia/testing/workflows/atdd/checklist.md +0 -6
- package/_gaia/testing/workflows/atdd/instructions.xml +0 -36
- package/_gaia/testing/workflows/atdd/workflow.yaml +0 -22
- package/_gaia/testing/workflows/ci-setup/checklist.md +0 -9
- package/_gaia/testing/workflows/ci-setup/instructions.xml +0 -43
- package/_gaia/testing/workflows/ci-setup/workflow.yaml +0 -11
- package/_gaia/testing/workflows/edit-test-plan/checklist.md +0 -20
- package/_gaia/testing/workflows/edit-test-plan/instructions.xml +0 -65
- package/_gaia/testing/workflows/edit-test-plan/workflow.yaml +0 -35
- package/_gaia/testing/workflows/mobile-testing/checklist.md +0 -13
- package/_gaia/testing/workflows/mobile-testing/instructions.xml +0 -41
- package/_gaia/testing/workflows/mobile-testing/workflow.yaml +0 -11
- package/_gaia/testing/workflows/nfr-assessment/checklist.md +0 -7
- package/_gaia/testing/workflows/nfr-assessment/instructions.xml +0 -26
- package/_gaia/testing/workflows/nfr-assessment/workflow.yaml +0 -11
- package/_gaia/testing/workflows/performance-testing/checklist.md +0 -11
- package/_gaia/testing/workflows/performance-testing/instructions.xml +0 -41
- package/_gaia/testing/workflows/performance-testing/workflow.yaml +0 -11
- package/_gaia/testing/workflows/teach-me-testing/checklist.md +0 -6
- package/_gaia/testing/workflows/teach-me-testing/instructions.xml +0 -28
- package/_gaia/testing/workflows/teach-me-testing/workflow.yaml +0 -12
- package/_gaia/testing/workflows/test-automation/checklist.md +0 -6
- package/_gaia/testing/workflows/test-automation/instructions.xml +0 -49
- package/_gaia/testing/workflows/test-automation/workflow.yaml +0 -11
- package/_gaia/testing/workflows/test-design/checklist.md +0 -9
- package/_gaia/testing/workflows/test-design/instructions.xml +0 -47
- package/_gaia/testing/workflows/test-design/workflow.yaml +0 -11
- package/_gaia/testing/workflows/test-framework/checklist.md +0 -8
- package/_gaia/testing/workflows/test-framework/instructions.xml +0 -25
- package/_gaia/testing/workflows/test-framework/workflow.yaml +0 -11
- package/_gaia/testing/workflows/test-review/checklist.md +0 -9
- package/_gaia/testing/workflows/test-review/instructions.xml +0 -51
- package/_gaia/testing/workflows/test-review/workflow.yaml +0 -11
- package/_gaia/testing/workflows/traceability/checklist.md +0 -6
- package/_gaia/testing/workflows/traceability/instructions.xml +0 -49
- package/_gaia/testing/workflows/traceability/workflow.yaml +0 -21
|
@@ -1,225 +0,0 @@
|
|
|
1
|
-
<task id="gaia-workflow-engine" name="GAIA Workflow Engine" internal="true">
|
|
2
|
-
|
|
3
|
-
<objective>
|
|
4
|
-
Universal workflow execution engine for GAIA. Loads workflow.yaml configs,
|
|
5
|
-
resolves variables, processes instructions files step-by-step, and manages
|
|
6
|
-
execution modes (normal/yolo/planning), checkpoints, and quality gates.
|
|
7
|
-
</objective>
|
|
8
|
-
|
|
9
|
-
<llm critical="true">
|
|
10
|
-
<mandate>You are now the GAIA Workflow Engine. Follow these rules EXACTLY.</mandate>
|
|
11
|
-
<mandate>Execute steps in strict numerical order. NEVER skip or reorder.</mandate>
|
|
12
|
-
<mandate>Write checkpoints after each step completes.</mandate>
|
|
13
|
-
<mandate>Enforce quality gates — HALT on failure, do not proceed.</mandate>
|
|
14
|
-
<mandate>In normal mode: NEVER auto-proceed past any interaction point (template-output, ask, or check-with-user). ALWAYS stop and wait for explicit user input.</mandate>
|
|
15
|
-
<mandate>An ask tag is a MANDATORY interaction — ALWAYS present the question and WAIT for user response. NEVER infer, assume, or skip the answer even if context suggests one.</mandate>
|
|
16
|
-
<mandate>Background subagent completions MUST NOT trigger auto-proceed. Present subagent results and wait for user confirmation before advancing.</mandate>
|
|
17
|
-
<mandate>Load skills and knowledge JIT — NEVER pre-load.</mandate>
|
|
18
|
-
<mandate>Stay within 40K token framework budget per activation.</mandate>
|
|
19
|
-
</llm>
|
|
20
|
-
|
|
21
|
-
<WORKFLOW-RULES critical="true">
|
|
22
|
-
<rule n="1">LOAD the workflow.yaml file passed as 'workflow-config'</rule>
|
|
23
|
-
<rule n="2">CHECK for pre-resolved config in {module}/.resolved/{workflow-name}.yaml first</rule>
|
|
24
|
-
<rule n="3">If no pre-resolved config: resolve {config_source}:field references from module config.yaml</rule>
|
|
25
|
-
<rule n="4">RESOLVE all {project-root}, {project-path}, {memory_path}, {checkpoint_path}, {installed_path}, {date} variables. {project-path}: READ {project-root}/_gaia/_config/global.yaml, extract project_path field. If "." or missing, {project-path} = {project-root}. Otherwise {project-path} = {project-root}/{project_path}. {memory_path} and {checkpoint_path}: extract from same global.yaml.</rule>
|
|
26
|
-
<rule n="5">ASK user for any remaining unknown variables</rule>
|
|
27
|
-
<rule n="6">RUN preflight-check protocol to validate all variables before proceeding</rule>
|
|
28
|
-
<rule n="7">If workflow.yaml declares an 'agent' field (and it is not 'orchestrator'): LOAD the agent persona file from the module's agents/ directory. Adopt the agent's persona, communication style, and rules — but do NOT execute the agent's activation menu or greeting. The engine remains in control of step execution.</rule>
|
|
29
|
-
<rule n="8">LOAD the instructions file specified by 'instructions' key</rule>
|
|
30
|
-
<rule n="9">READ the ENTIRE instructions file — never use offset/limit</rule>
|
|
31
|
-
<rule n="10">CHECK quality_gates.pre_start — HALT if any gate fails</rule>
|
|
32
|
-
<rule n="11">If workflow.yaml declares execution_mode: 'planning' and mode was NOT explicitly overridden by a caller: after loading instructions, invoke the Planning Gate — read all inputs, parse instructions into a structured plan, present the plan, and wait for user approval. User selects runtime mode (normal/yolo) at approval.</rule>
|
|
33
|
-
<rule n="12">PROCESS each step in the instructions file in strict numerical order</rule>
|
|
34
|
-
<rule n="13">After each step: WRITE checkpoint to _memory/checkpoints/</rule>
|
|
35
|
-
<rule n="14">At template-output: SAVE to file, then prompt user (unless YOLO mode)</rule>
|
|
36
|
-
<rule n="15">CHECK quality_gates.post_complete — HALT if any gate fails</rule>
|
|
37
|
-
<rule n="16">On completion: archive checkpoint to completed/</rule>
|
|
38
|
-
</WORKFLOW-RULES>
|
|
39
|
-
|
|
40
|
-
<flow>
|
|
41
|
-
<step n="1" title="Load and Resolve Config">
|
|
42
|
-
<action>Read the workflow.yaml file passed as 'workflow-config'</action>
|
|
43
|
-
<action>Check for pre-resolved config at {module}/.resolved/{name}.yaml</action>
|
|
44
|
-
<action if="pre-resolved exists">Load pre-resolved config (skip inheritance chain)</action>
|
|
45
|
-
<action if="no pre-resolved">Load config_source file, resolve field references</action>
|
|
46
|
-
<action>Resolve {project-root} to actual filesystem project root path</action>
|
|
47
|
-
<action>Resolve {project-path}: READ the file {project-root}/_gaia/_config/global.yaml and extract the project_path field value. If project_path is "." or the field is missing, set {project-path} = {project-root}. Otherwise, set {project-path} = {project-root}/{project_path}. You MUST actually read the file — do not assume the default. This is where application source code lives — dev agents write code here, brownfield scans here.</action>
|
|
48
|
-
<action>Resolve {memory_path}: READ the file {project-root}/_gaia/_config/global.yaml and extract the memory_path field value. Resolve any {project-root} references within it. This is where agent memory sidecars live.</action>
|
|
49
|
-
<action>Resolve {checkpoint_path}: extract the checkpoint_path field from global.yaml. Resolve any {project-root} references within it. This is where workflow checkpoints are stored.</action>
|
|
50
|
-
<action>Resolve {installed_path} from workflow.yaml location</action>
|
|
51
|
-
<action>Resolve {date} to current date</action>
|
|
52
|
-
<action>Ask user for any remaining unresolved variables</action>
|
|
53
|
-
</step>
|
|
54
|
-
|
|
55
|
-
<step n="2" title="Preflight Validation">
|
|
56
|
-
<action>Invoke preflight-check protocol</action>
|
|
57
|
-
<action>Verify all file paths in workflow.yaml actually exist</action>
|
|
58
|
-
<action>Verify instructions file exists and is readable</action>
|
|
59
|
-
<action>Verify validation/checklist file exists if declared</action>
|
|
60
|
-
<action>Check quality_gates.pre_start conditions if declared</action>
|
|
61
|
-
<action if="any gate fails">HALT with clear error message — do NOT proceed</action>
|
|
62
|
-
</step>
|
|
63
|
-
|
|
64
|
-
<step n="3" title="Load Agent Persona">
|
|
65
|
-
<action>Check if workflow.yaml contains an 'agent' field</action>
|
|
66
|
-
<action if="agent is 'orchestrator' or field is missing">Skip persona loading — execute as the generic workflow engine</action>
|
|
67
|
-
<action if="agent field exists and is not 'orchestrator'">Resolve the agent file path: {project-root}/_gaia/{module}/agents/{agent}.md</action>
|
|
68
|
-
<action if="agent is 'dev-*' (wildcard)">Check if workflow.yaml declares agent_auto_detect: true. If true, execute the agent_auto_detect_strategy from workflow.yaml to determine the stack. If auto-detection succeeds, resolve to {project-root}/_gaia/dev/agents/{detected_stack}-dev.md and inform user: "Auto-detected developer: {agent_name} based on {detection_source}." If auto-detection fails or agent_auto_detect is false/absent: ask user which stack developer to use (typescript, angular, flutter, java, python, mobile, go), then resolve to {project-root}/_gaia/dev/agents/{stack}-dev.md</action>
|
|
69
|
-
<action if="agent file resolved">Read the agent persona file — adopt its persona, name, communication style, rules, and domain knowledge for the duration of this workflow</action>
|
|
70
|
-
<action if="agent file resolved">Do NOT execute the agent's activation protocol, greeting, or menu — the workflow engine controls step execution</action>
|
|
71
|
-
<action if="agent file resolved">Do NOT load the agent's memory sidecar — the workflow engine manages its own checkpoints</action>
|
|
72
|
-
<action if="agent file resolved">Check for {project-root}/_gaia/_config/agents/{agent-id}.customize.yaml. If found, load and merge overrides (persona_overrides, menu_additions, menu_removals, skill_additions, rule_additions, skill_overrides, skill_section_overrides). For dev agents, also check all-dev.customize.yaml and merge (agent-specific takes precedence over all-dev).</action>
|
|
73
|
-
</step>
|
|
74
|
-
|
|
75
|
-
<step n="4" title="Load Instructions">
|
|
76
|
-
<action>Read the FULL instructions file (xml or md)</action>
|
|
77
|
-
<action>Count total steps in the instructions</action>
|
|
78
|
-
<action>Write initial checkpoint: workflow started, step 0 of N, files_touched: []</action>
|
|
79
|
-
</step>
|
|
80
|
-
|
|
81
|
-
<step n="5" title="Planning Gate" if="execution_mode == 'planning'">
|
|
82
|
-
<action>Check workflow.yaml for 'execution_mode' field — default to 'normal' if absent</action>
|
|
83
|
-
<action if="execution_mode != 'planning'">Skip this step — proceed to Process Instructions</action>
|
|
84
|
-
<action if="mode was explicitly set by caller (subagent prompt) AND mode is NOT yolo">Skip this step — use the caller-requested mode</action>
|
|
85
|
-
<action if="mode was explicitly set by caller as yolo">Still execute the Planning Gate to generate the plan. After generating, check if workflow.yaml declares val_auto_in_yolo: true and the planning step number (5) is in val_auto_in_yolo_steps. If so, auto-invoke val-validate-artifact to validate the plan. If Val returns CRITICAL/WARNING findings: auto-fix the plan, re-invoke Val, repeat up to 3 iterations. If resolved: auto-approve the plan and set runtime mode to yolo. If unresolved after 3 iterations: HALT with findings list. If Val prerequisites not met or val_auto_in_yolo is false: auto-approve the plan without Val and set runtime mode to yolo. Do NOT present the [a]/[y]/[r]/[x] prompt — the plan is auto-approved after Val passes.</action>
|
|
86
|
-
<action>Invoke discover-inputs protocol to load all declared input files</action>
|
|
87
|
-
<action>Parse the loaded instructions to extract: step titles, action summaries, template-output paths, optional steps, skill references, subagent invocations</action>
|
|
88
|
-
<action>For input files: extract brief context (key metadata, not full content)</action>
|
|
89
|
-
<action>Present structured execution plan to user using the planning-output format: Context, Files to Modify, Detailed Edits, Version Bumps (if applicable), Implementation Order, Verification. Omit empty sections.</action>
|
|
90
|
-
<action>Prompt: "[a] Approve (normal) | [y] Approve (YOLO) | [r] Revise plan | [x] Abort"</action>
|
|
91
|
-
<action if="[a]">Set runtime mode to normal — proceed to Process Instructions</action>
|
|
92
|
-
<action if="[y]">Set runtime mode to yolo — proceed to Process Instructions</action>
|
|
93
|
-
<action if="[r]">Ask for feedback, regenerate plan, re-prompt</action>
|
|
94
|
-
<action if="[x]">HALT — write checkpoint noting user abort</action>
|
|
95
|
-
<action>Write checkpoint: planning gate approved, selected runtime mode</action>
|
|
96
|
-
</step>
|
|
97
|
-
|
|
98
|
-
<step n="6" title="Process Instructions">
|
|
99
|
-
<action>Execute each step in strict numerical order</action>
|
|
100
|
-
<action>For each step: read any required skills/knowledge JIT</action>
|
|
101
|
-
<action>Before loading a skill file or skill section, check for overrides in this order: (1) active agent's {agent-id}.customize.yaml skill_overrides — if the skill name matches, load the entire file from the override source path. (2) active agent's skill_section_overrides — if skill name + section ID matches, load that section from the override path. (3) For dev agents, repeat checks against all-dev.customize.yaml. (4) Fall back to default path from skill-registry. When loading a skill from an override path, do NOT use _skill-index.yaml line ranges — scan the override file for <!-- SECTION: xxx --> markers dynamically. Relative source paths (without {project-root} prefix) are resolved against custom_skills_path from dev/config.yaml.</action>
|
|
102
|
-
<action>For each step: drop prior step's skills/knowledge from context</action>
|
|
103
|
-
<action>Handle supported tags: step, action, ask, check, template-output, goto, invoke-workflow, invoke-task</action>
|
|
104
|
-
<action>At optional steps: ask user to include/skip (auto-skip in YOLO mode)</action>
|
|
105
|
-
<action>At ask tag: MANDATORY interaction point — present the question exactly as written and WAIT for user response. Do NOT infer the answer from loaded context. Do NOT skip even if upstream artifacts contain the information. In YOLO mode: auto-answer from context if unambiguous, otherwise ask.</action>
|
|
106
|
-
<action>At template-output: save output to declared file path</action>
|
|
107
|
-
<action>After saving template-output: scan the generated content for open question indicators — unchecked checkboxes ("- [ ]"), section headers ("## Open Questions", "## Unresolved", "## Decisions Needed", "## Contradictions", "## Blocking Issues", "## Required Fixes"), and inline markers ("TBD", "TODO", "(needs decision)"). If any found: count the questions, extract their text, and display a guidance block BEFORE the [c]/[y]/[e] prompt:
|
|
108
|
-
|
|
109
|
-
--- Open Questions ({N}) ---
|
|
110
|
-
This artifact contains {N} open question(s) that need your input:
|
|
111
|
-
{numbered list of each question}
|
|
112
|
-
|
|
113
|
-
Recommended: Press [e] to answer these questions now.
|
|
114
|
-
Why: {next workflow from lifecycle-sequence.yaml} depends on these decisions.
|
|
115
|
-
Unanswered questions force downstream agents to make assumptions.
|
|
116
|
-
|
|
117
|
-
Skip: Press [c] to continue. Questions remain in the artifact.
|
|
118
|
-
---
|
|
119
|
-
|
|
120
|
-
If no open question indicators are found, skip this guidance and proceed to the standard prompt.</action>
|
|
121
|
-
<action>At template-output: check if Val integration is enabled. Read {project-root}/_gaia/_config/global.yaml and check if val_integration.template_output_review is true. If true, check if {project-root}/_gaia/lifecycle/agents/validator.md exists AND {project-root}/_memory/validator-sidecar/ exists. If all three conditions pass, extend the template-output prompt to include [v] Review with Val. If any condition fails, show only [c]/[y]/[e] — no [v] option, no error, no message.</action>
|
|
122
|
-
<action>At template-output in normal mode: first check if workflow.yaml declares a template_output_prompt field. If set to "auto": skip the template-output prompt entirely — save the file and auto-proceed to the next step with no user interaction. This is for read-only outputs (dashboards, reports) that need no user review. If set to a custom string (not "auto"): use that custom prompt string instead of the default options — parse [e] and [v] handlers from it as usual, and for any other user input auto-proceed to the next step. If template_output_prompt is absent: use the default prompt — if Val integration is enabled, show user the output and offer [c] Continue | [y] YOLO | [e] Edit | [v] Review with Val. If Val integration is not enabled, show user the output and offer [c]ontinue [y]olo [e]dit.</action>
|
|
123
|
-
<action>At [v] handler: when user presses [v], first check if the artifact file path has content. If the artifact has not been written yet or is empty, display "No artifact content to validate yet." and return to the template-output prompt without invoking Val. If content exists, invoke val-validate-artifact as a subagent, passing the artifact_path (the file just saved at template-output) and the source_workflow (the current workflow name from workflow.yaml). If Val completes and returns findings, present findings to the user and let user approve which findings to apply. Only approved findings are written to the artifact under a "## Validation Findings" section. After writing, return to the template-output prompt with the updated artifact content. If Val completes with zero findings, display "Validation complete: no issues found." and return to the template-output prompt with [c]/[y]/[e]/[v] options. If Val's subagent invocation fails for any reason (model unavailable, context too large, timeout), display "Val validation could not complete: {reason}. Continuing without validation." and return to the template-output prompt with [c]/[y]/[e]/[v] options. The user is never left stuck.</action>
|
|
124
|
-
<action>At template-output in yolo mode: auto-continue UNLESS open question indicators were detected — if detected, pause and display guidance as in normal mode. Open questions require human input and cannot be auto-answered. The [v] option is not auto-triggered in YOLO mode UNLESS the workflow.yaml declares val_auto_in_yolo: true AND the current instruction step number is listed in val_auto_in_yolo_steps AND Val integration prerequisites pass (global.yaml val_integration.template_output_review is true, validator.md exists, validator-sidecar/ exists). When all conditions are met: auto-invoke val-validate-artifact as a subagent with the artifact_path (file just saved) and source_workflow. If Val returns CRITICAL or WARNING findings: the dev agent must auto-fix them, then re-invoke Val to re-validate. Repeat this fix→validate loop up to 3 iterations. If resolved: save findings and fixes to artifact and validator-sidecar memory, then auto-continue. If unresolved after 3 iterations: HALT and inform user with the list of unresolved findings. INFO-level findings are logged to artifact and validator-sidecar memory but do not block. If Val invocation fails (model unavailable, timeout, context too large): HALT and inform user "Val validation could not complete: {reason}. Cannot proceed without validation in YOLO mode." — do NOT auto-continue.</action>
|
|
125
|
-
<action>When a subagent returns: present summary of results. In normal mode: wait for user [c]ontinue before proceeding. Subagent completion MUST NOT auto-advance the workflow.</action>
|
|
126
|
-
<action>After each step completes: write checkpoint with step number, key variables, output paths, and files_touched (for each file created/modified during this workflow, run shasum -a 256 {path} and record path, checksum as "sha256:{hex}", last_modified as ISO 8601)</action>
|
|
127
|
-
</step>
|
|
128
|
-
|
|
129
|
-
<step n="7" title="Completion">
|
|
130
|
-
<action>Check quality_gates.post_complete conditions if declared</action>
|
|
131
|
-
<action if="any gate fails">HALT — report which gate failed and why</action>
|
|
132
|
-
<action>Load validation/checklist file if declared</action>
|
|
133
|
-
<action>Evaluate all checklist items against completed work</action>
|
|
134
|
-
<action>Archive checkpoint to _memory/checkpoints/completed/</action>
|
|
135
|
-
<action>Report workflow complete with summary of outputs</action>
|
|
136
|
-
|
|
137
|
-
<!-- Session Memory Save Prompt (E9-S8) — Tier 1/2 agents save session decisions at workflow end -->
|
|
138
|
-
<!-- Phase 1: Tier resolution — determine if save prompt applies -->
|
|
139
|
-
<action if="workflow.yaml has no 'agent' field or agent is empty">Skip save prompt silently — no agent to save for. Proceed to next-step suggestions.</action>
|
|
140
|
-
<action if="agent field exists">Read {project-root}/_memory/config.yaml. If the file does not exist, log "Memory config not found — skipping session save prompt." and proceed to next-step suggestions.</action>
|
|
141
|
-
<action if="config loaded">Look up the resolved agent ID in _memory/config.yaml: check tiers.tier_1.agents and tiers.tier_2.agents lists. If the agent is not in either Tier 1 or Tier 2 (i.e., Tier 3 or unlisted), skip save prompt silently.</action>
|
|
142
|
-
<!-- Phase 2: Resolve agent-specific config from _memory/config.yaml -->
|
|
143
|
-
<action if="agent is Tier 1 or Tier 2">Resolve sidecar_path: read agents.{agent-id}.sidecar from _memory/config.yaml, construct absolute path {project-root}/_memory/{sidecar_value}/</action>
|
|
144
|
-
<action if="agent is Tier 1">Resolve tier_budget from tiers.tier_1.session_budget</action>
|
|
145
|
-
<action if="agent is Tier 2">Resolve tier_budget from tiers.tier_2.session_budget</action>
|
|
146
|
-
<!-- Phase 3: Generate session summary -->
|
|
147
|
-
<action>JIT-load the context-summarization and decision-formatting sections from _gaia/lifecycle/skills/memory-management.md</action>
|
|
148
|
-
<action if="agent is Tier 1">Generate session summary per context-summarization format (2K token / ~8,000 character ceiling): include decisions made, context updates, and ground truth corrections.</action>
|
|
149
|
-
<action if="agent is Tier 2">Generate session summary per context-summarization format (2K token / ~8,000 character ceiling): include decisions made and context updates only (no ground truth — Tier 2 agents do not have ground-truth.md).</action>
|
|
150
|
-
<action if="no decisions made, no context changed, no ground truth corrected">Display "No persistable decisions this session." and offer [y] Save anyway | [n] Skip. If user selects [n], skip to next-step suggestions.</action>
|
|
151
|
-
<!-- Phase 4: User confirmation — YOLO pauses here (open-question) -->
|
|
152
|
-
<action>Display the generated session summary to the user.</action>
|
|
153
|
-
<action>Present save confirmation prompt: "[y] Save | [n] Skip | [e] Edit summary". This is classified as an open-question indicator — YOLO mode MUST pause here and require explicit user confirmation. Memory writes are never auto-approved.
|
|
154
|
-
- [y]: proceed to session-save skill invocation
|
|
155
|
-
- [n]: skip the save, proceed to next-step suggestions without writing any memory files and without raising an error
|
|
156
|
-
- [e]: allow user to edit the summary text, then re-display and re-prompt</action>
|
|
157
|
-
<!-- Phase 5: Invoke session-save skill (only on [y]) -->
|
|
158
|
-
<action if="user selected [y]">JIT-load the session-save section from _gaia/lifecycle/skills/memory-management.md. Invoke session-save with parameters: sidecar_path, tier_budget, new_entries (formatted per decision-formatting), context_summary (the generated or edited summary), and third_file_content (ground truth updates for Tier 1, omitted for Tier 2). Budget enforcement runs within the skill — the engine does not implement save logic inline.</action>
|
|
159
|
-
<!-- End Session Memory Save Prompt -->
|
|
160
|
-
|
|
161
|
-
<action>Load _gaia/_config/lifecycle-sequence.yaml and look up current workflow name in sequence</action>
|
|
162
|
-
<action>If entry has next.primary: present "Suggested next step: {command}" with description from workflow-manifest.csv</action>
|
|
163
|
-
<action>If entry has next.on_pass/on_fail: present conditional suggestions based on workflow outcome</action>
|
|
164
|
-
<action>If entry has next.alternatives or next.parallel: list them with their context</action>
|
|
165
|
-
<action>If entry has next.standalone: say "This is a standalone workflow. Return to your current lifecycle phase."</action>
|
|
166
|
-
<action>If entry has next.suggestions: list them as optional suggestions with context</action>
|
|
167
|
-
<action>IMPORTANT: Only suggest commands that exist in workflow-manifest.csv — never invent command names</action>
|
|
168
|
-
</step>
|
|
169
|
-
</flow>
|
|
170
|
-
|
|
171
|
-
<execution-modes>
|
|
172
|
-
<mode name="normal">
|
|
173
|
-
Pause at every template-output for user confirmation.
|
|
174
|
-
Prompt: "[c] Continue | [y] Switch to YOLO | [e] Edit output"
|
|
175
|
-
Pause at every ask tag — present the question and WAIT for user response.
|
|
176
|
-
NEVER infer or skip an ask, even if the answer appears available from context.
|
|
177
|
-
Pause when a subagent returns — show results summary and wait for [c]ontinue.
|
|
178
|
-
DEFAULT: When in doubt about whether to pause, PAUSE.
|
|
179
|
-
</mode>
|
|
180
|
-
<mode name="yolo">
|
|
181
|
-
Auto-proceed past template-outputs without pausing.
|
|
182
|
-
User can say "switch to normal mode" at any time to return to normal mode.
|
|
183
|
-
</mode>
|
|
184
|
-
<mode name="planning">
|
|
185
|
-
After loading instructions and before processing steps:
|
|
186
|
-
read all inputs, parse instructions into a structured execution plan,
|
|
187
|
-
and require user approval before proceeding.
|
|
188
|
-
Plan format uses structured sections: Context, Files to Modify, Detailed Edits,
|
|
189
|
-
Version Bumps (if applicable), Implementation Order, Verification. Omit empty sections.
|
|
190
|
-
User selects runtime mode (normal or yolo) at the approval prompt.
|
|
191
|
-
If invoked as a subagent with an explicit mode override that is NOT yolo, skip the planning gate.
|
|
192
|
-
If invoked with yolo mode: still generate the plan, but auto-approve after Val validation passes (if val_auto_in_yolo is enabled). Do not show the approval prompt.
|
|
193
|
-
</mode>
|
|
194
|
-
</execution-modes>
|
|
195
|
-
|
|
196
|
-
<supported-tags>
|
|
197
|
-
<structural>
|
|
198
|
-
step, action, ask, check, critical, mandate, output
|
|
199
|
-
</structural>
|
|
200
|
-
<execution>
|
|
201
|
-
template-output, goto, anchor, invoke-workflow, invoke-task, invoke-protocol
|
|
202
|
-
</execution>
|
|
203
|
-
<conditional>
|
|
204
|
-
if (attribute on action/check), optional (attribute on step)
|
|
205
|
-
</conditional>
|
|
206
|
-
<deferred-v2>
|
|
207
|
-
for-each, repeat, parallel (unreliable with LLMs — defer to v2.0)
|
|
208
|
-
</deferred-v2>
|
|
209
|
-
</supported-tags>
|
|
210
|
-
|
|
211
|
-
<protocols>
|
|
212
|
-
<protocol name="discover-inputs" file="protocols/discover-inputs.xml" />
|
|
213
|
-
<protocol name="preflight-check" file="protocols/preflight-check.xml" />
|
|
214
|
-
<protocol name="handoff" file="protocols/handoff.xml" />
|
|
215
|
-
<protocol name="review-gate-check" file="protocols/review-gate-check.xml" />
|
|
216
|
-
<protocol name="status-sync" file="protocols/status-sync.xml" />
|
|
217
|
-
</protocols>
|
|
218
|
-
|
|
219
|
-
<llm final="true">
|
|
220
|
-
<mandate>NEVER skip steps. NEVER reorder steps. NEVER proceed past a failed quality gate.</mandate>
|
|
221
|
-
<mandate>ALWAYS write checkpoints. ALWAYS load skills JIT. ALWAYS stay under 40K tokens.</mandate>
|
|
222
|
-
<mandate>In normal mode: ALWAYS pause at template-output, ask, and subagent-return boundaries. Proceeding without user input in normal mode is a VIOLATION.</mandate>
|
|
223
|
-
</llm>
|
|
224
|
-
|
|
225
|
-
</task>
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
name,code,command,description,agent
|
|
2
|
-
"brainstorming","brainstorming","gaia-brainstorming","Facilitated brainstorming session","orchestrator"
|
|
3
|
-
"party-mode","party-mode","gaia-party","Multi-agent group discussion","orchestrator"
|
|
4
|
-
"help","help","gaia-help","Context-sensitive help and routing","orchestrator"
|
|
5
|
-
"resume","resume","gaia-resume","Resume from last checkpoint","orchestrator"
|
|
6
|
-
"build-configs","build-configs","gaia-build-configs","Regenerate resolved configs","orchestrator"
|
|
7
|
-
"editorial-prose","editorial-prose","gaia-editorial-prose","Clinical copy-editing review","tech-writer"
|
|
8
|
-
"editorial-structure","editorial-structure","gaia-editorial-structure","Structural editing review","tech-writer"
|
|
9
|
-
"adversarial-review","adversarial","gaia-adversarial","Cynical adversarial review","orchestrator"
|
|
10
|
-
"edge-case-hunter","edge-cases","gaia-edge-cases","Edge case analysis","orchestrator"
|
|
11
|
-
"shard-doc","shard-doc","gaia-shard-doc","Split large doc into sections","tech-writer"
|
|
12
|
-
"index-docs","index-docs","gaia-index-docs","Generate doc index for folder","tech-writer"
|
|
13
|
-
"review-security","review-security","gaia-review-security","OWASP-focused security review","security"
|
|
14
|
-
"review-api-design","review-api","gaia-review-api","Review REST API design","orchestrator"
|
|
15
|
-
"review-dependency-audit","review-deps","gaia-review-deps","Audit project dependencies","orchestrator"
|
|
16
|
-
"review-accessibility","review-a11y","gaia-review-a11y","Review for WCAG 2.1 compliance","orchestrator"
|
|
17
|
-
"review-performance","review-perf","gaia-review-perf","Review code for performance issues","orchestrator"
|
|
18
|
-
"merge-docs","merge-docs","gaia-merge-docs","Merge multiple markdown files","tech-writer"
|
|
19
|
-
"generate-changelog","changelog","gaia-changelog","Generate changelog from git history","orchestrator"
|
|
20
|
-
"summarize-doc","summarize","gaia-summarize","Generate executive summary","orchestrator"
|
|
21
|
-
"validate-framework","validate-framework","gaia-validate-framework","Run GAIA framework self-validation","orchestrator"
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
```xml
|
|
2
|
-
<protocol name="agent-specification-contract" version="1.0">
|
|
3
|
-
|
|
4
|
-
<purpose>
|
|
5
|
-
Universal contract all GAIA agents share. Agent files reference this protocol
|
|
6
|
-
via protocol-ref attribute but load it JIT — never pre-loaded. Each agent's
|
|
7
|
-
inline specification block holds agent-specific scope, authority, and DoD.
|
|
8
|
-
</purpose>
|
|
9
|
-
|
|
10
|
-
<conflict-resolution>
|
|
11
|
-
<rule>User is the final arbiter in all disputes between agents</rule>
|
|
12
|
-
<rule>Domain expert agent has authority within its declared scope</rule>
|
|
13
|
-
<rule>When scopes overlap: the agent whose workflow initiated the work leads</rule>
|
|
14
|
-
<rule>When agents disagree on a decision: present both positions to user with trade-offs</rule>
|
|
15
|
-
<rule>Never override another agent's output without user consent</rule>
|
|
16
|
-
</conflict-resolution>
|
|
17
|
-
|
|
18
|
-
<decision-authority-matrix>
|
|
19
|
-
<purpose>When cross-artifact contradictions are detected, this matrix defines
|
|
20
|
-
which agent's recommendation takes precedence. User remains final arbiter.
|
|
21
|
-
Referenced by implementation-readiness workflow contradiction check.</purpose>
|
|
22
|
-
<domain name="technology-selection" authority="architect" agent="Theo" />
|
|
23
|
-
<domain name="component-boundaries" authority="architect" agent="Theo" />
|
|
24
|
-
<domain name="api-contracts" authority="architect" agent="Theo" />
|
|
25
|
-
<domain name="data-model" authority="architect" agent="Theo" />
|
|
26
|
-
<domain name="auth-mechanism" authority="security" agent="Zara" />
|
|
27
|
-
<domain name="threat-severity" authority="security" agent="Zara" />
|
|
28
|
-
<domain name="security-requirements" authority="security" agent="Zara" />
|
|
29
|
-
<domain name="encryption-standards" authority="security" agent="Zara" />
|
|
30
|
-
<domain name="deployment-topology" authority="devops" agent="Soren" />
|
|
31
|
-
<domain name="container-orchestration" authority="devops" agent="Soren" />
|
|
32
|
-
<domain name="ci-cd-pipeline" authority="devops" agent="Soren" />
|
|
33
|
-
<domain name="monitoring-alerting" authority="devops" agent="Soren" />
|
|
34
|
-
<domain name="feature-scope" authority="pm" agent="Derek" />
|
|
35
|
-
<domain name="requirement-priority" authority="pm" agent="Derek" />
|
|
36
|
-
<domain name="nfr-targets" authority="pm" agent="Derek" />
|
|
37
|
-
<domain name="test-strategy" authority="test-architect" agent="Sable" />
|
|
38
|
-
<domain name="ux-patterns" authority="ux-designer" agent="Christy" />
|
|
39
|
-
<overlap-rule>When a contradiction spans two domains (e.g., auth-mechanism
|
|
40
|
-
vs deployment-topology), the domain with higher security or safety impact
|
|
41
|
-
takes precedence. Present both positions to user with trade-offs per
|
|
42
|
-
conflict-resolution rules above.</overlap-rule>
|
|
43
|
-
</decision-authority-matrix>
|
|
44
|
-
|
|
45
|
-
<memory-access>
|
|
46
|
-
<rule>READ own sidecar memory (if declared)</rule>
|
|
47
|
-
<rule>READ shared artifacts from docs/{planning,implementation,test,creative}-artifacts/</rule>
|
|
48
|
-
<rule>WRITE only to own sidecar memory and declared output locations</rule>
|
|
49
|
-
<rule>NEVER write to another agent's sidecar memory</rule>
|
|
50
|
-
<rule>NEVER read another agent's sidecar unless explicitly instructed by user</rule>
|
|
51
|
-
</memory-access>
|
|
52
|
-
|
|
53
|
-
<memory-hygiene>
|
|
54
|
-
<purpose>Defines lifecycle states for sidecar entries and rules for the /gaia-memory-hygiene workflow.</purpose>
|
|
55
|
-
<entry-states>
|
|
56
|
-
<state name="ACTIVE">Entry is consistent with current reference artifacts.</state>
|
|
57
|
-
<state name="STALE">Referenced artifact has changed since entry was recorded.</state>
|
|
58
|
-
<state name="CONTRADICTED">Current artifact explicitly contradicts this entry.</state>
|
|
59
|
-
<state name="ORPHANED">Referenced component or feature no longer exists in any artifact.</state>
|
|
60
|
-
<state name="ARCHIVED">Entry was moved to the Archived section by user action.</state>
|
|
61
|
-
</entry-states>
|
|
62
|
-
<rules>
|
|
63
|
-
<rule>The /gaia-memory-hygiene workflow may read all sidecars — this is user-initiated cross-sidecar access per memory-access rule 5.</rule>
|
|
64
|
-
<rule>No sidecar entry is modified without explicit user confirmation.</rule>
|
|
65
|
-
<rule>Archived entries are moved to a ## Archived Decisions section at the end of the sidecar file.</rule>
|
|
66
|
-
<rule>The sidecar file header and append marker comment must always be preserved.</rule>
|
|
67
|
-
</rules>
|
|
68
|
-
</memory-hygiene>
|
|
69
|
-
|
|
70
|
-
<escalation-framework>
|
|
71
|
-
<trigger>Agent encounters a decision outside its declared scope</trigger>
|
|
72
|
-
<trigger>Blocking dependency on another agent's output that doesn't exist</trigger>
|
|
73
|
-
<trigger>Quality gate failure after 2 attempts to resolve</trigger>
|
|
74
|
-
<trigger>User request conflicts with agent's rules or constraints</trigger>
|
|
75
|
-
<trigger>Ambiguity that cannot be resolved from available artifacts</trigger>
|
|
76
|
-
<action>State what you cannot decide and WHY</action>
|
|
77
|
-
<action>Suggest which agent or user action would resolve it</action>
|
|
78
|
-
<action>NEVER guess or proceed silently past an escalation trigger</action>
|
|
79
|
-
</escalation-framework>
|
|
80
|
-
|
|
81
|
-
<resume-behavior>
|
|
82
|
-
<rule>On activation: check _memory/checkpoints/ for active checkpoint matching current workflow</rule>
|
|
83
|
-
<rule>If checkpoint found and has files_touched: validate checksums (shasum -a 256) before offering resume — flag DELETED or MODIFIED files, offer Proceed / Start fresh / Review</rule>
|
|
84
|
-
<rule>If checkpoint found without files_touched: skip validation, offer resume normally</rule>
|
|
85
|
-
<rule>If no checkpoint: start fresh</rule>
|
|
86
|
-
<rule>Use /gaia-resume for cross-session recovery</rule>
|
|
87
|
-
</resume-behavior>
|
|
88
|
-
|
|
89
|
-
<fallback-behavior>
|
|
90
|
-
<rule>When uncertain about next action: ask user rather than guessing</rule>
|
|
91
|
-
<rule>When input artifact is missing: HALT and report what's missing and how to produce it</rule>
|
|
92
|
-
<rule>When a workflow step produces unexpected results: pause and report to user</rule>
|
|
93
|
-
<rule>Never fabricate data, requirements, or decisions — surface gaps honestly</rule>
|
|
94
|
-
</fallback-behavior>
|
|
95
|
-
|
|
96
|
-
<quality-expectations>
|
|
97
|
-
<rule>Every output must be traceable to an input requirement or user request</rule>
|
|
98
|
-
<rule>Artifacts must be saved to declared output locations, never ad-hoc paths</rule>
|
|
99
|
-
<rule>Quality gates are enforced, not advisory — workflow halts on failure</rule>
|
|
100
|
-
</quality-expectations>
|
|
101
|
-
|
|
102
|
-
</protocol>
|
|
103
|
-
```
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
<protocol name="review-gate-check">
|
|
2
|
-
<description>
|
|
3
|
-
Shared protocol invoked by each review workflow after updating its Review Gate row.
|
|
4
|
-
Checks if ALL reviews have passed and transitions story to done if so.
|
|
5
|
-
</description>
|
|
6
|
-
<critical>
|
|
7
|
-
<mandate>The Review Gate table must have EXACTLY 6 rows: Code Review, QA Tests, Security Review, Test Automation, Test Review, Performance Review. No other rows are valid. If extra rows exist, remove them.</mandate>
|
|
8
|
-
</critical>
|
|
9
|
-
<step n="1" title="Read Review Gate">
|
|
10
|
-
<action>Read the story file's Review Gate table</action>
|
|
11
|
-
<action>If Review Gate section is missing: initialize it with EXACTLY 6 rows — Code Review (PENDING), QA Tests (PENDING), Security Review (PENDING), Test Automation (PENDING), Test Review (PENDING), Performance Review (PENDING). Do NOT add any other rows.</action>
|
|
12
|
-
<action>If Review Gate table has extra rows beyond the 6 valid ones: remove the invalid rows</action>
|
|
13
|
-
<action>Parse each row: Review name, Status (PENDING | PASSED | FAILED), Report link</action>
|
|
14
|
-
</step>
|
|
15
|
-
<step n="2" title="Evaluate Gate and Transition">
|
|
16
|
-
<critical>
|
|
17
|
-
<mandate>You MUST execute the transition even if the gate was already fully passed before this run. The purpose is to ensure story status matches gate state.</mandate>
|
|
18
|
-
<mandate>Use the status-sync protocol to update story status — this ensures both story file and sprint-status.yaml stay in sync.</mandate>
|
|
19
|
-
</critical>
|
|
20
|
-
<action>Check two things: (1) the Review Gate table rows, (2) the current story status</action>
|
|
21
|
-
<action>If ALL 6 rows show PASSED AND story status is 'review': read the "Definition of Done" section — verify every item is checked (- [x]). If any item is unchecked: log "BLOCKED: DoD incomplete — {unchecked items}". Do NOT transition to done.</action>
|
|
22
|
-
<action>If ALL 6 rows show PASSED AND all DoD items checked AND story status is 'review':
|
|
23
|
-
<invoke-protocol ref="status-sync" story_key="{story_key}" new_status="done" source_workflow="review-gate-check" />
|
|
24
|
-
</action>
|
|
25
|
-
<action>If ALL 6 rows show PASSED AND the story status is already 'done': log "Story already done. No update needed."</action>
|
|
26
|
-
<action>If any row is FAILED: log which reviews failed. Do not change story status.</action>
|
|
27
|
-
<action>If any row is PENDING: log which reviews are still pending. Do not change story status.</action>
|
|
28
|
-
</step>
|
|
29
|
-
</protocol>
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
<protocol name="sprint-status-write-safety">
|
|
2
|
-
<description>
|
|
3
|
-
Behavioral contract for writing to sprint-status.yaml. This file is written
|
|
4
|
-
by multiple workflows and must be treated as a shared resource. Story file
|
|
5
|
-
frontmatter is the source of truth; sprint-status.yaml is a derived view.
|
|
6
|
-
</description>
|
|
7
|
-
<rules>
|
|
8
|
-
<rule n="1" title="Story File Is Source of Truth">
|
|
9
|
-
The story file frontmatter Status field is authoritative for story status.
|
|
10
|
-
sprint-status.yaml is a derived/cached view. When they diverge, the story
|
|
11
|
-
file wins. The /gaia-sprint-status sync reconciles drift.
|
|
12
|
-
</rule>
|
|
13
|
-
<rule n="2" title="Review Workflows Do Not Write sprint-status.yaml">
|
|
14
|
-
The 6 review workflows (code-review, qa-generate-tests, security-review,
|
|
15
|
-
test-automation, test-review, performance-review) MUST NOT write to
|
|
16
|
-
sprint-status.yaml. They update only the story file (Review Gate table
|
|
17
|
-
and frontmatter status). The sprint-status sync reconciles later.
|
|
18
|
-
</rule>
|
|
19
|
-
<rule n="3" title="Re-Read Before Write">
|
|
20
|
-
Any workflow that writes to sprint-status.yaml MUST re-read the file
|
|
21
|
-
immediately before writing. Never rely on a cached or earlier read.
|
|
22
|
-
The re-read must happen in the same step as the write.
|
|
23
|
-
</rule>
|
|
24
|
-
<rule n="4" title="Minimal Write">
|
|
25
|
-
When updating sprint-status.yaml, modify ONLY the story entry you are
|
|
26
|
-
responsible for. Do not rewrite entries for other stories. Preserve all
|
|
27
|
-
fields you are not explicitly changing.
|
|
28
|
-
</rule>
|
|
29
|
-
<rule n="5" title="Sync Recovers Drift">
|
|
30
|
-
Running /gaia-sprint-status reconciles sprint-status.yaml with story file
|
|
31
|
-
frontmatter. If data drifts, the sync corrects it. This is the recovery
|
|
32
|
-
mechanism for any write anomalies.
|
|
33
|
-
</rule>
|
|
34
|
-
</rules>
|
|
35
|
-
</protocol>
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
<protocol name="status-sync">
|
|
2
|
-
<purpose>
|
|
3
|
-
Synchronize story status (and optionally sprint_id) between story file (source of truth),
|
|
4
|
-
sprint-status.yaml (derived view), and story-index.yaml (fast lookup index).
|
|
5
|
-
Called by any workflow that changes story status. Ensures all files stay in sync at every transition.
|
|
6
|
-
</purpose>
|
|
7
|
-
|
|
8
|
-
<input>story_key, new_status, source_workflow, sprint_id (optional — if provided, update sprint_id field in story file; use "null" to clear it when removing a story from a sprint)</input>
|
|
9
|
-
|
|
10
|
-
<step n="1" title="Update Story File">
|
|
11
|
-
<action>Read story file at {implementation_artifacts}/{story_key}-*.md</action>
|
|
12
|
-
<action>Update YAML frontmatter status field to {new_status}</action>
|
|
13
|
-
<action if="sprint_id parameter is provided">Update YAML frontmatter sprint_id field to {sprint_id}. If sprint_id is "null", set sprint_id to null (clearing the sprint assignment).</action>
|
|
14
|
-
<action>Scan the story body (below the frontmatter) for a line matching the pattern "**Status:**" (e.g., "> **Status:** backlog"). If found, update the status value on that line to match {new_status}. This prevents frontmatter/body drift.</action>
|
|
15
|
-
<action>This is the source of truth — always updated first</action>
|
|
16
|
-
</step>
|
|
17
|
-
|
|
18
|
-
<step n="2" title="Update sprint-status.yaml">
|
|
19
|
-
<action>Check if {implementation_artifacts}/sprint-status.yaml exists</action>
|
|
20
|
-
<action if="sprint-status.yaml does not exist">Skip — sprint not yet created. No entry to update.</action>
|
|
21
|
-
<action if="sprint-status.yaml exists">Re-read sprint-status.yaml immediately before writing (write safety per sprint-status-write-safety.xml)</action>
|
|
22
|
-
<action if="sprint-status.yaml exists">Check if {story_key} has an entry in sprint-status.yaml</action>
|
|
23
|
-
<action if="sprint_id is explicitly set to null AND story_key has entry in sprint-status.yaml">Remove the {story_key} entry from sprint-status.yaml — story is no longer in this sprint.</action>
|
|
24
|
-
<action if="sprint_id is NOT null (or not provided) AND story_key has entry">Update ONLY the status field of the {story_key} entry to {new_status}. Minimal write — do not modify other stories or fields.</action>
|
|
25
|
-
<action if="story_key has no entry">Skip — story not yet assigned to a sprint. No entry to update.</action>
|
|
26
|
-
<action>If sprint-status.yaml update fails for any reason: log warning "{source_workflow}: Failed to sync sprint-status.yaml for {story_key} → {new_status}. Run /gaia-sprint-status to reconcile." and continue — this is non-blocking.</action>
|
|
27
|
-
</step>
|
|
28
|
-
|
|
29
|
-
<step n="3" title="Update story-index.yaml">
|
|
30
|
-
<action>Read {implementation_artifacts}/story-index.yaml. If the file doesn't exist, create it with header:
|
|
31
|
-
# Auto-maintained by status-sync protocol. Do not edit manually.
|
|
32
|
-
last_updated: "{current ISO 8601 timestamp}"
|
|
33
|
-
stories: {}</action>
|
|
34
|
-
<action>Check if {story_key} has an entry in the stories map</action>
|
|
35
|
-
<action if="story_key has entry">Update: status to {new_status}. If sprint_id parameter provided: update sprint_id. Update last_updated timestamp.</action>
|
|
36
|
-
<action if="story_key has NO entry">Read the story file frontmatter to populate a new entry:
|
|
37
|
-
{story_key}:
|
|
38
|
-
title: {from frontmatter title field}
|
|
39
|
-
epic: {extract epic key from frontmatter epic field, e.g., "E9 — Enhanced Agent Memory" → "E9"}
|
|
40
|
-
status: {new_status}
|
|
41
|
-
sprint_id: {from frontmatter or sprint_id parameter}
|
|
42
|
-
priority: {from frontmatter}
|
|
43
|
-
risk: {from frontmatter}
|
|
44
|
-
author: {from frontmatter}
|
|
45
|
-
file: {story filename, e.g., "E9-S13-consolidate-dual-gaia-and-memory-directories.md"}
|
|
46
|
-
Update last_updated timestamp.</action>
|
|
47
|
-
<action>Write back story-index.yaml. Non-blocking — if write fails, log warning and continue. The index is a performance optimization, not a source of truth.</action>
|
|
48
|
-
</step>
|
|
49
|
-
</protocol>
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
<task id="editorial-review-prose" name="Editorial Review — Prose">
|
|
2
|
-
<objective>Clinical copy-editing that reviews text for communication clarity, consistency, and readability</objective>
|
|
3
|
-
|
|
4
|
-
<critical>
|
|
5
|
-
<mandate>Review ONLY — never rewrite the document. Produce a findings report.</mandate>
|
|
6
|
-
<mandate>Flag issues with specific line references and suggested fixes</mandate>
|
|
7
|
-
<mandate>Categorize findings by severity: critical, major, minor, style</mandate>
|
|
8
|
-
</critical>
|
|
9
|
-
|
|
10
|
-
<flow>
|
|
11
|
-
<step n="1" title="Load Document">
|
|
12
|
-
<action>Ask user for the document path (or use current selection)</action>
|
|
13
|
-
<action>Read the entire document</action>
|
|
14
|
-
<action>Note document type: PRD, story, architecture, readme, etc.</action>
|
|
15
|
-
</step>
|
|
16
|
-
|
|
17
|
-
<step n="2" title="Analyze Prose">
|
|
18
|
-
<action>Check for these categories:
|
|
19
|
-
- Ambiguity: vague terms, unclear referents, multiple interpretations
|
|
20
|
-
- Inconsistency: terms used differently in different places
|
|
21
|
-
- Redundancy: repeated information, verbose phrases
|
|
22
|
-
- Jargon: unexplained technical terms, acronyms without definition
|
|
23
|
-
- Passive voice: where active voice would be clearer
|
|
24
|
-
- Sentence complexity: overly long or nested sentences
|
|
25
|
-
- Tone shifts: inconsistent voice or formality level
|
|
26
|
-
</action>
|
|
27
|
-
</step>
|
|
28
|
-
|
|
29
|
-
<step n="3" title="Generate Report">
|
|
30
|
-
<action>Produce findings report with:
|
|
31
|
-
- Executive summary (one paragraph)
|
|
32
|
-
- Findings table: severity, location, issue, suggested fix
|
|
33
|
-
- Overall readability score: Clear / Mostly Clear / Needs Work / Major Issues
|
|
34
|
-
</action>
|
|
35
|
-
</step>
|
|
36
|
-
</flow>
|
|
37
|
-
|
|
38
|
-
<output>
|
|
39
|
-
<format>Markdown findings report with table of issues</format>
|
|
40
|
-
<location>Displayed to user (not saved unless requested)</location>
|
|
41
|
-
</output>
|
|
42
|
-
</task>
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
<task id="editorial-review-structure" name="Editorial Review — Structure">
|
|
2
|
-
<objective>Structural editor that proposes cuts, reorganization, and simplification while preserving comprehension</objective>
|
|
3
|
-
|
|
4
|
-
<critical>
|
|
5
|
-
<mandate>Review ONLY — never rewrite. Produce a structural findings report.</mandate>
|
|
6
|
-
<mandate>Focus on document organization, not prose quality (use editorial-review-prose for that)</mandate>
|
|
7
|
-
<mandate>Propose specific reorganization moves, not vague suggestions</mandate>
|
|
8
|
-
</critical>
|
|
9
|
-
|
|
10
|
-
<flow>
|
|
11
|
-
<step n="1" title="Load Document">
|
|
12
|
-
<action>Ask user for the document path</action>
|
|
13
|
-
<action>Read the entire document</action>
|
|
14
|
-
<action>Map the current structure: headings, sections, subsections</action>
|
|
15
|
-
</step>
|
|
16
|
-
|
|
17
|
-
<step n="2" title="Analyze Structure">
|
|
18
|
-
<action>Evaluate these dimensions:
|
|
19
|
-
- Information architecture: is the hierarchy logical?
|
|
20
|
-
- Section ordering: does the sequence support understanding?
|
|
21
|
-
- Section balance: are some sections disproportionately long/short?
|
|
22
|
-
- Redundancy: are topics covered in multiple places?
|
|
23
|
-
- Missing sections: are expected sections absent for this doc type?
|
|
24
|
-
- Depth: are there too many nesting levels (max 3 recommended)?
|
|
25
|
-
- Navigation: could a reader find information quickly?
|
|
26
|
-
</action>
|
|
27
|
-
</step>
|
|
28
|
-
|
|
29
|
-
<step n="3" title="Generate Report">
|
|
30
|
-
<action>Produce structural findings with:
|
|
31
|
-
- Current structure outline (with line counts per section)
|
|
32
|
-
- Proposed restructure outline (showing moves, merges, splits)
|
|
33
|
-
- Specific recommendations: cut, merge, split, reorder, add
|
|
34
|
-
- Priority: which changes would have the most impact
|
|
35
|
-
</action>
|
|
36
|
-
</step>
|
|
37
|
-
</flow>
|
|
38
|
-
|
|
39
|
-
<output>
|
|
40
|
-
<format>Markdown report with current vs proposed structure comparison</format>
|
|
41
|
-
<location>Displayed to user (not saved unless requested)</location>
|
|
42
|
-
</output>
|
|
43
|
-
</task>
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
<task id="generate-changelog" name="Generate Changelog">
|
|
2
|
-
<objective>Generate changelog from git history and/or sprint status files</objective>
|
|
3
|
-
|
|
4
|
-
<critical>
|
|
5
|
-
<mandate>Follow Keep a Changelog format</mandate>
|
|
6
|
-
<mandate>Group by: features, bug fixes, improvements, breaking changes</mandate>
|
|
7
|
-
<mandate>Include version number and date</mandate>
|
|
8
|
-
</critical>
|
|
9
|
-
|
|
10
|
-
<flow>
|
|
11
|
-
<step n="1" title="Gather Sources">
|
|
12
|
-
<action>Check git log for commits since last release tag</action>
|
|
13
|
-
<action>Read sprint status files if available in {implementation_artifacts}/</action>
|
|
14
|
-
<action>Identify version number for this changelog entry</action>
|
|
15
|
-
</step>
|
|
16
|
-
<step n="2" title="Categorize Changes">
|
|
17
|
-
<action>Group changes into: Added, Changed, Fixed, Deprecated, Removed, Security</action>
|
|
18
|
-
<action>Extract meaningful descriptions from commits and story titles</action>
|
|
19
|
-
<action>Identify breaking changes and migration notes</action>
|
|
20
|
-
</step>
|
|
21
|
-
<step n="3" title="Format">
|
|
22
|
-
<action>Format following Keep a Changelog specification</action>
|
|
23
|
-
<action>Include date and version header</action>
|
|
24
|
-
<action>Add links to relevant PRs or issues if available</action>
|
|
25
|
-
</step>
|
|
26
|
-
<step n="4" title="Output">
|
|
27
|
-
<action>Write or append to CHANGELOG.md</action>
|
|
28
|
-
</step>
|
|
29
|
-
</flow>
|
|
30
|
-
|
|
31
|
-
<output>
|
|
32
|
-
<format>Keep a Changelog format markdown</format>
|
|
33
|
-
<location>CHANGELOG.md in project root</location>
|
|
34
|
-
</output>
|
|
35
|
-
</task>
|