@zigrivers/scaffold 2.1.2 → 2.38.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 (391) hide show
  1. package/README.md +505 -119
  2. package/dist/cli/commands/build.d.ts.map +1 -1
  3. package/dist/cli/commands/build.js +94 -14
  4. package/dist/cli/commands/build.js.map +1 -1
  5. package/dist/cli/commands/build.test.js +30 -5
  6. package/dist/cli/commands/build.test.js.map +1 -1
  7. package/dist/cli/commands/check.d.ts +12 -0
  8. package/dist/cli/commands/check.d.ts.map +1 -0
  9. package/dist/cli/commands/check.js +311 -0
  10. package/dist/cli/commands/check.js.map +1 -0
  11. package/dist/cli/commands/check.test.d.ts +2 -0
  12. package/dist/cli/commands/check.test.d.ts.map +1 -0
  13. package/dist/cli/commands/check.test.js +412 -0
  14. package/dist/cli/commands/check.test.js.map +1 -0
  15. package/dist/cli/commands/complete.d.ts +12 -0
  16. package/dist/cli/commands/complete.d.ts.map +1 -0
  17. package/dist/cli/commands/complete.js +101 -0
  18. package/dist/cli/commands/complete.js.map +1 -0
  19. package/dist/cli/commands/complete.test.d.ts +2 -0
  20. package/dist/cli/commands/complete.test.d.ts.map +1 -0
  21. package/dist/cli/commands/complete.test.js +133 -0
  22. package/dist/cli/commands/complete.test.js.map +1 -0
  23. package/dist/cli/commands/dashboard.d.ts.map +1 -1
  24. package/dist/cli/commands/dashboard.js +12 -8
  25. package/dist/cli/commands/dashboard.js.map +1 -1
  26. package/dist/cli/commands/info.d.ts.map +1 -1
  27. package/dist/cli/commands/info.js +4 -0
  28. package/dist/cli/commands/info.js.map +1 -1
  29. package/dist/cli/commands/knowledge.d.ts.map +1 -1
  30. package/dist/cli/commands/knowledge.js +6 -2
  31. package/dist/cli/commands/knowledge.js.map +1 -1
  32. package/dist/cli/commands/knowledge.test.js +16 -11
  33. package/dist/cli/commands/knowledge.test.js.map +1 -1
  34. package/dist/cli/commands/next.d.ts.map +1 -1
  35. package/dist/cli/commands/next.js +41 -13
  36. package/dist/cli/commands/next.js.map +1 -1
  37. package/dist/cli/commands/next.test.js +3 -0
  38. package/dist/cli/commands/next.test.js.map +1 -1
  39. package/dist/cli/commands/reset.d.ts +1 -0
  40. package/dist/cli/commands/reset.d.ts.map +1 -1
  41. package/dist/cli/commands/reset.js +179 -67
  42. package/dist/cli/commands/reset.js.map +1 -1
  43. package/dist/cli/commands/reset.test.js +360 -0
  44. package/dist/cli/commands/reset.test.js.map +1 -1
  45. package/dist/cli/commands/rework.d.ts +20 -0
  46. package/dist/cli/commands/rework.d.ts.map +1 -0
  47. package/dist/cli/commands/rework.js +332 -0
  48. package/dist/cli/commands/rework.js.map +1 -0
  49. package/dist/cli/commands/rework.test.d.ts +2 -0
  50. package/dist/cli/commands/rework.test.d.ts.map +1 -0
  51. package/dist/cli/commands/rework.test.js +297 -0
  52. package/dist/cli/commands/rework.test.js.map +1 -0
  53. package/dist/cli/commands/run.d.ts.map +1 -1
  54. package/dist/cli/commands/run.js +59 -31
  55. package/dist/cli/commands/run.js.map +1 -1
  56. package/dist/cli/commands/run.test.js +288 -6
  57. package/dist/cli/commands/run.test.js.map +1 -1
  58. package/dist/cli/commands/skill.d.ts +12 -0
  59. package/dist/cli/commands/skill.d.ts.map +1 -0
  60. package/dist/cli/commands/skill.js +123 -0
  61. package/dist/cli/commands/skill.js.map +1 -0
  62. package/dist/cli/commands/skill.test.d.ts +2 -0
  63. package/dist/cli/commands/skill.test.d.ts.map +1 -0
  64. package/dist/cli/commands/skill.test.js +297 -0
  65. package/dist/cli/commands/skill.test.js.map +1 -0
  66. package/dist/cli/commands/skip.d.ts +1 -1
  67. package/dist/cli/commands/skip.d.ts.map +1 -1
  68. package/dist/cli/commands/skip.js +123 -57
  69. package/dist/cli/commands/skip.js.map +1 -1
  70. package/dist/cli/commands/skip.test.js +91 -0
  71. package/dist/cli/commands/skip.test.js.map +1 -1
  72. package/dist/cli/commands/status.d.ts +1 -0
  73. package/dist/cli/commands/status.d.ts.map +1 -1
  74. package/dist/cli/commands/status.js +57 -10
  75. package/dist/cli/commands/status.js.map +1 -1
  76. package/dist/cli/commands/status.test.js +81 -0
  77. package/dist/cli/commands/status.test.js.map +1 -1
  78. package/dist/cli/commands/update.test.js +252 -0
  79. package/dist/cli/commands/update.test.js.map +1 -1
  80. package/dist/cli/commands/version.test.js +171 -1
  81. package/dist/cli/commands/version.test.js.map +1 -1
  82. package/dist/cli/index.d.ts.map +1 -1
  83. package/dist/cli/index.js +8 -0
  84. package/dist/cli/index.js.map +1 -1
  85. package/dist/core/adapters/adapter.d.ts +14 -0
  86. package/dist/core/adapters/adapter.d.ts.map +1 -1
  87. package/dist/core/adapters/adapter.js.map +1 -1
  88. package/dist/core/adapters/adapter.test.js +10 -0
  89. package/dist/core/adapters/adapter.test.js.map +1 -1
  90. package/dist/core/adapters/claude-code.d.ts.map +1 -1
  91. package/dist/core/adapters/claude-code.js +47 -10
  92. package/dist/core/adapters/claude-code.js.map +1 -1
  93. package/dist/core/adapters/claude-code.test.js +41 -20
  94. package/dist/core/adapters/claude-code.test.js.map +1 -1
  95. package/dist/core/adapters/codex.d.ts.map +1 -1
  96. package/dist/core/adapters/codex.js +5 -1
  97. package/dist/core/adapters/codex.js.map +1 -1
  98. package/dist/core/adapters/codex.test.js +5 -0
  99. package/dist/core/adapters/codex.test.js.map +1 -1
  100. package/dist/core/adapters/universal.d.ts.map +1 -1
  101. package/dist/core/adapters/universal.js +0 -1
  102. package/dist/core/adapters/universal.js.map +1 -1
  103. package/dist/core/adapters/universal.test.js +5 -0
  104. package/dist/core/adapters/universal.test.js.map +1 -1
  105. package/dist/core/assembly/context-gatherer.d.ts.map +1 -1
  106. package/dist/core/assembly/context-gatherer.js +5 -2
  107. package/dist/core/assembly/context-gatherer.js.map +1 -1
  108. package/dist/core/assembly/engine.d.ts.map +1 -1
  109. package/dist/core/assembly/engine.js +10 -2
  110. package/dist/core/assembly/engine.js.map +1 -1
  111. package/dist/core/assembly/engine.test.js +19 -0
  112. package/dist/core/assembly/engine.test.js.map +1 -1
  113. package/dist/core/assembly/knowledge-loader.d.ts +25 -0
  114. package/dist/core/assembly/knowledge-loader.d.ts.map +1 -1
  115. package/dist/core/assembly/knowledge-loader.js +75 -2
  116. package/dist/core/assembly/knowledge-loader.js.map +1 -1
  117. package/dist/core/assembly/knowledge-loader.test.js +388 -1
  118. package/dist/core/assembly/knowledge-loader.test.js.map +1 -1
  119. package/dist/core/assembly/meta-prompt-loader.d.ts +6 -0
  120. package/dist/core/assembly/meta-prompt-loader.d.ts.map +1 -1
  121. package/dist/core/assembly/meta-prompt-loader.js +41 -25
  122. package/dist/core/assembly/meta-prompt-loader.js.map +1 -1
  123. package/dist/core/assembly/preset-loader.d.ts +10 -0
  124. package/dist/core/assembly/preset-loader.d.ts.map +1 -1
  125. package/dist/core/assembly/preset-loader.js +26 -1
  126. package/dist/core/assembly/preset-loader.js.map +1 -1
  127. package/dist/core/assembly/preset-loader.test.js +65 -1
  128. package/dist/core/assembly/preset-loader.test.js.map +1 -1
  129. package/dist/core/assembly/update-mode.d.ts.map +1 -1
  130. package/dist/core/assembly/update-mode.js +10 -4
  131. package/dist/core/assembly/update-mode.js.map +1 -1
  132. package/dist/core/assembly/update-mode.test.js +47 -0
  133. package/dist/core/assembly/update-mode.test.js.map +1 -1
  134. package/dist/core/dependency/dependency.d.ts.map +1 -1
  135. package/dist/core/dependency/dependency.js +3 -2
  136. package/dist/core/dependency/dependency.js.map +1 -1
  137. package/dist/core/dependency/dependency.test.js +2 -0
  138. package/dist/core/dependency/dependency.test.js.map +1 -1
  139. package/dist/core/dependency/eligibility.js +3 -3
  140. package/dist/core/dependency/eligibility.js.map +1 -1
  141. package/dist/core/dependency/eligibility.test.js +2 -0
  142. package/dist/core/dependency/eligibility.test.js.map +1 -1
  143. package/dist/core/dependency/graph.d.ts.map +1 -1
  144. package/dist/core/dependency/graph.js +4 -0
  145. package/dist/core/dependency/graph.js.map +1 -1
  146. package/dist/core/dependency/graph.test.d.ts +2 -0
  147. package/dist/core/dependency/graph.test.d.ts.map +1 -0
  148. package/dist/core/dependency/graph.test.js +262 -0
  149. package/dist/core/dependency/graph.test.js.map +1 -0
  150. package/dist/core/rework/phase-selector.d.ts +24 -0
  151. package/dist/core/rework/phase-selector.d.ts.map +1 -0
  152. package/dist/core/rework/phase-selector.js +98 -0
  153. package/dist/core/rework/phase-selector.js.map +1 -0
  154. package/dist/core/rework/phase-selector.test.d.ts +2 -0
  155. package/dist/core/rework/phase-selector.test.d.ts.map +1 -0
  156. package/dist/core/rework/phase-selector.test.js +138 -0
  157. package/dist/core/rework/phase-selector.test.js.map +1 -0
  158. package/dist/dashboard/generator.d.ts +48 -17
  159. package/dist/dashboard/generator.d.ts.map +1 -1
  160. package/dist/dashboard/generator.js +75 -5
  161. package/dist/dashboard/generator.js.map +1 -1
  162. package/dist/dashboard/generator.test.js +213 -5
  163. package/dist/dashboard/generator.test.js.map +1 -1
  164. package/dist/dashboard/template.d.ts +1 -1
  165. package/dist/dashboard/template.d.ts.map +1 -1
  166. package/dist/dashboard/template.js +755 -114
  167. package/dist/dashboard/template.js.map +1 -1
  168. package/dist/e2e/knowledge.test.js +4 -3
  169. package/dist/e2e/knowledge.test.js.map +1 -1
  170. package/dist/e2e/pipeline.test.js +2 -0
  171. package/dist/e2e/pipeline.test.js.map +1 -1
  172. package/dist/e2e/rework.test.d.ts +6 -0
  173. package/dist/e2e/rework.test.d.ts.map +1 -0
  174. package/dist/e2e/rework.test.js +226 -0
  175. package/dist/e2e/rework.test.js.map +1 -0
  176. package/dist/index.js +0 -0
  177. package/dist/project/adopt.test.js +2 -0
  178. package/dist/project/adopt.test.js.map +1 -1
  179. package/dist/project/claude-md.js +2 -2
  180. package/dist/project/claude-md.js.map +1 -1
  181. package/dist/project/claude-md.test.js +4 -4
  182. package/dist/project/claude-md.test.js.map +1 -1
  183. package/dist/project/detector.d.ts.map +1 -1
  184. package/dist/project/detector.js +4 -1
  185. package/dist/project/detector.js.map +1 -1
  186. package/dist/project/frontmatter.d.ts.map +1 -1
  187. package/dist/project/frontmatter.js +54 -15
  188. package/dist/project/frontmatter.js.map +1 -1
  189. package/dist/project/frontmatter.test.js +2 -2
  190. package/dist/project/frontmatter.test.js.map +1 -1
  191. package/dist/state/rework-manager.d.ts +16 -0
  192. package/dist/state/rework-manager.d.ts.map +1 -0
  193. package/dist/state/rework-manager.js +126 -0
  194. package/dist/state/rework-manager.js.map +1 -0
  195. package/dist/state/rework-manager.test.d.ts +2 -0
  196. package/dist/state/rework-manager.test.d.ts.map +1 -0
  197. package/dist/state/rework-manager.test.js +191 -0
  198. package/dist/state/rework-manager.test.js.map +1 -0
  199. package/dist/state/state-manager.d.ts +13 -0
  200. package/dist/state/state-manager.d.ts.map +1 -1
  201. package/dist/state/state-manager.js +39 -2
  202. package/dist/state/state-manager.js.map +1 -1
  203. package/dist/state/state-manager.test.js +74 -1
  204. package/dist/state/state-manager.test.js.map +1 -1
  205. package/dist/state/state-migration.d.ts +23 -0
  206. package/dist/state/state-migration.d.ts.map +1 -0
  207. package/dist/state/state-migration.js +144 -0
  208. package/dist/state/state-migration.js.map +1 -0
  209. package/dist/state/state-migration.test.d.ts +2 -0
  210. package/dist/state/state-migration.test.d.ts.map +1 -0
  211. package/dist/state/state-migration.test.js +451 -0
  212. package/dist/state/state-migration.test.js.map +1 -0
  213. package/dist/types/assembly.d.ts +2 -0
  214. package/dist/types/assembly.d.ts.map +1 -1
  215. package/dist/types/dependency.d.ts +2 -2
  216. package/dist/types/dependency.d.ts.map +1 -1
  217. package/dist/types/frontmatter.d.ts +100 -7
  218. package/dist/types/frontmatter.d.ts.map +1 -1
  219. package/dist/types/frontmatter.js +89 -1
  220. package/dist/types/frontmatter.js.map +1 -1
  221. package/dist/types/index.d.ts +1 -0
  222. package/dist/types/index.d.ts.map +1 -1
  223. package/dist/types/index.js +1 -0
  224. package/dist/types/index.js.map +1 -1
  225. package/dist/types/lock.d.ts +1 -1
  226. package/dist/types/lock.d.ts.map +1 -1
  227. package/dist/types/rework.d.ts +36 -0
  228. package/dist/types/rework.d.ts.map +1 -0
  229. package/dist/types/rework.js +2 -0
  230. package/dist/types/rework.js.map +1 -0
  231. package/dist/utils/errors.d.ts +1 -0
  232. package/dist/utils/errors.d.ts.map +1 -1
  233. package/dist/utils/errors.js +8 -0
  234. package/dist/utils/errors.js.map +1 -1
  235. package/dist/utils/fs.d.ts +6 -0
  236. package/dist/utils/fs.d.ts.map +1 -1
  237. package/dist/utils/fs.js +13 -0
  238. package/dist/utils/fs.js.map +1 -1
  239. package/dist/validation/config-validator.test.d.ts +2 -0
  240. package/dist/validation/config-validator.test.d.ts.map +1 -0
  241. package/dist/validation/config-validator.test.js +210 -0
  242. package/dist/validation/config-validator.test.js.map +1 -0
  243. package/dist/validation/dependency-validator.test.d.ts +2 -0
  244. package/dist/validation/dependency-validator.test.d.ts.map +1 -0
  245. package/dist/validation/dependency-validator.test.js +215 -0
  246. package/dist/validation/dependency-validator.test.js.map +1 -0
  247. package/dist/validation/frontmatter-validator.test.d.ts +2 -0
  248. package/dist/validation/frontmatter-validator.test.d.ts.map +1 -0
  249. package/dist/validation/frontmatter-validator.test.js +371 -0
  250. package/dist/validation/frontmatter-validator.test.js.map +1 -0
  251. package/dist/validation/state-validator.test.d.ts +2 -0
  252. package/dist/validation/state-validator.test.d.ts.map +1 -0
  253. package/dist/validation/state-validator.test.js +325 -0
  254. package/dist/validation/state-validator.test.js.map +1 -0
  255. package/dist/wizard/suggestion.test.d.ts +2 -0
  256. package/dist/wizard/suggestion.test.d.ts.map +1 -0
  257. package/dist/wizard/suggestion.test.js +115 -0
  258. package/dist/wizard/suggestion.test.js.map +1 -0
  259. package/dist/wizard/wizard.d.ts.map +1 -1
  260. package/dist/wizard/wizard.js +34 -1
  261. package/dist/wizard/wizard.js.map +1 -1
  262. package/knowledge/core/adr-craft.md +57 -0
  263. package/knowledge/core/ai-memory-management.md +246 -0
  264. package/knowledge/core/api-design.md +8 -0
  265. package/knowledge/core/automated-review-tooling.md +203 -0
  266. package/knowledge/core/claude-md-patterns.md +254 -0
  267. package/knowledge/core/coding-conventions.md +246 -0
  268. package/knowledge/core/database-design.md +8 -0
  269. package/knowledge/core/design-system-tokens.md +469 -0
  270. package/knowledge/core/dev-environment.md +223 -0
  271. package/knowledge/core/domain-modeling.md +8 -0
  272. package/knowledge/core/eval-craft.md +1008 -0
  273. package/knowledge/core/git-workflow-patterns.md +200 -0
  274. package/knowledge/core/multi-model-review-dispatch.md +250 -0
  275. package/knowledge/core/operations-runbook.md +40 -225
  276. package/knowledge/core/project-structure-patterns.md +231 -0
  277. package/knowledge/core/review-step-template.md +247 -0
  278. package/knowledge/core/{security-review.md → security-best-practices.md} +9 -1
  279. package/knowledge/core/system-architecture.md +5 -1
  280. package/knowledge/core/task-decomposition.md +174 -36
  281. package/knowledge/core/task-tracking.md +225 -0
  282. package/knowledge/core/tech-stack-selection.md +214 -0
  283. package/knowledge/core/testing-strategy.md +63 -70
  284. package/knowledge/core/user-stories.md +69 -60
  285. package/knowledge/core/user-story-innovation.md +70 -0
  286. package/knowledge/core/ux-specification.md +18 -148
  287. package/knowledge/execution/enhancement-workflow.md +201 -0
  288. package/knowledge/execution/task-claiming-strategy.md +130 -0
  289. package/knowledge/execution/tdd-execution-loop.md +172 -0
  290. package/knowledge/execution/worktree-management.md +205 -0
  291. package/knowledge/finalization/apply-fixes-and-freeze.md +177 -14
  292. package/knowledge/finalization/developer-onboarding.md +4 -0
  293. package/knowledge/finalization/implementation-playbook.md +83 -5
  294. package/knowledge/product/gap-analysis.md +5 -1
  295. package/knowledge/product/prd-craft.md +55 -34
  296. package/knowledge/product/prd-innovation.md +12 -0
  297. package/knowledge/product/vision-craft.md +213 -0
  298. package/knowledge/review/review-adr.md +44 -0
  299. package/knowledge/review/{review-api-contracts.md → review-api-design.md} +47 -1
  300. package/knowledge/review/{review-database-schema.md → review-database-design.md} +40 -1
  301. package/knowledge/review/review-domain-modeling.md +38 -1
  302. package/knowledge/review/review-implementation-tasks.md +108 -1
  303. package/knowledge/review/review-methodology.md +11 -0
  304. package/knowledge/review/review-operations.md +67 -0
  305. package/knowledge/review/review-prd.md +46 -0
  306. package/knowledge/review/review-security.md +65 -0
  307. package/knowledge/review/review-system-architecture.md +32 -2
  308. package/knowledge/review/review-testing-strategy.md +62 -0
  309. package/knowledge/review/review-user-stories.md +65 -0
  310. package/knowledge/review/{review-ux-spec.md → review-ux-specification.md} +50 -2
  311. package/knowledge/review/review-vision.md +255 -0
  312. package/knowledge/tools/release-management.md +222 -0
  313. package/knowledge/tools/session-analysis.md +215 -0
  314. package/knowledge/tools/version-strategy.md +200 -0
  315. package/knowledge/validation/critical-path-analysis.md +1 -1
  316. package/knowledge/validation/cross-phase-consistency.md +12 -0
  317. package/knowledge/validation/decision-completeness.md +13 -1
  318. package/knowledge/validation/dependency-validation.md +12 -0
  319. package/knowledge/validation/scope-management.md +12 -0
  320. package/knowledge/validation/traceability.md +12 -0
  321. package/methodology/README.md +37 -0
  322. package/methodology/custom-defaults.yml +44 -4
  323. package/methodology/deep.yml +43 -3
  324. package/methodology/mvp.yml +43 -3
  325. package/package.json +4 -3
  326. package/pipeline/architecture/review-architecture.md +36 -13
  327. package/pipeline/architecture/system-architecture.md +24 -9
  328. package/pipeline/build/multi-agent-resume.md +245 -0
  329. package/pipeline/build/multi-agent-start.md +236 -0
  330. package/pipeline/build/new-enhancement.md +456 -0
  331. package/pipeline/build/quick-task.md +381 -0
  332. package/pipeline/build/single-agent-resume.md +210 -0
  333. package/pipeline/build/single-agent-start.md +207 -0
  334. package/pipeline/consolidation/claude-md-optimization.md +76 -0
  335. package/pipeline/consolidation/workflow-audit.md +77 -0
  336. package/pipeline/decisions/adrs.md +21 -7
  337. package/pipeline/decisions/review-adrs.md +32 -11
  338. package/pipeline/environment/ai-memory-setup.md +76 -0
  339. package/pipeline/environment/automated-pr-review.md +76 -0
  340. package/pipeline/environment/design-system.md +75 -0
  341. package/pipeline/environment/dev-env-setup.md +68 -0
  342. package/pipeline/environment/git-workflow.md +73 -0
  343. package/pipeline/finalization/apply-fixes-and-freeze.md +17 -6
  344. package/pipeline/finalization/developer-onboarding-guide.md +23 -9
  345. package/pipeline/finalization/implementation-playbook.md +43 -14
  346. package/pipeline/foundation/beads.md +71 -0
  347. package/pipeline/foundation/coding-standards.md +71 -0
  348. package/pipeline/foundation/project-structure.md +73 -0
  349. package/pipeline/foundation/tdd.md +64 -0
  350. package/pipeline/foundation/tech-stack.md +74 -0
  351. package/pipeline/integration/add-e2e-testing.md +80 -0
  352. package/pipeline/modeling/domain-modeling.md +23 -8
  353. package/pipeline/modeling/review-domain-modeling.md +35 -11
  354. package/pipeline/parity/platform-parity-review.md +90 -0
  355. package/pipeline/planning/implementation-plan-review.md +67 -0
  356. package/pipeline/planning/implementation-plan.md +110 -0
  357. package/pipeline/pre/create-prd.md +34 -10
  358. package/pipeline/pre/innovate-prd.md +46 -15
  359. package/pipeline/pre/innovate-user-stories.md +47 -14
  360. package/pipeline/pre/review-prd.md +29 -8
  361. package/pipeline/pre/review-user-stories.md +34 -8
  362. package/pipeline/pre/user-stories.md +23 -8
  363. package/pipeline/quality/create-evals.md +106 -0
  364. package/pipeline/quality/operations.md +46 -17
  365. package/pipeline/quality/review-operations.md +32 -11
  366. package/pipeline/quality/review-security.md +34 -12
  367. package/pipeline/quality/review-testing.md +37 -14
  368. package/pipeline/quality/security.md +36 -10
  369. package/pipeline/quality/story-tests.md +75 -0
  370. package/pipeline/specification/api-contracts.md +28 -8
  371. package/pipeline/specification/database-schema.md +29 -8
  372. package/pipeline/specification/review-api.md +32 -11
  373. package/pipeline/specification/review-database.md +32 -11
  374. package/pipeline/specification/review-ux.md +34 -12
  375. package/pipeline/specification/ux-spec.md +35 -13
  376. package/pipeline/validation/critical-path-walkthrough.md +45 -11
  377. package/pipeline/validation/cross-phase-consistency.md +45 -11
  378. package/pipeline/validation/decision-completeness.md +45 -11
  379. package/pipeline/validation/dependency-graph-validation.md +46 -11
  380. package/pipeline/validation/implementability-dry-run.md +46 -11
  381. package/pipeline/validation/scope-creep-check.md +46 -11
  382. package/pipeline/validation/traceability-matrix.md +51 -11
  383. package/pipeline/vision/create-vision.md +267 -0
  384. package/pipeline/vision/innovate-vision.md +157 -0
  385. package/pipeline/vision/review-vision.md +149 -0
  386. package/skills/multi-model-dispatch/SKILL.md +326 -0
  387. package/skills/scaffold-pipeline/SKILL.md +210 -0
  388. package/skills/scaffold-runner/SKILL.md +619 -0
  389. package/pipeline/planning/implementation-tasks.md +0 -57
  390. package/pipeline/planning/review-tasks.md +0 -38
  391. package/pipeline/quality/testing-strategy.md +0 -42
