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.
Files changed (521) hide show
  1. package/README.md +1 -1
  2. package/bin/gaia-framework.js +27 -19
  3. package/gaia-install.sh +1 -1
  4. package/package.json +15 -11
  5. package/.claude/commands/gaia-a11y-testing.md +0 -17
  6. package/.claude/commands/gaia-action-items.md +0 -23
  7. package/.claude/commands/gaia-add-feature.md +0 -17
  8. package/.claude/commands/gaia-add-stories.md +0 -17
  9. package/.claude/commands/gaia-advanced-elicitation.md +0 -17
  10. package/.claude/commands/gaia-adversarial.md +0 -15
  11. package/.claude/commands/gaia-agent-analyst.md +0 -14
  12. package/.claude/commands/gaia-agent-architect.md +0 -14
  13. package/.claude/commands/gaia-agent-brainstorming.md +0 -14
  14. package/.claude/commands/gaia-agent-data-engineer.md +0 -14
  15. package/.claude/commands/gaia-agent-design-thinking.md +0 -14
  16. package/.claude/commands/gaia-agent-dev-angular.md +0 -14
  17. package/.claude/commands/gaia-agent-dev-flutter.md +0 -14
  18. package/.claude/commands/gaia-agent-dev-go.md +0 -14
  19. package/.claude/commands/gaia-agent-dev-java.md +0 -14
  20. package/.claude/commands/gaia-agent-dev-mobile.md +0 -14
  21. package/.claude/commands/gaia-agent-dev-python.md +0 -14
  22. package/.claude/commands/gaia-agent-dev-typescript.md +0 -14
  23. package/.claude/commands/gaia-agent-devops.md +0 -14
  24. package/.claude/commands/gaia-agent-innovation.md +0 -14
  25. package/.claude/commands/gaia-agent-performance.md +0 -14
  26. package/.claude/commands/gaia-agent-pm.md +0 -14
  27. package/.claude/commands/gaia-agent-presentation.md +0 -14
  28. package/.claude/commands/gaia-agent-problem-solver.md +0 -14
  29. package/.claude/commands/gaia-agent-qa.md +0 -14
  30. package/.claude/commands/gaia-agent-security.md +0 -14
  31. package/.claude/commands/gaia-agent-sm.md +0 -14
  32. package/.claude/commands/gaia-agent-storyteller.md +0 -14
  33. package/.claude/commands/gaia-agent-tech-writer.md +0 -14
  34. package/.claude/commands/gaia-agent-test-architect.md +0 -14
  35. package/.claude/commands/gaia-agent-ux-designer.md +0 -14
  36. package/.claude/commands/gaia-agent-validator.md +0 -14
  37. package/.claude/commands/gaia-atdd.md +0 -17
  38. package/.claude/commands/gaia-brainstorm.md +0 -17
  39. package/.claude/commands/gaia-brainstorming.md +0 -17
  40. package/.claude/commands/gaia-brownfield.md +0 -17
  41. package/.claude/commands/gaia-build-configs.md +0 -22
  42. package/.claude/commands/gaia-change-request.md +0 -11
  43. package/.claude/commands/gaia-changelog.md +0 -16
  44. package/.claude/commands/gaia-check-dod.md +0 -17
  45. package/.claude/commands/gaia-check-review-gate.md +0 -17
  46. package/.claude/commands/gaia-ci-setup.md +0 -17
  47. package/.claude/commands/gaia-code-review.md +0 -17
  48. package/.claude/commands/gaia-correct-course.md +0 -17
  49. package/.claude/commands/gaia-create-arch.md +0 -17
  50. package/.claude/commands/gaia-create-epics.md +0 -17
  51. package/.claude/commands/gaia-create-prd.md +0 -17
  52. package/.claude/commands/gaia-create-story.md +0 -23
  53. package/.claude/commands/gaia-create-ux.md +0 -17
  54. package/.claude/commands/gaia-creative-sprint.md +0 -17
  55. package/.claude/commands/gaia-deploy-checklist.md +0 -17
  56. package/.claude/commands/gaia-design-thinking.md +0 -17
  57. package/.claude/commands/gaia-dev-story.md +0 -23
  58. package/.claude/commands/gaia-document-project.md +0 -17
  59. package/.claude/commands/gaia-domain-research.md +0 -17
  60. package/.claude/commands/gaia-edge-cases.md +0 -15
  61. package/.claude/commands/gaia-edit-arch.md +0 -17
  62. package/.claude/commands/gaia-edit-prd.md +0 -17
  63. package/.claude/commands/gaia-edit-test-plan.md +0 -17
  64. package/.claude/commands/gaia-editorial-prose.md +0 -15
  65. package/.claude/commands/gaia-editorial-structure.md +0 -15
  66. package/.claude/commands/gaia-epic-status.md +0 -17
  67. package/.claude/commands/gaia-fix-story.md +0 -17
  68. package/.claude/commands/gaia-help.md +0 -15
  69. package/.claude/commands/gaia-index-docs.md +0 -15
  70. package/.claude/commands/gaia-infra-design.md +0 -17
  71. package/.claude/commands/gaia-innovation.md +0 -17
  72. package/.claude/commands/gaia-market-research.md +0 -17
  73. package/.claude/commands/gaia-memory-hygiene.md +0 -17
  74. package/.claude/commands/gaia-merge-docs.md +0 -16
  75. package/.claude/commands/gaia-mobile-testing.md +0 -17
  76. package/.claude/commands/gaia-nfr.md +0 -17
  77. package/.claude/commands/gaia-party.md +0 -17
  78. package/.claude/commands/gaia-perf-testing.md +0 -17
  79. package/.claude/commands/gaia-performance-review.md +0 -17
  80. package/.claude/commands/gaia-pitch-deck.md +0 -17
  81. package/.claude/commands/gaia-post-deploy.md +0 -17
  82. package/.claude/commands/gaia-problem-solving.md +0 -17
  83. package/.claude/commands/gaia-product-brief.md +0 -17
  84. package/.claude/commands/gaia-project-context.md +0 -17
  85. package/.claude/commands/gaia-qa-tests.md +0 -17
  86. package/.claude/commands/gaia-quick-dev.md +0 -17
  87. package/.claude/commands/gaia-quick-spec.md +0 -17
  88. package/.claude/commands/gaia-readiness-check.md +0 -17
  89. package/.claude/commands/gaia-refresh-ground-truth.md +0 -17
  90. package/.claude/commands/gaia-release-plan.md +0 -17
  91. package/.claude/commands/gaia-resume.md +0 -25
  92. package/.claude/commands/gaia-retro.md +0 -20
  93. package/.claude/commands/gaia-review-a11y.md +0 -16
  94. package/.claude/commands/gaia-review-api.md +0 -16
  95. package/.claude/commands/gaia-review-deps.md +0 -16
  96. package/.claude/commands/gaia-review-perf.md +0 -16
  97. package/.claude/commands/gaia-review-security.md +0 -16
  98. package/.claude/commands/gaia-rollback-plan.md +0 -17
  99. package/.claude/commands/gaia-run-all-reviews.md +0 -17
  100. package/.claude/commands/gaia-security-review.md +0 -17
  101. package/.claude/commands/gaia-shard-doc.md +0 -15
  102. package/.claude/commands/gaia-slide-deck.md +0 -17
  103. package/.claude/commands/gaia-sprint-plan.md +0 -17
  104. package/.claude/commands/gaia-sprint-status.md +0 -17
  105. package/.claude/commands/gaia-storytelling.md +0 -17
  106. package/.claude/commands/gaia-summarize.md +0 -16
  107. package/.claude/commands/gaia-teach-testing.md +0 -17
  108. package/.claude/commands/gaia-tech-debt-review.md +0 -20
  109. package/.claude/commands/gaia-tech-research.md +0 -17
  110. package/.claude/commands/gaia-test-automate.md +0 -17
  111. package/.claude/commands/gaia-test-design.md +0 -17
  112. package/.claude/commands/gaia-test-framework.md +0 -17
  113. package/.claude/commands/gaia-test-review.md +0 -17
  114. package/.claude/commands/gaia-threat-model.md +0 -17
  115. package/.claude/commands/gaia-trace.md +0 -17
  116. package/.claude/commands/gaia-triage-findings.md +0 -20
  117. package/.claude/commands/gaia-val-validate-plan.md +0 -17
  118. package/.claude/commands/gaia-val-validate.md +0 -17
  119. package/.claude/commands/gaia-validate-framework.md +0 -17
  120. package/.claude/commands/gaia-validate-prd.md +0 -17
  121. package/.claude/commands/gaia-validate-story.md +0 -22
  122. package/.claude/commands/gaia.md +0 -32
  123. package/CLAUDE.md +0 -165
  124. package/_gaia/_config/agent-manifest.csv +0 -29
  125. package/_gaia/_config/agents/CUSTOMIZATION-README.md +0 -117
  126. package/_gaia/_config/files-manifest.csv +0 -30
  127. package/_gaia/_config/gaia-help.csv +0 -82
  128. package/_gaia/_config/global.yaml +0 -45
  129. package/_gaia/_config/lifecycle-sequence.yaml +0 -593
  130. package/_gaia/_config/manifest.yaml +0 -24
  131. package/_gaia/_config/skill-manifest.csv +0 -12
  132. package/_gaia/_config/task-manifest.csv +0 -17
  133. package/_gaia/_config/workflow-manifest.csv +0 -73
  134. package/_gaia/_memory/tier2-results/.gitkeep +0 -0
  135. package/_gaia/_memory/tier2-results/checkpoint-resume-2026-03-24.yaml +0 -6
  136. package/_gaia/_memory/tier2-results/engine-scenarios-2026-03-22.yaml +0 -14
  137. package/_gaia/core/.resolved/.gitkeep +0 -0
  138. package/_gaia/core/agents/orchestrator.md +0 -303
  139. package/_gaia/core/config.yaml +0 -8
  140. package/_gaia/core/engine/error-recovery.xml +0 -28
  141. package/_gaia/core/engine/protocols/discover-inputs.xml +0 -31
  142. package/_gaia/core/engine/protocols/handoff.xml +0 -21
  143. package/_gaia/core/engine/protocols/preflight-check.xml +0 -31
  144. package/_gaia/core/engine/task-runner.xml +0 -63
  145. package/_gaia/core/engine/workflow.xml +0 -225
  146. package/_gaia/core/module-help.csv +0 -21
  147. package/_gaia/core/protocols/agent-specification-protocol.md +0 -103
  148. package/_gaia/core/protocols/review-gate-check.xml +0 -29
  149. package/_gaia/core/protocols/sprint-status-write-safety.xml +0 -35
  150. package/_gaia/core/protocols/status-sync.xml +0 -49
  151. package/_gaia/core/tasks/editorial-review-prose.xml +0 -42
  152. package/_gaia/core/tasks/editorial-review-structure.xml +0 -43
  153. package/_gaia/core/tasks/generate-changelog.xml +0 -35
  154. package/_gaia/core/tasks/help.md +0 -45
  155. package/_gaia/core/tasks/index-docs.xml +0 -46
  156. package/_gaia/core/tasks/merge-docs.xml +0 -34
  157. package/_gaia/core/tasks/review-accessibility.xml +0 -47
  158. package/_gaia/core/tasks/review-adversarial.xml +0 -55
  159. package/_gaia/core/tasks/review-api-design.xml +0 -38
  160. package/_gaia/core/tasks/review-dependency-audit.xml +0 -38
  161. package/_gaia/core/tasks/review-edge-case-hunter.xml +0 -52
  162. package/_gaia/core/tasks/review-performance.xml +0 -49
  163. package/_gaia/core/tasks/review-security.xml +0 -37
  164. package/_gaia/core/tasks/shard-doc.xml +0 -49
  165. package/_gaia/core/tasks/summarize-doc.xml +0 -33
  166. package/_gaia/core/tasks/validate-framework.xml +0 -66
  167. package/_gaia/core/workflows/brainstorming/steps/step-01-session-setup.md +0 -7
  168. package/_gaia/core/workflows/brainstorming/steps/step-02-technique-selection.md +0 -20
  169. package/_gaia/core/workflows/brainstorming/steps/step-03-technique-execution.md +0 -11
  170. package/_gaia/core/workflows/brainstorming/steps/step-04-idea-organization.md +0 -14
  171. package/_gaia/core/workflows/brainstorming/template.md +0 -38
  172. package/_gaia/core/workflows/brainstorming/workflow.yaml +0 -26
  173. package/_gaia/core/workflows/party-mode/steps/step-01-agent-loading.md +0 -11
  174. package/_gaia/core/workflows/party-mode/steps/step-02-discussion-orchestration.md +0 -16
  175. package/_gaia/core/workflows/party-mode/steps/step-03-graceful-exit.md +0 -10
  176. package/_gaia/core/workflows/party-mode/workflow.yaml +0 -23
  177. package/_gaia/creative/.resolved/.gitkeep +0 -0
  178. package/_gaia/creative/agents/brainstorming-coach.md +0 -93
  179. package/_gaia/creative/agents/design-thinking-coach.md +0 -91
  180. package/_gaia/creative/agents/innovation-strategist.md +0 -89
  181. package/_gaia/creative/agents/presentation-designer.md +0 -99
  182. package/_gaia/creative/agents/problem-solver.md +0 -90
  183. package/_gaia/creative/agents/storyteller.md +0 -90
  184. package/_gaia/creative/config.yaml +0 -8
  185. package/_gaia/creative/data/design-methods.csv +0 -28
  186. package/_gaia/creative/data/innovation-frameworks.csv +0 -15
  187. package/_gaia/creative/data/solving-methods.csv +0 -14
  188. package/_gaia/creative/data/story-types.csv +0 -12
  189. package/_gaia/creative/module-help.csv +0 -8
  190. package/_gaia/creative/teams/creative-squad.yaml +0 -10
  191. package/_gaia/creative/workflows/creative-sprint/checklist.md +0 -10
  192. package/_gaia/creative/workflows/creative-sprint/instructions.xml +0 -40
  193. package/_gaia/creative/workflows/creative-sprint/workflow.yaml +0 -11
  194. package/_gaia/creative/workflows/design-thinking/checklist.md +0 -25
  195. package/_gaia/creative/workflows/design-thinking/instructions.xml +0 -38
  196. package/_gaia/creative/workflows/design-thinking/workflow.yaml +0 -13
  197. package/_gaia/creative/workflows/innovation-strategy/checklist.md +0 -26
  198. package/_gaia/creative/workflows/innovation-strategy/instructions.xml +0 -34
  199. package/_gaia/creative/workflows/innovation-strategy/workflow.yaml +0 -13
  200. package/_gaia/creative/workflows/pitch-deck/checklist.md +0 -22
  201. package/_gaia/creative/workflows/pitch-deck/instructions.xml +0 -49
  202. package/_gaia/creative/workflows/pitch-deck/workflow.yaml +0 -15
  203. package/_gaia/creative/workflows/problem-solving/checklist.md +0 -26
  204. package/_gaia/creative/workflows/problem-solving/instructions.xml +0 -39
  205. package/_gaia/creative/workflows/problem-solving/workflow.yaml +0 -13
  206. package/_gaia/creative/workflows/slide-deck/checklist.md +0 -21
  207. package/_gaia/creative/workflows/slide-deck/instructions.xml +0 -39
  208. package/_gaia/creative/workflows/slide-deck/workflow.yaml +0 -15
  209. package/_gaia/creative/workflows/storytelling/checklist.md +0 -26
  210. package/_gaia/creative/workflows/storytelling/instructions.xml +0 -38
  211. package/_gaia/creative/workflows/storytelling/workflow.yaml +0 -13
  212. package/_gaia/dev/agents/_base-dev.md +0 -180
  213. package/_gaia/dev/agents/angular-dev.md +0 -70
  214. package/_gaia/dev/agents/flutter-dev.md +0 -70
  215. package/_gaia/dev/agents/go-dev.md +0 -72
  216. package/_gaia/dev/agents/java-dev.md +0 -70
  217. package/_gaia/dev/agents/mobile-dev.md +0 -70
  218. package/_gaia/dev/agents/python-dev.md +0 -70
  219. package/_gaia/dev/agents/typescript-dev.md +0 -70
  220. package/_gaia/dev/config.yaml +0 -11
  221. package/_gaia/dev/knowledge/_index.csv +0 -25
  222. package/_gaia/dev/knowledge/angular/angular-conventions.md +0 -119
  223. package/_gaia/dev/knowledge/angular/angular-patterns.md +0 -126
  224. package/_gaia/dev/knowledge/angular/ngrx-state.md +0 -124
  225. package/_gaia/dev/knowledge/angular/rxjs-patterns.md +0 -119
  226. package/_gaia/dev/knowledge/flutter/dart-conventions.md +0 -143
  227. package/_gaia/dev/knowledge/flutter/platform-channels.md +0 -144
  228. package/_gaia/dev/knowledge/flutter/state-management.md +0 -144
  229. package/_gaia/dev/knowledge/flutter/widget-patterns.md +0 -134
  230. package/_gaia/dev/knowledge/go/gin-fiber-patterns.md +0 -40
  231. package/_gaia/dev/knowledge/go/go-conventions.md +0 -54
  232. package/_gaia/dev/knowledge/go/go-stdlib-patterns.md +0 -39
  233. package/_gaia/dev/knowledge/go/go-testing-patterns.md +0 -39
  234. package/_gaia/dev/knowledge/java/jpa-patterns.md +0 -136
  235. package/_gaia/dev/knowledge/java/maven-gradle.md +0 -189
  236. package/_gaia/dev/knowledge/java/microservices.md +0 -159
  237. package/_gaia/dev/knowledge/java/spring-boot-patterns.md +0 -160
  238. package/_gaia/dev/knowledge/mobile/kotlin-patterns.md +0 -193
  239. package/_gaia/dev/knowledge/mobile/mobile-testing.md +0 -186
  240. package/_gaia/dev/knowledge/mobile/react-native-patterns.md +0 -162
  241. package/_gaia/dev/knowledge/mobile/swift-patterns.md +0 -190
  242. package/_gaia/dev/knowledge/python/data-pipelines.md +0 -169
  243. package/_gaia/dev/knowledge/python/django-patterns.md +0 -145
  244. package/_gaia/dev/knowledge/python/fastapi-patterns.md +0 -164
  245. package/_gaia/dev/knowledge/python/python-conventions.md +0 -170
  246. package/_gaia/dev/knowledge/typescript/express-patterns.md +0 -188
  247. package/_gaia/dev/knowledge/typescript/nextjs-patterns.md +0 -166
  248. package/_gaia/dev/knowledge/typescript/react-patterns.md +0 -176
  249. package/_gaia/dev/knowledge/typescript/ts-conventions.md +0 -133
  250. package/_gaia/dev/module-help.csv +0 -10
  251. package/_gaia/dev/skills/_skill-index.yaml +0 -55
  252. package/_gaia/dev/skills/api-design.md +0 -229
  253. package/_gaia/dev/skills/code-review-standards.md +0 -226
  254. package/_gaia/dev/skills/database-design.md +0 -172
  255. package/_gaia/dev/skills/docker-workflow.md +0 -222
  256. package/_gaia/dev/skills/documentation-standards.md +0 -256
  257. package/_gaia/dev/skills/git-workflow.md +0 -157
  258. package/_gaia/dev/skills/security-basics.md +0 -230
  259. package/_gaia/dev/skills/testing-patterns.md +0 -232
  260. package/_gaia/lifecycle/.resolved/.gitkeep +0 -0
  261. package/_gaia/lifecycle/agents/analyst.md +0 -104
  262. package/_gaia/lifecycle/agents/architect.md +0 -109
  263. package/_gaia/lifecycle/agents/data-engineer.md +0 -99
  264. package/_gaia/lifecycle/agents/devops.md +0 -110
  265. package/_gaia/lifecycle/agents/performance.md +0 -92
  266. package/_gaia/lifecycle/agents/pm.md +0 -112
  267. package/_gaia/lifecycle/agents/qa.md +0 -89
  268. package/_gaia/lifecycle/agents/security.md +0 -108
  269. package/_gaia/lifecycle/agents/sm.md +0 -119
  270. package/_gaia/lifecycle/agents/tech-writer.md +0 -94
  271. package/_gaia/lifecycle/agents/ux-designer.md +0 -94
  272. package/_gaia/lifecycle/agents/validator.md +0 -189
  273. package/_gaia/lifecycle/config.yaml +0 -14
  274. package/_gaia/lifecycle/module-help.csv +0 -39
  275. package/_gaia/lifecycle/skills/ground-truth-management.md +0 -252
  276. package/_gaia/lifecycle/skills/memory-management.md +0 -322
  277. package/_gaia/lifecycle/skills/validation-patterns.md +0 -230
  278. package/_gaia/lifecycle/teams/team-data-intensive.yaml +0 -12
  279. package/_gaia/lifecycle/teams/team-enterprise.yaml +0 -16
  280. package/_gaia/lifecycle/teams/team-full.yaml +0 -13
  281. package/_gaia/lifecycle/teams/team-implementation.yaml +0 -8
  282. package/_gaia/lifecycle/teams/team-planning.yaml +0 -9
  283. package/_gaia/lifecycle/teams/team-quick-ship.yaml +0 -6
  284. package/_gaia/lifecycle/teams/team-security-focused.yaml +0 -13
  285. package/_gaia/lifecycle/templates/api-documentation-template.md +0 -112
  286. package/_gaia/lifecycle/templates/architecture-template.md +0 -65
  287. package/_gaia/lifecycle/templates/brownfield-architecture-template.md +0 -198
  288. package/_gaia/lifecycle/templates/brownfield-assessment-template.md +0 -78
  289. package/_gaia/lifecycle/templates/brownfield-onboarding-template.md +0 -160
  290. package/_gaia/lifecycle/templates/dependency-map-template.md +0 -73
  291. package/_gaia/lifecycle/templates/deployment-template.md +0 -52
  292. package/_gaia/lifecycle/templates/epic-status-template.md +0 -64
  293. package/_gaia/lifecycle/templates/event-catalog-template.md +0 -78
  294. package/_gaia/lifecycle/templates/nfr-assessment-template.md +0 -96
  295. package/_gaia/lifecycle/templates/prd-template.md +0 -83
  296. package/_gaia/lifecycle/templates/product-brief-template.md +0 -48
  297. package/_gaia/lifecycle/templates/review-template.md +0 -47
  298. package/_gaia/lifecycle/templates/sprint-plan-template.md +0 -45
  299. package/_gaia/lifecycle/templates/story-template.md +0 -118
  300. package/_gaia/lifecycle/templates/tech-debt-dashboard-template.md +0 -71
  301. package/_gaia/lifecycle/templates/test-plan-template.md +0 -56
  302. package/_gaia/lifecycle/templates/ux-design-assessment-template.md +0 -122
  303. package/_gaia/lifecycle/workflows/1-analysis/advanced-elicitation/instructions.xml +0 -44
  304. package/_gaia/lifecycle/workflows/1-analysis/advanced-elicitation/methods.csv +0 -9
  305. package/_gaia/lifecycle/workflows/1-analysis/advanced-elicitation/workflow.yaml +0 -33
  306. package/_gaia/lifecycle/workflows/1-analysis/brainstorm-project/checklist.md +0 -24
  307. package/_gaia/lifecycle/workflows/1-analysis/brainstorm-project/instructions.xml +0 -39
  308. package/_gaia/lifecycle/workflows/1-analysis/brainstorm-project/workflow.yaml +0 -19
  309. package/_gaia/lifecycle/workflows/1-analysis/create-product-brief/checklist.md +0 -27
  310. package/_gaia/lifecycle/workflows/1-analysis/create-product-brief/instructions.xml +0 -57
  311. package/_gaia/lifecycle/workflows/1-analysis/create-product-brief/workflow.yaml +0 -38
  312. package/_gaia/lifecycle/workflows/1-analysis/domain-research/checklist.md +0 -22
  313. package/_gaia/lifecycle/workflows/1-analysis/domain-research/instructions.xml +0 -34
  314. package/_gaia/lifecycle/workflows/1-analysis/domain-research/workflow.yaml +0 -15
  315. package/_gaia/lifecycle/workflows/1-analysis/market-research/checklist.md +0 -28
  316. package/_gaia/lifecycle/workflows/1-analysis/market-research/instructions.xml +0 -42
  317. package/_gaia/lifecycle/workflows/1-analysis/market-research/workflow.yaml +0 -15
  318. package/_gaia/lifecycle/workflows/1-analysis/technical-research/checklist.md +0 -22
  319. package/_gaia/lifecycle/workflows/1-analysis/technical-research/instructions.xml +0 -34
  320. package/_gaia/lifecycle/workflows/1-analysis/technical-research/workflow.yaml +0 -15
  321. package/_gaia/lifecycle/workflows/2-planning/create-prd/checklist.md +0 -36
  322. package/_gaia/lifecycle/workflows/2-planning/create-prd/instructions.xml +0 -80
  323. package/_gaia/lifecycle/workflows/2-planning/create-prd/workflow.yaml +0 -23
  324. package/_gaia/lifecycle/workflows/2-planning/create-ux-design/checklist.md +0 -26
  325. package/_gaia/lifecycle/workflows/2-planning/create-ux-design/instructions.xml +0 -49
  326. package/_gaia/lifecycle/workflows/2-planning/create-ux-design/workflow.yaml +0 -23
  327. package/_gaia/lifecycle/workflows/2-planning/edit-prd/checklist.md +0 -17
  328. package/_gaia/lifecycle/workflows/2-planning/edit-prd/instructions.xml +0 -50
  329. package/_gaia/lifecycle/workflows/2-planning/edit-prd/workflow.yaml +0 -22
  330. package/_gaia/lifecycle/workflows/2-planning/validate-prd/checklist.md +0 -12
  331. package/_gaia/lifecycle/workflows/2-planning/validate-prd/instructions.xml +0 -52
  332. package/_gaia/lifecycle/workflows/2-planning/validate-prd/workflow.yaml +0 -19
  333. package/_gaia/lifecycle/workflows/3-solutioning/create-architecture/checklist.md +0 -32
  334. package/_gaia/lifecycle/workflows/3-solutioning/create-architecture/instructions.xml +0 -100
  335. package/_gaia/lifecycle/workflows/3-solutioning/create-architecture/workflow.yaml +0 -41
  336. package/_gaia/lifecycle/workflows/3-solutioning/create-epics-stories/checklist.md +0 -30
  337. package/_gaia/lifecycle/workflows/3-solutioning/create-epics-stories/instructions.xml +0 -86
  338. package/_gaia/lifecycle/workflows/3-solutioning/create-epics-stories/workflow.yaml +0 -34
  339. package/_gaia/lifecycle/workflows/3-solutioning/edit-architecture/checklist.md +0 -24
  340. package/_gaia/lifecycle/workflows/3-solutioning/edit-architecture/instructions.xml +0 -91
  341. package/_gaia/lifecycle/workflows/3-solutioning/edit-architecture/workflow.yaml +0 -32
  342. package/_gaia/lifecycle/workflows/3-solutioning/implementation-readiness/checklist.md +0 -66
  343. package/_gaia/lifecycle/workflows/3-solutioning/implementation-readiness/instructions.xml +0 -160
  344. package/_gaia/lifecycle/workflows/3-solutioning/implementation-readiness/workflow.yaml +0 -48
  345. package/_gaia/lifecycle/workflows/3-solutioning/infrastructure-design/checklist.md +0 -24
  346. package/_gaia/lifecycle/workflows/3-solutioning/infrastructure-design/instructions.xml +0 -44
  347. package/_gaia/lifecycle/workflows/3-solutioning/infrastructure-design/workflow.yaml +0 -23
  348. package/_gaia/lifecycle/workflows/3-solutioning/security-threat-model/checklist.md +0 -24
  349. package/_gaia/lifecycle/workflows/3-solutioning/security-threat-model/instructions.xml +0 -55
  350. package/_gaia/lifecycle/workflows/3-solutioning/security-threat-model/workflow.yaml +0 -23
  351. package/_gaia/lifecycle/workflows/4-implementation/action-items/instructions.xml +0 -131
  352. package/_gaia/lifecycle/workflows/4-implementation/action-items/workflow.yaml +0 -19
  353. package/_gaia/lifecycle/workflows/4-implementation/add-stories/checklist.md +0 -27
  354. package/_gaia/lifecycle/workflows/4-implementation/add-stories/instructions.xml +0 -100
  355. package/_gaia/lifecycle/workflows/4-implementation/add-stories/workflow.yaml +0 -35
  356. package/_gaia/lifecycle/workflows/4-implementation/change-request/checklist.md +0 -25
  357. package/_gaia/lifecycle/workflows/4-implementation/change-request/instructions.xml +0 -123
  358. package/_gaia/lifecycle/workflows/4-implementation/change-request/workflow.yaml +0 -38
  359. package/_gaia/lifecycle/workflows/4-implementation/check-dod/checklist.md +0 -18
  360. package/_gaia/lifecycle/workflows/4-implementation/check-dod/instructions.xml +0 -54
  361. package/_gaia/lifecycle/workflows/4-implementation/check-dod/workflow.yaml +0 -19
  362. package/_gaia/lifecycle/workflows/4-implementation/check-review-gate/checklist.md +0 -18
  363. package/_gaia/lifecycle/workflows/4-implementation/check-review-gate/instructions.xml +0 -53
  364. package/_gaia/lifecycle/workflows/4-implementation/check-review-gate/workflow.yaml +0 -19
  365. package/_gaia/lifecycle/workflows/4-implementation/code-review/checklist.md +0 -18
  366. package/_gaia/lifecycle/workflows/4-implementation/code-review/instructions.xml +0 -50
  367. package/_gaia/lifecycle/workflows/4-implementation/code-review/workflow.yaml +0 -24
  368. package/_gaia/lifecycle/workflows/4-implementation/correct-course/checklist.md +0 -21
  369. package/_gaia/lifecycle/workflows/4-implementation/correct-course/instructions.xml +0 -63
  370. package/_gaia/lifecycle/workflows/4-implementation/correct-course/workflow.yaml +0 -25
  371. package/_gaia/lifecycle/workflows/4-implementation/create-story/checklist.md +0 -38
  372. package/_gaia/lifecycle/workflows/4-implementation/create-story/instructions.xml +0 -194
  373. package/_gaia/lifecycle/workflows/4-implementation/create-story/workflow.yaml +0 -26
  374. package/_gaia/lifecycle/workflows/4-implementation/dev-story/checklist.md +0 -26
  375. package/_gaia/lifecycle/workflows/4-implementation/dev-story/instructions.xml +0 -268
  376. package/_gaia/lifecycle/workflows/4-implementation/dev-story/workflow.yaml +0 -51
  377. package/_gaia/lifecycle/workflows/4-implementation/epic-status/checklist.md +0 -25
  378. package/_gaia/lifecycle/workflows/4-implementation/epic-status/instructions.xml +0 -62
  379. package/_gaia/lifecycle/workflows/4-implementation/epic-status/workflow.yaml +0 -24
  380. package/_gaia/lifecycle/workflows/4-implementation/fix-story/checklist.md +0 -12
  381. package/_gaia/lifecycle/workflows/4-implementation/fix-story/instructions.xml +0 -67
  382. package/_gaia/lifecycle/workflows/4-implementation/fix-story/workflow.yaml +0 -17
  383. package/_gaia/lifecycle/workflows/4-implementation/qa-generate-tests/checklist.md +0 -19
  384. package/_gaia/lifecycle/workflows/4-implementation/qa-generate-tests/instructions.xml +0 -52
  385. package/_gaia/lifecycle/workflows/4-implementation/qa-generate-tests/workflow.yaml +0 -20
  386. package/_gaia/lifecycle/workflows/4-implementation/retrospective/checklist.md +0 -15
  387. package/_gaia/lifecycle/workflows/4-implementation/retrospective/instructions.xml +0 -164
  388. package/_gaia/lifecycle/workflows/4-implementation/retrospective/workflow.yaml +0 -30
  389. package/_gaia/lifecycle/workflows/4-implementation/run-all-reviews/checklist.md +0 -14
  390. package/_gaia/lifecycle/workflows/4-implementation/run-all-reviews/instructions.xml +0 -78
  391. package/_gaia/lifecycle/workflows/4-implementation/run-all-reviews/workflow.yaml +0 -16
  392. package/_gaia/lifecycle/workflows/4-implementation/security-review/checklist.md +0 -29
  393. package/_gaia/lifecycle/workflows/4-implementation/security-review/instructions.xml +0 -80
  394. package/_gaia/lifecycle/workflows/4-implementation/security-review/workflow.yaml +0 -27
  395. package/_gaia/lifecycle/workflows/4-implementation/sprint-planning/checklist.md +0 -29
  396. package/_gaia/lifecycle/workflows/4-implementation/sprint-planning/instructions.xml +0 -140
  397. package/_gaia/lifecycle/workflows/4-implementation/sprint-planning/workflow.yaml +0 -33
  398. package/_gaia/lifecycle/workflows/4-implementation/sprint-status/checklist.md +0 -18
  399. package/_gaia/lifecycle/workflows/4-implementation/sprint-status/instructions.xml +0 -36
  400. package/_gaia/lifecycle/workflows/4-implementation/sprint-status/workflow.yaml +0 -19
  401. package/_gaia/lifecycle/workflows/4-implementation/tech-debt-review/checklist.md +0 -30
  402. package/_gaia/lifecycle/workflows/4-implementation/tech-debt-review/instructions.xml +0 -147
  403. package/_gaia/lifecycle/workflows/4-implementation/tech-debt-review/workflow.yaml +0 -24
  404. package/_gaia/lifecycle/workflows/4-implementation/triage-findings/checklist.md +0 -17
  405. package/_gaia/lifecycle/workflows/4-implementation/triage-findings/instructions.xml +0 -124
  406. package/_gaia/lifecycle/workflows/4-implementation/triage-findings/workflow.yaml +0 -15
  407. package/_gaia/lifecycle/workflows/4-implementation/val-refresh-ground-truth/checklist.md +0 -48
  408. package/_gaia/lifecycle/workflows/4-implementation/val-refresh-ground-truth/instructions.xml +0 -125
  409. package/_gaia/lifecycle/workflows/4-implementation/val-refresh-ground-truth/workflow.yaml +0 -31
  410. package/_gaia/lifecycle/workflows/4-implementation/val-validate-artifact/checklist.md +0 -54
  411. package/_gaia/lifecycle/workflows/4-implementation/val-validate-artifact/instructions.xml +0 -147
  412. package/_gaia/lifecycle/workflows/4-implementation/val-validate-artifact/test-structure.sh +0 -116
  413. package/_gaia/lifecycle/workflows/4-implementation/val-validate-artifact/workflow.yaml +0 -29
  414. package/_gaia/lifecycle/workflows/4-implementation/val-validate-plan/checklist.md +0 -34
  415. package/_gaia/lifecycle/workflows/4-implementation/val-validate-plan/instructions.xml +0 -162
  416. package/_gaia/lifecycle/workflows/4-implementation/val-validate-plan/workflow.yaml +0 -39
  417. package/_gaia/lifecycle/workflows/4-implementation/validate-story/checklist.md +0 -23
  418. package/_gaia/lifecycle/workflows/4-implementation/validate-story/instructions.xml +0 -146
  419. package/_gaia/lifecycle/workflows/4-implementation/validate-story/workflow.yaml +0 -25
  420. package/_gaia/lifecycle/workflows/5-deployment/deployment-checklist/checklist.md +0 -29
  421. package/_gaia/lifecycle/workflows/5-deployment/deployment-checklist/instructions.xml +0 -59
  422. package/_gaia/lifecycle/workflows/5-deployment/deployment-checklist/workflow.yaml +0 -39
  423. package/_gaia/lifecycle/workflows/5-deployment/post-deploy-verify/checklist.md +0 -19
  424. package/_gaia/lifecycle/workflows/5-deployment/post-deploy-verify/instructions.xml +0 -33
  425. package/_gaia/lifecycle/workflows/5-deployment/post-deploy-verify/workflow.yaml +0 -15
  426. package/_gaia/lifecycle/workflows/5-deployment/release-plan/checklist.md +0 -20
  427. package/_gaia/lifecycle/workflows/5-deployment/release-plan/instructions.xml +0 -33
  428. package/_gaia/lifecycle/workflows/5-deployment/release-plan/workflow.yaml +0 -19
  429. package/_gaia/lifecycle/workflows/5-deployment/rollback-plan/checklist.md +0 -20
  430. package/_gaia/lifecycle/workflows/5-deployment/rollback-plan/instructions.xml +0 -33
  431. package/_gaia/lifecycle/workflows/5-deployment/rollback-plan/workflow.yaml +0 -15
  432. package/_gaia/lifecycle/workflows/anytime/brownfield-onboarding/checklist.md +0 -52
  433. package/_gaia/lifecycle/workflows/anytime/brownfield-onboarding/instructions.xml +0 -122
  434. package/_gaia/lifecycle/workflows/anytime/brownfield-onboarding/test-step7.sh +0 -149
  435. package/_gaia/lifecycle/workflows/anytime/brownfield-onboarding/workflow.yaml +0 -33
  436. package/_gaia/lifecycle/workflows/anytime/document-project/checklist.md +0 -11
  437. package/_gaia/lifecycle/workflows/anytime/document-project/instructions.xml +0 -26
  438. package/_gaia/lifecycle/workflows/anytime/document-project/workflow.yaml +0 -15
  439. package/_gaia/lifecycle/workflows/anytime/generate-project-context/checklist.md +0 -11
  440. package/_gaia/lifecycle/workflows/anytime/generate-project-context/instructions.xml +0 -22
  441. package/_gaia/lifecycle/workflows/anytime/generate-project-context/workflow.yaml +0 -15
  442. package/_gaia/lifecycle/workflows/anytime/memory-hygiene/checklist.md +0 -24
  443. package/_gaia/lifecycle/workflows/anytime/memory-hygiene/instructions.xml +0 -108
  444. package/_gaia/lifecycle/workflows/anytime/memory-hygiene/workflow.yaml +0 -15
  445. package/_gaia/lifecycle/workflows/anytime/performance-review/checklist.md +0 -25
  446. package/_gaia/lifecycle/workflows/anytime/performance-review/instructions.xml +0 -62
  447. package/_gaia/lifecycle/workflows/anytime/performance-review/workflow.yaml +0 -15
  448. package/_gaia/lifecycle/workflows/cross-phase/add-feature/checklist.md +0 -30
  449. package/_gaia/lifecycle/workflows/cross-phase/add-feature/instructions.xml +0 -85
  450. package/_gaia/lifecycle/workflows/cross-phase/add-feature/workflow.yaml +0 -37
  451. package/_gaia/lifecycle/workflows/quick-flow/quick-dev/checklist.md +0 -11
  452. package/_gaia/lifecycle/workflows/quick-flow/quick-dev/instructions.xml +0 -26
  453. package/_gaia/lifecycle/workflows/quick-flow/quick-dev/workflow.yaml +0 -19
  454. package/_gaia/lifecycle/workflows/quick-flow/quick-spec/checklist.md +0 -13
  455. package/_gaia/lifecycle/workflows/quick-flow/quick-spec/instructions.xml +0 -27
  456. package/_gaia/lifecycle/workflows/quick-flow/quick-spec/workflow.yaml +0 -15
  457. package/_gaia/testing/.resolved/.gitkeep +0 -0
  458. package/_gaia/testing/agents/test-architect.md +0 -131
  459. package/_gaia/testing/config.yaml +0 -8
  460. package/_gaia/testing/knowledge/_index.csv +0 -22
  461. package/_gaia/testing/knowledge/accessibility/axe-core-patterns.md +0 -177
  462. package/_gaia/testing/knowledge/accessibility/wcag-checks.md +0 -191
  463. package/_gaia/testing/knowledge/core/deterministic-testing.md +0 -167
  464. package/_gaia/testing/knowledge/core/fixture-architecture.md +0 -131
  465. package/_gaia/testing/knowledge/core/test-isolation.md +0 -142
  466. package/_gaia/testing/knowledge/core/test-pyramid.md +0 -129
  467. package/_gaia/testing/knowledge/extended/api-testing-patterns.md +0 -196
  468. package/_gaia/testing/knowledge/extended/data-factories.md +0 -158
  469. package/_gaia/testing/knowledge/extended/risk-governance.md +0 -119
  470. package/_gaia/testing/knowledge/extended/selector-resilience.md +0 -109
  471. package/_gaia/testing/knowledge/mobile-testing/appium-patterns.md +0 -164
  472. package/_gaia/testing/knowledge/mobile-testing/react-native-testing.md +0 -193
  473. package/_gaia/testing/knowledge/mobile-testing/responsive-testing.md +0 -177
  474. package/_gaia/testing/knowledge/performance/k6-patterns.md +0 -200
  475. package/_gaia/testing/knowledge/performance/lighthouse-ci.md +0 -158
  476. package/_gaia/testing/knowledge/specialized/contract-testing.md +0 -173
  477. package/_gaia/testing/knowledge/specialized/test-healing.md +0 -129
  478. package/_gaia/testing/knowledge/specialized/visual-testing.md +0 -129
  479. package/_gaia/testing/knowledge/unit-testing/jest-vitest-patterns.md +0 -193
  480. package/_gaia/testing/knowledge/unit-testing/junit5-patterns.md +0 -200
  481. package/_gaia/testing/knowledge/unit-testing/pytest-patterns.md +0 -185
  482. package/_gaia/testing/module-help.csv +0 -13
  483. package/_gaia/testing/workflows/accessibility-testing/checklist.md +0 -12
  484. package/_gaia/testing/workflows/accessibility-testing/instructions.xml +0 -41
  485. package/_gaia/testing/workflows/accessibility-testing/workflow.yaml +0 -13
  486. package/_gaia/testing/workflows/atdd/checklist.md +0 -6
  487. package/_gaia/testing/workflows/atdd/instructions.xml +0 -36
  488. package/_gaia/testing/workflows/atdd/workflow.yaml +0 -22
  489. package/_gaia/testing/workflows/ci-setup/checklist.md +0 -9
  490. package/_gaia/testing/workflows/ci-setup/instructions.xml +0 -43
  491. package/_gaia/testing/workflows/ci-setup/workflow.yaml +0 -11
  492. package/_gaia/testing/workflows/edit-test-plan/checklist.md +0 -20
  493. package/_gaia/testing/workflows/edit-test-plan/instructions.xml +0 -65
  494. package/_gaia/testing/workflows/edit-test-plan/workflow.yaml +0 -35
  495. package/_gaia/testing/workflows/mobile-testing/checklist.md +0 -13
  496. package/_gaia/testing/workflows/mobile-testing/instructions.xml +0 -41
  497. package/_gaia/testing/workflows/mobile-testing/workflow.yaml +0 -11
  498. package/_gaia/testing/workflows/nfr-assessment/checklist.md +0 -7
  499. package/_gaia/testing/workflows/nfr-assessment/instructions.xml +0 -26
  500. package/_gaia/testing/workflows/nfr-assessment/workflow.yaml +0 -11
  501. package/_gaia/testing/workflows/performance-testing/checklist.md +0 -11
  502. package/_gaia/testing/workflows/performance-testing/instructions.xml +0 -41
  503. package/_gaia/testing/workflows/performance-testing/workflow.yaml +0 -11
  504. package/_gaia/testing/workflows/teach-me-testing/checklist.md +0 -6
  505. package/_gaia/testing/workflows/teach-me-testing/instructions.xml +0 -28
  506. package/_gaia/testing/workflows/teach-me-testing/workflow.yaml +0 -12
  507. package/_gaia/testing/workflows/test-automation/checklist.md +0 -6
  508. package/_gaia/testing/workflows/test-automation/instructions.xml +0 -49
  509. package/_gaia/testing/workflows/test-automation/workflow.yaml +0 -11
  510. package/_gaia/testing/workflows/test-design/checklist.md +0 -9
  511. package/_gaia/testing/workflows/test-design/instructions.xml +0 -47
  512. package/_gaia/testing/workflows/test-design/workflow.yaml +0 -11
  513. package/_gaia/testing/workflows/test-framework/checklist.md +0 -8
  514. package/_gaia/testing/workflows/test-framework/instructions.xml +0 -25
  515. package/_gaia/testing/workflows/test-framework/workflow.yaml +0 -11
  516. package/_gaia/testing/workflows/test-review/checklist.md +0 -9
  517. package/_gaia/testing/workflows/test-review/instructions.xml +0 -51
  518. package/_gaia/testing/workflows/test-review/workflow.yaml +0 -11
  519. package/_gaia/testing/workflows/traceability/checklist.md +0 -6
  520. package/_gaia/testing/workflows/traceability/instructions.xml +0 -49
  521. package/_gaia/testing/workflows/traceability/workflow.yaml +0 -21
