maestro-flow 0.4.26 → 0.5.1

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 (415) hide show
  1. package/.agents/skills/codify-to-knowhow/phases/03-generate-specs.md +2 -1
  2. package/.agents/skills/learn-follow/SKILL.md +1 -1
  3. package/.agents/skills/learn-investigate/SKILL.md +2 -2
  4. package/.agents/skills/learn-second-opinion/SKILL.md +1 -1
  5. package/.agents/skills/maestro/SKILL.md +6 -3
  6. package/.agents/skills/maestro-analyze/SKILL.md +53 -2
  7. package/.agents/skills/maestro-blueprint/SKILL.md +36 -1
  8. package/.agents/skills/maestro-brainstorm/SKILL.md +40 -1
  9. package/.agents/skills/maestro-collab/SKILL.md +1 -1
  10. package/.agents/skills/maestro-companion/SKILL.md +4 -4
  11. package/.agents/skills/maestro-composer/SKILL.md +1 -1
  12. package/.agents/skills/maestro-execute/SKILL.md +29 -6
  13. package/.agents/skills/maestro-fork/SKILL.md +24 -0
  14. package/.agents/skills/maestro-grill/SKILL.md +38 -1
  15. package/.agents/skills/maestro-help/SKILL.md +5 -6
  16. package/.agents/skills/maestro-help/index/catalog.json +7 -9
  17. package/.agents/skills/maestro-help/phases/02-search-present.md +2 -4
  18. package/.agents/skills/maestro-help/phases/03-workflow-guide.md +7 -8
  19. package/.agents/skills/maestro-impeccable/SKILL.md +13 -0
  20. package/.agents/skills/maestro-init/SKILL.md +11 -0
  21. package/.agents/skills/maestro-merge/SKILL.md +17 -1
  22. package/.agents/skills/maestro-milestone-audit/SKILL.md +34 -2
  23. package/.agents/skills/maestro-milestone-complete/SKILL.md +19 -1
  24. package/.agents/skills/maestro-milestone-release/SKILL.md +18 -0
  25. package/.agents/skills/maestro-next/SKILL.md +8 -9
  26. package/.agents/skills/maestro-overlay/SKILL.md +3 -3
  27. package/.agents/skills/maestro-plan/SKILL.md +21 -3
  28. package/.agents/skills/maestro-quick/SKILL.md +13 -1
  29. package/.agents/skills/maestro-ralph/SKILL.md +18 -20
  30. package/.agents/skills/maestro-ralph-beta/SKILL.md +10 -16
  31. package/.agents/skills/maestro-ralph-execute/SKILL.md +1 -2
  32. package/.agents/skills/maestro-roadmap/SKILL.md +28 -2
  33. package/.agents/skills/maestro-swarm-workflow/SKILL.md +2 -2
  34. package/.agents/skills/maestro-tools-register/SKILL.md +2 -2
  35. package/.agents/skills/maestro-ui-codify/SKILL.md +20 -0
  36. package/.agents/skills/maestro-update/SKILL.md +59 -116
  37. package/.agents/skills/manage-codebase-rebuild/SKILL.md +3 -3
  38. package/.agents/skills/manage-harvest/SKILL.md +1 -1
  39. package/.agents/skills/manage-knowhow/SKILL.md +3 -1
  40. package/.agents/skills/manage-knowhow-capture/SKILL.md +7 -4
  41. package/.agents/skills/manage-wiki/SKILL.md +17 -8
  42. package/.agents/skills/quality-auto-test/SKILL.md +3 -3
  43. package/.agents/skills/quality-debug/SKILL.md +4 -4
  44. package/.agents/skills/quality-refactor/SKILL.md +2 -2
  45. package/.agents/skills/quality-retrospective/SKILL.md +5 -5
  46. package/.agents/skills/quality-review/SKILL.md +4 -4
  47. package/.agents/skills/quality-sync/SKILL.md +1 -0
  48. package/.agents/skills/quality-test/SKILL.md +4 -4
  49. package/.agents/skills/spec-add/SKILL.md +6 -4
  50. package/.agents/skills/spec-setup/SKILL.md +1 -1
  51. package/.agy/skills/codify-to-knowhow/phases/03-generate-specs.md +2 -1
  52. package/.agy/skills/learn-follow/SKILL.md +1 -1
  53. package/.agy/skills/learn-investigate/SKILL.md +2 -2
  54. package/.agy/skills/learn-second-opinion/SKILL.md +1 -1
  55. package/.agy/skills/maestro/SKILL.md +6 -3
  56. package/.agy/skills/maestro-analyze/SKILL.md +53 -2
  57. package/.agy/skills/maestro-blueprint/SKILL.md +36 -1
  58. package/.agy/skills/maestro-brainstorm/SKILL.md +40 -1
  59. package/.agy/skills/maestro-collab/SKILL.md +1 -1
  60. package/.agy/skills/maestro-companion/SKILL.md +4 -4
  61. package/.agy/skills/maestro-composer/SKILL.md +1 -1
  62. package/.agy/skills/maestro-execute/SKILL.md +29 -6
  63. package/.agy/skills/maestro-fork/SKILL.md +24 -0
  64. package/.agy/skills/maestro-grill/SKILL.md +38 -1
  65. package/.agy/skills/maestro-help/SKILL.md +5 -6
  66. package/.agy/skills/maestro-help/index/catalog.json +7 -9
  67. package/.agy/skills/maestro-help/phases/02-search-present.md +2 -4
  68. package/.agy/skills/maestro-help/phases/03-workflow-guide.md +7 -8
  69. package/.agy/skills/maestro-impeccable/SKILL.md +13 -0
  70. package/.agy/skills/maestro-init/SKILL.md +11 -0
  71. package/.agy/skills/maestro-merge/SKILL.md +17 -1
  72. package/.agy/skills/maestro-milestone-audit/SKILL.md +34 -2
  73. package/.agy/skills/maestro-milestone-complete/SKILL.md +19 -1
  74. package/.agy/skills/maestro-milestone-release/SKILL.md +18 -0
  75. package/.agy/skills/maestro-next/SKILL.md +8 -9
  76. package/.agy/skills/maestro-overlay/SKILL.md +3 -3
  77. package/.agy/skills/maestro-plan/SKILL.md +21 -3
  78. package/.agy/skills/maestro-quick/SKILL.md +13 -1
  79. package/.agy/skills/maestro-ralph/SKILL.md +18 -20
  80. package/.agy/skills/maestro-ralph-beta/SKILL.md +10 -16
  81. package/.agy/skills/maestro-ralph-execute/SKILL.md +1 -2
  82. package/.agy/skills/maestro-roadmap/SKILL.md +28 -2
  83. package/.agy/skills/maestro-swarm-workflow/SKILL.md +2 -2
  84. package/.agy/skills/maestro-tools-register/SKILL.md +2 -2
  85. package/.agy/skills/maestro-ui-codify/SKILL.md +20 -0
  86. package/.agy/skills/maestro-update/SKILL.md +59 -116
  87. package/.agy/skills/manage-codebase-rebuild/SKILL.md +3 -3
  88. package/.agy/skills/manage-harvest/SKILL.md +1 -1
  89. package/.agy/skills/manage-knowhow/SKILL.md +3 -1
  90. package/.agy/skills/manage-knowhow-capture/SKILL.md +7 -4
  91. package/.agy/skills/manage-wiki/SKILL.md +17 -8
  92. package/.agy/skills/quality-auto-test/SKILL.md +3 -3
  93. package/.agy/skills/quality-debug/SKILL.md +4 -4
  94. package/.agy/skills/quality-refactor/SKILL.md +2 -2
  95. package/.agy/skills/quality-retrospective/SKILL.md +5 -5
  96. package/.agy/skills/quality-review/SKILL.md +4 -4
  97. package/.agy/skills/quality-sync/SKILL.md +1 -0
  98. package/.agy/skills/quality-test/SKILL.md +4 -4
  99. package/.agy/skills/spec-add/SKILL.md +6 -4
  100. package/.agy/skills/spec-setup/SKILL.md +1 -1
  101. package/.claude/commands/learn-follow.md +1 -1
  102. package/.claude/commands/learn-investigate.md +2 -2
  103. package/.claude/commands/learn-second-opinion.md +1 -1
  104. package/.claude/commands/maestro-analyze.md +53 -2
  105. package/.claude/commands/maestro-blueprint.md +36 -1
  106. package/.claude/commands/maestro-brainstorm.md +40 -1
  107. package/.claude/commands/maestro-collab.md +1 -1
  108. package/.claude/commands/maestro-companion.md +4 -4
  109. package/.claude/commands/maestro-composer.md +1 -1
  110. package/.claude/commands/maestro-execute.md +29 -6
  111. package/.claude/commands/maestro-fork.md +24 -0
  112. package/.claude/commands/maestro-grill.md +38 -1
  113. package/.claude/commands/maestro-impeccable.md +13 -0
  114. package/.claude/commands/maestro-init.md +11 -0
  115. package/.claude/commands/maestro-merge.md +17 -1
  116. package/.claude/commands/maestro-milestone-audit.md +34 -2
  117. package/.claude/commands/maestro-milestone-complete.md +19 -1
  118. package/.claude/commands/maestro-milestone-release.md +18 -0
  119. package/.claude/commands/maestro-next.md +8 -9
  120. package/.claude/commands/maestro-overlay.md +3 -3
  121. package/.claude/commands/maestro-plan.md +21 -3
  122. package/.claude/commands/maestro-quick.md +13 -1
  123. package/.claude/commands/maestro-ralph-beta.md +8 -14
  124. package/.claude/commands/maestro-ralph-execute.md +1 -2
  125. package/.claude/commands/maestro-ralph.md +18 -20
  126. package/.claude/commands/maestro-roadmap.md +28 -2
  127. package/.claude/commands/maestro-swarm-workflow.md +2 -2
  128. package/.claude/commands/maestro-tools-register.md +2 -2
  129. package/.claude/commands/maestro-ui-codify.md +20 -0
  130. package/.claude/commands/maestro-update.md +59 -116
  131. package/.claude/commands/maestro.md +6 -3
  132. package/.claude/commands/manage-codebase-rebuild.md +3 -3
  133. package/.claude/commands/manage-harvest.md +1 -1
  134. package/.claude/commands/manage-knowhow-capture.md +7 -4
  135. package/.claude/commands/manage-knowhow.md +3 -1
  136. package/.claude/commands/manage-wiki.md +17 -8
  137. package/.claude/commands/quality-auto-test.md +3 -3
  138. package/.claude/commands/quality-debug.md +4 -4
  139. package/.claude/commands/quality-refactor.md +2 -2
  140. package/.claude/commands/quality-retrospective.md +5 -5
  141. package/.claude/commands/quality-review.md +4 -4
  142. package/.claude/commands/quality-sync.md +1 -0
  143. package/.claude/commands/quality-test.md +4 -4
  144. package/.claude/commands/spec-add.md +6 -4
  145. package/.claude/commands/spec-setup.md +1 -1
  146. package/.claude/skills/codify-to-knowhow/phases/03-generate-specs.md +2 -1
  147. package/.claude/skills/maestro-help/SKILL.md +5 -6
  148. package/.claude/skills/maestro-help/index/catalog.json +7 -9
  149. package/.claude/skills/maestro-help/phases/02-search-present.md +2 -4
  150. package/.claude/skills/maestro-help/phases/03-workflow-guide.md +7 -8
  151. package/.codex/skills/codify-to-knowhow/SKILL.md +6 -5
  152. package/.codex/skills/learn-decompose/SKILL.md +1 -1
  153. package/.codex/skills/learn-follow/SKILL.md +1 -1
  154. package/.codex/skills/learn-investigate/SKILL.md +1 -1
  155. package/.codex/skills/learn-second-opinion/SKILL.md +1 -1
  156. package/.codex/skills/maestro/SKILL.md +29 -31
  157. package/.codex/skills/maestro-analyze/SKILL.md +17 -4
  158. package/.codex/skills/maestro-blueprint/SKILL.md +8 -1
  159. package/.codex/skills/maestro-brainstorm/SKILL.md +8 -5
  160. package/.codex/skills/maestro-collab/SKILL.md +1 -1
  161. package/.codex/skills/maestro-companion/SKILL.md +2 -2
  162. package/.codex/skills/maestro-composer/SKILL.md +0 -1
  163. package/.codex/skills/maestro-execute/SKILL.md +11 -8
  164. package/.codex/skills/maestro-fork/SKILL.md +4 -0
  165. package/.codex/skills/maestro-grill/SKILL.md +8 -2
  166. package/.codex/skills/maestro-help/SKILL.md +6 -9
  167. package/.codex/skills/maestro-help/catalog.json +6 -8
  168. package/.codex/skills/maestro-impeccable/SKILL.md +2 -0
  169. package/.codex/skills/maestro-init/SKILL.md +3 -0
  170. package/.codex/skills/maestro-merge/SKILL.md +5 -1
  171. package/.codex/skills/maestro-milestone-audit/SKILL.md +3 -0
  172. package/.codex/skills/maestro-milestone-complete/SKILL.md +6 -1
  173. package/.codex/skills/maestro-milestone-release/SKILL.md +4 -0
  174. package/.codex/skills/maestro-next/SKILL.md +3 -4
  175. package/.codex/skills/maestro-plan/SKILL.md +5 -2
  176. package/.codex/skills/maestro-quick/SKILL.md +4 -1
  177. package/.codex/skills/maestro-ralph/SKILL.md +14 -20
  178. package/.codex/skills/maestro-ralph-beta/SKILL.md +13 -21
  179. package/.codex/skills/maestro-ralph-execute/SKILL.md +2 -2
  180. package/.codex/skills/maestro-roadmap/SKILL.md +5 -2
  181. package/.codex/skills/maestro-tools-register/SKILL.md +1 -1
  182. package/.codex/skills/maestro-ui-codify/SKILL.md +4 -1
  183. package/.codex/skills/maestro-update/SKILL.md +35 -130
  184. package/.codex/skills/manage-codebase-rebuild/SKILL.md +2 -2
  185. package/.codex/skills/manage-harvest/SKILL.md +2 -2
  186. package/.codex/skills/manage-knowhow/SKILL.md +1 -1
  187. package/.codex/skills/manage-knowhow-capture/SKILL.md +32 -20
  188. package/.codex/skills/manage-status/SKILL.md +1 -2
  189. package/.codex/skills/quality-auto-test/SKILL.md +2 -2
  190. package/.codex/skills/quality-debug/SKILL.md +2 -2
  191. package/.codex/skills/quality-refactor/SKILL.md +1 -1
  192. package/.codex/skills/quality-retrospective/SKILL.md +1 -1
  193. package/.codex/skills/quality-test/SKILL.md +3 -4
  194. package/.codex/skills/spec-add/SKILL.md +5 -3
  195. package/.codex/skills/spec-remove/SKILL.md +2 -2
  196. package/.codex/skills/team-coordinate/SKILL.md +1 -1
  197. package/.codex/skills/wiki-digest/SKILL.md +2 -2
  198. package/chains/brainstorm-driven.json +2 -34
  199. package/chains/full-lifecycle.json +2 -34
  200. package/chains/next-milestone.json +0 -7
  201. package/chains/quality-loop.json +3 -19
  202. package/chains/roadmap-driven.json +2 -34
  203. package/chains/spec-driven.json +2 -34
  204. package/chains/ui-craft-build.json +2 -23
  205. package/dashboard/dist-server/dashboard/src/server/coordinator/chain-map.js +8 -11
  206. package/dashboard/dist-server/dashboard/src/server/coordinator/chain-map.js.map +1 -1
  207. package/dashboard/dist-server/dashboard/src/server/wiki/spec-entry-parser.d.ts +1 -0
  208. package/dashboard/dist-server/dashboard/src/server/wiki/spec-entry-parser.js +3 -1
  209. package/dashboard/dist-server/dashboard/src/server/wiki/spec-entry-parser.js.map +1 -1
  210. package/dashboard/dist-server/dashboard/src/server/wiki/stress.test.js +1 -0
  211. package/dashboard/dist-server/dashboard/src/server/wiki/stress.test.js.map +1 -1
  212. package/dashboard/dist-server/dashboard/src/server/wiki/virtual-wiki-adapters.js +9 -0
  213. package/dashboard/dist-server/dashboard/src/server/wiki/virtual-wiki-adapters.js.map +1 -1
  214. package/dashboard/dist-server/dashboard/src/server/wiki/wiki-indexer.js +9 -4
  215. package/dashboard/dist-server/dashboard/src/server/wiki/wiki-indexer.js.map +1 -1
  216. package/dashboard/dist-server/dashboard/src/server/wiki/wiki-types.d.ts +3 -0
  217. package/dashboard/dist-server/dashboard/src/server/wiki/writer.d.ts +4 -0
  218. package/dashboard/dist-server/dashboard/src/server/wiki/writer.js +5 -3
  219. package/dashboard/dist-server/dashboard/src/server/wiki/writer.js.map +1 -1
  220. package/dashboard/dist-server/src/types/index.d.ts +2 -0
  221. package/dist/src/cli.js +1 -0
  222. package/dist/src/cli.js.map +1 -1
  223. package/dist/src/commands/hooks.d.ts.map +1 -1
  224. package/dist/src/commands/hooks.js +55 -5
  225. package/dist/src/commands/hooks.js.map +1 -1
  226. package/dist/src/commands/install-backend.d.ts.map +1 -1
  227. package/dist/src/commands/install-backend.js +2 -1
  228. package/dist/src/commands/install-backend.js.map +1 -1
  229. package/dist/src/commands/install.d.ts.map +1 -1
  230. package/dist/src/commands/install.js +48 -3
  231. package/dist/src/commands/install.js.map +1 -1
  232. package/dist/src/commands/kg.d.ts +1 -1
  233. package/dist/src/commands/kg.d.ts.map +1 -1
  234. package/dist/src/commands/kg.js +285 -112
  235. package/dist/src/commands/kg.js.map +1 -1
  236. package/dist/src/commands/knowhow.d.ts.map +1 -1
  237. package/dist/src/commands/knowhow.js +28 -37
  238. package/dist/src/commands/knowhow.js.map +1 -1
  239. package/dist/src/commands/ralph.js +1 -1
  240. package/dist/src/commands/ralph.js.map +1 -1
  241. package/dist/src/commands/search.d.ts +36 -0
  242. package/dist/src/commands/search.d.ts.map +1 -0
  243. package/dist/src/commands/search.js +120 -0
  244. package/dist/src/commands/search.js.map +1 -0
  245. package/dist/src/commands/spec.d.ts.map +1 -1
  246. package/dist/src/commands/spec.js +15 -59
  247. package/dist/src/commands/spec.js.map +1 -1
  248. package/dist/src/commands/update.d.ts.map +1 -1
  249. package/dist/src/commands/update.js +7 -0
  250. package/dist/src/commands/update.js.map +1 -1
  251. package/dist/src/commands/wiki.d.ts.map +1 -1
  252. package/dist/src/commands/wiki.js +6 -21
  253. package/dist/src/commands/wiki.js.map +1 -1
  254. package/dist/src/core/component-defs.d.ts +13 -0
  255. package/dist/src/core/component-defs.d.ts.map +1 -1
  256. package/dist/src/core/component-defs.js +37 -85
  257. package/dist/src/core/component-defs.js.map +1 -1
  258. package/dist/src/core/skill-converter.d.ts +25 -0
  259. package/dist/src/core/skill-converter.d.ts.map +1 -0
  260. package/dist/src/core/skill-converter.js +605 -0
  261. package/dist/src/core/skill-converter.js.map +1 -0
  262. package/dist/src/graph/codegraph-adapter.d.ts +147 -0
  263. package/dist/src/graph/codegraph-adapter.d.ts.map +1 -0
  264. package/dist/src/graph/codegraph-adapter.js +266 -0
  265. package/dist/src/graph/codegraph-adapter.js.map +1 -0
  266. package/dist/src/hooks/constants.d.ts +4 -0
  267. package/dist/src/hooks/constants.d.ts.map +1 -1
  268. package/dist/src/hooks/constants.js +14 -1
  269. package/dist/src/hooks/constants.js.map +1 -1
  270. package/dist/src/hooks/context-format.d.ts +46 -0
  271. package/dist/src/hooks/context-format.d.ts.map +1 -0
  272. package/dist/src/hooks/context-format.js +58 -0
  273. package/dist/src/hooks/context-format.js.map +1 -0
  274. package/dist/src/hooks/index.d.ts +2 -0
  275. package/dist/src/hooks/index.d.ts.map +1 -1
  276. package/dist/src/hooks/index.js +2 -0
  277. package/dist/src/hooks/index.js.map +1 -1
  278. package/dist/src/hooks/keyword-spec-injector.d.ts +1 -1
  279. package/dist/src/hooks/keyword-spec-injector.d.ts.map +1 -1
  280. package/dist/src/hooks/keyword-spec-injector.js +92 -7
  281. package/dist/src/hooks/keyword-spec-injector.js.map +1 -1
  282. package/dist/src/hooks/kg-context-injector.d.ts +19 -0
  283. package/dist/src/hooks/kg-context-injector.d.ts.map +1 -0
  284. package/dist/src/hooks/kg-context-injector.js +139 -0
  285. package/dist/src/hooks/kg-context-injector.js.map +1 -0
  286. package/dist/src/hooks/kg-sync-hook.d.ts +22 -0
  287. package/dist/src/hooks/kg-sync-hook.d.ts.map +1 -0
  288. package/dist/src/hooks/kg-sync-hook.js +139 -0
  289. package/dist/src/hooks/kg-sync-hook.js.map +1 -0
  290. package/dist/src/hooks/plugins/spec-injection-plugin.js +2 -2
  291. package/dist/src/hooks/plugins/spec-injection-plugin.js.map +1 -1
  292. package/dist/src/hooks/skill-context.d.ts.map +1 -1
  293. package/dist/src/hooks/skill-context.js +0 -1
  294. package/dist/src/hooks/skill-context.js.map +1 -1
  295. package/dist/src/hooks/spec-injector.d.ts.map +1 -1
  296. package/dist/src/hooks/spec-injector.js +66 -13
  297. package/dist/src/hooks/spec-injector.js.map +1 -1
  298. package/dist/src/hooks/statusline.d.ts +8 -1
  299. package/dist/src/hooks/statusline.d.ts.map +1 -1
  300. package/dist/src/hooks/statusline.js +45 -29
  301. package/dist/src/hooks/statusline.js.map +1 -1
  302. package/dist/src/hooks/wiki-role-loader.js +1 -1
  303. package/dist/src/hooks/wiki-role-loader.js.map +1 -1
  304. package/dist/src/i18n/locales/en.d.ts.map +1 -1
  305. package/dist/src/i18n/locales/en.js +4 -0
  306. package/dist/src/i18n/locales/en.js.map +1 -1
  307. package/dist/src/i18n/locales/zh.d.ts.map +1 -1
  308. package/dist/src/i18n/locales/zh.js +4 -0
  309. package/dist/src/i18n/locales/zh.js.map +1 -1
  310. package/dist/src/i18n/types.d.ts +4 -0
  311. package/dist/src/i18n/types.d.ts.map +1 -1
  312. package/dist/src/ralph/cmd-skills.d.ts.map +1 -1
  313. package/dist/src/ralph/cmd-skills.js +9 -2
  314. package/dist/src/ralph/cmd-skills.js.map +1 -1
  315. package/dist/src/ralph/skill-scanner.d.ts +1 -1
  316. package/dist/src/ralph/skill-scanner.d.ts.map +1 -1
  317. package/dist/src/ralph/skill-scanner.js +14 -0
  318. package/dist/src/ralph/skill-scanner.js.map +1 -1
  319. package/dist/src/ralph/status-schema.d.ts +1 -1
  320. package/dist/src/ralph/status-schema.d.ts.map +1 -1
  321. package/dist/src/tools/spec-entry-parser.d.ts +2 -1
  322. package/dist/src/tools/spec-entry-parser.d.ts.map +1 -1
  323. package/dist/src/tools/spec-entry-parser.js +7 -4
  324. package/dist/src/tools/spec-entry-parser.js.map +1 -1
  325. package/dist/src/tools/spec-loader.d.ts.map +1 -1
  326. package/dist/src/tools/spec-loader.js +27 -3
  327. package/dist/src/tools/spec-loader.js.map +1 -1
  328. package/dist/src/tools/spec-writer.d.ts +10 -1
  329. package/dist/src/tools/spec-writer.d.ts.map +1 -1
  330. package/dist/src/tools/spec-writer.js +86 -7
  331. package/dist/src/tools/spec-writer.js.map +1 -1
  332. package/dist/src/tools/store-knowhow.d.ts.map +1 -1
  333. package/dist/src/tools/store-knowhow.js +27 -7
  334. package/dist/src/tools/store-knowhow.js.map +1 -1
  335. package/dist/src/tui/install-ui/ExecutionView.d.ts.map +1 -1
  336. package/dist/src/tui/install-ui/ExecutionView.js +7 -1
  337. package/dist/src/tui/install-ui/ExecutionView.js.map +1 -1
  338. package/dist/src/tui/install-ui/InstallConfirm.d.ts +1 -0
  339. package/dist/src/tui/install-ui/InstallConfirm.d.ts.map +1 -1
  340. package/dist/src/tui/install-ui/InstallConfirm.js +3 -1
  341. package/dist/src/tui/install-ui/InstallConfirm.js.map +1 -1
  342. package/dist/src/tui/install-ui/InstallExecution.d.ts +2 -0
  343. package/dist/src/tui/install-ui/InstallExecution.d.ts.map +1 -1
  344. package/dist/src/tui/install-ui/InstallExecution.js +25 -1
  345. package/dist/src/tui/install-ui/InstallExecution.js.map +1 -1
  346. package/dist/src/tui/install-ui/InstallFlow.d.ts.map +1 -1
  347. package/dist/src/tui/install-ui/InstallFlow.js +13 -5
  348. package/dist/src/tui/install-ui/InstallFlow.js.map +1 -1
  349. package/dist/src/tui/install-ui/InstallHub.d.ts +2 -0
  350. package/dist/src/tui/install-ui/InstallHub.d.ts.map +1 -1
  351. package/dist/src/tui/install-ui/InstallHub.js +10 -0
  352. package/dist/src/tui/install-ui/InstallHub.js.map +1 -1
  353. package/dist/src/tui/install-ui/InstallResult.d.ts.map +1 -1
  354. package/dist/src/tui/install-ui/InstallResult.js +5 -1
  355. package/dist/src/tui/install-ui/InstallResult.js.map +1 -1
  356. package/dist/src/types/index.d.ts +2 -0
  357. package/dist/src/types/index.d.ts.map +1 -1
  358. package/dist/src/utils/cli-format.d.ts +6 -0
  359. package/dist/src/utils/cli-format.d.ts.map +1 -1
  360. package/dist/src/utils/cli-format.js +25 -0
  361. package/dist/src/utils/cli-format.js.map +1 -1
  362. package/dist/src/utils/update-notices.js +25 -0
  363. package/dist/src/utils/update-notices.js.map +1 -1
  364. package/package.json +5 -2
  365. package/templates/workflows/specs/node-catalog.md +0 -2
  366. package/workflows/agy-instructions.md +1 -1
  367. package/workflows/analyze.md +9 -4
  368. package/workflows/auto-test.md +2 -2
  369. package/workflows/business-test.md +1 -1
  370. package/workflows/claude-instructions.md +23 -11
  371. package/workflows/codex-instructions.md +2 -3
  372. package/workflows/execute.md +153 -7
  373. package/workflows/finish-work.md +1 -1
  374. package/workflows/fork.md +1 -1
  375. package/workflows/impeccable/design.md +1 -0
  376. package/workflows/impeccable.md +1 -0
  377. package/workflows/integration-test.md +1 -1
  378. package/workflows/knowhow.md +14 -8
  379. package/workflows/maestro-super.md +1 -1
  380. package/workflows/maestro.codex.md +18 -34
  381. package/workflows/maestro.md +34 -42
  382. package/workflows/review.md +1 -1
  383. package/workflows/specs-add.md +1 -1
  384. package/workflows/specs-setup.md +2 -2
  385. package/workflows/status.md +2 -2
  386. package/workflows/swarm/wf-verify.js +1 -1
  387. package/workflows/test-gen.md +2 -2
  388. package/workflows/test.md +1 -1
  389. package/workflows/updates/README.md +41 -0
  390. package/workflows/updates/update-v3-setup.md +79 -0
  391. package/workflows/verify.md +7 -1
  392. package/.agents/skills/learn-retro/SKILL.md +0 -159
  393. package/.agents/skills/maestro-learn/SKILL.md +0 -142
  394. package/.agents/skills/maestro-verify/SKILL.md +0 -146
  395. package/.agents/skills/manage-codebase-refresh/SKILL.md +0 -62
  396. package/.agents/skills/manage-learn/SKILL.md +0 -67
  397. package/.agents/skills/wiki-connect/SKILL.md +0 -64
  398. package/.agents/skills/wiki-digest/SKILL.md +0 -70
  399. package/.agy/skills/learn-retro/SKILL.md +0 -159
  400. package/.agy/skills/maestro-learn/SKILL.md +0 -142
  401. package/.agy/skills/maestro-verify/SKILL.md +0 -146
  402. package/.agy/skills/manage-codebase-refresh/SKILL.md +0 -62
  403. package/.agy/skills/manage-learn/SKILL.md +0 -64
  404. package/.agy/skills/wiki-connect/SKILL.md +0 -64
  405. package/.agy/skills/wiki-digest/SKILL.md +0 -70
  406. package/.claude/commands/learn-retro.md +0 -157
  407. package/.claude/commands/maestro-learn.md +0 -140
  408. package/.claude/commands/maestro-verify.md +0 -144
  409. package/.claude/commands/manage-codebase-refresh.md +0 -60
  410. package/.claude/commands/manage-learn.md +0 -65
  411. package/.claude/commands/wiki-connect.md +0 -62
  412. package/.claude/commands/wiki-digest.md +0 -68
  413. package/.codex/skills/maestro-verify/SKILL.md +0 -254
  414. package/chains/execute-verify.json +0 -59
  415. package/chains/singles/verify.json +0 -26