@@ -1,12 +1,13 @@
1
1
  ---
2
2
  name: review-api
3
3
  description: Review API contracts for completeness and consistency
4
+ summary: "Checks that every domain operation has an endpoint, error responses include domain-specific codes, and auth requirements are specified for every route."
4
5
  phase: "specification"
5
- order: 16
6
+ order: 840
6
7
  dependencies: [api-contracts]
7
- outputs: [docs/reviews/review-api.md]
8
+ outputs: [docs/reviews/review-api.md, docs/reviews/api/review-summary.md, docs/reviews/api/codex-review.json, docs/reviews/api/gemini-review.json]
8
9
  conditional: "if-needed"
9
- knowledge-base: [review-methodology, review-api-contracts]
10
+ knowledge-base: [review-methodology, review-api-design, multi-model-review-dispatch, review-step-template]
10
11
  ---
11
12
 
12
13
  ## Purpose
@@ -14,6 +15,9 @@ Review API contracts targeting API-specific failure modes: operation coverage
14
15
  gaps, error contract incompleteness, auth/authz gaps, versioning inconsistencies,
15
16
  payload shape mismatches with domain entities, and idempotency gaps.
16
17
 
18
+ At depth 4+, dispatches to external AI models (Codex, Gemini) for
19
+ independent review validation.
20
+
17
21
  ## Inputs
