maestro-flow 0.5.42 → 0.5.44

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 (412) 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 -1
  9. package/.agents/skills/maestro-blueprint/SKILL.md +1 -1
  10. package/.agents/skills/maestro-brainstorm/SKILL.md +4 -1
  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 +26 -8
  15. package/.agents/skills/maestro-fork/SKILL.md +4 -3
  16. package/.agents/skills/maestro-grill/SKILL.md +1 -1
  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 -0
  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 +1 -0
  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-agent/SKILL.md +697 -0
  30. package/.agents/skills/maestro-ralph-agent-execute/SKILL.md +461 -0
  31. package/.agents/skills/maestro-ralph-cli/SKILL.md +665 -0
  32. package/.agents/skills/maestro-ralph-cli-execute/SKILL.md +239 -0
  33. package/.agents/skills/maestro-ralph-execute/SKILL.md +127 -11
  34. package/.agents/skills/maestro-roadmap/SKILL.md +1 -1
  35. package/.agents/skills/maestro-swarm-workflow/SKILL.md +16 -14
  36. package/.agents/skills/maestro-tools-register/SKILL.md +16 -1
  37. package/.agents/skills/maestro-ui-codify/SKILL.md +11 -1
  38. package/.agents/skills/maestro-universal-workflow/SKILL.md +28 -5
  39. package/.agents/skills/maestro-update/SKILL.md +10 -7
  40. package/.agents/skills/manage-codebase-rebuild/SKILL.md +5 -1
  41. package/.agents/skills/manage-drift-realign/SKILL.md +6 -2
  42. package/.agents/skills/manage-harvest/SKILL.md +4 -1
  43. package/.agents/skills/manage-issue-discover/SKILL.md +1 -0
  44. package/.agents/skills/manage-kg-extractors/SKILL.md +5 -1
  45. package/.agents/skills/manage-knowhow-capture/SKILL.md +1 -0
  46. package/.agents/skills/manage-knowledge-audit/SKILL.md +3 -0
  47. package/.agents/skills/manage-wiki/SKILL.md +1 -0
  48. package/.agents/skills/odyssey-debug/SKILL.md +2 -1
  49. package/.agents/skills/odyssey-improve/SKILL.md +2 -2
  50. package/.agents/skills/odyssey-planex/SKILL.md +8 -7
  51. package/.agents/skills/odyssey-review-test-fix/SKILL.md +4 -1
  52. package/.agents/skills/odyssey-ui/SKILL.md +4 -4
  53. package/.agents/skills/quality-auto-test/SKILL.md +11 -1
  54. package/.agents/skills/quality-debug/SKILL.md +16 -2
  55. package/.agents/skills/quality-retrospective/SKILL.md +9 -1
  56. package/.agents/skills/quality-review/SKILL.md +8 -0
  57. package/.agents/skills/quality-sync/SKILL.md +2 -2
  58. package/.agents/skills/quality-test/SKILL.md +9 -1
  59. package/.agents/skills/security-audit/SKILL.md +14 -4
  60. package/.agents/skills/spec-add/SKILL.md +5 -2
  61. package/.agents/skills/spec-load/SKILL.md +1 -1
  62. package/.agents/skills/spec-remove/SKILL.md +1 -1
  63. package/.agents/skills/spec-setup/SKILL.md +3 -0
  64. package/.agy/skills/domain-add/SKILL.md +3 -0
  65. package/.agy/skills/learn-decompose/SKILL.md +7 -4
  66. package/.agy/skills/learn-follow/SKILL.md +4 -2
  67. package/.agy/skills/learn-investigate/SKILL.md +8 -6
  68. package/.agy/skills/learn-second-opinion/SKILL.md +6 -3
  69. package/.agy/skills/maestro/SKILL.md +1 -1
  70. package/.agy/skills/maestro-amend/SKILL.md +1 -1
  71. package/.agy/skills/maestro-analyze/SKILL.md +1 -1
  72. package/.agy/skills/maestro-blueprint/SKILL.md +1 -1
  73. package/.agy/skills/maestro-brainstorm/SKILL.md +4 -1
  74. package/.agy/skills/maestro-collab/SKILL.md +6 -2
  75. package/.agy/skills/maestro-companion/SKILL.md +4 -1
  76. package/.agy/skills/maestro-composer/SKILL.md +4 -2
  77. package/.agy/skills/maestro-execute/SKILL.md +26 -8
  78. package/.agy/skills/maestro-fork/SKILL.md +4 -3
  79. package/.agy/skills/maestro-grill/SKILL.md +1 -1
  80. package/.agy/skills/maestro-guard/SKILL.md +2 -2
  81. package/.agy/skills/maestro-impeccable/SKILL.md +2 -1
  82. package/.agy/skills/maestro-init/SKILL.md +1 -1
  83. package/.agy/skills/maestro-merge/SKILL.md +12 -1
  84. package/.agy/skills/maestro-milestone-audit/SKILL.md +1 -0
  85. package/.agy/skills/maestro-milestone-complete/SKILL.md +8 -3
  86. package/.agy/skills/maestro-milestone-release/SKILL.md +8 -4
  87. package/.agy/skills/maestro-overlay/SKILL.md +9 -0
  88. package/.agy/skills/maestro-plan/SKILL.md +1 -0
  89. package/.agy/skills/maestro-player/SKILL.md +2 -2
  90. package/.agy/skills/maestro-quick/SKILL.md +5 -3
  91. package/.agy/skills/maestro-ralph/SKILL.md +8 -8
  92. package/.agy/skills/maestro-ralph-agent/SKILL.md +696 -0
  93. package/.agy/skills/maestro-ralph-agent-execute/SKILL.md +457 -0
  94. package/.agy/skills/maestro-ralph-cli/SKILL.md +661 -0
  95. package/.agy/skills/maestro-ralph-cli-execute/SKILL.md +235 -0
  96. package/.agy/skills/maestro-ralph-execute/SKILL.md +127 -11
  97. package/.agy/skills/maestro-roadmap/SKILL.md +1 -1
  98. package/.agy/skills/maestro-swarm-workflow/SKILL.md +16 -14
  99. package/.agy/skills/maestro-tools-register/SKILL.md +16 -1
  100. package/.agy/skills/maestro-ui-codify/SKILL.md +11 -1
  101. package/.agy/skills/maestro-universal-workflow/SKILL.md +28 -5
  102. package/.agy/skills/maestro-update/SKILL.md +10 -7
  103. package/.agy/skills/manage-codebase-rebuild/SKILL.md +5 -1
  104. package/.agy/skills/manage-drift-realign/SKILL.md +6 -2
  105. package/.agy/skills/manage-harvest/SKILL.md +4 -1
  106. package/.agy/skills/manage-issue-discover/SKILL.md +1 -0
  107. package/.agy/skills/manage-kg-extractors/SKILL.md +5 -1
  108. package/.agy/skills/manage-knowhow-capture/SKILL.md +1 -0
  109. package/.agy/skills/manage-knowledge-audit/SKILL.md +3 -0
  110. package/.agy/skills/manage-wiki/SKILL.md +1 -0
  111. package/.agy/skills/odyssey-debug/SKILL.md +2 -1
  112. package/.agy/skills/odyssey-improve/SKILL.md +2 -2
  113. package/.agy/skills/odyssey-planex/SKILL.md +8 -7
  114. package/.agy/skills/odyssey-review-test-fix/SKILL.md +4 -1
  115. package/.agy/skills/odyssey-ui/SKILL.md +4 -4
  116. package/.agy/skills/quality-auto-test/SKILL.md +11 -1
  117. package/.agy/skills/quality-debug/SKILL.md +16 -2
  118. package/.agy/skills/quality-retrospective/SKILL.md +9 -1
  119. package/.agy/skills/quality-review/SKILL.md +8 -0
  120. package/.agy/skills/quality-sync/SKILL.md +2 -2
  121. package/.agy/skills/quality-test/SKILL.md +9 -1
  122. package/.agy/skills/security-audit/SKILL.md +14 -4
  123. package/.agy/skills/spec-add/SKILL.md +5 -2
  124. package/.agy/skills/spec-load/SKILL.md +1 -1
  125. package/.agy/skills/spec-remove/SKILL.md +1 -1
  126. package/.agy/skills/spec-setup/SKILL.md +3 -0
  127. package/.claude/commands/domain-add.md +3 -0
  128. package/.claude/commands/learn-decompose.md +7 -4
  129. package/.claude/commands/learn-follow.md +4 -2
  130. package/.claude/commands/learn-investigate.md +8 -6
  131. package/.claude/commands/learn-second-opinion.md +6 -3
  132. package/.claude/commands/maestro-amend.md +1 -1
  133. package/.claude/commands/maestro-analyze.md +1 -1
  134. package/.claude/commands/maestro-blueprint.md +1 -1
  135. package/.claude/commands/maestro-brainstorm.md +4 -1
  136. package/.claude/commands/maestro-collab.md +6 -2
  137. package/.claude/commands/maestro-companion.md +4 -1
  138. package/.claude/commands/maestro-composer.md +4 -2
  139. package/.claude/commands/maestro-execute.md +26 -8
  140. package/.claude/commands/maestro-fork.md +4 -3
  141. package/.claude/commands/maestro-grill.md +1 -1
  142. package/.claude/commands/maestro-guard.md +2 -2
  143. package/.claude/commands/maestro-impeccable.md +2 -1
  144. package/.claude/commands/maestro-init.md +1 -1
  145. package/.claude/commands/maestro-merge.md +12 -1
  146. package/.claude/commands/maestro-milestone-audit.md +1 -0
  147. package/.claude/commands/maestro-milestone-complete.md +8 -3
  148. package/.claude/commands/maestro-milestone-release.md +8 -4
  149. package/.claude/commands/maestro-overlay.md +9 -0
  150. package/.claude/commands/maestro-plan.md +1 -0
  151. package/.claude/commands/maestro-player.md +2 -2
  152. package/.claude/commands/maestro-quick.md +5 -3
  153. package/.claude/commands/maestro-ralph-agent-execute.md +459 -0
  154. package/.claude/commands/maestro-ralph-agent.md +695 -0
  155. package/.claude/commands/maestro-ralph-cli-execute.md +237 -0
  156. package/.claude/commands/maestro-ralph-cli.md +663 -0
  157. package/.claude/commands/maestro-ralph-execute.md +127 -11
  158. package/.claude/commands/maestro-ralph.md +8 -8
  159. package/.claude/commands/maestro-roadmap.md +1 -1
  160. package/.claude/commands/maestro-swarm-workflow.md +16 -14
  161. package/.claude/commands/maestro-tools-register.md +16 -1
  162. package/.claude/commands/maestro-ui-codify.md +11 -1
  163. package/.claude/commands/maestro-universal-workflow.md +28 -5
  164. package/.claude/commands/maestro-update.md +10 -7
  165. package/.claude/commands/maestro.md +1 -1
  166. package/.claude/commands/manage-codebase-rebuild.md +5 -1
  167. package/.claude/commands/manage-drift-realign.md +6 -2
  168. package/.claude/commands/manage-harvest.md +4 -1
  169. package/.claude/commands/manage-issue-discover.md +1 -0
  170. package/.claude/commands/manage-kg-extractors.md +5 -1
  171. package/.claude/commands/manage-knowhow-capture.md +1 -0
  172. package/.claude/commands/manage-knowledge-audit.md +3 -0
  173. package/.claude/commands/manage-wiki.md +1 -0
  174. package/.claude/commands/odyssey-debug.md +2 -1
  175. package/.claude/commands/odyssey-improve.md +2 -2
  176. package/.claude/commands/odyssey-planex.md +8 -7
  177. package/.claude/commands/odyssey-review-test-fix.md +4 -1
  178. package/.claude/commands/odyssey-ui.md +4 -4
  179. package/.claude/commands/quality-auto-test.md +11 -1
  180. package/.claude/commands/quality-debug.md +16 -2
  181. package/.claude/commands/quality-retrospective.md +9 -1
  182. package/.claude/commands/quality-review.md +8 -0
  183. package/.claude/commands/quality-sync.md +2 -2
  184. package/.claude/commands/quality-test.md +9 -1
  185. package/.claude/commands/security-audit.md +14 -4
  186. package/.claude/commands/spec-add.md +5 -2
  187. package/.claude/commands/spec-load.md +1 -1
  188. package/.claude/commands/spec-remove.md +1 -1
  189. package/.claude/commands/spec-setup.md +3 -0
  190. package/.codex/skills/codify-to-knowhow/SKILL.md +27 -15
  191. package/.codex/skills/domain-add/SKILL.md +5 -3
  192. package/.codex/skills/learn-decompose/SKILL.md +22 -4
  193. package/.codex/skills/learn-follow/SKILL.md +12 -6
  194. package/.codex/skills/learn-investigate/SKILL.md +11 -6
  195. package/.codex/skills/learn-retro/SKILL.md +12 -6
  196. package/.codex/skills/learn-second-opinion/SKILL.md +11 -3
  197. package/.codex/skills/maestro/SKILL.md +19 -13
  198. package/.codex/skills/maestro-amend/SKILL.md +10 -2
  199. package/.codex/skills/maestro-analyze/SKILL.md +7 -1
  200. package/.codex/skills/maestro-blueprint/SKILL.md +1 -1
  201. package/.codex/skills/maestro-brainstorm/SKILL.md +11 -8
  202. package/.codex/skills/maestro-collab/SKILL.md +5 -5
  203. package/.codex/skills/maestro-companion/SKILL.md +4 -1
  204. package/.codex/skills/maestro-composer/SKILL.md +6 -3
  205. package/.codex/skills/maestro-execute/SKILL.md +11 -8
  206. package/.codex/skills/maestro-fork/SKILL.md +4 -3
  207. package/.codex/skills/maestro-grill/SKILL.md +1 -1
  208. package/.codex/skills/maestro-guard/SKILL.md +1 -1
  209. package/.codex/skills/maestro-impeccable/SKILL.md +5 -5
  210. package/.codex/skills/maestro-init/SKILL.md +3 -2
  211. package/.codex/skills/maestro-milestone-audit/SKILL.md +21 -9
  212. package/.codex/skills/maestro-milestone-complete/SKILL.md +3 -3
  213. package/.codex/skills/maestro-milestone-release/SKILL.md +18 -1
  214. package/.codex/skills/maestro-next/SKILL.md +11 -10
  215. package/.codex/skills/maestro-overlay/SKILL.md +16 -6
  216. package/.codex/skills/maestro-player/SKILL.md +11 -5
  217. package/.codex/skills/maestro-quick/SKILL.md +2 -2
  218. package/.codex/skills/maestro-ralph/SKILL.md +44 -31
  219. package/.codex/skills/maestro-ralph-cli/SKILL.md +394 -0
  220. package/.codex/skills/maestro-ralph-cli-execute/SKILL.md +146 -0
  221. package/.codex/skills/maestro-ralph-execute/SKILL.md +105 -24
  222. package/.codex/skills/maestro-roadmap/SKILL.md +8 -2
  223. package/.codex/skills/maestro-tools-execute/SKILL.md +8 -4
  224. package/.codex/skills/maestro-tools-register/SKILL.md +10 -6
  225. package/.codex/skills/maestro-ui-codify/SKILL.md +14 -9
  226. package/.codex/skills/manage-codebase-rebuild/SKILL.md +36 -14
  227. package/.codex/skills/manage-codebase-refresh/SKILL.md +1 -1
  228. package/.codex/skills/manage-drift-realign/SKILL.md +15 -12
  229. package/.codex/skills/manage-harvest/SKILL.md +1 -1
  230. package/.codex/skills/manage-issue/SKILL.md +8 -4
  231. package/.codex/skills/manage-issue-discover/SKILL.md +15 -14
  232. package/.codex/skills/manage-knowhow/SKILL.md +3 -2
  233. package/.codex/skills/manage-knowhow-capture/SKILL.md +4 -3
  234. package/.codex/skills/manage-learn/SKILL.md +2 -2
  235. package/.codex/skills/odyssey-debug/SKILL.md +12 -7
  236. package/.codex/skills/odyssey-improve/SKILL.md +11 -6
  237. package/.codex/skills/odyssey-planex/SKILL.md +14 -8
  238. package/.codex/skills/odyssey-review-test-fix/SKILL.md +12 -7
  239. package/.codex/skills/odyssey-ui/SKILL.md +10 -5
  240. package/.codex/skills/quality-auto-test/SKILL.md +13 -5
  241. package/.codex/skills/quality-debug/SKILL.md +18 -11
  242. package/.codex/skills/quality-refactor/SKILL.md +4 -4
  243. package/.codex/skills/quality-retrospective/SKILL.md +5 -6
  244. package/.codex/skills/quality-review/SKILL.md +18 -11
  245. package/.codex/skills/quality-sync/SKILL.md +2 -2
  246. package/.codex/skills/quality-test/SKILL.md +7 -5
  247. package/.codex/skills/security-audit/SKILL.md +7 -5
  248. package/.codex/skills/spec-add/SKILL.md +9 -7
  249. package/.codex/skills/spec-load/SKILL.md +3 -2
  250. package/.codex/skills/spec-map/SKILL.md +10 -1
  251. package/.codex/skills/spec-remove/SKILL.md +3 -2
  252. package/.codex/skills/team-coordinate/SKILL.md +10 -4
  253. package/.codex/skills/team-lifecycle-v4/SKILL.md +33 -26
  254. package/.codex/skills/team-quality-assurance/SKILL.md +43 -0
  255. package/.codex/skills/team-review/SKILL.md +50 -6
  256. package/.codex/skills/team-tech-debt/SKILL.md +53 -7
  257. package/.codex/skills/team-testing/SKILL.md +50 -2
  258. package/.codex/skills/wiki-connect/SKILL.md +3 -1
  259. package/.codex/skills/wiki-digest/SKILL.md +6 -4
  260. package/dashboard/dist-server/dashboard/src/server/wiki/embedding.d.ts +16 -0
  261. package/dashboard/dist-server/dashboard/src/server/wiki/embedding.js +419 -44
  262. package/dashboard/dist-server/dashboard/src/server/wiki/embedding.js.map +1 -1
  263. package/dashboard/dist-server/dashboard/src/server/wiki/wiki-indexer.js +48 -10
  264. package/dashboard/dist-server/dashboard/src/server/wiki/wiki-indexer.js.map +1 -1
  265. package/dashboard/dist-server/src/graph/kg/credibility.d.ts +2 -2
  266. package/dashboard/dist-server/src/graph/kg/credibility.js +10 -5
  267. package/dashboard/dist-server/src/graph/kg/credibility.js.map +1 -1
  268. package/dashboard/dist-server/src/graph/kg/db/connection.d.ts +3 -2
  269. package/dashboard/dist-server/src/graph/kg/db/connection.js +28 -16
  270. package/dashboard/dist-server/src/graph/kg/db/connection.js.map +1 -1
  271. package/dashboard/dist-server/src/graph/kg/db/queries.js +4 -4
  272. package/dashboard/dist-server/src/graph/kg/db/queries.js.map +1 -1
  273. package/dashboard/dist-server/src/graph/kg/db/types.d.ts +3 -0
  274. package/dashboard/dist-server/src/graph/kg/embedding/code-embedding.d.ts +46 -0
  275. package/dashboard/dist-server/src/graph/kg/embedding/code-embedding.js +329 -0
  276. package/dashboard/dist-server/src/graph/kg/embedding/code-embedding.js.map +1 -0
  277. package/dashboard/dist-server/src/graph/kg/embedding/index.d.ts +2 -0
  278. package/dashboard/dist-server/src/graph/kg/embedding/index.js +3 -0
  279. package/dashboard/dist-server/src/graph/kg/embedding/index.js.map +1 -0
  280. package/dashboard/dist-server/src/graph/kg/engine.d.ts +20 -2
  281. package/dashboard/dist-server/src/graph/kg/engine.js +71 -1
  282. package/dashboard/dist-server/src/graph/kg/engine.js.map +1 -1
  283. package/dashboard/dist-server/src/graph/kg/extraction/knowledge/domain-extractor.d.ts +1 -1
  284. package/dashboard/dist-server/src/graph/kg/extraction/knowledge/domain-extractor.js +8 -4
  285. package/dashboard/dist-server/src/graph/kg/extraction/knowledge/domain-extractor.js.map +1 -1
  286. package/dashboard/dist-server/src/graph/kg/query/scoring.d.ts +5 -0
  287. package/dashboard/dist-server/src/graph/kg/query/scoring.js +85 -1
  288. package/dashboard/dist-server/src/graph/kg/query/scoring.js.map +1 -1
  289. package/dashboard/dist-server/src/graph/kg/query/search.d.ts +7 -0
  290. package/dashboard/dist-server/src/graph/kg/query/search.js +117 -1
  291. package/dashboard/dist-server/src/graph/kg/query/search.js.map +1 -1
  292. package/dashboard/dist-server/src/graph/kg/resolution/knowledge-resolver.d.ts +3 -3
  293. package/dashboard/dist-server/src/graph/kg/resolution/knowledge-resolver.js +3 -2
  294. package/dashboard/dist-server/src/graph/kg/resolution/knowledge-resolver.js.map +1 -1
  295. package/dashboard/dist-server/src/graph/kg/surface/hook-injector.js +2 -4
  296. package/dashboard/dist-server/src/graph/kg/surface/hook-injector.js.map +1 -1
  297. package/dashboard/dist-server/src/graph/kg/surface/mcp-tools.js +49 -0
  298. package/dashboard/dist-server/src/graph/kg/surface/mcp-tools.js.map +1 -1
  299. package/dashboard/dist-server/src/hooks/kg-sync-hook.js +3 -0
  300. package/dashboard/dist-server/src/hooks/kg-sync-hook.js.map +1 -1
  301. package/dashboard/dist-server/src/search/daemon-client.d.ts +3 -25
  302. package/dashboard/dist-server/src/search/daemon-client.js +3 -25
  303. package/dashboard/dist-server/src/search/daemon-client.js.map +1 -1
  304. package/dashboard/dist-server/src/search/daemon-types.d.ts +29 -0
  305. package/dashboard/dist-server/src/search/daemon-types.js +31 -0
  306. package/dashboard/dist-server/src/search/daemon-types.js.map +1 -0
  307. package/dist/src/agents/api-explore/agent-loop.d.ts +1 -1
  308. package/dist/src/agents/api-explore/agent-loop.d.ts.map +1 -1
  309. package/dist/src/agents/api-explore/agent-loop.js +32 -17
  310. package/dist/src/agents/api-explore/agent-loop.js.map +1 -1
  311. package/dist/src/agents/api-explore/prompt-parser.js +5 -5
  312. package/dist/src/agents/api-explore/prompt-parser.js.map +1 -1
  313. package/dist/src/agents/api-explore/runner.d.ts.map +1 -1
  314. package/dist/src/agents/api-explore/runner.js +0 -2
  315. package/dist/src/agents/api-explore/runner.js.map +1 -1
  316. package/dist/src/agents/api-explore/system-prompt.d.ts.map +1 -1
  317. package/dist/src/agents/api-explore/system-prompt.js +30 -22
  318. package/dist/src/agents/api-explore/system-prompt.js.map +1 -1
  319. package/dist/src/agents/api-explore/tools.d.ts +1 -0
  320. package/dist/src/agents/api-explore/tools.d.ts.map +1 -1
  321. package/dist/src/agents/api-explore/tools.js +219 -50
  322. package/dist/src/agents/api-explore/tools.js.map +1 -1
  323. package/dist/src/commands/search.d.ts.map +1 -1
  324. package/dist/src/commands/search.js +10 -4
  325. package/dist/src/commands/search.js.map +1 -1
  326. package/dist/src/commands/update.d.ts.map +1 -1
  327. package/dist/src/commands/update.js +89 -21
  328. package/dist/src/commands/update.js.map +1 -1
  329. package/dist/src/core/plugin-bridge.d.ts.map +1 -1
  330. package/dist/src/core/plugin-bridge.js +17 -0
  331. package/dist/src/core/plugin-bridge.js.map +1 -1
  332. package/dist/src/graph/db/connection.d.ts +3 -2
  333. package/dist/src/graph/db/connection.d.ts.map +1 -1
  334. package/dist/src/graph/db/connection.js +28 -16
  335. package/dist/src/graph/db/connection.js.map +1 -1
  336. package/dist/src/graph/db/queries.d.ts.map +1 -1
  337. package/dist/src/graph/db/queries.js.map +1 -1
  338. package/dist/src/graph/kg/credibility.d.ts +2 -2
  339. package/dist/src/graph/kg/credibility.d.ts.map +1 -1
  340. package/dist/src/graph/kg/credibility.js +10 -5
  341. package/dist/src/graph/kg/credibility.js.map +1 -1
  342. package/dist/src/graph/kg/db/connection.d.ts +3 -2
  343. package/dist/src/graph/kg/db/connection.d.ts.map +1 -1
  344. package/dist/src/graph/kg/db/connection.js +28 -16
  345. package/dist/src/graph/kg/db/connection.js.map +1 -1
  346. package/dist/src/graph/kg/db/queries.js +4 -4
  347. package/dist/src/graph/kg/db/queries.js.map +1 -1
  348. package/dist/src/graph/kg/db/types.d.ts +3 -0
  349. package/dist/src/graph/kg/db/types.d.ts.map +1 -1
  350. package/dist/src/graph/kg/embedding/code-embedding.d.ts +47 -0
  351. package/dist/src/graph/kg/embedding/code-embedding.d.ts.map +1 -0
  352. package/dist/src/graph/kg/embedding/code-embedding.js +329 -0
  353. package/dist/src/graph/kg/embedding/code-embedding.js.map +1 -0
  354. package/dist/src/graph/kg/embedding/index.d.ts +3 -0
  355. package/dist/src/graph/kg/embedding/index.d.ts.map +1 -0
  356. package/dist/src/graph/kg/embedding/index.js +3 -0
  357. package/dist/src/graph/kg/embedding/index.js.map +1 -0
  358. package/dist/src/graph/kg/engine.d.ts +20 -2
  359. package/dist/src/graph/kg/engine.d.ts.map +1 -1
  360. package/dist/src/graph/kg/engine.js +71 -1
  361. package/dist/src/graph/kg/engine.js.map +1 -1
  362. package/dist/src/graph/kg/extraction/knowledge/domain-extractor.d.ts +1 -1
  363. package/dist/src/graph/kg/extraction/knowledge/domain-extractor.d.ts.map +1 -1
  364. package/dist/src/graph/kg/extraction/knowledge/domain-extractor.js +8 -4
  365. package/dist/src/graph/kg/extraction/knowledge/domain-extractor.js.map +1 -1
  366. package/dist/src/graph/kg/query/scoring.d.ts +5 -0
  367. package/dist/src/graph/kg/query/scoring.d.ts.map +1 -1
  368. package/dist/src/graph/kg/query/scoring.js +85 -1
  369. package/dist/src/graph/kg/query/scoring.js.map +1 -1
  370. package/dist/src/graph/kg/query/search.d.ts +7 -0
  371. package/dist/src/graph/kg/query/search.d.ts.map +1 -1
  372. package/dist/src/graph/kg/query/search.js +117 -1
  373. package/dist/src/graph/kg/query/search.js.map +1 -1
  374. package/dist/src/graph/kg/resolution/knowledge-resolver.d.ts +3 -3
  375. package/dist/src/graph/kg/resolution/knowledge-resolver.d.ts.map +1 -1
  376. package/dist/src/graph/kg/resolution/knowledge-resolver.js +3 -2
  377. package/dist/src/graph/kg/resolution/knowledge-resolver.js.map +1 -1
  378. package/dist/src/graph/kg/surface/hook-injector.d.ts.map +1 -1
  379. package/dist/src/graph/kg/surface/hook-injector.js +2 -4
  380. package/dist/src/graph/kg/surface/hook-injector.js.map +1 -1
  381. package/dist/src/graph/kg/surface/mcp-tools.d.ts.map +1 -1
  382. package/dist/src/graph/kg/surface/mcp-tools.js +49 -0
  383. package/dist/src/graph/kg/surface/mcp-tools.js.map +1 -1
  384. package/dist/src/hooks/kg-sync-hook.d.ts.map +1 -1
  385. package/dist/src/hooks/kg-sync-hook.js +3 -0
  386. package/dist/src/hooks/kg-sync-hook.js.map +1 -1
  387. package/dist/src/search/daemon-client.d.ts +3 -25
  388. package/dist/src/search/daemon-client.d.ts.map +1 -1
  389. package/dist/src/search/daemon-client.js +3 -25
  390. package/dist/src/search/daemon-client.js.map +1 -1
  391. package/dist/src/search/daemon-types.d.ts +30 -0
  392. package/dist/src/search/daemon-types.d.ts.map +1 -0
  393. package/dist/src/search/daemon-types.js +31 -0
  394. package/dist/src/search/daemon-types.js.map +1 -0
  395. package/dist/src/search/daemon.d.ts +2 -27
  396. package/dist/src/search/daemon.d.ts.map +1 -1
  397. package/dist/src/search/daemon.js +4 -60
  398. package/dist/src/search/daemon.js.map +1 -1
  399. package/dist/src/tools/code-semantic-search.d.ts +10 -0
  400. package/dist/src/tools/code-semantic-search.d.ts.map +1 -0
  401. package/dist/src/tools/code-semantic-search.js +81 -0
  402. package/dist/src/tools/code-semantic-search.js.map +1 -0
  403. package/dist/src/tools/index.d.ts.map +1 -1
  404. package/dist/src/tools/index.js +4 -0
  405. package/dist/src/tools/index.js.map +1 -1
  406. package/dist/src/tools/wiki-search.d.ts +13 -0
  407. package/dist/src/tools/wiki-search.d.ts.map +1 -0
  408. package/dist/src/tools/wiki-search.js +120 -0
  409. package/dist/src/tools/wiki-search.js.map +1 -0
  410. package/dist/src/utils/update-notices.js +24 -0
  411. package/dist/src/utils/update-notices.js.map +1 -1
  412. package/package.json +4 -3
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: manage-drift-realign
3
3
  description: Detect and realign .workflow/ artifact drift against code reality after refactoring