@@ -41,8 +41,8 @@ Follow '~/.maestro/workflows/test.md' completely.
41
41
  **Command-specific extensions (not in workflow):**
42
42
 
43
43
  **Knowledge context loading** (before test design):
44
- - Wiki search: `maestro wiki search "<phase/feature keywords>" --json` → prior test strategies, recipes, decisions
45
- - Role knowledge: `maestro wiki list --category test` → select relevant → `maestro wiki load <id>`
44
+ - Wiki search: `maestro search "<phase/feature keywords>" --json` → prior test strategies, recipes, decisions
45
+ - Role knowledge: `maestro search --category test` → select relevant → `maestro wiki load <id>`
46
46
  - Specs + tools: `maestro spec load --category test` → test conventions + discoverable knowhow tools
47
47
 
48
48
  **Test tool discovery** (knowhow tools as scenario source):
@@ -77,7 +77,7 @@ Append to state.json.artifacts[]:
77
77
 
78
78
  **Next-step routing on completion:**
79
79
  - All tests pass → `/maestro-milestone-audit`
80
- - Issues found, --auto-fix ran and succeeded → `/maestro-verify {phase}`
80
+ - Issues found, --auto-fix ran and succeeded → `/maestro-execute {phase}`
81
81
  - Issues found, --auto-fix ran but gaps remain → `/quality-debug --from-uat {phase}`
