@animalabs/agent-framework 0.30.0 → 0.31.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 (179) hide show
  1. package/README.md +71 -8
  2. package/dist/src/agent.d.ts +29 -9
  3. package/dist/src/agent.d.ts.map +1 -1
  4. package/dist/src/agent.js +82 -17
  5. package/dist/src/agent.js.map +1 -1
  6. package/dist/src/api/mcp-server-core.d.ts.map +1 -1
  7. package/dist/src/api/mcp-server-core.js +10 -3
  8. package/dist/src/api/mcp-server-core.js.map +1 -1
  9. package/dist/src/code-execution/isolate/render.d.ts.map +1 -1
  10. package/dist/src/code-execution/isolate/render.js +7 -6
  11. package/dist/src/code-execution/isolate/render.js.map +1 -1
  12. package/dist/src/code-execution/isolate/scripts.d.ts.map +1 -1
  13. package/dist/src/code-execution/isolate/scripts.js +5 -4
  14. package/dist/src/code-execution/isolate/scripts.js.map +1 -1
  15. package/dist/src/framework.d.ts +129 -92
  16. package/dist/src/framework.d.ts.map +1 -1
  17. package/dist/src/framework.js +1115 -704
  18. package/dist/src/framework.js.map +1 -1
  19. package/dist/src/gate/event-gate.d.ts +24 -17
  20. package/dist/src/gate/event-gate.d.ts.map +1 -1
  21. package/dist/src/gate/event-gate.js +198 -144
  22. package/dist/src/gate/event-gate.js.map +1 -1
  23. package/dist/src/gate/recipe-reconcile.d.ts.map +1 -1
  24. package/dist/src/gate/recipe-reconcile.js +6 -5
  25. package/dist/src/gate/recipe-reconcile.js.map +1 -1
  26. package/dist/src/host-presentation.d.ts.map +1 -1
  27. package/dist/src/host-presentation.js +5 -7
  28. package/dist/src/host-presentation.js.map +1 -1
  29. package/dist/src/index.d.ts +1 -0
  30. package/dist/src/index.d.ts.map +1 -1
  31. package/dist/src/index.js +1 -0
  32. package/dist/src/index.js.map +1 -1
  33. package/dist/src/inference-bounds.d.ts +37 -0
  34. package/dist/src/inference-bounds.d.ts.map +1 -0
  35. package/dist/src/inference-bounds.js +84 -0
  36. package/dist/src/inference-bounds.js.map +1 -0
  37. package/dist/src/line-reader.d.ts +7 -1
  38. package/dist/src/line-reader.d.ts.map +1 -1
  39. package/dist/src/line-reader.js +17 -6
  40. package/dist/src/line-reader.js.map +1 -1
  41. package/dist/src/mcpl/errors.d.ts +1 -0
  42. package/dist/src/mcpl/errors.d.ts.map +1 -1
  43. package/dist/src/mcpl/errors.js +3 -0
  44. package/dist/src/mcpl/errors.js.map +1 -1
  45. package/dist/src/mcpl/inbound-source.d.ts +2 -2
  46. package/dist/src/mcpl/inbound-source.js +2 -2
  47. package/dist/src/mcpl/inference-router.d.ts +11 -1
  48. package/dist/src/mcpl/inference-router.d.ts.map +1 -1
  49. package/dist/src/mcpl/inference-router.js +65 -9
  50. package/dist/src/mcpl/inference-router.js.map +1 -1
  51. package/dist/src/mcpl/modern-connection.d.ts +10 -7
  52. package/dist/src/mcpl/modern-connection.d.ts.map +1 -1
  53. package/dist/src/mcpl/modern-connection.js +85 -74
  54. package/dist/src/mcpl/modern-connection.js.map +1 -1
  55. package/dist/src/mcpl/protocol-family.d.ts +1 -1
  56. package/dist/src/mcpl/protocol-family.d.ts.map +1 -1
  57. package/dist/src/mcpl/protocol-family.js +45 -3
  58. package/dist/src/mcpl/protocol-family.js.map +1 -1
  59. package/dist/src/mcpl/push-coalescer.d.ts +2 -7
  60. package/dist/src/mcpl/push-coalescer.d.ts.map +1 -1
  61. package/dist/src/mcpl/push-coalescer.js.map +1 -1
  62. package/dist/src/mcpl/references.d.ts +1 -2
  63. package/dist/src/mcpl/references.d.ts.map +1 -1
  64. package/dist/src/mcpl/references.js +3 -3
  65. package/dist/src/mcpl/references.js.map +1 -1
  66. package/dist/src/mcpl/server-connection.d.ts +14 -0
  67. package/dist/src/mcpl/server-connection.d.ts.map +1 -1
  68. package/dist/src/mcpl/server-connection.js +26 -22
  69. package/dist/src/mcpl/server-connection.js.map +1 -1
  70. package/dist/src/mcpl/tool-signature.d.ts +1 -0
  71. package/dist/src/mcpl/tool-signature.d.ts.map +1 -1
  72. package/dist/src/mcpl/tool-signature.js +16 -11
  73. package/dist/src/mcpl/tool-signature.js.map +1 -1
  74. package/dist/src/mcpl/transport.d.ts +44 -21
  75. package/dist/src/mcpl/transport.d.ts.map +1 -1
  76. package/dist/src/mcpl/transport.js +283 -64
  77. package/dist/src/mcpl/transport.js.map +1 -1
  78. package/dist/src/mcpl/types.d.ts +17 -1
  79. package/dist/src/mcpl/types.d.ts.map +1 -1
  80. package/dist/src/mcpl/types.js.map +1 -1
  81. package/dist/src/module-registry.d.ts +32 -4
  82. package/dist/src/module-registry.d.ts.map +1 -1
  83. package/dist/src/module-registry.js +189 -25
  84. package/dist/src/module-registry.js.map +1 -1
  85. package/dist/src/modules/discord/discord-js-client.d.ts.map +1 -1
  86. package/dist/src/modules/discord/discord-js-client.js +24 -16
  87. package/dist/src/modules/discord/discord-js-client.js.map +1 -1
  88. package/dist/src/modules/sender-name.d.ts +5 -4
  89. package/dist/src/modules/sender-name.d.ts.map +1 -1
  90. package/dist/src/modules/sender-name.js +7 -5
  91. package/dist/src/modules/sender-name.js.map +1 -1
  92. package/dist/src/modules/workspace/disk-agreement.d.ts +16 -8
  93. package/dist/src/modules/workspace/disk-agreement.d.ts.map +1 -1
  94. package/dist/src/modules/workspace/disk-agreement.js +33 -12
  95. package/dist/src/modules/workspace/disk-agreement.js.map +1 -1
  96. package/dist/src/modules/workspace/index.d.ts +6 -3
  97. package/dist/src/modules/workspace/index.d.ts.map +1 -1
  98. package/dist/src/modules/workspace/index.js +61 -15
  99. package/dist/src/modules/workspace/index.js.map +1 -1
  100. package/dist/src/modules/workspace/observe.d.ts +9 -1
  101. package/dist/src/modules/workspace/observe.d.ts.map +1 -1
  102. package/dist/src/modules/workspace/observe.js +50 -10
  103. package/dist/src/modules/workspace/observe.js.map +1 -1
  104. package/dist/src/modules/workspace/reconcile.d.ts +11 -1
  105. package/dist/src/modules/workspace/reconcile.d.ts.map +1 -1
  106. package/dist/src/modules/workspace/reconcile.js +19 -8
  107. package/dist/src/modules/workspace/reconcile.js.map +1 -1
  108. package/dist/src/modules/workspace/types.d.ts +8 -0
  109. package/dist/src/modules/workspace/types.d.ts.map +1 -1
  110. package/dist/src/modules/workspace/types.js.map +1 -1
  111. package/dist/src/modules/workspace/watcher.d.ts +7 -0
  112. package/dist/src/modules/workspace/watcher.d.ts.map +1 -1
  113. package/dist/src/modules/workspace/watcher.js +7 -5
  114. package/dist/src/modules/workspace/watcher.js.map +1 -1
  115. package/dist/src/recovery/discord-awareness-outbox.d.ts.map +1 -1
  116. package/dist/src/recovery/discord-awareness-outbox.js +1 -9
  117. package/dist/src/recovery/discord-awareness-outbox.js.map +1 -1
  118. package/dist/src/supplied-text.d.ts +2 -0
  119. package/dist/src/supplied-text.d.ts.map +1 -1
  120. package/dist/src/supplied-text.js +16 -7
  121. package/dist/src/supplied-text.js.map +1 -1
  122. package/dist/src/tool-result-guard.js +1 -1
  123. package/dist/src/tool-result-guard.js.map +1 -1
  124. package/dist/src/tune-out/coordinator.d.ts +2 -20
  125. package/dist/src/tune-out/coordinator.d.ts.map +1 -1
  126. package/dist/src/tune-out/coordinator.js +175 -70
  127. package/dist/src/tune-out/coordinator.js.map +1 -1
  128. package/dist/src/tune-out/tools.d.ts +14 -2
  129. package/dist/src/tune-out/tools.d.ts.map +1 -1
  130. package/dist/src/tune-out/tools.js.map +1 -1
  131. package/dist/src/types/agent.d.ts +2 -1
  132. package/dist/src/types/agent.d.ts.map +1 -1
  133. package/dist/src/types/framework.d.ts +54 -15
  134. package/dist/src/types/framework.d.ts.map +1 -1
  135. package/dist/src/types/module.d.ts +42 -3
  136. package/dist/src/types/module.d.ts.map +1 -1
  137. package/dist/src/types/trace.d.ts +4 -3
  138. package/dist/src/types/trace.d.ts.map +1 -1
  139. package/package.json +3 -3
  140. package/src/agent.ts +90 -25
  141. package/src/api/mcp-server-core.ts +10 -3
  142. package/src/code-execution/isolate/render.ts +7 -6
  143. package/src/code-execution/isolate/scripts.ts +5 -4
  144. package/src/framework.ts +1145 -723
  145. package/src/gate/event-gate.ts +220 -145
  146. package/src/gate/recipe-reconcile.ts +7 -5
  147. package/src/host-presentation.ts +4 -7
  148. package/src/index.ts +1 -0
  149. package/src/inference-bounds.ts +111 -0
  150. package/src/line-reader.ts +22 -5
  151. package/src/mcpl/errors.ts +4 -0
  152. package/src/mcpl/inbound-source.ts +2 -2
  153. package/src/mcpl/inference-router.ts +67 -10
  154. package/src/mcpl/modern-connection.ts +83 -68
  155. package/src/mcpl/protocol-family.ts +37 -4
  156. package/src/mcpl/push-coalescer.ts +2 -7
  157. package/src/mcpl/references.ts +3 -4
  158. package/src/mcpl/server-connection.ts +30 -21
  159. package/src/mcpl/tool-signature.ts +18 -11
  160. package/src/mcpl/transport.ts +261 -60
  161. package/src/mcpl/types.ts +18 -1
  162. package/src/module-registry.ts +178 -25
  163. package/src/modules/discord/discord-js-client.ts +33 -29
  164. package/src/modules/sender-name.ts +8 -5
  165. package/src/modules/workspace/disk-agreement.ts +39 -15
  166. package/src/modules/workspace/index.ts +65 -14
  167. package/src/modules/workspace/observe.ts +51 -10
  168. package/src/modules/workspace/reconcile.ts +22 -8
  169. package/src/modules/workspace/types.ts +5 -0
  170. package/src/modules/workspace/watcher.ts +8 -6
  171. package/src/recovery/discord-awareness-outbox.ts +1 -11
  172. package/src/supplied-text.ts +17 -6
  173. package/src/tool-result-guard.ts +1 -1
  174. package/src/tune-out/coordinator.ts +187 -85
  175. package/src/tune-out/tools.ts +14 -2
  176. package/src/types/agent.ts +2 -1
  177. package/src/types/framework.ts +55 -15
  178. package/src/types/module.ts +42 -3
  179. package/src/types/trace.ts +4 -3
