gentle-pi 2.1.2 → 2.3.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 (228) hide show
  1. package/README.md +108 -79
  2. package/assets/agents/gentle-ai-worker.md +7 -3
  3. package/assets/agents/jd-fix-agent.md +1 -1
  4. package/assets/agents/jd-judge-a.md +3 -1
  5. package/assets/agents/jd-judge-b.md +3 -1
  6. package/assets/agents/review-readability.md +4 -3
  7. package/assets/agents/review-reliability.md +4 -3
  8. package/assets/agents/review-resilience.md +4 -3
  9. package/assets/agents/review-risk.md +4 -3
  10. package/assets/agents/sdd-apply.md +11 -4
  11. package/assets/agents/sdd-archive.md +6 -1
  12. package/assets/agents/sdd-design.md +6 -1
  13. package/assets/agents/sdd-explore.md +6 -2
  14. package/assets/agents/sdd-init.md +10 -2
  15. package/assets/agents/sdd-onboard.md +6 -1
  16. package/assets/agents/sdd-proposal.md +8 -1
  17. package/assets/agents/sdd-research.md +54 -0
  18. package/assets/agents/sdd-spec.md +6 -1
  19. package/assets/agents/sdd-status.md +10 -5
  20. package/assets/agents/sdd-sync.md +6 -1
  21. package/assets/agents/sdd-tasks.md +8 -4
  22. package/assets/agents/sdd-verify.md +27 -2
  23. package/assets/chains/4r-review.chain.md +2 -0
  24. package/assets/chains/sdd-full.chain.md +2 -2
  25. package/assets/chains/sdd-plan.chain.md +1 -1
  26. package/assets/chains/sdd-verify.chain.md +2 -2
  27. package/assets/orchestrator-delegation.md +145 -160
  28. package/assets/orchestrator-memory.md +2 -0
  29. package/assets/orchestrator.md +25 -48
  30. package/assets/sdd-orchestrator-workflow.md +163 -25
  31. package/assets/support/sdd-status-contract.md +24 -6
  32. package/contracts/review-integration/v1/fixtures/consent.fixture.json +3 -3
  33. package/contracts/review-integration/v1/fixtures/start-v2.fixture.json +19 -28
  34. package/contracts/review-integration/v1/fixtures/start.fixture.json +1 -10
  35. package/contracts/review-integration/v1/fixtures/status-v2.fixture.json +12 -21
  36. package/contracts/review-integration/v1/schemas/correction-plan-request.schema.json +49 -0
  37. package/contracts/review-integration/v1/schemas/operation.schema.json +76 -0
  38. package/contracts/review-integration/v1/schemas/repair.schema.json +39 -0
  39. package/contracts/review-integration/v1/schemas/status-v2.schema.json +4 -2
  40. package/contracts/review-integration/v1/schemas/status.schema.json +4 -2
  41. package/contracts/review-integration/v1/schemas/transition-execution.schema.json +42 -0
  42. package/contracts/review-integration/v2/fixtures/consent.fixture.json +1 -1
  43. package/contracts/review-integration/v2/fixtures/start.fixture.json +1 -10
  44. package/contracts/review-integration/v2/fixtures/status.fixture.json +1 -10
  45. package/contracts/review-integration/v2/schemas/failure.schema.json +5 -1
  46. package/contracts/review-integration/v2/schemas/last-event-closure.schema.json +66 -0
  47. package/contracts/review-integration/v2/schemas/opencode-provider-role.schema.json +14 -0
  48. package/contracts/review-integration/v2/schemas/operation.schema.json +6 -1
  49. package/contracts/review-integration/v2/schemas/repair.schema.json +4 -2
  50. package/contracts/review-integration/v2/schemas/start.schema.json +5 -2
  51. package/contracts/review-integration/v2/schemas/status.schema.json +4 -2
  52. package/contracts/review-provider-contract-mirror/provider-contract.lock.json +30 -0
  53. package/contracts/review-provider-contract-mirror/v1.1.0/bundle/README.md +12 -0
  54. package/contracts/review-provider-contract-mirror/v1.1.0/bundle/manifest.json +65 -0
  55. package/contracts/review-provider-contract-mirror/v1.1.0/bundle/schemas/lens.schema.json +16 -0
  56. package/contracts/review-provider-contract-mirror/v1.1.0/bundle/schemas/refuter.schema.json +1 -0
  57. package/contracts/review-provider-contract-mirror/v1.1.0/bundle/schemas/targeted-validator.schema.json +1 -0
  58. package/contracts/review-provider-contract-mirror/v1.1.0/bundle/vectors/lens.json +1 -0
  59. package/contracts/review-provider-contract-mirror/v1.1.0/bundle/vectors/refuter.json +1 -0
  60. package/contracts/review-provider-contract-mirror/v1.1.0/bundle/vectors/targeted-validator.json +1 -0
  61. package/contracts/review-provider-contract-mirror/v1.1.0/generated/provider-capabilities.baseline.json +15 -0
  62. package/contracts/review-provider-contract-mirror/v1.1.0/generated/provider-roles.baseline.json +42 -0
  63. package/docs/native-authority-architecture.md +14 -16
  64. package/docs/review-integration.md +27 -353
  65. package/extensions/ask-user-choice.ts +151 -0
  66. package/extensions/gentle-ai.ts +2710 -3211
  67. package/extensions/quiet-tools.ts +515 -32
  68. package/extensions/sdd-init.ts +21 -12
  69. package/extensions/skill-registry.ts +10 -2
  70. package/extensions/startup-banner.ts +10 -4
  71. package/lib/gentle-ai-binary.ts +173 -2
  72. package/lib/gentle-ai-renderer.ts +70 -0
  73. package/lib/model-routing-authority.ts +133 -0
  74. package/lib/native-review-cli.ts +676 -781
  75. package/lib/opaque-pi-reviewer-adapter.ts +284 -0
  76. package/lib/provider-contract-bundle.ts +704 -0
  77. package/lib/review-candidate-view.ts +836 -118
  78. package/lib/review-compact-contract.ts +59 -248
  79. package/lib/review-host-relay.ts +578 -0
  80. package/lib/review-integration-v2.ts +1254 -221
  81. package/lib/review-last-event-controller.ts +35 -0
  82. package/lib/review-relay-contract.ts +16 -0
  83. package/lib/sdd-preflight.ts +230 -67
  84. package/lib/sdd-status.ts +66 -111
  85. package/lib/terminal-theme.ts +1 -1
  86. package/package.json +83 -79
  87. package/runtime/gentle-ai-binary.mjs +174 -3
  88. package/runtime/native-review-cli.mjs +610 -715
  89. package/runtime/review-integration-v2.mjs +1223 -190
  90. package/runtime/review-relay-contract.mjs +17 -0
  91. package/scripts/{build-git-commit-transaction-runner.mjs → build-runtime-modules.mjs} +5 -5
  92. package/scripts/check-provider-contract.mjs +138 -0
  93. package/scripts/gentle-ai-installer.mjs +85 -22
  94. package/scripts/maintainer/provider-relay-matrix.mjs +403 -0
  95. package/scripts/mirror-provider-contract.mjs +143 -0
  96. package/scripts/test-packed-runner.mjs +20 -9
  97. package/scripts/verify-package-files.mjs +119 -43
  98. package/skills/_shared/review-ledger-contract.md +11 -19
  99. package/skills/chained-pr/SKILL.md +3 -0
  100. package/skills/cognitive-doc-design/SKILL.md +1 -1
  101. package/skills/comment-writer/SKILL.md +1 -1
  102. package/skills/gentle-ai/SKILL.md +7 -74
  103. package/skills/issue-creation/SKILL.md +94 -168
  104. package/skills/judgment-day/SKILL.md +9 -5
  105. package/skills/judgment-day/references/prompts-and-formats.md +2 -0
  106. package/skills/rdd-defect-workflow/SKILL.md +54 -0
  107. package/skills/release/SKILL.md +3 -3
  108. package/skills/skill-registry/SKILL.md +1 -1
  109. package/skills/work-unit-commits/SKILL.md +3 -1
  110. package/tests/artifact-language.test.ts +24 -11
  111. package/tests/ask-user-choice.test.ts +264 -0
  112. package/tests/background-subagents.test.ts +771 -0
  113. package/tests/codegraph-tools.test.ts +3 -3
  114. package/tests/crosslane/cross-lane.mjs +16 -0
  115. package/tests/delegated-key-learnings-contract.test.ts +240 -0
  116. package/tests/devbinary/native-review-parity.devtest.ts +167 -250
  117. package/tests/devbinary/pi-host-relay.devtest.ts +867 -0
  118. package/tests/fixtures/devbinary/capabilities-v2.1.derived.json +331 -0
  119. package/tests/fixtures/devbinary/capabilities-v2.2.captured.json +340 -0
  120. package/tests/fixtures/devbinary/consent-v3.captured.json +37 -0
  121. package/tests/fixtures/devbinary/failure-v2-capture-evidence.captured.json +16 -0
  122. package/tests/fixtures/devbinary/last-event-capture-correction-plan.captured.json +10 -0
  123. package/tests/fixtures/devbinary/last-event-capture-refuter-approved.captured.json +20 -0
  124. package/tests/fixtures/devbinary/last-event-capture-refuter-correction-required.captured.json +26 -0
  125. package/tests/fixtures/devbinary/last-event-capture-result-approved.captured.json +8 -0
  126. package/tests/fixtures/devbinary/last-event-capture-result-correction-required.captured.json +26 -0
  127. package/tests/fixtures/devbinary/last-event-capture-validation-approved.captured.json +8 -0
  128. package/tests/fixtures/devbinary/last-event-closure.provenance.md +13 -0
  129. package/tests/fixtures/devbinary/result-artifact-v2-path.captured.json +12 -0
  130. package/tests/fixtures/devbinary/result-artifact-v2.captured.json +12 -0
  131. package/tests/fixtures/devbinary/review-acknowledged-v1.captured.json +9 -0
  132. package/tests/fixtures/devbinary/review-acknowledged.provenance.md +31 -0
  133. package/tests/fixtures/devbinary/start-v3-consent-declined.captured.json +19 -0
  134. package/tests/fixtures/devbinary/start-v3-consent-granted.captured.json +109 -0
  135. package/tests/fixtures/devbinary/start-v3-zero-lens-closed.captured.json +21 -0
  136. package/tests/fixtures/devbinary/status-v5-capture-result-submission.captured.json +184 -0
  137. package/tests/fixtures/devbinary/status-v5-repository-context.captured.json +138 -0
  138. package/tests/fixtures/devbinary/status-v5.captured.json +88 -0
  139. package/tests/fixtures/native-review-cli/v2.5.0-rc.1/PROVENANCE.txt +15 -0
  140. package/tests/fixtures/provider-contract-bundle/v1.1.0/README.md +12 -0
  141. package/tests/fixtures/provider-contract-bundle/v1.1.0/manifest.json +65 -0
  142. package/tests/fixtures/provider-contract-bundle/v1.1.0/schemas/lens.schema.json +16 -0
  143. package/tests/fixtures/provider-contract-bundle/v1.1.0/schemas/refuter.schema.json +1 -0
  144. package/tests/fixtures/provider-contract-bundle/v1.1.0/schemas/targeted-validator.schema.json +1 -0
  145. package/tests/fixtures/provider-contract-bundle/v1.1.0/vectors/lens.json +1 -0
  146. package/tests/fixtures/provider-contract-bundle/v1.1.0/vectors/refuter.json +1 -0
  147. package/tests/fixtures/provider-contract-bundle/v1.1.0/vectors/targeted-validator.json +1 -0
  148. package/tests/gentle-ai-binary.test.ts +83 -13
  149. package/tests/gentle-ai-dev-binary-surfacing.test.ts +195 -0
  150. package/tests/gentle-ai-dev-binary.test.ts +159 -0
  151. package/tests/gentle-ai-installer.test.ts +138 -48
  152. package/tests/gentle-ai.test.ts +820 -131
  153. package/tests/gentle-theme.test.ts +133 -0
  154. package/tests/maintainer/provider-relay.maintest.ts +601 -0
  155. package/tests/model-routing-authority.test.ts +257 -0
  156. package/tests/native-review-capability-contract.test.ts +75 -2
  157. package/tests/native-review-cli.test.ts +588 -908
  158. package/tests/native-review-consent.test.ts +283 -38
  159. package/tests/native-review-parity-runtime.test.ts +108 -350
  160. package/tests/native-review-parity.test.ts +684 -732
  161. package/tests/native-sdd-attempt-authority.test.ts +235 -0
  162. package/tests/opaque-pi-reviewer-adapter.test.ts +266 -0
  163. package/tests/orchestrator-budget.test.ts +158 -89
  164. package/tests/orchestrator-rdd-ownership.test.ts +103 -0
  165. package/tests/package-manifest.test.ts +128 -100
  166. package/tests/provider-contract-bundle.test.ts +385 -0
  167. package/tests/provider-contract-mirror.test.ts +206 -0
  168. package/tests/provider-defect-handoff.test.ts +252 -0
  169. package/tests/quiet-tool-rendering.test.ts +1055 -28
  170. package/tests/review-actor-tool-deny.test.ts +12 -13
  171. package/tests/review-authority-recovery-docs.test.ts +1 -2
  172. package/tests/review-candidate-view.test.ts +898 -12
  173. package/tests/review-compact-contract.test.ts +29 -122
  174. package/tests/review-controller-lock-status.test.ts +2 -2
  175. package/tests/review-controller-native-recovery.test.ts +366 -857
  176. package/tests/review-controller-native-routing.test.ts +1253 -4199
  177. package/tests/review-controller-retired-ops.test.ts +1 -1
  178. package/tests/review-controller-workspace-root.test.ts +236 -70
  179. package/tests/review-controller.test.ts +26 -816
  180. package/tests/review-corrected-finalize-binding.test.ts +134 -0
  181. package/tests/review-dispatch-hydration-gap.test.ts +145 -0
  182. package/tests/review-gate.test.ts +0 -45
  183. package/tests/review-host-relay-restart-parity.test.ts +360 -0
  184. package/tests/review-host-relay-routing.test.ts +352 -0
  185. package/tests/review-host-relay.test.ts +754 -0
  186. package/tests/review-integration-v2-forward.test.ts +654 -0
  187. package/tests/review-integration-v2.test.ts +317 -129
  188. package/tests/review-last-event-closure.test.ts +408 -0
  189. package/tests/review-ledger-contract.test.ts +106 -60
  190. package/tests/review-recovered-lineage-routing.test.ts +199 -0
  191. package/tests/review-relay-transport-agent.test.ts +322 -0
  192. package/tests/review-snapshot.test.ts +3 -2
  193. package/tests/runtime-harness.mjs +573 -180
  194. package/tests/sdd-agent-tools.test.ts +53 -32
  195. package/tests/sdd-preflight.test.ts +81 -15
  196. package/tests/sdd-status.test.ts +109 -110
  197. package/tests/skill-collision-prefixes.test.ts +6 -8
  198. package/tests/skill-registry.test.ts +50 -1
  199. package/tests/verify-package-files.test.ts +62 -0
  200. package/tests/writer-edit-surface-scope.test.ts +230 -0
  201. package/themes/Gentleman-Cute.json +94 -0
  202. package/themes/Gentleman-Sexy.json +92 -0
  203. package/assets/agents/review-refuter.md +0 -40
  204. package/assets/agents/review-validator.md +0 -23
  205. package/lib/git-commit-transaction.ts +0 -801
  206. package/lib/native-review-remediation.ts +0 -49
  207. package/lib/review-compact.ts +0 -947
  208. package/lib/review-refuter-adapter.ts +0 -129
  209. package/lib/review-runtime-contract.ts +0 -68
  210. package/prompts/gcl.md +0 -54
  211. package/prompts/gis.md +0 -25
  212. package/prompts/gpr.md +0 -41
  213. package/prompts/gwr.md +0 -31
  214. package/runtime/git-commit-transaction.mjs +0 -802
  215. package/scripts/run-git-commit-transaction.mjs +0 -35
  216. package/tests/fixtures/native-review-cli/v2.1.2/bind-sdd.json +0 -25
  217. package/tests/fixtures/native-review-cli/v2.1.2/finalize.json +0 -8
  218. package/tests/fixtures/native-review-cli/v2.1.2/sdd-status-engram.json +0 -139
  219. package/tests/fixtures/native-review-cli/v2.1.2/sdd-status.json +0 -200
  220. package/tests/fixtures/native-review-cli/v2.1.2/start.json +0 -12
  221. package/tests/fixtures/native-review-cli/v2.1.2/validate-allow.json +0 -24
  222. package/tests/fixtures/native-review-cli/v2.1.2/validate-deny-empty-context.json +0 -20
  223. package/tests/fixtures/native-review-cli/v2.1.2/validate-deny.json +0 -28
  224. package/tests/fixtures/native-review-cli/v2.1.3/sdd-status-engram.json +0 -139
  225. package/tests/fixtures/native-review-cli/v2.1.3/sdd-status.json +0 -200
  226. package/tests/git-commit-transaction.test.ts +0 -302
  227. package/tests/review-compact.test.ts +0 -243
  228. package/tests/review-refuter-adapter.test.ts +0 -89
