@workflow/core 5.0.0-beta.40 → 5.0.0-beta.42

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 (82) hide show
  1. package/dist/events-consumer.d.ts +224 -6
  2. package/dist/events-consumer.d.ts.map +1 -1
  3. package/dist/events-consumer.js +497 -50
  4. package/dist/private.d.ts +87 -18
  5. package/dist/private.d.ts.map +1 -1
  6. package/dist/private.js +118 -47
  7. package/dist/runtime/constants.d.ts +50 -1
  8. package/dist/runtime/constants.d.ts.map +1 -1
  9. package/dist/runtime/constants.js +59 -3
  10. package/dist/runtime/helpers.d.ts +212 -70
  11. package/dist/runtime/helpers.d.ts.map +1 -1
  12. package/dist/runtime/helpers.js +275 -86
  13. package/dist/runtime/quickjs-assets.generated.d.ts.map +1 -1
  14. package/dist/runtime/quickjs-assets.generated.js +2 -2
  15. package/dist/runtime/quickjs-entrypoint.d.ts +8 -9
  16. package/dist/runtime/quickjs-entrypoint.d.ts.map +1 -1
  17. package/dist/runtime/quickjs-entrypoint.js +172 -41
  18. package/dist/runtime/quickjs-runtime.d.ts +36 -1
  19. package/dist/runtime/quickjs-runtime.d.ts.map +1 -1
  20. package/dist/runtime/quickjs-runtime.js +613 -185
  21. package/dist/runtime/quickjs-serde.d.ts +107 -0
  22. package/dist/runtime/quickjs-serde.d.ts.map +1 -0
  23. package/dist/runtime/quickjs-serde.js +2098 -0
  24. package/dist/runtime/replay-budget.d.ts +13 -14
  25. package/dist/runtime/replay-budget.d.ts.map +1 -1
  26. package/dist/runtime/replay-budget.js +20 -73
  27. package/dist/runtime/resume-hook.d.ts.map +1 -1
  28. package/dist/runtime/resume-hook.js +57 -13
  29. package/dist/runtime/resume-latency.d.ts +143 -0
  30. package/dist/runtime/resume-latency.d.ts.map +1 -0
  31. package/dist/runtime/resume-latency.js +153 -0
  32. package/dist/runtime/runs.d.ts.map +1 -1
  33. package/dist/runtime/runs.js +3 -4
  34. package/dist/runtime/start.js +2 -7
  35. package/dist/runtime/step-executor.d.ts +27 -12
  36. package/dist/runtime/step-executor.d.ts.map +1 -1
  37. package/dist/runtime/step-executor.js +105 -15
  38. package/dist/runtime/suspension-handler.d.ts +46 -8
  39. package/dist/runtime/suspension-handler.d.ts.map +1 -1
  40. package/dist/runtime/suspension-handler.js +173 -15
  41. package/dist/runtime/world-compatibility.d.ts +16 -0
  42. package/dist/runtime/world-compatibility.d.ts.map +1 -1
  43. package/dist/runtime/world-compatibility.js +26 -5
  44. package/dist/runtime.d.ts.map +1 -1
  45. package/dist/runtime.js +911 -524
  46. package/dist/serialization/codec-devalue-vm.d.ts +7 -0
  47. package/dist/serialization/codec-devalue-vm.d.ts.map +1 -1
  48. package/dist/serialization/codec-devalue-vm.js +12 -1
  49. package/dist/serialization/codec-devalue.d.ts.map +1 -1
  50. package/dist/serialization/codec-devalue.js +15 -4
  51. package/dist/serialization/workflow-vm.d.ts +8 -3
  52. package/dist/serialization/workflow-vm.d.ts.map +1 -1
  53. package/dist/serialization/workflow-vm.js +9 -4
  54. package/dist/serialization.d.ts.map +1 -1
  55. package/dist/serialization.js +8 -3
  56. package/dist/step.js +2 -2
  57. package/dist/telemetry/semantic-conventions.d.ts +104 -0
  58. package/dist/telemetry/semantic-conventions.d.ts.map +1 -1
  59. package/dist/telemetry/semantic-conventions.js +84 -1
  60. package/dist/test-support/orchestrator-context.d.ts +25 -0
  61. package/dist/test-support/orchestrator-context.d.ts.map +1 -0
  62. package/dist/test-support/orchestrator-context.js +91 -0
  63. package/dist/version.d.ts +1 -1
  64. package/dist/version.js +2 -2
  65. package/dist/vm/index.d.ts.map +1 -1
  66. package/dist/vm/index.js +9 -6
  67. package/dist/workflow/abort-controller.d.ts.map +1 -1
  68. package/dist/workflow/abort-controller.js +4 -6
  69. package/dist/workflow/attribute-dispatcher.js +2 -2
  70. package/dist/workflow/hook.js +2 -2
  71. package/dist/workflow/sleep.js +2 -2
  72. package/dist/workflow.d.ts +10 -0
  73. package/dist/workflow.d.ts.map +1 -1
  74. package/dist/workflow.js +94 -20
  75. package/docs/how-it-works/event-sourcing.mdx +11 -3
  76. package/package.json +7 -7
  77. package/dist/correlation-id.d.ts +0 -109
  78. package/dist/correlation-id.d.ts.map +0 -1
  79. package/dist/correlation-id.js +0 -139
  80. package/dist/serialization/vm-bundle-entry.d.ts +0 -12
  81. package/dist/serialization/vm-bundle-entry.d.ts.map +0 -1
  82. package/dist/serialization/vm-bundle-entry.js +0 -58
