@toolproof-npm/schema 0.1.81 → 0.1.83
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/dist/genesis/generated/dependencies_ordered.json +69 -21
- package/dist/genesis/generated/resourceTypes/Genesis.json +46 -76
- package/dist/genesis/generated/resources/Genesis.json +56 -96
- package/dist/genesis/generated/schemas/Genesis.json +104 -128
- package/dist/genesis/generated/schemas/RunRecording.d.ts +2 -0
- package/dist/genesis/generated/schemas/RunRecording.js +2 -0
- package/dist/genesis/generated/schemas/RunRecording.json +998 -0
- 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 -23
- package/dist/genesis/generated/schemas/StatefulStrategy.json +0 -2
- package/dist/genesis/generated/terminals.json +2 -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 +661 -209
- package/dist/index.d.ts +4 -3
- package/dist/index.js +2 -1
- package/package.json +2 -2
- 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
|
@@ -2301,8 +2301,7 @@
|
|
|
2301
2301
|
"statelessStrategy": {
|
|
2302
2302
|
"$ref": "#/$defs/StatelessStrategy"
|
|
2303
2303
|
}
|
|
2304
|
-
}
|
|
2305
|
-
"unevaluatedProperties": false
|
|
2304
|
+
}
|
|
2306
2305
|
}
|
|
2307
2306
|
}
|
|
2308
2307
|
},
|
|
@@ -2347,34 +2346,6 @@
|
|
|
2347
2346
|
}
|
|
2348
2347
|
}
|
|
2349
2348
|
},
|
|
2350
|
-
"ExecutionSocketMaterialized": {
|
|
2351
|
-
"identity": "RESOURCE-ExecutionSocketMaterialized",
|
|
2352
|
-
"resourceTypeRef": "TYPE-ResourceType",
|
|
2353
|
-
"creationContext": {
|
|
2354
|
-
"resourceRoleRef": "ROLE-Genesis",
|
|
2355
|
-
"executionRef": "EXECUTION-ExecutionSocketMaterialized"
|
|
2356
|
-
},
|
|
2357
|
-
"kind": "materialized",
|
|
2358
|
-
"timestamp": "2025-11-30T00:00:00.000Z",
|
|
2359
|
-
"extractedData": {
|
|
2360
|
-
"identity": "TYPE-ExecutionSocketMaterialized",
|
|
2361
|
-
"name": "ExecutionSocketMaterialized",
|
|
2362
|
-
"description": "dummy-description",
|
|
2363
|
-
"resourceFormatRef": "FORMAT-ApplicationJson",
|
|
2364
|
-
"extractionSchema": {
|
|
2365
|
-
"$anchor": "ExecutionSocketMaterialized",
|
|
2366
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
2367
|
-
"type": "object",
|
|
2368
|
-
"propertyNames": {
|
|
2369
|
-
"$ref": "#/$defs/ResourceRoleIdentity"
|
|
2370
|
-
},
|
|
2371
|
-
"additionalProperties": {
|
|
2372
|
-
"$ref": "#/$defs/Resource"
|
|
2373
|
-
},
|
|
2374
|
-
"unevaluatedProperties": false
|
|
2375
|
-
}
|
|
2376
|
-
}
|
|
2377
|
-
},
|
|
2378
2349
|
"StrategyState": {
|
|
2379
2350
|
"identity": "RESOURCE-StrategyState",
|
|
2380
2351
|
"resourceTypeRef": "TYPE-ResourceType",
|
|
@@ -2427,8 +2398,7 @@
|
|
|
2427
2398
|
"strategyState": {
|
|
2428
2399
|
"$ref": "#/$defs/StrategyState"
|
|
2429
2400
|
}
|
|
2430
|
-
}
|
|
2431
|
-
"unevaluatedProperties": false
|
|
2401
|
+
}
|
|
2432
2402
|
}
|
|
2433
2403
|
}
|
|
2434
2404
|
},
|
|
@@ -2492,44 +2462,44 @@
|
|
|
2492
2462
|
}
|
|
2493
2463
|
}
|
|
2494
2464
|
},
|
|
2495
|
-
"
|
|
2496
|
-
"identity": "RESOURCE-
|
|
2465
|
+
"RunnableStrategyIdentity": {
|
|
2466
|
+
"identity": "RESOURCE-RunnableStrategyIdentity",
|
|
2497
2467
|
"resourceTypeRef": "TYPE-ResourceType",
|
|
2498
2468
|
"creationContext": {
|
|
2499
2469
|
"resourceRoleRef": "ROLE-Genesis",
|
|
2500
|
-
"executionRef": "EXECUTION-
|
|
2470
|
+
"executionRef": "EXECUTION-RunnableStrategyIdentity"
|
|
2501
2471
|
},
|
|
2502
2472
|
"kind": "materialized",
|
|
2503
2473
|
"timestamp": "2025-11-30T00:00:00.000Z",
|
|
2504
2474
|
"extractedData": {
|
|
2505
|
-
"identity": "TYPE-
|
|
2506
|
-
"name": "
|
|
2475
|
+
"identity": "TYPE-RunnableStrategyIdentity",
|
|
2476
|
+
"name": "RunnableStrategyIdentity",
|
|
2507
2477
|
"description": "dummy-description",
|
|
2508
2478
|
"resourceFormatRef": "FORMAT-ApplicationJson",
|
|
2509
2479
|
"extractionSchema": {
|
|
2510
|
-
"$anchor": "
|
|
2480
|
+
"$anchor": "RunnableStrategyIdentity",
|
|
2511
2481
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
2512
2482
|
"type": "string",
|
|
2513
|
-
"pattern": "^
|
|
2483
|
+
"pattern": "^RUNNABLE_STRATEGY-.+$"
|
|
2514
2484
|
}
|
|
2515
2485
|
}
|
|
2516
2486
|
},
|
|
2517
|
-
"
|
|
2518
|
-
"identity": "RESOURCE-
|
|
2487
|
+
"RunnableStrategyStatus": {
|
|
2488
|
+
"identity": "RESOURCE-RunnableStrategyStatus",
|
|
2519
2489
|
"resourceTypeRef": "TYPE-ResourceType",
|
|
2520
2490
|
"creationContext": {
|
|
2521
2491
|
"resourceRoleRef": "ROLE-Genesis",
|
|
2522
|
-
"executionRef": "EXECUTION-
|
|
2492
|
+
"executionRef": "EXECUTION-RunnableStrategyStatus"
|
|
2523
2493
|
},
|
|
2524
2494
|
"kind": "materialized",
|
|
2525
2495
|
"timestamp": "2025-11-30T00:00:00.000Z",
|
|
2526
2496
|
"extractedData": {
|
|
2527
|
-
"identity": "TYPE-
|
|
2528
|
-
"name": "
|
|
2497
|
+
"identity": "TYPE-RunnableStrategyStatus",
|
|
2498
|
+
"name": "RunnableStrategyStatus",
|
|
2529
2499
|
"description": "dummy-description",
|
|
2530
2500
|
"resourceFormatRef": "FORMAT-ApplicationJson",
|
|
2531
2501
|
"extractionSchema": {
|
|
2532
|
-
"$anchor": "
|
|
2502
|
+
"$anchor": "RunnableStrategyStatus",
|
|
2533
2503
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
2534
2504
|
"type": "string",
|
|
2535
2505
|
"enum": [
|
|
@@ -2542,22 +2512,22 @@
|
|
|
2542
2512
|
}
|
|
2543
2513
|
}
|
|
2544
2514
|
},
|
|
2545
|
-
"
|
|
2546
|
-
"identity": "RESOURCE-
|
|
2515
|
+
"RunnableStrategyContext": {
|
|
2516
|
+
"identity": "RESOURCE-RunnableStrategyContext",
|
|
2547
2517
|
"resourceTypeRef": "TYPE-ResourceType",
|
|
2548
2518
|
"creationContext": {
|
|
2549
2519
|
"resourceRoleRef": "ROLE-Genesis",
|
|
2550
|
-
"executionRef": "EXECUTION-
|
|
2520
|
+
"executionRef": "EXECUTION-RunnableStrategyContext"
|
|
2551
2521
|
},
|
|
2552
2522
|
"kind": "materialized",
|
|
2553
2523
|
"timestamp": "2025-11-30T00:00:00.000Z",
|
|
2554
2524
|
"extractedData": {
|
|
2555
|
-
"identity": "TYPE-
|
|
2556
|
-
"name": "
|
|
2525
|
+
"identity": "TYPE-RunnableStrategyContext",
|
|
2526
|
+
"name": "RunnableStrategyContext",
|
|
2557
2527
|
"description": "dummy-description",
|
|
2558
2528
|
"resourceFormatRef": "FORMAT-ApplicationJson",
|
|
2559
2529
|
"extractionSchema": {
|
|
2560
|
-
"$anchor": "
|
|
2530
|
+
"$anchor": "RunnableStrategyContext",
|
|
2561
2531
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
2562
2532
|
"type": "object",
|
|
2563
2533
|
"required": [
|
|
@@ -2565,7 +2535,7 @@
|
|
|
2565
2535
|
],
|
|
2566
2536
|
"properties": {
|
|
2567
2537
|
"status": {
|
|
2568
|
-
"$ref": "#/$defs/
|
|
2538
|
+
"$ref": "#/$defs/RunnableStrategyStatus"
|
|
2569
2539
|
},
|
|
2570
2540
|
"startedAt": {
|
|
2571
2541
|
"$ref": "#/$defs/Timestamp"
|
|
@@ -2656,43 +2626,42 @@
|
|
|
2656
2626
|
"strategyThreadMap": {
|
|
2657
2627
|
"$ref": "#/$defs/StrategyThreadMap"
|
|
2658
2628
|
}
|
|
2659
|
-
}
|
|
2660
|
-
"unevaluatedProperties": false
|
|
2629
|
+
}
|
|
2661
2630
|
}
|
|
2662
2631
|
}
|
|
2663
2632
|
},
|
|
2664
|
-
"
|
|
2665
|
-
"identity": "RESOURCE-
|
|
2633
|
+
"RunnableStrategy": {
|
|
2634
|
+
"identity": "RESOURCE-RunnableStrategy",
|
|
2666
2635
|
"resourceTypeRef": "TYPE-ResourceType",
|
|
2667
2636
|
"creationContext": {
|
|
2668
2637
|
"resourceRoleRef": "ROLE-Genesis",
|
|
2669
|
-
"executionRef": "EXECUTION-
|
|
2638
|
+
"executionRef": "EXECUTION-RunnableStrategy"
|
|
2670
2639
|
},
|
|
2671
2640
|
"kind": "materialized",
|
|
2672
2641
|
"timestamp": "2025-11-30T00:00:00.000Z",
|
|
2673
2642
|
"extractedData": {
|
|
2674
|
-
"identity": "TYPE-
|
|
2675
|
-
"name": "
|
|
2643
|
+
"identity": "TYPE-RunnableStrategy",
|
|
2644
|
+
"name": "RunnableStrategy",
|
|
2676
2645
|
"description": "dummy-description",
|
|
2677
2646
|
"resourceFormatRef": "FORMAT-ApplicationJson",
|
|
2678
2647
|
"extractionSchema": {
|
|
2679
|
-
"$anchor": "
|
|
2648
|
+
"$anchor": "RunnableStrategy",
|
|
2680
2649
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
2681
2650
|
"type": "object",
|
|
2682
2651
|
"required": [
|
|
2683
2652
|
"identity",
|
|
2684
2653
|
"statefulStrategyRef",
|
|
2685
|
-
"
|
|
2654
|
+
"runnableStrategyContext"
|
|
2686
2655
|
],
|
|
2687
2656
|
"properties": {
|
|
2688
2657
|
"identity": {
|
|
2689
|
-
"$ref": "#/$defs/
|
|
2658
|
+
"$ref": "#/$defs/RunnableStrategyIdentity"
|
|
2690
2659
|
},
|
|
2691
2660
|
"statefulStrategyRef": {
|
|
2692
2661
|
"$ref": "#/$defs/StatefulStrategyIdentity"
|
|
2693
2662
|
},
|
|
2694
|
-
"
|
|
2695
|
-
"$ref": "#/$defs/
|
|
2663
|
+
"runnableStrategyContext": {
|
|
2664
|
+
"$ref": "#/$defs/RunnableStrategyContext"
|
|
2696
2665
|
}
|
|
2697
2666
|
},
|
|
2698
2667
|
"allOf": [
|
|
@@ -2701,7 +2670,7 @@
|
|
|
2701
2670
|
"$ref": "#/$defs/StrategyThreadMapWrapper"
|
|
2702
2671
|
},
|
|
2703
2672
|
{
|
|
2704
|
-
"$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.",
|
|
2705
2674
|
"$ref": "#/$defs/StrategyStateWrapper"
|
|
2706
2675
|
}
|
|
2707
2676
|
],
|
|
@@ -2730,16 +2699,6 @@
|
|
|
2730
2699
|
"$comment": "Shared delta payload for strategy state updates; used both as standalone updates and embedded within run events.",
|
|
2731
2700
|
"properties": {
|
|
2732
2701
|
"strategyStateUpdate": {
|
|
2733
|
-
"type": "object",
|
|
2734
|
-
"propertyNames": {
|
|
2735
|
-
"$ref": "#/$defs/ExecutionIdentity"
|
|
2736
|
-
},
|
|
2737
|
-
"additionalProperties": {
|
|
2738
|
-
"$ref": "#/$defs/ExecutionSocketMaterialized"
|
|
2739
|
-
},
|
|
2740
|
-
"unevaluatedProperties": false
|
|
2741
|
-
},
|
|
2742
|
-
"strategyStateUpdateWide": {
|
|
2743
2702
|
"type": "object",
|
|
2744
2703
|
"propertyNames": {
|
|
2745
2704
|
"$ref": "#/$defs/ExecutionIdentity"
|
|
@@ -2753,35 +2712,35 @@
|
|
|
2753
2712
|
}
|
|
2754
2713
|
}
|
|
2755
2714
|
},
|
|
2756
|
-
"
|
|
2757
|
-
"identity": "RESOURCE-
|
|
2715
|
+
"RunnableStrategyUpdate": {
|
|
2716
|
+
"identity": "RESOURCE-RunnableStrategyUpdate",
|
|
2758
2717
|
"resourceTypeRef": "TYPE-ResourceType",
|
|
2759
2718
|
"creationContext": {
|
|
2760
2719
|
"resourceRoleRef": "ROLE-Genesis",
|
|
2761
|
-
"executionRef": "EXECUTION-
|
|
2720
|
+
"executionRef": "EXECUTION-RunnableStrategyUpdate"
|
|
2762
2721
|
},
|
|
2763
2722
|
"kind": "materialized",
|
|
2764
2723
|
"timestamp": "2025-11-30T00:00:00.000Z",
|
|
2765
2724
|
"extractedData": {
|
|
2766
|
-
"identity": "TYPE-
|
|
2767
|
-
"name": "
|
|
2725
|
+
"identity": "TYPE-RunnableStrategyUpdate",
|
|
2726
|
+
"name": "RunnableStrategyUpdate",
|
|
2768
2727
|
"description": "dummy-description",
|
|
2769
2728
|
"resourceFormatRef": "FORMAT-ApplicationJson",
|
|
2770
2729
|
"extractionSchema": {
|
|
2771
|
-
"$anchor": "
|
|
2730
|
+
"$anchor": "RunnableStrategyUpdate",
|
|
2772
2731
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
2773
2732
|
"type": "object",
|
|
2774
2733
|
"required": [
|
|
2775
|
-
"
|
|
2734
|
+
"runnableStrategyRef",
|
|
2776
2735
|
"strategyStateUpdate"
|
|
2777
2736
|
],
|
|
2778
2737
|
"properties": {
|
|
2779
|
-
"
|
|
2780
|
-
"$ref": "#/$defs/
|
|
2738
|
+
"runnableStrategyRef": {
|
|
2739
|
+
"$ref": "#/$defs/RunnableStrategyIdentity"
|
|
2781
2740
|
},
|
|
2782
|
-
"
|
|
2783
|
-
"$comment": "Optional embedded snapshot;
|
|
2784
|
-
"$ref": "#/$defs/
|
|
2741
|
+
"runnableStrategy": {
|
|
2742
|
+
"$comment": "Optional embedded snapshot; runnableStrategyRef remains the canonical pointer.",
|
|
2743
|
+
"$ref": "#/$defs/RunnableStrategy"
|
|
2785
2744
|
}
|
|
2786
2745
|
},
|
|
2787
2746
|
"allOf": [
|
|
@@ -3005,7 +2964,7 @@
|
|
|
3005
2964
|
"type": "object",
|
|
3006
2965
|
"required": [
|
|
3007
2966
|
"kind",
|
|
3008
|
-
"
|
|
2967
|
+
"runnableStrategyRef",
|
|
3009
2968
|
"strategyThreadRef",
|
|
3010
2969
|
"createdAt",
|
|
3011
2970
|
"nodeName",
|
|
@@ -3015,8 +2974,8 @@
|
|
|
3015
2974
|
"kind": {
|
|
3016
2975
|
"$ref": "#/$defs/RunEventKind"
|
|
3017
2976
|
},
|
|
3018
|
-
"
|
|
3019
|
-
"$ref": "#/$defs/
|
|
2977
|
+
"runnableStrategyRef": {
|
|
2978
|
+
"$ref": "#/$defs/RunnableStrategyIdentity"
|
|
3020
2979
|
},
|
|
3021
2980
|
"strategyThreadRef": {
|
|
3022
2981
|
"$ref": "#/$defs/StrategyThreadIdentity"
|
|
@@ -3067,14 +3026,14 @@
|
|
|
3067
3026
|
{
|
|
3068
3027
|
"type": "object",
|
|
3069
3028
|
"required": [
|
|
3070
|
-
"
|
|
3029
|
+
"runnableStrategySeed"
|
|
3071
3030
|
],
|
|
3072
3031
|
"properties": {
|
|
3073
3032
|
"kind": {
|
|
3074
3033
|
"const": "graph_start"
|
|
3075
3034
|
},
|
|
3076
|
-
"
|
|
3077
|
-
"$ref": "#/$defs/
|
|
3035
|
+
"runnableStrategySeed": {
|
|
3036
|
+
"$ref": "#/$defs/RunnableStrategy"
|
|
3078
3037
|
}
|
|
3079
3038
|
}
|
|
3080
3039
|
}
|
|
@@ -3237,9 +3196,9 @@
|
|
|
3237
3196
|
"runEvents"
|
|
3238
3197
|
],
|
|
3239
3198
|
"properties": {
|
|
3240
|
-
"
|
|
3199
|
+
"runnableStrategyRef": {
|
|
3241
3200
|
"$comment": "Optional; derived from the first event but useful for indexing.",
|
|
3242
|
-
"$ref": "#/$defs/
|
|
3201
|
+
"$ref": "#/$defs/RunnableStrategyIdentity"
|
|
3243
3202
|
},
|
|
3244
3203
|
"strategyThreadRef": {
|
|
3245
3204
|
"$comment": "Optional; derived from the first event but useful for indexing.",
|
|
@@ -3255,7 +3214,8 @@
|
|
|
3255
3214
|
"$ref": "#/$defs/RunEvent"
|
|
3256
3215
|
}
|
|
3257
3216
|
}
|
|
3258
|
-
}
|
|
3217
|
+
},
|
|
3218
|
+
"unevaluatedProperties": false
|
|
3259
3219
|
}
|
|
3260
3220
|
}
|
|
3261
3221
|
}
|
|
@@ -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.",
|
|
@@ -1534,8 +1522,103 @@
|
|
|
1534
1522
|
"required": [
|
|
1535
1523
|
"runEvents"
|
|
1536
1524
|
],
|
|
1525
|
+
"unevaluatedProperties": false,
|
|
1537
1526
|
"$anchor": "RunRecording"
|
|
1538
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
|
+
},
|
|
1539
1622
|
"StatefulStrategy": {
|
|
1540
1623
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1541
1624
|
"type": "object",
|
|
@@ -1603,7 +1686,6 @@
|
|
|
1603
1686
|
"required": [
|
|
1604
1687
|
"statelessStrategy"
|
|
1605
1688
|
],
|
|
1606
|
-
"unevaluatedProperties": false,
|
|
1607
1689
|
"$anchor": "StatelessStrategyWrapper"
|
|
1608
1690
|
},
|
|
1609
1691
|
"Step": {
|
|
@@ -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,16 +1743,6 @@
|
|
|
1755
1743
|
"type": "object",
|
|
1756
1744
|
"properties": {
|
|
1757
1745
|
"strategyStateUpdate": {
|
|
1758
|
-
"type": "object",
|
|
1759
|
-
"additionalProperties": {
|
|
1760
|
-
"$ref": "#/$defs/ExecutionSocketMaterialized"
|
|
1761
|
-
},
|
|
1762
|
-
"unevaluatedProperties": false,
|
|
1763
|
-
"propertyNames": {
|
|
1764
|
-
"$ref": "#/$defs/ExecutionIdentity"
|
|
1765
|
-
}
|
|
1766
|
-
},
|
|
1767
|
-
"strategyStateUpdateWide": {
|
|
1768
1746
|
"type": "object",
|
|
1769
1747
|
"additionalProperties": {
|
|
1770
1748
|
"$ref": "#/$defs/ExecutionSocket"
|
|
@@ -1789,7 +1767,6 @@
|
|
|
1789
1767
|
"required": [
|
|
1790
1768
|
"strategyState"
|
|
1791
1769
|
],
|
|
1792
|
-
"unevaluatedProperties": false,
|
|
1793
1770
|
"$anchor": "StrategyStateWrapper"
|
|
1794
1771
|
},
|
|
1795
1772
|
"StrategyThreadIdentity": {
|
|
@@ -1824,7 +1801,6 @@
|
|
|
1824
1801
|
"required": [
|
|
1825
1802
|
"strategyThreadMap"
|
|
1826
1803
|
],
|
|
1827
|
-
"unevaluatedProperties": false,
|
|
1828
1804
|
"$anchor": "StrategyThreadMapWrapper"
|
|
1829
1805
|
},
|
|
1830
1806
|
"TickRunEvent": {
|