@tangle-network/agent-runtime 0.252.1 → 0.254.1

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 (59) hide show
  1. package/dist/{activation-CXrrtB5m.js → activation-Btw2npV2.js} +2 -2
  2. package/dist/{activation-CXrrtB5m.js.map → activation-Btw2npV2.js.map} +1 -1
  3. package/dist/{activation-CVMjsBM2.d.ts → activation-Cus2oZaT.d.ts} +2 -2
  4. package/dist/agent.d.ts +2 -2
  5. package/dist/agent.js +2 -2
  6. package/dist/{coordination-driver-D_LHrYiF.js → coordination-driver-Ct2hwxe6.js} +6 -5
  7. package/dist/coordination-driver-Ct2hwxe6.js.map +1 -0
  8. package/dist/{delegate-C8qzIpfB.js → delegate-DZZxeNKi.js} +2 -2
  9. package/dist/{delegate-C8qzIpfB.js.map → delegate-DZZxeNKi.js.map} +1 -1
  10. package/dist/durable.d.ts +2 -2
  11. package/dist/durable.js +4 -2
  12. package/dist/durable.js.map +1 -1
  13. package/dist/{graph-xWtpPhOj.js → graph-CP0OGyFP.js} +11 -5
  14. package/dist/graph-CP0OGyFP.js.map +1 -0
  15. package/dist/{improvement-cycle-blUuLwtN.js → improvement-cycle-D0Os0Hg_.js} +3 -3
  16. package/dist/{improvement-cycle-blUuLwtN.js.map → improvement-cycle-D0Os0Hg_.js.map} +1 -1
  17. package/dist/{index-BOyxiPdv.d.ts → index-DC_zQGpn.d.ts} +47 -5
  18. package/dist/index.d.ts +6 -6
  19. package/dist/index.js +7 -7
  20. package/dist/intelligence.d.ts +3 -3
  21. package/dist/intelligence.js +3 -3
  22. package/dist/kernel.d.ts +4 -4
  23. package/dist/kernel.js +8 -8
  24. package/dist/{loop-runner-bin-HOQO-Bc5.js → loop-runner-bin-BA7RtYGu.js} +3 -3
  25. package/dist/{loop-runner-bin-HOQO-Bc5.js.map → loop-runner-bin-BA7RtYGu.js.map} +1 -1
  26. package/dist/{loop-runner-bin-CEjfP-9b.d.ts → loop-runner-bin-BMcM1Nhf.d.ts} +3 -3
  27. package/dist/loop-runner-bin.d.ts +1 -1
  28. package/dist/loop-runner-bin.js +1 -1
  29. package/dist/mcp/bin.js +3 -3
  30. package/dist/mcp/index.d.ts +5 -5
  31. package/dist/mcp/index.js +4 -4
  32. package/dist/{openai-tools-8E1xkqPd.d.ts → openai-tools-BsqD1_Zr.d.ts} +2 -2
  33. package/dist/profiles.d.ts +2 -2
  34. package/dist/{provision-supervisor-D72s82K_.js → provision-supervisor-4e3sTnHl.js} +24 -6
  35. package/dist/provision-supervisor-4e3sTnHl.js.map +1 -0
  36. package/dist/{runtime-DuE9T9fQ.js → runtime-CthBzf7g.js} +9 -8
  37. package/dist/runtime-CthBzf7g.js.map +1 -0
  38. package/dist/{server-BRcoetaI.js → server-2qhN_mFT.js} +3 -3
  39. package/dist/{server-BRcoetaI.js.map → server-2qhN_mFT.js.map} +1 -1
  40. package/dist/{stream-agent-turn-vHFw9Cjl.d.ts → stream-agent-turn-DRTFLphI.d.ts} +2 -2
  41. package/dist/{structural-rollout-DwklJEOU.js → structural-rollout-BIBxgW64.js} +4 -3
  42. package/dist/{structural-rollout-DwklJEOU.js.map → structural-rollout-BIBxgW64.js.map} +1 -1
  43. package/dist/{substrate-Dtw3KmTi.d.ts → substrate-BToFBpfh.d.ts} +2 -2
  44. package/dist/{supervise-IBkXPk1z.js → supervise-ByEnDAOW.js} +56 -19
  45. package/dist/supervise-ByEnDAOW.js.map +1 -0
  46. package/dist/{supervisor-BlDW3u0y.js → supervisor-CJyzUjc7.js} +705 -166
  47. package/dist/supervisor-CJyzUjc7.js.map +1 -0
  48. package/dist/testing.d.ts +2 -2
  49. package/dist/testing.js +12 -12
  50. package/dist/tui/index.d.ts +1 -1
  51. package/dist/tui/index.js +1 -1
  52. package/dist/{types-DKeaex8Q.d.ts → types-ChewVlpE.d.ts} +120 -18
  53. package/package.json +5 -5
  54. package/dist/coordination-driver-D_LHrYiF.js.map +0 -1
  55. package/dist/graph-xWtpPhOj.js.map +0 -1
  56. package/dist/provision-supervisor-D72s82K_.js.map +0 -1
  57. package/dist/runtime-DuE9T9fQ.js.map +0 -1
  58. package/dist/supervise-IBkXPk1z.js.map +0 -1
  59. package/dist/supervisor-BlDW3u0y.js.map +0 -1
package/dist/testing.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { $a as SuperviseTestOptions, $t as runGraphWithTestBrain, Ao as supervisorAgentWithTestBrain, Tn as driverAgent, Yt as RunGraphTestOptions, to as superviseWithTestBrain, wn as DriverAgentOptions, xo as SupervisorAgentTestDeps } from "./index-BOyxiPdv.js";
2
- import { On as ToolLoopCallContext, kn as ToolLoopChat } from "./stream-agent-turn-vHFw9Cjl.js";
1
+ import { $a as SuperviseTestOptions, $t as runGraphWithTestBrain, Ao as supervisorAgentWithTestBrain, Tn as driverAgent, Yt as RunGraphTestOptions, to as superviseWithTestBrain, wn as DriverAgentOptions, xo as SupervisorAgentTestDeps } from "./index-DC_zQGpn.js";
2
+ import { On as ToolLoopCallContext, kn as ToolLoopChat } from "./stream-agent-turn-DRTFLphI.js";
3
3
  import { AgentImprovementProposal, AgentProfile, AgentProfileImprovementMeasuredComparison, SandboxSizePreset } from "@tangle-network/agent-interface";
