@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.
- package/README.md +181 -11
- package/dist/{activation-BBh1p82z.d.cts → activation-DqUfpHzk.d.cts} +1 -1
- package/dist/{activation-DnhG7SmF.d.ts → activation-xpx1oWuo.d.ts} +1 -1
- package/dist/{chunk-VRHHBPT6.js → chunk-2D3MYIIF.js} +1212 -128
- package/dist/chunk-3U2NU7YC.cjs +124 -0
- package/dist/{chunk-NEIUQASE.cjs → chunk-4QKB4ARC.cjs} +3 -3
- package/dist/{chunk-GBQ33SIZ.cjs → chunk-54FLQNUM.cjs} +12 -1
- package/dist/chunk-5HIVIV53.js +330 -0
- package/dist/chunk-5MFVJM76.js +1222 -0
- package/dist/{chunk-JD2VQIDZ.cjs → chunk-672KMMBK.cjs} +2 -2
- package/dist/{chunk-C5OLWZ42.js → chunk-6A2FGSUS.js} +22 -14
- package/dist/{chunk-XKJA7KX3.js → chunk-6OLN6BMB.js} +52 -3
- package/dist/{chunk-6FSHT5IL.js → chunk-7EZIANC7.js} +1 -1
- package/dist/{chunk-2J6TF7YI.cjs → chunk-A5SXCA62.cjs} +10 -3
- package/dist/{chunk-BO6OVILK.js → chunk-AC6ZEXVR.js} +10 -4
- package/dist/{chunk-ABFZWYHT.js → chunk-AE5Q6ZAJ.js} +315 -50
- package/dist/chunk-C4F5KJTI.js +293 -0
- package/dist/{chunk-IISBRUWJ.js → chunk-G5H32GIG.js} +1 -1
- package/dist/chunk-GEQDGUGB.cjs +2719 -0
- package/dist/{chunk-XHXIDVEC.js → chunk-HCM7ZC7Q.js} +1 -1
- package/dist/chunk-HMZUGSMU.cjs +1554 -0
- package/dist/{chunk-SAOBPYYJ.cjs → chunk-IQPXHQQQ.cjs} +8 -4
- package/dist/{chunk-P6TA5EZT.cjs → chunk-ISOIA7NV.cjs} +335 -58
- package/dist/chunk-JSC75O5C.cjs +167 -0
- package/dist/chunk-M272AHEX.js +25 -0
- package/dist/{chunk-BD7ZPG53.js → chunk-NWQ5WRLE.js} +10 -2
- package/dist/chunk-ODZ2IAR2.cjs +1247 -0
- package/dist/chunk-Q4MWQNJK.cjs +28 -0
- package/dist/{chunk-HWJZVOG7.js → chunk-SR7TR5KX.js} +6 -2
- package/dist/{chunk-FEW3JBYA.cjs → chunk-TCTE7DX5.cjs} +3 -3
- package/dist/{chunk-623FVQSN.cjs → chunk-TYF56RGB.cjs} +123 -0
- package/dist/chunk-VA4OFR72.cjs +324 -0
- package/dist/chunk-VU5S5A7V.js +150 -0
- package/dist/chunk-YEHR4NNE.js +1522 -0
- package/dist/{chunk-FMSW2HDF.cjs → chunk-ZCGKGDCL.cjs} +23 -15
- package/dist/codegen/index.d.cts +2 -2
- package/dist/codegen/index.d.ts +2 -2
- package/dist/collect-6NIEufHd.d.ts +103 -0
- package/dist/collect-CcTCKqx6.d.cts +103 -0
- package/dist/{file-BOoHZgoQ.d.cts → file-BxYpwjRQ.d.cts} +1007 -21
- package/dist/{file-yuPCFU5b.d.ts → file-CFdPQJI9.d.ts} +1007 -21
- package/dist/history/index.cjs +375 -86
- package/dist/history/index.d.cts +590 -12
- package/dist/history/index.d.ts +590 -12
- package/dist/history/index.js +50 -4
- package/dist/index.cjs +156 -50
- package/dist/index.d.cts +38 -58
- package/dist/index.d.ts +38 -58
- package/dist/index.js +6 -4
- package/dist/interceptors-CNcr2dlk.d.ts +159 -0
- package/dist/interceptors-CqkNZVfI.d.cts +159 -0
- package/dist/ir/index.cjs +362 -38
- package/dist/ir/index.d.cts +282 -7
- package/dist/ir/index.d.ts +282 -7
- package/dist/ir/index.js +329 -23
- package/dist/{lower-BzmUz0sq.d.cts → lower-BtRfIW2A.d.cts} +56 -8
- package/dist/{lower-_-iT4HYs.d.ts → lower-CpsMFOFX.d.ts} +56 -8
- package/dist/{manifest-C8N6HDYl.d.ts → manifest-D-I_twys.d.ts} +1 -1
- package/dist/{manifest-0OLw0i7k.d.cts → manifest-DahBQVM8.d.cts} +1 -1
- package/dist/node-evaluator-DGQDPSPI.cjs +24 -0
- package/dist/node-evaluator-LEEVD7H7.js +14 -0
- package/dist/payload-fields-BVRQn2yH.d.cts +122 -0
- package/dist/payload-fields-oOBWxDiG.d.ts +122 -0
- package/dist/quickjs/index.cjs +28 -27
- package/dist/quickjs/index.d.cts +6 -6
- package/dist/quickjs/index.d.ts +6 -6
- package/dist/quickjs/index.js +10 -9
- package/dist/roundtrip/index.cjs +259 -51
- package/dist/roundtrip/index.d.cts +100 -9
- package/dist/roundtrip/index.d.ts +100 -9
- package/dist/roundtrip/index.js +177 -11
- package/dist/runtime/index.cjs +21 -20
- package/dist/runtime/index.d.cts +184 -15
- package/dist/runtime/index.d.ts +184 -15
- package/dist/runtime/index.js +8 -7
- package/dist/testing/index.cjs +1122 -115
- package/dist/testing/index.d.cts +294 -13
- package/dist/testing/index.d.ts +294 -13
- package/dist/testing/index.js +1086 -84
- package/dist/{types-DV-HX_Gt.d.ts → types-Bv2i4cBX.d.cts} +244 -33
- package/dist/{types-CpBBjaGX.d.cts → types-DGx-b9eq.d.ts} +244 -33
- package/dist/{types-BGoPzgcl.d.ts → types-V7jEEUaL.d.cts} +20 -1
- package/dist/{types-BGoPzgcl.d.cts → types-V7jEEUaL.d.ts} +20 -1
- package/dist/{workflow-Bpr3vnA_.d.ts → workflow-B18OeF7g.d.ts} +2 -2
- package/dist/workflow-BGnv8SS6.d.ts +803 -0
- package/dist/{workflow-FXUkpIBc.d.cts → workflow-BJPFv3cp.d.cts} +2 -2
- package/dist/workflow-DS32Gtws.d.cts +803 -0
- package/fixtures/histories/activity-options-updated.history.json +159 -0
- package/fixtures/histories/activity-paused-unpaused.history.json +160 -0
- package/fixtures/histories/auto-upgrade-patched.history.json +276 -0
- package/fixtures/histories/benign-failure.history.json +146 -0
- package/fixtures/histories/cancel-activity-try-cancel.history.json +150 -0
- package/fixtures/histories/child-cancel-wait-requested.history.json +217 -0
- package/fixtures/histories/child-options-roundtrip.history.json +192 -0
- package/fixtures/histories/codec-opaque.history.json +229 -0
- package/fixtures/histories/continue-as-new-last-result.history.json +86 -0
- package/fixtures/histories/continue-as-new-options.history.json +99 -0
- package/fixtures/histories/continue-as-new-r1-long-task-queue.history.json +78 -0
- package/fixtures/histories/continue-as-new-r1-retry-options.history.json +83 -0
- package/fixtures/histories/dynamic-workflow.history.json +150 -0
- package/fixtures/histories/execution-timeout-chain.history.json +98 -0
- package/fixtures/histories/external-cancel-resolved.history.json +123 -0
- package/fixtures/histories/external-cancel-unknown-target.history.json +127 -0
- package/fixtures/histories/failure-error-types-fails-run.history.json +144 -0
- package/fixtures/histories/handler-drain-warn.history.json +222 -0
- package/fixtures/histories/heartbeat-details-on-retry.history.json +145 -0
- package/fixtures/histories/interceptor-headers.history.json +339 -0
- package/fixtures/histories/local-activity-abandoned-at-completion.history.json +73 -0
- package/fixtures/histories/local-activity-cancelled-in-scope.history.json +118 -0
- package/fixtures/histories/local-activity-completed.history.json +157 -0
- package/fixtures/histories/local-activity-failed.history.json +93 -0
- package/fixtures/histories/local-activity-retry-in-task.history.json +88 -0
- package/fixtures/histories/query-custom.history.json +213 -0
- package/fixtures/histories/query-default-handler.history.json +120 -0
- package/fixtures/histories/reset-forked-reapplied-signals.history.json +239 -0
- package/fixtures/histories/reset-reapplied-update-admitted.history.json +228 -0
- package/fixtures/histories/run-retry-last-failure.history.json +90 -0
- package/fixtures/histories/run-timeout.history.json +159 -0
- package/fixtures/histories/schedule-to-start-timeout.history.json +132 -0
- package/fixtures/histories/search-attributes-upserted.history.json +177 -0
- package/fixtures/histories/start-delay-signal-ends-delay.history.json +155 -0
- package/fixtures/histories/typeerror-task-retry-100.history.json +137 -0
- package/fixtures/histories/update-accepted-completed.history.json +45 -30
- package/fixtures/histories/update-default-handler.history.json +246 -0
- package/fixtures/histories/update-handler-awaits-activity.history.json +196 -0
- package/fixtures/histories/update-not-handled.history.json +138 -0
- package/fixtures/histories/update-rejected-no-event.history.json +190 -0
- package/fixtures/histories/update-with-start-admitted.history.json +150 -0
- package/fixtures/histories/user-activity-cancel.history.json +149 -0
- package/fixtures/histories/user-activity-retry.history.json +143 -0
- package/fixtures/histories/user-activity.history.json +149 -0
- package/package.json +1 -1
- package/schema/bridge-v2.schema.json +1062 -0
- package/schema/history-file.schema.json +538 -83
- package/schema/ir-v2.schema.json +290 -0
- package/schema/payload-fields.json +162 -0
- package/schema/run-event.schema.json +503 -82
- package/schema/workflow-command.schema.json +372 -69
- package/schema/workflow-task.schema.json +924 -171
- package/dist/assemble-BLqQ8lSu.d.cts +0 -39
- package/dist/assemble-DWgaXHd-.d.ts +0 -39
- package/dist/chunk-DHTLALBL.cjs +0 -80
- package/dist/chunk-DJYMDLV5.js +0 -227
- package/dist/chunk-I5LR3D2K.js +0 -869
- package/dist/chunk-M4BBAERY.cjs +0 -1635
- package/dist/chunk-N23SKIG4.js +0 -73
- package/dist/chunk-PZCVF76Q.cjs +0 -868
- package/dist/chunk-QQ6ULXHI.cjs +0 -885
- package/dist/chunk-UK3WM7YZ.cjs +0 -75
- package/dist/chunk-VOKMAAJP.js +0 -848
- package/dist/node-evaluator-4MSDKWOG.cjs +0 -22
- package/dist/node-evaluator-SX4LEYQC.js +0 -12
- package/dist/workflow-C2a05WUJ.d.ts +0 -444
- package/dist/workflow-J-yYixny.d.cts +0 -444
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format": "fluidgrids.history",
|
|
3
|
+
"formatVersion": 1,
|
|
4
|
+
"name": "query-custom",
|
|
5
|
+
"description": "A custom query handler reads the state two signals built; the query is answered from the replayed history and appends nothing.",
|
|
6
|
+
"source": "src/phase-c-queries.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": "counter",
|
|
17
|
+
"events": [
|
|
18
|
+
{
|
|
19
|
+
"seq": 1,
|
|
20
|
+
"type": "WORKFLOW_STARTED",
|
|
21
|
+
"payload": {
|
|
22
|
+
"workflowFn": "counter",
|
|
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": "SIGNAL_RECEIVED",
|
|
58
|
+
"payload": {
|
|
59
|
+
"name": "tick",
|
|
60
|
+
"payload": null,
|
|
61
|
+
"receivedAt": "2026-01-01T00:00:00.000Z"
|
|
62
|
+
},
|
|
63
|
+
"createdAt": "2026-01-01T00:00:00.000Z"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"seq": 6,
|
|
67
|
+
"type": "WORKFLOW_TASK_SCHEDULED",
|
|
68
|
+
"payload": {
|
|
69
|
+
"taskId": "run-1-task-2"
|
|
70
|
+
},
|
|
71
|
+
"createdAt": "2026-01-01T00:00:00.000Z"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"seq": 7,
|
|
75
|
+
"type": "WORKFLOW_TASK_STARTED",
|
|
76
|
+
"payload": {
|
|
77
|
+
"taskId": "run-1-task-2",
|
|
78
|
+
"attempt": 1
|
|
79
|
+
},
|
|
80
|
+
"createdAt": "2026-01-01T00:00:00.000Z"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"seq": 8,
|
|
84
|
+
"type": "WORKFLOW_TASK_COMPLETED",
|
|
85
|
+
"payload": {
|
|
86
|
+
"taskId": "run-1-task-2"
|
|
87
|
+
},
|
|
88
|
+
"createdAt": "2026-01-01T00:00:00.000Z",
|
|
89
|
+
"taskId": "run-1-task-2"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"seq": 9,
|
|
93
|
+
"type": "SIGNAL_RECEIVED",
|
|
94
|
+
"payload": {
|
|
95
|
+
"name": "tick",
|
|
96
|
+
"payload": null,
|
|
97
|
+
"receivedAt": "2026-01-01T00:00:00.000Z"
|
|
98
|
+
},
|
|
99
|
+
"createdAt": "2026-01-01T00:00:00.000Z"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"seq": 10,
|
|
103
|
+
"type": "WORKFLOW_TASK_SCHEDULED",
|
|
104
|
+
"payload": {
|
|
105
|
+
"taskId": "run-1-task-3"
|
|
106
|
+
},
|
|
107
|
+
"createdAt": "2026-01-01T00:00:00.000Z"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"seq": 11,
|
|
111
|
+
"type": "WORKFLOW_TASK_STARTED",
|
|
112
|
+
"payload": {
|
|
113
|
+
"taskId": "run-1-task-3",
|
|
114
|
+
"attempt": 1
|
|
115
|
+
},
|
|
116
|
+
"createdAt": "2026-01-01T00:00:00.000Z"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"seq": 12,
|
|
120
|
+
"type": "WORKFLOW_TASK_COMPLETED",
|
|
121
|
+
"payload": {
|
|
122
|
+
"taskId": "run-1-task-3"
|
|
123
|
+
},
|
|
124
|
+
"createdAt": "2026-01-01T00:00:00.000Z",
|
|
125
|
+
"taskId": "run-1-task-3"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"seq": 13,
|
|
129
|
+
"type": "ACTIVITY_SCHEDULED",
|
|
130
|
+
"payload": {
|
|
131
|
+
"activityId": "a1",
|
|
132
|
+
"kind": "node",
|
|
133
|
+
"nodeType": "internal:http",
|
|
134
|
+
"operation": "execute",
|
|
135
|
+
"args": {
|
|
136
|
+
"url": "https://example.test/work"
|
|
137
|
+
},
|
|
138
|
+
"retry": {
|
|
139
|
+
"retryDelay": 1000,
|
|
140
|
+
"backoffMultiplier": 2,
|
|
141
|
+
"maxDelay": 100000
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
"createdAt": "2026-01-01T00:00:00.000Z",
|
|
145
|
+
"taskId": "run-1-task-3"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"seq": 14,
|
|
149
|
+
"type": "ACTIVITY_STARTED",
|
|
150
|
+
"payload": {
|
|
151
|
+
"activityId": "a1",
|
|
152
|
+
"attempt": 1
|
|
153
|
+
},
|
|
154
|
+
"createdAt": "2026-01-01T00:00:00.000Z"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"seq": 15,
|
|
158
|
+
"type": "ACTIVITY_COMPLETED",
|
|
159
|
+
"payload": {
|
|
160
|
+
"activityId": "a1",
|
|
161
|
+
"attempt": 1,
|
|
162
|
+
"result": {
|
|
163
|
+
"status": 200,
|
|
164
|
+
"url": "https://example.test/work"
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
"createdAt": "2026-01-01T00:00:00.000Z"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"seq": 16,
|
|
171
|
+
"type": "WORKFLOW_TASK_SCHEDULED",
|
|
172
|
+
"payload": {
|
|
173
|
+
"taskId": "run-1-task-4"
|
|
174
|
+
},
|
|
175
|
+
"createdAt": "2026-01-01T00:00:00.000Z"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"seq": 17,
|
|
179
|
+
"type": "WORKFLOW_TASK_STARTED",
|
|
180
|
+
"payload": {
|
|
181
|
+
"taskId": "run-1-task-4",
|
|
182
|
+
"attempt": 1
|
|
183
|
+
},
|
|
184
|
+
"createdAt": "2026-01-01T00:00:00.000Z"
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"seq": 18,
|
|
188
|
+
"type": "WORKFLOW_TASK_COMPLETED",
|
|
189
|
+
"payload": {
|
|
190
|
+
"taskId": "run-1-task-4"
|
|
191
|
+
},
|
|
192
|
+
"createdAt": "2026-01-01T00:00:00.000Z",
|
|
193
|
+
"taskId": "run-1-task-4"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"seq": 19,
|
|
197
|
+
"type": "WORKFLOW_COMPLETED",
|
|
198
|
+
"payload": {
|
|
199
|
+
"output": {
|
|
200
|
+
"count": 2
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
"createdAt": "2026-01-01T00:00:00.000Z",
|
|
204
|
+
"taskId": "run-1-task-4"
|
|
205
|
+
}
|
|
206
|
+
],
|
|
207
|
+
"expected": {
|
|
208
|
+
"protocol": 1,
|
|
209
|
+
"outcome": "commands",
|
|
210
|
+
"commands": [],
|
|
211
|
+
"logs": []
|
|
212
|
+
}
|
|
213
|
+
}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format": "fluidgrids.history",
|
|
3
|
+
"formatVersion": 1,
|
|
4
|
+
"name": "query-default-handler",
|
|
5
|
+
"description": "setDefaultQueryHandler answers every query name.",
|
|
6
|
+
"source": "src/phase-c-queries.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": "echoQueries",
|
|
17
|
+
"events": [
|
|
18
|
+
{
|
|
19
|
+
"seq": 1,
|
|
20
|
+
"type": "WORKFLOW_STARTED",
|
|
21
|
+
"payload": {
|
|
22
|
+
"workflowFn": "echoQueries",
|
|
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": "TIMER_FIRED",
|
|
69
|
+
"payload": {
|
|
70
|
+
"timerId": "t1"
|
|
71
|
+
},
|
|
72
|
+
"createdAt": "2026-01-01T00:01:00.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:01:00.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:01:00.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:01:00.000Z",
|
|
98
|
+
"taskId": "run-1-task-2"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"seq": 10,
|
|
102
|
+
"type": "WORKFLOW_COMPLETED",
|
|
103
|
+
"payload": {
|
|
104
|
+
"output": {
|
|
105
|
+
"asked": [
|
|
106
|
+
"started"
|
|
107
|
+
]
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
"createdAt": "2026-01-01T00:01:00.000Z",
|
|
111
|
+
"taskId": "run-1-task-2"
|
|
112
|
+
}
|
|
113
|
+
],
|
|
114
|
+
"expected": {
|
|
115
|
+
"protocol": 1,
|
|
116
|
+
"outcome": "commands",
|
|
117
|
+
"commands": [],
|
|
118
|
+
"logs": []
|
|
119
|
+
}
|
|
120
|
+
}
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format": "fluidgrids.history",
|
|
3
|
+
"formatVersion": 1,
|
|
4
|
+
"name": "reset-forked-reapplied-signals",
|
|
5
|
+
"description": "Reset to the first task: the fork copies the history up to that task, appends WORKFLOW_RESET and re-applies the signals received later; the original is terminated with RESET.",
|
|
6
|
+
"source": "src/phase-c-control.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
|
+
},
|
|
15
|
+
"nowMs": 1767225600000,
|
|
16
|
+
"workflowFn": "summer",
|
|
17
|
+
"events": [
|
|
18
|
+
{
|
|
19
|
+
"seq": 1,
|
|
20
|
+
"type": "WORKFLOW_STARTED",
|
|
21
|
+
"payload": {
|
|
22
|
+
"workflowFn": "summer",
|
|
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/begin"
|
|
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": "WORKFLOW_RESET",
|
|
78
|
+
"payload": {
|
|
79
|
+
"fromRunId": "run-1",
|
|
80
|
+
"toSeq": 5,
|
|
81
|
+
"reapplySignals": true,
|
|
82
|
+
"reapplyUpdates": true,
|
|
83
|
+
"reason": "fix the sum"
|
|
84
|
+
},
|
|
85
|
+
"createdAt": "2026-01-01T00:00:00.000Z"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"seq": 7,
|
|
89
|
+
"type": "SIGNAL_RECEIVED",
|
|
90
|
+
"payload": {
|
|
91
|
+
"name": "add",
|
|
92
|
+
"payload": {
|
|
93
|
+
"value": 2
|
|
94
|
+
},
|
|
95
|
+
"receivedAt": "2026-01-01T00:00:00.000Z"
|
|
96
|
+
},
|
|
97
|
+
"createdAt": "2026-01-01T00:00:00.000Z"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"seq": 8,
|
|
101
|
+
"type": "WORKFLOW_TASK_SCHEDULED",
|
|
102
|
+
"payload": {
|
|
103
|
+
"taskId": "run-2-task-2"
|
|
104
|
+
},
|
|
105
|
+
"createdAt": "2026-01-01T00:00:00.000Z"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"seq": 9,
|
|
109
|
+
"type": "SIGNAL_RECEIVED",
|
|
110
|
+
"payload": {
|
|
111
|
+
"name": "add",
|
|
112
|
+
"payload": {
|
|
113
|
+
"value": 3
|
|
114
|
+
},
|
|
115
|
+
"receivedAt": "2026-01-01T00:00:00.000Z"
|
|
116
|
+
},
|
|
117
|
+
"createdAt": "2026-01-01T00:00:00.000Z"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"seq": 10,
|
|
121
|
+
"type": "WORKFLOW_TASK_STARTED",
|
|
122
|
+
"payload": {
|
|
123
|
+
"taskId": "run-2-task-2",
|
|
124
|
+
"attempt": 1
|
|
125
|
+
},
|
|
126
|
+
"createdAt": "2026-01-01T00:00:00.000Z"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"seq": 11,
|
|
130
|
+
"type": "WORKFLOW_TASK_COMPLETED",
|
|
131
|
+
"payload": {
|
|
132
|
+
"taskId": "run-2-task-2"
|
|
133
|
+
},
|
|
134
|
+
"createdAt": "2026-01-01T00:00:00.000Z",
|
|
135
|
+
"taskId": "run-2-task-2"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"seq": 12,
|
|
139
|
+
"type": "ACTIVITY_STARTED",
|
|
140
|
+
"payload": {
|
|
141
|
+
"activityId": "a1",
|
|
142
|
+
"attempt": 1
|
|
143
|
+
},
|
|
144
|
+
"createdAt": "2026-01-01T00:00:00.000Z"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"seq": 13,
|
|
148
|
+
"type": "ACTIVITY_COMPLETED",
|
|
149
|
+
"payload": {
|
|
150
|
+
"activityId": "a1",
|
|
151
|
+
"attempt": 1,
|
|
152
|
+
"result": {
|
|
153
|
+
"status": 200,
|
|
154
|
+
"url": "https://example.test/begin"
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
"createdAt": "2026-01-01T00:00:00.000Z"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"seq": 14,
|
|
161
|
+
"type": "WORKFLOW_TASK_SCHEDULED",
|
|
162
|
+
"payload": {
|
|
163
|
+
"taskId": "run-2-task-3"
|
|
164
|
+
},
|
|
165
|
+
"createdAt": "2026-01-01T00:00:00.000Z"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"seq": 15,
|
|
169
|
+
"type": "WORKFLOW_TASK_STARTED",
|
|
170
|
+
"payload": {
|
|
171
|
+
"taskId": "run-2-task-3",
|
|
172
|
+
"attempt": 1
|
|
173
|
+
},
|
|
174
|
+
"createdAt": "2026-01-01T00:00:00.000Z"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"seq": 16,
|
|
178
|
+
"type": "WORKFLOW_TASK_COMPLETED",
|
|
179
|
+
"payload": {
|
|
180
|
+
"taskId": "run-2-task-3"
|
|
181
|
+
},
|
|
182
|
+
"createdAt": "2026-01-01T00:00:00.000Z",
|
|
183
|
+
"taskId": "run-2-task-3"
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"seq": 17,
|
|
187
|
+
"type": "SIGNAL_RECEIVED",
|
|
188
|
+
"payload": {
|
|
189
|
+
"name": "done",
|
|
190
|
+
"payload": null,
|
|
191
|
+
"receivedAt": "2026-01-01T00:00:00.000Z"
|
|
192
|
+
},
|
|
193
|
+
"createdAt": "2026-01-01T00:00:00.000Z"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"seq": 18,
|
|
197
|
+
"type": "WORKFLOW_TASK_SCHEDULED",
|
|
198
|
+
"payload": {
|
|
199
|
+
"taskId": "run-2-task-4"
|
|
200
|
+
},
|
|
201
|
+
"createdAt": "2026-01-01T00:00:00.000Z"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"seq": 19,
|
|
205
|
+
"type": "WORKFLOW_TASK_STARTED",
|
|
206
|
+
"payload": {
|
|
207
|
+
"taskId": "run-2-task-4",
|
|
208
|
+
"attempt": 1
|
|
209
|
+
},
|
|
210
|
+
"createdAt": "2026-01-01T00:00:00.000Z"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"seq": 20,
|
|
214
|
+
"type": "WORKFLOW_TASK_COMPLETED",
|
|
215
|
+
"payload": {
|
|
216
|
+
"taskId": "run-2-task-4"
|
|
217
|
+
},
|
|
218
|
+
"createdAt": "2026-01-01T00:00:00.000Z",
|
|
219
|
+
"taskId": "run-2-task-4"
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"seq": 21,
|
|
223
|
+
"type": "WORKFLOW_COMPLETED",
|
|
224
|
+
"payload": {
|
|
225
|
+
"output": {
|
|
226
|
+
"total": 5
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
"createdAt": "2026-01-01T00:00:00.000Z",
|
|
230
|
+
"taskId": "run-2-task-4"
|
|
231
|
+
}
|
|
232
|
+
],
|
|
233
|
+
"expected": {
|
|
234
|
+
"protocol": 1,
|
|
235
|
+
"outcome": "commands",
|
|
236
|
+
"commands": [],
|
|
237
|
+
"logs": []
|
|
238
|
+
}
|
|
239
|
+
}
|