4
- argument-hint: "--scope <roadmap|spec|codebase|state|issue|knowhow|project|all> [--since YYYY-MM-DD|commit|HEAD~N] [--depth shallow|deep] [--dry-run] [--report] [--auto-archive] [--interactive]"
4
+ argument-hint: "[--scope <roadmap|spec|codebase|state|issue|knowhow|project|all>] [--since YYYY-MM-DD|commit|HEAD~N] [--depth shallow|deep] [--dry-run] [--report] [--auto-archive] [--interactive]"
5
5
  allowed-tools:
6
6
  - read_file
7
7
  - write_file
@@ -45,7 +45,10 @@ Arguments: $ARGUMENTS
45
45
 
46
46
  **`--interactive`:** 逐项交互分诊(默认)。
47
47
 
48
- **互斥规则:** `--report` 覆盖 `--interactive`;`--auto-archive` 覆盖 `--interactive`。
48
+ **互斥规则:**
49
+ - `--report` 覆盖 `--interactive`
50
+ - `--auto-archive` 覆盖 `--interactive`
51
+ - `--report` 与 `--auto-archive` 互斥(同时传入 → E006)
49
52
 
50
53
  **状态文件读取:**
51
54
  - `.workflow/state.json`
@@ -129,6 +132,7 @@ Follow `~/.maestro/workflows/drift-realign.md` Stages 1-9 in order.
129
132
  | E003 | error | git 不可用(非 git 仓库) | 初始化 git |
