maestro-flow-one 0.2.34 → 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 (54) 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
  49. package/maestro-flow/commands/lifecycle/odyssey-debug.md +0 -473
  50. package/maestro-flow/commands/lifecycle/odyssey-improve.md +0 -505
  51. package/maestro-flow/commands/lifecycle/odyssey-planex.md +0 -601
  52. package/maestro-flow/commands/lifecycle/odyssey-review-test-fix.md +0 -427
  53. package/maestro-flow/commands/lifecycle/odyssey-ui.md +0 -462
  54. package/maestro-flow/commands/lifecycle/security-audit.md +0 -179
@@ -1,204 +1,189 @@
1
- ---
2
- name: maestro-blueprint
3
- description: Generate formal specification package (Product Brief, PRD, Architecture, Epics) through 6-phase document chain
4
- argument-hint: "<idea or @file> [-y] [-c] [--from <source>]"
5
- allowed-tools:
6
- - Read
7
- - Write
8
- - Edit
9
- - Bash
10
- - Glob
11
- - Grep
12
- - Agent
13
- - AskUserQuestion
14
- ---
15
- <purpose>
16
- Formal specification document chain producing a complete specification package through 6 sequential phases with multi-CLI analysis and interactive refinement. Pure documentation — no code generation, no roadmap generation.
17
-
18
- Parallel to `brainstorm` as an upstream origin command:
19
- - **brainstorm** = divergent exploration (lightweight, multi-role creative)
20
- - **blueprint** = convergent documentation (heavyweight, 6-phase formal spec chain)
21
-
22
- Output: `.workflow/blueprint/BLP-{slug}-{date}/` containing Product Brief, PRD, Architecture, and Epics.
23
-
24
- Pipeline position: downstream of maestro-brainstorm (optional). Upstream of maestro-analyze, maestro-roadmap, and maestro-plan.
25
- </purpose>
26
-
27
- <required_reading>
28
- @~/.maestro/workflows/blueprint.md
29
- </required_reading>
30
-
31
- <deferred_reading>
32
- - [blueprint-config.json](~/.maestro/templates/blueprint-config.json) — read when initializing blueprint configuration
33
- </deferred_reading>
34
-
35
- <context>
36
- $ARGUMENTS -- idea text, @file reference, or upstream context source.
37
-
38
- **Flags:**
39
-
40
- | Flag | Effect | Default |
41
- |------|--------|---------|
42
- | `-y` / `--yes` | Auto mode skip interactive questions, use recommended defaults | false |
43
- | `-c` / `--continue` | Resume from last checkpoint (reads blueprint-config.json) | false |
44
- | `--from <source>` | Load upstream context package (brainstorm:ID, @file, or path). Consumes context-package.json | |
45
- | `--from-brainstorm SESSION-ID` | Backward compat alias for `--from brainstorm:ID` | — |
46
-
47
- **Input types:**
48
- - Direct text: `"Build a real-time collaboration platform with WebSocket"`
49
- - File reference: `@requirements.md`
50
- - Context import: `--from brainstorm:BRN-001` or `--from @requirements.md` or `--from path/`
51
- - Resume: `-c` (resumes from first incomplete phase)
52
-
53
- **Pipeline position:**
54
- ```
55
- maestro-brainstorm (optional upstream)
56
- ↓ guidance-specification.md / context-package.json
57
- maestro-blueprint
58
- ↓ .workflow/blueprint/BLP-{slug}-{date}/
59
- maestro-analyze maestro-roadmap → maestro-plan
60
- ```
61
-
62
- **Output boundary**: ALL file writes MUST target `.workflow/blueprint/BLP-{slug}-{date}/` or `.workflow/state.json` only. NEVER modify source code or files outside these paths.
63
-
64
- ### Pre-load
65
-
66
- 1. **Specs**: `maestro spec load --category arch` — load architecture constraints for Phase 4 decisions
67
- 2. **Wiki search**: `maestro search "{topic keywords}" --json` → prior knowledge context
68
- 3. All optional — proceed without if unavailable
69
- </context>
70
-
71
- <interview_protocol>
72
- Follows @~/.maestro/workflows/interview-mechanics.md standard.
73
-
74
- **Interaction mode**: convergent menu-driven, depth-first
75
- **Decision tree** (strict depth-first): scope (full product / feature set / single feature) → spec type (service / api / library / platform) → focus areas → whether to run codebase exploration → requirement priorities
76
- **Scope guard**: only specification shape; do not pre-resolve roadmap phases or plan tasks
77
- **Writeback target**: blueprint-config.json (each decision persisted before next question)
78
- **Additional skip conditions**: none beyond standard (-y, -c)
79
- **Exit condition**: all decision points settled → finalize blueprint-config.json, proceed to Phase 1
80
- </interview_protocol>
81
-
82
- <execution>
83
- Follow `~/.maestro/workflows/blueprint.md` completely.
84
-
85
- ### Phase chain
86
-
87
- ```
88
- P0: Spec Study P1: Discovery P1.5: Req Expansion P2: Product Brief P3: PRD → P4: Architecture → P5: Epics → P6: Readiness Check
89
- ```
90
-
91
- P6 gate: Pass (>=80%) → Handoff | Review (60-79%) → Handoff w/caveats | Fail (<60%) → P6.5 Auto-Fix (max 2 iter) → re-check
92
-
93
- ### Phase Gates (MANDATORY, BLOCKING)
94
-
95
- Each phase produces artifacts that are prerequisites for the next. Do NOT advance past a gate without verifying the prior phase's output exists.
96
-
97
- **GATE P0 → P1**: `blueprint-config.json` created with session metadata.
98
- **GATE P1 → P1.5**: Discovery context gathered (codebase patterns, upstream context loaded).
99
- **GATE P1.5 → P2**: Requirements expanded from discovery findings.
100
- **GATE P2 → P3**: `product-brief.md` written with vision, goals, scope, multi-perspective synthesis.
101
- **GATE P3 → P4**: `requirements/` directory with `_index.md` + individual `REQ-*.md` + `NFR-*.md` files. All requirements have RFC 2119 keywords and acceptance criteria.
102
- **GATE P4 → P5**: `architecture/` directory with `_index.md` + individual `ADR-*.md` files.
103
- **GATE P5 → P6**: `epics/` directory with `_index.md` + individual `EPIC-*.md` files. Cross-Epic dependency map present.
104
- **GATE P6**: Readiness score computed. Pass (≥80%) or Review (≥60%) required for handoff.
105
-
106
- ### Artifact Verification (before completion)
107
-
108
- ```
109
- REQUIRED_ARTIFACTS = [
110
- "blueprint-config.json", // P0
111
- "product-brief.md", // P2
112
- "glossary.json", // P2 (≥5 terms)
113
- "requirements/_index.md", // P3
114
- "architecture/_index.md", // P4
115
- "epics/_index.md", // P5
116
- "readiness-report.md", // P6
117
- "blueprint-summary.md", // P6
118
- "context-package.json" // P6
119
- ]
120
- ```
121
- If any artifact is missing: DO NOT report completion. Go back and produce it.
122
-
123
- ### Evidence Requirement
124
-
125
- Architecture Decision Records (ADR-*.md) MUST cite evidence for each decision:
126
- - Valid: code analysis, requirement traceability (REQ-xxx), upstream context, CLI analysis output
127
- - INVALID: generic rationale without reference to project-specific constraints
128
- </execution>
129
-
130
- <completion>
131
- ### Standalone report
132
-
133
- ```
134
- === BLUEPRINT READY ===
135
- Session: BLP-{slug}-{date}
136
- Phases completed: P0–P6
137
- Readiness score: {score}%
138
- Gate verdict: {Pass|Review|Fail}
139
- Output: .workflow/blueprint/BLP-{slug}-{date}/
140
- Key artifacts: product-brief.md, requirements/, architecture/, epics/, readiness-report.md
141
- ===
142
- ```
143
-
144
- ### Ralph-invoked completion
145
-
146
- End the step by calling the CLI (no text block output):
147
- ```
148
- maestro ralph complete <idx> --status {STATUS} [--evidence {path}]
149
- ```
150
-
151
- Status verdicts:
152
- - **DONE** — Normal completion
153
- - **DONE_WITH_CONCERNS** Completed with caveats; pass `--concerns`
154
- - **NEEDS_RETRY** — Tooling error / transient issue; ralph will retry
155
- - **BLOCKED** External hard blocker; pass `--reason`
156
-
157
- ### Next-step routing
158
-
159
- | Condition | Suggestion |
160
- |-----------|-----------|
161
- | Need codebase analysis | `/maestro-analyze {topic} --from blueprint:BLP-xxx` |
162
- | Ready for roadmap | `/maestro-roadmap --from blueprint:BLP-xxx` |
163
- | Small scope, direct plan | `/maestro-plan --from blueprint:BLP-xxx` |
164
- | Need project setup | `/maestro-init` |
165
- </completion>
166
-
167
- <error_codes>
168
- | Code | Severity | Condition | Recovery |
169
- |------|----------|-----------|----------|
170
- | E001 | error | Idea text or @file required | Prompt user for input |
171
- | E002 | error | Context source not found (--from) | Show available sessions/sources |
172
- | E006 | error | `.workflow/` not initialized | Run maestro-init first |
173
- | E007 | error | Phase 6 readiness Fail after 2 auto-fix iterations | Present manual fix options |
174
- | W001 | warning | CLI analysis failed, using fallback | Continue with available data |
175
- | W002 | warning | Codebase exploration failed | Continue without codebase context |
176
- | W003 | warning | Glossary has < 5 terms | Note in readiness check |
177
- | W004 | warning | Review-level readiness score (60-79%) | Proceed with caveats |
178
- | W005 | warning | External research agent failed | Continue without apiResearchContext |
179
- </error_codes>
180
-
181
- <success_criteria>
182
- - [ ] Interactive mode: interview decisions persisted in blueprint-config.json
183
- - [ ] `blueprint-config.json` created with session metadata and phase tracking
184
- - [ ] `product-brief.md` with vision, goals, scope, multi-perspective synthesis
185
- - [ ] `glossary.json` with 5+ core terms for cross-document consistency
186
- - [ ] `requirements/` directory with `_index.md` + individual `REQ-*.md` + `NFR-*.md` files
187
- - [ ] All requirements have RFC 2119 keywords and acceptance criteria
188
- - [ ] `architecture/` directory with `_index.md` + individual `ADR-*.md` files
189
- - [ ] Architecture includes state machine, config model, error handling, observability (service type)
190
- - [ ] `epics/` directory with `_index.md` + individual `EPIC-*.md` files
191
- - [ ] Cross-Epic dependency map (Mermaid) and MVP subset tagged
192
- - [ ] `readiness-report.md` with 4-dimension quality scores and traceability matrix
193
- - [ ] `blueprint-summary.md` with one-page executive summary
194
- - [ ] All documents have valid YAML frontmatter with session_id
195
- - [ ] Glossary terms used consistently across all documents
196
- - [ ] Readiness gate: Pass (>=80%) or Review (>=60%) with documented caveats
197
- - [ ] Artifact registered in state.json (type=blueprint)
198
- - [ ] context-package.json generated for downstream consumption
199
- - [ ] On gate Pass/Review: session sealed via finish-work (archive.json + optional spec/knowhow extraction). On Fail: skip — session stays active, excluded from wiki search.
200
- </success_criteria>
201
-
202
- <on_complete>
203
- @~/.maestro/workflows/finish-work.md — SESSION_DIR={session_dir}, SESSION_TYPE=blueprint, SESSION_ID={session_id}, LINKED_MILESTONE=null
204
- </on_complete>
1
+ ---
2
+ name: maestro-blueprint
3
+ description: Generate formal specification package (Product Brief, PRD, Architecture, Epics) through 6-phase document chain
4
+ argument-hint: "<idea or @file> [-y] [-c] [--from <source>]"
5
+ allowed-tools:
6
+ - Read
7
+ - Write
8
+ - Edit
9
+ - Bash
10
+ - Glob
11
+ - Grep
12
+ - Agent
13
+ - AskUserQuestion
14
+ ---
15
+ <purpose>
16
+ 6-phase formal specification chain: Product Brief PRD Architecture Epics. Pure documentation — no code generation.
17
+
18
+ Pipeline: brainstorm (optional) **blueprint** analyze / roadmap / plan.
19
+ </purpose>
20
+
21
+ <required_reading>
22
+ @~/.maestro/workflows/blueprint.md
23
+ </required_reading>
24
+
25
+ <deferred_reading>
26
+ - [blueprint-config.json](~/.maestro/templates/blueprint-config.json) — read when initializing blueprint configuration
27
+ </deferred_reading>
28
+
29
+ <context>
30
+ $ARGUMENTS -- idea text, @file reference, or upstream context source.
31
+
32
+ **Flags:**
33
+
34
+ | Flag | Effect | Default |
35
+ |------|--------|---------|
36
+ | `-y` / `--yes` | Auto mode — skip interactive questions, use recommended defaults | false |
37
+ | `-c` / `--continue` | Resume from last checkpoint (reads blueprint-config.json) | false |
38
+ | `--from <source>` | Load upstream context package (brainstorm:ID, @file, or path). Consumes context-package.json | — |
39
+ | `--from-brainstorm SESSION-ID` | Backward compat alias for `--from brainstorm:ID` | — |
40
+
41
+ **Input types:**
42
+ - Direct text: `"Build a real-time collaboration platform with WebSocket"`
43
+ - File reference: `@requirements.md`
44
+ - Context import: `--from brainstorm:BRN-001` or `--from @requirements.md` or `--from path/`
45
+ - Resume: `-c` (resumes from first incomplete phase)
46
+
47
+ **Output boundary**: ALL file writes MUST target `.workflow/blueprint/BLP-{slug}-{date}/` or `.workflow/state.json` only. NEVER modify source code or files outside these paths.
48
+
49
+ ### Pre-load
50
+
51
+ 1. **Specs**: `maestro spec load --category arch` — load architecture constraints for Phase 4 decisions
52
+ 2. **Wiki search**: `maestro search "{topic keywords}" --json` → prior knowledge context
53
+ 3. All optional — proceed without if unavailable
54
+ </context>
55
+
56
+ <interview_protocol>
57
+ Follows @~/.maestro/workflows/interview-mechanics.md standard.
58
+
59
+ **Interaction mode**: convergent menu-driven, depth-first
60
+ **Decision tree** (strict depth-first): scope (full product / feature set / single feature) → spec type (service / api / library / platform) → focus areas → whether to run codebase exploration → requirement priorities
61
+ **Scope guard**: only specification shape; do not pre-resolve roadmap phases or plan tasks
62
+ **Writeback target**: blueprint-config.json (each decision persisted before next question)
63
+ **Additional skip conditions**: none beyond standard (-y, -c)
64
+ **Exit condition**: all decision points settled → finalize blueprint-config.json, proceed to Phase 1
65
+ </interview_protocol>
66
+
67
+ <execution>
68
+ Follow `~/.maestro/workflows/blueprint.md` completely.
69
+
70
+ ### Phase chain
71
+
72
+ ```
73
+ P0: Spec Study → P1: Discovery → P1.5: Req Expansion → P2: Product Brief → P3: PRD → P4: Architecture → P5: Epics → P6: Readiness Check
74
+ ```
75
+
76
+ P6 gate: Pass (>=80%) Handoff | Review (60-79%) Handoff w/caveats | Fail (<60%) → P6.5 Auto-Fix (max 2 iter) → re-check
77
+
78
+ ### Phase Gates (MANDATORY, BLOCKING)
79
+
80
+ Each phase produces artifacts that are prerequisites for the next. Do NOT advance past a gate without verifying the prior phase's output exists.
81
+
82
+ **GATE P0 → P1**: `blueprint-config.json` created with session metadata.
83
+ **GATE P1 → P1.5**: Discovery context gathered (codebase patterns, upstream context loaded).
84
+ **GATE P1.5 → P2**: Requirements expanded from discovery findings.
85
+ **GATE P2 → P3**: `product-brief.md` written with vision, goals, scope, multi-perspective synthesis.
86
+ **GATE P3 → P4**: `requirements/` directory with `_index.md` + individual `REQ-*.md` + `NFR-*.md` files. All requirements have RFC 2119 keywords and acceptance criteria.
87
+ **GATE P4 → P5**: `architecture/` directory with `_index.md` + individual `ADR-*.md` files.
88
+ **GATE P5P6**: `epics/` directory with `_index.md` + individual `EPIC-*.md` files. Cross-Epic dependency map present.
89
+ **GATE P6**: Readiness score computed. Pass (≥80%) or Review (≥60%) required for handoff.
90
+
91
+ ### Artifact Verification (before completion)
92
+
93
+ ```
94
+ REQUIRED_ARTIFACTS = [
95
+ "blueprint-config.json", // P0
96
+ "product-brief.md", // P2
97
+ "glossary.json", // P2 (≥5 terms)
98
+ "requirements/_index.md", // P3
99
+ "architecture/_index.md", // P4
100
+ "epics/_index.md", // P5
101
+ "readiness-report.md", // P6
102
+ "blueprint-summary.md", // P6
103
+ "context-package.json" // P6
104
+ ]
105
+ ```
106
+ If any artifact is missing: DO NOT report completion. Go back and produce it.
107
+
108
+ ### Evidence Requirement
109
+
110
+ Architecture Decision Records (ADR-*.md) MUST cite evidence for each decision:
111
+ - Valid: code analysis, requirement traceability (REQ-xxx), upstream context, CLI analysis output
112
+ - INVALID: generic rationale without reference to project-specific constraints
113
+ </execution>
114
+
115
+ <completion>
116
+ ### Standalone report
117
+
118
+ ```
119
+ === BLUEPRINT READY ===
120
+ Session: BLP-{slug}-{date}
121
+ Phases completed: P0–P6
122
+ Readiness score: {score}%
123
+ Gate verdict: {Pass|Review|Fail}
124
+ Output: .workflow/blueprint/BLP-{slug}-{date}/
125
+ Key artifacts: product-brief.md, requirements/, architecture/, epics/, readiness-report.md
126
+ ===
127
+ ```
128
+
129
+ ### Ralph-invoked completion
130
+
131
+ End the step by calling the CLI (no text block output):
132
+ ```
133
+ maestro ralph complete <idx> --status {STATUS} [--evidence {path}]
134
+ ```
135
+
136
+ Status verdicts:
137
+ - **DONE** — Normal completion
138
+ - **DONE_WITH_CONCERNS** — Completed with caveats; pass `--concerns`
139
+ - **NEEDS_RETRY** — Tooling error / transient issue; ralph will retry
140
+ - **BLOCKED** External hard blocker; pass `--reason`
141
+
142
+ ### Next-step routing
143
+
144
+ | Condition | Suggestion |
145
+ |-----------|-----------|
146
+ | Need codebase analysis | `/maestro-analyze {topic} --from blueprint:BLP-xxx` |
147
+ | Ready for roadmap | `/maestro-roadmap --from blueprint:BLP-xxx` |
148
+ | Small scope, direct plan | `/maestro-plan --from blueprint:BLP-xxx` |
149
+ | Need project setup | `/maestro-init` |
150
+ </completion>
151
+
152
+ <error_codes>
153
+ | Code | Severity | Condition | Recovery |
154
+ |------|----------|-----------|----------|
155
+ | E001 | error | Idea text or @file required | Prompt user for input |
156
+ | E002 | error | Context source not found (--from) | Show available sessions/sources |
157
+ | E006 | error | `.workflow/` not initialized | Run maestro-init first |
158
+ | E007 | error | Phase 6 readiness Fail after 2 auto-fix iterations | Present manual fix options |
159
+ | W001 | warning | CLI analysis failed, using fallback | Continue with available data |
160
+ | W002 | warning | Codebase exploration failed | Continue without codebase context |
161
+ | W003 | warning | Glossary has < 5 terms | Note in readiness check |
162
+ | W004 | warning | Review-level readiness score (60-79%) | Proceed with caveats |
163
+ | W005 | warning | External research agent failed | Continue without apiResearchContext |
164
+ </error_codes>
165
+
166
+ <success_criteria>
167
+ - [ ] Interactive mode: interview decisions persisted in blueprint-config.json
168
+ - [ ] `blueprint-config.json` created with session metadata and phase tracking
169
+ - [ ] `product-brief.md` with vision, goals, scope, multi-perspective synthesis
170
+ - [ ] `glossary.json` with 5+ core terms for cross-document consistency
171
+ - [ ] `requirements/` directory with `_index.md` + individual `REQ-*.md` + `NFR-*.md` files
172
+ - [ ] All requirements have RFC 2119 keywords and acceptance criteria
173
+ - [ ] `architecture/` directory with `_index.md` + individual `ADR-*.md` files
174
+ - [ ] Architecture includes state machine, config model, error handling, observability (service type)
175
+ - [ ] `epics/` directory with `_index.md` + individual `EPIC-*.md` files
176
+ - [ ] Cross-Epic dependency map (Mermaid) and MVP subset tagged
177
+ - [ ] `readiness-report.md` with 4-dimension quality scores and traceability matrix
178
+ - [ ] `blueprint-summary.md` with one-page executive summary
179
+ - [ ] All documents have valid YAML frontmatter with session_id
180
+ - [ ] Glossary terms used consistently across all documents
181
+ - [ ] Readiness gate: Pass (>=80%) or Review (>=60%) with documented caveats
182
+ - [ ] Artifact registered in state.json (type=blueprint)
183
+ - [ ] context-package.json generated for downstream consumption
184
+ - [ ] On gate Pass/Review: session sealed via finish-work (archive.json + optional spec/knowhow extraction). On Fail: skip — session stays active, excluded from wiki search.
185
+ </success_criteria>
186
+
187
+ <on_complete>
188
+ @~/.maestro/workflows/finish-work.md SESSION_DIR={session_dir}, SESSION_TYPE=blueprint, SESSION_ID={session_id}, LINKED_MILESTONE=null
189
+ </on_complete>