@adonis-agora/durable 0.58.2 → 0.59.0

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 (163) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/dist/assets/spa/assets/index-Co0ef3-q.css +1 -0
  3. package/dist/assets/spa/assets/index-DmgfShPp.js +16 -0
  4. package/dist/assets/spa/assets/index-DmgfShPp.js.map +1 -0
  5. package/dist/assets/spa/index.html +2 -2
  6. package/dist/commands/lifecycle_republish.d.ts +23 -0
  7. package/dist/commands/lifecycle_republish.d.ts.map +1 -0
  8. package/dist/commands/lifecycle_republish.js +64 -0
  9. package/dist/commands/lifecycle_republish.js.map +1 -0
  10. package/dist/commands/main.d.ts +4 -3
  11. package/dist/commands/main.d.ts.map +1 -1
  12. package/dist/commands/main.js +3 -1
  13. package/dist/commands/main.js.map +1 -1
  14. package/dist/providers/dashboard_provider.d.ts +2 -0
  15. package/dist/providers/dashboard_provider.d.ts.map +1 -1
  16. package/dist/providers/dashboard_provider.js +9 -1
  17. package/dist/providers/dashboard_provider.js.map +1 -1
  18. package/dist/src/commands/index.d.ts +1 -1
  19. package/dist/src/commands/index.d.ts.map +1 -1
  20. package/dist/src/commands/index.js +1 -1
  21. package/dist/src/commands/index.js.map +1 -1
  22. package/dist/src/commands/runs.d.ts +24 -1
  23. package/dist/src/commands/runs.d.ts.map +1 -1
  24. package/dist/src/commands/runs.js +50 -0
  25. package/dist/src/commands/runs.js.map +1 -1
  26. package/dist/src/commands/worker.d.ts.map +1 -1
  27. package/dist/src/commands/worker.js +3 -0
  28. package/dist/src/commands/worker.js.map +1 -1
  29. package/dist/src/dashboard/gateway-adapter.d.ts +5 -0
  30. package/dist/src/dashboard/gateway-adapter.d.ts.map +1 -1
  31. package/dist/src/dashboard/gateway-adapter.js +20 -0
  32. package/dist/src/dashboard/gateway-adapter.js.map +1 -1
  33. package/dist/src/dashboard/handlers.d.ts +29 -1
  34. package/dist/src/dashboard/handlers.d.ts.map +1 -1
  35. package/dist/src/dashboard/handlers.js +103 -0
  36. package/dist/src/dashboard/handlers.js.map +1 -1
  37. package/dist/src/dashboard/index.d.ts +2 -2
  38. package/dist/src/dashboard/index.d.ts.map +1 -1
  39. package/dist/src/dashboard/index.js +2 -2
  40. package/dist/src/dashboard/index.js.map +1 -1
  41. package/dist/src/dashboard/openapi.d.ts.map +1 -1
  42. package/dist/src/dashboard/openapi.js +39 -0
  43. package/dist/src/dashboard/openapi.js.map +1 -1
  44. package/dist/src/diagnostics-bridge.d.ts +5 -1
  45. package/dist/src/diagnostics-bridge.d.ts.map +1 -1
  46. package/dist/src/diagnostics-bridge.js +16 -2
  47. package/dist/src/diagnostics-bridge.js.map +1 -1
  48. package/dist/src/engine.d.ts +365 -5
  49. package/dist/src/engine.d.ts.map +1 -1
  50. package/dist/src/engine.js +1491 -76
  51. package/dist/src/engine.js.map +1 -1
  52. package/dist/src/event-accumulators.d.ts +28 -5
  53. package/dist/src/event-accumulators.d.ts.map +1 -1
  54. package/dist/src/event-accumulators.js +102 -21
  55. package/dist/src/event-accumulators.js.map +1 -1
  56. package/dist/src/events.d.ts +25 -0
  57. package/dist/src/events.d.ts.map +1 -1
  58. package/dist/src/events.js +24 -0
  59. package/dist/src/events.js.map +1 -1
  60. package/dist/src/handshake/announced.d.ts +6 -0
  61. package/dist/src/handshake/announced.d.ts.map +1 -1
  62. package/dist/src/handshake/announced.js +20 -0
  63. package/dist/src/handshake/announced.js.map +1 -1
  64. package/dist/src/handshake/descriptor.d.ts +6 -0
  65. package/dist/src/handshake/descriptor.d.ts.map +1 -1
  66. package/dist/src/handshake/descriptor.js +1 -0
  67. package/dist/src/handshake/descriptor.js.map +1 -1
  68. package/dist/src/index.d.ts +3 -2
  69. package/dist/src/index.d.ts.map +1 -1
  70. package/dist/src/index.js +3 -2
  71. package/dist/src/index.js.map +1 -1
  72. package/dist/src/interfaces.d.ts +45 -2
  73. package/dist/src/interfaces.d.ts.map +1 -1
  74. package/dist/src/interfaces.js.map +1 -1
  75. package/dist/src/lifecycle-events.d.ts +372 -0
  76. package/dist/src/lifecycle-events.d.ts.map +1 -0
  77. package/dist/src/lifecycle-events.js +383 -0
  78. package/dist/src/lifecycle-events.js.map +1 -0
  79. package/dist/src/metrics.d.ts +15 -0
  80. package/dist/src/metrics.d.ts.map +1 -1
  81. package/dist/src/metrics.js +36 -1
  82. package/dist/src/metrics.js.map +1 -1
  83. package/dist/src/otel/durable-metrics.d.ts +9 -0
  84. package/dist/src/otel/durable-metrics.d.ts.map +1 -1
  85. package/dist/src/otel/durable-metrics.js +17 -0
  86. package/dist/src/otel/durable-metrics.js.map +1 -1
  87. package/dist/src/otel/durable-otel.d.ts +7 -0
  88. package/dist/src/otel/durable-otel.d.ts.map +1 -1
  89. package/dist/src/otel/durable-otel.js +69 -3
  90. package/dist/src/otel/durable-otel.js.map +1 -1
  91. package/dist/src/run-detail-summary.d.ts +48 -1
  92. package/dist/src/run-detail-summary.d.ts.map +1 -1
  93. package/dist/src/run-detail-summary.js +30 -2
  94. package/dist/src/run-detail-summary.js.map +1 -1
  95. package/dist/src/run-gateway/interface.d.ts +16 -0
  96. package/dist/src/run-gateway/interface.d.ts.map +1 -1
  97. package/dist/src/run-gateway/proxy-run-gateway.d.ts +31 -1
  98. package/dist/src/run-gateway/proxy-run-gateway.d.ts.map +1 -1
  99. package/dist/src/run-gateway/proxy-run-gateway.js +59 -7
  100. package/dist/src/run-gateway/proxy-run-gateway.js.map +1 -1
  101. package/dist/src/run-gateway/run-request-responder.d.ts +4 -29
  102. package/dist/src/run-gateway/run-request-responder.d.ts.map +1 -1
  103. package/dist/src/run-gateway/run-request-responder.js +183 -6
  104. package/dist/src/run-gateway/run-request-responder.js.map +1 -1
  105. package/dist/src/run-gateway/store-run-gateway.d.ts +9 -0
  106. package/dist/src/run-gateway/store-run-gateway.d.ts.map +1 -1
  107. package/dist/src/run-gateway/store-run-gateway.js +8 -0
  108. package/dist/src/run-gateway/store-run-gateway.js.map +1 -1
  109. package/dist/src/run-waiting.d.ts +1 -0
  110. package/dist/src/run-waiting.d.ts.map +1 -1
  111. package/dist/src/run-waiting.js +6 -1
  112. package/dist/src/run-waiting.js.map +1 -1
  113. package/dist/src/stores/lucid.d.ts.map +1 -1
  114. package/dist/src/stores/lucid.js +4 -0
  115. package/dist/src/stores/lucid.js.map +1 -1
  116. package/dist/src/telescope/dashboard.d.ts.map +1 -1
  117. package/dist/src/telescope/dashboard.js +50 -0
  118. package/dist/src/telescope/dashboard.js.map +1 -1
  119. package/dist/src/telescope/data-providers.d.ts +19 -0
  120. package/dist/src/telescope/data-providers.d.ts.map +1 -1
  121. package/dist/src/telescope/data-providers.js +128 -2
  122. package/dist/src/telescope/data-providers.js.map +1 -1
  123. package/dist/src/telescope/extension.d.ts.map +1 -1
  124. package/dist/src/telescope/extension.js +4 -1
  125. package/dist/src/telescope/extension.js.map +1 -1
  126. package/dist/src/telescope/index.d.ts +3 -2
  127. package/dist/src/telescope/index.d.ts.map +1 -1
  128. package/dist/src/telescope/index.js +2 -1
  129. package/dist/src/telescope/index.js.map +1 -1
  130. package/dist/src/telescope/telescope-sdk.d.ts +16 -0
  131. package/dist/src/telescope/telescope-sdk.d.ts.map +1 -1
  132. package/dist/src/telescope/watcher.d.ts +66 -0
  133. package/dist/src/telescope/watcher.d.ts.map +1 -0
  134. package/dist/src/telescope/watcher.js +185 -0
  135. package/dist/src/telescope/watcher.js.map +1 -0
  136. package/dist/src/testing/in-memory-state-store.d.ts.map +1 -1
  137. package/dist/src/testing/in-memory-state-store.js +8 -0
  138. package/dist/src/testing/in-memory-state-store.js.map +1 -1
  139. package/dist/src/testing-kit/harness.d.ts +1 -1
  140. package/dist/src/testing-kit/harness.d.ts.map +1 -1
  141. package/dist/src/testing-kit/harness.js +3 -1
  142. package/dist/src/testing-kit/harness.js.map +1 -1
  143. package/dist/src/testing-kit/state-store-conformance.d.ts.map +1 -1
  144. package/dist/src/testing-kit/state-store-conformance.js +59 -0
  145. package/dist/src/testing-kit/state-store-conformance.js.map +1 -1
  146. package/dist/src/workflow-ctx.d.ts.map +1 -1
  147. package/dist/src/workflow-ctx.js +62 -0
  148. package/dist/src/workflow-ctx.js.map +1 -1
  149. package/dist/src/workflow-discovery.d.ts.map +1 -1
  150. package/dist/src/workflow-discovery.js +1 -0
  151. package/dist/src/workflow-discovery.js.map +1 -1
  152. package/dist/src/workflow-events.d.ts +101 -0
  153. package/dist/src/workflow-events.d.ts.map +1 -1
  154. package/dist/src/workflow-events.js +79 -1
  155. package/dist/src/workflow-events.js.map +1 -1
  156. package/dist/src/workflow-ref.d.ts +17 -2
  157. package/dist/src/workflow-ref.d.ts.map +1 -1
  158. package/dist/src/workflow-ref.js.map +1 -1
  159. package/package.json +4 -4
  160. package/skills/durable-cluster/SKILL.md +4 -2
  161. package/dist/assets/spa/assets/index-6nmSTfT7.css +0 -1
  162. package/dist/assets/spa/assets/index-DjdTutsN.js +0 -16
  163. package/dist/assets/spa/assets/index-DjdTutsN.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"openapi.js","sourceRoot":"","sources":["../../../src/dashboard/openapi.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,MAAM,SAAS,GAAG;IAChB,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,CAAC;CACxF,CAAC;AAEX,MAAM,UAAU,GAAG;IACjB,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,+EAA+E;IAC5F,UAAU,EAAE;QACV,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACtB,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC5B,eAAe,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACnC,MAAM,EAAE,SAAS;QACjB,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,E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,EAAE,KAAK,EAAE,YAAY,CAAC,sBAAsB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,EAAE;iBAC/E;aACF;YACD,WAAW,EAAE;gBACX,GAAG,EAAE;oBACH,OAAO,EAAE,gCAAgC;oBACzC,SAAS,EAAE,EAAE,KAAK,EAAE,YAAY,CAAC,sBAAsB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,EAAE;iBAC/E;aACF;YACD,SAAS,EAAE;gBACT,GAAG,EAAE;oBACH,OAAO,EAAE,oDAAoD;oBAC7D,SAAS,EAAE,EAAE,KAAK,EAAE,YAAY,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,EAAE;iBAC7E;aACF;YACD,eAAe,EAAE;gBACf,GAAG,EAAE;oBACH,OAAO,EAAE,eAAe;oBACxB,SAAS,EAAE,EAAE,KAAK,EAAE,YAAY,CAAC,uBAAuB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,EAAE;iBAChF;aACF;SACF;KACF,CAAC;AACJ,CAAC"}
