@fluidgrids/workflows 2026.1027.1 → 2026.1028.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 (166) hide show
  1. package/README.md +144 -13
  2. package/dist/activation-BBh1p82z.d.cts +57 -0
  3. package/dist/activation-DnhG7SmF.d.ts +57 -0
  4. package/dist/assemble-BLqQ8lSu.d.cts +39 -0
  5. package/dist/assemble-DWgaXHd-.d.ts +39 -0
  6. package/dist/chunk-2DP2Y6EU.cjs +832 -0
  7. package/dist/chunk-2J6TF7YI.cjs +86 -0
  8. package/dist/chunk-3FOTFQ3J.js +1622 -0
  9. package/dist/chunk-4LYSEANA.js +199 -0
  10. package/dist/{chunk-TQF7MYEN.cjs → chunk-57MSZ24T.cjs} +134 -96
  11. package/dist/{chunk-EEAIM35V.js → chunk-5HDSBTBX.js} +64 -23
  12. package/dist/chunk-623FVQSN.cjs +251 -0
  13. package/dist/{chunk-W32BSO3M.js → chunk-6FSHT5IL.js} +2 -2
  14. package/dist/{chunk-E3APHA6O.cjs → chunk-7AAZGVKD.js} +1 -64
  15. package/dist/chunk-7NQ37GZU.js +73 -0
  16. package/dist/chunk-ABFZWYHT.js +612 -0
  17. package/dist/{chunk-6U446SKY.js → chunk-BD7ZPG53.js} +2 -2
  18. package/dist/chunk-BO6OVILK.js +79 -0
  19. package/dist/chunk-C5OLWZ42.js +245 -0
  20. package/dist/chunk-CBL5JSCC.cjs +75 -0
  21. package/dist/{chunk-OSPTJCDI.cjs → chunk-CPDK3K5N.cjs} +6 -6
  22. package/dist/chunk-CSNWNFKU.cjs +1635 -0
  23. package/dist/chunk-DJYMDLV5.js +227 -0
  24. package/dist/{chunk-IHKXLG6I.js → chunk-E2VK7J2C.js} +1 -1
  25. package/dist/chunk-FMSW2HDF.cjs +267 -0
  26. package/dist/chunk-FQIHX7YI.cjs +80 -0
  27. package/dist/chunk-FR7KYWRO.cjs +41 -0
  28. package/dist/{chunk-7YR7DI7B.cjs → chunk-GBQ33SIZ.cjs} +44 -44
  29. package/dist/{chunk-6AIAC2FP.cjs → chunk-GVTZMA5C.cjs} +4 -4
  30. package/dist/chunk-H7KEVW2M.js +816 -0
  31. package/dist/{chunk-3M34AUIY.cjs → chunk-HR3BN4C4.cjs} +3 -3
  32. package/dist/chunk-IISBRUWJ.js +13 -0
  33. package/dist/chunk-JD2VQIDZ.cjs +15 -0
  34. package/dist/{chunk-UB2BHU2M.js → chunk-JZ4TOOLN.js} +1 -1
  35. package/dist/chunk-L24YIZY7.cjs +207 -0
  36. package/dist/chunk-LNUQE6D6.js +39 -0
  37. package/dist/{chunk-TWOYB4Y7.cjs → chunk-NEIUQASE.cjs} +13 -13
  38. package/dist/chunk-P6TA5EZT.cjs +634 -0
  39. package/dist/chunk-PDHLTDZB.js +72 -0
  40. package/dist/chunk-PMCM2OH4.js +46 -0
  41. package/dist/chunk-PZCVF76Q.cjs +868 -0
  42. package/dist/{chunk-6BEW4QD6.js → chunk-QAN5MZEM.js} +1 -1
  43. package/dist/{chunk-CSYBNN3V.cjs → chunk-QKZL3ONM.cjs} +2 -2
  44. package/dist/chunk-SAENRNBJ.cjs +52 -0
  45. package/dist/{chunk-XBIID5DY.js → chunk-SMCANK3F.js} +5 -4
  46. package/dist/{chunk-UWQWD7BP.cjs → chunk-SX2PNKKT.cjs} +18 -17
  47. package/dist/{chunk-UJNHTS6D.js → chunk-TBDXTV22.cjs} +8 -45
  48. package/dist/chunk-VOKMAAJP.js +848 -0
  49. package/dist/{chunk-5AW745OG.js → chunk-XB53G2DK.js} +1 -1
  50. package/dist/chunk-Z2Y65YOY.cjs +7 -0
  51. package/dist/codegen/index.cjs +9 -7
  52. package/dist/codegen/index.d.cts +2 -2
  53. package/dist/codegen/index.d.ts +2 -2
  54. package/dist/codegen/index.js +6 -5
  55. package/dist/file-BOoHZgoQ.d.cts +1557 -0
  56. package/dist/file-yuPCFU5b.d.ts +1557 -0
  57. package/dist/history/index.cjs +287 -0
  58. package/dist/history/index.d.cts +157 -0
  59. package/dist/history/index.d.ts +157 -0
  60. package/dist/history/index.js +5 -0
  61. package/dist/index.cjs +134 -36
  62. package/dist/index.d.cts +137 -9
  63. package/dist/index.d.ts +137 -9
  64. package/dist/index.js +8 -3
  65. package/dist/ir/index.cjs +152 -158
  66. package/dist/ir/index.d.cts +14 -4
  67. package/dist/ir/index.d.ts +14 -4
  68. package/dist/ir/index.js +41 -50
  69. package/dist/lower-BuSvAFqi.d.cts +129 -0
  70. package/dist/lower-C_Qv_34S.d.ts +129 -0
  71. package/dist/lower-types-nofRXw9c.d.cts +15 -0
  72. package/dist/lower-types-nofRXw9c.d.ts +15 -0
  73. package/dist/{manifest-Duf-gHdO.d.cts → manifest-0OLw0i7k.d.cts} +1 -1
  74. package/dist/{manifest-Bp9ZJlav.d.ts → manifest-C8N6HDYl.d.ts} +1 -1
  75. package/dist/node-evaluator-CJNP4GHX.js +12 -0
  76. package/dist/node-evaluator-DMKPKUWA.cjs +22 -0
  77. package/dist/quickjs/index.cjs +236 -12
  78. package/dist/quickjs/index.d.cts +46 -5
  79. package/dist/quickjs/index.d.ts +46 -5
  80. package/dist/quickjs/index.js +230 -9
  81. package/dist/roundtrip/index.cjs +333 -131
  82. package/dist/roundtrip/index.d.cts +39 -7
  83. package/dist/roundtrip/index.d.ts +39 -7
  84. package/dist/roundtrip/index.js +185 -13
  85. package/dist/runtime/index.cjs +90 -0
  86. package/dist/runtime/index.d.cts +297 -0
  87. package/dist/runtime/index.d.ts +297 -0
  88. package/dist/runtime/index.js +8 -0
  89. package/dist/testing/index.cjs +1057 -0
  90. package/dist/testing/index.d.cts +305 -0
  91. package/dist/testing/index.d.ts +305 -0
  92. package/dist/testing/index.js +1037 -0
  93. package/dist/{types-Dr2Fn1Ax.d.ts → types-BGoPzgcl.d.cts} +1 -1
  94. package/dist/{types-Dr2Fn1Ax.d.cts → types-BGoPzgcl.d.ts} +1 -1
  95. package/dist/types-CpBBjaGX.d.cts +380 -0
  96. package/dist/types-DV-HX_Gt.d.ts +380 -0
  97. package/dist/{assemble-CrpUyd_3.d.ts → workflow-Bpr3vnA_.d.ts} +40 -160
  98. package/dist/workflow-C2a05WUJ.d.ts +444 -0
  99. package/dist/{assemble-DEf3znGD.d.cts → workflow-FXUkpIBc.d.cts} +40 -160
  100. package/dist/workflow-J-yYixny.d.cts +444 -0
  101. package/fixtures/README.md +128 -0
  102. package/fixtures/histories/activity-failure-fails-run.history.json +163 -0
  103. package/fixtures/histories/activity-retry-then-success.history.json +147 -0
  104. package/fixtures/histories/cancel-activity-abandon.history.json +126 -0
  105. package/fixtures/histories/cancel-activity-compensate.history.json +307 -0
  106. package/fixtures/histories/cancel-concurrent-non-cancellable.history.json +234 -0
  107. package/fixtures/histories/cancel-concurrent-scope-timeout.history.json +184 -0
  108. package/fixtures/histories/cancel-condition-after-cancel.history.json +200 -0
  109. package/fixtures/histories/cancel-during-timer.history.json +123 -0
  110. package/fixtures/histories/cancel-saga-compensations.history.json +325 -0
  111. package/fixtures/histories/cancel-scope-timeout.history.json +148 -0
  112. package/fixtures/histories/child-abandon-outlives-parent.history.json +191 -0
  113. package/fixtures/histories/child-cancel-default.history.json +234 -0
  114. package/fixtures/histories/child-cancel-request.history.json +206 -0
  115. package/fixtures/histories/child-durable-child-side.history.json +124 -0
  116. package/fixtures/histories/child-durable-result.history.json +163 -0
  117. package/fixtures/histories/child-failure-caught.history.json +166 -0
  118. package/fixtures/histories/child-graph-by-key.history.json +138 -0
  119. package/fixtures/histories/child-terminated-by-parent-close.history.json +85 -0
  120. package/fixtures/histories/continue-as-new-first-run.history.json +146 -0
  121. package/fixtures/histories/continue-as-new-history-limit.history.json +489 -0
  122. package/fixtures/histories/continue-as-new-last-run.history.json +147 -0
  123. package/fixtures/histories/continue-as-new-suggested.history.json +352 -0
  124. package/fixtures/histories/details-and-context.history.json +176 -0
  125. package/fixtures/histories/deterministic-values.history.json +128 -0
  126. package/fixtures/histories/engine-builtins.history.json +172 -0
  127. package/fixtures/histories/gather-activities.history.json +291 -0
  128. package/fixtures/histories/gather-all-settled.history.json +219 -0
  129. package/fixtures/histories/gather-mixed.history.json +281 -0
  130. package/fixtures/histories/input-during-running-task.history.json +111 -0
  131. package/fixtures/histories/nondeterminism-reordered.history.json +218 -0
  132. package/fixtures/histories/patched-deprecated.history.json +271 -0
  133. package/fixtures/histories/patched-new-run.history.json +270 -0
  134. package/fixtures/histories/patched-old-history.history.json +190 -0
  135. package/fixtures/histories/race-activity-wins.history.json +152 -0
  136. package/fixtures/histories/race-signal-beats-child.history.json +161 -0
  137. package/fixtures/histories/race-timeout-wins.history.json +118 -0
  138. package/fixtures/histories/side-effect-recorded.history.json +153 -0
  139. package/fixtures/histories/signal-buffered-at-start.history.json +157 -0
  140. package/fixtures/histories/signal-default-handler.history.json +187 -0
  141. package/fixtures/histories/signal-handler.history.json +191 -0
  142. package/fixtures/histories/signal-parent-child-side.history.json +132 -0
  143. package/fixtures/histories/signal-parent.history.json +202 -0
  144. package/fixtures/histories/signal-run-delivered.history.json +128 -0
  145. package/fixtures/histories/signal-run-undelivered.history.json +134 -0
  146. package/fixtures/histories/signal-wait.history.json +111 -0
  147. package/fixtures/histories/task-failure-code-error.history.json +137 -0
  148. package/fixtures/histories/task-failure-then-transient-attempt.history.json +140 -0
  149. package/fixtures/histories/timer-condition-met.history.json +201 -0
  150. package/fixtures/histories/timer-condition-timeout.history.json +118 -0
  151. package/fixtures/histories/timer-sleep-once.history.json +118 -0
  152. package/fixtures/histories/timer-sleep-sequence.history.json +210 -0
  153. package/fixtures/histories/update-accepted-completed.history.json +149 -0
  154. package/fixtures/histories/update-with-start-rejected-validation.history.json +91 -0
  155. package/package.json +44 -5
  156. package/schema/history-file.schema.json +2544 -0
  157. package/schema/ir-v2.schema.json +16 -0
  158. package/schema/run-event.schema.json +2374 -0
  159. package/schema/workflow-command.schema.json +1095 -0
  160. package/schema/workflow-task.schema.json +3560 -0
  161. package/dist/chunk-MBBKGD7K.js +0 -440
  162. package/dist/chunk-Y7NWR3WH.cjs +0 -450
  163. package/dist/lower-CXggJTIo.d.ts +0 -67
  164. package/dist/lower-DAzvsJCo.d.cts +0 -67
  165. package/dist/node-evaluator-CH3XCJND.cjs +0 -17
  166. package/dist/node-evaluator-TULXA3WE.js +0 -8
