@fluidgrids/workflows 2026.1027.1 → 2026.1028.2

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-2J6TF7YI.cjs +86 -0
  7. package/dist/chunk-4LYSEANA.js +199 -0
  8. package/dist/chunk-623FVQSN.cjs +251 -0
  9. package/dist/{chunk-W32BSO3M.js → chunk-6FSHT5IL.js} +2 -2
  10. package/dist/{chunk-E3APHA6O.cjs → chunk-7AAZGVKD.js} +1 -64
  11. package/dist/chunk-ABFZWYHT.js +612 -0
  12. package/dist/{chunk-6U446SKY.js → chunk-BD7ZPG53.js} +2 -2
  13. package/dist/chunk-BO6OVILK.js +79 -0
  14. package/dist/chunk-C5OLWZ42.js +245 -0
  15. package/dist/{chunk-OSPTJCDI.cjs → chunk-CPDK3K5N.cjs} +6 -6
  16. package/dist/chunk-DHTLALBL.cjs +80 -0
  17. package/dist/chunk-DJYMDLV5.js +227 -0
  18. package/dist/{chunk-IHKXLG6I.js → chunk-E2VK7J2C.js} +1 -1
  19. package/dist/{chunk-3M34AUIY.cjs → chunk-FEW3JBYA.cjs} +3 -3
  20. package/dist/chunk-FMSW2HDF.cjs +267 -0
  21. package/dist/chunk-FR7KYWRO.cjs +41 -0
  22. package/dist/{chunk-7YR7DI7B.cjs → chunk-GBQ33SIZ.cjs} +44 -44
  23. package/dist/{chunk-6AIAC2FP.cjs → chunk-GVTZMA5C.cjs} +4 -4
  24. package/dist/{chunk-EEAIM35V.js → chunk-HWJZVOG7.js} +64 -23
  25. package/dist/chunk-I5LR3D2K.js +869 -0
  26. package/dist/chunk-IISBRUWJ.js +13 -0
  27. package/dist/chunk-JD2VQIDZ.cjs +15 -0
  28. package/dist/{chunk-UB2BHU2M.js → chunk-JZ4TOOLN.js} +1 -1
  29. package/dist/chunk-L24YIZY7.cjs +207 -0
  30. package/dist/chunk-LNUQE6D6.js +39 -0
  31. package/dist/chunk-M4BBAERY.cjs +1635 -0
  32. package/dist/chunk-N23SKIG4.js +73 -0
  33. package/dist/{chunk-TWOYB4Y7.cjs → chunk-NEIUQASE.cjs} +13 -13
  34. package/dist/chunk-P6TA5EZT.cjs +634 -0
  35. package/dist/chunk-PMCM2OH4.js +46 -0
  36. package/dist/chunk-PZCVF76Q.cjs +868 -0
  37. package/dist/{chunk-6BEW4QD6.js → chunk-QAN5MZEM.js} +1 -1
  38. package/dist/{chunk-CSYBNN3V.cjs → chunk-QKZL3ONM.cjs} +2 -2
  39. package/dist/chunk-QQ6ULXHI.cjs +885 -0
  40. package/dist/chunk-SAENRNBJ.cjs +52 -0
  41. package/dist/{chunk-TQF7MYEN.cjs → chunk-SAOBPYYJ.cjs} +134 -96
  42. package/dist/{chunk-XBIID5DY.js → chunk-SMCANK3F.js} +5 -4
  43. package/dist/{chunk-UWQWD7BP.cjs → chunk-SX2PNKKT.cjs} +18 -17
  44. package/dist/{chunk-UJNHTS6D.js → chunk-TBDXTV22.cjs} +8 -45
  45. package/dist/chunk-UK3WM7YZ.cjs +75 -0
  46. package/dist/chunk-VOKMAAJP.js +848 -0
  47. package/dist/chunk-VRHHBPT6.js +1622 -0
  48. package/dist/{chunk-5AW745OG.js → chunk-XHXIDVEC.js} +1 -1
  49. package/dist/chunk-XKJA7KX3.js +72 -0
  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-BzmUz0sq.d.cts +129 -0
  70. package/dist/lower-_-iT4HYs.d.ts +129 -0
  71. package/dist/lower-types-DQNBfWQn.d.cts +37 -0
  72. package/dist/lower-types-DQNBfWQn.d.ts +37 -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-4MSDKWOG.cjs +22 -0
  76. package/dist/node-evaluator-SX4LEYQC.js +12 -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,352 @@
