maestro-flow 0.3.8 → 0.3.10

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 (312) hide show
  1. package/.claude/commands/learn-decompose.md +3 -3
  2. package/.claude/commands/learn-follow.md +5 -5
  3. package/.claude/commands/learn-investigate.md +3 -3
  4. package/.claude/commands/learn-retro.md +6 -6
  5. package/.claude/commands/learn-second-opinion.md +3 -3
  6. package/.claude/commands/maestro-analyze.md +166 -99
  7. package/.claude/commands/maestro-brainstorm.md +2 -2
  8. package/.claude/commands/maestro-execute.md +151 -97
  9. package/.claude/commands/maestro-fork.md +111 -0
  10. package/.claude/commands/maestro-init.md +6 -6
  11. package/.claude/commands/maestro-merge.md +77 -0
  12. package/.claude/commands/maestro-milestone-audit.md +72 -60
  13. package/.claude/commands/maestro-milestone-complete.md +67 -59
  14. package/.claude/commands/maestro-milestone-release.md +6 -6
  15. package/.claude/commands/maestro-plan.md +167 -130
  16. package/.claude/commands/maestro-quick.md +4 -4
  17. package/.claude/commands/maestro-roadmap.md +5 -5
  18. package/.claude/commands/maestro-spec-generate.md +5 -5
  19. package/.claude/commands/maestro-ui-design.md +3 -3
  20. package/.claude/commands/maestro-verify.md +106 -87
  21. package/.claude/commands/maestro.md +10 -4
  22. package/.claude/commands/manage-codebase-rebuild.md +4 -4
  23. package/.claude/commands/manage-codebase-refresh.md +1 -1
  24. package/.claude/commands/manage-harvest.md +6 -6
  25. package/.claude/commands/manage-issue-discover.md +2 -2
  26. package/.claude/commands/manage-issue.md +7 -7
  27. package/.claude/commands/manage-learn.md +2 -2
  28. package/.claude/commands/manage-memory-capture.md +4 -4
  29. package/.claude/commands/manage-memory.md +2 -2
  30. package/.claude/commands/manage-status.md +24 -24
  31. package/.claude/commands/quality-business-test.md +5 -5
  32. package/.claude/commands/quality-debug.md +4 -4
  33. package/.claude/commands/quality-integration-test.md +4 -4
  34. package/.claude/commands/quality-refactor.md +3 -3
  35. package/.claude/commands/quality-retrospective.md +2 -2
  36. package/.claude/commands/quality-review.md +4 -4
  37. package/.claude/commands/quality-sync.md +3 -3
  38. package/.claude/commands/quality-test-gen.md +4 -4
  39. package/.claude/commands/quality-test.md +9 -9
  40. package/.claude/commands/spec-add.md +2 -2
  41. package/.claude/commands/spec-load.md +1 -1
  42. package/.claude/commands/spec-setup.md +5 -5
  43. package/.claude/commands/wiki-connect.md +3 -3
  44. package/.claude/commands/wiki-digest.md +4 -4
  45. package/.codex/skills/maestro/SKILL.md +463 -0
  46. package/.codex/skills/maestro-analyze/SKILL.md +79 -20
  47. package/.codex/skills/maestro-chain/SKILL.md +248 -0
  48. package/.codex/skills/maestro-coordinate/SKILL.md +279 -224
  49. package/.codex/skills/maestro-execute/SKILL.md +35 -26
  50. package/.codex/skills/maestro-milestone-audit/SKILL.md +103 -209
  51. package/.codex/skills/maestro-milestone-complete/SKILL.md +149 -158
  52. package/.codex/skills/maestro-plan/SKILL.md +56 -18
  53. package/.codex/skills/maestro-roadmap/SKILL.md +3 -2
  54. package/.codex/skills/team-coordinate/roles/coordinator/commands/monitor.md +2 -2
  55. package/.codex/skills/team-executor/roles/executor/commands/monitor.md +1 -1
  56. package/.codex/skills/team-lifecycle-v4/roles/coordinator/commands/monitor.md +2 -2
  57. package/.codex/skills/team-lifecycle-v4/specs/knowledge-transfer.md +2 -2
  58. package/.codex/skills/team-quality-assurance/roles/coordinator/commands/monitor.md +1 -1
  59. package/.codex/skills/team-review/roles/coordinator/commands/monitor.md +1 -1
  60. package/.codex/skills/team-tech-debt/roles/coordinator/commands/monitor.md +1 -1
  61. package/.codex/skills/team-testing/roles/coordinator/commands/monitor.md +1 -1
  62. package/README.md +26 -21
  63. package/README.zh-CN.md +23 -19
  64. package/bin/maestro-mcp.js +1 -1
  65. package/chains/_intent-map.json +21 -9
  66. package/chains/_router.json +30 -77
  67. package/chains/brainstorm-driven.json +17 -6
  68. package/chains/full-lifecycle.json +22 -23
  69. package/chains/issue-lifecycle.json +13 -13
  70. package/chains/milestone-close.json +20 -7
  71. package/chains/milestone-fork-merge.json +50 -0
  72. package/chains/roadmap-driven.json +17 -6
  73. package/chains/singles/issue-analyze.json +3 -3
  74. package/chains/singles/issue-execute.json +3 -3
  75. package/chains/singles/issue-plan.json +3 -3
  76. package/chains/spec-driven.json +17 -6
  77. package/dashboard/dist/assets/{ArtifactsPage-BmPOu8sO.js → ArtifactsPage-DZNCi6tn.js} +12 -7
  78. package/dashboard/dist/assets/ChatInput-Bvr-FeEq.js +49 -0
  79. package/dashboard/dist/assets/ChatPage-D9zTkJZo.js +22 -0
  80. package/dashboard/dist/assets/CollabPage-B4NAHXS2.js +1 -0
  81. package/dashboard/dist/assets/ExecutionPanel-CFt4LJyq.js +1 -0
  82. package/dashboard/dist/assets/KanbanPage-C8USth6H.js +21 -0
  83. package/dashboard/dist/assets/{MarkdownRenderer-BjZ43aSa.js → MarkdownRenderer-X4af_WNb.js} +1 -1
  84. package/dashboard/dist/assets/McpPage-BKfCVIyU.js +21 -0
  85. package/dashboard/dist/assets/OutputPanel-BlBQFJSW.js +1 -0
  86. package/dashboard/dist/assets/ProblemsPanel-De3DLvoI.js +1 -0
  87. package/dashboard/dist/assets/{RequirementBoardPage-B7yRL0s_.js → RequirementBoardPage-Bf1trzqs.js} +2 -2
  88. package/dashboard/dist/assets/{RequirementPage-D8J_-b6O.js → RequirementPage-Bllxe2XI.js} +10 -5
  89. package/dashboard/dist/assets/{SpecsPage-6lO8v8_C.js → SpecsPage-9lwxKT27.js} +2 -2
  90. package/dashboard/dist/assets/{SupervisorPage-Ds5N378a.js → SupervisorPage-SusdfHFq.js} +1 -1
  91. package/dashboard/dist/assets/{TeamsPage-DrkKr17T.js → TeamsPage-DsuM6OwC.js} +2 -2
  92. package/dashboard/dist/assets/TreeBrowser-Q12qobZs.js +6 -0
  93. package/dashboard/dist/assets/WorkflowPage-D_Fzdy3_.js +6 -0
  94. package/dashboard/dist/assets/{arrow-left-CadP5YgU.js → arrow-left-Bqtb2hle.js} +1 -1
  95. package/dashboard/dist/assets/{check-5xufDzS8.js → check-u6fGOwQO.js} +1 -1
  96. package/dashboard/dist/assets/{chevron-right-CYbpR4ev.js → chevron-right-Csu22t58.js} +1 -1
  97. package/dashboard/dist/assets/{circle-Bm-5Q-Yh.js → circle-CMrkbRNg.js} +1 -1
  98. package/dashboard/dist/assets/{circle-alert-BqcYuT7x.js → circle-alert-c3tH1P4z.js} +1 -1
  99. package/dashboard/dist/assets/{circle-check-big-yyzAFysU.js → circle-check-big-TDSeWstm.js} +1 -1
  100. package/dashboard/dist/assets/{circle-check-DEVzW_lm.js → circle-check-gYxxSYuH.js} +1 -1
  101. package/dashboard/dist/assets/{code-BBdC8Wmw.js → code-CFN2uX9V.js} +1 -1
  102. package/dashboard/dist/assets/{columns-3-CQ9Trztr.js → columns-3-38xIDlzy.js} +1 -1
  103. package/dashboard/dist/assets/{download-DayuF-sn.js → download-DC7KkKyP.js} +1 -1
  104. package/dashboard/dist/assets/{folder-CqXeSKeC.js → folder-CWq_lAnf.js} +1 -1
  105. package/dashboard/dist/assets/index-DWG-WrzT.js +231 -0
  106. package/dashboard/dist/assets/{index-Dru5HYy0.js → index-Do71weNR.js} +1 -1
  107. package/dashboard/dist/assets/index-GUNJodSR.css +1 -0
  108. package/dashboard/dist/assets/{list-DBOD6IUt.js → list-CgIP_2A-.js} +1 -1
  109. package/dashboard/dist/assets/{minus-fQI1Syn2.js → minus-DYoN5UGk.js} +1 -1
  110. package/dashboard/dist/assets/{pen-line-Bkbbngl5.js → pen-line-Bh_WKYHm.js} +1 -1
  111. package/dashboard/dist/assets/{proxy-teW12DdZ.js → proxy-BKxDAKTj.js} +1 -1
  112. package/dashboard/dist/assets/{search-Bq3ygFUW.js → search-SieXnOgr.js} +1 -1
  113. package/dashboard/dist/assets/{shallow-22ZN8sFt.js → shallow-Bme1JY57.js} +1 -1
  114. package/dashboard/dist/assets/{table-BEYtdWc4.js → table-llyEtj-7.js} +1 -1
  115. package/dashboard/dist/assets/terminal-BB3Xfuv5.js +6 -0
  116. package/dashboard/dist/assets/{trash-2-DMqGBgcF.js → trash-2-C8f4vFFM.js} +1 -1
  117. package/dashboard/dist/assets/{zap-9DVkGVtt.js → zap-4uwlzVm0.js} +1 -1
  118. package/dashboard/dist/index.html +2 -2
  119. package/dashboard/dist-server/dashboard/src/server/agents/claude-code-adapter.js +8 -4
  120. package/dashboard/dist-server/dashboard/src/server/agents/claude-code-adapter.js.map +1 -1
  121. package/dashboard/dist-server/dashboard/src/server/agents/entry-normalizer.d.ts +1 -0
  122. package/dashboard/dist-server/dashboard/src/server/agents/entry-normalizer.js +2 -1
  123. package/dashboard/dist-server/dashboard/src/server/agents/entry-normalizer.js.map +1 -1
  124. package/dashboard/dist-server/dashboard/src/server/agents/stream-json-adapter.js +20 -10
  125. package/dashboard/dist-server/dashboard/src/server/agents/stream-json-adapter.js.map +1 -1
  126. package/dashboard/dist-server/dashboard/src/server/commander/commander-agent.js +2 -2
  127. package/dashboard/dist-server/dashboard/src/server/commander/commander-agent.js.map +1 -1
  128. package/dashboard/dist-server/dashboard/src/server/coordinator/chain-map.js +3 -3
  129. package/dashboard/dist-server/dashboard/src/server/coordinator/chain-map.js.map +1 -1
  130. package/dashboard/dist-server/dashboard/src/server/routes/git.d.ts +2 -0
  131. package/dashboard/dist-server/dashboard/src/server/routes/git.js +79 -0
  132. package/dashboard/dist-server/dashboard/src/server/routes/git.js.map +1 -0
  133. package/dashboard/dist-server/dashboard/src/server/routes/index.js +3 -0
  134. package/dashboard/dist-server/dashboard/src/server/routes/index.js.map +1 -1
  135. package/dashboard/dist-server/dashboard/src/server/routes/issues.js +34 -0
  136. package/dashboard/dist-server/dashboard/src/server/routes/issues.js.map +1 -1
  137. package/dashboard/dist-server/dashboard/src/server/routes/workspace.js +43 -0
  138. package/dashboard/dist-server/dashboard/src/server/routes/workspace.js.map +1 -1
  139. package/dashboard/dist-server/dashboard/src/server/state/state-manager.js +43 -3
  140. package/dashboard/dist-server/dashboard/src/server/state/state-manager.js.map +1 -1
  141. package/dashboard/dist-server/dashboard/src/server/ws/handlers/execution-handler.js +2 -3
  142. package/dashboard/dist-server/dashboard/src/server/ws/handlers/execution-handler.js.map +1 -1
  143. package/dashboard/dist-server/dashboard/src/shared/issue-types.d.ts +5 -0
  144. package/dashboard/dist-server/dashboard/src/shared/issue-types.js.map +1 -1
  145. package/dashboard/dist-server/dashboard/src/shared/normalize-task.d.ts +2 -0
  146. package/dashboard/dist-server/dashboard/src/shared/normalize-task.js +75 -0
  147. package/dashboard/dist-server/dashboard/src/shared/normalize-task.js.map +1 -0
  148. package/dashboard/dist-server/src/hooks/constants.d.ts +90 -12
  149. package/dashboard/dist-server/src/hooks/constants.js +149 -16
  150. package/dashboard/dist-server/src/hooks/constants.js.map +1 -1
  151. package/dashboard/dist-server/src/types/index.d.ts +5 -0
  152. package/dashboard/package.json +59 -59
  153. package/dist/src/cli.js +3 -1
  154. package/dist/src/cli.js.map +1 -1
  155. package/dist/src/commands/collab.d.ts +14 -0
  156. package/dist/src/commands/collab.d.ts.map +1 -0
  157. package/dist/src/commands/{team.js → collab.js} +395 -96
  158. package/dist/src/commands/collab.js.map +1 -0
  159. package/dist/src/commands/hooks.d.ts +5 -1
  160. package/dist/src/commands/hooks.d.ts.map +1 -1
  161. package/dist/src/commands/hooks.js +50 -10
  162. package/dist/src/commands/hooks.js.map +1 -1
  163. package/dist/src/commands/install-ui/InstallConfirm.d.ts +3 -1
  164. package/dist/src/commands/install-ui/InstallConfirm.d.ts.map +1 -1
  165. package/dist/src/commands/install-ui/InstallConfirm.js +3 -1
  166. package/dist/src/commands/install-ui/InstallConfirm.js.map +1 -1
  167. package/dist/src/commands/install-ui/InstallExecution.d.ts.map +1 -1
  168. package/dist/src/commands/install-ui/InstallExecution.js +5 -1
  169. package/dist/src/commands/install-ui/InstallExecution.js.map +1 -1
  170. package/dist/src/commands/install-ui/InstallFlow.d.ts.map +1 -1
  171. package/dist/src/commands/install-ui/InstallFlow.js +7 -3
  172. package/dist/src/commands/install-ui/InstallFlow.js.map +1 -1
  173. package/dist/src/commands/install-ui/StatuslineConfig.d.ts +6 -1
  174. package/dist/src/commands/install-ui/StatuslineConfig.d.ts.map +1 -1
  175. package/dist/src/commands/install-ui/StatuslineConfig.js +27 -5
  176. package/dist/src/commands/install-ui/StatuslineConfig.js.map +1 -1
  177. package/dist/src/commands/msg.d.ts.map +1 -1
  178. package/dist/src/commands/msg.js +4 -3
  179. package/dist/src/commands/msg.js.map +1 -1
  180. package/dist/src/hooks/__tests__/statusline-visual-test.d.ts +7 -0
  181. package/dist/src/hooks/__tests__/statusline-visual-test.d.ts.map +1 -0
  182. package/dist/src/hooks/__tests__/statusline-visual-test.js +236 -0
  183. package/dist/src/hooks/__tests__/statusline-visual-test.js.map +1 -0
  184. package/dist/src/hooks/constants.d.ts +90 -12
  185. package/dist/src/hooks/constants.d.ts.map +1 -1
  186. package/dist/src/hooks/constants.js +149 -16
  187. package/dist/src/hooks/constants.js.map +1 -1
  188. package/dist/src/hooks/guards/index.d.ts +1 -0
  189. package/dist/src/hooks/guards/index.d.ts.map +1 -1
  190. package/dist/src/hooks/guards/index.js +1 -0
  191. package/dist/src/hooks/guards/index.js.map +1 -1
  192. package/dist/src/hooks/guards/preflight-guard.d.ts +29 -0
  193. package/dist/src/hooks/guards/preflight-guard.d.ts.map +1 -0
  194. package/dist/src/hooks/guards/preflight-guard.js +95 -0
  195. package/dist/src/hooks/guards/preflight-guard.js.map +1 -0
  196. package/dist/src/hooks/index.d.ts +1 -0
  197. package/dist/src/hooks/index.d.ts.map +1 -1
  198. package/dist/src/hooks/index.js +1 -0
  199. package/dist/src/hooks/index.js.map +1 -1
  200. package/dist/src/{commands/team.d.ts → hooks/preflight-core.d.ts} +12 -22
  201. package/dist/src/hooks/preflight-core.d.ts.map +1 -0
  202. package/dist/src/hooks/preflight-core.js +86 -0
  203. package/dist/src/hooks/preflight-core.js.map +1 -0
  204. package/dist/src/hooks/statusline.d.ts +8 -17
  205. package/dist/src/hooks/statusline.d.ts.map +1 -1
  206. package/dist/src/hooks/statusline.js +269 -112
  207. package/dist/src/hooks/statusline.js.map +1 -1
  208. package/dist/src/hooks/team-monitor.d.ts.map +1 -1
  209. package/dist/src/hooks/team-monitor.js +16 -0
  210. package/dist/src/hooks/team-monitor.js.map +1 -1
  211. package/dist/src/i18n/locales/en.d.ts.map +1 -1
  212. package/dist/src/i18n/locales/en.js +5 -0
  213. package/dist/src/i18n/locales/en.js.map +1 -1
  214. package/dist/src/i18n/locales/zh.d.ts.map +1 -1
  215. package/dist/src/i18n/locales/zh.js +5 -0
  216. package/dist/src/i18n/locales/zh.js.map +1 -1
  217. package/dist/src/i18n/types.d.ts +5 -0
  218. package/dist/src/i18n/types.d.ts.map +1 -1
  219. package/dist/src/tools/collab-adapter.d.ts +102 -0
  220. package/dist/src/tools/collab-adapter.d.ts.map +1 -0
  221. package/dist/src/tools/collab-adapter.js +458 -0
  222. package/dist/src/tools/collab-adapter.js.map +1 -0
  223. package/dist/src/tools/merge-validator.d.ts +24 -0
  224. package/dist/src/tools/merge-validator.d.ts.map +1 -0
  225. package/dist/src/tools/merge-validator.js +220 -0
  226. package/dist/src/tools/merge-validator.js.map +1 -0
  227. package/dist/src/tools/namespace-guard.d.ts +2 -0
  228. package/dist/src/tools/namespace-guard.d.ts.map +1 -1
  229. package/dist/src/tools/namespace-guard.js +12 -0
  230. package/dist/src/tools/namespace-guard.js.map +1 -1
  231. package/dist/src/tools/phase-gate-evaluator.d.ts +45 -0
  232. package/dist/src/tools/phase-gate-evaluator.d.ts.map +1 -0
  233. package/dist/src/tools/phase-gate-evaluator.js +42 -0
  234. package/dist/src/tools/phase-gate-evaluator.js.map +1 -0
  235. package/dist/src/tools/team-members.d.ts +18 -0
  236. package/dist/src/tools/team-members.d.ts.map +1 -1
  237. package/dist/src/tools/team-members.js +50 -0
  238. package/dist/src/tools/team-members.js.map +1 -1
  239. package/dist/src/tools/team-tasks.d.ts +120 -0
  240. package/dist/src/tools/team-tasks.d.ts.map +1 -0
  241. package/dist/src/tools/team-tasks.js +365 -0
  242. package/dist/src/tools/team-tasks.js.map +1 -0
  243. package/dist/src/tools/transition-recorder.d.ts +3 -0
  244. package/dist/src/tools/transition-recorder.d.ts.map +1 -1
  245. package/dist/src/tools/transition-recorder.js +52 -1
  246. package/dist/src/tools/transition-recorder.js.map +1 -1
  247. package/dist/src/types/index.d.ts +5 -0
  248. package/dist/src/types/index.d.ts.map +1 -1
  249. package/dist/src/utils/get-version.d.ts.map +1 -1
  250. package/dist/src/utils/get-version.js +15 -4
  251. package/dist/src/utils/get-version.js.map +1 -1
  252. package/package.json +1 -1
  253. package/templates/cli/prompts/workflow-skill-conflict-patterns.txt +3 -3
  254. package/templates/cli/prompts/workflow-skill-lessons-learned.txt +3 -3
  255. package/templates/config.json +7 -0
  256. package/templates/search-tools.md +1 -1
  257. package/templates/worktree-scope.json +10 -0
  258. package/templates/worktrees.json +27 -0
  259. package/workflows/analyze.md +86 -36
  260. package/workflows/brainstorm.md +17 -37
  261. package/workflows/cli-tools-usage.md +44 -27
  262. package/workflows/delegate-usage.md +3 -3
  263. package/workflows/execute.md +94 -28
  264. package/workflows/fork.md +309 -0
  265. package/workflows/init.md +10 -1
  266. package/workflows/issue-analyze.md +6 -2
  267. package/workflows/issue-discover.md +4 -4
  268. package/workflows/issue-execute.md +6 -3
  269. package/workflows/issue-plan.md +5 -2
  270. package/workflows/issue.md +66 -7
  271. package/workflows/maestro-coordinate.codex.md +281 -470
  272. package/workflows/maestro-coordinate.md +37 -30
  273. package/workflows/maestro-link-coordinate.md +2 -2
  274. package/workflows/maestro.codex.md +710 -0
  275. package/workflows/maestro.md +62 -46
  276. package/workflows/merge.md +285 -0
  277. package/workflows/milestone-audit.md +89 -70
  278. package/workflows/milestone-complete.md +89 -156
  279. package/workflows/plan.md +122 -17
  280. package/workflows/retrospective.md +4 -4
  281. package/workflows/roadmap.md +11 -3
  282. package/workflows/spec-generate.md +9 -0
  283. package/workflows/status.md +76 -27
  284. package/workflows/ui-design.md +14 -12
  285. package/workflows/verify.md +44 -8
  286. package/.claude/commands/maestro-phase-add.md +0 -63
  287. package/.claude/commands/maestro-phase-transition.md +0 -75
  288. package/.claude/commands/manage-issue-analyze.md +0 -62
  289. package/.claude/commands/manage-issue-execute.md +0 -73
  290. package/.claude/commands/manage-issue-plan.md +0 -62
  291. package/.codex/skills/maestro-phase-add/SKILL.md +0 -154
  292. package/.codex/skills/maestro-phase-transition/SKILL.md +0 -173
  293. package/.codex/skills/manage-issue-analyze/SKILL.md +0 -207
  294. package/.codex/skills/manage-issue-execute/SKILL.md +0 -200
  295. package/.codex/skills/manage-issue-plan/SKILL.md +0 -186
  296. package/chains/singles/phase-add.json +0 -31
  297. package/chains/singles/phase-transition.json +0 -23
  298. package/dashboard/dist/assets/ChatInput-CL8YDfOU.js +0 -67
  299. package/dashboard/dist/assets/ChatPage-CT-ozBK2.js +0 -8
  300. package/dashboard/dist/assets/CollabPage-C0rWMden.js +0 -1
  301. package/dashboard/dist/assets/KanbanPage-C6WbAlwI.js +0 -16
  302. package/dashboard/dist/assets/McpPage-BPIXADQi.js +0 -16
  303. package/dashboard/dist/assets/TreeBrowser-g_QUKemL.js +0 -11
  304. package/dashboard/dist/assets/WorkflowPage-X8aNkDEr.js +0 -6
  305. package/dashboard/dist/assets/git-branch-SqFf4Ru5.js +0 -6
  306. package/dashboard/dist/assets/index-D2Mtyw7I.css +0 -1
  307. package/dashboard/dist/assets/index-nufWop4p.js +0 -231
  308. package/dashboard/dist/assets/wrench-B84-zdLI.js +0 -11
  309. package/dist/src/commands/team.d.ts.map +0 -1
  310. package/dist/src/commands/team.js.map +0 -1
  311. package/workflows/phase-add.md +0 -252
  312. package/workflows/phase-transition.md +0 -399
