@reviewsensei/cli-darwin-arm64 0.5.0 → 0.6.6
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/bin/_internal/base_library.zip +0 -0
- package/bin/_internal/review_sensei/schemas/blocker-admission.schema.json +97 -0
- package/bin/_internal/review_sensei/schemas/convergence-sequence-report.schema.json +72 -0
- package/bin/_internal/review_sensei/schemas/later-finding-classification.schema.json +81 -0
- package/bin/_internal/review_sensei/schemas/observed-convergence-report.schema.json +93 -0
- package/bin/_internal/review_sensei/schemas/review-convergence-policy.schema.json +49 -0
- package/bin/_internal/review_sensei/schemas/review-result.schema.json +3 -0
- package/bin/_internal/review_sensei/schemas/review-round-decision.schema.json +58 -0
- package/bin/_internal/review_sensei/schemas/review-transaction.schema.json +71 -0
- package/bin/_internal/review_sensei/schemas/run-outcome.schema.json +1 -1
- package/bin/_internal/review_sensei/schemas/session-record.schema.json +312 -0
- package/bin/_internal/review_sensei/schemas/verification-scope.schema.json +80 -0
- package/bin/_internal/{review_sensei-0.5.0.dist-info → review_sensei-0.6.6.dist-info}/METADATA +23 -41
- package/bin/_internal/{review_sensei-0.5.0.dist-info → review_sensei-0.6.6.dist-info}/RECORD +58 -32
- package/bin/review-sensei +0 -0
- package/package.json +1 -1
- /package/bin/_internal/{review_sensei-0.5.0.dist-info → review_sensei-0.6.6.dist-info}/INSTALLER +0 -0
- /package/bin/_internal/{review_sensei-0.5.0.dist-info → review_sensei-0.6.6.dist-info}/REQUESTED +0 -0
- /package/bin/_internal/{review_sensei-0.5.0.dist-info → review_sensei-0.6.6.dist-info}/WHEEL +0 -0
- /package/bin/_internal/{review_sensei-0.5.0.dist-info → review_sensei-0.6.6.dist-info}/direct_url.json +0 -0
- /package/bin/_internal/{review_sensei-0.5.0.dist-info → review_sensei-0.6.6.dist-info}/entry_points.txt +0 -0
- /package/bin/_internal/{review_sensei-0.5.0.dist-info → review_sensei-0.6.6.dist-info}/licenses/LICENSE +0 -0
- /package/bin/_internal/{review_sensei-0.5.0.dist-info → review_sensei-0.6.6.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://reviewsensei.dev/schemas/v1/session-record.schema.json",
|
|
4
|
+
"title": "ReviewSensei durable review-session ledger record v1",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": [
|
|
8
|
+
"schema_version",
|
|
9
|
+
"repository",
|
|
10
|
+
"pull_request",
|
|
11
|
+
"repository_id",
|
|
12
|
+
"completed_initial_reviews",
|
|
13
|
+
"completed_verification_rounds",
|
|
14
|
+
"failed_attempts",
|
|
15
|
+
"generation",
|
|
16
|
+
"reservation_id",
|
|
17
|
+
"reserved_slot",
|
|
18
|
+
"last_committed_reservation_id",
|
|
19
|
+
"created_at",
|
|
20
|
+
"updated_at",
|
|
21
|
+
"expires_at",
|
|
22
|
+
"record_sha256"
|
|
23
|
+
],
|
|
24
|
+
"properties": {
|
|
25
|
+
"schema_version": {"const": "1.0"},
|
|
26
|
+
"repository": {"type": "string", "minLength": 1, "maxLength": 256},
|
|
27
|
+
"pull_request": {"type": "integer", "minimum": 1, "maximum": 2147483647},
|
|
28
|
+
"repository_id": {
|
|
29
|
+
"type": ["integer", "null"],
|
|
30
|
+
"minimum": 1,
|
|
31
|
+
"maximum": 2147483647
|
|
32
|
+
},
|
|
33
|
+
"completed_initial_reviews": {"type": "integer", "minimum": 0, "maximum": 32},
|
|
34
|
+
"completed_verification_rounds": {"type": "integer", "minimum": 0, "maximum": 32},
|
|
35
|
+
"failed_attempts": {"type": "integer", "minimum": 0, "maximum": 32},
|
|
36
|
+
"generation": {"type": "integer", "minimum": 0, "maximum": 2147483647},
|
|
37
|
+
"reservation_id": {
|
|
38
|
+
"anyOf": [
|
|
39
|
+
{"type": "null"},
|
|
40
|
+
{"type": "string", "pattern": "^[a-f0-9]{8,64}$"}
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
"reserved_slot": {
|
|
44
|
+
"type": ["string", "null"],
|
|
45
|
+
"enum": ["initial", "verification", "failed-attempt", null]
|
|
46
|
+
},
|
|
47
|
+
"last_committed_reservation_id": {
|
|
48
|
+
"anyOf": [
|
|
49
|
+
{"type": "null"},
|
|
50
|
+
{"type": "string", "pattern": "^[a-f0-9]{8,64}$"}
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
"created_at": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"format": "date-time",
|
|
56
|
+
"pattern": "^(?:\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?(?:Z|[+-]\\d{2}:\\d{2}))$"
|
|
57
|
+
},
|
|
58
|
+
"updated_at": {
|
|
59
|
+
"type": "string",
|
|
60
|
+
"format": "date-time",
|
|
61
|
+
"pattern": "^(?:\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?(?:Z|[+-]\\d{2}:\\d{2}))$"
|
|
62
|
+
},
|
|
63
|
+
"expires_at": {
|
|
64
|
+
"type": "string",
|
|
65
|
+
"format": "date-time",
|
|
66
|
+
"pattern": "^(?:\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?(?:Z|[+-]\\d{2}:\\d{2}))$"
|
|
67
|
+
},
|
|
68
|
+
"record_sha256": {"type": "string", "pattern": "^[a-f0-9]{64}$"},
|
|
69
|
+
"operator_paused": {"type": "boolean"},
|
|
70
|
+
"dispositions": {
|
|
71
|
+
"type": "array",
|
|
72
|
+
"maxItems": 4,
|
|
73
|
+
"items": {
|
|
74
|
+
"type": "object",
|
|
75
|
+
"additionalProperties": false,
|
|
76
|
+
"required": ["fingerprint", "action", "reason", "actor", "head_sha", "expires_at"],
|
|
77
|
+
"properties": {
|
|
78
|
+
"fingerprint": {"type": "string", "pattern": "^[a-f0-9]{16,64}$"},
|
|
79
|
+
"action": {"enum": ["dismiss", "defer", "accept-risk"]},
|
|
80
|
+
"reason": {"type": "string", "minLength": 1, "maxLength": 512},
|
|
81
|
+
"actor": {"type": "string", "minLength": 1, "maxLength": 256},
|
|
82
|
+
"head_sha": {"type": ["string", "null"], "pattern": "^[a-f0-9]{40,64}$"},
|
|
83
|
+
"expires_at": {"type": ["string", "null"], "format": "date-time"}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"continuation_grants": {
|
|
88
|
+
"type": "array",
|
|
89
|
+
"maxItems": 4,
|
|
90
|
+
"items": {
|
|
91
|
+
"type": "object",
|
|
92
|
+
"additionalProperties": false,
|
|
93
|
+
"required": [
|
|
94
|
+
"command_id",
|
|
95
|
+
"actor",
|
|
96
|
+
"head_sha",
|
|
97
|
+
"policy_digest",
|
|
98
|
+
"issued_at",
|
|
99
|
+
"expires_at",
|
|
100
|
+
"consumed_reservation_id",
|
|
101
|
+
"consumed_generation"
|
|
102
|
+
],
|
|
103
|
+
"properties": {
|
|
104
|
+
"command_id": {"type": "string", "minLength": 1, "maxLength": 128, "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$"},
|
|
105
|
+
"actor": {"type": "string", "minLength": 1, "maxLength": 256},
|
|
106
|
+
"head_sha": {"type": "string", "pattern": "^[a-f0-9]{40,64}$"},
|
|
107
|
+
"policy_digest": {"type": "string", "pattern": "^[a-f0-9]{64}$"},
|
|
108
|
+
"issued_at": {"type": "string", "format": "date-time"},
|
|
109
|
+
"expires_at": {"type": "string", "format": "date-time"},
|
|
110
|
+
"consumed_reservation_id": {"type": ["string", "null"], "pattern": "^[a-f0-9]{8,64}$"},
|
|
111
|
+
"consumed_generation": {"type": ["integer", "null"], "minimum": 1, "maximum": 2147483647}
|
|
112
|
+
},
|
|
113
|
+
"oneOf": [
|
|
114
|
+
{
|
|
115
|
+
"properties": {
|
|
116
|
+
"consumed_reservation_id": {"type": "null"},
|
|
117
|
+
"consumed_generation": {"type": "null"}
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"properties": {
|
|
122
|
+
"consumed_reservation_id": {"type": "string"},
|
|
123
|
+
"consumed_generation": {"type": "integer"}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
]
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
"transaction": {
|
|
130
|
+
"$ref": "https://reviewsensei.dev/schemas/v1/review-transaction.schema.json"
|
|
131
|
+
},
|
|
132
|
+
"convergence_history": {
|
|
133
|
+
"type": "object",
|
|
134
|
+
"description": "Bounded convergence envelope. The field caps below bound each member; the validation seam additionally rejects an envelope whose canonical UTF-8 encoding exceeds MAX_CONVERGENCE_HISTORY_BYTES (4096), which JSON Schema cannot express.",
|
|
135
|
+
"additionalProperties": false,
|
|
136
|
+
"required": ["state", "progress", "provenance"],
|
|
137
|
+
"properties": {
|
|
138
|
+
"state": {"enum": ["completed", "invalidated", "recovery-required"]},
|
|
139
|
+
"baseline": {
|
|
140
|
+
"type": "object",
|
|
141
|
+
"additionalProperties": false,
|
|
142
|
+
"required": ["cache_key", "policy_digest", "complete", "coverage_complete", "generation", "findings", "reviewed_paths", "related_paths"],
|
|
143
|
+
"properties": {
|
|
144
|
+
"cache_key": {
|
|
145
|
+
"type": "object",
|
|
146
|
+
"additionalProperties": false,
|
|
147
|
+
"required": ["repository", "pull_request", "base_sha", "head_sha", "engine", "model", "profile", "stage_digest", "context_digest", "learning_digest"],
|
|
148
|
+
"properties": {
|
|
149
|
+
"repository": {"type": "string", "maxLength": 256},
|
|
150
|
+
"pull_request": {"type": "integer", "minimum": 1},
|
|
151
|
+
"base_sha": {"type": "string", "pattern": "^[a-f0-9]{40}$"},
|
|
152
|
+
"head_sha": {"type": "string", "pattern": "^[a-f0-9]{40}$"},
|
|
153
|
+
"engine": {"type": "string", "maxLength": 256},
|
|
154
|
+
"model": {"type": "string", "maxLength": 256},
|
|
155
|
+
"profile": {"type": "string", "maxLength": 256},
|
|
156
|
+
"stage_digest": {"type": "string", "pattern": "^[a-f0-9]{64}$"},
|
|
157
|
+
"context_digest": {"type": "string", "pattern": "^[a-f0-9]{64}$"},
|
|
158
|
+
"learning_digest": {"type": "string", "pattern": "^[a-f0-9]{64}$"}
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
"policy_digest": {"type": "string", "pattern": "^[a-f0-9]{64}$"},
|
|
162
|
+
"complete": {"type": "boolean"},
|
|
163
|
+
"coverage_complete": {"type": "boolean"},
|
|
164
|
+
"generation": {"type": "integer", "minimum": 0},
|
|
165
|
+
"findings": {
|
|
166
|
+
"type": "array",
|
|
167
|
+
"maxItems": 3,
|
|
168
|
+
"items": {
|
|
169
|
+
"type": "object",
|
|
170
|
+
"additionalProperties": false,
|
|
171
|
+
"required": ["fingerprint", "resolution_criterion", "concern", "path", "symbol", "defect_kind", "generation", "blocking"],
|
|
172
|
+
"properties": {
|
|
173
|
+
"fingerprint": {"type": "string", "pattern": "^[a-f0-9]{64}$"},
|
|
174
|
+
"resolution_criterion": {"type": "string", "pattern": "^[a-f0-9]{64}$"},
|
|
175
|
+
"concern": {"type": ["string", "null"], "pattern": "^[a-f0-9]{64}$"},
|
|
176
|
+
"path": {"type": ["string", "null"], "maxLength": 256},
|
|
177
|
+
"symbol": {"type": ["string", "null"], "maxLength": 256},
|
|
178
|
+
"defect_kind": {"type": "string", "maxLength": 128},
|
|
179
|
+
"generation": {"type": "integer", "minimum": 0},
|
|
180
|
+
"blocking": {"type": "boolean"}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
"reviewed_paths": {"type": "array", "maxItems": 512, "items": {"type": "string", "maxLength": 256}},
|
|
185
|
+
"related_paths": {"type": "array", "maxItems": 32, "items": {"type": "string", "maxLength": 256}}
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
"progress": {
|
|
189
|
+
"type": "array",
|
|
190
|
+
"maxItems": 3,
|
|
191
|
+
"items": {
|
|
192
|
+
"type": "object",
|
|
193
|
+
"additionalProperties": false,
|
|
194
|
+
"required": ["event", "generation"],
|
|
195
|
+
"properties": {
|
|
196
|
+
"event": {"enum": ["completed", "invalidated", "recovery-required"]},
|
|
197
|
+
"generation": {"type": "integer", "minimum": 0, "maximum": 2147483647},
|
|
198
|
+
"blocker_set_sha256": {"type": "string", "pattern": "^[a-f0-9]{64}$"},
|
|
199
|
+
"blocker_count": {"type": "integer", "minimum": 0, "maximum": 4096},
|
|
200
|
+
"transaction_id": {"type": "string", "pattern": "^[a-f0-9]{64}$"}
|
|
201
|
+
},
|
|
202
|
+
"allOf": [
|
|
203
|
+
{
|
|
204
|
+
"if": {"required": ["blocker_set_sha256"]},
|
|
205
|
+
"then": {
|
|
206
|
+
"required": ["blocker_count"],
|
|
207
|
+
"properties": {"event": {"const": "completed"}}
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"if": {"required": ["blocker_count"]},
|
|
212
|
+
"then": {"required": ["blocker_set_sha256"]}
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"if": {"required": ["transaction_id"]},
|
|
216
|
+
"then": {
|
|
217
|
+
"required": ["blocker_set_sha256", "blocker_count"],
|
|
218
|
+
"properties": {"event": {"const": "completed"}}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
]
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
"provenance": {
|
|
225
|
+
"type": "object",
|
|
226
|
+
"additionalProperties": false,
|
|
227
|
+
"required": ["ledger_digest"],
|
|
228
|
+
"properties": {"ledger_digest": {"type": "string", "pattern": "^[a-f0-9]{64}$"}}
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
"allOf": [
|
|
234
|
+
{
|
|
235
|
+
"if": {
|
|
236
|
+
"required": ["transaction"],
|
|
237
|
+
"properties": {
|
|
238
|
+
"transaction": {
|
|
239
|
+
"required": ["phase"],
|
|
240
|
+
"properties": {"phase": {"const": "analysis"}}
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
"then": {
|
|
245
|
+
"required": ["reservation_id", "reserved_slot"],
|
|
246
|
+
"properties": {
|
|
247
|
+
"reservation_id": {"type": "string"},
|
|
248
|
+
"reserved_slot": {"enum": ["initial", "verification"]}
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"if": {
|
|
254
|
+
"required": ["transaction"],
|
|
255
|
+
"properties": {
|
|
256
|
+
"transaction": {
|
|
257
|
+
"required": ["phase"],
|
|
258
|
+
"properties": {
|
|
259
|
+
"phase": {
|
|
260
|
+
"enum": [
|
|
261
|
+
"analysis_failed",
|
|
262
|
+
"publication_pending",
|
|
263
|
+
"publication_failed",
|
|
264
|
+
"publication_succeeded",
|
|
265
|
+
"publication_suppressed"
|
|
266
|
+
]
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
"then": {
|
|
273
|
+
"properties": {
|
|
274
|
+
"reservation_id": {"type": "null"},
|
|
275
|
+
"reserved_slot": {"type": "null"}
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
"if": {
|
|
281
|
+
"required": ["convergence_history"],
|
|
282
|
+
"properties": {
|
|
283
|
+
"convergence_history": {
|
|
284
|
+
"required": ["state"],
|
|
285
|
+
"properties": {"state": {"const": "completed"}}
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
},
|
|
289
|
+
"then": {
|
|
290
|
+
"properties": {
|
|
291
|
+
"convergence_history": {"required": ["baseline"]}
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
"if": {
|
|
297
|
+
"required": ["convergence_history"],
|
|
298
|
+
"properties": {
|
|
299
|
+
"convergence_history": {
|
|
300
|
+
"required": ["state"],
|
|
301
|
+
"properties": {"state": {"not": {"const": "completed"}}}
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
},
|
|
305
|
+
"then": {
|
|
306
|
+
"properties": {
|
|
307
|
+
"convergence_history": {"not": {"required": ["baseline"]}}
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
]
|
|
312
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://reviewsensei.dev/schemas/v1/verification-scope.schema.json",
|
|
4
|
+
"title": "ReviewSensei verification scope v1",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": [
|
|
8
|
+
"schema_version",
|
|
9
|
+
"status",
|
|
10
|
+
"round_kind",
|
|
11
|
+
"late_admission_required",
|
|
12
|
+
"coverage_mode",
|
|
13
|
+
"invalidation_reason",
|
|
14
|
+
"reviewed_paths",
|
|
15
|
+
"related_paths",
|
|
16
|
+
"changed_paths",
|
|
17
|
+
"existing_concerns"
|
|
18
|
+
],
|
|
19
|
+
"properties": {
|
|
20
|
+
"schema_version": { "const": "1.0" },
|
|
21
|
+
"status": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"enum": [
|
|
24
|
+
"legacy-unscoped",
|
|
25
|
+
"baseline-required",
|
|
26
|
+
"incomplete-baseline",
|
|
27
|
+
"incompatible",
|
|
28
|
+
"verify",
|
|
29
|
+
"ledger-untrusted"
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
"round_kind": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"enum": ["none", "initial", "verification"]
|
|
35
|
+
},
|
|
36
|
+
"late_admission_required": { "type": "boolean" },
|
|
37
|
+
"coverage_mode": {
|
|
38
|
+
"type": "string",
|
|
39
|
+
"enum": ["full", "incremental", "fallback-full", "unscoped"]
|
|
40
|
+
},
|
|
41
|
+
"invalidation_reason": {
|
|
42
|
+
"type": ["string", "null"],
|
|
43
|
+
"enum": [
|
|
44
|
+
"rebase-or-base-change",
|
|
45
|
+
"model-change",
|
|
46
|
+
"engine-change",
|
|
47
|
+
"profile-change",
|
|
48
|
+
"policy-change",
|
|
49
|
+
"prompt-or-stage-digest-change",
|
|
50
|
+
"context-digest-change",
|
|
51
|
+
"learning-digest-change",
|
|
52
|
+
"incomplete-baseline",
|
|
53
|
+
"missing-baseline",
|
|
54
|
+
"coverage-incomplete",
|
|
55
|
+
"ledger-untrusted",
|
|
56
|
+
null
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
"reviewed_paths": {
|
|
60
|
+
"type": "array",
|
|
61
|
+
"maxItems": 512,
|
|
62
|
+
"items": { "type": "string", "minLength": 1, "maxLength": 4096 }
|
|
63
|
+
},
|
|
64
|
+
"related_paths": {
|
|
65
|
+
"type": "array",
|
|
66
|
+
"maxItems": 32,
|
|
67
|
+
"items": { "type": "string", "minLength": 1, "maxLength": 4096 }
|
|
68
|
+
},
|
|
69
|
+
"changed_paths": {
|
|
70
|
+
"type": "array",
|
|
71
|
+
"maxItems": 512,
|
|
72
|
+
"items": { "type": "string", "minLength": 1, "maxLength": 4096 }
|
|
73
|
+
},
|
|
74
|
+
"existing_concerns": {
|
|
75
|
+
"type": "integer",
|
|
76
|
+
"minimum": 0,
|
|
77
|
+
"maximum": 512
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
package/bin/_internal/{review_sensei-0.5.0.dist-info → review_sensei-0.6.6.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: review-sensei
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.6.6
|
|
4
4
|
Summary: Provider-neutral AI code review engine with an Ollama adapter.
|
|
5
5
|
Author: Mohamad Alsabbagh
|
|
6
6
|
License-Expression: MIT
|
|
@@ -108,8 +108,8 @@ Node.js 22 or newer can invoke the same Python review engine through the
|
|
|
108
108
|
provider-neutral `@reviewsensei/cli` launcher:
|
|
109
109
|
|
|
110
110
|
```bash
|
|
111
|
-
npx --yes @reviewsensei/cli@0.
|
|
112
|
-
npx --yes @reviewsensei/cli@0.
|
|
111
|
+
npx --yes @reviewsensei/cli@0.6.6 --version
|
|
112
|
+
npx --yes @reviewsensei/cli@0.6.6 --help
|
|
113
113
|
```
|
|
114
114
|
|
|
115
115
|
The launcher selects one of the five native packages (macOS arm64/x64,
|
|
@@ -168,9 +168,9 @@ Optional App-identity publication is documented in
|
|
|
168
168
|
authentication adapter for GitHub App JWTs and installation access tokens; it
|
|
169
169
|
is not a hosted review service, webhook receiver, or durable delivery store.
|
|
170
170
|
|
|
171
|
-
### GitHub App setup-
|
|
171
|
+
### GitHub App setup-v5 integration
|
|
172
172
|
|
|
173
|
-
The optional setup-
|
|
173
|
+
The optional setup-v5 integration adds a reviewable, generated caller by using
|
|
174
174
|
the operator-managed `v5` git tag as the only update channel:
|
|
175
175
|
`malsabbagh/review-sensei/.github/workflows/review-sensei-run.yml@v5`.
|
|
176
176
|
The Worker validates the tag before writing the caller, and the Cloudflare
|
|
@@ -208,8 +208,8 @@ authentication to obtain a repository-scoped installation token for the setup
|
|
|
208
208
|
branch, pull request, and default variables.
|
|
209
209
|
|
|
210
210
|
Installation, reinstall, permission-acceptance, and repository-added events
|
|
211
|
-
reconcile absent or older generated clients through at most one setup-
|
|
212
|
-
Current tag-following setup-
|
|
211
|
+
reconcile absent or older generated clients through at most one setup-v5 PR.
|
|
212
|
+
Current tag-following setup-v5 is a no-op; managed v3/v4 and older generated clients are migrated
|
|
213
213
|
through a setup PR, while custom, malformed, and future setup files are no-write
|
|
214
214
|
cases. See [`docs/installation.md`](docs/installation.md),
|
|
215
215
|
[`docs/github-app-registration.md`](docs/github-app-registration.md), and the
|
|
@@ -528,6 +528,12 @@ review-sensei --diff pr.patch
|
|
|
528
528
|
|
|
529
529
|
## Providers
|
|
530
530
|
|
|
531
|
+
The shipped registry keys are `ollama`, `openai-compatible`, and `openrouter`.
|
|
532
|
+
Operator defaults, workflow modes, named profiles, credentials, and hosted
|
|
533
|
+
OpenRouter allowlists are documented in [`docs/installation.md`](docs/installation.md).
|
|
534
|
+
The release-aware public matrix lives at
|
|
535
|
+
[reviewsensei.dev/providers/](https://reviewsensei.dev/providers/).
|
|
536
|
+
|
|
531
537
|
The core depends on this small interface:
|
|
532
538
|
|
|
533
539
|
```python
|
|
@@ -543,32 +549,6 @@ provider's API and returning `ProviderResponse`. The review service, diff
|
|
|
543
549
|
validation, output schema, and GitHub-independent behavior remain unchanged.
|
|
544
550
|
See [the architecture guide](docs/architecture.md).
|
|
545
551
|
|
|
546
|
-
The registry includes one explicit additional adapter, `openai-compatible`, for
|
|
547
|
-
OpenAI Chat Completions-compatible HTTPS endpoints. It requires an API key at
|
|
548
|
-
construction time and never falls back to Ollama. Deterministic presets are
|
|
549
|
-
available through `ProviderSettings.for_profile(...)`:
|
|
550
|
-
|
|
551
|
-
| Profile | Adapter and endpoint | Credential | Budget |
|
|
552
|
-
| --- | --- | --- | --- |
|
|
553
|
-
| `local-private` (aliases `local`, `private`, `local/private`) | local Ollama (`127.0.0.1`) | none | 900s, 4,096 output tokens |
|
|
554
|
-
| `fast-triage` | OpenAI-compatible (`api.openai.com`) | explicit `OPENAI_API_KEY` value | 120s, 2,048 output tokens |
|
|
555
|
-
| `deep-verification` | Ollama Cloud | explicit `OLLAMA_API_KEY` value | 900s, 8,192 output tokens |
|
|
556
|
-
|
|
557
|
-
Profiles select exactly one provider; they do not race or fail over between
|
|
558
|
-
providers. Profile construction does not read environment variables, so callers
|
|
559
|
-
must deliberately retrieve and pass a credential when policy requires one.
|
|
560
|
-
CLI `--profile` selects the same presets. A stage configuration may set
|
|
561
|
-
`provider_profile` to a canonical name; unprofiled and `local-private` runs
|
|
562
|
-
reject a remote stage profile, and a remote run may only narrow a stage to
|
|
563
|
-
`local-private`. The installed GitHub workflows keep the existing local/cloud
|
|
564
|
-
variables and do not pass `--profile` or an OpenAI endpoint.
|
|
565
|
-
|
|
566
|
-
Use `review-sensei --profile local-private --provider ollama --diff pr.patch`
|
|
567
|
-
for the local preset, or `--profile fast-triage --provider openai-compatible`
|
|
568
|
-
with `OPENAI_API_KEY` for the explicit OpenAI Chat Completions slice. Live
|
|
569
|
-
evaluation of a remote profile still requires `--allow-live-model` and
|
|
570
|
-
`--allow-data-egress`; fixture reports cannot promote a profile.
|
|
571
|
-
|
|
572
552
|
The OpenAI-compatible adapter is restricted to `https://api.openai.com` by
|
|
573
553
|
default and rejects redirects so its bearer token cannot be silently forwarded
|
|
574
554
|
to another host. An explicitly trusted private or compatible service may be
|
|
@@ -582,15 +562,17 @@ network egress path for Ollama deployments.
|
|
|
582
562
|
|
|
583
563
|
## GitHub integration
|
|
584
564
|
|
|
585
|
-
The GitHub App opens a setup-
|
|
565
|
+
The GitHub App opens a setup-v5 PR containing a thin caller that follows the
|
|
586
566
|
operator-managed `v5` public git tag. The reusable workflow prefers the
|
|
587
567
|
requested exact package from PyPI and falls back to its executing workflow
|
|
588
568
|
commit only when that package/version is unavailable. Unrelated PyPI
|
|
589
|
-
installation failures remain fatal.
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
569
|
+
installation failures remain fatal. Setup provisions 15 repository variables,
|
|
570
|
+
including 7 boolean controls, and manages 3 generated files. Automatic review,
|
|
571
|
+
GitHub writes, learning proposals, learning PRs, mention replies, and artifact
|
|
572
|
+
upload default to `false`; automatic approval defaults to `true` but is effective
|
|
573
|
+
only when review and write gates are enabled. `REVIEWSENSEI_REVIEW_MODE` is a
|
|
574
|
+
policy selector, not a boolean control, and defaults to `merge-focused`.
|
|
575
|
+
The App never creates the customer-owned `OLLAMA_API_KEY` secret.
|
|
594
576
|
|
|
595
577
|
When explicitly enabled, same-repository pull requests can run automatic review
|
|
596
578
|
with either provider mode: cloud on a GitHub-hosted runner or local Ollama on
|
|
@@ -636,10 +618,10 @@ mode sends that bounded conversation context to Ollama Cloud; local mode keeps
|
|
|
636
618
|
it on the configured local service. Published review summaries and inline
|
|
637
619
|
findings also tell readers to reply with @sensei followed by their question.
|
|
638
620
|
`review.json` is uploaded only when
|
|
639
|
-
`REVIEWSENSEI_UPLOAD_ARTIFACTS=true`; setup-
|
|
621
|
+
`REVIEWSENSEI_UPLOAD_ARTIFACTS=true`; setup-v5 does not create a separate
|
|
640
622
|
version artifact. See [installation and migration](docs/installation.md) and
|
|
641
623
|
the reviewable
|
|
642
|
-
[`setup-
|
|
624
|
+
[`setup-v5 example`](examples/github-actions/review-sensei-review.yml).
|
|
643
625
|
|
|
644
626
|
## Concurrency policy
|
|
645
627
|
|