@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,217 @@
1
+ {
2
+ "format": "fluidgrids.history",
3
+ "formatVersion": 1,
4
+ "name": "child-cancel-wait-requested",
5
+ "description": "A scope timeout cancels a child awaited with cancellationType WAIT_CANCELLATION_REQUESTED: the awaitable rejects once EXTERNAL_RUN_CANCEL_RESOLVED arrives, before the child has ended.",
6
+ "source": "src/parity-children.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": 1767229200000,
16
+ "workflowFn": "childCancelWaitRequested",
17
+ "events": [
18
+ {
19
+ "seq": 1,
20
+ "type": "WORKFLOW_STARTED",
21
+ "payload": {
22
+ "workflowFn": "childCancelWaitRequested",
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": 3600000,
61
+ "fireAt": "2026-01-01T01:00:00.000Z"
62
+ },
63
+ "createdAt": "2026-01-01T00:00:00.000Z",
64
+ "taskId": "run-1-task-1"
65
+ },
66
+ {
67
+ "seq": 6,
68
+ "type": "CHILD_RUN_INITIATED",
69
+ "payload": {
70
+ "childId": "c1",
71
+ "workflowFn": "longChild",
72
+ "input": null,
73
+ "options": {
74
+ "parentClosePolicy": "TERMINATE",
75
+ "cancellationType": "WAIT_CANCELLATION_REQUESTED"
76
+ }
77
+ },
78
+ "createdAt": "2026-01-01T00:00:00.000Z",
79
+ "taskId": "run-1-task-1"
80
+ },
81
+ {
82
+ "seq": 7,
83
+ "type": "CHILD_RUN_STARTED",
84
+ "payload": {
85
+ "childId": "c1",
86
+ "childRunId": "run-2",
87
+ "executionKind": "DURABLE_FN"
88
+ },
89
+ "createdAt": "2026-01-01T00:00:00.000Z"
90
+ },
91
+ {
92
+ "seq": 8,
93
+ "type": "WORKFLOW_TASK_SCHEDULED",
94
+ "payload": {
95
+ "taskId": "run-1-task-2"
96
+ },
97
+ "createdAt": "2026-01-01T00:00:00.000Z"
98
+ },
99
+ {
100
+ "seq": 9,
101
+ "type": "WORKFLOW_TASK_STARTED",
102
+ "payload": {
103
+ "taskId": "run-1-task-2",
104
+ "attempt": 1
105
+ },
106
+ "createdAt": "2026-01-01T00:00:00.000Z"
107
+ },
108
+ {
109
+ "seq": 10,
110
+ "type": "WORKFLOW_TASK_COMPLETED",
111
+ "payload": {
112
+ "taskId": "run-1-task-2"
113
+ },
114
+ "createdAt": "2026-01-01T00:00:00.000Z",
115
+ "taskId": "run-1-task-2"
116
+ },
117
+ {
118
+ "seq": 11,
119
+ "type": "TIMER_FIRED",
120
+ "payload": {
121
+ "timerId": "t1"
122
+ },
123
+ "createdAt": "2026-01-01T01:00:00.000Z"
124
+ },
125
+ {
126
+ "seq": 12,
127
+ "type": "WORKFLOW_TASK_SCHEDULED",
128
+ "payload": {
129
+ "taskId": "run-1-task-3"
130
+ },
131
+ "createdAt": "2026-01-01T01:00:00.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-01T01:00:00.000Z"
141
+ },
142
+ {
143
+ "seq": 14,
144
+ "type": "WORKFLOW_TASK_COMPLETED",
145
+ "payload": {
146
+ "taskId": "run-1-task-3"
147
+ },
148
+ "createdAt": "2026-01-01T01:00:00.000Z",
149
+ "taskId": "run-1-task-3"
150
+ },
151
+ {
152
+ "seq": 15,
153
+ "type": "EXTERNAL_RUN_CANCEL_REQUESTED",
154
+ "payload": {
155
+ "externalId": "x1",
156
+ "target": {
157
+ "childId": "c1"
158
+ }
159
+ },
160
+ "createdAt": "2026-01-01T01:00:00.000Z",
161
+ "taskId": "run-1-task-3"
162
+ },
163
+ {
164
+ "seq": 16,
165
+ "type": "EXTERNAL_RUN_CANCEL_RESOLVED",
166
+ "payload": {
167
+ "externalId": "x1",
168
+ "ok": true,
169
+ "targetRunId": "run-2"
170
+ },
171
+ "createdAt": "2026-01-01T01:00:00.000Z"
172
+ },
173
+ {
174
+ "seq": 17,
175
+ "type": "WORKFLOW_TASK_SCHEDULED",
176
+ "payload": {
177
+ "taskId": "run-1-task-4"
178
+ },
179
+ "createdAt": "2026-01-01T01:00:00.000Z"
180
+ },
181
+ {
182
+ "seq": 18,
183
+ "type": "WORKFLOW_TASK_STARTED",
184
+ "payload": {
185
+ "taskId": "run-1-task-4",
186
+ "attempt": 1
187
+ },
188
+ "createdAt": "2026-01-01T01:00:00.000Z"
189
+ },
190
+ {
191
+ "seq": 19,
192
+ "type": "WORKFLOW_TASK_COMPLETED",
193
+ "payload": {
194
+ "taskId": "run-1-task-4"
195
+ },
196
+ "createdAt": "2026-01-01T01:00:00.000Z",
197
+ "taskId": "run-1-task-4"
198
+ },
199
+ {
200
+ "seq": 20,
201
+ "type": "WORKFLOW_COMPLETED",
202
+ "payload": {
203
+ "output": {
204
+ "outcome": "cancel requested"
205
+ }
206
+ },
207
+ "createdAt": "2026-01-01T01:00:00.000Z",
208
+ "taskId": "run-1-task-4"
209
+ }
210
+ ],
211
+ "expected": {
212
+ "protocol": 1,
213
+ "outcome": "commands",
214
+ "commands": [],
215
+ "logs": []
216
+ }
217
+ }
@@ -0,0 +1,192 @@
1
+ {
2
+ "format": "fluidgrids.history",
3
+ "formatVersion": 1,
4
+ "name": "child-options-roundtrip",
5
+ "description": "Every child option of 11 §2.35 (workflow id policies, timeouts, retry, memo, summary, details, priority, versioning) lands in CHILD_RUN_INITIATED.options.",
6
+ "source": "src/parity-children.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": "childOptionsRoundtrip",
17
+ "events": [
18
+ {
19
+ "seq": 1,
20
+ "type": "WORKFLOW_STARTED",
21
+ "payload": {
22
+ "workflowFn": "childOptionsRoundtrip",
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": "CHILD_RUN_INITIATED",
58
+ "payload": {
59
+ "childId": "c1",
60
+ "workflowFn": "optionsChild",
61
+ "input": null,
62
+ "options": {
63
+ "parentClosePolicy": "REQUEST_CANCEL",
64
+ "cancellationType": "TRY_CANCEL",
65
+ "taskQueue": "managed",
66
+ "workflowId": "order-42",
67
+ "priority": 2,
68
+ "summary": "child for order 42",
69
+ "details": "## Order 42",
70
+ "context": {
71
+ "order": 42
72
+ },
73
+ "retry": {
74
+ "initialDelayMs": 2000,
75
+ "backoffMultiplier": 2,
76
+ "maxDelayMs": 200000,
77
+ "maxAttempts": 3
78
+ },
79
+ "versioningBehavior": "PINNED",
80
+ "idReusePolicy": "REJECT_DUPLICATE",
81
+ "idConflictPolicy": "FAIL",
82
+ "executionTimeout": 86400000,
83
+ "runTimeout": 3600000,
84
+ "workflowTaskTimeout": 20000
85
+ }
86
+ },
87
+ "createdAt": "2026-01-01T00:00:00.000Z",
88
+ "taskId": "run-1-task-1"
89
+ },
90
+ {
91
+ "seq": 6,
92
+ "type": "CHILD_RUN_STARTED",
93
+ "payload": {
94
+ "childId": "c1",
95
+ "childRunId": "run-2",
96
+ "executionKind": "DURABLE_FN"
97
+ },
98
+ "createdAt": "2026-01-01T00:00:00.000Z"
99
+ },
100
+ {
101
+ "seq": 7,
102
+ "type": "WORKFLOW_TASK_SCHEDULED",
103
+ "payload": {
104
+ "taskId": "run-1-task-2"
105
+ },
106
+ "createdAt": "2026-01-01T00:00:00.000Z"
107
+ },
108
+ {
109
+ "seq": 8,
110
+ "type": "WORKFLOW_TASK_STARTED",
111
+ "payload": {
112
+ "taskId": "run-1-task-2",
113
+ "attempt": 1
114
+ },
115
+ "createdAt": "2026-01-01T00:00:00.000Z"
116
+ },
117
+ {
118
+ "seq": 9,
119
+ "type": "WORKFLOW_TASK_COMPLETED",
120
+ "payload": {
121
+ "taskId": "run-1-task-2"
122
+ },
123
+ "createdAt": "2026-01-01T00:00:00.000Z",
124
+ "taskId": "run-1-task-2"
125
+ },
126
+ {
127
+ "seq": 10,
128
+ "type": "CHILD_RUN_COMPLETED",
129
+ "payload": {
130
+ "childId": "c1",
131
+ "childRunId": "run-2",
132
+ "result": {
133
+ "workflowId": "order-42",
134
+ "summary": "child for order 42",
135
+ "memo": {
136
+ "order": 42
137
+ },
138
+ "attempt": 1
139
+ }
140
+ },
141
+ "createdAt": "2026-01-01T00:00:00.000Z"
142
+ },
143
+ {
144
+ "seq": 11,
145
+ "type": "WORKFLOW_TASK_SCHEDULED",
146
+ "payload": {
147
+ "taskId": "run-1-task-3"
148
+ },
149
+ "createdAt": "2026-01-01T00:00:00.000Z"
150
+ },
151
+ {
152
+ "seq": 12,
153
+ "type": "WORKFLOW_TASK_STARTED",
154
+ "payload": {
155
+ "taskId": "run-1-task-3",
156
+ "attempt": 1
157
+ },
158
+ "createdAt": "2026-01-01T00:00:00.000Z"
159
+ },
160
+ {
161
+ "seq": 13,
162
+ "type": "WORKFLOW_TASK_COMPLETED",
163
+ "payload": {
164
+ "taskId": "run-1-task-3"
165
+ },
166
+ "createdAt": "2026-01-01T00:00:00.000Z",
167
+ "taskId": "run-1-task-3"
168
+ },
169
+ {
170
+ "seq": 14,
171
+ "type": "WORKFLOW_COMPLETED",
172
+ "payload": {
173
+ "output": {
174
+ "workflowId": "order-42",
175
+ "summary": "child for order 42",
176
+ "memo": {
177
+ "order": 42
178
+ },
179
+ "attempt": 1
180
+ }
181
+ },
182
+ "createdAt": "2026-01-01T00:00:00.000Z",
183
+ "taskId": "run-1-task-3"
184
+ }
185
+ ],
186
+ "expected": {
187
+ "protocol": 1,
188
+ "outcome": "commands",
189
+ "commands": [],
190
+ "logs": []
191
+ }
192
+ }
@@ -0,0 +1,86 @@
1
+ {
2
+ "format": "fluidgrids.history",
3
+ "formatVersion": 1,
4
+ "name": "continue-as-new-last-result",
5
+ "description": "The last run of a three-run chain: WORKFLOW_STARTED.lastCompletionResult is the previous run's continue-as-new value, read as ctx.info.lastResult.",
6
+ "source": "src/parity-chain.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-3",
14
+ "continuedFromRunId": "run-2",
15
+ "firstRunId": "run-1"
16
+ },
17
+ "nowMs": 1767225600000,
18
+ "workflowFn": "lastResultChain",
19
+ "events": [
20
+ {
21
+ "seq": 1,
22
+ "type": "WORKFLOW_STARTED",
23
+ "payload": {
24
+ "workflowFn": "lastResultChain",
25
+ "input": {
26
+ "total": 3,
27
+ "step": 3
28
+ },
29
+ "taskQueue": "managed",
30
+ "randomnessSeed": "run-3",
31
+ "lastCompletionResult": {
32
+ "total": 3,
33
+ "step": 3
34
+ }
35
+ },
36
+ "createdAt": "2026-01-01T00:00:00.000Z"
37
+ },
38
+ {
39
+ "seq": 2,
40
+ "type": "WORKFLOW_TASK_SCHEDULED",
41
+ "payload": {
42
+ "taskId": "run-3-task-1"
43
+ },
44
+ "createdAt": "2026-01-01T00:00:00.000Z"
45
+ },
46
+ {
47
+ "seq": 3,
48
+ "type": "WORKFLOW_TASK_STARTED",
49
+ "payload": {
50
+ "taskId": "run-3-task-1",
51
+ "attempt": 1
52
+ },
53
+ "createdAt": "2026-01-01T00:00:00.000Z"
54
+ },
55
+ {
56
+ "seq": 4,
57
+ "type": "WORKFLOW_TASK_COMPLETED",
58
+ "payload": {
59
+ "taskId": "run-3-task-1"
60
+ },
61
+ "createdAt": "2026-01-01T00:00:00.000Z",
62
+ "taskId": "run-3-task-1"
63
+ },
64
+ {
65
+ "seq": 5,
66
+ "type": "WORKFLOW_COMPLETED",
67
+ "payload": {
68
+ "output": {
69
+ "total": 6,
70
+ "lastResult": {
71
+ "total": 3,
72
+ "step": 3
73
+ }
74
+ }
75
+ },
76
+ "createdAt": "2026-01-01T00:00:00.000Z",
77
+ "taskId": "run-3-task-1"
78
+ }
79
+ ],
80
+ "expected": {
81
+ "protocol": 1,
82
+ "outcome": "commands",
83
+ "commands": [],
84
+ "logs": []
85
+ }
86
+ }
@@ -0,0 +1,99 @@
1
+ {
2
+ "format": "fluidgrids.history",
3
+ "formatVersion": 1,
4
+ "name": "continue-as-new-options",
5
+ "description": "The second run of a chain started with continue-as-new options: its WORKFLOW_STARTED carries the memo, the task timeout, the run retry and AUTO_UPGRADE, and ctx.info reads them.",
6
+ "source": "src/parity-chain.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-2",
14
+ "continuedFromRunId": "run-1",
15
+ "firstRunId": "run-1"
16
+ },
17
+ "nowMs": 1767225600000,
18
+ "workflowFn": "canOptions",
19
+ "events": [
20
+ {
21
+ "seq": 1,
22
+ "type": "WORKFLOW_STARTED",
23
+ "payload": {
24
+ "workflowFn": "canOptions",
25
+ "input": {
26
+ "round": 1
27
+ },
28
+ "taskQueue": "managed",
29
+ "randomnessSeed": "run-2",
30
+ "runAttempt": 1,
31
+ "context": {
32
+ "tenant": "acme"
33
+ },
34
+ "timeouts": {
35
+ "workflowTaskTimeout": 30000
36
+ },
37
+ "retry": {
38
+ "initialDelayMs": 1000,
39
+ "backoffMultiplier": 2,
40
+ "maxDelayMs": 100000,
41
+ "maxAttempts": 2
42
+ },
43
+ "versioningBehavior": "AUTO_UPGRADE",
44
+ "lastCompletionResult": {
45
+ "round": 1
46
+ }
47
+ },
48
+ "createdAt": "2026-01-01T00:00:00.000Z"
49
+ },
50
+ {
51
+ "seq": 2,
52
+ "type": "WORKFLOW_TASK_SCHEDULED",
53
+ "payload": {
54
+ "taskId": "run-2-task-1"
55
+ },
56
+ "createdAt": "2026-01-01T00:00:00.000Z"
57
+ },
58
+ {
59
+ "seq": 3,
60
+ "type": "WORKFLOW_TASK_STARTED",
61
+ "payload": {
62
+ "taskId": "run-2-task-1",
63
+ "attempt": 1
64
+ },
65
+ "createdAt": "2026-01-01T00:00:00.000Z"
66
+ },
67
+ {
68
+ "seq": 4,
69
+ "type": "WORKFLOW_TASK_COMPLETED",
70
+ "payload": {
71
+ "taskId": "run-2-task-1"
72
+ },
73
+ "createdAt": "2026-01-01T00:00:00.000Z",
74
+ "taskId": "run-2-task-1"
75
+ },
76
+ {
77
+ "seq": 5,
78
+ "type": "WORKFLOW_COMPLETED",
79
+ "payload": {
80
+ "output": {
81
+ "round": 1,
82
+ "memo": {
83
+ "tenant": "acme"
84
+ },
85
+ "versioningBehavior": "AUTO_UPGRADE",
86
+ "taskTimeout": 30000
87
+ }
88
+ },
89
+ "createdAt": "2026-01-01T00:00:00.000Z",
90
+ "taskId": "run-2-task-1"
91
+ }
92
+ ],
93
+ "expected": {
94
+ "protocol": 1,
95
+ "outcome": "commands",
96
+ "commands": [],
97
+ "logs": []
98
+ }
99
+ }
@@ -0,0 +1,78 @@
1
+ {
2
+ "format": "fluidgrids.history",
3
+ "formatVersion": 1,
4
+ "name": "continue-as-new-r1-long-task-queue",
5
+ "description": "A WORKFLOW_CONTINUED_AS_NEW stored by a Phase B (R1) run with a 300-character task queue, which the R1 contract accepted and the R2 command shape refuses. Parsed and projected, not replayed.",
6
+ "source": "src/parity-chain.ts",
7
+ "replay": false,
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": 1767225600000,
17
+ "workflowFn": "r1CanRetry",
18
+ "events": [
19
+ {
20
+ "seq": 1,
21
+ "type": "WORKFLOW_STARTED",
22
+ "payload": {
23
+ "workflowFn": "r1CanRetry",
24
+ "input": {
25
+ "round": 0
26
+ },
27
+ "taskQueue": "managed",
28
+ "randomnessSeed": "run-1"
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": "WORKFLOW_CONTINUED_AS_NEW",
61
+ "payload": {
62
+ "input": {
63
+ "round": 1
64
+ },
65
+ "options": {
66
+ "taskQueue": "qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq",
67
+ "retry": {
68
+ "retryDelay": 1500.5,
69
+ "backoffMultiplier": 0.5,
70
+ "maxDelay": 150050
71
+ }
72
+ }
73
+ },
74
+ "createdAt": "2026-01-01T00:00:00.000Z",
75
+ "taskId": "run-1-task-1"
76
+ }
77
+ ]
78
+ }