@fleetless/contracts 12.1.0 → 13.0.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.
Files changed (75) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/artifacts/openapi.json +8431 -6164
  3. package/artifacts/routes.json +125 -3
  4. package/artifacts/schema/billing-change-response.schema.json +3 -3
  5. package/artifacts/schema/billing-decision-display-response.schema.json +749 -504
  6. package/artifacts/schema/billing-decision-period.schema.json +573 -504
  7. package/artifacts/schema/billing-decision-snapshot.schema.json +749 -504
  8. package/artifacts/schema/billing-invoice-pdf-query.schema.json +1 -1
  9. package/artifacts/schema/billing-invoice.schema.json +1 -1
  10. package/artifacts/schema/billing-view.schema.json +1 -1
  11. package/artifacts/schema/journal-access-proof.schema.json +342 -0
  12. package/artifacts/schema/journal-deletion-manifest.schema.json +2103 -0
  13. package/artifacts/schema/journal-evidence-ref.schema.json +596 -0
  14. package/artifacts/schema/journal-export-item.schema.json +2910 -0
  15. package/artifacts/schema/journal-final-seal-body.schema.json +160 -0
  16. package/artifacts/schema/journal-final-seal.schema.json +169 -0
  17. package/artifacts/schema/journal-first-checkpoint-body.schema.json +101 -0
  18. package/artifacts/schema/journal-first-checkpoint.schema.json +111 -0
  19. package/artifacts/schema/journal-generation-checkpoint-body.schema.json +88 -0
  20. package/artifacts/schema/journal-generation-checkpoint.schema.json +97 -0
  21. package/artifacts/schema/journal-intent-v2-body.schema.json +4166 -0
  22. package/artifacts/schema/journal-intent-v2.schema.json +4616 -0
  23. package/artifacts/schema/journal-manifest-batch.schema.json +1236 -0
  24. package/artifacts/schema/journal-manifest-binding.schema.json +3541 -0
  25. package/artifacts/schema/journal-manifest-entry.schema.json +106 -0
  26. package/artifacts/schema/journal-manifest-intent-projection.schema.json +1428 -0
  27. package/artifacts/schema/journal-manifest-row.schema.json +578 -0
  28. package/artifacts/schema/journal-manifest-scope.schema.json +135 -0
  29. package/artifacts/schema/journal-mirror-attempt.schema.json +182 -0
  30. package/artifacts/schema/journal-mixed-export.schema.json +3115 -0
  31. package/artifacts/schema/journal-registry-activation-receipt-body.schema.json +304 -0
  32. package/artifacts/schema/journal-registry-activation-receipt.schema.json +324 -0
  33. package/artifacts/schema/journal-registry-transition-body.schema.json +113 -0
  34. package/artifacts/schema/journal-registry-transition.schema.json +123 -0
  35. package/artifacts/schema/journal-replay-receipt-body.schema.json +1252 -0
  36. package/artifacts/schema/journal-replay-receipt.schema.json +1261 -0
  37. package/artifacts/schema/journal-v2-activation-checkpoint-body.schema.json +99 -0
  38. package/artifacts/schema/journal-v2-activation-checkpoint.schema.json +108 -0
  39. package/artifacts/schema/legal-acceptance-list-response.schema.json +31 -2
  40. package/artifacts/schema/legal-acceptance-version-row.schema.json +31 -2
  41. package/artifacts/schema/legal-offer-conflict-details.schema.json +32 -0
  42. package/artifacts/schema/legal-offer-decision-lookup-query.schema.json +16 -0
  43. package/artifacts/schema/legal-offer-decision-request.schema.json +37 -0
  44. package/artifacts/schema/legal-offer-decision-result.schema.json +409 -0
  45. package/artifacts/schema/legal-offer-decision-snapshot.schema.json +678 -0
  46. package/artifacts/schema/legal-offer-display-request.schema.json +16 -0
  47. package/artifacts/schema/legal-offer-display-response.schema.json +712 -0
  48. package/artifacts/schema/legal-offer-list-query.schema.json +17 -0
  49. package/artifacts/schema/legal-offer-list-response.schema.json +347 -0
  50. package/artifacts/schema/legal-offer-summary.schema.json +321 -0
  51. package/artifacts/schema/plan-change-prepare-response.schema.json +749 -504
  52. package/artifacts/schema/purchase-intent-response.schema.json +3 -3
  53. package/dist/billing.d.ts +361 -275
  54. package/dist/billing.js +27 -6
  55. package/dist/errors.d.ts +1 -1
  56. package/dist/errors.js +2 -0
  57. package/dist/index.d.ts +12 -0
  58. package/dist/index.js +6 -0
  59. package/dist/journal-controls.d.ts +228 -0
  60. package/dist/journal-controls.js +111 -0
  61. package/dist/journal-intents.d.ts +1695 -0
  62. package/dist/journal-intents.js +97 -0
  63. package/dist/journal-manifests.d.ts +1670 -0
  64. package/dist/journal-manifests.js +182 -0
  65. package/dist/journal-restore.d.ts +1871 -0
  66. package/dist/journal-restore.js +324 -0
  67. package/dist/journal-seals.d.ts +147 -0
  68. package/dist/journal-seals.js +89 -0
  69. package/dist/legal-acceptances.d.ts +4 -0
  70. package/dist/legal-acceptances.js +9 -2
  71. package/dist/legal-offers.d.ts +468 -0
  72. package/dist/legal-offers.js +91 -0
  73. package/dist/realtime.d.ts +2 -2
  74. package/dist/routes.js +57 -3
  75. package/package.json +1 -1