4
4
  //#region src/testing/index.d.ts
5
5
  /** A proposal produced by Runtime's opaque profile-improvement path. */
package/dist/testing.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import { E as immutableCandidateValue, S as canonicalCandidateDigest$1 } from "./workspace-archive-DQGFwvM6.js";
2
- import { f as verifyAgentImprovementProposal } from "./improvement-cycle-blUuLwtN.js";
2
+ import { f as verifyAgentImprovementProposal } from "./improvement-cycle-D0Os0Hg_.js";
3
3
  import { C as applyExactAgentProfileDiff, j as parseExactAgentProfile } from "./prepare-RuaAclli.js";
4
- import { p as supervisorAgentWithTestBrain, r as superviseWithTestBrain } from "./supervise-IBkXPk1z.js";
5
- import { r as driverAgent } from "./coordination-driver-D_LHrYiF.js";
6
- import { i as runGraphWithTestBrain } from "./graph-xWtpPhOj.js";
4
+ import { i as superviseWithTestBrain, m as supervisorAgentWithTestBrain } from "./supervise-ByEnDAOW.js";
5
+ import { r as driverAgent } from "./coordination-driver-Ct2hwxe6.js";
6
+ import { i as runGraphWithTestBrain } from "./graph-CP0OGyFP.js";
7
7
  import { SANDBOX_SIZE_PRESET_NAMES } from "@tangle-network/agent-interface";
8
8
  //#region src/testing/fixtures/agent-improvement-proposal.json
