@toolproof-npm/schema 0.1.60 → 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 +173 -5
- package/dist/genesis/generated/resources/Genesis.json +253 -5
- package/dist/genesis/generated/schemas/Genesis.json +126 -6
- package/dist/genesis/generated/schemas/ResourceFormat.json +6 -1
- 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 +231 -4
- package/package.json +2 -2
|
@@ -745,11 +745,16 @@
|
|
|
745
745
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
746
746
|
"type": "object",
|
|
747
747
|
"required": [
|
|
748
|
-
"identity"
|
|
748
|
+
"identity",
|
|
749
|
+
"recognizerUri"
|
|
749
750
|
],
|
|
750
751
|
"properties": {
|
|
751
752
|
"identity": {
|
|
752
753
|
"$ref": "#/$defs/ResourceFormatIdentity"
|
|
754
|
+
},
|
|
755
|
+
"recognizerUri": {
|
|
756
|
+
"type": "string",
|
|
757
|
+
"format": "uri"
|
|
753
758
|
}
|
|
754
759
|
},
|
|
755
760
|
"allOf": [
|
|
@@ -1657,6 +1662,25 @@
|
|
|
1657
1662
|
"unevaluatedProperties": false
|
|
1658
1663
|
}
|
|
1659
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
|
+
},
|
|
1660
1684
|
"StrategyState": {
|
|
1661
1685
|
"identity": "TYPE-StrategyState",
|
|
1662
1686
|
"name": "StrategyState",
|
|
@@ -1733,23 +1757,167 @@
|
|
|
1733
1757
|
"$anchor": "StatefulStrategy",
|
|
1734
1758
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
1735
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",
|
|
1736
1894
|
"required": [
|
|
1737
1895
|
"identity",
|
|
1738
|
-
"
|
|
1896
|
+
"statefulStrategyRef",
|
|
1897
|
+
"strategyRunContext"
|
|
1739
1898
|
],
|
|
1740
1899
|
"properties": {
|
|
1741
1900
|
"identity": {
|
|
1901
|
+
"$ref": "#/$defs/StrategyRunIdentity"
|
|
1902
|
+
},
|
|
1903
|
+
"statefulStrategyRef": {
|
|
1742
1904
|
"$ref": "#/$defs/StatefulStrategyIdentity"
|
|
1743
1905
|
},
|
|
1744
|
-
"
|
|
1745
|
-
"$ref": "#/$defs/
|
|
1906
|
+
"strategyRunContext": {
|
|
1907
|
+
"$ref": "#/$defs/StrategyRunContext"
|
|
1746
1908
|
}
|
|
1747
1909
|
},
|
|
1748
1910
|
"allOf": [
|
|
1749
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.",
|
|
1750
1917
|
"$ref": "#/$defs/StrategyStateWrapper"
|
|
1751
1918
|
}
|
|
1752
|
-
]
|
|
1919
|
+
],
|
|
1920
|
+
"unevaluatedProperties": false
|
|
1753
1921
|
}
|
|
1754
1922
|
}
|
|
1755
1923
|
}
|
|
@@ -896,11 +896,16 @@
|
|
|
896
896
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
897
897
|
"type": "object",
|
|
898
898
|
"required": [
|
|
899
|
-
"identity"
|
|
899
|
+
"identity",
|
|
900
|
+
"recognizerUri"
|
|
900
901
|
],
|
|
901
902
|
"properties": {
|
|
902
903
|
"identity": {
|
|
903
904
|
"$ref": "#/$defs/ResourceFormatIdentity"
|
|
905
|
+
},
|
|
906
|
+
"recognizerUri": {
|
|
907
|
+
"type": "string",
|
|
908
|
+
"format": "uri"
|
|
904
909
|
}
|
|
905
910
|
},
|
|
906
911
|
"allOf": [
|
|
@@ -2199,6 +2204,35 @@
|
|
|
2199
2204
|
}
|
|
2200
2205
|
}
|
|
2201
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
|
+
},
|
|
2202
2236
|
"StrategyState": {
|
|
2203
2237
|
"identity": "RESOURCE-StrategyState",
|
|
2204
2238
|
"resourceTypeRef": "TYPE-ResourceType",
|
|
@@ -2314,23 +2348,237 @@
|
|
|
2314
2348
|
"$anchor": "StatefulStrategy",
|
|
2315
2349
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
2316
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",
|
|
2317
2555
|
"required": [
|
|
2318
2556
|
"identity",
|
|
2319
|
-
"
|
|
2557
|
+
"statefulStrategyRef",
|
|
2558
|
+
"strategyRunContext"
|
|
2320
2559
|
],
|
|
2321
2560
|
"properties": {
|
|
2322
2561
|
"identity": {
|
|
2562
|
+
"$ref": "#/$defs/StrategyRunIdentity"
|
|
2563
|
+
},
|
|
2564
|
+
"statefulStrategyRef": {
|
|
2323
2565
|
"$ref": "#/$defs/StatefulStrategyIdentity"
|
|
2324
2566
|
},
|
|
2325
|
-
"
|
|
2326
|
-
"$ref": "#/$defs/
|
|
2567
|
+
"strategyRunContext": {
|
|
2568
|
+
"$ref": "#/$defs/StrategyRunContext"
|
|
2327
2569
|
}
|
|
2328
2570
|
},
|
|
2329
2571
|
"allOf": [
|
|
2330
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.",
|
|
2331
2578
|
"$ref": "#/$defs/StrategyStateWrapper"
|
|
2332
2579
|
}
|
|
2333
|
-
]
|
|
2580
|
+
],
|
|
2581
|
+
"unevaluatedProperties": false
|
|
2334
2582
|
}
|
|
2335
2583
|
}
|
|
2336
2584
|
}
|