@sedum-dev/core 0.1.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1702 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "schemaVersion": {
6
+ "type": "number",
7
+ "const": 1
8
+ },
9
+ "runId": {
10
+ "type": "string",
11
+ "minLength": 1
12
+ },
13
+ "state": {
14
+ "type": "string",
15
+ "enum": [
16
+ "running",
17
+ "completed",
18
+ "interrupted",
19
+ "error"
20
+ ]
21
+ },
22
+ "verdict": {
23
+ "anyOf": [
24
+ {
25
+ "type": "string",
26
+ "enum": [
27
+ "passed",
28
+ "failed"
29
+ ]
30
+ },
31
+ {
32
+ "type": "null"
33
+ }
34
+ ]
35
+ },
36
+ "flags": {
37
+ "type": "array",
38
+ "items": {
39
+ "type": "string",
40
+ "enum": [
41
+ "low_confidence",
42
+ "contradiction"
43
+ ]
44
+ }
45
+ },
46
+ "startedAt": {
47
+ "type": "string",
48
+ "format": "date-time",
49
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
50
+ },
51
+ "updatedAt": {
52
+ "type": "string",
53
+ "format": "date-time",
54
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
55
+ },
56
+ "finishedAt": {
57
+ "anyOf": [
58
+ {
59
+ "type": "string",
60
+ "format": "date-time",
61
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
62
+ },
63
+ {
64
+ "type": "null"
65
+ }
66
+ ]
67
+ },
68
+ "elapsedMs": {
69
+ "type": "number",
70
+ "minimum": 0
71
+ },
72
+ "selectedTestCount": {
73
+ "type": "integer",
74
+ "minimum": 0,
75
+ "maximum": 9007199254740991
76
+ },
77
+ "execution": {
78
+ "type": "object",
79
+ "properties": {
80
+ "parallel": {
81
+ "type": "object",
82
+ "properties": {
83
+ "requested": {
84
+ "anyOf": [
85
+ {
86
+ "type": "integer",
87
+ "exclusiveMinimum": 0,
88
+ "maximum": 9007199254740991
89
+ },
90
+ {
91
+ "type": "string",
92
+ "const": "auto"
93
+ }
94
+ ]
95
+ },
96
+ "lanes": {
97
+ "type": "integer",
98
+ "exclusiveMinimum": 0,
99
+ "maximum": 9007199254740991
100
+ }
101
+ },
102
+ "required": [
103
+ "requested",
104
+ "lanes"
105
+ ],
106
+ "additionalProperties": false
107
+ },
108
+ "shard": {
109
+ "anyOf": [
110
+ {
111
+ "type": "object",
112
+ "properties": {
113
+ "index": {
114
+ "type": "integer",
115
+ "exclusiveMinimum": 0,
116
+ "maximum": 9007199254740991
117
+ },
118
+ "count": {
119
+ "type": "integer",
120
+ "exclusiveMinimum": 0,
121
+ "maximum": 9007199254740991
122
+ },
123
+ "globalSelectedTests": {
124
+ "type": "integer",
125
+ "minimum": 0,
126
+ "maximum": 9007199254740991
127
+ }
128
+ },
129
+ "required": [
130
+ "index",
131
+ "count",
132
+ "globalSelectedTests"
133
+ ],
134
+ "additionalProperties": false
135
+ },
136
+ {
137
+ "type": "null"
138
+ }
139
+ ]
140
+ },
141
+ "providerConcurrency": {
142
+ "type": "integer",
143
+ "exclusiveMinimum": 0,
144
+ "maximum": 9007199254740991
145
+ }
146
+ },
147
+ "required": [
148
+ "parallel",
149
+ "shard",
150
+ "providerConcurrency"
151
+ ],
152
+ "additionalProperties": false
153
+ },
154
+ "totals": {
155
+ "type": "object",
156
+ "properties": {
157
+ "selectedTests": {
158
+ "type": "integer",
159
+ "minimum": 0,
160
+ "maximum": 9007199254740991
161
+ },
162
+ "executedTests": {
163
+ "type": "integer",
164
+ "minimum": 0,
165
+ "maximum": 9007199254740991
166
+ },
167
+ "passedTests": {
168
+ "type": "integer",
169
+ "minimum": 0,
170
+ "maximum": 9007199254740991
171
+ },
172
+ "failedTests": {
173
+ "type": "integer",
174
+ "minimum": 0,
175
+ "maximum": 9007199254740991
176
+ },
177
+ "passedSteps": {
178
+ "type": "integer",
179
+ "minimum": 0,
180
+ "maximum": 9007199254740991
181
+ },
182
+ "failedSteps": {
183
+ "type": "integer",
184
+ "minimum": 0,
185
+ "maximum": 9007199254740991
186
+ },
187
+ "historicalAttempts": {
188
+ "type": "integer",
189
+ "minimum": 0,
190
+ "maximum": 9007199254740991
191
+ },
192
+ "flaggedSteps": {
193
+ "type": "integer",
194
+ "minimum": 0,
195
+ "maximum": 9007199254740991
196
+ },
197
+ "modelCalls": {
198
+ "type": "integer",
199
+ "minimum": 0,
200
+ "maximum": 9007199254740991
201
+ },
202
+ "inputTokens": {
203
+ "type": "integer",
204
+ "minimum": 0,
205
+ "maximum": 9007199254740991
206
+ },
207
+ "outputTokens": {
208
+ "type": "integer",
209
+ "minimum": 0,
210
+ "maximum": 9007199254740991
211
+ },
212
+ "costUsd": {
213
+ "anyOf": [
214
+ {
215
+ "type": "number",
216
+ "minimum": 0
217
+ },
218
+ {
219
+ "type": "null"
220
+ }
221
+ ]
222
+ },
223
+ "costComplete": {
224
+ "type": "boolean"
225
+ }
226
+ },
227
+ "required": [
228
+ "selectedTests",
229
+ "executedTests",
230
+ "passedTests",
231
+ "failedTests",
232
+ "passedSteps",
233
+ "failedSteps",
234
+ "historicalAttempts",
235
+ "flaggedSteps",
236
+ "modelCalls",
237
+ "inputTokens",
238
+ "outputTokens",
239
+ "costUsd",
240
+ "costComplete"
241
+ ],
242
+ "additionalProperties": false
243
+ },
244
+ "setupCalls": {
245
+ "type": "array",
246
+ "items": {
247
+ "type": "object",
248
+ "properties": {
249
+ "purpose": {
250
+ "type": "string",
251
+ "enum": [
252
+ "classification",
253
+ "locator",
254
+ "judge"
255
+ ]
256
+ },
257
+ "requestedModel": {
258
+ "type": "string",
259
+ "maxLength": 120
260
+ },
261
+ "model": {
262
+ "type": "string",
263
+ "maxLength": 120
264
+ },
265
+ "attempts": {
266
+ "type": "integer",
267
+ "minimum": 0,
268
+ "maximum": 9007199254740991
269
+ },
270
+ "inputTokens": {
271
+ "type": "integer",
272
+ "minimum": 0,
273
+ "maximum": 9007199254740991
274
+ },
275
+ "outputTokens": {
276
+ "type": "integer",
277
+ "minimum": 0,
278
+ "maximum": 9007199254740991
279
+ },
280
+ "apiMs": {
281
+ "anyOf": [
282
+ {
283
+ "type": "number",
284
+ "minimum": 0
285
+ },
286
+ {
287
+ "type": "null"
288
+ }
289
+ ]
290
+ },
291
+ "inputUsdPerMillion": {
292
+ "anyOf": [
293
+ {
294
+ "type": "number",
295
+ "minimum": 0
296
+ },
297
+ {
298
+ "type": "null"
299
+ }
300
+ ]
301
+ },
302
+ "outputUsdPerMillion": {
303
+ "anyOf": [
304
+ {
305
+ "type": "number",
306
+ "minimum": 0
307
+ },
308
+ {
309
+ "type": "null"
310
+ }
311
+ ]
312
+ },
313
+ "rateSource": {
314
+ "anyOf": [
315
+ {
316
+ "type": "string",
317
+ "maxLength": 120
318
+ },
319
+ {
320
+ "type": "null"
321
+ }
322
+ ]
323
+ },
324
+ "rateCheckedAt": {
325
+ "type": [
326
+ "string",
327
+ "null"
328
+ ]
329
+ },
330
+ "costUsd": {
331
+ "anyOf": [
332
+ {
333
+ "type": "number",
334
+ "minimum": 0
335
+ },
336
+ {
337
+ "type": "null"
338
+ }
339
+ ]
340
+ },
341
+ "rateLimited": {
342
+ "type": "boolean"
343
+ },
344
+ "rateLimitWaitMs": {
345
+ "type": "number",
346
+ "minimum": 0
347
+ },
348
+ "queueWaitMs": {
349
+ "type": "number",
350
+ "minimum": 0
351
+ }
352
+ },
353
+ "required": [
354
+ "purpose",
355
+ "requestedModel",
356
+ "model",
357
+ "attempts",
358
+ "inputTokens",
359
+ "outputTokens",
360
+ "apiMs",
361
+ "inputUsdPerMillion",
362
+ "outputUsdPerMillion",
363
+ "rateSource",
364
+ "rateCheckedAt",
365
+ "costUsd"
366
+ ],
367
+ "additionalProperties": false
368
+ }
369
+ },
370
+ "tests": {
371
+ "type": "array",
372
+ "items": {
373
+ "type": "object",
374
+ "properties": {
375
+ "id": {
376
+ "type": "string",
377
+ "minLength": 1
378
+ },
379
+ "file": {
380
+ "type": "string",
381
+ "minLength": 1
382
+ },
383
+ "description": {
384
+ "type": "string",
385
+ "maxLength": 512
386
+ },
387
+ "tags": {
388
+ "type": "array",
389
+ "items": {
390
+ "type": "string",
391
+ "maxLength": 120
392
+ }
393
+ },
394
+ "state": {
395
+ "type": "string",
396
+ "enum": [
397
+ "running",
398
+ "completed",
399
+ "interrupted",
400
+ "error"
401
+ ]
402
+ },
403
+ "verdict": {
404
+ "anyOf": [
405
+ {
406
+ "type": "string",
407
+ "enum": [
408
+ "passed",
409
+ "failed"
410
+ ]
411
+ },
412
+ {
413
+ "type": "null"
414
+ }
415
+ ]
416
+ },
417
+ "flags": {
418
+ "type": "array",
419
+ "items": {
420
+ "type": "string",
421
+ "enum": [
422
+ "low_confidence",
423
+ "contradiction"
424
+ ]
425
+ }
426
+ },
427
+ "selectedAttemptId": {
428
+ "type": [
429
+ "string",
430
+ "null"
431
+ ]
432
+ },
433
+ "attempts": {
434
+ "type": "array",
435
+ "items": {
436
+ "type": "object",
437
+ "properties": {
438
+ "id": {
439
+ "type": "string",
440
+ "minLength": 1
441
+ },
442
+ "ordinal": {
443
+ "type": "integer",
444
+ "exclusiveMinimum": 0,
445
+ "maximum": 9007199254740991
446
+ },
447
+ "state": {
448
+ "type": "string",
449
+ "enum": [
450
+ "running",
451
+ "completed",
452
+ "interrupted",
453
+ "error"
454
+ ]
455
+ },
456
+ "verdict": {
457
+ "anyOf": [
458
+ {
459
+ "type": "string",
460
+ "enum": [
461
+ "passed",
462
+ "failed"
463
+ ]
464
+ },
465
+ {
466
+ "type": "null"
467
+ }
468
+ ]
469
+ },
470
+ "flags": {
471
+ "type": "array",
472
+ "items": {
473
+ "type": "string",
474
+ "enum": [
475
+ "low_confidence",
476
+ "contradiction"
477
+ ]
478
+ }
479
+ },
480
+ "startedAt": {
481
+ "type": "string",
482
+ "format": "date-time",
483
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
484
+ },
485
+ "finishedAt": {
486
+ "anyOf": [
487
+ {
488
+ "type": "string",
489
+ "format": "date-time",
490
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
491
+ },
492
+ {
493
+ "type": "null"
494
+ }
495
+ ]
496
+ },
497
+ "elapsedMs": {
498
+ "type": "number",
499
+ "minimum": 0
500
+ },
501
+ "lane": {
502
+ "type": "integer",
503
+ "minimum": 0,
504
+ "maximum": 9007199254740991
505
+ },
506
+ "timeoutReason": {
507
+ "anyOf": [
508
+ {
509
+ "type": "string",
510
+ "maxLength": 120
511
+ },
512
+ {
513
+ "type": "null"
514
+ }
515
+ ]
516
+ },
517
+ "error": {
518
+ "anyOf": [
519
+ {
520
+ "type": "object",
521
+ "properties": {
522
+ "code": {
523
+ "type": "string",
524
+ "minLength": 1
525
+ },
526
+ "message": {
527
+ "type": "string",
528
+ "maxLength": 512
529
+ },
530
+ "callLog": {
531
+ "maxItems": 20,
532
+ "type": "array",
533
+ "items": {
534
+ "type": "string",
535
+ "maxLength": 512
536
+ }
537
+ }
538
+ },
539
+ "required": [
540
+ "code",
541
+ "message"
542
+ ],
543
+ "additionalProperties": false
544
+ },
545
+ {
546
+ "type": "null"
547
+ }
548
+ ]
549
+ },
550
+ "steps": {
551
+ "type": "array",
552
+ "items": {
553
+ "type": "object",
554
+ "properties": {
555
+ "id": {
556
+ "type": "string",
557
+ "minLength": 1
558
+ },
559
+ "index": {
560
+ "type": "integer",
561
+ "exclusiveMinimum": 0,
562
+ "maximum": 9007199254740991
563
+ },
564
+ "kind": {
565
+ "type": "string",
566
+ "enum": [
567
+ "action",
568
+ "verify",
569
+ "measure"
570
+ ]
571
+ },
572
+ "operation": {
573
+ "type": "string",
574
+ "maxLength": 80
575
+ },
576
+ "phase": {
577
+ "type": "string",
578
+ "enum": [
579
+ "before",
580
+ "steps",
581
+ "after"
582
+ ]
583
+ },
584
+ "sentence": {
585
+ "type": "string",
586
+ "maxLength": 512
587
+ },
588
+ "detail": {
589
+ "type": "string",
590
+ "maxLength": 512
591
+ },
592
+ "sourceStack": {
593
+ "minItems": 1,
594
+ "type": "array",
595
+ "items": {
596
+ "type": "object",
597
+ "properties": {
598
+ "file": {
599
+ "type": "string",
600
+ "minLength": 1
601
+ },
602
+ "line": {
603
+ "type": "integer",
604
+ "exclusiveMinimum": 0,
605
+ "maximum": 9007199254740991
606
+ },
607
+ "col": {
608
+ "type": "integer",
609
+ "exclusiveMinimum": 0,
610
+ "maximum": 9007199254740991
611
+ }
612
+ },
613
+ "required": [
614
+ "file",
615
+ "line",
616
+ "col"
617
+ ],
618
+ "additionalProperties": false
619
+ }
620
+ },
621
+ "state": {
622
+ "type": "string",
623
+ "enum": [
624
+ "running",
625
+ "completed",
626
+ "interrupted",
627
+ "error"
628
+ ]
629
+ },
630
+ "verdict": {
631
+ "anyOf": [
632
+ {
633
+ "type": "string",
634
+ "enum": [
635
+ "passed",
636
+ "failed"
637
+ ]
638
+ },
639
+ {
640
+ "type": "null"
641
+ }
642
+ ]
643
+ },
644
+ "flags": {
645
+ "type": "array",
646
+ "items": {
647
+ "type": "string",
648
+ "enum": [
649
+ "low_confidence",
650
+ "contradiction"
651
+ ]
652
+ }
653
+ },
654
+ "elapsedMs": {
655
+ "type": "number",
656
+ "minimum": 0
657
+ },
658
+ "page": {
659
+ "oneOf": [
660
+ {
661
+ "type": "object",
662
+ "properties": {
663
+ "status": {
664
+ "type": "string",
665
+ "const": "available"
666
+ },
667
+ "observationId": {
668
+ "type": "string",
669
+ "minLength": 1
670
+ },
671
+ "url": {
672
+ "type": "string",
673
+ "maxLength": 512
674
+ },
675
+ "title": {
676
+ "type": "string",
677
+ "maxLength": 120
678
+ }
679
+ },
680
+ "required": [
681
+ "status",
682
+ "observationId",
683
+ "url",
684
+ "title"
685
+ ],
686
+ "additionalProperties": false
687
+ },
688
+ {
689
+ "type": "object",
690
+ "properties": {
691
+ "status": {
692
+ "type": "string",
693
+ "const": "omitted"
694
+ },
695
+ "reason": {
696
+ "type": "string",
697
+ "minLength": 1
698
+ }
699
+ },
700
+ "required": [
701
+ "status",
702
+ "reason"
703
+ ],
704
+ "additionalProperties": false
705
+ },
706
+ {
707
+ "type": "object",
708
+ "properties": {
709
+ "status": {
710
+ "type": "string",
711
+ "const": "unavailable"
712
+ },
713
+ "reason": {
714
+ "type": "string",
715
+ "minLength": 1
716
+ }
717
+ },
718
+ "required": [
719
+ "status",
720
+ "reason"
721
+ ],
722
+ "additionalProperties": false
723
+ }
724
+ ]
725
+ },
726
+ "locator": {
727
+ "anyOf": [
728
+ {
729
+ "type": "object",
730
+ "properties": {
731
+ "confidence": {
732
+ "anyOf": [
733
+ {
734
+ "type": "number",
735
+ "minimum": 0,
736
+ "maximum": 1
737
+ },
738
+ {
739
+ "type": "null"
740
+ }
741
+ ]
742
+ },
743
+ "source": {
744
+ "type": "string",
745
+ "enum": [
746
+ "model",
747
+ "cache",
748
+ "none"
749
+ ]
750
+ },
751
+ "options": {
752
+ "maxItems": 5,
753
+ "type": "array",
754
+ "items": {
755
+ "type": "object",
756
+ "properties": {
757
+ "label": {
758
+ "type": "string",
759
+ "maxLength": 120
760
+ },
761
+ "role": {
762
+ "type": "string",
763
+ "maxLength": 80
764
+ },
765
+ "probability": {
766
+ "type": "number",
767
+ "minimum": 0,
768
+ "maximum": 1
769
+ }
770
+ },
771
+ "required": [
772
+ "label",
773
+ "role",
774
+ "probability"
775
+ ],
776
+ "additionalProperties": false
777
+ }
778
+ },
779
+ "cache": {
780
+ "anyOf": [
781
+ {
782
+ "type": "object",
783
+ "properties": {
784
+ "outcome": {
785
+ "type": "string",
786
+ "enum": [
787
+ "hit",
788
+ "miss",
789
+ "bypassed"
790
+ ]
791
+ },
792
+ "reason": {
793
+ "anyOf": [
794
+ {
795
+ "type": "string",
796
+ "maxLength": 120
797
+ },
798
+ {
799
+ "type": "null"
800
+ }
801
+ ]
802
+ },
803
+ "fallbackCalledModel": {
804
+ "type": "boolean"
805
+ },
806
+ "targetChanged": {
807
+ "type": "boolean"
808
+ }
809
+ },
810
+ "required": [
811
+ "outcome",
812
+ "reason",
813
+ "fallbackCalledModel",
814
+ "targetChanged"
815
+ ],
816
+ "additionalProperties": false
817
+ },
818
+ {
819
+ "type": "null"
820
+ }
821
+ ]
822
+ }
823
+ },
824
+ "required": [
825
+ "confidence",
826
+ "source",
827
+ "options",
828
+ "cache"
829
+ ],
830
+ "additionalProperties": false
831
+ },
832
+ {
833
+ "type": "null"
834
+ }
835
+ ]
836
+ },
837
+ "judgement": {
838
+ "anyOf": [
839
+ {
840
+ "type": "object",
841
+ "properties": {
842
+ "holds": {
843
+ "type": "number",
844
+ "minimum": 0,
845
+ "maximum": 1
846
+ },
847
+ "contradicted": {
848
+ "type": "number",
849
+ "minimum": 0,
850
+ "maximum": 1
851
+ },
852
+ "threshold": {
853
+ "anyOf": [
854
+ {
855
+ "type": "number",
856
+ "minimum": 0,
857
+ "maximum": 1
858
+ },
859
+ {
860
+ "type": "null"
861
+ }
862
+ ]
863
+ },
864
+ "band": {
865
+ "anyOf": [
866
+ {
867
+ "type": "number",
868
+ "minimum": 0,
869
+ "maximum": 1
870
+ },
871
+ {
872
+ "type": "null"
873
+ }
874
+ ]
875
+ },
876
+ "contradictionCutoff": {
877
+ "anyOf": [
878
+ {
879
+ "type": "number",
880
+ "minimum": 0,
881
+ "maximum": 1
882
+ },
883
+ {
884
+ "type": "null"
885
+ }
886
+ ]
887
+ },
888
+ "judgedExcerpt": {
889
+ "anyOf": [
890
+ {
891
+ "type": "string",
892
+ "maxLength": 1512
893
+ },
894
+ {
895
+ "type": "null"
896
+ }
897
+ ]
898
+ }
899
+ },
900
+ "required": [
901
+ "holds",
902
+ "contradicted",
903
+ "threshold",
904
+ "band",
905
+ "contradictionCutoff",
906
+ "judgedExcerpt"
907
+ ],
908
+ "additionalProperties": false
909
+ },
910
+ {
911
+ "type": "null"
912
+ }
913
+ ]
914
+ },
915
+ "observations": {
916
+ "type": "array",
917
+ "items": {
918
+ "type": "object",
919
+ "properties": {
920
+ "id": {
921
+ "type": "string",
922
+ "minLength": 1
923
+ },
924
+ "ordinal": {
925
+ "type": "integer",
926
+ "exclusiveMinimum": 0,
927
+ "maximum": 9007199254740991
928
+ },
929
+ "elapsedMs": {
930
+ "type": "number",
931
+ "minimum": 0
932
+ },
933
+ "outcome": {
934
+ "type": "string",
935
+ "enum": [
936
+ "accepted",
937
+ "retried",
938
+ "failed"
939
+ ]
940
+ },
941
+ "reason": {
942
+ "anyOf": [
943
+ {
944
+ "type": "string",
945
+ "maxLength": 120
946
+ },
947
+ {
948
+ "type": "null"
949
+ }
950
+ ]
951
+ },
952
+ "timeoutReason": {
953
+ "anyOf": [
954
+ {
955
+ "type": "string",
956
+ "maxLength": 120
957
+ },
958
+ {
959
+ "type": "null"
960
+ }
961
+ ]
962
+ }
963
+ },
964
+ "required": [
965
+ "id",
966
+ "ordinal",
967
+ "elapsedMs",
968
+ "outcome",
969
+ "reason",
970
+ "timeoutReason"
971
+ ],
972
+ "additionalProperties": false
973
+ }
974
+ },
975
+ "calls": {
976
+ "type": "array",
977
+ "items": {
978
+ "type": "object",
979
+ "properties": {
980
+ "purpose": {
981
+ "type": "string",
982
+ "enum": [
983
+ "classification",
984
+ "locator",
985
+ "judge"
986
+ ]
987
+ },
988
+ "requestedModel": {
989
+ "type": "string",
990
+ "maxLength": 120
991
+ },
992
+ "model": {
993
+ "type": "string",
994
+ "maxLength": 120
995
+ },
996
+ "attempts": {
997
+ "type": "integer",
998
+ "minimum": 0,
999
+ "maximum": 9007199254740991
1000
+ },
1001
+ "inputTokens": {
1002
+ "type": "integer",
1003
+ "minimum": 0,
1004
+ "maximum": 9007199254740991
1005
+ },
1006
+ "outputTokens": {
1007
+ "type": "integer",
1008
+ "minimum": 0,
1009
+ "maximum": 9007199254740991
1010
+ },
1011
+ "apiMs": {
1012
+ "anyOf": [
1013
+ {
1014
+ "type": "number",
1015
+ "minimum": 0
1016
+ },
1017
+ {
1018
+ "type": "null"
1019
+ }
1020
+ ]
1021
+ },
1022
+ "inputUsdPerMillion": {
1023
+ "anyOf": [
1024
+ {
1025
+ "type": "number",
1026
+ "minimum": 0
1027
+ },
1028
+ {
1029
+ "type": "null"
1030
+ }
1031
+ ]
1032
+ },
1033
+ "outputUsdPerMillion": {
1034
+ "anyOf": [
1035
+ {
1036
+ "type": "number",
1037
+ "minimum": 0
1038
+ },
1039
+ {
1040
+ "type": "null"
1041
+ }
1042
+ ]
1043
+ },
1044
+ "rateSource": {
1045
+ "anyOf": [
1046
+ {
1047
+ "type": "string",
1048
+ "maxLength": 120
1049
+ },
1050
+ {
1051
+ "type": "null"
1052
+ }
1053
+ ]
1054
+ },
1055
+ "rateCheckedAt": {
1056
+ "type": [
1057
+ "string",
1058
+ "null"
1059
+ ]
1060
+ },
1061
+ "costUsd": {
1062
+ "anyOf": [
1063
+ {
1064
+ "type": "number",
1065
+ "minimum": 0
1066
+ },
1067
+ {
1068
+ "type": "null"
1069
+ }
1070
+ ]
1071
+ },
1072
+ "rateLimited": {
1073
+ "type": "boolean"
1074
+ },
1075
+ "rateLimitWaitMs": {
1076
+ "type": "number",
1077
+ "minimum": 0
1078
+ },
1079
+ "queueWaitMs": {
1080
+ "type": "number",
1081
+ "minimum": 0
1082
+ }
1083
+ },
1084
+ "required": [
1085
+ "purpose",
1086
+ "requestedModel",
1087
+ "model",
1088
+ "attempts",
1089
+ "inputTokens",
1090
+ "outputTokens",
1091
+ "apiMs",
1092
+ "inputUsdPerMillion",
1093
+ "outputUsdPerMillion",
1094
+ "rateSource",
1095
+ "rateCheckedAt",
1096
+ "costUsd"
1097
+ ],
1098
+ "additionalProperties": false
1099
+ }
1100
+ },
1101
+ "error": {
1102
+ "anyOf": [
1103
+ {
1104
+ "type": "object",
1105
+ "properties": {
1106
+ "code": {
1107
+ "type": "string",
1108
+ "minLength": 1
1109
+ },
1110
+ "message": {
1111
+ "type": "string",
1112
+ "maxLength": 512
1113
+ },
1114
+ "callLog": {
1115
+ "maxItems": 20,
1116
+ "type": "array",
1117
+ "items": {
1118
+ "type": "string",
1119
+ "maxLength": 512
1120
+ }
1121
+ }
1122
+ },
1123
+ "required": [
1124
+ "code",
1125
+ "message"
1126
+ ],
1127
+ "additionalProperties": false
1128
+ },
1129
+ {
1130
+ "type": "null"
1131
+ }
1132
+ ]
1133
+ },
1134
+ "evidence": {
1135
+ "oneOf": [
1136
+ {
1137
+ "type": "object",
1138
+ "properties": {
1139
+ "status": {
1140
+ "type": "string",
1141
+ "const": "captured"
1142
+ },
1143
+ "path": {
1144
+ "type": "string",
1145
+ "pattern": "^(?!\\/)(?!.*(?:^|\\/)\\.\\.(?:\\/|$))[a-zA-Z0-9._/-]+$"
1146
+ },
1147
+ "mediaType": {
1148
+ "type": "string",
1149
+ "const": "image/jpeg"
1150
+ }
1151
+ },
1152
+ "required": [
1153
+ "status",
1154
+ "path",
1155
+ "mediaType"
1156
+ ],
1157
+ "additionalProperties": false
1158
+ },
1159
+ {
1160
+ "type": "object",
1161
+ "properties": {
1162
+ "status": {
1163
+ "type": "string",
1164
+ "const": "omitted"
1165
+ },
1166
+ "reason": {
1167
+ "type": "string",
1168
+ "minLength": 1
1169
+ }
1170
+ },
1171
+ "required": [
1172
+ "status",
1173
+ "reason"
1174
+ ],
1175
+ "additionalProperties": false
1176
+ },
1177
+ {
1178
+ "type": "object",
1179
+ "properties": {
1180
+ "status": {
1181
+ "type": "string",
1182
+ "const": "unavailable"
1183
+ },
1184
+ "reason": {
1185
+ "type": "string",
1186
+ "minLength": 1
1187
+ }
1188
+ },
1189
+ "required": [
1190
+ "status",
1191
+ "reason"
1192
+ ],
1193
+ "additionalProperties": false
1194
+ }
1195
+ ]
1196
+ },
1197
+ "replayFrame": {
1198
+ "anyOf": [
1199
+ {
1200
+ "oneOf": [
1201
+ {
1202
+ "type": "object",
1203
+ "properties": {
1204
+ "status": {
1205
+ "type": "string",
1206
+ "const": "captured"
1207
+ },
1208
+ "path": {
1209
+ "type": "string",
1210
+ "pattern": "^(?!\\/)(?!.*(?:^|\\/)\\.\\.(?:\\/|$))[a-zA-Z0-9._/-]+$"
1211
+ },
1212
+ "mediaType": {
1213
+ "type": "string",
1214
+ "const": "image/jpeg"
1215
+ }
1216
+ },
1217
+ "required": [
1218
+ "status",
1219
+ "path",
1220
+ "mediaType"
1221
+ ],
1222
+ "additionalProperties": false
1223
+ },
1224
+ {
1225
+ "type": "object",
1226
+ "properties": {
1227
+ "status": {
1228
+ "type": "string",
1229
+ "const": "omitted"
1230
+ },
1231
+ "reason": {
1232
+ "type": "string",
1233
+ "minLength": 1
1234
+ }
1235
+ },
1236
+ "required": [
1237
+ "status",
1238
+ "reason"
1239
+ ],
1240
+ "additionalProperties": false
1241
+ },
1242
+ {
1243
+ "type": "object",
1244
+ "properties": {
1245
+ "status": {
1246
+ "type": "string",
1247
+ "const": "unavailable"
1248
+ },
1249
+ "reason": {
1250
+ "type": "string",
1251
+ "minLength": 1
1252
+ }
1253
+ },
1254
+ "required": [
1255
+ "status",
1256
+ "reason"
1257
+ ],
1258
+ "additionalProperties": false
1259
+ }
1260
+ ]
1261
+ },
1262
+ {
1263
+ "type": "null"
1264
+ }
1265
+ ]
1266
+ },
1267
+ "targetBox": {
1268
+ "anyOf": [
1269
+ {
1270
+ "type": "object",
1271
+ "properties": {
1272
+ "x": {
1273
+ "type": "number",
1274
+ "minimum": 0,
1275
+ "maximum": 1
1276
+ },
1277
+ "y": {
1278
+ "type": "number",
1279
+ "minimum": 0,
1280
+ "maximum": 1
1281
+ },
1282
+ "width": {
1283
+ "type": "number",
1284
+ "minimum": 0,
1285
+ "maximum": 1
1286
+ },
1287
+ "height": {
1288
+ "type": "number",
1289
+ "minimum": 0,
1290
+ "maximum": 1
1291
+ }
1292
+ },
1293
+ "required": [
1294
+ "x",
1295
+ "y",
1296
+ "width",
1297
+ "height"
1298
+ ],
1299
+ "additionalProperties": false
1300
+ },
1301
+ {
1302
+ "type": "null"
1303
+ }
1304
+ ]
1305
+ }
1306
+ },
1307
+ "required": [
1308
+ "id",
1309
+ "index",
1310
+ "kind",
1311
+ "operation",
1312
+ "phase",
1313
+ "sentence",
1314
+ "detail",
1315
+ "sourceStack",
1316
+ "state",
1317
+ "verdict",
1318
+ "flags",
1319
+ "elapsedMs",
1320
+ "page",
1321
+ "locator",
1322
+ "judgement",
1323
+ "observations",
1324
+ "calls",
1325
+ "error",
1326
+ "evidence",
1327
+ "replayFrame",
1328
+ "targetBox"
1329
+ ],
1330
+ "additionalProperties": false
1331
+ }
1332
+ },
1333
+ "calls": {
1334
+ "type": "array",
1335
+ "items": {
1336
+ "type": "object",
1337
+ "properties": {
1338
+ "purpose": {
1339
+ "type": "string",
1340
+ "enum": [
1341
+ "classification",
1342
+ "locator",
1343
+ "judge"
1344
+ ]
1345
+ },
1346
+ "requestedModel": {
1347
+ "type": "string",
1348
+ "maxLength": 120
1349
+ },
1350
+ "model": {
1351
+ "type": "string",
1352
+ "maxLength": 120
1353
+ },
1354
+ "attempts": {
1355
+ "type": "integer",
1356
+ "minimum": 0,
1357
+ "maximum": 9007199254740991
1358
+ },
1359
+ "inputTokens": {
1360
+ "type": "integer",
1361
+ "minimum": 0,
1362
+ "maximum": 9007199254740991
1363
+ },
1364
+ "outputTokens": {
1365
+ "type": "integer",
1366
+ "minimum": 0,
1367
+ "maximum": 9007199254740991
1368
+ },
1369
+ "apiMs": {
1370
+ "anyOf": [
1371
+ {
1372
+ "type": "number",
1373
+ "minimum": 0
1374
+ },
1375
+ {
1376
+ "type": "null"
1377
+ }
1378
+ ]
1379
+ },
1380
+ "inputUsdPerMillion": {
1381
+ "anyOf": [
1382
+ {
1383
+ "type": "number",
1384
+ "minimum": 0
1385
+ },
1386
+ {
1387
+ "type": "null"
1388
+ }
1389
+ ]
1390
+ },
1391
+ "outputUsdPerMillion": {
1392
+ "anyOf": [
1393
+ {
1394
+ "type": "number",
1395
+ "minimum": 0
1396
+ },
1397
+ {
1398
+ "type": "null"
1399
+ }
1400
+ ]
1401
+ },
1402
+ "rateSource": {
1403
+ "anyOf": [
1404
+ {
1405
+ "type": "string",
1406
+ "maxLength": 120
1407
+ },
1408
+ {
1409
+ "type": "null"
1410
+ }
1411
+ ]
1412
+ },
1413
+ "rateCheckedAt": {
1414
+ "type": [
1415
+ "string",
1416
+ "null"
1417
+ ]
1418
+ },
1419
+ "costUsd": {
1420
+ "anyOf": [
1421
+ {
1422
+ "type": "number",
1423
+ "minimum": 0
1424
+ },
1425
+ {
1426
+ "type": "null"
1427
+ }
1428
+ ]
1429
+ },
1430
+ "rateLimited": {
1431
+ "type": "boolean"
1432
+ },
1433
+ "rateLimitWaitMs": {
1434
+ "type": "number",
1435
+ "minimum": 0
1436
+ },
1437
+ "queueWaitMs": {
1438
+ "type": "number",
1439
+ "minimum": 0
1440
+ }
1441
+ },
1442
+ "required": [
1443
+ "purpose",
1444
+ "requestedModel",
1445
+ "model",
1446
+ "attempts",
1447
+ "inputTokens",
1448
+ "outputTokens",
1449
+ "apiMs",
1450
+ "inputUsdPerMillion",
1451
+ "outputUsdPerMillion",
1452
+ "rateSource",
1453
+ "rateCheckedAt",
1454
+ "costUsd"
1455
+ ],
1456
+ "additionalProperties": false
1457
+ }
1458
+ },
1459
+ "problems": {
1460
+ "type": "array",
1461
+ "items": {
1462
+ "type": "object",
1463
+ "properties": {
1464
+ "id": {
1465
+ "type": "string",
1466
+ "minLength": 1
1467
+ },
1468
+ "ordinal": {
1469
+ "type": "integer",
1470
+ "exclusiveMinimum": 0,
1471
+ "maximum": 9007199254740991
1472
+ },
1473
+ "origin": {
1474
+ "type": "string",
1475
+ "enum": [
1476
+ "step",
1477
+ "module_binding"
1478
+ ]
1479
+ },
1480
+ "outcome": {
1481
+ "type": "string",
1482
+ "enum": [
1483
+ "failed",
1484
+ "error"
1485
+ ]
1486
+ },
1487
+ "phase": {
1488
+ "type": "string",
1489
+ "enum": [
1490
+ "before",
1491
+ "steps",
1492
+ "after"
1493
+ ]
1494
+ },
1495
+ "sourceStack": {
1496
+ "minItems": 1,
1497
+ "type": "array",
1498
+ "items": {
1499
+ "type": "object",
1500
+ "properties": {
1501
+ "file": {
1502
+ "type": "string",
1503
+ "minLength": 1
1504
+ },
1505
+ "line": {
1506
+ "type": "integer",
1507
+ "exclusiveMinimum": 0,
1508
+ "maximum": 9007199254740991
1509
+ },
1510
+ "col": {
1511
+ "type": "integer",
1512
+ "exclusiveMinimum": 0,
1513
+ "maximum": 9007199254740991
1514
+ }
1515
+ },
1516
+ "required": [
1517
+ "file",
1518
+ "line",
1519
+ "col"
1520
+ ],
1521
+ "additionalProperties": false
1522
+ }
1523
+ },
1524
+ "stepId": {
1525
+ "type": [
1526
+ "string",
1527
+ "null"
1528
+ ]
1529
+ },
1530
+ "error": {
1531
+ "type": "object",
1532
+ "properties": {
1533
+ "code": {
1534
+ "type": "string",
1535
+ "minLength": 1
1536
+ },
1537
+ "message": {
1538
+ "type": "string",
1539
+ "maxLength": 512
1540
+ },
1541
+ "callLog": {
1542
+ "maxItems": 20,
1543
+ "type": "array",
1544
+ "items": {
1545
+ "type": "string",
1546
+ "maxLength": 512
1547
+ }
1548
+ }
1549
+ },
1550
+ "required": [
1551
+ "code",
1552
+ "message"
1553
+ ],
1554
+ "additionalProperties": false
1555
+ }
1556
+ },
1557
+ "required": [
1558
+ "id",
1559
+ "ordinal",
1560
+ "origin",
1561
+ "outcome",
1562
+ "phase",
1563
+ "sourceStack",
1564
+ "stepId",
1565
+ "error"
1566
+ ],
1567
+ "additionalProperties": false
1568
+ }
1569
+ },
1570
+ "primaryProblemId": {
1571
+ "type": [
1572
+ "string",
1573
+ "null"
1574
+ ]
1575
+ }
1576
+ },
1577
+ "required": [
1578
+ "id",
1579
+ "ordinal",
1580
+ "state",
1581
+ "verdict",
1582
+ "flags",
1583
+ "startedAt",
1584
+ "finishedAt",
1585
+ "elapsedMs",
1586
+ "timeoutReason",
1587
+ "error",
1588
+ "steps",
1589
+ "problems",
1590
+ "primaryProblemId"
1591
+ ],
1592
+ "additionalProperties": false
1593
+ }
1594
+ }
1595
+ },
1596
+ "required": [
1597
+ "id",
1598
+ "file",
1599
+ "description",
1600
+ "tags",
1601
+ "state",
1602
+ "verdict",
1603
+ "flags",
1604
+ "selectedAttemptId",
1605
+ "attempts"
1606
+ ],
1607
+ "additionalProperties": false
1608
+ }
1609
+ },
1610
+ "discoveryProblems": {
1611
+ "type": "array",
1612
+ "items": {
1613
+ "type": "object",
1614
+ "properties": {
1615
+ "file": {
1616
+ "type": "string",
1617
+ "maxLength": 512
1618
+ },
1619
+ "line": {
1620
+ "type": "integer",
1621
+ "exclusiveMinimum": 0,
1622
+ "maximum": 9007199254740991
1623
+ },
1624
+ "col": {
1625
+ "type": "integer",
1626
+ "exclusiveMinimum": 0,
1627
+ "maximum": 9007199254740991
1628
+ },
1629
+ "code": {
1630
+ "type": "string",
1631
+ "maxLength": 120
1632
+ },
1633
+ "message": {
1634
+ "type": "string",
1635
+ "maxLength": 512
1636
+ },
1637
+ "fix": {
1638
+ "type": "string",
1639
+ "maxLength": 512
1640
+ }
1641
+ },
1642
+ "required": [
1643
+ "file",
1644
+ "code",
1645
+ "message",
1646
+ "fix"
1647
+ ],
1648
+ "additionalProperties": false
1649
+ }
1650
+ },
1651
+ "error": {
1652
+ "anyOf": [
1653
+ {
1654
+ "type": "object",
1655
+ "properties": {
1656
+ "code": {
1657
+ "type": "string",
1658
+ "minLength": 1
1659
+ },
1660
+ "message": {
1661
+ "type": "string",
1662
+ "maxLength": 512
1663
+ },
1664
+ "callLog": {
1665
+ "maxItems": 20,
1666
+ "type": "array",
1667
+ "items": {
1668
+ "type": "string",
1669
+ "maxLength": 512
1670
+ }
1671
+ }
1672
+ },
1673
+ "required": [
1674
+ "code",
1675
+ "message"
1676
+ ],
1677
+ "additionalProperties": false
1678
+ },
1679
+ {
1680
+ "type": "null"
1681
+ }
1682
+ ]
1683
+ }
1684
+ },
1685
+ "required": [
1686
+ "schemaVersion",
1687
+ "runId",
1688
+ "state",
1689
+ "verdict",
1690
+ "flags",
1691
+ "startedAt",
1692
+ "updatedAt",
1693
+ "finishedAt",
1694
+ "elapsedMs",
1695
+ "totals",
1696
+ "setupCalls",
1697
+ "tests",
1698
+ "error"
1699
+ ],
1700
+ "additionalProperties": false,
1701
+ "$id": "https://sedum.dev/schemas/run-result/v1"
1702
+ }