@fluidgrids/workflows 2026.1028.1 → 2026.1029.1

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.
Files changed (122) hide show
  1. package/README.md +72 -10
  2. package/dist/{activation-DnhG7SmF.d.ts → activation-BnVQMv9y.d.ts} +1 -1
  3. package/dist/{activation-BBh1p82z.d.cts → activation-CESehfYi.d.cts} +1 -1
  4. package/dist/{chunk-XB53G2DK.js → chunk-25BKWR2O.js} +1 -1
  5. package/dist/{chunk-CBL5JSCC.cjs → chunk-2B37XAFQ.cjs} +44 -8
  6. package/dist/{chunk-DJYMDLV5.js → chunk-2DDULZFM.js} +93 -1
  7. package/dist/{chunk-623FVQSN.cjs → chunk-3FIDHONL.cjs} +104 -0
  8. package/dist/chunk-6QPOJZT6.cjs +1180 -0
  9. package/dist/chunk-7ILGCUI6.js +154 -0
  10. package/dist/chunk-A2OHX3UQ.js +1156 -0
  11. package/dist/{chunk-VOKMAAJP.js → chunk-A36CCOWS.js} +188 -19
  12. package/dist/{chunk-FMSW2HDF.cjs → chunk-ELL2RBML.cjs} +0 -14
  13. package/dist/{chunk-JD2VQIDZ.cjs → chunk-EWYADREB.cjs} +2 -2
  14. package/dist/{chunk-5HDSBTBX.js → chunk-FQSJI5NV.js} +1 -1
  15. package/dist/{chunk-ABFZWYHT.js → chunk-FWBRQWRX.js} +156 -48
  16. package/dist/{chunk-PZCVF76Q.cjs → chunk-I47EENR4.cjs} +209 -40
  17. package/dist/chunk-J3PYFGKA.cjs +166 -0
  18. package/dist/{chunk-C5OLWZ42.js → chunk-KXJDRQ6G.js} +1 -13
  19. package/dist/chunk-M272AHEX.js +25 -0
  20. package/dist/{chunk-3FOTFQ3J.js → chunk-MJ5TGYVG.js} +333 -65
  21. package/dist/{chunk-57MSZ24T.cjs → chunk-NXFBVDOI.cjs} +3 -3
  22. package/dist/{chunk-PDHLTDZB.js → chunk-OIX4O6UR.js} +38 -2
  23. package/dist/{chunk-HR3BN4C4.cjs → chunk-OKX3FYIM.cjs} +3 -3
  24. package/dist/{chunk-CSNWNFKU.cjs → chunk-OMY3CKUZ.cjs} +404 -136
  25. package/dist/chunk-PWIUEWC3.js +81 -0
  26. package/dist/chunk-Q4MWQNJK.cjs +28 -0
  27. package/dist/{chunk-P6TA5EZT.cjs → chunk-RUQIMTN5.cjs} +171 -57
  28. package/dist/{chunk-IISBRUWJ.js → chunk-WXXNCHUY.js} +1 -1
  29. package/dist/chunk-YHBVMOMK.cjs +87 -0
  30. package/dist/codegen/index.d.cts +2 -2
  31. package/dist/codegen/index.d.ts +2 -2
  32. package/dist/collect-BTHjQaSp.d.ts +86 -0
  33. package/dist/collect-CSyOg5XC.d.cts +86 -0
  34. package/dist/{file-yuPCFU5b.d.ts → file-cgL9l9l8.d.cts} +765 -14
  35. package/dist/{file-BOoHZgoQ.d.cts → file-olQudcx5.d.ts} +765 -14
  36. package/dist/history/index.cjs +198 -86
  37. package/dist/history/index.d.cts +49 -10
  38. package/dist/history/index.d.ts +49 -10
  39. package/dist/history/index.js +49 -4
  40. package/dist/index.cjs +64 -51
  41. package/dist/index.d.cts +9 -53
  42. package/dist/index.d.ts +9 -53
  43. package/dist/index.js +5 -4
  44. package/dist/ir/index.cjs +24 -3
  45. package/dist/ir/index.d.cts +43 -4
  46. package/dist/ir/index.d.ts +43 -4
  47. package/dist/ir/index.js +24 -3
  48. package/dist/{lower-BuSvAFqi.d.cts → lower-3S6PsqjJ.d.cts} +41 -7
  49. package/dist/{lower-C_Qv_34S.d.ts → lower-DmZpQ8hJ.d.ts} +41 -7
  50. package/dist/lower-types-DQNBfWQn.d.cts +37 -0
  51. package/dist/lower-types-DQNBfWQn.d.ts +37 -0
  52. package/dist/{manifest-C8N6HDYl.d.ts → manifest-BJjrQt77.d.ts} +1 -1
  53. package/dist/{manifest-0OLw0i7k.d.cts → manifest-gRI2Q5Fj.d.cts} +1 -1
  54. package/dist/node-evaluator-SOADN23V.js +14 -0
  55. package/dist/node-evaluator-YGDEXK4U.cjs +24 -0
  56. package/dist/quickjs/index.cjs +25 -24
  57. package/dist/quickjs/index.d.cts +7 -7
  58. package/dist/quickjs/index.d.ts +7 -7
  59. package/dist/quickjs/index.js +8 -7
  60. package/dist/roundtrip/index.cjs +245 -43
  61. package/dist/roundtrip/index.d.cts +88 -11
  62. package/dist/roundtrip/index.d.ts +88 -11
  63. package/dist/roundtrip/index.js +172 -8
  64. package/dist/runtime/index.cjs +21 -20
  65. package/dist/runtime/index.d.cts +49 -7
  66. package/dist/runtime/index.d.ts +49 -7
  67. package/dist/runtime/index.js +8 -7
  68. package/dist/testing/index.cjs +514 -74
  69. package/dist/testing/index.d.cts +128 -11
  70. package/dist/testing/index.d.ts +128 -11
  71. package/dist/testing/index.js +480 -42
  72. package/dist/{types-BGoPzgcl.d.ts → types-Bb2wRnJ5.d.cts} +20 -1
  73. package/dist/{types-BGoPzgcl.d.cts → types-Bb2wRnJ5.d.ts} +20 -1
  74. package/dist/{types-DV-HX_Gt.d.ts → types-CQKOhPTa.d.cts} +122 -14
  75. package/dist/{types-CpBBjaGX.d.cts → types-CnIOinoz.d.ts} +122 -14
  76. package/dist/{workflow-Bpr3vnA_.d.ts → workflow-8uRU9rhL.d.ts} +2 -2
  77. package/dist/{workflow-FXUkpIBc.d.cts → workflow-CZOXUlQ5.d.cts} +2 -2
  78. package/dist/{workflow-J-yYixny.d.cts → workflow-DWTPHFbt.d.ts} +124 -12
  79. package/dist/{workflow-C2a05WUJ.d.ts → workflow-O6e64ZcG.d.cts} +124 -12
  80. package/fixtures/histories/auto-upgrade-patched.history.json +276 -0
  81. package/fixtures/histories/benign-failure.history.json +146 -0
  82. package/fixtures/histories/cancel-activity-try-cancel.history.json +150 -0
  83. package/fixtures/histories/child-cancel-wait-requested.history.json +217 -0
  84. package/fixtures/histories/child-options-roundtrip.history.json +192 -0
  85. package/fixtures/histories/continue-as-new-last-result.history.json +86 -0
  86. package/fixtures/histories/continue-as-new-options.history.json +99 -0
  87. package/fixtures/histories/continue-as-new-r1-long-task-queue.history.json +78 -0
  88. package/fixtures/histories/continue-as-new-r1-retry-options.history.json +83 -0
  89. package/fixtures/histories/execution-timeout-chain.history.json +98 -0
  90. package/fixtures/histories/external-cancel-resolved.history.json +123 -0
  91. package/fixtures/histories/external-cancel-unknown-target.history.json +127 -0
  92. package/fixtures/histories/failure-error-types-fails-run.history.json +144 -0
  93. package/fixtures/histories/handler-drain-warn.history.json +222 -0
  94. package/fixtures/histories/heartbeat-details-on-retry.history.json +145 -0
  95. package/fixtures/histories/local-activity-abandoned-at-completion.history.json +73 -0
  96. package/fixtures/histories/local-activity-cancelled-in-scope.history.json +118 -0
  97. package/fixtures/histories/local-activity-completed.history.json +157 -0
  98. package/fixtures/histories/local-activity-failed.history.json +93 -0
  99. package/fixtures/histories/local-activity-retry-in-task.history.json +88 -0
  100. package/fixtures/histories/run-retry-last-failure.history.json +90 -0
  101. package/fixtures/histories/run-timeout.history.json +159 -0
  102. package/fixtures/histories/schedule-to-start-timeout.history.json +132 -0
  103. package/fixtures/histories/start-delay-signal-ends-delay.history.json +155 -0
  104. package/fixtures/histories/typeerror-task-retry-100.history.json +137 -0
  105. package/package.json +1 -1
  106. package/schema/history-file.schema.json +283 -2
  107. package/schema/ir-v2.schema.json +45 -0
  108. package/schema/run-event.schema.json +264 -2
  109. package/schema/workflow-command.schema.json +178 -1
  110. package/schema/workflow-task.schema.json +392 -4
  111. package/dist/assemble-BLqQ8lSu.d.cts +0 -39
  112. package/dist/assemble-DWgaXHd-.d.ts +0 -39
  113. package/dist/chunk-2DP2Y6EU.cjs +0 -832
  114. package/dist/chunk-2J6TF7YI.cjs +0 -86
  115. package/dist/chunk-7NQ37GZU.js +0 -73
  116. package/dist/chunk-BO6OVILK.js +0 -79
  117. package/dist/chunk-FQIHX7YI.cjs +0 -80
  118. package/dist/chunk-H7KEVW2M.js +0 -816
  119. package/dist/lower-types-nofRXw9c.d.cts +0 -15
  120. package/dist/lower-types-nofRXw9c.d.ts +0 -15
  121. package/dist/node-evaluator-CJNP4GHX.js +0 -12
  122. package/dist/node-evaluator-DMKPKUWA.cjs +0 -22
