maestro-flow 0.4.26 → 0.5.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 (380) hide show
  1. package/.agents/skills/learn-follow/SKILL.md +1 -1
  2. package/.agents/skills/learn-investigate/SKILL.md +2 -2
  3. package/.agents/skills/learn-second-opinion/SKILL.md +1 -1
  4. package/.agents/skills/maestro/SKILL.md +6 -3
  5. package/.agents/skills/maestro-analyze/SKILL.md +53 -2
  6. package/.agents/skills/maestro-blueprint/SKILL.md +36 -1
  7. package/.agents/skills/maestro-brainstorm/SKILL.md +40 -1
  8. package/.agents/skills/maestro-collab/SKILL.md +1 -1
  9. package/.agents/skills/maestro-companion/SKILL.md +4 -4
  10. package/.agents/skills/maestro-composer/SKILL.md +1 -1
  11. package/.agents/skills/maestro-execute/SKILL.md +29 -6
  12. package/.agents/skills/maestro-fork/SKILL.md +24 -0
  13. package/.agents/skills/maestro-grill/SKILL.md +38 -1
  14. package/.agents/skills/maestro-help/SKILL.md +5 -6
  15. package/.agents/skills/maestro-help/index/catalog.json +7 -9
  16. package/.agents/skills/maestro-help/phases/02-search-present.md +2 -4
  17. package/.agents/skills/maestro-help/phases/03-workflow-guide.md +7 -8
  18. package/.agents/skills/maestro-impeccable/SKILL.md +13 -0
  19. package/.agents/skills/maestro-init/SKILL.md +11 -0
  20. package/.agents/skills/maestro-merge/SKILL.md +17 -1
  21. package/.agents/skills/maestro-milestone-audit/SKILL.md +34 -2
  22. package/.agents/skills/maestro-milestone-complete/SKILL.md +19 -1
  23. package/.agents/skills/maestro-milestone-release/SKILL.md +18 -0
  24. package/.agents/skills/maestro-next/SKILL.md +8 -9
  25. package/.agents/skills/maestro-overlay/SKILL.md +3 -3
  26. package/.agents/skills/maestro-plan/SKILL.md +21 -3
  27. package/.agents/skills/maestro-quick/SKILL.md +13 -1
  28. package/.agents/skills/maestro-ralph/SKILL.md +18 -20
  29. package/.agents/skills/maestro-ralph-beta/SKILL.md +10 -16
  30. package/.agents/skills/maestro-ralph-execute/SKILL.md +1 -2
  31. package/.agents/skills/maestro-roadmap/SKILL.md +28 -2
  32. package/.agents/skills/maestro-swarm-workflow/SKILL.md +2 -2
  33. package/.agents/skills/maestro-tools-register/SKILL.md +2 -2
  34. package/.agents/skills/maestro-ui-codify/SKILL.md +20 -0
  35. package/.agents/skills/maestro-update/SKILL.md +59 -116
  36. package/.agents/skills/manage-codebase-rebuild/SKILL.md +3 -3
  37. package/.agents/skills/manage-harvest/SKILL.md +1 -1
  38. package/.agents/skills/manage-knowhow/SKILL.md +3 -1
  39. package/.agents/skills/manage-knowhow-capture/SKILL.md +3 -2
  40. package/.agents/skills/manage-wiki/SKILL.md +17 -8
  41. package/.agents/skills/quality-auto-test/SKILL.md +3 -3
  42. package/.agents/skills/quality-debug/SKILL.md +4 -4
  43. package/.agents/skills/quality-refactor/SKILL.md +2 -2
  44. package/.agents/skills/quality-retrospective/SKILL.md +5 -5
  45. package/.agents/skills/quality-review/SKILL.md +4 -4
  46. package/.agents/skills/quality-sync/SKILL.md +1 -0
  47. package/.agents/skills/quality-test/SKILL.md +4 -4
  48. package/.agents/skills/spec-add/SKILL.md +6 -4
  49. package/.agents/skills/spec-setup/SKILL.md +1 -1
  50. package/.agy/skills/learn-follow/SKILL.md +1 -1
  51. package/.agy/skills/learn-investigate/SKILL.md +2 -2
  52. package/.agy/skills/learn-second-opinion/SKILL.md +1 -1
  53. package/.agy/skills/maestro/SKILL.md +6 -3
  54. package/.agy/skills/maestro-analyze/SKILL.md +53 -2
  55. package/.agy/skills/maestro-blueprint/SKILL.md +36 -1
  56. package/.agy/skills/maestro-brainstorm/SKILL.md +40 -1
  57. package/.agy/skills/maestro-collab/SKILL.md +1 -1
  58. package/.agy/skills/maestro-companion/SKILL.md +4 -4
  59. package/.agy/skills/maestro-composer/SKILL.md +1 -1
  60. package/.agy/skills/maestro-execute/SKILL.md +29 -6
  61. package/.agy/skills/maestro-fork/SKILL.md +24 -0
  62. package/.agy/skills/maestro-grill/SKILL.md +38 -1
  63. package/.agy/skills/maestro-help/SKILL.md +5 -6
  64. package/.agy/skills/maestro-help/index/catalog.json +7 -9
  65. package/.agy/skills/maestro-help/phases/02-search-present.md +2 -4
  66. package/.agy/skills/maestro-help/phases/03-workflow-guide.md +7 -8
  67. package/.agy/skills/maestro-impeccable/SKILL.md +13 -0
  68. package/.agy/skills/maestro-init/SKILL.md +11 -0
  69. package/.agy/skills/maestro-merge/SKILL.md +17 -1
  70. package/.agy/skills/maestro-milestone-audit/SKILL.md +34 -2
  71. package/.agy/skills/maestro-milestone-complete/SKILL.md +19 -1
  72. package/.agy/skills/maestro-milestone-release/SKILL.md +18 -0
  73. package/.agy/skills/maestro-next/SKILL.md +8 -9
  74. package/.agy/skills/maestro-overlay/SKILL.md +3 -3
  75. package/.agy/skills/maestro-plan/SKILL.md +21 -3
  76. package/.agy/skills/maestro-quick/SKILL.md +13 -1
  77. package/.agy/skills/maestro-ralph/SKILL.md +18 -20
  78. package/.agy/skills/maestro-ralph-beta/SKILL.md +10 -16
  79. package/.agy/skills/maestro-ralph-execute/SKILL.md +1 -2
  80. package/.agy/skills/maestro-roadmap/SKILL.md +28 -2
  81. package/.agy/skills/maestro-swarm-workflow/SKILL.md +2 -2
  82. package/.agy/skills/maestro-tools-register/SKILL.md +2 -2
  83. package/.agy/skills/maestro-ui-codify/SKILL.md +20 -0
  84. package/.agy/skills/maestro-update/SKILL.md +59 -116
  85. package/.agy/skills/manage-codebase-rebuild/SKILL.md +3 -3
  86. package/.agy/skills/manage-harvest/SKILL.md +1 -1
  87. package/.agy/skills/manage-knowhow/SKILL.md +3 -1
  88. package/.agy/skills/manage-knowhow-capture/SKILL.md +3 -2
  89. package/.agy/skills/manage-wiki/SKILL.md +17 -8
  90. package/.agy/skills/quality-auto-test/SKILL.md +3 -3
  91. package/.agy/skills/quality-debug/SKILL.md +4 -4
  92. package/.agy/skills/quality-refactor/SKILL.md +2 -2
  93. package/.agy/skills/quality-retrospective/SKILL.md +5 -5
  94. package/.agy/skills/quality-review/SKILL.md +4 -4
  95. package/.agy/skills/quality-sync/SKILL.md +1 -0
  96. package/.agy/skills/quality-test/SKILL.md +4 -4
  97. package/.agy/skills/spec-add/SKILL.md +6 -4
  98. package/.agy/skills/spec-setup/SKILL.md +1 -1
  99. package/.claude/commands/learn-follow.md +1 -1
  100. package/.claude/commands/learn-investigate.md +2 -2
  101. package/.claude/commands/learn-second-opinion.md +1 -1
  102. package/.claude/commands/maestro-analyze.md +53 -2
  103. package/.claude/commands/maestro-blueprint.md +36 -1
  104. package/.claude/commands/maestro-brainstorm.md +40 -1
  105. package/.claude/commands/maestro-collab.md +1 -1
  106. package/.claude/commands/maestro-companion.md +4 -4
  107. package/.claude/commands/maestro-composer.md +1 -1
  108. package/.claude/commands/maestro-execute.md +29 -6
  109. package/.claude/commands/maestro-fork.md +24 -0
  110. package/.claude/commands/maestro-grill.md +38 -1
  111. package/.claude/commands/maestro-impeccable.md +13 -0
  112. package/.claude/commands/maestro-init.md +11 -0
  113. package/.claude/commands/maestro-merge.md +17 -1
  114. package/.claude/commands/maestro-milestone-audit.md +34 -2
  115. package/.claude/commands/maestro-milestone-complete.md +19 -1
  116. package/.claude/commands/maestro-milestone-release.md +18 -0
  117. package/.claude/commands/maestro-next.md +8 -9
  118. package/.claude/commands/maestro-overlay.md +3 -3
  119. package/.claude/commands/maestro-plan.md +21 -3
  120. package/.claude/commands/maestro-quick.md +13 -1
  121. package/.claude/commands/maestro-ralph-beta.md +8 -14
  122. package/.claude/commands/maestro-ralph-execute.md +1 -2
  123. package/.claude/commands/maestro-ralph.md +18 -20
  124. package/.claude/commands/maestro-roadmap.md +28 -2
  125. package/.claude/commands/maestro-swarm-workflow.md +2 -2
  126. package/.claude/commands/maestro-tools-register.md +2 -2
  127. package/.claude/commands/maestro-ui-codify.md +20 -0
  128. package/.claude/commands/maestro-update.md +59 -116
  129. package/.claude/commands/maestro.md +6 -3
  130. package/.claude/commands/manage-codebase-rebuild.md +3 -3
  131. package/.claude/commands/manage-harvest.md +1 -1
  132. package/.claude/commands/manage-knowhow-capture.md +3 -2
  133. package/.claude/commands/manage-knowhow.md +3 -1
  134. package/.claude/commands/manage-wiki.md +17 -8
  135. package/.claude/commands/quality-auto-test.md +3 -3
  136. package/.claude/commands/quality-debug.md +4 -4
  137. package/.claude/commands/quality-refactor.md +2 -2
  138. package/.claude/commands/quality-retrospective.md +5 -5
  139. package/.claude/commands/quality-review.md +4 -4
  140. package/.claude/commands/quality-sync.md +1 -0
  141. package/.claude/commands/quality-test.md +4 -4
  142. package/.claude/commands/spec-add.md +6 -4
  143. package/.claude/commands/spec-setup.md +1 -1
  144. package/.claude/skills/maestro-help/SKILL.md +5 -6
  145. package/.claude/skills/maestro-help/index/catalog.json +7 -9
  146. package/.claude/skills/maestro-help/phases/02-search-present.md +2 -4
  147. package/.claude/skills/maestro-help/phases/03-workflow-guide.md +7 -8
  148. package/.codex/skills/codify-to-knowhow/SKILL.md +5 -4
  149. package/.codex/skills/learn-decompose/SKILL.md +1 -1
  150. package/.codex/skills/learn-follow/SKILL.md +1 -1
  151. package/.codex/skills/learn-investigate/SKILL.md +1 -1
  152. package/.codex/skills/learn-second-opinion/SKILL.md +1 -1
  153. package/.codex/skills/maestro/SKILL.md +29 -31
  154. package/.codex/skills/maestro-analyze/SKILL.md +16 -3
  155. package/.codex/skills/maestro-blueprint/SKILL.md +8 -1
  156. package/.codex/skills/maestro-brainstorm/SKILL.md +8 -5
  157. package/.codex/skills/maestro-companion/SKILL.md +2 -2
  158. package/.codex/skills/maestro-composer/SKILL.md +0 -1
  159. package/.codex/skills/maestro-execute/SKILL.md +11 -8
  160. package/.codex/skills/maestro-fork/SKILL.md +4 -0
  161. package/.codex/skills/maestro-grill/SKILL.md +8 -2
  162. package/.codex/skills/maestro-help/SKILL.md +6 -9
  163. package/.codex/skills/maestro-help/catalog.json +6 -8
  164. package/.codex/skills/maestro-impeccable/SKILL.md +2 -0
  165. package/.codex/skills/maestro-init/SKILL.md +3 -0
  166. package/.codex/skills/maestro-merge/SKILL.md +5 -1
  167. package/.codex/skills/maestro-milestone-audit/SKILL.md +3 -0
  168. package/.codex/skills/maestro-milestone-complete/SKILL.md +6 -1
  169. package/.codex/skills/maestro-milestone-release/SKILL.md +4 -0
  170. package/.codex/skills/maestro-next/SKILL.md +3 -4
  171. package/.codex/skills/maestro-plan/SKILL.md +5 -2
  172. package/.codex/skills/maestro-quick/SKILL.md +4 -1
  173. package/.codex/skills/maestro-ralph/SKILL.md +14 -20
  174. package/.codex/skills/maestro-ralph-beta/SKILL.md +13 -21
  175. package/.codex/skills/maestro-ralph-execute/SKILL.md +2 -2
  176. package/.codex/skills/maestro-roadmap/SKILL.md +5 -2
  177. package/.codex/skills/maestro-tools-register/SKILL.md +1 -1
  178. package/.codex/skills/maestro-ui-codify/SKILL.md +4 -1
  179. package/.codex/skills/maestro-update/SKILL.md +35 -130
  180. package/.codex/skills/manage-codebase-rebuild/SKILL.md +2 -2
  181. package/.codex/skills/manage-harvest/SKILL.md +2 -2
  182. package/.codex/skills/manage-knowhow/SKILL.md +1 -1
  183. package/.codex/skills/manage-status/SKILL.md +1 -2
  184. package/.codex/skills/quality-auto-test/SKILL.md +2 -2
  185. package/.codex/skills/quality-debug/SKILL.md +2 -2
  186. package/.codex/skills/quality-refactor/SKILL.md +1 -1
  187. package/.codex/skills/quality-retrospective/SKILL.md +1 -1
  188. package/.codex/skills/quality-test/SKILL.md +3 -4
  189. package/.codex/skills/spec-add/SKILL.md +5 -3
  190. package/.codex/skills/spec-remove/SKILL.md +2 -2
  191. package/.codex/skills/team-coordinate/SKILL.md +1 -1
  192. package/.codex/skills/wiki-digest/SKILL.md +2 -2
  193. package/chains/brainstorm-driven.json +2 -34
  194. package/chains/full-lifecycle.json +2 -34
  195. package/chains/next-milestone.json +0 -7
  196. package/chains/quality-loop.json +3 -19
  197. package/chains/roadmap-driven.json +2 -34
  198. package/chains/spec-driven.json +2 -34
  199. package/chains/ui-craft-build.json +2 -23
  200. package/dashboard/dist-server/dashboard/src/server/coordinator/chain-map.js +8 -11
  201. package/dashboard/dist-server/dashboard/src/server/coordinator/chain-map.js.map +1 -1
  202. package/dashboard/dist-server/dashboard/src/server/wiki/spec-entry-parser.d.ts +1 -0
  203. package/dashboard/dist-server/dashboard/src/server/wiki/spec-entry-parser.js +3 -1
  204. package/dashboard/dist-server/dashboard/src/server/wiki/spec-entry-parser.js.map +1 -1
  205. package/dashboard/dist-server/dashboard/src/server/wiki/stress.test.js +1 -0
  206. package/dashboard/dist-server/dashboard/src/server/wiki/stress.test.js.map +1 -1
  207. package/dashboard/dist-server/dashboard/src/server/wiki/virtual-wiki-adapters.js +9 -0
  208. package/dashboard/dist-server/dashboard/src/server/wiki/virtual-wiki-adapters.js.map +1 -1
  209. package/dashboard/dist-server/dashboard/src/server/wiki/wiki-indexer.js +9 -4
  210. package/dashboard/dist-server/dashboard/src/server/wiki/wiki-indexer.js.map +1 -1
  211. package/dashboard/dist-server/dashboard/src/server/wiki/wiki-types.d.ts +3 -0
  212. package/dashboard/dist-server/dashboard/src/server/wiki/writer.d.ts +4 -0
  213. package/dashboard/dist-server/dashboard/src/server/wiki/writer.js +5 -3
  214. package/dashboard/dist-server/dashboard/src/server/wiki/writer.js.map +1 -1
  215. package/dashboard/dist-server/src/types/index.d.ts +2 -0
  216. package/dist/src/cli.js +1 -0
  217. package/dist/src/cli.js.map +1 -1
  218. package/dist/src/commands/hooks.d.ts.map +1 -1
  219. package/dist/src/commands/hooks.js +55 -5
  220. package/dist/src/commands/hooks.js.map +1 -1
  221. package/dist/src/commands/install-backend.d.ts.map +1 -1
  222. package/dist/src/commands/install-backend.js +2 -1
  223. package/dist/src/commands/install-backend.js.map +1 -1
  224. package/dist/src/commands/install.d.ts.map +1 -1
  225. package/dist/src/commands/install.js +16 -1
  226. package/dist/src/commands/install.js.map +1 -1
  227. package/dist/src/commands/kg.d.ts +1 -1
  228. package/dist/src/commands/kg.d.ts.map +1 -1
  229. package/dist/src/commands/kg.js +285 -112
  230. package/dist/src/commands/kg.js.map +1 -1
  231. package/dist/src/commands/knowhow.d.ts.map +1 -1
  232. package/dist/src/commands/knowhow.js +28 -37
  233. package/dist/src/commands/knowhow.js.map +1 -1
  234. package/dist/src/commands/ralph.js +1 -1
  235. package/dist/src/commands/ralph.js.map +1 -1
  236. package/dist/src/commands/search.d.ts +36 -0
  237. package/dist/src/commands/search.d.ts.map +1 -0
  238. package/dist/src/commands/search.js +120 -0
  239. package/dist/src/commands/search.js.map +1 -0
  240. package/dist/src/commands/spec.d.ts.map +1 -1
  241. package/dist/src/commands/spec.js +15 -59
  242. package/dist/src/commands/spec.js.map +1 -1
  243. package/dist/src/commands/update.d.ts.map +1 -1
  244. package/dist/src/commands/update.js +7 -0
  245. package/dist/src/commands/update.js.map +1 -1
  246. package/dist/src/commands/wiki.d.ts.map +1 -1
  247. package/dist/src/commands/wiki.js +6 -21
  248. package/dist/src/commands/wiki.js.map +1 -1
  249. package/dist/src/core/component-defs.d.ts +13 -0
  250. package/dist/src/core/component-defs.d.ts.map +1 -1
  251. package/dist/src/core/component-defs.js +37 -85
  252. package/dist/src/core/component-defs.js.map +1 -1
  253. package/dist/src/core/skill-converter.d.ts +25 -0
  254. package/dist/src/core/skill-converter.d.ts.map +1 -0
  255. package/dist/src/core/skill-converter.js +605 -0
  256. package/dist/src/core/skill-converter.js.map +1 -0
  257. package/dist/src/graph/codegraph-adapter.d.ts +147 -0
  258. package/dist/src/graph/codegraph-adapter.d.ts.map +1 -0
  259. package/dist/src/graph/codegraph-adapter.js +266 -0
  260. package/dist/src/graph/codegraph-adapter.js.map +1 -0
  261. package/dist/src/hooks/constants.d.ts +4 -0
  262. package/dist/src/hooks/constants.d.ts.map +1 -1
  263. package/dist/src/hooks/constants.js +14 -1
  264. package/dist/src/hooks/constants.js.map +1 -1
  265. package/dist/src/hooks/context-format.d.ts +46 -0
  266. package/dist/src/hooks/context-format.d.ts.map +1 -0
  267. package/dist/src/hooks/context-format.js +58 -0
  268. package/dist/src/hooks/context-format.js.map +1 -0
  269. package/dist/src/hooks/index.d.ts +2 -0
  270. package/dist/src/hooks/index.d.ts.map +1 -1
  271. package/dist/src/hooks/index.js +2 -0
  272. package/dist/src/hooks/index.js.map +1 -1
  273. package/dist/src/hooks/keyword-spec-injector.d.ts +1 -1
  274. package/dist/src/hooks/keyword-spec-injector.d.ts.map +1 -1
  275. package/dist/src/hooks/keyword-spec-injector.js +92 -7
  276. package/dist/src/hooks/keyword-spec-injector.js.map +1 -1
  277. package/dist/src/hooks/kg-context-injector.d.ts +19 -0
  278. package/dist/src/hooks/kg-context-injector.d.ts.map +1 -0
  279. package/dist/src/hooks/kg-context-injector.js +139 -0
  280. package/dist/src/hooks/kg-context-injector.js.map +1 -0
  281. package/dist/src/hooks/kg-sync-hook.d.ts +22 -0
  282. package/dist/src/hooks/kg-sync-hook.d.ts.map +1 -0
  283. package/dist/src/hooks/kg-sync-hook.js +139 -0
  284. package/dist/src/hooks/kg-sync-hook.js.map +1 -0
  285. package/dist/src/hooks/plugins/spec-injection-plugin.js +2 -2
  286. package/dist/src/hooks/plugins/spec-injection-plugin.js.map +1 -1
  287. package/dist/src/hooks/skill-context.d.ts.map +1 -1
  288. package/dist/src/hooks/skill-context.js +0 -1
  289. package/dist/src/hooks/skill-context.js.map +1 -1
  290. package/dist/src/hooks/spec-injector.d.ts.map +1 -1
  291. package/dist/src/hooks/spec-injector.js +66 -13
  292. package/dist/src/hooks/spec-injector.js.map +1 -1
  293. package/dist/src/hooks/statusline.d.ts +8 -1
  294. package/dist/src/hooks/statusline.d.ts.map +1 -1
  295. package/dist/src/hooks/statusline.js +45 -29
  296. package/dist/src/hooks/statusline.js.map +1 -1
  297. package/dist/src/hooks/wiki-role-loader.js +1 -1
  298. package/dist/src/hooks/wiki-role-loader.js.map +1 -1
  299. package/dist/src/ralph/cmd-skills.d.ts.map +1 -1
  300. package/dist/src/ralph/cmd-skills.js +9 -2
  301. package/dist/src/ralph/cmd-skills.js.map +1 -1
  302. package/dist/src/ralph/skill-scanner.d.ts +1 -1
  303. package/dist/src/ralph/skill-scanner.d.ts.map +1 -1
  304. package/dist/src/ralph/skill-scanner.js +14 -0
  305. package/dist/src/ralph/skill-scanner.js.map +1 -1
  306. package/dist/src/ralph/status-schema.d.ts +1 -1
  307. package/dist/src/ralph/status-schema.d.ts.map +1 -1
  308. package/dist/src/tools/spec-entry-parser.d.ts +2 -1
  309. package/dist/src/tools/spec-entry-parser.d.ts.map +1 -1
  310. package/dist/src/tools/spec-entry-parser.js +7 -4
  311. package/dist/src/tools/spec-entry-parser.js.map +1 -1
  312. package/dist/src/tools/spec-loader.d.ts.map +1 -1
  313. package/dist/src/tools/spec-loader.js +27 -3
  314. package/dist/src/tools/spec-loader.js.map +1 -1
  315. package/dist/src/tools/spec-writer.d.ts +10 -1
  316. package/dist/src/tools/spec-writer.d.ts.map +1 -1
  317. package/dist/src/tools/spec-writer.js +86 -7
  318. package/dist/src/tools/spec-writer.js.map +1 -1
  319. package/dist/src/tools/store-knowhow.d.ts.map +1 -1
  320. package/dist/src/tools/store-knowhow.js +27 -7
  321. package/dist/src/tools/store-knowhow.js.map +1 -1
  322. package/dist/src/tui/install-ui/ExecutionView.d.ts.map +1 -1
  323. package/dist/src/tui/install-ui/ExecutionView.js +7 -1
  324. package/dist/src/tui/install-ui/ExecutionView.js.map +1 -1
  325. package/dist/src/tui/install-ui/InstallExecution.d.ts.map +1 -1
  326. package/dist/src/tui/install-ui/InstallExecution.js +5 -1
  327. package/dist/src/tui/install-ui/InstallExecution.js.map +1 -1
  328. package/dist/src/types/index.d.ts +2 -0
  329. package/dist/src/types/index.d.ts.map +1 -1
  330. package/dist/src/utils/cli-format.d.ts +6 -0
  331. package/dist/src/utils/cli-format.d.ts.map +1 -1
  332. package/dist/src/utils/cli-format.js +25 -0
  333. package/dist/src/utils/cli-format.js.map +1 -1
  334. package/dist/src/utils/update-notices.js +19 -0
  335. package/dist/src/utils/update-notices.js.map +1 -1
  336. package/package.json +5 -2
  337. package/templates/workflows/specs/node-catalog.md +0 -2
  338. package/workflows/analyze.md +9 -4
  339. package/workflows/auto-test.md +2 -2
  340. package/workflows/business-test.md +1 -1
  341. package/workflows/claude-instructions.md +23 -11
  342. package/workflows/codex-instructions.md +2 -3
  343. package/workflows/execute.md +153 -7
  344. package/workflows/fork.md +1 -1
  345. package/workflows/integration-test.md +1 -1
  346. package/workflows/maestro-super.md +1 -1
  347. package/workflows/maestro.codex.md +18 -34
  348. package/workflows/maestro.md +34 -42
  349. package/workflows/review.md +1 -1
  350. package/workflows/status.md +2 -2
  351. package/workflows/swarm/wf-verify.js +1 -1
  352. package/workflows/test-gen.md +2 -2
  353. package/workflows/test.md +1 -1
  354. package/workflows/updates/README.md +41 -0
  355. package/workflows/updates/update-v3-setup.md +79 -0
  356. package/workflows/verify.md +7 -1
  357. package/.agents/skills/learn-retro/SKILL.md +0 -159
  358. package/.agents/skills/maestro-learn/SKILL.md +0 -142
  359. package/.agents/skills/maestro-verify/SKILL.md +0 -146
  360. package/.agents/skills/manage-codebase-refresh/SKILL.md +0 -62
  361. package/.agents/skills/manage-learn/SKILL.md +0 -67
  362. package/.agents/skills/wiki-connect/SKILL.md +0 -64
  363. package/.agents/skills/wiki-digest/SKILL.md +0 -70
  364. package/.agy/skills/learn-retro/SKILL.md +0 -159
  365. package/.agy/skills/maestro-learn/SKILL.md +0 -142
  366. package/.agy/skills/maestro-verify/SKILL.md +0 -146
  367. package/.agy/skills/manage-codebase-refresh/SKILL.md +0 -62
  368. package/.agy/skills/manage-learn/SKILL.md +0 -64
  369. package/.agy/skills/wiki-connect/SKILL.md +0 -64
  370. package/.agy/skills/wiki-digest/SKILL.md +0 -70
  371. package/.claude/commands/learn-retro.md +0 -157
  372. package/.claude/commands/maestro-learn.md +0 -140
  373. package/.claude/commands/maestro-verify.md +0 -144
  374. package/.claude/commands/manage-codebase-refresh.md +0 -60
  375. package/.claude/commands/manage-learn.md +0 -65
  376. package/.claude/commands/wiki-connect.md +0 -62
  377. package/.claude/commands/wiki-digest.md +0 -68
  378. package/.codex/skills/maestro-verify/SKILL.md +0 -254
  379. package/chains/execute-verify.json +0 -59
  380. package/chains/singles/verify.json +0 -26
