maestro-flow 0.3.38 → 0.3.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (187) hide show
  1. package/.claude/agents/workflow-analyzer.md +2 -0
  2. package/.claude/agents/workflow-debugger.md +2 -0
  3. package/.claude/agents/workflow-executor.md +2 -0
  4. package/.claude/agents/workflow-integration-checker.md +1 -0
  5. package/.claude/agents/workflow-nyquist-auditor.md +1 -0
  6. package/.claude/agents/workflow-planner.md +2 -0
  7. package/.claude/agents/workflow-reviewer.md +2 -0
  8. package/.claude/agents/workflow-verifier.md +2 -0
  9. package/.claude/commands/learn-decompose.md +176 -176
  10. package/.claude/commands/learn-follow.md +167 -167
  11. package/.claude/commands/learn-investigate.md +221 -221
  12. package/.claude/commands/learn-retro.md +303 -303
  13. package/.claude/commands/learn-second-opinion.md +167 -167
  14. package/.claude/commands/maestro-amend.md +300 -300
  15. package/.claude/commands/maestro-analyze.md +130 -126
  16. package/.claude/commands/maestro-brainstorm.md +104 -100
  17. package/.claude/commands/maestro-composer.md +354 -354
  18. package/.claude/commands/maestro-execute.md +120 -114
  19. package/.claude/commands/maestro-fork.md +86 -86
  20. package/.claude/commands/maestro-init.md +78 -78
  21. package/.claude/commands/maestro-learn.md +140 -140
  22. package/.claude/commands/maestro-link-coordinate.md +1 -1
  23. package/.claude/commands/maestro-merge.md +61 -61
  24. package/.claude/commands/maestro-milestone-release.md +96 -96
  25. package/.claude/commands/maestro-overlay.md +178 -178
  26. package/.claude/commands/maestro-plan.md +154 -138
  27. package/.claude/commands/maestro-player.md +404 -404
  28. package/.claude/commands/maestro-quick.md +56 -56
  29. package/.claude/commands/maestro-ralph-execute.md +7 -18
  30. package/.claude/commands/maestro-ralph.md +48 -12
  31. package/.claude/commands/maestro-roadmap.md +1 -1
  32. package/.claude/commands/maestro-ui-design.md +93 -93
  33. package/.claude/commands/maestro-update.md +176 -176
  34. package/.claude/commands/maestro-verify.md +96 -90
  35. package/.claude/commands/maestro.md +121 -121
  36. package/.claude/commands/manage-codebase-rebuild.md +75 -75
  37. package/.claude/commands/manage-codebase-refresh.md +57 -57
  38. package/.claude/commands/manage-harvest.md +94 -94
  39. package/.claude/commands/manage-issue-discover.md +77 -77
  40. package/.claude/commands/manage-issue.md +73 -73
  41. package/.claude/commands/manage-knowhow-capture.md +193 -193
  42. package/.claude/commands/manage-knowhow.md +77 -77
  43. package/.claude/commands/manage-learn.md +67 -67
  44. package/.claude/commands/manage-status.md +51 -51
  45. package/.claude/commands/manage-wiki.md +62 -62
  46. package/.claude/commands/quality-auto-test.md +5 -1
  47. package/.claude/commands/quality-debug.md +125 -115
  48. package/.claude/commands/quality-refactor.md +55 -55
  49. package/.claude/commands/quality-retrospective.md +78 -78
  50. package/.claude/commands/quality-review.md +114 -108
  51. package/.claude/commands/quality-sync.md +51 -51
  52. package/.claude/commands/quality-test.md +107 -103
  53. package/.claude/commands/spec-add.md +49 -49
  54. package/.claude/commands/spec-load.md +51 -51
  55. package/.claude/commands/spec-remove.md +51 -51
  56. package/.claude/commands/spec-setup.md +51 -51
  57. package/.claude/commands/wiki-connect.md +62 -62
  58. package/.claude/commands/wiki-digest.md +69 -69
  59. package/.codex/skills/learn-decompose/SKILL.md +113 -113
  60. package/.codex/skills/learn-follow/SKILL.md +1 -1
  61. package/.codex/skills/learn-investigate/SKILL.md +83 -83
  62. package/.codex/skills/learn-retro/SKILL.md +83 -83
  63. package/.codex/skills/learn-second-opinion/SKILL.md +86 -86
  64. package/.codex/skills/maestro/SKILL.md +304 -304
  65. package/.codex/skills/maestro-analyze/SKILL.md +11 -3
  66. package/.codex/skills/maestro-brainstorm/SKILL.md +451 -397
  67. package/.codex/skills/maestro-composer/SKILL.md +213 -213
  68. package/.codex/skills/maestro-execute/SKILL.md +346 -318
  69. package/.codex/skills/maestro-fork/SKILL.md +56 -2
  70. package/.codex/skills/maestro-init/SKILL.md +40 -16
  71. package/.codex/skills/maestro-learn/SKILL.md +80 -80
  72. package/.codex/skills/maestro-link-coordinate/SKILL.md +257 -257
  73. package/.codex/skills/maestro-merge/SKILL.md +1 -1
  74. package/.codex/skills/maestro-milestone-audit/SKILL.md +1 -1
  75. package/.codex/skills/maestro-milestone-complete/SKILL.md +40 -9
  76. package/.codex/skills/maestro-milestone-release/SKILL.md +70 -70
  77. package/.codex/skills/maestro-overlay/SKILL.md +1 -1
  78. package/.codex/skills/maestro-plan/SKILL.md +29 -4
  79. package/.codex/skills/maestro-player/SKILL.md +323 -323
  80. package/.codex/skills/maestro-quick/SKILL.md +1 -1
  81. package/.codex/skills/maestro-ralph/SKILL.md +693 -578
  82. package/.codex/skills/maestro-roadmap/SKILL.md +518 -468
  83. package/.codex/skills/maestro-ui-design/SKILL.md +109 -12
  84. package/.codex/skills/maestro-verify/SKILL.md +27 -9
  85. package/.codex/skills/manage-codebase-rebuild/SKILL.md +3 -2
  86. package/.codex/skills/manage-codebase-refresh/SKILL.md +1 -1
  87. package/.codex/skills/manage-harvest/SKILL.md +91 -91
  88. package/.codex/skills/manage-issue/SKILL.md +19 -6
  89. package/.codex/skills/manage-issue-discover/SKILL.md +1 -1
  90. package/.codex/skills/manage-knowhow/SKILL.md +95 -95
  91. package/.codex/skills/manage-knowhow-capture/SKILL.md +110 -110
  92. package/.codex/skills/manage-learn/SKILL.md +1 -1
  93. package/.codex/skills/manage-status/SKILL.md +1 -1
  94. package/.codex/skills/manage-wiki/SKILL.md +55 -55
  95. package/.codex/skills/quality-auto-test/SKILL.md +553 -547
  96. package/.codex/skills/quality-debug/SKILL.md +345 -334
  97. package/.codex/skills/quality-refactor/SKILL.md +1 -1
  98. package/.codex/skills/quality-retrospective/SKILL.md +292 -292
  99. package/.codex/skills/quality-review/SKILL.md +365 -364
  100. package/.codex/skills/quality-sync/SKILL.md +1 -1
  101. package/.codex/skills/quality-test/SKILL.md +507 -498
  102. package/.codex/skills/spec-add/SKILL.md +101 -101
  103. package/.codex/skills/spec-load/SKILL.md +77 -77
  104. package/.codex/skills/spec-map/SKILL.md +1 -1
  105. package/.codex/skills/spec-remove/SKILL.md +69 -69
  106. package/.codex/skills/spec-setup/SKILL.md +1 -1
  107. package/.codex/skills/team-coordinate/SKILL.md +2 -1
  108. package/.codex/skills/team-executor/SKILL.md +116 -115
  109. package/.codex/skills/team-lifecycle-v4/SKILL.md +2 -1
  110. package/.codex/skills/team-lifecycle-v4/instructions/agent-instruction.md +14 -6
  111. package/.codex/skills/team-lifecycle-v4/roles/analyst/role.md +16 -4
  112. package/.codex/skills/team-lifecycle-v4/roles/executor/commands/implement.md +7 -1
  113. package/.codex/skills/team-lifecycle-v4/roles/planner/role.md +16 -4
  114. package/.codex/skills/team-lifecycle-v4/roles/writer/role.md +8 -2
  115. package/.codex/skills/team-quality-assurance/SKILL.md +2 -1
  116. package/.codex/skills/team-quality-assurance/roles/scout/role.md +9 -2
  117. package/.codex/skills/team-review/SKILL.md +2 -1
  118. package/.codex/skills/team-review/roles/reviewer/role.md +10 -1
  119. package/.codex/skills/team-review/roles/scanner/role.md +10 -1
  120. package/.codex/skills/team-tech-debt/SKILL.md +144 -143
  121. package/.codex/skills/team-tech-debt/roles/executor/role.md +9 -5
  122. package/.codex/skills/team-tech-debt/roles/scanner/role.md +10 -0
  123. package/.codex/skills/team-tech-debt/roles/validator/role.md +8 -2
  124. package/.codex/skills/team-testing/SKILL.md +2 -1
  125. package/.codex/skills/team-testing/roles/executor/role.md +8 -2
  126. package/.codex/skills/team-testing/roles/generator/role.md +8 -2
  127. package/.codex/skills/wiki-connect/SKILL.md +73 -73
  128. package/.codex/skills/wiki-digest/SKILL.md +87 -87
  129. package/dashboard/dist-server/dashboard/src/server/agents/claude-code-adapter.js +4 -0
  130. package/dashboard/dist-server/dashboard/src/server/agents/claude-code-adapter.js.map +1 -1
  131. package/dashboard/dist-server/dashboard/src/server/agents/codex-cli-adapter.js +6 -0
  132. package/dashboard/dist-server/dashboard/src/server/agents/codex-cli-adapter.js.map +1 -1
  133. package/dashboard/dist-server/shared/agent-types.d.ts +2 -0
  134. package/dashboard/dist-server/src/agents/cli-agent-runner.d.ts +2 -0
  135. package/dashboard/dist-server/src/agents/cli-agent-runner.js +4 -0
  136. package/dashboard/dist-server/src/agents/cli-agent-runner.js.map +1 -1
  137. package/dashboard/dist-server/src/commands/delegate.d.ts +2 -0
  138. package/dashboard/dist-server/src/commands/delegate.js +18 -0
  139. package/dashboard/dist-server/src/commands/delegate.js.map +1 -1
  140. package/dashboard/dist-server/src/config/cli-tools-config.d.ts +6 -0
  141. package/dashboard/dist-server/src/config/cli-tools-config.js +2 -0
  142. package/dashboard/dist-server/src/config/cli-tools-config.js.map +1 -1
  143. package/dist/shared/agent-types.d.ts +2 -0
  144. package/dist/shared/agent-types.d.ts.map +1 -1
  145. package/dist/src/agents/cli-agent-runner.d.ts +2 -0
  146. package/dist/src/agents/cli-agent-runner.d.ts.map +1 -1
  147. package/dist/src/agents/cli-agent-runner.js +4 -0
  148. package/dist/src/agents/cli-agent-runner.js.map +1 -1
  149. package/dist/src/commands/config.d.ts.map +1 -1
  150. package/dist/src/commands/config.js +29 -1
  151. package/dist/src/commands/config.js.map +1 -1
  152. package/dist/src/commands/delegate.d.ts +2 -0
  153. package/dist/src/commands/delegate.d.ts.map +1 -1
  154. package/dist/src/commands/delegate.js +18 -0
  155. package/dist/src/commands/delegate.js.map +1 -1
  156. package/dist/src/commands/launcher.d.ts.map +1 -1
  157. package/dist/src/commands/launcher.js +27 -4
  158. package/dist/src/commands/launcher.js.map +1 -1
  159. package/dist/src/config/cli-tools-config.d.ts +6 -0
  160. package/dist/src/config/cli-tools-config.d.ts.map +1 -1
  161. package/dist/src/config/cli-tools-config.js +2 -0
  162. package/dist/src/config/cli-tools-config.js.map +1 -1
  163. package/dist/src/core/overlay/applier.d.ts.map +1 -1
  164. package/dist/src/core/overlay/applier.js +65 -5
  165. package/dist/src/core/overlay/applier.js.map +1 -1
  166. package/dist/src/core/overlay/loader.d.ts.map +1 -1
  167. package/dist/src/core/overlay/loader.js +9 -4
  168. package/dist/src/core/overlay/loader.js.map +1 -1
  169. package/dist/src/core/overlay/types.d.ts +2 -0
  170. package/dist/src/core/overlay/types.d.ts.map +1 -1
  171. package/dist/src/core/overlay/types.js +2 -0
  172. package/dist/src/core/overlay/types.js.map +1 -1
  173. package/dist/src/tui/tools-ui/ToolsDashboard.d.ts.map +1 -1
  174. package/dist/src/tui/tools-ui/ToolsDashboard.js +1 -1
  175. package/dist/src/tui/tools-ui/ToolsDashboard.js.map +1 -1
  176. package/dist/src/tui/tools-ui/ToolsOverview.d.ts.map +1 -1
  177. package/dist/src/tui/tools-ui/ToolsOverview.js +51 -4
  178. package/dist/src/tui/tools-ui/ToolsOverview.js.map +1 -1
  179. package/package.json +1 -1
  180. package/shared/agent-types.ts +2 -0
  181. package/workflows/analyze.md +24 -2
  182. package/workflows/auto-test.md +12 -0
  183. package/workflows/brainstorm.md +11 -1
  184. package/workflows/debug.md +13 -4
  185. package/workflows/delegate-protocol.codex.md +65 -0
  186. package/workflows/plan.md +14 -4
  187. package/workflows/test.md +10 -0