@@ -0,0 +1,325 @@
1
+ {
2
+ "format": "fluidgrids.history",
3
+ "formatVersion": 1,
4
+ "name": "cancel-saga-compensations",
5
+ "description": "saga.compensate() after a cancel request runs every compensation in a non-cancellable scope, also after its awaits.",
6
+ "source": "src/scopes.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": "sagaAfterCancel",
17
+ "events": [
18
+ {
19
+ "seq": 1,
20
+ "type": "WORKFLOW_STARTED",
21
+ "payload": {
22
+ "workflowFn": "sagaAfterCancel",
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": "TIMER_STARTED",
58
+ "payload": {
59
+ "timerId": "t1",
60
+ "durationMs": 86400000,
61
+ "fireAt": "2026-01-02T00:00:00.000Z"
62
+ },
63
+ "createdAt": "2026-01-01T00:00:00.000Z",
64
+ "taskId": "run-1-task-1"
65
+ },
66
+ {
67
+ "seq": 6,
68
+ "type": "WORKFLOW_CANCEL_REQUESTED",
69
+ "payload": {},
70
+ "createdAt": "2026-01-01T00:00:00.000Z"
71
+ },
72
+ {
73
+ "seq": 7,
74
+ "type": "WORKFLOW_TASK_SCHEDULED",
75
+ "payload": {
76
+ "taskId": "run-1-task-2"
77
+ },
78
+ "createdAt": "2026-01-01T00:00:00.000Z"
79
+ },
80
+ {
81
+ "seq": 8,
82
+ "type": "WORKFLOW_TASK_STARTED",
83
+ "payload": {
84
+ "taskId": "run-1-task-2",
85
+ "attempt": 1
86
+ },
87
+ "createdAt": "2026-01-01T00:00:00.000Z"
88
+ },
89
+ {
90
+ "seq": 9,
91
+ "type": "WORKFLOW_TASK_COMPLETED",
92
+ "payload": {
93
+ "taskId": "run-1-task-2"
94
+ },
95
+ "createdAt": "2026-01-01T00:00:00.000Z",
96
+ "taskId": "run-1-task-2"
97
+ },
98
+ {
99
+ "seq": 10,
100
+ "type": "TIMER_CANCELLED",
101
+ "payload": {
102
+ "timerId": "t1"
103
+ },
104
+ "createdAt": "2026-01-01T00:00:00.000Z",
105
+ "taskId": "run-1-task-2"
106
+ },
107
+ {
108
+ "seq": 11,
109
+ "type": "ACTIVITY_SCHEDULED",
110
+ "payload": {
111
+ "activityId": "a1",
112
+ "kind": "node",
113
+ "nodeType": "internal:http",
114
+ "operation": "execute",
115
+ "args": {
116
+ "url": "https://example.test/undo/2"
117
+ },
118
+ "retry": {
119
+ "retryDelay": 1000,
120
+ "backoffMultiplier": 2,
121
+ "maxDelay": 100000
122
+ }
123
+ },
124
+ "createdAt": "2026-01-01T00:00:00.000Z",
125
+ "taskId": "run-1-task-2"
126
+ },
127
+ {
128
+ "seq": 12,
129
+ "type": "ACTIVITY_STARTED",
130
+ "payload": {
131
+ "activityId": "a1",
132
+ "attempt": 1
133
+ },
134
+ "createdAt": "2026-01-01T00:00:00.000Z"
135
+ },
136
+ {
137
+ "seq": 13,
138
+ "type": "ACTIVITY_COMPLETED",
139
+ "payload": {
140
+ "activityId": "a1",
141
+ "attempt": 1,
142
+ "result": {
143
+ "status": 200,
144
+ "url": "https://example.test/undo/2"
145
+ }
146
+ },
147
+ "createdAt": "2026-01-01T00:00:00.000Z"
148
+ },
149
+ {
150
+ "seq": 14,
151
+ "type": "WORKFLOW_TASK_SCHEDULED",
152
+ "payload": {
153
+ "taskId": "run-1-task-3"
154
+ },
155
+ "createdAt": "2026-01-01T00:00:00.000Z"
156
+ },
157
+ {
158
+ "seq": 15,
159
+ "type": "WORKFLOW_TASK_STARTED",
160
+ "payload": {
161
+ "taskId": "run-1-task-3",
162
+ "attempt": 1
163
+ },
164
+ "createdAt": "2026-01-01T00:00:00.000Z"
165
+ },
166
+ {
167
+ "seq": 16,
168
+ "type": "WORKFLOW_TASK_COMPLETED",
169
+ "payload": {
170
+ "taskId": "run-1-task-3"
171
+ },
172
+ "createdAt": "2026-01-01T00:00:00.000Z",
173
+ "taskId": "run-1-task-3"
174
+ },
175
+ {
176
+ "seq": 17,
177
+ "type": "ACTIVITY_SCHEDULED",
178
+ "payload": {
179
+ "activityId": "a2",
180
+ "kind": "node",
181
+ "nodeType": "internal:http",
182
+ "operation": "execute",
183
+ "args": {
184
+ "url": "https://example.test/undo/1a"
185
+ },
186
+ "retry": {
187
+ "retryDelay": 1000,
188
+ "backoffMultiplier": 2,
189
+ "maxDelay": 100000
190
+ }
191
+ },
192
+ "createdAt": "2026-01-01T00:00:00.000Z",
193
+ "taskId": "run-1-task-3"
194
+ },
195
+ {
196
+ "seq": 18,
197
+ "type": "ACTIVITY_STARTED",
198
+ "payload": {
199
+ "activityId": "a2",
200
+ "attempt": 1
201
+ },
202
+ "createdAt": "2026-01-01T00:00:00.000Z"
203
+ },
204
+ {
205
+ "seq": 19,
206
+ "type": "ACTIVITY_COMPLETED",
207
+ "payload": {
208
+ "activityId": "a2",
209
+ "attempt": 1,
210
+ "result": {
211
+ "status": 200,
212
+ "url": "https://example.test/undo/1a"
213
+ }
214
+ },
215
+ "createdAt": "2026-01-01T00:00:00.000Z"
216
+ },
217
+ {
218
+ "seq": 20,
219
+ "type": "WORKFLOW_TASK_SCHEDULED",
220
+ "payload": {
221
+ "taskId": "run-1-task-4"
222
+ },
223
+ "createdAt": "2026-01-01T00:00:00.000Z"
224
+ },
225
+ {
226
+ "seq": 21,
227
+ "type": "WORKFLOW_TASK_STARTED",
228
+ "payload": {
229
+ "taskId": "run-1-task-4",
230
+ "attempt": 1
231
+ },
232
+ "createdAt": "2026-01-01T00:00:00.000Z"
233
+ },
234
+ {
235
+ "seq": 22,
236
+ "type": "WORKFLOW_TASK_COMPLETED",
237
+ "payload": {
238
+ "taskId": "run-1-task-4"
239
+ },
240
+ "createdAt": "2026-01-01T00:00:00.000Z",
241
+ "taskId": "run-1-task-4"
242
+ },
243
+ {
244
+ "seq": 23,
245
+ "type": "ACTIVITY_SCHEDULED",
246
+ "payload": {
247
+ "activityId": "a3",
248
+ "kind": "node",
249
+ "nodeType": "internal:http",
250
+ "operation": "execute",
251
+ "args": {
252
+ "url": "https://example.test/undo/1b"
253
+ },
254
+ "retry": {
255
+ "retryDelay": 1000,
256
+ "backoffMultiplier": 2,
257
+ "maxDelay": 100000
258
+ }
259
+ },
260
+ "createdAt": "2026-01-01T00:00:00.000Z",
261
+ "taskId": "run-1-task-4"
262
+ },
263
+ {
264
+ "seq": 24,
265
+ "type": "ACTIVITY_STARTED",
266
+ "payload": {
267
+ "activityId": "a3",
268
+ "attempt": 1
269
+ },
270
+ "createdAt": "2026-01-01T00:00:00.000Z"
271
+ },
272
+ {
273
+ "seq": 25,
274
+ "type": "ACTIVITY_COMPLETED",
275
+ "payload": {
276
+ "activityId": "a3",
277
+ "attempt": 1,
278
+ "result": {
279
+ "status": 200,
280
+ "url": "https://example.test/undo/1b"
281
+ }
282
+ },
283
+ "createdAt": "2026-01-01T00:00:00.000Z"
284
+ },
285
+ {
286
+ "seq": 26,
287
+ "type": "WORKFLOW_TASK_SCHEDULED",
288
+ "payload": {
289
+ "taskId": "run-1-task-5"
290
+ },
291
+ "createdAt": "2026-01-01T00:00:00.000Z"
292
+ },
293
+ {
294
+ "seq": 27,
295
+ "type": "WORKFLOW_TASK_STARTED",
296
+ "payload": {
297
+ "taskId": "run-1-task-5",
298
+ "attempt": 1
299
+ },
300
+ "createdAt": "2026-01-01T00:00:00.000Z"
301
+ },
302
+ {
303
+ "seq": 28,
304
+ "type": "WORKFLOW_TASK_COMPLETED",
305
+ "payload": {
306
+ "taskId": "run-1-task-5"
307
+ },
308
+ "createdAt": "2026-01-01T00:00:00.000Z",
309
+ "taskId": "run-1-task-5"
310
+ },
311
+ {
312
+ "seq": 29,
313
+ "type": "WORKFLOW_CANCELLED",
314
+ "payload": {},
315
+ "createdAt": "2026-01-01T00:00:00.000Z",
316
+ "taskId": "run-1-task-5"
317
+ }
318
+ ],
319
+ "expected": {
320
+ "protocol": 1,
321
+ "outcome": "commands",
322
+ "commands": [],
323
+ "logs": []
324
+ }
325
+ }
@@ -0,0 +1,148 @@
1
+ {
2
+ "format": "fluidgrids.history",
3
+ "formatVersion": 1,
4
+ "name": "cancel-scope-timeout",
5
+ "description": "A cancellation scope with a 30 s timeout cancels its TRY_CANCEL activity, which rejects at once.",
6
+ "source": "src/cancellation.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": 1767225630000,
16
+ "workflowFn": "scopeTimeout",
17
+ "events": [
18
+ {
19
+ "seq": 1,
20
+ "type": "WORKFLOW_STARTED",
21
+ "payload": {
22
+ "workflowFn": "scopeTimeout",
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": "TIMER_STARTED",
58
+ "payload": {
59
+ "timerId": "t1",
60
+ "durationMs": 30000,
61
+ "fireAt": "2026-01-01T00:00:30.000Z"
62
+ },
63
+ "createdAt": "2026-01-01T00:00:00.000Z",
64
+ "taskId": "run-1-task-1"
65
+ },
66
+ {
67
+ "seq": 6,
68
+ "type": "ACTIVITY_SCHEDULED",
69
+ "payload": {
70
+ "activityId": "a1",
71
+ "kind": "node",
72
+ "nodeType": "internal:http",
73
+ "operation": "execute",
74
+ "args": {
75
+ "url": "https://example.test/slow"
76
+ },
77
+ "retry": {
78
+ "retryDelay": 1000,
79
+ "backoffMultiplier": 2,
80
+ "maxDelay": 100000
81
+ },
82
+ "cancellationType": "TRY_CANCEL"
83
+ },
84
+ "createdAt": "2026-01-01T00:00:00.000Z",
85
+ "taskId": "run-1-task-1"
86
+ },
87
+ {
88
+ "seq": 7,
89
+ "type": "TIMER_FIRED",
90
+ "payload": {
91
+ "timerId": "t1"
92
+ },
93
+ "createdAt": "2026-01-01T00:00:30.000Z"
94
+ },
95
+ {
96
+ "seq": 8,
97
+ "type": "WORKFLOW_TASK_SCHEDULED",
98
+ "payload": {
99
+ "taskId": "run-1-task-2"
100
+ },
101
+ "createdAt": "2026-01-01T00:00:30.000Z"
102
+ },
103
+ {
104
+ "seq": 9,
105
+ "type": "WORKFLOW_TASK_STARTED",
106
+ "payload": {
107
+ "taskId": "run-1-task-2",
108
+ "attempt": 1
109
+ },
110
+ "createdAt": "2026-01-01T00:00:30.000Z"
111
+ },
112
+ {
113
+ "seq": 10,
114
+ "type": "WORKFLOW_TASK_COMPLETED",
115
+ "payload": {
116
+ "taskId": "run-1-task-2"
117
+ },
118
+ "createdAt": "2026-01-01T00:00:30.000Z",
119
+ "taskId": "run-1-task-2"
120
+ },
121
+ {
122
+ "seq": 11,
123
+ "type": "ACTIVITY_CANCEL_REQUESTED",
124
+ "payload": {
125
+ "activityId": "a1"
126
+ },
127
+ "createdAt": "2026-01-01T00:00:30.000Z",
128
+ "taskId": "run-1-task-2"
129
+ },
130
+ {
131
+ "seq": 12,
132
+ "type": "WORKFLOW_COMPLETED",
133
+ "payload": {
134
+ "output": {
135
+ "timedOut": true
136
+ }
137
+ },
138
+ "createdAt": "2026-01-01T00:00:30.000Z",
139
+ "taskId": "run-1-task-2"
140
+ }
141
+ ],
142
+ "expected": {
143
+ "protocol": 1,
144
+ "outcome": "commands",
145
+ "commands": [],
146
+ "logs": []
147
+ }
148
+ }
@@ -0,0 +1,191 @@
1
+ {
2
+ "format": "fluidgrids.history",
3
+ "formatVersion": 1,
4
+ "name": "child-abandon-outlives-parent",
5
+ "description": "startChild defaults to ABANDON: the parent completes while its child keeps running.",
6
+ "source": "src/children.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": "abandonChild",
17
+ "events": [
18
+ {
19
+ "seq": 1,
20
+ "type": "WORKFLOW_STARTED",
21
+ "payload": {
22
+ "workflowFn": "abandonChild",
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": "CHILD_RUN_INITIATED",
58
+ "payload": {
59
+ "childId": "c1",
60
+ "workflowFn": "longChild",
61
+ "input": null,
62
+ "options": {
63
+ "parentClosePolicy": "ABANDON"
64
+ }
65
+ },
66
+ "createdAt": "2026-01-01T00:00:00.000Z",
67
+ "taskId": "run-1-task-1"
68
+ },
69
+ {
70
+ "seq": 6,
71
+ "type": "CHILD_RUN_STARTED",
72
+ "payload": {
73
+ "childId": "c1",
74
+ "childRunId": "run-2",
75
+ "executionKind": "DURABLE_FN"
76
+ },
77
+ "createdAt": "2026-01-01T00:00:00.000Z"
78
+ },
79
+ {
80
+ "seq": 7,
81
+ "type": "WORKFLOW_TASK_SCHEDULED",
82
+ "payload": {
83
+ "taskId": "run-1-task-2"
84
+ },
85
+ "createdAt": "2026-01-01T00:00:00.000Z"
86
+ },
87
+ {
88
+ "seq": 8,
89
+ "type": "WORKFLOW_TASK_STARTED",
90
+ "payload": {
91
+ "taskId": "run-1-task-2",
92
+ "attempt": 1
93
+ },
94
+ "createdAt": "2026-01-01T00:00:00.000Z"
95
+ },
96
+ {
97
+ "seq": 9,
98
+ "type": "WORKFLOW_TASK_COMPLETED",
99
+ "payload": {
100
+ "taskId": "run-1-task-2"
101
+ },
102
+ "createdAt": "2026-01-01T00:00:00.000Z",
103
+ "taskId": "run-1-task-2"
104
+ },
105
+ {
106
+ "seq": 10,
107
+ "type": "ACTIVITY_SCHEDULED",
108
+ "payload": {
109
+ "activityId": "a1",
110
+ "kind": "node",
111
+ "nodeType": "internal:http",
112
+ "operation": "execute",
113
+ "args": {
114
+ "url": "https://example.test/parent-work"
115
+ },
116
+ "retry": {
117
+ "retryDelay": 1000,
118
+ "backoffMultiplier": 2,
119
+ "maxDelay": 100000
120
+ }
121
+ },
122
+ "createdAt": "2026-01-01T00:00:00.000Z",
123
+ "taskId": "run-1-task-2"
124
+ },
125
+ {
126
+ "seq": 11,
127
+ "type": "ACTIVITY_STARTED",
128
+ "payload": {
129
+ "activityId": "a1",
130
+ "attempt": 1
131
+ },
132
+ "createdAt": "2026-01-01T00:00:00.000Z"
133
+ },
134
+ {
135
+ "seq": 12,
136
+ "type": "ACTIVITY_COMPLETED",
137
+ "payload": {
138
+ "activityId": "a1",
139
+ "attempt": 1,
140
+ "result": {
141
+ "status": 200,
142
+ "url": "https://example.test/parent-work"
143
+ }
144
+ },
145
+ "createdAt": "2026-01-01T00:00:00.000Z"
146
+ },
147
+ {
148
+ "seq": 13,
149
+ "type": "WORKFLOW_TASK_SCHEDULED",
150
+ "payload": {
151
+ "taskId": "run-1-task-3"
152
+ },
153
+ "createdAt": "2026-01-01T00:00:00.000Z"
154
+ },
155
+ {
156
+ "seq": 14,
157
+ "type": "WORKFLOW_TASK_STARTED",
158
+ "payload": {
159
+ "taskId": "run-1-task-3",
160
+ "attempt": 1
161
+ },
162
+ "createdAt": "2026-01-01T00:00:00.000Z"
163
+ },
164
+ {
165
+ "seq": 15,
166
+ "type": "WORKFLOW_TASK_COMPLETED",
167
+ "payload": {
168
+ "taskId": "run-1-task-3"
169
+ },
170
+ "createdAt": "2026-01-01T00:00:00.000Z",
171
+ "taskId": "run-1-task-3"
172
+ },
173
+ {
174
+ "seq": 16,
175
+ "type": "WORKFLOW_COMPLETED",
176
+ "payload": {
177
+ "output": {
178
+ "child": "run-2"
179
+ }
180
+ },
181
+ "createdAt": "2026-01-01T00:00:00.000Z",
182
+ "taskId": "run-1-task-3"
183
+ }
184
+ ],
185
+ "expected": {
186
+ "protocol": 1,
187
+ "outcome": "commands",
188
+ "commands": [],
189
+ "logs": []
190
+ }
191
+ }