@@ -1 +1 @@
1
- {"version":3,"file":"scripts.js","sourceRoot":"","sources":["../../../../src/code-execution/isolate/scripts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAiB,SAAS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CAAC,CAAC,CAAC,EAAE,GAAG,aAAa,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,EAAE;QACnI,CAAC,CAAC,MAAM,CAAC,GAAG,KAAK,SAAS;YACxB,CAAC,CAAC,YAAY,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE;YAC5C,CAAC,CAAC,MAAM,CAAC,GAAG,KAAK,SAAS;gBACxB,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,gBAAgB,aAAa,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,0BAA0B;gBACrG,CAAC,CAAC,OAAO,CAAC;IAChB,OAAO,IAAI,UAAU,CAAC,MAAM,IAAI,QAAQ,iBAAiB,GAAG,sCAAsC,QAAQ,sBAAsB,CAAC;AACnI,CAAC;AAED,SAAS,QAAQ,CAAC,QAAgB,EAAE,WAAmB,EAAE,CAAS,EAAE,GAAW,EAAE,KAAa;IAC5F,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,MAAM,CAAC,CAAC;IAC3C,OAAO,IAAI,UAAU,CAAC,MAAM,IAAI,QAAQ,iCAAiC,OAAO,+BAA+B,CAAC,OAAO,GAAG,MAAM,UAAU,CAAC,WAAW,CAAC,EAAE,CAAC;AAC5J,CAAC"}
@@ -93,15 +93,16 @@ export interface HostModeStatus {
93
93
  activeTurnAgents: string[];
94
94
  /** Wakes that own provider admission while waiting for an in-flight
95
95
  * auxiliary call — no turn token yet, but a turn is one settle away. The
96
- * admission continuation rechecks quiesce and requeues them; `drained`
97
- * is false until it has. A parked continuation of a turn is counted here
98
- * and, as a turn alive, in `activeTurns` and `activeTurnAgents`. */
96
+ * admission continuation rechecks quiesce and provider holds, and requeues
97
+ * a wake either keeps from starting; `drained` is false until it has. A
98
+ * parked continuation of a turn is counted here and, as a turn alive, in
99
+ * `activeTurns` and `activeTurnAgents`. */
99
100
  parkedAdmissions: number;
100
101
  /** Inference requests waiting to start: queued (parked by the quiesce wake
101
102
  * gate while quiesced, or, while serving, until the scheduler's next pass
102
103
  * takes them), in a scheduler pass's hands, or held by a provider hold (an
103
104
  * acceleration or host hold, or a provider's stated wait). There, a start
104
- * that carries a turn on counts as the wakes merged into it. A start parked
105
+ * merged from several requests counts as those it took in. A start parked
105
106
  * on provider admission behind an auxiliary call counts once in
106
107
  * `parkedAdmissions` instead, however many wakes are merged into it.
107
108
  * Continuations of a turn (budget restart, tool results) and a held turn's
@@ -193,9 +194,15 @@ interface InferenceToolSnapshot {
193
194
  * schedule, jittered, 10 s doubling to 5 min (by default 13 tries, where
194
195
  * membrane's settings have 7: about 30 min).
195
196
  * - rate limited (429): the base schedule with at least 5 tries.
196
- * - any other retryable failure, a stream deadline on a sent request
197
- * included (membrane leaves those to its caller): the base schedule (by
198
- * default 3 tries, 1 s then 2 s).
197
+ * - a deadline expiry, which membrane leaves to its caller: a progress
198
+ * bound's cut (FrameworkConfig.inferenceBounds), the adapter's own
199
+ * watchdogs, the SDK's request timeout or a runtime's fetch timeout. The
200
+ * deadline schedule: by default 2 tries, 1 s apart, so one fresh call. For
201
+ * one, the framework's `attempt` counts that call's consecutive expiries,
202
+ * not the turn's other failures, so each call a deadline cuts gets its
203
+ * fresh call. Settings with no deadline schedule give it their base one.
204
+ * - any other retryable failure: the base schedule (by default 3 tries, 1 s
205
+ * then 2 s).
199
206
  * A provider's stated wait (`retryAfterMs`) is waited when it is longer than
200
207
  * the backoff, up to the schedule's ceiling, which by default is at least the
201
208
  * framework's own cap (PROVIDER_ACCELERATION_MAX_COOLDOWN_MS, ten minutes);
@@ -213,6 +220,13 @@ export declare class DefaultErrorPolicy implements ErrorPolicy {
213
220
  constructor(settings?: RetrySettings);
214
221
  onInferenceError(error: Error, _agentName: string, attempt: number): ErrorAction;
215
222
  }
223
+ /**
224
+ * For tests only: `framework`'s abandon takes `ms` as its grace in place of
225
+ * {@link ABANDON_GRACE_MS}. Set it only where the test holds every turn the
226
+ * abandon reaches past the grace, so no turn can end within it and a short
227
+ * grace only brings the abandon's report sooner.
228
+ */
229
+ export declare function setAbandonGraceForTests(framework: AgentFramework, ms: number): void;
216
230
  /**
217
231
  * The admission record on a stored message: it was held from the residents
218
232
  * by a policy epoch (`metadata.tuneOut = { epochId }`). ONE predicate for
@@ -414,9 +428,9 @@ export declare class AgentFramework {
414
428
  private store;
415
429
  private ownsStore;
416
430
  private stopPromise;
417
- private stopCompleted;
431
+ private stopState;
432
+ private closedStopFailure;
418
433
  private ownedStoreClosed;
419
- private ownedStoreManagersClosed;
420
434
  /** Whether the latest stop() got through its teardown with nothing failed:
421
435
  * every step and every wait up to and including the one on awareness
422
436
  * drains, whatever failed after that, in the storage work that finishes
@@ -432,8 +446,8 @@ export declare class AgentFramework {
432
446
  * promise: a stream it cancelled or an event loop still in a call; and a
433
447
  * stream whose cancel threw, which stop() doesn't wait for. A later
434
448
  * stop() waits for each again, beside what it finds, whatever has happened
435
- * since to the entry it was found under (a run's end removes its stream's,
436
- * a start() replaces the loop), so neither a budget nor a cancel that
449
+ * since to the entry it was found under (a run's end removes its stream's),
450
+ * so neither a budget nor a cancel that
437
451
  * threw lets the store close under work still running. Each leaves once it
438
452
  * settles. */
439
453
  private readonly leftRunning;
@@ -499,6 +513,9 @@ export declare class AgentFramework {
499
513
  private providerAccelerationLastRecovery;
500
514
  private providerAccelerationDefaultCooldownMs;
501
515
  private providerAccelerationJitterMs;
516
+ private inferenceBounds;
517
+ private readonly deadlineCuts;
518
+ private readonly freshCallsCut;
502
519
  private providerHoldHook;
503
520
  /** Provider waits (stated retry-after) per (agent, model), kept across restarts. */
504
521
  private providerWaits;
@@ -506,8 +523,6 @@ export declare class AgentFramework {
506
523
  private retryWaitWakers;
507
524
  private waitingTraceEveryMs;
508
525
  private providerAdmissionClosed;
509
- /** Invalidates framework turns still assembling when stop begins. */
510
- private lifecycleGeneration;
511
526
  /** Last time we reported stale (busy-requeued) inference requests, per agent. */
512
527
  private staleWarnAt;
513
528
  /** Per-agent last inference activity (epoch ms), for /healthz + doctor tooling. */
@@ -639,6 +654,7 @@ export declare class AgentFramework {
639
654
  private turnRearmMs;
640
655
  private turnRearms;
641
656
  private exhaustingRearms;
657
+ private rearmDeadlineCuts;
642
658
  private statedWaitRuns;
643
659
  /** N consecutive failed inferences ⇒ the agent is treated as hard-down and
644
660
  * escalated loudly to stderr. */
@@ -1119,9 +1135,7 @@ export declare class AgentFramework {
1119
1135
  * maintenance, event loop and operator operations, so a dump shows what
1120
1136
  * those waits are on, and before its modules and MCPL servers stop, so a
1121
1137
  * stop() whose teardown hangs, fails or times out doesn't keep it listed.
1122
- * With none in the set, one line says no framework is running. A framework
1123
- * started again after a completed stop() doesn't rejoin; whether that
1124
- * lifecycle is supported is #315.
1138
+ * With none in the set, one line says no framework is running.
1125
1139
  *
1126
1140
  * One listener serves the process, installed by the first create() to
1127
1141
  * reach the join and kept: once a process's last SIGUSR2 listener is
@@ -1134,18 +1148,35 @@ export declare class AgentFramework {
1134
1148
  private printDiagnostics;
1135
1149
  /**
1136
1150
  * Start the event loop. A start() on a running framework does nothing.
1137
- * Refused, with an error, from a stop() call until that stop() settles,
1138
- * since that stop would wait on the lifecycle a start() begins, or tear it
1139
- * down under it. What a start() after a settled stop() should do is #315's
1140
- * question.
1151
+ * A stop ends its instance (#315): once a stop() is admitted, start() and
1152
+ * addModule() are refused with an error, for good. While that stop() runs,
1153
+ * the error says the framework is stopping. Once it has settled, the error
1154
+ * says what to do: create a new AgentFramework on the store, and after a
1155
+ * failed stop(), call stop() again first, until one resolves. When a
1156
+ * failed stop() left its owned store closed, so that it can't be tried
1157
+ * again, the error carries that failure as its cause.
1158
+ *
1159
+ * A new instance on the store keeps what the store holds. With the
1160
+ * heartbeat on and the same heartbeat state file (heartbeat.statePath, or
1161
+ * its default), it keeps the heartbeat's schedule as it reads it from that
1162
+ * file: a tick or a reminder that fell due meanwhile fires once, shortly
1163
+ * after it starts. What an instance holds only in memory is lost with it,
1164
+ * as on a process restart: an agent's sleep and its wake, a self-wake, the
1165
+ * inference requests still queued (a budget restart, a heartbeat's wake, a
1166
+ * nudge), a re-armed turn's wait and count, and the redo stack. #627 is
1167
+ * about keeping a sleep and a self-wake across a restart. To pause and
1168
+ * resume one framework in place, use quiesce() and resume().
1141
1169
  */
1142
1170
  start(): void;
1143
1171
  /**
1144
- * Stop the event loop. Until it settles, start() and addModule() are
1145
- * refused. Each step of the teardown runs whatever an earlier one did: one
1146
- * that throws, such as a host stream's cancel(), fails the stop() once the
1147
- * rest has run. When a step or a wait up to and including
1148
- * the wait on awareness drains fails or times out, storage stays open and
1172
+ * Stop the event loop, and with it this framework, for good: once a stop()
1173
+ * is admitted, start() and addModule() are refused, as start() says. A
1174
+ * stop() whose budget is refused, which it rejects with a RangeError, is
1175
+ * not admitted and changes nothing. Each step of the teardown runs
1176
+ * whatever an earlier one did: one that throws, such as a host stream's
1177
+ * cancel(), fails the stop() once the rest has run. When a step or a wait
1178
+ * up to and including the wait on awareness drains fails or times out,
1179
+ * storage stays open and
1149
1180
  * stop() can be called again; one that fails after it, in the storage work
1150
1181
  * that finishes the stop, fails the stop() without keeping storage open.
1151
1182
  * A timed-out wait lets teardown go on while what it waited for may still
@@ -1153,7 +1184,10 @@ export declare class AgentFramework {
1153
1184
  * @param teardownTimeoutMs Optional budget for each of stop()'s waits, in
1154
1185
  * turn: on the streams it cancels, on maintenance in flight (a pass or an
1155
1186
  * over-budget drain kick), on the event loop, on an operator's operations
1156
- * already running, on modules and MCPL together, then on Discord awareness
1187
+ * already running, on modules and MCPL (its servers and the inference
1188
+ * requests they made) together, where a module whose start() is still
1189
+ * running counts until that start() has settled and its stop() returned,
1190
+ * then on Discord awareness
1157
1191
  * drains, which send nothing once stop() has begun, recording the call the
1158
1192
  * close ended. With a budget, a stop() can take up to six of them, besides
1159
1193
  * the withheld-spill deadline of a guard's write still under way. Omit to
@@ -1176,9 +1210,7 @@ export declare class AgentFramework {
1176
1210
  * dropped, though a write the stream already had under way can still
1177
1211
  * land in the run's namespace after them.
1178
1212
  * - an event loop still in a call, such as a module's onProcess, finishes
1179
- * that call and the rest of its iteration, and then exits. A start()
1180
- * made once that stop() has failed runs its own loop beside that last
1181
- * iteration.
1213
+ * that call and the rest of its iteration, and then exits.
1182
1214
  * - a later stop() waits again, within its own budget, for any stream or
1183
1215
  * loop this one left running, so the store never closes under it.
1184
1216
  *
@@ -1191,14 +1223,7 @@ export declare class AgentFramework {
1191
1223
  * entries, and once it has left, its stream's late events are dropped.
1192
1224
  */
1193
1225
  stop(teardownTimeoutMs?: number | undefined): Promise<void>;
1194
- /** What start() and addModule() pass before either begins work of a
1195
- * lifecycle. A stop() still running refuses both, from the moment it
1196
- * claims its attempt until that attempt settles. A failed stop() has
1197
- * cleared its attempt, unless it closed an owned store, or the context
1198
- * managers it closes before that store, which are refused first. A
1199
- * completed stop() is cleared, and the call goes on as before;
1200
- * whether a lifecycle should begin after a stop() is #315's question. */
1201
- private resetCompletedStop;
1226
+ private refuseOnceStopped;
1202
1227
  /** Register before invoking the body, so the set holds the operation for
1203
1228
  * its whole life: its synchronous trace callbacks can reenter stop(), and
1204
1229
  * that stop() must find it. Invocation stays in this stack, preserving
@@ -1390,6 +1415,7 @@ export declare class AgentFramework {
1390
1415
  * inference on it. True = extended in place (held requests stay held). */
1391
1416
  private extendHostProviderHold;
1392
1417
  private holdProviderAcceleration;
1418
+ private takeAsTransient;
1393
1419
  private rearmExhaustedTurn;
1394
1420
  /**
1395
1421
  * A provider's stated wait on a turn that doesn't own provider admission:
@@ -1547,6 +1573,7 @@ export declare class AgentFramework {
1547
1573
  * it, or, through the deprecated queue handle, without the trace.
1548
1574
  */
1549
1575
  private pushModuleEvent;
1576
+ private dropRetiredModuleEvent;
1550
1577
  /**
1551
1578
  * Add a trace event listener for observability.
1552
1579
  */
@@ -1567,14 +1594,20 @@ export declare class AgentFramework {
1567
1594
  offTrace(listener: TraceEventListener): void;
1568
1595
  private removeTraceRegistration;
1569
1596
  /**
1570
- * Add a module at runtime. Refused, with a rejection, while a stop() is
1571
- * still running: a module added then would either be stopped by that stop
1572
- * or, once the stop has taken its list of modules to stop, stay started
1573
- * past it.
1597
+ * Add a module at runtime. Refused, with a rejection, once a stop() has
1598
+ * been admitted, before anything else is checked: while that stop() runs,
1599
+ * a module added then would either be stopped by it or, once it has taken
1600
+ * its list of modules to stop, stay started past it; once it has settled,
1601
+ * the framework has stopped for good, as start() says. A stop() admitted
1602
+ * while the module's start() runs stops the module once that start() has
1603
+ * settled; if that start() fulfils, this rejects the same way then, with
1604
+ * no `module:added`, and if it rejects, this rejects with its error.
1574
1605
  */
1575
1606
  addModule(module: Module): Promise<void>;
1576
1607
  /**
1577
- * Remove a module at runtime.
1608
+ * Remove a module at runtime. A module whose start() is still running is
1609
+ * stopped once that start() has settled; this waits for that and for its
1610
+ * stop(), with no time limit.
1578
1611
  */
1579
1612
  removeModule(name: string): Promise<void>;
1580
1613
  /**
@@ -1644,7 +1677,7 @@ export declare class AgentFramework {
1644
1677
  * Get all available tools from all modules and MCPL servers.
1645
1678
  */
1646
1679
  getAllTools(): import('./types/index.js').ToolDefinition[];
1647
- /** The registered workspace module, if any (used by save_image). */
1680
+ /** The registered workspace module, if any (used by save_recent_image). */
1648
1681
  private getWorkspaceModule;
1649
1682
  /** RFC-005 host-mediated reference fetcher (lazy; needs server configs +
1650
1683
  * a read-write workspace mount without an include for storage). */
@@ -1775,15 +1808,11 @@ export declare class AgentFramework {
1775
1808
  private stallSkips;
1776
1809
  /** See WITHHELD_SPILL_DEADLINE_MS; an instance field so tests can shorten it. */
1777
1810
  private withheldSpillDeadlineMs;
1778
- /** The lifecycle generation whose stop() has let the running annotations
1779
- * finish: a withheld original is then no longer written to a workspace
1780
- * that is stopping, and its stub names the audit record. A start() after
1781
- * that stop() has finished has a generation of its own, so the spill gate
1782
- * is open again for an instance kept with a store it doesn't own and that
1783
- * is still open (start() doesn't restore stopped modules or MCPL
1784
- * connections, and refuses an owned store that stop() closed). A start()
1785
- * made while a stop() is still running is refused. */
1786
- private guardSpillsClosedFor;
1811
+ /** Set once a stop() has let the running annotations finish, and cleared
1812
+ * as each stop() begins: while set, a withheld original is no longer
1813
+ * written to a workspace that is stopping, and its stub names the audit
1814
+ * record. */
1815
+ private guardSpillsClosed;
1787
1816
  /** A new agent's guard: its persisted setting, the tool-results spill its
1788
1817
  * withheld originals are written to, and the set stop() waits on
1789
1818
  * (agent-framework #277). The setting is read from framework/state's
@@ -2026,8 +2055,9 @@ export declare class AgentFramework {
2026
2055
  * memory-only: they land within the turn, at a tool boundary or at its
2027
2056
  * end, and a crash before then loses them. That window runs to the turn's
2028
2057
  * end for a message held there and what is queued behind it, and, on a
2029
- * stream that declares it can't carry injected messages (membrane's XML
2030
- * prefill path, from 0.6.0), for every message deferred during the turn.
2058
+ * stream that doesn't declare it carries injected messages (membrane's XML
2059
+ * prefill path declares it can't), for every message deferred during the
2060
+ * turn.
2031
2061
  *
2032
2062
  * A write that fails, or a queue over the cap, which writes nothing,
2033
2063
  * leaves the record as it last held it, except that store only, a write
@@ -2421,8 +2451,9 @@ export declare class AgentFramework {
2421
2451
  * **Inheritance.** `mode: 'shared'` (the default) gives the child the
2422
2452
  * parent's messages and fold state through shared storage: nothing is
2423
2453
  * copied, the child folds with the parent's memory tree, and neither can
2424
- * alter what the other reads. It needs branch-bound store handles and is
2425
- * refused, not silently downgraded, where they are missing. `mode: 'copy'`
2454
+ * alter what the other reads. It needs a store that supports derivation
2455
+ * (`ContextManager.supportsDerivation`), and is refused, not silently
2456
+ * downgraded, without one. `mode: 'copy'`
2426
2457
  * is the historical mechanism — the parent's compiled context re-added as
2427
2458
  * the child's own messages — and works everywhere.
2428
2459
  *
@@ -2635,6 +2666,7 @@ export declare class AgentFramework {
2635
2666
  * name-keyed state); any other agent is torn down here.
2636
2667
  */
2637
2668
  private teardownEndedAgent;
2669
+ private forgetFailureAccounting;
2638
2670
  /**
2639
2671
  * Everything the process holds for a live, non-ephemeral agent that has
2640
2672
  * ended, released once, on every path an agent ends by — stopAgent, the
@@ -2732,15 +2764,16 @@ export declare class AgentFramework {
2732
2764
  private recordEphemeralToolCalls;
2733
2765
  /**
2734
2766
  * A start dropped before its stream sends anything (its agent was replaced,
2735
- * or stop() closed admission or ended the lifecycle the start began in)
2736
- * ends the logical turn it was running. stop() ends every open turn
2737
- * (openLogical), but a fresh start that awaited its batches' assembly
2738
- * across a stop() reaches its routing after it and opens its turn. That
2739
- * turn would then stay open, and the agent's first start after a restart
2740
- * would continue the dropped turn's routing. The identity check leaves any
2741
- * other turn open.
2767
+ * or stop() closed admission) ends the logical turn it was running. stop()
2768
+ * ends every open turn (openLogical), but a fresh start that awaited its
2769
+ * batches' assembly across a stop() reaches its routing after it and opens
2770
+ * its turn. That turn would then stay open, and the next start of the
2771
+ * agent's name would continue the dropped turn's routing. The identity
2772
+ * check leaves any other turn open.
2742
2773
  */
2743
2774
  private endDroppedTurn;
2775
+ private pinTurnInputs;
2776
+ private releaseTurnInputs;
2744
2777
  /** A logical turn's end, for every agent: it closes the agent's open
2745
2778
  * logical turn when it is the settling stream's own (openLogical), and
2746
2779
  * settles an active ephemeral run. The run's tool-call count comes from
@@ -2784,6 +2817,7 @@ export declare class AgentFramework {
2784
2817
  private static readonly FOCUS_TOOL;
2785
2818
  /** Synthesized sleep/wake tool definitions (present when a gate is wired). */
2786
2819
  private static readonly SLEEP_TOOLS;
2820
+ private static readonly WAKE_ADD_RULE_FIELDS;
2787
2821
  /** Synthesized wake-rule tools: add/remove a gate.json policy at runtime.
2788
2822
  * Present when a gate is wired. They write validated policies into the
2789
2823
  * hot-reloaded gate.json (same validation as load), so a rule takes effect
@@ -2798,14 +2832,14 @@ export declare class AgentFramework {
2798
2832
  /** Synthesized drafts tool — present whenever MCPL channels are
2799
2833
  * configured. A resident's held drafts (src/prose-drafts.ts): plain speech
2800
2834
  * that was not sent, never published except by its resident's resend, and
2801
- * kept as that module's retention says. Nullable
2802
- * fields, cast like save_recent_image's: a caller whose provider presents
2803
- * every property as required can still say "not in use". */
2835
+ * kept as that module's retention says. Its optional fields are nullable,
2836
+ * as save_recent_image's selectors are: a caller whose provider presents
2837
+ * every property as required can still say "not in use" (fieldInUse). */
2804
2838
  private static readonly DRAFTS_TOOL;
2805
- /** Synthesized save_image tool — present when a workspace module is
2839
+ /** Synthesized save_recent_image tool — present when a workspace module is
2806
2840
  * registered. Lets the agent persist an image it has already seen in its
2807
2841
  * own context (Discord attachments arrive inlined as base64 and are
2808
- * otherwise unreachable as files). */
2842
+ * otherwise unreachable as files). Its three selectors are nullable. */
2809
2843
  private static readonly SAVE_IMAGE_TOOL;
2810
2844
  /** Synthesized fetch_reference tool — RFC-005 on-demand dereference.
2811
2845
  * Present when a workspace module is registered (storage target). */
@@ -3644,7 +3678,8 @@ export declare class AgentFramework {
3644
3678
  * placed in its agent's deferred queue (wakeToRead), at `readsDeferredWrite`,
3645
3679
  * marked ambient when every notice the render folds was (`allAmbient`). */
3646
3680
  private queueCoalescedWakes;
3647
- /** Withdraw unstarted wakes whose sole cause is this subject (§4.2). */
3681
+ /** Withdraw unstarted wakes whose sole cause is this subject (§4.2), and
3682
+ * a merged start whose every request is withdrawn. */
3648
3683
  private cancelCoalescedWakes;
3649
3684
  /**
3650
3685
  * A placement in the deferred queue is upgraded in place once the flush has
@@ -4525,9 +4560,8 @@ export declare class AgentFramework {
4525
4560
  * gets inference:aborted with `reason`, and lastInference records its end
4526
4561
  * as driveStream's would, when the record is still this turn's. Nothing of
4527
4562
  * the kind when another turn of this agent's name holds the turn token (one
4528
- * begun after a stop and start, or by a replacement agent object): the
4529
- * event and the record carry only the name, so this frame's would end that
4530
- * newer turn instead.
4563
+ * begun by a replacement agent object): the event and the record carry only
4564
+ * the name, so this frame's would end that newer turn instead.
4531
4565
  */
4532
4566
  private abortDroppedTurn;
4533
4567
  /**
@@ -4596,7 +4630,11 @@ export declare class AgentFramework {
4596
4630
  private driveStream;
4597
4631
  /**
4598
4632
  * Execute a tool call and return the result.
4599
- * Routes to the appropriate handler (module registry or MCPL).
4633
+ * Routes it where the agent's own call of the name goes: to the
4634
+ * framework's own tools the agent has (agent_settings, the workspace and
4635
+ * gate tools, think, journal, prose_help and the rest), the channel tools,
4636
+ * MCPL or the module registry. skip_reply, which ends the turn it's called
4637
+ * in, is refused, since this call isn't made in one.
4600
4638
  * Its one caller in the framework is the operator's puppet
4601
4639
  * (puppetToolCall), which puts the agent's inline cap on the call as
4602
4640
  * resultMaxChars; a host may call it as well.
@@ -4637,8 +4675,11 @@ export declare class AgentFramework {
4637
4675
  * wire ordering. For its own duration the puppet HOLDS the turn-alive
4638
4676
  * marker (wakes requeue, cross-turn writers defer), so a wake landing
4639
4677
  * during the tool's execution cannot start a turn underneath the pair.
4640
- * - Refused for tools outside the agent's own surface (canUseTool): the
4641
- * stored pair must be an act the agent could genuinely have taken.
4678
+ * - Refused for tools outside the agent's own surface (the tools it may
4679
+ * call, availableToolsForPresentation), and for skip_reply, by name or
4680
+ * through a toolsets--act that reaches it, which ends the turn it's
4681
+ * called in: the stored pair must be an act the agent could genuinely
4682
+ * have taken.
4642
4683
  * - The call executes FOR REAL through the shared dispatch (MCPL,
4643
4684
  * channel tools, utils, modules) with the agent's provenance — a
4644
4685
  * puppeted walk_to actually moves the avatar.
@@ -5096,6 +5137,9 @@ export declare class AgentFramework {
5096
5137
  * (`refusedHere`) counts as one the list refuses.
5097
5138
  */
5098
5139
  private roundCallOf;
5140
+ private toolRoute;
5141
+ private pushToolResult;
5142
+ private awaitedToolAnswer;
5099
5143
  /**
5100
5144
  * Dispatch a call the agent made. `turnId` is the turn it was made in
5101
5145
  * (TurnRouting.turnId), as its caller knows it: a model's call, the turn
@@ -5481,11 +5525,9 @@ export declare class AgentFramework {
5481
5525
  * at a tool boundary whose stream declares it carries the messages
5482
5526
  * injected there (markContextConsumed). So a notice such a stream carried
5483
5527
  * is under it. One a boundary stored without sending (a turn a tool ended,
5484
- * a budget restart) is above it, and so is one injected into a stream that
5485
- * doesn't declare it carries injections, which may have dropped it:
5486
- * counted as unread, it goes to the primary even if the agent heard it,
5487
- * rather than to no one where the stream dropped it. null when the window
5488
- * can't be read, which is logged.
5528
+ * a budget restart, the direct API's boundary, which has no stream) is
5529
+ * above it until a compile sends it, and counts as unread. null when the
5530
+ * window can't be read, which is logged.
5489
5531
  */
5490
5532
  private releasedWindow;
5491
5533
  /**
@@ -6277,9 +6319,10 @@ export declare class AgentFramework {
6277
6319
  private runDisconnectMcplServer;
6278
6320
  /**
6279
6321
  * Restart an MCPL server at runtime: disconnect, then reconnect with the
6280
- * same (or an updated) config. This actually respawns a stdio child —
6281
- * unlike `reconnect: true`, which only retries after transport-level
6282
- * failures. Throws if the server has no stored config and none is given.
6322
+ * same (or an updated) config. This respawns a stdio child at once,
6323
+ * whatever its state; `reconnect: true` spawns a fresh child only after
6324
+ * the connection fails or its child exits. Throws if the server has no
6325
+ * stored config and none is given.
6283
6326
  * What its connect would refuse is refused before the running server is
6284
6327
  * torn down. Until the connect, a connect or a restart started meanwhile
6285
6328
  * is refused the id and the tool prefix the restart moves the server to,
@@ -6594,11 +6637,6 @@ export declare class AgentFramework {
6594
6637
  * gate), traced. Callers apply it; nothing downstream re-asks.
6595
6638
  */
6596
6639
  private admitInbound;
6597
- /**
6598
- * Make delivered messages durable now, including those the delivery left
6599
- * in the deferred queue: a tune-out release flips durable epoch state
6600
- * first, so its dump must not be lost to a crash in between (#232 gap 6).
6601
- */
6602
6640
  private commitDeliveries;
6603
6641
  /** The history-reading tool the primary resident actually has, if any (#232 gap 11). */
6604
6642
  private residentHistoryTool;
@@ -6623,10 +6661,9 @@ export declare class AgentFramework {
6623
6661
  * every sibling in the round to settle; if one never does, fail closed
6624
6662
  * rather than trust an index the batch may still change. Sibling saves
6625
6663
  * produce no images and are not waited on (two saves in one batch would
6626
- * otherwise deadlock into a double timeout). A script's own calls
6627
- * (`pytc-…`) skip the barrier: the batch's pending siblings include the
6628
- * code_execution call running that script, so waiting on them would wait
6629
- * on itself.
6664
+ * otherwise deadlock into a double timeout). Only the round's own calls
6665
+ * wait: a call that isn't among its pending calls, a script's (`pytc-…`)
6666
+ * or an awaited call's, counts the images the agent has now.
6630
6667
  */
6631
6668
  private awaitSiblingToolCalls;
6632
6669
  /**