@proofoftech/flowsafe 0.18.0 → 0.19.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 (56) hide show
  1. package/CHANGELOG.md +89 -0
  2. package/README.md +64 -5
  3. package/deployment-identity-protocol.d.mts +17 -0
  4. package/deployment-identity-protocol.mjs +32 -0
  5. package/dist/agent-host/catalog.js +1 -1
  6. package/dist/agent-host/catalog.js.map +1 -1
  7. package/dist/agent-runner/durable-agent-runner.d.ts +251 -20
  8. package/dist/agent-runner/durable-agent-runner.d.ts.map +1 -1
  9. package/dist/agent-runner/durable-agent-runner.js +657 -57
  10. package/dist/agent-runner/durable-agent-runner.js.map +1 -1
  11. package/dist/deployment-identity-protocol.d.ts +1 -1
  12. package/dist/deployment-identity-protocol.d.ts.map +1 -1
  13. package/dist/deployment-identity-protocol.js +1 -1
  14. package/dist/deployment-identity-protocol.js.map +1 -1
  15. package/dist/do-runner/deployment-identity.d.ts +2 -11
  16. package/dist/do-runner/deployment-identity.d.ts.map +1 -1
  17. package/dist/do-runner/deployment-identity.js +2 -29
  18. package/dist/do-runner/deployment-identity.js.map +1 -1
  19. package/dist/do-runner/suspension-deadline.d.ts +3 -2
  20. package/dist/do-runner/suspension-deadline.d.ts.map +1 -1
  21. package/dist/do-runner/suspension-deadline.js +3 -2
  22. package/dist/do-runner/suspension-deadline.js.map +1 -1
  23. package/dist/signal-providers/delivery.d.ts +32 -0
  24. package/dist/signal-providers/delivery.d.ts.map +1 -1
  25. package/dist/signal-providers/delivery.js +45 -0
  26. package/dist/signal-providers/delivery.js.map +1 -1
  27. package/dist/signal-providers/host-do.d.ts +11 -0
  28. package/dist/signal-providers/host-do.d.ts.map +1 -1
  29. package/dist/signal-providers/host-do.js +48 -14
  30. package/dist/signal-providers/host-do.js.map +1 -1
  31. package/dist/signal-providers/provider.d.ts +8 -0
  32. package/dist/signal-providers/provider.d.ts.map +1 -1
  33. package/dist/signal-providers/provider.js.map +1 -1
  34. package/dist/signal-providers/webhook-route.d.ts +6 -0
  35. package/dist/signal-providers/webhook-route.d.ts.map +1 -1
  36. package/dist/signal-providers/webhook-route.js +109 -21
  37. package/dist/signal-providers/webhook-route.js.map +1 -1
  38. package/dist/signals/client.d.ts +19 -5
  39. package/dist/signals/client.d.ts.map +1 -1
  40. package/dist/signals/client.js +25 -17
  41. package/dist/signals/client.js.map +1 -1
  42. package/dist/signals/index.d.ts +1 -1
  43. package/dist/signals/index.d.ts.map +1 -1
  44. package/dist/signals/index.js.map +1 -1
  45. package/dist/signals/notification-dispatch.d.ts +2 -0
  46. package/dist/signals/notification-dispatch.d.ts.map +1 -1
  47. package/dist/signals/notification-dispatch.js +3 -0
  48. package/dist/signals/notification-dispatch.js.map +1 -1
  49. package/dist/signals/router.d.ts.map +1 -1
  50. package/dist/signals/router.js +3 -2
  51. package/dist/signals/router.js.map +1 -1
  52. package/dist/signals/thread-do-routes.d.ts +48 -10
  53. package/dist/signals/thread-do-routes.d.ts.map +1 -1
  54. package/dist/signals/thread-do-routes.js +624 -118
  55. package/dist/signals/thread-do-routes.js.map +1 -1
  56. package/package.json +8 -6