82
82
  - Issues found, manual fix needed → `/quality-debug --from-uat {phase}`
83
83
  - Coverage below threshold → `/quality-auto-test {phase}`
@@ -88,7 +88,7 @@ Append to state.json.artifacts[]:
88
88
  | Code | Severity | Condition | Recovery |
89
89
  |------|----------|-----------|----------|
90
90
  | E001 | error | Phase or task target required (no active sessions) | Prompt user for phase number |
91
- | E002 | error | Phase not verified yet (no verification.json) | Suggest `/maestro-verify` first |
91
+ | E002 | error | Phase not verified yet (no verification.json) | Suggest `/maestro-execute` first (verification is built-in) |
92
92
  | E003 | error | Smoke test failed (app won't start) | Suggest `/quality-debug` |
93
93
  | W001 | warning | One or more test scenarios failed | Auto-diagnose, suggest fix options |
94
94
  | W002 | warning | Coverage below threshold | Suggest `/quality-auto-test` |
@@ -24,6 +24,7 @@ Entries use `category` attribute to declare which category they belong to.
24
24
  $ARGUMENTS -- expects `[--scope <scope>] [--uid <uid>] <category> <content>`
25
25
 
26
26
  **Options:**
27
+ - `--description <desc>` — One-line description for search results (falls back to content[:240])
27
28
  - `--ref <path>` — Create as index entry referencing a knowhow document. If the path exists, only creates the spec index entry. If path doesn't exist, also creates the knowhow file.
28
29
  - `--knowhow-type <type>` — Knowhow document type when creating with --ref (asset, blueprint, document, template, recipe, reference, decision)
29
30
 
@@ -34,12 +35,13 @@ Scope-to-directory mapping, category-to-file mapping, and entry format defined i
34
35
  # English content → English keywords
35
36
  /spec-add coding "Named exports" "Always use named exports" --keywords "exports,naming"
36
37
 
37
- # Chinese content Chinese keywords (匹配中文 prompt)
38
- /spec-add coding "命名导出规范" "始终使用命名导出" --keywords "导出,命名,模块"
38
+ # With description for search results
39
+ /spec-add coding "OAuth PKCE Flow" "完整 PKCE 集成流程" --keywords "oauth,pkce" --description "OAuth 2.0 PKCE 认证流程规范"
39
40
 
40
- # Mixedbilingual keywords
41
- /spec-add coding "OAuth PKCE Flow" "完整 PKCE 集成流程" --ref knowhow/RCP-oauth-pkce.md --keywords "oauth,pkce,认证,授权"
41
+ # Chinese content Chinese keywords
42
+ /spec-add coding "命名导出规范" "始终使用命名导出" --keywords "导出,命名,模块"
42
43
 
44
+ # Ref mode
43
45
  /spec-add arch "OAuth PKCE 集成" "完整流程设计" --ref knowhow/AST-oauth-flow.md
44
46
  ```
45
47
  </context>
@@ -12,7 +12,7 @@ allowed-tools:
12
12
  <purpose>
13
13
  Initialize the project-level specs directory by scanning the codebase for conventions, patterns, and tech stack.
14
14
  Core files (coding, arch, learnings) are always created. Optional spec files (quality, test, ui) are created only when relevant signals are detected.
15
- Additionally, generates recipe-type knowhow docs in `.workflow/knowhow/` for detected operational workflows (test / debug / build / dev / lint) — capturing "how to do X in this project" so future agents can find them via `maestro wiki search`.
15
+ Additionally, generates recipe-type knowhow docs in `.workflow/knowhow/` for detected operational workflows (test / debug / build / dev / lint) — capturing "how to do X in this project" so future agents can find them via `maestro search`.
16
16
  Spec output lands in `.workflow/specs/`; recipe output lands in `.workflow/knowhow/`.
17
17
  </purpose>
18
18
 
@@ -68,7 +68,8 @@ ${spec.body}
68
68
 
69
69
  // 追加到目标文件
70
70
  // 优先使用 maestro spec add CLI
71
- const cliResult = Bash(`maestro spec add ${spec.category} "${spec.title}" "${spec.body}" --keywords "${spec.keywords}" 2>/dev/null`);
71
+ const descFlag = spec.description ? ` --description "${spec.description}"` : '';
72
+ const cliResult = Bash(`maestro spec add ${spec.category} "${spec.title}" "${spec.body}" --keywords "${spec.keywords}"${descFlag} 2>/dev/null`);
72
73
 
73
74
  if (cliResult.exitCode !== 0) {
74
75
  // 回退:直接追加到文件
@@ -195,7 +195,6 @@ $ARGUMENTS → Parse:
195
195
  | `/maestro-analyze` | 双层分析 — 宏观(文本参数)探索影响面 / 微观(数字参数)Phase 级深入 |
196
196
  | `/maestro-plan` | 任务规划 — 支持 `--from analyze:ANL-xxx` 直达 |
197
197
  | `/maestro-execute` | 任务执行 |
198
- | `/maestro-verify` | 验证确认 |
199
198
 
200
199
  ### 质量管线 (quality)
201
200
 
@@ -245,17 +244,17 @@ Roadmap > Milestone > Phase > Task
245
244
  roadmap — 消费上游 context,纯 Milestone > Phase 分解
246
245
 
247
246
  执行层
248
- plan → execute → verify
247
+ plan → execute
249
248
  ```
250
249
 
251
250
  ### 合法路径
252
251
 
253
252
  | 路径 | 场景 | 命令序列 |
254
253
  |------|------|---------|
255
- | Path A | 完整新项目 | `brainstorm` → `blueprint`(可选) → `analyze "topic"` → `roadmap` → `analyze 1` → `plan 1` → `execute` → `verify` |
256
- | Path B | 旧项目大功能 | `analyze "feature X"` → `roadmap` → `analyze 1` → `plan 1` → `execute` → `verify` |
257
- | Path C | 中等功能 | `analyze "feature X"` → `plan --from analyze:ANL-xxx` → `execute` → `verify` |
258
- | Path D | 小改动 | `plan "fix auth bug"` → `execute` → `verify` |
254
+ | Path A | 完整新项目 | `brainstorm` → `blueprint`(可选) → `analyze "topic"` → `roadmap` → `analyze 1` → `plan 1` → `execute` |
255
+ | Path B | 旧项目大功能 | `analyze "feature X"` → `roadmap` → `analyze 1` → `plan 1` → `execute` |
256
+ | Path C | 中等功能 | `analyze "feature X"` → `plan --from analyze:ANL-xxx` → `execute` |
257
+ | Path D | 小改动 | `plan "fix auth bug"` → `execute` |
259
258
  | Path E | 纯规格文档 | `blueprint "project idea"` → (供人阅读) |
260
259
  | Path F | 纯探索 | `brainstorm "idea"` → (供人决策) |
261
260
  | 快速修复 | 已知简单问题 | `/maestro-quick "修复描述"` |
@@ -13,7 +13,6 @@
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
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"},
@@ -156,7 +155,6 @@
156
155
  "/maestro-roadmap",
157
156
  "/maestro-plan",
158
157
  "/maestro-execute",
159
- "/maestro-verify",
160
158
  "/maestro-quick"
161
159
  ],
