@lipter7/blueprint 2.0.0

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 (125) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +626 -0
  3. package/agents/bp-codebase-mapper.md +761 -0
  4. package/agents/bp-debugger.md +1198 -0
  5. package/agents/bp-executor.md +403 -0
  6. package/agents/bp-integration-checker.md +423 -0
  7. package/agents/bp-phase-researcher.md +469 -0
  8. package/agents/bp-plan-checker.md +622 -0
  9. package/agents/bp-planner.md +1157 -0
  10. package/agents/bp-project-researcher.md +618 -0
  11. package/agents/bp-research-synthesizer.md +236 -0
  12. package/agents/bp-roadmapper.md +605 -0
  13. package/agents/bp-verifier.md +523 -0
  14. package/bin/install.js +1754 -0
  15. package/blueprint/bin/blueprint-tools.js +4597 -0
  16. package/blueprint/bin/blueprint-tools.test.js +2033 -0
  17. package/blueprint/references/checkpoints.md +775 -0
  18. package/blueprint/references/continuation-format.md +249 -0
  19. package/blueprint/references/decimal-phase-calculation.md +65 -0
  20. package/blueprint/references/git-integration.md +248 -0
  21. package/blueprint/references/git-planning-commit.md +38 -0
  22. package/blueprint/references/model-profile-resolution.md +32 -0
  23. package/blueprint/references/model-profiles.md +73 -0
  24. package/blueprint/references/phase-argument-parsing.md +61 -0
  25. package/blueprint/references/planning-config.md +194 -0
  26. package/blueprint/references/questioning.md +141 -0
  27. package/blueprint/references/tdd.md +263 -0
  28. package/blueprint/references/ui-brand.md +160 -0
  29. package/blueprint/references/verification-patterns.md +612 -0
  30. package/blueprint/templates/DEBUG.md +159 -0
  31. package/blueprint/templates/UAT.md +247 -0
  32. package/blueprint/templates/codebase/architecture.md +255 -0
  33. package/blueprint/templates/codebase/concerns.md +310 -0
  34. package/blueprint/templates/codebase/conventions.md +307 -0
  35. package/blueprint/templates/codebase/integrations.md +280 -0
  36. package/blueprint/templates/codebase/stack.md +186 -0
  37. package/blueprint/templates/codebase/structure.md +285 -0
  38. package/blueprint/templates/codebase/testing.md +480 -0
  39. package/blueprint/templates/config.json +35 -0
  40. package/blueprint/templates/context.md +283 -0
  41. package/blueprint/templates/continue-here.md +78 -0
  42. package/blueprint/templates/debug-subagent-prompt.md +91 -0
  43. package/blueprint/templates/discovery.md +146 -0
  44. package/blueprint/templates/milestone-archive.md +123 -0
  45. package/blueprint/templates/milestone.md +115 -0
  46. package/blueprint/templates/phase-prompt.md +567 -0
  47. package/blueprint/templates/planner-subagent-prompt.md +117 -0
  48. package/blueprint/templates/project.md +184 -0
  49. package/blueprint/templates/requirements.md +231 -0
  50. package/blueprint/templates/research-project/ARCHITECTURE.md +204 -0
  51. package/blueprint/templates/research-project/FEATURES.md +147 -0
  52. package/blueprint/templates/research-project/PITFALLS.md +200 -0
  53. package/blueprint/templates/research-project/STACK.md +120 -0
  54. package/blueprint/templates/research-project/SUMMARY.md +170 -0
  55. package/blueprint/templates/research.md +552 -0
  56. package/blueprint/templates/roadmap.md +202 -0
  57. package/blueprint/templates/state.md +176 -0
  58. package/blueprint/templates/summary-complex.md +59 -0
  59. package/blueprint/templates/summary-minimal.md +41 -0
  60. package/blueprint/templates/summary-standard.md +48 -0
  61. package/blueprint/templates/summary.md +246 -0
  62. package/blueprint/templates/user-setup.md +311 -0
  63. package/blueprint/templates/verification-report.md +322 -0
  64. package/blueprint/workflows/add-phase.md +111 -0
  65. package/blueprint/workflows/add-todo.md +157 -0
  66. package/blueprint/workflows/audit-milestone.md +241 -0
  67. package/blueprint/workflows/check-todos.md +176 -0
  68. package/blueprint/workflows/complete-milestone.md +644 -0
  69. package/blueprint/workflows/diagnose-issues.md +219 -0
  70. package/blueprint/workflows/discovery-phase.md +289 -0
  71. package/blueprint/workflows/discuss-phase.md +408 -0
  72. package/blueprint/workflows/execute-phase.md +338 -0
  73. package/blueprint/workflows/execute-plan.md +437 -0
  74. package/blueprint/workflows/help.md +470 -0
  75. package/blueprint/workflows/insert-phase.md +129 -0
  76. package/blueprint/workflows/list-phase-assumptions.md +178 -0
  77. package/blueprint/workflows/map-codebase.md +327 -0
  78. package/blueprint/workflows/new-milestone.md +373 -0
  79. package/blueprint/workflows/new-project.md +958 -0
  80. package/blueprint/workflows/pause-work.md +122 -0
  81. package/blueprint/workflows/plan-milestone-gaps.md +256 -0
  82. package/blueprint/workflows/plan-phase.md +376 -0
  83. package/blueprint/workflows/progress.md +385 -0
  84. package/blueprint/workflows/quick.md +230 -0
  85. package/blueprint/workflows/remove-phase.md +154 -0
  86. package/blueprint/workflows/research-phase.md +74 -0
  87. package/blueprint/workflows/resume-project.md +306 -0
  88. package/blueprint/workflows/set-profile.md +80 -0
  89. package/blueprint/workflows/settings.md +145 -0
  90. package/blueprint/workflows/transition.md +493 -0
  91. package/blueprint/workflows/update.md +212 -0
  92. package/blueprint/workflows/verify-phase.md +226 -0
  93. package/blueprint/workflows/verify-work.md +570 -0
  94. package/commands/bp/add-phase.md +39 -0
  95. package/commands/bp/add-todo.md +42 -0
  96. package/commands/bp/audit-milestone.md +42 -0
  97. package/commands/bp/check-todos.md +41 -0
  98. package/commands/bp/complete-milestone.md +136 -0
  99. package/commands/bp/debug.md +162 -0
  100. package/commands/bp/discuss-phase.md +86 -0
  101. package/commands/bp/execute-phase.md +42 -0
  102. package/commands/bp/help.md +22 -0
  103. package/commands/bp/insert-phase.md +33 -0
  104. package/commands/bp/join-discord.md +18 -0
  105. package/commands/bp/list-phase-assumptions.md +50 -0
  106. package/commands/bp/map-codebase.md +71 -0
  107. package/commands/bp/new-milestone.md +51 -0
  108. package/commands/bp/new-project.md +42 -0
  109. package/commands/bp/pause-work.md +35 -0
  110. package/commands/bp/plan-milestone-gaps.md +40 -0
  111. package/commands/bp/plan-phase.md +44 -0
  112. package/commands/bp/progress.md +24 -0
  113. package/commands/bp/quick.md +38 -0
  114. package/commands/bp/reapply-patches.md +110 -0
  115. package/commands/bp/remove-phase.md +32 -0
  116. package/commands/bp/research-phase.md +187 -0
  117. package/commands/bp/resume-work.md +40 -0
  118. package/commands/bp/set-profile.md +34 -0
  119. package/commands/bp/settings.md +36 -0
  120. package/commands/bp/update.md +37 -0
  121. package/commands/bp/verify-work.md +39 -0
  122. package/hooks/dist/bp-check-update.js +62 -0
  123. package/hooks/dist/bp-statusline.js +91 -0
  124. package/package.json +48 -0
  125. package/scripts/build-hooks.js +42 -0
