@gtrabanco/pi-agentic-workflow 0.11.2 → 0.12.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/README.md +26 -0
- package/dist/config/defaults.js +2 -0
- package/dist/config/load.d.ts +3 -0
- package/dist/config/load.js +3 -1
- package/dist/config/merge.js +2 -0
- package/dist/config/path-policy.d.ts +97 -0
- package/dist/config/path-policy.js +301 -0
- package/dist/config/schema.js +65 -2
- package/dist/config/types.d.ts +5 -0
- package/dist/extension/index.js +147 -5
- package/package.json +1 -1
- package/skills/design-feature/SKILL.md +1 -1
- package/skills/design-feature/references/REPAIR.md +12 -10
- package/skills/execute-phase/SKILL.md +1 -1
- package/skills/execute-phase/references/PREFLIGHT.md +28 -0
- package/skills/init-workspace/SKILL.md +1 -1
- package/skills/init-workspace/references/BOOTSTRAP_WRITE.md +7 -1
- package/skills/init-workspace/references/UPGRADE.md +7 -2
- package/skills/orchestration-envelope/SKILL.md +1 -1
- package/skills/orchestration-envelope/references/TURN_CONTRACT.md +52 -0
- package/skills/plan-feature-scaffold/SKILL.md +1 -1
- package/skills/plan-feature-scaffold/references/SCAFFOLD_PROCESS.md +8 -0
- package/skills/pre-execution-review/SKILL.md +1 -1
- package/skills/pre-execution-review/references/LEDGERS.md +8 -4
- package/skills/pre-execution-review/references/POLICY.md +40 -14
- package/skills/review-plan/SKILL.md +1 -1
- package/skills/review-plan/references/CHECKS.md +5 -2
- package/skills/review-plan/references/OUTPUT.md +6 -6
- package/skills/review-spec/SKILL.md +1 -1
- package/skills/review-spec/references/CHECKS.md +4 -1
- package/skills/review-spec/references/OUTPUT.md +9 -5
- package/skills/verification-contract/SKILL.md +7 -1
|
@@ -106,8 +106,8 @@ not authority.
|
|
|
106
106
|
| Verdict | Who repairs | What happens next |
|
|
107
107
|
|---|---|---|
|
|
108
108
|
| `SPEC-REVIEW-PASS` | nobody | `/plan-feature <NN-slug>` binds this receipt + exact snapshot digest |
|
|
109
|
-
| `SPEC-REVIEW-FAIL` | `design-feature` (the author) | one root-caused repair batch → new revision → re-review
|
|
110
|
-
| `NEEDS-DESIGN` | the human, through `design-feature` | dated `## Amendments`/`Product decisions` entry → new revision →
|
|
109
|
+
| `SPEC-REVIEW-FAIL` | `design-feature` (the author) | one root-caused repair batch → new revision → next cycle (default re-review; a recorded wording-only batch skips it) |
|
|
110
|
+
| `NEEDS-DESIGN` | the human, through `design-feature` | dated `## Amendments`/`Product decisions` entry → new revision → next cycle |
|
|
111
111
|
|
|
112
112
|
A finding whose `class` is `plan`, `source`, `environment`, or `runtime` does not
|
|
113
113
|
become work here: record it, keep it open, and route it to its owner (`review-plan`
|
|
@@ -117,8 +117,11 @@ schedules nothing.
|
|
|
117
117
|
Repeating this review follows the no-progress and convergence rules in
|
|
118
118
|
`pre-execution-review/references/POLICY.md` §4: a repeat needs a
|
|
119
119
|
changed snapshot or a named falsifiable question plus a new evidence route, and
|
|
120
|
-
|
|
121
|
-
further edit. A
|
|
120
|
+
a second consecutive repair/re-review cycle prints `CONVERGENCE-ANOMALY` before
|
|
121
|
+
any further edit. A third cycle never starts without explicit user instruction:
|
|
122
|
+
the orchestrator's `stop-review-loop-cap` refusal stops the invocation and names
|
|
123
|
+
`design-feature` as the human route, and a PASS resets the count. A
|
|
124
|
+
`design-feature` repair turn re-reads the union of open findings
|
|
122
125
|
from `planning-findings.md`, not just the newest receipt, so nothing recorded here
|
|
123
126
|
is ever lost between cycles.
|
|
124
127
|
|
|
@@ -150,7 +153,8 @@ On FAIL or NEEDS-DESIGN, name every finding id once, in order, joined with ` + `
|
|
|
150
153
|
|
|
151
154
|
```
|
|
152
155
|
→ Next: /design-feature <NN-slug> "<instruction>" — one repair batch for F1 + F2 + F4,
|
|
153
|
-
then /review-spec <NN-slug>
|
|
156
|
+
then /review-spec <NN-slug> judges the new artifact revision
|
|
157
|
+
· a third cycle → explicit user instruction first; the decider refuses it (`stop-review-loop-cap`) and names design-feature
|
|
154
158
|
· a product choice is missing → answer it in the instruction; nothing here chooses for you
|
|
155
159
|
· finding class is plan/source/environment/runtime → route to its owner, do not edit the SPEC
|
|
156
160
|
```
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: verification-contract
|
|
3
3
|
user-invocable: false
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.3.0
|
|
5
5
|
author: "Gabriel Trabanco <gtrabanco@users.noreply.github.com>"
|
|
6
6
|
license: MIT
|
|
7
7
|
description: >
|
|
@@ -88,6 +88,12 @@ a cover-up. The sole legitimate amendment is a **proven mis-encoding of external
|
|
|
88
88
|
documented semantics of the platform/library/language, cited from authoritative documentation — not a product decision change. Even that surfaces as a
|
|
89
89
|
**finding plus a SPEC amendment**, never a silent edit to go green.
|
|
90
90
|
|
|
91
|
+
The deterministic backstop for this rule is the feature 60 path-protection
|
|
92
|
+
checkpoint (`path-protection@1` in the turn contract): the Tier 1 gate fails a
|
|
93
|
+
protected-path change with no recorded justification/approval, and the pi guard
|
|
94
|
+
blocks the write before it lands. This manifest is the finish line those
|
|
95
|
+
recorded escapes are checked against.
|
|
96
|
+
|
|
91
97
|
Prevention rides the research gate (**research-before-encode**): platform
|
|
92
98
|
semantics are verified against authoritative documentation **before a test encodes them**, so **adding stronger tests stays allowed**; **editing expectations never** (except the proven-mis-encoding path above).
|
|
93
99
|
|