@fluidgrids/workflows 2026.1029.1 → 2026.1030.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 (118) hide show
  1. package/README.md +112 -4
  2. package/dist/{activation-CESehfYi.d.cts → activation-DqUfpHzk.d.cts} +1 -1
  3. package/dist/{activation-BnVQMv9y.d.ts → activation-xpx1oWuo.d.ts} +1 -1
  4. package/dist/{chunk-MJ5TGYVG.js → chunk-2D3MYIIF.js} +969 -153
  5. package/dist/{chunk-2B37XAFQ.cjs → chunk-3U2NU7YC.cjs} +24 -11
  6. package/dist/{chunk-NEIUQASE.cjs → chunk-4QKB4ARC.cjs} +3 -3
  7. package/dist/{chunk-GBQ33SIZ.cjs → chunk-54FLQNUM.cjs} +12 -1
  8. package/dist/{chunk-2DDULZFM.js → chunk-5HIVIV53.js} +86 -75
  9. package/dist/chunk-5MFVJM76.js +1222 -0
  10. package/dist/{chunk-EWYADREB.cjs → chunk-672KMMBK.cjs} +2 -2
  11. package/dist/{chunk-KXJDRQ6G.js → chunk-6A2FGSUS.js} +22 -2
  12. package/dist/{chunk-OIX4O6UR.js → chunk-6OLN6BMB.js} +16 -3
  13. package/dist/{chunk-6FSHT5IL.js → chunk-7EZIANC7.js} +1 -1
  14. package/dist/chunk-A5SXCA62.cjs +93 -0
  15. package/dist/chunk-AC6ZEXVR.js +85 -0
  16. package/dist/{chunk-FWBRQWRX.js → chunk-AE5Q6ZAJ.js} +167 -10
  17. package/dist/{chunk-7ILGCUI6.js → chunk-C4F5KJTI.js} +142 -3
  18. package/dist/{chunk-WXXNCHUY.js → chunk-G5H32GIG.js} +1 -1
  19. package/dist/{chunk-OMY3CKUZ.cjs → chunk-GEQDGUGB.cjs} +1042 -226
  20. package/dist/{chunk-25BKWR2O.js → chunk-HCM7ZC7Q.js} +1 -1
  21. package/dist/{chunk-I47EENR4.cjs → chunk-HMZUGSMU.cjs} +673 -156
  22. package/dist/{chunk-NXFBVDOI.cjs → chunk-IQPXHQQQ.cjs} +8 -4
  23. package/dist/{chunk-RUQIMTN5.cjs → chunk-ISOIA7NV.cjs} +178 -15
  24. package/dist/chunk-JSC75O5C.cjs +167 -0
  25. package/dist/{chunk-BD7ZPG53.js → chunk-NWQ5WRLE.js} +10 -2
  26. package/dist/chunk-ODZ2IAR2.cjs +1247 -0
  27. package/dist/{chunk-FQSJI5NV.js → chunk-SR7TR5KX.js} +6 -2
  28. package/dist/{chunk-OKX3FYIM.cjs → chunk-TCTE7DX5.cjs} +3 -3
  29. package/dist/{chunk-3FIDHONL.cjs → chunk-TYF56RGB.cjs} +99 -80
  30. package/dist/{chunk-J3PYFGKA.cjs → chunk-VA4OFR72.cjs} +162 -4
  31. package/dist/chunk-VU5S5A7V.js +150 -0
  32. package/dist/{chunk-A36CCOWS.js → chunk-YEHR4NNE.js} +633 -128
  33. package/dist/{chunk-ELL2RBML.cjs → chunk-ZCGKGDCL.cjs} +23 -1
  34. package/dist/codegen/index.d.cts +2 -2
  35. package/dist/codegen/index.d.ts +2 -2
  36. package/dist/{collect-BTHjQaSp.d.ts → collect-6NIEufHd.d.ts} +20 -3
  37. package/dist/{collect-CSyOg5XC.d.cts → collect-CcTCKqx6.d.cts} +20 -3
  38. package/dist/{file-cgL9l9l8.d.cts → file-BxYpwjRQ.d.cts} +250 -15
  39. package/dist/{file-olQudcx5.d.ts → file-CFdPQJI9.d.ts} +250 -15
  40. package/dist/history/index.cjs +283 -106
  41. package/dist/history/index.d.cts +549 -10
  42. package/dist/history/index.d.ts +549 -10
  43. package/dist/history/index.js +5 -4
  44. package/dist/index.cjs +146 -53
  45. package/dist/index.d.cts +38 -14
  46. package/dist/index.d.ts +38 -14
  47. package/dist/index.js +6 -5
  48. package/dist/interceptors-CNcr2dlk.d.ts +159 -0
  49. package/dist/interceptors-CqkNZVfI.d.cts +159 -0
  50. package/dist/ir/index.cjs +339 -36
  51. package/dist/ir/index.d.cts +244 -8
  52. package/dist/ir/index.d.ts +244 -8
  53. package/dist/ir/index.js +306 -21
  54. package/dist/{lower-3S6PsqjJ.d.cts → lower-BtRfIW2A.d.cts} +23 -9
  55. package/dist/{lower-DmZpQ8hJ.d.ts → lower-CpsMFOFX.d.ts} +23 -9
  56. package/dist/{manifest-BJjrQt77.d.ts → manifest-D-I_twys.d.ts} +1 -1
  57. package/dist/{manifest-gRI2Q5Fj.d.cts → manifest-DahBQVM8.d.cts} +1 -1
  58. package/dist/node-evaluator-DGQDPSPI.cjs +24 -0
  59. package/dist/node-evaluator-LEEVD7H7.js +14 -0
  60. package/dist/payload-fields-BVRQn2yH.d.cts +122 -0
  61. package/dist/payload-fields-oOBWxDiG.d.ts +122 -0
  62. package/dist/quickjs/index.cjs +27 -27
  63. package/dist/quickjs/index.d.cts +6 -6
  64. package/dist/quickjs/index.d.ts +6 -6
  65. package/dist/quickjs/index.js +9 -9
  66. package/dist/roundtrip/index.cjs +72 -66
  67. package/dist/roundtrip/index.d.cts +25 -11
  68. package/dist/roundtrip/index.d.ts +25 -11
  69. package/dist/roundtrip/index.js +13 -11
  70. package/dist/runtime/index.cjs +19 -19
  71. package/dist/runtime/index.d.cts +139 -12
  72. package/dist/runtime/index.d.ts +139 -12
  73. package/dist/runtime/index.js +6 -6
  74. package/dist/testing/index.cjs +688 -121
  75. package/dist/testing/index.d.cts +174 -10
  76. package/dist/testing/index.d.ts +174 -10
  77. package/dist/testing/index.js +646 -82
  78. package/dist/{types-CnIOinoz.d.ts → types-Bv2i4cBX.d.cts} +126 -23
  79. package/dist/{types-CQKOhPTa.d.cts → types-DGx-b9eq.d.ts} +126 -23
  80. package/dist/{types-Bb2wRnJ5.d.cts → types-V7jEEUaL.d.cts} +1 -1
  81. package/dist/{types-Bb2wRnJ5.d.ts → types-V7jEEUaL.d.ts} +1 -1
  82. package/dist/{workflow-8uRU9rhL.d.ts → workflow-B18OeF7g.d.ts} +2 -2
  83. package/dist/{workflow-DWTPHFbt.d.ts → workflow-BGnv8SS6.d.ts} +261 -14
  84. package/dist/{workflow-CZOXUlQ5.d.cts → workflow-BJPFv3cp.d.cts} +2 -2
  85. package/dist/{workflow-O6e64ZcG.d.cts → workflow-DS32Gtws.d.cts} +261 -14
  86. package/fixtures/histories/activity-options-updated.history.json +159 -0
  87. package/fixtures/histories/activity-paused-unpaused.history.json +160 -0
  88. package/fixtures/histories/codec-opaque.history.json +229 -0
  89. package/fixtures/histories/dynamic-workflow.history.json +150 -0
  90. package/fixtures/histories/interceptor-headers.history.json +339 -0
  91. package/fixtures/histories/query-custom.history.json +213 -0
  92. package/fixtures/histories/query-default-handler.history.json +120 -0
  93. package/fixtures/histories/reset-forked-reapplied-signals.history.json +239 -0
  94. package/fixtures/histories/reset-reapplied-update-admitted.history.json +228 -0
  95. package/fixtures/histories/search-attributes-upserted.history.json +177 -0
  96. package/fixtures/histories/update-accepted-completed.history.json +45 -30
  97. package/fixtures/histories/update-default-handler.history.json +246 -0
  98. package/fixtures/histories/update-handler-awaits-activity.history.json +196 -0
  99. package/fixtures/histories/update-not-handled.history.json +138 -0
  100. package/fixtures/histories/update-rejected-no-event.history.json +190 -0
  101. package/fixtures/histories/update-with-start-admitted.history.json +150 -0
  102. package/fixtures/histories/user-activity-cancel.history.json +149 -0
  103. package/fixtures/histories/user-activity-retry.history.json +143 -0
  104. package/fixtures/histories/user-activity.history.json +149 -0
  105. package/package.json +1 -1
  106. package/schema/bridge-v2.schema.json +1062 -0
  107. package/schema/history-file.schema.json +255 -81
  108. package/schema/ir-v2.schema.json +246 -1
  109. package/schema/payload-fields.json +162 -0
  110. package/schema/run-event.schema.json +239 -80
  111. package/schema/workflow-command.schema.json +210 -84
  112. package/schema/workflow-task.schema.json +532 -167
  113. package/dist/chunk-6QPOJZT6.cjs +0 -1180
  114. package/dist/chunk-A2OHX3UQ.js +0 -1156
  115. package/dist/chunk-PWIUEWC3.js +0 -81
  116. package/dist/chunk-YHBVMOMK.cjs +0 -87
  117. package/dist/node-evaluator-SOADN23V.js +0 -14
  118. package/dist/node-evaluator-YGDEXK4U.cjs +0 -24