@@ -30,7 +30,11 @@ export interface DurableDiagnosticsOptions {
30
30
  * types are forwarded — filtering is the subscriber's job. An event of a child run
31
31
  * the engine started (`ctx.all`, `ctx.child`, `ctx.startChild` without a caller-chosen id) also
32
32
  * carries `parentRunId`: each child is its own run, so that field is how a subscriber (a Telescope
33
- * search, say) finds every child of one parent, a whole `ctx.all` fan included.
33
+ * search, say) finds every child of one parent, a whole `ctx.all` fan included. An event of a run a
34
+ * lifecycle event started (an `@OnWorkflowCompleted` / `@OnWorkflowFailed` subscriber) carries
35
+ * `lifecycleSourceRunId` and `lifecycleKind`, the settled run that started it and how that run
36
+ * ended, so its entries link back to the source run; its `run.started` also carries the source's
37
+ * `sourceTraceparent` when the engine knows it.
34
38
  *
35
39
  * @returns an unsubscribe function that detaches the bridge from the engine.
36
40
  */
@@ -1 +1 @@
1
- {"version":3,"file":"diagnostics-bridge.d.ts","sourceRoot":"","sources":["../../src/diagnostics-bridge.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAGnD,mFAAmF;AACnF,MAAM,WAAW,kBAAkB;IACjC,SAAS,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,GAAG,MAAM,IAAI,CAAC;CAC/D;AAMD,oDAAoD;AACpD,MAAM,WAAW,yBAAyB;IACxC;;;;;;OAMG;IACH,aAAa,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACrC;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,kBAAkB,EAC1B,OAAO,GAAE,yBAA8B,GACtC,MAAM,IAAI,CASZ"}
1
+ {"version":3,"file":"diagnostics-bridge.d.ts","sourceRoot":"","sources":["../../src/diagnostics-bridge.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAInD,mFAAmF;AACnF,MAAM,WAAW,kBAAkB;IACjC,SAAS,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,GAAG,MAAM,IAAI,CAAC;CAC/D;AAMD,oDAAoD;AACpD,MAAM,WAAW,yBAAyB;IACxC;;;;;;OAMG;IACH,aAAa,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACrC;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,kBAAkB,EAC1B,OAAO,GAAE,yBAA8B,GACtC,MAAM,IAAI,CAsBZ"}
@@ -1,4 +1,5 @@
1
1
  import { parentRunIdOf } from './fan-join.js';
2
+ import { lifecycleSourceOf } from './lifecycle-events.js';
2
3
  import { isRemoteEvent } from './remote-event.js';
3
4
  /** The `@adonis-agora/diagnostics` emit capability, published on this slot at that package's module load. */
4
5
  const EMIT_SLOT = Symbol.for('@agora/diagnostics:emit');
@@ -18,7 +19,11 @@ const EMIT_SLOT = Symbol.for('@agora/diagnostics:emit');
18
19
  * types are forwarded — filtering is the subscriber's job. An event of a child run
19
20
  * the engine started (`ctx.all`, `ctx.child`, `ctx.startChild` without a caller-chosen id) also
20
21
  * carries `parentRunId`: each child is its own run, so that field is how a subscriber (a Telescope
21
- * search, say) finds every child of one parent, a whole `ctx.all` fan included.
22
+ * search, say) finds every child of one parent, a whole `ctx.all` fan included. An event of a run a
23
+ * lifecycle event started (an `@OnWorkflowCompleted` / `@OnWorkflowFailed` subscriber) carries
24
+ * `lifecycleSourceRunId` and `lifecycleKind`, the settled run that started it and how that run
25
+ * ended, so its entries link back to the source run; its `run.started` also carries the source's
26
+ * `sourceTraceparent` when the engine knows it.
22
27
  *
23
28
  * @returns an unsubscribe function that detaches the bridge from the engine.
24
29
  */
@@ -31,7 +36,16 @@ export function attachDurableDiagnostics(engine, options = {}) {
31
36
  if (typeof emit !== 'function')
32
37
  return;
33
38
  const parentRunId = parentRunIdOf(event.runId);
34
- emit('durable', event.type, parentRunId ? { ...event, parentRunId } : event);
39
+ const source = event.workflow
40
+ ? lifecycleSourceOf({ id: event.runId, workflow: event.workflow })
41
+ : undefined;
42
+ emit('durable', event.type, parentRunId || source
43
+ ? {
44
+ ...event,
45
+ ...(parentRunId ? { parentRunId } : {}),
46
+ ...(source ? { lifecycleSourceRunId: source.runId, lifecycleKind: source.kind } : {}),
47
+ }
48
+ : event);
35
49
  });