@@ -0,0 +1,2910 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "anyOf": [
4
+ {
5
+ "type": "object",
6
+ "properties": {
7
+ "generation": {
8
+ "type": "string",
9
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
10
+ },
11
+ "stored_bytes_b64url": {
12
+ "type": "string",
13
+ "minLength": 1,
14
+ "pattern": "^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-][AQgw]|[A-Za-z0-9_-]{2}[AEIMQUYcgkosw048])?$"
15
+ },
16
+ "mirror_inventory_digest": {
17
+ "type": "string",
18
+ "pattern": "^[0-9a-f]{64}$"
19
+ },
20
+ "type": {
21
+ "type": "string",
22
+ "const": "c0"
23
+ },
24
+ "schema": {
25
+ "type": "string",
26
+ "const": "fleetless.journal-first-checkpoint.v1"
27
+ },
28
+ "sequence": {
29
+ "type": "number",
30
+ "const": 0
31
+ },
32
+ "checkpoint_hash": {
33
+ "type": "string",
34
+ "pattern": "^[0-9a-f]{64}$"
35
+ },
36
+ "mirror_verdict": {
37
+ "type": "string",
38
+ "const": "complete"
39
+ },
40
+ "mirror_attempts": {
41
+ "minItems": 1,
42
+ "type": "array",
43
+ "items": {
44
+ "type": "object",
45
+ "properties": {
46
+ "attempt_id": {
47
+ "type": "string",
48
+ "minLength": 1
49
+ },
50
+ "observed_at": {
51
+ "type": "string",
52
+ "format": "date-time",
53
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
54
+ },
55
+ "type": {
56
+ "type": "string",
57
+ "const": "object_version"
58
+ },
59
+ "version_id": {
60
+ "type": "string",
61
+ "minLength": 1
62
+ },
63
+ "delete_marker": {
64
+ "type": "boolean",
65
+ "const": false
66
+ },
67
+ "stored_sha256": {
68
+ "type": "string",
69
+ "pattern": "^[0-9a-f]{64}$"
70
+ },
71
+ "readback_sha256": {
72
+ "type": "string",
73
+ "pattern": "^[0-9a-f]{64}$"
74
+ },
75
+ "readback_at": {
76
+ "type": "string",
77
+ "format": "date-time",
78
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
79
+ },
80
+ "effective_retain_until": {
81
+ "type": "string",
82
+ "format": "date-time",
83
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
84
+ },
85
+ "object_lock_mode": {
86
+ "type": "string",
87
+ "const": "COMPLIANCE"
88
+ }
89
+ },
90
+ "required": [
91
+ "attempt_id",
92
+ "observed_at",
93
+ "type",
94
+ "version_id",
95
+ "delete_marker",
96
+ "stored_sha256",
97
+ "readback_sha256",
98
+ "readback_at",
99
+ "effective_retain_until",
100
+ "object_lock_mode"
101
+ ],
102
+ "additionalProperties": false
103
+ }
104
+ }
105
+ },
106
+ "required": [
107
+ "generation",
108
+ "stored_bytes_b64url",
109
+ "mirror_inventory_digest",
110
+ "type",
111
+ "schema",
112
+ "sequence",
113
+ "checkpoint_hash",
114
+ "mirror_verdict",
115
+ "mirror_attempts"
116
+ ],
117
+ "additionalProperties": false
118
+ },
119
+ {
120
+ "type": "object",
121
+ "properties": {
122
+ "generation": {
123
+ "type": "string",
124
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
125
+ },
126
+ "stored_bytes_b64url": {
127
+ "type": "string",
128
+ "minLength": 1,
129
+ "pattern": "^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-][AQgw]|[A-Za-z0-9_-]{2}[AEIMQUYcgkosw048])?$"
130
+ },
131
+ "mirror_inventory_digest": {
132
+ "type": "string",
133
+ "pattern": "^[0-9a-f]{64}$"
134
+ },
135
+ "type": {
136
+ "type": "string",
137
+ "const": "c0"
138
+ },
139
+ "schema": {
140
+ "type": "string",
141
+ "const": "fleetless.journal-first-checkpoint.v1"
142
+ },
143
+ "sequence": {
144
+ "type": "number",
145
+ "const": 0
146
+ },
147
+ "checkpoint_hash": {
148
+ "type": "string",
149
+ "pattern": "^[0-9a-f]{64}$"
150
+ },
151
+ "mirror_verdict": {
152
+ "type": "string",
153
+ "const": "failed"
154
+ },
155
+ "mirror_attempts": {
156
+ "minItems": 1,
157
+ "type": "array",
158
+ "items": {
159
+ "anyOf": [
160
+ {
161
+ "type": "object",
162
+ "properties": {
163
+ "attempt_id": {
164
+ "type": "string",
165
+ "minLength": 1
166
+ },
167
+ "observed_at": {
168
+ "type": "string",
169
+ "format": "date-time",
170
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
171
+ },
172
+ "type": {
173
+ "type": "string",
174
+ "const": "object_version"
175
+ },
176
+ "version_id": {
177
+ "type": "string",
178
+ "minLength": 1
179
+ },
180
+ "delete_marker": {
181
+ "type": "boolean",
182
+ "const": false
183
+ },
184
+ "stored_sha256": {
185
+ "type": "string",
186
+ "pattern": "^[0-9a-f]{64}$"
187
+ },
188
+ "readback_sha256": {
189
+ "type": "string",
190
+ "pattern": "^[0-9a-f]{64}$"
191
+ },
192
+ "readback_at": {
193
+ "type": "string",
194
+ "format": "date-time",
195
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
196
+ },
197
+ "effective_retain_until": {
198
+ "type": "string",
199
+ "format": "date-time",
200
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
201
+ },
202
+ "object_lock_mode": {
203
+ "type": "string",
204
+ "const": "COMPLIANCE"
205
+ }
206
+ },
207
+ "required": [
208
+ "attempt_id",
209
+ "observed_at",
210
+ "type",
211
+ "version_id",
212
+ "delete_marker",
213
+ "stored_sha256",
214
+ "readback_sha256",
215
+ "readback_at",
216
+ "effective_retain_until",
217
+ "object_lock_mode"
218
+ ],
219
+ "additionalProperties": false
220
+ },
221
+ {
222
+ "type": "object",
223
+ "properties": {
224
+ "attempt_id": {
225
+ "type": "string",
226
+ "minLength": 1
227
+ },
228
+ "observed_at": {
229
+ "type": "string",
230
+ "format": "date-time",
231
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
232
+ },
233
+ "type": {
234
+ "type": "string",
235
+ "const": "delete_marker"
236
+ },
237
+ "version_id": {
238
+ "type": "string",
239
+ "minLength": 1
240
+ },
241
+ "delete_marker": {
242
+ "type": "boolean",
243
+ "const": true
244
+ },
245
+ "failure_code": {
246
+ "type": "string",
247
+ "const": "UNEXPECTED_DELETE_MARKER"
248
+ }
249
+ },
250
+ "required": [
251
+ "attempt_id",
252
+ "observed_at",
253
+ "type",
254
+ "version_id",
255
+ "delete_marker",
256
+ "failure_code"
257
+ ],
258
+ "additionalProperties": false
259
+ },
260
+ {
261
+ "anyOf": [
262
+ {
263
+ "type": "object",
264
+ "properties": {
265
+ "attempt_id": {
266
+ "type": "string",
267
+ "minLength": 1
268
+ },
269
+ "observed_at": {
270
+ "type": "string",
271
+ "format": "date-time",
272
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
273
+ },
274
+ "type": {
275
+ "type": "string",
276
+ "const": "inventory_error"
277
+ },
278
+ "failure_code": {
279
+ "type": "string",
280
+ "enum": [
281
+ "MISSING_VERSION",
282
+ "INCOMPLETE_LISTING"
283
+ ]
284
+ },
285
+ "version_id": {
286
+ "type": "string",
287
+ "minLength": 1
288
+ }
289
+ },
290
+ "required": [
291
+ "attempt_id",
292
+ "observed_at",
293
+ "type",
294
+ "failure_code"
295
+ ],
296
+ "additionalProperties": false
297
+ },
298
+ {
299
+ "type": "object",
300
+ "properties": {
301
+ "attempt_id": {
302
+ "type": "string",
303
+ "minLength": 1
304
+ },
305
+ "observed_at": {
306
+ "type": "string",
307
+ "format": "date-time",
308
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
309
+ },
310
+ "type": {
311
+ "type": "string",
312
+ "const": "inventory_error"
313
+ },
314
+ "failure_code": {
315
+ "type": "string",
316
+ "enum": [
317
+ "CONFLICTING_BYTES",
318
+ "UNKNOWN_RETENTION"
319
+ ]
320
+ },
321
+ "version_id": {
322
+ "type": "string",
323
+ "minLength": 1
324
+ }
325
+ },
326
+ "required": [
327
+ "attempt_id",
328
+ "observed_at",
329
+ "type",
330
+ "failure_code",
331
+ "version_id"
332
+ ],
333
+ "additionalProperties": false
334
+ }
335
+ ]
336
+ }
337
+ ]
338
+ }
339
+ }
340
+ },
341
+ "required": [
342
+ "generation",
343
+ "stored_bytes_b64url",
344
+ "mirror_inventory_digest",
345
+ "type",
346
+ "schema",
347
+ "sequence",
348
+ "checkpoint_hash",
349
+ "mirror_verdict",
350
+ "mirror_attempts"
351
+ ],
352
+ "additionalProperties": false
353
+ },
354
+ {
355
+ "type": "object",
356
+ "properties": {
357
+ "generation": {
358
+ "type": "string",
359
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
360
+ },
361
+ "stored_bytes_b64url": {
362
+ "type": "string",
363
+ "minLength": 1,
364
+ "pattern": "^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-][AQgw]|[A-Za-z0-9_-]{2}[AEIMQUYcgkosw048])?$"
365
+ },
366
+ "mirror_inventory_digest": {
367
+ "type": "string",
368
+ "pattern": "^[0-9a-f]{64}$"
369
+ },
370
+ "type": {
371
+ "type": "string",
372
+ "const": "intent_v1"
373
+ },
374
+ "schema": {
375
+ "type": "string",
376
+ "const": "fleetless.deletion-intent.v1"
377
+ },
378
+ "sequence": {
379
+ "type": "integer",
380
+ "minimum": 1,
381
+ "maximum": 9007199254740991
382
+ },
383
+ "previous_hash": {
384
+ "type": "string",
385
+ "pattern": "^[0-9a-f]{64}$"
386
+ },
387
+ "record_hash": {
388
+ "type": "string",
389
+ "pattern": "^[0-9a-f]{64}$"
390
+ },
391
+ "operation_id": {
392
+ "type": "string",
393
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
394
+ },
395
+ "mirror_verdict": {
396
+ "type": "string",
397
+ "const": "complete"
398
+ },
399
+ "mirror_attempts": {
400
+ "minItems": 1,
401
+ "type": "array",
402
+ "items": {
403
+ "type": "object",
404
+ "properties": {
405
+ "attempt_id": {
406
+ "type": "string",
407
+ "minLength": 1
408
+ },
409
+ "observed_at": {
410
+ "type": "string",
411
+ "format": "date-time",
412
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
413
+ },
414
+ "type": {
415
+ "type": "string",
416
+ "const": "object_version"
417
+ },
418
+ "version_id": {
419
+ "type": "string",
420
+ "minLength": 1
421
+ },
422
+ "delete_marker": {
423
+ "type": "boolean",
424
+ "const": false
425
+ },
426
+ "stored_sha256": {
427
+ "type": "string",
428
+ "pattern": "^[0-9a-f]{64}$"
429
+ },
430
+ "readback_sha256": {
431
+ "type": "string",
432
+ "pattern": "^[0-9a-f]{64}$"
433
+ },
434
+ "readback_at": {
435
+ "type": "string",
436
+ "format": "date-time",
437
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
438
+ },
439
+ "effective_retain_until": {
440
+ "type": "string",
441
+ "format": "date-time",
442
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
443
+ },
444
+ "object_lock_mode": {
445
+ "type": "string",
446
+ "const": "COMPLIANCE"
447
+ }
448
+ },
449
+ "required": [
450
+ "attempt_id",
451
+ "observed_at",
452
+ "type",
453
+ "version_id",
454
+ "delete_marker",
455
+ "stored_sha256",
456
+ "readback_sha256",
457
+ "readback_at",
458
+ "effective_retain_until",
459
+ "object_lock_mode"
460
+ ],
461
+ "additionalProperties": false
462
+ }
463
+ }
464
+ },
465
+ "required": [
466
+ "generation",
467
+ "stored_bytes_b64url",
468
+ "mirror_inventory_digest",
469
+ "type",
470
+ "schema",
471
+ "sequence",
472
+ "previous_hash",
473
+ "record_hash",
474
+ "operation_id",
475
+ "mirror_verdict",
476
+ "mirror_attempts"
477
+ ],
478
+ "additionalProperties": false
479
+ },
480
+ {
481
+ "type": "object",
482
+ "properties": {
483
+ "generation": {
484
+ "type": "string",
485
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
486
+ },
487
+ "stored_bytes_b64url": {
488
+ "type": "string",
489
+ "minLength": 1,
490
+ "pattern": "^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-][AQgw]|[A-Za-z0-9_-]{2}[AEIMQUYcgkosw048])?$"
491
+ },
492
+ "mirror_inventory_digest": {
493
+ "type": "string",
494
+ "pattern": "^[0-9a-f]{64}$"
495
+ },
496
+ "type": {
497
+ "type": "string",
498
+ "const": "intent_v1"
499
+ },
500
+ "schema": {
501
+ "type": "string",
502
+ "const": "fleetless.deletion-intent.v1"
503
+ },
504
+ "sequence": {
505
+ "type": "integer",
506
+ "minimum": 1,
507
+ "maximum": 9007199254740991
508
+ },
509
+ "previous_hash": {
510
+ "type": "string",
511
+ "pattern": "^[0-9a-f]{64}$"
512
+ },
513
+ "record_hash": {
514
+ "type": "string",
515
+ "pattern": "^[0-9a-f]{64}$"
516
+ },
517
+ "operation_id": {
518
+ "type": "string",
519
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
520
+ },
521
+ "mirror_verdict": {
522
+ "type": "string",
523
+ "const": "failed"
524
+ },
525
+ "mirror_attempts": {
526
+ "minItems": 1,
527
+ "type": "array",
528
+ "items": {
529
+ "anyOf": [
530
+ {
531
+ "type": "object",
532
+ "properties": {
533
+ "attempt_id": {
534
+ "type": "string",
535
+ "minLength": 1
536
+ },
537
+ "observed_at": {
538
+ "type": "string",
539
+ "format": "date-time",
540
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
541
+ },
542
+ "type": {
543
+ "type": "string",
544
+ "const": "object_version"
545
+ },
546
+ "version_id": {
547
+ "type": "string",
548
+ "minLength": 1
549
+ },
550
+ "delete_marker": {
551
+ "type": "boolean",
552
+ "const": false
553
+ },
554
+ "stored_sha256": {
555
+ "type": "string",
556
+ "pattern": "^[0-9a-f]{64}$"
557
+ },
558
+ "readback_sha256": {
559
+ "type": "string",
560
+ "pattern": "^[0-9a-f]{64}$"
561
+ },
562
+ "readback_at": {
563
+ "type": "string",
564
+ "format": "date-time",
565
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
566
+ },
567
+ "effective_retain_until": {
568
+ "type": "string",
569
+ "format": "date-time",
570
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
571
+ },
572
+ "object_lock_mode": {
573
+ "type": "string",
574
+ "const": "COMPLIANCE"
575
+ }
576
+ },
577
+ "required": [
578
+ "attempt_id",
579
+ "observed_at",
580
+ "type",
581
+ "version_id",
582
+ "delete_marker",
583
+ "stored_sha256",
584
+ "readback_sha256",
585
+ "readback_at",
586
+ "effective_retain_until",
587
+ "object_lock_mode"
588
+ ],
589
+ "additionalProperties": false
590
+ },
591
+ {
592
+ "type": "object",
593
+ "properties": {
594
+ "attempt_id": {
595
+ "type": "string",
596
+ "minLength": 1
597
+ },
598
+ "observed_at": {
599
+ "type": "string",
600
+ "format": "date-time",
601
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
602
+ },
603
+ "type": {
604
+ "type": "string",
605
+ "const": "delete_marker"
606
+ },
607
+ "version_id": {
608
+ "type": "string",
609
+ "minLength": 1
610
+ },
611
+ "delete_marker": {
612
+ "type": "boolean",
613
+ "const": true
614
+ },
615
+ "failure_code": {
616
+ "type": "string",
617
+ "const": "UNEXPECTED_DELETE_MARKER"
618
+ }
619
+ },
620
+ "required": [
621
+ "attempt_id",
622
+ "observed_at",
623
+ "type",
624
+ "version_id",
625
+ "delete_marker",
626
+ "failure_code"
627
+ ],
628
+ "additionalProperties": false
629
+ },
630
+ {
631
+ "anyOf": [
632
+ {
633
+ "type": "object",
634
+ "properties": {
635
+ "attempt_id": {
636
+ "type": "string",
637
+ "minLength": 1
638
+ },
639
+ "observed_at": {
640
+ "type": "string",
641
+ "format": "date-time",
642
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
643
+ },
644
+ "type": {
645
+ "type": "string",
646
+ "const": "inventory_error"
647
+ },
648
+ "failure_code": {
649
+ "type": "string",
650
+ "enum": [
651
+ "MISSING_VERSION",
652
+ "INCOMPLETE_LISTING"
653
+ ]
654
+ },
655
+ "version_id": {
656
+ "type": "string",
657
+ "minLength": 1
658
+ }
659
+ },
660
+ "required": [
661
+ "attempt_id",
662
+ "observed_at",
663
+ "type",
664
+ "failure_code"
665
+ ],
666
+ "additionalProperties": false
667
+ },
668
+ {
669
+ "type": "object",
670
+ "properties": {
671
+ "attempt_id": {
672
+ "type": "string",
673
+ "minLength": 1
674
+ },
675
+ "observed_at": {
676
+ "type": "string",
677
+ "format": "date-time",
678
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
679
+ },
680
+ "type": {
681
+ "type": "string",
682
+ "const": "inventory_error"
683
+ },
684
+ "failure_code": {
685
+ "type": "string",
686
+ "enum": [
687
+ "CONFLICTING_BYTES",
688
+ "UNKNOWN_RETENTION"
689
+ ]
690
+ },
691
+ "version_id": {
692
+ "type": "string",
693
+ "minLength": 1
694
+ }
695
+ },
696
+ "required": [
697
+ "attempt_id",
698
+ "observed_at",
699
+ "type",
700
+ "failure_code",
701
+ "version_id"
702
+ ],
703
+ "additionalProperties": false
704
+ }
705
+ ]
706
+ }
707
+ ]
708
+ }
709
+ }
710
+ },
711
+ "required": [
712
+ "generation",
713
+ "stored_bytes_b64url",
714
+ "mirror_inventory_digest",
715
+ "type",
716
+ "schema",
717
+ "sequence",
718
+ "previous_hash",
719
+ "record_hash",
720
+ "operation_id",
721
+ "mirror_verdict",
722
+ "mirror_attempts"
723
+ ],
724
+ "additionalProperties": false
725
+ },
726
+ {
727
+ "type": "object",
728
+ "properties": {
729
+ "generation": {
730
+ "type": "string",
731
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
732
+ },
733
+ "stored_bytes_b64url": {
734
+ "type": "string",
735
+ "minLength": 1,
736
+ "pattern": "^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-][AQgw]|[A-Za-z0-9_-]{2}[AEIMQUYcgkosw048])?$"
737
+ },
738
+ "mirror_inventory_digest": {
739
+ "type": "string",
740
+ "pattern": "^[0-9a-f]{64}$"
741
+ },
742
+ "type": {
743
+ "type": "string",
744
+ "const": "intent_v2"
745
+ },
746
+ "schema": {
747
+ "type": "string",
748
+ "const": "fleetless.deletion-intent.v2"
749
+ },
750
+ "sequence": {
751
+ "type": "integer",
752
+ "minimum": 1,
753
+ "maximum": 9007199254740991
754
+ },
755
+ "previous_hash": {
756
+ "type": "string",
757
+ "pattern": "^[0-9a-f]{64}$"
758
+ },
759
+ "record_hash": {
760
+ "type": "string",
761
+ "pattern": "^[0-9a-f]{64}$"
762
+ },
763
+ "operation_id": {
764
+ "type": "string",
765
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
766
+ },
767
+ "mirror_verdict": {
768
+ "type": "string",
769
+ "const": "complete"
770
+ },
771
+ "mirror_attempts": {
772
+ "minItems": 1,
773
+ "type": "array",
774
+ "items": {
775
+ "type": "object",
776
+ "properties": {
777
+ "attempt_id": {
778
+ "type": "string",
779
+ "minLength": 1
780
+ },
781
+ "observed_at": {
782
+ "type": "string",
783
+ "format": "date-time",
784
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
785
+ },
786
+ "type": {
787
+ "type": "string",
788
+ "const": "object_version"
789
+ },
790
+ "version_id": {
791
+ "type": "string",
792
+ "minLength": 1
793
+ },
794
+ "delete_marker": {
795
+ "type": "boolean",
796
+ "const": false
797
+ },
798
+ "stored_sha256": {
799
+ "type": "string",
800
+ "pattern": "^[0-9a-f]{64}$"
801
+ },
802
+ "readback_sha256": {
803
+ "type": "string",
804
+ "pattern": "^[0-9a-f]{64}$"
805
+ },
806
+ "readback_at": {
807
+ "type": "string",
808
+ "format": "date-time",
809
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
810
+ },
811
+ "effective_retain_until": {
812
+ "type": "string",
813
+ "format": "date-time",
814
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
815
+ },
816
+ "object_lock_mode": {
817
+ "type": "string",
818
+ "const": "COMPLIANCE"
819
+ }
820
+ },
821
+ "required": [
822
+ "attempt_id",
823
+ "observed_at",
824
+ "type",
825
+ "version_id",
826
+ "delete_marker",
827
+ "stored_sha256",
828
+ "readback_sha256",
829
+ "readback_at",
830
+ "effective_retain_until",
831
+ "object_lock_mode"
832
+ ],
833
+ "additionalProperties": false
834
+ }
835
+ }
836
+ },
837
+ "required": [
838
+ "generation",
839
+ "stored_bytes_b64url",
840
+ "mirror_inventory_digest",
841
+ "type",
842
+ "schema",
843
+ "sequence",
844
+ "previous_hash",
845
+ "record_hash",
846
+ "operation_id",
847
+ "mirror_verdict",
848
+ "mirror_attempts"
849
+ ],
850
+ "additionalProperties": false
851
+ },
852
+ {
853
+ "type": "object",
854
+ "properties": {
855
+ "generation": {
856
+ "type": "string",
857
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
858
+ },
859
+ "stored_bytes_b64url": {
860
+ "type": "string",
861
+ "minLength": 1,
862
+ "pattern": "^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-][AQgw]|[A-Za-z0-9_-]{2}[AEIMQUYcgkosw048])?$"
863
+ },
864
+ "mirror_inventory_digest": {
865
+ "type": "string",
866
+ "pattern": "^[0-9a-f]{64}$"
867
+ },
868
+ "type": {
869
+ "type": "string",
870
+ "const": "intent_v2"
871
+ },
872
+ "schema": {
873
+ "type": "string",
874
+ "const": "fleetless.deletion-intent.v2"
875
+ },
876
+ "sequence": {
877
+ "type": "integer",
878
+ "minimum": 1,
879
+ "maximum": 9007199254740991
880
+ },
881
+ "previous_hash": {
882
+ "type": "string",
883
+ "pattern": "^[0-9a-f]{64}$"
884
+ },
885
+ "record_hash": {
886
+ "type": "string",
887
+ "pattern": "^[0-9a-f]{64}$"
888
+ },
889
+ "operation_id": {
890
+ "type": "string",
891
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
892
+ },
893
+ "mirror_verdict": {
894
+ "type": "string",
895
+ "const": "failed"
896
+ },
897
+ "mirror_attempts": {
898
+ "minItems": 1,
899
+ "type": "array",
900
+ "items": {
901
+ "anyOf": [
902
+ {
903
+ "type": "object",
904
+ "properties": {
905
+ "attempt_id": {
906
+ "type": "string",
907
+ "minLength": 1
908
+ },
909
+ "observed_at": {
910
+ "type": "string",
911
+ "format": "date-time",
912
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
913
+ },
914
+ "type": {
915
+ "type": "string",
916
+ "const": "object_version"
917
+ },
918
+ "version_id": {
919
+ "type": "string",
920
+ "minLength": 1
921
+ },
922
+ "delete_marker": {
923
+ "type": "boolean",
924
+ "const": false
925
+ },
926
+ "stored_sha256": {
927
+ "type": "string",
928
+ "pattern": "^[0-9a-f]{64}$"
929
+ },
930
+ "readback_sha256": {
931
+ "type": "string",
932
+ "pattern": "^[0-9a-f]{64}$"
933
+ },
934
+ "readback_at": {
935
+ "type": "string",
936
+ "format": "date-time",
937
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
938
+ },
939
+ "effective_retain_until": {
940
+ "type": "string",
941
+ "format": "date-time",
942
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
943
+ },
944
+ "object_lock_mode": {
945
+ "type": "string",
946
+ "const": "COMPLIANCE"
947
+ }
948
+ },
949
+ "required": [
950
+ "attempt_id",
951
+ "observed_at",
952
+ "type",
953
+ "version_id",
954
+ "delete_marker",
955
+ "stored_sha256",
956
+ "readback_sha256",
957
+ "readback_at",
958
+ "effective_retain_until",
959
+ "object_lock_mode"
960
+ ],
961
+ "additionalProperties": false
962
+ },
963
+ {
964
+ "type": "object",
965
+ "properties": {
966
+ "attempt_id": {
967
+ "type": "string",
968
+ "minLength": 1
969
+ },
970
+ "observed_at": {
971
+ "type": "string",
972
+ "format": "date-time",
973
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
974
+ },
975
+ "type": {
976
+ "type": "string",
977
+ "const": "delete_marker"
978
+ },
979
+ "version_id": {
980
+ "type": "string",
981
+ "minLength": 1
982
+ },
983
+ "delete_marker": {
984
+ "type": "boolean",
985
+ "const": true
986
+ },
987
+ "failure_code": {
988
+ "type": "string",
989
+ "const": "UNEXPECTED_DELETE_MARKER"
990
+ }
991
+ },
992
+ "required": [
993
+ "attempt_id",
994
+ "observed_at",
995
+ "type",
996
+ "version_id",
997
+ "delete_marker",
998
+ "failure_code"
999
+ ],
1000
+ "additionalProperties": false
1001
+ },
1002
+ {
1003
+ "anyOf": [
1004
+ {
1005
+ "type": "object",
1006
+ "properties": {
1007
+ "attempt_id": {
1008
+ "type": "string",
1009
+ "minLength": 1
1010
+ },
1011
+ "observed_at": {
1012
+ "type": "string",
1013
+ "format": "date-time",
1014
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
1015
+ },
1016
+ "type": {
1017
+ "type": "string",
1018
+ "const": "inventory_error"
1019
+ },
1020
+ "failure_code": {
1021
+ "type": "string",
1022
+ "enum": [
1023
+ "MISSING_VERSION",
1024
+ "INCOMPLETE_LISTING"
1025
+ ]
1026
+ },
1027
+ "version_id": {
1028
+ "type": "string",
1029
+ "minLength": 1
1030
+ }
1031
+ },
1032
+ "required": [
1033
+ "attempt_id",
1034
+ "observed_at",
1035
+ "type",
1036
+ "failure_code"
1037
+ ],
1038
+ "additionalProperties": false
1039
+ },
1040
+ {
1041
+ "type": "object",
1042
+ "properties": {
1043
+ "attempt_id": {
1044
+ "type": "string",
1045
+ "minLength": 1
1046
+ },
1047
+ "observed_at": {
1048
+ "type": "string",
1049
+ "format": "date-time",
1050
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
1051
+ },
1052
+ "type": {
1053
+ "type": "string",
1054
+ "const": "inventory_error"
1055
+ },
1056
+ "failure_code": {
1057
+ "type": "string",
1058
+ "enum": [
1059
+ "CONFLICTING_BYTES",
1060
+ "UNKNOWN_RETENTION"
1061
+ ]
1062
+ },
1063
+ "version_id": {
1064
+ "type": "string",
1065
+ "minLength": 1
1066
+ }
1067
+ },
1068
+ "required": [
1069
+ "attempt_id",
1070
+ "observed_at",
1071
+ "type",
1072
+ "failure_code",
1073
+ "version_id"
1074
+ ],
1075
+ "additionalProperties": false
1076
+ }
1077
+ ]
1078
+ }
1079
+ ]
1080
+ }
1081
+ }
1082
+ },
1083
+ "required": [
1084
+ "generation",
1085
+ "stored_bytes_b64url",
1086
+ "mirror_inventory_digest",
1087
+ "type",
1088
+ "schema",
1089
+ "sequence",
1090
+ "previous_hash",
1091
+ "record_hash",
1092
+ "operation_id",
1093
+ "mirror_verdict",
1094
+ "mirror_attempts"
1095
+ ],
1096
+ "additionalProperties": false
1097
+ },
1098
+ {
1099
+ "type": "object",
1100
+ "properties": {
1101
+ "generation": {
1102
+ "type": "string",
1103
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
1104
+ },
1105
+ "stored_bytes_b64url": {
1106
+ "type": "string",
1107
+ "minLength": 1,
1108
+ "pattern": "^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-][AQgw]|[A-Za-z0-9_-]{2}[AEIMQUYcgkosw048])?$"
1109
+ },
1110
+ "mirror_inventory_digest": {
1111
+ "type": "string",
1112
+ "pattern": "^[0-9a-f]{64}$"
1113
+ },
1114
+ "type": {
1115
+ "type": "string",
1116
+ "const": "registry_transition"
1117
+ },
1118
+ "schema": {
1119
+ "type": "string",
1120
+ "const": "fleetless.registry-transition.v1"
1121
+ },
1122
+ "sequence": {
1123
+ "type": "integer",
1124
+ "minimum": 1,
1125
+ "maximum": 9007199254740991
1126
+ },
1127
+ "previous_hash": {
1128
+ "type": "string",
1129
+ "pattern": "^[0-9a-f]{64}$"
1130
+ },
1131
+ "record_hash": {
1132
+ "type": "string",
1133
+ "pattern": "^[0-9a-f]{64}$"
1134
+ },
1135
+ "mirror_verdict": {
1136
+ "type": "string",
1137
+ "const": "complete"
1138
+ },
1139
+ "mirror_attempts": {
1140
+ "minItems": 1,
1141
+ "type": "array",
1142
+ "items": {
1143
+ "type": "object",
1144
+ "properties": {
1145
+ "attempt_id": {
1146
+ "type": "string",
1147
+ "minLength": 1
1148
+ },
1149
+ "observed_at": {
1150
+ "type": "string",
1151
+ "format": "date-time",
1152
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
1153
+ },
1154
+ "type": {
1155
+ "type": "string",
1156
+ "const": "object_version"
1157
+ },
1158
+ "version_id": {
1159
+ "type": "string",
1160
+ "minLength": 1
1161
+ },
1162
+ "delete_marker": {
1163
+ "type": "boolean",
1164
+ "const": false
1165
+ },
1166
+ "stored_sha256": {
1167
+ "type": "string",
1168
+ "pattern": "^[0-9a-f]{64}$"
1169
+ },
1170
+ "readback_sha256": {
1171
+ "type": "string",
1172
+ "pattern": "^[0-9a-f]{64}$"
1173
+ },
1174
+ "readback_at": {
1175
+ "type": "string",
1176
+ "format": "date-time",
1177
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
1178
+ },
1179
+ "effective_retain_until": {
1180
+ "type": "string",
1181
+ "format": "date-time",
1182
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
1183
+ },
1184
+ "object_lock_mode": {
1185
+ "type": "string",
1186
+ "const": "COMPLIANCE"
1187
+ }
1188
+ },
1189
+ "required": [
1190
+ "attempt_id",
1191
+ "observed_at",
1192
+ "type",
1193
+ "version_id",
1194
+ "delete_marker",
1195
+ "stored_sha256",
1196
+ "readback_sha256",
1197
+ "readback_at",
1198
+ "effective_retain_until",
1199
+ "object_lock_mode"
1200
+ ],
1201
+ "additionalProperties": false
1202
+ }
1203
+ }
1204
+ },
1205
+ "required": [
1206
+ "generation",
1207
+ "stored_bytes_b64url",
1208
+ "mirror_inventory_digest",
1209
+ "type",
1210
+ "schema",
1211
+ "sequence",
1212
+ "previous_hash",
1213
+ "record_hash",
1214
+ "mirror_verdict",
1215
+ "mirror_attempts"
1216
+ ],
1217
+ "additionalProperties": false
1218
+ },
1219
+ {
1220
+ "type": "object",
1221
+ "properties": {
1222
+ "generation": {
1223
+ "type": "string",
1224
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
1225
+ },
1226
+ "stored_bytes_b64url": {
1227
+ "type": "string",
1228
+ "minLength": 1,
1229
+ "pattern": "^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-][AQgw]|[A-Za-z0-9_-]{2}[AEIMQUYcgkosw048])?$"
1230
+ },
1231
+ "mirror_inventory_digest": {
1232
+ "type": "string",
1233
+ "pattern": "^[0-9a-f]{64}$"
1234
+ },
1235
+ "type": {
1236
+ "type": "string",
1237
+ "const": "registry_transition"
1238
+ },
1239
+ "schema": {
1240
+ "type": "string",
1241
+ "const": "fleetless.registry-transition.v1"
1242
+ },
1243
+ "sequence": {
1244
+ "type": "integer",
1245
+ "minimum": 1,
1246
+ "maximum": 9007199254740991
1247
+ },
1248
+ "previous_hash": {
1249
+ "type": "string",
1250
+ "pattern": "^[0-9a-f]{64}$"
1251
+ },
1252
+ "record_hash": {
1253
+ "type": "string",
1254
+ "pattern": "^[0-9a-f]{64}$"
1255
+ },
1256
+ "mirror_verdict": {
1257
+ "type": "string",
1258
+ "const": "failed"
1259
+ },
1260
+ "mirror_attempts": {
1261
+ "minItems": 1,
1262
+ "type": "array",
1263
+ "items": {
1264
+ "anyOf": [
1265
+ {
1266
+ "type": "object",
1267
+ "properties": {
1268
+ "attempt_id": {
1269
+ "type": "string",
1270
+ "minLength": 1
1271
+ },
1272
+ "observed_at": {
1273
+ "type": "string",
1274
+ "format": "date-time",
1275
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
1276
+ },
1277
+ "type": {
1278
+ "type": "string",
1279
+ "const": "object_version"
1280
+ },
1281
+ "version_id": {
1282
+ "type": "string",
1283
+ "minLength": 1
1284
+ },
1285
+ "delete_marker": {
1286
+ "type": "boolean",
1287
+ "const": false
1288
+ },
1289
+ "stored_sha256": {
1290
+ "type": "string",
1291
+ "pattern": "^[0-9a-f]{64}$"
1292
+ },
1293
+ "readback_sha256": {
1294
+ "type": "string",
1295
+ "pattern": "^[0-9a-f]{64}$"
1296
+ },
1297
+ "readback_at": {
1298
+ "type": "string",
1299
+ "format": "date-time",
1300
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
1301
+ },
1302
+ "effective_retain_until": {
1303
+ "type": "string",
1304
+ "format": "date-time",
1305
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
1306
+ },
1307
+ "object_lock_mode": {
1308
+ "type": "string",
1309
+ "const": "COMPLIANCE"
1310
+ }
1311
+ },
1312
+ "required": [
1313
+ "attempt_id",
1314
+ "observed_at",
1315
+ "type",
1316
+ "version_id",
1317
+ "delete_marker",
1318
+ "stored_sha256",
1319
+ "readback_sha256",
1320
+ "readback_at",
1321
+ "effective_retain_until",
1322
+ "object_lock_mode"
1323
+ ],
1324
+ "additionalProperties": false
1325
+ },
1326
+ {
1327
+ "type": "object",
1328
+ "properties": {
1329
+ "attempt_id": {
1330
+ "type": "string",
1331
+ "minLength": 1
1332
+ },
1333
+ "observed_at": {
1334
+ "type": "string",
1335
+ "format": "date-time",
1336
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
1337
+ },
1338
+ "type": {
1339
+ "type": "string",
1340
+ "const": "delete_marker"
1341
+ },
1342
+ "version_id": {
1343
+ "type": "string",
1344
+ "minLength": 1
1345
+ },
1346
+ "delete_marker": {
1347
+ "type": "boolean",
1348
+ "const": true
1349
+ },
1350
+ "failure_code": {
1351
+ "type": "string",
1352
+ "const": "UNEXPECTED_DELETE_MARKER"
1353
+ }
1354
+ },
1355
+ "required": [
1356
+ "attempt_id",
1357
+ "observed_at",
1358
+ "type",
1359
+ "version_id",
1360
+ "delete_marker",
1361
+ "failure_code"
1362
+ ],
1363
+ "additionalProperties": false
1364
+ },
1365
+ {
1366
+ "anyOf": [
1367
+ {
1368
+ "type": "object",
1369
+ "properties": {
1370
+ "attempt_id": {
1371
+ "type": "string",
1372
+ "minLength": 1
1373
+ },
1374
+ "observed_at": {
1375
+ "type": "string",
1376
+ "format": "date-time",
1377
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
1378
+ },
1379
+ "type": {
1380
+ "type": "string",
1381
+ "const": "inventory_error"
1382
+ },
1383
+ "failure_code": {
1384
+ "type": "string",
1385
+ "enum": [
1386
+ "MISSING_VERSION",
1387
+ "INCOMPLETE_LISTING"
1388
+ ]
1389
+ },
1390
+ "version_id": {
1391
+ "type": "string",
1392
+ "minLength": 1
1393
+ }
1394
+ },
1395
+ "required": [
1396
+ "attempt_id",
1397
+ "observed_at",
1398
+ "type",
1399
+ "failure_code"
1400
+ ],
1401
+ "additionalProperties": false
1402
+ },
1403
+ {
1404
+ "type": "object",
1405
+ "properties": {
1406
+ "attempt_id": {
1407
+ "type": "string",
1408
+ "minLength": 1
1409
+ },
1410
+ "observed_at": {
1411
+ "type": "string",
1412
+ "format": "date-time",
1413
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
1414
+ },
1415
+ "type": {
1416
+ "type": "string",
1417
+ "const": "inventory_error"
1418
+ },
1419
+ "failure_code": {
1420
+ "type": "string",
1421
+ "enum": [
1422
+ "CONFLICTING_BYTES",
1423
+ "UNKNOWN_RETENTION"
1424
+ ]
1425
+ },
1426
+ "version_id": {
1427
+ "type": "string",
1428
+ "minLength": 1
1429
+ }
1430
+ },
1431
+ "required": [
1432
+ "attempt_id",
1433
+ "observed_at",
1434
+ "type",
1435
+ "failure_code",
1436
+ "version_id"
1437
+ ],
1438
+ "additionalProperties": false
1439
+ }
1440
+ ]
1441
+ }
1442
+ ]
1443
+ }
1444
+ }
1445
+ },
1446
+ "required": [
1447
+ "generation",
1448
+ "stored_bytes_b64url",
1449
+ "mirror_inventory_digest",
1450
+ "type",
1451
+ "schema",
1452
+ "sequence",
1453
+ "previous_hash",
1454
+ "record_hash",
1455
+ "mirror_verdict",
1456
+ "mirror_attempts"
1457
+ ],
1458
+ "additionalProperties": false
1459
+ },
1460
+ {
1461
+ "type": "object",
1462
+ "properties": {
1463
+ "generation": {
1464
+ "type": "string",
1465
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
1466
+ },
1467
+ "stored_bytes_b64url": {
1468
+ "type": "string",
1469
+ "minLength": 1,
1470
+ "pattern": "^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-][AQgw]|[A-Za-z0-9_-]{2}[AEIMQUYcgkosw048])?$"
1471
+ },
1472
+ "mirror_inventory_digest": {
1473
+ "type": "string",
1474
+ "pattern": "^[0-9a-f]{64}$"
1475
+ },
1476
+ "type": {
1477
+ "type": "string",
1478
+ "const": "v2_activation_checkpoint"
1479
+ },
1480
+ "schema": {
1481
+ "type": "string",
1482
+ "const": "fleetless.journal-v2-activation-checkpoint.v1"
1483
+ },
1484
+ "sequence": {
1485
+ "type": "integer",
1486
+ "minimum": 1,
1487
+ "maximum": 9007199254740991
1488
+ },
1489
+ "previous_hash": {
1490
+ "type": "string",
1491
+ "pattern": "^[0-9a-f]{64}$"
1492
+ },
1493
+ "record_hash": {
1494
+ "type": "string",
1495
+ "pattern": "^[0-9a-f]{64}$"
1496
+ },
1497
+ "mirror_verdict": {
1498
+ "type": "string",
1499
+ "const": "complete"
1500
+ },
1501
+ "mirror_attempts": {
1502
+ "minItems": 1,
1503
+ "type": "array",
1504
+ "items": {
1505
+ "type": "object",
1506
+ "properties": {
1507
+ "attempt_id": {
1508
+ "type": "string",
1509
+ "minLength": 1
1510
+ },
1511
+ "observed_at": {
1512
+ "type": "string",
1513
+ "format": "date-time",
1514
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
1515
+ },
1516
+ "type": {
1517
+ "type": "string",
1518
+ "const": "object_version"
1519
+ },
1520
+ "version_id": {
1521
+ "type": "string",
1522
+ "minLength": 1
1523
+ },
1524
+ "delete_marker": {
1525
+ "type": "boolean",
1526
+ "const": false
1527
+ },
1528
+ "stored_sha256": {
1529
+ "type": "string",
1530
+ "pattern": "^[0-9a-f]{64}$"
1531
+ },
1532
+ "readback_sha256": {
1533
+ "type": "string",
1534
+ "pattern": "^[0-9a-f]{64}$"
1535
+ },
1536
+ "readback_at": {
1537
+ "type": "string",
1538
+ "format": "date-time",
1539
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
1540
+ },
1541
+ "effective_retain_until": {
1542
+ "type": "string",
1543
+ "format": "date-time",
1544
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
1545
+ },
1546
+ "object_lock_mode": {
1547
+ "type": "string",
1548
+ "const": "COMPLIANCE"
1549
+ }
1550
+ },
1551
+ "required": [
1552
+ "attempt_id",
1553
+ "observed_at",
1554
+ "type",
1555
+ "version_id",
1556
+ "delete_marker",
1557
+ "stored_sha256",
1558
+ "readback_sha256",
1559
+ "readback_at",
1560
+ "effective_retain_until",
1561
+ "object_lock_mode"
1562
+ ],
1563
+ "additionalProperties": false
1564
+ }
1565
+ }
1566
+ },
1567
+ "required": [
1568
+ "generation",
1569
+ "stored_bytes_b64url",
1570
+ "mirror_inventory_digest",
1571
+ "type",
1572
+ "schema",
1573
+ "sequence",
1574
+ "previous_hash",
1575
+ "record_hash",
1576
+ "mirror_verdict",
1577
+ "mirror_attempts"
1578
+ ],
1579
+ "additionalProperties": false
1580
+ },
1581
+ {
1582
+ "type": "object",
1583
+ "properties": {
1584
+ "generation": {
1585
+ "type": "string",
1586
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
1587
+ },
1588
+ "stored_bytes_b64url": {
1589
+ "type": "string",
1590
+ "minLength": 1,
1591
+ "pattern": "^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-][AQgw]|[A-Za-z0-9_-]{2}[AEIMQUYcgkosw048])?$"
1592
+ },
1593
+ "mirror_inventory_digest": {
1594
+ "type": "string",
1595
+ "pattern": "^[0-9a-f]{64}$"
1596
+ },
1597
+ "type": {
1598
+ "type": "string",
1599
+ "const": "v2_activation_checkpoint"
1600
+ },
1601
+ "schema": {
1602
+ "type": "string",
1603
+ "const": "fleetless.journal-v2-activation-checkpoint.v1"
1604
+ },
1605
+ "sequence": {
1606
+ "type": "integer",
1607
+ "minimum": 1,
1608
+ "maximum": 9007199254740991
1609
+ },
1610
+ "previous_hash": {
1611
+ "type": "string",
1612
+ "pattern": "^[0-9a-f]{64}$"
1613
+ },
1614
+ "record_hash": {
1615
+ "type": "string",
1616
+ "pattern": "^[0-9a-f]{64}$"
1617
+ },
1618
+ "mirror_verdict": {
1619
+ "type": "string",
1620
+ "const": "failed"
1621
+ },
1622
+ "mirror_attempts": {
1623
+ "minItems": 1,
1624
+ "type": "array",
1625
+ "items": {
1626
+ "anyOf": [
1627
+ {
1628
+ "type": "object",
1629
+ "properties": {
1630
+ "attempt_id": {
1631
+ "type": "string",
1632
+ "minLength": 1
1633
+ },
1634
+ "observed_at": {
1635
+ "type": "string",
1636
+ "format": "date-time",
1637
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
1638
+ },
1639
+ "type": {
1640
+ "type": "string",
1641
+ "const": "object_version"
1642
+ },
1643
+ "version_id": {
1644
+ "type": "string",
1645
+ "minLength": 1
1646
+ },
1647
+ "delete_marker": {
1648
+ "type": "boolean",
1649
+ "const": false
1650
+ },
1651
+ "stored_sha256": {
1652
+ "type": "string",
1653
+ "pattern": "^[0-9a-f]{64}$"
1654
+ },
1655
+ "readback_sha256": {
1656
+ "type": "string",
1657
+ "pattern": "^[0-9a-f]{64}$"
1658
+ },
1659
+ "readback_at": {
1660
+ "type": "string",
1661
+ "format": "date-time",
1662
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
1663
+ },
1664
+ "effective_retain_until": {
1665
+ "type": "string",
1666
+ "format": "date-time",
1667
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
1668
+ },
1669
+ "object_lock_mode": {
1670
+ "type": "string",
1671
+ "const": "COMPLIANCE"
1672
+ }
1673
+ },
1674
+ "required": [
1675
+ "attempt_id",
1676
+ "observed_at",
1677
+ "type",
1678
+ "version_id",
1679
+ "delete_marker",
1680
+ "stored_sha256",
1681
+ "readback_sha256",
1682
+ "readback_at",
1683
+ "effective_retain_until",
1684
+ "object_lock_mode"
1685
+ ],
1686
+ "additionalProperties": false
1687
+ },
1688
+ {
1689
+ "type": "object",
1690
+ "properties": {
1691
+ "attempt_id": {
1692
+ "type": "string",
1693
+ "minLength": 1
1694
+ },
1695
+ "observed_at": {
1696
+ "type": "string",
1697
+ "format": "date-time",
1698
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
1699
+ },
1700
+ "type": {
1701
+ "type": "string",
1702
+ "const": "delete_marker"
1703
+ },
1704
+ "version_id": {
1705
+ "type": "string",
1706
+ "minLength": 1
1707
+ },
1708
+ "delete_marker": {
1709
+ "type": "boolean",
1710
+ "const": true
1711
+ },
1712
+ "failure_code": {
1713
+ "type": "string",
1714
+ "const": "UNEXPECTED_DELETE_MARKER"
1715
+ }
1716
+ },
1717
+ "required": [
1718
+ "attempt_id",
1719
+ "observed_at",
1720
+ "type",
1721
+ "version_id",
1722
+ "delete_marker",
1723
+ "failure_code"
1724
+ ],
1725
+ "additionalProperties": false
1726
+ },
1727
+ {
1728
+ "anyOf": [
1729
+ {
1730
+ "type": "object",
1731
+ "properties": {
1732
+ "attempt_id": {
1733
+ "type": "string",
1734
+ "minLength": 1
1735
+ },
1736
+ "observed_at": {
1737
+ "type": "string",
1738
+ "format": "date-time",
1739
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
1740
+ },
1741
+ "type": {
1742
+ "type": "string",
1743
+ "const": "inventory_error"
1744
+ },
1745
+ "failure_code": {
1746
+ "type": "string",
1747
+ "enum": [
1748
+ "MISSING_VERSION",
1749
+ "INCOMPLETE_LISTING"
1750
+ ]
1751
+ },
1752
+ "version_id": {
1753
+ "type": "string",
1754
+ "minLength": 1
1755
+ }
1756
+ },
1757
+ "required": [
1758
+ "attempt_id",
1759
+ "observed_at",
1760
+ "type",
1761
+ "failure_code"
1762
+ ],
1763
+ "additionalProperties": false
1764
+ },
1765
+ {
1766
+ "type": "object",
1767
+ "properties": {
1768
+ "attempt_id": {
1769
+ "type": "string",
1770
+ "minLength": 1
1771
+ },
1772
+ "observed_at": {
1773
+ "type": "string",
1774
+ "format": "date-time",
1775
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
1776
+ },
1777
+ "type": {
1778
+ "type": "string",
1779
+ "const": "inventory_error"
1780
+ },
1781
+ "failure_code": {
1782
+ "type": "string",
1783
+ "enum": [
1784
+ "CONFLICTING_BYTES",
1785
+ "UNKNOWN_RETENTION"
1786
+ ]
1787
+ },
1788
+ "version_id": {
1789
+ "type": "string",
1790
+ "minLength": 1
1791
+ }
1792
+ },
1793
+ "required": [
1794
+ "attempt_id",
1795
+ "observed_at",
1796
+ "type",
1797
+ "failure_code",
1798
+ "version_id"
1799
+ ],
1800
+ "additionalProperties": false
1801
+ }
1802
+ ]
1803
+ }
1804
+ ]
1805
+ }
1806
+ }
1807
+ },
1808
+ "required": [
1809
+ "generation",
1810
+ "stored_bytes_b64url",
1811
+ "mirror_inventory_digest",
1812
+ "type",
1813
+ "schema",
1814
+ "sequence",
1815
+ "previous_hash",
1816
+ "record_hash",
1817
+ "mirror_verdict",
1818
+ "mirror_attempts"
1819
+ ],
1820
+ "additionalProperties": false
1821
+ },
1822
+ {
1823
+ "type": "object",
1824
+ "properties": {
1825
+ "generation": {
1826
+ "type": "string",
1827
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
1828
+ },
1829
+ "stored_bytes_b64url": {
1830
+ "type": "string",
1831
+ "minLength": 1,
1832
+ "pattern": "^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-][AQgw]|[A-Za-z0-9_-]{2}[AEIMQUYcgkosw048])?$"
1833
+ },
1834
+ "mirror_inventory_digest": {
1835
+ "type": "string",
1836
+ "pattern": "^[0-9a-f]{64}$"
1837
+ },
1838
+ "type": {
1839
+ "type": "string",
1840
+ "const": "generation_checkpoint"
1841
+ },
1842
+ "schema": {
1843
+ "type": "string",
1844
+ "const": "fleetless.journal-generation-checkpoint.v1"
1845
+ },
1846
+ "sequence": {
1847
+ "type": "integer",
1848
+ "minimum": 1,
1849
+ "maximum": 9007199254740991
1850
+ },
1851
+ "previous_hash": {
1852
+ "type": "string",
1853
+ "pattern": "^[0-9a-f]{64}$"
1854
+ },
1855
+ "record_hash": {
1856
+ "type": "string",
1857
+ "pattern": "^[0-9a-f]{64}$"
1858
+ },
1859
+ "mirror_verdict": {
1860
+ "type": "string",
1861
+ "const": "complete"
1862
+ },
1863
+ "mirror_attempts": {
1864
+ "minItems": 1,
1865
+ "type": "array",
1866
+ "items": {
1867
+ "type": "object",
1868
+ "properties": {
1869
+ "attempt_id": {
1870
+ "type": "string",
1871
+ "minLength": 1
1872
+ },
1873
+ "observed_at": {
1874
+ "type": "string",
1875
+ "format": "date-time",
1876
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
1877
+ },
1878
+ "type": {
1879
+ "type": "string",
1880
+ "const": "object_version"
1881
+ },
1882
+ "version_id": {
1883
+ "type": "string",
1884
+ "minLength": 1
1885
+ },
1886
+ "delete_marker": {
1887
+ "type": "boolean",
1888
+ "const": false
1889
+ },
1890
+ "stored_sha256": {
1891
+ "type": "string",
1892
+ "pattern": "^[0-9a-f]{64}$"
1893
+ },
1894
+ "readback_sha256": {
1895
+ "type": "string",
1896
+ "pattern": "^[0-9a-f]{64}$"
1897
+ },
1898
+ "readback_at": {
1899
+ "type": "string",
1900
+ "format": "date-time",
1901
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
1902
+ },
1903
+ "effective_retain_until": {
1904
+ "type": "string",
1905
+ "format": "date-time",
1906
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
1907
+ },
1908
+ "object_lock_mode": {
1909
+ "type": "string",
1910
+ "const": "COMPLIANCE"
1911
+ }
1912
+ },
1913
+ "required": [
1914
+ "attempt_id",
1915
+ "observed_at",
1916
+ "type",
1917
+ "version_id",
1918
+ "delete_marker",
1919
+ "stored_sha256",
1920
+ "readback_sha256",
1921
+ "readback_at",
1922
+ "effective_retain_until",
1923
+ "object_lock_mode"
1924
+ ],
1925
+ "additionalProperties": false
1926
+ }
1927
+ }
1928
+ },
1929
+ "required": [
1930
+ "generation",
1931
+ "stored_bytes_b64url",
1932
+ "mirror_inventory_digest",
1933
+ "type",
1934
+ "schema",
1935
+ "sequence",
1936
+ "previous_hash",
1937
+ "record_hash",
1938
+ "mirror_verdict",
1939
+ "mirror_attempts"
1940
+ ],
1941
+ "additionalProperties": false
1942
+ },
1943
+ {
1944
+ "type": "object",
1945
+ "properties": {
1946
+ "generation": {
1947
+ "type": "string",
1948
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
1949
+ },
1950
+ "stored_bytes_b64url": {
1951
+ "type": "string",
1952
+ "minLength": 1,
1953
+ "pattern": "^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-][AQgw]|[A-Za-z0-9_-]{2}[AEIMQUYcgkosw048])?$"
1954
+ },
1955
+ "mirror_inventory_digest": {
1956
+ "type": "string",
1957
+ "pattern": "^[0-9a-f]{64}$"
1958
+ },
1959
+ "type": {
1960
+ "type": "string",
1961
+ "const": "generation_checkpoint"
1962
+ },
1963
+ "schema": {
1964
+ "type": "string",
1965
+ "const": "fleetless.journal-generation-checkpoint.v1"
1966
+ },
1967
+ "sequence": {
1968
+ "type": "integer",
1969
+ "minimum": 1,
1970
+ "maximum": 9007199254740991
1971
+ },
1972
+ "previous_hash": {
1973
+ "type": "string",
1974
+ "pattern": "^[0-9a-f]{64}$"
1975
+ },
1976
+ "record_hash": {
1977
+ "type": "string",
1978
+ "pattern": "^[0-9a-f]{64}$"
1979
+ },
1980
+ "mirror_verdict": {
1981
+ "type": "string",
1982
+ "const": "failed"
1983
+ },
1984
+ "mirror_attempts": {
1985
+ "minItems": 1,
1986
+ "type": "array",
1987
+ "items": {
1988
+ "anyOf": [
1989
+ {
1990
+ "type": "object",
1991
+ "properties": {
1992
+ "attempt_id": {
1993
+ "type": "string",
1994
+ "minLength": 1
1995
+ },
1996
+ "observed_at": {
1997
+ "type": "string",
1998
+ "format": "date-time",
1999
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
2000
+ },
2001
+ "type": {
2002
+ "type": "string",
2003
+ "const": "object_version"
2004
+ },
2005
+ "version_id": {
2006
+ "type": "string",
2007
+ "minLength": 1
2008
+ },
2009
+ "delete_marker": {
2010
+ "type": "boolean",
2011
+ "const": false
2012
+ },
2013
+ "stored_sha256": {
2014
+ "type": "string",
2015
+ "pattern": "^[0-9a-f]{64}$"
2016
+ },
2017
+ "readback_sha256": {
2018
+ "type": "string",
2019
+ "pattern": "^[0-9a-f]{64}$"
2020
+ },
2021
+ "readback_at": {
2022
+ "type": "string",
2023
+ "format": "date-time",
2024
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
2025
+ },
2026
+ "effective_retain_until": {
2027
+ "type": "string",
2028
+ "format": "date-time",
2029
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
2030
+ },
2031
+ "object_lock_mode": {
2032
+ "type": "string",
2033
+ "const": "COMPLIANCE"
2034
+ }
2035
+ },
2036
+ "required": [
2037
+ "attempt_id",
2038
+ "observed_at",
2039
+ "type",
2040
+ "version_id",
2041
+ "delete_marker",
2042
+ "stored_sha256",
2043
+ "readback_sha256",
2044
+ "readback_at",
2045
+ "effective_retain_until",
2046
+ "object_lock_mode"
2047
+ ],
2048
+ "additionalProperties": false
2049
+ },
2050
+ {
2051
+ "type": "object",
2052
+ "properties": {
2053
+ "attempt_id": {
2054
+ "type": "string",
2055
+ "minLength": 1
2056
+ },
2057
+ "observed_at": {
2058
+ "type": "string",
2059
+ "format": "date-time",
2060
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
2061
+ },
2062
+ "type": {
2063
+ "type": "string",
2064
+ "const": "delete_marker"
2065
+ },
2066
+ "version_id": {
2067
+ "type": "string",
2068
+ "minLength": 1
2069
+ },
2070
+ "delete_marker": {
2071
+ "type": "boolean",
2072
+ "const": true
2073
+ },
2074
+ "failure_code": {
2075
+ "type": "string",
2076
+ "const": "UNEXPECTED_DELETE_MARKER"
2077
+ }
2078
+ },
2079
+ "required": [
2080
+ "attempt_id",
2081
+ "observed_at",
2082
+ "type",
2083
+ "version_id",
2084
+ "delete_marker",
2085
+ "failure_code"
2086
+ ],
2087
+ "additionalProperties": false
2088
+ },
2089
+ {
2090
+ "anyOf": [
2091
+ {
2092
+ "type": "object",
2093
+ "properties": {
2094
+ "attempt_id": {
2095
+ "type": "string",
2096
+ "minLength": 1
2097
+ },
2098
+ "observed_at": {
2099
+ "type": "string",
2100
+ "format": "date-time",
2101
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
2102
+ },
2103
+ "type": {
2104
+ "type": "string",
2105
+ "const": "inventory_error"
2106
+ },
2107
+ "failure_code": {
2108
+ "type": "string",
2109
+ "enum": [
2110
+ "MISSING_VERSION",
2111
+ "INCOMPLETE_LISTING"
2112
+ ]
2113
+ },
2114
+ "version_id": {
2115
+ "type": "string",
2116
+ "minLength": 1
2117
+ }
2118
+ },
2119
+ "required": [
2120
+ "attempt_id",
2121
+ "observed_at",
2122
+ "type",
2123
+ "failure_code"
2124
+ ],
2125
+ "additionalProperties": false
2126
+ },
2127
+ {
2128
+ "type": "object",
2129
+ "properties": {
2130
+ "attempt_id": {
2131
+ "type": "string",
2132
+ "minLength": 1
2133
+ },
2134
+ "observed_at": {
2135
+ "type": "string",
2136
+ "format": "date-time",
2137
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
2138
+ },
2139
+ "type": {
2140
+ "type": "string",
2141
+ "const": "inventory_error"
2142
+ },
2143
+ "failure_code": {
2144
+ "type": "string",
2145
+ "enum": [
2146
+ "CONFLICTING_BYTES",
2147
+ "UNKNOWN_RETENTION"
2148
+ ]
2149
+ },
2150
+ "version_id": {
2151
+ "type": "string",
2152
+ "minLength": 1
2153
+ }
2154
+ },
2155
+ "required": [
2156
+ "attempt_id",
2157
+ "observed_at",
2158
+ "type",
2159
+ "failure_code",
2160
+ "version_id"
2161
+ ],
2162
+ "additionalProperties": false
2163
+ }
2164
+ ]
2165
+ }
2166
+ ]
2167
+ }
2168
+ }
2169
+ },
2170
+ "required": [
2171
+ "generation",
2172
+ "stored_bytes_b64url",
2173
+ "mirror_inventory_digest",
2174
+ "type",
2175
+ "schema",
2176
+ "sequence",
2177
+ "previous_hash",
2178
+ "record_hash",
2179
+ "mirror_verdict",
2180
+ "mirror_attempts"
2181
+ ],
2182
+ "additionalProperties": false
2183
+ },
2184
+ {
2185
+ "type": "object",
2186
+ "properties": {
2187
+ "generation": {
2188
+ "type": "string",
2189
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
2190
+ },
2191
+ "stored_bytes_b64url": {
2192
+ "type": "string",
2193
+ "minLength": 1,
2194
+ "pattern": "^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-][AQgw]|[A-Za-z0-9_-]{2}[AEIMQUYcgkosw048])?$"
2195
+ },
2196
+ "mirror_inventory_digest": {
2197
+ "type": "string",
2198
+ "pattern": "^[0-9a-f]{64}$"
2199
+ },
2200
+ "type": {
2201
+ "type": "string",
2202
+ "const": "registry_activation_receipt"
2203
+ },
2204
+ "schema": {
2205
+ "type": "string",
2206
+ "const": "fleetless.registry-activation-receipt.v1"
2207
+ },
2208
+ "control_sequence": {
2209
+ "type": "integer",
2210
+ "minimum": 0,
2211
+ "maximum": 9007199254740991
2212
+ },
2213
+ "control_hash": {
2214
+ "type": "string",
2215
+ "pattern": "^[0-9a-f]{64}$"
2216
+ },
2217
+ "receipt_hash": {
2218
+ "type": "string",
2219
+ "pattern": "^[0-9a-f]{64}$"
2220
+ },
2221
+ "mirror_verdict": {
2222
+ "type": "string",
2223
+ "const": "complete"
2224
+ },
2225
+ "mirror_attempts": {
2226
+ "minItems": 1,
2227
+ "type": "array",
2228
+ "items": {
2229
+ "type": "object",
2230
+ "properties": {
2231
+ "attempt_id": {
2232
+ "type": "string",
2233
+ "minLength": 1
2234
+ },
2235
+ "observed_at": {
2236
+ "type": "string",
2237
+ "format": "date-time",
2238
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
2239
+ },
2240
+ "type": {
2241
+ "type": "string",
2242
+ "const": "object_version"
2243
+ },
2244
+ "version_id": {
2245
+ "type": "string",
2246
+ "minLength": 1
2247
+ },
2248
+ "delete_marker": {
2249
+ "type": "boolean",
2250
+ "const": false
2251
+ },
2252
+ "stored_sha256": {
2253
+ "type": "string",
2254
+ "pattern": "^[0-9a-f]{64}$"
2255
+ },
2256
+ "readback_sha256": {
2257
+ "type": "string",
2258
+ "pattern": "^[0-9a-f]{64}$"
2259
+ },
2260
+ "readback_at": {
2261
+ "type": "string",
2262
+ "format": "date-time",
2263
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
2264
+ },
2265
+ "effective_retain_until": {
2266
+ "type": "string",
2267
+ "format": "date-time",
2268
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
2269
+ },
2270
+ "object_lock_mode": {
2271
+ "type": "string",
2272
+ "const": "COMPLIANCE"
2273
+ }
2274
+ },
2275
+ "required": [
2276
+ "attempt_id",
2277
+ "observed_at",
2278
+ "type",
2279
+ "version_id",
2280
+ "delete_marker",
2281
+ "stored_sha256",
2282
+ "readback_sha256",
2283
+ "readback_at",
2284
+ "effective_retain_until",
2285
+ "object_lock_mode"
2286
+ ],
2287
+ "additionalProperties": false
2288
+ }
2289
+ }
2290
+ },
2291
+ "required": [
2292
+ "generation",
2293
+ "stored_bytes_b64url",
2294
+ "mirror_inventory_digest",
2295
+ "type",
2296
+ "schema",
2297
+ "control_sequence",
2298
+ "control_hash",
2299
+ "receipt_hash",
2300
+ "mirror_verdict",
2301
+ "mirror_attempts"
2302
+ ],
2303
+ "additionalProperties": false
2304
+ },
2305
+ {
2306
+ "type": "object",
2307
+ "properties": {
2308
+ "generation": {
2309
+ "type": "string",
2310
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
2311
+ },
2312
+ "stored_bytes_b64url": {
2313
+ "type": "string",
2314
+ "minLength": 1,
2315
+ "pattern": "^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-][AQgw]|[A-Za-z0-9_-]{2}[AEIMQUYcgkosw048])?$"
2316
+ },
2317
+ "mirror_inventory_digest": {
2318
+ "type": "string",
2319
+ "pattern": "^[0-9a-f]{64}$"
2320
+ },
2321
+ "type": {
2322
+ "type": "string",
2323
+ "const": "registry_activation_receipt"
2324
+ },
2325
+ "schema": {
2326
+ "type": "string",
2327
+ "const": "fleetless.registry-activation-receipt.v1"
2328
+ },
2329
+ "control_sequence": {
2330
+ "type": "integer",
2331
+ "minimum": 0,
2332
+ "maximum": 9007199254740991
2333
+ },
2334
+ "control_hash": {
2335
+ "type": "string",
2336
+ "pattern": "^[0-9a-f]{64}$"
2337
+ },
2338
+ "receipt_hash": {
2339
+ "type": "string",
2340
+ "pattern": "^[0-9a-f]{64}$"
2341
+ },
2342
+ "mirror_verdict": {
2343
+ "type": "string",
2344
+ "const": "failed"
2345
+ },
2346
+ "mirror_attempts": {
2347
+ "minItems": 1,
2348
+ "type": "array",
2349
+ "items": {
2350
+ "anyOf": [
2351
+ {
2352
+ "type": "object",
2353
+ "properties": {
2354
+ "attempt_id": {
2355
+ "type": "string",
2356
+ "minLength": 1
2357
+ },
2358
+ "observed_at": {
2359
+ "type": "string",
2360
+ "format": "date-time",
2361
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
2362
+ },
2363
+ "type": {
2364
+ "type": "string",
2365
+ "const": "object_version"
2366
+ },
2367
+ "version_id": {
2368
+ "type": "string",
2369
+ "minLength": 1
2370
+ },
2371
+ "delete_marker": {
2372
+ "type": "boolean",
2373
+ "const": false
2374
+ },
2375
+ "stored_sha256": {
2376
+ "type": "string",
2377
+ "pattern": "^[0-9a-f]{64}$"
2378
+ },
2379
+ "readback_sha256": {
2380
+ "type": "string",
2381
+ "pattern": "^[0-9a-f]{64}$"
2382
+ },
2383
+ "readback_at": {
2384
+ "type": "string",
2385
+ "format": "date-time",
2386
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
2387
+ },
2388
+ "effective_retain_until": {
2389
+ "type": "string",
2390
+ "format": "date-time",
2391
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
2392
+ },
2393
+ "object_lock_mode": {
2394
+ "type": "string",
2395
+ "const": "COMPLIANCE"
2396
+ }
2397
+ },
2398
+ "required": [
2399
+ "attempt_id",
2400
+ "observed_at",
2401
+ "type",
2402
+ "version_id",
2403
+ "delete_marker",
2404
+ "stored_sha256",
2405
+ "readback_sha256",
2406
+ "readback_at",
2407
+ "effective_retain_until",
2408
+ "object_lock_mode"
2409
+ ],
2410
+ "additionalProperties": false
2411
+ },
2412
+ {
2413
+ "type": "object",
2414
+ "properties": {
2415
+ "attempt_id": {
2416
+ "type": "string",
2417
+ "minLength": 1
2418
+ },
2419
+ "observed_at": {
2420
+ "type": "string",
2421
+ "format": "date-time",
2422
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
2423
+ },
2424
+ "type": {
2425
+ "type": "string",
2426
+ "const": "delete_marker"
2427
+ },
2428
+ "version_id": {
2429
+ "type": "string",
2430
+ "minLength": 1
2431
+ },
2432
+ "delete_marker": {
2433
+ "type": "boolean",
2434
+ "const": true
2435
+ },
2436
+ "failure_code": {
2437
+ "type": "string",
2438
+ "const": "UNEXPECTED_DELETE_MARKER"
2439
+ }
2440
+ },
2441
+ "required": [
2442
+ "attempt_id",
2443
+ "observed_at",
2444
+ "type",
2445
+ "version_id",
2446
+ "delete_marker",
2447
+ "failure_code"
2448
+ ],
2449
+ "additionalProperties": false
2450
+ },
2451
+ {
2452
+ "anyOf": [
2453
+ {
2454
+ "type": "object",
2455
+ "properties": {
2456
+ "attempt_id": {
2457
+ "type": "string",
2458
+ "minLength": 1
2459
+ },
2460
+ "observed_at": {
2461
+ "type": "string",
2462
+ "format": "date-time",
2463
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
2464
+ },
2465
+ "type": {
2466
+ "type": "string",
2467
+ "const": "inventory_error"
2468
+ },
2469
+ "failure_code": {
2470
+ "type": "string",
2471
+ "enum": [
2472
+ "MISSING_VERSION",
2473
+ "INCOMPLETE_LISTING"
2474
+ ]
2475
+ },
2476
+ "version_id": {
2477
+ "type": "string",
2478
+ "minLength": 1
2479
+ }
2480
+ },
2481
+ "required": [
2482
+ "attempt_id",
2483
+ "observed_at",
2484
+ "type",
2485
+ "failure_code"
2486
+ ],
2487
+ "additionalProperties": false
2488
+ },
2489
+ {
2490
+ "type": "object",
2491
+ "properties": {
2492
+ "attempt_id": {
2493
+ "type": "string",
2494
+ "minLength": 1
2495
+ },
2496
+ "observed_at": {
2497
+ "type": "string",
2498
+ "format": "date-time",
2499
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
2500
+ },
2501
+ "type": {
2502
+ "type": "string",
2503
+ "const": "inventory_error"
2504
+ },
2505
+ "failure_code": {
2506
+ "type": "string",
2507
+ "enum": [
2508
+ "CONFLICTING_BYTES",
2509
+ "UNKNOWN_RETENTION"
2510
+ ]
2511
+ },
2512
+ "version_id": {
2513
+ "type": "string",
2514
+ "minLength": 1
2515
+ }
2516
+ },
2517
+ "required": [
2518
+ "attempt_id",
2519
+ "observed_at",
2520
+ "type",
2521
+ "failure_code",
2522
+ "version_id"
2523
+ ],
2524
+ "additionalProperties": false
2525
+ }
2526
+ ]
2527
+ }
2528
+ ]
2529
+ }
2530
+ }
2531
+ },
2532
+ "required": [
2533
+ "generation",
2534
+ "stored_bytes_b64url",
2535
+ "mirror_inventory_digest",
2536
+ "type",
2537
+ "schema",
2538
+ "control_sequence",
2539
+ "control_hash",
2540
+ "receipt_hash",
2541
+ "mirror_verdict",
2542
+ "mirror_attempts"
2543
+ ],
2544
+ "additionalProperties": false
2545
+ },
2546
+ {
2547
+ "type": "object",
2548
+ "properties": {
2549
+ "generation": {
2550
+ "type": "string",
2551
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
2552
+ },
2553
+ "stored_bytes_b64url": {
2554
+ "type": "string",
2555
+ "minLength": 1,
2556
+ "pattern": "^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-][AQgw]|[A-Za-z0-9_-]{2}[AEIMQUYcgkosw048])?$"
2557
+ },
2558
+ "mirror_inventory_digest": {
2559
+ "type": "string",
2560
+ "pattern": "^[0-9a-f]{64}$"
2561
+ },
2562
+ "type": {
2563
+ "type": "string",
2564
+ "const": "seal"
2565
+ },
2566
+ "schema": {
2567
+ "type": "string",
2568
+ "const": "fleetless.journal-final-seal.v1"
2569
+ },
2570
+ "final_sequence": {
2571
+ "type": "integer",
2572
+ "minimum": 0,
2573
+ "maximum": 9007199254740991
2574
+ },
2575
+ "final_hash": {
2576
+ "type": "string",
2577
+ "pattern": "^[0-9a-f]{64}$"
2578
+ },
2579
+ "seal_hash": {
2580
+ "type": "string",
2581
+ "pattern": "^[0-9a-f]{64}$"
2582
+ },
2583
+ "mirror_verdict": {
2584
+ "type": "string",
2585
+ "const": "complete"
2586
+ },
2587
+ "mirror_attempts": {
2588
+ "minItems": 1,
2589
+ "type": "array",
2590
+ "items": {
2591
+ "type": "object",
2592
+ "properties": {
2593
+ "attempt_id": {
2594
+ "type": "string",
2595
+ "minLength": 1
2596
+ },
2597
+ "observed_at": {
2598
+ "type": "string",
2599
+ "format": "date-time",
2600
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
2601
+ },
2602
+ "type": {
2603
+ "type": "string",
2604
+ "const": "object_version"
2605
+ },
2606
+ "version_id": {
2607
+ "type": "string",
2608
+ "minLength": 1
2609
+ },
2610
+ "delete_marker": {
2611
+ "type": "boolean",
2612
+ "const": false
2613
+ },
2614
+ "stored_sha256": {
2615
+ "type": "string",
2616
+ "pattern": "^[0-9a-f]{64}$"
2617
+ },
2618
+ "readback_sha256": {
2619
+ "type": "string",
2620
+ "pattern": "^[0-9a-f]{64}$"
2621
+ },
2622
+ "readback_at": {
2623
+ "type": "string",
2624
+ "format": "date-time",
2625
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
2626
+ },
2627
+ "effective_retain_until": {
2628
+ "type": "string",
2629
+ "format": "date-time",
2630
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
2631
+ },
2632
+ "object_lock_mode": {
2633
+ "type": "string",
2634
+ "const": "COMPLIANCE"
2635
+ }
2636
+ },
2637
+ "required": [
2638
+ "attempt_id",
2639
+ "observed_at",
2640
+ "type",
2641
+ "version_id",
2642
+ "delete_marker",
2643
+ "stored_sha256",
2644
+ "readback_sha256",
2645
+ "readback_at",
2646
+ "effective_retain_until",
2647
+ "object_lock_mode"
2648
+ ],
2649
+ "additionalProperties": false
2650
+ }
2651
+ }
2652
+ },
2653
+ "required": [
2654
+ "generation",
2655
+ "stored_bytes_b64url",
2656
+ "mirror_inventory_digest",
2657
+ "type",
2658
+ "schema",
2659
+ "final_sequence",
2660
+ "final_hash",
2661
+ "seal_hash",
2662
+ "mirror_verdict",
2663
+ "mirror_attempts"
2664
+ ],
2665
+ "additionalProperties": false
2666
+ },
2667
+ {
2668
+ "type": "object",
2669
+ "properties": {
2670
+ "generation": {
2671
+ "type": "string",
2672
+ "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
2673
+ },
2674
+ "stored_bytes_b64url": {
2675
+ "type": "string",
2676
+ "minLength": 1,
2677
+ "pattern": "^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-][AQgw]|[A-Za-z0-9_-]{2}[AEIMQUYcgkosw048])?$"
2678
+ },
2679
+ "mirror_inventory_digest": {
2680
+ "type": "string",
2681
+ "pattern": "^[0-9a-f]{64}$"
2682
+ },
2683
+ "type": {
2684
+ "type": "string",
2685
+ "const": "seal"
2686
+ },
2687
+ "schema": {
2688
+ "type": "string",
2689
+ "const": "fleetless.journal-final-seal.v1"
2690
+ },
2691
+ "final_sequence": {
2692
+ "type": "integer",
2693
+ "minimum": 0,
2694
+ "maximum": 9007199254740991
2695
+ },
2696
+ "final_hash": {
2697
+ "type": "string",
2698
+ "pattern": "^[0-9a-f]{64}$"
2699
+ },
2700
+ "seal_hash": {
2701
+ "type": "string",
2702
+ "pattern": "^[0-9a-f]{64}$"
2703
+ },
2704
+ "mirror_verdict": {
2705
+ "type": "string",
2706
+ "const": "failed"
2707
+ },
2708
+ "mirror_attempts": {
2709
+ "minItems": 1,
2710
+ "type": "array",
2711
+ "items": {
2712
+ "anyOf": [
2713
+ {
2714
+ "type": "object",
2715
+ "properties": {
2716
+ "attempt_id": {
2717
+ "type": "string",
2718
+ "minLength": 1
2719
+ },
2720
+ "observed_at": {
2721
+ "type": "string",
2722
+ "format": "date-time",
2723
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
2724
+ },
2725
+ "type": {
2726
+ "type": "string",
2727
+ "const": "object_version"
2728
+ },
2729
+ "version_id": {
2730
+ "type": "string",
2731
+ "minLength": 1
2732
+ },
2733
+ "delete_marker": {
2734
+ "type": "boolean",
2735
+ "const": false
2736
+ },
2737
+ "stored_sha256": {
2738
+ "type": "string",
2739
+ "pattern": "^[0-9a-f]{64}$"
2740
+ },
2741
+ "readback_sha256": {
2742
+ "type": "string",
2743
+ "pattern": "^[0-9a-f]{64}$"
2744
+ },
2745
+ "readback_at": {
2746
+ "type": "string",
2747
+ "format": "date-time",
2748
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
2749
+ },
2750
+ "effective_retain_until": {
2751
+ "type": "string",
2752
+ "format": "date-time",
2753
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
2754
+ },
2755
+ "object_lock_mode": {
2756
+ "type": "string",
2757
+ "const": "COMPLIANCE"
2758
+ }
2759
+ },
2760
+ "required": [
2761
+ "attempt_id",
2762
+ "observed_at",
2763
+ "type",
2764
+ "version_id",
2765
+ "delete_marker",
2766
+ "stored_sha256",
2767
+ "readback_sha256",
2768
+ "readback_at",
2769
+ "effective_retain_until",
2770
+ "object_lock_mode"
2771
+ ],
2772
+ "additionalProperties": false
2773
+ },
2774
+ {
2775
+ "type": "object",
2776
+ "properties": {
2777
+ "attempt_id": {
2778
+ "type": "string",
2779
+ "minLength": 1
2780
+ },
2781
+ "observed_at": {
2782
+ "type": "string",
2783
+ "format": "date-time",
2784
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
2785
+ },
2786
+ "type": {
2787
+ "type": "string",
2788
+ "const": "delete_marker"
2789
+ },
2790
+ "version_id": {
2791
+ "type": "string",
2792
+ "minLength": 1
2793
+ },
2794
+ "delete_marker": {
2795
+ "type": "boolean",
2796
+ "const": true
2797
+ },
2798
+ "failure_code": {
2799
+ "type": "string",
2800
+ "const": "UNEXPECTED_DELETE_MARKER"
2801
+ }
2802
+ },
2803
+ "required": [
2804
+ "attempt_id",
2805
+ "observed_at",
2806
+ "type",
2807
+ "version_id",
2808
+ "delete_marker",
2809
+ "failure_code"
2810
+ ],
2811
+ "additionalProperties": false
2812
+ },
2813
+ {
2814
+ "anyOf": [
2815
+ {
2816
+ "type": "object",
2817
+ "properties": {
2818
+ "attempt_id": {
2819
+ "type": "string",
2820
+ "minLength": 1
2821
+ },
2822
+ "observed_at": {
2823
+ "type": "string",
2824
+ "format": "date-time",
2825
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
2826
+ },
2827
+ "type": {
2828
+ "type": "string",
2829
+ "const": "inventory_error"
2830
+ },
2831
+ "failure_code": {
2832
+ "type": "string",
2833
+ "enum": [
2834
+ "MISSING_VERSION",
2835
+ "INCOMPLETE_LISTING"
2836
+ ]
2837
+ },
2838
+ "version_id": {
2839
+ "type": "string",
2840
+ "minLength": 1
2841
+ }
2842
+ },
2843
+ "required": [
2844
+ "attempt_id",
2845
+ "observed_at",
2846
+ "type",
2847
+ "failure_code"
2848
+ ],
2849
+ "additionalProperties": false
2850
+ },
2851
+ {
2852
+ "type": "object",
2853
+ "properties": {
2854
+ "attempt_id": {
2855
+ "type": "string",
2856
+ "minLength": 1
2857
+ },
2858
+ "observed_at": {
2859
+ "type": "string",
2860
+ "format": "date-time",
2861
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$"
2862
+ },
2863
+ "type": {
2864
+ "type": "string",
2865
+ "const": "inventory_error"
2866
+ },
2867
+ "failure_code": {
2868
+ "type": "string",
2869
+ "enum": [
2870
+ "CONFLICTING_BYTES",
2871
+ "UNKNOWN_RETENTION"
2872
+ ]
2873
+ },
2874
+ "version_id": {
2875
+ "type": "string",
2876
+ "minLength": 1
2877
+ }
2878
+ },
2879
+ "required": [
2880
+ "attempt_id",
2881
+ "observed_at",
2882
+ "type",
2883
+ "failure_code",
2884
+ "version_id"
2885
+ ],
2886
+ "additionalProperties": false
2887
+ }
2888
+ ]
2889
+ }
2890
+ ]
2891
+ }
2892
+ }
2893
+ },
2894
+ "required": [
2895
+ "generation",
2896
+ "stored_bytes_b64url",
2897
+ "mirror_inventory_digest",
2898
+ "type",
2899
+ "schema",
2900
+ "final_sequence",
2901
+ "final_hash",
2902
+ "seal_hash",
2903
+ "mirror_verdict",
2904
+ "mirror_attempts"
2905
+ ],
2906
+ "additionalProperties": false
2907
+ }
2908
+ ],
2909
+ "description": "JSON Schema consumers must also reject complete coverage with marker/error arms or unequal readbacks, and verify exact stored bytes and all versions."
2910
+ }