@@ -1,35 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- import {
4
- assertCommitTransactionIndex,
5
- captureCommitTransactionHead,
6
- COMMIT_TRANSACTION_STATE,
7
- decodeCommitTransactionInvocation,
8
- runGitCommitTransaction,
9
- } from "../runtime/git-commit-transaction.mjs";
10
-
11
- async function main() {
12
- const [operation, payload, ...extra] = process.argv.slice(2);
13
- if (operation === "self-test") {
14
- if (payload !== undefined || extra.length > 0) throw new Error("commit transaction runner self-test takes no payload");
15
- process.stdout.write(`${JSON.stringify({ schema: "gentle-pi.git-commit-transaction-runner-self-test/v1", states: Object.values(COMMIT_TRANSACTION_STATE) })}\n`);
16
- return;
17
- }
18
- if (extra.length > 0 || !payload) throw new Error("commit transaction runner requires one encoded payload");
19
- if (operation === "assert-index") {
20
- assertCommitTransactionIndex(payload);
21
- return;
22
- }
23
- if (operation === "capture-commit") {
24
- captureCommitTransactionHead(payload);
25
- return;
26
- }
27
- if (operation !== "run") throw new Error("commit transaction runner operation is unsupported");
28
- const result = await runGitCommitTransaction(decodeCommitTransactionInvocation(payload));
29
- process.stdout.write(`${JSON.stringify(result)}\n`);
30
- }
31
-
32
- main().catch((error) => {
33
- process.stderr.write(`gentle-pi commit transaction failed: ${error instanceof Error ? error.message : String(error)}\n`);
34
- process.exitCode = 1;
35
- });
@@ -1,25 +0,0 @@
1
- {
2
- "schema": "gentle-ai.sdd-review-binding/v1",
3
- "revision": "sha256:9ae7d725b93eab436053ea9eb04b2d1a5bf4390dd5b10a709e64086e3c833980",
4
- "change": "native-review-authority-parity",
5
- "lineage": "issue136-contract-runtime",
6
- "authority_revision": "sha256:521b6a12b67ed75dd68b9ddb5543822c88da97a88e7257fd780b37dbedc35f8c",
7
- "receipt_hash": "sha256:50edda8e4b081e0b905592d598ffdb1b6c6edea45879715544eaeba4150c1059",
8
- "gate_context": {
9
- "gate": "post-apply",
10
- "lineage_id": "issue136-contract-runtime",
11
- "generation": 1,
12
- "store_revision": "sha256:521b6a12b67ed75dd68b9ddb5543822c88da97a88e7257fd780b37dbedc35f8c",
13
- "genesis_revision": "sha256:521b6a12b67ed75dd68b9ddb5543822c88da97a88e7257fd780b37dbedc35f8c",
14
- "chain_identity": "sha256:521b6a12b67ed75dd68b9ddb5543822c88da97a88e7257fd780b37dbedc35f8c",
15
- "bundle_digest": "sha256:521b6a12b67ed75dd68b9ddb5543822c88da97a88e7257fd780b37dbedc35f8c",
16
- "base_tree": "cb234a1435871ed095db961750b8bb944fadbd43",
17
- "candidate_tree": "3f8acce95a176230e45398698722eaee3091d625",
18
- "paths_digest": "sha256:0cc3964e29bb296c5f17bc496325961ed0df989b5333ac20d05770776a34be52",
19
- "fix_delta_hash": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
20
- "policy_hash": "sha256:34fb63d7f29f8613cd4431382b1057398a4816f8a4c20fc34677fffc80a184f6",
21
- "ledger_hash": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
22
- "evidence_hash": "sha256:2fa17828f842a4043ff7be11e4f439f40c6b06e1275538b6b4c800a27446f9d9",
23
- "base_relationship_valid": true
24
- }
25
- }
@@ -1,8 +0,0 @@
1
- {
2
- "operation": "review/finalize",
3
- "lineage_id": "lineage-1",
4
- "state": "approved",
5
- "action": "validate delivery with gentle-ai review validate --gate \u003cgate\u003e",
6
- "store_revision": "sha256:7a0fde32ddb4f17b77120c9c2a940c700ab5f8a7730b5e207c631b3a38b58f2c",
7
- "receipt_path": "/tmp/gentle-ai-v212-finalize-UsUFIr/.git/gentle-ai/review-transactions/v2/lineage-1/review-receipt.json"
8
- }
@@ -1,139 +0,0 @@
1
- {
2
- "schemaName": "gentle-ai.sdd-status",
3
- "schemaVersion": 1,
4
- "changeName": "native-review-authority-parity",
5
- "artifactStore": "engram",
6
- "planningHome": {
7
- "mode": "repo-local",
8
- "path": "engram:sdd"
9
- },
10
- "changeRoot": "engram:sdd/native-review-authority-parity",
11
- "artifactPaths": {
12
- "proposal": [
13
- "sdd/native-review-authority-parity/proposal"
14
- ],
15
- "specs": [
16
- "sdd/native-review-authority-parity/spec"
17
- ],
18
- "design": [
19
- "sdd/native-review-authority-parity/design"
20
- ],
21
- "tasks": [
22
- "sdd/native-review-authority-parity/tasks"
23
- ],
24
- "applyProgress": [],
25
- "verifyReport": [],
26
- "reviewPolicy": [
27
- "sdd/native-review-authority-parity/review/policy"
28
- ],
29
- "reviewLedger": [],
30
- "reviewReceipt": [],
31
- "reviewBundle": [],
32
- "reviewContext": [],
33
- "reviewState": []
34
- },
35
- "contextFiles": {
36
- "proposal": [
37
- "sdd/native-review-authority-parity/proposal"
38
- ],
39
- "specs": [
40
- "sdd/native-review-authority-parity/spec"
41
- ],
42
- "design": [
43
- "sdd/native-review-authority-parity/design"
44
- ],
45
- "tasks": [
46
- "sdd/native-review-authority-parity/tasks"
47
- ],
48
- "applyProgress": [],
49
- "verifyReport": [],
50
- "reviewPolicy": [
51
- "sdd/native-review-authority-parity/review/policy"
52
- ],
53
- "reviewLedger": [],
54
- "reviewReceipt": [],
55
- "reviewBundle": [],
56
- "reviewContext": [],
57
- "reviewState": []
58
- },
59
- "artifacts": {
60
- "applyProgress": "missing",
61
- "design": "done",
62
- "proposal": "done",
63
- "reviewBundle": "missing",
64
- "reviewContext": "missing",
65
- "reviewLedger": "missing",
66
- "reviewPolicy": "done",
67
- "reviewReceipt": "missing",
68
- "reviewState": "missing",
69
- "specs": "done",
70
- "tasks": "done",
71
- "verifyReport": "missing"
72
- },
73
- "taskProgress": {
74
- "total": 1,
75
- "completed": 0,
76
- "pending": 1,
77
- "allComplete": false
78
- },
79
- "dependencies": {
80
- "proposal": "all_done",
81
- "specs": "all_done",
82
- "design": "all_done",
83
- "tasks": "all_done",
84
- "apply": "ready",
85
- "verify": "blocked",
86
- "archive": "blocked"
87
- },
88
- "applyState": "ready",
89
- "actionContext": {
90
- "mode": "repo-local",
91
- "workspaceRoot": "/tmp/gentle-ai-v212-engram-1f17zo",
92
- "allowedEditRoots": [
93
- "/tmp/gentle-ai-v212-engram-1f17zo"
94
- ]
95
- },
96
- "relationships": {
97
- "dependsOn": [],
98
- "supersedes": [],
99
- "amends": [],
100
- "conflictsWith": [],
101
- "sameDomainActiveChanges": []
102
- },
103
- "remediationState": {
104
- "required": false,
105
- "complete": false,
106
- "failedEvidenceRevision": "",
107
- "lineageId": "",
108
- "generation": 0,
109
- "fixBatch": 0,
110
- "reason": ""
111
- },
112
- "phaseInstructions": {
113
- "apply": [
114
- "Change: native-review-authority-parity",
115
- "State: ready",
116
- "Read proposal, specs, design, and tasks before editing.",
117
- "Implement only unchecked tasks and update tasks.md checkboxes as work completes."
118
- ],
119
- "verify": [
120
- "Change: native-review-authority-parity",
121
- "State: blocked",
122
- "Verify implementation against proposal, specs, design, and task completion.",
123
- "Run final verification only after every task is complete; apply-progress never makes final verification ready."
124
- ],
125
- "remediate": [
126
- "Change: native-review-authority-parity",
127
- "Remediation is allowed only when the persisted review transaction has remaining mode-specific budget.",
128
- "Bind focused tests, runtime harness evidence, and rollback evidence to the exact failed evidence revision.",
129
- "A bare remediation envelope or stale failed revision never completes remediation."
130
- ],
131
- "archive": [
132
- "Change: native-review-authority-parity",
133
- "State: blocked",
134
- "Archive only when verify-report.md exists and every task checkbox is complete."
135
- ]
136
- },
137
- "nextRecommended": "apply",
138
- "blockedReasons": []
139
- }
@@ -1,200 +0,0 @@
1
- {
2
- "schemaName": "gentle-ai.sdd-status",
3
- "schemaVersion": 1,
4
- "changeName": "native-review-authority-parity",
5
- "artifactStore": "openspec",
6
- "planningHome": {
7
- "mode": "repo-local",
8
- "path": "/tmp/gentle-ai-v212-contract-9XGIB4/openspec"
9
- },
10
- "changeRoot": "/tmp/gentle-ai-v212-contract-9XGIB4/openspec/changes/native-review-authority-parity",
11
- "artifactPaths": {
12
- "proposal": [
13
- "/tmp/gentle-ai-v212-contract-9XGIB4/openspec/changes/native-review-authority-parity/proposal.md"
14
- ],
15
- "specs": [
16
- "/tmp/gentle-ai-v212-contract-9XGIB4/openspec/changes/native-review-authority-parity/specs/review/spec.md"
17
- ],
18
- "design": [
19
- "/tmp/gentle-ai-v212-contract-9XGIB4/openspec/changes/native-review-authority-parity/design.md"
20
- ],
21
- "tasks": [
22
- "/tmp/gentle-ai-v212-contract-9XGIB4/openspec/changes/native-review-authority-parity/tasks.md"
23
- ],
24
- "applyProgress": [],
25
- "verifyReport": [
26
- "/tmp/gentle-ai-v212-contract-9XGIB4/openspec/changes/native-review-authority-parity/verify-report.md"
27
- ],
28
- "reviewPolicy": [],
29
- "reviewLedger": [],
30
- "reviewReceipt": [],
31
- "reviewBundle": [],
32
- "reviewContext": [],
33
- "reviewState": [
34
- "/tmp/gentle-ai-v212-contract-9XGIB4/openspec/changes/native-review-authority-parity/reviews/transaction.json"
35
- ]
36
- },
37
- "contextFiles": {
38
- "proposal": [
39
- "/tmp/gentle-ai-v212-contract-9XGIB4/openspec/changes/native-review-authority-parity/proposal.md"
40
- ],
41
- "specs": [
42
- "/tmp/gentle-ai-v212-contract-9XGIB4/openspec/changes/native-review-authority-parity/specs/review/spec.md"
43
- ],
44
- "design": [
45
- "/tmp/gentle-ai-v212-contract-9XGIB4/openspec/changes/native-review-authority-parity/design.md"
46
- ],
47
- "tasks": [
48
- "/tmp/gentle-ai-v212-contract-9XGIB4/openspec/changes/native-review-authority-parity/tasks.md"
49
- ],
50
- "applyProgress": [],
51
- "verifyReport": [
52
- "/tmp/gentle-ai-v212-contract-9XGIB4/openspec/changes/native-review-authority-parity/verify-report.md"
53
- ],
54
- "reviewPolicy": [],
55
- "reviewLedger": [],
56
- "reviewReceipt": [],
57
- "reviewBundle": [],
58
- "reviewContext": [],
59
- "reviewState": [
60
- "/tmp/gentle-ai-v212-contract-9XGIB4/openspec/changes/native-review-authority-parity/reviews/transaction.json"
61
- ]
62
- },
63
- "artifacts": {
64
- "applyProgress": "missing",
65
- "design": "done",
66
- "proposal": "done",
67
- "reviewBundle": "missing",
68
- "reviewContext": "missing",
69
- "reviewLedger": "missing",
70
- "reviewReceipt": "missing",
71
- "reviewState": "done",
72
- "specs": "done",
73
- "tasks": "done",
74
- "verifyReport": "done"
75
- },
76
- "taskProgress": {
77
- "total": 1,
78
- "completed": 1,
79
- "pending": 0,
80
- "allComplete": true
81
- },
82
- "dependencies": {
83
- "proposal": "all_done",
84
- "specs": "all_done",
85
- "design": "all_done",
86
- "tasks": "all_done",
87
- "apply": "all_done",
88
- "verify": "all_done",
89
- "archive": "ready"
90
- },
91
- "applyState": "all_done",
92
- "actionContext": {
93
- "mode": "repo-local",
94
- "workspaceRoot": "/tmp/gentle-ai-v212-contract-9XGIB4",
95
- "allowedEditRoots": [
96
- "/tmp/gentle-ai-v212-contract-9XGIB4"
97
- ]
98
- },
99
- "relationships": {
100
- "dependsOn": [],
101
- "supersedes": [],
102
- "amends": [],
103
- "conflictsWith": [],
104
- "sameDomainActiveChanges": []
105
- },
106
- "remediationState": {
107
- "required": false,
108
- "complete": false,
109
- "failedEvidenceRevision": "",
110
- "lineageId": "",
111
- "generation": 0,
112
- "fixBatch": 0,
113
- "reason": ""
114
- },
115
- "reviewGate": {
116
- "result": "allow",
117
- "reason": "explicit bound compact authority exactly matches the current repository"
118
- },
119
- "reviewTransaction": {
120
- "schema": "gentle-ai.review-transaction/v1",
121
- "lineage_id": "issue-1099-corrected-candidate-review-20260710",
122
- "mode": "ordinary_4r",
123
- "generation": 1,
124
- "state": "reviewing",
125
- "snapshot": {
126
- "kind": "current-changes",
127
- "base_tree": "ba040f17cdcd2a5960361971eaff79684c48847a",
128
- "candidate_tree": "5bc2f4bdd086d064bc3ada255f16c631facc6839",
129
- "paths_digest": "sha256:4a52771035fe6ef25f0155b11c052a661879b1cd1af4bbe5cd337118a9dd29dd",
130
- "intended_untracked": [
131
- "assets/agents/gentle-ai-explore.md",
132
- "assets/agents/gentle-ai-verify.md"
133
- ],
134
- "intended_untracked_proof": "sha256:ea65650186e3d14ed53ae4912a2a30127863fe9aec0e4c14050e4fa154b0bfa3",
135
- "paths": [
136
- "assets/agents/gentle-ai-explore.md",
137
- "assets/agents/gentle-ai-verify.md",
138
- "assets/orchestrator-delegation.md",
139
- "assets/orchestrator.md",
140
- "tests/package-manifest.test.ts",
141
- "tests/sdd-agent-tools.test.ts"
142
- ],
143
- "identity": "sha256:d88627d276b790d1ed58abc44118d1d95a9620d9755d5e61c8fbda0f97cea53c"
144
- },
145
- "base_tree": "ba040f17cdcd2a5960361971eaff79684c48847a",
146
- "paths_digest": "sha256:4a52771035fe6ef25f0155b11c052a661879b1cd1af4bbe5cd337118a9dd29dd",
147
- "initial_review_tree": "5bc2f4bdd086d064bc3ada255f16c631facc6839",
148
- "final_candidate_tree": "5bc2f4bdd086d064bc3ada255f16c631facc6839",
149
- "fix_delta_hash": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
150
- "policy_hash": "sha256:9197a98b8c5ceac34da4e8d213908d68023f215e891ecb85dfe9fb0b355f9482",
151
- "ledger_hash": "",
152
- "ledger_findings_hash": "",
153
- "evidence_hash": "",
154
- "judge_proofs": [],
155
- "counters": {
156
- "full_reviews": 1,
157
- "refuter_batches": 0,
158
- "fix_batches": 0,
159
- "scoped_fix_validations": 0,
160
- "final_verifications": 0,
161
- "fix_rounds": 0,
162
- "scoped_rejudgments": 0,
163
- "judge_executions": 0
164
- },
165
- "findings": [],
166
- "classifications": {},
167
- "outcomes": {},
168
- "fix_finding_ids": [],
169
- "pending_refuter_ids": [],
170
- "fix_caused_findings": [],
171
- "follow_ups": []
172
- },
173
- "phaseInstructions": {
174
- "apply": [
175
- "Change: native-review-authority-parity",
176
- "State: all_done",
177
- "Read proposal, specs, design, and tasks before editing.",
178
- "Implement only unchecked tasks and update tasks.md checkboxes as work completes."
179
- ],
180
- "verify": [
181
- "Change: native-review-authority-parity",
182
- "State: all_done",
183
- "Verify implementation against proposal, specs, design, and task completion.",
184
- "Run final verification only after every task is complete; apply-progress never makes final verification ready."
185
- ],
186
- "remediate": [
187
- "Change: native-review-authority-parity",
188
- "Remediation is allowed only when the persisted review transaction has remaining mode-specific budget.",
189
- "Bind focused tests, runtime harness evidence, and rollback evidence to the exact failed evidence revision.",
190
- "A bare remediation envelope or stale failed revision never completes remediation."
191
- ],
192
- "archive": [
193
- "Change: native-review-authority-parity",
194
- "State: ready",
195
- "Archive only when verify-report.md exists and every task checkbox is complete."
196
- ]
197
- },
198
- "nextRecommended": "archive",
199
- "blockedReasons": []
200
- }
@@ -1,12 +0,0 @@
1
- {
2
- "operation": "review/start",
3
- "lineage_id": "lineage-1",
4
- "state": "reviewing",
5
- "risk_level": "medium",
6
- "selected_lenses": [
7
- "review-reliability"
8
- ],
9
- "changed_files": 1,
10
- "changed_lines": 2,
11
- "correction_budget": 1
12
- }
@@ -1,24 +0,0 @@
1
- {
2
- "schema": "gentle-ai.review-gate-result/v1",
3
- "result": "allow",
4
- "allowed": true,
5
- "action": "continue",
6
- "reason": "authoritative transaction, current repository target, and content-bound artifacts match",
7
- "context": {
8
- "gate": "post-apply",
9
- "lineage_id": "issue136-contract-runtime",
10
- "generation": 1,
11
- "store_revision": "sha256:521b6a12b67ed75dd68b9ddb5543822c88da97a88e7257fd780b37dbedc35f8c",
12
- "genesis_revision": "sha256:521b6a12b67ed75dd68b9ddb5543822c88da97a88e7257fd780b37dbedc35f8c",
13
- "chain_identity": "sha256:521b6a12b67ed75dd68b9ddb5543822c88da97a88e7257fd780b37dbedc35f8c",
14
- "bundle_digest": "sha256:521b6a12b67ed75dd68b9ddb5543822c88da97a88e7257fd780b37dbedc35f8c",
15
- "base_tree": "cb234a1435871ed095db961750b8bb944fadbd43",
16
- "candidate_tree": "3f8acce95a176230e45398698722eaee3091d625",
17
- "paths_digest": "sha256:0cc3964e29bb296c5f17bc496325961ed0df989b5333ac20d05770776a34be52",
18
- "fix_delta_hash": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
19
- "policy_hash": "sha256:34fb63d7f29f8613cd4431382b1057398a4816f8a4c20fc34677fffc80a184f6",
20
- "ledger_hash": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
21
- "evidence_hash": "sha256:2fa17828f842a4043ff7be11e4f439f40c6b06e1275538b6b4c800a27446f9d9",
22
- "base_relationship_valid": true
23
- }
24
- }
@@ -1,20 +0,0 @@
1
- {
2
- "schema": "gentle-ai.review-gate-result/v1",
3
- "result": "invalidated",
4
- "allowed": false,
5
- "action": "explicit-maintainer-action",
6
- "reason": "compact gate inputs cannot be derived: configured upstream is missing or ambiguous; pass --base-ref \u003cremote\u003e/\u003cbranch\u003e",
7
- "context": {
8
- "gate": "",
9
- "lineage_id": "",
10
- "generation": 0,
11
- "base_tree": "",
12
- "candidate_tree": "",
13
- "paths_digest": "",
14
- "fix_delta_hash": "",
15
- "policy_hash": "",
16
- "ledger_hash": "",
17
- "evidence_hash": "",
18
- "base_relationship_valid": false
19
- }
20
- }
@@ -1,28 +0,0 @@
1
- {
2
- "schema": "gentle-ai.review-gate-result/v1",
3
- "result": "scope-changed",
4
- "allowed": false,
5
- "action": "create-new-lineage",
6
- "reason": "current repository target no longer matches the reviewed scope",
7
- "context": {
8
- "gate": "post-apply",
9
- "lineage_id": "issue136-contract-runtime",
10
- "generation": 1,
11
- "store_revision": "sha256:521b6a12b67ed75dd68b9ddb5543822c88da97a88e7257fd780b37dbedc35f8c",
12
- "genesis_revision": "sha256:521b6a12b67ed75dd68b9ddb5543822c88da97a88e7257fd780b37dbedc35f8c",
13
- "chain_identity": "sha256:521b6a12b67ed75dd68b9ddb5543822c88da97a88e7257fd780b37dbedc35f8c",
14
- "bundle_digest": "sha256:521b6a12b67ed75dd68b9ddb5543822c88da97a88e7257fd780b37dbedc35f8c",
15
- "base_tree": "cb234a1435871ed095db961750b8bb944fadbd43",
16
- "candidate_tree": "115773e92c079a714c37dad42ff672cdcc715d8c",
17
- "paths_digest": "sha256:0cc3964e29bb296c5f17bc496325961ed0df989b5333ac20d05770776a34be52",
18
- "fix_delta_hash": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
19
- "policy_hash": "sha256:34fb63d7f29f8613cd4431382b1057398a4816f8a4c20fc34677fffc80a184f6",
20
- "ledger_hash": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
21
- "evidence_hash": "sha256:2fa17828f842a4043ff7be11e4f439f40c6b06e1275538b6b4c800a27446f9d9",
22
- "base_relationship_valid": true,
23
- "denial": {
24
- "stage": "receipt-binding",
25
- "code": "candidate-or-paths-mismatch"
26
- }
27
- }
28
- }
@@ -1,139 +0,0 @@
1
- {
2
- "schemaName": "gentle-ai.sdd-status",
3
- "schemaVersion": 1,
4
- "changeName": "native-review-authority-parity",
5
- "artifactStore": "engram",
6
- "planningHome": {
7
- "mode": "repo-local",
8
- "path": "engram:sdd"
9
- },
10
- "changeRoot": "engram:sdd/native-review-authority-parity",
11
- "artifactPaths": {
12
- "proposal": [
13
- "sdd/native-review-authority-parity/proposal"
14
- ],
15
- "specs": [
16
- "sdd/native-review-authority-parity/spec"
17
- ],
18
- "design": [
19
- "sdd/native-review-authority-parity/design"
20
- ],
21
- "tasks": [
22
- "sdd/native-review-authority-parity/tasks"
23
- ],
24
- "applyProgress": [],
25
- "verifyReport": [],
26
- "reviewPolicy": [
27
- "sdd/native-review-authority-parity/review/policy"
28
- ],
29
- "reviewLedger": [],
30
- "reviewReceipt": [],
31
- "reviewBundle": [],
32
- "reviewContext": [],
33
- "reviewState": []
34
- },
35
- "contextFiles": {
36
- "proposal": [
37
- "sdd/native-review-authority-parity/proposal"
38
- ],
39
- "specs": [
40
- "sdd/native-review-authority-parity/spec"
41
- ],
42
- "design": [
43
- "sdd/native-review-authority-parity/design"
44
- ],
45
- "tasks": [
46
- "sdd/native-review-authority-parity/tasks"
47
- ],
48
- "applyProgress": [],
49
- "verifyReport": [],
50
- "reviewPolicy": [
51
- "sdd/native-review-authority-parity/review/policy"
52
- ],
53
- "reviewLedger": [],
54
- "reviewReceipt": [],
55
- "reviewBundle": [],
56
- "reviewContext": [],
57
- "reviewState": []
58
- },
59
- "artifacts": {
60
- "applyProgress": "missing",
61
- "design": "done",
62
- "proposal": "done",
63
- "reviewBundle": "missing",
64
- "reviewContext": "missing",
65
- "reviewLedger": "missing",
66
- "reviewPolicy": "done",
67
- "reviewReceipt": "missing",
68
- "reviewState": "missing",
69
- "specs": "done",
70
- "tasks": "done",
71
- "verifyReport": "missing"
72
- },
73
- "taskProgress": {
74
- "total": 1,
75
- "completed": 0,
76
- "pending": 1,
77
- "allComplete": false
78
- },
79
- "dependencies": {
80
- "proposal": "all_done",
81
- "specs": "all_done",
82
- "design": "all_done",
83
- "tasks": "all_done",
84
- "apply": "ready",
85
- "verify": "blocked",
86
- "archive": "blocked"
87
- },
88
- "applyState": "ready",
89
- "actionContext": {
90
- "mode": "repo-local",
91
- "workspaceRoot": "/tmp/gentle-ai-v212-engram-1f17zo",
92
- "allowedEditRoots": [
93
- "/tmp/gentle-ai-v212-engram-1f17zo"
94
- ]
95
- },
96
- "relationships": {
97
- "dependsOn": [],
98
- "supersedes": [],
99
- "amends": [],
100
- "conflictsWith": [],
101
- "sameDomainActiveChanges": []
102
- },
103
- "remediationState": {
104
- "required": false,
105
- "complete": false,
106
- "failedEvidenceRevision": "",
107
- "lineageId": "",
108
- "generation": 0,
109
- "fixBatch": 0,
110
- "reason": ""
111
- },
112
- "phaseInstructions": {
113
- "apply": [
114
- "Change: native-review-authority-parity",
115
- "State: ready",
116
- "Read proposal, specs, design, and tasks before editing.",
117
- "Implement only unchecked tasks and update tasks.md checkboxes as work completes."
118
- ],
119
- "verify": [
120
- "Change: native-review-authority-parity",
121
- "State: blocked",
122
- "Verify implementation against proposal, specs, design, and task completion.",
123
- "Run final verification only after every task is complete; apply-progress never makes final verification ready."
124
- ],
125
- "remediate": [
126
- "Change: native-review-authority-parity",
127
- "Remediation is allowed only when the persisted review transaction has remaining mode-specific budget.",
128
- "Bind focused tests, runtime harness evidence, and rollback evidence to the exact failed evidence revision.",
129
- "A bare remediation envelope or stale failed revision never completes remediation."
130
- ],
131
- "archive": [
132
- "Change: native-review-authority-parity",
133
- "State: blocked",
134
- "Archive only when verify-report.md exists and every task checkbox is complete."
135
- ]
136
- },
137
- "nextRecommended": "apply",
138
- "blockedReasons": []
139
- }