maestro-flow 0.5.41 → 0.5.43

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 (363) hide show
  1. package/.agents/skills/domain-add/SKILL.md +3 -0
  2. package/.agents/skills/learn-decompose/SKILL.md +7 -4
  3. package/.agents/skills/learn-follow/SKILL.md +4 -2
  4. package/.agents/skills/learn-investigate/SKILL.md +8 -6
  5. package/.agents/skills/learn-second-opinion/SKILL.md +6 -3
  6. package/.agents/skills/maestro/SKILL.md +1 -1
  7. package/.agents/skills/maestro-amend/SKILL.md +1 -1
  8. package/.agents/skills/maestro-analyze/SKILL.md +1 -43
  9. package/.agents/skills/maestro-blueprint/SKILL.md +1 -23
  10. package/.agents/skills/maestro-brainstorm/SKILL.md +8 -25
  11. package/.agents/skills/maestro-collab/SKILL.md +6 -2
  12. package/.agents/skills/maestro-companion/SKILL.md +4 -1
  13. package/.agents/skills/maestro-composer/SKILL.md +4 -2
  14. package/.agents/skills/maestro-execute/SKILL.md +27 -9
  15. package/.agents/skills/maestro-fork/SKILL.md +4 -3
  16. package/.agents/skills/maestro-grill/SKILL.md +1 -17
  17. package/.agents/skills/maestro-guard/SKILL.md +2 -2
  18. package/.agents/skills/maestro-impeccable/SKILL.md +2 -1
  19. package/.agents/skills/maestro-init/SKILL.md +1 -1
  20. package/.agents/skills/maestro-merge/SKILL.md +12 -1
  21. package/.agents/skills/maestro-milestone-audit/SKILL.md +1 -15
  22. package/.agents/skills/maestro-milestone-complete/SKILL.md +8 -3
  23. package/.agents/skills/maestro-milestone-release/SKILL.md +8 -4
  24. package/.agents/skills/maestro-overlay/SKILL.md +9 -0
  25. package/.agents/skills/maestro-plan/SKILL.md +6 -62
  26. package/.agents/skills/maestro-player/SKILL.md +2 -2
  27. package/.agents/skills/maestro-quick/SKILL.md +5 -3
  28. package/.agents/skills/maestro-ralph/SKILL.md +8 -8
  29. package/.agents/skills/maestro-ralph-cli/SKILL.md +665 -0
  30. package/.agents/skills/maestro-ralph-cli-execute/SKILL.md +239 -0
  31. package/.agents/skills/maestro-ralph-execute/SKILL.md +127 -11
  32. package/.agents/skills/maestro-roadmap/SKILL.md +1 -9
  33. package/.agents/skills/maestro-swarm-workflow/SKILL.md +16 -14
  34. package/.agents/skills/maestro-tools-register/SKILL.md +16 -1
  35. package/.agents/skills/maestro-ui-codify/SKILL.md +11 -1
  36. package/.agents/skills/maestro-universal-workflow/SKILL.md +28 -5
  37. package/.agents/skills/maestro-update/SKILL.md +10 -7
  38. package/.agents/skills/manage-codebase-rebuild/SKILL.md +5 -1
  39. package/.agents/skills/manage-drift-realign/SKILL.md +6 -2
  40. package/.agents/skills/manage-harvest/SKILL.md +4 -1
  41. package/.agents/skills/manage-issue-discover/SKILL.md +1 -0
  42. package/.agents/skills/manage-kg-extractors/SKILL.md +5 -1
  43. package/.agents/skills/manage-knowhow-capture/SKILL.md +1 -0
  44. package/.agents/skills/manage-knowledge-audit/SKILL.md +3 -0
  45. package/.agents/skills/manage-wiki/SKILL.md +1 -0
  46. package/.agents/skills/odyssey-debug/SKILL.md +2 -1
  47. package/.agents/skills/odyssey-improve/SKILL.md +2 -2
  48. package/.agents/skills/odyssey-planex/SKILL.md +8 -7
  49. package/.agents/skills/odyssey-review-test-fix/SKILL.md +4 -1
  50. package/.agents/skills/odyssey-ui/SKILL.md +4 -4
  51. package/.agents/skills/quality-auto-test/SKILL.md +11 -1
  52. package/.agents/skills/quality-debug/SKILL.md +16 -2
  53. package/.agents/skills/quality-retrospective/SKILL.md +9 -1
  54. package/.agents/skills/quality-review/SKILL.md +8 -0
  55. package/.agents/skills/quality-sync/SKILL.md +2 -2
  56. package/.agents/skills/quality-test/SKILL.md +9 -1
  57. package/.agents/skills/security-audit/SKILL.md +14 -4
  58. package/.agents/skills/spec-add/SKILL.md +5 -2
  59. package/.agents/skills/spec-load/SKILL.md +1 -1
  60. package/.agents/skills/spec-remove/SKILL.md +1 -1
  61. package/.agents/skills/spec-setup/SKILL.md +3 -0
  62. package/.agents/skills/team-adversarial-swarm/workflows/wf-swarm-synthesize.js +248 -248
  63. package/.agents/skills/team-coordinate/specs/role-spec-template.md +197 -198
  64. package/.agents/skills/team-roadmap-dev/SKILL.md +164 -164
  65. package/.agents/skills/team-roadmap-dev/specs/team-config.json +1 -1
  66. package/.agents/skills/team-swarm/roles/analyst/role.md +172 -176
  67. package/.agy/skills/domain-add/SKILL.md +3 -0
  68. package/.agy/skills/learn-decompose/SKILL.md +7 -4
  69. package/.agy/skills/learn-follow/SKILL.md +4 -2
  70. package/.agy/skills/learn-investigate/SKILL.md +8 -6
  71. package/.agy/skills/learn-second-opinion/SKILL.md +6 -3
  72. package/.agy/skills/maestro/SKILL.md +1 -1
  73. package/.agy/skills/maestro-amend/SKILL.md +1 -1
  74. package/.agy/skills/maestro-analyze/SKILL.md +1 -43
  75. package/.agy/skills/maestro-blueprint/SKILL.md +1 -23
  76. package/.agy/skills/maestro-brainstorm/SKILL.md +8 -25
  77. package/.agy/skills/maestro-collab/SKILL.md +6 -2
  78. package/.agy/skills/maestro-companion/SKILL.md +4 -1
  79. package/.agy/skills/maestro-composer/SKILL.md +4 -2
  80. package/.agy/skills/maestro-execute/SKILL.md +27 -9
  81. package/.agy/skills/maestro-fork/SKILL.md +4 -3
  82. package/.agy/skills/maestro-grill/SKILL.md +1 -17
  83. package/.agy/skills/maestro-guard/SKILL.md +2 -2
  84. package/.agy/skills/maestro-impeccable/SKILL.md +2 -1
  85. package/.agy/skills/maestro-init/SKILL.md +1 -1
  86. package/.agy/skills/maestro-merge/SKILL.md +12 -1
  87. package/.agy/skills/maestro-milestone-audit/SKILL.md +1 -15
  88. package/.agy/skills/maestro-milestone-complete/SKILL.md +8 -3
  89. package/.agy/skills/maestro-milestone-release/SKILL.md +8 -4
  90. package/.agy/skills/maestro-overlay/SKILL.md +9 -0
  91. package/.agy/skills/maestro-plan/SKILL.md +6 -62
  92. package/.agy/skills/maestro-player/SKILL.md +2 -2
  93. package/.agy/skills/maestro-quick/SKILL.md +5 -3
  94. package/.agy/skills/maestro-ralph/SKILL.md +8 -8
  95. package/.agy/skills/maestro-ralph-cli/SKILL.md +661 -0
  96. package/.agy/skills/maestro-ralph-cli-execute/SKILL.md +235 -0
  97. package/.agy/skills/maestro-ralph-execute/SKILL.md +127 -11
  98. package/.agy/skills/maestro-roadmap/SKILL.md +1 -9
  99. package/.agy/skills/maestro-swarm-workflow/SKILL.md +16 -14
  100. package/.agy/skills/maestro-tools-register/SKILL.md +16 -1
  101. package/.agy/skills/maestro-ui-codify/SKILL.md +11 -1
  102. package/.agy/skills/maestro-universal-workflow/SKILL.md +28 -5
  103. package/.agy/skills/maestro-update/SKILL.md +10 -7
  104. package/.agy/skills/manage-codebase-rebuild/SKILL.md +5 -1
  105. package/.agy/skills/manage-drift-realign/SKILL.md +6 -2
  106. package/.agy/skills/manage-harvest/SKILL.md +4 -1
  107. package/.agy/skills/manage-issue-discover/SKILL.md +1 -0
  108. package/.agy/skills/manage-kg-extractors/SKILL.md +5 -1
  109. package/.agy/skills/manage-knowhow-capture/SKILL.md +1 -0
  110. package/.agy/skills/manage-knowledge-audit/SKILL.md +3 -0
  111. package/.agy/skills/manage-wiki/SKILL.md +1 -0
  112. package/.agy/skills/odyssey-debug/SKILL.md +2 -1
  113. package/.agy/skills/odyssey-improve/SKILL.md +2 -2
  114. package/.agy/skills/odyssey-planex/SKILL.md +8 -7
  115. package/.agy/skills/odyssey-review-test-fix/SKILL.md +4 -1
  116. package/.agy/skills/odyssey-ui/SKILL.md +4 -4
  117. package/.agy/skills/quality-auto-test/SKILL.md +11 -1
  118. package/.agy/skills/quality-debug/SKILL.md +16 -2
  119. package/.agy/skills/quality-retrospective/SKILL.md +9 -1
  120. package/.agy/skills/quality-review/SKILL.md +8 -0
  121. package/.agy/skills/quality-sync/SKILL.md +2 -2
  122. package/.agy/skills/quality-test/SKILL.md +9 -1
  123. package/.agy/skills/security-audit/SKILL.md +14 -4
  124. package/.agy/skills/spec-add/SKILL.md +5 -2
  125. package/.agy/skills/spec-load/SKILL.md +1 -1
  126. package/.agy/skills/spec-remove/SKILL.md +1 -1
  127. package/.agy/skills/spec-setup/SKILL.md +3 -0
  128. package/.agy/skills/team-adversarial-swarm/workflows/wf-swarm-synthesize.js +248 -248
  129. package/.agy/skills/team-coordinate/specs/role-spec-template.md +197 -198
  130. package/.agy/skills/team-roadmap-dev/SKILL.md +141 -153
  131. package/.agy/skills/team-roadmap-dev/specs/team-config.json +1 -1
  132. package/.agy/skills/team-swarm/roles/analyst/role.md +172 -176
  133. package/.claude/commands/domain-add.md +3 -0
  134. package/.claude/commands/learn-decompose.md +7 -4
  135. package/.claude/commands/learn-follow.md +4 -2
  136. package/.claude/commands/learn-investigate.md +8 -6
  137. package/.claude/commands/learn-second-opinion.md +6 -3
  138. package/.claude/commands/maestro-amend.md +1 -1
  139. package/.claude/commands/maestro-analyze.md +1 -43
  140. package/.claude/commands/maestro-blueprint.md +1 -23
  141. package/.claude/commands/maestro-brainstorm.md +8 -25
  142. package/.claude/commands/maestro-collab.md +6 -2
  143. package/.claude/commands/maestro-companion.md +4 -1
  144. package/.claude/commands/maestro-composer.md +4 -2
  145. package/.claude/commands/maestro-execute.md +27 -9
  146. package/.claude/commands/maestro-fork.md +4 -3
  147. package/.claude/commands/maestro-grill.md +1 -17
  148. package/.claude/commands/maestro-guard.md +2 -2
  149. package/.claude/commands/maestro-impeccable.md +2 -1
  150. package/.claude/commands/maestro-init.md +1 -1
  151. package/.claude/commands/maestro-merge.md +12 -1
  152. package/.claude/commands/maestro-milestone-audit.md +1 -15
  153. package/.claude/commands/maestro-milestone-complete.md +8 -3
  154. package/.claude/commands/maestro-milestone-release.md +8 -4
  155. package/.claude/commands/maestro-overlay.md +9 -0
  156. package/.claude/commands/maestro-plan.md +6 -62
  157. package/.claude/commands/maestro-player.md +2 -2
  158. package/.claude/commands/maestro-quick.md +5 -3
  159. package/.claude/commands/maestro-ralph-cli-execute.md +237 -0
  160. package/.claude/commands/maestro-ralph-cli.md +663 -0
  161. package/.claude/commands/maestro-ralph-execute.md +127 -11
  162. package/.claude/commands/maestro-ralph.md +8 -8
  163. package/.claude/commands/maestro-roadmap.md +1 -9
  164. package/.claude/commands/maestro-swarm-workflow.md +16 -14
  165. package/.claude/commands/maestro-tools-register.md +16 -1
  166. package/.claude/commands/maestro-ui-codify.md +11 -1
  167. package/.claude/commands/maestro-universal-workflow.md +28 -5
  168. package/.claude/commands/maestro-update.md +10 -7
  169. package/.claude/commands/maestro.md +1 -1
  170. package/.claude/commands/manage-codebase-rebuild.md +5 -1
  171. package/.claude/commands/manage-drift-realign.md +6 -2
  172. package/.claude/commands/manage-harvest.md +4 -1
  173. package/.claude/commands/manage-issue-discover.md +1 -0
  174. package/.claude/commands/manage-kg-extractors.md +5 -1
  175. package/.claude/commands/manage-knowhow-capture.md +1 -0
  176. package/.claude/commands/manage-knowledge-audit.md +3 -0
  177. package/.claude/commands/manage-wiki.md +1 -0
  178. package/.claude/commands/odyssey-debug.md +2 -1
  179. package/.claude/commands/odyssey-improve.md +2 -2
  180. package/.claude/commands/odyssey-planex.md +8 -7
  181. package/.claude/commands/odyssey-review-test-fix.md +4 -1
  182. package/.claude/commands/odyssey-ui.md +4 -4
  183. package/.claude/commands/quality-auto-test.md +11 -1
  184. package/.claude/commands/quality-debug.md +16 -2
  185. package/.claude/commands/quality-retrospective.md +9 -1
  186. package/.claude/commands/quality-review.md +8 -0
  187. package/.claude/commands/quality-sync.md +2 -2
  188. package/.claude/commands/quality-test.md +9 -1
  189. package/.claude/commands/security-audit.md +14 -4
  190. package/.claude/commands/spec-add.md +5 -2
  191. package/.claude/commands/spec-load.md +1 -1
  192. package/.claude/commands/spec-remove.md +1 -1
  193. package/.claude/commands/spec-setup.md +3 -0
  194. package/.claude/skills/team-adversarial-swarm/workflows/wf-swarm-synthesize.js +248 -248
  195. package/.claude/skills/team-coordinate/specs/role-spec-template.md +197 -198
  196. package/.claude/skills/team-roadmap-dev/SKILL.md +169 -169
  197. package/.claude/skills/team-roadmap-dev/specs/team-config.json +1 -1
  198. package/.claude/skills/team-swarm/roles/analyst/role.md +181 -185
  199. package/.codex/skills/codify-to-knowhow/SKILL.md +27 -15
  200. package/.codex/skills/domain-add/SKILL.md +5 -3
  201. package/.codex/skills/learn-decompose/SKILL.md +22 -4
  202. package/.codex/skills/learn-follow/SKILL.md +12 -6
  203. package/.codex/skills/learn-investigate/SKILL.md +11 -6
  204. package/.codex/skills/learn-retro/SKILL.md +12 -6
  205. package/.codex/skills/learn-second-opinion/SKILL.md +11 -3
  206. package/.codex/skills/maestro/SKILL.md +19 -13
  207. package/.codex/skills/maestro-amend/SKILL.md +10 -2
  208. package/.codex/skills/maestro-analyze/SKILL.md +7 -1
  209. package/.codex/skills/maestro-blueprint/SKILL.md +1 -1
  210. package/.codex/skills/maestro-brainstorm/SKILL.md +11 -8
  211. package/.codex/skills/maestro-collab/SKILL.md +5 -5
  212. package/.codex/skills/maestro-companion/SKILL.md +4 -1
  213. package/.codex/skills/maestro-composer/SKILL.md +6 -3
  214. package/.codex/skills/maestro-execute/SKILL.md +11 -8
  215. package/.codex/skills/maestro-fork/SKILL.md +4 -3
  216. package/.codex/skills/maestro-grill/SKILL.md +1 -1
  217. package/.codex/skills/maestro-guard/SKILL.md +1 -1
  218. package/.codex/skills/maestro-impeccable/SKILL.md +5 -5
  219. package/.codex/skills/maestro-init/SKILL.md +3 -2
  220. package/.codex/skills/maestro-milestone-audit/SKILL.md +21 -9
  221. package/.codex/skills/maestro-milestone-complete/SKILL.md +3 -3
  222. package/.codex/skills/maestro-milestone-release/SKILL.md +18 -1
  223. package/.codex/skills/maestro-next/SKILL.md +11 -10
  224. package/.codex/skills/maestro-overlay/SKILL.md +16 -6
  225. package/.codex/skills/maestro-player/SKILL.md +11 -5
  226. package/.codex/skills/maestro-quick/SKILL.md +2 -2
  227. package/.codex/skills/maestro-ralph/SKILL.md +44 -31
  228. package/.codex/skills/maestro-ralph-cli/SKILL.md +394 -0
  229. package/.codex/skills/maestro-ralph-cli-execute/SKILL.md +146 -0
  230. package/.codex/skills/maestro-ralph-execute/SKILL.md +105 -24
  231. package/.codex/skills/maestro-roadmap/SKILL.md +8 -2
  232. package/.codex/skills/maestro-tools-execute/SKILL.md +8 -4
  233. package/.codex/skills/maestro-tools-register/SKILL.md +10 -6
  234. package/.codex/skills/maestro-ui-codify/SKILL.md +14 -9
  235. package/.codex/skills/manage-codebase-rebuild/SKILL.md +36 -14
  236. package/.codex/skills/manage-codebase-refresh/SKILL.md +1 -1
  237. package/.codex/skills/manage-drift-realign/SKILL.md +15 -12
  238. package/.codex/skills/manage-harvest/SKILL.md +1 -1
  239. package/.codex/skills/manage-issue/SKILL.md +8 -4
  240. package/.codex/skills/manage-issue-discover/SKILL.md +15 -14
  241. package/.codex/skills/manage-knowhow/SKILL.md +3 -2
  242. package/.codex/skills/manage-knowhow-capture/SKILL.md +4 -3
  243. package/.codex/skills/manage-learn/SKILL.md +2 -2
  244. package/.codex/skills/odyssey-debug/SKILL.md +12 -7
  245. package/.codex/skills/odyssey-improve/SKILL.md +11 -6
  246. package/.codex/skills/odyssey-planex/SKILL.md +14 -8
  247. package/.codex/skills/odyssey-review-test-fix/SKILL.md +12 -7
  248. package/.codex/skills/odyssey-ui/SKILL.md +10 -5
  249. package/.codex/skills/quality-auto-test/SKILL.md +13 -5
  250. package/.codex/skills/quality-debug/SKILL.md +18 -11
  251. package/.codex/skills/quality-refactor/SKILL.md +4 -4
  252. package/.codex/skills/quality-retrospective/SKILL.md +5 -6
  253. package/.codex/skills/quality-review/SKILL.md +18 -11
  254. package/.codex/skills/quality-sync/SKILL.md +2 -2
  255. package/.codex/skills/quality-test/SKILL.md +7 -5
  256. package/.codex/skills/security-audit/SKILL.md +7 -5
  257. package/.codex/skills/spec-add/SKILL.md +9 -7
  258. package/.codex/skills/spec-load/SKILL.md +3 -2
  259. package/.codex/skills/spec-map/SKILL.md +10 -1
  260. package/.codex/skills/spec-remove/SKILL.md +3 -2
  261. package/.codex/skills/team-coordinate/SKILL.md +10 -4
  262. package/.codex/skills/team-lifecycle-v4/SKILL.md +33 -26
  263. package/.codex/skills/team-quality-assurance/SKILL.md +43 -0
  264. package/.codex/skills/team-review/SKILL.md +50 -6
  265. package/.codex/skills/team-tech-debt/SKILL.md +53 -7
  266. package/.codex/skills/team-testing/SKILL.md +50 -2
  267. package/.codex/skills/wiki-connect/SKILL.md +3 -1
  268. package/.codex/skills/wiki-digest/SKILL.md +6 -4
  269. package/dashboard/dist-server/dashboard/src/server/wiki/embedding.d.ts +16 -0
  270. package/dashboard/dist-server/dashboard/src/server/wiki/embedding.js +419 -44
  271. package/dashboard/dist-server/dashboard/src/server/wiki/embedding.js.map +1 -1
  272. package/dashboard/dist-server/dashboard/src/server/wiki/wiki-indexer.js +43 -5
  273. package/dashboard/dist-server/dashboard/src/server/wiki/wiki-indexer.js.map +1 -1
  274. package/dashboard/dist-server/src/commands/install-backend.js +31 -16
  275. package/dashboard/dist-server/src/commands/install-backend.js.map +1 -1
  276. package/dashboard/dist-server/src/core/component-defs.js +25 -0
  277. package/dashboard/dist-server/src/core/component-defs.js.map +1 -1
  278. package/dashboard/dist-server/src/graph/kg/db/types.d.ts +3 -0
  279. package/dashboard/dist-server/src/graph/kg/embedding/code-embedding.d.ts +46 -0
  280. package/dashboard/dist-server/src/graph/kg/embedding/code-embedding.js +329 -0
  281. package/dashboard/dist-server/src/graph/kg/embedding/code-embedding.js.map +1 -0
  282. package/dashboard/dist-server/src/graph/kg/embedding/index.d.ts +2 -0
  283. package/dashboard/dist-server/src/graph/kg/embedding/index.js +3 -0
  284. package/dashboard/dist-server/src/graph/kg/embedding/index.js.map +1 -0
  285. package/dashboard/dist-server/src/graph/kg/engine.d.ts +19 -1
  286. package/dashboard/dist-server/src/graph/kg/engine.js +71 -1
  287. package/dashboard/dist-server/src/graph/kg/engine.js.map +1 -1
  288. package/dashboard/dist-server/src/graph/kg/query/scoring.d.ts +5 -0
  289. package/dashboard/dist-server/src/graph/kg/query/scoring.js +85 -1
  290. package/dashboard/dist-server/src/graph/kg/query/scoring.js.map +1 -1
  291. package/dashboard/dist-server/src/graph/kg/query/search.d.ts +7 -0
  292. package/dashboard/dist-server/src/graph/kg/query/search.js +117 -1
  293. package/dashboard/dist-server/src/graph/kg/query/search.js.map +1 -1
  294. package/dashboard/dist-server/src/graph/kg/surface/mcp-tools.js +49 -0
  295. package/dashboard/dist-server/src/graph/kg/surface/mcp-tools.js.map +1 -1
  296. package/dashboard/dist-server/src/hooks/kg-sync-hook.js +3 -0
  297. package/dashboard/dist-server/src/hooks/kg-sync-hook.js.map +1 -1
  298. package/dashboard/dist-server/src/tools/spec-loader.js +7 -3
  299. package/dashboard/dist-server/src/tools/spec-loader.js.map +1 -1
  300. package/dist/src/commands/install-backend.d.ts.map +1 -1
  301. package/dist/src/commands/install-backend.js +31 -16
  302. package/dist/src/commands/install-backend.js.map +1 -1
  303. package/dist/src/core/component-defs.d.ts.map +1 -1
  304. package/dist/src/core/component-defs.js +25 -0
  305. package/dist/src/core/component-defs.js.map +1 -1
  306. package/dist/src/core/plugin-bridge.d.ts.map +1 -1
  307. package/dist/src/core/plugin-bridge.js +17 -0
  308. package/dist/src/core/plugin-bridge.js.map +1 -1
  309. package/dist/src/graph/kg/db/types.d.ts +3 -0
  310. package/dist/src/graph/kg/db/types.d.ts.map +1 -1
  311. package/dist/src/graph/kg/embedding/code-embedding.d.ts +47 -0
  312. package/dist/src/graph/kg/embedding/code-embedding.d.ts.map +1 -0
  313. package/dist/src/graph/kg/embedding/code-embedding.js +329 -0
  314. package/dist/src/graph/kg/embedding/code-embedding.js.map +1 -0
  315. package/dist/src/graph/kg/embedding/index.d.ts +3 -0
  316. package/dist/src/graph/kg/embedding/index.d.ts.map +1 -0
  317. package/dist/src/graph/kg/embedding/index.js +3 -0
  318. package/dist/src/graph/kg/embedding/index.js.map +1 -0
  319. package/dist/src/graph/kg/engine.d.ts +19 -1
  320. package/dist/src/graph/kg/engine.d.ts.map +1 -1
  321. package/dist/src/graph/kg/engine.js +71 -1
  322. package/dist/src/graph/kg/engine.js.map +1 -1
  323. package/dist/src/graph/kg/query/scoring.d.ts +5 -0
  324. package/dist/src/graph/kg/query/scoring.d.ts.map +1 -1
  325. package/dist/src/graph/kg/query/scoring.js +85 -1
  326. package/dist/src/graph/kg/query/scoring.js.map +1 -1
  327. package/dist/src/graph/kg/query/search.d.ts +7 -0
  328. package/dist/src/graph/kg/query/search.d.ts.map +1 -1
  329. package/dist/src/graph/kg/query/search.js +117 -1
  330. package/dist/src/graph/kg/query/search.js.map +1 -1
  331. package/dist/src/graph/kg/surface/mcp-tools.d.ts.map +1 -1
  332. package/dist/src/graph/kg/surface/mcp-tools.js +49 -0
  333. package/dist/src/graph/kg/surface/mcp-tools.js.map +1 -1
  334. package/dist/src/hooks/kg-sync-hook.d.ts.map +1 -1
  335. package/dist/src/hooks/kg-sync-hook.js +3 -0
  336. package/dist/src/hooks/kg-sync-hook.js.map +1 -1
  337. package/dist/src/tools/code-semantic-search.d.ts +10 -0
  338. package/dist/src/tools/code-semantic-search.d.ts.map +1 -0
  339. package/dist/src/tools/code-semantic-search.js +81 -0
  340. package/dist/src/tools/code-semantic-search.js.map +1 -0
  341. package/dist/src/tools/index.d.ts.map +1 -1
  342. package/dist/src/tools/index.js +4 -0
  343. package/dist/src/tools/index.js.map +1 -1
  344. package/dist/src/tools/spec-loader.d.ts.map +1 -1
  345. package/dist/src/tools/spec-loader.js +7 -3
  346. package/dist/src/tools/spec-loader.js.map +1 -1
  347. package/dist/src/tools/wiki-search.d.ts +13 -0
  348. package/dist/src/tools/wiki-search.d.ts.map +1 -0
  349. package/dist/src/tools/wiki-search.js +114 -0
  350. package/dist/src/tools/wiki-search.js.map +1 -0
  351. package/dist/src/utils/update-notices.js +23 -0
  352. package/dist/src/utils/update-notices.js.map +1 -1
  353. package/package.json +4 -1
  354. package/workflows/agy-instructions.md +147 -161
  355. package/workflows/claude-instructions.md +100 -48
  356. package/workflows/codex-instructions.md +147 -161
  357. package/workflows/execute.md +4 -3
  358. package/workflows/explore-usage.md +41 -81
  359. package/workflows/grill.md +11 -0
  360. package/workflows/milestone-audit.md +8 -0
  361. package/workflows/odyssey-base-codex.md +115 -116
  362. package/workflows/odyssey-base.md +89 -91
  363. package/workflows/plan.md +6 -0
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: learn-retro
3
3
  description: Retrospective of git activity and decision quality
