@toolproof-core/schema 1.0.11 → 1.0.13

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.
@@ -1,1786 +1,1786 @@
1
- {
2
- "identity": "TYPE-Genesis",
3
- "name": "Genesis",
4
- "description": "dummy-description",
5
- "nucleusSchema": {
6
- "$comment": "This file defines all schemas used internally by ToolProof.",
7
- "$id": "https://schemas.toolproof.com/v1/Genesis.json",
8
- "$schema": "https://json-schema.org/draft/2020-12/schema",
9
- "$defs": {
10
- "Name": {
11
- "identity": "TYPE-Name",
12
- "name": "Name",
13
- "description": "dummy-description",
14
- "nucleusSchema": {
15
- "$schema": "https://json-schema.org/draft/2020-12/schema",
16
- "type": "string",
17
- "minLength": 1,
18
- "pattern": "^(?:[A-Z][^0-9]*|[a-z]+/[a-z.+&-]+)$",
19
- "$comment": "Validation is intercepted by an AI Agent that verifies the name against Toolproof's naming conventions.",
20
- "semanticValidation": "Ajv custom keyword to verify name."
21
- }
22
- },
23
- "NameFacet": {
24
- "identity": "TYPE-NameFacet",
25
- "name": "NameFacet",
26
- "description": "dummy-description",
27
- "nucleusSchema": {
28
- "$schema": "https://json-schema.org/draft/2020-12/schema",
29
- "type": "object",
30
- "required": [
31
- "name"
32
- ],
33
- "properties": {
34
- "name": {
35
- "$ref": "#/$defs/Name"
36
- }
37
- }
38
- }
39
- },
40
- "Description": {
41
- "identity": "TYPE-Description",
42
- "name": "Description",
43
- "description": "dummy-description",
44
- "nucleusSchema": {
45
- "$schema": "https://json-schema.org/draft/2020-12/schema",
46
- "type": "string",
47
- "minLength": 1,
48
- "$comment": "Validation is intercepted by an AI Agent that verifies the description against Toolproof's documentation standards.",
49
- "semanticValidation": "Ajv custom keyword to verify description."
50
- }
51
- },
52
- "DescriptionFacet": {
53
- "identity": "TYPE-DescriptionFacet",
54
- "name": "DescriptionFacet",
55
- "description": "dummy-description",
56
- "nucleusSchema": {
57
- "$schema": "https://json-schema.org/draft/2020-12/schema",
58
- "type": "object",
59
- "required": [
60
- "description"
61
- ],
62
- "properties": {
63
- "description": {
64
- "$ref": "#/$defs/Description"
65
- }
66
- }
67
- }
68
- },
69
- "DocumentationFacet": {
70
- "identity": "TYPE-DocumentationFacet",
71
- "name": "DocumentationFacet",
72
- "description": "dummy-description",
73
- "nucleusSchema": {
74
- "$schema": "https://json-schema.org/draft/2020-12/schema",
75
- "type": "object",
76
- "allOf": [
77
- {
78
- "$ref": "#/$defs/NameFacet"
79
- },
80
- {
81
- "$ref": "#/$defs/DescriptionFacet"
82
- }
83
- ]
84
- }
85
- },
86
- "Uri": {
87
- "identity": "TYPE-Uri",
88
- "name": "Uri",
89
- "description": "dummy-description",
90
- "nucleusSchema": {
91
- "$schema": "https://json-schema.org/draft/2020-12/schema",
92
- "type": "string",
93
- "format": "uri"
94
- }
95
- },
96
- "ResourceTypeIdentity": {
97
- "identity": "TYPE-ResourceTypeIdentity",
98
- "name": "ResourceTypeIdentity",
99
- "description": "dummy-description",
100
- "nucleusSchema": {
101
- "$schema": "https://json-schema.org/draft/2020-12/schema",
102
- "type": "string",
103
- "pattern": "^TYPE-.+$"
104
- }
105
- },
106
- "ResourceType": {
107
- "identity": "TYPE-ResourceType",
108
- "name": "ResourceType",
109
- "description": "dummy-description",
110
- "nucleusSchema": {
111
- "$schema": "https://json-schema.org/draft/2020-12/schema",
112
- "type": "object",
113
- "required": [
114
- "identity",
115
- "nucleusSchema"
116
- ],
117
- "properties": {
118
- "identity": {
119
- "$ref": "#/$defs/ResourceTypeIdentity"
120
- },
121
- "nucleusSchema": true,
122
- "embeddingUriDict": {
123
- "type": "object",
124
- "propertyNames": {
125
- "type": "string",
126
- "pattern": "^EMBEDDING-.+$"
127
- },
128
- "additionalProperties": {
129
- "$ref": "#/$defs/Uri"
130
- },
131
- "minProperties": 1,
132
- "$comment": "A ResourceType may specify a set of embedding models that convert the raw data (or one of its alternative representations) into vector embeddings. The build process enforces that the keys of this dict are members of a set of predefined embedding models."
133
- },
134
- "generatorUriDict": {
135
- "type": "object",
136
- "propertyNames": {
137
- "type": "string",
138
- "pattern": "^GENERATOR-.+$"
139
- },
140
- "additionalProperties": {
141
- "$ref": "#/$defs/Uri"
142
- },
143
- "minProperties": 1,
144
- "$comment": "A ResourceType may specify a set of generators that generate different representations of its instances from the raw file. A ToolProof Resource is always backed by a raw file. This is also true for the Resources (of type ResourceType) defined in this file! The build process enforces that the keys of this dict are members of a set of predefined generators. GENERATOR-Json is an identifier for a generator that generates JSON data from the raw file. If the raw file is a JSON file, GENERATOR-Json is an implicit identity operation (i.e. an operation that does nothing) and must not be present in the dict. A ResourceType may also specify other generators, such as GENERATOR-LeanTerm, which generates an instance (or 'term' in Lean jargon) of a corresponding Lean type from the raw file. ResourceTypes that specify GENERATOR-LeanTerm must also specify a corresponding GENERATOR-LeanType. While the term-version runs when data instances enter the ecosystem, the type-version runs when the ResourceType itself enters the ecosystem."
145
- }
146
- },
147
- "allOf": [
148
- {
149
- "$ref": "#/$defs/DocumentationFacet"
150
- }
151
- ]
152
- }
153
- },
154
- "ResourceRoleIdentity": {
155
- "identity": "TYPE-ResourceRoleIdentity",
156
- "name": "ResourceRoleIdentity",
157
- "description": "dummy-description",
158
- "nucleusSchema": {
159
- "$schema": "https://json-schema.org/draft/2020-12/schema",
160
- "type": "string",
161
- "pattern": "^ROLE-.+$"
162
- }
163
- },
164
- "ResourceRoleValue": {
165
- "identity": "TYPE-ResourceRoleValue",
166
- "name": "ResourceRoleValue",
167
- "description": "dummy-description",
168
- "nucleusSchema": {
169
- "$schema": "https://json-schema.org/draft/2020-12/schema",
170
- "type": "object",
171
- "allOf": [
172
- {
173
- "required": [
174
- "resourceTypeHandle"
175
- ],
176
- "properties": {
177
- "resourceTypeHandle": {
178
- "$ref": "#/$defs/ResourceTypeIdentity"
179
- }
180
- }
181
- },
182
- {
183
- "$ref": "#/$defs/DocumentationFacet"
184
- }
185
- ]
186
- },
187
- "unevaluatedProperties": false
188
- },
189
- "ResourceRole": {
190
- "identity": "TYPE-ResourceRole",
191
- "name": "ResourceRole",
192
- "description": "dummy-description",
193
- "nucleusSchema": {
194
- "$schema": "https://json-schema.org/draft/2020-12/schema",
195
- "type": "object",
196
- "allOf": [
197
- {
198
- "type": "object",
199
- "required": [
200
- "identity"
201
- ],
202
- "properties": {
203
- "identity": {
204
- "$ref": "#/$defs/ResourceRoleIdentity"
205
- }
206
- }
207
- },
208
- {
209
- "$ref": "#/$defs/ResourceRoleValue"
210
- }
211
- ]
212
- },
213
- "unevaluatedProperties": false
214
- },
215
- "RoleDict": {
216
- "identity": "TYPE-RoleDict",
217
- "name": "RoleDict",
218
- "description": "dummy-description",
219
- "nucleusSchema": {
220
- "$schema": "https://json-schema.org/draft/2020-12/schema",
221
- "type": "object",
222
- "propertyNames": {
223
- "$ref": "#/$defs/ResourceRoleIdentity"
224
- },
225
- "additionalProperties": {
226
- "$ref": "#/$defs/ResourceRoleValue"
227
- }
228
- }
229
- },
230
- "Error": {
231
- "identity": "TYPE-Error",
232
- "name": "Error",
233
- "description": "dummy-description",
234
- "nucleusSchema": {
235
- "$schema": "https://json-schema.org/draft/2020-12/schema",
236
- "type": "object",
237
- "allOf": [
238
- {
239
- "$ref": "#/$defs/DocumentationFacet"
240
- },
241
- {
242
- "properties": {
243
- "details": {
244
- "type": "object"
245
- }
246
- }
247
- }
248
- ],
249
- "unevaluatedProperties": false
250
- }
251
- },
252
- "Roles": {
253
- "identity": "TYPE-Roles",
254
- "name": "Roles",
255
- "description": "dummy-description",
256
- "nucleusSchema": {
257
- "$schema": "https://json-schema.org/draft/2020-12/schema",
258
- "type": "object",
259
- "required": [
260
- "inputDict",
261
- "outputDict"
262
- ],
263
- "properties": {
264
- "inputDict": {
265
- "$ref": "#/$defs/RoleDict"
266
- },
267
- "outputDict": {
268
- "allOf": [
269
- {
270
- "$ref": "#/$defs/RoleDict"
271
- },
272
- {
273
- "type": "object",
274
- "required": [
275
- "ROLE-ErrorOutput"
276
- ],
277
- "properties": {
278
- "ROLE-ErrorOutput": {
279
- "type": "object",
280
- "allOf": [
281
- {
282
- "$ref": "#/$defs/ResourceRoleValue"
283
- },
284
- {
285
- "required": [
286
- "resourceTypeHandle",
287
- "name",
288
- "description"
289
- ],
290
- "properties": {
291
- "resourceTypeHandle": {
292
- "const": "TYPE-Error"
293
- },
294
- "name": {
295
- "const": "ErrorOutput"
296
- },
297
- "description": {
298
- "const": "Represents error outputs from job runs."
299
- }
300
- }
301
- }
302
- ]
303
- }
304
- }
305
- }
306
- ]
307
- }
308
- },
309
- "unevaluatedProperties": false
310
- }
311
- },
312
- "RolesFacet": {
313
- "identity": "TYPE-RolesFacet",
314
- "name": "RolesFacet",
315
- "description": "dummy-description",
316
- "nucleusSchema": {
317
- "$schema": "https://json-schema.org/draft/2020-12/schema",
318
- "type": "object",
319
- "required": [
320
- "roles"
321
- ],
322
- "properties": {
323
- "roles": {
324
- "$ref": "#/$defs/Roles"
325
- }
326
- }
327
- }
328
- },
329
- "JobIdentity": {
330
- "identity": "TYPE-JobIdentity",
331
- "name": "JobIdentity",
332
- "description": "dummy-description",
333
- "nucleusSchema": {
334
- "$schema": "https://json-schema.org/draft/2020-12/schema",
335
- "type": "string",
336
- "pattern": "^JOB-.+$"
337
- }
338
- },
339
- "Job": {
340
- "identity": "TYPE-Job",
341
- "name": "Job",
342
- "description": "dummy-description",
343
- "nucleusSchema": {
344
- "$schema": "https://json-schema.org/draft/2020-12/schema",
345
- "type": "object",
346
- "required": [
347
- "identity",
348
- "implementationUri"
349
- ],
350
- "properties": {
351
- "identity": {
352
- "$ref": "#/$defs/JobIdentity"
353
- },
354
- "implementationUri": {
355
- "$comment": "Instances of a ResourceType that requires implementationUri are 'executable' ResourceTypes. TYPE-Job is the canonical executable ResourceType in the ecosystem.",
356
- "$ref": "#/$defs/Uri"
357
- }
358
- },
359
- "allOf": [
360
- {
361
- "$ref": "#/$defs/DocumentationFacet"
362
- },
363
- {
364
- "$ref": "#/$defs/RolesFacet"
365
- }
366
- ],
367
- "unevaluatedProperties": false
368
- }
369
- },
370
- "RoleBindingArray": {
371
- "identity": "TYPE-RoleBindingArray",
372
- "name": "RoleBindingArray",
373
- "description": "dummy-description",
374
- "nucleusSchema": {
375
- "$schema": "https://json-schema.org/draft/2020-12/schema",
376
- "type": "array",
377
- "items": {
378
- "$ref": "#/$defs/ResourceRoleIdentity"
379
- }
380
- }
381
- },
382
- "RoleBindings": {
383
- "identity": "TYPE-RoleBindings",
384
- "name": "RoleBindings",
385
- "description": "dummy-description",
386
- "nucleusSchema": {
387
- "$schema": "https://json-schema.org/draft/2020-12/schema",
388
- "type": "object",
389
- "required": [
390
- "inputBindings",
391
- "outputBindings"
392
- ],
393
- "properties": {
394
- "inputBindings": {
395
- "$ref": "#/$defs/RoleBindingArray"
396
- },
397
- "outputBindings": {
398
- "$ref": "#/$defs/RoleBindingArray"
399
- }
400
- }
401
- },
402
- "unevaluatedProperties": false
403
- },
404
- "RoleBindingsFacet": {
405
- "identity": "TYPE-RoleBindingsFacet",
406
- "name": "RoleBindingsFacet",
407
- "description": "dummy-description",
408
- "nucleusSchema": {
409
- "$schema": "https://json-schema.org/draft/2020-12/schema",
410
- "type": "object",
411
- "required": [
412
- "roleBindings"
413
- ],
414
- "properties": {
415
- "roleBindings": {
416
- "$ref": "#/$defs/RoleBindings"
417
- }
418
- }
419
- }
420
- },
421
- "StepKind": {
422
- "identity": "TYPE-StepKind",
423
- "name": "StepKind",
424
- "description": "dummy-description",
425
- "nucleusSchema": {
426
- "$schema": "https://json-schema.org/draft/2020-12/schema",
427
- "type": "string",
428
- "enum": [
429
- "job",
430
- "branch",
431
- "while",
432
- "for"
433
- ]
434
- }
435
- },
436
- "StepKindFacet": {
437
- "identity": "TYPE-StepKindFacet",
438
- "name": "StepKindFacet",
439
- "description": "dummy-description",
440
- "nucleusSchema": {
441
- "$schema": "https://json-schema.org/draft/2020-12/schema",
442
- "type": "object",
443
- "required": [
444
- "stepKind"
445
- ],
446
- "properties": {
447
- "stepKind": {
448
- "$ref": "#/$defs/StepKind"
449
- }
450
- }
451
- }
452
- },
453
- "JobStepIdentity": {
454
- "identity": "TYPE-JobStepIdentity",
455
- "name": "JobStepIdentity",
456
- "description": "dummy-description",
457
- "nucleusSchema": {
458
- "$schema": "https://json-schema.org/draft/2020-12/schema",
459
- "type": "string",
460
- "pattern": "^JOB_STEP-.+$"
461
- }
462
- },
463
- "JobStep": {
464
- "identity": "TYPE-JobStep",
465
- "name": "JobStep",
466
- "description": "dummy-description",
467
- "nucleusSchema": {
468
- "$schema": "https://json-schema.org/draft/2020-12/schema",
469
- "type": "object",
470
- "required": [
471
- "identity",
472
- "stepKind",
473
- "jobHandle"
474
- ],
475
- "properties": {
476
- "identity": {
477
- "$ref": "#/$defs/JobStepIdentity"
478
- },
479
- "stepKind": {
480
- "const": "job"
481
- },
482
- "jobHandle": {
483
- "$ref": "#/$defs/JobIdentity"
484
- }
485
- },
486
- "allOf": [
487
- {
488
- "$ref": "#/$defs/StepKindFacet"
489
- },
490
- {
491
- "$comment": "This will be overlayed dynamically to specify roleBindings corresponding to the roles of the underlying job.",
492
- "$ref": "#/$defs/RoleBindingsFacet"
493
- }
494
- ]
495
- }
496
- },
497
- "Conditional": {
498
- "identity": "TYPE-Conditional",
499
- "name": "Conditional",
500
- "description": "dummy-description",
501
- "nucleusSchema": {
502
- "$schema": "https://json-schema.org/draft/2020-12/schema",
503
- "type": "object",
504
- "required": [
505
- "when",
506
- "what"
507
- ],
508
- "properties": {
509
- "when": {
510
- "$ref": "#/$defs/JobStep"
511
- },
512
- "what": {
513
- "$ref": "#/$defs/JobStep"
514
- }
515
- },
516
- "unevaluatedProperties": false
517
- }
518
- },
519
- "BranchStepIdentity": {
520
- "identity": "TYPE-BranchStepIdentity",
521
- "name": "BranchStepIdentity",
522
- "description": "dummy-description",
523
- "nucleusSchema": {
524
- "$schema": "https://json-schema.org/draft/2020-12/schema",
525
- "type": "string",
526
- "pattern": "^BRANCH_STEP-.+$"
527
- }
528
- },
529
- "BranchStep": {
530
- "identity": "TYPE-BranchStep",
531
- "name": "BranchStep",
532
- "description": "dummy-description",
533
- "nucleusSchema": {
534
- "$schema": "https://json-schema.org/draft/2020-12/schema",
535
- "type": "object",
536
- "required": [
537
- "identity",
538
- "stepKind",
539
- "cases"
540
- ],
541
- "properties": {
542
- "identity": {
543
- "$ref": "#/$defs/BranchStepIdentity"
544
- },
545
- "stepKind": {
546
- "const": "branch"
547
- },
548
- "cases": {
549
- "type": "array",
550
- "items": {
551
- "$ref": "#/$defs/Conditional"
552
- },
553
- "minItems": 1,
554
- "uniqueItems": true
555
- }
556
- },
557
- "allOf": [
558
- {
559
- "$ref": "#/$defs/StepKindFacet"
560
- }
561
- ]
562
- }
563
- },
564
- "WhileStepIdentity": {
565
- "identity": "TYPE-WhileStepIdentity",
566
- "name": "WhileStepIdentity",
567
- "description": "dummy-description",
568
- "nucleusSchema": {
569
- "$schema": "https://json-schema.org/draft/2020-12/schema",
570
- "type": "string",
571
- "pattern": "^WHILE_STEP-.+$"
572
- }
573
- },
574
- "WhileStep": {
575
- "identity": "TYPE-WhileStep",
576
- "name": "WhileStep",
577
- "description": "dummy-description",
578
- "nucleusSchema": {
579
- "$schema": "https://json-schema.org/draft/2020-12/schema",
580
- "type": "object",
581
- "required": [
582
- "identity",
583
- "stepKind",
584
- "case"
585
- ],
586
- "properties": {
587
- "identity": {
588
- "$ref": "#/$defs/WhileStepIdentity"
589
- },
590
- "stepKind": {
591
- "const": "while"
592
- },
593
- "case": {
594
- "$ref": "#/$defs/Conditional"
595
- }
596
- },
597
- "allOf": [
598
- {
599
- "$ref": "#/$defs/StepKindFacet"
600
- }
601
- ]
602
- }
603
- },
604
- "ForStepIdentity": {
605
- "identity": "TYPE-ForStepIdentity",
606
- "name": "ForStepIdentity",
607
- "description": "dummy-description",
608
- "nucleusSchema": {
609
- "$schema": "https://json-schema.org/draft/2020-12/schema",
610
- "type": "string",
611
- "pattern": "^FOR_STEP-.+$"
612
- }
613
- },
614
- "ForStep": {
615
- "identity": "TYPE-ForStep",
616
- "name": "ForStep",
617
- "description": "dummy-description",
618
- "nucleusSchema": {
619
- "$schema": "https://json-schema.org/draft/2020-12/schema",
620
- "type": "object",
621
- "required": [
622
- "identity",
623
- "stepKind",
624
- "case"
625
- ],
626
- "properties": {
627
- "identity": {
628
- "$ref": "#/$defs/ForStepIdentity"
629
- },
630
- "stepKind": {
631
- "const": "for"
632
- },
633
- "case": {
634
- "$ref": "#/$defs/Conditional"
635
- }
636
- },
637
- "allOf": [
638
- {
639
- "$ref": "#/$defs/StepKindFacet"
640
- }
641
- ]
642
- }
643
- },
644
- "StepIdentity": {
645
- "identity": "TYPE-StepIdentity",
646
- "name": "StepIdentity",
647
- "description": "dummy-description",
648
- "nucleusSchema": {
649
- "$schema": "https://json-schema.org/draft/2020-12/schema",
650
- "type": "object",
651
- "oneOf": [
652
- {
653
- "$ref": "#/$defs/JobStepIdentity"
654
- },
655
- {
656
- "$ref": "#/$defs/BranchStepIdentity"
657
- },
658
- {
659
- "$ref": "#/$defs/WhileStepIdentity"
660
- },
661
- {
662
- "$ref": "#/$defs/ForStepIdentity"
663
- }
664
- ]
665
- }
666
- },
667
- "Step": {
668
- "identity": "TYPE-Step",
669
- "name": "Step",
670
- "description": "dummy-description",
671
- "nucleusSchema": {
672
- "$schema": "https://json-schema.org/draft/2020-12/schema",
673
- "type": "object",
674
- "oneOf": [
675
- {
676
- "$ref": "#/$defs/JobStep"
677
- },
678
- {
679
- "$ref": "#/$defs/BranchStep"
680
- },
681
- {
682
- "$ref": "#/$defs/WhileStep"
683
- },
684
- {
685
- "$ref": "#/$defs/ForStep"
686
- }
687
- ],
688
- "unevaluatedProperties": false
689
- }
690
- },
691
- "CreationContext": {
692
- "identity": "TYPE-CreationContext",
693
- "name": "CreationContext",
694
- "description": "dummy-description",
695
- "nucleusSchema": {
696
- "$schema": "https://json-schema.org/draft/2020-12/schema",
697
- "type": "object",
698
- "required": [
699
- "resourceRoleHandle",
700
- "jobStepHandle"
701
- ],
702
- "properties": {
703
- "resourceRoleHandle": {
704
- "$ref": "#/$defs/ResourceRoleIdentity"
705
- },
706
- "jobStepHandle": {
707
- "$ref": "#/$defs/JobStepIdentity"
708
- }
709
- }
710
- }
711
- },
712
- "CreationContextFacet": {
713
- "identity": "TYPE-CreationContextFacet",
714
- "name": "CreationContextFacet",
715
- "description": "dummy-description",
716
- "nucleusSchema": {
717
- "$schema": "https://json-schema.org/draft/2020-12/schema",
718
- "type": "object",
719
- "required": [
720
- "creationContext"
721
- ],
722
- "properties": {
723
- "creationContext": {
724
- "$ref": "#/$defs/CreationContext"
725
- }
726
- }
727
- }
728
- },
729
- "ResourceIdentity": {
730
- "identity": "TYPE-ResourceIdentity",
731
- "name": "ResourceIdentity",
732
- "description": "dummy-description",
733
- "nucleusSchema": {
734
- "$schema": "https://json-schema.org/draft/2020-12/schema",
735
- "type": "string",
736
- "pattern": "^RESOURCE-.+$"
737
- }
738
- },
739
- "ResourceShellBase": {
740
- "identity": "TYPE-ResourceShellBase",
741
- "name": "ResourceShellBase",
742
- "description": "dummy-description",
743
- "nucleusSchema": {
744
- "$schema": "https://json-schema.org/draft/2020-12/schema",
745
- "type": "object",
746
- "required": [
747
- "identity",
748
- "resourceTypeHandle",
749
- "resourceShellKind"
750
- ],
751
- "properties": {
752
- "identity": {
753
- "$ref": "#/$defs/ResourceIdentity"
754
- },
755
- "resourceTypeHandle": {
756
- "$ref": "#/$defs/ResourceTypeIdentity"
757
- },
758
- "resourceShellKind": {
759
- "$ref": "#/$defs/ResourceShellKind"
760
- }
761
- }
762
- }
763
- },
764
- "ResourceShellKind": {
765
- "identity": "TYPE-ResourceShellKind",
766
- "name": "ResourceShellKind",
767
- "description": "dummy-description",
768
- "nucleusSchema": {
769
- "$schema": "https://json-schema.org/draft/2020-12/schema",
770
- "type": "string",
771
- "enum": [
772
- "missing",
773
- "inputPotential",
774
- "outputPotential",
775
- "materialized"
776
- ]
777
- }
778
- },
779
- "ResourceShellKindFacet": {
780
- "identity": "TYPE-ResourceShellKindFacet",
781
- "name": "ResourceShellKindFacet",
782
- "description": "dummy-description",
783
- "nucleusSchema": {
784
- "$schema": "https://json-schema.org/draft/2020-12/schema",
785
- "type": "object",
786
- "required": [
787
- "resourceShellKind"
788
- ],
789
- "properties": {
790
- "resourceShellKind": {
791
- "$ref": "#/$defs/ResourceShellKind"
792
- }
793
- }
794
- }
795
- },
796
- "ShellMissing": {
797
- "identity": "TYPE-ShellMissing",
798
- "name": "ShellMissing",
799
- "description": "dummy-description",
800
- "nucleusSchema": {
801
- "$schema": "https://json-schema.org/draft/2020-12/schema",
802
- "type": "object",
803
- "required": [
804
- "resourceShellKind"
805
- ],
806
- "properties": {
807
- "resourceShellKind": {
808
- "const": "missing"
809
- }
810
- },
811
- "allOf": [
812
- {
813
- "$ref": "#/$defs/ResourceShellBase"
814
- },
815
- {
816
- "$ref": "#/$defs/ResourceShellKindFacet"
817
- }
818
- ],
819
- "unevaluatedProperties": false
820
- }
821
- },
822
- "ShellInputPotential": {
823
- "identity": "TYPE-ShellInputPotential",
824
- "name": "ShellInputPotential",
825
- "description": "dummy-description",
826
- "nucleusSchema": {
827
- "$schema": "https://json-schema.org/draft/2020-12/schema",
828
- "type": "object",
829
- "required": [
830
- "resourceShellKind"
831
- ],
832
- "properties": {
833
- "resourceShellKind": {
834
- "const": "inputPotential"
835
- }
836
- },
837
- "allOf": [
838
- {
839
- "$ref": "#/$defs/ResourceShellBase"
840
- },
841
- {
842
- "$ref": "#/$defs/CreationContextFacet"
843
- },
844
- {
845
- "$ref": "#/$defs/ResourceShellKindFacet"
846
- }
847
- ],
848
- "unevaluatedProperties": false
849
- }
850
- },
851
- "ShellOutputPotential": {
852
- "identity": "TYPE-ShellOutputPotential",
853
- "name": "ShellOutputPotential",
854
- "description": "dummy-description",
855
- "nucleusSchema": {
856
- "$schema": "https://json-schema.org/draft/2020-12/schema",
857
- "type": "object",
858
- "required": [
859
- "resourceShellKind"
860
- ],
861
- "properties": {
862
- "resourceShellKind": {
863
- "const": "outputPotential"
864
- }
865
- },
866
- "allOf": [
867
- {
868
- "$ref": "#/$defs/ResourceShellBase"
869
- },
870
- {
871
- "$ref": "#/$defs/CreationContextFacet"
872
- },
873
- {
874
- "$ref": "#/$defs/ResourceShellKindFacet"
875
- }
876
- ],
877
- "unevaluatedProperties": false
878
- }
879
- },
880
- "Timestamp": {
881
- "identity": "TYPE-Timestamp",
882
- "name": "Timestamp",
883
- "description": "dummy-description",
884
- "nucleusSchema": {
885
- "$schema": "https://json-schema.org/draft/2020-12/schema",
886
- "type": "string",
887
- "format": "date-time"
888
- }
889
- },
890
- "TimestampFacet": {
891
- "identity": "TYPE-TimestampFacet",
892
- "name": "TimestampFacet",
893
- "description": "dummy-description",
894
- "nucleusSchema": {
895
- "$schema": "https://json-schema.org/draft/2020-12/schema",
896
- "type": "object",
897
- "required": [
898
- "timestamp"
899
- ],
900
- "properties": {
901
- "timestamp": {
902
- "$ref": "#/$defs/Timestamp"
903
- }
904
- }
905
- }
906
- },
907
- "Path": {
908
- "identity": "TYPE-Path",
909
- "name": "Path",
910
- "description": "dummy-description",
911
- "nucleusSchema": {
912
- "$schema": "https://json-schema.org/draft/2020-12/schema",
913
- "type": "string",
914
- "format": "uri-reference"
915
- }
916
- },
917
- "PathFacet": {
918
- "identity": "TYPE-PathFacet",
919
- "name": "PathFacet",
920
- "description": "dummy-description",
921
- "nucleusSchema": {
922
- "$schema": "https://json-schema.org/draft/2020-12/schema",
923
- "type": "object",
924
- "required": [
925
- "path"
926
- ],
927
- "properties": {
928
- "path": {
929
- "$ref": "#/$defs/Path"
930
- }
931
- }
932
- }
933
- },
934
- "ShellMaterializedBase": {
935
- "identity": "TYPE-ShellMaterializedBase",
936
- "name": "ShellMaterializedBase",
937
- "description": "dummy-description",
938
- "nucleusSchema": {
939
- "$schema": "https://json-schema.org/draft/2020-12/schema",
940
- "type": "object",
941
- "required": [
942
- "version",
943
- "resourceShellKind"
944
- ],
945
- "properties": {
946
- "version": {
947
- "const": 1
948
- },
949
- "resourceShellKind": {
950
- "const": "materialized"
951
- }
952
- },
953
- "allOf": [
954
- {
955
- "$ref": "#/$defs/ResourceShellBase"
956
- },
957
- {
958
- "$ref": "#/$defs/CreationContextFacet"
959
- },
960
- {
961
- "$ref": "#/$defs/ResourceShellKindFacet"
962
- },
963
- {
964
- "$ref": "#/$defs/TimestampFacet"
965
- },
966
- {
967
- "$ref": "#/$defs/PathFacet"
968
- }
969
- ]
970
- }
971
- },
972
- "ShellMaterialized": {
973
- "identity": "TYPE-ShellMaterialized",
974
- "name": "ShellMaterialized",
975
- "description": "dummy-description",
976
- "nucleusSchema": {
977
- "$schema": "https://json-schema.org/draft/2020-12/schema",
978
- "type": "object",
979
- "$ref": "#/$defs/ShellMaterializedBase",
980
- "unevaluatedProperties": false
981
- }
982
- },
983
- "ResourceMissing": {
984
- "identity": "TYPE-ResourceMissing",
985
- "name": "ResourceMissing",
986
- "description": "dummy-description",
987
- "nucleusSchema": {
988
- "$schema": "https://json-schema.org/draft/2020-12/schema",
989
- "type": "object",
990
- "$ref": "#/$defs/ShellMissing",
991
- "unevaluatedProperties": false
992
- }
993
- },
994
- "ResourceInputPotential": {
995
- "identity": "TYPE-ResourceInputPotential",
996
- "name": "ResourceInputPotential",
997
- "description": "dummy-description",
998
- "nucleusSchema": {
999
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1000
- "type": "object",
1001
- "$ref": "#/$defs/ShellInputPotential",
1002
- "unevaluatedProperties": false
1003
- }
1004
- },
1005
- "ResourceOutputPotential": {
1006
- "identity": "TYPE-ResourceOutputPotential",
1007
- "name": "ResourceOutputPotential",
1008
- "description": "dummy-description",
1009
- "nucleusSchema": {
1010
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1011
- "type": "object",
1012
- "$ref": "#/$defs/ShellOutputPotential",
1013
- "unevaluatedProperties": false
1014
- }
1015
- },
1016
- "ResourcePotential": {
1017
- "identity": "TYPE-ResourcePotential",
1018
- "name": "ResourcePotential",
1019
- "description": "dummy-description",
1020
- "nucleusSchema": {
1021
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1022
- "type": "object",
1023
- "oneOf": [
1024
- {
1025
- "$ref": "#/$defs/ResourceMissing"
1026
- },
1027
- {
1028
- "$ref": "#/$defs/ResourceInputPotential"
1029
- },
1030
- {
1031
- "$ref": "#/$defs/ResourceOutputPotential"
1032
- }
1033
- ],
1034
- "unevaluatedProperties": false
1035
- }
1036
- },
1037
- "JsonData": {
1038
- "identity": "TYPE-JsonData",
1039
- "name": "JsonData",
1040
- "description": "dummy-description",
1041
- "nucleusSchema": {
1042
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1043
- "oneOf": [
1044
- {
1045
- "type": "null"
1046
- },
1047
- {
1048
- "type": "boolean"
1049
- },
1050
- {
1051
- "type": "number"
1052
- },
1053
- {
1054
- "type": "string"
1055
- },
1056
- {
1057
- "type": "array",
1058
- "items": {
1059
- "$ref": "#/$defs/JsonData"
1060
- }
1061
- },
1062
- {
1063
- "type": "object",
1064
- "additionalProperties": {
1065
- "$ref": "#/$defs/JsonData"
1066
- }
1067
- }
1068
- ]
1069
- }
1070
- },
1071
- "Nucleus": {
1072
- "identity": "TYPE-Nucleus",
1073
- "name": "Nucleus",
1074
- "description": "dummy-description",
1075
- "nucleusSchema": {
1076
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1077
- "type": "object",
1078
- "additionalProperties": {
1079
- "$ref": "#/$defs/JsonData"
1080
- }
1081
- }
1082
- },
1083
- "NucleusFacet": {
1084
- "identity": "TYPE-NucleusFacet",
1085
- "name": "NucleusFacet",
1086
- "description": "dummy-description",
1087
- "nucleusSchema": {
1088
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1089
- "type": "object",
1090
- "required": [
1091
- "nucleus"
1092
- ],
1093
- "properties": {
1094
- "nucleus": true
1095
- }
1096
- }
1097
- },
1098
- "Resource": {
1099
- "identity": "TYPE-Resource",
1100
- "name": "Resource",
1101
- "description": "dummy-description",
1102
- "nucleusSchema": {
1103
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1104
- "type": "object",
1105
- "allOf": [
1106
- {
1107
- "$ref": "#/$defs/ShellMaterializedBase"
1108
- },
1109
- {
1110
- "$comment": "This will be overlayed dynamically to match the data structure of the underlying ResourceType's nucleusSchema.",
1111
- "$ref": "#/$defs/NucleusFacet"
1112
- }
1113
- ],
1114
- "unevaluatedProperties": false
1115
- }
1116
- },
1117
- "JobStepSocket": {
1118
- "identity": "TYPE-JobStepSocket",
1119
- "name": "JobStepSocket",
1120
- "description": "dummy-description",
1121
- "nucleusSchema": {
1122
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1123
- "type": "object",
1124
- "propertyNames": {
1125
- "$ref": "#/$defs/ResourceRoleIdentity"
1126
- },
1127
- "additionalProperties": {
1128
- "oneOf": [
1129
- {
1130
- "$ref": "#/$defs/ResourcePotential"
1131
- },
1132
- {
1133
- "$ref": "#/$defs/Resource"
1134
- }
1135
- ]
1136
- }
1137
- }
1138
- },
1139
- "StrategyState": {
1140
- "identity": "TYPE-StrategyState",
1141
- "name": "StrategyState",
1142
- "description": "dummy-description",
1143
- "nucleusSchema": {
1144
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1145
- "type": "object",
1146
- "propertyNames": {
1147
- "$ref": "#/$defs/JobStepIdentity"
1148
- },
1149
- "additionalProperties": {
1150
- "$ref": "#/$defs/JobStepSocket"
1151
- }
1152
- }
1153
- },
1154
- "StrategyStateFacet": {
1155
- "identity": "TYPE-StrategyStateFacet",
1156
- "name": "StrategyStateFacet",
1157
- "description": "dummy-description",
1158
- "nucleusSchema": {
1159
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1160
- "type": "object",
1161
- "required": [
1162
- "strategyState"
1163
- ],
1164
- "properties": {
1165
- "strategyState": {
1166
- "$ref": "#/$defs/StrategyState"
1167
- }
1168
- }
1169
- }
1170
- },
1171
- "StepArray": {
1172
- "identity": "TYPE-StepArray",
1173
- "name": "StepArray",
1174
- "description": "dummy-description",
1175
- "nucleusSchema": {
1176
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1177
- "type": "array",
1178
- "items": {
1179
- "$ref": "#/$defs/Step"
1180
- },
1181
- "uniqueItems": true
1182
- }
1183
- },
1184
- "StepsFacet": {
1185
- "identity": "TYPE-StepsFacet",
1186
- "name": "StepsFacet",
1187
- "description": "dummy-description",
1188
- "nucleusSchema": {
1189
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1190
- "type": "object",
1191
- "required": [
1192
- "steps"
1193
- ],
1194
- "properties": {
1195
- "steps": {
1196
- "$ref": "#/$defs/StepArray"
1197
- }
1198
- }
1199
- }
1200
- },
1201
- "RawStrategy": {
1202
- "identity": "TYPE-RawStrategy",
1203
- "name": "RawStrategy",
1204
- "description": "dummy-description",
1205
- "nucleusSchema": {
1206
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1207
- "type": "object",
1208
- "allOf": [
1209
- {
1210
- "$ref": "#/$defs/StepsFacet"
1211
- },
1212
- {
1213
- "$ref": "#/$defs/StrategyStateFacet"
1214
- }
1215
- ],
1216
- "unevaluatedProperties": false
1217
- }
1218
- },
1219
- "RunnableStrategyIdentity": {
1220
- "identity": "TYPE-RunnableStrategyIdentity",
1221
- "name": "RunnableStrategyIdentity",
1222
- "description": "dummy-description",
1223
- "nucleusSchema": {
1224
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1225
- "type": "string",
1226
- "pattern": "^RUNNABLE_STRATEGY-.+$"
1227
- }
1228
- },
1229
- "RunnableStrategyStatus": {
1230
- "identity": "TYPE-RunnableStrategyStatus",
1231
- "name": "RunnableStrategyStatus",
1232
- "description": "dummy-description",
1233
- "nucleusSchema": {
1234
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1235
- "type": "string",
1236
- "enum": [
1237
- "pending",
1238
- "running",
1239
- "completed",
1240
- "failed",
1241
- "cancelled"
1242
- ]
1243
- }
1244
- },
1245
- "RunnableStrategyContext": {
1246
- "identity": "TYPE-RunnableStrategyContext",
1247
- "name": "RunnableStrategyContext",
1248
- "description": "dummy-description",
1249
- "nucleusSchema": {
1250
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1251
- "type": "object",
1252
- "required": [
1253
- "status"
1254
- ],
1255
- "properties": {
1256
- "status": {
1257
- "$ref": "#/$defs/RunnableStrategyStatus"
1258
- },
1259
- "startedAt": {
1260
- "$ref": "#/$defs/Timestamp"
1261
- },
1262
- "completedAt": {
1263
- "$ref": "#/$defs/Timestamp"
1264
- }
1265
- },
1266
- "unevaluatedProperties": false
1267
- }
1268
- },
1269
- "StrategyThreadIdentity": {
1270
- "identity": "TYPE-StrategyThreadIdentity",
1271
- "name": "StrategyThreadIdentity",
1272
- "description": "dummy-description",
1273
- "nucleusSchema": {
1274
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1275
- "type": "string",
1276
- "pattern": "^STRATEGY_THREAD-.+$"
1277
- }
1278
- },
1279
- "StrategyThreadDict": {
1280
- "identity": "TYPE-StrategyThreadDict",
1281
- "name": "StrategyThreadDict",
1282
- "description": "dummy-description",
1283
- "nucleusSchema": {
1284
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1285
- "type": "object",
1286
- "propertyNames": {
1287
- "$ref": "#/$defs/StrategyThreadIdentity"
1288
- },
1289
- "additionalProperties": {
1290
- "$ref": "#/$defs/StepArray"
1291
- },
1292
- "$comment": "Each thread contains an array of steps, allowing for sequential execution within a thread while supporting parallel execution across multiple threads."
1293
- }
1294
- },
1295
- "StrategyThreadDictFacet": {
1296
- "identity": "TYPE-StrategyThreadDictFacet",
1297
- "name": "StrategyThreadDictFacet",
1298
- "description": "dummy-description",
1299
- "nucleusSchema": {
1300
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1301
- "type": "object",
1302
- "required": [
1303
- "strategyThreadDict"
1304
- ],
1305
- "properties": {
1306
- "strategyThreadDict": {
1307
- "$ref": "#/$defs/StrategyThreadDict"
1308
- }
1309
- }
1310
- }
1311
- },
1312
- "RunnableStrategy": {
1313
- "identity": "TYPE-RunnableStrategy",
1314
- "name": "RunnableStrategy",
1315
- "description": "dummy-description",
1316
- "nucleusSchema": {
1317
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1318
- "type": "object",
1319
- "required": [
1320
- "identity",
1321
- "runnableStrategyContext"
1322
- ],
1323
- "properties": {
1324
- "identity": {
1325
- "$ref": "#/$defs/RunnableStrategyIdentity"
1326
- },
1327
- "runnableStrategyContext": {
1328
- "$ref": "#/$defs/RunnableStrategyContext"
1329
- }
1330
- },
1331
- "allOf": [
1332
- {
1333
- "$comment": "The Engine runs jobs specified by steps in strategyThreadDict. The Engine also injects repeted steps when encountering loops.",
1334
- "$ref": "#/$defs/StrategyThreadDictFacet"
1335
- },
1336
- {
1337
- "$comment": "The Engine updates strategyState with materialized Resources upon job completions and runtime-provided input events. It also inserts inputPotential and outputPotential Resources upon step injections.",
1338
- "$ref": "#/$defs/StrategyStateFacet"
1339
- }
1340
- ],
1341
- "unevaluatedProperties": false
1342
- }
1343
- },
1344
- "StrategyStateDelta": {
1345
- "identity": "TYPE-StrategyStateDelta",
1346
- "name": "StrategyStateDelta",
1347
- "description": "dummy-description",
1348
- "nucleusSchema": {
1349
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1350
- "type": "object",
1351
- "required": [
1352
- "strategyStateUpdate"
1353
- ],
1354
- "properties": {
1355
- "strategyStateUpdate": {
1356
- "$ref": "#/$defs/StrategyState"
1357
- }
1358
- }
1359
- }
1360
- },
1361
- "RunnableStrategyUpdate": {
1362
- "identity": "TYPE-RunnableStrategyUpdate",
1363
- "name": "RunnableStrategyUpdate",
1364
- "description": "dummy-description",
1365
- "nucleusSchema": {
1366
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1367
- "type": "object",
1368
- "required": [
1369
- "runnableStrategyHandle"
1370
- ],
1371
- "properties": {
1372
- "runnableStrategyHandle": {
1373
- "$ref": "#/$defs/RunnableStrategyIdentity"
1374
- }
1375
- },
1376
- "allOf": [
1377
- {
1378
- "$ref": "#/$defs/StrategyStateDelta"
1379
- }
1380
- ],
1381
- "unevaluatedProperties": false
1382
- }
1383
- },
1384
- "RunEventCounters": {
1385
- "identity": "TYPE-RunEventCounters",
1386
- "name": "RunEventCounters",
1387
- "description": "dummy-description",
1388
- "nucleusSchema": {
1389
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1390
- "type": "object",
1391
- "properties": {
1392
- "stepCounterAfter": {
1393
- "type": "integer"
1394
- },
1395
- "iterationCounterAfter": {
1396
- "type": "integer"
1397
- }
1398
- }
1399
- }
1400
- },
1401
- "RunEventStepMetadata": {
1402
- "identity": "TYPE-RunEventStepMetadata",
1403
- "name": "RunEventStepMetadata",
1404
- "description": "dummy-description",
1405
- "nucleusSchema": {
1406
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1407
- "type": "object",
1408
- "required": [
1409
- "stepHandle",
1410
- "stepKind",
1411
- "threadStepIndex"
1412
- ],
1413
- "properties": {
1414
- "stepHandle": {
1415
- "$ref": "#/$defs/StepIdentity"
1416
- },
1417
- "stepKind": {
1418
- "$ref": "#/$defs/StepKind"
1419
- },
1420
- "threadStepIndex": {
1421
- "type": "integer"
1422
- }
1423
- }
1424
- }
1425
- },
1426
- "RunEventUpdates": {
1427
- "identity": "TYPE-RunEventUpdates",
1428
- "name": "RunEventUpdates",
1429
- "description": "dummy-description",
1430
- "nucleusSchema": {
1431
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1432
- "type": "object",
1433
- "properties": {
1434
- "stepsMutation": {
1435
- "type": "object",
1436
- "required": [
1437
- "insertAt",
1438
- "inserted"
1439
- ],
1440
- "properties": {
1441
- "insertAt": {
1442
- "type": "integer"
1443
- },
1444
- "inserted": {
1445
- "$ref": "#/$defs/StepArray"
1446
- }
1447
- }
1448
- },
1449
- "interruptData": {
1450
- "$comment": "Kept permissive; the engine may evolve interrupt payloads.",
1451
- "type": [
1452
- "object",
1453
- "null"
1454
- ]
1455
- }
1456
- },
1457
- "allOf": [
1458
- {
1459
- "$ref": "#/$defs/StrategyStateDelta"
1460
- }
1461
- ]
1462
- }
1463
- },
1464
- "RunEventKind": {
1465
- "identity": "TYPE-RunEventKind",
1466
- "name": "RunEventKind",
1467
- "description": "dummy-description",
1468
- "nucleusSchema": {
1469
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1470
- "type": "string",
1471
- "enum": [
1472
- "graph_start",
1473
- "tick",
1474
- "interrupt",
1475
- "graph_end"
1476
- ]
1477
- }
1478
- },
1479
- "RunEventBase": {
1480
- "identity": "TYPE-RunEventBase",
1481
- "name": "RunEventBase",
1482
- "description": "dummy-description",
1483
- "nucleusSchema": {
1484
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1485
- "type": "object",
1486
- "required": [
1487
- "runEventKind",
1488
- "runnableStrategyHandle",
1489
- "strategyThreadHandle",
1490
- "createdAt",
1491
- "nodeName",
1492
- "eventSeq"
1493
- ],
1494
- "properties": {
1495
- "runEventKind": {
1496
- "$ref": "#/$defs/RunEventKind"
1497
- },
1498
- "runnableStrategyHandle": {
1499
- "$ref": "#/$defs/RunnableStrategyIdentity"
1500
- },
1501
- "strategyThreadHandle": {
1502
- "$ref": "#/$defs/StrategyThreadIdentity"
1503
- },
1504
- "createdAt": {
1505
- "$ref": "#/$defs/Timestamp"
1506
- },
1507
- "nodeName": {
1508
- "type": "string"
1509
- },
1510
- "eventSeq": {
1511
- "type": "integer"
1512
- },
1513
- "counters": {
1514
- "$ref": "#/$defs/RunEventCounters"
1515
- },
1516
- "stepMetadata": {
1517
- "$ref": "#/$defs/RunEventStepMetadata"
1518
- },
1519
- "updates": {
1520
- "$ref": "#/$defs/RunEventUpdates"
1521
- }
1522
- }
1523
- }
1524
- },
1525
- "GraphStartRunEvent": {
1526
- "identity": "TYPE-GraphStartRunEvent",
1527
- "name": "GraphStartRunEvent",
1528
- "description": "dummy-description",
1529
- "nucleusSchema": {
1530
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1531
- "allOf": [
1532
- {
1533
- "$ref": "#/$defs/RunEventBase"
1534
- },
1535
- {
1536
- "type": "object",
1537
- "required": [
1538
- "runnableStrategySeed"
1539
- ],
1540
- "properties": {
1541
- "runEventKind": {
1542
- "const": "graph_start"
1543
- },
1544
- "runnableStrategySeed": {
1545
- "$ref": "#/$defs/RunnableStrategy"
1546
- }
1547
- }
1548
- }
1549
- ]
1550
- }
1551
- },
1552
- "TickRunEvent": {
1553
- "identity": "TYPE-TickRunEvent",
1554
- "name": "TickRunEvent",
1555
- "description": "dummy-description",
1556
- "nucleusSchema": {
1557
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1558
- "allOf": [
1559
- {
1560
- "$ref": "#/$defs/RunEventBase"
1561
- },
1562
- {
1563
- "type": "object",
1564
- "properties": {
1565
- "runEventKind": {
1566
- "const": "tick"
1567
- }
1568
- }
1569
- }
1570
- ]
1571
- }
1572
- },
1573
- "InterruptRunEvent": {
1574
- "identity": "TYPE-InterruptRunEvent",
1575
- "name": "InterruptRunEvent",
1576
- "description": "dummy-description",
1577
- "nucleusSchema": {
1578
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1579
- "allOf": [
1580
- {
1581
- "$ref": "#/$defs/RunEventBase"
1582
- },
1583
- {
1584
- "type": "object",
1585
- "properties": {
1586
- "runEventKind": {
1587
- "const": "interrupt"
1588
- }
1589
- }
1590
- }
1591
- ]
1592
- }
1593
- },
1594
- "GraphEndRunEvent": {
1595
- "identity": "TYPE-GraphEndRunEvent",
1596
- "name": "GraphEndRunEvent",
1597
- "description": "dummy-description",
1598
- "nucleusSchema": {
1599
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1600
- "allOf": [
1601
- {
1602
- "$ref": "#/$defs/RunEventBase"
1603
- },
1604
- {
1605
- "type": "object",
1606
- "properties": {
1607
- "runEventKind": {
1608
- "const": "graph_end"
1609
- }
1610
- }
1611
- }
1612
- ]
1613
- }
1614
- },
1615
- "RunEvent": {
1616
- "identity": "TYPE-RunEvent",
1617
- "name": "RunEvent",
1618
- "description": "dummy-description",
1619
- "nucleusSchema": {
1620
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1621
- "type": "object",
1622
- "oneOf": [
1623
- {
1624
- "$ref": "#/$defs/GraphStartRunEvent"
1625
- },
1626
- {
1627
- "$ref": "#/$defs/TickRunEvent"
1628
- },
1629
- {
1630
- "$ref": "#/$defs/InterruptRunEvent"
1631
- },
1632
- {
1633
- "$ref": "#/$defs/GraphEndRunEvent"
1634
- }
1635
- ]
1636
- }
1637
- },
1638
- "StrategyRunIdentity": {
1639
- "identity": "TYPE-StrategyRunIdentity",
1640
- "name": "StrategyRunIdentity",
1641
- "description": "dummy-description",
1642
- "nucleusSchema": {
1643
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1644
- "type": "string",
1645
- "pattern": "^STRATEGY_RUN-.+$"
1646
- }
1647
- },
1648
- "StrategyRun": {
1649
- "identity": "TYPE-StrategyRun",
1650
- "name": "StrategyRun",
1651
- "description": "dummy-description",
1652
- "nucleusSchema": {
1653
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1654
- "type": "object",
1655
- "required": [
1656
- "identity",
1657
- "runnableStrategyHandle",
1658
- "recordedAt",
1659
- "runEvents"
1660
- ],
1661
- "properties": {
1662
- "identity": {
1663
- "$ref": "#/$defs/StrategyRunIdentity"
1664
- },
1665
- "runnableStrategyHandle": {
1666
- "$comment": "Could be derived from the first event but useful for indexing.",
1667
- "$ref": "#/$defs/RunnableStrategyIdentity"
1668
- },
1669
- "recordedAt": {
1670
- "$ref": "#/$defs/Timestamp"
1671
- },
1672
- "runEvents": {
1673
- "type": "array",
1674
- "items": {
1675
- "$ref": "#/$defs/RunEvent"
1676
- }
1677
- }
1678
- },
1679
- "unevaluatedProperties": false
1680
- }
1681
- },
1682
- "GoalIdentity": {
1683
- "identity": "TYPE-GoalIdentity",
1684
- "name": "GoalIdentity",
1685
- "description": "dummy-description",
1686
- "nucleusSchema": {
1687
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1688
- "type": "string",
1689
- "pattern": "^GOAL-.+$"
1690
- }
1691
- },
1692
- "Goal": {
1693
- "identity": "TYPE-Goal",
1694
- "name": "Goal",
1695
- "description": "dummy-description",
1696
- "nucleusSchema": {
1697
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1698
- "type": "object",
1699
- "required": [
1700
- "identity",
1701
- "target"
1702
- ],
1703
- "properties": {
1704
- "identity": {
1705
- "$ref": "#/$defs/GoalIdentity"
1706
- },
1707
- "target": {
1708
- "type": "integer",
1709
- "minimum": 0
1710
- },
1711
- "disallowedJobs": {
1712
- "type": "array",
1713
- "items": {
1714
- "$ref": "#/$defs/JobIdentity"
1715
- }
1716
- },
1717
- "disallowedSequences": {
1718
- "type": "array",
1719
- "items": {
1720
- "type": "array",
1721
- "items": {
1722
- "$ref": "#/$defs/JobIdentity"
1723
- }
1724
- }
1725
- },
1726
- "minSteps": {
1727
- "type": "integer",
1728
- "minimum": 1
1729
- },
1730
- "maxSteps": {
1731
- "type": "integer",
1732
- "minimum": 1
1733
- }
1734
- },
1735
- "unevaluatedProperties": false
1736
- }
1737
- },
1738
- "Natural": {
1739
- "identity": "TYPE-Natural",
1740
- "name": "Natural",
1741
- "description": "dummy-description",
1742
- "nucleusSchema": {
1743
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1744
- "type": "object",
1745
- "required": [
1746
- "identity"
1747
- ],
1748
- "properties": {
1749
- "identity": {
1750
- "$ref": "#/$defs/NaturalIdentity"
1751
- }
1752
- },
1753
- "$defs": {
1754
- "NaturalIdentity": {
1755
- "type": "integer"
1756
- }
1757
- },
1758
- "additionalProperties": false
1759
- }
1760
- },
1761
- "Boolean": {
1762
- "identity": "TYPE-Boolean",
1763
- "name": "Boolean",
1764
- "description": "dummy-description",
1765
- "nucleusSchema": {
1766
- "$schema": "https://json-schema.org/draft/2020-12/schema",
1767
- "type": "object",
1768
- "required": [
1769
- "identity"
1770
- ],
1771
- "properties": {
1772
- "identity": {
1773
- "$ref": "#/$defs/BooleanIdentity"
1774
- }
1775
- },
1776
- "$defs": {
1777
- "BooleanIdentity": {
1778
- "type": "boolean"
1779
- }
1780
- },
1781
- "additionalProperties": false
1782
- }
1783
- }
1784
- }
1785
- }
1
+ {
2
+ "identity": "TYPE-Genesis",
3
+ "name": "Genesis",
4
+ "description": "dummy-description",
5
+ "nucleusSchema": {
6
+ "$comment": "This file defines all schemas used internally by ToolProof.",
7
+ "$id": "https://schemas.toolproof.com/v1/Genesis.json",
8
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
9
+ "$defs": {
10
+ "Name": {
11
+ "identity": "TYPE-Name",
12
+ "name": "Name",
13
+ "description": "dummy-description",
14
+ "nucleusSchema": {
15
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
16
+ "type": "string",
17
+ "minLength": 1,
18
+ "pattern": "^(?:[A-Z][^0-9]*|[a-z]+/[a-z.+&-]+)$",
19
+ "$comment": "Validation is intercepted by an AI Agent that verifies the name against Toolproof's naming conventions.",
20
+ "semanticValidation": "Ajv custom keyword to verify name."
21
+ }
22
+ },
23
+ "NameFacet": {
24
+ "identity": "TYPE-NameFacet",
25
+ "name": "NameFacet",
26
+ "description": "dummy-description",
27
+ "nucleusSchema": {
28
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
29
+ "type": "object",
30
+ "required": [
31
+ "name"
32
+ ],
33
+ "properties": {
34
+ "name": {
35
+ "$ref": "#/$defs/Name"
36
+ }
37
+ }
38
+ }
39
+ },
40
+ "Description": {
41
+ "identity": "TYPE-Description",
42
+ "name": "Description",
43
+ "description": "dummy-description",
44
+ "nucleusSchema": {
45
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
46
+ "type": "string",
47
+ "minLength": 1,
48
+ "$comment": "Validation is intercepted by an AI Agent that verifies the description against Toolproof's documentation standards.",
49
+ "semanticValidation": "Ajv custom keyword to verify description."
50
+ }
51
+ },
52
+ "DescriptionFacet": {
53
+ "identity": "TYPE-DescriptionFacet",
54
+ "name": "DescriptionFacet",
55
+ "description": "dummy-description",
56
+ "nucleusSchema": {
57
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
58
+ "type": "object",
59
+ "required": [
60
+ "description"
61
+ ],
62
+ "properties": {
63
+ "description": {
64
+ "$ref": "#/$defs/Description"
65
+ }
66
+ }
67
+ }
68
+ },
69
+ "DocumentationFacet": {
70
+ "identity": "TYPE-DocumentationFacet",
71
+ "name": "DocumentationFacet",
72
+ "description": "dummy-description",
73
+ "nucleusSchema": {
74
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
75
+ "type": "object",
76
+ "allOf": [
77
+ {
78
+ "$ref": "#/$defs/NameFacet"
79
+ },
80
+ {
81
+ "$ref": "#/$defs/DescriptionFacet"
82
+ }
83
+ ]
84
+ }
85
+ },
86
+ "Uri": {
87
+ "identity": "TYPE-Uri",
88
+ "name": "Uri",
89
+ "description": "dummy-description",
90
+ "nucleusSchema": {
91
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
92
+ "type": "string",
93
+ "format": "uri"
94
+ }
95
+ },
96
+ "ResourceTypeIdentity": {
97
+ "identity": "TYPE-ResourceTypeIdentity",
98
+ "name": "ResourceTypeIdentity",
99
+ "description": "dummy-description",
100
+ "nucleusSchema": {
101
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
102
+ "type": "string",
103
+ "pattern": "^TYPE-.+$"
104
+ }
105
+ },
106
+ "ResourceType": {
107
+ "identity": "TYPE-ResourceType",
108
+ "name": "ResourceType",
109
+ "description": "dummy-description",
110
+ "nucleusSchema": {
111
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
112
+ "type": "object",
113
+ "required": [
114
+ "identity",
115
+ "nucleusSchema"
116
+ ],
117
+ "properties": {
118
+ "identity": {
119
+ "$ref": "#/$defs/ResourceTypeIdentity"
120
+ },
121
+ "nucleusSchema": true,
122
+ "embeddingUriDict": {
123
+ "type": "object",
124
+ "propertyNames": {
125
+ "type": "string",
126
+ "pattern": "^EMBEDDING-.+$"
127
+ },
128
+ "additionalProperties": {
129
+ "$ref": "#/$defs/Uri"
130
+ },
131
+ "minProperties": 1,
132
+ "$comment": "A ResourceType may specify a set of embedding models that convert the raw data (or one of its alternative representations) into vector embeddings. The build process enforces that the keys of this dict are members of a set of predefined embedding models."
133
+ },
134
+ "generatorUriDict": {
135
+ "type": "object",
136
+ "propertyNames": {
137
+ "type": "string",
138
+ "pattern": "^GENERATOR-.+$"
139
+ },
140
+ "additionalProperties": {
141
+ "$ref": "#/$defs/Uri"
142
+ },
143
+ "minProperties": 1,
144
+ "$comment": "A ResourceType may specify a set of generators that generate different representations of its instances from the raw file. A ToolProof Resource is always backed by a raw file. This is also true for the Resources (of type ResourceType) defined in this file! The build process enforces that the keys of this dict are members of a set of predefined generators. GENERATOR-Json is an identifier for a generator that generates JSON data from the raw file. If the raw file is a JSON file, GENERATOR-Json is an implicit identity operation (i.e. an operation that does nothing) and must not be present in the dict. A ResourceType may also specify other generators, such as GENERATOR-LeanTerm, which generates an instance (or 'term' in Lean jargon) of a corresponding Lean type from the raw file. ResourceTypes that specify GENERATOR-LeanTerm must also specify a corresponding GENERATOR-LeanType. While the term-version runs when data instances enter the ecosystem, the type-version runs when the ResourceType itself enters the ecosystem."
145
+ }
146
+ },
147
+ "allOf": [
148
+ {
149
+ "$ref": "#/$defs/DocumentationFacet"
150
+ }
151
+ ]
152
+ }
153
+ },
154
+ "ResourceRoleIdentity": {
155
+ "identity": "TYPE-ResourceRoleIdentity",
156
+ "name": "ResourceRoleIdentity",
157
+ "description": "dummy-description",
158
+ "nucleusSchema": {
159
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
160
+ "type": "string",
161
+ "pattern": "^ROLE-.+$"
162
+ }
163
+ },
164
+ "ResourceRoleValue": {
165
+ "identity": "TYPE-ResourceRoleValue",
166
+ "name": "ResourceRoleValue",
167
+ "description": "dummy-description",
168
+ "nucleusSchema": {
169
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
170
+ "type": "object",
171
+ "allOf": [
172
+ {
173
+ "required": [
174
+ "resourceTypeHandle"
175
+ ],
176
+ "properties": {
177
+ "resourceTypeHandle": {
178
+ "$ref": "#/$defs/ResourceTypeIdentity"
179
+ }
180
+ }
181
+ },
182
+ {
183
+ "$ref": "#/$defs/DocumentationFacet"
184
+ }
185
+ ]
186
+ },
187
+ "unevaluatedProperties": false
188
+ },
189
+ "ResourceRole": {
190
+ "identity": "TYPE-ResourceRole",
191
+ "name": "ResourceRole",
192
+ "description": "dummy-description",
193
+ "nucleusSchema": {
194
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
195
+ "type": "object",
196
+ "allOf": [
197
+ {
198
+ "type": "object",
199
+ "required": [
200
+ "identity"
201
+ ],
202
+ "properties": {
203
+ "identity": {
204
+ "$ref": "#/$defs/ResourceRoleIdentity"
205
+ }
206
+ }
207
+ },
208
+ {
209
+ "$ref": "#/$defs/ResourceRoleValue"
210
+ }
211
+ ]
212
+ },
213
+ "unevaluatedProperties": false
214
+ },
215
+ "RoleDict": {
216
+ "identity": "TYPE-RoleDict",
217
+ "name": "RoleDict",
218
+ "description": "dummy-description",
219
+ "nucleusSchema": {
220
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
221
+ "type": "object",
222
+ "propertyNames": {
223
+ "$ref": "#/$defs/ResourceRoleIdentity"
224
+ },
225
+ "additionalProperties": {
226
+ "$ref": "#/$defs/ResourceRoleValue"
227
+ }
228
+ }
229
+ },
230
+ "Error": {
231
+ "identity": "TYPE-Error",
232
+ "name": "Error",
233
+ "description": "dummy-description",
234
+ "nucleusSchema": {
235
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
236
+ "type": "object",
237
+ "allOf": [
238
+ {
239
+ "$ref": "#/$defs/DocumentationFacet"
240
+ },
241
+ {
242
+ "properties": {
243
+ "details": {
244
+ "type": "object"
245
+ }
246
+ }
247
+ }
248
+ ],
249
+ "unevaluatedProperties": false
250
+ }
251
+ },
252
+ "Roles": {
253
+ "identity": "TYPE-Roles",
254
+ "name": "Roles",
255
+ "description": "dummy-description",
256
+ "nucleusSchema": {
257
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
258
+ "type": "object",
259
+ "required": [
260
+ "inputDict",
261
+ "outputDict"
262
+ ],
263
+ "properties": {
264
+ "inputDict": {
265
+ "$ref": "#/$defs/RoleDict"
266
+ },
267
+ "outputDict": {
268
+ "allOf": [
269
+ {
270
+ "$ref": "#/$defs/RoleDict"
271
+ },
272
+ {
273
+ "type": "object",
274
+ "required": [
275
+ "ROLE-ErrorOutput"
276
+ ],
277
+ "properties": {
278
+ "ROLE-ErrorOutput": {
279
+ "type": "object",
280
+ "allOf": [
281
+ {
282
+ "$ref": "#/$defs/ResourceRoleValue"
283
+ },
284
+ {
285
+ "required": [
286
+ "resourceTypeHandle",
287
+ "name",
288
+ "description"
289
+ ],
290
+ "properties": {
291
+ "resourceTypeHandle": {
292
+ "const": "TYPE-Error"
293
+ },
294
+ "name": {
295
+ "const": "ErrorOutput"
296
+ },
297
+ "description": {
298
+ "const": "Represents error outputs from job runs."
299
+ }
300
+ }
301
+ }
302
+ ]
303
+ }
304
+ }
305
+ }
306
+ ]
307
+ }
308
+ },
309
+ "unevaluatedProperties": false
310
+ }
311
+ },
312
+ "RolesFacet": {
313
+ "identity": "TYPE-RolesFacet",
314
+ "name": "RolesFacet",
315
+ "description": "dummy-description",
316
+ "nucleusSchema": {
317
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
318
+ "type": "object",
319
+ "required": [
320
+ "roles"
321
+ ],
322
+ "properties": {
323
+ "roles": {
324
+ "$ref": "#/$defs/Roles"
325
+ }
326
+ }
327
+ }
328
+ },
329
+ "JobIdentity": {
330
+ "identity": "TYPE-JobIdentity",
331
+ "name": "JobIdentity",
332
+ "description": "dummy-description",
333
+ "nucleusSchema": {
334
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
335
+ "type": "string",
336
+ "pattern": "^JOB-.+$"
337
+ }
338
+ },
339
+ "Job": {
340
+ "identity": "TYPE-Job",
341
+ "name": "Job",
342
+ "description": "dummy-description",
343
+ "nucleusSchema": {
344
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
345
+ "type": "object",
346
+ "required": [
347
+ "identity",
348
+ "implementationUri"
349
+ ],
350
+ "properties": {
351
+ "identity": {
352
+ "$ref": "#/$defs/JobIdentity"
353
+ },
354
+ "implementationUri": {
355
+ "$comment": "Instances of a ResourceType that requires implementationUri are 'executable' ResourceTypes. TYPE-Job is the canonical executable ResourceType in the ecosystem.",
356
+ "$ref": "#/$defs/Uri"
357
+ }
358
+ },
359
+ "allOf": [
360
+ {
361
+ "$ref": "#/$defs/DocumentationFacet"
362
+ },
363
+ {
364
+ "$ref": "#/$defs/RolesFacet"
365
+ }
366
+ ],
367
+ "unevaluatedProperties": false
368
+ }
369
+ },
370
+ "RoleBindingArray": {
371
+ "identity": "TYPE-RoleBindingArray",
372
+ "name": "RoleBindingArray",
373
+ "description": "dummy-description",
374
+ "nucleusSchema": {
375
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
376
+ "type": "array",
377
+ "items": {
378
+ "$ref": "#/$defs/ResourceRoleIdentity"
379
+ }
380
+ }
381
+ },
382
+ "RoleBindings": {
383
+ "identity": "TYPE-RoleBindings",
384
+ "name": "RoleBindings",
385
+ "description": "dummy-description",
386
+ "nucleusSchema": {
387
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
388
+ "type": "object",
389
+ "required": [
390
+ "inputBindings",
391
+ "outputBindings"
392
+ ],
393
+ "properties": {
394
+ "inputBindings": {
395
+ "$ref": "#/$defs/RoleBindingArray"
396
+ },
397
+ "outputBindings": {
398
+ "$ref": "#/$defs/RoleBindingArray"
399
+ }
400
+ }
401
+ },
402
+ "unevaluatedProperties": false
403
+ },
404
+ "RoleBindingsFacet": {
405
+ "identity": "TYPE-RoleBindingsFacet",
406
+ "name": "RoleBindingsFacet",
407
+ "description": "dummy-description",
408
+ "nucleusSchema": {
409
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
410
+ "type": "object",
411
+ "required": [
412
+ "roleBindings"
413
+ ],
414
+ "properties": {
415
+ "roleBindings": {
416
+ "$ref": "#/$defs/RoleBindings"
417
+ }
418
+ }
419
+ }
420
+ },
421
+ "StepKind": {
422
+ "identity": "TYPE-StepKind",
423
+ "name": "StepKind",
424
+ "description": "dummy-description",
425
+ "nucleusSchema": {
426
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
427
+ "type": "string",
428
+ "enum": [
429
+ "job",
430
+ "branch",
431
+ "while",
432
+ "for"
433
+ ]
434
+ }
435
+ },
436
+ "StepKindFacet": {
437
+ "identity": "TYPE-StepKindFacet",
438
+ "name": "StepKindFacet",
439
+ "description": "dummy-description",
440
+ "nucleusSchema": {
441
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
442
+ "type": "object",
443
+ "required": [
444
+ "stepKind"
445
+ ],
446
+ "properties": {
447
+ "stepKind": {
448
+ "$ref": "#/$defs/StepKind"
449
+ }
450
+ }
451
+ }
452
+ },
453
+ "JobStepIdentity": {
454
+ "identity": "TYPE-JobStepIdentity",
455
+ "name": "JobStepIdentity",
456
+ "description": "dummy-description",
457
+ "nucleusSchema": {
458
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
459
+ "type": "string",
460
+ "pattern": "^JOB_STEP-.+$"
461
+ }
462
+ },
463
+ "JobStep": {
464
+ "identity": "TYPE-JobStep",
465
+ "name": "JobStep",
466
+ "description": "dummy-description",
467
+ "nucleusSchema": {
468
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
469
+ "type": "object",
470
+ "required": [
471
+ "identity",
472
+ "stepKind",
473
+ "jobHandle"
474
+ ],
475
+ "properties": {
476
+ "identity": {
477
+ "$ref": "#/$defs/JobStepIdentity"
478
+ },
479
+ "stepKind": {
480
+ "const": "job"
481
+ },
482
+ "jobHandle": {
483
+ "$ref": "#/$defs/JobIdentity"
484
+ }
485
+ },
486
+ "allOf": [
487
+ {
488
+ "$ref": "#/$defs/StepKindFacet"
489
+ },
490
+ {
491
+ "$comment": "This will be overlayed dynamically to specify roleBindings corresponding to the roles of the underlying job.",
492
+ "$ref": "#/$defs/RoleBindingsFacet"
493
+ }
494
+ ]
495
+ }
496
+ },
497
+ "Conditional": {
498
+ "identity": "TYPE-Conditional",
499
+ "name": "Conditional",
500
+ "description": "dummy-description",
501
+ "nucleusSchema": {
502
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
503
+ "type": "object",
504
+ "required": [
505
+ "when",
506
+ "what"
507
+ ],
508
+ "properties": {
509
+ "when": {
510
+ "$ref": "#/$defs/JobStep"
511
+ },
512
+ "what": {
513
+ "$ref": "#/$defs/JobStep"
514
+ }
515
+ },
516
+ "unevaluatedProperties": false
517
+ }
518
+ },
519
+ "BranchStepIdentity": {
520
+ "identity": "TYPE-BranchStepIdentity",
521
+ "name": "BranchStepIdentity",
522
+ "description": "dummy-description",
523
+ "nucleusSchema": {
524
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
525
+ "type": "string",
526
+ "pattern": "^BRANCH_STEP-.+$"
527
+ }
528
+ },
529
+ "BranchStep": {
530
+ "identity": "TYPE-BranchStep",
531
+ "name": "BranchStep",
532
+ "description": "dummy-description",
533
+ "nucleusSchema": {
534
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
535
+ "type": "object",
536
+ "required": [
537
+ "identity",
538
+ "stepKind",
539
+ "cases"
540
+ ],
541
+ "properties": {
542
+ "identity": {
543
+ "$ref": "#/$defs/BranchStepIdentity"
544
+ },
545
+ "stepKind": {
546
+ "const": "branch"
547
+ },
548
+ "cases": {
549
+ "type": "array",
550
+ "items": {
551
+ "$ref": "#/$defs/Conditional"
552
+ },
553
+ "minItems": 1,
554
+ "uniqueItems": true
555
+ }
556
+ },
557
+ "allOf": [
558
+ {
559
+ "$ref": "#/$defs/StepKindFacet"
560
+ }
561
+ ]
562
+ }
563
+ },
564
+ "WhileStepIdentity": {
565
+ "identity": "TYPE-WhileStepIdentity",
566
+ "name": "WhileStepIdentity",
567
+ "description": "dummy-description",
568
+ "nucleusSchema": {
569
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
570
+ "type": "string",
571
+ "pattern": "^WHILE_STEP-.+$"
572
+ }
573
+ },
574
+ "WhileStep": {
575
+ "identity": "TYPE-WhileStep",
576
+ "name": "WhileStep",
577
+ "description": "dummy-description",
578
+ "nucleusSchema": {
579
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
580
+ "type": "object",
581
+ "required": [
582
+ "identity",
583
+ "stepKind",
584
+ "case"
585
+ ],
586
+ "properties": {
587
+ "identity": {
588
+ "$ref": "#/$defs/WhileStepIdentity"
589
+ },
590
+ "stepKind": {
591
+ "const": "while"
592
+ },
593
+ "case": {
594
+ "$ref": "#/$defs/Conditional"
595
+ }
596
+ },
597
+ "allOf": [
598
+ {
599
+ "$ref": "#/$defs/StepKindFacet"
600
+ }
601
+ ]
602
+ }
603
+ },
604
+ "ForStepIdentity": {
605
+ "identity": "TYPE-ForStepIdentity",
606
+ "name": "ForStepIdentity",
607
+ "description": "dummy-description",
608
+ "nucleusSchema": {
609
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
610
+ "type": "string",
611
+ "pattern": "^FOR_STEP-.+$"
612
+ }
613
+ },
614
+ "ForStep": {
615
+ "identity": "TYPE-ForStep",
616
+ "name": "ForStep",
617
+ "description": "dummy-description",
618
+ "nucleusSchema": {
619
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
620
+ "type": "object",
621
+ "required": [
622
+ "identity",
623
+ "stepKind",
624
+ "case"
625
+ ],
626
+ "properties": {
627
+ "identity": {
628
+ "$ref": "#/$defs/ForStepIdentity"
629
+ },
630
+ "stepKind": {
631
+ "const": "for"
632
+ },
633
+ "case": {
634
+ "$ref": "#/$defs/Conditional"
635
+ }
636
+ },
637
+ "allOf": [
638
+ {
639
+ "$ref": "#/$defs/StepKindFacet"
640
+ }
641
+ ]
642
+ }
643
+ },
644
+ "StepIdentity": {
645
+ "identity": "TYPE-StepIdentity",
646
+ "name": "StepIdentity",
647
+ "description": "dummy-description",
648
+ "nucleusSchema": {
649
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
650
+ "type": "object",
651
+ "oneOf": [
652
+ {
653
+ "$ref": "#/$defs/JobStepIdentity"
654
+ },
655
+ {
656
+ "$ref": "#/$defs/BranchStepIdentity"
657
+ },
658
+ {
659
+ "$ref": "#/$defs/WhileStepIdentity"
660
+ },
661
+ {
662
+ "$ref": "#/$defs/ForStepIdentity"
663
+ }
664
+ ]
665
+ }
666
+ },
667
+ "Step": {
668
+ "identity": "TYPE-Step",
669
+ "name": "Step",
670
+ "description": "dummy-description",
671
+ "nucleusSchema": {
672
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
673
+ "type": "object",
674
+ "oneOf": [
675
+ {
676
+ "$ref": "#/$defs/JobStep"
677
+ },
678
+ {
679
+ "$ref": "#/$defs/BranchStep"
680
+ },
681
+ {
682
+ "$ref": "#/$defs/WhileStep"
683
+ },
684
+ {
685
+ "$ref": "#/$defs/ForStep"
686
+ }
687
+ ],
688
+ "unevaluatedProperties": false
689
+ }
690
+ },
691
+ "CreationContext": {
692
+ "identity": "TYPE-CreationContext",
693
+ "name": "CreationContext",
694
+ "description": "dummy-description",
695
+ "nucleusSchema": {
696
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
697
+ "type": "object",
698
+ "required": [
699
+ "resourceRoleHandle",
700
+ "jobStepHandle"
701
+ ],
702
+ "properties": {
703
+ "resourceRoleHandle": {
704
+ "$ref": "#/$defs/ResourceRoleIdentity"
705
+ },
706
+ "jobStepHandle": {
707
+ "$ref": "#/$defs/JobStepIdentity"
708
+ }
709
+ }
710
+ }
711
+ },
712
+ "CreationContextFacet": {
713
+ "identity": "TYPE-CreationContextFacet",
714
+ "name": "CreationContextFacet",
715
+ "description": "dummy-description",
716
+ "nucleusSchema": {
717
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
718
+ "type": "object",
719
+ "required": [
720
+ "creationContext"
721
+ ],
722
+ "properties": {
723
+ "creationContext": {
724
+ "$ref": "#/$defs/CreationContext"
725
+ }
726
+ }
727
+ }
728
+ },
729
+ "ResourceIdentity": {
730
+ "identity": "TYPE-ResourceIdentity",
731
+ "name": "ResourceIdentity",
732
+ "description": "dummy-description",
733
+ "nucleusSchema": {
734
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
735
+ "type": "string",
736
+ "pattern": "^RESOURCE-.+$"
737
+ }
738
+ },
739
+ "ResourceShellBase": {
740
+ "identity": "TYPE-ResourceShellBase",
741
+ "name": "ResourceShellBase",
742
+ "description": "dummy-description",
743
+ "nucleusSchema": {
744
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
745
+ "type": "object",
746
+ "required": [
747
+ "identity",
748
+ "resourceTypeHandle",
749
+ "resourceShellKind"
750
+ ],
751
+ "properties": {
752
+ "identity": {
753
+ "$ref": "#/$defs/ResourceIdentity"
754
+ },
755
+ "resourceTypeHandle": {
756
+ "$ref": "#/$defs/ResourceTypeIdentity"
757
+ },
758
+ "resourceShellKind": {
759
+ "$ref": "#/$defs/ResourceShellKind"
760
+ }
761
+ }
762
+ }
763
+ },
764
+ "ResourceShellKind": {
765
+ "identity": "TYPE-ResourceShellKind",
766
+ "name": "ResourceShellKind",
767
+ "description": "dummy-description",
768
+ "nucleusSchema": {
769
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
770
+ "type": "string",
771
+ "enum": [
772
+ "missing",
773
+ "inputPotential",
774
+ "outputPotential",
775
+ "materialized"
776
+ ]
777
+ }
778
+ },
779
+ "ResourceShellKindFacet": {
780
+ "identity": "TYPE-ResourceShellKindFacet",
781
+ "name": "ResourceShellKindFacet",
782
+ "description": "dummy-description",
783
+ "nucleusSchema": {
784
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
785
+ "type": "object",
786
+ "required": [
787
+ "resourceShellKind"
788
+ ],
789
+ "properties": {
790
+ "resourceShellKind": {
791
+ "$ref": "#/$defs/ResourceShellKind"
792
+ }
793
+ }
794
+ }
795
+ },
796
+ "ShellMissing": {
797
+ "identity": "TYPE-ShellMissing",
798
+ "name": "ShellMissing",
799
+ "description": "dummy-description",
800
+ "nucleusSchema": {
801
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
802
+ "type": "object",
803
+ "required": [
804
+ "resourceShellKind"
805
+ ],
806
+ "properties": {
807
+ "resourceShellKind": {
808
+ "const": "missing"
809
+ }
810
+ },
811
+ "allOf": [
812
+ {
813
+ "$ref": "#/$defs/ResourceShellBase"
814
+ },
815
+ {
816
+ "$ref": "#/$defs/ResourceShellKindFacet"
817
+ }
818
+ ],
819
+ "unevaluatedProperties": false
820
+ }
821
+ },
822
+ "ShellInputPotential": {
823
+ "identity": "TYPE-ShellInputPotential",
824
+ "name": "ShellInputPotential",
825
+ "description": "dummy-description",
826
+ "nucleusSchema": {
827
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
828
+ "type": "object",
829
+ "required": [
830
+ "resourceShellKind"
831
+ ],
832
+ "properties": {
833
+ "resourceShellKind": {
834
+ "const": "inputPotential"
835
+ }
836
+ },
837
+ "allOf": [
838
+ {
839
+ "$ref": "#/$defs/ResourceShellBase"
840
+ },
841
+ {
842
+ "$ref": "#/$defs/CreationContextFacet"
843
+ },
844
+ {
845
+ "$ref": "#/$defs/ResourceShellKindFacet"
846
+ }
847
+ ],
848
+ "unevaluatedProperties": false
849
+ }
850
+ },
851
+ "ShellOutputPotential": {
852
+ "identity": "TYPE-ShellOutputPotential",
853
+ "name": "ShellOutputPotential",
854
+ "description": "dummy-description",
855
+ "nucleusSchema": {
856
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
857
+ "type": "object",
858
+ "required": [
859
+ "resourceShellKind"
860
+ ],
861
+ "properties": {
862
+ "resourceShellKind": {
863
+ "const": "outputPotential"
864
+ }
865
+ },
866
+ "allOf": [
867
+ {
868
+ "$ref": "#/$defs/ResourceShellBase"
869
+ },
870
+ {
871
+ "$ref": "#/$defs/CreationContextFacet"
872
+ },
873
+ {
874
+ "$ref": "#/$defs/ResourceShellKindFacet"
875
+ }
876
+ ],
877
+ "unevaluatedProperties": false
878
+ }
879
+ },
880
+ "Timestamp": {
881
+ "identity": "TYPE-Timestamp",
882
+ "name": "Timestamp",
883
+ "description": "dummy-description",
884
+ "nucleusSchema": {
885
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
886
+ "type": "string",
887
+ "format": "date-time"
888
+ }
889
+ },
890
+ "TimestampFacet": {
891
+ "identity": "TYPE-TimestampFacet",
892
+ "name": "TimestampFacet",
893
+ "description": "dummy-description",
894
+ "nucleusSchema": {
895
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
896
+ "type": "object",
897
+ "required": [
898
+ "timestamp"
899
+ ],
900
+ "properties": {
901
+ "timestamp": {
902
+ "$ref": "#/$defs/Timestamp"
903
+ }
904
+ }
905
+ }
906
+ },
907
+ "Path": {
908
+ "identity": "TYPE-Path",
909
+ "name": "Path",
910
+ "description": "dummy-description",
911
+ "nucleusSchema": {
912
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
913
+ "type": "string",
914
+ "format": "uri-reference"
915
+ }
916
+ },
917
+ "PathFacet": {
918
+ "identity": "TYPE-PathFacet",
919
+ "name": "PathFacet",
920
+ "description": "dummy-description",
921
+ "nucleusSchema": {
922
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
923
+ "type": "object",
924
+ "required": [
925
+ "path"
926
+ ],
927
+ "properties": {
928
+ "path": {
929
+ "$ref": "#/$defs/Path"
930
+ }
931
+ }
932
+ }
933
+ },
934
+ "ShellMaterializedBase": {
935
+ "identity": "TYPE-ShellMaterializedBase",
936
+ "name": "ShellMaterializedBase",
937
+ "description": "dummy-description",
938
+ "nucleusSchema": {
939
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
940
+ "type": "object",
941
+ "required": [
942
+ "version",
943
+ "resourceShellKind"
944
+ ],
945
+ "properties": {
946
+ "version": {
947
+ "const": 1
948
+ },
949
+ "resourceShellKind": {
950
+ "const": "materialized"
951
+ }
952
+ },
953
+ "allOf": [
954
+ {
955
+ "$ref": "#/$defs/ResourceShellBase"
956
+ },
957
+ {
958
+ "$ref": "#/$defs/CreationContextFacet"
959
+ },
960
+ {
961
+ "$ref": "#/$defs/ResourceShellKindFacet"
962
+ },
963
+ {
964
+ "$ref": "#/$defs/TimestampFacet"
965
+ },
966
+ {
967
+ "$ref": "#/$defs/PathFacet"
968
+ }
969
+ ]
970
+ }
971
+ },
972
+ "ShellMaterialized": {
973
+ "identity": "TYPE-ShellMaterialized",
974
+ "name": "ShellMaterialized",
975
+ "description": "dummy-description",
976
+ "nucleusSchema": {
977
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
978
+ "type": "object",
979
+ "$ref": "#/$defs/ShellMaterializedBase",
980
+ "unevaluatedProperties": false
981
+ }
982
+ },
983
+ "ResourceMissing": {
984
+ "identity": "TYPE-ResourceMissing",
985
+ "name": "ResourceMissing",
986
+ "description": "dummy-description",
987
+ "nucleusSchema": {
988
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
989
+ "type": "object",
990
+ "$ref": "#/$defs/ShellMissing",
991
+ "unevaluatedProperties": false
992
+ }
993
+ },
994
+ "ResourceInputPotential": {
995
+ "identity": "TYPE-ResourceInputPotential",
996
+ "name": "ResourceInputPotential",
997
+ "description": "dummy-description",
998
+ "nucleusSchema": {
999
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1000
+ "type": "object",
1001
+ "$ref": "#/$defs/ShellInputPotential",
1002
+ "unevaluatedProperties": false
1003
+ }
1004
+ },
1005
+ "ResourceOutputPotential": {
1006
+ "identity": "TYPE-ResourceOutputPotential",
1007
+ "name": "ResourceOutputPotential",
1008
+ "description": "dummy-description",
1009
+ "nucleusSchema": {
1010
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1011
+ "type": "object",
1012
+ "$ref": "#/$defs/ShellOutputPotential",
1013
+ "unevaluatedProperties": false
1014
+ }
1015
+ },
1016
+ "ResourcePotential": {
1017
+ "identity": "TYPE-ResourcePotential",
1018
+ "name": "ResourcePotential",
1019
+ "description": "dummy-description",
1020
+ "nucleusSchema": {
1021
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1022
+ "type": "object",
1023
+ "oneOf": [
1024
+ {
1025
+ "$ref": "#/$defs/ResourceMissing"
1026
+ },
1027
+ {
1028
+ "$ref": "#/$defs/ResourceInputPotential"
1029
+ },
1030
+ {
1031
+ "$ref": "#/$defs/ResourceOutputPotential"
1032
+ }
1033
+ ],
1034
+ "unevaluatedProperties": false
1035
+ }
1036
+ },
1037
+ "JsonData": {
1038
+ "identity": "TYPE-JsonData",
1039
+ "name": "JsonData",
1040
+ "description": "dummy-description",
1041
+ "nucleusSchema": {
1042
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1043
+ "oneOf": [
1044
+ {
1045
+ "type": "null"
1046
+ },
1047
+ {
1048
+ "type": "boolean"
1049
+ },
1050
+ {
1051
+ "type": "number"
1052
+ },
1053
+ {
1054
+ "type": "string"
1055
+ },
1056
+ {
1057
+ "type": "array",
1058
+ "items": {
1059
+ "$ref": "#/$defs/JsonData"
1060
+ }
1061
+ },
1062
+ {
1063
+ "type": "object",
1064
+ "additionalProperties": {
1065
+ "$ref": "#/$defs/JsonData"
1066
+ }
1067
+ }
1068
+ ]
1069
+ }
1070
+ },
1071
+ "Nucleus": {
1072
+ "identity": "TYPE-Nucleus",
1073
+ "name": "Nucleus",
1074
+ "description": "dummy-description",
1075
+ "nucleusSchema": {
1076
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1077
+ "type": "object",
1078
+ "additionalProperties": {
1079
+ "$ref": "#/$defs/JsonData"
1080
+ }
1081
+ }
1082
+ },
1083
+ "NucleusFacet": {
1084
+ "identity": "TYPE-NucleusFacet",
1085
+ "name": "NucleusFacet",
1086
+ "description": "dummy-description",
1087
+ "nucleusSchema": {
1088
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1089
+ "type": "object",
1090
+ "required": [
1091
+ "nucleus"
1092
+ ],
1093
+ "properties": {
1094
+ "nucleus": true
1095
+ }
1096
+ }
1097
+ },
1098
+ "Resource": {
1099
+ "identity": "TYPE-Resource",
1100
+ "name": "Resource",
1101
+ "description": "dummy-description",
1102
+ "nucleusSchema": {
1103
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1104
+ "type": "object",
1105
+ "allOf": [
1106
+ {
1107
+ "$ref": "#/$defs/ShellMaterializedBase"
1108
+ },
1109
+ {
1110
+ "$comment": "This will be overlayed dynamically to match the data structure of the underlying ResourceType's nucleusSchema.",
1111
+ "$ref": "#/$defs/NucleusFacet"
1112
+ }
1113
+ ],
1114
+ "unevaluatedProperties": false
1115
+ }
1116
+ },
1117
+ "JobStepSocket": {
1118
+ "identity": "TYPE-JobStepSocket",
1119
+ "name": "JobStepSocket",
1120
+ "description": "dummy-description",
1121
+ "nucleusSchema": {
1122
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1123
+ "type": "object",
1124
+ "propertyNames": {
1125
+ "$ref": "#/$defs/ResourceRoleIdentity"
1126
+ },
1127
+ "additionalProperties": {
1128
+ "oneOf": [
1129
+ {
1130
+ "$ref": "#/$defs/ResourcePotential"
1131
+ },
1132
+ {
1133
+ "$ref": "#/$defs/Resource"
1134
+ }
1135
+ ]
1136
+ }
1137
+ }
1138
+ },
1139
+ "StrategyState": {
1140
+ "identity": "TYPE-StrategyState",
1141
+ "name": "StrategyState",
1142
+ "description": "dummy-description",
1143
+ "nucleusSchema": {
1144
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1145
+ "type": "object",
1146
+ "propertyNames": {
1147
+ "$ref": "#/$defs/JobStepIdentity"
1148
+ },
1149
+ "additionalProperties": {
1150
+ "$ref": "#/$defs/JobStepSocket"
1151
+ }
1152
+ }
1153
+ },
1154
+ "StrategyStateFacet": {
1155
+ "identity": "TYPE-StrategyStateFacet",
1156
+ "name": "StrategyStateFacet",
1157
+ "description": "dummy-description",
1158
+ "nucleusSchema": {
1159
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1160
+ "type": "object",
1161
+ "required": [
1162
+ "strategyState"
1163
+ ],
1164
+ "properties": {
1165
+ "strategyState": {
1166
+ "$ref": "#/$defs/StrategyState"
1167
+ }
1168
+ }
1169
+ }
1170
+ },
1171
+ "StepArray": {
1172
+ "identity": "TYPE-StepArray",
1173
+ "name": "StepArray",
1174
+ "description": "dummy-description",
1175
+ "nucleusSchema": {
1176
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1177
+ "type": "array",
1178
+ "items": {
1179
+ "$ref": "#/$defs/Step"
1180
+ },
1181
+ "uniqueItems": true
1182
+ }
1183
+ },
1184
+ "StepsFacet": {
1185
+ "identity": "TYPE-StepsFacet",
1186
+ "name": "StepsFacet",
1187
+ "description": "dummy-description",
1188
+ "nucleusSchema": {
1189
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1190
+ "type": "object",
1191
+ "required": [
1192
+ "steps"
1193
+ ],
1194
+ "properties": {
1195
+ "steps": {
1196
+ "$ref": "#/$defs/StepArray"
1197
+ }
1198
+ }
1199
+ }
1200
+ },
1201
+ "RawStrategy": {
1202
+ "identity": "TYPE-RawStrategy",
1203
+ "name": "RawStrategy",
1204
+ "description": "dummy-description",
1205
+ "nucleusSchema": {
1206
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1207
+ "type": "object",
1208
+ "allOf": [
1209
+ {
1210
+ "$ref": "#/$defs/StepsFacet"
1211
+ },
1212
+ {
1213
+ "$ref": "#/$defs/StrategyStateFacet"
1214
+ }
1215
+ ],
1216
+ "unevaluatedProperties": false
1217
+ }
1218
+ },
1219
+ "RunnableStrategyIdentity": {
1220
+ "identity": "TYPE-RunnableStrategyIdentity",
1221
+ "name": "RunnableStrategyIdentity",
1222
+ "description": "dummy-description",
1223
+ "nucleusSchema": {
1224
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1225
+ "type": "string",
1226
+ "pattern": "^RUNNABLE_STRATEGY-.+$"
1227
+ }
1228
+ },
1229
+ "RunnableStrategyStatus": {
1230
+ "identity": "TYPE-RunnableStrategyStatus",
1231
+ "name": "RunnableStrategyStatus",
1232
+ "description": "dummy-description",
1233
+ "nucleusSchema": {
1234
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1235
+ "type": "string",
1236
+ "enum": [
1237
+ "pending",
1238
+ "running",
1239
+ "completed",
1240
+ "failed",
1241
+ "cancelled"
1242
+ ]
1243
+ }
1244
+ },
1245
+ "RunnableStrategyContext": {
1246
+ "identity": "TYPE-RunnableStrategyContext",
1247
+ "name": "RunnableStrategyContext",
1248
+ "description": "dummy-description",
1249
+ "nucleusSchema": {
1250
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1251
+ "type": "object",
1252
+ "required": [
1253
+ "status"
1254
+ ],
1255
+ "properties": {
1256
+ "status": {
1257
+ "$ref": "#/$defs/RunnableStrategyStatus"
1258
+ },
1259
+ "startedAt": {
1260
+ "$ref": "#/$defs/Timestamp"
1261
+ },
1262
+ "completedAt": {
1263
+ "$ref": "#/$defs/Timestamp"
1264
+ }
1265
+ },
1266
+ "unevaluatedProperties": false
1267
+ }
1268
+ },
1269
+ "StrategyThreadIdentity": {
1270
+ "identity": "TYPE-StrategyThreadIdentity",
1271
+ "name": "StrategyThreadIdentity",
1272
+ "description": "dummy-description",
1273
+ "nucleusSchema": {
1274
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1275
+ "type": "string",
1276
+ "pattern": "^STRATEGY_THREAD-.+$"
1277
+ }
1278
+ },
1279
+ "StrategyThreadDict": {
1280
+ "identity": "TYPE-StrategyThreadDict",
1281
+ "name": "StrategyThreadDict",
1282
+ "description": "dummy-description",
1283
+ "nucleusSchema": {
1284
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1285
+ "type": "object",
1286
+ "propertyNames": {
1287
+ "$ref": "#/$defs/StrategyThreadIdentity"
1288
+ },
1289
+ "additionalProperties": {
1290
+ "$ref": "#/$defs/StepArray"
1291
+ },
1292
+ "$comment": "Each thread contains an array of steps, allowing for sequential execution within a thread while supporting parallel execution across multiple threads."
1293
+ }
1294
+ },
1295
+ "StrategyThreadDictFacet": {
1296
+ "identity": "TYPE-StrategyThreadDictFacet",
1297
+ "name": "StrategyThreadDictFacet",
1298
+ "description": "dummy-description",
1299
+ "nucleusSchema": {
1300
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1301
+ "type": "object",
1302
+ "required": [
1303
+ "strategyThreadDict"
1304
+ ],
1305
+ "properties": {
1306
+ "strategyThreadDict": {
1307
+ "$ref": "#/$defs/StrategyThreadDict"
1308
+ }
1309
+ }
1310
+ }
1311
+ },
1312
+ "RunnableStrategy": {
1313
+ "identity": "TYPE-RunnableStrategy",
1314
+ "name": "RunnableStrategy",
1315
+ "description": "dummy-description",
1316
+ "nucleusSchema": {
1317
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1318
+ "type": "object",
1319
+ "required": [
1320
+ "identity",
1321
+ "runnableStrategyContext"
1322
+ ],
1323
+ "properties": {
1324
+ "identity": {
1325
+ "$ref": "#/$defs/RunnableStrategyIdentity"
1326
+ },
1327
+ "runnableStrategyContext": {
1328
+ "$ref": "#/$defs/RunnableStrategyContext"
1329
+ }
1330
+ },
1331
+ "allOf": [
1332
+ {
1333
+ "$comment": "The Engine runs jobs specified by steps in strategyThreadDict. The Engine also injects repeted steps when encountering loops.",
1334
+ "$ref": "#/$defs/StrategyThreadDictFacet"
1335
+ },
1336
+ {
1337
+ "$comment": "The Engine updates strategyState with materialized Resources upon job completions and runtime-provided input events. It also inserts inputPotential and outputPotential Resources upon step injections.",
1338
+ "$ref": "#/$defs/StrategyStateFacet"
1339
+ }
1340
+ ],
1341
+ "unevaluatedProperties": false
1342
+ }
1343
+ },
1344
+ "StrategyStateDelta": {
1345
+ "identity": "TYPE-StrategyStateDelta",
1346
+ "name": "StrategyStateDelta",
1347
+ "description": "dummy-description",
1348
+ "nucleusSchema": {
1349
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1350
+ "type": "object",
1351
+ "required": [
1352
+ "strategyStateUpdate"
1353
+ ],
1354
+ "properties": {
1355
+ "strategyStateUpdate": {
1356
+ "$ref": "#/$defs/StrategyState"
1357
+ }
1358
+ }
1359
+ }
1360
+ },
1361
+ "RunnableStrategyUpdate": {
1362
+ "identity": "TYPE-RunnableStrategyUpdate",
1363
+ "name": "RunnableStrategyUpdate",
1364
+ "description": "dummy-description",
1365
+ "nucleusSchema": {
1366
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1367
+ "type": "object",
1368
+ "required": [
1369
+ "runnableStrategyHandle"
1370
+ ],
1371
+ "properties": {
1372
+ "runnableStrategyHandle": {
1373
+ "$ref": "#/$defs/RunnableStrategyIdentity"
1374
+ }
1375
+ },
1376
+ "allOf": [
1377
+ {
1378
+ "$ref": "#/$defs/StrategyStateDelta"
1379
+ }
1380
+ ],
1381
+ "unevaluatedProperties": false
1382
+ }
1383
+ },
1384
+ "RunEventCounters": {
1385
+ "identity": "TYPE-RunEventCounters",
1386
+ "name": "RunEventCounters",
1387
+ "description": "dummy-description",
1388
+ "nucleusSchema": {
1389
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1390
+ "type": "object",
1391
+ "properties": {
1392
+ "stepCounterAfter": {
1393
+ "type": "integer"
1394
+ },
1395
+ "iterationCounterAfter": {
1396
+ "type": "integer"
1397
+ }
1398
+ }
1399
+ }
1400
+ },
1401
+ "RunEventStepMetadata": {
1402
+ "identity": "TYPE-RunEventStepMetadata",
1403
+ "name": "RunEventStepMetadata",
1404
+ "description": "dummy-description",
1405
+ "nucleusSchema": {
1406
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1407
+ "type": "object",
1408
+ "required": [
1409
+ "stepHandle",
1410
+ "stepKind",
1411
+ "threadStepIndex"
1412
+ ],
1413
+ "properties": {
1414
+ "stepHandle": {
1415
+ "$ref": "#/$defs/StepIdentity"
1416
+ },
1417
+ "stepKind": {
1418
+ "$ref": "#/$defs/StepKind"
1419
+ },
1420
+ "threadStepIndex": {
1421
+ "type": "integer"
1422
+ }
1423
+ }
1424
+ }
1425
+ },
1426
+ "RunEventUpdates": {
1427
+ "identity": "TYPE-RunEventUpdates",
1428
+ "name": "RunEventUpdates",
1429
+ "description": "dummy-description",
1430
+ "nucleusSchema": {
1431
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1432
+ "type": "object",
1433
+ "properties": {
1434
+ "stepsMutation": {
1435
+ "type": "object",
1436
+ "required": [
1437
+ "insertAt",
1438
+ "inserted"
1439
+ ],
1440
+ "properties": {
1441
+ "insertAt": {
1442
+ "type": "integer"
1443
+ },
1444
+ "inserted": {
1445
+ "$ref": "#/$defs/StepArray"
1446
+ }
1447
+ }
1448
+ },
1449
+ "interruptData": {
1450
+ "$comment": "Kept permissive; the engine may evolve interrupt payloads.",
1451
+ "type": [
1452
+ "object",
1453
+ "null"
1454
+ ]
1455
+ }
1456
+ },
1457
+ "allOf": [
1458
+ {
1459
+ "$ref": "#/$defs/StrategyStateDelta"
1460
+ }
1461
+ ]
1462
+ }
1463
+ },
1464
+ "RunEventKind": {
1465
+ "identity": "TYPE-RunEventKind",
1466
+ "name": "RunEventKind",
1467
+ "description": "dummy-description",
1468
+ "nucleusSchema": {
1469
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1470
+ "type": "string",
1471
+ "enum": [
1472
+ "graph_start",
1473
+ "tick",
1474
+ "interrupt",
1475
+ "graph_end"
1476
+ ]
1477
+ }
1478
+ },
1479
+ "RunEventBase": {
1480
+ "identity": "TYPE-RunEventBase",
1481
+ "name": "RunEventBase",
1482
+ "description": "dummy-description",
1483
+ "nucleusSchema": {
1484
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1485
+ "type": "object",
1486
+ "required": [
1487
+ "runEventKind",
1488
+ "runnableStrategyHandle",
1489
+ "strategyThreadHandle",
1490
+ "createdAt",
1491
+ "nodeName",
1492
+ "eventSeq"
1493
+ ],
1494
+ "properties": {
1495
+ "runEventKind": {
1496
+ "$ref": "#/$defs/RunEventKind"
1497
+ },
1498
+ "runnableStrategyHandle": {
1499
+ "$ref": "#/$defs/RunnableStrategyIdentity"
1500
+ },
1501
+ "strategyThreadHandle": {
1502
+ "$ref": "#/$defs/StrategyThreadIdentity"
1503
+ },
1504
+ "createdAt": {
1505
+ "$ref": "#/$defs/Timestamp"
1506
+ },
1507
+ "nodeName": {
1508
+ "type": "string"
1509
+ },
1510
+ "eventSeq": {
1511
+ "type": "integer"
1512
+ },
1513
+ "counters": {
1514
+ "$ref": "#/$defs/RunEventCounters"
1515
+ },
1516
+ "stepMetadata": {
1517
+ "$ref": "#/$defs/RunEventStepMetadata"
1518
+ },
1519
+ "updates": {
1520
+ "$ref": "#/$defs/RunEventUpdates"
1521
+ }
1522
+ }
1523
+ }
1524
+ },
1525
+ "GraphStartRunEvent": {
1526
+ "identity": "TYPE-GraphStartRunEvent",
1527
+ "name": "GraphStartRunEvent",
1528
+ "description": "dummy-description",
1529
+ "nucleusSchema": {
1530
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1531
+ "allOf": [
1532
+ {
1533
+ "$ref": "#/$defs/RunEventBase"
1534
+ },
1535
+ {
1536
+ "type": "object",
1537
+ "required": [
1538
+ "runnableStrategySeed"
1539
+ ],
1540
+ "properties": {
1541
+ "runEventKind": {
1542
+ "const": "graph_start"
1543
+ },
1544
+ "runnableStrategySeed": {
1545
+ "$ref": "#/$defs/RunnableStrategy"
1546
+ }
1547
+ }
1548
+ }
1549
+ ]
1550
+ }
1551
+ },
1552
+ "TickRunEvent": {
1553
+ "identity": "TYPE-TickRunEvent",
1554
+ "name": "TickRunEvent",
1555
+ "description": "dummy-description",
1556
+ "nucleusSchema": {
1557
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1558
+ "allOf": [
1559
+ {
1560
+ "$ref": "#/$defs/RunEventBase"
1561
+ },
1562
+ {
1563
+ "type": "object",
1564
+ "properties": {
1565
+ "runEventKind": {
1566
+ "const": "tick"
1567
+ }
1568
+ }
1569
+ }
1570
+ ]
1571
+ }
1572
+ },
1573
+ "InterruptRunEvent": {
1574
+ "identity": "TYPE-InterruptRunEvent",
1575
+ "name": "InterruptRunEvent",
1576
+ "description": "dummy-description",
1577
+ "nucleusSchema": {
1578
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1579
+ "allOf": [
1580
+ {
1581
+ "$ref": "#/$defs/RunEventBase"
1582
+ },
1583
+ {
1584
+ "type": "object",
1585
+ "properties": {
1586
+ "runEventKind": {
1587
+ "const": "interrupt"
1588
+ }
1589
+ }
1590
+ }
1591
+ ]
1592
+ }
1593
+ },
1594
+ "GraphEndRunEvent": {
1595
+ "identity": "TYPE-GraphEndRunEvent",
1596
+ "name": "GraphEndRunEvent",
1597
+ "description": "dummy-description",
1598
+ "nucleusSchema": {
1599
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1600
+ "allOf": [
1601
+ {
1602
+ "$ref": "#/$defs/RunEventBase"
1603
+ },
1604
+ {
1605
+ "type": "object",
1606
+ "properties": {
1607
+ "runEventKind": {
1608
+ "const": "graph_end"
1609
+ }
1610
+ }
1611
+ }
1612
+ ]
1613
+ }
1614
+ },
1615
+ "RunEvent": {
1616
+ "identity": "TYPE-RunEvent",
1617
+ "name": "RunEvent",
1618
+ "description": "dummy-description",
1619
+ "nucleusSchema": {
1620
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1621
+ "type": "object",
1622
+ "oneOf": [
1623
+ {
1624
+ "$ref": "#/$defs/GraphStartRunEvent"
1625
+ },
1626
+ {
1627
+ "$ref": "#/$defs/TickRunEvent"
1628
+ },
1629
+ {
1630
+ "$ref": "#/$defs/InterruptRunEvent"
1631
+ },
1632
+ {
1633
+ "$ref": "#/$defs/GraphEndRunEvent"
1634
+ }
1635
+ ]
1636
+ }
1637
+ },
1638
+ "StrategyRunIdentity": {
1639
+ "identity": "TYPE-StrategyRunIdentity",
1640
+ "name": "StrategyRunIdentity",
1641
+ "description": "dummy-description",
1642
+ "nucleusSchema": {
1643
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1644
+ "type": "string",
1645
+ "pattern": "^STRATEGY_RUN-.+$"
1646
+ }
1647
+ },
1648
+ "StrategyRun": {
1649
+ "identity": "TYPE-StrategyRun",
1650
+ "name": "StrategyRun",
1651
+ "description": "dummy-description",
1652
+ "nucleusSchema": {
1653
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1654
+ "type": "object",
1655
+ "required": [
1656
+ "identity",
1657
+ "runnableStrategyHandle",
1658
+ "recordedAt",
1659
+ "runEvents"
1660
+ ],
1661
+ "properties": {
1662
+ "identity": {
1663
+ "$ref": "#/$defs/StrategyRunIdentity"
1664
+ },
1665
+ "runnableStrategyHandle": {
1666
+ "$comment": "Could be derived from the first event but useful for indexing.",
1667
+ "$ref": "#/$defs/RunnableStrategyIdentity"
1668
+ },
1669
+ "recordedAt": {
1670
+ "$ref": "#/$defs/Timestamp"
1671
+ },
1672
+ "runEvents": {
1673
+ "type": "array",
1674
+ "items": {
1675
+ "$ref": "#/$defs/RunEvent"
1676
+ }
1677
+ }
1678
+ },
1679
+ "unevaluatedProperties": false
1680
+ }
1681
+ },
1682
+ "GoalIdentity": {
1683
+ "identity": "TYPE-GoalIdentity",
1684
+ "name": "GoalIdentity",
1685
+ "description": "dummy-description",
1686
+ "nucleusSchema": {
1687
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1688
+ "type": "string",
1689
+ "pattern": "^GOAL-.+$"
1690
+ }
1691
+ },
1692
+ "Goal": {
1693
+ "identity": "TYPE-Goal",
1694
+ "name": "Goal",
1695
+ "description": "dummy-description",
1696
+ "nucleusSchema": {
1697
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1698
+ "type": "object",
1699
+ "required": [
1700
+ "identity",
1701
+ "target"
1702
+ ],
1703
+ "properties": {
1704
+ "identity": {
1705
+ "$ref": "#/$defs/GoalIdentity"
1706
+ },
1707
+ "target": {
1708
+ "type": "integer",
1709
+ "minimum": 0
1710
+ },
1711
+ "disallowedJobs": {
1712
+ "type": "array",
1713
+ "items": {
1714
+ "$ref": "#/$defs/JobIdentity"
1715
+ }
1716
+ },
1717
+ "disallowedSequences": {
1718
+ "type": "array",
1719
+ "items": {
1720
+ "type": "array",
1721
+ "items": {
1722
+ "$ref": "#/$defs/JobIdentity"
1723
+ }
1724
+ }
1725
+ },
1726
+ "minSteps": {
1727
+ "type": "integer",
1728
+ "minimum": 1
1729
+ },
1730
+ "maxSteps": {
1731
+ "type": "integer",
1732
+ "minimum": 1
1733
+ }
1734
+ },
1735
+ "unevaluatedProperties": false
1736
+ }
1737
+ },
1738
+ "Natural": {
1739
+ "identity": "TYPE-Natural",
1740
+ "name": "Natural",
1741
+ "description": "dummy-description",
1742
+ "nucleusSchema": {
1743
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1744
+ "type": "object",
1745
+ "required": [
1746
+ "identity"
1747
+ ],
1748
+ "properties": {
1749
+ "identity": {
1750
+ "$ref": "#/$defs/NaturalIdentity"
1751
+ }
1752
+ },
1753
+ "$defs": {
1754
+ "NaturalIdentity": {
1755
+ "type": "integer"
1756
+ }
1757
+ },
1758
+ "additionalProperties": false
1759
+ }
1760
+ },
1761
+ "Boolean": {
1762
+ "identity": "TYPE-Boolean",
1763
+ "name": "Boolean",
1764
+ "description": "dummy-description",
1765
+ "nucleusSchema": {
1766
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1767
+ "type": "object",
1768
+ "required": [
1769
+ "identity"
1770
+ ],
1771
+ "properties": {
1772
+ "identity": {
1773
+ "$ref": "#/$defs/BooleanIdentity"
1774
+ }
1775
+ },
1776
+ "$defs": {
1777
+ "BooleanIdentity": {
1778
+ "type": "boolean"
1779
+ }
1780
+ },
1781
+ "additionalProperties": false
1782
+ }
1783
+ }
1784
+ }
1785
+ }
1786
1786
  }