@toolproof-core/schema 1.0.10 → 1.0.12

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