@fluidgrids/workflows 2026.1027.0 → 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 (168) hide show
  1. package/README.md +170 -18
  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-KUTMY2IO.cjs → chunk-57MSZ24T.cjs} +162 -98
  11. package/dist/{chunk-BWSLWF2E.js → chunk-5HDSBTBX.js} +99 -32
  12. package/dist/chunk-623FVQSN.cjs +251 -0
  13. package/dist/{chunk-4DPEGDPW.js → chunk-6FSHT5IL.js} +4 -4
  14. package/dist/{chunk-REV7ZOA4.js → chunk-7AAZGVKD.js} +1 -35
  15. package/dist/chunk-7NQ37GZU.js +73 -0
  16. package/dist/chunk-ABFZWYHT.js +612 -0
  17. package/dist/{chunk-SS4LT2IP.js → chunk-BD7ZPG53.js} +5 -10
  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-LSKSBVL4.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-X4HKU3MX.js → chunk-E2VK7J2C.js} +3 -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-AU3YW7FZ.cjs → chunk-GBQ33SIZ.cjs} +46 -51
  29. package/dist/{chunk-RRQ5HOBF.cjs → chunk-GVTZMA5C.cjs} +4 -4
  30. package/dist/chunk-H7KEVW2M.js +816 -0
  31. package/dist/chunk-HR3BN4C4.cjs +27 -0
  32. package/dist/chunk-IISBRUWJ.js +13 -0
  33. package/dist/chunk-JD2VQIDZ.cjs +15 -0
  34. package/dist/{chunk-PL73GJR4.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-BYJ7QTLY.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-GO34UHSY.js → chunk-QAN5MZEM.js} +3 -3
  43. package/dist/{chunk-27HASETB.cjs → chunk-QKZL3ONM.cjs} +3 -1
  44. package/dist/chunk-SAENRNBJ.cjs +52 -0
  45. package/dist/{chunk-LMX35GNQ.js → chunk-SMCANK3F.js} +5 -4
  46. package/dist/{chunk-IZQNUNSU.cjs → chunk-SX2PNKKT.cjs} +18 -17
  47. package/dist/{chunk-LRM6JXJA.cjs → chunk-TBDXTV22.cjs} +0 -37
  48. package/dist/chunk-VOKMAAJP.js +848 -0
  49. package/dist/chunk-XB53G2DK.js +25 -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 +161 -165
  66. package/dist/ir/index.d.cts +32 -12
  67. package/dist/ir/index.d.ts +32 -12
  68. package/dist/ir/index.js +54 -61
  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 +256 -78
  78. package/dist/quickjs/index.d.cts +48 -7
  79. package/dist/quickjs/index.d.ts +48 -7
  80. package/dist/quickjs/index.js +254 -79
  81. package/dist/roundtrip/index.cjs +404 -129
  82. package/dist/roundtrip/index.d.cts +43 -8
  83. package/dist/roundtrip/index.d.ts +43 -8
  84. package/dist/roundtrip/index.js +260 -19
  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-DMOuaxRI.d.ts → workflow-Bpr3vnA_.d.ts} +60 -162
  98. package/dist/workflow-C2a05WUJ.d.ts +444 -0
  99. package/dist/{assemble-BJo9TECS.d.cts → workflow-FXUkpIBc.d.cts} +60 -162
  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 +85 -20
  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-265J2FCH.cjs +0 -33
  162. package/dist/chunk-LUXCXFOE.cjs +0 -269
  163. package/dist/chunk-S34NJE3A.js +0 -262
  164. package/dist/chunk-SRQRLWOS.js +0 -31
  165. package/dist/lower-DcOY8ux0.d.cts +0 -49
  166. package/dist/lower-Dw5grNrI.d.ts +0 -49
  167. package/dist/node-evaluator-2GTUZVPK.cjs +0 -17
  168. package/dist/node-evaluator-RMYEWCXZ.js +0 -8