@@ -164,6 +164,9 @@ Each wave generates `wave-{N}.csv` with extra `prev_context` column populated fr
164
164
  8. **Max 3 Fix Attempts**: Per task, auto-fix convergence failures up to 3 times, then mark blocked
165
165
  9. **Breakpoint Resume**: Always detect completed tasks and skip them on re-run
166
166
  10. **DO NOT STOP**: Continuous execution until all waves complete or user explicitly stops
167
+ 11. **Invariant violation = BLOCK** — violating any invariant above blocks the current operation.
168
+ 12. **Evidence required in task summaries** — task summaries MUST include: files actually modified (not just planned targets), convergence criteria verification results (pass/fail with evidence), any deviations from plan with rationale. "Task completed successfully" without evidence is INVALID.
169
+ 13. **Artifact verification before completion** — for each completed task, .summaries/TASK-{NNN}-summary.md MUST exist with concrete evidence. EXC artifact MUST be registered in state.json. If any missing: DO NOT report completion.
167
170
  </invariants>
168
171
 
169
172
  <execution>
@@ -233,7 +236,7 @@ If exit code is 1, present warnings and ask whether to proceed.
233
236
 
234
237
  7. **Load codebase + wiki context** (optional, passed to all agents):
235
238
  - If `.workflow/codebase/ARCHITECTURE.md` exists: read and include as `codebase_context` in agent instructions
