maestro-flow 0.3.37 → 0.3.39
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/agents/workflow-analyzer.md +2 -0
- package/.claude/agents/workflow-debugger.md +2 -0
- package/.claude/agents/workflow-executor.md +2 -0
- package/.claude/agents/workflow-integration-checker.md +1 -0
- package/.claude/agents/workflow-nyquist-auditor.md +1 -0
- package/.claude/agents/workflow-planner.md +2 -0
- package/.claude/agents/workflow-reviewer.md +2 -0
- package/.claude/agents/workflow-verifier.md +2 -0
- package/.claude/commands/learn-decompose.md +176 -176
- package/.claude/commands/learn-follow.md +167 -167
- package/.claude/commands/learn-investigate.md +221 -221
- package/.claude/commands/learn-retro.md +303 -303
- package/.claude/commands/learn-second-opinion.md +167 -167
- package/.claude/commands/maestro-amend.md +300 -300
- package/.claude/commands/maestro-analyze.md +126 -126
- package/.claude/commands/maestro-brainstorm.md +100 -100
- package/.claude/commands/maestro-composer.md +354 -354
- package/.claude/commands/maestro-execute.md +120 -114
- package/.claude/commands/maestro-fork.md +86 -86
- package/.claude/commands/maestro-init.md +78 -78
- package/.claude/commands/maestro-learn.md +140 -140
- package/.claude/commands/maestro-link-coordinate.md +1 -1
- package/.claude/commands/maestro-merge.md +61 -61
- package/.claude/commands/maestro-milestone-release.md +96 -96
- package/.claude/commands/maestro-overlay.md +178 -178
- package/.claude/commands/maestro-plan.md +150 -138
- package/.claude/commands/maestro-player.md +404 -404
- package/.claude/commands/maestro-quick.md +56 -56
- package/.claude/commands/maestro-ralph-execute.md +7 -18
- package/.claude/commands/maestro-ralph.md +9 -3
- package/.claude/commands/maestro-roadmap.md +1 -1
- package/.claude/commands/maestro-ui-design.md +93 -93
- package/.claude/commands/maestro-update.md +176 -176
- package/.claude/commands/maestro-verify.md +96 -90
- package/.claude/commands/maestro.md +121 -121
- package/.claude/commands/manage-codebase-rebuild.md +75 -75
- package/.claude/commands/manage-codebase-refresh.md +57 -57
- package/.claude/commands/manage-harvest.md +94 -94
- package/.claude/commands/manage-issue-discover.md +77 -77
- package/.claude/commands/manage-issue.md +73 -73
- package/.claude/commands/manage-knowhow-capture.md +193 -193
- package/.claude/commands/manage-knowhow.md +77 -77
- package/.claude/commands/manage-learn.md +67 -67
- package/.claude/commands/manage-status.md +51 -51
- package/.claude/commands/manage-wiki.md +62 -62
- package/.claude/commands/quality-auto-test.md +1 -1
- package/.claude/commands/quality-debug.md +121 -115
- package/.claude/commands/quality-refactor.md +55 -55
- package/.claude/commands/quality-retrospective.md +78 -78
- package/.claude/commands/quality-review.md +114 -108
- package/.claude/commands/quality-sync.md +51 -51
- package/.claude/commands/quality-test.md +103 -103
- package/.claude/commands/spec-add.md +49 -49
- package/.claude/commands/spec-load.md +51 -51
- package/.claude/commands/spec-remove.md +51 -51
- package/.claude/commands/spec-setup.md +51 -51
- package/.claude/commands/wiki-connect.md +62 -62
- package/.claude/commands/wiki-digest.md +69 -69
- package/.codex/skills/learn-decompose/SKILL.md +113 -113
- package/.codex/skills/learn-follow/SKILL.md +1 -1
- package/.codex/skills/learn-investigate/SKILL.md +83 -83
- package/.codex/skills/learn-retro/SKILL.md +83 -83
- package/.codex/skills/learn-second-opinion/SKILL.md +86 -86
- package/.codex/skills/maestro/SKILL.md +304 -304
- package/.codex/skills/maestro-analyze/SKILL.md +9 -8
- package/.codex/skills/maestro-brainstorm/SKILL.md +442 -397
- package/.codex/skills/maestro-composer/SKILL.md +213 -213
- package/.codex/skills/maestro-execute/SKILL.md +346 -318
- package/.codex/skills/maestro-fork/SKILL.md +56 -2
- package/.codex/skills/maestro-init/SKILL.md +40 -16
- package/.codex/skills/maestro-learn/SKILL.md +80 -80
- package/.codex/skills/maestro-link-coordinate/SKILL.md +257 -257
- package/.codex/skills/maestro-merge/SKILL.md +1 -1
- package/.codex/skills/maestro-milestone-audit/SKILL.md +1 -1
- package/.codex/skills/maestro-milestone-complete/SKILL.md +40 -9
- package/.codex/skills/maestro-milestone-release/SKILL.md +70 -70
- package/.codex/skills/maestro-overlay/SKILL.md +1 -1
- package/.codex/skills/maestro-plan/SKILL.md +19 -4
- package/.codex/skills/maestro-player/SKILL.md +323 -323
- package/.codex/skills/maestro-quick/SKILL.md +1 -1
- package/.codex/skills/maestro-ralph/SKILL.md +681 -578
- package/.codex/skills/maestro-roadmap/SKILL.md +518 -468
- package/.codex/skills/maestro-ui-design/SKILL.md +109 -12
- package/.codex/skills/maestro-verify/SKILL.md +27 -9
- package/.codex/skills/manage-codebase-rebuild/SKILL.md +3 -2
- package/.codex/skills/manage-codebase-refresh/SKILL.md +1 -1
- package/.codex/skills/manage-harvest/SKILL.md +91 -91
- package/.codex/skills/manage-issue/SKILL.md +19 -6
- package/.codex/skills/manage-issue-discover/SKILL.md +1 -1
- package/.codex/skills/manage-knowhow/SKILL.md +95 -95
- package/.codex/skills/manage-knowhow-capture/SKILL.md +110 -110
- package/.codex/skills/manage-learn/SKILL.md +1 -1
- package/.codex/skills/manage-status/SKILL.md +1 -1
- package/.codex/skills/manage-wiki/SKILL.md +55 -55
- package/.codex/skills/quality-auto-test/SKILL.md +547 -547
- package/.codex/skills/quality-debug/SKILL.md +339 -334
- package/.codex/skills/quality-refactor/SKILL.md +1 -1
- package/.codex/skills/quality-retrospective/SKILL.md +292 -292
- package/.codex/skills/quality-review/SKILL.md +365 -364
- package/.codex/skills/quality-sync/SKILL.md +1 -1
- package/.codex/skills/quality-test/SKILL.md +498 -498
- package/.codex/skills/spec-add/SKILL.md +101 -101
- package/.codex/skills/spec-load/SKILL.md +77 -77
- package/.codex/skills/spec-map/SKILL.md +1 -1
- package/.codex/skills/spec-remove/SKILL.md +69 -69
- package/.codex/skills/spec-setup/SKILL.md +1 -1
- package/.codex/skills/team-coordinate/SKILL.md +2 -1
- package/.codex/skills/team-executor/SKILL.md +116 -115
- package/.codex/skills/team-lifecycle-v4/SKILL.md +2 -1
- package/.codex/skills/team-lifecycle-v4/instructions/agent-instruction.md +14 -6
- package/.codex/skills/team-lifecycle-v4/roles/analyst/role.md +16 -4
- package/.codex/skills/team-lifecycle-v4/roles/executor/commands/implement.md +7 -1
- package/.codex/skills/team-lifecycle-v4/roles/planner/role.md +16 -4
- package/.codex/skills/team-lifecycle-v4/roles/writer/role.md +8 -2
- package/.codex/skills/team-quality-assurance/SKILL.md +2 -1
- package/.codex/skills/team-quality-assurance/roles/scout/role.md +9 -2
- package/.codex/skills/team-review/SKILL.md +2 -1
- package/.codex/skills/team-review/roles/reviewer/role.md +10 -1
- package/.codex/skills/team-review/roles/scanner/role.md +10 -1
- package/.codex/skills/team-tech-debt/SKILL.md +144 -143
- package/.codex/skills/team-tech-debt/roles/executor/role.md +9 -5
- package/.codex/skills/team-tech-debt/roles/scanner/role.md +10 -0
- package/.codex/skills/team-tech-debt/roles/validator/role.md +8 -2
- package/.codex/skills/team-testing/SKILL.md +2 -1
- package/.codex/skills/team-testing/roles/executor/role.md +8 -2
- package/.codex/skills/team-testing/roles/generator/role.md +8 -2
- package/.codex/skills/wiki-connect/SKILL.md +73 -73
- package/.codex/skills/wiki-digest/SKILL.md +87 -87
- package/README.md +6 -0
- package/README.zh-CN.md +6 -0
- package/dashboard/dist-server/dashboard/src/server/agents/claude-code-adapter.js +4 -0
- package/dashboard/dist-server/dashboard/src/server/agents/claude-code-adapter.js.map +1 -1
- package/dashboard/dist-server/dashboard/src/server/agents/codex-cli-adapter.js +118 -7
- package/dashboard/dist-server/dashboard/src/server/agents/codex-cli-adapter.js.map +1 -1
- package/dashboard/dist-server/shared/agent-types.d.ts +2 -0
- package/dashboard/dist-server/src/agents/cli-agent-runner.d.ts +2 -0
- package/dashboard/dist-server/src/agents/cli-agent-runner.js +4 -0
- package/dashboard/dist-server/src/agents/cli-agent-runner.js.map +1 -1
- package/dashboard/dist-server/src/commands/delegate.d.ts +2 -0
- package/dashboard/dist-server/src/commands/delegate.js +18 -0
- package/dashboard/dist-server/src/commands/delegate.js.map +1 -1
- package/dashboard/dist-server/src/config/cli-tools-config.d.ts +6 -0
- package/dashboard/dist-server/src/config/cli-tools-config.js +2 -0
- package/dashboard/dist-server/src/config/cli-tools-config.js.map +1 -1
- package/dist/shared/agent-types.d.ts +2 -0
- package/dist/shared/agent-types.d.ts.map +1 -1
- package/dist/src/agents/cli-agent-runner.d.ts +2 -0
- package/dist/src/agents/cli-agent-runner.d.ts.map +1 -1
- package/dist/src/agents/cli-agent-runner.js +4 -0
- package/dist/src/agents/cli-agent-runner.js.map +1 -1
- package/dist/src/commands/config.d.ts.map +1 -1
- package/dist/src/commands/config.js +29 -1
- package/dist/src/commands/config.js.map +1 -1
- package/dist/src/commands/delegate.d.ts +2 -0
- package/dist/src/commands/delegate.d.ts.map +1 -1
- package/dist/src/commands/delegate.js +18 -0
- package/dist/src/commands/delegate.js.map +1 -1
- package/dist/src/commands/launcher.d.ts.map +1 -1
- package/dist/src/commands/launcher.js +27 -4
- package/dist/src/commands/launcher.js.map +1 -1
- package/dist/src/config/cli-tools-config.d.ts +6 -0
- package/dist/src/config/cli-tools-config.d.ts.map +1 -1
- package/dist/src/config/cli-tools-config.js +2 -0
- package/dist/src/config/cli-tools-config.js.map +1 -1
- package/dist/src/core/overlay/applier.d.ts.map +1 -1
- package/dist/src/core/overlay/applier.js +65 -5
- package/dist/src/core/overlay/applier.js.map +1 -1
- package/dist/src/core/overlay/loader.d.ts.map +1 -1
- package/dist/src/core/overlay/loader.js +9 -4
- package/dist/src/core/overlay/loader.js.map +1 -1
- package/dist/src/core/overlay/types.d.ts +2 -0
- package/dist/src/core/overlay/types.d.ts.map +1 -1
- package/dist/src/core/overlay/types.js +2 -0
- package/dist/src/core/overlay/types.js.map +1 -1
- package/dist/src/tui/tools-ui/ToolsDashboard.d.ts.map +1 -1
- package/dist/src/tui/tools-ui/ToolsDashboard.js +1 -1
- package/dist/src/tui/tools-ui/ToolsDashboard.js.map +1 -1
- package/dist/src/tui/tools-ui/ToolsOverview.d.ts.map +1 -1
- package/dist/src/tui/tools-ui/ToolsOverview.js +51 -4
- package/dist/src/tui/tools-ui/ToolsOverview.js.map +1 -1
- package/package.json +1 -1
- package/shared/agent-types.ts +2 -0
- package/workflows/delegate-protocol.codex.md +65 -0
- package/workflows/issue-analyze.md +2 -3
- package/workflows/issue-gaps-analyze.codex.md +260 -0
- package/workflows/issue-gaps-analyze.md +214 -0
|
@@ -1,138 +1,150 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: maestro-plan
|
|
3
|
-
description:
|
|
4
|
-
argument-hint: "[phase] [--collab] [--spec SPEC-xxx] [-y] [--gaps] [--dir <path>] [--revise [instructions]] [--check <plan-dir>]"
|
|
5
|
-
allowed-tools:
|
|
6
|
-
- Read
|
|
7
|
-
- Write
|
|
8
|
-
- Edit
|
|
9
|
-
- Bash
|
|
10
|
-
- Glob
|
|
11
|
-
- Grep
|
|
12
|
-
- Agent
|
|
13
|
-
- AskUserQuestion
|
|
14
|
-
---
|
|
15
|
-
<purpose>
|
|
16
|
-
Create, revise, or verify an execution plan through a 5-stage pipeline: Exploration, Clarification, Planning, Plan Checking, and Confirmation. Produces plan.json with waves, task definitions, and user-confirmed execution strategy.
|
|
17
|
-
|
|
18
|
-
Supports three modes:
|
|
19
|
-
- **Create** (default): Build plan from analysis context or phase requirements
|
|
20
|
-
- **Revise** (`--revise`): Incrementally modify existing plan — edit tasks, adjust waves, add/remove tasks
|
|
21
|
-
- **Check** (`--check`): Standalone plan verification — run plan-checker against existing plan
|
|
22
|
-
|
|
23
|
-
All plan output goes to `.workflow/scratch/{YYYYMMDD}-plan-[P{N}-|M{N}-]{slug}/`. Date-first ordering enables chronological sorting. Scope prefix in directory name (`P{N}` for phase, `M{N}` for milestone, omit for adhoc/standalone) enables fallback identification. Registers PLN artifact in state.json. Performs collision detection against other plans in same milestone.
|
|
24
|
-
</purpose>
|
|
25
|
-
|
|
26
|
-
<required_reading>
|
|
27
|
-
@~/.maestro/workflows/plan.md
|
|
28
|
-
</required_reading>
|
|
29
|
-
|
|
30
|
-
<deferred_reading>
|
|
31
|
-
- [plan.json](~/.maestro/templates/plan.json) — read when generating plan output
|
|
32
|
-
- [task.json](~/.maestro/templates/task.json) — read when generating task files
|
|
33
|
-
- [state.json](~/.maestro/templates/state.json) — read when registering artifact
|
|
34
|
-
</deferred_reading>
|
|
35
|
-
|
|
36
|
-
<context>
|
|
37
|
-
$ARGUMENTS — phase number, or no args for milestone-wide planning, with optional flags.
|
|
38
|
-
|
|
39
|
-
Scope routing, base flags (`--collab`, `--spec`, `-y`, `--gaps`, `--dir`), output directory format, and artifact registration are defined in workflow plan.md.
|
|
40
|
-
|
|
41
|
-
**Command-level flags** (extensions beyond workflow base):
|
|
42
|
-
- `--revise [instructions]` -- See workflow plan.md § Revise Mode
|
|
43
|
-
- `--check <plan-dir>` -- See workflow plan.md § Check Mode
|
|
44
|
-
|
|
45
|
-
**Upstream context:**
|
|
46
|
-
- Reads `context.md` from prior analyze artifact (auto-discovered from state.json or via --dir)
|
|
47
|
-
- Reads `conclusions.json` if available (implementation_scope seeds task generation)
|
|
48
|
-
</context>
|
|
49
|
-
|
|
50
|
-
<execution>
|
|
51
|
-
### Pre-flight: team conflict check
|
|
52
|
-
|
|
53
|
-
Before starting the plan pipeline, run:
|
|
54
|
-
```
|
|
55
|
-
Bash("maestro collab preflight --phase <phase-number>")
|
|
56
|
-
```
|
|
57
|
-
If exit code is 1, present warnings and ask whether to proceed.
|
|
58
|
-
|
|
59
|
-
Follow '~/.maestro/workflows/plan.md' completely.
|
|
60
|
-
|
|
61
|
-
###
|
|
62
|
-
|
|
63
|
-
During P1 Context Collection, after loading context files
|
|
64
|
-
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
display "
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
</
|
|
1
|
+
---
|
|
2
|
+
name: maestro-plan
|
|
3
|
+
description: Plan phase execution with exploration and verification
|
|
4
|
+
argument-hint: "[phase] [--collab] [--spec SPEC-xxx] [-y] [--gaps] [--dir <path>] [--revise [instructions]] [--check <plan-dir>]"
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Write
|
|
8
|
+
- Edit
|
|
9
|
+
- Bash
|
|
10
|
+
- Glob
|
|
11
|
+
- Grep
|
|
12
|
+
- Agent
|
|
13
|
+
- AskUserQuestion
|
|
14
|
+
---
|
|
15
|
+
<purpose>
|
|
16
|
+
Create, revise, or verify an execution plan through a 5-stage pipeline: Exploration, Clarification, Planning, Plan Checking, and Confirmation. Produces plan.json with waves, task definitions, and user-confirmed execution strategy.
|
|
17
|
+
|
|
18
|
+
Supports three modes:
|
|
19
|
+
- **Create** (default): Build plan from analysis context or phase requirements
|
|
20
|
+
- **Revise** (`--revise`): Incrementally modify existing plan — edit tasks, adjust waves, add/remove tasks
|
|
21
|
+
- **Check** (`--check`): Standalone plan verification — run plan-checker against existing plan
|
|
22
|
+
|
|
23
|
+
All plan output goes to `.workflow/scratch/{YYYYMMDD}-plan-[P{N}-|M{N}-]{slug}/`. Date-first ordering enables chronological sorting. Scope prefix in directory name (`P{N}` for phase, `M{N}` for milestone, omit for adhoc/standalone) enables fallback identification. Registers PLN artifact in state.json. Performs collision detection against other plans in same milestone.
|
|
24
|
+
</purpose>
|
|
25
|
+
|
|
26
|
+
<required_reading>
|
|
27
|
+
@~/.maestro/workflows/plan.md
|
|
28
|
+
</required_reading>
|
|
29
|
+
|
|
30
|
+
<deferred_reading>
|
|
31
|
+
- [plan.json](~/.maestro/templates/plan.json) — read when generating plan output
|
|
32
|
+
- [task.json](~/.maestro/templates/task.json) — read when generating task files
|
|
33
|
+
- [state.json](~/.maestro/templates/state.json) — read when registering artifact
|
|
34
|
+
</deferred_reading>
|
|
35
|
+
|
|
36
|
+
<context>
|
|
37
|
+
$ARGUMENTS — phase number, or no args for milestone-wide planning, with optional flags.
|
|
38
|
+
|
|
39
|
+
Scope routing, base flags (`--collab`, `--spec`, `-y`, `--gaps`, `--dir`), output directory format, and artifact registration are defined in workflow plan.md.
|
|
40
|
+
|
|
41
|
+
**Command-level flags** (extensions beyond workflow base):
|
|
42
|
+
- `--revise [instructions]` -- See workflow plan.md § Revise Mode
|
|
43
|
+
- `--check <plan-dir>` -- See workflow plan.md § Check Mode
|
|
44
|
+
|
|
45
|
+
**Upstream context:**
|
|
46
|
+
- Reads `context.md` from prior analyze artifact (auto-discovered from state.json or via --dir)
|
|
47
|
+
- Reads `conclusions.json` if available (implementation_scope seeds task generation)
|
|
48
|
+
</context>
|
|
49
|
+
|
|
50
|
+
<execution>
|
|
51
|
+
### Pre-flight: team conflict check
|
|
52
|
+
|
|
53
|
+
Before starting the plan pipeline, run:
|
|
54
|
+
```
|
|
55
|
+
Bash("maestro collab preflight --phase <phase-number>")
|
|
56
|
+
```
|
|
57
|
+
If exit code is 1, present warnings and ask whether to proceed.
|
|
58
|
+
|
|
59
|
+
Follow '~/.maestro/workflows/plan.md' completely.
|
|
60
|
+
|
|
61
|
+
### Codebase Docs Loading (P1 addition)
|
|
62
|
+
|
|
63
|
+
During P1 Context Collection, after loading context files, load codebase documentation if available:
|
|
64
|
+
|
|
65
|
+
```
|
|
66
|
+
IF exists(.workflow/codebase/doc-index.json):
|
|
67
|
+
codebase_ctx = Read(.workflow/codebase/ARCHITECTURE.md) + Read(.workflow/codebase/FEATURES.md)
|
|
68
|
+
Pass codebase_ctx to planner agent as structural context
|
|
69
|
+
ELSE:
|
|
70
|
+
display "W004: Codebase docs unavailable, continuing with code exploration only"
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
### Wiki Knowledge Search (P1 addition)
|
|
74
|
+
|
|
75
|
+
During P1 Context Collection, after loading context files and before parallel exploration (step 5), search the wiki for prior knowledge related to the phase:
|
|
76
|
+
|
|
77
|
+
```
|
|
78
|
+
phase_keywords = extract key terms from goal/title (2-5 terms)
|
|
79
|
+
wiki_result = Bash("maestro wiki search ${phase_keywords} --json 2>/dev/null")
|
|
80
|
+
|
|
81
|
+
IF wiki_result exit code != 0 OR empty:
|
|
82
|
+
display "W003: Wiki search unavailable, continuing without prior knowledge"
|
|
83
|
+
ELSE:
|
|
84
|
+
entries = JSON.parse(wiki_result).entries (limit to first 10)
|
|
85
|
+
wiki_context = structured block for downstream stages
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
### Issue Linkback (--gaps mode)
|
|
89
|
+
|
|
90
|
+
After plan generation and checking, if `--gaps` mode was used, link TASK files back to issues bidirectionally:
|
|
91
|
+
|
|
92
|
+
```
|
|
93
|
+
For each created TASK-{NNN}.json that has issue_id:
|
|
94
|
+
Update corresponding issue in .workflow/issues/issues.jsonl:
|
|
95
|
+
task_refs: append TASK-{NNN} to array
|
|
96
|
+
task_plan_dir: relative path to .task/ directory
|
|
97
|
+
status: "planned"
|
|
98
|
+
updated_at: now()
|
|
99
|
+
Append history entry: { action: "planned", at: <ISO>, by: "maestro-plan", summary: "Linked to TASK-{NNN}" }
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
This ensures issue → TASK traceability. The `task_refs[]` and `task_plan_dir` fields on the issue allow the dashboard to resolve and display associated TASK details.
|
|
103
|
+
|
|
104
|
+
**Report format on completion:**
|
|
105
|
+
|
|
106
|
+
```
|
|
107
|
+
=== PLAN READY ===
|
|
108
|
+
Phase: {phase_name}
|
|
109
|
+
Tasks: {task_count} tasks in {wave_count} waves
|
|
110
|
+
Check: {checker_status} (iteration {check_count}/{max_checks})
|
|
111
|
+
Collision: {collision_status}
|
|
112
|
+
|
|
113
|
+
Plan: scratch/{YYYYMMDD}-plan-P{N}-{slug}/plan.json
|
|
114
|
+
Tasks: scratch/{YYYYMMDD}-plan-P{N}-{slug}/.task/TASK-*.json
|
|
115
|
+
|
|
116
|
+
Next steps:
|
|
117
|
+
/maestro-execute -- Execute the plan
|
|
118
|
+
/maestro-execute --dir {dir} -- Execute specific plan
|
|
119
|
+
/maestro-plan {phase} -- Re-plan with modifications
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
### Mode: Revise / Check
|
|
123
|
+
|
|
124
|
+
Follow workflow plan.md § "Revise Mode" and § "Check Mode" respectively. These modes bypass the standard P1-P5 create pipeline.
|
|
125
|
+
</execution>
|
|
126
|
+
|
|
127
|
+
<error_codes>
|
|
128
|
+
| Code | Severity | Condition | Recovery |
|
|
129
|
+
|------|----------|-----------|----------|
|
|
130
|
+
| E001 | error | No args and no roadmap (cannot determine scope) | Provide phase number or topic, or create roadmap |
|
|
131
|
+
| E003 | error | --gaps requires prior verification/issues to exist | Run maestro-verify first |
|
|
132
|
+
| E004 | error | No plan found to revise (--revise without target) | Use --dir to specify plan, or create plan first |
|
|
133
|
+
| E005 | error | Plan directory not found (--check) | Check path, use --dir |
|
|
134
|
+
| W001 | warning | Exploration agent returned incomplete results | Retry exploration or proceed with available context |
|
|
135
|
+
| W002 | warning | Plan-checker found minor issues, continuing | Review plan-checker feedback, adjust plan if needed |
|
|
136
|
+
| W003 | warning | Wiki search unavailable or returned no results | Continue without prior knowledge context |
|
|
137
|
+
| W004 | warning | Collision detected with existing plan | Review colliding files, confirm or adjust scope |
|
|
138
|
+
</error_codes>
|
|
139
|
+
|
|
140
|
+
<success_criteria>
|
|
141
|
+
- [ ] plan.json written to scratch directory with summary, approach, task_ids, waves (with phase labels)
|
|
142
|
+
- [ ] .task/TASK-*.json files created for each task
|
|
143
|
+
- [ ] Every task has `read_first[]` with at least the file being modified + source of truth files
|
|
144
|
+
- [ ] Every task has `convergence.criteria[]` with grep-verifiable conditions (no subjective language)
|
|
145
|
+
- [ ] Every task `action` and `implementation` contain concrete values (no "align X with Y")
|
|
146
|
+
- [ ] Collision detection executed against same-milestone plans (non-blocking)
|
|
147
|
+
- [ ] Plan-checker passed (or minor issues acknowledged)
|
|
148
|
+
- [ ] User confirmation captured (execute/modify/cancel)
|
|
149
|
+
- [ ] Artifact registered in state.json with correct scope/milestone/phase/depends_on
|
|
150
|
+
</success_criteria>
|