18
22
  - docs/api-contracts.md (required) — contracts to review
19
23
  - docs/domain-models/ (required) — for operation coverage
@@ -23,18 +27,35 @@ payload shape mismatches with domain entities, and idempotency gaps.
23
27
  ## Expected Outputs
24
28
  - docs/reviews/review-api.md — findings and resolution log
25
29
  - docs/api-contracts.md — updated with fixes
30
+ - docs/reviews/api/review-summary.md (depth 4+) — multi-model review synthesis
31
+ - docs/reviews/api/codex-review.json (depth 4+, if available) — raw Codex findings
32
+ - docs/reviews/api/gemini-review.json (depth 4+, if available) — raw Gemini findings
26
33
 
27
34
  ## Quality Criteria
28
- - Operation coverage against domain model verified
29
- - Error contracts complete and consistent
30
- - Auth requirements specified for every endpoint
31
- - Versioning strategy consistent with ADRs
32
- - Idempotency documented for all mutating operations
35
+ - (mvp) Operation coverage against domain model verified
36
+ - (deep) Error contracts complete and consistent
37
+ - (deep) Auth requirements specified for every endpoint
38
+ - (deep) Versioning strategy consistent with ADRs
39
+ - (deep) Idempotency documented for all mutating operations
40
+ - (mvp) Every finding categorized P0-P3 with specific endpoint, field, and issue
41
+ - (mvp) Fix plan documented for all P0/P1 findings; fixes applied to api-contracts.md and re-validated
42
+ - (mvp) Downstream readiness confirmed — no unresolved P0 or P1 findings remain before UX spec proceeds
43
+ - (depth 4+) Multi-model findings synthesized with consensus/disagreement analysis
33
44
 