@@ -0,0 +1,172 @@
1
+ {
2
+ "format": "fluidgrids.history",
3
+ "formatVersion": 1,
4
+ "name": "engine-builtins",
5
+ "description": "Local time, toString, toLocaleString, localeCompare, Intl and WeakRef behave the same in QuickJS and vm on any host time zone.",
6
+ "source": "src/engine.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": 1767225603000,
16
+ "workflowFn": "engineBuiltins",
17
+ "events": [
18
+ {
19
+ "seq": 1,
20
+ "type": "WORKFLOW_STARTED",
21
+ "payload": {
22
+ "workflowFn": "engineBuiltins",
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": 1000,
61
+ "fireAt": "2026-01-01T00:00:01.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:00:01.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:00:01.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:00:01.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:00:01.000Z",
98
+ "taskId": "run-1-task-2"
99
+ },
100
+ {
101
+ "seq": 10,
102
+ "type": "TIMER_STARTED",
103
+ "payload": {
104
+ "timerId": "t2",
105
+ "durationMs": 2000,
106
+ "fireAt": "2026-01-01T00:00:03.000Z"
107
+ },
108
+ "createdAt": "2026-01-01T00:00:01.000Z",
109
+ "taskId": "run-1-task-2"
110
+ },
111
+ {
112
+ "seq": 11,
113
+ "type": "TIMER_FIRED",
114
+ "payload": {
115
+ "timerId": "t2"
116
+ },
117
+ "createdAt": "2026-01-01T00:00:03.000Z"
118
+ },
119
+ {
120
+ "seq": 12,
121
+ "type": "WORKFLOW_TASK_SCHEDULED",
122
+ "payload": {
123
+ "taskId": "run-1-task-3"
124
+ },
125
+ "createdAt": "2026-01-01T00:00:03.000Z"
126
+ },
127
+ {
128
+ "seq": 13,
129
+ "type": "WORKFLOW_TASK_STARTED",
130
+ "payload": {
131
+ "taskId": "run-1-task-3",
132
+ "attempt": 1
133
+ },
134
+ "createdAt": "2026-01-01T00:00:03.000Z"
135
+ },
136
+ {
137
+ "seq": 14,
138
+ "type": "WORKFLOW_TASK_COMPLETED",
139
+ "payload": {
140
+ "taskId": "run-1-task-3"
141
+ },
142
+ "createdAt": "2026-01-01T00:00:03.000Z",
143
+ "taskId": "run-1-task-3"
144
+ },
145
+ {
146
+ "seq": 15,
147
+ "type": "WORKFLOW_COMPLETED",
148
+ "payload": {
149
+ "output": {
150
+ "hours": 0,
151
+ "offset": 0,
152
+ "text": "Thu Jan 01 2026 00:00:00 GMT+0000 (Coordinated Universal Time)",
153
+ "locale": "1/1/2026, 12:00:00 AM",
154
+ "number": "1,234,567.891",
155
+ "compare": "Bab",
156
+ "intl": "undefined",
157
+ "components": 1767323040000,
158
+ "parsed": 1767323045000,
159
+ "weakRef": "DeterminismViolation"
160
+ }
161
+ },
162
+ "createdAt": "2026-01-01T00:00:03.000Z",
163
+ "taskId": "run-1-task-3"
164
+ }
165
+ ],
166
+ "expected": {
167
+ "protocol": 1,
168
+ "outcome": "commands",
169
+ "commands": [],
170
+ "logs": []
171
+ }
172
+ }
@@ -0,0 +1,291 @@
1
+ {
2
+ "format": "fluidgrids.history",
3
+ "formatVersion": 1,
4
+ "name": "gather-activities",
5
+ "description": "Promise.all of three activities: three SCHEDULE_ACTIVITY commands in one task.",
6
+ "source": "src/gather.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": "gatherActivities",
17
+ "events": [
18
+ {
19
+ "seq": 1,
20
+ "type": "WORKFLOW_STARTED",
21
+ "payload": {
22
+ "workflowFn": "gatherActivities",
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": "ACTIVITY_SCHEDULED",
58
+ "payload": {
59
+ "activityId": "a1",
60
+ "kind": "node",
61
+ "nodeType": "internal:http",
62
+ "operation": "execute",
63
+ "args": {
64
+ "url": "https://example.test/a"
65
+ },
66
+ "retry": {
67
+ "retryDelay": 1000,
68
+ "backoffMultiplier": 2,
69
+ "maxDelay": 100000
70
+ }
71
+ },
72
+ "createdAt": "2026-01-01T00:00:00.000Z",
73
+ "taskId": "run-1-task-1"
74
+ },
75
+ {
76
+ "seq": 6,
77
+ "type": "ACTIVITY_SCHEDULED",
78
+ "payload": {
79
+ "activityId": "a2",
80
+ "kind": "node",
81
+ "nodeType": "internal:http",
82
+ "operation": "execute",
83
+ "args": {
84
+ "url": "https://example.test/b"
85
+ },
86
+ "retry": {
87
+ "retryDelay": 1000,
88
+ "backoffMultiplier": 2,
89
+ "maxDelay": 100000
90
+ }
91
+ },
92
+ "createdAt": "2026-01-01T00:00:00.000Z",
93
+ "taskId": "run-1-task-1"
94
+ },
95
+ {
96
+ "seq": 7,
97
+ "type": "ACTIVITY_SCHEDULED",
98
+ "payload": {
99
+ "activityId": "a3",
100
+ "kind": "node",
101
+ "nodeType": "internal:http",
102
+ "operation": "execute",
103
+ "args": {
104
+ "url": "https://example.test/c"
105
+ },
106
+ "retry": {
107
+ "retryDelay": 1000,
108
+ "backoffMultiplier": 2,
109
+ "maxDelay": 100000
110
+ }
111
+ },
112
+ "createdAt": "2026-01-01T00:00:00.000Z",
113
+ "taskId": "run-1-task-1"
114
+ },
115
+ {
116
+ "seq": 8,
117
+ "type": "ACTIVITY_STARTED",
118
+ "payload": {
119
+ "activityId": "a1",
120
+ "attempt": 1
121
+ },
122
+ "createdAt": "2026-01-01T00:00:00.000Z"
123
+ },
124
+ {
125
+ "seq": 9,
126
+ "type": "ACTIVITY_COMPLETED",
127
+ "payload": {
128
+ "activityId": "a1",
129
+ "attempt": 1,
130
+ "result": {
131
+ "status": 200,
132
+ "url": "https://example.test/a"
133
+ }
134
+ },
135
+ "createdAt": "2026-01-01T00:00:00.000Z"
136
+ },
137
+ {
138
+ "seq": 10,
139
+ "type": "WORKFLOW_TASK_SCHEDULED",
140
+ "payload": {
141
+ "taskId": "run-1-task-2"
142
+ },
143
+ "createdAt": "2026-01-01T00:00:00.000Z"
144
+ },
145
+ {
146
+ "seq": 11,
147
+ "type": "WORKFLOW_TASK_STARTED",
148
+ "payload": {
149
+ "taskId": "run-1-task-2",
150
+ "attempt": 1
151
+ },
152
+ "createdAt": "2026-01-01T00:00:00.000Z"
153
+ },
154
+ {
155
+ "seq": 12,
156
+ "type": "WORKFLOW_TASK_COMPLETED",
157
+ "payload": {
158
+ "taskId": "run-1-task-2"
159
+ },
160
+ "createdAt": "2026-01-01T00:00:00.000Z",
161
+ "taskId": "run-1-task-2"
162
+ },
163
+ {
164
+ "seq": 13,
165
+ "type": "ACTIVITY_STARTED",
166
+ "payload": {
167
+ "activityId": "a2",
168
+ "attempt": 1
169
+ },
170
+ "createdAt": "2026-01-01T00:00:00.000Z"
171
+ },
172
+ {
173
+ "seq": 14,
174
+ "type": "ACTIVITY_COMPLETED",
175
+ "payload": {
176
+ "activityId": "a2",
177
+ "attempt": 1,
178
+ "result": {
179
+ "status": 200,
180
+ "url": "https://example.test/b"
181
+ }
182
+ },
183
+ "createdAt": "2026-01-01T00:00:00.000Z"
184
+ },
185
+ {
186
+ "seq": 15,
187
+ "type": "WORKFLOW_TASK_SCHEDULED",
188
+ "payload": {
189
+ "taskId": "run-1-task-3"
190
+ },
191
+ "createdAt": "2026-01-01T00:00:00.000Z"
192
+ },
193
+ {
194
+ "seq": 16,
195
+ "type": "WORKFLOW_TASK_STARTED",
196
+ "payload": {
197
+ "taskId": "run-1-task-3",
198
+ "attempt": 1
199
+ },
200
+ "createdAt": "2026-01-01T00:00:00.000Z"
201
+ },
202
+ {
203
+ "seq": 17,
204
+ "type": "WORKFLOW_TASK_COMPLETED",
205
+ "payload": {
206
+ "taskId": "run-1-task-3"
207
+ },
208
+ "createdAt": "2026-01-01T00:00:00.000Z",
209
+ "taskId": "run-1-task-3"
210
+ },
211
+ {
212
+ "seq": 18,
213
+ "type": "ACTIVITY_STARTED",
214
+ "payload": {
215
+ "activityId": "a3",
216
+ "attempt": 1
217
+ },
218
+ "createdAt": "2026-01-01T00:00:00.000Z"
219
+ },
220
+ {
221
+ "seq": 19,
222
+ "type": "ACTIVITY_COMPLETED",
223
+ "payload": {
224
+ "activityId": "a3",
225
+ "attempt": 1,
226
+ "result": {
227
+ "status": 200,
228
+ "url": "https://example.test/c"
229
+ }
230
+ },
231
+ "createdAt": "2026-01-01T00:00:00.000Z"
232
+ },
233
+ {
234
+ "seq": 20,
235
+ "type": "WORKFLOW_TASK_SCHEDULED",
236
+ "payload": {
237
+ "taskId": "run-1-task-4"
238
+ },
239
+ "createdAt": "2026-01-01T00:00:00.000Z"
240
+ },
241
+ {
242
+ "seq": 21,
243
+ "type": "WORKFLOW_TASK_STARTED",
244
+ "payload": {
245
+ "taskId": "run-1-task-4",
246
+ "attempt": 1
247
+ },
248
+ "createdAt": "2026-01-01T00:00:00.000Z"
249
+ },
250
+ {
251
+ "seq": 22,
252
+ "type": "WORKFLOW_TASK_COMPLETED",
253
+ "payload": {
254
+ "taskId": "run-1-task-4"
255
+ },
256
+ "createdAt": "2026-01-01T00:00:00.000Z",
257
+ "taskId": "run-1-task-4"
258
+ },
259
+ {
260
+ "seq": 23,
261
+ "type": "WORKFLOW_COMPLETED",
262
+ "payload": {
263
+ "output": {
264
+ "count": 3,
265
+ "results": [
266
+ {
267
+ "status": 200,
268
+ "url": "https://example.test/a"
269
+ },
270
+ {
271
+ "status": 200,
272
+ "url": "https://example.test/b"
273
+ },
274
+ {
275
+ "status": 200,
276
+ "url": "https://example.test/c"
277
+ }
278
+ ]
279
+ }
280
+ },
281
+ "createdAt": "2026-01-01T00:00:00.000Z",
282
+ "taskId": "run-1-task-4"
283
+ }
284
+ ],
285
+ "expected": {
286
+ "protocol": 1,
287
+ "outcome": "commands",
288
+ "commands": [],
289
+ "logs": []
290
+ }
291
+ }
@@ -0,0 +1,219 @@
1
+ {
2
+ "format": "fluidgrids.history",
3
+ "formatVersion": 1,
4
+ "name": "gather-all-settled",
5
+ "description": "Promise.allSettled with one non-retried activity failure.",
6
+ "source": "src/gather.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": "gatherSettled",
17
+ "events": [
18
+ {
19
+ "seq": 1,
20
+ "type": "WORKFLOW_STARTED",
21
+ "payload": {
22
+ "workflowFn": "gatherSettled",
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": "ACTIVITY_SCHEDULED",
58
+ "payload": {
59
+ "activityId": "a1",
60
+ "kind": "node",
61
+ "nodeType": "store/slack",
62
+ "operation": "sendMessage",
63
+ "args": {
64
+ "channel": "#ok",
65
+ "text": "one"
66
+ },
67
+ "retry": {
68
+ "retryDelay": 1000,
69
+ "backoffMultiplier": 2,
70
+ "maxDelay": 100000,
71
+ "maxRetries": 0
72
+ },
73
+ "nodeVersion": "1.0.0"
74
+ },
75
+ "createdAt": "2026-01-01T00:00:00.000Z",
76
+ "taskId": "run-1-task-1"
77
+ },
78
+ {
79
+ "seq": 6,
80
+ "type": "ACTIVITY_SCHEDULED",
81
+ "payload": {
82
+ "activityId": "a2",
83
+ "kind": "node",
84
+ "nodeType": "store/slack",
85
+ "operation": "sendMessage",
86
+ "args": {
87
+ "channel": "#broken",
88
+ "text": "two"
89
+ },
90
+ "retry": {
91
+ "retryDelay": 1000,
92
+ "backoffMultiplier": 2,
93
+ "maxDelay": 100000,
94
+ "maxRetries": 0
95
+ },
96
+ "nodeVersion": "1.0.0"
97
+ },
98
+ "createdAt": "2026-01-01T00:00:00.000Z",
99
+ "taskId": "run-1-task-1"
100
+ },
101
+ {
102
+ "seq": 7,
103
+ "type": "ACTIVITY_STARTED",
104
+ "payload": {
105
+ "activityId": "a1",
106
+ "attempt": 1
107
+ },
108
+ "createdAt": "2026-01-01T00:00:00.000Z"
109
+ },
110
+ {
111
+ "seq": 8,
112
+ "type": "ACTIVITY_COMPLETED",
113
+ "payload": {
114
+ "activityId": "a1",
115
+ "attempt": 1,
116
+ "result": {
117
+ "ts": "1"
118
+ }
119
+ },
120
+ "createdAt": "2026-01-01T00:00:00.000Z"
121
+ },
122
+ {
123
+ "seq": 9,
124
+ "type": "WORKFLOW_TASK_SCHEDULED",
125
+ "payload": {
126
+ "taskId": "run-1-task-2"
127
+ },
128
+ "createdAt": "2026-01-01T00:00:00.000Z"
129
+ },
130
+ {
131
+ "seq": 10,
132
+ "type": "WORKFLOW_TASK_STARTED",
133
+ "payload": {
134
+ "taskId": "run-1-task-2",
135
+ "attempt": 1
136
+ },
137
+ "createdAt": "2026-01-01T00:00:00.000Z"
138
+ },
139
+ {
140
+ "seq": 11,
141
+ "type": "WORKFLOW_TASK_COMPLETED",
142
+ "payload": {
143
+ "taskId": "run-1-task-2"
144
+ },
145
+ "createdAt": "2026-01-01T00:00:00.000Z",
146
+ "taskId": "run-1-task-2"
147
+ },
148
+ {
149
+ "seq": 12,
150
+ "type": "ACTIVITY_STARTED",
151
+ "payload": {
152
+ "activityId": "a2",
153
+ "attempt": 1
154
+ },
155
+ "createdAt": "2026-01-01T00:00:00.000Z"
156
+ },
157
+ {
158
+ "seq": 13,
159
+ "type": "ACTIVITY_FAILED",
160
+ "payload": {
161
+ "activityId": "a2",
162
+ "attempt": 1,
163
+ "failure": {
164
+ "errorType": "PERMANENT",
165
+ "message": "channel_not_found",
166
+ "type": "PERMANENT",
167
+ "source": "node:store/slack"
168
+ }
169
+ },
170
+ "createdAt": "2026-01-01T00:00:00.000Z"
171
+ },
172
+ {
173
+ "seq": 14,
174
+ "type": "WORKFLOW_TASK_SCHEDULED",
175
+ "payload": {
176
+ "taskId": "run-1-task-3"
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": "WORKFLOW_COMPLETED",
201
+ "payload": {
202
+ "output": {
203
+ "statuses": [
204
+ "fulfilled",
205
+ "rejected"
206
+ ]
207
+ }
208
+ },
209
+ "createdAt": "2026-01-01T00:00:00.000Z",
210
+ "taskId": "run-1-task-3"
211
+ }
212
+ ],
213
+ "expected": {
214
+ "protocol": 1,
215
+ "outcome": "commands",
216
+ "commands": [],
217
+ "logs": []
218
+ }
219
+ }