@aikdna/kdna-core 0.37.0 → 0.37.1-rc.browser.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 (59) hide show
  1. package/README.md +12 -2
  2. package/package.json +6 -1
  3. package/src/public-contract/browser-native/generated-contract.json +3 -3
  4. package/src/public-contract/browser-native/sections/contract.json +2 -2
  5. package/src/public-contract/browser-protected/request.js +77 -0
  6. package/src/public-contract/browser-protected/state.js +200 -0
  7. package/src/public-contract/browserwhole06/contract.json +2 -2
  8. package/src/public-contract/creation06/contract.json +2 -2
  9. package/src/public-contract/creation06/generation-manifest.json +8 -8
  10. package/src/public-contract/execution06/contract.json +2 -2
  11. package/src/public-contract/execution06/generation-manifest.json +8 -8
  12. package/src/public-contract/generated-contract.json +3 -3
  13. package/src/public-contract/issuer-contract.generated.json +6 -6
  14. package/src/public-contract/issuer-validators.generated.js +7 -7
  15. package/src/public-contract/key-grant-issuer-node.d.ts +1 -1
  16. package/src/public-contract/package-set-contract.generated.json +5 -5
  17. package/src/public-contract/package-set-node.d.ts +1 -1
  18. package/src/public-contract/package-set-validators.generated.js +9 -9
  19. package/src/public-contract/packageset06/contract.json +2 -2
  20. package/src/public-contract/packageset06/generation-manifest.json +8 -8
  21. package/src/public-contract/protected-browser-contract/contract.json +11824 -0
  22. package/src/public-contract/protected-browser-contract/descriptor.json +5 -0
  23. package/src/public-contract/protected-browser-contract/schemas/BrowserProtectedAdmissionResult.json +443 -0
  24. package/src/public-contract/protected-browser-contract/schemas/BrowserProtectedAuthorityContext.json +939 -0
  25. package/src/public-contract/protected-browser-contract/schemas/BrowserProtectedBinding.json +156 -0
  26. package/src/public-contract/protected-browser-contract/schemas/BrowserProtectedCallResult.json +10489 -0
  27. package/src/public-contract/protected-browser-contract/schemas/BrowserProtectedDeliveryToken.json +10 -0
  28. package/src/public-contract/protected-browser-contract/schemas/BrowserProtectedExpansionHandle.json +320 -0
  29. package/src/public-contract/protected-browser-contract/schemas/BrowserProtectedHostContext.json +677 -0
  30. package/src/public-contract/protected-browser-contract/schemas/BrowserProtectedHostObservation.json +208 -0
  31. package/src/public-contract/protected-browser-contract/schemas/BrowserProtectedReadAuthority.json +10 -0
  32. package/src/public-contract/protected-browser-contract/schemas/BrowserProtectedReadResult.json +10795 -0
  33. package/src/public-contract/protected-browser-contract/schemas/BrowserProtectedRequest.json +539 -0
  34. package/src/public-contract/protected-browser-contract/schemas/BrowserProtectedRequestAdmission.json +1016 -0
  35. package/src/public-contract/protected-browser-contract/schemas/BrowserProtectedSignaturePolicy.json +35 -0
  36. package/src/public-contract/protected-browser-contract/schemas/BrowserProtectedSnapshotData.json +8451 -0
  37. package/src/public-contract/protected-browser-contract/schemas/BrowserProtectedTransportCommitResult.json +304 -0
  38. package/src/public-contract/protected-browser-contract/schemas/TrustedBrowserProtectedHost.json +10 -0
  39. package/src/public-contract/protected-browser-contract/types.d.ts +389 -0
  40. package/src/public-contract/protected-browser-contract/validators.cjs +223756 -0
  41. package/src/public-contract/protected-sections-browser.d.ts +11 -0
  42. package/src/public-contract/protected-sections-browser.js +22 -0
  43. package/src/public-contract/protected-sections-browser.mjs +2 -0
  44. package/src/public-contract/protected-source-contract.generated.json +8 -8
  45. package/src/public-contract/protected-source-node.d.ts +1 -1
  46. package/src/public-contract/protection-admission-browser.js +21 -3
  47. package/src/public-contract/protection-contract.generated.json +9 -9
  48. package/src/public-contract/protection-envelope-codec.js +16 -12
  49. package/src/public-contract/protection-node.d.ts +2 -2
  50. package/src/public-contract/protection-validators.generated.js +5 -5
  51. package/src/public-contract/retained/contract.json +2 -2
  52. package/src/public-contract/retained/generation-manifest.json +8 -8
  53. package/src/public-contract/retained-browser06/contract.json +2 -2
  54. package/src/public-contract/sectionbytes/contract.json +2 -2
  55. package/src/public-contract/sectionbytes/generation-manifest.json +8 -8
  56. package/src/public-contract/sections/contract.json +2 -2
  57. package/src/public-contract/sections/generation-manifest.json +8 -8
  58. package/src/public-contract/source-validators.generated.js +6 -6
  59. package/src/public-contract/source06/contract.json +2 -2
