maestro-flow-one 0.2.25 → 0.2.27

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.
@@ -21,6 +21,8 @@ Audit milestone completion using the artifact registry. Checks:
21
21
 
22
22
  Data source: `state.json.artifacts[]` filtered by current milestone.
23
23
  Produces audit report at `.workflow/milestones/{milestone}/audit-report.md`.
24
+
25
+ Pipeline position: downstream of maestro-verify (all phases verified), upstream of maestro-milestone-complete.
24
26
  </purpose>
25
27
 
26
28
  <required_reading>
@@ -38,19 +40,60 @@ Milestone: $ARGUMENTS (optional -- defaults to current_milestone from state.json
38
40
  - Plan scratch dirs — for task status verification
39
41
 
40
42
  **Adhoc milestone support (D-008):** When the target milestone has `type == "adhoc"` (or `type` field is missing, defaulting to `"standard"`), the audit skips roadmap.md parsing and phase coverage checks. It only validates artifact chain completeness (PLN→EXC exists) and runs integration checks.
43
+
44
+ ### Pre-load
45
+
46
+ 1. **Codebase docs**: IF `.workflow/codebase/doc-index.json` exists → Read ARCHITECTURE.md for integration checks
47
+ 2. **Specs**: `maestro spec load --category review` — load review standards for audit
48
+ 3. All optional — proceed without if unavailable
49
+
50
+ ### Role Knowledge
51
+
52
+ 1. Browse: `maestro wiki list --category review`
53
+ 2. Select entries relevant to milestone integration audit
54
+ 3. Load: `maestro wiki load <id1> [id2...]`
41
55
  </context>
42
56
 
43
57
  <execution>
44
58
  Follow '~/.maestro/workflows/milestone-audit.md' completely.
45
59
 
46
60
  Audit checklist steps (phase coverage, ad-hoc completeness, execution completeness, cross-artifact integration) are defined in workflow `milestone-audit.md`.
47
-
48
- **Next-step routing on completion:**
49
- - Verdict PASS → `/maestro-milestone-complete {milestone}`
50
- - Verdict FAIL, integration gaps → `/maestro-plan --gaps`
51
- - Verdict FAIL, incomplete execution → `/maestro-execute`
52
61
  </execution>
53
62
 
63
+ <completion>
64
+ ### Standalone report
65
+
66
+ ```
67
+ === MILESTONE AUDIT READY ===
68
+ Milestone: {milestone}
69
+ Verdict: {PASS|FAIL}
70
+ Phases audited: {N}
71
+ Integration gaps: {N}
72
+ Report: .workflow/milestones/{milestone}/audit-report.md
73
+ ```
74
+
75
+ ### Ralph-invoked completion
76
+
77
+ End the step by calling the CLI (no text block output):
78
+ ```
79
+ maestro ralph complete <idx> --status {STATUS} [--evidence .workflow/milestones/{milestone}/audit-report.md]
80
+ ```
81
+
82
+ Status verdicts:
83
+ - **DONE** — Audit passed, no gaps found
84
+ - **DONE_WITH_CONCERNS** — Audit passed with minor caveats; pass `--concerns`
85
+ - **NEEDS_RETRY** — Tooling error / transient issue; ralph will retry
86
+ - **BLOCKED** — External hard blocker; pass `--reason`
87
+
88
+ ### Next-step routing
89
+
90
+ | Condition | Suggestion |
91
+ |-----------|-----------|
92
+ | Verdict PASS | `/maestro-milestone-complete {milestone}` |
93
+ | Verdict FAIL, integration gaps | `/maestro-plan --gaps` |
94
+ | Verdict FAIL, incomplete execution | `/maestro-execute` |
95
+ </completion>
96
+
54
97
  <error_codes>
55
98
  | Code | Severity | Condition | Recovery |
56
99
  |------|----------|-----------|----------|
@@ -13,13 +13,23 @@ allowed-tools:
13
13
  ---
14
14
 
15
15
  <purpose>
16
- Mark a milestone as complete after its audit has passed. Archives all scratch artifacts to `milestones/{M}/artifacts/`, moves artifact entries from `state.json.artifacts[]` to `milestone_history`, extracts final knowhow, and advances to the next milestone.
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`).
17
23
  </purpose>
18
24
 
19
25
  <required_reading>
20
26
  @~/.maestro/workflows/milestone-complete.md
21
27
  </required_reading>
22
28
 
29
+ <deferred_reading>
30
+ - [state.json](~/.maestro/templates/state.json) — read when updating milestone_history and advancing state
31
+ </deferred_reading>
32
+
23
33
  <context>
24
34
  Milestone: $ARGUMENTS (optional -- defaults to current_milestone from state.json).
25
35
 
@@ -50,20 +60,52 @@ After knowhow extraction (step 4), scan `learnings.md` for promotion candidates:
50
60
 
51
61
  If user confirms promotion, invoke `Skill({ skill: "spec-add", args: "<category> <content>" })` with promoted content, preserving original date and source traceability.
52
62
 
53
- **Next-step routing on completion:**
54
- - Cut a release → `/maestro-milestone-release`
55
- - Next milestone → `/maestro-analyze` or `/maestro-plan 1` (standard milestones only)
56
- - View state → `/manage-status`
57
-
58
63
  **Adhoc milestone (D-008):** When completing an adhoc milestone, skip roadmap snapshot and do not advance to next milestone. Set `current_milestone = null`, `status = "idle"`. Adhoc milestones are self-contained — no successor in roadmap chain.
59
64
  </execution>
60
65
 
66
+ <completion>
67
+ ### Standalone report
68
+
69
+ ```
70
+ === MILESTONE COMPLETE ===
71
+ Milestone: {milestone_id}
72
+ Status: ARCHIVED
73
+ Artifacts archived: {count}
74
+ Knowhow extracted: {count} entries
75
+ Next milestone: {next_id | "none (adhoc)"}
76
+ ==============================
77
+ ```
78
+
79
+ ### Ralph-invoked completion
80
+
81
+ End the step by calling the CLI (no text block output):
82
+ ```
83
+ maestro ralph complete <idx> --status {STATUS} [--evidence {path}]
84
+ ```
85
+
86
+ Status verdicts:
87
+ - **DONE** — Normal completion
88
+ - **DONE_WITH_CONCERNS** — Completed with caveats; pass `--concerns`
89
+ - **NEEDS_RETRY** — Tooling error / transient issue; ralph will retry
90
+ - **BLOCKED** — External hard blocker; pass `--reason`
91
+
92
+ ### Next-step routing
93
+
94
+ | Condition | Suggestion |
95
+ |-----------|-----------|
96
+ | Cut a release | `/maestro-milestone-release` |
97
+ | Next milestone (standard) | `/maestro-analyze` or `/maestro-plan 1` |
98
+ | View state | `/manage-status` |
99
+ </completion>
100
+
61
101
  <error_codes>
62
102
  | Code | Severity | Condition | Recovery |
63
103
  |------|----------|-----------|----------|
64
104
  | E001 | error | Milestone identifier required | Check arguments |
65
105
  | E002 | error | Audit not passed | Run maestro-milestone-audit first |
66
106
  | E003 | error | Incomplete artifacts remain | Complete remaining work first |
107
+ | W001 | warning | Knowhow extraction produced 0 entries | Review milestone work for missed learnings |
108
+ | W002 | warning | Wiki-connect found unlinked knowledge islands | Run `/manage-wiki --fix` manually |
67
109
  </error_codes>
68
110
 
69
111
  <success_criteria>
@@ -15,6 +15,8 @@ allowed-tools:
15
15
 
16
16
  <purpose>
17
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.
18
20
  </purpose>
19
21
 
20
22
  <required_reading>
@@ -25,11 +27,14 @@ Package a completed milestone into a releasable version. Bumps the project versi
25
27
  $ARGUMENTS -- optional explicit version string and flags.
26
28
 
27
29
  **Flags:**
28
- - `<version>` -- explicit version (e.g. `1.2.0`). If omitted, version is derived from `--bump` or prompted.
29
- - `--bump patch|minor|major` -- semver bump relative to the current version (default: `minor`)
30
- - `--dry-run` -- compute the next version, changelog diff, and tag name without writing files or creating tags
31
- - `--no-tag` -- skip git tag creation (version bump + changelog only)
32
- - `--no-push` -- skip `git push --follow-tags` after tagging
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` |
33
38
 
34
39
  **State files:**
35
40
  - `.workflow/state.json` -- current_milestone, previous release version
@@ -43,6 +48,13 @@ $ARGUMENTS -- optional explicit version string and flags.
43
48
  - Working tree must be clean (no uncommitted changes) unless `--dry-run`
44
49
  </context>
45
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
+
46
58
  <execution>
47
59
  Follow '~/.maestro/workflows/milestone-release.md' completely.
48
60
 
@@ -55,7 +67,12 @@ Follow '~/.maestro/workflows/milestone-release.md' completely.
55
67
  6. Create annotated git tag `v{version}` with release notes body (unless `--no-tag`)
56
68
  7. Push commit + tag to remote (unless `--no-push`)
57
69
 
58
- **Report format on completion:**
70
+ For `--dry-run`, print the computed version, changelog diff, and tag name without side effects.
71
+ </execution>
72
+
73
+ <completion>
74
+ ### Standalone report
75
+
59
76
  ```
60
77
  === RELEASE COMPLETE ===
61
78
  Version: v{previous} → v{new}
@@ -63,14 +80,28 @@ Milestone: {milestone_name}
63
80
  Tag: v{new} {pushed|local-only}
64
81
  Changelog: {N} entries written to CHANGELOG.md
65
82
  Manifest: {file_path} updated
83
+ ```
84
+
85
+ ### Ralph-invoked completion
66
86
 
67
- Next steps:
68
- /maestro-plan {next_phase} -- Start next milestone's first phase
69
- /manage-status -- View project dashboard
87
+ End the step by calling the CLI (no text block output):
88
+ ```
89
+ maestro ralph complete <idx> --status {STATUS} [--evidence {path}]
70
90
  ```
71
91
 
72
- For `--dry-run`, print the computed version, changelog diff, and tag name without side effects.
73
- </execution>
92
+ Status verdicts:
93
+ - **DONE** — Normal completion
94
+ - **DONE_WITH_CONCERNS** — Completed with caveats; pass `--concerns`
95
+ - **NEEDS_RETRY** — Tooling error / transient issue; ralph will retry
96
+ - **BLOCKED** — External hard blocker; pass `--reason`
97
+
98
+ ### Next-step routing
99
+
100
+ | Condition | Suggestion |
101
+ |-----------|-----------|
102
+ | Release successful, starting next milestone | `/maestro-plan {next_phase}` |
103
+ | Want to view project dashboard | `/manage-status` |
104
+ </completion>
74
105
 
75
106
  <error_codes>
76
107
  | Code | Severity | Condition | Recovery |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "maestro-flow-one",
3
- "version": "0.2.25",
3
+ "version": "0.2.27",
4
4
  "description": "All Maestro workflow commands as a single Claude Code skill — intent routing, decision gates, minimal closed-loop chains",
5
5
  "bin": {
6
6
  "maestro-flow": "bin/maestro-flow.js"