@@ -196,17 +196,18 @@ Bash(`mkdir -p ${sessionFolder}`)
196
196
 
197
197
  **Decomposition Rules**:
198
198
 
199
- 1. **Phase resolution**:
199
+ 1. **Plan resolution** (per scratch-milestone-architecture):
200
200
 
201
201
  | Input | Resolution |
202
202
  |-------|------------|
203
- | `--dir <path>` | Use path directly, set SCRATCH_MODE = true |
204
- | Number (e.g., `3`) | Find `.workflow/phases/{NN}-*/` matching phase number |
205
- | Slug (e.g., `auth`) | Find `.workflow/phases/*-{slug}/` |
203
+ | `--dir <path>` | Use path directly (scratch plan dir) |
204
+ | No args | Find all pending plans for current milestone from state.json.artifacts[] |
205
+ | Number (e.g., `3`) | Find pending plans for phase N from state.json.artifacts[] |
206
206
 
207
- 2. **Load plan**:
208
- - Read `{PHASE_DIR}/plan.json` for wave structure
209
- - Read `{PHASE_DIR}/index.json` for phase metadata
207
+ For multi-plan: execute sequentially. Each plan is a full CSV session.
208
+
209
+ 2. **Load plan** (per PLAN_DIR):
210
+ - Read `{PLAN_DIR}/plan.json` for wave structure
210
211
  - Extract `plan.waves` array with task assignments