@@ -0,0 +1,157 @@
1
+ {
2
+ "format": "fluidgrids.history",
3
+ "formatVersion": 1,
4
+ "name": "local-activity-completed",
5
+ "description": "ctx.localActivity runs inside the task (localActivityRequested, then the same task again) and records one LOCAL_ACTIVITY_COMPLETED l1 before the activity it feeds; replay never runs it again.",
6
+ "source": "src/local-activities.ts",
7
+ "info": {
8
+ "workspaceId": "test-workspace",
9
+ "taskQueue": "managed",
10
+ "attempt": 1,
11
+ "startedAt": "2026-01-01T00:00:00.000Z",
12
+ "runStartedAt": "2026-01-01T00:00:00.000Z",
13
+ "runId": "run-1"
14
+ },
15
+ "nowMs": 1767225600000,
16
+ "workflowFn": "localCompleted",
17
+ "events": [
18
+ {
19
+ "seq": 1,
20
+ "type": "WORKFLOW_STARTED",
21
+ "payload": {
22
+ "workflowFn": "localCompleted",
23
+ "input": null,
24
+ "taskQueue": "managed",
25
+ "randomnessSeed": "run-1"
26
+ },
27
+ "createdAt": "2026-01-01T00:00:00.000Z"
28
+ },
29
+ {
30
+ "seq": 2,
31
+ "type": "WORKFLOW_TASK_SCHEDULED",
32
+ "payload": {
33
+ "taskId": "run-1-task-1"
34
+ },
35
+ "createdAt": "2026-01-01T00:00:00.000Z"
36
+ },
37
+ {
38
+ "seq": 3,
39
+ "type": "WORKFLOW_TASK_STARTED",
40
+ "payload": {
41
+ "taskId": "run-1-task-1",
42
+ "attempt": 1
43
+ },
44
+ "createdAt": "2026-01-01T00:00:00.000Z"
45
+ },
46
+ {
47
+ "seq": 4,
48
+ "type": "WORKFLOW_TASK_COMPLETED",
49
+ "payload": {
50
+ "taskId": "run-1-task-1"
51
+ },
52
+ "createdAt": "2026-01-01T00:00:00.000Z",
53
+ "taskId": "run-1-task-1"
54
+ },
55
+ {
56
+ "seq": 5,
57
+ "type": "LOCAL_ACTIVITY_COMPLETED",
58
+ "payload": {
59
+ "localActivityId": "l1",
60
+ "attempts": 1,
61
+ "nodeType": "store/fx",
62
+ "operation": "lookupRate",
63
+ "result": {
64
+ "rate": 1.08
65
+ },
66
+ "summary": "rate lookup"
67
+ },
68
+ "createdAt": "2026-01-01T00:00:00.000Z",
69
+ "taskId": "run-1-task-1"
70
+ },
71
+ {
72
+ "seq": 6,
73
+ "type": "ACTIVITY_SCHEDULED",
74
+ "payload": {
75
+ "activityId": "a1",
76
+ "kind": "node",
77
+ "nodeType": "internal:http",
78
+ "operation": "execute",
79
+ "args": {
80
+ "url": "https://example.test/convert/1.08"
81
+ },
82
+ "retry": {
83
+ "retryDelay": 1000,
84
+ "backoffMultiplier": 2,
85
+ "maxDelay": 100000
86
+ }
87
+ },
88
+ "createdAt": "2026-01-01T00:00:00.000Z",
89
+ "taskId": "run-1-task-1"
90
+ },
91
+ {
92
+ "seq": 7,
93
+ "type": "ACTIVITY_STARTED",
94
+ "payload": {
95
+ "activityId": "a1",
96
+ "attempt": 1
97
+ },
98
+ "createdAt": "2026-01-01T00:00:00.000Z"
99
+ },
100
+ {
101
+ "seq": 8,
102
+ "type": "ACTIVITY_COMPLETED",
103
+ "payload": {
104
+ "activityId": "a1",
105
+ "attempt": 1,
106
+ "result": {
107
+ "status": 200,
108
+ "url": "https://example.test/convert/1.08"
109
+ }
110
+ },
111
+ "createdAt": "2026-01-01T00:00:00.000Z"
112
+ },
113
+ {
114
+ "seq": 9,
115
+ "type": "WORKFLOW_TASK_SCHEDULED",
116
+ "payload": {
117
+ "taskId": "run-1-task-2"
118
+ },
119
+ "createdAt": "2026-01-01T00:00:00.000Z"
120
+ },
121
+ {
122
+ "seq": 10,
123
+ "type": "WORKFLOW_TASK_STARTED",
124
+ "payload": {
125
+ "taskId": "run-1-task-2",
126
+ "attempt": 1
127
+ },
128
+ "createdAt": "2026-01-01T00:00:00.000Z"
129
+ },
130
+ {
131
+ "seq": 11,
132
+ "type": "WORKFLOW_TASK_COMPLETED",
133
+ "payload": {
134
+ "taskId": "run-1-task-2"
135
+ },
136
+ "createdAt": "2026-01-01T00:00:00.000Z",
137
+ "taskId": "run-1-task-2"
138
+ },
139
+ {
140
+ "seq": 12,
141
+ "type": "WORKFLOW_COMPLETED",
142
+ "payload": {
143
+ "output": {
144
+ "rate": 1.08
145
+ }
146
+ },
147
+ "createdAt": "2026-01-01T00:00:00.000Z",
148
+ "taskId": "run-1-task-2"
149
+ }
150
+ ],
151
+ "expected": {
152
+ "protocol": 1,
153
+ "outcome": "commands",
154
+ "commands": [],
155
+ "logs": []
156
+ }
157
+ }
@@ -0,0 +1,93 @@
1
+ {
2
+ "format": "fluidgrids.history",
3
+ "formatVersion": 1,
4
+ "name": "local-activity-failed",
5
+ "description": "A non-retryable failure is recorded as LOCAL_ACTIVITY_FAILED and rejects with ActivityFailure, which the code catches.",
6
+ "source": "src/local-activities.ts",
7
+ "info": {
8
+ "workspaceId": "test-workspace",
9
+ "taskQueue": "managed",
10
+ "attempt": 1,
11
+ "startedAt": "2026-01-01T00:00:00.000Z",
12
+ "runStartedAt": "2026-01-01T00:00:00.000Z",
13
+ "runId": "run-1"
14
+ },
15
+ "nowMs": 1767225600000,
16
+ "workflowFn": "localFailed",
17
+ "events": [
18
+ {
19
+ "seq": 1,
20
+ "type": "WORKFLOW_STARTED",
21
+ "payload": {
22
+ "workflowFn": "localFailed",
23
+ "input": null,
24
+ "taskQueue": "managed",
25
+ "randomnessSeed": "run-1"
26
+ },
27
+ "createdAt": "2026-01-01T00:00:00.000Z"
28
+ },
29
+ {
30
+ "seq": 2,
31
+ "type": "WORKFLOW_TASK_SCHEDULED",
32
+ "payload": {
33
+ "taskId": "run-1-task-1"
34
+ },
35
+ "createdAt": "2026-01-01T00:00:00.000Z"
36
+ },
37
+ {
38
+ "seq": 3,
39
+ "type": "WORKFLOW_TASK_STARTED",
40
+ "payload": {
41
+ "taskId": "run-1-task-1",
42
+ "attempt": 1
43
+ },
44
+ "createdAt": "2026-01-01T00:00:00.000Z"
45
+ },
46
+ {
47
+ "seq": 4,
48
+ "type": "WORKFLOW_TASK_COMPLETED",
49
+ "payload": {
50
+ "taskId": "run-1-task-1"
51
+ },
52
+ "createdAt": "2026-01-01T00:00:00.000Z",
53
+ "taskId": "run-1-task-1"
54
+ },
55
+ {
56
+ "seq": 5,
57
+ "type": "LOCAL_ACTIVITY_FAILED",
58
+ "payload": {
59
+ "localActivityId": "l1",
60
+ "attempts": 1,
61
+ "nodeType": "store/fx",
62
+ "operation": "lookupRate",
63
+ "failure": {
64
+ "errorType": "PERMANENT",
65
+ "message": "unknown currency",
66
+ "type": "PERMANENT",
67
+ "source": "node:store/fx",
68
+ "nonRetryable": true
69
+ }
70
+ },
71
+ "createdAt": "2026-01-01T00:00:00.000Z",
72
+ "taskId": "run-1-task-1"
73
+ },
74
+ {
75
+ "seq": 6,
76
+ "type": "WORKFLOW_COMPLETED",
77
+ "payload": {
78
+ "output": {
79
+ "failed": true,
80
+ "kind": "ActivityFailure"
81
+ }
82
+ },
83
+ "createdAt": "2026-01-01T00:00:00.000Z",
84
+ "taskId": "run-1-task-1"
85
+ }
86
+ ],
87
+ "expected": {
88
+ "protocol": 1,
89
+ "outcome": "commands",
90
+ "commands": [],
91
+ "logs": []
92
+ }
93
+ }
@@ -0,0 +1,88 @@
1
+ {
2
+ "format": "fluidgrids.history",
3
+ "formatVersion": 1,
4
+ "name": "local-activity-retry-in-task",
5
+ "description": "Two failed attempts are retried inside the task (attempt 2 and 3 are requested again by the runtime); the marker records attempts 3 and no retry leaves history.",
6
+ "source": "src/local-activities.ts",
7
+ "info": {
8
+ "workspaceId": "test-workspace",
9
+ "taskQueue": "managed",
10
+ "attempt": 1,
11
+ "startedAt": "2026-01-01T00:00:00.000Z",
12
+ "runStartedAt": "2026-01-01T00:00:00.000Z",
13
+ "runId": "run-1"
14
+ },
15
+ "nowMs": 1767225600000,
16
+ "workflowFn": "localRetry",
17
+ "events": [
18
+ {
19
+ "seq": 1,
20
+ "type": "WORKFLOW_STARTED",
21
+ "payload": {
22
+ "workflowFn": "localRetry",
23
+ "input": null,
24
+ "taskQueue": "managed",
25
+ "randomnessSeed": "run-1"
26
+ },
27
+ "createdAt": "2026-01-01T00:00:00.000Z"
28
+ },
29
+ {
30
+ "seq": 2,
31
+ "type": "WORKFLOW_TASK_SCHEDULED",
32
+ "payload": {
33
+ "taskId": "run-1-task-1"
34
+ },
35
+ "createdAt": "2026-01-01T00:00:00.000Z"
36
+ },
37
+ {
38
+ "seq": 3,
39
+ "type": "WORKFLOW_TASK_STARTED",
40
+ "payload": {
41
+ "taskId": "run-1-task-1",
42
+ "attempt": 1
43
+ },
44
+ "createdAt": "2026-01-01T00:00:00.000Z"
45
+ },
46
+ {
47
+ "seq": 4,
48
+ "type": "WORKFLOW_TASK_COMPLETED",
49
+ "payload": {
50
+ "taskId": "run-1-task-1"
51
+ },
52
+ "createdAt": "2026-01-01T00:00:00.000Z",
53
+ "taskId": "run-1-task-1"
54
+ },
55
+ {
56
+ "seq": 5,
57
+ "type": "LOCAL_ACTIVITY_COMPLETED",
58
+ "payload": {
59
+ "localActivityId": "l1",
60
+ "attempts": 3,
61
+ "nodeType": "store/fx",
62
+ "operation": "lookupRate",
63
+ "result": {
64
+ "rate": 1.27
65
+ }
66
+ },
67
+ "createdAt": "2026-01-01T00:00:00.000Z",
68
+ "taskId": "run-1-task-1"
69
+ },
70
+ {
71
+ "seq": 6,
72
+ "type": "WORKFLOW_COMPLETED",
73
+ "payload": {
74
+ "output": {
75
+ "rate": 1.27
76
+ }
77
+ },
78
+ "createdAt": "2026-01-01T00:00:00.000Z",
79
+ "taskId": "run-1-task-1"
80
+ }
81
+ ],
82
+ "expected": {
83
+ "protocol": 1,
84
+ "outcome": "commands",
85
+ "commands": [],
86
+ "logs": []
87
+ }
88
+ }
@@ -0,0 +1,90 @@
1
+ {
2
+ "format": "fluidgrids.history",
3
+ "formatVersion": 1,
4
+ "name": "run-retry-last-failure",
5
+ "description": "Run-level retry: attempt 1 fails with a retryable error; attempt 2 starts after the 10 s backoff with runAttempt 2 and the failure as lastFailure in WORKFLOW_STARTED.",
6
+ "source": "src/parity-chain.ts",
7
+ "info": {
8
+ "workspaceId": "test-workspace",
9
+ "taskQueue": "managed",
10
+ "attempt": 1,
11
+ "startedAt": "2026-01-01T00:00:00.000Z",
12
+ "runStartedAt": "2026-01-01T00:00:00.000Z",
13
+ "runId": "run-2",
14
+ "continuedFromRunId": "run-1",
15
+ "firstRunId": "run-1"
16
+ },
17
+ "nowMs": 1767225610000,
18
+ "workflowFn": "runRetry",
19
+ "events": [
20
+ {
21
+ "seq": 1,
22
+ "type": "WORKFLOW_STARTED",
23
+ "payload": {
24
+ "workflowFn": "runRetry",
25
+ "input": null,
26
+ "taskQueue": "managed",
27
+ "randomnessSeed": "run-2",
28
+ "runAttempt": 2,
29
+ "retry": {
30
+ "initialDelayMs": 10000,
31
+ "backoffMultiplier": 2,
32
+ "maxDelayMs": 1000000,
33
+ "maxAttempts": 3
34
+ },
35
+ "lastFailure": {
36
+ "errorType": "TRANSIENT",
37
+ "message": "upstream unavailable",
38
+ "type": "TRANSIENT",
39
+ "source": "sdk-ts"
40
+ }
41
+ },
42
+ "createdAt": "2026-01-01T00:00:00.000Z"
43
+ },
44
+ {
45
+ "seq": 2,
46
+ "type": "WORKFLOW_TASK_SCHEDULED",
47
+ "payload": {
48
+ "taskId": "run-2-task-1"
49
+ },
50
+ "createdAt": "2026-01-01T00:00:10.000Z"
51
+ },
52
+ {
53
+ "seq": 3,
54
+ "type": "WORKFLOW_TASK_STARTED",
55
+ "payload": {
56
+ "taskId": "run-2-task-1",
57
+ "attempt": 1
58
+ },
59
+ "createdAt": "2026-01-01T00:00:10.000Z"
60
+ },
61
+ {
62
+ "seq": 4,
63
+ "type": "WORKFLOW_TASK_COMPLETED",
64
+ "payload": {
65
+ "taskId": "run-2-task-1"
66
+ },
67
+ "createdAt": "2026-01-01T00:00:10.000Z",
68
+ "taskId": "run-2-task-1"
69
+ },
70
+ {
71
+ "seq": 5,
72
+ "type": "WORKFLOW_COMPLETED",
73
+ "payload": {
74
+ "output": {
75
+ "attempt": 2,
76
+ "lastFailure": "upstream unavailable",
77
+ "continuedFrom": "run-1"
78
+ }
79
+ },
80
+ "createdAt": "2026-01-01T00:00:10.000Z",
81
+ "taskId": "run-2-task-1"
82
+ }
83
+ ],
84
+ "expected": {
85
+ "protocol": 1,
86
+ "outcome": "commands",
87
+ "commands": [],
88
+ "logs": []
89
+ }
90
+ }
@@ -0,0 +1,159 @@
1
+ {
2
+ "format": "fluidgrids.history",
3
+ "formatVersion": 1,
4
+ "name": "run-timeout",
5
+ "description": "The one-hour run timeout expires while the run sleeps: WORKFLOW_TIMED_OUT { WORKFLOW_RUN } with a TIMEOUT failure.",
6
+ "source": "src/parity-chain.ts",
7
+ "info": {
8
+ "workspaceId": "test-workspace",
9
+ "taskQueue": "managed",
10
+ "attempt": 1,
11
+ "startedAt": "2026-01-01T00:00:00.000Z",
12
+ "runStartedAt": "2026-01-01T00:00:00.000Z",
13
+ "runId": "run-1"
14
+ },
15
+ "nowMs": 1767229200000,
16
+ "workflowFn": "runTimeout",
17
+ "events": [
18
+ {
19
+ "seq": 1,
20
+ "type": "WORKFLOW_STARTED",
21
+ "payload": {
22
+ "workflowFn": "runTimeout",
23
+ "input": null,
24
+ "taskQueue": "managed",
25
+ "randomnessSeed": "run-1",
26
+ "timeouts": {
27
+ "runTimeout": 3600000
28
+ }
29
+ },
30
+ "createdAt": "2026-01-01T00:00:00.000Z"
31
+ },
32
+ {
33
+ "seq": 2,
34
+ "type": "WORKFLOW_TASK_SCHEDULED",
35
+ "payload": {
36
+ "taskId": "run-1-task-1"
37
+ },
38
+ "createdAt": "2026-01-01T00:00:00.000Z"
39
+ },
40
+ {
41
+ "seq": 3,
42
+ "type": "WORKFLOW_TASK_STARTED",
43
+ "payload": {
44
+ "taskId": "run-1-task-1",
45
+ "attempt": 1
46
+ },
47
+ "createdAt": "2026-01-01T00:00:00.000Z"
48
+ },
49
+ {
50
+ "seq": 4,
51
+ "type": "WORKFLOW_TASK_COMPLETED",
52
+ "payload": {
53
+ "taskId": "run-1-task-1"
54
+ },
55
+ "createdAt": "2026-01-01T00:00:00.000Z",
56
+ "taskId": "run-1-task-1"
57
+ },
58
+ {
59
+ "seq": 5,
60
+ "type": "ACTIVITY_SCHEDULED",
61
+ "payload": {
62
+ "activityId": "a1",
63
+ "kind": "node",
64
+ "nodeType": "internal:http",
65
+ "operation": "execute",
66
+ "args": {
67
+ "url": "https://example.test/start"
68
+ },
69
+ "retry": {
70
+ "retryDelay": 1000,
71
+ "backoffMultiplier": 2,
72
+ "maxDelay": 100000
73
+ }
74
+ },
75
+ "createdAt": "2026-01-01T00:00:00.000Z",
76
+ "taskId": "run-1-task-1"
77
+ },
78
+ {
79
+ "seq": 6,
80
+ "type": "ACTIVITY_STARTED",
81
+ "payload": {
82
+ "activityId": "a1",
83
+ "attempt": 1
84
+ },
85
+ "createdAt": "2026-01-01T00:00:00.000Z"
86
+ },
87
+ {
88
+ "seq": 7,
89
+ "type": "ACTIVITY_COMPLETED",
90
+ "payload": {
91
+ "activityId": "a1",
92
+ "attempt": 1,
93
+ "result": {
94
+ "status": 200,
95
+ "url": "https://example.test/start"
96
+ }
97
+ },
98
+ "createdAt": "2026-01-01T00:00:00.000Z"
99
+ },
100
+ {
101
+ "seq": 8,
102
+ "type": "WORKFLOW_TASK_SCHEDULED",
103
+ "payload": {
104
+ "taskId": "run-1-task-2"
105
+ },
106
+ "createdAt": "2026-01-01T00:00:00.000Z"
107
+ },
108
+ {
109
+ "seq": 9,
110
+ "type": "WORKFLOW_TASK_STARTED",
111
+ "payload": {
112
+ "taskId": "run-1-task-2",
113
+ "attempt": 1
114
+ },
115
+ "createdAt": "2026-01-01T00:00:00.000Z"
116
+ },
117
+ {
118
+ "seq": 10,
119
+ "type": "WORKFLOW_TASK_COMPLETED",
120
+ "payload": {
121
+ "taskId": "run-1-task-2"
122
+ },
123
+ "createdAt": "2026-01-01T00:00:00.000Z",
124
+ "taskId": "run-1-task-2"
125
+ },
126
+ {
127
+ "seq": 11,
128
+ "type": "TIMER_STARTED",
129
+ "payload": {
130
+ "timerId": "t1",
131
+ "durationMs": 7200000,
132
+ "fireAt": "2026-01-01T02:00:00.000Z"
133
+ },
134
+ "createdAt": "2026-01-01T00:00:00.000Z",
135
+ "taskId": "run-1-task-2"
136
+ },
137
+ {
138
+ "seq": 12,
139
+ "type": "WORKFLOW_TIMED_OUT",
140
+ "payload": {
141
+ "timeoutType": "WORKFLOW_RUN",
142
+ "failure": {
143
+ "errorType": "TIMEOUT",
144
+ "message": "The run timeout expired",
145
+ "type": "TimeoutFailure",
146
+ "timeoutType": "WORKFLOW_RUN",
147
+ "source": "engine"
148
+ }
149
+ },
150
+ "createdAt": "2026-01-01T01:00:00.000Z"
151
+ }
152
+ ],
153
+ "expected": {
154
+ "protocol": 1,
155
+ "outcome": "commands",
156
+ "commands": [],
157
+ "logs": []
158
+ }
159
+ }