34
45
  ## Methodology Scaling
35
- - **deep**: Full multi-pass review targeting all API failure modes.
46
+ - **deep**: Full multi-pass review targeting all API failure modes. Multi-model
47
+ review dispatched to Codex and Gemini if available, with graceful fallback
48
+ to Claude-only enhanced review.
36
49
  - **mvp**: Operation coverage check only.
37
- - **custom:depth(1-5)**: Scale passes with depth.
50
+ - **custom:depth(1-5)**: Depth 1: endpoint coverage and response format pass only. Depth 2: add error handling and auth requirement passes. Depth 3: add idempotency, pagination, and versioning passes. Depth 4: add external model API review. Depth 5: multi-model review with reconciliation.
38
51
 
39
52
  ## Mode Detection
40
- Re-review mode if previous review exists.
53
+ Re-review mode if previous review exists. If multi-model review artifacts exist
54
+ under docs/reviews/api/, preserve prior findings still valid.
55
+
56
+ ## Update Mode Specifics
57
+
58
+ - **Detect**: `docs/reviews/review-api.md` exists with tracking comment
59
+ - **Preserve**: Prior findings still valid, resolution decisions, multi-model review artifacts
60
+ - **Triggers**: Upstream artifact changed since last review (compare tracking comment dates)
61
+ - **Conflict resolution**: Previously resolved findings reappearing = regression; flag and re-evaluate
@@ -1,12 +1,13 @@
1
1
  ---
2
2
  name: review-database
3
3
  description: Review database schema for correctness and completeness
4
+ summary: "Verifies every domain entity has a table, constraints enforce business rules at the database level, and indexes cover all query patterns from the API contracts."
4
5
  phase: "specification"
5
- order: 14
6
+ order: 820
6
7
  dependencies: [database-schema]
7
- outputs: [docs/reviews/review-database.md]
8
+ outputs: [docs/reviews/review-database.md, docs/reviews/database/review-summary.md, docs/reviews/database/codex-review.json, docs/reviews/database/gemini-review.json]
8
9
  conditional: "if-needed"
9
- knowledge-base: [review-methodology, review-database-schema]
10
+ knowledge-base: [review-methodology, review-database-design, multi-model-review-dispatch, review-step-template]
10
11
  ---
11
12
 
12
13
  ## Purpose
@@ -14,6 +15,9 @@ Review database schema targeting schema-specific failure modes: entity coverage
14
15
  gaps, normalization trade-off issues, missing indexes, migration safety, and
15
16
  referential integrity vs. domain invariants.
16
17
 
18
+ At depth 4+, dispatches to external AI models (Codex, Gemini) for
19
+ independent review validation.
20
+
17
21
  ## Inputs
18
22
  - docs/database-schema.md (required) — schema to review
19
23
  - docs/domain-models/ (required) — for entity coverage
@@ -22,18 +26,35 @@ referential integrity vs. domain invariants.
22
26
  ## Expected Outputs
23
27
  - docs/reviews/review-database.md — findings and resolution log
24
28
  - docs/database-schema.md — updated with fixes
