You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/design.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -101,7 +101,7 @@ Behavior guarantees:
101
101
102
102
### 6.1 pb-init
103
103
104
-
Audits the repository and produces a **minimal**`AGENTS.md` containing only information that agents cannot discover from the codebase itself. Applies a strict three-part filter: each entry must be (1) not inferrable from code, (2) operationally decisive, and (3) not guessable from industry conventions. The ideal AGENTS.md is empty — every entry represents a codebase smell that should eventually be fixed at the root cause. Re-runs audit existing entries and flag any that are now discoverable.
104
+
Audits the repository and updates a **managed snapshot block**inside `AGENTS.md`. The generated block captures current project context, key file locations, active specs, and an `Architecture Decision Snapshot`that later agents inherit. Re-runs replace only the managed block and preserve all user-authored content outside it.
105
105
106
106
### 6.2 pb-plan
107
107
@@ -122,6 +122,7 @@ Implements tasks sequentially with strict context hygiene and an outside-in doub
122
122
3. Minimal context handoff between subagents.
123
123
4. File-scoped rollback guidance for failed task attempts.
124
124
5. Per-task verification criteria, scenario coverage mapping, and explicit completion status tracking in `tasks.md`.
125
+
6. Managed `AGENTS.md` snapshot updates instead of whole-file rewrites.
125
126
126
127
## 8. Testing and Verification
127
128
@@ -131,6 +132,7 @@ Current automated coverage validates:
131
132
2. Platform path/render behavior across all supported platforms.
132
133
3. End-to-end structure generation for `--ai all`.
Copy file name to clipboardExpand all lines: src/pb_spec/templates/prompts/pb-build.prompt.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,7 @@ Never guess `<spec-dir>` from memory. Always resolve from actual directory names
40
40
41
41
## Step 2: Parse Unfinished Tasks
42
42
43
-
Scan for all unchecked items (`- [ ]`). Build an ordered list preserving Phase → Task number order.
43
+
Determine unfinished tasks from each `### Task X.Y:` block in `tasks.md`, then inspect the status and checkbox lines inside that block. Do not treat every `- [ ]` step as a separate task. Build an ordered list of task blocks preserving Phase → Task number order.
44
44
45
45
**Use Task IDs for state tracking.** Each task has a unique ID in the format `Task X.Y` (e.g., `Task 1.1`, `Task 2.3`). When locating tasks, match on the `### Task X.Y:` heading pattern, not just bare checkboxes.
46
46
@@ -49,7 +49,7 @@ Scan for all unchecked items (`- [ ]`). Build an ordered list preserving Phase
49
49
- If `tasks.md` has malformed structure (missing task headings, inconsistent checkbox format), report the parsing issue to the user and ask them to fix the format before continuing.
50
50
- If a task is marked `⏭️ SKIPPED`, treat it as unfinished but deprioritize — skip it unless the user explicitly requests a retry.
51
51
52
-
For execution reliability, represent the queue as explicit task units: `Task ID`, `Task Name`, `Status`, `Scenario Coverage`, `Loop Type`, `BDD Verification`, `Verification`.
52
+
For execution reliability, represent the queue as explicit task-block units: `Task ID`, `Task Name`, `Status`, `Scenario Coverage`, `Loop Type`, `BDD Verification`, and`Verification`.
53
53
54
54
If all tasks are checked (`- [x]`), report:
55
55
@@ -282,7 +282,7 @@ You are implementing **Task {{TASK_NUMBER}}: {{TASK_NAME}}**.
282
282
283
283
### Your Job
284
284
285
-
Execute in strict order:
285
+
Execute in strict order. Report concise decisions and evidence for each step:
286
286
287
287
Before coding, define a compact task contract from the provided task block:
Copy file name to clipboardExpand all lines: src/pb_spec/templates/skills/pb-build/SKILL.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,7 @@ Never guess `<spec-dir>` from memory. Always resolve from actual directory names
44
44
45
45
### Step 2: Parse Unfinished Tasks
46
46
47
-
Scan `tasks.md` for all unchecked task items (`- [ ]`). Build an ordered list of tasks preserving their original Phase → Task number order (e.g., Task 1.1, Task 1.2, Task 2.1, …).
47
+
Determine unfinished tasks from each `### Task X.Y:` block in `tasks.md`, then inspect the status and checkbox lines inside that block. Do not treat every `- [ ]` step as a separate task. Build an ordered list of task blocks preserving their original Phase → Task number order (e.g., Task 1.1, Task 1.2, Task 2.1, …).
48
48
49
49
**Use Task IDs for state tracking.** Each task has a unique ID in the format `Task X.Y` (e.g., `Task 1.1`, `Task 2.3`). When locating tasks, match on the `### Task X.Y:` heading pattern, not just bare checkboxes.
50
50
@@ -53,7 +53,7 @@ Scan `tasks.md` for all unchecked task items (`- [ ]`). Build an ordered list of
53
53
- If `tasks.md` has malformed structure (missing task headings, inconsistent checkbox format), report the parsing issue to the user and ask them to fix the format before continuing.
54
54
- If a task is marked `⏭️ SKIPPED`, treat it as unfinished but deprioritize — skip it unless the user explicitly requests a retry.
55
55
56
-
For execution reliability, represent the queue as explicit task units: `Task ID`, `Task Name`, `Status`, `Scenario Coverage`, `Loop Type`, `BDD Verification`, `Verification`.
56
+
For execution reliability, represent the queue as explicit task-block units: `Task ID`, `Task Name`, `Status`, `Scenario Coverage`, `Loop Type`, `BDD Verification`, and`Verification`.
57
57
58
58
If all tasks are already checked (`- [x]`), report:
0 commit comments