@proofoftech/flowsafe 0.22.0 → 0.24.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 (120) hide show
  1. package/CHANGELOG.md +160 -0
  2. package/README.md +77 -12
  3. package/dist/agent-host/catalog.d.ts.map +1 -1
  4. package/dist/agent-host/catalog.js +5 -2
  5. package/dist/agent-host/catalog.js.map +1 -1
  6. package/dist/agent-host/thread-host.d.ts +16 -0
  7. package/dist/agent-host/thread-host.d.ts.map +1 -1
  8. package/dist/agent-host/thread-host.js +81 -27
  9. package/dist/agent-host/thread-host.js.map +1 -1
  10. package/dist/agent-runner/durable-agent-runner.d.ts +121 -80
  11. package/dist/agent-runner/durable-agent-runner.d.ts.map +1 -1
  12. package/dist/agent-runner/durable-agent-runner.js +747 -468
  13. package/dist/agent-runner/durable-agent-runner.js.map +1 -1
  14. package/dist/approval-ui/use-approval-dashboard.js +6 -6
  15. package/dist/approval-ui/use-approval-dashboard.js.map +1 -1
  16. package/dist/background-tasks/d1-storage.d.ts.map +1 -1
  17. package/dist/background-tasks/d1-storage.js +2 -3
  18. package/dist/background-tasks/d1-storage.js.map +1 -1
  19. package/dist/background-tasks/host.d.ts.map +1 -1
  20. package/dist/background-tasks/host.js +27 -38
  21. package/dist/background-tasks/host.js.map +1 -1
  22. package/dist/do-runner/cause-chain.d.ts +5 -0
  23. package/dist/do-runner/cause-chain.d.ts.map +1 -1
  24. package/dist/do-runner/cause-chain.js +12 -0
  25. package/dist/do-runner/cause-chain.js.map +1 -1
  26. package/dist/do-runner/cf-types.d.ts +3 -0
  27. package/dist/do-runner/cf-types.d.ts.map +1 -1
  28. package/dist/do-runner/cf-types.js.map +1 -1
  29. package/dist/do-runner/constants.d.ts +1 -1
  30. package/dist/do-runner/constants.d.ts.map +1 -1
  31. package/dist/do-runner/constants.js +1 -1
  32. package/dist/do-runner/constants.js.map +1 -1
  33. package/dist/do-runner/core-events-nonce.d.ts +2 -0
  34. package/dist/do-runner/core-events-nonce.d.ts.map +1 -0
  35. package/dist/do-runner/core-events-nonce.js +16 -0
  36. package/dist/do-runner/core-events-nonce.js.map +1 -0
  37. package/dist/do-runner/d1-storage.js +1 -9
  38. package/dist/do-runner/d1-storage.js.map +1 -1
  39. package/dist/do-runner/do-error-response.d.ts.map +1 -1
  40. package/dist/do-runner/do-error-response.js +2 -1
  41. package/dist/do-runner/do-error-response.js.map +1 -1
  42. package/dist/do-runner/durable-object.d.ts +17 -2
  43. package/dist/do-runner/durable-object.d.ts.map +1 -1
  44. package/dist/do-runner/durable-object.js +442 -55
  45. package/dist/do-runner/durable-object.js.map +1 -1
  46. package/dist/do-runner/fenced-workflow-capability.d.ts +24 -0
  47. package/dist/do-runner/fenced-workflow-capability.d.ts.map +1 -1
  48. package/dist/do-runner/fenced-workflows-d1.d.ts +5 -1
  49. package/dist/do-runner/fenced-workflows-d1.d.ts.map +1 -1
  50. package/dist/do-runner/fenced-workflows-d1.js +149 -48
  51. package/dist/do-runner/fenced-workflows-d1.js.map +1 -1
  52. package/dist/do-runner/index.d.ts +2 -2
  53. package/dist/do-runner/index.d.ts.map +1 -1
  54. package/dist/do-runner/index.js +2 -2
  55. package/dist/do-runner/index.js.map +1 -1
  56. package/dist/do-runner/init.d.ts +2 -3
  57. package/dist/do-runner/init.d.ts.map +1 -1
  58. package/dist/do-runner/init.js.map +1 -1
  59. package/dist/do-runner/memory-id.js +1 -1
  60. package/dist/do-runner/memory-id.js.map +1 -1
  61. package/dist/do-runner/pubsub.d.ts +6 -2
  62. package/dist/do-runner/pubsub.d.ts.map +1 -1
  63. package/dist/do-runner/pubsub.js +12 -22
  64. package/dist/do-runner/pubsub.js.map +1 -1
  65. package/dist/do-runner/run-lifecycle.d.ts +42 -2
  66. package/dist/do-runner/run-lifecycle.d.ts.map +1 -1
  67. package/dist/do-runner/run-lifecycle.js +57 -1
  68. package/dist/do-runner/run-lifecycle.js.map +1 -1
  69. package/dist/do-runner/run-terminal-state.d.ts +2 -0
  70. package/dist/do-runner/run-terminal-state.d.ts.map +1 -1
  71. package/dist/do-runner/run-terminal-state.js +4 -0
  72. package/dist/do-runner/run-terminal-state.js.map +1 -1
  73. package/dist/do-runner/runtime.d.ts +91 -58
  74. package/dist/do-runner/runtime.d.ts.map +1 -1
  75. package/dist/do-runner/runtime.js +351 -191
  76. package/dist/do-runner/runtime.js.map +1 -1
  77. package/dist/do-runner/suspension-deadline.d.ts +25 -17
  78. package/dist/do-runner/suspension-deadline.d.ts.map +1 -1
  79. package/dist/do-runner/suspension-deadline.js +44 -21
  80. package/dist/do-runner/suspension-deadline.js.map +1 -1
  81. package/dist/do-runner/workflow-snapshot-row.d.ts +7 -0
  82. package/dist/do-runner/workflow-snapshot-row.d.ts.map +1 -1
  83. package/dist/do-runner/workflow-snapshot-row.js +21 -0
  84. package/dist/do-runner/workflow-snapshot-row.js.map +1 -1
  85. package/dist/host-kit/approval-bridge.d.ts +11 -8
  86. package/dist/host-kit/approval-bridge.d.ts.map +1 -1
  87. package/dist/host-kit/approval-bridge.js +15 -9
  88. package/dist/host-kit/approval-bridge.js.map +1 -1
  89. package/dist/host-kit/do-response.d.ts.map +1 -1
  90. package/dist/host-kit/do-response.js +7 -1
  91. package/dist/host-kit/do-response.js.map +1 -1
  92. package/dist/host-kit/flowsafe-worker.d.ts +2 -1
  93. package/dist/host-kit/flowsafe-worker.d.ts.map +1 -1
  94. package/dist/host-kit/flowsafe-worker.js +4 -2
  95. package/dist/host-kit/flowsafe-worker.js.map +1 -1
  96. package/dist/host-kit/run-router.d.ts.map +1 -1
  97. package/dist/host-kit/run-router.js +3 -2
  98. package/dist/host-kit/run-router.js.map +1 -1
  99. package/dist/schedules/schedules-d1.d.ts +1 -0
  100. package/dist/schedules/schedules-d1.d.ts.map +1 -1
  101. package/dist/schedules/schedules-d1.js +35 -22
  102. package/dist/schedules/schedules-d1.js.map +1 -1
  103. package/dist/schedules/tick.d.ts +17 -2
  104. package/dist/schedules/tick.d.ts.map +1 -1
  105. package/dist/schedules/tick.js +63 -44
  106. package/dist/schedules/tick.js.map +1 -1
  107. package/dist/signals/client.d.ts +7 -4
  108. package/dist/signals/client.d.ts.map +1 -1
  109. package/dist/signals/client.js +9 -7
  110. package/dist/signals/client.js.map +1 -1
  111. package/dist/signals/d1-shared.js +1 -1
  112. package/dist/signals/d1-shared.js.map +1 -1
  113. package/dist/signals/index.d.ts +1 -1
  114. package/dist/signals/index.d.ts.map +1 -1
  115. package/dist/signals/index.js.map +1 -1
  116. package/dist/signals/thread-do-routes.d.ts +56 -10
  117. package/dist/signals/thread-do-routes.d.ts.map +1 -1
  118. package/dist/signals/thread-do-routes.js +434 -247
  119. package/dist/signals/thread-do-routes.js.map +1 -1
  120. package/package.json +18 -9
