@reviewsensei/cli-win32-x64 0.1.1 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/bin/_internal/base_library.zip +0 -0
  2. package/bin/_internal/jsonschema-4.26.0.dist-info/RECORD +1 -1
  3. package/bin/_internal/review_sensei/default_stages/01-default-review.json +1 -1
  4. package/bin/_internal/review_sensei/schemas/blocker-admission.schema.json +97 -0
  5. package/bin/_internal/review_sensei/schemas/canary-binding.schema.json +22 -0
  6. package/bin/_internal/review_sensei/schemas/candidate-finding.schema.json +59 -0
  7. package/bin/_internal/review_sensei/schemas/channel-promotion.schema.json +30 -0
  8. package/bin/_internal/review_sensei/schemas/compatibility-manifest.schema.json +44 -0
  9. package/bin/_internal/review_sensei/schemas/convergence-sequence-report.schema.json +72 -0
  10. package/bin/_internal/review_sensei/schemas/conversation-reply.schema.json +6 -1
  11. package/bin/_internal/review_sensei/schemas/coverage-manifest.schema.json +99 -0
  12. package/bin/_internal/review_sensei/schemas/evaluation-report.schema.json +17 -0
  13. package/bin/_internal/review_sensei/schemas/later-finding-classification.schema.json +81 -0
  14. package/bin/_internal/review_sensei/schemas/learning-entry.schema.json +11 -1
  15. package/bin/_internal/review_sensei/schemas/learning-feedback.schema.json +56 -0
  16. package/bin/_internal/review_sensei/schemas/openrouter-qualification.schema.json +108 -0
  17. package/bin/_internal/review_sensei/schemas/promotion-record.schema.json +39 -0
  18. package/bin/_internal/review_sensei/schemas/recovery-artifact.schema.json +26 -0
  19. package/bin/_internal/review_sensei/schemas/review-comment.schema.json +22 -3
  20. package/bin/_internal/review_sensei/schemas/review-convergence-policy.schema.json +49 -0
  21. package/bin/_internal/review_sensei/schemas/review-result.schema.json +109 -3
  22. package/bin/_internal/review_sensei/schemas/review-round-decision.schema.json +58 -0
  23. package/bin/_internal/review_sensei/schemas/review-stage.schema.json +13 -0
  24. package/bin/_internal/review_sensei/schemas/review-transaction.schema.json +71 -0
  25. package/bin/_internal/review_sensei/schemas/run-outcome.schema.json +29 -0
  26. package/bin/_internal/review_sensei/schemas/session-record.schema.json +312 -0
  27. package/bin/_internal/review_sensei/schemas/stage.schema.json +6 -0
  28. package/bin/_internal/review_sensei/schemas/verification-result.schema.json +14 -0
  29. package/bin/_internal/review_sensei/schemas/verification-scope.schema.json +80 -0
  30. package/bin/_internal/{review_sensei-0.1.1.dist-info → review_sensei-0.6.0.dist-info}/METADATA +208 -56
  31. package/bin/_internal/review_sensei-0.6.0.dist-info/RECORD +169 -0
  32. package/bin/review-sensei.exe +0 -0
  33. package/package.json +1 -1
  34. package/bin/_internal/review_sensei-0.1.1.dist-info/RECORD +0 -103
  35. /package/bin/_internal/{review_sensei-0.1.1.dist-info → review_sensei-0.6.0.dist-info}/INSTALLER +0 -0
  36. /package/bin/_internal/{review_sensei-0.1.1.dist-info → review_sensei-0.6.0.dist-info}/REQUESTED +0 -0
  37. /package/bin/_internal/{review_sensei-0.1.1.dist-info → review_sensei-0.6.0.dist-info}/WHEEL +0 -0
  38. /package/bin/_internal/{review_sensei-0.1.1.dist-info → review_sensei-0.6.0.dist-info}/direct_url.json +0 -0
  39. /package/bin/_internal/{review_sensei-0.1.1.dist-info → review_sensei-0.6.0.dist-info}/entry_points.txt +0 -0
  40. /package/bin/_internal/{review_sensei-0.1.1.dist-info → review_sensei-0.6.0.dist-info}/licenses/LICENSE +0 -0
  41. /package/bin/_internal/{review_sensei-0.1.1.dist-info → review_sensei-0.6.0.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 (2048), 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
+ }
@@ -22,6 +22,12 @@
22
22
  "type": "array",
23
23
  "minItems": 1,
24
24
  "items": {"type": "string", "minLength": 1}
25
+ },
26
+ "provider_profile": {
27
+ "type": "string",
28
+ "minLength": 1,
29
+ "maxLength": 64,
30
+ "pattern": "^(?:[a-z0-9]+(?:-[a-z0-9]+)*|local/private)$"
25
31
  }
26
32
  },
27
33
  "$defs": {
@@ -0,0 +1,14 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://reviewsensei.dev/schemas/v1/verification-result.schema.json",
4
+ "type": "object",
5
+ "additionalProperties": false,
6
+ "required": ["schema_version", "disposition", "reasons", "evidence_valid", "actionable"],
7
+ "properties": {
8
+ "schema_version": {"const": "1.0"},
9
+ "disposition": {"enum": ["confirmed", "rejected", "insufficient-evidence"]},
10
+ "reasons": {"type": "array", "maxItems": 16, "items": {"type": "string", "maxLength": 256}},
11
+ "evidence_valid": {"type": "boolean"},
12
+ "actionable": {"type": "boolean"}
13
+ }
14
+ }
@@ -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
+ }