36
50
  }
37
51
  //# sourceMappingURL=diagnostics-bridge.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"diagnostics-bridge.js","sourceRoot":"","sources":["../../src/diagnostics-bridge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAOlD,6GAA6G;AAC7G,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAAC,yBAAyB,CAAC,CAAC;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AAa,CAAC,KAAK,CAAC;YAAE,OAAO;QACnD,MAAM,IAAI,GAAI,UAAsC,CAAC,SAAS,CAAuB,CAAC;QACtF,IAAI,OAAO,IAAI,KAAK,UAAU;YAAE,OAAO;QACvC,MAAM,WAAW,GAAG,aAAa,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAC/C,MAAM,MAAM,GAAG,KAAK,CAAC,QAAQ;YAC3B,CAAC,CAAC,iBAAiB,CAAC,EAAE,EAAE,EAAE,KAAK,CAAC,KAAK,EAAE,QAAQ,EAAE,KAAK,CAAC,QAAQ,EAAE,CAAC;YAClE,CAAC,CAAC,SAAS,CAAC;QACd,IAAI,CACF,SAAS,EACT,KAAK,CAAC,IAAI,EACV,WAAW,IAAI,MAAM;YACnB,CAAC,CAAC;gBACE,GAAG,KAAK;gBACR,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;gBACvC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,oBAAoB,EAAE,MAAM,CAAC,KAAK,EAAE,aAAa,EAAE,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;aACtF;YACH,CAAC,CAAC,KAAK,CACV,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"}
@@ -2,9 +2,11 @@ import { type AdmissionBackend } from './admission.js';
2
2
  import { type ConcurrencyConfig, type ConcurrencyQuota } from './concurrency.js';