211
212
 
212
213
  3. **Detect completed tasks (breakpoint resume)**:
@@ -307,24 +308,31 @@ If a task is blocked/failed and other tasks in later waves depend on it:
307
308
  - Update `status` to match CSV status
308
309
  - Write back to disk
309
310
 
310
- 4. **Update index.json**:
311
- ```json
312
- {
313
- "execution": {
314
- "tasks_completed": N,
315
- "tasks_total": M,
316
- "current_wave": W,
317
- "started_at": "<ISO>",
318
- "completed_at": "<ISO or null>",
319
- "commits": [{"hash": "...", "task": "...", "message": "..."}]
320
- },
321
- "status": "verifying" | "executing"
322
- }
311
+ 3b. **Issue status sync**: For each completed/failed task that has `issue_id`:
312
+ - Read issue from `.workflow/issues/issues.jsonl` by `issue_id`
313
+ - Collect all `task_refs[]` statuses for that issue:
314
+ - All task_refs completed → `issue.status = "resolved"`
315
+ - Any task_ref failed → `issue.status = "in_progress"`
316
+ - Append history entry: `{ action: "executed", at: <ISO>, by: "maestro-execute", summary: "TASK-{NNN} {status}" }`
317
+ - Write updated issue back to `issues.jsonl`
318
+
319
+ 4. **Register EXC artifact in state.json**:
320
+ ```
321
+ Read .workflow/state.json
322
+ plan_artifact = state.json.artifacts.find(a => a.type == "plan" && a.path == PLAN_DIR_relative)
323
+ next_id = max EXC-NNN + 1
324
+ Push artifact: { id: "EXC-{next_id}", type: "execute", milestone: plan_artifact.milestone,
325
+ phase: plan_artifact.phase, scope: plan_artifact.scope, path: plan_artifact.path,
326
+ status: "completed", depends_on: plan_artifact.id, harvested: false,
327
+ created_at: execution_start, completed_at: now() }
328
+ Write state.json (atomic)
323
329
  ```
324
- - If all completed: set status = "verifying"
325
- - If partial: set status = "executing" (resumable)
326
330
 
327
- 5. **Update state.json**: Update project-level progress counters.
331
+ 5. **Extract incremental learnings**:
332
+ - Read all `.summaries/` from PLAN_DIR
333
+ - Extract strategy adjustments, patterns, pitfalls
334
+ - Append to `.workflow/specs/learnings.md`
335
+ - Mark artifact `harvested: true` in state.json
328
336
 
329
337
  6. **Generate context.md**:
330
338
 
@@ -368,11 +376,12 @@ Completed: {completed_count}/{total_count} tasks
368
376
  Blocked: {blocked_count} tasks
369
377
  Waves: {waves_executed}/{total_waves}
370
378
 
371
- Summaries: {phase_dir}/.summaries/
372
- Tasks: {phase_dir}/.task/
379
+ Summaries: {PLAN_DIR}/.summaries/
380
+ Tasks: {PLAN_DIR}/.task/
373
381
 
374
382
  Next steps:
375
- Skill({ skill: "maestro-verify", args: "{phase}" })
383
+ Skill({ skill: "maestro-verify" })
384
+ Skill({ skill: "maestro-verify", args: "--dir {PLAN_DIR}" })
376
385
  Skill({ skill: "manage-status" })
377
386
  ```
