@reviewsensei/cli-linux-x64-gnu 0.8.16 → 0.8.18

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 CHANGED
@@ -8,7 +8,7 @@ Install the public launcher, which selects the matching native package:
8
8
 
9
9
  <!-- release-installation:package-npm-1:start -->
10
10
  ```console
11
- npm install --save-dev @reviewsensei/cli@0.8.16
11
+ npm install --save-dev @reviewsensei/cli@0.8.18
12
12
  npx review-sensei --help
13
13
  ```
14
14
  <!-- release-installation:package-npm-1:end -->
Binary file
@@ -163,13 +163,13 @@
163
163
  }
164
164
  },
165
165
  "completed": {
166
- "type": "array",
167
- "items": {
168
- "$ref": "#/$defs/request"
169
- }
166
+ "type": "array"
170
167
  },
171
168
  "version": {
172
- "const": "caller-requests-v1"
169
+ "enum": [
170
+ "caller-requests-v1",
171
+ "caller-requests-v2"
172
+ ]
173
173
  },
174
174
  "previous_record": {
175
175
  "oneOf": [
@@ -197,6 +197,36 @@
197
197
  "$ref": "evidence-manifest.schema.json"
198
198
  }
199
199
  }
200
+ },
201
+ {
202
+ "type": "object",
203
+ "additionalProperties": false,
204
+ "required": [
205
+ "run_id",
206
+ "root_sha256",
207
+ "manifest",
208
+ "schema_version",
209
+ "completion"
210
+ ],
211
+ "properties": {
212
+ "run_id": {
213
+ "type": "integer",
214
+ "minimum": 1
215
+ },
216
+ "root_sha256": {
217
+ "type": "string",
218
+ "pattern": "^[a-f0-9]{64}$"
219
+ },
220
+ "manifest": {
221
+ "$ref": "evidence-manifest.schema.json"
222
+ },
223
+ "schema_version": {
224
+ "const": "caller-run-reference-v2"
225
+ },
226
+ "completion": {
227
+ "$ref": "historical-publication-completion.schema.json"
228
+ }
229
+ }
200
230
  }
201
231
  ]
202
232
  },
@@ -555,6 +585,62 @@
555
585
  "minimum": 1
556
586
  }
557
587
  }
588
+ },
589
+ "request-pair": {
590
+ "description": "Completed request encoded as [request_id, deadline_unix_ms]; the decoder is selected by the accounting version.",
591
+ "type": "array",
592
+ "prefixItems": [
593
+ {
594
+ "type": "string",
595
+ "pattern": "^[A-Za-z0-9_.:-]{1,128}$"
596
+ },
597
+ {
598
+ "type": "integer",
599
+ "minimum": 1,
600
+ "maximum": 9007199254740991
601
+ }
602
+ ],
603
+ "items": false,
604
+ "minItems": 2,
605
+ "maxItems": 2
606
+ }
607
+ },
608
+ "allOf": [
609
+ {
610
+ "if": {
611
+ "properties": {
612
+ "version": {
613
+ "const": "caller-requests-v1"
614
+ }
615
+ }
616
+ },
617
+ "then": {
618
+ "properties": {
619
+ "completed": {
620
+ "items": {
621
+ "$ref": "#/$defs/request"
622
+ }
623
+ }
624
+ }
625
+ }
626
+ },
627
+ {
628
+ "if": {
629
+ "properties": {
630
+ "version": {
631
+ "const": "caller-requests-v2"
632
+ }
633
+ }
634
+ },
635
+ "then": {
636
+ "properties": {
637
+ "completed": {
638
+ "items": {
639
+ "$ref": "#/$defs/request-pair"
640
+ }
641
+ }
642
+ }
643
+ }
558
644
  }
559
- }
645
+ ]
560
646
  }
@@ -47,7 +47,8 @@
47
47
  "schema_version": {
48
48
  "enum": [
49
49
  "1",
50
- "2"
50
+ "2",
51
+ "3"
51
52
  ]
52
53
  },
53
54
  "enabled": {
@@ -70,6 +71,9 @@
70
71
  "confirmed"
71
72
  ]
72
73
  },
74
+ "review_verdict": {
75
+ "$ref": "https://reviewsensei.dev/schemas/v1/review-verdict.schema.json"
76
+ },
73
77
  "has_blocking_findings": {
74
78
  "type": "boolean"
75
79
  },