3
3
  import { type EntityConfig } from './entities.js';
4
4
  import { type EventBatchConfig } from './event-accumulators.js';
5
+ import { type OnEventEntry } from './events.js';
5
6
  import { type AnnouncedWorkflow } from './handshake/announced.js';
6
7
  import { type WorkflowDirectory } from './handshake/directory.js';
7
8
  import type { ControlPlane, EngineListener, GroupHealth, NamedTransport, RunDispatch, RunDispatcher, RunFacetQuery, RunFacetRow, RunQuery, RunResult, RunScope, RunStatus, RunValueAxis, RunValueFacetOptions, RunValueFacetRow, ScopedRetentionPolicy, SearchAttributes, SearchAttributesSchema, SignalWaiter, StateStore, StepCheckpoint, StepError, StepInterceptor, Transport, UpdateResult, UpdateValidator, WorkflowCtx, WorkflowExecutor, WorkflowRun } from './interfaces.js';
9
+ import { type LifecycleKind, type RepublishLifecycleResult, type RepublishLifecycleTarget, type WorkflowLifecycleLinks } from './lifecycle-events.js';
8
10
  import { type OnErrorRoute } from './on-error.js';
9
11
  import { ORIGIN_RESOLVED } from './origin.js';
10
12
  import { type StepHandler } from './protocol.js';
