@toolproof-core/schema 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/dist/generated/types/Resource_Genesis.d.ts +3 -0
  2. package/dist/generated/types/Resource_Genesis.js +1 -0
  3. package/dist/generated/types/Resource_Job.d.ts +3 -0
  4. package/dist/generated/types/Resource_Job.js +1 -0
  5. package/dist/generated/types/Resource_RawStrategy.d.ts +3 -0
  6. package/dist/generated/types/Resource_RawStrategy.js +1 -0
  7. package/dist/generated/types/Resource_ResourceType.d.ts +3 -0
  8. package/dist/generated/types/Resource_ResourceType.js +1 -0
  9. package/dist/generated/types/Resource_RunnableStrategy.d.ts +3 -0
  10. package/dist/generated/types/Resource_RunnableStrategy.js +1 -0
  11. package/dist/generated/types/types.d.ts +1784 -0
  12. package/dist/generated/types/types.js +1 -0
  13. package/dist/scripts/_lib/config.d.ts +53 -0
  14. package/dist/scripts/_lib/config.js +138 -0
  15. package/dist/scripts/extractSchemas.d.ts +1 -0
  16. package/dist/scripts/extractSchemas.js +210 -0
  17. package/dist/scripts/extractSubSchemaWithDefs.d.ts +1 -0
  18. package/dist/scripts/extractSubSchemaWithDefs.js +187 -0
  19. package/dist/scripts/generateDependencies.d.ts +1 -0
  20. package/dist/scripts/generateDependencies.js +106 -0
  21. package/dist/scripts/generateResourceShells.d.ts +1 -0
  22. package/dist/scripts/generateResourceShells.js +91 -0
  23. package/dist/scripts/generateResourceTypeType.d.ts +1 -0
  24. package/dist/scripts/generateResourceTypeType.js +93 -0
  25. package/dist/scripts/generateSchemaShims.d.ts +1 -0
  26. package/dist/scripts/generateSchemaShims.js +105 -0
  27. package/dist/scripts/generateTypes.d.ts +1 -0
  28. package/dist/scripts/generateTypes.js +550 -0
  29. package/dist/scripts/rewriteAnchors.d.ts +1 -0
  30. package/dist/scripts/rewriteAnchors.js +96 -0
  31. package/package.json +45 -0
  32. package/src/Genesis.json +2043 -0
  33. package/src/Roadmap.json +102 -0
  34. package/src/generated/dependencies.json +299 -0
  35. package/src/generated/resourceTypes/Genesis.json +2043 -0
  36. package/src/generated/resourceTypes/Genesis.ts +2 -0
  37. package/src/generated/resources/Genesis.json +2962 -0
  38. package/src/generated/resources/Genesis.ts +2 -0
  39. package/src/generated/schemas/Genesis.json +1489 -0
  40. package/src/generated/schemas/Genesis.ts +2 -0
  41. package/src/generated/schemas/Goal.json +86 -0
  42. package/src/generated/schemas/Goal.ts +2 -0
  43. package/src/generated/schemas/Job.json +236 -0
  44. package/src/generated/schemas/Job.ts +2 -0
  45. package/src/generated/schemas/RawStrategy.json +667 -0
  46. package/src/generated/schemas/RawStrategy.ts +2 -0
  47. package/src/generated/schemas/ResourceType.json +140 -0
  48. package/src/generated/schemas/ResourceType.ts +2 -0
  49. package/src/generated/schemas/RunnableStrategy.json +737 -0
  50. package/src/generated/schemas/RunnableStrategy.ts +2 -0
  51. package/src/generated/schemas/StrategyRun.json +1025 -0
  52. package/src/generated/schemas/StrategyRun.ts +2 -0
  53. package/src/generated/types/Resource_Genesis.d.ts +3 -0
  54. package/src/generated/types/Resource_Genesis.js +1 -0
  55. package/src/generated/types/Resource_Job.d.ts +3 -0
  56. package/src/generated/types/Resource_Job.js +1 -0
  57. package/src/generated/types/Resource_RawStrategy.d.ts +3 -0
  58. package/src/generated/types/Resource_RawStrategy.js +1 -0
  59. package/src/generated/types/Resource_ResourceType.d.ts +3 -0
  60. package/src/generated/types/Resource_ResourceType.js +1 -0
  61. package/src/generated/types/Resource_RunnableStrategy.d.ts +3 -0
  62. package/src/generated/types/Resource_RunnableStrategy.js +1 -0
  63. package/src/generated/types/types.d.ts +1784 -0
  64. package/src/generated/types/types.js +1 -0
  65. package/src/index.ts +1 -0
  66. package/src/scripts/_lib/config.ts +181 -0
  67. package/src/scripts/extractSchemas.ts +229 -0
  68. package/src/scripts/extractSubSchemaWithDefs.ts +196 -0
  69. package/src/scripts/generateDependencies.ts +120 -0
  70. package/src/scripts/generateResourceShells.ts +105 -0
  71. package/src/scripts/generateResourceTypeType.ts +110 -0
  72. package/src/scripts/generateSchemaShims.ts +115 -0
  73. package/src/scripts/generateTypes.ts +615 -0
  74. package/src/scripts/rewriteAnchors.ts +123 -0
