@fluidgrids/workflows 2026.1028.1 → 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 (122) 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-XB53G2DK.js → chunk-25BKWR2O.js} +1 -1
  5. package/dist/{chunk-CBL5JSCC.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-5HDSBTBX.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-3FOTFQ3J.js → chunk-MJ5TGYVG.js} +333 -65
  21. package/dist/{chunk-57MSZ24T.cjs → chunk-NXFBVDOI.cjs} +3 -3
  22. package/dist/{chunk-PDHLTDZB.js → chunk-OIX4O6UR.js} +38 -2
  23. package/dist/{chunk-HR3BN4C4.cjs → chunk-OKX3FYIM.cjs} +3 -3
  24. package/dist/{chunk-CSNWNFKU.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-yuPCFU5b.d.ts → file-cgL9l9l8.d.cts} +765 -14
  35. package/dist/{file-BOoHZgoQ.d.cts → 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-BuSvAFqi.d.cts → lower-3S6PsqjJ.d.cts} +41 -7
  49. package/dist/{lower-C_Qv_34S.d.ts → lower-DmZpQ8hJ.d.ts} +41 -7
  50. package/dist/lower-types-DQNBfWQn.d.cts +37 -0
  51. package/dist/lower-types-DQNBfWQn.d.ts +37 -0
  52. package/dist/{manifest-C8N6HDYl.d.ts → manifest-BJjrQt77.d.ts} +1 -1
  53. package/dist/{manifest-0OLw0i7k.d.cts → manifest-gRI2Q5Fj.d.cts} +1 -1
  54. package/dist/node-evaluator-SOADN23V.js +14 -0
  55. package/dist/node-evaluator-YGDEXK4U.cjs +24 -0
  56. package/dist/quickjs/index.cjs +25 -24
  57. package/dist/quickjs/index.d.cts +7 -7
  58. package/dist/quickjs/index.d.ts +7 -7
  59. package/dist/quickjs/index.js +8 -7
  60. package/dist/roundtrip/index.cjs +245 -43
  61. package/dist/roundtrip/index.d.cts +88 -11
  62. package/dist/roundtrip/index.d.ts +88 -11
  63. package/dist/roundtrip/index.js +172 -8
  64. package/dist/runtime/index.cjs +21 -20
  65. package/dist/runtime/index.d.cts +49 -7
  66. package/dist/runtime/index.d.ts +49 -7
  67. package/dist/runtime/index.js +8 -7
  68. package/dist/testing/index.cjs +514 -74
  69. package/dist/testing/index.d.cts +128 -11
  70. package/dist/testing/index.d.ts +128 -11
  71. package/dist/testing/index.js +480 -42
  72. package/dist/{types-BGoPzgcl.d.ts → types-Bb2wRnJ5.d.cts} +20 -1
  73. package/dist/{types-BGoPzgcl.d.cts → types-Bb2wRnJ5.d.ts} +20 -1
  74. package/dist/{types-DV-HX_Gt.d.ts → types-CQKOhPTa.d.cts} +122 -14
  75. package/dist/{types-CpBBjaGX.d.cts → types-CnIOinoz.d.ts} +122 -14
  76. package/dist/{workflow-Bpr3vnA_.d.ts → workflow-8uRU9rhL.d.ts} +2 -2
  77. package/dist/{workflow-FXUkpIBc.d.cts → workflow-CZOXUlQ5.d.cts} +2 -2
  78. package/dist/{workflow-J-yYixny.d.cts → workflow-DWTPHFbt.d.ts} +124 -12
  79. package/dist/{workflow-C2a05WUJ.d.ts → workflow-O6e64ZcG.d.cts} +124 -12
  80. package/fixtures/histories/auto-upgrade-patched.history.json +276 -0
  81. package/fixtures/histories/benign-failure.history.json +146 -0
  82. package/fixtures/histories/cancel-activity-try-cancel.history.json +150 -0
  83. package/fixtures/histories/child-cancel-wait-requested.history.json +217 -0
  84. package/fixtures/histories/child-options-roundtrip.history.json +192 -0
  85. package/fixtures/histories/continue-as-new-last-result.history.json +86 -0
  86. package/fixtures/histories/continue-as-new-options.history.json +99 -0
  87. package/fixtures/histories/continue-as-new-r1-long-task-queue.history.json +78 -0
  88. package/fixtures/histories/continue-as-new-r1-retry-options.history.json +83 -0
  89. package/fixtures/histories/execution-timeout-chain.history.json +98 -0
  90. package/fixtures/histories/external-cancel-resolved.history.json +123 -0
  91. package/fixtures/histories/external-cancel-unknown-target.history.json +127 -0
  92. package/fixtures/histories/failure-error-types-fails-run.history.json +144 -0
  93. package/fixtures/histories/handler-drain-warn.history.json +222 -0
  94. package/fixtures/histories/heartbeat-details-on-retry.history.json +145 -0
  95. package/fixtures/histories/local-activity-abandoned-at-completion.history.json +73 -0
  96. package/fixtures/histories/local-activity-cancelled-in-scope.history.json +118 -0
  97. package/fixtures/histories/local-activity-completed.history.json +157 -0
  98. package/fixtures/histories/local-activity-failed.history.json +93 -0
  99. package/fixtures/histories/local-activity-retry-in-task.history.json +88 -0
  100. package/fixtures/histories/run-retry-last-failure.history.json +90 -0
  101. package/fixtures/histories/run-timeout.history.json +159 -0
  102. package/fixtures/histories/schedule-to-start-timeout.history.json +132 -0
  103. package/fixtures/histories/start-delay-signal-ends-delay.history.json +155 -0
  104. package/fixtures/histories/typeerror-task-retry-100.history.json +137 -0
  105. package/package.json +1 -1
  106. package/schema/history-file.schema.json +283 -2
  107. package/schema/ir-v2.schema.json +45 -0
  108. package/schema/run-event.schema.json +264 -2
  109. package/schema/workflow-command.schema.json +178 -1
  110. package/schema/workflow-task.schema.json +392 -4
  111. package/dist/assemble-BLqQ8lSu.d.cts +0 -39
  112. package/dist/assemble-DWgaXHd-.d.ts +0 -39
  113. package/dist/chunk-2DP2Y6EU.cjs +0 -832
  114. package/dist/chunk-2J6TF7YI.cjs +0 -86
  115. package/dist/chunk-7NQ37GZU.js +0 -73
  116. package/dist/chunk-BO6OVILK.js +0 -79
  117. package/dist/chunk-FQIHX7YI.cjs +0 -80
  118. package/dist/chunk-H7KEVW2M.js +0 -816
  119. package/dist/lower-types-nofRXw9c.d.cts +0 -15
  120. package/dist/lower-types-nofRXw9c.d.ts +0 -15
  121. package/dist/node-evaluator-CJNP4GHX.js +0 -12
  122. package/dist/node-evaluator-DMKPKUWA.cjs +0 -22