@@ -1,268 +0,0 @@
1
- <workflow name="dev-story">
2
- <critical>
3
- <mandate>Story must be in ready-for-dev or in-progress status before starting. Three modes: FRESH (ready-for-dev → new implementation), REWORK (in-progress with failed reviews → fix review issues), RESUME (in-progress with checkpoint or continuing interrupted work)</mandate>
4
- <mandate>Follow TDD cycle: red, green, refactor</mandate>
5
- <mandate>TDD phases MUST be executed as separate, sequential steps — NEVER combine them. Do NOT write implementation code during the Red phase. Do NOT skip the Refactor phase. Each phase must produce its own checkpoint and wait for user confirmation before the next phase begins.</mandate>
6
- <mandate>Write an intermediate checkpoint to {checkpoint_path}/dev-story-{story_key}.yaml after EACH TDD phase completes (Steps 6, 7, 8). Each checkpoint must include: workflow name, current step number, phase status (red_complete/green_complete/refactor_complete), key variables (story_key, epic_key, risk_level), output file path, and files_touched with sha256 checksums (shasum -a 256) for every file created or modified in that phase.</mandate>
7
- <mandate>Definition of Done checklist MUST be written to the story file and every item verified before marking complete. The DoD gate (Step 10) auto-fixes failing items up to 3 iterations before halting.</mandate>
8
- <mandate>All tests must pass before marking complete</mandate>
9
- <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>
10
- </critical>
11
- <step n="1" title="Load Story File">
12
- <action>Read story .md file, parse YAML frontmatter</action>
13
- <action>Extract: key, status, acceptance criteria, subtasks, dependencies</action>
14
- <action>Resolve story file path: search {implementation_artifacts}/ for {story_key}-*.md. If no match, try {story_key}.md. Use the resolved path for all subsequent reads and writes.</action>
15
- </step>
16
- <step n="2" title="Pre-Start Gate and Mode Detection">
17
- <action>Verify story status is 'ready-for-dev' or 'in-progress'</action>
18
- <check if="status not in [ready-for-dev, in-progress]">HALT: Story must be in ready-for-dev or in-progress status</check>
19
- <action>Detect execution mode based on story state:
20
- If status is 'ready-for-dev': set mode=FRESH — new implementation from scratch
21
- If status is 'in-progress': determine sub-mode:
22
- 1. Read story's Review Gate table (if the section exists in the story file)
23
- 2. If any Review Gate row shows FAILED → set mode=REWORK — review feedback needs to be addressed
24
- Display: "Mode: REWORK — review feedback detected. Will focus on fixing review issues."
25
- 3. Else check for checkpoint at {checkpoint_path}/dev-story-{story_key}.yaml
26
- If checkpoint exists → set mode=RESUME — interrupted work
27
- Display: "Mode: RESUME — checkpoint found. Will pick up from last phase."
28
- 4. Else → set mode=RESUME — in-progress but no checkpoint, continue from current state
29
- Display: "Mode: RESUME — continuing from current state."</action>
30
- <action>Read story frontmatter: extract risk_level field (default: low if absent)</action>
31
- <action>Extract epic_key from story_key — e.g., if story_key is "E1-S1", epic_key is "E1" (everything before the last hyphen-and-story-number)</action>
32
- <check if="risk_level == high">
33
- Search for ATDD file using BOTH patterns (epic-level first, then story-level):
34
- 1. Epic-level: {test_artifacts}/atdd-{epic_key}*.md (e.g., atdd-E1.md)
35
- 2. Story-level: {test_artifacts}/atdd-{story_key}*.md (e.g., atdd-E1-S1.md)
36
- If EITHER pattern matches a file, the gate PASSES — log which file was found.
37
- If NEITHER pattern matches: HALT — This story is marked high-risk. No ATDD file found (searched for atdd-{epic_key}*.md and atdd-{story_key}*.md). Run /gaia-atdd before implementation.
38
- </check>
39
- </step>
40
- <step n="3" title="Check for WIP">
41
- <action>Look for checkpoint file at _memory/checkpoints/dev-story-{story_key}.yaml</action>
42
- <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>
43
- <check if="checkpoint_exists">Offer to resume from last checkpoint or start fresh</check>
44
- </step>
45
- <step n="4" title="Update Status">
46
- <action if="mode == FRESH">
47
- <invoke-protocol ref="status-sync" story_key="{story_key}" new_status="in-progress" source_workflow="dev-story" />
48
- </action>
49
- <action if="mode == REWORK or mode == RESUME">Skip status change — story is already in-progress.</action>
50
- </step>
51
- <step n="5" title="Plan Implementation">
52
- <action if="mode == REWORK">REWORK MODE — Focus plan on fixing review feedback:
53
- 1. Read the story's Review Gate table — identify which reviews FAILED
54
- 2. For each FAILED review, read its report file:
55
- - Code Review: {implementation_artifacts}/{story_key}-review.md
56
- - Security Review: {implementation_artifacts}/{story_key}-security-review.md
57
- - QA Tests: {test_artifacts}/{story_key}-qa-tests.md
58
- - Test Automation: {test_artifacts}/{story_key}-test-automation.md
59
- - Test Review: {test_artifacts}/{story_key}-test-review.md
60
- - Performance Review: {implementation_artifacts}/{story_key}-performance-review.md
61
- 3. Extract specific issues, REQUEST_CHANGES items, and FAILED criteria from each report
62
- 4. Generate a REWORK plan focused on:
63
- - What specific issues each failed review flagged
64
- - What code/tests need to change to address each issue
65
- - What does NOT need to change (passed reviews — leave alone)
66
- 5. Present the rework plan. Skip the full implementation plan sections below.
67
- 6. After presenting: proceed to Step 6 with rework-focused TDD.</action>
68
- <action if="mode == RESUME">RESUME MODE — Continue from current state:
69
- If checkpoint exists: Step 3 already handled the resume. Proceed from the checkpoint phase.
70
- If no checkpoint: re-assess current implementation state and generate a continuation plan focused on remaining work.</action>
71
- <action if="mode == FRESH or mode not set">Load relevant sections from {planning_artifacts}/architecture.md — identify architectural components, patterns, and ADRs that apply to this story's scope</action>
72
- <action if="mode == FRESH or mode not set">Load relevant sections from {planning_artifacts}/ux-design.md if available — identify UI components, interaction patterns, navigation flows, and accessibility requirements for this story</action>
73
- <action if="mode == FRESH or mode not set">Generate a detailed implementation plan with the following mandatory sections:
74
-
75
- **Context** — Why this change is being made: the user need or requirement it addresses, which acceptance criteria it satisfies, and the intended outcome. Reference the story's epic context and how this story fits into the larger feature.
76
-
77
- **Root Cause / Analysis** (if bug fix or refactor) — What is broken or suboptimal and why. For new features, describe the current state (what exists today) vs. the target state (what will exist after implementation).
78
-
79
- **Implementation Steps** — Numbered steps, each with:
80
- - Step title describing what it does
81
- - File path(s) to create or modify
82
- - What specifically changes in each file (new functions, modified logic, added config, etc.)
83
- - Why this change is needed (not just what, but the reasoning)
84
- - Any relevant ADR or architecture pattern being followed
85
- - Dependencies on previous steps (if any)
86
-
87
- **Files to Modify** — Summary table with columns: File | Change | Reason
88
- - List every file that will be created, modified, or deleted
89
- - Group by: new files, modified files, deleted files
90
-
91
- **Architecture Alignment** — Which ADRs apply to this story and how the implementation follows them. Flag any deviations from architecture with justification.
92
-
93
- **UX Alignment** (if frontend story) — Which screens, components, and interaction patterns from ux-design.md apply. Reference specific wireframes or flow names.
94
-
95
- **Testing Strategy** — How each acceptance criterion will be tested:
96
- - Map each AC to at least one test case
97
- - Specify test type (unit, integration, e2e) for each
98
- - Note any edge cases or boundary conditions to test
99
- - Reference ATDD file if this is a high-risk story
100
-
101
- **Risks and Considerations** — Known risks, potential issues, or assumptions the plan depends on. Include:
102
- - API contracts that must be maintained
103
- - Database migration concerns (if applicable)
104
- - Performance implications
105
- - Security considerations
106
- - Backward compatibility
107
-
108
- **Verification** — How to verify the implementation is correct end-to-end:
109
- - Commands to run (build, test, lint)
110
- - Manual verification steps if applicable
111
- - Expected outputs or behaviors to confirm
112
- </action>
113
- <action>Present the full plan in a structured, readable format. Use markdown headers for each section and tables where appropriate.</action>
114
- <ask>Here is the detailed implementation plan. Review the context, steps, files, testing strategy, and risks. Confirm to proceed, or request changes. [confirm / revise]</ask>
115
- </step>
116
- <step n="6" title="TDD Red Phase — Write Failing Tests">
117
- <critical>
118
- <mandate>RED PHASE ONLY: Write test files ONLY — do NOT write any implementation code in this step. Tests must define expected behavior and FAIL because the implementation does not exist yet.</mandate>
119
- </critical>
120
- <action>For each subtask: write failing test(s) that define expected behavior (RED)</action>
121
- <action>Run the test suite — verify all new tests FAIL</action>
122
- <check if="any_new_test_passes">Tests should NOT pass yet — no implementation exists. If a test passes without implementation, it is vacuous and must be rewritten to actually test behavior.</check>
123
- <action>Write intermediate checkpoint to {checkpoint_path}/dev-story-{story_key}.yaml with: workflow: dev-story, step: 6, phase: red_complete, story_key, epic_key, risk_level, output_file: {story_key}-tdd-progress.md, files_touched (list every test file created with its sha256 checksum via shasum -a 256)</action>
124
- <action>Print a formatted summary directly in the conversation so the user can review without opening the file:
125
-
126
- ## RED Phase Complete
127
-
128
- **Tests created:**
129
- {bulleted list of each test file: file path, test name, what acceptance criterion or behavior it validates}
130
-
131
- **Test runner output:**
132
- ```
133
- {paste the actual terminal output from the test runner showing all failures}
134
- ```
135
-
136
- **Status:** All {count} new tests FAILING as expected
137
- </action>
138
- <template-output file="{implementation_artifacts}/{story_key}-tdd-progress.md">
139
- RED phase complete. Summary: test files created, test names, what each validates, confirmation all new tests fail. Include test runner output showing failures.
140
- </template-output>
141
- <action if="yolo_mode">Val auto-validates this TDD output (per val_auto_in_yolo). If Val returns CRITICAL/WARNING findings: auto-fix them, re-invoke Val, repeat up to 3 times. HALT if unresolved. Save all findings and fixes to validator-sidecar memory.</action>
142
- <ask>Red phase complete — tests written and all failing as expected. Review test output above. [proceed to Green phase / revise tests]</ask>
143
- </step>
144
- <step n="7" title="TDD Green Phase — Implement to Pass">
145
- <critical>
146
- <mandate>GREEN PHASE: Write the MINIMUM implementation code needed to make failing tests pass. Do NOT write final/polished code — that is for the Refactor phase.</mandate>
147
- </critical>
148
- <check if="red_phase_not_complete">HALT: Red phase template-output must be saved before starting Green phase. Complete Step 6 first.</check>
149
- <action>For each subtask: implement minimum code to make failing tests pass (GREEN)</action>
150
- <action>Run the test suite — verify all tests PASS</action>
151
- <check if="any_test_fails">HALT: All tests must pass before proceeding. Fix failing tests or implementation.</check>
152
- <action>Mark each completed subtask in story file</action>
153
- <action>Conditional checks — for each that applies:
154
- — If API boundary changes: write or update contract tests (consumer/provider)
155
- — If database schema changes: create reversible migration script (UP + DOWN)
156
- — If gradual rollout needed: implement feature flag wrapping new code path</action>
157
- <action>Write intermediate checkpoint to {checkpoint_path}/dev-story-{story_key}.yaml with: workflow: dev-story, step: 7, phase: green_complete, story_key, epic_key, risk_level, output_file: {story_key}-tdd-progress.md, files_touched (list every implementation file created/modified with its sha256 checksum via shasum -a 256)</action>
158
- <action>Print a formatted summary directly in the conversation so the user can review without opening the file:
159
-
160
- ## GREEN Phase Complete
161
-
162
- **Files created/modified:**
163
- {bulleted list: file path + what was added/changed in each}
164
-
165
- **Contract tests / migrations (if applicable):**
166
- {list any contract tests or DB migration scripts created, or "N/A"}
167
-
168
- **Test runner output:**
169
- ```
170
- {paste the actual terminal output from the test runner showing all tests passing}
171
- ```
172
-
173
- **Status:** All {count} tests PASSING with minimal implementation
174
- </action>
175
- <template-output file="{implementation_artifacts}/{story_key}-tdd-progress.md">
176
- GREEN phase complete. Summary: files created/modified, all tests passing, any contract tests or migrations created. Include test runner output showing all green.
177
- </template-output>
178
- <action if="yolo_mode">Val auto-validates this TDD output (per val_auto_in_yolo). If Val returns CRITICAL/WARNING findings: auto-fix them, re-invoke Val, repeat up to 3 times. HALT if unresolved. Save all findings and fixes to validator-sidecar memory.</action>
179
- <ask>Green phase complete — all tests passing with minimal implementation. Review implementation above. [proceed to Refactor phase / revise implementation]</ask>
180
- </step>
181
- <step n="8" title="TDD Refactor Phase">
182
- <critical>
183
- <mandate>REFACTOR PHASE: Improve code quality, extract abstractions, decompose components, improve naming. Do NOT skip this step even if the Green phase code looks acceptable.</mandate>
184
- </critical>
185
- <check if="green_phase_not_complete">HALT: Green phase template-output must be saved before starting Refactor phase. Complete Step 7 first.</check>
186
- <action>Refactor implementation while keeping all tests green: extract shared utilities, decompose large functions, improve naming, remove duplication</action>
187
- <action>Run the test suite — verify all tests still PASS after refactoring</action>
188
- <check if="any_test_fails">HALT: Refactoring broke tests. Revert or fix before proceeding.</check>
189
- <action>Write intermediate checkpoint to {checkpoint_path}/dev-story-{story_key}.yaml with: workflow: dev-story, step: 8, phase: refactor_complete, story_key, epic_key, risk_level, output_file: {story_key}-tdd-progress.md, files_touched (list ALL files created/modified across all 3 phases with sha256 checksums via shasum -a 256)</action>
190
- <action>Print a formatted summary directly in the conversation so the user can review without opening the file:
191
-
192
- ## REFACTOR Phase Complete
193
-
194
- **What was refactored:**
195
- {bulleted list: what changed and why — extracted utilities, decomposed functions, improved naming, removed duplication}
196
-
197
- **Test runner output:**
198
- ```
199
- {paste the actual terminal output from the test runner confirming all tests still pass}
200
- ```
201
-
202
- **Status:** All {count} tests STILL PASSING after refactor
203
- </action>
204
- <template-output file="{implementation_artifacts}/{story_key}-tdd-progress.md">
205
- REFACTOR phase complete. Summary: what was refactored, why, confirmation all tests still pass. Include test runner output.
206
- </template-output>
207
- <action if="yolo_mode">Val auto-validates this TDD output (per val_auto_in_yolo). If Val returns CRITICAL/WARNING findings: auto-fix them, re-invoke Val, repeat up to 3 times. HALT if unresolved. Save all findings and fixes to validator-sidecar memory.</action>
208
- <ask>Refactor phase complete — all tests still passing. Review refactored code. [proceed / continue refactoring]</ask>
209
- </step>
210
- <step n="9" title="Capture Findings">
211
- <action>Review any out-of-scope issues discovered during implementation (e.g., missing setup scripts, environment gaps, tech debt, broken tooling)</action>
212
- <action>For each finding: add a row to the Findings table in the story file with type, severity, finding description, and suggested action</action>
213
- <action>If no findings were discovered, leave the Findings table empty</action>
214
- </step>
215
- <step n="10" title="Definition of Done Verification">
216
- <action>Write or update the "Definition of Done" section in the story file with the following checklist items. For each item, run the verification described and mark it [x] if it passes or [ ] if it fails:</action>
217
- <action>- [ ] **Code compiles** — run the project build command (e.g., npm run build, mvn compile, flutter build). Mark [x] if exit code 0, [ ] if errors.</action>
218
- <action>- [ ] **All tests pass** — run the full test suite. Mark [x] if all tests pass, [ ] if any fail.</action>
219
- <action>- [ ] **All acceptance criteria met** — compare each AC from the story against the implementation. Mark [x] only if every AC is demonstrably satisfied.</action>
220
- <action>- [ ] **No linting/formatting errors** — run the project linter (e.g., eslint, pylint, dart analyze). Mark [x] if no errors, [ ] if errors found.</action>
221
- <action>- [ ] **Code follows project conventions** — verify naming, file structure, and patterns match existing codebase. Mark [x] if consistent.</action>
222
- <action>- [ ] **No hardcoded secrets or credentials** — scan new/modified files for API keys, passwords, tokens, connection strings. Mark [x] if clean.</action>
223
- <action>- [ ] **All subtasks marked complete** — verify every subtask in the story file is checked off. Mark [x] if all done.</action>
224
- <action>- [ ] **Documentation updated** — if the change affects APIs, configs, or user-facing behavior, verify that relevant docs are updated. Mark [x] if not applicable or if docs are updated.</action>
225
- <action>AUTO-FIX LOOP: After running all checks, if any item is marked [ ] (failing):
226
- 1. Identify each failing item and the specific issue causing it to fail
227
- 2. Auto-fix the issue (fix lint errors, fix failing tests, update docs, complete missed subtasks, remove hardcoded secrets, etc.)
228
- 3. Re-run ALL 8 DoD checks from the top and update the checklist in the story file
229
- 4. Repeat steps 1-3 up to a maximum of 3 fix iterations
230
- 5. If all 8 items pass (all marked [x]) at any point: auto-proceed to Step 11 — no user prompt needed
231
- 6. If items still fail after 3 iterations: HALT with a clear list of unresolved items</action>
232
- <check if="dod_unresolved_after_3_attempts">HALT: Could not resolve all Definition of Done items after 3 auto-fix attempts. Unresolved: {list of failing items with reasons}. Manual intervention required.</check>
233
- </step>
234
- <step n="11" title="Load Skills JIT">
235
- <action>Load git-workflow:commits section for commit conventions</action>
236
- <action>Apply conventional commit format to all commits</action>
237
- </step>
238
- <step n="12" title="Commit Changes">
239
- <action>Stage all changes</action>
240
- <action>Commit with conventional commit format: type(scope): description</action>
241
- </step>
242
- <step n="13" title="Post-Complete Gate">
243
- <action>Verify all tests pass (final confirmation)</action>
244
- <action>Verify all acceptance criteria met</action>
245
- <action>Verify all subtasks marked complete</action>
246
- <action>Re-read the "Definition of Done" section from the story file — verify every item is checked (- [x]). Required items: code compiles, all tests pass, acceptance criteria met, no lint errors, project conventions followed, no hardcoded secrets, all subtasks complete, documentation updated.</action>
247
- <check if="any_test_fails">HALT: All tests must pass before marking complete</check>
248
- <check if="any_dod_unchecked">HALT: All Definition of Done items must be checked before moving to review. Unchecked items: {list}. Return to Step 10 to resolve.</check>
249
- </step>
250
- <step n="14" title="Update Status">
251
- <invoke-protocol ref="status-sync" story_key="{story_key}" new_status="review" source_workflow="dev-story" />
252
- <action>Append files changed list to story file</action>
253
- <action>Initialize Review Gate section in story file: set all six rows (Code Review, QA Tests, Security Review, Test Automation, Test Review, Performance Review) to PENDING with report link "—". If Review Gate section already exists, reset all rows to PENDING.</action>
254
- <template-output file="{implementation_artifacts}/{story_key}-*.md">
255
- Update story file with status change to 'review', list of files changed, and initialized Review Gate table (all 6 rows PENDING).
256
- </template-output>
257
- </step>
258
- <step n="15" title="Auto-Run Reviews (YOLO only)">
259
- <action if="not yolo_mode">Skip this step — in normal mode, user runs /gaia-run-all-reviews manually when ready.</action>
260
- <action if="yolo_mode">Spawn a subagent using the Agent tool with this prompt:
261
- "Load {project-root}/_gaia/core/engine/workflow.xml, then process {project-root}/_gaia/lifecycle/workflows/4-implementation/run-all-reviews/workflow.yaml as workflow-config. The story key is {story_key}. Run in YOLO mode — auto-proceed past all template-outputs. Follow the workflow engine instructions EXACTLY."
262
- </action>
263
- <action if="yolo_mode">When subagent returns: read the story file, parse the Review Gate table.
264
- - If ALL 6 reviews PASSED: report "All reviews passed. Story {story_key} is ready for done status."
265
- - If any review FAILED: report "{N} review(s) failed: {list of failed reviews}. Story moved to in-progress. Fix issues and re-run /gaia-run-all-reviews."
266
- </action>
267
- </step>
268
- </workflow>
@@ -1,51 +0,0 @@
1
- name: dev-story
2
- description: 'Execute story implementation following story spec'
3
- module: lifecycle
4
- agent: dev-*
5
- execution_mode: planning
6
- val_auto_in_yolo: true
7
- val_auto_in_yolo_steps: [5, 6, 7, 8]
8
- agent_auto_detect: true
9
- agent_auto_detect_strategy: |
10
- 1. Read story file frontmatter for tech_stack or stack field — map to agent (typescript→typescript-dev, angular→angular-dev, flutter→flutter-dev, java→java-dev, python→python-dev, mobile→mobile-dev, go→go-dev)
11
- 2. If absent: read {planning_artifacts}/architecture.md for primary language/framework
12
- 3. If ambiguous: check file extensions in story subtasks (.ts/.tsx→typescript, .dart→flutter, .java→java, .py→python, .swift/.kt→mobile, .component.ts→angular, .go→go)
13
- 4. Fallback: ask user which developer to use
14
- config_resolved: "{installed_path}/.resolved/dev-story.yaml"
15
- config_source: "{project-root}/_gaia/lifecycle/config.yaml"
16
- installed_path: "{project-root}/_gaia/lifecycle/workflows/4-implementation/dev-story"
17
- instructions: "{installed_path}/instructions.xml"
18
- validation: "{installed_path}/checklist.md"
19
- required_skills:
20
- - "{project-root}/_gaia/dev/skills/git-workflow.md"
21
- - "{project-root}/_gaia/dev/skills/testing-patterns.md"
22
- required_skill_sections:
23
- - "git-workflow:commits"
24
- - "git-workflow:pull-requests"
25
- - "testing-patterns:tdd-cycle"
26
- quality_gates:
27
- pre_start:
28
- - check: "story_file_exists({implementation_artifacts}/{story_key}-*.md)"
29
- on_fail: "HALT: Story file not found. Expected {implementation_artifacts}/{story_key}-*.md. Run /gaia-create-story first."
30
- - check: "story_status in ['ready-for-dev', 'in-progress']"
31
- on_fail: "HALT: Story must be in ready-for-dev or in-progress status."
32
- post_complete:
33
- - check: "all_tests_pass == true"
34
- on_fail: "HALT: All tests must pass before marking complete. Run test suite in {project-path}/ and fix failing tests."
35
- input_file_patterns:
36
- story:
37
- whole: "{implementation_artifacts}/{{story_key}}-*.md"
38
- load_strategy: "FULL_LOAD"
39
- architecture:
40
- whole: "{planning_artifacts}/architecture.md"
41
- load_strategy: "INDEX_GUIDED"
42
- ux_design:
43
- whole: "{planning_artifacts}/ux-design.md"
44
- load_strategy: "INDEX_GUIDED"
45
- on_error:
46
- missing_file: "ask_user"
47
- unresolved_variable: "halt"
48
- story_statuses: [backlog, validating, ready-for-dev, in-progress, invalid, review, done]
49
-
50
- output:
51
- primary: "{implementation_artifacts}/{story_key}-*.md"
@@ -1,25 +0,0 @@
1
- ---
2
- title: 'Epic Status Dashboard Validation'
3
- validation-target: 'Epic status dashboard output'
4
- ---
5
- ## Completeness
6
- - [ ] All epics from epics-and-stories.md are represented
7
- - [ ] All stories per epic are accounted for
8
- - [ ] Stories with no file are listed as backlog
9
-
10
- ## Accuracy
11
- - [ ] Story counts per epic are correct
12
- - [ ] Done counts match stories with status: done
13
- - [ ] Completion percentages are mathematically correct (done/total * 100)
14
-
15
- ## Display
16
- - [ ] Summary table shows all epics with counts and percentages
17
- - [ ] Per-epic detail sections include ASCII progress bars
18
- - [ ] Per-epic story tables show key, title, status, sprint
19
- - [ ] Completed epics are marked with [COMPLETE]
20
- - [ ] Untracked stories section is present (even if empty)
21
- - [ ] Legend section is present
22
-
23
- ## Output
24
- - [ ] File written to {implementation_artifacts}/epic-status.md
25
- - [ ] File uses the epic-status-template.md structure
@@ -1,62 +0,0 @@
1
- <workflow name="epic-status">
2
- <critical>
3
- <mandate>Read ONLY frontmatter from story files — never load full story content (token budget protection)</mandate>
4
- <mandate>Stories with no .md file are counted as backlog status</mandate>
5
- <mandate>Cross-sprint aggregation — do NOT filter by current sprint</mandate>
6
- <mandate>Story files with an epic field in frontmatter belong to that epic — even if not listed in epics-and-stories.md</mandate>
7
- </critical>
8
- <step n="1" title="Load Epics Manifest">
9
- <action>Read {planning_artifacts}/epics-and-stories.md</action>
10
- <action>Parse all epics: extract epic number, title, goal, done criteria</action>
11
- <action>Extract all story keys associated with each epic</action>
12
- <action>Build epic-to-stories mapping</action>
13
- </step>
14
- <step n="2" title="Scan Story Data">
15
- <action>ALWAYS scan all .md files in {implementation_artifacts}/ for story files:
16
- For each file, read ONLY the YAML frontmatter (stop at closing ---)
17
- Extract: story key, title, status, sprint_id (if present), epic, author
18
- Skip non-story files (e.g., sprint-status.yaml, epic-status.md, tech-debt-dashboard.md, sprint-plan.md, story-index.yaml, retro-*.md, sprint-reconciliation-*.md)
19
- The story file frontmatter is ALWAYS the source of truth for status — never rely solely on story-index.yaml which may be incomplete.</action>
20
- <action>If {implementation_artifacts}/story-index.yaml exists: use it as a supplementary source for stories that have no .md file (e.g., stories listed in epics-and-stories.md but with no file yet). Do NOT use it as a replacement for scanning actual story files.</action>
21
- </step>
22
- <step n="3" title="Aggregate Status">
23
- <action>Join scanned story data to epic-story mapping from Step 1</action>
24
- <action>For stories found in Step 2 that are NOT in the Step 1 epic-story mapping:
25
- 1. Read the story's epic field (from index or frontmatter, e.g., "E9 — Enhanced Agent Memory")
26
- 2. Extract the epic key (e.g., "E9")
27
- 3. If the epic key matches an existing epic from Step 1: add this story to that epic's story list
28
- 4. Do NOT put it in "untracked" if it has a valid epic key
29
- 5. Only stories with NO epic field go to "untracked"</action>
30
- <action>For each story, resolve the display title using this priority:
31
- 1. Story file frontmatter title (from Step 2) — primary source, always preferred
32
- 2. Title from epics-and-stories.md (from Step 1) — fallback if no story file exists
33
- 3. If neither available: show "(no title)" with the story key
34
- If the story was created by triage (author field contains "Triage"): append " ⚑" flag after the title to indicate triage origin</action>
35
- <action>Stories in manifest but with no file and no index entry: mark as backlog</action>
36
- <action>Per epic: count done, in-progress, invalid, review, ready-for-dev, validating, backlog</action>
37
- <action>Per epic: compute completion percentage (done / total * 100)</action>
38
- <action>Compute overall totals across all epics</action>
39
- <action>Collect any story files found that are NOT in any epic (no epic field) as untracked</action>
40
- <action>Mark epics where all stories are done as [COMPLETE]</action>
41
- </step>
42
- <step n="4" title="Dependency Analysis">
43
- <action>For each story scanned in Step 2: check frontmatter for `dependencies` or `blocked_by` fields (list of story keys this story depends on)</action>
44
- <action>Build cross-epic dependency graph: for each dependency, check if the depended-on story belongs to a different epic. Record cross-epic edges.</action>
45
- <action>Identify blocked stories: stories whose dependencies include stories that are NOT yet `done`. List each blocked story with its blocker(s) and blocker status.</action>
46
- <action>Calculate critical path: find the longest chain of sequential dependent stories across all epics. Report the chain and its total length.</action>
47
- <action>If no story files contain dependency metadata: note "No dependency data available — add `dependencies` field to story frontmatter for cross-epic tracking." Skip blocked story and critical path calculations.</action>
48
- </step>
49
- <step n="5" title="Generate Dashboard">
50
- <action>Format dashboard with standard header: "## Epic Status Dashboard — {date}" followed by summary line: "Epics: {complete}/{total} complete | Stories: {done}/{total} ({pct}%) | At Risk: {blocked_count}"</action>
51
- <action>Load template from {project-root}/_gaia/lifecycle/templates/epic-status-template.md</action>
52
- <action>Fill summary table with per-epic row: Total | Done | In Progress | Review | Blocked | Backlog | Completion %. Backlog = stories not yet started (no file, or status is backlog/ready-for-dev/validating). Do NOT use "Remaining" (total - done) as it overlaps with In Progress.</action>
53
- <action>Fill per-epic detail sections with ASCII progress bar and story-level status table</action>
54
- <action>ASCII progress bar: use filled blocks (█) for done, light blocks (░) for remaining, 20 chars wide</action>
55
- <action>Fill untracked stories section</action>
56
- <action>Fill dependency analysis section: cross-epic dependencies table (source story → target story → target epic → target status), blocked stories list with blockers, and critical path summary. If no dependency data, include the "no data" note from Step 4.</action>
57
- <template-output file="{implementation_artifacts}/epic-status.md">
58
- Write the completed epic status dashboard using the template.
59
- Include all epics, all stories, completion percentages, progress bars, and dependency analysis.
60
- </template-output>
61
- </step>
62
- </workflow>
@@ -1,24 +0,0 @@
1
- name: epic-status
2
- description: 'Show epic completion dashboard across all sprints'
3
- module: lifecycle
4
- agent: sm
5
- template_output_prompt: "auto"
6
- config_resolved: "{installed_path}/.resolved/epic-status.yaml"
7
- config_source: "{project-root}/_gaia/lifecycle/config.yaml"
8
- installed_path: "{project-root}/_gaia/lifecycle/workflows/4-implementation/epic-status"
9
- instructions: "{installed_path}/instructions.xml"
10
- validation: "{installed_path}/checklist.md"
11
- template: "{project-root}/_gaia/lifecycle/templates/epic-status-template.md"
12
- input_file_patterns:
13
- epics:
14
- whole: "{planning_artifacts}/epics-and-stories.md"
15
- load_strategy: "FULL_LOAD"
16
- stories:
17
- pattern: "{implementation_artifacts}/*.md"
18
- load_strategy: "FRONTMATTER_ONLY"
19
- on_error:
20
- missing_file: "ask_user"
21
- unresolved_variable: "halt"
22
-
23
- output:
24
- primary: "{implementation_artifacts}/epic-status.md"
@@ -1,12 +0,0 @@
1
- ---
2
- title: 'Story Fix Check'
3
- validation-target: 'Story fix after validation'
4
- ---
5
- ## Checks
6
- - [ ] All FAIL findings from validation report addressed
7
- - [ ] Existing valid content preserved (PASS sections unchanged)
8
- - [ ] Story follows template structure
9
- - [ ] Old validation report removed from end of file
10
- - [ ] No new issues introduced
11
- - [ ] Corrected story file saved
12
- - [ ] sprint-status.yaml updated with story status as validating
@@ -1,67 +0,0 @@
1
- <workflow name="fix-story">
2
- <critical>
3
- <mandate>Fix all FAIL findings from the validation report</mandate>
4
- <mandate>Preserve all existing valid content — only modify sections flagged as FAIL</mandate>
5
- <mandate>Remove the old validation report after fixes are applied</mandate>
6
- </critical>
7
- <step n="1" title="Load Story">
8
- <ask>Which story to fix? (provide story key, e.g., 1.2)</ask>
9
- <action>Find and read the story file matching {story_key}-*.md in {implementation_artifacts}/</action>
10
- </step>
11
- <step n="2" title="Parse Validation Report">
12
- <action>Locate the "## Validation Report" section at the end of the story file (after the --- separator)</action>
13
- <action>Extract all FAIL findings with their section names and issue descriptions</action>
14
- <check if="no_validation_report">If no validation report is found, HALT and instruct the user to run /gaia-validate-story first</check>
15
- <check if="all_pass">If all sections are PASS, inform user the story has no issues to fix and STOP</check>
16
- </step>
17
- <step n="3" title="Load Template Reference">
18
- <action>Read the story template from {project-root}/_gaia/lifecycle/templates/story-template.md</action>
19
- <action>Use the template as reference for expected structure and format of each section</action>
20
- </step>
21
- <step n="4" title="Fix Flagged Issues">
22
- <action>For each FAIL finding, prepare the proposed fix:
23
- - Missing sections: draft the section following the template structure
24
- - Incomplete metadata: draft missing YAML frontmatter fields. Required fields: key, title, epic, status, priority, size, points, risk, sprint_id, depends_on, blocks, traces_to, date, author
25
- - Unclear ACs: draft rewrite in Given/When/Then format, ensure each is testable
26
- - Unlinked subtasks: draft links from each subtask to an AC number
27
- - Empty Test Scenarios: draft the test scenarios table
28
- - Missing DoD: draft specific, measurable Definition of Done items
29
- - Other issues: draft fix per the validation finding description
30
- </action>
31
- <ask>For each proposed fix, present the section name, the issue found, and the proposed new content. Wait for user approval before applying. Example: "Section: Acceptance Criteria — Issue: Not in Given/When/Then format — Proposed fix: [content]. Apply this fix? (yes / no / edit)"</ask>
32
- <action>Apply only user-approved fixes. If user chooses "edit", accept their revised content instead.</action>
33
- <action>Preserve all existing valid content — do NOT rewrite sections that passed validation</action>
34
- </step>
35
- <step n="4b" title="Change Log">
36
- <action>After all fixes are applied, append a "## Change Log" section at the end of the story file (before any validation report) with:
37
- - Date: {current date}
38
- - Source: fix-story workflow
39
- - Sections modified: list each section that was fixed
40
- - Summary: one-line description of changes made
41
- </action>
42
- </step>
43
- <step n="5" title="Remove Validation Report">
44
- <action>Remove the --- separator and the entire "## Validation Report" section from the end of the story</action>
45
- </step>
46
- <step n="5b" title="Re-Validate">
47
- <action>Run inline validation checks on the corrected story (same criteria as /gaia-validate-story Steps 2-6):
48
- - YAML frontmatter: verify all 14 required fields present (key, title, epic, status, priority, size, points, risk, sprint_id, depends_on, blocks, traces_to, date, author)
49
- - Completeness: verify all sections present (User Story, AC, Tasks, Dev Notes, Technical Notes, Dependencies, Test Scenarios, Project Structure Notes, References, Dev Agent Record, Estimate, DoD)
50
- - Clarity: verify ACs are in Given/When/Then format, subtasks linked to AC numbers, DoD items are measurable
51
- - Dependencies: verify declared dependencies exist and are resolvable
52
- </action>
53
- <check if="all_checks_pass">
54
- <invoke-protocol ref="status-sync" story_key="{story_key}" new_status="ready-for-dev" source_workflow="fix-story" />
55
- Inform user "Story {story_key} passed re-validation and is now ready for development."
56
- </check>
57
- <check if="issues_remain">
58
- <invoke-protocol ref="status-sync" story_key="{story_key}" new_status="validating" source_workflow="fix-story" />
59
- List remaining issues and inform user: "Some issues remain after fixes — run /gaia-fix-story again or manually edit, then /gaia-validate-story."
60
- </check>
61
- </step>
62
- <step n="6" title="Save Corrected Story">
63
- <template-output file="{implementation_artifacts}/{story_key}-{story_title_slug}.md">
64
- Save the corrected story file with all FAIL issues resolved and the old validation report removed. If re-validation passed, status is ready-for-dev. If issues remain, status stays validating.
65
- </template-output>
66
- </step>
67
- </workflow>
@@ -1,17 +0,0 @@
1
- name: fix-story
2
- description: 'Fix story issues flagged by validation'
3
- module: lifecycle
4
- agent: sm
5
- config_resolved: "{installed_path}/.resolved/fix-story.yaml"
6
- config_source: "{project-root}/_gaia/lifecycle/config.yaml"
7
- installed_path: "{project-root}/_gaia/lifecycle/workflows/4-implementation/fix-story"
8
- instructions: "{installed_path}/instructions.xml"
9
- validation: "{installed_path}/checklist.md"
10
- template: "{project-root}/_gaia/lifecycle/templates/story-template.md"
11
- on_error:
12
- missing_file: "ask_user"
13
- unresolved_variable: "halt"
14
-
15
- output:
16
- primary: "{implementation_artifacts}/{story_key}-{story_title_slug}.md"
17
- secondary: "{implementation_artifacts}/sprint-status.yaml"
@@ -1,19 +0,0 @@
1
- ---
2
- title: 'QA Test Generation Validation'
3
- validation-target: 'Generated tests'
4
- ---
5
- ## Tests
6
- - [ ] API tests generated
7
- - [ ] E2E tests generated
8
- - [ ] Tests pass on first run
9
- ## Coverage
10
- - [ ] All acceptance criteria covered
11
- ## Verdict
12
- - [ ] PASSED or FAILED verdict clearly stated in report
13
- ## Review Gate
14
- - [ ] Review Gate table updated in story file
15
- - [ ] If PASSED: QA Tests row shows PASSED with report link
16
- - [ ] If FAILED: QA Tests row shows FAILED, story status set to in-progress
17
- - [ ] Review gate check protocol invoked
18
- ## Output Verification
19
- - [ ] Test report exists at {test_artifacts}/{story_key}-qa-tests.md
@@ -1,52 +0,0 @@
1
- <workflow name="qa-generate-tests">
2
- <critical>
3
- <mandate>Story must be in review status before QA testing</mandate>
4
- <mandate>Do NOT write executable test files to the source tree (tests/, spec/, __tests__/, e2e/). Document test cases in the QA report only, written to {test_artifacts}/.</mandate>
5
- <mandate>Output must include machine-readable PASSED or FAILED verdict</mandate>
6
- <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>
7
- </critical>
8
- <step n="1" title="Load Story and Code">
9
- <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>
10
- <action>Read story acceptance criteria</action>
11
- <action>Read implemented code files</action>
12
- </step>
13
- <step n="2" title="Status Gate">
14
- <action>Verify story is in 'review' status</action>
15
- <check if="status != review">HALT: Story must be in review status before QA testing</check>
16
- </step>
17
- <step n="3" title="API Test Case Documentation">
18
- <action>Document API/integration test cases for endpoints — do NOT write executable test files</action>
19
- <action>For each test case: describe endpoint, method, input, expected response, and edge cases</action>
20
- <action>Cover happy path, error cases, boundary conditions, and authorization scenarios</action>
21
- <action>Use test case IDs in format TC-{story_key}-{NNN} (e.g., TC-E1-S1-001). Include fields: ID, AC reference, Preconditions, Steps, Expected Result.</action>
22
- </step>
23
- <step n="4" title="E2E Test Case Documentation">
24
- <action>Document end-to-end test scenarios from user journeys — do NOT write executable test files</action>
25
- <action>For each scenario: describe preconditions, user actions, assertions, and cleanup</action>
26
- <action>Continue TC-{story_key}-{NNN} numbering sequence from Step 3</action>
27
- </step>
28
- <step n="5" title="Test Execution">
29
- <action>If executable tests already exist in the source tree for this story: run them and report results</action>
30
- <action>If no existing tests: run the application and manually verify key acceptance criteria through API calls or UI inspection</action>
31
- <action>Do NOT create new test files in the source tree — test file creation is the responsibility of /gaia-test-automate</action>
32
- </step>
33
- <step n="6" title="Verdict">
34
- <action>If ALL tests pass: verdict is PASSED</action>
35
- <action>If ANY test fails: verdict is FAILED — list failing tests with reasons</action>
36
- </step>
37
- <step n="7" title="Generate Output">
38
- <template-output file="{test_artifacts}/{story_key}-qa-tests.md">
39
- Generate QA test report with test files created, execution results, and machine-readable verdict (PASSED/FAILED).
40
- </template-output>
41
- </step>
42
- <step n="8" title="Update Review Gate and Transition">
43
- <action>Read story file, locate Review Gate table</action>
44
- <action>If PASSED: update QA Tests row status to PASSED, link report file</action>
45
- <action>If FAILED: update QA Tests 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>
46
- <template-output file="{implementation_artifacts}/{story_key}-*.md">
47
- Update story file Review Gate table with QA test result and report link.
48
- </template-output>
49
- <action>Inform user: "Note: sprint-status.yaml may now be out of sync. Run /gaia-sprint-status to reconcile."</action>
50
- <invoke-protocol name="review-gate-check" file="{project-root}/_gaia/core/protocols/review-gate-check.xml" />
51
- </step>
52
- </workflow>