@toolproof-npm/schema 0.1.82 → 0.1.84
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.
- package/README.md +59 -59
- package/dist/genesis/generated/dependencies_ordered.json +17 -23
- package/dist/genesis/generated/resourceTypes/Genesis.json +42 -77
- package/dist/genesis/generated/resources/Genesis.json +52 -97
- package/dist/genesis/generated/schemas/Genesis.json +104 -133
- package/dist/genesis/generated/schemas/RunRecording.json +186 -215
- package/dist/genesis/generated/schemas/RunnableStrategy.d.ts +2 -0
- package/dist/genesis/generated/schemas/RunnableStrategy.js +2 -0
- package/dist/genesis/generated/schemas/{StrategyRun.json → RunnableStrategy.json} +21 -21
- package/dist/genesis/generated/terminals.json +1 -1
- package/dist/genesis/generated/types/ResourceTypeGenesis.d.ts +5 -6
- package/dist/genesis/generated/types/Resource_RunnableStrategy.d.ts +3 -0
- package/dist/genesis/generated/types/types.d.ts +284 -300
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/scripts/generateTypes.js +1 -3
- package/package.json +62 -62
- package/dist/genesis/generated/resource-envelopes/Genesis.d.ts +0 -2
- package/dist/genesis/generated/resource-envelopes/Genesis.js +0 -2
- package/dist/genesis/generated/resource-envelopes/Genesis.json +0 -2337
- package/dist/genesis/generated/resource-type-envelopes/Genesis.d.ts +0 -2
- package/dist/genesis/generated/resource-type-envelopes/Genesis.js +0 -2
- package/dist/genesis/generated/resource-type-envelopes/Genesis.json +0 -1757
- package/dist/genesis/generated/schemas/StrategyRun.d.ts +0 -2
- package/dist/genesis/generated/schemas/StrategyRun.js +0 -2
- package/dist/genesis/generated/types/Resource_StrategyRun.d.ts +0 -3
- /package/dist/genesis/generated/types/{Resource_StrategyRun.js → Resource_RunnableStrategy.js} +0 -0
|
@@ -2346,34 +2346,6 @@
|
|
|
2346
2346
|
}
|
|
2347
2347
|
}
|
|
2348
2348
|
},
|
|
2349
|
-
"ExecutionSocketMaterialized": {
|
|
2350
|
-
"identity": "RESOURCE-ExecutionSocketMaterialized",
|
|
2351
|
-
"resourceTypeRef": "TYPE-ResourceType",
|
|
2352
|
-
"creationContext": {
|
|
2353
|
-
"resourceRoleRef": "ROLE-Genesis",
|
|
2354
|
-
"executionRef": "EXECUTION-ExecutionSocketMaterialized"
|
|
2355
|
-
},
|
|
2356
|
-
"kind": "materialized",
|
|
2357
|
-
"timestamp": "2025-11-30T00:00:00.000Z",
|
|
2358
|
-
"extractedData": {
|
|
2359
|
-
"identity": "TYPE-ExecutionSocketMaterialized",
|
|
2360
|
-
"name": "ExecutionSocketMaterialized",
|
|
2361
|
-
"description": "dummy-description",
|
|
2362
|
-
"resourceFormatRef": "FORMAT-ApplicationJson",
|
|
2363
|
-
"extractionSchema": {
|
|
2364
|
-
"$anchor": "ExecutionSocketMaterialized",
|
|
2365
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
2366
|
-
"type": "object",
|
|
2367
|
-
"propertyNames": {
|
|
2368
|
-
"$ref": "#/$defs/ResourceRoleIdentity"
|
|
2369
|
-
},
|
|
2370
|
-
"additionalProperties": {
|
|
2371
|
-
"$ref": "#/$defs/Resource"
|
|
2372
|
-
},
|
|
2373
|
-
"unevaluatedProperties": false
|
|
2374
|
-
}
|
|
2375
|
-
}
|
|
2376
|
-
},
|
|
2377
2349
|
"StrategyState": {
|
|
2378
2350
|
"identity": "RESOURCE-StrategyState",
|
|
2379
2351
|
"resourceTypeRef": "TYPE-ResourceType",
|
|
@@ -2490,44 +2462,44 @@
|
|
|
2490
2462
|
}
|
|
2491
2463
|
}
|
|
2492
2464
|
},
|
|
2493
|
-
"
|
|
2494
|
-
"identity": "RESOURCE-
|
|
2465
|
+
"RunnableStrategyIdentity": {
|
|
2466
|
+
"identity": "RESOURCE-RunnableStrategyIdentity",
|
|
2495
2467
|
"resourceTypeRef": "TYPE-ResourceType",
|
|
2496
2468
|
"creationContext": {
|
|
2497
2469
|
"resourceRoleRef": "ROLE-Genesis",
|
|
2498
|
-
"executionRef": "EXECUTION-
|
|
2470
|
+
"executionRef": "EXECUTION-RunnableStrategyIdentity"
|
|
2499
2471
|
},
|
|
2500
2472
|
"kind": "materialized",
|
|
2501
2473
|
"timestamp": "2025-11-30T00:00:00.000Z",
|
|
2502
2474
|
"extractedData": {
|
|
2503
|
-
"identity": "TYPE-
|
|
2504
|
-
"name": "
|
|
2475
|
+
"identity": "TYPE-RunnableStrategyIdentity",
|
|
2476
|
+
"name": "RunnableStrategyIdentity",
|
|
2505
2477
|
"description": "dummy-description",
|
|
2506
2478
|
"resourceFormatRef": "FORMAT-ApplicationJson",
|
|
2507
2479
|
"extractionSchema": {
|
|
2508
|
-
"$anchor": "
|
|
2480
|
+
"$anchor": "RunnableStrategyIdentity",
|
|
2509
2481
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
2510
2482
|
"type": "string",
|
|
2511
|
-
"pattern": "^
|
|
2483
|
+
"pattern": "^RUNNABLE_STRATEGY-.+$"
|
|
2512
2484
|
}
|
|
2513
2485
|
}
|
|
2514
2486
|
},
|
|
2515
|
-
"
|
|
2516
|
-
"identity": "RESOURCE-
|
|
2487
|
+
"RunnableStrategyStatus": {
|
|
2488
|
+
"identity": "RESOURCE-RunnableStrategyStatus",
|
|
2517
2489
|
"resourceTypeRef": "TYPE-ResourceType",
|
|
2518
2490
|
"creationContext": {
|
|
2519
2491
|
"resourceRoleRef": "ROLE-Genesis",
|
|
2520
|
-
"executionRef": "EXECUTION-
|
|
2492
|
+
"executionRef": "EXECUTION-RunnableStrategyStatus"
|
|
2521
2493
|
},
|
|
2522
2494
|
"kind": "materialized",
|
|
2523
2495
|
"timestamp": "2025-11-30T00:00:00.000Z",
|
|
2524
2496
|
"extractedData": {
|
|
2525
|
-
"identity": "TYPE-
|
|
2526
|
-
"name": "
|
|
2497
|
+
"identity": "TYPE-RunnableStrategyStatus",
|
|
2498
|
+
"name": "RunnableStrategyStatus",
|
|
2527
2499
|
"description": "dummy-description",
|
|
2528
2500
|
"resourceFormatRef": "FORMAT-ApplicationJson",
|
|
2529
2501
|
"extractionSchema": {
|
|
2530
|
-
"$anchor": "
|
|
2502
|
+
"$anchor": "RunnableStrategyStatus",
|
|
2531
2503
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
2532
2504
|
"type": "string",
|
|
2533
2505
|
"enum": [
|
|
@@ -2540,22 +2512,22 @@
|
|
|
2540
2512
|
}
|
|
2541
2513
|
}
|
|
2542
2514
|
},
|
|
2543
|
-
"
|
|
2544
|
-
"identity": "RESOURCE-
|
|
2515
|
+
"RunnableStrategyContext": {
|
|
2516
|
+
"identity": "RESOURCE-RunnableStrategyContext",
|
|
2545
2517
|
"resourceTypeRef": "TYPE-ResourceType",
|
|
2546
2518
|
"creationContext": {
|
|
2547
2519
|
"resourceRoleRef": "ROLE-Genesis",
|
|
2548
|
-
"executionRef": "EXECUTION-
|
|
2520
|
+
"executionRef": "EXECUTION-RunnableStrategyContext"
|
|
2549
2521
|
},
|
|
2550
2522
|
"kind": "materialized",
|
|
2551
2523
|
"timestamp": "2025-11-30T00:00:00.000Z",
|
|
2552
2524
|
"extractedData": {
|
|
2553
|
-
"identity": "TYPE-
|
|
2554
|
-
"name": "
|
|
2525
|
+
"identity": "TYPE-RunnableStrategyContext",
|
|
2526
|
+
"name": "RunnableStrategyContext",
|
|
2555
2527
|
"description": "dummy-description",
|
|
2556
2528
|
"resourceFormatRef": "FORMAT-ApplicationJson",
|
|
2557
2529
|
"extractionSchema": {
|
|
2558
|
-
"$anchor": "
|
|
2530
|
+
"$anchor": "RunnableStrategyContext",
|
|
2559
2531
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
2560
2532
|
"type": "object",
|
|
2561
2533
|
"required": [
|
|
@@ -2563,7 +2535,7 @@
|
|
|
2563
2535
|
],
|
|
2564
2536
|
"properties": {
|
|
2565
2537
|
"status": {
|
|
2566
|
-
"$ref": "#/$defs/
|
|
2538
|
+
"$ref": "#/$defs/RunnableStrategyStatus"
|
|
2567
2539
|
},
|
|
2568
2540
|
"startedAt": {
|
|
2569
2541
|
"$ref": "#/$defs/Timestamp"
|
|
@@ -2658,38 +2630,38 @@
|
|
|
2658
2630
|
}
|
|
2659
2631
|
}
|
|
2660
2632
|
},
|
|
2661
|
-
"
|
|
2662
|
-
"identity": "RESOURCE-
|
|
2633
|
+
"RunnableStrategy": {
|
|
2634
|
+
"identity": "RESOURCE-RunnableStrategy",
|
|
2663
2635
|
"resourceTypeRef": "TYPE-ResourceType",
|
|
2664
2636
|
"creationContext": {
|
|
2665
2637
|
"resourceRoleRef": "ROLE-Genesis",
|
|
2666
|
-
"executionRef": "EXECUTION-
|
|
2638
|
+
"executionRef": "EXECUTION-RunnableStrategy"
|
|
2667
2639
|
},
|
|
2668
2640
|
"kind": "materialized",
|
|
2669
2641
|
"timestamp": "2025-11-30T00:00:00.000Z",
|
|
2670
2642
|
"extractedData": {
|
|
2671
|
-
"identity": "TYPE-
|
|
2672
|
-
"name": "
|
|
2643
|
+
"identity": "TYPE-RunnableStrategy",
|
|
2644
|
+
"name": "RunnableStrategy",
|
|
2673
2645
|
"description": "dummy-description",
|
|
2674
2646
|
"resourceFormatRef": "FORMAT-ApplicationJson",
|
|
2675
2647
|
"extractionSchema": {
|
|
2676
|
-
"$anchor": "
|
|
2648
|
+
"$anchor": "RunnableStrategy",
|
|
2677
2649
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
2678
2650
|
"type": "object",
|
|
2679
2651
|
"required": [
|
|
2680
2652
|
"identity",
|
|
2681
2653
|
"statefulStrategyRef",
|
|
2682
|
-
"
|
|
2654
|
+
"runnableStrategyContext"
|
|
2683
2655
|
],
|
|
2684
2656
|
"properties": {
|
|
2685
2657
|
"identity": {
|
|
2686
|
-
"$ref": "#/$defs/
|
|
2658
|
+
"$ref": "#/$defs/RunnableStrategyIdentity"
|
|
2687
2659
|
},
|
|
2688
2660
|
"statefulStrategyRef": {
|
|
2689
2661
|
"$ref": "#/$defs/StatefulStrategyIdentity"
|
|
2690
2662
|
},
|
|
2691
|
-
"
|
|
2692
|
-
"$ref": "#/$defs/
|
|
2663
|
+
"runnableStrategyContext": {
|
|
2664
|
+
"$ref": "#/$defs/RunnableStrategyContext"
|
|
2693
2665
|
}
|
|
2694
2666
|
},
|
|
2695
2667
|
"allOf": [
|
|
@@ -2698,7 +2670,7 @@
|
|
|
2698
2670
|
"$ref": "#/$defs/StrategyThreadMapWrapper"
|
|
2699
2671
|
},
|
|
2700
2672
|
{
|
|
2701
|
-
"$comment": "Reusing StrategyStateWrapper to include the strategy state in the
|
|
2673
|
+
"$comment": "Reusing StrategyStateWrapper to include the strategy state in the RunnableStrategy. The Engine will update it with materialized Resources (i.e. runtime-provided inputs and job-created outputs) during the run.",
|
|
2702
2674
|
"$ref": "#/$defs/StrategyStateWrapper"
|
|
2703
2675
|
}
|
|
2704
2676
|
],
|
|
@@ -2727,58 +2699,41 @@
|
|
|
2727
2699
|
"$comment": "Shared delta payload for strategy state updates; used both as standalone updates and embedded within run events.",
|
|
2728
2700
|
"properties": {
|
|
2729
2701
|
"strategyStateUpdate": {
|
|
2730
|
-
"
|
|
2731
|
-
"propertyNames": {
|
|
2732
|
-
"$ref": "#/$defs/ExecutionIdentity"
|
|
2733
|
-
},
|
|
2734
|
-
"additionalProperties": {
|
|
2735
|
-
"$ref": "#/$defs/ExecutionSocketMaterialized"
|
|
2736
|
-
},
|
|
2737
|
-
"unevaluatedProperties": false
|
|
2738
|
-
},
|
|
2739
|
-
"strategyStateUpdateWide": {
|
|
2740
|
-
"type": "object",
|
|
2741
|
-
"propertyNames": {
|
|
2742
|
-
"$ref": "#/$defs/ExecutionIdentity"
|
|
2743
|
-
},
|
|
2744
|
-
"additionalProperties": {
|
|
2745
|
-
"$ref": "#/$defs/ExecutionSocket"
|
|
2746
|
-
},
|
|
2747
|
-
"unevaluatedProperties": false
|
|
2702
|
+
"$ref": "#/$defs/StrategyState"
|
|
2748
2703
|
}
|
|
2749
2704
|
}
|
|
2750
2705
|
}
|
|
2751
2706
|
}
|
|
2752
2707
|
},
|
|
2753
|
-
"
|
|
2754
|
-
"identity": "RESOURCE-
|
|
2708
|
+
"RunnableStrategyUpdate": {
|
|
2709
|
+
"identity": "RESOURCE-RunnableStrategyUpdate",
|
|
2755
2710
|
"resourceTypeRef": "TYPE-ResourceType",
|
|
2756
2711
|
"creationContext": {
|
|
2757
2712
|
"resourceRoleRef": "ROLE-Genesis",
|
|
2758
|
-
"executionRef": "EXECUTION-
|
|
2713
|
+
"executionRef": "EXECUTION-RunnableStrategyUpdate"
|
|
2759
2714
|
},
|
|
2760
2715
|
"kind": "materialized",
|
|
2761
2716
|
"timestamp": "2025-11-30T00:00:00.000Z",
|
|
2762
2717
|
"extractedData": {
|
|
2763
|
-
"identity": "TYPE-
|
|
2764
|
-
"name": "
|
|
2718
|
+
"identity": "TYPE-RunnableStrategyUpdate",
|
|
2719
|
+
"name": "RunnableStrategyUpdate",
|
|
2765
2720
|
"description": "dummy-description",
|
|
2766
2721
|
"resourceFormatRef": "FORMAT-ApplicationJson",
|
|
2767
2722
|
"extractionSchema": {
|
|
2768
|
-
"$anchor": "
|
|
2723
|
+
"$anchor": "RunnableStrategyUpdate",
|
|
2769
2724
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
2770
2725
|
"type": "object",
|
|
2771
2726
|
"required": [
|
|
2772
|
-
"
|
|
2727
|
+
"runnableStrategyRef",
|
|
2773
2728
|
"strategyStateUpdate"
|
|
2774
2729
|
],
|
|
2775
2730
|
"properties": {
|
|
2776
|
-
"
|
|
2777
|
-
"$ref": "#/$defs/
|
|
2731
|
+
"runnableStrategyRef": {
|
|
2732
|
+
"$ref": "#/$defs/RunnableStrategyIdentity"
|
|
2778
2733
|
},
|
|
2779
|
-
"
|
|
2780
|
-
"$comment": "Optional embedded snapshot;
|
|
2781
|
-
"$ref": "#/$defs/
|
|
2734
|
+
"runnableStrategy": {
|
|
2735
|
+
"$comment": "Optional embedded snapshot; runnableStrategyRef remains the canonical pointer.",
|
|
2736
|
+
"$ref": "#/$defs/RunnableStrategy"
|
|
2782
2737
|
}
|
|
2783
2738
|
},
|
|
2784
2739
|
"allOf": [
|
|
@@ -3002,7 +2957,7 @@
|
|
|
3002
2957
|
"type": "object",
|
|
3003
2958
|
"required": [
|
|
3004
2959
|
"kind",
|
|
3005
|
-
"
|
|
2960
|
+
"runnableStrategyRef",
|
|
3006
2961
|
"strategyThreadRef",
|
|
3007
2962
|
"createdAt",
|
|
3008
2963
|
"nodeName",
|
|
@@ -3012,8 +2967,8 @@
|
|
|
3012
2967
|
"kind": {
|
|
3013
2968
|
"$ref": "#/$defs/RunEventKind"
|
|
3014
2969
|
},
|
|
3015
|
-
"
|
|
3016
|
-
"$ref": "#/$defs/
|
|
2970
|
+
"runnableStrategyRef": {
|
|
2971
|
+
"$ref": "#/$defs/RunnableStrategyIdentity"
|
|
3017
2972
|
},
|
|
3018
2973
|
"strategyThreadRef": {
|
|
3019
2974
|
"$ref": "#/$defs/StrategyThreadIdentity"
|
|
@@ -3064,14 +3019,14 @@
|
|
|
3064
3019
|
{
|
|
3065
3020
|
"type": "object",
|
|
3066
3021
|
"required": [
|
|
3067
|
-
"
|
|
3022
|
+
"runnableStrategySeed"
|
|
3068
3023
|
],
|
|
3069
3024
|
"properties": {
|
|
3070
3025
|
"kind": {
|
|
3071
3026
|
"const": "graph_start"
|
|
3072
3027
|
},
|
|
3073
|
-
"
|
|
3074
|
-
"$ref": "#/$defs/
|
|
3028
|
+
"runnableStrategySeed": {
|
|
3029
|
+
"$ref": "#/$defs/RunnableStrategy"
|
|
3075
3030
|
}
|
|
3076
3031
|
}
|
|
3077
3032
|
}
|
|
@@ -3234,9 +3189,9 @@
|
|
|
3234
3189
|
"runEvents"
|
|
3235
3190
|
],
|
|
3236
3191
|
"properties": {
|
|
3237
|
-
"
|
|
3192
|
+
"runnableStrategyRef": {
|
|
3238
3193
|
"$comment": "Optional; derived from the first event but useful for indexing.",
|
|
3239
|
-
"$ref": "#/$defs/
|
|
3194
|
+
"$ref": "#/$defs/RunnableStrategyIdentity"
|
|
3240
3195
|
},
|
|
3241
3196
|
"strategyThreadRef": {
|
|
3242
3197
|
"$comment": "Optional; derived from the first event but useful for indexing.",
|
|
@@ -188,18 +188,6 @@
|
|
|
188
188
|
"$ref": "#/$defs/ResourceRoleIdentity"
|
|
189
189
|
}
|
|
190
190
|
},
|
|
191
|
-
"ExecutionSocketMaterialized": {
|
|
192
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
193
|
-
"type": "object",
|
|
194
|
-
"additionalProperties": {
|
|
195
|
-
"$ref": "#/$defs/Resource"
|
|
196
|
-
},
|
|
197
|
-
"unevaluatedProperties": false,
|
|
198
|
-
"$anchor": "ExecutionSocketMaterialized",
|
|
199
|
-
"propertyNames": {
|
|
200
|
-
"$ref": "#/$defs/ResourceRoleIdentity"
|
|
201
|
-
}
|
|
202
|
-
},
|
|
203
191
|
"ExtractionSchema": {
|
|
204
192
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
205
193
|
"type": "object",
|
|
@@ -403,12 +391,12 @@
|
|
|
403
391
|
"kind": {
|
|
404
392
|
"const": "graph_start"
|
|
405
393
|
},
|
|
406
|
-
"
|
|
407
|
-
"$ref": "#/$defs/
|
|
394
|
+
"runnableStrategySeed": {
|
|
395
|
+
"$ref": "#/$defs/RunnableStrategy"
|
|
408
396
|
}
|
|
409
397
|
},
|
|
410
398
|
"required": [
|
|
411
|
-
"
|
|
399
|
+
"runnableStrategySeed"
|
|
412
400
|
]
|
|
413
401
|
}
|
|
414
402
|
],
|
|
@@ -1373,12 +1361,12 @@
|
|
|
1373
1361
|
"nodeName": {
|
|
1374
1362
|
"type": "string"
|
|
1375
1363
|
},
|
|
1364
|
+
"runnableStrategyRef": {
|
|
1365
|
+
"$ref": "#/$defs/RunnableStrategyIdentity"
|
|
1366
|
+
},
|
|
1376
1367
|
"stepMetaData": {
|
|
1377
1368
|
"$ref": "#/$defs/RunEventStepMetaData"
|
|
1378
1369
|
},
|
|
1379
|
-
"strategyRunRef": {
|
|
1380
|
-
"$ref": "#/$defs/StrategyRunIdentity"
|
|
1381
|
-
},
|
|
1382
1370
|
"strategyThreadRef": {
|
|
1383
1371
|
"$ref": "#/$defs/StrategyThreadIdentity"
|
|
1384
1372
|
},
|
|
@@ -1388,7 +1376,7 @@
|
|
|
1388
1376
|
},
|
|
1389
1377
|
"required": [
|
|
1390
1378
|
"kind",
|
|
1391
|
-
"
|
|
1379
|
+
"runnableStrategyRef",
|
|
1392
1380
|
"strategyThreadRef",
|
|
1393
1381
|
"createdAt",
|
|
1394
1382
|
"nodeName",
|
|
@@ -1522,9 +1510,9 @@
|
|
|
1522
1510
|
"$ref": "#/$defs/RunEvent"
|
|
1523
1511
|
}
|
|
1524
1512
|
},
|
|
1525
|
-
"
|
|
1513
|
+
"runnableStrategyRef": {
|
|
1526
1514
|
"$comment": "Optional; derived from the first event but useful for indexing.",
|
|
1527
|
-
"$ref": "#/$defs/
|
|
1515
|
+
"$ref": "#/$defs/RunnableStrategyIdentity"
|
|
1528
1516
|
},
|
|
1529
1517
|
"strategyThreadRef": {
|
|
1530
1518
|
"$comment": "Optional; derived from the first event but useful for indexing.",
|
|
@@ -1537,6 +1525,100 @@
|
|
|
1537
1525
|
"unevaluatedProperties": false,
|
|
1538
1526
|
"$anchor": "RunRecording"
|
|
1539
1527
|
},
|
|
1528
|
+
"RunnableStrategy": {
|
|
1529
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1530
|
+
"type": "object",
|
|
1531
|
+
"allOf": [
|
|
1532
|
+
{
|
|
1533
|
+
"$comment": "The Engine will convert the statelessStrategy.steps array of the referenced StatefulStrategy into this map before the run. This is to allow jobs that do not depend on previous-step inputs to run in parallel.The Engine will also inject internal steps to prompt for runtime-provided inputs and handle other orchestration tasks such as repeted steps when encountering a loop.",
|
|
1534
|
+
"$ref": "#/$defs/StrategyThreadMapWrapper"
|
|
1535
|
+
},
|
|
1536
|
+
{
|
|
1537
|
+
"$comment": "Reusing StrategyStateWrapper to include the strategy state in the RunnableStrategy. The Engine will update it with materialized Resources (i.e. runtime-provided inputs and job-created outputs) during the run.",
|
|
1538
|
+
"$ref": "#/$defs/StrategyStateWrapper"
|
|
1539
|
+
}
|
|
1540
|
+
],
|
|
1541
|
+
"properties": {
|
|
1542
|
+
"identity": {
|
|
1543
|
+
"$ref": "#/$defs/RunnableStrategyIdentity"
|
|
1544
|
+
},
|
|
1545
|
+
"runnableStrategyContext": {
|
|
1546
|
+
"$ref": "#/$defs/RunnableStrategyContext"
|
|
1547
|
+
},
|
|
1548
|
+
"statefulStrategyRef": {
|
|
1549
|
+
"$ref": "#/$defs/StatefulStrategyIdentity"
|
|
1550
|
+
}
|
|
1551
|
+
},
|
|
1552
|
+
"required": [
|
|
1553
|
+
"identity",
|
|
1554
|
+
"statefulStrategyRef",
|
|
1555
|
+
"runnableStrategyContext"
|
|
1556
|
+
],
|
|
1557
|
+
"unevaluatedProperties": false,
|
|
1558
|
+
"$anchor": "RunnableStrategy"
|
|
1559
|
+
},
|
|
1560
|
+
"RunnableStrategyContext": {
|
|
1561
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1562
|
+
"type": "object",
|
|
1563
|
+
"properties": {
|
|
1564
|
+
"completedAt": {
|
|
1565
|
+
"$ref": "#/$defs/Timestamp"
|
|
1566
|
+
},
|
|
1567
|
+
"startedAt": {
|
|
1568
|
+
"$ref": "#/$defs/Timestamp"
|
|
1569
|
+
},
|
|
1570
|
+
"status": {
|
|
1571
|
+
"$ref": "#/$defs/RunnableStrategyStatus"
|
|
1572
|
+
}
|
|
1573
|
+
},
|
|
1574
|
+
"required": [
|
|
1575
|
+
"status"
|
|
1576
|
+
],
|
|
1577
|
+
"unevaluatedProperties": false,
|
|
1578
|
+
"$anchor": "RunnableStrategyContext"
|
|
1579
|
+
},
|
|
1580
|
+
"RunnableStrategyIdentity": {
|
|
1581
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1582
|
+
"type": "string",
|
|
1583
|
+
"$anchor": "RunnableStrategyIdentity",
|
|
1584
|
+
"pattern": "^RUNNABLE_STRATEGY-.+$"
|
|
1585
|
+
},
|
|
1586
|
+
"RunnableStrategyStatus": {
|
|
1587
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1588
|
+
"type": "string",
|
|
1589
|
+
"$anchor": "RunnableStrategyStatus",
|
|
1590
|
+
"enum": [
|
|
1591
|
+
"pending",
|
|
1592
|
+
"running",
|
|
1593
|
+
"completed",
|
|
1594
|
+
"failed",
|
|
1595
|
+
"cancelled"
|
|
1596
|
+
]
|
|
1597
|
+
},
|
|
1598
|
+
"RunnableStrategyUpdate": {
|
|
1599
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1600
|
+
"type": "object",
|
|
1601
|
+
"allOf": [
|
|
1602
|
+
{
|
|
1603
|
+
"$ref": "#/$defs/StrategyStateDelta"
|
|
1604
|
+
}
|
|
1605
|
+
],
|
|
1606
|
+
"properties": {
|
|
1607
|
+
"runnableStrategy": {
|
|
1608
|
+
"$comment": "Optional embedded snapshot; runnableStrategyRef remains the canonical pointer.",
|
|
1609
|
+
"$ref": "#/$defs/RunnableStrategy"
|
|
1610
|
+
},
|
|
1611
|
+
"runnableStrategyRef": {
|
|
1612
|
+
"$ref": "#/$defs/RunnableStrategyIdentity"
|
|
1613
|
+
}
|
|
1614
|
+
},
|
|
1615
|
+
"required": [
|
|
1616
|
+
"runnableStrategyRef",
|
|
1617
|
+
"strategyStateUpdate"
|
|
1618
|
+
],
|
|
1619
|
+
"unevaluatedProperties": false,
|
|
1620
|
+
"$anchor": "RunnableStrategyUpdate"
|
|
1621
|
+
},
|
|
1540
1622
|
"StatefulStrategy": {
|
|
1541
1623
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1542
1624
|
"type": "object",
|
|
@@ -1645,100 +1727,6 @@
|
|
|
1645
1727
|
],
|
|
1646
1728
|
"$anchor": "StepKind"
|
|
1647
1729
|
},
|
|
1648
|
-
"StrategyRun": {
|
|
1649
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1650
|
-
"type": "object",
|
|
1651
|
-
"allOf": [
|
|
1652
|
-
{
|
|
1653
|
-
"$comment": "The Engine will convert the statelessStrategy.steps array of the referenced StatefulStrategy into this map before the run. This is to allow jobs that do not depend on previous-step inputs to run in parallel.The Engine will also inject internal steps to prompt for runtime-provided inputs and handle other orchestration tasks such as repeted steps when encountering a loop.",
|
|
1654
|
-
"$ref": "#/$defs/StrategyThreadMapWrapper"
|
|
1655
|
-
},
|
|
1656
|
-
{
|
|
1657
|
-
"$comment": "Reusing StrategyStateWrapper to include the strategy state in the StrategyRun. The Engine will update it with materialized Resources (i.e. runtime-provided inputs and job-created outputs) during the run.",
|
|
1658
|
-
"$ref": "#/$defs/StrategyStateWrapper"
|
|
1659
|
-
}
|
|
1660
|
-
],
|
|
1661
|
-
"properties": {
|
|
1662
|
-
"identity": {
|
|
1663
|
-
"$ref": "#/$defs/StrategyRunIdentity"
|
|
1664
|
-
},
|
|
1665
|
-
"statefulStrategyRef": {
|
|
1666
|
-
"$ref": "#/$defs/StatefulStrategyIdentity"
|
|
1667
|
-
},
|
|
1668
|
-
"strategyRunContext": {
|
|
1669
|
-
"$ref": "#/$defs/StrategyRunContext"
|
|
1670
|
-
}
|
|
1671
|
-
},
|
|
1672
|
-
"required": [
|
|
1673
|
-
"identity",
|
|
1674
|
-
"statefulStrategyRef",
|
|
1675
|
-
"strategyRunContext"
|
|
1676
|
-
],
|
|
1677
|
-
"unevaluatedProperties": false,
|
|
1678
|
-
"$anchor": "StrategyRun"
|
|
1679
|
-
},
|
|
1680
|
-
"StrategyRunContext": {
|
|
1681
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1682
|
-
"type": "object",
|
|
1683
|
-
"properties": {
|
|
1684
|
-
"completedAt": {
|
|
1685
|
-
"$ref": "#/$defs/Timestamp"
|
|
1686
|
-
},
|
|
1687
|
-
"startedAt": {
|
|
1688
|
-
"$ref": "#/$defs/Timestamp"
|
|
1689
|
-
},
|
|
1690
|
-
"status": {
|
|
1691
|
-
"$ref": "#/$defs/StrategyRunStatus"
|
|
1692
|
-
}
|
|
1693
|
-
},
|
|
1694
|
-
"required": [
|
|
1695
|
-
"status"
|
|
1696
|
-
],
|
|
1697
|
-
"unevaluatedProperties": false,
|
|
1698
|
-
"$anchor": "StrategyRunContext"
|
|
1699
|
-
},
|
|
1700
|
-
"StrategyRunIdentity": {
|
|
1701
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1702
|
-
"type": "string",
|
|
1703
|
-
"$anchor": "StrategyRunIdentity",
|
|
1704
|
-
"pattern": "^STRATEGY_RUN-.+$"
|
|
1705
|
-
},
|
|
1706
|
-
"StrategyRunStatus": {
|
|
1707
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1708
|
-
"type": "string",
|
|
1709
|
-
"$anchor": "StrategyRunStatus",
|
|
1710
|
-
"enum": [
|
|
1711
|
-
"pending",
|
|
1712
|
-
"running",
|
|
1713
|
-
"completed",
|
|
1714
|
-
"failed",
|
|
1715
|
-
"cancelled"
|
|
1716
|
-
]
|
|
1717
|
-
},
|
|
1718
|
-
"StrategyRunUpdate": {
|
|
1719
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1720
|
-
"type": "object",
|
|
1721
|
-
"allOf": [
|
|
1722
|
-
{
|
|
1723
|
-
"$ref": "#/$defs/StrategyStateDelta"
|
|
1724
|
-
}
|
|
1725
|
-
],
|
|
1726
|
-
"properties": {
|
|
1727
|
-
"strategyRun": {
|
|
1728
|
-
"$comment": "Optional embedded snapshot; strategyRunRef remains the canonical pointer.",
|
|
1729
|
-
"$ref": "#/$defs/StrategyRun"
|
|
1730
|
-
},
|
|
1731
|
-
"strategyRunRef": {
|
|
1732
|
-
"$ref": "#/$defs/StrategyRunIdentity"
|
|
1733
|
-
}
|
|
1734
|
-
},
|
|
1735
|
-
"required": [
|
|
1736
|
-
"strategyRunRef",
|
|
1737
|
-
"strategyStateUpdate"
|
|
1738
|
-
],
|
|
1739
|
-
"unevaluatedProperties": false,
|
|
1740
|
-
"$anchor": "StrategyRunUpdate"
|
|
1741
|
-
},
|
|
1742
1730
|
"StrategyState": {
|
|
1743
1731
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1744
1732
|
"type": "object",
|
|
@@ -1755,24 +1743,7 @@
|
|
|
1755
1743
|
"type": "object",
|
|
1756
1744
|
"properties": {
|
|
1757
1745
|
"strategyStateUpdate": {
|
|
1758
|
-
"
|
|
1759
|
-
"additionalProperties": {
|
|
1760
|
-
"$ref": "#/$defs/ExecutionSocketMaterialized"
|
|
1761
|
-
},
|
|
1762
|
-
"unevaluatedProperties": false,
|
|
1763
|
-
"propertyNames": {
|
|
1764
|
-
"$ref": "#/$defs/ExecutionIdentity"
|
|
1765
|
-
}
|
|
1766
|
-
},
|
|
1767
|
-
"strategyStateUpdateWide": {
|
|
1768
|
-
"type": "object",
|
|
1769
|
-
"additionalProperties": {
|
|
1770
|
-
"$ref": "#/$defs/ExecutionSocket"
|
|
1771
|
-
},
|
|
1772
|
-
"unevaluatedProperties": false,
|
|
1773
|
-
"propertyNames": {
|
|
1774
|
-
"$ref": "#/$defs/ExecutionIdentity"
|
|
1775
|
-
}
|
|
1746
|
+
"$ref": "#/$defs/StrategyState"
|
|
1776
1747
|
}
|
|
1777
1748
|
},
|
|
1778
1749
|
"$anchor": "StrategyStateDelta",
|