236
- - Run `maestro wiki search "<phase keywords>" --json 2>/dev/null`; if results: include top 5 entries as `wiki_context`
239
+ - Run `maestro search "<phase keywords>" --json 2>/dev/null`; if results: include top 5 entries as `wiki_context`
237
240
  - Both are optional — proceed without if unavailable
238
241
 
239
242
  7. **User validation**: Display task/wave breakdown. Skip if AUTO_YES.
@@ -347,24 +350,24 @@ Blocked/failed tasks cascade: mark all downstream dependents as `skipped` with e
347
350
  4. **Register EXC artifact in state.json**: Find matching plan artifact, create `{ id: "EXC-{next_id}", type: "execute", milestone, phase, scope, path, status: "completed", depends_on: plan_artifact.id, harvested: false, created_at, completed_at }`. `milestone` MUST come from D-007 `phase_slugs` reverse lookup (numeric phase) — inherit from matching plan artifact if available, otherwise reverse-lookup directly.
348
351
 
349
352
  5. **Extract incremental specs**: Read `.summaries/`, use `maestro spec add` CLI:
350
- - Learnings/pitfalls → `maestro spec add learning "<title>" "<content>" --keywords ... --source execute:{PLAN_DIR}`
351
- - Design rationale → `maestro spec add coding "<title>" "<content>" --keywords ...`
352
- - Root cause/workaround → `maestro spec add debug "<title>" "<content>" --keywords ...`
353
+ - Learnings/pitfalls → `maestro spec add learning "<title>" "<content>" --keywords ... --description "<summary>" --source execute:{PLAN_DIR}`
354
+ - Design rationale → `maestro spec add coding "<title>" "<content>" --keywords ... --description "<summary>"`
355
+ - Root cause/workaround → `maestro spec add debug "<title>" "<content>" --keywords ... --description "<summary>"`
353
356
  Mark artifact `harvested: true`
