@tangle-network/agent-runtime 0.103.1 → 0.105.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 (89) hide show
  1. package/README.md +177 -39
  2. package/dist/agent.d.ts +1 -1
  3. package/dist/agent.js +5 -5
  4. package/dist/analyst-loop.d.ts +1 -1
  5. package/dist/candidate-execution/index.d.ts +2 -2
  6. package/dist/candidate-execution/index.js +4 -4
  7. package/dist/{chunk-TUSOOIDV.js → chunk-C5RTIBNZ.js} +2 -2
  8. package/dist/{chunk-SNSMRT6H.js → chunk-CTRA64LY.js} +3 -3
  9. package/dist/{chunk-ZXICDSAK.js → chunk-H5QPIZNX.js} +2 -2
  10. package/dist/{chunk-6WZZXQV5.js → chunk-HLKC4UYB.js} +1 -13
  11. package/dist/chunk-HLKC4UYB.js.map +1 -0
  12. package/dist/{chunk-AAN2MB2X.js → chunk-HNP72PNU.js} +3 -10
  13. package/dist/chunk-HNP72PNU.js.map +1 -0
  14. package/dist/{chunk-M6MD6JBS.js → chunk-KRBFHMV6.js} +429 -1
  15. package/dist/chunk-KRBFHMV6.js.map +1 -0
  16. package/dist/chunk-OPVWXJ2H.js +75 -0
  17. package/dist/chunk-OPVWXJ2H.js.map +1 -0
  18. package/dist/{chunk-AYU35OTU.js → chunk-PZZKQVQV.js} +1 -1
  19. package/dist/chunk-PZZKQVQV.js.map +1 -0
  20. package/dist/{chunk-B7K7V22Y.js → chunk-RDOAVVHY.js} +2 -2
  21. package/dist/{chunk-L5DST3QC.js → chunk-SMQXZGLZ.js} +1 -1
  22. package/dist/chunk-SMQXZGLZ.js.map +1 -0
  23. package/dist/{chunk-LFM4JBRW.js → chunk-UHEZW5BU.js} +1084 -527
  24. package/dist/chunk-UHEZW5BU.js.map +1 -0
  25. package/dist/{chunk-5AITUUHO.js → chunk-VISA6CI3.js} +3 -3
  26. package/dist/{chunk-ZOYN3JR5.js → chunk-WMTCUOQL.js} +5 -5
  27. package/dist/{chunk-3LJF5XSE.js → chunk-WRTOVNN4.js} +6 -6
  28. package/dist/chunk-WRTOVNN4.js.map +1 -0
  29. package/dist/{chunk-SBTWKPVR.js → chunk-WSTRQZYQ.js} +1 -1
  30. package/dist/chunk-WSTRQZYQ.js.map +1 -0
  31. package/dist/{chunk-EAQ5YRRY.js → chunk-XBG2W2VW.js} +50 -23
  32. package/dist/chunk-XBG2W2VW.js.map +1 -0
  33. package/dist/{chunk-QYCKIV6C.js → chunk-YJZA2BIK.js} +2 -2
  34. package/dist/{chunk-QYCKIV6C.js.map → chunk-YJZA2BIK.js.map} +1 -1
  35. package/dist/{completion-gate-DLINnrkM.d.ts → completion-gate-BMy5LGoP.d.ts} +3 -3
  36. package/dist/{coordination-DTehA977.d.ts → coordination-BZZSVYpZ.d.ts} +28 -28
  37. package/dist/environment-provider.d.ts +18 -7
  38. package/dist/environment-provider.js +3 -1
  39. package/dist/index.d.ts +106 -182
  40. package/dist/index.js +374 -236
  41. package/dist/index.js.map +1 -1
  42. package/dist/intelligence.d.ts +93 -47
  43. package/dist/intelligence.js +127 -73
  44. package/dist/intelligence.js.map +1 -1
  45. package/dist/knowledge.d.ts +6 -6
  46. package/dist/knowledge.js +9 -9
  47. package/dist/{local-harness-CtK9dSny.d.ts → local-harness-BDNcl6jI.d.ts} +1 -1
  48. package/dist/{loop-runner-bin-DhIXsLAd.d.ts → loop-runner-bin-68aoM9-7.d.ts} +5 -13
  49. package/dist/loop-runner-bin.d.ts +6 -8
  50. package/dist/loop-runner-bin.js +6 -6
  51. package/dist/loops.d.ts +67 -42
  52. package/dist/loops.js +10 -6
  53. package/dist/mcp/bin.js +4 -4
  54. package/dist/mcp/index.d.ts +9 -10
  55. package/dist/mcp/index.js +11 -11
  56. package/dist/mcp/index.js.map +1 -1
  57. package/dist/mcp/memory-bin.js +1 -1
  58. package/dist/primeintellect/index.d.ts +3 -4
  59. package/dist/primeintellect/index.js +5 -6
  60. package/dist/primeintellect/index.js.map +1 -1
  61. package/dist/profiles.d.ts +6 -6
  62. package/dist/profiles.js.map +1 -1
  63. package/dist/{protected-model-port-DzkUY3HQ.d.ts → protected-model-port-B4t-OQjL.d.ts} +1 -1
  64. package/dist/{improve-B40dRu0X.d.ts → redact-BuFjxBUJ.d.ts} +201 -154
  65. package/dist/{structural-rollout-BFPIy3iw.d.ts → structural-rollout-DEh6CEsa.d.ts} +4 -4
  66. package/dist/{supervise-Cp8bNcJi.d.ts → supervise-4_48wwvy.d.ts} +3 -3
  67. package/dist/testing.js +9 -9
  68. package/dist/testing.js.map +1 -1
  69. package/dist/{types-DK11_O4L.d.ts → types-BCoemcXU.d.ts} +4 -4
  70. package/dist/{types-lZTE_LBd.d.ts → types-CvNwMzQt.d.ts} +4 -4
  71. package/dist/{worktree-fanout-DiiJWjJO.d.ts → worktree-fanout-DxhAWr5Z.d.ts} +6 -6
  72. package/package.json +8 -7
  73. package/skills/build-with-agent-runtime/SKILL.md +15 -9
  74. package/skills/loop-writer/SKILL.md +1 -1
  75. package/dist/chunk-3LJF5XSE.js.map +0 -1
  76. package/dist/chunk-6WZZXQV5.js.map +0 -1
  77. package/dist/chunk-AAN2MB2X.js.map +0 -1
  78. package/dist/chunk-AYU35OTU.js.map +0 -1
  79. package/dist/chunk-EAQ5YRRY.js.map +0 -1
  80. package/dist/chunk-L5DST3QC.js.map +0 -1
  81. package/dist/chunk-LFM4JBRW.js.map +0 -1
  82. package/dist/chunk-M6MD6JBS.js.map +0 -1
  83. package/dist/chunk-SBTWKPVR.js.map +0 -1
  84. /package/dist/{chunk-TUSOOIDV.js.map → chunk-C5RTIBNZ.js.map} +0 -0
  85. /package/dist/{chunk-SNSMRT6H.js.map → chunk-CTRA64LY.js.map} +0 -0
  86. /package/dist/{chunk-ZXICDSAK.js.map → chunk-H5QPIZNX.js.map} +0 -0
  87. /package/dist/{chunk-B7K7V22Y.js.map → chunk-RDOAVVHY.js.map} +0 -0
  88. /package/dist/{chunk-5AITUUHO.js.map → chunk-VISA6CI3.js.map} +0 -0
  89. /package/dist/{chunk-ZOYN3JR5.js.map → chunk-WMTCUOQL.js.map} +0 -0
@@ -2,17 +2,17 @@ import { PromoteKnowledgeCandidateOptions, RagKnowledgeUpdateResult, KnowledgeRe
2
2
  import { b as AgentImprovementActivationResultStore, c as AgentImprovementActivationTransition, a as AgentImprovementActivationReconciliation } from './activation-Cm-9MMX1.js';
3
3
  import { AgentCandidateKnowledge, AgentCandidateCapturedArtifact, AgentCandidateBundle } from '@tangle-network/agent-interface';
4
4
  import { b as AgentCandidateOutputArtifactPort } from './types-Cbp72qyu.js';
5
- import { E as ExecutorConfig } from './coordination-DTehA977.js';
6
- import { g as SuperviseOptions, a as SupervisorProfile } from './supervise-Cp8bNcJi.js';
7
- import { B as Budget, e as SupervisedResult } from './types-lZTE_LBd.js';
8
- import { D as DeliverableSpec } from './completion-gate-DLINnrkM.js';
5
+ import { E as ExecutorConfig } from './coordination-BZZSVYpZ.js';
6
+ import { g as SuperviseOptions, a as SupervisorProfile } from './supervise-4_48wwvy.js';
7
+ import { B as Budget, e as SupervisedResult } from './types-CvNwMzQt.js';
8
+ import { D as DeliverableSpec } from './completion-gate-BMy5LGoP.js';
9
9
  import '@tangle-network/agent-eval';
10
10
  import './substrate-Dyiqmd3o.js';
11
- import './types-DK11_O4L.js';
11
+ import './types-BCoemcXU.js';
12
12
  import '@tangle-network/sandbox';
13
13
  import './types-BwoZWq-i.js';
14
14
  import './sanitize-DEbPNtyI.js';
15
- import './local-harness-CtK9dSny.js';
15
+ import './local-harness-BDNcl6jI.js';
16
16
  import 'node:child_process';
17
17
  import './environment-provider.js';
18
18
  import '@tangle-network/agent-interface/environment-provider';
package/dist/knowledge.js CHANGED
@@ -8,20 +8,20 @@ import {
8
8
  knowledgeReadinessDeliverable,
9
9
  runKnowledgeImprovementJob,
10
10
  runSupervisedKnowledgeUpdate
11
- } from "./chunk-ZOYN3JR5.js";
11
+ } from "./chunk-WMTCUOQL.js";
12
12
  import "./chunk-5QOB7H74.js";
13
- import "./chunk-B7K7V22Y.js";
14
- import "./chunk-5AITUUHO.js";
15
- import "./chunk-LFM4JBRW.js";
16
- import "./chunk-SBTWKPVR.js";
17
- import "./chunk-EAQ5YRRY.js";
13
+ import "./chunk-RDOAVVHY.js";
14
+ import "./chunk-VISA6CI3.js";
15
+ import "./chunk-UHEZW5BU.js";
16
+ import "./chunk-WSTRQZYQ.js";
17
+ import "./chunk-XBG2W2VW.js";
18
18
  import "./chunk-DPEUKJRO.js";
19
- import "./chunk-QYCKIV6C.js";
19
+ import "./chunk-YJZA2BIK.js";
20
20
  import "./chunk-UPWGXKXB.js";