@@ -6,6 +6,15 @@ import { type Event } from '@workflow/world';
6
6
  * in host). Any subscribe() arriving during this window cancels the check.
7
7
  */
8
8
  export declare const DEFERRED_CHECK_DELAY_MS = 100;
9
+ /**
10
+ * Floor for the deferred-check delay, so a too-low override can't manufacture
11
+ * spurious divergence (each false positive burns a divergence-recovery retry
12
+ * and can escalate to a terminal `CorruptedEventLogError`).
13
+ *
14
+ * Exported so tests needing the shortest legal delay can ask for it instead of
15
+ * hardcoding a number this floor would silently clamp up.
16
+ */
17
+ export declare const MIN_DEFERRED_CHECK_DELAY_MS = 10;
9
18
  export declare enum EventConsumerResult {
10
19
  /**
11
20
  * Callback consumed the event, but should not be removed from the callbacks list
@@ -36,6 +45,16 @@ export interface EventsConsumerOptions {
36
45
  * downstream subscribe() calls have a chance to cancel the check first.
37
46
  */
38
47
  onUnconsumedEvent: (event: Event) => void;
48
+ /**
49
+ * Callback invoked when an event is skipped because it repeats an event
50
+ * class the walk already consumed for the same entity. `firstEventType` is
51
+ * the type that recorded the class, which is the one the workflow observed.
52
+ * Diagnostics only: skipping is a normal outcome, not an error — though a
53
+ * `firstEventType` differing from `event.eventType` says the two writers
54
+ * decided the entity's outcome differently, which is worth more than an
55
+ * info log.
56
+ */
57
+ onDuplicateEvent?: (event: Event, firstEventType: Event['eventType']) => void;
39
58
  /**
40
59
  * Returns the current promise queue. The unconsumed event check is chained
41
60
  * onto this queue so it only fires after all pending async work (e.g.,
@@ -43,18 +62,81 @@ export interface EventsConsumerOptions {
43
62
  * deserialization delays the resolve() that triggers the next subscribe().
44
63
  */
45
64
  getPromiseQueue: () => Promise<void>;
65
+ /**
66
+ * Whether no data delivery is in flight (`isDeliveryIdle` in private.ts).
67
+ * The unconsumed-event check waits for this before it fires: a delivery in
68
+ * flight means the workflow VM is mid-reaction, and an event it has not
69
+ * claimed yet is an event it has not reached yet.
70
+ *
71
+ * Required rather than defaulting to always-idle: always-idle is exactly the
72
+ * pre-gate behaviour, so a defaulted option would let a construction site opt
73
+ * a whole replay path back out without saying so. Tests that drive a consumer
74
+ * with no orchestrator context pass `() => true` to keep the pre-existing
75
+ * timing, and say so at the call site.
76
+ */
77
+ isDeliveryIdle: () => boolean;
46
78
  }