@@ -0,0 +1,1016 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "urn:kdna:candidate:protected-browser:BrowserProtectedRequestAdmission",
4
+ "title": "BrowserProtectedRequestAdmission",
5
+ "description": "Browser protected retained projection contract. Original base tuple and host-supplied-triple provenance; no native authentication claims.",
6
+ "$ref": "#/$defs/BrowserProtectedRequestAdmission",
7
+ "$defs": {
8
+ "AdmissionDiagnostic": {
9
+ "type": "object",
10
+ "properties": {
11
+ "stage": {
12
+ "const": "admission",
13
+ "type": "string"
14
+ },
15
+ "severity": {
16
+ "const": "error",
17
+ "type": "string"
18
+ },
19
+ "reason": {
20
+ "$ref": "#/$defs/AdmissionReason"
21
+ },
22
+ "field": {
23
+ "$ref": "#/$defs/AdmissionField"
24
+ }
25
+ },
26
+ "required": [
27
+ "stage",
28
+ "severity",
29
+ "reason",
30
+ "field"
31
+ ],
32
+ "additionalProperties": false
33
+ },
34
+ "AdmissionField": {
35
+ "type": "string",
36
+ "enum": [
37
+ "$candidate",
38
+ "$unknown",
39
+ "request_id",
40
+ "tuple",
41
+ "budget_bytes",
42
+ "mode",
43
+ "selection",
44
+ "handle",
45
+ "tuple.container",
46
+ "tuple.payload_profile",
47
+ "tuple.payload_version",
48
+ "tuple.core",
49
+ "tuple.ir",
50
+ "tuple.runtime",
51
+ "tuple.plan",
52
+ "tuple.host",
53
+ "tuple.trace",
54
+ "tuple.read",
55
+ "selection.asset_id",
56
+ "selection.asset_version",
57
+ "selection.judgment_id",
58
+ "handle.handle_id",
59
+ "handle.asset_id",
60
+ "handle.asset_version",
61
+ "handle.A",
62
+ "handle.C",
63
+ "handle.snapshot_id",
64
+ "handle.core_version",
65
+ "handle.ir_version",
66
+ "handle.read_version",
67
+ "handle.target",
68
+ "handle.scope",
69
+ "handle.issued_at",
70
+ "handle.expires_at",
71
+ "handle.host_id",
72
+ "handle.host_epoch",
73
+ "handle.anchor",
74
+ "handle.anchor.kind",
75
+ "handle.anchor.selection",
76
+ "handle.anchor.selection.asset_id",
77
+ "handle.anchor.selection.asset_version",
78
+ "handle.anchor.selection.judgment_id",
79
+ "handle.target.kind",
80
+ "handle.target.id",
81
+ "handle.target.asset",
82
+ "handle.target.asset.asset_id",
83
+ "handle.target.asset.asset_version",
84
+ "handle.target.asset.judgment_version"
85
+ ]
86
+ },
87
+ "AdmissionNoBodyControl": {
88
+ "type": "object",
89
+ "properties": {
90
+ "code": {
91
+ "type": "string",
92
+ "const": "READ_ADMISSION_RESPONSE_TOO_SMALL"
93
+ },
94
+ "semantic_cause": {
95
+ "type": "string",
96
+ "const": "READ_INPUT_INVALID"
97
+ },
98
+ "correlation": {
99
+ "$ref": "#/$defs/ReadCorrelation"
100
+ },
101
+ "body_bytes": {
102
+ "const": 0,
103
+ "type": "integer"
104
+ }
105
+ },
106
+ "required": [
107
+ "code",
108
+ "semantic_cause",
109
+ "correlation",
110
+ "body_bytes"
111
+ ],
112
+ "additionalProperties": false
113
+ },
114
+ "AdmissionReason": {
115
+ "type": "string",
116
+ "enum": [
117
+ "representation_not_object",
118
+ "unknown_field",
119
+ "missing_required",
120
+ "wrong_type",
121
+ "invalid_identifier",
122
+ "unsafe_integer",
123
+ "out_of_range",
124
+ "mode_shape_invalid"
125
+ ]
126
+ },
127
+ "AdmittedBrowserProtectedRequest": false,
128
+ "Assessment": {
129
+ "oneOf": [
130
+ {
131
+ "$ref": "#/$defs/AssessmentNotEvaluated"
132
+ },
133
+ {
134
+ "$ref": "#/$defs/AssessmentReported"
135
+ }
136
+ ]
137
+ },
138
+ "AssessmentKind": {
139
+ "type": "string",
140
+ "enum": [
141
+ "semantic_understanding",
142
+ "external_evaluation"
143
+ ]
144
+ },
145
+ "AssessmentNotEvaluated": {
146
+ "type": "object",
147
+ "properties": {
148
+ "state": {
149
+ "const": "not_evaluated",
150
+ "type": "string"
151
+ },
152
+ "kind": {
153
+ "const": null,
154
+ "type": "null"
155
+ },
156
+ "assessor_id": {
157
+ "const": null,
158
+ "type": "null"
159
+ },
160
+ "evidence_ref": {
161
+ "const": null,
162
+ "type": "null"
163
+ }
164
+ },
165
+ "required": [
166
+ "state",
167
+ "kind",
168
+ "assessor_id",
169
+ "evidence_ref"
170
+ ],
171
+ "additionalProperties": false
172
+ },
173
+ "AssessmentReported": {
174
+ "type": "object",
175
+ "properties": {
176
+ "state": {
177
+ "const": "reported",
178
+ "type": "string"
179
+ },
180
+ "kind": {
181
+ "$ref": "#/$defs/AssessmentKind"
182
+ },
183
+ "assessor_id": {
184
+ "$ref": "#/$defs/Identifier"
185
+ },
186
+ "evidence_ref": {
187
+ "$ref": "#/$defs/Identifier"
188
+ }
189
+ },
190
+ "required": [
191
+ "state",
192
+ "kind",
193
+ "assessor_id",
194
+ "evidence_ref"
195
+ ],
196
+ "additionalProperties": false
197
+ },
198
+ "Boolean": {
199
+ "type": "boolean"
200
+ },
201
+ "BrowserProtectedRejectedEnvelope": {
202
+ "type": "object",
203
+ "properties": {
204
+ "contract": {
205
+ "type": "string",
206
+ "const": "kdna.protected-browser-read/0.1.0-candidate"
207
+ },
208
+ "request_id": {
209
+ "$ref": "#/$defs/Identifier"
210
+ },
211
+ "status": {
212
+ "const": "rejected",
213
+ "type": "string"
214
+ },
215
+ "tuple": {
216
+ "anyOf": [
217
+ {
218
+ "$ref": "#/$defs/VersionTuple"
219
+ },
220
+ {
221
+ "type": "null"
222
+ }
223
+ ]
224
+ },
225
+ "asset": {
226
+ "const": null,
227
+ "type": "null"
228
+ },
229
+ "snapshot_id": {
230
+ "const": null,
231
+ "type": "null"
232
+ },
233
+ "digests": {
234
+ "const": null,
235
+ "type": "null"
236
+ },
237
+ "content": {
238
+ "const": null,
239
+ "type": "null"
240
+ },
241
+ "states": {
242
+ "$ref": "#/$defs/ResponsibilityStates"
243
+ },
244
+ "diagnostics": {
245
+ "type": "array",
246
+ "items": {
247
+ "$ref": "#/$defs/ReadDiagnostic"
248
+ },
249
+ "minItems": 1,
250
+ "maxItems": 1
251
+ },
252
+ "omissions": {
253
+ "type": "array",
254
+ "items": {
255
+ "$ref": "#/$defs/Omission"
256
+ },
257
+ "maxItems": 0
258
+ },
259
+ "assessment": {
260
+ "$ref": "#/$defs/Assessment"
261
+ },
262
+ "receipt": {
263
+ "$ref": "#/$defs/RejectedReceipt"
264
+ },
265
+ "budget": {
266
+ "$ref": "#/$defs/ReadBudget"
267
+ }
268
+ },
269
+ "required": [
270
+ "contract",
271
+ "request_id",
272
+ "status",
273
+ "tuple",
274
+ "asset",
275
+ "snapshot_id",
276
+ "digests",
277
+ "content",
278
+ "states",
279
+ "diagnostics",
280
+ "omissions",
281
+ "assessment",
282
+ "receipt",
283
+ "budget"
284
+ ],
285
+ "additionalProperties": false
286
+ },
287
+ "BrowserProtectedRequestAdmission": {
288
+ "oneOf": [
289
+ {
290
+ "$ref": "#/$defs/BrowserProtectedRequestAdmitted"
291
+ },
292
+ {
293
+ "$ref": "#/$defs/Call_admission_rejection"
294
+ },
295
+ {
296
+ "$ref": "#/$defs/Call_no_body_control"
297
+ },
298
+ {
299
+ "$ref": "#/$defs/Call_transport_failure"
300
+ },
301
+ {
302
+ "$ref": "#/$defs/BrowserProtectedRequestRejectedCall"
303
+ }
304
+ ]
305
+ },
306
+ "BrowserProtectedRequestAdmitted": {
307
+ "type": "object",
308
+ "properties": {
309
+ "channel": {
310
+ "type": "string",
311
+ "const": "admitted_request"
312
+ },
313
+ "request": {
314
+ "$ref": "#/$defs/AdmittedBrowserProtectedRequest"
315
+ }
316
+ },
317
+ "required": [
318
+ "channel",
319
+ "request"
320
+ ],
321
+ "additionalProperties": false
322
+ },
323
+ "BrowserProtectedRequestRejectedCall": {
324
+ "type": "object",
325
+ "properties": {
326
+ "channel": {
327
+ "const": "read_envelope",
328
+ "type": "string"
329
+ },
330
+ "envelope": {
331
+ "$ref": "#/$defs/BrowserProtectedRejectedEnvelope"
332
+ },
333
+ "admission_rejection": {
334
+ "const": null,
335
+ "type": "null"
336
+ },
337
+ "control": {
338
+ "const": null,
339
+ "type": "null"
340
+ },
341
+ "transport_failure": {
342
+ "const": null,
343
+ "type": "null"
344
+ }
345
+ },
346
+ "required": [
347
+ "channel",
348
+ "envelope",
349
+ "admission_rejection",
350
+ "control",
351
+ "transport_failure"
352
+ ],
353
+ "additionalProperties": false
354
+ },
355
+ "Call_admission_rejection": {
356
+ "type": "object",
357
+ "properties": {
358
+ "channel": {
359
+ "const": "admission_rejection",
360
+ "type": "string"
361
+ },
362
+ "envelope": {
363
+ "const": null,
364
+ "type": "null"
365
+ },
366
+ "admission_rejection": {
367
+ "$ref": "#/$defs/ReadAdmissionRejection"
368
+ },
369
+ "control": {
370
+ "const": null,
371
+ "type": "null"
372
+ },
373
+ "transport_failure": {
374
+ "const": null,
375
+ "type": "null"
376
+ }
377
+ },
378
+ "required": [
379
+ "channel",
380
+ "envelope",
381
+ "admission_rejection",
382
+ "control",
383
+ "transport_failure"
384
+ ],
385
+ "additionalProperties": false
386
+ },
387
+ "Call_no_body_control": {
388
+ "type": "object",
389
+ "properties": {
390
+ "channel": {
391
+ "const": "no_body_control",
392
+ "type": "string"
393
+ },
394
+ "envelope": {
395
+ "const": null,
396
+ "type": "null"
397
+ },
398
+ "admission_rejection": {
399
+ "const": null,
400
+ "type": "null"
401
+ },
402
+ "control": {
403
+ "$ref": "#/$defs/ReadNoBodyControl"
404
+ },
405
+ "transport_failure": {
406
+ "const": null,
407
+ "type": "null"
408
+ }
409
+ },
410
+ "required": [
411
+ "channel",
412
+ "envelope",
413
+ "admission_rejection",
414
+ "control",
415
+ "transport_failure"
416
+ ],
417
+ "additionalProperties": false
418
+ },
419
+ "Call_transport_failure": {
420
+ "type": "object",
421
+ "properties": {
422
+ "channel": {
423
+ "const": "transport_failure",
424
+ "type": "string"
425
+ },
426
+ "envelope": {
427
+ "const": null,
428
+ "type": "null"
429
+ },
430
+ "admission_rejection": {
431
+ "const": null,
432
+ "type": "null"
433
+ },
434
+ "control": {
435
+ "const": null,
436
+ "type": "null"
437
+ },
438
+ "transport_failure": {
439
+ "$ref": "#/$defs/ReadTransportFailure"
440
+ }
441
+ },
442
+ "required": [
443
+ "channel",
444
+ "envelope",
445
+ "admission_rejection",
446
+ "control",
447
+ "transport_failure"
448
+ ],
449
+ "additionalProperties": false
450
+ },
451
+ "ConfirmationState": {
452
+ "type": "string",
453
+ "enum": [
454
+ "not_evaluated",
455
+ "claimed_unverified",
456
+ "verified",
457
+ "rejected"
458
+ ]
459
+ },
460
+ "ControlBudget": {
461
+ "type": "object",
462
+ "properties": {
463
+ "limit_bytes": {
464
+ "$ref": "#/$defs/UInt"
465
+ },
466
+ "actual_bytes": {
467
+ "$ref": "#/$defs/FixedByteCount"
468
+ }
469
+ },
470
+ "required": [
471
+ "limit_bytes",
472
+ "actual_bytes"
473
+ ],
474
+ "additionalProperties": false
475
+ },
476
+ "EnvelopeNoBodyControl": {
477
+ "type": "object",
478
+ "properties": {
479
+ "code": {
480
+ "type": "string",
481
+ "const": "READ_RESPONSE_BUDGET_TOO_SMALL"
482
+ },
483
+ "semantic_cause": {
484
+ "anyOf": [
485
+ {
486
+ "$ref": "#/$defs/ReadDiagnosticCode"
487
+ },
488
+ {
489
+ "type": "null"
490
+ }
491
+ ]
492
+ },
493
+ "correlation": {
494
+ "$ref": "#/$defs/ReadCorrelation"
495
+ },
496
+ "body_bytes": {
497
+ "const": 0,
498
+ "type": "integer"
499
+ }
500
+ },
501
+ "required": [
502
+ "code",
503
+ "semantic_cause",
504
+ "correlation",
505
+ "body_bytes"
506
+ ],
507
+ "additionalProperties": false
508
+ },
509
+ "FixedByteCount": {
510
+ "type": "string",
511
+ "pattern": "^[0-9]{16}$"
512
+ },
513
+ "Identifier": {
514
+ "type": "string",
515
+ "minLength": 1,
516
+ "maxLength": 256,
517
+ "pattern": "^[^\\u0000-\\u001f\\u007f-\\u009f\\ud800-\\udfff]+$"
518
+ },
519
+ "InterpretationState": {
520
+ "type": "string",
521
+ "enum": [
522
+ "not_evaluated",
523
+ "complete",
524
+ "degraded",
525
+ "blocked"
526
+ ]
527
+ },
528
+ "Omission": {
529
+ "type": "object",
530
+ "properties": {
531
+ "state": {
532
+ "const": "explicitly_omitted",
533
+ "type": "string"
534
+ },
535
+ "target": {
536
+ "$ref": "#/$defs/Identifier"
537
+ },
538
+ "field": {
539
+ "$ref": "#/$defs/Text"
540
+ },
541
+ "reason": {
542
+ "$ref": "#/$defs/OmissionReason"
543
+ },
544
+ "expandable": {
545
+ "$ref": "#/$defs/Boolean"
546
+ },
547
+ "handle_id": {
548
+ "anyOf": [
549
+ {
550
+ "$ref": "#/$defs/Identifier"
551
+ },
552
+ {
553
+ "type": "null"
554
+ }
555
+ ]
556
+ }
557
+ },
558
+ "required": [
559
+ "state",
560
+ "target",
561
+ "field",
562
+ "reason",
563
+ "expandable",
564
+ "handle_id"
565
+ ],
566
+ "additionalProperties": false
567
+ },
568
+ "OmissionReason": {
569
+ "type": "string",
570
+ "enum": [
571
+ "not_requested",
572
+ "not_in_mode",
573
+ "outside_selection"
574
+ ]
575
+ },
576
+ "ReadAdmissionRejection": {
577
+ "type": "object",
578
+ "properties": {
579
+ "contract": {
580
+ "const": "kdna.read-admission/0.1.0",
581
+ "type": "string"
582
+ },
583
+ "code": {
584
+ "const": "READ_INPUT_INVALID",
585
+ "type": "string"
586
+ },
587
+ "diagnostic": {
588
+ "$ref": "#/$defs/AdmissionDiagnostic"
589
+ },
590
+ "correlation": {
591
+ "$ref": "#/$defs/ReadCorrelation"
592
+ },
593
+ "control_budget": {
594
+ "$ref": "#/$defs/ControlBudget"
595
+ }
596
+ },
597
+ "required": [
598
+ "contract",
599
+ "code",
600
+ "diagnostic",
601
+ "correlation",
602
+ "control_budget"
603
+ ],
604
+ "additionalProperties": false
605
+ },
606
+ "ReadBudget": {
607
+ "type": "object",
608
+ "properties": {
609
+ "limit_bytes": {
610
+ "$ref": "#/$defs/UInt"
611
+ },
612
+ "required_bytes": {
613
+ "$ref": "#/$defs/FixedByteCount"
614
+ },
615
+ "actual_bytes": {
616
+ "$ref": "#/$defs/FixedByteCount"
617
+ }
618
+ },
619
+ "required": [
620
+ "limit_bytes",
621
+ "required_bytes",
622
+ "actual_bytes"
623
+ ],
624
+ "additionalProperties": false
625
+ },
626
+ "ReadCorrelation": {
627
+ "oneOf": [
628
+ {
629
+ "$ref": "#/$defs/ValidatedCorrelation"
630
+ },
631
+ {
632
+ "$ref": "#/$defs/UnavailableCorrelation"
633
+ }
634
+ ]
635
+ },
636
+ "ReadDiagnostic": {
637
+ "type": "object",
638
+ "properties": {
639
+ "code": {
640
+ "$ref": "#/$defs/ReadDiagnosticCode"
641
+ },
642
+ "stage": {
643
+ "$ref": "#/$defs/ReadStage"
644
+ },
645
+ "severity": {
646
+ "type": "string",
647
+ "enum": [
648
+ "error",
649
+ "warning"
650
+ ]
651
+ },
652
+ "subject": {
653
+ "anyOf": [
654
+ {
655
+ "$ref": "#/$defs/Identifier"
656
+ },
657
+ {
658
+ "type": "null"
659
+ }
660
+ ]
661
+ },
662
+ "field": {
663
+ "anyOf": [
664
+ {
665
+ "$ref": "#/$defs/Text"
666
+ },
667
+ {
668
+ "type": "null"
669
+ }
670
+ ]
671
+ }
672
+ },
673
+ "required": [
674
+ "code",
675
+ "stage",
676
+ "severity",
677
+ "subject",
678
+ "field"
679
+ ],
680
+ "additionalProperties": false
681
+ },
682
+ "ReadDiagnosticCode": {
683
+ "type": "string",
684
+ "enum": [
685
+ "READ_INPUT_INVALID",
686
+ "READ_SNAPSHOT_UNATTESTED",
687
+ "READ_CORE_CAPABILITY_UNAVAILABLE",
688
+ "READ_UNSUPPORTED_VERSION",
689
+ "READ_MIXED_VERSION_TUPLE",
690
+ "READ_CORE_INVALID",
691
+ "READ_INTERPRETATION_INCOMPLETE",
692
+ "READ_STATIC_POLICY_INVALID",
693
+ "READ_ASSET_MISMATCH",
694
+ "READ_ASSET_VERSION_MISMATCH",
695
+ "READ_SELECTION_NOT_FOUND",
696
+ "READ_SELECTION_AMBIGUOUS",
697
+ "READ_HANDLE_UNTRUSTED",
698
+ "READ_HANDLE_VERSION_MISMATCH",
699
+ "READ_HANDLE_STALE",
700
+ "READ_HANDLE_ASSET_MISMATCH",
701
+ "READ_HANDLE_SCOPE_MISMATCH",
702
+ "READ_HOST_CONTEXT_UNTRUSTED",
703
+ "READ_HOST_EPOCH_MISMATCH",
704
+ "READ_HOST_TIME_INVALID",
705
+ "READ_HANDLE_EXPIRED",
706
+ "READ_HOST_CONTEXT_EXPIRED",
707
+ "READ_HOST_DENIED",
708
+ "READ_SCOPE_DENIED",
709
+ "READ_PROJECTION_INVALID",
710
+ "READ_BUDGET_INSUFFICIENT",
711
+ "READ_COMPONENT_DECLARATION_INVALID",
712
+ "READ_COMPONENT_CONTENT_INVALID",
713
+ "READ_COMPONENT_REFERENCE_INVALID",
714
+ "READ_COMPONENT_GRAPH_CYCLE",
715
+ "READ_COMPONENT_LIMIT_EXCEEDED",
716
+ "READ_COMPONENT_BINDING_INVALID",
717
+ "READ_COMPONENT_ADOPTION_INVALID",
718
+ "READ_METHOD_PRESENCE_INVALID",
719
+ "READ_R2_STRUCTURE_INVALID",
720
+ "READ_R2_REFERENCE_INVALID",
721
+ "READ_R2_METHOD_INVALID",
722
+ "READ_R2_PLAN_INVALID",
723
+ "READ_R2_POLICY_INVALID",
724
+ "READ_R2_SCOPE_INVALID",
725
+ "READ_R2_EXAMPLE_INVALID",
726
+ "READ_R2_HISTORY_INVALID",
727
+ "READ_UNSUPPORTED_CRITICAL",
728
+ "READ_UNRESOLVED_EXTERNAL"
729
+ ]
730
+ },
731
+ "ReadNoBodyControl": {
732
+ "oneOf": [
733
+ {
734
+ "$ref": "#/$defs/AdmissionNoBodyControl"
735
+ },
736
+ {
737
+ "$ref": "#/$defs/EnvelopeNoBodyControl"
738
+ }
739
+ ]
740
+ },
741
+ "ReadPermission": {
742
+ "type": "string",
743
+ "enum": [
744
+ "not_evaluated",
745
+ "allowed",
746
+ "denied"
747
+ ]
748
+ },
749
+ "ReadStage": {
750
+ "type": "string",
751
+ "enum": [
752
+ "input",
753
+ "version",
754
+ "core",
755
+ "selection",
756
+ "handle",
757
+ "host",
758
+ "projection",
759
+ "budget"
760
+ ]
761
+ },
762
+ "ReadTransportFailure": {
763
+ "type": "object",
764
+ "properties": {
765
+ "code": {
766
+ "const": "READ_TRANSPORT_FAILURE",
767
+ "type": "string"
768
+ },
769
+ "semantic_cause": {
770
+ "anyOf": [
771
+ {
772
+ "$ref": "#/$defs/ReadDiagnosticCode"
773
+ },
774
+ {
775
+ "type": "null"
776
+ }
777
+ ]
778
+ },
779
+ "correlation": {
780
+ "$ref": "#/$defs/ReadCorrelation"
781
+ },
782
+ "delivery": {
783
+ "const": "not_confirmed",
784
+ "type": "string"
785
+ }
786
+ },
787
+ "required": [
788
+ "code",
789
+ "semantic_cause",
790
+ "correlation",
791
+ "delivery"
792
+ ],
793
+ "additionalProperties": false
794
+ },
795
+ "RejectedReceipt": {
796
+ "type": "object",
797
+ "properties": {
798
+ "receipt_id": {
799
+ "$ref": "#/$defs/Identifier"
800
+ },
801
+ "request_id": {
802
+ "$ref": "#/$defs/Identifier"
803
+ },
804
+ "snapshot_id": {
805
+ "anyOf": [
806
+ {
807
+ "$ref": "#/$defs/Identifier"
808
+ },
809
+ {
810
+ "type": "null"
811
+ }
812
+ ]
813
+ },
814
+ "host_id": {
815
+ "anyOf": [
816
+ {
817
+ "$ref": "#/$defs/Identifier"
818
+ },
819
+ {
820
+ "type": "null"
821
+ }
822
+ ]
823
+ },
824
+ "host_epoch": {
825
+ "anyOf": [
826
+ {
827
+ "$ref": "#/$defs/Identifier"
828
+ },
829
+ {
830
+ "type": "null"
831
+ }
832
+ ]
833
+ },
834
+ "decision_id": {
835
+ "anyOf": [
836
+ {
837
+ "$ref": "#/$defs/Identifier"
838
+ },
839
+ {
840
+ "type": "null"
841
+ }
842
+ ]
843
+ },
844
+ "disclosed_at": {
845
+ "type": "null",
846
+ "const": null
847
+ },
848
+ "delivery": {
849
+ "type": "string",
850
+ "const": "not_delivered"
851
+ }
852
+ },
853
+ "required": [
854
+ "receipt_id",
855
+ "request_id",
856
+ "snapshot_id",
857
+ "host_id",
858
+ "host_epoch",
859
+ "decision_id",
860
+ "disclosed_at",
861
+ "delivery"
862
+ ],
863
+ "additionalProperties": false
864
+ },
865
+ "ResponsibilityStates": {
866
+ "type": "object",
867
+ "properties": {
868
+ "core": {
869
+ "$ref": "#/$defs/TechnicalState"
870
+ },
871
+ "interpretation": {
872
+ "$ref": "#/$defs/InterpretationState"
873
+ },
874
+ "writer": {
875
+ "$ref": "#/$defs/WriterState"
876
+ },
877
+ "confirmation": {
878
+ "$ref": "#/$defs/ConfirmationState"
879
+ },
880
+ "read_permission": {
881
+ "$ref": "#/$defs/ReadPermission"
882
+ },
883
+ "action_authorization": {
884
+ "const": "not_evaluated",
885
+ "type": "string"
886
+ }
887
+ },
888
+ "required": [
889
+ "core",
890
+ "interpretation",
891
+ "writer",
892
+ "confirmation",
893
+ "read_permission",
894
+ "action_authorization"
895
+ ],
896
+ "additionalProperties": false
897
+ },
898
+ "TechnicalState": {
899
+ "type": "string",
900
+ "enum": [
901
+ "not_evaluated",
902
+ "valid",
903
+ "invalid"
904
+ ]
905
+ },
906
+ "Text": {
907
+ "type": "string"
908
+ },
909
+ "UInt": {
910
+ "type": "integer",
911
+ "minimum": 0,
912
+ "maximum": 9007199254740991
913
+ },
914
+ "UnavailableCorrelation": {
915
+ "type": "object",
916
+ "properties": {
917
+ "state": {
918
+ "const": "unavailable",
919
+ "type": "string"
920
+ },
921
+ "request_id": {
922
+ "const": null,
923
+ "type": "null"
924
+ }
925
+ },
926
+ "required": [
927
+ "state",
928
+ "request_id"
929
+ ],
930
+ "additionalProperties": false
931
+ },
932
+ "ValidatedCorrelation": {
933
+ "type": "object",
934
+ "properties": {
935
+ "state": {
936
+ "const": "validated",
937
+ "type": "string"
938
+ },
939
+ "request_id": {
940
+ "$ref": "#/$defs/Identifier"
941
+ }
942
+ },
943
+ "required": [
944
+ "state",
945
+ "request_id"
946
+ ],
947
+ "additionalProperties": false
948
+ },
949
+ "VersionTuple": {
950
+ "type": "object",
951
+ "properties": {
952
+ "container": {
953
+ "const": "0.5.0",
954
+ "type": "string"
955
+ },
956
+ "payload_profile": {
957
+ "const": "kdna.payload.judgment",
958
+ "type": "string"
959
+ },
960
+ "payload_version": {
961
+ "const": "0.5.1",
962
+ "type": "string"
963
+ },
964
+ "core": {
965
+ "const": "kdna.core/0.8.2",
966
+ "type": "string"
967
+ },
968
+ "ir": {
969
+ "const": "kdna.canonical-ir/0.6.1",
970
+ "type": "string"
971
+ },
972
+ "runtime": {
973
+ "const": "kdna.runtime-capsule/0.3.1",
974
+ "type": "string"
975
+ },
976
+ "plan": {
977
+ "const": "kdna.consumption-plan/0.3.1",
978
+ "type": "string"
979
+ },
980
+ "host": {
981
+ "const": "kdna.agent-host/0.3.1",
982
+ "type": "string"
983
+ },
984
+ "trace": {
985
+ "const": "kdna.judgment-trace/0.3.1",
986
+ "type": "string"
987
+ },
988
+ "read": {
989
+ "const": "kdna.read/0.6.4",
990
+ "type": "string"
991
+ }
992
+ },
993
+ "required": [
994
+ "container",
995
+ "payload_profile",
996
+ "payload_version",
997
+ "core",
998
+ "ir",
999
+ "runtime",
1000
+ "plan",
1001
+ "host",
1002
+ "trace",
1003
+ "read"
1004
+ ],
1005
+ "additionalProperties": false
1006
+ },
1007
+ "WriterState": {
1008
+ "type": "string",
1009
+ "enum": [
1010
+ "not_evaluated",
1011
+ "sufficient",
1012
+ "insufficient"
1013
+ ]
1014
+ }
1015
+ }
1016
+ }