354
357
 
355
358
  6. **Post-task Knowledge Inquiry**: After each task completes, evaluate inquiry triggers:
356
359
 
357
360
  - **Execution deviation**: If task summary mentions approach change, dependency swap, or plan deviation:
358
361
  → Prompt: "TASK-{NNN} deviated from the plan. Record as architecture constraint?"
359
- → On confirm: `maestro spec add arch "<decision>" "<rationale>" --keywords ... --source execute:{PLAN_DIR}`
362
+ → On confirm: `maestro spec add arch "<decision>" "<rationale>" --keywords ... --description "<summary>" --source execute:{PLAN_DIR}`
360
363
 
361
364
  - **Retry success**: If task required >=2 retries before completion:
362
365
  → Prompt: "TASK-{NNN} succeeded after {N} retries. Document this fix pattern?"
363
- → On confirm: `maestro spec add debug "<pattern>" "<content>" --keywords ... --source execute:{PLAN_DIR}`
366
+ → On confirm: `maestro spec add debug "<pattern>" "<content>" --keywords ... --description "<summary>" --source execute:{PLAN_DIR}`
364
367
 
365
368
  - **Implicit knowledge**: If task summary contains design rationale ("chose X because", "rejected Y due to"):
366
369
  → Prompt: "Design decision detected. Record as a learning?"
367
- → On confirm: `maestro spec add learning "<decision>" "<rationale>" --keywords ... --source execute:{PLAN_DIR}`
370
+ → On confirm: `maestro spec add learning "<decision>" "<rationale>" --keywords ... --description "<summary>" --source execute:{PLAN_DIR}`
368
371
 
369
372
  Use `request_user_input` for prompts:
370
373
  ```json
@@ -375,7 +378,7 @@ Blocked/failed tasks cascade: mark all downstream dependents as `skipped` with e
375
378
 
376
379
  8. **Auto-sync** (if config.json.codebase.auto_sync_after_execute == true): detect changed files, trigger codebase doc update.
377
380
 
378
- 9. **Display completion report**: Phase, completed/blocked counts, wave progress, paths to `.summaries/` and `.task/`, next step suggestions (`maestro-verify`, `manage-status`).
381
+ 9. **Display completion report**: Phase, completed/blocked counts, wave progress, paths to `.summaries/` and `.task/`, next step suggestions (`quality-review`, `manage-status`).
379
382
 
380
383
  ### Shared Discovery Board Protocol
381
384
 
@@ -125,6 +125,10 @@ Presence of `worktree-scope.json` signals "inside a worktree" — used by E003 v
125
125
  - Sync → resume work in worktree
126
126
  </execution>
127
127
 
128
+ <invariants>
129
+ **Artifact verification** — worktree-scope.json, scoped state.json, and worktrees.json registry update MUST all complete. If any missing: DO NOT report completion.
130
+ </invariants>
131
+
128
132
  <error_codes>
129
133
  | Code | Severity | Condition | Recovery |
130
134
  |------|----------|-----------|----------|
@@ -42,7 +42,7 @@ $ARGUMENTS -- topic/plan text for interactive mode, or --from source for upstrea
42
42
  **Produced files**: `grill-report.md`, `terminology.md`, `context-package.json`
43
43
 
44
44
  ### Role Knowledge
45
- `maestro wiki search "{topic keywords}"` → load relevant entries before grilling.
45
+ `maestro search "{topic keywords}"` → load relevant entries before grilling.
46
46
  `maestro spec load --category arch` → load architecture constraints.
47
47
  </context>
48
48
 
@@ -83,12 +83,18 @@ Resume routing:
83
83
  - More branches to walk → `$maestro-grill "{topic}" -c`
84
84
  </execution>
85
85
 
86
+ <invariants>
87
+ 1. **Invariant violation = BLOCK** — violating any invariant above blocks the current operation.
88
+ 2. **Code-grounded questions required** — grill questions MUST reference specific code (file:line) when challenging the user's proposal. Generic questions without code grounding are INVALID. If codebase scan failed, flag ALL locked decisions as LOW CONFIDENCE.
89
+ 3. **Artifact verification before completion** — verify grill-report.md (with Branch Log + Q&A + synthesis), terminology.md (≥5 terms), and context-package.json all exist before reporting completion. If any missing: DO NOT report completion.
90
+ </invariants>
91
+
86
92
  <error_codes>
87
93
  | Code | Severity | Condition | Recovery |
88
94
  |------|----------|-----------|----------|
89
95
  | E001 | error | No topic/plan and no --from/--continue flag | Prompt user for topic text |
90
96
  | E002 | error | --session ID not found | Show available sessions |
91
- | W001 | warning | Codebase scan failed or returned empty | Continue without code grounding, note limitation |
97
+ | W001 | warning | Codebase scan failed or returned empty | Retry once. If still fails: flag ALL subsequent locked decisions as LOW CONFIDENCE |
92
98
  | W002 | warning | CLI exploration timeout in auto mode | Skip question, mark as open |
93
99
  | W003 | warning | Max branch depth reached without resolution | Force synthesis, offer continuation |
94
100
  </error_codes>
@@ -95,7 +95,7 @@ Mode 3 (Smart Recommendations) 需要检测项目状态:
95
95
  4. 如有对应 guide 文档,读取相关段落
96
96
 
97
97
  Guide 映射:
98
- - analyze/plan/execute/verify → `guide/command-usage-guide.md`
98
+ - analyze/plan/execute → `guide/command-usage-guide.md`
99
99
  - init/roadmap/blueprint → `guide/quick-start-guide.md`
100
100
  - ralph → `guide/maestro-ralph-guide.md`
101
101
  - maestro (协调器) → `guide/maestro-coordinator-guide.md`
@@ -115,9 +115,7 @@ Guide 映射:
115
115
  | roadmap 完成,phase=pending | `/maestro-analyze 1` | 微观分析:Phase 级深入探索 |
116
116
  | analyze (微观) 完成 | `/maestro-plan 1` | Phase 级规划 |
117
117
  | plan 完成 | `/maestro-execute` | 开始执行 |
118
- | execute 完成 | `/maestro-verify` | 验证成果 |
119
- | verify 有 gaps | `/maestro-analyze --gaps` | 重新分析 |
120
- | verify 通过 | `/quality-review` | 进入质量管线 |
118
+ | execute 完成 | `/quality-review` | 进入质量管线 |
121
119
  | quality 全通过 | `/maestro-milestone-audit` | 里程碑审计 |
122
120
  | 所有 Phase 完成 | `/maestro-milestone-complete` | 关闭里程碑 |
123
121
 
@@ -126,16 +124,16 @@ Guide 映射:
126
124
  根据任务类型推荐工作流和命令序列:
127
125
 
128
126
  **Path A — 完整新项目**:
129
- - `brainstorm` → `blueprint`(可选) → `analyze "topic"`(宏观) → `roadmap` → `analyze 1`(微观) → `plan 1` → `execute` → `verify`
127
+ - `brainstorm` → `blueprint`(可选) → `analyze "topic"`(宏观) → `roadmap` → `analyze 1`(微观) → `plan 1` → `execute` → `quality-review`
130
128
 
131
129
  **Path B — 旧项目大功能**:
132
- - `analyze "feature X"`(宏观) → `roadmap` → `analyze 1`(微观) → `plan 1` → `execute` → `verify`
130
+ - `analyze "feature X"`(宏观) → `roadmap` → `analyze 1`(微观) → `plan 1` → `execute` → `quality-review`
133
131
 
134
132
  **Path C — 中等功能(跳过 roadmap)**:
135
- - `analyze "feature X"` → `plan --from analyze:ANL-xxx` → `execute` → `verify`
133
+ - `analyze "feature X"` → `plan --from analyze:ANL-xxx` → `execute` → `quality-review`
136
134
 
137
135
  **Path D — 小改动**:
138
- - `plan "fix auth bug"` → `execute` → `verify`
136
+ - `plan "fix auth bug"` → `execute` → `quality-review`
139
137
  - 快速: `/maestro-quick "功能描述"`
140
138
  - 全自动: `/maestro -y "功能描述"`
141
139
 
@@ -165,7 +163,6 @@ Guide 映射:
165
163
  | `/maestro-roadmap` | 路线图编排 | scope_verdict=large 时,Milestone > Phase 分解 |
166
164
  | `/maestro-plan` | 规划 | 分析完成后,支持 `--from analyze:ANL-xxx` 直达 |
167
165
  | `/maestro-execute` | 执行 | 计划完成后 |
168
- | `/maestro-verify` | 验证 | 执行完成后 |
169
166
  | `/maestro-quick` | 快速任务 | 简单任务跳过管线 |
170
167
 
171
168
  快速上手路径:
@@ -13,8 +13,7 @@
13
13
  {"name": "maestro-analyze", "command": "/maestro-analyze", "category": "pipeline", "description": "双层分析 — 宏观(文本参数)探索影响面+scope_verdict / 微观(数字参数)Phase 级深入", "source": "../../commands/maestro-analyze.md"},
14
14
  {"name": "maestro-plan", "command": "/maestro-plan", "category": "pipeline", "description": "任务规划 — 支持 --from analyze:ANL-xxx 直达、碰撞检测、gap 修复计划", "source": "../../commands/maestro-plan.md"},
15
15
  {"name": "maestro-execute", "command": "/maestro-execute", "category": "pipeline", "description": "任务执行 — wave 并行执行、delegate 编排、自动提交", "source": "../../commands/maestro-execute.md"},
16
- {"name": "maestro-verify", "command": "/maestro-verify", "category": "pipeline", "description": "验证确认成果检查、gap 发现、下一阶段建议", "source": "../../commands/maestro-verify.md"},
17
- {"name": "maestro-quick", "command": "/maestro-quick", "category": "core", "description": "快速任务 — 跳过 Phase 管线直接完成,支持 --full/--discuss 模式", "source": "../../commands/maestro-quick.md"},
16
+ {"name": "maestro-quick", "command": "/maestro-quick", "category": "core", "description": "快速任务跳过 Phase 管线直接完成,支持 --full/--discuss 模式", "source": "../../commands/maestro-quick.md"},
18
17
  {"name": "maestro-overlay", "command": "/maestro-overlay", "category": "core", "description": "Overlay 管理 — 创建、查看、删除命令补丁", "source": "../../commands/maestro-overlay.md"},
19
18
  {"name": "maestro-amend", "command": "/maestro-amend", "category": "core", "description": "修正补丁 — 从工作流信号自动生成 overlay", "source": "../../commands/maestro-amend.md"},
20
19
  {"name": "maestro-fork", "command": "/maestro-fork", "category": "worktree", "description": "Worktree 分叉 — 基于 milestone 创建隔离开发环境", "source": "../../commands/maestro-fork.md"},
@@ -154,7 +153,6 @@
154
153
  "/maestro-roadmap",
155
154
  "/maestro-plan",
156
155
  "/maestro-execute",
157
- "/maestro-verify",
158
156
  "/maestro-quick"
159
157
  ],
160
158
  "workflows": {
@@ -168,16 +166,16 @@
168
166
  }
169
167
  },
170
168
  "paths": {
171
- "A_full_project": "brainstorm → blueprint(可选) → analyze 宏观 → roadmap → analyze 微观 → plan → execute → verify",
172
- "B_large_feature": "analyze 宏观 → roadmap → analyze 微观 → plan → execute → verify",
173
- "C_medium_feature": "analyze 宏观 → plan --from analyze:ANL-xxx → execute → verify",
174
- "D_small_fix": "plan → execute → verify",
169
+ "A_full_project": "brainstorm → blueprint(可选) → analyze 宏观 → roadmap → analyze 微观 → plan → execute → quality-review",
170
+ "B_large_feature": "analyze 宏观 → roadmap → analyze 微观 → plan → execute → quality-review",
171
+ "C_medium_feature": "analyze 宏观 → plan --from analyze:ANL-xxx → execute → quality-review",
172
+ "D_small_fix": "plan → execute → quality-review",
175
173
  "E_spec_only": "blueprint → (供人阅读)",
176
174
  "F_explore_only": "brainstorm → (供人决策)"
177
175
  },
178
176
  "main_pipeline": {
179
177
  "name": "主干管线",
180
- "phases": ["analyze", "plan", "execute", "verify"],
178
+ "phases": ["analyze", "plan", "execute"],
181
179
  "quality": ["quality-auto-test", "quality-review", "quality-test"],
182
180
  "close": ["maestro-milestone-audit", "maestro-milestone-complete"]
183
181
  },
@@ -153,6 +153,8 @@ Layer 1+2 both did not match, but intent is to build/create a specific thing:
153
153
  2. Read workflow file before execution — never execute a command without loading its .md
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
+ 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.
156
158
  </invariants>
157
159
 
158
160
  ## Prerequisites
@@ -155,4 +155,7 @@ Display created files and next steps: `$maestro-blueprint` (full spec), `$maestr
155
155
  - [ ] `config.json` written with configuration
156
156
  - [ ] `specs/` initialized with convention files
157
157
  - [ ] Completion report displayed with next steps
158
+
159
+ ### Artifact Verification
160
+ Before reporting completion, verify: .workflow/project.md, .workflow/state.json, .workflow/config.json all exist. If any missing: DO NOT report completion.
158
161
  </success_criteria>
@@ -41,13 +41,17 @@ $ARGUMENTS — milestone number and optional flags.
41
41
  Follow '~/.maestro/workflows/merge.md' completely.
42
42
 
43
43
  **Knowledge inquiry on completion:**
