@fluidgrids/workflows 2026.1029.1 → 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 (118) hide show
  1. package/README.md +112 -4
  2. package/dist/{activation-CESehfYi.d.cts → activation-DqUfpHzk.d.cts} +1 -1
  3. package/dist/{activation-BnVQMv9y.d.ts → activation-xpx1oWuo.d.ts} +1 -1
  4. package/dist/{chunk-MJ5TGYVG.js → chunk-2D3MYIIF.js} +969 -153
  5. package/dist/{chunk-2B37XAFQ.cjs → chunk-3U2NU7YC.cjs} +24 -11
  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-2DDULZFM.js → chunk-5HIVIV53.js} +86 -75
  9. package/dist/chunk-5MFVJM76.js +1222 -0
  10. package/dist/{chunk-EWYADREB.cjs → chunk-672KMMBK.cjs} +2 -2
  11. package/dist/{chunk-KXJDRQ6G.js → chunk-6A2FGSUS.js} +22 -2
  12. package/dist/{chunk-OIX4O6UR.js → chunk-6OLN6BMB.js} +16 -3
  13. package/dist/{chunk-6FSHT5IL.js → chunk-7EZIANC7.js} +1 -1
  14. package/dist/chunk-A5SXCA62.cjs +93 -0
  15. package/dist/chunk-AC6ZEXVR.js +85 -0
  16. package/dist/{chunk-FWBRQWRX.js → chunk-AE5Q6ZAJ.js} +167 -10
  17. package/dist/{chunk-7ILGCUI6.js → chunk-C4F5KJTI.js} +142 -3
  18. package/dist/{chunk-WXXNCHUY.js → chunk-G5H32GIG.js} +1 -1
  19. package/dist/{chunk-OMY3CKUZ.cjs → chunk-GEQDGUGB.cjs} +1042 -226
  20. package/dist/{chunk-25BKWR2O.js → chunk-HCM7ZC7Q.js} +1 -1
  21. package/dist/{chunk-I47EENR4.cjs → chunk-HMZUGSMU.cjs} +673 -156
  22. package/dist/{chunk-NXFBVDOI.cjs → chunk-IQPXHQQQ.cjs} +8 -4
  23. package/dist/{chunk-RUQIMTN5.cjs → chunk-ISOIA7NV.cjs} +178 -15
  24. package/dist/chunk-JSC75O5C.cjs +167 -0
  25. package/dist/{chunk-BD7ZPG53.js → chunk-NWQ5WRLE.js} +10 -2
  26. package/dist/chunk-ODZ2IAR2.cjs +1247 -0
  27. package/dist/{chunk-FQSJI5NV.js → chunk-SR7TR5KX.js} +6 -2
  28. package/dist/{chunk-OKX3FYIM.cjs → chunk-TCTE7DX5.cjs} +3 -3
  29. package/dist/{chunk-3FIDHONL.cjs → chunk-TYF56RGB.cjs} +99 -80
  30. package/dist/{chunk-J3PYFGKA.cjs → chunk-VA4OFR72.cjs} +162 -4
  31. package/dist/chunk-VU5S5A7V.js +150 -0
  32. package/dist/{chunk-A36CCOWS.js → chunk-YEHR4NNE.js} +633 -128
  33. package/dist/{chunk-ELL2RBML.cjs → chunk-ZCGKGDCL.cjs} +23 -1
  34. package/dist/codegen/index.d.cts +2 -2
  35. package/dist/codegen/index.d.ts +2 -2
  36. package/dist/{collect-BTHjQaSp.d.ts → collect-6NIEufHd.d.ts} +20 -3
  37. package/dist/{collect-CSyOg5XC.d.cts → collect-CcTCKqx6.d.cts} +20 -3
  38. package/dist/{file-cgL9l9l8.d.cts → file-BxYpwjRQ.d.cts} +250 -15
  39. package/dist/{file-olQudcx5.d.ts → file-CFdPQJI9.d.ts} +250 -15
  40. package/dist/history/index.cjs +283 -106
  41. package/dist/history/index.d.cts +549 -10
  42. package/dist/history/index.d.ts +549 -10
  43. package/dist/history/index.js +5 -4
  44. package/dist/index.cjs +146 -53
  45. package/dist/index.d.cts +38 -14
  46. package/dist/index.d.ts +38 -14
  47. package/dist/index.js +6 -5
  48. package/dist/interceptors-CNcr2dlk.d.ts +159 -0
  49. package/dist/interceptors-CqkNZVfI.d.cts +159 -0
  50. package/dist/ir/index.cjs +339 -36
  51. package/dist/ir/index.d.cts +244 -8
  52. package/dist/ir/index.d.ts +244 -8
  53. package/dist/ir/index.js +306 -21
  54. package/dist/{lower-3S6PsqjJ.d.cts → lower-BtRfIW2A.d.cts} +23 -9
  55. package/dist/{lower-DmZpQ8hJ.d.ts → lower-CpsMFOFX.d.ts} +23 -9
  56. package/dist/{manifest-BJjrQt77.d.ts → manifest-D-I_twys.d.ts} +1 -1
  57. package/dist/{manifest-gRI2Q5Fj.d.cts → manifest-DahBQVM8.d.cts} +1 -1
  58. package/dist/node-evaluator-DGQDPSPI.cjs +24 -0
  59. package/dist/node-evaluator-LEEVD7H7.js +14 -0
  60. package/dist/payload-fields-BVRQn2yH.d.cts +122 -0
  61. package/dist/payload-fields-oOBWxDiG.d.ts +122 -0
  62. package/dist/quickjs/index.cjs +27 -27
  63. package/dist/quickjs/index.d.cts +6 -6
  64. package/dist/quickjs/index.d.ts +6 -6
  65. package/dist/quickjs/index.js +9 -9
  66. package/dist/roundtrip/index.cjs +72 -66
  67. package/dist/roundtrip/index.d.cts +25 -11
  68. package/dist/roundtrip/index.d.ts +25 -11
  69. package/dist/roundtrip/index.js +13 -11
  70. package/dist/runtime/index.cjs +19 -19
  71. package/dist/runtime/index.d.cts +139 -12
  72. package/dist/runtime/index.d.ts +139 -12
  73. package/dist/runtime/index.js +6 -6
  74. package/dist/testing/index.cjs +688 -121
  75. package/dist/testing/index.d.cts +174 -10
  76. package/dist/testing/index.d.ts +174 -10
  77. package/dist/testing/index.js +646 -82
  78. package/dist/{types-CnIOinoz.d.ts → types-Bv2i4cBX.d.cts} +126 -23
  79. package/dist/{types-CQKOhPTa.d.cts → types-DGx-b9eq.d.ts} +126 -23
  80. package/dist/{types-Bb2wRnJ5.d.cts → types-V7jEEUaL.d.cts} +1 -1
  81. package/dist/{types-Bb2wRnJ5.d.ts → types-V7jEEUaL.d.ts} +1 -1
  82. package/dist/{workflow-8uRU9rhL.d.ts → workflow-B18OeF7g.d.ts} +2 -2
  83. package/dist/{workflow-DWTPHFbt.d.ts → workflow-BGnv8SS6.d.ts} +261 -14
  84. package/dist/{workflow-CZOXUlQ5.d.cts → workflow-BJPFv3cp.d.cts} +2 -2
  85. package/dist/{workflow-O6e64ZcG.d.cts → workflow-DS32Gtws.d.cts} +261 -14
  86. package/fixtures/histories/activity-options-updated.history.json +159 -0
  87. package/fixtures/histories/activity-paused-unpaused.history.json +160 -0
  88. package/fixtures/histories/codec-opaque.history.json +229 -0
  89. package/fixtures/histories/dynamic-workflow.history.json +150 -0
  90. package/fixtures/histories/interceptor-headers.history.json +339 -0
  91. package/fixtures/histories/query-custom.history.json +213 -0
  92. package/fixtures/histories/query-default-handler.history.json +120 -0
  93. package/fixtures/histories/reset-forked-reapplied-signals.history.json +239 -0
  94. package/fixtures/histories/reset-reapplied-update-admitted.history.json +228 -0
  95. package/fixtures/histories/search-attributes-upserted.history.json +177 -0
  96. package/fixtures/histories/update-accepted-completed.history.json +45 -30
  97. package/fixtures/histories/update-default-handler.history.json +246 -0
  98. package/fixtures/histories/update-handler-awaits-activity.history.json +196 -0
  99. package/fixtures/histories/update-not-handled.history.json +138 -0
  100. package/fixtures/histories/update-rejected-no-event.history.json +190 -0
  101. package/fixtures/histories/update-with-start-admitted.history.json +150 -0
  102. package/fixtures/histories/user-activity-cancel.history.json +149 -0
  103. package/fixtures/histories/user-activity-retry.history.json +143 -0
  104. package/fixtures/histories/user-activity.history.json +149 -0
  105. package/package.json +1 -1
  106. package/schema/bridge-v2.schema.json +1062 -0
  107. package/schema/history-file.schema.json +255 -81
  108. package/schema/ir-v2.schema.json +246 -1
  109. package/schema/payload-fields.json +162 -0
  110. package/schema/run-event.schema.json +239 -80
  111. package/schema/workflow-command.schema.json +210 -84
  112. package/schema/workflow-task.schema.json +532 -167
  113. package/dist/chunk-6QPOJZT6.cjs +0 -1180
  114. package/dist/chunk-A2OHX3UQ.js +0 -1156
  115. package/dist/chunk-PWIUEWC3.js +0 -81
  116. package/dist/chunk-YHBVMOMK.cjs +0 -87
  117. package/dist/node-evaluator-SOADN23V.js +0 -14
  118. package/dist/node-evaluator-YGDEXK4U.cjs +0 -24