@@ -0,0 +1,339 @@
1
+ {
2
+ "format": "fluidgrids.history",
3
+ "formatVersion": 1,
4
+ "name": "interceptor-headers",
5
+ "description": "Exported interceptors copy the start header traceparent onto every activity and child (ACTIVITY_SCHEDULED, CHILD_RUN_INITIATED headers) and wrap signals with their sender header.",
6
+ "source": "src/phase-c-interceptors.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": "traced",
17
+ "events": [
18
+ {
19
+ "seq": 1,
20
+ "type": "WORKFLOW_STARTED",
21
+ "payload": {
22
+ "workflowFn": "traced",
23
+ "input": null,
24
+ "taskQueue": "managed",
25
+ "randomnessSeed": "run-1",
26
+ "headers": {
27
+ "traceparent": "00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01"
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/traced"
68
+ },
69
+ "retry": {
70
+ "retryDelay": 1000,
71
+ "backoffMultiplier": 2,
72
+ "maxDelay": 100000
73
+ },
74
+ "headers": {
75
+ "traceparent": "00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01"
76
+ }
77
+ },
78
+ "createdAt": "2026-01-01T00:00:00.000Z",
79
+ "taskId": "run-1-task-1"
80
+ },
81
+ {
82
+ "seq": 6,
83
+ "type": "ACTIVITY_STARTED",
84
+ "payload": {
85
+ "activityId": "a1",
86
+ "attempt": 1
87
+ },
88
+ "createdAt": "2026-01-01T00:00:00.000Z"
89
+ },
90
+ {
91
+ "seq": 7,
92
+ "type": "ACTIVITY_COMPLETED",
93
+ "payload": {
94
+ "activityId": "a1",
95
+ "attempt": 1,
96
+ "result": {
97
+ "status": 200,
98
+ "url": "https://example.test/traced"
99
+ }
100
+ },
101
+ "createdAt": "2026-01-01T00:00:00.000Z"
102
+ },
103
+ {
104
+ "seq": 8,
105
+ "type": "WORKFLOW_TASK_SCHEDULED",
106
+ "payload": {
107
+ "taskId": "run-1-task-2"
108
+ },
109
+ "createdAt": "2026-01-01T00:00:00.000Z"
110
+ },
111
+ {
112
+ "seq": 9,
113
+ "type": "WORKFLOW_TASK_STARTED",
114
+ "payload": {
115
+ "taskId": "run-1-task-2",
116
+ "attempt": 1
117
+ },
118
+ "createdAt": "2026-01-01T00:00:00.000Z"
119
+ },
120
+ {
121
+ "seq": 10,
122
+ "type": "WORKFLOW_TASK_COMPLETED",
123
+ "payload": {
124
+ "taskId": "run-1-task-2"
125
+ },
126
+ "createdAt": "2026-01-01T00:00:00.000Z",
127
+ "taskId": "run-1-task-2"
128
+ },
129
+ {
130
+ "seq": 11,
131
+ "type": "CHILD_RUN_INITIATED",
132
+ "payload": {
133
+ "childId": "c1",
134
+ "workflowKey": "graph-child",
135
+ "input": {
136
+ "n": 1
137
+ },
138
+ "options": {
139
+ "parentClosePolicy": "TERMINATE"
140
+ },
141
+ "headers": {
142
+ "traceparent": "00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01"
143
+ }
144
+ },
145
+ "createdAt": "2026-01-01T00:00:00.000Z",
146
+ "taskId": "run-1-task-2"
147
+ },
148
+ {
149
+ "seq": 12,
150
+ "type": "CHILD_RUN_STARTED",
151
+ "payload": {
152
+ "childId": "c1",
153
+ "childRunId": "run-1-c1",
154
+ "executionKind": "GRAPH"
155
+ },
156
+ "createdAt": "2026-01-01T00:00:00.000Z"
157
+ },
158
+ {
159
+ "seq": 13,
160
+ "type": "WORKFLOW_TASK_SCHEDULED",
161
+ "payload": {
162
+ "taskId": "run-1-task-3"
163
+ },
164
+ "createdAt": "2026-01-01T00:00:00.000Z"
165
+ },
166
+ {
167
+ "seq": 14,
168
+ "type": "CHILD_RUN_COMPLETED",
169
+ "payload": {
170
+ "childId": "c1",
171
+ "childRunId": "run-1-c1",
172
+ "result": {
173
+ "echoed": {
174
+ "n": 1
175
+ }
176
+ }
177
+ },
178
+ "createdAt": "2026-01-01T00:00:00.000Z"
179
+ },
180
+ {
181
+ "seq": 15,
182
+ "type": "WORKFLOW_TASK_STARTED",
183
+ "payload": {
184
+ "taskId": "run-1-task-3",
185
+ "attempt": 1
186
+ },
187
+ "createdAt": "2026-01-01T00:00:00.000Z"
188
+ },
189
+ {
190
+ "seq": 16,
191
+ "type": "WORKFLOW_TASK_COMPLETED",
192
+ "payload": {
193
+ "taskId": "run-1-task-3"
194
+ },
195
+ "createdAt": "2026-01-01T00:00:00.000Z",
196
+ "taskId": "run-1-task-3"
197
+ },
198
+ {
199
+ "seq": 17,
200
+ "type": "ACTIVITY_SCHEDULED",
201
+ "payload": {
202
+ "activityId": "a2",
203
+ "kind": "user",
204
+ "activityName": "billing.charge",
205
+ "taskQueue": "payments",
206
+ "args": {
207
+ "amount": 3
208
+ },
209
+ "retry": {
210
+ "retryDelay": 1000,
211
+ "backoffMultiplier": 2,
212
+ "maxDelay": 100000
213
+ },
214
+ "headers": {
215
+ "traceparent": "00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01"
216
+ }
217
+ },
218
+ "createdAt": "2026-01-01T00:00:00.000Z",
219
+ "taskId": "run-1-task-3"
220
+ },
221
+ {
222
+ "seq": 18,
223
+ "type": "ACTIVITY_STARTED",
224
+ "payload": {
225
+ "activityId": "a2",
226
+ "attempt": 1
227
+ },
228
+ "createdAt": "2026-01-01T00:00:00.000Z"
229
+ },
230
+ {
231
+ "seq": 19,
232
+ "type": "ACTIVITY_COMPLETED",
233
+ "payload": {
234
+ "activityId": "a2",
235
+ "attempt": 1,
236
+ "result": {
237
+ "chargeId": "ch_t"
238
+ }
239
+ },
240
+ "createdAt": "2026-01-01T00:00:00.000Z"
241
+ },
242
+ {
243
+ "seq": 20,
244
+ "type": "WORKFLOW_TASK_SCHEDULED",
245
+ "payload": {
246
+ "taskId": "run-1-task-4"
247
+ },
248
+ "createdAt": "2026-01-01T00:00:00.000Z"
249
+ },
250
+ {
251
+ "seq": 21,
252
+ "type": "WORKFLOW_TASK_STARTED",
253
+ "payload": {
254
+ "taskId": "run-1-task-4",
255
+ "attempt": 1
256
+ },
257
+ "createdAt": "2026-01-01T00:00:00.000Z"
258
+ },
259
+ {
260
+ "seq": 22,
261
+ "type": "WORKFLOW_TASK_COMPLETED",
262
+ "payload": {
263
+ "taskId": "run-1-task-4"
264
+ },
265
+ "createdAt": "2026-01-01T00:00:00.000Z",
266
+ "taskId": "run-1-task-4"
267
+ },
268
+ {
269
+ "seq": 23,
270
+ "type": "SIGNAL_RECEIVED",
271
+ "payload": {
272
+ "name": "note",
273
+ "payload": {
274
+ "text": "hi"
275
+ },
276
+ "receivedAt": "2026-01-01T00:00:00.000Z",
277
+ "headers": {
278
+ "sender": "ops"
279
+ }
280
+ },
281
+ "createdAt": "2026-01-01T00:00:00.000Z"
282
+ },
283
+ {
284
+ "seq": 24,
285
+ "type": "WORKFLOW_TASK_SCHEDULED",
286
+ "payload": {
287
+ "taskId": "run-1-task-5"
288
+ },
289
+ "createdAt": "2026-01-01T00:00:00.000Z"
290
+ },
291
+ {
292
+ "seq": 25,
293
+ "type": "WORKFLOW_TASK_STARTED",
294
+ "payload": {
295
+ "taskId": "run-1-task-5",
296
+ "attempt": 1
297
+ },
298
+ "createdAt": "2026-01-01T00:00:00.000Z"
299
+ },
300
+ {
301
+ "seq": 26,
302
+ "type": "WORKFLOW_TASK_COMPLETED",
303
+ "payload": {
304
+ "taskId": "run-1-task-5"
305
+ },
306
+ "createdAt": "2026-01-01T00:00:00.000Z",
307
+ "taskId": "run-1-task-5"
308
+ },
309
+ {
310
+ "seq": 27,
311
+ "type": "WORKFLOW_COMPLETED",
312
+ "payload": {
313
+ "output": {
314
+ "child": {
315
+ "echoed": {
316
+ "n": 1
317
+ }
318
+ },
319
+ "seen": [
320
+ {
321
+ "from": "ops",
322
+ "payload": {
323
+ "text": "hi"
324
+ }
325
+ }
326
+ ]
327
+ }
328
+ },
329
+ "createdAt": "2026-01-01T00:00:00.000Z",
330
+ "taskId": "run-1-task-5"
331
+ }
332
+ ],
333
+ "expected": {
334
+ "protocol": 1,
335
+ "outcome": "commands",
336
+ "commands": [],
337
+ "logs": []
338
+ }
339
+ }
@@ -0,0 +1,213 @@
1
+ {
2
+ "format": "fluidgrids.history",
3
+ "formatVersion": 1,
4
+ "name": "query-custom",
5
+ "description": "A custom query handler reads the state two signals built; the query is answered from the replayed history and appends nothing.",
6
+ "source": "src/phase-c-queries.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": "counter",
17
+ "events": [
18
+ {
19
+ "seq": 1,
20
+ "type": "WORKFLOW_STARTED",
21
+ "payload": {
22
+ "workflowFn": "counter",
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": "SIGNAL_RECEIVED",
58
+ "payload": {
59
+ "name": "tick",
60
+ "payload": null,
61
+ "receivedAt": "2026-01-01T00:00:00.000Z"
62
+ },
63
+ "createdAt": "2026-01-01T00:00:00.000Z"
64
+ },
65
+ {
66
+ "seq": 6,
67
+ "type": "WORKFLOW_TASK_SCHEDULED",
68
+ "payload": {
69
+ "taskId": "run-1-task-2"
70
+ },
71
+ "createdAt": "2026-01-01T00:00:00.000Z"
72
+ },
73
+ {
74
+ "seq": 7,
75
+ "type": "WORKFLOW_TASK_STARTED",
76
+ "payload": {
77
+ "taskId": "run-1-task-2",
78
+ "attempt": 1
79
+ },
80
+ "createdAt": "2026-01-01T00:00:00.000Z"
81
+ },
82
+ {
83
+ "seq": 8,
84
+ "type": "WORKFLOW_TASK_COMPLETED",
85
+ "payload": {
86
+ "taskId": "run-1-task-2"
87
+ },
88
+ "createdAt": "2026-01-01T00:00:00.000Z",
89
+ "taskId": "run-1-task-2"
90
+ },
91
+ {
92
+ "seq": 9,
93
+ "type": "SIGNAL_RECEIVED",
94
+ "payload": {
95
+ "name": "tick",
96
+ "payload": null,
97
+ "receivedAt": "2026-01-01T00:00:00.000Z"
98
+ },
99
+ "createdAt": "2026-01-01T00:00:00.000Z"
100
+ },
101
+ {
102
+ "seq": 10,
103
+ "type": "WORKFLOW_TASK_SCHEDULED",
104
+ "payload": {
105
+ "taskId": "run-1-task-3"
106
+ },
107
+ "createdAt": "2026-01-01T00:00:00.000Z"
108
+ },
109
+ {
110
+ "seq": 11,
111
+ "type": "WORKFLOW_TASK_STARTED",
112
+ "payload": {
113
+ "taskId": "run-1-task-3",
114
+ "attempt": 1
115
+ },
116
+ "createdAt": "2026-01-01T00:00:00.000Z"
117
+ },
118
+ {
119
+ "seq": 12,
120
+ "type": "WORKFLOW_TASK_COMPLETED",
121
+ "payload": {
122
+ "taskId": "run-1-task-3"
123
+ },
124
+ "createdAt": "2026-01-01T00:00:00.000Z",
125
+ "taskId": "run-1-task-3"
126
+ },
127
+ {
128
+ "seq": 13,
129
+ "type": "ACTIVITY_SCHEDULED",
130
+ "payload": {
131
+ "activityId": "a1",
132
+ "kind": "node",
133
+ "nodeType": "internal:http",
134
+ "operation": "execute",
135
+ "args": {
136
+ "url": "https://example.test/work"
137
+ },
138
+ "retry": {
139
+ "retryDelay": 1000,
140
+ "backoffMultiplier": 2,
141
+ "maxDelay": 100000
142
+ }
143
+ },
144
+ "createdAt": "2026-01-01T00:00:00.000Z",
145
+ "taskId": "run-1-task-3"
146
+ },
147
+ {
148
+ "seq": 14,
149
+ "type": "ACTIVITY_STARTED",
150
+ "payload": {
151
+ "activityId": "a1",
152
+ "attempt": 1
153
+ },
154
+ "createdAt": "2026-01-01T00:00:00.000Z"
155
+ },
156
+ {
157
+ "seq": 15,
158
+ "type": "ACTIVITY_COMPLETED",
159
+ "payload": {
160
+ "activityId": "a1",
161
+ "attempt": 1,
162
+ "result": {
163
+ "status": 200,
164
+ "url": "https://example.test/work"
165
+ }
166
+ },
167
+ "createdAt": "2026-01-01T00:00:00.000Z"
168
+ },
169
+ {
170
+ "seq": 16,
171
+ "type": "WORKFLOW_TASK_SCHEDULED",
172
+ "payload": {
173
+ "taskId": "run-1-task-4"
174
+ },
175
+ "createdAt": "2026-01-01T00:00:00.000Z"
176
+ },
177
+ {
178
+ "seq": 17,
179
+ "type": "WORKFLOW_TASK_STARTED",
180
+ "payload": {
181
+ "taskId": "run-1-task-4",
182
+ "attempt": 1
183
+ },
184
+ "createdAt": "2026-01-01T00:00:00.000Z"
185
+ },
186
+ {
187
+ "seq": 18,
188
+ "type": "WORKFLOW_TASK_COMPLETED",
189
+ "payload": {
190
+ "taskId": "run-1-task-4"
191
+ },
192
+ "createdAt": "2026-01-01T00:00:00.000Z",
193
+ "taskId": "run-1-task-4"
194
+ },
195
+ {
196
+ "seq": 19,
197
+ "type": "WORKFLOW_COMPLETED",
198
+ "payload": {
199
+ "output": {
200
+ "count": 2
201
+ }
202
+ },
203
+ "createdAt": "2026-01-01T00:00:00.000Z",
204
+ "taskId": "run-1-task-4"
205
+ }
206
+ ],
207
+ "expected": {
208
+ "protocol": 1,
209
+ "outcome": "commands",
210
+ "commands": [],
211
+ "logs": []
212
+ }
213
+ }
@@ -0,0 +1,120 @@
1
+ {
2
+ "format": "fluidgrids.history",
3
+ "formatVersion": 1,
4
+ "name": "query-default-handler",
5
+ "description": "setDefaultQueryHandler answers every query name.",
6
+ "source": "src/phase-c-queries.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": "echoQueries",
17
+ "events": [
18
+ {
19
+ "seq": 1,
20
+ "type": "WORKFLOW_STARTED",
21
+ "payload": {
22
+ "workflowFn": "echoQueries",
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
+ "asked": [
106
+ "started"
107
+ ]
108
+ }
109
+ },
110
+ "createdAt": "2026-01-01T00:01:00.000Z",
111
+ "taskId": "run-1-task-2"
112
+ }
113
+ ],
114
+ "expected": {
115
+ "protocol": 1,
116
+ "outcome": "commands",
117
+ "commands": [],
118
+ "logs": []
119
+ }
120
+ }