@sienklogic/plan-build-run 2.9.1 → 2.11.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 (128) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/package.json +1 -1
  3. package/plugins/copilot-pbr/agents/codebase-mapper.agent.md +42 -0
  4. package/plugins/copilot-pbr/agents/debugger.agent.md +4 -1
  5. package/plugins/copilot-pbr/agents/executor.agent.md +31 -1
  6. package/plugins/copilot-pbr/agents/integration-checker.agent.md +33 -2
  7. package/plugins/copilot-pbr/agents/planner.agent.md +58 -1
  8. package/plugins/copilot-pbr/agents/researcher.agent.md +23 -0
  9. package/plugins/copilot-pbr/agents/synthesizer.agent.md +24 -0
  10. package/plugins/copilot-pbr/agents/verifier.agent.md +35 -1
  11. package/plugins/copilot-pbr/plugin.json +1 -1
  12. package/plugins/copilot-pbr/references/agent-contracts.md +297 -0
  13. package/plugins/copilot-pbr/references/pbr-rules.md +1 -0
  14. package/plugins/copilot-pbr/references/pbr-tools-cli.md +285 -0
  15. package/plugins/copilot-pbr/references/ui-formatting.md +38 -56
  16. package/plugins/copilot-pbr/skills/begin/SKILL.md +30 -7
  17. package/plugins/copilot-pbr/skills/build/SKILL.md +28 -31
  18. package/plugins/copilot-pbr/skills/config/SKILL.md +9 -12
  19. package/plugins/copilot-pbr/skills/continue/SKILL.md +6 -6
  20. package/plugins/copilot-pbr/skills/dashboard/SKILL.md +12 -0
  21. package/plugins/copilot-pbr/skills/debug/SKILL.md +23 -26
  22. package/plugins/copilot-pbr/skills/discuss/SKILL.md +20 -10
  23. package/plugins/copilot-pbr/skills/do/SKILL.md +3 -3
  24. package/plugins/copilot-pbr/skills/explore/SKILL.md +11 -14
  25. package/plugins/copilot-pbr/skills/health/SKILL.md +75 -19
  26. package/plugins/copilot-pbr/skills/help/SKILL.md +6 -6
  27. package/plugins/copilot-pbr/skills/import/SKILL.md +22 -18
  28. package/plugins/copilot-pbr/skills/milestone/SKILL.md +90 -48
  29. package/plugins/copilot-pbr/skills/note/SKILL.md +3 -3
  30. package/plugins/copilot-pbr/skills/pause/SKILL.md +11 -10
  31. package/plugins/copilot-pbr/skills/plan/SKILL.md +22 -9
  32. package/plugins/copilot-pbr/skills/plan/templates/planner-prompt.md.tmpl +1 -1
  33. package/plugins/copilot-pbr/skills/quick/SKILL.md +9 -12
  34. package/plugins/copilot-pbr/skills/resume/SKILL.md +9 -9
  35. package/plugins/copilot-pbr/skills/review/SKILL.md +17 -12
  36. package/plugins/copilot-pbr/skills/scan/SKILL.md +9 -11
  37. package/plugins/copilot-pbr/skills/setup/SKILL.md +54 -8
  38. package/plugins/copilot-pbr/skills/shared/error-reporting.md +2 -1
  39. package/plugins/copilot-pbr/skills/shared/progress-display.md +0 -1
  40. package/plugins/copilot-pbr/skills/shared/universal-anti-patterns.md +10 -6
  41. package/plugins/copilot-pbr/skills/status/SKILL.md +3 -3
  42. package/plugins/copilot-pbr/skills/statusline/SKILL.md +12 -8
  43. package/plugins/copilot-pbr/skills/todo/SKILL.md +51 -28
  44. package/plugins/cursor-pbr/.cursor-plugin/plugin.json +1 -1
  45. package/plugins/cursor-pbr/agents/codebase-mapper.md +42 -0
  46. package/plugins/cursor-pbr/agents/debugger.md +4 -1
  47. package/plugins/cursor-pbr/agents/executor.md +31 -1
  48. package/plugins/cursor-pbr/agents/integration-checker.md +33 -2
  49. package/plugins/cursor-pbr/agents/planner.md +58 -1
  50. package/plugins/cursor-pbr/agents/researcher.md +23 -0
  51. package/plugins/cursor-pbr/agents/synthesizer.md +24 -0
  52. package/plugins/cursor-pbr/agents/verifier.md +35 -1
  53. package/plugins/cursor-pbr/references/agent-contracts.md +297 -0
  54. package/plugins/cursor-pbr/references/pbr-rules.md +1 -0
  55. package/plugins/cursor-pbr/references/pbr-tools-cli.md +285 -0
  56. package/plugins/cursor-pbr/references/ui-formatting.md +38 -56
  57. package/plugins/cursor-pbr/skills/begin/SKILL.md +30 -7
  58. package/plugins/cursor-pbr/skills/build/SKILL.md +28 -31
  59. package/plugins/cursor-pbr/skills/config/SKILL.md +9 -10
  60. package/plugins/cursor-pbr/skills/continue/SKILL.md +6 -6
  61. package/plugins/cursor-pbr/skills/dashboard/SKILL.md +12 -0
  62. package/plugins/cursor-pbr/skills/debug/SKILL.md +23 -23
  63. package/plugins/cursor-pbr/skills/discuss/SKILL.md +20 -10
  64. package/plugins/cursor-pbr/skills/do/SKILL.md +3 -3
  65. package/plugins/cursor-pbr/skills/explore/SKILL.md +11 -12
  66. package/plugins/cursor-pbr/skills/health/SKILL.md +75 -19
  67. package/plugins/cursor-pbr/skills/help/SKILL.md +6 -6
  68. package/plugins/cursor-pbr/skills/import/SKILL.md +22 -16
  69. package/plugins/cursor-pbr/skills/milestone/SKILL.md +90 -48
  70. package/plugins/cursor-pbr/skills/note/SKILL.md +3 -3
  71. package/plugins/cursor-pbr/skills/pause/SKILL.md +11 -9
  72. package/plugins/cursor-pbr/skills/plan/SKILL.md +22 -9
  73. package/plugins/cursor-pbr/skills/plan/templates/planner-prompt.md.tmpl +1 -1
  74. package/plugins/cursor-pbr/skills/quick/SKILL.md +9 -12
  75. package/plugins/cursor-pbr/skills/resume/SKILL.md +9 -9
  76. package/plugins/cursor-pbr/skills/review/SKILL.md +17 -12
  77. package/plugins/cursor-pbr/skills/scan/SKILL.md +9 -10
  78. package/plugins/cursor-pbr/skills/setup/SKILL.md +54 -8
  79. package/plugins/cursor-pbr/skills/shared/error-reporting.md +2 -1
  80. package/plugins/cursor-pbr/skills/shared/progress-display.md +0 -1
  81. package/plugins/cursor-pbr/skills/shared/universal-anti-patterns.md +10 -6
  82. package/plugins/cursor-pbr/skills/status/SKILL.md +3 -3
  83. package/plugins/cursor-pbr/skills/statusline/SKILL.md +12 -8
  84. package/plugins/cursor-pbr/skills/todo/SKILL.md +51 -28
  85. package/plugins/pbr/.claude-plugin/plugin.json +1 -1
  86. package/plugins/pbr/agents/codebase-mapper.md +42 -0
  87. package/plugins/pbr/agents/debugger.md +4 -1
  88. package/plugins/pbr/agents/executor.md +31 -1
  89. package/plugins/pbr/agents/integration-checker.md +34 -2
  90. package/plugins/pbr/agents/planner.md +58 -1
  91. package/plugins/pbr/agents/researcher.md +23 -0
  92. package/plugins/pbr/agents/synthesizer.md +24 -0
  93. package/plugins/pbr/agents/verifier.md +36 -1
  94. package/plugins/pbr/references/agent-contracts.md +297 -0
  95. package/plugins/pbr/references/pbr-rules.md +1 -0
  96. package/plugins/pbr/references/pbr-tools-cli.md +285 -0
  97. package/plugins/pbr/references/ui-formatting.md +37 -54
  98. package/plugins/pbr/scripts/check-skill-workflow.js +11 -0
  99. package/plugins/pbr/scripts/check-state-sync.js +58 -0
  100. package/plugins/pbr/scripts/check-subagent-output.js +43 -4
  101. package/plugins/pbr/scripts/validate-task.js +69 -17
  102. package/plugins/pbr/skills/begin/SKILL.md +36 -11
  103. package/plugins/pbr/skills/build/SKILL.md +37 -25
  104. package/plugins/pbr/skills/config/SKILL.md +12 -10
  105. package/plugins/pbr/skills/continue/SKILL.md +11 -9
  106. package/plugins/pbr/skills/dashboard/SKILL.md +12 -0
  107. package/plugins/pbr/skills/debug/SKILL.md +29 -23
  108. package/plugins/pbr/skills/discuss/SKILL.md +20 -10
  109. package/plugins/pbr/skills/do/SKILL.md +3 -3
  110. package/plugins/pbr/skills/explore/SKILL.md +14 -12
  111. package/plugins/pbr/skills/health/SKILL.md +76 -20
  112. package/plugins/pbr/skills/help/SKILL.md +8 -6
  113. package/plugins/pbr/skills/import/SKILL.md +25 -16
  114. package/plugins/pbr/skills/milestone/SKILL.md +88 -45
  115. package/plugins/pbr/skills/note/SKILL.md +3 -3
  116. package/plugins/pbr/skills/pause/SKILL.md +13 -9
  117. package/plugins/pbr/skills/plan/SKILL.md +28 -13
  118. package/plugins/pbr/skills/plan/templates/planner-prompt.md.tmpl +1 -1
  119. package/plugins/pbr/skills/quick/SKILL.md +12 -10
  120. package/plugins/pbr/skills/resume/SKILL.md +11 -9
  121. package/plugins/pbr/skills/review/SKILL.md +35 -24
  122. package/plugins/pbr/skills/scan/SKILL.md +12 -10
  123. package/plugins/pbr/skills/setup/SKILL.md +53 -7
  124. package/plugins/pbr/skills/shared/error-reporting.md +2 -0
  125. package/plugins/pbr/skills/shared/universal-anti-patterns.md +10 -6
  126. package/plugins/pbr/skills/status/SKILL.md +8 -6
  127. package/plugins/pbr/skills/statusline/SKILL.md +12 -8
  128. package/plugins/pbr/skills/todo/SKILL.md +51 -28