@@ -1,4 +1,4 @@
1
- import type { Agent, ToolsInput } from '@mastra/core/agent';
1
+ import { type Agent, type AgentExecutionOptions, type ToolsInput } from '@mastra/core/agent';
2
2
  import { DurableAgent, type DurableAgentConfig, type DurableAgenticWorkflowInput, type DurableAgentStreamOptions } from '@mastra/core/agent/durable';
3
3
  import type { Mastra } from '@mastra/core/mastra';
4
4
  import { type ExecutionPrincipalKind } from '../approval-api/principal.js';
@@ -9,6 +9,12 @@ import { type RunnerRuntime, type RunSummary } from '../do-runner/index.js';
9
9
  * the registered id without a magic string.
10
10
  */
11
11
  export declare const DURABLE_AGENTIC_LOOP_WORKFLOW_ID = "durable-agentic-loop";
12
+ /**
13
+ * @internal Metadata key that prevents a route delivery from being terminally
14
+ * persisted. Deliberately deep-imported by `signals/thread-do-routes.ts` and
15
+ * kept off `./index.js`.
16
+ */
17
+ export declare const FLOWSAFE_PERSISTENCE_FORBIDDEN = "flowsafe.persistence-forbidden";
12
18
  interface BreakwaterGuardedAgentHostProtocol {
13
19
  readonly version: 1;
14
20
  readonly supportsDurableStructuredOutput: false;
@@ -16,22 +22,64 @@ interface BreakwaterGuardedAgentHostProtocol {
16
22
  /** @internal Shared with the guarded agent catalog's compatibility check. */
17
23
  export declare function breakwaterGuardedAgentHostProtocol(agent: unknown): BreakwaterGuardedAgentHostProtocol | undefined;
18
24
  /**
19
- * Brand marking an agent as RUNTIME-DRIVEN: its inherited signal wake
20
- * (`agent.stream` under `ifIdle:'wake'`) re-enters the host-owned-run-ID guard in
21
- * {@link FlowsafeDurableAgent.executeWorkflow}, which drives
22
- * `runtime.start('durable-agentic-loop', …)` rather than the base
23
- * `createRun + run.start` on the default engine. The thread-Durable-Object signal
24
- * routes require this brand before honoring an idle wake, because the wake is the
25
- * one signal path that starts a run: a plain core `Agent` (or a STOCK
26
- * `DurableAgent`, whose `stream()` mints an unowned UUID and whose
27
- * `executeWorkflow` runs on the default engine) would start a run OUTSIDE
28
- * RunnerRuntime — an unsafe second execution path that is unscoped and
29
- * grant-underivable. Structural (a `unique symbol`-keyed truthy field) so a test
30
- * double can opt in without constructing a real durable agent.
25
+ * Why each blocked entry point is refused, keyed by method name. The SINGLE
26
+ * source: every override throws `unavailableRunEntry(name,
27
+ * BLOCKED_RUN_ENTRIES[name])`, and durable-agent-surface.test.ts derives both
28
+ * its blocked-member partition and its per-method message assertions from these
29
+ * keys — so a new blocked entry cannot ship with an unexercised refusal, and a
30
+ * reason cannot drift between the throw and the test.
31
+ *
32
+ * Four grounds. The module comment walks the same members by PROVENANCE
33
+ * section (the durable surface, then the Agent surface) rather than by ground,
34
+ * so its numbering is not this list's:
35
+ * 1. re-drives a persisted run below `executeWorkflow`, where there is no
36
+ * RunnerRuntime — no run ownership, no per-leg grant, no snapshot
37
+ * provenance;
38
+ * 2. unscoped run discovery that bypasses the host topology's per-principal
39
+ * run-ownership checks and returns ids the caller does not own;
40
+ * 3. snapshot deletion owned by deployment-scoped retention;
41
+ * 4. a SECOND execution surface that runs the agent outside RunnerRuntime
42
+ * entirely, or that mints a run id below the caller — the network loop's
43
+ * own workflow, the legacy handler, and the thread runtime's tool-approval
44
+ * continuation.
45
+ *
46
+ * Deliberately NOT re-exported from `./index.js` (a named-exports-only barrel),
47
+ * so this stays off the public `@proofoftech/flowsafe/agent-runner` subpath.
48
+ */
49
+ export declare const BLOCKED_RUN_ENTRIES: {
50
+ readonly recover: "re-driving a persisted run bypasses run ownership (INV-1), per-leg grant minting and the fail-closed registry rehydration";
51
+ readonly recoverActiveRuns: "bulk re-driving persisted runs bypasses run ownership (INV-1) and per-leg grant minting";
52
+ readonly resume: "on a run-registry miss the inherited path rehydrates from persisted snapshot storage and re-drives with createRun + run.resume outside RunnerRuntime, bypassing the approval-decision path's grant derivation and the fail-closed registry rehydration";
53
+ readonly resumeStream: "on a run-registry miss the inherited path rehydrates from persisted snapshot storage and re-drives with createRun + run.resume outside RunnerRuntime, bypassing the approval-decision path's grant derivation and the fail-closed registry rehydration";
54
+ readonly resumeGenerate: "on a run-registry miss the inherited path rehydrates from persisted snapshot storage and re-drives with createRun + run.resume outside RunnerRuntime, bypassing the approval-decision path's grant derivation and the fail-closed registry rehydration";
55
+ readonly approveToolCall: "on a run-registry miss the inherited path rehydrates from persisted snapshot storage and re-drives with createRun + run.resume outside RunnerRuntime, bypassing the approval-decision path's grant derivation and the fail-closed registry rehydration";
56
+ readonly declineToolCall: "on a run-registry miss the inherited path rehydrates from persisted snapshot storage and re-drives with createRun + run.resume outside RunnerRuntime, bypassing the approval-decision path's grant derivation and the fail-closed registry rehydration";
57
+ readonly approveToolCallGenerate: "on a run-registry miss the inherited path rehydrates from persisted snapshot storage and re-drives with createRun + run.resume outside RunnerRuntime, bypassing the approval-decision path's grant derivation and the fail-closed registry rehydration";
58
+ readonly declineToolCallGenerate: "on a run-registry miss the inherited path rehydrates from persisted snapshot storage and re-drives with createRun + run.resume outside RunnerRuntime, bypassing the approval-decision path's grant derivation and the fail-closed registry rehydration";
59
+ 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";
60
+ 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";
61
+ readonly deleteRunSnapshots: "durable-agent snapshot rows are retained until deployment-scoped retention purge removes them";
62
+ 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 (INV-1)";
63
+ 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";
64
+ readonly approveNetworkToolCall: "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";
65
+ 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";
66
+ 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)";
67
+ 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)";
68
+ 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";
69
+ };
70
+ /**
71
+ * Brand marking an agent as runtime-driven. The thread Durable Object requires
72
+ * it before its message, signal, schedule, or notification-dispatch wake seam
73
+ * may start a run. Queue and state persist rather than wake on idle. Non-owner
74
+ * notifications are recorded for the trusted dispatcher and never send a
75
+ * signal directly. An unbranded agent reports
76
+ * `degraded: 'not-runtime-driven'` on state and owner-notification responses
77
+ * that reach the sender, regardless of thread state. Skipped state and
78
+ * `memory-unavailable` responses return earlier and carry no marker.
31
79
  *
32
- * The brand is paired with the host-owned idle-start seam: the thread Durable Object
33
- * mints the run id and invokes the wrapper directly, avoiding core's unowned
34
- * idle-wake id generation.
80
+ * Direct core sender calls that mint a run still reach the durable runner,
81
+ * which fails them terminally without executing. Structural so a test double
82
+ * can opt in without constructing a real durable agent.
35
83
  */
