gentle-pi 1.0.4 → 1.0.6
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 +56 -5
- package/extensions/gentle-ai.ts +678 -111
- package/lib/gentle-ai-binary.ts +2 -1
- package/lib/native-review-authority-quarantine.ts +2 -0
- package/lib/native-review-cli.ts +314 -40
- package/lib/native-review-remediation.ts +49 -0
- package/lib/review-candidate-view.ts +273 -24
- package/lib/review-compact-contract.ts +76 -0
- package/lib/review-reset.ts +4 -1
- package/lib/review-transaction.ts +82 -12
- package/package.json +1 -1
- package/scripts/gentle-ai-installer.mjs +17 -11
- package/tests/gentle-ai-binary.test.ts +20 -10
- package/tests/gentle-ai-installer.test.ts +48 -16
- package/tests/native-review-authority-quarantine.test.ts +10 -0
- package/tests/native-review-cli.test.ts +264 -14
- package/tests/native-review-parity-runtime.test.ts +205 -6
- package/tests/package-manifest.test.ts +2 -2
- package/tests/review-candidate-view.test.ts +325 -6
- package/tests/review-controller-native-routing.test.ts +957 -35
- package/tests/review-controller.test.ts +253 -12
- package/tests/review-gate.test.ts +53 -4
- package/tests/review-ledger-contract.test.ts +1 -1
package/README.md
CHANGED
|
@@ -58,7 +58,7 @@ Most coding-agent sessions fail for operational reasons, not model reasons:
|
|
|
58
58
|
| **Skill creation workflow** | Provides the `gentle-ai-skill-creator`/`gentle-ai-skill-improver` skills, `/skill-creation` prompt, and packaged style guide for LLM-first skills. |
|
|
59
59
|
| **Delivery skills** | Includes issue-first PRs, chained PRs, work-unit commits, cognitive docs, comment writing, and Judgment Day review. |
|
|
60
60
|
| **Bounded native review** | Freezes one candidate, dispatches only controller-selected lenses, records native authority, and reuses the same content-bound receipt at delivery gates. |
|
|
61
|
-
| **Verified native runtime** | Provisions the exact package-local Gentle AI v2.1.
|
|
61
|
+
| **Verified native runtime** | Provisions the exact package-local Gentle AI v2.1.5 binary, verifies pinned archive/binary integrity, and rejects PATH, global, sibling, symlink, and mode fallbacks. |
|
|
62
62
|
| **Runtime safety** | Blocks destructive shell commands, asks for confirmation for sensitive operations, and blocks direct read/write/edit access to sensitive paths. |
|
|
63
63
|
|
|
64
64
|
## Install
|
|
@@ -67,7 +67,7 @@ Most coding-agent sessions fail for operational reasons, not model reasons:
|
|
|
67
67
|
pi install npm:gentle-pi
|
|
68
68
|
```
|
|
69
69
|
|
|
70
|
-
The npm postinstall downloads the exact platform-specific official Gentle AI v2.1.
|
|
70
|
+
The npm postinstall downloads the exact platform-specific official Gentle AI v2.1.5 archive into this package's private `.gentle-ai/v2.1.5/` directory and verifies its pinned SHA-256 before extraction. It never uses `PATH` or a global `gentle-ai` installation. For development or offline installs only, set `GENTLE_PI_SKIP_GENTLE_AI_INSTALL=1`; native review operations then fail closed with an actionable `package-local-binary-missing` error until the package is reinstalled normally.
|
|
71
71
|
|
|
72
72
|
Recommended companion packages:
|
|
73
73
|
|
|
@@ -177,11 +177,62 @@ Risk selection is deterministic: documentation/comment/formatting-only changes u
|
|
|
177
177
|
|
|
178
178
|
### Bounded review transactions
|
|
179
179
|
|
|
180
|
-
New ordinary review uses compact `gentle_review` `start -> finalize -> validate`.
|
|
180
|
+
New ordinary review uses compact `gentle_review` `start -> finalize -> validate`. This diagram shows the complete development-to-delivery path, including every ordinary review state and the fail-closed branches.
|
|
181
|
+
|
|
182
|
+
```mermaid
|
|
183
|
+
flowchart TD
|
|
184
|
+
A["Clarify scope and acceptance criteria"] --> B{"Choose the smallest safe workflow"}
|
|
185
|
+
B -->|Small and local| C["Inline implementation"]
|
|
186
|
+
B -->|Context-heavy or multi-file| D["Focused subagent"]
|
|
187
|
+
B -->|Large or architectural| E["SDD phase artifacts"]
|
|
188
|
+
C --> F["Implement with test evidence"]
|
|
189
|
+
D --> F
|
|
190
|
+
E --> F
|
|
191
|
+
F --> G["Independent verification"]
|
|
192
|
+
G --> H["INSPECT authority"]
|
|
193
|
+
H -->|Applicable invalid authority| X["Blocked: explicit recovery required"]
|
|
194
|
+
H -->|Clean or unrelated history| I["START freezes candidate, scope, tier, lenses, and budget"]
|
|
195
|
+
|
|
196
|
+
subgraph Ordinary_review["Ordinary bounded review"]
|
|
197
|
+
I --> R["reviewing"]
|
|
198
|
+
R --> J["Run each selected lens once"]
|
|
199
|
+
J --> K{"Severe candidate-caused blocker?"}
|
|
200
|
+
K -->|No| A1["approved"]
|
|
201
|
+
K -->|Yes| C1["correction_required"]
|
|
202
|
+
C1 --> C2["Forecast bounded correction"]
|
|
203
|
+
C2 --> C3["Apply scoped fix"]
|
|
204
|
+
C3 --> V["validating"]
|
|
205
|
+
V -->|Validator passes| A1
|
|
206
|
+
V -->|Fails; attempt and budget remain| C1
|
|
207
|
+
V -->|Malformed, out of scope, or exhausted| E1["escalated"]
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
A1 --> P["Receipt binds the exact candidate tree"]
|
|
211
|
+
P --> PC["Stage reviewed paths"]
|
|
212
|
+
PC --> G1{"pre-commit validate"}
|
|
213
|
+
G1 -->|allow| CM["Commit"]
|
|
214
|
+
G1 -->|scope changed| N["Start a new lineage"]
|
|
215
|
+
G1 -->|invalidated or escalated| X
|
|
216
|
+
CM --> G2{"pre-push validate"}
|
|
217
|
+
G2 -->|allow| PS["Push"]
|
|
218
|
+
G2 -->|deny| X
|
|
219
|
+
PS --> CI["Required CI on exact remote SHA"]
|
|
220
|
+
CI -->|success| RL{"Release gate"}
|
|
221
|
+
CI -->|pending or failed| X
|
|
222
|
+
RL -->|Exact patch tag on protected main; no fresh risk evidence| FP["Zero-actor release fast path"]
|
|
223
|
+
RL -->|Receipt-bound release evidence| RV["Native receipt validation"]
|
|
224
|
+
RL -->|Major, post-incident, stale, or unprovable| X
|
|
225
|
+
FP --> PUB["Publish release"]
|
|
226
|
+
RV -->|allow| PUB
|
|
227
|
+
RV -->|deny| X
|
|
228
|
+
N --> H
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
Lifecycle gates never launch review actors. They rederive Git and publication targets, validate the existing receipt, and authorize one exact command. Any target drift, stale evidence, malformed authority, or unprovable state blocks delivery instead of silently reopening review.
|
|
181
232
|
|
|
182
|
-
Native contract pairing is exact: this adapter supports `gentle-ai 2.1.
|
|
233
|
+
Native contract pairing is exact: this adapter supports `gentle-ai 2.1.5` only from its package-local verified binary and rechecks that version before every native operation. Production native operations resolve an absolute package-owned path and never fall back to `PATH` or a global executable. Once v2.1.5 has written review authority, rollback MUST preserve every native store and receipt and MUST NOT run a downgraded binary against that repository. Disable the Pi route or roll forward to a compatible authority-aware release instead; deleting authority data or reinstalling an older binary is not a rollback path.
|
|
183
234
|
|
|
184
|
-
Gentle AI v2.1.
|
|
235
|
+
Gentle AI v2.1.5 supports `gentle-ai review start --projection staged`, and upstream `main` now documents that focused-index workflow. The current `gentle-pi` adapter intentionally submits `projection: "workspace"` and does not expose staged projection yet. Native binary capability is not automatically a Pi adapter contract; package support still requires an adapter update, parity fixtures, and bounded validation.
|
|
185
236
|
|
|
186
237
|
### FINALIZE wrapper input
|
|
187
238
|
|