@toolproof-npm/schema 0.1.61 → 0.1.62
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/resourceTypes/Genesis.json +167 -4
- package/dist/genesis/generated/resources/Genesis.json +247 -4
- package/dist/genesis/generated/schemas/Genesis.json +120 -5
- package/dist/genesis/generated/schemas/StatefulStrategy.json +17 -5
- package/dist/genesis/generated/schemas/StrategyRun.d.ts +2 -0
- package/dist/genesis/generated/schemas/StrategyRun.js +2 -0
- package/dist/genesis/generated/schemas/StrategyRun.json +685 -0
- package/dist/genesis/generated/types/ResourceTypeGenesis.d.ts +8 -0
- package/dist/genesis/generated/types/Resource_StatefulStrategy.d.ts +3 -0
- package/dist/genesis/generated/types/Resource_StatefulStrategy.js +1 -0
- package/dist/genesis/generated/types/Resource_StrategyRun.d.ts +3 -0
- package/dist/genesis/generated/types/Resource_StrategyRun.js +1 -0
- package/dist/genesis/generated/types/types.d.ts +229 -4
- package/package.json +2 -2
|
@@ -1662,6 +1662,25 @@
|
|
|
1662
1662
|
"unevaluatedProperties": false
|
|
1663
1663
|
}
|
|
1664
1664
|
},
|
|
1665
|
+
"StatelessStrategyWrapper": {
|
|
1666
|
+
"identity": "TYPE-StatelessStrategyWrapper",
|
|
1667
|
+
"name": "StatelessStrategyWrapper",
|
|
1668
|
+
"description": "dummy-description",
|
|
1669
|
+
"resourceFormatRef": "FORMAT-ApplicationJson",
|
|
1670
|
+
"extractionSchema": {
|
|
1671
|
+
"$anchor": "StatelessStrategyWrapper",
|
|
1672
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1673
|
+
"type": "object",
|
|
1674
|
+
"required": [
|
|
1675
|
+
"statelessStrategy"
|
|
1676
|
+
],
|
|
1677
|
+
"properties": {
|
|
1678
|
+
"statelessStrategy": {
|
|
1679
|
+
"$ref": "#/$defs/StatelessStrategy"
|
|
1680
|
+
}
|
|
1681
|
+
}
|
|
1682
|
+
}
|
|
1683
|
+
},
|
|
1665
1684
|
"StrategyState": {
|
|
1666
1685
|
"identity": "TYPE-StrategyState",
|
|
1667
1686
|
"name": "StrategyState",
|
|
@@ -1738,23 +1757,167 @@
|
|
|
1738
1757
|
"$anchor": "StatefulStrategy",
|
|
1739
1758
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1740
1759
|
"type": "object",
|
|
1760
|
+
"required": [
|
|
1761
|
+
"identity"
|
|
1762
|
+
],
|
|
1763
|
+
"properties": {
|
|
1764
|
+
"identity": {
|
|
1765
|
+
"$ref": "#/$defs/StatefulStrategyIdentity"
|
|
1766
|
+
}
|
|
1767
|
+
},
|
|
1768
|
+
"allOf": [
|
|
1769
|
+
{
|
|
1770
|
+
"$ref": "#/$defs/StatelessStrategyWrapper"
|
|
1771
|
+
},
|
|
1772
|
+
{
|
|
1773
|
+
"$ref": "#/$defs/StrategyStateWrapper"
|
|
1774
|
+
}
|
|
1775
|
+
]
|
|
1776
|
+
}
|
|
1777
|
+
},
|
|
1778
|
+
"StatefulStrategyWrapper": {
|
|
1779
|
+
"identity": "TYPE-StatefulStrategyWrapper",
|
|
1780
|
+
"name": "StatefulStrategyWrapper",
|
|
1781
|
+
"description": "dummy-description",
|
|
1782
|
+
"resourceFormatRef": "FORMAT-ApplicationJson",
|
|
1783
|
+
"extractionSchema": {
|
|
1784
|
+
"$anchor": "StatefulStrategyWrapper",
|
|
1785
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1786
|
+
"type": "object",
|
|
1787
|
+
"required": [
|
|
1788
|
+
"statefulStrategy"
|
|
1789
|
+
],
|
|
1790
|
+
"properties": {
|
|
1791
|
+
"statefulStrategy": {
|
|
1792
|
+
"$ref": "#/$defs/StatefulStrategy"
|
|
1793
|
+
}
|
|
1794
|
+
}
|
|
1795
|
+
}
|
|
1796
|
+
},
|
|
1797
|
+
"StrategyRunIdentity": {
|
|
1798
|
+
"identity": "TYPE-StrategyRunIdentity",
|
|
1799
|
+
"name": "StrategyRunIdentity",
|
|
1800
|
+
"description": "dummy-description",
|
|
1801
|
+
"resourceFormatRef": "FORMAT-ApplicationJson",
|
|
1802
|
+
"extractionSchema": {
|
|
1803
|
+
"$anchor": "StrategyRunIdentity",
|
|
1804
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1805
|
+
"type": "string",
|
|
1806
|
+
"pattern": "^STRATEGY_RUN-.+$"
|
|
1807
|
+
}
|
|
1808
|
+
},
|
|
1809
|
+
"StrategyRunStatus": {
|
|
1810
|
+
"identity": "TYPE-StrategyRunStatus",
|
|
1811
|
+
"name": "StrategyRunStatus",
|
|
1812
|
+
"description": "dummy-description",
|
|
1813
|
+
"resourceFormatRef": "FORMAT-ApplicationJson",
|
|
1814
|
+
"extractionSchema": {
|
|
1815
|
+
"$anchor": "StrategyRunStatus",
|
|
1816
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1817
|
+
"type": "string",
|
|
1818
|
+
"enum": [
|
|
1819
|
+
"pending",
|
|
1820
|
+
"running",
|
|
1821
|
+
"completed",
|
|
1822
|
+
"failed",
|
|
1823
|
+
"cancelled"
|
|
1824
|
+
]
|
|
1825
|
+
}
|
|
1826
|
+
},
|
|
1827
|
+
"StrategyRunContext": {
|
|
1828
|
+
"identity": "TYPE-StrategyRunContext",
|
|
1829
|
+
"name": "StrategyRunContext",
|
|
1830
|
+
"description": "dummy-description",
|
|
1831
|
+
"resourceFormatRef": "FORMAT-ApplicationJson",
|
|
1832
|
+
"extractionSchema": {
|
|
1833
|
+
"$anchor": "StrategyRunContext",
|
|
1834
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1835
|
+
"type": "object",
|
|
1836
|
+
"required": [
|
|
1837
|
+
"status"
|
|
1838
|
+
],
|
|
1839
|
+
"properties": {
|
|
1840
|
+
"status": {
|
|
1841
|
+
"$ref": "#/$defs/StrategyRunStatus"
|
|
1842
|
+
},
|
|
1843
|
+
"startedAt": {
|
|
1844
|
+
"$ref": "#/$defs/Timestamp"
|
|
1845
|
+
},
|
|
1846
|
+
"completedAt": {
|
|
1847
|
+
"$ref": "#/$defs/Timestamp"
|
|
1848
|
+
}
|
|
1849
|
+
},
|
|
1850
|
+
"unevaluatedProperties": false
|
|
1851
|
+
}
|
|
1852
|
+
},
|
|
1853
|
+
"StrategyThreadIdentity": {
|
|
1854
|
+
"identity": "TYPE-StrategyThreadIdentity",
|
|
1855
|
+
"name": "StrategyThreadIdentity",
|
|
1856
|
+
"description": "dummy-description",
|
|
1857
|
+
"resourceFormatRef": "FORMAT-ApplicationJson",
|
|
1858
|
+
"extractionSchema": {
|
|
1859
|
+
"$anchor": "StrategyThreadIdentity",
|
|
1860
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1861
|
+
"type": "string",
|
|
1862
|
+
"pattern": "^STRATEGY_THREAD-.+$"
|
|
1863
|
+
}
|
|
1864
|
+
},
|
|
1865
|
+
"StrategyThreadMap": {
|
|
1866
|
+
"identity": "TYPE-StrategyThreadMap",
|
|
1867
|
+
"name": "StrategyThreadMap",
|
|
1868
|
+
"description": "dummy-description",
|
|
1869
|
+
"resourceFormatRef": "FORMAT-ApplicationJson",
|
|
1870
|
+
"extractionSchema": {
|
|
1871
|
+
"$anchor": "StrategyThreadMap",
|
|
1872
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1873
|
+
"type": "object",
|
|
1874
|
+
"propertyNames": {
|
|
1875
|
+
"$ref": "#/$defs/StrategyThreadIdentity"
|
|
1876
|
+
},
|
|
1877
|
+
"additionalProperties": {
|
|
1878
|
+
"items": {
|
|
1879
|
+
"$ref": "#/$defs/Step"
|
|
1880
|
+
}
|
|
1881
|
+
},
|
|
1882
|
+
"$comment": "Each thread contains an array of steps, allowing for sequential execution within a thread while supporting parallel execution across multiple threads."
|
|
1883
|
+
}
|
|
1884
|
+
},
|
|
1885
|
+
"StrategyRun": {
|
|
1886
|
+
"identity": "TYPE-StrategyRun",
|
|
1887
|
+
"name": "StrategyRun",
|
|
1888
|
+
"description": "dummy-description",
|
|
1889
|
+
"resourceFormatRef": "FORMAT-ApplicationJson",
|
|
1890
|
+
"extractionSchema": {
|
|
1891
|
+
"$anchor": "StrategyRun",
|
|
1892
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1893
|
+
"type": "object",
|
|
1741
1894
|
"required": [
|
|
1742
1895
|
"identity",
|
|
1743
|
-
"
|
|
1896
|
+
"statefulStrategyRef",
|
|
1897
|
+
"strategyRunContext"
|
|
1744
1898
|
],
|
|
1745
1899
|
"properties": {
|
|
1746
1900
|
"identity": {
|
|
1901
|
+
"$ref": "#/$defs/StrategyRunIdentity"
|
|
1902
|
+
},
|
|
1903
|
+
"statefulStrategyRef": {
|
|
1747
1904
|
"$ref": "#/$defs/StatefulStrategyIdentity"
|
|
1748
1905
|
},
|
|
1749
|
-
"
|
|
1750
|
-
"$ref": "#/$defs/
|
|
1906
|
+
"strategyRunContext": {
|
|
1907
|
+
"$ref": "#/$defs/StrategyRunContext"
|
|
1751
1908
|
}
|
|
1752
1909
|
},
|
|
1753
1910
|
"allOf": [
|
|
1754
1911
|
{
|
|
1912
|
+
"$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.",
|
|
1913
|
+
"$ref": "#/$defs/StrategyThreadMap"
|
|
1914
|
+
},
|
|
1915
|
+
{
|
|
1916
|
+
"$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.",
|
|
1755
1917
|
"$ref": "#/$defs/StrategyStateWrapper"
|
|
1756
1918
|
}
|
|
1757
|
-
]
|
|
1919
|
+
],
|
|
1920
|
+
"unevaluatedProperties": false
|
|
1758
1921
|
}
|
|
1759
1922
|
}
|
|
1760
1923
|
}
|
|
@@ -2204,6 +2204,35 @@
|
|
|
2204
2204
|
}
|
|
2205
2205
|
}
|
|
2206
2206
|
},
|
|
2207
|
+
"StatelessStrategyWrapper": {
|
|
2208
|
+
"identity": "RESOURCE-StatelessStrategyWrapper",
|
|
2209
|
+
"resourceTypeRef": "TYPE-ResourceType",
|
|
2210
|
+
"creationContext": {
|
|
2211
|
+
"resourceRoleRef": "ROLE-Genesis",
|
|
2212
|
+
"executionRef": "EXECUTION-StatelessStrategyWrapper"
|
|
2213
|
+
},
|
|
2214
|
+
"kind": "materialized",
|
|
2215
|
+
"timestamp": "2025-11-30T00:00:00.000Z",
|
|
2216
|
+
"extractedData": {
|
|
2217
|
+
"identity": "TYPE-StatelessStrategyWrapper",
|
|
2218
|
+
"name": "StatelessStrategyWrapper",
|
|
2219
|
+
"description": "dummy-description",
|
|
2220
|
+
"resourceFormatRef": "FORMAT-ApplicationJson",
|
|
2221
|
+
"extractionSchema": {
|
|
2222
|
+
"$anchor": "StatelessStrategyWrapper",
|
|
2223
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
2224
|
+
"type": "object",
|
|
2225
|
+
"required": [
|
|
2226
|
+
"statelessStrategy"
|
|
2227
|
+
],
|
|
2228
|
+
"properties": {
|
|
2229
|
+
"statelessStrategy": {
|
|
2230
|
+
"$ref": "#/$defs/StatelessStrategy"
|
|
2231
|
+
}
|
|
2232
|
+
}
|
|
2233
|
+
}
|
|
2234
|
+
}
|
|
2235
|
+
},
|
|
2207
2236
|
"StrategyState": {
|
|
2208
2237
|
"identity": "RESOURCE-StrategyState",
|
|
2209
2238
|
"resourceTypeRef": "TYPE-ResourceType",
|
|
@@ -2319,23 +2348,237 @@
|
|
|
2319
2348
|
"$anchor": "StatefulStrategy",
|
|
2320
2349
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
2321
2350
|
"type": "object",
|
|
2351
|
+
"required": [
|
|
2352
|
+
"identity"
|
|
2353
|
+
],
|
|
2354
|
+
"properties": {
|
|
2355
|
+
"identity": {
|
|
2356
|
+
"$ref": "#/$defs/StatefulStrategyIdentity"
|
|
2357
|
+
}
|
|
2358
|
+
},
|
|
2359
|
+
"allOf": [
|
|
2360
|
+
{
|
|
2361
|
+
"$ref": "#/$defs/StatelessStrategyWrapper"
|
|
2362
|
+
},
|
|
2363
|
+
{
|
|
2364
|
+
"$ref": "#/$defs/StrategyStateWrapper"
|
|
2365
|
+
}
|
|
2366
|
+
]
|
|
2367
|
+
}
|
|
2368
|
+
}
|
|
2369
|
+
},
|
|
2370
|
+
"StatefulStrategyWrapper": {
|
|
2371
|
+
"identity": "RESOURCE-StatefulStrategyWrapper",
|
|
2372
|
+
"resourceTypeRef": "TYPE-ResourceType",
|
|
2373
|
+
"creationContext": {
|
|
2374
|
+
"resourceRoleRef": "ROLE-Genesis",
|
|
2375
|
+
"executionRef": "EXECUTION-StatefulStrategyWrapper"
|
|
2376
|
+
},
|
|
2377
|
+
"kind": "materialized",
|
|
2378
|
+
"timestamp": "2025-11-30T00:00:00.000Z",
|
|
2379
|
+
"extractedData": {
|
|
2380
|
+
"identity": "TYPE-StatefulStrategyWrapper",
|
|
2381
|
+
"name": "StatefulStrategyWrapper",
|
|
2382
|
+
"description": "dummy-description",
|
|
2383
|
+
"resourceFormatRef": "FORMAT-ApplicationJson",
|
|
2384
|
+
"extractionSchema": {
|
|
2385
|
+
"$anchor": "StatefulStrategyWrapper",
|
|
2386
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
2387
|
+
"type": "object",
|
|
2388
|
+
"required": [
|
|
2389
|
+
"statefulStrategy"
|
|
2390
|
+
],
|
|
2391
|
+
"properties": {
|
|
2392
|
+
"statefulStrategy": {
|
|
2393
|
+
"$ref": "#/$defs/StatefulStrategy"
|
|
2394
|
+
}
|
|
2395
|
+
}
|
|
2396
|
+
}
|
|
2397
|
+
}
|
|
2398
|
+
},
|
|
2399
|
+
"StrategyRunIdentity": {
|
|
2400
|
+
"identity": "RESOURCE-StrategyRunIdentity",
|
|
2401
|
+
"resourceTypeRef": "TYPE-ResourceType",
|
|
2402
|
+
"creationContext": {
|
|
2403
|
+
"resourceRoleRef": "ROLE-Genesis",
|
|
2404
|
+
"executionRef": "EXECUTION-StrategyRunIdentity"
|
|
2405
|
+
},
|
|
2406
|
+
"kind": "materialized",
|
|
2407
|
+
"timestamp": "2025-11-30T00:00:00.000Z",
|
|
2408
|
+
"extractedData": {
|
|
2409
|
+
"identity": "TYPE-StrategyRunIdentity",
|
|
2410
|
+
"name": "StrategyRunIdentity",
|
|
2411
|
+
"description": "dummy-description",
|
|
2412
|
+
"resourceFormatRef": "FORMAT-ApplicationJson",
|
|
2413
|
+
"extractionSchema": {
|
|
2414
|
+
"$anchor": "StrategyRunIdentity",
|
|
2415
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
2416
|
+
"type": "string",
|
|
2417
|
+
"pattern": "^STRATEGY_RUN-.+$"
|
|
2418
|
+
}
|
|
2419
|
+
}
|
|
2420
|
+
},
|
|
2421
|
+
"StrategyRunStatus": {
|
|
2422
|
+
"identity": "RESOURCE-StrategyRunStatus",
|
|
2423
|
+
"resourceTypeRef": "TYPE-ResourceType",
|
|
2424
|
+
"creationContext": {
|
|
2425
|
+
"resourceRoleRef": "ROLE-Genesis",
|
|
2426
|
+
"executionRef": "EXECUTION-StrategyRunStatus"
|
|
2427
|
+
},
|
|
2428
|
+
"kind": "materialized",
|
|
2429
|
+
"timestamp": "2025-11-30T00:00:00.000Z",
|
|
2430
|
+
"extractedData": {
|
|
2431
|
+
"identity": "TYPE-StrategyRunStatus",
|
|
2432
|
+
"name": "StrategyRunStatus",
|
|
2433
|
+
"description": "dummy-description",
|
|
2434
|
+
"resourceFormatRef": "FORMAT-ApplicationJson",
|
|
2435
|
+
"extractionSchema": {
|
|
2436
|
+
"$anchor": "StrategyRunStatus",
|
|
2437
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
2438
|
+
"type": "string",
|
|
2439
|
+
"enum": [
|
|
2440
|
+
"pending",
|
|
2441
|
+
"running",
|
|
2442
|
+
"completed",
|
|
2443
|
+
"failed",
|
|
2444
|
+
"cancelled"
|
|
2445
|
+
]
|
|
2446
|
+
}
|
|
2447
|
+
}
|
|
2448
|
+
},
|
|
2449
|
+
"StrategyRunContext": {
|
|
2450
|
+
"identity": "RESOURCE-StrategyRunContext",
|
|
2451
|
+
"resourceTypeRef": "TYPE-ResourceType",
|
|
2452
|
+
"creationContext": {
|
|
2453
|
+
"resourceRoleRef": "ROLE-Genesis",
|
|
2454
|
+
"executionRef": "EXECUTION-StrategyRunContext"
|
|
2455
|
+
},
|
|
2456
|
+
"kind": "materialized",
|
|
2457
|
+
"timestamp": "2025-11-30T00:00:00.000Z",
|
|
2458
|
+
"extractedData": {
|
|
2459
|
+
"identity": "TYPE-StrategyRunContext",
|
|
2460
|
+
"name": "StrategyRunContext",
|
|
2461
|
+
"description": "dummy-description",
|
|
2462
|
+
"resourceFormatRef": "FORMAT-ApplicationJson",
|
|
2463
|
+
"extractionSchema": {
|
|
2464
|
+
"$anchor": "StrategyRunContext",
|
|
2465
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
2466
|
+
"type": "object",
|
|
2467
|
+
"required": [
|
|
2468
|
+
"status"
|
|
2469
|
+
],
|
|
2470
|
+
"properties": {
|
|
2471
|
+
"status": {
|
|
2472
|
+
"$ref": "#/$defs/StrategyRunStatus"
|
|
2473
|
+
},
|
|
2474
|
+
"startedAt": {
|
|
2475
|
+
"$ref": "#/$defs/Timestamp"
|
|
2476
|
+
},
|
|
2477
|
+
"completedAt": {
|
|
2478
|
+
"$ref": "#/$defs/Timestamp"
|
|
2479
|
+
}
|
|
2480
|
+
},
|
|
2481
|
+
"unevaluatedProperties": false
|
|
2482
|
+
}
|
|
2483
|
+
}
|
|
2484
|
+
},
|
|
2485
|
+
"StrategyThreadIdentity": {
|
|
2486
|
+
"identity": "RESOURCE-StrategyThreadIdentity",
|
|
2487
|
+
"resourceTypeRef": "TYPE-ResourceType",
|
|
2488
|
+
"creationContext": {
|
|
2489
|
+
"resourceRoleRef": "ROLE-Genesis",
|
|
2490
|
+
"executionRef": "EXECUTION-StrategyThreadIdentity"
|
|
2491
|
+
},
|
|
2492
|
+
"kind": "materialized",
|
|
2493
|
+
"timestamp": "2025-11-30T00:00:00.000Z",
|
|
2494
|
+
"extractedData": {
|
|
2495
|
+
"identity": "TYPE-StrategyThreadIdentity",
|
|
2496
|
+
"name": "StrategyThreadIdentity",
|
|
2497
|
+
"description": "dummy-description",
|
|
2498
|
+
"resourceFormatRef": "FORMAT-ApplicationJson",
|
|
2499
|
+
"extractionSchema": {
|
|
2500
|
+
"$anchor": "StrategyThreadIdentity",
|
|
2501
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
2502
|
+
"type": "string",
|
|
2503
|
+
"pattern": "^STRATEGY_THREAD-.+$"
|
|
2504
|
+
}
|
|
2505
|
+
}
|
|
2506
|
+
},
|
|
2507
|
+
"StrategyThreadMap": {
|
|
2508
|
+
"identity": "RESOURCE-StrategyThreadMap",
|
|
2509
|
+
"resourceTypeRef": "TYPE-ResourceType",
|
|
2510
|
+
"creationContext": {
|
|
2511
|
+
"resourceRoleRef": "ROLE-Genesis",
|
|
2512
|
+
"executionRef": "EXECUTION-StrategyThreadMap"
|
|
2513
|
+
},
|
|
2514
|
+
"kind": "materialized",
|
|
2515
|
+
"timestamp": "2025-11-30T00:00:00.000Z",
|
|
2516
|
+
"extractedData": {
|
|
2517
|
+
"identity": "TYPE-StrategyThreadMap",
|
|
2518
|
+
"name": "StrategyThreadMap",
|
|
2519
|
+
"description": "dummy-description",
|
|
2520
|
+
"resourceFormatRef": "FORMAT-ApplicationJson",
|
|
2521
|
+
"extractionSchema": {
|
|
2522
|
+
"$anchor": "StrategyThreadMap",
|
|
2523
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
2524
|
+
"type": "object",
|
|
2525
|
+
"propertyNames": {
|
|
2526
|
+
"$ref": "#/$defs/StrategyThreadIdentity"
|
|
2527
|
+
},
|
|
2528
|
+
"additionalProperties": {
|
|
2529
|
+
"items": {
|
|
2530
|
+
"$ref": "#/$defs/Step"
|
|
2531
|
+
}
|
|
2532
|
+
},
|
|
2533
|
+
"$comment": "Each thread contains an array of steps, allowing for sequential execution within a thread while supporting parallel execution across multiple threads."
|
|
2534
|
+
}
|
|
2535
|
+
}
|
|
2536
|
+
},
|
|
2537
|
+
"StrategyRun": {
|
|
2538
|
+
"identity": "RESOURCE-StrategyRun",
|
|
2539
|
+
"resourceTypeRef": "TYPE-ResourceType",
|
|
2540
|
+
"creationContext": {
|
|
2541
|
+
"resourceRoleRef": "ROLE-Genesis",
|
|
2542
|
+
"executionRef": "EXECUTION-StrategyRun"
|
|
2543
|
+
},
|
|
2544
|
+
"kind": "materialized",
|
|
2545
|
+
"timestamp": "2025-11-30T00:00:00.000Z",
|
|
2546
|
+
"extractedData": {
|
|
2547
|
+
"identity": "TYPE-StrategyRun",
|
|
2548
|
+
"name": "StrategyRun",
|
|
2549
|
+
"description": "dummy-description",
|
|
2550
|
+
"resourceFormatRef": "FORMAT-ApplicationJson",
|
|
2551
|
+
"extractionSchema": {
|
|
2552
|
+
"$anchor": "StrategyRun",
|
|
2553
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
2554
|
+
"type": "object",
|
|
2322
2555
|
"required": [
|
|
2323
2556
|
"identity",
|
|
2324
|
-
"
|
|
2557
|
+
"statefulStrategyRef",
|
|
2558
|
+
"strategyRunContext"
|
|
2325
2559
|
],
|
|
2326
2560
|
"properties": {
|
|
2327
2561
|
"identity": {
|
|
2562
|
+
"$ref": "#/$defs/StrategyRunIdentity"
|
|
2563
|
+
},
|
|
2564
|
+
"statefulStrategyRef": {
|
|
2328
2565
|
"$ref": "#/$defs/StatefulStrategyIdentity"
|
|
2329
2566
|
},
|
|
2330
|
-
"
|
|
2331
|
-
"$ref": "#/$defs/
|
|
2567
|
+
"strategyRunContext": {
|
|
2568
|
+
"$ref": "#/$defs/StrategyRunContext"
|
|
2332
2569
|
}
|
|
2333
2570
|
},
|
|
2334
2571
|
"allOf": [
|
|
2335
2572
|
{
|
|
2573
|
+
"$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.",
|
|
2574
|
+
"$ref": "#/$defs/StrategyThreadMap"
|
|
2575
|
+
},
|
|
2576
|
+
{
|
|
2577
|
+
"$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.",
|
|
2336
2578
|
"$ref": "#/$defs/StrategyStateWrapper"
|
|
2337
2579
|
}
|
|
2338
|
-
]
|
|
2580
|
+
],
|
|
2581
|
+
"unevaluatedProperties": false
|
|
2339
2582
|
}
|
|
2340
2583
|
}
|
|
2341
2584
|
}
|
|
@@ -1191,6 +1191,9 @@
|
|
|
1191
1191
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1192
1192
|
"type": "object",
|
|
1193
1193
|
"allOf": [
|
|
1194
|
+
{
|
|
1195
|
+
"$ref": "#/$defs/StatelessStrategyWrapper"
|
|
1196
|
+
},
|
|
1194
1197
|
{
|
|
1195
1198
|
"$ref": "#/$defs/StrategyStateWrapper"
|
|
1196
1199
|
}
|
|
@@ -1198,14 +1201,10 @@
|
|
|
1198
1201
|
"properties": {
|
|
1199
1202
|
"identity": {
|
|
1200
1203
|
"$ref": "#/$defs/StatefulStrategyIdentity"
|
|
1201
|
-
},
|
|
1202
|
-
"statelessStrategy": {
|
|
1203
|
-
"$ref": "#/$defs/StatelessStrategy"
|
|
1204
1204
|
}
|
|
1205
1205
|
},
|
|
1206
1206
|
"required": [
|
|
1207
|
-
"identity"
|
|
1208
|
-
"statelessStrategy"
|
|
1207
|
+
"identity"
|
|
1209
1208
|
],
|
|
1210
1209
|
"$anchor": "StatefulStrategy"
|
|
1211
1210
|
},
|
|
@@ -1215,6 +1214,19 @@
|
|
|
1215
1214
|
"$anchor": "StatefulStrategyIdentity",
|
|
1216
1215
|
"pattern": "^STATEFUL_STRATEGY-.+$"
|
|
1217
1216
|
},
|
|
1217
|
+
"StatefulStrategyWrapper": {
|
|
1218
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1219
|
+
"type": "object",
|
|
1220
|
+
"properties": {
|
|
1221
|
+
"statefulStrategy": {
|
|
1222
|
+
"$ref": "#/$defs/StatefulStrategy"
|
|
1223
|
+
}
|
|
1224
|
+
},
|
|
1225
|
+
"required": [
|
|
1226
|
+
"statefulStrategy"
|
|
1227
|
+
],
|
|
1228
|
+
"$anchor": "StatefulStrategyWrapper"
|
|
1229
|
+
},
|
|
1218
1230
|
"StatelessStrategy": {
|
|
1219
1231
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1220
1232
|
"type": "object",
|
|
@@ -1243,6 +1255,19 @@
|
|
|
1243
1255
|
"$anchor": "StatelessStrategyIdentity",
|
|
1244
1256
|
"pattern": "^STATELESS_STRATEGY-.+$"
|
|
1245
1257
|
},
|
|
1258
|
+
"StatelessStrategyWrapper": {
|
|
1259
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1260
|
+
"type": "object",
|
|
1261
|
+
"properties": {
|
|
1262
|
+
"statelessStrategy": {
|
|
1263
|
+
"$ref": "#/$defs/StatelessStrategy"
|
|
1264
|
+
}
|
|
1265
|
+
},
|
|
1266
|
+
"required": [
|
|
1267
|
+
"statelessStrategy"
|
|
1268
|
+
],
|
|
1269
|
+
"$anchor": "StatelessStrategyWrapper"
|
|
1270
|
+
},
|
|
1246
1271
|
"Step": {
|
|
1247
1272
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1248
1273
|
"type": "object",
|
|
@@ -1282,6 +1307,76 @@
|
|
|
1282
1307
|
],
|
|
1283
1308
|
"$anchor": "StepKind"
|
|
1284
1309
|
},
|
|
1310
|
+
"StrategyRun": {
|
|
1311
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1312
|
+
"type": "object",
|
|
1313
|
+
"allOf": [
|
|
1314
|
+
{
|
|
1315
|
+
"$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.",
|
|
1316
|
+
"$ref": "#/$defs/StrategyThreadMap"
|
|
1317
|
+
},
|
|
1318
|
+
{
|
|
1319
|
+
"$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.",
|
|
1320
|
+
"$ref": "#/$defs/StrategyStateWrapper"
|
|
1321
|
+
}
|
|
1322
|
+
],
|
|
1323
|
+
"properties": {
|
|
1324
|
+
"identity": {
|
|
1325
|
+
"$ref": "#/$defs/StrategyRunIdentity"
|
|
1326
|
+
},
|
|
1327
|
+
"statefulStrategyRef": {
|
|
1328
|
+
"$ref": "#/$defs/StatefulStrategyIdentity"
|
|
1329
|
+
},
|
|
1330
|
+
"strategyRunContext": {
|
|
1331
|
+
"$ref": "#/$defs/StrategyRunContext"
|
|
1332
|
+
}
|
|
1333
|
+
},
|
|
1334
|
+
"required": [
|
|
1335
|
+
"identity",
|
|
1336
|
+
"statefulStrategyRef",
|
|
1337
|
+
"strategyRunContext"
|
|
1338
|
+
],
|
|
1339
|
+
"unevaluatedProperties": false,
|
|
1340
|
+
"$anchor": "StrategyRun"
|
|
1341
|
+
},
|
|
1342
|
+
"StrategyRunContext": {
|
|
1343
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1344
|
+
"type": "object",
|
|
1345
|
+
"properties": {
|
|
1346
|
+
"completedAt": {
|
|
1347
|
+
"$ref": "#/$defs/Timestamp"
|
|
1348
|
+
},
|
|
1349
|
+
"startedAt": {
|
|
1350
|
+
"$ref": "#/$defs/Timestamp"
|
|
1351
|
+
},
|
|
1352
|
+
"status": {
|
|
1353
|
+
"$ref": "#/$defs/StrategyRunStatus"
|
|
1354
|
+
}
|
|
1355
|
+
},
|
|
1356
|
+
"required": [
|
|
1357
|
+
"status"
|
|
1358
|
+
],
|
|
1359
|
+
"unevaluatedProperties": false,
|
|
1360
|
+
"$anchor": "StrategyRunContext"
|
|
1361
|
+
},
|
|
1362
|
+
"StrategyRunIdentity": {
|
|
1363
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1364
|
+
"type": "string",
|
|
1365
|
+
"$anchor": "StrategyRunIdentity",
|
|
1366
|
+
"pattern": "^STRATEGY_RUN-.+$"
|
|
1367
|
+
},
|
|
1368
|
+
"StrategyRunStatus": {
|
|
1369
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1370
|
+
"type": "string",
|
|
1371
|
+
"$anchor": "StrategyRunStatus",
|
|
1372
|
+
"enum": [
|
|
1373
|
+
"pending",
|
|
1374
|
+
"running",
|
|
1375
|
+
"completed",
|
|
1376
|
+
"failed",
|
|
1377
|
+
"cancelled"
|
|
1378
|
+
]
|
|
1379
|
+
},
|
|
1285
1380
|
"StrategyState": {
|
|
1286
1381
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1287
1382
|
"type": "object",
|
|
@@ -1325,6 +1420,26 @@
|
|
|
1325
1420
|
],
|
|
1326
1421
|
"$anchor": "StrategyStateWrapper"
|
|
1327
1422
|
},
|
|
1423
|
+
"StrategyThreadIdentity": {
|
|
1424
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1425
|
+
"type": "string",
|
|
1426
|
+
"$anchor": "StrategyThreadIdentity",
|
|
1427
|
+
"pattern": "^STRATEGY_THREAD-.+$"
|
|
1428
|
+
},
|
|
1429
|
+
"StrategyThreadMap": {
|
|
1430
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1431
|
+
"type": "object",
|
|
1432
|
+
"additionalProperties": {
|
|
1433
|
+
"items": {
|
|
1434
|
+
"$ref": "#/$defs/Step"
|
|
1435
|
+
}
|
|
1436
|
+
},
|
|
1437
|
+
"$anchor": "StrategyThreadMap",
|
|
1438
|
+
"$comment": "Each thread contains an array of steps, allowing for sequential execution within a thread while supporting parallel execution across multiple threads.",
|
|
1439
|
+
"propertyNames": {
|
|
1440
|
+
"$ref": "#/$defs/StrategyThreadIdentity"
|
|
1441
|
+
}
|
|
1442
|
+
},
|
|
1328
1443
|
"Timestamp": {
|
|
1329
1444
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1330
1445
|
"type": "object",
|