@proofoftech/flowsafe 0.18.0 → 0.20.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 (196) hide show
  1. package/CHANGELOG.md +114 -0
  2. package/README.md +79 -5
  3. package/deployment-identity-protocol.d.mts +62 -1
  4. package/deployment-identity-protocol.mjs +201 -5
  5. package/dist/agent-host/catalog.js +1 -1
  6. package/dist/agent-host/catalog.js.map +1 -1
  7. package/dist/agent-host/index.d.ts +1 -1
  8. package/dist/agent-host/index.d.ts.map +1 -1
  9. package/dist/agent-host/index.js.map +1 -1
  10. package/dist/agent-host/router.d.ts.map +1 -1
  11. package/dist/agent-host/router.js +6 -2
  12. package/dist/agent-host/router.js.map +1 -1
  13. package/dist/agent-host/thread-host.d.ts +11 -0
  14. package/dist/agent-host/thread-host.d.ts.map +1 -1
  15. package/dist/agent-host/thread-host.js +53 -1
  16. package/dist/agent-host/thread-host.js.map +1 -1
  17. package/dist/agent-host/thread-topology.d.ts +35 -1
  18. package/dist/agent-host/thread-topology.d.ts.map +1 -1
  19. package/dist/agent-host/thread-topology.js +103 -7
  20. package/dist/agent-host/thread-topology.js.map +1 -1
  21. package/dist/agent-runner/durable-agent-runner.d.ts +267 -21
  22. package/dist/agent-runner/durable-agent-runner.d.ts.map +1 -1
  23. package/dist/agent-runner/durable-agent-runner.js +706 -76
  24. package/dist/agent-runner/durable-agent-runner.js.map +1 -1
  25. package/dist/approval-api/d1-store.d.ts.map +1 -1
  26. package/dist/approval-api/d1-store.js +6 -3
  27. package/dist/approval-api/d1-store.js.map +1 -1
  28. package/dist/approval-api/principal-identity.d.ts +32 -0
  29. package/dist/approval-api/principal-identity.d.ts.map +1 -0
  30. package/dist/approval-api/principal-identity.js +69 -0
  31. package/dist/approval-api/principal-identity.js.map +1 -0
  32. package/dist/approval-api/principal.d.ts +9 -12
  33. package/dist/approval-api/principal.d.ts.map +1 -1
  34. package/dist/approval-api/principal.js +9 -45
  35. package/dist/approval-api/principal.js.map +1 -1
  36. package/dist/approval-api/router.d.ts.map +1 -1
  37. package/dist/approval-api/router.js +9 -1
  38. package/dist/approval-api/router.js.map +1 -1
  39. package/dist/approval-api/service.d.ts +19 -0
  40. package/dist/approval-api/service.d.ts.map +1 -1
  41. package/dist/approval-api/service.js +41 -10
  42. package/dist/approval-api/service.js.map +1 -1
  43. package/dist/approval-api/types.d.ts +12 -0
  44. package/dist/approval-api/types.d.ts.map +1 -1
  45. package/dist/approval-api/types.js +12 -0
  46. package/dist/approval-api/types.js.map +1 -1
  47. package/dist/background-tasks/host.d.ts +127 -14
  48. package/dist/background-tasks/host.d.ts.map +1 -1
  49. package/dist/background-tasks/host.js +579 -50
  50. package/dist/background-tasks/host.js.map +1 -1
  51. package/dist/background-tasks/index.d.ts +2 -2
  52. package/dist/background-tasks/index.d.ts.map +1 -1
  53. package/dist/background-tasks/index.js +11 -6
  54. package/dist/background-tasks/index.js.map +1 -1
  55. package/dist/background-tasks/routes.d.ts +19 -2
  56. package/dist/background-tasks/routes.d.ts.map +1 -1
  57. package/dist/background-tasks/routes.js +4 -4
  58. package/dist/background-tasks/routes.js.map +1 -1
  59. package/dist/deployment-identity-protocol.d.ts +2 -2
  60. package/dist/deployment-identity-protocol.d.ts.map +1 -1
  61. package/dist/deployment-identity-protocol.js +1 -1
  62. package/dist/deployment-identity-protocol.js.map +1 -1
  63. package/dist/do-runner/cause-chain.d.ts +53 -0
  64. package/dist/do-runner/cause-chain.d.ts.map +1 -0
  65. package/dist/do-runner/cause-chain.js +96 -0
  66. package/dist/do-runner/cause-chain.js.map +1 -0
  67. package/dist/do-runner/d1-storage.d.ts +109 -5
  68. package/dist/do-runner/d1-storage.d.ts.map +1 -1
  69. package/dist/do-runner/d1-storage.js +289 -44
  70. package/dist/do-runner/d1-storage.js.map +1 -1
  71. package/dist/do-runner/deployment-identity.d.ts +28 -13
  72. package/dist/do-runner/deployment-identity.d.ts.map +1 -1
  73. package/dist/do-runner/deployment-identity.js +25 -35
  74. package/dist/do-runner/deployment-identity.js.map +1 -1
  75. package/dist/do-runner/do-error-response.d.ts +4 -23
  76. package/dist/do-runner/do-error-response.d.ts.map +1 -1
  77. package/dist/do-runner/do-error-response.js +19 -24
  78. package/dist/do-runner/do-error-response.js.map +1 -1
  79. package/dist/do-runner/do-status-error.d.ts +37 -0
  80. package/dist/do-runner/do-status-error.d.ts.map +1 -0
  81. package/dist/do-runner/do-status-error.js +42 -0
  82. package/dist/do-runner/do-status-error.js.map +1 -0
  83. package/dist/do-runner/durable-object.d.ts +2 -1
  84. package/dist/do-runner/durable-object.d.ts.map +1 -1
  85. package/dist/do-runner/durable-object.js +205 -19
  86. package/dist/do-runner/durable-object.js.map +1 -1
  87. package/dist/do-runner/execution-fence.d.ts +335 -0
  88. package/dist/do-runner/execution-fence.d.ts.map +1 -0
  89. package/dist/do-runner/execution-fence.js +534 -0
  90. package/dist/do-runner/execution-fence.js.map +1 -0
  91. package/dist/do-runner/index.d.ts +10 -3
  92. package/dist/do-runner/index.d.ts.map +1 -1
  93. package/dist/do-runner/index.js +16 -3
  94. package/dist/do-runner/index.js.map +1 -1
  95. package/dist/do-runner/init.d.ts +82 -1
  96. package/dist/do-runner/init.d.ts.map +1 -1
  97. package/dist/do-runner/init.js +58 -3
  98. package/dist/do-runner/init.js.map +1 -1
  99. package/dist/do-runner/inventory.d.ts +294 -0
  100. package/dist/do-runner/inventory.d.ts.map +1 -0
  101. package/dist/do-runner/inventory.js +811 -0
  102. package/dist/do-runner/inventory.js.map +1 -0
  103. package/dist/do-runner/notification-predicate.d.ts +8 -0
  104. package/dist/do-runner/notification-predicate.d.ts.map +1 -0
  105. package/dist/do-runner/notification-predicate.js +9 -0
  106. package/dist/do-runner/notification-predicate.js.map +1 -0
  107. package/dist/do-runner/runtime.d.ts +83 -0
  108. package/dist/do-runner/runtime.d.ts.map +1 -1
  109. package/dist/do-runner/runtime.js +131 -4
  110. package/dist/do-runner/runtime.js.map +1 -1
  111. package/dist/do-runner/start-idempotency.d.ts +508 -0
  112. package/dist/do-runner/start-idempotency.d.ts.map +1 -0
  113. package/dist/do-runner/start-idempotency.js +886 -0
  114. package/dist/do-runner/start-idempotency.js.map +1 -0
  115. package/dist/do-runner/suspension-deadline.d.ts +3 -2
  116. package/dist/do-runner/suspension-deadline.d.ts.map +1 -1
  117. package/dist/do-runner/suspension-deadline.js +3 -2
  118. package/dist/do-runner/suspension-deadline.js.map +1 -1
  119. package/dist/goals/objective-routes.d.ts +14 -0
  120. package/dist/goals/objective-routes.d.ts.map +1 -1
  121. package/dist/goals/objective-routes.js +45 -24
  122. package/dist/goals/objective-routes.js.map +1 -1
  123. package/dist/host-kit/do-run-topology.d.ts +15 -0
  124. package/dist/host-kit/do-run-topology.d.ts.map +1 -1
  125. package/dist/host-kit/do-run-topology.js +22 -1
  126. package/dist/host-kit/do-run-topology.js.map +1 -1
  127. package/dist/host-kit/flowsafe-worker.d.ts +11 -0
  128. package/dist/host-kit/flowsafe-worker.d.ts.map +1 -1
  129. package/dist/host-kit/flowsafe-worker.js +343 -62
  130. package/dist/host-kit/flowsafe-worker.js.map +1 -1
  131. package/dist/host-kit/host-approval-service.d.ts +20 -0
  132. package/dist/host-kit/host-approval-service.d.ts.map +1 -1
  133. package/dist/host-kit/host-approval-service.js +6 -0
  134. package/dist/host-kit/host-approval-service.js.map +1 -1
  135. package/dist/host-kit/index.d.ts +2 -2
  136. package/dist/host-kit/index.d.ts.map +1 -1
  137. package/dist/host-kit/index.js +1 -1
  138. package/dist/host-kit/index.js.map +1 -1
  139. package/dist/host-kit/run-route-error.d.ts +18 -0
  140. package/dist/host-kit/run-route-error.d.ts.map +1 -1
  141. package/dist/host-kit/run-route-error.js +23 -0
  142. package/dist/host-kit/run-route-error.js.map +1 -1
  143. package/dist/host-kit/run-router.d.ts +58 -1
  144. package/dist/host-kit/run-router.d.ts.map +1 -1
  145. package/dist/host-kit/run-router.js +120 -11
  146. package/dist/host-kit/run-router.js.map +1 -1
  147. package/dist/host-kit/stream-router.d.ts.map +1 -1
  148. package/dist/host-kit/stream-router.js +18 -9
  149. package/dist/host-kit/stream-router.js.map +1 -1
  150. package/dist/schedules/router.d.ts +15 -0
  151. package/dist/schedules/router.d.ts.map +1 -1
  152. package/dist/schedules/router.js +47 -17
  153. package/dist/schedules/router.js.map +1 -1
  154. package/dist/schedules/tick.d.ts +13 -0
  155. package/dist/schedules/tick.d.ts.map +1 -1
  156. package/dist/schedules/tick.js +59 -39
  157. package/dist/schedules/tick.js.map +1 -1
  158. package/dist/signal-providers/delivery.d.ts +32 -0
  159. package/dist/signal-providers/delivery.d.ts.map +1 -1
  160. package/dist/signal-providers/delivery.js +45 -0
  161. package/dist/signal-providers/delivery.js.map +1 -1
  162. package/dist/signal-providers/host-do.d.ts +23 -1
  163. package/dist/signal-providers/host-do.d.ts.map +1 -1
  164. package/dist/signal-providers/host-do.js +76 -17
  165. package/dist/signal-providers/host-do.js.map +1 -1
  166. package/dist/signal-providers/provider.d.ts +8 -0
  167. package/dist/signal-providers/provider.d.ts.map +1 -1
  168. package/dist/signal-providers/provider.js.map +1 -1
  169. package/dist/signal-providers/webhook-route.d.ts +20 -0
  170. package/dist/signal-providers/webhook-route.d.ts.map +1 -1
  171. package/dist/signal-providers/webhook-route.js +137 -26
  172. package/dist/signal-providers/webhook-route.js.map +1 -1
  173. package/dist/signals/client.d.ts +19 -5
  174. package/dist/signals/client.d.ts.map +1 -1
  175. package/dist/signals/client.js +25 -17
  176. package/dist/signals/client.js.map +1 -1
  177. package/dist/signals/index.d.ts +1 -1
  178. package/dist/signals/index.d.ts.map +1 -1
  179. package/dist/signals/index.js.map +1 -1
  180. package/dist/signals/notification-dispatch.d.ts +15 -0
  181. package/dist/signals/notification-dispatch.d.ts.map +1 -1
  182. package/dist/signals/notification-dispatch.js +23 -1
  183. package/dist/signals/notification-dispatch.js.map +1 -1
  184. package/dist/signals/notifications-d1.d.ts +8 -0
  185. package/dist/signals/notifications-d1.d.ts.map +1 -1
  186. package/dist/signals/notifications-d1.js +15 -9
  187. package/dist/signals/notifications-d1.js.map +1 -1
  188. package/dist/signals/router.d.ts.map +1 -1
  189. package/dist/signals/router.js +3 -2
  190. package/dist/signals/router.js.map +1 -1
  191. package/dist/signals/thread-do-routes.d.ts +48 -10
  192. package/dist/signals/thread-do-routes.d.ts.map +1 -1
  193. package/dist/signals/thread-do-routes.js +710 -136
  194. package/dist/signals/thread-do-routes.js.map +1 -1
  195. package/package.json +8 -6
  196. package/scripts/seed-deployment-identity.mjs +22 -4
