@reviewsensei/cli-win32-x64 0.8.15 → 0.8.17
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 +1 -1
- package/bin/_internal/base_library.zip +0 -0
- package/bin/_internal/jsonschema-4.26.0.dist-info/RECORD +1 -1
- package/bin/_internal/review_sensei/schemas/api-run-accounting.schema.json +92 -6
- package/bin/_internal/review_sensei/schemas/eligibility-v4.schema.json +30 -2
- package/bin/_internal/review_sensei/schemas/eligibility-v5.schema.json +30 -2
- package/bin/_internal/review_sensei/schemas/eligibility-v6.schema.json +76 -0
- package/bin/_internal/review_sensei/schemas/eligibility-v7.schema.json +37 -0
- package/bin/_internal/review_sensei/schemas/eligibility-v8.schema.json +126 -0
- package/bin/_internal/review_sensei/schemas/historical-assessment-hold.schema.json +123 -0
- package/bin/_internal/review_sensei/schemas/historical-publication-completion.schema.json +209 -0
- package/bin/_internal/review_sensei/schemas/publication-selection.schema.json +192 -0
- package/bin/_internal/review_sensei/schemas/quarantine-assessment-cursor.schema.json +36 -0
- package/bin/_internal/review_sensei/schemas/quarantine-assessment-event.schema.json +40 -0
- package/bin/_internal/review_sensei/schemas/quarantine-assessment-inventory.schema.json +37 -0
- package/bin/_internal/review_sensei/schemas/quarantine-assessment-origins.schema.json +92 -0
- package/bin/_internal/review_sensei/schemas/quarantine-assessment-state.schema.json +94 -0
- package/bin/_internal/review_sensei/schemas/quarantine-assessment-view.schema.json +89 -0
- package/bin/_internal/review_sensei/schemas/quarantine-lineage.schema.json +101 -0
- package/bin/_internal/review_sensei/schemas/review-convergence-policy.schema.json +1 -0
- package/bin/_internal/review_sensei/schemas/review-result.schema.json +2 -0
- package/bin/_internal/review_sensei/schemas/review-verdict.schema.json +41 -0
- package/bin/_internal/review_sensei/schemas/session-record.schema.json +706 -120
- package/bin/_internal/{review_sensei-0.8.15.dist-info → review_sensei-0.8.17.dist-info}/METADATA +17 -3
- package/bin/_internal/{review_sensei-0.8.15.dist-info → review_sensei-0.8.17.dist-info}/RECORD +58 -28
- package/bin/review-sensei.exe +0 -0
- package/package.json +1 -1
- /package/bin/_internal/{review_sensei-0.8.15.dist-info → review_sensei-0.8.17.dist-info}/INSTALLER +0 -0
- /package/bin/_internal/{review_sensei-0.8.15.dist-info → review_sensei-0.8.17.dist-info}/REQUESTED +0 -0
- /package/bin/_internal/{review_sensei-0.8.15.dist-info → review_sensei-0.8.17.dist-info}/WHEEL +0 -0
- /package/bin/_internal/{review_sensei-0.8.15.dist-info → review_sensei-0.8.17.dist-info}/direct_url.json +0 -0
- /package/bin/_internal/{review_sensei-0.8.15.dist-info → review_sensei-0.8.17.dist-info}/entry_points.txt +0 -0
- /package/bin/_internal/{review_sensei-0.8.15.dist-info → review_sensei-0.8.17.dist-info}/licenses/LICENSE +0 -0
- /package/bin/_internal/{review_sensei-0.8.15.dist-info → review_sensei-0.8.17.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://reviewsensei.dev/schemas/v1/historical-publication-completion.schema.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": [
|
|
7
|
+
"cessation_sha256",
|
|
8
|
+
"check_conclusion",
|
|
9
|
+
"check_id",
|
|
10
|
+
"current_authority_sha256",
|
|
11
|
+
"current_base_sha",
|
|
12
|
+
"current_configuration_sha256",
|
|
13
|
+
"current_executor_sha",
|
|
14
|
+
"current_head_sha",
|
|
15
|
+
"current_owner_sha256",
|
|
16
|
+
"current_policy_commit",
|
|
17
|
+
"current_run_id",
|
|
18
|
+
"historical_accounting_sha256",
|
|
19
|
+
"historical_base_sha",
|
|
20
|
+
"historical_configuration_sha256",
|
|
21
|
+
"historical_content_sha256",
|
|
22
|
+
"historical_evidence_sha256",
|
|
23
|
+
"historical_executor_commit",
|
|
24
|
+
"historical_executor_sha",
|
|
25
|
+
"historical_head_sha",
|
|
26
|
+
"historical_job_id",
|
|
27
|
+
"historical_policy_sha256",
|
|
28
|
+
"historical_review_step",
|
|
29
|
+
"historical_root_sha256",
|
|
30
|
+
"historical_run_id",
|
|
31
|
+
"historical_workflow_blob",
|
|
32
|
+
"publication_result_sha256",
|
|
33
|
+
"pull_request",
|
|
34
|
+
"repository",
|
|
35
|
+
"repository_id",
|
|
36
|
+
"review_id",
|
|
37
|
+
"schema_version",
|
|
38
|
+
"target_inventory_sha256",
|
|
39
|
+
"termination_basis",
|
|
40
|
+
"transaction_id",
|
|
41
|
+
"verifier_version",
|
|
42
|
+
"writer_inventory_sha256",
|
|
43
|
+
"human_inventory_sha256",
|
|
44
|
+
"review_body_sha256"
|
|
45
|
+
],
|
|
46
|
+
"properties": {
|
|
47
|
+
"historical_base_sha": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"pattern": "^[a-f0-9]{40}$"
|
|
50
|
+
},
|
|
51
|
+
"historical_head_sha": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"pattern": "^[a-f0-9]{40}$"
|
|
54
|
+
},
|
|
55
|
+
"current_base_sha": {
|
|
56
|
+
"type": "string",
|
|
57
|
+
"pattern": "^[a-f0-9]{40}$"
|
|
58
|
+
},
|
|
59
|
+
"current_head_sha": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"pattern": "^[a-f0-9]{40}$"
|
|
62
|
+
},
|
|
63
|
+
"current_policy_commit": {
|
|
64
|
+
"type": "string",
|
|
65
|
+
"pattern": "^[a-f0-9]{40}$"
|
|
66
|
+
},
|
|
67
|
+
"historical_root_sha256": {
|
|
68
|
+
"type": "string",
|
|
69
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
70
|
+
},
|
|
71
|
+
"historical_accounting_sha256": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
74
|
+
},
|
|
75
|
+
"transaction_id": {
|
|
76
|
+
"type": "string",
|
|
77
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
78
|
+
},
|
|
79
|
+
"historical_policy_sha256": {
|
|
80
|
+
"type": "string",
|
|
81
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
82
|
+
},
|
|
83
|
+
"historical_configuration_sha256": {
|
|
84
|
+
"type": "string",
|
|
85
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
86
|
+
},
|
|
87
|
+
"historical_evidence_sha256": {
|
|
88
|
+
"type": "string",
|
|
89
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
90
|
+
},
|
|
91
|
+
"historical_content_sha256": {
|
|
92
|
+
"type": "string",
|
|
93
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
94
|
+
},
|
|
95
|
+
"publication_result_sha256": {
|
|
96
|
+
"type": "string",
|
|
97
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
98
|
+
},
|
|
99
|
+
"target_inventory_sha256": {
|
|
100
|
+
"type": "string",
|
|
101
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
102
|
+
},
|
|
103
|
+
"cessation_sha256": {
|
|
104
|
+
"type": "string",
|
|
105
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
106
|
+
},
|
|
107
|
+
"current_owner_sha256": {
|
|
108
|
+
"type": "string",
|
|
109
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
110
|
+
},
|
|
111
|
+
"current_configuration_sha256": {
|
|
112
|
+
"type": "string",
|
|
113
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
114
|
+
},
|
|
115
|
+
"repository_id": {
|
|
116
|
+
"type": "integer",
|
|
117
|
+
"minimum": 1,
|
|
118
|
+
"maximum": 9007199254740991
|
|
119
|
+
},
|
|
120
|
+
"pull_request": {
|
|
121
|
+
"type": "integer",
|
|
122
|
+
"minimum": 1,
|
|
123
|
+
"maximum": 9007199254740991
|
|
124
|
+
},
|
|
125
|
+
"historical_run_id": {
|
|
126
|
+
"type": "integer",
|
|
127
|
+
"minimum": 1,
|
|
128
|
+
"maximum": 9007199254740991
|
|
129
|
+
},
|
|
130
|
+
"current_run_id": {
|
|
131
|
+
"type": "integer",
|
|
132
|
+
"minimum": 1,
|
|
133
|
+
"maximum": 9007199254740991
|
|
134
|
+
},
|
|
135
|
+
"review_id": {
|
|
136
|
+
"type": "integer",
|
|
137
|
+
"minimum": 1,
|
|
138
|
+
"maximum": 9007199254740991
|
|
139
|
+
},
|
|
140
|
+
"check_id": {
|
|
141
|
+
"type": "integer",
|
|
142
|
+
"minimum": 1,
|
|
143
|
+
"maximum": 9007199254740991
|
|
144
|
+
},
|
|
145
|
+
"schema_version": {
|
|
146
|
+
"const": "historical-publication-completion-v1"
|
|
147
|
+
},
|
|
148
|
+
"verifier_version": {
|
|
149
|
+
"const": "review-sensei-github/historical-completion-v1"
|
|
150
|
+
},
|
|
151
|
+
"repository": {
|
|
152
|
+
"type": "string",
|
|
153
|
+
"pattern": "^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$"
|
|
154
|
+
},
|
|
155
|
+
"check_conclusion": {
|
|
156
|
+
"enum": [
|
|
157
|
+
"success",
|
|
158
|
+
"failure",
|
|
159
|
+
"action_required",
|
|
160
|
+
"neutral"
|
|
161
|
+
]
|
|
162
|
+
},
|
|
163
|
+
"historical_executor_sha": {
|
|
164
|
+
"type": "string",
|
|
165
|
+
"pattern": "^[a-f0-9]{40}$"
|
|
166
|
+
},
|
|
167
|
+
"historical_executor_commit": {
|
|
168
|
+
"type": "string",
|
|
169
|
+
"pattern": "^[a-f0-9]{40}$"
|
|
170
|
+
},
|
|
171
|
+
"historical_workflow_blob": {
|
|
172
|
+
"type": "string",
|
|
173
|
+
"pattern": "^[a-f0-9]{40}$"
|
|
174
|
+
},
|
|
175
|
+
"historical_job_id": {
|
|
176
|
+
"type": "integer",
|
|
177
|
+
"minimum": 1,
|
|
178
|
+
"maximum": 9007199254740991
|
|
179
|
+
},
|
|
180
|
+
"historical_review_step": {
|
|
181
|
+
"type": "integer",
|
|
182
|
+
"minimum": 1,
|
|
183
|
+
"maximum": 9007199254740991
|
|
184
|
+
},
|
|
185
|
+
"writer_inventory_sha256": {
|
|
186
|
+
"type": "string",
|
|
187
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
188
|
+
},
|
|
189
|
+
"termination_basis": {
|
|
190
|
+
"const": "successful-review-no-unsettled-root-write-v1"
|
|
191
|
+
},
|
|
192
|
+
"current_authority_sha256": {
|
|
193
|
+
"type": "string",
|
|
194
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
195
|
+
},
|
|
196
|
+
"current_executor_sha": {
|
|
197
|
+
"type": "string",
|
|
198
|
+
"pattern": "^[a-f0-9]{40}$"
|
|
199
|
+
},
|
|
200
|
+
"human_inventory_sha256": {
|
|
201
|
+
"type": "string",
|
|
202
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
203
|
+
},
|
|
204
|
+
"review_body_sha256": {
|
|
205
|
+
"type": "string",
|
|
206
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://reviewsensei.dev/schemas/v1/publication-selection.schema.json",
|
|
4
|
+
"title": "Inactive publication selection handoff v1",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": [
|
|
8
|
+
"schema_version",
|
|
9
|
+
"source_result_sha256",
|
|
10
|
+
"selected_result_sha256",
|
|
11
|
+
"policy_digest",
|
|
12
|
+
"criteria_sha256",
|
|
13
|
+
"occupancy_sha256",
|
|
14
|
+
"max_active_findings",
|
|
15
|
+
"actions"
|
|
16
|
+
],
|
|
17
|
+
"properties": {
|
|
18
|
+
"schema_version": {
|
|
19
|
+
"const": "inactive-publication-selection-v1"
|
|
20
|
+
},
|
|
21
|
+
"source_result_sha256": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
24
|
+
},
|
|
25
|
+
"selected_result_sha256": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
28
|
+
},
|
|
29
|
+
"policy_digest": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
32
|
+
},
|
|
33
|
+
"occupancy_sha256": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
36
|
+
},
|
|
37
|
+
"max_active_findings": {
|
|
38
|
+
"type": "integer",
|
|
39
|
+
"minimum": 1
|
|
40
|
+
},
|
|
41
|
+
"actions": {
|
|
42
|
+
"type": "array",
|
|
43
|
+
"maxItems": 250,
|
|
44
|
+
"items": {
|
|
45
|
+
"type": "object",
|
|
46
|
+
"additionalProperties": false,
|
|
47
|
+
"required": [
|
|
48
|
+
"instance",
|
|
49
|
+
"comment_sha256",
|
|
50
|
+
"action",
|
|
51
|
+
"consumes_slot",
|
|
52
|
+
"existing_target",
|
|
53
|
+
"target_state",
|
|
54
|
+
"target_proof_sha256"
|
|
55
|
+
],
|
|
56
|
+
"properties": {
|
|
57
|
+
"instance": {
|
|
58
|
+
"type": "string",
|
|
59
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
60
|
+
},
|
|
61
|
+
"comment_sha256": {
|
|
62
|
+
"type": "string",
|
|
63
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
64
|
+
},
|
|
65
|
+
"action": {
|
|
66
|
+
"enum": [
|
|
67
|
+
"create",
|
|
68
|
+
"reuse",
|
|
69
|
+
"reopen"
|
|
70
|
+
]
|
|
71
|
+
},
|
|
72
|
+
"consumes_slot": {
|
|
73
|
+
"type": "boolean"
|
|
74
|
+
},
|
|
75
|
+
"existing_target": {
|
|
76
|
+
"anyOf": [
|
|
77
|
+
{
|
|
78
|
+
"type": "string",
|
|
79
|
+
"minLength": 1,
|
|
80
|
+
"maxLength": 256
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"type": "null"
|
|
84
|
+
}
|
|
85
|
+
]
|
|
86
|
+
},
|
|
87
|
+
"target_state": {
|
|
88
|
+
"enum": [
|
|
89
|
+
"active",
|
|
90
|
+
"contingent",
|
|
91
|
+
"released",
|
|
92
|
+
null
|
|
93
|
+
]
|
|
94
|
+
},
|
|
95
|
+
"target_proof_sha256": {
|
|
96
|
+
"anyOf": [
|
|
97
|
+
{
|
|
98
|
+
"type": "string",
|
|
99
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"type": "null"
|
|
103
|
+
}
|
|
104
|
+
]
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
"oneOf": [
|
|
108
|
+
{
|
|
109
|
+
"properties": {
|
|
110
|
+
"action": {
|
|
111
|
+
"const": "create"
|
|
112
|
+
},
|
|
113
|
+
"target_state": {
|
|
114
|
+
"const": null
|
|
115
|
+
},
|
|
116
|
+
"consumes_slot": {
|
|
117
|
+
"const": true
|
|
118
|
+
},
|
|
119
|
+
"existing_target": {
|
|
120
|
+
"type": "null"
|
|
121
|
+
},
|
|
122
|
+
"target_proof_sha256": {
|
|
123
|
+
"type": "null"
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"properties": {
|
|
129
|
+
"action": {
|
|
130
|
+
"const": "reuse"
|
|
131
|
+
},
|
|
132
|
+
"target_state": {
|
|
133
|
+
"const": "active"
|
|
134
|
+
},
|
|
135
|
+
"consumes_slot": {
|
|
136
|
+
"const": false
|
|
137
|
+
},
|
|
138
|
+
"existing_target": {
|
|
139
|
+
"type": "string"
|
|
140
|
+
},
|
|
141
|
+
"target_proof_sha256": {
|
|
142
|
+
"type": "string"
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"properties": {
|
|
148
|
+
"action": {
|
|
149
|
+
"const": "reopen"
|
|
150
|
+
},
|
|
151
|
+
"target_state": {
|
|
152
|
+
"const": "contingent"
|
|
153
|
+
},
|
|
154
|
+
"consumes_slot": {
|
|
155
|
+
"const": false
|
|
156
|
+
},
|
|
157
|
+
"existing_target": {
|
|
158
|
+
"type": "string"
|
|
159
|
+
},
|
|
160
|
+
"target_proof_sha256": {
|
|
161
|
+
"type": "string"
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"properties": {
|
|
167
|
+
"action": {
|
|
168
|
+
"const": "reopen"
|
|
169
|
+
},
|
|
170
|
+
"target_state": {
|
|
171
|
+
"const": "released"
|
|
172
|
+
},
|
|
173
|
+
"consumes_slot": {
|
|
174
|
+
"const": true
|
|
175
|
+
},
|
|
176
|
+
"existing_target": {
|
|
177
|
+
"type": "string"
|
|
178
|
+
},
|
|
179
|
+
"target_proof_sha256": {
|
|
180
|
+
"type": "string"
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
]
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
"criteria_sha256": {
|
|
188
|
+
"type": "string",
|
|
189
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://reviewsensei.dev/schemas/v1/quarantine-assessment-cursor.schema.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": [
|
|
7
|
+
"schema_version",
|
|
8
|
+
"scope_sha256",
|
|
9
|
+
"count",
|
|
10
|
+
"tail_manifest"
|
|
11
|
+
],
|
|
12
|
+
"properties": {
|
|
13
|
+
"schema_version": {
|
|
14
|
+
"const": "quarantine-assessment-cursor-v1"
|
|
15
|
+
},
|
|
16
|
+
"scope_sha256": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
19
|
+
},
|
|
20
|
+
"count": {
|
|
21
|
+
"type": "integer",
|
|
22
|
+
"minimum": 0,
|
|
23
|
+
"maximum": 200
|
|
24
|
+
},
|
|
25
|
+
"tail_manifest": {
|
|
26
|
+
"anyOf": [
|
|
27
|
+
{
|
|
28
|
+
"type": "null"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"$ref": "https://reviewsensei.dev/schemas/v1/evidence-manifest.schema.json"
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://reviewsensei.dev/schemas/v1/quarantine-assessment-event.schema.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": [
|
|
7
|
+
"schema_version",
|
|
8
|
+
"scope_sha256",
|
|
9
|
+
"sequence",
|
|
10
|
+
"previous_manifest",
|
|
11
|
+
"decision"
|
|
12
|
+
],
|
|
13
|
+
"properties": {
|
|
14
|
+
"schema_version": {
|
|
15
|
+
"const": "quarantine-assessment-event-v1"
|
|
16
|
+
},
|
|
17
|
+
"scope_sha256": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
20
|
+
},
|
|
21
|
+
"sequence": {
|
|
22
|
+
"type": "integer",
|
|
23
|
+
"minimum": 1,
|
|
24
|
+
"maximum": 200
|
|
25
|
+
},
|
|
26
|
+
"previous_manifest": {
|
|
27
|
+
"anyOf": [
|
|
28
|
+
{
|
|
29
|
+
"type": "null"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"$ref": "https://reviewsensei.dev/schemas/v1/evidence-manifest.schema.json"
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
"decision": {
|
|
37
|
+
"$ref": "https://reviewsensei.dev/schemas/v1/quarantine-assessment-state.schema.json#/properties/settlements/items"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://reviewsensei.dev/schemas/v1/quarantine-assessment-inventory.schema.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": [
|
|
7
|
+
"schema_version",
|
|
8
|
+
"assessments"
|
|
9
|
+
],
|
|
10
|
+
"properties": {
|
|
11
|
+
"schema_version": {
|
|
12
|
+
"const": "quarantine-assessment-inventory-v1"
|
|
13
|
+
},
|
|
14
|
+
"assessments": {
|
|
15
|
+
"type": "array",
|
|
16
|
+
"maxItems": 100,
|
|
17
|
+
"items": {
|
|
18
|
+
"type": "object",
|
|
19
|
+
"additionalProperties": false,
|
|
20
|
+
"required": [
|
|
21
|
+
"instance",
|
|
22
|
+
"concern"
|
|
23
|
+
],
|
|
24
|
+
"properties": {
|
|
25
|
+
"instance": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
28
|
+
},
|
|
29
|
+
"concern": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://reviewsensei.dev/schemas/v1/quarantine-assessment-origins.schema.json",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"required": [
|
|
7
|
+
"schema_version",
|
|
8
|
+
"origins"
|
|
9
|
+
],
|
|
10
|
+
"properties": {
|
|
11
|
+
"schema_version": {
|
|
12
|
+
"enum": [
|
|
13
|
+
"quarantine-assessment-origins-v1",
|
|
14
|
+
"quarantine-published-origins-v1"
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
"origins": {
|
|
18
|
+
"type": "array",
|
|
19
|
+
"minItems": 1,
|
|
20
|
+
"maxItems": 2,
|
|
21
|
+
"items": {
|
|
22
|
+
"type": "object",
|
|
23
|
+
"additionalProperties": false,
|
|
24
|
+
"required": [
|
|
25
|
+
"schema_version",
|
|
26
|
+
"kind",
|
|
27
|
+
"source_manifest",
|
|
28
|
+
"inventory_manifest",
|
|
29
|
+
"scope_sha256"
|
|
30
|
+
],
|
|
31
|
+
"properties": {
|
|
32
|
+
"schema_version": {
|
|
33
|
+
"const": "quarantine-assessment-origin-v1"
|
|
34
|
+
},
|
|
35
|
+
"kind": {
|
|
36
|
+
"enum": [
|
|
37
|
+
"retained-result",
|
|
38
|
+
"published-assessment",
|
|
39
|
+
"published-current",
|
|
40
|
+
"published-earlier"
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
"source_manifest": {
|
|
44
|
+
"$ref": "https://reviewsensei.dev/schemas/v1/evidence-manifest.schema.json"
|
|
45
|
+
},
|
|
46
|
+
"inventory_manifest": {
|
|
47
|
+
"anyOf": [
|
|
48
|
+
{
|
|
49
|
+
"$ref": "https://reviewsensei.dev/schemas/v1/evidence-manifest.schema.json"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"type": "object",
|
|
53
|
+
"additionalProperties": false,
|
|
54
|
+
"required": [
|
|
55
|
+
"encoding",
|
|
56
|
+
"binding",
|
|
57
|
+
"item_count",
|
|
58
|
+
"sha256",
|
|
59
|
+
"document"
|
|
60
|
+
],
|
|
61
|
+
"properties": {
|
|
62
|
+
"encoding": {
|
|
63
|
+
"const": "inline-json-v1"
|
|
64
|
+
},
|
|
65
|
+
"binding": {
|
|
66
|
+
"$ref": "https://reviewsensei.dev/schemas/v1/evidence-manifest.schema.json#/properties/binding"
|
|
67
|
+
},
|
|
68
|
+
"item_count": {
|
|
69
|
+
"type": "integer",
|
|
70
|
+
"minimum": 0,
|
|
71
|
+
"maximum": 100
|
|
72
|
+
},
|
|
73
|
+
"sha256": {
|
|
74
|
+
"type": "string",
|
|
75
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
76
|
+
},
|
|
77
|
+
"document": {
|
|
78
|
+
"$ref": "https://reviewsensei.dev/schemas/v1/quarantine-assessment-inventory.schema.json"
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
]
|
|
83
|
+
},
|
|
84
|
+
"scope_sha256": {
|
|
85
|
+
"type": "string",
|
|
86
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "object",
|
|
3
|
+
"additionalProperties": false,
|
|
4
|
+
"required": [
|
|
5
|
+
"schema_version",
|
|
6
|
+
"scope_sha256",
|
|
7
|
+
"settlements"
|
|
8
|
+
],
|
|
9
|
+
"properties": {
|
|
10
|
+
"schema_version": {
|
|
11
|
+
"const": "quarantine-assessment-state-v1"
|
|
12
|
+
},
|
|
13
|
+
"scope_sha256": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
16
|
+
},
|
|
17
|
+
"settlements": {
|
|
18
|
+
"type": "array",
|
|
19
|
+
"maxItems": 200,
|
|
20
|
+
"items": {
|
|
21
|
+
"type": "object",
|
|
22
|
+
"additionalProperties": false,
|
|
23
|
+
"required": [
|
|
24
|
+
"origin_scope_sha256",
|
|
25
|
+
"instance",
|
|
26
|
+
"action",
|
|
27
|
+
"actor",
|
|
28
|
+
"role",
|
|
29
|
+
"head_sha",
|
|
30
|
+
"source_id",
|
|
31
|
+
"source_updated_at",
|
|
32
|
+
"source_body_sha256",
|
|
33
|
+
"reason",
|
|
34
|
+
"policy_sha256"
|
|
35
|
+
],
|
|
36
|
+
"properties": {
|
|
37
|
+
"origin_scope_sha256": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
40
|
+
},
|
|
41
|
+
"instance": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
44
|
+
},
|
|
45
|
+
"action": {
|
|
46
|
+
"enum": [
|
|
47
|
+
"dismiss",
|
|
48
|
+
"accept-risk"
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
"actor": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9-]{0,38}$"
|
|
54
|
+
},
|
|
55
|
+
"role": {
|
|
56
|
+
"enum": [
|
|
57
|
+
"admin",
|
|
58
|
+
"maintain"
|
|
59
|
+
]
|
|
60
|
+
},
|
|
61
|
+
"head_sha": {
|
|
62
|
+
"type": "string",
|
|
63
|
+
"pattern": "^[a-f0-9]{40}$"
|
|
64
|
+
},
|
|
65
|
+
"source_id": {
|
|
66
|
+
"type": "integer",
|
|
67
|
+
"minimum": 1,
|
|
68
|
+
"maximum": 9007199254740991
|
|
69
|
+
},
|
|
70
|
+
"source_updated_at": {
|
|
71
|
+
"type": "string",
|
|
72
|
+
"pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"
|
|
73
|
+
},
|
|
74
|
+
"source_body_sha256": {
|
|
75
|
+
"type": "string",
|
|
76
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
77
|
+
},
|
|
78
|
+
"reason": {
|
|
79
|
+
"type": "string",
|
|
80
|
+
"minLength": 1,
|
|
81
|
+
"maxLength": 4096
|
|
82
|
+
},
|
|
83
|
+
"policy_sha256": {
|
|
84
|
+
"type": "string",
|
|
85
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
92
|
+
"$id": "https://reviewsensei.dev/schemas/v1/quarantine-assessment-state.schema.json",
|
|
93
|
+
"description": "Two independent origins with at most100 assessments each; decisions bind full(origin scope, instance). Integrity alone grants no decision authority."
|
|
94
|
+
}
|