@sienklogic/plan-build-run 2.54.0 → 2.55.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 +12 -0
- package/package.json +1 -1
- package/plugins/codex-pbr/agents/audit.md +223 -0
- package/plugins/codex-pbr/agents/codebase-mapper.md +196 -0
- package/plugins/codex-pbr/agents/debugger.md +245 -0
- package/plugins/codex-pbr/agents/dev-sync.md +142 -0
- package/plugins/codex-pbr/agents/executor.md +429 -0
- package/plugins/codex-pbr/agents/general.md +131 -0
- package/plugins/codex-pbr/agents/integration-checker.md +178 -0
- package/plugins/codex-pbr/agents/plan-checker.md +253 -0
- package/plugins/codex-pbr/agents/planner.md +343 -0
- package/plugins/codex-pbr/agents/researcher.md +253 -0
- package/plugins/codex-pbr/agents/synthesizer.md +183 -0
- package/plugins/codex-pbr/agents/verifier.md +352 -0
- package/plugins/codex-pbr/commands/audit.md +5 -0
- package/plugins/codex-pbr/commands/begin.md +5 -0
- package/plugins/codex-pbr/commands/build.md +5 -0
- package/plugins/codex-pbr/commands/config.md +5 -0
- package/plugins/codex-pbr/commands/continue.md +5 -0
- package/plugins/codex-pbr/commands/dashboard.md +5 -0
- package/plugins/codex-pbr/commands/debug.md +5 -0
- package/plugins/codex-pbr/commands/discuss.md +5 -0
- package/plugins/codex-pbr/commands/do.md +5 -0
- package/plugins/codex-pbr/commands/explore.md +5 -0
- package/plugins/codex-pbr/commands/health.md +5 -0
- package/plugins/codex-pbr/commands/help.md +5 -0
- package/plugins/codex-pbr/commands/import.md +5 -0
- package/plugins/codex-pbr/commands/milestone.md +5 -0
- package/plugins/codex-pbr/commands/note.md +5 -0
- package/plugins/codex-pbr/commands/pause.md +5 -0
- package/plugins/codex-pbr/commands/plan.md +5 -0
- package/plugins/codex-pbr/commands/quick.md +5 -0
- package/plugins/codex-pbr/commands/resume.md +5 -0
- package/plugins/codex-pbr/commands/review.md +5 -0
- package/plugins/codex-pbr/commands/scan.md +5 -0
- package/plugins/codex-pbr/commands/setup.md +5 -0
- package/plugins/codex-pbr/commands/status.md +5 -0
- package/plugins/codex-pbr/commands/statusline.md +5 -0
- package/plugins/codex-pbr/commands/test.md +5 -0
- package/plugins/codex-pbr/commands/todo.md +5 -0
- package/plugins/codex-pbr/commands/undo.md +5 -0
- package/plugins/codex-pbr/references/agent-contracts.md +324 -0
- package/plugins/codex-pbr/references/agent-teams.md +54 -0
- package/plugins/codex-pbr/references/common-bug-patterns.md +13 -0
- package/plugins/codex-pbr/references/config-reference.md +552 -0
- package/plugins/codex-pbr/references/continuation-format.md +212 -0
- package/plugins/codex-pbr/references/deviation-rules.md +112 -0
- package/plugins/codex-pbr/references/git-integration.md +256 -0
- package/plugins/codex-pbr/references/integration-patterns.md +117 -0
- package/plugins/codex-pbr/references/model-profiles.md +99 -0
- package/plugins/codex-pbr/references/model-selection.md +31 -0
- package/plugins/codex-pbr/references/pbr-tools-cli.md +400 -0
- package/plugins/codex-pbr/references/plan-authoring.md +246 -0
- package/plugins/codex-pbr/references/plan-format.md +313 -0
- package/plugins/codex-pbr/references/questioning.md +235 -0
- package/plugins/codex-pbr/references/reading-verification.md +127 -0
- package/plugins/codex-pbr/references/signal-files.md +41 -0
- package/plugins/codex-pbr/references/stub-patterns.md +160 -0
- package/plugins/codex-pbr/references/ui-formatting.md +444 -0
- package/plugins/codex-pbr/references/wave-execution.md +95 -0
- package/plugins/codex-pbr/skills/audit/SKILL.md +346 -0
- package/plugins/codex-pbr/skills/begin/SKILL.md +800 -0
- package/plugins/codex-pbr/skills/build/SKILL.md +958 -0
- package/plugins/codex-pbr/skills/config/SKILL.md +267 -0
- package/plugins/codex-pbr/skills/continue/SKILL.md +172 -0
- package/plugins/codex-pbr/skills/dashboard/SKILL.md +44 -0
- package/plugins/codex-pbr/skills/debug/SKILL.md +530 -0
- package/plugins/codex-pbr/skills/discuss/SKILL.md +355 -0
- package/plugins/codex-pbr/skills/do/SKILL.md +68 -0
- package/plugins/codex-pbr/skills/explore/SKILL.md +407 -0
- package/plugins/codex-pbr/skills/health/SKILL.md +300 -0
- package/plugins/codex-pbr/skills/help/SKILL.md +229 -0
- package/plugins/codex-pbr/skills/import/SKILL.md +538 -0
- package/plugins/codex-pbr/skills/milestone/SKILL.md +620 -0
- package/plugins/codex-pbr/skills/note/SKILL.md +215 -0
- package/plugins/codex-pbr/skills/pause/SKILL.md +258 -0
- package/plugins/codex-pbr/skills/plan/SKILL.md +650 -0
- package/plugins/codex-pbr/skills/quick/SKILL.md +417 -0
- package/plugins/codex-pbr/skills/resume/SKILL.md +403 -0
- package/plugins/codex-pbr/skills/review/SKILL.md +669 -0
- package/plugins/codex-pbr/skills/scan/SKILL.md +325 -0
- package/plugins/codex-pbr/skills/setup/SKILL.md +169 -0
- package/plugins/codex-pbr/skills/shared/commit-planning-docs.md +35 -0
- package/plugins/codex-pbr/skills/shared/config-loading.md +102 -0
- package/plugins/codex-pbr/skills/shared/context-budget.md +77 -0
- package/plugins/codex-pbr/skills/shared/context-loader-task.md +86 -0
- package/plugins/codex-pbr/skills/shared/digest-select.md +79 -0
- package/plugins/codex-pbr/skills/shared/domain-probes.md +125 -0
- package/plugins/codex-pbr/skills/shared/error-reporting.md +59 -0
- package/plugins/codex-pbr/skills/shared/gate-prompts.md +388 -0
- package/plugins/codex-pbr/skills/shared/phase-argument-parsing.md +45 -0
- package/plugins/codex-pbr/skills/shared/revision-loop.md +81 -0
- package/plugins/codex-pbr/skills/shared/state-update.md +169 -0
- package/plugins/codex-pbr/skills/shared/universal-anti-patterns.md +43 -0
- package/plugins/codex-pbr/skills/status/SKILL.md +449 -0
- package/plugins/codex-pbr/skills/statusline/SKILL.md +149 -0
- package/plugins/codex-pbr/skills/test/SKILL.md +210 -0
- package/plugins/codex-pbr/skills/todo/SKILL.md +281 -0
- package/plugins/codex-pbr/skills/undo/SKILL.md +172 -0
- package/plugins/codex-pbr/templates/CONTEXT.md.tmpl +52 -0
- package/plugins/codex-pbr/templates/INTEGRATION-REPORT.md.tmpl +167 -0
- package/plugins/codex-pbr/templates/RESEARCH-SUMMARY.md.tmpl +97 -0
- package/plugins/codex-pbr/templates/ROADMAP.md.tmpl +47 -0
- package/plugins/codex-pbr/templates/SUMMARY-complex.md.tmpl +95 -0
- package/plugins/codex-pbr/templates/SUMMARY-minimal.md.tmpl +48 -0
- package/plugins/codex-pbr/templates/SUMMARY.md.tmpl +81 -0
- package/plugins/codex-pbr/templates/VERIFICATION-DETAIL.md.tmpl +117 -0
- package/plugins/codex-pbr/templates/codebase/ARCHITECTURE.md.tmpl +98 -0
- package/plugins/codex-pbr/templates/codebase/CONCERNS.md.tmpl +93 -0
- package/plugins/codex-pbr/templates/codebase/CONVENTIONS.md.tmpl +104 -0
- package/plugins/codex-pbr/templates/codebase/INTEGRATIONS.md.tmpl +78 -0
- package/plugins/codex-pbr/templates/codebase/STACK.md.tmpl +78 -0
- package/plugins/codex-pbr/templates/codebase/STRUCTURE.md.tmpl +80 -0
- package/plugins/codex-pbr/templates/codebase/TESTING.md.tmpl +107 -0
- package/plugins/codex-pbr/templates/continue-here.md.tmpl +73 -0
- package/plugins/codex-pbr/templates/pr-body.md.tmpl +22 -0
- package/plugins/codex-pbr/templates/prompt-partials/phase-project-context.md.tmpl +37 -0
- package/plugins/codex-pbr/templates/research/ARCHITECTURE.md.tmpl +124 -0
- package/plugins/codex-pbr/templates/research/STACK.md.tmpl +71 -0
- package/plugins/codex-pbr/templates/research/SUMMARY.md.tmpl +112 -0
- package/plugins/codex-pbr/templates/research-outputs/phase-research.md.tmpl +81 -0
- package/plugins/codex-pbr/templates/research-outputs/project-research.md.tmpl +99 -0
- package/plugins/codex-pbr/templates/research-outputs/synthesis.md.tmpl +36 -0
- package/plugins/copilot-pbr/plugin.json +1 -1
- package/plugins/cursor-pbr/.cursor-plugin/plugin.json +1 -1
- package/plugins/jules-pbr/AGENTS.md +600 -0
- package/plugins/pbr/.claude-plugin/plugin.json +1 -1
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
# Agent Contracts
|
|
2
|
+
|
|
3
|
+
Input/output schemas for agent-to-agent handoffs in Plan-Build-Run.
|
|
4
|
+
|
|
5
|
+
Each contract defines: the file exchanged, required frontmatter fields, body structure, and special handling notes. Agents MUST produce output matching these schemas — consumers depend on them.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Contract: Researcher -> Synthesizer
|
|
10
|
+
|
|
11
|
+
**File**: `.planning/research/{topic-slug}.md` (project) or `.planning/phases/{NN}-{slug}/RESEARCH.md` (phase)
|
|
12
|
+
**Direction**: Researcher writes, Synthesizer reads 2-4 of these
|
|
13
|
+
|
|
14
|
+
### Required Frontmatter
|
|
15
|
+
|
|
16
|
+
```yaml
|
|
17
|
+
---
|
|
18
|
+
confidence: high|medium|low
|
|
19
|
+
sources_checked: N # integer count of sources consulted
|
|
20
|
+
coverage: "complete|partial|minimal"
|
|
21
|
+
---
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
### Required Body Sections
|
|
25
|
+
|
|
26
|
+
- `## Key Findings` — each finding tagged with source level (`[S1]`..`[S6]`) and confidence
|
|
27
|
+
- `## Gaps` — areas not covered and why
|
|
28
|
+
- `## Sources` — source list with what each provided
|
|
29
|
+
|
|
30
|
+
### Special Handling
|
|
31
|
+
|
|
32
|
+
- Every factual claim must have a source attribution tag
|
|
33
|
+
- Version-sensitive info (API signatures, config syntax) must come from S1-S3 sources
|
|
34
|
+
- `[SPECULATIVE]` tag marks unverified reasoning — synthesizer must not upgrade confidence
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## Contract: Synthesizer -> Planner
|
|
39
|
+
|
|
40
|
+
**File**: `.planning/research/SUMMARY.md` (or specified path)
|
|
41
|
+
**Direction**: Synthesizer writes, Planner reads
|
|
42
|
+
|
|
43
|
+
### Required Frontmatter
|
|
44
|
+
|
|
45
|
+
```yaml
|
|
46
|
+
---
|
|
47
|
+
confidence: high|medium|low
|
|
48
|
+
sources: N # integer count of input documents
|
|
49
|
+
conflicts: N # integer count of contradictions found
|
|
50
|
+
---
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### Required Body Sections
|
|
54
|
+
|
|
55
|
+
- `## Resolved Decisions` — table with Topic, Decision, Confidence, Sources columns
|
|
56
|
+
- `## Open Questions` — items marked `[NEEDS DECISION]` for planner to handle
|
|
57
|
+
- `## Deferred Ideas` — items out of scope
|
|
58
|
+
|
|
59
|
+
### Special Handling
|
|
60
|
+
|
|
61
|
+
- `[NEEDS DECISION]` flags: planner creates `checkpoint:decision` tasks OR decides within discretion scope
|
|
62
|
+
- Confidence levels never upgraded beyond what input documents support
|
|
63
|
+
- Contradictions always documented, never silently dropped
|
|
64
|
+
|
|
65
|
+
---
|
|
66
|
+
|
|
67
|
+
## Contract: Planner -> Executor
|
|
68
|
+
|
|
69
|
+
**File**: `.planning/phases/{NN}-{slug}/PLAN-{NN}.md`
|
|
70
|
+
**Direction**: Planner writes, Executor reads and executes sequentially
|
|
71
|
+
|
|
72
|
+
### Required Frontmatter
|
|
73
|
+
|
|
74
|
+
```yaml
|
|
75
|
+
---
|
|
76
|
+
phase: "{phase-slug}"
|
|
77
|
+
plan: "{NN-MM}"
|
|
78
|
+
wave: N
|
|
79
|
+
depends_on: []
|
|
80
|
+
files_modified: ["{path}"]
|
|
81
|
+
must_haves:
|
|
82
|
+
truths: ["{observable condition}"]
|
|
83
|
+
artifacts: ["{file: description}"]
|
|
84
|
+
key_links: ["{connection description}"]
|
|
85
|
+
provides: ["{exported item}"]
|
|
86
|
+
consumes: ["{required item}"]
|
|
87
|
+
requirement_ids: []
|
|
88
|
+
---
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
### Required Body: XML Tasks (each task needs all 5 elements)
|
|
92
|
+
|
|
93
|
+
```xml
|
|
94
|
+
<task id="{plan}-T{n}" type="{type}" tdd="{bool}" complexity="{simple|medium|complex}">
|
|
95
|
+
<name>{imperative verb phrase}</name>
|
|
96
|
+
<files>{file paths, one per line}</files>
|
|
97
|
+
<action>{numbered steps}</action>
|
|
98
|
+
<verify>{executable shell command}</verify>
|
|
99
|
+
<done>{observable outcome}</done>
|
|
100
|
+
</task>
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
### Special Handling
|
|
104
|
+
|
|
105
|
+
- Task types: `auto`, `tdd`, `checkpoint:human-verify`, `checkpoint:decision`, `checkpoint:human-action`
|
|
106
|
+
- Complexity drives model selection: simple=haiku, medium=sonnet, complex=inherit
|
|
107
|
+
- Executor stages ONLY files listed in `<files>` per task
|
|
108
|
+
- Plans end with a `## Summary` section (plan ID, task list, key files, must-haves, provides/consumes)
|
|
109
|
+
|
|
110
|
+
---
|
|
111
|
+
|
|
112
|
+
## Contract: Planner -> Plan-Checker
|
|
113
|
+
|
|
114
|
+
**File**: Same `PLAN-{NN}.md` files (read-only)
|
|
115
|
+
**Direction**: Planner writes, Plan-Checker reads and returns text assessment
|
|
116
|
+
**Returns**: Inline text report (no file output)
|
|
117
|
+
|
|
118
|
+
### Expected Input
|
|
119
|
+
|
|
120
|
+
Plan-Checker reads plan frontmatter + XML tasks and evaluates across 10 dimensions (D1-D10). Optionally receives CONTEXT.md path.
|
|
121
|
+
|
|
122
|
+
### Output Format
|
|
123
|
+
|
|
124
|
+
```
|
|
125
|
+
VERIFICATION PASSED | ISSUES FOUND
|
|
126
|
+
Plans: N | Tasks: N | Blockers: N | Warnings: N | Info: N
|
|
127
|
+
|
|
128
|
+
## Blockers
|
|
129
|
+
- [{plan_id}] D{N} {severity}: {description} -> Fix: {hint}
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
### Special Handling
|
|
133
|
+
|
|
134
|
+
- Blockers must be fixed before execution; warnings are advisory
|
|
135
|
+
- Plan-Checker never modifies plans — only reports issues
|
|
136
|
+
- Planner enters Revision Mode to address feedback
|
|
137
|
+
|
|
138
|
+
---
|
|
139
|
+
|
|
140
|
+
## Contract: Executor -> Verifier
|
|
141
|
+
|
|
142
|
+
**File**: `.planning/phases/{NN}-{slug}/SUMMARY-{plan_id}.md`
|
|
143
|
+
**Direction**: Executor writes after completing plan tasks, Verifier reads
|
|
144
|
+
|
|
145
|
+
### Required Frontmatter
|
|
146
|
+
|
|
147
|
+
```yaml
|
|
148
|
+
---
|
|
149
|
+
plan: "{plan_id}"
|
|
150
|
+
status: complete|partial|checkpoint
|
|
151
|
+
commits: ["{sha1}", "{sha2}"]
|
|
152
|
+
provides: ["{exported item}"]
|
|
153
|
+
must_haves:
|
|
154
|
+
- "{must-have description}: DONE|PARTIAL|SKIPPED"
|
|
155
|
+
---
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
### Required Body Sections
|
|
159
|
+
|
|
160
|
+
- `## Task Results` — table with Task, Status, Notes columns
|
|
161
|
+
- `## Deviations` — list of deviations from plan, or "None"
|
|
162
|
+
|
|
163
|
+
### Special Handling
|
|
164
|
+
|
|
165
|
+
- Verifier does NOT trust SUMMARY.md claims — verifies against actual codebase
|
|
166
|
+
- Verifier checks must-haves from PLAN.md frontmatter, not SUMMARY.md self-reports
|
|
167
|
+
- One SUMMARY per plan execution; status reflects final state
|
|
168
|
+
|
|
169
|
+
---
|
|
170
|
+
|
|
171
|
+
## Contract: Verifier -> Planner (Gap Closure)
|
|
172
|
+
|
|
173
|
+
**File**: `.planning/phases/{NN}-{slug}/VERIFICATION.md`
|
|
174
|
+
**Direction**: Verifier writes, Planner reads to create gap-closure plans
|
|
175
|
+
|
|
176
|
+
### Required Frontmatter
|
|
177
|
+
|
|
178
|
+
```yaml
|
|
179
|
+
---
|
|
180
|
+
status: passed|gaps_found|human_needed
|
|
181
|
+
attempt: N
|
|
182
|
+
must_haves_total: N
|
|
183
|
+
must_haves_passed: M
|
|
184
|
+
gaps: ["gap description"]
|
|
185
|
+
overrides: []
|
|
186
|
+
---
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
### Required Body Sections
|
|
190
|
+
|
|
191
|
+
- `## Must-Have Verification` — table with #, Must-Have, Status, Evidence columns
|
|
192
|
+
- `## Gaps` — per-gap detail with Evidence and Suggested fix
|
|
193
|
+
|
|
194
|
+
### Special Handling
|
|
195
|
+
|
|
196
|
+
- `gaps_found` triggers Planner Gap Closure Mode — planner creates targeted fix plans
|
|
197
|
+
- `overrides` list: must-haves marked as override by user, counted as passed
|
|
198
|
+
- Re-verification increments `attempt` counter; checks regressions on previously-passed items
|
|
199
|
+
- Verifier has Write access ONLY for VERIFICATION.md — cannot fix source code
|
|
200
|
+
|
|
201
|
+
---
|
|
202
|
+
|
|
203
|
+
## Contract: Integration-Checker -> Planner
|
|
204
|
+
|
|
205
|
+
**File**: `.planning/phases/{NN}-{slug}/INTEGRATION-REPORT.md`
|
|
206
|
+
**Direction**: Integration-Checker writes, Planner reads for cross-phase fixes
|
|
207
|
+
|
|
208
|
+
### Required Frontmatter
|
|
209
|
+
|
|
210
|
+
```yaml
|
|
211
|
+
---
|
|
212
|
+
status: passed|issues_found
|
|
213
|
+
checks_total: N
|
|
214
|
+
checks_passed: M
|
|
215
|
+
critical_issues: K
|
|
216
|
+
---
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
### Required Body Sections
|
|
220
|
+
|
|
221
|
+
- `## Integration Checks` — table with Check, Status, Evidence columns
|
|
222
|
+
- `## E2E Flows` — table with Flow, Status, Broken Link columns
|
|
223
|
+
- `## Critical Issues` — detailed issue descriptions
|
|
224
|
+
|
|
225
|
+
### Special Handling
|
|
226
|
+
|
|
227
|
+
- Checks ACROSS phases (unlike Verifier which checks single phase)
|
|
228
|
+
- 5 check categories: Export/Import Wiring, API Route Coverage, Auth Protection, E2E Flows, Cross-Phase Dependencies
|
|
229
|
+
- Integration-Checker has Write access ONLY for INTEGRATION-REPORT.md — cannot fix source code
|
|
230
|
+
|
|
231
|
+
---
|
|
232
|
+
|
|
233
|
+
## Contract: Debugger (Self-Contained)
|
|
234
|
+
|
|
235
|
+
**File**: `.planning/debug/{slug}.md`
|
|
236
|
+
**Direction**: Debugger creates, updates, and resolves within a single session
|
|
237
|
+
|
|
238
|
+
### Required Frontmatter
|
|
239
|
+
|
|
240
|
+
```yaml
|
|
241
|
+
---
|
|
242
|
+
slug: "{slug}"
|
|
243
|
+
status: "gathering|investigating|fixing|verifying|resolved"
|
|
244
|
+
created: "{ISO-8601}"
|
|
245
|
+
updated: "{ISO-8601}"
|
|
246
|
+
mode: "find_and_fix|find_root_cause_only"
|
|
247
|
+
---
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
### Required Body Sections
|
|
251
|
+
|
|
252
|
+
- `## Current Focus` — Hypothesis, Test, Expecting, Disconfirm, Next action
|
|
253
|
+
- `## Symptoms` — IMMUTABLE after gathering phase
|
|
254
|
+
- `## Hypotheses` — Active (unchecked) and Eliminated (checked, append-only)
|
|
255
|
+
- `## Evidence Log` — append-only timestamped entries
|
|
256
|
+
- `## Resolution` — root cause, mechanism, fix, commit hash (when resolved)
|
|
257
|
+
|
|
258
|
+
### Special Handling
|
|
259
|
+
|
|
260
|
+
- Status transitions: `gathering -> investigating -> fixing -> verifying -> resolved`
|
|
261
|
+
- Symptoms and Evidence Log are append-only / immutable — prevents mutation bias
|
|
262
|
+
- Fix commits use format: `fix({scope}): {description}` with root cause in body
|
|
263
|
+
- May emit checkpoints (`HUMAN-VERIFY`, `HUMAN-ACTION`, `DECISION`) for user input
|
|
264
|
+
|
|
265
|
+
---
|
|
266
|
+
|
|
267
|
+
## Contract: Codebase-Mapper (Self-Contained)
|
|
268
|
+
|
|
269
|
+
**Files**: `.planning/codebase/{STACK,ARCHITECTURE,CONVENTIONS,CONCERNS}.md` (varies by focus)
|
|
270
|
+
**Direction**: Codebase-Mapper writes, consumed by Researcher (as S0 local prior) and Planner
|
|
271
|
+
|
|
272
|
+
### Focus Areas and Outputs
|
|
273
|
+
|
|
274
|
+
| Focus | Output Files |
|
|
275
|
+
|-------|-------------|
|
|
276
|
+
| `tech` | STACK.md, INTEGRATIONS.md |
|
|
277
|
+
| `arch` | ARCHITECTURE.md, STRUCTURE.md |
|
|
278
|
+
| `quality` | CONVENTIONS.md, TESTING.md |
|
|
279
|
+
| `concerns` | CONCERNS.md |
|
|
280
|
+
|
|
281
|
+
### Fallback Frontmatter (per file)
|
|
282
|
+
|
|
283
|
+
No YAML frontmatter required — these are reference documents with markdown tables.
|
|
284
|
+
|
|
285
|
+
### Required Body Structure (minimum per file)
|
|
286
|
+
|
|
287
|
+
- **STACK.md**: `## Tech Stack` table (Category, Technology, Version, Config File) + `## Package Manager`
|
|
288
|
+
- **ARCHITECTURE.md**: `## Architecture Overview` (pattern name) + `## Key Components` table + `## Data Flow`
|
|
289
|
+
- **CONVENTIONS.md**: `## Code Conventions` table (Convention, Pattern, Example File) + `## Naming Patterns`
|
|
290
|
+
- **CONCERNS.md**: `## Concerns` table (Severity, Area, Description, File) + `## Security Considerations`
|
|
291
|
+
|
|
292
|
+
### Special Handling
|
|
293
|
+
|
|
294
|
+
- Every claim must reference actual file paths — no vague references
|
|
295
|
+
- Codebase-Mapper does NOT commit — the orchestrator handles commits
|
|
296
|
+
- Researcher treats these as S0 (highest confidence) local prior research
|
|
297
|
+
- One focus area per invocation
|
|
298
|
+
|
|
299
|
+
---
|
|
300
|
+
|
|
301
|
+
## Completion Markers
|
|
302
|
+
|
|
303
|
+
Every agent MUST end its output with exactly one completion marker. Orchestrating skills pattern-match on these markers to route results. Omitting a marker causes silent routing failures.
|
|
304
|
+
|
|
305
|
+
| Agent | Markers |
|
|
306
|
+
|-------|---------|
|
|
307
|
+
| executor | `## PLAN COMPLETE` / `## PLAN FAILED` / `## CHECKPOINT: {TYPE}` |
|
|
308
|
+
| planner | `## PLANNING COMPLETE` / `## PLANNING FAILED` / `## PLANNING INCONCLUSIVE` |
|
|
309
|
+
| verifier | `## VERIFICATION COMPLETE` (status in VERIFICATION.md frontmatter) |
|
|
310
|
+
| researcher | `## RESEARCH COMPLETE` / `## RESEARCH BLOCKED` |
|
|
311
|
+
| synthesizer | `## SYNTHESIS COMPLETE` / `## SYNTHESIS BLOCKED` |
|
|
312
|
+
| plan-checker | `## CHECK PASSED` / `## ISSUES FOUND` |
|
|
313
|
+
| debugger | `## DEBUG COMPLETE` / `## ROOT CAUSE FOUND` / `## DEBUG SESSION PAUSED` |
|
|
314
|
+
| codebase-mapper | `## MAPPING COMPLETE` |
|
|
315
|
+
| integration-checker | `## INTEGRATION CHECK COMPLETE` |
|
|
316
|
+
| general | `## TASK COMPLETE` / `## TASK FAILED` |
|
|
317
|
+
| audit | `## AUDIT COMPLETE` |
|
|
318
|
+
|
|
319
|
+
### Rules
|
|
320
|
+
|
|
321
|
+
- Exactly ONE marker per agent invocation — never zero, never multiple
|
|
322
|
+
- Marker must be the LAST heading in output (content may follow on same line)
|
|
323
|
+
- Skills check for markers with regex: `/^## (PLAN COMPLETE|PLAN FAILED|CHECKPOINT)/m`
|
|
324
|
+
- If an agent cannot determine outcome, use the FAILED/BLOCKED variant with explanation
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# Agent Teams Reference
|
|
2
|
+
|
|
3
|
+
Agent Teams enable parallel specialist perspectives for critical phases. Teams are off by default.
|
|
4
|
+
|
|
5
|
+
## Activation
|
|
6
|
+
|
|
7
|
+
- **Global**: Set `parallelization.use_teams: true` in `.planning/config.json`
|
|
8
|
+
- **Per-invocation**: Use `--teams` flag on `/pbr:plan`, `/pbr:review`, or `/pbr:build --team`
|
|
9
|
+
- Per-invocation flag takes precedence over global config
|
|
10
|
+
|
|
11
|
+
## Planning Teams
|
|
12
|
+
|
|
13
|
+
When `/pbr:plan <N> --teams` is invoked, three specialist agents run in parallel:
|
|
14
|
+
|
|
15
|
+
| Role | Agent | Focus | Output File |
|
|
16
|
+
|------|-------|-------|-------------|
|
|
17
|
+
| Architect | planner | Structure, dependencies, wave ordering, file boundaries | `.planning/phases/{NN}/team/architect-PLAN.md` |
|
|
18
|
+
| Security Reviewer | planner | Auth, input validation, secrets handling, permission checks | `.planning/phases/{NN}/team/security-PLAN.md` |
|
|
19
|
+
| Test Designer | planner | Test strategy, coverage targets, edge cases, TDD candidates | `.planning/phases/{NN}/team/test-PLAN.md` |
|
|
20
|
+
|
|
21
|
+
All three use the `planner` agent with different prompts. The orchestrator includes the role and focus in the Task() spawn prompt.
|
|
22
|
+
|
|
23
|
+
After all three complete, the synthesizer agent reads all team outputs and produces the final unified PLAN.md files.
|
|
24
|
+
|
|
25
|
+
## Review Teams
|
|
26
|
+
|
|
27
|
+
When `/pbr:review <N>` runs with teams enabled, three review agents run in parallel:
|
|
28
|
+
|
|
29
|
+
| Role | Agent | Focus | Output File |
|
|
30
|
+
|------|-------|-------|-------------|
|
|
31
|
+
| Functional Reviewer | verifier | Must-haves met, code correctness, completeness | `.planning/phases/{NN}/team/functional-VERIFY.md` |
|
|
32
|
+
| Security Auditor | verifier | Vulnerabilities, auth bypass, injection, secrets exposure | `.planning/phases/{NN}/team/security-VERIFY.md` |
|
|
33
|
+
| Performance Analyst | verifier | N+1 queries, memory leaks, bundle size, unnecessary re-renders | `.planning/phases/{NN}/team/performance-VERIFY.md` |
|
|
34
|
+
|
|
35
|
+
All three use the `verifier` agent with different prompts. The synthesizer combines them into a unified VERIFICATION.md.
|
|
36
|
+
|
|
37
|
+
## File-Based Coordination
|
|
38
|
+
|
|
39
|
+
Team members write to separate files in a `team/` subdirectory. This avoids file conflicts:
|
|
40
|
+
```
|
|
41
|
+
.planning/phases/{NN}-{slug}/
|
|
42
|
+
team/
|
|
43
|
+
architect-PLAN.md
|
|
44
|
+
security-PLAN.md
|
|
45
|
+
test-PLAN.md
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
The synthesizer reads all files in `team/` and produces the final artifact. The `team/` directory is kept for audit purposes but is not read by subsequent skills.
|
|
49
|
+
|
|
50
|
+
## When to Use Teams
|
|
51
|
+
|
|
52
|
+
- **Recommended**: Security-critical phases, architectural phases, public API design
|
|
53
|
+
- **Not recommended**: Simple refactors, documentation, configuration changes
|
|
54
|
+
- **Cost consideration**: Teams triple the agent spawns. Use only when the additional perspectives justify the cost.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Common Bug Patterns
|
|
2
|
+
|
|
3
|
+
Quick reference for the debugger agent. Check these patterns early — they cover ~80% of bugs.
|
|
4
|
+
|
|
5
|
+
| Category | Patterns to Check |
|
|
6
|
+
|----------|------------------|
|
|
7
|
+
| **Off-by-one** | Loop bounds (`<` vs `<=`), 0-based vs 1-based indexing, string slice boundaries |
|
|
8
|
+
| **Null/undefined** | Missing optional chaining (`?.`), default params, DB query returning null, OOB array access |
|
|
9
|
+
| **Async/timing** | Missing `await`, race conditions, stale closures, handlers registered before element exists |
|
|
10
|
+
| **State management** | Direct mutation vs new object, update not triggering re-render, duplicated sources of truth, stale state in closures |
|
|
11
|
+
| **Import/module** | Circular imports, default vs named export mismatch, wrong file (similar names), resolution path |
|
|
12
|
+
| **Environment** | Missing/wrong env var, dev vs prod differences, case sensitivity (Windows vs Linux paths) |
|
|
13
|
+
| **Data shape** | API response format changed, schema/model mismatch, type mismatch between layers, missing field |
|