maestro-flow 0.5.42 → 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 (323) 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-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 -1
  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/.agy/skills/domain-add/SKILL.md +3 -0
  63. package/.agy/skills/learn-decompose/SKILL.md +7 -4
  64. package/.agy/skills/learn-follow/SKILL.md +4 -2
  65. package/.agy/skills/learn-investigate/SKILL.md +8 -6
  66. package/.agy/skills/learn-second-opinion/SKILL.md +6 -3
  67. package/.agy/skills/maestro/SKILL.md +1 -1
  68. package/.agy/skills/maestro-amend/SKILL.md +1 -1
  69. package/.agy/skills/maestro-analyze/SKILL.md +1 -1
  70. package/.agy/skills/maestro-blueprint/SKILL.md +1 -1
  71. package/.agy/skills/maestro-brainstorm/SKILL.md +4 -1
  72. package/.agy/skills/maestro-collab/SKILL.md +6 -2
  73. package/.agy/skills/maestro-companion/SKILL.md +4 -1
  74. package/.agy/skills/maestro-composer/SKILL.md +4 -2
  75. package/.agy/skills/maestro-execute/SKILL.md +26 -8
  76. package/.agy/skills/maestro-fork/SKILL.md +4 -3
  77. package/.agy/skills/maestro-grill/SKILL.md +1 -1
  78. package/.agy/skills/maestro-guard/SKILL.md +2 -2
  79. package/.agy/skills/maestro-impeccable/SKILL.md +2 -1
  80. package/.agy/skills/maestro-init/SKILL.md +1 -1
  81. package/.agy/skills/maestro-merge/SKILL.md +12 -1
  82. package/.agy/skills/maestro-milestone-audit/SKILL.md +1 -0
  83. package/.agy/skills/maestro-milestone-complete/SKILL.md +8 -3
  84. package/.agy/skills/maestro-milestone-release/SKILL.md +8 -4
  85. package/.agy/skills/maestro-overlay/SKILL.md +9 -0
  86. package/.agy/skills/maestro-plan/SKILL.md +1 -0
  87. package/.agy/skills/maestro-player/SKILL.md +2 -2
  88. package/.agy/skills/maestro-quick/SKILL.md +5 -3
  89. package/.agy/skills/maestro-ralph/SKILL.md +8 -8
  90. package/.agy/skills/maestro-ralph-cli/SKILL.md +661 -0
  91. package/.agy/skills/maestro-ralph-cli-execute/SKILL.md +235 -0
  92. package/.agy/skills/maestro-ralph-execute/SKILL.md +127 -11
  93. package/.agy/skills/maestro-roadmap/SKILL.md +1 -1
  94. package/.agy/skills/maestro-swarm-workflow/SKILL.md +16 -14
  95. package/.agy/skills/maestro-tools-register/SKILL.md +16 -1
  96. package/.agy/skills/maestro-ui-codify/SKILL.md +11 -1
  97. package/.agy/skills/maestro-universal-workflow/SKILL.md +28 -5
  98. package/.agy/skills/maestro-update/SKILL.md +10 -7
  99. package/.agy/skills/manage-codebase-rebuild/SKILL.md +5 -1
  100. package/.agy/skills/manage-drift-realign/SKILL.md +6 -2
  101. package/.agy/skills/manage-harvest/SKILL.md +4 -1
  102. package/.agy/skills/manage-issue-discover/SKILL.md +1 -0
  103. package/.agy/skills/manage-kg-extractors/SKILL.md +5 -1
  104. package/.agy/skills/manage-knowhow-capture/SKILL.md +1 -0
  105. package/.agy/skills/manage-knowledge-audit/SKILL.md +3 -0
  106. package/.agy/skills/manage-wiki/SKILL.md +1 -0
  107. package/.agy/skills/odyssey-debug/SKILL.md +2 -1
  108. package/.agy/skills/odyssey-improve/SKILL.md +2 -2
  109. package/.agy/skills/odyssey-planex/SKILL.md +8 -7
  110. package/.agy/skills/odyssey-review-test-fix/SKILL.md +4 -1
  111. package/.agy/skills/odyssey-ui/SKILL.md +4 -4
  112. package/.agy/skills/quality-auto-test/SKILL.md +11 -1
  113. package/.agy/skills/quality-debug/SKILL.md +16 -2
  114. package/.agy/skills/quality-retrospective/SKILL.md +9 -1
  115. package/.agy/skills/quality-review/SKILL.md +8 -0
  116. package/.agy/skills/quality-sync/SKILL.md +2 -2
  117. package/.agy/skills/quality-test/SKILL.md +9 -1
  118. package/.agy/skills/security-audit/SKILL.md +14 -4
  119. package/.agy/skills/spec-add/SKILL.md +5 -2
  120. package/.agy/skills/spec-load/SKILL.md +1 -1
  121. package/.agy/skills/spec-remove/SKILL.md +1 -1
  122. package/.agy/skills/spec-setup/SKILL.md +3 -0
  123. package/.claude/commands/domain-add.md +3 -0
  124. package/.claude/commands/learn-decompose.md +7 -4
  125. package/.claude/commands/learn-follow.md +4 -2
  126. package/.claude/commands/learn-investigate.md +8 -6
  127. package/.claude/commands/learn-second-opinion.md +6 -3
  128. package/.claude/commands/maestro-amend.md +1 -1
  129. package/.claude/commands/maestro-analyze.md +1 -1
  130. package/.claude/commands/maestro-blueprint.md +1 -1
  131. package/.claude/commands/maestro-brainstorm.md +4 -1
  132. package/.claude/commands/maestro-collab.md +6 -2
  133. package/.claude/commands/maestro-companion.md +4 -1
  134. package/.claude/commands/maestro-composer.md +4 -2
  135. package/.claude/commands/maestro-execute.md +26 -8
  136. package/.claude/commands/maestro-fork.md +4 -3
  137. package/.claude/commands/maestro-grill.md +1 -1
  138. package/.claude/commands/maestro-guard.md +2 -2
  139. package/.claude/commands/maestro-impeccable.md +2 -1
  140. package/.claude/commands/maestro-init.md +1 -1
  141. package/.claude/commands/maestro-merge.md +12 -1
  142. package/.claude/commands/maestro-milestone-audit.md +1 -0
  143. package/.claude/commands/maestro-milestone-complete.md +8 -3
  144. package/.claude/commands/maestro-milestone-release.md +8 -4
  145. package/.claude/commands/maestro-overlay.md +9 -0
  146. package/.claude/commands/maestro-plan.md +1 -0
  147. package/.claude/commands/maestro-player.md +2 -2
  148. package/.claude/commands/maestro-quick.md +5 -3
  149. package/.claude/commands/maestro-ralph-cli-execute.md +237 -0
  150. package/.claude/commands/maestro-ralph-cli.md +663 -0
  151. package/.claude/commands/maestro-ralph-execute.md +127 -11
  152. package/.claude/commands/maestro-ralph.md +8 -8
  153. package/.claude/commands/maestro-roadmap.md +1 -1
  154. package/.claude/commands/maestro-swarm-workflow.md +16 -14
  155. package/.claude/commands/maestro-tools-register.md +16 -1
  156. package/.claude/commands/maestro-ui-codify.md +11 -1
  157. package/.claude/commands/maestro-universal-workflow.md +28 -5
  158. package/.claude/commands/maestro-update.md +10 -7
  159. package/.claude/commands/maestro.md +1 -1
  160. package/.claude/commands/manage-codebase-rebuild.md +5 -1
  161. package/.claude/commands/manage-drift-realign.md +6 -2
  162. package/.claude/commands/manage-harvest.md +4 -1
  163. package/.claude/commands/manage-issue-discover.md +1 -0
  164. package/.claude/commands/manage-kg-extractors.md +5 -1
  165. package/.claude/commands/manage-knowhow-capture.md +1 -0
  166. package/.claude/commands/manage-knowledge-audit.md +3 -0
  167. package/.claude/commands/manage-wiki.md +1 -0
  168. package/.claude/commands/odyssey-debug.md +2 -1
  169. package/.claude/commands/odyssey-improve.md +2 -2
  170. package/.claude/commands/odyssey-planex.md +8 -7
  171. package/.claude/commands/odyssey-review-test-fix.md +4 -1
  172. package/.claude/commands/odyssey-ui.md +4 -4
  173. package/.claude/commands/quality-auto-test.md +11 -1
  174. package/.claude/commands/quality-debug.md +16 -2
  175. package/.claude/commands/quality-retrospective.md +9 -1
  176. package/.claude/commands/quality-review.md +8 -0
  177. package/.claude/commands/quality-sync.md +2 -2
  178. package/.claude/commands/quality-test.md +9 -1
  179. package/.claude/commands/security-audit.md +14 -4
  180. package/.claude/commands/spec-add.md +5 -2
  181. package/.claude/commands/spec-load.md +1 -1
  182. package/.claude/commands/spec-remove.md +1 -1
  183. package/.claude/commands/spec-setup.md +3 -0
  184. package/.codex/skills/codify-to-knowhow/SKILL.md +27 -15
  185. package/.codex/skills/domain-add/SKILL.md +5 -3
  186. package/.codex/skills/learn-decompose/SKILL.md +22 -4
  187. package/.codex/skills/learn-follow/SKILL.md +12 -6
  188. package/.codex/skills/learn-investigate/SKILL.md +11 -6
  189. package/.codex/skills/learn-retro/SKILL.md +12 -6
  190. package/.codex/skills/learn-second-opinion/SKILL.md +11 -3
  191. package/.codex/skills/maestro/SKILL.md +19 -13
  192. package/.codex/skills/maestro-amend/SKILL.md +10 -2
  193. package/.codex/skills/maestro-analyze/SKILL.md +7 -1
  194. package/.codex/skills/maestro-blueprint/SKILL.md +1 -1
  195. package/.codex/skills/maestro-brainstorm/SKILL.md +11 -8
  196. package/.codex/skills/maestro-collab/SKILL.md +5 -5
  197. package/.codex/skills/maestro-companion/SKILL.md +4 -1
  198. package/.codex/skills/maestro-composer/SKILL.md +6 -3
  199. package/.codex/skills/maestro-execute/SKILL.md +11 -8
  200. package/.codex/skills/maestro-fork/SKILL.md +4 -3
  201. package/.codex/skills/maestro-grill/SKILL.md +1 -1
  202. package/.codex/skills/maestro-guard/SKILL.md +1 -1
  203. package/.codex/skills/maestro-impeccable/SKILL.md +5 -5
  204. package/.codex/skills/maestro-init/SKILL.md +3 -2
  205. package/.codex/skills/maestro-milestone-audit/SKILL.md +21 -9
  206. package/.codex/skills/maestro-milestone-complete/SKILL.md +3 -3
  207. package/.codex/skills/maestro-milestone-release/SKILL.md +18 -1
  208. package/.codex/skills/maestro-next/SKILL.md +11 -10
  209. package/.codex/skills/maestro-overlay/SKILL.md +16 -6
  210. package/.codex/skills/maestro-player/SKILL.md +11 -5
  211. package/.codex/skills/maestro-quick/SKILL.md +2 -2
  212. package/.codex/skills/maestro-ralph/SKILL.md +44 -31
  213. package/.codex/skills/maestro-ralph-cli/SKILL.md +394 -0
  214. package/.codex/skills/maestro-ralph-cli-execute/SKILL.md +146 -0
  215. package/.codex/skills/maestro-ralph-execute/SKILL.md +105 -24
  216. package/.codex/skills/maestro-roadmap/SKILL.md +8 -2
  217. package/.codex/skills/maestro-tools-execute/SKILL.md +8 -4
  218. package/.codex/skills/maestro-tools-register/SKILL.md +10 -6
  219. package/.codex/skills/maestro-ui-codify/SKILL.md +14 -9
  220. package/.codex/skills/manage-codebase-rebuild/SKILL.md +36 -14
  221. package/.codex/skills/manage-codebase-refresh/SKILL.md +1 -1
  222. package/.codex/skills/manage-drift-realign/SKILL.md +15 -12
  223. package/.codex/skills/manage-harvest/SKILL.md +1 -1
  224. package/.codex/skills/manage-issue/SKILL.md +8 -4
  225. package/.codex/skills/manage-issue-discover/SKILL.md +15 -14
  226. package/.codex/skills/manage-knowhow/SKILL.md +3 -2
  227. package/.codex/skills/manage-knowhow-capture/SKILL.md +4 -3
  228. package/.codex/skills/manage-learn/SKILL.md +2 -2
  229. package/.codex/skills/odyssey-debug/SKILL.md +12 -7
  230. package/.codex/skills/odyssey-improve/SKILL.md +11 -6
  231. package/.codex/skills/odyssey-planex/SKILL.md +14 -8
  232. package/.codex/skills/odyssey-review-test-fix/SKILL.md +12 -7
  233. package/.codex/skills/odyssey-ui/SKILL.md +10 -5
  234. package/.codex/skills/quality-auto-test/SKILL.md +13 -5
  235. package/.codex/skills/quality-debug/SKILL.md +18 -11
  236. package/.codex/skills/quality-refactor/SKILL.md +4 -4
  237. package/.codex/skills/quality-retrospective/SKILL.md +5 -6
  238. package/.codex/skills/quality-review/SKILL.md +18 -11
  239. package/.codex/skills/quality-sync/SKILL.md +2 -2
  240. package/.codex/skills/quality-test/SKILL.md +7 -5
  241. package/.codex/skills/security-audit/SKILL.md +7 -5
  242. package/.codex/skills/spec-add/SKILL.md +9 -7
  243. package/.codex/skills/spec-load/SKILL.md +3 -2
  244. package/.codex/skills/spec-map/SKILL.md +10 -1
  245. package/.codex/skills/spec-remove/SKILL.md +3 -2
  246. package/.codex/skills/team-coordinate/SKILL.md +10 -4
  247. package/.codex/skills/team-lifecycle-v4/SKILL.md +33 -26
  248. package/.codex/skills/team-quality-assurance/SKILL.md +43 -0
  249. package/.codex/skills/team-review/SKILL.md +50 -6
  250. package/.codex/skills/team-tech-debt/SKILL.md +53 -7
  251. package/.codex/skills/team-testing/SKILL.md +50 -2
  252. package/.codex/skills/wiki-connect/SKILL.md +3 -1
  253. package/.codex/skills/wiki-digest/SKILL.md +6 -4
  254. package/dashboard/dist-server/dashboard/src/server/wiki/embedding.d.ts +16 -0
  255. package/dashboard/dist-server/dashboard/src/server/wiki/embedding.js +419 -44
  256. package/dashboard/dist-server/dashboard/src/server/wiki/embedding.js.map +1 -1
  257. package/dashboard/dist-server/dashboard/src/server/wiki/wiki-indexer.js +43 -5
  258. package/dashboard/dist-server/dashboard/src/server/wiki/wiki-indexer.js.map +1 -1
  259. package/dashboard/dist-server/src/graph/kg/db/types.d.ts +3 -0
  260. package/dashboard/dist-server/src/graph/kg/embedding/code-embedding.d.ts +46 -0
  261. package/dashboard/dist-server/src/graph/kg/embedding/code-embedding.js +329 -0
  262. package/dashboard/dist-server/src/graph/kg/embedding/code-embedding.js.map +1 -0
  263. package/dashboard/dist-server/src/graph/kg/embedding/index.d.ts +2 -0
  264. package/dashboard/dist-server/src/graph/kg/embedding/index.js +3 -0
  265. package/dashboard/dist-server/src/graph/kg/embedding/index.js.map +1 -0
  266. package/dashboard/dist-server/src/graph/kg/engine.d.ts +19 -1
  267. package/dashboard/dist-server/src/graph/kg/engine.js +71 -1
  268. package/dashboard/dist-server/src/graph/kg/engine.js.map +1 -1
  269. package/dashboard/dist-server/src/graph/kg/query/scoring.d.ts +5 -0
  270. package/dashboard/dist-server/src/graph/kg/query/scoring.js +85 -1
  271. package/dashboard/dist-server/src/graph/kg/query/scoring.js.map +1 -1
  272. package/dashboard/dist-server/src/graph/kg/query/search.d.ts +7 -0
  273. package/dashboard/dist-server/src/graph/kg/query/search.js +117 -1
  274. package/dashboard/dist-server/src/graph/kg/query/search.js.map +1 -1
  275. package/dashboard/dist-server/src/graph/kg/surface/mcp-tools.js +49 -0
  276. package/dashboard/dist-server/src/graph/kg/surface/mcp-tools.js.map +1 -1
  277. package/dashboard/dist-server/src/hooks/kg-sync-hook.js +3 -0
  278. package/dashboard/dist-server/src/hooks/kg-sync-hook.js.map +1 -1
  279. package/dist/src/core/plugin-bridge.d.ts.map +1 -1
  280. package/dist/src/core/plugin-bridge.js +17 -0
  281. package/dist/src/core/plugin-bridge.js.map +1 -1
  282. package/dist/src/graph/kg/db/types.d.ts +3 -0
  283. package/dist/src/graph/kg/db/types.d.ts.map +1 -1
  284. package/dist/src/graph/kg/embedding/code-embedding.d.ts +47 -0
  285. package/dist/src/graph/kg/embedding/code-embedding.d.ts.map +1 -0
  286. package/dist/src/graph/kg/embedding/code-embedding.js +329 -0
  287. package/dist/src/graph/kg/embedding/code-embedding.js.map +1 -0
  288. package/dist/src/graph/kg/embedding/index.d.ts +3 -0
  289. package/dist/src/graph/kg/embedding/index.d.ts.map +1 -0
  290. package/dist/src/graph/kg/embedding/index.js +3 -0
  291. package/dist/src/graph/kg/embedding/index.js.map +1 -0
  292. package/dist/src/graph/kg/engine.d.ts +19 -1
  293. package/dist/src/graph/kg/engine.d.ts.map +1 -1
  294. package/dist/src/graph/kg/engine.js +71 -1
  295. package/dist/src/graph/kg/engine.js.map +1 -1
  296. package/dist/src/graph/kg/query/scoring.d.ts +5 -0
  297. package/dist/src/graph/kg/query/scoring.d.ts.map +1 -1
  298. package/dist/src/graph/kg/query/scoring.js +85 -1
  299. package/dist/src/graph/kg/query/scoring.js.map +1 -1
  300. package/dist/src/graph/kg/query/search.d.ts +7 -0
  301. package/dist/src/graph/kg/query/search.d.ts.map +1 -1
  302. package/dist/src/graph/kg/query/search.js +117 -1
  303. package/dist/src/graph/kg/query/search.js.map +1 -1
  304. package/dist/src/graph/kg/surface/mcp-tools.d.ts.map +1 -1
  305. package/dist/src/graph/kg/surface/mcp-tools.js +49 -0
  306. package/dist/src/graph/kg/surface/mcp-tools.js.map +1 -1
  307. package/dist/src/hooks/kg-sync-hook.d.ts.map +1 -1
  308. package/dist/src/hooks/kg-sync-hook.js +3 -0
  309. package/dist/src/hooks/kg-sync-hook.js.map +1 -1
  310. package/dist/src/tools/code-semantic-search.d.ts +10 -0
  311. package/dist/src/tools/code-semantic-search.d.ts.map +1 -0
  312. package/dist/src/tools/code-semantic-search.js +81 -0
  313. package/dist/src/tools/code-semantic-search.js.map +1 -0
  314. package/dist/src/tools/index.d.ts.map +1 -1
  315. package/dist/src/tools/index.js +4 -0
  316. package/dist/src/tools/index.js.map +1 -1
  317. package/dist/src/tools/wiki-search.d.ts +13 -0
  318. package/dist/src/tools/wiki-search.d.ts.map +1 -0
  319. package/dist/src/tools/wiki-search.js +114 -0
  320. package/dist/src/tools/wiki-search.js.map +1 -0
  321. package/dist/src/utils/update-notices.js +12 -0
  322. package/dist/src/utils/update-notices.js.map +1 -1
  323. package/package.json +4 -1