130
133
  | E004 | error | `--since` 无法解析 | 检查日期格式或 commit ref |
131
134
  | E005 | error | 备份失败 | 检查磁盘空间 |
135
+ | E006 | error | `--report` 与 `--auto-archive` 同时传入 | 二选一:`--report` 仅生成报告,`--auto-archive` 执行归档 |
132
136
  | W001 | warning | session 历史不可用(wiki 未索引) | 运行 `maestro wiki rebuild` |
133
137
  | W002 | warning | `drift_window` > 180 天 | 建议使用 `--depth deep` |
134
138
  | W003 | warning | 部分 scanner agent 失败 | 以部分覆盖继续 |
@@ -35,7 +35,10 @@ Arguments: $ARGUMENTS
35
35
  - `<session-id>` (e.g., `ANL-auth-20260410`, `WFS-xxx`) → `session` mode: harvest specific session
36
36
  - `<path>` (e.g., `.workflow/.analysis/ANL-auth-20260410/`) → `path` mode: harvest from explicit directory
37
37
 
38
- Flags, source registry (scan paths), and storage locations defined in workflow harvest.md.
38
+ **Flags:**
39
+ - `-y` / `--yes` — Skip confirmation prompts for all write operations (artifact selection, routing decisions, store writes). Useful for CI or batch harvesting.
40
+
41
+ Additional flags, source registry (scan paths), and storage locations defined in workflow harvest.md.
39
42
  </context>
