gentle-pi 1.0.6 → 1.2.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 (104) hide show
  1. package/README.md +44 -22
  2. package/assets/agents/jd-judge-a.md +1 -0
  3. package/assets/agents/jd-judge-b.md +1 -0
  4. package/assets/agents/review-readability.md +1 -0
  5. package/assets/agents/review-refuter.md +1 -0
  6. package/assets/agents/review-reliability.md +1 -0
  7. package/assets/agents/review-resilience.md +1 -0
  8. package/assets/agents/review-risk.md +1 -0
  9. package/assets/agents/review-validator.md +1 -0
  10. package/assets/orchestrator-delegation.md +11 -9
  11. package/assets/orchestrator.md +4 -4
  12. package/contracts/review-integration/v1/fixtures/capabilities-v1.1.fixture.json +239 -0
  13. package/contracts/review-integration/v1/fixtures/capabilities.fixture.json +186 -0
  14. package/contracts/review-integration/v1/fixtures/failure.fixture.json +47 -0
  15. package/contracts/review-integration/v1/fixtures/operation.fixture.json +61 -0
  16. package/contracts/review-integration/v1/fixtures/start.fixture.json +27 -0
  17. package/contracts/review-integration/v1/fixtures/status-ambiguous.fixture.json +79 -0
  18. package/contracts/review-integration/v1/fixtures/status-corrupted.fixture.json +76 -0
  19. package/contracts/review-integration/v1/fixtures/status-recover.fixture.json +99 -0
  20. package/contracts/review-integration/v1/fixtures/status-unrelated.fixture.json +72 -0
  21. package/contracts/review-integration/v1/fixtures/status.fixture.json +123 -0
  22. package/contracts/review-integration/v1/schemas/capabilities-v1.1.schema.json +245 -0
  23. package/contracts/review-integration/v1/schemas/capabilities.schema.json +221 -0
  24. package/contracts/review-integration/v1/schemas/failure.schema.json +117 -0
  25. package/contracts/review-integration/v1/schemas/operation.schema.json +67 -0
  26. package/contracts/review-integration/v1/schemas/projection.schema.json +44 -0
  27. package/contracts/review-integration/v1/schemas/result-artifact.schema.json +12 -0
  28. package/contracts/review-integration/v1/schemas/start.schema.json +102 -0
  29. package/contracts/review-integration/v1/schemas/status.schema.json +237 -0
  30. package/docs/native-authority-architecture.md +108 -0
  31. package/docs/review-integration.md +223 -0
  32. package/extensions/gentle-ai.ts +741 -949
  33. package/lib/gentle-ai-binary.ts +1 -1
  34. package/lib/git-commit-transaction.ts +801 -0
  35. package/lib/native-review-cli.ts +699 -15
  36. package/lib/review-candidate-view.ts +138 -19
  37. package/lib/review-compact-contract.ts +10 -1
  38. package/lib/review-integration-v1.ts +795 -0
  39. package/lib/review-lock.ts +15 -1
  40. package/lib/review-object-store.ts +2 -2
  41. package/lib/review-publication-gate.ts +513 -0
  42. package/lib/review-repository.ts +23 -23
  43. package/lib/review-snapshot.ts +0 -59
  44. package/lib/review-transaction.ts +40 -833
  45. package/package.json +7 -2
  46. package/runtime/gentle-ai-binary.mjs +91 -0
  47. package/runtime/git-commit-transaction.mjs +802 -0
  48. package/runtime/native-review-cli.mjs +1511 -0
  49. package/runtime/review-integration-v1.mjs +796 -0
  50. package/scripts/build-git-commit-transaction-runner.mjs +66 -0
  51. package/scripts/gentle-ai-installer.mjs +16 -8
  52. package/scripts/install-gentle-ai.mjs +2 -2
  53. package/scripts/measure-native-authority-slimming.mjs +111 -0
  54. package/scripts/run-git-commit-transaction.mjs +35 -0
  55. package/scripts/test-packed-runner.mjs +66 -0
  56. package/scripts/verify-package-files.mjs +81 -2
  57. package/skills/_shared/review-ledger-contract.md +10 -10
  58. package/skills/gentle-ai/SKILL.md +11 -9
  59. package/tests/gentle-ai-binary.test.ts +25 -18
  60. package/tests/gentle-ai-installer.test.ts +44 -19
  61. package/tests/gentle-ai.test.ts +1 -1
  62. package/tests/git-commit-transaction.test.ts +302 -0
  63. package/tests/native-review-cli.test.ts +76 -7
  64. package/tests/native-review-integration-v1.test.ts +102 -0
  65. package/tests/native-review-parity-runtime.test.ts +36 -11
  66. package/tests/package-manifest.test.ts +56 -5
  67. package/tests/review-actor-tool-deny.test.ts +130 -0
  68. package/tests/review-authority-recovery-docs.test.ts +16 -11
  69. package/tests/review-candidate-view.test.ts +61 -0
  70. package/tests/review-compact-contract.test.ts +53 -0
  71. package/tests/review-controller-lock-status.test.ts +145 -0
  72. package/tests/review-controller-native-recovery.test.ts +786 -0
  73. package/tests/review-controller-native-routing.test.ts +780 -476
  74. package/tests/review-controller-retired-ops.test.ts +54 -0
  75. package/tests/review-controller-workspace-root.test.ts +311 -0
  76. package/tests/review-controller.test.ts +22 -796
  77. package/tests/review-gate.test.ts +16 -7
  78. package/tests/review-integration-v1.test.ts +530 -0
  79. package/tests/review-ledger-contract.test.ts +19 -13
  80. package/tests/review-lock.test.ts +52 -2
  81. package/tests/review-repository.test.ts +15 -1
  82. package/tests/review-snapshot.test.ts +2 -15
  83. package/tests/review-transaction.test.ts +27 -51
  84. package/tests/runtime-harness.mjs +11 -6
  85. package/tests/sdd-agent-tools.test.ts +3 -1
  86. package/lib/review-authority-supersession.ts +0 -1055
  87. package/lib/review-bundle.ts +0 -286
  88. package/lib/review-checkpoint.ts +0 -127
  89. package/lib/review-compact-gate.ts +0 -219
  90. package/lib/review-compact-store.ts +0 -722
  91. package/lib/review-facade.ts +0 -508
  92. package/lib/review-graph-reducer.ts +0 -55
  93. package/lib/review-mirror.ts +0 -46
  94. package/lib/review-reset.ts +0 -261
  95. package/tests/review-authority-supersession.test.ts +0 -581
  96. package/tests/review-bundle.test.ts +0 -253
  97. package/tests/review-checkpoint.test.ts +0 -61
  98. package/tests/review-compact-gate.test.ts +0 -376
  99. package/tests/review-compact-store.test.ts +0 -124
  100. package/tests/review-facade.test.ts +0 -382
  101. package/tests/review-graph.test.ts +0 -27
  102. package/tests/review-mirror.test.ts +0 -20
  103. package/tests/review-reset.test.ts +0 -456
  104. package/tests/review-runtime-contract.test.ts +0 -70