@@ -0,0 +1,2962 @@
1
+ {
2
+ "Genesis": {
3
+ "identity": "RESOURCE-Genesis",
4
+ "resourceTypeRef": "TYPE-ResourceType",
5
+ "creationContext": {
6
+ "resourceRoleRef": "ROLE-Genesis",
7
+ "executionRef": "EXECUTION-Genesis"
8
+ },
9
+ "kind": "materialized",
10
+ "timestamp": "2025-11-30T00:00:00.000Z",
11
+ "extractedData": {}
12
+ },
13
+ "Name": {
14
+ "identity": "RESOURCE-Name",
15
+ "resourceTypeRef": "TYPE-ResourceType",
16
+ "creationContext": {
17
+ "resourceRoleRef": "ROLE-Genesis",
18
+ "executionRef": "EXECUTION-Name"
19
+ },
20
+ "kind": "materialized",
21
+ "timestamp": "2025-11-30T00:00:00.000Z",
22
+ "extractedData": {
23
+ "identity": "TYPE-Name",
24
+ "name": "Name",
25
+ "description": "dummy-description",
26
+ "resourceTypeImplementationKind": "internal-without-identity",
27
+ "nucleusSchema": {
28
+ "$anchor": "Name",
29
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
30
+ "type": "string",
31
+ "minLength": 1,
32
+ "pattern": "^(?:[A-Z][^0-9]*|[a-z]+/[a-z.+&-]+)$",
33
+ "$comment": "Validation is intercepted by an AI Agent that verifies the name against Toolproof's naming conventions.",
34
+ "semanticValidation": "Ajv custom keyword to verify name."
35
+ }
36
+ }
37
+ },
38
+ "NameFacet": {
39
+ "identity": "RESOURCE-NameFacet",
40
+ "resourceTypeRef": "TYPE-ResourceType",
41
+ "creationContext": {
42
+ "resourceRoleRef": "ROLE-Genesis",
43
+ "executionRef": "EXECUTION-NameFacet"
44
+ },
45
+ "kind": "materialized",
46
+ "timestamp": "2025-11-30T00:00:00.000Z",
47
+ "extractedData": {
48
+ "identity": "TYPE-NameFacet",
49
+ "name": "NameFacet",
50
+ "description": "dummy-description",
51
+ "resourceTypeImplementationKind": "internal-without-identity",
52
+ "nucleusSchema": {
53
+ "$anchor": "NameFacet",
54
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
55
+ "type": "object",
56
+ "required": [
57
+ "name"
58
+ ],
59
+ "properties": {
60
+ "name": {
61
+ "$ref": "#/$defs/Name"
62
+ }
63
+ }
64
+ }
65
+ }
66
+ },
67
+ "Description": {
68
+ "identity": "RESOURCE-Description",
69
+ "resourceTypeRef": "TYPE-ResourceType",
70
+ "creationContext": {
71
+ "resourceRoleRef": "ROLE-Genesis",
72
+ "executionRef": "EXECUTION-Description"
73
+ },
74
+ "kind": "materialized",
75
+ "timestamp": "2025-11-30T00:00:00.000Z",
76
+ "extractedData": {
77
+ "identity": "TYPE-Description",
78
+ "name": "Description",
79
+ "description": "dummy-description",
80
+ "resourceTypeImplementationKind": "internal-without-identity",
81
+ "nucleusSchema": {
82
+ "$anchor": "Description",
83
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
84
+ "type": "string",
85
+ "minLength": 1,
86
+ "$comment": "Validation is intercepted by an AI Agent that verifies the description against Toolproof's documentation standards.",
87
+ "semanticValidation": "Ajv custom keyword to verify description."
88
+ }
89
+ }
90
+ },
91
+ "DescriptionFacet": {
92
+ "identity": "RESOURCE-DescriptionFacet",
93
+ "resourceTypeRef": "TYPE-ResourceType",
94
+ "creationContext": {
95
+ "resourceRoleRef": "ROLE-Genesis",
96
+ "executionRef": "EXECUTION-DescriptionFacet"
97
+ },
98
+ "kind": "materialized",
99
+ "timestamp": "2025-11-30T00:00:00.000Z",
100
+ "extractedData": {
101
+ "identity": "TYPE-DescriptionFacet",
102
+ "name": "DescriptionFacet",
103
+ "description": "dummy-description",
104
+ "resourceTypeImplementationKind": "internal-without-identity",
105
+ "nucleusSchema": {
106
+ "$anchor": "DescriptionFacet",
107
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
108
+ "type": "object",
109
+ "required": [
110
+ "description"
111
+ ],
112
+ "properties": {
113
+ "description": {
114
+ "$ref": "#/$defs/Description"
115
+ }
116
+ }
117
+ }
118
+ }
119
+ },
120
+ "DocumentationFacet": {
121
+ "identity": "RESOURCE-DocumentationFacet",
122
+ "resourceTypeRef": "TYPE-ResourceType",
123
+ "creationContext": {
124
+ "resourceRoleRef": "ROLE-Genesis",
125
+ "executionRef": "EXECUTION-DocumentationFacet"
126
+ },
127
+ "kind": "materialized",
128
+ "timestamp": "2025-11-30T00:00:00.000Z",
129
+ "extractedData": {
130
+ "identity": "TYPE-DocumentationFacet",
131
+ "name": "DocumentationFacet",
132
+ "description": "dummy-description",
133
+ "resourceTypeImplementationKind": "internal-without-identity",
134
+ "nucleusSchema": {
135
+ "$anchor": "DocumentationFacet",
136
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
137
+ "type": "object",
138
+ "allOf": [
139
+ {
140
+ "$ref": "#/$defs/NameFacet"
141
+ },
142
+ {
143
+ "$ref": "#/$defs/DescriptionFacet"
144
+ }
145
+ ]
146
+ }
147
+ }
148
+ },
149
+ "ResourceTypeImplementationKind": {
150
+ "identity": "RESOURCE-ResourceTypeImplementationKind",
151
+ "resourceTypeRef": "TYPE-ResourceType",
152
+ "creationContext": {
153
+ "resourceRoleRef": "ROLE-Genesis",
154
+ "executionRef": "EXECUTION-ResourceTypeImplementationKind"
155
+ },
156
+ "kind": "materialized",
157
+ "timestamp": "2025-11-30T00:00:00.000Z",
158
+ "extractedData": {
159
+ "identity": "TYPE-ResourceTypeImplementationKind",
160
+ "name": "ResourceTypeImplementationKind",
161
+ "description": "dummy-description",
162
+ "resourceTypeImplementationKind": "internal-without-identity",
163
+ "nucleusSchema": {
164
+ "$anchor": "ResourceTypeImplementationKind",
165
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
166
+ "type": "string",
167
+ "enum": [
168
+ "internal-without-identity",
169
+ "internal-with-identity",
170
+ "external"
171
+ ]
172
+ }
173
+ }
174
+ },
175
+ "ResourceTypeImplementationKindFacet": {
176
+ "identity": "RESOURCE-ResourceTypeImplementationKindFacet",
177
+ "resourceTypeRef": "TYPE-ResourceType",
178
+ "creationContext": {
179
+ "resourceRoleRef": "ROLE-Genesis",
180
+ "executionRef": "EXECUTION-ResourceTypeImplementationKindFacet"
181
+ },
182
+ "kind": "materialized",
183
+ "timestamp": "2025-11-30T00:00:00.000Z",
184
+ "extractedData": {
185
+ "identity": "TYPE-ResourceTypeImplementationKindFacet",
186
+ "name": "ResourceTypeImplementationKindFacet",
187
+ "description": "dummy-description",
188
+ "resourceTypeImplementationKind": "internal-without-identity",
189
+ "nucleusSchema": {
190
+ "$anchor": "ResourceTypeImplementationKindFacet",
191
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
192
+ "type": "object",
193
+ "required": [
194
+ "resourceTypeImplementationKind"
195
+ ],
196
+ "properties": {
197
+ "resourceTypeImplementationKind": {
198
+ "$ref": "#/$defs/ResourceTypeImplementationKind"
199
+ }
200
+ }
201
+ }
202
+ }
203
+ },
204
+ "Uri": {
205
+ "identity": "RESOURCE-Uri",
206
+ "resourceTypeRef": "TYPE-ResourceType",
207
+ "creationContext": {
208
+ "resourceRoleRef": "ROLE-Genesis",
209
+ "executionRef": "EXECUTION-Uri"
210
+ },
211
+ "kind": "materialized",
212
+ "timestamp": "2025-11-30T00:00:00.000Z",
213
+ "extractedData": {
214
+ "identity": "TYPE-Uri",
215
+ "name": "Uri",
216
+ "description": "dummy-description",
217
+ "resourceTypeImplementationKind": "internal-without-identity",
218
+ "nucleusSchema": {
219
+ "$anchor": "Uri",
220
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
221
+ "type": "string",
222
+ "format": "uri"
223
+ }
224
+ }
225
+ },
226
+ "ResourceTypeIdentity": {
227
+ "identity": "RESOURCE-ResourceTypeIdentity",
228
+ "resourceTypeRef": "TYPE-ResourceType",
229
+ "creationContext": {
230
+ "resourceRoleRef": "ROLE-Genesis",
231
+ "executionRef": "EXECUTION-ResourceTypeIdentity"
232
+ },
233
+ "kind": "materialized",
234
+ "timestamp": "2025-11-30T00:00:00.000Z",
235
+ "extractedData": {
236
+ "identity": "TYPE-ResourceTypeIdentity",
237
+ "name": "ResourceTypeIdentity",
238
+ "description": "dummy-description",
239
+ "resourceTypeImplementationKind": "internal-without-identity",
240
+ "nucleusSchema": {
241
+ "$anchor": "ResourceTypeIdentity",
242
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
243
+ "type": "string",
244
+ "pattern": "^TYPE-.+$"
245
+ }
246
+ }
247
+ },
248
+ "ResourceType": {
249
+ "identity": "RESOURCE-ResourceType",
250
+ "resourceTypeRef": "TYPE-ResourceType",
251
+ "creationContext": {
252
+ "resourceRoleRef": "ROLE-Genesis",
253
+ "executionRef": "EXECUTION-ResourceType"
254
+ },
255
+ "kind": "materialized",
256
+ "timestamp": "2025-11-30T00:00:00.000Z",
257
+ "extractedData": {
258
+ "identity": "TYPE-ResourceType",
259
+ "name": "ResourceType",
260
+ "description": "dummy-description",
261
+ "resourceTypeImplementationKind": "internal-with-identity",
262
+ "nucleusSchema": {
263
+ "$anchor": "ResourceType",
264
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
265
+ "type": "object",
266
+ "required": [
267
+ "identity",
268
+ "nucleusSchema"
269
+ ],
270
+ "properties": {
271
+ "identity": {
272
+ "$ref": "#/$defs/ResourceTypeIdentity"
273
+ },
274
+ "nucleusSchema": true,
275
+ "embeddingUriMap": {
276
+ "type": "object",
277
+ "propertyNames": {
278
+ "type": "string",
279
+ "pattern": "^EMBEDDING-.+$"
280
+ },
281
+ "additionalProperties": {
282
+ "$ref": "#/$defs/Uri"
283
+ },
284
+ "minProperties": 1,
285
+ "$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."
286
+ },
287
+ "generatorUriMap": {
288
+ "type": "object",
289
+ "propertyNames": {
290
+ "type": "string",
291
+ "pattern": "^GENERATOR-.+$"
292
+ },
293
+ "additionalProperties": {
294
+ "$ref": "#/$defs/Uri"
295
+ },
296
+ "minProperties": 1,
297
+ "$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."
298
+ }
299
+ },
300
+ "allOf": [
301
+ {
302
+ "$ref": "#/$defs/DocumentationFacet"
303
+ },
304
+ {
305
+ "$ref": "#/$defs/ResourceTypeImplementationKindFacet"
306
+ }
307
+ ]
308
+ }
309
+ }
310
+ },
311
+ "ResourceRoleIdentity": {
312
+ "identity": "RESOURCE-ResourceRoleIdentity",
313
+ "resourceTypeRef": "TYPE-ResourceType",
314
+ "creationContext": {
315
+ "resourceRoleRef": "ROLE-Genesis",
316
+ "executionRef": "EXECUTION-ResourceRoleIdentity"
317
+ },
318
+ "kind": "materialized",
319
+ "timestamp": "2025-11-30T00:00:00.000Z",
320
+ "extractedData": {
321
+ "identity": "TYPE-ResourceRoleIdentity",
322
+ "name": "ResourceRoleIdentity",
323
+ "description": "dummy-description",
324
+ "resourceTypeImplementationKind": "internal-without-identity",
325
+ "nucleusSchema": {
326
+ "$anchor": "ResourceRoleIdentity",
327
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
328
+ "type": "string",
329
+ "pattern": "^ROLE-.+$"
330
+ }
331
+ }
332
+ },
333
+ "ResourceRoleValue": {
334
+ "identity": "RESOURCE-ResourceRoleValue",
335
+ "resourceTypeRef": "TYPE-ResourceType",
336
+ "creationContext": {
337
+ "resourceRoleRef": "ROLE-Genesis",
338
+ "executionRef": "EXECUTION-ResourceRoleValue"
339
+ },
340
+ "kind": "materialized",
341
+ "timestamp": "2025-11-30T00:00:00.000Z",
342
+ "extractedData": {
343
+ "identity": "TYPE-ResourceRoleValue",
344
+ "name": "ResourceRoleValue",
345
+ "description": "dummy-description",
346
+ "resourceTypeImplementationKind": "internal-without-identity",
347
+ "nucleusSchema": {
348
+ "$anchor": "ResourceRoleValue",
349
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
350
+ "type": "object",
351
+ "allOf": [
352
+ {
353
+ "$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).",
354
+ "required": [
355
+ "resourceTypeHandle"
356
+ ],
357
+ "properties": {
358
+ "resourceTypeHandle": {
359
+ "$ref": "#/$defs/ResourceTypeIdentity"
360
+ }
361
+ }
362
+ },
363
+ {
364
+ "$ref": "#/$defs/DocumentationFacet"
365
+ }
366
+ ]
367
+ },
368
+ "unevaluatedProperties": false
369
+ }
370
+ },
371
+ "RoleMap": {
372
+ "identity": "RESOURCE-RoleMap",
373
+ "resourceTypeRef": "TYPE-ResourceType",
374
+ "creationContext": {
375
+ "resourceRoleRef": "ROLE-Genesis",
376
+ "executionRef": "EXECUTION-RoleMap"
377
+ },
378
+ "kind": "materialized",
379
+ "timestamp": "2025-11-30T00:00:00.000Z",
380
+ "extractedData": {
381
+ "identity": "TYPE-RoleMap",
382
+ "name": "RoleMap",
383
+ "description": "dummy-description",
384
+ "resourceTypeImplementationKind": "internal-without-identity",
385
+ "nucleusSchema": {
386
+ "$anchor": "RoleMap",
387
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
388
+ "type": "object",
389
+ "propertyNames": {
390
+ "$ref": "#/$defs/ResourceRoleIdentity"
391
+ },
392
+ "additionalProperties": {
393
+ "$ref": "#/$defs/ResourceRoleValue"
394
+ }
395
+ }
396
+ }
397
+ },
398
+ "Error": {
399
+ "identity": "RESOURCE-Error",
400
+ "resourceTypeRef": "TYPE-ResourceType",
401
+ "creationContext": {
402
+ "resourceRoleRef": "ROLE-Genesis",
403
+ "executionRef": "EXECUTION-Error"
404
+ },
405
+ "kind": "materialized",
406
+ "timestamp": "2025-11-30T00:00:00.000Z",
407
+ "extractedData": {
408
+ "identity": "TYPE-Error",
409
+ "name": "Error",
410
+ "description": "dummy-description",
411
+ "resourceTypeImplementationKind": "internal-without-identity",
412
+ "nucleusSchema": {
413
+ "$anchor": "Error",
414
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
415
+ "type": "object",
416
+ "allOf": [
417
+ {
418
+ "$ref": "#/$defs/DocumentationFacet"
419
+ },
420
+ {
421
+ "properties": {
422
+ "details": {
423
+ "type": "object"
424
+ }
425
+ }
426
+ }
427
+ ],
428
+ "unevaluatedProperties": false
429
+ }
430
+ }
431
+ },
432
+ "Roles": {
433
+ "identity": "RESOURCE-Roles",
434
+ "resourceTypeRef": "TYPE-ResourceType",
435
+ "creationContext": {
436
+ "resourceRoleRef": "ROLE-Genesis",
437
+ "executionRef": "EXECUTION-Roles"
438
+ },
439
+ "kind": "materialized",
440
+ "timestamp": "2025-11-30T00:00:00.000Z",
441
+ "extractedData": {
442
+ "identity": "TYPE-Roles",
443
+ "name": "Roles",
444
+ "description": "dummy-description",
445
+ "resourceTypeImplementationKind": "internal-without-identity",
446
+ "nucleusSchema": {
447
+ "$anchor": "Roles",
448
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
449
+ "type": "object",
450
+ "required": [
451
+ "inputMap",
452
+ "outputMap"
453
+ ],
454
+ "properties": {
455
+ "inputMap": {
456
+ "$ref": "#/$defs/RoleMap"
457
+ },
458
+ "outputMap": {
459
+ "allOf": [
460
+ {
461
+ "$ref": "#/$defs/RoleMap"
462
+ },
463
+ {
464
+ "required": [
465
+ "ROLE-ErrorOutput"
466
+ ],
467
+ "properties": {
468
+ "ROLE-ErrorOutput": {
469
+ "type": "object",
470
+ "allOf": [
471
+ {
472
+ "$ref": "#/$defs/ResourceRoleValue"
473
+ },
474
+ {
475
+ "required": [
476
+ "resourceTypeHandle",
477
+ "name",
478
+ "description"
479
+ ],
480
+ "properties": {
481
+ "resourceTypeHandle": {
482
+ "const": "TYPE-Error"
483
+ },
484
+ "name": {
485
+ "const": "ErrorOutput"
486
+ },
487
+ "description": {
488
+ "const": "Represents error outputs from job runs."
489
+ }
490
+ }
491
+ }
492
+ ]
493
+ }
494
+ }
495
+ }
496
+ ]
497
+ }
498
+ },
499
+ "unevaluatedProperties": false
500
+ }
501
+ }
502
+ },
503
+ "RolesFacet": {
504
+ "identity": "RESOURCE-RolesFacet",
505
+ "resourceTypeRef": "TYPE-ResourceType",
506
+ "creationContext": {
507
+ "resourceRoleRef": "ROLE-Genesis",
508
+ "executionRef": "EXECUTION-RolesFacet"
509
+ },
510
+ "kind": "materialized",
511
+ "timestamp": "2025-11-30T00:00:00.000Z",
512
+ "extractedData": {
513
+ "identity": "TYPE-RolesFacet",
514
+ "name": "RolesFacet",
515
+ "description": "dummy-description",
516
+ "resourceTypeImplementationKind": "internal-without-identity",
517
+ "nucleusSchema": {
518
+ "$anchor": "RolesFacet",
519
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
520
+ "type": "object",
521
+ "required": [
522
+ "roles"
523
+ ],
524
+ "properties": {
525
+ "roles": {
526
+ "$ref": "#/$defs/Roles"
527
+ }
528
+ }
529
+ }
530
+ }
531
+ },
532
+ "Domain": {
533
+ "identity": "RESOURCE-Domain",
534
+ "resourceTypeRef": "TYPE-ResourceType",
535
+ "creationContext": {
536
+ "resourceRoleRef": "ROLE-Genesis",
537
+ "executionRef": "EXECUTION-Domain"
538
+ },
539
+ "kind": "materialized",
540
+ "timestamp": "2025-11-30T00:00:00.000Z",
541
+ "extractedData": {
542
+ "identity": "TYPE-Domain",
543
+ "name": "Domain",
544
+ "description": "dummy-description",
545
+ "resourceTypeImplementationKind": "internal-without-identity",
546
+ "nucleusSchema": {
547
+ "$anchor": "Domain",
548
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
549
+ "type": "string",
550
+ "enum": [
551
+ "internal",
552
+ "numerical",
553
+ "biological",
554
+ "logical",
555
+ "augmental"
556
+ ]
557
+ }
558
+ }
559
+ },
560
+ "DomainFacet": {
561
+ "identity": "RESOURCE-DomainFacet",
562
+ "resourceTypeRef": "TYPE-ResourceType",
563
+ "creationContext": {
564
+ "resourceRoleRef": "ROLE-Genesis",
565
+ "executionRef": "EXECUTION-DomainFacet"
566
+ },
567
+ "kind": "materialized",
568
+ "timestamp": "2025-11-30T00:00:00.000Z",
569
+ "extractedData": {
570
+ "identity": "TYPE-DomainFacet",
571
+ "name": "DomainFacet",
572
+ "description": "dummy-description",
573
+ "resourceTypeImplementationKind": "internal-without-identity",
574
+ "nucleusSchema": {
575
+ "$anchor": "DomainFacet",
576
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
577
+ "type": "object",
578
+ "required": [
579
+ "domain"
580
+ ],
581
+ "properties": {
582
+ "domain": {
583
+ "$ref": "#/$defs/Domain"
584
+ }
585
+ }
586
+ }
587
+ }
588
+ },
589
+ "JobIdentity": {
590
+ "identity": "RESOURCE-JobIdentity",
591
+ "resourceTypeRef": "TYPE-ResourceType",
592
+ "creationContext": {
593
+ "resourceRoleRef": "ROLE-Genesis",
594
+ "executionRef": "EXECUTION-JobIdentity"
595
+ },
596
+ "kind": "materialized",
597
+ "timestamp": "2025-11-30T00:00:00.000Z",
598
+ "extractedData": {
599
+ "identity": "TYPE-JobIdentity",
600
+ "name": "JobIdentity",
601
+ "description": "dummy-description",
602
+ "resourceTypeImplementationKind": "internal-without-identity",
603
+ "nucleusSchema": {
604
+ "$anchor": "JobIdentity",
605
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
606
+ "type": "string",
607
+ "pattern": "^JOB-.+$"
608
+ }
609
+ }
610
+ },
611
+ "Job": {
612
+ "identity": "RESOURCE-Job",
613
+ "resourceTypeRef": "TYPE-ResourceType",
614
+ "creationContext": {
615
+ "resourceRoleRef": "ROLE-Genesis",
616
+ "executionRef": "EXECUTION-Job"
617
+ },
618
+ "kind": "materialized",
619
+ "timestamp": "2025-11-30T00:00:00.000Z",
620
+ "extractedData": {
621
+ "identity": "TYPE-Job",
622
+ "name": "Job",
623
+ "description": "dummy-description",
624
+ "resourceTypeImplementationKind": "internal-with-identity",
625
+ "nucleusSchema": {
626
+ "$anchor": "Job",
627
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
628
+ "type": "object",
629
+ "required": [
630
+ "identity",
631
+ "implementationUri"
632
+ ],
633
+ "properties": {
634
+ "identity": {
635
+ "$ref": "#/$defs/JobIdentity"
636
+ },
637
+ "implementationUri": {
638
+ "$ref": "#/$defs/Uri"
639
+ }
640
+ },
641
+ "allOf": [
642
+ {
643
+ "$ref": "#/$defs/DocumentationFacet"
644
+ },
645
+ {
646
+ "$ref": "#/$defs/DomainFacet"
647
+ },
648
+ {
649
+ "$ref": "#/$defs/RolesFacet"
650
+ }
651
+ ],
652
+ "unevaluatedProperties": false
653
+ }
654
+ }
655
+ },
656
+ "RoleBindingArray": {
657
+ "identity": "RESOURCE-RoleBindingArray",
658
+ "resourceTypeRef": "TYPE-ResourceType",
659
+ "creationContext": {
660
+ "resourceRoleRef": "ROLE-Genesis",
661
+ "executionRef": "EXECUTION-RoleBindingArray"
662
+ },
663
+ "kind": "materialized",
664
+ "timestamp": "2025-11-30T00:00:00.000Z",
665
+ "extractedData": {
666
+ "identity": "TYPE-RoleBindingArray",
667
+ "name": "RoleBindingArray",
668
+ "description": "dummy-description",
669
+ "resourceTypeImplementationKind": "internal-without-identity",
670
+ "nucleusSchema": {
671
+ "$anchor": "RoleBindingArray",
672
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
673
+ "type": "array",
674
+ "items": {
675
+ "$ref": "#/$defs/ResourceRoleIdentity"
676
+ }
677
+ }
678
+ }
679
+ },
680
+ "RoleBindings": {
681
+ "identity": "RESOURCE-RoleBindings",
682
+ "resourceTypeRef": "TYPE-ResourceType",
683
+ "creationContext": {
684
+ "resourceRoleRef": "ROLE-Genesis",
685
+ "executionRef": "EXECUTION-RoleBindings"
686
+ },
687
+ "kind": "materialized",
688
+ "timestamp": "2025-11-30T00:00:00.000Z",
689
+ "extractedData": {
690
+ "identity": "TYPE-RoleBindings",
691
+ "name": "RoleBindings",
692
+ "description": "dummy-description",
693
+ "resourceTypeImplementationKind": "internal-without-identity",
694
+ "nucleusSchema": {
695
+ "$anchor": "RoleBindings",
696
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
697
+ "type": "object",
698
+ "required": [
699
+ "inputBindings",
700
+ "outputBindings"
701
+ ],
702
+ "properties": {
703
+ "inputBindings": {
704
+ "$ref": "#/$defs/RoleBindingArray"
705
+ },
706
+ "outputBindings": {
707
+ "$ref": "#/$defs/RoleBindingArray"
708
+ }
709
+ }
710
+ },
711
+ "unevaluatedProperties": false
712
+ }
713
+ },
714
+ "RoleBindingsFacet": {
715
+ "identity": "RESOURCE-RoleBindingsFacet",
716
+ "resourceTypeRef": "TYPE-ResourceType",
717
+ "creationContext": {
718
+ "resourceRoleRef": "ROLE-Genesis",
719
+ "executionRef": "EXECUTION-RoleBindingsFacet"
720
+ },
721
+ "kind": "materialized",
722
+ "timestamp": "2025-11-30T00:00:00.000Z",
723
+ "extractedData": {
724
+ "identity": "TYPE-RoleBindingsFacet",
725
+ "name": "RoleBindingsFacet",
726
+ "description": "dummy-description",
727
+ "resourceTypeImplementationKind": "internal-without-identity",
728
+ "nucleusSchema": {
729
+ "$anchor": "RoleBindingsFacet",
730
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
731
+ "type": "object",
732
+ "required": [
733
+ "roleBindings"
734
+ ],
735
+ "properties": {
736
+ "roleBindings": {
737
+ "$ref": "#/$defs/RoleBindings"
738
+ }
739
+ }
740
+ }
741
+ }
742
+ },
743
+ "JobRunIdentity": {
744
+ "identity": "RESOURCE-JobRunIdentity",
745
+ "resourceTypeRef": "TYPE-ResourceType",
746
+ "creationContext": {
747
+ "resourceRoleRef": "ROLE-Genesis",
748
+ "executionRef": "EXECUTION-JobRunIdentity"
749
+ },
750
+ "kind": "materialized",
751
+ "timestamp": "2025-11-30T00:00:00.000Z",
752
+ "extractedData": {
753
+ "identity": "TYPE-JobRunIdentity",
754
+ "name": "JobRunIdentity",
755
+ "description": "dummy-description",
756
+ "resourceTypeImplementationKind": "internal-without-identity",
757
+ "nucleusSchema": {
758
+ "$anchor": "JobRunIdentity",
759
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
760
+ "type": "string",
761
+ "pattern": "^JobRun-.+$"
762
+ }
763
+ }
764
+ },
765
+ "JobRun": {
766
+ "identity": "RESOURCE-JobRun",
767
+ "resourceTypeRef": "TYPE-ResourceType",
768
+ "creationContext": {
769
+ "resourceRoleRef": "ROLE-Genesis",
770
+ "executionRef": "EXECUTION-JobRun"
771
+ },
772
+ "kind": "materialized",
773
+ "timestamp": "2025-11-30T00:00:00.000Z",
774
+ "extractedData": {
775
+ "identity": "TYPE-JobRun",
776
+ "name": "JobRun",
777
+ "description": "dummy-description",
778
+ "resourceTypeImplementationKind": "internal-with-identity",
779
+ "nucleusSchema": {
780
+ "$anchor": "JobRun",
781
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
782
+ "type": "object",
783
+ "required": [
784
+ "identity",
785
+ "jobHandle"
786
+ ],
787
+ "properties": {
788
+ "identity": {
789
+ "$ref": "#/$defs/JobRunIdentity"
790
+ },
791
+ "jobHandle": {
792
+ "$ref": "#/$defs/JobIdentity"
793
+ }
794
+ },
795
+ "allOf": [
796
+ {
797
+ "$comment": "This will be overlayed dynamically to specify roleBindings corresponding to the roles of the underlying job.",
798
+ "$ref": "#/$defs/RoleBindingsFacet"
799
+ }
800
+ ]
801
+ }
802
+ }
803
+ },
804
+ "Conditional": {
805
+ "identity": "RESOURCE-Conditional",
806
+ "resourceTypeRef": "TYPE-ResourceType",
807
+ "creationContext": {
808
+ "resourceRoleRef": "ROLE-Genesis",
809
+ "executionRef": "EXECUTION-Conditional"
810
+ },
811
+ "kind": "materialized",
812
+ "timestamp": "2025-11-30T00:00:00.000Z",
813
+ "extractedData": {
814
+ "identity": "TYPE-Conditional",
815
+ "name": "Conditional",
816
+ "description": "dummy-description",
817
+ "resourceTypeImplementationKind": "internal-without-identity",
818
+ "nucleusSchema": {
819
+ "$anchor": "Conditional",
820
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
821
+ "type": "object",
822
+ "required": [
823
+ "when",
824
+ "what"
825
+ ],
826
+ "properties": {
827
+ "when": {
828
+ "$ref": "#/$defs/JobStep"
829
+ },
830
+ "what": {
831
+ "$ref": "#/$defs/JobStep"
832
+ }
833
+ },
834
+ "unevaluatedProperties": false
835
+ }
836
+ }
837
+ },
838
+ "StepKind": {
839
+ "identity": "RESOURCE-StepKind",
840
+ "resourceTypeRef": "TYPE-ResourceType",
841
+ "creationContext": {
842
+ "resourceRoleRef": "ROLE-Genesis",
843
+ "executionRef": "EXECUTION-StepKind"
844
+ },
845
+ "kind": "materialized",
846
+ "timestamp": "2025-11-30T00:00:00.000Z",
847
+ "extractedData": {
848
+ "identity": "TYPE-StepKind",
849
+ "name": "StepKind",
850
+ "description": "dummy-description",
851
+ "resourceTypeImplementationKind": "internal-without-identity",
852
+ "nucleusSchema": {
853
+ "$anchor": "StepKind",
854
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
855
+ "type": "string",
856
+ "enum": [
857
+ "job",
858
+ "branch",
859
+ "while",
860
+ "for"
861
+ ]
862
+ }
863
+ }
864
+ },
865
+ "StepKindFacet": {
866
+ "identity": "RESOURCE-StepKindFacet",
867
+ "resourceTypeRef": "TYPE-ResourceType",
868
+ "creationContext": {
869
+ "resourceRoleRef": "ROLE-Genesis",
870
+ "executionRef": "EXECUTION-StepKindFacet"
871
+ },
872
+ "kind": "materialized",
873
+ "timestamp": "2025-11-30T00:00:00.000Z",
874
+ "extractedData": {
875
+ "identity": "TYPE-StepKindFacet",
876
+ "name": "StepKindFacet",
877
+ "description": "dummy-description",
878
+ "resourceTypeImplementationKind": "internal-without-identity",
879
+ "nucleusSchema": {
880
+ "$anchor": "StepKindFacet",
881
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
882
+ "type": "object",
883
+ "required": [
884
+ "stepKind"
885
+ ],
886
+ "properties": {
887
+ "stepKind": {
888
+ "$ref": "#/$defs/StepKind"
889
+ }
890
+ }
891
+ }
892
+ }
893
+ },
894
+ "JobStepIdentity": {
895
+ "identity": "RESOURCE-JobStepIdentity",
896
+ "resourceTypeRef": "TYPE-ResourceType",
897
+ "creationContext": {
898
+ "resourceRoleRef": "ROLE-Genesis",
899
+ "executionRef": "EXECUTION-JobStepIdentity"
900
+ },
901
+ "kind": "materialized",
902
+ "timestamp": "2025-11-30T00:00:00.000Z",
903
+ "extractedData": {
904
+ "identity": "TYPE-JobStepIdentity",
905
+ "name": "JobStepIdentity",
906
+ "description": "dummy-description",
907
+ "resourceTypeImplementationKind": "internal-without-identity",
908
+ "nucleusSchema": {
909
+ "$anchor": "JobStepIdentity",
910
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
911
+ "type": "string",
912
+ "pattern": "^JobStep-.+$"
913
+ }
914
+ }
915
+ },
916
+ "JobStep": {
917
+ "identity": "RESOURCE-JobStep",
918
+ "resourceTypeRef": "TYPE-ResourceType",
919
+ "creationContext": {
920
+ "resourceRoleRef": "ROLE-Genesis",
921
+ "executionRef": "EXECUTION-JobStep"
922
+ },
923
+ "kind": "materialized",
924
+ "timestamp": "2025-11-30T00:00:00.000Z",
925
+ "extractedData": {
926
+ "identity": "TYPE-JobStep",
927
+ "name": "JobStep",
928
+ "description": "dummy-description",
929
+ "resourceTypeImplementationKind": "internal-with-identity",
930
+ "nucleusSchema": {
931
+ "$anchor": "JobStep",
932
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
933
+ "type": "object",
934
+ "required": [
935
+ "identity",
936
+ "jobRun"
937
+ ],
938
+ "properties": {
939
+ "identity": {
940
+ "$ref": "#/$defs/JobStepIdentity"
941
+ },
942
+ "stepKind": {
943
+ "const": "job"
944
+ },
945
+ "jobRun": {
946
+ "$ref": "#/$defs/JobRun"
947
+ }
948
+ },
949
+ "allOf": [
950
+ {
951
+ "$ref": "#/$defs/StepKindFacet"
952
+ }
953
+ ]
954
+ }
955
+ }
956
+ },
957
+ "BranchStepIdentity": {
958
+ "identity": "RESOURCE-BranchStepIdentity",
959
+ "resourceTypeRef": "TYPE-ResourceType",
960
+ "creationContext": {
961
+ "resourceRoleRef": "ROLE-Genesis",
962
+ "executionRef": "EXECUTION-BranchStepIdentity"
963
+ },
964
+ "kind": "materialized",
965
+ "timestamp": "2025-11-30T00:00:00.000Z",
966
+ "extractedData": {
967
+ "identity": "TYPE-BranchStepIdentity",
968
+ "name": "BranchStepIdentity",
969
+ "description": "dummy-description",
970
+ "resourceTypeImplementationKind": "internal-without-identity",
971
+ "nucleusSchema": {
972
+ "$anchor": "BranchStepIdentity",
973
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
974
+ "type": "string",
975
+ "pattern": "^BRANCHSTEP-.+$"
976
+ }
977
+ }
978
+ },
979
+ "BranchStep": {
980
+ "identity": "RESOURCE-BranchStep",
981
+ "resourceTypeRef": "TYPE-ResourceType",
982
+ "creationContext": {
983
+ "resourceRoleRef": "ROLE-Genesis",
984
+ "executionRef": "EXECUTION-BranchStep"
985
+ },
986
+ "kind": "materialized",
987
+ "timestamp": "2025-11-30T00:00:00.000Z",
988
+ "extractedData": {
989
+ "identity": "TYPE-BranchStep",
990
+ "name": "BranchStep",
991
+ "description": "dummy-description",
992
+ "resourceTypeImplementationKind": "internal-with-identity",
993
+ "nucleusSchema": {
994
+ "$anchor": "BranchStep",
995
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
996
+ "type": "object",
997
+ "required": [
998
+ "identity",
999
+ "cases"
1000
+ ],
1001
+ "properties": {
1002
+ "identity": {
1003
+ "$ref": "#/$defs/BranchStepIdentity"
1004
+ },
1005
+ "stepKind": {
1006
+ "const": "branch"
1007
+ },
1008
+ "cases": {
1009
+ "type": "array",
1010
+ "items": {
1011
+ "$ref": "#/$defs/Conditional"
1012
+ },
1013
+ "minItems": 1,
1014
+ "uniqueItems": true
1015
+ }
1016
+ },
1017
+ "allOf": [
1018
+ {
1019
+ "$ref": "#/$defs/StepKindFacet"
1020
+ }
1021
+ ]
1022
+ }
1023
+ }
1024
+ },
1025
+ "WhileStepIdentity": {
1026
+ "identity": "RESOURCE-WhileStepIdentity",
1027
+ "resourceTypeRef": "TYPE-ResourceType",
1028
+ "creationContext": {
1029
+ "resourceRoleRef": "ROLE-Genesis",
1030
+ "executionRef": "EXECUTION-WhileStepIdentity"
1031
+ },
1032
+ "kind": "materialized",
1033
+ "timestamp": "2025-11-30T00:00:00.000Z",
1034
+ "extractedData": {
1035
+ "identity": "TYPE-WhileStepIdentity",
1036
+ "name": "WhileStepIdentity",
1037
+ "description": "dummy-description",
1038
+ "resourceTypeImplementationKind": "internal-without-identity",
1039
+ "nucleusSchema": {
1040
+ "$anchor": "WhileStepIdentity",
1041
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1042
+ "type": "string",
1043
+ "pattern": "^WHILESTEP-.+$"
1044
+ }
1045
+ }
1046
+ },
1047
+ "WhileStep": {
1048
+ "identity": "RESOURCE-WhileStep",
1049
+ "resourceTypeRef": "TYPE-ResourceType",
1050
+ "creationContext": {
1051
+ "resourceRoleRef": "ROLE-Genesis",
1052
+ "executionRef": "EXECUTION-WhileStep"
1053
+ },
1054
+ "kind": "materialized",
1055
+ "timestamp": "2025-11-30T00:00:00.000Z",
1056
+ "extractedData": {
1057
+ "identity": "TYPE-WhileStep",
1058
+ "name": "WhileStep",
1059
+ "description": "dummy-description",
1060
+ "resourceTypeImplementationKind": "internal-with-identity",
1061
+ "nucleusSchema": {
1062
+ "$anchor": "WhileStep",
1063
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1064
+ "type": "object",
1065
+ "required": [
1066
+ "identity",
1067
+ "case"
1068
+ ],
1069
+ "properties": {
1070
+ "identity": {
1071
+ "$ref": "#/$defs/WhileStepIdentity"
1072
+ },
1073
+ "stepKind": {
1074
+ "const": "while"
1075
+ },
1076
+ "case": {
1077
+ "$ref": "#/$defs/Conditional"
1078
+ }
1079
+ },
1080
+ "allOf": [
1081
+ {
1082
+ "$ref": "#/$defs/StepKindFacet"
1083
+ }
1084
+ ]
1085
+ }
1086
+ }
1087
+ },
1088
+ "ForStepIdentity": {
1089
+ "identity": "RESOURCE-ForStepIdentity",
1090
+ "resourceTypeRef": "TYPE-ResourceType",
1091
+ "creationContext": {
1092
+ "resourceRoleRef": "ROLE-Genesis",
1093
+ "executionRef": "EXECUTION-ForStepIdentity"
1094
+ },
1095
+ "kind": "materialized",
1096
+ "timestamp": "2025-11-30T00:00:00.000Z",
1097
+ "extractedData": {
1098
+ "identity": "TYPE-ForStepIdentity",
1099
+ "name": "ForStepIdentity",
1100
+ "description": "dummy-description",
1101
+ "resourceTypeImplementationKind": "internal-without-identity",
1102
+ "nucleusSchema": {
1103
+ "$anchor": "ForStepIdentity",
1104
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1105
+ "type": "string",
1106
+ "pattern": "^FORSTEP-.+$"
1107
+ }
1108
+ }
1109
+ },
1110
+ "ForStep": {
1111
+ "identity": "RESOURCE-ForStep",
1112
+ "resourceTypeRef": "TYPE-ResourceType",
1113
+ "creationContext": {
1114
+ "resourceRoleRef": "ROLE-Genesis",
1115
+ "executionRef": "EXECUTION-ForStep"
1116
+ },
1117
+ "kind": "materialized",
1118
+ "timestamp": "2025-11-30T00:00:00.000Z",
1119
+ "extractedData": {
1120
+ "identity": "TYPE-ForStep",
1121
+ "name": "ForStep",
1122
+ "description": "dummy-description",
1123
+ "resourceTypeImplementationKind": "internal-with-identity",
1124
+ "nucleusSchema": {
1125
+ "$anchor": "ForStep",
1126
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1127
+ "type": "object",
1128
+ "required": [
1129
+ "identity",
1130
+ "case"
1131
+ ],
1132
+ "properties": {
1133
+ "identity": {
1134
+ "$ref": "#/$defs/ForStepIdentity"
1135
+ },
1136
+ "stepKind": {
1137
+ "const": "for"
1138
+ },
1139
+ "case": {
1140
+ "$ref": "#/$defs/Conditional"
1141
+ }
1142
+ },
1143
+ "allOf": [
1144
+ {
1145
+ "$ref": "#/$defs/StepKindFacet"
1146
+ }
1147
+ ]
1148
+ }
1149
+ }
1150
+ },
1151
+ "StepIdentity": {
1152
+ "identity": "RESOURCE-StepIdentity",
1153
+ "resourceTypeRef": "TYPE-ResourceType",
1154
+ "creationContext": {
1155
+ "resourceRoleRef": "ROLE-Genesis",
1156
+ "executionRef": "EXECUTION-StepIdentity"
1157
+ },
1158
+ "kind": "materialized",
1159
+ "timestamp": "2025-11-30T00:00:00.000Z",
1160
+ "extractedData": {
1161
+ "identity": "TYPE-StepIdentity",
1162
+ "name": "StepIdentity",
1163
+ "description": "dummy-description",
1164
+ "resourceTypeImplementationKind": "internal-without-identity",
1165
+ "nucleusSchema": {
1166
+ "$anchor": "StepIdentity",
1167
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1168
+ "type": "object",
1169
+ "oneOf": [
1170
+ {
1171
+ "$ref": "#/$defs/JobStepIdentity"
1172
+ },
1173
+ {
1174
+ "$ref": "#/$defs/BranchStepIdentity"
1175
+ },
1176
+ {
1177
+ "$ref": "#/$defs/WhileStepIdentity"
1178
+ },
1179
+ {
1180
+ "$ref": "#/$defs/ForStepIdentity"
1181
+ }
1182
+ ]
1183
+ }
1184
+ }
1185
+ },
1186
+ "Step": {
1187
+ "identity": "RESOURCE-Step",
1188
+ "resourceTypeRef": "TYPE-ResourceType",
1189
+ "creationContext": {
1190
+ "resourceRoleRef": "ROLE-Genesis",
1191
+ "executionRef": "EXECUTION-Step"
1192
+ },
1193
+ "kind": "materialized",
1194
+ "timestamp": "2025-11-30T00:00:00.000Z",
1195
+ "extractedData": {
1196
+ "identity": "TYPE-Step",
1197
+ "name": "Step",
1198
+ "description": "dummy-description",
1199
+ "resourceTypeImplementationKind": "internal-without-identity",
1200
+ "nucleusSchema": {
1201
+ "$anchor": "Step",
1202
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1203
+ "type": "object",
1204
+ "oneOf": [
1205
+ {
1206
+ "$ref": "#/$defs/JobStep"
1207
+ },
1208
+ {
1209
+ "$ref": "#/$defs/BranchStep"
1210
+ },
1211
+ {
1212
+ "$ref": "#/$defs/WhileStep"
1213
+ },
1214
+ {
1215
+ "$ref": "#/$defs/ForStep"
1216
+ }
1217
+ ],
1218
+ "unevaluatedProperties": false
1219
+ }
1220
+ }
1221
+ },
1222
+ "CreationContext": {
1223
+ "identity": "RESOURCE-CreationContext",
1224
+ "resourceTypeRef": "TYPE-ResourceType",
1225
+ "creationContext": {
1226
+ "resourceRoleRef": "ROLE-Genesis",
1227
+ "executionRef": "EXECUTION-CreationContext"
1228
+ },
1229
+ "kind": "materialized",
1230
+ "timestamp": "2025-11-30T00:00:00.000Z",
1231
+ "extractedData": {
1232
+ "identity": "TYPE-CreationContext",
1233
+ "name": "CreationContext",
1234
+ "description": "dummy-description",
1235
+ "resourceTypeImplementationKind": "internal-without-identity",
1236
+ "nucleusSchema": {
1237
+ "$anchor": "CreationContext",
1238
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1239
+ "type": "object",
1240
+ "required": [
1241
+ "resourceRoleHandle",
1242
+ "jobRunHandle"
1243
+ ],
1244
+ "properties": {
1245
+ "resourceRoleHandle": {
1246
+ "$ref": "#/$defs/ResourceRoleIdentity"
1247
+ },
1248
+ "jobRunHandle": {
1249
+ "$ref": "#/$defs/JobRunIdentity"
1250
+ }
1251
+ }
1252
+ }
1253
+ }
1254
+ },
1255
+ "CreationContextFacet": {
1256
+ "identity": "RESOURCE-CreationContextFacet",
1257
+ "resourceTypeRef": "TYPE-ResourceType",
1258
+ "creationContext": {
1259
+ "resourceRoleRef": "ROLE-Genesis",
1260
+ "executionRef": "EXECUTION-CreationContextFacet"
1261
+ },
1262
+ "kind": "materialized",
1263
+ "timestamp": "2025-11-30T00:00:00.000Z",
1264
+ "extractedData": {
1265
+ "identity": "TYPE-CreationContextFacet",
1266
+ "name": "CreationContextFacet",
1267
+ "description": "dummy-description",
1268
+ "resourceTypeImplementationKind": "internal-without-identity",
1269
+ "nucleusSchema": {
1270
+ "$anchor": "CreationContextFacet",
1271
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1272
+ "type": "object",
1273
+ "required": [
1274
+ "creationContext"
1275
+ ],
1276
+ "properties": {
1277
+ "creationContext": {
1278
+ "$ref": "#/$defs/CreationContext"
1279
+ }
1280
+ }
1281
+ }
1282
+ }
1283
+ },
1284
+ "ResourceIdentity": {
1285
+ "identity": "RESOURCE-ResourceIdentity",
1286
+ "resourceTypeRef": "TYPE-ResourceType",
1287
+ "creationContext": {
1288
+ "resourceRoleRef": "ROLE-Genesis",
1289
+ "executionRef": "EXECUTION-ResourceIdentity"
1290
+ },
1291
+ "kind": "materialized",
1292
+ "timestamp": "2025-11-30T00:00:00.000Z",
1293
+ "extractedData": {
1294
+ "identity": "TYPE-ResourceIdentity",
1295
+ "name": "ResourceIdentity",
1296
+ "description": "dummy-description",
1297
+ "resourceTypeImplementationKind": "internal-without-identity",
1298
+ "nucleusSchema": {
1299
+ "$anchor": "ResourceIdentity",
1300
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1301
+ "type": "string",
1302
+ "pattern": "^RESOURCE-.+$"
1303
+ }
1304
+ }
1305
+ },
1306
+ "ResourceBase": {
1307
+ "identity": "RESOURCE-ResourceBase",
1308
+ "resourceTypeRef": "TYPE-ResourceType",
1309
+ "creationContext": {
1310
+ "resourceRoleRef": "ROLE-Genesis",
1311
+ "executionRef": "EXECUTION-ResourceBase"
1312
+ },
1313
+ "kind": "materialized",
1314
+ "timestamp": "2025-11-30T00:00:00.000Z",
1315
+ "extractedData": {
1316
+ "identity": "TYPE-ResourceBase",
1317
+ "name": "ResourceBase",
1318
+ "description": "dummy-description",
1319
+ "resourceTypeImplementationKind": "internal-with-identity",
1320
+ "nucleusSchema": {
1321
+ "$anchor": "ResourceBase",
1322
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1323
+ "type": "object",
1324
+ "required": [
1325
+ "identity",
1326
+ "resourceTypeHandle"
1327
+ ],
1328
+ "properties": {
1329
+ "identity": {
1330
+ "$ref": "#/$defs/ResourceIdentity"
1331
+ },
1332
+ "resourceTypeHandle": {
1333
+ "$ref": "#/$defs/ResourceTypeIdentity"
1334
+ }
1335
+ }
1336
+ }
1337
+ }
1338
+ },
1339
+ "ResourceKind": {
1340
+ "identity": "RESOURCE-ResourceKind",
1341
+ "resourceTypeRef": "TYPE-ResourceType",
1342
+ "creationContext": {
1343
+ "resourceRoleRef": "ROLE-Genesis",
1344
+ "executionRef": "EXECUTION-ResourceKind"
1345
+ },
1346
+ "kind": "materialized",
1347
+ "timestamp": "2025-11-30T00:00:00.000Z",
1348
+ "extractedData": {
1349
+ "identity": "TYPE-ResourceKind",
1350
+ "name": "ResourceKind",
1351
+ "description": "dummy-description",
1352
+ "resourceTypeImplementationKind": "internal-without-identity",
1353
+ "nucleusSchema": {
1354
+ "$anchor": "ResourceKind",
1355
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1356
+ "type": "string",
1357
+ "enum": [
1358
+ "missing",
1359
+ "input-potential",
1360
+ "output-potential",
1361
+ "materialized"
1362
+ ]
1363
+ }
1364
+ }
1365
+ },
1366
+ "ResourceKindFacet": {
1367
+ "identity": "RESOURCE-ResourceKindFacet",
1368
+ "resourceTypeRef": "TYPE-ResourceType",
1369
+ "creationContext": {
1370
+ "resourceRoleRef": "ROLE-Genesis",
1371
+ "executionRef": "EXECUTION-ResourceKindFacet"
1372
+ },
1373
+ "kind": "materialized",
1374
+ "timestamp": "2025-11-30T00:00:00.000Z",
1375
+ "extractedData": {
1376
+ "identity": "TYPE-ResourceKindFacet",
1377
+ "name": "ResourceKindFacet",
1378
+ "description": "dummy-description",
1379
+ "resourceTypeImplementationKind": "internal-without-identity",
1380
+ "nucleusSchema": {
1381
+ "$anchor": "ResourceKindFacet",
1382
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1383
+ "type": "object",
1384
+ "required": [
1385
+ "resourceKind"
1386
+ ],
1387
+ "properties": {
1388
+ "resourceKind": {
1389
+ "$ref": "#/$defs/ResourceKind"
1390
+ }
1391
+ }
1392
+ }
1393
+ }
1394
+ },
1395
+ "ShellMissing": {
1396
+ "identity": "RESOURCE-ShellMissing",
1397
+ "resourceTypeRef": "TYPE-ResourceType",
1398
+ "creationContext": {
1399
+ "resourceRoleRef": "ROLE-Genesis",
1400
+ "executionRef": "EXECUTION-ShellMissing"
1401
+ },
1402
+ "kind": "materialized",
1403
+ "timestamp": "2025-11-30T00:00:00.000Z",
1404
+ "extractedData": {
1405
+ "identity": "TYPE-ShellMissing",
1406
+ "name": "ShellMissing",
1407
+ "description": "dummy-description",
1408
+ "resourceTypeImplementationKind": "internal-with-identity",
1409
+ "nucleusSchema": {
1410
+ "$anchor": "ShellMissing",
1411
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1412
+ "type": "object",
1413
+ "properties": {
1414
+ "resourceKind": {
1415
+ "const": "missing"
1416
+ }
1417
+ },
1418
+ "allOf": [
1419
+ {
1420
+ "$ref": "#/$defs/ResourceBase"
1421
+ },
1422
+ {
1423
+ "$ref": "#/$defs/ResourceKindFacet"
1424
+ }
1425
+ ],
1426
+ "unevaluatedProperties": false
1427
+ }
1428
+ }
1429
+ },
1430
+ "ShellInputPotential": {
1431
+ "identity": "RESOURCE-ShellInputPotential",
1432
+ "resourceTypeRef": "TYPE-ResourceType",
1433
+ "creationContext": {
1434
+ "resourceRoleRef": "ROLE-Genesis",
1435
+ "executionRef": "EXECUTION-ShellInputPotential"
1436
+ },
1437
+ "kind": "materialized",
1438
+ "timestamp": "2025-11-30T00:00:00.000Z",
1439
+ "extractedData": {
1440
+ "identity": "TYPE-ShellInputPotential",
1441
+ "name": "ShellInputPotential",
1442
+ "description": "dummy-description",
1443
+ "resourceTypeImplementationKind": "internal-with-identity",
1444
+ "nucleusSchema": {
1445
+ "$anchor": "ShellInputPotential",
1446
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1447
+ "type": "object",
1448
+ "properties": {
1449
+ "resourceKind": {
1450
+ "const": "input-potential"
1451
+ }
1452
+ },
1453
+ "allOf": [
1454
+ {
1455
+ "$ref": "#/$defs/ResourceBase"
1456
+ },
1457
+ {
1458
+ "$ref": "#/$defs/CreationContextFacet"
1459
+ },
1460
+ {
1461
+ "$ref": "#/$defs/ResourceKindFacet"
1462
+ }
1463
+ ],
1464
+ "unevaluatedProperties": false
1465
+ }
1466
+ }
1467
+ },
1468
+ "ShellOutputPotential": {
1469
+ "identity": "RESOURCE-ShellOutputPotential",
1470
+ "resourceTypeRef": "TYPE-ResourceType",
1471
+ "creationContext": {
1472
+ "resourceRoleRef": "ROLE-Genesis",
1473
+ "executionRef": "EXECUTION-ShellOutputPotential"
1474
+ },
1475
+ "kind": "materialized",
1476
+ "timestamp": "2025-11-30T00:00:00.000Z",
1477
+ "extractedData": {
1478
+ "identity": "TYPE-ShellOutputPotential",
1479
+ "name": "ShellOutputPotential",
1480
+ "description": "dummy-description",
1481
+ "resourceTypeImplementationKind": "internal-with-identity",
1482
+ "nucleusSchema": {
1483
+ "$anchor": "ShellOutputPotential",
1484
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1485
+ "type": "object",
1486
+ "properties": {
1487
+ "resourceKind": {
1488
+ "const": "output-potential"
1489
+ }
1490
+ },
1491
+ "allOf": [
1492
+ {
1493
+ "$ref": "#/$defs/ResourceBase"
1494
+ },
1495
+ {
1496
+ "$ref": "#/$defs/CreationContextFacet"
1497
+ },
1498
+ {
1499
+ "$ref": "#/$defs/ResourceKindFacet"
1500
+ }
1501
+ ],
1502
+ "unevaluatedProperties": false
1503
+ }
1504
+ }
1505
+ },
1506
+ "Timestamp": {
1507
+ "identity": "RESOURCE-Timestamp",
1508
+ "resourceTypeRef": "TYPE-ResourceType",
1509
+ "creationContext": {
1510
+ "resourceRoleRef": "ROLE-Genesis",
1511
+ "executionRef": "EXECUTION-Timestamp"
1512
+ },
1513
+ "kind": "materialized",
1514
+ "timestamp": "2025-11-30T00:00:00.000Z",
1515
+ "extractedData": {
1516
+ "identity": "TYPE-Timestamp",
1517
+ "name": "Timestamp",
1518
+ "description": "dummy-description",
1519
+ "resourceTypeImplementationKind": "internal-without-identity",
1520
+ "nucleusSchema": {
1521
+ "$anchor": "Timestamp",
1522
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1523
+ "type": "string",
1524
+ "format": "date-time"
1525
+ }
1526
+ }
1527
+ },
1528
+ "TimestampFacet": {
1529
+ "identity": "RESOURCE-TimestampFacet",
1530
+ "resourceTypeRef": "TYPE-ResourceType",
1531
+ "creationContext": {
1532
+ "resourceRoleRef": "ROLE-Genesis",
1533
+ "executionRef": "EXECUTION-TimestampFacet"
1534
+ },
1535
+ "kind": "materialized",
1536
+ "timestamp": "2025-11-30T00:00:00.000Z",
1537
+ "extractedData": {
1538
+ "identity": "TYPE-TimestampFacet",
1539
+ "name": "TimestampFacet",
1540
+ "description": "dummy-description",
1541
+ "resourceTypeImplementationKind": "internal-without-identity",
1542
+ "nucleusSchema": {
1543
+ "$anchor": "TimestampFacet",
1544
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1545
+ "type": "object",
1546
+ "required": [
1547
+ "timestamp"
1548
+ ],
1549
+ "properties": {
1550
+ "timestamp": {
1551
+ "$ref": "#/$defs/Timestamp"
1552
+ }
1553
+ }
1554
+ }
1555
+ }
1556
+ },
1557
+ "Path": {
1558
+ "identity": "RESOURCE-Path",
1559
+ "resourceTypeRef": "TYPE-ResourceType",
1560
+ "creationContext": {
1561
+ "resourceRoleRef": "ROLE-Genesis",
1562
+ "executionRef": "EXECUTION-Path"
1563
+ },
1564
+ "kind": "materialized",
1565
+ "timestamp": "2025-11-30T00:00:00.000Z",
1566
+ "extractedData": {
1567
+ "identity": "TYPE-Path",
1568
+ "name": "Path",
1569
+ "description": "dummy-description",
1570
+ "resourceTypeImplementationKind": "internal-without-identity",
1571
+ "nucleusSchema": {
1572
+ "$anchor": "Path",
1573
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1574
+ "type": "string",
1575
+ "format": "uri-reference"
1576
+ }
1577
+ }
1578
+ },
1579
+ "PathFacet": {
1580
+ "identity": "RESOURCE-PathFacet",
1581
+ "resourceTypeRef": "TYPE-ResourceType",
1582
+ "creationContext": {
1583
+ "resourceRoleRef": "ROLE-Genesis",
1584
+ "executionRef": "EXECUTION-PathFacet"
1585
+ },
1586
+ "kind": "materialized",
1587
+ "timestamp": "2025-11-30T00:00:00.000Z",
1588
+ "extractedData": {
1589
+ "identity": "TYPE-PathFacet",
1590
+ "name": "PathFacet",
1591
+ "description": "dummy-description",
1592
+ "resourceTypeImplementationKind": "internal-without-identity",
1593
+ "nucleusSchema": {
1594
+ "$anchor": "PathFacet",
1595
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1596
+ "type": "object",
1597
+ "required": [
1598
+ "path"
1599
+ ],
1600
+ "properties": {
1601
+ "path": {
1602
+ "$ref": "#/$defs/Path"
1603
+ }
1604
+ }
1605
+ }
1606
+ }
1607
+ },
1608
+ "ShellMaterializedBase": {
1609
+ "identity": "RESOURCE-ShellMaterializedBase",
1610
+ "resourceTypeRef": "TYPE-ResourceType",
1611
+ "creationContext": {
1612
+ "resourceRoleRef": "ROLE-Genesis",
1613
+ "executionRef": "EXECUTION-ShellMaterializedBase"
1614
+ },
1615
+ "kind": "materialized",
1616
+ "timestamp": "2025-11-30T00:00:00.000Z",
1617
+ "extractedData": {
1618
+ "identity": "TYPE-ShellMaterializedBase",
1619
+ "name": "ShellMaterializedBase",
1620
+ "description": "dummy-description",
1621
+ "resourceTypeImplementationKind": "internal-with-identity",
1622
+ "nucleusSchema": {
1623
+ "$anchor": "ShellMaterializedBase",
1624
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1625
+ "type": "object",
1626
+ "required": [
1627
+ "version"
1628
+ ],
1629
+ "properties": {
1630
+ "version": {
1631
+ "const": 1
1632
+ },
1633
+ "resourceKind": {
1634
+ "const": "materialized"
1635
+ }
1636
+ },
1637
+ "allOf": [
1638
+ {
1639
+ "$ref": "#/$defs/ResourceBase"
1640
+ },
1641
+ {
1642
+ "$ref": "#/$defs/CreationContextFacet"
1643
+ },
1644
+ {
1645
+ "$ref": "#/$defs/ResourceKindFacet"
1646
+ },
1647
+ {
1648
+ "$ref": "#/$defs/TimestampFacet"
1649
+ },
1650
+ {
1651
+ "$ref": "#/$defs/PathFacet"
1652
+ }
1653
+ ]
1654
+ }
1655
+ }
1656
+ },
1657
+ "ShellMaterialized": {
1658
+ "identity": "RESOURCE-ShellMaterialized",
1659
+ "resourceTypeRef": "TYPE-ResourceType",
1660
+ "creationContext": {
1661
+ "resourceRoleRef": "ROLE-Genesis",
1662
+ "executionRef": "EXECUTION-ShellMaterialized"
1663
+ },
1664
+ "kind": "materialized",
1665
+ "timestamp": "2025-11-30T00:00:00.000Z",
1666
+ "extractedData": {
1667
+ "identity": "TYPE-ShellMaterialized",
1668
+ "name": "ShellMaterialized",
1669
+ "description": "dummy-description",
1670
+ "resourceTypeImplementationKind": "internal-with-identity",
1671
+ "nucleusSchema": {
1672
+ "$anchor": "ShellMaterialized",
1673
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1674
+ "type": "object",
1675
+ "$ref": "#/$defs/ShellMaterializedBase",
1676
+ "unevaluatedProperties": false
1677
+ }
1678
+ }
1679
+ },
1680
+ "ResourceMissing": {
1681
+ "identity": "RESOURCE-ResourceMissing",
1682
+ "resourceTypeRef": "TYPE-ResourceType",
1683
+ "creationContext": {
1684
+ "resourceRoleRef": "ROLE-Genesis",
1685
+ "executionRef": "EXECUTION-ResourceMissing"
1686
+ },
1687
+ "kind": "materialized",
1688
+ "timestamp": "2025-11-30T00:00:00.000Z",
1689
+ "extractedData": {
1690
+ "identity": "TYPE-ResourceMissing",
1691
+ "name": "ResourceMissing",
1692
+ "description": "dummy-description",
1693
+ "resourceTypeImplementationKind": "internal-with-identity",
1694
+ "nucleusSchema": {
1695
+ "$anchor": "ResourceMissing",
1696
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1697
+ "type": "object",
1698
+ "$ref": "#/$defs/ShellMissing",
1699
+ "unevaluatedProperties": false
1700
+ }
1701
+ }
1702
+ },
1703
+ "ResourceInputPotential": {
1704
+ "identity": "RESOURCE-ResourceInputPotential",
1705
+ "resourceTypeRef": "TYPE-ResourceType",
1706
+ "creationContext": {
1707
+ "resourceRoleRef": "ROLE-Genesis",
1708
+ "executionRef": "EXECUTION-ResourceInputPotential"
1709
+ },
1710
+ "kind": "materialized",
1711
+ "timestamp": "2025-11-30T00:00:00.000Z",
1712
+ "extractedData": {
1713
+ "identity": "TYPE-ResourceInputPotential",
1714
+ "name": "ResourceInputPotential",
1715
+ "description": "dummy-description",
1716
+ "resourceTypeImplementationKind": "internal-with-identity",
1717
+ "nucleusSchema": {
1718
+ "$anchor": "ResourceInputPotential",
1719
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1720
+ "type": "object",
1721
+ "$ref": "#/$defs/ShellInputPotential",
1722
+ "unevaluatedProperties": false
1723
+ }
1724
+ }
1725
+ },
1726
+ "ResourceOutputPotential": {
1727
+ "identity": "RESOURCE-ResourceOutputPotential",
1728
+ "resourceTypeRef": "TYPE-ResourceType",
1729
+ "creationContext": {
1730
+ "resourceRoleRef": "ROLE-Genesis",
1731
+ "executionRef": "EXECUTION-ResourceOutputPotential"
1732
+ },
1733
+ "kind": "materialized",
1734
+ "timestamp": "2025-11-30T00:00:00.000Z",
1735
+ "extractedData": {
1736
+ "identity": "TYPE-ResourceOutputPotential",
1737
+ "name": "ResourceOutputPotential",
1738
+ "description": "dummy-description",
1739
+ "resourceTypeImplementationKind": "internal-with-identity",
1740
+ "nucleusSchema": {
1741
+ "$anchor": "ResourceOutputPotential",
1742
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1743
+ "type": "object",
1744
+ "$ref": "#/$defs/ShellOutputPotential",
1745
+ "unevaluatedProperties": false
1746
+ }
1747
+ }
1748
+ },
1749
+ "JsonData": {
1750
+ "identity": "RESOURCE-JsonData",
1751
+ "resourceTypeRef": "TYPE-ResourceType",
1752
+ "creationContext": {
1753
+ "resourceRoleRef": "ROLE-Genesis",
1754
+ "executionRef": "EXECUTION-JsonData"
1755
+ },
1756
+ "kind": "materialized",
1757
+ "timestamp": "2025-11-30T00:00:00.000Z",
1758
+ "extractedData": {
1759
+ "identity": "TYPE-JsonData",
1760
+ "name": "JsonData",
1761
+ "description": "dummy-description",
1762
+ "resourceTypeImplementationKind": "internal-without-identity",
1763
+ "nucleusSchema": {
1764
+ "$anchor": "JsonData",
1765
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1766
+ "oneOf": [
1767
+ {
1768
+ "type": "null"
1769
+ },
1770
+ {
1771
+ "type": "boolean"
1772
+ },
1773
+ {
1774
+ "type": "number"
1775
+ },
1776
+ {
1777
+ "type": "string"
1778
+ },
1779
+ {
1780
+ "type": "array",
1781
+ "items": {
1782
+ "$ref": "#/$defs/JsonData"
1783
+ }
1784
+ },
1785
+ {
1786
+ "type": "object",
1787
+ "additionalProperties": {
1788
+ "$ref": "#/$defs/JsonData"
1789
+ }
1790
+ }
1791
+ ]
1792
+ }
1793
+ }
1794
+ },
1795
+ "Nucleus": {
1796
+ "identity": "RESOURCE-Nucleus",
1797
+ "resourceTypeRef": "TYPE-ResourceType",
1798
+ "creationContext": {
1799
+ "resourceRoleRef": "ROLE-Genesis",
1800
+ "executionRef": "EXECUTION-Nucleus"
1801
+ },
1802
+ "kind": "materialized",
1803
+ "timestamp": "2025-11-30T00:00:00.000Z",
1804
+ "extractedData": {
1805
+ "identity": "TYPE-Nucleus",
1806
+ "name": "Nucleus",
1807
+ "description": "dummy-description",
1808
+ "resourceTypeImplementationKind": "internal-without-identity",
1809
+ "nucleusSchema": {
1810
+ "$anchor": "Nucleus",
1811
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1812
+ "type": "object",
1813
+ "additionalProperties": {
1814
+ "$ref": "#/$defs/JsonData"
1815
+ }
1816
+ }
1817
+ }
1818
+ },
1819
+ "NucleusFacet": {
1820
+ "identity": "RESOURCE-NucleusFacet",
1821
+ "resourceTypeRef": "TYPE-ResourceType",
1822
+ "creationContext": {
1823
+ "resourceRoleRef": "ROLE-Genesis",
1824
+ "executionRef": "EXECUTION-NucleusFacet"
1825
+ },
1826
+ "kind": "materialized",
1827
+ "timestamp": "2025-11-30T00:00:00.000Z",
1828
+ "extractedData": {
1829
+ "identity": "TYPE-NucleusFacet",
1830
+ "name": "NucleusFacet",
1831
+ "description": "dummy-description",
1832
+ "resourceTypeImplementationKind": "internal-without-identity",
1833
+ "nucleusSchema": {
1834
+ "$anchor": "NucleusFacet",
1835
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1836
+ "type": "object",
1837
+ "required": [
1838
+ "nucleus"
1839
+ ],
1840
+ "properties": {
1841
+ "nucleus": {
1842
+ "$ref": "#/$defs/Nucleus"
1843
+ }
1844
+ }
1845
+ }
1846
+ }
1847
+ },
1848
+ "ResourceMaterialized": {
1849
+ "identity": "RESOURCE-ResourceMaterialized",
1850
+ "resourceTypeRef": "TYPE-ResourceType",
1851
+ "creationContext": {
1852
+ "resourceRoleRef": "ROLE-Genesis",
1853
+ "executionRef": "EXECUTION-ResourceMaterialized"
1854
+ },
1855
+ "kind": "materialized",
1856
+ "timestamp": "2025-11-30T00:00:00.000Z",
1857
+ "extractedData": {
1858
+ "identity": "TYPE-ResourceMaterialized",
1859
+ "name": "ResourceMaterialized",
1860
+ "description": "dummy-description",
1861
+ "resourceTypeImplementationKind": "internal-with-identity",
1862
+ "nucleusSchema": {
1863
+ "$anchor": "ResourceMaterialized",
1864
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1865
+ "type": "object",
1866
+ "allOf": [
1867
+ {
1868
+ "$ref": "#/$defs/ShellMaterializedBase"
1869
+ },
1870
+ {
1871
+ "$comment": "This will be overlayed dynamically to match the data structure of the underlying ResourceType's nucleusSchema.",
1872
+ "$ref": "#/$defs/NucleusFacet"
1873
+ }
1874
+ ],
1875
+ "unevaluatedProperties": false
1876
+ }
1877
+ }
1878
+ },
1879
+ "Resource": {
1880
+ "identity": "RESOURCE-Resource",
1881
+ "resourceTypeRef": "TYPE-ResourceType",
1882
+ "creationContext": {
1883
+ "resourceRoleRef": "ROLE-Genesis",
1884
+ "executionRef": "EXECUTION-Resource"
1885
+ },
1886
+ "kind": "materialized",
1887
+ "timestamp": "2025-11-30T00:00:00.000Z",
1888
+ "extractedData": {
1889
+ "identity": "TYPE-Resource",
1890
+ "name": "Resource",
1891
+ "description": "dummy-description",
1892
+ "resourceTypeImplementationKind": "internal-with-identity",
1893
+ "nucleusSchema": {
1894
+ "$anchor": "Resource",
1895
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1896
+ "type": "object",
1897
+ "oneOf": [
1898
+ {
1899
+ "$ref": "#/$defs/ResourceMissing"
1900
+ },
1901
+ {
1902
+ "$ref": "#/$defs/ResourceInputPotential"
1903
+ },
1904
+ {
1905
+ "$ref": "#/$defs/ResourceOutputPotential"
1906
+ },
1907
+ {
1908
+ "$ref": "#/$defs/ResourceMaterialized"
1909
+ }
1910
+ ],
1911
+ "unevaluatedProperties": false
1912
+ }
1913
+ }
1914
+ },
1915
+ "JobRunSocket": {
1916
+ "identity": "RESOURCE-JobRunSocket",
1917
+ "resourceTypeRef": "TYPE-ResourceType",
1918
+ "creationContext": {
1919
+ "resourceRoleRef": "ROLE-Genesis",
1920
+ "executionRef": "EXECUTION-JobRunSocket"
1921
+ },
1922
+ "kind": "materialized",
1923
+ "timestamp": "2025-11-30T00:00:00.000Z",
1924
+ "extractedData": {
1925
+ "identity": "TYPE-JobRunSocket",
1926
+ "name": "JobRunSocket",
1927
+ "description": "dummy-description",
1928
+ "resourceTypeImplementationKind": "internal-without-identity",
1929
+ "nucleusSchema": {
1930
+ "$anchor": "JobRunSocket",
1931
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1932
+ "type": "object",
1933
+ "propertyNames": {
1934
+ "$ref": "#/$defs/ResourceRoleIdentity"
1935
+ },
1936
+ "additionalProperties": {
1937
+ "$ref": "#/$defs/Resource"
1938
+ }
1939
+ }
1940
+ }
1941
+ },
1942
+ "StrategyState": {
1943
+ "identity": "RESOURCE-StrategyState",
1944
+ "resourceTypeRef": "TYPE-ResourceType",
1945
+ "creationContext": {
1946
+ "resourceRoleRef": "ROLE-Genesis",
1947
+ "executionRef": "EXECUTION-StrategyState"
1948
+ },
1949
+ "kind": "materialized",
1950
+ "timestamp": "2025-11-30T00:00:00.000Z",
1951
+ "extractedData": {
1952
+ "identity": "TYPE-StrategyState",
1953
+ "name": "StrategyState",
1954
+ "description": "dummy-description",
1955
+ "resourceTypeImplementationKind": "internal-without-identity",
1956
+ "nucleusSchema": {
1957
+ "$anchor": "StrategyState",
1958
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1959
+ "type": "object",
1960
+ "propertyNames": {
1961
+ "$ref": "#/$defs/JobRunIdentity"
1962
+ },
1963
+ "additionalProperties": {
1964
+ "$ref": "#/$defs/JobRunSocket"
1965
+ }
1966
+ }
1967
+ }
1968
+ },
1969
+ "StrategyStateFacet": {
1970
+ "identity": "RESOURCE-StrategyStateFacet",
1971
+ "resourceTypeRef": "TYPE-ResourceType",
1972
+ "creationContext": {
1973
+ "resourceRoleRef": "ROLE-Genesis",
1974
+ "executionRef": "EXECUTION-StrategyStateFacet"
1975
+ },
1976
+ "kind": "materialized",
1977
+ "timestamp": "2025-11-30T00:00:00.000Z",
1978
+ "extractedData": {
1979
+ "identity": "TYPE-StrategyStateFacet",
1980
+ "name": "StrategyStateFacet",
1981
+ "description": "dummy-description",
1982
+ "resourceTypeImplementationKind": "internal-without-identity",
1983
+ "nucleusSchema": {
1984
+ "$anchor": "StrategyStateFacet",
1985
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
1986
+ "type": "object",
1987
+ "required": [
1988
+ "strategyState"
1989
+ ],
1990
+ "properties": {
1991
+ "strategyState": {
1992
+ "$ref": "#/$defs/StrategyState"
1993
+ }
1994
+ }
1995
+ }
1996
+ }
1997
+ },
1998
+ "StepArray": {
1999
+ "identity": "RESOURCE-StepArray",
2000
+ "resourceTypeRef": "TYPE-ResourceType",
2001
+ "creationContext": {
2002
+ "resourceRoleRef": "ROLE-Genesis",
2003
+ "executionRef": "EXECUTION-StepArray"
2004
+ },
2005
+ "kind": "materialized",
2006
+ "timestamp": "2025-11-30T00:00:00.000Z",
2007
+ "extractedData": {
2008
+ "identity": "TYPE-StepArray",
2009
+ "name": "StepArray",
2010
+ "description": "dummy-description",
2011
+ "resourceTypeImplementationKind": "internal-without-identity",
2012
+ "nucleusSchema": {
2013
+ "$anchor": "StepArray",
2014
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2015
+ "type": "array",
2016
+ "items": {
2017
+ "$ref": "#/$defs/Step"
2018
+ },
2019
+ "uniqueItems": true
2020
+ }
2021
+ }
2022
+ },
2023
+ "StepsFacet": {
2024
+ "identity": "RESOURCE-StepsFacet",
2025
+ "resourceTypeRef": "TYPE-ResourceType",
2026
+ "creationContext": {
2027
+ "resourceRoleRef": "ROLE-Genesis",
2028
+ "executionRef": "EXECUTION-StepsFacet"
2029
+ },
2030
+ "kind": "materialized",
2031
+ "timestamp": "2025-11-30T00:00:00.000Z",
2032
+ "extractedData": {
2033
+ "identity": "TYPE-StepsFacet",
2034
+ "name": "StepsFacet",
2035
+ "description": "dummy-description",
2036
+ "resourceTypeImplementationKind": "internal-without-identity",
2037
+ "nucleusSchema": {
2038
+ "$anchor": "StepsFacet",
2039
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2040
+ "type": "object",
2041
+ "required": [
2042
+ "steps"
2043
+ ],
2044
+ "properties": {
2045
+ "steps": {
2046
+ "$ref": "#/$defs/StepArray"
2047
+ }
2048
+ }
2049
+ }
2050
+ }
2051
+ },
2052
+ "RawStrategy": {
2053
+ "identity": "RESOURCE-RawStrategy",
2054
+ "resourceTypeRef": "TYPE-ResourceType",
2055
+ "creationContext": {
2056
+ "resourceRoleRef": "ROLE-Genesis",
2057
+ "executionRef": "EXECUTION-RawStrategy"
2058
+ },
2059
+ "kind": "materialized",
2060
+ "timestamp": "2025-11-30T00:00:00.000Z",
2061
+ "extractedData": {
2062
+ "identity": "TYPE-RawStrategy",
2063
+ "name": "RawStrategy",
2064
+ "description": "dummy-description",
2065
+ "resourceTypeImplementationKind": "internal-without-identity",
2066
+ "nucleusSchema": {
2067
+ "$anchor": "RawStrategy",
2068
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2069
+ "type": "object",
2070
+ "allOf": [
2071
+ {
2072
+ "$ref": "#/$defs/StepsFacet"
2073
+ },
2074
+ {
2075
+ "$ref": "#/$defs/StrategyStateFacet"
2076
+ }
2077
+ ],
2078
+ "unevaluatedProperties": false
2079
+ }
2080
+ }
2081
+ },
2082
+ "RunnableStrategyIdentity": {
2083
+ "identity": "RESOURCE-RunnableStrategyIdentity",
2084
+ "resourceTypeRef": "TYPE-ResourceType",
2085
+ "creationContext": {
2086
+ "resourceRoleRef": "ROLE-Genesis",
2087
+ "executionRef": "EXECUTION-RunnableStrategyIdentity"
2088
+ },
2089
+ "kind": "materialized",
2090
+ "timestamp": "2025-11-30T00:00:00.000Z",
2091
+ "extractedData": {
2092
+ "identity": "TYPE-RunnableStrategyIdentity",
2093
+ "name": "RunnableStrategyIdentity",
2094
+ "description": "dummy-description",
2095
+ "resourceTypeImplementationKind": "internal-without-identity",
2096
+ "nucleusSchema": {
2097
+ "$anchor": "RunnableStrategyIdentity",
2098
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2099
+ "type": "string",
2100
+ "pattern": "^RUNNABLE_STRATEGY-.+$"
2101
+ }
2102
+ }
2103
+ },
2104
+ "RunnableStrategyStatus": {
2105
+ "identity": "RESOURCE-RunnableStrategyStatus",
2106
+ "resourceTypeRef": "TYPE-ResourceType",
2107
+ "creationContext": {
2108
+ "resourceRoleRef": "ROLE-Genesis",
2109
+ "executionRef": "EXECUTION-RunnableStrategyStatus"
2110
+ },
2111
+ "kind": "materialized",
2112
+ "timestamp": "2025-11-30T00:00:00.000Z",
2113
+ "extractedData": {
2114
+ "identity": "TYPE-RunnableStrategyStatus",
2115
+ "name": "RunnableStrategyStatus",
2116
+ "description": "dummy-description",
2117
+ "resourceTypeImplementationKind": "internal-without-identity",
2118
+ "nucleusSchema": {
2119
+ "$anchor": "RunnableStrategyStatus",
2120
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2121
+ "type": "string",
2122
+ "enum": [
2123
+ "pending",
2124
+ "running",
2125
+ "completed",
2126
+ "failed",
2127
+ "cancelled"
2128
+ ]
2129
+ }
2130
+ }
2131
+ },
2132
+ "RunnableStrategyContext": {
2133
+ "identity": "RESOURCE-RunnableStrategyContext",
2134
+ "resourceTypeRef": "TYPE-ResourceType",
2135
+ "creationContext": {
2136
+ "resourceRoleRef": "ROLE-Genesis",
2137
+ "executionRef": "EXECUTION-RunnableStrategyContext"
2138
+ },
2139
+ "kind": "materialized",
2140
+ "timestamp": "2025-11-30T00:00:00.000Z",
2141
+ "extractedData": {
2142
+ "identity": "TYPE-RunnableStrategyContext",
2143
+ "name": "RunnableStrategyContext",
2144
+ "description": "dummy-description",
2145
+ "resourceTypeImplementationKind": "internal-without-identity",
2146
+ "nucleusSchema": {
2147
+ "$anchor": "RunnableStrategyContext",
2148
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2149
+ "type": "object",
2150
+ "required": [
2151
+ "status"
2152
+ ],
2153
+ "properties": {
2154
+ "status": {
2155
+ "$ref": "#/$defs/RunnableStrategyStatus"
2156
+ },
2157
+ "startedAt": {
2158
+ "$ref": "#/$defs/Timestamp"
2159
+ },
2160
+ "completedAt": {
2161
+ "$ref": "#/$defs/Timestamp"
2162
+ }
2163
+ },
2164
+ "unevaluatedProperties": false
2165
+ }
2166
+ }
2167
+ },
2168
+ "StrategyThreadIdentity": {
2169
+ "identity": "RESOURCE-StrategyThreadIdentity",
2170
+ "resourceTypeRef": "TYPE-ResourceType",
2171
+ "creationContext": {
2172
+ "resourceRoleRef": "ROLE-Genesis",
2173
+ "executionRef": "EXECUTION-StrategyThreadIdentity"
2174
+ },
2175
+ "kind": "materialized",
2176
+ "timestamp": "2025-11-30T00:00:00.000Z",
2177
+ "extractedData": {
2178
+ "identity": "TYPE-StrategyThreadIdentity",
2179
+ "name": "StrategyThreadIdentity",
2180
+ "description": "dummy-description",
2181
+ "resourceTypeImplementationKind": "internal-without-identity",
2182
+ "nucleusSchema": {
2183
+ "$anchor": "StrategyThreadIdentity",
2184
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2185
+ "type": "string",
2186
+ "pattern": "^STRATEGY_THREAD-.+$"
2187
+ }
2188
+ }
2189
+ },
2190
+ "StrategyThreadMap": {
2191
+ "identity": "RESOURCE-StrategyThreadMap",
2192
+ "resourceTypeRef": "TYPE-ResourceType",
2193
+ "creationContext": {
2194
+ "resourceRoleRef": "ROLE-Genesis",
2195
+ "executionRef": "EXECUTION-StrategyThreadMap"
2196
+ },
2197
+ "kind": "materialized",
2198
+ "timestamp": "2025-11-30T00:00:00.000Z",
2199
+ "extractedData": {
2200
+ "identity": "TYPE-StrategyThreadMap",
2201
+ "name": "StrategyThreadMap",
2202
+ "description": "dummy-description",
2203
+ "resourceTypeImplementationKind": "internal-without-identity",
2204
+ "nucleusSchema": {
2205
+ "$anchor": "StrategyThreadMap",
2206
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2207
+ "type": "object",
2208
+ "propertyNames": {
2209
+ "$ref": "#/$defs/StrategyThreadIdentity"
2210
+ },
2211
+ "additionalProperties": {
2212
+ "$ref": "#/$defs/StepArray"
2213
+ },
2214
+ "$comment": "Each thread contains an array of steps, allowing for sequential execution within a thread while supporting parallel execution across multiple threads."
2215
+ }
2216
+ }
2217
+ },
2218
+ "StrategyThreadMapFacet": {
2219
+ "identity": "RESOURCE-StrategyThreadMapFacet",
2220
+ "resourceTypeRef": "TYPE-ResourceType",
2221
+ "creationContext": {
2222
+ "resourceRoleRef": "ROLE-Genesis",
2223
+ "executionRef": "EXECUTION-StrategyThreadMapFacet"
2224
+ },
2225
+ "kind": "materialized",
2226
+ "timestamp": "2025-11-30T00:00:00.000Z",
2227
+ "extractedData": {
2228
+ "identity": "TYPE-StrategyThreadMapFacet",
2229
+ "name": "StrategyThreadMapFacet",
2230
+ "description": "dummy-description",
2231
+ "resourceTypeImplementationKind": "internal-without-identity",
2232
+ "nucleusSchema": {
2233
+ "$anchor": "StrategyThreadMapFacet",
2234
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2235
+ "type": "object",
2236
+ "required": [
2237
+ "strategyThreadMap"
2238
+ ],
2239
+ "properties": {
2240
+ "strategyThreadMap": {
2241
+ "$ref": "#/$defs/StrategyThreadMap"
2242
+ }
2243
+ }
2244
+ }
2245
+ }
2246
+ },
2247
+ "RunnableStrategy": {
2248
+ "identity": "RESOURCE-RunnableStrategy",
2249
+ "resourceTypeRef": "TYPE-ResourceType",
2250
+ "creationContext": {
2251
+ "resourceRoleRef": "ROLE-Genesis",
2252
+ "executionRef": "EXECUTION-RunnableStrategy"
2253
+ },
2254
+ "kind": "materialized",
2255
+ "timestamp": "2025-11-30T00:00:00.000Z",
2256
+ "extractedData": {
2257
+ "identity": "TYPE-RunnableStrategy",
2258
+ "name": "RunnableStrategy",
2259
+ "description": "dummy-description",
2260
+ "resourceTypeImplementationKind": "internal-with-identity",
2261
+ "nucleusSchema": {
2262
+ "$anchor": "RunnableStrategy",
2263
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2264
+ "type": "object",
2265
+ "required": [
2266
+ "identity",
2267
+ "runnableStrategyContext"
2268
+ ],
2269
+ "properties": {
2270
+ "identity": {
2271
+ "$ref": "#/$defs/RunnableStrategyIdentity"
2272
+ },
2273
+ "runnableStrategyContext": {
2274
+ "$ref": "#/$defs/RunnableStrategyContext"
2275
+ }
2276
+ },
2277
+ "allOf": [
2278
+ {
2279
+ "$comment": "The Engine runs jobs specified by steps in strategyThreadMap. The Engine also injects repeted steps when encountering loops.",
2280
+ "$ref": "#/$defs/StrategyThreadMapFacet"
2281
+ },
2282
+ {
2283
+ "$comment": "The Engine updates strategyState with materialized Resources upon job completions and runtime-provided input events. It also inserts input-potential and output-potential Resources upon step injections.",
2284
+ "$ref": "#/$defs/StrategyStateFacet"
2285
+ }
2286
+ ],
2287
+ "unevaluatedProperties": false
2288
+ }
2289
+ }
2290
+ },
2291
+ "StrategyStateDelta": {
2292
+ "identity": "RESOURCE-StrategyStateDelta",
2293
+ "resourceTypeRef": "TYPE-ResourceType",
2294
+ "creationContext": {
2295
+ "resourceRoleRef": "ROLE-Genesis",
2296
+ "executionRef": "EXECUTION-StrategyStateDelta"
2297
+ },
2298
+ "kind": "materialized",
2299
+ "timestamp": "2025-11-30T00:00:00.000Z",
2300
+ "extractedData": {
2301
+ "identity": "TYPE-StrategyStateDelta",
2302
+ "name": "StrategyStateDelta",
2303
+ "description": "dummy-description",
2304
+ "resourceTypeImplementationKind": "internal-without-identity",
2305
+ "nucleusSchema": {
2306
+ "$anchor": "StrategyStateDelta",
2307
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2308
+ "type": "object",
2309
+ "required": [
2310
+ "strategyStateUpdate"
2311
+ ],
2312
+ "properties": {
2313
+ "strategyStateUpdate": {
2314
+ "$ref": "#/$defs/StrategyState"
2315
+ }
2316
+ }
2317
+ }
2318
+ }
2319
+ },
2320
+ "RunnableStrategyUpdate": {
2321
+ "identity": "RESOURCE-RunnableStrategyUpdate",
2322
+ "resourceTypeRef": "TYPE-ResourceType",
2323
+ "creationContext": {
2324
+ "resourceRoleRef": "ROLE-Genesis",
2325
+ "executionRef": "EXECUTION-RunnableStrategyUpdate"
2326
+ },
2327
+ "kind": "materialized",
2328
+ "timestamp": "2025-11-30T00:00:00.000Z",
2329
+ "extractedData": {
2330
+ "identity": "TYPE-RunnableStrategyUpdate",
2331
+ "name": "RunnableStrategyUpdate",
2332
+ "description": "dummy-description",
2333
+ "resourceTypeImplementationKind": "internal-without-identity",
2334
+ "nucleusSchema": {
2335
+ "$anchor": "RunnableStrategyUpdate",
2336
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2337
+ "type": "object",
2338
+ "required": [
2339
+ "runnableStrategyHandle"
2340
+ ],
2341
+ "properties": {
2342
+ "runnableStrategyHandle": {
2343
+ "$ref": "#/$defs/RunnableStrategyIdentity"
2344
+ },
2345
+ "runnableStrategy": {
2346
+ "$comment": "Optional embedded snapshot; runnableStrategyHandle remains the canonical pointer.",
2347
+ "$ref": "#/$defs/RunnableStrategy"
2348
+ }
2349
+ },
2350
+ "allOf": [
2351
+ {
2352
+ "$ref": "#/$defs/StrategyStateDelta"
2353
+ }
2354
+ ],
2355
+ "unevaluatedProperties": false
2356
+ }
2357
+ }
2358
+ },
2359
+ "RunEventCounters": {
2360
+ "identity": "RESOURCE-RunEventCounters",
2361
+ "resourceTypeRef": "TYPE-ResourceType",
2362
+ "creationContext": {
2363
+ "resourceRoleRef": "ROLE-Genesis",
2364
+ "executionRef": "EXECUTION-RunEventCounters"
2365
+ },
2366
+ "kind": "materialized",
2367
+ "timestamp": "2025-11-30T00:00:00.000Z",
2368
+ "extractedData": {
2369
+ "identity": "TYPE-RunEventCounters",
2370
+ "name": "RunEventCounters",
2371
+ "description": "dummy-description",
2372
+ "resourceTypeImplementationKind": "internal-without-identity",
2373
+ "nucleusSchema": {
2374
+ "$anchor": "RunEventCounters",
2375
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2376
+ "type": "object",
2377
+ "properties": {
2378
+ "stepCounterAfter": {
2379
+ "type": "integer"
2380
+ },
2381
+ "iterationCounterAfter": {
2382
+ "type": "integer"
2383
+ }
2384
+ }
2385
+ }
2386
+ }
2387
+ },
2388
+ "RunEventStepMetadata": {
2389
+ "identity": "RESOURCE-RunEventStepMetadata",
2390
+ "resourceTypeRef": "TYPE-ResourceType",
2391
+ "creationContext": {
2392
+ "resourceRoleRef": "ROLE-Genesis",
2393
+ "executionRef": "EXECUTION-RunEventStepMetadata"
2394
+ },
2395
+ "kind": "materialized",
2396
+ "timestamp": "2025-11-30T00:00:00.000Z",
2397
+ "extractedData": {
2398
+ "identity": "TYPE-RunEventStepMetadata",
2399
+ "name": "RunEventStepMetadata",
2400
+ "description": "dummy-description",
2401
+ "resourceTypeImplementationKind": "internal-without-identity",
2402
+ "nucleusSchema": {
2403
+ "$anchor": "RunEventStepMetadata",
2404
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2405
+ "type": "object",
2406
+ "required": [
2407
+ "stepHandle",
2408
+ "stepKind",
2409
+ "threadStepIndex"
2410
+ ],
2411
+ "properties": {
2412
+ "stepHandle": {
2413
+ "$ref": "#/$defs/StepIdentity"
2414
+ },
2415
+ "stepKind": {
2416
+ "$ref": "#/$defs/StepKind"
2417
+ },
2418
+ "threadStepIndex": {
2419
+ "type": "integer"
2420
+ },
2421
+ "jobRunHandle": {
2422
+ "$ref": "#/$defs/JobRunIdentity"
2423
+ },
2424
+ "jobHandle": {
2425
+ "$ref": "#/$defs/JobIdentity"
2426
+ }
2427
+ }
2428
+ }
2429
+ }
2430
+ },
2431
+ "RunEventUpdates": {
2432
+ "identity": "RESOURCE-RunEventUpdates",
2433
+ "resourceTypeRef": "TYPE-ResourceType",
2434
+ "creationContext": {
2435
+ "resourceRoleRef": "ROLE-Genesis",
2436
+ "executionRef": "EXECUTION-RunEventUpdates"
2437
+ },
2438
+ "kind": "materialized",
2439
+ "timestamp": "2025-11-30T00:00:00.000Z",
2440
+ "extractedData": {
2441
+ "identity": "TYPE-RunEventUpdates",
2442
+ "name": "RunEventUpdates",
2443
+ "description": "dummy-description",
2444
+ "resourceTypeImplementationKind": "internal-without-identity",
2445
+ "nucleusSchema": {
2446
+ "$anchor": "RunEventUpdates",
2447
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2448
+ "type": "object",
2449
+ "properties": {
2450
+ "stepsMutation": {
2451
+ "type": "object",
2452
+ "required": [
2453
+ "insertAt",
2454
+ "inserted"
2455
+ ],
2456
+ "properties": {
2457
+ "insertAt": {
2458
+ "type": "integer"
2459
+ },
2460
+ "inserted": {
2461
+ "$ref": "#/$defs/StepArray"
2462
+ }
2463
+ }
2464
+ },
2465
+ "interruptData": {
2466
+ "$comment": "Kept permissive; the engine may evolve interrupt payloads.",
2467
+ "type": [
2468
+ "object",
2469
+ "null"
2470
+ ]
2471
+ }
2472
+ },
2473
+ "allOf": [
2474
+ {
2475
+ "$ref": "#/$defs/StrategyStateDelta"
2476
+ }
2477
+ ]
2478
+ }
2479
+ }
2480
+ },
2481
+ "RunEventKind": {
2482
+ "identity": "RESOURCE-RunEventKind",
2483
+ "resourceTypeRef": "TYPE-ResourceType",
2484
+ "creationContext": {
2485
+ "resourceRoleRef": "ROLE-Genesis",
2486
+ "executionRef": "EXECUTION-RunEventKind"
2487
+ },
2488
+ "kind": "materialized",
2489
+ "timestamp": "2025-11-30T00:00:00.000Z",
2490
+ "extractedData": {
2491
+ "identity": "TYPE-RunEventKind",
2492
+ "name": "RunEventKind",
2493
+ "description": "dummy-description",
2494
+ "resourceTypeImplementationKind": "internal-without-identity",
2495
+ "nucleusSchema": {
2496
+ "$anchor": "RunEventKind",
2497
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2498
+ "type": "string",
2499
+ "enum": [
2500
+ "graph_start",
2501
+ "tick",
2502
+ "interrupt",
2503
+ "graph_end"
2504
+ ]
2505
+ }
2506
+ }
2507
+ },
2508
+ "RunEventBase": {
2509
+ "identity": "RESOURCE-RunEventBase",
2510
+ "resourceTypeRef": "TYPE-ResourceType",
2511
+ "creationContext": {
2512
+ "resourceRoleRef": "ROLE-Genesis",
2513
+ "executionRef": "EXECUTION-RunEventBase"
2514
+ },
2515
+ "kind": "materialized",
2516
+ "timestamp": "2025-11-30T00:00:00.000Z",
2517
+ "extractedData": {
2518
+ "identity": "TYPE-RunEventBase",
2519
+ "name": "RunEventBase",
2520
+ "description": "dummy-description",
2521
+ "resourceTypeImplementationKind": "internal-without-identity",
2522
+ "nucleusSchema": {
2523
+ "$anchor": "RunEventBase",
2524
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2525
+ "type": "object",
2526
+ "required": [
2527
+ "runEventKind",
2528
+ "runnableStrategyHandle",
2529
+ "strategyThreadHandle",
2530
+ "createdAt",
2531
+ "nodeName",
2532
+ "eventSeq"
2533
+ ],
2534
+ "properties": {
2535
+ "runEventKind": {
2536
+ "$ref": "#/$defs/RunEventKind"
2537
+ },
2538
+ "runnableStrategyHandle": {
2539
+ "$ref": "#/$defs/RunnableStrategyIdentity"
2540
+ },
2541
+ "strategyThreadHandle": {
2542
+ "$ref": "#/$defs/StrategyThreadIdentity"
2543
+ },
2544
+ "createdAt": {
2545
+ "$ref": "#/$defs/Timestamp"
2546
+ },
2547
+ "nodeName": {
2548
+ "type": "string"
2549
+ },
2550
+ "eventSeq": {
2551
+ "type": "integer"
2552
+ },
2553
+ "counters": {
2554
+ "$ref": "#/$defs/RunEventCounters"
2555
+ },
2556
+ "stepMetadata": {
2557
+ "$ref": "#/$defs/RunEventStepMetadata"
2558
+ },
2559
+ "updates": {
2560
+ "$ref": "#/$defs/RunEventUpdates"
2561
+ }
2562
+ }
2563
+ }
2564
+ }
2565
+ },
2566
+ "GraphStartRunEvent": {
2567
+ "identity": "RESOURCE-GraphStartRunEvent",
2568
+ "resourceTypeRef": "TYPE-ResourceType",
2569
+ "creationContext": {
2570
+ "resourceRoleRef": "ROLE-Genesis",
2571
+ "executionRef": "EXECUTION-GraphStartRunEvent"
2572
+ },
2573
+ "kind": "materialized",
2574
+ "timestamp": "2025-11-30T00:00:00.000Z",
2575
+ "extractedData": {
2576
+ "identity": "TYPE-GraphStartRunEvent",
2577
+ "name": "GraphStartRunEvent",
2578
+ "description": "dummy-description",
2579
+ "resourceTypeImplementationKind": "internal-without-identity",
2580
+ "nucleusSchema": {
2581
+ "$anchor": "GraphStartRunEvent",
2582
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2583
+ "allOf": [
2584
+ {
2585
+ "$ref": "#/$defs/RunEventBase"
2586
+ },
2587
+ {
2588
+ "type": "object",
2589
+ "required": [
2590
+ "runnableStrategySeed"
2591
+ ],
2592
+ "properties": {
2593
+ "runEventKind": {
2594
+ "const": "graph_start"
2595
+ },
2596
+ "runnableStrategySeed": {
2597
+ "$ref": "#/$defs/RunnableStrategy"
2598
+ }
2599
+ }
2600
+ }
2601
+ ]
2602
+ }
2603
+ }
2604
+ },
2605
+ "TickRunEvent": {
2606
+ "identity": "RESOURCE-TickRunEvent",
2607
+ "resourceTypeRef": "TYPE-ResourceType",
2608
+ "creationContext": {
2609
+ "resourceRoleRef": "ROLE-Genesis",
2610
+ "executionRef": "EXECUTION-TickRunEvent"
2611
+ },
2612
+ "kind": "materialized",
2613
+ "timestamp": "2025-11-30T00:00:00.000Z",
2614
+ "extractedData": {
2615
+ "identity": "TYPE-TickRunEvent",
2616
+ "name": "TickRunEvent",
2617
+ "description": "dummy-description",
2618
+ "resourceTypeImplementationKind": "internal-without-identity",
2619
+ "nucleusSchema": {
2620
+ "$anchor": "TickRunEvent",
2621
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2622
+ "allOf": [
2623
+ {
2624
+ "$ref": "#/$defs/RunEventBase"
2625
+ },
2626
+ {
2627
+ "type": "object",
2628
+ "properties": {
2629
+ "runEventKind": {
2630
+ "const": "tick"
2631
+ }
2632
+ }
2633
+ }
2634
+ ]
2635
+ }
2636
+ }
2637
+ },
2638
+ "InterruptRunEvent": {
2639
+ "identity": "RESOURCE-InterruptRunEvent",
2640
+ "resourceTypeRef": "TYPE-ResourceType",
2641
+ "creationContext": {
2642
+ "resourceRoleRef": "ROLE-Genesis",
2643
+ "executionRef": "EXECUTION-InterruptRunEvent"
2644
+ },
2645
+ "kind": "materialized",
2646
+ "timestamp": "2025-11-30T00:00:00.000Z",
2647
+ "extractedData": {
2648
+ "identity": "TYPE-InterruptRunEvent",
2649
+ "name": "InterruptRunEvent",
2650
+ "description": "dummy-description",
2651
+ "resourceTypeImplementationKind": "internal-without-identity",
2652
+ "nucleusSchema": {
2653
+ "$anchor": "InterruptRunEvent",
2654
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2655
+ "allOf": [
2656
+ {
2657
+ "$ref": "#/$defs/RunEventBase"
2658
+ },
2659
+ {
2660
+ "type": "object",
2661
+ "properties": {
2662
+ "runEventKind": {
2663
+ "const": "interrupt"
2664
+ }
2665
+ }
2666
+ }
2667
+ ]
2668
+ }
2669
+ }
2670
+ },
2671
+ "GraphEndRunEvent": {
2672
+ "identity": "RESOURCE-GraphEndRunEvent",
2673
+ "resourceTypeRef": "TYPE-ResourceType",
2674
+ "creationContext": {
2675
+ "resourceRoleRef": "ROLE-Genesis",
2676
+ "executionRef": "EXECUTION-GraphEndRunEvent"
2677
+ },
2678
+ "kind": "materialized",
2679
+ "timestamp": "2025-11-30T00:00:00.000Z",
2680
+ "extractedData": {
2681
+ "identity": "TYPE-GraphEndRunEvent",
2682
+ "name": "GraphEndRunEvent",
2683
+ "description": "dummy-description",
2684
+ "resourceTypeImplementationKind": "internal-without-identity",
2685
+ "nucleusSchema": {
2686
+ "$anchor": "GraphEndRunEvent",
2687
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2688
+ "allOf": [
2689
+ {
2690
+ "$ref": "#/$defs/RunEventBase"
2691
+ },
2692
+ {
2693
+ "type": "object",
2694
+ "properties": {
2695
+ "runEventKind": {
2696
+ "const": "graph_end"
2697
+ }
2698
+ }
2699
+ }
2700
+ ]
2701
+ }
2702
+ }
2703
+ },
2704
+ "RunEvent": {
2705
+ "identity": "RESOURCE-RunEvent",
2706
+ "resourceTypeRef": "TYPE-ResourceType",
2707
+ "creationContext": {
2708
+ "resourceRoleRef": "ROLE-Genesis",
2709
+ "executionRef": "EXECUTION-RunEvent"
2710
+ },
2711
+ "kind": "materialized",
2712
+ "timestamp": "2025-11-30T00:00:00.000Z",
2713
+ "extractedData": {
2714
+ "identity": "TYPE-RunEvent",
2715
+ "name": "RunEvent",
2716
+ "description": "dummy-description",
2717
+ "resourceTypeImplementationKind": "internal-without-identity",
2718
+ "nucleusSchema": {
2719
+ "$anchor": "RunEvent",
2720
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2721
+ "type": "object",
2722
+ "oneOf": [
2723
+ {
2724
+ "$ref": "#/$defs/GraphStartRunEvent"
2725
+ },
2726
+ {
2727
+ "$ref": "#/$defs/TickRunEvent"
2728
+ },
2729
+ {
2730
+ "$ref": "#/$defs/InterruptRunEvent"
2731
+ },
2732
+ {
2733
+ "$ref": "#/$defs/GraphEndRunEvent"
2734
+ }
2735
+ ]
2736
+ }
2737
+ }
2738
+ },
2739
+ "StrategyRunIdentity": {
2740
+ "identity": "RESOURCE-StrategyRunIdentity",
2741
+ "resourceTypeRef": "TYPE-ResourceType",
2742
+ "creationContext": {
2743
+ "resourceRoleRef": "ROLE-Genesis",
2744
+ "executionRef": "EXECUTION-StrategyRunIdentity"
2745
+ },
2746
+ "kind": "materialized",
2747
+ "timestamp": "2025-11-30T00:00:00.000Z",
2748
+ "extractedData": {
2749
+ "identity": "TYPE-StrategyRunIdentity",
2750
+ "name": "StrategyRunIdentity",
2751
+ "description": "dummy-description",
2752
+ "resourceTypeImplementationKind": "internal-without-identity",
2753
+ "nucleusSchema": {
2754
+ "$anchor": "StrategyRunIdentity",
2755
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2756
+ "type": "string",
2757
+ "pattern": "^STRATEGY_RUN-.+$"
2758
+ }
2759
+ }
2760
+ },
2761
+ "StrategyRun": {
2762
+ "identity": "RESOURCE-StrategyRun",
2763
+ "resourceTypeRef": "TYPE-ResourceType",
2764
+ "creationContext": {
2765
+ "resourceRoleRef": "ROLE-Genesis",
2766
+ "executionRef": "EXECUTION-StrategyRun"
2767
+ },
2768
+ "kind": "materialized",
2769
+ "timestamp": "2025-11-30T00:00:00.000Z",
2770
+ "extractedData": {
2771
+ "identity": "TYPE-StrategyRun",
2772
+ "name": "StrategyRun",
2773
+ "description": "dummy-description",
2774
+ "resourceTypeImplementationKind": "internal-with-identity",
2775
+ "nucleusSchema": {
2776
+ "$anchor": "StrategyRun",
2777
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2778
+ "type": "object",
2779
+ "required": [
2780
+ "identity",
2781
+ "runnableStrategyHandle",
2782
+ "recordedAt",
2783
+ "runEvents"
2784
+ ],
2785
+ "properties": {
2786
+ "identity": {
2787
+ "$ref": "#/$defs/StrategyRunIdentity"
2788
+ },
2789
+ "runnableStrategyHandle": {
2790
+ "$comment": "Could be derived from the first event but useful for indexing.",
2791
+ "$ref": "#/$defs/RunnableStrategyIdentity"
2792
+ },
2793
+ "recordedAt": {
2794
+ "$ref": "#/$defs/Timestamp"
2795
+ },
2796
+ "runEvents": {
2797
+ "type": "array",
2798
+ "items": {
2799
+ "$ref": "#/$defs/RunEvent"
2800
+ }
2801
+ }
2802
+ },
2803
+ "unevaluatedProperties": false
2804
+ }
2805
+ }
2806
+ },
2807
+ "GoalIdentity": {
2808
+ "identity": "RESOURCE-GoalIdentity",
2809
+ "resourceTypeRef": "TYPE-ResourceType",
2810
+ "creationContext": {
2811
+ "resourceRoleRef": "ROLE-Genesis",
2812
+ "executionRef": "EXECUTION-GoalIdentity"
2813
+ },
2814
+ "kind": "materialized",
2815
+ "timestamp": "2025-11-30T00:00:00.000Z",
2816
+ "extractedData": {
2817
+ "identity": "TYPE-GoalIdentity",
2818
+ "name": "GoalIdentity",
2819
+ "description": "dummy-description",
2820
+ "resourceTypeImplementationKind": "internal-without-identity",
2821
+ "nucleusSchema": {
2822
+ "$anchor": "GoalIdentity",
2823
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2824
+ "type": "string",
2825
+ "pattern": "^GOAL-.+$"
2826
+ }
2827
+ }
2828
+ },
2829
+ "Goal": {
2830
+ "identity": "RESOURCE-Goal",
2831
+ "resourceTypeRef": "TYPE-ResourceType",
2832
+ "creationContext": {
2833
+ "resourceRoleRef": "ROLE-Genesis",
2834
+ "executionRef": "EXECUTION-Goal"
2835
+ },
2836
+ "kind": "materialized",
2837
+ "timestamp": "2025-11-30T00:00:00.000Z",
2838
+ "extractedData": {
2839
+ "identity": "TYPE-Goal",
2840
+ "name": "Goal",
2841
+ "description": "dummy-description",
2842
+ "resourceTypeImplementationKind": "internal-with-identity",
2843
+ "nucleusSchema": {
2844
+ "$anchor": "Goal",
2845
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2846
+ "type": "object",
2847
+ "required": [
2848
+ "identity",
2849
+ "target"
2850
+ ],
2851
+ "properties": {
2852
+ "identity": {
2853
+ "$ref": "#/$defs/GoalIdentity"
2854
+ },
2855
+ "target": {
2856
+ "type": "integer",
2857
+ "minimum": 0
2858
+ },
2859
+ "disallowedJobs": {
2860
+ "type": "array",
2861
+ "items": {
2862
+ "$ref": "#/$defs/JobIdentity"
2863
+ }
2864
+ },
2865
+ "disallowedSequences": {
2866
+ "type": "array",
2867
+ "items": {
2868
+ "type": "array",
2869
+ "items": {
2870
+ "$ref": "#/$defs/JobIdentity"
2871
+ }
2872
+ }
2873
+ },
2874
+ "minSteps": {
2875
+ "type": "integer",
2876
+ "minimum": 1
2877
+ },
2878
+ "maxSteps": {
2879
+ "type": "integer",
2880
+ "minimum": 1
2881
+ }
2882
+ },
2883
+ "allOf": [
2884
+ {
2885
+ "$ref": "#/$defs/DomainFacet"
2886
+ }
2887
+ ],
2888
+ "unevaluatedProperties": false
2889
+ }
2890
+ }
2891
+ },
2892
+ "Natural": {
2893
+ "identity": "RESOURCE-Natural",
2894
+ "resourceTypeRef": "TYPE-ResourceType",
2895
+ "creationContext": {
2896
+ "resourceRoleRef": "ROLE-Genesis",
2897
+ "executionRef": "EXECUTION-Natural"
2898
+ },
2899
+ "kind": "materialized",
2900
+ "timestamp": "2025-11-30T00:00:00.000Z",
2901
+ "extractedData": {
2902
+ "identity": "TYPE-Natural",
2903
+ "name": "Natural",
2904
+ "description": "dummy-description",
2905
+ "resourceTypeImplementationKind": "internal-with-identity",
2906
+ "nucleusSchema": {
2907
+ "$anchor": "Natural",
2908
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2909
+ "type": "object",
2910
+ "required": [
2911
+ "identity"
2912
+ ],
2913
+ "properties": {
2914
+ "identity": {
2915
+ "$ref": "#/$defs/NaturalIdentity"
2916
+ }
2917
+ },
2918
+ "$defs": {
2919
+ "NaturalIdentity": {
2920
+ "type": "integer"
2921
+ }
2922
+ },
2923
+ "additionalProperties": false
2924
+ }
2925
+ }
2926
+ },
2927
+ "Boolean": {
2928
+ "identity": "RESOURCE-Boolean",
2929
+ "resourceTypeRef": "TYPE-ResourceType",
2930
+ "creationContext": {
2931
+ "resourceRoleRef": "ROLE-Genesis",
2932
+ "executionRef": "EXECUTION-Boolean"
2933
+ },
2934
+ "kind": "materialized",
2935
+ "timestamp": "2025-11-30T00:00:00.000Z",
2936
+ "extractedData": {
2937
+ "identity": "TYPE-Boolean",
2938
+ "name": "Boolean",
2939
+ "description": "dummy-description",
2940
+ "resourceTypeImplementationKind": "internal-with-identity",
2941
+ "nucleusSchema": {
2942
+ "$anchor": "Boolean",
2943
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
2944
+ "type": "object",
2945
+ "required": [
2946
+ "identity"
2947
+ ],
2948
+ "properties": {
2949
+ "identity": {
2950
+ "$ref": "#/$defs/BooleanIdentity"
2951
+ }
2952
+ },
2953
+ "$defs": {
2954
+ "BooleanIdentity": {
2955
+ "type": "boolean"
2956
+ }
2957
+ },
2958
+ "additionalProperties": false
2959
+ }
2960
+ }
2961
+ }
2962
+ }