@sienklogic/plan-build-run 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/CHANGELOG.md +56 -0
- package/CLAUDE.md +149 -0
- package/LICENSE +21 -0
- package/README.md +247 -0
- package/dashboard/bin/cli.js +25 -0
- package/dashboard/package.json +34 -0
- package/dashboard/public/.gitkeep +0 -0
- package/dashboard/public/css/layout.css +406 -0
- package/dashboard/public/css/status-colors.css +98 -0
- package/dashboard/public/js/htmx-title.js +5 -0
- package/dashboard/public/js/sidebar-toggle.js +20 -0
- package/dashboard/src/app.js +78 -0
- package/dashboard/src/middleware/errorHandler.js +52 -0
- package/dashboard/src/middleware/notFoundHandler.js +9 -0
- package/dashboard/src/repositories/planning.repository.js +128 -0
- package/dashboard/src/routes/events.routes.js +40 -0
- package/dashboard/src/routes/index.routes.js +31 -0
- package/dashboard/src/routes/pages.routes.js +195 -0
- package/dashboard/src/server.js +42 -0
- package/dashboard/src/services/dashboard.service.js +222 -0
- package/dashboard/src/services/phase.service.js +167 -0
- package/dashboard/src/services/project.service.js +57 -0
- package/dashboard/src/services/roadmap.service.js +171 -0
- package/dashboard/src/services/sse.service.js +58 -0
- package/dashboard/src/services/todo.service.js +254 -0
- package/dashboard/src/services/watcher.service.js +48 -0
- package/dashboard/src/views/coming-soon.ejs +11 -0
- package/dashboard/src/views/error.ejs +13 -0
- package/dashboard/src/views/index.ejs +5 -0
- package/dashboard/src/views/layout.ejs +1 -0
- package/dashboard/src/views/partials/dashboard-content.ejs +77 -0
- package/dashboard/src/views/partials/footer.ejs +3 -0
- package/dashboard/src/views/partials/head.ejs +21 -0
- package/dashboard/src/views/partials/header.ejs +12 -0
- package/dashboard/src/views/partials/layout-bottom.ejs +15 -0
- package/dashboard/src/views/partials/layout-top.ejs +8 -0
- package/dashboard/src/views/partials/phase-content.ejs +181 -0
- package/dashboard/src/views/partials/phases-content.ejs +117 -0
- package/dashboard/src/views/partials/roadmap-content.ejs +142 -0
- package/dashboard/src/views/partials/sidebar.ejs +38 -0
- package/dashboard/src/views/partials/todo-create-content.ejs +53 -0
- package/dashboard/src/views/partials/todo-detail-content.ejs +38 -0
- package/dashboard/src/views/partials/todos-content.ejs +53 -0
- package/dashboard/src/views/phase-detail.ejs +5 -0
- package/dashboard/src/views/phases.ejs +5 -0
- package/dashboard/src/views/roadmap.ejs +5 -0
- package/dashboard/src/views/todo-create.ejs +5 -0
- package/dashboard/src/views/todo-detail.ejs +5 -0
- package/dashboard/src/views/todos.ejs +5 -0
- package/package.json +57 -0
- package/plugins/pbr/.claude-plugin/plugin.json +13 -0
- package/plugins/pbr/UI-CONSISTENCY-GAPS.md +61 -0
- package/plugins/pbr/agents/codebase-mapper.md +271 -0
- package/plugins/pbr/agents/debugger.md +281 -0
- package/plugins/pbr/agents/executor.md +407 -0
- package/plugins/pbr/agents/general.md +164 -0
- package/plugins/pbr/agents/integration-checker.md +141 -0
- package/plugins/pbr/agents/plan-checker.md +280 -0
- package/plugins/pbr/agents/planner.md +358 -0
- package/plugins/pbr/agents/researcher.md +363 -0
- package/plugins/pbr/agents/synthesizer.md +230 -0
- package/plugins/pbr/agents/verifier.md +454 -0
- package/plugins/pbr/commands/begin.md +5 -0
- package/plugins/pbr/commands/build.md +5 -0
- package/plugins/pbr/commands/config.md +5 -0
- package/plugins/pbr/commands/continue.md +5 -0
- package/plugins/pbr/commands/debug.md +5 -0
- package/plugins/pbr/commands/discuss.md +5 -0
- package/plugins/pbr/commands/explore.md +5 -0
- package/plugins/pbr/commands/health.md +5 -0
- package/plugins/pbr/commands/help.md +5 -0
- package/plugins/pbr/commands/import.md +5 -0
- package/plugins/pbr/commands/milestone.md +5 -0
- package/plugins/pbr/commands/note.md +5 -0
- package/plugins/pbr/commands/pause.md +5 -0
- package/plugins/pbr/commands/plan.md +5 -0
- package/plugins/pbr/commands/quick.md +5 -0
- package/plugins/pbr/commands/resume.md +5 -0
- package/plugins/pbr/commands/review.md +5 -0
- package/plugins/pbr/commands/scan.md +5 -0
- package/plugins/pbr/commands/setup.md +5 -0
- package/plugins/pbr/commands/status.md +5 -0
- package/plugins/pbr/commands/todo.md +5 -0
- package/plugins/pbr/contexts/dev.md +27 -0
- package/plugins/pbr/contexts/research.md +28 -0
- package/plugins/pbr/contexts/review.md +36 -0
- package/plugins/pbr/hooks/hooks.json +183 -0
- package/plugins/pbr/references/agent-anti-patterns.md +24 -0
- package/plugins/pbr/references/agent-interactions.md +134 -0
- package/plugins/pbr/references/agent-teams.md +54 -0
- package/plugins/pbr/references/checkpoints.md +157 -0
- package/plugins/pbr/references/common-bug-patterns.md +13 -0
- package/plugins/pbr/references/continuation-format.md +212 -0
- package/plugins/pbr/references/deviation-rules.md +112 -0
- package/plugins/pbr/references/git-integration.md +226 -0
- package/plugins/pbr/references/integration-patterns.md +117 -0
- package/plugins/pbr/references/model-profiles.md +99 -0
- package/plugins/pbr/references/model-selection.md +31 -0
- package/plugins/pbr/references/pbr-rules.md +193 -0
- package/plugins/pbr/references/plan-authoring.md +181 -0
- package/plugins/pbr/references/plan-format.md +283 -0
- package/plugins/pbr/references/planning-config.md +213 -0
- package/plugins/pbr/references/questioning.md +214 -0
- package/plugins/pbr/references/reading-verification.md +127 -0
- package/plugins/pbr/references/stub-patterns.md +160 -0
- package/plugins/pbr/references/subagent-coordination.md +119 -0
- package/plugins/pbr/references/ui-formatting.md +399 -0
- package/plugins/pbr/references/verification-patterns.md +198 -0
- package/plugins/pbr/references/wave-execution.md +95 -0
- package/plugins/pbr/scripts/auto-continue.js +80 -0
- package/plugins/pbr/scripts/check-dangerous-commands.js +136 -0
- package/plugins/pbr/scripts/check-doc-sprawl.js +102 -0
- package/plugins/pbr/scripts/check-phase-boundary.js +196 -0
- package/plugins/pbr/scripts/check-plan-format.js +270 -0
- package/plugins/pbr/scripts/check-roadmap-sync.js +252 -0
- package/plugins/pbr/scripts/check-skill-workflow.js +262 -0
- package/plugins/pbr/scripts/check-state-sync.js +476 -0
- package/plugins/pbr/scripts/check-subagent-output.js +144 -0
- package/plugins/pbr/scripts/config-schema.json +251 -0
- package/plugins/pbr/scripts/context-budget-check.js +287 -0
- package/plugins/pbr/scripts/event-handler.js +151 -0
- package/plugins/pbr/scripts/event-logger.js +92 -0
- package/plugins/pbr/scripts/hook-logger.js +76 -0
- package/plugins/pbr/scripts/hooks-schema.json +79 -0
- package/plugins/pbr/scripts/log-subagent.js +152 -0
- package/plugins/pbr/scripts/log-tool-failure.js +88 -0
- package/plugins/pbr/scripts/pbr-tools.js +1301 -0
- package/plugins/pbr/scripts/post-write-dispatch.js +66 -0
- package/plugins/pbr/scripts/post-write-quality.js +207 -0
- package/plugins/pbr/scripts/pre-bash-dispatch.js +56 -0
- package/plugins/pbr/scripts/pre-write-dispatch.js +62 -0
- package/plugins/pbr/scripts/progress-tracker.js +228 -0
- package/plugins/pbr/scripts/session-cleanup.js +254 -0
- package/plugins/pbr/scripts/status-line.js +285 -0
- package/plugins/pbr/scripts/suggest-compact.js +119 -0
- package/plugins/pbr/scripts/task-completed.js +45 -0
- package/plugins/pbr/scripts/track-context-budget.js +119 -0
- package/plugins/pbr/scripts/validate-commit.js +200 -0
- package/plugins/pbr/scripts/validate-plugin-structure.js +172 -0
- package/plugins/pbr/skills/begin/SKILL.md +545 -0
- package/plugins/pbr/skills/begin/templates/PROJECT.md.tmpl +33 -0
- package/plugins/pbr/skills/begin/templates/REQUIREMENTS.md.tmpl +18 -0
- package/plugins/pbr/skills/begin/templates/STATE.md.tmpl +49 -0
- package/plugins/pbr/skills/begin/templates/config.json.tmpl +63 -0
- package/plugins/pbr/skills/begin/templates/researcher-prompt.md.tmpl +19 -0
- package/plugins/pbr/skills/begin/templates/roadmap-prompt.md.tmpl +30 -0
- package/plugins/pbr/skills/begin/templates/synthesis-prompt.md.tmpl +16 -0
- package/plugins/pbr/skills/build/SKILL.md +962 -0
- package/plugins/pbr/skills/config/SKILL.md +241 -0
- package/plugins/pbr/skills/continue/SKILL.md +127 -0
- package/plugins/pbr/skills/debug/SKILL.md +489 -0
- package/plugins/pbr/skills/debug/templates/continuation-prompt.md.tmpl +16 -0
- package/plugins/pbr/skills/debug/templates/initial-investigation-prompt.md.tmpl +27 -0
- package/plugins/pbr/skills/discuss/SKILL.md +338 -0
- package/plugins/pbr/skills/discuss/templates/CONTEXT.md.tmpl +61 -0
- package/plugins/pbr/skills/discuss/templates/decision-categories.md +9 -0
- package/plugins/pbr/skills/explore/SKILL.md +362 -0
- package/plugins/pbr/skills/health/SKILL.md +186 -0
- package/plugins/pbr/skills/health/templates/check-pattern.md.tmpl +30 -0
- package/plugins/pbr/skills/health/templates/output-format.md.tmpl +63 -0
- package/plugins/pbr/skills/help/SKILL.md +140 -0
- package/plugins/pbr/skills/import/SKILL.md +490 -0
- package/plugins/pbr/skills/milestone/SKILL.md +673 -0
- package/plugins/pbr/skills/milestone/templates/audit-report.md.tmpl +48 -0
- package/plugins/pbr/skills/milestone/templates/stats-file.md.tmpl +30 -0
- package/plugins/pbr/skills/note/SKILL.md +212 -0
- package/plugins/pbr/skills/pause/SKILL.md +235 -0
- package/plugins/pbr/skills/pause/templates/continue-here.md.tmpl +71 -0
- package/plugins/pbr/skills/plan/SKILL.md +628 -0
- package/plugins/pbr/skills/plan/decimal-phase-calc.md +98 -0
- package/plugins/pbr/skills/plan/templates/checker-prompt.md.tmpl +21 -0
- package/plugins/pbr/skills/plan/templates/gap-closure-prompt.md.tmpl +32 -0
- package/plugins/pbr/skills/plan/templates/planner-prompt.md.tmpl +38 -0
- package/plugins/pbr/skills/plan/templates/researcher-prompt.md.tmpl +19 -0
- package/plugins/pbr/skills/plan/templates/revision-prompt.md.tmpl +23 -0
- package/plugins/pbr/skills/quick/SKILL.md +335 -0
- package/plugins/pbr/skills/resume/SKILL.md +388 -0
- package/plugins/pbr/skills/review/SKILL.md +652 -0
- package/plugins/pbr/skills/review/templates/debugger-prompt.md.tmpl +60 -0
- package/plugins/pbr/skills/review/templates/gap-planner-prompt.md.tmpl +40 -0
- package/plugins/pbr/skills/review/templates/verifier-prompt.md.tmpl +115 -0
- package/plugins/pbr/skills/scan/SKILL.md +269 -0
- package/plugins/pbr/skills/scan/templates/mapper-prompt.md.tmpl +201 -0
- package/plugins/pbr/skills/setup/SKILL.md +227 -0
- package/plugins/pbr/skills/shared/commit-planning-docs.md +35 -0
- package/plugins/pbr/skills/shared/config-loading.md +102 -0
- package/plugins/pbr/skills/shared/context-budget.md +40 -0
- package/plugins/pbr/skills/shared/context-loader-task.md +86 -0
- package/plugins/pbr/skills/shared/digest-select.md +79 -0
- package/plugins/pbr/skills/shared/domain-probes.md +125 -0
- package/plugins/pbr/skills/shared/error-reporting.md +79 -0
- package/plugins/pbr/skills/shared/gate-prompts.md +388 -0
- package/plugins/pbr/skills/shared/phase-argument-parsing.md +45 -0
- package/plugins/pbr/skills/shared/progress-display.md +53 -0
- package/plugins/pbr/skills/shared/revision-loop.md +81 -0
- package/plugins/pbr/skills/shared/state-loading.md +62 -0
- package/plugins/pbr/skills/shared/state-update.md +161 -0
- package/plugins/pbr/skills/shared/universal-anti-patterns.md +33 -0
- package/plugins/pbr/skills/status/SKILL.md +353 -0
- package/plugins/pbr/skills/todo/SKILL.md +181 -0
- package/plugins/pbr/templates/CONTEXT.md.tmpl +52 -0
- package/plugins/pbr/templates/INTEGRATION-REPORT.md.tmpl +151 -0
- package/plugins/pbr/templates/RESEARCH-SUMMARY.md.tmpl +97 -0
- package/plugins/pbr/templates/ROADMAP.md.tmpl +40 -0
- package/plugins/pbr/templates/SUMMARY.md.tmpl +81 -0
- package/plugins/pbr/templates/VERIFICATION-DETAIL.md.tmpl +116 -0
- package/plugins/pbr/templates/codebase/ARCHITECTURE.md.tmpl +98 -0
- package/plugins/pbr/templates/codebase/CONCERNS.md.tmpl +93 -0
- package/plugins/pbr/templates/codebase/CONVENTIONS.md.tmpl +104 -0
- package/plugins/pbr/templates/codebase/INTEGRATIONS.md.tmpl +78 -0
- package/plugins/pbr/templates/codebase/STACK.md.tmpl +78 -0
- package/plugins/pbr/templates/codebase/STRUCTURE.md.tmpl +80 -0
- package/plugins/pbr/templates/codebase/TESTING.md.tmpl +107 -0
- package/plugins/pbr/templates/continue-here.md.tmpl +73 -0
- package/plugins/pbr/templates/prompt-partials/phase-project-context.md.tmpl +37 -0
- package/plugins/pbr/templates/research/ARCHITECTURE.md.tmpl +124 -0
- package/plugins/pbr/templates/research/STACK.md.tmpl +71 -0
- package/plugins/pbr/templates/research/SUMMARY.md.tmpl +112 -0
- package/plugins/pbr/templates/research-outputs/phase-research.md.tmpl +81 -0
- package/plugins/pbr/templates/research-outputs/project-research.md.tmpl +99 -0
- package/plugins/pbr/templates/research-outputs/synthesis.md.tmpl +36 -0
|
@@ -0,0 +1,652 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: review
|
|
3
|
+
description: "Verify the build matched the plan. Automated checks + walkthrough with you."
|
|
4
|
+
allowed-tools: Read, Write, Bash, Glob, Grep, Task, AskUserQuestion
|
|
5
|
+
argument-hint: "<phase-number> [--auto-fix] [--teams]"
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# /pbr:review — Phase Review and Verification
|
|
9
|
+
|
|
10
|
+
You are the orchestrator for `/pbr:review`. This skill verifies that what was built matches what was planned. It runs automated three-layer checks against must-haves, then walks the user through a conversational UAT (user acceptance testing) for each deliverable. Your job is to present findings clearly and help the user decide what's good enough versus what needs fixes.
|
|
11
|
+
|
|
12
|
+
## Context Budget
|
|
13
|
+
|
|
14
|
+
Reference: `skills/shared/context-budget.md` for the universal orchestrator rules.
|
|
15
|
+
|
|
16
|
+
Additionally for this skill:
|
|
17
|
+
- **Minimize** reading subagent output — read only VERIFICATION.md frontmatter for summaries
|
|
18
|
+
|
|
19
|
+
## Prerequisites
|
|
20
|
+
|
|
21
|
+
- `.planning/config.json` exists
|
|
22
|
+
- Phase has been built: SUMMARY.md files exist in `.planning/phases/{NN}-{slug}/`
|
|
23
|
+
|
|
24
|
+
### Event-Driven Auto-Verification
|
|
25
|
+
|
|
26
|
+
When `features.goal_verification` is enabled and depth is "standard" or "comprehensive", the `event-handler.js` hook automatically queues verification after executor completion. The hook writes `.planning/.auto-verify` as a signal file. The build skill's orchestrator detects this signal and spawns the verifier agent.
|
|
27
|
+
|
|
28
|
+
**This is additive**: `/pbr:review` can always be invoked manually regardless of auto-verification settings. If auto-verification already ran, `/pbr:review` re-runs verification (useful for re-checking after fixes).
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## Argument Parsing
|
|
33
|
+
|
|
34
|
+
Parse `$ARGUMENTS` according to `skills/shared/phase-argument-parsing.md`.
|
|
35
|
+
|
|
36
|
+
| Argument | Meaning |
|
|
37
|
+
|----------|---------|
|
|
38
|
+
| `3` | Review phase 3 |
|
|
39
|
+
| `3 --auto-fix` | Review phase 3, automatically diagnose and create gap-closure plans for failures |
|
|
40
|
+
| `3 --teams` | Review phase 3 with parallel specialist verifiers (functional + security + performance) |
|
|
41
|
+
| (no number) | Use current phase from STATE.md |
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
## Orchestration Flow
|
|
46
|
+
|
|
47
|
+
Execute these steps in order.
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
### Step 1: Parse and Validate (inline)
|
|
52
|
+
|
|
53
|
+
1. Parse `$ARGUMENTS` for phase number and `--auto-fix` flag
|
|
54
|
+
2. Read `.planning/config.json`
|
|
55
|
+
3. Resolve depth profile: run `node ${CLAUDE_PLUGIN_ROOT}/scripts/pbr-tools.js config resolve-depth` to get the effective feature/gate settings for the current depth. Store the result for use in later gating decisions.
|
|
56
|
+
4. Validate:
|
|
57
|
+
- Phase directory exists at `.planning/phases/{NN}-{slug}/`
|
|
58
|
+
- SUMMARY.md files exist (phase has been built)
|
|
59
|
+
- PLAN.md files exist (needed for must-have extraction)
|
|
60
|
+
4. If no phase number given, read current phase from `.planning/STATE.md`
|
|
61
|
+
5. If `.planning/.auto-verify` signal file exists, read it and note the auto-verification was already queued. Delete the signal file after reading (one-shot, same pattern as auto-continue.js).
|
|
62
|
+
|
|
63
|
+
**Validation errors — use branded error boxes:**
|
|
64
|
+
|
|
65
|
+
If no SUMMARY.md files:
|
|
66
|
+
```
|
|
67
|
+
╔══════════════════════════════════════════════════════════════╗
|
|
68
|
+
║ ERROR ║
|
|
69
|
+
╚══════════════════════════════════════════════════════════════╝
|
|
70
|
+
|
|
71
|
+
Phase {N} hasn't been built yet.
|
|
72
|
+
|
|
73
|
+
**To fix:** Run `/pbr:build {N}` first.
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
If no PLAN.md files:
|
|
77
|
+
```
|
|
78
|
+
╔══════════════════════════════════════════════════════════════╗
|
|
79
|
+
║ ERROR ║
|
|
80
|
+
╚══════════════════════════════════════════════════════════════╝
|
|
81
|
+
|
|
82
|
+
Phase {N} has no plans.
|
|
83
|
+
|
|
84
|
+
**To fix:** Run `/pbr:plan {N}` first.
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
### Step 2: Check Existing Verification (inline)
|
|
90
|
+
|
|
91
|
+
Reference: `skills/shared/config-loading.md` for the tooling shortcut (`phase-info`) and config field reference.
|
|
92
|
+
|
|
93
|
+
Check if a VERIFICATION.md already exists from `/pbr:build`'s auto-verification step:
|
|
94
|
+
|
|
95
|
+
1. Look for `.planning/phases/{NN}-{slug}/VERIFICATION.md`
|
|
96
|
+
2. If it exists:
|
|
97
|
+
- Read it and check the status
|
|
98
|
+
- If `status: passed` and no `--auto-fix` flag: skip to Step 4 (conversational UAT)
|
|
99
|
+
- If `status: gaps_found`: present gaps and proceed to Step 4
|
|
100
|
+
- If `status: human_needed`: proceed to Step 4
|
|
101
|
+
|
|
102
|
+
3. If it does NOT exist: proceed to Step 3 (automated verification)
|
|
103
|
+
|
|
104
|
+
---
|
|
105
|
+
|
|
106
|
+
### Step 3: Automated Verification (delegated)
|
|
107
|
+
|
|
108
|
+
**Depth profile gate:** Before spawning the verifier, resolve the depth profile. If `features.goal_verification` is false in the profile, skip automated verification and proceed directly to Step 5 (Conversational UAT). Note to user: "Automated verification skipped (depth: {depth}). Proceeding to manual review."
|
|
109
|
+
|
|
110
|
+
#### Team Review Mode
|
|
111
|
+
|
|
112
|
+
If `--teams` flag is present OR `config.parallelization.use_teams` is true:
|
|
113
|
+
|
|
114
|
+
1. Create team output directory: `.planning/phases/{NN}-{slug}/team/` (if not exists)
|
|
115
|
+
2. Display to the user: `◐ Spawning 3 verifiers in parallel (functional, security, performance)...`
|
|
116
|
+
|
|
117
|
+
Spawn THREE verifier agents in parallel using Task():
|
|
118
|
+
|
|
119
|
+
**Agent 1 -- Functional Reviewer**:
|
|
120
|
+
- subagent_type: "pbr:verifier"
|
|
121
|
+
- Prompt includes: "You are the FUNCTIONAL REVIEWER in a review team. Focus on: must-haves met, code correctness, completeness, integration points. Write output to `.planning/phases/{NN}-{slug}/team/functional-VERIFY.md`."
|
|
122
|
+
|
|
123
|
+
**Agent 2 -- Security Auditor**:
|
|
124
|
+
- subagent_type: "pbr:verifier"
|
|
125
|
+
- Prompt includes: "You are the SECURITY AUDITOR in a review team. Focus on: vulnerabilities, auth bypass paths, injection risks, secrets exposure, permission escalation. Write output to `.planning/phases/{NN}-{slug}/team/security-VERIFY.md`."
|
|
126
|
+
|
|
127
|
+
**Agent 3 -- Performance Analyst**:
|
|
128
|
+
- subagent_type: "pbr:verifier"
|
|
129
|
+
- Prompt includes: "You are the PERFORMANCE ANALYST in a review team. Focus on: N+1 queries, memory leaks, unnecessary allocations, bundle size impact, blocking operations. Write output to `.planning/phases/{NN}-{slug}/team/performance-VERIFY.md`."
|
|
130
|
+
|
|
131
|
+
3. Wait for all three to complete
|
|
132
|
+
4. Display to the user: `◐ Spawning synthesizer...`
|
|
133
|
+
|
|
134
|
+
Spawn synthesizer:
|
|
135
|
+
- subagent_type: "pbr:synthesizer"
|
|
136
|
+
- Prompt: "Read all *-VERIFY.md files in `.planning/phases/{NN}-{slug}/team/`. Synthesize into a unified VERIFICATION.md. Merge pass/fail verdicts -- a must-have fails if ANY reviewer flags it. Combine gap lists. Security and performance findings go into dedicated sections."
|
|
137
|
+
5. Proceed to UAT walkthrough with the unified VERIFICATION.md
|
|
138
|
+
|
|
139
|
+
If teams not enabled, proceed with existing single-verifier flow.
|
|
140
|
+
|
|
141
|
+
Reference: `references/agent-teams.md`
|
|
142
|
+
|
|
143
|
+
#### Single-Verifier Flow (default)
|
|
144
|
+
|
|
145
|
+
Display to the user: `◐ Spawning verifier...`
|
|
146
|
+
|
|
147
|
+
Spawn a verifier Task() to run three-layer checks:
|
|
148
|
+
|
|
149
|
+
```
|
|
150
|
+
Task({
|
|
151
|
+
subagent_type: "pbr:verifier",
|
|
152
|
+
prompt: <verifier prompt>
|
|
153
|
+
})
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
#### Verifier Prompt Template
|
|
157
|
+
|
|
158
|
+
Read `skills/review/templates/verifier-prompt.md.tmpl` and use its content as the verifier prompt.
|
|
159
|
+
|
|
160
|
+
**Placeholders to fill before sending:**
|
|
161
|
+
- `{For each PLAN.md file in the phase directory:}` — inline each plan's must_haves frontmatter block
|
|
162
|
+
- `{For each SUMMARY.md file in the phase directory:}` — provide manifest table with file paths and status from frontmatter. The verifier reads full content from disk via Read tool.
|
|
163
|
+
- `{NN}-{slug}` — the phase directory name
|
|
164
|
+
- `{N}` — the phase number
|
|
165
|
+
- `{date}`, `{count}`, `{phase name}` — fill from context
|
|
166
|
+
|
|
167
|
+
Wait for the verifier to complete.
|
|
168
|
+
|
|
169
|
+
---
|
|
170
|
+
|
|
171
|
+
### Step 4: Present Verification Results (inline)
|
|
172
|
+
|
|
173
|
+
Read the VERIFICATION.md frontmatter. Check the `attempt` counter.
|
|
174
|
+
|
|
175
|
+
**If `attempt >= 3` AND `status: gaps_found`:** This phase has failed verification multiple times. Present escalation options instead of the normal flow:
|
|
176
|
+
|
|
177
|
+
Present the escalation context:
|
|
178
|
+
```
|
|
179
|
+
Phase {N}: {name} — Verification Failed ({attempt} attempts)
|
|
180
|
+
The same gaps have persisted across {attempt} verification attempts.
|
|
181
|
+
Remaining gaps: {count}
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
Use AskUserQuestion (pattern: multi-option-escalation from `skills/shared/gate-prompts.md`):
|
|
185
|
+
question: "Phase {N} has failed verification {attempt} times with {count} persistent gaps. How should we proceed?"
|
|
186
|
+
header: "Escalate"
|
|
187
|
+
options:
|
|
188
|
+
- label: "Accept gaps" description: "Mark as complete-with-gaps and move on"
|
|
189
|
+
- label: "Re-plan" description: "Go back to /pbr:plan {N} with gap context"
|
|
190
|
+
- label: "Debug" description: "Spawn /pbr:debug to investigate root causes"
|
|
191
|
+
- label: "Retry" description: "Try one more verification cycle"
|
|
192
|
+
|
|
193
|
+
- **If user selects "Accept gaps":** Follow up with a second AskUserQuestion:
|
|
194
|
+
question: "Accept all gaps or pick specific ones to override?"
|
|
195
|
+
header: "Override?"
|
|
196
|
+
options:
|
|
197
|
+
- label: "Accept all" description: "Mark phase as complete-with-gaps, accept everything"
|
|
198
|
+
- label: "Pick specific" description: "Choose which gaps to mark as false positives"
|
|
199
|
+
- If "Accept all": Update STATE.md status to `complete-with-gaps`, update ROADMAP.md to `verified*`, add a note in VERIFICATION.md about accepted gaps. Proceed to next phase.
|
|
200
|
+
- If "Pick specific": Use the override flow from Step 6 "Gaps Found" section (present each gap for selection).
|
|
201
|
+
- **If user selects "Re-plan":** Suggest `/pbr:plan {N} --gaps` to create targeted fix plans.
|
|
202
|
+
- **If user selects "Debug":** Suggest `/pbr:debug` with the gap details as starting context.
|
|
203
|
+
- **If user selects "Retry":** Continue with normal Step 5 flow.
|
|
204
|
+
|
|
205
|
+
**Otherwise**, present results normally:
|
|
206
|
+
|
|
207
|
+
```
|
|
208
|
+
Phase {N}: {name} — Verification Results
|
|
209
|
+
|
|
210
|
+
Status: {PASSED | GAPS FOUND | HUMAN NEEDED}
|
|
211
|
+
Attempt: {attempt}
|
|
212
|
+
|
|
213
|
+
Must-have truths: {passed}/{total}
|
|
214
|
+
Must-have artifacts: {passed}/{total}
|
|
215
|
+
Must-have key links: {passed}/{total}
|
|
216
|
+
|
|
217
|
+
{If all passed:}
|
|
218
|
+
All automated checks passed.
|
|
219
|
+
|
|
220
|
+
{If gaps found:}
|
|
221
|
+
Gaps found:
|
|
222
|
+
1. {gap description} — {failed layer}
|
|
223
|
+
2. {gap description} — {failed layer}
|
|
224
|
+
|
|
225
|
+
{If human needed:}
|
|
226
|
+
Items requiring your verification:
|
|
227
|
+
1. {item} — {why automated check couldn't verify}
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
---
|
|
231
|
+
|
|
232
|
+
### Step 5: Conversational UAT (inline)
|
|
233
|
+
|
|
234
|
+
Walk the user through each deliverable one by one. This is an interactive conversation, not an automated check.
|
|
235
|
+
|
|
236
|
+
**For each plan in the phase:**
|
|
237
|
+
|
|
238
|
+
1. Read the plan's must-haves and SUMMARY.md
|
|
239
|
+
2. Present what was built:
|
|
240
|
+
|
|
241
|
+
```
|
|
242
|
+
Plan {plan_id}: {plan name}
|
|
243
|
+
|
|
244
|
+
What was built:
|
|
245
|
+
{Brief description from SUMMARY.md}
|
|
246
|
+
|
|
247
|
+
Key deliverables:
|
|
248
|
+
1. {artifact/truth 1}
|
|
249
|
+
2. {artifact/truth 2}
|
|
250
|
+
3. {artifact/truth 3}
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
3. For each must-have truth, walk the user through verification:
|
|
254
|
+
|
|
255
|
+
```
|
|
256
|
+
Checking: "{truth statement}"
|
|
257
|
+
|
|
258
|
+
How to verify:
|
|
259
|
+
{Specific steps the user can take to check this}
|
|
260
|
+
{e.g., "Open http://localhost:3000 and click Login"}
|
|
261
|
+
{e.g., "Run `npm test` and check that auth tests pass"}
|
|
262
|
+
|
|
263
|
+
Does this work as expected? [pass / fail / skip]
|
|
264
|
+
```
|
|
265
|
+
|
|
266
|
+
4. Record the user's assessment for each item
|
|
267
|
+
|
|
268
|
+
**Keep the conversation flowing:**
|
|
269
|
+
- If user says "pass": move to the next item
|
|
270
|
+
- If user says "fail": ask what's wrong, record the issue
|
|
271
|
+
- If user says "skip": note it and move on
|
|
272
|
+
- If user has questions: answer them using the SUMMARY.md and plan context
|
|
273
|
+
|
|
274
|
+
---
|
|
275
|
+
|
|
276
|
+
### Step 6: Handle Results (inline)
|
|
277
|
+
|
|
278
|
+
Compile the UAT results and determine next steps.
|
|
279
|
+
|
|
280
|
+
#### All Items Pass
|
|
281
|
+
|
|
282
|
+
If all automated checks and UAT items passed:
|
|
283
|
+
|
|
284
|
+
1. **Update `.planning/ROADMAP.md` Progress table** (REQUIRED — do this BEFORE updating STATE.md):
|
|
285
|
+
|
|
286
|
+
**Tooling shortcut**: Use the CLI for atomic ROADMAP.md and STATE.md updates:
|
|
287
|
+
```bash
|
|
288
|
+
node ${CLAUDE_PLUGIN_ROOT}/scripts/pbr-tools.js roadmap update-status {phase} verified
|
|
289
|
+
node ${CLAUDE_PLUGIN_ROOT}/scripts/pbr-tools.js state update status verified
|
|
290
|
+
node ${CLAUDE_PLUGIN_ROOT}/scripts/pbr-tools.js state update last_activity now
|
|
291
|
+
```
|
|
292
|
+
|
|
293
|
+
1. Open `.planning/ROADMAP.md`
|
|
294
|
+
2. Find the `## Progress` table
|
|
295
|
+
3. Locate the row matching this phase number
|
|
296
|
+
4. Update the `Status` column to `verified`
|
|
297
|
+
5. Update the `Completed` column to the current date (YYYY-MM-DD)
|
|
298
|
+
6. Save the file — do NOT skip this step
|
|
299
|
+
2. Update `.planning/STATE.md`:
|
|
300
|
+
- Phase status: "verified"
|
|
301
|
+
- Progress updated
|
|
302
|
+
- Last activity timestamp
|
|
303
|
+
- **STATE.md size limit:** Follow size limit enforcement rules in `skills/shared/state-update.md` (150 lines max).
|
|
304
|
+
3. Update VERIFICATION.md with UAT results (append UAT section)
|
|
305
|
+
3. Present completion:
|
|
306
|
+
|
|
307
|
+
Use the branded output from `references/ui-formatting.md`:
|
|
308
|
+
- If more phases remain: use the "Phase Complete" banner template
|
|
309
|
+
- If this was the last phase: use the "Milestone Complete" banner template
|
|
310
|
+
- Always include the "Next Up" routing block
|
|
311
|
+
|
|
312
|
+
4. If `gates.confirm_transition` is true in config AND `features.auto_advance` is NOT true:
|
|
313
|
+
- Use AskUserQuestion (pattern: yes-no from `skills/shared/gate-prompts.md`):
|
|
314
|
+
question: "Phase {N} verified. Ready to move to Phase {N+1}?"
|
|
315
|
+
header: "Continue?"
|
|
316
|
+
options:
|
|
317
|
+
- label: "Yes" description: "Proceed to plan Phase {N+1}"
|
|
318
|
+
- label: "No" description: "Stay on Phase {N} for now"
|
|
319
|
+
- If "Yes": suggest `/pbr:plan {N+1}`
|
|
320
|
+
- If "No" or "Other": stop
|
|
321
|
+
|
|
322
|
+
5. **If `features.auto_advance` is `true` AND `mode` is `autonomous` AND more phases remain:**
|
|
323
|
+
- Chain directly to plan: `Skill({ skill: "dev:plan", args: "{N+1}" })`
|
|
324
|
+
- This continues the build→review→plan cycle automatically
|
|
325
|
+
- **If this is the last phase:** HARD STOP — do NOT auto-advance past milestone boundaries
|
|
326
|
+
|
|
327
|
+
#### Gaps Found WITH `--auto-fix`
|
|
328
|
+
|
|
329
|
+
If gaps were found and `--auto-fix` was specified:
|
|
330
|
+
|
|
331
|
+
**Step 6a: Diagnose**
|
|
332
|
+
|
|
333
|
+
Display to the user: `◐ Spawning debugger...`
|
|
334
|
+
|
|
335
|
+
Spawn a debugger Task() to analyze each failure:
|
|
336
|
+
|
|
337
|
+
```
|
|
338
|
+
Task({
|
|
339
|
+
subagent_type: "pbr:debugger",
|
|
340
|
+
prompt: <debugger prompt>
|
|
341
|
+
})
|
|
342
|
+
```
|
|
343
|
+
|
|
344
|
+
##### Debugger Prompt Template
|
|
345
|
+
|
|
346
|
+
Read `skills/review/templates/debugger-prompt.md.tmpl` and use its content as the debugger prompt.
|
|
347
|
+
|
|
348
|
+
**Placeholders to fill before sending:**
|
|
349
|
+
- `[Inline the VERIFICATION.md content]` — provide file path; debugger reads via Read tool
|
|
350
|
+
- `[Inline all SUMMARY.md files for the phase]` — provide manifest table of file paths
|
|
351
|
+
- `[Inline all PLAN.md files for the phase]` — provide manifest table of file paths
|
|
352
|
+
|
|
353
|
+
**Step 6b: Create Gap-Closure Plans**
|
|
354
|
+
|
|
355
|
+
After receiving the root cause analysis, display to the user: `◐ Spawning planner (gap closure)...`
|
|
356
|
+
|
|
357
|
+
Spawn the planner in gap-closure mode:
|
|
358
|
+
|
|
359
|
+
```
|
|
360
|
+
Task({
|
|
361
|
+
subagent_type: "pbr:planner",
|
|
362
|
+
prompt: <gap planner prompt>
|
|
363
|
+
})
|
|
364
|
+
```
|
|
365
|
+
|
|
366
|
+
##### Gap Planner Prompt Template
|
|
367
|
+
|
|
368
|
+
Read `skills/review/templates/gap-planner-prompt.md.tmpl` and use its content as the gap planner prompt.
|
|
369
|
+
|
|
370
|
+
**Placeholders to fill before sending:**
|
|
371
|
+
- `[Inline VERIFICATION.md]` — provide file path; planner reads via Read tool
|
|
372
|
+
- `[Inline the debugger's root cause analysis]` — keep inline (already in conversation context)
|
|
373
|
+
- `[Inline all existing PLAN.md files for this phase]` — provide manifest table of file paths
|
|
374
|
+
- `[Inline CONTEXT.md if it exists]` — provide file path; planner reads via Read tool
|
|
375
|
+
- `{NN}-{slug}` — the phase directory name
|
|
376
|
+
|
|
377
|
+
**Step 6c: Validate gap-closure plans (conditional)**
|
|
378
|
+
|
|
379
|
+
If `features.plan_checking` is true in config:
|
|
380
|
+
- Display to the user: `◐ Spawning plan checker...`
|
|
381
|
+
- Spawn plan checker Task() on the new gap-closure plans
|
|
382
|
+
- Same process as `/pbr:plan` Step 6
|
|
383
|
+
|
|
384
|
+
**Step 6d: Present gap-closure plans to user**
|
|
385
|
+
|
|
386
|
+
```
|
|
387
|
+
Auto-fix analysis complete.
|
|
388
|
+
|
|
389
|
+
Gaps found: {count}
|
|
390
|
+
Root causes identified: {count}
|
|
391
|
+
Gap-closure plans created: {count}
|
|
392
|
+
|
|
393
|
+
Plans:
|
|
394
|
+
{plan_id}: {name} — fixes: {gap description} ({difficulty})
|
|
395
|
+
{plan_id}: {name} — fixes: {gap description} ({difficulty})
|
|
396
|
+
|
|
397
|
+
Use AskUserQuestion (pattern: approve-revise-abort from `skills/shared/gate-prompts.md`):
|
|
398
|
+
question: "Approve these {count} gap-closure plans?"
|
|
399
|
+
header: "Approve?"
|
|
400
|
+
options:
|
|
401
|
+
- label: "Approve" description: "Proceed — I'll suggest the build command"
|
|
402
|
+
- label: "Review first" description: "Let me review the plans before approving"
|
|
403
|
+
- label: "Fix manually" description: "I'll fix these gaps myself"
|
|
404
|
+
|
|
405
|
+
- If "Approve": suggest `/pbr:build {N} --gaps-only`
|
|
406
|
+
- If "Review first" or "Other": present the full plan files for inspection
|
|
407
|
+
- If "Fix manually": suggest relevant files to inspect based on gap details
|
|
408
|
+
|
|
409
|
+
#### Gaps Found WITHOUT `--auto-fix`
|
|
410
|
+
|
|
411
|
+
If gaps were found and `--auto-fix` was NOT specified:
|
|
412
|
+
|
|
413
|
+
1. List all gaps clearly
|
|
414
|
+
2. **Default to auto-fix** — offer it as the recommended action, not a hidden flag
|
|
415
|
+
|
|
416
|
+
```
|
|
417
|
+
Phase {N}: {name} — Gaps Found
|
|
418
|
+
|
|
419
|
+
{count} verification gaps need attention:
|
|
420
|
+
|
|
421
|
+
1. {gap description}
|
|
422
|
+
Layer failed: {existence | substantiveness | wiring}
|
|
423
|
+
Details: {what's wrong}
|
|
424
|
+
|
|
425
|
+
2. {gap description}
|
|
426
|
+
...
|
|
427
|
+
|
|
428
|
+
Use AskUserQuestion (pattern: multi-option-gaps from `skills/shared/gate-prompts.md`):
|
|
429
|
+
question: "{count} verification gaps need attention. How should we proceed?"
|
|
430
|
+
header: "Gaps"
|
|
431
|
+
options:
|
|
432
|
+
- label: "Auto-fix" description: "Diagnose root causes and create fix plans (recommended)"
|
|
433
|
+
- label: "Override" description: "Accept specific gaps as false positives"
|
|
434
|
+
- label: "Manual" description: "I'll fix these myself"
|
|
435
|
+
- label: "Skip" description: "Save results for later"
|
|
436
|
+
|
|
437
|
+
**If user selects "Auto-fix":** proceed with the same Steps 6a-6d as the `--auto-fix` flow above (diagnose, create gap-closure plans, validate, present). This is the default path.
|
|
438
|
+
|
|
439
|
+
**If user selects "Override":** present each gap and ask which ones to accept. For each accepted gap, collect a reason. Add to VERIFICATION.md frontmatter `overrides` list:
|
|
440
|
+
```yaml
|
|
441
|
+
overrides:
|
|
442
|
+
- must_have: "{text}"
|
|
443
|
+
reason: "{user's reason}"
|
|
444
|
+
accepted_by: "user"
|
|
445
|
+
accepted_at: "{ISO date}"
|
|
446
|
+
```
|
|
447
|
+
After adding overrides, re-evaluate: if all remaining gaps are now overridden, mark status as `passed`. Otherwise, offer auto-fix for the remaining non-overridden gaps.
|
|
448
|
+
|
|
449
|
+
**If user selects "Manual":** suggest relevant files to inspect based on the gap details.
|
|
450
|
+
|
|
451
|
+
**If user selects "Skip":** save results and exit.
|
|
452
|
+
|
|
453
|
+
---
|
|
454
|
+
|
|
455
|
+
## UAT Result Recording
|
|
456
|
+
|
|
457
|
+
After conversational UAT, append UAT results to VERIFICATION.md:
|
|
458
|
+
|
|
459
|
+
```markdown
|
|
460
|
+
## User Acceptance Testing
|
|
461
|
+
|
|
462
|
+
| # | Item | Automated | UAT | Final Status |
|
|
463
|
+
|---|------|-----------|-----|-------------|
|
|
464
|
+
| 1 | {must-have} | PASS | PASS | VERIFIED |
|
|
465
|
+
| 2 | {must-have} | PASS | FAIL | GAP |
|
|
466
|
+
| 3 | {must-have} | GAP | — | GAP |
|
|
467
|
+
| 4 | {must-have} | PASS | SKIP | UNVERIFIED |
|
|
468
|
+
|
|
469
|
+
UAT conducted: {date}
|
|
470
|
+
Items verified: {count}
|
|
471
|
+
Items passed: {count}
|
|
472
|
+
Items failed: {count}
|
|
473
|
+
Items skipped: {count}
|
|
474
|
+
```
|
|
475
|
+
|
|
476
|
+
---
|
|
477
|
+
|
|
478
|
+
## Integration Verification (optional)
|
|
479
|
+
|
|
480
|
+
If `features.integration_verification: true` AND this phase depends on prior phases:
|
|
481
|
+
|
|
482
|
+
After Step 3, also check cross-phase integration:
|
|
483
|
+
- Read SUMMARY.md `provides` and `requires` from this phase and dependent phases
|
|
484
|
+
- Verify that exports from prior phases are used in this phase's code
|
|
485
|
+
- Verify that this phase's outputs are compatible with future phase expectations
|
|
486
|
+
- Include integration findings in Step 4 presentation
|
|
487
|
+
|
|
488
|
+
---
|
|
489
|
+
|
|
490
|
+
## Error Handling
|
|
491
|
+
|
|
492
|
+
### Verifier agent fails
|
|
493
|
+
If the verifier Task() fails, display:
|
|
494
|
+
```
|
|
495
|
+
╔══════════════════════════════════════════════════════════════╗
|
|
496
|
+
║ ERROR ║
|
|
497
|
+
╚══════════════════════════════════════════════════════════════╝
|
|
498
|
+
|
|
499
|
+
Automated verification failed.
|
|
500
|
+
|
|
501
|
+
**To fix:** We'll do a manual walkthrough instead.
|
|
502
|
+
```
|
|
503
|
+
Fall back to manual UAT only (skip automated checks).
|
|
504
|
+
|
|
505
|
+
### No must-haves to check
|
|
506
|
+
If plans have empty must_haves:
|
|
507
|
+
- Warn user: `⚠ Plans don't have defined must-haves. UAT will be based on plan descriptions only.`
|
|
508
|
+
- Use SUMMARY.md content as the basis for UAT
|
|
509
|
+
|
|
510
|
+
### User can't verify something
|
|
511
|
+
If user can't verify an item (e.g., needs server running, needs credentials):
|
|
512
|
+
- Mark as SKIP
|
|
513
|
+
- Record what's needed
|
|
514
|
+
- Suggest how to verify later
|
|
515
|
+
|
|
516
|
+
### Debugger fails during auto-fix
|
|
517
|
+
If the debugger Task() fails, display:
|
|
518
|
+
```
|
|
519
|
+
╔══════════════════════════════════════════════════════════════╗
|
|
520
|
+
║ ERROR ║
|
|
521
|
+
╚══════════════════════════════════════════════════════════════╝
|
|
522
|
+
|
|
523
|
+
Auto-diagnosis failed.
|
|
524
|
+
|
|
525
|
+
**To fix:** Create gap-closure plans based on the verification report alone.
|
|
526
|
+
```
|
|
527
|
+
Ask user: "Would you like to proceed with gap-closure plans without root cause analysis?"
|
|
528
|
+
|
|
529
|
+
---
|
|
530
|
+
|
|
531
|
+
## Files Created/Modified by /pbr:review
|
|
532
|
+
|
|
533
|
+
| File | Purpose | When |
|
|
534
|
+
|------|---------|------|
|
|
535
|
+
| `.planning/phases/{NN}-{slug}/VERIFICATION.md` | Verification report | Step 3 (created or updated with UAT) |
|
|
536
|
+
| `.planning/phases/{NN}-{slug}/*-PLAN.md` | Gap-closure plans | Step 6b (--auto-fix only) |
|
|
537
|
+
| `.planning/ROADMAP.md` | Status → `verified` + Completed date | Step 6 |
|
|
538
|
+
| `.planning/STATE.md` | Updated with review status | Step 6 |
|
|
539
|
+
|
|
540
|
+
---
|
|
541
|
+
|
|
542
|
+
## Completion
|
|
543
|
+
|
|
544
|
+
After review completes, always present a clear next action:
|
|
545
|
+
|
|
546
|
+
**If verified (not final phase):**
|
|
547
|
+
|
|
548
|
+
Display the "Phase Complete" banner inline:
|
|
549
|
+
```
|
|
550
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
551
|
+
PLAN-BUILD-RUN ► PHASE {N} COMPLETE ✓
|
|
552
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
553
|
+
|
|
554
|
+
**Phase {N}: {Name}**
|
|
555
|
+
|
|
556
|
+
{X} plans executed
|
|
557
|
+
Goal verified ✓
|
|
558
|
+
```
|
|
559
|
+
|
|
560
|
+
Then the branded "Next Up" block:
|
|
561
|
+
```
|
|
562
|
+
───────────────────────────────────────────────────────────────
|
|
563
|
+
|
|
564
|
+
## ▶ Next Up
|
|
565
|
+
|
|
566
|
+
**Phase {N+1}: {Name}** — {Goal from ROADMAP.md}
|
|
567
|
+
|
|
568
|
+
`/pbr:plan {N+1}`
|
|
569
|
+
|
|
570
|
+
<sub>`/clear` first → fresh context window</sub>
|
|
571
|
+
|
|
572
|
+
───────────────────────────────────────────────────────────────
|
|
573
|
+
|
|
574
|
+
**Also available:**
|
|
575
|
+
- `/pbr:discuss {N+1}` — talk through details before planning
|
|
576
|
+
- `/pbr:status` — see full project status
|
|
577
|
+
|
|
578
|
+
───────────────────────────────────────────────────────────────
|
|
579
|
+
```
|
|
580
|
+
|
|
581
|
+
**If gaps remain:**
|
|
582
|
+
```
|
|
583
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
584
|
+
PLAN-BUILD-RUN ► PHASE {N} GAPS FOUND ⚠
|
|
585
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
586
|
+
|
|
587
|
+
**Phase {N}: {name}** — {count} gaps remaining
|
|
588
|
+
|
|
589
|
+
───────────────────────────────────────────────────────────────
|
|
590
|
+
|
|
591
|
+
## ▶ Next Up
|
|
592
|
+
|
|
593
|
+
**Fix gaps** — diagnose and create fix plans
|
|
594
|
+
|
|
595
|
+
`/pbr:review {N} --auto-fix`
|
|
596
|
+
|
|
597
|
+
<sub>`/clear` first → fresh context window</sub>
|
|
598
|
+
|
|
599
|
+
───────────────────────────────────────────────────────────────
|
|
600
|
+
|
|
601
|
+
**Also available:**
|
|
602
|
+
- `/pbr:plan {N} --gaps` — create fix plans manually
|
|
603
|
+
- Fix manually, then `/pbr:review {N}`
|
|
604
|
+
|
|
605
|
+
───────────────────────────────────────────────────────────────
|
|
606
|
+
```
|
|
607
|
+
|
|
608
|
+
**If final phase:**
|
|
609
|
+
|
|
610
|
+
Display the "Milestone Complete" banner inline:
|
|
611
|
+
```
|
|
612
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
613
|
+
PLAN-BUILD-RUN ► MILESTONE COMPLETE 🎉
|
|
614
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
615
|
+
|
|
616
|
+
{N} phases completed
|
|
617
|
+
All phase goals verified ✓
|
|
618
|
+
```
|
|
619
|
+
|
|
620
|
+
Then:
|
|
621
|
+
```
|
|
622
|
+
───────────────────────────────────────────────────────────────
|
|
623
|
+
|
|
624
|
+
## ▶ Next Up
|
|
625
|
+
|
|
626
|
+
**Audit milestone** — verify cross-phase integration
|
|
627
|
+
|
|
628
|
+
`/pbr:milestone audit`
|
|
629
|
+
|
|
630
|
+
<sub>`/clear` first → fresh context window</sub>
|
|
631
|
+
|
|
632
|
+
───────────────────────────────────────────────────────────────
|
|
633
|
+
|
|
634
|
+
**Also available:**
|
|
635
|
+
- `/pbr:milestone complete` — archive this milestone and tag it
|
|
636
|
+
- `/pbr:milestone new` — start planning next features
|
|
637
|
+
- `/pbr:status` — see final project status
|
|
638
|
+
|
|
639
|
+
───────────────────────────────────────────────────────────────
|
|
640
|
+
```
|
|
641
|
+
|
|
642
|
+
---
|
|
643
|
+
|
|
644
|
+
## Notes
|
|
645
|
+
|
|
646
|
+
For user-friendly interpretation of verification results, see `references/reading-verification.md`.
|
|
647
|
+
|
|
648
|
+
- The verifier agent has NO Write/Edit tools for project source code — it can only read, check, and write VERIFICATION.md
|
|
649
|
+
- Re-running `/pbr:review` after gap closure triggers fresh verification
|
|
650
|
+
- UAT results are conversational — user responses are captured inline
|
|
651
|
+
- VERIFICATION.md is persistent and serves as the ground truth for gap closure
|
|
652
|
+
- The three-layer check (existence -> substantiveness -> wiring) catches progressively deeper issues
|