maestro-flow-one 0.2.33 → 0.2.35

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 (48) hide show
  1. package/maestro-flow/commands/learn/investigate.md +151 -152
  2. package/maestro-flow/commands/learn/second-opinion.md +118 -122
  3. package/maestro-flow/commands/lifecycle/analyze.md +215 -266
  4. package/maestro-flow/commands/lifecycle/blueprint.md +189 -204
  5. package/maestro-flow/commands/lifecycle/brainstorm.md +209 -213
  6. package/maestro-flow/commands/lifecycle/companion.md +531 -531
  7. package/maestro-flow/commands/lifecycle/composer.md +188 -179
  8. package/maestro-flow/commands/lifecycle/execute.md +183 -184
  9. package/maestro-flow/commands/lifecycle/fork.md +111 -110
  10. package/maestro-flow/commands/lifecycle/grill.md +175 -176
  11. package/maestro-flow/commands/lifecycle/guard.md +103 -102
  12. package/maestro-flow/commands/lifecycle/impeccable.md +311 -268
  13. package/maestro-flow/commands/lifecycle/init.md +130 -131
  14. package/maestro-flow/commands/lifecycle/merge.md +87 -80
  15. package/maestro-flow/commands/lifecycle/next.md +253 -257
  16. package/maestro-flow/commands/lifecycle/overlay.md +188 -178
  17. package/maestro-flow/commands/lifecycle/plan.md +225 -211
  18. package/maestro-flow/commands/lifecycle/quick.md +83 -77
  19. package/maestro-flow/commands/lifecycle/roadmap.md +173 -186
  20. package/maestro-flow/commands/lifecycle/swarm-workflow.md +243 -264
  21. package/maestro-flow/commands/lifecycle/tools-execute.md +122 -117
  22. package/maestro-flow/commands/lifecycle/tools-register.md +162 -157
  23. package/maestro-flow/commands/lifecycle/ui-codify.md +117 -100
  24. package/maestro-flow/commands/lifecycle/universal-workflow.md +548 -561
  25. package/maestro-flow/commands/lifecycle/update.md +122 -119
  26. package/maestro-flow/commands/manage/codebase-rebuild.md +87 -85
  27. package/maestro-flow/commands/manage/harvest.md +97 -95
  28. package/maestro-flow/commands/manage/issue-discover.md +83 -81
  29. package/maestro-flow/commands/manage/issue.md +72 -73
  30. package/maestro-flow/commands/manage/kg-extractors.md +128 -0
  31. package/maestro-flow/commands/manage/knowhow-capture.md +92 -82
  32. package/maestro-flow/commands/manage/knowhow.md +83 -79
  33. package/maestro-flow/commands/manage/knowledge-audit.md +105 -88
  34. package/maestro-flow/commands/manage/status.md +62 -52
  35. package/maestro-flow/commands/manage/wiki.md +82 -71
  36. package/maestro-flow/commands/milestone/audit.md +4 -10
  37. package/maestro-flow/commands/milestone/complete.md +6 -7
  38. package/maestro-flow/commands/milestone/release.md +136 -145
  39. package/maestro-flow/commands/quality/auto-test.md +153 -136
  40. package/maestro-flow/commands/quality/debug.md +159 -120
  41. package/maestro-flow/commands/quality/refactor.md +105 -67
  42. package/maestro-flow/commands/quality/retrospective.md +123 -77
  43. package/maestro-flow/commands/quality/review.md +155 -128
  44. package/maestro-flow/commands/quality/sync.md +88 -52
  45. package/maestro-flow/commands/quality/test.md +147 -117
  46. package/maestro-flow/commands/spec/add.md +77 -70
  47. package/maestro-flow/commands/spec/setup.md +49 -52
  48. package/package.json +1 -1
@@ -13,16 +13,8 @@ allowed-tools:
13
13
  ---
14
14
 
15
15
  <purpose>
16
- Audit milestone completion using the artifact registry. Checks:
17
- 1. Phase coverage — every phase in roadmap has plan + execute artifacts (completed)
18
- 2. Ad-hoc completeness — all adhoc artifacts are completed (or explicitly skipped)
19
- 3. Execution completeness — all tasks in executed plans are completed
20
- 4. Cross-artifact integration — interfaces, data contracts, configuration consistency
21
-
22
- Data source: `state.json.artifacts[]` filtered by current milestone.
23
- Produces audit report at `.workflow/milestones/{milestone}/audit-report.md`.
24
-
25
- Pipeline position: downstream of maestro-execute (which includes verification), upstream of maestro-milestone-complete.
16
+ Audit milestone for phase coverage, execution completeness, and integration gaps.
17
+ Produces audit-report.md with PASS/FAIL verdict.
26
18
  </purpose>