@@ -0,0 +1,212 @@
1
+ <purpose>
2
+ Check for Blueprint updates via npm, display changelog for versions between installed and latest, obtain user confirmation, and execute clean installation with cache clearing.
3
+ </purpose>
4
+
5
+ <required_reading>
6
+ Read all files referenced by the invoking prompt's execution_context before starting.
7
+ </required_reading>
8
+
9
+ <process>
10
+
11
+ <step name="get_installed_version">
12
+ Detect whether Blueprint is installed locally or globally by checking both locations:
13
+
14
+ ```bash
15
+ # Check local first (takes priority)
16
+ if [ -f "./.claude/blueprint/VERSION" ]; then
17
+ cat "./.claude/blueprint/VERSION"
18
+ echo "LOCAL"
19
+ elif [ -f ~/.claude/blueprint/VERSION ]; then
20
+ cat ~/.claude/blueprint/VERSION
21
+ echo "GLOBAL"
22
+ else
23
+ echo "UNKNOWN"
24
+ fi
25
+ ```
26
+
27
+ Parse output:
28
+ - If last line is "LOCAL": installed version is first line, use `--local` flag for update
29
+ - If last line is "GLOBAL": installed version is first line, use `--global` flag for update
30
+ - If "UNKNOWN": proceed to install step (treat as version 0.0.0)
31
+
32
+ **If VERSION file missing:**
33
+ ```
34
+ ## Blueprint Update
35
+
36
+ **Installed version:** Unknown
37
+
38
+ Your installation doesn't include version tracking.
39
+
40
+ Running fresh install...
41
+ ```
42
+
43
+ Proceed to install step (treat as version 0.0.0 for comparison).
44
+ </step>
45
+
46
+ <step name="check_latest_version">
47
+ Check npm for latest version:
48
+
49
+ ```bash
50
+ npm view @lipter7/blueprint version 2>/dev/null
51
+ ```
52
+
53
+ **If npm check fails:**
54
+ ```
55
+ Couldn't check for updates (offline or npm unavailable).
56
+
57
+ To update manually: `npx @lipter7/blueprint --global`
58
+ ```
59
+
60
+ Exit.
61
+ </step>
62
+
63
+ <step name="compare_versions">
64
+ Compare installed vs latest:
65
+
66
+ **If installed == latest:**
67
+ ```
68
+ ## Blueprint Update
69
+
70
+ **Installed:** X.Y.Z
71
+ **Latest:** X.Y.Z
72
+
73
+ You're already on the latest version.
74
+ ```
75
+
76
+ Exit.
77
+
78
+ **If installed > latest:**
79
+ ```
80
+ ## Blueprint Update
81
+
82
+ **Installed:** X.Y.Z
83
+ **Latest:** A.B.C
84
+
85
+ You're ahead of the latest release (development version?).
86
+ ```
87
+
88
+ Exit.
89
+ </step>
90
+
91
+ <step name="show_changes_and_confirm">
92
+ **If update available**, fetch and show what's new BEFORE updating:
93
+
94
+ 1. Fetch changelog from GitHub raw URL
95
+ 2. Extract entries between installed and latest versions
96
+ 3. Display preview and ask for confirmation:
97
+
98
+ ```
99
+ ## Blueprint Update Available
100
+
101
+ **Installed:** 1.5.10
102
+ **Latest:** 1.5.15
103
+
104
+ ### What's New
105
+ ────────────────────────────────────────────────────────────
106
+
107
+ ## [1.5.15] - 2026-01-20
108
+
109
+ ### Added
110
+ - Feature X
111
+
112
+ ## [1.5.14] - 2026-01-18
113
+
114
+ ### Fixed
115
+ - Bug fix Y
116
+
117
+ ────────────────────────────────────────────────────────────
118
+
119
+ ⚠️ **Note:** The installer performs a clean install of Blueprint folders:
120
+ - `commands/bp/` will be wiped and replaced
121
+ - `blueprint/` will be wiped and replaced
122
+ - `agents/bp-*` files will be replaced
123
+
124
+ (Paths are relative to your install location: `~/.claude/` for global, `./.claude/` for local)
125
+
126
+ Your custom files in other locations are preserved:
127
+ - Custom commands not in `commands/bp/` ✓
128
+ - Custom agents not prefixed with `bp-` ✓
129
+ - Custom hooks ✓
130
+ - Your CLAUDE.md files ✓
131
+
132
+ If you've modified any Blueprint files directly, they'll be automatically backed up to `bp-local-patches/` and can be reapplied with `/bp:reapply-patches` after the update.
133
+ ```
134
+
135
+ Use AskUserQuestion:
136
+ - Question: "Proceed with update?"
137
+ - Options:
138
+ - "Yes, update now"
139
+ - "No, cancel"
140
+
141
+ **If user cancels:** Exit.
142
+ </step>
143
+
144
+ <step name="run_update">
145
+ Run the update using the install type detected in step 1:
146
+
147
+ **If LOCAL install:**
148
+ ```bash
149
+ npx @lipter7/blueprint --local
150
+ ```
151
+
152
+ **If GLOBAL install (or unknown):**
153
+ ```bash
154
+ npx @lipter7/blueprint --global
155
+ ```
156
+
157
+ Capture output. If install fails, show error and exit.
158
+
159
+ Clear the update cache so statusline indicator disappears:
160
+
161
+ **If LOCAL install:**
162
+ ```bash
163
+ rm -f ./.claude/cache/bp-update-check.json
164
+ ```
165
+
166
+ **If GLOBAL install:**
167
+ ```bash
168
+ rm -f ~/.claude/cache/bp-update-check.json
169
+ ```
170
+ </step>
171
+
172
+ <step name="display_result">
173
+ Format completion message (changelog was already shown in confirmation step):
174
+
175
+ ```
176
+ ╔═══════════════════════════════════════════════════════════╗
177
+ ║ Blueprint Updated: v1.5.10 → v1.5.15 ║
178
+ ╚═══════════════════════════════════════════════════════════╝
179
+
180
+ ⚠️ Restart Claude Code to pick up the new commands.
181
+
182
+ [View full changelog](https://github.com/glittercowboy/blueprint/blob/main/CHANGELOG.md)
183
+ ```
184
+ </step>
185
+
186
+
187
+ <step name="check_local_patches">
188
+ After update completes, check if the installer detected and backed up any locally modified files:
189
+
190
+ Check for bp-local-patches/backup-meta.json in the config directory.
191
+
192
+ **If patches found:**
193
+
194
+ ```
195
+ Local patches were backed up before the update.
196
+ Run /bp:reapply-patches to merge your modifications into the new version.
197
+ ```
198
+
199
+ **If no patches:** Continue normally.
200
+ </step>
201
+ </process>
202
+
203
+ <success_criteria>
204
+ - [ ] Installed version read correctly
205
+ - [ ] Latest version checked via npm
206
+ - [ ] Update skipped if already current
207
+ - [ ] Changelog fetched and displayed BEFORE update
208
+ - [ ] Clean install warning shown
209
+ - [ ] User confirmation obtained
210
+ - [ ] Update executed successfully
211
+ - [ ] Restart reminder shown
212
+ </success_criteria>
@@ -0,0 +1,226 @@
1
+ <purpose>
2
+ Verify phase goal achievement through goal-backward analysis. Check that the codebase delivers what the phase promised, not just that tasks completed.
3
+
4
+ Executed by a verification subagent spawned from execute-phase.md.
5
+ </purpose>
6
+
7
+ <core_principle>
8
+ **Task completion ≠ Goal achievement**
9
+
10
+ A task "create chat component" can be marked complete when the component is a placeholder. The task was done — but the goal "working chat interface" was not achieved.
11
+
12
+ Goal-backward verification:
13
+ 1. What must be TRUE for the goal to be achieved?
14
+ 2. What must EXIST for those truths to hold?
15
+ 3. What must be WIRED for those artifacts to function?
16
+
17
+ Then verify each level against the actual codebase.
18
+ </core_principle>
19
+
20
+ <required_reading>
21
+ @~/.claude/blueprint/references/verification-patterns.md
22
+ @~/.claude/blueprint/templates/verification-report.md
23
+ </required_reading>
24
+
25
+ <process>
26
+
27
+ <step name="load_context" priority="first">
28
+ Load phase operation context:
29
+
30
+ ```bash
31
+ INIT=$(node ~/.claude/blueprint/bin/blueprint-tools.js init phase-op "${PHASE_ARG}")
32
+ ```
33
+
34
+ Extract from init JSON: `phase_dir`, `phase_number`, `phase_name`, `has_plans`, `plan_count`.
35
+
36
+ Then load phase details and list plans/summaries:
37
+ ```bash
38
+ node ~/.claude/blueprint/bin/blueprint-tools.js roadmap get-phase "${phase_number}"
39
+ grep -E "^| ${phase_number}" .blueprint/REQUIREMENTS.md 2>/dev/null
40
+ ls "$phase_dir"/*-SUMMARY.md "$phase_dir"/*-PLAN.md 2>/dev/null
41
+ ```
42
+
43
+ Extract **phase goal** from ROADMAP.md (the outcome to verify, not tasks) and **requirements** from REQUIREMENTS.md if it exists.
44
+ </step>
45
+
46
+ <step name="establish_must_haves">
47
+ **Option A: Must-haves in PLAN frontmatter**
48
+
49
+ Use blueprint-tools to extract must_haves from each PLAN:
50
+
51
+ ```bash
52
+ for plan in "$PHASE_DIR"/*-PLAN.md; do
53
+ MUST_HAVES=$(node ~/.claude/blueprint/bin/blueprint-tools.js frontmatter get "$plan" --field must_haves)
54
+ echo "=== $plan ===" && echo "$MUST_HAVES"
55
+ done
56
+ ```
57
+
58
+ Returns JSON: `{ truths: [...], artifacts: [...], key_links: [...] }`
59
+
60
+ Aggregate all must_haves across plans for phase-level verification.
61
+
62
+ **Option B: Derive from phase goal**
63
+
64
+ If no must_haves in frontmatter (MUST_HAVES returns error or empty):
65
+ 1. State the goal from ROADMAP.md
66
+ 2. Derive **truths** (3-7 observable behaviors, each testable)
67
+ 3. Derive **artifacts** (concrete file paths for each truth)
68
+ 4. Derive **key links** (critical wiring where stubs hide)
69
+ 5. Document derived must-haves before proceeding
70
+ </step>
71
+
72
+ <step name="verify_truths">
73
+ For each observable truth, determine if the codebase enables it.
74
+
75
+ **Status:** ✓ VERIFIED (all supporting artifacts pass) | ✗ FAILED (artifact missing/stub/unwired) | ? UNCERTAIN (needs human)
76
+
77
+ For each truth: identify supporting artifacts → check artifact status → check wiring → determine truth status.
78
+
79
+ **Example:** Truth "User can see existing messages" depends on Chat.tsx (renders), /api/chat GET (provides), Message model (schema). If Chat.tsx is a stub or API returns hardcoded [] → FAILED. If all exist, are substantive, and connected → VERIFIED.
80
+ </step>
81
+
82
+ <step name="verify_artifacts">
83
+ Use blueprint-tools for artifact verification against must_haves in each PLAN:
84
+
85
+ ```bash
86
+ for plan in "$PHASE_DIR"/*-PLAN.md; do
87
+ ARTIFACT_RESULT=$(node ~/.claude/blueprint/bin/blueprint-tools.js verify artifacts "$plan")
88
+ echo "=== $plan ===" && echo "$ARTIFACT_RESULT"
89
+ done
90
+ ```
91
+
92
+ Parse JSON result: `{ all_passed, passed, total, artifacts: [{path, exists, issues, passed}] }`
93
+
94
+ **Artifact status from result:**
95
+ - `exists=false` → MISSING
96
+ - `issues` not empty → STUB (check issues for "Only N lines" or "Missing pattern")
97
+ - `passed=true` → VERIFIED (Levels 1-2 pass)
98
+
99
+ **Level 3 — Wired (manual check for artifacts that pass Levels 1-2):**
100
+ ```bash
101
+ grep -r "import.*$artifact_name" src/ --include="*.ts" --include="*.tsx" # IMPORTED
102
+ grep -r "$artifact_name" src/ --include="*.ts" --include="*.tsx" | grep -v "import" # USED
103
+ ```
104
+ WIRED = imported AND used. ORPHANED = exists but not imported/used.
105
+
106
+ | Exists | Substantive | Wired | Status |
107
+ |--------|-------------|-------|--------|
108
+ | ✓ | ✓ | ✓ | ✓ VERIFIED |
109
+ | ✓ | ✓ | ✗ | ⚠️ ORPHANED |
110
+ | ✓ | ✗ | - | ✗ STUB |
111
+ | ✗ | - | - | ✗ MISSING |
112
+ </step>
113
+
114
+ <step name="verify_wiring">
115
+ Use blueprint-tools for key link verification against must_haves in each PLAN:
116
+
117
+ ```bash
118
+ for plan in "$PHASE_DIR"/*-PLAN.md; do
119
+ LINKS_RESULT=$(node ~/.claude/blueprint/bin/blueprint-tools.js verify key-links "$plan")
120
+ echo "=== $plan ===" && echo "$LINKS_RESULT"
121
+ done
122
+ ```
123
+
124
+ Parse JSON result: `{ all_verified, verified, total, links: [{from, to, via, verified, detail}] }`
125
+
126
+ **Link status from result:**
127
+ - `verified=true` → WIRED
128
+ - `verified=false` with "not found" → NOT_WIRED
129
+ - `verified=false` with "Pattern not found" → PARTIAL
130
+
131
+ **Fallback patterns (if key_links not in must_haves):**
132
+
133
+ | Pattern | Check | Status |
134
+ |---------|-------|--------|
135
+ | Component → API | fetch/axios call to API path, response used (await/.then/setState) | WIRED / PARTIAL (call but unused response) / NOT_WIRED |
136
+ | API → Database | Prisma/DB query on model, result returned via res.json() | WIRED / PARTIAL (query but not returned) / NOT_WIRED |
137
+ | Form → Handler | onSubmit with real implementation (fetch/axios/mutate/dispatch), not console.log/empty | WIRED / STUB (log-only/empty) / NOT_WIRED |
138
+ | State → Render | useState variable appears in JSX (`{stateVar}` or `{stateVar.property}`) | WIRED / NOT_WIRED |
139
+
140
+ Record status and evidence for each key link.
141
+ </step>
142
+
143
+ <step name="verify_requirements">
144
+ If REQUIREMENTS.md exists:
145
+ ```bash
146
+ grep -E "Phase ${PHASE_NUM}" .blueprint/REQUIREMENTS.md 2>/dev/null
147
+ ```
148
+
149
+ For each requirement: parse description → identify supporting truths/artifacts → status: ✓ SATISFIED / ✗ BLOCKED / ? NEEDS HUMAN.
150
+ </step>
151
+
152
+ <step name="scan_antipatterns">
153
+ Extract files modified in this phase from SUMMARY.md, scan each:
154
+
155
+ | Pattern | Search | Severity |
156
+ |---------|--------|----------|
157
+ | TODO/FIXME/XXX/HACK | `grep -n -E "TODO\|FIXME\|XXX\|HACK"` | ⚠️ Warning |
158
+ | Placeholder content | `grep -n -iE "placeholder\|coming soon\|will be here"` | 🛑 Blocker |
159
+ | Empty returns | `grep -n -E "return null\|return \{\}\|return \[\]\|=> \{\}"` | ⚠️ Warning |
160
+ | Log-only functions | Functions containing only console.log | ⚠️ Warning |
161
+
162
+ Categorize: 🛑 Blocker (prevents goal) | ⚠️ Warning (incomplete) | ℹ️ Info (notable).
163
+ </step>
164
+
165
+ <step name="identify_human_verification">
166
+ **Always needs human:** Visual appearance, user flow completion, real-time behavior (WebSocket/SSE), external service integration, performance feel, error message clarity.
167
+
168
+ **Needs human if uncertain:** Complex wiring grep can't trace, dynamic state-dependent behavior, edge cases.
169
+
170
+ Format each as: Test Name → What to do → Expected result → Why can't verify programmatically.
171
+ </step>
172
+
173
+ <step name="determine_status">
174
+ **passed:** All truths VERIFIED, all artifacts pass levels 1-3, all key links WIRED, no blocker anti-patterns.
175
+
176
+ **gaps_found:** Any truth FAILED, artifact MISSING/STUB, key link NOT_WIRED, or blocker found.
177
+
178
+ **human_needed:** All automated checks pass but human verification items remain.
179
+
180
+ **Score:** `verified_truths / total_truths`
181
+ </step>
182
+
183
+ <step name="generate_fix_plans">
184
+ If gaps_found:
185
+
186
+ 1. **Cluster related gaps:** API stub + component unwired → "Wire frontend to backend". Multiple missing → "Complete core implementation". Wiring only → "Connect existing components".
187
+
188
+ 2. **Generate plan per cluster:** Objective, 2-3 tasks (files/action/verify each), re-verify step. Keep focused: single concern per plan.
189
+
190
+ 3. **Order by dependency:** Fix missing → fix stubs → fix wiring → verify.
191
+ </step>
192
+
193
+ <step name="create_report">
194
+ ```bash
195
+ REPORT_PATH="$PHASE_DIR/${PHASE_NUM}-VERIFICATION.md"
196
+ ```
197
+
198
+ Fill template sections: frontmatter (phase/timestamp/status/score), goal achievement, artifact table, wiring table, requirements coverage, anti-patterns, human verification, gaps summary, fix plans (if gaps_found), metadata.
199
+
200
+ See ~/.claude/blueprint/templates/verification-report.md for complete template.
201
+ </step>
202
+
203
+ <step name="return_to_orchestrator">
204
+ Return status (`passed` | `gaps_found` | `human_needed`), score (N/M must-haves), report path.
205
+
206
+ If gaps_found: list gaps + recommended fix plan names.
207
+ If human_needed: list items requiring human testing.
208
+
209
+ Orchestrator routes: `passed` → update_roadmap | `gaps_found` → create/execute fixes, re-verify | `human_needed` → present to user.
210
+ </step>
211
+
212
+ </process>
213
+
214
+ <success_criteria>
215
+ - [ ] Must-haves established (from frontmatter or derived)
216
+ - [ ] All truths verified with status and evidence
217
+ - [ ] All artifacts checked at all three levels
218
+ - [ ] All key links verified
219
+ - [ ] Requirements coverage assessed (if applicable)
220
+ - [ ] Anti-patterns scanned and categorized
221
+ - [ ] Human verification items identified
222
+ - [ ] Overall status determined
223
+ - [ ] Fix plans generated (if gaps_found)
224
+ - [ ] VERIFICATION.md created with complete report
225
+ - [ ] Results returned to orchestrator
226
+ </success_criteria>