maestro-flow 0.5.41 → 0.5.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (363) hide show
  1. package/.agents/skills/domain-add/SKILL.md +3 -0
  2. package/.agents/skills/learn-decompose/SKILL.md +7 -4
  3. package/.agents/skills/learn-follow/SKILL.md +4 -2
  4. package/.agents/skills/learn-investigate/SKILL.md +8 -6
  5. package/.agents/skills/learn-second-opinion/SKILL.md +6 -3
  6. package/.agents/skills/maestro/SKILL.md +1 -1
  7. package/.agents/skills/maestro-amend/SKILL.md +1 -1
  8. package/.agents/skills/maestro-analyze/SKILL.md +1 -43
  9. package/.agents/skills/maestro-blueprint/SKILL.md +1 -23
  10. package/.agents/skills/maestro-brainstorm/SKILL.md +8 -25
  11. package/.agents/skills/maestro-collab/SKILL.md +6 -2
  12. package/.agents/skills/maestro-companion/SKILL.md +4 -1
  13. package/.agents/skills/maestro-composer/SKILL.md +4 -2
  14. package/.agents/skills/maestro-execute/SKILL.md +27 -9
  15. package/.agents/skills/maestro-fork/SKILL.md +4 -3
  16. package/.agents/skills/maestro-grill/SKILL.md +1 -17
  17. package/.agents/skills/maestro-guard/SKILL.md +2 -2
  18. package/.agents/skills/maestro-impeccable/SKILL.md +2 -1
  19. package/.agents/skills/maestro-init/SKILL.md +1 -1
  20. package/.agents/skills/maestro-merge/SKILL.md +12 -1
  21. package/.agents/skills/maestro-milestone-audit/SKILL.md +1 -15
  22. package/.agents/skills/maestro-milestone-complete/SKILL.md +8 -3
  23. package/.agents/skills/maestro-milestone-release/SKILL.md +8 -4
  24. package/.agents/skills/maestro-overlay/SKILL.md +9 -0
  25. package/.agents/skills/maestro-plan/SKILL.md +6 -62
  26. package/.agents/skills/maestro-player/SKILL.md +2 -2
  27. package/.agents/skills/maestro-quick/SKILL.md +5 -3
  28. package/.agents/skills/maestro-ralph/SKILL.md +8 -8
  29. package/.agents/skills/maestro-ralph-cli/SKILL.md +665 -0
  30. package/.agents/skills/maestro-ralph-cli-execute/SKILL.md +239 -0
  31. package/.agents/skills/maestro-ralph-execute/SKILL.md +127 -11
  32. package/.agents/skills/maestro-roadmap/SKILL.md +1 -9
  33. package/.agents/skills/maestro-swarm-workflow/SKILL.md +16 -14
  34. package/.agents/skills/maestro-tools-register/SKILL.md +16 -1
  35. package/.agents/skills/maestro-ui-codify/SKILL.md +11 -1
  36. package/.agents/skills/maestro-universal-workflow/SKILL.md +28 -5
  37. package/.agents/skills/maestro-update/SKILL.md +10 -7
  38. package/.agents/skills/manage-codebase-rebuild/SKILL.md +5 -1
  39. package/.agents/skills/manage-drift-realign/SKILL.md +6 -2
  40. package/.agents/skills/manage-harvest/SKILL.md +4 -1
  41. package/.agents/skills/manage-issue-discover/SKILL.md +1 -0
  42. package/.agents/skills/manage-kg-extractors/SKILL.md +5 -1
  43. package/.agents/skills/manage-knowhow-capture/SKILL.md +1 -0
  44. package/.agents/skills/manage-knowledge-audit/SKILL.md +3 -0
  45. package/.agents/skills/manage-wiki/SKILL.md +1 -0
  46. package/.agents/skills/odyssey-debug/SKILL.md +2 -1
  47. package/.agents/skills/odyssey-improve/SKILL.md +2 -2
  48. package/.agents/skills/odyssey-planex/SKILL.md +8 -7
  49. package/.agents/skills/odyssey-review-test-fix/SKILL.md +4 -1
  50. package/.agents/skills/odyssey-ui/SKILL.md +4 -4
  51. package/.agents/skills/quality-auto-test/SKILL.md +11 -1
  52. package/.agents/skills/quality-debug/SKILL.md +16 -2
  53. package/.agents/skills/quality-retrospective/SKILL.md +9 -1
  54. package/.agents/skills/quality-review/SKILL.md +8 -0
  55. package/.agents/skills/quality-sync/SKILL.md +2 -2
  56. package/.agents/skills/quality-test/SKILL.md +9 -1
  57. package/.agents/skills/security-audit/SKILL.md +14 -4
  58. package/.agents/skills/spec-add/SKILL.md +5 -2
  59. package/.agents/skills/spec-load/SKILL.md +1 -1
  60. package/.agents/skills/spec-remove/SKILL.md +1 -1
  61. package/.agents/skills/spec-setup/SKILL.md +3 -0
  62. package/.agents/skills/team-adversarial-swarm/workflows/wf-swarm-synthesize.js +248 -248
  63. package/.agents/skills/team-coordinate/specs/role-spec-template.md +197 -198
  64. package/.agents/skills/team-roadmap-dev/SKILL.md +164 -164
  65. package/.agents/skills/team-roadmap-dev/specs/team-config.json +1 -1
  66. package/.agents/skills/team-swarm/roles/analyst/role.md +172 -176
  67. package/.agy/skills/domain-add/SKILL.md +3 -0
  68. package/.agy/skills/learn-decompose/SKILL.md +7 -4
  69. package/.agy/skills/learn-follow/SKILL.md +4 -2
  70. package/.agy/skills/learn-investigate/SKILL.md +8 -6
  71. package/.agy/skills/learn-second-opinion/SKILL.md +6 -3
  72. package/.agy/skills/maestro/SKILL.md +1 -1
  73. package/.agy/skills/maestro-amend/SKILL.md +1 -1
  74. package/.agy/skills/maestro-analyze/SKILL.md +1 -43
  75. package/.agy/skills/maestro-blueprint/SKILL.md +1 -23
  76. package/.agy/skills/maestro-brainstorm/SKILL.md +8 -25
  77. package/.agy/skills/maestro-collab/SKILL.md +6 -2
  78. package/.agy/skills/maestro-companion/SKILL.md +4 -1
  79. package/.agy/skills/maestro-composer/SKILL.md +4 -2
  80. package/.agy/skills/maestro-execute/SKILL.md +27 -9
  81. package/.agy/skills/maestro-fork/SKILL.md +4 -3
  82. package/.agy/skills/maestro-grill/SKILL.md +1 -17
  83. package/.agy/skills/maestro-guard/SKILL.md +2 -2
  84. package/.agy/skills/maestro-impeccable/SKILL.md +2 -1
  85. package/.agy/skills/maestro-init/SKILL.md +1 -1
  86. package/.agy/skills/maestro-merge/SKILL.md +12 -1
  87. package/.agy/skills/maestro-milestone-audit/SKILL.md +1 -15
  88. package/.agy/skills/maestro-milestone-complete/SKILL.md +8 -3
  89. package/.agy/skills/maestro-milestone-release/SKILL.md +8 -4
  90. package/.agy/skills/maestro-overlay/SKILL.md +9 -0
  91. package/.agy/skills/maestro-plan/SKILL.md +6 -62
  92. package/.agy/skills/maestro-player/SKILL.md +2 -2
  93. package/.agy/skills/maestro-quick/SKILL.md +5 -3
  94. package/.agy/skills/maestro-ralph/SKILL.md +8 -8
  95. package/.agy/skills/maestro-ralph-cli/SKILL.md +661 -0
  96. package/.agy/skills/maestro-ralph-cli-execute/SKILL.md +235 -0
  97. package/.agy/skills/maestro-ralph-execute/SKILL.md +127 -11
  98. package/.agy/skills/maestro-roadmap/SKILL.md +1 -9
  99. package/.agy/skills/maestro-swarm-workflow/SKILL.md +16 -14
  100. package/.agy/skills/maestro-tools-register/SKILL.md +16 -1
  101. package/.agy/skills/maestro-ui-codify/SKILL.md +11 -1
  102. package/.agy/skills/maestro-universal-workflow/SKILL.md +28 -5
  103. package/.agy/skills/maestro-update/SKILL.md +10 -7
  104. package/.agy/skills/manage-codebase-rebuild/SKILL.md +5 -1
  105. package/.agy/skills/manage-drift-realign/SKILL.md +6 -2
  106. package/.agy/skills/manage-harvest/SKILL.md +4 -1
  107. package/.agy/skills/manage-issue-discover/SKILL.md +1 -0
  108. package/.agy/skills/manage-kg-extractors/SKILL.md +5 -1
  109. package/.agy/skills/manage-knowhow-capture/SKILL.md +1 -0
  110. package/.agy/skills/manage-knowledge-audit/SKILL.md +3 -0
  111. package/.agy/skills/manage-wiki/SKILL.md +1 -0
  112. package/.agy/skills/odyssey-debug/SKILL.md +2 -1
  113. package/.agy/skills/odyssey-improve/SKILL.md +2 -2
  114. package/.agy/skills/odyssey-planex/SKILL.md +8 -7
  115. package/.agy/skills/odyssey-review-test-fix/SKILL.md +4 -1
  116. package/.agy/skills/odyssey-ui/SKILL.md +4 -4
  117. package/.agy/skills/quality-auto-test/SKILL.md +11 -1
  118. package/.agy/skills/quality-debug/SKILL.md +16 -2
  119. package/.agy/skills/quality-retrospective/SKILL.md +9 -1
  120. package/.agy/skills/quality-review/SKILL.md +8 -0
  121. package/.agy/skills/quality-sync/SKILL.md +2 -2
  122. package/.agy/skills/quality-test/SKILL.md +9 -1
  123. package/.agy/skills/security-audit/SKILL.md +14 -4
  124. package/.agy/skills/spec-add/SKILL.md +5 -2
  125. package/.agy/skills/spec-load/SKILL.md +1 -1
  126. package/.agy/skills/spec-remove/SKILL.md +1 -1
  127. package/.agy/skills/spec-setup/SKILL.md +3 -0
  128. package/.agy/skills/team-adversarial-swarm/workflows/wf-swarm-synthesize.js +248 -248
  129. package/.agy/skills/team-coordinate/specs/role-spec-template.md +197 -198
  130. package/.agy/skills/team-roadmap-dev/SKILL.md +141 -153
  131. package/.agy/skills/team-roadmap-dev/specs/team-config.json +1 -1
  132. package/.agy/skills/team-swarm/roles/analyst/role.md +172 -176
  133. package/.claude/commands/domain-add.md +3 -0
  134. package/.claude/commands/learn-decompose.md +7 -4
  135. package/.claude/commands/learn-follow.md +4 -2
  136. package/.claude/commands/learn-investigate.md +8 -6
  137. package/.claude/commands/learn-second-opinion.md +6 -3
  138. package/.claude/commands/maestro-amend.md +1 -1
  139. package/.claude/commands/maestro-analyze.md +1 -43
  140. package/.claude/commands/maestro-blueprint.md +1 -23
  141. package/.claude/commands/maestro-brainstorm.md +8 -25
  142. package/.claude/commands/maestro-collab.md +6 -2
  143. package/.claude/commands/maestro-companion.md +4 -1
  144. package/.claude/commands/maestro-composer.md +4 -2
  145. package/.claude/commands/maestro-execute.md +27 -9
  146. package/.claude/commands/maestro-fork.md +4 -3
  147. package/.claude/commands/maestro-grill.md +1 -17
  148. package/.claude/commands/maestro-guard.md +2 -2
  149. package/.claude/commands/maestro-impeccable.md +2 -1
  150. package/.claude/commands/maestro-init.md +1 -1
  151. package/.claude/commands/maestro-merge.md +12 -1
  152. package/.claude/commands/maestro-milestone-audit.md +1 -15
  153. package/.claude/commands/maestro-milestone-complete.md +8 -3
  154. package/.claude/commands/maestro-milestone-release.md +8 -4
  155. package/.claude/commands/maestro-overlay.md +9 -0
  156. package/.claude/commands/maestro-plan.md +6 -62
  157. package/.claude/commands/maestro-player.md +2 -2
  158. package/.claude/commands/maestro-quick.md +5 -3
  159. package/.claude/commands/maestro-ralph-cli-execute.md +237 -0
  160. package/.claude/commands/maestro-ralph-cli.md +663 -0
  161. package/.claude/commands/maestro-ralph-execute.md +127 -11
  162. package/.claude/commands/maestro-ralph.md +8 -8
  163. package/.claude/commands/maestro-roadmap.md +1 -9
  164. package/.claude/commands/maestro-swarm-workflow.md +16 -14
  165. package/.claude/commands/maestro-tools-register.md +16 -1
  166. package/.claude/commands/maestro-ui-codify.md +11 -1
  167. package/.claude/commands/maestro-universal-workflow.md +28 -5
  168. package/.claude/commands/maestro-update.md +10 -7
  169. package/.claude/commands/maestro.md +1 -1
  170. package/.claude/commands/manage-codebase-rebuild.md +5 -1
  171. package/.claude/commands/manage-drift-realign.md +6 -2
  172. package/.claude/commands/manage-harvest.md +4 -1
  173. package/.claude/commands/manage-issue-discover.md +1 -0
  174. package/.claude/commands/manage-kg-extractors.md +5 -1
  175. package/.claude/commands/manage-knowhow-capture.md +1 -0
  176. package/.claude/commands/manage-knowledge-audit.md +3 -0
  177. package/.claude/commands/manage-wiki.md +1 -0
  178. package/.claude/commands/odyssey-debug.md +2 -1
  179. package/.claude/commands/odyssey-improve.md +2 -2
  180. package/.claude/commands/odyssey-planex.md +8 -7
  181. package/.claude/commands/odyssey-review-test-fix.md +4 -1
  182. package/.claude/commands/odyssey-ui.md +4 -4
  183. package/.claude/commands/quality-auto-test.md +11 -1
  184. package/.claude/commands/quality-debug.md +16 -2
  185. package/.claude/commands/quality-retrospective.md +9 -1
  186. package/.claude/commands/quality-review.md +8 -0
  187. package/.claude/commands/quality-sync.md +2 -2
  188. package/.claude/commands/quality-test.md +9 -1
  189. package/.claude/commands/security-audit.md +14 -4
  190. package/.claude/commands/spec-add.md +5 -2
  191. package/.claude/commands/spec-load.md +1 -1
  192. package/.claude/commands/spec-remove.md +1 -1
  193. package/.claude/commands/spec-setup.md +3 -0
  194. package/.claude/skills/team-adversarial-swarm/workflows/wf-swarm-synthesize.js +248 -248
  195. package/.claude/skills/team-coordinate/specs/role-spec-template.md +197 -198
  196. package/.claude/skills/team-roadmap-dev/SKILL.md +169 -169
  197. package/.claude/skills/team-roadmap-dev/specs/team-config.json +1 -1
  198. package/.claude/skills/team-swarm/roles/analyst/role.md +181 -185
  199. package/.codex/skills/codify-to-knowhow/SKILL.md +27 -15
  200. package/.codex/skills/domain-add/SKILL.md +5 -3
  201. package/.codex/skills/learn-decompose/SKILL.md +22 -4
  202. package/.codex/skills/learn-follow/SKILL.md +12 -6
  203. package/.codex/skills/learn-investigate/SKILL.md +11 -6
  204. package/.codex/skills/learn-retro/SKILL.md +12 -6
  205. package/.codex/skills/learn-second-opinion/SKILL.md +11 -3
  206. package/.codex/skills/maestro/SKILL.md +19 -13
  207. package/.codex/skills/maestro-amend/SKILL.md +10 -2
  208. package/.codex/skills/maestro-analyze/SKILL.md +7 -1
  209. package/.codex/skills/maestro-blueprint/SKILL.md +1 -1
  210. package/.codex/skills/maestro-brainstorm/SKILL.md +11 -8
  211. package/.codex/skills/maestro-collab/SKILL.md +5 -5
  212. package/.codex/skills/maestro-companion/SKILL.md +4 -1
  213. package/.codex/skills/maestro-composer/SKILL.md +6 -3
  214. package/.codex/skills/maestro-execute/SKILL.md +11 -8
  215. package/.codex/skills/maestro-fork/SKILL.md +4 -3
  216. package/.codex/skills/maestro-grill/SKILL.md +1 -1
  217. package/.codex/skills/maestro-guard/SKILL.md +1 -1
  218. package/.codex/skills/maestro-impeccable/SKILL.md +5 -5
  219. package/.codex/skills/maestro-init/SKILL.md +3 -2
  220. package/.codex/skills/maestro-milestone-audit/SKILL.md +21 -9
  221. package/.codex/skills/maestro-milestone-complete/SKILL.md +3 -3
  222. package/.codex/skills/maestro-milestone-release/SKILL.md +18 -1
  223. package/.codex/skills/maestro-next/SKILL.md +11 -10
  224. package/.codex/skills/maestro-overlay/SKILL.md +16 -6
  225. package/.codex/skills/maestro-player/SKILL.md +11 -5
  226. package/.codex/skills/maestro-quick/SKILL.md +2 -2
  227. package/.codex/skills/maestro-ralph/SKILL.md +44 -31
  228. package/.codex/skills/maestro-ralph-cli/SKILL.md +394 -0
  229. package/.codex/skills/maestro-ralph-cli-execute/SKILL.md +146 -0
  230. package/.codex/skills/maestro-ralph-execute/SKILL.md +105 -24
  231. package/.codex/skills/maestro-roadmap/SKILL.md +8 -2
  232. package/.codex/skills/maestro-tools-execute/SKILL.md +8 -4
  233. package/.codex/skills/maestro-tools-register/SKILL.md +10 -6
  234. package/.codex/skills/maestro-ui-codify/SKILL.md +14 -9
  235. package/.codex/skills/manage-codebase-rebuild/SKILL.md +36 -14
  236. package/.codex/skills/manage-codebase-refresh/SKILL.md +1 -1
  237. package/.codex/skills/manage-drift-realign/SKILL.md +15 -12
  238. package/.codex/skills/manage-harvest/SKILL.md +1 -1
  239. package/.codex/skills/manage-issue/SKILL.md +8 -4
  240. package/.codex/skills/manage-issue-discover/SKILL.md +15 -14
  241. package/.codex/skills/manage-knowhow/SKILL.md +3 -2
  242. package/.codex/skills/manage-knowhow-capture/SKILL.md +4 -3
  243. package/.codex/skills/manage-learn/SKILL.md +2 -2
  244. package/.codex/skills/odyssey-debug/SKILL.md +12 -7
  245. package/.codex/skills/odyssey-improve/SKILL.md +11 -6
  246. package/.codex/skills/odyssey-planex/SKILL.md +14 -8
  247. package/.codex/skills/odyssey-review-test-fix/SKILL.md +12 -7
  248. package/.codex/skills/odyssey-ui/SKILL.md +10 -5
  249. package/.codex/skills/quality-auto-test/SKILL.md +13 -5
  250. package/.codex/skills/quality-debug/SKILL.md +18 -11
  251. package/.codex/skills/quality-refactor/SKILL.md +4 -4
  252. package/.codex/skills/quality-retrospective/SKILL.md +5 -6
  253. package/.codex/skills/quality-review/SKILL.md +18 -11
  254. package/.codex/skills/quality-sync/SKILL.md +2 -2
  255. package/.codex/skills/quality-test/SKILL.md +7 -5
  256. package/.codex/skills/security-audit/SKILL.md +7 -5
  257. package/.codex/skills/spec-add/SKILL.md +9 -7
  258. package/.codex/skills/spec-load/SKILL.md +3 -2
  259. package/.codex/skills/spec-map/SKILL.md +10 -1
  260. package/.codex/skills/spec-remove/SKILL.md +3 -2
  261. package/.codex/skills/team-coordinate/SKILL.md +10 -4
  262. package/.codex/skills/team-lifecycle-v4/SKILL.md +33 -26
  263. package/.codex/skills/team-quality-assurance/SKILL.md +43 -0
  264. package/.codex/skills/team-review/SKILL.md +50 -6
  265. package/.codex/skills/team-tech-debt/SKILL.md +53 -7
  266. package/.codex/skills/team-testing/SKILL.md +50 -2
  267. package/.codex/skills/wiki-connect/SKILL.md +3 -1
  268. package/.codex/skills/wiki-digest/SKILL.md +6 -4
  269. package/dashboard/dist-server/dashboard/src/server/wiki/embedding.d.ts +16 -0
  270. package/dashboard/dist-server/dashboard/src/server/wiki/embedding.js +419 -44
  271. package/dashboard/dist-server/dashboard/src/server/wiki/embedding.js.map +1 -1
  272. package/dashboard/dist-server/dashboard/src/server/wiki/wiki-indexer.js +43 -5
  273. package/dashboard/dist-server/dashboard/src/server/wiki/wiki-indexer.js.map +1 -1
  274. package/dashboard/dist-server/src/commands/install-backend.js +31 -16
  275. package/dashboard/dist-server/src/commands/install-backend.js.map +1 -1
  276. package/dashboard/dist-server/src/core/component-defs.js +25 -0
  277. package/dashboard/dist-server/src/core/component-defs.js.map +1 -1
  278. package/dashboard/dist-server/src/graph/kg/db/types.d.ts +3 -0
  279. package/dashboard/dist-server/src/graph/kg/embedding/code-embedding.d.ts +46 -0
  280. package/dashboard/dist-server/src/graph/kg/embedding/code-embedding.js +329 -0
  281. package/dashboard/dist-server/src/graph/kg/embedding/code-embedding.js.map +1 -0
  282. package/dashboard/dist-server/src/graph/kg/embedding/index.d.ts +2 -0
  283. package/dashboard/dist-server/src/graph/kg/embedding/index.js +3 -0
  284. package/dashboard/dist-server/src/graph/kg/embedding/index.js.map +1 -0
  285. package/dashboard/dist-server/src/graph/kg/engine.d.ts +19 -1
  286. package/dashboard/dist-server/src/graph/kg/engine.js +71 -1
  287. package/dashboard/dist-server/src/graph/kg/engine.js.map +1 -1
  288. package/dashboard/dist-server/src/graph/kg/query/scoring.d.ts +5 -0
  289. package/dashboard/dist-server/src/graph/kg/query/scoring.js +85 -1
  290. package/dashboard/dist-server/src/graph/kg/query/scoring.js.map +1 -1
  291. package/dashboard/dist-server/src/graph/kg/query/search.d.ts +7 -0
  292. package/dashboard/dist-server/src/graph/kg/query/search.js +117 -1
  293. package/dashboard/dist-server/src/graph/kg/query/search.js.map +1 -1
  294. package/dashboard/dist-server/src/graph/kg/surface/mcp-tools.js +49 -0
  295. package/dashboard/dist-server/src/graph/kg/surface/mcp-tools.js.map +1 -1
  296. package/dashboard/dist-server/src/hooks/kg-sync-hook.js +3 -0
  297. package/dashboard/dist-server/src/hooks/kg-sync-hook.js.map +1 -1
  298. package/dashboard/dist-server/src/tools/spec-loader.js +7 -3
  299. package/dashboard/dist-server/src/tools/spec-loader.js.map +1 -1
  300. package/dist/src/commands/install-backend.d.ts.map +1 -1
  301. package/dist/src/commands/install-backend.js +31 -16
  302. package/dist/src/commands/install-backend.js.map +1 -1
  303. package/dist/src/core/component-defs.d.ts.map +1 -1
  304. package/dist/src/core/component-defs.js +25 -0
  305. package/dist/src/core/component-defs.js.map +1 -1
  306. package/dist/src/core/plugin-bridge.d.ts.map +1 -1
  307. package/dist/src/core/plugin-bridge.js +17 -0
  308. package/dist/src/core/plugin-bridge.js.map +1 -1
  309. package/dist/src/graph/kg/db/types.d.ts +3 -0
  310. package/dist/src/graph/kg/db/types.d.ts.map +1 -1
  311. package/dist/src/graph/kg/embedding/code-embedding.d.ts +47 -0
  312. package/dist/src/graph/kg/embedding/code-embedding.d.ts.map +1 -0
  313. package/dist/src/graph/kg/embedding/code-embedding.js +329 -0
  314. package/dist/src/graph/kg/embedding/code-embedding.js.map +1 -0
  315. package/dist/src/graph/kg/embedding/index.d.ts +3 -0
  316. package/dist/src/graph/kg/embedding/index.d.ts.map +1 -0
  317. package/dist/src/graph/kg/embedding/index.js +3 -0
  318. package/dist/src/graph/kg/embedding/index.js.map +1 -0
  319. package/dist/src/graph/kg/engine.d.ts +19 -1
  320. package/dist/src/graph/kg/engine.d.ts.map +1 -1
  321. package/dist/src/graph/kg/engine.js +71 -1
  322. package/dist/src/graph/kg/engine.js.map +1 -1
  323. package/dist/src/graph/kg/query/scoring.d.ts +5 -0
  324. package/dist/src/graph/kg/query/scoring.d.ts.map +1 -1
  325. package/dist/src/graph/kg/query/scoring.js +85 -1
  326. package/dist/src/graph/kg/query/scoring.js.map +1 -1
  327. package/dist/src/graph/kg/query/search.d.ts +7 -0
  328. package/dist/src/graph/kg/query/search.d.ts.map +1 -1
  329. package/dist/src/graph/kg/query/search.js +117 -1
  330. package/dist/src/graph/kg/query/search.js.map +1 -1
  331. package/dist/src/graph/kg/surface/mcp-tools.d.ts.map +1 -1
  332. package/dist/src/graph/kg/surface/mcp-tools.js +49 -0
  333. package/dist/src/graph/kg/surface/mcp-tools.js.map +1 -1
  334. package/dist/src/hooks/kg-sync-hook.d.ts.map +1 -1
  335. package/dist/src/hooks/kg-sync-hook.js +3 -0
  336. package/dist/src/hooks/kg-sync-hook.js.map +1 -1
  337. package/dist/src/tools/code-semantic-search.d.ts +10 -0
  338. package/dist/src/tools/code-semantic-search.d.ts.map +1 -0
  339. package/dist/src/tools/code-semantic-search.js +81 -0
  340. package/dist/src/tools/code-semantic-search.js.map +1 -0
  341. package/dist/src/tools/index.d.ts.map +1 -1
  342. package/dist/src/tools/index.js +4 -0
  343. package/dist/src/tools/index.js.map +1 -1
  344. package/dist/src/tools/spec-loader.d.ts.map +1 -1
  345. package/dist/src/tools/spec-loader.js +7 -3
  346. package/dist/src/tools/spec-loader.js.map +1 -1
  347. package/dist/src/tools/wiki-search.d.ts +13 -0
  348. package/dist/src/tools/wiki-search.d.ts.map +1 -0
  349. package/dist/src/tools/wiki-search.js +114 -0
  350. package/dist/src/tools/wiki-search.js.map +1 -0
  351. package/dist/src/utils/update-notices.js +23 -0
  352. package/dist/src/utils/update-notices.js.map +1 -1
  353. package/package.json +4 -1
  354. package/workflows/agy-instructions.md +147 -161
  355. package/workflows/claude-instructions.md +100 -48
  356. package/workflows/codex-instructions.md +147 -161
  357. package/workflows/execute.md +4 -3
  358. package/workflows/explore-usage.md +41 -81
  359. package/workflows/grill.md +11 -0
  360. package/workflows/milestone-audit.md +8 -0
  361. package/workflows/odyssey-base-codex.md +115 -116
  362. package/workflows/odyssey-base.md +89 -91
  363. package/workflows/plan.md +6 -0
