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.
- package/.claude/commands/learn-decompose.md +3 -3
- package/.claude/commands/learn-follow.md +5 -5
- package/.claude/commands/learn-investigate.md +3 -3
- package/.claude/commands/learn-retro.md +6 -6
- package/.claude/commands/learn-second-opinion.md +3 -3
- package/.claude/commands/maestro-analyze.md +166 -99
- package/.claude/commands/maestro-brainstorm.md +2 -2
- package/.claude/commands/maestro-execute.md +151 -97
- package/.claude/commands/maestro-fork.md +111 -0
- package/.claude/commands/maestro-init.md +6 -6
- package/.claude/commands/maestro-merge.md +77 -0
- package/.claude/commands/maestro-milestone-audit.md +72 -60
- package/.claude/commands/maestro-milestone-complete.md +67 -59
- package/.claude/commands/maestro-milestone-release.md +6 -6
- package/.claude/commands/maestro-plan.md +167 -130
- package/.claude/commands/maestro-quick.md +4 -4
- package/.claude/commands/maestro-roadmap.md +5 -5
- package/.claude/commands/maestro-spec-generate.md +5 -5
- package/.claude/commands/maestro-ui-design.md +3 -3
- package/.claude/commands/maestro-verify.md +106 -87
- package/.claude/commands/maestro.md +10 -4
- package/.claude/commands/manage-codebase-rebuild.md +4 -4
- package/.claude/commands/manage-codebase-refresh.md +1 -1
- package/.claude/commands/manage-harvest.md +6 -6
- package/.claude/commands/manage-issue-discover.md +2 -2
- package/.claude/commands/manage-issue.md +7 -7
- package/.claude/commands/manage-learn.md +2 -2
- package/.claude/commands/manage-memory-capture.md +4 -4
- package/.claude/commands/manage-memory.md +2 -2
- package/.claude/commands/manage-status.md +24 -24
- package/.claude/commands/quality-business-test.md +5 -5
- package/.claude/commands/quality-debug.md +4 -4
- package/.claude/commands/quality-integration-test.md +4 -4
- package/.claude/commands/quality-refactor.md +3 -3
- package/.claude/commands/quality-retrospective.md +2 -2
- package/.claude/commands/quality-review.md +4 -4
- package/.claude/commands/quality-sync.md +3 -3
- package/.claude/commands/quality-test-gen.md +4 -4
- package/.claude/commands/quality-test.md +9 -9
- package/.claude/commands/spec-add.md +2 -2
- package/.claude/commands/spec-load.md +1 -1
- package/.claude/commands/spec-setup.md +5 -5
- package/.claude/commands/wiki-connect.md +3 -3
- package/.claude/commands/wiki-digest.md +4 -4
- package/.codex/skills/maestro/SKILL.md +463 -0
- package/.codex/skills/maestro-analyze/SKILL.md +79 -20
- package/.codex/skills/maestro-chain/SKILL.md +248 -0
- package/.codex/skills/maestro-coordinate/SKILL.md +279 -224
- package/.codex/skills/maestro-execute/SKILL.md +35 -26
- package/.codex/skills/maestro-milestone-audit/SKILL.md +103 -209
- package/.codex/skills/maestro-milestone-complete/SKILL.md +149 -158
- package/.codex/skills/maestro-plan/SKILL.md +56 -18
- package/.codex/skills/maestro-roadmap/SKILL.md +3 -2
- package/.codex/skills/team-coordinate/roles/coordinator/commands/monitor.md +2 -2
- package/.codex/skills/team-executor/roles/executor/commands/monitor.md +1 -1
- package/.codex/skills/team-lifecycle-v4/roles/coordinator/commands/monitor.md +2 -2
- package/.codex/skills/team-lifecycle-v4/specs/knowledge-transfer.md +2 -2
- package/.codex/skills/team-quality-assurance/roles/coordinator/commands/monitor.md +1 -1
- package/.codex/skills/team-review/roles/coordinator/commands/monitor.md +1 -1
- package/.codex/skills/team-tech-debt/roles/coordinator/commands/monitor.md +1 -1
- package/.codex/skills/team-testing/roles/coordinator/commands/monitor.md +1 -1
- package/README.md +26 -21
- package/README.zh-CN.md +23 -19
- package/bin/maestro-mcp.js +1 -1
- package/chains/_intent-map.json +21 -9
- package/chains/_router.json +30 -77
- package/chains/brainstorm-driven.json +17 -6
- package/chains/full-lifecycle.json +22 -23
- package/chains/issue-lifecycle.json +13 -13
- package/chains/milestone-close.json +20 -7
- package/chains/milestone-fork-merge.json +50 -0
- package/chains/roadmap-driven.json +17 -6
- package/chains/singles/issue-analyze.json +3 -3
- package/chains/singles/issue-execute.json +3 -3
- package/chains/singles/issue-plan.json +3 -3
- package/chains/spec-driven.json +17 -6
- package/dashboard/dist/assets/{ArtifactsPage-BmPOu8sO.js → ArtifactsPage-DZNCi6tn.js} +12 -7
- package/dashboard/dist/assets/ChatInput-Bvr-FeEq.js +49 -0
- package/dashboard/dist/assets/ChatPage-D9zTkJZo.js +22 -0
- package/dashboard/dist/assets/CollabPage-B4NAHXS2.js +1 -0
- package/dashboard/dist/assets/ExecutionPanel-CFt4LJyq.js +1 -0
- package/dashboard/dist/assets/KanbanPage-C8USth6H.js +21 -0
- package/dashboard/dist/assets/{MarkdownRenderer-BjZ43aSa.js → MarkdownRenderer-X4af_WNb.js} +1 -1
- package/dashboard/dist/assets/McpPage-BKfCVIyU.js +21 -0
- package/dashboard/dist/assets/OutputPanel-BlBQFJSW.js +1 -0
- package/dashboard/dist/assets/ProblemsPanel-De3DLvoI.js +1 -0
- package/dashboard/dist/assets/{RequirementBoardPage-B7yRL0s_.js → RequirementBoardPage-Bf1trzqs.js} +2 -2
- package/dashboard/dist/assets/{RequirementPage-D8J_-b6O.js → RequirementPage-Bllxe2XI.js} +10 -5
- package/dashboard/dist/assets/{SpecsPage-6lO8v8_C.js → SpecsPage-9lwxKT27.js} +2 -2
- package/dashboard/dist/assets/{SupervisorPage-Ds5N378a.js → SupervisorPage-SusdfHFq.js} +1 -1
- package/dashboard/dist/assets/{TeamsPage-DrkKr17T.js → TeamsPage-DsuM6OwC.js} +2 -2
- package/dashboard/dist/assets/TreeBrowser-Q12qobZs.js +6 -0
- package/dashboard/dist/assets/WorkflowPage-D_Fzdy3_.js +6 -0
- package/dashboard/dist/assets/{arrow-left-CadP5YgU.js → arrow-left-Bqtb2hle.js} +1 -1
- package/dashboard/dist/assets/{check-5xufDzS8.js → check-u6fGOwQO.js} +1 -1
- package/dashboard/dist/assets/{chevron-right-CYbpR4ev.js → chevron-right-Csu22t58.js} +1 -1
- package/dashboard/dist/assets/{circle-Bm-5Q-Yh.js → circle-CMrkbRNg.js} +1 -1
- package/dashboard/dist/assets/{circle-alert-BqcYuT7x.js → circle-alert-c3tH1P4z.js} +1 -1
- package/dashboard/dist/assets/{circle-check-big-yyzAFysU.js → circle-check-big-TDSeWstm.js} +1 -1
- package/dashboard/dist/assets/{circle-check-DEVzW_lm.js → circle-check-gYxxSYuH.js} +1 -1
- package/dashboard/dist/assets/{code-BBdC8Wmw.js → code-CFN2uX9V.js} +1 -1
- package/dashboard/dist/assets/{columns-3-CQ9Trztr.js → columns-3-38xIDlzy.js} +1 -1
- package/dashboard/dist/assets/{download-DayuF-sn.js → download-DC7KkKyP.js} +1 -1
- package/dashboard/dist/assets/{folder-CqXeSKeC.js → folder-CWq_lAnf.js} +1 -1
- package/dashboard/dist/assets/index-DWG-WrzT.js +231 -0
- package/dashboard/dist/assets/{index-Dru5HYy0.js → index-Do71weNR.js} +1 -1
- package/dashboard/dist/assets/index-GUNJodSR.css +1 -0
- package/dashboard/dist/assets/{list-DBOD6IUt.js → list-CgIP_2A-.js} +1 -1
- package/dashboard/dist/assets/{minus-fQI1Syn2.js → minus-DYoN5UGk.js} +1 -1
- package/dashboard/dist/assets/{pen-line-Bkbbngl5.js → pen-line-Bh_WKYHm.js} +1 -1
- package/dashboard/dist/assets/{proxy-teW12DdZ.js → proxy-BKxDAKTj.js} +1 -1
- package/dashboard/dist/assets/{search-Bq3ygFUW.js → search-SieXnOgr.js} +1 -1
- package/dashboard/dist/assets/{shallow-22ZN8sFt.js → shallow-Bme1JY57.js} +1 -1
- package/dashboard/dist/assets/{table-BEYtdWc4.js → table-llyEtj-7.js} +1 -1
- package/dashboard/dist/assets/terminal-BB3Xfuv5.js +6 -0
- package/dashboard/dist/assets/{trash-2-DMqGBgcF.js → trash-2-C8f4vFFM.js} +1 -1
- package/dashboard/dist/assets/{zap-9DVkGVtt.js → zap-4uwlzVm0.js} +1 -1
- package/dashboard/dist/index.html +2 -2
- package/dashboard/dist-server/dashboard/src/server/agents/claude-code-adapter.js +8 -4
- package/dashboard/dist-server/dashboard/src/server/agents/claude-code-adapter.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/agents/entry-normalizer.d.ts +1 -0
- package/dashboard/dist-server/dashboard/src/server/agents/entry-normalizer.js +2 -1
- package/dashboard/dist-server/dashboard/src/server/agents/entry-normalizer.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/agents/stream-json-adapter.js +20 -10
- package/dashboard/dist-server/dashboard/src/server/agents/stream-json-adapter.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/commander/commander-agent.js +2 -2
- package/dashboard/dist-server/dashboard/src/server/commander/commander-agent.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/coordinator/chain-map.js +3 -3
- package/dashboard/dist-server/dashboard/src/server/coordinator/chain-map.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/routes/git.d.ts +2 -0
- package/dashboard/dist-server/dashboard/src/server/routes/git.js +79 -0
- package/dashboard/dist-server/dashboard/src/server/routes/git.js.map +1 -0
- package/dashboard/dist-server/dashboard/src/server/routes/index.js +3 -0
- package/dashboard/dist-server/dashboard/src/server/routes/index.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/routes/issues.js +34 -0
- package/dashboard/dist-server/dashboard/src/server/routes/issues.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/routes/workspace.js +43 -0
- package/dashboard/dist-server/dashboard/src/server/routes/workspace.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/state/state-manager.js +43 -3
- package/dashboard/dist-server/dashboard/src/server/state/state-manager.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/ws/handlers/execution-handler.js +2 -3
- package/dashboard/dist-server/dashboard/src/server/ws/handlers/execution-handler.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/shared/issue-types.d.ts +5 -0
- package/dashboard/dist-server/dashboard/src/shared/issue-types.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/shared/normalize-task.d.ts +2 -0
- package/dashboard/dist-server/dashboard/src/shared/normalize-task.js +75 -0
- package/dashboard/dist-server/dashboard/src/shared/normalize-task.js.map +1 -0
- package/dashboard/dist-server/src/hooks/constants.d.ts +90 -12
- package/dashboard/dist-server/src/hooks/constants.js +149 -16
- package/dashboard/dist-server/src/hooks/constants.js.map +1 -1
- package/dashboard/dist-server/src/types/index.d.ts +5 -0
- package/dashboard/package.json +59 -59
- package/dist/src/cli.js +3 -1
- package/dist/src/cli.js.map +1 -1
- package/dist/src/commands/collab.d.ts +14 -0
- package/dist/src/commands/collab.d.ts.map +1 -0
- package/dist/src/commands/{team.js → collab.js} +395 -96
- package/dist/src/commands/collab.js.map +1 -0
- package/dist/src/commands/hooks.d.ts +5 -1
- package/dist/src/commands/hooks.d.ts.map +1 -1
- package/dist/src/commands/hooks.js +50 -10
- package/dist/src/commands/hooks.js.map +1 -1
- package/dist/src/commands/install-ui/InstallConfirm.d.ts +3 -1
- package/dist/src/commands/install-ui/InstallConfirm.d.ts.map +1 -1
- package/dist/src/commands/install-ui/InstallConfirm.js +3 -1
- package/dist/src/commands/install-ui/InstallConfirm.js.map +1 -1
- package/dist/src/commands/install-ui/InstallExecution.d.ts.map +1 -1
- package/dist/src/commands/install-ui/InstallExecution.js +5 -1
- package/dist/src/commands/install-ui/InstallExecution.js.map +1 -1
- package/dist/src/commands/install-ui/InstallFlow.d.ts.map +1 -1
- package/dist/src/commands/install-ui/InstallFlow.js +7 -3
- package/dist/src/commands/install-ui/InstallFlow.js.map +1 -1
- package/dist/src/commands/install-ui/StatuslineConfig.d.ts +6 -1
- package/dist/src/commands/install-ui/StatuslineConfig.d.ts.map +1 -1
- package/dist/src/commands/install-ui/StatuslineConfig.js +27 -5
- package/dist/src/commands/install-ui/StatuslineConfig.js.map +1 -1
- package/dist/src/commands/msg.d.ts.map +1 -1
- package/dist/src/commands/msg.js +4 -3
- package/dist/src/commands/msg.js.map +1 -1
- package/dist/src/hooks/__tests__/statusline-visual-test.d.ts +7 -0
- package/dist/src/hooks/__tests__/statusline-visual-test.d.ts.map +1 -0
- package/dist/src/hooks/__tests__/statusline-visual-test.js +236 -0
- package/dist/src/hooks/__tests__/statusline-visual-test.js.map +1 -0
- package/dist/src/hooks/constants.d.ts +90 -12
- package/dist/src/hooks/constants.d.ts.map +1 -1
- package/dist/src/hooks/constants.js +149 -16
- package/dist/src/hooks/constants.js.map +1 -1
- package/dist/src/hooks/guards/index.d.ts +1 -0
- package/dist/src/hooks/guards/index.d.ts.map +1 -1
- package/dist/src/hooks/guards/index.js +1 -0
- package/dist/src/hooks/guards/index.js.map +1 -1
- package/dist/src/hooks/guards/preflight-guard.d.ts +29 -0
- package/dist/src/hooks/guards/preflight-guard.d.ts.map +1 -0
- package/dist/src/hooks/guards/preflight-guard.js +95 -0
- package/dist/src/hooks/guards/preflight-guard.js.map +1 -0
- package/dist/src/hooks/index.d.ts +1 -0
- package/dist/src/hooks/index.d.ts.map +1 -1
- package/dist/src/hooks/index.js +1 -0
- package/dist/src/hooks/index.js.map +1 -1
- package/dist/src/{commands/team.d.ts → hooks/preflight-core.d.ts} +12 -22
- package/dist/src/hooks/preflight-core.d.ts.map +1 -0
- package/dist/src/hooks/preflight-core.js +86 -0
- package/dist/src/hooks/preflight-core.js.map +1 -0
- package/dist/src/hooks/statusline.d.ts +8 -17
- package/dist/src/hooks/statusline.d.ts.map +1 -1
- package/dist/src/hooks/statusline.js +269 -112
- package/dist/src/hooks/statusline.js.map +1 -1
- package/dist/src/hooks/team-monitor.d.ts.map +1 -1
- package/dist/src/hooks/team-monitor.js +16 -0
- package/dist/src/hooks/team-monitor.js.map +1 -1
- package/dist/src/i18n/locales/en.d.ts.map +1 -1
- package/dist/src/i18n/locales/en.js +5 -0
- package/dist/src/i18n/locales/en.js.map +1 -1
- package/dist/src/i18n/locales/zh.d.ts.map +1 -1
- package/dist/src/i18n/locales/zh.js +5 -0
- package/dist/src/i18n/locales/zh.js.map +1 -1
- package/dist/src/i18n/types.d.ts +5 -0
- package/dist/src/i18n/types.d.ts.map +1 -1
- package/dist/src/tools/collab-adapter.d.ts +102 -0
- package/dist/src/tools/collab-adapter.d.ts.map +1 -0
- package/dist/src/tools/collab-adapter.js +458 -0
- package/dist/src/tools/collab-adapter.js.map +1 -0
- package/dist/src/tools/merge-validator.d.ts +24 -0
- package/dist/src/tools/merge-validator.d.ts.map +1 -0
- package/dist/src/tools/merge-validator.js +220 -0
- package/dist/src/tools/merge-validator.js.map +1 -0
- package/dist/src/tools/namespace-guard.d.ts +2 -0
- package/dist/src/tools/namespace-guard.d.ts.map +1 -1
- package/dist/src/tools/namespace-guard.js +12 -0
- package/dist/src/tools/namespace-guard.js.map +1 -1
- package/dist/src/tools/phase-gate-evaluator.d.ts +45 -0
- package/dist/src/tools/phase-gate-evaluator.d.ts.map +1 -0
- package/dist/src/tools/phase-gate-evaluator.js +42 -0
- package/dist/src/tools/phase-gate-evaluator.js.map +1 -0
- package/dist/src/tools/team-members.d.ts +18 -0
- package/dist/src/tools/team-members.d.ts.map +1 -1
- package/dist/src/tools/team-members.js +50 -0
- package/dist/src/tools/team-members.js.map +1 -1
- package/dist/src/tools/team-tasks.d.ts +120 -0
- package/dist/src/tools/team-tasks.d.ts.map +1 -0
- package/dist/src/tools/team-tasks.js +365 -0
- package/dist/src/tools/team-tasks.js.map +1 -0
- package/dist/src/tools/transition-recorder.d.ts +3 -0
- package/dist/src/tools/transition-recorder.d.ts.map +1 -1
- package/dist/src/tools/transition-recorder.js +52 -1
- package/dist/src/tools/transition-recorder.js.map +1 -1
- package/dist/src/types/index.d.ts +5 -0
- package/dist/src/types/index.d.ts.map +1 -1
- package/dist/src/utils/get-version.d.ts.map +1 -1
- package/dist/src/utils/get-version.js +15 -4
- package/dist/src/utils/get-version.js.map +1 -1
- package/package.json +1 -1
- package/templates/cli/prompts/workflow-skill-conflict-patterns.txt +3 -3
- package/templates/cli/prompts/workflow-skill-lessons-learned.txt +3 -3
- package/templates/config.json +7 -0
- package/templates/search-tools.md +1 -1
- package/templates/worktree-scope.json +10 -0
- package/templates/worktrees.json +27 -0
- package/workflows/analyze.md +86 -36
- package/workflows/brainstorm.md +17 -37
- package/workflows/cli-tools-usage.md +44 -27
- package/workflows/delegate-usage.md +3 -3
- package/workflows/execute.md +94 -28
- package/workflows/fork.md +309 -0
- package/workflows/init.md +10 -1
- package/workflows/issue-analyze.md +6 -2
- package/workflows/issue-discover.md +4 -4
- package/workflows/issue-execute.md +6 -3
- package/workflows/issue-plan.md +5 -2
- package/workflows/issue.md +66 -7
- package/workflows/maestro-coordinate.codex.md +281 -470
- package/workflows/maestro-coordinate.md +37 -30
- package/workflows/maestro-link-coordinate.md +2 -2
- package/workflows/maestro.codex.md +710 -0
- package/workflows/maestro.md +62 -46
- package/workflows/merge.md +285 -0
- package/workflows/milestone-audit.md +89 -70
- package/workflows/milestone-complete.md +89 -156
- package/workflows/plan.md +122 -17
- package/workflows/retrospective.md +4 -4
- package/workflows/roadmap.md +11 -3
- package/workflows/spec-generate.md +9 -0
- package/workflows/status.md +76 -27
- package/workflows/ui-design.md +14 -12
- package/workflows/verify.md +44 -8
- package/.claude/commands/maestro-phase-add.md +0 -63
- package/.claude/commands/maestro-phase-transition.md +0 -75
- package/.claude/commands/manage-issue-analyze.md +0 -62
- package/.claude/commands/manage-issue-execute.md +0 -73
- package/.claude/commands/manage-issue-plan.md +0 -62
- package/.codex/skills/maestro-phase-add/SKILL.md +0 -154
- package/.codex/skills/maestro-phase-transition/SKILL.md +0 -173
- package/.codex/skills/manage-issue-analyze/SKILL.md +0 -207
- package/.codex/skills/manage-issue-execute/SKILL.md +0 -200
- package/.codex/skills/manage-issue-plan/SKILL.md +0 -186
- package/chains/singles/phase-add.json +0 -31
- package/chains/singles/phase-transition.json +0 -23
- package/dashboard/dist/assets/ChatInput-CL8YDfOU.js +0 -67
- package/dashboard/dist/assets/ChatPage-CT-ozBK2.js +0 -8
- package/dashboard/dist/assets/CollabPage-C0rWMden.js +0 -1
- package/dashboard/dist/assets/KanbanPage-C6WbAlwI.js +0 -16
- package/dashboard/dist/assets/McpPage-BPIXADQi.js +0 -16
- package/dashboard/dist/assets/TreeBrowser-g_QUKemL.js +0 -11
- package/dashboard/dist/assets/WorkflowPage-X8aNkDEr.js +0 -6
- package/dashboard/dist/assets/git-branch-SqFf4Ru5.js +0 -6
- package/dashboard/dist/assets/index-D2Mtyw7I.css +0 -1
- package/dashboard/dist/assets/index-nufWop4p.js +0 -231
- package/dashboard/dist/assets/wrench-B84-zdLI.js +0 -11
- package/dist/src/commands/team.d.ts.map +0 -1
- package/dist/src/commands/team.js.map +0 -1
- package/workflows/phase-add.md +0 -252
- package/workflows/phase-transition.md +0 -399
package/README.zh-CN.md
CHANGED
|
@@ -32,12 +32,13 @@ Maestro-Flow 是一个面向 Claude Code、Codex、Gemini 等多智能体的工
|
|
|
32
32
|
# 或者一步步来
|
|
33
33
|
/maestro-init # 初始化项目工作区
|
|
34
34
|
/maestro-roadmap # 交互式创建路线图
|
|
35
|
-
/maestro-
|
|
36
|
-
/maestro-
|
|
37
|
-
/maestro-
|
|
35
|
+
/maestro-analyze # 多维度分析
|
|
36
|
+
/maestro-plan # 生成执行计划
|
|
37
|
+
/maestro-execute # 波次并行多智能体执行
|
|
38
|
+
/maestro-verify # 目标反推验证
|
|
38
39
|
```
|
|
39
40
|
|
|
40
|
-
###
|
|
41
|
+
### 里程碑管线
|
|
41
42
|
|
|
42
43
|
```mermaid
|
|
43
44
|
graph LR
|
|
@@ -48,11 +49,13 @@ graph LR
|
|
|
48
49
|
E --> F[execute]
|
|
49
50
|
F --> G[verify]
|
|
50
51
|
G --> H[review]
|
|
51
|
-
H --> I[
|
|
52
|
-
I --> J[
|
|
53
|
-
J
|
|
52
|
+
H --> I[milestone-audit]
|
|
53
|
+
I --> J[milestone-complete]
|
|
54
|
+
J -->|下一里程碑| D
|
|
54
55
|
```
|
|
55
56
|
|
|
57
|
+
所有工作产物存放在 `.workflow/scratch/`,通过 `state.json` artifact registry 追踪。Phase 是 roadmap 中的标签,不是目录。
|
|
58
|
+
|
|
56
59
|
### 快速通道
|
|
57
60
|
|
|
58
61
|
| 通道 | 流程 | 适用场景 |
|
|
@@ -67,9 +70,9 @@ graph LR
|
|
|
67
70
|
|
|
68
71
|
### 1. 结构化管线
|
|
69
72
|
|
|
70
|
-
|
|
73
|
+
基于 Scratch 的里程碑工作流,通过 artifact registry 追踪进度。每个里程碑经历 analyze > plan > execute > verify > review > milestone-audit > milestone-complete。所有产物存放在 `.workflow/scratch/`,`state.json` 是唯一状态源。
|
|
71
74
|
|
|
72
|
-
|
|
75
|
+
49 个斜杠命令覆盖 6 大类别,驱动从项目初始化到质量复盘的每一个环节。
|
|
73
76
|
|
|
74
77
|
### 2. 自主驾驶
|
|
75
78
|
|
|
@@ -94,10 +97,10 @@ graph LR
|
|
|
94
97
|
| 阶段 | 命令 | 做了什么 |
|
|
95
98
|
|------|------|---------|
|
|
96
99
|
| **发现** | `/manage-issue-discover` | 8 视角扫描: Bug、UX、技术债、安全、性能、测试缺口、代码质量、文档 |
|
|
97
|
-
| **分析** | `/
|
|
98
|
-
| **规划** | `/
|
|
99
|
-
| **执行** | `/
|
|
100
|
-
| **关闭** | 自动 |
|
|
100
|
+
| **分析** | `/maestro-analyze --gaps` | CLI 探索式根因分析,写入 `issue.analysis` |
|
|
101
|
+
| **规划** | `/maestro-plan --gaps` | 生成 TASK 文件并通过 `task_refs` 关联到 Issue |
|
|
102
|
+
| **执行** | `/maestro-execute` | 基于 wave 的并行执行,自动同步 Issue 状态 |
|
|
103
|
+
| **关闭** | 自动 | 所有关联 task 完成 → resolved → closed |
|
|
101
104
|
|
|
102
105
|
质量命令(`review`、`test`、`verify`)自动为发现的问题创建 Issue。Issue 修复的代码回流到阶段管线。闭环自动关闭。
|
|
103
106
|
|
|
@@ -168,7 +171,7 @@ Maestro-Flow 协调多个 AI 智能体并行工作:
|
|
|
168
171
|
| `context-monitor` | 监控上下文用量,接近上限时注入警告 |
|
|
169
172
|
| `spec-injector` | 按智能体类型自动注入项目规范到子 Agent 提示词 |
|
|
170
173
|
| `delegate-monitor` | 跟踪异步 delegate 任务完成状态 |
|
|
171
|
-
| `team-monitor` |
|
|
174
|
+
| `team-monitor` | Collab 心跳 -- 向 `.workflow/collab/activity.jsonl` 上报活动,供队友感知 |
|
|
172
175
|
| `telemetry` | 执行遥测收集 |
|
|
173
176
|
| `session-context` | 会话启动时注入工作流状态 |
|
|
174
177
|
| `skill-context` | 调用工作流 Skill 时注入工作流状态 |
|
|
@@ -195,7 +198,7 @@ maestro overlay bundle -o team.json # 打包分享
|
|
|
195
198
|
|
|
196
199
|
---
|
|
197
200
|
|
|
198
|
-
##
|
|
201
|
+
## 49 个命令,21 个 Agent
|
|
199
202
|
|
|
200
203
|
### 命令
|
|
201
204
|
|
|
@@ -287,7 +290,7 @@ maestro/
|
|
|
287
290
|
| | +-- execution/ # ExecutionScheduler + WaveExecutor
|
|
288
291
|
| +-- shared/ # 共享类型
|
|
289
292
|
+-- .claude/
|
|
290
|
-
| +-- commands/ #
|
|
293
|
+
| +-- commands/ # 49 个斜杠命令 (.md)
|
|
291
294
|
| +-- agents/ # 21 个 Agent 定义 (.md)
|
|
292
295
|
+-- workflows/ # 47 个工作流实现 (.md)
|
|
293
296
|
+-- templates/ # JSON 模板 (task, plan, issue, ...)
|
|
@@ -309,12 +312,13 @@ maestro/
|
|
|
309
312
|
|
|
310
313
|
## 文档
|
|
311
314
|
|
|
312
|
-
- **[命令使用指南](guide/command-usage-guide.md)** -- 全部
|
|
315
|
+
- **[命令使用指南](guide/command-usage-guide.md)** -- 全部 49 个命令,含工作流图表、管线衔接、Issue 闭环、快速通道
|
|
313
316
|
- **[Delegate 异步执行指南](guide/delegate-async-guide.md)** -- 异步任务委派: CLI & MCP 用法、消息注入、链式调用、Broker 生命周期
|
|
314
317
|
- **[Overlay 系统指南](guide/overlay-guide.md)** -- 非侵入式命令扩展: overlay 格式、section 注入、bundle 打包/导入、交互式 TUI 管理
|
|
315
318
|
- **[Hook 系统指南](guide/hooks-guide.md)** -- Hook 系统架构、9 个 Hook、Spec 注入、上下文预算、配置
|
|
316
|
-
- **[
|
|
317
|
-
- **[
|
|
319
|
+
- **[Worktree 并行开发指南](guide/worktree-guide.md)** -- 里程碑级 worktree 并行: fork、sync、merge、scope 保护、Dashboard 集成
|
|
320
|
+
- **[Collab 协作 -- 使用指南](guide/team-lite-guide.md)** -- 2-8 人小团队协作: 加入、同步、活动感知、冲突预检、任务管理、命名空间隔离
|
|
321
|
+
- **[Collab 协作 -- 设计文档](guide/team-lite-design.md)** -- 架构、数据模型、人类协作域 (`.workflow/collab/`) 与智能体管线 (`.workflow/.team/`) 的命名空间边界
|
|
318
322
|
|
|
319
323
|
---
|
|
320
324
|
|
package/bin/maestro-mcp.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
1
|
+
#!/usr/bin/env node
|
|
2
2
|
import '../dist/src/mcp/server.js';
|
package/chains/_intent-map.json
CHANGED
|
@@ -117,16 +117,10 @@
|
|
|
117
117
|
"route": { "graph": "singles/sync" }
|
|
118
118
|
},
|
|
119
119
|
{
|
|
120
|
-
"type": "
|
|
121
|
-
"regex": "phase.*transit|next.*phase
|
|
120
|
+
"type": "milestone_close",
|
|
121
|
+
"regex": "phase.*transit|next.*phase|推进|切换.*阶段|close.*milestone|结束.*里程碑",
|
|
122
122
|
"flags": "i",
|
|
123
|
-
"route": { "graph": "
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
"type": "phase_add",
|
|
127
|
-
"regex": "phase.*add|add.*phase|添加.*阶段",
|
|
128
|
-
"flags": "i",
|
|
129
|
-
"route": { "graph": "singles/phase-add" }
|
|
123
|
+
"route": { "graph": "milestone-close" }
|
|
130
124
|
},
|
|
131
125
|
{
|
|
132
126
|
"type": "milestone_audit",
|
|
@@ -254,6 +248,24 @@
|
|
|
254
248
|
"flags": "i",
|
|
255
249
|
"route": { "graph": "singles/team-tech-debt" }
|
|
256
250
|
},
|
|
251
|
+
{
|
|
252
|
+
"type": "learn",
|
|
253
|
+
"regex": "\\blearn|capture.*insight|eureka|记录.*洞察",
|
|
254
|
+
"flags": "i",
|
|
255
|
+
"route": { "graph": "singles/memory-capture" }
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"type": "fork",
|
|
259
|
+
"regex": "\\bfork|worktree.*creat|parallel.*milestone|分叉|并行.*里程碑",
|
|
260
|
+
"flags": "i",
|
|
261
|
+
"route": { "graph": "milestone-fork-merge" }
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"type": "merge",
|
|
265
|
+
"regex": "merge.*worktree|merge.*milestone|合并.*工作树",
|
|
266
|
+
"flags": "i",
|
|
267
|
+
"route": { "graph": "milestone-fork-merge" }
|
|
268
|
+
},
|
|
257
269
|
{
|
|
258
270
|
"type": "quick",
|
|
259
271
|
"regex": "quick|small.*task|ad.?hoc|简单|快速",
|
package/chains/_router.json
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"$schema": "./chain-graph.schema.json",
|
|
3
3
|
"id": "_router",
|
|
4
4
|
"name": "State Router",
|
|
5
|
-
"description": "Route to appropriate graph based on project state",
|
|
6
|
-
"version": "
|
|
5
|
+
"description": "Route to appropriate graph based on project state and artifact registry",
|
|
6
|
+
"version": "2.0.0",
|
|
7
7
|
"tags": ["internal", "router"],
|
|
8
8
|
"entry": "check_init",
|
|
9
9
|
"inputs": {
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
},
|
|
22
22
|
"check_has_roadmap": {
|
|
23
23
|
"type": "decision",
|
|
24
|
-
"eval": "ctx.project.
|
|
24
|
+
"eval": "ctx.project.milestones_total",
|
|
25
25
|
"edges": [
|
|
26
|
-
{ "match": "ctx.project.
|
|
27
|
-
{ "default": true, "target": "
|
|
26
|
+
{ "match": "ctx.project.milestones_total == 0", "target": "check_accumulated_context" },
|
|
27
|
+
{ "default": true, "target": "check_artifact_state" }
|
|
28
28
|
]
|
|
29
29
|
},
|
|
30
30
|
"check_accumulated_context": {
|
|
@@ -35,98 +35,61 @@
|
|
|
35
35
|
{ "default": true, "target": "to_brainstorm_driven" }
|
|
36
36
|
]
|
|
37
37
|
},
|
|
38
|
-
"
|
|
38
|
+
"check_artifact_state": {
|
|
39
39
|
"type": "decision",
|
|
40
|
-
"
|
|
40
|
+
"description": "Determine next step from artifact registry — what's the latest completed artifact type for current milestone?",
|
|
41
|
+
"eval": "ctx.project.latest_artifact_type",
|
|
41
42
|
"edges": [
|
|
42
|
-
{ "value":
|
|
43
|
-
{ "value": "
|
|
44
|
-
{ "value": "
|
|
45
|
-
{ "value": "
|
|
46
|
-
{ "value": "
|
|
47
|
-
{ "value": "
|
|
48
|
-
{ "value": "completed", "target": "check_all_phases" },
|
|
49
|
-
{ "value": "blocked", "target": "to_debug" }
|
|
50
|
-
]
|
|
51
|
-
},
|
|
52
|
-
"check_pending_artifacts": {
|
|
53
|
-
"type": "decision",
|
|
54
|
-
"eval": "ctx.project.artifacts.context",
|
|
55
|
-
"edges": [
|
|
56
|
-
{ "value": true, "target": "to_plan" },
|
|
43
|
+
{ "value": null, "target": "to_analyze" },
|
|
44
|
+
{ "value": "analyze", "target": "check_has_plan" },
|
|
45
|
+
{ "value": "brainstorm", "target": "to_analyze" },
|
|
46
|
+
{ "value": "plan", "target": "to_execute" },
|
|
47
|
+
{ "value": "execute", "target": "to_verify" },
|
|
48
|
+
{ "value": "verify", "target": "check_verify_result" },
|
|
57
49
|
{ "default": true, "target": "to_analyze" }
|
|
58
50
|
]
|
|
59
51
|
},
|
|
60
52
|
"check_has_plan": {
|
|
61
53
|
"type": "decision",
|
|
62
|
-
"eval": "ctx.project.
|
|
54
|
+
"eval": "ctx.project.has_pending_plans",
|
|
63
55
|
"edges": [
|
|
64
56
|
{ "value": true, "target": "to_execute_verify" },
|
|
65
57
|
{ "default": true, "target": "to_plan" }
|
|
66
58
|
]
|
|
67
59
|
},
|
|
68
|
-
"
|
|
69
|
-
"type": "decision",
|
|
70
|
-
"eval": "ctx.project.execution.tasks_completed",
|
|
71
|
-
"edges": [
|
|
72
|
-
{
|
|
73
|
-
"match": "ctx.project.execution.tasks_completed >= ctx.project.execution.tasks_total && ctx.project.execution.tasks_total > 0",
|
|
74
|
-
"target": "to_verify"
|
|
75
|
-
},
|
|
76
|
-
{ "default": true, "target": "to_execute" }
|
|
77
|
-
]
|
|
78
|
-
},
|
|
79
|
-
"check_verification": {
|
|
60
|
+
"check_verify_result": {
|
|
80
61
|
"type": "decision",
|
|
81
62
|
"eval": "ctx.project.verification_status",
|
|
82
63
|
"edges": [
|
|
83
|
-
{ "value": "passed", "target": "
|
|
64
|
+
{ "value": "passed", "target": "check_review" },
|
|
84
65
|
{ "default": true, "target": "to_quality_loop_partial" }
|
|
85
66
|
]
|
|
86
67
|
},
|
|
87
|
-
"
|
|
88
|
-
"type": "decision",
|
|
89
|
-
"eval": "ctx.project.business_test_status",
|
|
90
|
-
"edges": [
|
|
91
|
-
{ "value": null, "target": "to_business_test" },
|
|
92
|
-
{ "value": "passed", "target": "check_review_after_verify" },
|
|
93
|
-
{ "default": true, "target": "to_quality_loop_partial" }
|
|
94
|
-
]
|
|
95
|
-
},
|
|
96
|
-
"check_review_after_verify": {
|
|
68
|
+
"check_review": {
|
|
97
69
|
"type": "decision",
|
|
98
70
|
"eval": "ctx.project.review_verdict",
|
|
99
71
|
"edges": [
|
|
100
72
|
{ "value": null, "target": "to_review" },
|
|
101
|
-
{ "
|
|
102
|
-
|
|
103
|
-
},
|
|
104
|
-
"check_uat_after_review": {
|
|
105
|
-
"type": "decision",
|
|
106
|
-
"eval": "ctx.project.uat_status",
|
|
107
|
-
"edges": [
|
|
108
|
-
{ "value": "pending", "target": "to_test" },
|
|
109
|
-
{ "value": "passed", "target": "to_phase_transition" },
|
|
110
|
-
{ "default": true, "target": "to_debug_from_uat" }
|
|
73
|
+
{ "value": "BLOCK", "target": "to_quality_loop_partial" },
|
|
74
|
+
{ "default": true, "target": "check_uat" }
|
|
111
75
|
]
|
|
112
76
|
},
|
|
113
77
|
"check_uat": {
|
|
114
78
|
"type": "decision",
|
|
115
79
|
"eval": "ctx.project.uat_status",
|
|
116
80
|
"edges": [
|
|
117
|
-
{ "value":
|
|
81
|
+
{ "value": null, "target": "to_test" },
|
|
82
|
+
{ "value": "passed", "target": "check_all_phases" },
|
|
118
83
|
{ "default": true, "target": "to_debug_from_uat" }
|
|
119
84
|
]
|
|
120
85
|
},
|
|
121
86
|
"check_all_phases": {
|
|
122
87
|
"type": "decision",
|
|
123
|
-
"
|
|
88
|
+
"description": "Check if all phases in milestone have completed execute artifacts",
|
|
89
|
+
"eval": "ctx.project.all_phases_executed",
|
|
124
90
|
"edges": [
|
|
125
|
-
{
|
|
126
|
-
|
|
127
|
-
"target": "to_milestone_close"
|
|
128
|
-
},
|
|
129
|
-
{ "default": true, "target": "to_phase_transition" }
|
|
91
|
+
{ "value": true, "target": "to_milestone_close" },
|
|
92
|
+
{ "default": true, "target": "to_analyze" }
|
|
130
93
|
]
|
|
131
94
|
},
|
|
132
95
|
"to_init": {
|
|
@@ -154,25 +117,20 @@
|
|
|
154
117
|
"status": "delegate",
|
|
155
118
|
"delegate_graph": "singles/verify"
|
|
156
119
|
},
|
|
157
|
-
"to_business_test": {
|
|
158
|
-
"type": "terminal",
|
|
159
|
-
"status": "delegate",
|
|
160
|
-
"delegate_graph": "singles/business-test"
|
|
161
|
-
},
|
|
162
120
|
"to_review": {
|
|
163
121
|
"type": "terminal",
|
|
164
122
|
"status": "delegate",
|
|
165
123
|
"delegate_graph": "singles/review"
|
|
166
124
|
},
|
|
167
|
-
"
|
|
125
|
+
"to_debug": {
|
|
168
126
|
"type": "terminal",
|
|
169
127
|
"status": "delegate",
|
|
170
|
-
"delegate_graph": "singles/
|
|
128
|
+
"delegate_graph": "singles/debug"
|
|
171
129
|
},
|
|
172
|
-
"
|
|
130
|
+
"to_test": {
|
|
173
131
|
"type": "terminal",
|
|
174
132
|
"status": "delegate",
|
|
175
|
-
"delegate_graph": "singles/
|
|
133
|
+
"delegate_graph": "singles/test"
|
|
176
134
|
},
|
|
177
135
|
"to_debug_from_uat": {
|
|
178
136
|
"type": "terminal",
|
|
@@ -185,11 +143,6 @@
|
|
|
185
143
|
"status": "delegate",
|
|
186
144
|
"delegate_graph": "execute-verify"
|
|
187
145
|
},
|
|
188
|
-
"to_phase_transition": {
|
|
189
|
-
"type": "terminal",
|
|
190
|
-
"status": "delegate",
|
|
191
|
-
"delegate_graph": "singles/phase-transition"
|
|
192
|
-
},
|
|
193
146
|
"to_milestone_close": {
|
|
194
147
|
"type": "terminal",
|
|
195
148
|
"status": "delegate",
|
|
@@ -62,18 +62,29 @@
|
|
|
62
62
|
"eval": "ctx.result.verification_status",
|
|
63
63
|
"edges": [
|
|
64
64
|
{ "value": "passed", "target": "done" },
|
|
65
|
-
{ "default": true, "target": "
|
|
65
|
+
{ "default": true, "target": "fix_plan" }
|
|
66
66
|
]
|
|
67
67
|
},
|
|
68
|
+
"fix_plan": {
|
|
69
|
+
"type": "command",
|
|
70
|
+
"cmd": "maestro-plan",
|
|
71
|
+
"description": "Re-plan to address verification gaps",
|
|
72
|
+
"args": "{phase} --gaps",
|
|
73
|
+
"auto_flag": "--auto",
|
|
74
|
+
"next": "fix_execute"
|
|
75
|
+
},
|
|
76
|
+
"fix_execute": {
|
|
77
|
+
"type": "command",
|
|
78
|
+
"cmd": "maestro-execute",
|
|
79
|
+
"description": "Re-execute from gap-fix plan",
|
|
80
|
+
"args": "{phase}",
|
|
81
|
+
"next": "verify",
|
|
82
|
+
"max_visits": 2
|
|
83
|
+
},
|
|
68
84
|
"done": {
|
|
69
85
|
"type": "terminal",
|
|
70
86
|
"status": "success",
|
|
71
87
|
"summary": "Brainstorm-driven pipeline completed successfully"
|
|
72
|
-
},
|
|
73
|
-
"done_with_issues": {
|
|
74
|
-
"type": "terminal",
|
|
75
|
-
"status": "paused",
|
|
76
|
-
"summary": "Brainstorm-driven pipeline completed with verification issues"
|
|
77
88
|
}
|
|
78
89
|
}
|
|
79
90
|
}
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
"$schema": "./chain-graph.schema.json",
|
|
3
3
|
"id": "full-lifecycle",
|
|
4
4
|
"name": "Full Lifecycle",
|
|
5
|
-
"description": "Plan -> Execute -> Verify -> Review -> Test ->
|
|
6
|
-
"version": "
|
|
7
|
-
"tags": ["lifecycle", "
|
|
5
|
+
"description": "Plan -> Execute -> Verify -> Review -> Test -> Milestone Audit/Complete with decision points",
|
|
6
|
+
"version": "2.0.0",
|
|
7
|
+
"tags": ["lifecycle", "milestone"],
|
|
8
8
|
"entry": "plan",
|
|
9
9
|
"inputs": {
|
|
10
|
-
"phase": { "type": "string", "required":
|
|
10
|
+
"phase": { "type": "string", "required": false },
|
|
11
11
|
"description": { "type": "string" }
|
|
12
12
|
},
|
|
13
13
|
"defaults": { "analyze": true },
|
|
@@ -38,21 +38,6 @@
|
|
|
38
38
|
"check_verify": {
|
|
39
39
|
"type": "decision",
|
|
40
40
|
"eval": "ctx.result.verification_status",
|
|
41
|
-
"edges": [
|
|
42
|
-
{ "value": "passed", "target": "business_test" },
|
|
43
|
-
{ "default": true, "target": "fix_plan" }
|
|
44
|
-
]
|
|
45
|
-
},
|
|
46
|
-
"business_test": {
|
|
47
|
-
"type": "command",
|
|
48
|
-
"cmd": "quality-business-test",
|
|
49
|
-
"description": "PRD-forward business testing with requirement traceability",
|
|
50
|
-
"args": "{phase} --auto",
|
|
51
|
-
"next": "check_business_test"
|
|
52
|
-
},
|
|
53
|
-
"check_business_test": {
|
|
54
|
-
"type": "decision",
|
|
55
|
-
"eval": "ctx.result.business_test_status",
|
|
56
41
|
"edges": [
|
|
57
42
|
{ "value": "passed", "target": "review" },
|
|
58
43
|
{ "default": true, "target": "fix_plan" }
|
|
@@ -101,7 +86,7 @@
|
|
|
101
86
|
"type": "decision",
|
|
102
87
|
"eval": "ctx.result.uat_status",
|
|
103
88
|
"edges": [
|
|
104
|
-
{ "value": "passed", "target": "
|
|
89
|
+
{ "value": "passed", "target": "milestone_audit" },
|
|
105
90
|
{ "default": true, "target": "debug" }
|
|
106
91
|
]
|
|
107
92
|
},
|
|
@@ -113,10 +98,24 @@
|
|
|
113
98
|
"next": "fix_execute",
|
|
114
99
|
"max_visits": 2
|
|
115
100
|
},
|
|
116
|
-
"
|
|
101
|
+
"milestone_audit": {
|
|
102
|
+
"type": "command",
|
|
103
|
+
"cmd": "maestro-milestone-audit",
|
|
104
|
+
"description": "Audit milestone for cross-phase integration gaps using artifact registry",
|
|
105
|
+
"next": "check_audit"
|
|
106
|
+
},
|
|
107
|
+
"check_audit": {
|
|
108
|
+
"type": "decision",
|
|
109
|
+
"eval": "ctx.result.audit_verdict",
|
|
110
|
+
"edges": [
|
|
111
|
+
{ "value": "PASS", "target": "milestone_complete" },
|
|
112
|
+
{ "default": true, "target": "fix_plan" }
|
|
113
|
+
]
|
|
114
|
+
},
|
|
115
|
+
"milestone_complete": {
|
|
117
116
|
"type": "command",
|
|
118
|
-
"cmd": "maestro-
|
|
119
|
-
"description": "
|
|
117
|
+
"cmd": "maestro-milestone-complete",
|
|
118
|
+
"description": "Archive scratch artifacts, move to milestone_history, advance to next milestone",
|
|
120
119
|
"next": "done"
|
|
121
120
|
},
|
|
122
121
|
"done": {
|
|
@@ -23,23 +23,23 @@
|
|
|
23
23
|
},
|
|
24
24
|
"analyze": {
|
|
25
25
|
"type": "command",
|
|
26
|
-
"cmd": "
|
|
27
|
-
"description": "Root cause analysis for the issue
|
|
28
|
-
"args": "{issue_id}",
|
|
26
|
+
"cmd": "maestro-analyze",
|
|
27
|
+
"description": "Root cause analysis for the issue via --gaps mode",
|
|
28
|
+
"args": "--gaps {issue_id}",
|
|
29
29
|
"next": "plan"
|
|
30
30
|
},
|
|
31
31
|
"plan": {
|
|
32
32
|
"type": "command",
|
|
33
|
-
"cmd": "
|
|
34
|
-
"description": "Generate
|
|
35
|
-
"args": "
|
|
33
|
+
"cmd": "maestro-plan",
|
|
34
|
+
"description": "Generate TASK files linked to issue via task_refs",
|
|
35
|
+
"args": "--gaps",
|
|
36
36
|
"next": "execute"
|
|
37
37
|
},
|
|
38
38
|
"execute": {
|
|
39
39
|
"type": "command",
|
|
40
|
-
"cmd": "
|
|
41
|
-
"description": "
|
|
42
|
-
"args": "
|
|
40
|
+
"cmd": "maestro-execute",
|
|
41
|
+
"description": "Wave-based execution with automatic issue status sync",
|
|
42
|
+
"args": "",
|
|
43
43
|
"next": "check_result"
|
|
44
44
|
},
|
|
45
45
|
"check_result": {
|
|
@@ -52,17 +52,17 @@
|
|
|
52
52
|
},
|
|
53
53
|
"retry_plan": {
|
|
54
54
|
"type": "command",
|
|
55
|
-
"cmd": "
|
|
55
|
+
"cmd": "maestro-plan",
|
|
56
56
|
"description": "Re-plan after execution failure with updated context",
|
|
57
|
-
"args": "
|
|
57
|
+
"args": "--gaps",
|
|
58
58
|
"next": "retry_execute",
|
|
59
59
|
"max_visits": 2
|
|
60
60
|
},
|
|
61
61
|
"retry_execute": {
|
|
62
62
|
"type": "command",
|
|
63
|
-
"cmd": "
|
|
63
|
+
"cmd": "maestro-execute",
|
|
64
64
|
"description": "Re-execute with revised plan",
|
|
65
|
-
"args": "
|
|
65
|
+
"args": "",
|
|
66
66
|
"next": "done",
|
|
67
67
|
"max_visits": 2
|
|
68
68
|
},
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"$schema": "./chain-graph.schema.json",
|
|
3
3
|
"id": "milestone-close",
|
|
4
4
|
"name": "Milestone Close",
|
|
5
|
-
"description": "Milestone Audit ->
|
|
6
|
-
"version": "
|
|
5
|
+
"description": "Milestone Audit -> Milestone Complete",
|
|
6
|
+
"version": "2.0.0",
|
|
7
7
|
"tags": ["milestone"],
|
|
8
8
|
"entry": "audit",
|
|
9
9
|
"inputs": {},
|
|
@@ -11,19 +11,32 @@
|
|
|
11
11
|
"audit": {
|
|
12
12
|
"type": "command",
|
|
13
13
|
"cmd": "maestro-milestone-audit",
|
|
14
|
-
"description": "Audit current milestone for cross-phase integration gaps",
|
|
15
|
-
"next": "
|
|
14
|
+
"description": "Audit current milestone using artifact registry for cross-phase integration gaps",
|
|
15
|
+
"next": "check_audit"
|
|
16
16
|
},
|
|
17
|
-
"
|
|
17
|
+
"check_audit": {
|
|
18
|
+
"type": "decision",
|
|
19
|
+
"eval": "ctx.result.audit_verdict",
|
|
20
|
+
"edges": [
|
|
21
|
+
{ "value": "PASS", "target": "complete" },
|
|
22
|
+
{ "default": true, "target": "failed" }
|
|
23
|
+
]
|
|
24
|
+
},
|
|
25
|
+
"complete": {
|
|
18
26
|
"type": "command",
|
|
19
|
-
"cmd": "maestro-
|
|
20
|
-
"description": "
|
|
27
|
+
"cmd": "maestro-milestone-complete",
|
|
28
|
+
"description": "Archive scratch artifacts to milestones/, move artifact entries to history, advance state",
|
|
21
29
|
"next": "done"
|
|
22
30
|
},
|
|
23
31
|
"done": {
|
|
24
32
|
"type": "terminal",
|
|
25
33
|
"status": "success",
|
|
26
34
|
"summary": "Milestone closed successfully"
|
|
35
|
+
},
|
|
36
|
+
"failed": {
|
|
37
|
+
"type": "terminal",
|
|
38
|
+
"status": "failed",
|
|
39
|
+
"summary": "Audit failed — fix integration gaps before completing milestone"
|
|
27
40
|
}
|
|
28
41
|
}
|
|
29
42
|
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./chain-graph.schema.json",
|
|
3
|
+
"id": "milestone-fork-merge",
|
|
4
|
+
"name": "Milestone Fork & Merge",
|
|
5
|
+
"description": "Fork a milestone into a worktree, run full lifecycle, then merge back",
|
|
6
|
+
"version": "1.0.0",
|
|
7
|
+
"tags": ["worktree", "milestone", "parallel"],
|
|
8
|
+
"entry": "fork",
|
|
9
|
+
"inputs": {
|
|
10
|
+
"milestone_num": { "type": "number", "required": true }
|
|
11
|
+
},
|
|
12
|
+
"nodes": {
|
|
13
|
+
"fork": {
|
|
14
|
+
"type": "command",
|
|
15
|
+
"cmd": "maestro-fork",
|
|
16
|
+
"description": "Create worktree for milestone with all phases",
|
|
17
|
+
"args": "-m {milestone_num}",
|
|
18
|
+
"next": "lifecycle_in_worktree"
|
|
19
|
+
},
|
|
20
|
+
"lifecycle_in_worktree": {
|
|
21
|
+
"type": "command",
|
|
22
|
+
"cmd": "maestro",
|
|
23
|
+
"description": "Run sequential lifecycle for all phases in worktree (analyze, plan, execute, verify, transition per phase)",
|
|
24
|
+
"args": "continue",
|
|
25
|
+
"cwd": ".worktrees/m{milestone_num}-{milestone_slug}",
|
|
26
|
+
"next": "merge_decision"
|
|
27
|
+
},
|
|
28
|
+
"merge_decision": {
|
|
29
|
+
"type": "decision",
|
|
30
|
+
"description": "Check if all milestone phases are completed",
|
|
31
|
+
"condition": "all_phases_completed",
|
|
32
|
+
"branches": {
|
|
33
|
+
"true": "merge",
|
|
34
|
+
"false": "lifecycle_in_worktree"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"merge": {
|
|
38
|
+
"type": "command",
|
|
39
|
+
"cmd": "maestro-merge",
|
|
40
|
+
"description": "Merge milestone worktree back into main",
|
|
41
|
+
"args": "-m {milestone_num}",
|
|
42
|
+
"next": "done"
|
|
43
|
+
},
|
|
44
|
+
"done": {
|
|
45
|
+
"type": "terminal",
|
|
46
|
+
"status": "success",
|
|
47
|
+
"summary": "Milestone {milestone_num} forked, developed, and merged successfully"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -53,18 +53,29 @@
|
|
|
53
53
|
"eval": "ctx.result.verification_status",
|
|
54
54
|
"edges": [
|
|
55
55
|
{ "value": "passed", "target": "done" },
|
|
56
|
-
{ "default": true, "target": "
|
|
56
|
+
{ "default": true, "target": "fix_plan" }
|
|
57
57
|
]
|
|
58
58
|
},
|
|
59
|
+
"fix_plan": {
|
|
60
|
+
"type": "command",
|
|
61
|
+
"cmd": "maestro-plan",
|
|
62
|
+
"description": "Re-plan to address verification gaps",
|
|
63
|
+
"args": "{phase} --gaps",
|
|
64
|
+
"auto_flag": "--auto",
|
|
65
|
+
"next": "fix_execute"
|
|
66
|
+
},
|
|
67
|
+
"fix_execute": {
|
|
68
|
+
"type": "command",
|
|
69
|
+
"cmd": "maestro-execute",
|
|
70
|
+
"description": "Re-execute from gap-fix plan",
|
|
71
|
+
"args": "{phase}",
|
|
72
|
+
"next": "verify",
|
|
73
|
+
"max_visits": 2
|
|
74
|
+
},
|
|
59
75
|
"done": {
|
|
60
76
|
"type": "terminal",
|
|
61
77
|
"status": "success",
|
|
62
78
|
"summary": "Roadmap-driven pipeline completed successfully"
|
|
63
|
-
},
|
|
64
|
-
"done_with_issues": {
|
|
65
|
-
"type": "terminal",
|
|
66
|
-
"status": "paused",
|
|
67
|
-
"summary": "Roadmap-driven pipeline completed with verification issues"
|
|
68
79
|
}
|
|
69
80
|
}
|
|
70
81
|
}
|