gentle-pi 1.2.0 → 2.0.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.
Files changed (107) hide show
  1. package/README.md +40 -9
  2. package/assets/agents/review-readability.md +0 -1
  3. package/assets/agents/review-reliability.md +0 -1
  4. package/assets/agents/review-resilience.md +0 -1
  5. package/assets/agents/review-risk.md +0 -1
  6. package/contracts/review-integration/v1/fixtures/binding-revision-conflict.fixture.json +25 -0
  7. package/contracts/review-integration/v1/fixtures/capabilities-v1.2.fixture.json +263 -0
  8. package/contracts/review-integration/v1/fixtures/capabilities-v1.3.fixture.json +301 -0
  9. package/contracts/review-integration/v1/fixtures/capabilities-v1.4.fixture.json +312 -0
  10. package/contracts/review-integration/v1/fixtures/capabilities-v1.5.fixture.json +321 -0
  11. package/contracts/review-integration/v1/fixtures/consent.fixture.json +36 -0
  12. package/contracts/review-integration/v1/fixtures/final-verification-incident.fixture.json +1 -0
  13. package/contracts/review-integration/v1/fixtures/operation.fixture.json +4 -0
  14. package/contracts/review-integration/v1/fixtures/repair-preflight.fixture.json +54 -0
  15. package/contracts/review-integration/v1/fixtures/start-v2.fixture.json +97 -0
  16. package/contracts/review-integration/v1/fixtures/start.fixture.json +25 -1
  17. package/contracts/review-integration/v1/fixtures/status-ambiguous.fixture.json +4 -0
  18. package/contracts/review-integration/v1/fixtures/status-corrupted.fixture.json +4 -0
  19. package/contracts/review-integration/v1/fixtures/status-recover.fixture.json +4 -0
  20. package/contracts/review-integration/v1/fixtures/status-unrelated.fixture.json +4 -0
  21. package/contracts/review-integration/v1/fixtures/status-v2-ambiguous.fixture.json +110 -0
  22. package/contracts/review-integration/v1/fixtures/status-v2-corrupted.fixture.json +107 -0
  23. package/contracts/review-integration/v1/fixtures/status-v2-final-verification-retry.fixture.json +192 -0
  24. package/contracts/review-integration/v1/fixtures/status-v2-recover.fixture.json +130 -0
  25. package/contracts/review-integration/v1/fixtures/status-v2-repair.fixture.json +161 -0
  26. package/contracts/review-integration/v1/fixtures/status-v2-unrelated.fixture.json +103 -0
  27. package/contracts/review-integration/v1/fixtures/status-v2.fixture.json +193 -0
  28. package/contracts/review-integration/v1/fixtures/status.fixture.json +19 -5
  29. package/contracts/review-integration/v1/fixtures/verification-evidence.fixture.json +1 -0
  30. package/contracts/review-integration/v1/schemas/admitted-result.schema.json +35 -0
  31. package/contracts/review-integration/v1/schemas/artifact-subject.schema.json +33 -0
  32. package/contracts/review-integration/v1/schemas/authority-repair-assessment.schema.json +247 -0
  33. package/contracts/review-integration/v1/schemas/capabilities-v1.2.schema.json +249 -0
  34. package/contracts/review-integration/v1/schemas/capabilities-v1.3.schema.json +429 -0
  35. package/contracts/review-integration/v1/schemas/capabilities-v1.4.schema.json +432 -0
  36. package/contracts/review-integration/v1/schemas/capabilities-v1.5.schema.json +154 -0
  37. package/contracts/review-integration/v1/schemas/consent.schema.json +86 -0
  38. package/contracts/review-integration/v1/schemas/failure.schema.json +54 -8
  39. package/contracts/review-integration/v1/schemas/final-verification-incident.schema.json +51 -0
  40. package/contracts/review-integration/v1/schemas/operation.schema.json +204 -31
  41. package/contracts/review-integration/v1/schemas/repair.schema.json +251 -0
  42. package/contracts/review-integration/v1/schemas/result-artifact-v2.schema.json +38 -0
  43. package/contracts/review-integration/v1/schemas/start-v2.schema.json +216 -0
  44. package/contracts/review-integration/v1/schemas/start.schema.json +79 -3
  45. package/contracts/review-integration/v1/schemas/status-v2.schema.json +313 -0
  46. package/contracts/review-integration/v1/schemas/status.schema.json +37 -10
  47. package/contracts/review-integration/v1/schemas/targeted-validation-request.schema.json +46 -0
  48. package/contracts/review-integration/v1/schemas/verification-evidence.schema.json +64 -0
  49. package/contracts/review-integration/v2/fixtures/capabilities.fixture.json +111 -0
  50. package/contracts/review-integration/v2/fixtures/consent.fixture.json +36 -0
  51. package/contracts/review-integration/v2/fixtures/start.fixture.json +93 -0
  52. package/contracts/review-integration/v2/fixtures/status.fixture.json +113 -0
  53. package/contracts/review-integration/v2/schemas/admitted-result.schema.json +14 -0
  54. package/contracts/review-integration/v2/schemas/artifact-subject.schema.json +36 -0
  55. package/contracts/review-integration/v2/schemas/capabilities.schema.json +111 -0
  56. package/contracts/review-integration/v2/schemas/consent.schema.json +70 -0
  57. package/contracts/review-integration/v2/schemas/failure.schema.json +35 -0
  58. package/contracts/review-integration/v2/schemas/operation.schema.json +46 -0
  59. package/contracts/review-integration/v2/schemas/repair.schema.json +22 -0
  60. package/contracts/review-integration/v2/schemas/start.schema.json +106 -0
  61. package/contracts/review-integration/v2/schemas/status.schema.json +104 -0
  62. package/docs/native-authority-architecture.md +18 -3
  63. package/docs/review-integration.md +175 -27
  64. package/extensions/gentle-ai.ts +414 -19
  65. package/lib/gentle-ai-binary.ts +1 -1
  66. package/lib/native-review-cli.ts +679 -57
  67. package/lib/review-candidate-view.ts +131 -1
  68. package/lib/review-compact-contract.ts +12 -3
  69. package/lib/review-consent-latch.ts +51 -0
  70. package/lib/review-correction-lifecycle.ts +170 -0
  71. package/lib/review-integration-v2.ts +1563 -0
  72. package/package.json +15 -11
  73. package/runtime/gentle-ai-binary.mjs +1 -1
  74. package/runtime/native-review-cli.mjs +663 -41
  75. package/runtime/review-integration-v2.mjs +1564 -0
  76. package/scripts/build-git-commit-transaction-runner.mjs +1 -1
  77. package/scripts/gentle-ai-installer.mjs +16 -11
  78. package/scripts/install-gentle-ai.mjs +7 -3
  79. package/scripts/test-packed-runner.mjs +2 -2
  80. package/scripts/verify-package-files.mjs +216 -64
  81. package/skills/release/SKILL.md +38 -11
  82. package/tests/devbinary/native-review-parity.devtest.ts +348 -0
  83. package/tests/gentle-ai-binary.test.ts +8 -1
  84. package/tests/gentle-ai-installer.test.ts +24 -21
  85. package/tests/native-binary-gate.test.ts +145 -0
  86. package/tests/native-review-capability-contract.test.ts +87 -0
  87. package/tests/native-review-cli.test.ts +44 -1
  88. package/tests/native-review-parity-runtime.test.ts +70 -23
  89. package/tests/native-review-parity.test.ts +673 -0
  90. package/tests/native-risk-evidence-parity.test.ts +91 -0
  91. package/tests/package-manifest.test.ts +72 -7
  92. package/tests/review-actor-tool-deny.test.ts +20 -5
  93. package/tests/review-candidate-view.test.ts +331 -1
  94. package/tests/review-compact-contract.test.ts +5 -0
  95. package/tests/review-consent-latch.test.ts +67 -0
  96. package/tests/review-controller-native-recovery.test.ts +180 -5
  97. package/tests/review-controller-native-routing.test.ts +385 -12
  98. package/tests/review-controller-workspace-root.test.ts +26 -6
  99. package/tests/review-correction-lifecycle.test.ts +174 -0
  100. package/tests/review-integration-v2.test.ts +539 -0
  101. package/tests/runtime-harness.mjs +187 -0
  102. package/tests/support/native-binary-gate.ts +86 -0
  103. package/tests/verify-package-files.test.ts +119 -0
  104. package/lib/review-integration-v1.ts +0 -795
  105. package/runtime/review-integration-v1.mjs +0 -796
  106. package/tests/native-review-integration-v1.test.ts +0 -102
  107. package/tests/review-integration-v1.test.ts +0 -530
