@tangleai/outcomes 0.24.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 (65) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/LICENSE +21 -0
  3. package/README.md +142 -0
  4. package/docs/ADAPTERS.md +215 -0
  5. package/package.json +80 -0
  6. package/schemas/direction-delta.schema.json +55 -0
  7. package/schemas/exact-match.schema.json +88 -0
  8. package/schemas/outcomes.contract.json +4084 -0
  9. package/schemas/outcomes.schema.json +3936 -0
  10. package/src/adapters/direction-delta.d.ts +2 -0
  11. package/src/adapters/direction-delta.gen.d.ts +13 -0
  12. package/src/adapters/direction-delta.gen.js +3 -0
  13. package/src/adapters/direction-delta.js +29 -0
  14. package/src/adapters/exact-match.d.ts +2 -0
  15. package/src/adapters/exact-match.gen.d.ts +39 -0
  16. package/src/adapters/exact-match.gen.js +3 -0
  17. package/src/adapters/exact-match.js +40 -0
  18. package/src/adapters.d.ts +50 -0
  19. package/src/adapters.js +1 -0
  20. package/src/contract.d.ts +3285 -0
  21. package/src/contract.js +6 -0
  22. package/src/domain.d.ts +19 -0
  23. package/src/domain.js +45 -0
  24. package/src/errors.d.ts +23 -0
  25. package/src/errors.js +11 -0
  26. package/src/evaluation.d.ts +49 -0
  27. package/src/evaluation.js +174 -0
  28. package/src/handlers.d.ts +15 -0
  29. package/src/handlers.js +18 -0
  30. package/src/history.d.ts +4 -0
  31. package/src/history.js +56 -0
  32. package/src/identity.d.ts +9 -0
  33. package/src/identity.js +17 -0
  34. package/src/index.d.ts +15 -0
  35. package/src/index.js +9 -0
  36. package/src/operations.d.ts +16 -0
  37. package/src/operations.js +108 -0
  38. package/src/outcomes.contracts.gen.d.ts +1767 -0
  39. package/src/outcomes.contracts.gen.js +3 -0
  40. package/src/persistence.d.ts +10 -0
  41. package/src/persistence.js +88 -0
  42. package/src/projection.d.ts +13 -0
  43. package/src/projection.js +59 -0
  44. package/src/promotion.d.ts +17 -0
  45. package/src/promotion.js +96 -0
  46. package/src/proposal-operation.d.ts +17 -0
  47. package/src/proposal-operation.js +110 -0
  48. package/src/proposer.d.ts +107 -0
  49. package/src/proposer.js +89 -0
  50. package/src/refinement.d.ts +40 -0
  51. package/src/refinement.js +167 -0
  52. package/src/resolution.d.ts +12 -0
  53. package/src/resolution.js +62 -0
  54. package/src/schema.d.ts +8 -0
  55. package/src/schema.js +34 -0
  56. package/src/scoring.d.ts +15 -0
  57. package/src/scoring.js +37 -0
  58. package/src/service-context.d.ts +50 -0
  59. package/src/service-context.js +81 -0
  60. package/src/service.d.ts +22 -0
  61. package/src/service.js +159 -0
  62. package/src/store.d.ts +42 -0
  63. package/src/store.js +70 -0
  64. package/src/transitions.d.ts +7 -0
  65. package/src/transitions.js +56 -0