47
79
  export declare class EventsConsumer {
48
80
  eventIndex: number;
49
81
  readonly events: Event[];
50
82
  readonly callbacks: EventConsumerCallback[];
83
+ /**
84
+ * Events the ordered walk stepped over because nobody claimed them and their
85
+ * type carries no ordering claim. Each keeps the index it held in the log:
86
+ * consumers read {@link eventIndex} at consumption time to order their
87
+ * delivery against the rest of the log, and a late delivery must still make
88
+ * the claim its position gave it.
89
+ *
90
+ * Held in log order, drained in log order, and drained before every offer so
91
+ * a consumer registered after the walk passed the event still receives it.
92
+ */
93
+ private readonly parked;
94
+ /**
95
+ * Correlation ids of the {@link ONE_SHOT_EVENT_TYPES} events consumed so
96
+ * far, so a second resolution for one of them is recognized as unclaimable
97
+ * rather than parked for a consumer that cannot exist.
98
+ */
99
+ private readonly resolved;
100
+ /**
101
+ * `<class>:<correlationId>` for every event class the walk has already
102
+ * consumed, mapped to the event type that recorded it. The type is kept so a
103
+ * repeat that decided the same class *differently* (a `step_failed` behind a
104
+ * `step_completed`) can be reported as more than a re-commit. See
105
+ * {@link EventsConsumer.firstEventTypeOfClass}.
106
+ */
107
+ private readonly seenEventClasses;
51
108
  private onConsumedEvent?;
52
109
  private onUnconsumedEvent;
110
+ private onDuplicateEvent?;
53
111
  private getPromiseQueue;
112
+ private isDeliveryIdle;
54
113
  private pendingUnconsumedCheck;
55
114
  private pendingUnconsumedTimeout;
56
115
  private unconsumedCheckVersion;
57
116
  constructor(events: Event[], options: EventsConsumerOptions);
117
+ /**
118
+ * The oldest event the walk stepped over that no consumer has claimed yet,
119
+ * if any. Parking is a bet that a consumer will be registered later, so at
120
+ * any point where no consumer ever will be again — the replay finishing is
121
+ * the definitive one — this answers which event the bet lost on.
122
+ */
123
+ get strandedEvent(): Event | undefined;
124
+ /**
125
+ * What the walk is still holding, or `undefined` when it holds nothing.
126
+ *
127
+ * Read at every point a replay stops, including the suspensions that are not
128
+ * settling points, so the held state reaches telemetry. A replay cannot tell
129
+ * a delivery awaiting a later consumer from one no consumer will ever
130
+ * register, so it reports rather than decides: the same `eventId` reported on
131
+ * suspension after suspension of one run is the shape that says the bet
132
+ * parking made is not going to pay off, and that shape is only visible across
133
+ * replays.
134
+ */
135
+ get parkedSummary(): {
136
+ count: number;
137
+ eventId: string;
138
+ eventType: Event['eventType'];
139
+ } | undefined;
58
140
  append(events: Event[]): void;
59
141
  /**
60
142
  * Registers a callback function to be called after an event has been consumed
@@ -70,13 +152,149 @@ export declare class EventsConsumer {
70
152
  private consume;
71
153
  /**
72
154
  * Offer `currentEvent` to each registered callback in turn. Returns true
73
- * when a callback consumed a real (non-null) event and the drain should
74
- * advance to the next event in the same synchronous pass; false otherwise
75
- * (nothing consumed it, or the consumed event was the end-of-events
76
- * sentinel).
155
+ * when a callback consumed it. Does not move {@link eventIndex}: the ordered
156
+ * walk and the parked drain advance differently, so each does its own.
157
+ */
158
+ private offer;
159
+ /**
160
+ * Offer everything parked, oldest first, until a pass claims nothing.
161
+ *
162
+ * Each offer runs with {@link eventIndex} moved back to the position the
163
+ * parked event held in the log, because that is the position its consumer
164
+ * will register a delivery barrier under. Restoring the walk pointer
165
+ * afterwards is what keeps the two pointers from interfering.
166
+ */
167
+ private drainParked;
168
+ /**
169
+ * Step the ordered walk over an event nobody claimed, holding on to it for a
170
+ * later consumer. Returns false when the event's type makes its position a
171
+ * decision record, which is the one case where nobody claiming it means the
172
+ * replay diverged.
173
+ */
174
+ private park;
175
+ /**
176
+ * The key `event`'s class is tracked under, or `undefined` for the event
177
+ * types that belong to no class (`hook_received`, `hook_conflict`,
178
+ * `attr_set`, `run_created`) and are therefore never skipped.
179
+ *
180
+ * Run events carry no correlation id. They are classes of the run itself, so
181
+ * they all key off the same bucket.
182
+ */
183
+ private eventClassKey;
184
+ /**
185
+ * Remembers that `event`'s class is now decided for its entity, if the type
186
+ * belongs to a class. First writer wins: the recorded type is the one the
187
+ * workflow observed, and a later repeat is measured against it.
188
+ */
189
+ private recordEventClass;
190
+ /**
191
+ * The type that already decided `event`'s class for the same entity, or
192
+ * `undefined` when nothing has: a second `step_created` for one step, a
193
+ * second terminal outcome, a second `step_started` after the step's result is
194
+ * already in the log.
195
+ *
196
+ * Such an event is committed but inert. Concurrent replays write into one
197
+ * log without a currency guard, so a replay working from a prefix that
198
+ * predates another replay's write can commit its own copy of work the log
199
+ * already records. That copy cannot change what the workflow observed: the
200
+ * outcome was decided by the first event of the class and every later replay
201
+ * reads that same event at the same log position, so ignoring the straggler
202
+ * is deterministic across replays.
203
+ *
204
+ * Classes are tracked separately, so passing one does not suppress another.
205
+ * A step whose result is in the log still reaches its `step_created` and
206
+ * `step_started` consumers if it has yet to see those classes.
207
+ *
208
+ * Consulted only after every registered callback has declined the event, so
209
+ * it can never take an event a consumer wanted. A retry's `step_started` is
210
+ * claimed by the step's live consumer and counts as an attempt exactly as
211
+ * before, and a second `step_created` reaching a step that has not finished
212
+ * is likewise consumed rather than skipped; only the copies nobody claims are
213
+ * skipped.
214
+ *
215
+ * Unlike the divergence report, this does *not* wait out the deferred window
216
+ * first, and it does not need to. The window buys time for a consumer that
217
+ * has yet to register, and no such consumer can want this event: the class
218
+ * was recorded by a consumption in this same replay, which means the entity's
219
+ * consumer was registered and took an event of this class, and correlation
220
+ * ids are minted from a monotonic ULID per body position, so nothing later in
221
+ * the body registers a second consumer under this id. Waiting would cost
222
+ * `getDeferredCheckDelayMs()` per straggler per replay for information that
223
+ * cannot arrive — 0.75% of production runs carry at least one straggler, and
224
+ * the p99 among those carries 155.
225
+ *
226
+ * The invariant to preserve if hook identity ever becomes caller-supplied
227
+ * (an idempotency key rather than a minted id): two `createHook` calls in one
228
+ * body could then share a correlation id, and the second consumer's
229
+ * `hook_created` would be a repeat of a class this replay already recorded.
230
+ * That would make skipping wrong for `hook_created`, and is the reason the
231
+ * class map lives next to the event types rather than being inferred.
232
+ */
233
+ private firstEventTypeOfClass;
234
+ /** Steps the walk over a repeat of an already-consumed class. */
235
+ private skipDuplicateEvent;
236
+ private handleEndOfLog;
237
+ private scheduleUnconsumedCheck;
238
+ /**
239
+ * Decide what a still-unconsumed event is, now that the promise queue has
240
+ * drained and the delivery gate says the VM is not mid-reaction.
241
+ *
242
+ * `mayPark` is false only for the end-of-log recheck of an event {@link park}
243
+ * already holds. Nothing in the first branch applies to one of those: it is
244
+ * not the event at the cursor, so the identity guard is not meaningful, and
245
+ * it is parked already.
246
+ *
247
+ * A duplicate class never arrives here. {@link consume} steps over one in the
248
+ * pass that offered it, before this check is ever scheduled, and a class
249
+ * recorded while the check was in flight can only have been recorded by a
250
+ * consumption inside {@link consume}, whose next pass re-offers this event
251
+ * and steps over it there — leaving the identity guard above to drop the
252
+ * in-flight check.
253
+ */
254
+ private resolveUnconsumedEvent;
255
+ /**
256
+ * Run `fn` once no data delivery is in flight, polling the way
257
+ * `scheduleWhenIdle` does: let the promise queue drain, re-check a timer
258
+ * tick later, repeat.
259
+ *
260
+ * Without this the check is a bet that every delivery the walk is running
261
+ * ahead of lands inside a fixed window. Consumption is synchronous while the
262
+ * resolution it triggers is not: a step result hydrates in the host, resolves
263
+ * from a detached continuation behind `awaitEarlierDeliveries`, and only then
264
+ * does VM code run far enough to subscribe the next consumer. Replaying a
265
+ * batch of N parallel step results leaves N-1 of them on that detached path
266
+ * with the queue already drained, so the walk sits on the ordered event the
267
+ * VM is about to draw and the window is the only thing standing between a
268
+ * healthy run and `ReplayDivergenceError`.
269
+ *
270
+ * Shortening the window shows that mechanism directly: on identical event logs
271
+ * the local race repro corrupts 34 of 42 runs at a 10ms window and 0 of 114 at
272
+ * the 100ms default. That measures how the bet loses, not that the default
273
+ * loses it, and no measurement of a delivery outrunning 100ms exists either
274
+ * way. So read this as retiring the bet rather than as repairing an observed
275
+ * failure of that number: the delay is a user-settable env override, which
276
+ * leaves the old behaviour one configuration away from losing on any backend.
277
+ *
278
+ * Termination is `hasParkedCommittedDelivery`'s: it counts only deliveries
279
+ * that resolve on their own, so nothing here can gate its own retirement. A
280
+ * genuinely orphaned event has no delivery to wait on and reaches `fn` on the
281
+ * first poll.
282
+ *
283
+ * What the gate gives up: for the ordered events that still reach
284
+ * `onUnconsumedEvent` rather than {@link park}, this stops being the thing
285
+ * that catches a diverged log while a delivery is in flight. The suspension
286
+ * and this check now wake from the same `isDeliveryIdle` edge, and
287
+ * `scheduleWhenIdle` fires on the first timer tick after idle while this waits
288
+ * a further `getDeferredCheckDelayMs()`. So a run with a pending `sleep()`
289
+ * suspends first, and `onWorkflowError` drops the divergence arriving second
290
+ * (its `'suspended'` branch demotes to `'replay'` and surfaces nothing),
291
+ * leaving a later `resume()` to decline into a cold replay. Pre-gate the
292
+ * suspension already won that race whenever the delivery landed inside the
293
+ * fixed window, so what changed is that the outcome stopped depending on
294
+ * timing. Nothing should treat this check as the mechanism that reports
295
+ * divergence on a log the run is still delivering into.
77
296
  */
78
- private consumeOne;
79
- private handleUnconsumed;
297
+ private whenDeliveryIdle;
80
298
  }
81
299
  export {};
82
300
  //# sourceMappingURL=events-consumer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"events-consumer.d.ts","sourceRoot":"","sources":["../src/events-consumer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAa,MAAM,iBAAiB,CAAC;AAGxD;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,MAAM,CAAC;AAmB3C,oBAAY,mBAAmB;IAC7B;;OAEG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