@@ -481,7 +483,7 @@ export declare class WorkflowEngine {
481
483
  private readonly workflows;
482
484
  /** The newest registered version per workflow name — used to `start` new runs. */
483
485
  private readonly latest;
484
- /** Event name → workflow names started when that event is published (see `onEvent`). */
486
+ /** Event name → subscribing workflow name → that workflow's subscriptions to it. See `onEvent`. */
485
487
  private readonly eventTriggers;
486
488
  /** Durable-entity subsystem (registers the `__entity` runner; see `registerEntity`). */
487
489
  private readonly entities;
@@ -539,6 +541,12 @@ export declare class WorkflowEngine {
539
541
  * own release as a takeover: a late `false` renew would otherwise fence whoever applies the decision.
540
542
  */
541
543
  private readonly executionLeases;
544
+ /** Runs a caller just locked to execute now, so their turn has nothing to prove and no await to add. */
545
+ private readonly lockedForTurn;
546
+ /** Runs this instance holds for a moment and will release, not to execute (see {@link handOffDue}). */
547
+ private readonly claimsInFlight;
548
+ /** How many such claims each run has had, so a proof can tell one came and went (see {@link proveOwnLease}). */
549
+ private readonly claimsMade;
542
550
  /** Stable decision handler subscribed on every remote executor's transport (see registerRemote). */
543
551
  private readonly decisionHandler;
544
552
  /** Earliest clock time an awaited turn's deadline is worth reading again (`runId` → clock ms), the
@@ -751,7 +759,7 @@ export declare class WorkflowEngine {
751
759
  inputSchema?: StandardSchemaV1 | undefined;
752
760
  /** Typed/validated `searchAttributes` shape — see `RegisteredWorkflow.searchAttributesSchema`. */
753
761
  searchAttributesSchema?: SearchAttributesSchema | undefined;
754
- onEvent?: string[] | undefined;
762
+ onEvent?: OnEventEntry[] | undefined;
755
763
  eventBatch?: EventBatchConfig | undefined;
756
764
  requires?: string[] | undefined;
757
765
  /**
@@ -915,9 +923,336 @@ export declare class WorkflowEngine {
915
923
  * that itself goes dead is not routed again — no `dlq:dlq:…` chain.
916
924
  */
917
925
  private routeDeadLetter;
918
- /** Emit a locally-produced lifecycle event: deliver to subscribers AND broadcast it on the
919
- * control plane so other instances (e.g. a dashboard pod) can live-tail this run. */
926
+ /**
927
+ * Emit a locally-produced lifecycle event: deliver to subscribers AND broadcast it on the control
928
+ * plane so other instances (e.g. a dashboard pod) can live-tail this run. A `run.completed` or
929
+ * `run.failed` also wakes the `ctx.waitForRun` waiters on the run and publishes its lifecycle
930
+ * event (see {@link publishLifecycle}); `lifecycle: false` marks a `run.completed` that is not a
931
+ * real completion (a continue-as-new handoff), which publishes no lifecycle event.
932
+ */
920
933
  private emit;
934
+ /**
935
+ * Start every workflow subscribed to `name` that takes `payload` (see {@link acceptingSubscription}),
936
+ * each under `runIdOf(workflow)` and with its subscription's `input` applied; only the ones in
937
+ * `only` when given. Returns the subscribers reached, with the run each started (none when the
938
+ * payload went into its debounce/batch accumulator) and whether that run is new, and the ones that
939
+ * could not be started, with why.
940
+ *
941
+ * `remote` names subscribers known only from the fleet's announcements (see
942
+ * {@link announcedRemoteSubscribers}): each is started by name with the payload as its input, with
943
+ * no `where` or `input` mapping, unless it is also registered here.
944
+ */
945
+ private startSubscribers;
946
+ /** The workflows registered on this instance that subscribe to `event`. */
947
+ private localSubscribers;
948
+ /**
949
+ * Whether this engine's own subscribers are owed the lifecycle events of `namespace`'s runs: always
950
+ * for an engine with no namespace (its sweep reads every namespace's runs), else only its own
951
+ * namespace's. `undefined` asks without a namespace and is always true.
952
+ */
953
+ private servesNamespace;
954
+ /** The workflows registered here that subscribe to `event` and serve `namespace`'s runs. */
955
+ private localSubscribersFor;
956
+ /**
957
+ * The subscribers of `event` this engine starts by name although it has no `onEvent` for them:
958
+ * announced only by non-Node workers (a Python `@worker.workflow(..., on_workflow_completed=...)`),
959
+ * and reachable from here, either registered (`registerRemote`) or served by convention on a live
960
+ * worker group of the same name. A subscriber some Node engine announces is left to that engine,
961
+ * which applies its own `where` and `input`; one this engine cannot reach stays owed, for an
962
+ * instance that can. Read from the snapshot {@link announcedSubscribers} keeps. With `namespace`,
963
+ * only the subscriptions announced for that namespace's runs (see {@link announcedFor}).
964
+ */
965
+ private announcedRemoteSubscribers;
966
+ /**
967
+ * The subscribers of `event` this engine can deliver to for a run of `namespace`: the ones
968
+ * registered here that serve it, and the announced ones it starts by name (see
969
+ * {@link announcedRemoteSubscribers}).
970
+ */
971
+ private deliverableSubscribers;
972
+ /**
973
+ * Every workflow a run of `workflow` settling as `kind` owes its lifecycle event to: the ones
974
+ * registered here plus the ones the fleet announces (from a snapshot of the lifecycle subscription
975
+ * registry and the worker descriptors at most 5s old), sorted.
976
+ *
977
+ * With `namespace` (the settled run's), only the subscribers that serve that namespace's runs: the
978
+ * ones registered here when this engine has no namespace or has that one, the registry rows of
979
+ * engines in that namespace or with none, and the worker descriptors serving it. What the
980
+ * terminal status write marks the run owed to.
981
+ */
982
+ lifecycleSubscribers(workflow: string, kind: LifecycleKind, namespace?: string | undefined): string[];
983
+ /**
984
+ * Who starts whom through lifecycle events, for `workflow`: the workflows that start when it
985
+ * settles, and the workflows whose settling starts it. Built from this engine's registry and the
986
+ * subscriptions live workers announce (read again when the snapshot is older than 5s); a failed
987
+ * fleet read leaves the local registry alone. What the dashboard's workflow page shows.
988
+ *
989
+ * With `namespace`, only the subscriptions of that namespace: the ones announced by registry runs
990
+ * and worker descriptors serving it, and this engine's own when it is that namespace's engine (an
991
+ * engine with no namespace is `default`'s). What a tenant is shown.
992
+ */
993
+ workflowLifecycle(workflow: string, opts?: {
994
+ namespace?: string | undefined;
995
+ }): Promise<WorkflowLifecycleLinks>;
996
+ /**
997
+ * `patch` (a terminal status write of `run`) plus the {@link LIFECYCLE_PENDING_TAG} marker and one
998
+ * {@link LIFECYCLE_OWED_TAG_PREFIX} tag per subscriber of that ending, and the run's span as a
999
+ * {@link LIFECYCLE_TRACE_TAG_PREFIX} tag when a run trace provider knows it. Written in the same
1000
+ * update as the status, so a run can never be settled without a record of whom its lifecycle event
1001
+ * is owed to.
1002
+ *
1003
+ * While this instance has no successful read of the fleet's announced subscriptions (none yet, or
1004
+ * the last one failed), it cannot know who else subscribes, so the marker is the pending tag alone:
1005
+ * the run's owed set is unresolved, and the publish that next reads the fleet resolves it (see
1006
+ * {@link publishSettled}). Never waits on that read.
1007
+ */
1008
+ private withLifecycleMarker;
1009
+ /** Answers the traceparent of a run's span in this process; see {@link setRunTraceparent}. */
1010
+ private runTraceparent;
1011
+ /**
1012
+ * Install the function that answers the W3C `traceparent` of a run's span in this process, or
1013
+ * `undefined` to remove it. `attachDurableOtel` installs one. With it, a run some workflow
1014
+ * subscribes to records its traceparent (a {@link LIFECYCLE_TRACE_TAG_PREFIX} tag) with its first
1015
+ * suspend (see {@link withRunTrace}), or else with its terminal write, and the `run.started` of a
1016
+ * run a lifecycle event started carries its source run's as `sourceTraceparent`, so the
1017
+ * subscriber's trace links to the source's whichever process ran either.
1018
+ */
1019
+ setRunTraceparent(provider: ((runId: string) => string | undefined) | undefined): void;
1020
+ /**
1021
+ * `patch` (a suspend write of `run`) plus the run's {@link LIFECYCLE_TRACE_TAG_PREFIX} tag, when a
1022
+ * run trace provider is installed (see {@link setRunTraceparent}), some workflow subscribes to the
1023
+ * run's ending, the provider answers for the run and the run does not carry the tag yet. The first
1024
+ * turn's suspend records the run's root span this way, so a run that settles in a process that
1025
+ * never saw its first turn still links its subscribers' traces; a workflow nobody subscribes to
1026
+ * gets no tag and no extra read or write. The tags are read again before they are written, so a
1027
+ * tag the turn added is kept.
1028
+ */
1029
+ private withRunTrace;
1030
+ /**
1031
+ * `{ sourceTraceparent }` for the `run.started` of `run`, when a lifecycle event started it and a
1032
+ * run trace provider is installed: the source run's recorded traceparent, else this process's.
1033
+ */
1034
+ private sourceTraceOf;
1035
+ /** How many registry rows one page of a read of the lifecycle subscription registry lists. */
1036
+ private static readonly LIFECYCLE_REGISTRY_PAGE_SIZE;
1037
+ /** How long a read of the subscriptions the fleet announces is reused. */
1038
+ private static readonly ANNOUNCED_SUBSCRIPTIONS_TTL_MS;
1039
+ /** The last read of the fleet's announced subscriptions; see {@link announcedSubscribers}. */
1040
+ private announcedSubscriptionsSnapshot;
1041
+ private announcedSubscriptionsRead;
1042
+ /**
1043
+ * The workflows the fleet announces as subscribers of `event`: the live rows of the lifecycle
1044
+ * subscription registry (see {@link LIFECYCLE_REGISTRY_WORKFLOW}) and the live worker descriptors'
1045
+ * `registrations[].subscribes`, from a snapshot refreshed in the background once it is older than
1046
+ * {@link ANNOUNCED_SUBSCRIPTIONS_TTL_MS}. Synchronous, so a terminal status write never waits on
1047
+ * the fleet; before the first read completes it answers with nothing.
1048
+ */
1049
+ private announcedSubscribers;
1050
+ /**
1051
+ * The subscribers of `event` in the current snapshot that serve `namespace`'s runs: announced for
1052
+ * that namespace, or by an engine with no namespace (see {@link LifecycleRegistryEntry}). Every
1053
+ * announced subscriber when `namespace` is undefined. `node` keeps only the ones Node engines
1054
+ * announce (registry rows and Node worker descriptors), which start their own subscribers.
1055
+ */
1056
+ private announcedFor;
1057
+ /**
1058
+ * Read the fleet's announced subscriptions into the snapshot: the registry rows whose heartbeat
1059
+ * is at most {@link LIFECYCLE_REGISTRY_TTL_MS} old (a range of the store's `created_at` index, read
1060
+ * page by page until a short page, so a large fleet is never cut off), and
1061
+ * the worker descriptors on a transport that can read them fleet-wide. Never throws: a failed read
1062
+ * of either leaves an empty snapshot marked not `ok`, which counts as the local registry only and
1063
+ * never orphans a subscriber. Concurrent callers share one read.
1064
+ */
1065
+ private refreshAnnouncedSubscriptions;
1066
+ /** Read the fleet's announced subscriptions again when the snapshot is older than the TTL. */
1067
+ private freshAnnouncedSubscriptions;
1068
+ /** When this engine last wrote its registry row; see {@link heartbeatLifecycleRegistry}. */
1069
+ private lifecycleRegistryBeatAt;
1070
+ /** When this engine last deleted stale registry rows; undefined before its first pass. */
1071
+ private lifecycleRegistryCleanedAt;
1072
+ /** How often an engine with a registry row looks for stale rows to delete. */
1073
+ private static readonly LIFECYCLE_REGISTRY_CLEANUP_MS;
1074
+ /**
1075
+ * This engine's lifecycle registry entry: each workflow registered here that subscribes to an
1076
+ * event, with the events it subscribes to. Undefined when none does.
1077
+ */
1078
+ private lifecycleRegistryEntry;
1079
+ /**
1080
+ * Write this engine's row of the lifecycle subscription registry (see
1081
+ * {@link LIFECYCLE_REGISTRY_WORKFLOW}), at most once per {@link LIFECYCLE_REGISTRY_HEARTBEAT_MS}:
1082
+ * an update of the existing row, or a create when it is missing (first beat, or deleted as stale
1083
+ * after a long pause). Once a minute it also deletes rows whose heartbeat stopped
1084
+ * {@link LIFECYCLE_REGISTRY_STALE_MS} ago: the ones that went stale in the last
1085
+ * {@link LIFECYCLE_REGISTRY_STALE_MS}, a bounded range of the `created_at` index, and on its first
1086
+ * pass every stale row, for the ones left while no engine ran. The row is created tagged
1087
+ * {@link LIFECYCLE_REGISTRY_TAG}, which retention keeps. A no-op for an engine without
1088
+ * subscriptions. Its store calls are marked as heartbeats for observability tools. Never throws.
1089
+ */
1090
+ heartbeatLifecycleRegistry(): Promise<void>;
1091
+ /**
1092
+ * The runs started by `runId` settling (see {@link publishLifecycle}), read from the run's own
1093
+ * tags, so it needs no subscriber registry. Empty for a run that has not settled or started
1094
+ * nobody. Pass the run itself when it is already loaded, to skip reading it again.
1095
+ */
1096
+ triggeredRuns(source: string | WorkflowRun): Promise<string[]>;
1097
+ /** The live path of {@link publishSettled}: right after this instance settled the run. */
1098
+ private publishLifecycle;
1099
+ /**
1100
+ * Take the run lease for this instance's turn, as `tryLockRun` at `nowMs`; when the lease is held
1101
+ * by a lifecycle publish (see {@link withLifecycleLease}), which only ever holds a settled run for
1102
+ * the length of its publish (an explicit retry can land in it), wait for that publish to let go,
1103
+ * at most `leaseMs`.
1104
+ */
1105
+ private lockRunPastLifecyclePublish;
1106
+ /** The waits between attempts to take a settled run's lifecycle lease (see {@link withLifecycleLease}). */
1107
+ private static readonly LIFECYCLE_LEASE_RETRY_MS;
1108
+ /**
1109
+ * Run `fn` holding the run lease of the settled run `runId` under an owner unique to this call, so
1110
+ * every read-start-write of a run's lifecycle tags (live publish, sweeps, heal, republish, on any
1111
+ * instance or twice in this one) runs one at a time. A refused lease is asked for again after each
1112
+ * of {@link LIFECYCLE_LEASE_RETRY_MS}; still refused, resolves `{ acquired: false }` without
1113
+ * running `fn`. The lease is released when `fn` settles, and expires after `leaseMs` if this
1114
+ * process dies first.
1115
+ */
1116
+ private withLifecycleLease;
1117
+ /**
1118
+ * Publish a settled run's lifecycle event (`run.completed:<workflow>` / `run.failed:<workflow>`)
1119
+ * to the subscribers it owes it to that this instance can deliver to (registered here, or announced
1120
+ * and started by name; see {@link deliverableSubscribers}), and settle their part of the marker:
1121
+ * drop each one's {@link LIFECYCLE_OWED_TAG_PREFIX} tag, record each started one as a
1122
+ * `durable:triggered:<workflow>` tag (a coalescing one as `durable:coalesced:<workflow>`), and drop
1123
+ * {@link LIFECYCLE_PENDING_TAG} once no owed tag is left.
1124
+ *
1125
+ * A run marked pending with no owed tag has an unresolved owed set (see
1126
+ * {@link LIFECYCLE_PENDING_TAG}). With a successful read of the fleet's subscriptions it is resolved
1127
+ * here: every subscriber of the ending (see {@link lifecycleSubscribers}) the run's tags do not
1128
+ * record as started or failed becomes owed, and the ones nobody here delivers to keep an owed tag.
1129
+ * Without one, the subscribers registered here are started and the run stays unresolved.
1130
+ *
1131
+ * `republish` publishes to every subscriber of the ending (or only `subscriber`, which must be one),
1132
+ * owed or not: the ones this instance can deliver to are started, and the others are marked owed
1133
+ * again (with the pending tag) for the sweep of an instance that can. `heal` names subscribers of
1134
+ * the ending the run was never marked for (see {@link healLifecycleEvents}): they are owed now, and
1135
+ * the ones this instance delivers to are started.
1136
+ * `nowMs` (the sweep's clock) also drops the owed tag of a subscriber that is neither registered
1137
+ * here nor announced by a live worker once the run settled {@link LIFECYCLE_ORPHAN_MS} ago,
1138
+ * reporting it as `run.trigger_failed`.
1139
+ *
1140
+ * Runs under the run's lifecycle lease (see {@link withLifecycleLease}) and reads the run again
1141
+ * under it, so concurrent publishers never overwrite each other's tags; `busy` when the lease
1142
+ * stayed taken. Idempotent, since every subscriber run id is deterministic and a debounce/batch
1143
+ * accumulator drops an event it already holds. A subscriber whose `where` throws, whose input is
1144
+ * rejected or whose start fails, and an orphan the sweep drops, gets a
1145
+ * {@link LIFECYCLE_TRIGGER_FAILED_TAG_PREFIX} tag in the same tag write, and is not retried until a
1146
+ * republish; the write that records a subscriber reached removes its trigger-failed tag.
1147
+ * A debounce/batch subscriber routed into its accumulator gets a
1148
+ * {@link LIFECYCLE_COALESCED_TAG_PREFIX} tag in the same write instead of a triggered one; a
1149
+ * republish routes it again only when the run also carries its trigger-failed tag.
1150
+ * `run.triggered` and `run.trigger_failed` are emitted only for the subscribers whose triggered,
1151
+ * coalesced or trigger-failed tag this write added. A failure to write the marker leaves it, and
1152
+ * the sweep publishes the run again.
1153
+ */
1154
+ private publishSettled;
1155
+ /** {@link publishSettled} once it holds the run's lifecycle lease and has read `run` under it. */
1156
+ private publishSettledLeased;
1157
+ /**
1158
+ * The subscribers `run` owes its event to that nothing can deliver it to: not in `here` (what
1159
+ * this instance delivers to), announced by no live worker, and owed since
1160
+ * {@link LIFECYCLE_ORPHAN_MS} or longer. Empty while the fleet's announcements cannot be read,
1161
+ * since then nobody is known to be gone.
1162
+ */
1163
+ private orphanedSubscribers;
1164
+ /** How long a settled run's marker is left to the live publish before the sweep takes it over. */
1165
+ private static readonly LIFECYCLE_SWEEP_GRACE_MS;
1166
+ /** How many marked runs one lifecycle sweep reads at most, looking for ones it can act on. */
1167
+ private static readonly LIFECYCLE_SWEEP_SCAN_CAP;
1168
+ /**
1169
+ * Publish the lifecycle event of settled runs still marked {@link LIFECYCLE_PENDING_TAG} to the
1170
+ * subscribers this instance can deliver to that they still owe it to: a run whose settling process
1171
+ * died, or whose marker write failed, before publishing, or whose subscriber is registered only on
1172
+ * other instances. Also writes this instance's row of the lifecycle subscription registry (see
1173
+ * {@link heartbeatLifecycleRegistry}), refreshes the snapshot of the subscriptions the fleet
1174
+ * announces (registry rows and worker descriptors), drops
1175
+ * owed subscribers nothing can deliver to (see {@link orphanedSubscribers}) and wakes the
1176
+ * `ctx.waitForRun` waiters whose run already settled (see {@link sweepRunWaits}).
1177
+ *
1178
+ * Called by the worker poll loop. Reads the marked runs page by page and skips the ones it cannot
1179
+ * act on (every owed subscriber is delivered elsewhere and none is orphaned yet), so runs owed only
1180
+ * to other instances never hide the ones it can publish. Stops once it has published `limit` runs
1181
+ * or read {@link LIFECYCLE_SWEEP_SCAN_CAP} marked runs. A run settled in the last
1182
+ * {@link LIFECYCLE_SWEEP_GRACE_MS} is left to the live publish; a run another publisher holds
1183
+ * (see {@link withLifecycleLease}) is left to the next tick. Then heals the runs settled in the
1184
+ * last {@link LIFECYCLE_HEAL_WINDOW_MS} (see {@link healLifecycleEvents}). Returns how many marked
1185
+ * runs it published plus how many waiters it woke; healed runs are not counted.
1186
+ */
1187
+ sweepLifecycleEvents(nowMs?: number, limit?: number): Promise<number>;
1188
+ /** How many settled runs of one source workflow a heal pass reads at most. */
1189
+ private static readonly LIFECYCLE_HEAL_SCAN_CAP;
1190
+ /**
1191
+ * The (run, subscriber) pairs this engine already healed, with when each entry lapses (epoch ms):
1192
+ * a subscriber whose `where` declines the event leaves no tag, so without it every sweep would
1193
+ * offer it the event again for the whole heal window.
1194
+ */
1195
+ private readonly lifecycleHealed;
1196
+ /**
1197
+ * Deliver lifecycle events the terminal write never marked: for every source workflow some
1198
+ * subscriber in the current snapshot of the fleet's subscriptions (or registered here) listens to,
1199
+ * read its runs settled in the last {@link LIFECYCLE_HEAL_WINDOW_MS} (at most
1200
+ * {@link LIFECYCLE_HEAL_SCAN_CAP}, one listing per workflow) and publish each one to the
1201
+ * subscribers of its ending its tags record as neither owed, started, coalesced nor failed (see
1202
+ * {@link publishSettled}'s `heal`). That covers a subscriber announced just after the run
1203
+ * settled, while the settling instance's snapshot was stale. Each pair is healed at most once per
1204
+ * engine. A run whose owed set is unresolved is left to {@link sweepLifecycleEvents}. Needs a
1205
+ * successful read of the fleet's subscriptions; returns how many runs it published.
1206
+ */
1207
+ private healLifecycleEvents;
1208
+ /**
1209
+ * Up to `limit` settled runs marked {@link LIFECYCLE_PENDING_TAG}, past the sweep grace, that this
1210
+ * instance can act on: a run owing its event to a subscriber it delivers to, a run marked without
1211
+ * owed tags, or a run owing it to a subscriber nothing delivers to past
1212
+ * {@link LIFECYCLE_ORPHAN_MS}. Reads at most {@link LIFECYCLE_SWEEP_SCAN_CAP} marked runs, in
1213
+ * pages, all read before any is acted on, since publishing a run takes it out of the listing.
1214
+ */
1215
+ private lifecycleActionableRuns;
1216
+ /**
1217
+ * Publish settled runs' lifecycle events again, whether or not they are still marked: one run
1218
+ * (`{ runId }`), or a workflow's settled runs (`{ workflow, kind, since, until, limit }`, read in
1219
+ * pages of the store's listing, filtered by when the run settled). `subscriber` restricts it to
1220
+ * one subscribing workflow, which must subscribe to the run's ending (registered here or announced
1221
+ * by a live worker for the run's namespace): otherwise the run is reported in `failed` with
1222
+ * `subscriber <name> does not subscribe to <event>` and nothing is marked. The subscribers
1223
+ * registered on this instance are started; any other (announced by a live worker) is marked owed
1224
+ * again, so the sweep of an instance that registers it starts it, and is not counted in
1225
+ * `started`. The same path as the live publish, so a subscriber whose run already exists is not
1226
+ * started again; a subscriber that debounces or batches is not routed again once the run carries
1227
+ * its coalesced tag, unless it also carries its trigger-failed tag, since an accumulator that
1228
+ * already fired would start the target again. A run another
1229
+ * publisher holds past the lease retries is reported in `failed` with subscriber `*`. A
1230
+ * subscriber registered after the runs settled (more than {@link LIFECYCLE_HEAL_WINDOW_MS} after,
1231
+ * past what the sweep heals) is backfilled this way. A workflow target's `namespace` narrows it to
1232
+ * that namespace; on an engine bound to another namespace it publishes nothing.
1233
+ */
1234
+ republishLifecycle(target: RepublishLifecycleTarget): Promise<RepublishLifecycleResult>;
1235
+ /**
1236
+ * Wake the `ctx.waitForRun` waiters on `runId`, which just settled, and on the earlier runs of its
1237
+ * continue-as-new chain, with the event of the run that ends the chain (none yet when `runId`
1238
+ * handed off). One waiter listing per settle. Best effort: a waiter missed here (this process dies
1239
+ * first) is woken by {@link sweepRunWaits}. Internal `__` runs have no waiters, so they are
1240
+ * skipped without a read.
1241
+ */
1242
+ private notifyRunWaiters;
1243
+ /** How many waited-on runs one {@link sweepRunWaits} reads at most. */
1244
+ private static readonly RUN_WAIT_SWEEP_SCAN_CAP;
1245
+ /** Where the next {@link sweepRunWaits} starts in the list of waited-on runs. */
1246
+ private runWaitSweepCursor;
1247
+ /**
1248
+ * Wake the `ctx.waitForRun` waiters (up to `limit`) whose run, or the run ending its
1249
+ * continue-as-new chain, has already settled: the recovery for a process that died between
1250
+ * settling a run and waking its waiters. Waiters on runs still in flight are skipped, reading at
1251
+ * most {@link RUN_WAIT_SWEEP_SCAN_CAP} waited-on runs per call; the next call starts where this one
1252
+ * stopped, so waiters on long-running runs never hide the ones that can be woken. Returns how many
1253
+ * it woke.
1254
+ */
1255
+ sweepRunWaits(limit?: number): Promise<number>;
921
1256
  /** Events waiting for the control-plane publish in flight, in emit order (see {@link broadcastEvents}). */
922
1257
  private readonly eventsToBroadcast;
923
1258
  private broadcastingEvents;
@@ -993,6 +1328,21 @@ export declare class WorkflowEngine {
993
1328
  * instead of the whole history, and carries an `etag` that `options.ifNoneMatch` can match.
994
1329
  */
995
1330
  getRunDetail(runId: string, options?: RunDetailOptions): Promise<RunDetail | null>;
1331
+ /**
1332
+ * What a run detail reads beyond the run row and its checkpoints: the subscribers its lifecycle
1333
+ * event goes to (of its namespace) and where it stands for each, its workflow's lifecycle links,
1334
+ * and the `ctx.waitForRun` waits on either side of it with the other run's status. A few reads per
1335
+ * detail: the run's own waiters while it is suspended, the waiters on it (one prefix read), and
1336
+ * one batched read of every linked run.
1337
+ */
1338
+ private lifecycleDetail;
1339
+ /**
1340
+ * The subscribers registered here that coalesce `run`'s lifecycle event (debounce/batch) and
1341
+ * accept it, each with the accumulator run the event went to: the subscription's `where`, `input`
1342
+ * and `key` applied to the event as `startSubscribers` does. Undefined when the key cannot be
1343
+ * computed. A subscriber whose `where` declines the event is left out.
1344
+ */
1345
+ private coalescedSubscribers;
996
1346
  /** One page of a summarized fan's members (see `loadFanMembers`), versioned like {@link getRunDetail}. */
997
1347
  getFanMembers(runId: string, group: string, query: FanPageQuery): Promise<FanPage | null>;
998
1348
  private detailSource;
@@ -1346,6 +1696,14 @@ export declare class WorkflowEngine {
1346
1696
  * lease, held while the run's `wakeAt` moves {@link leaseMs} ahead) keeps every other instance's
1347
1697
  * poll from handing it off again meanwhile; a wake lost on the way comes due again then.
1348
1698
  */
1699
+ private markClaim;
1700
+ private unmarkClaim;
1701
+ /**
1702
+ * Whether this instance holds the run's lease for a turn, from the store and by owner. A renewal can land
1703
+ * on a claim marked after it was sent, and that claim is about to be released, so any claim begun while
1704
+ * the renewal was out, even one already over, leaves it unproved.
1705
+ */
1706
+ private proveOwnLease;
1349
1707
  private handOffDue;
1350
1708
  /**
1351
1709
  * Lease and execute one run by id — the worker side of dispatch. Acquires the recovery lease (so
@@ -1435,7 +1793,9 @@ export declare class WorkflowEngine {
1435
1793
  * match the payload satisfies (fan-out, vs `signal`'s point-to-point token).
1436
1794
  * 2. **Starts** a fresh run of every workflow registered with `onEvent: [name]`, passing the
1437
1795
  * payload as input. Idempotent by `evt:<id>:<workflow>` — pass `opts.id` to dedupe redeliveries
1438
- * of the same logical event (default: a fresh uuid, so each publish triggers once).
1796
+ * of the same logical event (default: a fresh uuid, so each publish triggers once). A workflow
1797
+ * a non-Node worker announces as subscribing to `name` (a Python `on_event=[...]`) is started
1798
+ * the same way, by name, when this engine can reach it (see {@link announcedRemoteSubscribers}).
1439
1799
  *
1440
1800
  * Reliable (buffered) delivery — mirrors `signalWithStart`'s reliability contract, so document it
1441
1801
  * exactly: a publish that resumes ≥1 live waiter, OR routes into an `eventBatch` accumulator /