gaia-framework 1.58.0 → 1.59.0

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.
Files changed (521) hide show
  1. package/.claude/commands/gaia-a11y-testing.md +17 -0
  2. package/.claude/commands/gaia-action-items.md +23 -0
  3. package/.claude/commands/gaia-add-feature.md +17 -0
  4. package/.claude/commands/gaia-add-stories.md +17 -0
  5. package/.claude/commands/gaia-advanced-elicitation.md +17 -0
  6. package/.claude/commands/gaia-adversarial.md +15 -0
  7. package/.claude/commands/gaia-agent-analyst.md +14 -0
  8. package/.claude/commands/gaia-agent-architect.md +14 -0
  9. package/.claude/commands/gaia-agent-brainstorming.md +14 -0
  10. package/.claude/commands/gaia-agent-data-engineer.md +14 -0
  11. package/.claude/commands/gaia-agent-design-thinking.md +14 -0
  12. package/.claude/commands/gaia-agent-dev-angular.md +14 -0
  13. package/.claude/commands/gaia-agent-dev-flutter.md +14 -0
  14. package/.claude/commands/gaia-agent-dev-go.md +14 -0
  15. package/.claude/commands/gaia-agent-dev-java.md +14 -0
  16. package/.claude/commands/gaia-agent-dev-mobile.md +14 -0
  17. package/.claude/commands/gaia-agent-dev-python.md +14 -0
  18. package/.claude/commands/gaia-agent-dev-typescript.md +14 -0
  19. package/.claude/commands/gaia-agent-devops.md +14 -0
  20. package/.claude/commands/gaia-agent-innovation.md +14 -0
  21. package/.claude/commands/gaia-agent-performance.md +14 -0
  22. package/.claude/commands/gaia-agent-pm.md +14 -0
  23. package/.claude/commands/gaia-agent-presentation.md +14 -0
  24. package/.claude/commands/gaia-agent-problem-solver.md +14 -0
  25. package/.claude/commands/gaia-agent-qa.md +14 -0
  26. package/.claude/commands/gaia-agent-security.md +14 -0
  27. package/.claude/commands/gaia-agent-sm.md +14 -0
  28. package/.claude/commands/gaia-agent-storyteller.md +14 -0
  29. package/.claude/commands/gaia-agent-tech-writer.md +14 -0
  30. package/.claude/commands/gaia-agent-test-architect.md +14 -0
  31. package/.claude/commands/gaia-agent-ux-designer.md +14 -0
  32. package/.claude/commands/gaia-agent-validator.md +14 -0
  33. package/.claude/commands/gaia-atdd.md +17 -0
  34. package/.claude/commands/gaia-brainstorm.md +17 -0
  35. package/.claude/commands/gaia-brainstorming.md +17 -0
  36. package/.claude/commands/gaia-brownfield.md +17 -0
  37. package/.claude/commands/gaia-build-configs.md +22 -0
  38. package/.claude/commands/gaia-change-request.md +11 -0
  39. package/.claude/commands/gaia-changelog.md +16 -0
  40. package/.claude/commands/gaia-check-dod.md +17 -0
  41. package/.claude/commands/gaia-check-review-gate.md +17 -0
  42. package/.claude/commands/gaia-ci-setup.md +17 -0
  43. package/.claude/commands/gaia-code-review.md +17 -0
  44. package/.claude/commands/gaia-correct-course.md +17 -0
  45. package/.claude/commands/gaia-create-arch.md +17 -0
  46. package/.claude/commands/gaia-create-epics.md +17 -0
  47. package/.claude/commands/gaia-create-prd.md +17 -0
  48. package/.claude/commands/gaia-create-story.md +23 -0
  49. package/.claude/commands/gaia-create-ux.md +17 -0
  50. package/.claude/commands/gaia-creative-sprint.md +17 -0
  51. package/.claude/commands/gaia-deploy-checklist.md +17 -0
  52. package/.claude/commands/gaia-design-thinking.md +17 -0
  53. package/.claude/commands/gaia-dev-story.md +23 -0
  54. package/.claude/commands/gaia-document-project.md +17 -0
  55. package/.claude/commands/gaia-domain-research.md +17 -0
  56. package/.claude/commands/gaia-edge-cases.md +15 -0
  57. package/.claude/commands/gaia-edit-arch.md +17 -0
  58. package/.claude/commands/gaia-edit-prd.md +17 -0
  59. package/.claude/commands/gaia-edit-test-plan.md +17 -0
  60. package/.claude/commands/gaia-editorial-prose.md +15 -0
  61. package/.claude/commands/gaia-editorial-structure.md +15 -0
  62. package/.claude/commands/gaia-epic-status.md +17 -0
  63. package/.claude/commands/gaia-fix-story.md +17 -0
  64. package/.claude/commands/gaia-help.md +15 -0
  65. package/.claude/commands/gaia-index-docs.md +15 -0
  66. package/.claude/commands/gaia-infra-design.md +17 -0
  67. package/.claude/commands/gaia-innovation.md +17 -0
  68. package/.claude/commands/gaia-market-research.md +17 -0
  69. package/.claude/commands/gaia-memory-hygiene.md +17 -0
  70. package/.claude/commands/gaia-merge-docs.md +16 -0
  71. package/.claude/commands/gaia-mobile-testing.md +17 -0
  72. package/.claude/commands/gaia-nfr.md +17 -0
  73. package/.claude/commands/gaia-party.md +17 -0
  74. package/.claude/commands/gaia-perf-testing.md +17 -0
  75. package/.claude/commands/gaia-performance-review.md +17 -0
  76. package/.claude/commands/gaia-pitch-deck.md +17 -0
  77. package/.claude/commands/gaia-post-deploy.md +17 -0
  78. package/.claude/commands/gaia-problem-solving.md +17 -0
  79. package/.claude/commands/gaia-product-brief.md +17 -0
  80. package/.claude/commands/gaia-project-context.md +17 -0
  81. package/.claude/commands/gaia-qa-tests.md +17 -0
  82. package/.claude/commands/gaia-quick-dev.md +17 -0
  83. package/.claude/commands/gaia-quick-spec.md +17 -0
  84. package/.claude/commands/gaia-readiness-check.md +17 -0
  85. package/.claude/commands/gaia-refresh-ground-truth.md +17 -0
  86. package/.claude/commands/gaia-release-plan.md +17 -0
  87. package/.claude/commands/gaia-resume.md +25 -0
  88. package/.claude/commands/gaia-retro.md +20 -0
  89. package/.claude/commands/gaia-review-a11y.md +16 -0
  90. package/.claude/commands/gaia-review-api.md +16 -0
  91. package/.claude/commands/gaia-review-deps.md +16 -0
  92. package/.claude/commands/gaia-review-perf.md +16 -0
  93. package/.claude/commands/gaia-review-security.md +16 -0
  94. package/.claude/commands/gaia-rollback-plan.md +17 -0
  95. package/.claude/commands/gaia-run-all-reviews.md +17 -0
  96. package/.claude/commands/gaia-security-review.md +17 -0
  97. package/.claude/commands/gaia-shard-doc.md +15 -0
  98. package/.claude/commands/gaia-slide-deck.md +17 -0
  99. package/.claude/commands/gaia-sprint-plan.md +17 -0
  100. package/.claude/commands/gaia-sprint-status.md +17 -0
  101. package/.claude/commands/gaia-storytelling.md +17 -0
  102. package/.claude/commands/gaia-summarize.md +16 -0
  103. package/.claude/commands/gaia-teach-testing.md +17 -0
  104. package/.claude/commands/gaia-tech-debt-review.md +20 -0
  105. package/.claude/commands/gaia-tech-research.md +17 -0
  106. package/.claude/commands/gaia-test-automate.md +17 -0
  107. package/.claude/commands/gaia-test-design.md +17 -0
  108. package/.claude/commands/gaia-test-framework.md +17 -0
  109. package/.claude/commands/gaia-test-review.md +17 -0
  110. package/.claude/commands/gaia-threat-model.md +17 -0
  111. package/.claude/commands/gaia-trace.md +17 -0
  112. package/.claude/commands/gaia-triage-findings.md +20 -0
  113. package/.claude/commands/gaia-val-validate-plan.md +17 -0
  114. package/.claude/commands/gaia-val-validate.md +17 -0
  115. package/.claude/commands/gaia-validate-framework.md +17 -0
  116. package/.claude/commands/gaia-validate-prd.md +17 -0
  117. package/.claude/commands/gaia-validate-story.md +22 -0
  118. package/.claude/commands/gaia.md +32 -0
  119. package/CLAUDE.md +165 -0
  120. package/README.md +3 -3
  121. package/_gaia/_config/agent-manifest.csv +29 -0
  122. package/_gaia/_config/agents/CUSTOMIZATION-README.md +117 -0
  123. package/_gaia/_config/files-manifest.csv +30 -0
  124. package/_gaia/_config/gaia-help.csv +82 -0
  125. package/_gaia/_config/global.yaml +45 -0
  126. package/_gaia/_config/lifecycle-sequence.yaml +623 -0
  127. package/_gaia/_config/manifest.yaml +24 -0
  128. package/_gaia/_config/skill-manifest.csv +12 -0
  129. package/_gaia/_config/task-manifest.csv +17 -0
  130. package/_gaia/_config/workflow-manifest.csv +73 -0
  131. package/_gaia/_memory/tier2-results/.gitkeep +0 -0
  132. package/_gaia/_memory/tier2-results/checkpoint-resume-2026-03-24.yaml +6 -0
  133. package/_gaia/_memory/tier2-results/engine-scenarios-2026-03-22.yaml +14 -0
  134. package/_gaia/core/.resolved/.gitkeep +0 -0
  135. package/_gaia/core/agents/orchestrator.md +303 -0
  136. package/_gaia/core/config.yaml +8 -0
  137. package/_gaia/core/engine/error-recovery.xml +28 -0
  138. package/_gaia/core/engine/protocols/discover-inputs.xml +31 -0
  139. package/_gaia/core/engine/protocols/handoff.xml +21 -0
  140. package/_gaia/core/engine/protocols/preflight-check.xml +31 -0
  141. package/_gaia/core/engine/task-runner.xml +63 -0
  142. package/_gaia/core/engine/workflow.xml +234 -0
  143. package/_gaia/core/module-help.csv +21 -0
  144. package/_gaia/core/protocols/agent-specification-protocol.md +103 -0
  145. package/_gaia/core/protocols/review-gate-check.xml +29 -0
  146. package/_gaia/core/protocols/sprint-status-write-safety.xml +35 -0
  147. package/_gaia/core/protocols/status-sync.xml +49 -0
  148. package/_gaia/core/tasks/editorial-review-prose.xml +42 -0
  149. package/_gaia/core/tasks/editorial-review-structure.xml +43 -0
  150. package/_gaia/core/tasks/generate-changelog.xml +35 -0
  151. package/_gaia/core/tasks/help.md +45 -0
  152. package/_gaia/core/tasks/index-docs.xml +46 -0
  153. package/_gaia/core/tasks/merge-docs.xml +34 -0
  154. package/_gaia/core/tasks/review-accessibility.xml +47 -0
  155. package/_gaia/core/tasks/review-adversarial.xml +55 -0
  156. package/_gaia/core/tasks/review-api-design.xml +38 -0
  157. package/_gaia/core/tasks/review-dependency-audit.xml +38 -0
  158. package/_gaia/core/tasks/review-edge-case-hunter.xml +52 -0
  159. package/_gaia/core/tasks/review-performance.xml +49 -0
  160. package/_gaia/core/tasks/review-security.xml +37 -0
  161. package/_gaia/core/tasks/shard-doc.xml +49 -0
  162. package/_gaia/core/tasks/summarize-doc.xml +33 -0
  163. package/_gaia/core/tasks/validate-framework.xml +66 -0
  164. package/_gaia/core/workflows/brainstorming/steps/step-01-session-setup.md +7 -0
  165. package/_gaia/core/workflows/brainstorming/steps/step-02-technique-selection.md +20 -0
  166. package/_gaia/core/workflows/brainstorming/steps/step-03-technique-execution.md +11 -0
  167. package/_gaia/core/workflows/brainstorming/steps/step-04-idea-organization.md +14 -0
  168. package/_gaia/core/workflows/brainstorming/template.md +38 -0
  169. package/_gaia/core/workflows/brainstorming/workflow.yaml +26 -0
  170. package/_gaia/core/workflows/party-mode/steps/step-01-agent-loading.md +11 -0
  171. package/_gaia/core/workflows/party-mode/steps/step-02-discussion-orchestration.md +16 -0
  172. package/_gaia/core/workflows/party-mode/steps/step-03-graceful-exit.md +10 -0
  173. package/_gaia/core/workflows/party-mode/workflow.yaml +23 -0
  174. package/_gaia/creative/.resolved/.gitkeep +0 -0
  175. package/_gaia/creative/agents/brainstorming-coach.md +93 -0
  176. package/_gaia/creative/agents/design-thinking-coach.md +91 -0
  177. package/_gaia/creative/agents/innovation-strategist.md +89 -0
  178. package/_gaia/creative/agents/presentation-designer.md +99 -0
  179. package/_gaia/creative/agents/problem-solver.md +90 -0
  180. package/_gaia/creative/agents/storyteller.md +90 -0
  181. package/_gaia/creative/config.yaml +8 -0
  182. package/_gaia/creative/data/design-methods.csv +28 -0
  183. package/_gaia/creative/data/innovation-frameworks.csv +15 -0
  184. package/_gaia/creative/data/solving-methods.csv +14 -0
  185. package/_gaia/creative/data/story-types.csv +12 -0
  186. package/_gaia/creative/module-help.csv +8 -0
  187. package/_gaia/creative/teams/creative-squad.yaml +10 -0
  188. package/_gaia/creative/workflows/creative-sprint/checklist.md +10 -0
  189. package/_gaia/creative/workflows/creative-sprint/instructions.xml +40 -0
  190. package/_gaia/creative/workflows/creative-sprint/workflow.yaml +11 -0
  191. package/_gaia/creative/workflows/design-thinking/checklist.md +25 -0
  192. package/_gaia/creative/workflows/design-thinking/instructions.xml +38 -0
  193. package/_gaia/creative/workflows/design-thinking/workflow.yaml +13 -0
  194. package/_gaia/creative/workflows/innovation-strategy/checklist.md +26 -0
  195. package/_gaia/creative/workflows/innovation-strategy/instructions.xml +34 -0
  196. package/_gaia/creative/workflows/innovation-strategy/workflow.yaml +13 -0
  197. package/_gaia/creative/workflows/pitch-deck/checklist.md +22 -0
  198. package/_gaia/creative/workflows/pitch-deck/instructions.xml +49 -0
  199. package/_gaia/creative/workflows/pitch-deck/workflow.yaml +15 -0
  200. package/_gaia/creative/workflows/problem-solving/checklist.md +26 -0
  201. package/_gaia/creative/workflows/problem-solving/instructions.xml +39 -0
  202. package/_gaia/creative/workflows/problem-solving/workflow.yaml +13 -0
  203. package/_gaia/creative/workflows/slide-deck/checklist.md +21 -0
  204. package/_gaia/creative/workflows/slide-deck/instructions.xml +39 -0
  205. package/_gaia/creative/workflows/slide-deck/workflow.yaml +15 -0
  206. package/_gaia/creative/workflows/storytelling/checklist.md +26 -0
  207. package/_gaia/creative/workflows/storytelling/instructions.xml +38 -0
  208. package/_gaia/creative/workflows/storytelling/workflow.yaml +13 -0
  209. package/_gaia/dev/agents/_base-dev.md +180 -0
  210. package/_gaia/dev/agents/angular-dev.md +70 -0
  211. package/_gaia/dev/agents/flutter-dev.md +70 -0
  212. package/_gaia/dev/agents/go-dev.md +72 -0
  213. package/_gaia/dev/agents/java-dev.md +70 -0
  214. package/_gaia/dev/agents/mobile-dev.md +70 -0
  215. package/_gaia/dev/agents/python-dev.md +70 -0
  216. package/_gaia/dev/agents/typescript-dev.md +70 -0
  217. package/_gaia/dev/config.yaml +11 -0
  218. package/_gaia/dev/knowledge/_index.csv +25 -0
  219. package/_gaia/dev/knowledge/angular/angular-conventions.md +119 -0
  220. package/_gaia/dev/knowledge/angular/angular-patterns.md +126 -0
  221. package/_gaia/dev/knowledge/angular/ngrx-state.md +124 -0
  222. package/_gaia/dev/knowledge/angular/rxjs-patterns.md +119 -0
  223. package/_gaia/dev/knowledge/flutter/dart-conventions.md +143 -0
  224. package/_gaia/dev/knowledge/flutter/platform-channels.md +144 -0
  225. package/_gaia/dev/knowledge/flutter/state-management.md +144 -0
  226. package/_gaia/dev/knowledge/flutter/widget-patterns.md +134 -0
  227. package/_gaia/dev/knowledge/go/gin-fiber-patterns.md +40 -0
  228. package/_gaia/dev/knowledge/go/go-conventions.md +54 -0
  229. package/_gaia/dev/knowledge/go/go-stdlib-patterns.md +39 -0
  230. package/_gaia/dev/knowledge/go/go-testing-patterns.md +39 -0
  231. package/_gaia/dev/knowledge/java/jpa-patterns.md +136 -0
  232. package/_gaia/dev/knowledge/java/maven-gradle.md +189 -0
  233. package/_gaia/dev/knowledge/java/microservices.md +159 -0
  234. package/_gaia/dev/knowledge/java/spring-boot-patterns.md +160 -0
  235. package/_gaia/dev/knowledge/mobile/kotlin-patterns.md +193 -0
  236. package/_gaia/dev/knowledge/mobile/mobile-testing.md +186 -0
  237. package/_gaia/dev/knowledge/mobile/react-native-patterns.md +162 -0
  238. package/_gaia/dev/knowledge/mobile/swift-patterns.md +190 -0
  239. package/_gaia/dev/knowledge/python/data-pipelines.md +169 -0
  240. package/_gaia/dev/knowledge/python/django-patterns.md +145 -0
  241. package/_gaia/dev/knowledge/python/fastapi-patterns.md +164 -0
  242. package/_gaia/dev/knowledge/python/python-conventions.md +170 -0
  243. package/_gaia/dev/knowledge/typescript/express-patterns.md +188 -0
  244. package/_gaia/dev/knowledge/typescript/nextjs-patterns.md +166 -0
  245. package/_gaia/dev/knowledge/typescript/react-patterns.md +176 -0
  246. package/_gaia/dev/knowledge/typescript/ts-conventions.md +133 -0
  247. package/_gaia/dev/module-help.csv +10 -0
  248. package/_gaia/dev/skills/_skill-index.yaml +55 -0
  249. package/_gaia/dev/skills/api-design.md +229 -0
  250. package/_gaia/dev/skills/code-review-standards.md +226 -0
  251. package/_gaia/dev/skills/database-design.md +172 -0
  252. package/_gaia/dev/skills/docker-workflow.md +222 -0
  253. package/_gaia/dev/skills/documentation-standards.md +256 -0
  254. package/_gaia/dev/skills/git-workflow.md +157 -0
  255. package/_gaia/dev/skills/security-basics.md +230 -0
  256. package/_gaia/dev/skills/testing-patterns.md +232 -0
  257. package/_gaia/lifecycle/.resolved/.gitkeep +0 -0
  258. package/_gaia/lifecycle/agents/analyst.md +104 -0
  259. package/_gaia/lifecycle/agents/architect.md +109 -0
  260. package/_gaia/lifecycle/agents/data-engineer.md +99 -0
  261. package/_gaia/lifecycle/agents/devops.md +110 -0
  262. package/_gaia/lifecycle/agents/performance.md +92 -0
  263. package/_gaia/lifecycle/agents/pm.md +112 -0
  264. package/_gaia/lifecycle/agents/qa.md +89 -0
  265. package/_gaia/lifecycle/agents/security.md +108 -0
  266. package/_gaia/lifecycle/agents/sm.md +119 -0
  267. package/_gaia/lifecycle/agents/tech-writer.md +94 -0
  268. package/_gaia/lifecycle/agents/ux-designer.md +94 -0
  269. package/_gaia/lifecycle/agents/validator.md +189 -0
  270. package/_gaia/lifecycle/config.yaml +14 -0
  271. package/_gaia/lifecycle/module-help.csv +39 -0
  272. package/_gaia/lifecycle/skills/ground-truth-management.md +252 -0
  273. package/_gaia/lifecycle/skills/memory-management.md +322 -0
  274. package/_gaia/lifecycle/skills/validation-patterns.md +230 -0
  275. package/_gaia/lifecycle/teams/team-data-intensive.yaml +12 -0
  276. package/_gaia/lifecycle/teams/team-enterprise.yaml +16 -0
  277. package/_gaia/lifecycle/teams/team-full.yaml +13 -0
  278. package/_gaia/lifecycle/teams/team-implementation.yaml +8 -0
  279. package/_gaia/lifecycle/teams/team-planning.yaml +9 -0
  280. package/_gaia/lifecycle/teams/team-quick-ship.yaml +6 -0
  281. package/_gaia/lifecycle/teams/team-security-focused.yaml +13 -0
  282. package/_gaia/lifecycle/templates/api-documentation-template.md +112 -0
  283. package/_gaia/lifecycle/templates/architecture-template.md +65 -0
  284. package/_gaia/lifecycle/templates/brownfield-architecture-template.md +198 -0
  285. package/_gaia/lifecycle/templates/brownfield-assessment-template.md +78 -0
  286. package/_gaia/lifecycle/templates/brownfield-onboarding-template.md +160 -0
  287. package/_gaia/lifecycle/templates/dependency-map-template.md +73 -0
  288. package/_gaia/lifecycle/templates/deployment-template.md +52 -0
  289. package/_gaia/lifecycle/templates/epic-status-template.md +64 -0
  290. package/_gaia/lifecycle/templates/event-catalog-template.md +78 -0
  291. package/_gaia/lifecycle/templates/nfr-assessment-template.md +96 -0
  292. package/_gaia/lifecycle/templates/prd-template.md +83 -0
  293. package/_gaia/lifecycle/templates/product-brief-template.md +48 -0
  294. package/_gaia/lifecycle/templates/review-template.md +47 -0
  295. package/_gaia/lifecycle/templates/sprint-plan-template.md +45 -0
  296. package/_gaia/lifecycle/templates/story-template.md +118 -0
  297. package/_gaia/lifecycle/templates/tech-debt-dashboard-template.md +71 -0
  298. package/_gaia/lifecycle/templates/test-plan-template.md +56 -0
  299. package/_gaia/lifecycle/templates/ux-design-assessment-template.md +122 -0
  300. package/_gaia/lifecycle/workflows/1-analysis/advanced-elicitation/instructions.xml +44 -0
  301. package/_gaia/lifecycle/workflows/1-analysis/advanced-elicitation/methods.csv +9 -0
  302. package/_gaia/lifecycle/workflows/1-analysis/advanced-elicitation/workflow.yaml +33 -0
  303. package/_gaia/lifecycle/workflows/1-analysis/brainstorm-project/checklist.md +24 -0
  304. package/_gaia/lifecycle/workflows/1-analysis/brainstorm-project/instructions.xml +39 -0
  305. package/_gaia/lifecycle/workflows/1-analysis/brainstorm-project/workflow.yaml +19 -0
  306. package/_gaia/lifecycle/workflows/1-analysis/create-product-brief/checklist.md +27 -0
  307. package/_gaia/lifecycle/workflows/1-analysis/create-product-brief/instructions.xml +57 -0
  308. package/_gaia/lifecycle/workflows/1-analysis/create-product-brief/workflow.yaml +38 -0
  309. package/_gaia/lifecycle/workflows/1-analysis/domain-research/checklist.md +22 -0
  310. package/_gaia/lifecycle/workflows/1-analysis/domain-research/instructions.xml +34 -0
  311. package/_gaia/lifecycle/workflows/1-analysis/domain-research/workflow.yaml +15 -0
  312. package/_gaia/lifecycle/workflows/1-analysis/market-research/checklist.md +28 -0
  313. package/_gaia/lifecycle/workflows/1-analysis/market-research/instructions.xml +42 -0
  314. package/_gaia/lifecycle/workflows/1-analysis/market-research/workflow.yaml +15 -0
  315. package/_gaia/lifecycle/workflows/1-analysis/technical-research/checklist.md +22 -0
  316. package/_gaia/lifecycle/workflows/1-analysis/technical-research/instructions.xml +34 -0
  317. package/_gaia/lifecycle/workflows/1-analysis/technical-research/workflow.yaml +15 -0
  318. package/_gaia/lifecycle/workflows/2-planning/create-prd/checklist.md +36 -0
  319. package/_gaia/lifecycle/workflows/2-planning/create-prd/instructions.xml +80 -0
  320. package/_gaia/lifecycle/workflows/2-planning/create-prd/workflow.yaml +23 -0
  321. package/_gaia/lifecycle/workflows/2-planning/create-ux-design/checklist.md +26 -0
  322. package/_gaia/lifecycle/workflows/2-planning/create-ux-design/instructions.xml +49 -0
  323. package/_gaia/lifecycle/workflows/2-planning/create-ux-design/workflow.yaml +23 -0
  324. package/_gaia/lifecycle/workflows/2-planning/edit-prd/checklist.md +17 -0
  325. package/_gaia/lifecycle/workflows/2-planning/edit-prd/instructions.xml +50 -0
  326. package/_gaia/lifecycle/workflows/2-planning/edit-prd/workflow.yaml +22 -0
  327. package/_gaia/lifecycle/workflows/2-planning/validate-prd/checklist.md +12 -0
  328. package/_gaia/lifecycle/workflows/2-planning/validate-prd/instructions.xml +52 -0
  329. package/_gaia/lifecycle/workflows/2-planning/validate-prd/workflow.yaml +19 -0
  330. package/_gaia/lifecycle/workflows/3-solutioning/create-architecture/checklist.md +32 -0
  331. package/_gaia/lifecycle/workflows/3-solutioning/create-architecture/instructions.xml +100 -0
  332. package/_gaia/lifecycle/workflows/3-solutioning/create-architecture/workflow.yaml +41 -0
  333. package/_gaia/lifecycle/workflows/3-solutioning/create-epics-stories/checklist.md +30 -0
  334. package/_gaia/lifecycle/workflows/3-solutioning/create-epics-stories/instructions.xml +86 -0
  335. package/_gaia/lifecycle/workflows/3-solutioning/create-epics-stories/workflow.yaml +34 -0
  336. package/_gaia/lifecycle/workflows/3-solutioning/edit-architecture/checklist.md +24 -0
  337. package/_gaia/lifecycle/workflows/3-solutioning/edit-architecture/instructions.xml +91 -0
  338. package/_gaia/lifecycle/workflows/3-solutioning/edit-architecture/workflow.yaml +32 -0
  339. package/_gaia/lifecycle/workflows/3-solutioning/implementation-readiness/checklist.md +66 -0
  340. package/_gaia/lifecycle/workflows/3-solutioning/implementation-readiness/instructions.xml +160 -0
  341. package/_gaia/lifecycle/workflows/3-solutioning/implementation-readiness/workflow.yaml +48 -0
  342. package/_gaia/lifecycle/workflows/3-solutioning/infrastructure-design/checklist.md +24 -0
  343. package/_gaia/lifecycle/workflows/3-solutioning/infrastructure-design/instructions.xml +44 -0
  344. package/_gaia/lifecycle/workflows/3-solutioning/infrastructure-design/workflow.yaml +23 -0
  345. package/_gaia/lifecycle/workflows/3-solutioning/security-threat-model/checklist.md +24 -0
  346. package/_gaia/lifecycle/workflows/3-solutioning/security-threat-model/instructions.xml +55 -0
  347. package/_gaia/lifecycle/workflows/3-solutioning/security-threat-model/workflow.yaml +23 -0
  348. package/_gaia/lifecycle/workflows/4-implementation/action-items/instructions.xml +131 -0
  349. package/_gaia/lifecycle/workflows/4-implementation/action-items/workflow.yaml +19 -0
  350. package/_gaia/lifecycle/workflows/4-implementation/add-stories/checklist.md +27 -0
  351. package/_gaia/lifecycle/workflows/4-implementation/add-stories/instructions.xml +100 -0
  352. package/_gaia/lifecycle/workflows/4-implementation/add-stories/workflow.yaml +35 -0
  353. package/_gaia/lifecycle/workflows/4-implementation/change-request/checklist.md +25 -0
  354. package/_gaia/lifecycle/workflows/4-implementation/change-request/instructions.xml +123 -0
  355. package/_gaia/lifecycle/workflows/4-implementation/change-request/workflow.yaml +38 -0
  356. package/_gaia/lifecycle/workflows/4-implementation/check-dod/checklist.md +18 -0
  357. package/_gaia/lifecycle/workflows/4-implementation/check-dod/instructions.xml +54 -0
  358. package/_gaia/lifecycle/workflows/4-implementation/check-dod/workflow.yaml +19 -0
  359. package/_gaia/lifecycle/workflows/4-implementation/check-review-gate/checklist.md +18 -0
  360. package/_gaia/lifecycle/workflows/4-implementation/check-review-gate/instructions.xml +53 -0
  361. package/_gaia/lifecycle/workflows/4-implementation/check-review-gate/workflow.yaml +19 -0
  362. package/_gaia/lifecycle/workflows/4-implementation/code-review/checklist.md +18 -0
  363. package/_gaia/lifecycle/workflows/4-implementation/code-review/instructions.xml +50 -0
  364. package/_gaia/lifecycle/workflows/4-implementation/code-review/workflow.yaml +24 -0
  365. package/_gaia/lifecycle/workflows/4-implementation/correct-course/checklist.md +21 -0
  366. package/_gaia/lifecycle/workflows/4-implementation/correct-course/instructions.xml +63 -0
  367. package/_gaia/lifecycle/workflows/4-implementation/correct-course/workflow.yaml +25 -0
  368. package/_gaia/lifecycle/workflows/4-implementation/create-story/checklist.md +38 -0
  369. package/_gaia/lifecycle/workflows/4-implementation/create-story/instructions.xml +194 -0
  370. package/_gaia/lifecycle/workflows/4-implementation/create-story/workflow.yaml +26 -0
  371. package/_gaia/lifecycle/workflows/4-implementation/dev-story/checklist.md +26 -0
  372. package/_gaia/lifecycle/workflows/4-implementation/dev-story/instructions.xml +268 -0
  373. package/_gaia/lifecycle/workflows/4-implementation/dev-story/workflow.yaml +51 -0
  374. package/_gaia/lifecycle/workflows/4-implementation/epic-status/checklist.md +25 -0
  375. package/_gaia/lifecycle/workflows/4-implementation/epic-status/instructions.xml +62 -0
  376. package/_gaia/lifecycle/workflows/4-implementation/epic-status/workflow.yaml +24 -0
  377. package/_gaia/lifecycle/workflows/4-implementation/fix-story/checklist.md +12 -0
  378. package/_gaia/lifecycle/workflows/4-implementation/fix-story/instructions.xml +67 -0
  379. package/_gaia/lifecycle/workflows/4-implementation/fix-story/workflow.yaml +17 -0
  380. package/_gaia/lifecycle/workflows/4-implementation/qa-generate-tests/checklist.md +19 -0
  381. package/_gaia/lifecycle/workflows/4-implementation/qa-generate-tests/instructions.xml +52 -0
  382. package/_gaia/lifecycle/workflows/4-implementation/qa-generate-tests/workflow.yaml +20 -0
  383. package/_gaia/lifecycle/workflows/4-implementation/retrospective/checklist.md +15 -0
  384. package/_gaia/lifecycle/workflows/4-implementation/retrospective/instructions.xml +164 -0
  385. package/_gaia/lifecycle/workflows/4-implementation/retrospective/workflow.yaml +30 -0
  386. package/_gaia/lifecycle/workflows/4-implementation/run-all-reviews/checklist.md +14 -0
  387. package/_gaia/lifecycle/workflows/4-implementation/run-all-reviews/instructions.xml +78 -0
  388. package/_gaia/lifecycle/workflows/4-implementation/run-all-reviews/workflow.yaml +16 -0
  389. package/_gaia/lifecycle/workflows/4-implementation/security-review/checklist.md +29 -0
  390. package/_gaia/lifecycle/workflows/4-implementation/security-review/instructions.xml +80 -0
  391. package/_gaia/lifecycle/workflows/4-implementation/security-review/workflow.yaml +27 -0
  392. package/_gaia/lifecycle/workflows/4-implementation/sprint-planning/checklist.md +29 -0
  393. package/_gaia/lifecycle/workflows/4-implementation/sprint-planning/instructions.xml +140 -0
  394. package/_gaia/lifecycle/workflows/4-implementation/sprint-planning/workflow.yaml +33 -0
  395. package/_gaia/lifecycle/workflows/4-implementation/sprint-status/checklist.md +18 -0
  396. package/_gaia/lifecycle/workflows/4-implementation/sprint-status/instructions.xml +36 -0
  397. package/_gaia/lifecycle/workflows/4-implementation/sprint-status/workflow.yaml +19 -0
  398. package/_gaia/lifecycle/workflows/4-implementation/tech-debt-review/checklist.md +30 -0
  399. package/_gaia/lifecycle/workflows/4-implementation/tech-debt-review/instructions.xml +147 -0
  400. package/_gaia/lifecycle/workflows/4-implementation/tech-debt-review/workflow.yaml +24 -0
  401. package/_gaia/lifecycle/workflows/4-implementation/triage-findings/checklist.md +17 -0
  402. package/_gaia/lifecycle/workflows/4-implementation/triage-findings/instructions.xml +124 -0
  403. package/_gaia/lifecycle/workflows/4-implementation/triage-findings/workflow.yaml +15 -0
  404. package/_gaia/lifecycle/workflows/4-implementation/val-refresh-ground-truth/checklist.md +48 -0
  405. package/_gaia/lifecycle/workflows/4-implementation/val-refresh-ground-truth/instructions.xml +125 -0
  406. package/_gaia/lifecycle/workflows/4-implementation/val-refresh-ground-truth/workflow.yaml +31 -0
  407. package/_gaia/lifecycle/workflows/4-implementation/val-validate-artifact/checklist.md +54 -0
  408. package/_gaia/lifecycle/workflows/4-implementation/val-validate-artifact/instructions.xml +147 -0
  409. package/_gaia/lifecycle/workflows/4-implementation/val-validate-artifact/test-structure.sh +116 -0
  410. package/_gaia/lifecycle/workflows/4-implementation/val-validate-artifact/workflow.yaml +29 -0
  411. package/_gaia/lifecycle/workflows/4-implementation/val-validate-plan/checklist.md +34 -0
  412. package/_gaia/lifecycle/workflows/4-implementation/val-validate-plan/instructions.xml +162 -0
  413. package/_gaia/lifecycle/workflows/4-implementation/val-validate-plan/workflow.yaml +39 -0
  414. package/_gaia/lifecycle/workflows/4-implementation/validate-story/checklist.md +23 -0
  415. package/_gaia/lifecycle/workflows/4-implementation/validate-story/instructions.xml +146 -0
  416. package/_gaia/lifecycle/workflows/4-implementation/validate-story/workflow.yaml +25 -0
  417. package/_gaia/lifecycle/workflows/5-deployment/deployment-checklist/checklist.md +29 -0
  418. package/_gaia/lifecycle/workflows/5-deployment/deployment-checklist/instructions.xml +59 -0
  419. package/_gaia/lifecycle/workflows/5-deployment/deployment-checklist/workflow.yaml +39 -0
  420. package/_gaia/lifecycle/workflows/5-deployment/post-deploy-verify/checklist.md +19 -0
  421. package/_gaia/lifecycle/workflows/5-deployment/post-deploy-verify/instructions.xml +33 -0
  422. package/_gaia/lifecycle/workflows/5-deployment/post-deploy-verify/workflow.yaml +15 -0
  423. package/_gaia/lifecycle/workflows/5-deployment/release-plan/checklist.md +20 -0
  424. package/_gaia/lifecycle/workflows/5-deployment/release-plan/instructions.xml +33 -0
  425. package/_gaia/lifecycle/workflows/5-deployment/release-plan/workflow.yaml +19 -0
  426. package/_gaia/lifecycle/workflows/5-deployment/rollback-plan/checklist.md +20 -0
  427. package/_gaia/lifecycle/workflows/5-deployment/rollback-plan/instructions.xml +33 -0
  428. package/_gaia/lifecycle/workflows/5-deployment/rollback-plan/workflow.yaml +15 -0
  429. package/_gaia/lifecycle/workflows/anytime/brownfield-onboarding/checklist.md +52 -0
  430. package/_gaia/lifecycle/workflows/anytime/brownfield-onboarding/instructions.xml +122 -0
  431. package/_gaia/lifecycle/workflows/anytime/brownfield-onboarding/test-step7.sh +149 -0
  432. package/_gaia/lifecycle/workflows/anytime/brownfield-onboarding/workflow.yaml +33 -0
  433. package/_gaia/lifecycle/workflows/anytime/document-project/checklist.md +11 -0
  434. package/_gaia/lifecycle/workflows/anytime/document-project/instructions.xml +26 -0
  435. package/_gaia/lifecycle/workflows/anytime/document-project/workflow.yaml +15 -0
  436. package/_gaia/lifecycle/workflows/anytime/generate-project-context/checklist.md +11 -0
  437. package/_gaia/lifecycle/workflows/anytime/generate-project-context/instructions.xml +22 -0
  438. package/_gaia/lifecycle/workflows/anytime/generate-project-context/workflow.yaml +15 -0
  439. package/_gaia/lifecycle/workflows/anytime/memory-hygiene/checklist.md +66 -0
  440. package/_gaia/lifecycle/workflows/anytime/memory-hygiene/instructions.xml +206 -0
  441. package/_gaia/lifecycle/workflows/anytime/memory-hygiene/workflow.yaml +15 -0
  442. package/_gaia/lifecycle/workflows/anytime/performance-review/checklist.md +25 -0
  443. package/_gaia/lifecycle/workflows/anytime/performance-review/instructions.xml +62 -0
  444. package/_gaia/lifecycle/workflows/anytime/performance-review/workflow.yaml +15 -0
  445. package/_gaia/lifecycle/workflows/cross-phase/add-feature/checklist.md +30 -0
  446. package/_gaia/lifecycle/workflows/cross-phase/add-feature/instructions.xml +85 -0
  447. package/_gaia/lifecycle/workflows/cross-phase/add-feature/workflow.yaml +37 -0
  448. package/_gaia/lifecycle/workflows/quick-flow/quick-dev/checklist.md +11 -0
  449. package/_gaia/lifecycle/workflows/quick-flow/quick-dev/instructions.xml +26 -0
  450. package/_gaia/lifecycle/workflows/quick-flow/quick-dev/workflow.yaml +19 -0
  451. package/_gaia/lifecycle/workflows/quick-flow/quick-spec/checklist.md +13 -0
  452. package/_gaia/lifecycle/workflows/quick-flow/quick-spec/instructions.xml +27 -0
  453. package/_gaia/lifecycle/workflows/quick-flow/quick-spec/workflow.yaml +15 -0
  454. package/_gaia/testing/.resolved/.gitkeep +0 -0
  455. package/_gaia/testing/agents/test-architect.md +131 -0
  456. package/_gaia/testing/config.yaml +8 -0
  457. package/_gaia/testing/knowledge/_index.csv +22 -0
  458. package/_gaia/testing/knowledge/accessibility/axe-core-patterns.md +177 -0
  459. package/_gaia/testing/knowledge/accessibility/wcag-checks.md +191 -0
  460. package/_gaia/testing/knowledge/core/deterministic-testing.md +167 -0
  461. package/_gaia/testing/knowledge/core/fixture-architecture.md +131 -0
  462. package/_gaia/testing/knowledge/core/test-isolation.md +142 -0
  463. package/_gaia/testing/knowledge/core/test-pyramid.md +129 -0
  464. package/_gaia/testing/knowledge/extended/api-testing-patterns.md +196 -0
  465. package/_gaia/testing/knowledge/extended/data-factories.md +158 -0
  466. package/_gaia/testing/knowledge/extended/risk-governance.md +119 -0
  467. package/_gaia/testing/knowledge/extended/selector-resilience.md +109 -0
  468. package/_gaia/testing/knowledge/mobile-testing/appium-patterns.md +164 -0
  469. package/_gaia/testing/knowledge/mobile-testing/react-native-testing.md +193 -0
  470. package/_gaia/testing/knowledge/mobile-testing/responsive-testing.md +177 -0
  471. package/_gaia/testing/knowledge/performance/k6-patterns.md +200 -0
  472. package/_gaia/testing/knowledge/performance/lighthouse-ci.md +158 -0
  473. package/_gaia/testing/knowledge/specialized/contract-testing.md +173 -0
  474. package/_gaia/testing/knowledge/specialized/test-healing.md +129 -0
  475. package/_gaia/testing/knowledge/specialized/visual-testing.md +129 -0
  476. package/_gaia/testing/knowledge/unit-testing/jest-vitest-patterns.md +193 -0
  477. package/_gaia/testing/knowledge/unit-testing/junit5-patterns.md +200 -0
  478. package/_gaia/testing/knowledge/unit-testing/pytest-patterns.md +185 -0
  479. package/_gaia/testing/module-help.csv +13 -0
  480. package/_gaia/testing/workflows/accessibility-testing/checklist.md +12 -0
  481. package/_gaia/testing/workflows/accessibility-testing/instructions.xml +41 -0
  482. package/_gaia/testing/workflows/accessibility-testing/workflow.yaml +13 -0
  483. package/_gaia/testing/workflows/atdd/checklist.md +6 -0
  484. package/_gaia/testing/workflows/atdd/instructions.xml +36 -0
  485. package/_gaia/testing/workflows/atdd/workflow.yaml +22 -0
  486. package/_gaia/testing/workflows/ci-setup/checklist.md +9 -0
  487. package/_gaia/testing/workflows/ci-setup/instructions.xml +43 -0
  488. package/_gaia/testing/workflows/ci-setup/workflow.yaml +11 -0
  489. package/_gaia/testing/workflows/edit-test-plan/checklist.md +20 -0
  490. package/_gaia/testing/workflows/edit-test-plan/instructions.xml +65 -0
  491. package/_gaia/testing/workflows/edit-test-plan/workflow.yaml +35 -0
  492. package/_gaia/testing/workflows/mobile-testing/checklist.md +13 -0
  493. package/_gaia/testing/workflows/mobile-testing/instructions.xml +41 -0
  494. package/_gaia/testing/workflows/mobile-testing/workflow.yaml +11 -0
  495. package/_gaia/testing/workflows/nfr-assessment/checklist.md +7 -0
  496. package/_gaia/testing/workflows/nfr-assessment/instructions.xml +26 -0
  497. package/_gaia/testing/workflows/nfr-assessment/workflow.yaml +11 -0
  498. package/_gaia/testing/workflows/performance-testing/checklist.md +11 -0
  499. package/_gaia/testing/workflows/performance-testing/instructions.xml +41 -0
  500. package/_gaia/testing/workflows/performance-testing/workflow.yaml +11 -0
  501. package/_gaia/testing/workflows/teach-me-testing/checklist.md +6 -0
  502. package/_gaia/testing/workflows/teach-me-testing/instructions.xml +28 -0
  503. package/_gaia/testing/workflows/teach-me-testing/workflow.yaml +12 -0
  504. package/_gaia/testing/workflows/test-automation/checklist.md +6 -0
  505. package/_gaia/testing/workflows/test-automation/instructions.xml +49 -0
  506. package/_gaia/testing/workflows/test-automation/workflow.yaml +11 -0
  507. package/_gaia/testing/workflows/test-design/checklist.md +9 -0
  508. package/_gaia/testing/workflows/test-design/instructions.xml +47 -0
  509. package/_gaia/testing/workflows/test-design/workflow.yaml +11 -0
  510. package/_gaia/testing/workflows/test-framework/checklist.md +8 -0
  511. package/_gaia/testing/workflows/test-framework/instructions.xml +25 -0
  512. package/_gaia/testing/workflows/test-framework/workflow.yaml +11 -0
  513. package/_gaia/testing/workflows/test-review/checklist.md +9 -0
  514. package/_gaia/testing/workflows/test-review/instructions.xml +51 -0
  515. package/_gaia/testing/workflows/test-review/workflow.yaml +11 -0
  516. package/_gaia/testing/workflows/traceability/checklist.md +6 -0
  517. package/_gaia/testing/workflows/traceability/instructions.xml +49 -0
  518. package/_gaia/testing/workflows/traceability/workflow.yaml +21 -0
  519. package/bin/gaia-framework.js +58 -20
  520. package/gaia-install.sh +1 -1
  521. package/package.json +21 -7