package/CHANGELOG.md CHANGED
@@ -5,6 +5,50 @@ All notable changes to Plan-Build-Run will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [2.11.0](https://github.com/SienkLogic/plan-build-run/compare/plan-build-run-v2.10.0...plan-build-run-v2.11.0) (2026-02-21)
9
+
10
+
11
+ ### Features
12
+
13
+ * **06-01:** add .active-skill write and cleanup to begin, plan, review, import skills ([e16c0cb](https://github.com/SienkLogic/plan-build-run/commit/e16c0cbe73da7abd08008c56d918106e73a3535a))
14
+ * **06-02:** add CRITICAL markers to file-creation steps in begin, build, milestone, setup, pause ([edd9322](https://github.com/SienkLogic/plan-build-run/commit/edd932287bfeb390aa67aee0cb17b44c886339d2))
15
+ * **07-01:** add Write tool to verifier/integration-checker and update prose across all plugins ([20bcd55](https://github.com/SienkLogic/plan-build-run/commit/20bcd550cb3c01312c805c543e01e72a7dd8dd88))
16
+ * **07-01:** register missing skills in check-skill-workflow.js switch statement ([26c4264](https://github.com/SienkLogic/plan-build-run/commit/26c42640f199eae7de4570cb0fcb8fdab514cc64))
17
+ * **07-02:** add debugger advisory gate and milestone gaps_found status check ([d999fe0](https://github.com/SienkLogic/plan-build-run/commit/d999fe0cf65febf877c731d983edb49e1cfa3dc7))
18
+ * **07-02:** add mtime-based recency checks for researcher and synthesizer output ([4581529](https://github.com/SienkLogic/plan-build-run/commit/45815292c8e1604d2b5307092b2b2d6fdb3c2eec))
19
+ * **08-01:** add inline fallback formats to 7 template-dependent agents ([e383118](https://github.com/SienkLogic/plan-build-run/commit/e3831187a35e0bf2924f0e156971b530d71dada3))
20
+ * **08-02:** add CRITICAL markers and fix agent handoff issues ([a921c29](https://github.com/SienkLogic/plan-build-run/commit/a921c29005b232aa662ee7364f19154f103c827f))
21
+ * **09-01:** add gate error fix guidance and discuss deep-dive CRITICAL enforcement ([6257ac5](https://github.com/SienkLogic/plan-build-run/commit/6257ac5bb69c04078fc1fd845049900274e4079c))
22
+ * **09-01:** add health auto-fix for common corruption patterns ([6209e20](https://github.com/SienkLogic/plan-build-run/commit/6209e2012ec972ae351bd967cd1fa1087b767474))
23
+ * **09-01:** add rollback safety, setup idempotency, and todo archive safety ([8106793](https://github.com/SienkLogic/plan-build-run/commit/8106793c6dc728a58c8be6a5f1ccaffc9cef83a6))
24
+ * **09-02:** rewrite ui-formatting.md with unified double-line box format ([1030f30](https://github.com/SienkLogic/plan-build-run/commit/1030f3078d171f200d1d85a29481deb65f927875))
25
+ * **09-02:** update error-reporting fragment with block reason guidance ([55780b2](https://github.com/SienkLogic/plan-build-run/commit/55780b2b54725b8d503e0b46291c80fe5a92219b))
26
+ * **09-03:** replace heavy bar and thin divider banners with double-line box format in all 24 skills ([1754b2b](https://github.com/SienkLogic/plan-build-run/commit/1754b2bc8dbb625c48ef618036eef3bda06f6380))
27
+ * **09-03:** sync banner replacements and 09-01/09-02 changes to cursor-pbr and copilot-pbr ([4b01088](https://github.com/SienkLogic/plan-build-run/commit/4b010881e275b10ed8ebcace60e74535e66f8d49))
28
+ * **09-04:** replace Next Up headings with double-line box format in all PBR skills ([8f34dbc](https://github.com/SienkLogic/plan-build-run/commit/8f34dbc157a67a353e3b4c977249aac667838f32))
29
+ * **09-04:** sync Next Up box format to cursor-pbr and copilot-pbr derivatives ([a819e95](https://github.com/SienkLogic/plan-build-run/commit/a819e952483fb348a8c64c27abe59f80590ad712))
30
+ * **tools:** add state-sync plans_total fix, anti-pattern rule for Skill-in-Task, and social images ([afdc5f2](https://github.com/SienkLogic/plan-build-run/commit/afdc5f2d10c9cae77e2382332e9243a238c1f54e))
31
+
32
+
33
+ ### Bug Fixes
34
+
35
+ * **06-03:** fix planner naming convention, executor timestamps, and statusline backup ([92c9b8d](https://github.com/SienkLogic/plan-build-run/commit/92c9b8d5fe95a2b339267206185daf38a125ad56))
36
+ * **tools:** resolve markdownlint errors in planner agent and milestone skill ([9ef8548](https://github.com/SienkLogic/plan-build-run/commit/9ef8548642cba021d9c917e612116aebe77cf570))
37
+ * **tools:** update AskUserQuestion audit to reflect health skill auto-fix gates ([e20bbe5](https://github.com/SienkLogic/plan-build-run/commit/e20bbe51a9f3ad2a7f2a8cd609abee52ef2ce942))
38
+
39
+
40
+ ### Documentation
41
+
42
+ * **08-03:** add agent-contracts.md reference documenting handoff schemas ([89a86cf](https://github.com/SienkLogic/plan-build-run/commit/89a86cf2c21635290f6d048d1b5ef045a686730d))
43
+ * **10-01:** wire agent-contracts.md into agents and document abandoned debug resolution ([f30762d](https://github.com/SienkLogic/plan-build-run/commit/f30762d62dbafd0f1705822a295c1eb2c6288017))
44
+
45
+ ## [2.10.0](https://github.com/SienkLogic/plan-build-run/compare/plan-build-run-v2.9.1...plan-build-run-v2.10.0) (2026-02-20)
46
+
47
+
48
+ ### Features
49
+
50
+ * **tools:** add post-compaction recovery, pbr-tools CLI reference, and dashboard UI banner ([84291f2](https://github.com/SienkLogic/plan-build-run/commit/84291f2ff0f9646eea96c02fd50073b8dd17487d))
51
+
8
52
  ## [2.9.1](https://github.com/SienkLogic/plan-build-run/compare/plan-build-run-v2.9.0...plan-build-run-v2.9.1) (2026-02-20)
9
53
 
10
54
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sienklogic/plan-build-run",
3
- "version": "2.9.1",
3
+ "version": "2.11.0",
4
4
  "description": "Plan it, Build it, Run it — structured development workflow for Claude Code",
5
5
  "keywords": [
6
6
  "claude-code",
@@ -46,6 +46,48 @@ You receive ONE focus area per invocation. All output is written to `.planning/c
46
46
 
47
47
  Read the relevant `.tmpl` file(s) and fill in all placeholder fields with data from your analysis.
48
48
 
49
+ ### Fallback Format (if templates unreadable)
50
+
51
+ If the template files cannot be read, use these minimum viable structures:
52
+
53
+ **STACK.md:**
54
+ ```markdown
55
+ ## Tech Stack
56
+ | Category | Technology | Version | Config File |
57
+ |----------|-----------|---------|-------------|
58
+ ## Package Manager
59
+ {name} — lock file: {path}
60
+ ```
61
+
62
+ **ARCHITECTURE.md:**
63
+ ```markdown
64
+ ## Architecture Overview
65
+ **Pattern:** {pattern name}
66
+ ## Key Components
67
+ | Component | Path | Responsibility |
68
+ |-----------|------|---------------|
69
+ ## Data Flow
70
+ {entry point} -> {processing} -> {output}
71
+ ```
72
+
73
+ **CONVENTIONS.md:**
74
+ ```markdown
75
+ ## Code Conventions
76
+ | Convention | Pattern | Example File |
77
+ |-----------|---------|-------------|
78
+ ## Naming Patterns
79
+ {description with file path evidence}
80
+ ```
81
+
82
+ **CONCERNS.md:**
83
+ ```markdown
84
+ ## Concerns
85
+ | Severity | Area | Description | File |
86
+ |----------|------|-------------|------|
87
+ ## Security Considerations
88
+ {findings}
89
+ ```
90
+
49
91
  ---
50
92
 
51
93
  ## Exploration Process
@@ -39,7 +39,8 @@ You are **debugger**, the systematic debugging agent. Investigate bugs using the
39
39
  ```yaml
40
40
  ---
41
41
  slug: "{slug}"
42
- status: "gathering" # gathering → investigating → fixing → verifying → resolved
42
+ status: "gathering" # gathering → investigating → fixing → verifying → resolved (resolution: fixed | abandoned)
43
+ # resolution: "fixed" or "abandoned" (set when status = resolved; abandoned = user ended without fix)
43
44
  created: "{ISO}"
44
45
  updated: "{ISO}"
45
46
  mode: "find_and_fix"
@@ -116,6 +117,8 @@ When you need human input, emit a checkpoint block. Always include `Debug file:`
116
117
 
117
118
  ## Fixing Protocol
118
119
 
120
+ **CRITICAL — DO NOT SKIP steps 5-8. Uncommitted fixes and unupdated debug files cause state corruption on resume.**
121
+
119
122
  **Steps**: Verify root cause → plan minimal fix → predict outcome → implement → verify → check regressions → commit → update debug file.
120
123
 
121
124
  **Guidelines**: Minimal change (root cause, not symptoms). One atomic commit. No refactoring or features. Test the fix.
@@ -29,6 +29,7 @@ You are **executor**, the code execution agent for Plan-Build-Run. You receive v
29
29
  e. If verify fails: apply deviation rules
30
30
  f. If checkpoint: STOP and return
31
31
  g. Update .PROGRESS-{plan_id} file (task number, commit SHA, timestamp)
32
+ ** CRITICAL — DO NOT SKIP STEPS 6-9. The SUMMARY.md artifact is REQUIRED for phase verification. Returning without it causes downstream failures. **
32
33
  6. Create SUMMARY.md
33
34
  7. Validate SUMMARY.md completeness
34
35
  8. Delete .PROGRESS-{plan_id} file (normal completion)
@@ -144,6 +145,33 @@ After all tasks (or at checkpoint), create `.planning/phases/{phase_dir}/SUMMARY
144
145
 
145
146
  Read `templates/SUMMARY.md.tmpl` for full structure. Status values: `complete`, `partial`, `checkpoint`.
146
147
 
148
+ ### Fallback Format (if template unreadable)
149
+
150
+ If the template file cannot be read, use this minimum viable structure:
151
+
152
+ ```yaml
153
+ ---
154
+ plan: "{plan_id}"
155
+ status: complete|partial|checkpoint
156
+ commits: ["{sha1}", "{sha2}"]
157
+ provides: ["exported item 1"]
158
+ must_haves:
159
+ - "{must-have}: DONE|PARTIAL|SKIPPED"
160
+ ---
161
+ ```
162
+
163
+ ```markdown
164
+ ## Task Results
165
+
166
+ | Task | Status | Notes |
167
+ |------|--------|-------|
168
+ | T1 | done | ... |
169
+
170
+ ## Deviations
171
+
172
+ (list any deviations from plan, or "None")
173
+ ```
174
+
147
175
  ### Completeness Checklist
148
176
 
149
177
  Before deleting `.PROGRESS-{plan_id}`, verify SUMMARY.md has:
@@ -164,6 +192,8 @@ If the plan introduced external setup requirements (env vars, API keys, system d
164
192
 
165
193
  ## Self-Check
166
194
 
195
+ **CRITICAL — Run the self-check. Skipping it means undetected failures reach the verifier.**
196
+
167
197
  After SUMMARY.md, before returning:
168
198
  1. `ls -la {path}` for each `key_files` entry
169
199
  2. `git log --oneline -n {expected_count}` — verify commit count
@@ -175,7 +205,7 @@ If ANY fails: set status to `partial`, add `self_check_failures` to frontmatter.
175
205
 
176
206
  ## Time Tracking
177
207
 
178
- Record `date +%s` at start and end. Write to SUMMARY.md frontmatter as `metrics.duration_minutes`, `metrics.start_time`, `metrics.end_time`.
208
+ Record timestamps at start and end using `node -e "console.log(new Date().toISOString())"`. To compute duration: `node -e "const s=new Date('START').getTime(),e=new Date('END').getTime(); console.log(((e-s)/60000).toFixed(1))"` (replacing START and END with the recorded ISO strings). Write to SUMMARY.md frontmatter as `metrics.duration_minutes`, `metrics.start_time`, `metrics.end_time`.
179
209
 
180
210
  ---
181
211
 
@@ -36,9 +36,13 @@ You MUST perform all applicable categories (skip only if zero items exist for th
36
36
  4. **E2E Flow Completeness** — Critical user workflows must trace from UI through API to data layer and back without breaks.
37
37
  5. **Cross-Phase Dependency Satisfaction** — Phase N's declared dependencies on Phase M must be actually satisfied in code.
38
38
 
39
+ ### Agent Contract Compliance
40
+
41
+ Read `references/agent-contracts.md` to validate agent-to-agent handoffs. Verify that each agent's actual output matches its declared contract schema — especially `provides`/`consumes` fields in SUMMARY.md and status enums in VERIFICATION.md.
42
+
39
43
  ## Critical Constraints
40
44
 
41
- - **Read-only agent** — you have NO Write or Edit tools. Report problems; other agents fix them.
45
+ - **Write access for output artifact only** — you have Write access for your output artifact only. You CANNOT fix source code — you REPORT issues.
42
46
  - **Cross-phase scope** — unlike verifier (single phase), you check across phases.
43
47
 
44
48
  ## 6-Step Verification Process
@@ -54,6 +58,33 @@ You MUST perform all applicable categories (skip only if zero items exist for th
54
58
 
55
59
  Read `templates/INTEGRATION-REPORT.md.tmpl` (relative to `plugins/pbr/`). Keep output concise: one row per check, evidence column brief. INTEGRATION-REPORT.md target 1,500 tokens (hard limit 2,500). Omit empty sections. Console output: score + critical issue count only.
56
60
 
61
+ ### Fallback Format (if template unreadable)
62
+
63
+ If the template file cannot be read, use this minimum viable structure:
64
+
65
+ ```yaml
66
+ ---
67
+ status: passed|issues_found
68
+ checks_total: N
69
+ checks_passed: M
70
+ critical_issues: K
71
+ ---
72
+ ```
73
+
74
+ ```markdown
75
+ ## Integration Checks
76
+
77
+ | Check | Status | Evidence |
78
+ |-------|--------|----------|
79
+
80
+ ## E2E Flows
81
+
82
+ | Flow | Status | Broken Link |
83
+ |------|--------|-------------|
84
+
85
+ ## Critical Issues
86
+ ```
87
+
57
88
  ## When This Agent Is Spawned
58
89
 
59
90
  - **Milestone Audit** (`/pbr:milestone audit`): Full check across ALL completed phases.
@@ -81,7 +112,7 @@ See `references/integration-patterns.md` for grep/search patterns by framework.
81
112
  12. DO NOT read agent .md files from agents/ — auto-loaded via subagent_type
82
113
 
83
114
  ### Agent-Specific
84
- - Never attempt to fix issues — you are read-only
115
+ - Never attempt to fix issues — you REPORT them
85
116
  - Imports are not usage — verify symbols are actually called
86
117
  - "File exists" is not "component is integrated"
87
118
  - Auth middleware existing somewhere does not mean routes are protected
@@ -21,7 +21,7 @@ You are **planner**, the planning agent for the Plan-Build-Run development syste
21
21
  ## Operating Modes
22
22
 
23
23
  ### Mode 1: Standard Planning
24
- Invoked with a phase goal, research, and/or planning request. Produce executable plan files at `.planning/phases/{NN}-{phase-name}/{phase}-{NN}-PLAN.md`.
24
+ Invoked with a phase goal, research, and/or planning request. Produce executable plan files at `.planning/phases/{NN}-{phase-name}/PLAN-{NN}.md`.
25
25
 
26
26
  ### Mode 2: Gap Closure Planning
27
27
  Invoked with a VERIFICATION.md containing gaps. Read the report, identify gaps, produce targeted plans to close them. See Gap Closure Mode below.
@@ -32,6 +32,22 @@ Invoked with plan-checker feedback containing issues. Revise flagged plan(s) to
32
32
  ### Mode 4: Roadmap Mode
33
33
  Invoked with a request to create/update the project roadmap. Produce `.planning/ROADMAP.md` using the template at `${CLAUDE_PLUGIN_ROOT}/templates/ROADMAP.md.tmpl`.
34
34
 
35
+ #### Fallback Format: ROADMAP.md (if template unreadable)
36
+
37
+ ```markdown
38
+ # Roadmap
39
+
40
+ ## Milestone: {project} v1.0
41
+ **Goal:** {one-line milestone goal}
42
+ **Phases:** 1 - {N}
43
+
44
+ ### Phase 01: {name}
45
+ **Goal:** {goal}
46
+ **Discovery:** {level}
47
+ **Provides:** {list}
48
+ **Depends on:** {list}
49
+ ```
50
+
35
51
  ---
36
52
 
37
53
  ## Goal-Backward Methodology
@@ -56,6 +72,39 @@ Read `references/plan-format.md` for the complete plan file specification includ
56
72
  - Task type variants (auto, tdd, checkpoint:human-verify, checkpoint:decision, checkpoint:human-action)
57
73
  - Task ID format
58
74
 
75
+ ### Fallback Format: PLAN.md (if template/reference unreadable)
76
+
77
+ ```yaml
78
+ ---
79
+ phase: "{phase-slug}"
80
+ plan: "{NN-MM}"
81
+ wave: {N}
82
+ depends_on: []
83
+ files_modified: ["{path}"]
84
+ must_haves:
85
+ truths: ["{truth}"]
86
+ artifacts: ["{artifact}"]
87
+ key_links: ["{link}"]
88
+ provides: ["{item}"]
89
+ consumes: ["{item}"]
90
+ ---
91
+ ```
92
+
93
+ ```xml
94
+ <task id="{plan}-T1" type="auto" tdd="false" complexity="medium">
95
+ <name>{task name}</name>
96
+ <files>...</files>
97
+ <action>...</action>
98
+ <verify>...</verify>
99
+ <done>...</done>
100
+ </task>
101
+ ```
102
+
103
+ ```markdown
104
+ ## Summary
105
+ ...
106
+ ```
107
+
59
108
  The task opening tag format is:
60
109
  ```xml
61
110
  <task id="{plan_id}-T{n}" type="{type}" tdd="{true|false}" complexity="{simple|medium|complex}">
@@ -94,11 +143,19 @@ Two plans CONFLICT if their `files_modified` lists overlap. Conflicting plans MU
94
143
  ## Planning Process
95
144
 
96
145
  1. **Load Context**: Read CONTEXT.md (locked decisions + deferred ideas), phase goal, and any research documents.
146
+
147
+ ### Handling [NEEDS DECISION] Items
148
+ When CONTEXT.md or RESEARCH-SUMMARY.md contains `[NEEDS DECISION]` flags from the synthesizer:
149
+ - If the decision affects plan structure: create a `checkpoint:decision` task asking the user to decide
150
+ - If the decision is within "Claude's Discretion" scope: make the call and document it in the plan's frontmatter under a `decisions` key
151
+ - If the decision is out of scope for this phase: ignore it (do not plan for it)
97
152
  2. **Derive Must-Haves**: Apply goal-backward methodology — state the phase goal as a user-observable outcome, derive truths, artifacts, and key links.
98
153
  3. **Break Down Tasks**: For each must-have, determine code changes, files involved, verification method, and observable done condition. Group related work into tasks (2-3 per plan).
99
154
  4. **Assign Waves and Dependencies**: Identify independent tasks (Wave 1), map dependencies, assign wave numbers, check for circular deps and file conflicts within same wave.
100
155
  5. **Write Plan Files**: Complete YAML frontmatter (include `requirement_ids` from REQUIREMENTS.md or ROADMAP.md goal IDs for traceability), XML tasks with all 5 elements, clear action instructions, executable verify commands, observable done conditions. Append a `## Summary` section per `references/plan-format.md` (under 500 tokens): plan ID, numbered task list, key files, must-haves, provides/consumes.
101
156
  6. **Self-Check** before writing:
157
+
158
+ **CRITICAL — Run the self-check. Plans missing must-have coverage or incomplete tasks cause executor failures.**
102
159
  - [ ] All must-haves covered by at least one task
103
160
  - [ ] All tasks have all 5 elements
104
161
  - [ ] No task exceeds 3 files (ideally)
@@ -112,6 +112,29 @@ Key sections: User Constraints, Phase Goal, Implementation Approach, Dependencie
112
112
  Read `${CLAUDE_PLUGIN_ROOT}/templates/research-outputs/synthesis.md.tmpl` for format.
113
113
  Key sections: Executive Summary, Key Findings, Contradictions Resolved, Recommended Approach, Risks and Mitigations, Sources.
114
114
 
115
+ ### Fallback Format (if templates unreadable)
116
+
117
+ If the template files cannot be read, use this minimum viable structure:
118
+
119
+ ```yaml
120
+ ---
121
+ confidence: high|medium|low
122
+ sources_checked: N
123
+ coverage: "complete|partial|minimal"
124
+ ---
125
+ ```
126
+
127
+ ```markdown
128
+ ## Key Findings
129
+ 1. {finding with evidence}
130
+
131
+ ## Gaps
132
+ - {area not covered and why}
133
+
134
+ ## Sources
135
+ - {source}: {what it provided}
136
+ ```
137
+
115
138
  ---
116
139
 
117
140
  ## Context and Output Budget
@@ -58,6 +58,30 @@ Read `${CLAUDE_PLUGIN_ROOT}/templates/RESEARCH-SUMMARY.md.tmpl` for the complete
58
58
 
59
59
  Key sections: Executive Summary (3-5 sentences), Recommended Stack (table), Architecture Recommendations, Key Patterns, Pitfalls & Warnings, Contradictions Resolved, Open Questions, Sources.
60
60
 
61
+ ### Fallback Format (if template unreadable)
62
+
63
+ If the template file cannot be read, use this minimum viable structure:
64
+
65
+ ```yaml
66
+ ---
67
+ confidence: high|medium|low
68
+ sources: N
69
+ conflicts: N
70
+ ---
71
+ ```
72
+
73
+ ```markdown
74
+ ## Resolved Decisions
75
+
76
+ | Topic | Decision | Confidence | Sources |
77
+ |-------|----------|------------|---------|
78
+
79
+ ## Open Questions
80
+ - [NEEDS DECISION] {topic}: {option A} vs {option B}
81
+
82
+ ## Deferred Ideas
83
+ ```
84
+
61
85
  ## Quality Standards
62
86
 
63
87
  - SUMMARY.md must be **under 200 lines** — use tables over prose, one sentence per bullet max
@@ -18,7 +18,7 @@ You are **verifier**, the phase verification agent for the Plan-Build-Run develo
18
18
 
19
19
  ### Read-Only Agent
20
20
 
21
- You have **NO Write or Edit tools**. You CANNOT fix issues — you REPORT them. The planner creates gap-closure plans; the executor fixes them.
21
+ You have Write access for your output artifact only. You CANNOT fix source code — you REPORT issues. The planner creates gap-closure plans; the executor fixes them.
22
22
 
23
23
  ### Evidence-Based Verification
24
24
 
@@ -26,6 +26,10 @@ Every claim must be backed by evidence. "I checked and it exists" is not evidenc
26
26
 
27
27
  ---
28
28
 
29
+ ### Agent Contract Validation
30
+
31
+ When validating SUMMARY.md and VERIFICATION.md outputs, read `references/agent-contracts.md` to confirm output schemas match their contract definitions. Check required fields, format constraints, and status enums.
32
+
29
33
  ## The 10-Step Verification Process
30
34
 
31
35
  ### Step 1: Check Previous Verification (Always)
@@ -129,8 +133,38 @@ List items that cannot be verified programmatically (visual/UI, UX flows, third-
129
133
 
130
134
  ## Output Format
131
135
 
136
+ **CRITICAL — DO NOT SKIP. You MUST write VERIFICATION.md before returning. Without it, the review skill cannot complete and the phase is stuck.**
137
+
132
138
  Write to `.planning/phases/{phase_dir}/VERIFICATION.md`. Read the template from `templates/VERIFICATION-DETAIL.md.tmpl` (relative to `plugins/pbr/`). The template defines: YAML frontmatter (status, scores, gaps), verification tables (truths, artifacts, key links), gap details, human verification items, anti-pattern scan, regressions (re-verification only), and summary.
133
139
 
140
+ ### Fallback Format (if template unreadable)
141
+
142
+ If the template file cannot be read, use this minimum viable structure:
143
+
144
+ ```yaml
145
+ ---
146
+ status: passed|gaps_found
147
+ attempt: 1
148
+ must_haves_total: N
149
+ must_haves_passed: M
150
+ gaps: ["gap description"]
151
+ overrides: []
152
+ ---
153
+ ```
154
+
155
+ ```markdown
156
+ ## Must-Have Verification
157
+
158
+ | # | Must-Have | Status | Evidence |
159
+ |---|----------|--------|----------|
160
+
161
+ ## Gaps (if any)
162
+
163
+ ### Gap 1: {description}
164
+ **Evidence**: ...
165
+ **Suggested fix**: ...
166
+ ```
167
+
134
168
  ---
135
169
 
136
170
  ## Re-Verification Mode
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pbr",
3
3
  "displayName": "Plan-Build-Run",
4
- "version": "2.9.1",
4
+ "version": "2.11.0",
5
5
  "description": "Plan-Build-Run — Structured development workflow for GitHub Copilot CLI. Solves context rot through disciplined agent delegation, structured planning, atomic execution, and goal-backward verification.",
6
6
  "author": {
7
7
  "name": "SienkLogic",