9
9
  var agent_improvement_proposal_default = {
10
10
  changedSurfaces: ["prompt"],
11
- digest: "sha256:b2edfb796701b9893a661b6ab904763530c0ae81325d2730d1d3f4ff687e6b2f",
11
+ digest: "sha256:11d872832712a2452ad71a2f792c80db7f3aa6358165cbfc3f269ad6f1d0a39a",
12
12
  evaluation: {
13
13
  "decision": {
14
14
  "contributingChecks": [
@@ -4579,7 +4579,7 @@ var agent_improvement_proposal_default = {
4579
4579
  ],
4580
4580
  "metadata": {
4581
4581
  "fixture": "agent-improvement-proposal",
4582
- "runtimeVersion": "0.252.1"
4582
+ "runtimeVersion": "0.254.1"
4583
4583
  },
4584
4584
  "objectives": [
4585
4585
  {
@@ -4690,8 +4690,8 @@ var agent_improvement_proposal_default = {
4690
4690
  "baselineContentHash": "sha256:5c21ee53e513fc604cb09754e21c392b24a424da0ef37dbf8f1ee4a8a0b08f09",
4691
4691
  "candidateContentHash": "sha256:60fcbb1c728194bd51d7d19cb732d1c3f1881dce7e0a6266b41c8b98cfd65693",
4692
4692
  "kind": "agent-eval-loop",
4693
- "recordDigest": "sha256:bbd2270629f270f7ca29570c02d9a698a6b7cd13b728aa4aea222a0ea6953967",
4694
- "runId": "agent-runtime-0.252.1-proposal-fixture",
4693
+ "recordDigest": "sha256:52dc3eb2d4f9b9bc89bc8682d3325dfe8933132ad07a401768a3d1b0725b6e7f",
4694
+ "runId": "agent-runtime-0.254.1-proposal-fixture",
4695
4695
  "schema": "agent-candidate-experiment"
4696
4696
  }
4697
4697
  },
@@ -4714,13 +4714,13 @@ var agent_improvement_proposal_default = {
4714
4714
  }],
4715
4715
  kind: "agent-improvement-proposal",
4716
4716
  proposedAt: "2026-07-10T01:00:00.000Z",
4717
- runId: "agent-runtime-0.252.1-proposal-fixture"
4717
+ runId: "agent-runtime-0.254.1-proposal-fixture"
4718
4718
  };
4719
4719
  //#endregion
4720
4720
  //#region src/testing/fixtures/agent-profile-improvement-proposal.json
4721
4721
  var agent_profile_improvement_proposal_default = {
4722
4722
  changedSurfaces: ["prompt", "skills"],
4723
- digest: "sha256:4d297eac359030ffc004c891beabff1216e5ba120d5e22bd9b10bdaff03c852c",
4723
+ digest: "sha256:9cb7e5fd4a53988fb9c89c026a9705e03ac4b5581ba79da89df014f5229f26ef",
4724
4724
  evaluation: {
4725
4725
  "decision": {
4726
4726
  "contributingChecks": [
@@ -6354,7 +6354,7 @@ var agent_profile_improvement_proposal_default = {
6354
6354
  ],
6355
6355
  "metadata": {
6356
6356
  "fixture": "agent-profile-improvement-proposal",
6357
- "runtimeVersion": "0.252.1"
6357
+ "runtimeVersion": "0.254.1"
6358
6358
  },
6359
6359
  "objectives": [
6360
6360
  {
@@ -6465,7 +6465,7 @@ var agent_profile_improvement_proposal_default = {
6465
6465
  "baselineContentHash": "sha256:21c495a37c418c10bde64fbaa188beddeed31f1f051ea60a6a6582a9ee0db704",
6466
6466
  "candidateContentHash": "sha256:103f77bc8481601eef1ad5fe6ba84a40dffabc3a44f421f8c8559121edab84e9",
6467
6467
  "kind": "agent-eval-loop",
6468
- "recordDigest": "sha256:8a2a800ae6ba0ff1ae65955a0f711b3dc2bb4f10a4fe613ded8cc50b17549fe0",
6468
+ "recordDigest": "sha256:9396f66a07c78b5061d9502ec01e30834ce180ab9eac8bdf577f1c3c913571f7",
6469
6469
  "runId": "profile-improvement-1",
6470
6470
  "schema": "agent-profile-improvement-experiment"
6471
6471
  }
@@ -1,4 +1,4 @@
1
- import { Ct as ProvisionedSupervisor, St as ProvisionSupervisorRequest, Tt as provisionSupervisor, wt as SupervisorCleanupReceipt, xt as ProvisionSupervisorConnection } from "../index-BOyxiPdv.js";
1
+ import { Ct as ProvisionedSupervisor, St as ProvisionSupervisorRequest, Tt as provisionSupervisor, wt as SupervisorCleanupReceipt, xt as ProvisionSupervisorConnection } from "../index-DC_zQGpn.js";
2
2
  //#region src/tui/top-app.d.ts
3
3
  /**
4
4
  * The interactive side of the supervisor-run TUI: a keypress/mouse loop over the frames
package/dist/tui/index.js CHANGED
@@ -1,3 +1,3 @@
1
- import { t as provisionSupervisor } from "../provision-supervisor-D72s82K_.js";
1
+ import { t as provisionSupervisor } from "../provision-supervisor-4e3sTnHl.js";
2
2
  import { a as renderTopFrameWithLayout, i as renderTopFrame, n as runTopApp, r as loadTopSnapshot, t as renderTopOnce } from "../top-app-VAOrBskv.js";
3
3
  export { loadTopSnapshot, provisionSupervisor, renderTopFrame, renderTopFrameWithLayout, renderTopOnce, runTopApp };
@@ -2848,6 +2848,11 @@ interface Executor<Out> {
2848
2848
  /** Why the resource could not be proven destroyed. Present only with `destroyed: false`, so a
2849
2849
  * caller reporting an unconfirmed teardown can name the cause instead of a bare flag. */
2850
2850
  detail?: string;
2851
+ /** With `destroyed: false`: asking again cannot change this answer, because the executor
2852
+ * keeps the resource on purpose (a workspace preserved for lack of a verified receipt, an
2853
+ * execution held for reconciliation) or cannot destroy it at all. The settlement retry stops
2854
+ * asking. */
2855
+ permanent?: boolean;
2851
2856
  }>;
2852
2857
  /**
2853
2858
  * Optional acknowledgement window for a remote cleanup requested as `'brutalKill'`.
@@ -2867,6 +2872,13 @@ interface Executor<Out> {
2867
2872
  * `destroyed: true` receipt the executor's `teardown` must answer `destroyed: true` as well.
2868
2873
  */
2869
2874
  releaseRetained?(signal: AbortSignal): Promise<ReadonlyArray<EnvironmentTeardownReceipt>>;
2875
+ /**
2876
+ * The provider environments this executor still holds and has not confirmed destroyed. Read
2877
+ * synchronously when a teardown stays unconfirmed, so the run can name each environment a
2878
+ * sweeper must delete even when the provider never answered. Never throws. An executor that
2879
+ * holds no provider environment omits the method.
2880
+ */
2881
+ heldEnvironments?(): ReadonlyArray<HeldEnvironment>;
2870
2882
  /**
2871
2883
  * The replay source (B1): the content-addressed `outRef` + the materialized output the
2872
2884
  * driver branched on, its verdict, and the conserved spend. Read once, after settle.
@@ -3027,6 +3039,19 @@ interface ExecutorTeardownWarning {
3027
3039
  /** ISO timestamp of the failed attempt. */
3028
3040
  readonly at: string;
3029
3041
  }
3042
+ /** One provider environment an executor holds, named by the provider's own id. */
3043
+ interface HeldEnvironment {
3044
+ readonly provider: string;
3045
+ /** The provider-issued environment id — the id a fleet listing shows and a delete takes. */
3046
+ readonly environmentId: string;
3047
+ /**
3048
+ * Why the environment is held on purpose; absent when it is held only because its destroy was
3049
+ * not confirmed. A sweeper never deletes a kept environment.
3050
+ * - `resume`: a retained execution kept so a resumed run can reconcile the paid work inside it.
3051
+ * - `evidence`: a workspace preserved because the execution has no verified workspace receipt.
3052
+ */
3053
+ readonly keptFor?: 'resume' | 'evidence';
3054
+ }
3030
3055
  /**
3031
3056
  * The receipt for one provider environment an executor held for a RETAINED execution and was
3032
3057
  * asked to release at root settlement (see {@link Executor.releaseRetained}). One receipt per
@@ -3041,6 +3066,10 @@ interface EnvironmentTeardownReceipt {
3041
3066
  /** Why the environment could not be proven destroyed; present exactly when `destroyed` is
3042
3067
  * false. */
3043
3068
  readonly detail?: string;
3069
+ /** With `destroyed: false`: another release cannot change this answer, because the executor
3070
+ * keeps the environment on purpose or cannot destroy it at all. The settlement retry stops
3071
+ * asking. */
3072
+ readonly permanent?: boolean;
3044
3073
  }
3045
3074
  /**
3046
3075
  * Normalized usage event — the single channel every executor reports through, so the
@@ -3770,12 +3799,24 @@ interface Scope<Out> {
3770
3799
  }>;
3771
3800
  }
3772
3801
  /** One settled child whose executor teardown was never acknowledged: the run cannot prove the
3773
- * resource is gone, so its capacity slot stays charged. Named so an operator can act on it. */
3802
+ * resource is gone. Named so an operator can act on it. */
3774
3803
  interface UnconfirmedTeardown {
3775
3804
  readonly id: NodeId;
3776
3805
  readonly label: string;
3777
3806
  readonly runtime: Runtime;
3778
3807
  readonly status: NodeStatus;
3808
+ /** The provider environments the node may still hold and nothing keeps on purpose, by the
3809
+ * provider's own id: what an operator's sweeper deletes. Present when the executor names at
3810
+ * least one (`Executor.heldEnvironments`); absence means nothing was named, never "nothing is
3811
+ * held". Never contains a kept environment. */
3812
+ readonly environments?: ReadonlyArray<HeldEnvironment>;
3813
+ /** The environments the node holds on purpose, each with `keptFor` set: a retained execution
3814
+ * a resume reconciles, or a workspace preserved as evidence. A sweeper never deletes these. */
3815
+ readonly kept?: ReadonlyArray<HeldEnvironment>;
3816
+ /** How many teardown requests Runtime sent the executor. */
3817
+ readonly attempts?: number;
3818
+ /** Why the last attempt did not confirm destruction. */
3819
+ readonly detail?: string;
3779
3820
  }
3780
3821
  /**
3781
3822
  * The committed work a resumed run inherits from its journal. `settled` is the replayed
@@ -4161,9 +4202,10 @@ type SpawnEvent = {
4161
4202
  seq: number;
4162
4203
  at: string;
4163
4204
  } | {
4164
- /** A settled child whose executor teardown was never acknowledged: the run cannot prove the
4165
- * resource is gone, so its capacity slot stays charged for the rest of the run. Recorded so
4166
- * the leak is durable evidence about the EXECUTOR rather than a cause of run failure.
4205
+ /** A settled child whose executor teardown stayed unconfirmed after the settlement retry
4206
+ * window: the run cannot prove the resource is gone. Recorded so the leak is durable
4207
+ * evidence about the EXECUTOR, and the environment ids a sweeper deletes, rather than a
4208
+ * cause of run failure.
4167
4209
  * Informational: replay, `materializeTreeView`, and cost readers skip it, and its `seq` lives
4168
4210
  * outside the cursor-uniqueness namespace. */
4169
4211
  kind: 'teardown-unconfirmed';
@@ -4172,6 +4214,45 @@ type SpawnEvent = {
4172
4214
  runtime: Runtime;
4173
4215
  /** The node's terminal status when the barrier read it. */
4174
4216
  status: NodeStatus;
4217
+ /** See `UnconfirmedTeardown.environments`: the ids a sweeper deletes. */
4218
+ environments?: ReadonlyArray<HeldEnvironment>;
4219
+ /** See `UnconfirmedTeardown.kept`: environments held on purpose, never swept. */
4220
+ kept?: ReadonlyArray<HeldEnvironment>;
4221
+ /** How many teardown requests Runtime sent the executor. */
4222
+ attempts?: number;
4223
+ /** Why the last attempt did not confirm destruction. */
4224
+ detail?: string;
4225
+ seq: number;
4226
+ at: string;
4227
+ } | {
4228
+ /** A settled node whose teardown was unconfirmed when the join barrier opened its
4229
+ * settlement retry window (`teardownConfirmMs`). Written before the window, so the
4230
+ * environment ids reach durable storage even if the process dies inside it. Each is
4231
+ * followed by `teardown-confirmed` when a retry confirms the node, or by
4232
+ * `teardown-unconfirmed` when the window closes first. A sweeper reading a journal whose
4233
+ * run never settled deletes the `environments` of each pending node with neither.
4234
+ * Informational: replay and cost readers skip it, and its `seq` lives outside the
4235
+ * cursor-uniqueness namespace. */
4236
+ kind: 'teardown-pending';
4237
+ id: NodeId;
4238
+ label: string;
4239
+ runtime: Runtime;
4240
+ status: NodeStatus;
4241
+ /** See `UnconfirmedTeardown.environments`: the ids a sweeper deletes. */
4242
+ environments?: ReadonlyArray<HeldEnvironment>;
4243
+ /** See `UnconfirmedTeardown.kept`: environments held on purpose, never swept. */
4244
+ kept?: ReadonlyArray<HeldEnvironment>;
4245
+ /** How many teardown requests Runtime had sent the executor when the window opened. */
4246
+ attempts?: number;
4247
+ /** Why the last attempt before the window did not confirm destruction. */
4248
+ detail?: string;
4249
+ seq: number;
4250
+ at: string;
4251
+ } | {
4252
+ /** A `teardown-pending` node whose teardown a retry inside the settlement window confirmed:
4253
+ * the executor destroyed what it held. Informational, outside the cursor namespace. */
4254
+ kind: 'teardown-confirmed';
4255
+ id: NodeId;
4175
4256
  seq: number;
4176
4257
  at: string;
4177
4258
  } | {
@@ -4317,6 +4398,24 @@ interface SupervisorOpts {
4317
4398
  * teardown.
4318
4399
  */
4319
4400
  readonly childSettleGraceMs?: number | null;
4401
+ /**
4402
+ * How long the join barrier keeps retrying a settled child's teardown until the executor
4403
+ * confirms its resources are destroyed. A child's first teardown gets a short acknowledgement
4404
+ * window, and a provider delete that fails or answers late then left the sandbox running: on
4405
+ * 2026-09-20, cancelling 20 Discovery lanes left 2 workers running, and 136 of 612 agents
4406
+ * across that campaign ended with teardown unconfirmed. The barrier re-asks each unconfirmed
4407
+ * child with exponential backoff (starting at 1/300 of this window, doubling, capped at 1/10 of
4408
+ * it) and releases a failed retained environment again under `retainedAtSettlement:
4409
+ * 'release'`. A child still unconfirmed when the window closes is named in
4410
+ * `teardownUnconfirmed` with the environment ids its executor reports, and journaled. The
4411
+ * nodes pending when the window opens are journaled first as `teardown-pending`, so a process
4412
+ * that dies inside the window still leaves their environment ids on record. A retained
4413
+ * environment kept for a resume is not retried, and neither is an answer the executor marks
4414
+ * `permanent`. The window runs after the run's deadline too: a deadline stops work, not
4415
+ * cleanup, so settlement can return up to this long after it. `0` makes one attempt only.
4416
+ * Default: 300000 (5 minutes).
4417
+ */
4418
+ readonly teardownConfirmMs?: number;
4320
4419
  /**
4321
4420
  * Load prior journal state and expose committed settlements through `Scope.resume`.
4322
4421
  * Use persistent journal and blob stores to recover across process restarts.
@@ -4546,10 +4645,11 @@ type SupervisedResult<Out> = {
4546
4645
  readonly rootStream?: RootStreamReceipt;
4547
4646
  /** Runtime-owned provider evidence reduced across the complete journal forest. */
4548
4647
  readonly providerModel?: ProviderModelExecutionEvidence;
4549
- /** Settled children whose executor teardown was never acknowledged — the resources this run
4550
- * could not prove destroyed. Their capacity slots stay charged for the rest of the run, and
4551
- * each is journaled as a `teardown-unconfirmed` event. Present exactly when non-empty; a
4552
- * healthy run never carries it. */
4648
+ /** Settled children whose teardown stayed unconfirmed after the settlement retry window
4649
+ * (`teardownConfirmMs`) — the resources this run could not prove destroyed. Each names the
4650
+ * provider environments a sweeper deletes when its executor reports them, and each is
4651
+ * journaled as a `teardown-unconfirmed` event. Present exactly when non-empty; a healthy run
4652
+ * never carries it. */
4553
4653
  teardownUnconfirmed?: ReadonlyArray<UnconfirmedTeardown>;
4554
4654
  /** The journaled nodes whose usage accounting is incomplete — the named gaps behind a
4555
4655
  * `false` `tokensKnown`/`usdKnown` on `spentTotal`. Present exactly when non-empty. */
@@ -4588,10 +4688,11 @@ type SupervisedResult<Out> = {
4588
4688
  readonly rootStream?: RootStreamReceipt;
4589
4689
  /** Runtime-owned provider evidence reduced across the complete journal forest. */
4590
4690
  readonly providerModel?: ProviderModelExecutionEvidence;
4591
- /** Settled children whose executor teardown was never acknowledged — the resources this run
4592
- * could not prove destroyed. Their capacity slots stay charged for the rest of the run, and
4593
- * each is journaled as a `teardown-unconfirmed` event. Present exactly when non-empty; a
4594
- * healthy run never carries it. */
4691
+ /** Settled children whose teardown stayed unconfirmed after the settlement retry window
4692
+ * (`teardownConfirmMs`) — the resources this run could not prove destroyed. Each names the
4693
+ * provider environments a sweeper deletes when its executor reports them, and each is
4694
+ * journaled as a `teardown-unconfirmed` event. Present exactly when non-empty; a healthy run
4695
+ * never carries it. */
4595
4696
  teardownUnconfirmed?: ReadonlyArray<UnconfirmedTeardown>;
4596
4697
  /** Budget reservations still open when the run reached its join barrier, each named by the
4597
4698
  * assignment, child id, and lifecycle stage that holds it. The conserved-pool identity
@@ -4653,10 +4754,11 @@ type SupervisedResult<Out> = {
4653
4754
  readonly rootStream?: RootStreamReceipt;
4654
4755
  /** Runtime-owned provider evidence reduced across the complete journal forest. */
4655
4756
  readonly providerModel?: ProviderModelExecutionEvidence;
4656
- /** Settled children whose executor teardown was never acknowledged — the resources this run
4657
- * could not prove destroyed. Their capacity slots stay charged for the rest of the run, and
4658
- * each is journaled as a `teardown-unconfirmed` event. Present exactly when non-empty; a
4659
- * healthy run never carries it. */
4757
+ /** Settled children whose teardown stayed unconfirmed after the settlement retry window
4758
+ * (`teardownConfirmMs`) — the resources this run could not prove destroyed. Each names the
4759
+ * provider environments a sweeper deletes when its executor reports them, and each is
4760
+ * journaled as a `teardown-unconfirmed` event. Present exactly when non-empty; a healthy run
4761
+ * never carries it. */
4660
4762
  teardownUnconfirmed?: ReadonlyArray<UnconfirmedTeardown>;
4661
4763
  /** Budget reservations still open when the run reached its join barrier, each named by the
4662
4764
  * assignment, child id, and lifecycle stage that holds it. The conserved-pool identity
@@ -4718,5 +4820,5 @@ interface WidenGate<Out> {
4718
4820
  readonly judgeExempt?: boolean;
4719
4821
  }
4720
4822
  //#endregion
4721
- export { SpawnPrior as $, captureHarnessTranscript as $n, LoopPlanPayload as $r, RuntimeStreamEventCollector as $t, NodeId as A, AgentRuntimeEventSink as Ai, RetainedPendingCause as An, BudgetPoolRestore as Ar, EvalRunEvent as At, ResumedWork as B, RunAgentTaskOptions as Bi, RecoverRetainedInteractiveRunOptions as Bn, spendFromUsageEvents as Br, RuntimeEventOtelOptions as Bt, ExecutorToolCall as C, startRuntimeRun as Ci, SessionTraceBox as Cn, RetainedRunReplayPoint as Cr, workerTraceHeaders as Ct, MaterializedModelIdentity as D, AgentExecutionBackend as Di, decodeToolPart as Dn, StartRetainedRunInEnvironmentOptions as Dr, mergeTraceEnv as Dt, MaterializedExecutionIdentity as E, AgentBackendInput as Ei, createPushTraceSource as En, RetainedRunTurnInput as Er, createPropagatingTraceEmitter as Et, ProviderModelExecutionEvidence as F, BackendErrorDetail as Fi, ScopeProgressInput as Fn, ReservationRejection as Fr, LoopSpanNode as Ft, RootSignal as G, RuntimeStreamEvent as Gi, StartRetainedInteractiveRunOptions as Gn, Iteration as Gr, createOtelExporter as Gt, RootHandle as H, RuntimeCanonicalStreamEvent as Hi, RetainedInteractiveEnvironmentInput as Hn, DefaultVerdict$1 as Hr, buildLoopSpanNodes as Ht, ResourceLimit as I, KnowledgeReadinessDecision as Ii, WorkerProgress as In, ReservationShortfall as Ir, OtelAttribute as It, Scope as J, HarnessTranscriptEvidence as Jn, LoopIterationDispatchPayload as Jr, loopEventToOtelSpan as Jt, RootStreamReceipt as K, HarnessTranscriptArtifact as Kn, LoopDecisionPayload as Kr, exportEvalRuns as Kt, ResourceSpend as L, OpenAIChatResponseFormat as Li, createActivityLog as Ln, ReservationStage as Lr, OtelExportConfig as Lt, NodeStatus as M, AgentTaskRunResult as Mi, ActivityNote as Mn, BudgetReconcileFault as Mr, EvalRunsExportConfig as Mt, ProfileMaterializationReceipt as N, AgentTaskSpec as Ni, DEFAULT_STALL_AFTER_MS as Nn, LeakedReservation as Nr, EvalRunsExportResult as Nt, NoWinnerError as O, AgentKnowledgeProvider as Oi, sandboxSessionTraceSource as On, StartRetainedRunOptions as Or, readTraceContextFromEnv as Ot, ProviderModelAttemptEvidence as P, AgentTaskStatus as Pi, ExecutorProgress as Pn, ReservationHolder as Pr, INTELLIGENCE_WIRE_VERSION as Pt, SpawnOpts as Q, ReadableEnvironment as Qn, LoopPlanDescription as Qr, RuntimeEventCollector as Qt, ResultBlobStore as R, OpenAIChatTool as Ri, readWorkerProgress as Rn, ReservationTicket as Rr, OtelExporter as Rt, ExecutorTeardownWarning as S, RuntimeRunStatus as Si, SessionMessageLike as Sn, RetainedRunIntentAdmission as Sr, workerTraceEnv as St, Handle as T, AgentBackendContext as Ti, TraceSource as Tn, RetainedRunStartMaterial as Tr, TraceContext as Tt, RootMaterialization as U, RuntimeSession as Ui, RetainedInteractiveRunHandle as Un, Driver as Ur, buildRuntimeEventOtelSpans as Ut, RetainedExecutionState as V, RunAgentTaskStreamOptions as Vi, RetainedInteractiveAdmissionHook as Vn, AgentRunSpec as Vr, buildLoopOtelSpans as Vt, RootProviderModelEvidence as W, RuntimeSessionStore as Wi, RetainedInteractiveStartMaterial as Wn, ExecCtx as Wr, createOpenInferenceFileExporter as Wt, SpawnEvent as X, HarnessTranscriptUnavailable as Xn, LoopIterationStartedPayload as Xr, padTraceId as Xt, Settled as Y, HarnessTranscriptFile as Yn, LoopIterationEndedPayload as Yr, padSpanId as Yt, SpawnJournal as Z, HarnessTranscriptUnavailableReason as Zn, LoopLineageOptions as Zr, toOtelAttributes as Zt, ExecutorMaterialization as _, RuntimeRunCost as _i, isWaitOutcome as _n, RetainedRunDispatchedAdmission as _r, WorkerTraceEvidence as _t, BudgetOverspend as a, LoopTraceEmitter as ai, createRuntimeEventCollector as an, ReconnectRetainedRunOptions as ar, SupervisedResult as at, ExecutorRegistry as b, RuntimeRunPersistenceAdapter as bi, validateWaitSpec as bn, RetainedRunEventOptions as br, WorkerTraceSeamCarrier as bt, EnvironmentTeardownReceipt as c, MountManifestEntry as ci, sanitizeKnowledgeReadinessReport as cn, RecoverRetainedRunResult as cr, TokenUsageProvenance as ct, ExecutorAccounting as d, RunProvenance as di, WaitOutcome as dn, RetainedInteractiveIntentAdmission as dr, UnknownMaterializationReason as dt, LoopResult as ei, RuntimeStreamEventSink as en, harnessTranscriptArtifact as er, SpawnRejection as et, ExecutorCancellation as f, SandboxClient as fi, WaitProbe as fn, RetainedInteractiveStartedAdmission as fr, UsageEvent as ft, ExecutorFactory as g, RuntimeRunCompleteInput as gi, createWaitProbes as gn, RetainedRunCancellation as gr, WorkerInteractiveUnavailableReason as gt, ExecutorExecutionBinding as h, Validator as hi, WaitSpec as hn, RetainedRunCancelOptions as hr, WorkerInteractiveSession as ht, Budget as i, LoopTokenUsage as ii, SanitizedKnowledgeRequirement as in, NativeContextContinuationInput as ir, SteerableRootHandle as it, NodeSnapshot as j, AgentTaskContext as ji, ActivityLog as jn, BudgetReadout as jr, EvalRunGeneration as jt, NodeExecutionIdentity as k, AgentRuntimeEvent as ki, RetainedChildRecovery as kn, BudgetPool as kr, traceContextToEnv as kt, ExecutionBindingReceipt as l, MountRecorder as li, sanitizeRuntimeStreamEvent as ln, RetainedInteractiveAdmission as lr, TreeView as lt, ExecutorContext as m, ValidationCtx as mi, WaitRejection as mn, RetainedRunAdmissionHook as mr, WidenGate as mt, AgentExecutionRef as n, LoopStartedPayload as ni, RuntimeTelemetryOptions as nn, NativeContextContinuationExecution as nr, SpendChannel as nt, BudgetViolation as o, LoopTraceEvent as oi, createRuntimeStreamEventCollector as on, RecoverRetainedRunIntentOptions as or, Supervisor as ot, ExecutorCancellationRequest as p, SelectionReceipt as pi, WaitProbeRegistry as pn, RetainedRunAdmission as pr, WaitOpts as pt, Runtime as q, HarnessTranscriptCapture as qn, LoopEndedPayload as qr, generateSpanId as qt, AgentSpec as r, LoopTeardownFailedPayload as ri, SanitizedKnowledgeReadinessReport as rn, NativeContextContinuationHandle as rr, SpendGap as rt, DefaultVerdict as s, LoopWinner as si, sanitizeAgentRuntimeEvent as sn, RecoverRetainedRunOptions as sr, SupervisorOpts as st, Agent as t, LoopSandboxPlacement as ti, RuntimeStreamEventSummary as tn, persistHarnessTranscript as tr, Spend as tt, Executor as u, OutputAdapter as ui, PendingWait as un, RetainedInteractiveEnvironmentAdmission as ur, UnconfirmedTeardown as ut, ExecutorNodeContext as v, RuntimeRunHandle as vi, pollFor as vn, RetainedRunEffect as vr, WorkerTraceUnavailableReason as vt, FleetYield as w, AgentAdapter as wi, ToolStepInput as wn, RetainedRunSnapshot as wr, workerTraceSeamKey as wt, ExecutorResult as x, RuntimeRunRow as xi, waitUntil as xn, RetainedRunHandle as xr, readWorkerTraceContext as xt, ExecutorProgressEvent as y, RuntimeRunOptions as yi, timerAt as yn, RetainedRunEnvironmentAdmission as yr, WorkerTraceResolver as yt, ResumedKeyState as z, OpenAIChatToolChoice as zi, ReconnectRetainedInteractiveRunOptions as zn, createBudgetPool as zr, OtelSpan as zt };
4722
- //# sourceMappingURL=types-DKeaex8Q.d.ts.map
4823
+ export { SpawnOpts as $, ReadableEnvironment as $n, LoopPlanDescription as $r, RuntimeEventCollector as $t, NodeExecutionIdentity as A, AgentRuntimeEvent as Ai, RetainedChildRecovery as An, BudgetPool as Ar, traceContextToEnv as At, ResumedKeyState as B, OpenAIChatToolChoice as Bi, ReconnectRetainedInteractiveRunOptions as Bn, createBudgetPool as Br, OtelSpan as Bt, ExecutorToolCall as C, RuntimeRunStatus as Ci, SessionMessageLike as Cn, RetainedRunIntentAdmission as Cr, workerTraceEnv as Ct, MaterializedExecutionIdentity as D, AgentBackendInput as Di, createPushTraceSource as Dn, RetainedRunTurnInput as Dr, createPropagatingTraceEmitter as Dt, HeldEnvironment as E, AgentBackendContext as Ei, TraceSource as En, RetainedRunStartMaterial as Er, TraceContext as Et, ProviderModelAttemptEvidence as F, AgentTaskStatus as Fi, ExecutorProgress as Fn, ReservationHolder as Fr, INTELLIGENCE_WIRE_VERSION as Ft, RootProviderModelEvidence as G, RuntimeSessionStore as Gi, RetainedInteractiveStartMaterial as Gn, ExecCtx as Gr, createOpenInferenceFileExporter as Gt, RetainedExecutionState as H, RunAgentTaskStreamOptions as Hi, RetainedInteractiveAdmissionHook as Hn, AgentRunSpec as Hr, buildLoopOtelSpans as Ht, ProviderModelExecutionEvidence as I, BackendErrorDetail as Ii, ScopeProgressInput as In, ReservationRejection as Ir, LoopSpanNode as It, Runtime as J, HarnessTranscriptCapture as Jn, LoopEndedPayload as Jr, generateSpanId as Jt, RootSignal as K, RuntimeStreamEvent as Ki, StartRetainedInteractiveRunOptions as Kn, Iteration as Kr, createOtelExporter as Kt, ResourceLimit as L, KnowledgeReadinessDecision as Li, WorkerProgress as Ln, ReservationShortfall as Lr, OtelAttribute as Lt, NodeSnapshot as M, AgentTaskContext as Mi, ActivityLog as Mn, BudgetReadout as Mr, EvalRunGeneration as Mt, NodeStatus as N, AgentTaskRunResult as Ni, ActivityNote as Nn, BudgetReconcileFault as Nr, EvalRunsExportConfig as Nt, MaterializedModelIdentity as O, AgentExecutionBackend as Oi, decodeToolPart as On, StartRetainedRunInEnvironmentOptions as Or, mergeTraceEnv as Ot, ProfileMaterializationReceipt as P, AgentTaskSpec as Pi, DEFAULT_STALL_AFTER_MS as Pn, LeakedReservation as Pr, EvalRunsExportResult as Pt, SpawnJournal as Q, HarnessTranscriptUnavailableReason as Qn, LoopLineageOptions as Qr, toOtelAttributes as Qt, ResourceSpend as R, OpenAIChatResponseFormat as Ri, createActivityLog as Rn, ReservationStage as Rr, OtelExportConfig as Rt, ExecutorTeardownWarning as S, RuntimeRunRow as Si, waitUntil as Sn, RetainedRunHandle as Sr, readWorkerTraceContext as St, Handle as T, AgentAdapter as Ti, ToolStepInput as Tn, RetainedRunSnapshot as Tr, workerTraceSeamKey as Tt, RootHandle as U, RuntimeCanonicalStreamEvent as Ui, RetainedInteractiveEnvironmentInput as Un, DefaultVerdict$1 as Ur, buildLoopSpanNodes as Ut, ResumedWork as V, RunAgentTaskOptions as Vi, RecoverRetainedInteractiveRunOptions as Vn, spendFromUsageEvents as Vr, RuntimeEventOtelOptions as Vt, RootMaterialization as W, RuntimeSession as Wi, RetainedInteractiveRunHandle as Wn, Driver as Wr, buildRuntimeEventOtelSpans as Wt, Settled as X, HarnessTranscriptFile as Xn, LoopIterationEndedPayload as Xr, padSpanId as Xt, Scope as Y, HarnessTranscriptEvidence as Yn, LoopIterationDispatchPayload as Yr, loopEventToOtelSpan as Yt, SpawnEvent as Z, HarnessTranscriptUnavailable as Zn, LoopIterationStartedPayload as Zr, padTraceId as Zt, ExecutorMaterialization as _, RuntimeRunCompleteInput as _i, createWaitProbes as _n, RetainedRunCancellation as _r, WorkerInteractiveUnavailableReason as _t, BudgetOverspend as a, LoopTokenUsage as ai, SanitizedKnowledgeRequirement as an, NativeContextContinuationInput as ar, SteerableRootHandle as at, ExecutorRegistry as b, RuntimeRunOptions as bi, timerAt as bn, RetainedRunEnvironmentAdmission as br, WorkerTraceResolver as bt, EnvironmentTeardownReceipt as c, LoopWinner as ci, sanitizeAgentRuntimeEvent as cn, RecoverRetainedRunOptions as cr, SupervisorOpts as ct, ExecutorAccounting as d, OutputAdapter as di, PendingWait as dn, RetainedInteractiveEnvironmentAdmission as dr, UnconfirmedTeardown as dt, LoopPlanPayload as ei, RuntimeStreamEventCollector as en, captureHarnessTranscript as er, SpawnPrior as et, ExecutorCancellation as f, RunProvenance as fi, WaitOutcome as fn, RetainedInteractiveIntentAdmission as fr, UnknownMaterializationReason as ft, ExecutorFactory as g, Validator as gi, WaitSpec as gn, RetainedRunCancelOptions as gr, WorkerInteractiveSession as gt, ExecutorExecutionBinding as h, ValidationCtx as hi, WaitRejection as hn, RetainedRunAdmissionHook as hr, WidenGate as ht, Budget as i, LoopTeardownFailedPayload as ii, SanitizedKnowledgeReadinessReport as in, NativeContextContinuationHandle as ir, SpendGap as it, NodeId as j, AgentRuntimeEventSink as ji, RetainedPendingCause as jn, BudgetPoolRestore as jr, EvalRunEvent as jt, NoWinnerError as k, AgentKnowledgeProvider as ki, sandboxSessionTraceSource as kn, StartRetainedRunOptions as kr, readTraceContextFromEnv as kt, ExecutionBindingReceipt as l, MountManifestEntry as li, sanitizeKnowledgeReadinessReport as ln, RecoverRetainedRunResult as lr, TokenUsageProvenance as lt, ExecutorContext as m, SelectionReceipt as mi, WaitProbeRegistry as mn, RetainedRunAdmission as mr, WaitOpts as mt, AgentExecutionRef as n, LoopSandboxPlacement as ni, RuntimeStreamEventSummary as nn, persistHarnessTranscript as nr, Spend as nt, BudgetViolation as o, LoopTraceEmitter as oi, createRuntimeEventCollector as on, ReconnectRetainedRunOptions as or, SupervisedResult as ot, ExecutorCancellationRequest as p, SandboxClient as pi, WaitProbe as pn, RetainedInteractiveStartedAdmission as pr, UsageEvent as pt, RootStreamReceipt as q, HarnessTranscriptArtifact as qn, LoopDecisionPayload as qr, exportEvalRuns as qt, AgentSpec as r, LoopStartedPayload as ri, RuntimeTelemetryOptions as rn, NativeContextContinuationExecution as rr, SpendChannel as rt, DefaultVerdict as s, LoopTraceEvent as si, createRuntimeStreamEventCollector as sn, RecoverRetainedRunIntentOptions as sr, Supervisor as st, Agent as t, LoopResult as ti, RuntimeStreamEventSink as tn, harnessTranscriptArtifact as tr, SpawnRejection as tt, Executor as u, MountRecorder as ui, sanitizeRuntimeStreamEvent as un, RetainedInteractiveAdmission as ur, TreeView as ut, ExecutorNodeContext as v, RuntimeRunCost as vi, isWaitOutcome as vn, RetainedRunDispatchedAdmission as vr, WorkerTraceEvidence as vt, FleetYield as w, startRuntimeRun as wi, SessionTraceBox as wn, RetainedRunReplayPoint as wr, workerTraceHeaders as wt, ExecutorResult as x, RuntimeRunPersistenceAdapter as xi, validateWaitSpec as xn, RetainedRunEventOptions as xr, WorkerTraceSeamCarrier as xt, ExecutorProgressEvent as y, RuntimeRunHandle as yi, pollFor as yn, RetainedRunEffect as yr, WorkerTraceUnavailableReason as yt, ResultBlobStore as z, OpenAIChatTool as zi, readWorkerProgress as zn, ReservationTicket as zr, OtelExporter as zt };
4824
+ //# sourceMappingURL=types-ChewVlpE.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/agent-runtime",
3
- "version": "0.252.1",
3
+ "version": "0.254.1",
4
4
  "description": "Shared task-lifecycle skeleton for agents: a recursive loop kernel for chat turns, one-shot tasks, and multi-attempt loops, with trace capture and eval-gated self-improvement. Domain behavior lives in adapters; scoring and ship-gates in @tangle-network/agent-eval.",
5
5
  "homepage": "https://github.com/tangle-network/agent-runtime#readme",
6
6
  "repository": {
@@ -99,8 +99,8 @@
99
99
  "@biomejs/biome": "^2.5.11",
100
100
  "@modelcontextprotocol/sdk": "1.30.0",
101
101
  "@tangle-network/agent-eval": "0.183.0",
102
- "@tangle-network/agent-interface": "^2.10.0",
103
- "@tangle-network/sandbox": ">=0.36.4 <0.46.0",
102
+ "@tangle-network/agent-interface": "^2.11.0",
103
+ "@tangle-network/sandbox": ">=0.36.4 <0.47.0",
104
104
  "@types/node": "26.4.0",
105
105
  "@types/tar-stream": "3.1.4",
106
106
  "miniflare": "4.20260722.0",
@@ -122,8 +122,8 @@
122
122
  "license": "MIT",
123
123
  "peerDependencies": {
124
124
  "@tangle-network/agent-eval": ">=0.183.0 <0.184.0",
125
- "@tangle-network/agent-interface": "^2.10.0",
126
- "@tangle-network/sandbox": ">=0.36.4 <0.46.0"
125
+ "@tangle-network/agent-interface": "^2.11.0",
126
+ "@tangle-network/sandbox": ">=0.36.4 <0.47.0"
127
127
  },
128
128
  "dependencies": {
129
129
  "@tangle-network/agent-core": ">=0.9.6 <0.10.0",