@fluidgrids/workflows 2026.1028.2 → 2026.1029.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (118) hide show
  1. package/README.md +72 -10
  2. package/dist/{activation-DnhG7SmF.d.ts → activation-BnVQMv9y.d.ts} +1 -1
  3. package/dist/{activation-BBh1p82z.d.cts → activation-CESehfYi.d.cts} +1 -1
  4. package/dist/{chunk-XHXIDVEC.js → chunk-25BKWR2O.js} +1 -1
  5. package/dist/{chunk-UK3WM7YZ.cjs → chunk-2B37XAFQ.cjs} +44 -8
  6. package/dist/{chunk-DJYMDLV5.js → chunk-2DDULZFM.js} +93 -1
  7. package/dist/{chunk-623FVQSN.cjs → chunk-3FIDHONL.cjs} +104 -0
  8. package/dist/chunk-6QPOJZT6.cjs +1180 -0
  9. package/dist/chunk-7ILGCUI6.js +154 -0
  10. package/dist/chunk-A2OHX3UQ.js +1156 -0
  11. package/dist/{chunk-VOKMAAJP.js → chunk-A36CCOWS.js} +188 -19
  12. package/dist/{chunk-FMSW2HDF.cjs → chunk-ELL2RBML.cjs} +0 -14
  13. package/dist/{chunk-JD2VQIDZ.cjs → chunk-EWYADREB.cjs} +2 -2
  14. package/dist/{chunk-HWJZVOG7.js → chunk-FQSJI5NV.js} +1 -1
  15. package/dist/{chunk-ABFZWYHT.js → chunk-FWBRQWRX.js} +156 -48
  16. package/dist/{chunk-PZCVF76Q.cjs → chunk-I47EENR4.cjs} +209 -40
  17. package/dist/chunk-J3PYFGKA.cjs +166 -0
  18. package/dist/{chunk-C5OLWZ42.js → chunk-KXJDRQ6G.js} +1 -13
  19. package/dist/chunk-M272AHEX.js +25 -0
  20. package/dist/{chunk-VRHHBPT6.js → chunk-MJ5TGYVG.js} +333 -65
  21. package/dist/{chunk-SAOBPYYJ.cjs → chunk-NXFBVDOI.cjs} +3 -3
  22. package/dist/{chunk-XKJA7KX3.js → chunk-OIX4O6UR.js} +38 -2
  23. package/dist/{chunk-FEW3JBYA.cjs → chunk-OKX3FYIM.cjs} +3 -3
  24. package/dist/{chunk-M4BBAERY.cjs → chunk-OMY3CKUZ.cjs} +404 -136
  25. package/dist/chunk-PWIUEWC3.js +81 -0
  26. package/dist/chunk-Q4MWQNJK.cjs +28 -0
  27. package/dist/{chunk-P6TA5EZT.cjs → chunk-RUQIMTN5.cjs} +171 -57
  28. package/dist/{chunk-IISBRUWJ.js → chunk-WXXNCHUY.js} +1 -1
  29. package/dist/chunk-YHBVMOMK.cjs +87 -0
  30. package/dist/codegen/index.d.cts +2 -2
  31. package/dist/codegen/index.d.ts +2 -2
  32. package/dist/collect-BTHjQaSp.d.ts +86 -0
  33. package/dist/collect-CSyOg5XC.d.cts +86 -0
  34. package/dist/{file-BOoHZgoQ.d.cts → file-cgL9l9l8.d.cts} +765 -14
  35. package/dist/{file-yuPCFU5b.d.ts → file-olQudcx5.d.ts} +765 -14
  36. package/dist/history/index.cjs +198 -86
  37. package/dist/history/index.d.cts +49 -10
  38. package/dist/history/index.d.ts +49 -10
  39. package/dist/history/index.js +49 -4
  40. package/dist/index.cjs +64 -51
  41. package/dist/index.d.cts +9 -53
  42. package/dist/index.d.ts +9 -53
  43. package/dist/index.js +5 -4
  44. package/dist/ir/index.cjs +24 -3
  45. package/dist/ir/index.d.cts +43 -4
  46. package/dist/ir/index.d.ts +43 -4
  47. package/dist/ir/index.js +24 -3
  48. package/dist/{lower-BzmUz0sq.d.cts → lower-3S6PsqjJ.d.cts} +40 -6
  49. package/dist/{lower-_-iT4HYs.d.ts → lower-DmZpQ8hJ.d.ts} +40 -6
  50. package/dist/{manifest-C8N6HDYl.d.ts → manifest-BJjrQt77.d.ts} +1 -1
  51. package/dist/{manifest-0OLw0i7k.d.cts → manifest-gRI2Q5Fj.d.cts} +1 -1
  52. package/dist/node-evaluator-SOADN23V.js +14 -0
  53. package/dist/node-evaluator-YGDEXK4U.cjs +24 -0
  54. package/dist/quickjs/index.cjs +25 -24
  55. package/dist/quickjs/index.d.cts +6 -6
  56. package/dist/quickjs/index.d.ts +6 -6
  57. package/dist/quickjs/index.js +8 -7
  58. package/dist/roundtrip/index.cjs +245 -43
  59. package/dist/roundtrip/index.d.cts +86 -9
  60. package/dist/roundtrip/index.d.ts +86 -9
  61. package/dist/roundtrip/index.js +172 -8
  62. package/dist/runtime/index.cjs +21 -20
  63. package/dist/runtime/index.d.cts +49 -7
  64. package/dist/runtime/index.d.ts +49 -7
  65. package/dist/runtime/index.js +8 -7
  66. package/dist/testing/index.cjs +514 -74
  67. package/dist/testing/index.d.cts +127 -10
  68. package/dist/testing/index.d.ts +127 -10
  69. package/dist/testing/index.js +480 -42
  70. package/dist/{types-BGoPzgcl.d.ts → types-Bb2wRnJ5.d.cts} +20 -1
  71. package/dist/{types-BGoPzgcl.d.cts → types-Bb2wRnJ5.d.ts} +20 -1
  72. package/dist/{types-DV-HX_Gt.d.ts → types-CQKOhPTa.d.cts} +122 -14
  73. package/dist/{types-CpBBjaGX.d.cts → types-CnIOinoz.d.ts} +122 -14
  74. package/dist/{workflow-Bpr3vnA_.d.ts → workflow-8uRU9rhL.d.ts} +2 -2
  75. package/dist/{workflow-FXUkpIBc.d.cts → workflow-CZOXUlQ5.d.cts} +2 -2
  76. package/dist/{workflow-C2a05WUJ.d.ts → workflow-DWTPHFbt.d.ts} +124 -12
  77. package/dist/{workflow-J-yYixny.d.cts → workflow-O6e64ZcG.d.cts} +124 -12
  78. package/fixtures/histories/auto-upgrade-patched.history.json +276 -0
  79. package/fixtures/histories/benign-failure.history.json +146 -0
  80. package/fixtures/histories/cancel-activity-try-cancel.history.json +150 -0
  81. package/fixtures/histories/child-cancel-wait-requested.history.json +217 -0
  82. package/fixtures/histories/child-options-roundtrip.history.json +192 -0
  83. package/fixtures/histories/continue-as-new-last-result.history.json +86 -0
  84. package/fixtures/histories/continue-as-new-options.history.json +99 -0
  85. package/fixtures/histories/continue-as-new-r1-long-task-queue.history.json +78 -0
  86. package/fixtures/histories/continue-as-new-r1-retry-options.history.json +83 -0
  87. package/fixtures/histories/execution-timeout-chain.history.json +98 -0
  88. package/fixtures/histories/external-cancel-resolved.history.json +123 -0
  89. package/fixtures/histories/external-cancel-unknown-target.history.json +127 -0
  90. package/fixtures/histories/failure-error-types-fails-run.history.json +144 -0
  91. package/fixtures/histories/handler-drain-warn.history.json +222 -0
  92. package/fixtures/histories/heartbeat-details-on-retry.history.json +145 -0
  93. package/fixtures/histories/local-activity-abandoned-at-completion.history.json +73 -0
  94. package/fixtures/histories/local-activity-cancelled-in-scope.history.json +118 -0
  95. package/fixtures/histories/local-activity-completed.history.json +157 -0
  96. package/fixtures/histories/local-activity-failed.history.json +93 -0
  97. package/fixtures/histories/local-activity-retry-in-task.history.json +88 -0
  98. package/fixtures/histories/run-retry-last-failure.history.json +90 -0
  99. package/fixtures/histories/run-timeout.history.json +159 -0
  100. package/fixtures/histories/schedule-to-start-timeout.history.json +132 -0
  101. package/fixtures/histories/start-delay-signal-ends-delay.history.json +155 -0
  102. package/fixtures/histories/typeerror-task-retry-100.history.json +137 -0
  103. package/package.json +1 -1
  104. package/schema/history-file.schema.json +283 -2
  105. package/schema/ir-v2.schema.json +45 -0
  106. package/schema/run-event.schema.json +264 -2
  107. package/schema/workflow-command.schema.json +178 -1
  108. package/schema/workflow-task.schema.json +392 -4
  109. package/dist/assemble-BLqQ8lSu.d.cts +0 -39
  110. package/dist/assemble-DWgaXHd-.d.ts +0 -39
  111. package/dist/chunk-2J6TF7YI.cjs +0 -86
  112. package/dist/chunk-BO6OVILK.js +0 -79
  113. package/dist/chunk-DHTLALBL.cjs +0 -80
  114. package/dist/chunk-I5LR3D2K.js +0 -869
  115. package/dist/chunk-N23SKIG4.js +0 -73
  116. package/dist/chunk-QQ6ULXHI.cjs +0 -885
  117. package/dist/node-evaluator-4MSDKWOG.cjs +0 -22
  118. package/dist/node-evaluator-SX4LEYQC.js +0 -12