@@ -0,0 +1,66 @@
1
+ ---
2
+ title: 'Memory Hygiene Validation'
3
+ validation-target: 'Memory hygiene report'
4
+ ---
5
+
6
+ ## Dynamic Sidecar Discovery
7
+ - [ ] All sidecar directories discovered dynamically from config + on-disk union
8
+ - [ ] Sidecars classified by tier (Tier 1, Tier 2, Tier 3, untiered)
9
+ - [ ] Empty sidecars identified and skipped
10
+ - [ ] Archive subdirectories excluded from active scanning
11
+ - [ ] Legacy filenames detected and flagged for migration
12
+
13
+ ## Tier-Aware Multi-File Scanning
14
+ - [ ] Tier 1 sidecars scanned for ground-truth.md, decision-log.md, conversation-context.md
15
+ - [ ] Tier 2 sidecars scanned for decision-log.md, conversation-context.md
16
+ - [ ] Tier 3 and untiered sidecars scanned for decision-log.md only
17
+ - [ ] Missing expected files logged with warning
18
+
19
+ ## Cross-Reference Validation
20
+ - [ ] Standardized decision-log entries parsed (Status, Related fields)
21
+ - [ ] Cross-agent references validated against cross-reference matrix from config
22
+ - [ ] References to superseded/archived entries flagged as STALE
23
+ - [ ] Pre-standard format entries flagged as UNVERIFIABLE-FORMAT
24
+ - [ ] Orphaned artifact paths and story/epic keys detected
25
+
26
+ ## Stale Detection via Skill
27
+ - [ ] stale-detection section loaded JIT from memory-management skill
28
+ - [ ] No inline reimplementation of stale/contradicted/orphaned detection
29
+ - [ ] All three detection categories applied (stale, contradicted, orphaned)
30
+
31
+ ## Token Budget Reporting
32
+ - [ ] Token usage calculated per agent (file size bytes / 4 chars-per-token)
33
+ - [ ] Compared against session budget and ground truth budget from config
34
+ - [ ] Threshold status indicators applied (OK / warning at 80% / critical at 90% / over-budget at 100%)
35
+ - [ ] Tier 3 and untiered agents reported with "no budget enforced"
36
+ - [ ] Token Budget Table included in report
37
+
38
+ ## Archival Recommendations
39
+ - [ ] Budget pressure recommendations (agents at or above 90%)
40
+ - [ ] Staleness recommendations (superseded/archived entries not in archive/)
41
+ - [ ] Age-based recommendations (entries older than 3 sprints / 42-day fallback)
42
+ - [ ] Recommendations classified as actionable vs advisory
43
+ - [ ] Archival never auto-executed — requires user confirmation per entry
44
+
45
+ ## Ground Truth Refresh
46
+ - [ ] Tier 1 agents checked for stale ground-truth.md (Sprint gap > 1)
47
+ - [ ] /gaia-refresh-ground-truth recommended for stale agents
48
+ - [ ] Tier 2 and Tier 3 agents excluded from ground truth check
49
+ - [ ] Graceful degradation if sprint data unavailable
50
+
51
+ ## Untiered Agent Handling
52
+ - [ ] Untiered agents (on-disk sidecar, no config entry) scanned as Tier 3
53
+ - [ ] Reported with "untiered — no budget config" in budget table
54
+ - [ ] Recommendation emitted to add to _memory/config.yaml as Tier 3
55
+
56
+ ## Enhanced Report Output
57
+ - [ ] Report contains all 7 sections: Summary, Token Budget Table, Detailed Findings, Archival Recommendations, Ground Truth Refresh Recommendations, Untiered Agent Report, Skipped Sidecars
58
+ - [ ] Summary includes counts by status across all tiers and budget usage summary
59
+ - [ ] Detailed Findings grouped by sidecar and sorted by severity
60
+ - [ ] Report saved to {implementation_artifacts}/memory-hygiene-report-{date}.md
61
+
62
+ ## User Actions
63
+ - [ ] All flagged entries presented to user with evidence
64
+ - [ ] User confirmed action (Keep/Archive/Delete) for each flagged entry
65
+ - [ ] Sidecar files updated per user choices
66
+ - [ ] Sidecar headers and marker comments preserved after edits
@@ -0,0 +1,206 @@
1
+ <workflow name="memory-hygiene">
2
+ <critical>
3
+ <mandate>User-initiated cross-sidecar reads are explicitly allowed per agent-specification-protocol</mandate>
4
+ <mandate>Never modify a sidecar file without explicit user confirmation for each entry</mandate>
5
+ <mandate>Preserve the sidecar file header and marker comment in all modifications</mandate>
6
+ <mandate>Process sidecars one at a time — release previous sidecar content before loading next (JIT)</mandate>
7
+ <mandate>Archival is recommendation-only — never auto-execute without user confirmation</mandate>
8
+ <mandate>Cross-reference validation scope is limited to the declared matrix in _memory/config.yaml</mandate>
9
+ <mandate>Token approximation: 4 chars per token (file size in bytes / 4)</mandate>
10
+ </critical>
11
+
12
+ <step n="1" title="Dynamic Sidecar Discovery">
13
+ <action>Read {memory_path}/config.yaml to get tier assignments, token budgets, and cross-reference matrix</action>
14
+ <action>Extract tier_1, tier_2, tier_3 agent lists from config. For each agent, resolve sidecar directory name from the agents.{agent-id}.sidecar field</action>
15
+ <action>Enumerate all on-disk {memory_path}/*-sidecar/ directories</action>
16
+ <action>Union config-declared sidecars and on-disk sidecars into a master list. For each sidecar, classify by tier:
17
+ - If agent is in tiers.tier_1.agents → Tier 1 (3 files: ground-truth.md, decision-log.md, conversation-context.md)
18
+ - If agent is in tiers.tier_2.agents → Tier 2 (2 files: decision-log.md, conversation-context.md)
19
+ - If agent is in tiers.tier_3.agents → Tier 3 (1 file: decision-log.md)
20
+ - If agent has on-disk sidecar but no tier in config → classify as Untiered (scan decision-log.md only, no budget enforced)</action>
21
+ <action>Exclude archive/ subdirectories from active scanning — these contain archived entries and are gitignored</action>
22
+ <action>Build categorized sidecar lists:
23
+ - Tier 1 sidecars with expected files
24
+ - Tier 2 sidecars with expected files
25
+ - Tier 3 sidecars with expected files
26
+ - Untiered sidecars (decision-log.md only)
27
+ - Empty sidecars (no content files found)
28
+ - Sidecars with legacy filenames (architecture-decisions.md, infrastructure-decisions.md, threat-model-decisions.md, velocity-data.md) — flag for migration to standard names</action>
29
+ <check if="zero sidecars have content">Report "All sidecars are empty — nothing to review" and complete the workflow</check>
30
+ <action>Report to user: "{N} sidecars discovered ({T1} Tier 1, {T2} Tier 2, {T3} Tier 3, {U} untiered), {E} empty. {L} legacy filenames detected. Proceeding with review."</action>
31
+ </step>
32
+
33
+ <step n="2" title="Tier-Aware Multi-File Scanning">
34
+ <action>For each sidecar (JIT — release previous sidecar content before loading next):
35
+ - Determine expected files based on tier classification from Step 1
36
+ - Tier 1: read ground-truth.md, decision-log.md, conversation-context.md
37
+ - Tier 2: read decision-log.md, conversation-context.md
38
+ - Tier 3: read decision-log.md
39
+ - Untiered: read decision-log.md</action>
40
+ <action>For each expected file:
41
+ - Check if file exists
42
+ - If missing: log warning "Expected {filename} for {tier} agent {agent} — file not found"
43
+ - If exists: check for content beyond template header (text after marker comment)
44
+ - Record file size in bytes for token budget calculation</action>
45
+ <action>Detect legacy filenames in each sidecar:
46
+ - architecture-decisions.md → should be decision-log.md (architect-sidecar)
47
+ - infrastructure-decisions.md → should be decision-log.md (devops-sidecar)
48
+ - threat-model-decisions.md → should be decision-log.md (security-sidecar)
49
+ - velocity-data.md → should be decision-log.md (sm-sidecar)
50
+ If legacy file found: scan it as decision-log content but flag for migration</action>
51
+ <action>Build content inventory: list of all files scanned with size, tier, and content status (has-content / empty / missing / legacy-name)</action>
52
+ </step>
53
+
54
+ <step n="3" title="Load Reference Artifacts">
55
+ <action>Attempt to read each reference artifact (record which exist and which are missing):
56
+ - {planning_artifacts}/architecture.md — for architectural decision validation
57
+ - {planning_artifacts}/prd.md — for product decision validation
58
+ - {planning_artifacts}/infrastructure-design.md — for infrastructure validation
59
+ - {test_artifacts}/test-plan.md — for test strategy validation
60
+ - {implementation_artifacts}/sprint-status.yaml — for sprint references and current sprint ID
61
+ - {planning_artifacts}/epics-and-stories.md — for story/epic key validation</action>
62
+ <action>For each artifact that exists: retain its key sections and structure for comparison</action>
63
+ <action>Extract current sprint ID from sprint-status.yaml if it exists. If not found, note "sprint data unavailable — will use 42-day calendar fallback for age calculations"</action>
64
+ <check if="no reference artifacts exist">Warn user: "No reference artifacts found. Hygiene will be limited to structural checks and budget reporting."</check>
65
+ </step>
66
+
67
+ <step n="4" title="Cross-Reference Validation">
68
+ <action>For each sidecar with content (JIT — release previous before loading next):
69
+ Parse decision-log entries using the standardized format (E9-S3):
70
+ - Header: ### [YYYY-MM-DD] Decision Title
71
+ - Fields: Agent, Sprint, Status: active | superseded | archived, Related: {paths, keys}
72
+ - If entry does not follow standardized format (no Status field, no ### header): flag as UNVERIFIABLE-FORMAT</action>
73
+ <action>For entries with Status field:
74
+ - If Status: superseded or Status: archived → flag entry itself as already-archived (candidate for archive/ move)
75
+ - If Status: active → validate Related field references</action>
76
+ <action>For entries with Related field pointing to other agents' decisions:
77
+ - Use the cross-reference matrix from {memory_path}/config.yaml to determine valid cross-agent reads
78
+ - For each cross-agent reference: look up the referenced entry's Status in the source agent's decision-log
79
+ - If referenced entry has Status: superseded or archived → flag as STALE with evidence
80
+ - If referenced entry not found → flag as ORPHANED
81
+ - If source agent's file not parseable → flag reference as UNVERIFIABLE-FORMAT</action>
82
+ <action>For all entries: scan Related field for artifact paths and story/epic keys
83
+ - Cross-reference paths against filesystem — if not found, flag as potential STALE or ORPHANED
84
+ - Cross-reference story/epic keys against epics-and-stories.md — if not found, flag as ORPHANED
85
+ - For ORPHANED candidates: search for semantically similar names and suggest likely renames</action>
86
+ </step>
87
+
88
+ <step n="5" title="Stale Detection via Skill">
89
+ <action>JIT-load the stale-detection section from {project-root}/_gaia/lifecycle/skills/memory-management.md
90
+ Load only the content between &lt;!-- SECTION: stale-detection --&gt; and &lt;!-- END SECTION --&gt; markers</action>
91
+ <action>Apply the canonical stale detection logic from the memory-management skill:
92
+ 1. Stale entries — decision references an artifact path that no longer exists on the filesystem
93
+ 2. Contradicted entries — two active decisions in the same sidecar that conflict
94
+ 3. Orphaned entries — decision references a story or epic removed from epics-and-stories.md</action>
95
+ <action>Merge stale detection results with cross-reference validation results from Step 4 — deduplicate entries flagged by both checks</action>
96
+ </step>
97
+
98
+ <step n="6" title="Classify Entries">
99
+ <action>Assign each sidecar entry one of five statuses:
100
+ - ACTIVE: Entry is consistent with current reference artifacts — no action needed
101
+ - STALE: The referenced artifact has changed or the cross-referenced decision is superseded/archived
102
+ - CONTRADICTED: Current artifact explicitly states the opposite of what this entry records
103
+ - ORPHANED: The component, service, story, or epic referenced no longer exists in any current artifact
104
+ - UNVERIFIABLE-FORMAT: Entry does not follow standardized format (no Status field) — cannot validate programmatically</action>
105
+ <action>Record evidence for each classification: which artifact section confirms or contradicts, what changed, or what is missing</action>
106
+ </step>
107
+
108
+ <step n="7" title="Token Budget Reporting">
109
+ <action>For each agent sidecar, calculate token usage:
110
+ - Sum file sizes in bytes across all sidecar files (from Step 2 inventory)
111
+ - Convert to approximate token count: file size in bytes / 4 (chars-per-token approximation from config archival.token_approximation)
112
+ - For Tier 1 agents: also calculate ground-truth.md token usage separately</action>
113
+ <action>Compare against budgets from {memory_path}/config.yaml:
114
+ - Tier 1 session budget: tiers.tier_1.session_budget (300K tokens)
115
+ - Tier 1 ground truth budget: agents.{agent}.ground_truth_budget (per-agent: Val 200K, Theo 150K, Derek 100K, Nate 100K)
116
+ - Tier 2 session budget: tiers.tier_2.session_budget (100K tokens)
117
+ - Tier 3: no budget enforced
118
+ - Untiered: no budget enforced</action>
119
+ <action>Apply threshold status indicators per archival config:
120
+ - OK: below 80% of budget
121
+ - warning: at or above 80% but below 90%
122
+ - critical: at or above 90% but below 100%
123
+ - over-budget: at or above 100%</action>
124
+ <action>Build Token Budget Table with columns:
125
+ | Agent | Tier | Files Scanned | Token Usage | Session Budget | GT Budget | % Used | Status |
126
+ For Tier 3 and untiered agents: budget column shows "no budget enforced" with actual token count reported</action>
127
+ </step>
128
+
129
+ <step n="8" title="Archival Recommendations">
130
+ <action>Generate archival recommendations based on three criteria:
131
+ (a) Budget pressure — for agents at or above 90% of budget: identify oldest entries as archival candidates (oldest first). Mark as "actionable — budget pressure"
132
+ (b) Staleness — entries with Status: superseded or Status: archived that have not been moved to the archive/ subdirectory. Mark as "actionable — stale status"
133
+ (c) Age — entries older than 3 sprints (determined from current sprint ID minus 3; fallback to 42 calendar days if no sprint data). Only flag if the entry has no Related field pointing to an active story. Mark as "advisory — age"</action>
134
+ <action>Classify each recommendation:
135
+ - Actionable: budget pressure and staleness recommendations — should be acted on
136
+ - Advisory: age-based recommendations — informational, user decides</action>
137
+ <action>Archival is never auto-executed — all recommendations require user confirmation per entry before any file changes are made</action>
138
+ </step>
139
+
140
+ <step n="9" title="Ground Truth Refresh Trigger">
141
+ <action>For each Tier 1 agent (Val, Theo, Derek, Nate) that has a ground-truth.md file:
142
+ - Read the most recent entry's Sprint field from ground-truth.md
143
+ - Compare against current sprint ID from sprint-status.yaml
144
+ - If the gap is more than 1 sprint behind: recommend /gaia-refresh-ground-truth for that agent</action>
145
+ <action>If sprint-status.yaml does not exist or has no sprint ID: skip ground truth refresh check (cannot determine staleness without sprint data)</action>
146
+ <action>If E9-S11 (--agent parameter) is not yet implemented: recommend base command /gaia-refresh-ground-truth without --agent flag. Once E9-S11 ships, recommend /gaia-refresh-ground-truth --agent {agent-id}</action>
147
+ <action>Tier 2 and Tier 3 agents have no ground-truth.md — exclude from this check entirely</action>
148
+ </step>
149
+
150
+ <step n="10" title="Present Enhanced Report">
151
+ <action>Generate the enhanced findings report with these 7 sections:
152
+
153
+ **1. Summary**
154
+ - Total sidecars scanned (by tier: Tier 1, Tier 2, Tier 3, untiered)
155
+ - Total entries scanned
156
+ - Counts by status: ACTIVE, STALE, CONTRADICTED, ORPHANED, UNVERIFIABLE-FORMAT
157
+ - Budget usage summary: agents OK, warning, critical, over-budget
158
+
159
+ **2. Token Budget Table**
160
+ | Agent | Tier | Files Scanned | Token Usage | Session Budget | GT Budget | % Used | Status |
161
+ (One row per agent, sorted by tier then agent name)
162
+
163
+ **3. Detailed Findings**
164
+ | Sidecar | Entry | Status | Evidence | Reference Artifact |
165
+ (Grouped by sidecar, sorted by severity: CONTRADICTED, STALE, ORPHANED, UNVERIFIABLE-FORMAT, ACTIVE)
166
+
167
+ **4. Archival Recommendations**
168
+ | # | Agent | Entry | Reason | Type | Action |
169
+ (Budget pressure first, then staleness, then age)
170
+
171
+ **5. Ground Truth Refresh Recommendations**
172
+ | Agent | Last Sprint | Current Sprint | Gap | Recommendation |
173
+ (Tier 1 agents only)
174
+
175
+ **6. Untiered Agent Report**
176
+ | Agent | Sidecar Dir | Files Found | Recommendation |
177
+ For each untiered agent: recommend adding to _memory/config.yaml as Tier 3
178
+
179
+ **7. Skipped Sidecars**
180
+ List of sidecars with no content or explicitly skipped</action>
181
+ <template-output file="{implementation_artifacts}/memory-hygiene-report-{date}.md">
182
+ Enhanced memory hygiene report with all 7 sections: Summary, Token Budget Table, Detailed Findings, Archival Recommendations, Ground Truth Refresh Recommendations, Untiered Agent Report, Skipped Sidecars.
183
+ </template-output>
184
+ </step>
185
+
186
+ <step n="11" title="User Action on Flagged Items">
187
+ <action>For each entry with status other than ACTIVE, ask the user to choose one action:
188
+ - Keep: Add a [Reviewed: {date}] annotation to the entry — confirms user saw and accepted it
189
+ - Archive: Move the entry to the archive/ subdirectory of the sidecar (if directory exists; create if not). Prefix with [Archived: {date} — Reason: {status}]
190
+ - Delete: Remove the entry from the sidecar file entirely</action>
191
+ <action>When modifying sidecar files:
192
+ - ALWAYS preserve the file header (title, description, marker comment)
193
+ - ALWAYS keep the &lt;!-- Decisions will be appended below this line --&gt; marker intact
194
+ - Active entries remain between the marker comment and end of file
195
+ - Archived entries go to archive/ subdirectory, not inline section</action>
196
+ <action>After all user actions are processed: report summary of changes made to each sidecar file</action>
197
+ </step>
198
+
199
+ <step n="12" title="Optional: Prune Completed Checkpoints" optional="true">
200
+ <ask>Would you like to prune old completed checkpoints? (yes / skip)</ask>
201
+ <action if="yes">Read {checkpoint_path}/completed/ and list all .yaml files with dates</action>
202
+ <ask if="yes">How many sprints of checkpoints to retain? (default: 2)</ask>
203
+ <action if="yes">Delete checkpoint files older than the retention window</action>
204
+ <action if="yes">Report: "Pruned {N} completed checkpoint(s). Retained {M} within the {retention} sprint window."</action>
205
+ </step>
206
+ </workflow>
@@ -0,0 +1,15 @@
1
+ name: memory-hygiene
2
+ description: 'Detect stale, contradicted, or superseded decisions in agent memory sidecars'
3
+ module: lifecycle
4
+ agent: orchestrator
5
+ config_resolved: "{installed_path}/.resolved/memory-hygiene.yaml"
6
+ config_source: "{project-root}/_gaia/lifecycle/config.yaml"
7
+ installed_path: "{project-root}/_gaia/lifecycle/workflows/anytime/memory-hygiene"
8
+ instructions: "{installed_path}/instructions.xml"
9
+ validation: "{installed_path}/checklist.md"
10
+ on_error:
11
+ missing_file: "ask_user"
12
+ unresolved_variable: "halt"
13
+
14
+ output:
15
+ primary: "{implementation_artifacts}/memory-hygiene-report-{date}.md"
@@ -0,0 +1,25 @@
1
+ ---
2
+ title: 'Performance Review Validation'
3
+ validation-target: 'Performance review report'
4
+ required-inputs: []
5
+ ---
6
+ ## Scope
7
+ - [ ] Performance scope defined (endpoints, flows, system)
8
+ - [ ] Frontend vs backend scope clarified
9
+ ## Baseline
10
+ - [ ] Current metrics documented or baseline plan established
11
+ - [ ] SLOs identified
12
+ ## Load Testing
13
+ - [ ] Test scenarios match real user behavior
14
+ - [ ] Traffic patterns defined
15
+ - [ ] Tooling recommended
16
+ ## Bottlenecks
17
+ - [ ] Database access patterns reviewed
18
+ - [ ] Blocking operations identified
19
+ - [ ] Caching strategy evaluated
20
+ ## Recommendations
21
+ - [ ] Improvements are specific and prioritized
22
+ - [ ] Each has estimated impact
23
+ - [ ] Categorized by effort level
24
+ ## Output Verification
25
+ - [ ] Report file generated at {test_artifacts}/
@@ -0,0 +1,62 @@
1
+ <workflow name="performance-review">
2
+ <critical>
3
+ <mandate>Story must be in review status before performance review</mandate>
4
+ <mandate>Auto-pass if no performance-relevant code changes detected</mandate>
5
+ <mandate>Always measure before recommending optimizations</mandate>
6
+ <mandate>Report in percentiles (P50, P95, P99), not averages</mandate>
7
+ <mandate>Output must include machine-readable PASSED or FAILED verdict</mandate>
8
+ <mandate>When reading or running application source code, use {project-path} as the base directory — NOT {project-root}. {project-path} is resolved by the engine from global.yaml.</mandate>
9
+ </critical>
10
+ <step n="1" title="Load Story">
11
+ <action>Resolve story file: search for {story_key}-*.md in {implementation_artifacts}/ using glob pattern to match the full filename ({story_key}-{title_slug}.md)</action>
12
+ <action>Read story file, identify files changed</action>
13
+ <action>Extract the list of files changed from the story file</action>
14
+ </step>
15
+ <step n="2" title="Status Gate">
16
+ <action>Verify story is in 'review' status</action>
17
+ <check if="status != review">HALT: Story must be in review status before performance review</check>
18
+ </step>
19
+ <step n="3" title="Auto-Pass Classification">
20
+ <action>Classify each changed file as performance-relevant or not:</action>
21
+ <action>Performance-relevant: files containing DB queries, API endpoints, data processing, rendering logic, loops/algorithms, middleware, caching, network calls</action>
22
+ <action>Not relevant: markdown (.md), config/yaml/json, test files, static assets, CSS-only, copy/translations, .gitignore, lock files</action>
23
+ <check if="zero performance-relevant files">
24
+ Verdict is PASSED with note "No performance-relevant code changes — auto-passed". Skip to step 8 (Generate Output) with this verdict.
25
+ </check>
26
+ <action>If ANY performance-relevant files exist: proceed to full review (step 4)</action>
27
+ </step>
28
+ <step n="4" title="N+1 and Database Analysis">
29
+ <action>Analyze for N+1 queries and inefficient database access patterns</action>
30
+ <action>Check for missing indexes on queried columns</action>
31
+ <action>Identify unbounded queries (missing LIMIT, pagination)</action>
32
+ </step>
33
+ <step n="5" title="Memory and Bundle Analysis">
34
+ <action>Identify memory leaks, large payloads, unoptimized loops</action>
35
+ <action>Check frontend: bundle size impact, render blocking, unnecessary re-renders</action>
36
+ <action>Review image optimization and lazy loading</action>
37
+ </step>
38
+ <step n="6" title="Caching and Complexity Review">
39
+ <action>Review caching strategy: what's cached, what should be, cache invalidation</action>
40
+ <action>Check for blocking operations and synchronous bottlenecks</action>
41
+ <action>Analyze algorithm complexity — flag O(n^2) or worse in hot paths</action>
42
+ </step>
43
+ <step n="7" title="Verdict">
44
+ <action>If NO critical or high severity performance issues: verdict is PASSED</action>
45
+ <action>If ANY critical or high severity issue found: verdict is FAILED — list blocking findings</action>
46
+ </step>
47
+ <step n="8" title="Generate Output">
48
+ <template-output file="{implementation_artifacts}/{story_key}-performance-review.md">
49
+ Generate performance review report with: auto-pass classification result (if applicable), N+1 analysis, memory/bundle findings, caching review, algorithm complexity, and machine-readable verdict (PASSED/FAILED).
50
+ </template-output>
51
+ </step>
52
+ <step n="9" title="Update Review Gate and Transition">
53
+ <action>Read story file, locate Review Gate table</action>
54
+ <action>If PASSED: update Performance Review row status to PASSED, link report file</action>
55
+ <action>If FAILED: update Performance Review row status to FAILED, link report file. Do NOT change story status — the review-gate-check protocol or run-all-reviews orchestrator handles status transitions.</action>
56
+ <template-output file="{implementation_artifacts}/{story_key}-*.md">
57
+ Update story file Review Gate table with performance review result and report link.
58
+ </template-output>
59
+ <action>Inform user: "Note: sprint-status.yaml may now be out of sync. Run /gaia-sprint-status to reconcile."</action>
60
+ <invoke-protocol name="review-gate-check" file="{project-root}/_gaia/core/protocols/review-gate-check.xml" />
61
+ </step>
62
+ </workflow>
@@ -0,0 +1,15 @@
1
+ name: performance-review
2
+ description: 'Analyze performance bottlenecks and recommend optimizations'
3
+ module: lifecycle
4
+ agent: performance
5
+ config_resolved: "{installed_path}/.resolved/performance-review.yaml"
6
+ config_source: "{project-root}/_gaia/lifecycle/config.yaml"
7
+ installed_path: "{project-root}/_gaia/lifecycle/workflows/anytime/performance-review"
8
+ instructions: "{installed_path}/instructions.xml"
9
+ validation: "{installed_path}/checklist.md"
10
+ on_error:
11
+ missing_file: "ask_user"
12
+ unresolved_variable: "halt"
13
+
14
+ output:
15
+ primary: "{test_artifacts}/performance-review-{date}.md"
@@ -0,0 +1,30 @@
1
+ ---
2
+ title: 'Add Feature Validation'
3
+ validation-target: 'Feature Addition Cascade'
4
+ ---
5
+ ## Orchestration
6
+ - [ ] Feature scope captured and confirmed by user
7
+ - [ ] Context flows forward between steps (prd_diff → arch_diff → test_diff → stories)
8
+ - [ ] Steps intelligently skipped when not needed
9
+ ## PRD Update
10
+ - [ ] PRD edited with new requirements
11
+ - [ ] New FR/NFR IDs captured for downstream steps
12
+ - [ ] Cascade to architecture classified (NONE/MINOR/SIGNIFICANT)
13
+ ## Architecture Update (if applicable)
14
+ - [ ] Architecture edited with changes supporting new requirements
15
+ - [ ] New ADRs recorded
16
+ - [ ] Skipped with justification if cascade_to_arch == NONE
17
+ ## Test Plan Update (if applicable)
18
+ - [ ] Test plan edited with new test cases
19
+ - [ ] New test cases map to new FR/NFR IDs
20
+ - [ ] Skipped with justification if no test-plan.md or no new testable behavior
21
+ ## Story Creation
22
+ - [ ] New stories created with correct format
23
+ - [ ] Epic assignment confirmed (new or existing)
24
+ - [ ] Story protection enforced (no modification of locked stories)
25
+ ## Traceability
26
+ - [ ] Traceability matrix regenerated
27
+ - [ ] New requirements → test cases → stories linked
28
+ ## Summary
29
+ - [ ] Final summary presented to user with all artifact statuses
30
+ - [ ] Next steps communicated
@@ -0,0 +1,85 @@
1
+ <workflow name="add-feature">
2
+ <critical>
3
+ <mandate>This is an orchestrator — delegate to sub-workflows via subagents, do not perform edits directly</mandate>
4
+ <mandate>Context flows forward: PRD diff feeds arch edit, which feeds test plan edit, which feeds story creation</mandate>
5
+ <mandate>Intelligently skip steps when not needed — do not force all sub-workflows on every feature</mandate>
6
+ </critical>
7
+
8
+ <step n="1" title="Capture Feature Scope">
9
+ <ask>Describe the new feature you want to add.</ask>
10
+ <ask>What is the business driver? (customer request / market opportunity / technical improvement / regulatory)</ask>
11
+ <ask>Is this linked to a change request? If so, provide the CR ID.</ask>
12
+ <action>If CR exists: read {planning_artifacts}/change-request-{cr_id}.md for context (impact analysis, approval status)</action>
13
+ <action>Classify initial scope: how many artifacts will likely need changes?</action>
14
+ <action>Present scope summary to user for confirmation before proceeding:
15
+ - Feature: {feature_description}
16
+ - Driver: {driver}
17
+ - CR: {cr_id or "none"}
18
+ - Expected cascade: PRD (always) → Architecture ({likely/unlikely}) → Test Plan ({if exists}) → Stories (always) → Traceability (always)</action>
19
+ </step>
20
+
21
+ <step n="2" title="Edit PRD">
22
+ <action>Spawn a subagent using the Agent tool: "Load {project-root}/_gaia/core/engine/workflow.xml, then process {project-root}/_gaia/lifecycle/workflows/2-planning/edit-prd/workflow.yaml as workflow-config. Run in YOLO mode. Follow the workflow engine instructions EXACTLY. Context: Adding new feature: {feature_description}. Driver: {driver}. CR ID: {cr_id}. Add new functional and non-functional requirements for this feature. Use CR ID {cr_id} when prompted."</action>
23
+ <action>When subagent returns: capture the PRD diff — identify NEW requirement IDs (FR-*, NFR-*) added</action>
24
+ <action>Capture the cascade classification from edit-prd Step 7 (architecture impact: NONE/MINOR/SIGNIFICANT)</action>
25
+ <action>Store: prd_diff = {new FR/NFR IDs and descriptions}, cascade_to_arch = {NONE/MINOR/SIGNIFICANT}</action>
26
+ </step>
27
+
28
+ <step n="3" title="Adversarial Review on PRD" optional="true" condition="edit_prd_offered_adversarial">
29
+ <action>If edit-prd Step 5 ran adversarial review: the subagent already handled it — capture any refined requirements</action>
30
+ <action>If adversarial findings were incorporated: update prd_diff with refined requirement IDs</action>
31
+ <action>If adversarial was skipped: proceed to Step 4</action>
32
+ </step>
33
+
34
+ <step n="4" title="Edit Architecture" optional="true" condition="cascade_to_arch != NONE">
35
+ <check if="cascade_to_arch == NONE">
36
+ <action>Inform user: "No architecture changes needed for this feature — PRD changes are requirements-only." Skip to Step 5.</action>
37
+ </check>
38
+ <action>Spawn a subagent using the Agent tool: "Load {project-root}/_gaia/core/engine/workflow.xml, then process {project-root}/_gaia/lifecycle/workflows/3-solutioning/edit-architecture/workflow.yaml as workflow-config. Run in YOLO mode. Follow the workflow engine instructions EXACTLY. Context: PRD updated with new feature: {feature_description}. New requirements: {prd_diff}. Update architecture to support these requirements. CR ID: {cr_id}."</action>
39
+ <action>When subagent returns: capture the architecture diff — new ADRs, changed sections, version note</action>
40
+ <action>Store: arch_diff = {architecture changes made}</action>
41
+ </step>
42
+
43
+ <step n="5" title="Edit Test Plan" optional="true" condition="test_plan_exists">
44
+ <check if="test_plan_not_found">
45
+ <action>Inform user: "No test-plan.md exists. Recommend running /gaia-test-design to create an initial test plan." Skip to Step 6.</action>
46
+ </check>
47
+ <ask>Does this feature add new testable behavior? (yes / skip)</ask>
48
+ <action>If skip: proceed to Step 6.</action>
49
+ <action>If yes: spawn a subagent using the Agent tool: "Load {project-root}/_gaia/core/engine/workflow.xml, then process {project-root}/_gaia/testing/workflows/edit-test-plan/workflow.yaml as workflow-config. Run in YOLO mode. Follow the workflow engine instructions EXACTLY. Context: New feature: {feature_description}. New PRD requirements: {prd_diff}. Architecture changes: {arch_diff}. Add test cases for the new feature."</action>
50
+ <action>When subagent returns: capture test plan additions (new test case IDs)</action>
51
+ <action>Store: test_diff = {new test cases added}</action>
52
+ </step>
53
+
54
+ <step n="6" title="Add Feature Stories">
55
+ <action>Spawn a subagent using the Agent tool: "Load {project-root}/_gaia/core/engine/workflow.xml, then process {project-root}/_gaia/lifecycle/workflows/4-implementation/add-stories/workflow.yaml as workflow-config. Run in YOLO mode. Follow the workflow engine instructions EXACTLY. Context: New feature: {feature_description}. New PRD requirements: {prd_diff}. Architecture changes: {arch_diff}. Create stories for this feature. Determine if a new epic is needed or if stories belong to an existing epic. CR ID: {cr_id}."</action>
56
+ <action>When subagent returns: capture new story keys and epic assignments</action>
57
+ <action>Store: new_stories = {list of new story keys created}</action>
58
+ </step>
59
+
60
+ <step n="7" title="Update Traceability">
61
+ <action>Spawn a subagent using the Agent tool: "Load {project-root}/_gaia/core/engine/workflow.xml, then process {project-root}/_gaia/testing/workflows/traceability/workflow.yaml as workflow-config. Run in YOLO mode. Follow the workflow engine instructions EXACTLY. Regenerate traceability matrix to include new requirements, test cases, and stories."</action>
62
+ <action>When subagent returns: verify new FR/NFR IDs → test cases → stories are linked</action>
63
+ </step>
64
+
65
+ <step n="8" title="Readiness Re-check and Summary">
66
+ <ask>Run readiness check to validate consistency? (yes / skip — recommended for significant features)</ask>
67
+ <action>If yes: spawn a subagent using the Agent tool: "Load {project-root}/_gaia/core/engine/workflow.xml, then process {project-root}/_gaia/lifecycle/workflows/3-solutioning/implementation-readiness/workflow.yaml as workflow-config. Run in YOLO mode. Follow the workflow engine instructions EXACTLY."</action>
68
+ <action>Present final summary:
69
+ **Feature Addition Complete: {feature_description}**
70
+
71
+ | Artifact | Status | Details |
72
+ |----------|--------|---------|
73
+ | PRD | Updated | {new FR/NFR IDs added} |
74
+ | Architecture | {Updated/Skipped} | {new ADRs or "No changes needed"} |
75
+ | Test Plan | {Updated/Skipped/Not found} | {new test case IDs or reason} |
76
+ | Stories | Created | {new story keys} in {epic assignment} |
77
+ | Traceability | Regenerated | {linkage verified} |
78
+ | Readiness | {Passed/Skipped} | {status} |
79
+
80
+ **Next steps:**
81
+ - For each new story: run /gaia-create-story {story_key} to elaborate
82
+ - To start development: run /gaia-sprint-plan or /gaia-correct-course
83
+ </action>
84
+ </step>
85
+ </workflow>
@@ -0,0 +1,37 @@
1
+ name: add-feature
2
+ description: 'Guided orchestrator for adding a new feature — cascades through PRD, architecture, test plan, stories, traceability, and readiness'
3
+ module: lifecycle
4
+ agent: orchestrator
5
+ config_resolved: "{installed_path}/.resolved/add-feature.yaml"
6
+ config_source: "{project-root}/_gaia/lifecycle/config.yaml"
7
+ installed_path: "{project-root}/_gaia/lifecycle/workflows/cross-phase/add-feature"
8
+ instructions: "{installed_path}/instructions.xml"
9
+ validation: "{installed_path}/checklist.md"
10
+ input_file_patterns:
11
+ prd:
12
+ whole: "{planning_artifacts}/prd.md"
13
+ load_strategy: "SELECTIVE_LOAD"
14
+ architecture:
15
+ whole: "{planning_artifacts}/architecture.md"
16
+ load_strategy: "SELECTIVE_LOAD"
17
+ test_plan:
18
+ whole: "{test_artifacts}/test-plan.md"
19
+ load_strategy: "SELECTIVE_LOAD"
20
+ epics:
21
+ whole: "{planning_artifacts}/epics-and-stories.md"
22
+ load_strategy: "SELECTIVE_LOAD"
23
+ sprint_status:
24
+ whole: "{implementation_artifacts}/sprint-status.yaml"
25
+ load_strategy: "SELECTIVE_LOAD"
26
+ quality_gates:
27
+ pre_start:
28
+ - check: "prd_exists"
29
+ on_fail: "HALT: prd.md does not exist. Run /gaia-create-prd first."
30
+ - check: "epics_exists"
31
+ on_fail: "HALT: epics-and-stories.md does not exist. Run /gaia-create-epics first."
32
+ on_error:
33
+ missing_file: "ask_user"
34
+ unresolved_variable: "halt"
35
+
36
+ output:
37
+ primary: "{planning_artifacts}/epics-and-stories.md"
@@ -0,0 +1,11 @@
1
+ ---
2
+ title: 'Quick Dev Validation'
3
+ validation-target: 'Quick dev implementation'
4
+ ---
5
+ ## Implementation
6
+ - [ ] Spec followed
7
+ - [ ] Tests pass
8
+ - [ ] Acceptance criteria met
9
+ ## Checkpoint
10
+ - [ ] WIP checkpoint checked on start
11
+ - [ ] Checkpoint archived on completion
@@ -0,0 +1,26 @@
1
+ <workflow name="quick-dev">
2
+ <critical>
3
+ <mandate>Check for WIP checkpoint before starting</mandate>
4
+ </critical>
5
+ <step n="1" title="Load Spec">
6
+ <action>Read quick spec file</action>
7
+ <action>Check for WIP checkpoint at _memory/checkpoints/quick-dev-{spec_name}.yaml</action>
8
+ </step>
9
+ <step n="2" title="Check WIP">
10
+ <check if="checkpoint_exists and has files_touched">Validate checksums (shasum -a 256) for each entry in files_touched — flag DELETED or MODIFIED files, offer Proceed / Start fresh / Review before resuming</check>
11
+ <check if="checkpoint_exists">Offer to resume from last checkpoint or start fresh</check>
12
+ </step>
13
+ <step n="3" title="Implement">
14
+ <action>Follow spec implementation steps</action>
15
+ <action>Apply TDD where practical</action>
16
+ <action>Write checkpoint after each step — include files_touched with path, checksum (shasum -a 256), last_modified (ISO 8601) for all files created/modified</action>
17
+ </step>
18
+ <step n="4" title="Verify">
19
+ <action>Run tests</action>
20
+ <action>Validate against spec acceptance criteria</action>
21
+ </step>
22
+ <step n="5" title="Complete">
23
+ <action>Archive checkpoint to completed/</action>
24
+ <action>Report implementation complete with files changed</action>
25
+ </step>
26
+ </workflow>
@@ -0,0 +1,19 @@
1
+ name: quick-dev
2
+ description: 'Implement a quick spec'
3
+ module: lifecycle
4
+ agent: dev-*
5
+ config_resolved: "{installed_path}/.resolved/quick-dev.yaml"
6
+ config_source: "{project-root}/_gaia/lifecycle/config.yaml"
7
+ installed_path: "{project-root}/_gaia/lifecycle/workflows/quick-flow/quick-dev"
8
+ instructions: "{installed_path}/instructions.xml"
9
+ validation: "{installed_path}/checklist.md"
10
+ input_file_patterns:
11
+ spec:
12
+ whole: "{implementation_artifacts}/quick-spec-{{spec_name}}.md"
13
+ load_strategy: "FULL_LOAD"
14
+ on_error:
15
+ missing_file: "ask_user"
16
+ unresolved_variable: "halt"
17
+
18
+ output:
19
+ primary: "source_code"
@@ -0,0 +1,13 @@
1
+ ---
2
+ title: 'Quick Spec Validation'
3
+ validation-target: 'Quick spec document'
4
+ ---
5
+ ## Scope
6
+ - [ ] Change clearly described
7
+ - [ ] Files identified
8
+ - [ ] Escape hatch offered if scope is large
9
+ ## Spec Quality
10
+ - [ ] Implementation steps defined
11
+ - [ ] Acceptance criteria included
12
+ ## Output Verification
13
+ - [ ] Quick spec exists at {implementation_artifacts}/quick-spec-{spec_name}.md