@@ -44,41 +44,41 @@ export interface AgentStartAuthority {
44
44
  export declare const DURABLE_AGENTIC_LOOP_WORKFLOW_ID = "durable-agentic-loop";
45
45
  /**
46
46
  * @internal Metadata key that prevents a route delivery from being terminally
47
- * persisted. Deliberately deep-imported by `signals/thread-do-routes.ts` and
48
- * kept off `./index.js`.
47
+ * persisted. Kept off `./index.js`.
49
48
  */
50
49
  export declare const FLOWSAFE_PERSISTENCE_FORBIDDEN = "flowsafe.persistence-forbidden";
51
50
  interface BreakwaterGuardedAgentHostProtocol {
52
51
  readonly version: 1;
53
52
  readonly supportsDurableStructuredOutput: false;
54
53
  }
55
- /** @internal Shared with the guarded agent catalog's compatibility check. */
54
+ /** @internal */
56
55
  export declare function breakwaterGuardedAgentHostProtocol(agent: unknown): BreakwaterGuardedAgentHostProtocol | undefined;
57
56
  /**
58
- * Why each blocked entry point is refused, keyed by method name. The SINGLE
59
- * source: every override throws `unavailableRunEntry(name,
60
- * BLOCKED_RUN_ENTRIES[name])`, and durable-agent-surface.test.ts derives both
61
- * its blocked-member partition and its per-method message assertions from these
62
- * keys — so a new blocked entry cannot ship with an unexercised refusal, and a
63
- * reason cannot drift between the throw and the test.
57
+ * @internal Why the runner refuses to wrap `agent`, or `undefined` when it
58
+ * accepts it.
59
+ */
60
+ export declare function unwrappableAgentReason(agent: Pick<Agent, 'durable' | 'getChannels' | 'getDeclaredSchedules'>): string | undefined;
61
+ /**
62
+ * Why each blocked entry point is refused, keyed by method name: the SINGLE
63
+ * source of those reasons.
64
64
  *
65
- * Four grounds. The module comment walks the same members by PROVENANCE
66
- * section (the durable surface, then the Agent surface) rather than by ground,
67
- * so its numbering is not this list's:
65
+ * The grounds:
68
66
  * 1. re-drives a persisted run below `executeWorkflow`, where there is no
69
67
  * RunnerRuntime — no run ownership, no per-leg grant, no snapshot
70
68
  * provenance;
71
- * 2. unscoped run discovery that bypasses the host topology's per-principal
72
- * run-ownership checks and returns ids the caller does not own;
69
+ * 2. unscoped run or thread identity discovery that bypasses the host
70
+ * topology's per-principal ownership checks and returns identities the
71
+ * caller does not own;
73
72
  * 3. snapshot deletion owned by deployment-scoped retention;
74
- * 4. a SECOND execution surface that runs the agent outside RunnerRuntime
75
- * entirely, or that mints a run id below the caller — the network loop's
76
- * own workflow, the legacy handler, the thread runtime's tool-approval
77
- * continuation, and the setter that installs a different agent as the
78
- * thread runtime's execution target.
73
+ * 4. a SECOND execution surface outside RunnerRuntime, whether the call runs
74
+ * it or installs something that later does, or that mints a run id below
75
+ * the caller;
76
+ * 5. installs a runtime service — a Mastra, memory or pub/sub — after
77
+ * construction;
78
+ * 6. cancels a run outside RunnerRuntime's terminal lifecycle.
79
79
  *
80
- * Deliberately NOT re-exported from `./index.js` (a named-exports-only barrel),
81
- * so this stays off the public `@proofoftech/flowsafe/agent-runner` subpath.
80
+ * NOT re-exported from `./index.js` (a named-exports-only barrel), so this
81
+ * stays off the public `@proofoftech/flowsafe/agent-runner` subpath.
82
82
  */
83
83
  export declare const BLOCKED_RUN_ENTRIES: {
84
84
  readonly recover: "re-driving a persisted run bypasses run ownership, per-leg grant minting and the fail-closed registry rehydration";
@@ -93,6 +93,7 @@ export declare const BLOCKED_RUN_ENTRIES: {
93
93
  readonly listActiveRuns: "core scopes the running-run listing by agentId plus the caller's own optional thread and resource ids, never by per-principal ownership, so it bypasses the host topology's run-ownership checks and returns run, thread and resource ids the caller does not own";
94
94
  readonly listSuspendedRuns: "core scopes the suspended-run listing by agentId plus the caller's own optional thread and resource ids, never by per-principal ownership, so it bypasses the host topology's run-ownership checks and returns run, thread and resource ids the caller does not own";
95
95
  readonly listActiveThreadRuns: "core scopes the active thread-run listing by nothing at all: it takes no arguments and returns the run, thread and resource ids of every thread on the pubsub instance with a run in flight, which core keys by pubsub instance rather than by agent, so it enumerates ids across every principal AND every agent that shares the instance";
96
+ readonly discoverThreadPeers: "it takes no caller-named thread or principal and returns the agent, resource, thread and source identities every peer on the pub/sub advertises";
96
97
  readonly deleteRunSnapshots: "durable-agent snapshot rows are retained until deployment-scoped retention purge removes them";
97
98
  readonly network: "the multi-agent network loop compiles its own workflow and drives it with createRun plus run.stream/run.resumeStream on the default engine, outside RunnerRuntime, so no leg is run-owned, grant-derived or snapshot-provenanced — and under autoResumeSuspendedTools it additionally recovers a suspended run id from thread memory and re-drives that run, and it mints an unowned run id when the caller omits one";
98
99
  readonly resumeNetwork: "the multi-agent network loop compiles its own workflow and drives it with createRun plus run.stream/run.resumeStream on the default engine, outside RunnerRuntime, so no leg is run-owned, grant-derived or snapshot-provenanced — and under autoResumeSuspendedTools it additionally recovers a suspended run id from thread memory and re-drives that run";
@@ -100,18 +101,20 @@ export declare const BLOCKED_RUN_ENTRIES: {
100
101
  readonly declineNetworkToolCall: "the multi-agent network loop compiles its own workflow and drives it with createRun plus run.stream/run.resumeStream on the default engine, outside RunnerRuntime, so no leg is run-owned, grant-derived or snapshot-provenanced — and under autoResumeSuspendedTools it additionally recovers a suspended run id from thread memory and re-drives that run";
101
102
  readonly generateLegacy: "the AI SDK v4 legacy handler is a second execution surface that converts and runs the agent's tools outside RunnerRuntime, mints its own run id when the caller omits one, and skips the authorization gate every supported entry calls (requireAgentExecutionFGA)";
102
103
  readonly streamLegacy: "the AI SDK v4 legacy handler is a second execution surface that converts and runs the agent's tools outside RunnerRuntime, mints its own run id when the caller omits one, and skips the authorization gate every supported entry calls (requireAgentExecutionFGA)";
103
- readonly sendToolApproval: "the messages-plus-approved branch does not resume at all: it hands the thread runtime a continuation whose run id falls back to randomUUID() when the caller names none, then starts a run under that id — path-safe, so the host-owned run-id guard cannot tell it from a caller-minted one — and its no-active-run branch reaches the equally unscoped suspended-run discovery";
104
- readonly __setThreadRuntimeAgent: "it installs the agent the thread-runtime paths resolve their target through — on @mastra/core 1.67.0 these are subscribeToThread, claimThreadOwnership, sendMessage, queueMessage, sendStateSignal, sendNotificationSignal and sendSignal, which read the field it writes — so one call moves every run those paths start, and subscribeToThread's replay target with them, onto an agent that carries none of this class's overrides: no caller-minted run id, no executeWorkflow, and no terminal refusal for a run the host start seam never registered";
104
+ readonly sendToolApproval: "the messages-plus-approved branch does not resume at all: it hands the thread runtime a continuation whose run id falls back to randomUUID() when the caller names none, then starts a run under that id — path-safe, so the host-owned run-id guard cannot tell it from a caller-minted one — and when neither an explicit run id nor an active thread run is available, it reaches the equally unscoped suspended-run discovery";
105
+ readonly __setThreadRuntimeAgent: "it installs the target subscribeToThread, claimThreadOwnership, sendMessage, queueMessage, sendStateSignal, sendNotificationSignal and sendSignal resolve through the thread-runtime agent field; discoverThreadPeers also resolves that target and listSuspendedRuns reads its durable loop workflow name — redirecting execution and subscription replay onto an agent that carries none of this class's overrides: no caller-minted run id, no executeWorkflow, and no terminal refusal for a run the host start seam never registered";
106
+ readonly setChannels: "it forwards the channels it is given to the wrapped agent, which becomes their dispatch target, so a plain AgentChannels delivers inbound messages to the wrapped agent's sendMessage, and channel approvals and declines to its approveToolCall and declineToolCall, outside RunnerRuntime; an AgentControllerChannels dispatches through its controller instead, and is refused as well because a controller over this class cannot install its runtime services or register this wrapper on its Mastra";
107
+ readonly __setDeclaredSchedules: "it forwards the schedules it is given to the wrapped agent, and the schedule worker of a Mastra that registers that agent and runs startWorkers() fires each of them through the wrapped agent's sendSignal or generate, outside RunnerRuntime";
108
+ readonly __setMastra: "it binds the runner and its wrapped agent to a Mastra the runtime did not build, so every later leg is prepared against that Mastra; registered through Mastra.addAgent once the runtime has built its own Mastra, it also repoints the runtime's loop workflow, and with it run state, to that Mastra's storage";
109
+ readonly __registerMastra: "it binds the runner and its wrapped agent to a Mastra the runtime did not build, so every later leg is prepared against that Mastra; registered through Mastra.addAgent once the runtime has built its own Mastra, it also repoints the runtime's loop workflow, and with it run state, to that Mastra's storage";
110
+ readonly __setMemory: "it installs memory or pub/sub after construction and forwards it to the wrapped agent; the wrapper's pub/sub is fixed at construction because thread state, signal delivery and the run's drain share it";
111
+ readonly __setPubSub: "it installs memory or pub/sub after construction and forwards it to the wrapped agent; the wrapper's pub/sub is fixed at construction because thread state, signal delivery and the run's drain share it";
112
+ readonly abortRunStream: "a direct abort bypasses the terminate route's ownership check and disputed-settlement refusal, stops running tools, and can reach another thread's run in the isolate through core's global run registry; cancel through the terminate route";
113
+ readonly abortThreadStream: "a direct abort bypasses the terminate route's ownership check and disputed-settlement refusal, stops running tools, and can reach another thread's run in the isolate through core's global run registry; cancel through the terminate route";
105
114
  };
106
115
  /**
107
116
  * Brand marking an agent as runtime-driven. The thread Durable Object requires
108
- * it before its message, signal, schedule, or notification-dispatch wake seam
109
- * may start a run. Queue and state persist rather than wake on idle. Non-owner
110
- * notifications are recorded for the trusted dispatcher and never send a
111
- * signal directly. An unbranded agent reports
112
- * `degraded: 'not-runtime-driven'` on state and owner-notification responses
113
- * that reach the sender, regardless of thread state. Skipped state and
114
- * `memory-unavailable` responses return earlier and carry no marker.
117
+ * it before a wake seam may start a run.
115
118
  *
116
119
  * Direct core sender calls that mint a run still reach the durable runner,
117
120
  * which fails them terminally without executing. Structural so a test double
@@ -145,17 +148,19 @@ export interface FlowsafeDurableAgentOptions<TAgentId extends string = string, T
145
148
  /** Resumable-stream cache — see createDurableAgent's `cache`. */
146
149
  cache?: DurableAgentConfig<TAgentId, TTools, TOutput>['cache'];
147
150
  /**
148
- * PubSub for the agent's own stream events (observe()/onChunk). DEFAULTS to
149
- * `runtime.pubsub` (the host Durable Object's single identity) when omitted, so the
150
- * run's events and the agent's observe()/emitError feed agree without the host
151
- * wiring it twice — a mismatched pubsub would leave observe() replaying an
152
- * empty feed. Pass an explicit instance only to override that default.
151
+ * Stream and agent-level pub/sub. Uses `pubsub ?? runtime.pubsub`, or the
152
+ * wrapper's stream bus when both are absent. Thread state, signal delivery,
153
+ * and the run's drain share this identity. Construction refuses a wrapped
154
+ * agent with a different pub/sub of its own. The wrapped agent's pub/sub
155
+ * follows the last wrapper constructed over it.
153
156
  */
154
157
  pubsub?: DurableAgentConfig<TAgentId, TTools, TOutput>['pubsub'];
155
158
  /**
156
- * Public Mastra thread runtime (`mastra.agentThreadStreamRuntime`). When
157
- * present, started and rehydrated outputs are registered on the same pubsub
158
- * identity so active-thread signals join the durable loop.
159
+ * Public Mastra thread runtime (`mastra.agentThreadStreamRuntime`). Core
160
+ * registers started runs itself. When present, a run resumed through
161
+ * `resumeViaRuntime()` registers on the agent's pub/sub so active-thread
162
+ * signals join it. Without it, resumed runs are absent from thread state and
163
+ * signals sent while they run are not delivered into them.
159
164
  */
160
165
  threadRuntime?: Mastra['agentThreadStreamRuntime'];
161
166
  /** Max steps for the agentic loop (bakes into the shared loop's isTaskComplete step). */
@@ -206,12 +211,11 @@ export declare class FlowsafeDurableAgent<TAgentId extends string = string, TToo
206
211
  /**
207
212
  * The idempotency key the thread topology already RESERVED for this run.
208
213
  *
209
- * It travels down here for one job: the execution fence's proof-only state
214
+ * It travels down here because the execution fence's proof-only state
210
215
  * admits exactly the start whose key matches its nominated proof key, and
211
216
  * `RunnerRuntime.start` is where that comparison happens. It buys no
212
217
  * exactly-once property at this layer — the reservation above already did —
213
- * so nothing here validates it beyond passing it on, and a run started
214
- * without one behaves exactly as before.
218
+ * so nothing here validates it beyond passing it on.
215
219
  *
216
220
  * Parked per-runId beside the attempt token rather than threaded through
217
221
  * core, because core owns the call between `stream()` and
@@ -226,18 +230,9 @@ export declare class FlowsafeDurableAgent<TAgentId extends string = string, TToo
226
230
  */
227
231
  generate(messages: Parameters<DurableAgent<TAgentId, TTools, TOutput>['generate']>[0], options?: Parameters<DurableAgent<TAgentId, TTools, TOutput>['generate']>[1]): Promise<Awaited<ReturnType<DurableAgent<TAgentId, TTools, TOutput>['generate']>>>;
228
232
  /**
229
- * The same host-owned run-ID guard as {@link FlowsafeDurableAgent.stream}.
230
- * `prepare()`
231
- * is the third inherited minting entry point: it forwards `options?.runId` into
232
- * core's `prepareForDurableExecution` (create-durable-agent-DFHwqN2K.js:7882),
233
- * which mints an unowned `crypto.randomUUID()` when it is absent
234
- * (create-durable-agent-DFHwqN2K.js:1211) AND REGISTERS a run under that id
235
- * (create-durable-agent-DFHwqN2K.js:7890) — so a later
236
- * `resume(runId)`/`executeWorkflow` sees a bare UUID `PATH_SAFE_ID_PATTERN`
237
- * already accepts, past every downstream guard. Enforce the caller-minted ID
238
- * here, while "absent" is still visible. A prepared id remains live until core
239
- * cleans up the run, so later `stream()`, `generate()`, `prepare()`, and
240
- * `streamUntilPersisted()` calls carrying that id are refused.
233
+ * Enforce the caller-owned id before DurableAgent.prepare forwards it to
234
+ * prepareForDurableExecution, which mints an absent id and registers the run.
235
+ * That UUID satisfies downstream path checks and stays live until cleanup.
241
236
  */
242
237
  prepare(messages: Parameters<DurableAgent<TAgentId, TTools, TOutput>['prepare']>[0], options?: Parameters<DurableAgent<TAgentId, TTools, TOutput>['prepare']>[1]): Promise<Awaited<ReturnType<DurableAgent<TAgentId, TTools, TOutput>['prepare']>>>;
243
238
  /**
@@ -253,9 +248,9 @@ export declare class FlowsafeDurableAgent<TAgentId extends string = string, TToo
253
248
  * Refuse core's bulk recovery. `recoverActiveRuns()` is
254
249
  * {@link FlowsafeDurableAgent.listActiveRuns} plus a `recover()` per row, and
255
250
  * it is what `Mastra.recoverAllDurableAgents()` calls on every registered
256
- * durable agent — so this is the one blocked entry point a host can reach
257
- * without a FlowSafe call site, by opting into `recovery: { durableAgents:
258
- * 'auto' }`. That loop isolates each agent in its own try/catch, so this
251
+ * durable agent — so a host reaches this blocked entry point without a
252
+ * FlowSafe call site by opting into `recovery: { durableAgents: 'auto' }`.
253
+ * That loop isolates each agent in its own try/catch, so this
259
254
  * refusal is logged there rather than failing boot. Refuse with an explicit
260
255
  * `runId` too: a single target is still a re-drive off RunnerRuntime.
261
256
  */
@@ -279,10 +274,7 @@ export declare class FlowsafeDurableAgent<TAgentId extends string = string, TToo
279
274
  * — and narrows by `agentId` plus the optional `threadId`/`resourceId`
280
275
  * filters the CALLER supplies, the same scoping `listActiveRuns()` applies.
281
276
  * Same ground too: an unfiltered call returns run, thread and resource ids
282
- * across every principal that shares the agent. It is the one direct
283
- * data-returning discovery member the base `Agent` surface adds; the other
284
- * additions funnel through `this.resumeStream()` and so fail closed on that
285
- * override.
277
+ * across every principal that shares the agent.
286
278
  */
287
279
  listSuspendedRuns(_options?: Parameters<Agent<TAgentId, TTools, TOutput>['listSuspendedRuns']>[0]): Promise<never>;
288
280
  /**
@@ -296,11 +288,17 @@ export declare class FlowsafeDurableAgent<TAgentId extends string = string, TToo
296
288
  * makes the caller name the (resourceId, threadId) pair it confirms.
297
289
  *
298
290
  * Signature caveat, and the reason this one is not `async`: the base declares
299
- * it SYNCHRONOUS (`listActiveThreadRuns(): ActiveThreadRun[]`), so the
300
- * `async … Promise<never>` shape every other refusal here carries would not
301
- * be assignable to it. A re-check for a peer bump.
291
+ * it SYNCHRONOUS (`listActiveThreadRuns(): ActiveThreadRun[]`), so an
292
+ * `async … Promise<never>` refusal would not be assignable to it. A re-check
293
+ * for a peer bump.
302
294
  */
303
295
  listActiveThreadRuns(): never;
296
+ /** Refuse unscoped thread identity discovery under the second ground. */
297
+ discoverThreadPeers(_options?: unknown): Promise<never>;
298
+ /** Refuse direct run cancellation under the sixth ground. */
299
+ abortRunStream(_runId: string): never;
300
+ /** Refuse direct thread cancellation under the sixth ground. */
301
+ abortThreadStream(_options: unknown): never;
304
302
  /**
305
303
  * Refuse the multi-agent network start. `network()` does not touch the
306
304
  * durable-agentic-loop at all: it compiles a SEPARATE workflow and drives it
@@ -339,7 +337,7 @@ export declare class FlowsafeDurableAgent<TAgentId extends string = string, TToo
339
337
  * omits one, and skips `requireAgentExecutionFGA` — the authorization gate
340
338
  * every SUPPORTED entry point calls, so this would run the agent without it.
341
339
  * (The network family skips that gate too; neither is unique in doing so.) It
342
- * persists no workflow run state, which is why it is refused on those two
340
+ * persists no workflow run state, which is why it is refused on those
343
341
  * grounds rather than as a re-drive.
344
342
  *
345
343
  * Signature caveat: overloaded and generic in OUTPUT on the base, so this
@@ -380,6 +378,50 @@ export declare class FlowsafeDurableAgent<TAgentId extends string = string, TToo
380
378
  * depending on method bivariance.
381
379
  */
382
380
  __setThreadRuntimeAgent(_agent: unknown): never;
381
+ /**
382
+ * Refuse binding channels. The base forwards them to the wrapped agent,
383
+ * which becomes their dispatch target outside RunnerRuntime: the fourth
384
+ * ground reached by installation.
385
+ */
386
+ setChannels(_agentChannels: unknown): never;
387
+ /**
388
+ * Refuse declaring schedules. The base forwards them to the wrapped agent,
389
+ * which a Mastra schedule worker fires outside RunnerRuntime: the fourth
390
+ * ground reached by installation.
391
+ *
392
+ * Signature caveat: the parameter is `unknown` rather than core's
393
+ * `DeclaredAgentSchedule[]`, which it satisfies without depending on method
394
+ * bivariance.
395
+ */
396
+ __setDeclaredSchedules(_schedules: unknown): never;
397
+ /**
398
+ * Refuse memory installation after construction under the fifth ground.
399
+ *
400
+ * Signature caveat: `unknown` accepts core's memory parameter without
401
+ * depending on method bivariance.
402
+ */
403
+ __setMemory(_memory: unknown): never;
404
+ /**
405
+ * Refuse pub/sub installation after construction under the fifth ground.
406
+ *
407
+ * Signature caveat: `unknown` accepts core's pub/sub parameter without
408
+ * depending on method bivariance.
409
+ */
410
+ __setPubSub(_pubsub: unknown): never;
411
+ /**
412
+ * Refuse Mastra registration. `Mastra.addAgent` calls this first, so the
413
+ * refusal throws before the registry write and before the loop workflow is
414
+ * added to that Mastra.
415
+ *
416
+ * Signature caveat: the parameter is `unknown` rather than core's `Mastra`,
417
+ * which it satisfies without depending on method bivariance.
418
+ */
419
+ __setMastra(_mastra: unknown): never;
420
+ /**
421
+ * The member {@link FlowsafeDurableAgent.__setMastra} forwards to, which
422
+ * `Agent.listAgents` calls directly on a static sub-agent.
423
+ */
424
+ __registerMastra(_mastra: unknown): never;
383
425
  /**
384
426
  * Refuse core's terminal snapshot cleanup. Its only call sites are the base
385
427
  * `executeWorkflow` (overridden here), the blocked `resume()` and the blocked
@@ -387,22 +429,17 @@ export declare class FlowsafeDurableAgent<TAgentId extends string = string, TToo
387
429
  * snapshot rows — which deployment-scoped retention purge owns — from being
388
430
  * dropped out from under that owner by a future internal caller.
389
431
  *
390
- * Note what this override buys beyond that call-site audit: the member
391
- * inventory in durable-agent-surface.test.ts sees a NEW member, never a new
392
- * core call site on an EXISTING one. So the override is the standing guard —
393
- * it converts core's best-effort cleanup into a throw the moment a future
394
- * release calls it on a path FlowSafe drives. None does at 1.67.0.
432
+ * The override keeps core's best-effort deletion from taking ownership of
433
+ * these rows if an internal execution path reaches the cleanup method.
395
434
  */
396
435
  protected deleteRunSnapshots(_runId: string): Promise<never>;
397
436
  /**
398
- * Refuse core's durable resume. Until 1.53.0 this merely read the in-process
399
- * run registry, which is why it was left inherited-but-unwired; now a registry
400
- * MISS makes it load the persisted `durable-agentic-loop` snapshot, rehydrate
401
- * through `prepare()` with the full application processor chain, and re-drive
402
- * the run with `createRun + run.resume` — below `executeWorkflow`, so the leg
403
- * carries no minted grant and no snapshot provenance.
404
- * {@link FlowsafeDurableAgent.resumeViaRuntime} is the only resume path, and
405
- * it is reached from the approval decision, never from a client.
437
+ * Refuse core's durable resume. From 1.53.0 a registry MISS makes it load the
438
+ * persisted `durable-agentic-loop` snapshot, rehydrate through `prepare()`
439
+ * with the full application processor chain, and re-drive the run with
440
+ * `createRun + run.resume` — below `executeWorkflow`, so the leg carries no
441
+ * minted grant and no snapshot provenance. The runner's resume path is
442
+ * {@link FlowsafeDurableAgent.resumeViaRuntime}.
406
443
  */
407
444
  resume(_runId: Parameters<DurableAgent<TAgentId, TTools, TOutput>['resume']>[0], _resumeData: Parameters<DurableAgent<TAgentId, TTools, TOutput>['resume']>[1], _options?: Parameters<DurableAgent<TAgentId, TTools, TOutput>['resume']>[2]): Promise<never>;
408
445
  /**
@@ -426,11 +463,11 @@ export declare class FlowsafeDurableAgent<TAgentId extends string = string, TToo
426
463
  /** The decline half of {@link FlowsafeDurableAgent.approveToolCall}. */
427
464
  declineToolCall(_options: Parameters<DurableAgent<TAgentId, TTools, TOutput>['declineToolCall']>[0]): Promise<never>;
428
465
  /**
429
- * The 1.53.0 generate-shaped tool-approval pair. They funnel into
430
- * `resumeGenerate()` -> `resume()`, so they are the same entry point wearing a
466
+ * The 1.53.0 generate-shaped tool-approval entries. They funnel into
467
+ * `resumeGenerate()` -> `resume()`, so they are the same entry point with a
431
468
  * different return type.
432
469
  *
433
- * Signature caveat for both halves: the base method is GENERIC in its OUTPUT
470
+ * Signature caveat for each: the base method is GENERIC in its OUTPUT
434
471
  * type, which `Parameters<>` cannot carry, so the parameter type below is
435
472
  * hand-written rather than derived. Re-check it against the base on every
436
473
  * peer bump — nothing here fails if core changes the shape.
@@ -451,6 +488,10 @@ export declare class FlowsafeDurableAgent<TAgentId extends string = string, TToo
451
488
  * Rehydrate a suspended durable-agent run after isolate eviction, restore its
452
489
  * active thread registration, then resume through RunnerRuntime so approval
453
490
  * grant derivation and snapshot provenance remain authoritative.
491
+ * A resumed leg observes from the current run stream position. Its thread
492
+ * registration completes on the run's terminal outcome or a resume failure
493
+ * after rehydration, when the wrapper publishes a terminal error. Another
494
+ * suspension keeps blocking the thread until the next resume, as a first leg does.
454
495
  * Hosts expose this only from their trusted approval-decision topology.
455
496
  */
456
497
  resumeViaRuntime(options: {
@@ -1 +1 @@
1
- {"version":3,"file":"durable-agent-runner.d.ts","sourceRoot":"","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