@@ -44,7 +44,7 @@ Remaining → intent (amend_mode 时为 change_request)
44
44
  <invariants>
45
45
  1. **Ralph never executes steps** — only creates sessions and evaluates decisions
46
46
  2. **Handoff via invoke_skill("maestro-ralph-execute")** — 创建 session 后始终自动 handoff;decision 评估后始终 handoff
47
- 3. **Decision delegates read-only** — `maestro delegate --role analyze --mode analysis`
47
+ 3. **Decision delegates read-only** — `maestro delegate --to <tool> --mode analysis`
48
48
  4. **执行 step 通过 `maestro ralph next` CLI 加载并内联执行**(详见 invariant 8)
49
49
  5. **status.json 是唯一真源** — 不生成 markdown 清单或侧文件
50
50
  6. **每个 step 必须 `completion_confirmed: true`** — 由 `maestro ralph complete N --status DONE`(或 DONE_WITH_CONCERNS)写入;CLI 是唯一合法写入路径
@@ -474,11 +474,11 @@ Generate steps from `session.lifecycle_position` to `milestone-complete`(`sess
474
474
  ```
475
475
  maestro delegate "PURPOSE: 评估 {decision} 质量门结果
476
476
  TASK: 读取结果 | 分析状态 | 评估严重性 | 给出建议
477
- EXPECTED: ---VERDICT--- STATUS/REASON/GAP_SUMMARY/CONFIDENCE(high|medium|low)/CONFIDENCE_SCORE(0-100)/WEAKEST_DIMENSION ---END---
477
+ EXPECTED: ---VERDICT--- STATUS(PASS|FAIL|PARTIAL|BLOCKED)/REASON/GAP_SUMMARY/CONFIDENCE(high|medium|low)/CONFIDENCE_SCORE(0-100)/WEAKEST_DIMENSION ---END---
478
478
  CONSTRAINTS: 只评估 | 置信度<60% 倾向 fix | retry {n}/{max} 达上限必须 escalate"
479
- --role analyze --mode analysis
479
+ --to {session.cli_tool} --mode analysis
480
480
  ```
481
- 6. On callback: parse verdict; if parse fails → fallback STATUS="fix", BUT MUST set `parse_failed: true` and `confidence_score: 0` in decision log (invariant 13). Subsequent steps inherit LOW CONFIDENCE flag.
481
+ 6. On callback: parse verdict block — STATUS must match strict enum `PASS|FAIL|PARTIAL|BLOCKED`; any other value → parse failure. If parse fails → fallback STATUS="fix", BUT MUST set `parse_failed: true` and `confidence_score: 0` in decision log (invariant 13). Subsequent steps inherit LOW CONFIDENCE flag.
482
482
  7. Confidence adjustment: <60 + proceed → fix; >95 + fix + retry>0 → suggest proceed
483
483
  8. **Decision log**: Append to `{session_dir}/decisions.ndjson`:
484
484
  ```json
@@ -547,7 +547,7 @@ Runs only when `task_decomposition` present.
547
547
  - 严格按 done_when 判定;evidence 缺失 → unmet
548
548
  - 不得建议超出 boundary_contract 的修改
549
549
  "
550
- --role analyze --mode analysis
550
+ --to {session.cli_tool} --mode analysis
551
551
  ```
552
552
  4. On callback: 对每个 met 子目标,set `task_decomposition[i].status="done"` + `completion_confirmed=true` + `completed_at=now`
553
553
  5. Append `{session_dir}/decisions.ndjson` with `"type": "goal-gate"`, `unmet_count`, `unmet_ids`
@@ -594,7 +594,7 @@ GUARD: `task_decomposition` 存在(周期触发,见 build rule 5.5)
594
594
  - aligned 阈值:≥80% 已完成产出直接服务 intent
595
595
  - 单个 step 触碰 out_of_scope → 直接判 drifted
596
596
  - goal_changelog 存在 → 以最新 after.goals 为基准"
597
- --role analyze --mode analysis
597
+ --to {session.cli_tool} --mode analysis
598
598
  ```
599
599
  3. On callback: parse verdict
600
600
  4. Append `{session_dir}/decisions.ndjson`:`{ "id": "DEC-{ts}", "type": "reground-gate", "source": "ralph", "node_id": "post-reground", "verdict": "{aligned|drifted}", "confidence_score": {N}, "drift_description": "...", "corrective_action": "..." }`
@@ -679,7 +679,7 @@ GUARD: `task_decomposition` 存在(周期触发,见 build rule 5.5)
679
679
  |-------|------|------|
680
680
  | 1. 快照 | 读 `task_decomposition` + `boundary_contract` + 已完成 steps 的 `completion_summary` | Display: 目标列表 + 进度 |
681
681
  | 2. 解析 | `change_request` 非空 → 直接用;为空 → ask_user(修改/新增/移除/调整边界) | `change_type` + `change_request` |
682
- | 3. Mini Grill | `maestro delegate --role analyze --mode analysis`:评估影响 | RISK_LEVEL + AFFECTED_GOALS + INVALIDATED_STEPS + NEW_GAPS |
682
+ | 3. Mini Grill | `maestro delegate --to {session.cli_tool} --mode analysis`:评估影响 | RISK_LEVEL + AFFECTED_GOALS + INVALIDATED_STEPS + NEW_GAPS |
683
683
  | 4. 确认 | ask_user:应用并继续 / 仅改目标 / 取消 | 用户选择 |
684
684
  | 5. 应用 | 归档旧目标(`superseded`)→ 写入新目标(`origin: CHG-xxx`)→ 重建链路 → write status.json | handoff ralph-execute |
685
685
 
@@ -892,7 +892,7 @@ decision:post-goal-audit {retry+1}
892
892
  - [ ] planning_mode 显式决定;unified=无 `{phase}`, independent=带 `{phase}`
893
893
  - [ ] specs 预检:lifecycle_position 在 init 之后 + `.workflow/specs/` 不存在 → 链路最前面插入 `spec-setup`
894
894
  - [ ] Chain 必须以 `milestone-complete` 结尾
895
- - [ ] Decision nodes 由 maestro delegate --role analyze 评估
895
+ - [ ] Decision nodes 由 maestro delegate --to {session.cli_tool} --mode analysis 评估
896
896
  - [ ] Ralph 不执行 step,只 evaluate;invoke_skill("maestro-ralph-execute") handoff
897
897
  - [ ] Phase-level deferred chaining:plan/execute step 的 `--from`/`--dir` 注入由 A_RESOLVE_ARGS(ralph-execute)运行时完成;build 阶段标记意图,不预知 artifact ID
898
898
  - [ ] Phase-level plan step 运行时获得 `--from analyze:{phase_analyze_id}`(由 ralph-execute 从 state.json 查找注入)