@toolproof-core/schema 1.0.7 → 1.0.9

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