44
- After successful merge, ask user once: "Record milestone learnings?" If yes, persist via `maestro spec add learning "<title>" "<insight>" --keywords <kw1>,<kw2>`.
44
+ After successful merge, ask user once: "Record milestone learnings?" If yes, persist via `maestro spec add learning "<title>" "<insight>" --keywords <kw1>,<kw2> --description "<summary>"`.
45
45
 
46
46
  **Next steps:**
47
47
  - View dashboard → `$manage-status`
48
48
  - Audit milestone → `$maestro-milestone-audit`
49
49
  </execution>
50
50
 
51
+ <invariants>
52
+ **Phase order enforcement** — git merge MUST complete before artifact sync. Do NOT sync artifacts until git merge succeeds — prevents partial state corruption.
53
+ </invariants>
54
+
51
55
  <error_codes>
52
56
  | Code | Severity | Condition | Recovery |
53
57
  |------|----------|-----------|----------|
@@ -67,6 +67,9 @@ id,title,description,scope,check_targets,deps,wave,status,findings,gaps_found,se
67
67
  2. **Non-blocking warnings** — missing analyze is warning, missing execute is error
68
68
  3. **Integration check is required** — always spawn checker via CSV wave
69
69
  4. **Clear verdict** — PASS or FAIL with specific reasons
70
+ 5. **Invariant violation = BLOCK** — violating any invariant above blocks the current operation.
71
+ 6. **Evidence required on audit checks** — every audit check result MUST cite what was examined and what was found. PASS: "Phase 1 chain complete: ANL-001 → PLN-001 → EXC-001". FAIL: "Phase 2 missing EXC artifact". Do NOT mark checks as PASS without verifying the artifact exists and contains expected content.
72
+ 7. **Artifact verification before completion** — audit-report.md with clear PASS/FAIL verdict MUST exist before reporting completion. If missing: DO NOT report completion.
70
73
  </invariants>
71
74
 
72
75
  <execution>
@@ -27,6 +27,7 @@ $maestro-milestone-complete --force "M1" # skip audit check
27
27
  3. **Learnings are mandatory** — always extract before archiving
28
28
  4. **Clean after archive** — remove scratch dirs only after successful copy
29
29
  5. **Advance state** — always set next milestone or mark project complete
30
+ 6. **Prerequisite enforcement** — audit report MUST be verified as PASS before archival proceeds. Artifact verification: milestones/{M}/artifacts/ directory, milestone_history in state.json, project.md update all MUST exist before reporting completion.
30
31
  </invariants>
31
32
 
32
33
  <execution>
@@ -77,8 +78,12 @@ Snapshot `roadmap.md` as `roadmap-snapshot.md` in the milestone archive.
77
78
 
78
79
  **Write**: Append to `.workflow/specs/learnings.md` using `<spec-entry>` closed-tag format:
79
80
  ```
80
- <spec-entry category="learning" keywords="kw1, kw2" date="YYYY-MM-DD" source="milestone-complete:{milestone}">
81
+ <spec-entry category="learning" keywords="kw1, kw2" date="YYYY-MM-DD" title="{title}" description="{one-line summary}" source="milestone-complete:{milestone}">
82
+
83
+ ### {title}
84
+
81
85
  Learning content here.
86
+
82
87
  </spec-entry>
83
88
  ```
84
89
 
@@ -46,6 +46,10 @@ Changelog: {N} entries
46
46
  ```
47
47
  </execution>
48
48
 
49
+ <invariants>
50
+ **Prerequisite enforcement** — milestone MUST be completed (audit PASS + milestone-complete run). Working tree MUST be clean. Artifact verification: CHANGELOG.md entry, version manifest update, release commit, git tag (unless --no-tag) all MUST exist before reporting completion.
51
+ </invariants>
52
+
49
53
  <error_codes>
50
54
  | Code | Severity | Condition | Recovery |
51
55
  |------|----------|-----------|----------|
@@ -130,8 +130,7 @@ ls -la .workflow/.maestro/ 2>/dev/null | head -5 # 进行中的 session
130
130
  | 有 roadmap,未启动 phase | analyze | `maestro-analyze {phase}` |
131
131
  | 最新 artifact = analyze | plan | `maestro-plan {phase}` |
132
132
  | 最新 artifact = plan | execute | `maestro-execute {phase}` |
133
- | 最新 artifact = execute | verify | `maestro-verify {phase}` |
134
- | verify passed | review | `quality-review {phase}` |
133
+ | 最新 artifact = execute | review | `quality-review {phase}` |
135
134
  | review verdict=PASS | test-gen | `quality-auto-test {phase}` |
136
135
  | 测试全绿 | milestone-audit | `maestro-milestone-audit` |
137
136
  | 当前 milestone 全 phase 完成 | milestone-complete | `maestro-milestone-complete` |
@@ -140,7 +139,7 @@ ls -la .workflow/.maestro/ 2>/dev/null | head -5 # 进行中的 session
140
139
  **Maestro Lifecycle 主线:**
141
140
  ```
142
141
  brainstorm → blueprint → init → analyze-macro → roadmap
143
- → [per phase] analyze → plan → execute → verify
142
+ → [per phase] analyze → plan → execute
144
143
  → [quality gate] review → auto-test → test
145
144
  → milestone-audit → milestone-complete → milestone-release
146
145
  ```
@@ -175,7 +174,7 @@ brainstorm → blueprint → init → analyze-macro → roadmap
175
174
  | 分析 / analyze / 多维度调研 | `maestro-analyze` |
176
175
  | 规划 / plan / 任务分解 | `maestro-plan` |
177
176
  | 实现 / 执行 / execute | `maestro-execute` |
178
- | 验证 / verify / 验收 | `maestro-verify` |
177
+ | 验证 / verify / 验收 | `quality-review` |
179
178
  | 调试 / debug / 排查 / bug | `quality-debug` |
180
179
  | 审查 / review / 代码审查 | `quality-review` |
181
180
  | 测试 / test / UAT | `quality-test` / `quality-auto-test` |
@@ -88,7 +88,7 @@ Write resolved milestone into PLN artifact registration and `plan.json.milestone
88
88
  **Session**: `.workflow/.csv-wave/{YYYYMMDD}-plan-P{N}-{slug}/`
89
89
  **Scratch**: `.workflow/scratch/{YYYYMMDD}-plan-P{N}-{slug}/` (.task/ subdir)
90
90
 
91
- **Pre-load** (optional): context-package.json (via `--from`, takes precedence), context.md (prior analyze), conclusions.json, codebase ARCHITECTURE.md, `maestro wiki search`, `maestro spec load --category arch`, team preflight `maestro collab preflight`.
91
+ **Pre-load** (optional): context-package.json (via `--from`, takes precedence), context.md (prior analyze), conclusions.json, codebase ARCHITECTURE.md, `maestro search`, `maestro spec load --category arch`, team preflight `maestro collab preflight`.
92
92
  </context>
93
93
 
94
94
  <csv_schema>
@@ -108,6 +108,9 @@ Wave 1: N exploration rows (parallel). Wave 2: 1 planning row (sequential).
108
108
  3. **Discovery board append-only**: Never modify/delete
109
109
  4. **Skip on failure**: If all explorations fail, planner proceeds with available context
110
110
  5. **DO NOT STOP**: Continuous until all waves complete
111
+ 6. **Invariant violation = BLOCK** — violating any invariant above blocks the current operation.
112
+ 7. **Verifiable convergence criteria required** — every task MUST have convergence.criteria[] with grep-verifiable conditions (no subjective language like "well-structured" or "properly implemented"). If any task lacks verifiable criteria: DO NOT report completion — fix the criteria first.
113
+ 8. **Artifact verification before completion** — plan.json and .task/TASK-*.json files MUST exist. PLN artifact MUST be registered in state.json. If any missing: DO NOT report completion.
111
114
  </invariants>
112
115
 
113
116
  <state_machine>
@@ -226,7 +229,7 @@ Collision detection against same-milestone plans.
226
229
  | Condition | Recovery |
227
230
  |-----------|----------|
228
231
  | No args and no roadmap and no analyze artifact in state.json | Provide phase number, topic, or run analyze first |
229
- | --gaps but no gap source | Run maestro-verify first |
232
+ | --gaps but no gap source | Run maestro-execute first |
230
233
  | Planning agent fails | Retry once with simplified context |
231
234
  | Plan-checker exceeds 3 rounds | Accept with warnings |
232
235
  </error_codes>
@@ -51,7 +51,7 @@ Extract from arguments:
51
51
 
52
52
  Read `.workflow/state.json` and `.workflow/project.md` if they exist. If `.workflow/` does not exist, create minimal scratch structure anyway (quick works without full init).
53
53
 
