@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.
- package/LICENSE +21 -0
- package/README.md +626 -0
- package/agents/bp-codebase-mapper.md +761 -0
- package/agents/bp-debugger.md +1198 -0
- package/agents/bp-executor.md +403 -0
- package/agents/bp-integration-checker.md +423 -0
- package/agents/bp-phase-researcher.md +469 -0
- package/agents/bp-plan-checker.md +622 -0
- package/agents/bp-planner.md +1157 -0
- package/agents/bp-project-researcher.md +618 -0
- package/agents/bp-research-synthesizer.md +236 -0
- package/agents/bp-roadmapper.md +605 -0
- package/agents/bp-verifier.md +523 -0
- package/bin/install.js +1754 -0
- package/blueprint/bin/blueprint-tools.js +4597 -0
- package/blueprint/bin/blueprint-tools.test.js +2033 -0
- package/blueprint/references/checkpoints.md +775 -0
- package/blueprint/references/continuation-format.md +249 -0
- package/blueprint/references/decimal-phase-calculation.md +65 -0
- package/blueprint/references/git-integration.md +248 -0
- package/blueprint/references/git-planning-commit.md +38 -0
- package/blueprint/references/model-profile-resolution.md +32 -0
- package/blueprint/references/model-profiles.md +73 -0
- package/blueprint/references/phase-argument-parsing.md +61 -0
- package/blueprint/references/planning-config.md +194 -0
- package/blueprint/references/questioning.md +141 -0
- package/blueprint/references/tdd.md +263 -0
- package/blueprint/references/ui-brand.md +160 -0
- package/blueprint/references/verification-patterns.md +612 -0
- package/blueprint/templates/DEBUG.md +159 -0
- package/blueprint/templates/UAT.md +247 -0
- package/blueprint/templates/codebase/architecture.md +255 -0
- package/blueprint/templates/codebase/concerns.md +310 -0
- package/blueprint/templates/codebase/conventions.md +307 -0
- package/blueprint/templates/codebase/integrations.md +280 -0
- package/blueprint/templates/codebase/stack.md +186 -0
- package/blueprint/templates/codebase/structure.md +285 -0
- package/blueprint/templates/codebase/testing.md +480 -0
- package/blueprint/templates/config.json +35 -0
- package/blueprint/templates/context.md +283 -0
- package/blueprint/templates/continue-here.md +78 -0
- package/blueprint/templates/debug-subagent-prompt.md +91 -0
- package/blueprint/templates/discovery.md +146 -0
- package/blueprint/templates/milestone-archive.md +123 -0
- package/blueprint/templates/milestone.md +115 -0
- package/blueprint/templates/phase-prompt.md +567 -0
- package/blueprint/templates/planner-subagent-prompt.md +117 -0
- package/blueprint/templates/project.md +184 -0
- package/blueprint/templates/requirements.md +231 -0
- package/blueprint/templates/research-project/ARCHITECTURE.md +204 -0
- package/blueprint/templates/research-project/FEATURES.md +147 -0
- package/blueprint/templates/research-project/PITFALLS.md +200 -0
- package/blueprint/templates/research-project/STACK.md +120 -0
- package/blueprint/templates/research-project/SUMMARY.md +170 -0
- package/blueprint/templates/research.md +552 -0
- package/blueprint/templates/roadmap.md +202 -0
- package/blueprint/templates/state.md +176 -0
- package/blueprint/templates/summary-complex.md +59 -0
- package/blueprint/templates/summary-minimal.md +41 -0
- package/blueprint/templates/summary-standard.md +48 -0
- package/blueprint/templates/summary.md +246 -0
- package/blueprint/templates/user-setup.md +311 -0
- package/blueprint/templates/verification-report.md +322 -0
- package/blueprint/workflows/add-phase.md +111 -0
- package/blueprint/workflows/add-todo.md +157 -0
- package/blueprint/workflows/audit-milestone.md +241 -0
- package/blueprint/workflows/check-todos.md +176 -0
- package/blueprint/workflows/complete-milestone.md +644 -0
- package/blueprint/workflows/diagnose-issues.md +219 -0
- package/blueprint/workflows/discovery-phase.md +289 -0
- package/blueprint/workflows/discuss-phase.md +408 -0
- package/blueprint/workflows/execute-phase.md +338 -0
- package/blueprint/workflows/execute-plan.md +437 -0
- package/blueprint/workflows/help.md +470 -0
- package/blueprint/workflows/insert-phase.md +129 -0
- package/blueprint/workflows/list-phase-assumptions.md +178 -0
- package/blueprint/workflows/map-codebase.md +327 -0
- package/blueprint/workflows/new-milestone.md +373 -0
- package/blueprint/workflows/new-project.md +958 -0
- package/blueprint/workflows/pause-work.md +122 -0
- package/blueprint/workflows/plan-milestone-gaps.md +256 -0
- package/blueprint/workflows/plan-phase.md +376 -0
- package/blueprint/workflows/progress.md +385 -0
- package/blueprint/workflows/quick.md +230 -0
- package/blueprint/workflows/remove-phase.md +154 -0
- package/blueprint/workflows/research-phase.md +74 -0
- package/blueprint/workflows/resume-project.md +306 -0
- package/blueprint/workflows/set-profile.md +80 -0
- package/blueprint/workflows/settings.md +145 -0
- package/blueprint/workflows/transition.md +493 -0
- package/blueprint/workflows/update.md +212 -0
- package/blueprint/workflows/verify-phase.md +226 -0
- package/blueprint/workflows/verify-work.md +570 -0
- package/commands/bp/add-phase.md +39 -0
- package/commands/bp/add-todo.md +42 -0
- package/commands/bp/audit-milestone.md +42 -0
- package/commands/bp/check-todos.md +41 -0
- package/commands/bp/complete-milestone.md +136 -0
- package/commands/bp/debug.md +162 -0
- package/commands/bp/discuss-phase.md +86 -0
- package/commands/bp/execute-phase.md +42 -0
- package/commands/bp/help.md +22 -0
- package/commands/bp/insert-phase.md +33 -0
- package/commands/bp/join-discord.md +18 -0
- package/commands/bp/list-phase-assumptions.md +50 -0
- package/commands/bp/map-codebase.md +71 -0
- package/commands/bp/new-milestone.md +51 -0
- package/commands/bp/new-project.md +42 -0
- package/commands/bp/pause-work.md +35 -0
- package/commands/bp/plan-milestone-gaps.md +40 -0
- package/commands/bp/plan-phase.md +44 -0
- package/commands/bp/progress.md +24 -0
- package/commands/bp/quick.md +38 -0
- package/commands/bp/reapply-patches.md +110 -0
- package/commands/bp/remove-phase.md +32 -0
- package/commands/bp/research-phase.md +187 -0
- package/commands/bp/resume-work.md +40 -0
- package/commands/bp/set-profile.md +34 -0
- package/commands/bp/settings.md +36 -0
- package/commands/bp/update.md +37 -0
- package/commands/bp/verify-work.md +39 -0
- package/hooks/dist/bp-check-update.js +62 -0
- package/hooks/dist/bp-statusline.js +91 -0
- package/package.json +48 -0
- package/scripts/build-hooks.js +42 -0
|
@@ -0,0 +1,338 @@
|
|
|
1
|
+
<purpose>
|
|
2
|
+
Execute all plans in a phase using wave-based parallel execution. Orchestrator stays lean — delegates plan execution to subagents.
|
|
3
|
+
</purpose>
|
|
4
|
+
|
|
5
|
+
<core_principle>
|
|
6
|
+
Orchestrator coordinates, not executes. Each subagent loads the full execute-plan context. Orchestrator: discover plans → analyze deps → group waves → spawn agents → handle checkpoints → collect results.
|
|
7
|
+
</core_principle>
|
|
8
|
+
|
|
9
|
+
<required_reading>
|
|
10
|
+
Read STATE.md before any operation to load project context.
|
|
11
|
+
</required_reading>
|
|
12
|
+
|
|
13
|
+
<process>
|
|
14
|
+
|
|
15
|
+
<step name="initialize" priority="first">
|
|
16
|
+
Load all context in one call:
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
INIT=$(node ~/.claude/blueprint/bin/blueprint-tools.js init execute-phase "${PHASE_ARG}")
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Parse JSON for: `executor_model`, `verifier_model`, `commit_docs`, `parallelization`, `branching_strategy`, `branch_name`, `phase_found`, `phase_dir`, `phase_number`, `phase_name`, `phase_slug`, `plans`, `incomplete_plans`, `plan_count`, `incomplete_count`, `state_exists`, `roadmap_exists`.
|
|
23
|
+
|
|
24
|
+
**If `phase_found` is false:** Error — phase directory not found.
|
|
25
|
+
**If `plan_count` is 0:** Error — no plans found in phase.
|
|
26
|
+
**If `state_exists` is false but `.blueprint/` exists:** Offer reconstruct or continue.
|
|
27
|
+
|
|
28
|
+
When `parallelization` is false, plans within a wave execute sequentially.
|
|
29
|
+
</step>
|
|
30
|
+
|
|
31
|
+
<step name="handle_branching">
|
|
32
|
+
Check `branching_strategy` from init:
|
|
33
|
+
|
|
34
|
+
**"none":** Skip, continue on current branch.
|
|
35
|
+
|
|
36
|
+
**"phase" or "milestone":** Use pre-computed `branch_name` from init:
|
|
37
|
+
```bash
|
|
38
|
+
git checkout -b "$BRANCH_NAME" 2>/dev/null || git checkout "$BRANCH_NAME"
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
All subsequent commits go to this branch. User handles merging.
|
|
42
|
+
</step>
|
|
43
|
+
|
|
44
|
+
<step name="validate_phase">
|
|
45
|
+
From init JSON: `phase_dir`, `plan_count`, `incomplete_count`.
|
|
46
|
+
|
|
47
|
+
Report: "Found {plan_count} plans in {phase_dir} ({incomplete_count} incomplete)"
|
|
48
|
+
</step>
|
|
49
|
+
|
|
50
|
+
<step name="discover_and_group_plans">
|
|
51
|
+
Load plan inventory with wave grouping in one call:
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
PLAN_INDEX=$(node ~/.claude/blueprint/bin/blueprint-tools.js phase-plan-index "${PHASE_NUMBER}")
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Parse JSON for: `phase`, `plans[]` (each with `id`, `wave`, `autonomous`, `objective`, `files_modified`, `task_count`, `has_summary`), `waves` (map of wave number → plan IDs), `incomplete`, `has_checkpoints`.
|
|
58
|
+
|
|
59
|
+
**Filtering:** Skip plans where `has_summary: true`. If `--gaps-only`: also skip non-gap_closure plans. If all filtered: "No matching incomplete plans" → exit.
|
|
60
|
+
|
|
61
|
+
Report:
|
|
62
|
+
```
|
|
63
|
+
## Execution Plan
|
|
64
|
+
|
|
65
|
+
**Phase {X}: {Name}** — {total_plans} plans across {wave_count} waves
|
|
66
|
+
|
|
67
|
+
| Wave | Plans | What it builds |
|
|
68
|
+
|------|-------|----------------|
|
|
69
|
+
| 1 | 01-01, 01-02 | {from plan objectives, 3-8 words} |
|
|
70
|
+
| 2 | 01-03 | ... |
|
|
71
|
+
```
|
|
72
|
+
</step>
|
|
73
|
+
|
|
74
|
+
<step name="execute_waves">
|
|
75
|
+
Execute each wave in sequence. Within a wave: parallel if `PARALLELIZATION=true`, sequential if `false`.
|
|
76
|
+
|
|
77
|
+
**For each wave:**
|
|
78
|
+
|
|
79
|
+
1. **Describe what's being built (BEFORE spawning):**
|
|
80
|
+
|
|
81
|
+
Read each plan's `<objective>`. Extract what's being built and why.
|
|
82
|
+
|
|
83
|
+
```
|
|
84
|
+
---
|
|
85
|
+
## Wave {N}
|
|
86
|
+
|
|
87
|
+
**{Plan ID}: {Plan Name}**
|
|
88
|
+
{2-3 sentences: what this builds, technical approach, why it matters}
|
|
89
|
+
|
|
90
|
+
Spawning {count} agent(s)...
|
|
91
|
+
---
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
- Bad: "Executing terrain generation plan"
|
|
95
|
+
- Good: "Procedural terrain generator using Perlin noise — creates height maps, biome zones, and collision meshes. Required before vehicle physics can interact with ground."
|
|
96
|
+
|
|
97
|
+
2. **Spawn executor agents:**
|
|
98
|
+
|
|
99
|
+
Pass paths only — executors read files themselves with their fresh 200k context.
|
|
100
|
+
This keeps orchestrator context lean (~10-15%).
|
|
101
|
+
|
|
102
|
+
```
|
|
103
|
+
Task(
|
|
104
|
+
subagent_type="bp-executor",
|
|
105
|
+
model="{executor_model}",
|
|
106
|
+
prompt="
|
|
107
|
+
<objective>
|
|
108
|
+
Execute plan {plan_number} of phase {phase_number}-{phase_name}.
|
|
109
|
+
Commit each task atomically. Create SUMMARY.md. Update STATE.md.
|
|
110
|
+
</objective>
|
|
111
|
+
|
|
112
|
+
<execution_context>
|
|
113
|
+
@~/.claude/blueprint/workflows/execute-plan.md
|
|
114
|
+
@~/.claude/blueprint/templates/summary.md
|
|
115
|
+
@~/.claude/blueprint/references/checkpoints.md
|
|
116
|
+
@~/.claude/blueprint/references/tdd.md
|
|
117
|
+
</execution_context>
|
|
118
|
+
|
|
119
|
+
<files_to_read>
|
|
120
|
+
Read these files at execution start using the Read tool:
|
|
121
|
+
- Plan: {phase_dir}/{plan_file}
|
|
122
|
+
- State: .blueprint/STATE.md
|
|
123
|
+
- Config: .blueprint/config.json (if exists)
|
|
124
|
+
</files_to_read>
|
|
125
|
+
|
|
126
|
+
<success_criteria>
|
|
127
|
+
- [ ] All tasks executed
|
|
128
|
+
- [ ] Each task committed individually
|
|
129
|
+
- [ ] SUMMARY.md created in plan directory
|
|
130
|
+
- [ ] STATE.md updated with position and decisions
|
|
131
|
+
</success_criteria>
|
|
132
|
+
"
|
|
133
|
+
)
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
3. **Wait for all agents in wave to complete.**
|
|
137
|
+
|
|
138
|
+
4. **Report completion — spot-check claims first:**
|
|
139
|
+
|
|
140
|
+
For each SUMMARY.md:
|
|
141
|
+
- Verify first 2 files from `key-files.created` exist on disk
|
|
142
|
+
- Check `git log --oneline --all --grep="{phase}-{plan}"` returns ≥1 commit
|
|
143
|
+
- Check for `## Self-Check: FAILED` marker
|
|
144
|
+
|
|
145
|
+
If ANY spot-check fails: report which plan failed, route to failure handler — ask "Retry plan?" or "Continue with remaining waves?"
|
|
146
|
+
|
|
147
|
+
If pass:
|
|
148
|
+
```
|
|
149
|
+
---
|
|
150
|
+
## Wave {N} Complete
|
|
151
|
+
|
|
152
|
+
**{Plan ID}: {Plan Name}**
|
|
153
|
+
{What was built — from SUMMARY.md}
|
|
154
|
+
{Notable deviations, if any}
|
|
155
|
+
|
|
156
|
+
{If more waves: what this enables for next wave}
|
|
157
|
+
---
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
- Bad: "Wave 2 complete. Proceeding to Wave 3."
|
|
161
|
+
- Good: "Terrain system complete — 3 biome types, height-based texturing, physics collision meshes. Vehicle physics (Wave 3) can now reference ground surfaces."
|
|
162
|
+
|
|
163
|
+
5. **Handle failures:**
|
|
164
|
+
|
|
165
|
+
**Known Claude Code bug (classifyHandoffIfNeeded):** If an agent reports "failed" with error containing `classifyHandoffIfNeeded is not defined`, this is a Claude Code runtime bug — not a Blueprint or agent issue. The error fires in the completion handler AFTER all tool calls finish. In this case: run the same spot-checks as step 4 (SUMMARY.md exists, git commits present, no Self-Check: FAILED). If spot-checks PASS → treat as **successful**. If spot-checks FAIL → treat as real failure below.
|
|
166
|
+
|
|
167
|
+
For real failures: report which plan failed → ask "Continue?" or "Stop?" → if continue, dependent plans may also fail. If stop, partial completion report.
|
|
168
|
+
|
|
169
|
+
6. **Execute checkpoint plans between waves** — see `<checkpoint_handling>`.
|
|
170
|
+
|
|
171
|
+
7. **Proceed to next wave.**
|
|
172
|
+
</step>
|
|
173
|
+
|
|
174
|
+
<step name="checkpoint_handling">
|
|
175
|
+
Plans with `autonomous: false` require user interaction.
|
|
176
|
+
|
|
177
|
+
**Flow:**
|
|
178
|
+
|
|
179
|
+
1. Spawn agent for checkpoint plan
|
|
180
|
+
2. Agent runs until checkpoint task or auth gate → returns structured state
|
|
181
|
+
3. Agent return includes: completed tasks table, current task + blocker, checkpoint type/details, what's awaited
|
|
182
|
+
4. **Present to user:**
|
|
183
|
+
```
|
|
184
|
+
## Checkpoint: [Type]
|
|
185
|
+
|
|
186
|
+
**Plan:** 03-03 Dashboard Layout
|
|
187
|
+
**Progress:** 2/3 tasks complete
|
|
188
|
+
|
|
189
|
+
[Checkpoint Details from agent return]
|
|
190
|
+
[Awaiting section from agent return]
|
|
191
|
+
```
|
|
192
|
+
5. User responds: "approved"/"done" | issue description | decision selection
|
|
193
|
+
6. **Spawn continuation agent (NOT resume)** using continuation-prompt.md template:
|
|
194
|
+
- `{completed_tasks_table}`: From checkpoint return
|
|
195
|
+
- `{resume_task_number}` + `{resume_task_name}`: Current task
|
|
196
|
+
- `{user_response}`: What user provided
|
|
197
|
+
- `{resume_instructions}`: Based on checkpoint type
|
|
198
|
+
7. Continuation agent verifies previous commits, continues from resume point
|
|
199
|
+
8. Repeat until plan completes or user stops
|
|
200
|
+
|
|
201
|
+
**Why fresh agent, not resume:** Resume relies on internal serialization that breaks with parallel tool calls. Fresh agents with explicit state are more reliable.
|
|
202
|
+
|
|
203
|
+
**Checkpoints in parallel waves:** Agent pauses and returns while other parallel agents may complete. Present checkpoint, spawn continuation, wait for all before next wave.
|
|
204
|
+
</step>
|
|
205
|
+
|
|
206
|
+
<step name="aggregate_results">
|
|
207
|
+
After all waves:
|
|
208
|
+
|
|
209
|
+
```markdown
|
|
210
|
+
## Phase {X}: {Name} Execution Complete
|
|
211
|
+
|
|
212
|
+
**Waves:** {N} | **Plans:** {M}/{total} complete
|
|
213
|
+
|
|
214
|
+
| Wave | Plans | Status |
|
|
215
|
+
|------|-------|--------|
|
|
216
|
+
| 1 | plan-01, plan-02 | ✓ Complete |
|
|
217
|
+
| CP | plan-03 | ✓ Verified |
|
|
218
|
+
| 2 | plan-04 | ✓ Complete |
|
|
219
|
+
|
|
220
|
+
### Plan Details
|
|
221
|
+
1. **03-01**: [one-liner from SUMMARY.md]
|
|
222
|
+
2. **03-02**: [one-liner from SUMMARY.md]
|
|
223
|
+
|
|
224
|
+
### Issues Encountered
|
|
225
|
+
[Aggregate from SUMMARYs, or "None"]
|
|
226
|
+
```
|
|
227
|
+
</step>
|
|
228
|
+
|
|
229
|
+
<step name="verify_phase_goal">
|
|
230
|
+
Verify phase achieved its GOAL, not just completed tasks.
|
|
231
|
+
|
|
232
|
+
```
|
|
233
|
+
Task(
|
|
234
|
+
prompt="Verify phase {phase_number} goal achievement.
|
|
235
|
+
Phase directory: {phase_dir}
|
|
236
|
+
Phase goal: {goal from ROADMAP.md}
|
|
237
|
+
Check must_haves against actual codebase. Create VERIFICATION.md.",
|
|
238
|
+
subagent_type="bp-verifier",
|
|
239
|
+
model="{verifier_model}"
|
|
240
|
+
)
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
Read status:
|
|
244
|
+
```bash
|
|
245
|
+
grep "^status:" "$PHASE_DIR"/*-VERIFICATION.md | cut -d: -f2 | tr -d ' '
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
| Status | Action |
|
|
249
|
+
|--------|--------|
|
|
250
|
+
| `passed` | → update_roadmap |
|
|
251
|
+
| `human_needed` | Present items for human testing, get approval or feedback |
|
|
252
|
+
| `gaps_found` | Present gap summary, offer `/bp:plan-phase {phase} --gaps` |
|
|
253
|
+
|
|
254
|
+
**If human_needed:**
|
|
255
|
+
```
|
|
256
|
+
## ✓ Phase {X}: {Name} — Human Verification Required
|
|
257
|
+
|
|
258
|
+
All automated checks passed. {N} items need human testing:
|
|
259
|
+
|
|
260
|
+
{From VERIFICATION.md human_verification section}
|
|
261
|
+
|
|
262
|
+
"approved" → continue | Report issues → gap closure
|
|
263
|
+
```
|
|
264
|
+
|
|
265
|
+
**If gaps_found:**
|
|
266
|
+
```
|
|
267
|
+
## ⚠ Phase {X}: {Name} — Gaps Found
|
|
268
|
+
|
|
269
|
+
**Score:** {N}/{M} must-haves verified
|
|
270
|
+
**Report:** {phase_dir}/{phase}-VERIFICATION.md
|
|
271
|
+
|
|
272
|
+
### What's Missing
|
|
273
|
+
{Gap summaries from VERIFICATION.md}
|
|
274
|
+
|
|
275
|
+
---
|
|
276
|
+
## ▶ Next Up
|
|
277
|
+
|
|
278
|
+
`/bp:plan-phase {X} --gaps`
|
|
279
|
+
|
|
280
|
+
<sub>`/clear` first → fresh context window</sub>
|
|
281
|
+
|
|
282
|
+
Also: `cat {phase_dir}/{phase}-VERIFICATION.md` — full report
|
|
283
|
+
Also: `/bp:verify-work {X}` — manual testing first
|
|
284
|
+
```
|
|
285
|
+
|
|
286
|
+
Gap closure cycle: `/bp:plan-phase {X} --gaps` reads VERIFICATION.md → creates gap plans with `gap_closure: true` → user runs `/bp:execute-phase {X} --gaps-only` → verifier re-runs.
|
|
287
|
+
</step>
|
|
288
|
+
|
|
289
|
+
<step name="update_roadmap">
|
|
290
|
+
Mark phase complete in ROADMAP.md (date, status).
|
|
291
|
+
|
|
292
|
+
```bash
|
|
293
|
+
node ~/.claude/blueprint/bin/blueprint-tools.js commit "docs(phase-{X}): complete phase execution" --files .blueprint/ROADMAP.md .blueprint/STATE.md .blueprint/phases/{phase_dir}/*-VERIFICATION.md .blueprint/REQUIREMENTS.md
|
|
294
|
+
```
|
|
295
|
+
</step>
|
|
296
|
+
|
|
297
|
+
<step name="offer_next">
|
|
298
|
+
|
|
299
|
+
**If more phases:**
|
|
300
|
+
```
|
|
301
|
+
## Next Up
|
|
302
|
+
|
|
303
|
+
**Phase {X+1}: {Name}** — {Goal}
|
|
304
|
+
|
|
305
|
+
`/bp:plan-phase {X+1}`
|
|
306
|
+
|
|
307
|
+
<sub>`/clear` first for fresh context</sub>
|
|
308
|
+
```
|
|
309
|
+
|
|
310
|
+
**If milestone complete:**
|
|
311
|
+
```
|
|
312
|
+
MILESTONE COMPLETE!
|
|
313
|
+
|
|
314
|
+
All {N} phases executed.
|
|
315
|
+
|
|
316
|
+
`/bp:complete-milestone`
|
|
317
|
+
```
|
|
318
|
+
</step>
|
|
319
|
+
|
|
320
|
+
</process>
|
|
321
|
+
|
|
322
|
+
<context_efficiency>
|
|
323
|
+
Orchestrator: ~10-15% context. Subagents: fresh 200k each. No polling (Task blocks). No context bleed.
|
|
324
|
+
</context_efficiency>
|
|
325
|
+
|
|
326
|
+
<failure_handling>
|
|
327
|
+
- **classifyHandoffIfNeeded false failure:** Agent reports "failed" but error is `classifyHandoffIfNeeded is not defined` → Claude Code bug, not Blueprint. Spot-check (SUMMARY exists, commits present) → if pass, treat as success
|
|
328
|
+
- **Agent fails mid-plan:** Missing SUMMARY.md → report, ask user how to proceed
|
|
329
|
+
- **Dependency chain breaks:** Wave 1 fails → Wave 2 dependents likely fail → user chooses attempt or skip
|
|
330
|
+
- **All agents in wave fail:** Systemic issue → stop, report for investigation
|
|
331
|
+
- **Checkpoint unresolvable:** "Skip this plan?" or "Abort phase execution?" → record partial progress in STATE.md
|
|
332
|
+
</failure_handling>
|
|
333
|
+
|
|
334
|
+
<resumption>
|
|
335
|
+
Re-run `/bp:execute-phase {phase}` → discover_plans finds completed SUMMARYs → skips them → resumes from first incomplete plan → continues wave execution.
|
|
336
|
+
|
|
337
|
+
STATE.md tracks: last completed plan, current wave, pending checkpoints.
|
|
338
|
+
</resumption>
|