package/README.md CHANGED
@@ -11,6 +11,15 @@
11
11
  [![SDD/OpenSpec](https://img.shields.io/badge/SDD-OpenSpec-00ADD8)](#sddopenspec-flow)
12
12
  [![Subagents](https://img.shields.io/badge/Pi-subagents-brightgreen)](#what-it-adds)
13
13
 
14
+ > [!IMPORTANT]
15
+ > **RDD is unstable.** Native Receipt-Driven Development started in `gentle-pi` `v0.15.0`. Every release from `v0.15.0` onward is part of the RDD development line and may change while remaining issues are fixed.
16
+ >
17
+ > For a stable installation without RDD, use the last version before native RDD, `v0.14.0`:
18
+ > ```bash
19
+ > pi install npm:gentle-pi@0.14.0
20
+ > ```
21
+ > To test the latest released RDD build, use `@latest`.
22
+
14
23
  **Turn Pi from a powerful coding agent into a controlled development harness.**
15
24
 
16
25
  `gentle-pi` installs **el Gentleman** in Pi: a senior-architect operating layer for Spec-Driven Development, focused subagents, strict TDD evidence, reviewable work units, safety guards, project/user skill discovery, and bounded native review.
@@ -58,16 +67,28 @@ Most coding-agent sessions fail for operational reasons, not model reasons:
58
67
  | **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
68
  | **Delivery skills** | Includes issue-first PRs, chained PRs, work-unit commits, cognitive docs, comment writing, and Judgment Day review. |
60
69
  | **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.11 binary, verifies pinned archive/binary integrity, negotiates `review-integration/v1`, and rejects PATH, global, sibling, symlink, and mode fallbacks. |
70
+ | **Verified native runtime** | Provisions the exact package-local Gentle AI v2.2.1 binary, verifies pinned archive/binary integrity, negotiates `review-integration/v1` today, and rejects PATH, global, sibling, symlink, and mode fallbacks. `review-integration/v2`'s immutable `base_tree`/`candidate_tree` transport is staged for a separate release-gated cutover (see [Native Authority Architecture](docs/native-authority-architecture.md)). |
62
71
  | **Runtime safety** | Blocks destructive shell commands, asks for confirmation for sensitive operations, and blocks direct read/write/edit access to sensitive paths. |
63
72
 
64
73
  ## Install
65
74
 
66
75
  ```bash
67
- pi install npm:gentle-pi
76
+ pi install npm:gentle-pi@0.14.0
77
+ ```
78
+
79
+ ### RDD version policy
80
+
81
+ Native RDD started in `gentle-pi` `v0.15.0` on 2026-07-10 with bounded review transactions. Every release from `v0.15.0` onward is part of the unstable RDD development line. New releases will continue improving RDD until the project declares the line stable. The stable version for normal use without native RDD is the last preceding release, `v0.14.0`.
82
+
83
+ ```bash
84
+ # Stable version without native RDD
85
+ pi install npm:gentle-pi@0.14.0
86
+
87
+ # Latest released RDD build (unstable)
88
+ pi install npm:gentle-pi@latest
68
89
  ```
69
90
 
70
- The npm postinstall downloads the exact platform-specific official Gentle AI v2.1.11 archive into this package's private `.gentle-ai/v2.1.11/` directory and verifies its pinned archive and executable SHA-256 values 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.
91
+ The latest RDD package downloads its pinned platform-specific Gentle AI binary into the package's private `.gentle-ai/` directory and verifies archive and executable SHA-256 values 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
92
 
72
93
  Recommended companion packages:
73
94
 
@@ -243,11 +264,13 @@ Lifecycle gates never launch review actors. They rederive Git and publication ta
243
264
 
244
265
  Native contract pairing is exact: this adapter resolves only the integrity-verified package-local Gentle AI v2.1.11 executable, independently hashes it, then negotiates `gentle-ai.review-integration/v1` outside the repository. Capabilities are cached by that executable digest. Every START, target status, FINALIZE, validate, and BIND-SDD request passes the same contract identifier. Current protocol 1.0 envelopes decode exactly against the vendored schemas; `recover` routes only the provider-selected `action_disposition`, and optional additions require a future compatible schema/minor that the provider explicitly advertises and the consumer negotiates.
245
266
 
267
+ Gentle AI also publishes a second negotiated contract, `gentle-ai.review-integration/v2`, which replaces the Base64 `candidate_diff` reviewer transport with immutable `base_tree`/`candidate_tree` plus an ordered `changed_path_manifest` and never an inline patch. `gentle-pi` is migrating to `/v2` only, with no dual-lane fallback; the cutover is release-gated on the pinned runtime confirming it serves contract v2 (already true for the currently pinned v2.2.1) and lands as one atomic commit, tracked by the `migrate-review-integration-v2` change. This provider contract version is unrelated to Pi's own internal "compact-v2" review-authority naming used below — the shared digit is coincidental, not a version pairing.
268
+
246
269
  Target status owns `current_target`, `unrelated`, `ambiguous`, and `corrupted` applicability and returns one native action. Pi does not reconstruct ordinary authority from provider-private files or choose a lineage from repository-wide history. Restart recovery rebuilds only the derived candidate view from the native Git/content projection, including intended-untracked paths, symlinks, and immutable gitlink identities. Native failure envelopes retain their exact mutation outcome, replayability, required inputs, request digest, and next action. After an unknown or lost mutating result, Pi calls target status before any replay decision and returns only the provider-declared action.
247
270
 
248
271
  Direct authorized `git commit` commands use a durable recovery record under the Git common directory. The package runs the effective pre-commit hook once, captures the post-hook index, performs final native validation against that tree, suppresses only the already-completed pre-commit hook while preserving message/post hooks through proxies, and proves `HEAD^{tree}` before the tool result succeeds. Any unresolved, interrupted, failed, or mismatched transaction blocks push, PR, and release. Recovery never resets HEAD or the index automatically.
249
272
 
250
- Once v2.1.11 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.
273
+ Once the pinned gentle-ai runtime (currently v2.2.1) 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.
251
274
 
252
275
  ### FINALIZE wrapper input
253
276
 
@@ -640,14 +663,15 @@ Memory contract for SDD delegation:
640
663
  | ------------------------------ | ---------------------------------------------------------------------------------------------------------- |
641
664
  | `extensions/gentle-ai.ts` | Injects identity, orchestrates native review authority and lifecycle gates, refreshes global SDD assets, registers commands, applies model/persona config, and enforces runtime safety. |
642
665
  | `lib/native-review-cli.ts` | Strict package-local adapter for Gentle AI START, FINALIZE, VALIDATE, SDD binding, and status contracts. |
643
- | `lib/review-integration-v1.ts` | Strict consumer decoder for negotiated capabilities, operations, target status, projections, and failures. |
666
+ | `lib/review-integration-v2.ts` | Strict consumer decoder for negotiated capabilities, operations, target status, projections, repair, and failures against contract `review-integration/v2` (active today). |
644
667
  | `lib/git-commit-transaction.ts` | Durable hook/native-validation/commit/recovery transaction with publication blocking and HEAD proof. |
645
668
  | `lib/review-candidate-view.ts` | Builds immutable changed-scope actor views while preserving full-tree, path, mode, symlink, and index integrity. |
646
669
  | `lib/review-canonical.ts` | Permanent Pi-owned canonical JSON and domain-hash primitives for consumer-side identities. |
647
670
  | `lib/review-repository.ts` | Permanent Pi-owned Git common-directory identity, safe Git environment, and authority-root binding. |
648
671
  | `lib/gentle-ai-binary.ts` | Resolves and verifies the confined package-local Gentle AI runtime without global or PATH fallback. |
649
672
  | `scripts/gentle-ai-installer.mjs` | Downloads, verifies, extracts, and atomically promotes the pinned native runtime for six platform targets. |
650
- | `contracts/review-integration/v1/` | Byte-identical v2.1.11 provider schemas and conformance fixtures, hash-checked before packaging. |
673
+ | `contracts/review-integration/v1/` | Byte-identical provider schemas and conformance fixtures for contract `review-integration/v1`, hash-checked before packaging; retained on disk permanently because `/v2`'s schemas `$ref` into these fragments. |
674
+ | `contracts/review-integration/v2/` | Byte-identical provider schemas and conformance fixtures for contract `review-integration/v2` (immutable `base_tree`/`candidate_tree`, ordered `changed_path_manifest`, no inline candidate diff), hash-checked before packaging. |
651
675
  | `extensions/startup-banner.ts` | Shows and configures the startup intro, color presets, compact runtime panel, and collaboration credit. |
652
676
  | `extensions/sdd-init.ts` | Registers `/sdd-init` for OpenSpec initialization. |
653
677
  | `extensions/skill-registry.ts` | Maintains `.atl/skill-registry.md` from project/user skills and closes file watchers on shutdown. |
@@ -658,7 +682,7 @@ Memory contract for SDD delegation:
658
682
  | `skills/` | Gentle AI delivery and collaboration skills. |
659
683
  | `prompts/` | Gentle-prefixed prompt templates, including `/skill-creation`. |
660
684
  | `docs/skill-style-guide.md` | Normative style guide used by the packaged skill creation/improvement skills. |
661
- | `docs/native-authority-architecture.md` | Post-U8 ownership boundary, reproducible slimming metrics, Windows evidence, and exact #191 seam. |
685
+ | `docs/native-authority-architecture.md` | Post-U8 ownership boundary, reproducible slimming metrics, Windows evidence, exact #191 seam, and the `review-integration/v1`→`v2` migration status, including the "compact-v2" naming disambiguation. |
662
686
  | `docs/review-integration.md` | Negotiated provider/consumer contract and the current Gentle Pi adoption boundary. |
663
687
 
664
688
  ## Development
@@ -683,13 +707,20 @@ npm pack --dry-run
683
707
  Publish npm through GitHub Actions only:
684
708
 
685
709
  ```bash
686
- gh workflow run publish.yml --repo Gentleman-Programming/gentle-pi --ref main -f dist-tag=latest
710
+ version="$(node -p "require('./package.json').version")"
711
+ tag="v${version}"
712
+ git fetch --no-tags origin "refs/tags/${tag}"
713
+ test "$(git rev-parse 'FETCH_HEAD^{commit}')" = "$(git rev-parse "${tag}^{commit}")"
714
+ gh workflow run publish.yml \
715
+ --repo Gentleman-Programming/gentle-pi \
716
+ --ref main \
717
+ -f tag="${tag}"
687
718
  gh run watch <run-id> --repo Gentleman-Programming/gentle-pi --exit-status
688
719
  npm view gentle-pi@<version> version --registry=https://registry.npmjs.org/
689
720
  npm dist-tag ls gentle-pi --registry=https://registry.npmjs.org/
690
721
  ```
691
722
 
692
- Do not run `npm publish` locally for `gentle-pi`; the GitHub workflow provides provenance, environment protection, and registry credentials.
723
+ Do not run `npm publish` locally for `gentle-pi`. Dispatch the trusted workflow definition only from protected default `main` and provide its sole `tag` input. The workflow requires an exact annotated `vSemVer` tag whose peeled commit, current remote `main`, dispatch/main workflow commit, checkout, and `package.json` version are identical. It rechecks remote tag and `main` immediately before publishing through OIDC with provenance and environment protection; an advanced `main` requires a new release version, never a moved tag.
693
724
 
694
725
  ## Principles
695
726
 
@@ -6,7 +6,6 @@ tools:
6
6
  - read
7
7
  - grep
8
8
  - glob
9
- - bash
10
9
  ---
11
10
 
12
11
  You are **R2 Readability**, a read-only reviewer. Find clarity problems; do not fix them.
@@ -6,7 +6,6 @@ tools:
6
6
  - read
7
7
  - grep
8
8
  - glob
9
- - bash
10
9
  ---
11
10
 
12
11
  You are **R3 Reliability**, a read-only reviewer. Find test and behavior risks; do not fix them.
@@ -6,7 +6,6 @@ tools:
6
6
  - read
7
7
  - grep
8
8
  - glob
9
- - bash
10
9
  ---
11
10
 
12
11
  You are **R4 Resilience**, a read-only reviewer. Find operational failure risks; do not fix them.
@@ -6,7 +6,6 @@ tools:
6
6
  - read
7
7
  - grep
8
8
  - glob
9
- - bash
10
9
  ---
11
10
 
12
11
  You are **R1 Risk**, a read-only reviewer. Find security risks; do not fix them.
@@ -0,0 +1,25 @@
1
+ {
2
+ "schema": "gentle-ai.review-integration.failure/v1",
3
+ "contract": "gentle-ai.review-integration/v1",
4
+ "operation": "review.bind_sdd",
5
+ "phase": "pre_native",
6
+ "code": "binding_revision_conflict",
7
+ "message": "The expected SDD review binding revision does not match the current native binding.",
8
+ "mutation_outcome": "not_started",
9
+ "authority_applicability": "current_target",
10
+ "retry_safe": true,
11
+ "replayability": "not_replayable",
12
+ "lineage_id": "review-binding-conflict-fixture",
13
+ "required_inputs": [
14
+ "change",
15
+ "lineage_id",
16
+ "expected_binding_revision"
17
+ ],
18
+ "next_action": "review.bind_sdd",
19
+ "context": {
20
+ "binding_revision": {
21
+ "expected": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
22
+ "current": ""
23
+ }
24
+ }
25
+ }
@@ -0,0 +1,263 @@
1
+ {
2
+ "schema": "gentle-ai.review-integration.capabilities/v1.2",
3
+ "contract": "gentle-ai.review-integration/v1",
4
+ "protocol": {
5
+ "major": 1,
6
+ "minor": 2
7
+ },
8
+ "package": {
9
+ "name": "gentle-ai",
10
+ "version": "2.1.7-test",
11
+ "release_channel": "prerelease"
12
+ },
13
+ "build": {
14
+ "id": "sha256:444a9f0608eb22c4697fd2092f3afcfab040c0918343e7e04087730fd33fd5e1",
15
+ "go_version": "go1.25.10",
16
+ "module_version": "v2.1.7",
17
+ "vcs": "git",
18
+ "vcs_revision": "0123456789abcdef0123456789abcdef01234567",
19
+ "vcs_time": "2026-07-15T18:00:00Z",
20
+ "vcs_modified": "false"
21
+ },
22
+ "executable": {
23
+ "sha256": "sha256:dcc846103b16d365eaeeb9d7f289c23fc4f2897f23def1cb3fe7f05557b64705",
24
+ "evidence": "self-reported",
25
+ "verification": "compare-with-published-manifest"
26
+ },
27
+ "operations": [
28
+ "review.bind_sdd",
29
+ "review.capabilities",
30
+ "review.finalize",
31
+ "review.start",
32
+ "review.status",
33
+ "review.validate"
34
+ ],
35
+ "gates": [
36
+ "post-apply",
37
+ "pre-commit",
38
+ "pre-push",
39
+ "pre-pr",
40
+ "release"
41
+ ],
42
+ "projections": [
43
+ "staged",
44
+ "workspace"
45
+ ],
46
+ "schemas": [
47
+ "gentle-ai.review-authority-status/v1",
48
+ "gentle-ai.review-gate-request/v1",
49
+ "gentle-ai.review-integration.capabilities/v1.2",
50
+ "gentle-ai.review-integration.failure/v1",
51
+ "gentle-ai.review-integration.operation/v1",
52
+ "gentle-ai.review-integration.projection/v1",
53
+ "gentle-ai.review-integration.start/v1",
54
+ "gentle-ai.review-integration.status/v1",
55
+ "gentle-ai.review-receipt/v1",
56
+ "gentle-ai.review-receipt/v2",
57
+ "gentle-ai.review-result-artifact/v1",
58
+ "gentle-ai.review-targeted-validation-request/v1",
59
+ "https://gentle-ai.dev/schema/review/refuter/v1",
60
+ "https://gentle-ai.dev/schema/review/reviewer/v1",
61
+ "https://gentle-ai.dev/schema/review/validator/v1"
62
+ ],
63
+ "features": {
64
+ "mandatory": [
65
+ {
66
+ "name": "compact_v2_authority",
67
+ "supported": true,
68
+ "requires": []
69
+ },
70
+ {
71
+ "name": "exact_receipt_replay",
72
+ "supported": true,
73
+ "requires": [
74
+ "compact_v2_authority"
75
+ ]
76
+ },
77
+ {
78
+ "name": "five_delivery_gates",
79
+ "supported": true,
80
+ "requires": [
81
+ "compact_v2_authority"
82
+ ]
83
+ },
84
+ {
85
+ "name": "immutable_snapshot",
86
+ "supported": true,
87
+ "requires": []
88
+ },
89
+ {
90
+ "name": "legacy_v1_target_scoped_read_only",
91
+ "supported": true,
92
+ "requires": [
93
+ "target_scoped_status"
94
+ ]
95
+ },
96
+ {
97
+ "name": "repository_independent_capabilities",
98
+ "supported": true,
99
+ "requires": []
100
+ },
101
+ {
102
+ "name": "restart_safe_projection",
103
+ "supported": true,
104
+ "requires": [
105
+ "target_scoped_status"
106
+ ]
107
+ },
108
+ {
109
+ "name": "sdd_receipt_binding",
110
+ "supported": true,
111
+ "requires": [
112
+ "compact_v2_authority"
113
+ ]
114
+ },
115
+ {
116
+ "name": "target_scoped_status",
117
+ "supported": true,
118
+ "requires": [
119
+ "repository_independent_capabilities"
120
+ ]
121
+ },
122
+ {
123
+ "name": "uniform_failure_envelope",
124
+ "supported": true,
125
+ "requires": [
126
+ "repository_independent_capabilities"
127
+ ]
128
+ }
129
+ ],
130
+ "optional": [
131
+ {
132
+ "name": "base_ref_workspace_overlay",
133
+ "supported": true,
134
+ "requires": [
135
+ "immutable_snapshot",
136
+ "restart_safe_projection"
137
+ ]
138
+ },
139
+ {
140
+ "name": "bounded_process_waits",
141
+ "supported": true,
142
+ "requires": [
143
+ "uniform_failure_envelope"
144
+ ]
145
+ },
146
+ {
147
+ "name": "exact_gate_receipt_discovery",
148
+ "supported": true,
149
+ "requires": [
150
+ "five_delivery_gates"
151
+ ]
152
+ },
153
+ {
154
+ "name": "native_frozen_candidate_context",
155
+ "supported": true,
156
+ "requires": [
157
+ "immutable_snapshot"
158
+ ]
159
+ },
160
+ {
161
+ "name": "native_low_risk_verification",
162
+ "supported": true,
163
+ "requires": [
164
+ "compact_v2_authority"
165
+ ]
166
+ },
167
+ {
168
+ "name": "native_next_transition",
169
+ "supported": true,
170
+ "requires": [
171
+ "target_scoped_status"
172
+ ]
173
+ },
174
+ {
175
+ "name": "opaque_repository_context",
176
+ "supported": true,
177
+ "requires": [
178
+ "compact_v2_authority",
179
+ "native_next_transition"
180
+ ]
181
+ },
182
+ {
183
+ "name": "provider_targeted_validation_request",
184
+ "supported": true,
185
+ "requires": [
186
+ "compact_v2_authority",
187
+ "native_next_transition"
188
+ ]
189
+ },
190
+ {
191
+ "name": "risk_reasons",
192
+ "supported": true,
193
+ "requires": [
194
+ "repository_independent_capabilities"
195
+ ]
196
+ },
197
+ {
198
+ "name": "scope_change_diagnostics",
199
+ "supported": true,
200
+ "requires": [
201
+ "uniform_failure_envelope"
202
+ ]
203
+ }
204
+ ]
205
+ },
206
+ "bootstrap": {
207
+ "command": "gentle-ai review status --cwd \u003crepo\u003e --contract gentle-ai.review-integration/v1 --next-transition",
208
+ "target_selector_variants": [
209
+ {
210
+ "target_type": "staged",
211
+ "arguments": [
212
+ "--projection",
213
+ "staged"
214
+ ]
215
+ },
216
+ {
217
+ "target_type": "base_ref",
218
+ "arguments": [
219
+ "--base-ref",
220
+ "\u003cref\u003e"
221
+ ]
222
+ },
223
+ {
224
+ "target_type": "workspace_overlay_base_ref",
225
+ "arguments": [
226
+ "--workspace-overlay",
227
+ "--base-ref",
228
+ "\u003cref\u003e"
229
+ ]
230
+ },
231
+ {
232
+ "target_type": "workspace_overlay_base_tree",
233
+ "arguments": [
234
+ "--workspace-overlay",
235
+ "--base-tree",
236
+ "\u003ctree\u003e"
237
+ ]
238
+ }
239
+ ],
240
+ "required_feature": "native_next_transition",
241
+ "unsupported_outcome": "unsupported-capability",
242
+ "parent_only": true
243
+ },
244
+ "compatibility": {
245
+ "minimum_protocol_major": 1,
246
+ "maximum_protocol_major": 1,
247
+ "additive_minor_policy": "optional-fields-only",
248
+ "unknown_mandatory": "reject",
249
+ "unknown_optional": "ignore",
250
+ "modes": [
251
+ "compact-v2",
252
+ "legacy-v1"
253
+ ],
254
+ "legacy_window": {
255
+ "mode": "legacy-v1",
256
+ "state": "active",
257
+ "read_only": true,
258
+ "deprecation_started": true,
259
+ "removal": "not-scheduled",
260
+ "minimum_compatibility_releases": 1
261
+ }
262
+ }
263
+ }