@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,177 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format": "fluidgrids.history",
|
|
3
|
+
"formatVersion": 1,
|
|
4
|
+
"name": "search-attributes-upserted",
|
|
5
|
+
"description": "Search attributes set at the start and upserted twice (SEARCH_ATTRIBUTES_UPSERTED); a null removes one and ctx.info.searchAttributes follows.",
|
|
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-1"
|
|
14
|
+
},
|
|
15
|
+
"nowMs": 1767225600000,
|
|
16
|
+
"workflowFn": "tagged",
|
|
17
|
+
"events": [
|
|
18
|
+
{
|
|
19
|
+
"seq": 1,
|
|
20
|
+
"type": "WORKFLOW_STARTED",
|
|
21
|
+
"payload": {
|
|
22
|
+
"workflowFn": "tagged",
|
|
23
|
+
"input": null,
|
|
24
|
+
"taskQueue": "managed",
|
|
25
|
+
"randomnessSeed": "run-1",
|
|
26
|
+
"searchAttributes": {
|
|
27
|
+
"region": "eu",
|
|
28
|
+
"tier": "gold"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"createdAt": "2026-01-01T00:00:00.000Z"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"seq": 2,
|
|
35
|
+
"type": "WORKFLOW_TASK_SCHEDULED",
|
|
36
|
+
"payload": {
|
|
37
|
+
"taskId": "run-1-task-1"
|
|
38
|
+
},
|
|
39
|
+
"createdAt": "2026-01-01T00:00:00.000Z"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"seq": 3,
|
|
43
|
+
"type": "WORKFLOW_TASK_STARTED",
|
|
44
|
+
"payload": {
|
|
45
|
+
"taskId": "run-1-task-1",
|
|
46
|
+
"attempt": 1
|
|
47
|
+
},
|
|
48
|
+
"createdAt": "2026-01-01T00:00:00.000Z"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"seq": 4,
|
|
52
|
+
"type": "WORKFLOW_TASK_COMPLETED",
|
|
53
|
+
"payload": {
|
|
54
|
+
"taskId": "run-1-task-1"
|
|
55
|
+
},
|
|
56
|
+
"createdAt": "2026-01-01T00:00:00.000Z",
|
|
57
|
+
"taskId": "run-1-task-1"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"seq": 5,
|
|
61
|
+
"type": "SEARCH_ATTRIBUTES_UPSERTED",
|
|
62
|
+
"payload": {
|
|
63
|
+
"attributes": {
|
|
64
|
+
"stage": "charging",
|
|
65
|
+
"region": null
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"createdAt": "2026-01-01T00:00:00.000Z",
|
|
69
|
+
"taskId": "run-1-task-1"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"seq": 6,
|
|
73
|
+
"type": "ACTIVITY_SCHEDULED",
|
|
74
|
+
"payload": {
|
|
75
|
+
"activityId": "a1",
|
|
76
|
+
"kind": "node",
|
|
77
|
+
"nodeType": "internal:http",
|
|
78
|
+
"operation": "execute",
|
|
79
|
+
"args": {
|
|
80
|
+
"url": "https://example.test/charge"
|
|
81
|
+
},
|
|
82
|
+
"retry": {
|
|
83
|
+
"retryDelay": 1000,
|
|
84
|
+
"backoffMultiplier": 2,
|
|
85
|
+
"maxDelay": 100000
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"createdAt": "2026-01-01T00:00:00.000Z",
|
|
89
|
+
"taskId": "run-1-task-1"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"seq": 7,
|
|
93
|
+
"type": "ACTIVITY_STARTED",
|
|
94
|
+
"payload": {
|
|
95
|
+
"activityId": "a1",
|
|
96
|
+
"attempt": 1
|
|
97
|
+
},
|
|
98
|
+
"createdAt": "2026-01-01T00:00:00.000Z"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"seq": 8,
|
|
102
|
+
"type": "ACTIVITY_COMPLETED",
|
|
103
|
+
"payload": {
|
|
104
|
+
"activityId": "a1",
|
|
105
|
+
"attempt": 1,
|
|
106
|
+
"result": {
|
|
107
|
+
"status": 200,
|
|
108
|
+
"url": "https://example.test/charge"
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"createdAt": "2026-01-01T00:00:00.000Z"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"seq": 9,
|
|
115
|
+
"type": "WORKFLOW_TASK_SCHEDULED",
|
|
116
|
+
"payload": {
|
|
117
|
+
"taskId": "run-1-task-2"
|
|
118
|
+
},
|
|
119
|
+
"createdAt": "2026-01-01T00:00:00.000Z"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"seq": 10,
|
|
123
|
+
"type": "WORKFLOW_TASK_STARTED",
|
|
124
|
+
"payload": {
|
|
125
|
+
"taskId": "run-1-task-2",
|
|
126
|
+
"attempt": 1
|
|
127
|
+
},
|
|
128
|
+
"createdAt": "2026-01-01T00:00:00.000Z"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"seq": 11,
|
|
132
|
+
"type": "WORKFLOW_TASK_COMPLETED",
|
|
133
|
+
"payload": {
|
|
134
|
+
"taskId": "run-1-task-2"
|
|
135
|
+
},
|
|
136
|
+
"createdAt": "2026-01-01T00:00:00.000Z",
|
|
137
|
+
"taskId": "run-1-task-2"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"seq": 12,
|
|
141
|
+
"type": "SEARCH_ATTRIBUTES_UPSERTED",
|
|
142
|
+
"payload": {
|
|
143
|
+
"attributes": {
|
|
144
|
+
"stage": "done",
|
|
145
|
+
"orders": 3
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
"createdAt": "2026-01-01T00:00:00.000Z",
|
|
149
|
+
"taskId": "run-1-task-2"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"seq": 13,
|
|
153
|
+
"type": "WORKFLOW_COMPLETED",
|
|
154
|
+
"payload": {
|
|
155
|
+
"output": {
|
|
156
|
+
"before": {
|
|
157
|
+
"region": "eu",
|
|
158
|
+
"tier": "gold"
|
|
159
|
+
},
|
|
160
|
+
"after": {
|
|
161
|
+
"tier": "gold",
|
|
162
|
+
"stage": "done",
|
|
163
|
+
"orders": 3
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
"createdAt": "2026-01-01T00:00:00.000Z",
|
|
168
|
+
"taskId": "run-1-task-2"
|
|
169
|
+
}
|
|
170
|
+
],
|
|
171
|
+
"expected": {
|
|
172
|
+
"protocol": 1,
|
|
173
|
+
"outcome": "commands",
|
|
174
|
+
"commands": [],
|
|
175
|
+
"logs": []
|
|
176
|
+
}
|
|
177
|
+
}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format": "fluidgrids.history",
|
|
3
|
+
"formatVersion": 1,
|
|
4
|
+
"name": "start-delay-signal-ends-delay",
|
|
5
|
+
"description": "A run started with a one-hour delay (WORKFLOW_STARTED.startDelayMs): a signal at 10 minutes ends the delay and the first task runs then.",
|
|
6
|
+
"source": "src/parity-handles.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": 1767226200000,
|
|
16
|
+
"workflowFn": "delayedStart",
|
|
17
|
+
"events": [
|
|
18
|
+
{
|
|
19
|
+
"seq": 1,
|
|
20
|
+
"type": "WORKFLOW_STARTED",
|
|
21
|
+
"payload": {
|
|
22
|
+
"workflowFn": "delayedStart",
|
|
23
|
+
"input": null,
|
|
24
|
+
"taskQueue": "managed",
|
|
25
|
+
"randomnessSeed": "run-1",
|
|
26
|
+
"startDelayMs": 3600000
|
|
27
|
+
},
|
|
28
|
+
"createdAt": "2026-01-01T00:00:00.000Z"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"seq": 2,
|
|
32
|
+
"type": "SIGNAL_RECEIVED",
|
|
33
|
+
"payload": {
|
|
34
|
+
"name": "go",
|
|
35
|
+
"payload": {
|
|
36
|
+
"by": "ops"
|
|
37
|
+
},
|
|
38
|
+
"receivedAt": "2026-01-01T00:10:00.000Z"
|
|
39
|
+
},
|
|
40
|
+
"createdAt": "2026-01-01T00:10:00.000Z"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"seq": 3,
|
|
44
|
+
"type": "WORKFLOW_TASK_SCHEDULED",
|
|
45
|
+
"payload": {
|
|
46
|
+
"taskId": "run-1-task-1"
|
|
47
|
+
},
|
|
48
|
+
"createdAt": "2026-01-01T00:10:00.000Z"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"seq": 4,
|
|
52
|
+
"type": "WORKFLOW_TASK_STARTED",
|
|
53
|
+
"payload": {
|
|
54
|
+
"taskId": "run-1-task-1",
|
|
55
|
+
"attempt": 1
|
|
56
|
+
},
|
|
57
|
+
"createdAt": "2026-01-01T00:10:00.000Z"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"seq": 5,
|
|
61
|
+
"type": "WORKFLOW_TASK_COMPLETED",
|
|
62
|
+
"payload": {
|
|
63
|
+
"taskId": "run-1-task-1"
|
|
64
|
+
},
|
|
65
|
+
"createdAt": "2026-01-01T00:10:00.000Z",
|
|
66
|
+
"taskId": "run-1-task-1"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"seq": 6,
|
|
70
|
+
"type": "ACTIVITY_SCHEDULED",
|
|
71
|
+
"payload": {
|
|
72
|
+
"activityId": "a1",
|
|
73
|
+
"kind": "node",
|
|
74
|
+
"nodeType": "internal:http",
|
|
75
|
+
"operation": "execute",
|
|
76
|
+
"args": {
|
|
77
|
+
"url": "https://example.test/go/ops"
|
|
78
|
+
},
|
|
79
|
+
"retry": {
|
|
80
|
+
"retryDelay": 1000,
|
|
81
|
+
"backoffMultiplier": 2,
|
|
82
|
+
"maxDelay": 100000
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"createdAt": "2026-01-01T00:10:00.000Z",
|
|
86
|
+
"taskId": "run-1-task-1"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"seq": 7,
|
|
90
|
+
"type": "ACTIVITY_STARTED",
|
|
91
|
+
"payload": {
|
|
92
|
+
"activityId": "a1",
|
|
93
|
+
"attempt": 1
|
|
94
|
+
},
|
|
95
|
+
"createdAt": "2026-01-01T00:10:00.000Z"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"seq": 8,
|
|
99
|
+
"type": "ACTIVITY_COMPLETED",
|
|
100
|
+
"payload": {
|
|
101
|
+
"activityId": "a1",
|
|
102
|
+
"attempt": 1,
|
|
103
|
+
"result": {
|
|
104
|
+
"status": 200,
|
|
105
|
+
"url": "https://example.test/go/ops"
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
"createdAt": "2026-01-01T00:10:00.000Z"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"seq": 9,
|
|
112
|
+
"type": "WORKFLOW_TASK_SCHEDULED",
|
|
113
|
+
"payload": {
|
|
114
|
+
"taskId": "run-1-task-2"
|
|
115
|
+
},
|
|
116
|
+
"createdAt": "2026-01-01T00:10:00.000Z"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"seq": 10,
|
|
120
|
+
"type": "WORKFLOW_TASK_STARTED",
|
|
121
|
+
"payload": {
|
|
122
|
+
"taskId": "run-1-task-2",
|
|
123
|
+
"attempt": 1
|
|
124
|
+
},
|
|
125
|
+
"createdAt": "2026-01-01T00:10:00.000Z"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"seq": 11,
|
|
129
|
+
"type": "WORKFLOW_TASK_COMPLETED",
|
|
130
|
+
"payload": {
|
|
131
|
+
"taskId": "run-1-task-2"
|
|
132
|
+
},
|
|
133
|
+
"createdAt": "2026-01-01T00:10:00.000Z",
|
|
134
|
+
"taskId": "run-1-task-2"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"seq": 12,
|
|
138
|
+
"type": "WORKFLOW_COMPLETED",
|
|
139
|
+
"payload": {
|
|
140
|
+
"output": {
|
|
141
|
+
"by": "ops",
|
|
142
|
+
"startedAt": 1767226200000
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
"createdAt": "2026-01-01T00:10:00.000Z",
|
|
146
|
+
"taskId": "run-1-task-2"
|
|
147
|
+
}
|
|
148
|
+
],
|
|
149
|
+
"expected": {
|
|
150
|
+
"protocol": 1,
|
|
151
|
+
"outcome": "commands",
|
|
152
|
+
"commands": [],
|
|
153
|
+
"logs": []
|
|
154
|
+
}
|
|
155
|
+
}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format": "fluidgrids.history",
|
|
3
|
+
"formatVersion": 1,
|
|
4
|
+
"name": "typeerror-task-retry-100",
|
|
5
|
+
"description": "A TypeError fails the workflow task; the service retries it with capped backoff and writes only the first failure, so after 100 attempts the history is unchanged, the run is RUNNING and attempt 101 (17 h later) fails the same way.",
|
|
6
|
+
"source": "src/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": 1767286800000,
|
|
16
|
+
"workflowFn": "codeBug",
|
|
17
|
+
"events": [
|
|
18
|
+
{
|
|
19
|
+
"seq": 1,
|
|
20
|
+
"type": "WORKFLOW_STARTED",
|
|
21
|
+
"payload": {
|
|
22
|
+
"workflowFn": "codeBug",
|
|
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/shape"
|
|
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
|
+
"status": 200,
|
|
92
|
+
"url": "https://example.test/shape"
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"createdAt": "2026-01-01T00:00:00.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:00.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:00.000Z"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"seq": 10,
|
|
116
|
+
"type": "WORKFLOW_TASK_FAILED",
|
|
117
|
+
"payload": {
|
|
118
|
+
"taskId": "run-1-task-2",
|
|
119
|
+
"attempt": 1,
|
|
120
|
+
"cause": "WORKFLOW_CODE_ERROR",
|
|
121
|
+
"message": "TypeError: the result has no \"missing\" field"
|
|
122
|
+
},
|
|
123
|
+
"createdAt": "2026-01-01T00:00:00.000Z"
|
|
124
|
+
}
|
|
125
|
+
],
|
|
126
|
+
"expected": {
|
|
127
|
+
"protocol": 1,
|
|
128
|
+
"outcome": "failed",
|
|
129
|
+
"commands": [],
|
|
130
|
+
"logs": [],
|
|
131
|
+
"failure": {
|
|
132
|
+
"cause": "WORKFLOW_CODE_ERROR",
|
|
133
|
+
"message": "TypeError: the result has no \"missing\" field",
|
|
134
|
+
"errorType": "TypeError"
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
@@ -2,24 +2,27 @@
|
|
|
2
2
|
"format": "fluidgrids.history",
|
|
3
3
|
"formatVersion": 1,
|
|
4
4
|
"name": "update-accepted-completed",
|
|
5
|
-
"description": "
|
|
6
|
-
"source": "src/
|
|
7
|
-
"replay": false,
|
|
5
|
+
"description": "An update accepted and completed by its handler (UPDATE_ACCEPTED carries the request, UPDATE_COMPLETED the result); a signal then ends the run. Replayable from C-R1: replay re-delivers the accepted update without its validator.",
|
|
6
|
+
"source": "src/phase-c-updates.ts",
|
|
8
7
|
"info": {
|
|
9
|
-
"runId": "run-1",
|
|
10
8
|
"workspaceId": "test-workspace",
|
|
11
|
-
"taskQueue": "managed"
|
|
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"
|
|
12
14
|
},
|
|
13
15
|
"nowMs": 1767225900000,
|
|
14
|
-
"workflowFn": "
|
|
16
|
+
"workflowFn": "addressBook",
|
|
15
17
|
"events": [
|
|
16
18
|
{
|
|
17
19
|
"seq": 1,
|
|
18
20
|
"type": "WORKFLOW_STARTED",
|
|
19
21
|
"payload": {
|
|
20
|
-
"workflowFn": "
|
|
22
|
+
"workflowFn": "addressBook",
|
|
21
23
|
"input": null,
|
|
22
|
-
"taskQueue": "managed"
|
|
24
|
+
"taskQueue": "managed",
|
|
25
|
+
"randomnessSeed": "run-1"
|
|
23
26
|
},
|
|
24
27
|
"createdAt": "2026-01-01T00:00:00.000Z"
|
|
25
28
|
},
|
|
@@ -27,7 +30,7 @@
|
|
|
27
30
|
"seq": 2,
|
|
28
31
|
"type": "WORKFLOW_TASK_SCHEDULED",
|
|
29
32
|
"payload": {
|
|
30
|
-
"taskId": "
|
|
33
|
+
"taskId": "run-1-task-1"
|
|
31
34
|
},
|
|
32
35
|
"createdAt": "2026-01-01T00:00:00.000Z"
|
|
33
36
|
},
|
|
@@ -35,7 +38,7 @@
|
|
|
35
38
|
"seq": 3,
|
|
36
39
|
"type": "WORKFLOW_TASK_STARTED",
|
|
37
40
|
"payload": {
|
|
38
|
-
"taskId": "
|
|
41
|
+
"taskId": "run-1-task-1",
|
|
39
42
|
"attempt": 1
|
|
40
43
|
},
|
|
41
44
|
"createdAt": "2026-01-01T00:00:00.000Z"
|
|
@@ -44,15 +47,16 @@
|
|
|
44
47
|
"seq": 4,
|
|
45
48
|
"type": "WORKFLOW_TASK_COMPLETED",
|
|
46
49
|
"payload": {
|
|
47
|
-
"taskId": "
|
|
50
|
+
"taskId": "run-1-task-1"
|
|
48
51
|
},
|
|
49
|
-
"createdAt": "2026-01-01T00:00:00.000Z"
|
|
52
|
+
"createdAt": "2026-01-01T00:00:00.000Z",
|
|
53
|
+
"taskId": "run-1-task-1"
|
|
50
54
|
},
|
|
51
55
|
{
|
|
52
56
|
"seq": 5,
|
|
53
57
|
"type": "WORKFLOW_TASK_SCHEDULED",
|
|
54
58
|
"payload": {
|
|
55
|
-
"taskId": "
|
|
59
|
+
"taskId": "run-1-task-2"
|
|
56
60
|
},
|
|
57
61
|
"createdAt": "2026-01-01T00:05:00.000Z"
|
|
58
62
|
},
|
|
@@ -60,7 +64,7 @@
|
|
|
60
64
|
"seq": 6,
|
|
61
65
|
"type": "WORKFLOW_TASK_STARTED",
|
|
62
66
|
"payload": {
|
|
63
|
-
"taskId": "
|
|
67
|
+
"taskId": "run-1-task-2",
|
|
64
68
|
"attempt": 1
|
|
65
69
|
},
|
|
66
70
|
"createdAt": "2026-01-01T00:05:00.000Z"
|
|
@@ -69,14 +73,14 @@
|
|
|
69
73
|
"seq": 7,
|
|
70
74
|
"type": "WORKFLOW_TASK_COMPLETED",
|
|
71
75
|
"payload": {
|
|
72
|
-
"taskId": "
|
|
76
|
+
"taskId": "run-1-task-2"
|
|
73
77
|
},
|
|
74
|
-
"createdAt": "2026-01-01T00:05:00.000Z"
|
|
78
|
+
"createdAt": "2026-01-01T00:05:00.000Z",
|
|
79
|
+
"taskId": "run-1-task-2"
|
|
75
80
|
},
|
|
76
81
|
{
|
|
77
82
|
"seq": 8,
|
|
78
83
|
"type": "UPDATE_ACCEPTED",
|
|
79
|
-
"taskId": "t2",
|
|
80
84
|
"payload": {
|
|
81
85
|
"updateId": "u1",
|
|
82
86
|
"name": "changeAddress",
|
|
@@ -84,19 +88,21 @@
|
|
|
84
88
|
"address": "1 Main St"
|
|
85
89
|
}
|
|
86
90
|
},
|
|
87
|
-
"createdAt": "2026-01-01T00:05:00.000Z"
|
|
91
|
+
"createdAt": "2026-01-01T00:05:00.000Z",
|
|
92
|
+
"taskId": "run-1-task-2"
|
|
88
93
|
},
|
|
89
94
|
{
|
|
90
95
|
"seq": 9,
|
|
91
96
|
"type": "UPDATE_COMPLETED",
|
|
92
|
-
"taskId": "t2",
|
|
93
97
|
"payload": {
|
|
94
98
|
"updateId": "u1",
|
|
95
99
|
"result": {
|
|
96
|
-
"accepted": true
|
|
100
|
+
"accepted": true,
|
|
101
|
+
"address": "1 Main St"
|
|
97
102
|
}
|
|
98
103
|
},
|
|
99
|
-
"createdAt": "2026-01-01T00:05:00.000Z"
|
|
104
|
+
"createdAt": "2026-01-01T00:05:00.000Z",
|
|
105
|
+
"taskId": "run-1-task-2"
|
|
100
106
|
},
|
|
101
107
|
{
|
|
102
108
|
"seq": 10,
|
|
@@ -105,7 +111,8 @@
|
|
|
105
111
|
"name": "approve",
|
|
106
112
|
"payload": {
|
|
107
113
|
"by": "dee"
|
|
108
|
-
}
|
|
114
|
+
},
|
|
115
|
+
"receivedAt": "2026-01-01T00:05:00.000Z"
|
|
109
116
|
},
|
|
110
117
|
"createdAt": "2026-01-01T00:05:00.000Z"
|
|
111
118
|
},
|
|
@@ -113,7 +120,7 @@
|
|
|
113
120
|
"seq": 11,
|
|
114
121
|
"type": "WORKFLOW_TASK_SCHEDULED",
|
|
115
122
|
"payload": {
|
|
116
|
-
"taskId": "
|
|
123
|
+
"taskId": "run-1-task-3"
|
|
117
124
|
},
|
|
118
125
|
"createdAt": "2026-01-01T00:05:00.000Z"
|
|
119
126
|
},
|
|
@@ -121,7 +128,7 @@
|
|
|
121
128
|
"seq": 12,
|
|
122
129
|
"type": "WORKFLOW_TASK_STARTED",
|
|
123
130
|
"payload": {
|
|
124
|
-
"taskId": "
|
|
131
|
+
"taskId": "run-1-task-3",
|
|
125
132
|
"attempt": 1
|
|
126
133
|
},
|
|
127
134
|
"createdAt": "2026-01-01T00:05:00.000Z"
|
|
@@ -130,20 +137,28 @@
|
|
|
130
137
|
"seq": 13,
|
|
131
138
|
"type": "WORKFLOW_TASK_COMPLETED",
|
|
132
139
|
"payload": {
|
|
133
|
-
"taskId": "
|
|
140
|
+
"taskId": "run-1-task-3"
|
|
134
141
|
},
|
|
135
|
-
"createdAt": "2026-01-01T00:05:00.000Z"
|
|
142
|
+
"createdAt": "2026-01-01T00:05:00.000Z",
|
|
143
|
+
"taskId": "run-1-task-3"
|
|
136
144
|
},
|
|
137
145
|
{
|
|
138
146
|
"seq": 14,
|
|
139
147
|
"type": "WORKFLOW_COMPLETED",
|
|
140
|
-
"taskId": "t3",
|
|
141
148
|
"payload": {
|
|
142
149
|
"output": {
|
|
143
|
-
"approvedBy": "dee"
|
|
150
|
+
"approvedBy": "dee",
|
|
151
|
+
"address": "1 Main St"
|
|
144
152
|
}
|
|
145
153
|
},
|
|
146
|
-
"createdAt": "2026-01-01T00:05:00.000Z"
|
|
154
|
+
"createdAt": "2026-01-01T00:05:00.000Z",
|
|
155
|
+
"taskId": "run-1-task-3"
|
|
147
156
|
}
|
|
148
|
-
]
|
|
157
|
+
],
|
|
158
|
+
"expected": {
|
|
159
|
+
"protocol": 1,
|
|
160
|
+
"outcome": "commands",
|
|
161
|
+
"commands": [],
|
|
162
|
+
"logs": []
|
|
163
|
+
}
|
|
149
164
|
}
|