@@ -125,7 +129,10 @@
125
129
  "if": {
126
130
  "properties": {
127
131
  "schema_version": {
128
- "const": "2"
132
+ "enum": [
133
+ "2",
134
+ "3"
135
+ ]
129
136
  }
130
137
  }
131
138
  },
@@ -164,6 +171,27 @@
164
171
  }
165
172
  }
166
173
  }
174
+ },
175
+ {
176
+ "if": {
177
+ "properties": {
178
+ "schema_version": {
179
+ "const": "3"
180
+ }
181
+ }
182
+ },
183
+ "then": {
184
+ "required": [
185
+ "review_verdict"
186
+ ]
187
+ },
188
+ "else": {
189
+ "not": {
190
+ "required": [
191
+ "review_verdict"
192
+ ]
193
+ }
194
+ }
167
195
  }
168
196
  ]
169
197
  },
@@ -48,7 +48,8 @@
48
48
  "schema_version": {
49
49
  "enum": [
50
50
  "1",
51
- "2"
51
+ "2",
52
+ "3"
52
53
  ]
53
54
  },
54
55
  "enabled": {
@@ -71,6 +72,9 @@
71
72
  "confirmed"
72
73
  ]
73
74
  },
75
+ "review_verdict": {
76
+ "$ref": "https://reviewsensei.dev/schemas/v1/review-verdict.schema.json"
77
+ },
74
78
  "has_blocking_findings": {
75
79
  "type": "boolean"
76
80
  },
@@ -126,7 +130,10 @@
126
130
  "if": {
127
131
  "properties": {
128
132
  "schema_version": {
129
- "const": "2"
133
+ "enum": [
134
+ "2",
135
+ "3"
136
+ ]
130
137
  }
131
138
  }
132
139
  },
@@ -165,6 +172,27 @@
165
172
  }
166
173
  }
167
174
  }
175
+ },
176
+ {
177
+ "if": {
178
+ "properties": {
179
+ "schema_version": {
180
+ "const": "3"
181
+ }
182
+ }
183
+ },
184
+ "then": {
185
+ "required": [
186
+ "review_verdict"
187
+ ]
188
+ },
189
+ "else": {
190
+ "not": {
191
+ "required": [
192
+ "review_verdict"
193
+ ]
194
+ }
195
+ }
168
196
  }
169
197
  ]
170
198
  },
@@ -0,0 +1,76 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://reviewsensei.dev/schemas/v1/eligibility-v6.schema.json",
4
+ "type": "object",
5
+ "additionalProperties": false,
6
+ "required": [
7
+ "schema_version",
8
+ "current",
9
+ "historical_assessments"
10
+ ],
11
+ "properties": {
12
+ "schema_version": {
13
+ "const": "6"
14
+ },
15
+ "current": {
16
+ "type": "object",
17
+ "required": [
18
+ "schema_version"
19
+ ],
20
+ "properties": {
21
+ "schema_version": {
22
+ "enum": [
23
+ "1",
24
+ "2.0",
25
+ "3",
26
+ "4",
27
+ "5"
28
+ ]
29
+ }
30
+ }
31
+ },
32
+ "historical_assessments": {
33
+ "type": "object",
34
+ "additionalProperties": false,
35
+ "required": [
36
+ "scope_sha256",
37
+ "state_sha256",
38
+ "pending",
39
+ "fresh_human_pending",
40
+ "review_id",
41
+ "historical_head_sha"
42
+ ],
43
+ "properties": {
44
+ "scope_sha256": {
45
+ "type": "string",
46
+ "pattern": "^[a-f0-9]{64}$"
47
+ },
48
+ "state_sha256": {
49
+ "type": "string",
50
+ "pattern": "^[a-f0-9]{64}$"
51
+ },
52
+ "pending": {
53
+ "type": "array",
54
+ "maxItems": 100,
55
+ "uniqueItems": true,
56
+ "items": {
57
+ "type": "string",
58
+ "pattern": "^[a-f0-9]{64}$"
59
+ }
60
+ },
61
+ "fresh_human_pending": {
62
+ "type": "boolean"
63
+ },
64
+ "review_id": {
65
+ "type": "integer",
66
+ "minimum": 1,
67
+ "maximum": 9007199254740991
68
+ },
69
+ "historical_head_sha": {
70
+ "type": "string",
71
+ "pattern": "^[a-f0-9]{40}$"
72
+ }
73
+ }
74
+ }
75
+ }
76
+ }
@@ -24,7 +24,8 @@
24
24
  "2.0",