@@ -1,176 +1,176 @@
1
- ---
2
- name: maestro-update
3
- description: Interactive workflow migration — detect version, preview changes, apply upgrades
4
- argument-hint: "[--dry-run] [--force]"
5
- allowed-tools:
6
- - Read
7
- - Write
8
- - Edit
9
- - Bash
10
- - Glob
11
- - Grep
12
- - AskUserQuestion
13
- ---
14
- <purpose>
15
- Detect the current `.workflow/` schema version, show available migrations, and interactively apply them step-by-step. Uses a migration registry that supports incremental version upgrades (e.g., 1.0 → 2.0 → 3.0).
16
-
17
- Each migration step is previewed before execution. The user confirms each step in a loop.
18
- </purpose>
19
-
20
- <context>
21
- $ARGUMENTS — optional flags.
22
-
23
- **Flags:**
24
- - `--dry-run` -- Preview migration plan without executing
25
- - `--force` -- Skip confirmation prompts (apply all pending migrations)
26
-
27
- **Migration registry:** `src/migrations/`
28
- - Each migration is a standalone file (e.g., `v1-to-v2.ts`) exporting a `MigrationDef`
29
- - All migrations are registered via `src/migrations/index.ts`
30
- - Registry auto-chains: detects current version → walks chain → applies in order
31
- - To add a new migration: create `src/migrations/v{N}-to-v{N+1}.ts`, register in `index.ts`
32
-
33
- **CLI runner:** `src/migrations/run.ts`
34
- - Executable entrypoint: `npx tsx src/migrations/run.ts [root] [--dry-run] [--force] [--json]`
35
- - Outputs JSON (with `--json`) or human-readable text
36
-
37
- **State version source:** `.workflow/state.json` → `version` field
38
- </context>
39
-
40
- <execution>
41
-
42
- ### Step 1: Detect Current State
43
-
44
- ```
45
- 1. Read .workflow/state.json
46
- 2. Extract version field (default "1.0" if missing)
47
- 3. Display:
48
-
49
- === Maestro Workflow Update ===
50
- Project: {project_name}
51
- Version: {version}
52
- Location: {.workflow/ path}
53
- ```
54
-
55
- ### Step 2: Dry-Run Preview
56
-
57
- Run the migration CLI in dry-run + JSON mode to get the full plan:
58
-
59
- ```bash
60
- npx tsx src/migrations/run.ts "$(pwd)" --dry-run --json
61
- ```
62
-
63
- Parse the JSON output. If status is `up-to-date`:
64
- ```
65
- Already up to date (v{version})
66
- ```
67
- → EXIT
68
-
69
- Otherwise display the migration plan:
70
- ```
71
- Pending Migrations ({N} step(s)):
72
-
73
- 1. [v{from} → v{to}] {name}
74
- {description}
75
-
76
- 2. [v{from} → v{to}] {name}
77
- {description}
78
- ```
79
-
80
- If `--dry-run` flag was passed by user → display plan and EXIT.
81
-
82
- ### Step 3: Interactive Confirmation Loop
83
-
84
- For each migration step (unless `--force`):
85
-
86
- ```
87
- LOOP for step_index = 1 to N:
88
-
89
- Display:
90
- --- Step {step_index}/{N}: {name} ---
91
- Version: v{from} → v{to}
92
-
93
- Changes:
94
- {description, indented}
95
-
96
- IF NOT --force:
97
- AskUserQuestion: "Apply this migration?"
98
- Options: [yes / skip / abort]
99
-
100
- - "yes" → proceed to Step 4 (execute)
101
- - "skip" → WARN "Skipping may break the migration chain"
102
- continue to next step
103
- - "abort" → display summary of what was applied so far → EXIT
104
-
105
- IF --force:
106
- → proceed to Step 4 (execute)
107
- ```
108
-
109
- ### Step 4: Execute Single Migration
110
-
111
- ```
112
- 1. Create backup:
113
- Bash: cp .workflow/state.json .workflow/state.json.backup-v{from}-{timestamp}
114
-
115
- 2. Run migration:
116
- Bash: npx tsx src/migrations/run.ts "$(pwd)" --json
117
-
118
- NOTE: The runner executes ALL pending migrations. For step-by-step control,
119
- read state.json, call the migration function directly, or use the runner
120
- which stops on first failure.
121
-
122
- 3. Parse result JSON and display:
123
-
124
- {status_icon} Step {N} completed: {name}
125
- Summary: {summary}
126
- Changes:
127
- - {change_1}
128
- - {change_2}
129
- - ...
130
-
131
- 4. If failed:
132
- Display: "Migration failed: {summary}"
133
- Display: "Backup available at: {backup_path}"
134
- Display: "Restore with: cp {backup_path} .workflow/state.json"
135
- → EXIT
136
-
137
- 5. Continue loop to next step
138
- ```
139
-
140
- ### Step 5: Summary
141
-
142
- After all steps completed (or user aborted):
143
-
144
- ```
145
- === Migration Complete ===
146
- Applied: {applied_count} / {total_count} migration(s)
147
- Skipped: {skipped_count}
148
- Version: v{original} → v{final}
149
- Backup: .workflow/state.json.backup-v{original}-{timestamp}
150
-
151
- Next steps:
152
- /manage-status -- Verify project state
153
- /maestro -- Continue workflow
154
- ```
155
-
156
- </execution>
157
-
158
- <error_codes>
159
- | Code | Severity | Condition | Recovery |
160
- |------|----------|-----------|----------|
161
- | E001 | error | .workflow/state.json not found | Run /maestro-init first |
162
- | E002 | error | state.json parse error | Check file for corruption |
163
- | E003 | error | Migration function failed | Restore from backup |
164
- | W001 | warning | Skipped migration may break version chain | Re-run /maestro-update later |
165
- | W002 | warning | tsx not available | Install tsx: npm i -D tsx |
166
- </error_codes>
167
-
168
- <success_criteria>
169
- - [ ] Current version detected from state.json
170
- - [ ] Dry-run preview shows full migration plan without execution
171
- - [ ] Each step confirmed interactively (unless --force)
172
- - [ ] Backup created before each migration
173
- - [ ] Migration executed and result displayed with change list
174
- - [ ] Abort stops cleanly with partial summary
175
- - [ ] Summary shows applied/skipped counts and version change
176
- </success_criteria>
1
+ ---
2
+ name: maestro-update
3
+ description: Detect version, preview changes, apply workflow upgrades
4
+ argument-hint: "[--dry-run] [--force]"
5
+ allowed-tools:
6
+ - Read
7
+ - Write
8
+ - Edit
9
+ - Bash
10
+ - Glob
11
+ - Grep
12
+ - AskUserQuestion
13
+ ---
14
+ <purpose>
15
+ Detect the current `.workflow/` schema version, show available migrations, and interactively apply them step-by-step. Uses a migration registry that supports incremental version upgrades (e.g., 1.0 → 2.0 → 3.0).
16
+
17
+ Each migration step is previewed before execution. The user confirms each step in a loop.
18
+ </purpose>
19
+
20
+ <context>
21
+ $ARGUMENTS — optional flags.
22
+
23
+ **Flags:**
24
+ - `--dry-run` -- Preview migration plan without executing
25
+ - `--force` -- Skip confirmation prompts (apply all pending migrations)
26
+
27
+ **Migration registry:** `src/migrations/`
28
+ - Each migration is a standalone file (e.g., `v1-to-v2.ts`) exporting a `MigrationDef`
29
+ - All migrations are registered via `src/migrations/index.ts`
30
+ - Registry auto-chains: detects current version → walks chain → applies in order
31
+ - To add a new migration: create `src/migrations/v{N}-to-v{N+1}.ts`, register in `index.ts`
32
+
33
+ **CLI runner:** `src/migrations/run.ts`
34
+ - Executable entrypoint: `npx tsx src/migrations/run.ts [root] [--dry-run] [--force] [--json]`
35
+ - Outputs JSON (with `--json`) or human-readable text
36
+
37
+ **State version source:** `.workflow/state.json` → `version` field
38
+ </context>
39
+
40
+ <execution>
41
+
42
+ ### Step 1: Detect Current State
43
+
44
+ ```
45
+ 1. Read .workflow/state.json
46
+ 2. Extract version field (default "1.0" if missing)
47
+ 3. Display:
48
+
49
+ === Maestro Workflow Update ===
50
+ Project: {project_name}
51
+ Version: {version}
52
+ Location: {.workflow/ path}
53
+ ```
54
+
55
+ ### Step 2: Dry-Run Preview
56
+
57
+ Run the migration CLI in dry-run + JSON mode to get the full plan:
58
+
59
+ ```bash
60
+ npx tsx src/migrations/run.ts "$(pwd)" --dry-run --json
61
+ ```
62
+
63
+ Parse the JSON output. If status is `up-to-date`:
64
+ ```
65
+ Already up to date (v{version})
66
+ ```
67
+ → EXIT
68
+
69
+ Otherwise display the migration plan:
70
+ ```
71
+ Pending Migrations ({N} step(s)):
72
+
73
+ 1. [v{from} → v{to}] {name}
74
+ {description}
75
+
76
+ 2. [v{from} → v{to}] {name}
77
+ {description}
78
+ ```
79
+
80
+ If `--dry-run` flag was passed by user → display plan and EXIT.
81
+
82
+ ### Step 3: Interactive Confirmation Loop
83
+
84
+ For each migration step (unless `--force`):
85
+
86
+ ```
87
+ LOOP for step_index = 1 to N:
88
+
89
+ Display:
90
+ --- Step {step_index}/{N}: {name} ---
91
+ Version: v{from} → v{to}
92
+
93
+ Changes:
94
+ {description, indented}
95
+
96
+ IF NOT --force:
97
+ AskUserQuestion: "Apply this migration?"
98
+ Options: [yes / skip / abort]
99
+
100
+ - "yes" → proceed to Step 4 (execute)
101
+ - "skip" → WARN "Skipping may break the migration chain"
102
+ continue to next step
103
+ - "abort" → display summary of what was applied so far → EXIT
104
+
105
+ IF --force:
106
+ → proceed to Step 4 (execute)
107
+ ```
108
+
109
+ ### Step 4: Execute Single Migration
110
+
111
+ ```
112
+ 1. Create backup:
113
+ Bash: cp .workflow/state.json .workflow/state.json.backup-v{from}-{timestamp}
114
+
115
+ 2. Run migration:
116
+ Bash: npx tsx src/migrations/run.ts "$(pwd)" --json
117
+
118
+ NOTE: The runner executes ALL pending migrations. For step-by-step control,
119
+ read state.json, call the migration function directly, or use the runner
120
+ which stops on first failure.
121
+
122
+ 3. Parse result JSON and display:
123
+
124
+ {status_icon} Step {N} completed: {name}
125
+ Summary: {summary}
126
+ Changes:
127
+ - {change_1}
128
+ - {change_2}
129
+ - ...
130
+
131
+ 4. If failed:
132
+ Display: "Migration failed: {summary}"
133
+ Display: "Backup available at: {backup_path}"
134
+ Display: "Restore with: cp {backup_path} .workflow/state.json"
135
+ → EXIT
136
+
137
+ 5. Continue loop to next step
138
+ ```
139
+
140
+ ### Step 5: Summary
141
+
142
+ After all steps completed (or user aborted):
143
+
144
+ ```
145
+ === Migration Complete ===
146
+ Applied: {applied_count} / {total_count} migration(s)
147
+ Skipped: {skipped_count}
148
+ Version: v{original} → v{final}
149
+ Backup: .workflow/state.json.backup-v{original}-{timestamp}
150
+
151
+ Next steps:
152
+ /manage-status -- Verify project state
153
+ /maestro -- Continue workflow
154
+ ```
155
+
156
+ </execution>
157
+
158
+ <error_codes>
159
+ | Code | Severity | Condition | Recovery |
160
+ |------|----------|-----------|----------|
161
+ | E001 | error | .workflow/state.json not found | Run /maestro-init first |
162
+ | E002 | error | state.json parse error | Check file for corruption |
163
+ | E003 | error | Migration function failed | Restore from backup |
164
+ | W001 | warning | Skipped migration may break version chain | Re-run /maestro-update later |
165
+ | W002 | warning | tsx not available | Install tsx: npm i -D tsx |
166
+ </error_codes>
167
+
168
+ <success_criteria>
169
+ - [ ] Current version detected from state.json
170
+ - [ ] Dry-run preview shows full migration plan without execution
171
+ - [ ] Each step confirmed interactively (unless --force)
172
+ - [ ] Backup created before each migration
173
+ - [ ] Migration executed and result displayed with change list
174
+ - [ ] Abort stops cleanly with partial summary
175
+ - [ ] Summary shows applied/skipped counts and version change
176
+ </success_criteria>
@@ -1,90 +1,96 @@
1
- ---
2
- name: maestro-verify
3
- description: Goal-Backward verification with 3-layer must-have checks, anti-pattern scan, Nyquist test coverage validation, and gap-fix plan generation
4
- argument-hint: "[phase] [--skip-tests] [--skip-antipattern] [--dir <path>]"
5
- allowed-tools:
6
- - Read
7
- - Write
8
- - Edit
9
- - Bash
10
- - Glob
11
- - Grep
12
- - Agent
13
- - AskUserQuestion
14
- ---
15
- <purpose>
16
- Verify execution results through three complementary methods:
17
- 1. **Goal-Backward verification** — 3-layer check (Truths → Artifacts → Wiring) that validates goals are actually achieved
18
- 2. **Anti-pattern scan** — detect stubs, placeholders, TODO/FIXME, empty returns in modified files
19
- 3. **Nyquist test coverage validation** — requirement-to-test mapping with gap classification
20
-
21
- Supports dual-level verification:
22
- - **Single plan**: `verify --dir scratch/plan-xxx` — verifies one plan, writes `verification.json` into plan dir
23
- - **Milestone**: `verify` (no args) — aggregates all execute artifacts for current milestone into `scratch/{YYYYMMDD}-verify-M{N}-{slug}/milestone-verification.json`
24
-
25
- Registers VRF artifact in state.json on completion.
26
- </purpose>
27
-
28
- <required_reading>
29
- @~/.maestro/workflows/verify.md
30
- </required_reading>
31
-
32
- <deferred_reading>
33
- - [verification.json](~/.maestro/templates/verification.json) — read when generating output
34
- - [validation.json](~/.maestro/templates/validation.json) — read when generating test output
35
- </deferred_reading>
36
-
37
- <context>
38
- $ARGUMENTS — phase number or no args for milestone-wide, with optional flags.
39
-
40
- Flags (`--skip-tests`, `--skip-antipattern`, `--dir`), scope routing, output paths, and VRF artifact registration schema are defined in workflow `verify.md`.
41
- </context>
42
-
43
- <execution>
44
- Follow '~/.maestro/workflows/verify.md' completely.
45
-
46
- ### Post-verify Knowledge Inquiry
47
-
48
- After verification completes, evaluate inquiry triggers:
49
-
50
- 1. **Anti-pattern detection**: If anti-pattern scan found blockers (TODO/FIXME, stubs, empty returns):
51
- → Ask: "Verification found {N} anti-patterns. Should `quality-rules.md` be updated to enforce these checks? (`/spec-add quality`)"
52
-
53
- 2. **Constraint violation**: If Goal-Backward check found constraint_violations or missing wiring:
54
- Ask: "Verification found architecture constraint violations. Should `architecture-constraints.md` be updated? (`/spec-add arch`)"
55
-
56
- 3. **Test coverage gaps**: If Nyquist gaps found with recurring pattern (same module/type across tasks):
57
- → Ask: "Persistent test coverage gap detected in {module}. Should it be added to `test-conventions.md` as a required test area? (`/spec-add test`)"
58
-
59
- If user confirms, invoke `Skill({ skill: "spec-add", args: "<category> <content>" })`.
60
-
61
- **Next-step routing on completion:**
62
- - All checks pass, no gaps /quality-review
63
- - Gaps found (must-have failures or anti-pattern blockers) /maestro-plan --gaps
64
- - Low test coverage (Nyquist gaps) → /quality-auto-test
65
-
66
- **Gap-fix closure loop:**
67
- Gaps found → maestro-plan --gaps maestro-execute → maestro-verify (re-run)
68
- </execution>
69
-
70
- <error_codes>
71
- | Code | Severity | Condition | Recovery |
72
- |------|----------|-----------|----------|
73
- | E001 | error | No executed plans found for verification | Run maestro-execute first |
74
- | E002 | error | Plan directory not found | Check --dir path |
75
- | E003 | error | No execution results found (missing summaries) | Run maestro-execute first |
76
- | W001 | warning | Test coverage below configured threshold | Review coverage gaps |
77
- | W002 | warning | Anti-pattern blockers found in modified files | Fix blockers before proceeding |
78
- </error_codes>
79
-
80
- <success_criteria>
81
- - [ ] Must-haves established (from convergence.criteria in tasks)
82
- - [ ] All truths verified with status and evidence (Layer 1)
83
- - [ ] All artifacts checked at L1 (exists), L2 (substantive), L3 (wired) (Layer 2)
84
- - [ ] All key links verified with evidence (Layer 3)
85
- - [ ] Anti-patterns scanned and categorized (unless skipped)
86
- - [ ] Nyquist test coverage assessed (unless skipped)
87
- - [ ] Fix plans generated for identified gaps
88
- - [ ] verification.json written to plan dir (single plan) or milestone verify dir
89
- - [ ] VRF artifact registered in state.json
90
- </success_criteria>
1
+ ---
2
+ name: maestro-verify
3
+ description: Verify goals with must-have checks and test coverage validation
4
+ argument-hint: "[phase] [--skip-tests] [--skip-antipattern] [--dir <path>]"
5
+ allowed-tools:
6
+ - Read
7
+ - Write
8
+ - Edit
9
+ - Bash
10
+ - Glob
11
+ - Grep
12
+ - Agent
13
+ - AskUserQuestion
14
+ ---
15
+ <purpose>
16
+ Verify execution results through three complementary methods:
17
+ 1. **Goal-Backward verification** — 3-layer check (Truths → Artifacts → Wiring) that validates goals are actually achieved
18
+ 2. **Anti-pattern scan** — detect stubs, placeholders, TODO/FIXME, empty returns in modified files
19
+ 3. **Nyquist test coverage validation** — requirement-to-test mapping with gap classification
20
+
21
+ Supports dual-level verification:
22
+ - **Single plan**: `verify --dir scratch/plan-xxx` — verifies one plan, writes `verification.json` into plan dir
23
+ - **Milestone**: `verify` (no args) — aggregates all execute artifacts for current milestone into `scratch/{YYYYMMDD}-verify-M{N}-{slug}/milestone-verification.json`
24
+
25
+ Registers VRF artifact in state.json on completion.
26
+ </purpose>
27
+
28
+ <required_reading>
29
+ @~/.maestro/workflows/verify.md
30
+ </required_reading>
31
+
32
+ <deferred_reading>
33
+ - [verification.json](~/.maestro/templates/verification.json) — read when generating output
34
+ - [validation.json](~/.maestro/templates/validation.json) — read when generating test output
35
+ </deferred_reading>
36
+
37
+ <context>
38
+ $ARGUMENTS — phase number or no args for milestone-wide, with optional flags.
39
+
40
+ Flags (`--skip-tests`, `--skip-antipattern`, `--dir`), scope routing, output paths, and VRF artifact registration schema are defined in workflow `verify.md`.
41
+
42
+ ### Pre-load context (before verification)
43
+
44
+ 1. **Codebase docs**: If `.workflow/codebase/` exists, read `ARCHITECTURE.md` for expected module wiring and `FEATURES.md` for component mapping. Use in Layer 3 (Connection) checks.
45
+ 2. **Wiki constraints**: Run `maestro wiki search "architecture constraint" --json 2>/dev/null`. If results found, include documented invariants as additional truth checks in Layer 1.
46
+ 3. Both are optional — proceed without if unavailable.
47
+ </context>
48
+
49
+ <execution>
50
+ Follow '~/.maestro/workflows/verify.md' completely.
51
+
52
+ ### Post-verify Knowledge Inquiry
53
+
54
+ After verification completes, evaluate inquiry triggers:
55
+
56
+ 1. **Anti-pattern detection**: If anti-pattern scan found blockers (TODO/FIXME, stubs, empty returns):
57
+ → Ask: "Verification found {N} anti-patterns. Should `quality-rules.md` be updated to enforce these checks? (`/spec-add quality`)"
58
+
59
+ 2. **Constraint violation**: If Goal-Backward check found constraint_violations or missing wiring:
60
+ → Ask: "Verification found architecture constraint violations. Should `architecture-constraints.md` be updated? (`/spec-add arch`)"
61
+
62
+ 3. **Test coverage gaps**: If Nyquist gaps found with recurring pattern (same module/type across tasks):
63
+ Ask: "Persistent test coverage gap detected in {module}. Should it be added to `test-conventions.md` as a required test area? (`/spec-add test`)"
64
+
65
+ If user confirms, invoke `Skill({ skill: "spec-add", args: "<category> <content>" })`.
66
+
67
+ **Next-step routing on completion:**
68
+ - All checks pass, no gaps → /quality-review
69
+ - Gaps found (must-have failures or anti-pattern blockers) → /maestro-plan --gaps
70
+ - Low test coverage (Nyquist gaps) → /quality-auto-test
71
+
72
+ **Gap-fix closure loop:**
73
+ Gaps found maestro-plan --gaps maestro-execute maestro-verify (re-run)
74
+ </execution>
75
+
76
+ <error_codes>
77
+ | Code | Severity | Condition | Recovery |
78
+ |------|----------|-----------|----------|
79
+ | E001 | error | No executed plans found for verification | Run maestro-execute first |
80
+ | E002 | error | Plan directory not found | Check --dir path |
81
+ | E003 | error | No execution results found (missing summaries) | Run maestro-execute first |
82
+ | W001 | warning | Test coverage below configured threshold | Review coverage gaps |
83
+ | W002 | warning | Anti-pattern blockers found in modified files | Fix blockers before proceeding |
84
+ </error_codes>
85
+
86
+ <success_criteria>
87
+ - [ ] Must-haves established (from convergence.criteria in tasks)
88
+ - [ ] All truths verified with status and evidence (Layer 1)
89
+ - [ ] All artifacts checked at L1 (exists), L2 (substantive), L3 (wired) (Layer 2)
90
+ - [ ] All key links verified with evidence (Layer 3)
91
+ - [ ] Anti-patterns scanned and categorized (unless skipped)
92
+ - [ ] Nyquist test coverage assessed (unless skipped)
93
+ - [ ] Fix plans generated for identified gaps
94
+ - [ ] verification.json written to plan dir (single plan) or milestone verify dir
95
+ - [ ] VRF artifact registered in state.json
96
+ </success_criteria>