40
43
 
41
44
  <execution>
@@ -5,6 +5,7 @@ argument-hint: "[multi-perspective | by-prompt <prompt>] [-y] [--scope <glob>] [
5
5
  allowed-tools:
6
6
  - read_file
7
7
  - write_file
8
+ - edit_file
8
9
  - shell
9
10
  - find_files
10
11
  - search
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: manage-kg-extractors
3
3
  description: Analyze codebase patterns and generate .workflow/kg/extractors.yaml for custom symbol extraction
4
- argument-hint: "[--scan-only] [--append] [--language <lang>]"
4
+ argument-hint: "[--scan-only] [--append] [--language <lang>] [--min-count <n>]"
5
5
  allowed-tools:
6
6
  - read_file
7
7
  - write_file
@@ -26,6 +26,7 @@ $ARGUMENTS -- optional flags.
26
26
  - `--scan-only` — Only report detected patterns, don't write extractors.yaml
27
27
  - `--append` — Append new rules to existing extractors.yaml (default: overwrite)
28
28
  - `--language <lang>` — Limit analysis to specific language (python, typescript, java, etc.)
29
+ - `--min-count <n>` — Minimum occurrences to include a pattern (default: 3). Use `--min-count 1` to include rare patterns.
29
30
 
30
31
  **Analysis targets (per language):**
