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,468 +1,518 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: maestro-roadmap
|
|
3
|
-
description:
|
|
4
|
-
argument-hint: "\"<requirements>\" [--mode light|full] [-y|--yes] [--phases N] [--skip-research] [--from-brainstorm SESSION-ID]"
|
|
5
|
-
allowed-tools: spawn_agents_on_csv, Read, Write, Edit, Bash, Glob, Grep,
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
<purpose>
|
|
9
|
-
Unified 2-wave roadmap generation using `spawn_agents_on_csv` with dual execution modes:
|
|
10
|
-
|
|
11
|
-
- **Light mode** (default): Wave 1 runs parallel requirement analysis agents (scope, risk, dependency). Wave 2 runs roadmap assembly agent producing `roadmap.md` with phases, milestones, and success criteria.
|
|
12
|
-
- **Full mode** (`--mode full`): Wave 1 runs parallel research agents (domain, competitive, tech stack). Wave 2 runs a single synthesis agent producing the 7-phase specification document chain (product brief, PRD, architecture, epics, roadmap).
|
|
13
|
-
|
|
14
|
-
**Common workflow**: Parse Input → Parallel Analysis/Research → Sequential Assembly/Synthesis → Output
|
|
15
|
-
|
|
16
|
-
```
|
|
17
|
-
+---------------------------------------------------------------------------+
|
|
18
|
-
| ROADMAP CSV WAVE WORKFLOW (DUAL MODE) |
|
|
19
|
-
+---------------------------------------------------------------------------+
|
|
20
|
-
| |
|
|
21
|
-
| Phase 1: Input Parsing + CSV Generation |
|
|
22
|
-
| +-- Parse requirement/idea from arguments |
|
|
23
|
-
| +-- Detect input type (text, @file, brainstorm import) |
|
|
24
|
-
| +-- Detect mode: light (default) or full (--mode full) |
|
|
25
|
-
| +-- Codebase detection (conditional exploration) |
|
|
26
|
-
| +-- Generate mode-specific tasks.csv |
|
|
27
|
-
| +-- User validates breakdown (skip if -y) |
|
|
28
|
-
| |
|
|
29
|
-
| Phase 2: Wave Execution Engine |
|
|
30
|
-
| +-- Wave 1: Analysis/Research (parallel) |
|
|
31
|
-
| | [Light] scope, risk, dependency analysis |
|
|
32
|
-
| | [Full] domain, competitive, tech stack research |
|
|
33
|
-
| +-- Wave 2: Assembly/Synthesis (sequential) |
|
|
34
|
-
| | [Light] roadmap assembly agent → roadmap.md |
|
|
35
|
-
| | [Full] 7-phase document chain → spec package + roadmap.md |
|
|
36
|
-
| +-- discoveries.ndjson shared across waves (append-only) |
|
|
37
|
-
| |
|
|
38
|
-
| Phase 3: Results Aggregation |
|
|
39
|
-
| +-- Export results.csv |
|
|
40
|
-
| +-- Interactive refinement (skip if -y) |
|
|
41
|
-
| +-- [Full only] Readiness check (4 dimensions) |
|
|
42
|
-
| +-- Generate context.md |
|
|
43
|
-
| +-- Write .workflow/roadmap.md |
|
|
44
|
-
| +-- Display summary with next steps |
|
|
45
|
-
| |
|
|
46
|
-
+---------------------------------------------------------------------------+
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
$maestro-roadmap
|
|
59
|
-
$maestro-roadmap
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
$maestro-roadmap --mode full -
|
|
64
|
-
$maestro-roadmap --mode full
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
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
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
| `
|
|
155
|
-
| `
|
|
156
|
-
| `
|
|
157
|
-
| `
|
|
158
|
-
| `
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
+--
|
|
176
|
-
+--
|
|
177
|
-
+--
|
|
178
|
-
|
|
179
|
-
| +--
|
|
180
|
-
| +--
|
|
181
|
-
+--
|
|
182
|
-
|
|
183
|
-
| +--
|
|
184
|
-
+--
|
|
185
|
-
|
|
186
|
-
| +--
|
|
187
|
-
+--
|
|
188
|
-
+--
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
- `
|
|
196
|
-
- `
|
|
197
|
-
- `
|
|
198
|
-
- `
|
|
199
|
-
- `
|
|
200
|
-
- `
|
|
201
|
-
- `
|
|
202
|
-
- `
|
|
203
|
-
- `
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
- **
|
|
209
|
-
-
|
|
210
|
-
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
**
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
|
229
|
-
|
|
230
|
-
|
|
|
231
|
-
|
|
|
232
|
-
|
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
**
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
**
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
**
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
**
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
{
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
-
|
|
355
|
-
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
Phases:
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
```
|
|
374
|
-
|
|
375
|
-
**
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
|
431
|
-
|
|
|
432
|
-
|
|
|
433
|
-
|
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
|
440
|
-
|
|
441
|
-
|
|
|
442
|
-
|
|
|
443
|
-
|
|
|
444
|
-
|
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
1
|
+
---
|
|
2
|
+
name: maestro-roadmap
|
|
3
|
+
description: Generate roadmap from requirements (light or full mode)
|
|
4
|
+
argument-hint: "\"<requirements>\" [--mode light|full] [-y|--yes] [-c] [--phases N] [--skip-research] [--from-brainstorm SESSION-ID] [--revise [instructions]] [--review]"
|
|
5
|
+
allowed-tools: spawn_agents_on_csv, Read, Write, Edit, Bash, Glob, Grep, request_user_input
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
<purpose>
|
|
9
|
+
Unified 2-wave roadmap generation using `spawn_agents_on_csv` with dual execution modes:
|
|
10
|
+
|
|
11
|
+
- **Light mode** (default): Wave 1 runs parallel requirement analysis agents (scope, risk, dependency). Wave 2 runs roadmap assembly agent producing `roadmap.md` with phases, milestones, and success criteria.
|
|
12
|
+
- **Full mode** (`--mode full`): Wave 1 runs parallel research agents (domain, competitive, tech stack). Wave 2 runs a single synthesis agent producing the 7-phase specification document chain (product brief, PRD, architecture, epics, roadmap).
|
|
13
|
+
|
|
14
|
+
**Common workflow**: Parse Input → Parallel Analysis/Research → Sequential Assembly/Synthesis → Output
|
|
15
|
+
|
|
16
|
+
```
|
|
17
|
+
+---------------------------------------------------------------------------+
|
|
18
|
+
| ROADMAP CSV WAVE WORKFLOW (DUAL MODE) |
|
|
19
|
+
+---------------------------------------------------------------------------+
|
|
20
|
+
| |
|
|
21
|
+
| Phase 1: Input Parsing + CSV Generation |
|
|
22
|
+
| +-- Parse requirement/idea from arguments |
|
|
23
|
+
| +-- Detect input type (text, @file, brainstorm import) |
|
|
24
|
+
| +-- Detect mode: light (default) or full (--mode full) |
|
|
25
|
+
| +-- Codebase detection (conditional exploration) |
|
|
26
|
+
| +-- Generate mode-specific tasks.csv |
|
|
27
|
+
| +-- User validates breakdown (skip if -y) |
|
|
28
|
+
| |
|
|
29
|
+
| Phase 2: Wave Execution Engine |
|
|
30
|
+
| +-- Wave 1: Analysis/Research (parallel) |
|
|
31
|
+
| | [Light] scope, risk, dependency analysis |
|
|
32
|
+
| | [Full] domain, competitive, tech stack research |
|
|
33
|
+
| +-- Wave 2: Assembly/Synthesis (sequential) |
|
|
34
|
+
| | [Light] roadmap assembly agent → roadmap.md |
|
|
35
|
+
| | [Full] 7-phase document chain → spec package + roadmap.md |
|
|
36
|
+
| +-- discoveries.ndjson shared across waves (append-only) |
|
|
37
|
+
| |
|
|
38
|
+
| Phase 3: Results Aggregation |
|
|
39
|
+
| +-- Export results.csv |
|
|
40
|
+
| +-- Interactive refinement (skip if -y) |
|
|
41
|
+
| +-- [Full only] Readiness check (4 dimensions) |
|
|
42
|
+
| +-- Generate context.md |
|
|
43
|
+
| +-- Write .workflow/roadmap.md |
|
|
44
|
+
| +-- Display summary with next steps |
|
|
45
|
+
| |
|
|
46
|
+
+---------------------------------------------------------------------------+
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
</purpose>
|
|
50
|
+
|
|
51
|
+
<context>
|
|
52
|
+
$ARGUMENTS -- requirement/idea text or @file reference, plus optional flags.
|
|
53
|
+
|
|
54
|
+
**Usage**:
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
# Light mode (default)
|
|
58
|
+
$maestro-roadmap "Implement user authentication with OAuth and 2FA"
|
|
59
|
+
$maestro-roadmap -y "@requirements.md"
|
|
60
|
+
$maestro-roadmap --phases 4 "Build real-time notification system"
|
|
61
|
+
|
|
62
|
+
# Full mode
|
|
63
|
+
$maestro-roadmap --mode full "Build a real-time collaboration platform"
|
|
64
|
+
$maestro-roadmap --mode full -y "@requirements.md"
|
|
65
|
+
$maestro-roadmap --mode full --skip-research "CLI workflow orchestration tool"
|
|
66
|
+
|
|
67
|
+
# Shared flags
|
|
68
|
+
$maestro-roadmap --from-brainstorm WFS-001 "Enhance auth system"
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
**Flags**:
|
|
72
|
+
- `--mode light|full`: Execution mode (default: light)
|
|
73
|
+
- `-y, --yes`: Skip all confirmations (auto mode)
|
|
74
|
+
- `-m progressive|direct|auto`: Decomposition strategy (default: auto, light mode only)
|
|
75
|
+
- `--phases N`: Target number of roadmap phases (default: auto-determined, light mode only)
|
|
76
|
+
- `--revise [instructions]`: Revise existing roadmap preserving completed phase progress (light mode only)
|
|
77
|
+
- `--review`: Roadmap health assessment, read-only (light mode only)
|
|
78
|
+
- `--skip-research`: Skip Wave 1 research, jump to document generation (full mode only)
|
|
79
|
+
- `--from-brainstorm SESSION-ID`: Import guidance-specification.md from brainstorm session as seed
|
|
80
|
+
|
|
81
|
+
**Operation modes** (light mode):
|
|
82
|
+
- **Create** (default): Build roadmap from requirements via full CSV pipeline
|
|
83
|
+
- **Revise** (`--revise`): Load existing roadmap.md, apply modifications while preserving completed phases
|
|
84
|
+
- **Review** (`--review`): Health assessment of current roadmap (read-only, no writes)
|
|
85
|
+
|
|
86
|
+
When `--yes` or `-y`: Auto-confirm strategy/decisions, skip interactive refinement, use defaults.
|
|
87
|
+
|
|
88
|
+
**Output Directory**: `.workflow/.csv-wave/{session-id}/`
|
|
89
|
+
**Core Output**: `tasks.csv` + `results.csv` + `discoveries.ndjson` + `context.md` + `.workflow/roadmap.md`
|
|
90
|
+
**Full mode additional**: Spec package in `.workflow/.spec/SPEC-{slug}-{date}/`
|
|
91
|
+
</context>
|
|
92
|
+
|
|
93
|
+
<csv_schema>
|
|
94
|
+
|
|
95
|
+
### tasks.csv — Light Mode
|
|
96
|
+
|
|
97
|
+
```csv
|
|
98
|
+
id,title,description,analysis_focus,deps,context_from,wave,status,findings,error
|
|
99
|
+
"1","Scope Analysis","Analyze requirement scope: identify all features and sub-features, define MVP boundaries, classify must-have vs nice-to-have, estimate relative size of each feature area. Produce feature inventory with priority tags.","scope","","","1","","",""
|
|
100
|
+
"2","Risk Analysis","Assess technical and project risks: identify unknowns, evaluate technical feasibility per feature, rate risk levels (high/medium/low), propose mitigations. Flag features requiring spikes or prototypes.","risk","","","1","","",""
|
|
101
|
+
"3","Dependency Analysis","Map dependencies between features: identify ordering constraints, find parallel-safe groups, detect external dependencies (APIs, libraries, infrastructure). Produce dependency graph with critical path.","dependency","","","1","","",""
|
|
102
|
+
"4","Roadmap Assembly","Synthesize analysis findings into a complete roadmap. Apply decomposition strategy. Produce roadmap.md with: phase structure (goal, depends-on, requirements, success criteria), milestone grouping, scope decisions, progress table. Each phase must have observable success criteria from user perspective.","","1;2;3","1;2;3","2","","",""
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
### tasks.csv — Full Mode
|
|
106
|
+
|
|
107
|
+
```csv
|
|
108
|
+
id,title,description,research_focus,doc_phase,deps,context_from,wave,status,findings,output_file,error
|
|
109
|
+
"1","Domain Research","Research the problem domain: identify target users, market needs, existing solutions, industry trends, and domain terminology. Produce structured findings with confidence levels.","domain","","","","1","","","",""
|
|
110
|
+
"2","Competitive Analysis","Analyze competing products and approaches: feature comparison matrix, UX patterns, pricing models, market positioning. Identify gaps and opportunities for differentiation.","competitive","","","","1","","","",""
|
|
111
|
+
"3","Tech Stack Analysis","Evaluate technical feasibility: recommended languages, frameworks, databases, infrastructure. Assess constraints, integration complexity, scalability requirements. Reference existing codebase if available.","tech_stack","","","","1","","","",""
|
|
112
|
+
"4","Document Chain","Generate complete 7-phase specification package using research context. Phases: (1) Product Brief, (2) PRD with REQ-*/NFR-*, (3) Architecture with ADR-*, (4) Data Model, (5) API Specification, (6) UI Wireframes, (7) Epic-to-Roadmap with EPIC-* and phase mapping. Produce glossary.json for terminology consistency.","","1-7","1;2;3","1;2;3","2","","","",""
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
### Shared Columns
|
|
116
|
+
|
|
117
|
+
| Column | Phase | Description |
|
|
118
|
+
|--------|-------|-------------|
|
|
119
|
+
| `id` | Input | Unique task identifier (string) |
|
|
120
|
+
| `title` | Input | Short task title |
|
|
121
|
+
| `description` | Input | Detailed instructions for this task |
|
|
122
|
+
| `deps` | Input | Semicolon-separated dependency task IDs |
|
|
123
|
+
| `context_from` | Input | Semicolon-separated task IDs whose findings this task needs |
|
|
124
|
+
| `wave` | Computed | Wave number (1 = analysis/research, 2 = assembly/synthesis) |
|
|
125
|
+
| `status` | Output | `pending` -> `completed` / `failed` / `skipped` |
|
|
126
|
+
| `findings` | Output | Key findings summary (max 500 chars) |
|
|
127
|
+
| `error` | Output | Error message if failed |
|
|
128
|
+
|
|
129
|
+
**Light-only**: `analysis_focus` (scope/risk/dependency)
|
|
130
|
+
**Full-only**: `research_focus` (domain/competitive/tech_stack), `doc_phase`, `output_file`
|
|
131
|
+
|
|
132
|
+
### Per-Wave CSV (Temporary)
|
|
133
|
+
|
|
134
|
+
Each wave generates `wave-{N}.csv` with extra `prev_context` column.
|
|
135
|
+
</csv_schema>
|
|
136
|
+
|
|
137
|
+
<invariants>
|
|
138
|
+
1. **Start Immediately**: First action is session initialization, then Phase 1
|
|
139
|
+
2. **Wave Order is Sacred**: Never execute wave 2 before wave 1 completes and results are merged
|
|
140
|
+
3. **CSV is Source of Truth**: Master tasks.csv holds all state
|
|
141
|
+
4. **Context Propagation**: prev_context built from master CSV, not from memory
|
|
142
|
+
5. **Discovery Board is Append-Only**: Never clear, modify, or recreate discoveries.ndjson
|
|
143
|
+
6. **Graceful Degradation**: If Wave 1 fails, Wave 2 proceeds with seed input only
|
|
144
|
+
7. **Cleanup Temp Files**: Remove wave-{N}.csv after results are merged
|
|
145
|
+
8. **DO NOT STOP**: Continuous execution until all waves complete
|
|
146
|
+
</invariants>
|
|
147
|
+
|
|
148
|
+
<execution>
|
|
149
|
+
|
|
150
|
+
### Output Artifacts
|
|
151
|
+
|
|
152
|
+
| File | Purpose | Lifecycle |
|
|
153
|
+
|------|---------|-----------|
|
|
154
|
+
| `tasks.csv` | Master state -- all tasks with status/findings | Updated after each wave |
|
|
155
|
+
| `wave-{N}.csv` | Per-wave input (temporary) | Created before wave, deleted after |
|
|
156
|
+
| `results.csv` | Final export of all task results | Created in Phase 3 |
|
|
157
|
+
| `discoveries.ndjson` | Shared exploration board | Append-only, carries across waves |
|
|
158
|
+
| `context.md` | Human-readable report | Created in Phase 3 |
|
|
159
|
+
| `spec-config.json` | Session metadata (full mode only) | Created in Phase 1 |
|
|
160
|
+
|
|
161
|
+
### Session Structure
|
|
162
|
+
|
|
163
|
+
**Light mode**:
|
|
164
|
+
```
|
|
165
|
+
.workflow/.csv-wave/{YYYYMMDD}-roadmap-{slug}/
|
|
166
|
+
+-- tasks.csv, results.csv, discoveries.ndjson, context.md
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
**Full mode**:
|
|
170
|
+
```
|
|
171
|
+
.workflow/.csv-wave/{YYYYMMDD}-roadmap-full-{slug}/
|
|
172
|
+
+-- tasks.csv, results.csv, discoveries.ndjson, context.md, spec-config.json
|
|
173
|
+
|
|
174
|
+
.workflow/.spec/SPEC-{slug}-{date}/
|
|
175
|
+
+-- spec-config.json
|
|
176
|
+
+-- product-brief.md
|
|
177
|
+
+-- glossary.json
|
|
178
|
+
+-- requirements/
|
|
179
|
+
| +-- _index.md
|
|
180
|
+
| +-- REQ-NNN-{slug}.md
|
|
181
|
+
| +-- NFR-{type}-NNN-{slug}.md
|
|
182
|
+
+-- architecture/
|
|
183
|
+
| +-- _index.md
|
|
184
|
+
| +-- ADR-NNN-{slug}.md
|
|
185
|
+
+-- epics/
|
|
186
|
+
| +-- _index.md
|
|
187
|
+
| +-- EPIC-NNN-{slug}.md
|
|
188
|
+
+-- readiness-report.md
|
|
189
|
+
+-- spec-summary.md
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
### Session Initialization
|
|
193
|
+
|
|
194
|
+
Parse `$ARGUMENTS` to extract:
|
|
195
|
+
- `mode` from `--mode light|full` (default: `light`)
|
|
196
|
+
- `AUTO_YES` from `--yes` / `-y`
|
|
197
|
+
- `strategy` from `-m progressive|direct|auto` (default: `auto`, light only)
|
|
198
|
+
- `targetPhases` from `--phases N` (light mode only)
|
|
199
|
+
- `reviseMode` from `--revise [instructions]` (light only, forces mode=light)
|
|
200
|
+
- `reviewMode` from `--review` (light only, forces mode=light)
|
|
201
|
+
- `skipResearch` from `--skip-research` (full mode only)
|
|
202
|
+
- `brainstormSession` from `--from-brainstorm <SESSION-ID>`
|
|
203
|
+
- `requirementArg` = remaining text after stripping all flags
|
|
204
|
+
- `slug` = requirementArg lowercased, non-alphanumeric → `-`, max 40 chars
|
|
205
|
+
|
|
206
|
+
**Mode routing:**
|
|
207
|
+
- If `--revise` or `--review`: force `mode = light`, bypass CSV pipeline
|
|
208
|
+
- **Revise**: Load `.workflow/roadmap.md`, apply instructions (preserve completed phases), write updated roadmap. If instructions provided inline, apply directly; if omitted, ask user via `request_user_input`.
|
|
209
|
+
- **Review**: Read `.workflow/roadmap.md` + `state.json`, assess health (phase completion, dependency validity, scope creep), report read-only. No writes.
|
|
210
|
+
- Both skip Phase 1-3 CSV pipeline, go directly to operation-specific logic
|
|
211
|
+
- If `-c` / `--continue`: Resume from last checkpoint in existing session
|
|
212
|
+
- Otherwise: proceed with CSV pipeline
|
|
213
|
+
|
|
214
|
+
Session ID: `{YYYYMMDD}-roadmap-{slug}` (light) or `{YYYYMMDD}-roadmap-full-{slug}` (full)
|
|
215
|
+
Session folder: `.workflow/.csv-wave/{sessionId}/` — create via `mkdir -p`
|
|
216
|
+
|
|
217
|
+
### Phase 1: Input Parsing + CSV Generation
|
|
218
|
+
|
|
219
|
+
**Shared steps**:
|
|
220
|
+
1. **Input parsing**: Parse `{requirementArg}` -- direct text or `@file` reference
|
|
221
|
+
2. **Brainstorm import**: If `--from-brainstorm`, read `guidance-specification.md` for enriched context
|
|
222
|
+
3. **Codebase detection**: Check for source files; if found, add context to analysis/research prompts
|
|
223
|
+
4. **Load project specs**: Read `.workflow/specs/` for constraint awareness
|
|
224
|
+
|
|
225
|
+
**Light mode specific**:
|
|
226
|
+
5. **Uncertainty assessment**:
|
|
227
|
+
|
|
228
|
+
| Factor | Low | Medium | High |
|
|
229
|
+
|--------|-----|--------|------|
|
|
230
|
+
| Scope clarity | Requirements explicit | Some ambiguity | Vague/open-ended |
|
|
231
|
+
| Technical risk | Proven stack | Some unknowns | New technology |
|
|
232
|
+
| Dependency unknown | All mapped | Some unclear | Many external |
|
|
233
|
+
| Domain familiarity | Expert | Moderate | New domain |
|
|
234
|
+
| Requirement stability | Locked | Some flux | Evolving |
|
|
235
|
+
|
|
236
|
+
Strategy: >=3 high → progressive, >=3 low → direct, else → ask (or auto if -y).
|
|
237
|
+
|
|
238
|
+
6. **CSV generation**: 3 analysis tasks (wave 1) + 1 assembly task (wave 2)
|
|
239
|
+
|
|
240
|
+
**Full mode specific**:
|
|
241
|
+
5. **Session init**: Create `spec-config.json` with session metadata
|
|
242
|
+
6. **CSV generation**: 3 research tasks (wave 1) + 1 document chain task (wave 2). If `--skip-research`: 0 research + 1 doc chain (wave 1).
|
|
243
|
+
|
|
244
|
+
**User validation**: Display task breakdown + strategy (skip if AUTO_YES).
|
|
245
|
+
|
|
246
|
+
### Phase 2: Wave Execution Engine
|
|
247
|
+
|
|
248
|
+
#### Wave 1 (Parallel)
|
|
249
|
+
|
|
250
|
+
Filter master `tasks.csv` for `wave == 1 AND status == pending` → write `wave-1.csv`.
|
|
251
|
+
|
|
252
|
+
```javascript
|
|
253
|
+
spawn_agents_on_csv({
|
|
254
|
+
csv_path: `${sessionFolder}/wave-1.csv`,
|
|
255
|
+
id_column: "id",
|
|
256
|
+
instruction: mode === 'light'
|
|
257
|
+
? buildAnalysisInstruction(sessionFolder, requirementArg, strategy)
|
|
258
|
+
: buildResearchInstruction(sessionFolder, requirementArg), // agent: ~/.codex/agents/workflow-project-researcher.toml
|
|
259
|
+
max_concurrency: 3,
|
|
260
|
+
max_runtime_seconds: 3600,
|
|
261
|
+
output_csv_path: `${sessionFolder}/wave-1-results.csv`,
|
|
262
|
+
output_schema: {
|
|
263
|
+
type: "object",
|
|
264
|
+
properties: {
|
|
265
|
+
id: { type: "string" },
|
|
266
|
+
status: { type: "string", enum: ["completed", "failed"] },
|
|
267
|
+
findings: { type: "string" },
|
|
268
|
+
output_file: { type: "string" }, // full mode only
|
|
269
|
+
error: { type: "string" }
|
|
270
|
+
},
|
|
271
|
+
required: ["id", "status", "findings"]
|
|
272
|
+
}
|
|
273
|
+
})
|
|
274
|
+
```
|
|
275
|
+
|
|
276
|
+
Merge results into master `tasks.csv`, delete `wave-1.csv`.
|
|
277
|
+
|
|
278
|
+
#### Wave 2 (Sequential)
|
|
279
|
+
|
|
280
|
+
Filter for `wave == 2 AND status == pending`. If all wave 1 tasks failed, use degraded mode (requirement/seed text only).
|
|
281
|
+
|
|
282
|
+
Build `prev_context` from wave 1 findings. Format: `[Task N: Title] summary...` per completed task. Inject decomposition strategy and `--phases N` constraint (light mode) into assembly prompt.
|
|
283
|
+
|
|
284
|
+
Write `wave-2.csv` with `prev_context` column → execute `spawn_agents_on_csv` → merge → delete temp CSV.
|
|
285
|
+
|
|
286
|
+
**Light mode**: Assembly agent produces roadmap.md with phases, milestones, success criteria.
|
|
287
|
+
**Full mode**: Document chain agent produces 7-phase spec package + glossary.json. If agent fails, export partial output and log quality issues (do NOT abort).
|
|
288
|
+
|
|
289
|
+
#### Phase 2.5: Spec Package Generation (Full Mode Only)
|
|
290
|
+
|
|
291
|
+
After Wave 2 completes, read `~/.maestro/workflows/spec-generate.md` and follow its process to generate the 7-phase specification document chain:
|
|
292
|
+
|
|
293
|
+
1. **Product Brief** (`product-brief.md`): Vision, goals, scope, multi-perspective synthesis
|
|
294
|
+
2. **PRD** (`requirements/`): `_index.md` + individual `REQ-*.md` + `NFR-*.md` files with RFC 2119 keywords and acceptance criteria
|
|
295
|
+
3. **Architecture** (`architecture/`): `_index.md` + individual `ADR-*.md` files, state machine, config model, error handling, observability
|
|
296
|
+
4. **Data Model**: Entity definitions and relationships
|
|
297
|
+
5. **API Specification**: Endpoint definitions and contracts
|
|
298
|
+
6. **UI Wireframes**: Interface layout descriptions
|
|
299
|
+
7. **Epic-to-Roadmap** (`epics/`): `_index.md` + individual `EPIC-*.md` with cross-Epic dependency map (Mermaid) and MVP subset tagged
|
|
300
|
+
|
|
301
|
+
Additional outputs:
|
|
302
|
+
- `glossary.json` with 5+ core terms for cross-document terminology consistency
|
|
303
|
+
- `spec-summary.md` with one-page executive summary
|
|
304
|
+
- All documents have valid YAML frontmatter with `session_id`
|
|
305
|
+
|
|
306
|
+
Output location: `.workflow/.spec/SPEC-{slug}-{date}/`
|
|
307
|
+
|
|
308
|
+
### Phase 3: Results Aggregation
|
|
309
|
+
|
|
310
|
+
Export master `tasks.csv` as `results.csv`.
|
|
311
|
+
|
|
312
|
+
**Interactive refinement** (skip if AUTO_YES): Present overview, collect feedback via `request_user_input` (max 3 rounds).
|
|
313
|
+
|
|
314
|
+
Each round:
|
|
315
|
+
```json
|
|
316
|
+
{
|
|
317
|
+
"questions": [{
|
|
318
|
+
"id": "refinement_round_N",
|
|
319
|
+
"header": "Roadmap Refinement (Round N/3)",
|
|
320
|
+
"question": "Review the generated roadmap. Any adjustments needed?",
|
|
321
|
+
"options": [
|
|
322
|
+
{ "label": "Approve", "description": "Accept the current roadmap as-is" },
|
|
323
|
+
{ "label": "Refine", "description": "Provide specific changes to apply" },
|
|
324
|
+
{ "label": "Regenerate", "description": "Discard and regenerate from scratch" }
|
|
325
|
+
]
|
|
326
|
+
}]
|
|
327
|
+
}
|
|
328
|
+
```
|
|
329
|
+
If user selects "Refine", apply changes and re-present. After 3 rounds, force proceed with current output.
|
|
330
|
+
|
|
331
|
+
**Full mode only — Readiness Assessment**: Score spec package on 4 dimensions (25% each):
|
|
332
|
+
|
|
333
|
+
| Dimension | Weight | Checks |
|
|
334
|
+
|-----------|--------|--------|
|
|
335
|
+
| Completeness | 25% | All 7 phases produced, glossary has 5+ terms, all REQ/NFR/ADR/EPIC files present |
|
|
336
|
+
| Consistency | 25% | Glossary terms used consistently, cross-references valid, no contradictions |
|
|
337
|
+
| Traceability | 25% | Every requirement maps to an epic, every epic maps to a roadmap phase, traceability matrix complete |
|
|
338
|
+
| Depth | 25% | Acceptance criteria present, architecture covers error handling/observability, NFRs have measurable targets |
|
|
339
|
+
|
|
340
|
+
Gate thresholds:
|
|
341
|
+
- **Pass** (>=80%): Spec package ready for implementation
|
|
342
|
+
- **Review** (60-79%): Proceed with documented caveats, note gaps in `readiness-report.md`
|
|
343
|
+
- **Fail** (<60%): Attempt auto-fix (up to 2 iterations), then present manual fix options via `request_user_input`
|
|
344
|
+
|
|
345
|
+
Output: `readiness-report.md` with per-dimension scores and traceability matrix
|
|
346
|
+
|
|
347
|
+
Generate `context.md`:
|
|
348
|
+
|
|
349
|
+
**Light mode template**:
|
|
350
|
+
```markdown
|
|
351
|
+
# Roadmap Generation Report
|
|
352
|
+
|
|
353
|
+
## Summary
|
|
354
|
+
- Requirements: {requirement_summary}
|
|
355
|
+
- Strategy: {progressive|direct}
|
|
356
|
+
- Analysis agents: 3 ({completed_count} completed)
|
|
357
|
+
- Phases generated: {phase_count}
|
|
358
|
+
- Milestones: {milestone_count}
|
|
359
|
+
|
|
360
|
+
## Analysis Findings
|
|
361
|
+
### Scope Analysis
|
|
362
|
+
{findings}
|
|
363
|
+
### Risk Analysis
|
|
364
|
+
{findings}
|
|
365
|
+
### Dependency Analysis
|
|
366
|
+
{findings}
|
|
367
|
+
|
|
368
|
+
## Roadmap
|
|
369
|
+
- Phases: {phase_count}
|
|
370
|
+
- Strategy: {strategy}
|
|
371
|
+
- MVP scope: {mvp_description}
|
|
372
|
+
- Deferred: {deferred_items}
|
|
373
|
+
```
|
|
374
|
+
|
|
375
|
+
**Full mode template**:
|
|
376
|
+
```markdown
|
|
377
|
+
# Spec Generate Report
|
|
378
|
+
|
|
379
|
+
## Summary
|
|
380
|
+
- Topic: {topic}
|
|
381
|
+
- Research agents: 3 ({completed_count} completed)
|
|
382
|
+
- Document phases: 7
|
|
383
|
+
- Quality score: {score}% ({gate})
|
|
384
|
+
|
|
385
|
+
## Research Findings
|
|
386
|
+
### Domain Research
|
|
387
|
+
{findings}
|
|
388
|
+
### Competitive Analysis
|
|
389
|
+
{findings}
|
|
390
|
+
### Tech Stack Analysis
|
|
391
|
+
{findings}
|
|
392
|
+
|
|
393
|
+
## Document Chain Output
|
|
394
|
+
- Product Brief: {status}
|
|
395
|
+
- Requirements: {req_count} REQs + {nfr_count} NFRs
|
|
396
|
+
- Architecture: {adr_count} ADRs
|
|
397
|
+
- Epics: {epic_count} Epics
|
|
398
|
+
- Roadmap: {phase_count} phases
|
|
399
|
+
|
|
400
|
+
## Readiness
|
|
401
|
+
- Completeness: {score}%
|
|
402
|
+
- Consistency: {score}%
|
|
403
|
+
- Traceability: {score}%
|
|
404
|
+
- Depth: {score}%
|
|
405
|
+
- Overall: {score}% ({gate})
|
|
406
|
+
```
|
|
407
|
+
|
|
408
|
+
**Write outputs**:
|
|
409
|
+
- `.workflow/roadmap.md` (both modes)
|
|
410
|
+
- `.workflow/.spec/SPEC-{slug}-{date}/` (full mode only)
|
|
411
|
+
- Ensure `.workflow/scratch/` exists
|
|
412
|
+
- Update `state.json` milestones array and `current_milestone`
|
|
413
|
+
|
|
414
|
+
Display summary with next steps:
|
|
415
|
+
```
|
|
416
|
+
=== ROADMAP CREATED ===
|
|
417
|
+
Mode: {light|full}
|
|
418
|
+
Strategy: {progressive|direct}
|
|
419
|
+
Phases: {phase_count} across {milestone_count} milestones
|
|
420
|
+
Roadmap: .workflow/roadmap.md
|
|
421
|
+
[Full] Spec: .workflow/.spec/SPEC-{slug}-{date}/
|
|
422
|
+
[Full] Quality: {score}% ({gate})
|
|
423
|
+
```
|
|
424
|
+
|
|
425
|
+
**Next-step routing:**
|
|
426
|
+
|
|
427
|
+
| Condition | Next Step |
|
|
428
|
+
|-----------|-----------|
|
|
429
|
+
| Roadmap approved, need analysis | `$maestro-analyze "1"` |
|
|
430
|
+
| Simple project, ready to plan | `$maestro-plan "1"` |
|
|
431
|
+
| Need UI design first | `$maestro-ui-design "1"` |
|
|
432
|
+
| View project dashboard | `$manage-status` |
|
|
433
|
+
| Need project setup (full mode) | `$maestro-init` |
|
|
434
|
+
|
|
435
|
+
### Shared Discovery Board Protocol
|
|
436
|
+
|
|
437
|
+
#### Standard Discovery Types
|
|
438
|
+
|
|
439
|
+
| Type | Dedup Key | Data Schema | Description |
|
|
440
|
+
|------|-----------|-------------|-------------|
|
|
441
|
+
| `code_pattern` | `data.name` | `{name, file, description}` | Reusable code pattern found |
|
|
442
|
+
| `integration_point` | `data.file` | `{file, description, exports[]}` | Module connection point |
|
|
443
|
+
| `convention` | singleton | `{naming, imports, formatting}` | Project code conventions |
|
|
444
|
+
| `tech_stack` | singleton | `{framework, language, tools[]}` | Technology stack info |
|
|
445
|
+
|
|
446
|
+
#### Light Mode Discovery Types
|
|
447
|
+
|
|
448
|
+
| Type | Dedup Key | Data Schema | Description |
|
|
449
|
+
|------|-----------|-------------|-------------|
|
|
450
|
+
| `scope_boundary` | `data.feature` | `{feature, inclusion, rationale}` | Scope decision |
|
|
451
|
+
| `risk_factor` | `data.name` | `{name, severity, probability, mitigation}` | Identified risk |
|
|
452
|
+
| `dependency_constraint` | `data.from+data.to` | `{from, to, type, strength}` | Feature dependency |
|
|
453
|
+
| `external_dependency` | `data.name` | `{name, type, risk, alternative}` | External system dependency |
|
|
454
|
+
|
|
455
|
+
#### Full Mode Discovery Types
|
|
456
|
+
|
|
457
|
+
| Type | Dedup Key | Data Schema | Description |
|
|
458
|
+
|------|-----------|-------------|-------------|
|
|
459
|
+
| `domain_term` | `data.term` | `{term, definition, aliases}` | Domain terminology |
|
|
460
|
+
| `competitor` | `data.name` | `{name, features[], gaps[]}` | Competitive product |
|
|
461
|
+
| `market_trend` | `data.name` | `{name, impact, relevance}` | Market trend |
|
|
462
|
+
| `tech_constraint` | `data.name` | `{name, type, severity, mitigation}` | Technical constraint |
|
|
463
|
+
|
|
464
|
+
#### Protocol
|
|
465
|
+
|
|
466
|
+
Read `{session_folder}/discoveries.ndjson` before own analysis. Deduplicate by type + dedup key before writing. Append-only — never modify or delete.
|
|
467
|
+
|
|
468
|
+
```bash
|
|
469
|
+
# Light mode example
|
|
470
|
+
echo '{"ts":"<ISO>","worker":"{id}","type":"risk_factor","data":{"name":"OAuth provider rate limits","severity":"medium","probability":"high","mitigation":"Implement token caching and retry logic"}}' >> {session_folder}/discoveries.ndjson
|
|
471
|
+
|
|
472
|
+
# Full mode example
|
|
473
|
+
echo '{"ts":"<ISO>","worker":"{id}","type":"domain_term","data":{"term":"workflow","definition":"A sequence of orchestrated tasks","aliases":["pipeline","process"]}}' >> {session_folder}/discoveries.ndjson
|
|
474
|
+
```
|
|
475
|
+
</execution>
|
|
476
|
+
|
|
477
|
+
<error_codes>
|
|
478
|
+
| Error | Resolution |
|
|
479
|
+
|-------|------------|
|
|
480
|
+
| No requirement/idea text provided | Abort with error: "Requirement text or @file required" |
|
|
481
|
+
| Brainstorm session not found | Abort with error: "Session {id} not found" -- list available sessions |
|
|
482
|
+
| @file not found | Abort with error: "File {path} not found" |
|
|
483
|
+
| roadmap.md not found (--revise/--review) | Run maestro-roadmap first to create |
|
|
484
|
+
| Revision invalidates completed phase | Warn user, ask to confirm or adjust |
|
|
485
|
+
| .workflow/ not initialized (full mode) | Run maestro-init first |
|
|
486
|
+
| Wave 1 agent timeout | Mark as failed, Wave 2 uses available findings |
|
|
487
|
+
| All Wave 1 agents failed | Wave 2 runs in degraded mode (seed input only) |
|
|
488
|
+
| Wave 2 agent failed (light) | Abort with error: "Roadmap generation failed" |
|
|
489
|
+
| Wave 2 agent failed (full) | Export partial output, log quality issues |
|
|
490
|
+
| Circular dependency detected | Prompt user to re-decompose (light mode) |
|
|
491
|
+
| CSV parse error | Validate format, show line number |
|
|
492
|
+
| discoveries.ndjson corrupt | Ignore malformed lines |
|
|
493
|
+
| Max refinement rounds (3) | Force proceed with current output |
|
|
494
|
+
| Readiness score < 60% (full) | Log issues, proceed with available output |
|
|
495
|
+
</error_codes>
|
|
496
|
+
|
|
497
|
+
<success_criteria>
|
|
498
|
+
|
|
499
|
+
**Both modes**:
|
|
500
|
+
- [ ] Input parsed from text, @file, or brainstorm session
|
|
501
|
+
- [ ] Wave 1 agents completed (analysis or research)
|
|
502
|
+
- [ ] Wave 2 agent produced output
|
|
503
|
+
- [ ] Interactive refinement offered (or skipped with -y)
|
|
504
|
+
- [ ] .workflow/roadmap.md written
|
|
505
|
+
- [ ] state.json updated with milestones
|
|
506
|
+
- [ ] context.md generated
|
|
507
|
+
- [ ] Completion report displayed with next steps
|
|
508
|
+
|
|
509
|
+
**Light mode additional**:
|
|
510
|
+
- [ ] Uncertainty assessed and decomposition strategy selected
|
|
511
|
+
- [ ] Roadmap has phases with milestones and success criteria
|
|
512
|
+
|
|
513
|
+
**Full mode additional**:
|
|
514
|
+
- [ ] spec-config.json created with session metadata
|
|
515
|
+
- [ ] Spec package written to .workflow/.spec/SPEC-{slug}-{date}/
|
|
516
|
+
- [ ] Readiness check scored on 4 dimensions
|
|
517
|
+
- [ ] Quality score and gate reported
|
|
518
|
+
</success_criteria>
|