162
160
  "workflows": {
@@ -166,27 +164,27 @@
166
164
  "upstream_origin": ["brainstorm (发散/轻量)", "blueprint (收敛/重型)"],
167
165
  "understanding": "analyze 双层: 宏观(文本参数) + 微观(数字参数)",
168
166
  "orchestration": "roadmap (可选,消费上游 context)",
169
- "execution": ["plan", "execute", "verify"]
167
+ "execution": ["plan", "execute"]
170
168
  }
171
169
  },
172
170
  "paths": {
173
- "A_full_project": "brainstorm → blueprint(可选) → analyze 宏观 → roadmap → analyze 微观 → plan → execute → verify",
174
- "B_large_feature": "analyze 宏观 → roadmap → analyze 微观 → plan → execute → verify",
175
- "C_medium_feature": "analyze 宏观 → plan --from analyze:ANL-xxx → execute → verify",
176
- "D_small_fix": "plan → execute → verify",
171
+ "A_full_project": "brainstorm → blueprint(可选) → analyze 宏观 → roadmap → analyze 微观 → plan → execute",
172
+ "B_large_feature": "analyze 宏观 → roadmap → analyze 微观 → plan → execute",
173
+ "C_medium_feature": "analyze 宏观 → plan --from analyze:ANL-xxx → execute",
174
+ "D_small_fix": "plan → execute",
177
175
  "E_spec_only": "blueprint → (供人阅读)",
178
176
  "F_explore_only": "brainstorm → (供人决策)"
179
177
  },