31
32
 
@@ -79,6 +80,8 @@ Spawn **3 parallel agents** to scan the codebase:
79
80
 
80
81
  Each agent returns: `[{pattern_type, regex_evidence, file_count, sample_matches: [{file, line, code}]}]`
81
82
 
83
+ **Gate:** If all 3 agents return empty results → E002 (abort). If at least 1 agent succeeds, proceed with partial results (log W001 for failed agents).
84
+
82
85
  ### Phase 2: Generate rules
83
86
 
84
87
  For each discovered pattern with ≥3 occurrences:
@@ -114,6 +117,7 @@ If `--scan-only`: stop after Phase 2 summary.
114
117
  | Code | Severity | Condition | Recovery |
115
118
  |------|----------|-----------|----------|
116
119
  | E001 | error | .workflow/ not initialized | Run maestro-init first |
120
+ | E002 | error | All 3 Phase 1 agents failed — zero patterns discovered | Check codebase language detection; retry with `--language` |
117
121
  | W001 | warning | No patterns detected for language | Try broader scan or different language |
118
122
  | W002 | warning | Pattern has < 3 occurrences | Skipped by default, include with --min-count 1 |
119
123
  | W003 | warning | Existing extractors.yaml will be overwritten | Use --append to preserve |
@@ -9,6 +9,7 @@ allowed-tools:
9
9
  - shell
10
10
  - find_files
11
11
  - search
12
+ - web_fetch
12
13
  - ask_user
13
14
  ---
14
15
  <!-- Open-standard mirror generated by scripts/build-agents-standard.mjs — do not edit; re-run after editing .claude/ source. -->
@@ -34,6 +34,8 @@ Arguments: $ARGUMENTS
34
34
 
35
35
  **删除策略**默认 `--interactive`(三态面板逐项决策);非交互模式 `--mark`(仅打标)/ `--delete`(软删到 `.trash/`)/ `--purge`(物理擦除,仅 artifact 且需双重确认)。
36
36
 
37
+ **互斥规则:** `--interactive`、`--mark`、`--delete`、`--purge` 四选一,同时传入多个 → E006。
38
+
37
39
  Flag 全集、scope 对应的扫描路径、Stage 步骤、检测算法定义在 workflow knowledge-audit.md。
38
40
  </context>
39
41
 
@@ -113,6 +115,7 @@ Follow `~/.maestro/workflows/knowledge-audit.md` Stages 1-8 in order.
113
115
  | E003 | error | `--purge` 与 `--dry-run` 同用 | 二选一 |
114
116
  | E004 | error | `--purge` 作用于非 artifact 范围 | purge 仅支持 artifact scope |
115
117
  | E005 | error | 备份失败(`.trash/` 写入异常) | 检查磁盘空间与权限,重试 |
118
+ | E006 | error | `--interactive`/`--mark`/`--delete`/`--purge` 同时传入多个 | 四选一,默认 `--interactive` |
116
119
  | W001 | warning | 检出冲突但用户选择 keep | 记入 report,不阻断 |
117
120
  | W002 | warning | 待删 artifact 无 harvest-log 记录 | 提示先跑 manage-harvest |
118
121
  | W003 | warning | 循环 supersedes 链 | 自动断环或交互选保留节点 |
@@ -38,6 +38,7 @@ $ARGUMENTS — subcommand and optional flags.
38
38
  **Flags:**
39
39
  - `--type <type>` — Filter by wiki type: spec, knowhow, note, issue
40
40
  - `--fix` — Auto-fix issues found during cleanup/connect (remove broken links, apply connections)
41
+ - `--dry-run` — Preview mode, no writes. **Overrides `--fix`**: when both are passed, `--dry-run` takes precedence (preview only, no fixes applied).
41
42
  - `--json` — Output in JSON format
42
43
  - `--min-similarity N` — (connect) Minimum similarity threshold for link candidates
43
44
  - `--max N` — (connect) Maximum number of suggestions
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: odyssey-debug
3
3
  description: Long-running debug cycle — archaeology, diagnosis, fix, confirmation, generalization, discovery, and knowledge persistence
4
- argument-hint: "<issue> [--skip-fix] [--skip-generalize] [--auto] [-y] [-c] [--heartbeat]"
4
+ argument-hint: "<issue> [--template <name>] [--skip-fix] [--skip-generalize] [--auto] [-y] [-c] [--heartbeat]"
5
5
  allowed-tools:
6
6
  - read_file
7
7
  - write_file
@@ -239,6 +239,7 @@ All sibling bugs fixed or issued — no leftovers.
239
239
  | E001 | error | No issue, no session | Provide issue or -c |
240
240
  | W001 | warning | No relevant git history | Proceed |
241
241
  | W002 | warning | 3 retries exhausted | INCONCLUSIVE |
242
+ | W003 | warning | Partial archaeology agent failure (Timeline or Blame) | Proceed with available results, log failed agent |
242
243
  | W005 | warning | Pending decisions | Filter evidence phase=decision |
243
244
  | W006 | warning | No CLI tools | Skip explore |
244
245
  </error_codes>
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: odyssey-improve
3
3
  description: Long-running codebase improvement cycle — multi-dimensional audit, deep diagnosis, targeted fix, verify, generalize, and engineering knowledge persistence
4
- argument-hint: "<target> [--dimensions <list>] [--skip-fix] [--skip-generalize] [--auto] [-y] [-c] [--heartbeat]"
4
+ argument-hint: "<target> [--dimensions <list>] [--fix-threshold <severity>] [--skip-fix] [--skip-generalize] [--auto] [-y] [-c] [--heartbeat]"
5
5
  allowed-tools:
6
6
  - read_file
7
7
  - write_file
