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.
- package/README.md +40 -9
- package/assets/agents/review-readability.md +0 -1
- package/assets/agents/review-reliability.md +0 -1
- package/assets/agents/review-resilience.md +0 -1
- package/assets/agents/review-risk.md +0 -1
- package/contracts/review-integration/v1/fixtures/binding-revision-conflict.fixture.json +25 -0
- package/contracts/review-integration/v1/fixtures/capabilities-v1.2.fixture.json +263 -0
- package/contracts/review-integration/v1/fixtures/capabilities-v1.3.fixture.json +301 -0
- package/contracts/review-integration/v1/fixtures/capabilities-v1.4.fixture.json +312 -0
- package/contracts/review-integration/v1/fixtures/capabilities-v1.5.fixture.json +321 -0
- package/contracts/review-integration/v1/fixtures/consent.fixture.json +36 -0
- package/contracts/review-integration/v1/fixtures/final-verification-incident.fixture.json +1 -0
- package/contracts/review-integration/v1/fixtures/operation.fixture.json +4 -0
- package/contracts/review-integration/v1/fixtures/repair-preflight.fixture.json +54 -0
- package/contracts/review-integration/v1/fixtures/start-v2.fixture.json +97 -0
- package/contracts/review-integration/v1/fixtures/start.fixture.json +25 -1
- package/contracts/review-integration/v1/fixtures/status-ambiguous.fixture.json +4 -0
- package/contracts/review-integration/v1/fixtures/status-corrupted.fixture.json +4 -0
- package/contracts/review-integration/v1/fixtures/status-recover.fixture.json +4 -0
- package/contracts/review-integration/v1/fixtures/status-unrelated.fixture.json +4 -0
- package/contracts/review-integration/v1/fixtures/status-v2-ambiguous.fixture.json +110 -0
- package/contracts/review-integration/v1/fixtures/status-v2-corrupted.fixture.json +107 -0
- package/contracts/review-integration/v1/fixtures/status-v2-final-verification-retry.fixture.json +192 -0
- package/contracts/review-integration/v1/fixtures/status-v2-recover.fixture.json +130 -0
- package/contracts/review-integration/v1/fixtures/status-v2-repair.fixture.json +161 -0
- package/contracts/review-integration/v1/fixtures/status-v2-unrelated.fixture.json +103 -0
- package/contracts/review-integration/v1/fixtures/status-v2.fixture.json +193 -0
- package/contracts/review-integration/v1/fixtures/status.fixture.json +19 -5
- package/contracts/review-integration/v1/fixtures/verification-evidence.fixture.json +1 -0
- package/contracts/review-integration/v1/schemas/admitted-result.schema.json +35 -0
- package/contracts/review-integration/v1/schemas/artifact-subject.schema.json +33 -0
- package/contracts/review-integration/v1/schemas/authority-repair-assessment.schema.json +247 -0
- package/contracts/review-integration/v1/schemas/capabilities-v1.2.schema.json +249 -0
- package/contracts/review-integration/v1/schemas/capabilities-v1.3.schema.json +429 -0
- package/contracts/review-integration/v1/schemas/capabilities-v1.4.schema.json +432 -0
- package/contracts/review-integration/v1/schemas/capabilities-v1.5.schema.json +154 -0
- package/contracts/review-integration/v1/schemas/consent.schema.json +86 -0
- package/contracts/review-integration/v1/schemas/failure.schema.json +54 -8
- package/contracts/review-integration/v1/schemas/final-verification-incident.schema.json +51 -0
- package/contracts/review-integration/v1/schemas/operation.schema.json +204 -31
- package/contracts/review-integration/v1/schemas/repair.schema.json +251 -0
- package/contracts/review-integration/v1/schemas/result-artifact-v2.schema.json +38 -0
- package/contracts/review-integration/v1/schemas/start-v2.schema.json +216 -0
- package/contracts/review-integration/v1/schemas/start.schema.json +79 -3
- package/contracts/review-integration/v1/schemas/status-v2.schema.json +313 -0
- package/contracts/review-integration/v1/schemas/status.schema.json +37 -10
- package/contracts/review-integration/v1/schemas/targeted-validation-request.schema.json +46 -0
- package/contracts/review-integration/v1/schemas/verification-evidence.schema.json +64 -0
- package/contracts/review-integration/v2/fixtures/capabilities.fixture.json +111 -0
- package/contracts/review-integration/v2/fixtures/consent.fixture.json +36 -0
- package/contracts/review-integration/v2/fixtures/start.fixture.json +93 -0
- package/contracts/review-integration/v2/fixtures/status.fixture.json +113 -0
- package/contracts/review-integration/v2/schemas/admitted-result.schema.json +14 -0
- package/contracts/review-integration/v2/schemas/artifact-subject.schema.json +36 -0
- package/contracts/review-integration/v2/schemas/capabilities.schema.json +111 -0
- package/contracts/review-integration/v2/schemas/consent.schema.json +70 -0
- package/contracts/review-integration/v2/schemas/failure.schema.json +35 -0
- package/contracts/review-integration/v2/schemas/operation.schema.json +46 -0
- package/contracts/review-integration/v2/schemas/repair.schema.json +22 -0
- package/contracts/review-integration/v2/schemas/start.schema.json +106 -0
- package/contracts/review-integration/v2/schemas/status.schema.json +104 -0
- package/docs/native-authority-architecture.md +18 -3
- package/docs/review-integration.md +175 -27
- package/extensions/gentle-ai.ts +414 -19
- package/lib/gentle-ai-binary.ts +1 -1
- package/lib/native-review-cli.ts +679 -57
- package/lib/review-candidate-view.ts +131 -1
- package/lib/review-compact-contract.ts +12 -3
- package/lib/review-consent-latch.ts +51 -0
- package/lib/review-correction-lifecycle.ts +170 -0
- package/lib/review-integration-v2.ts +1563 -0
- package/package.json +15 -11
- package/runtime/gentle-ai-binary.mjs +1 -1
- package/runtime/native-review-cli.mjs +663 -41
- package/runtime/review-integration-v2.mjs +1564 -0
- package/scripts/build-git-commit-transaction-runner.mjs +1 -1
- package/scripts/gentle-ai-installer.mjs +16 -11
- package/scripts/install-gentle-ai.mjs +7 -3
- package/scripts/test-packed-runner.mjs +2 -2
- package/scripts/verify-package-files.mjs +216 -64
- package/skills/release/SKILL.md +38 -11
- package/tests/devbinary/native-review-parity.devtest.ts +348 -0
- package/tests/gentle-ai-binary.test.ts +8 -1
- package/tests/gentle-ai-installer.test.ts +24 -21
- package/tests/native-binary-gate.test.ts +145 -0
- package/tests/native-review-capability-contract.test.ts +87 -0
- package/tests/native-review-cli.test.ts +44 -1
- package/tests/native-review-parity-runtime.test.ts +70 -23
- package/tests/native-review-parity.test.ts +673 -0
- package/tests/native-risk-evidence-parity.test.ts +91 -0
- package/tests/package-manifest.test.ts +72 -7
- package/tests/review-actor-tool-deny.test.ts +20 -5
- package/tests/review-candidate-view.test.ts +331 -1
- package/tests/review-compact-contract.test.ts +5 -0
- package/tests/review-consent-latch.test.ts +67 -0
- package/tests/review-controller-native-recovery.test.ts +180 -5
- package/tests/review-controller-native-routing.test.ts +385 -12
- package/tests/review-controller-workspace-root.test.ts +26 -6
- package/tests/review-correction-lifecycle.test.ts +174 -0
- package/tests/review-integration-v2.test.ts +539 -0
- package/tests/runtime-harness.mjs +187 -0
- package/tests/support/native-binary-gate.ts +86 -0
- package/tests/verify-package-files.test.ts +119 -0
- package/lib/review-integration-v1.ts +0 -795
- package/runtime/review-integration-v1.mjs +0 -796
- package/tests/native-review-integration-v1.test.ts +0 -102
- package/tests/review-integration-v1.test.ts +0 -530
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "gentle-ai.review-integration.status/v2",
|
|
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
|
+
"repair": {
|
|
29
|
+
"schema": "gentle-ai.review-authority-repair-assessment/v1",
|
|
30
|
+
"status": "eligible",
|
|
31
|
+
"class": "legacy_v1_historical_alias",
|
|
32
|
+
"cause": "unsupported_historical_v1_operation_alias",
|
|
33
|
+
"disposition": "quarantine-approved-historical-alias",
|
|
34
|
+
"repository_binding": "sha256:3333333333333333333333333333333333333333333333333333333333333333",
|
|
35
|
+
"candidate": {
|
|
36
|
+
"lineage_id": "historical-alias",
|
|
37
|
+
"revision": "sha256:1111111111111111111111111111111111111111111111111111111111111111",
|
|
38
|
+
"chain_identity": "sha256:2222222222222222222222222222222222222222222222222222222222222222",
|
|
39
|
+
"event_count": 6,
|
|
40
|
+
"alias_event_count": 2,
|
|
41
|
+
"operations": [
|
|
42
|
+
"review/complete-fix",
|
|
43
|
+
"review/validate-fix"
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
"counts": {
|
|
47
|
+
"lineages": 1,
|
|
48
|
+
"compact_lineages": 0,
|
|
49
|
+
"legacy_lineages": 1,
|
|
50
|
+
"events": 6,
|
|
51
|
+
"bytes": 4096,
|
|
52
|
+
"eligible_candidates": 1,
|
|
53
|
+
"unsupported_lineages": 0,
|
|
54
|
+
"conflicts": 0
|
|
55
|
+
},
|
|
56
|
+
"supported_operations": [
|
|
57
|
+
"review/complete-fix",
|
|
58
|
+
"review/validate-fix"
|
|
59
|
+
],
|
|
60
|
+
"authorization_schema": "gentle-ai.review-repair-authorization/v1"
|
|
61
|
+
},
|
|
62
|
+
"candidates": [],
|
|
63
|
+
"eligibility": {
|
|
64
|
+
"allowed_actions": [
|
|
65
|
+
{
|
|
66
|
+
"action": "review.repair",
|
|
67
|
+
"reason_code": "eligible_classified_authority_repair",
|
|
68
|
+
"required_inputs": [
|
|
69
|
+
"actor",
|
|
70
|
+
"reason",
|
|
71
|
+
"maintainer_authorization"
|
|
72
|
+
]
|
|
73
|
+
}
|
|
74
|
+
],
|
|
75
|
+
"forbidden_actions": [
|
|
76
|
+
{
|
|
77
|
+
"action": "review.abandon",
|
|
78
|
+
"reason_code": "forbidden_corrupted_authority"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"action": "review.finalize",
|
|
82
|
+
"reason_code": "forbidden_corrupted_authority"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"action": "review.invalidate",
|
|
86
|
+
"reason_code": "forbidden_corrupted_authority"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"action": "review.quarantine-legacy",
|
|
90
|
+
"reason_code": "forbidden_corrupted_authority"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"action": "review.reclaim",
|
|
94
|
+
"reason_code": "forbidden_corrupted_authority"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"action": "review.reconcile-authority",
|
|
98
|
+
"reason_code": "forbidden_corrupted_authority"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"action": "review.reconcile-authority-batch",
|
|
102
|
+
"reason_code": "forbidden_corrupted_authority"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"action": "review.recover",
|
|
106
|
+
"reason_code": "forbidden_corrupted_authority"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"action": "review.start",
|
|
110
|
+
"reason_code": "forbidden_corrupted_authority"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"action": "review.validate",
|
|
114
|
+
"reason_code": "forbidden_corrupted_authority"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"action": "review.retry_final_verification",
|
|
118
|
+
"reason_code": "forbidden_corrupted_authority"
|
|
119
|
+
}
|
|
120
|
+
]
|
|
121
|
+
},
|
|
122
|
+
"next_transition": {
|
|
123
|
+
"kind": "collect",
|
|
124
|
+
"reason_code": "repair_authorization_required",
|
|
125
|
+
"collect": {
|
|
126
|
+
"inputs": [
|
|
127
|
+
{
|
|
128
|
+
"name": "repair_authorization",
|
|
129
|
+
"schema": "gentle-ai.review-repair-authorization/v1",
|
|
130
|
+
"capture_operation": "external.authorize_repair",
|
|
131
|
+
"arguments": [
|
|
132
|
+
{
|
|
133
|
+
"name": "class",
|
|
134
|
+
"value": "legacy_v1_historical_alias"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"name": "lineage",
|
|
138
|
+
"value": "historical-alias"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"name": "expected-revision",
|
|
142
|
+
"value": "sha256:1111111111111111111111111111111111111111111111111111111111111111"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"name": "cause",
|
|
146
|
+
"value": "unsupported_historical_v1_operation_alias"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"name": "disposition",
|
|
150
|
+
"value": "quarantine-approved-historical-alias"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"name": "repository-binding",
|
|
154
|
+
"value": "sha256:3333333333333333333333333333333333333333333333333333333333333333"
|
|
155
|
+
}
|
|
156
|
+
]
|
|
157
|
+
}
|
|
158
|
+
]
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "gentle-ai.review-integration.status/v2",
|
|
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
|
+
"repair": {
|
|
29
|
+
"schema": "gentle-ai.review-authority-repair-assessment/v1",
|
|
30
|
+
"status": "unsupported",
|
|
31
|
+
"counts": {
|
|
32
|
+
"lineages": 0,
|
|
33
|
+
"compact_lineages": 0,
|
|
34
|
+
"legacy_lineages": 0,
|
|
35
|
+
"events": 0,
|
|
36
|
+
"bytes": 0,
|
|
37
|
+
"eligible_candidates": 0,
|
|
38
|
+
"unsupported_lineages": 0,
|
|
39
|
+
"conflicts": 0
|
|
40
|
+
},
|
|
41
|
+
"supported_operations": [
|
|
42
|
+
"review/complete-fix",
|
|
43
|
+
"review/validate-fix"
|
|
44
|
+
],
|
|
45
|
+
"authorization_schema": "gentle-ai.review-repair-authorization/v1"
|
|
46
|
+
},
|
|
47
|
+
"candidates": [],
|
|
48
|
+
"eligibility": {
|
|
49
|
+
"allowed_actions": [
|
|
50
|
+
{
|
|
51
|
+
"action": "review.start",
|
|
52
|
+
"reason_code": "eligible_current_target",
|
|
53
|
+
"required_inputs": []
|
|
54
|
+
}
|
|
55
|
+
],
|
|
56
|
+
"forbidden_actions": [
|
|
57
|
+
{
|
|
58
|
+
"action": "review.abandon",
|
|
59
|
+
"reason_code": "forbidden_unrelated_target"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"action": "review.finalize",
|
|
63
|
+
"reason_code": "forbidden_unrelated_target"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"action": "review.invalidate",
|
|
67
|
+
"reason_code": "forbidden_unrelated_target"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"action": "review.quarantine-legacy",
|
|
71
|
+
"reason_code": "forbidden_unrelated_target"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"action": "review.reclaim",
|
|
75
|
+
"reason_code": "forbidden_unrelated_target"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"action": "review.reconcile-authority",
|
|
79
|
+
"reason_code": "forbidden_unrelated_target"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"action": "review.reconcile-authority-batch",
|
|
83
|
+
"reason_code": "forbidden_unrelated_target"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"action": "review.recover",
|
|
87
|
+
"reason_code": "forbidden_unrelated_target"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"action": "review.validate",
|
|
91
|
+
"reason_code": "forbidden_unrelated_target"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"action": "review.repair",
|
|
95
|
+
"reason_code": "forbidden_unrelated_target"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"action": "review.retry_final_verification",
|
|
99
|
+
"reason_code": "forbidden_unrelated_target"
|
|
100
|
+
}
|
|
101
|
+
]
|
|
102
|
+
}
|
|
103
|
+
}
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "gentle-ai.review-integration.status/v2",
|
|
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-fixture",
|
|
9
|
+
"state": "reviewing",
|
|
10
|
+
"generation": 1,
|
|
11
|
+
"revision": "sha256:81cdad8f3182d4919147d3c4fe8f614814068e5ef68417e3dcbd5e326dd3e390"
|
|
12
|
+
},
|
|
13
|
+
"receipt": {
|
|
14
|
+
"status": "expected_missing"
|
|
15
|
+
},
|
|
16
|
+
"action": "finalize",
|
|
17
|
+
"replayability": "not_replayable",
|
|
18
|
+
"frozen": {
|
|
19
|
+
"tier": "medium",
|
|
20
|
+
"original_changed_lines": 2,
|
|
21
|
+
"correction_budget": 1
|
|
22
|
+
},
|
|
23
|
+
"target_identity": "sha256:e6faad1cb9ceb2db170e0ec9ea5394b44c3991dff6cbd02fb6787539715968f6",
|
|
24
|
+
"projection": {
|
|
25
|
+
"schema": "gentle-ai.review-integration.projection/v1",
|
|
26
|
+
"kind": "current-changes",
|
|
27
|
+
"projection": "workspace",
|
|
28
|
+
"base_tree": "3e21a205dd9b55021aeae87965092623807e455f",
|
|
29
|
+
"initial_review_tree": "1c3325617279b38743f073302ba190fc421b5a09",
|
|
30
|
+
"current_candidate_tree": "1c3325617279b38743f073302ba190fc421b5a09",
|
|
31
|
+
"paths_digest": "sha256:b93fca961a97d240c2b7023e98772f49ebd2995eda7db07043270b57bed75d71",
|
|
32
|
+
"paths": [
|
|
33
|
+
"tracked.txt"
|
|
34
|
+
],
|
|
35
|
+
"intended_untracked": [],
|
|
36
|
+
"intended_untracked_proof": "sha256:b97229718d4c7fe50a8892eb474ae5aa6491697bccb400e3e31dbaca4894d2f3",
|
|
37
|
+
"initial_snapshot_identity": "sha256:e6faad1cb9ceb2db170e0ec9ea5394b44c3991dff6cbd02fb6787539715968f6",
|
|
38
|
+
"current_snapshot_identity": "sha256:e6faad1cb9ceb2db170e0ec9ea5394b44c3991dff6cbd02fb6787539715968f6"
|
|
39
|
+
},
|
|
40
|
+
"repair": {
|
|
41
|
+
"schema": "gentle-ai.review-authority-repair-assessment/v1",
|
|
42
|
+
"status": "unsupported",
|
|
43
|
+
"counts": {
|
|
44
|
+
"lineages": 0,
|
|
45
|
+
"compact_lineages": 0,
|
|
46
|
+
"legacy_lineages": 0,
|
|
47
|
+
"events": 0,
|
|
48
|
+
"bytes": 0,
|
|
49
|
+
"eligible_candidates": 0,
|
|
50
|
+
"unsupported_lineages": 0,
|
|
51
|
+
"conflicts": 0
|
|
52
|
+
},
|
|
53
|
+
"supported_operations": [
|
|
54
|
+
"review/complete-fix",
|
|
55
|
+
"review/validate-fix"
|
|
56
|
+
],
|
|
57
|
+
"authorization_schema": "gentle-ai.review-repair-authorization/v1"
|
|
58
|
+
},
|
|
59
|
+
"candidates": [],
|
|
60
|
+
"eligibility": {
|
|
61
|
+
"allowed_actions": [
|
|
62
|
+
{
|
|
63
|
+
"action": "stop",
|
|
64
|
+
"reason_code": "forbidden_required_inputs_unavailable",
|
|
65
|
+
"required_inputs": []
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
"forbidden_actions": [
|
|
69
|
+
{
|
|
70
|
+
"action": "review.abandon",
|
|
71
|
+
"reason_code": "forbidden_required_inputs_unavailable"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"action": "review.finalize",
|
|
75
|
+
"reason_code": "forbidden_required_inputs_unavailable"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"action": "review.invalidate",
|
|
79
|
+
"reason_code": "forbidden_required_inputs_unavailable"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"action": "review.quarantine-legacy",
|
|
83
|
+
"reason_code": "forbidden_required_inputs_unavailable"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"action": "review.reclaim",
|
|
87
|
+
"reason_code": "forbidden_required_inputs_unavailable"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"action": "review.reconcile-authority",
|
|
91
|
+
"reason_code": "forbidden_required_inputs_unavailable"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"action": "review.reconcile-authority-batch",
|
|
95
|
+
"reason_code": "forbidden_required_inputs_unavailable"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"action": "review.recover",
|
|
99
|
+
"reason_code": "forbidden_required_inputs_unavailable"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"action": "review.repair",
|
|
103
|
+
"reason_code": "forbidden_required_inputs_unavailable"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"action": "review.retry_final_verification",
|
|
107
|
+
"reason_code": "forbidden_required_inputs_unavailable"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"action": "review.start",
|
|
111
|
+
"reason_code": "forbidden_required_inputs_unavailable"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"action": "review.validate",
|
|
115
|
+
"reason_code": "forbidden_required_inputs_unavailable"
|
|
116
|
+
}
|
|
117
|
+
]
|
|
118
|
+
},
|
|
119
|
+
"next_transition": {
|
|
120
|
+
"kind": "collect",
|
|
121
|
+
"reason_code": "reviewer_results_required",
|
|
122
|
+
"collect": {
|
|
123
|
+
"inputs": [
|
|
124
|
+
{
|
|
125
|
+
"name": "reviewer_result",
|
|
126
|
+
"schema": "https://gentle-ai.dev/schema/review/reviewer/v1",
|
|
127
|
+
"capture_operation": "review.capture-result",
|
|
128
|
+
"arguments": [
|
|
129
|
+
{
|
|
130
|
+
"name": "lineage",
|
|
131
|
+
"value": "review-status-fixture",
|
|
132
|
+
"token": "--lineage=review-status-fixture"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"name": "expected-revision",
|
|
136
|
+
"value": "sha256:81cdad8f3182d4919147d3c4fe8f614814068e5ef68417e3dcbd5e326dd3e390",
|
|
137
|
+
"token": "--expected-revision=sha256:81cdad8f3182d4919147d3c4fe8f614814068e5ef68417e3dcbd5e326dd3e390"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"name": "target",
|
|
141
|
+
"value": "sha256:e6faad1cb9ceb2db170e0ec9ea5394b44c3991dff6cbd02fb6787539715968f6",
|
|
142
|
+
"token": "--target=sha256:e6faad1cb9ceb2db170e0ec9ea5394b44c3991dff6cbd02fb6787539715968f6"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"name": "repository-context",
|
|
146
|
+
"value": "rctx1_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
147
|
+
"token": "--repository-context=rctx1_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"name": "lens",
|
|
151
|
+
"value": "review-reliability",
|
|
152
|
+
"token": "--lens=review-reliability"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"name": "order",
|
|
156
|
+
"value": "0",
|
|
157
|
+
"token": "--order=0"
|
|
158
|
+
}
|
|
159
|
+
],
|
|
160
|
+
"artifact_subject": {
|
|
161
|
+
"schema": "gentle-ai.review-artifact-subject/v1",
|
|
162
|
+
"subject_hash": "sha256:fe57db2ea45a33c7e852d039e8af3291c3bc31911f0c92a710b5fef547b1999d",
|
|
163
|
+
"lineage_id": "review-status-fixture",
|
|
164
|
+
"authority_revision": "sha256:81cdad8f3182d4919147d3c4fe8f614814068e5ef68417e3dcbd5e326dd3e390",
|
|
165
|
+
"target_identity": "sha256:e6faad1cb9ceb2db170e0ec9ea5394b44c3991dff6cbd02fb6787539715968f6",
|
|
166
|
+
"candidate_diff_sha256": "sha256:8ed4bd24d5beb3f73f6026355f6755f5aef7feebcd76447be820860c22bc47c6",
|
|
167
|
+
"changed_path_manifest_sha256": "sha256:64d028ff676fb4ef10f2d4a3488d568854b364b4cc4399578b5932d144d2347b",
|
|
168
|
+
"lens": "review-reliability",
|
|
169
|
+
"selected_order": 0
|
|
170
|
+
},
|
|
171
|
+
"candidate_diff": {
|
|
172
|
+
"encoding": "base64",
|
|
173
|
+
"data": "ZGlmZiAtLWdpdCBhL3RyYWNrZWQudHh0IGIvdHJhY2tlZC50eHQKaW5kZXggZGY5NjdiOTZhNTc5ZTQ1YTE4YjgyNTE3MzJkMTY4MDRiMmU1NmE1NS4uYzlhZTdiNjlkODZmOWRjOWVjYjRmOTgyM2RkNDJjODA2MThjNjFjZCAxMDA2NDQKLS0tIGEvdHJhY2tlZC50eHQKKysrIGIvdHJhY2tlZC50eHQKQEAgLTEgKzEgQEAKLWJhc2UKK2NhbmRpZGF0ZSBiZWhhdmlvcgo=",
|
|
174
|
+
"sha256": "sha256:8ed4bd24d5beb3f73f6026355f6755f5aef7feebcd76447be820860c22bc47c6",
|
|
175
|
+
"byte_size": 209
|
|
176
|
+
},
|
|
177
|
+
"changed_path_manifest": [
|
|
178
|
+
{
|
|
179
|
+
"path": "tracked.txt",
|
|
180
|
+
"status": "M",
|
|
181
|
+
"old_mode": "100644",
|
|
182
|
+
"new_mode": "100644",
|
|
183
|
+
"deleted": false,
|
|
184
|
+
"type_changed": false,
|
|
185
|
+
"mode_only": false,
|
|
186
|
+
"intended_untracked": false
|
|
187
|
+
}
|
|
188
|
+
]
|
|
189
|
+
}
|
|
190
|
+
]
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
@@ -71,6 +71,10 @@
|
|
|
71
71
|
"action": "review.reconcile-authority",
|
|
72
72
|
"reason_code": "forbidden_required_inputs_unavailable"
|
|
73
73
|
},
|
|
74
|
+
{
|
|
75
|
+
"action": "review.reconcile-authority-batch",
|
|
76
|
+
"reason_code": "forbidden_required_inputs_unavailable"
|
|
77
|
+
},
|
|
74
78
|
{
|
|
75
79
|
"action": "review.recover",
|
|
76
80
|
"reason_code": "forbidden_required_inputs_unavailable"
|
|
@@ -97,23 +101,33 @@
|
|
|
97
101
|
"arguments": [
|
|
98
102
|
{
|
|
99
103
|
"name": "lineage",
|
|
100
|
-
"value": "review-status-fixture"
|
|
104
|
+
"value": "review-status-fixture",
|
|
105
|
+
"token": "--lineage=review-status-fixture"
|
|
101
106
|
},
|
|
102
107
|
{
|
|
103
108
|
"name": "expected-revision",
|
|
104
|
-
"value": "sha256:81cdad8f3182d4919147d3c4fe8f614814068e5ef68417e3dcbd5e326dd3e390"
|
|
109
|
+
"value": "sha256:81cdad8f3182d4919147d3c4fe8f614814068e5ef68417e3dcbd5e326dd3e390",
|
|
110
|
+
"token": "--expected-revision=sha256:81cdad8f3182d4919147d3c4fe8f614814068e5ef68417e3dcbd5e326dd3e390"
|
|
105
111
|
},
|
|
106
112
|
{
|
|
107
113
|
"name": "target",
|
|
108
|
-
"value": "sha256:e6faad1cb9ceb2db170e0ec9ea5394b44c3991dff6cbd02fb6787539715968f6"
|
|
114
|
+
"value": "sha256:e6faad1cb9ceb2db170e0ec9ea5394b44c3991dff6cbd02fb6787539715968f6",
|
|
115
|
+
"token": "--target=sha256:e6faad1cb9ceb2db170e0ec9ea5394b44c3991dff6cbd02fb6787539715968f6"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"name": "repository-context",
|
|
119
|
+
"value": "rctx1_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
|
|
120
|
+
"token": "--repository-context=rctx1_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
|
109
121
|
},
|
|
110
122
|
{
|
|
111
123
|
"name": "lens",
|
|
112
|
-
"value": "review-reliability"
|
|
124
|
+
"value": "review-reliability",
|
|
125
|
+
"token": "--lens=review-reliability"
|
|
113
126
|
},
|
|
114
127
|
{
|
|
115
128
|
"name": "order",
|
|
116
|
-
"value": "0"
|
|
129
|
+
"value": "0",
|
|
130
|
+
"token": "--order=0"
|
|
117
131
|
}
|
|
118
132
|
]
|
|
119
133
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"schema":"gentle-ai.review-verification-evidence/v2","version":2,"lineage_id":"review-evidence-example","authority_revision":"sha256:1111111111111111111111111111111111111111111111111111111111111111","target_identity":"sha256:2222222222222222222222222222222222222222222222222222222222222222","candidate_tree":"3333333333333333333333333333333333333333","paths_digest":"sha256:4444444444444444444444444444444444444444444444444444444444444444","paths":["internal/review.go"],"ledger_ids":["R3-001"],"raw_payload_sha256":"sha256:fbaacd1df6f28aa2ed91cd75533e1fb2844323408cf6057423cae3e0387ea0dc","raw_payload_bytes":20,"outcome":"passed","record_digest":"sha256:f89d690f641098c5769b89923606511103ef5e02550512f7762f202aa4c6ab32"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://gentle-ai.dev/contracts/review-integration/v1/schemas/admitted-result.schema.json",
|
|
4
|
+
"title": "Gentle AI provider-admitted reviewer result v1",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schema", "subject", "admission", "result"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schema": {"const": "gentle-ai.review-admitted-result/v1"},
|
|
10
|
+
"subject": {"$ref": "artifact-subject.schema.json"},
|
|
11
|
+
"admission": {"$ref": "#/$defs/admission"},
|
|
12
|
+
"result": {"type": "object"}
|
|
13
|
+
},
|
|
14
|
+
"$defs": {
|
|
15
|
+
"sha256": {"type": "string", "pattern": "^sha256:[0-9a-f]{64}$"},
|
|
16
|
+
"admission": {
|
|
17
|
+
"type": "object",
|
|
18
|
+
"additionalProperties": false,
|
|
19
|
+
"required": ["schema", "decision", "subject_hash", "raw_sha256", "canonical_sha256", "result_hash", "candidate_causal_finding_ids"],
|
|
20
|
+
"properties": {
|
|
21
|
+
"schema": {"const": "gentle-ai.review-artifact-admission/v1"},
|
|
22
|
+
"decision": {"const": "completed"},
|
|
23
|
+
"subject_hash": {"$ref": "#/$defs/sha256"},
|
|
24
|
+
"raw_sha256": {"$ref": "#/$defs/sha256"},
|
|
25
|
+
"canonical_sha256": {"$ref": "#/$defs/sha256"},
|
|
26
|
+
"result_hash": {"$ref": "#/$defs/sha256"},
|
|
27
|
+
"candidate_causal_finding_ids": {
|
|
28
|
+
"type": "array",
|
|
29
|
+
"uniqueItems": true,
|
|
30
|
+
"items": {"type": "string", "pattern": "^R[1-4]-[A-Za-z0-9][A-Za-z0-9._-]*$"}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://gentle-ai.dev/contracts/review-integration/v1/schemas/artifact-subject.schema.json",
|
|
4
|
+
"title": "Gentle AI provider-owned reviewer artifact subject v1",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": [
|
|
8
|
+
"schema",
|
|
9
|
+
"subject_hash",
|
|
10
|
+
"lineage_id",
|
|
11
|
+
"authority_revision",
|
|
12
|
+
"target_identity",
|
|
13
|
+
"candidate_diff_sha256",
|
|
14
|
+
"changed_path_manifest_sha256",
|
|
15
|
+
"lens",
|
|
16
|
+
"selected_order"
|
|
17
|
+
],
|
|
18
|
+
"properties": {
|
|
19
|
+
"schema": {"const": "gentle-ai.review-artifact-subject/v1"},
|
|
20
|
+
"subject_hash": {"$ref": "#/$defs/sha256"},
|
|
21
|
+
"lineage_id": {"type": "string", "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"},
|
|
22
|
+
"authority_revision": {"$ref": "#/$defs/sha256"},
|
|
23
|
+
"target_identity": {"$ref": "#/$defs/sha256"},
|
|
24
|
+
"candidate_diff_sha256": {"$ref": "#/$defs/sha256"},
|
|
25
|
+
"changed_path_manifest_sha256": {"$ref": "#/$defs/sha256"},
|
|
26
|
+
"lens": {"enum": ["review-risk", "review-resilience", "review-readability", "review-reliability"]},
|
|
27
|
+
"selected_order": {"type": "integer", "minimum": 0, "maximum": 3},
|
|
28
|
+
"correction_target_identity": {"$ref": "#/$defs/sha256"}
|
|
29
|
+
},
|
|
30
|
+
"$defs": {
|
|
31
|
+
"sha256": {"type": "string", "pattern": "^sha256:[0-9a-f]{64}$"}
|
|
32
|
+
}
|
|
33
|
+
}
|