21
21
  import "./chunk-2VZYRB55.js";
22
- import "./chunk-6WZZXQV5.js";
22
+ import "./chunk-HLKC4UYB.js";
23
23
  import "./chunk-ISPWRSEC.js";
24
- import "./chunk-M6MD6JBS.js";
24
+ import "./chunk-KRBFHMV6.js";
25
25
  import "./chunk-3MDZX7YU.js";
26
26
  import "./chunk-FD2MBMOH.js";
27
27
  import "./chunk-M22PL4GH.js";
@@ -172,4 +172,4 @@ declare function runLocalHarness(options: RunLocalHarnessOptions): Promise<Local
172
172
  /** Parse and validate the one terminal usage event emitted by `codex exec --json`. */
173
173
  declare function parseCodexTokenUsage(stdout: string): CodexTokenUsage;
174
174
 
175
- export { type CodexTokenUsage as C, type LocalHarness as L, type RunLocalHarnessOptions as R, type CodexExecutionEvidence as a, type LocalHarnessResult as b, type CodexExecutionPolicy as c, parseCodexTokenUsage as p, runLocalHarness as r };
175
+ export { type CodexTokenUsage as C, type LocalHarness as L, type RunLocalHarnessOptions as R, type CodexExecutionPolicy as a, type CodexExecutionEvidence as b, type LocalHarnessResult as c, parseCodexTokenUsage as p, runLocalHarness as r };
@@ -1,9 +1,7 @@
1
- import { Scenario } from '@tangle-network/agent-eval/campaign';
2
- import { SelfImproveOptions, SelfImproveResult } from '@tangle-network/agent-eval/contract';
3
1
  import { R as RunAnalystLoopOpts, a as RunAnalystLoopResult } from './types-CmYCMbFT.js';
4
2
  import { F as FactCandidate, C as CreateKbGateOptions } from './kb-gate-CwHO0vz6.js';
5
- import { B as Budget } from './types-lZTE_LBd.js';
6
- import { A as AuthoredHarness, W as WinnerStrategy, a as WorktreeFanoutOptions, b as WorktreePatchArtifact } from './worktree-fanout-DiiJWjJO.js';
3
+ import { B as Budget } from './types-CvNwMzQt.js';
4
+ import { A as AuthoredHarness, W as WinnerStrategy, a as WorktreeFanoutOptions, b as WorktreePatchArtifact } from './worktree-fanout-DxhAWr5Z.js';
7
5
 
8
6
  /**
9
7
  *
@@ -17,7 +15,7 @@ import { A as AuthoredHarness, W as WinnerStrategy, a as WorktreeFanoutOptions,
17
15
  * review → caller-registered runner — a `code` runner with an approval gate over candidates
18
16
  * research → research-in-a-loop with valid-only KB growth (createKbGate)
19
17
  * audit → analyze trace/run data → findings (runAnalystLoop, caller-wired)
20
- * self-improve → closed-loop text/config optimization (selfImprove, held-out gated)
18
+ * self-improve → caller-registered `improve(profile, options)` run
21
19
  *
22
20
  * It is intentionally a thin façade: the value is that EVERY product reuses the
23
21
  * one hardened engine instead of forking delegation logic. The dispatcher owns
@@ -98,7 +96,7 @@ interface WorktreeLoopRunnerOptions {
98
96
  * `worktreeFanout` (N `createWorktreeCliExecutor` leaves, each `gateOnDeliverable`) through
99
97
  * `runPersonified` on the keystone Supervisor. The sandbox-session counterpart that drives the in-box
100
98
  * harness over a `SandboxClient` is `detachedSessionDelegate` (`./mcp/delegates`); here there is no
101
- * `runLoop` driver, no role-coupled delegate — the harness list is the fanout, the gate is
99
+ * `runAgentRounds` driver, no role-coupled delegate — the harness list is the fanout, the gate is
102
100
  * `patchDelivered`,
103
101
  * the winner is the shared valid-only selector (NOT `defaultSelectWinner`, whose non-valid fallback
104
102
  * would surface an ungated patch). Equal-k holds by the conserved budget pool. Returns the winning
@@ -147,12 +145,6 @@ interface ResearchLoopRunnerOptions {
147
145
  * @experimental
148
146
  */
149
147
  declare function researchLoopRunner(o: ResearchLoopRunnerOptions): DelegatedLoopRunner<ResearchLoopResult>;