25
25
  "3",
26
26
  "4",
27
- "5"
27
+ "5",
28
+ "6"
28
29
  ]
29
30
  }
30
31
  }
@@ -0,0 +1,123 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://reviewsensei.dev/schemas/v1/historical-assessment-hold.schema.json",
4
+ "type": "object",
5
+ "additionalProperties": false,
6
+ "required": [
7
+ "schema_version",
8
+ "source",
9
+ "scope_sha256",
10
+ "assessments",
11
+ "settlements"
12
+ ],
13
+ "properties": {
14
+ "schema_version": {
15
+ "const": "historical-assessment-hold-v1"
16
+ },
17
+ "source": {
18
+ "$ref": "https://reviewsensei.dev/schemas/v1/api-run-accounting.schema.json#/properties/previous_record"
19
+ },
20
+ "scope_sha256": {
21
+ "type": "string",
22
+ "pattern": "^[a-f0-9]{64}$"
23
+ },
24
+ "assessments": {
25
+ "type": "array",
26
+ "minItems": 1,
27
+ "maxItems": 100,
28
+ "items": {
29
+ "type": "object",
30
+ "additionalProperties": false,
31
+ "required": [
32
+ "instance",
33
+ "concern"
34
+ ],
35
+ "properties": {
36
+ "instance": {
37
+ "type": "string",
38
+ "pattern": "^[a-f0-9]{64}$"
39
+ },
40
+ "concern": {
41
+ "anyOf": [
42
+ {
43
+ "type": "string",
44
+ "pattern": "^[a-f0-9]{64}$"
45
+ },
46
+ {
47
+ "type": "null"
48
+ }
49
+ ]
50
+ }
51
+ }
52
+ }
53
+ },
54
+ "settlements": {
55
+ "type": "array",
56
+ "maxItems": 100,
57
+ "items": {
58
+ "type": "object",
59
+ "additionalProperties": false,
60
+ "required": [
61
+ "instance",
62
+ "action",
63
+ "actor",
64
+ "role",
65
+ "head_sha",
66
+ "source_id",
67
+ "source_updated_at",
68
+ "source_body_sha256",
69
+ "reason",
70
+ "policy_sha256"
71
+ ],
72
+ "properties": {
73
+ "instance": {
74
+ "type": "string",
75
+ "pattern": "^[a-f0-9]{64}$"
76
+ },
77
+ "action": {
78
+ "enum": [
79
+ "dismiss",
80
+ "accept-risk"
81
+ ]
82
+ },
83
+ "actor": {
84
+ "type": "string",
85
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9-]{0,38}$"
86
+ },
87
+ "role": {
88
+ "enum": [
89
+ "admin",
90
+ "maintain"
91
+ ]
92
+ },
93
+ "head_sha": {
94
+ "type": "string",
95
+ "pattern": "^[a-f0-9]{40}$"
96
+ },
97
+ "source_id": {
98
+ "type": "integer",
99
+ "minimum": 1,
100
+ "maximum": 9007199254740991
101
+ },
102
+ "source_updated_at": {
103
+ "type": "string",
104
+ "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$"
105
+ },
106
+ "source_body_sha256": {
107
+ "type": "string",
108
+ "pattern": "^[a-f0-9]{64}$"
109
+ },
110
+ "reason": {
111
+ "type": "string",
112
+ "minLength": 1,
113
+ "maxLength": 1024
114
+ },
115
+ "policy_sha256": {
116
+ "type": "string",
117
+ "pattern": "^[a-f0-9]{64}$"
118
+ }
119
+ }
120
+ }
121
+ }
122
+ }
123
+ }
@@ -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
+ }
@@ -22,6 +22,7 @@
22
22
  "type": "string",
23
23
  "enum": ["display-only", "publication"]
24
24
  },