36
84
  export declare const RUNTIME_DRIVEN_AGENT: unique symbol;
37
85
  /**
@@ -108,6 +156,8 @@ export declare class FlowsafeDurableAgent<TAgentId extends string = string, TToo
108
156
  * workflow starts asynchronously. Agent hosts need an authoritative summary
109
157
  * before answering a start request, but must keep the stream subscription
110
158
  * and replay cache intact for later HTTP observation.
159
+ * It stamps the locally constructed stream options with the private,
160
+ * single-use host ticket that permits only this first call through `stream()`.
111
161
  *
112
162
  * @internal
113
163
  */
@@ -127,13 +177,194 @@ export declare class FlowsafeDurableAgent<TAgentId extends string = string, TToo
127
177
  * `prepare()`
128
178
  * is the third inherited minting entry point: it forwards `options?.runId` into
129
179
  * core's `prepareForDurableExecution` (agent/durable/index.js:5980), which mints
130
- * an unowned `crypto.randomUUID()` when it is absent (index.js:589) AND
131
- * REGISTERS a run under that id (index.js:5984) — so a later
180
+ * an unowned `crypto.randomUUID()` when it is absent
181
+ * (agent/durable/index.js:589) AND REGISTERS a run under that id
182
+ * (agent/durable/index.js:5984 — all three are 1.50.0-vintage offsets, since
183
+ * that file is a re-export shim from 1.53.0) — so a later
132
184
  * `resume(runId)`/`executeWorkflow` sees a bare UUID `PATH_SAFE_ID_PATTERN`