4
- argument-hint: "[-y|--yes] [-c|--concurrency N] [--continue] \"[--lens git|decision|all] [--days N] [--author <name>] [--area <path>] [--phase N] [--compare]\""
4
+ argument-hint: "[--lens git|decision|all] [--days N] [--author <name>] [--area <path>] [--phase N] [--compare]"
5
5
  allowed-tools: spawn_agents_on_csv, Read, Write, Edit, Bash, Glob, Grep, request_user_input
6
6
  ---
7
7
 
@@ -42,7 +42,9 @@ $ARGUMENTS — lens selection and scope flags.
42
42
  **3a: Collect decisions** from wiki, specs, git log, phase context, .workflow/specs/learnings.md.
43
43
  **3b: Build decision registry** per decision (id, title, source, rationale, alternatives, evidence).
44
44
 
45
- **3c: Multi-perspective evaluation** via spawn_agents_on_csv (3 parallel agents; filter `wave==1 AND status=="pending"`):
45
+ **3c: Multi-perspective evaluation** — **Confirmation gate**: prompt user via `request_user_input` before spawning wave: "Spawn 3 perspective agents for decision evaluation? (y/n)". On `n`, skip to Phase 4 with decisions listed but unevaluated.
46
+
47
+ Via spawn_agents_on_csv (3 parallel agents; filter `wave==1 AND status=="pending"`):
46
48
 