54
- Load coding specs + tools if available: `maestro spec load --category coding`. If the task involves frontend/UI work (description contains component, page, style, layout, CSS, HTML, frontend), also run `maestro spec load --category ui`. Browse wiki: `maestro wiki list --category coding`, load relevant entries via `maestro wiki load <id>`. All optional — proceed without if unavailable.
54
+ Load coding specs + tools if available: `maestro spec load --category coding`. If the task involves frontend/UI work (description contains component, page, style, layout, CSS, HTML, frontend), also run `maestro spec load --category ui`. Browse wiki: `maestro search --category coding`, load relevant entries via `maestro wiki load <id>`. All optional — proceed without if unavailable.
55
55
 
56
56
  ### Step 3: Create Scratch Directory
57
57
 
@@ -106,6 +106,9 @@ Display report: task description, scratch path, status (completed/completed-with
106
106
 
107
107
  </execution>
108
108
 
109
+ ### Artifact Verification
110
+ Before reporting completion, verify: plan.json exists AND .summaries/TASK-*-summary.md exists for each task. Task summaries MUST include concrete evidence of completion. If missing: DO NOT report completion.
111
+
109
112
  <error_codes>
110
113
 
111
114
  | Code | Severity | Description | Recovery |
@@ -78,6 +78,8 @@ Remaining → intent
78
78
  10. **planning_mode governs arg granularity** — `unified` → skill args 无 `{phase}`;`independent` → 含 `{phase}`
79
79
  11. **task_decomposition 驱动 steps[] 动态生长** — `post-goal-audit` 按 unmet 子目标插入 scoped mini-loop;字段可选/累加,既有字段不删不改
80
80
  12. **Platform** — `session.platform = "codex"`;CLI 调用一律带 `--platform codex`
81
+ 13. **Invariant violation = BLOCK** — violating any invariant above blocks the current operation. Do NOT bypass for "efficiency" or "clear intent" reasons. Especially invariants about ralph never executing steps and completion_confirmed by CLI.
82
+ 14. **Delegate fallback must be marked** — when A_DELEGATE_EVALUATE verdict parse fails and falls back to "fix", MUST record `parse_failed: true, confidence_score: 0` in decisions.ndjson. Subsequent steps inherit LOW CONFIDENCE flag.
81
83
  </invariants>
82
84
 
83
85
  <state_machine>
@@ -160,7 +162,7 @@ S_DISPATCH:
160
162
  → END DO: $maestro-ralph-execute
161
163
 
162
164
  S_DECISION_EVAL: (decision 节点 == `step.decision` 非空,下述 gate 名取自该字段)
163
- → S_APPLY_VERDICT WHEN: quality-gate (post-verify, post-business-test, post-review, post-test)
165
+ → S_APPLY_VERDICT WHEN: quality-gate (post-execute, post-business-test, post-review, post-test)
164
166
  DO: A_DELEGATE_EVALUATE
165
167
  → S_APPLY_VERDICT WHEN: goal-gate (post-goal-audit)
166
168
  DO: A_GOAL_AUDIT_EVALUATE
@@ -267,8 +269,7 @@ resolve_milestone(phase_number):
267
269
  | phase 已存在 + 无任何 artifact | `analyze` |
268
270
  | phase 已存在 + 最新 artifact = analyze | `plan` |
269
271
  | phase 已存在 + 最新 artifact = plan | `execute` |
270
- | phase 已存在 + 最新 artifact = execute | `verify` |
271
- | phase 已存在 + 最新 artifact = verify | → refine from result files |
272
+ | phase 已存在 + 最新 artifact = execute | `review` |
272
273
 
273
274
  **关键不变量**:artifact 过滤按 `session.phase`,不读 `state.json.current_phase`。`phase_is_new` → 直接 `analyze`。
274
275
 
@@ -287,12 +288,10 @@ resolve_milestone(phase_number):
287
288
  | `medium` / `small` | analyze-macro → plan --from analyze:{ANL_ID} → execute → ...(跳过 roadmap + analyze-phase) |
288
289
  | `unknown` | 默认走 large 路径,post-analyze-scope 决策节点再纠正 |
289
290
 
290
- **Refine from verify results:**
291
+ **Refine from review results:**
291
292
 
292
293
  | Condition | Position |
293
294
  |-----------|----------|
294
- | verification.json: passed==false or gaps[] | `verify-failed` |
295
- | passed==true, no review.json | `business-test` |
296
295
  | review.json: verdict=="BLOCK" | `review-failed` |
297
296
  | review.json: verdict!="BLOCK" | `test` |
298
297
  | uat.md: all passed | `milestone-audit` |
@@ -302,7 +301,7 @@ resolve_milestone(phase_number):
302
301
 
303
302
  决定下游质量管线长度。读 `session.quality_mode_override`(CLI 标志 `--quality`),无则按规则推断:
304
303
 
305
- | Condition | Mode | Pipeline (verify 之后) |
304
+ | Condition | Mode | Pipeline (execute 之后) |
306
305
  |-----------|------|-------------------------|
307
306
  | Has `specs/REQ-*.md` + 当前 phase 业务范围明确 | `full` | business-test → review → test-gen → test |
308
307
  | Default | `standard` | review → test-gen (当 coverage<80%) → test |
@@ -389,8 +388,7 @@ Generate steps from `session.lifecycle_position` to `milestone-complete`.
389
388
  | roadmap | `maestro-roadmap --from analyze:{analyze_macro_id}` | *(same)* | — | all |
390
389
  | analyze | `maestro-analyze {phase}` | `maestro-analyze` | — | all |
391
390
  | plan | `maestro-plan {phase}` *(scope=phase)* / `maestro-plan --from analyze:{analyze_macro_id}` *(scope=standalone)* / `maestro-plan --from blueprint:{blueprint_id}` *(scope=standalone)* | `maestro-plan` | — | all |
392
- | execute | `maestro-execute {phase}` | `maestro-execute` | | all |
393
- | verify | `maestro-verify {phase}` | `maestro-verify` | `post-verify` | all |
391
+ | execute | `maestro-execute {phase}` | `maestro-execute` | `post-execute` | all |
394
392
  | business-test | `quality-auto-test {phase}` | `quality-auto-test` | `post-business-test` | full only |
395
393
  | review | `quality-review {phase}` | `quality-review` | `post-review` | all (quick: append `--tier quick`) |
396
394
  | test-gen | `quality-auto-test {phase}` | `quality-auto-test` | — | full / standard if coverage<80% |
@@ -446,7 +444,7 @@ Generate steps from `session.lifecycle_position` to `milestone-complete`.
446
444
  3. Map result files:
447
445
  | Decision | Files |
448
446
  |----------|-------|
449
- | post-verify | verification.json |
447
+ | post-execute | verification.json |
450
448
  | post-business-test | .tests/auto-test/report.json |
451
449
  | post-review | review.json |
452
450
  | post-test | uat.md, .tests/test-results.json |
@@ -618,9 +616,9 @@ Runs only when `task_decomposition` present.
618
616
  "index": 0,
619
617
  "skill": "", // 执行 step 有值;decision 节点为空字符串/null
620
618
  "args": "",
621
- "stage": "", // brainstorm|blueprint|init|analyze-macro|roadmap|analyze|plan|execute|verify|...
619
+ "stage": "", // brainstorm|blueprint|init|analyze-macro|roadmap|analyze|plan|execute|...
622
620
  "scope": null, // "phase"|"standalone"|"milestone"|null(plan 等需要)
623
- "decision": null, // 非 null → decision 节点(值为 gate 名,如 "post-verify");null → 执行 step
621
+ "decision": null, // 非 null → decision 节点(值为 gate 名,如 "post-execute");null → 执行 step
624
622
  "retry_count": 0, // decision 节点专用
625
623
  "max_retries": 2, // decision 节点专用
626
624
  "command_scope": "global|project|missing|null", // 执行 step;decision 节点固定 null
@@ -658,13 +656,12 @@ Runs only when `task_decomposition` present.
658
656
 
659
657
  所有插入的执行 step 按 A_BUILD_STEPS 规则 9 解析 `command_path` + `command_scope`;`decision:*` 条目为 decision 节点(`step.decision` 字段)。
660
658
 
661
- **post-verify:**
659
+ **post-execute:**
662
660
  ```
663
661
  quality-debug "{gap_summary}"
664
662
  maestro-plan --gaps {phase}
665
663
  maestro-execute {phase}
666
- maestro-verify {phase}
667
- decision:post-verify {retry+1}
664
+ decision:post-execute {retry+1}
668
665
  ```
669
666
 
670
667
  **post-business-test:**
@@ -672,8 +669,7 @@ decision:post-verify {retry+1}
672
669
  quality-debug --from-business-test "{gap_summary}"
673
670
  maestro-plan --gaps {phase}
674
671
  maestro-execute {phase}
675
- maestro-verify {phase}
676
- decision:post-verify {retry: 0}
672
+ decision:post-execute {retry: 0}
677
673
  quality-auto-test {phase}
678
674
  decision:post-business-test {retry+1}
679
675
  ```
@@ -692,8 +688,7 @@ decision:post-review {retry+1}
692
688
  quality-debug --from-uat "{gap_summary}"
693
689
  maestro-plan --gaps {phase}
694
690
  maestro-execute {phase}
695
- maestro-verify {phase}
696
- decision:post-verify {retry: 0}
691
+ decision:post-execute {retry: 0}
697
692
  quality-auto-test {phase}
698
693
  decision:post-business-test {retry: 0}
699
694
  quality-review {phase}
@@ -708,7 +703,6 @@ decision:post-test {retry+1}
708
703
  # for each unmet sub-goal G{n}, scoped to target_phase:
709
704
  maestro-plan --gaps {target_phase} "G{n}: {gap}" [goal_ref: G{n}]
710
705
  maestro-execute {target_phase} [goal_ref: G{n}]
711
- maestro-verify {target_phase} [goal_ref: G{n}]
712
706
  # after all unmet groups inserted:
713
707
  decision:post-goal-audit {retry+1}
714
708
  ```
@@ -177,7 +177,7 @@ S_TICK_EXEC: Entry: A_EXEC_STEP
177
177
  → S_HANDLE_FAIL WHEN: ralph complete with NEEDS_RETRY|BLOCKED
178
178
 
179
179
  S_TICK_DECISION: (gate 名取自 `step.decision`)
180
- → S_TICK_APPLY WHEN: quality-gate (post-verify, post-business-test, post-review, post-test)
180
+ → S_TICK_APPLY WHEN: quality-gate (post-execute, post-business-test, post-review, post-test)
181
181
  DO: A_DELEGATE_EVALUATE
182
182
  → S_TICK_APPLY WHEN: goal-gate (post-goal-audit)
183
183
  DO: A_GOAL_AUDIT_EVALUATE
@@ -299,15 +299,12 @@ resolve_milestone(phase_number):
299
299
  | phase 已存在 + 无任何 artifact | `analyze` |
300
300
  | phase 已存在 + 最新 artifact = analyze | `plan` |
301
301
  | phase 已存在 + 最新 artifact = plan | `execute` |
302
- | phase 已存在 + 最新 artifact = execute | `verify` |
303
- | phase 已存在 + 最新 artifact = verify | → refine from result files |
302
+ | phase 已存在 + 最新 artifact = execute | `review` |
304
303
 
305
- **Refine from verify results:**
304
+ **Refine from review results:**
306
305
 
307
306
  | Condition | Position |
308
307
  |-----------|----------|
309
- | verification.json: passed==false or gaps[] | `verify-failed` |
310
- | passed==true, no review.json | `business-test` |
311
308
  | review.json: verdict=="BLOCK" | `review-failed` |
312
309
  | review.json: verdict!="BLOCK" | `test` |
313
310
  | uat.md: all passed | `milestone-audit` |
@@ -332,7 +329,7 @@ resolve_milestone(phase_number):
332
329
 
333
330
  读 `session.quality_mode_override`(CLI `--quality`),无则按规则推断:
334
331
 
335
- | Condition | Mode | Pipeline (verify 之后) |
332
+ | Condition | Mode | Pipeline (execute 之后) |
336
333
  |-----------|------|-------------------------|
337
334
  | Has `specs/REQ-*.md` + 当前 phase 业务范围明确 | `full` | business-test → review → test-gen → test |
338
335
  | Default | `standard` | review → test-gen (当 coverage<80%) → test |
@@ -414,8 +411,7 @@ narrow → derive defaults from intent + codebase, skip questions.
414
411
  | roadmap | `maestro-roadmap --from analyze:{analyze_macro_id}` | *(same)* | — | all |
415
412
  | analyze | `maestro-analyze {phase}` | `maestro-analyze` | — | all |
416
413
  | plan | `maestro-plan {phase}` *(scope=phase)* / `maestro-plan --from analyze:{analyze_macro_id}` *(scope=standalone)* / `maestro-plan --from blueprint:{blueprint_id}` *(scope=standalone)* | `maestro-plan` | — | all |
417
- | execute | `maestro-execute {phase}` | `maestro-execute` | | all |
418
- | verify | `maestro-verify {phase}` | `maestro-verify` | `post-verify` | all |
414
+ | execute | `maestro-execute {phase}` | `maestro-execute` | `post-execute` | all |
419
415
  | business-test | `quality-auto-test {phase}` | `quality-auto-test` | `post-business-test` | full only |
420
416
  | review | `quality-review {phase}` | `quality-review` | `post-review` | all (quick: append `--tier quick`) |
421
417
  | test-gen | `quality-auto-test {phase}` | `quality-auto-test` | — | full / standard if coverage<80% |
@@ -544,7 +540,7 @@ Write enriched args back to status.json.
544
540
  3. Map result files:
545
541
  | Decision | Files |
546
542
  |----------|-------|
547
- | post-verify | verification.json |
543
+ | post-execute | verification.json |
548
544
  | post-business-test | .tests/auto-test/report.json |
549
545
  | post-review | review.json |
550
546
  | post-test | uat.md, .tests/test-results.json |
@@ -717,8 +713,8 @@ Display: `[{index}/{total}] ✗ {step.skill} 失败,会话已暂停。/maestro
717
713
 
718
714
  [✓] 0. maestro-plan 1 [global]
719
715
  [✓] 1. maestro-execute 1 [project]
720
- [✓] 2. maestro-verify 1 [global]
721
- [✓] 3. ◆ post-verify [decision]
716
+ [✓] 2. quality-review 1 [global]
717
+ [✓] 3. ◆ post-review [decision]
722
718
  ...
723
719
  ============================================================
724
720
  ```
@@ -756,7 +752,7 @@ Display: `[{index}/{total}] ✗ {step.skill} 失败,会话已暂停。/maestro
756
752
  "index": 0,
757
753
  "skill": "", // 执行 step 有值;decision 节点为空字符串/null
758
754
  "args": "",
759
- "stage": "", // brainstorm|blueprint|init|analyze-macro|roadmap|analyze|plan|execute|verify|...
755
+ "stage": "", // brainstorm|blueprint|init|analyze-macro|roadmap|analyze|plan|execute|...
760
756
  "scope": null, // "phase"|"standalone"|"milestone"|null(plan 等需要)
761
757
  "decision": null, // null = 执行 step;非 null = decision step (值为 gate 名)
762
758
  "retry_count": 0, // decision step
@@ -793,13 +789,12 @@ Display: `[{index}/{total}] ✗ {step.skill} 失败,会话已暂停。/maestro
793
789
 
794
790
  插入的执行 step 按 A_BUILD_STEPS 规则 9 解析 `command_path` + `command_scope`;`decision:*` 条目为 decision 节点。
795
791
 
796
- **post-verify:**
792
+ **post-execute:**
797
793
  ```
798
794
  quality-debug "{gap_summary}"
799
795
  maestro-plan --gaps {phase}
800
796
  maestro-execute {phase}
801
- maestro-verify {phase}
802
- decision:post-verify {retry+1}
797
+ decision:post-execute {retry+1}
803
798
  ```
804
799
 
805
800
  **post-business-test:**
@@ -807,8 +802,7 @@ decision:post-verify {retry+1}
807
802
  quality-debug --from-business-test "{gap_summary}"
808
803
  maestro-plan --gaps {phase}
809
804
  maestro-execute {phase}
810
- maestro-verify {phase}
811
- decision:post-verify {retry: 0}
805
+ decision:post-execute {retry: 0}
812
806
  quality-auto-test {phase}
813
807
  decision:post-business-test {retry+1}
814
808
  ```
@@ -827,8 +821,7 @@ decision:post-review {retry+1}
827
821
  quality-debug --from-uat "{gap_summary}"
828
822
  maestro-plan --gaps {phase}
829
823
  maestro-execute {phase}
830
- maestro-verify {phase}
831
- decision:post-verify {retry: 0}
824
+ decision:post-execute {retry: 0}
832
825
  quality-auto-test {phase}
833
826
  decision:post-business-test {retry: 0}
834
827
  quality-review {phase}
@@ -843,7 +836,6 @@ decision:post-test {retry+1}
843
836
  # for each unmet sub-goal G{n}, scoped to target_phase:
844
837
  maestro-plan --gaps {target_phase} "G{n}: {gap}" [goal_ref: G{n}]
845
838
  maestro-execute {target_phase} [goal_ref: G{n}]
846
- maestro-verify {target_phase} [goal_ref: G{n}]
847
839
  # after all unmet groups inserted:
848
840
  decision:post-goal-audit {retry+1}
849
841
  ```
@@ -196,8 +196,8 @@ Display: `[{index}/{total}] ✗ {step.skill} 失败,会话已暂停。/maestro
196
196
 
197
197
  [✓] 0. maestro-plan 1 [global]
198
198
  [✓] 1. maestro-execute 1 [project]
199
- [✓] 2. maestro-verify 1 [global]
200
- [✓] 3. ◆ post-verify [decision]
199
+ [✓] 2. quality-review 1 [global]
200
+ [✓] 3. ◆ post-review [decision]
201
201
  ...
202
202
  ============================================================
203
203
  ```