133
- * already accepts, past every downstream guard. Enforce the caller-minted ID here, while
134
- * "absent" is still visible.
185
+ * already accepts, past every downstream guard. Enforce the caller-minted ID
186
+ * here, while "absent" is still visible. A prepared id remains live until core
187
+ * cleans up the run, so later `stream()`, `generate()`, `prepare()`, and
188
+ * `streamUntilPersisted()` calls carrying that id are refused.
135
189
  */
136
190
  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']>>>;
191
+ /**
192
+ * Refuse core's single-run recovery. `DurableAgent.recover()` loads the
193
+ * persisted `durable-agentic-loop` snapshot, rebuilds model/memory/processors
194
+ * from it and re-drives the run with `createRun + run.restart()` — a second
195
+ * execution path that never enters `executeWorkflow`, so no leg of it is
196
+ * grant-derived, run-owned or snapshot-provenanced. Throw BEFORE the storage
197
+ * read, so a mistaken call cannot even enumerate a run.
198
+ */
199
+ recover(_runId: Parameters<DurableAgent<TAgentId, TTools, TOutput>['recover']>[0], _options?: Parameters<DurableAgent<TAgentId, TTools, TOutput>['recover']>[1]): Promise<never>;
200
+ /**
201
+ * Refuse core's bulk recovery. `recoverActiveRuns()` is
202
+ * {@link FlowsafeDurableAgent.listActiveRuns} plus a `recover()` per row, and
203
+ * it is what `Mastra.recoverAllDurableAgents()` calls on every registered
204
+ * durable agent — so this is the one blocked entry point a host can reach
205
+ * without a FlowSafe call site, by opting into `recovery: { durableAgents:
206
+ * 'auto' }`. That loop isolates each agent in its own try/catch, so this
207
+ * refusal is logged there rather than failing boot. Refuse with an explicit
208
+ * `runId` too: a single target is still a re-drive off RunnerRuntime.
209
+ */
210
+ recoverActiveRuns(_options?: Parameters<DurableAgent<TAgentId, TTools, TOutput>['recoverActiveRuns']>[0]): Promise<never>;
211
+ /**
212
+ * Refuse core's recovery discovery API. `listActiveRuns()` enumerates
213
+ * `listWorkflowRuns({ workflowName: 'durable-agentic-loop', status:
214
+ * 'running' })` narrowed by `agentId` plus the optional
215
+ * `threadId`/`resourceId` filters the CALLER supplies, so it never consults
216
+ * the host topology's per-principal run-ownership checks
217
+ * (`resourceAccess().owner('run', …)`) and hands the caller run ids, thread
218
+ * ids and resource ids for runs it does not own. Host run listing is the
219
+ * topology's job, where ownership is checked.
220
+ */
221
+ listActiveRuns(_options?: Parameters<DurableAgent<TAgentId, TTools, TOutput>['listActiveRuns']>[0]): Promise<never>;
222
+ /**
223
+ * Refuse the Agent-level analogue of
224
+ * {@link FlowsafeDurableAgent.listActiveRuns}. `listSuspendedRuns()` reads
225
+ * the workflows store directly —
226
+ * `listWorkflowRuns({ workflowName: 'agentic-loop', status: 'suspended' })`
227
+ * — and narrows by `agentId` plus the optional `threadId`/`resourceId`
228
+ * filters the CALLER supplies, the same scoping `listActiveRuns()` applies.
229
+ * Same ground too: an unfiltered call returns run, thread and resource ids
230
+ * across every principal that shares the agent. It is the one direct
231
+ * data-returning discovery member the base `Agent` surface adds; the other
232
+ * additions funnel through `this.resumeStream()` and so fail closed on that
233
+ * override.
234
+ */
235
+ listSuspendedRuns(_options?: Parameters<Agent<TAgentId, TTools, TOutput>['listSuspendedRuns']>[0]): Promise<never>;
236
+ /**
237
+ * Refuse the multi-agent network start. `network()` does not touch the
238
+ * durable-agentic-loop at all: it compiles a SEPARATE workflow and drives it
239
+ * with `createRun + run.stream` on the default engine, so the whole
240
+ * collaboration — every sub-agent leg and every tool call inside it — runs
241
+ * with no per-leg grant context, no snapshot provenance and no RunSummary.
242
+ * It also mints `options.runId || mastra.generateId() || randomUUID()`, the
243
+ * exact unowned fallback this runner forbids: the host mints every run id.
244
+ *
245
+ * Signature caveat: the base method is OVERLOADED and generic in OUTPUT, so
246
+ * `Parameters<>` sees only the LAST overload and is too narrow to satisfy the
247
+ * first. The options parameter is therefore widened to `unknown` — the one
248
+ * supertype that satisfies every overload at once. Re-check on every peer
249
+ * bump; nothing here fails if core changes the shape.
250
+ */
251
+ network(_messages: Parameters<Agent<TAgentId, TTools, TOutput>['network']>[0], _options?: unknown): Promise<never>;
252
+ /**
253
+ * Refuse the network resume — same loop and same ground as
254
+ * {@link FlowsafeDurableAgent.network}, plus one fact of its own: under
255
+ * `autoResumeSuspendedTools` it RECOVERS a suspended run id out of thread
256
+ * memory, so a caller need not even name the run it re-drives.
257
+ */
258
+ resumeNetwork(_resumeData: Parameters<Agent<TAgentId, TTools, TOutput>['resumeNetwork']>[0], _options: Parameters<Agent<TAgentId, TTools, TOutput>['resumeNetwork']>[1]): Promise<never>;
259
+ /**
260
+ * Refuse the network tool-approval resume. It is a one-line forward to
261
+ * {@link FlowsafeDurableAgent.resumeNetwork}; blocking it here closes the
262
+ * same door from the side a tool-approval caller reaches for.
263
+ */
264
+ approveNetworkToolCall(_options: Parameters<Agent<TAgentId, TTools, TOutput>['approveNetworkToolCall']>[0]): Promise<never>;
265
+ /** The decline half of {@link FlowsafeDurableAgent.approveNetworkToolCall}. */
266
+ declineNetworkToolCall(_options: Parameters<Agent<TAgentId, TTools, TOutput>['declineNetworkToolCall']>[0]): Promise<never>;
267
+ /**
268
+ * Refuse the AI SDK v4 legacy execution path. `generateLegacy()` forwards
269
+ * into AgentLegacyHandler, which converts and RUNS the agent's tools while
270
+ * bypassing RunnerRuntime entirely, mints its own run id when the caller
271
+ * omits one, and skips `requireAgentExecutionFGA` — the authorization gate
272
+ * every SUPPORTED entry point calls, so this would run the agent without it.
273
+ * (The network family skips that gate too; neither is unique in doing so.) It
274
+ * persists no workflow run state, which is why it is refused on those two
275
+ * grounds rather than as a re-drive.
276
+ *
277
+ * Signature caveat: overloaded and generic in OUTPUT on the base, so this
278
+ * signature is hand-derived and must be re-checked on every peer bump.
279
+ */
280
+ generateLegacy(_messages: Parameters<Agent<TAgentId, TTools, TOutput>['generateLegacy']>[0], _args?: Parameters<Agent<TAgentId, TTools, TOutput>['generateLegacy']>[1]): Promise<never>;
281
+ /** The streaming half of {@link FlowsafeDurableAgent.generateLegacy}. */
282
+ streamLegacy(_messages: Parameters<Agent<TAgentId, TTools, TOutput>['streamLegacy']>[0], _args?: Parameters<Agent<TAgentId, TTools, TOutput>['streamLegacy']>[1]): Promise<never>;
283
+ /**
284
+ * Refuse the thread-level tool approval. The name reads like a resume, but
285
+ * only its tail is one. Called with `messages` and `approved`, it routes to
286
+ * the thread runtime's continuation, which falls back to `randomUUID()` when
287
+ * the caller named no run id and then STARTS a run under it — an unowned id
288
+ * the host-owned run-id guard cannot distinguish from a real one, because it
289
+ * is path-safe. Called with no active thread run, it reaches the blocked
290
+ * suspended-run discovery instead. FlowSafe's own tool approval is a decided
291
+ * ApprovalRecord resumed through the approval-decision path, which mints the
292
+ * leg's grant; this mints nothing and owns nothing.
293
+ *
294
+ * Signature caveat: the base method is generic in OUTPUT, which
295
+ * `Parameters<>` instantiates to its `undefined` default and so types too
296
+ * narrowly to satisfy the base. The options parameter is widened to
297
+ * `unknown` — the one supertype that fits every instantiation. Re-check on
298
+ * every peer bump.
299
+ */
300
+ sendToolApproval(_options: unknown): Promise<never>;
301
+ /**
302
+ * Refuse core's terminal snapshot cleanup. Its only call sites are the base
303
+ * `executeWorkflow` (overridden here), the blocked `resume()` and the blocked
304
+ * `recover()`, so nothing this class drives reaches it; blocking keeps the
305
+ * snapshot rows — which deployment-scoped retention purge owns — from being
306
+ * dropped out from under that owner by a future internal caller.
307
+ *
308
+ * Note what this override buys beyond that call-site audit: the member
309
+ * inventory in durable-agent-surface.test.ts sees a NEW member, never a new
310
+ * core call site on an EXISTING one. So the override is the standing guard —
311
+ * it converts core's best-effort cleanup into a throw the moment a future
312
+ * release calls it on a path FlowSafe drives. None does at 1.53.0.
313
+ */
314
+ protected deleteRunSnapshots(_runId: string): Promise<never>;
315
+ /**
316
+ * Refuse core's durable resume. Until 1.53.0 this merely read the in-process
317
+ * run registry, which is why it was left inherited-but-unwired; now a registry
318
+ * MISS makes it load the persisted `durable-agentic-loop` snapshot, rehydrate
319
+ * through `prepare()` with the full application processor chain, and re-drive
320
+ * the run with `createRun + run.resume` — below `executeWorkflow`, so the leg
321
+ * carries no minted grant and no snapshot provenance.
322
+ * {@link FlowsafeDurableAgent.resumeViaRuntime} is the only resume path, and
323
+ * it is reached from the approval decision, never from a client.
324
+ */
325
+ 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>;
326
+ /**
327
+ * Refuse the base-`Agent`-shaped resume. Core overrides `resumeStream()` on
328
+ * DurableAgent precisely so an `Agent`-API caller lands on the durable
329
+ * `resume()`; blocking it here closes that same door from the other side.
330
+ */
331
+ resumeStream(_resumeData: Parameters<DurableAgent<TAgentId, TTools, TOutput>['resumeStream']>[0], _streamOptions?: Parameters<DurableAgent<TAgentId, TTools, TOutput>['resumeStream']>[1]): Promise<never>;
332
+ /**
333
+ * Refuse the drain-to-completion resume. `resumeGenerate()` forwards straight
334
+ * to `resume()`, so it inherits the same below-the-seam re-drive.
335
+ */
336
+ resumeGenerate(_runId: Parameters<DurableAgent<TAgentId, TTools, TOutput>['resumeGenerate']>[0], _resumeData: Parameters<DurableAgent<TAgentId, TTools, TOutput>['resumeGenerate']>[1], _options?: Parameters<DurableAgent<TAgentId, TTools, TOutput>['resumeGenerate']>[2]): Promise<never>;
337
+ /**
338
+ * Refuse Mastra's own tool-approval resume. Tool approval in FlowSafe is a
339
+ * decided ApprovalRecord resumed through the approval-decision path, which
340
+ * mints the leg's connector grant; `approveToolCall()` funnels into
341
+ * `resumeStream()` -> `resume()` and mints nothing.
342
+ */
343
+ approveToolCall(_options: Parameters<DurableAgent<TAgentId, TTools, TOutput>['approveToolCall']>[0]): Promise<never>;
344
+ /** The decline half of {@link FlowsafeDurableAgent.approveToolCall}. */
345
+ declineToolCall(_options: Parameters<DurableAgent<TAgentId, TTools, TOutput>['declineToolCall']>[0]): Promise<never>;
346
+ /**
347
+ * The 1.53.0 generate-shaped tool-approval pair. They funnel into
348
+ * `resumeGenerate()` -> `resume()`, so they are the same entry point wearing a
349
+ * different return type.
350
+ *
351
+ * Signature caveat for both halves: the base method is GENERIC in its OUTPUT
352
+ * type, which `Parameters<>` cannot carry, so the parameter type below is
353
+ * hand-written rather than derived. Re-check it against the base on every
354
+ * peer bump — nothing here fails if core changes the shape.
355
+ */
356
+ approveToolCallGenerate<OUTPUT = undefined>(_options: AgentExecutionOptions<OUTPUT> & {
357
+ runId: string;
358
+ toolCallId?: string;
359
+ }): Promise<never>;
360
+ /**
361
+ * The decline half of {@link FlowsafeDurableAgent.approveToolCallGenerate},
362
+ * including its hand-written-signature caveat.
363
+ */
364
+ declineToolCallGenerate<OUTPUT = undefined>(_options: AgentExecutionOptions<OUTPUT> & {
365
+ runId: string;
366
+ toolCallId?: string;
367
+ }): Promise<never>;
137
368
  /**
138
369
  * Rehydrate a suspended durable-agent run after isolate eviction, restore its
139
370
  * active thread registration, then resume through RunnerRuntime so approval
@@ -1 +1 @@
1
- {"version":3,"file":"durable-agent-runner.d.ts","sourceRoot":"","sources":["../../src/agent-runner/durable-agent-runner.ts"],"names":[],"mappings":"AA0DA,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EACL,YAAY,EACZ,KAAK,kBAAkB,EACvB,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAG/B,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAIl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