@fluidgrids/workflows 2026.1028.2 → 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 (154) hide show
  1. package/README.md +181 -11
  2. package/dist/{activation-BBh1p82z.d.cts → activation-DqUfpHzk.d.cts} +1 -1
  3. package/dist/{activation-DnhG7SmF.d.ts → activation-xpx1oWuo.d.ts} +1 -1
  4. package/dist/{chunk-VRHHBPT6.js → chunk-2D3MYIIF.js} +1212 -128
  5. package/dist/chunk-3U2NU7YC.cjs +124 -0
  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-5HIVIV53.js +330 -0
  9. package/dist/chunk-5MFVJM76.js +1222 -0
  10. package/dist/{chunk-JD2VQIDZ.cjs → chunk-672KMMBK.cjs} +2 -2
  11. package/dist/{chunk-C5OLWZ42.js → chunk-6A2FGSUS.js} +22 -14
  12. package/dist/{chunk-XKJA7KX3.js → chunk-6OLN6BMB.js} +52 -3
  13. package/dist/{chunk-6FSHT5IL.js → chunk-7EZIANC7.js} +1 -1
  14. package/dist/{chunk-2J6TF7YI.cjs → chunk-A5SXCA62.cjs} +10 -3
  15. package/dist/{chunk-BO6OVILK.js → chunk-AC6ZEXVR.js} +10 -4
  16. package/dist/{chunk-ABFZWYHT.js → chunk-AE5Q6ZAJ.js} +315 -50
  17. package/dist/chunk-C4F5KJTI.js +293 -0
  18. package/dist/{chunk-IISBRUWJ.js → chunk-G5H32GIG.js} +1 -1
  19. package/dist/chunk-GEQDGUGB.cjs +2719 -0
  20. package/dist/{chunk-XHXIDVEC.js → chunk-HCM7ZC7Q.js} +1 -1
  21. package/dist/chunk-HMZUGSMU.cjs +1554 -0
  22. package/dist/{chunk-SAOBPYYJ.cjs → chunk-IQPXHQQQ.cjs} +8 -4
  23. package/dist/{chunk-P6TA5EZT.cjs → chunk-ISOIA7NV.cjs} +335 -58
  24. package/dist/chunk-JSC75O5C.cjs +167 -0
  25. package/dist/chunk-M272AHEX.js +25 -0
  26. package/dist/{chunk-BD7ZPG53.js → chunk-NWQ5WRLE.js} +10 -2
  27. package/dist/chunk-ODZ2IAR2.cjs +1247 -0
  28. package/dist/chunk-Q4MWQNJK.cjs +28 -0
  29. package/dist/{chunk-HWJZVOG7.js → chunk-SR7TR5KX.js} +6 -2
  30. package/dist/{chunk-FEW3JBYA.cjs → chunk-TCTE7DX5.cjs} +3 -3
  31. package/dist/{chunk-623FVQSN.cjs → chunk-TYF56RGB.cjs} +123 -0
  32. package/dist/chunk-VA4OFR72.cjs +324 -0
  33. package/dist/chunk-VU5S5A7V.js +150 -0
  34. package/dist/chunk-YEHR4NNE.js +1522 -0
  35. package/dist/{chunk-FMSW2HDF.cjs → chunk-ZCGKGDCL.cjs} +23 -15
  36. package/dist/codegen/index.d.cts +2 -2
  37. package/dist/codegen/index.d.ts +2 -2
  38. package/dist/collect-6NIEufHd.d.ts +103 -0
  39. package/dist/collect-CcTCKqx6.d.cts +103 -0
  40. package/dist/{file-BOoHZgoQ.d.cts → file-BxYpwjRQ.d.cts} +1007 -21
  41. package/dist/{file-yuPCFU5b.d.ts → file-CFdPQJI9.d.ts} +1007 -21
  42. package/dist/history/index.cjs +375 -86
  43. package/dist/history/index.d.cts +590 -12
  44. package/dist/history/index.d.ts +590 -12
  45. package/dist/history/index.js +50 -4
  46. package/dist/index.cjs +156 -50
  47. package/dist/index.d.cts +38 -58
  48. package/dist/index.d.ts +38 -58
  49. package/dist/index.js +6 -4
  50. package/dist/interceptors-CNcr2dlk.d.ts +159 -0
  51. package/dist/interceptors-CqkNZVfI.d.cts +159 -0
  52. package/dist/ir/index.cjs +362 -38
  53. package/dist/ir/index.d.cts +282 -7
  54. package/dist/ir/index.d.ts +282 -7
  55. package/dist/ir/index.js +329 -23
  56. package/dist/{lower-BzmUz0sq.d.cts → lower-BtRfIW2A.d.cts} +56 -8
  57. package/dist/{lower-_-iT4HYs.d.ts → lower-CpsMFOFX.d.ts} +56 -8
  58. package/dist/{manifest-C8N6HDYl.d.ts → manifest-D-I_twys.d.ts} +1 -1
  59. package/dist/{manifest-0OLw0i7k.d.cts → manifest-DahBQVM8.d.cts} +1 -1
  60. package/dist/node-evaluator-DGQDPSPI.cjs +24 -0
  61. package/dist/node-evaluator-LEEVD7H7.js +14 -0
  62. package/dist/payload-fields-BVRQn2yH.d.cts +122 -0
  63. package/dist/payload-fields-oOBWxDiG.d.ts +122 -0
  64. package/dist/quickjs/index.cjs +28 -27
  65. package/dist/quickjs/index.d.cts +6 -6
  66. package/dist/quickjs/index.d.ts +6 -6
  67. package/dist/quickjs/index.js +10 -9
  68. package/dist/roundtrip/index.cjs +259 -51
  69. package/dist/roundtrip/index.d.cts +100 -9
  70. package/dist/roundtrip/index.d.ts +100 -9
  71. package/dist/roundtrip/index.js +177 -11
  72. package/dist/runtime/index.cjs +21 -20
  73. package/dist/runtime/index.d.cts +184 -15
  74. package/dist/runtime/index.d.ts +184 -15
  75. package/dist/runtime/index.js +8 -7
  76. package/dist/testing/index.cjs +1122 -115
  77. package/dist/testing/index.d.cts +294 -13
  78. package/dist/testing/index.d.ts +294 -13
  79. package/dist/testing/index.js +1086 -84
  80. package/dist/{types-DV-HX_Gt.d.ts → types-Bv2i4cBX.d.cts} +244 -33
  81. package/dist/{types-CpBBjaGX.d.cts → types-DGx-b9eq.d.ts} +244 -33
  82. package/dist/{types-BGoPzgcl.d.ts → types-V7jEEUaL.d.cts} +20 -1
  83. package/dist/{types-BGoPzgcl.d.cts → types-V7jEEUaL.d.ts} +20 -1
  84. package/dist/{workflow-Bpr3vnA_.d.ts → workflow-B18OeF7g.d.ts} +2 -2
  85. package/dist/workflow-BGnv8SS6.d.ts +803 -0
  86. package/dist/{workflow-FXUkpIBc.d.cts → workflow-BJPFv3cp.d.cts} +2 -2
  87. package/dist/workflow-DS32Gtws.d.cts +803 -0
  88. package/fixtures/histories/activity-options-updated.history.json +159 -0
  89. package/fixtures/histories/activity-paused-unpaused.history.json +160 -0
  90. package/fixtures/histories/auto-upgrade-patched.history.json +276 -0
  91. package/fixtures/histories/benign-failure.history.json +146 -0
  92. package/fixtures/histories/cancel-activity-try-cancel.history.json +150 -0
  93. package/fixtures/histories/child-cancel-wait-requested.history.json +217 -0
  94. package/fixtures/histories/child-options-roundtrip.history.json +192 -0
  95. package/fixtures/histories/codec-opaque.history.json +229 -0
  96. package/fixtures/histories/continue-as-new-last-result.history.json +86 -0
  97. package/fixtures/histories/continue-as-new-options.history.json +99 -0
  98. package/fixtures/histories/continue-as-new-r1-long-task-queue.history.json +78 -0
  99. package/fixtures/histories/continue-as-new-r1-retry-options.history.json +83 -0
  100. package/fixtures/histories/dynamic-workflow.history.json +150 -0
  101. package/fixtures/histories/execution-timeout-chain.history.json +98 -0
  102. package/fixtures/histories/external-cancel-resolved.history.json +123 -0
  103. package/fixtures/histories/external-cancel-unknown-target.history.json +127 -0
  104. package/fixtures/histories/failure-error-types-fails-run.history.json +144 -0
  105. package/fixtures/histories/handler-drain-warn.history.json +222 -0
  106. package/fixtures/histories/heartbeat-details-on-retry.history.json +145 -0
  107. package/fixtures/histories/interceptor-headers.history.json +339 -0
  108. package/fixtures/histories/local-activity-abandoned-at-completion.history.json +73 -0
  109. package/fixtures/histories/local-activity-cancelled-in-scope.history.json +118 -0
  110. package/fixtures/histories/local-activity-completed.history.json +157 -0
  111. package/fixtures/histories/local-activity-failed.history.json +93 -0
  112. package/fixtures/histories/local-activity-retry-in-task.history.json +88 -0
  113. package/fixtures/histories/query-custom.history.json +213 -0
  114. package/fixtures/histories/query-default-handler.history.json +120 -0
  115. package/fixtures/histories/reset-forked-reapplied-signals.history.json +239 -0
  116. package/fixtures/histories/reset-reapplied-update-admitted.history.json +228 -0
  117. package/fixtures/histories/run-retry-last-failure.history.json +90 -0
  118. package/fixtures/histories/run-timeout.history.json +159 -0
  119. package/fixtures/histories/schedule-to-start-timeout.history.json +132 -0
  120. package/fixtures/histories/search-attributes-upserted.history.json +177 -0
  121. package/fixtures/histories/start-delay-signal-ends-delay.history.json +155 -0
  122. package/fixtures/histories/typeerror-task-retry-100.history.json +137 -0
  123. package/fixtures/histories/update-accepted-completed.history.json +45 -30
  124. package/fixtures/histories/update-default-handler.history.json +246 -0
  125. package/fixtures/histories/update-handler-awaits-activity.history.json +196 -0
  126. package/fixtures/histories/update-not-handled.history.json +138 -0
  127. package/fixtures/histories/update-rejected-no-event.history.json +190 -0
  128. package/fixtures/histories/update-with-start-admitted.history.json +150 -0
  129. package/fixtures/histories/user-activity-cancel.history.json +149 -0
  130. package/fixtures/histories/user-activity-retry.history.json +143 -0
  131. package/fixtures/histories/user-activity.history.json +149 -0
  132. package/package.json +1 -1
  133. package/schema/bridge-v2.schema.json +1062 -0
  134. package/schema/history-file.schema.json +538 -83
  135. package/schema/ir-v2.schema.json +290 -0
  136. package/schema/payload-fields.json +162 -0
  137. package/schema/run-event.schema.json +503 -82
  138. package/schema/workflow-command.schema.json +372 -69
  139. package/schema/workflow-task.schema.json +924 -171
  140. package/dist/assemble-BLqQ8lSu.d.cts +0 -39
  141. package/dist/assemble-DWgaXHd-.d.ts +0 -39
  142. package/dist/chunk-DHTLALBL.cjs +0 -80
  143. package/dist/chunk-DJYMDLV5.js +0 -227
  144. package/dist/chunk-I5LR3D2K.js +0 -869
  145. package/dist/chunk-M4BBAERY.cjs +0 -1635
  146. package/dist/chunk-N23SKIG4.js +0 -73
  147. package/dist/chunk-PZCVF76Q.cjs +0 -868
  148. package/dist/chunk-QQ6ULXHI.cjs +0 -885
  149. package/dist/chunk-UK3WM7YZ.cjs +0 -75
  150. package/dist/chunk-VOKMAAJP.js +0 -848
  151. package/dist/node-evaluator-4MSDKWOG.cjs +0 -22
  152. package/dist/node-evaluator-SX4LEYQC.js +0 -12
  153. package/dist/workflow-C2a05WUJ.d.ts +0 -444
  154. package/dist/workflow-J-yYixny.d.cts +0 -444