27
19
 
28
20
  <required_reading>
@@ -69,11 +61,13 @@ Audit checklist steps (phase coverage, ad-hoc completeness, execution completene
69
61
  **GATE 2: Phase Coverage → Integration Check**
70
62
  - REQUIRED: Every phase checked for artifact chain completeness (ANL→PLN→EXC for standard, PLN→EXC for adhoc).
71
63
  - REQUIRED: Execution completeness verified — all tasks in executed plans checked for status.
64
+ - BLOCKED if missing: phase coverage check incomplete — do not proceed to integration check with unchecked phases.
72
65
  - Do NOT skip incomplete chains — each gap MUST be logged in audit report.
73
66
 
74
67
  **GATE 3: Integration Check → Report**
75
68
  - REQUIRED: Cross-artifact integration check completed (shared interfaces, data contracts, configuration consistency).
76
69
  - REQUIRED: Clear PASS/FAIL verdict determined with evidence for each check.
70
+ - BLOCKED if missing: integration check not completed — do not write report without cross-artifact verification.
77
71
 
78
72
  ### Artifact Verification (before completion)
79
73
 
@@ -13,13 +13,8 @@ allowed-tools:
13
13
  ---
14
14
 
15
15
  <purpose>
16
- Mark a milestone as complete after its audit has passed. Performs 6-step archival:
17
- validation directory archival artifact history → knowhow extraction → state advancement → cleanup.
18
-
19
- Produces `milestones/{M}/artifacts/` archive and `specs/learnings.md` knowhow entries.
20
- Supports two milestone types: standard (advances to next milestone) and adhoc (self-contained, sets idle).
21
-
22
- Pipeline position: downstream of `maestro-milestone-audit` (requires PASS verdict). Upstream of `maestro-milestone-release` (cut a release) or next milestone planning (`maestro-analyze` / `maestro-plan`).
16
+ Archive passed milestone: validate, archive artifacts, extract knowhow, advance state.
17
+ Requires audit PASS; produces milestone archive and learnings.
23
18
  </purpose>
24
19
 
25
20
  <required_reading>
@@ -51,18 +46,22 @@ Archive flow steps (validation, directory archival, artifact history, knowhow ex
51
46
  **GATE 1: Validation → Archival**
52
47
  - REQUIRED: Audit report verified as PASS (E002 if not).
53
48
  - REQUIRED: No incomplete artifacts remain (E003 if any).
49
+ - BLOCKED if: audit not passed (E002) or incomplete artifacts remain (E003) — cannot archive unvalidated milestone.
54
50
 
55
51
  **GATE 2: Archival → Knowhow Extraction**
56
52
  - REQUIRED: Scratch artifacts moved to `milestones/{M}/artifacts/`.
57
53
  - REQUIRED: Artifact entries archived to milestone_history in state.json.
54
+ - BLOCKED if missing: artifacts not moved or history not updated — knowhow extraction needs archived artifacts as input.
58
55
 
59
56
  **GATE 3: Knowhow Extraction → State Advancement**
60
57
  - REQUIRED: Knowhow extraction attempted (may produce 0 entries — W001).
61
58
  - REQUIRED: `project.md` Context updated with milestone summary.
59
+ - BLOCKED if missing: knowhow extraction not attempted or project.md not updated — state advancement requires completed knowledge capture.
62
60
 
63
61
  **GATE 4: State Advancement → Completion**
64
62
  - REQUIRED: state.json updated — next milestone as current (standard) or current_milestone=null (adhoc).
65
63
  - REQUIRED: Roadmap snapshot saved (standard only).
64
+ - BLOCKED if missing: state.json not advanced — project remains stuck on completed milestone.
66
65
 
67
66
  ### Knowledge Promotion Inquiry
68
67
 
@@ -1,145 +1,136 @@
1
- ---
2
- name: maestro-milestone-release
3
- description: Bump version, generate changelog, tag milestone
4
- argument-hint: "[<version>] [--bump patch|minor|major] [--dry-run] [--no-tag] [--no-push]"
5
- allowed-tools:
6
- - Read
7
- - Write
8
- - Edit
9
- - Bash
10
- - Glob
11
- - Grep
12
- - Agent
13
- - AskUserQuestion
14
- ---
15
-
16
- <purpose>
17
- Package a completed milestone into a releasable version. Bumps the project version (e.g. `package.json`, `pyproject.toml`, or language-specific manifest), generates or appends a changelog entry from phase/milestone summaries and git log, creates an annotated git tag, and optionally pushes to the remote. Runs after `/maestro-milestone-complete` has archived the milestone; serves as the final delivery step in the SDLC loop.
18
-
19
- Pipeline position: downstream of `/maestro-milestone-complete` (consumes archived milestone + audit verdict). Terminal command — no downstream consumer.
20
- </purpose>
21
-
22
- <required_reading>
23
- @~/.maestro/workflows/milestone-release.md
24
- </required_reading>
25
-
26
- <context>
27
- $ARGUMENTS -- optional explicit version string and flags.
28
-
29
- **Flags:**
30
-
31
- | Flag | Effect | Default |
32
- |------|--------|---------|
33
- | `<version>` | Explicit version (e.g. `1.2.0`). If omitted, version is derived from `--bump` or prompted | — |
34
- | `--bump patch\|minor\|major` | Semver bump relative to the current version | `minor` |
35
- | `--dry-run` | Compute the next version, changelog diff, and tag name without writing files or creating tags | `false` |
36
- | `--no-tag` | Skip git tag creation (version bump + changelog only) | `false` |
37
- | `--no-push` | Skip `git push --follow-tags` after tagging | `false` |
38
-
39
- **State files:**
40
- - `.workflow/state.json` -- current_milestone, previous release version
41
- - `.workflow/milestones/{milestone}/summary.md` -- milestone summary (from `maestro-milestone-complete`)
42
- - `.workflow/milestones/{milestone}/audit-report.md` -- audit verdict (must be PASS)
43
- - `CHANGELOG.md` -- release notes file (created if missing)
44
- - Version manifest -- `package.json` / `pyproject.toml` / `Cargo.toml` / etc. (auto-detected)
45
-
46
- **Preconditions:**
47
- - Current milestone must be completed (audit PASS + `/maestro-milestone-complete` run)
48
- - Working tree must be clean (no uncommitted changes) unless `--dry-run`
49
- </context>
50
-
51
- <interview_protocol>
52
- Follows @~/.maestro/workflows/interview-mechanics.md standard.
53
-
54
- **Decision points**: version bump type (major / minor / patch / custom), changelog review and confirmation
55
- **Scope guard**: only release decisions; do not prejudge next milestone scope
56
- </interview_protocol>
57
-
58
- <execution>
59
- Follow '~/.maestro/workflows/milestone-release.md' completely.
60
-
61
- ### Phase Gates (MANDATORY, BLOCKING)
62
-
63
- **GATE 1: Validation → Version Bump**
64
- - REQUIRED: Current milestone completed (audit PASS + milestone-complete run). E001 if not.
65
- - REQUIRED: Working tree clean (no uncommitted changes). E003 if dirty.
66
-
67
- **GATE 2: Version Bump → Changelog**
68
- - REQUIRED: Target version computed and greater than previous (E005 if not).
69
- - REQUIRED: Version manifest file(s) identified and accessible.
70
-
71
- **GATE 3: Changelog → Tag/Push**
72
- - REQUIRED: CHANGELOG.md entry written with milestone summary + grouped changes.
73
- - REQUIRED: Release commit created with conventional message.
74
-
75
- **GATE 4: Tag → Completion**
76
- - REQUIRED: Annotated git tag created (unless --no-tag).
77
- - REQUIRED: state.json updated with last_release_version + last_release_at.
78
-
79
- **High-level flow:**
80
- 1. Validate preconditions (milestone completed, clean tree, audit PASS)
81
- 2. Resolve target version from `<version>` or `--bump` against current manifest
82
- 3. Collect changes since last release tag: milestone summary + phase summaries + git log between tags
83
- 4. Generate `CHANGELOG.md` entry (grouped by phase / change type)
84
- 5. Write version to manifest file(s) + commit with message `chore(release): v{version}`
85
- 6. Create annotated git tag `v{version}` with release notes body (unless `--no-tag`)
86
- 7. Push commit + tag to remote (unless `--no-push`)
87
-
88
- For `--dry-run`, print the computed version, changelog diff, and tag name without side effects.
89
- </execution>
90
-
91
- <completion>
92
- ### Standalone report
93
-
94
- ```
95
- === RELEASE COMPLETE ===
96
- Version: v{previous} v{new}
97
- Milestone: {milestone_name}
98
- Tag: v{new} {pushed|local-only}
99
- Changelog: {N} entries written to CHANGELOG.md
100
- Manifest: {file_path} updated
101
- ```
102
-
103
- ### Ralph-invoked completion
104
-
105
- End the step by calling the CLI (no text block output):
106
- ```
107
- maestro ralph complete <idx> --status {STATUS} [--evidence {path}]
108
- ```
109
-
110
- Status verdicts:
111
- - **DONE** Normal completion
112
- - **DONE_WITH_CONCERNS** Completed with caveats; pass `--concerns`
113
- - **NEEDS_RETRY** — Tooling error / transient issue; ralph will retry
114
- - **BLOCKED** — External hard blocker; pass `--reason`
115
-
116
- ### Next-step routing
117
-
118
- | Condition | Suggestion |
119
- |-----------|-----------|
120
- | Release successful, starting next milestone | `/maestro-plan {next_phase}` |
121
- | Want to view project dashboard | `/manage-status` |
122
- </completion>
123
-
124
- <error_codes>
125
- | Code | Severity | Condition | Recovery |
126
- |------|----------|-----------|----------|
127
- | E001 | error | Current milestone not completed (no milestone-complete run) | Run `/maestro-milestone-complete` first |
128
- | E002 | error | Audit verdict not PASS | Re-run `/maestro-milestone-audit` and resolve findings |
129
- | E003 | error | Working tree not clean (uncommitted changes) | Commit or stash changes, then retry |
130
- | E004 | error | Version manifest not found / unsupported | Add supported manifest or pass `<version>` explicitly with `--no-tag` |
131
- | E005 | error | Target version not greater than current (would break semver monotonicity) | Choose a higher version or run with explicit `<version>` |
132
- | W001 | warning | No changes detected since last release tag | Confirm whether release is still desired |
133
- | W002 | warning | Remote push failed (network / auth) | Retry manually with `git push --follow-tags` |
134
- </error_codes>
135
-
136
- <success_criteria>
137
- - [ ] Preconditions validated (milestone complete, audit PASS, clean tree)
138
- - [ ] Target version computed and greater than previous
139
- - [ ] Version manifest(s) updated with new version
140
- - [ ] CHANGELOG.md contains new entry with milestone summary + grouped changes
141
- - [ ] Release commit created with conventional message
142
- - [ ] Annotated git tag created (unless `--no-tag`)
143
- - [ ] Commit + tag pushed to remote (unless `--no-push` or push failed → W002)
144
- - [ ] state.json updated with last_release_version + last_release_at timestamp
145
- </success_criteria>
1
+ ---
2
+ name: maestro-milestone-release
3
+ description: Bump version, generate changelog, tag milestone
4
+ argument-hint: "[<version>] [--bump patch|minor|major] [--dry-run] [--no-tag] [--no-push]"
5
+ allowed-tools:
6
+ - Read
7
+ - Write
8
+ - Edit
9
+ - Bash
10
+ - Glob
11
+ - Grep
12
+ - Agent
13
+ - AskUserQuestion
14
+ ---
15
+
16
+ <purpose>
17
+ Package a completed milestone into a releasable version: version bump changelog tag push.
18
+
19
+ Pipeline position: downstream of `/maestro-milestone-complete`. Terminal command.
20
+ </purpose>
21
+
22
+ <required_reading>
23
+ @~/.maestro/workflows/milestone-release.md
24
+ </required_reading>
25
+
26
+ <context>
27
+ $ARGUMENTS -- optional explicit version string and flags.
28
+
29
+ **Flags:**
30
+
31
+ | Flag | Effect | Default |
32
+ |------|--------|---------|
33
+ | `<version>` | Explicit version (e.g. `1.2.0`). If omitted, version is derived from `--bump` or prompted | — |
34
+ | `--bump patch\|minor\|major` | Semver bump relative to the current version | `minor` |
35
+ | `--dry-run` | Compute the next version, changelog diff, and tag name without writing files or creating tags | `false` |
36
+ | `--no-tag` | Skip git tag creation (version bump + changelog only) | `false` |
37
+ | `--no-push` | Skip `git push --follow-tags` after tagging | `false` |
38
+
39
+ **State files:**
40
+ - `.workflow/state.json` -- current_milestone, previous release version
41
+ - `.workflow/milestones/{milestone}/summary.md` -- milestone summary (from `maestro-milestone-complete`)
42
+ - `.workflow/milestones/{milestone}/audit-report.md` -- audit verdict (must be PASS)
43
+ - `CHANGELOG.md` -- release notes file (created if missing)
44
+ - Version manifest -- `package.json` / `pyproject.toml` / `Cargo.toml` / etc. (auto-detected)
45
+
46
+ **Preconditions:**
47
+ - Current milestone must be completed (audit PASS + `/maestro-milestone-complete` run)
48
+ - Working tree must be clean (no uncommitted changes) unless `--dry-run`
49
+ </context>
50
+
51
+ <interview_protocol>
52
+ Follows @~/.maestro/workflows/interview-mechanics.md standard.
53
+
54
+ **Decision points**: version bump type (major / minor / patch / custom), changelog review and confirmation
55
+ **Scope guard**: only release decisions; do not prejudge next milestone scope
56
+ </interview_protocol>
57
+
58
+ <execution>
59
+ Follow '~/.maestro/workflows/milestone-release.md' completely.
60
+
61
+ ### Phase Gates (MANDATORY, BLOCKING)
62
+
63
+ **GATE 1: Validation → Version Bump**
64
+ - REQUIRED: Current milestone completed (audit PASS + milestone-complete run). E001 if not.
65
+ - REQUIRED: Working tree clean (no uncommitted changes). E003 if dirty.
66
+
67
+ **GATE 2: Version Bump → Changelog**
68
+ - REQUIRED: Target version computed and greater than previous (E005 if not).
69
+ - REQUIRED: Version manifest file(s) identified and accessible.
70
+
71
+ **GATE 3: Changelog → Tag/Push**
72
+ - REQUIRED: CHANGELOG.md entry written with milestone summary + grouped changes.
73
+ - REQUIRED: Release commit created with conventional message.
74
+
75
+ **GATE 4: Tag → Completion**
76
+ - REQUIRED: Annotated git tag created (unless --no-tag).
77
+ - REQUIRED: state.json updated with last_release_version + last_release_at.
78
+
79
+ For `--dry-run`: print computed version, changelog diff, and tag name without side effects.
80
+ </execution>
81
+
82
+ <completion>
83
+ ### Standalone report
84
+
85
+ ```
86
+ === RELEASE COMPLETE ===
87
+ Version: v{previous} → v{new}
88
+ Milestone: {milestone_name}
89
+ Tag: v{new} {pushed|local-only}
90
+ Changelog: {N} entries written to CHANGELOG.md
91
+ Manifest: {file_path} updated
92
+ ```
93
+
94
+ ### Ralph-invoked completion
95
+
96
+ End the step by calling the CLI (no text block output):
97
+ ```
98
+ maestro ralph complete <idx> --status {STATUS} [--evidence {path}]
99
+ ```
100
+
101
+ Status verdicts:
102
+ - **DONE** — Normal completion
103
+ - **DONE_WITH_CONCERNS** — Completed with caveats; pass `--concerns`
104
+ - **NEEDS_RETRY** — Tooling error / transient issue; ralph will retry
105
+ - **BLOCKED** External hard blocker; pass `--reason`
106
+
107
+ ### Next-step routing
108
+
109
+ | Condition | Suggestion |
110
+ |-----------|-----------|
111
+ | Release successful, starting next milestone | `/maestro-plan {next_phase}` |
112
+ | Want to view project dashboard | `/manage-status` |
113
+ </completion>
114
+
115
+ <error_codes>
116
+ | Code | Severity | Condition | Recovery |
117
+ |------|----------|-----------|----------|
118
+ | E001 | error | Current milestone not completed (no milestone-complete run) | Run `/maestro-milestone-complete` first |
119
+ | E002 | error | Audit verdict not PASS | Re-run `/maestro-milestone-audit` and resolve findings |
120
+ | E003 | error | Working tree not clean (uncommitted changes) | Commit or stash changes, then retry |
121
+ | E004 | error | Version manifest not found / unsupported | Add supported manifest or pass `<version>` explicitly with `--no-tag` |
122
+ | E005 | error | Target version not greater than current (would break semver monotonicity) | Choose a higher version or run with explicit `<version>` |
123
+ | W001 | warning | No changes detected since last release tag | Confirm whether release is still desired |
124
+ | W002 | warning | Remote push failed (network / auth) | Retry manually with `git push --follow-tags` |
125
+ </error_codes>
126
+
127
+ <success_criteria>
128
+ - [ ] Preconditions validated (milestone complete, audit PASS, clean tree)
129
+ - [ ] Target version computed and greater than previous
130
+ - [ ] Version manifest(s) updated with new version
131
+ - [ ] CHANGELOG.md contains new entry with milestone summary + grouped changes
132
+ - [ ] Release commit created with conventional message
133
+ - [ ] Annotated git tag created (unless `--no-tag`)
134
+ - [ ] Commit + tag pushed to remote (unless `--no-push` or push failed → W002)
135
+ - [ ] state.json updated with last_release_version + last_release_at timestamp
136
+ </success_criteria>