180
178
  "main_pipeline": {
181
179
  "name": "主干管线",
182
- "phases": ["analyze", "plan", "execute", "verify"],
180
+ "phases": ["analyze", "plan", "execute"],
183
181
  "quality": ["quality-auto-test", "quality-review", "quality-test"],
184
182
  "close": ["maestro-milestone-audit", "maestro-milestone-complete"]
185
183
  },
186
184
  "quick": {
187
185
  "name": "快速渠道",
188
186
  "entry": "/maestro-quick",
189
- "modes": ["default (analyze+execute)", "--full (analyze+plan+execute+verify)", "--discuss (multi-cli讨论)"]
187
+ "modes": ["default (analyze+execute)", "--full (analyze+plan+execute)", "--discuss (multi-cli讨论)"]
190
188
  },
191
189
  "issue_loop": {
192
190
  "name": "Issue 闭环",
@@ -69,7 +69,7 @@
69
69
 
70
70
  | 命令 | Guide 文档 |
71
71
  |------|-----------|
72
- | maestro-analyze/plan/execute/verify | `guide/command-usage-guide.md` (主干管线) |
72
+ | maestro-analyze/plan/execute | `guide/command-usage-guide.md` (主干管线) |
73
73
  | maestro-init/roadmap/blueprint | `guide/quick-start-guide.md` |
74
74
  | maestro-ralph | `guide/maestro-ralph-guide.md` |
75
75
  | maestro (协调器) | `guide/maestro-coordinator-guide.md` |
@@ -97,9 +97,7 @@
97
97
  | roadmap 完成,phase=pending | `/maestro-analyze 1` | 微观分析:Phase 级深入探索 |
98
98
  | analyze (微观) 完成 | `/maestro-plan 1` | Phase 级规划 |
99
99
  | plan 完成 | `/maestro-execute` | 规划完成,开始执行 |
100
- | execute 完成 | `/maestro-verify` | 执行完成,验证成果 |
101
- | verify 有 gaps | `/maestro-analyze --gaps` | 发现差距,重新分析 |
102
- | verify 通过 | `/quality-review` | 进入质量管线 |
100
+ | execute 完成 | `/quality-review` | 执行完成,进入质量管线 |
103
101
  | quality 全通过 | `/maestro-milestone-audit` | 准备里程碑审计 |
104
102
  | 所有 Phase 完成 | `/maestro-milestone-complete` | 里程碑可以关闭 |
105
103
 
@@ -45,7 +45,7 @@ const taskPatterns = [
45
45
  4. `/maestro-analyze "topic"` — 宏观分析,探索影响面 → scope_verdict
46
46
  5. `/maestro-roadmap --from analyze:ANL-xxx` — 纯编排,Milestone > Phase 分解
47
47
  6. `/maestro-analyze 1` — 微观分析,Phase 级深入
48
- 7. `/maestro-plan 1` → `/maestro-execute` → `/maestro-verify`
48
+ 7. `/maestro-plan 1` → `/maestro-execute`
49
49
 
50
50
  ### 路径 E: 纯规格文档(不进执行链)
51
51
  1. `/maestro-blueprint "project idea"` — 供人阅读和决策
@@ -62,7 +62,7 @@ const taskPatterns = [
62
62
  1. `/maestro-analyze "feature X"` — 宏观分析 → scope_verdict=large
63
63
  2. `/maestro-roadmap --from analyze:ANL-xxx` — Milestone > Phase 分解
64
64
  3. `/maestro-analyze 1` — 微观分析
65
- 4. `/maestro-plan 1` → `/maestro-execute` → `/maestro-verify`
65
+ 4. `/maestro-plan 1` → `/maestro-execute`
66
66
  ```
67
67
 
68
68
  **中等功能 — Path C** (复杂度: 中,跳过 roadmap):
@@ -72,7 +72,7 @@ const taskPatterns = [
72
72
 
73
73
  1. `/maestro-analyze "feature X"` — 宏观分析 → scope_verdict=medium
74
74
  2. `/maestro-plan --from analyze:ANL-xxx` — 直达规划,跳过 roadmap
75
- 3. `/maestro-execute` → `/maestro-verify`
75
+ 3. `/maestro-execute`
76
76
 
77
77
  ### 快速渠道(简单功能)
78
78
  1. `/maestro-quick "功能描述"` — 一键完成
@@ -87,7 +87,7 @@ const taskPatterns = [
87
87
  ## 小改动工作流
88
88
 
89
89
  1. `/maestro-plan "fix auth bug"` — 直接规划
90
- 2. `/maestro-execute` → `/maestro-verify`
90
+ 2. `/maestro-execute`
91
91
 
92
92
  ### 快速修复(已知问题)
93
93
  1. `/maestro-quick "修复 Bug 描述"`
@@ -131,7 +131,7 @@ const taskPatterns = [
131
131
  上游起源: brainstorm(发散) | blueprint(收敛) → 可选
132
132
  理解层: analyze "topic"(宏观) → scope_verdict 路由
133
133
  编排层: roadmap(可选,仅 scope_verdict=large 时建议)
134
- 执行层: plan → execute → verify → quality → milestone-audit → milestone-complete
134
+ 执行层: plan → execute → quality → milestone-audit → milestone-complete
135
135
  快速渠道: maestro-quick → (直接完成)
136
136
  Issue 闭环: discover → create → analyze --gaps → plan --gaps → execute → close
137
137
  全自动: /maestro -y → (自动路由)
@@ -146,7 +146,7 @@ Issue 闭环: discover → create → analyze --gaps → plan --gaps → execute
146
146
 
147
147
  - **Roadmap**: 项目级常驻规划文档,包含多个 Milestone
148
148
  - **Milestone**: 可独立交付的版本节点(v0.1.0-rc1),包含多个 Phase
149
- - **Phase**: Milestone 内的同步屏障执行阶段,走 analyze → plan → execute → verify 生命周期
149
+ - **Phase**: Milestone 内的同步屏障执行阶段,走 analyze → plan → execute 生命周期
150
150
  - **Task**: Phase 内的具体代码修改单元(wave DAG 管理并行)
151
151
  - **Blueprint**: 正式规格文档化命令(7-phase 收敛),与 brainstorm 并列作为上游起源
152
152
  - **Analyze 双层**: 宏观(文本参数)探索影响面产出 scope_verdict;微观(数字参数)Phase 级深入分析
@@ -179,8 +179,7 @@ Issue 闭环: discover → create → analyze --gaps → plan --gaps → execute
179
179
  | 6 | `/maestro-roadmap` | 路线图编排 | scope_verdict=large 时,Milestone > Phase 分解 |
180
180
  | 7 | `/maestro-plan` | 规划 | 分析完成后生成执行计划,支持 `--from analyze:ANL-xxx` 直达 |
181
181
  | 8 | `/maestro-execute` | 执行 | 计划完成后,执行实现 |
182
- | 9 | `/maestro-verify` | 验证 | 执行完成后,检查成果 |
183
- | 10 | `/maestro-quick` | 快速任务 | 简单任务跳过管线 |
182
+ | 9 | `/maestro-quick` | 快速任务 | 简单任务跳过管线 |
184
183
  ```
185
184
 
186
185
  #### Step 5.2: 快速入门路径
@@ -56,7 +56,7 @@ $codify-to-knowhow ".workflow/reference_style/my-style-v1"
56
56
  - `<package-path>` (positional, required): Directory containing `knowhow-manifest.json`
57
57
 
58
58
  **Upstream**: `maestro-ui-codify`, `learn-decompose`, or any skill that generates a manifest
59
- **Downstream**: `maestro wiki list --category coding`, `maestro spec load --keyword <slug>`
59
+ **Downstream**: `maestro search --category coding`, `maestro spec load --keyword <slug>`
60
60
  </context>
61
61
 
62
62
  <manifest_schema>
@@ -246,7 +246,7 @@ type: ${asset.category}`;
246
246
  for (let i = 0; i < asset.entries.length; i++) {
247
247
  const entry = asset.entries[i];
248
248
  const entryId = `${asset.prefix}-${manifest.slug}-${String(i + 1).padStart(3, '0')}`;
249
- body += `\n\n<knowhow-entry keywords="${entry.category},${entry.keywords}" date="${today}" id="${entryId}" roles="${manifest.roles.join(',')}" source="codify-to-knowhow">
249
+ body += `\n\n<knowhow-entry keywords="${entry.category},${entry.keywords}" date="${today}" title="${entry.title}" description="${entry.description || ''}" id="${entryId}" roles="${manifest.roles.join(',')}" source="codify-to-knowhow">
250
250
 
251
251
  ### ${entry.title}
252
252
 
@@ -303,7 +303,7 @@ for (const spec of manifest.specs) {
303
303
 
304
304
  const entryBlock = `
305
305
 
306
- <spec-entry roles="${manifest.roles.join(',')}" keywords="${spec.keywords}" date="${today}"${refAttr}>
306
+ <spec-entry roles="${manifest.roles.join(',')}" keywords="${spec.keywords}" date="${today}" title="${spec.title}" description="${spec.description || ''}"${refAttr}>
307
307
 
308
308
  ### ${spec.title}
309
309
 
@@ -312,7 +312,8 @@ ${spec.body}
312
312
  </spec-entry>`;
313
313
 
314
314
  // Prefer CLI, fallback to direct append
315
- const cliResult = Bash(`maestro spec add ${spec.category} "${spec.title}" "${spec.body}" --keywords "${spec.keywords}" 2>/dev/null`);
315
+ const descFlag = spec.description ? ` --description "${spec.description}"` : '';
316
+ const cliResult = Bash(`maestro spec add ${spec.category} "${spec.title}" "${spec.body}" --keywords "${spec.keywords}"${descFlag} 2>/dev/null`);
316
317
 
317
318
  if (cliResult.exitCode !== 0) {
318
319
  // Fallback: direct file append
@@ -396,7 +397,7 @@ Ref Links: spec -> knowhow bridge established
396
397
  Wiki Index: refreshed
397
398
 
398
399
  Next steps:
399
- maestro wiki list --category coding # Browse by role
400
+ maestro search --category coding # Browse by role
400
401
  maestro spec load --keyword {slug} # Load related specs
401
402
  maestro wiki load <id> # Load full entry
402
403
  ```
@@ -50,7 +50,7 @@ $ARGUMENTS — target path/module and optional flags.
50
50
  Parse flags from `$ARGUMENTS`: `-y`/`--yes`, `--patterns <list>`, `--save-spec`, `--save-wiki`, `--continue`, `-c N`.
51
51
  Extract remaining text as target path/module.
52
52
 
53
- Resolve target to file list. Load coding specs: `maestro spec load --category coding` for documented patterns and conventions. Load existing patterns from `coding-conventions.md` + `.workflow/specs/learnings.md` for dedup set. Browse wiki: `maestro wiki list --category coding`, load relevant entries.
53
+ Resolve target to file list. Load coding specs: `maestro spec load --category coding` for documented patterns and conventions. Load existing patterns from `coding-conventions.md` + `.workflow/specs/learnings.md` for dedup set. Browse wiki: `maestro search --category coding`, load relevant entries.
54
54
 
55
55
  ### Phase 2: Wave 1 — Parallel Dimension Scans
56
56
 
@@ -20,7 +20,7 @@ $ARGUMENTS — target and optional flags.
20
20
  **Target resolution (auto-detected):**
21
21
  - File path → Read source file
22
22
  - Wiki ID (`type-slug`) → Fetch via `maestro wiki get`
23
- - Topic string → Search via `maestro wiki search`, use top result
23
+ - Topic string → Search via `maestro search`, use top result
24
24
 
25
25
  **Flags:**
26
26
  - `--depth shallow` — Key patterns and structure only (default)
@@ -29,7 +29,7 @@ $ARGUMENTS — question text and optional flags.
29
29
  ### Stage 1: Frame the Question
30
30
  - Parse question, generate slug, create investigation directory
31
31
  - Load debug specs: `maestro spec load --category debug` for known issues and patterns
32
- - Search prior knowledge: `maestro wiki list --category debug`, wiki search, grep .workflow/specs/learnings.md
32
+ - Search prior knowledge: `maestro search --category debug`, wiki search, grep .workflow/specs/learnings.md
33
33
  - Write initial `understanding.md`
34
34
 
35
35
  ### Stage 2: Evidence Collection
@@ -34,7 +34,7 @@ $ARGUMENTS — target and optional flags.
34
34
  <execution>
35
35
 
36
36
  ### Phase 1: Resolve Target + Load Context
37
- Resolve target to content. Load specs, wiki search, prior lessons for context brief.
37
+ Resolve target to content. Load specs, `maestro search`, prior lessons for context brief.
38
38
 
39
39
  ### Phase 2: Execute Mode
40
40
 
@@ -43,7 +43,7 @@ $ARGUMENTS — user intent text, or special flags.
43
43
  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
44
  4. **Goal is tool-created** — `A_DECOMPOSE_TASKS` calls `create_goal` with sub-goal success criteria. `update_goal` on convergence; held while aborted/paused
45
45
  5. **status.json 唯一真源** — 不生成 `goal-checklist.md`;step 含 `command_scope` + `command_path` + `completion_confirmed`
46
- 6. **Topology awareness** — chain catalog 含 grill / brainstorm / blueprint / analyze-macro(text) / analyze(numeric) / roadmap / plan(三路径) / execute / verify / ...
46
+ 6. **Topology awareness** — chain catalog 含 grill / brainstorm / blueprint / analyze-macro(text) / analyze(numeric) / roadmap / plan(三路径) / execute / ...
47
47
  6.5. **Grill is interactive-only** — auto_mode MUST skip grill stage and route directly to brainstorm; grill requires Socratic Q&A with the user
48
48
  7. **D-007 milestone 反查** — 数字 phase 步骤的 `milestone_id` 由 `state.json.milestones[].phase_slugs` 反查
49
49
  8. **schema 向后兼容** — decomposition 字段可选;`steps[]` 由 post-goal-audit 动态生长(goal_ref tagged);既有字段不删不改;`waves` 保留空数组
@@ -164,7 +164,7 @@ Extract:
164
164
  | `plan` | Plan, design, architect a phase |
165
165
  | `execute` | Implement, develop, code a phase |
166
166
  | `analyze` | Understand, investigate, evaluate code (numeric phase) |
167
- | `verify` | Check goals met, validate results |
167
+ | `verify` | Check goals met, validate results (routes to quality-review) |
168
168
  | `review` | Code quality review |
169
169
  | `test` | Run or create tests, UAT |
170
170
  | `test_gen` | Generate tests for coverage gaps |
@@ -188,17 +188,17 @@ Extract:
188
188
  | `issue_analyze` | Analyze a specific issue |
189
189
  | `issue_plan` | Plan fix for an issue |
190
190
  | `issue_execute` | Fix issue end-to-end (auto-upgrades to issue-full) |
191
- | `feature` | Standard feature: plan→execute→verify |
192
- | `full-lifecycle` | Complete phase: plan→execute→verify→review→test→audit→complete |
191
+ | `feature` | Standard feature: plan→execute→review |
192
+ | `full-lifecycle` | Complete phase: plan→execute→review→test→audit→complete |
193
193
  | `brainstorm-driven` | Start from exploration/brainstorm |
194
194
  | `spec-driven` | From spec/requirements (heavy, with init) |
195
195
  | `roadmap-driven` | From requirements (light, with init) |
196
196
  | `analyze-plan-execute` | Fast track: analyze→plan→execute |
197
- | `execute-verify` | Resume after planning |
197
+ | `execute-review` | Resume after planning |
198
198
  | `review-fix` | Fix review-blocked issues |
199
199
  | `quality-loop` | Full quality improvement cycle |
200
200
  | `quality-loop-partial` | Partial quality fix |
201
- | `quality-fix` | Analyze gaps→plan→execute→verify |
201
+ | `quality-fix` | Analyze gaps→plan→execute→review |
202
202
  | `deploy` | Verify then release |
203
203
  | `milestone-close` | Close/transition milestone |
204
204
  | `milestone-release` | Release milestone with version tag |
@@ -235,16 +235,14 @@ Read `.workflow/state.json` and route by condition:
235
235
  | No phases | `brainstorm-driven` |
236
236
  | pending + has context | `plan` |
237
237
  | pending, no context | `analyze` |
238
- | exploring/planning + has plan | `execute-verify` |
238
+ | exploring/planning + has plan | `execute-review` |
239
239
  | exploring/planning, no plan | `plan` |
240
- | executing, all tasks done | `verify` |
240
+ | executing, all tasks done | `review` |
241
241
  | executing, tasks remain | `execute` |
242
- | verifying, passed + no review | `review` |
243
- | verifying, passed + BLOCK | `review-fix` |
244
- | verifying, passed + UAT pending | `test` |
245
- | verifying, passed + UAT passed | `milestone-close` |
246
- | verifying, passed + UAT failed | `debug` |
247
- | verifying, not passed | `quality-loop-partial` |
242
+ | reviewing, verdict == BLOCK | `review-fix` |
243
+ | reviewing, verdict != BLOCK + UAT pending | `test` |
244
+ | reviewing, verdict != BLOCK + UAT passed | `milestone-close` |
245
+ | reviewing, verdict != BLOCK + UAT failed | `debug` |
248
246
  | testing, UAT passed | `milestone-close` |
249
247
  | testing, UAT not passed | `debug` |
250
248
  | completed | `milestone-close` |
@@ -353,7 +351,7 @@ S_DECISION_EVAL 入口;镜像 maestro-ralph `A_GOAL_AUDIT_EVALUATE`。Condense
353
351
 
354
352
  ### A_APPLY_GOAL_FIX
355
353
 
356
- **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} → $maestro-verify {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.
354
+ **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.
357
355
 
358
356
  ### A_APPLY_GOAL_DONE
359
357
 
@@ -398,7 +396,7 @@ S_DECISION_EVAL 入口;镜像 maestro-ralph `A_GOAL_AUDIT_EVALUATE`。Condense
398
396
  | `plan_from_analyze` | `maestro-plan --from analyze:{analyze_macro_id}` |
399
397
  | `plan_from_blueprint` | `maestro-plan --from blueprint:{blueprint_id}` |
400
398
  | `execute` | `maestro-execute {phase}` |
401
- | `verify` | `maestro-verify {phase}` |
399
+ | `verify` | `quality-review {phase}` |
402
400
  | `test_gen` | `quality-auto-test {phase}` |
403
401
  | `auto_test` | `quality-auto-test {phase}` |
404
402
  | `test` | `quality-test {phase}` |
@@ -443,27 +441,27 @@ S_DECISION_EVAL 入口;镜像 maestro-ralph `A_GOAL_AUDIT_EVALUATE`。Condense
443
441
 
444
442
  | Chain | Steps (→ = sequential, [B] = context-producing barrier) |
445
443
  |-------|---------------------------------------|
446
- | `feature` | [B] maestro-plan → [B] maestro-execute → maestro-verify |
447
- | `quality-fix` | [B] maestro-analyze --gaps → [B] maestro-plan --gaps → [B] maestro-execute → maestro-verify |
448
- | `deploy` | maestro-verify → maestro-milestone-release |
449
- | `blueprint-driven` | maestro-init → [B] maestro-blueprint → [B] maestro-plan --from blueprint:{BLP} → [B] maestro-execute → maestro-verify |
450
- | `analyze-macro-driven` | [B] maestro-analyze "{intent}" → ◆ post-analyze-scope → (large: [B] maestro-roadmap --from analyze:{ANL} → [B] maestro-analyze {phase} → [B] maestro-plan {phase}) / (medium\|small: [B] maestro-plan --from analyze:{ANL}) → [B] maestro-execute → maestro-verify |
451
- | `grill-brainstorm` | [B] maestro-grill → [B] maestro-brainstorm --from grill:{GRL} → [B] maestro-plan → [B] maestro-execute → maestro-verify (**auto_mode: skip grill step, fall back to brainstorm-driven**) |
452
- | `brainstorm-driven` | [B] maestro-brainstorm → [B] maestro-plan → [B] maestro-execute → maestro-verify |
453
- | `ui-craft-build` | maestro-impeccable build → [B] maestro-plan → [B] maestro-execute → maestro-verify |
454
- | `roadmap-driven` | maestro-init → [B] maestro-roadmap → [B] maestro-plan → [B] maestro-execute → maestro-verify |
455
- | `next-milestone` | [B] maestro-roadmap → [B] maestro-plan → [B] maestro-execute → maestro-verify |
456
- | `full-lifecycle` | [B] maestro-plan → [B] maestro-execute → maestro-verify → quality-review → quality-test → maestro-milestone-audit → maestro-milestone-complete |
457
- | `execute-verify` | [B] maestro-execute → maestro-verify |
444
+ | `feature` | [B] maestro-plan → [B] maestro-execute → quality-review |
445
+ | `quality-fix` | [B] maestro-analyze --gaps → [B] maestro-plan --gaps → [B] maestro-execute → quality-review |
446
+ | `deploy` | quality-review → maestro-milestone-release |
447
+ | `blueprint-driven` | maestro-init → [B] maestro-blueprint → [B] maestro-plan --from blueprint:{BLP} → [B] maestro-execute → quality-review |
448
+ | `analyze-macro-driven` | [B] maestro-analyze "{intent}" → ◆ post-analyze-scope → (large: [B] maestro-roadmap --from analyze:{ANL} → [B] maestro-analyze {phase} → [B] maestro-plan {phase}) / (medium\|small: [B] maestro-plan --from analyze:{ANL}) → [B] maestro-execute → quality-review |
449
+ | `grill-brainstorm` | [B] maestro-grill → [B] maestro-brainstorm --from grill:{GRL} → [B] maestro-plan → [B] maestro-execute → quality-review (**auto_mode: skip grill step, fall back to brainstorm-driven**) |
450
+ | `brainstorm-driven` | [B] maestro-brainstorm → [B] maestro-plan → [B] maestro-execute → quality-review |
451
+ | `ui-craft-build` | maestro-impeccable build → [B] maestro-plan → [B] maestro-execute → quality-review |
452
+ | `roadmap-driven` | maestro-init → [B] maestro-roadmap → [B] maestro-plan → [B] maestro-execute → quality-review |
453
+ | `next-milestone` | [B] maestro-roadmap → [B] maestro-plan → [B] maestro-execute → quality-review |
454
+ | `full-lifecycle` | [B] maestro-plan → [B] maestro-execute → quality-review → quality-test → maestro-milestone-audit → maestro-milestone-complete |
455
+ | `execute-review` | [B] maestro-execute → quality-review |
458
456
  | `analyze-plan-execute` | [B] maestro-analyze -q → [B] maestro-plan --dir {scratch_dir} → [B] maestro-execute --dir {scratch_dir} |
459
- | `quality-loop` | maestro-verify → quality-review → quality-test → quality-debug --from-uat → [B] maestro-plan --gaps → [B] maestro-execute |
460
- | `quality-loop-partial` | [B] maestro-plan --gaps → [B] maestro-execute → maestro-verify |
457
+ | `quality-loop` | quality-review → quality-test → quality-debug --from-uat → [B] maestro-plan --gaps → [B] maestro-execute |
458
+ | `quality-loop-partial` | [B] maestro-plan --gaps → [B] maestro-execute → quality-review |
461
459
  | `review-fix` | [B] maestro-plan --gaps → [B] maestro-execute → quality-review |
462
460
  | `milestone-close` | maestro-milestone-audit → maestro-milestone-complete |
463
461
  | `milestone-release` | maestro-milestone-audit → maestro-milestone-release |
464
462
  | `phase_transition` | maestro-milestone-audit → maestro-milestone-complete |
465
463
  | `issue-full` | [B] maestro-analyze --gaps → [B] maestro-plan --gaps → [B] maestro-execute → quality-review → manage-issue close |
466
- | `issue-quick` | [B] maestro-plan --gaps → [B] maestro-execute → manage-issue close |
464
+ | `issue-quick` | [B] maestro-plan --gaps → [B] maestro-execute → quality-review → manage-issue close |
467
465
 
468
466
  > When S_DECOMPOSE ran, a `decision:post-goal-audit` node is appended as the final node (after the last evidence-producing step; before milestone-complete/close-out if the chain ends with one). `[B]` now denotes a context-producing skill (artifacts read into `session.context`) — execution is still sequential (no parallelism; spawning removed).
469
467
 
@@ -37,7 +37,7 @@ $ARGUMENTS -- phase number, topic text, and optional flags.
37
37
  Interview the user relentlessly until shared understanding is reached. Active only in interactive mode; skip when `-y/--yes`, `--continue`, or input is already specific (explicit phase number or unambiguous topic).
38
38
 
39
39
  - One decision per turn via AskUserQuestion with 2–4 options + a (Recommended) default. The user controls termination — keep interviewing until convergence; they can interrupt naturally at any time.
40
- - Search-first when uncertain: before asking, resolve via `state.json`, `roadmap.md`, `issues.jsonl`, `maestro spec load`, `maestro wiki search`, Grep, Read, or — for open-ended multi-file scans — `maestro delegate ... --role explore`. 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.
40
+ - Search-first when uncertain: before asking, resolve via `state.json`, `roadmap.md`, `issues.jsonl`, `maestro spec load`, `maestro search`, Grep, Read, or — for open-ended multi-file scans — `maestro delegate ... --role explore`. 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.
41
41
  - Writeback cadence: each settled decision is immediately appended/updated in `context.md` "Interview Decisions" (and mirrored into `analysis.md` in full mode). Do NOT batch writeback to the end — partial decisions must already be on disk before the next question.
42
42
  - Walk the decision dependency tree strictly: scope → depth → dimensions → Go/No-Go threshold. Do not open the next branch until the current one is settled.
43
43
  - Scope guard: only ask about decisions owned by `analyze`. Do not prejudge plan/execute concerns.
@@ -87,6 +87,9 @@ Available exploration dimensions: architecture, implementation, performance, sec
87
87
  8. **Tri-output**: context.md + context-package.json always. analysis.md (full only) + conclusions.json (full + quick — quick writes minimal with `scope_verdict` + `implementation_scope[]`). Gaps mode writes to issues.jsonl + context.md + context-package.json
88
88
  9. **D-007 milestone resolution**: numeric scope MUST reverse-lookup `state.json.milestones[].phase_slugs`. NEVER read `current_milestone` directly for phase-scoped artifact registration.
89
89
  10. **scope_verdict mandatory** (D-003): macro/adhoc/standalone scopes MUST produce `scope_verdict ∈ {small, medium, large}` in conclusions.json. Drives downstream chain (roadmap vs plan).
90
+ 11. **Invariant violation = BLOCK** — violating any invariant above blocks the current operation. Do NOT bypass for "efficiency" or "clear intent" reasons.
91
+ 12. **Evidence required on decisions** — every decision in context.md MUST cite evidence from Wave 1 exploration findings or Wave 2 scores. Decisions citing only orchestrator's manual file reading are flagged LOW CONFIDENCE.
92
+ 13. **Degradation must be marked** — when graceful degradation (invariant 7) activates, ALL downstream outputs inherit a LOW CONFIDENCE flag. Record in discoveries.ndjson: `{ type: "degradation_event", data: { wave, failed_tasks, impact } }`.
90
93
  </invariants>
91
94
 
92
95
  <state_machine>
@@ -231,7 +234,7 @@ Gray area detection: domain-aware (things users SEE/CALL/RUN/READ), phase-specif
231
234
  1. Export results.csv
232
235
  2. **Confidence scoring** (full mode): factors -- findings_depth(.30), evidence_strength(.25), coverage_breadth(.20), user_validation(.15), consistency(.10). Thresholds: <60% deeper, 60-80% optional, 80-95% converging, >95% converge.
233
236
  3. Auto-create issues from Deferred items -> issues.jsonl
234
- 4. Spec enrichment: Locked decisions -> `maestro spec add arch`; code patterns -> `maestro spec add coding`
237
+ 4. Spec enrichment: Locked decisions -> `maestro spec add arch "<title>" "<content>" --keywords <kw> --description "<summary>"`; code patterns -> `maestro spec add coding "<title>" "<content>" --keywords <kw> --description "<summary>"`
235
238
  5. Register artifact in state.json (type: analyze, includes context_package field pointing to context-package.json)
236
239
  6. Copy outputs to scratchDir, display summary
237
240
  7. **Next-step routing** (D-003 §5.3 — macro scope uses `scope_verdict` for downstream chain selection):
@@ -250,6 +253,16 @@ Gray area detection: domain-aware (things users SEE/CALL/RUN/READ), phase-specif
250
253
 
251
254
  </actions>
252
255
 
256
+ ### Artifact Verification (before S_AGGREGATE)
257
+
258
+ Before transitioning to S_AGGREGATE, verify ALL expected outputs exist:
259
+ ```
260
+ FULL_MODE_REQUIRED = ["tasks.csv", "context.md", "context-package.json", "analysis.md", "conclusions.json"]
261
+ QUICK_MODE_REQUIRED = ["tasks.csv", "context.md", "context-package.json", "conclusions.json"]
262
+ GAPS_MODE_REQUIRED = ["tasks.csv", "context.md", "context-package.json"]
263
+ ```
264
+ If any artifact is missing for the active mode: DO NOT proceed to S_AGGREGATE. Go back and produce the missing artifact.
265
+
253
266
  </state_machine>
254
267
 
255
268
  <discovery_board>
@@ -272,8 +285,8 @@ Protocol: read before analysis, append-only, dedup by type+key.
272
285
  | --gaps but no issues found | Abort: "No open/registered issues" |
273
286
  | --gaps ISS-ID not found | Abort: "Issue not found" |
274
287
  | Phase directory not found | List available phases, abort |
275
- | All exploration agents failed | Proceed to scoring with limited context |
276
- | All scoring agents failed | Skip analysis.md, decision extraction only |
288
+ | All exploration agents failed | Retry once. If still fails: proceed to scoring but flag ALL downstream decisions as LOW CONFIDENCE in discoveries.ndjson |
289
+ | All scoring agents failed | Retry once. If still fails: produce decision-only context.md but flag ALL decisions as LOW CONFIDENCE |
277
290
  | Synthesis agent failed | Minimal context.md from raw scores/exploration |
278
291
  | Continue mode: no session found | List available sessions |
279
292
  </error_codes>
@@ -88,6 +88,13 @@ P6 gate: Pass (>=80%) → Handoff | Review (60-79%) → Handoff w/caveats | Fail
88
88
  | Need project setup | /maestro-init |
89
89
  </execution>
90
90
 
91
+ <invariants>
92
+ 1. **Invariant violation = BLOCK** — violating any invariant above blocks the current operation.
93
+ 2. **Phase gate enforcement** — each phase produces artifacts that are prerequisites for the next. Do NOT advance to phase N+1 without verifying phase N's output exists: P2→product-brief.md, P3→requirements/_index.md, P4→architecture/_index.md, P5→epics/_index.md, P6→readiness-report.md.
94
+ 3. **Evidence required on ADRs** — Architecture Decision Records (ADR-*.md) MUST cite evidence (code analysis, requirement traceability REQ-xxx, upstream context). Generic rationale without project-specific references is INVALID.
95
+ 4. **Artifact verification before completion** — verify blueprint-config.json, product-brief.md, glossary.json (≥5 terms), requirements/_index.md, architecture/_index.md, epics/_index.md, readiness-report.md, blueprint-summary.md, context-package.json all exist. If any missing: DO NOT report completion.
96
+ </invariants>
97
+
91
98
  <error_codes>
92
99
  | Code | Severity | Condition | Recovery |
93
100
  |------|----------|-----------|----------|
@@ -95,7 +102,7 @@ P6 gate: Pass (>=80%) → Handoff | Review (60-79%) → Handoff w/caveats | Fail
95
102
  | E002 | error | Context source not found (--from) | Show available sessions/sources |
96
103
  | E006 | error | `.workflow/` not initialized | Run maestro-init first |
97
104
  | E007 | error | Phase 6 readiness Fail after 2 auto-fix iterations | Present manual fix options |
98
- | W001 | warning | CLI analysis failed, using fallback | Continue with available data |
105
+ | W001 | warning | CLI analysis failed | Retry once. If still fails: continue but flag affected phase outputs as LOW CONFIDENCE |
99
106
  | W002 | warning | Codebase exploration failed | Continue without codebase context |
100
107
  | W003 | warning | Glossary has < 5 terms | Note in readiness check |
101
108
  | W004 | warning | Review-level readiness score (60-79%) | Proceed with caveats |
@@ -21,7 +21,7 @@ $ARGUMENTS — topic text and optional flags.
21
21
 
22
22
  ### Pre-load specs
23
23
  1. **Architecture specs**: `maestro spec load --category arch` — load architecture constraints as context for multi-role design (roles respect documented decisions).
24
- 2. **Role Knowledge**: `maestro wiki list --category arch` → identify relevant entries → `maestro wiki load <id1> [id2...]`
24
+ 2. **Role Knowledge**: `maestro search --category arch` → identify relevant entries → `maestro wiki load <id1> [id2...]`
25
25
  3. Both optional — proceed without if unavailable.
26
26
 
27
27
  **Session**: `.workflow/.csv-wave/{YYYYMMDD}-brainstorm-{slug}/`
@@ -40,7 +40,7 @@ $ARGUMENTS — topic text and optional flags.
40
40
  Interview the user relentlessly until shared understanding is reached. Active only in interactive mode; skip when `-y/--yes`, `--skip-questions`, `--continue` (existing session), or input is already specific.
41
41
 
42
42
  - One decision per turn via request_user_input with 2–4 options + a (Recommended) default. The user controls termination — keep interviewing until convergence; they can interrupt naturally at any time.
43
- - Search-first when uncertain: before asking, resolve via `state.json`, the session directory, `maestro spec load`, `maestro wiki search`, Glob/Grep/Read, or — for open-ended multi-file scans — `maestro delegate ... --role explore`. 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.
43
+ - Search-first when uncertain: before asking, resolve via `state.json`, the session directory, `maestro spec load`, `maestro search`, Glob/Grep/Read, or — for open-ended multi-file scans — `maestro delegate ... --role explore`. 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.
44
44
  - Writeback cadence: each time a decision settles, immediately append/update its row in `guidance-specification.md` §11 (create the section if absent). Do NOT batch writeback to the end — partial decisions must already be on disk before the next question.
45
45
  - Branch jumps allowed: the user may switch freely between mode / role / upstream / sub-pipeline branches; sequence is not enforced, but every decision point must end with a definite answer.
46
46
  - Scope guard: only ask about decisions owned by `brainstorm`. Do not pre-resolve roadmap/plan choices.
@@ -210,6 +210,9 @@ CONSTRAINTS:
210
210
  5. **9 valid roles only**: data-architect, product-manager, product-owner, scrum-master, subject-matter-expert, system-architect, test-strategist, ui-designer, ux-expert
211
211
  6. **Wave 3 is read-only at the agent boundary**: the reviewer emits structured findings (conflicts / gaps / synergies with `patch_targets[]`). The orchestrator (not the agent) applies the patches via Edit.
212
212
  7. **DO NOT STOP**: Continuous until all waves complete; only pause at [CHECKPOINT] (skipped with -y).
213
+ 8. **Invariant violation = BLOCK** — violating any invariant above blocks the current operation. Do NOT bypass for "efficiency" or "clear intent" reasons.
214
+ 9. **Evidence required** — role analysis findings in {role}/analysis.md §2 Decision Digest MUST cite concrete evidence: code references (file:line), API endpoints, data models from codebase exploration. Decisions without evidence are flagged LOW CONFIDENCE.
215
+ 10. **Artifact verification before completion** — before reporting completion, verify ALL expected artifacts exist: guidance-specification.md, {role}/analysis.md (per selected role), {role}/analysis-F-*.md (per feature). If any missing: DO NOT report completion.
213
216
  </invariants>
214
217
 
215
218
  <spawn_contract>
@@ -288,7 +291,7 @@ S_CHECK_1 → END WHEN: user "Abort"
288
291
 
289
292
  S_DESIGN → S_WAVE_2 WHEN: DESIGN.md exists OR explore completed DO: A_DESIGN_EXPLORE
290
293
  S_DESIGN → S_WAVE_2 WHEN: DESIGN.md already exists (skip explore)
291
- S_DESIGN → S_WAVE_2 WHEN: explore failed → W004 → continue without
294
+ S_DESIGN → S_WAVE_2 WHEN: explore failed → W004 → retry once. If still fails: flag downstream outputs as LOW CONFIDENCE, continue without
292
295
 
293
296
  S_WAVE_2 → S_CHECK_2 DO: spawn wave-2 (parallel), merge results — each agent writes {role}/analysis.md + sub-files
294
297
  S_WAVE_2 → S_AGGREGATE WHEN: all failed DO: skip review
@@ -405,8 +408,8 @@ Protocol: read before analysis, append-only, dedup by type+key.
405
408
  | Condition | Recovery |
406
409
  |-----------|----------|
407
410
  | Guidance agent failed | Abort pipeline (W2 depends on guidance) |
408
- | All role agents failed | Skip review, report partial |
409
- | Review agent failed | Use analysis files directly, no resolution writeback |
411
+ | All role agents failed | Skip review, report partial. Retry once. If still fails: flag downstream outputs as LOW CONFIDENCE |
412
+ | Review agent failed | Use analysis files directly, no resolution writeback. Retry once. If still fails: flag downstream outputs as LOW CONFIDENCE |
410
413
  | Role count > 9 | Cap at 9 with warning |
411
414
  | E006 --review-only but no */analysis.md | Run auto mode or single roles first |
412
415
  | E007 --review-only but missing guidance-specification.md | Run auto mode first |
@@ -275,7 +275,7 @@ Generate 3 output files from cross-verify results:
275
275
 
276
276
  1. Copy outputs to scratchDir
277
277
  2. Register CLB artifact in state.json (type: collab, scope: adhoc)
278
- 3. Spec enrichment: for each Locked decision → `maestro spec add arch`
278
+ 3. Spec enrichment: for each Locked decision → `maestro spec add arch "<title>" "<content>" --keywords <kw> --description "<summary>"`
279
279
  4. `update_plan` all steps completed
280
280
  5. Display summary:
281
281
  ```