@toolproof-core/schema 1.0.9 → 1.0.11

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