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