@reviewsensei/cli-darwin-arm64 0.8.28 → 0.9.1
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/certifi/cacert.pem +0 -200
- package/bin/_internal/review_sensei/schemas/broker-diagnostics.json +85 -0
- package/bin/_internal/review_sensei/schemas/v6-coordinator-contract.json +1111 -0
- package/bin/_internal/{review_sensei-0.8.28.dist-info → review_sensei-0.9.1.dist-info}/METADATA +48 -39
- package/bin/_internal/{review_sensei-0.8.28.dist-info → review_sensei-0.9.1.dist-info}/RECORD +19 -18
- package/bin/review-sensei +0 -0
- package/package.json +1 -1
- /package/bin/_internal/{review_sensei-0.8.28.dist-info → review_sensei-0.9.1.dist-info}/INSTALLER +0 -0
- /package/bin/_internal/{review_sensei-0.8.28.dist-info → review_sensei-0.9.1.dist-info}/REQUESTED +0 -0
- /package/bin/_internal/{review_sensei-0.8.28.dist-info → review_sensei-0.9.1.dist-info}/WHEEL +0 -0
- /package/bin/_internal/{review_sensei-0.8.28.dist-info → review_sensei-0.9.1.dist-info}/direct_url.json +0 -0
- /package/bin/_internal/{review_sensei-0.8.28.dist-info → review_sensei-0.9.1.dist-info}/entry_points.txt +0 -0
- /package/bin/_internal/{review_sensei-0.8.28.dist-info → review_sensei-0.9.1.dist-info}/licenses/LICENSE +0 -0
- /package/bin/_internal/{review_sensei-0.8.28.dist-info → review_sensei-0.9.1.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,1111 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"schema_version": "v6-coordinator-contract-v1",
|
|
4
|
+
"deferred_publication_analysis": {
|
|
5
|
+
"route": "/github/v6/analysis/claim",
|
|
6
|
+
"keep_fields": ["slot_key", "head_sha", "run_id"],
|
|
7
|
+
"unique_key": ["slot_key", "head_sha"],
|
|
8
|
+
"slot_transition": false,
|
|
9
|
+
"issues_writer_token": false
|
|
10
|
+
},
|
|
11
|
+
"description": "Frozen Phase 1 wire, two-gate state-machine, escrow, revocation, and PR-ledger contract for the ReviewSensei v6 one-writer-per-PR coordinator.",
|
|
12
|
+
"baseline": {
|
|
13
|
+
"pinned_main_sha": "ff406a44754d5016fead2435e547b9fd0536e17b",
|
|
14
|
+
"pinned_v5_tag": "v5",
|
|
15
|
+
"pinned_v5_commit": "40b4f52face3402fc3a9cd51387bde7cf53c3951",
|
|
16
|
+
"pinned_engine_version": "0.8.28",
|
|
17
|
+
"pinned_github_package_version": "0.3.34"
|
|
18
|
+
},
|
|
19
|
+
"pilot_isolation": {
|
|
20
|
+
"env_var": "V6_PILOT_REPOSITORIES",
|
|
21
|
+
"rollback_env_var": "V6_PILOT_ROLLBACK_REPOSITORIES",
|
|
22
|
+
"v5_writer_disabled_diagnostic": "broker_v6_pilot_v5_writer_disabled",
|
|
23
|
+
"pre_admission_drain_seconds": 3600,
|
|
24
|
+
"rollback_procedure": [
|
|
25
|
+
"Add target repository to V6_PILOT_ROLLBACK_REPOSITORIES to block new v6 lease acquisitions immediately.",
|
|
26
|
+
"Drain and reconcile every active, draining, or reconciling slot for that repository until all slots are IDLE with zero unresolved HOLD obligations.",
|
|
27
|
+
"Only after all slots are IDLE and free of HOLD obligations, remove the repository from V6_PILOT_REPOSITORIES and V6_PILOT_ROLLBACK_REPOSITORIES to re-enable v5 TokenBroker.exchange."
|
|
28
|
+
],
|
|
29
|
+
"github_token_scope_note": "GitHub installation tokens are scoped to repository+permissions, not PR; per-PR slot keys are a ReviewSensei coordination boundary assuming trusted, pinned workflow code, no independent write credential, and no PR-controlled code execution in the write job."
|
|
30
|
+
},
|
|
31
|
+
"slot_key": {
|
|
32
|
+
"template": "v6-pr:{host}:{app_id}:{installation_id}:{base_repo_id}:{pr_number}",
|
|
33
|
+
"pattern": "^v6-pr:[a-z0-9.-]+:[1-9][0-9]*:[1-9][0-9]*:[1-9][0-9]*:[1-9][0-9]*$",
|
|
34
|
+
"host_canonicalization": "lowercase_ascii_hostname_no_port_or_path",
|
|
35
|
+
"components": [
|
|
36
|
+
"host",
|
|
37
|
+
"app_id",
|
|
38
|
+
"installation_id",
|
|
39
|
+
"base_repo_id",
|
|
40
|
+
"pr_number"
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
"coordinator_states": [
|
|
44
|
+
"IDLE",
|
|
45
|
+
"RESERVED",
|
|
46
|
+
"MINTING",
|
|
47
|
+
"ACTIVE",
|
|
48
|
+
"DRAINING",
|
|
49
|
+
"RECONCILING",
|
|
50
|
+
"HOLD"
|
|
51
|
+
],
|
|
52
|
+
"state_transitions": {
|
|
53
|
+
"IDLE": [
|
|
54
|
+
"RESERVED"
|
|
55
|
+
],
|
|
56
|
+
"RESERVED": [
|
|
57
|
+
"MINTING",
|
|
58
|
+
"IDLE"
|
|
59
|
+
],
|
|
60
|
+
"MINTING": [
|
|
61
|
+
"ACTIVE",
|
|
62
|
+
"RECONCILING",
|
|
63
|
+
"HOLD",
|
|
64
|
+
"IDLE"
|
|
65
|
+
],
|
|
66
|
+
"ACTIVE": [
|
|
67
|
+
"DRAINING",
|
|
68
|
+
"RECONCILING",
|
|
69
|
+
"HOLD"
|
|
70
|
+
],
|
|
71
|
+
"DRAINING": [
|
|
72
|
+
"RECONCILING",
|
|
73
|
+
"HOLD"
|
|
74
|
+
],
|
|
75
|
+
"RECONCILING": [
|
|
76
|
+
"DRAINING",
|
|
77
|
+
"IDLE",
|
|
78
|
+
"HOLD"
|
|
79
|
+
],
|
|
80
|
+
"HOLD": [
|
|
81
|
+
"RECONCILING"
|
|
82
|
+
]
|
|
83
|
+
},
|
|
84
|
+
"transition_rules": {
|
|
85
|
+
"IDLE->RESERVED": {
|
|
86
|
+
"routes": [
|
|
87
|
+
"/github/v6/lease/acquire"
|
|
88
|
+
],
|
|
89
|
+
"guard": "Authorized OIDC/App/repo/PR/head/continuity checks succeed and repo is not in V6_PILOT_ROLLBACK_REPOSITORIES."
|
|
90
|
+
},
|
|
91
|
+
"RESERVED->MINTING": {
|
|
92
|
+
"routes": [
|
|
93
|
+
"/github/v6/lease/acquire"
|
|
94
|
+
],
|
|
95
|
+
"guard": "Reservation persisted durably before calling GitHub POST /app/installations/{id}/access_tokens."
|
|
96
|
+
},
|
|
97
|
+
"RESERVED->IDLE": {
|
|
98
|
+
"routes": [
|
|
99
|
+
"/github/v6/lease/acquire"
|
|
100
|
+
],
|
|
101
|
+
"guard": "The caller owns the reservation and pre-mint validation aborted before dispatch. Retain the predecessor fence for a retry with a fresh lease epoch. A failed replacement preflight preserves the interrupted RESERVED row."
|
|
102
|
+
},
|
|
103
|
+
"MINTING->ACTIVE": {
|
|
104
|
+
"routes": [
|
|
105
|
+
"/github/v6/lease/acquire"
|
|
106
|
+
],
|
|
107
|
+
"guard": "GitHub access_tokens succeeded with exact requested permissions, encrypted_escrow persisted, acquired_at_ms set, and token_cleared set to false."
|
|
108
|
+
},
|
|
109
|
+
"MINTING->RECONCILING": {
|
|
110
|
+
"routes": [
|
|
111
|
+
"/github/v6/lease/acquire"
|
|
112
|
+
],
|
|
113
|
+
"guard": "Mint request timed out or failed with uncertain outcome (v6_lease_mint_uncertain); enters RECONCILING with token_cleared=false."
|
|
114
|
+
},
|
|
115
|
+
"MINTING->HOLD": {
|
|
116
|
+
"routes": [
|
|
117
|
+
"/github/v6/lease/acquire"
|
|
118
|
+
],
|
|
119
|
+
"guard": "Escrow encryption/persistence failed or unrecoverable trust failure occurred."
|
|
120
|
+
},
|
|
121
|
+
"MINTING->IDLE": {
|
|
122
|
+
"routes": [
|
|
123
|
+
"/github/v6/lease/acquire"
|
|
124
|
+
],
|
|
125
|
+
"guard": "Confirmed deterministic 4xx pre-issuance rejection from GitHub access_tokens with zero token minted. Retain the predecessor fence and any verified owner anchor for a retry in this generation. An interrupted later-generation replacement uses its verified predecessor comment's epoch and head. Without proof the retry refuses continuity."
|
|
126
|
+
},
|
|
127
|
+
"ACTIVE->DRAINING": {
|
|
128
|
+
"routes": [
|
|
129
|
+
"/github/v6/lease/drain",
|
|
130
|
+
"/github/v6/lease/release"
|
|
131
|
+
],
|
|
132
|
+
"guard": "/release is valid ONLY in ACTIVE for the matching verified owner (slot_key, generation, lease_epoch, reservation_id); any non-ACTIVE state fails closed with HTTP 409. Both /release and /drain enter Gate 1 revocation drain (DRAINING) and never skip directly to IDLE."
|
|
133
|
+
},
|
|
134
|
+
"ACTIVE->RECONCILING": {
|
|
135
|
+
"routes": [
|
|
136
|
+
"/github/v6/lease/acquire",
|
|
137
|
+
"/github/v6/lease/drain"
|
|
138
|
+
],
|
|
139
|
+
"guard": "Ambiguous write or lease continuity check requires bounded PR ledger reconciliation (token_cleared=false until Gate 1 confirms revocation/expiry)."
|
|
140
|
+
},
|
|
141
|
+
"ACTIVE->HOLD": {
|
|
142
|
+
"routes": [
|
|
143
|
+
"/github/v6/lease/acquire",
|
|
144
|
+
"/github/v6/lease/drain",
|
|
145
|
+
"/github/v6/lease/release"
|
|
146
|
+
],
|
|
147
|
+
"guard": "Escrow lost/corrupt, clock untrusted, or PR ledger slot continuity unproved."
|
|
148
|
+
},
|
|
149
|
+
"DRAINING->RECONCILING": {
|
|
150
|
+
"routes": [
|
|
151
|
+
"/github/v6/lease/drain",
|
|
152
|
+
"/github/v6/lease/release"
|
|
153
|
+
],
|
|
154
|
+
"guard": "Gate 1 (Token Clearance): always transitions DRAINING -> RECONCILING (never IDLE). Confirmed clearance (DELETE /installation/token 204, OR 401 when token_expires_at_ms > 0 and now_ms >= token_expires_at_ms + clock_margin_ms) clears escrow and sets token_cleared=true; uncertain clearance (401 pre-expiry or exhausted 429/rate-limit-403/5xx/timeout) retains token_cleared=false."
|
|
155
|
+
},
|
|
156
|
+
"DRAINING->HOLD": {
|
|
157
|
+
"routes": [
|
|
158
|
+
"/github/v6/lease/drain",
|
|
159
|
+
"/github/v6/lease/release"
|
|
160
|
+
],
|
|
161
|
+
"guard": "DELETE /installation/token returned permission 403 or http_other_4xx, or 401 with null/invalid token_expires_at_ms (v6_lease_escrow_lost), or clock untrusted."
|
|
162
|
+
},
|
|
163
|
+
"RECONCILING->IDLE": {
|
|
164
|
+
"routes": [
|
|
165
|
+
"/github/v6/lease/complete-reconcile"
|
|
166
|
+
],
|
|
167
|
+
"guard": "Gate 2 (Write Reconciliation): valid ONLY via /github/v6/lease/complete-reconcile when slot.token_cleared === true AND the Worker independently verifies reconciliation_evidence covering old_generation and 100% of App-authored intent:v1 records for that generation (never trusting a bare runner claim)."
|
|
168
|
+
},
|
|
169
|
+
"RECONCILING->DRAINING": {
|
|
170
|
+
"routes": [
|
|
171
|
+
"/github/v6/lease/complete-reconcile",
|
|
172
|
+
"/github/v6/lease/drain"
|
|
173
|
+
],
|
|
174
|
+
"guard": "Reconciliation identifies an unrevoked escrowed token (token_cleared=false) whose expiry+margin has not elapsed and enters Gate 1 revocation drain."
|
|
175
|
+
},
|
|
176
|
+
"RECONCILING->HOLD": {
|
|
177
|
+
"routes": [
|
|
178
|
+
"/github/v6/lease/complete-reconcile"
|
|
179
|
+
],
|
|
180
|
+
"guard": "Non-terminal reconciliation_outcome ('ambiguous_hold' or 'incomplete'), invalid/missing reconciliation_evidence (v6_lease_reconciliation_evidence_invalid), conflicting PR records, escrow loss, or unproved continuity; never clears obligations or advances generation."
|
|
181
|
+
},
|
|
182
|
+
"HOLD->RECONCILING": {
|
|
183
|
+
"routes": [
|
|
184
|
+
"/github/v6/lease/resolve-hold"
|
|
185
|
+
],
|
|
186
|
+
"guard": "Valid ONLY via /github/v6/lease/resolve-hold (for both resolution_kind='enter_reconcile' and resolution_kind='reconciled_clean') with confirmed credential clearance (token_cleared=true) and verified named hold-resolution proof; always transitions HOLD -> RECONCILING and requires full Gate 2 /github/v6/lease/complete-reconcile verification before reaching IDLE or issuing a new token."
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
"coordinator_storage": {
|
|
190
|
+
"durable_object_class": "V6PrCoordinator",
|
|
191
|
+
"clock_margin_ms_default": 300000,
|
|
192
|
+
"escrow": {
|
|
193
|
+
"kdf": "HKDF-SHA256",
|
|
194
|
+
"cipher": "AES-GCM-256",
|
|
195
|
+
"key_root_env": "REVIEWSENSEI_SIGNING_KEY",
|
|
196
|
+
"hkdf_salt": "v6-pr-coordinator-escrow-v1",
|
|
197
|
+
"hkdf_info": "reviewsensei:v6:token-escrow:v1",
|
|
198
|
+
"iv_bytes": 12,
|
|
199
|
+
"aad_fields": [
|
|
200
|
+
"slot_key",
|
|
201
|
+
"generation",
|
|
202
|
+
"reservation_id"
|
|
203
|
+
],
|
|
204
|
+
"key_rotation_procedure": "Quiesce acquisitions (via V6_PILOT_ROLLBACK_REPOSITORIES or admission hold), drain/expire all active slots to IDLE or HOLD, then rotate REVIEWSENSEI_SIGNING_KEY. Unrotated ciphertexts fail closed to HOLD with v6_lease_escrow_lost until expiry+clock_margin_ms."
|
|
205
|
+
},
|
|
206
|
+
"owner_attestation": {
|
|
207
|
+
"kdf": "HKDF-SHA256",
|
|
208
|
+
"mac": "HMAC-SHA256",
|
|
209
|
+
"key_root_env": "REVIEWSENSEI_SIGNING_KEY",
|
|
210
|
+
"hkdf_salt": "v6-pr-coordinator-owner-attestation-v1",
|
|
211
|
+
"hkdf_info": "reviewsensei:v6:owner-attestation:v1",
|
|
212
|
+
"domain_separation_note": "Escrow encryption and owner-anchor attestation derive independent subkeys via distinct HKDF-SHA256 salt and info strings."
|
|
213
|
+
},
|
|
214
|
+
"slot_state_fields": {
|
|
215
|
+
"slot_key": "string",
|
|
216
|
+
"state": "coordinator_state",
|
|
217
|
+
"generation": "integer>=0",
|
|
218
|
+
"lease_epoch": "integer>=0",
|
|
219
|
+
"reservation_id": "string|null",
|
|
220
|
+
"owner_run_id": "string|null",
|
|
221
|
+
"owner_run_attempt": "integer|null",
|
|
222
|
+
"owner_head_sha": "sha1_hex40|null",
|
|
223
|
+
"owner_workflow_sha": "sha1_hex40|null",
|
|
224
|
+
"owner_job": "string|null",
|
|
225
|
+
"owner_comment_id": "integer|null",
|
|
226
|
+
"owner_record_sha256": "sha256_hex64|null",
|
|
227
|
+
"acquired_at_ms": "integer|null",
|
|
228
|
+
"token_expires_at_ms": "integer|null",
|
|
229
|
+
"token_cleared": "boolean",
|
|
230
|
+
"clock_margin_ms": "integer>=0",
|
|
231
|
+
"encrypted_escrow": "object|null",
|
|
232
|
+
"unissued_predecessor": "object{lease_epoch:integer>=0,head_sha:sha1_hex40|null}|null",
|
|
233
|
+
"last_reason_code": "diagnostic_code|null",
|
|
234
|
+
"updated_at_ms": "integer>=0"
|
|
235
|
+
},
|
|
236
|
+
"sqlite_row_schema": {
|
|
237
|
+
"description": "Refusal-fence column in newly written private SQLite rows, with JSON decoded. Migration treats a missing legacy column as SQL NULL. The owner comment ID and digest are separate slot columns.",
|
|
238
|
+
"type": "object",
|
|
239
|
+
"properties": {
|
|
240
|
+
"unissued_predecessor": {
|
|
241
|
+
"description": "An IDLE slot uses this fence when reservation_epoch equals the slot lease_epoch and the predecessor lease_epoch is smaller. The first generation has predecessor epoch zero and a null head.",
|
|
242
|
+
"type": ["object", "null"],
|
|
243
|
+
"properties": {
|
|
244
|
+
"reservation_epoch": { "type": "integer", "minimum": 1, "maximum": 9007199254740991 },
|
|
245
|
+
"lease_epoch": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 },
|
|
246
|
+
"head_sha": { "type": ["string", "null"], "pattern": "^[0-9a-f]{40}$", "maxLength": 40 }
|
|
247
|
+
},
|
|
248
|
+
"required": ["reservation_epoch", "lease_epoch", "head_sha"],
|
|
249
|
+
"additionalProperties": false,
|
|
250
|
+
"if": { "properties": { "lease_epoch": { "const": 0 } } },
|
|
251
|
+
"then": { "properties": { "head_sha": { "type": "null" } } }
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
"required": ["unissued_predecessor"]
|
|
255
|
+
},
|
|
256
|
+
"keep_fields": [
|
|
257
|
+
"slot_key",
|
|
258
|
+
"state",
|
|
259
|
+
"generation",
|
|
260
|
+
"lease_epoch",
|
|
261
|
+
"reservation_id",
|
|
262
|
+
"owner_run_id",
|
|
263
|
+
"owner_run_attempt",
|
|
264
|
+
"owner_head_sha",
|
|
265
|
+
"owner_workflow_sha",
|
|
266
|
+
"owner_job",
|
|
267
|
+
"owner_comment_id",
|
|
268
|
+
"owner_record_sha256",
|
|
269
|
+
"acquired_at_ms",
|
|
270
|
+
"token_expires_at_ms",
|
|
271
|
+
"token_cleared",
|
|
272
|
+
"clock_margin_ms",
|
|
273
|
+
"encrypted_escrow",
|
|
274
|
+
"unissued_predecessor",
|
|
275
|
+
"last_reason_code",
|
|
276
|
+
"updated_at_ms"
|
|
277
|
+
],
|
|
278
|
+
"never_keep_fields": [
|
|
279
|
+
"github_app_private_key",
|
|
280
|
+
"reviewsensei_signing_key",
|
|
281
|
+
"raw_aes_key",
|
|
282
|
+
"oidc_token",
|
|
283
|
+
"plaintext_installation_token",
|
|
284
|
+
"workflow_github_token",
|
|
285
|
+
"provider_api_key",
|
|
286
|
+
"ollama_api_key",
|
|
287
|
+
"openrouter_api_key",
|
|
288
|
+
"openai_api_key",
|
|
289
|
+
"pr_diff",
|
|
290
|
+
"source_file_contents",
|
|
291
|
+
"review_comment_body",
|
|
292
|
+
"model_response",
|
|
293
|
+
"raw_github_error_body"
|
|
294
|
+
]
|
|
295
|
+
},
|
|
296
|
+
"pr_ledger": {
|
|
297
|
+
"marker_prefix": "<!-- reviewsensei:v6:record ",
|
|
298
|
+
"marker_format": "<!-- reviewsensei:v6:record sha256={sha256_hex} payload={canonical_json} -->",
|
|
299
|
+
"max_encoded_bytes": 65536,
|
|
300
|
+
"escape_rules": "Canonical JSON payload MUST escape '<' as '\\u003c' and '>' as '\\u003e' so neither '-->' nor '<!--' can appear inside payload; sha256 is computed over the canonical JSON of the decoded record.",
|
|
301
|
+
"forbid_embedded_sequences": [
|
|
302
|
+
"-->",
|
|
303
|
+
"<!--"
|
|
304
|
+
],
|
|
305
|
+
"sole_terminator": " -->",
|
|
306
|
+
"record_schemas": {
|
|
307
|
+
"owner": {
|
|
308
|
+
"schema": "reviewsensei:v6:owner:v1",
|
|
309
|
+
"required_fields": [
|
|
310
|
+
"schema",
|
|
311
|
+
"record_id",
|
|
312
|
+
"slot_key",
|
|
313
|
+
"generation",
|
|
314
|
+
"lease_epoch",
|
|
315
|
+
"reservation_id",
|
|
316
|
+
"operation_id",
|
|
317
|
+
"run_id",
|
|
318
|
+
"run_attempt",
|
|
319
|
+
"pr_head_sha",
|
|
320
|
+
"workflow_sha",
|
|
321
|
+
"acquired_at",
|
|
322
|
+
"expires_at",
|
|
323
|
+
"coordinator_attestation_mac"
|
|
324
|
+
],
|
|
325
|
+
"properties": {
|
|
326
|
+
"schema": "const:reviewsensei:v6:owner:v1",
|
|
327
|
+
"record_id": "string",
|
|
328
|
+
"slot_key": "slot_key",
|
|
329
|
+
"generation": "integer>=1",
|
|
330
|
+
"lease_epoch": "integer>=1",
|
|
331
|
+
"reservation_id": "string",
|
|
332
|
+
"operation_id": "string",
|
|
333
|
+
"run_id": "positive_decimal_string",
|
|
334
|
+
"run_attempt": "integer>=1",
|
|
335
|
+
"pr_head_sha": "sha1_hex40",
|
|
336
|
+
"workflow_sha": "sha1_hex40",
|
|
337
|
+
"acquired_at": "iso8601_utc",
|
|
338
|
+
"expires_at": "iso8601_utc",
|
|
339
|
+
"coordinator_attestation_mac": "hmac_sha256_hex64"
|
|
340
|
+
}
|
|
341
|
+
},
|
|
342
|
+
"intent": {
|
|
343
|
+
"schema": "reviewsensei:v6:intent:v1",
|
|
344
|
+
"required_fields": [
|
|
345
|
+
"schema",
|
|
346
|
+
"record_id",
|
|
347
|
+
"operation_id",
|
|
348
|
+
"writer_epoch",
|
|
349
|
+
"pr_head_sha",
|
|
350
|
+
"effect_kind",
|
|
351
|
+
"payload_sha256",
|
|
352
|
+
"target_digest"
|
|
353
|
+
],
|
|
354
|
+
"optional_fields": [
|
|
355
|
+
"generation",
|
|
356
|
+
"target_location"
|
|
357
|
+
],
|
|
358
|
+
"pilot_required_fields": [
|
|
359
|
+
"generation",
|
|
360
|
+
"target_location"
|
|
361
|
+
],
|
|
362
|
+
"properties": {
|
|
363
|
+
"schema": "const:reviewsensei:v6:intent:v1",
|
|
364
|
+
"record_id": "string",
|
|
365
|
+
"operation_id": "string",
|
|
366
|
+
"writer_epoch": "integer>=0",
|
|
367
|
+
"pr_head_sha": "sha1_hex40",
|
|
368
|
+
"effect_kind": "string",
|
|
369
|
+
"payload_sha256": "sha256_hex64",
|
|
370
|
+
"target_digest": "string",
|
|
371
|
+
"generation": "integer>=1",
|
|
372
|
+
"target_location": "string"
|
|
373
|
+
}
|
|
374
|
+
},
|
|
375
|
+
"receipt": {
|
|
376
|
+
"schema": "reviewsensei:v6:receipt:v1",
|
|
377
|
+
"required_fields": [
|
|
378
|
+
"schema",
|
|
379
|
+
"record_id",
|
|
380
|
+
"operation_id",
|
|
381
|
+
"writer_epoch",
|
|
382
|
+
"github_effect_id",
|
|
383
|
+
"payload_sha256",
|
|
384
|
+
"completed_at"
|
|
385
|
+
],
|
|
386
|
+
"properties": {
|
|
387
|
+
"schema": "const:reviewsensei:v6:receipt:v1",
|
|
388
|
+
"record_id": "string",
|
|
389
|
+
"operation_id": "string",
|
|
390
|
+
"writer_epoch": "integer>=0",
|
|
391
|
+
"github_effect_id": "string|integer>0",
|
|
392
|
+
"payload_sha256": "sha256_hex64",
|
|
393
|
+
"completed_at": "iso8601_utc"
|
|
394
|
+
}
|
|
395
|
+
},
|
|
396
|
+
"non_submission": {
|
|
397
|
+
"schema": "reviewsensei:v6:non-submission:v1",
|
|
398
|
+
"required_fields": [
|
|
399
|
+
"schema",
|
|
400
|
+
"record_id",
|
|
401
|
+
"slot_key",
|
|
402
|
+
"generation",
|
|
403
|
+
"operation_id",
|
|
404
|
+
"pr_head_sha",
|
|
405
|
+
"proof_kind",
|
|
406
|
+
"payload_sha256",
|
|
407
|
+
"recorded_at"
|
|
408
|
+
],
|
|
409
|
+
"optional_fields": [
|
|
410
|
+
"http_status",
|
|
411
|
+
"diagnostic"
|
|
412
|
+
],
|
|
413
|
+
"proof_kinds": [
|
|
414
|
+
"definitive_github_rejection",
|
|
415
|
+
"pre_dispatch_terminal_abort"
|
|
416
|
+
],
|
|
417
|
+
"note": "Affirmative App-authored proof that an intent was never submitted or was definitively rejected by GitHub; an empty search is never valid proof.",
|
|
418
|
+
"properties": {
|
|
419
|
+
"schema": "const:reviewsensei:v6:non-submission:v1",
|
|
420
|
+
"record_id": "string",
|
|
421
|
+
"slot_key": "slot_key",
|
|
422
|
+
"generation": "integer>=1",
|
|
423
|
+
"operation_id": "string",
|
|
424
|
+
"pr_head_sha": "sha1_hex40",
|
|
425
|
+
"proof_kind": "enum:definitive_github_rejection|pre_dispatch_terminal_abort",
|
|
426
|
+
"payload_sha256": "sha256_hex64",
|
|
427
|
+
"recorded_at": "iso8601_utc",
|
|
428
|
+
"http_status": "integer>=100|null",
|
|
429
|
+
"diagnostic": "string|null"
|
|
430
|
+
}
|
|
431
|
+
},
|
|
432
|
+
"hold": {
|
|
433
|
+
"schema": "reviewsensei:v6:hold:v1",
|
|
434
|
+
"required_fields": [
|
|
435
|
+
"schema",
|
|
436
|
+
"record_id",
|
|
437
|
+
"slot_key",
|
|
438
|
+
"generation",
|
|
439
|
+
"lease_epoch",
|
|
440
|
+
"operation_id",
|
|
441
|
+
"pr_head_sha",
|
|
442
|
+
"reason_code",
|
|
443
|
+
"missing_evidence",
|
|
444
|
+
"held_at",
|
|
445
|
+
"resolved_by_record_id"
|
|
446
|
+
],
|
|
447
|
+
"properties": {
|
|
448
|
+
"schema": "const:reviewsensei:v6:hold:v1",
|
|
449
|
+
"record_id": "string",
|
|
450
|
+
"slot_key": "slot_key",
|
|
451
|
+
"generation": "integer>=1",
|
|
452
|
+
"lease_epoch": "integer>=0",
|
|
453
|
+
"operation_id": "string",
|
|
454
|
+
"pr_head_sha": "sha1_hex40",
|
|
455
|
+
"reason_code": "diagnostic_code",
|
|
456
|
+
"missing_evidence": "array<string>",
|
|
457
|
+
"held_at": "iso8601_utc",
|
|
458
|
+
"resolved_by_record_id": "string|null"
|
|
459
|
+
}
|
|
460
|
+
},
|
|
461
|
+
"unresolved": {
|
|
462
|
+
"schema": "reviewsensei:v6:unresolved:v1",
|
|
463
|
+
"required_fields": [
|
|
464
|
+
"schema",
|
|
465
|
+
"record_id",
|
|
466
|
+
"operation_id",
|
|
467
|
+
"pr_head_sha",
|
|
468
|
+
"payload_sha256",
|
|
469
|
+
"findings_payload",
|
|
470
|
+
"required_evidence_digests",
|
|
471
|
+
"artifact_cache_sha256"
|
|
472
|
+
],
|
|
473
|
+
"properties": {
|
|
474
|
+
"schema": "const:reviewsensei:v6:unresolved:v1",
|
|
475
|
+
"record_id": "string",
|
|
476
|
+
"operation_id": "string",
|
|
477
|
+
"pr_head_sha": "sha1_hex40",
|
|
478
|
+
"payload_sha256": "sha256_hex64",
|
|
479
|
+
"findings_payload": "array<object>",
|
|
480
|
+
"required_evidence_digests": "array<string>",
|
|
481
|
+
"artifact_cache_sha256": "sha256_hex64|null"
|
|
482
|
+
}
|
|
483
|
+
},
|
|
484
|
+
"progress": {
|
|
485
|
+
"schema": "reviewsensei:v6:progress:v1",
|
|
486
|
+
"required_fields": [
|
|
487
|
+
"schema",
|
|
488
|
+
"operation_id",
|
|
489
|
+
"recovery_phase",
|
|
490
|
+
"cursor_hint",
|
|
491
|
+
"verified_prefix_count",
|
|
492
|
+
"verified_prefix_digest",
|
|
493
|
+
"last_verified_id",
|
|
494
|
+
"stall_count",
|
|
495
|
+
"last_progress_digest",
|
|
496
|
+
"transient_error_count"
|
|
497
|
+
],
|
|
498
|
+
"properties": {
|
|
499
|
+
"schema": "const:reviewsensei:v6:progress:v1",
|
|
500
|
+
"operation_id": "string",
|
|
501
|
+
"recovery_phase": "string",
|
|
502
|
+
"cursor_hint": "string|null",
|
|
503
|
+
"verified_prefix_count": "integer>=0",
|
|
504
|
+
"verified_prefix_digest": "sha256_hex64_or_empty",
|
|
505
|
+
"last_verified_id": "string|integer>0|null",
|
|
506
|
+
"stall_count": "integer>=0",
|
|
507
|
+
"last_progress_digest": "string",
|
|
508
|
+
"transient_error_count": "integer>=0"
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
},
|
|
512
|
+
"keep_fields": [
|
|
513
|
+
"acquired_at",
|
|
514
|
+
"artifact_cache_sha256",
|
|
515
|
+
"completed_at",
|
|
516
|
+
"coordinator_attestation_mac",
|
|
517
|
+
"cursor_hint",
|
|
518
|
+
"diagnostic",
|
|
519
|
+
"effect_kind",
|
|
520
|
+
"expires_at",
|
|
521
|
+
"findings_payload",
|
|
522
|
+
"generation",
|
|
523
|
+
"github_effect_id",
|
|
524
|
+
"held_at",
|
|
525
|
+
"http_status",
|
|
526
|
+
"last_progress_digest",
|
|
527
|
+
"last_verified_id",
|
|
528
|
+
"lease_epoch",
|
|
529
|
+
"missing_evidence",
|
|
530
|
+
"operation_id",
|
|
531
|
+
"payload_sha256",
|
|
532
|
+
"pr_head_sha",
|
|
533
|
+
"proof_kind",
|
|
534
|
+
"reason_code",
|
|
535
|
+
"record_id",
|
|
536
|
+
"recorded_at",
|
|
537
|
+
"recovery_phase",
|
|
538
|
+
"required_evidence_digests",
|
|
539
|
+
"reservation_id",
|
|
540
|
+
"resolved_by_record_id",
|
|
541
|
+
"run_attempt",
|
|
542
|
+
"run_id",
|
|
543
|
+
"schema",
|
|
544
|
+
"slot_key",
|
|
545
|
+
"stall_count",
|
|
546
|
+
"target_digest",
|
|
547
|
+
"target_location",
|
|
548
|
+
"transient_error_count",
|
|
549
|
+
"verified_prefix_count",
|
|
550
|
+
"verified_prefix_digest",
|
|
551
|
+
"workflow_sha",
|
|
552
|
+
"writer_epoch"
|
|
553
|
+
],
|
|
554
|
+
"never_keep_fields": [
|
|
555
|
+
"github_app_private_key",
|
|
556
|
+
"reviewsensei_signing_key",
|
|
557
|
+
"raw_aes_key",
|
|
558
|
+
"oidc_token",
|
|
559
|
+
"plaintext_installation_token",
|
|
560
|
+
"encrypted_escrow",
|
|
561
|
+
"iv_b64",
|
|
562
|
+
"ciphertext_b64",
|
|
563
|
+
"workflow_github_token",
|
|
564
|
+
"provider_api_key",
|
|
565
|
+
"ollama_api_key",
|
|
566
|
+
"openrouter_api_key",
|
|
567
|
+
"openai_api_key",
|
|
568
|
+
"raw_github_error_body"
|
|
569
|
+
]
|
|
570
|
+
},
|
|
571
|
+
"revocation_rules": {
|
|
572
|
+
"endpoint": "DELETE /installation/token",
|
|
573
|
+
"clock_margin_ms_default": 300000,
|
|
574
|
+
"outcomes": {
|
|
575
|
+
"http_204": {
|
|
576
|
+
"status": 204,
|
|
577
|
+
"classification": "confirmed_revoked",
|
|
578
|
+
"next_state": "RECONCILING",
|
|
579
|
+
"clear_escrow": true,
|
|
580
|
+
"sets_token_cleared": true
|
|
581
|
+
},
|
|
582
|
+
"http_401": {
|
|
583
|
+
"status": 401,
|
|
584
|
+
"classification": "already_invalid_or_expired",
|
|
585
|
+
"null_expiry_guard": "If token_expires_at_ms is null or not a positive finite integer > 0, NEVER compare against null/0 as expired; fail closed to HOLD with v6_lease_escrow_lost and preserve slot uncertainty.",
|
|
586
|
+
"null_expiry_next_state": "HOLD",
|
|
587
|
+
"null_expiry_diagnostic": "v6_lease_escrow_lost",
|
|
588
|
+
"expiry_fallback_condition": "token_expires_at_ms is integer > 0 AND now_ms >= token_expires_at_ms + clock_margin_ms",
|
|
589
|
+
"next_state_after_expiry": "RECONCILING",
|
|
590
|
+
"sets_token_cleared_after_expiry": true,
|
|
591
|
+
"next_state_before_expiry": "RECONCILING",
|
|
592
|
+
"sets_token_cleared_before_expiry": false,
|
|
593
|
+
"diagnostic_before_expiry": "v6_lease_revocation_uncertain"
|
|
594
|
+
},
|
|
595
|
+
"http_429_or_ratelimit_403": {
|
|
596
|
+
"statuses": [
|
|
597
|
+
429,
|
|
598
|
+
403
|
|
599
|
+
],
|
|
600
|
+
"requires_rate_limit_indicator": true,
|
|
601
|
+
"classification": "rate_limited",
|
|
602
|
+
"action": "bounded_retry_with_reset_backoff",
|
|
603
|
+
"exhausted_next_state": "RECONCILING",
|
|
604
|
+
"exhausted_sets_token_cleared": false,
|
|
605
|
+
"exhausted_diagnostic": "v6_lease_revocation_uncertain"
|
|
606
|
+
},
|
|
607
|
+
"permission_403": {
|
|
608
|
+
"status": 403,
|
|
609
|
+
"requires_rate_limit_indicator": false,
|
|
610
|
+
"classification": "permission_rejected",
|
|
611
|
+
"action": "fail_closed_no_retry",
|
|
612
|
+
"next_state": "HOLD",
|
|
613
|
+
"sets_token_cleared": false,
|
|
614
|
+
"diagnostic": "v6_lease_revocation_uncertain"
|
|
615
|
+
},
|
|
616
|
+
"http_other_4xx": {
|
|
617
|
+
"status_range": "400..499 excluding 401, 403, 429",
|
|
618
|
+
"statuses_examples": [
|
|
619
|
+
400,
|
|
620
|
+
404,
|
|
621
|
+
409,
|
|
622
|
+
410,
|
|
623
|
+
422
|
|
624
|
+
],
|
|
625
|
+
"classification": "unexpected_client_rejection",
|
|
626
|
+
"action": "fail_closed_no_retry_preserve_escrow",
|
|
627
|
+
"clear_escrow": false,
|
|
628
|
+
"next_state": "HOLD",
|
|
629
|
+
"sets_token_cleared": false,
|
|
630
|
+
"diagnostic": "v6_lease_revocation_uncertain"
|
|
631
|
+
},
|
|
632
|
+
"http_5xx_or_timeout": {
|
|
633
|
+
"statuses": [
|
|
634
|
+
500,
|
|
635
|
+
502,
|
|
636
|
+
503,
|
|
637
|
+
504
|
|
638
|
+
],
|
|
639
|
+
"includes_timeout": true,
|
|
640
|
+
"classification": "transient_uncertain",
|
|
641
|
+
"action": "bounded_retry",
|
|
642
|
+
"exhausted_next_state": "RECONCILING",
|
|
643
|
+
"exhausted_sets_token_cleared": false,
|
|
644
|
+
"exhausted_diagnostic": "v6_lease_revocation_uncertain"
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
},
|
|
648
|
+
"http_routes": {
|
|
649
|
+
"/github/v6/lease/acquire": {
|
|
650
|
+
"method": "POST",
|
|
651
|
+
"request_fields": {
|
|
652
|
+
"required": [
|
|
653
|
+
"oidc_token",
|
|
654
|
+
"pull_request",
|
|
655
|
+
"head_sha",
|
|
656
|
+
"capabilities"
|
|
657
|
+
],
|
|
658
|
+
"optional": [
|
|
659
|
+
"operation_id",
|
|
660
|
+
"predecessor_anchor_comment_id",
|
|
661
|
+
"control_budget"
|
|
662
|
+
]
|
|
663
|
+
},
|
|
664
|
+
"response_fields": {
|
|
665
|
+
"success": [
|
|
666
|
+
"slot_key",
|
|
667
|
+
"state",
|
|
668
|
+
"generation",
|
|
669
|
+
"lease_epoch",
|
|
670
|
+
"reservation_id",
|
|
671
|
+
"token",
|
|
672
|
+
"token_expires_at_ms",
|
|
673
|
+
"app_id",
|
|
674
|
+
"installation_id",
|
|
675
|
+
"base_repo_id",
|
|
676
|
+
"pull_request",
|
|
677
|
+
"head_sha",
|
|
678
|
+
"coordinator_attestation_mac"
|
|
679
|
+
],
|
|
680
|
+
"error": [
|
|
681
|
+
"error",
|
|
682
|
+
"diagnostic",
|
|
683
|
+
"slot_state",
|
|
684
|
+
"retry_after_ms"
|
|
685
|
+
]
|
|
686
|
+
},
|
|
687
|
+
"success_statuses": [
|
|
688
|
+
200
|
|
689
|
+
],
|
|
690
|
+
"error_statuses": [
|
|
691
|
+
400,
|
|
692
|
+
403,
|
|
693
|
+
409,
|
|
694
|
+
411,
|
|
695
|
+
413,
|
|
696
|
+
429,
|
|
697
|
+
503
|
|
698
|
+
],
|
|
699
|
+
"reason_codes": [
|
|
700
|
+
"v6_lease_reserved",
|
|
701
|
+
"v6_lease_active_other_owner",
|
|
702
|
+
"v6_lease_draining",
|
|
703
|
+
"v6_lease_reconciling",
|
|
704
|
+
"v6_lease_hold",
|
|
705
|
+
"v6_lease_head_changed",
|
|
706
|
+
"v6_lease_predecessor_not_terminal",
|
|
707
|
+
"v6_lease_revocation_uncertain",
|
|
708
|
+
"v6_lease_escrow_lost",
|
|
709
|
+
"v6_lease_clock_untrusted",
|
|
710
|
+
"v6_lease_slot_continuity_unproved",
|
|
711
|
+
"v6_lease_unauthorized_tuple",
|
|
712
|
+
"v6_lease_rollback_blocked",
|
|
713
|
+
"v6_lease_mint_uncertain"
|
|
714
|
+
]
|
|
715
|
+
},
|
|
716
|
+
"/github/v6/lease/drain": {
|
|
717
|
+
"method": "POST",
|
|
718
|
+
"request_fields": {
|
|
719
|
+
"required": [
|
|
720
|
+
"oidc_token",
|
|
721
|
+
"slot_key"
|
|
722
|
+
],
|
|
723
|
+
"optional": [
|
|
724
|
+
"expected_generation",
|
|
725
|
+
"expected_lease_epoch",
|
|
726
|
+
"predecessor_anchor_comment_id",
|
|
727
|
+
"control_budget"
|
|
728
|
+
]
|
|
729
|
+
},
|
|
730
|
+
"response_fields": {
|
|
731
|
+
"success": [
|
|
732
|
+
"slot_key",
|
|
733
|
+
"state",
|
|
734
|
+
"generation",
|
|
735
|
+
"lease_epoch",
|
|
736
|
+
"token_cleared",
|
|
737
|
+
"revocation_status"
|
|
738
|
+
],
|
|
739
|
+
"error": [
|
|
740
|
+
"error",
|
|
741
|
+
"diagnostic",
|
|
742
|
+
"slot_state",
|
|
743
|
+
"retry_after_ms"
|
|
744
|
+
]
|
|
745
|
+
},
|
|
746
|
+
"success_statuses": [
|
|
747
|
+
200
|
|
748
|
+
],
|
|
749
|
+
"error_statuses": [
|
|
750
|
+
400,
|
|
751
|
+
403,
|
|
752
|
+
409,
|
|
753
|
+
411,
|
|
754
|
+
413,
|
|
755
|
+
429,
|
|
756
|
+
503
|
|
757
|
+
],
|
|
758
|
+
"reason_codes": [
|
|
759
|
+
"v6_lease_active_other_owner",
|
|
760
|
+
"v6_lease_draining",
|
|
761
|
+
"v6_lease_reconciling",
|
|
762
|
+
"v6_lease_hold",
|
|
763
|
+
"v6_lease_predecessor_not_terminal",
|
|
764
|
+
"v6_lease_revocation_uncertain",
|
|
765
|
+
"v6_lease_escrow_lost",
|
|
766
|
+
"v6_lease_clock_untrusted",
|
|
767
|
+
"v6_lease_slot_continuity_unproved",
|
|
768
|
+
"v6_lease_unauthorized_tuple",
|
|
769
|
+
"v6_lease_rollback_blocked"
|
|
770
|
+
]
|
|
771
|
+
},
|
|
772
|
+
"/github/v6/lease/complete-reconcile": {
|
|
773
|
+
"method": "POST",
|
|
774
|
+
"request_fields": {
|
|
775
|
+
"required": [
|
|
776
|
+
"oidc_token",
|
|
777
|
+
"slot_key",
|
|
778
|
+
"generation",
|
|
779
|
+
"reconciliation_outcome",
|
|
780
|
+
"reconciliation_evidence"
|
|
781
|
+
],
|
|
782
|
+
"optional": [
|
|
783
|
+
"anchor_comment_id",
|
|
784
|
+
"head_sha",
|
|
785
|
+
"control_budget"
|
|
786
|
+
]
|
|
787
|
+
},
|
|
788
|
+
"reconciliation_outcomes": [
|
|
789
|
+
"clean_receipts",
|
|
790
|
+
"adopted_missing_receipt",
|
|
791
|
+
"proved_not_submitted",
|
|
792
|
+
"ambiguous_hold",
|
|
793
|
+
"incomplete"
|
|
794
|
+
],
|
|
795
|
+
"terminal_reconciliation_outcomes": [
|
|
796
|
+
"clean_receipts",
|
|
797
|
+
"adopted_missing_receipt",
|
|
798
|
+
"proved_not_submitted"
|
|
799
|
+
],
|
|
800
|
+
"non_terminal_reconciliation_outcomes": [
|
|
801
|
+
"ambiguous_hold",
|
|
802
|
+
"incomplete"
|
|
803
|
+
],
|
|
804
|
+
"reconciliation_evidence_schema": {
|
|
805
|
+
"required_fields": [
|
|
806
|
+
"old_generation",
|
|
807
|
+
"intent_resolutions"
|
|
808
|
+
],
|
|
809
|
+
"optional_fields": [
|
|
810
|
+
"old_owner_comment_id"
|
|
811
|
+
],
|
|
812
|
+
"properties": {
|
|
813
|
+
"old_generation": "integer>=1",
|
|
814
|
+
"old_owner_comment_id": "integer>=1|null",
|
|
815
|
+
"intent_resolutions": "array<intent_resolution>"
|
|
816
|
+
},
|
|
817
|
+
"intent_resolution_item": {
|
|
818
|
+
"required_fields": [
|
|
819
|
+
"operation_id",
|
|
820
|
+
"intent_comment_id",
|
|
821
|
+
"resolution"
|
|
822
|
+
],
|
|
823
|
+
"optional_fields": [
|
|
824
|
+
"receipt_comment_id",
|
|
825
|
+
"native_effect_kind",
|
|
826
|
+
"native_effect_id",
|
|
827
|
+
"proof_comment_id"
|
|
828
|
+
],
|
|
829
|
+
"resolution_enum": [
|
|
830
|
+
"receipt_present",
|
|
831
|
+
"adopted_effect",
|
|
832
|
+
"proved_not_submitted",
|
|
833
|
+
"ambiguous_hold"
|
|
834
|
+
]
|
|
835
|
+
}
|
|
836
|
+
},
|
|
837
|
+
"worker_independent_verification": {
|
|
838
|
+
"owner_anchor_check": "O(1) GET /repos/{owner}/{repo}/issues/comments/{old_owner_comment_id} verifying App authorship, canonical SHA-256, slot_key, generation, and coordinator_attestation_mac.",
|
|
839
|
+
"bounded_intent_inventory_check": "Bounded GET /repos/{owner}/{repo}/issues/{pr}/comments?per_page=100&since={slot_acquired_at} (fail closed on truncation or Link rel=next) asserting 100% of old_generation App-authored intent:v1 records are covered in intent_resolutions.",
|
|
840
|
+
"intent_comment_check": "O(1) GET /repos/{owner}/{repo}/issues/comments/{intent_comment_id} verifying App authorship, canonical SHA-256, operation_id, and old_generation.",
|
|
841
|
+
"resolution_proof_checks": {
|
|
842
|
+
"receipt_present": "O(1) GET /repos/{owner}/{repo}/issues/comments/{receipt_comment_id} verifying matching App-authored receipt:v1.",
|
|
843
|
+
"adopted_effect": "O(1) GET against the live GitHub native_effect_kind/native_effect_id surface verifying the effect landed and matches payload_sha256/operation_id.",
|
|
844
|
+
"proved_not_submitted": "O(1) GET /repos/{owner}/{repo}/issues/comments/{proof_comment_id} verifying App-authored reviewsensei:v6:non-submission:v1 (empty search is never accepted).",
|
|
845
|
+
"ambiguous_hold": "Transitions RECONCILING -> HOLD without clearing obligations or advancing generation."
|
|
846
|
+
},
|
|
847
|
+
"zero_worker_pr_writes": true
|
|
848
|
+
},
|
|
849
|
+
"response_fields": {
|
|
850
|
+
"success": [
|
|
851
|
+
"slot_key",
|
|
852
|
+
"state",
|
|
853
|
+
"generation",
|
|
854
|
+
"lease_epoch"
|
|
855
|
+
],
|
|
856
|
+
"error": [
|
|
857
|
+
"error",
|
|
858
|
+
"diagnostic",
|
|
859
|
+
"slot_state"
|
|
860
|
+
]
|
|
861
|
+
},
|
|
862
|
+
"success_statuses": [
|
|
863
|
+
200
|
|
864
|
+
],
|
|
865
|
+
"error_statuses": [
|
|
866
|
+
400,
|
|
867
|
+
403,
|
|
868
|
+
409,
|
|
869
|
+
411,
|
|
870
|
+
413,
|
|
871
|
+
429,
|
|
872
|
+
503
|
|
873
|
+
],
|
|
874
|
+
"reason_codes": [
|
|
875
|
+
"v6_lease_hold",
|
|
876
|
+
"v6_lease_revocation_uncertain",
|
|
877
|
+
"v6_lease_escrow_lost",
|
|
878
|
+
"v6_lease_clock_untrusted",
|
|
879
|
+
"v6_lease_slot_continuity_unproved",
|
|
880
|
+
"v6_lease_unauthorized_tuple",
|
|
881
|
+
"v6_lease_rollback_blocked",
|
|
882
|
+
"v6_lease_reconciliation_evidence_invalid"
|
|
883
|
+
]
|
|
884
|
+
},
|
|
885
|
+
"/github/v6/lease/release": {
|
|
886
|
+
"method": "POST",
|
|
887
|
+
"allowed_states": [
|
|
888
|
+
"ACTIVE"
|
|
889
|
+
],
|
|
890
|
+
"request_fields": {
|
|
891
|
+
"required": [
|
|
892
|
+
"oidc_token",
|
|
893
|
+
"slot_key",
|
|
894
|
+
"generation",
|
|
895
|
+
"lease_epoch",
|
|
896
|
+
"reservation_id"
|
|
897
|
+
],
|
|
898
|
+
"optional": [
|
|
899
|
+
"control_budget"
|
|
900
|
+
]
|
|
901
|
+
},
|
|
902
|
+
"response_fields": {
|
|
903
|
+
"success": [
|
|
904
|
+
"slot_key",
|
|
905
|
+
"state",
|
|
906
|
+
"generation",
|
|
907
|
+
"lease_epoch",
|
|
908
|
+
"token_cleared",
|
|
909
|
+
"revocation_status"
|
|
910
|
+
],
|
|
911
|
+
"error": [
|
|
912
|
+
"error",
|
|
913
|
+
"diagnostic",
|
|
914
|
+
"slot_state"
|
|
915
|
+
]
|
|
916
|
+
},
|
|
917
|
+
"success_statuses": [
|
|
918
|
+
200
|
|
919
|
+
],
|
|
920
|
+
"error_statuses": [
|
|
921
|
+
400,
|
|
922
|
+
403,
|
|
923
|
+
409,
|
|
924
|
+
411,
|
|
925
|
+
413,
|
|
926
|
+
429,
|
|
927
|
+
503
|
|
928
|
+
],
|
|
929
|
+
"reason_codes": [
|
|
930
|
+
"v6_lease_reserved",
|
|
931
|
+
"v6_lease_mint_uncertain",
|
|
932
|
+
"v6_lease_active_other_owner",
|
|
933
|
+
"v6_lease_draining",
|
|
934
|
+
"v6_lease_reconciling",
|
|
935
|
+
"v6_lease_hold",
|
|
936
|
+
"v6_lease_revocation_uncertain",
|
|
937
|
+
"v6_lease_escrow_lost",
|
|
938
|
+
"v6_lease_clock_untrusted",
|
|
939
|
+
"v6_lease_slot_continuity_unproved",
|
|
940
|
+
"v6_lease_unauthorized_tuple",
|
|
941
|
+
"v6_lease_rollback_blocked"
|
|
942
|
+
]
|
|
943
|
+
},
|
|
944
|
+
"/github/v6/lease/status": {
|
|
945
|
+
"method": "POST",
|
|
946
|
+
"request_fields": {
|
|
947
|
+
"required": [
|
|
948
|
+
"oidc_token",
|
|
949
|
+
"pull_request"
|
|
950
|
+
],
|
|
951
|
+
"optional": [
|
|
952
|
+
"slot_key",
|
|
953
|
+
"control_budget"
|
|
954
|
+
]
|
|
955
|
+
},
|
|
956
|
+
"response_fields": {
|
|
957
|
+
"success": [
|
|
958
|
+
"slot_key",
|
|
959
|
+
"state",
|
|
960
|
+
"generation",
|
|
961
|
+
"lease_epoch",
|
|
962
|
+
"reservation_id",
|
|
963
|
+
"owner_run_id",
|
|
964
|
+
"owner_run_attempt",
|
|
965
|
+
"owner_head_sha",
|
|
966
|
+
"owner_workflow_sha",
|
|
967
|
+
"owner_job",
|
|
968
|
+
"owner_comment_id",
|
|
969
|
+
"owner_record_sha256",
|
|
970
|
+
"acquired_at_ms",
|
|
971
|
+
"token_expires_at_ms",
|
|
972
|
+
"token_cleared",
|
|
973
|
+
"last_reason_code",
|
|
974
|
+
"updated_at_ms"
|
|
975
|
+
],
|
|
976
|
+
"error": [
|
|
977
|
+
"error",
|
|
978
|
+
"diagnostic"
|
|
979
|
+
]
|
|
980
|
+
},
|
|
981
|
+
"absent_slot_default": {
|
|
982
|
+
"status": 200,
|
|
983
|
+
"slot_key": "derived_canonical_slot_key",
|
|
984
|
+
"state": "IDLE",
|
|
985
|
+
"generation": 0,
|
|
986
|
+
"lease_epoch": 0,
|
|
987
|
+
"reservation_id": null,
|
|
988
|
+
"owner_run_id": null,
|
|
989
|
+
"owner_run_attempt": null,
|
|
990
|
+
"owner_head_sha": null,
|
|
991
|
+
"owner_workflow_sha": null,
|
|
992
|
+
"owner_job": null,
|
|
993
|
+
"owner_comment_id": null,
|
|
994
|
+
"owner_record_sha256": null,
|
|
995
|
+
"acquired_at_ms": null,
|
|
996
|
+
"token_expires_at_ms": null,
|
|
997
|
+
"token_cleared": false,
|
|
998
|
+
"last_reason_code": null,
|
|
999
|
+
"updated_at_ms": null
|
|
1000
|
+
},
|
|
1001
|
+
"success_statuses": [
|
|
1002
|
+
200
|
|
1003
|
+
],
|
|
1004
|
+
"error_statuses": [
|
|
1005
|
+
400,
|
|
1006
|
+
403,
|
|
1007
|
+
411,
|
|
1008
|
+
413,
|
|
1009
|
+
429,
|
|
1010
|
+
503
|
|
1011
|
+
],
|
|
1012
|
+
"reason_codes": [
|
|
1013
|
+
"v6_lease_unauthorized_tuple"
|
|
1014
|
+
]
|
|
1015
|
+
},
|
|
1016
|
+
"/github/v6/lease/resolve-hold": {
|
|
1017
|
+
"method": "POST",
|
|
1018
|
+
"request_fields": {
|
|
1019
|
+
"required": [
|
|
1020
|
+
"oidc_token",
|
|
1021
|
+
"slot_key",
|
|
1022
|
+
"generation",
|
|
1023
|
+
"hold_record_comment_id",
|
|
1024
|
+
"resolution_kind"
|
|
1025
|
+
],
|
|
1026
|
+
"optional": [
|
|
1027
|
+
"anchor_comment_id",
|
|
1028
|
+
"control_budget"
|
|
1029
|
+
]
|
|
1030
|
+
},
|
|
1031
|
+
"resolution_kinds": [
|
|
1032
|
+
"reconciled_clean",
|
|
1033
|
+
"enter_reconcile"
|
|
1034
|
+
],
|
|
1035
|
+
"response_fields": {
|
|
1036
|
+
"success": [
|
|
1037
|
+
"slot_key",
|
|
1038
|
+
"state",
|
|
1039
|
+
"generation",
|
|
1040
|
+
"lease_epoch"
|
|
1041
|
+
],
|
|
1042
|
+
"error": [
|
|
1043
|
+
"error",
|
|
1044
|
+
"diagnostic",
|
|
1045
|
+
"slot_state"
|
|
1046
|
+
]
|
|
1047
|
+
},
|
|
1048
|
+
"success_statuses": [
|
|
1049
|
+
200
|
|
1050
|
+
],
|
|
1051
|
+
"error_statuses": [
|
|
1052
|
+
400,
|
|
1053
|
+
403,
|
|
1054
|
+
409,
|
|
1055
|
+
411,
|
|
1056
|
+
413,
|
|
1057
|
+
429,
|
|
1058
|
+
503
|
|
1059
|
+
],
|
|
1060
|
+
"reason_codes": [
|
|
1061
|
+
"v6_lease_hold",
|
|
1062
|
+
"v6_lease_escrow_lost",
|
|
1063
|
+
"v6_lease_clock_untrusted",
|
|
1064
|
+
"v6_lease_slot_continuity_unproved",
|
|
1065
|
+
"v6_lease_unauthorized_tuple",
|
|
1066
|
+
"v6_lease_rollback_blocked",
|
|
1067
|
+
"v6_lease_reconciliation_evidence_invalid"
|
|
1068
|
+
]
|
|
1069
|
+
}
|
|
1070
|
+
},
|
|
1071
|
+
"diagnostic_codes": [
|
|
1072
|
+
"broker_v6_pilot_v5_writer_disabled",
|
|
1073
|
+
"v6_lease_reserved",
|
|
1074
|
+
"v6_lease_active_other_owner",
|
|
1075
|
+
"v6_lease_draining",
|
|
1076
|
+
"v6_lease_reconciling",
|
|
1077
|
+
"v6_lease_hold",
|
|
1078
|
+
"v6_lease_head_changed",
|
|
1079
|
+
"v6_lease_predecessor_not_terminal",
|
|
1080
|
+
"v6_lease_revocation_uncertain",
|
|
1081
|
+
"v6_lease_escrow_lost",
|
|
1082
|
+
"v6_lease_clock_untrusted",
|
|
1083
|
+
"v6_lease_slot_continuity_unproved",
|
|
1084
|
+
"v6_lease_unauthorized_tuple",
|
|
1085
|
+
"v6_lease_rollback_blocked",
|
|
1086
|
+
"v6_lease_mint_uncertain",
|
|
1087
|
+
"v6_lease_reconciliation_evidence_invalid"
|
|
1088
|
+
],
|
|
1089
|
+
"blockers": [
|
|
1090
|
+
{
|
|
1091
|
+
"id": "callable_v6_workflow",
|
|
1092
|
+
"name": "callable v6 workflow",
|
|
1093
|
+
"status": "OPEN"
|
|
1094
|
+
},
|
|
1095
|
+
{
|
|
1096
|
+
"id": "fenced_issuance",
|
|
1097
|
+
"name": "fenced issuance",
|
|
1098
|
+
"status": "OPEN"
|
|
1099
|
+
},
|
|
1100
|
+
{
|
|
1101
|
+
"id": "reproducible_ambiguous_write_recovery",
|
|
1102
|
+
"name": "reproducible ambiguous-write recovery",
|
|
1103
|
+
"status": "OPEN"
|
|
1104
|
+
},
|
|
1105
|
+
{
|
|
1106
|
+
"id": "opt_in_github_qualification",
|
|
1107
|
+
"name": "opt-in GitHub qualification",
|
|
1108
|
+
"status": "OPEN"
|
|
1109
|
+
}
|
|
1110
|
+
]
|
|
1111
|
+
}
|