@@ -0,0 +1,276 @@
1
+ {
2
+ "format": "fluidgrids.history",
3
+ "formatVersion": 1,
4
+ "name": "auto-upgrade-patched",
5
+ "description": "An AUTO_UPGRADE run moves to version 2 at its second task (WORKFLOW_TASK_STARTED.version 2): the new bundle replays task 1 cleanly and takes the patched() branch for new code.",
6
+ "source": "src/upgrade-v1.ts",
7
+ "replaySource": "src/upgrade-v2.ts",
8
+ "info": {
9
+ "workspaceId": "test-workspace",
10
+ "taskQueue": "managed",
11
+ "attempt": 1,
12
+ "startedAt": "2026-01-01T00:00:00.000Z",
13
+ "runStartedAt": "2026-01-01T00:00:00.000Z",
14
+ "runId": "run-1"
15
+ },
16
+ "nowMs": 1767312000000,
17
+ "workflowFn": "upgrading",
18
+ "events": [
19
+ {
20
+ "seq": 1,
21
+ "type": "WORKFLOW_STARTED",
22
+ "payload": {
23
+ "workflowFn": "upgrading",
24
+ "input": null,
25
+ "taskQueue": "managed",
26
+ "randomnessSeed": "run-1",
27
+ "versioningBehavior": "AUTO_UPGRADE"
28
+ },
29
+ "createdAt": "2026-01-01T00:00:00.000Z"
30
+ },
31
+ {
32
+ "seq": 2,
33
+ "type": "WORKFLOW_TASK_SCHEDULED",
34
+ "payload": {
35
+ "taskId": "run-1-task-1"
36
+ },
37
+ "createdAt": "2026-01-01T00:00:00.000Z"
38
+ },
39
+ {
40
+ "seq": 3,
41
+ "type": "WORKFLOW_TASK_STARTED",
42
+ "payload": {
43
+ "taskId": "run-1-task-1",
44
+ "attempt": 1,
45
+ "version": 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": "store/stripe",
65
+ "operation": "createCharge",
66
+ "args": {
67
+ "amount": 500,
68
+ "customer": "c-9"
69
+ },
70
+ "retry": {
71
+ "retryDelay": 1000,
72
+ "backoffMultiplier": 2,
73
+ "maxDelay": 100000
74
+ },
75
+ "nodeVersion": "1.3.0"
76
+ },
77
+ "createdAt": "2026-01-01T00:00:00.000Z",
78
+ "taskId": "run-1-task-1"
79
+ },
80
+ {
81
+ "seq": 6,
82
+ "type": "ACTIVITY_STARTED",
83
+ "payload": {
84
+ "activityId": "a1",
85
+ "attempt": 1
86
+ },
87
+ "createdAt": "2026-01-01T00:00:00.000Z"
88
+ },
89
+ {
90
+ "seq": 7,
91
+ "type": "ACTIVITY_COMPLETED",
92
+ "payload": {
93
+ "activityId": "a1",
94
+ "attempt": 1,
95
+ "result": {
96
+ "id": "ch_1",
97
+ "amount": 500
98
+ }
99
+ },
100
+ "createdAt": "2026-01-01T00:00:00.000Z"
101
+ },
102
+ {
103
+ "seq": 8,
104
+ "type": "WORKFLOW_TASK_SCHEDULED",
105
+ "payload": {
106
+ "taskId": "run-1-task-2"
107
+ },
108
+ "createdAt": "2026-01-01T00:00:00.000Z"
109
+ },
110
+ {
111
+ "seq": 9,
112
+ "type": "WORKFLOW_TASK_STARTED",
113
+ "payload": {
114
+ "taskId": "run-1-task-2",
115
+ "attempt": 1,
116
+ "version": 2
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": "TIMER_STARTED",
132
+ "payload": {
133
+ "timerId": "t1",
134
+ "durationMs": 86400000,
135
+ "fireAt": "2026-01-02T00:00:00.000Z"
136
+ },
137
+ "createdAt": "2026-01-01T00:00:00.000Z",
138
+ "taskId": "run-1-task-2"
139
+ },
140
+ {
141
+ "seq": 12,
142
+ "type": "TIMER_FIRED",
143
+ "payload": {
144
+ "timerId": "t1"
145
+ },
146
+ "createdAt": "2026-01-02T00:00:00.000Z"
147
+ },
148
+ {
149
+ "seq": 13,
150
+ "type": "WORKFLOW_TASK_SCHEDULED",
151
+ "payload": {
152
+ "taskId": "run-1-task-3"
153
+ },
154
+ "createdAt": "2026-01-02T00:00:00.000Z"
155
+ },
156
+ {
157
+ "seq": 14,
158
+ "type": "WORKFLOW_TASK_STARTED",
159
+ "payload": {
160
+ "taskId": "run-1-task-3",
161
+ "attempt": 1,
162
+ "version": 2
163
+ },
164
+ "createdAt": "2026-01-02T00:00:00.000Z"
165
+ },
166
+ {
167
+ "seq": 15,
168
+ "type": "WORKFLOW_TASK_COMPLETED",
169
+ "payload": {
170
+ "taskId": "run-1-task-3"
171
+ },
172
+ "createdAt": "2026-01-02T00:00:00.000Z",
173
+ "taskId": "run-1-task-3"
174
+ },
175
+ {
176
+ "seq": 16,
177
+ "type": "MARKER_RECORDED",
178
+ "payload": {
179
+ "markerId": "patch:receipt-after-wait",
180
+ "data": {
181
+ "patchId": "receipt-after-wait"
182
+ }
183
+ },
184
+ "createdAt": "2026-01-02T00:00:00.000Z",
185
+ "taskId": "run-1-task-3"
186
+ },
187
+ {
188
+ "seq": 17,
189
+ "type": "ACTIVITY_SCHEDULED",
190
+ "payload": {
191
+ "activityId": "a2",
192
+ "kind": "node",
193
+ "nodeType": "store/slack",
194
+ "operation": "sendMessage",
195
+ "args": {
196
+ "channel": "#receipts",
197
+ "text": "ch_1"
198
+ },
199
+ "retry": {
200
+ "retryDelay": 1000,
201
+ "backoffMultiplier": 2,
202
+ "maxDelay": 100000
203
+ },
204
+ "nodeVersion": "1.0.0"
205
+ },
206
+ "createdAt": "2026-01-02T00:00:00.000Z",
207
+ "taskId": "run-1-task-3"
208
+ },
209
+ {
210
+ "seq": 18,
211
+ "type": "ACTIVITY_STARTED",
212
+ "payload": {
213
+ "activityId": "a2",
214
+ "attempt": 1
215
+ },
216
+ "createdAt": "2026-01-02T00:00:00.000Z"
217
+ },
218
+ {
219
+ "seq": 19,
220
+ "type": "ACTIVITY_COMPLETED",
221
+ "payload": {
222
+ "activityId": "a2",
223
+ "attempt": 1,
224
+ "result": {
225
+ "ts": "1700000000.000100"
226
+ }
227
+ },
228
+ "createdAt": "2026-01-02T00:00:00.000Z"
229
+ },
230
+ {
231
+ "seq": 20,
232
+ "type": "WORKFLOW_TASK_SCHEDULED",
233
+ "payload": {
234
+ "taskId": "run-1-task-4"
235
+ },
236
+ "createdAt": "2026-01-02T00:00:00.000Z"
237
+ },
238
+ {
239
+ "seq": 21,
240
+ "type": "WORKFLOW_TASK_STARTED",
241
+ "payload": {
242
+ "taskId": "run-1-task-4",
243
+ "attempt": 1,
244
+ "version": 2
245
+ },
246
+ "createdAt": "2026-01-02T00:00:00.000Z"
247
+ },
248
+ {
249
+ "seq": 22,
250
+ "type": "WORKFLOW_TASK_COMPLETED",
251
+ "payload": {
252
+ "taskId": "run-1-task-4"
253
+ },
254
+ "createdAt": "2026-01-02T00:00:00.000Z",
255
+ "taskId": "run-1-task-4"
256
+ },
257
+ {
258
+ "seq": 23,
259
+ "type": "WORKFLOW_COMPLETED",
260
+ "payload": {
261
+ "output": {
262
+ "paid": "ch_1",
263
+ "receipt": "1700000000.000100"
264
+ }
265
+ },
266
+ "createdAt": "2026-01-02T00:00:00.000Z",
267
+ "taskId": "run-1-task-4"
268
+ }
269
+ ],
270
+ "expected": {
271
+ "protocol": 1,
272
+ "outcome": "commands",
273
+ "commands": [],
274
+ "logs": []
275
+ }
276
+ }
@@ -0,0 +1,146 @@
1
+ {
2
+ "format": "fluidgrids.history",
3
+ "formatVersion": 1,
4
+ "name": "benign-failure",
5
+ "description": "An expected failure with category BENIGN keeps its category in ACTIVITY_FAILED and on the ApplicationError the code catches.",
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": 1767225600000,
16
+ "workflowFn": "benign",
17
+ "events": [
18
+ {
19
+ "seq": 1,
20
+ "type": "WORKFLOW_STARTED",
21
+ "payload": {
22
+ "workflowFn": "benign",
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/maybe-missing"
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_STARTED",
78
+ "payload": {
79
+ "activityId": "a1",
80
+ "attempt": 1
81
+ },
82
+ "createdAt": "2026-01-01T00:00:00.000Z"
83
+ },
84
+ {
85
+ "seq": 7,
86
+ "type": "ACTIVITY_FAILED",
87
+ "payload": {
88
+ "activityId": "a1",
89
+ "attempt": 1,
90
+ "failure": {
91
+ "errorType": "VALIDATION",
92
+ "message": "not found",
93
+ "type": "NotFound",
94
+ "source": "node:internal:http",
95
+ "nonRetryable": true,
96
+ "category": "BENIGN"
97
+ }
98
+ },
99
+ "createdAt": "2026-01-01T00:00:00.000Z"
100
+ },
101
+ {
102
+ "seq": 8,
103
+ "type": "WORKFLOW_TASK_SCHEDULED",
104
+ "payload": {
105
+ "taskId": "run-1-task-2"
106
+ },
107
+ "createdAt": "2026-01-01T00:00:00.000Z"
108
+ },
109
+ {
110
+ "seq": 9,
111
+ "type": "WORKFLOW_TASK_STARTED",
112
+ "payload": {
113
+ "taskId": "run-1-task-2",
114
+ "attempt": 1
115
+ },
116
+ "createdAt": "2026-01-01T00:00:00.000Z"
117
+ },
118
+ {
119
+ "seq": 10,
120
+ "type": "WORKFLOW_TASK_COMPLETED",
121
+ "payload": {
122
+ "taskId": "run-1-task-2"
123
+ },
124
+ "createdAt": "2026-01-01T00:00:00.000Z",
125
+ "taskId": "run-1-task-2"
126
+ },
127
+ {
128
+ "seq": 11,
129
+ "type": "WORKFLOW_COMPLETED",
130
+ "payload": {
131
+ "output": {
132
+ "found": false,
133
+ "benign": true
134
+ }
135
+ },
136
+ "createdAt": "2026-01-01T00:00:00.000Z",
137
+ "taskId": "run-1-task-2"
138
+ }
139
+ ],
140
+ "expected": {
141
+ "protocol": 1,
142
+ "outcome": "commands",
143
+ "commands": [],
144
+ "logs": []
145
+ }
146
+ }
@@ -0,0 +1,150 @@
1
+ {
2
+ "format": "fluidgrids.history",
3
+ "formatVersion": 1,
4
+ "name": "cancel-activity-try-cancel",
5
+ "description": "A scope timeout cancels a queued activity with cancellationType TRY_CANCEL: REQUEST_CANCEL_ACTIVITY is sent and the awaitable rejects at once.",
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": 1767225610000,
16
+ "workflowFn": "tryCancel",
17
+ "events": [
18
+ {
19
+ "seq": 1,
20
+ "type": "WORKFLOW_STARTED",
21
+ "payload": {
22
+ "workflowFn": "tryCancel",
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": 10000,
61
+ "fireAt": "2026-01-01T00:00:10.000Z"
62
+ },
63
+ "createdAt": "2026-01-01T00:00:00.000Z",
64
+ "taskId": "run-1-task-1"
65
+ },
66
+ {
67
+ "seq": 6,
68
+ "type": "ACTIVITY_SCHEDULED",
69
+ "payload": {
70
+ "activityId": "a1",
71
+ "kind": "node",
72
+ "nodeType": "store/slack",
73
+ "operation": "sendMessage",
74
+ "args": {
75
+ "channel": "#ops",
76
+ "text": "slow"
77
+ },
78
+ "retry": {
79
+ "retryDelay": 1000,
80
+ "backoffMultiplier": 2,
81
+ "maxDelay": 100000
82
+ },
83
+ "nodeVersion": "1.0.0",
84
+ "cancellationType": "TRY_CANCEL"
85
+ },
86
+ "createdAt": "2026-01-01T00:00:00.000Z",
87
+ "taskId": "run-1-task-1"
88
+ },
89
+ {
90
+ "seq": 7,
91
+ "type": "TIMER_FIRED",
92
+ "payload": {
93
+ "timerId": "t1"
94
+ },
95
+ "createdAt": "2026-01-01T00:00:10.000Z"
96
+ },
97
+ {
98
+ "seq": 8,
99
+ "type": "WORKFLOW_TASK_SCHEDULED",
100
+ "payload": {
101
+ "taskId": "run-1-task-2"
102
+ },
103
+ "createdAt": "2026-01-01T00:00:10.000Z"
104
+ },
105
+ {
106
+ "seq": 9,
107
+ "type": "WORKFLOW_TASK_STARTED",
108
+ "payload": {
109
+ "taskId": "run-1-task-2",
110
+ "attempt": 1
111
+ },
112
+ "createdAt": "2026-01-01T00:00:10.000Z"
113
+ },
114
+ {
115
+ "seq": 10,
116
+ "type": "WORKFLOW_TASK_COMPLETED",
117
+ "payload": {
118
+ "taskId": "run-1-task-2"
119
+ },
120
+ "createdAt": "2026-01-01T00:00:10.000Z",
121
+ "taskId": "run-1-task-2"
122
+ },
123
+ {
124
+ "seq": 11,
125
+ "type": "ACTIVITY_CANCEL_REQUESTED",
126
+ "payload": {
127
+ "activityId": "a1"
128
+ },
129
+ "createdAt": "2026-01-01T00:00:10.000Z",
130
+ "taskId": "run-1-task-2"
131
+ },
132
+ {
133
+ "seq": 12,
134
+ "type": "WORKFLOW_COMPLETED",
135
+ "payload": {
136
+ "output": {
137
+ "outcome": "cancelled"
138
+ }
139
+ },
140
+ "createdAt": "2026-01-01T00:00:10.000Z",
141
+ "taskId": "run-1-task-2"
142
+ }
143
+ ],
144
+ "expected": {
145
+ "protocol": 1,
146
+ "outcome": "commands",
147
+ "commands": [],
148
+ "logs": []
149
+ }
150
+ }