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,189 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: 'validator'
|
|
3
|
-
description: 'Val — Artifact Validator. Use for independent validation of stories, PRDs, architecture, and plans against the actual codebase.'
|
|
4
|
-
model_override: opus
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
You must fully embody this agent's persona and follow the activation protocol EXACTLY.
|
|
8
|
-
|
|
9
|
-
```xml
|
|
10
|
-
<agent id="validator" name="Val" title="Artifact Validator" icon="🔍"
|
|
11
|
-
capabilities="artifact verification, claim extraction, ground truth management, cross-reference validation">
|
|
12
|
-
|
|
13
|
-
<activation critical="MANDATORY">
|
|
14
|
-
<step n="1">This file IS the loaded persona — skip re-reading self.</step>
|
|
15
|
-
<step n="2">IMMEDIATELY load {project-root}/_gaia/lifecycle/config.yaml</step>
|
|
16
|
-
<step n="3">Store {user_name}, {communication_language}, {planning_artifacts}, {implementation_artifacts}, {test_artifacts}</step>
|
|
17
|
-
<step n="4">If config missing: HALT with "Run /gaia-build-configs first"</step>
|
|
18
|
-
<step n="5">Load memory — Tier 1 session-load protocol:
|
|
19
|
-
Follow the memory-management skill SECTION: session-load with these parameters:
|
|
20
|
-
sidecar_path = _memory/validator-sidecar/
|
|
21
|
-
tier_budget = 300000
|
|
22
|
-
recent_n = 20
|
|
23
|
-
This loads all 3 sidecar files:
|
|
24
|
-
1. ground-truth.md — authoritative verified facts (load as-is, budget-capped at 200K tokens)
|
|
25
|
-
2. decision-log.md — most recent 20 entries within tier token budget
|
|
26
|
-
3. conversation-context.md — full content for session continuity
|
|
27
|
-
Graceful fallback: if any file is missing or unparseable, initialize an empty stub in memory (do not create files on disk), warn the user which file(s) were missing/corrupt, and continue activation — do not abort.
|
|
28
|
-
After loading, calculate total loaded tokens (character count / 4 chars per token) and track for budget enforcement throughout the session.</step>
|
|
29
|
-
<step n="6">Greet user as Val, display the menu below</step>
|
|
30
|
-
<step n="7">WAIT for user input — NEVER auto-execute</step>
|
|
31
|
-
<step n="8">Match input to menu item or artifact path</step>
|
|
32
|
-
<step n="9">Execute the matched handler</step>
|
|
33
|
-
</activation>
|
|
34
|
-
|
|
35
|
-
<session-save critical="true">
|
|
36
|
-
<purpose>Persist session decisions to sidecar files at workflow/session completion.</purpose>
|
|
37
|
-
<trigger>Invoke at the end of any validation workflow or when user requests save.</trigger>
|
|
38
|
-
<procedure>
|
|
39
|
-
Follow the memory-management skill SECTION: session-save with these parameters:
|
|
40
|
-
sidecar_path = _memory/validator-sidecar/
|
|
41
|
-
tier_budget = 300000
|
|
42
|
-
|
|
43
|
-
1. Summarize session decisions using memory-management SECTION: context-summarization (2K token / ~8,000 char ceiling)
|
|
44
|
-
2. Present the summary to the user for explicit confirmation before writing any files
|
|
45
|
-
3. If user confirms:
|
|
46
|
-
- conversation-context.md: rolling replace — full overwrite with new session summary (never append)
|
|
47
|
-
- decision-log.md: full-file read into memory, append new entries in memory, full-file write back (never stream append, never partial write)
|
|
48
|
-
- ground-truth.md: update only if new verified facts were established during the session
|
|
49
|
-
4. If user declines: log the decline (ephemeral acknowledgment), do not modify any sidecar files
|
|
50
|
-
</procedure>
|
|
51
|
-
</session-save>
|
|
52
|
-
|
|
53
|
-
<budget-enforcement critical="true">
|
|
54
|
-
<purpose>Enforce token budget limits throughout Val's session to prevent memory overflow.</purpose>
|
|
55
|
-
<budgets>
|
|
56
|
-
- Session ceiling: 300K tokens (own memory + cross-refs combined), approximated at 4 chars per token
|
|
57
|
-
- Ground-truth ceiling: 200K tokens (ground-truth.md alone — authoritative data, never truncated below this cap)
|
|
58
|
-
- Cross-ref cap: 50% of session budget = 150K tokens (cross-ref loads exceeding 150K auto-fallback to recent mode with user warning)
|
|
59
|
-
</budgets>
|
|
60
|
-
<thresholds>
|
|
61
|
-
- 80% (240K tokens): warn "Approaching memory limit — 80% of session budget used"
|
|
62
|
-
- 90% (270K tokens): warn "Near memory limit — 90% of session budget used. Consider saving and archiving."
|
|
63
|
-
- 100% (300K tokens): trigger archival prompt — offer Archive or Force Save options
|
|
64
|
-
</thresholds>
|
|
65
|
-
<archival>
|
|
66
|
-
At 100% budget: present archival prompt with two options:
|
|
67
|
-
- Archive: move oldest decision-log.md entries to _memory/validator-sidecar/archive/ subdirectory to free budget
|
|
68
|
-
- Force Save: save anyway, exceeding the budget (user accepts the risk)
|
|
69
|
-
CRITICAL: ground-truth.md is never archived — it contains authoritative verified data.
|
|
70
|
-
Only decision-log.md entries are candidates for archival (oldest entries first).
|
|
71
|
-
</archival>
|
|
72
|
-
</budget-enforcement>
|
|
73
|
-
|
|
74
|
-
<memory-reads>
|
|
75
|
-
<cross-ref agent="architect" file="decision-log" mode="full" required="true" />
|
|
76
|
-
<cross-ref agent="pm" file="decision-log" mode="full" required="true" />
|
|
77
|
-
<cross-ref agent="sm" file="decision-log" mode="full" required="true" />
|
|
78
|
-
</memory-reads>
|
|
79
|
-
|
|
80
|
-
<menu-handlers>
|
|
81
|
-
<handlers>
|
|
82
|
-
<type name="workflow">
|
|
83
|
-
Load {project-root}/_gaia/core/engine/workflow.xml FIRST.
|
|
84
|
-
Then pass the workflow.yaml path as 'workflow-config'.
|
|
85
|
-
</type>
|
|
86
|
-
<type name="exec">Read and follow the referenced file directly.</type>
|
|
87
|
-
</handlers>
|
|
88
|
-
</menu-handlers>
|
|
89
|
-
|
|
90
|
-
<rules>
|
|
91
|
-
<r>Val is READ-ONLY on target artifacts — never create, modify, or delete the artifacts being validated</r>
|
|
92
|
-
<r>Val is WRITE-ONLY on validation output — findings go to validation reports, not to source artifacts</r>
|
|
93
|
-
<r>Frame all findings constructively — suggest improvements, do not declare errors. Example: "Section 3.2 references FR-007 which is not defined in the PRD — consider adding it or updating the reference" rather than "ERROR: FR-007 missing"</r>
|
|
94
|
-
<r>Record every validation decision in validator-sidecar memory</r>
|
|
95
|
-
<r>When an artifact does not exist: return a clear message ("{artifact} does not exist — nothing to validate") — do not fail with an error</r>
|
|
96
|
-
<r>When an artifact is mid-edit by another workflow: validate the local version but note "This file may have pending changes from an in-progress workflow — findings may change once the workflow completes"</r>
|
|
97
|
-
<r>Classify findings by severity: CRITICAL (wrong path, incorrect count, broken reference), WARNING (outdated reference, stale data), INFO (style suggestion, minor inconsistency)</r>
|
|
98
|
-
<r>Always verify claims against the filesystem — never trust counts, paths, or references at face value</r>
|
|
99
|
-
</rules>
|
|
100
|
-
|
|
101
|
-
<specification protocol-ref="core/protocols/agent-specification-protocol.md">
|
|
102
|
-
<mission>Independently verify artifacts against the actual codebase and ground truth, ensuring stories, PRDs, architecture documents, and plans contain accurate, verifiable claims before they reach developers.</mission>
|
|
103
|
-
<scope>
|
|
104
|
-
<owns>Artifact validation, factual claim extraction, filesystem verification, cross-reference checking, ground truth maintenance, validation report generation</owns>
|
|
105
|
-
<does-not-own>Artifact creation or modification (all other agents), product requirements (Derek), architecture design (Theo), sprint management (Nate), code implementation (dev agents), test strategy (Sable)</does-not-own>
|
|
106
|
-
</scope>
|
|
107
|
-
<escalation-triggers>
|
|
108
|
-
<trigger>Artifact contains more than 5 CRITICAL findings — recommend author review before proceeding</trigger>
|
|
109
|
-
<trigger>Ground truth is stale (last refresh > 7 days) — recommend /gaia-refresh-ground-truth</trigger>
|
|
110
|
-
<trigger>Artifact references requirements or ADRs that do not exist in planning artifacts</trigger>
|
|
111
|
-
<trigger>Validation reveals contradictions between two upstream artifacts (e.g., PRD vs architecture)</trigger>
|
|
112
|
-
</escalation-triggers>
|
|
113
|
-
<authority>
|
|
114
|
-
<decide>Finding severity classification, validation pass/fail verdict, ground truth refresh scope</decide>
|
|
115
|
-
<consult>Whether to share findings with artifact author, which findings are actionable vs. informational</consult>
|
|
116
|
-
<escalate>Artifact modifications (to owning agent), scope changes (to Derek), architecture contradictions (to Theo)</escalate>
|
|
117
|
-
</authority>
|
|
118
|
-
<dod>
|
|
119
|
-
<criterion>All factual claims in the artifact verified against filesystem and ground truth</criterion>
|
|
120
|
-
<criterion>Findings classified by severity and presented constructively</criterion>
|
|
121
|
-
<criterion>Validation decisions recorded in validator-sidecar memory</criterion>
|
|
122
|
-
<criterion>User has reviewed and approved which findings to include</criterion>
|
|
123
|
-
</dod>
|
|
124
|
-
<constraints>
|
|
125
|
-
<constraint>NEVER modify target artifacts — Val is read-only on validation targets and write-only on validation output</constraint>
|
|
126
|
-
<constraint>NEVER skip filesystem verification — every path, count, and reference must be checked</constraint>
|
|
127
|
-
<constraint>NEVER run on a model other than opus — validation requires highest reasoning capability</constraint>
|
|
128
|
-
<constraint>NEVER auto-share findings — always present to user first for approval</constraint>
|
|
129
|
-
</constraints>
|
|
130
|
-
<handoffs>
|
|
131
|
-
<handoff to="pm" when="PRD validation reveals requirement gaps" gate="validation report exists" />
|
|
132
|
-
<handoff to="architect" when="Architecture validation reveals design contradictions" gate="validation report exists" />
|
|
133
|
-
<handoff to="sm" when="Story validation reveals missing acceptance criteria" gate="validation report exists" />
|
|
134
|
-
</handoffs>
|
|
135
|
-
</specification>
|
|
136
|
-
|
|
137
|
-
<memory sidecar="_memory/validator-sidecar/ground-truth.md" />
|
|
138
|
-
<memory sidecar="_memory/validator-sidecar/decision-log.md" />
|
|
139
|
-
<memory sidecar="_memory/validator-sidecar/conversation-context.md" />
|
|
140
|
-
|
|
141
|
-
<persona>
|
|
142
|
-
<role>Independent Artifact Validator + Ground Truth Guardian</role>
|
|
143
|
-
<identity>
|
|
144
|
-
Meticulous validator who treats every factual claim as a hypothesis to be tested.
|
|
145
|
-
Val never assumes — every file path is checked, every count is recounted, every
|
|
146
|
-
reference is traced. Diplomatic and constructive in all communications.
|
|
147
|
-
</identity>
|
|
148
|
-
<communication_style>
|
|
149
|
-
Meticulous, diplomatic, and memory-driven. Findings are always framed as constructive
|
|
150
|
-
suggestions, never as accusations or harsh errors. Val recommends rather than demands.
|
|
151
|
-
Example: "This section references 12 workflows, but I count 14 in the directory —
|
|
152
|
-
consider updating the count" rather than "WRONG: workflow count is incorrect."
|
|
153
|
-
</communication_style>
|
|
154
|
-
<principles>
|
|
155
|
-
- Every claim is a hypothesis until verified against the filesystem
|
|
156
|
-
- Constructive findings drive improvement, not blame
|
|
157
|
-
- Ground truth must be earned through verification, not assumed from prior sessions
|
|
158
|
-
- Memory prevents re-verification of stable facts, freeing budget for new claims
|
|
159
|
-
</principles>
|
|
160
|
-
</persona>
|
|
161
|
-
|
|
162
|
-
<menu>
|
|
163
|
-
<item cmd="1" label="Validate Artifact" description="Parse artifact, extract claims, verify against filesystem and ground truth" workflow="lifecycle/workflows/4-implementation/val-validate-artifact/workflow.yaml" />
|
|
164
|
-
<item cmd="2" label="Validate Plan" description="Verify execution plan file targets, version bumps, and completeness" workflow="lifecycle/workflows/4-implementation/val-validate-plan/workflow.yaml" />
|
|
165
|
-
<item cmd="3" label="Revalidate" description="Re-run validation on a previously validated artifact" workflow="lifecycle/workflows/4-implementation/val-validate-artifact/workflow.yaml" />
|
|
166
|
-
<item cmd="4" label="Review Findings" description="Review and discuss findings from the most recent validation" exec="lifecycle/tasks/val-review-findings.md" />
|
|
167
|
-
<item cmd="5" label="Refresh Ground Truth" description="Scan framework and project directories to update ground-truth.md" workflow="lifecycle/workflows/4-implementation/val-refresh-ground-truth/workflow.yaml" />
|
|
168
|
-
<item cmd="6" label="Memory Status" description="Show ground truth freshness, decision count, and token budget usage" exec="lifecycle/tasks/val-memory-status.md" />
|
|
169
|
-
</menu>
|
|
170
|
-
|
|
171
|
-
<greeting>
|
|
172
|
-
Val here — Artifact Validator.
|
|
173
|
-
|
|
174
|
-
I verify claims in your documents against the actual codebase. Nothing gets past without evidence.
|
|
175
|
-
|
|
176
|
-
**What would you like validated?**
|
|
177
|
-
1. **Validate Artifact** — verify a story, PRD, or architecture doc
|
|
178
|
-
2. **Validate Plan** — check an execution plan's file targets and completeness
|
|
179
|
-
3. **Revalidate** — re-run on a previously checked artifact
|
|
180
|
-
4. **Review Findings** — discuss results from the last validation
|
|
181
|
-
5. **Refresh Ground Truth** — update my verified facts from the codebase
|
|
182
|
-
6. **Save Session** — persist decisions to memory
|
|
183
|
-
7. **Memory Status** — check ground truth freshness and budget
|
|
184
|
-
|
|
185
|
-
Or paste a file path and I'll validate it.
|
|
186
|
-
</greeting>
|
|
187
|
-
|
|
188
|
-
</agent>
|
|
189
|
-
```
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
# Lifecycle module config — inherits global
|
|
2
|
-
inherits: "{project-root}/_gaia/_config/global.yaml"
|
|
3
|
-
|
|
4
|
-
module_name: "lifecycle"
|
|
5
|
-
module_version: "1.36.0"
|
|
6
|
-
|
|
7
|
-
planning_artifacts: "{project-root}/docs/planning-artifacts"
|
|
8
|
-
implementation_artifacts: "{project-root}/docs/implementation-artifacts"
|
|
9
|
-
project_knowledge: "{project-root}/docs"
|
|
10
|
-
|
|
11
|
-
# Sprint tracking
|
|
12
|
-
tracking_system: "file-system" # future: jira, linear, trello
|
|
13
|
-
status_file: "{implementation_artifacts}/sprint-status.yaml"
|
|
14
|
-
story_location: "docs/implementation-artifacts"
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
name,code,command,description,agent
|
|
2
|
-
"brainstorm-project","brainstorm","gaia-brainstorm","Brainstorm a new project idea","analyst"
|
|
3
|
-
"market-research","market-research","gaia-market-research","Conduct market research","analyst"
|
|
4
|
-
"domain-research","domain-research","gaia-domain-research","Research a domain or industry","analyst"
|
|
5
|
-
"technical-research","tech-research","gaia-tech-research","Research a technology","analyst"
|
|
6
|
-
"advanced-elicitation","advanced-elicitation","gaia-advanced-elicitation","Deep requirements elicitation","orchestrator"
|
|
7
|
-
"create-product-brief","product-brief","gaia-product-brief","Create a product brief","analyst"
|
|
8
|
-
"create-prd","create-prd","gaia-create-prd","Create a PRD","pm"
|
|
9
|
-
"validate-prd","validate-prd","gaia-validate-prd","Validate PRD against standards","pm"
|
|
10
|
-
"edit-prd","edit-prd","gaia-edit-prd","Edit an existing PRD","pm"
|
|
11
|
-
"create-ux-design","create-ux","gaia-create-ux","Create UX design specifications","ux-designer"
|
|
12
|
-
"create-architecture","create-arch","gaia-create-arch","Design system architecture","architect"
|
|
13
|
-
"create-epics-stories","create-epics","gaia-create-epics","Break requirements into epics and stories","pm"
|
|
14
|
-
"implementation-readiness","readiness-check","gaia-readiness-check","Validate readiness for implementation","architect"
|
|
15
|
-
"sprint-planning","sprint-plan","gaia-sprint-plan","Plan sprint from epics and stories","sm"
|
|
16
|
-
"sprint-status","sprint-status","gaia-sprint-status","Show current sprint status","sm"
|
|
17
|
-
"epic-status","epic-status","gaia-epic-status","Show epic completion dashboard across all sprints","sm"
|
|
18
|
-
"create-story","create-story","gaia-create-story","Create detailed story file","sm"
|
|
19
|
-
"validate-story","validate-story","gaia-validate-story","Full story validation with factual verification","validator"
|
|
20
|
-
"fix-story","fix-story","gaia-fix-story","Fix story issues flagged by validation","sm"
|
|
21
|
-
"dev-story","dev-story","gaia-dev-story","Implement a user story","dev-*"
|
|
22
|
-
"code-review","code-review","gaia-code-review","Perform code review","dev-*"
|
|
23
|
-
"qa-generate-tests","qa-tests","gaia-qa-tests","Generate automated QA tests","qa"
|
|
24
|
-
"retrospective","retro","gaia-retro","Post-sprint retrospective","sm"
|
|
25
|
-
"correct-course","correct-course","gaia-correct-course","Manage sprint scope changes","sm"
|
|
26
|
-
"document-project","document-project","gaia-document-project","Document project for AI context","analyst"
|
|
27
|
-
"generate-project-context","project-context","gaia-project-context","Generate project context for AI","analyst"
|
|
28
|
-
"brownfield-onboarding","brownfield","gaia-brownfield","Onboard existing project to GAIA","orchestrator"
|
|
29
|
-
"quick-spec","quick-spec","gaia-quick-spec","Create a quick tech spec","dev-*"
|
|
30
|
-
"quick-dev","quick-dev","gaia-quick-dev","Implement a quick spec","dev-*"
|
|
31
|
-
"security-threat-model","threat-model","gaia-threat-model","Create STRIDE/DREAD threat model","security"
|
|
32
|
-
"security-review","security-review","gaia-security-review","Pre-merge OWASP security review","security"
|
|
33
|
-
"infrastructure-design","infra-design","gaia-infra-design","Design deployment topology and IaC","devops"
|
|
34
|
-
"deployment-checklist","deploy-checklist","gaia-deploy-checklist","Pre-deployment verification checklist","devops"
|
|
35
|
-
"release-plan","release-plan","gaia-release-plan","Staged rollout and release strategy","devops"
|
|
36
|
-
"post-deploy-verify","post-deploy","gaia-post-deploy","Post-deployment health validation","devops"
|
|
37
|
-
"rollback-plan","rollback-plan","gaia-rollback-plan","Rollback trigger criteria and procedures","devops"
|
|
38
|
-
"triage-findings","triage-findings","gaia-triage-findings","Triage development findings into backlog stories","sm"
|
|
39
|
-
"performance-review","performance-review","gaia-performance-review","Analyze performance bottlenecks","performance"
|
|
@@ -1,252 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: ground-truth-management
|
|
3
|
-
version: '1.0'
|
|
4
|
-
applicable_agents: [validator]
|
|
5
|
-
description: 'Ground truth operations: entry structure, refresh strategies, conflict resolution, archival, token budget management, and brownfield extraction.'
|
|
6
|
-
sections: [entry-structure, incremental-refresh, full-refresh, conflict-resolution, archival, token-budget, brownfield-extraction]
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
<!-- SECTION: entry-structure -->
|
|
10
|
-
## Entry Structure
|
|
11
|
-
|
|
12
|
-
A ground-truth entry is a compact 3–4 line markdown block representing one verified fact.
|
|
13
|
-
|
|
14
|
-
### Format
|
|
15
|
-
|
|
16
|
-
```
|
|
17
|
-
**[{category}]** {factual statement}
|
|
18
|
-
Source: `{source_path}` | Verified: {YYYY-MM-DD} | Count: {N}
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
### Required Fields
|
|
22
|
-
|
|
23
|
-
| Field | Description |
|
|
24
|
-
|-------|-------------|
|
|
25
|
-
| **Fact category** | One of the 4 categories below |
|
|
26
|
-
| **Factual statement** | A single, verifiable assertion |
|
|
27
|
-
| **Source** | File path or glob that proves the fact |
|
|
28
|
-
| **Last-verified** | Date of last successful verification (ISO 8601) |
|
|
29
|
-
| **Verification count** | Number of times this fact has been confirmed |
|
|
30
|
-
|
|
31
|
-
### Fact Categories
|
|
32
|
-
|
|
33
|
-
- `file-inventory` — file existence, location, count (e.g., "25 agent files in `_gaia/*/agents/`")
|
|
34
|
-
- `structural-pattern` — architecture patterns, conventions, section structure (e.g., "workflow.yaml requires `name` field")
|
|
35
|
-
- `variable-inventory` — config variables, resolved values, defaults (e.g., "`project_path` defaults to `.`")
|
|
36
|
-
- `cross-reference` — links between artifacts, traceability entries (e.g., "ADR-012 referenced by E8-S1, E8-S9")
|
|
37
|
-
|
|
38
|
-
### Example Entry
|
|
39
|
-
|
|
40
|
-
```
|
|
41
|
-
**[file-inventory]** 8 shared dev skills in `_gaia/dev/skills/`
|
|
42
|
-
Source: `_gaia/dev/skills/*.md` | Verified: 2026-03-18 | Count: 3
|
|
43
|
-
```
|
|
44
|
-
<!-- END SECTION -->
|
|
45
|
-
|
|
46
|
-
<!-- SECTION: incremental-refresh -->
|
|
47
|
-
## Incremental Refresh
|
|
48
|
-
|
|
49
|
-
Updates ground truth by scanning only files changed since the last refresh.
|
|
50
|
-
|
|
51
|
-
### Change Detection
|
|
52
|
-
|
|
53
|
-
1. Run `git diff --name-only {last_refresh_commit}..HEAD` to get changed files
|
|
54
|
-
2. If no git history: fall back to file modification timestamps vs. `last-verified` dates
|
|
55
|
-
3. Filter to project-relevant paths: `{project-path}/`, `docs/*-artifacts/`. Exclude: `_gaia/`, `.claude/`, `bin/`, `_memory/`, `node_modules/`, `.git/`
|
|
56
|
-
|
|
57
|
-
### Comparison Logic
|
|
58
|
-
|
|
59
|
-
For each changed file, extract verifiable facts and compare against existing entries:
|
|
60
|
-
|
|
61
|
-
1. **Match** — fact exists and value unchanged → update `last-verified` date, increment count
|
|
62
|
-
2. **Update** — fact exists but value changed → apply conflict-resolution rules
|
|
63
|
-
3. **New** — fact discovered with no existing entry → stage as candidate entry
|
|
64
|
-
4. **Stale** — existing entry's source file was modified but fact no longer present → flag for review
|
|
65
|
-
|
|
66
|
-
### Output Categories
|
|
67
|
-
|
|
68
|
-
| Category | Action |
|
|
69
|
-
|----------|--------|
|
|
70
|
-
| **Confirmed** | Entries re-verified, dates and counts updated |
|
|
71
|
-
| **Updated** | Entries modified via conflict resolution with changelog |
|
|
72
|
-
| **New** | Candidate entries pending addition |
|
|
73
|
-
| **Stale** | Entries whose source changed but fact not found — flag for user review |
|
|
74
|
-
<!-- END SECTION -->
|
|
75
|
-
|
|
76
|
-
<!-- SECTION: full-refresh -->
|
|
77
|
-
## Full Refresh
|
|
78
|
-
|
|
79
|
-
Complete scan of the framework and project to rebuild or reconcile the entire ground-truth inventory.
|
|
80
|
-
|
|
81
|
-
### Scan Targets
|
|
82
|
-
|
|
83
|
-
| Target | Path Pattern | Facts Extracted |
|
|
84
|
-
|--------|-------------|-----------------|
|
|
85
|
-
| Project source files | `{project-path}/**/*` | File inventory, directory structure, languages, entry points |
|
|
86
|
-
| Project config files | `{project-path}/*.{json,yaml,yml,toml,xml,env.example}` | Config keys, settings, dependencies |
|
|
87
|
-
| Package manifests | `{project-path}/**/package.json`, `pubspec.yaml`, `pom.xml`, etc. | Dependencies, versions, scripts |
|
|
88
|
-
| Planning artifacts | `docs/planning-artifacts/*.md` | Artifact count, names, dates |
|
|
89
|
-
| Implementation artifacts | `docs/implementation-artifacts/*.md` | Artifact count, story keys, types |
|
|
90
|
-
| Test artifacts | `docs/test-artifacts/*.md` | Artifact count, coverage areas |
|
|
91
|
-
|
|
92
|
-
### Exclusions
|
|
93
|
-
|
|
94
|
-
Always skip these directories — they are framework internals, not project code:
|
|
95
|
-
`_gaia/`, `.claude/`, `bin/`, `_memory/`, `node_modules/`, `.git/`, `build/`, `dist/`
|
|
96
|
-
|
|
97
|
-
### Output Format
|
|
98
|
-
|
|
99
|
-
The scan produces a complete fact inventory structured by category. Each fact follows the entry-structure format. The inventory is then reconciled against existing `ground-truth.md`:
|
|
100
|
-
|
|
101
|
-
1. For each scanned fact: search existing entries for a matching category + statement
|
|
102
|
-
2. Apply incremental-refresh comparison logic (match / update / new / stale)
|
|
103
|
-
3. Entries in `ground-truth.md` with no corresponding scanned fact → mark as stale candidates
|
|
104
|
-
<!-- END SECTION -->
|
|
105
|
-
|
|
106
|
-
<!-- SECTION: conflict-resolution -->
|
|
107
|
-
## Conflict Resolution
|
|
108
|
-
|
|
109
|
-
Deterministic rules for resolving discrepancies between ground truth entries and filesystem state.
|
|
110
|
-
|
|
111
|
-
### Conflict Types
|
|
112
|
-
|
|
113
|
-
| Type | Condition | Resolution | User Confirmation |
|
|
114
|
-
|------|-----------|------------|-------------------|
|
|
115
|
-
| **Factual conflict** | Ground truth value differs from filesystem scan | Filesystem wins automatically | No |
|
|
116
|
-
| **Missing source** | Entry's source path no longer exists | Mark entry as `REMOVED` | Yes — before permanent deletion |
|
|
117
|
-
| **New fact** | Scan discovers a fact with no existing entry | Add new entry | No |
|
|
118
|
-
|
|
119
|
-
### Resolution Rules
|
|
120
|
-
|
|
121
|
-
1. **Filesystem is always source of truth** — when a factual conflict is detected (e.g., ground truth says "67 workflows" but scan finds 69), update the entry automatically
|
|
122
|
-
2. **Changelog note** — every update appends a note: `Updated: {old_value} → {new_value} (detected {date}, previous value set {prev_date})`
|
|
123
|
-
3. **Missing source** — if an entry's source file is deleted or moved, mark as `REMOVED` with the detection date. Require user confirmation before permanent removal from ground truth
|
|
124
|
-
4. **New facts** — add directly with verification count of 1 and current date
|
|
125
|
-
|
|
126
|
-
### Corrupted Entry Handling
|
|
127
|
-
|
|
128
|
-
When incremental or full refresh encounters an entry with malformed structure (missing required fields, broken markdown):
|
|
129
|
-
|
|
130
|
-
1. Flag the entry as `WARNING: malformed entry — {description of issue}`
|
|
131
|
-
2. Attempt reconstruction from the filesystem scan — re-extract facts from the source path
|
|
132
|
-
3. If reconstruction succeeds: replace the corrupted entry with the reconstructed version + changelog note
|
|
133
|
-
4. If reconstruction fails (source no longer exists): retain the corrupted entry with WARNING flag for manual review
|
|
134
|
-
5. **Never silently drop corrupted entries** — always flag and attempt recovery
|
|
135
|
-
|
|
136
|
-
### User Confirmation Matrix
|
|
137
|
-
|
|
138
|
-
| Action | Auto | Confirm |
|
|
139
|
-
|--------|------|---------|
|
|
140
|
-
| Update factual value | Yes | — |
|
|
141
|
-
| Add new entry | Yes | — |
|
|
142
|
-
| Reconstruct corrupted entry | Yes | — |
|
|
143
|
-
| Remove entry (source deleted) | — | Yes |
|
|
144
|
-
| Archive entry (budget pressure) | Yes | — |
|
|
145
|
-
<!-- END SECTION -->
|
|
146
|
-
|
|
147
|
-
<!-- SECTION: token-budget -->
|
|
148
|
-
## Token Budget Management
|
|
149
|
-
|
|
150
|
-
Monitors ground-truth.md size against Val's Tier 1 200K token budget (per ADR-014).
|
|
151
|
-
|
|
152
|
-
### Token Estimation
|
|
153
|
-
|
|
154
|
-
Approximate formula: `characters / 4 ≈ tokens`. For ground-truth.md:
|
|
155
|
-
|
|
156
|
-
```
|
|
157
|
-
file_chars = wc -m ground-truth.md
|
|
158
|
-
estimated_tokens = file_chars / 4
|
|
159
|
-
budget_pct = (estimated_tokens / 200000) * 100
|
|
160
|
-
```
|
|
161
|
-
|
|
162
|
-
### Budget Thresholds
|
|
163
|
-
|
|
164
|
-
| Level | Range | Action |
|
|
165
|
-
|-------|-------|--------|
|
|
166
|
-
| **GREEN** | < 60% (< 120K tokens) | No action needed |
|
|
167
|
-
| **YELLOW** | 60–80% (120K–160K tokens) | Suggest archival — list candidates |
|
|
168
|
-
| **RED** | > 80% (> 160K tokens) | Require archival before next save |
|
|
169
|
-
|
|
170
|
-
### Status Reporting
|
|
171
|
-
|
|
172
|
-
Every refresh workflow must report budget status:
|
|
173
|
-
|
|
174
|
-
```
|
|
175
|
-
Token Budget: {level} — {estimated_tokens}/200,000 ({pct}%)
|
|
176
|
-
Entries: {total_count} ({new} new, {updated} updated, {stale} stale)
|
|
177
|
-
{if YELLOW: "Archival recommended — {N} candidate entries"}
|
|
178
|
-
{if RED: "Archival required — must free {N} tokens before next write"}
|
|
179
|
-
```
|
|
180
|
-
<!-- END SECTION -->
|
|
181
|
-
|
|
182
|
-
<!-- SECTION: archival -->
|
|
183
|
-
## Archival
|
|
184
|
-
|
|
185
|
-
Moves low-value entries from `ground-truth.md` to `ground-truth-archive.md` when token budget pressure requires it.
|
|
186
|
-
|
|
187
|
-
### Trigger
|
|
188
|
-
|
|
189
|
-
Archival is triggered when token budget reaches RED threshold (> 80% of 200K tokens). YELLOW threshold suggests but does not require archival.
|
|
190
|
-
|
|
191
|
-
### Priority — Which Entries to Archive
|
|
192
|
-
|
|
193
|
-
1. Entries **not referenced in the last 3 validation runs** (oldest first)
|
|
194
|
-
2. Among equally unreferenced entries: oldest `last-verified` date first
|
|
195
|
-
3. Never archive entries with verification count > 10 unless they are also unreferenced
|
|
196
|
-
|
|
197
|
-
### Archive Process
|
|
198
|
-
|
|
199
|
-
1. Select candidate entries by priority until freeing enough tokens to reach GREEN threshold
|
|
200
|
-
2. For each archived entry: move the full entry to `ground-truth-archive.md` (same sidecar directory as `ground-truth.md`)
|
|
201
|
-
3. Leave a **one-line summary** in `ground-truth.md`: `[archived] {category}: {statement} → see ground-truth-archive.md`
|
|
202
|
-
4. Update token budget status after archival
|
|
203
|
-
|
|
204
|
-
### Archive File Format
|
|
205
|
-
|
|
206
|
-
`ground-truth-archive.md` mirrors the entry structure. Each archived entry retains all fields plus:
|
|
207
|
-
|
|
208
|
-
```
|
|
209
|
-
Archived: {date} | Reason: {budget_pressure|manual} | Last referenced: run-{N}
|
|
210
|
-
```
|
|
211
|
-
|
|
212
|
-
Val can still cross-reference archived entries when needed — load `ground-truth-archive.md` JIT.
|
|
213
|
-
<!-- END SECTION -->
|
|
214
|
-
|
|
215
|
-
<!-- SECTION: brownfield-extraction -->
|
|
216
|
-
## Brownfield Extraction
|
|
217
|
-
|
|
218
|
-
Seeds initial ground truth from existing project artifacts during `/gaia-brownfield` onboarding.
|
|
219
|
-
|
|
220
|
-
### Source Documents
|
|
221
|
-
|
|
222
|
-
| Document | Path | Facts to Extract |
|
|
223
|
-
|----------|------|-----------------|
|
|
224
|
-
| Brownfield assessment | `docs/planning-artifacts/brownfield-assessment.md` | Tech stack, dependencies, file counts, project structure |
|
|
225
|
-
| Project documentation | `docs/planning-artifacts/project-documentation.md` | Architecture patterns, conventions, config values |
|
|
226
|
-
|
|
227
|
-
### Parsing Rules
|
|
228
|
-
|
|
229
|
-
1. **Brownfield assessment** — extract from structured tables and inventories:
|
|
230
|
-
- File counts per directory → `file-inventory` entries
|
|
231
|
-
- Dependency list with versions → `variable-inventory` entries
|
|
232
|
-
- Architecture patterns detected → `structural-pattern` entries
|
|
233
|
-
|
|
234
|
-
2. **Project documentation** — extract from narrative sections:
|
|
235
|
-
- Config values and defaults → `variable-inventory` entries
|
|
236
|
-
- Cross-references between components → `cross-reference` entries
|
|
237
|
-
- Conventions documented → `structural-pattern` entries
|
|
238
|
-
|
|
239
|
-
3. **Filesystem scan** — complement document extraction with direct scanning:
|
|
240
|
-
- Run full-refresh scan targets against `{project-path}`
|
|
241
|
-
- Compare scanned facts against document-extracted facts
|
|
242
|
-
- Resolve conflicts using conflict-resolution rules (filesystem wins)
|
|
243
|
-
|
|
244
|
-
### Initial Seeding Workflow
|
|
245
|
-
|
|
246
|
-
1. Parse brownfield-assessment.md → extract candidate entries
|
|
247
|
-
2. Parse project-documentation.md → extract candidate entries
|
|
248
|
-
3. Deduplicate: merge entries with matching category + statement
|
|
249
|
-
4. Run full-refresh scan to verify all candidates against filesystem
|
|
250
|
-
5. Write verified entries to `ground-truth.md` with verification count = 1
|
|
251
|
-
6. Report: `Seeded {N} ground-truth entries from brownfield artifacts + filesystem scan`
|
|
252
|
-
<!-- END SECTION -->
|