@@ -0,0 +1,4084 @@
1
+ {
2
+ "$contract": "0.1",
3
+ "id": "tangle-outcomes",
4
+ "version": "1",
5
+ "$defs": {
6
+ "json": {
7
+ "anyOf": [
8
+ {
9
+ "type": "null"
10
+ },
11
+ {
12
+ "type": "string"
13
+ },
14
+ {
15
+ "type": "number"
16
+ },
17
+ {
18
+ "type": "boolean"
19
+ },
20
+ {
21
+ "type": "array",
22
+ "items": {
23
+ "$ref": "#/$defs/json"
24
+ },
25
+ "minItems": 0
26
+ },
27
+ {
28
+ "type": "object",
29
+ "additionalProperties": {
30
+ "$ref": "#/$defs/json"
31
+ }
32
+ }
33
+ ]
34
+ },
35
+ "scope": {
36
+ "type": "object",
37
+ "properties": {
38
+ "namespace": {
39
+ "type": "string",
40
+ "minLength": 1,
41
+ "pattern": "\\S"
42
+ },
43
+ "domain": {
44
+ "type": "string",
45
+ "minLength": 1,
46
+ "pattern": "\\S"
47
+ },
48
+ "subject": {
49
+ "type": "string",
50
+ "minLength": 1,
51
+ "pattern": "\\S"
52
+ }
53
+ },
54
+ "required": [
55
+ "namespace",
56
+ "domain",
57
+ "subject"
58
+ ],
59
+ "additionalProperties": false
60
+ },
61
+ "head": {
62
+ "type": "object",
63
+ "properties": {
64
+ "versionId": {
65
+ "anyOf": [
66
+ {
67
+ "type": "string",
68
+ "pattern": "^[a-f0-9]{64}$"
69
+ },
70
+ {
71
+ "type": "null"
72
+ }
73
+ ]
74
+ },
75
+ "revision": {
76
+ "type": "integer",
77
+ "minimum": 0
78
+ }
79
+ },
80
+ "required": [
81
+ "versionId",
82
+ "revision"
83
+ ],
84
+ "additionalProperties": false
85
+ },
86
+ "issue": {
87
+ "type": "object",
88
+ "properties": {
89
+ "code": {
90
+ "enum": [
91
+ "OUTC1001",
92
+ "OUTC1002",
93
+ "OUTC1003",
94
+ "OUTC1004",
95
+ "OUTC1005",
96
+ "OUTC1006",
97
+ "OUTC1007",
98
+ "OUTC1008",
99
+ "OUTC1009",
100
+ "OUTC1010",
101
+ "OUTC1011",
102
+ "OUTC1012",
103
+ "OUTC1013",
104
+ "OUTC1014",
105
+ "OUTC1015",
106
+ "OUTC1016",
107
+ "OUTC1017",
108
+ "OUTC1018",
109
+ "OUTC1019"
110
+ ]
111
+ },
112
+ "path": {
113
+ "type": "string"
114
+ },
115
+ "detail": {
116
+ "type": "string",
117
+ "minLength": 1,
118
+ "pattern": "\\S"
119
+ },
120
+ "retryable": {
121
+ "type": "boolean"
122
+ }
123
+ },
124
+ "required": [
125
+ "code",
126
+ "path",
127
+ "detail",
128
+ "retryable"
129
+ ],
130
+ "additionalProperties": false
131
+ },
132
+ "result": {
133
+ "oneOf": [
134
+ {
135
+ "type": "object",
136
+ "properties": {
137
+ "ok": {
138
+ "const": true
139
+ },
140
+ "value": {
141
+ "$ref": "#/$defs/json"
142
+ },
143
+ "replayed": {
144
+ "type": "boolean"
145
+ },
146
+ "writes": {
147
+ "type": "integer",
148
+ "minimum": 0
149
+ }
150
+ },
151
+ "required": [
152
+ "ok",
153
+ "value",
154
+ "replayed",
155
+ "writes"
156
+ ],
157
+ "additionalProperties": false
158
+ },
159
+ {
160
+ "type": "object",
161
+ "properties": {
162
+ "ok": {
163
+ "const": false
164
+ },
165
+ "issues": {
166
+ "type": "array",
167
+ "items": {
168
+ "$ref": "#/$defs/issue"
169
+ },
170
+ "minItems": 1
171
+ }
172
+ },
173
+ "required": [
174
+ "ok",
175
+ "issues"
176
+ ],
177
+ "additionalProperties": false
178
+ }
179
+ ]
180
+ },
181
+ "policy": {
182
+ "type": "object",
183
+ "properties": {
184
+ "maxVersions": {
185
+ "type": "integer",
186
+ "minimum": 1
187
+ },
188
+ "maxPayloadBytes": {
189
+ "type": "integer",
190
+ "minimum": 1
191
+ },
192
+ "maxOperations": {
193
+ "type": "integer",
194
+ "minimum": 1
195
+ },
196
+ "maxChangedLeaves": {
197
+ "type": "integer",
198
+ "minimum": 1
199
+ },
200
+ "maxReflectionBytes": {
201
+ "type": "integer",
202
+ "minimum": 1
203
+ }
204
+ },
205
+ "required": [
206
+ "maxVersions",
207
+ "maxPayloadBytes",
208
+ "maxOperations",
209
+ "maxChangedLeaves",
210
+ "maxReflectionBytes"
211
+ ],
212
+ "additionalProperties": false
213
+ },
214
+ "adapterIdentity": {
215
+ "type": "object",
216
+ "properties": {
217
+ "id": {
218
+ "type": "string",
219
+ "minLength": 1,
220
+ "pattern": "\\S"
221
+ },
222
+ "revision": {
223
+ "type": "string",
224
+ "pattern": "^[a-f0-9]{64}$"
225
+ },
226
+ "inputSchema": {
227
+ "type": "string",
228
+ "pattern": "^[a-f0-9]{64}$"
229
+ },
230
+ "outputSchema": {
231
+ "type": "string",
232
+ "pattern": "^[a-f0-9]{64}$"
233
+ },
234
+ "resolutionSchema": {
235
+ "type": "string",
236
+ "pattern": "^[a-f0-9]{64}$"
237
+ },
238
+ "artifactSchema": {
239
+ "type": "string",
240
+ "pattern": "^[a-f0-9]{64}$"
241
+ },
242
+ "scorerRevision": {
243
+ "type": "string",
244
+ "pattern": "^[a-f0-9]{64}$"
245
+ }
246
+ },
247
+ "required": [
248
+ "id",
249
+ "revision",
250
+ "inputSchema",
251
+ "outputSchema",
252
+ "resolutionSchema",
253
+ "artifactSchema",
254
+ "scorerRevision"
255
+ ],
256
+ "additionalProperties": false
257
+ },
258
+ "configuration": {
259
+ "oneOf": [
260
+ {
261
+ "type": "object",
262
+ "properties": {
263
+ "kind": {
264
+ "const": "scripted"
265
+ },
266
+ "revision": {
267
+ "type": "string",
268
+ "pattern": "^[a-f0-9]{64}$"
269
+ }
270
+ },
271
+ "required": [
272
+ "kind",
273
+ "revision"
274
+ ],
275
+ "additionalProperties": false
276
+ },
277
+ {
278
+ "type": "object",
279
+ "properties": {
280
+ "kind": {
281
+ "const": "model"
282
+ },
283
+ "identityId": {
284
+ "type": "string",
285
+ "pattern": "^[a-f0-9]{64}$"
286
+ }
287
+ },
288
+ "required": [
289
+ "kind",
290
+ "identityId"
291
+ ],
292
+ "additionalProperties": false
293
+ }
294
+ ]
295
+ },
296
+ "source": {
297
+ "type": "object",
298
+ "properties": {
299
+ "sourceId": {
300
+ "type": "string",
301
+ "minLength": 1,
302
+ "pattern": "\\S"
303
+ },
304
+ "scopeId": {
305
+ "type": "string",
306
+ "pattern": "^[a-f0-9]{64}$"
307
+ },
308
+ "subject": {
309
+ "type": "string",
310
+ "minLength": 1,
311
+ "pattern": "\\S"
312
+ },
313
+ "issuer": {
314
+ "type": "string",
315
+ "minLength": 1,
316
+ "pattern": "\\S"
317
+ },
318
+ "observedAt": {
319
+ "type": "string",
320
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
321
+ },
322
+ "payload": {
323
+ "$ref": "#/$defs/json"
324
+ },
325
+ "digest": {
326
+ "type": "string",
327
+ "pattern": "^[a-f0-9]{64}$"
328
+ },
329
+ "decisionId": {
330
+ "anyOf": [
331
+ {
332
+ "$ref": "#/$defs/hash"
333
+ },
334
+ {
335
+ "type": "null"
336
+ }
337
+ ]
338
+ }
339
+ },
340
+ "required": [
341
+ "sourceId",
342
+ "scopeId",
343
+ "subject",
344
+ "issuer",
345
+ "observedAt",
346
+ "payload",
347
+ "digest",
348
+ "decisionId"
349
+ ],
350
+ "additionalProperties": false
351
+ },
352
+ "sourceRef": {
353
+ "type": "object",
354
+ "properties": {
355
+ "sourceId": {
356
+ "type": "string",
357
+ "minLength": 1,
358
+ "pattern": "\\S"
359
+ },
360
+ "digest": {
361
+ "type": "string",
362
+ "pattern": "^[a-f0-9]{64}$"
363
+ }
364
+ },
365
+ "required": [
366
+ "sourceId",
367
+ "digest"
368
+ ],
369
+ "additionalProperties": false
370
+ },
371
+ "evaluationCase": {
372
+ "type": "object",
373
+ "properties": {
374
+ "id": {
375
+ "type": "string",
376
+ "minLength": 1,
377
+ "pattern": "\\S"
378
+ },
379
+ "domain": {
380
+ "type": "string",
381
+ "minLength": 1,
382
+ "pattern": "\\S"
383
+ },
384
+ "input": {
385
+ "$ref": "#/$defs/json"
386
+ },
387
+ "source": {
388
+ "$ref": "#/$defs/source"
389
+ }
390
+ },
391
+ "required": [
392
+ "id",
393
+ "domain",
394
+ "input",
395
+ "source"
396
+ ],
397
+ "additionalProperties": false
398
+ },
399
+ "caseResult": {
400
+ "type": "object",
401
+ "properties": {
402
+ "id": {
403
+ "type": "string",
404
+ "minLength": 1,
405
+ "pattern": "\\S"
406
+ },
407
+ "contentDigest": {
408
+ "type": "string",
409
+ "pattern": "^[a-f0-9]{64}$"
410
+ },
411
+ "output": {
412
+ "$ref": "#/$defs/json"
413
+ },
414
+ "baselineOutput": {
415
+ "$ref": "#/$defs/json"
416
+ },
417
+ "category": {
418
+ "enum": [
419
+ "success",
420
+ "partial",
421
+ "failure"
422
+ ]
423
+ },
424
+ "baselineCategory": {
425
+ "enum": [
426
+ "success",
427
+ "partial",
428
+ "failure"
429
+ ]
430
+ },
431
+ "utility": {
432
+ "type": "number"
433
+ },
434
+ "baselineUtility": {
435
+ "type": "number"
436
+ }
437
+ },
438
+ "required": [
439
+ "id",
440
+ "contentDigest",
441
+ "output",
442
+ "baselineOutput",
443
+ "category",
444
+ "baselineCategory",
445
+ "utility",
446
+ "baselineUtility"
447
+ ],
448
+ "additionalProperties": false
449
+ },
450
+ "projectionItem": {
451
+ "type": "object",
452
+ "properties": {
453
+ "memoryId": {
454
+ "type": "string",
455
+ "minLength": 1,
456
+ "pattern": "\\S"
457
+ },
458
+ "before": {
459
+ "anyOf": [
460
+ {
461
+ "type": "string",
462
+ "pattern": "^[a-f0-9]{64}$"
463
+ },
464
+ {
465
+ "type": "null"
466
+ }
467
+ ]
468
+ },
469
+ "after": {
470
+ "anyOf": [
471
+ {
472
+ "type": "string",
473
+ "pattern": "^[a-f0-9]{64}$"
474
+ },
475
+ {
476
+ "type": "null"
477
+ }
478
+ ]
479
+ },
480
+ "status": {
481
+ "enum": [
482
+ "applied",
483
+ "missing"
484
+ ]
485
+ },
486
+ "changed": {
487
+ "type": "boolean"
488
+ }
489
+ },
490
+ "required": [
491
+ "memoryId",
492
+ "before",
493
+ "after",
494
+ "status",
495
+ "changed"
496
+ ],
497
+ "additionalProperties": false
498
+ },
499
+ "decision": {
500
+ "type": "object",
501
+ "properties": {
502
+ "schemaVersion": {
503
+ "const": 1
504
+ },
505
+ "id": {
506
+ "type": "string",
507
+ "pattern": "^[a-f0-9]{64}$"
508
+ },
509
+ "scopeId": {
510
+ "type": "string",
511
+ "pattern": "^[a-f0-9]{64}$"
512
+ },
513
+ "artifactKey": {
514
+ "type": "string",
515
+ "minLength": 1,
516
+ "pattern": "\\S"
517
+ },
518
+ "recordedAt": {
519
+ "type": "string",
520
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
521
+ },
522
+ "kind": {
523
+ "const": "decision"
524
+ },
525
+ "decisionKey": {
526
+ "type": "string",
527
+ "minLength": 1,
528
+ "pattern": "\\S"
529
+ },
530
+ "scope": {
531
+ "$ref": "#/$defs/scope"
532
+ },
533
+ "adapter": {
534
+ "$ref": "#/$defs/adapterIdentity"
535
+ },
536
+ "input": {
537
+ "$ref": "#/$defs/json"
538
+ },
539
+ "output": {
540
+ "$ref": "#/$defs/json"
541
+ },
542
+ "decidedAt": {
543
+ "type": "string",
544
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
545
+ },
546
+ "cutoffAt": {
547
+ "type": "string",
548
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
549
+ },
550
+ "expectedResolutionAt": {
551
+ "anyOf": [
552
+ {
553
+ "type": "string",
554
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
555
+ },
556
+ {
557
+ "type": "null"
558
+ }
559
+ ]
560
+ },
561
+ "memoryIds": {
562
+ "type": "array",
563
+ "items": {
564
+ "type": "string",
565
+ "minLength": 1,
566
+ "pattern": "\\S"
567
+ },
568
+ "minItems": 0
569
+ },
570
+ "configuration": {
571
+ "$ref": "#/$defs/configuration"
572
+ },
573
+ "usedVersionId": {
574
+ "anyOf": [
575
+ {
576
+ "type": "string",
577
+ "pattern": "^[a-f0-9]{64}$"
578
+ },
579
+ {
580
+ "type": "null"
581
+ }
582
+ ]
583
+ },
584
+ "staticPayload": {
585
+ "$ref": "#/$defs/json"
586
+ }
587
+ },
588
+ "required": [
589
+ "schemaVersion",
590
+ "id",
591
+ "scopeId",
592
+ "artifactKey",
593
+ "recordedAt",
594
+ "kind",
595
+ "decisionKey",
596
+ "scope",
597
+ "adapter",
598
+ "input",
599
+ "output",
600
+ "decidedAt",
601
+ "cutoffAt",
602
+ "expectedResolutionAt",
603
+ "memoryIds",
604
+ "configuration",
605
+ "usedVersionId",
606
+ "staticPayload"
607
+ ],
608
+ "additionalProperties": false
609
+ },
610
+ "resolution": {
611
+ "type": "object",
612
+ "properties": {
613
+ "schemaVersion": {
614
+ "const": 1
615
+ },
616
+ "id": {
617
+ "type": "string",
618
+ "pattern": "^[a-f0-9]{64}$"
619
+ },
620
+ "scopeId": {
621
+ "type": "string",
622
+ "pattern": "^[a-f0-9]{64}$"
623
+ },
624
+ "artifactKey": {
625
+ "type": "string",
626
+ "minLength": 1,
627
+ "pattern": "\\S"
628
+ },
629
+ "recordedAt": {
630
+ "type": "string",
631
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
632
+ },
633
+ "kind": {
634
+ "const": "resolution"
635
+ },
636
+ "decisionId": {
637
+ "type": "string",
638
+ "pattern": "^[a-f0-9]{64}$"
639
+ },
640
+ "resolverRevision": {
641
+ "type": "string",
642
+ "pattern": "^[a-f0-9]{64}$"
643
+ },
644
+ "sources": {
645
+ "type": "array",
646
+ "items": {
647
+ "$ref": "#/$defs/source"
648
+ },
649
+ "minItems": 1
650
+ },
651
+ "payload": {
652
+ "$ref": "#/$defs/json"
653
+ },
654
+ "receivedAt": {
655
+ "type": "string",
656
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
657
+ },
658
+ "late": {
659
+ "anyOf": [
660
+ {
661
+ "type": "boolean"
662
+ },
663
+ {
664
+ "type": "null"
665
+ }
666
+ ]
667
+ },
668
+ "resolutionSchema": {
669
+ "type": "string",
670
+ "pattern": "^[a-f0-9]{64}$"
671
+ }
672
+ },
673
+ "required": [
674
+ "schemaVersion",
675
+ "id",
676
+ "scopeId",
677
+ "artifactKey",
678
+ "recordedAt",
679
+ "kind",
680
+ "decisionId",
681
+ "resolverRevision",
682
+ "sources",
683
+ "payload",
684
+ "receivedAt",
685
+ "late",
686
+ "resolutionSchema"
687
+ ],
688
+ "additionalProperties": false
689
+ },
690
+ "score": {
691
+ "type": "object",
692
+ "properties": {
693
+ "schemaVersion": {
694
+ "const": 1
695
+ },
696
+ "id": {
697
+ "type": "string",
698
+ "pattern": "^[a-f0-9]{64}$"
699
+ },
700
+ "scopeId": {
701
+ "type": "string",
702
+ "pattern": "^[a-f0-9]{64}$"
703
+ },
704
+ "artifactKey": {
705
+ "type": "string",
706
+ "minLength": 1,
707
+ "pattern": "\\S"
708
+ },
709
+ "recordedAt": {
710
+ "type": "string",
711
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
712
+ },
713
+ "kind": {
714
+ "const": "score"
715
+ },
716
+ "decisionId": {
717
+ "type": "string",
718
+ "pattern": "^[a-f0-9]{64}$"
719
+ },
720
+ "resolutionId": {
721
+ "type": "string",
722
+ "pattern": "^[a-f0-9]{64}$"
723
+ },
724
+ "scorerRevision": {
725
+ "type": "string",
726
+ "pattern": "^[a-f0-9]{64}$"
727
+ },
728
+ "outcome": {
729
+ "enum": [
730
+ "success",
731
+ "partial",
732
+ "failure"
733
+ ]
734
+ },
735
+ "utility": {
736
+ "type": "number"
737
+ },
738
+ "diagnostics": {
739
+ "$ref": "#/$defs/json"
740
+ },
741
+ "policyId": {
742
+ "type": "string",
743
+ "pattern": "^[a-f0-9]{64}$"
744
+ }
745
+ },
746
+ "required": [
747
+ "schemaVersion",
748
+ "id",
749
+ "scopeId",
750
+ "artifactKey",
751
+ "recordedAt",
752
+ "kind",
753
+ "decisionId",
754
+ "resolutionId",
755
+ "scorerRevision",
756
+ "outcome",
757
+ "utility",
758
+ "diagnostics",
759
+ "policyId"
760
+ ],
761
+ "additionalProperties": false
762
+ },
763
+ "projectionIntent": {
764
+ "type": "object",
765
+ "properties": {
766
+ "schemaVersion": {
767
+ "const": 1
768
+ },
769
+ "id": {
770
+ "type": "string",
771
+ "pattern": "^[a-f0-9]{64}$"
772
+ },
773
+ "scopeId": {
774
+ "type": "string",
775
+ "pattern": "^[a-f0-9]{64}$"
776
+ },
777
+ "artifactKey": {
778
+ "type": "string",
779
+ "minLength": 1,
780
+ "pattern": "\\S"
781
+ },
782
+ "recordedAt": {
783
+ "type": "string",
784
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
785
+ },
786
+ "kind": {
787
+ "const": "projectionIntent"
788
+ },
789
+ "scoreId": {
790
+ "type": "string",
791
+ "pattern": "^[a-f0-9]{64}$"
792
+ },
793
+ "memoryIds": {
794
+ "type": "array",
795
+ "items": {
796
+ "type": "string",
797
+ "minLength": 1,
798
+ "pattern": "\\S"
799
+ },
800
+ "minItems": 0
801
+ },
802
+ "authorizationId": {
803
+ "type": "string",
804
+ "pattern": "^[a-f0-9]{64}$"
805
+ },
806
+ "policyId": {
807
+ "type": "string",
808
+ "pattern": "^[a-f0-9]{64}$"
809
+ }
810
+ },
811
+ "required": [
812
+ "schemaVersion",
813
+ "id",
814
+ "scopeId",
815
+ "artifactKey",
816
+ "recordedAt",
817
+ "kind",
818
+ "scoreId",
819
+ "memoryIds",
820
+ "authorizationId",
821
+ "policyId"
822
+ ],
823
+ "additionalProperties": false
824
+ },
825
+ "projectionReceipt": {
826
+ "type": "object",
827
+ "properties": {
828
+ "schemaVersion": {
829
+ "const": 1
830
+ },
831
+ "id": {
832
+ "type": "string",
833
+ "pattern": "^[a-f0-9]{64}$"
834
+ },
835
+ "scopeId": {
836
+ "type": "string",
837
+ "pattern": "^[a-f0-9]{64}$"
838
+ },
839
+ "artifactKey": {
840
+ "type": "string",
841
+ "minLength": 1,
842
+ "pattern": "\\S"
843
+ },
844
+ "recordedAt": {
845
+ "type": "string",
846
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
847
+ },
848
+ "kind": {
849
+ "const": "projectionReceipt"
850
+ },
851
+ "scoreId": {
852
+ "type": "string",
853
+ "pattern": "^[a-f0-9]{64}$"
854
+ },
855
+ "intentId": {
856
+ "type": "string",
857
+ "pattern": "^[a-f0-9]{64}$"
858
+ },
859
+ "policyId": {
860
+ "type": "string",
861
+ "pattern": "^[a-f0-9]{64}$"
862
+ },
863
+ "items": {
864
+ "type": "array",
865
+ "items": {
866
+ "$ref": "#/$defs/projectionItem"
867
+ },
868
+ "minItems": 0
869
+ },
870
+ "applied": {
871
+ "type": "integer",
872
+ "minimum": 0
873
+ },
874
+ "missing": {
875
+ "type": "integer",
876
+ "minimum": 0
877
+ },
878
+ "changedMemoryWrites": {
879
+ "type": "integer",
880
+ "minimum": 0
881
+ }
882
+ },
883
+ "required": [
884
+ "schemaVersion",
885
+ "id",
886
+ "scopeId",
887
+ "artifactKey",
888
+ "recordedAt",
889
+ "kind",
890
+ "scoreId",
891
+ "intentId",
892
+ "policyId",
893
+ "items",
894
+ "applied",
895
+ "missing",
896
+ "changedMemoryWrites"
897
+ ],
898
+ "additionalProperties": false
899
+ },
900
+ "reflection": {
901
+ "type": "object",
902
+ "properties": {
903
+ "schemaVersion": {
904
+ "const": 1
905
+ },
906
+ "id": {
907
+ "type": "string",
908
+ "pattern": "^[a-f0-9]{64}$"
909
+ },
910
+ "scopeId": {
911
+ "type": "string",
912
+ "pattern": "^[a-f0-9]{64}$"
913
+ },
914
+ "artifactKey": {
915
+ "type": "string",
916
+ "minLength": 1,
917
+ "pattern": "\\S"
918
+ },
919
+ "recordedAt": {
920
+ "type": "string",
921
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
922
+ },
923
+ "kind": {
924
+ "const": "reflection"
925
+ },
926
+ "scoreIds": {
927
+ "type": "array",
928
+ "items": {
929
+ "type": "string",
930
+ "pattern": "^[a-f0-9]{64}$"
931
+ },
932
+ "minItems": 1,
933
+ "maxItems": 128
934
+ },
935
+ "parentVersionId": {
936
+ "anyOf": [
937
+ {
938
+ "type": "string",
939
+ "pattern": "^[a-f0-9]{64}$"
940
+ },
941
+ {
942
+ "type": "null"
943
+ }
944
+ ]
945
+ },
946
+ "configuration": {
947
+ "$ref": "#/$defs/configuration"
948
+ },
949
+ "text": {
950
+ "type": "string"
951
+ },
952
+ "citations": {
953
+ "type": "array",
954
+ "items": {
955
+ "type": "string",
956
+ "pattern": "^[a-f0-9]{64}$"
957
+ },
958
+ "minItems": 1,
959
+ "maxItems": 128
960
+ },
961
+ "attemptId": {
962
+ "type": "string",
963
+ "pattern": "^[a-f0-9]{64}$"
964
+ }
965
+ },
966
+ "required": [
967
+ "schemaVersion",
968
+ "id",
969
+ "scopeId",
970
+ "artifactKey",
971
+ "recordedAt",
972
+ "kind",
973
+ "scoreIds",
974
+ "parentVersionId",
975
+ "configuration",
976
+ "text",
977
+ "citations",
978
+ "attemptId"
979
+ ],
980
+ "additionalProperties": false
981
+ },
982
+ "artifactVersion": {
983
+ "type": "object",
984
+ "properties": {
985
+ "schemaVersion": {
986
+ "const": 1
987
+ },
988
+ "id": {
989
+ "type": "string",
990
+ "pattern": "^[a-f0-9]{64}$"
991
+ },
992
+ "scopeId": {
993
+ "type": "string",
994
+ "pattern": "^[a-f0-9]{64}$"
995
+ },
996
+ "artifactKey": {
997
+ "type": "string",
998
+ "minLength": 1,
999
+ "pattern": "\\S"
1000
+ },
1001
+ "recordedAt": {
1002
+ "type": "string",
1003
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
1004
+ },
1005
+ "kind": {
1006
+ "const": "artifactVersion"
1007
+ },
1008
+ "parentVersionId": {
1009
+ "anyOf": [
1010
+ {
1011
+ "type": "string",
1012
+ "pattern": "^[a-f0-9]{64}$"
1013
+ },
1014
+ {
1015
+ "type": "null"
1016
+ }
1017
+ ]
1018
+ },
1019
+ "payload": {
1020
+ "$ref": "#/$defs/json"
1021
+ },
1022
+ "payloadSchema": {
1023
+ "type": "string",
1024
+ "pattern": "^[a-f0-9]{64}$"
1025
+ },
1026
+ "adapter": {
1027
+ "$ref": "#/$defs/adapterIdentity"
1028
+ },
1029
+ "reflectionId": {
1030
+ "type": "string",
1031
+ "pattern": "^[a-f0-9]{64}$"
1032
+ },
1033
+ "mode": {
1034
+ "enum": [
1035
+ "create",
1036
+ "evolve"
1037
+ ]
1038
+ },
1039
+ "policyId": {
1040
+ "type": "string",
1041
+ "pattern": "^[a-f0-9]{64}$"
1042
+ },
1043
+ "policy": {
1044
+ "$ref": "#/$defs/policy"
1045
+ },
1046
+ "issues": {
1047
+ "type": "array",
1048
+ "items": {
1049
+ "$ref": "#/$defs/issue"
1050
+ },
1051
+ "minItems": 0
1052
+ },
1053
+ "expectedHead": {
1054
+ "$ref": "#/$defs/head"
1055
+ }
1056
+ },
1057
+ "required": [
1058
+ "schemaVersion",
1059
+ "id",
1060
+ "scopeId",
1061
+ "artifactKey",
1062
+ "recordedAt",
1063
+ "kind",
1064
+ "parentVersionId",
1065
+ "payload",
1066
+ "payloadSchema",
1067
+ "adapter",
1068
+ "reflectionId",
1069
+ "mode",
1070
+ "policyId",
1071
+ "policy",
1072
+ "issues",
1073
+ "expectedHead"
1074
+ ],
1075
+ "additionalProperties": false
1076
+ },
1077
+ "evaluationRegistration": {
1078
+ "type": "object",
1079
+ "properties": {
1080
+ "schemaVersion": {
1081
+ "const": 1
1082
+ },
1083
+ "id": {
1084
+ "type": "string",
1085
+ "pattern": "^[a-f0-9]{64}$"
1086
+ },
1087
+ "scopeId": {
1088
+ "type": "string",
1089
+ "pattern": "^[a-f0-9]{64}$"
1090
+ },
1091
+ "artifactKey": {
1092
+ "type": "string",
1093
+ "minLength": 1,
1094
+ "pattern": "\\S"
1095
+ },
1096
+ "recordedAt": {
1097
+ "type": "string",
1098
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
1099
+ },
1100
+ "kind": {
1101
+ "const": "evaluationRegistration"
1102
+ },
1103
+ "slotId": {
1104
+ "type": "string",
1105
+ "minLength": 1,
1106
+ "pattern": "\\S"
1107
+ },
1108
+ "versionId": {
1109
+ "type": "string",
1110
+ "pattern": "^[a-f0-9]{64}$"
1111
+ },
1112
+ "expectedHead": {
1113
+ "$ref": "#/$defs/head"
1114
+ },
1115
+ "trainingScoreIds": {
1116
+ "type": "array",
1117
+ "items": {
1118
+ "type": "string",
1119
+ "pattern": "^[a-f0-9]{64}$"
1120
+ },
1121
+ "minItems": 1
1122
+ },
1123
+ "cases": {
1124
+ "type": "array",
1125
+ "items": {
1126
+ "$ref": "#/$defs/evaluationCase"
1127
+ },
1128
+ "minItems": 1,
1129
+ "maxItems": 128
1130
+ },
1131
+ "evaluatorRevision": {
1132
+ "type": "string",
1133
+ "pattern": "^[a-f0-9]{64}$"
1134
+ },
1135
+ "gatePolicyId": {
1136
+ "type": "string",
1137
+ "pattern": "^[a-f0-9]{64}$"
1138
+ },
1139
+ "maxPhysicalRequests": {
1140
+ "type": "integer",
1141
+ "minimum": 0
1142
+ },
1143
+ "maxCost": {
1144
+ "anyOf": [
1145
+ {
1146
+ "type": "number",
1147
+ "minimum": 0
1148
+ },
1149
+ {
1150
+ "type": "null"
1151
+ }
1152
+ ]
1153
+ }
1154
+ },
1155
+ "required": [
1156
+ "schemaVersion",
1157
+ "id",
1158
+ "scopeId",
1159
+ "artifactKey",
1160
+ "recordedAt",
1161
+ "kind",
1162
+ "slotId",
1163
+ "versionId",
1164
+ "expectedHead",
1165
+ "trainingScoreIds",
1166
+ "cases",
1167
+ "evaluatorRevision",
1168
+ "gatePolicyId",
1169
+ "maxPhysicalRequests",
1170
+ "maxCost"
1171
+ ],
1172
+ "additionalProperties": false
1173
+ },
1174
+ "evaluation": {
1175
+ "type": "object",
1176
+ "properties": {
1177
+ "schemaVersion": {
1178
+ "const": 1
1179
+ },
1180
+ "id": {
1181
+ "type": "string",
1182
+ "pattern": "^[a-f0-9]{64}$"
1183
+ },
1184
+ "scopeId": {
1185
+ "type": "string",
1186
+ "pattern": "^[a-f0-9]{64}$"
1187
+ },
1188
+ "artifactKey": {
1189
+ "type": "string",
1190
+ "minLength": 1,
1191
+ "pattern": "\\S"
1192
+ },
1193
+ "recordedAt": {
1194
+ "type": "string",
1195
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
1196
+ },
1197
+ "kind": {
1198
+ "const": "evaluation"
1199
+ },
1200
+ "versionId": {
1201
+ "type": "string",
1202
+ "pattern": "^[a-f0-9]{64}$"
1203
+ },
1204
+ "registrationId": {
1205
+ "type": "string",
1206
+ "pattern": "^[a-f0-9]{64}$"
1207
+ },
1208
+ "expectedHead": {
1209
+ "$ref": "#/$defs/head"
1210
+ },
1211
+ "trainingScoreIds": {
1212
+ "type": "array",
1213
+ "items": {
1214
+ "type": "string",
1215
+ "pattern": "^[a-f0-9]{64}$"
1216
+ },
1217
+ "minItems": 1
1218
+ },
1219
+ "caseResults": {
1220
+ "type": "array",
1221
+ "items": {
1222
+ "$ref": "#/$defs/caseResult"
1223
+ },
1224
+ "minItems": 0
1225
+ },
1226
+ "caseReportId": {
1227
+ "type": "string",
1228
+ "pattern": "^[a-f0-9]{64}$"
1229
+ },
1230
+ "evaluatorRevision": {
1231
+ "type": "string",
1232
+ "pattern": "^[a-f0-9]{64}$"
1233
+ },
1234
+ "gatePolicyId": {
1235
+ "type": "string",
1236
+ "pattern": "^[a-f0-9]{64}$"
1237
+ },
1238
+ "eligible": {
1239
+ "type": "boolean"
1240
+ },
1241
+ "issues": {
1242
+ "type": "array",
1243
+ "items": {
1244
+ "$ref": "#/$defs/issue"
1245
+ },
1246
+ "minItems": 0
1247
+ },
1248
+ "meanDelta": {
1249
+ "anyOf": [
1250
+ {
1251
+ "type": "number"
1252
+ },
1253
+ {
1254
+ "type": "null"
1255
+ }
1256
+ ]
1257
+ },
1258
+ "physicalRequests": {
1259
+ "type": "integer",
1260
+ "minimum": 0
1261
+ },
1262
+ "cost": {
1263
+ "anyOf": [
1264
+ {
1265
+ "type": "number"
1266
+ },
1267
+ {
1268
+ "type": "null"
1269
+ }
1270
+ ]
1271
+ }
1272
+ },
1273
+ "required": [
1274
+ "schemaVersion",
1275
+ "id",
1276
+ "scopeId",
1277
+ "artifactKey",
1278
+ "recordedAt",
1279
+ "kind",
1280
+ "versionId",
1281
+ "registrationId",
1282
+ "expectedHead",
1283
+ "trainingScoreIds",
1284
+ "caseResults",
1285
+ "caseReportId",
1286
+ "evaluatorRevision",
1287
+ "gatePolicyId",
1288
+ "eligible",
1289
+ "issues",
1290
+ "meanDelta",
1291
+ "physicalRequests",
1292
+ "cost"
1293
+ ],
1294
+ "additionalProperties": false
1295
+ },
1296
+ "approval": {
1297
+ "type": "object",
1298
+ "properties": {
1299
+ "schemaVersion": {
1300
+ "const": 1
1301
+ },
1302
+ "id": {
1303
+ "type": "string",
1304
+ "pattern": "^[a-f0-9]{64}$"
1305
+ },
1306
+ "scopeId": {
1307
+ "type": "string",
1308
+ "pattern": "^[a-f0-9]{64}$"
1309
+ },
1310
+ "artifactKey": {
1311
+ "type": "string",
1312
+ "minLength": 1,
1313
+ "pattern": "\\S"
1314
+ },
1315
+ "recordedAt": {
1316
+ "type": "string",
1317
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
1318
+ },
1319
+ "kind": {
1320
+ "const": "approval"
1321
+ },
1322
+ "action": {
1323
+ "enum": [
1324
+ "promote",
1325
+ "rollback"
1326
+ ]
1327
+ },
1328
+ "actorId": {
1329
+ "type": "string",
1330
+ "minLength": 1,
1331
+ "pattern": "\\S"
1332
+ },
1333
+ "authorityId": {
1334
+ "type": "string",
1335
+ "pattern": "^[a-f0-9]{64}$"
1336
+ },
1337
+ "versionId": {
1338
+ "type": "string",
1339
+ "pattern": "^[a-f0-9]{64}$"
1340
+ },
1341
+ "evaluationId": {
1342
+ "type": "string",
1343
+ "pattern": "^[a-f0-9]{64}$"
1344
+ },
1345
+ "expectedHead": {
1346
+ "$ref": "#/$defs/head"
1347
+ },
1348
+ "gatePolicyId": {
1349
+ "type": "string",
1350
+ "pattern": "^[a-f0-9]{64}$"
1351
+ },
1352
+ "reason": {
1353
+ "type": "string",
1354
+ "minLength": 1,
1355
+ "pattern": "\\S"
1356
+ },
1357
+ "requestId": {
1358
+ "$ref": "#/$defs/hash"
1359
+ }
1360
+ },
1361
+ "required": [
1362
+ "schemaVersion",
1363
+ "id",
1364
+ "scopeId",
1365
+ "artifactKey",
1366
+ "recordedAt",
1367
+ "kind",
1368
+ "action",
1369
+ "actorId",
1370
+ "authorityId",
1371
+ "versionId",
1372
+ "evaluationId",
1373
+ "expectedHead",
1374
+ "gatePolicyId",
1375
+ "reason",
1376
+ "requestId"
1377
+ ],
1378
+ "additionalProperties": false
1379
+ },
1380
+ "activationEvent": {
1381
+ "type": "object",
1382
+ "properties": {
1383
+ "schemaVersion": {
1384
+ "const": 1
1385
+ },
1386
+ "id": {
1387
+ "type": "string",
1388
+ "pattern": "^[a-f0-9]{64}$"
1389
+ },
1390
+ "scopeId": {
1391
+ "type": "string",
1392
+ "pattern": "^[a-f0-9]{64}$"
1393
+ },
1394
+ "artifactKey": {
1395
+ "type": "string",
1396
+ "minLength": 1,
1397
+ "pattern": "\\S"
1398
+ },
1399
+ "recordedAt": {
1400
+ "type": "string",
1401
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
1402
+ },
1403
+ "kind": {
1404
+ "const": "activationEvent"
1405
+ },
1406
+ "action": {
1407
+ "enum": [
1408
+ "promote",
1409
+ "rollback"
1410
+ ]
1411
+ },
1412
+ "approvalId": {
1413
+ "type": "string",
1414
+ "pattern": "^[a-f0-9]{64}$"
1415
+ },
1416
+ "previousHead": {
1417
+ "$ref": "#/$defs/head"
1418
+ },
1419
+ "nextHead": {
1420
+ "$ref": "#/$defs/head"
1421
+ },
1422
+ "versionId": {
1423
+ "type": "string",
1424
+ "pattern": "^[a-f0-9]{64}$"
1425
+ },
1426
+ "evaluationId": {
1427
+ "type": "string",
1428
+ "pattern": "^[a-f0-9]{64}$"
1429
+ }
1430
+ },
1431
+ "required": [
1432
+ "schemaVersion",
1433
+ "id",
1434
+ "scopeId",
1435
+ "artifactKey",
1436
+ "recordedAt",
1437
+ "kind",
1438
+ "action",
1439
+ "approvalId",
1440
+ "previousHead",
1441
+ "nextHead",
1442
+ "versionId",
1443
+ "evaluationId"
1444
+ ],
1445
+ "additionalProperties": false
1446
+ },
1447
+ "operationReceipt": {
1448
+ "type": "object",
1449
+ "properties": {
1450
+ "schemaVersion": {
1451
+ "const": 1
1452
+ },
1453
+ "id": {
1454
+ "type": "string",
1455
+ "pattern": "^[a-f0-9]{64}$"
1456
+ },
1457
+ "scopeId": {
1458
+ "type": "string",
1459
+ "pattern": "^[a-f0-9]{64}$"
1460
+ },
1461
+ "artifactKey": {
1462
+ "type": "string",
1463
+ "minLength": 1,
1464
+ "pattern": "\\S"
1465
+ },
1466
+ "recordedAt": {
1467
+ "type": "string",
1468
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
1469
+ },
1470
+ "kind": {
1471
+ "const": "operationReceipt"
1472
+ },
1473
+ "requestKey": {
1474
+ "type": "string",
1475
+ "minLength": 1,
1476
+ "pattern": "\\S"
1477
+ },
1478
+ "inputDigest": {
1479
+ "type": "string",
1480
+ "pattern": "^[a-f0-9]{64}$"
1481
+ },
1482
+ "operation": {
1483
+ "type": "string",
1484
+ "minLength": 1,
1485
+ "pattern": "\\S"
1486
+ },
1487
+ "result": {
1488
+ "$ref": "#/$defs/result"
1489
+ },
1490
+ "requestId": {
1491
+ "type": "string",
1492
+ "pattern": "^[a-f0-9]{64}$"
1493
+ }
1494
+ },
1495
+ "required": [
1496
+ "schemaVersion",
1497
+ "id",
1498
+ "scopeId",
1499
+ "artifactKey",
1500
+ "recordedAt",
1501
+ "kind",
1502
+ "requestKey",
1503
+ "inputDigest",
1504
+ "operation",
1505
+ "result",
1506
+ "requestId"
1507
+ ],
1508
+ "additionalProperties": false
1509
+ },
1510
+ "attemptEvent": {
1511
+ "type": "object",
1512
+ "properties": {
1513
+ "schemaVersion": {
1514
+ "const": 1
1515
+ },
1516
+ "id": {
1517
+ "type": "string",
1518
+ "pattern": "^[a-f0-9]{64}$"
1519
+ },
1520
+ "scopeId": {
1521
+ "type": "string",
1522
+ "pattern": "^[a-f0-9]{64}$"
1523
+ },
1524
+ "artifactKey": {
1525
+ "type": "string",
1526
+ "minLength": 1,
1527
+ "pattern": "\\S"
1528
+ },
1529
+ "recordedAt": {
1530
+ "type": "string",
1531
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
1532
+ },
1533
+ "kind": {
1534
+ "const": "attemptEvent"
1535
+ },
1536
+ "requestId": {
1537
+ "type": "string",
1538
+ "pattern": "^[a-f0-9]{64}$"
1539
+ },
1540
+ "stage": {
1541
+ "enum": [
1542
+ "reserved",
1543
+ "dispatched",
1544
+ "ready",
1545
+ "retryable",
1546
+ "uncertain",
1547
+ "refused",
1548
+ "completed",
1549
+ "reconciled"
1550
+ ]
1551
+ },
1552
+ "inputDigest": {
1553
+ "type": "string",
1554
+ "pattern": "^[a-f0-9]{64}$"
1555
+ },
1556
+ "details": {
1557
+ "$ref": "#/$defs/json"
1558
+ }
1559
+ },
1560
+ "required": [
1561
+ "schemaVersion",
1562
+ "id",
1563
+ "scopeId",
1564
+ "artifactKey",
1565
+ "recordedAt",
1566
+ "kind",
1567
+ "requestId",
1568
+ "stage",
1569
+ "inputDigest",
1570
+ "details"
1571
+ ],
1572
+ "additionalProperties": false
1573
+ },
1574
+ "outcomeRecord": {
1575
+ "oneOf": [
1576
+ {
1577
+ "$ref": "#/$defs/decision"
1578
+ },
1579
+ {
1580
+ "$ref": "#/$defs/resolution"
1581
+ },
1582
+ {
1583
+ "$ref": "#/$defs/score"
1584
+ },
1585
+ {
1586
+ "$ref": "#/$defs/projectionIntent"
1587
+ },
1588
+ {
1589
+ "$ref": "#/$defs/projectionReceipt"
1590
+ },
1591
+ {
1592
+ "$ref": "#/$defs/reflection"
1593
+ },
1594
+ {
1595
+ "$ref": "#/$defs/artifactVersion"
1596
+ },
1597
+ {
1598
+ "$ref": "#/$defs/evaluationRegistration"
1599
+ },
1600
+ {
1601
+ "$ref": "#/$defs/evaluation"
1602
+ },
1603
+ {
1604
+ "$ref": "#/$defs/approval"
1605
+ },
1606
+ {
1607
+ "$ref": "#/$defs/activationEvent"
1608
+ },
1609
+ {
1610
+ "$ref": "#/$defs/operationReceipt"
1611
+ },
1612
+ {
1613
+ "$ref": "#/$defs/attemptEvent"
1614
+ }
1615
+ ]
1616
+ },
1617
+ "headRow": {
1618
+ "type": "object",
1619
+ "properties": {
1620
+ "id": {
1621
+ "type": "string",
1622
+ "pattern": "^[a-f0-9]{64}$"
1623
+ },
1624
+ "scopeId": {
1625
+ "type": "string",
1626
+ "pattern": "^[a-f0-9]{64}$"
1627
+ },
1628
+ "artifactKey": {
1629
+ "type": "string",
1630
+ "minLength": 1,
1631
+ "pattern": "\\S"
1632
+ },
1633
+ "head": {
1634
+ "$ref": "#/$defs/head"
1635
+ },
1636
+ "eventId": {
1637
+ "anyOf": [
1638
+ {
1639
+ "type": "string",
1640
+ "pattern": "^[a-f0-9]{64}$"
1641
+ },
1642
+ {
1643
+ "type": "null"
1644
+ }
1645
+ ]
1646
+ }
1647
+ },
1648
+ "required": [
1649
+ "id",
1650
+ "scopeId",
1651
+ "artifactKey",
1652
+ "head",
1653
+ "eventId"
1654
+ ],
1655
+ "additionalProperties": false
1656
+ },
1657
+ "keyRow": {
1658
+ "type": "object",
1659
+ "properties": {
1660
+ "id": {
1661
+ "type": "string",
1662
+ "pattern": "^[a-f0-9]{64}$"
1663
+ },
1664
+ "scopeId": {
1665
+ "type": "string",
1666
+ "pattern": "^[a-f0-9]{64}$"
1667
+ },
1668
+ "value": {
1669
+ "anyOf": [
1670
+ {
1671
+ "type": "string",
1672
+ "pattern": "^[a-f0-9]{64}$"
1673
+ },
1674
+ {
1675
+ "type": "integer",
1676
+ "minimum": 0
1677
+ }
1678
+ ]
1679
+ }
1680
+ },
1681
+ "required": [
1682
+ "id",
1683
+ "scopeId",
1684
+ "value"
1685
+ ],
1686
+ "additionalProperties": false
1687
+ },
1688
+ "operation": {
1689
+ "type": "object",
1690
+ "properties": {
1691
+ "id": {
1692
+ "type": "string",
1693
+ "pattern": "^[a-f0-9]{64}$"
1694
+ },
1695
+ "scopeId": {
1696
+ "type": "string",
1697
+ "pattern": "^[a-f0-9]{64}$"
1698
+ },
1699
+ "artifactKey": {
1700
+ "type": "string",
1701
+ "minLength": 1,
1702
+ "pattern": "\\S"
1703
+ },
1704
+ "requestKey": {
1705
+ "type": "string",
1706
+ "minLength": 1,
1707
+ "pattern": "\\S"
1708
+ },
1709
+ "operation": {
1710
+ "type": "string",
1711
+ "minLength": 1,
1712
+ "pattern": "\\S"
1713
+ },
1714
+ "inputDigest": {
1715
+ "type": "string",
1716
+ "pattern": "^[a-f0-9]{64}$"
1717
+ },
1718
+ "state": {
1719
+ "enum": [
1720
+ "reserved",
1721
+ "dispatched",
1722
+ "ready",
1723
+ "retryable",
1724
+ "uncertain",
1725
+ "completed"
1726
+ ]
1727
+ },
1728
+ "receiptId": {
1729
+ "anyOf": [
1730
+ {
1731
+ "type": "string",
1732
+ "pattern": "^[a-f0-9]{64}$"
1733
+ },
1734
+ {
1735
+ "type": "null"
1736
+ }
1737
+ ]
1738
+ },
1739
+ "output": {
1740
+ "$ref": "#/$defs/json"
1741
+ },
1742
+ "capacityReserved": {
1743
+ "type": "boolean"
1744
+ },
1745
+ "attempt": {
1746
+ "type": "integer",
1747
+ "minimum": 0
1748
+ },
1749
+ "preparationWrites": {
1750
+ "type": "integer",
1751
+ "minimum": 0
1752
+ }
1753
+ },
1754
+ "required": [
1755
+ "id",
1756
+ "scopeId",
1757
+ "artifactKey",
1758
+ "requestKey",
1759
+ "operation",
1760
+ "inputDigest",
1761
+ "state",
1762
+ "receiptId",
1763
+ "output",
1764
+ "capacityReserved",
1765
+ "attempt",
1766
+ "preparationWrites"
1767
+ ],
1768
+ "additionalProperties": false
1769
+ },
1770
+ "storedRecord": {
1771
+ "type": "object",
1772
+ "properties": {
1773
+ "id": {
1774
+ "type": "string",
1775
+ "pattern": "^[a-f0-9]{64}$"
1776
+ },
1777
+ "scopeId": {
1778
+ "type": "string",
1779
+ "pattern": "^[a-f0-9]{64}$"
1780
+ },
1781
+ "artifactKey": {
1782
+ "type": "string",
1783
+ "minLength": 1,
1784
+ "pattern": "\\S"
1785
+ },
1786
+ "kind": {
1787
+ "type": "string",
1788
+ "minLength": 1,
1789
+ "pattern": "\\S"
1790
+ },
1791
+ "seq": {
1792
+ "type": "integer",
1793
+ "minimum": 0
1794
+ },
1795
+ "record": {
1796
+ "$ref": "#/$defs/outcomeRecord"
1797
+ }
1798
+ },
1799
+ "required": [
1800
+ "id",
1801
+ "scopeId",
1802
+ "artifactKey",
1803
+ "kind",
1804
+ "seq",
1805
+ "record"
1806
+ ],
1807
+ "additionalProperties": false
1808
+ },
1809
+ "confidencePolicy": {
1810
+ "type": "object",
1811
+ "properties": {
1812
+ "successBoost": {
1813
+ "type": "number",
1814
+ "minimum": 0
1815
+ },
1816
+ "failurePenalty": {
1817
+ "type": "number",
1818
+ "minimum": 0
1819
+ },
1820
+ "partialBoost": {
1821
+ "type": "number",
1822
+ "minimum": 0
1823
+ },
1824
+ "minConfidence": {
1825
+ "type": "number",
1826
+ "minimum": 0,
1827
+ "maximum": 1
1828
+ },
1829
+ "maxConfidence": {
1830
+ "type": "number",
1831
+ "minimum": 0,
1832
+ "maximum": 1
1833
+ }
1834
+ },
1835
+ "required": [
1836
+ "successBoost",
1837
+ "failurePenalty",
1838
+ "partialBoost",
1839
+ "minConfidence",
1840
+ "maxConfidence"
1841
+ ],
1842
+ "additionalProperties": false
1843
+ },
1844
+ "createInput": {
1845
+ "type": "object",
1846
+ "properties": {
1847
+ "decisionKey": {
1848
+ "type": "string",
1849
+ "minLength": 1,
1850
+ "pattern": "\\S"
1851
+ },
1852
+ "adapter": {
1853
+ "$ref": "#/$defs/adapterIdentity"
1854
+ },
1855
+ "input": {
1856
+ "$ref": "#/$defs/json"
1857
+ },
1858
+ "output": {
1859
+ "$ref": "#/$defs/json"
1860
+ },
1861
+ "decidedAt": {
1862
+ "type": "string",
1863
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
1864
+ },
1865
+ "cutoffAt": {
1866
+ "type": "string",
1867
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
1868
+ },
1869
+ "expectedResolutionAt": {
1870
+ "anyOf": [
1871
+ {
1872
+ "type": "string",
1873
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
1874
+ },
1875
+ {
1876
+ "type": "null"
1877
+ }
1878
+ ]
1879
+ },
1880
+ "memoryIds": {
1881
+ "type": "array",
1882
+ "items": {
1883
+ "type": "string",
1884
+ "minLength": 1,
1885
+ "pattern": "\\S"
1886
+ },
1887
+ "minItems": 0
1888
+ },
1889
+ "configuration": {
1890
+ "$ref": "#/$defs/configuration"
1891
+ },
1892
+ "usedVersionId": {
1893
+ "anyOf": [
1894
+ {
1895
+ "type": "string",
1896
+ "pattern": "^[a-f0-9]{64}$"
1897
+ },
1898
+ {
1899
+ "type": "null"
1900
+ }
1901
+ ]
1902
+ },
1903
+ "staticPayload": {
1904
+ "$ref": "#/$defs/json"
1905
+ }
1906
+ },
1907
+ "required": [
1908
+ "decisionKey",
1909
+ "adapter",
1910
+ "input",
1911
+ "output",
1912
+ "decidedAt",
1913
+ "cutoffAt",
1914
+ "expectedResolutionAt",
1915
+ "memoryIds",
1916
+ "configuration",
1917
+ "usedVersionId",
1918
+ "staticPayload"
1919
+ ],
1920
+ "additionalProperties": false
1921
+ },
1922
+ "resolveInput": {
1923
+ "type": "object",
1924
+ "properties": {
1925
+ "decisionId": {
1926
+ "type": "string",
1927
+ "pattern": "^[a-f0-9]{64}$"
1928
+ },
1929
+ "evidence": {
1930
+ "type": "array",
1931
+ "items": {
1932
+ "$ref": "#/$defs/sourceRef"
1933
+ },
1934
+ "minItems": 1,
1935
+ "maxItems": 16
1936
+ },
1937
+ "receivedAt": {
1938
+ "type": "string",
1939
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
1940
+ }
1941
+ },
1942
+ "required": [
1943
+ "decisionId",
1944
+ "evidence",
1945
+ "receivedAt"
1946
+ ],
1947
+ "additionalProperties": false
1948
+ },
1949
+ "scoreInput": {
1950
+ "type": "object",
1951
+ "properties": {
1952
+ "resolutionId": {
1953
+ "type": "string",
1954
+ "pattern": "^[a-f0-9]{64}$"
1955
+ }
1956
+ },
1957
+ "required": [
1958
+ "resolutionId"
1959
+ ],
1960
+ "additionalProperties": false
1961
+ },
1962
+ "projectInput": {
1963
+ "type": "object",
1964
+ "properties": {
1965
+ "scoreId": {
1966
+ "type": "string",
1967
+ "pattern": "^[a-f0-9]{64}$"
1968
+ }
1969
+ },
1970
+ "required": [
1971
+ "scoreId"
1972
+ ],
1973
+ "additionalProperties": false
1974
+ },
1975
+ "patch": {
1976
+ "oneOf": [
1977
+ {
1978
+ "type": "object",
1979
+ "properties": {
1980
+ "op": {
1981
+ "enum": [
1982
+ "add",
1983
+ "replace",
1984
+ "test"
1985
+ ]
1986
+ },
1987
+ "path": {
1988
+ "type": "string"
1989
+ },
1990
+ "value": {
1991
+ "$ref": "#/$defs/json"
1992
+ }
1993
+ },
1994
+ "required": [
1995
+ "op",
1996
+ "path",
1997
+ "value"
1998
+ ],
1999
+ "additionalProperties": false
2000
+ },
2001
+ {
2002
+ "type": "object",
2003
+ "properties": {
2004
+ "op": {
2005
+ "const": "remove"
2006
+ },
2007
+ "path": {
2008
+ "type": "string"
2009
+ }
2010
+ },
2011
+ "required": [
2012
+ "op",
2013
+ "path"
2014
+ ],
2015
+ "additionalProperties": false
2016
+ }
2017
+ ]
2018
+ },
2019
+ "reflectInput": {
2020
+ "type": "object",
2021
+ "properties": {
2022
+ "mode": {
2023
+ "enum": [
2024
+ "create",
2025
+ "evolve"
2026
+ ]
2027
+ },
2028
+ "scoreIds": {
2029
+ "type": "array",
2030
+ "items": {
2031
+ "type": "string",
2032
+ "pattern": "^[a-f0-9]{64}$"
2033
+ },
2034
+ "minItems": 1,
2035
+ "maxItems": 128
2036
+ },
2037
+ "parentVersionId": {
2038
+ "anyOf": [
2039
+ {
2040
+ "type": "string",
2041
+ "pattern": "^[a-f0-9]{64}$"
2042
+ },
2043
+ {
2044
+ "type": "null"
2045
+ }
2046
+ ]
2047
+ },
2048
+ "payload": {
2049
+ "$ref": "#/$defs/json"
2050
+ },
2051
+ "patch": {
2052
+ "type": "array",
2053
+ "items": {
2054
+ "$ref": "#/$defs/patch"
2055
+ },
2056
+ "minItems": 0
2057
+ },
2058
+ "text": {
2059
+ "type": "string"
2060
+ },
2061
+ "citations": {
2062
+ "type": "array",
2063
+ "items": {
2064
+ "type": "string",
2065
+ "pattern": "^[a-f0-9]{64}$"
2066
+ },
2067
+ "minItems": 1,
2068
+ "maxItems": 128
2069
+ },
2070
+ "configuration": {
2071
+ "$ref": "#/$defs/configuration"
2072
+ }
2073
+ },
2074
+ "required": [
2075
+ "mode",
2076
+ "scoreIds",
2077
+ "parentVersionId",
2078
+ "payload",
2079
+ "patch",
2080
+ "text",
2081
+ "citations",
2082
+ "configuration"
2083
+ ],
2084
+ "additionalProperties": false
2085
+ },
2086
+ "evaluateInput": {
2087
+ "type": "object",
2088
+ "properties": {
2089
+ "versionId": {
2090
+ "type": "string",
2091
+ "pattern": "^[a-f0-9]{64}$"
2092
+ },
2093
+ "slotId": {
2094
+ "type": "string",
2095
+ "minLength": 1,
2096
+ "pattern": "\\S"
2097
+ }
2098
+ },
2099
+ "required": [
2100
+ "versionId",
2101
+ "slotId"
2102
+ ],
2103
+ "additionalProperties": false
2104
+ },
2105
+ "approveInput": {
2106
+ "type": "object",
2107
+ "properties": {
2108
+ "action": {
2109
+ "enum": [
2110
+ "promote",
2111
+ "rollback"
2112
+ ]
2113
+ },
2114
+ "versionId": {
2115
+ "type": "string",
2116
+ "pattern": "^[a-f0-9]{64}$"
2117
+ },
2118
+ "evaluationId": {
2119
+ "type": "string",
2120
+ "pattern": "^[a-f0-9]{64}$"
2121
+ },
2122
+ "expectedHead": {
2123
+ "$ref": "#/$defs/head"
2124
+ },
2125
+ "reason": {
2126
+ "type": "string",
2127
+ "minLength": 1,
2128
+ "pattern": "\\S"
2129
+ }
2130
+ },
2131
+ "required": [
2132
+ "action",
2133
+ "versionId",
2134
+ "evaluationId",
2135
+ "expectedHead",
2136
+ "reason"
2137
+ ],
2138
+ "additionalProperties": false
2139
+ },
2140
+ "promoteInput": {
2141
+ "type": "object",
2142
+ "properties": {
2143
+ "approvalId": {
2144
+ "type": "string",
2145
+ "pattern": "^[a-f0-9]{64}$"
2146
+ }
2147
+ },
2148
+ "required": [
2149
+ "approvalId"
2150
+ ],
2151
+ "additionalProperties": false
2152
+ },
2153
+ "rollbackInput": {
2154
+ "type": "object",
2155
+ "properties": {
2156
+ "approvalId": {
2157
+ "type": "string",
2158
+ "pattern": "^[a-f0-9]{64}$"
2159
+ }
2160
+ },
2161
+ "required": [
2162
+ "approvalId"
2163
+ ],
2164
+ "additionalProperties": false
2165
+ },
2166
+ "reconcileInput": {
2167
+ "type": "object",
2168
+ "properties": {
2169
+ "attemptId": {
2170
+ "type": "string",
2171
+ "pattern": "^[a-f0-9]{64}$"
2172
+ },
2173
+ "evidence": {
2174
+ "$ref": "#/$defs/sourceRef"
2175
+ }
2176
+ },
2177
+ "required": [
2178
+ "attemptId",
2179
+ "evidence"
2180
+ ],
2181
+ "additionalProperties": false
2182
+ },
2183
+ "inspectInput": {
2184
+ "type": "object",
2185
+ "properties": {
2186
+ "id": {
2187
+ "type": "string",
2188
+ "pattern": "^[a-f0-9]{64}$"
2189
+ },
2190
+ "includeLineage": {
2191
+ "type": "boolean"
2192
+ }
2193
+ },
2194
+ "required": [
2195
+ "id"
2196
+ ],
2197
+ "additionalProperties": false
2198
+ },
2199
+ "injectInput": {
2200
+ "type": "object",
2201
+ "properties": {},
2202
+ "required": [],
2203
+ "additionalProperties": false
2204
+ },
2205
+ "cursor": {
2206
+ "type": "object",
2207
+ "properties": {
2208
+ "scopeId": {
2209
+ "type": "string",
2210
+ "pattern": "^[a-f0-9]{64}$"
2211
+ },
2212
+ "artifactKey": {
2213
+ "type": "string",
2214
+ "minLength": 1,
2215
+ "pattern": "\\S"
2216
+ },
2217
+ "after": {
2218
+ "type": "integer",
2219
+ "minimum": 0
2220
+ },
2221
+ "upper": {
2222
+ "type": "integer",
2223
+ "minimum": 0
2224
+ },
2225
+ "filterId": {
2226
+ "type": "string",
2227
+ "pattern": "^[a-f0-9]{64}$"
2228
+ }
2229
+ },
2230
+ "required": [
2231
+ "scopeId",
2232
+ "artifactKey",
2233
+ "after",
2234
+ "upper",
2235
+ "filterId"
2236
+ ],
2237
+ "additionalProperties": false
2238
+ },
2239
+ "historyInput": {
2240
+ "type": "object",
2241
+ "properties": {
2242
+ "pageSize": {
2243
+ "type": "integer",
2244
+ "minimum": 1,
2245
+ "maximum": 200
2246
+ },
2247
+ "cursor": {
2248
+ "anyOf": [
2249
+ {
2250
+ "$ref": "#/$defs/cursor"
2251
+ },
2252
+ {
2253
+ "type": "null"
2254
+ }
2255
+ ]
2256
+ }
2257
+ },
2258
+ "required": [],
2259
+ "additionalProperties": false
2260
+ },
2261
+ "createCommand": {
2262
+ "type": "object",
2263
+ "properties": {
2264
+ "scopeId": {
2265
+ "type": "string",
2266
+ "pattern": "^[a-f0-9]{64}$"
2267
+ },
2268
+ "artifactKey": {
2269
+ "type": "string",
2270
+ "minLength": 1,
2271
+ "pattern": "\\S"
2272
+ },
2273
+ "requestKey": {
2274
+ "type": "string",
2275
+ "minLength": 1,
2276
+ "pattern": "\\S"
2277
+ },
2278
+ "at": {
2279
+ "type": "string",
2280
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
2281
+ },
2282
+ "input": {
2283
+ "$ref": "#/$defs/createInput"
2284
+ }
2285
+ },
2286
+ "required": [
2287
+ "scopeId",
2288
+ "artifactKey",
2289
+ "requestKey",
2290
+ "at",
2291
+ "input"
2292
+ ],
2293
+ "additionalProperties": false
2294
+ },
2295
+ "resolveCommand": {
2296
+ "type": "object",
2297
+ "properties": {
2298
+ "scopeId": {
2299
+ "type": "string",
2300
+ "pattern": "^[a-f0-9]{64}$"
2301
+ },
2302
+ "artifactKey": {
2303
+ "type": "string",
2304
+ "minLength": 1,
2305
+ "pattern": "\\S"
2306
+ },
2307
+ "requestKey": {
2308
+ "type": "string",
2309
+ "minLength": 1,
2310
+ "pattern": "\\S"
2311
+ },
2312
+ "at": {
2313
+ "type": "string",
2314
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
2315
+ },
2316
+ "input": {
2317
+ "$ref": "#/$defs/resolveInput"
2318
+ }
2319
+ },
2320
+ "required": [
2321
+ "scopeId",
2322
+ "artifactKey",
2323
+ "requestKey",
2324
+ "at",
2325
+ "input"
2326
+ ],
2327
+ "additionalProperties": false
2328
+ },
2329
+ "scoreCommand": {
2330
+ "type": "object",
2331
+ "properties": {
2332
+ "scopeId": {
2333
+ "type": "string",
2334
+ "pattern": "^[a-f0-9]{64}$"
2335
+ },
2336
+ "artifactKey": {
2337
+ "type": "string",
2338
+ "minLength": 1,
2339
+ "pattern": "\\S"
2340
+ },
2341
+ "requestKey": {
2342
+ "type": "string",
2343
+ "minLength": 1,
2344
+ "pattern": "\\S"
2345
+ },
2346
+ "at": {
2347
+ "type": "string",
2348
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
2349
+ },
2350
+ "input": {
2351
+ "$ref": "#/$defs/scoreInput"
2352
+ }
2353
+ },
2354
+ "required": [
2355
+ "scopeId",
2356
+ "artifactKey",
2357
+ "requestKey",
2358
+ "at",
2359
+ "input"
2360
+ ],
2361
+ "additionalProperties": false
2362
+ },
2363
+ "projectCommand": {
2364
+ "type": "object",
2365
+ "properties": {
2366
+ "scopeId": {
2367
+ "type": "string",
2368
+ "pattern": "^[a-f0-9]{64}$"
2369
+ },
2370
+ "artifactKey": {
2371
+ "type": "string",
2372
+ "minLength": 1,
2373
+ "pattern": "\\S"
2374
+ },
2375
+ "requestKey": {
2376
+ "type": "string",
2377
+ "minLength": 1,
2378
+ "pattern": "\\S"
2379
+ },
2380
+ "at": {
2381
+ "type": "string",
2382
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
2383
+ },
2384
+ "input": {
2385
+ "$ref": "#/$defs/projectInput"
2386
+ }
2387
+ },
2388
+ "required": [
2389
+ "scopeId",
2390
+ "artifactKey",
2391
+ "requestKey",
2392
+ "at",
2393
+ "input"
2394
+ ],
2395
+ "additionalProperties": false
2396
+ },
2397
+ "reflectCommand": {
2398
+ "type": "object",
2399
+ "properties": {
2400
+ "scopeId": {
2401
+ "type": "string",
2402
+ "pattern": "^[a-f0-9]{64}$"
2403
+ },
2404
+ "artifactKey": {
2405
+ "type": "string",
2406
+ "minLength": 1,
2407
+ "pattern": "\\S"
2408
+ },
2409
+ "requestKey": {
2410
+ "type": "string",
2411
+ "minLength": 1,
2412
+ "pattern": "\\S"
2413
+ },
2414
+ "at": {
2415
+ "type": "string",
2416
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
2417
+ },
2418
+ "input": {
2419
+ "$ref": "#/$defs/reflectInput"
2420
+ }
2421
+ },
2422
+ "required": [
2423
+ "scopeId",
2424
+ "artifactKey",
2425
+ "requestKey",
2426
+ "at",
2427
+ "input"
2428
+ ],
2429
+ "additionalProperties": false
2430
+ },
2431
+ "evaluateCommand": {
2432
+ "type": "object",
2433
+ "properties": {
2434
+ "scopeId": {
2435
+ "type": "string",
2436
+ "pattern": "^[a-f0-9]{64}$"
2437
+ },
2438
+ "artifactKey": {
2439
+ "type": "string",
2440
+ "minLength": 1,
2441
+ "pattern": "\\S"
2442
+ },
2443
+ "requestKey": {
2444
+ "type": "string",
2445
+ "minLength": 1,
2446
+ "pattern": "\\S"
2447
+ },
2448
+ "at": {
2449
+ "type": "string",
2450
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
2451
+ },
2452
+ "input": {
2453
+ "$ref": "#/$defs/evaluateInput"
2454
+ }
2455
+ },
2456
+ "required": [
2457
+ "scopeId",
2458
+ "artifactKey",
2459
+ "requestKey",
2460
+ "at",
2461
+ "input"
2462
+ ],
2463
+ "additionalProperties": false
2464
+ },
2465
+ "approveCommand": {
2466
+ "type": "object",
2467
+ "properties": {
2468
+ "scopeId": {
2469
+ "type": "string",
2470
+ "pattern": "^[a-f0-9]{64}$"
2471
+ },
2472
+ "artifactKey": {
2473
+ "type": "string",
2474
+ "minLength": 1,
2475
+ "pattern": "\\S"
2476
+ },
2477
+ "requestKey": {
2478
+ "type": "string",
2479
+ "minLength": 1,
2480
+ "pattern": "\\S"
2481
+ },
2482
+ "at": {
2483
+ "type": "string",
2484
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
2485
+ },
2486
+ "input": {
2487
+ "$ref": "#/$defs/approveInput"
2488
+ }
2489
+ },
2490
+ "required": [
2491
+ "scopeId",
2492
+ "artifactKey",
2493
+ "requestKey",
2494
+ "at",
2495
+ "input"
2496
+ ],
2497
+ "additionalProperties": false
2498
+ },
2499
+ "promoteCommand": {
2500
+ "type": "object",
2501
+ "properties": {
2502
+ "scopeId": {
2503
+ "type": "string",
2504
+ "pattern": "^[a-f0-9]{64}$"
2505
+ },
2506
+ "artifactKey": {
2507
+ "type": "string",
2508
+ "minLength": 1,
2509
+ "pattern": "\\S"
2510
+ },
2511
+ "requestKey": {
2512
+ "type": "string",
2513
+ "minLength": 1,
2514
+ "pattern": "\\S"
2515
+ },
2516
+ "at": {
2517
+ "type": "string",
2518
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
2519
+ },
2520
+ "input": {
2521
+ "$ref": "#/$defs/promoteInput"
2522
+ }
2523
+ },
2524
+ "required": [
2525
+ "scopeId",
2526
+ "artifactKey",
2527
+ "requestKey",
2528
+ "at",
2529
+ "input"
2530
+ ],
2531
+ "additionalProperties": false
2532
+ },
2533
+ "rollbackCommand": {
2534
+ "type": "object",
2535
+ "properties": {
2536
+ "scopeId": {
2537
+ "type": "string",
2538
+ "pattern": "^[a-f0-9]{64}$"
2539
+ },
2540
+ "artifactKey": {
2541
+ "type": "string",
2542
+ "minLength": 1,
2543
+ "pattern": "\\S"
2544
+ },
2545
+ "requestKey": {
2546
+ "type": "string",
2547
+ "minLength": 1,
2548
+ "pattern": "\\S"
2549
+ },
2550
+ "at": {
2551
+ "type": "string",
2552
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
2553
+ },
2554
+ "input": {
2555
+ "$ref": "#/$defs/rollbackInput"
2556
+ }
2557
+ },
2558
+ "required": [
2559
+ "scopeId",
2560
+ "artifactKey",
2561
+ "requestKey",
2562
+ "at",
2563
+ "input"
2564
+ ],
2565
+ "additionalProperties": false
2566
+ },
2567
+ "reconcileCommand": {
2568
+ "type": "object",
2569
+ "properties": {
2570
+ "scopeId": {
2571
+ "type": "string",
2572
+ "pattern": "^[a-f0-9]{64}$"
2573
+ },
2574
+ "artifactKey": {
2575
+ "type": "string",
2576
+ "minLength": 1,
2577
+ "pattern": "\\S"
2578
+ },
2579
+ "requestKey": {
2580
+ "type": "string",
2581
+ "minLength": 1,
2582
+ "pattern": "\\S"
2583
+ },
2584
+ "at": {
2585
+ "type": "string",
2586
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{3}Z$"
2587
+ },
2588
+ "input": {
2589
+ "$ref": "#/$defs/reconcileInput"
2590
+ }
2591
+ },
2592
+ "required": [
2593
+ "scopeId",
2594
+ "artifactKey",
2595
+ "requestKey",
2596
+ "at",
2597
+ "input"
2598
+ ],
2599
+ "additionalProperties": false
2600
+ },
2601
+ "inspectCommand": {
2602
+ "type": "object",
2603
+ "properties": {
2604
+ "scopeId": {
2605
+ "type": "string",
2606
+ "pattern": "^[a-f0-9]{64}$"
2607
+ },
2608
+ "artifactKey": {
2609
+ "type": "string",
2610
+ "minLength": 1,
2611
+ "pattern": "\\S"
2612
+ },
2613
+ "input": {
2614
+ "$ref": "#/$defs/inspectInput"
2615
+ }
2616
+ },
2617
+ "required": [
2618
+ "scopeId",
2619
+ "artifactKey",
2620
+ "input"
2621
+ ],
2622
+ "additionalProperties": false
2623
+ },
2624
+ "injectCommand": {
2625
+ "type": "object",
2626
+ "properties": {
2627
+ "scopeId": {
2628
+ "type": "string",
2629
+ "pattern": "^[a-f0-9]{64}$"
2630
+ },
2631
+ "artifactKey": {
2632
+ "type": "string",
2633
+ "minLength": 1,
2634
+ "pattern": "\\S"
2635
+ },
2636
+ "input": {
2637
+ "$ref": "#/$defs/injectInput"
2638
+ }
2639
+ },
2640
+ "required": [
2641
+ "scopeId",
2642
+ "artifactKey",
2643
+ "input"
2644
+ ],
2645
+ "additionalProperties": false
2646
+ },
2647
+ "historyCommand": {
2648
+ "type": "object",
2649
+ "properties": {
2650
+ "scopeId": {
2651
+ "type": "string",
2652
+ "pattern": "^[a-f0-9]{64}$"
2653
+ },
2654
+ "artifactKey": {
2655
+ "type": "string",
2656
+ "minLength": 1,
2657
+ "pattern": "\\S"
2658
+ },
2659
+ "input": {
2660
+ "$ref": "#/$defs/historyInput"
2661
+ }
2662
+ },
2663
+ "required": [
2664
+ "scopeId",
2665
+ "artifactKey",
2666
+ "input"
2667
+ ],
2668
+ "additionalProperties": false
2669
+ },
2670
+ "hash": {
2671
+ "type": "string",
2672
+ "pattern": "^[a-f0-9]{64}$"
2673
+ },
2674
+ "category": {
2675
+ "enum": [
2676
+ "success",
2677
+ "partial",
2678
+ "failure"
2679
+ ]
2680
+ },
2681
+ "evaluationSlot": {
2682
+ "type": "object",
2683
+ "properties": {
2684
+ "slotId": {
2685
+ "type": "string",
2686
+ "minLength": 1,
2687
+ "pattern": "\\S"
2688
+ },
2689
+ "versionId": {
2690
+ "type": "string",
2691
+ "pattern": "^[a-f0-9]{64}$"
2692
+ },
2693
+ "expectedHead": {
2694
+ "$ref": "#/$defs/head"
2695
+ },
2696
+ "trainingScoreIds": {
2697
+ "type": "array",
2698
+ "items": {
2699
+ "type": "string",
2700
+ "pattern": "^[a-f0-9]{64}$"
2701
+ },
2702
+ "minItems": 1
2703
+ },
2704
+ "cases": {
2705
+ "type": "array",
2706
+ "items": {
2707
+ "$ref": "#/$defs/evaluationCase"
2708
+ },
2709
+ "minItems": 1,
2710
+ "maxItems": 128
2711
+ },
2712
+ "evaluatorRevision": {
2713
+ "type": "string",
2714
+ "pattern": "^[a-f0-9]{64}$"
2715
+ },
2716
+ "gatePolicyId": {
2717
+ "type": "string",
2718
+ "pattern": "^[a-f0-9]{64}$"
2719
+ },
2720
+ "maxPhysicalRequests": {
2721
+ "type": "integer",
2722
+ "minimum": 0
2723
+ },
2724
+ "maxCost": {
2725
+ "anyOf": [
2726
+ {
2727
+ "type": "number",
2728
+ "minimum": 0
2729
+ },
2730
+ {
2731
+ "type": "null"
2732
+ }
2733
+ ]
2734
+ }
2735
+ },
2736
+ "required": [
2737
+ "slotId",
2738
+ "versionId",
2739
+ "expectedHead",
2740
+ "trainingScoreIds",
2741
+ "cases",
2742
+ "evaluatorRevision",
2743
+ "gatePolicyId",
2744
+ "maxPhysicalRequests",
2745
+ "maxCost"
2746
+ ],
2747
+ "additionalProperties": false
2748
+ },
2749
+ "proposal": {
2750
+ "type": "object",
2751
+ "properties": {
2752
+ "payload": {
2753
+ "$ref": "#/$defs/json"
2754
+ },
2755
+ "patch": {
2756
+ "type": "array",
2757
+ "items": {
2758
+ "$ref": "#/$defs/patch"
2759
+ },
2760
+ "minItems": 0
2761
+ },
2762
+ "text": {
2763
+ "type": "string"
2764
+ },
2765
+ "citations": {
2766
+ "type": "array",
2767
+ "items": {
2768
+ "type": "string",
2769
+ "pattern": "^[a-f0-9]{64}$"
2770
+ },
2771
+ "minItems": 1,
2772
+ "maxItems": 128
2773
+ }
2774
+ },
2775
+ "required": [
2776
+ "payload",
2777
+ "patch",
2778
+ "text",
2779
+ "citations"
2780
+ ],
2781
+ "additionalProperties": false
2782
+ },
2783
+ "proposalReply": {
2784
+ "type": "object",
2785
+ "properties": {
2786
+ "proposal": {
2787
+ "anyOf": [
2788
+ {
2789
+ "$ref": "#/$defs/proposal"
2790
+ },
2791
+ {
2792
+ "type": "null"
2793
+ }
2794
+ ]
2795
+ },
2796
+ "issues": {
2797
+ "type": "array",
2798
+ "items": {
2799
+ "$ref": "#/$defs/issue"
2800
+ },
2801
+ "maxItems": 8
2802
+ },
2803
+ "requestDigest": {
2804
+ "$ref": "#/$defs/hash"
2805
+ },
2806
+ "identityId": {
2807
+ "$ref": "#/$defs/hash"
2808
+ },
2809
+ "physicalRequests": {
2810
+ "type": "integer",
2811
+ "minimum": 0,
2812
+ "maximum": 1
2813
+ },
2814
+ "replayed": {
2815
+ "type": "boolean"
2816
+ },
2817
+ "usage": {
2818
+ "$ref": "#/$defs/json"
2819
+ },
2820
+ "usageKnown": {
2821
+ "type": "boolean"
2822
+ },
2823
+ "cost": {
2824
+ "anyOf": [
2825
+ {
2826
+ "type": "number",
2827
+ "minimum": 0
2828
+ },
2829
+ {
2830
+ "type": "null"
2831
+ }
2832
+ ]
2833
+ },
2834
+ "outputDigest": {
2835
+ "$ref": "#/$defs/hash"
2836
+ }
2837
+ },
2838
+ "required": [
2839
+ "proposal",
2840
+ "issues",
2841
+ "requestDigest",
2842
+ "identityId",
2843
+ "physicalRequests",
2844
+ "replayed",
2845
+ "usage",
2846
+ "usageKnown",
2847
+ "cost",
2848
+ "outputDigest"
2849
+ ],
2850
+ "additionalProperties": false
2851
+ },
2852
+ "dispatchSnapshot": {
2853
+ "type": "object",
2854
+ "properties": {
2855
+ "input": {
2856
+ "$ref": "#/$defs/reflectInput"
2857
+ },
2858
+ "head": {
2859
+ "$ref": "#/$defs/head"
2860
+ },
2861
+ "previous": {
2862
+ "$ref": "#/$defs/json"
2863
+ },
2864
+ "identity": {
2865
+ "$ref": "#/$defs/json"
2866
+ },
2867
+ "requestDigest": {
2868
+ "$ref": "#/$defs/hash"
2869
+ }
2870
+ },
2871
+ "required": [
2872
+ "input",
2873
+ "head",
2874
+ "previous",
2875
+ "identity",
2876
+ "requestDigest"
2877
+ ],
2878
+ "additionalProperties": false
2879
+ },
2880
+ "preparedModelOutput": {
2881
+ "type": "object",
2882
+ "properties": {
2883
+ "input": {
2884
+ "$ref": "#/$defs/reflectInput"
2885
+ },
2886
+ "head": {
2887
+ "$ref": "#/$defs/head"
2888
+ },
2889
+ "previous": {
2890
+ "$ref": "#/$defs/json"
2891
+ },
2892
+ "reply": {
2893
+ "$ref": "#/$defs/proposalReply"
2894
+ }
2895
+ },
2896
+ "required": [
2897
+ "input",
2898
+ "head",
2899
+ "previous",
2900
+ "reply"
2901
+ ],
2902
+ "additionalProperties": false
2903
+ },
2904
+ "reconciliationProof": {
2905
+ "oneOf": [
2906
+ {
2907
+ "type": "object",
2908
+ "properties": {
2909
+ "attemptId": {
2910
+ "$ref": "#/$defs/hash"
2911
+ },
2912
+ "attempt": {
2913
+ "type": "integer",
2914
+ "minimum": 1
2915
+ },
2916
+ "inputDigest": {
2917
+ "$ref": "#/$defs/hash"
2918
+ },
2919
+ "kind": {
2920
+ "const": "retained-output"
2921
+ },
2922
+ "reply": {
2923
+ "$ref": "#/$defs/proposalReply"
2924
+ }
2925
+ },
2926
+ "required": [
2927
+ "attemptId",
2928
+ "attempt",
2929
+ "inputDigest",
2930
+ "kind",
2931
+ "reply"
2932
+ ],
2933
+ "additionalProperties": false
2934
+ },
2935
+ {
2936
+ "type": "object",
2937
+ "properties": {
2938
+ "attemptId": {
2939
+ "$ref": "#/$defs/hash"
2940
+ },
2941
+ "attempt": {
2942
+ "type": "integer",
2943
+ "minimum": 1
2944
+ },
2945
+ "inputDigest": {
2946
+ "$ref": "#/$defs/hash"
2947
+ },
2948
+ "kind": {
2949
+ "const": "no-dispatch"
2950
+ },
2951
+ "reason": {
2952
+ "type": "string",
2953
+ "minLength": 1,
2954
+ "maxLength": 2048
2955
+ }
2956
+ },
2957
+ "required": [
2958
+ "attemptId",
2959
+ "attempt",
2960
+ "inputDigest",
2961
+ "kind",
2962
+ "reason"
2963
+ ],
2964
+ "additionalProperties": false
2965
+ }
2966
+ ]
2967
+ },
2968
+ "principal": {
2969
+ "type": "object",
2970
+ "properties": {
2971
+ "id": {
2972
+ "type": "string",
2973
+ "minLength": 1
2974
+ },
2975
+ "authorityId": {
2976
+ "$ref": "#/$defs/hash"
2977
+ },
2978
+ "approve": {
2979
+ "type": "boolean"
2980
+ },
2981
+ "reconcile": {
2982
+ "type": "boolean"
2983
+ }
2984
+ },
2985
+ "required": [
2986
+ "id",
2987
+ "authorityId",
2988
+ "approve",
2989
+ "reconcile"
2990
+ ],
2991
+ "additionalProperties": false
2992
+ },
2993
+ "historyEntry": {
2994
+ "type": "object",
2995
+ "properties": {
2996
+ "sequence": {
2997
+ "type": "integer",
2998
+ "minimum": 1
2999
+ },
3000
+ "record": {
3001
+ "$ref": "#/$defs/outcomeRecord"
3002
+ }
3003
+ },
3004
+ "required": [
3005
+ "sequence",
3006
+ "record"
3007
+ ],
3008
+ "additionalProperties": false
3009
+ },
3010
+ "inspection": {
3011
+ "type": "object",
3012
+ "properties": {
3013
+ "record": {
3014
+ "$ref": "#/$defs/outcomeRecord"
3015
+ },
3016
+ "lineage": {
3017
+ "type": "array",
3018
+ "items": {
3019
+ "$ref": "#/$defs/artifactVersion"
3020
+ }
3021
+ }
3022
+ },
3023
+ "required": [
3024
+ "record",
3025
+ "lineage"
3026
+ ],
3027
+ "additionalProperties": false
3028
+ },
3029
+ "historyPage": {
3030
+ "type": "object",
3031
+ "properties": {
3032
+ "entries": {
3033
+ "type": "array",
3034
+ "maxItems": 200,
3035
+ "items": {
3036
+ "$ref": "#/$defs/historyEntry"
3037
+ }
3038
+ },
3039
+ "cursor": {
3040
+ "anyOf": [
3041
+ {
3042
+ "$ref": "#/$defs/cursor"
3043
+ },
3044
+ {
3045
+ "type": "null"
3046
+ }
3047
+ ]
3048
+ },
3049
+ "upper": {
3050
+ "type": "integer",
3051
+ "minimum": 0
3052
+ }
3053
+ },
3054
+ "required": [
3055
+ "entries",
3056
+ "cursor",
3057
+ "upper"
3058
+ ],
3059
+ "additionalProperties": false
3060
+ },
3061
+ "createValue": {
3062
+ "type": "object",
3063
+ "properties": {
3064
+ "decisionId": {
3065
+ "$ref": "#/$defs/hash"
3066
+ }
3067
+ },
3068
+ "required": [
3069
+ "decisionId"
3070
+ ],
3071
+ "additionalProperties": false
3072
+ },
3073
+ "createResult": {
3074
+ "oneOf": [
3075
+ {
3076
+ "type": "object",
3077
+ "properties": {
3078
+ "ok": {
3079
+ "const": true
3080
+ },
3081
+ "value": {
3082
+ "$ref": "#/$defs/createValue"
3083
+ },
3084
+ "replayed": {
3085
+ "type": "boolean"
3086
+ },
3087
+ "writes": {
3088
+ "type": "integer",
3089
+ "minimum": 0
3090
+ }
3091
+ },
3092
+ "required": [
3093
+ "ok",
3094
+ "value",
3095
+ "replayed",
3096
+ "writes"
3097
+ ],
3098
+ "additionalProperties": false
3099
+ },
3100
+ {
3101
+ "type": "object",
3102
+ "properties": {
3103
+ "ok": {
3104
+ "const": false
3105
+ },
3106
+ "issues": {
3107
+ "type": "array",
3108
+ "items": {
3109
+ "$ref": "#/$defs/issue"
3110
+ },
3111
+ "minItems": 1
3112
+ }
3113
+ },
3114
+ "required": [
3115
+ "ok",
3116
+ "issues"
3117
+ ],
3118
+ "additionalProperties": false
3119
+ }
3120
+ ]
3121
+ },
3122
+ "resolveValue": {
3123
+ "type": "object",
3124
+ "properties": {
3125
+ "resolutionId": {
3126
+ "$ref": "#/$defs/hash"
3127
+ }
3128
+ },
3129
+ "required": [
3130
+ "resolutionId"
3131
+ ],
3132
+ "additionalProperties": false
3133
+ },
3134
+ "resolveResult": {
3135
+ "oneOf": [
3136
+ {
3137
+ "type": "object",
3138
+ "properties": {
3139
+ "ok": {
3140
+ "const": true
3141
+ },
3142
+ "value": {
3143
+ "$ref": "#/$defs/resolveValue"
3144
+ },
3145
+ "replayed": {
3146
+ "type": "boolean"
3147
+ },
3148
+ "writes": {
3149
+ "type": "integer",
3150
+ "minimum": 0
3151
+ }
3152
+ },
3153
+ "required": [
3154
+ "ok",
3155
+ "value",
3156
+ "replayed",
3157
+ "writes"
3158
+ ],
3159
+ "additionalProperties": false
3160
+ },
3161
+ {
3162
+ "type": "object",
3163
+ "properties": {
3164
+ "ok": {
3165
+ "const": false
3166
+ },
3167
+ "issues": {
3168
+ "type": "array",
3169
+ "items": {
3170
+ "$ref": "#/$defs/issue"
3171
+ },
3172
+ "minItems": 1
3173
+ }
3174
+ },
3175
+ "required": [
3176
+ "ok",
3177
+ "issues"
3178
+ ],
3179
+ "additionalProperties": false
3180
+ }
3181
+ ]
3182
+ },
3183
+ "scoreValue": {
3184
+ "type": "object",
3185
+ "properties": {
3186
+ "scoreId": {
3187
+ "$ref": "#/$defs/hash"
3188
+ },
3189
+ "projectionIntentId": {
3190
+ "$ref": "#/$defs/hash"
3191
+ }
3192
+ },
3193
+ "required": [
3194
+ "scoreId",
3195
+ "projectionIntentId"
3196
+ ],
3197
+ "additionalProperties": false
3198
+ },
3199
+ "scoreResult": {
3200
+ "oneOf": [
3201
+ {
3202
+ "type": "object",
3203
+ "properties": {
3204
+ "ok": {
3205
+ "const": true
3206
+ },
3207
+ "value": {
3208
+ "$ref": "#/$defs/scoreValue"
3209
+ },
3210
+ "replayed": {
3211
+ "type": "boolean"
3212
+ },
3213
+ "writes": {
3214
+ "type": "integer",
3215
+ "minimum": 0
3216
+ }
3217
+ },
3218
+ "required": [
3219
+ "ok",
3220
+ "value",
3221
+ "replayed",
3222
+ "writes"
3223
+ ],
3224
+ "additionalProperties": false
3225
+ },
3226
+ {
3227
+ "type": "object",
3228
+ "properties": {
3229
+ "ok": {
3230
+ "const": false
3231
+ },
3232
+ "issues": {
3233
+ "type": "array",
3234
+ "items": {
3235
+ "$ref": "#/$defs/issue"
3236
+ },
3237
+ "minItems": 1
3238
+ }
3239
+ },
3240
+ "required": [
3241
+ "ok",
3242
+ "issues"
3243
+ ],
3244
+ "additionalProperties": false
3245
+ }
3246
+ ]
3247
+ },
3248
+ "projectValue": {
3249
+ "type": "object",
3250
+ "properties": {
3251
+ "projectionReceiptId": {
3252
+ "$ref": "#/$defs/hash"
3253
+ },
3254
+ "applied": {
3255
+ "type": "integer",
3256
+ "minimum": 0
3257
+ },
3258
+ "missing": {
3259
+ "type": "integer",
3260
+ "minimum": 0
3261
+ },
3262
+ "changedMemoryWrites": {
3263
+ "type": "integer",
3264
+ "minimum": 0
3265
+ }
3266
+ },
3267
+ "required": [
3268
+ "projectionReceiptId",
3269
+ "applied",
3270
+ "missing",
3271
+ "changedMemoryWrites"
3272
+ ],
3273
+ "additionalProperties": false
3274
+ },
3275
+ "projectResult": {
3276
+ "oneOf": [
3277
+ {
3278
+ "type": "object",
3279
+ "properties": {
3280
+ "ok": {
3281
+ "const": true
3282
+ },
3283
+ "value": {
3284
+ "$ref": "#/$defs/projectValue"
3285
+ },
3286
+ "replayed": {
3287
+ "type": "boolean"
3288
+ },
3289
+ "writes": {
3290
+ "type": "integer",
3291
+ "minimum": 0
3292
+ }
3293
+ },
3294
+ "required": [
3295
+ "ok",
3296
+ "value",
3297
+ "replayed",
3298
+ "writes"
3299
+ ],
3300
+ "additionalProperties": false
3301
+ },
3302
+ {
3303
+ "type": "object",
3304
+ "properties": {
3305
+ "ok": {
3306
+ "const": false
3307
+ },
3308
+ "issues": {
3309
+ "type": "array",
3310
+ "items": {
3311
+ "$ref": "#/$defs/issue"
3312
+ },
3313
+ "minItems": 1
3314
+ }
3315
+ },
3316
+ "required": [
3317
+ "ok",
3318
+ "issues"
3319
+ ],
3320
+ "additionalProperties": false
3321
+ }
3322
+ ]
3323
+ },
3324
+ "reflectValue": {
3325
+ "type": "object",
3326
+ "properties": {
3327
+ "reflectionId": {
3328
+ "$ref": "#/$defs/hash"
3329
+ },
3330
+ "versionId": {
3331
+ "anyOf": [
3332
+ {
3333
+ "$ref": "#/$defs/hash"
3334
+ },
3335
+ {
3336
+ "type": "null"
3337
+ }
3338
+ ]
3339
+ },
3340
+ "noOp": {
3341
+ "type": "boolean"
3342
+ },
3343
+ "issues": {
3344
+ "type": "array",
3345
+ "items": {
3346
+ "$ref": "#/$defs/issue"
3347
+ }
3348
+ }
3349
+ },
3350
+ "required": [
3351
+ "reflectionId",
3352
+ "versionId",
3353
+ "noOp",
3354
+ "issues"
3355
+ ],
3356
+ "additionalProperties": false
3357
+ },
3358
+ "reflectResult": {
3359
+ "oneOf": [
3360
+ {
3361
+ "type": "object",
3362
+ "properties": {
3363
+ "ok": {
3364
+ "const": true
3365
+ },
3366
+ "value": {
3367
+ "$ref": "#/$defs/reflectValue"
3368
+ },
3369
+ "replayed": {
3370
+ "type": "boolean"
3371
+ },
3372
+ "writes": {
3373
+ "type": "integer",
3374
+ "minimum": 0
3375
+ }
3376
+ },
3377
+ "required": [
3378
+ "ok",
3379
+ "value",
3380
+ "replayed",
3381
+ "writes"
3382
+ ],
3383
+ "additionalProperties": false
3384
+ },
3385
+ {
3386
+ "type": "object",
3387
+ "properties": {
3388
+ "ok": {
3389
+ "const": false
3390
+ },
3391
+ "issues": {
3392
+ "type": "array",
3393
+ "items": {
3394
+ "$ref": "#/$defs/issue"
3395
+ },
3396
+ "minItems": 1
3397
+ }
3398
+ },
3399
+ "required": [
3400
+ "ok",
3401
+ "issues"
3402
+ ],
3403
+ "additionalProperties": false
3404
+ }
3405
+ ]
3406
+ },
3407
+ "evaluateValue": {
3408
+ "type": "object",
3409
+ "properties": {
3410
+ "evaluationId": {
3411
+ "$ref": "#/$defs/hash"
3412
+ },
3413
+ "eligible": {
3414
+ "type": "boolean"
3415
+ },
3416
+ "issues": {
3417
+ "type": "array",
3418
+ "items": {
3419
+ "$ref": "#/$defs/issue"
3420
+ }
3421
+ },
3422
+ "caseReportId": {
3423
+ "$ref": "#/$defs/hash"
3424
+ }
3425
+ },
3426
+ "required": [
3427
+ "evaluationId",
3428
+ "eligible",
3429
+ "issues",
3430
+ "caseReportId"
3431
+ ],
3432
+ "additionalProperties": false
3433
+ },
3434
+ "evaluateResult": {
3435
+ "oneOf": [
3436
+ {
3437
+ "type": "object",
3438
+ "properties": {
3439
+ "ok": {
3440
+ "const": true
3441
+ },
3442
+ "value": {
3443
+ "$ref": "#/$defs/evaluateValue"
3444
+ },
3445
+ "replayed": {
3446
+ "type": "boolean"
3447
+ },
3448
+ "writes": {
3449
+ "type": "integer",
3450
+ "minimum": 0
3451
+ }
3452
+ },
3453
+ "required": [
3454
+ "ok",
3455
+ "value",
3456
+ "replayed",
3457
+ "writes"
3458
+ ],
3459
+ "additionalProperties": false
3460
+ },
3461
+ {
3462
+ "type": "object",
3463
+ "properties": {
3464
+ "ok": {
3465
+ "const": false
3466
+ },
3467
+ "issues": {
3468
+ "type": "array",
3469
+ "items": {
3470
+ "$ref": "#/$defs/issue"
3471
+ },
3472
+ "minItems": 1
3473
+ }
3474
+ },
3475
+ "required": [
3476
+ "ok",
3477
+ "issues"
3478
+ ],
3479
+ "additionalProperties": false
3480
+ }
3481
+ ]
3482
+ },
3483
+ "approveValue": {
3484
+ "type": "object",
3485
+ "properties": {
3486
+ "approvalId": {
3487
+ "$ref": "#/$defs/hash"
3488
+ }
3489
+ },
3490
+ "required": [
3491
+ "approvalId"
3492
+ ],
3493
+ "additionalProperties": false
3494
+ },
3495
+ "approveResult": {
3496
+ "oneOf": [
3497
+ {
3498
+ "type": "object",
3499
+ "properties": {
3500
+ "ok": {
3501
+ "const": true
3502
+ },
3503
+ "value": {
3504
+ "$ref": "#/$defs/approveValue"
3505
+ },
3506
+ "replayed": {
3507
+ "type": "boolean"
3508
+ },
3509
+ "writes": {
3510
+ "type": "integer",
3511
+ "minimum": 0
3512
+ }
3513
+ },
3514
+ "required": [
3515
+ "ok",
3516
+ "value",
3517
+ "replayed",
3518
+ "writes"
3519
+ ],
3520
+ "additionalProperties": false
3521
+ },
3522
+ {
3523
+ "type": "object",
3524
+ "properties": {
3525
+ "ok": {
3526
+ "const": false
3527
+ },
3528
+ "issues": {
3529
+ "type": "array",
3530
+ "items": {
3531
+ "$ref": "#/$defs/issue"
3532
+ },
3533
+ "minItems": 1
3534
+ }
3535
+ },
3536
+ "required": [
3537
+ "ok",
3538
+ "issues"
3539
+ ],
3540
+ "additionalProperties": false
3541
+ }
3542
+ ]
3543
+ },
3544
+ "promoteValue": {
3545
+ "type": "object",
3546
+ "properties": {
3547
+ "activationEventId": {
3548
+ "$ref": "#/$defs/hash"
3549
+ },
3550
+ "head": {
3551
+ "$ref": "#/$defs/head"
3552
+ }
3553
+ },
3554
+ "required": [
3555
+ "activationEventId",
3556
+ "head"
3557
+ ],
3558
+ "additionalProperties": false
3559
+ },
3560
+ "promoteResult": {
3561
+ "oneOf": [
3562
+ {
3563
+ "type": "object",
3564
+ "properties": {
3565
+ "ok": {
3566
+ "const": true
3567
+ },
3568
+ "value": {
3569
+ "$ref": "#/$defs/promoteValue"
3570
+ },
3571
+ "replayed": {
3572
+ "type": "boolean"
3573
+ },
3574
+ "writes": {
3575
+ "type": "integer",
3576
+ "minimum": 0
3577
+ }
3578
+ },
3579
+ "required": [
3580
+ "ok",
3581
+ "value",
3582
+ "replayed",
3583
+ "writes"
3584
+ ],
3585
+ "additionalProperties": false
3586
+ },
3587
+ {
3588
+ "type": "object",
3589
+ "properties": {
3590
+ "ok": {
3591
+ "const": false
3592
+ },
3593
+ "issues": {
3594
+ "type": "array",
3595
+ "items": {
3596
+ "$ref": "#/$defs/issue"
3597
+ },
3598
+ "minItems": 1
3599
+ }
3600
+ },
3601
+ "required": [
3602
+ "ok",
3603
+ "issues"
3604
+ ],
3605
+ "additionalProperties": false
3606
+ }
3607
+ ]
3608
+ },
3609
+ "rollbackValue": {
3610
+ "type": "object",
3611
+ "properties": {
3612
+ "activationEventId": {
3613
+ "$ref": "#/$defs/hash"
3614
+ },
3615
+ "head": {
3616
+ "$ref": "#/$defs/head"
3617
+ }
3618
+ },
3619
+ "required": [
3620
+ "activationEventId",
3621
+ "head"
3622
+ ],
3623
+ "additionalProperties": false
3624
+ },
3625
+ "rollbackResult": {
3626
+ "oneOf": [
3627
+ {
3628
+ "type": "object",
3629
+ "properties": {
3630
+ "ok": {
3631
+ "const": true
3632
+ },
3633
+ "value": {
3634
+ "$ref": "#/$defs/rollbackValue"
3635
+ },
3636
+ "replayed": {
3637
+ "type": "boolean"
3638
+ },
3639
+ "writes": {
3640
+ "type": "integer",
3641
+ "minimum": 0
3642
+ }
3643
+ },
3644
+ "required": [
3645
+ "ok",
3646
+ "value",
3647
+ "replayed",
3648
+ "writes"
3649
+ ],
3650
+ "additionalProperties": false
3651
+ },
3652
+ {
3653
+ "type": "object",
3654
+ "properties": {
3655
+ "ok": {
3656
+ "const": false
3657
+ },
3658
+ "issues": {
3659
+ "type": "array",
3660
+ "items": {
3661
+ "$ref": "#/$defs/issue"
3662
+ },
3663
+ "minItems": 1
3664
+ }
3665
+ },
3666
+ "required": [
3667
+ "ok",
3668
+ "issues"
3669
+ ],
3670
+ "additionalProperties": false
3671
+ }
3672
+ ]
3673
+ },
3674
+ "injectValue": {
3675
+ "type": "object",
3676
+ "properties": {
3677
+ "payload": {
3678
+ "$ref": "#/$defs/json"
3679
+ },
3680
+ "versionId": {
3681
+ "$ref": "#/$defs/hash"
3682
+ },
3683
+ "evaluationId": {
3684
+ "$ref": "#/$defs/hash"
3685
+ },
3686
+ "activationEventId": {
3687
+ "$ref": "#/$defs/hash"
3688
+ },
3689
+ "head": {
3690
+ "$ref": "#/$defs/head"
3691
+ }
3692
+ },
3693
+ "required": [
3694
+ "payload",
3695
+ "versionId",
3696
+ "evaluationId",
3697
+ "activationEventId",
3698
+ "head"
3699
+ ],
3700
+ "additionalProperties": false
3701
+ },
3702
+ "injectResult": {
3703
+ "oneOf": [
3704
+ {
3705
+ "type": "object",
3706
+ "properties": {
3707
+ "ok": {
3708
+ "const": true
3709
+ },
3710
+ "value": {
3711
+ "$ref": "#/$defs/injectValue"
3712
+ },
3713
+ "replayed": {
3714
+ "type": "boolean"
3715
+ },
3716
+ "writes": {
3717
+ "type": "integer",
3718
+ "minimum": 0
3719
+ }
3720
+ },
3721
+ "required": [
3722
+ "ok",
3723
+ "value",
3724
+ "replayed",
3725
+ "writes"
3726
+ ],
3727
+ "additionalProperties": false
3728
+ },
3729
+ {
3730
+ "type": "object",
3731
+ "properties": {
3732
+ "ok": {
3733
+ "const": false
3734
+ },
3735
+ "issues": {
3736
+ "type": "array",
3737
+ "items": {
3738
+ "$ref": "#/$defs/issue"
3739
+ },
3740
+ "minItems": 1
3741
+ }
3742
+ },
3743
+ "required": [
3744
+ "ok",
3745
+ "issues"
3746
+ ],
3747
+ "additionalProperties": false
3748
+ }
3749
+ ]
3750
+ },
3751
+ "inspectValue": {
3752
+ "anyOf": [
3753
+ {
3754
+ "$ref": "#/$defs/outcomeRecord"
3755
+ },
3756
+ {
3757
+ "$ref": "#/$defs/inspection"
3758
+ }
3759
+ ]
3760
+ },
3761
+ "inspectResult": {
3762
+ "oneOf": [
3763
+ {
3764
+ "type": "object",
3765
+ "properties": {
3766
+ "ok": {
3767
+ "const": true
3768
+ },
3769
+ "value": {
3770
+ "$ref": "#/$defs/inspectValue"
3771
+ },
3772
+ "replayed": {
3773
+ "type": "boolean"
3774
+ },
3775
+ "writes": {
3776
+ "type": "integer",
3777
+ "minimum": 0
3778
+ }
3779
+ },
3780
+ "required": [
3781
+ "ok",
3782
+ "value",
3783
+ "replayed",
3784
+ "writes"
3785
+ ],
3786
+ "additionalProperties": false
3787
+ },
3788
+ {
3789
+ "type": "object",
3790
+ "properties": {
3791
+ "ok": {
3792
+ "const": false
3793
+ },
3794
+ "issues": {
3795
+ "type": "array",
3796
+ "items": {
3797
+ "$ref": "#/$defs/issue"
3798
+ },
3799
+ "minItems": 1
3800
+ }
3801
+ },
3802
+ "required": [
3803
+ "ok",
3804
+ "issues"
3805
+ ],
3806
+ "additionalProperties": false
3807
+ }
3808
+ ]
3809
+ },
3810
+ "historyValue": {
3811
+ "$ref": "#/$defs/historyPage"
3812
+ },
3813
+ "historyResult": {
3814
+ "oneOf": [
3815
+ {
3816
+ "type": "object",
3817
+ "properties": {
3818
+ "ok": {
3819
+ "const": true
3820
+ },
3821
+ "value": {
3822
+ "$ref": "#/$defs/historyValue"
3823
+ },
3824
+ "replayed": {
3825
+ "type": "boolean"
3826
+ },
3827
+ "writes": {
3828
+ "type": "integer",
3829
+ "minimum": 0
3830
+ }
3831
+ },
3832
+ "required": [
3833
+ "ok",
3834
+ "value",
3835
+ "replayed",
3836
+ "writes"
3837
+ ],
3838
+ "additionalProperties": false
3839
+ },
3840
+ {
3841
+ "type": "object",
3842
+ "properties": {
3843
+ "ok": {
3844
+ "const": false
3845
+ },
3846
+ "issues": {
3847
+ "type": "array",
3848
+ "items": {
3849
+ "$ref": "#/$defs/issue"
3850
+ },
3851
+ "minItems": 1
3852
+ }
3853
+ },
3854
+ "required": [
3855
+ "ok",
3856
+ "issues"
3857
+ ],
3858
+ "additionalProperties": false
3859
+ }
3860
+ ]
3861
+ },
3862
+ "reconcileValue": {
3863
+ "type": "object",
3864
+ "properties": {
3865
+ "attemptId": {
3866
+ "$ref": "#/$defs/hash"
3867
+ },
3868
+ "reconciliationId": {
3869
+ "$ref": "#/$defs/hash"
3870
+ },
3871
+ "state": {
3872
+ "enum": [
3873
+ "retryable",
3874
+ "ready"
3875
+ ]
3876
+ }
3877
+ },
3878
+ "required": [
3879
+ "attemptId",
3880
+ "reconciliationId",
3881
+ "state"
3882
+ ],
3883
+ "additionalProperties": false
3884
+ },
3885
+ "reconcileResult": {
3886
+ "oneOf": [
3887
+ {
3888
+ "type": "object",
3889
+ "properties": {
3890
+ "ok": {
3891
+ "const": true
3892
+ },
3893
+ "value": {
3894
+ "$ref": "#/$defs/reconcileValue"
3895
+ },
3896
+ "replayed": {
3897
+ "type": "boolean"
3898
+ },
3899
+ "writes": {
3900
+ "type": "integer",
3901
+ "minimum": 0
3902
+ }
3903
+ },
3904
+ "required": [
3905
+ "ok",
3906
+ "value",
3907
+ "replayed",
3908
+ "writes"
3909
+ ],
3910
+ "additionalProperties": false
3911
+ },
3912
+ {
3913
+ "type": "object",
3914
+ "properties": {
3915
+ "ok": {
3916
+ "const": false
3917
+ },
3918
+ "issues": {
3919
+ "type": "array",
3920
+ "items": {
3921
+ "$ref": "#/$defs/issue"
3922
+ },
3923
+ "minItems": 1
3924
+ }
3925
+ },
3926
+ "required": [
3927
+ "ok",
3928
+ "issues"
3929
+ ],
3930
+ "additionalProperties": false
3931
+ }
3932
+ ]
3933
+ }
3934
+ },
3935
+ "operations": {
3936
+ "outcomes.create": {
3937
+ "kind": "command",
3938
+ "input": {
3939
+ "$ref": "#/$defs/createCommand"
3940
+ },
3941
+ "output": {
3942
+ "$ref": "#/$defs/createResult"
3943
+ },
3944
+ "policy": {
3945
+ "idempotency": "none"
3946
+ }
3947
+ },
3948
+ "outcomes.resolve": {
3949
+ "kind": "command",
3950
+ "input": {
3951
+ "$ref": "#/$defs/resolveCommand"
3952
+ },
3953
+ "output": {
3954
+ "$ref": "#/$defs/resolveResult"
3955
+ },
3956
+ "policy": {
3957
+ "idempotency": "none"
3958
+ }
3959
+ },
3960
+ "outcomes.score": {
3961
+ "kind": "command",
3962
+ "input": {
3963
+ "$ref": "#/$defs/scoreCommand"
3964
+ },
3965
+ "output": {
3966
+ "$ref": "#/$defs/scoreResult"
3967
+ },
3968
+ "policy": {
3969
+ "idempotency": "none"
3970
+ }
3971
+ },
3972
+ "outcomes.project": {
3973
+ "kind": "command",
3974
+ "input": {
3975
+ "$ref": "#/$defs/projectCommand"
3976
+ },
3977
+ "output": {
3978
+ "$ref": "#/$defs/projectResult"
3979
+ },
3980
+ "policy": {
3981
+ "idempotency": "none"
3982
+ }
3983
+ },
3984
+ "outcomes.reflect": {
3985
+ "kind": "command",
3986
+ "input": {
3987
+ "$ref": "#/$defs/reflectCommand"
3988
+ },
3989
+ "output": {
3990
+ "$ref": "#/$defs/reflectResult"
3991
+ },
3992
+ "policy": {
3993
+ "idempotency": "none"
3994
+ }
3995
+ },
3996
+ "outcomes.evaluate": {
3997
+ "kind": "command",
3998
+ "input": {
3999
+ "$ref": "#/$defs/evaluateCommand"
4000
+ },
4001
+ "output": {
4002
+ "$ref": "#/$defs/evaluateResult"
4003
+ },
4004
+ "policy": {
4005
+ "idempotency": "none"
4006
+ }
4007
+ },
4008
+ "outcomes.approve": {
4009
+ "kind": "command",
4010
+ "input": {
4011
+ "$ref": "#/$defs/approveCommand"
4012
+ },
4013
+ "output": {
4014
+ "$ref": "#/$defs/approveResult"
4015
+ },
4016
+ "policy": {
4017
+ "idempotency": "none"
4018
+ }
4019
+ },
4020
+ "outcomes.promote": {
4021
+ "kind": "command",
4022
+ "input": {
4023
+ "$ref": "#/$defs/promoteCommand"
4024
+ },
4025
+ "output": {
4026
+ "$ref": "#/$defs/promoteResult"
4027
+ },
4028
+ "policy": {
4029
+ "idempotency": "none"
4030
+ }
4031
+ },
4032
+ "outcomes.rollback": {
4033
+ "kind": "command",
4034
+ "input": {
4035
+ "$ref": "#/$defs/rollbackCommand"
4036
+ },
4037
+ "output": {
4038
+ "$ref": "#/$defs/rollbackResult"
4039
+ },
4040
+ "policy": {
4041
+ "idempotency": "none"
4042
+ }
4043
+ },
4044
+ "outcomes.inject": {
4045
+ "kind": "read",
4046
+ "input": {
4047
+ "$ref": "#/$defs/injectCommand"
4048
+ },
4049
+ "output": {
4050
+ "$ref": "#/$defs/injectResult"
4051
+ }
4052
+ },
4053
+ "outcomes.inspect": {
4054
+ "kind": "read",
4055
+ "input": {
4056
+ "$ref": "#/$defs/inspectCommand"
4057
+ },
4058
+ "output": {
4059
+ "$ref": "#/$defs/inspectResult"
4060
+ }
4061
+ },
4062
+ "outcomes.history": {
4063
+ "kind": "read",
4064
+ "input": {
4065
+ "$ref": "#/$defs/historyCommand"
4066
+ },
4067
+ "output": {
4068
+ "$ref": "#/$defs/historyResult"
4069
+ }
4070
+ },
4071
+ "outcomes.reconcile": {
4072
+ "kind": "command",
4073
+ "input": {
4074
+ "$ref": "#/$defs/reconcileCommand"
4075
+ },
4076
+ "output": {
4077
+ "$ref": "#/$defs/reconcileResult"
4078
+ },
4079
+ "policy": {
4080
+ "idempotency": "none"
4081
+ }
4082
+ }
4083
+ }
4084
+ }