@@ -9,179 +9,175 @@ message_types:
9
9
  ---
10
10
  <!-- Open-standard mirror generated by scripts/build-agents-standard.mjs — do not edit; re-run after editing .claude/ source. -->
11
11
 
12
-
13
- # Analyst Role — Phase 2-4
14
-
15
- Tag: `[analyst]` | Prefix: `ANALYST-*`
16
- Responsibility: After swarm converges, synthesize the best solution + top trails + convergence curve into a human-readable `best-solution.md` report. Provides interpretation, not just data dump.
17
-
18
- ## Boundaries
19
-
20
- ### MUST
21
- - Read `<session>/best.json`, `<session>/artifacts/swarm-report.json`, all `<session>/trails/*.jsonl`
22
- - Produce `<session>/artifacts/best-solution.md` as the final deliverable
23
- - Explain WHY the best path won (which decisions mattered, evidence chain)
24
- - Compare best vs runner-ups to surface stability vs luck
25
- - Document convergence story (entropy curve, when stagnation hit)
26
-
27
- ### MUST NOT
28
- - Re-score solutions (that is scorer's job — analyst takes verified_score as given)
29
- - Modify best.json, trails, or pheromone state
30
- - Generate solutions of its own — analyst synthesizes existing ant outputs
31
- - Exceed ~150 lines in best-solution.md (be sharp, not verbose)
32
-
33
- ## Phase 2: Context Loading
34
-
35
- | Input | Source | Required |
36
- |-------|--------|----------|
37
- | Original objective | `<session>/swarm-config.json#ant_prompt.objective` | Yes |
38
- | Best solution | `<session>/best.json` | Yes |
39
- | Full swarm report | `<session>/artifacts/swarm-report.json` | Yes |
40
- | All trails | `<session>/trails/*.jsonl` | Yes |
41
- | Convergence reason | swarm-report.json or `aco.py converged` output | Yes |
42
- | Best ant artifact | `<session>/artifacts/ant-<best.iteration>-<best.id>.json` (full evidence) | Yes |
43
- | Issues log | `<session>/wisdom/issues.md` | Optional |
44
-
45
- Workflow:
46
- 1. Extract session path from task description
47
- 2. Read swarm-config.json -> capture objective
48
- 3. Read best.json -> identify best ant
49
- 4. Read full swarm-report.json -> get top_k + convergence_curve
50
- 5. Read the best ant's full artifact for evidence chain
51
- 6. Read all trails/*.jsonl into a list (chronological)
52
-
53
- ## Phase 3: Synthesis
54
-
55
- ### 3.1 Structure the report
56
-
57
- Layout for `best-solution.md`:
58
-
59
- ```markdown
60
- # Swarm Result — <objective_short_form>
61
-
62
- ## Best Solution
63
-
64
- **Path**: node_a → node_c → node_f
65
- **Verified Score**: 0.82
66
- **Iteration**: 3 of 5
67
- **Ant**: ANT-3-2
68
-
69
- ### Summary
70
- <one paragraph — what the best solution proposes and why it answers the objective>
71
-
72
- ### Evidence Chain
73
- - `src/foo.ts:42` — <how this evidence supports the decision>
74
- - `tests/foo.spec.ts:18` — <...>
75
-
76
- ### Candidate Artifact
77
- <extract from best.candidate_solution — quote or summarize, link to file if file_ref>
78
-
79
- ## Why This Path Won
80
-
81
- | Decision | Pheromone-guided? | Why it mattered |
82
- |----------|-------------------|-----------------|
83
- | start = node_a | weighted | <reason> |
84
- | a → c | yes (0.45 hint) | <reason> |
85
- | c → f | NO (deviation) | <reason> — this was the key call |
86
-
87
- ## Runner-Up Solutions
88
-
89
- | Rank | Ant | Path | Score | Diff from best |
90
- |------|-----|------|-------|----------------|
91
- | 2 | ANT-2-1 | a → b → e | 0.74 | -0.08; weaker evidence at e |
92
- | 3 | ANT-4-3 | a → c → g | 0.71 | -0.11; valid but less specific |
93
-
94
- ## Convergence Story
95
-
96
- Iterations: 4 of 5 max
97
- Trigger: stagnation (best unchanged for 2 iterations)
98
-
99
- Entropy curve:
100
- - iter 1: 3.21 (broad exploration)
101
- - iter 2: 2.45 (narrowing on node_a region)
102
- - iter 3: 1.85 (best emerges at ANT-3-2)
103
- - iter 4: 1.72 (consensus around best, no improvement)
104
-
105
- Interpretation: <2-3 sentences on whether the swarm converged on a genuine optimum or got stuck>
106
-
107
- ## Caveats
108
-
109
- - <e.g., 40% of ants in iter 2 flagged as hallucinations>
110
- - <e.g., evidence for node_f is single-source — recommend manual verification>
111
- - <e.g., search space had only N nodes — larger space may surface better solutions>
112
-
113
- ## Reproducibility
114
-
115
- - Config: `swarm-config.json` (pinned)
116
- - Best path: `best.json`
117
- - Full trails: `trails/<iter>.jsonl`
118
- - Random seed: <if used>
119
- ```
120
-
121
- ### 3.2 Interpretation rules
122
-
123
- - **Why-it-won analysis** is the highest-value content. Don't just describe the path — explain which decisions were pivotal.
124
- - **Pheromone vs deviation**: track which steps followed pheromone hints vs deviated. Deviations that produced higher scores are the most interesting signal.
125
- - **Runner-up diff**: surface why #2 lost — was it a weaker path or just unlucky evidence?
126
- - **Caveats are mandatory**: every swarm result has limitations. List them honestly.
127
-
128
- ### 3.3 Constraints
129
-
130
- - Target 150 lines
131
- - No prose padding every section earns its place
132
- - Quote evidence verbatim where possible (file:line refs)
133
- - Don't editorialize beyond what evidence supports
134
-
135
- ## Phase 4: Verify + Publish
136
-
137
- ### Behavioral Traits
138
-
139
- #### Accuracy
140
- - Every cited path/score MUST match best.json or trails source
141
- - Every evidence reference MUST be verifiable (Read to confirm if file_ref)
142
- - Convergence curve numbers MUST match swarm-report.json#convergence_curve
143
-
144
- #### Feedback Contract
145
- | Field | Required | Content |
146
- |-------|----------|---------|
147
- | artifacts_written | Always | `<session>/artifacts/best-solution.md` |
148
- | line_count | Always | int (target 150) |
149
- | verification_method | Always | "cross_ref_with_best.json + evidence_verified" |
150
-
151
- #### Quality Gate
152
- - Final report file exists and parses as markdown
153
- - All sections present (Best Solution / Why Won / Runner-Ups / Convergence / Caveats / Reproducibility)
154
- - Line count ≤ 200 (hard cap — fail if exceeded, retry with sharper edit)
155
-
156
- ### Verification Steps
157
-
158
- 1. Read written best-solution.md back
159
- 2. Cross-check best.score against best.json
160
- 3. Confirm runner-up scores against trails
161
- 4. If file_ref evidence in best.candidate_solution -> Read to confirm file exists
162
- 5. Count lines — if > 200, condense and rewrite
163
-
164
- ### State Update
165
-
166
- ```json
167
- {
168
- "task_id": "ANALYST-1",
169
- "role": "analyst",
170
- "status": "completed",
171
- "artifact_path": "<session>/artifacts/best-solution.md",
172
- "best_score": <float>,
173
- "best_ant_id": "<id>",
174
- "line_count": <int>,
175
- "verification": "cross_ref_pass + evidence_verified"
176
- }
177
- ```
178
-
179
- ## Error Handling
180
-
181
- | Scenario | Resolution |
182
- |----------|------------|
183
- | best.json missing | Pipeline produced no valid ant write minimal report with `status: no_solution` |
184
- | Trails empty | Same as above — no exploration data to analyze |
185
- | Best ant artifact missing | Use only best.json fields; note as caveat |
186
- | Cross-ref mismatch (score discrepancy) | Trust best.json; note discrepancy in caveats |
187
- | Line count > 200 after rewrite | Hard-fail report; coordinator decides retry vs accept |
12
+
13
+ # Analyst Role — Phase 2-4
14
+
15
+ Tag: `[analyst]` | Prefix: `ANALYST-*`
16
+ Responsibility: After swarm converges, synthesize the best solution + top trails + convergence curve into a human-readable `best-solution.md` report. Provides interpretation, not just data dump.
17
+
18
+ ## Boundaries
19
+
20
+ ### MUST
21
+ - Read `<session>/best.json`, `<session>/artifacts/swarm-report.json`, all `<session>/trails/*.jsonl`
22
+ - Produce `<session>/artifacts/best-solution.md` as the final deliverable
23
+ - Explain WHY the best path won (which decisions mattered, evidence chain)
24
+ - Compare best vs runner-ups to surface stability vs luck
25
+ - Document convergence story (entropy curve, when stagnation hit)
26
+
27
+ ### MUST NOT
28
+ - Re-score solutions (that is scorer's job — analyst takes verified_score as given)
29
+ - Modify best.json, trails, or pheromone state
30
+ - Generate solutions of its own — analyst synthesizes existing ant outputs
31
+ - Pad best-solution.md with prose every section must earn its place
32
+
33
+ ## Phase 2: Context Loading
34
+
35
+ | Input | Source | Required |
36
+ |-------|--------|----------|
37
+ | Original objective | `<session>/swarm-config.json#ant_prompt.objective` | Yes |
38
+ | Best solution | `<session>/best.json` | Yes |
39
+ | Full swarm report | `<session>/artifacts/swarm-report.json` | Yes |
40
+ | All trails | `<session>/trails/*.jsonl` | Yes |
41
+ | Convergence reason | swarm-report.json or `aco.py converged` output | Yes |
42
+ | Best ant artifact | `<session>/artifacts/ant-<best.iteration>-<best.id>.json` (full evidence) | Yes |
43
+ | Issues log | `<session>/wisdom/issues.md` | Optional |
44
+
45
+ Workflow:
46
+ 1. Extract session path from task description
47
+ 2. Read swarm-config.json -> capture objective
48
+ 3. Read best.json -> identify best ant
49
+ 4. Read full swarm-report.json -> get top_k + convergence_curve
50
+ 5. Read the best ant's full artifact for evidence chain
51
+ 6. Read all trails/*.jsonl into a list (chronological)
52
+
53
+ ## Phase 3: Synthesis
54
+
55
+ ### 3.1 Structure the report
56
+
57
+ Layout for `best-solution.md`:
58
+
59
+ ```markdown
60
+ # Swarm Result — <objective_short_form>
61
+
62
+ ## Best Solution
63
+
64
+ **Path**: node_a → node_c → node_f
65
+ **Verified Score**: 0.82
66
+ **Iteration**: 3 of 5
67
+ **Ant**: ANT-3-2
68
+
69
+ ### Summary
70
+ <one paragraph — what the best solution proposes and why it answers the objective>
71
+
72
+ ### Evidence Chain
73
+ - `src/foo.ts:42` — <how this evidence supports the decision>
74
+ - `tests/foo.spec.ts:18` — <...>
75
+
76
+ ### Candidate Artifact
77
+ <extract from best.candidate_solution — quote or summarize, link to file if file_ref>
78
+
79
+ ## Why This Path Won
80
+
81
+ | Decision | Pheromone-guided? | Why it mattered |
82
+ |----------|-------------------|-----------------|
83
+ | start = node_a | weighted | <reason> |
84
+ | a → c | yes (0.45 hint) | <reason> |
85
+ | c → f | NO (deviation) | <reason> — this was the key call |
86
+
87
+ ## Runner-Up Solutions
88
+
89
+ | Rank | Ant | Path | Score | Diff from best |
90
+ |------|-----|------|-------|----------------|
91
+ | 2 | ANT-2-1 | a → b → e | 0.74 | -0.08; weaker evidence at e |
92
+ | 3 | ANT-4-3 | a → c → g | 0.71 | -0.11; valid but less specific |
93
+
94
+ ## Convergence Story
95
+
96
+ Iterations: 4 of 5 max
97
+ Trigger: stagnation (best unchanged for 2 iterations)
98
+
99
+ Entropy curve:
100
+ - iter 1: 3.21 (broad exploration)
101
+ - iter 2: 2.45 (narrowing on node_a region)
102
+ - iter 3: 1.85 (best emerges at ANT-3-2)
103
+ - iter 4: 1.72 (consensus around best, no improvement)
104
+
105
+ Interpretation: <2-3 sentences on whether the swarm converged on a genuine optimum or got stuck>
106
+
107
+ ## Caveats
108
+
109
+ - <e.g., 40% of ants in iter 2 flagged as hallucinations>
110
+ - <e.g., evidence for node_f is single-source — recommend manual verification>
111
+ - <e.g., search space had only N nodes — larger space may surface better solutions>
112
+
113
+ ## Reproducibility
114
+
115
+ - Config: `swarm-config.json` (pinned)
116
+ - Best path: `best.json`
117
+ - Full trails: `trails/<iter>.jsonl`
118
+ - Random seed: <if used>
119
+ ```
120
+
121
+ ### 3.2 Interpretation rules
122
+
123
+ - **Why-it-won analysis** is the highest-value content. Don't just describe the path — explain which decisions were pivotal.
124
+ - **Pheromone vs deviation**: track which steps followed pheromone hints vs deviated. Deviations that produced higher scores are the most interesting signal.
125
+ - **Runner-up diff**: surface why #2 lost — was it a weaker path or just unlucky evidence?
126
+ - **Caveats are mandatory**: every swarm result has limitations. List them honestly.
127
+
128
+ ### 3.3 Constraints
129
+
130
+ - No prose padding — every section earns its place
131
+ - Quote evidence verbatim where possible (file:line refs)
132
+ - Don't editorialize beyond what evidence supports
133
+
134
+ ## Phase 4: Verify + Publish
135
+
136
+ ### Behavioral Traits
137
+
138
+ #### Accuracy
139
+ - Every cited path/score MUST match best.json or trails source
140
+ - Every evidence reference MUST be verifiable (Read to confirm if file_ref)
141
+ - Convergence curve numbers MUST match swarm-report.json#convergence_curve
142
+
143
+ #### Feedback Contract
144
+ | Field | Required | Content |
145
+ |-------|----------|---------|
146
+ | artifacts_written | Always | `<session>/artifacts/best-solution.md` |
147
+ | line_count | Always | int (informational) |
148
+ | verification_method | Always | "cross_ref_with_best.json + evidence_verified" |
149
+
150
+ #### Quality Gate
151
+ - Final report file exists and parses as markdown
152
+ - All sections present (Best Solution / Why Won / Runner-Ups / Convergence / Caveats / Reproducibility)
153
+
154
+ ### Verification Steps
155
+
156
+ 1. Read written best-solution.md back
157
+ 2. Cross-check best.score against best.json
158
+ 3. Confirm runner-up scores against trails
159
+ 4. If file_ref evidence in best.candidate_solution -> Read to confirm file exists
160
+
161
+ ### State Update
162
+
163
+ ```json
164
+ {
165
+ "task_id": "ANALYST-1",
166
+ "role": "analyst",
167
+ "status": "completed",
168
+ "artifact_path": "<session>/artifacts/best-solution.md",
169
+ "best_score": <float>,
170
+ "best_ant_id": "<id>",
171
+ "line_count": <int>,
172
+ "verification": "cross_ref_pass + evidence_verified"
173
+ }
174
+ ```
175
+
176
+ ## Error Handling
177
+
178
+ | Scenario | Resolution |
179
+ |----------|------------|
180
+ | best.json missing | Pipeline produced no valid ant — write minimal report with `status: no_solution` |
181
+ | Trails empty | Same as above — no exploration data to analyze |
182
+ | Best ant artifact missing | Use only best.json fields; note as caveat |
183
+ | Cross-ref mismatch (score discrepancy) | Trust best.json; note discrepancy in caveats |
@@ -3,6 +3,7 @@ name: domain-add
3
3
  description: Register a domain term into project glossary
4
4
  argument-hint: <canonical> \"<definition>\"
5
5
  allowed-tools:
6
+ - ask_question
6
7
  - grep_search
7
8
  - run_command
8
9
  - view_file
@@ -37,6 +38,8 @@ Domain term lifecycle: discover/manual → register → active → (optional) de
37
38
 
38
39
  <execution>
39
40
  Follow '~/.maestro/workflows/domain-add.md' completely.
41
+
42
+ **Confirmation gate**: Before writing to glossary.yaml, ask_question showing the term canonical name, definition, extracted aliases/keywords, tier, and target file path. Proceed only on user confirm.
40
43
  </execution>
41
44
 
42
45
  <error_codes>
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: learn-decompose
3
3
  description: Extract design patterns from code into specs and wiki
4
- argument-hint: <path|module> [--patterns <list>] [--save-spec] [--save-wiki]
4
+ argument-hint: <path|module> [--patterns <list>] [--save-spec] [--save-wiki] [-y]
5
5
  allowed-tools:
6
6
  - ask_question
7
7
  - define_subagent
@@ -26,6 +26,7 @@ $ARGUMENTS — target path/module and optional flags.
26
26
  - `--patterns <list>`: Comma-separated pattern names to look for (default: detect all)
27
27
  - `--save-spec`: `Skill("spec-add")` for each new pattern
28
28
  - `--save-wiki`: create wiki note per dimension group
29
+ - `-y`: Skip confirmation prompts for knowhow/spec writes
29
30
 
30
31
  **Storage read**: target files + `coding-conventions.md` + `.workflow/specs/learnings.md` (dedup)
31
32
  **Storage write**: `.workflow/knowhow/KNW-decompose-{slug}-{date}.md` + append `.workflow/specs/learnings.md`
@@ -61,7 +62,8 @@ S_CATALOG:
61
62
  → S_PERSIST DO: write KNW-decompose report (grouped by dimension: pattern table + details)
62
63
 
63
64
  S_PERSIST:
64
- → END DO: append .workflow/specs/learnings.md [+ spec-add if --save-spec] [+ wiki note if --save-wiki]
65
+ → END GATE: unless -y, ask_question showing files to write and patterns to persist — proceed only on confirm
66
+ DO: append .workflow/specs/learnings.md [+ spec-add if --save-spec] [+ wiki note if --save-wiki]
65
67
 
66
68
  </transitions>
67
69
 
@@ -88,8 +90,8 @@ For each finding, match against known pattern set:
88
90
  | Status | Condition |
89
91
  |--------|-----------|
90
92
  | documented | Already in coding-conventions.md |
91
- | known | In .workflow/specs/learnings.md |
92
- | new | Not seen before |
93
+ | known | In .workflow/specs/learnings.md (if file exists) |
94
+ | new | Not seen before (or learnings.md absent — treat all as new) |
93
95
 
94
96
  Flag contradictions (finding conflicts with documented convention). Merge duplicates across agents (same pattern found by multiple dimensions).
95
97
 
@@ -102,6 +104,7 @@ Flag contradictions (finding conflicts with documented convention). Merge duplic
102
104
  |------|-----------|----------|
103
105
  | E002 | No source files in target | Check target has .ts/.js files |
104
106
  | W001 | One+ dimension agent failed | Proceed with available dimensions |
107
+ | W002 | .workflow/specs/learnings.md missing or malformed | Treat all patterns as new; create file on persist |
105
108
  | W003 | Large target (>50 files) | Consider --patterns filter |
106
109
  </error_codes>
107
110
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: learn-follow
3
3
  description: Guided reading of code or wiki to extract patterns
4
- argument-hint: <path|wiki-id|topic> [--depth shallow|deep] [--save-wiki]
4
+ argument-hint: <path|wiki-id|topic> [--depth shallow|deep] [--save-wiki] [-y]
5
5
  allowed-tools:
6
6
  - ask_question
7
7
  - define_subagent
@@ -31,6 +31,7 @@ $ARGUMENTS — target and optional flags.
31
31
  - `--depth shallow` (default): key patterns and structure only
32
32
  - `--depth deep`: every function, every branch, every assumption
33
33
  - `--save-wiki`: create wiki note entry with reading notes
34
+ - `-y`: Skip confirmation prompts for knowhow/spec writes
34
35
 
35
36
  **Storage read**: target file + wiki forward/backlinks + `coding-conventions.md` + `.workflow/specs/learnings.md` (dedup)
36
37
  **Storage write**: `.workflow/knowhow/KNW-follow-{slug}-{date}.md` + append `.workflow/specs/learnings.md`
@@ -66,7 +67,8 @@ S_EXTRACT:
66
67
  → S_PERSIST DO: A_EXTRACT_PATTERNS
67
68
 
68
69
  S_PERSIST:
69
- → END DO: write KNW-follow + append .workflow/specs/learnings.md [+ wiki note if --save-wiki]
70
+ → END GATE: unless -y, ask_question showing files to write and spec-entries to append proceed only on confirm
71
+ DO: write KNW-follow + append .workflow/specs/learnings.md [+ wiki note if --save-wiki]
70
72
 
71
73
  </transitions>
72
74
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: learn-investigate
3
3
  description: Investigate questions with hypothesis testing and evidence logging
4
- argument-hint: <question> [--scope <path>] [--max-hypotheses N]
4
+ argument-hint: <question> [--scope <path>] [--max-hypotheses N] [-y]
5
5
  allowed-tools:
6
6
  - ask_question
7
7
  - define_subagent
@@ -24,6 +24,7 @@ $ARGUMENTS — question text and optional flags.
24
24
  **Flags**:
25
25
  - `--scope <path>`: Restrict to files under this dir (default: entire project)
26
26
  - `--max-hypotheses N`: Max hypotheses before escalation (default: 3)
27
+ - `-y`: Skip confirmation prompts for report/spec writes
27
28
 
28
29
  **Storage write**:
29
30
  - `.workflow/knowhow/KNW-investigate-{slug}/evidence.ndjson` — structured evidence (one JSON line per item)
@@ -59,11 +60,11 @@ S_PATTERN:
59
60
  → S_HYPOTHESIZE DO: match evidence against debug-notes.md + .workflow/specs/learnings.md patterns
60
61
 
61
62
  S_HYPOTHESIZE:
62
- → S_CLI_EXPLORE WHEN: CLI tools enabled AND hypotheses non-trivial DO: A_FORM_HYPOTHESES
63
- → S_TEST WHEN: no CLI tools OR trivial hypotheses DO: A_FORM_HYPOTHESES
63
+ → S_CLI_EXPLORE WHEN: CLI tools enabled (at least one tool in cli-tools.json enabled) AND hypotheses non-trivial (require cross-file tracing or data-flow analysis) DO: A_FORM_HYPOTHESES
64
+ → S_TEST WHEN: no CLI tools OR trivial hypotheses (answerable by local Grep/Read) DO: A_FORM_HYPOTHESES
64
65
 
65
66
  S_CLI_EXPLORE:
66
- → S_TEST DO: A_CLI_SUPPLEMENT (maestro delegate --role explore --mode analysis, run_in_background, STOP)
67
+ → S_TEST DO: A_CLI_SUPPLEMENT (maestro delegate --to <first-enabled-tool> --mode analysis, run_in_background, STOP)
67
68
 
68
69
  S_TEST:
69
70
  → S_REPORT WHEN: hypothesis confirmed DO: A_TEST_HYPOTHESIS
@@ -75,7 +76,8 @@ S_ESCALATE:
75
76
  → S_REPORT WHEN: user selects "Escalate" or still stuck DO: mark INCONCLUSIVE
76
77
 
77
78
  S_REPORT:
78
- → END DO: A_SYNTHESIZE_REPORT
79
+ → END GATE: unless -y, ask_question showing report.md path and spec-entries to append — proceed only on confirm
80
+ DO: A_SYNTHESIZE_REPORT
79
81
 
80
82
  </transitions>
81
83
 
@@ -110,7 +112,7 @@ Rank by plausibility (evidence strength). Write to understanding.md:
110
112
  maestro delegate "PURPOSE: Gather evidence for hypotheses
111
113
  TASK: Trace call chains and data flows per hypothesis | Find corroborating/contradicting patterns
112
114
  EXPECTED: JSON [{hypothesis_rank, evidence: [{file, line, supports: bool, explanation}]}]
113
- " --role explore --mode analysis
115
+ " --to <first-enabled-tool> --mode analysis
114
116
  ```
115
117
  Run_in_background, STOP, wait. On callback: append to evidence.ndjson.
116
118
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: learn-second-opinion
3
3
  description: Get alternative perspectives — review, challenge, or consult
4
- argument-hint: <target> [--mode review|challenge|consult]
4
+ argument-hint: <target> [--mode review|challenge|consult] [-y]
5
5
  allowed-tools:
6
6
  - ask_question
7
7
  - define_subagent
@@ -29,7 +29,9 @@ $ARGUMENTS — target and optional mode flag.
29
29
  | `HEAD` / `staged` | `git diff HEAD` / `git diff --staged` |
30
30
  | Phase number | Resolve via state.json.artifacts[] → plan.json |
31
31
 
32
- **Flags**: `--mode review|challenge|consult` (default: review)
32
+ **Flags**:
33
+ - `--mode review|challenge|consult` (default: review)
34
+ - `-y`: Skip confirmation prompts for knowhow/spec writes
33
35
 
34
36
  **Pre-load** (optional): `Skill("spec-load")` for conventions + `maestro search "<target topic>"` for related entries.
35
37
 
@@ -64,7 +66,8 @@ S_SYNTHESIZE:
64
66
  → S_PERSIST DO: merge perspectives → agreements, disagreements, verdict, top 3 recommendations
65
67
 
66
68
  S_PERSIST:
67
- → END DO: write KNW-opinion + append <spec-entry> blocks to .workflow/specs/learnings.md
69
+ → END GATE: unless -y, ask_question showing files to write and spec-entries to append — proceed only on confirm
70
+ DO: write KNW-opinion + append <spec-entry> blocks to .workflow/specs/learnings.md
68
71
 
69
72
  </transitions>
70
73
 
@@ -31,7 +31,7 @@ $ARGUMENTS — user intent text, or special keywords.
31
31
 
32
32
  **Flags:**
33
33
  - `-y` / `--yes` — Auto mode: skip clarification, skip confirmation, auto-skip on errors
34
- - `-c` / `--continue` — Resume previous session
34
+ - `-c` / `--continue` — Resume previous session. **`-c` is reserved for `--continue` across all maestro commands** — downstream skills MUST NOT redefine `-c` for other purposes to prevent collision via transparent forwarding.
35
35
  - `--dry-run` — Show chain without executing
36
36
  - `--super` — Read and follow `maestro-super.md`
37
37
  </context>
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: maestro-amend
3
3
  description: Generate overlays to fix workflow command deficiencies
4
- argument-hint: [description] [--from-verify <dir>] [--from-review <dir>] [--from-session <id>] [--from-issues ISS-xxx,...] [--scan] [--dry-run]
4
+ argument-hint: [description] [--from-verify <dir>] [--from-review <dir>] [--from-session <id>] [--from-issues ISS-xxx,...] [--scan] [--dry-run] [-y]
5
5
  allowed-tools:
6
6
  - ask_question
7
7
  - grep_search
@@ -47,7 +47,7 @@ $ARGUMENTS -- phase number for micro mode, topic text for macro/adhoc mode, no a
47
47
  |------|--------|---------|
48
48
  | `-y` / `--yes` | Auto mode — skip interactive scoping, use recommended defaults, auto-deepen | false |
49
49
  | `-c` / `--continue` | Resume from existing session (auto-detect session folder + discussion.md) | false |
50
- | `-q` / `--quick` | Quick mode — skip exploration + scoring, go straight to decision extraction (context.md only) | false |
50
+ | `-q` / `--quick` | Quick mode — skip exploration + scoring, go straight to decision extraction (context.md only). **Precedence**: when combined with `-c`, the resumed session preserves its original mode (full or quick); `-q` does NOT override a resumed full session to quick mode. | false |
51
51
  | `--from <source>` | Load upstream context package (grill:ID, brainstorm:ID, blueprint:BLP-xxx, @file, or path) | — |
52
52
  | `--gaps [ISS-ID]` | Issue root cause analysis mode. If ISS-ID provided, analyze single issue. If omitted, analyze all open/registered issues from issues.jsonl | — |
53
53
 
@@ -88,51 +88,9 @@ Follows @~/.maestro/workflows/interview-mechanics.md standard.
88
88
  <execution>
89
89
  Follow '~/.maestro/workflows/analyze.md' completely.
90
90
 
91
- ### Evidence-Backed Decisions
92
-
93
- Every decision MUST trace to independently gathered evidence. Manual Read/Grep is preparation — NOT evidence. Valid evidence sources:
94
- - cli-explore-agent output (code anchors, call chains, data flows)
95
- - maestro delegate CLI analysis output (multi-perspective findings)
96
- - User-provided input (domain knowledge, constraints, corrections)
97
-
98
- Decisions without CLI/agent-sourced evidence MUST be flagged as LOW CONFIDENCE.
99
-
100
- ### Boundary Grill (Step 5 → Step 6)
101
-
102
- After discussion rounds, BEFORE synthesis: run boundary grill per `~/.maestro/workflows/boundary-grill.md`.
103
- Input: discussion.md decisions + exploration-codebase.json. Scope guard: "only analyze decisions; do not prejudge plan/execute concerns".
104
- IF conflicts → results to `analysis.md` § Boundary Grill Results + update `context.md` Locked/Free/Deferred.
105
-
106
- ### Standard Mode Gates
107
-
108
- Gates 1-4 are defined in `analyze.md`. NEVER skip gates. NEVER substitute manual Read/Grep for agent/CLI exploration.
109
-
110
- ### Artifact Verification
111
-
112
- Before writing the completion report (Step 9), verify ALL expected artifacts exist in OUTPUT_DIR:
113
- ```
114
- FULL_MODE_REQUIRED = [
115
- "discussion.md", // Step 3+5
116
- "exploration-codebase.json", // Step 4.1
117
- "explorations.json" OR "perspectives.json", // Step 4.3
118
- "analysis.md", // Step 6
119
- "conclusions.json", // Step 7
120
- "context.md", // Step 8
121
- "context-package.json" // Step 8.6
122
- ]
123
- ```
124
- If any artifact is missing: DO NOT report completion. Produce the missing artifact first.
125
-
126
91
  ### --gaps Mode
127
92
 
128
93
  When `--gaps` is present, follow `~/.maestro/workflows/issue-gaps-analyze.md` instead of the standard pipeline.
129
-
130
- **Handoff:** context.md is consumed by maestro-plan. In --gaps mode, context.md contains issue root causes for `plan --gaps`.
131
-
132
- **scope_verdict** (added to context.md in Step 6 Synthesis for macro/adhoc/standalone scopes):
133
- - `large` (3+ independent subsystems or hard serial dependencies) → suggest `/maestro-roadmap --from analyze:ANL-xxx`
134
- - `medium` (1-2 subsystems, parallelizable) → suggest `/maestro-plan --from analyze:ANL-xxx`
135
- - `small` (single-file or few-file change) → suggest `/maestro-plan --from analyze:ANL-xxx`
136
94
  </execution>
137
95
 
138
96
  <completion>
@@ -90,28 +90,6 @@ Each phase produces artifacts that are prerequisites for the next. Do NOT advanc
90
90
  **GATE P5 → P6**: `epics/` directory with `_index.md` + individual `EPIC-*.md` files. Cross-Epic dependency map present.
91
91
  **GATE P6**: Readiness score computed. Pass (≥80%) or Review (≥60%) required for handoff.
92
92
 
93
- ### Artifact Verification (before completion)
94
-
95
- ```
96
- REQUIRED_ARTIFACTS = [
97
- "blueprint-config.json", // P0
98
- "product-brief.md", // P2
99
- "glossary.json", // P2 (≥5 terms)
100
- "requirements/_index.md", // P3
101
- "architecture/_index.md", // P4
102
- "epics/_index.md", // P5
103
- "readiness-report.md", // P6
104
- "blueprint-summary.md", // P6
105
- "context-package.json" // P6
106
- ]
107
- ```
108
- If any artifact is missing: DO NOT report completion. Go back and produce it.
109
-
110
- ### Evidence Requirement
111
-
112
- Architecture Decision Records (ADR-*.md) MUST cite evidence for each decision:
113
- - Valid: code analysis, requirement traceability (REQ-xxx), upstream context, CLI analysis output
114
- - INVALID: generic rationale without reference to project-specific constraints
115
93
  </execution>
116
94
 
117
95
  <completion>
@@ -183,7 +161,7 @@ Status verdicts:
183
161
  - [ ] Readiness gate: Pass (>=80%) or Review (>=60%) with documented caveats
184
162
  - [ ] Artifact registered in state.json (type=blueprint)
185
163
  - [ ] context-package.json generated for downstream consumption
186
- - [ ] On gate Pass/Review: session sealed via finish-work (archive.json + optional spec/knowhow extraction). On Fail: skip — session stays active, excluded from wiki search.
164
+ - [ ] On gate Pass/Review: session sealed via finish-work (finish-work.md includes ask_question confirmation before state.json artifact registration and optional spec/knowhow extraction). On Fail: skip — session stays active, excluded from wiki search.
187
165
  </success_criteria>
188
166
 
189
167
  <on_complete>