@@ -0,0 +1,186 @@
1
+ {
2
+ "schema": "gentle-ai.review-integration.capabilities/v1",
3
+ "contract": "gentle-ai.review-integration/v1",
4
+ "protocol": {
5
+ "major": 1,
6
+ "minor": 0
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",
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
+ "https://gentle-ai.dev/schema/review/refuter/v1",
59
+ "https://gentle-ai.dev/schema/review/reviewer/v1",
60
+ "https://gentle-ai.dev/schema/review/validator/v1"
61
+ ],
62
+ "features": {
63
+ "mandatory": [
64
+ {
65
+ "name": "compact_v2_authority",
66
+ "supported": true,
67
+ "requires": []
68
+ },
69
+ {
70
+ "name": "exact_receipt_replay",
71
+ "supported": true,
72
+ "requires": [
73
+ "compact_v2_authority"
74
+ ]
75
+ },
76
+ {
77
+ "name": "five_delivery_gates",
78
+ "supported": true,
79
+ "requires": [
80
+ "compact_v2_authority"
81
+ ]
82
+ },
83
+ {
84
+ "name": "immutable_snapshot",
85
+ "supported": true,
86
+ "requires": []
87
+ },
88
+ {
89
+ "name": "legacy_v1_target_scoped_read_only",
90
+ "supported": true,
91
+ "requires": [
92
+ "target_scoped_status"
93
+ ]
94
+ },
95
+ {
96
+ "name": "repository_independent_capabilities",
97
+ "supported": true,
98
+ "requires": []
99
+ },
100
+ {
101
+ "name": "restart_safe_projection",
102
+ "supported": true,
103
+ "requires": [
104
+ "target_scoped_status"
105
+ ]
106
+ },
107
+ {
108
+ "name": "sdd_receipt_binding",
109
+ "supported": true,
110
+ "requires": [
111
+ "compact_v2_authority"
112
+ ]
113
+ },
114
+ {
115
+ "name": "target_scoped_status",
116
+ "supported": true,
117
+ "requires": [
118
+ "repository_independent_capabilities"
119
+ ]
120
+ },
121
+ {
122
+ "name": "uniform_failure_envelope",
123
+ "supported": true,
124
+ "requires": [
125
+ "repository_independent_capabilities"
126
+ ]
127
+ }
128
+ ],
129
+ "optional": [
130
+ {
131
+ "name": "bounded_process_waits",
132
+ "supported": true,
133
+ "requires": [
134
+ "uniform_failure_envelope"
135
+ ]
136
+ },
137
+ {
138
+ "name": "exact_gate_receipt_discovery",
139
+ "supported": true,
140
+ "requires": [
141
+ "five_delivery_gates"
142
+ ]
143
+ },
144
+ {
145
+ "name": "native_low_risk_verification",
146
+ "supported": true,
147
+ "requires": [
148
+ "compact_v2_authority"
149
+ ]
150
+ },
151
+ {
152
+ "name": "risk_reasons",
153
+ "supported": true,
154
+ "requires": [
155
+ "repository_independent_capabilities"
156
+ ]
157
+ },
158
+ {
159
+ "name": "scope_change_diagnostics",
160
+ "supported": true,
161
+ "requires": [
162
+ "uniform_failure_envelope"
163
+ ]
164
+ }
165
+ ]
166
+ },
167
+ "compatibility": {
168
+ "minimum_protocol_major": 1,
169
+ "maximum_protocol_major": 1,
170
+ "additive_minor_policy": "optional-fields-only",
171
+ "unknown_mandatory": "reject",
172
+ "unknown_optional": "ignore",
173
+ "modes": [
174
+ "compact-v2",
175
+ "legacy-v1"
176
+ ],
177
+ "legacy_window": {
178
+ "mode": "legacy-v1",
179
+ "state": "active",
180
+ "read_only": true,
181
+ "deprecation_started": true,
182
+ "removal": "not-scheduled",
183
+ "minimum_compatibility_releases": 1
184
+ }
185
+ }
186
+ }
@@ -0,0 +1,47 @@
1
+ {
2
+ "schema": "gentle-ai.review-integration.failure/v1",
3
+ "contract": "gentle-ai.review-integration/v1",
4
+ "operation": "review.validate",
5
+ "phase": "preflight",
6
+ "code": "gate_scope_changed",
7
+ "message": "The review delivery gate denied the current target.",
8
+ "mutation_outcome": "not_started",
9
+ "authority_applicability": "current_target",
10
+ "retry_safe": false,
11
+ "replayability": "manual_action_required",
12
+ "lineage_id": "review-failure-fixture",
13
+ "required_inputs": [
14
+ "predecessor_lineage_id",
15
+ "expected_predecessor_revision",
16
+ "successor_lineage_id",
17
+ "disposition",
18
+ "reason",
19
+ "actor"
20
+ ],
21
+ "next_action": "explicit-maintainer-action",
22
+ "context": {
23
+ "scope_change": {
24
+ "expected": {
25
+ "candidate_tree": "2222222222222222222222222222222222222222",
26
+ "paths_digest": "sha256:bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"
27
+ },
28
+ "actual": {
29
+ "candidate_tree": "3333333333333333333333333333333333333333",
30
+ "paths_digest": "sha256:cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc"
31
+ },
32
+ "differing_path_count": 1,
33
+ "differing_paths_digest": "sha256:7777777777777777777777777777777777777777777777777777777777777777",
34
+ "predecessor_lineage_id": "review-failure-fixture",
35
+ "predecessor_revision": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
36
+ "recovery_operation": "review.recover",
37
+ "recovery_required_inputs": [
38
+ "predecessor_lineage_id",
39
+ "expected_predecessor_revision",
40
+ "successor_lineage_id",
41
+ "disposition",
42
+ "reason",
43
+ "actor"
44
+ ]
45
+ }
46
+ }
47
+ }
@@ -0,0 +1,61 @@
1
+ {
2
+ "schema": "gentle-ai.review-integration.operation/v1",
3
+ "contract": "gentle-ai.review-integration/v1",
4
+ "operation": "review.finalize",
5
+ "result": {
6
+ "operation": "review/finalize",
7
+ "lineage_id": "review-operation-fixture",
8
+ "state": "approved",
9
+ "action": "validate delivery with gentle-ai review validate --gate <gate>",
10
+ "store_revision": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
11
+ "eligibility": {
12
+ "allowed_actions": [
13
+ {
14
+ "action": "stop",
15
+ "reason_code": "forbidden_finalize_requires_target_status",
16
+ "required_inputs": [
17
+ "target_scoped_status"
18
+ ]
19
+ }
20
+ ],
21
+ "forbidden_actions": [
22
+ {
23
+ "action": "review.abandon",
24
+ "reason_code": "forbidden_finalize_requires_target_status"
25
+ },
26
+ {
27
+ "action": "review.finalize",
28
+ "reason_code": "forbidden_finalize_requires_target_status"
29
+ },
30
+ {
31
+ "action": "review.invalidate",
32
+ "reason_code": "forbidden_finalize_requires_target_status"
33
+ },
34
+ {
35
+ "action": "review.quarantine-legacy",
36
+ "reason_code": "forbidden_finalize_requires_target_status"
37
+ },
38
+ {
39
+ "action": "review.reclaim",
40
+ "reason_code": "forbidden_finalize_requires_target_status"
41
+ },
42
+ {
43
+ "action": "review.reconcile-authority",
44
+ "reason_code": "forbidden_finalize_requires_target_status"
45
+ },
46
+ {
47
+ "action": "review.recover",
48
+ "reason_code": "forbidden_finalize_requires_target_status"
49
+ },
50
+ {
51
+ "action": "review.start",
52
+ "reason_code": "forbidden_finalize_requires_target_status"
53
+ },
54
+ {
55
+ "action": "review.validate",
56
+ "reason_code": "forbidden_finalize_requires_target_status"
57
+ }
58
+ ]
59
+ }
60
+ }
61
+ }
@@ -0,0 +1,27 @@
1
+ {
2
+ "schema": "gentle-ai.review-integration.start/v1",
3
+ "contract": "gentle-ai.review-integration/v1",
4
+ "operation": "review.start",
5
+ "action": "created",
6
+ "lenses_required": true,
7
+ "lineage_id": "review-start-fixture",
8
+ "state": "reviewing",
9
+ "risk_level": "high",
10
+ "selected_lenses": [
11
+ "review-risk",
12
+ "review-resilience",
13
+ "review-readability",
14
+ "review-reliability"
15
+ ],
16
+ "projection": "workspace",
17
+ "changed_files": 1,
18
+ "changed_lines": 1,
19
+ "correction_budget": 1,
20
+ "risk_reasons": [
21
+ {
22
+ "code": "shell_source",
23
+ "signal": "shell_process",
24
+ "path": "scripts/deploy.sh"
25
+ }
26
+ ]
27
+ }
@@ -0,0 +1,79 @@
1
+ {
2
+ "schema": "gentle-ai.review-integration.status/v1",
3
+ "contract": "gentle-ai.review-integration/v1",
4
+ "operation": "review.status",
5
+ "applicability": "ambiguous",
6
+ "receipt": {
7
+ "status": "not_applicable"
8
+ },
9
+ "action": "select_lineage",
10
+ "replayability": "status_required",
11
+ "target_identity": "sha256:e6faad1cb9ceb2db170e0ec9ea5394b44c3991dff6cbd02fb6787539715968f6",
12
+ "projection": {
13
+ "schema": "gentle-ai.review-integration.projection/v1",
14
+ "kind": "current-changes",
15
+ "projection": "workspace",
16
+ "base_tree": "3e21a205dd9b55021aeae87965092623807e455f",
17
+ "initial_review_tree": "1c3325617279b38743f073302ba190fc421b5a09",
18
+ "current_candidate_tree": "1c3325617279b38743f073302ba190fc421b5a09",
19
+ "paths_digest": "sha256:b93fca961a97d240c2b7023e98772f49ebd2995eda7db07043270b57bed75d71",
20
+ "paths": [
21
+ "tracked.txt"
22
+ ],
23
+ "intended_untracked": [],
24
+ "intended_untracked_proof": "sha256:b97229718d4c7fe50a8892eb474ae5aa6491697bccb400e3e31dbaca4894d2f3",
25
+ "initial_snapshot_identity": "sha256:e6faad1cb9ceb2db170e0ec9ea5394b44c3991dff6cbd02fb6787539715968f6",
26
+ "current_snapshot_identity": "sha256:e6faad1cb9ceb2db170e0ec9ea5394b44c3991dff6cbd02fb6787539715968f6"
27
+ },
28
+ "candidates": [
29
+ "review-a",
30
+ "review-b"
31
+ ],
32
+ "eligibility": {
33
+ "allowed_actions": [
34
+ {
35
+ "action": "stop",
36
+ "reason_code": "forbidden_manual_intervention_required",
37
+ "required_inputs": []
38
+ }
39
+ ],
40
+ "forbidden_actions": [
41
+ {
42
+ "action": "review.abandon",
43
+ "reason_code": "forbidden_ambiguous_authority"
44
+ },
45
+ {
46
+ "action": "review.finalize",
47
+ "reason_code": "forbidden_ambiguous_authority"
48
+ },
49
+ {
50
+ "action": "review.invalidate",
51
+ "reason_code": "forbidden_ambiguous_authority"
52
+ },
53
+ {
54
+ "action": "review.quarantine-legacy",
55
+ "reason_code": "forbidden_ambiguous_authority"
56
+ },
57
+ {
58
+ "action": "review.reclaim",
59
+ "reason_code": "forbidden_ambiguous_authority"
60
+ },
61
+ {
62
+ "action": "review.reconcile-authority",
63
+ "reason_code": "forbidden_ambiguous_authority"
64
+ },
65
+ {
66
+ "action": "review.recover",
67
+ "reason_code": "forbidden_ambiguous_authority"
68
+ },
69
+ {
70
+ "action": "review.start",
71
+ "reason_code": "forbidden_ambiguous_authority"
72
+ },
73
+ {
74
+ "action": "review.validate",
75
+ "reason_code": "forbidden_ambiguous_authority"
76
+ }
77
+ ]
78
+ }
79
+ }
@@ -0,0 +1,76 @@
1
+ {
2
+ "schema": "gentle-ai.review-integration.status/v1",
3
+ "contract": "gentle-ai.review-integration/v1",
4
+ "operation": "review.status",
5
+ "applicability": "corrupted",
6
+ "receipt": {
7
+ "status": "not_applicable"
8
+ },
9
+ "action": "repair_authority",
10
+ "replayability": "manual_action_required",
11
+ "target_identity": "sha256:e6faad1cb9ceb2db170e0ec9ea5394b44c3991dff6cbd02fb6787539715968f6",
12
+ "projection": {
13
+ "schema": "gentle-ai.review-integration.projection/v1",
14
+ "kind": "current-changes",
15
+ "projection": "workspace",
16
+ "base_tree": "3e21a205dd9b55021aeae87965092623807e455f",
17
+ "initial_review_tree": "1c3325617279b38743f073302ba190fc421b5a09",
18
+ "current_candidate_tree": "1c3325617279b38743f073302ba190fc421b5a09",
19
+ "paths_digest": "sha256:b93fca961a97d240c2b7023e98772f49ebd2995eda7db07043270b57bed75d71",
20
+ "paths": [
21
+ "tracked.txt"
22
+ ],
23
+ "intended_untracked": [],
24
+ "intended_untracked_proof": "sha256:b97229718d4c7fe50a8892eb474ae5aa6491697bccb400e3e31dbaca4894d2f3",
25
+ "initial_snapshot_identity": "sha256:e6faad1cb9ceb2db170e0ec9ea5394b44c3991dff6cbd02fb6787539715968f6",
26
+ "current_snapshot_identity": "sha256:e6faad1cb9ceb2db170e0ec9ea5394b44c3991dff6cbd02fb6787539715968f6"
27
+ },
28
+ "candidates": [],
29
+ "eligibility": {
30
+ "allowed_actions": [
31
+ {
32
+ "action": "stop",
33
+ "reason_code": "forbidden_manual_intervention_required",
34
+ "required_inputs": []
35
+ }
36
+ ],
37
+ "forbidden_actions": [
38
+ {
39
+ "action": "review.abandon",
40
+ "reason_code": "forbidden_corrupted_authority"
41
+ },
42
+ {
43
+ "action": "review.finalize",
44
+ "reason_code": "forbidden_corrupted_authority"
45
+ },
46
+ {
47
+ "action": "review.invalidate",
48
+ "reason_code": "forbidden_corrupted_authority"
49
+ },
50
+ {
51
+ "action": "review.quarantine-legacy",
52
+ "reason_code": "forbidden_corrupted_authority"
53
+ },
54
+ {
55
+ "action": "review.reclaim",
56
+ "reason_code": "forbidden_corrupted_authority"
57
+ },
58
+ {
59
+ "action": "review.reconcile-authority",
60
+ "reason_code": "forbidden_corrupted_authority"
61
+ },
62
+ {
63
+ "action": "review.recover",
64
+ "reason_code": "forbidden_corrupted_authority"
65
+ },
66
+ {
67
+ "action": "review.start",
68
+ "reason_code": "forbidden_corrupted_authority"
69
+ },
70
+ {
71
+ "action": "review.validate",
72
+ "reason_code": "forbidden_corrupted_authority"
73
+ }
74
+ ]
75
+ }
76
+ }
@@ -0,0 +1,99 @@
1
+ {
2
+ "schema": "gentle-ai.review-integration.status/v1",
3
+ "contract": "gentle-ai.review-integration/v1",
4
+ "operation": "review.status",
5
+ "applicability": "current_target",
6
+ "authority": {
7
+ "version": "compact-v2",
8
+ "lineage_id": "review-status-recover-fixture",
9
+ "state": "correction_required",
10
+ "generation": 3,
11
+ "revision": "sha256:81cdad8f3182d4919147d3c4fe8f614814068e5ef68417e3dcbd5e326dd3e390"
12
+ },
13
+ "receipt": {
14
+ "status": "expected_missing"
15
+ },
16
+ "action": "recover",
17
+ "action_disposition": "scope_changed",
18
+ "replayability": "manual_action_required",
19
+ "frozen": {
20
+ "tier": "medium",
21
+ "original_changed_lines": 2,
22
+ "correction_budget": 1
23
+ },
24
+ "target_identity": "sha256:e6faad1cb9ceb2db170e0ec9ea5394b44c3991dff6cbd02fb6787539715968f6",
25
+ "projection": {
26
+ "schema": "gentle-ai.review-integration.projection/v1",
27
+ "kind": "current-changes",
28
+ "projection": "workspace",
29
+ "base_tree": "3e21a205dd9b55021aeae87965092623807e455f",
30
+ "initial_review_tree": "1c3325617279b38743f073302ba190fc421b5a09",
31
+ "current_candidate_tree": "1c3325617279b38743f073302ba190fc421b5a09",
32
+ "paths_digest": "sha256:b93fca961a97d240c2b7023e98772f49ebd2995eda7db07043270b57bed75d71",
33
+ "paths": [
34
+ "tracked.txt"
35
+ ],
36
+ "intended_untracked": [],
37
+ "intended_untracked_proof": "sha256:b97229718d4c7fe50a8892eb474ae5aa6491697bccb400e3e31dbaca4894d2f3",
38
+ "initial_snapshot_identity": "sha256:e6faad1cb9ceb2db170e0ec9ea5394b44c3991dff6cbd02fb6787539715968f6",
39
+ "current_snapshot_identity": "sha256:e6faad1cb9ceb2db170e0ec9ea5394b44c3991dff6cbd02fb6787539715968f6"
40
+ },
41
+ "candidates": [],
42
+ "eligibility": {
43
+ "allowed_actions": [
44
+ {
45
+ "action": "review.recover",
46
+ "reason_code": "eligible_recovery",
47
+ "required_inputs": [
48
+ "predecessor_lineage",
49
+ "expected_predecessor_revision",
50
+ "successor_lineage",
51
+ "disposition",
52
+ "reason",
53
+ "actor",
54
+ "maintainer_authorization"
55
+ ],
56
+ "disposition": "scope_changed",
57
+ "binding": {
58
+ "lineage_id": "review-status-recover-fixture",
59
+ "revision": "sha256:81cdad8f3182d4919147d3c4fe8f614814068e5ef68417e3dcbd5e326dd3e390",
60
+ "target_identity": "sha256:e6faad1cb9ceb2db170e0ec9ea5394b44c3991dff6cbd02fb6787539715968f6"
61
+ }
62
+ }
63
+ ],
64
+ "forbidden_actions": [
65
+ {
66
+ "action": "review.abandon",
67
+ "reason_code": "forbidden_not_selected_by_native_status"
68
+ },
69
+ {
70
+ "action": "review.finalize",
71
+ "reason_code": "forbidden_not_selected_by_native_status"
72
+ },
73
+ {
74
+ "action": "review.invalidate",
75
+ "reason_code": "forbidden_not_selected_by_native_status"
76
+ },
77
+ {
78
+ "action": "review.quarantine-legacy",
79
+ "reason_code": "forbidden_not_selected_by_native_status"
80
+ },
81
+ {
82
+ "action": "review.reclaim",
83
+ "reason_code": "forbidden_not_selected_by_native_status"
84
+ },
85
+ {
86
+ "action": "review.reconcile-authority",
87
+ "reason_code": "forbidden_not_selected_by_native_status"
88
+ },
89
+ {
90
+ "action": "review.start",
91
+ "reason_code": "forbidden_not_selected_by_native_status"
92
+ },
93
+ {
94
+ "action": "review.validate",
95
+ "reason_code": "forbidden_not_selected_by_native_status"
96
+ }
97
+ ]
98
+ }
99
+ }
@@ -0,0 +1,72 @@
1
+ {
2
+ "schema": "gentle-ai.review-integration.status/v1",
3
+ "contract": "gentle-ai.review-integration/v1",
4
+ "operation": "review.status",
5
+ "applicability": "unrelated",
6
+ "receipt": {
7
+ "status": "not_applicable"
8
+ },
9
+ "action": "start",
10
+ "replayability": "not_replayable",
11
+ "target_identity": "sha256:e6faad1cb9ceb2db170e0ec9ea5394b44c3991dff6cbd02fb6787539715968f6",
12
+ "projection": {
13
+ "schema": "gentle-ai.review-integration.projection/v1",
14
+ "kind": "current-changes",
15
+ "projection": "workspace",
16
+ "base_tree": "3e21a205dd9b55021aeae87965092623807e455f",
17
+ "initial_review_tree": "1c3325617279b38743f073302ba190fc421b5a09",
18
+ "current_candidate_tree": "1c3325617279b38743f073302ba190fc421b5a09",
19
+ "paths_digest": "sha256:b93fca961a97d240c2b7023e98772f49ebd2995eda7db07043270b57bed75d71",
20
+ "paths": [
21
+ "tracked.txt"
22
+ ],
23
+ "intended_untracked": [],
24
+ "intended_untracked_proof": "sha256:b97229718d4c7fe50a8892eb474ae5aa6491697bccb400e3e31dbaca4894d2f3",
25
+ "initial_snapshot_identity": "sha256:e6faad1cb9ceb2db170e0ec9ea5394b44c3991dff6cbd02fb6787539715968f6",
26
+ "current_snapshot_identity": "sha256:e6faad1cb9ceb2db170e0ec9ea5394b44c3991dff6cbd02fb6787539715968f6"
27
+ },
28
+ "candidates": [],
29
+ "eligibility": {
30
+ "allowed_actions": [
31
+ {
32
+ "action": "review.start",
33
+ "reason_code": "eligible_current_target",
34
+ "required_inputs": []
35
+ }
36
+ ],
37
+ "forbidden_actions": [
38
+ {
39
+ "action": "review.abandon",
40
+ "reason_code": "forbidden_unrelated_target"
41
+ },
42
+ {
43
+ "action": "review.finalize",
44
+ "reason_code": "forbidden_unrelated_target"
45
+ },
46
+ {
47
+ "action": "review.invalidate",
48
+ "reason_code": "forbidden_unrelated_target"
49
+ },
50
+ {
51
+ "action": "review.quarantine-legacy",
52
+ "reason_code": "forbidden_unrelated_target"
53
+ },
54
+ {
55
+ "action": "review.reclaim",
56
+ "reason_code": "forbidden_unrelated_target"
57
+ },
58
+ {
59
+ "action": "review.reconcile-authority",
60
+ "reason_code": "forbidden_unrelated_target"
61
+ },
62
+ {
63
+ "action": "review.recover",
64
+ "reason_code": "forbidden_unrelated_target"
65
+ },
66
+ {
67
+ "action": "review.validate",
68
+ "reason_code": "forbidden_unrelated_target"
69
+ }
70
+ ]
71
+ }
72
+ }