@@ -191,7 +191,7 @@ Commit: `"odyssey-improve({slug}): DIAGNOSE — root cause analysis"`
191
191
  `retries++`. < 3: `maestro delegate --role analyze`, new hypotheses, → S_DIAGNOSE. >= 3: Normal → ask_user | `-y` → INCONCLUSIVE → S_RECORD.
192
192
 
193
193
  ### A_FIX
194
- 1. Exhaustive fix: ALL diagnosed issues by severity tier (critical → high → medium → low within fix_threshold), one dimension at a time. After each tier, re-verify — new findings append to current tier.
194
+ 1. Exhaustive fix: ALL diagnosed issues by severity tier (critical → high → medium → low within fix_threshold), one dimension at a time. After each tier, re-verify **current tier's dimension only** (not all dimensions) — new findings at same or higher severity append to current tier. Cross-dimension regression checks run once at S_VERIFY after all tiers complete.
195
195
  2. For each fix: implement → evidence phase=fix
196
196
  3. Normal: ask_user per-fix confirmation | `-y`: auto-proceed, record `deferred`
197
197
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: odyssey-planex
3
3
  description: Requirement-driven iterative cycle — plan, execute, strict verify, fix loop until acceptance criteria met
4
- argument-hint: "<requirement> [--max-iterations N] [--skip-generalize] [--auto] [--method agent|cli|auto] [--executor <tool>] [--skip-verify] [--heartbeat] [-y] [-c]"
4
+ argument-hint: "<requirement> [--template <name>] [--max-iterations N] [--skip-generalize] [--auto] [--method agent|cli|auto] [--executor <tool>] [--skip-verify] [--heartbeat] [-y] [-c]"
5
5
  allowed-tools:
6
6
  - read_file
7
7
  - write_file
@@ -110,7 +110,7 @@ Applies to: **S_PLAN, S_VERIFY, S_GENERALIZE**. Logic in base.
110
110
  <state_machine>
111
111
 
112
112
  <states>
113
- S_INTAKE → S_PLAN → S_EXECUTE → S_VERIFY → S_GENERALIZE → S_DISCOVER → S_RECORD → END
113
+ S_INTAKE → S_PLAN → S_EXECUTE → S_VERIFY → S_FIX → S_GENERALIZE → S_DISCOVER → S_RECORD → END
114
114
  </states>
115
115
 
116
116
  <transitions>
@@ -124,7 +124,7 @@ S_EXECUTE → S_VERIFY
124
124
  S_VERIFY → S_GENERALIZE : all passed AND NOT skip_generalize
125
125
  S_VERIFY → S_RECORD : all passed AND skip_generalize
126
126
  S_VERIFY → S_FIX : some failed AND iteration < max
127
- S_VERIFY → S_PLAN : fundamental plan flaw → cross_phase_loops++ (replan)
127
+ S_VERIFY → S_PLAN : fundamental plan flaw → cross_phase_loops++ (replan). **Criteria preservation:** acceptance_criteria[] statuses are preserved; only plan.tasks[] are regenerated. Previously passed criteria retain `passed` status; failed criteria reset to `pending` for re-verification after new plan execution.
128
128
  S_VERIFY → S_RECORD : some failed AND iteration >= max (escalate)
129
129
 
130
130
  S_FIX → S_VERIFY (loop)
@@ -297,7 +297,7 @@ Iron gate — every acceptance criterion checked objectively.
297
297
  |--------|--------|
298
298
  | `test` | Run relevant tests, check pass/fail |
299
299
  | `grep` | Grep for expected pattern |
300
- | `cli-review` | `maestro delegate --role review --mode analysis` with criterion as focus |
300
+ | `cli-review` | `maestro delegate "PURPOSE: Verify criterion {criterion_id}: {criterion}\nTASK: Read implementation code \| Check behavior matches criterion \| Report pass/fail with file:line evidence\nMODE: analysis\nCONTEXT: @{relevant_files}\nEXPECTED: JSON {criterion_id, status: passed\|failed, evidence: [{file, line, detail}]}" --role review --mode analysis` |
301
301
  | `manual` | Normal: ask_user / `-y`: record `deferred` |
302
302
 
303
303
  Record per criterion: `{"phase":"verification","type":"criterion-check","criterion_id":"AC1","method":"","result":"passed|failed","evidence":"","iteration":N}`. Update acceptance_criteria[].status. Append to iterations[].
@@ -314,11 +314,12 @@ Commit: `"odyssey-planex({slug}): VERIFY — acceptance check"`
314
314
  2. For each failed criterion: diagnose gap → targeted code fix
315
315
  3. CLI fix review (optional):
316
316
  ```bash
317
- maestro delegate "PURPOSE: Review fixes for failing criteria
318
- TASK: Check fix correctness | Verify no regressions on passing criteria
317
+ maestro delegate "PURPOSE: Review fixes for failing criteria; success = no regressions and fixes correct
318
+ TASK: Check fix correctness | Verify no regressions on passing criteria | Report verdict with file:line evidence
319
319
  MODE: analysis
320
320
  CONTEXT: @{modified_files} | Passing: {passing} | Fixed: {fixed}
321
- EXPECTED: JSON {verdict, regression_risk, concerns}
321
+ EXPECTED: JSON {verdict: passed|concerns_found, regression_risk: low|medium|high, concerns: [{criterion_id, file, line, description}]}
322
+ CONSTRAINTS: Read-only | Check ALL passing criteria for regressions
322
323
  " --role review --mode analysis
323
324
  ```
324
325
  4. Append evidence (fix), update understanding.md section 5 → S_VERIFY
@@ -135,6 +135,8 @@ Glob latest session → read `session.json` → jump to `current_state`.
135
135
  ### A_ARCHAEOLOGY
136
136
  2 parallel Agents: Timeline (`git log --oneline -20 -- {files}`) + Blame (top 3 files `git blame -L {region}`). Evidence phase=archaeology.
137
137
 
138
+ **Error handling:** If any archaeology agent fails (Timeline or Blame), log W003 and proceed with available results. If delegate fails, log W003 and proceed with local agent results only.
139
+
138
140
  `maestro delegate --role analyze --mode analysis` (`run_in_background: true`):
139
141
  - PURPOSE: Review recent modifications related to {target}
140
142
  - EXPECTED: JSON [{commit_sha, risk_level, analysis, could_cause_issue, explanation}]