@@ -0,0 +1,229 @@
1
+ {
2
+ "format": "fluidgrids.history",
3
+ "formatVersion": 1,
4
+ "name": "codec-opaque",
5
+ "description": "A self-hosted codec returns an encoded payload ({\"$fgp\":1,...}); the workflow passes it on untouched and the history keeps it opaque.",
6
+ "source": "src/phase-c-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": "codecOpaque",
17
+ "events": [
18
+ {
19
+ "seq": 1,
20
+ "type": "WORKFLOW_STARTED",
21
+ "payload": {
22
+ "workflowFn": "codecOpaque",
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": "user",
61
+ "activityName": "vault.read",
62
+ "taskQueue": "vault",
63
+ "args": {
64
+ "id": "s-1"
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_COMPLETED",
87
+ "payload": {
88
+ "activityId": "a1",
89
+ "attempt": 1,
90
+ "result": {
91
+ "$fgp": 1,
92
+ "encoding": "binary/encrypted",
93
+ "metadata": {
94
+ "keyId": "k-1"
95
+ },
96
+ "data": "c2VjcmV0"
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": "ACTIVITY_SCHEDULED",
130
+ "payload": {
131
+ "activityId": "a2",
132
+ "kind": "node",
133
+ "nodeType": "internal:http",
134
+ "operation": "execute",
135
+ "args": {
136
+ "url": "https://example.test/store",
137
+ "body": {
138
+ "$fgp": 1,
139
+ "encoding": "binary/encrypted",
140
+ "metadata": {
141
+ "keyId": "k-1"
142
+ },
143
+ "data": "c2VjcmV0"
144
+ }
145
+ },
146
+ "retry": {
147
+ "retryDelay": 1000,
148
+ "backoffMultiplier": 2,
149
+ "maxDelay": 100000
150
+ }
151
+ },
152
+ "createdAt": "2026-01-01T00:00:00.000Z",
153
+ "taskId": "run-1-task-2"
154
+ },
155
+ {
156
+ "seq": 12,
157
+ "type": "ACTIVITY_STARTED",
158
+ "payload": {
159
+ "activityId": "a2",
160
+ "attempt": 1
161
+ },
162
+ "createdAt": "2026-01-01T00:00:00.000Z"
163
+ },
164
+ {
165
+ "seq": 13,
166
+ "type": "ACTIVITY_COMPLETED",
167
+ "payload": {
168
+ "activityId": "a2",
169
+ "attempt": 1,
170
+ "result": {
171
+ "status": 200,
172
+ "url": "https://example.test/store"
173
+ }
174
+ },
175
+ "createdAt": "2026-01-01T00:00:00.000Z"
176
+ },
177
+ {
178
+ "seq": 14,
179
+ "type": "WORKFLOW_TASK_SCHEDULED",
180
+ "payload": {
181
+ "taskId": "run-1-task-3"
182
+ },
183
+ "createdAt": "2026-01-01T00:00:00.000Z"
184
+ },
185
+ {
186
+ "seq": 15,
187
+ "type": "WORKFLOW_TASK_STARTED",
188
+ "payload": {
189
+ "taskId": "run-1-task-3",
190
+ "attempt": 1
191
+ },
192
+ "createdAt": "2026-01-01T00:00:00.000Z"
193
+ },
194
+ {
195
+ "seq": 16,
196
+ "type": "WORKFLOW_TASK_COMPLETED",
197
+ "payload": {
198
+ "taskId": "run-1-task-3"
199
+ },
200
+ "createdAt": "2026-01-01T00:00:00.000Z",
201
+ "taskId": "run-1-task-3"
202
+ },
203
+ {
204
+ "seq": 17,
205
+ "type": "WORKFLOW_COMPLETED",
206
+ "payload": {
207
+ "output": {
208
+ "encoded": true,
209
+ "secret": {
210
+ "$fgp": 1,
211
+ "encoding": "binary/encrypted",
212
+ "metadata": {
213
+ "keyId": "k-1"
214
+ },
215
+ "data": "c2VjcmV0"
216
+ }
217
+ }
218
+ },
219
+ "createdAt": "2026-01-01T00:00:00.000Z",
220
+ "taskId": "run-1-task-3"
221
+ }
222
+ ],
223
+ "expected": {
224
+ "protocol": 1,
225
+ "outcome": "commands",
226
+ "commands": [],
227
+ "logs": []
228
+ }
229
+ }
@@ -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
+ }
@@ -0,0 +1,83 @@
1
+ {
2
+ "format": "fluidgrids.history",
3
+ "formatVersion": 1,
4
+ "name": "continue-as-new-r1-retry-options",
5
+ "description": "Phase B (R1) continue-as-new options: the activity-shaped retry with a fractional retryDelay and a backoffMultiplier below 1, as R1 wrote it. Still a valid command and a valid WORKFLOW_CONTINUED_AS_NEW.",
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-1"
14
+ },
15
+ "nowMs": 1767225600000,
16
+ "workflowFn": "r1CanRetry",
17
+ "events": [
18
+ {
19
+ "seq": 1,
20
+ "type": "WORKFLOW_STARTED",
21
+ "payload": {
22
+ "workflowFn": "r1CanRetry",
23
+ "input": {
24
+ "round": 0
25
+ },
26
+ "taskQueue": "managed",
27
+ "randomnessSeed": "run-1"
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
+ },
46
+ "createdAt": "2026-01-01T00:00:00.000Z"
47
+ },
48
+ {
49
+ "seq": 4,
50
+ "type": "WORKFLOW_TASK_COMPLETED",
51
+ "payload": {
52
+ "taskId": "run-1-task-1"
53
+ },
54
+ "createdAt": "2026-01-01T00:00:00.000Z",
55
+ "taskId": "run-1-task-1"
56
+ },
57
+ {
58
+ "seq": 5,
59
+ "type": "WORKFLOW_CONTINUED_AS_NEW",
60
+ "payload": {
61
+ "input": {
62
+ "round": 1
63
+ },
64
+ "options": {
65
+ "taskQueue": "managed",
66
+ "retry": {
67
+ "retryDelay": 1500.5,
68
+ "backoffMultiplier": 0.5,
69
+ "maxDelay": 150050
70
+ }
71
+ }
72
+ },
73
+ "createdAt": "2026-01-01T00:00:00.000Z",
74
+ "taskId": "run-1-task-1"
75
+ }
76
+ ],
77
+ "expected": {
78
+ "protocol": 1,
79
+ "outcome": "commands",
80
+ "commands": [],
81
+ "logs": []
82
+ }
83
+ }