1
+ {
2
+ "format": "fluidgrids.history",
3
+ "formatVersion": 1,
4
+ "name": "continue-as-new-suggested",
5
+ "description": "A loop runs until continueAsNewSuggested turns true (40-event cap); replay sees the value each task saw.",
6
+ "source": "src/continue-as-new.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
+ "historyLimit": {
14
+ "events": 40,
15
+ "bytes": 16777216
16
+ },
17
+ "runId": "run-1"
18
+ },
19
+ "nowMs": 1767225606000,
20
+ "workflowFn": "suggested",
21
+ "events": [
22
+ {
23
+ "seq": 1,
24
+ "type": "WORKFLOW_STARTED",
25
+ "payload": {
26
+ "workflowFn": "suggested",
27
+ "input": {
28
+ "round": 0
29
+ },
30
+ "taskQueue": "managed",
31
+ "randomnessSeed": "run-1"
32
+ },
33
+ "createdAt": "2026-01-01T00:00:00.000Z"
34
+ },
35
+ {
36
+ "seq": 2,
37
+ "type": "WORKFLOW_TASK_SCHEDULED",
38
+ "payload": {
39
+ "taskId": "run-1-task-1"
40
+ },
41
+ "createdAt": "2026-01-01T00:00:00.000Z"
42
+ },
43
+ {
44
+ "seq": 3,
45
+ "type": "WORKFLOW_TASK_STARTED",
46
+ "payload": {
47
+ "taskId": "run-1-task-1",
48
+ "attempt": 1
49
+ },
50
+ "createdAt": "2026-01-01T00:00:00.000Z"
51
+ },
52
+ {
53
+ "seq": 4,
54
+ "type": "WORKFLOW_TASK_COMPLETED",
55
+ "payload": {
56
+ "taskId": "run-1-task-1"
57
+ },
58
+ "createdAt": "2026-01-01T00:00:00.000Z",
59
+ "taskId": "run-1-task-1"
60
+ },
61
+ {
62
+ "seq": 5,
63
+ "type": "TIMER_STARTED",
64
+ "payload": {
65
+ "timerId": "t1",
66
+ "durationMs": 1000,
67
+ "fireAt": "2026-01-01T00:00:01.000Z"
68
+ },
69
+ "createdAt": "2026-01-01T00:00:00.000Z",
70
+ "taskId": "run-1-task-1"
71
+ },
72
+ {
73
+ "seq": 6,
74
+ "type": "TIMER_FIRED",
75
+ "payload": {
76
+ "timerId": "t1"
77
+ },
78
+ "createdAt": "2026-01-01T00:00:01.000Z"
79
+ },
80
+ {
81
+ "seq": 7,
82
+ "type": "WORKFLOW_TASK_SCHEDULED",
83
+ "payload": {
84
+ "taskId": "run-1-task-2"
85
+ },
86
+ "createdAt": "2026-01-01T00:00:01.000Z"
87
+ },
88
+ {
89
+ "seq": 8,
90
+ "type": "WORKFLOW_TASK_STARTED",
91
+ "payload": {
92
+ "taskId": "run-1-task-2",
93
+ "attempt": 1
94
+ },
95
+ "createdAt": "2026-01-01T00:00:01.000Z"
96
+ },
97
+ {
98
+ "seq": 9,
99
+ "type": "WORKFLOW_TASK_COMPLETED",
100
+ "payload": {
101
+ "taskId": "run-1-task-2"
102
+ },
103
+ "createdAt": "2026-01-01T00:00:01.000Z",
104
+ "taskId": "run-1-task-2"
105
+ },
106
+ {
107
+ "seq": 10,
108
+ "type": "TIMER_STARTED",
109
+ "payload": {
110
+ "timerId": "t2",
111
+ "durationMs": 1000,
112
+ "fireAt": "2026-01-01T00:00:02.000Z"
113
+ },
114
+ "createdAt": "2026-01-01T00:00:01.000Z",
115
+ "taskId": "run-1-task-2"
116
+ },
117
+ {
118
+ "seq": 11,
119
+ "type": "TIMER_FIRED",
120
+ "payload": {
121
+ "timerId": "t2"
122
+ },
123
+ "createdAt": "2026-01-01T00:00:02.000Z"
124
+ },
125
+ {
126
+ "seq": 12,
127
+ "type": "WORKFLOW_TASK_SCHEDULED",
128
+ "payload": {
129
+ "taskId": "run-1-task-3"
130
+ },
131
+ "createdAt": "2026-01-01T00:00:02.000Z"
132
+ },
133
+ {
134
+ "seq": 13,
135
+ "type": "WORKFLOW_TASK_STARTED",
136
+ "payload": {
137
+ "taskId": "run-1-task-3",
138
+ "attempt": 1
139
+ },
140
+ "createdAt": "2026-01-01T00:00:02.000Z"
141
+ },
142
+ {
143
+ "seq": 14,
144
+ "type": "WORKFLOW_TASK_COMPLETED",
145
+ "payload": {
146
+ "taskId": "run-1-task-3"
147
+ },
148
+ "createdAt": "2026-01-01T00:00:02.000Z",
149
+ "taskId": "run-1-task-3"
150
+ },
151
+ {
152
+ "seq": 15,
153
+ "type": "TIMER_STARTED",
154
+ "payload": {
155
+ "timerId": "t3",
156
+ "durationMs": 1000,
157
+ "fireAt": "2026-01-01T00:00:03.000Z"
158
+ },
159
+ "createdAt": "2026-01-01T00:00:02.000Z",
160
+ "taskId": "run-1-task-3"
161
+ },
162
+ {
163
+ "seq": 16,
164
+ "type": "TIMER_FIRED",
165
+ "payload": {
166
+ "timerId": "t3"
167
+ },
168
+ "createdAt": "2026-01-01T00:00:03.000Z"
169
+ },
170
+ {
171
+ "seq": 17,
172
+ "type": "WORKFLOW_TASK_SCHEDULED",
173
+ "payload": {
174
+ "taskId": "run-1-task-4"
175
+ },
176
+ "createdAt": "2026-01-01T00:00:03.000Z"
177
+ },
178
+ {
179
+ "seq": 18,
180
+ "type": "WORKFLOW_TASK_STARTED",
181
+ "payload": {
182
+ "taskId": "run-1-task-4",
183
+ "attempt": 1
184
+ },
185
+ "createdAt": "2026-01-01T00:00:03.000Z"
186
+ },
187
+ {
188
+ "seq": 19,
189
+ "type": "WORKFLOW_TASK_COMPLETED",
190
+ "payload": {
191
+ "taskId": "run-1-task-4"
192
+ },
193
+ "createdAt": "2026-01-01T00:00:03.000Z",
194
+ "taskId": "run-1-task-4"
195
+ },
196
+ {
197
+ "seq": 20,
198
+ "type": "TIMER_STARTED",
199
+ "payload": {
200
+ "timerId": "t4",
201
+ "durationMs": 1000,
202
+ "fireAt": "2026-01-01T00:00:04.000Z"
203
+ },
204
+ "createdAt": "2026-01-01T00:00:03.000Z",
205
+ "taskId": "run-1-task-4"
206
+ },
207
+ {
208
+ "seq": 21,
209
+ "type": "TIMER_FIRED",
210
+ "payload": {
211
+ "timerId": "t4"
212
+ },
213
+ "createdAt": "2026-01-01T00:00:04.000Z"
214
+ },
215
+ {
216
+ "seq": 22,
217
+ "type": "WORKFLOW_TASK_SCHEDULED",
218
+ "payload": {
219
+ "taskId": "run-1-task-5"
220
+ },
221
+ "createdAt": "2026-01-01T00:00:04.000Z"
222
+ },
223
+ {
224
+ "seq": 23,
225
+ "type": "WORKFLOW_TASK_STARTED",
226
+ "payload": {
227
+ "taskId": "run-1-task-5",
228
+ "attempt": 1
229
+ },
230
+ "createdAt": "2026-01-01T00:00:04.000Z"
231
+ },
232
+ {
233
+ "seq": 24,
234
+ "type": "WORKFLOW_TASK_COMPLETED",
235
+ "payload": {
236
+ "taskId": "run-1-task-5"
237
+ },
238
+ "createdAt": "2026-01-01T00:00:04.000Z",
239
+ "taskId": "run-1-task-5"
240
+ },
241
+ {
242
+ "seq": 25,
243
+ "type": "TIMER_STARTED",
244
+ "payload": {
245
+ "timerId": "t5",
246
+ "durationMs": 1000,
247
+ "fireAt": "2026-01-01T00:00:05.000Z"
248
+ },
249
+ "createdAt": "2026-01-01T00:00:04.000Z",
250
+ "taskId": "run-1-task-5"
251
+ },
252
+ {
253
+ "seq": 26,
254
+ "type": "TIMER_FIRED",
255
+ "payload": {
256
+ "timerId": "t5"
257
+ },
258
+ "createdAt": "2026-01-01T00:00:05.000Z"
259
+ },
260
+ {
261
+ "seq": 27,
262
+ "type": "WORKFLOW_TASK_SCHEDULED",
263
+ "payload": {
264
+ "taskId": "run-1-task-6"
265
+ },
266
+ "createdAt": "2026-01-01T00:00:05.000Z"
267
+ },
268
+ {
269
+ "seq": 28,
270
+ "type": "WORKFLOW_TASK_STARTED",
271
+ "payload": {
272
+ "taskId": "run-1-task-6",
273
+ "attempt": 1
274
+ },
275
+ "createdAt": "2026-01-01T00:00:05.000Z"
276
+ },
277
+ {
278
+ "seq": 29,
279
+ "type": "WORKFLOW_TASK_COMPLETED",
280
+ "payload": {
281
+ "taskId": "run-1-task-6"
282
+ },
283
+ "createdAt": "2026-01-01T00:00:05.000Z",
284
+ "taskId": "run-1-task-6"
285
+ },
286
+ {
287
+ "seq": 30,
288
+ "type": "TIMER_STARTED",
289
+ "payload": {
290
+ "timerId": "t6",
291
+ "durationMs": 1000,
292
+ "fireAt": "2026-01-01T00:00:06.000Z"
293
+ },
294
+ "createdAt": "2026-01-01T00:00:05.000Z",
295
+ "taskId": "run-1-task-6"
296
+ },
297
+ {
298
+ "seq": 31,
299
+ "type": "TIMER_FIRED",
300
+ "payload": {
301
+ "timerId": "t6"
302
+ },
303
+ "createdAt": "2026-01-01T00:00:06.000Z"
304
+ },
305
+ {
306
+ "seq": 32,
307
+ "type": "WORKFLOW_TASK_SCHEDULED",
308
+ "payload": {
309
+ "taskId": "run-1-task-7"
310
+ },
311
+ "createdAt": "2026-01-01T00:00:06.000Z"
312
+ },
313
+ {
314
+ "seq": 33,
315
+ "type": "WORKFLOW_TASK_STARTED",
316
+ "payload": {
317
+ "taskId": "run-1-task-7",
318
+ "attempt": 1
319
+ },
320
+ "createdAt": "2026-01-01T00:00:06.000Z"
321
+ },
322
+ {
323
+ "seq": 34,
324
+ "type": "WORKFLOW_TASK_COMPLETED",
325
+ "payload": {
326
+ "taskId": "run-1-task-7"
327
+ },
328
+ "createdAt": "2026-01-01T00:00:06.000Z",
329
+ "taskId": "run-1-task-7"
330
+ },
331
+ {
332
+ "seq": 35,
333
+ "type": "WORKFLOW_CONTINUED_AS_NEW",
334
+ "payload": {
335
+ "input": {
336
+ "round": 1
337
+ },
338
+ "options": {
339
+ "taskQueue": "managed"
340
+ }
341
+ },
342
+ "createdAt": "2026-01-01T00:00:06.000Z",
343
+ "taskId": "run-1-task-7"
344
+ }
345
+ ],
346
+ "expected": {
347
+ "protocol": 1,
348
+ "outcome": "commands",
349
+ "commands": [],
350
+ "logs": []
351
+ }
352
+ }
@@ -0,0 +1,176 @@
1
+ {
2
+ "format": "fluidgrids.history",
3
+ "formatVersion": 1,
4
+ "name": "details-and-context",
5
+ "description": "setCurrentDetails() markers and an UPSERT_CONTEXT command; log lines are not part of history.",
6
+ "source": "src/side-effects.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": "detailsAndContext",
17
+ "events": [
18
+ {
19
+ "seq": 1,
20
+ "type": "WORKFLOW_STARTED",
21
+ "payload": {
22
+ "workflowFn": "detailsAndContext",
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": "MARKER_RECORDED",
58
+ "payload": {
59
+ "markerId": "m1",
60
+ "data": {
61
+ "currentDetails": "**step 1** of 2"
62
+ }
63
+ },
64
+ "createdAt": "2026-01-01T00:00:00.000Z",
65
+ "taskId": "run-1-task-1"
66
+ },
67
+ {
68
+ "seq": 6,
69
+ "type": "CONTEXT_UPSERTED",
70
+ "payload": {
71
+ "entries": {
72
+ "customer": "c-9"
73
+ }
74
+ },
75
+ "createdAt": "2026-01-01T00:00:00.000Z",
76
+ "taskId": "run-1-task-1"
77
+ },
78
+ {
79
+ "seq": 7,
80
+ "type": "ACTIVITY_SCHEDULED",
81
+ "payload": {
82
+ "activityId": "a1",
83
+ "kind": "node",
84
+ "nodeType": "internal:http",
85
+ "operation": "execute",
86
+ "args": {
87
+ "url": "https://example.test/step-2"
88
+ },
89
+ "retry": {
90
+ "retryDelay": 1000,
91
+ "backoffMultiplier": 2,
92
+ "maxDelay": 100000
93
+ }
94
+ },
95
+ "createdAt": "2026-01-01T00:00:00.000Z",
96
+ "taskId": "run-1-task-1"
97
+ },
98
+ {
99
+ "seq": 8,
100
+ "type": "ACTIVITY_STARTED",
101
+ "payload": {
102
+ "activityId": "a1",
103
+ "attempt": 1
104
+ },
105
+ "createdAt": "2026-01-01T00:00:00.000Z"
106
+ },
107
+ {
108
+ "seq": 9,
109
+ "type": "ACTIVITY_COMPLETED",
110
+ "payload": {
111
+ "activityId": "a1",
112
+ "attempt": 1,
113
+ "result": {
114
+ "status": 200,
115
+ "url": "https://example.test/step-2"
116
+ }
117
+ },
118
+ "createdAt": "2026-01-01T00:00:00.000Z"
119
+ },
120
+ {
121
+ "seq": 10,
122
+ "type": "WORKFLOW_TASK_SCHEDULED",
123
+ "payload": {
124
+ "taskId": "run-1-task-2"
125
+ },
126
+ "createdAt": "2026-01-01T00:00:00.000Z"
127
+ },
128
+ {
129
+ "seq": 11,
130
+ "type": "WORKFLOW_TASK_STARTED",
131
+ "payload": {
132
+ "taskId": "run-1-task-2",
133
+ "attempt": 1
134
+ },
135
+ "createdAt": "2026-01-01T00:00:00.000Z"
136
+ },
137
+ {
138
+ "seq": 12,
139
+ "type": "WORKFLOW_TASK_COMPLETED",
140
+ "payload": {
141
+ "taskId": "run-1-task-2"
142
+ },
143
+ "createdAt": "2026-01-01T00:00:00.000Z",
144
+ "taskId": "run-1-task-2"
145
+ },
146
+ {
147
+ "seq": 13,
148
+ "type": "MARKER_RECORDED",
149
+ "payload": {
150
+ "markerId": "m2",
151
+ "data": {
152
+ "currentDetails": "**done**"
153
+ }
154
+ },
155
+ "createdAt": "2026-01-01T00:00:00.000Z",
156
+ "taskId": "run-1-task-2"
157
+ },
158
+ {
159
+ "seq": 14,
160
+ "type": "WORKFLOW_COMPLETED",
161
+ "payload": {
162
+ "output": {
163
+ "ok": true
164
+ }
165
+ },
166
+ "createdAt": "2026-01-01T00:00:00.000Z",
167
+ "taskId": "run-1-task-2"
168
+ }
169
+ ],
170
+ "expected": {
171
+ "protocol": 1,
172
+ "outcome": "commands",
173
+ "commands": [],
174
+ "logs": []
175
+ }
176
+ }
@@ -0,0 +1,128 @@
1
+ {
2
+ "format": "fluidgrids.history",
3
+ "formatVersion": 1,
4
+ "name": "deterministic-values",
5
+ "description": "ctx.now(), ctx.random(), ctx.uuid() and the Date/Math.random shims give the same values on replay.",
6
+ "source": "src/side-effects.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": 1767225660000,
16
+ "workflowFn": "deterministicValues",
17
+ "events": [
18
+ {
19
+ "seq": 1,
20
+ "type": "WORKFLOW_STARTED",
21
+ "payload": {
22
+ "workflowFn": "deterministicValues",
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": 60000,
61
+ "fireAt": "2026-01-01T00:01:00.000Z"
62
+ },
63
+ "createdAt": "2026-01-01T00:00:00.000Z",
64
+ "taskId": "run-1-task-1"
65
+ },
66
+ {
67
+ "seq": 6,
68
+ "type": "TIMER_FIRED",
69
+ "payload": {
70
+ "timerId": "t1"
71
+ },
72
+ "createdAt": "2026-01-01T00:01:00.000Z"
73
+ },
74
+ {
75
+ "seq": 7,
76
+ "type": "WORKFLOW_TASK_SCHEDULED",
77
+ "payload": {
78
+ "taskId": "run-1-task-2"
79
+ },
80
+ "createdAt": "2026-01-01T00:01:00.000Z"
81
+ },
82
+ {
83
+ "seq": 8,
84
+ "type": "WORKFLOW_TASK_STARTED",
85
+ "payload": {
86
+ "taskId": "run-1-task-2",
87
+ "attempt": 1
88
+ },
89
+ "createdAt": "2026-01-01T00:01:00.000Z"
90
+ },
91
+ {
92
+ "seq": 9,
93
+ "type": "WORKFLOW_TASK_COMPLETED",
94
+ "payload": {
95
+ "taskId": "run-1-task-2"
96
+ },
97
+ "createdAt": "2026-01-01T00:01:00.000Z",
98
+ "taskId": "run-1-task-2"
99
+ },
100
+ {
101
+ "seq": 10,
102
+ "type": "WORKFLOW_COMPLETED",
103
+ "payload": {
104
+ "output": {
105
+ "first": {
106
+ "now": 1767225600000,
107
+ "random": 0.06483014556579292,
108
+ "uuid": "a71641aa-bc1d-46be-a51a-96337f391762"
109
+ },
110
+ "later": 1767225660000,
111
+ "shimmed": {
112
+ "dateNow": 1767225660000,
113
+ "mathRandom": 0.501738199731335,
114
+ "iso": "2026-01-01T00:01:00.000Z"
115
+ }
116
+ }
117
+ },
118
+ "createdAt": "2026-01-01T00:01:00.000Z",
119
+ "taskId": "run-1-task-2"
120
+ }
121
+ ],
122
+ "expected": {
123
+ "protocol": 1,
124
+ "outcome": "commands",
125
+ "commands": [],
126
+ "logs": []
127
+ }
128
+ }