47
49
  | id | perspective | focus |
48
50
  |----|------------|-------|
@@ -85,8 +87,11 @@ Do NOT write to tasks.csv, wave-*.csv, results.csv. Do NOT call spawn_agents_on_
85
87
  ### Phase 4: Unified Report
86
88
  Write `KNW-retro-{date}.md` + `KNW-retro-{date}.json` with metrics, sessions, hotspots, decision health, combined insights, recommended actions.
87
89
 
88
- ### Phase 5: Persist
89
- Append insights to `.workflow/specs/learnings.md` (source: "retro-git" or "retro-decision"). Display summary.
90
+ ### Phase 5: Persist (confirmation-gated)
91
+ **Confirmation gate**: prompt user via `request_user_input` — "Append retro insights to learnings.md? (y/n)"
92
+ - `y` → append insights to `.workflow/specs/learnings.md` (source: "retro-git" or "retro-decision")
93
+ - `n` → skip append, display summary only
94
+ Display summary.
90
95
 
91
96
  **Next steps:** `$learn-follow <path>`, `$quality-auto-test <area>`, `$learn-investigate <question>`
92
97
  </execution>
@@ -105,7 +110,8 @@ Append insights to `.workflow/specs/learnings.md` (source: "retro-git" or "retro
105
110
  <success_criteria>
106
111
  - [ ] Lens selection parsed correctly
107
112
  - [ ] Git lens: metrics computed, sessions detected, hotspots identified
108
- - [ ] Decision lens: decisions collected, 3 agents spawned in parallel, lifecycle classified
113
+ - [ ] Decision lens: decisions collected, user confirmed before wave spawn, 3 agents spawned in parallel (if confirmed), lifecycle classified
109
114
  - [ ] Unified report written to KNW-retro-{date}.md + KNW-retro-{date}.json
110
- - [ ] .workflow/specs/learnings.md appended with insights (stable INS-ids)
115
+ - [ ] User confirmation obtained before learnings append
116
+ - [ ] .workflow/specs/learnings.md appended with insights (stable INS-ids, if confirmed)
111
117
  </success_criteria>
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: learn-second-opinion
3
3
  description: Get alternative perspectives -- review, challenge, or consult
4
- argument-hint: "[-y|--yes] [-c|--concurrency 3] [--continue] \"<target> [--mode review|challenge|consult]\""
4
+ argument-hint: "<target> [--mode review|challenge|consult]"
5
5
  allowed-tools: spawn_agents_on_csv, Read, Write, Edit, Bash, Glob, Grep, request_user_input
6
6
  ---
7
7
 
@@ -47,7 +47,14 @@ Resolve target to content. Load specs, `maestro search`, prior lessons for conte
47
47
  | 3 | strategist | Scalability, extensibility, architecture alignment | coupling, cohesion |
48
48
  | 4 | synthesis | Merge verdicts → agreements, disagreements, top 3 recommendations | combined verdict |
49
49
 
50
- Wave 1: 3 persona agents in parallel (filter `wave==1 AND status=="pending"`). Wave 2: synthesis agent with wave 1 findings as prev_context.
50
+ Wave 1: 3 persona agents in parallel (filter `wave==1 AND status=="pending"`).
51
+
52
+ **Failed persona handling** (between Wave 1 and Wave 2):
53
+ - Exclude rows where `result_status == "failed"` from synthesis input
54
+ - If any persona failed, inject `gap_note` into synthesis prev_context listing missing perspectives
55
+ - If fewer than 2 personas completed, mark overall synthesis as `evidence_incomplete: true` in output
56
+
57
+ Wave 2: synthesis agent with completed wave 1 findings as prev_context (failed rows excluded).
51
58
 
52
59
  **output_schema** (both waves):
53
60
 
@@ -103,13 +110,14 @@ Interactive loop via request_user_input. Agent studies target, answers questions
103
110
  |------|----------|-----------|----------|
104
111
  | E001 | error | Target not resolvable | Verify path/ID |
105
112
  | E002 | error | Unknown --mode value | Use: review, challenge, consult |
106
- | W001 | warning | Persona agent failed — partial perspectives | Proceed with available agents |
113
+ | W001 | warning | Persona agent failed — partial perspectives | Exclude failed rows, inject gap_note, mark evidence_incomplete if <2 completed |
107
114
  | W003 | warning | Git diff empty for HEAD/staged | Use file path instead |
108
115
  </error_codes>
109
116
 
110
117
  <success_criteria>
111
118
  - [ ] Target resolved and context loaded
112
119
  - [ ] Mode executed: review (3 parallel agents), challenge (adversarial), or consult (interactive)
120
+ - [ ] Failed persona rows excluded from synthesis input; gap_note injected if any failed; evidence_incomplete marked if <2 completed
113
121
  - [ ] Synthesis produced with agreements, disagreements, verdict
114
122
  - [ ] Report written to `KNW-opinion-{slug}-{date}.md`
115
123
  - [ ] Non-trivial findings appended to `.workflow/specs/learnings.md`
@@ -2,18 +2,24 @@
2
2
  name: maestro
3
3
  description: Auto-route intent to optimal command chain
4
4
  argument-hint: "\"intent text\" [-y] [-c|--continue] [--dry-run] [--super]"
5
- allowed-tools: Read, Write, Edit, Bash, Glob, Grep, request_user_input
5
+ allowed-tools: Read, Write, Edit, Bash, Glob, Grep, request_user_input, create_goal, update_plan, update_goal
6
6
  ---
7
7
 
8
8
  <purpose>
9
9
  Sequential pipeline coordinator. Classify intent → decompose (broad lifecycle intents) →
10
10
  resolve chain → **directly invoke each skill in-context, one at a time** → report.
11
11
 
12
+ ### Notation
13
+
14
+ `Skill(name)` / `Skill(name, args)` = 加载 `~/.codex/skills/{name}/SKILL.md` 或 `.codex/skills/{name}/SKILL.md`(project 覆盖 global),args 填入目标 SKILL.md `<context>` 块的输入参数位。这是 skill 间的内部调用,**不是 CLI 命令**。严禁翻译为 `Bash("maestro {name} {args}")`。
15
+
16
+ 合法 CLI 子命令仅限结构化操作:`maestro ralph next`、`maestro ralph complete`、`maestro delegate`、`maestro explore` 等。
17
+
12
18
  Entry points:
13
- - **`$maestro "intent"`** — Classify → decompose → chain → execute
14
- - **`$maestro --continue`** — Resume from first pending step
15
- - **`$maestro --dry-run "intent"`** — Show chain, no execution
16
- - **`$maestro --super "intent"`** — Production-ready mode (read maestro-super.md)
19
+ - **`Skill(maestro, "intent")`** — Classify → decompose → chain → execute
20
+ - **`Skill(maestro, "--continue")`** — Resume from first pending step
21
+ - **`Skill(maestro, "--dry-run intent")`** — Show chain, no execution
22
+ - **`Skill(maestro, "--super intent")`** — Production-ready mode (read maestro-super.md)
17
23
 
18
24
  Codex specifics (parity with maestro-ralph):
19
25
  - **No agent spawning** — skills run directly in coordinator context, sequentially.
@@ -38,7 +44,7 @@ $ARGUMENTS — user intent text, or special flags.
38
44
  </context>
39
45
 
40
46
  <invariants>
41
- 1. **Skills invoked DIRECTLY in-context** — coordinator runs `$skill {resolved_args}` itself, sequentially. NO spawn_agents_on_csv, NO wave/CSV/worker.
47
+ 1. **Skills invoked DIRECTLY in-context** — coordinator runs `Skill(skill_name, resolved_args)` itself, sequentially. NO spawn_agents_on_csv, NO wave/CSV/worker.
42
48
  2. **Coordinator owns the loop** — classify → decompose → resolve chain → for each step: resolve args → invoke skill → read result → persist → next.
43
49
  3. **Decomposition contract shared with maestro-ralph** — broad/lifecycle intents run S_DECOMPOSE producing the SAME additive block (`boundary_contract`, `execution_criteria`, `task_decomposition`). Reference maestro-ralph `A_DECOMPOSE_TASKS`
44
50
  4. **Goal is tool-created** — `A_DECOMPOSE_TASKS` calls `create_goal` with sub-goal success criteria. `update_goal` on convergence; held while aborted/paused
@@ -49,7 +55,7 @@ $ARGUMENTS — user intent text, or special flags.
49
55
  8. **schema 向后兼容** — decomposition 字段可选;`steps[]` 由 post-goal-audit 动态生长(goal_ref tagged);既有字段不删不改;`waves` 保留空数组
50
56
  9. **Sequential execution** — one step at a time in index order; each step's result read before the next starts
51
57
  10. **Abort on failure** — failed step → mark remaining skipped → report (goal stays bound for `--continue`)
52
- 11. **CLI ≠ Skill** — 本 skill 通过 `$maestro "intent"` 调用。`maestro` CLI 二进制不接受裸 intent(`Bash("maestro \"intent\"")` 会报错退出)。CLI 层只有结构化子命令:`ralph`、`delegate`、`explore`、`search` 等。
58
+ 11. **CLI ≠ Skill** — 本 skill 通过 `Skill(maestro, "intent")` 调用。`maestro` CLI 二进制不接受裸 intent(`Bash("maestro \"intent\"")` 会报错退出)。CLI 层只有结构化子命令:`ralph`、`delegate`、`explore`、`search` 等。
53
59
  </invariants>
54
60
 
55
61
  <state_machine>
@@ -279,7 +285,7 @@ Read `.workflow/state.json` and route by condition:
279
285
  ```
280
286
  create_goal({ objective: "Maestro {chain}: {intent} — converge {N} sub-goals within boundary",
281
287
  success_criteria: task_decomposition.map(g => `${g.id}: ${g.done_when}`),
282
- constraints: [...execution_criteria, "stay within boundary_contract; resume via $maestro --continue"] })
288
+ constraints: [...execution_criteria, "stay within boundary_contract; resume via Skill(maestro, "--continue")"] })
283
289
  ```
284
290
 
285
291
  ### A_CREATE_SESSION
@@ -354,7 +360,7 @@ Direct in-context skill invocation — **replaces the old spawn/wave/CSV mechani
354
360
 
355
361
  **--from auto-injection**: 当 step 是 `maestro-plan`,args 含 `{phase}` 但无 `--from` 且无 `--dir`,且 `session.context.analysis_dir` 已填充 → 查 state.json 同 phase+milestone 最新 completed analyze artifact → 注入 `--from analyze:{id}`,写 `step.source_artifact_ref`
356
362
  2. Mark step `status="running"`, persist status.json + `update_plan` (this step → in_progress)
357
- 3. **Invoke the skill directly**: execute `$skill {resolved_args}` in coordinator context (NO spawn). Read its produced artifacts directly
363
+ 3. **Invoke the skill directly**: execute `Skill(skill_name, resolved_args)` in coordinator context (NO spawn). Read its produced artifacts directly
358
364
  4. On success: mark step `status="done"`. **Structured completion**: `Bash("maestro ralph complete {idx} --status DONE --summary \"...\" [--decisions \"...\"] [--caveats \"...\"] [--deferred \"...\"]")`(`--summary` MUST,动词开头 ≤100 字)。**Barrier-context update** (when step is a context-producing skill):
359
365
  | Skill | Read | Context Updates |
360
366
  |-------|------|-----------------|
@@ -379,7 +385,7 @@ S_DECISION_EVAL 入口;镜像 maestro-ralph `A_GOAL_AUDIT_EVALUATE`。Condense
379
385
 
380
386
  ### A_APPLY_GOAL_FIX
381
387
 
382
- **Dynamic step-growth core** (mirrors maestro-ralph). For each unmet sub-goal (grouped by target_phase), insert before the post-goal-audit node a scoped mini-loop `$maestro-plan --gaps {phase} "G{n}: {gap}" → $maestro-execute {phase}`, each tagged `goal_ref: "G{n}"`, type `"skill"`. Re-append `decision:post-goal-audit {retry+1}`. Reindex, increment retry, persist + `update_plan`. `steps[]` grew.
388
+ **Dynamic step-growth core** (mirrors maestro-ralph). For each unmet sub-goal (grouped by target_phase), insert before the post-goal-audit node a scoped mini-loop `Skill(maestro-plan, "--gaps {phase} G{n}: {gap}")Skill(maestro-execute, "{phase}")`, each tagged `goal_ref: "G{n}"`, type `"skill"`. Re-append `decision:post-goal-audit {retry+1}`. Reindex, increment retry, persist + `update_plan`. `steps[]` grew.
383
389
 
384
390
  ### A_APPLY_GOAL_DONE
385
391
 
@@ -562,13 +568,13 @@ Chain: {chain}
562
568
  Steps: {completed}/{total} Sub-goals: {done}/{total}
563
569
 
564
570
  STEP RESULTS:
565
- [1] $maestro-analyze --gaps → ✓ found 3 gaps
566
- [2] $maestro-plan --gaps → ✓ 12 tasks
571
+ [1] maestro-analyze --gaps → ✓ found 3 gaps
572
+ [2] maestro-plan --gaps → ✓ 12 tasks
567
573
  [◆] post-goal-audit → ✓ all sub-goals met
568
574
  ...
569
575
 
570
576
  State: .workflow/.maestro/{sessionId}/status.json
571
- Resume: $maestro --continue
577
+ Resume: Skill(maestro, "--continue")
572
578
  ```
573
579
 
574
580
  </appendix>
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: maestro-amend
3
3
  description: Generate overlays to fix workflow command deficiencies
4
- argument-hint: "[description] [--from-verify <dir>] [--from-review <dir>] [--from-session <id>] [--from-issues ISS-xxx,...] [--scan] [--dry-run]"
4
+ argument-hint: "[description] [--from-verify <dir>] [--from-review <dir>] [--from-session <id>] [--from-issues ISS-xxx,...] [--scan] [--dry-run] [-y]"
5
5
  allowed-tools: Read, Write, Bash, Glob, Grep, request_user_input
6
6
  ---
7
7
  <purpose>
@@ -33,6 +33,13 @@ Multiple combinable. No flags + no description → interactive (scan + request_u
33
33
 
34
34
  **CLI targeting**: `"cli": "claude"` (default, patches .claude/commands/), `"codex"` (patches .codex/skills/), `"both"` (both paths)
35
35
 
36
+ **Source path mapping by CLI**:
37
+ | CLI | Pristine source path |
38
+ |-----|---------------------|
39
+ | `claude` | `$PKG_ROOT/.claude/commands/<name>.md` |
40
+ | `codex` | `.codex/skills/<name>/SKILL.md` |
41
+ | `both` | Both paths checked; overlay targets whichever exists |
42
+
36
43
  **Output**: `~/.maestro/overlays/amend-{slug}.json` + optional `~/.maestro/overlays/docs/amend-{slug}.md`
37
44
  </context>
38
45
 
@@ -62,6 +69,7 @@ S_GROUP:
62
69
  → S_PREVIEW DO: A_GROUP_OVERLAYS
63
70
 
64
71
  S_PREVIEW:
72
+ → S_DRAFT WHEN: `-y` flag set (skip confirmation, apply all)
65
73
  → S_DRAFT WHEN: user confirms "Apply all" or selects patches
66
74
  → S_PREVIEW WHEN: user selects "Edit" DO: modify signal target/section
67
75
  → END WHEN: user cancels
@@ -109,7 +117,7 @@ Per signal, determine:
109
117
  | Scope/context gap | context | append |
110
118
  | Entirely new concern | _(new section)_ | new-section |
111
119
 
112
- Read pristine source from `$PKG_ROOT/.claude/commands/<name>.md` to confirm section.
120
+ Read pristine source using CLI path mapping: `claude` → `$PKG_ROOT/.claude/commands/<name>.md`, `codex` `.codex/skills/<name>/SKILL.md`. Confirm section exists in target.
113
121
  Classify: command deficiency → proceed; code bug → skip (suggest $maestro-quick).
114
122
 
115
123
  ### A_GROUP_OVERLAYS
@@ -149,7 +149,11 @@ S_CSV_GEN:
149
149
  S_WAVE_1:
150
150
  -> S_WAVE_2 WHEN: full mode, 1+ completed DO: A_SPAWN_WAVE_1
151
151
  -> S_WAVE_3 WHEN: gaps mode, 1+ completed DO: merge results
152
- -> ERROR WHEN: all failed
152
+ -> S_WAVE_1 (retry) WHEN: all failed, retry available DO: retry once
153
+ -> S_WAVE_2_DEGRADED WHEN: all failed, retry exhausted DO: flag ALL downstream LOW CONFIDENCE, record degradation_event in discoveries.ndjson
154
+
155
+ S_WAVE_2_DEGRADED:
156
+ -> S_WAVE_3 DO: A_SPAWN_WAVE_2 with degraded=true (scoring agents receive gap_note for all dimensions, outputs inherit LOW CONFIDENCE)
153
157
 
154
158
  S_WAVE_2:
155
159
  -> S_BOUNDARY_GRILL WHEN: 1+ completed DO: A_SPAWN_WAVE_2
@@ -234,6 +238,8 @@ Merge results -> master tasks.csv (map `result_status` → master `status`).
234
238
 
235
239
  Filter `wave==3 AND status=="pending"` -> build prev_context from wave 2 scores (or project context for quick mode) -> spawn with `SYNTHESIS_INSTRUCTION + SHARED_TERMINATION_CONTRACT`.
236
240
 
241
+ **Failed-score exclusion**: when building prev_context, skip `context_from` IDs whose status is `failed`/`blocked`. Append a `gap_note` to the synthesis instruction listing which scoring dimensions are missing so the agent knows its evidence base is incomplete. When gaps exist, synthesis outputs MUST include a `confidence_penalty` and flag affected decisions as LOW CONFIDENCE.
242
+
237
243
  **Synthesis agent**:
238
244
  - Full mode: analysis.md (executive summary, per-dimension scores, risk matrix, Go/No-Go), context.md (Locked/Free/Deferred decisions), context-package.json, conclusions.json (with `scope_verdict` + `implementation_scope[]`)
239
245
  - Quick mode: context.md + context-package.json + **minimal conclusions.json** (`scope_verdict` + `implementation_scope[]` only — seeds plan task generation per redesign §8.3)
@@ -50,7 +50,7 @@ maestro-analyze → maestro-roadmap → maestro-plan
50
50
  </context>
51
51
 
52
52
  <interview_protocol>
53
- Interview the user relentlessly about every aspect of the spec until shared understanding is reached. Walk down each branch of the design tree, resolving dependencies between decisions one-by-one; if a question can be answered by exploring the codebase, explore the codebase instead. Active only in interactive mode; skip when `-y/--yes`, `-c/--continue`, or input is already specific (clear idea + scope).
53
+ Interview the user relentlessly about every aspect of the spec until shared understanding is reached. Walk down each branch of the design tree, resolving dependencies between decisions one-by-one; if a question can be answered by exploring the codebase, explore the codebase instead. Active only in interactive mode; skip ONLY when `-y/--yes` or `-c/--continue` is set.
54
54
 
55
55
  - Ask one question per turn via request_user_input and wait for the user's feedback before continuing; every question must carry a recommended answer marked `(Recommended)`, 2–4 options total. The user controls termination — keep interviewing until convergence; they can interrupt naturally at any time.
56
56
  - Search-first when uncertain: before asking, resolve via `state.json`, existing artifacts, `maestro load --type spec`, codebase exploration (`maestro explore` preferred, fallback Glob/Grep/Read). Never ask what code or memory can verify; never bounce your own ambiguity back to the user — search first, then ask only what truly needs human judgment.
@@ -173,9 +173,9 @@ INPUTS — read these files (do NOT modify):
173
173
  - <ABS_SESSION>/guidance-specification.md
174
174
  - <ABS_SESSION>/<role_1>/analysis.md
175
175
  - <ABS_SESSION>/<role_2>/analysis.md
176
- - ... (one per role from Wave 2)
176
+ - ... (one per COMPLETED role from Wave 2 — failed/blocked roles are excluded)
177
177
 
178
- (Orchestrator MUST inject the actual absolute paths for all completed Wave 2 rows.)
178
+ (Orchestrator MUST inject the actual absolute paths for completed Wave 2 rows ONLY. If any W2 roles failed, append a gap_note listing the missing roles so the reviewer can flag affected findings as LOW CONFIDENCE.)
179
179
 
180
180
  TASK: Compare §2 Decision Digests across role analysis.md index files. Identify:
181
181
  - Conflicts: contradictory stances between roles on the same feature/topic
@@ -306,8 +306,9 @@ S_CHECK_1 → S_WAVE_2 WHEN: (-y OR user "Proceed") AND ui-designer NOT in sel
306
306
  S_CHECK_1 → S_CHECK_1 WHEN: user "Revise" DO: edit guidance-spec, re-display
307
307
  S_CHECK_1 → END WHEN: user "Abort"
308
308
 
309
- S_DESIGN → S_WAVE_2 WHEN: DESIGN.md exists OR explore completed DO: A_DESIGN_EXPLORE
310
- S_DESIGN → S_WAVE_2 WHEN: DESIGN.md already exists (skip explore)
309
+ S_DESIGN → S_WAVE_2 WHEN: DESIGN.md already exists (skip explore visual direction locked)
310
+ S_DESIGN → S_WAVE_2 WHEN: user confirms explore AND explore completed DO: A_DESIGN_EXPLORE
311
+ S_DESIGN → S_WAVE_2 WHEN: user skips explore DO: set session.design_degraded=true, W2 ui-designer receives gap_note="DESIGN.md unavailable"
311
312
  S_DESIGN → S_WAVE_2 WHEN: explore failed → W004 → retry once. If still fails: set session.design_degraded=true, record degradation_event in discoveries.ndjson, continue without. W2 ui-designer agent receives gap_note="DESIGN.md unavailable, design evidence incomplete" and outputs inherit LOW CONFIDENCE flag.
312
313
 
313
314
  S_WAVE_2 → S_CHECK_2 WHEN: 1+ completed DO: spawn wave-2 (parallel), merge results — each agent writes {role}/analysis.md + sub-files
@@ -347,7 +348,7 @@ system-architect MUST include in §3: Data Model, State Machine, Error Handling,
347
348
 
348
349
  The agent MUST write files. The agent MUST NOT return analysis as text.
349
350
 
350
- **Cross-Role Review (W3, agent role `cross-role-reviewer`)**: Read ALL `{role}/analysis.md` files (§2 Decision Digests) + guidance-specification.md → emit structured report (NOT files):
351
+ **Cross-Role Review (W3, agent role `cross-role-reviewer`)**: Read ONLY completed W2 role `{role}/analysis.md` files (§2 Decision Digests) + guidance-specification.md → emit structured report (NOT files). Failed/blocked W2 roles are excluded from W3 input; inject a `gap_note` listing which roles are missing so the reviewer knows its coverage is incomplete and flags affected cross-role findings as LOW CONFIDENCE:
351
352
 
352
353
  ```
353
354
  ## Conflicts (need user decision)
@@ -383,9 +384,11 @@ conflicts_count / gaps_count / synergies_count / review_confidence
383
384
 
384
385
  When ui-designer is among selected roles, establish visual direction before Wave 2:
385
386
 
386
- 1. If `.workflow/impeccable/PRODUCT.md` missingrun `$maestro-impeccable teach`
387
- 2. If `.workflow/impeccable/DESIGN.md` missing run `$maestro-impeccable explore`
388
- 3. If both already exist skip (visual direction already locked)
387
+ 1. If both `.workflow/impeccable/PRODUCT.md` and `.workflow/impeccable/DESIGN.md` already exist skip (visual direction already locked).
388
+ 2. Otherwise, **suggest** the missing steps to the user via `request_user_input` (skip gate when `-y/--yes`):
389
+ - If `PRODUCT.md` missingsuggest: "Run `maestro-impeccable teach` to establish product identity?" Options: `(Recommended) Yes` / `Skip`
390
+ - If `DESIGN.md` missing → suggest: "Run `maestro-impeccable explore` to establish visual direction?" Options: `(Recommended) Yes` / `Skip`
391
+ 3. Only execute the impeccable commands if the user confirms (or `-y` auto mode). If the user skips, set `session.design_degraded=true` and continue — W2 ui-designer agent receives `gap_note="DESIGN.md unavailable"`.
389
392
 
390
393
  explore generates multi-style HTML prototypes, visual comparison, user selection/mix, and produces DESIGN.md.
391
394
  ui-designer agents in Wave 2 then focus on UX/visual design referencing DESIGN.md.
@@ -2,7 +2,7 @@
2
2
  name: maestro-collab
3
3
  description: Use when a question needs cross-verification from multiple CLI tools or diverse analytical perspectives
4
4
  argument-hint: "\"<requirement>\" [--tools agy,qwen,claude] [--mode analysis|write] [--rule <template>] [-y]"
5
- allowed-tools: Read, Write, Edit, Glob, Grep, request_user_input
5
+ allowed-tools: Read, Write, Edit, Bash, Glob, Grep, request_user_input
6
6
  ---
7
7
 
8
8
  <purpose>
@@ -68,7 +68,7 @@ $ARGUMENTS — requirement text and optional flags.
68
68
  4. **NEVER fire-and-forget** — every shell_exec MUST complete before proceeding, result consumed before next step
69
69
  5. **NEVER substitute internal reasoning** — if CLI fails, report failure; do NOT generate analysis yourself as replacement
70
70
  6. **Indefinite wait** — shell_exec has NO max timeout; continue waiting until CLI returns regardless of elapsed time; NEVER abandon a running session
71
- 6. **Same prompt, different --to** — fan-out delegates all use identical base prompt, only `--to <tool>` differs
71
+ 7. **Same prompt, different --to** — fan-out delegates all use identical base prompt, only `--to <tool>` differs
72
72
  7. **Minimum 2 tools** — abort if fewer eligible
73
73
  8. **Partial degradation** — 1 tool fails → continue with remaining (minimum 2 results for cross-verify)
74
74
  </invariants>
@@ -142,8 +142,8 @@ Launch ALL delegate commands simultaneously in parallel:
142
142
 
143
143
  ```
144
144
  // Parallel fan-out — one shell_exec per selected tool:
145
- shell_exec(`maestro delegate "<shared_prompt>" --to agy --mode <mode> [--rule <rule>]`, { timeout: 30000 })
146
- shell_exec(`maestro delegate "<shared_prompt>" --to claude --mode <mode> [--rule <rule>]`, { timeout: 30000 })
145
+ Bash(`maestro delegate "<shared_prompt>" --to agy --mode <mode> [--rule <rule>]`, { run_in_background: true })
146
+ Bash(`maestro delegate "<shared_prompt>" --to claude --mode <mode> [--rule <rule>]`, { run_in_background: true })
147
147
  // ... one call per selected tool
148
148
  // Execution mapping: @~/.maestro/workflows/shell-exec-protocol.md
149
149
  ```
@@ -241,7 +241,7 @@ Generate 3 output files from cross-verify results:
241
241
 
242
242
  1. Copy outputs to scratchDir
243
243
  2. Register CLB artifact in state.json (type: collab, scope: adhoc)
244
- 3. Spec enrichment: for each Locked decision `maestro spec add arch "<title>" "<content>" --keywords <kw> --description "<summary>"`
244
+ 3. **Spec enrichment** (gated): for each Locked decision, display the proposed spec entry. Unless `-y/--yes`, `request_user_input` to confirm before writing. Only confirmed entries execute `maestro spec add arch "<title>" "<content>" --keywords <kw> --description "<summary>"`. Under `-y`, auto-write all Locked decisions.
245
245
  4. `update_plan` all steps completed
246
246
  5. Display summary:
247
247
  ```
@@ -34,7 +34,10 @@ $maestro-companion "route what should I do next"
34
34
  **Mode detection priority:**
35
35
  1. Explicit `before` / `note` / `after` / `route`
36
36
  2. Intent text that is not a mode keyword → `route`
37
- 3. No arguments → auto-detect (`git status` has changes `after`, else `before`)
37
+ 3. No arguments → show `git status` summary and ask user to choose mode via `request_user_input`:
38
+ - Options: `before` (start new task), `after` (review & promote), `route` (get next command suggestion)
39
+ - Display working tree status (clean/dirty, changed file count) as context for the choice
40
+ - NEVER auto-enter `after` mode based on dirty tree — let the user decide
38
41
 
39
42
  **Flags:**
40
43
  - `--task <description>` — Current task description (for targeted knowledge loading and doc title)
@@ -44,9 +44,12 @@ $ARGUMENTS — natural language workflow description, or flags.
44
44
 
45
45
  | Detection | Condition | Handler |
46
46
  |-----------|-----------|---------|
47
- | Resume | `--resume` or existing WFD session | Phase 0: Resume |
47
+ | Resume | `--resume` flag explicitly set | Phase 0: Resume |
48
48
  | Edit | `--edit <path>` | Phase 0: Load + Edit |
49
- | New | Default | Phase 1: Parse |
49
+ | New | Description text provided (non-empty args without flags) | Phase 1: Parse |
50
+ | Empty | No args, no flags | Phase 0: check for existing WFD drafts → if found, ask user via `request_user_input` whether to resume or start new; if none, Phase 1 |
51
+
52
+ **IMPORTANT**: An existing WFD draft does NOT auto-resume when new description text is provided. New intent always starts Phase 1 fresh. Auto-resume only triggers with explicit `--resume` or empty args with user confirmation.
50
53
 
51
54
  **Node catalog**: Read `~/.maestro/templates/workflows/specs/node-catalog.md` at Phase 2 (deferred).
52
55
  **Template schema**: Read `~/.maestro/templates/workflows/specs/template-schema.md` at Phase 5 (deferred).
@@ -121,7 +124,7 @@ If spec not found, use built-in fallback:
121
124
  | `testing` | skill | `quality-test` |
122
125
  | `review` | skill | `quality-review` |
123
126
  | `brainstorm` | skill | `maestro-brainstorm` |
124
- | `analysis` | cli | `maestro delegate --role analyze --mode analysis` |
127
+ | `analysis` | cli | `maestro delegate --to claude --mode analysis` |
125
128
  | `refactor` | skill | `quality-refactor` |
126
129
  | `debug` | skill | `quality-debug` |
127
130
  | `spec` | skill | `maestro-blueprint` |
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: maestro-execute
3
3
  description: Use when a confirmed plan is ready for implementation
4
- argument-hint: "[-y|--yes] [--concurrency N] [-c|--continue] \"<phase> [--auto-commit] [--method agent|cli] [--dir <path>]\""
4
+ argument-hint: "[-y|--yes] [--concurrency N] [--continue] \"<phase> [--auto-commit] [--method agent|cli] [--dir <path>]\""
5
5
  allowed-tools: spawn_agents_on_csv, Read, Write, Edit, Bash, Glob, Grep, request_user_input
6
6
  ---
7
7
 
@@ -67,7 +67,7 @@ All mean: **run convergence criteria check NOW**.
67
67
  <context>
68
68
  ```bash
69
69
  $maestro-execute "3"
70
- $maestro-execute -c 4 "3 --auto-commit"
70
+ $maestro-execute --concurrency 4 "3 --auto-commit"
71
71
  $maestro-execute -y "3 --method cli"
72
72
  $maestro-execute "3 --dir .workflow/scratch/quick-fix"
73
73
  $maestro-execute --continue "20260318-execute-P3-phase3"
@@ -75,8 +75,8 @@ $maestro-execute --continue "20260318-execute-P3-phase3"
75
75
 
76
76
  **Flags**:
77
77
  - `-y, --yes`: Skip all confirmations (auto mode)
78
- - `--concurrency N`: Max concurrent agents within each wave (default: 5)
79
- - `-c, --continue`: Resume existing session
78
+ - `--concurrency N`: Max concurrent agents within each wave (default: 5, no short flag)
79
+ - `--continue`: Resume existing session (no short flag)
80
80
 
81
81
  **Inner flags** (passed inside quotes):
82
82
  - `--auto-commit`: Atomic git commit after each task completion
@@ -178,7 +178,7 @@ Each wave generates `wave-{N}.csv` with extra `prev_context` column populated fr
178
178
  Parse from $ARGUMENTS:
179
179
  AUTO_YES ← --yes | -y
180
180
  continueMode ← --continue
181
- maxConcurrency ← --concurrency | -c N (default: 5)
181
+ maxConcurrency ← --concurrency N (default: 5)
182
182
  autoCommit ← --auto-commit
183
183
  executionMethod ← --method agent|cli (default: from config.json)
184
184
  scratchDir ← --dir <path> (default: null)
@@ -352,7 +352,7 @@ Blocked/failed tasks cascade: mark all downstream dependents as `skipped` with e
352
352
  3. **Write verification.json** to plan directory with per-task pass/fail and gap list
353
353
  4. **Gate decision**:
354
354
  - `overall_pass == true` → proceed to Phase 3
355
- - Critical gaps (task criteria all failed) → log warning, mark affected tasks as `needs_retry`
355
+ - Critical gaps (task criteria all failed) → log warning, mark affected tasks as `failed` with error referencing verification gaps
356
356
  - Non-critical gaps → record as `concerns` in verification.json, proceed
357
357
  5. **Register VRF artifact**: `{ id: "VRF-{next}", type: "verify", scope, path: verification.json, depends_on: "EXC-{id}" }`
358
358
 
@@ -384,7 +384,11 @@ Skip Phase 2.5 when `--skip-verify` flag present or task count == 0.
384
384
  - Root cause/workaround → `maestro spec add debug "<title>" "<content>" --keywords ... --description "<summary>"`
385
385
  Mark artifact `harvested: true`
386
386
 
387
- 6. **Post-task Knowledge Inquiry**: After each task completes, evaluate inquiry triggers:
387
+ 6. **Post-task Knowledge Inquiry**: After each task completes, evaluate inquiry triggers.
388
+
389
+ **`-y` mode**: Skip all prompts. Instead, append triggered items to `context.md` under a "Suggested Knowledge Captures" section (suggest-only, no spec writes). This keeps `-y` fully non-interactive.
390
+
391
+ **Interactive mode**: Use `request_user_input` for each triggered item:
388
392
 
389
393
  - **Execution deviation**: If task summary mentions approach change, dependency swap, or plan deviation:
390
394
  → Prompt: "TASK-{NNN} deviated from the plan. Record as architecture constraint?"
@@ -398,7 +402,6 @@ Skip Phase 2.5 when `--skip-verify` flag present or task count == 0.
398
402
  → Prompt: "Design decision detected. Record as a learning?"
399
403
  → On confirm: `maestro spec add learning "<decision>" "<rationale>" --keywords ... --description "<summary>" --source execute:{PLAN_DIR}`
400
404
 
401
- Use `request_user_input` for prompts:
402
405
  ```json
403
406
  { "questions": [{ "id": "knowledge-capture", "header": "Knowledge Capture", "question": "...", "options": [{ "label": "Yes", "description": "Record to specs" }, { "label": "Skip", "description": "Continue without recording" }] }] }
404
407
  ```
@@ -58,7 +58,7 @@ Follow '~/.maestro/workflows/fork.md' completely.
58
58
  **Fork flow:**
59
59
  1. Validate: initialized, roadmap exists, not inside worktree, milestone not forked
60
60
  2. Resolve milestone: `state.json.milestones[N-1]`
61
- 3. Create worktree: `git worktree add -b milestone/{slug} .worktrees/m{N}-{slug} HEAD`
61
+ 3. Create worktree: `git worktree add -b milestone/{slug} .worktrees/m{N}-{slug} {base_branch}` (where `base_branch` = `--base` flag value or `HEAD` if not specified)
62
62
  4. Copy `.workflow/`: shared files + milestone scratch artifacts
63
63
  5. Write `worktree-scope.json` with milestone scope
64
64
  6. Write scoped `state.json` (this milestone's artifacts only)
@@ -66,8 +66,9 @@ Follow '~/.maestro/workflows/fork.md' completely.
66
66
 
67
67
  **Sync flow:**
68
68
  1. Find worktree from `worktrees.json`
69
- 2. `cd worktree && git merge main`
70
- 3. Re-copy shared files (project.md, roadmap.md, config.json, specs/)
69
+ 2. Resolve sync source: use `--base <branch>` if provided, else use `base_branch` from `fork_sessions[]` entry, else default to `main`
70
+ 3. `cd worktree && git merge {base_branch}`
71
+ 4. Re-copy shared files (project.md, roadmap.md, config.json, specs/)
71
72
 
72
73
  **Registry: `worktrees.json`** (`.workflow/worktrees.json` in main worktree):
73
74
 
@@ -11,7 +11,7 @@ Socratic stress-testing of a plan, idea, or requirement against codebase reality
11
11
  Codex specifics:
12
12
  - **No agent spawning** — codebase exploration via `maestro explore` (preferred, fallback Glob/Grep/Read).
13
13
  - **request_user_input** replaces request_user_input for Socratic Q&A.
14
- - **CLI delegation** for auto mode: `shell_exec("maestro delegate ... --role analyze --mode analysis")`.
14
+ - **CLI delegation** for auto mode: `Bash("maestro delegate ... --to claude --mode analysis")`.
15
15
  </purpose>
16
16
 
17
17
  <required_reading>
@@ -9,7 +9,7 @@ Configure directory-level write boundaries enforced by the workflow-guard PreToo
9
9
  When enabled, Write and Edit tool calls targeting files outside allowed paths are blocked.
10
10
 
11
11
  Subcommands:
12
- - **on** -- Enable path guard (defaults to `src/` if no paths configured)
12
+ - **on** -- Enable path guard (defaults to `["src/", "tests/", ".workflow/"]` if no paths configured)
13
13
  - **off** -- Disable path guard (preserves path list)
14
14
  - **status** -- Show current guard configuration
15
15
  - **allow `<path>`** -- Add a directory to the allowed paths list
@@ -154,7 +154,7 @@ Layer 1+2 both did not match, but intent is to build/create a specific thing:
154
154
  3. Interactive gates respected — teach, shape, craft retain user confirmation gates
155
155
  4. status.json before chain steps — session created before any chain step runs
156
156
  5. **Quality gate enforcement** — score MUST be parsed from critique/audit output (not assumed). P0 count MUST be extracted. Do NOT skip quality gate steps or mark as "passed" without parsing actual score.
157
- 6. **Chain completion verification** — all non-skipped steps MUST be executed (TodoWrite all completed). status.json MUST be updated with status: "completed" and final scores.
157
+ 6. **Chain completion verification** — all non-skipped steps MUST be executed (all tracked as completed in status.json). status.json MUST be updated with status: "completed" and final scores.
158
158
  </invariants>
159
159
 
160
160
  ## Prerequisites
@@ -162,7 +162,7 @@ Layer 1+2 both did not match, but intent is to build/create a specific thing:
162
162
  Before reading any command workflow:
163
163
 
164
164
  1. **Context**: `maestro load --type spec --category ui` → if empty → `maestro impeccable load-context`
165
- 2. **PRODUCT.md**: missing/placeholder (<200 chars / `[TODO]`) → execute teach first, then resume original task
165
+ 2. **PRODUCT.md**: missing/placeholder (<200 chars / `[TODO]`) → prompt user via `request_user_input` to confirm running teach first ("PRODUCT.md is missing or incomplete. Run teach to set it up before proceeding?"). On confirm → execute teach, then resume original task. On decline → abort with message. When `-y` → auto-confirm and run teach without prompting.
166
166
  3. **Register**: identify brand/product → Read `~/.maestro/workflows/impeccable/{brand|product}.md`
167
167
 
168
168
  ## Direct Execution
@@ -215,14 +215,14 @@ Before reading any command workflow:
215
215
  - Read `~/.maestro/workflows/impeccable/{command}.md` → execute
216
216
  - **Step start**: mark current step in_progress
217
217
  - **Step done**: mark completed + update status.json (`current_step`, step `status`)
218
- - **Step failed**: mark completed (with note) + record reason
218
+ - **Step failed**: mark as `failed` in status.json + record reason (do NOT mark completed)
219
219
  6. **Quality gate** (critique/audit steps):
220
220
  - Parse score: critique `**Total** | | **N/40**`, audit `**Total** | | **N/20**`
221
221
  - Count `[P0]` / `[P1]` tags
222
222
  - Pass: score ≥ threshold AND P0 == 0 → advance
223
223
  - Fail: collect suggested commands from findings → execute → re-gate
224
- - Max loops exceeded → force advance with warning
225
- - Record gate result in current step notes (score, P0/P1 count, pass/fail)
224
+ - Max loops exceeded → mark step as `degraded` (not completed), record final score + unresolved P0s, log warning, advance to next step
225
+ - Record gate result in current step notes (score, P0/P1 count, pass/fail/degraded)
226
226
  7. Final report: scores + trend + commands executed
227
227
 
228
228
  ## Resume
@@ -123,8 +123,9 @@ Write collected configuration to `.workflow/config.json`.
123
123
  Run `Bash("maestro spec init")` to create empty seed files in `.workflow/specs/`.
124
124
 
125
125
  If project state is **code** (existing source files detected in Step 2):
126
- - Auto-trigger `$spec-setup` to scan codebase and populate specs with detected conventions
127
- - This runs unconditionally for `code` state existing source means conventions can be extracted
126
+ - Suggest `$spec-setup` to scan codebase and populate specs with detected conventions
127
+ - Ask user via `request_user_input`: "Source files detected. Run spec-setup to scan codebase conventions?" with options: "Yes, scan now (Recommended)" / "No, skip for now"
128
+ - Only run `$spec-setup` if user confirms
128
129
 
129
130
  If project state is **empty** (greenfield, no source files found in Step 2):
130
131
  - Skip spec-setup entirely — no code to scan
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  name: maestro-milestone-audit
3
3
  description: Audit current milestone for cross-phase integration gaps
4
- argument-hint: "[milestone, e.g., 'M1']"
5
- allowed-tools: spawn_agents_on_csv, Read, Write, Bash, Glob, Grep
4
+ argument-hint: "[milestone, e.g., 'M1'] [-y]"
5
+ allowed-tools: spawn_agents_on_csv, Read, Write, Bash, Glob, Grep, request_user_input
6
6
  ---
7
7
 
8
8
  <purpose>
@@ -28,9 +28,9 @@ $maestro-milestone-audit "M1"
28
28
  ### tasks.csv (Master State)
29
29
 
30
30
  ```csv
31
- id,title,description,scope,check_targets,deps,wave,status,findings,gaps_found,severity,error
32
- "integ-1","Interface & dependency chains","Verify shared interfaces are consistent across phases: re-exports match, dependency chains unbroken, no circular imports between phase outputs","cross-phase imports, shared types, re-exports","grep for shared type names across phase output dirs; verify export/import consistency","","1","pending","","","",""
33
- "integ-2","Data contracts & API consistency","Verify request/response schemas match across phases: API signatures consistent, error codes aligned, no contract drift","request/response schemas, API signatures, error codes","diff API type definitions across phases; check error code enum consistency","","1","pending","","","",""
31
+ id,title,description,scope,check_targets,deps,wave,status,audit_verdict,findings,gaps_found,severity,error
32
+ "integ-1","Interface & dependency chains","Verify shared interfaces are consistent across phases: re-exports match, dependency chains unbroken, no circular imports between phase outputs","cross-phase imports, shared types, re-exports","grep for shared type names across phase output dirs; verify export/import consistency","","1","pending","","","","",""
33
+ "integ-2","Data contracts & API consistency","Verify request/response schemas match across phases: API signatures consistent, error codes aligned, no contract drift","request/response schemas, API signatures, error codes","diff API type definitions across phases; check error code enum consistency","","1","pending","","","","",""
34
34
  ```
35
35
 
36
36
  **Columns**:
@@ -45,6 +45,7 @@ id,title,description,scope,check_targets,deps,wave,status,findings,gaps_found,se
45
45
  | `deps` | Input | Dependencies (empty — all wave 1) |
46
46
  | `wave` | Computed | Wave number (always 1 — single parallel wave) |
47
47
  | `status` | Lifecycle | `pending` (initial) → `completed`/`failed` (set by merge step from worker's `result_status`) |
48
+ | `audit_verdict` | Lifecycle | `pass` / `warning` / `fail` — audit check outcome per dimension (merged from worker output) |
48
49
  | `findings` | Lifecycle | Detailed findings per dimension (max 500 chars; merged) |
49
50
  | `gaps_found` | Lifecycle | Semicolon-separated list of integration gaps (merged) |
50
51
  | `severity` | Lifecycle | `critical` / `warning` / `info` per gap (merged) |
@@ -90,7 +91,14 @@ For each phase: check for completed analyze (optional), plan (required), execute
90
91
 
91
92
  Verify all adhoc-scoped artifacts completed. For each execute artifact, verify all tasks in plan dir completed.
92
93
 
93
- ### Step 5: Integration Check via CSV Wave
94
+ ### Step 5: Confirmation Gate
95
+
96
+ Unless `-y` flag is set, display audit scope summary and ask user via `request_user_input`:
97
+ - Show: milestone name, phase count, artifact count, integration dimensions to check
98
+ - Options: "Proceed with audit" / "Cancel"
99
+ - If cancelled → END
100
+
101
+ ### Step 6: Integration Check via CSV Wave
94
102
 
95
103
  1. Create session folder: `.workflow/.csv-wave/{dateStr}-audit-{milestone}/`
96
104
  2. Build `tasks.csv` from csv_schema — populate `scope` and `check_targets` columns using phase artifacts discovered in Step 2
@@ -162,12 +170,16 @@ CONSTRAINTS:
162
170
  - Do NOT call spawn_agents_on_csv (no recursion).
163
171
  ```
164
172
  5. Parse `gaps_found` from all workers — aggregate into `.workflow/milestones/{milestone}/audit-report.md`
165
- 6. Any worker with `audit_verdict == fail` and `severity == critical` → milestone verdict = FAIL
173
+ 6. Verdict determination:
174
+ - Any worker with `result_status == "failed"` (worker error, no verdict produced) → milestone verdict = **INCOMPLETE** (audit cannot pass with missing dimensions; re-run required)
175
+ - Any worker with `audit_verdict == "fail"` and `severity == "critical"` → milestone verdict = **FAIL**
176
+ - All workers completed with `audit_verdict` in `["pass", "warning"]` → milestone verdict = **PASS**
166
177
 
167
- ### Step 6: Verdict
178
+ ### Step 7: Verdict
168
179
 
169
- **PASS**: All phases have completed EXC artifacts, no critical integration gaps, all adhoc completed.
180
+ **PASS**: All phases have completed EXC artifacts, no critical integration gaps, all adhoc completed, all integration workers completed successfully.
170
181
  **FAIL**: Missing EXC artifacts or critical integration gaps found.
182
+ **INCOMPLETE**: One or more integration check workers failed (result_status="failed") — audit cannot produce a reliable verdict. Fix worker errors and re-run.
171
183
 
172
184
  Display structured audit report.
173
185