150
- /**
151
- * `self-improve` mode — agent-eval's one-call closed improvement loop (held-out gated).
152
- *
153
- * @experimental
154
- */
155
- declare function selfImproveLoopRunner<TScenario extends Scenario, TArtifact>(options: SelfImproveOptions<TScenario, TArtifact>): DelegatedLoopRunner<SelfImproveResult<TScenario, TArtifact>>;
156
148
  /**
157
149
  * `audit` mode — analyst loop over captured trace/run data.
158
150
  *
@@ -204,4 +196,4 @@ declare function parseLoopRunnerArgv(argv: string[]): {
204
196
  config?: string;
205
197
  };
206
198
 
207
- export { DELEGATED_LOOP_MODES as D, type LoopRunnerCliArgs as L, type ResearchLoopResult as R, type VetoedFact as V, type WorktreeLoopRunnerOptions as W, type DelegatedLoopMode as a, type DelegatedLoopRegistry as b, type DelegatedLoopResult as c, type DelegatedLoopRunner as d, type LoopRunnerCliResult as e, type ResearchLoopRunnerOptions as f, type RunDelegatedLoopOptions as g, auditLoopRunner as h, isDelegatedLoopMode as i, runDelegatedLoop as j, runLoopRunnerCli as k, parseLoopRunnerArgv as p, researchLoopRunner as r, selfImproveLoopRunner as s, worktreeLoopRunner as w };
199
+ export { DELEGATED_LOOP_MODES as D, type LoopRunnerCliArgs as L, type ResearchLoopResult as R, type VetoedFact as V, type WorktreeLoopRunnerOptions as W, type DelegatedLoopMode as a, type DelegatedLoopRegistry as b, type DelegatedLoopResult as c, type DelegatedLoopRunner as d, type LoopRunnerCliResult as e, type ResearchLoopRunnerOptions as f, type RunDelegatedLoopOptions as g, auditLoopRunner as h, isDelegatedLoopMode as i, runDelegatedLoop as j, runLoopRunnerCli as k, parseLoopRunnerArgv as p, researchLoopRunner as r, worktreeLoopRunner as w };
@@ -1,17 +1,15 @@
1
1
  #!/usr/bin/env node
2
- export { L as LoopRunnerCliArgs, e as LoopRunnerCliResult, p as parseLoopRunnerArgv, k as runLoopRunnerCli } from './loop-runner-bin-DhIXsLAd.js';
3
- import '@tangle-network/agent-eval/campaign';
4
- import '@tangle-network/agent-eval/contract';
2
+ export { L as LoopRunnerCliArgs, e as LoopRunnerCliResult, p as parseLoopRunnerArgv, k as runLoopRunnerCli } from './loop-runner-bin-68aoM9-7.js';
5
3
  import './types-CmYCMbFT.js';
6
4
  import '@tangle-network/agent-eval';
7
5
  import './kb-gate-CwHO0vz6.js';
8
- import './types-lZTE_LBd.js';
6
+ import './types-CvNwMzQt.js';
9
7
  import '@tangle-network/agent-interface';
10
8
  import '@tangle-network/sandbox';
11
- import './types-DK11_O4L.js';
9
+ import './types-BCoemcXU.js';
12
10
  import './types-BwoZWq-i.js';
13
- import './worktree-fanout-DiiJWjJO.js';
14
- import './completion-gate-DLINnrkM.js';
11
+ import './worktree-fanout-DxhAWr5Z.js';
12
+ import './completion-gate-BMy5LGoP.js';
15
13
  import '@tangle-network/agent-profile-materialize';
16
- import './local-harness-CtK9dSny.js';
14
+ import './local-harness-BDNcl6jI.js';
17
15
  import 'node:child_process';
@@ -2,18 +2,18 @@
2
2
  import {
3
3
  parseLoopRunnerArgv,
4
4
  runLoopRunnerCli
5
- } from "./chunk-AAN2MB2X.js";
5
+ } from "./chunk-HNP72PNU.js";
6
6
  import "./chunk-SGKPNBXE.js";
7
- import "./chunk-3LJF5XSE.js";
7
+ import "./chunk-WRTOVNN4.js";
8
8
  import "./chunk-Q2JSAVQ3.js";
9
- import "./chunk-EAQ5YRRY.js";
9
+ import "./chunk-XBG2W2VW.js";
10
10
  import "./chunk-DPEUKJRO.js";
11
- import "./chunk-QYCKIV6C.js";
11
+ import "./chunk-YJZA2BIK.js";
12
12
  import "./chunk-UPWGXKXB.js";
13
13
  import "./chunk-2VZYRB55.js";
14
- import "./chunk-6WZZXQV5.js";
14
+ import "./chunk-HLKC4UYB.js";
15
15
  import "./chunk-ISPWRSEC.js";
16
- import "./chunk-M6MD6JBS.js";
16
+ import "./chunk-KRBFHMV6.js";
17
17
  import "./chunk-3MDZX7YU.js";
18
18
  import "./chunk-FD2MBMOH.js";
19
19
  import "./chunk-M22PL4GH.js";
package/dist/loops.d.ts CHANGED
@@ -2,31 +2,31 @@ import { ChatClient, RunRecord, HarnessType, AgentProfile, MaximumCharge, Analys
2
2
  export { AnalystFinding, DefaultVerdict, computeFindingId, makeFinding } from '@tangle-network/agent-eval';
3
3
  import { SandboxEvent, SandboxInstance, CreateSandboxOptions, PromptOptions, TaskOptions } from '@tangle-network/sandbox';
4
4
  export { AgentProfile, CreateSandboxOptions, SandboxEvent, SandboxInstance } from '@tangle-network/sandbox';
5
- import { b as ResultBlobStore, c as SpawnJournal, N as NodeId, l as SpawnEvent, m as TreeView, P as PendingWait, a as Settled, E as ExecutorFactory, A as Agent, B as Budget, S as Scope, e as SupervisedResult, g as Spend, U as UsageEvent, n as SpawnOpts, i as ExecutorRegistry, d as WaitProbeRegistry, o as Supervisor, T as TraceSource } from './types-lZTE_LBd.js';
6
- export { p as ActivityLog, q as ActivityNote, h as AgentSpec, D as DEFAULT_STALL_AFTER_MS, f as Executor, r as ExecutorContext, k as ExecutorProgress, s as ExecutorResult, t as ResumedWork, R as Runtime, u as ScopeProgressInput, v as SessionTraceBox, w as SupervisorOpts, x as WaitOutcome, y as WaitProbe, z as WaitRejection, C as WaitSpec, F as WidenGate, W as WorkerProgress, G as createActivityLog, H as createPushTraceSource, I as createWaitProbes, J as decodeToolPart, K as isWaitOutcome, L as pollFor, M as readWorkerProgress, O as sandboxSessionTraceSource, Q as timerAt, V as validateWaitSpec, X as waitUntil } from './types-lZTE_LBd.js';
7
- import { M as MakeWorkerAgent, A as AnalystRegistry, W as WorkerWatchOptions, o as CoordinationTools, n as CoordinationEvent, at as QuestionPolicy, E as ExecutorConfig } from './coordination-DTehA977.js';
8
- export { bi as BusEvent, bj as BusRecord, bk as BusStats, bl as DEFAULT_SANDBOX_STEERING_MAX_TURNS, bm as EventBus, bn as Inbox, bo as InboxMessage, bp as PI_RUNTIME, bq as PiSeam, br as ProviderSeam, bs as PublishOptions, bt as SandboxSteeringOptions, bu as SteerableSandboxSession, bv as WatchTraceOptions, bw as cliWorktreeExecutor, bx as createEventBus, by as createExecutor, bz as createExecutorRegistry, bA as createInbox, bB as createSteerableSandboxSession, bC as defaultToolDetectors, bD as piExecutor, bE as piSeamKey, bF as watchTrace } from './coordination-DTehA977.js';
9
- import { R as RuntimeHooks, I as Iteration, S as SandboxClient, D as Driver, A as AgentRunSpec, O as OutputAdapter, V as Validator, E as ExecCtx, u as LoopWinner, v as LoopLineageOptions, w as LoopResult, L as LoopTokenUsage, M as MountRecorder } from './types-DK11_O4L.js';
10
- export { x as LoopDecisionPayload, y as LoopEndedPayload, z as LoopIterationDispatchPayload, B as LoopIterationEndedPayload, C as LoopIterationStartedPayload, F as LoopPlanDescription, G as LoopPlanPayload, b as LoopSandboxPlacement, H as LoopStartedPayload, J as LoopTeardownFailedPayload, t as LoopTraceEmitter, c as LoopTraceEvent, K as MountManifestEntry, N as RunProvenance, a as SelectionReceipt, P as ValidationCtx } from './types-DK11_O4L.js';
5
+ import { b as ResultBlobStore, c as SpawnJournal, N as NodeId, l as SpawnEvent, m as TreeView, P as PendingWait, a as Settled, E as ExecutorFactory, A as Agent, B as Budget, S as Scope, e as SupervisedResult, g as Spend, U as UsageEvent, n as SpawnOpts, i as ExecutorRegistry, d as WaitProbeRegistry, o as Supervisor, T as TraceSource } from './types-CvNwMzQt.js';
6
+ export { p as ActivityLog, q as ActivityNote, h as AgentSpec, D as DEFAULT_STALL_AFTER_MS, f as Executor, r as ExecutorContext, k as ExecutorProgress, s as ExecutorResult, t as ResumedWork, R as Runtime, u as ScopeProgressInput, v as SessionTraceBox, w as SupervisorOpts, x as WaitOutcome, y as WaitProbe, z as WaitRejection, C as WaitSpec, F as WidenGate, W as WorkerProgress, G as createActivityLog, H as createPushTraceSource, I as createWaitProbes, J as decodeToolPart, K as isWaitOutcome, L as pollFor, M as readWorkerProgress, O as sandboxSessionTraceSource, Q as timerAt, V as validateWaitSpec, X as waitUntil } from './types-CvNwMzQt.js';
7
+ import { M as MakeWorkerAgent, A as AnalystRegistry, W as WorkerWatchOptions, o as CoordinationTools, n as CoordinationEvent, at as QuestionPolicy, E as ExecutorConfig } from './coordination-BZZSVYpZ.js';
8
+ export { bi as BusEvent, bj as BusRecord, bk as BusStats, bl as DEFAULT_SANDBOX_STEERING_MAX_TURNS, bm as EventBus, bn as Inbox, bo as InboxMessage, bp as PI_RUNTIME, bq as PiSeam, br as ProviderSeam, bs as PublishOptions, bt as SandboxSteeringOptions, bu as SteerableSandboxSession, bv as WatchTraceOptions, bw as cliWorktreeExecutor, bx as createEventBus, by as createExecutor, bz as createExecutorRegistry, bA as createInbox, bB as createSteerableSandboxSession, bC as defaultToolDetectors, bD as piExecutor, bE as piSeamKey, bF as watchTrace } from './coordination-BZZSVYpZ.js';
9
+ import { R as RuntimeHooks, I as Iteration, a as SandboxClient, D as Driver, A as AgentRunSpec, O as OutputAdapter, V as Validator, E as ExecCtx, u as LoopWinner, v as LoopLineageOptions, w as LoopResult, L as LoopTokenUsage, M as MountRecorder } from './types-BCoemcXU.js';
10
+ export { x as LoopDecisionPayload, y as LoopEndedPayload, z as LoopIterationDispatchPayload, B as LoopIterationEndedPayload, C as LoopIterationStartedPayload, F as LoopPlanDescription, G as LoopPlanPayload, b as LoopSandboxPlacement, H as LoopStartedPayload, J as LoopTeardownFailedPayload, t as LoopTraceEmitter, c as LoopTraceEvent, K as MountManifestEntry, N as RunProvenance, S as SelectionReceipt, P as ValidationCtx } from './types-BCoemcXU.js';
11
11
  import { RunProfileMatrixResult, Scenario, ProfileDispatchFn, JudgeConfig, RunProfileMatrixOptions, DispatchFn } from '@tangle-network/agent-eval/campaign';
12
- export { AgentEnvironmentProviderRef, AgentEnvironmentProviderRegistry, ProviderAsSandboxClientOptions, ProviderExecutorOptions, SandboxClientProviderOptions, createAgentEnvironmentProviderRegistry, providerAsExecutor, providerAsSandboxClient, resolveAgentEnvironmentProvider, sandboxClientAsProvider } from './environment-provider.js';
13
- import { c as CorpusRecord, C as Corpus, S as ScopeAnalyzeInput, d as AssertTraceDerivedFindings, O as Outcome, e as SteerContext, f as ScopeAnalyst, F as FanoutOptions, g as CombinatorShape, h as ScopeWidenGate, L as LoopUntilSpec, P as PanelSpec, i as PipelineStage, W as WinnerStrategy, j as FanoutWinnerSelector, V as VerifySpec, k as WidenSpec, l as CorpusFilter, R as RenderCorpusToInstructionsOptions, D as DefinePersonaInput, m as Persona, n as RunPersonifiedOptions, o as ShapeRegistry, p as LoopShape, E as EqualKArm, q as EqualKOnCostOptions, r as EqualKVerdict, T as TrajectoryReportOptions, s as TrajectoryReport } from './worktree-fanout-DiiJWjJO.js';
14
- export { A as AuthoredHarness, t as DefinePersona, u as EqualKOnCost, v as Fanout, w as FanoutSynthesis, x as FlatWidenGate, y as LoopUntil, z as LoopUntilState, B as Panel, G as PanelJudge, H as PanelVerdict, I as PatchDeliverableOptions, J as PersonaContext, K as PersonaExecutors, M as Pipeline, N as RenderCorpusToInstructions, Q as RunPersonified, U as ShapeBudget, X as ShapeContext, Y as TrajectoryNode, Z as TrajectoryReportFn, _ as Verify, $ as Widen, a0 as WidenDecision, a1 as WidenLineage, a2 as WorktreeCliExecutorOptions, a as WorktreeFanoutOptions, b as WorktreePatchArtifact, a3 as createWorktreeCliExecutor, a4 as patchDelivered, a5 as worktreeFanout } from './worktree-fanout-DiiJWjJO.js';
12
+ export { AgentEnvironmentProviderRef, AgentEnvironmentProviderRegistry, CreateTangleSandboxExactProcessProviderOptions, ProviderAsSandboxClientOptions, ProviderExecutorOptions, SandboxClientProviderOptions, createAgentEnvironmentProviderRegistry, createTangleSandboxExactProcessProvider, providerAsExecutor, providerAsSandboxClient, resolveAgentEnvironmentProvider, sandboxClientAsProvider } from './environment-provider.js';
13
+ import { c as CorpusRecord, C as Corpus, S as ScopeAnalyzeInput, d as AssertTraceDerivedFindings, O as Outcome, e as SteerContext, f as ScopeAnalyst, F as FanoutOptions, g as CombinatorShape, h as ScopeWidenGate, L as LoopUntilSpec, P as PanelSpec, i as PipelineStage, W as WinnerStrategy, j as FanoutWinnerSelector, V as VerifySpec, k as WidenSpec, l as CorpusFilter, R as RenderCorpusToInstructionsOptions, D as DefinePersonaInput, m as Persona, n as RunPersonifiedOptions, o as ShapeRegistry, p as LoopShape, E as EqualKArm, q as EqualKOnCostOptions, r as EqualKVerdict, T as TrajectoryReportOptions, s as TrajectoryReport } from './worktree-fanout-DxhAWr5Z.js';
14
+ export { A as AuthoredHarness, t as DefinePersona, u as EqualKOnCost, v as Fanout, w as FanoutSynthesis, x as FlatWidenGate, y as LoopUntil, z as LoopUntilState, B as Panel, G as PanelJudge, H as PanelVerdict, I as PatchDeliverableOptions, J as PersonaContext, K as PersonaExecutors, M as Pipeline, N as RenderCorpusToInstructions, Q as RunPersonified, U as ShapeBudget, X as ShapeContext, Y as TrajectoryNode, Z as TrajectoryReportFn, _ as Verify, $ as Widen, a0 as WidenDecision, a1 as WidenLineage, a2 as WorktreeCliExecutorOptions, a as WorktreeFanoutOptions, b as WorktreePatchArtifact, a3 as createWorktreeCliExecutor, a4 as patchDelivered, a5 as worktreeFanout } from './worktree-fanout-DxhAWr5Z.js';
15
15
  import { AgentProfileMcpServer, AgentProfile as AgentProfile$1, AgentProfileSecurityPolicy } from '@tangle-network/agent-interface';
16
- import { A as AgenticSurface, a as AgenticTask, b as AgenticOptions, c as Strategy, d as ArtifactHandle, e as SurfaceScore, f as AgenticTool } from './structural-rollout-BFPIy3iw.js';
17
- export { g as AgenticRunResult, C as CheckExecChannel, h as CheckOutcome, i as CheckRunContext, j as CheckRunner, k as CheckSource, l as CheckSourceCtx, m as CorpusReadbackOptions, R as RepairStop, n as RunAgenticOptions, o as ShotPersona, p as ShotSpec, q as StrategyCtx, r as StrategyResult, s as StructuralRolloutConfig, S as StructuralRolloutPolicy, t as StructuralRolloutResult, V as VisibleCheck, u as adaptiveRefine, v as breadthStrategy, w as canDisplace, x as compareCheckOutcomes, y as composeCheckSources, z as defaultExtractCandidate, B as defaultStructuralRolloutPolicy, D as defineStrategy, E as depthStrategy, F as filterAuthoredAsserts, G as modelAuthoredChecks, H as officialChecksFromMeta, I as refine, J as resolveEntrySymbol, K as runAgentic, L as sample, M as sampleThenRefine, N as sandboxCheckRunner, O as selectBestIndex, P as structuralRollout, Q as visibleCheckScore } from './structural-rollout-BFPIy3iw.js';
16
+ import { A as AgenticSurface, a as AgenticTask, b as AgenticOptions, c as Strategy, d as ArtifactHandle, e as SurfaceScore, f as AgenticTool } from './structural-rollout-DEh6CEsa.js';
17
+ export { g as AgenticRunResult, C as CheckExecChannel, h as CheckOutcome, i as CheckRunContext, j as CheckRunner, k as CheckSource, l as CheckSourceCtx, m as CorpusReadbackOptions, R as RepairStop, n as RunAgenticOptions, o as ShotPersona, p as ShotSpec, q as StrategyCtx, r as StrategyResult, s as StructuralRolloutConfig, S as StructuralRolloutPolicy, t as StructuralRolloutResult, V as VisibleCheck, u as adaptiveRefine, v as breadthStrategy, w as canDisplace, x as compareCheckOutcomes, y as composeCheckSources, z as defaultExtractCandidate, B as defaultStructuralRolloutPolicy, D as defineStrategy, E as depthStrategy, F as filterAuthoredAsserts, G as modelAuthoredChecks, H as officialChecksFromMeta, I as refine, J as resolveEntrySymbol, K as runAgentic, L as sample, M as sampleThenRefine, N as sandboxCheckRunner, O as selectBestIndex, P as structuralRollout, Q as visibleCheckScore } from './structural-rollout-DEh6CEsa.js';
18
18
  import { b as AnalystRegistryLike } from './types-CmYCMbFT.js';
19
19
  import { R as RouterConfig, T as ToolLoopChat, a as ToolLoopCompactionOptions } from './sanitize-DEbPNtyI.js';
20
20
  export { j as RouterChatResult, k as RouterChatToolsResult, l as RouterToolCall, m as RouterToolLoopResult, n as ToolLoopCompaction, b as ToolSpec, r as routerBrain, o as routerChatWithTools, p as routerChatWithUsage, q as routerToolLoop } from './sanitize-DEbPNtyI.js';
21
21
  import { R as RuntimeStreamEvent, c as AgentExecutionBackend, f as AgentTaskStatus, B as BackendErrorDetail } from './types-BwoZWq-i.js';
22
- import { D as DeliverableSpec } from './completion-gate-DLINnrkM.js';
23
- export { g as WorktreeCommandResult, h as WorktreeProfileMaterializationReceipt, i as gateOnDeliverable } from './completion-gate-DLINnrkM.js';
24
- import { S as StopRule, a as SupervisorProfile } from './supervise-Cp8bNcJi.js';
25
- export { A as AllWorkersStalledOptions, D as DriveHarness, N as NoProgressForOptions, P as PlateauOptions, b as ProgressSample, c as ProgressTracker, d as ProgressTrackerOptions, e as ProgressView, f as StopDecision, g as SuperviseOptions, h as SupervisorAgentDeps, i as allOf, j as allWorkersStalled, k as anyOf, l as createProgressTracker, n as noProgressFor, p as plateau, s as sampleFromSettled, m as supervise, o as supervisorAgent, w as workerFromBackend } from './supervise-Cp8bNcJi.js';
22
+ import { D as DeliverableSpec } from './completion-gate-BMy5LGoP.js';
23
+ export { g as WorktreeCommandResult, h as WorktreeProfileMaterializationReceipt, i as gateOnDeliverable } from './completion-gate-BMy5LGoP.js';
24
+ import { S as StopRule, a as SupervisorProfile } from './supervise-4_48wwvy.js';
25
+ export { A as AllWorkersStalledOptions, D as DriveHarness, N as NoProgressForOptions, P as PlateauOptions, b as ProgressSample, c as ProgressTracker, d as ProgressTrackerOptions, e as ProgressView, f as StopDecision, g as SuperviseOptions, h as SupervisorAgentDeps, i as allOf, j as allWorkersStalled, k as anyOf, l as createProgressTracker, n as noProgressFor, p as plateau, s as sampleFromSettled, m as supervise, o as supervisorAgent, w as workerFromBackend } from './supervise-4_48wwvy.js';
26
26
  import { stuckLoopView, toolWasteView } from '@tangle-network/agent-eval/pipelines';
27
27
  export { AgentEnvironment, AgentEnvironmentCapabilities, AgentEnvironmentEvent, AgentEnvironmentProvider, AgentEnvironmentQuery, AgentEnvironmentStatus, AgentEnvironmentSummary, AgentProfileRef, AgentSession, AgentSessionRef, AgentSessionStatus, AgentTurnInput, AgentTurnResult, CheckpointRef, CheckpointRequest, CreateAgentEnvironmentInput, ExecRequest, ExecResult, ForkRequest, PlacementInfo, ResourceRequest, WorkspaceRequest } from '@tangle-network/agent-interface/environment-provider';
28
28
  import './substrate-Dyiqmd3o.js';
29
- import './local-harness-CtK9dSny.js';
29
+ import './local-harness-BDNcl6jI.js';
30
30
  import 'node:child_process';
31
31
  import '@tangle-network/agent-profile-materialize';
32
32
 
@@ -948,7 +948,7 @@ interface InProcessSandboxClientOptions {
948
948
  }
949
949
  /**
950
950
  * Adapt a single `onPrompt(prompt, ctx)` callback into a `SandboxClient` for
951
- * `runLoop` / `openSandboxRun`. Returns a PROPERLY-TYPED `SandboxClient`: the
951
+ * `runAgentRounds` / `openSandboxRun`. Returns a PROPERLY-TYPED `SandboxClient`: the
952
952
  * lone `SandboxInstance` cast (object literal → `declare class`) lives inside
953
953
  * this function, so call sites stay cast-free.
954
954
  *
@@ -957,7 +957,7 @@ interface InProcessSandboxClientOptions {
957
957
  declare function inProcessSandboxClient(options: InProcessSandboxClientOptions): SandboxClient;
958
958
 
959
959
  /**
960
- * Adapt an `ExecutorFactory` into a `SandboxClient` for `runLoop`. The factory is
960
+ * Adapt an `ExecutorFactory` into a `SandboxClient` for `runAgentRounds`. The factory is
961
961
  * instantiated fresh per `streamPrompt` (mirrors the per-spawn executor lifecycle):
962
962
  * run once on the prompt, emit the terminal result event, tear down.
963
963
  */
