@tangle-network/agent-runtime 0.135.0 → 0.135.3

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.
package/dist/agent.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { E as SandboxClient, it as RuntimeStreamEvent, t as AgentRunSpec, w as OutputAdapter } from "./types-BBwGSiAj.js";
2
2
  import { a as createSurfaceImprovementProposer, c as SurfaceValidationIssue, d as validateSurfaces, i as SurfaceImprovementEdit, l as renderSurfaceIssues, n as DraftPatchInput, o as AgentSurfaces, r as DraftPatchOutput, s as ResolvedSurface, t as CreateSurfaceImprovementProposerOptions, u as resolveSubjectPath } from "./improvement-adapter-D5gwwoXQ.js";
3
- import { Cp as promptResourceProfileMaterialization, Dp as worktreeCliProfileMaterialization, Ep as validateProfileMaterialization, Sp as promptOnlyProfileMaterialization, Tp as sandboxActProfileMaterialization, _p as defineProfileMaterializationContract, bp as promptControlProfileMaterialization, cp as AssertProfileMaterializationOptions, dp as KnownAgentProfileMaterializationAxis, fp as ProfileMaterializationContract, gp as controlProfileMaterialization, hp as assertProfileMaterialization, lp as CanonicalAgentProfileMaterializationAxis, mp as ValidateProfileMaterializationOptions, op as AGENT_PROFILE_MATERIALIZATION_AXES, pp as ProfileMaterializationIssue, sp as AgentProfileMaterializationAxis, up as DefineProfileMaterializationContractOptions, vp as fullProfileMaterialization, wp as renderProfileMaterializationIssues, xp as promptModelProfileMaterialization, yp as profileMaterializationAxes } from "./index-DDDihU_f.js";
3
+ import { Cp as promptResourceProfileMaterialization, Dp as worktreeCliProfileMaterialization, Ep as validateProfileMaterialization, Sp as promptOnlyProfileMaterialization, Tp as sandboxActProfileMaterialization, _p as defineProfileMaterializationContract, bp as promptControlProfileMaterialization, cp as AssertProfileMaterializationOptions, dp as KnownAgentProfileMaterializationAxis, fp as ProfileMaterializationContract, gp as controlProfileMaterialization, hp as assertProfileMaterialization, lp as CanonicalAgentProfileMaterializationAxis, mp as ValidateProfileMaterializationOptions, op as AGENT_PROFILE_MATERIALIZATION_AXES, pp as ProfileMaterializationIssue, sp as AgentProfileMaterializationAxis, up as DefineProfileMaterializationContractOptions, vp as fullProfileMaterialization, wp as renderProfileMaterializationIssues, xp as promptModelProfileMaterialization, yp as profileMaterializationAxes } from "./index-DjPLpg7-.js";
4
4
  import { TraceAnalystDefinition } from "@tangle-network/agent-eval";
5
5
  import { AgentProfile as AgentProfile$1, AgentProfileFileMount, AgentProfileMcpServer } from "@tangle-network/agent-interface";
6
6
  import { SandboxEvent } from "@tangle-network/sandbox";
package/dist/agent.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { r as mapSandboxEvent } from "./sandbox-events-CA2amHoA.js";
2
2
  import { $t as promptOnlyProfileMaterialization, Gt as AGENT_PROFILE_MATERIALIZATION_AXES, Jt as defineProfileMaterializationContract, Kt as assertProfileMaterialization, Qt as promptModelProfileMaterialization, Xt as profileMaterializationAxes, Yt as fullProfileMaterialization, Zt as promptControlProfileMaterialization, en as promptResourceProfileMaterialization, in as worktreeCliProfileMaterialization, nn as sandboxActProfileMaterialization, qt as controlProfileMaterialization, rn as validateProfileMaterialization, tn as renderProfileMaterializationIssues, tt as createSandboxForSpec } from "./supervisor-mZ9Glkz7.js";
3
- import "./runtime-CakFDuE-.js";
3
+ import "./runtime-BQTE0RJS.js";
4
4
  import { createHash } from "node:crypto";
5
5
  import { isAbsolute, join, relative, resolve, sep } from "node:path";
6
6
  import { existsSync, readFileSync, statSync } from "node:fs";
@@ -1,5 +1,6 @@
1
1
  import { f as ValidationError } from "./errors-CVIDr7GQ.js";
2
2
  import { i as InMemorySpawnJournal, r as InMemoryResultBlobStore } from "./spawn-journal-ZKEKel8N.js";
3
+ import { d as harnessRunsAgent } from "./model-policy-UTTc9Z-A.js";
3
4
  import { t as composeRuntimeHooks } from "./runtime-hooks-C7iJOWm3.js";
4
5
  import { h as kernelPromptRegistry, i as workerFromBackend, m as formatPromptHandle, n as supervise, r as superviseWithTestBrain } from "./supervise-CVP9ku5U.js";
5
6
  import { agentProfileSchema, canonicalCandidateDigest } from "@tangle-network/agent-interface";