378
387
 
@@ -1,209 +1,103 @@
1
- ---
2
- name: maestro-milestone-audit
3
- description: Audit current milestone for cross-phase integration gaps and produce verdict report
4
- argument-hint: "[milestone, e.g., 'v1.0']"
5
- allowed-tools: Read, Write, Bash, Glob, Grep, Agent
6
- ---
7
-
8
- # Maestro Milestone Audit (Single Agent)
9
-
10
- ## Usage
11
-
12
- ```bash
13
- $maestro-milestone-audit ""
14
- $maestro-milestone-audit "v1.0"
15
- $maestro-milestone-audit "MVP"
16
- ```
17
-
18
- **Flags**:
19
- - `[milestone]`: Milestone identifier (defaults to current_milestone from state.json)
20
-
21
- **Output**: Audit report with cross-phase integration analysis, gap list, and PASS/FAIL verdict
22
-
23
- ---
24
-
25
- ## Overview
26
-
27
- Sequential audit of a milestone's cross-phase integration health. Identifies all phases belonging to the milestone, reads their index.json and verification results, checks for integration gaps across phase boundaries, and produces a structured audit report with a clear verdict.
28
-
29
- ---
30
-
31
- ## Implementation
32
-
33
- ### Step 1: Parse Arguments
34
-
35
- Extract milestone identifier from arguments.
36
- If empty: read `current_milestone` from `.workflow/state.json`.
37
- If still empty: error E001.
38
-
39
- ### Step 2: Load Milestone Context
40
-
41
- ```bash
42
- cat .workflow/state.json
43
- cat .workflow/roadmap.md
44
- ```
45
-
46
- Parse roadmap.md to find all phases belonging to this milestone.
47
- If milestone not found in roadmap: error E002.
48
-
49
- ### Step 3: Collect Phase Data
50
-
51
- For each phase in the milestone:
52
-
53
- ```bash
54
- cat .workflow/phases/{NN}-{slug}/index.json
55
- cat .workflow/phases/{NN}-{slug}/verification.json 2>/dev/null
56
- cat .workflow/phases/{NN}-{slug}/review.json 2>/dev/null
57
- ```
58
-
59
- Collect:
60
- - Phase status (complete/active/pending)
61
- - Task completion counts
62
- - Verification verdicts
63
- - Review verdicts
64
- - Unresolved gaps
65
-
66
- Flag phases without `completed_at` as W001.
67
- If any phase is not complete/verifying: warning E003.
68
-
69
- ### Step 4: Cross-Phase Integration Analysis
70
-
71
- Analyze integration points across phase boundaries:
72
-
73
- 1. **Shared interfaces**: Grep for types/interfaces defined in one phase and used in another
74
- ```bash
75
- grep -r "export.*interface\|export.*type" .workflow/phases/*/
76
- ```
77
-
78
- 2. **Data contracts**: Check that data schemas are consistent across phases
79
- ```bash
80
- grep -r "schema\|contract\|interface" .workflow/phases/*/
81
- ```
82
-
83
- 3. **Dependency chains**: Verify that phase N's outputs satisfy phase N+1's inputs
84
- - Read each phase's index.json for declared dependencies
85
- - Check convergence criteria cross-references
86
-
87
- 4. **API surface consistency**: Look for breaking changes between phases
88
- ```bash
89
- grep -r "breaking\|deprecated\|removed" .workflow/phases/*/verification.json
90
- ```
91
-
92
- 5. **Test coverage gaps**: Identify integration test blind spots
93
- - Check if cross-phase interactions have test coverage
94
- - Flag untested boundaries
95
-
96
- ### Step 5: Spawn Integration Checker (if complex)
97
-
98
- For milestones with 3+ phases, spawn a workflow-integration-checker agent:
99
-
100
- ```
101
- Agent({
102
- subagent_type: "workflow-integration-checker",
103
- prompt: "Check cross-phase integration for milestone {milestone}. Phases: {phase_list}. Focus on: shared interfaces, data contracts, dependency chains.",
104
- run_in_background: false
105
- })
106
- ```
107
-
108
- Merge agent findings with Step 4 analysis.
109
-
110
- ### Step 6: Categorize Findings
111
-
112
- Classify each finding:
113
- - **Critical**: Breaking integration gap (blocks milestone completion)
114
- - **High**: Missing integration test coverage
115
- - **Medium**: Inconsistent naming/conventions across phases
116
- - **Low**: Documentation gaps, minor style inconsistencies
117
-
118
- ### Step 7: Determine Verdict
119
-
120
- - **PASS**: No critical or high findings
121
- - **CONDITIONAL**: High findings exist but have clear fix paths
122
- - **FAIL**: Critical findings that block milestone completion
123
-
124
- ### Step 8: Write Audit Report
125
-
126
- Write to `.workflow/milestone-audit-{milestone}.md`:
127
-
128
- ```markdown
129
- # Milestone Audit: {milestone}
130
- **Date**: {ISO date}
131
- **Verdict**: {PASS|CONDITIONAL|FAIL}
132
-
133
- ## Phases Audited
134
-
135
- | Phase | Status | Verification | Review | Tasks |
136
- |-------|--------|-------------|--------|-------|
137
- | {NN}-{slug} | {status} | {verdict} | {verdict} | {done}/{total} |
138
-
139
- ## Integration Analysis
140
-
141
- ### Critical Issues
142
- {list or "None"}
143
-
144
- ### High Issues
145
- {list or "None"}
146
-
147
- ### Medium Issues
148
- {list or "None"}
149
-
150
- ### Low Issues
151
- {list or "None"}
152
-
153
- ## Cross-Phase Dependencies
154
-
155
- {dependency matrix or diagram}
156
-
157
- ## Recommendations
158
-
159
- {prioritized fix suggestions}
160
-
161
- ## Next Steps
162
-
163
- {if PASS}
164
- Ready for: $maestro-milestone-complete "{milestone}"
165
- {elif CONDITIONAL}
166
- Fix high issues, then re-audit: $maestro-milestone-audit "{milestone}"
167
- {else}
168
- Fix critical issues first. See recommendations above.
169
- {endif}
170
- ```
171
-
172
- ### Step 9: Completion Report
173
-
174
- ```
175
- === MILESTONE AUDIT: {milestone} ===
176
- Verdict: {PASS|CONDITIONAL|FAIL}
177
-
178
- Phases: {count} audited
179
- Findings: {critical} critical, {high} high, {medium} medium, {low} low
180
-
181
- Report: .workflow/milestone-audit-{milestone}.md
182
-
183
- {if PASS}
184
- Ready for milestone completion: $maestro-milestone-complete "{milestone}"
185
- {else}
186
- Fix {critical+high} blocking issues before completing milestone.
187
- {endif}
188
- ```
189
-
190
- ---
191
-
192
- ## Error Handling
193
-
194
- | Code | Severity | Description | Recovery |
195
- |------|----------|-------------|----------|
196
- | E001 | error | Milestone identifier required | Specify milestone or set current_milestone in state.json |
197
- | E002 | error | Milestone not found in roadmap | Check roadmap.md for valid milestones |
198
- | E003 | error | Phases incomplete for this milestone | Complete phases first, or audit partial |
199
- | W001 | warning | Phase lacks completed_at | May not have been formally transitioned |
200
-
201
- ---
202
-
203
- ## Core Rules
204
-
205
- 1. **Read everything before judging** — collect all phase data before analyzing gaps
206
- 2. **Cross-phase focus** — single-phase issues are not this skill's concern; focus on boundaries
207
- 3. **Actionable findings** — every finding must include a specific fix suggestion
208
- 4. **Clear verdict** — PASS/CONDITIONAL/FAIL with unambiguous criteria
209
- 5. **Agent only when needed** — spawn integration-checker only for 3+ phase milestones
1
+ ---
2
+ name: maestro-milestone-audit
3
+ description: Audit current milestone using artifact registry for cross-phase integration gaps and produce verdict report
4
+ argument-hint: "[milestone, e.g., 'M1']"
5
+ allowed-tools: Read, Write, Bash, Glob, Grep, Agent
6
+ ---
7
+
8
+ # Maestro Milestone Audit (Single Agent)
9
+
10
+ ## Usage
11
+
12
+ ```bash
13
+ $maestro-milestone-audit ""
14
+ $maestro-milestone-audit "M1"
15
+ ```
16
+
17
+ **Output**: Audit report with artifact chain verification, integration analysis, and PASS/FAIL verdict
18
+
19
+ ---
20
+
21
+ ## Overview
22
+
23
+ Sequential audit based on artifact registry in state.json. Checks phase coverage (ANL→PLN→EXC chains), ad-hoc completeness, execution completeness, and cross-artifact integration.
24
+
25
+ ---
26
+
27
+ ## Implementation
28
+
29
+ ### Step 1: Parse Arguments
30
+
31
+ Extract milestone identifier from arguments.
32
+ If empty: read `current_milestone` from `.workflow/state.json`.
33
+ If still empty: error E001.
34
+
35
+ ### Step 2: Load Artifact Registry
36
+
37
+ ```bash
38
+ cat .workflow/state.json
39
+ cat .workflow/roadmap.md
40
+ ```
41
+
42
+ - Parse `state.json.artifacts[]` filtered by milestone
43
+ - Parse `roadmap.md` for phase list in this milestone
44
+ - Group artifacts by type and phase
45
+
46
+ ### Step 3: Phase Coverage Check
47
+
48
+ For each phase in roadmap:
49
+ - Check for completed analyze artifact (optional but noted)
50
+ - Check for completed plan artifact (required)
51
+ - Check for completed execute artifact (required)
52
+
53
+ Report coverage matrix.
54
+
55
+ ### Step 4: Ad-hoc & Execution Completeness
56
+
57
+ - Check all adhoc-scoped artifacts are completed
58
+ - For each execute artifact, verify tasks in plan dir are all completed
59
+
60
+ ### Step 5: Integration Check
61
+
62
+ Spawn Agent for cross-phase integration validation:
63
+ - Shared interfaces compatibility
64
+ - Dependency chain satisfaction
65
+ - Data contract consistency
66
+ - API endpoint consistency
67
+
68
+ Write report to `.workflow/milestones/{milestone}/audit-report.md`
69
+
70
+ ### Step 6: Verdict
71
+
72
+ ```
73
+ PASS if:
74
+ - All phases have EXC artifacts (completed)
75
+ - No critical integration gaps
76
+ - All adhoc artifacts completed
77
+
78
+ FAIL if:
79
+ - Missing EXC artifacts for any phase
80
+ - Critical integration gaps found
81
+ ```
82
+
83
+ Display structured audit report with next-step routing.
84
+
85
+ ---
86
+
87
+ ## Error Handling
88
+
89
+ | Code | Severity | Description | Recovery |
90
+ |------|----------|-------------|----------|
91
+ | E001 | error | Milestone identifier required | Specify milestone or ensure current_milestone is set |
92
+ | E002 | error | Milestone not found in state.json | Check milestone ID |
93
+ | E003 | error | No execute artifacts found | Run maestro-execute first |
94
+ | W001 | warning | Some phases lack analyze artifacts | Note: analysis optional but recommended |
95
+
96
+ ---
97
+
98
+ ## Core Rules
99
+
100
+ 1. **Artifact registry is source of truth** — don't scan directories, read state.json
101
+ 2. **Non-blocking warnings** — missing analyze is warning, missing execute is error
102
+ 3. **Integration check is required** — always spawn checker agent
103
+ 4. **Clear verdict** PASS or FAIL with specific reasons