@@ -0,0 +1,222 @@
1
+ {
2
+ "format": "fluidgrids.history",
3
+ "formatVersion": 1,
4
+ "name": "handler-drain-warn",
5
+ "description": "The workflow returns while the audit handler still runs: the open final task (its completion removed from the file) returns one warning and unfinishedHandlers; the note handler uses ABANDON and is not reported.",
6
+ "source": "src/parity-handlers.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": "handlerDrain",
17
+ "events": [
18
+ {
19
+ "seq": 1,
20
+ "type": "WORKFLOW_STARTED",
21
+ "payload": {
22
+ "workflowFn": "handlerDrain",
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": "SIGNAL_RECEIVED",
69
+ "payload": {
70
+ "name": "audit",
71
+ "payload": {
72
+ "entry": "e-1"
73
+ },
74
+ "receivedAt": "2026-01-01T00:00:00.000Z"
75
+ },
76
+ "createdAt": "2026-01-01T00:00:00.000Z"
77
+ },
78
+ {
79
+ "seq": 7,
80
+ "type": "WORKFLOW_TASK_SCHEDULED",
81
+ "payload": {
82
+ "taskId": "run-1-task-2"
83
+ },
84
+ "createdAt": "2026-01-01T00:00:00.000Z"
85
+ },
86
+ {
87
+ "seq": 8,
88
+ "type": "WORKFLOW_TASK_STARTED",
89
+ "payload": {
90
+ "taskId": "run-1-task-2",
91
+ "attempt": 1
92
+ },
93
+ "createdAt": "2026-01-01T00:00:00.000Z"
94
+ },
95
+ {
96
+ "seq": 9,
97
+ "type": "WORKFLOW_TASK_COMPLETED",
98
+ "payload": {
99
+ "taskId": "run-1-task-2"
100
+ },
101
+ "createdAt": "2026-01-01T00:00:00.000Z",
102
+ "taskId": "run-1-task-2"
103
+ },
104
+ {
105
+ "seq": 10,
106
+ "type": "TIMER_STARTED",
107
+ "payload": {
108
+ "timerId": "t2",
109
+ "durationMs": 120000,
110
+ "fireAt": "2026-01-01T00:02:00.000Z"
111
+ },
112
+ "createdAt": "2026-01-01T00:00:00.000Z",
113
+ "taskId": "run-1-task-2"
114
+ },
115
+ {
116
+ "seq": 11,
117
+ "type": "SIGNAL_RECEIVED",
118
+ "payload": {
119
+ "name": "note",
120
+ "payload": {
121
+ "text": "later"
122
+ },
123
+ "receivedAt": "2026-01-01T00:00:00.000Z"
124
+ },
125
+ "createdAt": "2026-01-01T00:00:00.000Z"
126
+ },
127
+ {
128
+ "seq": 12,
129
+ "type": "WORKFLOW_TASK_SCHEDULED",
130
+ "payload": {
131
+ "taskId": "run-1-task-3"
132
+ },
133
+ "createdAt": "2026-01-01T00:00:00.000Z"
134
+ },
135
+ {
136
+ "seq": 13,
137
+ "type": "WORKFLOW_TASK_STARTED",
138
+ "payload": {
139
+ "taskId": "run-1-task-3",
140
+ "attempt": 1
141
+ },
142
+ "createdAt": "2026-01-01T00:00:00.000Z"
143
+ },
144
+ {
145
+ "seq": 14,
146
+ "type": "WORKFLOW_TASK_COMPLETED",
147
+ "payload": {
148
+ "taskId": "run-1-task-3"
149
+ },
150
+ "createdAt": "2026-01-01T00:00:00.000Z",
151
+ "taskId": "run-1-task-3"
152
+ },
153
+ {
154
+ "seq": 15,
155
+ "type": "TIMER_STARTED",
156
+ "payload": {
157
+ "timerId": "t3",
158
+ "durationMs": 3600000,
159
+ "fireAt": "2026-01-01T01:00:00.000Z"
160
+ },
161
+ "createdAt": "2026-01-01T00:00:00.000Z",
162
+ "taskId": "run-1-task-3"
163
+ },
164
+ {
165
+ "seq": 16,
166
+ "type": "TIMER_FIRED",
167
+ "payload": {
168
+ "timerId": "t1"
169
+ },
170
+ "createdAt": "2026-01-01T00:01:00.000Z"
171
+ },
172
+ {
173
+ "seq": 17,
174
+ "type": "WORKFLOW_TASK_SCHEDULED",
175
+ "payload": {
176
+ "taskId": "run-1-task-4"
177
+ },
178
+ "createdAt": "2026-01-01T00:01:00.000Z"
179
+ },
180
+ {
181
+ "seq": 18,
182
+ "type": "WORKFLOW_TASK_STARTED",
183
+ "payload": {
184
+ "taskId": "run-1-task-4",
185
+ "attempt": 1
186
+ },
187
+ "createdAt": "2026-01-01T00:01:00.000Z"
188
+ }
189
+ ],
190
+ "expected": {
191
+ "protocol": 1,
192
+ "outcome": "commands",
193
+ "commands": [
194
+ {
195
+ "type": "COMPLETE_WORKFLOW",
196
+ "output": {
197
+ "done": true
198
+ }
199
+ }
200
+ ],
201
+ "logs": [
202
+ {
203
+ "level": "warn",
204
+ "message": "The workflow finished while 1 signal handler was still running (audit x1); await ctx.allHandlersFinished() before returning, or set unfinishedPolicy: 'ABANDON' on the handler",
205
+ "data": [
206
+ {
207
+ "kind": "signal",
208
+ "name": "audit",
209
+ "count": 1
210
+ }
211
+ ]
212
+ }
213
+ ],
214
+ "unfinishedHandlers": [
215
+ {
216
+ "kind": "signal",
217
+ "name": "audit",
218
+ "count": 1
219
+ }
220
+ ]
221
+ }
222
+ }
@@ -0,0 +1,145 @@
1
+ {
2
+ "format": "fluidgrids.history",
3
+ "formatVersion": 1,
4
+ "name": "heartbeat-details-on-retry",
5
+ "description": "Attempt 1 heartbeats { page: 4 } and fails; attempt 2 receives the details and resumes at page 4. Only the final attempt leaves history.",
6
+ "source": "src/parity-activities.ts",
7
+ "info": {
8
+ "workspaceId": "test-workspace",
9
+ "taskQueue": "managed",
10
+ "attempt": 1,
11
+ "startedAt": "2026-01-01T00:00:00.000Z",
12
+ "runStartedAt": "2026-01-01T00:00:00.000Z",
13
+ "runId": "run-1"
14
+ },
15
+ "nowMs": 1767225601000,
16
+ "workflowFn": "heartbeatResume",
17
+ "events": [
18
+ {
19
+ "seq": 1,
20
+ "type": "WORKFLOW_STARTED",
21
+ "payload": {
22
+ "workflowFn": "heartbeatResume",
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/exporter",
62
+ "operation": "exportPages",
63
+ "args": {
64
+ "pages": 10
65
+ },
66
+ "retry": {
67
+ "retryDelay": 1000,
68
+ "backoffMultiplier": 2,
69
+ "maxDelay": 100000,
70
+ "maxRetries": 3
71
+ },
72
+ "nodeVersion": "2.0.0",
73
+ "heartbeatTimeout": 30000
74
+ },
75
+ "createdAt": "2026-01-01T00:00:00.000Z",
76
+ "taskId": "run-1-task-1"
77
+ },
78
+ {
79
+ "seq": 6,
80
+ "type": "ACTIVITY_STARTED",
81
+ "payload": {
82
+ "activityId": "a1",
83
+ "attempt": 2
84
+ },
85
+ "createdAt": "2026-01-01T00:00:01.000Z"
86
+ },
87
+ {
88
+ "seq": 7,
89
+ "type": "ACTIVITY_COMPLETED",
90
+ "payload": {
91
+ "activityId": "a1",
92
+ "attempt": 2,
93
+ "result": {
94
+ "exported": 10,
95
+ "resumedFrom": 4
96
+ }
97
+ },
98
+ "createdAt": "2026-01-01T00:00:01.000Z"
99
+ },
100
+ {
101
+ "seq": 8,
102
+ "type": "WORKFLOW_TASK_SCHEDULED",
103
+ "payload": {
104
+ "taskId": "run-1-task-2"
105
+ },
106
+ "createdAt": "2026-01-01T00:00:01.000Z"
107
+ },
108
+ {
109
+ "seq": 9,
110
+ "type": "WORKFLOW_TASK_STARTED",
111
+ "payload": {
112
+ "taskId": "run-1-task-2",
113
+ "attempt": 1
114
+ },
115
+ "createdAt": "2026-01-01T00:00:01.000Z"
116
+ },
117
+ {
118
+ "seq": 10,
119
+ "type": "WORKFLOW_TASK_COMPLETED",
120
+ "payload": {
121
+ "taskId": "run-1-task-2"
122
+ },
123
+ "createdAt": "2026-01-01T00:00:01.000Z",
124
+ "taskId": "run-1-task-2"
125
+ },
126
+ {
127
+ "seq": 11,
128
+ "type": "WORKFLOW_COMPLETED",
129
+ "payload": {
130
+ "output": {
131
+ "exported": 10,
132
+ "resumedFrom": 4
133
+ }
134
+ },
135
+ "createdAt": "2026-01-01T00:00:01.000Z",
136
+ "taskId": "run-1-task-2"
137
+ }
138
+ ],
139
+ "expected": {
140
+ "protocol": 1,
141
+ "outcome": "commands",
142
+ "commands": [],
143
+ "logs": []
144
+ }
145
+ }
@@ -0,0 +1,73 @@
1
+ {
2
+ "format": "fluidgrids.history",
3
+ "formatVersion": 1,
4
+ "name": "local-activity-abandoned-at-completion",
5
+ "description": "A local activity that is never awaited is abandoned when the run completes in the same activation: no request and no marker, and every replay completes the same way.",
6
+ "source": "src/local-activities.ts",
7
+ "info": {
8
+ "workspaceId": "test-workspace",
9
+ "taskQueue": "managed",
10
+ "attempt": 1,
11
+ "startedAt": "2026-01-01T00:00:00.000Z",
12
+ "runStartedAt": "2026-01-01T00:00:00.000Z",
13
+ "runId": "run-1"
14
+ },
15
+ "nowMs": 1767225600000,
16
+ "workflowFn": "localAbandoned",
17
+ "events": [
18
+ {
19
+ "seq": 1,
20
+ "type": "WORKFLOW_STARTED",
21
+ "payload": {
22
+ "workflowFn": "localAbandoned",
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": "WORKFLOW_COMPLETED",
58
+ "payload": {
59
+ "output": {
60
+ "done": true
61
+ }
62
+ },
63
+ "createdAt": "2026-01-01T00:00:00.000Z",
64
+ "taskId": "run-1-task-1"
65
+ }
66
+ ],
67
+ "expected": {
68
+ "protocol": 1,
69
+ "outcome": "commands",
70
+ "commands": [],
71
+ "logs": []
72
+ }
73
+ }
@@ -0,0 +1,118 @@
1
+ {
2
+ "format": "fluidgrids.history",
3
+ "formatVersion": 1,
4
+ "name": "local-activity-cancelled-in-scope",
5
+ "description": "A local activity whose scope is cancelled in the activation that issued it is never requested and records nothing; the later workflow task replays that activation without an outcome and does not diverge.",
6
+ "source": "src/local-activities.ts",
7
+ "info": {
8
+ "workspaceId": "test-workspace",
9
+ "taskQueue": "managed",
10
+ "attempt": 1,
11
+ "startedAt": "2026-01-01T00:00:00.000Z",
12
+ "runStartedAt": "2026-01-01T00:00:00.000Z",
13
+ "runId": "run-1"
14
+ },
15
+ "nowMs": 1767225601000,
16
+ "workflowFn": "localCancelled",
17
+ "events": [
18
+ {
19
+ "seq": 1,
20
+ "type": "WORKFLOW_STARTED",
21
+ "payload": {
22
+ "workflowFn": "localCancelled",
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": "WORKFLOW_COMPLETED",
103
+ "payload": {
104
+ "output": {
105
+ "outcome": "ActivityFailure"
106
+ }
107
+ },
108
+ "createdAt": "2026-01-01T00:00:01.000Z",
109
+ "taskId": "run-1-task-2"
110
+ }
111
+ ],
112
+ "expected": {
113
+ "protocol": 1,
114
+ "outcome": "commands",
115
+ "commands": [],
116
+ "logs": []
117
+ }
118
+ }