@@ -162,17 +163,20 @@ function stringifyPayload(payload) {
162
163
  * traversal is ledgered and journaled.
163
164
  */
164
165
  function runGraph(graph, opts) {
165
- if ("brain" in opts) throw new ValidationError("runGraph: direct brain injection is test-only; production execution derives the model call from the root AgentProfile");
166
- return runGraphInternal(graph, opts);
166
+ const { brain, ...runtimeOptions } = opts;
167
+ return runGraphInternal(graph, runtimeOptions, brain);
167
168
  }
168
- /** Deterministic scripted-brain path for graph tests. Not exported from Runtime's main entry. */
169
+ /** Alias for graph tests written before `RunGraphOptions.brain` was production. The production
170
+ * entry accepts the same shape; this wrapper only keeps the `/testing` import path working. */
169
171
  function runGraphWithTestBrain(graph, opts) {
170
172
  const { brain, ...runtimeOptions } = opts;
171
173
  return runGraphInternal(graph, runtimeOptions, brain);
172
174
  }
173
- function runGraphInternal(graph, opts, testBrain) {
175
+ function runGraphInternal(graph, opts, brain) {
174
176
  const registry = opts.registry ?? kernelPromptRegistry();
175
177
  const { root, workers, delegatesByWorker, analyzes, analystNodes } = validateGraph(graph, registry, opts.analysts);
178
+ if (brain && opts.driverBackend) throw new ValidationError("runGraph: brain and driverBackend are mutually exclusive — a caller brain makes the root model calls, a driverBackend places a harness that makes its own");
179
+ if (brain && harnessRunsAgent(root.profile.harness)) throw new ValidationError(`runGraph: root node '${root.id}' declares harness '${root.profile.harness}', so the harness drives it — a caller brain applies only to a router-brained root (profile.harness omitted or 'cli-base')`);
176
180
  if (!opts.backend && !opts.makeWorkerAgent) throw new ValidationError("runGraph: provide opts.backend (where nodes run) or opts.makeWorkerAgent");
177
181
  const journal = opts.journal ?? new InMemorySpawnJournal();
178
182
  const blobs = opts.blobs ?? new InMemoryResultBlobStore();
@@ -432,9 +436,9 @@ function runGraphInternal(graph, opts, testBrain) {
432
436
  ...opts.stallAfterMs !== void 0 ? { stallAfterMs: opts.stallAfterMs } : {},
433
437
  ...opts.allowedModels ? { allowedModels: opts.allowedModels } : {}
434
438
  };
435
- const result = testBrain === void 0 ? await supervise(rootProfile, graphTask(graph, root), superviseOptions) : await superviseWithTestBrain(rootProfile, graphTask(graph, root), {
439
+ const result = brain === void 0 ? await supervise(rootProfile, graphTask(graph, root), superviseOptions) : await superviseWithTestBrain(rootProfile, graphTask(graph, root), {
436
440
  ...superviseOptions,
437
- brain: testBrain
441
+ brain
438
442
  });
439
443
  for (const pending of pendingByAssignment.values()) {
440
444
  const refused = {
@@ -469,4 +473,4 @@ function graphTask(graph, root) {
469
473
  //#endregion
470
474
  export { runGraphWithTestBrain as i, defaultEdgeTraversalCap as n, runGraph as r, GraphEdgeCapError as t };
471
475
 
472
- //# sourceMappingURL=graph-DhSpGi_W.js.map
476
+ //# sourceMappingURL=graph-NKOjYL1z.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graph-NKOjYL1z.js","names":[],"sources":["../src/runtime/supervise/graph.ts"],"sourcesContent":["/**\n *\n * `runGraph` — agent graphs: profiles as nodes, registry-backed prompt directives as edges.\n *\n * A topology is PLAIN DATA an agent can author in a few lines: nodes are canonical\n * `AgentProfile`s (the ONLY way a node is described — no role-builder functions), edges are typed\n * values carrying versioned {@link PromptHandle} directives, `deliverable` (termination) and\n * `budget` (one conserved pool) are mandatory. Driver↔worker is the two-node cyclic instance;\n * \"agent 3 analyzes 1 and 2 and reports to 1\" is ONE edge, not a framework.\n *\n * NOT A SECOND SCHEDULER. `runGraph` is an interpretation layer over what already runs:\n * `supervise()` is the execution core — the same `supervisorAgent`/`driverAgent` machinery,\n * `makeWorkerAgent` seam, conserved-pool budget, and deliverable-gated settlement every\n * supervised run uses. (`runAgentRounds` is deliberately NOT the substrate here.) What the graph\n * layer ADDS is exactly what a bespoke driver loop never\n * had:\n *\n * 1. **Node pinning** — a spawn names a node (`profile.name` = node id) and the node's canonical\n * profile is what runs; a driver cannot smuggle capabilities into a worker it did not define.\n * 2. **Observable edges** — every delegates/analyzes traversal lands in an EDGE LEDGER\n * (`delivered | stripped | empty | unpropagated`, with byte counts), in memory on\n * the result AND as `edge` events in the run journal. The motivating incident: a filter\n * silently replaced 1,700-char steering with 241 chars of boilerplate for three rounds and\n * NO artifact said so — an unobservable edge cannot be trusted and its directive cannot be\n * optimized.\n * 3. **Directives as data** — edge text lives in the prompt registry (`<surface>/v<n>`), so every\n * edge is a versioned optimization target, never prose hardcoded in a builder function.\n * 4. **Per-edge traversal caps** — the cyclic-graph backstop. A delegates edge whose cap is\n * exhausted REFUSES further traversals (fail loud), so a cycle cannot spin the pool dry.\n * 5. **Continuity as data** — a delegates edge may declare `continuity: 'resume'`, so each spawn\n * after the node's first re-attaches to its latest SETTLED session (the spawn context hands\n * the executor seam `resume: { ofWorker, sequence }`; the kernel keeps identity, ordering,\n * ledger truth, and the one conserved pool). Every ledger row states how its hop continued:\n * `'fresh' | 'resume'` for spawns, `'steer'` for mid-run deliveries — fresh respawns, session\n * resumes, and live steers are all plain data, each a ledgered fact.\n *\n * ORACLES ARE ENVIRONMENT, NEVER WORKERS. Graders/verifiers must not be spawnable in the graph —\n * a delegates edge to them leaks the rubric. An `analyzes` edge names its analyst in one of two\n * forms: a LENS id from the environment's registry (a pure function over trace evidence), or the\n * id of a graph NODE — a tool-equipped analyst AGENT spawned on each matching settle with the\n * node's pinned profile, whose settle output IS the findings. Either way the oracle doctrine\n * holds: an analyst node can never be a delegates target (refused loudly), so no driver can hand\n * it work, and an id living in both the registry and the nodes is refused as ambiguous.\n *\n * @experimental\n */\n\nimport {\n type AgentProfile,\n agentProfileSchema,\n canonicalCandidateDigest,\n} from '@tangle-network/agent-interface'\nimport { InMemoryResultBlobStore, InMemorySpawnJournal } from '../../durable/spawn-journal'\nimport { ValidationError } from '../../errors'\nimport type {\n AnalystRegistry,\n AnalyzeOnSettleRoute,\n ContinuityMode,\n CoordinationEvent,\n MakeWorkerAgent,\n WorkerWatchOptions,\n} from '../../mcp/tools/coordination'\nimport { composeRuntimeHooks, type RuntimeHooks } from '../../runtime-hooks'\nimport { harnessRunsAgent } from '../harness-role'\nimport type { RouterTransportConfig } from '../router-client'\nimport type { ToolLoopChat } from '../tool-loop'\nimport type { DeliverableSpec } from './completion-gate'\nimport {\n formatPromptHandle,\n kernelPromptRegistry,\n type PromptHandle,\n type PromptRegistry,\n} from './prompt-registry'\nimport type { ExecutorConfig } from './runtime'\nimport {\n type SuperviseOptions,\n supervise,\n superviseWithTestBrain,\n workerFromBackend,\n} from './supervise'\nimport type { Budget, NodeId, ResultBlobStore, SpawnJournal, SupervisedResult } from './types'\n\n// ── The algebra ────────────────────────────────────────────────────────────────\n\n/** A graph node: an id and a canonical `AgentProfile`. The profile is the ONLY way a node is\n * described — its `prompt.systemPrompt` is the standing role (the 0.117 canonical resolution;\n * never a legacy top-level-only reduction), its tools/mcp/resources are its capabilities. */\nexport interface GraphNode {\n readonly id: NodeId\n readonly profile: AgentProfile\n}\n\nexport type GraphEdge =\n /** Work flows down. The delegation directive is DATA → versionable, sweepable, optimizable.\n * Each spawn of `to` by `from` — and each mid-run steer from `from` to a live `to` worker —\n * is one traversal. */\n | {\n readonly kind: 'delegates'\n readonly from: NodeId\n readonly to: NodeId\n readonly directive: PromptHandle\n /** Cyclic-graph backstop: traversals beyond this REFUSE (fail loud). Default\n * {@link defaultEdgeTraversalCap}. */\n readonly maxTraversals?: number\n /** Default continuity for this edge's SPAWN traversals. `'resume'` makes every spawn after\n * the node's first re-attach to its most recent SETTLED worker: a NEW live worker whose\n * spawn context carries `resume: { ofWorker, sequence }` for the executor seam, spending\n * from the same conserved pool — the node's first spawn is effectively `'fresh'`, and a\n * spawn while a prior worker is still live refuses loudly (steer is the live channel).\n * The driver's per-call `spawn_agent` `continuity` argument overrides either way. Omit =\n * `'fresh'` (today's behavior, byte-identical). Caps count resumes exactly like fresh\n * spawns. */\n readonly continuity?: ContinuityMode\n }\n /** Findings flow anywhere: an analyst over N nodes' settled traces, delivered to ONE node.\n * With a LENS analyst the directive wraps the findings for the recipient; with a NODE analyst\n * the directive is the analyst agent's task and the findings are its settle output. */\n | {\n readonly kind: 'analyzes'\n /** The analyst REFERENCE, in one of two forms: a lens id resolved against\n * `RunGraphOptions.analysts` (environment), or the id of a graph NODE with no delegates\n * edge pointing at it — then each matching settle spawns that node's pinned profile as a\n * tool-equipped analyst WORKER (same spawn machinery, conserved budget, trace join) whose\n * task is this edge's directive plus the settled worker's trace evidence and whose settle\n * output is the findings. An id that is both a node and a registry lens is refused. */\n readonly analyst: string\n readonly over: ReadonlyArray<NodeId>\n readonly to: NodeId\n readonly directive: PromptHandle\n /** Observability cap: traversals beyond this are LEDGERED as exhausted (`unpropagated`).\n * Only delegates caps refuse traversal — they are what close the spawn cycle. */\n readonly maxTraversals?: number\n }\n\nexport interface AgentGraph {\n readonly nodes: ReadonlyArray<GraphNode>\n readonly edges: ReadonlyArray<GraphEdge>\n /** Termination is mandatory, not optional: the independent completion oracle. */\n readonly deliverable: DeliverableSpec<unknown>\n /** One conserved pool across the whole graph — cycles without conservation never terminate. */\n readonly budget: Budget\n}\n\n// ── The edge ledger ────────────────────────────────────────────────────────────\n\nexport type EdgeDeliveryOutcome = 'delivered' | 'stripped' | 'empty' | 'unpropagated'\n\n/** How one ledgered hop CONTINUED: a spawn traversal stamps its effective spawn mode\n * (`'fresh'` | `'resume'`), and every mid-run delivery into an already-live recipient — a\n * driver steer leg and every analyzes delivery (routed steer or driver-destined finding) —\n * stamps `'steer'`. Zero ambiguity: every row carries exactly one of the three. */\nexport type TraversalContinuity = ContinuityMode | 'steer'\n\n/** One recorded edge traversal — the in-memory row; the journal twin is the `edge` SpawnEvent. */\nexport interface EdgeTraversal {\n /** Stable edge id: `delegates:<from>-><to>` or `analyzes:<analyst>:<over…>-><to>`. */\n readonly edge: string\n readonly kind: 'delegates' | 'analyzes'\n readonly from: string\n readonly to: string\n /** The resolved directive reference (`<surface>/v<n>`). */\n readonly directive: string\n /** 1-based per-edge ordinal. */\n readonly traversal: number\n readonly outcome: EdgeDeliveryOutcome\n /** How this hop continued — see {@link TraversalContinuity}. */\n readonly continuity: TraversalContinuity\n /** Bytes of directive + payload that actually crossed the edge. */\n readonly bytes: number\n readonly reason?: string\n /** The concrete worker node id, once known. */\n readonly workerId?: string\n}\n\n/** Default per-edge traversal cap — the cyclic-graph backstop when an edge names none. */\nexport const defaultEdgeTraversalCap = 32\n\n/** A delegates edge exhausted its traversal cap and the run produced no winner: the cap, not the\n * task, ended it. Carries the full evidence so failing loud loses nothing. */\nexport class GraphEdgeCapError extends Error {\n readonly exhaustedEdges: ReadonlyArray<string>\n readonly ledger: ReadonlyArray<EdgeTraversal>\n readonly result: SupervisedResult<unknown>\n constructor(\n exhaustedEdges: ReadonlyArray<string>,\n ledger: ReadonlyArray<EdgeTraversal>,\n result: SupervisedResult<unknown>,\n ) {\n super(\n `runGraph: edge traversal cap exhausted on ${exhaustedEdges.join(', ')} and the run ` +\n 'delivered no winner — the cap (the cyclic-graph backstop), not the task, ended this run. ' +\n 'Raise maxTraversals on the edge or fix the cycle; the full edge ledger and the ' +\n 'supervised result ride on this error.',\n )\n this.name = 'GraphEdgeCapError'\n this.exhaustedEdges = exhaustedEdges\n this.ledger = ledger\n this.result = result\n }\n}\n\n// ── Options / result ───────────────────────────────────────────────────────────\n\nexport interface RunGraphOptions {\n /** WHERE worker nodes run — the executor backend. Provide this OR `makeWorkerAgent`. */\n readonly backend?: ExecutorConfig\n /** WHERE the ROOT node's harness brain runs — forwarded to `supervise()` verbatim (see\n * `SuperviseOptions.driverBackend`). Needed when the root node's profile declares an external\n * harness (`codex`, `claude-code`, `opencode`): that root is driven by the harness, not by the\n * router brain, and automatic execution supports a local `bridge`. Unlike `supervise()`, this\n * does NOT default to `backend`: a graph's `backend` places WORKER nodes, so the root driver\n * is selected only by this field. Omit = no harness driver, which is correct for a root whose\n * `profile.harness` is omitted or `cli-base` (that root runs on the router brain). */\n readonly driverBackend?: ExecutorConfig\n /** Leaf-execution override (offline tests / advanced). `runGraph` still owns node pinning,\n * directive delivery, and the edge ledger AROUND this seam — only the leaf `act` is yours. */\n readonly makeWorkerAgent?: MakeWorkerAgent\n /** The driver brain's router substrate (`profile.harness` omitted or `cli-base`). */\n readonly router?: RouterTransportConfig\n /** The ROOT driver's inference seam — a caller-owned `ToolLoopChat` that makes every root\n * model call. Use it when the root's decisions must be caller-owned orchestration (a\n * deterministic conversation driver, a persona loop with its own LLM calls) rather than a\n * router-derived model call. The graph machinery around the seam is unchanged: node pinning,\n * directive delivery, the edge ledger, and the journal twin all run the same shipped path,\n * and the root profile keeps prompt control (`prompt-control-execution` materialization —\n * `systemPrompt`/`instructions` still apply). What moves to the caller with the brain:\n * model selection and provider-identity validation (`expectedModel` cannot be enforced on a\n * call the runtime did not place) and per-turn usage reporting (a brain that reports no\n * usage meters nothing into the pool). Omit = the router brain derived from the root\n * profile — the unchanged default. Mutually exclusive with `driverBackend`, and refused\n * when the root profile declares an external harness (that root is driven BY the harness). */\n readonly brain?: ToolLoopChat\n /** Caller-side runtime hooks (telemetry, policy, product extensions). Composed AFTER the\n * graph's own spawn-binding hook on the SAME event stream — the graph never swallows the\n * seam supervise() exposes. */\n readonly hooks?: RuntimeHooks\n /** The analyst lens registry `analyzes` edges resolve against. ENVIRONMENT — needed only for\n * lens analysts; an analyzes edge naming a graph NODE as its analyst needs no registry. */\n readonly analysts?: AnalystRegistry\n /** Watch every worker's LIVE tool trace with the online detector panel and raise a `finding`\n * on the bus the moment one loops or error-storms — forwarded to `supervise()` verbatim (see\n * `SuperviseOptions.watchWorkers`). Online findings (`analyst: 'online:<detector>'`) are bus\n * events for the driver, not graph edges, so they are never ledgered as traversals. Omit =\n * off (no online watching, no extra events). */\n readonly watchWorkers?: WorkerWatchOptions\n /** Directive registry. Default: the seeded kernel registry (`kernelPromptRegistry()`). */\n readonly registry?: PromptRegistry\n /** The run journal the edge ledger and every spawn/settle ride. Default: in-memory. */\n readonly journal?: SpawnJournal\n readonly blobs?: ResultBlobStore\n readonly runId?: string\n /** Per-child budget reserved from the conserved pool on each spawn. */\n readonly perWorker?: Budget\n readonly maxTurns?: number\n readonly maxLiveWorkers?: number\n /** Product authority over every steer/answer instruction (the filter seam). `runGraph` observes\n * what it CHANGES: a narrowed instruction ledgers its steer traversal as `stripped`. */\n readonly authorizeMessage?: SuperviseOptions['authorizeMessage']\n readonly signal?: AbortSignal\n readonly now?: () => number\n readonly otel?: SuperviseOptions['otel']\n readonly stallAfterMs?: number\n readonly allowedModels?: readonly string[]\n}\n\nexport interface GraphResult<Out = unknown> {\n readonly result: SupervisedResult<Out>\n /** Every edge traversal, in occurrence order — the observable-edge contract. */\n readonly ledger: ReadonlyArray<EdgeTraversal>\n /** Edge ids whose traversal cap was hit — analyzes exhaustion included (observable here, never\n * a refusal). A DELEGATES cap paired with a `no-winner` result THROWS\n * ({@link GraphEdgeCapError}) instead of returning: only delegates caps refuse spawns, so only\n * they can have ended the run. A LIFECYCLE no-winner (`aborted` / `budget-exhausted`) returns\n * normally even with an exhausted delegates cap — the abort or the pool, not the cap, ended\n * that run, and the exhaustion stays observable here. */\n readonly exhaustedEdges: ReadonlyArray<string>\n readonly runId: string\n}\n\n/** `RunGraphOptions` with the brain REQUIRED — the shape the `/testing` entry's\n * `runGraphWithTestBrain` keeps accepting now that `brain` is a production option. */\nexport interface RunGraphTestOptions extends RunGraphOptions {\n readonly brain: ToolLoopChat\n}\n\n// ── Validation ─────────────────────────────────────────────────────────────────\n\ninterface ValidatedGraph {\n readonly root: GraphNode\n readonly workers: ReadonlyMap<NodeId, GraphNode>\n readonly delegatesByWorker: ReadonlyMap<NodeId, Extract<GraphEdge, { kind: 'delegates' }>>\n readonly analyzes: ReadonlyArray<Extract<GraphEdge, { kind: 'analyzes' }>>\n /** Nodes referenced as an analyzes edge's ANALYST (the analyst-agent form): reachable through\n * their analyzes edge (spawned on settle), never through a delegates edge. */\n readonly analystNodes: ReadonlyMap<NodeId, GraphNode>\n}\n\nfunction edgeId(edge: GraphEdge): string {\n return edge.kind === 'delegates'\n ? `delegates:${edge.from}->${edge.to}`\n : `analyzes:${edge.analyst}:${edge.over.join('+')}->${edge.to}`\n}\n\n/** Validate the graph and resolve every directive BEFORE any compute is spent — an invalid\n * topology or an unknown directive is a configuration fault, never a mid-run surprise. */\nfunction validateGraph(\n graph: AgentGraph,\n registry: PromptRegistry,\n analysts: AnalystRegistry | undefined,\n): ValidatedGraph {\n if (!Array.isArray(graph.nodes) || graph.nodes.length === 0) {\n throw new ValidationError('runGraph: graph.nodes must be a non-empty array')\n }\n if (!Array.isArray(graph.edges) || graph.edges.length === 0) {\n throw new ValidationError('runGraph: graph.edges must be a non-empty array')\n }\n if (typeof graph.deliverable?.check !== 'function') {\n throw new ValidationError('runGraph: graph.deliverable is mandatory (termination oracle)')\n }\n if (typeof graph.budget !== 'object' || graph.budget === null) {\n throw new ValidationError('runGraph: graph.budget is mandatory (the conserved pool)')\n }\n const byId = new Map<NodeId, GraphNode>()\n for (const node of graph.nodes) {\n if (typeof node.id !== 'string' || node.id.length === 0) {\n throw new ValidationError('runGraph: every node needs a non-empty string id')\n }\n if (byId.has(node.id)) throw new ValidationError(`runGraph: duplicate node id '${node.id}'`)\n const parsed = agentProfileSchema.safeParse(node.profile)\n if (!parsed.success) {\n throw new ValidationError(\n `runGraph: node '${node.id}' has an invalid AgentProfile: ${parsed.error.message}`,\n )\n }\n // The profile NAME is the node identity everywhere downstream: node pinning resolves a\n // spawn's `profile.name` against node ids, and the coordination layer matches analyst\n // routes (`over`/`to`) against the settled worker's PROFILE NAME. A divergent name would\n // make every analyzes edge touching this node silently never match — refuse it up front.\n if (node.profile.name !== node.id) {\n throw new ValidationError(\n `runGraph: node '${node.id}' has profile.name ${JSON.stringify(node.profile.name)} — ` +\n 'profile.name IS the node identity (node pinning and analyst routing match on it) and ' +\n 'must equal the node id',\n )\n }\n byId.set(node.id, node)\n }\n const requireNode = (id: NodeId, where: string): GraphNode => {\n const node = byId.get(id)\n if (!node) throw new ValidationError(`runGraph: ${where} references unknown node '${id}'`)\n return node\n }\n const delegates = graph.edges.filter(\n (edge): edge is Extract<GraphEdge, { kind: 'delegates' }> => edge.kind === 'delegates',\n )\n const analyzes = graph.edges.filter(\n (edge): edge is Extract<GraphEdge, { kind: 'analyzes' }> => edge.kind === 'analyzes',\n )\n if (delegates.length === 0) {\n throw new ValidationError('runGraph: at least one delegates edge is required (who spawns whom)')\n }\n for (const edge of graph.edges) registry.resolve(edge.directive)\n for (const edge of delegates) {\n requireNode(edge.from, edgeId(edge))\n requireNode(edge.to, edgeId(edge))\n if (edge.from === edge.to) {\n throw new ValidationError(\n `runGraph: ${edgeId(edge)} delegates to itself — the driver↔worker cycle is the ` +\n 'settle-return loop, not a self-edge',\n )\n }\n // The type admits only 'fresh' | 'resume', but a graph is plain data that often arrives\n // through JSON — refuse a nonsense mode here, never let it reach the spawn tool as a string.\n if (\n edge.continuity !== undefined &&\n edge.continuity !== 'fresh' &&\n edge.continuity !== 'resume'\n ) {\n throw new ValidationError(\n `runGraph: ${edgeId(edge)} has invalid continuity ${JSON.stringify(edge.continuity)} — ` +\n \"a delegates edge's continuity is 'fresh' or 'resume'\",\n )\n }\n }\n // Root: the one node that delegates and is never delegated TO. P0 executes the star/2-node\n // cyclic family (one driver, N workers); nested driver graphs are the recorded P3 absorption.\n const delegatedTo = new Set(delegates.map((edge) => edge.to))\n const roots = [...new Set(delegates.map((edge) => edge.from))].filter(\n (id) => !delegatedTo.has(id),\n )\n if (roots.length !== 1) {\n throw new ValidationError(\n `runGraph: expected exactly ONE root (a node that delegates and is never delegated to), ` +\n `found ${roots.length === 0 ? 'none — delegates edges form a cycle with no entry' : roots.join(', ')}. ` +\n 'P0 executes driver↔worker(s); nested driver graphs are P3.',\n )\n }\n const root = requireNode(roots[0] as string, 'root resolution')\n for (const edge of delegates) {\n if (edge.from !== root.id) {\n throw new ValidationError(\n `runGraph: ${edgeId(edge)} delegates from a non-root node — P0 executes one driver over ` +\n 'its workers (the 2-node cyclic case, star-generalized); deeper delegation is P3',\n )\n }\n }\n const analystIds = new Set<string>()\n const analystNodes = new Map<NodeId, GraphNode>()\n for (const edge of analyzes) {\n // Continuity is a delegates-edge axis ONLY: analysts (lens or node) are spawned by the\n // analyst-on-settle machinery, each run a fresh session over settled evidence — an analyzes\n // edge carrying continuity would silently mean nothing, so it is refused as data.\n if ((edge as { continuity?: unknown }).continuity !== undefined) {\n throw new ValidationError(\n `runGraph: ${edgeId(edge)} carries continuity — analysts are spawned by the analyst ` +\n 'machinery (every analyst run is a fresh session over settled evidence), so ' +\n 'continuity is a delegates-edge axis only',\n )\n }\n // The runner's traversal ledger resolves a finding/steer back to its edge BY ANALYST ID\n // alone, so a second edge sharing an analyst would silently absorb the first edge's\n // traversals (last-registered wins). Multi-edge-per-analyst is not yet supported; refuse it\n // rather than mis-ledger it.\n if (analystIds.has(edge.analyst)) {\n throw new ValidationError(\n `runGraph: two analyzes edges share analyst '${edge.analyst}' — one analyzes edge per ` +\n 'analyst lens (traversals are ledgered by analyst id; a second edge would silently ' +\n \"absorb the first's). Register the lens under a second id for a second edge.\",\n )\n }\n analystIds.add(edge.analyst)\n // The analyst REFERENCE has two forms — a registry lens id or a graph node id — and the id\n // itself is what distinguishes them, so an id living in both is refused as ambiguous rather\n // than silently resolved by precedence.\n const analystNode = byId.get(edge.analyst)\n const inRegistry = analysts?.kinds.some((kind) => kind.id === edge.analyst) === true\n if (analystNode !== undefined && inRegistry) {\n throw new ValidationError(\n `runGraph: ${edgeId(edge)} analyst '${edge.analyst}' is BOTH a graph node and a lens in ` +\n 'the analysts registry — the id alone distinguishes the two analyst forms, so this is ' +\n 'ambiguous; rename the node or register the lens under another id',\n )\n }\n if (analystNode !== undefined) {\n // The analyst-AGENT form. Oracle doctrine holds structurally: the analyst node can never\n // receive work — not from the root (a delegates edge to it is refused) and not by being\n // the root (the root delegates by definition).\n if (analystNode.id === root.id) {\n throw new ValidationError(\n `runGraph: ${edgeId(edge)} names the ROOT as its analyst — the root is the driver; ` +\n 'give the analyst its own node with no delegates edge pointing at it',\n )\n }\n if (delegatedTo.has(analystNode.id)) {\n throw new ValidationError(\n `runGraph: ${edgeId(edge)} names node '${edge.analyst}' as its analyst, but that node ` +\n 'is a delegates target — oracle doctrine: an analyst is never delegated to. An ' +\n 'analyst NODE is legal only with NO delegates edge pointing at it; give the analyst ' +\n 'its own delegates-free node or pass a lens id from RunGraphOptions.analysts.',\n )\n }\n analystNodes.set(analystNode.id, analystNode)\n } else if (!analysts) {\n throw new ValidationError(\n `runGraph: ${edgeId(edge)} analyst '${edge.analyst}' is not a graph node, and no ` +\n 'RunGraphOptions.analysts registry was provided to resolve it as a lens',\n )\n } else if (!inRegistry) {\n throw new ValidationError(\n `runGraph: ${edgeId(edge)} analyst '${edge.analyst}' is neither a graph node nor in the ` +\n `analysts registry (known lenses: ${analysts.kinds.map((kind) => kind.id).join(', ') || 'none'})`,\n )\n }\n if (edge.over.length === 0) {\n throw new ValidationError(`runGraph: ${edgeId(edge)} must analyze at least one node`)\n }\n for (const over of edge.over) {\n requireNode(over, edgeId(edge))\n // Analysts observe SETTLED WORKERS, matched by profile name — the root drives and never\n // settles as a worker, so an edge over the root would silently never fire; refuse it.\n if (over === root.id) {\n throw new ValidationError(\n `runGraph: ${edgeId(edge)} analyzes the ROOT — analysts observe settled workers, and ` +\n 'the root never settles as one, so this edge would silently never fire; list ' +\n 'delegates-target nodes only',\n )\n }\n }\n requireNode(edge.to, edgeId(edge))\n }\n // Second pass, once every analyst NODE is known: an analyst run's settlement is a FINDING,\n // never a worker settle, so an analyzes edge OVER an analyst node would silently never fire —\n // refuse it rather than let it rot unobserved.\n for (const edge of analyzes) {\n for (const over of edge.over) {\n if (analystNodes.has(over)) {\n throw new ValidationError(\n `runGraph: ${edgeId(edge)} analyzes '${over}', which is an analyst node — an analyst ` +\n 'run settles as a finding, never as a worker, so this edge would silently never ' +\n 'fire; analyst nodes are not analyzable',\n )\n }\n }\n }\n const workers = new Map<NodeId, GraphNode>()\n const delegatesByWorker = new Map<NodeId, Extract<GraphEdge, { kind: 'delegates' }>>()\n for (const edge of delegates) {\n if (delegatesByWorker.has(edge.to)) {\n throw new ValidationError(\n `runGraph: node '${edge.to}' is the target of two delegates edges — one delegation ` +\n 'directive per worker node (version the directive instead of forking the edge)',\n )\n }\n delegatesByWorker.set(edge.to, edge)\n workers.set(edge.to, requireNode(edge.to, edgeId(edge)))\n }\n // Every non-root node must be reachable by SOME edge, or it can never run. A worker node is\n // reached by its delegates edge; an analyst node by its analyzes edge (spawned on settle).\n for (const node of graph.nodes) {\n if (node.id !== root.id && !workers.has(node.id) && !analystNodes.has(node.id)) {\n throw new ValidationError(\n `runGraph: node '${node.id}' has no delegates edge to it — an unreachable node never runs`,\n )\n }\n }\n return { root, workers, delegatesByWorker, analyzes, analystNodes }\n}\n\n// ── The runner ─────────────────────────────────────────────────────────────────\n\nconst byteLength = (text: string): number => Buffer.byteLength(text, 'utf8')\n\nfunction stringifyPayload(payload: unknown): string {\n if (typeof payload === 'string') return payload\n try {\n return JSON.stringify(payload) ?? String(payload)\n } catch {\n return String(payload)\n }\n}\n\n/**\n * Execute an {@link AgentGraph}. The root node becomes the supervisor (`supervise()` — the\n * execution core), each worker node is spawnable BY NODE ID (`spawn_agent` with\n * `profile: { name: '<node id>' }`; the node's canonical profile is pinned by the graph), each\n * delegates directive is appended to the worker profile's `prompt.instructions` per traversal,\n * and each analyzes edge becomes an analyst-on-settle route with a real DESTINATION. Every\n * traversal is ledgered and journaled.\n */\nexport function runGraph(graph: AgentGraph, opts: RunGraphOptions): Promise<GraphResult> {\n const { brain, ...runtimeOptions } = opts\n return runGraphInternal(graph, runtimeOptions, brain)\n}\n\n/** Alias for graph tests written before `RunGraphOptions.brain` was production. The production\n * entry accepts the same shape; this wrapper only keeps the `/testing` import path working. */\nexport function runGraphWithTestBrain(\n graph: AgentGraph,\n opts: RunGraphTestOptions,\n): Promise<GraphResult> {\n const { brain, ...runtimeOptions } = opts\n return runGraphInternal(graph, runtimeOptions, brain)\n}\n\nfunction runGraphInternal(\n graph: AgentGraph,\n opts: RunGraphOptions,\n brain?: ToolLoopChat,\n): Promise<GraphResult> {\n const registry = opts.registry ?? kernelPromptRegistry()\n const { root, workers, delegatesByWorker, analyzes, analystNodes } = validateGraph(\n graph,\n registry,\n opts.analysts,\n )\n // A caller brain and a harness driver are two answers to WHO makes the root's calls: refuse\n // the contradiction before any compute, and refuse a harness-driven root outright — the\n // harness IS that root's brain, so a supplied one would be silently ignored downstream.\n if (brain && opts.driverBackend) {\n throw new ValidationError(\n 'runGraph: brain and driverBackend are mutually exclusive — a caller brain makes the root model calls, a driverBackend places a harness that makes its own',\n )\n }\n if (brain && harnessRunsAgent(root.profile.harness)) {\n throw new ValidationError(\n `runGraph: root node '${root.id}' declares harness '${root.profile.harness}', so the harness drives it — a caller brain applies only to a router-brained root (profile.harness omitted or 'cli-base')`,\n )\n }\n if (!opts.backend && !opts.makeWorkerAgent) {\n throw new ValidationError(\n 'runGraph: provide opts.backend (where nodes run) or opts.makeWorkerAgent',\n )\n }\n const journal = opts.journal ?? new InMemorySpawnJournal()\n const blobs = opts.blobs ?? new InMemoryResultBlobStore()\n const runId =\n opts.runId ??\n `graph-${canonicalCandidateDigest(graph.nodes.map((n) => n.id)).slice('sha256:'.length, 'sha256:'.length + 12)}`\n const now = opts.now ?? Date.now\n\n // ── Ledger state ──\n const ledger: EdgeTraversal[] = []\n const journaled = new Set<EdgeTraversal>()\n const traversalCounts = new Map<string, number>()\n const exhausted = new Set<string>()\n // The subset of `exhausted` that REFUSED work. Only a delegates cap closes the spawn cycle, so\n // only it can be the reason a run ended winnerless — an analyzes cap refuses nothing.\n const exhaustedDelegates = new Set<string>()\n const journalWrites: Promise<void>[] = []\n let ledgerSeq = 0\n const appendJournal = (entry: EdgeTraversal, nodeIdForEvent: string): Promise<void> => {\n if (journaled.has(entry)) return Promise.resolve()\n journaled.add(entry)\n const write = journal.appendEvent(runId, {\n kind: 'edge',\n id: nodeIdForEvent,\n edge: { kind: entry.kind, from: entry.from, to: entry.to, directive: entry.directive },\n traversal: entry.traversal,\n outcome: entry.outcome,\n continuity: entry.continuity,\n bytes: entry.bytes,\n ...(entry.reason !== undefined ? { reason: entry.reason } : {}),\n seq: ledgerSeq++,\n at: new Date(now()).toISOString(),\n })\n journalWrites.push(write)\n return write\n }\n const record = (entry: Omit<EdgeTraversal, 'traversal'>, journalNow: boolean): EdgeTraversal => {\n const count = (traversalCounts.get(entry.edge) ?? 0) + 1\n traversalCounts.set(entry.edge, count)\n const row: EdgeTraversal = { ...entry, traversal: count }\n ledger.push(row)\n if (journalNow) void appendJournal(row, row.workerId ?? `graph:${row.to}`)\n return row\n }\n\n // ── Node pinning + delegates spawn traversals (the makeWorkerAgent wrapper) ──\n const makeLeaf =\n opts.makeWorkerAgent ?? workerFromBackend(opts.backend as ExecutorConfig, graph.deliverable)\n const nodeByWorkerId = new Map<string, NodeId>()\n const pendingByAssignment = new Map<string, EdgeTraversal>()\n const graphWorker: MakeWorkerAgent = (authoredProfile, spawnContext) => {\n const requested =\n typeof (authoredProfile as { name?: unknown } | undefined)?.name === 'string'\n ? (authoredProfile as { name: string }).name\n : undefined\n // An analyst-AGENT run: the coordination settle hook — never the driver; the marker is\n // authored by the runtime, not accepted from model arguments — spawns the analyst NODE.\n // Pin the node's canonical profile; the analysis directive travels as the TASK (composed by\n // the coordination layer with the settled worker's trace evidence), so nothing is appended\n // to the profile's instructions here. Its traversal is ledgered on the finding/steer it\n // produces, exactly like a registry analyst's.\n if (spawnContext?.analyst !== undefined) {\n const analystNode = analystNodes.get(spawnContext.analyst)\n if (!analystNode || requested !== analystNode.id) {\n throw new ValidationError(\n `runGraph: analyst run for ${JSON.stringify(spawnContext.analyst)} does not name an ` +\n `analyst node of this graph (analyst nodes: ${[...analystNodes.keys()].join(', ') || 'none'})`,\n )\n }\n return makeLeaf(analystNode.profile, spawnContext)\n }\n const node = requested !== undefined ? workers.get(requested) : undefined\n if (!node) {\n throw new ValidationError(\n `runGraph: spawn_agent named profile ${JSON.stringify(requested)} which is not a worker ` +\n `node of this graph (nodes: ${[...workers.keys()].join(', ')}). Spawn by node id: ` +\n 'profile.name selects the node; the node profile itself is pinned by the graph.',\n )\n }\n const edge = delegatesByWorker.get(node.id) as Extract<GraphEdge, { kind: 'delegates' }>\n const id = edgeId(edge)\n const cap = edge.maxTraversals ?? defaultEdgeTraversalCap\n const used = traversalCounts.get(id) ?? 0\n // The EFFECTIVE spawn mode the coordination layer resolved (per-call override, else this\n // edge's declared default, else fresh) — stamped on the row so the ledger states how each\n // hop continued, never how it was merely configured to.\n const spawnContinuity = spawnContext?.continuity ?? 'fresh'\n if (used >= cap) {\n exhausted.add(id)\n exhaustedDelegates.add(id)\n record(\n {\n edge: id,\n kind: 'delegates',\n from: edge.from,\n to: edge.to,\n directive: formatPromptHandle(edge.directive),\n outcome: 'unpropagated',\n continuity: spawnContinuity,\n bytes: 0,\n reason: `traversal-cap-exhausted (max ${cap})`,\n },\n true,\n )\n throw new ValidationError(\n `runGraph: delegates edge ${id} exhausted its traversal cap (${cap}) — the ` +\n 'cyclic-graph backstop refused this spawn',\n )\n }\n const directiveText = registry.resolve(edge.directive).text\n const taskText = stringifyPayload(spawnContext?.task)\n const bytes = byteLength(directiveText) + byteLength(taskText)\n const row = record(\n {\n edge: id,\n kind: 'delegates',\n from: edge.from,\n to: edge.to,\n directive: formatPromptHandle(edge.directive),\n outcome: bytes === 0 ? 'empty' : 'delivered',\n continuity: spawnContinuity,\n bytes,\n ...(bytes === 0 ? { reason: 'no directive text and no task payload' } : {}),\n },\n false,\n )\n if (spawnContext?.assignmentId !== undefined) {\n pendingByAssignment.set(spawnContext.assignmentId, row)\n } else {\n void appendJournal(row, `graph:${row.to}`)\n }\n // The delegation directive is a STANDING instruction of this traversal: appended to the\n // node's canonical prompt instructions, so the worker runs under node profile + edge\n // directive, and the driver-authored profile contributes ONLY the node selection.\n const pinned: AgentProfile =\n directiveText.length === 0\n ? node.profile\n : {\n ...node.profile,\n prompt: {\n ...(node.profile.prompt ?? {}),\n instructions: [\n ...((node.profile.prompt?.instructions as readonly string[] | undefined) ?? []),\n directiveText,\n ],\n },\n }\n return makeLeaf(pinned, spawnContext)\n }\n\n // ── Analyzes edges → analyst-on-settle routes with destinations ──\n // A LENS edge's directive wraps the findings for the recipient (so a driver-destined lens\n // route carries no directive — it becomes the driver brief below). A NODE edge's directive is\n // the analyst AGENT's task, so it always rides the route, wherever the findings go.\n const routes: Array<string | AnalyzeOnSettleRoute> = analyzes.map((edge) => {\n const analystNode = analystNodes.get(edge.analyst)\n if (analystNode) {\n return {\n kind: edge.analyst,\n over: edge.over,\n agent: analystNode.profile,\n directive: registry.resolve(edge.directive).text,\n ...(edge.to === root.id ? {} : { to: edge.to }),\n }\n }\n return edge.to === root.id\n ? { kind: edge.analyst, over: edge.over }\n : {\n kind: edge.analyst,\n over: edge.over,\n to: edge.to,\n directive: registry.resolve(edge.directive).text,\n }\n })\n // Driver-destined analyzes findings are standing knowledge for the ROOT: the findings arrive\n // as bus events. For a lens edge the directive tells the driver what to do with them; for a\n // node edge the directive already went to the analyst agent as its task.\n const driverAnalyzesBriefs = analyzes\n .filter((edge) => edge.to === root.id)\n .map((edge) =>\n analystNodes.has(edge.analyst)\n ? `Findings from analyst '${edge.analyst}' (a tool-equipped analyst agent node, over: ` +\n `${edge.over.join(', ')}) will arrive as finding events.`\n : `Findings from analyst '${edge.analyst}' (over: ${edge.over.join(', ')}) will arrive as ` +\n `finding events.\\n${registry.resolve(edge.directive).text}`,\n )\n\n // ── Edge continuity defaults, threaded to the spawn tool by node id (= profile name) ──\n const continuityByProfile: Record<string, ContinuityMode> = {}\n for (const [nodeId, edge] of delegatesByWorker) {\n if (edge.continuity !== undefined) continuityByProfile[nodeId] = edge.continuity\n }\n\n // ── The driver graph brief: which nodes it may spawn, by exact name ──\n const workerLines = [...workers.values()].map((node) => {\n const edge = delegatesByWorker.get(node.id) as Extract<GraphEdge, { kind: 'delegates' }>\n const cap = edge.maxTraversals ?? defaultEdgeTraversalCap\n const description =\n typeof node.profile.description === 'string' && node.profile.description.length > 0\n ? ` — ${node.profile.description}`\n : ''\n const continuityNote =\n edge.continuity === 'resume'\n ? \"; continuity: resume — each spawn after the first re-attaches to this node's latest \" +\n 'settled session (spawn again to continue it; steer while it is live)'\n : ''\n return `- '${node.id}'${description} (delegation cap: ${cap} traversals${continuityNote})`\n })\n const graphBrief = [\n 'AGENT GRAPH: you are the driver node of a fixed topology. You may spawn ONLY these worker',\n \"nodes, by EXACT name (spawn_agent with profile: { name: '<node id>' }; the node's full\",\n 'profile is pinned by the graph — any other profile fields you author are ignored):',\n ...workerLines,\n ...(driverAnalyzesBriefs.length > 0 ? ['', ...driverAnalyzesBriefs] : []),\n ].join('\\n')\n const rootProfile: AgentProfile = {\n ...root.profile,\n prompt: {\n ...(root.profile.prompt ?? {}),\n instructions: [\n ...((root.profile.prompt?.instructions as readonly string[] | undefined) ?? []),\n graphBrief,\n ],\n },\n }\n\n // ── Steer + finding observation (delegates steers, analyzes traversals) ──\n // The filter seam: when the caller's authorizeMessage NARROWS an instruction, the delivered\n // bytes differ from the composed bytes — that steer traversal is `stripped` (the VB incident:\n // authored steering silently replaced by boilerplate, byte-indistinguishable downstream).\n const strippedByDigest = new Map<string, { composedBytes: number }>()\n const authorizeMessage: SuperviseOptions['authorizeMessage'] | undefined = opts.authorizeMessage\n ? (input) => {\n const decision = (\n opts.authorizeMessage as NonNullable<SuperviseOptions['authorizeMessage']>\n )(input)\n if (decision.instruction !== input.instruction) {\n strippedByDigest.set(canonicalCandidateDigest(decision.instruction), {\n composedBytes: byteLength(input.instruction),\n })\n }\n return decision\n }\n : undefined\n\n const routedAnalyzesByAnalyst = new Map<string, Extract<GraphEdge, { kind: 'analyzes' }>>()\n const driverAnalyzesByAnalyst = new Map<string, Extract<GraphEdge, { kind: 'analyzes' }>>()\n for (const edge of analyzes) {\n ;(edge.to === root.id ? driverAnalyzesByAnalyst : routedAnalyzesByAnalyst).set(\n edge.analyst,\n edge,\n )\n }\n const analyzesCapReached = (edge: Extract<GraphEdge, { kind: 'analyzes' }>): boolean => {\n const cap = edge.maxTraversals ?? defaultEdgeTraversalCap\n const used = traversalCounts.get(edgeId(edge)) ?? 0\n if (used < cap) return false\n exhausted.add(edgeId(edge))\n return true\n }\n const ledgerAnalyzes = (\n edge: Extract<GraphEdge, { kind: 'analyzes' }>,\n outcome: EdgeDeliveryOutcome,\n bytes: number,\n reason: string | undefined,\n workerId: string | undefined,\n ): void => {\n const capped = analyzesCapReached(edge)\n record(\n {\n edge: edgeId(edge),\n kind: 'analyzes',\n from: edge.over.join('+'),\n to: edge.to,\n directive: formatPromptHandle(edge.directive),\n outcome: capped ? 'unpropagated' : outcome,\n // Every analyzes traversal is a mid-run delivery into an already-live recipient (a\n // routed steer leg, or the finding reaching the live driver) — never a spawn.\n continuity: 'steer',\n bytes,\n ...(capped\n ? {\n reason: `traversal-cap-exhausted (max ${edge.maxTraversals ?? defaultEdgeTraversalCap})`,\n }\n : reason !== undefined\n ? { reason }\n : {}),\n ...(workerId !== undefined ? { workerId } : {}),\n },\n true,\n )\n }\n\n const onCoordinationEvent = async (\n _context: unknown,\n _eventId: unknown,\n recordEnvelope: { readonly event: CoordinationEvent },\n ): Promise<void> => {\n const event = recordEnvelope.event\n if (event.type === 'finding') {\n // A routed edge's traversal is ledgered on its STEER (the delivery); the finding event is\n // its audit copy. A driver-destined edge's traversal IS the finding reaching the bus.\n const edge = driverAnalyzesByAnalyst.get(event.finding.analyst)\n if (!edge) return\n const sourceNode = nodeByWorkerId.get(event.finding.fromWorker)\n if (sourceNode === undefined || !edge.over.includes(sourceNode)) return\n // Absent findings (the analyst returned `undefined` — the producer omits the key so the\n // event stays digestable) contribute ZERO bytes, never the text \"undefined\".\n const findingsText =\n event.finding.findings === undefined ? '' : stringifyPayload(event.finding.findings)\n const directiveBytes = byteLength(registry.resolve(edge.directive).text)\n const empty = findingsText.length === 0\n ledgerAnalyzes(\n edge,\n empty ? 'empty' : 'delivered',\n directiveBytes + byteLength(findingsText),\n empty ? 'analyst returned no findings' : undefined,\n event.finding.fromWorker,\n )\n return\n }\n if (event.type === 'steer') {\n const down = event.down\n if (event.analyst !== undefined) {\n const edge = routedAnalyzesByAnalyst.get(event.analyst)\n if (!edge) return\n ledgerAnalyzes(\n edge,\n down.delivered ? 'delivered' : 'unpropagated',\n byteLength(down.instruction),\n down.delivered ? undefined : down.outcome,\n down.toWorker,\n )\n return\n }\n // A driver-authored steer to a live worker node is a delegates traversal too — the\n // mid-run leg of the same edge (the leg the motivating incident lost).\n const nodeId = nodeByWorkerId.get(down.toWorker)\n if (nodeId === undefined) return\n const edge = delegatesByWorker.get(nodeId)\n if (!edge) return\n const stripped = strippedByDigest.get(down.instructionDigest)\n record(\n {\n edge: edgeId(edge),\n kind: 'delegates',\n from: edge.from,\n to: edge.to,\n directive: formatPromptHandle(edge.directive),\n outcome: !down.delivered ? 'unpropagated' : stripped ? 'stripped' : 'delivered',\n // The mid-run leg of the edge: a delivery into the LIVE worker, never a spawn.\n continuity: 'steer',\n bytes: byteLength(down.instruction),\n ...(!down.delivered\n ? { reason: down.outcome }\n : stripped\n ? { reason: `authorization narrowed ${stripped.composedBytes} composed bytes` }\n : {}),\n workerId: down.toWorker,\n },\n true,\n )\n }\n }\n\n // ── Spawn-hook: bind ledger rows to concrete worker ids, then journal them ──\n const graphHooks = {\n onEvent: (event: {\n target?: string\n phase?: string\n payload?: unknown\n }): void | Promise<void> => {\n if (event.target !== 'agent.spawn' || event.phase !== 'after') return\n const payload = event.payload as { childId?: unknown; assignmentId?: unknown } | undefined\n if (typeof payload?.childId !== 'string' || typeof payload.assignmentId !== 'string') return\n const pending = pendingByAssignment.get(payload.assignmentId)\n if (!pending) return\n pendingByAssignment.delete(payload.assignmentId)\n const bound: EdgeTraversal = { ...pending, workerId: payload.childId }\n ledger[ledger.indexOf(pending)] = bound\n nodeByWorkerId.set(payload.childId, bound.to)\n return appendJournal(bound, payload.childId)\n },\n }\n const hooks = composeRuntimeHooks(graphHooks, opts.hooks)\n\n // Every configuration fault above throws SYNCHRONOUSLY (matching `supervise()`'s own\n // contract); only the run itself is asynchronous.\n const start = async (): Promise<GraphResult> => {\n const superviseOptions = {\n budget: graph.budget,\n deliverable: graph.deliverable,\n makeWorkerAgent: graphWorker,\n journal,\n blobs,\n runId,\n hooks,\n onCoordinationEvent,\n // Lens routes resolve against the registry; agent routes carry their own analyst profile,\n // so a graph whose only analysts are nodes needs no registry at all.\n ...(routes.length > 0\n ? { analyzeOnSettle: routes, ...(opts.analysts ? { analysts: opts.analysts } : {}) }\n : {}),\n ...(Object.keys(continuityByProfile).length > 0 ? { continuityByProfile } : {}),\n ...(opts.watchWorkers ? { watchWorkers: opts.watchWorkers } : {}),\n ...(opts.router ? { router: opts.router } : {}),\n // The root's harness driver. `backend` is NOT forwarded: it already became the worker seam\n // (`makeWorkerAgent` above), so the root driver is an explicit choice, never a side effect\n // of where workers run.\n ...(opts.driverBackend ? { driverBackend: opts.driverBackend } : {}),\n ...(authorizeMessage ? { authorizeMessage } : {}),\n ...(opts.perWorker ? { perWorker: opts.perWorker } : {}),\n ...(opts.maxTurns !== undefined ? { maxTurns: opts.maxTurns } : {}),\n ...(opts.maxLiveWorkers !== undefined ? { maxLiveWorkers: opts.maxLiveWorkers } : {}),\n ...(opts.signal ? { signal: opts.signal } : {}),\n ...(opts.now ? { now: opts.now } : {}),\n ...(opts.otel ? { otel: opts.otel } : {}),\n ...(opts.stallAfterMs !== undefined ? { stallAfterMs: opts.stallAfterMs } : {}),\n ...(opts.allowedModels ? { allowedModels: opts.allowedModels } : {}),\n } satisfies SuperviseOptions\n const result =\n brain === undefined\n ? await supervise(rootProfile, graphTask(graph, root), superviseOptions)\n : await superviseWithTestBrain(rootProfile, graphTask(graph, root), {\n ...superviseOptions,\n brain,\n })\n\n // A spawn row is PROVISIONAL until the `agent.spawn` hook (fired synchronously once a worker\n // exists) binds it to a live worker id. A row still unbound here means the factory ran but no\n // NEW worker went live: the spawn was refused after the factory (identity conflict, runtime\n // floor) or a keyed re-spawn deduplicated to an already-completed result (prepare() runs the\n // factory, no hook fires). Both state the same truth every unpropagated row states — the\n // directive never reached a live worker — so rewrite rather than mint a new outcome. Then\n // settle every journal write, so the ledger's journal twin is complete when this returns.\n for (const pending of pendingByAssignment.values()) {\n const refused: EdgeTraversal = {\n ...pending,\n outcome: 'unpropagated',\n bytes: 0,\n reason: `no-live-worker-bound (spawn refused after the factory, or a keyed re-spawn deduplicated to a completed result; ${pending.bytes} composed bytes never crossed)`,\n }\n ledger[ledger.indexOf(pending)] = refused\n await appendJournal(refused, `graph:${refused.to}`)\n }\n pendingByAssignment.clear()\n await Promise.all(journalWrites)\n\n const exhaustedEdges = Object.freeze([...exhausted])\n const frozenLedger = Object.freeze(ledger.map((row) => Object.freeze({ ...row })))\n // A LIFECYCLE ending (caller abort, exhausted budget) is its own complete explanation: the\n // cap did not end that run even when it was exhausted along the way, and blaming it would\n // misattribute the ending (and turn a caller-initiated abort into a throw). The exhaustion\n // stays observable in `exhaustedEdges` either way.\n const lifecycleEnded =\n result.kind === 'no-winner' &&\n (result.reason === 'aborted' || result.reason === 'budget-exhausted')\n if (result.kind !== 'winner' && !lifecycleEnded && exhaustedDelegates.size > 0) {\n // Fail LOUD: the backstop, not the task, ended this run. The evidence rides on the error.\n // Only DELEGATES caps refuse spawns, so only they can be the cause named here.\n throw new GraphEdgeCapError(Object.freeze([...exhaustedDelegates]), frozenLedger, result)\n }\n return { result, ledger: frozenLedger, exhaustedEdges, runId }\n }\n\n return start()\n}\n\n/** The root task: the graph's own framing. The deliverable (mandatory) is the termination; the\n * task names what the topology exists to produce. */\nfunction graphTask(graph: AgentGraph, root: GraphNode): string {\n const describe = graph.deliverable.describe\n return (\n describe ?? `Deliver the graph's deliverable by driving your worker nodes (root: '${root.id}').`\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+KA,MAAa,0BAA0B;;;AAIvC,IAAa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KAAK;GAClC,MAAM,cAAc,SAAS,SAAS,QAAQ,IAAI;EACpD;EACA,oBAAoB,MAAM;EAC1B,MAAM,QAAQ,IAAI,aAAa;EAE/B,MAAM,iBAAiB,OAAO,OAAO,CAAC,GAAG,SAAS,CAAC;EACnD,MAAM,eAAe,OAAO,OAAO,OAAO,KAAK,QAAQ,OAAO,OAAO,EAAE,GAAG,IAAI,CAAC,CAAC,CAAC;EAKjF,MAAM,iBACJ,OAAO,SAAS,gBACf,OAAO,WAAW,aAAa,OAAO,WAAW;EACpD,IAAI,OAAO,SAAS,YAAY,CAAC,kBAAkB,mBAAmB,OAAO,GAG3E,MAAM,IAAI,kBAAkB,OAAO,OAAO,CAAC,GAAG,kBAAkB,CAAC,GAAG,cAAc,MAAM;EAE1F,OAAO;GAAE;GAAQ,QAAQ;GAAc;GAAgB;EAAM;CAC/D;CAEA,OAAO,MAAM;AACf;;;AAIA,SAAS,UAAU,OAAmB,MAAyB;CAE7D,OADiB,MAAM,YAAY,YAErB,wEAAwE,KAAK,GAAG;AAEhG"}
@@ -1,4 +1,4 @@
1
- import { Qa as SuperviseOptions, Vf as DeliverableSpec, go as SupervisorProfile } from "./index-DDDihU_f.js";
1
+ import { Qa as SuperviseOptions, Vf as DeliverableSpec, go as SupervisorProfile } from "./index-DjPLpg7-.js";
2
2
  import { i as Budget, q as SupervisedResult } from "./types-BCkweg3w.js";
3
3
  import { o as ExecutorConfig } from "./runtime-WugWo__W.js";
4
4
  import { y as AgentCandidateOutputArtifactPort } from "./types-CxU37Uzr.js";
@@ -135,4 +135,4 @@ declare function runKnowledgeImprovementJob(options: RunKnowledgeImprovementJobO
135
135
  declare function buildKnowledgeImprovementExperimentBundles(bundle: AgentCandidateBundle, knowledge: KnowledgeImprovementCandidatePair): KnowledgeImprovementExperimentBundles;
136
136
  //#endregion
137
137
  export { KnowledgeImprovementActivationExecutor as C, CreateKnowledgeImprovementActivationExecutorOptions as S, SupervisedKnowledgeUpdater as _, KnowledgeImprovementJobResult as a, knowledgeReadinessDeliverable as b, createAgentKnowledgeReadinessCheck as c, KnowledgeReadinessCheckInput as d, KnowledgeReadinessCheckResult as f, SupervisedKnowledgeUpdateResult as g, SupervisedKnowledgeUpdateOptions as h, KnowledgeImprovementJobMeasurement as i, runKnowledgeImprovementJob as l, SupervisedKnowledgeUpdateInput as m, KnowledgeImprovementCandidatePair as n, RunKnowledgeImprovementJobOptions as o, RESEARCH_SUPERVISOR_SYSTEM_PROMPT as p, KnowledgeImprovementExperimentBundles as r, buildKnowledgeImprovementExperimentBundles as s, AgentKnowledgeReadinessCheckOptions as t, KnowledgeReadinessCheck as u, createSupervisedKnowledgeUpdater as v, createKnowledgeImprovementActivationExecutor as w, runSupervisedKnowledgeUpdate as x, formatSupervisedKnowledgeTask as y };
138
- //# sourceMappingURL=index-WwBPewCx.d.ts.map
138
+ //# sourceMappingURL=index-CP1RvdOw.d.ts.map
@@ -7612,6 +7612,19 @@ interface RunGraphOptions {
7612
7612
  readonly makeWorkerAgent?: MakeWorkerAgent;
7613
7613
  /** The driver brain's router substrate (`profile.harness` omitted or `cli-base`). */
7614
7614
  readonly router?: RouterTransportConfig;
7615
+ /** The ROOT driver's inference seam — a caller-owned `ToolLoopChat` that makes every root
7616
+ * model call. Use it when the root's decisions must be caller-owned orchestration (a
7617
+ * deterministic conversation driver, a persona loop with its own LLM calls) rather than a
7618
+ * router-derived model call. The graph machinery around the seam is unchanged: node pinning,
7619
+ * directive delivery, the edge ledger, and the journal twin all run the same shipped path,
7620
+ * and the root profile keeps prompt control (`prompt-control-execution` materialization —
7621
+ * `systemPrompt`/`instructions` still apply). What moves to the caller with the brain:
7622
+ * model selection and provider-identity validation (`expectedModel` cannot be enforced on a
7623
+ * call the runtime did not place) and per-turn usage reporting (a brain that reports no
7624
+ * usage meters nothing into the pool). Omit = the router brain derived from the root
7625
+ * profile — the unchanged default. Mutually exclusive with `driverBackend`, and refused
7626
+ * when the root profile declares an external harness (that root is driven BY the harness). */
7627
+ readonly brain?: ToolLoopChat;
7615
7628
  /** Caller-side runtime hooks (telemetry, policy, product extensions). Composed AFTER the
7616
7629
  * graph's own spawn-binding hook on the SAME event stream — the graph never swallows the
7617
7630
  * seam supervise() exposes. */
@@ -7657,7 +7670,8 @@ interface GraphResult<Out = unknown> {
7657
7670
  readonly exhaustedEdges: ReadonlyArray<string>;
7658
7671
  readonly runId: string;
7659
7672
  }
7660
- /** Test-only graph options, exported only through the package's explicit `/testing` entry. */
7673
+ /** `RunGraphOptions` with the brain REQUIRED the shape the `/testing` entry's
7674
+ * `runGraphWithTestBrain` keeps accepting now that `brain` is a production option. */
7661
7675
  interface RunGraphTestOptions extends RunGraphOptions {
7662
7676
  readonly brain: ToolLoopChat;
7663
7677
  }
@@ -7670,7 +7684,8 @@ interface RunGraphTestOptions extends RunGraphOptions {
7670
7684
  * traversal is ledgered and journaled.
7671
7685
  */
7672
7686
  declare function runGraph(graph: AgentGraph, opts: RunGraphOptions): Promise<GraphResult>;
7673
- /** Deterministic scripted-brain path for graph tests. Not exported from Runtime's main entry. */
7687
+ /** Alias for graph tests written before `RunGraphOptions.brain` was production. The production
7688
+ * entry accepts the same shape; this wrapper only keeps the `/testing` import path working. */
7674
7689
  declare function runGraphWithTestBrain(graph: AgentGraph, opts: RunGraphTestOptions): Promise<GraphResult>;
7675
7690
  //#endregion
7676
7691
  //#region src/runtime/supervise/patch-checks.d.ts
@@ -8527,4 +8542,4 @@ interface VerifierEnvironmentOptions {
8527
8542
  declare function createVerifierEnvironment(opts: VerifierEnvironmentOptions): Environment;
8528
8543
  //#endregion
8529
8544
  export { captureWorkerTraceEvidence as $, SuperviseRegistry as $a, Leaderboard as $c, FileDelegationStore as $d, SpawnForestNode as $f, assertTraceDerivedFindings as $i, WorkerResumeContext as $l, CheckSource as $n, bestDelivered as $o, SandboxRunAbortError as $r, PanelVerdict as $s, analyzesFindingsReportPrompt as $t, runDetachedTurn as $u, NOTE_MAX_CHARS as A, StrategyShotResult as Aa, ShapeRegistry as Ac, DelegationResultPayload as Ad, StartRetainedRunOptions as Af, profileOptimizerModelCall as Ai, AnalystRegistry as Al, ChatWorkerSeamOptions as An, PlateauOptions as Ao, discriminatingMeans as Ar, defaultAnalystInstruction as As, createFileRunContext as At, DetachedSessionDelegateOptions as Au, GitWorkspaceOptions as B, LoopCampaignDispatchOptions as Ba, LeaderboardSpec as Bc, CappedDelegationTrace as Bd, watchTrace as Bf, FileCorpus as Bi, DownMessageAuthorizationInput as Bl, spendFromUsageEvents as Bn, createProgressTracker as Bo, LocalMcpMaterialization as Br, EqualKOnCostOptions as Bs, GraphEdge as Bt, SiblingSandboxExecutorOptions as Bu, SurfaceWorkerOut as C, RunAgenticOptions as Ca, Persona as Cc, DelegationError as Cd, RetainedRunEffect as Cf, startRetainedRunInEnvironment as Ci, plateauLength as Cl, DriverAgentOptions as Cn, CoordinationDeliveryEvidence as Co, promptResourceProfileMaterialization as Cp, EvolutionAuthor as Cr, HarvestCorpusOptions as Cs, workerControlLogFile as Ct, FeedbackStore as Cu, WorktreeFanoutOptions as D, StrategyCtx as Da, RunPersonifiedOptions as Dc, DelegationHistoryResult as Dd, RetainedRunReplayPoint as Df, PromotionVerdict as Di, WaterfallSpan as Dl, ChatSessionStore as Dn, PriorCoordination as Do, worktreeCliProfileMaterialization as Dp, EvolutionReport as Dr, Observation as Ds, InMemoryRunContext as Dt, CoderReview as Du, AuthoredHarness as E, StrategyArtifacts as Ea, RunPersonified as Ec, DelegationHistoryEntry as Ed, RetainedRunHandle as Ef, PromotionGateOptions as Ei, WaterfallReport as El, ChatCompletionsTransport as En, FileCoordinationLog as Eo, validateProfileMaterialization as Ep, EvolutionGeneration as Er, harvestCorpus as Es, writeWorkerSteer as Et, CoderDelegate as Eu, settledWorkerOut as F, depthStrategy as Fa, LeaderboardFlagSpec as Fc, FeedbackRefersTo as Fd, EventBus as Ff, builtinShapes as Fi, ContinuityMode as Fl, BudgetPoolRestore as Fn, StopDecision as Fo, AuthoredStrategy as Fr, Corpus as Fs, WorktreePatchArtifact as Ft, detachedSessionDelegate as Fu, gitWorkspace as G, loopCampaignDispatch as Ga, CompletionVerdict as Gc, DelegationTraceSpan as Gd, FileResultBlobStore as Gf, loopUntil as Gi, Question as Gl, assessAuthoredProfile as Gn, SupervisorSpanOptions as Go, StdioMcpServerSpec as Gr, FanoutWinnerSelector as Gs, RunGraphTestOptions as Gt, DetachedTurnResumeDriverOptions as Gu, Workspace as H, LoopOptionsForDispatch as Ha, CompletionAnalyst as Hc, DELEGATION_TRACE_MAX_SPANS as Hd, ExecutorResultMapping as Hf, renderCorpusToInstructions as Hi, DownMessageDeliveryOutcome as Hl, ProfileRichness as Hn, plateau as Ho, McpSpawnFault as Hr, Fanout as Hs, GraphNode as Ht, createSiblingSandboxExecutor as Hu, CopyOptions as I, refine as Ia, LeaderboardIterationInfo as Ic, ResearchOutputShape as Id, PublishOptions as If, createShapeRegistry as Ii, CoordinationEvent as Il, BudgetReadout as In, StopRule as Io, assertStrategyContract as Ir, CorpusFilter as Is, createWorktreeCliExecutor as It, settleDetachedCoderTurn as Iu, runInWorkspace as J, AuthorizedSpawn as Ja, sentinelCompletion as Jc, composeLoopTraceEmitters as Jd, InMemorySpawnJournal as Jf, selectValidWinner as Ji, QuestionOption as Jl, supervisorInstructions as Jn, createSupervisorSpanRecorder as Jo, Deliverable as Jr, LoopUntilSpec as Js, runGraph as Jt, RunDetachedTurnOptions as Ju, jjWorkspace as K, loopDispatch as Ka, completionAuthorizes as Kc, buildDelegationTraceSpans as Kd, FileSpawnJournal as Kf, panel as Ki, QuestionDecision as Kl, defaultProfileRichnessThresholds as Kn, SupervisorSpanOutcome as Ko, connectStdioMcp as Kr, FlatWidenGate as Ks, TraversalContinuity as Kt, DriveTurnCapableBox as Ku, UntrackedCopyStats as L, runAgentic as La, LeaderboardRunContext as Lc, ResearchSource as Ld, createEventBus as Lf, registerShape as Li, CoordinationTools as Ll, ReservationRejection as Ln, allOf as Lo, authorStrategy as Lr, CorpusRecord as Ls, AgentGraph as Lt, DelegationExecutor as Lu, WorkerEvidenceInput as M, adaptiveRefine as Ma, LeaderboardBenchScore as Mc, DelegationStatusArgs as Md, BusEvent as Mf, assertProfileModelsAllowed as Mi, AuthorizeDownMessage as Ml, chatWorkerSeam as Mn, ProgressTracker as Mo, runStrategyEvolution as Mr, renderReport as Ms, PatchDeliverableOptions as Mt, SettleDetachedCoderTurnOptions as Mu, closingWorkerNote as N, breadthStrategy as Na, LeaderboardBenchTask as Nc, DelegationStatusResult as Nd, BusRecord as Nf, equalKOnCost as Ni, AuthorizedDownMessage as Nl, createChatSessionStore as Nn, ProgressTrackerOptions as No, selectChampion as Nr, AssertTraceDerivedFindings as Ns, patchDelivered as Nt, UiAuditorDelegate as Nu, worktreeFanout as O, StrategyMessage as Oa, ShapeBudget as Oc, DelegationProfile as Od, RetainedRunSnapshot as Of, promotionGate as Oi, createWaterfallCollector as Ol, ChatTransportExecutorOptions as On, AllWorkersStalledOptions as Oo, ReproductionCheck as Or, ObserveInput as Os, InMemoryRunContextOptions as Ot, CoderReviewer as Ou, composeWorkerEvidence as P, defineStrategy as Pa, LeaderboardBenchmarkAdapter as Pc, FeedbackRating as Pd, BusStats as Pf, trajectoryReport as Pi, ContinuationInstruction as Pl, BudgetPool as Pn, ProgressView as Po, AuthorStrategyOptions as Pr, CombinatorShape as Ps, WorktreeCliExecutorOptions as Pt, coderTaskFromArgs as Pu, WorkerToolTraceArtifact as Q, SuperviseOptions as Qa, Interval as Qc, DelegationStore as Qd, SpawnForestMissingTree as Qf, RegistryAnalyzeProjection as Qi, SettledWorker as Ql, CheckRunner as Qn, SupervisorFinalizer as Qo, SandboxRun as Qr, PanelSpec as Qs, RegisteredPrompt as Qt, parseDetachedSessionRef as Qu, copyUntrackedIntoClone as R, sample as Ra, LeaderboardScenario as Rc, UiAuditLensFilter as Rd, WatchTraceOptions as Rf, definePersona as Ri, CoordinationToolsOptions as Rl, ReservationTicket as Rn, allWorkersStalled as Ro, strategyAuthorContract as Rr, EqualKArm as Rs, EdgeDeliveryOutcome as Rt, FleetHandle as Ru, SurfaceWorkerConfig as S, CorpusReadbackOptions as Sa, Outcome as Sc, DelegateUiAuditRoute as Sd, RetainedRunDispatchedAdmission as Sf, startRetainedRun as Si, bestSoFar as Sl, serveCoordinationMcp as Sn, supervisorAgentWithTestBrain as So, promptOnlyProfileMaterialization as Sp, EvolutionArchiveNode as Sr, inProcessSandboxClient as Ss, workerCancellationsDir as St, FeedbackEvent as Su, superviseSurface as T, Strategy as Ta, PersonaExecutors as Tc, DelegationHistoryArgs as Td, RetainedRunEventOptions as Tf, resolveSandboxClient as Ti, WaterfallCollector as Tl, finalizeBestDelivered as Tn, CoordinationOwnerId as To, sandboxActProfileMaterialization as Tp, EvolutionCandidate as Tr, HarvestReport as Ts, workerInboxFileFromEventDir as Tt, eventToSnapshot as Tu, WorkspaceCommit as U, SuperviseDispatchOptions as Ua, CompletionEvidence as Uc, DelegationTraceCaps as Ud, gateOnDeliverable as Uf, fanout as Ui, DownMessageEvent as Ul, ProfileRichnessThresholds as Un, sampleFromSettled as Uo, McpToolDescriptor as Ur, FanoutOptions as Us, GraphResult as Ut, DetachedSessionRefParts as Uu, Shell as V, LoopDispatchOptions as Va, defineLeaderboard as Vc, DELEGATION_TRACE_MAX_BYTES as Vd, DeliverableSpec as Vf, InMemoryCorpus as Vi, DownMessageDeliveryAttempt as Vl, AuthoredProfile as Vn, noProgressFor as Vo, MaterializeLocalMcpOptions as Vr, EqualKVerdict as Vs, GraphEdgeCapError as Vt, createFleetWorkspaceExecutor as Vu, WorkspaceRun as W, SuperviseOptionsForDispatch as Wa, CompletionPolicy as Wc, DelegationTraceCollector as Wd, mapExecutorResult as Wf, flatWidenGate as Wi, MakeWorkerAgent as Wl, asAuthoredProfile as Wn, SupervisorSpanAttributes as Wo, StdioMcpConnection as Wr, FanoutSynthesis as Ws, RunGraphOptions as Wt, DetachedTurn as Wu, analyzeTrace as X, DEFAULT_AUTHORED_PROFILE_SECURITY_POLICY as Xa, AxisScoresOf as Xc, DelegationPersistenceError as Xd, SpawnForestEvent as Xf, widen as Xi, QuestionRecord as Xl, CheckOutcome as Xn, FinalizeContext as Xo, OpenSandboxRunOptions as Xr, Panel as Xs, PromptHandle as Xt, detachedTurnEvents as Xu, TrajectoryAnalysis as Y, AuthorizedSpawnContext as Ya, stopSentinel as Yc, createDelegationTraceCollector as Yd, SpawnForest as Yf, verify as Yi, QuestionPolicy as Yl, CheckExecChannel as Yn, DeliveredOutput as Yo, OpenSandboxRunBeforeStartContext as Yr, LoopUntilState as Ys, runGraphWithTestBrain as Yt, createDetachedTurnResumeDriver as Yu, WORKER_TOOL_TRACE_SCHEMA_VERSION as Z, DeliverableResolutionInput as Za, GroupOf as Zc, DelegationStateCorruptError as Zd, SpawnForestInDoubtNode as Zf, CreateScopeAnalystOptions as Zi, QuestionUrgency as Zl, CheckRunContext as Zn, FinalizerSettled as Zo, OpenSandboxRunPromptOptions as Zr, PanelJudge as Zs, PromptRegistry as Zt, formatDetachedSessionRef as Zu, boxSurfaceReader as _, AgenticRunResult as _a, WidenSpec as _c, DelegateResearchConfig as _d, RecoverRetainedRunResult as _f, probeSandboxCapabilities as _i, AnytimeReport as _l, rollingDispatch as _n, SupervisorToolDescriptor as _o, defineProfileMaterializationContract as _p, selectBestIndex as _r, localSandboxClient as _s, supervisorRunDir as _t, validateDelegateArgs as _u, SandboxInstance$1 as a, createMcpEnvironment as aa, ScopeAnalyzeInput as ac, DelegationRunContext as ad, ConfigError as af, SandboxLineage as ai, ScoreOf as al, kernelPromptRegistry as an, CoordinationBinding as ao, contentAddress as ap, StructuralRolloutResult as ar, DriverAttemptStop as as, createScope as at, McpServer as au, SuperviseSurfaceOptions as b, AgenticTool as ba, DefinePersonaInput as bc, DelegateUiAuditConfig as bd, RetainedRunCancelOptions as bf, reconnectRetainedRun as bi, anytimeReport as bl, delegate as bn, resolveSupervisorProfile as bo, promptControlProfileMaterialization as bp, ChampionPick as br, InProcessPromptCtx as bs, workerCancelRequestsFile as bt, McpToolDescriptor$1 as bu, VerifierEnvironmentOptions as c, BenchmarkConfig as ca, TrajectoryNode as cc, SubmitInput as cd, PlannerError as cf, createSandboxLineage as ci, renderLeaderboardHtml as cl, supervisorPolicyPrompt as cn, ObserveSupervisorNodeEvent as co, AssertProfileMaterializationOptions as cp, compareCheckOutcomes as cr, DriverRetryPolicy as cs, WorkerCancellation as ct, createMcpServer as cu, HarvestSurfaceDiffsOptions as d, BenchmarkStrategySummary as da, TrajectoryReportOptions as dc, DelegateCodeArgs as dd, RuntimeRunStateError as df, extractLlmCallEvent as di, renderPairwiseMarkdown as dl, DispatchStopReason as dn, ResolvedSupervisorProfile as do, KnownAgentProfileMaterializationAxis as dp, defaultStructuralRolloutPolicy as dr, TERMINAL_DECISIONS as ds, legacySupervisorRunDir as dt, DELEGATE_TOOL_NAME as du, buildSteerContext as ea, Pipeline as ec, DelegationArgs as ed, FileDelegationStoreOptions as ef, TurnResult as ei, LeaderboardOptions as el, createPromptRegistry as en, SuperviseRegistryTable as eo, SpawnForestTree as ep, CheckSourceCtx as er, collectDelivered as es, parseWorkerToolTraceArtifact as et, WorkerSpawnContext as eu, SurfaceDiff as f, BenchmarkTaskRow as fa, Verify as fc, DelegateCodeConfig as fd, ValidationError as ff, mapSandboxEvent as fi, AuditIntentInput as fl, DispatchUnit as fn, SupervisorAgentDeps as fo, ProfileMaterializationContract as fp, filterAuthoredAsserts as fr, TerminalDecision as fs, legacySupervisorRunsRoot as ft, DelegateArgs as fu, WatchedSurface as g, AgenticOptions as ga, WidenLineage as gc, DelegateResearchArgs as gd, RecoverRetainedRunOptions as gf, SandboxCapabilities as gi, defaultAuditorInstruction as gl, queueOf as gn, SupervisorProfile as go, controlProfileMaterialization as gp, sandboxCheckRunner as gr, LocalSandboxClientOptions as gs, safeWorkerFile as gt, createDelegateHandler as gu, SurfaceReader as h, runBenchmark as ha, WidenDecision as hc, DelegateFeedbackResult as hd, ReconnectRetainedRunOptions as hf, CriuCapableClient as hi, auditIntent as hl, freeSlots as hn, SupervisorNodeContextSeed as ho, assertProfileMaterialization as hp, resolveEntrySymbol as hr, runAgentRounds as hs, readWorkerSteerRequests as ht, DelegateResult as hu, SandboxEvent$1 as i, McpEnvironmentOptions as ia, ScopeAnalyst as ic, DelegationResumeTick as id, BackendTransportError as if, ForkCapableBox as ii, ProfileKeyOf as il, formatPromptHandle as in, workerFromBackend as io, replaySpawnTree as ip, StructuralRolloutPolicy as ir, DriverAttemptRecord as is, ScopeArgs as it, normalizeAnalyzeOnSettle as iu, VERIFY_TAIL_CHARS as j, SurfaceScore as ja, DefinedLeaderboard as jc, DelegationStatus as jd, CoderOutput as jf, assertModelAllowed as ji, AnalyzeOnSettleRoute as jl, chatTransportExecutor as jn, ProgressSample as jo, pickChampion as jr, observe as js, createInMemoryRunContext as jt, DetachedWinnerSelection as ju, EVIDENCE_MAX_CHARS as k, StrategyResult as ka, ShapeContext as kc, DelegationProgress as kd, StartRetainedRunInEnvironmentOptions as kf, profileChatClient as ki, AnalystFindingEvent as kl, ChatTransportTool as kn, NoProgressForOptions as ko, StrategyEvolutionConfig as kr, ObserveOptions as ks, RunContext as kt, DelegateRunCtx as ku, createVerifierEnvironment as l, BenchmarkLift as la, TrajectoryReport as lc, SubmitOutput as ld, RetainedRunAdmissionError as lf, SandboxToolPartState as li, renderLeaderboardMarkdown as ll, ConcurrencyCaps as ln, ResolveDriveHarness as lo, CanonicalAgentProfileMaterializationAxis as lp, composeCheckSources as lr, classifyDriverFailure as ls, WorkerSteerRequest as lt, DELEGATE_DESCRIPTION as lu, SurfaceReadOutcome as m, printBenchmarkReport as ma, Widen as mc, DelegateFeedbackArgs as md, NativeContextContinuationInput as mf, sumSandboxUsage as mi, IntentAudit as ml, effectiveConcurrency as mn, SupervisorNodeContext as mo, ValidateProfileMaterializationOptions as mp, officialChecksFromMeta as mr, isTerminalDecision as ms, readWorkerCancellation as mt, DelegateHandlerOptions as mu, AnalystFinding$1 as n, registryScopeAnalyst as na, RenderCorpusToInstructions as nc, DelegationResumeContext as nd, AgentEvalError$1 as nf, BranchCapableBox as ni, PairwiseOptions as nl, dumbContinuationFailPrompt as nn, supervise as no, materializeTreeView as np, StructuralRolloutConfig as nr, runFinalizer as ns, createRootHandle as nt, canonicalFindingEvent as nu, computeFindingId$1 as o, sanitizeMcpToolSchema as oa, ScopeWidenGate as oc, DelegationTaskQueue as od, JudgeError as of, SandboxLineageHandle as oi, leaderboard as ol, naiveContinuationPrompt as on, DriveHarness as oo, AGENT_PROFILE_MATERIALIZATION_AXES as op, VisibleCheck as or, DriverAttemptsExhaustedError as os, settledToIteration as ot, McpServerOptions as ou, SurfaceReadBox as p, Environment as pa, VerifySpec as pc, DelegateCodeResult as pd, NativeContextContinuationExecution as pf, mapSandboxToolEvent as pi, AuditIntentOptions as pl, RollingDispatchOptions as pn, SupervisorAgentTestDeps as po, ProfileMaterializationIssue as pp, modelAuthoredChecks as pr, defaultSelectWinner as ps, readWorkerCancelRequests as pt, DelegateError as pu, localShell as q, superviseDispatch as qa, deterministicCompletion as qc, capDelegationTrace as qd, InMemoryResultBlobStore as qf, pipeline as qi, QuestionLevel as ql, profileRichnessFinding as qn, SupervisorSpanRecorder as qo, materializeLocalMcp as qr, LoopUntil as qs, defaultEdgeTraversalCap as qt, DriveTurnTick as qu, CreateSandboxOptions$1 as r, McpEndpoint as ra, RenderCorpusToInstructionsOptions as rc, DelegationResumeDriver as rd, AgentEvalErrorCode as rf, CheckpointCapableBox as ri, PairwiseVerdict as rl, dumbContinuationPassPrompt as rn, superviseWithTestBrain as ro, pendingWaits as rp, StructuralRolloutMessage as rr, runTree as rs, createSupervisor as rt, createCoordinationTools as ru, makeFinding$1 as s, BenchmarkCell as sa, SteerContext as sc, DelegationTaskQueueOptions as sd, NotFoundError as sf, SessionCapableBox as si, pairwiseSignificance as sl, promptHandle as sn, DriveHarnessOwnerContext as so, AgentProfileMaterializationAxis as sp, canDisplace as sr, DriverProgressMark as ss, WorkerCancelRequest as st, createInProcessTransport as su, AgentProfile$2 as t, createScopeAnalyst as ta, PipelineStage as tc, DelegationRecord as td, InMemoryDelegationStore as tf, openSandboxRun as ti, LeaderboardRow as tl, delegatesWorkerBriefPrompt as tn, SuperviseTestOptions as to, loadSpawnForest as tp, RepairStop as tr, pickBestDelivered as ts, workerTraceAnalysisStore as tt, WorkerWatchOptions as tu, BoxSurfaceReaderOptions as u, BenchmarkReport as ua, TrajectoryReportFn as uc, hashIdempotencyInput as ud, RetainedRunDispatchBindingError as uf, createSandboxToolPartState as ui, renderLeaderboardSvg as ul, DispatchReport as un, ResolveSupervisorTools as uo, DefineProfileMaterializationContractOptions as up, defaultExtractCandidate as ur, RunAgentRoundsOptions as us, cancelWorker as ut, DELEGATE_INPUT_SCHEMA as uu, fsSurfaceReader as v, AgenticSurface as va, WinnerStrategy as vc, DelegateResearchResult as vd, RetainedRunAdmission as vf, AcquireOptions as vi, AnytimeStrategySummary as vl, DelegateOptions as vn, SupervisorToolInvocationContext as vo, fullProfileMaterialization as vp, structuralRollout as vr, inlineSandboxClient as vs, supervisorRunsRoot as vt, JsonRpcMessage as vu, failuresAnalyst as w, ShotSpec as wa, PersonaContext as wc, DelegationFeedbackSnapshot as wd, RetainedRunEnvironmentAdmission as wf, ResolveSandboxClientOptions as wi, renderAnytimeTable as wl, driverAgent as wn, CoordinationLog as wo, renderProfileMaterializationIssues as wp, EvolutionBandInfo as wr, HarvestFailure as ws, workerInboxFile as wt, InMemoryFeedbackStore as wu, SuperviseSurfaceResult as x, ArtifactHandle as xa, LoopShape as xc, DelegateUiAuditResult as xd, RetainedRunCancellation as xf, recoverRetainedRun as xi, areaUnderCurve as xl, CoordinationMcpHandle as xn, supervisorAgent as xo, promptModelProfileMaterialization as xp, ChampionPolicy as xr, InProcessSandboxClientOptions as xs, workerCancellationFile as xt, McpTransport as xu, harvestSurfaceDiffs as y, AgenticTask as ya, DefinePersona as yc, DelegateUiAuditArgs as yd, RetainedRunAdmissionHook as yf, acquireSandbox as yi, AnytimeTaskCurve as yl, defaultDelegateBudget as yn, assertCoordinationBinding as yo, profileMaterializationAxes$1 as yp, visibleCheckScore as yr, InProcessOnPrompt as ys, supervisorWorkersDir as yt, JsonRpcResponse as yu, withUntrackedArtifacts as z, sampleThenRefine as za, LeaderboardScore as zc, UiAuditorDelegationOutput as zd, defaultToolDetectors as zf, runPersonified as zi, DEFAULT_AWAIT_EVENT_TIMEOUT_MS as zl, createBudgetPool as zn, anyOf as zo, strategyAuthorSystemPrompt as zr, EqualKOnCost as zs, EdgeTraversal as zt, FleetWorkspaceExecutorOptions as zu };
8530
- //# sourceMappingURL=index-DDDihU_f.d.ts.map
8545
+ //# sourceMappingURL=index-DjPLpg7-.d.ts.map
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { $ as OpenAIChatToolChoice, A as RuntimeRunCompleteInput, B as AgentBackendInput, F as RuntimeRunRow, G as AgentTaskContext, H as AgentKnowledgeProvider, I as RuntimeRunStatus, J as AgentTaskStatus, K as AgentTaskRunResult, L as startRuntimeRun, M as RuntimeRunHandle, N as RuntimeRunOptions, P as RuntimeRunPersistenceAdapter, Q as OpenAIChatTool, R as AgentAdapter, U as AgentRuntimeEvent, V as AgentExecutionBackend, W as AgentRuntimeEventSink, X as KnowledgeReadinessDecision, Y as BackendErrorDetail, Z as OpenAIChatResponseFormat, et as RunAgentTaskOptions, it as RuntimeStreamEvent, j as RuntimeRunCost, m as LoopResult, nt as RuntimeSession, q as AgentTaskSpec, r as Driver, rt as RuntimeSessionStore, tt as RunAgentTaskStreamOptions, z as AgentBackendContext } from "./types-BBwGSiAj.js";
2
2
  import { i as SurfaceImprovementEdit } from "./improvement-adapter-D5gwwoXQ.js";
3
3
  import { o as ImprovementProposalSource } from "./types-zWfqDjeL.js";
4
- import { Al as AnalystRegistry, Il as CoordinationEvent, Qo as SupervisorFinalizer, Xo as FinalizeContext, af as ConfigError, cf as PlannerError, df as RuntimeRunStateError, ff as ValidationError, if as BackendTransportError, ir as StructuralRolloutPolicy, lf as RetainedRunAdmissionError, nf as AgentEvalError, of as JudgeError, rf as AgentEvalErrorCode, sf as NotFoundError, uf as RetainedRunDispatchBindingError } from "./index-DDDihU_f.js";
4
+ import { Al as AnalystRegistry, Il as CoordinationEvent, Qo as SupervisorFinalizer, Xo as FinalizeContext, af as ConfigError, cf as PlannerError, df as RuntimeRunStateError, ff as ValidationError, if as BackendTransportError, ir as StructuralRolloutPolicy, lf as RetainedRunAdmissionError, nf as AgentEvalError, of as JudgeError, rf as AgentEvalErrorCode, sf as NotFoundError, uf as RetainedRunDispatchBindingError } from "./index-DjPLpg7-.js";
5
5
  import { a as RuntimeHookErrorContext, c as RuntimeHookTarget, d as defineRuntimeHooks, f as notifyRuntimeDecisionPoint, i as RuntimeHookContext, l as RuntimeHooks, n as RuntimeDecisionKind, o as RuntimeHookEvent, p as notifyRuntimeHookEvent, r as RuntimeDecisionPoint, s as RuntimeHookPhase, t as RuntimeDecisionEvidenceRef, u as composeRuntimeHooks } from "./runtime-hooks-sbRpjStq.js";
6
6
  import { At as exportEvalRuns, Bt as RuntimeTelemetryOptions, Ct as OtelSpan, Dt as buildRuntimeEventOtelSpans, E as ProviderModelExecutionEvidence, Et as buildLoopSpanNodes, Ft as toOtelAttributes, G as SpendGap, Gt as sanitizeAgentRuntimeEvent, Ht as SanitizedKnowledgeRequirement, I as Scope, It as RuntimeEventCollector, J as Supervisor, Kt as sanitizeKnowledgeReadinessReport, L as Settled, Lt as RuntimeStreamEventCollector, Mt as loopEventToOtelSpan, N as RootProviderModelEvidence, Nt as padSpanId, Ot as createOpenInferenceFileExporter, Pt as padTraceId, Rt as RuntimeStreamEventSink, St as OtelExporter, T as ProviderModelAttemptEvidence, Tt as buildLoopOtelSpans, U as Spend, Ut as createRuntimeEventCollector, Vt as SanitizedKnowledgeReadinessReport, W as SpendChannel, Wt as createRuntimeStreamEventCollector, _t as EvalRunsExportResult, bt as OtelAttribute, gt as EvalRunsExportConfig, ht as EvalRunGeneration, i as Budget, jt as generateSpanId, kt as createOtelExporter, m as ExecutorRegistry, mt as EvalRunEvent, nt as WorkerTraceUnavailableReason, q as SupervisedResult, qt as sanitizeRuntimeStreamEvent, r as AgentSpec, s as Executor, tt as WorkerTraceEvidence, vt as INTELLIGENCE_WIRE_VERSION, wt as RuntimeEventOtelOptions, xt as OtelExportConfig, yt as LoopSpanNode, zt as RuntimeStreamEventSummary } from "./types-BCkweg3w.js";
7
7
  import { A as WorktreeCheckRunner } from "./runtime-WugWo__W.js";
@@ -10,8 +10,8 @@ import { A as AgentCandidateExecutionPhase, B as AgentCandidatePreparationEviden
10
10
  import { A as AgentCandidateWorkspacePort, B as ResolvedAgentCandidateContainer, C as AgentCandidateProtectedModelSettlement, D as AgentCandidateRunFinalization, E as AgentCandidateRepositoryPort, F as PreparedAgentCandidateExecution, H as VerifiedAgentCandidateTaskOutcome, I as PreparedAgentCandidateInstruction, L as PreparedAgentCandidateKnowledge, M as CANDIDATE_TRACE_TAGS, N as CanonicalCandidateDocument, O as AgentCandidateTaskExecution, P as PersistedTaskOutcomeEvidence, R as PreparedAgentCandidateLaunch, S as AgentCandidateProtectedModelReservation, T as AgentCandidateProtectedRunCapture, V as VerifiedAgentCandidate, _ as AgentCandidateModelLimits, a as AgentCandidateExecutionPorts, b as AgentCandidateOutputPurpose, c as AgentCandidateExecutorPort, d as AgentCandidateExecutorStopRequest, f as AgentCandidateExecutorTaskOutcomeCapture, g as AgentCandidateMemoryResetResult, h as AgentCandidateMemoryPort, i as AgentCandidateContainerPort, j as CANDIDATE_TRACE_ENV, k as AgentCandidateVerificationPorts, l as AgentCandidateExecutorProfileFile, m as AgentCandidateExecutorWorkspaceInput, n as AgentCandidateBenchmarkGraderIdentity, o as AgentCandidateExecutorFinalCapture, p as AgentCandidateExecutorWorkspaceFile, r as AgentCandidateBenchmarkGraderPort, s as AgentCandidateExecutorMemoryCapture, t as AgentCandidateArtifactPort, u as AgentCandidateExecutorRequest, v as AgentCandidateModelPort, w as AgentCandidateProtectedModelSettlementCall, x as AgentCandidateProtectedModelActivation, y as AgentCandidateOutputArtifactPort, z as PreparedAgentCandidateTrace } from "./types-CxU37Uzr.js";
11
11
  import { $ as sleep, A as RunConversationOptions, B as buildForwardHeaders, C as ConversationResult, D as HaltPredicate, E as HaltContext, F as InMemoryConversationJournal, G as CircuitBreakerState, H as readDepth, I as DEFAULT_MAX_DEPTH, J as RetryBackoff, K as CircuitOpenError, L as FORWARD_HEADERS, M as ConversationJournal, N as ConversationJournalEntry, O as HaltReason, P as FileConversationJournal, Q as makePerAttemptSignal, R as ForwardHeaderName, S as ConversationPolicy, T as ConversationTurn, U as BackendCallPolicy, V as isDepthExceeded, W as CircuitBreakerConfig, X as computeBackoff, Y as RetryableErrorPredicate, Z as defaultIsRetryable, _ as createConversationBackend, a as RunPersonaConfig, b as ConversationDriveState, c as runPersonaDispatch, d as D1DatabaseLike, et as createProfileExecutionBackend, f as D1StmtLike, g as defineConversation, h as d1ToSqlAdapter, i as PersonaDriver, j as TurnOrder, k as HaltSignal, l as runConversation, m as SqlConversationJournal, n as turnId, o as RunPersonaConversationOptions, p as SqlAdapter, q as DeadlineExceededError, r as PersonaConversationResult, s as runPersonaConversation, t as slugifySpeaker, u as runConversationStream, v as AuthSource, w as ConversationStreamEvent, x as ConversationParticipant, y as Conversation, z as PropagatedHeaders } from "./index-CETQJlqT.js";
12
12
  import { $ as agenticGenerator, A as ImprovementCandidate, B as ImprovementProfilePopulationLineage, C as ImproveProfileComponents, D as ImproveScenarioPartitions, E as ImproveRuntimeCodeGeneratorOptions, F as ImprovementProfileCandidatePopulationAvailable, G as ReadonlyAgentProfile, H as ImprovementProfilePopulationObservationSource, I as ImprovementProfileCandidatePopulationUnavailable, J as AgenticGeneratorShotDisposition, K as AgenticGeneratorExecutorForWorktree, L as ImprovementProfilePopulationArtifactSource, M as ImprovementMaterializedProfilePopulationCandidate, N as ImprovementProfileCandidate, O as ImproveSkillsOptions, P as ImprovementProfileCandidatePopulation, Q as VerifyResult, R as ImprovementProfilePopulationCandidate, S as ImproveProfileAgent, T as ImproveResult, U as ImprovementRefusedProfilePopulationCandidate, V as ImprovementProfilePopulationLineageNode, W as DeepReadonly, X as AgenticGeneratorShotReceipt, Y as AgenticGeneratorShotExecution, Z as Verifier, _ as ImproveMethodOptions, a as ImproveCandidateValidationInput, b as ImproveOptimizationRunOptions, c as ImproveCodeOptions, d as ImproveCost, et as commandVerifier, f as ImproveCustomCodeGeneratorOptions, g as ImproveMethodLineage, h as ImproveMethodFactory, i as improve, j as ImprovementCodeCandidate, k as ImproveSurface, l as ImproveCodeResult, m as ImproveMethodContext, nt as CandidateGenerator, o as ImproveCandidateValidator, p as ImproveLineage, q as AgenticGeneratorOptions, s as ImproveCodeBaseOptions, t as Redactor, tt as defaultBuildPrompt, u as ImproveCodeRunOptions, v as ImproveMethodResult, w as ImproveProfileSurface, x as ImproveOptions, y as ImproveMethodSource, z as ImprovementProfilePopulationCandidateSource } from "./redact--KfuCwwo.js";
13
- import { C as KnowledgeImprovementActivationExecutor, S as CreateKnowledgeImprovementActivationExecutorOptions, _ as SupervisedKnowledgeUpdater, a as KnowledgeImprovementJobResult, b as knowledgeReadinessDeliverable, c as createAgentKnowledgeReadinessCheck, d as KnowledgeReadinessCheckInput, f as KnowledgeReadinessCheckResult, g as SupervisedKnowledgeUpdateResult, h as SupervisedKnowledgeUpdateOptions, i as KnowledgeImprovementJobMeasurement, l as runKnowledgeImprovementJob, m as SupervisedKnowledgeUpdateInput, n as KnowledgeImprovementCandidatePair, o as RunKnowledgeImprovementJobOptions, p as RESEARCH_SUPERVISOR_SYSTEM_PROMPT, r as KnowledgeImprovementExperimentBundles, s as buildKnowledgeImprovementExperimentBundles, t as AgentKnowledgeReadinessCheckOptions, u as KnowledgeReadinessCheck, v as createSupervisedKnowledgeUpdater, w as createKnowledgeImprovementActivationExecutor, x as runSupervisedKnowledgeUpdate, y as formatSupervisedKnowledgeTask } from "./index-WwBPewCx.js";
14
- import { _ as researchLoopRunner, a as DELEGATED_LOOP_MODES, c as DelegatedLoopResult, d as ResearchLoopRunnerOptions, f as RunDelegatedLoopOptions, g as isDelegatedLoopMode, h as auditLoopRunner, i as runLoopRunnerCli, l as DelegatedLoopRunner, m as WorktreeLoopRunnerOptions, n as LoopRunnerCliResult, o as DelegatedLoopMode, p as VetoedFact, r as parseLoopRunnerArgv, s as DelegatedLoopRegistry, t as LoopRunnerCliArgs, u as ResearchLoopResult, v as runDelegatedLoop, y as worktreeLoopRunner } from "./loop-runner-bin-BCVECt46.js";
13
+ import { C as KnowledgeImprovementActivationExecutor, S as CreateKnowledgeImprovementActivationExecutorOptions, _ as SupervisedKnowledgeUpdater, a as KnowledgeImprovementJobResult, b as knowledgeReadinessDeliverable, c as createAgentKnowledgeReadinessCheck, d as KnowledgeReadinessCheckInput, f as KnowledgeReadinessCheckResult, g as SupervisedKnowledgeUpdateResult, h as SupervisedKnowledgeUpdateOptions, i as KnowledgeImprovementJobMeasurement, l as runKnowledgeImprovementJob, m as SupervisedKnowledgeUpdateInput, n as KnowledgeImprovementCandidatePair, o as RunKnowledgeImprovementJobOptions, p as RESEARCH_SUPERVISOR_SYSTEM_PROMPT, r as KnowledgeImprovementExperimentBundles, s as buildKnowledgeImprovementExperimentBundles, t as AgentKnowledgeReadinessCheckOptions, u as KnowledgeReadinessCheck, v as createSupervisedKnowledgeUpdater, w as createKnowledgeImprovementActivationExecutor, x as runSupervisedKnowledgeUpdate, y as formatSupervisedKnowledgeTask } from "./index-CP1RvdOw.js";
14
+ import { _ as researchLoopRunner, a as DELEGATED_LOOP_MODES, c as DelegatedLoopResult, d as ResearchLoopRunnerOptions, f as RunDelegatedLoopOptions, g as isDelegatedLoopMode, h as auditLoopRunner, i as runLoopRunnerCli, l as DelegatedLoopRunner, m as WorktreeLoopRunnerOptions, n as LoopRunnerCliResult, o as DelegatedLoopMode, p as VetoedFact, r as parseLoopRunnerArgv, s as DelegatedLoopRegistry, t as LoopRunnerCliArgs, u as ResearchLoopResult, v as runDelegatedLoop, y as worktreeLoopRunner } from "./loop-runner-bin-DndNkp6D.js";
15
15
  import { n as mcpToolsForRuntimeMcpSubset, t as mcpToolsForRuntimeMcp } from "./openai-tools-DU3TZvFY.js";
16
16
  import { ControlBudget, ControlDecision, ControlEvalResult, ControlEvalResult as ControlEvalResult$1, ControlRunResult, ControlStep, DataAcquisitionPlan, KnowledgeReadinessReport, KnowledgeReadinessReport as KnowledgeReadinessReport$1, KnowledgeRequirement, ProposalFinding, RunRecord, RunRecord as RunRecord$1 } from "@tangle-network/agent-eval";
17
17
  import { GepaOptimizationMethodConfig, SkillOptOptimizationMethodConfig } from "@tangle-network/agent-eval/campaign";
package/dist/index.js CHANGED
@@ -9,10 +9,10 @@ import { At as createRuntimeStreamEventCollector, Dt as padTraceId, Et as padSpa
9
9
  import { i as notifyRuntimeHookEvent, n as defineRuntimeHooks, r as notifyRuntimeDecisionPoint, t as composeRuntimeHooks } from "./runtime-hooks-C7iJOWm3.js";
10
10
  import { D as optimizerMethod, O as strategyAuthorMethod } from "./structural-rollout-keBf4YEc.js";
11
11
  import { A as improve, B as commandVerifier, F as normalizeRolloutPolicy, I as parseRolloutPolicy, L as serializeRolloutPolicy, M as rawTraceDistiller, N as ROLLOUT_POLICY_EXTENSION, P as applyRolloutPolicyToProfile, R as structuralRolloutPolicyFromProfile, V as defaultBuildPrompt, j as withMethodRuntimeControls, z as agenticGenerator } from "./improvement-cycle-B8KrGlT4.js";
12
- import { Ft as McpSpawnFault, It as connectStdioMcp } from "./runtime-CakFDuE-.js";
12
+ import { Ft as McpSpawnFault, It as connectStdioMcp } from "./runtime-BQTE0RJS.js";
13
13
  import { n as defaultRedactorIdentityMaterial, r as resolveRedactor, t as defaultRedactor } from "./redact-D-u-rrcn.js";
14
14
  import { a as createSupervisedKnowledgeUpdater, c as runSupervisedKnowledgeUpdate, i as RESEARCH_SUPERVISOR_SYSTEM_PROMPT, l as createKnowledgeImprovementActivationExecutor, n as createAgentKnowledgeReadinessCheck, o as formatSupervisedKnowledgeTask, r as runKnowledgeImprovementJob, s as knowledgeReadinessDeliverable, t as buildKnowledgeImprovementExperimentBundles } from "./knowledge-_7FWqPwl.js";
15
- import { a as isDelegatedLoopMode, c as worktreeLoopRunner, i as auditLoopRunner, n as runLoopRunnerCli, o as researchLoopRunner, r as DELEGATED_LOOP_MODES, s as runDelegatedLoop, t as parseLoopRunnerArgv } from "./loop-runner-bin-DalzKZGk.js";
15
+ import { a as isDelegatedLoopMode, c as worktreeLoopRunner, i as auditLoopRunner, n as runLoopRunnerCli, o as researchLoopRunner, r as DELEGATED_LOOP_MODES, s as runDelegatedLoop, t as parseLoopRunnerArgv } from "./loop-runner-bin-CnlVnCM1.js";
16
16
  import { n as mcpToolsForRuntimeMcpSubset, t as mcpToolsForRuntimeMcp } from "./openai-tools-o7jw10Fn.js";
17
17
  import { FAILURE_CLASSES, acquisitionPlansForKnowledgeGaps, blockingKnowledgeEval, canonicalJson, runAgentControlLoop, scoreKnowledgeReadiness, userQuestionsForKnowledgeGaps } from "@tangle-network/agent-eval";
18
18
  import { gepaOptimizationMethod, skillOptOptimizationMethod } from "@tangle-network/agent-eval/campaign";
package/dist/kernel.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { C as MountRecorder, D as SelectionReceipt, E as SandboxClient, O as ValidationCtx, S as MountManifestEntry, T as RunProvenance, _ as LoopTeardownFailedPayload, a as Iteration, b as LoopTraceEvent, c as LoopIterationDispatchPayload, d as LoopLineageOptions, f as LoopPlanDescription, g as LoopStartedPayload, h as LoopSandboxPlacement, i as ExecCtx, k as Validator, l as LoopIterationEndedPayload, m as LoopResult, n as DefaultVerdict, o as LoopDecisionPayload, p as LoopPlanPayload, r as Driver, s as LoopEndedPayload, t as AgentRunSpec, u as LoopIterationStartedPayload, v as LoopTokenUsage, w as OutputAdapter, x as LoopWinner, y as LoopTraceEmitter } from "./types-BBwGSiAj.js";
2
- import { $ as captureWorkerTraceEvidence, $a as SuperviseRegistry, $c as Leaderboard, $f as SpawnForestNode, $i as assertTraceDerivedFindings, $l as WorkerResumeContext, $n as CheckSource, $o as bestDelivered, $r as SandboxRunAbortError, $s as PanelVerdict, $t as analyzesFindingsReportPrompt, A as NOTE_MAX_CHARS, Aa as StrategyShotResult, Ac as ShapeRegistry, Af as StartRetainedRunOptions, Ai as profileOptimizerModelCall, Al as AnalystRegistry, An as ChatWorkerSeamOptions, Ao as PlateauOptions, Ar as discriminatingMeans, As as defaultAnalystInstruction, At as createFileRunContext, B as GitWorkspaceOptions, Ba as LoopCampaignDispatchOptions, Bc as LeaderboardSpec, Bf as watchTrace, Bi as FileCorpus, Bl as DownMessageAuthorizationInput, Bn as spendFromUsageEvents, Bo as createProgressTracker, Br as LocalMcpMaterialization, Bs as EqualKOnCostOptions, Bt as GraphEdge, C as SurfaceWorkerOut, Ca as RunAgenticOptions, Cc as Persona, Cf as RetainedRunEffect, Ci as startRetainedRunInEnvironment, Cl as plateauLength, Co as CoordinationDeliveryEvidence, Cr as EvolutionAuthor, Cs as HarvestCorpusOptions, Ct as workerControlLogFile, D as WorktreeFanoutOptions, Da as StrategyCtx, Dc as RunPersonifiedOptions, Df as RetainedRunReplayPoint, Di as PromotionVerdict, Dl as WaterfallSpan, Dn as ChatSessionStore, Do as PriorCoordination, Dr as EvolutionReport, Ds as Observation, Dt as InMemoryRunContext, E as AuthoredHarness, Ea as StrategyArtifacts, Ec as RunPersonified, Ef as RetainedRunHandle, Ei as PromotionGateOptions, El as WaterfallReport, En as ChatCompletionsTransport, Eo as FileCoordinationLog, Er as EvolutionGeneration, Es as harvestCorpus, Et as writeWorkerSteer, F as settledWorkerOut, Fa as depthStrategy, Fc as LeaderboardFlagSpec, Ff as EventBus, Fi as builtinShapes, Fl as ContinuityMode, Fn as BudgetPoolRestore, Fo as StopDecision, Fr as AuthoredStrategy, Fs as Corpus, Ft as WorktreePatchArtifact, G as gitWorkspace, Ga as loopCampaignDispatch, Gc as CompletionVerdict, Gf as FileResultBlobStore, Gi as loopUntil, Gn as assessAuthoredProfile, Go as SupervisorSpanOptions, Gr as StdioMcpServerSpec, Gs as FanoutWinnerSelector, H as Workspace, Ha as LoopOptionsForDispatch, Hc as CompletionAnalyst, Hf as ExecutorResultMapping, Hi as renderCorpusToInstructions, Hl as DownMessageDeliveryOutcome, Hn as ProfileRichness, Ho as plateau, Hr as McpSpawnFault, Hs as Fanout, Ht as GraphNode, I as CopyOptions, Ia as refine, Ic as LeaderboardIterationInfo, If as PublishOptions, Ii as createShapeRegistry, Il as CoordinationEvent, In as BudgetReadout, Io as StopRule, Ir as assertStrategyContract, Is as CorpusFilter, It as createWorktreeCliExecutor, J as runInWorkspace, Ja as AuthorizedSpawn, Jc as sentinelCompletion, Jf as InMemorySpawnJournal, Ji as selectValidWinner, Jn as supervisorInstructions, Jo as createSupervisorSpanRecorder, Jr as Deliverable, Js as LoopUntilSpec, Jt as runGraph, K as jjWorkspace, Ka as loopDispatch, Kc as completionAuthorizes, Kf as FileSpawnJournal, Ki as panel, Kn as defaultProfileRichnessThresholds, Ko as SupervisorSpanOutcome, Kr as connectStdioMcp, Ks as FlatWidenGate, Kt as TraversalContinuity, L as UntrackedCopyStats, La as runAgentic, Lc as LeaderboardRunContext, Lf as createEventBus, Li as registerShape, Ln as ReservationRejection, Lo as allOf, Lr as authorStrategy, Ls as CorpusRecord, Lt as AgentGraph, M as WorkerEvidenceInput, Ma as adaptiveRefine, Mc as LeaderboardBenchScore, Mf as BusEvent, Mi as assertProfileModelsAllowed, Ml as AuthorizeDownMessage, Mn as chatWorkerSeam, Mo as ProgressTracker, Mr as runStrategyEvolution, Ms as renderReport, Mt as PatchDeliverableOptions, N as closingWorkerNote, Na as breadthStrategy, Nc as LeaderboardBenchTask, Nf as BusRecord, Ni as equalKOnCost, Nl as AuthorizedDownMessage, Nn as createChatSessionStore, No as ProgressTrackerOptions, Nr as selectChampion, Ns as AssertTraceDerivedFindings, Nt as patchDelivered, O as worktreeFanout, Oa as StrategyMessage, Oc as ShapeBudget, Of as RetainedRunSnapshot, Oi as promotionGate, Ol as createWaterfallCollector, On as ChatTransportExecutorOptions, Oo as AllWorkersStalledOptions, Or as ReproductionCheck, Os as ObserveInput, Ot as InMemoryRunContextOptions, P as composeWorkerEvidence, Pa as defineStrategy, Pc as LeaderboardBenchmarkAdapter, Pf as BusStats, Pi as trajectoryReport, Pl as ContinuationInstruction, Pn as BudgetPool, Po as ProgressView, Pr as AuthorStrategyOptions, Ps as CombinatorShape, Pt as WorktreeCliExecutorOptions, Q as WorkerToolTraceArtifact, Qa as SuperviseOptions, Qc as Interval, Qf as SpawnForestMissingTree, Qi as RegistryAnalyzeProjection, Qn as CheckRunner, Qo as SupervisorFinalizer, Qr as SandboxRun, Qs as PanelSpec, Qt as RegisteredPrompt, R as copyUntrackedIntoClone, Ra as sample, Rc as LeaderboardScenario, Rf as WatchTraceOptions, Ri as definePersona, Rn as ReservationTicket, Ro as allWorkersStalled, Rr as strategyAuthorContract, Rs as EqualKArm, Rt as EdgeDeliveryOutcome, S as SurfaceWorkerConfig, Sa as CorpusReadbackOptions, Sc as Outcome, Sf as RetainedRunDispatchedAdmission, Si as startRetainedRun, Sl as bestSoFar, Sn as serveCoordinationMcp, Sr as EvolutionArchiveNode, Ss as inProcessSandboxClient, St as workerCancellationsDir, T as superviseSurface, Ta as Strategy, Tc as PersonaExecutors, Tf as RetainedRunEventOptions, Ti as resolveSandboxClient, Tl as WaterfallCollector, Tn as finalizeBestDelivered, To as CoordinationOwnerId, Tr as EvolutionCandidate, Ts as HarvestReport, Tt as workerInboxFileFromEventDir, U as WorkspaceCommit, Ua as SuperviseDispatchOptions, Uc as CompletionEvidence, Uf as gateOnDeliverable, Ui as fanout, Ul as DownMessageEvent, Un as ProfileRichnessThresholds, Uo as sampleFromSettled, Ur as McpToolDescriptor, Us as FanoutOptions, Ut as GraphResult, V as Shell, Va as LoopDispatchOptions, Vc as defineLeaderboard, Vf as DeliverableSpec, Vi as InMemoryCorpus, Vl as DownMessageDeliveryAttempt, Vn as AuthoredProfile, Vo as noProgressFor, Vr as MaterializeLocalMcpOptions, Vs as EqualKVerdict, Vt as GraphEdgeCapError, W as WorkspaceRun, Wa as SuperviseOptionsForDispatch, Wc as CompletionPolicy, Wf as mapExecutorResult, Wi as flatWidenGate, Wl as MakeWorkerAgent, Wn as asAuthoredProfile, Wo as SupervisorSpanAttributes, Wr as StdioMcpConnection, Ws as FanoutSynthesis, Wt as RunGraphOptions, X as analyzeTrace, Xa as DEFAULT_AUTHORED_PROFILE_SECURITY_POLICY, Xc as AxisScoresOf, Xf as SpawnForestEvent, Xi as widen, Xn as CheckOutcome, Xo as FinalizeContext, Xr as OpenSandboxRunOptions, Xs as Panel, Xt as PromptHandle, Y as TrajectoryAnalysis, Ya as AuthorizedSpawnContext, Yc as stopSentinel, Yf as SpawnForest, Yi as verify, Yn as CheckExecChannel, Yo as DeliveredOutput, Yr as OpenSandboxRunBeforeStartContext, Ys as LoopUntilState, Z as WORKER_TOOL_TRACE_SCHEMA_VERSION, Za as DeliverableResolutionInput, Zc as GroupOf, Zf as SpawnForestInDoubtNode, Zi as CreateScopeAnalystOptions, Zn as CheckRunContext, Zo as FinalizerSettled, Zr as OpenSandboxRunPromptOptions, Zs as PanelJudge, Zt as PromptRegistry, _ as boxSurfaceReader, _a as AgenticRunResult, _c as WidenSpec, _f as RecoverRetainedRunResult, _i as probeSandboxCapabilities, _l as AnytimeReport, _n as rollingDispatch, _o as SupervisorToolDescriptor, _r as selectBestIndex, _s as localSandboxClient, _t as supervisorRunDir, a as SandboxInstance, aa as createMcpEnvironment, ac as ScopeAnalyzeInput, ai as SandboxLineage, al as ScoreOf, an as kernelPromptRegistry, ao as CoordinationBinding, ap as contentAddress, ar as StructuralRolloutResult, as as DriverAttemptStop, at as createScope, b as SuperviseSurfaceOptions, ba as AgenticTool, bc as DefinePersonaInput, bf as RetainedRunCancelOptions, bi as reconnectRetainedRun, bl as anytimeReport, bn as delegate, bo as resolveSupervisorProfile, br as ChampionPick, bs as InProcessPromptCtx, bt as workerCancelRequestsFile, c as VerifierEnvironmentOptions, ca as BenchmarkConfig, cc as TrajectoryNode, ci as createSandboxLineage, cl as renderLeaderboardHtml, cn as supervisorPolicyPrompt, co as ObserveSupervisorNodeEvent, cr as compareCheckOutcomes, cs as DriverRetryPolicy, ct as WorkerCancellation, d as HarvestSurfaceDiffsOptions, da as BenchmarkStrategySummary, dc as TrajectoryReportOptions, di as extractLlmCallEvent, dl as renderPairwiseMarkdown, dn as DispatchStopReason, do as ResolvedSupervisorProfile, dr as defaultStructuralRolloutPolicy, ds as TERMINAL_DECISIONS, dt as legacySupervisorRunDir, ea as buildSteerContext, ec as Pipeline, ei as TurnResult, el as LeaderboardOptions, en as createPromptRegistry, eo as SuperviseRegistryTable, ep as SpawnForestTree, er as CheckSourceCtx, es as collectDelivered, et as parseWorkerToolTraceArtifact, eu as WorkerSpawnContext, f as SurfaceDiff, fa as BenchmarkTaskRow, fc as Verify, fi as mapSandboxEvent, fl as AuditIntentInput, fn as DispatchUnit, fo as SupervisorAgentDeps, fr as filterAuthoredAsserts, fs as TerminalDecision, ft as legacySupervisorRunsRoot, g as WatchedSurface, ga as AgenticOptions, gc as WidenLineage, gf as RecoverRetainedRunOptions, gi as SandboxCapabilities, gl as defaultAuditorInstruction, gn as queueOf, go as SupervisorProfile, gr as sandboxCheckRunner, gs as LocalSandboxClientOptions, gt as safeWorkerFile, h as SurfaceReader, ha as runBenchmark, hc as WidenDecision, hf as ReconnectRetainedRunOptions, hi as CriuCapableClient, hl as auditIntent, hn as freeSlots, ho as SupervisorNodeContextSeed, hr as resolveEntrySymbol, hs as runAgentRounds, ht as readWorkerSteerRequests, i as SandboxEvent, ia as McpEnvironmentOptions, ic as ScopeAnalyst, ii as ForkCapableBox, il as ProfileKeyOf, in as formatPromptHandle, io as workerFromBackend, ip as replaySpawnTree, ir as StructuralRolloutPolicy, is as DriverAttemptRecord, it as ScopeArgs, iu as normalizeAnalyzeOnSettle, j as VERIFY_TAIL_CHARS, ja as SurfaceScore, jc as DefinedLeaderboard, ji as assertModelAllowed, jl as AnalyzeOnSettleRoute, jn as chatTransportExecutor, jo as ProgressSample, jr as pickChampion, js as observe, jt as createInMemoryRunContext, k as EVIDENCE_MAX_CHARS, ka as StrategyResult, kc as ShapeContext, kf as StartRetainedRunInEnvironmentOptions, ki as profileChatClient, kl as AnalystFindingEvent, kn as ChatTransportTool, ko as NoProgressForOptions, kr as StrategyEvolutionConfig, ks as ObserveOptions, kt as RunContext, l as createVerifierEnvironment, la as BenchmarkLift, lc as TrajectoryReport, li as SandboxToolPartState, ll as renderLeaderboardMarkdown, ln as ConcurrencyCaps, lo as ResolveDriveHarness, lr as composeCheckSources, ls as classifyDriverFailure, lt as WorkerSteerRequest, m as SurfaceReadOutcome, ma as printBenchmarkReport, mc as Widen, mf as NativeContextContinuationInput, mi as sumSandboxUsage, ml as IntentAudit, mn as effectiveConcurrency, mo as SupervisorNodeContext, mr as officialChecksFromMeta, ms as isTerminalDecision, mt as readWorkerCancellation, n as AnalystFinding, na as registryScopeAnalyst, nc as RenderCorpusToInstructions, ni as BranchCapableBox, nl as PairwiseOptions, nn as dumbContinuationFailPrompt, no as supervise, np as materializeTreeView, nr as StructuralRolloutConfig, ns as runFinalizer, nt as createRootHandle, nu as canonicalFindingEvent, o as computeFindingId, oa as sanitizeMcpToolSchema, oc as ScopeWidenGate, oi as SandboxLineageHandle, ol as leaderboard, on as naiveContinuationPrompt, oo as DriveHarness, or as VisibleCheck, os as DriverAttemptsExhaustedError, ot as settledToIteration, p as SurfaceReadBox, pa as Environment, pc as VerifySpec, pf as NativeContextContinuationExecution, pi as mapSandboxToolEvent, pl as AuditIntentOptions, pn as RollingDispatchOptions, pr as modelAuthoredChecks, ps as defaultSelectWinner, pt as readWorkerCancelRequests, q as localShell, qa as superviseDispatch, qc as deterministicCompletion, qf as InMemoryResultBlobStore, qi as pipeline, qn as profileRichnessFinding, qo as SupervisorSpanRecorder, qr as materializeLocalMcp, qs as LoopUntil, qt as defaultEdgeTraversalCap, r as CreateSandboxOptions, ra as McpEndpoint, rc as RenderCorpusToInstructionsOptions, ri as CheckpointCapableBox, rl as PairwiseVerdict, rn as dumbContinuationPassPrompt, rp as pendingWaits, rr as StructuralRolloutMessage, rs as runTree, rt as createSupervisor, s as makeFinding, sa as BenchmarkCell, sc as SteerContext, si as SessionCapableBox, sl as pairwiseSignificance, sn as promptHandle, so as DriveHarnessOwnerContext, sr as canDisplace, ss as DriverProgressMark, st as WorkerCancelRequest, t as AgentProfile, ta as createScopeAnalyst, tc as PipelineStage, ti as openSandboxRun, tl as LeaderboardRow, tn as delegatesWorkerBriefPrompt, tp as loadSpawnForest, tr as RepairStop, ts as pickBestDelivered, tt as workerTraceAnalysisStore, tu as WorkerWatchOptions, u as BoxSurfaceReaderOptions, ua as BenchmarkReport, uc as TrajectoryReportFn, ui as createSandboxToolPartState, ul as renderLeaderboardSvg, un as DispatchReport, uo as ResolveSupervisorTools, ur as defaultExtractCandidate, us as RunAgentRoundsOptions, ut as cancelWorker, v as fsSurfaceReader, va as AgenticSurface, vc as WinnerStrategy, vf as RetainedRunAdmission, vi as AcquireOptions, vl as AnytimeStrategySummary, vn as DelegateOptions, vo as SupervisorToolInvocationContext, vr as structuralRollout, vs as inlineSandboxClient, vt as supervisorRunsRoot, w as failuresAnalyst, wa as ShotSpec, wc as PersonaContext, wf as RetainedRunEnvironmentAdmission, wi as ResolveSandboxClientOptions, wl as renderAnytimeTable, wo as CoordinationLog, wr as EvolutionBandInfo, ws as HarvestFailure, wt as workerInboxFile, x as SuperviseSurfaceResult, xa as ArtifactHandle, xc as LoopShape, xf as RetainedRunCancellation, xi as recoverRetainedRun, xl as areaUnderCurve, xn as CoordinationMcpHandle, xo as supervisorAgent, xr as ChampionPolicy, xs as InProcessSandboxClientOptions, xt as workerCancellationFile, y as harvestSurfaceDiffs, ya as AgenticTask, yc as DefinePersona, yf as RetainedRunAdmissionHook, yi as acquireSandbox, yl as AnytimeTaskCurve, yn as defaultDelegateBudget, yo as assertCoordinationBinding, yr as visibleCheckScore, ys as InProcessOnPrompt, yt as supervisorWorkersDir, z as withUntrackedArtifacts, za as sampleThenRefine, zc as LeaderboardScore, zf as defaultToolDetectors, zi as runPersonified, zl as DEFAULT_AWAIT_EVENT_TIMEOUT_MS, zn as createBudgetPool, zo as anyOf, zr as strategyAuthorSystemPrompt, zs as EqualKOnCost, zt as EdgeTraversal } from "./index-DDDihU_f.js";
2
+ import { $ as captureWorkerTraceEvidence, $a as SuperviseRegistry, $c as Leaderboard, $f as SpawnForestNode, $i as assertTraceDerivedFindings, $l as WorkerResumeContext, $n as CheckSource, $o as bestDelivered, $r as SandboxRunAbortError, $s as PanelVerdict, $t as analyzesFindingsReportPrompt, A as NOTE_MAX_CHARS, Aa as StrategyShotResult, Ac as ShapeRegistry, Af as StartRetainedRunOptions, Ai as profileOptimizerModelCall, Al as AnalystRegistry, An as ChatWorkerSeamOptions, Ao as PlateauOptions, Ar as discriminatingMeans, As as defaultAnalystInstruction, At as createFileRunContext, B as GitWorkspaceOptions, Ba as LoopCampaignDispatchOptions, Bc as LeaderboardSpec, Bf as watchTrace, Bi as FileCorpus, Bl as DownMessageAuthorizationInput, Bn as spendFromUsageEvents, Bo as createProgressTracker, Br as LocalMcpMaterialization, Bs as EqualKOnCostOptions, Bt as GraphEdge, C as SurfaceWorkerOut, Ca as RunAgenticOptions, Cc as Persona, Cf as RetainedRunEffect, Ci as startRetainedRunInEnvironment, Cl as plateauLength, Co as CoordinationDeliveryEvidence, Cr as EvolutionAuthor, Cs as HarvestCorpusOptions, Ct as workerControlLogFile, D as WorktreeFanoutOptions, Da as StrategyCtx, Dc as RunPersonifiedOptions, Df as RetainedRunReplayPoint, Di as PromotionVerdict, Dl as WaterfallSpan, Dn as ChatSessionStore, Do as PriorCoordination, Dr as EvolutionReport, Ds as Observation, Dt as InMemoryRunContext, E as AuthoredHarness, Ea as StrategyArtifacts, Ec as RunPersonified, Ef as RetainedRunHandle, Ei as PromotionGateOptions, El as WaterfallReport, En as ChatCompletionsTransport, Eo as FileCoordinationLog, Er as EvolutionGeneration, Es as harvestCorpus, Et as writeWorkerSteer, F as settledWorkerOut, Fa as depthStrategy, Fc as LeaderboardFlagSpec, Ff as EventBus, Fi as builtinShapes, Fl as ContinuityMode, Fn as BudgetPoolRestore, Fo as StopDecision, Fr as AuthoredStrategy, Fs as Corpus, Ft as WorktreePatchArtifact, G as gitWorkspace, Ga as loopCampaignDispatch, Gc as CompletionVerdict, Gf as FileResultBlobStore, Gi as loopUntil, Gn as assessAuthoredProfile, Go as SupervisorSpanOptions, Gr as StdioMcpServerSpec, Gs as FanoutWinnerSelector, H as Workspace, Ha as LoopOptionsForDispatch, Hc as CompletionAnalyst, Hf as ExecutorResultMapping, Hi as renderCorpusToInstructions, Hl as DownMessageDeliveryOutcome, Hn as ProfileRichness, Ho as plateau, Hr as McpSpawnFault, Hs as Fanout, Ht as GraphNode, I as CopyOptions, Ia as refine, Ic as LeaderboardIterationInfo, If as PublishOptions, Ii as createShapeRegistry, Il as CoordinationEvent, In as BudgetReadout, Io as StopRule, Ir as assertStrategyContract, Is as CorpusFilter, It as createWorktreeCliExecutor, J as runInWorkspace, Ja as AuthorizedSpawn, Jc as sentinelCompletion, Jf as InMemorySpawnJournal, Ji as selectValidWinner, Jn as supervisorInstructions, Jo as createSupervisorSpanRecorder, Jr as Deliverable, Js as LoopUntilSpec, Jt as runGraph, K as jjWorkspace, Ka as loopDispatch, Kc as completionAuthorizes, Kf as FileSpawnJournal, Ki as panel, Kn as defaultProfileRichnessThresholds, Ko as SupervisorSpanOutcome, Kr as connectStdioMcp, Ks as FlatWidenGate, Kt as TraversalContinuity, L as UntrackedCopyStats, La as runAgentic, Lc as LeaderboardRunContext, Lf as createEventBus, Li as registerShape, Ln as ReservationRejection, Lo as allOf, Lr as authorStrategy, Ls as CorpusRecord, Lt as AgentGraph, M as WorkerEvidenceInput, Ma as adaptiveRefine, Mc as LeaderboardBenchScore, Mf as BusEvent, Mi as assertProfileModelsAllowed, Ml as AuthorizeDownMessage, Mn as chatWorkerSeam, Mo as ProgressTracker, Mr as runStrategyEvolution, Ms as renderReport, Mt as PatchDeliverableOptions, N as closingWorkerNote, Na as breadthStrategy, Nc as LeaderboardBenchTask, Nf as BusRecord, Ni as equalKOnCost, Nl as AuthorizedDownMessage, Nn as createChatSessionStore, No as ProgressTrackerOptions, Nr as selectChampion, Ns as AssertTraceDerivedFindings, Nt as patchDelivered, O as worktreeFanout, Oa as StrategyMessage, Oc as ShapeBudget, Of as RetainedRunSnapshot, Oi as promotionGate, Ol as createWaterfallCollector, On as ChatTransportExecutorOptions, Oo as AllWorkersStalledOptions, Or as ReproductionCheck, Os as ObserveInput, Ot as InMemoryRunContextOptions, P as composeWorkerEvidence, Pa as defineStrategy, Pc as LeaderboardBenchmarkAdapter, Pf as BusStats, Pi as trajectoryReport, Pl as ContinuationInstruction, Pn as BudgetPool, Po as ProgressView, Pr as AuthorStrategyOptions, Ps as CombinatorShape, Pt as WorktreeCliExecutorOptions, Q as WorkerToolTraceArtifact, Qa as SuperviseOptions, Qc as Interval, Qf as SpawnForestMissingTree, Qi as RegistryAnalyzeProjection, Qn as CheckRunner, Qo as SupervisorFinalizer, Qr as SandboxRun, Qs as PanelSpec, Qt as RegisteredPrompt, R as copyUntrackedIntoClone, Ra as sample, Rc as LeaderboardScenario, Rf as WatchTraceOptions, Ri as definePersona, Rn as ReservationTicket, Ro as allWorkersStalled, Rr as strategyAuthorContract, Rs as EqualKArm, Rt as EdgeDeliveryOutcome, S as SurfaceWorkerConfig, Sa as CorpusReadbackOptions, Sc as Outcome, Sf as RetainedRunDispatchedAdmission, Si as startRetainedRun, Sl as bestSoFar, Sn as serveCoordinationMcp, Sr as EvolutionArchiveNode, Ss as inProcessSandboxClient, St as workerCancellationsDir, T as superviseSurface, Ta as Strategy, Tc as PersonaExecutors, Tf as RetainedRunEventOptions, Ti as resolveSandboxClient, Tl as WaterfallCollector, Tn as finalizeBestDelivered, To as CoordinationOwnerId, Tr as EvolutionCandidate, Ts as HarvestReport, Tt as workerInboxFileFromEventDir, U as WorkspaceCommit, Ua as SuperviseDispatchOptions, Uc as CompletionEvidence, Uf as gateOnDeliverable, Ui as fanout, Ul as DownMessageEvent, Un as ProfileRichnessThresholds, Uo as sampleFromSettled, Ur as McpToolDescriptor, Us as FanoutOptions, Ut as GraphResult, V as Shell, Va as LoopDispatchOptions, Vc as defineLeaderboard, Vf as DeliverableSpec, Vi as InMemoryCorpus, Vl as DownMessageDeliveryAttempt, Vn as AuthoredProfile, Vo as noProgressFor, Vr as MaterializeLocalMcpOptions, Vs as EqualKVerdict, Vt as GraphEdgeCapError, W as WorkspaceRun, Wa as SuperviseOptionsForDispatch, Wc as CompletionPolicy, Wf as mapExecutorResult, Wi as flatWidenGate, Wl as MakeWorkerAgent, Wn as asAuthoredProfile, Wo as SupervisorSpanAttributes, Wr as StdioMcpConnection, Ws as FanoutSynthesis, Wt as RunGraphOptions, X as analyzeTrace, Xa as DEFAULT_AUTHORED_PROFILE_SECURITY_POLICY, Xc as AxisScoresOf, Xf as SpawnForestEvent, Xi as widen, Xn as CheckOutcome, Xo as FinalizeContext, Xr as OpenSandboxRunOptions, Xs as Panel, Xt as PromptHandle, Y as TrajectoryAnalysis, Ya as AuthorizedSpawnContext, Yc as stopSentinel, Yf as SpawnForest, Yi as verify, Yn as CheckExecChannel, Yo as DeliveredOutput, Yr as OpenSandboxRunBeforeStartContext, Ys as LoopUntilState, Z as WORKER_TOOL_TRACE_SCHEMA_VERSION, Za as DeliverableResolutionInput, Zc as GroupOf, Zf as SpawnForestInDoubtNode, Zi as CreateScopeAnalystOptions, Zn as CheckRunContext, Zo as FinalizerSettled, Zr as OpenSandboxRunPromptOptions, Zs as PanelJudge, Zt as PromptRegistry, _ as boxSurfaceReader, _a as AgenticRunResult, _c as WidenSpec, _f as RecoverRetainedRunResult, _i as probeSandboxCapabilities, _l as AnytimeReport, _n as rollingDispatch, _o as SupervisorToolDescriptor, _r as selectBestIndex, _s as localSandboxClient, _t as supervisorRunDir, a as SandboxInstance, aa as createMcpEnvironment, ac as ScopeAnalyzeInput, ai as SandboxLineage, al as ScoreOf, an as kernelPromptRegistry, ao as CoordinationBinding, ap as contentAddress, ar as StructuralRolloutResult, as as DriverAttemptStop, at as createScope, b as SuperviseSurfaceOptions, ba as AgenticTool, bc as DefinePersonaInput, bf as RetainedRunCancelOptions, bi as reconnectRetainedRun, bl as anytimeReport, bn as delegate, bo as resolveSupervisorProfile, br as ChampionPick, bs as InProcessPromptCtx, bt as workerCancelRequestsFile, c as VerifierEnvironmentOptions, ca as BenchmarkConfig, cc as TrajectoryNode, ci as createSandboxLineage, cl as renderLeaderboardHtml, cn as supervisorPolicyPrompt, co as ObserveSupervisorNodeEvent, cr as compareCheckOutcomes, cs as DriverRetryPolicy, ct as WorkerCancellation, d as HarvestSurfaceDiffsOptions, da as BenchmarkStrategySummary, dc as TrajectoryReportOptions, di as extractLlmCallEvent, dl as renderPairwiseMarkdown, dn as DispatchStopReason, do as ResolvedSupervisorProfile, dr as defaultStructuralRolloutPolicy, ds as TERMINAL_DECISIONS, dt as legacySupervisorRunDir, ea as buildSteerContext, ec as Pipeline, ei as TurnResult, el as LeaderboardOptions, en as createPromptRegistry, eo as SuperviseRegistryTable, ep as SpawnForestTree, er as CheckSourceCtx, es as collectDelivered, et as parseWorkerToolTraceArtifact, eu as WorkerSpawnContext, f as SurfaceDiff, fa as BenchmarkTaskRow, fc as Verify, fi as mapSandboxEvent, fl as AuditIntentInput, fn as DispatchUnit, fo as SupervisorAgentDeps, fr as filterAuthoredAsserts, fs as TerminalDecision, ft as legacySupervisorRunsRoot, g as WatchedSurface, ga as AgenticOptions, gc as WidenLineage, gf as RecoverRetainedRunOptions, gi as SandboxCapabilities, gl as defaultAuditorInstruction, gn as queueOf, go as SupervisorProfile, gr as sandboxCheckRunner, gs as LocalSandboxClientOptions, gt as safeWorkerFile, h as SurfaceReader, ha as runBenchmark, hc as WidenDecision, hf as ReconnectRetainedRunOptions, hi as CriuCapableClient, hl as auditIntent, hn as freeSlots, ho as SupervisorNodeContextSeed, hr as resolveEntrySymbol, hs as runAgentRounds, ht as readWorkerSteerRequests, i as SandboxEvent, ia as McpEnvironmentOptions, ic as ScopeAnalyst, ii as ForkCapableBox, il as ProfileKeyOf, in as formatPromptHandle, io as workerFromBackend, ip as replaySpawnTree, ir as StructuralRolloutPolicy, is as DriverAttemptRecord, it as ScopeArgs, iu as normalizeAnalyzeOnSettle, j as VERIFY_TAIL_CHARS, ja as SurfaceScore, jc as DefinedLeaderboard, ji as assertModelAllowed, jl as AnalyzeOnSettleRoute, jn as chatTransportExecutor, jo as ProgressSample, jr as pickChampion, js as observe, jt as createInMemoryRunContext, k as EVIDENCE_MAX_CHARS, ka as StrategyResult, kc as ShapeContext, kf as StartRetainedRunInEnvironmentOptions, ki as profileChatClient, kl as AnalystFindingEvent, kn as ChatTransportTool, ko as NoProgressForOptions, kr as StrategyEvolutionConfig, ks as ObserveOptions, kt as RunContext, l as createVerifierEnvironment, la as BenchmarkLift, lc as TrajectoryReport, li as SandboxToolPartState, ll as renderLeaderboardMarkdown, ln as ConcurrencyCaps, lo as ResolveDriveHarness, lr as composeCheckSources, ls as classifyDriverFailure, lt as WorkerSteerRequest, m as SurfaceReadOutcome, ma as printBenchmarkReport, mc as Widen, mf as NativeContextContinuationInput, mi as sumSandboxUsage, ml as IntentAudit, mn as effectiveConcurrency, mo as SupervisorNodeContext, mr as officialChecksFromMeta, ms as isTerminalDecision, mt as readWorkerCancellation, n as AnalystFinding, na as registryScopeAnalyst, nc as RenderCorpusToInstructions, ni as BranchCapableBox, nl as PairwiseOptions, nn as dumbContinuationFailPrompt, no as supervise, np as materializeTreeView, nr as StructuralRolloutConfig, ns as runFinalizer, nt as createRootHandle, nu as canonicalFindingEvent, o as computeFindingId, oa as sanitizeMcpToolSchema, oc as ScopeWidenGate, oi as SandboxLineageHandle, ol as leaderboard, on as naiveContinuationPrompt, oo as DriveHarness, or as VisibleCheck, os as DriverAttemptsExhaustedError, ot as settledToIteration, p as SurfaceReadBox, pa as Environment, pc as VerifySpec, pf as NativeContextContinuationExecution, pi as mapSandboxToolEvent, pl as AuditIntentOptions, pn as RollingDispatchOptions, pr as modelAuthoredChecks, ps as defaultSelectWinner, pt as readWorkerCancelRequests, q as localShell, qa as superviseDispatch, qc as deterministicCompletion, qf as InMemoryResultBlobStore, qi as pipeline, qn as profileRichnessFinding, qo as SupervisorSpanRecorder, qr as materializeLocalMcp, qs as LoopUntil, qt as defaultEdgeTraversalCap, r as CreateSandboxOptions, ra as McpEndpoint, rc as RenderCorpusToInstructionsOptions, ri as CheckpointCapableBox, rl as PairwiseVerdict, rn as dumbContinuationPassPrompt, rp as pendingWaits, rr as StructuralRolloutMessage, rs as runTree, rt as createSupervisor, s as makeFinding, sa as BenchmarkCell, sc as SteerContext, si as SessionCapableBox, sl as pairwiseSignificance, sn as promptHandle, so as DriveHarnessOwnerContext, sr as canDisplace, ss as DriverProgressMark, st as WorkerCancelRequest, t as AgentProfile, ta as createScopeAnalyst, tc as PipelineStage, ti as openSandboxRun, tl as LeaderboardRow, tn as delegatesWorkerBriefPrompt, tp as loadSpawnForest, tr as RepairStop, ts as pickBestDelivered, tt as workerTraceAnalysisStore, tu as WorkerWatchOptions, u as BoxSurfaceReaderOptions, ua as BenchmarkReport, uc as TrajectoryReportFn, ui as createSandboxToolPartState, ul as renderLeaderboardSvg, un as DispatchReport, uo as ResolveSupervisorTools, ur as defaultExtractCandidate, us as RunAgentRoundsOptions, ut as cancelWorker, v as fsSurfaceReader, va as AgenticSurface, vc as WinnerStrategy, vf as RetainedRunAdmission, vi as AcquireOptions, vl as AnytimeStrategySummary, vn as DelegateOptions, vo as SupervisorToolInvocationContext, vr as structuralRollout, vs as inlineSandboxClient, vt as supervisorRunsRoot, w as failuresAnalyst, wa as ShotSpec, wc as PersonaContext, wf as RetainedRunEnvironmentAdmission, wi as ResolveSandboxClientOptions, wl as renderAnytimeTable, wo as CoordinationLog, wr as EvolutionBandInfo, ws as HarvestFailure, wt as workerInboxFile, x as SuperviseSurfaceResult, xa as ArtifactHandle, xc as LoopShape, xf as RetainedRunCancellation, xi as recoverRetainedRun, xl as areaUnderCurve, xn as CoordinationMcpHandle, xo as supervisorAgent, xr as ChampionPolicy, xs as InProcessSandboxClientOptions, xt as workerCancellationFile, y as harvestSurfaceDiffs, ya as AgenticTask, yc as DefinePersona, yf as RetainedRunAdmissionHook, yi as acquireSandbox, yl as AnytimeTaskCurve, yn as defaultDelegateBudget, yo as assertCoordinationBinding, yr as visibleCheckScore, ys as InProcessOnPrompt, yt as supervisorWorkersDir, z as withUntrackedArtifacts, za as sampleThenRefine, zc as LeaderboardScore, zf as defaultToolDetectors, zi as runPersonified, zl as DEFAULT_AWAIT_EVENT_TIMEOUT_MS, zn as createBudgetPool, zo as anyOf, zr as strategyAuthorSystemPrompt, zs as EqualKOnCost, zt as EdgeTraversal } from "./index-DjPLpg7-.js";
3
3
  import { $ as WaitOpts, $t as WaitSpec, A as ResumedWork, B as SpawnOpts, C as NodeStatus, D as Restart, E as ProviderModelExecutionEvidence, F as Runtime, G as SpendGap, H as SpawnRejection, I as Scope, J as Supervisor, Jt as PendingWait, K as SteerableRootHandle, L as Settled, M as RootMaterialization, N as RootProviderModelEvidence, O as ResultBlobStore, Ot as createOpenInferenceFileExporter, P as RootSignal, Q as UsageEvent, Qt as WaitRejection, R as SpawnEvent, S as NodeSnapshot, T as ProviderModelAttemptEvidence, U as Spend, V as SpawnPrior, W as SpendChannel, X as TreeView, Xt as WaitProbe, Y as SupervisorOpts, Yt as WaitOutcome, Z as UnknownMaterializationReason, Zt as WaitProbeRegistry, _ as MaterializedExecutionIdentity, _n as ScopeProgressInput, an as waitUntil, at as readWorkerTraceContext, b as NodeExecutionIdentity, bn as readWorkerProgress, c as ExecutorAccounting, cn as ToolStepInput, ct as workerTraceSeamKey, d as ExecutorFactory, dn as decodeToolPart, en as createWaitProbes, et as WidenGate, f as ExecutorMaterialization, fn as sandboxSessionTraceSource, g as Handle, gn as ExecutorProgress, h as ExecutorResult, hn as DEFAULT_STALL_AFTER_MS, i as Budget, in as validateWaitSpec, it as WorkerTraceSeamCarrier, j as RootHandle, k as ResumedKeyState, kt as createOtelExporter, l as ExecutorContext, ln as TraceSource, m as ExecutorRegistry, mn as ActivityNote, n as AgentExecutionRef, nn as pollFor, nt as WorkerTraceUnavailableReason, o as ExecutionBindingReceipt, on as SessionMessageLike, ot as workerTraceEnv, p as ExecutorNodeContext, pn as ActivityLog, q as SupervisedResult, r as AgentSpec, rn as timerAt, rt as WorkerTraceResolver, s as Executor, sn as SessionTraceBox, st as workerTraceHeaders, t as Agent, tn as isWaitOutcome, tt as WorkerTraceEvidence, u as ExecutorExecutionBinding, un as createPushTraceSource, v as MaterializedModelIdentity, vn as WorkerProgress, w as ProfileMaterializationReceipt, x as NodeId, y as NoWinnerError, yn as createActivityLog, z as SpawnJournal } from "./types-BCkweg3w.js";
4
- import { A as WorktreeCheckRunner, C as KeyProvider, D as resolveMcpServerLaunch, E as mcpSecretEnvMetadataKey, M as WorktreeHarnessResult, N as WorktreeProfileMaterializationReceipt, O as resolveSecretEnv, S as createInbox, T as envKeyProvider, _ as SteerableSandboxArgs, a as CliWorktreeSeam, at as ToolLoopCompaction, b as Inbox, c as RouterSeam, ct as ToolLoopToolCall, d as SandboxSeam, f as cliWorktreeExecutor, g as SandboxSteeringOptions, h as DEFAULT_SANDBOX_STEERING_MAX_TURNS, i as CliWorktreeBridgeSeam, j as WorktreeCommandResult, k as secretEnvOfMcpServer, l as RouterToolsSeam, m as createExecutorRegistry, n as BridgeSeam, nt as ToolSpec, o as ExecutorConfig, ot as ToolLoopCompactionOptions, p as createExecutor, r as CliSeam, s as ProviderSeam, st as ToolLoopMessageRecord, t as BridgeModelCredential, tt as RouterTransportConfig, u as SandboxLeafOut, v as SteerableSandboxSession, w as ResolvedMcpServerLaunch, x as InboxMessage, y as createSteerableSandboxSession } from "./runtime-WugWo__W.js";
4
+ import { A as WorktreeCheckRunner, C as KeyProvider, D as resolveMcpServerLaunch, E as mcpSecretEnvMetadataKey, M as WorktreeHarnessResult, N as WorktreeProfileMaterializationReceipt, O as resolveSecretEnv, S as createInbox, T as envKeyProvider, _ as SteerableSandboxArgs, a as CliWorktreeSeam, at as ToolLoopCompaction, b as Inbox, c as RouterSeam, ct as ToolLoopToolCall, d as SandboxSeam, f as cliWorktreeExecutor, g as SandboxSteeringOptions, h as DEFAULT_SANDBOX_STEERING_MAX_TURNS, i as CliWorktreeBridgeSeam, it as ToolLoopChat, j as WorktreeCommandResult, k as secretEnvOfMcpServer, l as RouterToolsSeam, m as createExecutorRegistry, n as BridgeSeam, nt as ToolSpec, o as ExecutorConfig, ot as ToolLoopCompactionOptions, p as createExecutor, r as CliSeam, rt as ToolLoopCallContext, s as ProviderSeam, st as ToolLoopMessageRecord, t as BridgeModelCredential, tt as RouterTransportConfig, u as SandboxLeafOut, v as SteerableSandboxSession, w as ResolvedMcpServerLaunch, x as InboxMessage, y as createSteerableSandboxSession } from "./runtime-WugWo__W.js";
5
5
  import { A as providerAsSandboxClient, C as ProviderAsSandboxClientOptions, D as WorkspaceRequest, E as SandboxClientProviderOptions, F as createTangleSandboxExactProcessProvider, M as sandboxClientAsProvider, N as CreateTangleSandboxExactProcessProviderOptions, O as createAgentEnvironmentProviderRegistry, P as SandboxControlClient, S as PlacementInfo, T as ResourceRequest, _ as CheckpointRequest, a as AgentEnvironmentProviderRef, b as ExecResult, c as AgentEnvironmentStatus, d as AgentSession, f as AgentSessionRef, g as CheckpointRef, h as AgentTurnResult, i as AgentEnvironmentProvider, j as resolveAgentEnvironmentProvider, k as providerAsExecutor, l as AgentEnvironmentSummary, n as AgentEnvironmentCapabilities, o as AgentEnvironmentProviderRegistry, p as AgentSessionStatus, r as AgentEnvironmentEvent, s as AgentEnvironmentQuery, t as AgentEnvironment, u as AgentProfileRef, v as CreateAgentEnvironmentInput, w as ProviderExecutorOptions, x as ForkRequest, y as ExecRequest } from "./environment-provider-DA8LqBV-.js";
6
6
  import { a as StreamAgentTurnOptions, i as CollectedAgentTurn, n as AgentTurnInput, o as collectAgentTurn, r as AgentTurnUsage, s as streamAgentTurn, t as AgentTurnBackend } from "./stream-agent-turn-DhPlvHwp.js";
7
- export { type AcquireOptions, type ActivityLog, type ActivityNote, type Agent, type AgentEnvironment, type AgentEnvironmentCapabilities, type AgentEnvironmentEvent, type AgentEnvironmentProvider, type AgentEnvironmentProviderRef, type AgentEnvironmentProviderRegistry, type AgentEnvironmentQuery, type AgentEnvironmentStatus, type AgentEnvironmentSummary, type AgentExecutionRef, type AgentGraph, type AgentProfile, type AgentProfileRef, type AgentRunSpec, type AgentSession, type AgentSessionRef, type AgentSessionStatus, type AgentSpec, type AgentTurnBackend, type AgentTurnInput, type AgentTurnResult, type AgentTurnUsage, type AgenticOptions, type AgenticRunResult, type AgenticSurface, type AgenticTask, type AgenticTool, type AllWorkersStalledOptions, type AnalystFinding, type AnalystFindingEvent, type AnalystRegistry, type AnalyzeOnSettleRoute, type AnytimeReport, type AnytimeStrategySummary, type AnytimeTaskCurve, type ArtifactHandle, type AssertTraceDerivedFindings, type AuditIntentInput, type AuditIntentOptions, type AuthorStrategyOptions, type AuthoredHarness, type AuthoredProfile, type AuthoredStrategy, type AuthorizeDownMessage, type AuthorizedDownMessage, type AuthorizedSpawn, type AuthorizedSpawnContext, type AxisScoresOf, type BenchmarkCell, type BenchmarkConfig, type BenchmarkLift, type BenchmarkReport, type BenchmarkStrategySummary, type BenchmarkTaskRow, type BoxSurfaceReaderOptions, type BranchCapableBox, type BridgeModelCredential, type BridgeSeam, type Budget, type BudgetPool, type BudgetPoolRestore, type BudgetReadout, type BusEvent, type BusRecord, type BusStats, type ChampionPick, type ChampionPolicy, type ChatCompletionsTransport, type ChatSessionStore, type ChatTransportExecutorOptions, type ChatTransportTool, type ChatWorkerSeamOptions, type CheckExecChannel, type CheckOutcome, type CheckRunContext, type CheckRunner, type CheckSource, type CheckSourceCtx, type CheckpointCapableBox, type CheckpointRef, type CheckpointRequest, type CliSeam, type CliWorktreeBridgeSeam, type CliWorktreeSeam, type CollectedAgentTurn, type CombinatorShape, type CompletionAnalyst, type CompletionEvidence, type CompletionPolicy, type CompletionVerdict, type ConcurrencyCaps, type ContinuationInstruction, type ContinuityMode, type CoordinationBinding, type CoordinationDeliveryEvidence, type CoordinationEvent, type CoordinationLog, type CoordinationMcpHandle, type CoordinationOwnerId, type CopyOptions, type Corpus, type CorpusFilter, type CorpusReadbackOptions, type CorpusRecord, type CreateAgentEnvironmentInput, type CreateSandboxOptions, type CreateScopeAnalystOptions, type CreateTangleSandboxExactProcessProviderOptions, type CriuCapableClient, DEFAULT_AUTHORED_PROFILE_SECURITY_POLICY, DEFAULT_AWAIT_EVENT_TIMEOUT_MS, DEFAULT_SANDBOX_STEERING_MAX_TURNS, DEFAULT_STALL_AFTER_MS, type DefaultVerdict, type DefinePersona, type DefinePersonaInput, type DefinedLeaderboard, type DelegateOptions, type Deliverable, type DeliverableResolutionInput, type DeliverableSpec, type DeliveredOutput, type DispatchReport, type DispatchStopReason, type DispatchUnit, type DownMessageAuthorizationInput, type DownMessageDeliveryAttempt, type DownMessageDeliveryOutcome, type DownMessageEvent, type DriveHarness, type DriveHarnessOwnerContext, type Driver, type DriverAttemptRecord, type DriverAttemptStop, DriverAttemptsExhaustedError, type DriverProgressMark, type DriverRetryPolicy, EVIDENCE_MAX_CHARS, type EdgeDeliveryOutcome, type EdgeTraversal, type Environment, type EqualKArm, type EqualKOnCost, type EqualKOnCostOptions, type EqualKVerdict, type EventBus, type EvolutionArchiveNode, type EvolutionAuthor, type EvolutionBandInfo, type EvolutionCandidate, type EvolutionGeneration, type EvolutionReport, type ExecCtx, type ExecRequest, type ExecResult, type ExecutionBindingReceipt, type Executor, type ExecutorAccounting, type ExecutorConfig, type ExecutorContext, type ExecutorExecutionBinding, type ExecutorFactory, type ExecutorMaterialization, type ExecutorNodeContext, type ExecutorProgress, type ExecutorRegistry, type ExecutorResult, type ExecutorResultMapping, type Fanout, type FanoutOptions, type FanoutSynthesis, type FanoutWinnerSelector, FileCoordinationLog, FileCorpus, FileResultBlobStore, FileSpawnJournal, type FinalizeContext, type FinalizerSettled, type FlatWidenGate, type ForkCapableBox, type ForkRequest, type GitWorkspaceOptions, type GraphEdge, GraphEdgeCapError, type GraphNode, type GraphResult, type GroupOf, type Handle, type HarvestCorpusOptions, type HarvestFailure, type HarvestReport, type HarvestSurfaceDiffsOptions, InMemoryCorpus, InMemoryResultBlobStore, type InMemoryRunContext, type InMemoryRunContextOptions, InMemorySpawnJournal, type InProcessOnPrompt, type InProcessPromptCtx, type InProcessSandboxClientOptions, type Inbox, type InboxMessage, type IntentAudit, type Interval, type 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 LoopDecisionPayload, type LoopDispatchOptions, type LoopEndedPayload, type LoopIterationDispatchPayload, type LoopIterationEndedPayload, type LoopIterationStartedPayload, type LoopLineageOptions, type LoopOptionsForDispatch, type LoopPlanDescription, type LoopPlanPayload, type LoopResult, type LoopSandboxPlacement, type LoopShape, type LoopStartedPayload, type LoopTeardownFailedPayload, type LoopTokenUsage, type LoopTraceEmitter, type LoopTraceEvent, type LoopUntil, type LoopUntilSpec, type LoopUntilState, type LoopWinner, type MakeWorkerAgent, type MaterializeLocalMcpOptions, type MaterializedExecutionIdentity, type MaterializedModelIdentity, type McpEndpoint, type McpEnvironmentOptions, McpSpawnFault, type McpToolDescriptor, type MountManifestEntry, type MountRecorder, NOTE_MAX_CHARS, type NativeContextContinuationExecution, type NativeContextContinuationInput, type NoProgressForOptions, type NoWinnerError, type NodeExecutionIdentity, type NodeId, type NodeSnapshot, type NodeStatus, type Observation, type ObserveInput, type ObserveOptions, type ObserveSupervisorNodeEvent, type OpenSandboxRunBeforeStartContext, type OpenSandboxRunOptions, type OpenSandboxRunPromptOptions, type Outcome, type OutputAdapter, type PairwiseOptions, type PairwiseVerdict, type Panel, type PanelJudge, type PanelSpec, type PanelVerdict, type PatchDeliverableOptions, type PendingWait, type Persona, type PersonaContext, type PersonaExecutors, type Pipeline, type PipelineStage, type PlacementInfo, type PlateauOptions, type PriorCoordination, type ProfileKeyOf, type ProfileMaterializationReceipt, type ProfileRichness, type ProfileRichnessThresholds, type ProgressSample, type ProgressTracker, type ProgressTrackerOptions, type ProgressView, type PromotionGateOptions, type PromotionVerdict, type PromptHandle, type PromptRegistry, type ProviderAsSandboxClientOptions, type ProviderExecutorOptions, type ProviderModelAttemptEvidence, type ProviderModelExecutionEvidence, type ProviderSeam, type PublishOptions, type ReconnectRetainedRunOptions, type RecoverRetainedRunOptions, type RecoverRetainedRunResult, type RegisteredPrompt, type RegistryAnalyzeProjection, type RenderCorpusToInstructions, type RenderCorpusToInstructionsOptions, type RepairStop, type ReproductionCheck, type ReservationRejection, type ReservationTicket, type ResolveDriveHarness, type ResolveSandboxClientOptions, type ResolveSupervisorTools, type ResolvedMcpServerLaunch, type ResolvedSupervisorProfile, type ResourceRequest, type Restart, type ResultBlobStore, type ResumedKeyState, type ResumedWork, type RetainedRunAdmission, type RetainedRunAdmissionHook, type RetainedRunCancelOptions, type RetainedRunCancellation, type RetainedRunDispatchedAdmission, type RetainedRunEffect, type RetainedRunEnvironmentAdmission, type RetainedRunEventOptions, type RetainedRunHandle, type RetainedRunReplayPoint, type RetainedRunSnapshot, type RollingDispatchOptions, type RootHandle, type RootMaterialization, type RootProviderModelEvidence, type RootSignal, type RouterSeam, type RouterToolsSeam, type RouterTransportConfig, type RunAgentRoundsOptions, type RunAgenticOptions, type RunContext, type RunGraphOptions, type RunPersonified, type RunPersonifiedOptions, type RunProvenance, type Runtime, type SandboxCapabilities, type SandboxClient, type SandboxClientProviderOptions, type SandboxControlClient, type SandboxEvent, type SandboxInstance, type SandboxLeafOut, type SandboxLineage, type SandboxLineageHandle, type SandboxRun, SandboxRunAbortError, type SandboxSeam, type SandboxSteeringOptions, type SandboxToolPartState, type Scope, type ScopeAnalyst, type ScopeAnalyzeInput, type ScopeArgs, type ScopeProgressInput, type ScopeWidenGate, type ScoreOf, type SelectionReceipt, type SessionCapableBox, type SessionMessageLike, type SessionTraceBox, type Settled, type ShapeBudget, type ShapeContext, type ShapeRegistry, type Shell, type ShotSpec, type SpawnEvent, type SpawnForest, type SpawnForestEvent, type SpawnForestInDoubtNode, type SpawnForestMissingTree, type SpawnForestNode, type SpawnForestTree, type SpawnJournal, type SpawnOpts, type SpawnPrior, type SpawnRejection, type Spend, type SpendChannel, type SpendGap, type StartRetainedRunInEnvironmentOptions, type StartRetainedRunOptions, type StdioMcpConnection, type StdioMcpServerSpec, type SteerContext, type SteerableRootHandle, type SteerableSandboxArgs, type SteerableSandboxSession, type StopDecision, type StopRule, type Strategy, type StrategyArtifacts, type StrategyCtx, type StrategyEvolutionConfig, type StrategyMessage, type StrategyResult, type StrategyShotResult, type StreamAgentTurnOptions, type StructuralRolloutConfig, type StructuralRolloutMessage, type StructuralRolloutPolicy, type StructuralRolloutResult, type SuperviseDispatchOptions, type SuperviseOptions, type SuperviseOptionsForDispatch, type SuperviseRegistry, type SuperviseRegistryTable, type SuperviseSurfaceOptions, type SuperviseSurfaceResult, type SupervisedResult, type Supervisor, type SupervisorAgentDeps, type SupervisorFinalizer, type SupervisorNodeContext, type SupervisorNodeContextSeed, type SupervisorOpts, type SupervisorProfile, type SupervisorSpanAttributes, type SupervisorSpanOptions, type SupervisorSpanOutcome, type SupervisorSpanRecorder, type SupervisorToolDescriptor, type SupervisorToolInvocationContext, type SurfaceDiff, type SurfaceReadBox, type SurfaceReadOutcome, type SurfaceReader, type SurfaceScore, type SurfaceWorkerConfig, type SurfaceWorkerOut, TERMINAL_DECISIONS, type TerminalDecision, type ToolLoopCompaction, type ToolLoopCompactionOptions, type ToolLoopMessageRecord, type ToolLoopToolCall, type ToolSpec, type ToolStepInput, type TraceSource, type TrajectoryAnalysis, type TrajectoryNode, type TrajectoryReport, type TrajectoryReportFn, type TrajectoryReportOptions, type TraversalContinuity, type TreeView, type TurnResult, type UnknownMaterializationReason, type UntrackedCopyStats, type UsageEvent, VERIFY_TAIL_CHARS, type ValidationCtx, type Validator, type VerifierEnvironmentOptions, type Verify, type VerifySpec, type VisibleCheck, WORKER_TOOL_TRACE_SCHEMA_VERSION, type WaitOpts, type WaitOutcome, type WaitProbe, type WaitProbeRegistry, type WaitRejection, type WaitSpec, type WatchTraceOptions, type WatchedSurface, type WaterfallCollector, type WaterfallReport, type WaterfallSpan, type Widen, type WidenDecision, type WidenGate, type WidenLineage, type WidenSpec, type WinnerStrategy, type WorkerCancelRequest, type WorkerCancellation, type WorkerEvidenceInput, type WorkerProgress, type WorkerResumeContext, type WorkerSpawnContext, type WorkerSteerRequest, type WorkerToolTraceArtifact, type WorkerTraceEvidence, type WorkerTraceResolver, type WorkerTraceSeamCarrier, type WorkerTraceUnavailableReason, type WorkerWatchOptions, type Workspace, type WorkspaceCommit, type WorkspaceRequest, type WorkspaceRun, type WorktreeCheckRunner, type WorktreeCliExecutorOptions, type WorktreeCommandResult, type WorktreeFanoutOptions, type WorktreeHarnessResult, type WorktreePatchArtifact, type WorktreeProfileMaterializationReceipt, acquireSandbox, adaptiveRefine, allOf, allWorkersStalled, analyzeTrace, analyzesFindingsReportPrompt, anyOf, anytimeReport, areaUnderCurve, asAuthoredProfile, assertCoordinationBinding, assertModelAllowed, assertProfileModelsAllowed, assertStrategyContract, assertTraceDerivedFindings, assessAuthoredProfile, auditIntent, authorStrategy, bestDelivered, bestSoFar, boxSurfaceReader, breadthStrategy, buildSteerContext, builtinShapes, canDisplace, cancelWorker, canonicalFindingEvent, captureWorkerTraceEvidence, chatTransportExecutor, chatWorkerSeam, classifyDriverFailure, cliWorktreeExecutor, closingWorkerNote, collectAgentTurn, collectDelivered, compareCheckOutcomes, completionAuthorizes, composeCheckSources, composeWorkerEvidence, computeFindingId, connectStdioMcp, contentAddress, copyUntrackedIntoClone, createActivityLog, createAgentEnvironmentProviderRegistry, createBudgetPool, createChatSessionStore, createEventBus, createExecutor, createExecutorRegistry, createFileRunContext, createInMemoryRunContext, createInbox, createMcpEnvironment, createOpenInferenceFileExporter, createOtelExporter, createProgressTracker, createPromptRegistry, createPushTraceSource, createRootHandle, createSandboxLineage, createSandboxToolPartState, createScope, createScopeAnalyst, createShapeRegistry, createSteerableSandboxSession, createSupervisor, createSupervisorSpanRecorder, createTangleSandboxExactProcessProvider, createVerifierEnvironment, createWaitProbes, createWaterfallCollector, createWorktreeCliExecutor, decodeToolPart, defaultAnalystInstruction, defaultAuditorInstruction, defaultDelegateBudget, defaultEdgeTraversalCap, defaultExtractCandidate, defaultProfileRichnessThresholds, defaultSelectWinner, defaultStructuralRolloutPolicy, defaultToolDetectors, defineLeaderboard, definePersona, defineStrategy, delegate, delegatesWorkerBriefPrompt, depthStrategy, deterministicCompletion, discriminatingMeans, dumbContinuationFailPrompt, dumbContinuationPassPrompt, effectiveConcurrency, envKeyProvider, equalKOnCost, extractLlmCallEvent, failuresAnalyst, fanout, filterAuthoredAsserts, finalizeBestDelivered, flatWidenGate, formatPromptHandle, freeSlots, fsSurfaceReader, gateOnDeliverable, gitWorkspace, harvestCorpus, harvestSurfaceDiffs, inProcessSandboxClient, inlineSandboxClient, isTerminalDecision, isWaitOutcome, jjWorkspace, kernelPromptRegistry, leaderboard, legacySupervisorRunDir, legacySupervisorRunsRoot, loadSpawnForest, localSandboxClient, localShell, loopCampaignDispatch, loopDispatch, loopUntil, makeFinding, mapExecutorResult, mapSandboxEvent, mapSandboxToolEvent, materializeLocalMcp, materializeTreeView, mcpSecretEnvMetadataKey, modelAuthoredChecks, naiveContinuationPrompt, noProgressFor, normalizeAnalyzeOnSettle, observe, officialChecksFromMeta, openSandboxRun, pairwiseSignificance, panel, parseWorkerToolTraceArtifact, patchDelivered, pendingWaits, pickBestDelivered, pickChampion, pipeline, plateau, plateauLength, pollFor, printBenchmarkReport, probeSandboxCapabilities, profileChatClient, profileOptimizerModelCall, profileRichnessFinding, promotionGate, promptHandle, providerAsExecutor, providerAsSandboxClient, queueOf, readWorkerCancelRequests, readWorkerCancellation, readWorkerProgress, readWorkerSteerRequests, readWorkerTraceContext, reconnectRetainedRun, recoverRetainedRun, refine, registerShape, registryScopeAnalyst, renderAnytimeTable, renderCorpusToInstructions, renderLeaderboardHtml, renderLeaderboardMarkdown, renderLeaderboardSvg, renderPairwiseMarkdown, renderReport, replaySpawnTree, resolveAgentEnvironmentProvider, resolveEntrySymbol, resolveMcpServerLaunch, resolveSandboxClient, resolveSecretEnv, resolveSupervisorProfile, rollingDispatch, runAgentRounds, runAgentic, runBenchmark, runFinalizer, runGraph, runInWorkspace, runPersonified, runStrategyEvolution, runTree, safeWorkerFile, sample, sampleFromSettled, sampleThenRefine, sandboxCheckRunner, sandboxClientAsProvider, sandboxSessionTraceSource, sanitizeMcpToolSchema, secretEnvOfMcpServer, selectBestIndex, selectChampion, selectValidWinner, sentinelCompletion, serveCoordinationMcp, settledToIteration, settledWorkerOut, spendFromUsageEvents, startRetainedRun, startRetainedRunInEnvironment, stopSentinel, strategyAuthorContract, strategyAuthorSystemPrompt, streamAgentTurn, structuralRollout, sumSandboxUsage, supervise, superviseDispatch, superviseSurface, supervisorAgent, supervisorInstructions, supervisorPolicyPrompt, supervisorRunDir, supervisorRunsRoot, supervisorWorkersDir, timerAt, trajectoryReport, validateWaitSpec, verify, visibleCheckScore, waitUntil, watchTrace, widen, withUntrackedArtifacts, workerCancelRequestsFile, workerCancellationFile, workerCancellationsDir, workerControlLogFile, workerFromBackend, workerInboxFile, workerInboxFileFromEventDir, workerTraceAnalysisStore, workerTraceEnv, workerTraceHeaders, workerTraceSeamKey, worktreeFanout, writeWorkerSteer };
7
+ export { type AcquireOptions, type ActivityLog, type ActivityNote, type Agent, type AgentEnvironment, type AgentEnvironmentCapabilities, type AgentEnvironmentEvent, type AgentEnvironmentProvider, type AgentEnvironmentProviderRef, type AgentEnvironmentProviderRegistry, type AgentEnvironmentQuery, type AgentEnvironmentStatus, type AgentEnvironmentSummary, type AgentExecutionRef, type AgentGraph, type AgentProfile, type AgentProfileRef, type AgentRunSpec, type AgentSession, type AgentSessionRef, type AgentSessionStatus, type AgentSpec, type AgentTurnBackend, type AgentTurnInput, type AgentTurnResult, type AgentTurnUsage, type AgenticOptions, type AgenticRunResult, type AgenticSurface, type AgenticTask, type AgenticTool, type AllWorkersStalledOptions, type AnalystFinding, type AnalystFindingEvent, type AnalystRegistry, type AnalyzeOnSettleRoute, type AnytimeReport, type AnytimeStrategySummary, type AnytimeTaskCurve, type ArtifactHandle, type AssertTraceDerivedFindings, type AuditIntentInput, type AuditIntentOptions, type AuthorStrategyOptions, type AuthoredHarness, type AuthoredProfile, type AuthoredStrategy, type AuthorizeDownMessage, type AuthorizedDownMessage, type AuthorizedSpawn, type AuthorizedSpawnContext, type AxisScoresOf, type BenchmarkCell, type BenchmarkConfig, type BenchmarkLift, type BenchmarkReport, type BenchmarkStrategySummary, type BenchmarkTaskRow, type BoxSurfaceReaderOptions, type BranchCapableBox, type BridgeModelCredential, type BridgeSeam, type Budget, type BudgetPool, type BudgetPoolRestore, type BudgetReadout, type BusEvent, type BusRecord, type BusStats, type ChampionPick, type ChampionPolicy, type ChatCompletionsTransport, type ChatSessionStore, type ChatTransportExecutorOptions, type ChatTransportTool, type ChatWorkerSeamOptions, type CheckExecChannel, type CheckOutcome, type CheckRunContext, type CheckRunner, type CheckSource, type CheckSourceCtx, type CheckpointCapableBox, type CheckpointRef, type CheckpointRequest, type CliSeam, type CliWorktreeBridgeSeam, type CliWorktreeSeam, type CollectedAgentTurn, type CombinatorShape, type CompletionAnalyst, type CompletionEvidence, type CompletionPolicy, type CompletionVerdict, type ConcurrencyCaps, type ContinuationInstruction, type ContinuityMode, type CoordinationBinding, type CoordinationDeliveryEvidence, type CoordinationEvent, type CoordinationLog, type CoordinationMcpHandle, type CoordinationOwnerId, type CopyOptions, type Corpus, type CorpusFilter, type CorpusReadbackOptions, type CorpusRecord, type CreateAgentEnvironmentInput, type CreateSandboxOptions, type CreateScopeAnalystOptions, type CreateTangleSandboxExactProcessProviderOptions, type CriuCapableClient, DEFAULT_AUTHORED_PROFILE_SECURITY_POLICY, DEFAULT_AWAIT_EVENT_TIMEOUT_MS, DEFAULT_SANDBOX_STEERING_MAX_TURNS, DEFAULT_STALL_AFTER_MS, type DefaultVerdict, type DefinePersona, type DefinePersonaInput, type DefinedLeaderboard, type DelegateOptions, type Deliverable, type DeliverableResolutionInput, type DeliverableSpec, type DeliveredOutput, type DispatchReport, type DispatchStopReason, type DispatchUnit, type DownMessageAuthorizationInput, type DownMessageDeliveryAttempt, type DownMessageDeliveryOutcome, type DownMessageEvent, type DriveHarness, type DriveHarnessOwnerContext, type Driver, type DriverAttemptRecord, type DriverAttemptStop, DriverAttemptsExhaustedError, type DriverProgressMark, type DriverRetryPolicy, EVIDENCE_MAX_CHARS, type EdgeDeliveryOutcome, type EdgeTraversal, type Environment, type EqualKArm, type EqualKOnCost, type EqualKOnCostOptions, type EqualKVerdict, type EventBus, type EvolutionArchiveNode, type EvolutionAuthor, type EvolutionBandInfo, type EvolutionCandidate, type EvolutionGeneration, type EvolutionReport, type ExecCtx, type ExecRequest, type ExecResult, type ExecutionBindingReceipt, type Executor, type ExecutorAccounting, type ExecutorConfig, type ExecutorContext, type ExecutorExecutionBinding, type ExecutorFactory, type ExecutorMaterialization, type ExecutorNodeContext, type ExecutorProgress, type ExecutorRegistry, type ExecutorResult, type ExecutorResultMapping, type Fanout, type FanoutOptions, type FanoutSynthesis, type FanoutWinnerSelector, FileCoordinationLog, FileCorpus, FileResultBlobStore, FileSpawnJournal, type FinalizeContext, type FinalizerSettled, type FlatWidenGate, type ForkCapableBox, type ForkRequest, type GitWorkspaceOptions, type GraphEdge, GraphEdgeCapError, type GraphNode, type GraphResult, type GroupOf, type Handle, type HarvestCorpusOptions, type HarvestFailure, type HarvestReport, type HarvestSurfaceDiffsOptions, InMemoryCorpus, InMemoryResultBlobStore, type InMemoryRunContext, type InMemoryRunContextOptions, InMemorySpawnJournal, type InProcessOnPrompt, type InProcessPromptCtx, type InProcessSandboxClientOptions, type Inbox, type InboxMessage, type IntentAudit, type Interval, type 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 LoopDecisionPayload, type LoopDispatchOptions, type LoopEndedPayload, type LoopIterationDispatchPayload, type LoopIterationEndedPayload, type LoopIterationStartedPayload, type LoopLineageOptions, type LoopOptionsForDispatch, type LoopPlanDescription, type LoopPlanPayload, type LoopResult, type LoopSandboxPlacement, type LoopShape, type LoopStartedPayload, type LoopTeardownFailedPayload, type LoopTokenUsage, type LoopTraceEmitter, type LoopTraceEvent, type LoopUntil, type LoopUntilSpec, type LoopUntilState, type LoopWinner, type MakeWorkerAgent, type MaterializeLocalMcpOptions, type MaterializedExecutionIdentity, type MaterializedModelIdentity, type McpEndpoint, type McpEnvironmentOptions, McpSpawnFault, type McpToolDescriptor, type MountManifestEntry, type MountRecorder, NOTE_MAX_CHARS, type NativeContextContinuationExecution, type NativeContextContinuationInput, type NoProgressForOptions, type NoWinnerError, type NodeExecutionIdentity, type NodeId, type NodeSnapshot, type NodeStatus, type Observation, type ObserveInput, type ObserveOptions, type ObserveSupervisorNodeEvent, type OpenSandboxRunBeforeStartContext, type OpenSandboxRunOptions, type OpenSandboxRunPromptOptions, type Outcome, type OutputAdapter, type PairwiseOptions, type PairwiseVerdict, type Panel, type PanelJudge, type PanelSpec, type PanelVerdict, type PatchDeliverableOptions, type PendingWait, type Persona, type PersonaContext, type PersonaExecutors, type Pipeline, type PipelineStage, type PlacementInfo, type PlateauOptions, type PriorCoordination, type ProfileKeyOf, type ProfileMaterializationReceipt, type ProfileRichness, type ProfileRichnessThresholds, type ProgressSample, type ProgressTracker, type ProgressTrackerOptions, type ProgressView, type PromotionGateOptions, type PromotionVerdict, type PromptHandle, type PromptRegistry, type ProviderAsSandboxClientOptions, type ProviderExecutorOptions, type ProviderModelAttemptEvidence, type ProviderModelExecutionEvidence, type ProviderSeam, type PublishOptions, type ReconnectRetainedRunOptions, type RecoverRetainedRunOptions, type RecoverRetainedRunResult, type RegisteredPrompt, type RegistryAnalyzeProjection, type RenderCorpusToInstructions, type RenderCorpusToInstructionsOptions, type RepairStop, type ReproductionCheck, type ReservationRejection, type ReservationTicket, type ResolveDriveHarness, type ResolveSandboxClientOptions, type ResolveSupervisorTools, type ResolvedMcpServerLaunch, type ResolvedSupervisorProfile, type ResourceRequest, type Restart, type ResultBlobStore, type ResumedKeyState, type ResumedWork, type RetainedRunAdmission, type RetainedRunAdmissionHook, type RetainedRunCancelOptions, type RetainedRunCancellation, type RetainedRunDispatchedAdmission, type RetainedRunEffect, type RetainedRunEnvironmentAdmission, type RetainedRunEventOptions, type RetainedRunHandle, type RetainedRunReplayPoint, type RetainedRunSnapshot, type RollingDispatchOptions, type RootHandle, type RootMaterialization, type RootProviderModelEvidence, type RootSignal, type RouterSeam, type RouterToolsSeam, type RouterTransportConfig, type RunAgentRoundsOptions, type RunAgenticOptions, type RunContext, type RunGraphOptions, type RunPersonified, type RunPersonifiedOptions, type RunProvenance, type Runtime, type SandboxCapabilities, type SandboxClient, type SandboxClientProviderOptions, type SandboxControlClient, type SandboxEvent, type SandboxInstance, type SandboxLeafOut, type SandboxLineage, type SandboxLineageHandle, type SandboxRun, SandboxRunAbortError, type SandboxSeam, type SandboxSteeringOptions, type SandboxToolPartState, type Scope, type ScopeAnalyst, type ScopeAnalyzeInput, type ScopeArgs, type ScopeProgressInput, type ScopeWidenGate, type ScoreOf, type SelectionReceipt, type SessionCapableBox, type SessionMessageLike, type SessionTraceBox, type Settled, type ShapeBudget, type ShapeContext, type ShapeRegistry, type Shell, type ShotSpec, type SpawnEvent, type SpawnForest, type SpawnForestEvent, type SpawnForestInDoubtNode, type SpawnForestMissingTree, type SpawnForestNode, type SpawnForestTree, type SpawnJournal, type SpawnOpts, type SpawnPrior, type SpawnRejection, type Spend, type SpendChannel, type SpendGap, type StartRetainedRunInEnvironmentOptions, type StartRetainedRunOptions, type StdioMcpConnection, type StdioMcpServerSpec, type SteerContext, type SteerableRootHandle, type SteerableSandboxArgs, type SteerableSandboxSession, type StopDecision, type StopRule, type Strategy, type StrategyArtifacts, type StrategyCtx, type StrategyEvolutionConfig, type StrategyMessage, type StrategyResult, type StrategyShotResult, type StreamAgentTurnOptions, type StructuralRolloutConfig, type StructuralRolloutMessage, type StructuralRolloutPolicy, type StructuralRolloutResult, type SuperviseDispatchOptions, type SuperviseOptions, type SuperviseOptionsForDispatch, type SuperviseRegistry, type SuperviseRegistryTable, type SuperviseSurfaceOptions, type SuperviseSurfaceResult, type SupervisedResult, type Supervisor, type SupervisorAgentDeps, type SupervisorFinalizer, type SupervisorNodeContext, type SupervisorNodeContextSeed, type SupervisorOpts, type SupervisorProfile, type SupervisorSpanAttributes, type SupervisorSpanOptions, type SupervisorSpanOutcome, type SupervisorSpanRecorder, type SupervisorToolDescriptor, type SupervisorToolInvocationContext, type SurfaceDiff, type SurfaceReadBox, type SurfaceReadOutcome, type SurfaceReader, type SurfaceScore, type SurfaceWorkerConfig, type SurfaceWorkerOut, TERMINAL_DECISIONS, type TerminalDecision, type ToolLoopCallContext, type ToolLoopChat, type ToolLoopCompaction, type ToolLoopCompactionOptions, type ToolLoopMessageRecord, type ToolLoopToolCall, type ToolSpec, type ToolStepInput, type TraceSource, type TrajectoryAnalysis, type TrajectoryNode, type TrajectoryReport, type TrajectoryReportFn, type TrajectoryReportOptions, type TraversalContinuity, type TreeView, type TurnResult, type UnknownMaterializationReason, type UntrackedCopyStats, type UsageEvent, VERIFY_TAIL_CHARS, type ValidationCtx, type Validator, type VerifierEnvironmentOptions, type Verify, type VerifySpec, type VisibleCheck, WORKER_TOOL_TRACE_SCHEMA_VERSION, type WaitOpts, type WaitOutcome, type WaitProbe, type WaitProbeRegistry, type WaitRejection, type WaitSpec, type WatchTraceOptions, type WatchedSurface, type WaterfallCollector, type WaterfallReport, type WaterfallSpan, type Widen, type WidenDecision, type WidenGate, type WidenLineage, type WidenSpec, type WinnerStrategy, type WorkerCancelRequest, type WorkerCancellation, type WorkerEvidenceInput, type WorkerProgress, type WorkerResumeContext, type WorkerSpawnContext, type WorkerSteerRequest, type WorkerToolTraceArtifact, type WorkerTraceEvidence, type WorkerTraceResolver, type WorkerTraceSeamCarrier, type WorkerTraceUnavailableReason, type WorkerWatchOptions, type Workspace, type WorkspaceCommit, type WorkspaceRequest, type WorkspaceRun, type WorktreeCheckRunner, type WorktreeCliExecutorOptions, type WorktreeCommandResult, type WorktreeFanoutOptions, type WorktreeHarnessResult, type WorktreePatchArtifact, type WorktreeProfileMaterializationReceipt, acquireSandbox, adaptiveRefine, allOf, allWorkersStalled, analyzeTrace, analyzesFindingsReportPrompt, anyOf, anytimeReport, areaUnderCurve, asAuthoredProfile, assertCoordinationBinding, assertModelAllowed, assertProfileModelsAllowed, assertStrategyContract, assertTraceDerivedFindings, assessAuthoredProfile, auditIntent, authorStrategy, bestDelivered, bestSoFar, boxSurfaceReader, breadthStrategy, buildSteerContext, builtinShapes, canDisplace, cancelWorker, canonicalFindingEvent, captureWorkerTraceEvidence, chatTransportExecutor, chatWorkerSeam, classifyDriverFailure, cliWorktreeExecutor, closingWorkerNote, collectAgentTurn, collectDelivered, compareCheckOutcomes, completionAuthorizes, composeCheckSources, composeWorkerEvidence, computeFindingId, connectStdioMcp, contentAddress, copyUntrackedIntoClone, createActivityLog, createAgentEnvironmentProviderRegistry, createBudgetPool, createChatSessionStore, createEventBus, createExecutor, createExecutorRegistry, createFileRunContext, createInMemoryRunContext, createInbox, createMcpEnvironment, createOpenInferenceFileExporter, createOtelExporter, createProgressTracker, createPromptRegistry, createPushTraceSource, createRootHandle, createSandboxLineage, createSandboxToolPartState, createScope, createScopeAnalyst, createShapeRegistry, createSteerableSandboxSession, createSupervisor, createSupervisorSpanRecorder, createTangleSandboxExactProcessProvider, createVerifierEnvironment, createWaitProbes, createWaterfallCollector, createWorktreeCliExecutor, decodeToolPart, defaultAnalystInstruction, defaultAuditorInstruction, defaultDelegateBudget, defaultEdgeTraversalCap, defaultExtractCandidate, defaultProfileRichnessThresholds, defaultSelectWinner, defaultStructuralRolloutPolicy, defaultToolDetectors, defineLeaderboard, definePersona, defineStrategy, delegate, delegatesWorkerBriefPrompt, depthStrategy, deterministicCompletion, discriminatingMeans, dumbContinuationFailPrompt, dumbContinuationPassPrompt, effectiveConcurrency, envKeyProvider, equalKOnCost, extractLlmCallEvent, failuresAnalyst, fanout, filterAuthoredAsserts, finalizeBestDelivered, flatWidenGate, formatPromptHandle, freeSlots, fsSurfaceReader, gateOnDeliverable, gitWorkspace, harvestCorpus, harvestSurfaceDiffs, inProcessSandboxClient, inlineSandboxClient, isTerminalDecision, isWaitOutcome, jjWorkspace, kernelPromptRegistry, leaderboard, legacySupervisorRunDir, legacySupervisorRunsRoot, loadSpawnForest, localSandboxClient, localShell, loopCampaignDispatch, loopDispatch, loopUntil, makeFinding, mapExecutorResult, mapSandboxEvent, mapSandboxToolEvent, materializeLocalMcp, materializeTreeView, mcpSecretEnvMetadataKey, modelAuthoredChecks, naiveContinuationPrompt, noProgressFor, normalizeAnalyzeOnSettle, observe, officialChecksFromMeta, openSandboxRun, pairwiseSignificance, panel, parseWorkerToolTraceArtifact, patchDelivered, pendingWaits, pickBestDelivered, pickChampion, pipeline, plateau, plateauLength, pollFor, printBenchmarkReport, probeSandboxCapabilities, profileChatClient, profileOptimizerModelCall, profileRichnessFinding, promotionGate, promptHandle, providerAsExecutor, providerAsSandboxClient, queueOf, readWorkerCancelRequests, readWorkerCancellation, readWorkerProgress, readWorkerSteerRequests, readWorkerTraceContext, reconnectRetainedRun, recoverRetainedRun, refine, registerShape, registryScopeAnalyst, renderAnytimeTable, renderCorpusToInstructions, renderLeaderboardHtml, renderLeaderboardMarkdown, renderLeaderboardSvg, renderPairwiseMarkdown, renderReport, replaySpawnTree, resolveAgentEnvironmentProvider, resolveEntrySymbol, resolveMcpServerLaunch, resolveSandboxClient, resolveSecretEnv, resolveSupervisorProfile, rollingDispatch, runAgentRounds, runAgentic, runBenchmark, runFinalizer, runGraph, runInWorkspace, runPersonified, runStrategyEvolution, runTree, safeWorkerFile, sample, sampleFromSettled, sampleThenRefine, sandboxCheckRunner, sandboxClientAsProvider, sandboxSessionTraceSource, sanitizeMcpToolSchema, secretEnvOfMcpServer, selectBestIndex, selectChampion, selectValidWinner, sentinelCompletion, serveCoordinationMcp, settledToIteration, settledWorkerOut, spendFromUsageEvents, startRetainedRun, startRetainedRunInEnvironment, stopSentinel, strategyAuthorContract, strategyAuthorSystemPrompt, streamAgentTurn, structuralRollout, sumSandboxUsage, supervise, superviseDispatch, superviseSurface, supervisorAgent, supervisorInstructions, supervisorPolicyPrompt, supervisorRunDir, supervisorRunsRoot, supervisorWorkersDir, timerAt, trajectoryReport, validateWaitSpec, verify, visibleCheckScore, waitUntil, watchTrace, widen, withUntrackedArtifacts, workerCancelRequestsFile, workerCancellationFile, workerCancellationsDir, workerControlLogFile, workerFromBackend, workerInboxFile, workerInboxFileFromEventDir, workerTraceAnalysisStore, workerTraceEnv, workerTraceHeaders, workerTraceSeamKey, worktreeFanout, writeWorkerSteer };