29
+ - docs/reviews/database/review-summary.md (depth 4+) — multi-model review synthesis
30
+ - docs/reviews/database/codex-review.json (depth 4+, if available) — raw Codex findings
31
+ - docs/reviews/database/gemini-review.json (depth 4+, if available) — raw Gemini findings
25
32
 
26
33
  ## Quality Criteria
27
- - Entity coverage verified
28
- - Normalization decisions justified
29
- - Index coverage for known query patterns verified
30
- - Migration safety assessed
31
- - Referential integrity matches domain invariants
34
+ - (mvp) Every domain entity has a corresponding table/collection or documented denormalization rationale
35
+ - (mvp) Normalization decisions justified
36
+ - (deep) Index coverage for known query patterns verified
37
+ - (deep) Migration safety assessed
38
+ - (mvp) Referential integrity matches domain invariants
39
+ - (mvp) Every finding categorized P0-P3 with specific table, column, and issue
40
+ - (mvp) Fix plan documented for all P0/P1 findings; fixes applied to database-schema.md and re-validated
41
+ - (mvp) Downstream readiness confirmed — no unresolved P0 or P1 findings remain before API contracts proceed
42
+ - (depth 4+) Multi-model findings synthesized with consensus/disagreement analysis
32
43
 
33
44
  ## Methodology Scaling
34
- - **deep**: Full multi-pass review targeting all schema failure modes.
45
+ - **deep**: Full multi-pass review targeting all schema failure modes. Multi-model
46
+ review dispatched to Codex and Gemini if available, with graceful fallback
47
+ to Claude-only enhanced review.
35
48
  - **mvp**: Entity coverage check only.
36
- - **custom:depth(1-5)**: Scale passes with depth.
49
+ - **custom:depth(1-5)**: Depth 1: entity coverage and normalization pass only. Depth 2: add index strategy and migration safety passes. Depth 3: add query performance and data integrity passes. Depth 4: add external model review. Depth 5: multi-model review with reconciliation.
37
50
 
38
51
  ## Mode Detection
39
- Re-review mode if previous review exists.
52
+ Re-review mode if previous review exists. If multi-model review artifacts exist
53
+ under docs/reviews/database/, preserve prior findings still valid.
54
+
55
+ ## Update Mode Specifics
56
+
57
+ - **Detect**: `docs/reviews/review-database.md` exists with tracking comment
58
+ - **Preserve**: Prior findings still valid, resolution decisions, multi-model review artifacts
59
+ - **Triggers**: Upstream artifact changed since last review (compare tracking comment dates)
60
+ - **Conflict resolution**: Previously resolved findings reappearing = regression; flag and re-evaluate
@@ -1,12 +1,14 @@
1
1
  ---
2
2
  name: review-ux
3
3
  description: Review UX specification for completeness and usability
4
+ summary: "Verifies every user story has a flow, accessibility requirements are met, all error states are documented, and the design system is used consistently."
4
5
  phase: "specification"
5
- order: 18
6
+ order: 860
6
7
  dependencies: [ux-spec]
7
- outputs: [docs/reviews/review-ux.md]
8
+ outputs: [docs/reviews/review-ux.md, docs/reviews/ux/review-summary.md, docs/reviews/ux/codex-review.json, docs/reviews/ux/gemini-review.json]
8
9
  conditional: "if-needed"
9
- knowledge-base: [review-methodology, review-ux-spec]
10
+ reads: [api-contracts]
11
+ knowledge-base: [review-methodology, review-ux-specification, multi-model-review-dispatch, review-step-template]
10
12
  ---
11
13
 
12
14
  ## Purpose
@@ -14,25 +16,45 @@ Review UX specification targeting UX-specific failure modes: user journey gaps,
14
16
  accessibility issues, incomplete interaction states, design system inconsistencies,
15
17
  and missing error states.
16
18
 
19
+ At depth 4+, dispatches to external AI models (Codex, Gemini) for
20
+ independent review validation.
21
+
17
22
  ## Inputs
18
23
  - docs/ux-spec.md (required) — spec to review
19
- - docs/prd.md (required) — for journey coverage
24
+ - docs/plan.md (required) — for journey coverage
20
25
  - docs/api-contracts.md (optional) — for data shape alignment
21
26
 
22
27
  ## Expected Outputs
23
28
  - docs/reviews/review-ux.md — findings and resolution log
24
29
  - docs/ux-spec.md — updated with fixes
30
+ - docs/reviews/ux/review-summary.md (depth 4+) — multi-model review synthesis
31
+ - docs/reviews/ux/codex-review.json (depth 4+, if available) — raw Codex findings
32
+ - docs/reviews/ux/gemini-review.json (depth 4+, if available) — raw Gemini findings
25
33
 
26
34
  ## Quality Criteria
27
- - User journey coverage verified against PRD
28
- - Accessibility compliance checked
29
- - All interaction states covered
30
- - Design system consistency verified
31
- - Error states present for all failure-capable actions
35
+ - (mvp) User journey coverage verified against PRD
36
+ - (mvp) Accessibility verified against WCAG level specified in ux-spec
37
+ - (deep) Every user action has at minimum: loading, success, and error states documented
38
+ - (deep) Design system consistency verified
39
+ - (deep) Error states present for all failure-capable actions
40
+ - (mvp) Every finding categorized P0-P3 with specific flow, screen, and issue
41
+ - (mvp) Fix plan documented for all P0/P1 findings; fixes applied to ux-spec.md and re-validated
42
+ - (mvp) Downstream readiness confirmed — no unresolved P0 or P1 findings remain before quality phase proceeds
43
+ - (depth 4+) Multi-model findings synthesized with consensus/disagreement analysis
32
44
 
33
45
  ## Methodology Scaling
34
- - **deep**: Full multi-pass review. **mvp**: Journey coverage only.
35
- - **custom:depth(1-5)**: Scale passes with depth.
46
+ - **deep**: Full multi-pass review. Multi-model review dispatched to Codex and
47
+ Gemini if available, with graceful fallback to Claude-only enhanced review.
48
+ - **mvp**: Journey coverage only.
49
+ - **custom:depth(1-5)**: Depth 1: flow completeness and accessibility pass only. Depth 2: add responsive design and error state passes. Depth 3: add interaction patterns and platform consistency passes. Depth 4: add external model UX review. Depth 5: multi-model review with reconciliation.
36
50
 
37
51
  ## Mode Detection
38
- Re-review mode if previous review exists.
52
+ Re-review mode if previous review exists. If multi-model review artifacts exist
53
+ under docs/reviews/ux/, preserve prior findings still valid.
54
+
55
+ ## Update Mode Specifics
56
+
57
+ - **Detect**: `docs/reviews/review-ux.md` exists with tracking comment
58
+ - **Preserve**: Prior findings still valid, resolution decisions, multi-model review artifacts
59
+ - **Triggers**: Upstream artifact changed since last review (compare tracking comment dates)
60
+ - **Conflict resolution**: Previously resolved findings reappearing = regression; flag and re-evaluate
@@ -1,35 +1,41 @@
1
1
  ---
2
2
  name: ux-spec
3
- description: Specify UI/UX design including design system
3
+ description: Specify user flows, interaction states, component architecture, accessibility, and responsive behavior
4
+ summary: "Maps out every user flow with all interaction states (loading, error, empty, populated), defines accessibility requirements (WCAG level, keyboard nav), and specifies responsive behavior at each breakpoint."
4
5
  phase: "specification"
5
- order: 17
6
+ order: 850
6
7
  dependencies: [review-architecture]
7
8
  outputs: [docs/ux-spec.md]
8
9
  conditional: "if-needed"
10
+ reads: [api-contracts, design-system]
9
11
  knowledge-base: [ux-specification]
10
12
  ---
11
13
 
12
14
  ## Purpose