@@ -172,7 +174,7 @@ for tier in [critical, high, medium, low].filter(>= threshold):
172
174
  ```
173
175
 
174
176
  Normal: ask_user per tier. `-y`: auto-fix all.
175
- Remaining > 0 → retry (no max_loops limit). Unchanged 2 rounds → classify each individually.
177
+ Remaining > 0 → retry (max_fix_rounds = 5). Unchanged 2 rounds → classify each individually. After 5 rounds with remaining > 0 → escalate: Normal: ask_user (continue/accept/reclassify) | `-y`: classify remaining as `deferred`, proceed.
176
178
  Blanket "pre-existing" forbidden.
177
179
 
178
180
  Commit per tier: `"odyssey-review({slug}): FIX-{tier} — {N} items fixed"`
@@ -237,6 +239,7 @@ Every finding must have action (fix/issue/decision). Decision pending must ask_u
237
239
  | E002 | error | Target path not found | Check path |
238
240
  | W001 | warning | No git history | Proceed |
239
241
  | W002 | warning | Some dimension agents failed | Partial coverage |
242
+ | W003 | warning | Archaeology agent or delegate failure | Proceed with available results |
240
243
  </error_codes>
241
244
 
242
245
  <success_criteria>
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: odyssey-ui
3
3
  description: Long-running UI optimization cycle — visual survey, multi-dimensional audit, divergent exploration, fix, verify, generalize, and design knowledge persistence
4
- argument-hint: "<target> [--dimensions <list>] [--skip-fix] [--skip-generalize] [--auto] [-y] [-c] [--heartbeat]"
4
+ argument-hint: "<target> [--dimensions <list>] [--fix-threshold <severity>] [--skip-fix] [--skip-generalize] [--auto] [-y] [-c] [--heartbeat]"
5
5
  allowed-tools:
6
6
  - read_file
7
7
  - write_file
@@ -138,7 +138,7 @@ Glob latest session → read `session.json` → jump to `current_state`.
138
138
  ### A_SURVEY
139
139
  1. **Design system inventory**: Scan for design tokens, CSS variables, theme imports
140
140
  2. **Current state analysis**: Styling patterns, layout strategy, component hierarchy
141
- 3. **CLI-assisted**: `maestro delegate --role analyze` — survey tokens, spacing, typography, hierarchy, consistency
141
+ 3. **CLI-assisted**: `maestro delegate --role analyze --mode analysis` — survey tokens, spacing, typography, hierarchy, consistency
142
142
  4. Append evidence phase=survey. Update section 2. Mark G1.
143
143
 
144
144
  Commit: `"odyssey-ui({slug}): SURVEY — design token inventory"`
@@ -169,7 +169,7 @@ Goes beyond defect fixing — "what would make this delightful?"
169
169
 
170
170
  Each returns `[{idea, category (polish|delight), impact, effort, description, inspiration}]`
171
171
 
172
- **Step 2 — CLI-assisted**: `maestro delegate --role analyze` — polish opportunities, micro-interactions, visual rhythm, delight moments
172
+ **Step 2 — CLI-assisted**: `maestro delegate --role analyze --mode analysis` — polish opportunities, micro-interactions, visual rhythm, delight moments
173
173
 
174
174
  **Step 3 — Consolidate**: Merge audit findings + divergent ideas → prioritized list (severity x impact x effort).
175
175
  Append evidence phase=diverge. Update section 4. Mark G3.
@@ -186,7 +186,7 @@ Commit: `"odyssey-ui({slug}): FIX — implement improvements"`
186
186
 
187
187
  ### A_VERIFY
188
188
  1. Run tests (lint, unit, visual regression)
189
- 2. `maestro delegate --role review` — visual correctness, interaction states, accessibility, responsive
189
+ 2. `maestro delegate --role review --mode analysis` — visual correctness, interaction states, accessibility, responsive
190
190
  3. `needs_rework` → S_FIX. `verified` → mark G4. Update section 5, write `confirmation`.
191
191
 
192
192
  Commit: `"odyssey-ui({slug}): VERIFY — visual verification"`
@@ -27,6 +27,8 @@ Layers L0→L3 sequential (fail-fast), scenarios within layer parallel. `--max-i
27
27
  Phase or task: $ARGUMENTS (required — phase number)
28
28
 
29
29
  **Flags:**
30
+ - `-c N` — Resume from iteration N of an existing session (skips setup, resumes from last checkpoint)
31
+ - `-y` — Skip confirmation prompts for artifact registration and issue creation
30
32
  - `--max-iter N` — Maximum outer iterations (default: 5). Set to 1 for single-pass generation only.
31
33
  - `--layer L` — Start from or restrict to specific layer (L0|L1|L2|L3)
32
34
  - `--dry-run` — Generate test plan only, do not execute
@@ -92,6 +94,14 @@ Follow '~/.maestro/workflows/auto-test.md' completely.
92
94
  - Generate regression test scenarios from confirmed root causes, marked `source: "debug_root_cause"`
93
95
 
94
96
  **Register artifact on completion:**
97
+
98
+ Unless `-y` flag is set, confirm before writing:
99
+ ```
100
+ ask_user("Register auto-test artifact TST-{NNN} in state.json? (yes/no)")
101
+ → yes: proceed with write
102
+ → no: skip registration, continue to next-step routing
103
+ ```
104
+
95
105
  ```
96
106
  Append to state.json.artifacts[]:
97
107
  {
@@ -149,7 +159,7 @@ Append to state.json.artifacts[]:
149
159
  - [ ] report.json includes confidence section
150
160
  - [ ] index.json updated with auto_test section
151
161
  - [ ] If spec source: traceability matrix built, traceability.md written
152
- - [ ] If failures: issues auto-created in issues.jsonl
162
+ - [ ] If failures: issues created in issues.jsonl (confirmed by user unless `-y`)
153
163
  - [ ] If gap source: validation.json gaps updated (MISSING→COVERED)
154
164
  - [ ] Next step routed based on convergence status
155
165
  </success_criteria>
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: quality-debug
3
3
  description: Use when bugs, test failures, or unexpected behavior need systematic root cause investigation
4
- argument-hint: "[issue description] [--from-uat <phase>] [--parallel]"
4
+ argument-hint: "[issue description] [-c] [--from-uat <phase>] [--parallel]"
5
5
  allowed-tools:
6
6
  - read_file
7
7
  - write_file
@@ -75,6 +75,14 @@ Follow '~/.maestro/workflows/debug.md' completely.
75
75
  - BLOCKED if inconclusive: resume session or escalate.
76
76
 
77
77
  **Register artifact on completion (phase-scoped only):**
78
+
79
+ Confirm before writing:
80
+ ```
81
+ ask_user("Register debug artifact DBG-{NNN} in state.json? (yes/no)")
82
+ → yes: proceed with write
83
+ → no: skip registration, continue to knowledge inquiry
84
+ ```
85
+
78
86
  ```
79
87
  Append to state.json.artifacts[]:
80
88
  {
@@ -94,13 +102,19 @@ Append to state.json.artifacts[]:
94
102
 
95
103
  ### Post-debug Knowledge Inquiry
96
104
 
105
+ For each matching condition, ask the user explicitly:
106
+
97
107
  | Condition | Ask | Route |
98
108
  |-----------|-----|-------|
99
109
  | Recurring root cause pattern (seen in prior debug) | "Document in debug-notes.md?" | spec-add debug |
100
110
  | Non-obvious fix / workaround | "Record as learning?" | spec-add learning |
101
111
  | Root cause = architectural boundary violation | "Update architecture-constraints.md?" | spec-add arch |
102
112
 
103
- On confirm → `invoke_skill("spec-add", "<category> <content> --description \"<summary>\"")`.
113
+ ```
114
+ ask_user("<ask text> (yes/no)")
115
+ → yes: invoke_skill("spec-add", "<category> <content> --description \"<summary>\"")
116
+ → no: skip this entry, proceed to next condition or completion
117
+ ```
104
118
 
105
119
  </execution>
106
120
 
@@ -32,7 +32,14 @@ Post-execution retrospective (复盘): four parallel lenses (technical/process/q
32
32
  <context>
33
33
  Arguments: $ARGUMENTS
34
34
 
35
- Modes (scan/single/range/all), flags (--lens, --no-route, --compare, -y), and storage paths defined in workflow retrospective.md Argument Shape and Stages 1-7.
35
+ **Flags:**
36
+ - `-y` — Skip confirmation prompts for external writes (issues.jsonl, spec entries, knowhow capture)
37
+ - `--no-route` — Skip routing stage (produce retrospective files only, no spec/issue/knowhow writes)
38
+ - `--compare N` — Compare current phase retrospective against phase N (requires single phase argument)
39
+ - `--all` — Run retrospective on all completed phases that lack retrospective.json
40
+ - `--lens <name>` — Restrict to specific lens (technical|process|quality|decision); default: all four
41
+
42
+ Modes (scan/single/range/all) and storage paths defined in workflow retrospective.md Argument Shape and Stages 1-7.
36
43
  </context>
37
44
 
38
45
  <execution>
@@ -57,6 +64,7 @@ Follow `~/.maestro/workflows/retrospective.md` Stages 1–8 in order.
57
64
  - REQUIRED: `retrospective.md` written (human-readable).
58
65
  - REQUIRED: Issue rows match canonical `issues.jsonl` schema (status "open", full fields).
59
66
  - REQUIRED: Note tips routed via `invoke_skill({ skill: "manage-knowhow-capture", args: "tip ..." })`.
67
+ - REQUIRED: Unless `-y` flag is set, confirm before each external write (issues.jsonl append, spec-entry append, knowhow-capture). With `-y`, skip all confirmation prompts.
60
68
  - BLOCKED if routing incomplete: finish all write operations before reporting.
61
69
 
62
70
  ### Execution Constraints
@@ -82,6 +82,14 @@ Follow '~/.maestro/workflows/review.md' completely.
82
82
  - `REVIEW_DIR/review.json` — findings, severity distribution, verdict
83
83
 
84
84
  **Register artifact on completion:**
85
+
86
+ Confirm before writing state.json and issues.jsonl:
87
+ ```
88
+ ask_user("Register review artifact REV-{NNN} in state.json and create {N} issues in issues.jsonl? (yes/no)")
89
+ → yes: proceed with both writes
90
+ → no: skip registration and issue creation, continue to completion
91
+ ```
92
+
85
93
  ```
86
94
  Append to state.json.artifacts[]:
87
95
  {
@@ -44,7 +44,7 @@ Follow '~/.maestro/workflows/sync.md' completely.
44
44
 
45
45
  **GATE 3: Refresh → Completion**
46
46
  - REQUIRED: `.workflow/codebase/` docs refreshed for affected components.
47
- - REQUIRED: state.json updated with sync timestamp.
47
+ - REQUIRED: If `--dry-run` is set, skip state.json write and report what would change. Otherwise, update state.json with sync timestamp.
48
48
  - BLOCKED if missing: do not report completion without updated docs.
49
49
  </execution>
50
50
 
@@ -82,7 +82,7 @@ maestro ralph complete <idx> --status {STATUS} [--evidence {path}]
82
82
  </error_codes>
83
83
 
84
84
  <success_criteria>
85
- - [ ] state.json updated with current sync timestamp
85
+ - [ ] state.json updated with current sync timestamp (skipped if `--dry-run`)
86
86
  - [ ] Codebase docs refreshed for all affected components
87
87
  - [ ] doc-index.json reflects current file state
88
88
  - [ ] Changes tracked and logged
@@ -92,6 +92,14 @@ Follow '~/.maestro/workflows/test.md' completely.
92
92
  - Generate regression test scenarios from confirmed root causes, marked `source: "debug_root_cause"`
93
93
 
94
94
  **Register artifact on completion:**
95
+
96
+ Confirm before writing:
97
+ ```
98
+ ask_user("Register test artifact TST-{NNN} in state.json? (yes/no)")
99
+ → yes: proceed with write
100
+ → no: skip registration, continue to completion
101
+ ```
102
+
95
103
  ```
96
104
  Append to state.json.artifacts[]:
97
105
  {
@@ -165,7 +173,7 @@ maestro ralph complete <idx> --status {STATUS} [--evidence {path}]
165
173
  - [ ] Pressure pass completed if > 80% pass rate
166
174
  - [ ] Confidence summary appended to uat.md
167
175
  - [ ] index.json uat fields updated
168
- - [ ] If issues: parallel debug agents spawned per gap cluster
176
+ - [ ] If issues: confirm with user before spawning parallel debug agents per gap cluster
169
177
  - [ ] Gaps updated with root_cause, fix_direction, affected_files
170
178
  - [ ] Gap-fix loop triggered if --auto-fix (max 2 iterations)
171
179
  - [ ] Next step routed (phase-transition if pass, verify if auto-fix success, debug --from-uat if issues, test-gen if low coverage)
@@ -100,10 +100,12 @@ Check for:
100
100
 
101
101
  **Phase 4: Secrets Detection** (standard + deep)
102
102
 
103
- ```bash
104
- # Current codebase
105
- grep -rn --include="*.ts" --include="*.js" --include="*.json" --include="*.env*" \
106
- -E "(password|secret|api.?key|token|credential).*=.*['\"][^'\"]{8,}" . || true
103
+ ```
104
+ search({
105
+ pattern: "(password|secret|api.?key|token|credential).*=.*['\"][^'\"]{8,}",
106
+ glob: "*.{ts,js,json,env*}",
107
+ output_mode: "content"
108
+ })
107
109
  ```
108
110
 
109
111
  Check `.env.example` for leaked values. Check `.gitignore` for missing `.env` patterns.
@@ -161,6 +163,14 @@ Summary: {total} findings ({critical} critical, {high} high, {medium} medium, {l
161
163
  ```
162
164
 
163
165
  **Register artifact on completion:**
166
+
167
+ Confirm before writing:
168
+ ```
169
+ ask_user("Register security-audit artifact RVW-{NNN} in state.json? (yes/no)")
170
+ → yes: proceed with write
171
+ → no: skip registration, continue to completion
172
+ ```
173
+
164
174
  ```
165
175
  Append to state.json.artifacts[]:
166
176
  {
@@ -1,13 +1,14 @@
1
1
  ---
2
2
  name: spec-add
3
3
  description: Add spec entry by category with role tagging
4
- argument-hint: "[--scope project|global|team|personal] <category> <content>"
4
+ argument-hint: "[--scope project|global|team|personal] [-y] <category> <content>"
5
5
  allowed-tools:
6
6
  - read_file
7
7
  - write_file
8
8
  - shell
9
9
  - find_files
10
10
  - search
11
+ - ask_user
11
12
  ---
12
13
  <!-- Open-standard mirror generated by scripts/build-agents-standard.mjs — do not edit; re-run after editing .claude/ source. -->
13
14
 
@@ -47,6 +48,8 @@ Scope-to-directory mapping, category-to-file mapping, and entry format defined i
47
48
 
48
49
  <execution>
49
50
  Follow '~/.maestro/workflows/specs-add.md' completely.
51
+
52
+ **Confirmation gate**: Unless -y flag is passed, after formatting the `<spec-entry>` block but before appending to the target file, ask_user showing the formatted entry, target file path, and scope. Proceed only on user confirm.
50
53
  </execution>
51
54
 
52
55
  <error_codes>
@@ -54,7 +57,7 @@ Follow '~/.maestro/workflows/specs-add.md' completely.
54
57
  |------|----------|-------------|-------|
55
58
  | E001 | fatal | Category and content are both required | parse_input |
56
59
  | E002 | fatal | Specs directory not initialized -- run `maestro spec init --scope <scope>` | validate_entry |
57
- | E003 | fatal | Invalid category -- must be one of: coding, arch, quality, debug, test, review, learning, tools, ui | parse_input |
60
+ | E003 | fatal | Invalid category -- must be one of: coding, arch, quality, debug, test, review, learning, ui | parse_input |
58
61
  | E004 | fatal | Invalid scope -- must be one of: project, global, team, personal | parse_input |
59
62
  | E005 | fatal | Personal scope requires uid -- use `--uid` or run `maestro collab join` first | parse_input |
60
63
  </error_codes>
@@ -29,7 +29,7 @@ $ARGUMENTS -- optional flags and keyword
29
29
  - `global`: global + project merged (~/.maestro/specs/ + .workflow/specs/)
30
30
  - `team`: project + team shared (.workflow/collab/specs/)
31
31
  - `personal`: project + team + personal (requires uid)
32
- - `--category <category>` — Load by category: primary category doc (full) + cross-file entries with matching category attr. Categories: coding, arch, test, review, debug, learning, ui.
32
+ - `--category <category>` — Load by category: primary category doc (full) + cross-file entries with matching category attr. Categories: coding, arch, quality, test, review, debug, learning, ui.
33
33
  - `--keyword <word>` — Filter by keyword within entries
34
34
 
35
35
  **File → Primary Category mapping:**
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: spec-remove
3
3
  description: Remove spec entry by ID
4
- argument-hint: "<entry-id> [--cascade]"
4
+ argument-hint: "<entry-id> [--cascade] [-y]"
5
5
  allowed-tools:
6
6
  - read_file
7
7
  - write_file
@@ -8,6 +8,7 @@ allowed-tools:
8
8
  - shell
9
9
  - find_files
10
10
  - search
11
+ - ask_user
11
12
  ---
12
13
  <!-- Open-standard mirror generated by scripts/build-agents-standard.mjs — do not edit; re-run after editing .claude/ source. -->
13
14
 
@@ -29,6 +30,8 @@ $ARGUMENTS (no arguments expected)
29
30
 
30
31
  <execution>
31
32
  Follow '~/.maestro/workflows/specs-setup.md' completely.
33
+
34
+ **Confirmation gate**: After scanning codebase and determining which files/directories will be created (core specs, optional specs, recipe knowhow), ask_user showing the full list of files to create with their categories and detected signals. Proceed only on user confirm.
32
35
  </execution>
33
36
 
34
37
  <error_codes>
@@ -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