25
+ "quality": {"type": "string", "enum": ["current", "balanced", "high-signal"]},
25
26
  "max_failed_attempts": {
26
27
  "type": "integer",
27
28
  "minimum": 1,
@@ -6,6 +6,8 @@
6
6
  "additionalProperties": false,
7
7
  "required": ["summary", "comments", "provider"],
8
8
  "properties": {
9
+ "publication_selection": {"$ref": "https://reviewsensei.dev/schemas/v1/publication-selection.schema.json"},
10
+ "review_verdict": {"$ref": "https://reviewsensei.dev/schemas/v1/review-verdict.schema.json"},
9
11
  "summary": {"type": "string", "minLength": 1},
10
12
  "comments": {
11
13
  "type": "array",
@@ -0,0 +1,41 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://reviewsensei.dev/schemas/v1/review-verdict.schema.json",
4
+ "title": "ReviewSensei bounded current-review verdict v1",
5
+ "description": "Host-derived verdict included in the reviewsensei:review-content:verdict:v1 content identity. Runtime result validation binds ordered selected comments to the digest and one admission byte per selected comment; JSON Schema alone cannot express that hash/cardinality relation.",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": [
9
+ "schema_version",
10
+ "policy_digest",
11
+ "unselected_blocking_defect",
12
+ "unselected_human_decision",
13
+ "selected_comments_sha256",
14
+ "selected_admission"
15
+ ],
16
+ "properties": {
17
+ "schema_version": {
18
+ "const": "1.0"
19
+ },
20
+ "policy_digest": {
21
+ "type": "string",
22
+ "pattern": "^[a-f0-9]{64}$"
23
+ },
24
+ "unselected_blocking_defect": {
25
+ "type": "boolean"
26
+ },
27
+ "unselected_human_decision": {
28
+ "type": "boolean"
29
+ },
30
+ "selected_comments_sha256": {
31
+ "type": "string",
32
+ "pattern": "^[a-f0-9]{64}$"
33
+ },
34
+ "selected_admission": {
35
+ "description": "Ordered selected admission: A advisory, B blocking, H human decision. Runtime validation requires one byte per bound selected comment.",
36
+ "type": "string",
37
+ "maxLength": 250,
38
+ "pattern": "^[ABH]*$"
39
+ }
40
+ }
41
+ }
@@ -22,6 +22,9 @@
22
22
  "record_sha256"
23
23
  ],
24
24
  "properties": {
25
+ "historical_assessments": {
26
+ "$ref": "https://reviewsensei.dev/schemas/v1/historical-assessment-hold.schema.json"
27
+ },
25
28
  "api_run_accounting": {
26
29
  "$ref": "https://reviewsensei.dev/schemas/v1/api-run-accounting.schema.json"
27
30
  },
@@ -35,7 +38,7 @@
35
38
  ],