13
- Define the user experience specification: user flows, wireframes, component
14
- hierarchy, interaction patterns, and design system (tokens, components, patterns).
15
- This is the visual and interaction blueprint for the frontend.
15
+ Define the user experience specification: user flows, interaction state machines,
16
+ component architecture (hierarchy and data flow), accessibility requirements, and
17
+ responsive behavior. This is the interaction and behavior blueprint for the frontend.
18
+ Visual tokens and component appearance are defined in `docs/design-system.md` — this
19
+ step consumes those tokens, it does not redefine them.
16
20
 
17
21
  ## Inputs
18
- - docs/prd.md (required) — user requirements and personas
22
+ - docs/plan.md (required) — user requirements and personas
19
23
  - docs/system-architecture.md (required) — frontend architecture
20
24
  - docs/api-contracts.md (optional) — data shapes for UI components
21
25
  - docs/user-stories.md (required) — user journeys driving flow design
26
+ - docs/design-system.md (optional) — design tokens and component visual specs to reference
22
27
 
23
28
  ## Expected Outputs
24
29
  - docs/ux-spec.md — UX specification with flows, components, design system
25
30
 
26
31
  ## Quality Criteria
27
- - Every PRD user journey has a corresponding flow
28
- - Component hierarchy covers all UI states (loading, error, empty, populated)
29
- - Design system defines tokens (colors, spacing, typography) and base components
30
- - Accessibility requirements documented (WCAG level, keyboard nav, screen readers)
31
- - Responsive breakpoints defined with behavior per breakpoint
32
- - Error states documented for every user action that can fail
32
+ - (mvp) Every PRD user journey has a corresponding flow with all states documented
33
+ - (mvp) Component hierarchy covers all UI states (loading, error, empty, populated)
34
+ - References design tokens from docs/design-system.md (does not redefine them)
35
+ - (deep) Accessibility requirements documented (WCAG level, keyboard nav, screen readers)
36
+ - (deep) Responsive breakpoints defined with layout behavior per breakpoint
37
+ - (mvp) Error states documented for every user action that can fail
38
+ - (deep) All documented user flows verified at responsive breakpoints (mobile, tablet, desktop) with behavior differences noted
33
39
 
34
40
  ## Methodology Scaling
35
41
  - **deep**: Full UX specification. Detailed wireframes described in prose.
@@ -40,4 +46,20 @@ This is the visual and interaction blueprint for the frontend.
40
46
  system. Depth 4-5: full specification with accessibility.
41
47
 
42
48
  ## Mode Detection
43
- Update mode if spec exists.
49
+ Check for docs/ux-spec.md. If it exists, operate in update mode: read existing
50
+ flows and component hierarchy, diff against updated user stories and system
51
+ architecture. Preserve existing interaction patterns, state machines, and
52
+ component data flow definitions. Add new flows for new user stories or features.
53
+ Update component hierarchy if architecture changed frontend structure. Never
54
+ remove documented accessibility requirements.
55
+
56
+ ## Update Mode Specifics
57
+ - **Detect prior artifact**: docs/ux-spec.md exists
58
+ - **Preserve**: existing user flows, interaction state machines, component
59
+ hierarchy, accessibility requirements, responsive breakpoint definitions
60
+ - **Triggers for update**: user stories added or changed, architecture changed
61
+ frontend components, design system tokens updated, API contracts changed
62
+ data shapes available to UI
63
+ - **Conflict resolution**: if a user story was rewritten, update its flow
64
+ in-place rather than creating a duplicate; reconcile component hierarchy
65
+ changes with existing state machine definitions
@@ -1,12 +1,13 @@
1
1
  ---
2
2
  name: critical-path-walkthrough
3
3
  description: Walk critical user journeys end-to-end across all specs
4
+ summary: "Walks the most important user journeys end-to-end across every spec layer — PRD to stories to UX to API to database to tasks — and flags any broken handoffs or missing layers."
4
5
  phase: "validation"
5
- order: 30
6
- dependencies: [review-tasks, review-security]
7
- outputs: [docs/validation/critical-path-walkthrough.md]
6
+ order: 1340
7
+ dependencies: [implementation-plan-review, review-security]
8
+ outputs: [docs/validation/critical-path-walkthrough.md, docs/validation/critical-path-walkthrough/review-summary.md, docs/validation/critical-path-walkthrough/codex-review.json, docs/validation/critical-path-walkthrough/gemini-review.json]
8
9
  conditional: null
9
- knowledge-base: [critical-path-analysis]
10
+ knowledge-base: [critical-path-analysis, multi-model-review-dispatch]
10
11
  ---
11
12
 
12
13
  ## Purpose
@@ -16,22 +17,55 @@ architecture components, database operations, and implementation tasks.
16
17
  Use story acceptance criteria as the definition of "correct behavior" when
17
18
  verifying completeness and consistency at every layer.
18
19
 
20
+ At depth 4+, dispatches to external AI models (Codex, Gemini) for
21
+ independent journey walkthroughs — different models catch different
22
+ spec gaps along the critical path.
23
+
19
24
  ## Inputs