@@ -1062,7 +1062,7 @@ declare function localSandboxClient(opts: LocalSandboxClientOptions): SandboxCli
1062
1062
 
1063
1063
  /**
1064
1064
  *
1065
- * `runLoop` — the topology-agnostic kernel built atop the sandbox SDK.
1065
+ * `runAgentRounds` — the topology-agnostic kernel built atop the sandbox SDK.
1066
1066
  *
1067
1067
  * Each iteration:
1068
1068
  * 1. `driver.plan(task, history)` → N tasks (1 = refine, N = fanout, 0 = stop)
@@ -1087,7 +1087,7 @@ declare function localSandboxClient(opts: LocalSandboxClientOptions): SandboxCli
1087
1087
  */
1088
1088
 
1089
1089
  /** @experimental */
1090
- interface RunLoopOptions<Task, Output, Decision> {
1090
+ interface RunAgentRoundsOptions<Task, Output, Decision> {
1091
1091
  driver: Driver<Task, Output, Decision>;
1092
1092
  /**
1093
1093
  * Single agent spec — every iteration uses this profile. Mutually
@@ -1152,11 +1152,36 @@ interface RunLoopOptions<Task, Output, Decision> {
1152
1152
  lineage?: LoopLineageOptions;
1153
1153
  }
1154
1154
  /**
1155
- * The round-synchronous loop kernel: each round `driver.plan()` fans N tasks to sandboxes (bounded concurrency), parses + validates each output, and folds results through `driver.decide`.
1155
+ * The round-synchronous MULTI-AGENT kernel: each round `driver.plan()` fans N tasks
1156
+ * out to N sandboxes (bounded concurrency), parses + validates each output, and folds
1157
+ * the round's results through `driver.decide` — fanout → validate → vote/select →
1158
+ * refine, repeated until the driver says stop. One call spans many agent sessions.
1159
+ *
1160
+ * Not to be confused with `runToolLoop` / `streamToolLoop` (package root entry): those
1161
+ * run ONE chat turn against ONE model, dispatching the tool calls that turn emits and
1162
+ * folding the results back in until the model stops calling tools. No sandboxes, no
1163
+ * rounds, no winner selection.
1156
1164
  *
1157
1165
  * @experimental
1158
1166
  */
1159
- declare function runLoop<Task, Output, Decision>(options: RunLoopOptions<Task, Output, Decision>): Promise<LoopResult<Task, Output, Decision>>;
1167
+ declare function runAgentRounds<Task, Output, Decision>(options: RunAgentRoundsOptions<Task, Output, Decision>): Promise<LoopResult<Task, Output, Decision>>;
1168
+ /**
1169
+ * Pre-rename name for {@link runAgentRounds}; identical function, kept so existing
1170
+ * call sites keep working.
1171
+ *
1172
+ * @deprecated Use {@link runAgentRounds}. The clearer name says what it is: the
1173
+ * multi-agent fanout/vote/refine kernel over sandboxes, NOT the one-turn tool loop
1174
+ * (`runToolLoop` / `streamToolLoop`, package root entry). `runLoop` shipped on `/loops`
1175
+ * next to `routerToolLoop`, which made the two read as variants of one thing. The alias
1176
+ * is removed in the next major.
1177
+ */
1178
+ declare const runLoop: typeof runAgentRounds;
1179
+ /**
1180
+ * Pre-rename name for {@link RunAgentRoundsOptions}.
1181
+ *
1182
+ * @deprecated Use {@link RunAgentRoundsOptions}. Removed in the next major.
1183
+ */
1184
+ type RunLoopOptions<Task, Output, Decision> = RunAgentRoundsOptions<Task, Output, Decision>;
1160
1185
  /**
1161
1186
  * The kernel's winner argmax — best-valid-score, ties broken by earliest index,
1162
1187
  * falling back to the best-scoring non-errored output when none is valid. Exported
@@ -1167,9 +1192,9 @@ declare function runLoop<Task, Output, Decision>(options: RunLoopOptions<Task, O
1167
1192
  declare function defaultSelectWinner<Task, Output>(iterations: Iteration<Task, Output>[]): LoopWinner<Task, Output> | undefined;
1168
1193
 
1169
1194
  /**
1170
- * `loopDispatch` — turn `runLoop` into an agent-eval campaign dispatch.
1195
+ * `loopDispatch` — turn `runAgentRounds` into an agent-eval campaign dispatch.
1171
1196
  *
1172
- * Without this adapter a consumer wiring `runLoop` into `runProfileMatrix` /
1197
+ * Without this adapter a consumer wiring `runAgentRounds` into `runProfileMatrix` /
1173
1198
  * `runCampaign` has to, by hand, every time: (a) build an `ExecCtx` with a
1174
1199
  * sandbox client, (b) adapt the campaign `DispatchContext.trace` into a
1175
1200
  * `LoopTraceEmitter` (or lose all loop trace correlation), and (c) remember to
@@ -1195,12 +1220,12 @@ declare function defaultSelectWinner<Task, Output>(iterations: Iteration<Task, O
1195
1220
  * inversion.
1196
1221
  */
1197
1222
 
1198
- /** runLoop options minus the `ctx` (loopDispatch builds the ctx). */
1199
- type LoopOptionsForDispatch<Task, Output, Decision> = Omit<RunLoopOptions<Task, Output, Decision>, 'ctx'>;
1223
+ /** runAgentRounds options minus the `ctx` (loopDispatch builds the ctx). */
1224
+ type LoopOptionsForDispatch<Task, Output, Decision> = Omit<RunAgentRoundsOptions<Task, Output, Decision>, 'ctx'>;
1200
1225
  interface LoopDispatchOptions<Task, Output, Decision, TScenario extends Scenario, TArtifact> {
1201
- /** Sandbox client used for every cell's `runLoop`. Supplied once. */
1226
+ /** Sandbox client used for every cell's `runAgentRounds`. Supplied once. */
1202
1227
  sandboxClient: SandboxClient;
1203
- /** Build the per-cell runLoop options from the scenario (+ profile, when
1228
+ /** Build the per-cell runAgentRounds options from the scenario (+ profile, when
1204
1229
  * used with `runProfileMatrix`). */
1205
1230
  toLoopOptions: (scenario: TScenario, profile: AgentProfile) => LoopOptionsForDispatch<Task, Output, Decision>;
1206
1231
  /** Map the finished loop to the artifact the judges score. Default:
@@ -1219,11 +1244,11 @@ interface LoopDispatchOptions<Task, Output, Decision, TScenario extends Scenario
1219
1244
  /** Resolve the model actually served from the completed loop. */
1220
1245
  resolveCostModel?: (result: LoopResult<Task, Output, Decision>, scenario: TScenario, profile: AgentProfile) => string | undefined;
1221
1246
  }
1222
- /** Options for adapting plain agent-eval campaign scenarios into runtime `runLoop` cells. */
1247
+ /** Options for adapting plain agent-eval campaign scenarios into runtime `runAgentRounds` cells. */
1223
1248
  interface LoopCampaignDispatchOptions<Task, Output, Decision, TScenario extends Scenario, TArtifact> {
1224
- /** Sandbox client used for every campaign cell's `runLoop`. */
1249
+ /** Sandbox client used for every campaign cell's `runAgentRounds`. */
1225
1250
  sandboxClient: SandboxClient;
1226
- /** Build the per-cell runLoop options from the campaign scenario. */
1251
+ /** Build the per-cell runAgentRounds options from the campaign scenario. */
1227
1252
  toLoopOptions: (scenario: TScenario) => LoopOptionsForDispatch<Task, Output, Decision>;
1228
1253
  /** Map the finished loop to the artifact the campaign judges score. */
1229
1254
  toArtifact?: (result: LoopResult<Task, Output, Decision>) => TArtifact;
@@ -1244,7 +1269,7 @@ interface LoopCampaignDispatchOptions<Task, Output, Decision, TScenario extends
1244
1269
  declare function loopCampaignDispatch<Task, Output, Decision, TScenario extends Scenario, TArtifact>(opts: LoopCampaignDispatchOptions<Task, Output, Decision, TScenario, TArtifact>): DispatchFn<TScenario, TArtifact>;
1245
1270
  /**
1246
1271
  * Adapter for `runProfileMatrix` (profile is an axis). Returns a
1247
- * `ProfileDispatchFn` that runs `runLoop` per (profile, scenario) cell and
1272
+ * `ProfileDispatchFn` that runs `runAgentRounds` per (profile, scenario) cell and
1248
1273
  * reports usage automatically.
1249
1274
  */
1250
1275
  declare function loopDispatch<Task, Output, Decision, TScenario extends Scenario, TArtifact>(opts: LoopDispatchOptions<Task, Output, Decision, TScenario, TArtifact>): ProfileDispatchFn<TScenario, TArtifact>;
@@ -1839,16 +1864,16 @@ interface PromotionVerdict {
1839
1864
  declare function promotionGate(opts: PromotionGateOptions): PromotionVerdict;
1840
1865
 
1841
1866
  /**
1842
- * Bridge a finished `runLoop` into an agent-eval campaign / profile-matrix
1867
+ * Bridge a finished `runAgentRounds` into an agent-eval campaign / profile-matrix
1843
1868
  * dispatch.
1844
1869
  *
1845
1870
  * `runProfileMatrix` (and `runCampaign`) run the backend-integrity guard over
1846
1871
  * the token usage a dispatch reports through `ctx.cost`. A dispatch that wraps
1847
- * `runLoop` must forward the loop's cost AND token usage, or the guard reads
1872
+ * `runAgentRounds` must forward the loop's cost AND token usage, or the guard reads
1848
1873
  * the run as a stub and throws. `reportLoopUsage` is that one line:
1849
1874
  *
1850
1875
  * const dispatch: ProfileDispatchFn<S, A> = async (profile, scenario, ctx) => {
1851
- * const result = await runLoop({ ...optsFor(profile, scenario), ctx: loopCtx })
1876
+ * const result = await runAgentRounds({ ...optsFor(profile, scenario), ctx: loopCtx })
1852
1877
  * reportLoopUsage(ctx, result)
1853
1878
  * return result.winner?.output as A
1854
1879
  * }
@@ -1872,7 +1897,7 @@ declare function reportLoopUsage<Task, Output, Decision>(cost: UsageSink, result
1872
1897
 
1873
1898
  /**
1874
1899
  * The product-facing backend selector: one call picks the execution transport a
1875
- * `runLoop` (or any consumer that drives a `SandboxClient`) runs on, from the
1900
+ * `runAgentRounds` (or any consumer that drives a `SandboxClient`) runs on, from the
1876
1901
  * package a product already depends on. It is pure sugar over the existing
1877
1902
  * primitives — `createExecutor({ backend })` + `inlineSandboxClient` — and adds
1878
1903
  * ZERO transport code (the node:http cli-bridge transport lives in `bridgeExecutor`).
@@ -2162,7 +2187,7 @@ declare function mapSandboxEvent(event: SandboxEvent, opts?: {
2162
2187
  /**
2163
2188
  *
2164
2189
  * `SandboxLineage` — the backend-blind owner of box + session handles for a
2165
- * single `runLoop` invocation. It exists so `run-loop.ts` never references a
2190
+ * single `runAgentRounds` invocation. It exists so `run-loop.ts` never references a
2166
2191
  * backend (Docker / Firecracker): the lineage turns "continue this session" and
2167
2192
  * "fork this branch" into capability-gated sandbox-SDK calls and degrades to
2168
2193
  * fresh boxes when a capability is absent.
@@ -2337,7 +2362,7 @@ interface SessionCapableBox {
2337
2362
  * reconnect/replay (the SDK + platform own per-session buffering + `Last-Event-ID`);
2338
2363
  * no fork verb (platform CRIU is probe-gated and currently absent — fork lives in
2339
2364
  * `SandboxLineage.fork` behind the capability probe, surfaced only if it returns).
2340
- * It is also distinct from `runLoop`: `runLoop` is the multi-round, driver-driven
2365
+ * It is also distinct from `runAgentRounds`: `runAgentRounds` is the multi-round, driver-driven
2341
2366
  * kernel (fresh box per round, events deliverable); this is a SINGLE rollout +
2342
2367
  * artifact-or-events deliverable + resume over ONE persistent box.
2343
2368
  */
@@ -2593,7 +2618,7 @@ declare function materializeLocalMcp(profile: AgentProfile$1, opts?: Materialize
2593
2618
  * `(task, text) => ({ ...task, prompt: text })`.
2594
2619
  *
2595
2620
  * They consume nothing the loop kernel does not already give `plan()`/`decide()`
2596
- * — `runLoop` requires no change. A benchmark picks a driver by name and the
2621
+ * — `runAgentRounds` requires no change. A benchmark picks a driver by name and the
2597
2622
  * kernel does the rest.
2598
2623
  *
2599
2624
  * @experimental
@@ -3616,7 +3641,7 @@ declare function delegate<Out = unknown>(intent: string, opts?: DelegateOptions<
3616
3641
  * level. How many workers may be spawned-but-not-settled at once; `spawn_agent` fails closed
3617
3642
  * with `error: 'max-live-workers'` past it. Unset by default ⇒ NO cap at this layer.
3618
3643
  * 2. `SandboxLineage`'s `maxConcurrency` / `DEFAULT_FORK_CONCURRENCY = 4`
3619
- * (`src/runtime/sandbox-lineage.ts`) — kernel level. How many BOXES one `runLoop` fork wave
3644
+ * (`src/runtime/sandbox-lineage.ts`) — kernel level. How many BOXES one `runAgentRounds` fork wave
3620
3645
  * provisions at once. It bounds a single leaf's fanout, not the supervisor's worker count.
3621
3646
  * 3. A host's own live-box governor (e.g. loops' `ComputeGovernor`, `maxSandboxes = 4`) — fleet
3622
3647
  * level. How many sandboxes may exist across the whole host process.
@@ -3877,7 +3902,7 @@ interface ScopeArgs {
3877
3902
  /** Injected clock — keeps the journal `at` timestamp deterministic in tests. */
3878
3903
  readonly now?: () => number;
3879
3904
  /** Lifecycle stream sink. `spawn` emits `agent.spawn`, `next` emits `agent.child` — the
3880
- * SAME stream `runLoop`/`tool-loop` feed, so the recursive tree is ONE observable stream
3905
+ * SAME stream `runAgentRounds`/`tool-loop` feed, so the recursive tree is ONE observable stream
3881
3906
  * (the topology viewer reads it). Undefined ⇒ the journal stays the only record. */
3882
3907
  readonly hooks?: RuntimeHooks;
3883
3908
  /**
@@ -4136,4 +4161,4 @@ declare function runInWorkspace<T>(ws: Workspace, body: (cwd: string) => Promise
4136
4161
  commitOnInvalid?: boolean;
4137
4162
  }): Promise<WorkspaceRun<T>>;
4138
4163
 
4139
- export { Agent, AgentRunSpec, type AgentTurnBackend, type AgentTurnUsage, AgenticOptions, AgenticSurface, AgenticTask, AgenticTool, AnalystRegistry, type AnytimeReport, type AnytimeStrategySummary, type AnytimeTaskCurve, type ApplyContinuation, ArtifactHandle, AssertTraceDerivedFindings, type AuditIntentInput, type AuditIntentOptions, type AuthorStrategyOptions, type AuthoredProfile, type AuthoredStrategy, type BenchmarkCell, type BenchmarkConfig, type BenchmarkLift, type BenchmarkReport, type BenchmarkStrategySummary, type BenchmarkTaskRow, Budget, type BudgetPool, type BudgetReadout, type ChampionPick, type ChampionPolicy, type CheckpointCapableBox, type CollectedAgentTurn, CombinatorShape, type CompletionAnalyst, type CompletionEvidence, type CompletionPolicy, type CompletionVerdict, type ConcurrencyCaps, CoordinationEvent, type CoordinationMcpHandle, Corpus, CorpusFilter, CorpusRecord, type CreateScopeAnalystOptions, type CriuCapableClient, DefinePersonaInput, type DefinedLeaderboard, type DelegateOptions, type Deliverable, DeliverableSpec, type DispatchReport, type DispatchStopReason, type DispatchUnit, Driver, type DriverAgentOptions, type DumbDriverOptions, type Environment, EqualKArm, EqualKOnCostOptions, EqualKVerdict, type EvolutionArchiveNode, type EvolutionAuthor, type EvolutionBandInfo, type EvolutionCandidate, type EvolutionGeneration, type EvolutionReport, ExecCtx, ExecutorConfig, ExecutorFactory, ExecutorRegistry, FanoutOptions, FanoutWinnerSelector, FileCorpus, FileResultBlobStore, FileSpawnJournal, type ForkCapableBox, type GitWorkspaceOptions, type HarvestCorpusOptions, type HarvestFailure, type HarvestReport, InMemoryCorpus, InMemoryResultBlobStore, type InMemoryRunContext, type InMemoryRunContextOptions, InMemorySpawnJournal, type InProcessOnPrompt, type InProcessPromptCtx, type InProcessSandboxClientOptions, type IntentAudit, type Interval, Iteration, type KeyProvider, type Leaderboard, type LeaderboardBenchScore, type LeaderboardBenchTask, type LeaderboardBenchmarkAdapter, type LeaderboardFlagSpec, type LeaderboardIterationInfo, type LeaderboardOptions, type LeaderboardRow, type LeaderboardRunContext, type LeaderboardScenario, type LeaderboardScore, type LeaderboardSpec, type LocalMcpMaterialization, type LocalSandboxClientOptions, type LoopCampaignDispatchOptions, type LoopDispatchOptions, LoopLineageOptions, type LoopOptionsForDispatch, LoopResult, LoopShape, LoopTokenUsage, LoopUntilSpec, LoopWinner, MakeWorkerAgent, type MaterializeLocalMcpOptions, type McpEndpoint, type McpEnvironmentOptions, McpSpawnFault, type McpToolDescriptor, MountRecorder, type NaiveDriverOptions, NodeId, type Observation, type ObserveInput, type ObserveOptions, type OpenSandboxRunBeforeStartContext, type OpenSandboxRunOptions, type OpenSandboxRunPromptOptions, Outcome, OutputAdapter, type PairwiseOptions, type PairwiseVerdict, PanelSpec, PendingWait, Persona, PipelineStage, type ProfileRichness, type ProfileRichnessThresholds, type PromotionGateOptions, type PromotionVerdict, type RegistryAnalyzeProjection, RenderCorpusToInstructionsOptions, type ReservationTicket, type ResolveSandboxClientOptions, ResultBlobStore, type RollingDispatchOptions, RouterConfig, type RunContext, RunPersonifiedOptions, type SandboxCapabilities, SandboxClient, type SandboxLineage, type SandboxLineageHandle, type SandboxRun, SandboxRunAbortError, type SandboxToolPartState, Scope, ScopeAnalyst, ScopeAnalyzeInput, ScopeWidenGate, type SessionCapableBox, Settled, ShapeRegistry, type Shell, SpawnEvent, SpawnJournal, SpawnOpts, Spend, type StdioMcpConnection, type StdioMcpServerSpec, SteerContext, type SteeringDecision, StopRule, Strategy, type StrategyEvolutionConfig, type StreamAgentTurnOptions, type SuperviseSurfaceOptions, type SuperviseSurfaceResult, SupervisedResult, Supervisor, SupervisorProfile, SurfaceScore, type SurfaceWorkerConfig, type SurfaceWorkerOut, ToolLoopChat, ToolLoopCompactionOptions, TraceSource, type TrajectoryAnalysis, TrajectoryReport, TrajectoryReportOptions, TreeView, type TurnResult, UsageEvent, type UsageSink, Validator, type VerifierEnvironmentOptions, VerifySpec, WaitProbeRegistry, type WaterfallCollector, type WaterfallReport, type WaterfallSpan, WidenSpec, WinnerStrategy, type Workspace, type WorkspaceCommit, type WorkspaceRun, acquireSandbox, analyzeTrace, anytimeReport, areaUnderCurve, asAuthoredProfile, assertModelAllowed, assertStrategyContract, assertTraceDerivedFindings, assessAuthoredProfile, auditIntent, authorStrategy, authoredWorker, bestSoFar, buildSteerContext, builtinShapes, collectAgentTurn, completionAuthorizes, connectStdioMcp, contentAddress, createBudgetPool, createFileRunContext, createInMemoryRunContext, createMcpEnvironment, createSandboxLineage, createSandboxToolPartState, createScope, createScopeAnalyst, createShapeRegistry, createSupervisor, createVerifierEnvironment, createWaterfallCollector, defaultAnalystInstruction, defaultAuditorInstruction, defaultDelegateBudget, defaultProfileRichnessThresholds, defaultSelectWinner, defineLeaderboard, definePersona, delegate, deterministicCompletion, discriminatingMeans, driverAgent, dumbDriver, effectiveConcurrency, envKeyProvider, equalKOnCost, extractLlmCallEvent, failuresAnalyst, fanout, finalizeBestDelivered, flatWidenGate, freeSlots, gitWorkspace, harvestCorpus, inProcessSandboxClient, inlineSandboxClient, jjWorkspace, leaderboard, localSandboxClient, localShell, loopCampaignDispatch, loopDispatch, loopUntil, mapSandboxEvent, mapSandboxToolEvent, materializeLocalMcp, materializeTreeView, mcpSecretEnvMetadataKey, naiveDriver, observe, openSandboxRun, pairwiseSignificance, panel, pendingWaits, pickChampion, pipeline, plateauLength, printBenchmarkReport, probeSandboxCapabilities, profileRichnessFinding, promotionGate, queueOf, registerShape, registryScopeAnalyst, renderAnytimeTable, renderCorpusToInstructions, renderLeaderboardHtml, renderLeaderboardMarkdown, renderLeaderboardSvg, renderPairwiseMarkdown, renderReport, replaySpawnTree, reportLoopUsage, resolveSandboxClient, resolveSecretEnv, rollingDispatch, runBenchmark, runInWorkspace, runLoop, runPersonified, runStrategyEvolution, sanitizeMcpToolSchema, secretEnvOfMcpServer, selectChampion, selectValidWinner, sentinelCompletion, serveCoordinationMcp, settledToIteration, spendFromUsageEvents, stopSentinel, strategyAuthorContract, streamAgentTurn, sumSandboxUsage, superviseSurface, supervisorInstructions, trajectoryReport, verify, widen };
4164
+ export { Agent, AgentRunSpec, type AgentTurnBackend, type AgentTurnUsage, AgenticOptions, AgenticSurface, AgenticTask, AgenticTool, AnalystRegistry, type AnytimeReport, type AnytimeStrategySummary, type AnytimeTaskCurve, type ApplyContinuation, ArtifactHandle, AssertTraceDerivedFindings, type AuditIntentInput, type AuditIntentOptions, type AuthorStrategyOptions, type AuthoredProfile, type AuthoredStrategy, type BenchmarkCell, type BenchmarkConfig, type BenchmarkLift, type BenchmarkReport, type BenchmarkStrategySummary, type BenchmarkTaskRow, Budget, type BudgetPool, type BudgetReadout, type ChampionPick, type ChampionPolicy, type CheckpointCapableBox, type CollectedAgentTurn, CombinatorShape, type CompletionAnalyst, type CompletionEvidence, type CompletionPolicy, type CompletionVerdict, type ConcurrencyCaps, CoordinationEvent, type CoordinationMcpHandle, Corpus, CorpusFilter, CorpusRecord, type CreateScopeAnalystOptions, type CriuCapableClient, DefinePersonaInput, type DefinedLeaderboard, type DelegateOptions, type Deliverable, DeliverableSpec, type DispatchReport, type DispatchStopReason, type DispatchUnit, Driver, type DriverAgentOptions, type DumbDriverOptions, type Environment, EqualKArm, EqualKOnCostOptions, EqualKVerdict, type EvolutionArchiveNode, type EvolutionAuthor, type EvolutionBandInfo, type EvolutionCandidate, type EvolutionGeneration, type EvolutionReport, ExecCtx, ExecutorConfig, ExecutorFactory, ExecutorRegistry, FanoutOptions, FanoutWinnerSelector, FileCorpus, FileResultBlobStore, FileSpawnJournal, type ForkCapableBox, type GitWorkspaceOptions, type HarvestCorpusOptions, type HarvestFailure, type HarvestReport, InMemoryCorpus, InMemoryResultBlobStore, type InMemoryRunContext, type InMemoryRunContextOptions, InMemorySpawnJournal, type InProcessOnPrompt, type InProcessPromptCtx, type InProcessSandboxClientOptions, type IntentAudit, type Interval, Iteration, type KeyProvider, type Leaderboard, type LeaderboardBenchScore, type LeaderboardBenchTask, type LeaderboardBenchmarkAdapter, type LeaderboardFlagSpec, type LeaderboardIterationInfo, type LeaderboardOptions, type LeaderboardRow, type LeaderboardRunContext, type LeaderboardScenario, type LeaderboardScore, type LeaderboardSpec, type LocalMcpMaterialization, type LocalSandboxClientOptions, type LoopCampaignDispatchOptions, type LoopDispatchOptions, LoopLineageOptions, type LoopOptionsForDispatch, LoopResult, LoopShape, LoopTokenUsage, LoopUntilSpec, LoopWinner, MakeWorkerAgent, type MaterializeLocalMcpOptions, type McpEndpoint, type McpEnvironmentOptions, McpSpawnFault, type McpToolDescriptor, MountRecorder, type NaiveDriverOptions, NodeId, type Observation, type ObserveInput, type ObserveOptions, type OpenSandboxRunBeforeStartContext, type OpenSandboxRunOptions, type OpenSandboxRunPromptOptions, Outcome, OutputAdapter, type PairwiseOptions, type PairwiseVerdict, PanelSpec, PendingWait, Persona, PipelineStage, type ProfileRichness, type ProfileRichnessThresholds, type PromotionGateOptions, type PromotionVerdict, type RegistryAnalyzeProjection, RenderCorpusToInstructionsOptions, type ReservationTicket, type ResolveSandboxClientOptions, ResultBlobStore, type RollingDispatchOptions, RouterConfig, type RunAgentRoundsOptions, type RunContext, type RunLoopOptions, RunPersonifiedOptions, type SandboxCapabilities, SandboxClient, type SandboxLineage, type SandboxLineageHandle, type SandboxRun, SandboxRunAbortError, type SandboxToolPartState, Scope, ScopeAnalyst, ScopeAnalyzeInput, ScopeWidenGate, type SessionCapableBox, Settled, ShapeRegistry, type Shell, SpawnEvent, SpawnJournal, SpawnOpts, Spend, type StdioMcpConnection, type StdioMcpServerSpec, SteerContext, type SteeringDecision, StopRule, Strategy, type StrategyEvolutionConfig, type StreamAgentTurnOptions, type SuperviseSurfaceOptions, type SuperviseSurfaceResult, SupervisedResult, Supervisor, SupervisorProfile, SurfaceScore, type SurfaceWorkerConfig, type SurfaceWorkerOut, ToolLoopChat, ToolLoopCompactionOptions, TraceSource, type TrajectoryAnalysis, TrajectoryReport, TrajectoryReportOptions, TreeView, type TurnResult, UsageEvent, type UsageSink, Validator, type VerifierEnvironmentOptions, VerifySpec, WaitProbeRegistry, type WaterfallCollector, type WaterfallReport, type WaterfallSpan, WidenSpec, WinnerStrategy, type Workspace, type WorkspaceCommit, type WorkspaceRun, acquireSandbox, analyzeTrace, anytimeReport, areaUnderCurve, asAuthoredProfile, assertModelAllowed, assertStrategyContract, assertTraceDerivedFindings, assessAuthoredProfile, auditIntent, authorStrategy, authoredWorker, bestSoFar, buildSteerContext, builtinShapes, collectAgentTurn, completionAuthorizes, connectStdioMcp, contentAddress, createBudgetPool, createFileRunContext, createInMemoryRunContext, createMcpEnvironment, createSandboxLineage, createSandboxToolPartState, createScope, createScopeAnalyst, createShapeRegistry, createSupervisor, createVerifierEnvironment, createWaterfallCollector, defaultAnalystInstruction, defaultAuditorInstruction, defaultDelegateBudget, defaultProfileRichnessThresholds, defaultSelectWinner, defineLeaderboard, definePersona, delegate, deterministicCompletion, discriminatingMeans, driverAgent, dumbDriver, effectiveConcurrency, envKeyProvider, equalKOnCost, extractLlmCallEvent, failuresAnalyst, fanout, finalizeBestDelivered, flatWidenGate, freeSlots, gitWorkspace, harvestCorpus, inProcessSandboxClient, inlineSandboxClient, jjWorkspace, leaderboard, localSandboxClient, localShell, loopCampaignDispatch, loopDispatch, loopUntil, mapSandboxEvent, mapSandboxToolEvent, materializeLocalMcp, materializeTreeView, mcpSecretEnvMetadataKey, naiveDriver, observe, openSandboxRun, pairwiseSignificance, panel, pendingWaits, pickChampion, pipeline, plateauLength, printBenchmarkReport, probeSandboxCapabilities, profileRichnessFinding, promotionGate, queueOf, registerShape, registryScopeAnalyst, renderAnytimeTable, renderCorpusToInstructions, renderLeaderboardHtml, renderLeaderboardMarkdown, renderLeaderboardSvg, renderPairwiseMarkdown, renderReport, replaySpawnTree, reportLoopUsage, resolveSandboxClient, resolveSecretEnv, rollingDispatch, runAgentRounds, runBenchmark, runInWorkspace, runLoop, runPersonified, runStrategyEvolution, sanitizeMcpToolSchema, secretEnvOfMcpServer, selectChampion, selectValidWinner, sentinelCompletion, serveCoordinationMcp, settledToIteration, spendFromUsageEvents, stopSentinel, strategyAuthorContract, streamAgentTurn, sumSandboxUsage, superviseSurface, supervisorInstructions, trajectoryReport, verify, widen };
package/dist/loops.js CHANGED
@@ -80,7 +80,7 @@ import {
80
80
  verify,
81
81
  widen,
82
82
  worktreeFanout
83
- } from "./chunk-3LJF5XSE.js";
83
+ } from "./chunk-WRTOVNN4.js";
84
84
  import "./chunk-Q2JSAVQ3.js";
85
85
  import {
86
86
  DEFAULT_SANDBOX_STEERING_MAX_TURNS,
@@ -92,6 +92,7 @@ import {
92
92
  anytimeReport,
93
93
  areaUnderCurve,
94
94
  asAuthoredProfile,
95
+ assertModelAllowed,
95
96
  assessAuthoredProfile,
96
97
  authoredWorker,
97
98
  bestSoFar,
@@ -128,6 +129,7 @@ import {
128
129
  queueOf,
129
130
  renderAnytimeTable,
130
131
  rollingDispatch,
132
+ runAgentRounds,
131
133
  runLoop,
132
134
  sampleFromSettled,
133
135
  sandboxSessionTraceSource,
@@ -137,7 +139,7 @@ import {
137
139
  supervisorInstructions,
138
140
  watchTrace,
139
141
  workerFromBackend
140
- } from "./chunk-EAQ5YRRY.js";
142
+ } from "./chunk-XBG2W2VW.js";
141
143
  import "./chunk-DPEUKJRO.js";
142
144
  import {
143
145
  adaptiveRefine,
@@ -164,12 +166,11 @@ import {
164
166
  selectBestIndex,
165
167
  structuralRollout,
166
168
  visibleCheckScore
167
- } from "./chunk-QYCKIV6C.js";
169
+ } from "./chunk-YJZA2BIK.js";
168
170
  import "./chunk-UPWGXKXB.js";
169
171
  import "./chunk-2VZYRB55.js";
170
172
  import {
171
173
  DEFAULT_STALL_AFTER_MS,
172
- assertModelAllowed,
173
174
  createActivityLog,
174
175
  createBudgetPool,
175
176
  createScope,
@@ -187,7 +188,7 @@ import {
187
188
  timerAt,
188
189
  validateWaitSpec,
189
190
  waitUntil
190
- } from "./chunk-6WZZXQV5.js";
191
+ } from "./chunk-HLKC4UYB.js";
191
192
  import {
192
193
  FileResultBlobStore,
193
194
  FileSpawnJournal,
@@ -200,11 +201,12 @@ import {
200
201
  } from "./chunk-ISPWRSEC.js";
201
202
  import {
202
203
  createAgentEnvironmentProviderRegistry,
204
+ createTangleSandboxExactProcessProvider,
203
205
  providerAsExecutor,
204
206
  providerAsSandboxClient,
205
207
  resolveAgentEnvironmentProvider,
206
208
  sandboxClientAsProvider
207
- } from "./chunk-M6MD6JBS.js";
209
+ } from "./chunk-KRBFHMV6.js";
208
210
  import "./chunk-3MDZX7YU.js";
209
211
  import {
210
212
  createSandboxToolPartState,
@@ -274,6 +276,7 @@ export {
274
276
  createShapeRegistry,
275
277
  createSteerableSandboxSession,
276
278
  createSupervisor,
279
+ createTangleSandboxExactProcessProvider,
277
280
  createVerifierEnvironment,
278
281
  createWaitProbes,
279
282
  createWaterfallCollector,
@@ -371,6 +374,7 @@ export {
371
374
  routerChatWithTools,
372
375
  routerChatWithUsage,
373
376
  routerToolLoop,
377
+ runAgentRounds,
374
378
  runAgentic,
375
379
  runBenchmark,
376
380
  runInWorkspace,
package/dist/mcp/bin.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  readTraceContextFromEnv
4
- } from "../chunk-AYU35OTU.js";
4
+ } from "../chunk-PZZKQVQV.js";
5
5
  import {
6
6
  resolveRouterBaseUrl
7
7
  } from "../chunk-NURIQBJQ.js";
@@ -9,12 +9,12 @@ import {
9
9
  DelegationTaskQueue,
10
10
  FileDelegationStore,
11
11
  createMcpServer
12
- } from "../chunk-EAQ5YRRY.js";
12
+ } from "../chunk-XBG2W2VW.js";
13
13
  import "../chunk-DPEUKJRO.js";
14
14
  import "../chunk-2VZYRB55.js";
15
- import "../chunk-6WZZXQV5.js";
15
+ import "../chunk-HLKC4UYB.js";
16
16
  import "../chunk-ISPWRSEC.js";
17
- import "../chunk-M6MD6JBS.js";
17
+ import "../chunk-KRBFHMV6.js";
18
18
  import "../chunk-3MDZX7YU.js";
19
19
  import "../chunk-M22PL4GH.js";
20
20
  import "../chunk-YEJR7IXO.js";
@@ -1,10 +1,10 @@
1
- import { S as SandboxClient, b as LoopSandboxPlacement } from '../types-DK11_O4L.js';
2
- import { F as FleetHandle, D as DelegationExecutor, a as DelegationTaskQueue, b as FeedbackStore, c as DelegateFeedbackResult, d as DelegateFeedbackArgs, U as UiAuditorDelegate, e as DelegateUiAuditArgs, f as DelegateUiAuditResult, g as DelegationHistoryResult, h as DelegationHistoryArgs, i as DelegationStatusResult, j as DelegationStatusArgs } from '../coordination-DTehA977.js';
3
- export { A as AnalystRegistry, C as CappedDelegationTrace, k as CoderDelegate, l as CoderReview, m as CoderReviewer, n as CoordinationEvent, o as CoordinationTools, p as CoordinationToolsOptions, q as DELEGATE_DESCRIPTION, r as DELEGATE_INPUT_SCHEMA, s as DELEGATE_TOOL_NAME, t as DELEGATION_TRACE_MAX_BYTES, u as DELEGATION_TRACE_MAX_SPANS, v as DelegateArgs, w as DelegateCodeArgs, x as DelegateCodeConfig, y as DelegateCodeResult, z as DelegateHandlerOptions, B as DelegateResearchArgs, G as DelegateResearchConfig, H as DelegateResearchResult, I as DelegateResult, J as DelegateRunCtx, K as DelegateUiAuditConfig, L as DelegateUiAuditRoute, N as DelegationError, O as DelegationFeedbackSnapshot, P as DelegationHistoryEntry, Q as DelegationPersistenceError, R as DelegationProfile, S as DelegationProgress, T as DelegationRecord, V as DelegationResultPayload, X as DelegationResumeContext, Y as DelegationResumeDriver, Z as DelegationResumeTick, _ as DelegationRunContext, $ as DelegationStateCorruptError, a0 as DelegationStatus, a1 as DelegationStore, a2 as DelegationTaskQueueOptions, a3 as DelegationTraceCaps, a4 as DelegationTraceCollector, a5 as DelegationTraceSpan, a6 as DetachedSessionDelegateOptions, a7 as DetachedSessionRefParts, a8 as DetachedTurn, a9 as DetachedTurnResumeDriverOptions, aa as DetachedWinnerSelection, ab as DriveTurnCapableBox, ac as DriveTurnTick, ad as FeedbackEvent, ae as FeedbackRating, af as FeedbackRefersTo, ag as FileDelegationStore, ah as FileDelegationStoreOptions, ai as FleetWorkspaceExecutorOptions, aj as InMemoryDelegationStore, ak as InMemoryFeedbackStore, al as JsonRpcMessage, am as JsonRpcResponse, M as MakeWorkerAgent, an as McpServer, ao as McpServerOptions, ap as McpToolDescriptor, aq as McpTransport, ar as Question, as as QuestionDecision, at as QuestionPolicy, au as QuestionRecord, av as ResearchOutputShape, aw as ResearchSource, ax as RunDetachedTurnOptions, ay as SettleDetachedCoderTurnOptions, az as SettledWorker, aA as SiblingSandboxExecutorOptions, aB as SubmitInput, aC as SubmitOutput, aD as TraceContext, aE as UiAuditorDelegationOutput, aF as buildDelegationTraceSpans, aG as capDelegationTrace, aH as coderTaskFromArgs, aI as composeLoopTraceEmitters, aJ as createCoordinationTools, aK as createDelegateHandler, aL as createDelegationTraceCollector, aM as createDetachedTurnResumeDriver, aN as createFleetWorkspaceExecutor, aO as createInProcessTransport, aP as createMcpServer, aQ as createPropagatingTraceEmitter, aR as createSiblingSandboxExecutor, aS as detachedSessionDelegate, aT as detachedTurnEvents, aU as eventToSnapshot, aV as formatDetachedSessionRef, aW as hashIdempotencyInput, aX as parseDetachedSessionRef, aY as readTraceContextFromEnv, aZ as runDetachedTurn, a_ as settleDetachedCoderTurn, a$ as traceContextToEnv, b0 as validateDelegateArgs } from '../coordination-DTehA977.js';
4
- import { L as LocalHarness, r as runLocalHarness } from '../local-harness-CtK9dSny.js';
5
- export { a as CodexExecutionEvidence, c as CodexExecutionPolicy, C as CodexTokenUsage, b as LocalHarnessResult, R as RunLocalHarnessOptions, p as parseCodexTokenUsage } from '../local-harness-CtK9dSny.js';
6
- import { G as GitRunner } from '../completion-gate-DLINnrkM.js';
7
- export { C as CreateWorktreeOptions, b as DiffOptions, c as DiffResult, R as RemoveWorktreeOptions, d as WorktreeHandle, e as captureWorktreeDiff, f as createWorktree, r as removeWorktree } from '../completion-gate-DLINnrkM.js';
1
+ import { a as SandboxClient, b as LoopSandboxPlacement } from '../types-BCoemcXU.js';
2
+ import { F as FleetHandle, D as DelegationExecutor, a as DelegationTaskQueue, b as FeedbackStore, c as DelegateFeedbackResult, d as DelegateFeedbackArgs, U as UiAuditorDelegate, e as DelegateUiAuditArgs, f as DelegateUiAuditResult, g as DelegationHistoryResult, h as DelegationHistoryArgs, i as DelegationStatusResult, j as DelegationStatusArgs } from '../coordination-BZZSVYpZ.js';
3
+ export { A as AnalystRegistry, C as CappedDelegationTrace, k as CoderDelegate, l as CoderReview, m as CoderReviewer, n as CoordinationEvent, o as CoordinationTools, p as CoordinationToolsOptions, q as DELEGATE_DESCRIPTION, r as DELEGATE_INPUT_SCHEMA, s as DELEGATE_TOOL_NAME, t as DELEGATION_TRACE_MAX_BYTES, u as DELEGATION_TRACE_MAX_SPANS, v as DelegateArgs, w as DelegateCodeArgs, x as DelegateCodeConfig, y as DelegateCodeResult, z as DelegateHandlerOptions, B as DelegateResearchArgs, G as DelegateResearchConfig, H as DelegateResearchResult, I as DelegateResult, J as DelegateRunCtx, K as DelegateUiAuditConfig, L as DelegateUiAuditRoute, N as DelegationError, O as DelegationFeedbackSnapshot, P as DelegationHistoryEntry, Q as DelegationPersistenceError, R as DelegationProfile, S as DelegationProgress, T as DelegationRecord, V as DelegationResultPayload, X as DelegationResumeContext, Y as DelegationResumeDriver, Z as DelegationResumeTick, _ as DelegationRunContext, $ as DelegationStateCorruptError, a0 as DelegationStatus, a1 as DelegationStore, a2 as DelegationTaskQueueOptions, a3 as DelegationTraceCaps, a4 as DelegationTraceCollector, a5 as DelegationTraceSpan, a6 as DetachedSessionDelegateOptions, a7 as DetachedSessionRefParts, a8 as DetachedTurn, a9 as DetachedTurnResumeDriverOptions, aa as DetachedWinnerSelection, ab as DriveTurnCapableBox, ac as DriveTurnTick, ad as FeedbackEvent, ae as FeedbackRating, af as FeedbackRefersTo, ag as FileDelegationStore, ah as FileDelegationStoreOptions, ai as FleetWorkspaceExecutorOptions, aj as InMemoryDelegationStore, ak as InMemoryFeedbackStore, al as JsonRpcMessage, am as JsonRpcResponse, M as MakeWorkerAgent, an as McpServer, ao as McpServerOptions, ap as McpToolDescriptor, aq as McpTransport, ar as Question, as as QuestionDecision, at as QuestionPolicy, au as QuestionRecord, av as ResearchOutputShape, aw as ResearchSource, ax as RunDetachedTurnOptions, ay as SettleDetachedCoderTurnOptions, az as SettledWorker, aA as SiblingSandboxExecutorOptions, aB as SubmitInput, aC as SubmitOutput, aD as TraceContext, aE as UiAuditorDelegationOutput, aF as buildDelegationTraceSpans, aG as capDelegationTrace, aH as coderTaskFromArgs, aI as composeLoopTraceEmitters, aJ as createCoordinationTools, aK as createDelegateHandler, aL as createDelegationTraceCollector, aM as createDetachedTurnResumeDriver, aN as createFleetWorkspaceExecutor, aO as createInProcessTransport, aP as createMcpServer, aQ as createPropagatingTraceEmitter, aR as createSiblingSandboxExecutor, aS as detachedSessionDelegate, aT as detachedTurnEvents, aU as eventToSnapshot, aV as formatDetachedSessionRef, aW as hashIdempotencyInput, aX as parseDetachedSessionRef, aY as readTraceContextFromEnv, aZ as runDetachedTurn, a_ as settleDetachedCoderTurn, a$ as traceContextToEnv, b0 as validateDelegateArgs } from '../coordination-BZZSVYpZ.js';
4
+ import { L as LocalHarness, r as runLocalHarness } from '../local-harness-BDNcl6jI.js';
5
+ export { b as CodexExecutionEvidence, a as CodexExecutionPolicy, C as CodexTokenUsage, c as LocalHarnessResult, R as RunLocalHarnessOptions, p as parseCodexTokenUsage } from '../local-harness-BDNcl6jI.js';
6
+ import { G as GitRunner } from '../completion-gate-BMy5LGoP.js';
7
+ export { C as CreateWorktreeOptions, b as DiffOptions, c as DiffResult, R as RemoveWorktreeOptions, d as WorktreeHandle, e as captureWorktreeDiff, f as createWorktree, r as removeWorktree } from '../completion-gate-BMy5LGoP.js';
8
8
  export { C as CreateKbGateOptions, F as FactCandidate, a as FactJudge, b as FactJudgeVerdict, K as KbGateResult, c as createKbGate } from '../kb-gate-CwHO0vz6.js';
9
9
  import { AgentProfileMcpServer } from '@tangle-network/agent-interface';
10
10
  export { m as mcpToolsForRuntimeMcp, a as mcpToolsForRuntimeMcpSubset } from '../openai-tools-fnj6SRVg.js';
@@ -12,7 +12,7 @@ import { AnalystFinding } from '@tangle-network/agent-eval';
12
12
  import { a as UiLens } from '../substrate-Dyiqmd3o.js';
13
13
  import '@tangle-network/sandbox';
14
14
  import '../types-BwoZWq-i.js';
15
- import '../types-lZTE_LBd.js';
15
+ import '../types-CvNwMzQt.js';
16
16
  import '../sanitize-DEbPNtyI.js';
17
17
  import '../environment-provider.js';
18
18
  import '@tangle-network/agent-interface/environment-provider';
@@ -199,8 +199,7 @@ declare function createStdioToolServer(options: StdioToolServerOptions): StdioTo
199
199
  *
200
200
  * Retrieval is DETERMINISTIC lexical overlap (no vectors, no LLM): a lift
201
201
  * measured with this memory mounted is attributable to the lessons
202
- * themselves, never to retrieval-model noise — the same discipline as
203
- * agent-eval's `memoryCurationProposer` (deterministic curation). Every
202
+ * themselves, never to retrieval-model noise. Every
204
203
  * `memory_search` can append one JSONL row to a retrieval log (`logPath`) —
205
204
  * the per-query record an off-policy retrieval estimator (agent-knowledge's
206
205
  * `RetrievalHoldout`) consumes. agent-knowledge is NOT a dependency of this