36
39
  "properties": {
37
40
  "schema_version": {
38
- "const": "1.0"
41
+ "enum": ["1.0", "2.0"]
39
42
  },
40
43
  "result_digest": {
41
44
  "type": "string",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: review-sensei
3
- Version: 0.8.16
3
+ Version: 0.8.18
4
4
  Summary: Provider-neutral AI code review engine with an Ollama adapter.
5
5
  Author: Mohamad Alsabbagh
6
6
  License-Expression: MIT
@@ -158,8 +158,8 @@ provider-neutral `@reviewsensei/cli` launcher:
158
158
 
159
159
  <!-- release-installation:package-npm-1:start -->
160
160
  ```bash
161
- npx --yes @reviewsensei/cli@0.8.16 --version
162
- npx --yes @reviewsensei/cli@0.8.16 --help
161
+ npx --yes @reviewsensei/cli@0.8.18 --version
162
+ npx --yes @reviewsensei/cli@0.8.18 --help
163
163
  ```
164
164
  <!-- release-installation:package-npm-1:end -->
165
165
 
@@ -718,6 +718,20 @@ policy commit. Every other policy decision is a field of `.reviewsensei.yml`:
718
718
  requests no Variables permission and never creates the customer-owned
719
719
  `OLLAMA_API_KEY` secret.
720
720
 
721
+ The optional `review.quality` field accepts `current`, `balanced`, or
722
+ `high-signal`. Omission keeps `current` behavior; `balanced` currently retains
723
+ those completion rules. With `high-signal`, completed duplicate filtering,
724
+ rejected excerpts checked against available source, and out-of-diff filtering
725
+ do not alone make a review incomplete or add candidate counts to its summary.
726
+ Missing or invalid evidence and unfinished review coverage still withhold
727
+ approval. A new optional observation does not become a human decision solely
728
+ because the prior baseline is incompatible; existing and ambiguous concerns
729
+ remain held. This setting is YAML-only, appears in `config show --explain`,
730
+ and is bound to the review policy used by analysis and publication. Each new
731
+ high-signal review runs full discovery within the existing work budgets, which
732
+ can cost more than an incremental pass. Exact partial continuations reuse their
733
+ authenticated completed work and preserve required current-review verdicts.
734
+
721
735
  Reusable-workflow callers can optionally set `with.hosted_runner` to one
722
736
  Ubuntu-compatible Linux runner label, such as `ubicloud-standard-2` or an
723
737
  operator-owned label. Omitted and empty inputs use `ubuntu-latest`. Labels must
@@ -8,9 +8,11 @@ SECURITY.md
8
8
  SUPPORT.md
9
9
  pyproject.toml
10
10
  setup.py
11
+ .github/workflows/review-sensei-run.yml
11
12
  docs/approval-recovery.md
12
13
  docs/architecture.md
13
14
  docs/community.md
15
+ docs/controlled-restart-launch.md
14
16
  docs/data-handling.md
15
17
  docs/default-human-inventory-acceptance.md
16
18
  docs/diagnostics.md
@@ -149,9 +151,13 @@ docs/adr/0110-repository-bound-thread-cleanup.md
149
151
  docs/adr/0111-caller-api-work-allowance.md
150
152
  docs/adr/0112-retained-published-rescan-inventory.md
151
153
  docs/adr/0113-archive-backed-provider-narrative-excerpts.md
154
+ docs/adr/0114-historical-publication-completion.md
152
155
  docs/adr/0115-quarantined-review-lineage.md
153
156
  docs/adr/0116-published-tail-quarantine.md
154
157
  docs/adr/0117-bounded-native-inline-publication-groups.md
158
+ docs/adr/0118-finite-recovery-accounting-and-snapshot-batches.md
159
+ docs/adr/0119-high-signal-review-verdict.md
160
+ docs/adr/0120-controlled-serialized-restart.md
155
161
  docs/adr/README.md
156
162
  docs/architecture/index.md
157
163
  docs/architecture/mandatory-rules.md
@@ -260,6 +266,13 @@ examples/github-actions/review-sensei-uninstall.yml
260
266
  examples/stages/01-summary.json
261
267
  examples/stages/02-comments.json
262
268
  examples/stages/03-learning-proposals.json
269
+ requirements/major-tag-validation.txt
270
+ scripts/check_action_pins.py
271
+ scripts/controlled_restart_launch.py
272
+ scripts/pypi_channel_publication.py
273
+ scripts/python_release_sources.py
274
+ scripts/qualify_published_cli.py
275
+ scripts/release_docs.py
263
276
  src/review_sensei/__init__.py
264
277
  src/review_sensei/__main__.py
265
278
  src/review_sensei/api_work.py
@@ -289,6 +302,8 @@ src/review_sensei/evaluation_control.py
289
302
  src/review_sensei/evidence.py
290
303
  src/review_sensei/execution.py
291
304
  src/review_sensei/feedback.py
305
+ src/review_sensei/historical_assessments.py
306
+ src/review_sensei/historical_completion.py
292
307
  src/review_sensei/history_association.py
293
308
  src/review_sensei/hosted.py
294
309
  src/review_sensei/human_assessment.py
@@ -306,6 +321,7 @@ src/review_sensei/placement.py
306
321
  src/review_sensei/planning.py
307
322
  src/review_sensei/presentation.py
308
323
  src/review_sensei/provider_config.py
324
+ src/review_sensei/publication_selection.py
309
325
  src/review_sensei/publication_staging.py
310
326
  src/review_sensei/quarantine_assessments.py
311
327
  src/review_sensei/quarantine_lineage.py
@@ -314,6 +330,7 @@ src/review_sensei/reassessment_work.py
314
330
  src/review_sensei/release_manifest.py
315
331
  src/review_sensei/remaining_progress.py
316
332
  src/review_sensei/rescan.py
333
+ src/review_sensei/review_verdict.py
317
334
  src/review_sensei/schemas.py
318
335
  src/review_sensei/scope.py
319
336
  src/review_sensei/sequence.py
@@ -361,11 +378,14 @@ src/review_sensei/schemas/conversation-reply.schema.json
361
378
  src/review_sensei/schemas/coverage-manifest.schema.json
362
379
  src/review_sensei/schemas/eligibility-v4.schema.json
363
380
  src/review_sensei/schemas/eligibility-v5.schema.json
381
+ src/review_sensei/schemas/eligibility-v6.schema.json
364
382
  src/review_sensei/schemas/eligibility-v7.schema.json
365
383
  src/review_sensei/schemas/eligibility-v8.schema.json
366
384
  src/review_sensei/schemas/evaluation-corpus.schema.json
367
385
  src/review_sensei/schemas/evaluation-report.schema.json
368
386
  src/review_sensei/schemas/evidence-manifest.schema.json
387
+ src/review_sensei/schemas/historical-assessment-hold.schema.json
388
+ src/review_sensei/schemas/historical-publication-completion.schema.json
369
389
  src/review_sensei/schemas/human-file-receipt-group.schema.json
370
390
  src/review_sensei/schemas/human-file-receipt.schema.json
371
391
  src/review_sensei/schemas/human-file-review-group.schema.json
@@ -377,6 +397,7 @@ src/review_sensei/schemas/learning-proposal.schema.json
377
397
  src/review_sensei/schemas/observed-convergence-report.schema.json
378
398
  src/review_sensei/schemas/openrouter-qualification.schema.json
379
399
  src/review_sensei/schemas/promotion-record.schema.json
400
+ src/review_sensei/schemas/publication-selection.schema.json
380
401
  src/review_sensei/schemas/quarantine-assessment-cursor.schema.json
381
402
  src/review_sensei/schemas/quarantine-assessment-event.schema.json
382
403
  src/review_sensei/schemas/quarantine-assessment-inventory.schema.json
@@ -393,6 +414,7 @@ src/review_sensei/schemas/review-result.schema.json
393
414
  src/review_sensei/schemas/review-round-decision.schema.json
394
415
  src/review_sensei/schemas/review-stage.schema.json
395
416
  src/review_sensei/schemas/review-transaction.schema.json
417
+ src/review_sensei/schemas/review-verdict.schema.json
396
418
  src/review_sensei/schemas/run-outcome.schema.json
397
419
  src/review_sensei/schemas/session-record.schema.json
398
420
  src/review_sensei/schemas/stage.schema.json
@@ -403,6 +425,7 @@ src/review_sensei/schemas/work-recovery-artifact.schema.json
403
425
  tests/baseline_cli_contract.py
404
426
  tests/conversation_deadline_contract.py
405
427
  tests/default_human_inventory_contract.py
428
+ tests/effective_model_contract.py
406
429
  tests/fake_github_http.py
407
430
  tests/github_ingress_contract.py
408
431
  tests/isolated_working_directory.py
@@ -411,9 +434,11 @@ tests/openrouter_cli_contract.py
411
434
  tests/packaging_guard.py
412
435
  tests/provider_common_flow_contract.py
413
436
  tests/provider_deadline_contract.py
437
+ tests/provider_https_contract.py
414
438
  tests/quarantine_inline_exposure.py
415
439
  tests/quarantine_published_tail_exposure.py
416
440
  tests/session_fixture_clock.py
441
+ tests/strict_workflow_yaml.py
417
442
  tests/test_accepted_result.py
418
443
  tests/test_action_completion.py
419
444
  tests/test_action_reply.py
@@ -433,6 +458,7 @@ tests/test_approval_progress.py
433
458
  tests/test_assessment_queue.py
434
459
  tests/test_assessment_queue_storage.py
435
460
  tests/test_authenticated_partitions.py
461
+ tests/test_bounded_snapshot_lifecycle.py
436
462
  tests/test_bounded_v1_publication.py
437
463
  tests/test_broker_admission_hold.py
438
464
  tests/test_broker_dispatch_control.py
@@ -440,6 +466,13 @@ tests/test_caller_operation_diagnostics.py
440
466
  tests/test_checkpoint_publication_acceptance.py
441
467
  tests/test_checkpoint_result_store.py
442
468
  tests/test_command_capacity_recovery.py
469
+ tests/test_controlled_restart.py
470
+ tests/test_controlled_restart_caller_journey.py
471
+ tests/test_controlled_restart_caller_output.py
472
+ tests/test_controlled_restart_handoff.py
473
+ tests/test_controlled_restart_installer.py
474
+ tests/test_controlled_restart_journeys.py
475
+ tests/test_controlled_restart_late_binding.py
443
476
  tests/test_current_command_inventory.py
444
477
  tests/test_default_human_consumers.py
445
478
  tests/test_default_human_inventory.py
@@ -469,6 +502,7 @@ tests/test_narrative_archive.py
469
502
  tests/test_native_group_publication.py
470
503
  tests/test_native_manifest.py
471
504
  tests/test_native_operation_envelope.py
505
+ tests/test_native_publication_occupancy.py
472
506
  tests/test_native_reader_projection.py
473
507
  tests/test_native_review_census.py
474
508
  tests/test_native_review_groups.py
@@ -478,6 +512,7 @@ tests/test_operation_host.py
478
512
  tests/test_operation_wall_clock.py
479
513
  tests/test_override_metadata_integration.py
480
514
  tests/test_packed_comment_census.py
515
+ tests/test_paged_disposition_snapshots.py
481
516
  tests/test_pr308_ledger_regression.py
482
517
  tests/test_public_feedback_continuation.py
483
518
  tests/test_publication_cli_recovery.py
@@ -485,6 +520,8 @@ tests/test_publication_future_capacity.py
485
520
  tests/test_publication_pagination_budget.py
486
521
  tests/test_publication_recovery.py
487
522
  tests/test_publication_recovery_phase.py
523
+ tests/test_publication_selection_boundaries.py
524
+ tests/test_publication_selection_handoff.py
488
525
  tests/test_publication_staging.py
489
526
  tests/test_quarantine_activation.py
490
527
  tests/test_quarantine_approval.py
@@ -510,6 +547,9 @@ tests/test_quarantine_rollover.py
510
547
  tests/test_quarantine_scan_capacity.py
511
548
  tests/test_quarantine_source.py
512
549
  tests/test_quarantine_state_chain.py
550
+ tests/test_quarantine_v3_check_capacity.py
551
+ tests/test_quarantine_v3_journey.py
552
+ tests/test_quarantine_v3_publication.py
513
553
  tests/test_remaining_progress.py
514
554
  tests/test_retained_full_rescan.py
515
555
  tests/test_retention_projection.py
@@ -529,13 +569,16 @@ tests/dist_safe/test_baseline_recovery_contract.py
529
569
  tests/dist_safe/test_broker_dispatch_control_contract.py
530
570
  tests/dist_safe/test_command_capacity_contract.py
531
571
  tests/dist_safe/test_comment_command_contract.py
572
+ tests/dist_safe/test_controlled_restart_contract.py
532
573
  tests/dist_safe/test_conversation_deadline_contract.py
533
574
  tests/dist_safe/test_current_run_contract.py
534
575
  tests/dist_safe/test_default_human_inventory_contract.py
535
576
  tests/dist_safe/test_default_publication_recovery_contract.py
536
577
  tests/dist_safe/test_diff_records_contract.py
537
578
  tests/dist_safe/test_distribution_contract.py
579
+ tests/dist_safe/test_effective_model_contract.py
538
580
  tests/dist_safe/test_feedback_contract.py
581
+ tests/dist_safe/test_hosted_commands_contract.py
539
582
  tests/dist_safe/test_hosted_graphql_qualification.py
540
583
  tests/dist_safe/test_hosted_history_independent_contract.py
541
584
  tests/dist_safe/test_hosted_history_readers_contract.py
@@ -556,6 +599,7 @@ tests/dist_safe/test_override_metadata_contract.py
556
599
  tests/dist_safe/test_partition_contract.py
557
600
  tests/dist_safe/test_provider_common_flow_contract.py
558
601
  tests/dist_safe/test_provider_deadline_contract.py
602
+ tests/dist_safe/test_provider_https_contract.py
559
603
  tests/dist_safe/test_public_feedback_continuation_contract.py
560
604
  tests/dist_safe/test_quarantine_contract.py
561
605
  tests/dist_safe/test_reply_receipts_contract.py
@@ -566,4 +610,5 @@ tests/downstream/test_acceptance.py
566
610
  tests/fixtures/distribution-contract.json
567
611
  tests/fixtures/regressions/pr308-session-ledger-evidence.json
568
612
  tests/fixtures/regressions/pr308-session-ledger.json
569
- tests/fixtures/regressions/pr316-history-shape.json
613
+ tests/fixtures/regressions/pr316-history-shape.json
614
+ tests/launcher_qualification/test_controlled_restart_launch_contract.py
package/bin/review-sensei CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reviewsensei/cli-linux-x64-gnu",
3
- "version": "0.8.16",
3
+ "version": "0.8.18",
4
4
  "description": "ReviewSensei AI code review engine for Linux x64 with glibc 2.36+; native payload used by @reviewsensei/cli",
5
5
  "license": "MIT",
6
6
  "repository": {