@gtrabanco/pi-agentic-workflow 0.11.1 → 0.11.2
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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: fold-findings
|
|
3
3
|
user-invocable: true
|
|
4
|
-
version: 1.5.
|
|
4
|
+
version: 1.5.1
|
|
5
5
|
argument-hint: [finding-id …]
|
|
6
6
|
author: "Gabriel Trabanco <gtrabanco@users.noreply.github.com>"
|
|
7
7
|
license: MIT
|
|
@@ -121,9 +121,13 @@ no schema field). Six fields, always present:
|
|
|
121
121
|
**Freeze-batch (replan present).** When the taken queue contains any row whose
|
|
122
122
|
frozen class is `replan-in-unit` or `decision-required`, nothing folds: no
|
|
123
123
|
`folded: yes` flips, no commits. The receipt records the `REPLAN-ROUTE` branch
|
|
124
|
-
and every retained (unfolded) row id, and the loop stops
|
|
125
|
-
|
|
126
|
-
planner
|
|
124
|
+
and every retained (unfolded) row id, and the loop stops. The consumer is the
|
|
125
|
+
conclusion the already-run router printed, never the invocation itself: on
|
|
126
|
+
`route: replan` the planner it named — `/plan-fix <n>` for a fix unit or
|
|
127
|
+
`/plan-feature <slug>` for a feature unit; on `route: decision` stop and
|
|
128
|
+
surface the decision to the user, never a planner. `<unit>` is the bare folder number or the full slug (both resolve). The invocation
|
|
129
|
+
`node scripts/unit-route.mjs <unit>` is the discovery step the fold already
|
|
130
|
+
ran; it is never the recommendation.
|
|
127
131
|
|
|
128
132
|
## Guardrails
|
|
129
133
|
|
|
@@ -167,11 +171,17 @@ or touched outside the queue.
|
|
|
167
171
|
· all FOLDED (<F1> + <F2> + …) → /review-change — re-review the branch now that all listed findings are fixed
|
|
168
172
|
· any DISPUTED (<F1> + <F2> + …) → user decision — resolve every evidenced dispute without creating backlog
|
|
169
173
|
· any BLOCKED (<F1> + <F2> + …) → supply the listed missing inputs, then re-run /fold-findings
|
|
170
|
-
· any REPLAN (<F1> + <F2> + …) →
|
|
174
|
+
· any REPLAN (<F1> + <F2> + …) → /plan-fix <n> or /plan-feature <slug> — the planner appends the proposed phases to the unit's SPEC, the user confirms them, then a fresh /review-plan must pass before /execute-phase on this unit
|
|
175
|
+
· any DECISION (<F1> + <F2> + …) → stop and surface the decision to the user — a `route: decision` conclusion names no planner, so the unit waits on the user before any plan or code change
|
|
171
176
|
```
|
|
172
177
|
|
|
178
|
+
Every `· ` sub-bullet is exactly one physical line — never hard-wrapped across
|
|
179
|
+
several lines, never joined into one prose line.
|
|
180
|
+
|
|
173
181
|
Replace placeholders with every actual affected finding ID before printing; never
|
|
174
|
-
print `<F2>`, `…`, or a single representative ID in a live hand-off.
|
|
182
|
+
print `<F2>`, `…`, or a single representative ID in a live hand-off. Resolve the
|
|
183
|
+
`/plan-fix <n>` / `/plan-feature <slug>` unit argument the same way — never carry
|
|
184
|
+
`<n>` or `<slug>` into a live hand-off.
|
|
175
185
|
|
|
176
186
|
## Closing-block decision branch (choose one, at emission)
|
|
177
187
|
|
|
@@ -181,7 +191,7 @@ decision to skip.
|
|
|
181
191
|
|
|
182
192
|
| Batch state | Branch | `→ Next:` (consumer) |
|
|
183
193
|
|---|---|---|
|
|
184
|
-
| freeze-batch (≥ 1 replan-class row) | `REPLAN-ROUTE` |
|
|
194
|
+
| freeze-batch (≥ 1 replan-class row) | `REPLAN-ROUTE` | `/plan-fix <n>` (fix) or `/plan-feature <slug>` (feature) when the router concludes `replan` — user confirms, fresh `/review-plan` passes, then `/execute-phase` on this unit; on `route: decision` stop and surface the decision to the user — the conclusion printed by `node scripts/unit-route.mjs <unit>` (discovery step the fold already ran) |
|
|
185
195
|
| `all-repair-in-place` + docs-only + no folded row severity `high` + prior consumer skip decision | `RE-REVIEW-SKIPPED` | skip — consumer has explicitly decided to skip the re-review |
|
|
186
196
|
| `all-repair-in-place` + docs-only + no folded row severity `high` | `RE-REVIEW-OPTIONAL` | `/review-change` (default, delta mode) — or the consumer's recorded skip decision |
|
|
187
197
|
| empty batch (class `none`) | `RE-REVIEW-OPTIONAL` | `/review-change` by default — safe: the head is unchanged |
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
|
|
44
44
|
| Condition over the taken batch | Batch class | Fold behavior |
|
|
45
45
|
|---|---|---|
|
|
46
|
-
| ≥ 1 row with frozen class `replan-in-unit` or `decision-required` | `frozen (replan present)` | **freeze-batch** — nothing folds, no `folded: yes` flips, no commits; the receipt records the REPLAN-ROUTE and every retained (unfolded) row id; the loop stops
|
|
46
|
+
| ≥ 1 row with frozen class `replan-in-unit` or `decision-required` | `frozen (replan present)` | **freeze-batch** — nothing folds, no `folded: yes` flips, no commits; the receipt records the REPLAN-ROUTE and every retained (unfolded) row id; the loop stops; the consumer is the conclusion printed by `node scripts/unit-route.mjs <unit>` (discovery step the fold already ran), where `<unit>` is the bare folder number or the full slug (both resolve): on `route: replan` the planner — `/plan-fix <n>` (fix) or `/plan-feature <slug>` (feature) — user confirms, fresh `/review-plan` passes, then `/execute-phase` on this unit; on `route: decision` stop and surface the decision to the user, never a planner |
|
|
47
47
|
| all taken rows foldable, none replan-class | `all-repair-in-place` | fold as today (group → fix → gate → commit → flip) |
|
|
48
48
|
| empty queue (zero findings taken) | `none` | receipt only |
|
|
49
49
|
|
|
@@ -59,10 +59,16 @@
|
|
|
59
59
|
issue.
|
|
60
60
|
9. **Replan.** If the smallest correct group exceeds a reviewable correction,
|
|
61
61
|
run `node scripts/unit-route.mjs <unit>` — its `route: replan` line names the
|
|
62
|
-
planner (`/plan-feature <
|
|
63
|
-
phases to the unit's SPEC.
|
|
62
|
+
planner (`/plan-feature <slug>` or `/plan-fix <n>`) that appends the proposed
|
|
63
|
+
phases to the unit's SPEC. The `<unit>` argument accepts the bare folder number
|
|
64
|
+
or the full slug (both resolve). After the user confirms and a fresh
|
|
64
65
|
`/review-plan <unit>` passes, `/execute-phase <unit>` completes them and ticks
|
|
65
|
-
the rows.
|
|
66
|
+
the rows. When the router concludes `route: decision` instead — a
|
|
67
|
+
`decision-required` row with no replan row — stop and surface the decision to
|
|
68
|
+
the user; no planner runs until the user decides.
|
|
69
|
+
|
|
70
|
+
The closing-block `· ` sub-bullets are exactly one physical line — never
|
|
71
|
+
hard-wrapped across several lines, never joined into one prose line.
|
|
66
72
|
|
|
67
73
|
## REPAIR-RECEIPT — fixed printed block (verbatim copy)
|
|
68
74
|
|