@@ -1,6 +1,6 @@
1
1
  // SPDX-License-Identifier: Apache-2.0
2
2
  import { defaultResumeData, } from '../approval-api/index.js';
3
- import { isPathSafeId } from '../do-runner/index.js';
3
+ import { beginIdempotentStart, isPathSafeId, requireStartIdempotency, rollbackFencedStart, } from '../do-runner/index.js';
4
4
  import { createThreadTopology, requireResourceAccess, } from '../host-kit/index.js';
5
5
  import { RunRouteError } from '../host-kit/run-route-error.js';
6
6
  import { sanitizeStoredAgentContext } from './trusted-context.js';
@@ -44,7 +44,7 @@ function expectedResource(context, threadId, supplied) {
44
44
  }
45
45
  return resourceId;
46
46
  }
47
- export function createAgentThreadTopology(namespace, deploymentIdentitySecret) {
47
+ export function createAgentThreadTopology(namespace, deploymentIdentitySecret, options) {
48
48
  const threads = createThreadTopology(namespace, deploymentIdentitySecret);
49
49
  const fetchStatus = async (context, input, resourceId, dispatch) => {
50
50
  const response = await threads.send(context, input.threadId, `${AGENT_HOST_ROUTE_PREFIX}/runs/${encodeURIComponent(input.agentId)}/${encodeURIComponent(input.runId)}?resourceId=${encodeURIComponent(resourceId)}${dispatch ? '&dispatch=1' : ''}`);
@@ -68,6 +68,59 @@ export function createAgentThreadTopology(namespace, deploymentIdentitySecret) {
68
68
  const resourceId = expectedResource(context, input.threadId);
69
69
  return fetchStatus(context, input, resourceId, true);
70
70
  };
71
+ /**
72
+ * A reserved agent run's persisted envelope, read from the thread the
73
+ * reservation recorded — which is NOT necessarily the thread this retry would
74
+ * have minted. That indirection is the whole reason the reservation stores a
75
+ * thread at all: an unthreaded retry mints a fresh thread every time, and
76
+ * without the recorded one it would be asking an empty object about a run it
77
+ * never had.
78
+ *
79
+ * The dispatch variant of the status route, because a run that already
80
+ * reached a terminal state has had its run record and ownership released, and
81
+ * the public variant answers 404 for exactly that case — which a replay must
82
+ * not confuse with "no run".
83
+ *
84
+ * NO `requireResourceAccess` here, deliberately. Ownership on this path is
85
+ * the RESERVATION's: the reserve call already refused every principal but the
86
+ * key's owner, and the resource registry it would consult has legitimately
87
+ * forgotten a settled run. Re-checking there would make a completed run's
88
+ * replay a 404 — the one answer that would send a caller off to start a
89
+ * second one.
90
+ */
91
+ const reservedRunEnvelope = async (context, agentId, reservation) => {
92
+ const threadId = reservation.threadId;
93
+ if (threadId === undefined || !isPathSafeId(threadId))
94
+ return undefined;
95
+ const response = await threads.send(context, threadId, `${AGENT_HOST_ROUTE_PREFIX}/runs/${encodeURIComponent(agentId)}/${encodeURIComponent(reservation.runId)}?resourceId=${encodeURIComponent(context.resourceIdFromKey(threadId))}&dispatch=1`);
96
+ if (response.status === 404)
97
+ return undefined;
98
+ return envelope(response);
99
+ };
100
+ /**
101
+ * Is the reserved run executing in its thread object right now?
102
+ *
103
+ * Asked of the RECORDED thread, which is the only object that could be
104
+ * running it: an agent run is bound to one thread for its whole life. An
105
+ * unreachable or unparseable answer reads as NOT live, the fail-closed
106
+ * direction here — it produces the refusal that asks a human to investigate,
107
+ * where a default of "live" would answer a permanently dead run with a
108
+ * permanently retryable 503.
109
+ */
110
+ const reservedRunLive = async (context, agentId, reservation) => {
111
+ const threadId = reservation.threadId;
112
+ if (threadId === undefined || !isPathSafeId(threadId))
113
+ return false;
114
+ const response = await threads.send(context, threadId, `${AGENT_HOST_ROUTE_PREFIX}/runs/${encodeURIComponent(agentId)}/${encodeURIComponent(reservation.runId)}/start-liveness`);
115
+ if (response.status !== 200)
116
+ return false;
117
+ try {
118
+ return (await response.json()).live === true;
119
+ }
120
+ catch {
121
+ return false;
122
+ }
123
+ };
71
124
  return {
72
125
  requireBoundThread: async (context, target) => {
73
126
  const threadId = validThread(target.threadId);
@@ -102,7 +155,13 @@ export function createAgentThreadTopology(namespace, deploymentIdentitySecret) {
102
155
  ? context.newThreadId()
103
156
  : validThread(input.threadId);
104
157
  const resourceId = expectedResource(context, threadId, input.resourceId);
105
- const runId = input.runId === undefined
158
+ // The mint, as a THUNK. Two things depend on the delay: the reservation
159
+ // only spends an id when it wins the insert, and — for the
160
+ // caller-influenced `input.runId` path this closes the gap on — a retry
161
+ // that loses the insert takes the WINNER's id rather than re-proposing
162
+ // its own, which is what makes two same-key starts converge instead of
163
+ // becoming two runs.
164
+ const mintRunId = () => input.runId === undefined
106
165
  ? context.newRunId()
107
166
  : isPathSafeId(input.runId)
108
167
  ? input.runId
@@ -117,19 +176,22 @@ export function createAgentThreadTopology(namespace, deploymentIdentitySecret) {
117
176
  ...input.requestContext,
118
177
  ...input.streamRequestContext,
119
178
  });
120
- return envelope(await threads.send(context, threadId, `${AGENT_HOST_ROUTE_PREFIX}/start`, {
179
+ const sendStart = async (targetThreadId, targetRunId, idempotencyKey) => envelope(await threads.send(context, targetThreadId, `${AGENT_HOST_ROUTE_PREFIX}/start`, {
121
180
  method: 'POST',
122
181
  headers: { 'content-type': 'application/json' },
123
182
  body: JSON.stringify({
124
183
  agentId: input.agentId,
125
- threadId,
126
- resourceId,
127
- runId,
184
+ threadId: targetThreadId,
185
+ resourceId: context.resourceIdFromKey(targetThreadId),
186
+ runId: targetRunId,
128
187
  prompt: input.prompt,
129
188
  entryPath: input.entryPath,
130
189
  threaded,
131
190
  safeContext,
132
191
  providerOptions: input.providerOptions,
192
+ // The key rides the internal Worker-to-DO channel only, so the
193
+ // fence's proof-only state can match it inside the runtime.
194
+ ...(idempotencyKey === undefined ? {} : { idempotencyKey }),
133
195
  ...(input.scheduleId !== undefined
134
196
  ? { scheduleId: input.scheduleId }
135
197
  : {}),
@@ -138,6 +200,40 @@ export function createAgentThreadTopology(namespace, deploymentIdentitySecret) {
138
200
  : {}),
139
201
  }),
140
202
  }));
203
+ if (input.idempotencyKey === undefined) {
204
+ // Unkeyed starts take the path they always took, on the thread this
205
+ // call resolved.
206
+ return sendStart(threadId, mintRunId());
207
+ }
208
+ const store = requireStartIdempotency(options.startIdempotency);
209
+ const decision = await beginIdempotentStart(store, {
210
+ key: input.idempotencyKey,
211
+ owner: {
212
+ kind: context.principal.kind,
213
+ id: context.principal.id,
214
+ },
215
+ targetKind: 'agent',
216
+ targetId: input.agentId,
217
+ threadId,
218
+ mintRunId,
219
+ }, {
220
+ persisted: (reservation) => reservedRunEnvelope(context, input.agentId, reservation),
221
+ live: (reservation) => reservedRunLive(context, input.agentId, reservation),
222
+ }, options.executionFence);
223
+ if (decision.kind === 'replay')
224
+ return decision.persisted;
225
+ // The RESERVATION's thread and run, not this call's: on a re-claim of a
226
+ // reservation an earlier crashed caller left behind, the recorded thread
227
+ // is where that run belongs and this call's freshly minted one is not.
228
+ const { reservation } = decision;
229
+ const startThreadId = reservation.threadId ?? threadId;
230
+ try {
231
+ return await sendStart(startThreadId, reservation.runId, reservation.key);
232
+ }
233
+ catch (error) {
234
+ // Only a fence refusal gives the claim back — see rollbackFencedStart.
235
+ return rollbackFencedStart(store, reservation.key, reservation.runId, error);
236
+ }
141
237
  },
142
238
  status: statusFromHost,
143
239
  dispatchStatus: dispatchStatusFromHost,
@@ -1 +1 @@
1
- {"version":3,"file":"thread-topology.js","sourceRoot":"","sources":["../../src/agent-host/thread-topology.ts"],"names":[],"mappings":"AAAA,sCAAsC;AAEtC,OAAO,EAIL,iBAAiB,GAClB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAGL,oBAAoB,EACpB,qBAAqB,GAGtB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,0BAA0B,EAAE,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AU;oBAC7B,KAAK,EAAE,MAAM,CAAC,KAAK;oBACnB,IAAI,EAAE,MAAM,CAAC,QAAQ;oBACrB,UAAU,EAAE,iBAAiB,CAAC,MAAM,EAAE,QAAQ,CAAC;oBAC/C,SAAS,EAAE,iBAAiB;oBAC5B,WAAW,EAAE,MAAM,CAAC,SAAS;iBAC9B,CAAC;aACH,CACF,CACF,CAAC;QACJ,CAAC;KACF,CAAC;AACJ,CAAC"}
@@ -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
31
  *
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.
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, per-leg grant minting and the fail-closed registry rehydration";
51
+ readonly recoverActiveRuns: "bulk re-driving persisted runs bypasses run ownership 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";
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.
79
+ *
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,13 +156,30 @@ 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
  */
114
164
  streamUntilPersisted(messages: Parameters<DurableAgent<TAgentId, TTools, TOutput>['stream']>[0], options: NonNullable<Parameters<DurableAgent<TAgentId, TTools, TOutput>['stream']>[1]>, requestedBy: string, requestedByKind: ExecutionPrincipalKind, attemptToken?: string, scheduleDispatch?: {
115
165
  scheduleId: string;
116
166
  dispatchId: string;
117
- }): Promise<Awaited<ReturnType<DurableAgent<TAgentId, TTools, TOutput>['stream']>>>;
167
+ },
168
+ /**
169
+ * The idempotency key the thread topology already RESERVED for this run.
170
+ *
171
+ * It travels down here for one job: the execution fence's proof-only state
172
+ * admits exactly the start whose key matches its nominated proof key, and
173
+ * `RunnerRuntime.start` is where that comparison happens. It buys no
174
+ * exactly-once property at this layer — the reservation above already did —
175
+ * so nothing here validates it beyond passing it on, and a run started
176
+ * without one behaves exactly as before.
177
+ *
178
+ * Parked per-runId beside the attempt token rather than threaded through
179
+ * core, because core owns the call between `stream()` and
180
+ * `executeWorkflow()` and carries no field this could ride in.
181
+ */
182
+ idempotencyKey?: string): Promise<Awaited<ReturnType<DurableAgent<TAgentId, TTools, TOutput>['stream']>>>;
118
183
  /**
119
184
  * The same host-owned run-ID guard as {@link FlowsafeDurableAgent.stream} —
120
185
  * `generate()`
@@ -127,13 +192,194 @@ export declare class FlowsafeDurableAgent<TAgentId extends string = string, TToo
127
192
  * `prepare()`
128
193
  * is the third inherited minting entry point: it forwards `options?.runId` into
129
194
  * 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
195
+ * an unowned `crypto.randomUUID()` when it is absent
196
+ * (agent/durable/index.js:589) AND REGISTERS a run under that id
197
+ * (agent/durable/index.js:5984 — all three are 1.50.0-vintage offsets, since
198
+ * that file is a re-export shim from 1.53.0) — so a later
132
199
  * `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.
200
+ * already accepts, past every downstream guard. Enforce the caller-minted ID
201
+ * here, while "absent" is still visible. A prepared id remains live until core
202
+ * cleans up the run, so later `stream()`, `generate()`, `prepare()`, and
203
+ * `streamUntilPersisted()` calls carrying that id are refused.
135
204
  */
136
205
  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']>>>;
206
+ /**
207
+ * Refuse core's single-run recovery. `DurableAgent.recover()` loads the
208
+ * persisted `durable-agentic-loop` snapshot, rebuilds model/memory/processors
209
+ * from it and re-drives the run with `createRun + run.restart()` — a second
210
+ * execution path that never enters `executeWorkflow`, so no leg of it is
211
+ * grant-derived, run-owned or snapshot-provenanced. Throw BEFORE the storage
212
+ * read, so a mistaken call cannot even enumerate a run.
213
+ */
214
+ recover(_runId: Parameters<DurableAgent<TAgentId, TTools, TOutput>['recover']>[0], _options?: Parameters<DurableAgent<TAgentId, TTools, TOutput>['recover']>[1]): Promise<never>;
215
+ /**
216
+ * Refuse core's bulk recovery. `recoverActiveRuns()` is
217
+ * {@link FlowsafeDurableAgent.listActiveRuns} plus a `recover()` per row, and
218
+ * it is what `Mastra.recoverAllDurableAgents()` calls on every registered
219
+ * durable agent — so this is the one blocked entry point a host can reach
220
+ * without a FlowSafe call site, by opting into `recovery: { durableAgents:
221
+ * 'auto' }`. That loop isolates each agent in its own try/catch, so this
222
+ * refusal is logged there rather than failing boot. Refuse with an explicit
223
+ * `runId` too: a single target is still a re-drive off RunnerRuntime.
224
+ */
225
+ recoverActiveRuns(_options?: Parameters<DurableAgent<TAgentId, TTools, TOutput>['recoverActiveRuns']>[0]): Promise<never>;
226
+ /**
227
+ * Refuse core's recovery discovery API. `listActiveRuns()` enumerates
228
+ * `listWorkflowRuns({ workflowName: 'durable-agentic-loop', status:
229
+ * 'running' })` narrowed by `agentId` plus the optional
230
+ * `threadId`/`resourceId` filters the CALLER supplies, so it never consults
231
+ * the host topology's per-principal run-ownership checks
232
+ * (`resourceAccess().owner('run', …)`) and hands the caller run ids, thread
233
+ * ids and resource ids for runs it does not own. Host run listing is the
234
+ * topology's job, where ownership is checked.
235
+ */
236
+ listActiveRuns(_options?: Parameters<DurableAgent<TAgentId, TTools, TOutput>['listActiveRuns']>[0]): Promise<never>;
237
+ /**
238
+ * Refuse the Agent-level analogue of
239
+ * {@link FlowsafeDurableAgent.listActiveRuns}. `listSuspendedRuns()` reads
240
+ * the workflows store directly —
241
+ * `listWorkflowRuns({ workflowName: 'agentic-loop', status: 'suspended' })`
242
+ * — and narrows by `agentId` plus the optional `threadId`/`resourceId`
243
+ * filters the CALLER supplies, the same scoping `listActiveRuns()` applies.
244
+ * Same ground too: an unfiltered call returns run, thread and resource ids
245
+ * across every principal that shares the agent. It is the one direct
246
+ * data-returning discovery member the base `Agent` surface adds; the other
247
+ * additions funnel through `this.resumeStream()` and so fail closed on that
248
+ * override.
249
+ */
250
+ listSuspendedRuns(_options?: Parameters<Agent<TAgentId, TTools, TOutput>['listSuspendedRuns']>[0]): Promise<never>;
251
+ /**
252
+ * Refuse the multi-agent network start. `network()` does not touch the
253
+ * durable-agentic-loop at all: it compiles a SEPARATE workflow and drives it
254
+ * with `createRun + run.stream` on the default engine, so the whole
255
+ * collaboration — every sub-agent leg and every tool call inside it — runs
256
+ * with no per-leg grant context, no snapshot provenance and no RunSummary.
257
+ * It also mints `options.runId || mastra.generateId() || randomUUID()`, the
258
+ * exact unowned fallback this runner forbids: the host mints every run id.
259
+ *
260
+ * Signature caveat: the base method is OVERLOADED and generic in OUTPUT, so
261
+ * `Parameters<>` sees only the LAST overload and is too narrow to satisfy the
262
+ * first. The options parameter is therefore widened to `unknown` — the one
263
+ * supertype that satisfies every overload at once. Re-check on every peer
264
+ * bump; nothing here fails if core changes the shape.
265
+ */
266
+ network(_messages: Parameters<Agent<TAgentId, TTools, TOutput>['network']>[0], _options?: unknown): Promise<never>;
267
+ /**
268
+ * Refuse the network resume — same loop and same ground as
269
+ * {@link FlowsafeDurableAgent.network}, plus one fact of its own: under
270
+ * `autoResumeSuspendedTools` it RECOVERS a suspended run id out of thread
271
+ * memory, so a caller need not even name the run it re-drives.
272
+ */
273
+ resumeNetwork(_resumeData: Parameters<Agent<TAgentId, TTools, TOutput>['resumeNetwork']>[0], _options: Parameters<Agent<TAgentId, TTools, TOutput>['resumeNetwork']>[1]): Promise<never>;
274
+ /**
275
+ * Refuse the network tool-approval resume. It is a one-line forward to
276
+ * {@link FlowsafeDurableAgent.resumeNetwork}; blocking it here closes the
277
+ * same door from the side a tool-approval caller reaches for.
278
+ */
279
+ approveNetworkToolCall(_options: Parameters<Agent<TAgentId, TTools, TOutput>['approveNetworkToolCall']>[0]): Promise<never>;
280
+ /** The decline half of {@link FlowsafeDurableAgent.approveNetworkToolCall}. */
281
+ declineNetworkToolCall(_options: Parameters<Agent<TAgentId, TTools, TOutput>['declineNetworkToolCall']>[0]): Promise<never>;
282
+ /**
283
+ * Refuse the AI SDK v4 legacy execution path. `generateLegacy()` forwards
284
+ * into AgentLegacyHandler, which converts and RUNS the agent's tools while
285
+ * bypassing RunnerRuntime entirely, mints its own run id when the caller
286
+ * omits one, and skips `requireAgentExecutionFGA` — the authorization gate
287
+ * every SUPPORTED entry point calls, so this would run the agent without it.
288
+ * (The network family skips that gate too; neither is unique in doing so.) It
289
+ * persists no workflow run state, which is why it is refused on those two
290
+ * grounds rather than as a re-drive.
291
+ *
292
+ * Signature caveat: overloaded and generic in OUTPUT on the base, so this
293
+ * signature is hand-derived and must be re-checked on every peer bump.
294
+ */
295
+ generateLegacy(_messages: Parameters<Agent<TAgentId, TTools, TOutput>['generateLegacy']>[0], _args?: Parameters<Agent<TAgentId, TTools, TOutput>['generateLegacy']>[1]): Promise<never>;
296
+ /** The streaming half of {@link FlowsafeDurableAgent.generateLegacy}. */
297
+ streamLegacy(_messages: Parameters<Agent<TAgentId, TTools, TOutput>['streamLegacy']>[0], _args?: Parameters<Agent<TAgentId, TTools, TOutput>['streamLegacy']>[1]): Promise<never>;
298
+ /**
299
+ * Refuse the thread-level tool approval. The name reads like a resume, but
300
+ * only its tail is one. Called with `messages` and `approved`, it routes to
301
+ * the thread runtime's continuation, which falls back to `randomUUID()` when
302
+ * the caller named no run id and then STARTS a run under it — an unowned id
303
+ * the host-owned run-id guard cannot distinguish from a real one, because it
304
+ * is path-safe. Called with no active thread run, it reaches the blocked
305
+ * suspended-run discovery instead. FlowSafe's own tool approval is a decided
306
+ * ApprovalRecord resumed through the approval-decision path, which mints the
307
+ * leg's grant; this mints nothing and owns nothing.
308
+ *
309
+ * Signature caveat: the base method is generic in OUTPUT, which
310
+ * `Parameters<>` instantiates to its `undefined` default and so types too
311
+ * narrowly to satisfy the base. The options parameter is widened to
312
+ * `unknown` — the one supertype that fits every instantiation. Re-check on
313
+ * every peer bump.
314
+ */
315
+ sendToolApproval(_options: unknown): Promise<never>;
316
+ /**
317
+ * Refuse core's terminal snapshot cleanup. Its only call sites are the base
318
+ * `executeWorkflow` (overridden here), the blocked `resume()` and the blocked
319
+ * `recover()`, so nothing this class drives reaches it; blocking keeps the
320
+ * snapshot rows — which deployment-scoped retention purge owns — from being
321
+ * dropped out from under that owner by a future internal caller.
322
+ *
323
+ * Note what this override buys beyond that call-site audit: the member
324
+ * inventory in durable-agent-surface.test.ts sees a NEW member, never a new
325
+ * core call site on an EXISTING one. So the override is the standing guard —
326
+ * it converts core's best-effort cleanup into a throw the moment a future
327
+ * release calls it on a path FlowSafe drives. None does at 1.53.0.
328
+ */
329
+ protected deleteRunSnapshots(_runId: string): Promise<never>;
330
+ /**
331
+ * Refuse core's durable resume. Until 1.53.0 this merely read the in-process
332
+ * run registry, which is why it was left inherited-but-unwired; now a registry
333
+ * MISS makes it load the persisted `durable-agentic-loop` snapshot, rehydrate
334
+ * through `prepare()` with the full application processor chain, and re-drive
335
+ * the run with `createRun + run.resume` — below `executeWorkflow`, so the leg
336
+ * carries no minted grant and no snapshot provenance.
337
+ * {@link FlowsafeDurableAgent.resumeViaRuntime} is the only resume path, and
338
+ * it is reached from the approval decision, never from a client.
339
+ */
340
+ 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>;
341
+ /**
342
+ * Refuse the base-`Agent`-shaped resume. Core overrides `resumeStream()` on
343
+ * DurableAgent precisely so an `Agent`-API caller lands on the durable
344
+ * `resume()`; blocking it here closes that same door from the other side.
345
+ */
346
+ resumeStream(_resumeData: Parameters<DurableAgent<TAgentId, TTools, TOutput>['resumeStream']>[0], _streamOptions?: Parameters<DurableAgent<TAgentId, TTools, TOutput>['resumeStream']>[1]): Promise<never>;
347
+ /**
348
+ * Refuse the drain-to-completion resume. `resumeGenerate()` forwards straight
349
+ * to `resume()`, so it inherits the same below-the-seam re-drive.
350
+ */
351
+ 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>;
352
+ /**
353
+ * Refuse Mastra's own tool-approval resume. Tool approval in FlowSafe is a
354
+ * decided ApprovalRecord resumed through the approval-decision path, which
355
+ * mints the leg's connector grant; `approveToolCall()` funnels into
356
+ * `resumeStream()` -> `resume()` and mints nothing.
357
+ */
358
+ approveToolCall(_options: Parameters<DurableAgent<TAgentId, TTools, TOutput>['approveToolCall']>[0]): Promise<never>;
359
+ /** The decline half of {@link FlowsafeDurableAgent.approveToolCall}. */
360
+ declineToolCall(_options: Parameters<DurableAgent<TAgentId, TTools, TOutput>['declineToolCall']>[0]): Promise<never>;
361
+ /**
362
+ * The 1.53.0 generate-shaped tool-approval pair. They funnel into
363
+ * `resumeGenerate()` -> `resume()`, so they are the same entry point wearing a
364
+ * different return type.
365
+ *
366
+ * Signature caveat for both halves: the base method is GENERIC in its OUTPUT
367
+ * type, which `Parameters<>` cannot carry, so the parameter type below is
368
+ * hand-written rather than derived. Re-check it against the base on every
369
+ * peer bump — nothing here fails if core changes the shape.
370
+ */
371
+ approveToolCallGenerate<OUTPUT = undefined>(_options: AgentExecutionOptions<OUTPUT> & {
372
+ runId: string;
373
+ toolCallId?: string;
374
+ }): Promise<never>;
375
+ /**
376
+ * The decline half of {@link FlowsafeDurableAgent.approveToolCallGenerate},
377
+ * including its hand-written-signature caveat.
378
+ */
379
+ declineToolCallGenerate<OUTPUT = undefined>(_options: AgentExecutionOptions<OUTPUT> & {
380
+ runId: string;
381
+ toolCallId?: string;
382
+ }): Promise<never>;
137
383
  /**
138
384
  * Rehydrate a suspended durable-agent run after isolate eviction, restore its
139
385
  * active thread registration, then resume through RunnerRuntime so approval
@@ -1 +1 @@
1
- {"version":3,"file":"durable-agent-runner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