20
- - All phase output artifacts (docs/prd.md, docs/domain-models/, docs/adrs/,
25
+ - All phase output artifacts (docs/plan.md, docs/domain-models/, docs/adrs/,
21
26
  docs/system-architecture.md, etc.)
22
27
 
23
28
  ## Expected Outputs
24
29
  - docs/validation/critical-path-walkthrough.md — findings report
30
+ - docs/validation/critical-path-walkthrough/review-summary.md (depth 4+) — multi-model validation synthesis
31
+ - docs/validation/critical-path-walkthrough/codex-review.json (depth 4+, if available) — raw Codex findings
32
+ - docs/validation/critical-path-walkthrough/gemini-review.json (depth 4+, if available) — raw Gemini findings
25
33
 
26
34
  ## Quality Criteria
27
- - Analysis is comprehensive (not superficial)
28
- - Findings are actionable (specific file, section, and issue)
29
- - Severity categorization (P0-P3)
35
+ - (mvp) Top critical user journeys (all Must-have epics, minimum 3) traced end-to-end
36
+ - (deep) Every journey verified at each layer: PRD → Story → UX → API → Architecture → DB → Task
37
+ - (deep) Each critical path verified against story acceptance criteria for behavioral correctness
38
+ - Missing layers or broken handoffs documented with specific gap description
39
+ - Findings categorized P0-P3 with specific file, section, and issue for each
40
+ - (depth 4+) Multi-model findings synthesized with consensus/disagreement analysis
41
+
42
+ ## Finding Disposition
43
+ - **P0 (blocking)**: Must be resolved before proceeding to implementation. Create
44
+ fix tasks and re-run affected upstream steps.
45
+ - **P1 (critical)**: Should be resolved; proceeding requires explicit risk acceptance
46
+ documented in an ADR. Flag to project lead.
47
+ - **P2 (medium)**: Document in implementation plan as tech debt. May defer to
48
+ post-launch with tracking issue.
49
+ - **P3 (minor)**: Log for future improvement. No action required before implementation.
50
+
51
+ Findings are reported in the validation output file with severity, affected artifact,
52
+ and recommended resolution. P0/P1 findings block the implementation-plan step from
53
+ proceeding without acknowledgment.
30
54
 
31
55
  ## Methodology Scaling
32
- - **deep**: Exhaustive analysis with all sub-checks.
56
+ - **deep**: Exhaustive analysis with all sub-checks. Multi-model validation
57
+ dispatched to Codex and Gemini if available, with graceful fallback to
58
+ Claude-only enhanced validation.
33
59
  - **mvp**: High-level scan for blocking issues only.
34
- - **custom:depth(1-5)**: Scale thoroughness with depth.
60
+ - **custom:depth(1-5)**: Depth 1: identify critical path and verify task ordering. Depth 2: add dependency bottleneck analysis. Depth 3: full walkthrough simulating agent execution of critical path tasks. Depth 4: add external model simulation. Depth 5: multi-model walkthrough with divergence analysis.
35
61
 
36
62
  ## Mode Detection
37
- Not applicable — validation always runs fresh against current artifacts.
63
+ Not applicable — validation always runs fresh against current artifacts. If
64
+ multi-model artifacts exist under docs/validation/critical-path-walkthrough/,
65
+ they are regenerated each run.
66
+
67
+ ## Update Mode Specifics
68
+ - **Detect**: `docs/validation/critical-path-walkthrough/` directory exists with prior multi-model artifacts
69
+ - **Preserve**: Prior multi-model artifacts are regenerated each run (not preserved). However, if prior findings were resolved and documented, reference the resolution log to distinguish regressions from known-resolved issues.
70
+ - **Triggers**: Any upstream artifact change triggers fresh validation
71
+ - **Conflict resolution**: If a previously-resolved finding reappears, flag as regression rather than new finding
@@ -1,12 +1,13 @@
1
1
  ---
2
2
  name: cross-phase-consistency
3
3
  description: Audit naming, assumptions, data flows, interface contracts across all phases
4
+ summary: "Traces every named concept (entities, fields, API endpoints) across all documents and flags any naming drift, terminology mismatches, or data shape inconsistencies."
4
5
  phase: "validation"
5
- order: 27
6
- dependencies: [review-tasks, review-security]
7
- outputs: [docs/validation/cross-phase-consistency.md]
6
+ order: 1310
7
+ dependencies: [implementation-plan-review, review-security]
8
+ outputs: [docs/validation/cross-phase-consistency.md, docs/validation/cross-phase-consistency/review-summary.md, docs/validation/cross-phase-consistency/codex-review.json, docs/validation/cross-phase-consistency/gemini-review.json]
8
9
  conditional: null
9
- knowledge-base: [cross-phase-consistency]
10
+ knowledge-base: [cross-phase-consistency, multi-model-review-dispatch]
10
11
  ---
11
12
 
12
13
  ## Purpose
@@ -14,22 +15,55 @@ Audit naming, assumptions, data flows, interface contracts across all phases.
14
15
  Ensure consistent terminology, compatible assumptions, and aligned interfaces
15
16
  between every pair of phase artifacts.
16
17
 
18
+ At depth 4+, dispatches to external AI models (Codex, Gemini) for
19
+ independent consistency validation — different models catch different
20
+ drift patterns.
21
+
17
22
  ## Inputs
18
- - All phase output artifacts (docs/prd.md, docs/domain-models/, docs/adrs/,
23
+ - All phase output artifacts (docs/plan.md, docs/domain-models/, docs/adrs/,
19
24
  docs/system-architecture.md, etc.)
20
25
 
21
26
  ## Expected Outputs
22
27
  - docs/validation/cross-phase-consistency.md — findings report
28
+ - docs/validation/cross-phase-consistency/review-summary.md (depth 4+) — multi-model validation synthesis
29
+ - docs/validation/cross-phase-consistency/codex-review.json (depth 4+, if available) — raw Codex findings
30
+ - docs/validation/cross-phase-consistency/gemini-review.json (depth 4+, if available) — raw Gemini findings
23
31
 
24
32
  ## Quality Criteria
25
- - Analysis is comprehensive (not superficial)
26
- - Findings are actionable (specific file, section, and issue)
27
- - Severity categorization (P0-P3)
33
+ - (mvp) Entity names are consistent across domain models, database schema, and API contracts (zero mismatches)
34
+ - (mvp) Technology references match `docs/tech-stack.md` in all documents
35
+ - (deep) Data flow descriptions in architecture match API endpoint definitions
36
+ - (deep) Terminology is consistent (same concept never uses two different names)
37
+ - Findings categorized P0-P3 with specific file, section, and issue for each
38
+ - (depth 4+) Multi-model findings synthesized with consensus/disagreement analysis
39
+
40
+ ## Finding Disposition
41
+ - **P0 (blocking)**: Must be resolved before proceeding to implementation. Create
42
+ fix tasks and re-run affected upstream steps.
43
+ - **P1 (critical)**: Should be resolved; proceeding requires explicit risk acceptance
44
+ documented in an ADR. Flag to project lead.
45
+ - **P2 (medium)**: Document in implementation plan as tech debt. May defer to
46
+ post-launch with tracking issue.
47
+ - **P3 (minor)**: Log for future improvement. No action required before implementation.
48
+
49
+ Findings are reported in the validation output file with severity, affected artifact,
50
+ and recommended resolution. P0/P1 findings block the implementation-plan step from
51
+ proceeding without acknowledgment.
28
52
 
29
53
  ## Methodology Scaling
30
- - **deep**: Exhaustive analysis with all sub-checks.
54
+ - **deep**: Exhaustive analysis with all sub-checks. Multi-model validation
55
+ dispatched to Codex and Gemini if available, with graceful fallback to
56
+ Claude-only enhanced validation.
31
57
  - **mvp**: High-level scan for blocking issues only.
32
- - **custom:depth(1-5)**: Scale thoroughness with depth.
58
+ - **custom:depth(1-5)**: Depth 1: entity name check across PRD, user stories, and domain models. Depth 2: add tech stack reference consistency. Depth 3: full terminology audit across all documents with naming collision detection. Depth 4: add external model cross-check. Depth 5: multi-model reconciliation of consistency findings.
33
59
 
34
60
  ## Mode Detection
35
- Not applicable — validation always runs fresh against current artifacts.
61
+ Not applicable — validation always runs fresh against current artifacts. If
62
+ multi-model artifacts exist under docs/validation/cross-phase-consistency/,
63
+ they are regenerated each run.
64
+
65
+ ## Update Mode Specifics
66
+ - **Detect**: `docs/validation/cross-phase-consistency/` directory exists with prior multi-model artifacts
67
+ - **Preserve**: Prior multi-model artifacts are regenerated each run (not preserved). However, if prior findings were resolved and documented, reference the resolution log to distinguish regressions from known-resolved issues.
68
+ - **Triggers**: Any upstream artifact change triggers fresh validation
69
+ - **Conflict resolution**: If a previously-resolved finding reappears, flag as regression rather than new finding
@@ -1,12 +1,13 @@
1
1
  ---
2
2
  name: decision-completeness
3
3
  description: Verify all decisions are recorded, justified, non-contradictory
4
+ summary: "Checks that every technology choice and architectural pattern has a recorded decision with rationale, and that no two decisions contradict each other."
4
5
  phase: "validation"
5
- order: 29
6
- dependencies: [review-tasks, review-security]
7
- outputs: [docs/validation/decision-completeness.md]
6
+ order: 1330
7
+ dependencies: [implementation-plan-review, review-security]
8
+ outputs: [docs/validation/decision-completeness.md, docs/validation/decision-completeness/review-summary.md, docs/validation/decision-completeness/codex-review.json, docs/validation/decision-completeness/gemini-review.json]
8
9
  conditional: null
9
- knowledge-base: [decision-completeness]
10
+ knowledge-base: [decision-completeness, multi-model-review-dispatch]
10
11
  ---
11
12
 
12
13
  ## Purpose
@@ -15,22 +16,55 @@ significant architectural and technology decision has a corresponding ADR,
15
16
  that no two ADRs contradict each other, and that all decisions have clear
16
17
  rationale.
17
18
 
19
+ At depth 4+, dispatches to external AI models (Codex, Gemini) for
20
+ independent decision audit — different models surface different implicit
21
+ decisions.
22
+
18
23
  ## Inputs
19
- - All phase output artifacts (docs/prd.md, docs/domain-models/, docs/adrs/,
24
+ - All phase output artifacts (docs/plan.md, docs/domain-models/, docs/adrs/,
20
25
  docs/system-architecture.md, etc.)
21
26
 
22
27
  ## Expected Outputs
23
28
  - docs/validation/decision-completeness.md — findings report
29
+ - docs/validation/decision-completeness/review-summary.md (depth 4+) — multi-model validation synthesis
30
+ - docs/validation/decision-completeness/codex-review.json (depth 4+, if available) — raw Codex findings
31
+ - docs/validation/decision-completeness/gemini-review.json (depth 4+, if available) — raw Gemini findings
24
32
 
25
33
  ## Quality Criteria
26
- - Analysis is comprehensive (not superficial)
27
- - Findings are actionable (specific file, section, and issue)
28
- - Severity categorization (P0-P3)
34
+ - (mvp) Every technology choice in `docs/tech-stack.md` has a corresponding ADR
35
+ - (mvp) No two ADRs contradict each other
36
+ - (deep) Every ADR has alternatives-considered section with pros/cons
37
+ - (deep) Every ADR referenced in `docs/system-architecture.md` exists in `docs/adrs/`
38
+ - Findings categorized P0-P3 with specific file, section, and issue for each
39
+ - (depth 4+) Multi-model findings synthesized with consensus/disagreement analysis
40
+
41
+ ## Finding Disposition
42
+ - **P0 (blocking)**: Must be resolved before proceeding to implementation. Create
43
+ fix tasks and re-run affected upstream steps.
44
+ - **P1 (critical)**: Should be resolved; proceeding requires explicit risk acceptance
45
+ documented in an ADR. Flag to project lead.
46
+ - **P2 (medium)**: Document in implementation plan as tech debt. May defer to
47
+ post-launch with tracking issue.
48
+ - **P3 (minor)**: Log for future improvement. No action required before implementation.
49
+
50
+ Findings are reported in the validation output file with severity, affected artifact,
51
+ and recommended resolution. P0/P1 findings block the implementation-plan step from
52
+ proceeding without acknowledgment.
29
53
 
30
54
  ## Methodology Scaling
31
- - **deep**: Exhaustive analysis with all sub-checks.
55
+ - **deep**: Exhaustive analysis with all sub-checks. Multi-model validation
56
+ dispatched to Codex and Gemini if available, with graceful fallback to
57
+ Claude-only enhanced validation.
32
58
  - **mvp**: High-level scan for blocking issues only.
33
- - **custom:depth(1-5)**: Scale thoroughness with depth.
59
+ - **custom:depth(1-5)**: Depth 1: verify each major tech choice has an ADR. Depth 2: add alternatives-considered check. Depth 3: full ADR completeness audit (rationale, consequences, status). Depth 4: add external model review of decision quality. Depth 5: multi-model reconciliation of decision coverage.
34
60
 
35
61
  ## Mode Detection
36
- Not applicable — validation always runs fresh against current artifacts.
62
+ Not applicable — validation always runs fresh against current artifacts. If
63
+ multi-model artifacts exist under docs/validation/decision-completeness/,
64
+ they are regenerated each run.
65
+
66
+ ## Update Mode Specifics
67
+ - **Detect**: `docs/validation/decision-completeness/` directory exists with prior multi-model artifacts
68
+ - **Preserve**: Prior multi-model artifacts are regenerated each run (not preserved). However, if prior findings were resolved and documented, reference the resolution log to distinguish regressions from known-resolved issues.
69
+ - **Triggers**: Any upstream artifact change triggers fresh validation
70
+ - **Conflict resolution**: If a previously-resolved finding reappears, flag as regression rather than new finding
@@ -1,12 +1,13 @@
1
1
  ---
2
2
  name: dependency-graph-validation
3
3
  description: Verify task dependency graphs are acyclic, complete, correctly ordered
4
+ summary: "Verifies the task dependency graph has no cycles (which would deadlock agents), no orphaned tasks, and no chains deeper than three sequential dependencies."
4
5
  phase: "validation"
5
- order: 32
6
- dependencies: [review-tasks, review-security]
7
- outputs: [docs/validation/dependency-graph-validation.md]
6
+ order: 1360
7
+ dependencies: [implementation-plan-review, review-security]
8
+ outputs: [docs/validation/dependency-graph-validation.md, docs/validation/dependency-graph-validation/review-summary.md, docs/validation/dependency-graph-validation/codex-review.json, docs/validation/dependency-graph-validation/gemini-review.json]
8
9
  conditional: null
9
- knowledge-base: [dependency-validation]
10
+ knowledge-base: [dependency-validation, multi-model-review-dispatch]
10
11
  ---
11
12
 
12
13
  ## Purpose
@@ -15,22 +16,56 @@ Validate that the implementation task dependency graph forms a valid DAG,
15
16
  that all dependencies are satisfied before dependent tasks, and that no
16
17
  critical tasks are missing from the graph.
17
18
 
19
+ At depth 4+, dispatches to external AI models (Codex, Gemini) for
20
+ independent graph validation — different models catch different ordering
21
+ and completeness issues.
22
+
18
23
  ## Inputs
19
- - All phase output artifacts (docs/prd.md, docs/domain-models/, docs/adrs/,
24
+ - All phase output artifacts (docs/plan.md, docs/domain-models/, docs/adrs/,
20
25
  docs/system-architecture.md, etc.)
21
26
 
22
27
  ## Expected Outputs
23
28
  - docs/validation/dependency-graph-validation.md — findings report
29
+ - docs/validation/dependency-graph-validation/review-summary.md (depth 4+) — multi-model validation synthesis
30
+ - docs/validation/dependency-graph-validation/codex-review.json (depth 4+, if available) — raw Codex findings
31
+ - docs/validation/dependency-graph-validation/gemini-review.json (depth 4+, if available) — raw Gemini findings
24
32
 
25
33
  ## Quality Criteria
26
- - Analysis is comprehensive (not superficial)
27
- - Findings are actionable (specific file, section, and issue)
28
- - Severity categorization (P0-P3)
34
+ - (mvp) Task dependency graph verified as acyclic (no circular dependencies)
35
+ - (mvp) Every task with dependencies has all dependencies present in the graph
36
+ - (deep) Critical path identified and total estimated duration documented
37
+ - (deep) No task is blocked by more than 3 sequential dependencies (flag deep chains)
38
+ - (deep) Wave assignments are consistent with dependency ordering
39
+ - Findings categorized P0-P3 with specific file, section, and issue for each
40
+ - (depth 4+) Multi-model findings synthesized with consensus/disagreement analysis
41
+
42
+ ## Finding Disposition
43
+ - **P0 (blocking)**: Must be resolved before proceeding to implementation. Create
44
+ fix tasks and re-run affected upstream steps.
45
+ - **P1 (critical)**: Should be resolved; proceeding requires explicit risk acceptance
46
+ documented in an ADR. Flag to project lead.
47
+ - **P2 (medium)**: Document in implementation plan as tech debt. May defer to
48
+ post-launch with tracking issue.
49
+ - **P3 (minor)**: Log for future improvement. No action required before implementation.
50
+
51
+ Findings are reported in the validation output file with severity, affected artifact,
52
+ and recommended resolution. P0/P1 findings block the implementation-plan step from
53
+ proceeding without acknowledgment.
29
54
 
30
55
  ## Methodology Scaling
31
- - **deep**: Exhaustive analysis with all sub-checks.
56
+ - **deep**: Exhaustive analysis with all sub-checks. Multi-model validation
57
+ dispatched to Codex and Gemini if available, with graceful fallback to
58
+ Claude-only enhanced validation.
32
59
  - **mvp**: High-level scan for blocking issues only.
33
- - **custom:depth(1-5)**: Scale thoroughness with depth.
60
+ - **custom:depth(1-5)**: Depth 1: cycle detection and basic ordering check. Depth 2: add transitive dependency completeness. Depth 3: full DAG validation with critical path identification and parallelization opportunities. Depth 4: add external model review. Depth 5: multi-model validation with optimization recommendations.
34
61
 
35
62
  ## Mode Detection
36
- Not applicable — validation always runs fresh against current artifacts.
63
+ Not applicable — validation always runs fresh against current artifacts. If
64
+ multi-model artifacts exist under docs/validation/dependency-graph-validation/,
65
+ they are regenerated each run.
66
+
67
+ ## Update Mode Specifics
68
+ - **Detect**: `docs/validation/dependency-graph-validation/` directory exists with prior multi-model artifacts
69
+ - **Preserve**: Prior multi-model artifacts are regenerated each run (not preserved). However, if prior findings were resolved and documented, reference the resolution log to distinguish regressions from known-resolved issues.
70
+ - **Triggers**: Any upstream artifact change triggers fresh validation
71
+ - **Conflict resolution**: If a previously-resolved finding reappears, flag as regression rather than new finding