@@ -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
+ }
@@ -0,0 +1,228 @@
1
+ {
2
+ "format": "fluidgrids.history",
3
+ "formatVersion": 1,
4
+ "name": "reset-reapplied-update-admitted",
5
+ "description": "An update accepted after the reset point is re-applied in the fork as UPDATE_ADMITTED, validated and accepted again.",
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": 1767225660000,
16
+ "workflowFn": "renamer",
17
+ "events": [
18
+ {
19
+ "seq": 1,
20
+ "type": "WORKFLOW_STARTED",
21
+ "payload": {
22
+ "workflowFn": "renamer",
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": "WORKFLOW_RESET",
69
+ "payload": {
70
+ "fromRunId": "run-1",
71
+ "toSeq": 5,
72
+ "reapplySignals": true,
73
+ "reapplyUpdates": true
74
+ },
75
+ "createdAt": "2026-01-01T00:00:00.000Z"
76
+ },
77
+ {
78
+ "seq": 7,
79
+ "type": "UPDATE_ADMITTED",
80
+ "payload": {
81
+ "updateId": "u1",
82
+ "name": "rename",
83
+ "args": {
84
+ "name": "second"
85
+ }
86
+ },
87
+ "createdAt": "2026-01-01T00:00:00.000Z"
88
+ },
89
+ {
90
+ "seq": 8,
91
+ "type": "WORKFLOW_TASK_SCHEDULED",
92
+ "payload": {
93
+ "taskId": "run-2-task-2"
94
+ },
95
+ "createdAt": "2026-01-01T00:00:00.000Z"
96
+ },
97
+ {
98
+ "seq": 9,
99
+ "type": "WORKFLOW_TASK_STARTED",
100
+ "payload": {
101
+ "taskId": "run-2-task-2",
102
+ "attempt": 1
103
+ },
104
+ "createdAt": "2026-01-01T00:00:00.000Z"
105
+ },
106
+ {
107
+ "seq": 10,
108
+ "type": "WORKFLOW_TASK_COMPLETED",
109
+ "payload": {
110
+ "taskId": "run-2-task-2"
111
+ },
112
+ "createdAt": "2026-01-01T00:00:00.000Z",
113
+ "taskId": "run-2-task-2"
114
+ },
115
+ {
116
+ "seq": 11,
117
+ "type": "UPDATE_ACCEPTED",
118
+ "payload": {
119
+ "updateId": "u1",
120
+ "name": "rename",
121
+ "args": {
122
+ "name": "second"
123
+ }
124
+ },
125
+ "createdAt": "2026-01-01T00:00:00.000Z",
126
+ "taskId": "run-2-task-2"
127
+ },
128
+ {
129
+ "seq": 12,
130
+ "type": "UPDATE_COMPLETED",
131
+ "payload": {
132
+ "updateId": "u1",
133
+ "result": {
134
+ "name": "second"
135
+ }
136
+ },
137
+ "createdAt": "2026-01-01T00:00:00.000Z",
138
+ "taskId": "run-2-task-2"
139
+ },
140
+ {
141
+ "seq": 13,
142
+ "type": "TIMER_FIRED",
143
+ "payload": {
144
+ "timerId": "t1"
145
+ },
146
+ "createdAt": "2026-01-01T00:01:00.000Z"
147
+ },
148
+ {
149
+ "seq": 14,
150
+ "type": "WORKFLOW_TASK_SCHEDULED",
151
+ "payload": {
152
+ "taskId": "run-2-task-3"
153
+ },
154
+ "createdAt": "2026-01-01T00:01:00.000Z"
155
+ },
156
+ {
157
+ "seq": 15,
158
+ "type": "WORKFLOW_TASK_STARTED",
159
+ "payload": {
160
+ "taskId": "run-2-task-3",
161
+ "attempt": 1
162
+ },
163
+ "createdAt": "2026-01-01T00:01:00.000Z"
164
+ },
165
+ {
166
+ "seq": 16,
167
+ "type": "WORKFLOW_TASK_COMPLETED",
168
+ "payload": {
169
+ "taskId": "run-2-task-3"
170
+ },
171
+ "createdAt": "2026-01-01T00:01:00.000Z",
172
+ "taskId": "run-2-task-3"
173
+ },
174
+ {
175
+ "seq": 17,
176
+ "type": "SIGNAL_RECEIVED",
177
+ "payload": {
178
+ "name": "done",
179
+ "payload": null,
180
+ "receivedAt": "2026-01-01T00:01:00.000Z"
181
+ },
182
+ "createdAt": "2026-01-01T00:01:00.000Z"
183
+ },
184
+ {
185
+ "seq": 18,
186
+ "type": "WORKFLOW_TASK_SCHEDULED",
187
+ "payload": {
188
+ "taskId": "run-2-task-4"
189
+ },
190
+ "createdAt": "2026-01-01T00:01:00.000Z"
191
+ },
192
+ {
193
+ "seq": 19,
194
+ "type": "WORKFLOW_TASK_STARTED",
195
+ "payload": {
196
+ "taskId": "run-2-task-4",
197
+ "attempt": 1
198
+ },
199
+ "createdAt": "2026-01-01T00:01:00.000Z"
200
+ },
201
+ {
202
+ "seq": 20,
203
+ "type": "WORKFLOW_TASK_COMPLETED",
204
+ "payload": {
205
+ "taskId": "run-2-task-4"
206
+ },
207
+ "createdAt": "2026-01-01T00:01:00.000Z",
208
+ "taskId": "run-2-task-4"
209
+ },
210
+ {
211
+ "seq": 21,
212
+ "type": "WORKFLOW_COMPLETED",
213
+ "payload": {
214
+ "output": {
215
+ "name": "second"
216
+ }
217
+ },
218
+ "createdAt": "2026-01-01T00:01:00.000Z",
219
+ "taskId": "run-2-task-4"
220
+ }
221
+ ],
222
+ "expected": {
223
+ "protocol": 1,
224
+ "outcome": "commands",
225
+ "commands": [],
226
+ "logs": []
227
+ }
228
+ }
@@ -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
+ }