@tangle-network/agent-runtime 0.89.0 → 0.90.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +51 -18
- package/dist/agent.d.ts +53 -2
- package/dist/agent.js +168 -6
- package/dist/agent.js.map +1 -1
- package/dist/analyst-loop.d.ts +1 -1
- package/dist/chunk-5QOB7H74.js +387 -0
- package/dist/chunk-5QOB7H74.js.map +1 -0
- package/dist/{chunk-4WXGK6GV.js → chunk-7ON74BQO.js} +2 -2
- package/dist/{chunk-7LO5GMAO.js → chunk-CMYMTRGA.js} +14 -5
- package/dist/chunk-CMYMTRGA.js.map +1 -0
- package/dist/{chunk-UD4BHQMI.js → chunk-IVGYLCFH.js} +2 -2
- package/dist/{chunk-UD4BHQMI.js.map → chunk-IVGYLCFH.js.map} +1 -1
- package/dist/{chunk-VNOOH22O.js → chunk-OOL3675H.js} +85 -4
- package/dist/chunk-OOL3675H.js.map +1 -0
- package/dist/{chunk-5AVV7KAH.js → chunk-QK4DV5PR.js} +2 -2
- package/dist/chunk-R2VAJGR3.js +214 -0
- package/dist/chunk-R2VAJGR3.js.map +1 -0
- package/dist/{chunk-N7EJV7N3.js → chunk-RYBVU4M3.js} +3592 -3562
- package/dist/chunk-RYBVU4M3.js.map +1 -0
- package/dist/{chunk-BQPFZE2C.js → chunk-WRUSWK4F.js} +5 -5
- package/dist/{chunk-PIPPLSOF.js → chunk-ZV4LXYCJ.js} +451 -24
- package/dist/chunk-ZV4LXYCJ.js.map +1 -0
- package/dist/{worktree-harness-CX_McRLp.d.ts → completion-gate-DkAnUmpb.d.ts} +45 -45
- package/dist/{coordination-CuDLO8wj.d.ts → coordination-rRj5hjJK.d.ts} +415 -227
- package/dist/environment-provider.d.ts +3 -3
- package/dist/index.d.ts +255 -16
- package/dist/index.js +463 -72
- package/dist/index.js.map +1 -1
- package/dist/intelligence.d.ts +228 -84
- package/dist/intelligence.js +259 -166
- package/dist/intelligence.js.map +1 -1
- package/dist/knowledge.d.ts +120 -0
- package/dist/knowledge.js +28 -0
- package/dist/knowledge.js.map +1 -0
- package/dist/lifecycle.d.ts +2 -2
- package/dist/lifecycle.js +2 -2
- package/dist/{local-harness-sI0S_XNA.d.ts → local-harness-dcD5WTTr.d.ts} +3 -0
- package/dist/{loop-runner-bin-hQDUL8Ld.d.ts → loop-runner-bin-DTbZVGfM.d.ts} +2 -2
- package/dist/loop-runner-bin.d.ts +6 -6
- package/dist/loop-runner-bin.js +7 -7
- package/dist/loops.d.ts +34 -369
- package/dist/loops.js +31 -5
- package/dist/mcp/bin.js +5 -5
- package/dist/mcp/index.d.ts +10 -11
- package/dist/mcp/index.js +10 -10
- package/dist/{mcp-serve-verifier-FL7-ZEb_.d.ts → mcp-serve-verifier-XsX8rkB9.d.ts} +12 -1
- package/dist/{openai-tools-BnrOmGjN.d.ts → openai-tools-C4ZfUD4L.d.ts} +1 -1
- package/dist/profiles.d.ts +196 -5
- package/dist/profiles.js +8 -0
- package/dist/profiles.js.map +1 -1
- package/dist/{router-client-r8y_VFVM.d.ts → router-client-DJImUDlm.d.ts} +1 -1
- package/dist/structural-rollout-MwlpgQ-6.d.ts +446 -0
- package/dist/supervise-DPmYPk0j.d.ts +131 -0
- package/dist/{types-ESeMOj94.d.ts → types-SyuwunY_.d.ts} +1 -1
- package/dist/{types-Driepl87.d.ts → types-eMNgWgFi.d.ts} +2 -2
- package/dist/{worktree-fanout-D6xR2CIA.d.ts → worktree-fanout-BDFQIO-Y.d.ts} +234 -234
- package/package.json +12 -4
- package/skills/agent-runtime-adoption/SKILL.md +74 -24
- package/skills/build-with-agent-runtime/SKILL.md +23 -20
- package/skills/loop-writer/SKILL.md +6 -5
- package/skills/supervise/SKILL.md +2 -2
- package/dist/chunk-7LO5GMAO.js.map +0 -1
- package/dist/chunk-N7EJV7N3.js.map +0 -1
- package/dist/chunk-PIPPLSOF.js.map +0 -1
- package/dist/chunk-VNOOH22O.js.map +0 -1
- package/dist/otel-export-BKmNwiCb.d.ts +0 -180
- /package/dist/{chunk-4WXGK6GV.js.map → chunk-7ON74BQO.js.map} +0 -0
- /package/dist/{chunk-5AVV7KAH.js.map → chunk-QK4DV5PR.js.map} +0 -0
- /package/dist/{chunk-BQPFZE2C.js.map → chunk-WRUSWK4F.js.map} +0 -0
package/dist/loops.d.ts
CHANGED
|
@@ -2,27 +2,30 @@ import { ChatClient, RunRecord, HarnessType, AgentProfile, AnalystFinding, Analy
|
|
|
2
2
|
export { AnalystFinding, DefaultVerdict, computeFindingId, makeFinding } from '@tangle-network/agent-eval';
|
|
3
3
|
import { SandboxEvent, SandboxInstance, CreateSandboxOptions, PromptOptions, TaskOptions } from '@tangle-network/sandbox';
|
|
4
4
|
export { AgentProfile, CreateSandboxOptions, SandboxEvent, SandboxInstance } from '@tangle-network/sandbox';
|
|
5
|
-
import {
|
|
6
|
-
export {
|
|
7
|
-
import {
|
|
8
|
-
export {
|
|
9
|
-
import { R as RuntimeHooks, I as Iteration, S as SandboxClient,
|
|
10
|
-
export {
|
|
5
|
+
import { a as ResultBlobStore, g as SpawnJournal, N as NodeId, j as SpawnEvent, E as ExecutorFactory, A as Agent, B as Budget, d as Settled, S as Scope, b as SupervisedResult, e as Spend, U as UsageEvent, h as ExecutorRegistry, k as Supervisor } from './types-eMNgWgFi.js';
|
|
6
|
+
export { f as AgentSpec, c as Executor, l as ExecutorContext, m as ExecutorResult, R as Runtime, n as SupervisorOpts, T as TreeView, W as WidenGate } from './types-eMNgWgFi.js';
|
|
7
|
+
import { M as MakeWorkerAgent, A as AnalystRegistry, o as CoordinationTools, n as CoordinationEvent, as as QuestionPolicy, E as ExecutorConfig } from './coordination-rRj5hjJK.js';
|
|
8
|
+
export { bf as BusEvent, bg as BusRecord, bh as BusStats, bi as EventBus, bj as ProviderSeam, bk as PublishOptions, bl as cliWorktreeExecutor, bm as createEventBus, bn as createExecutor, bo as createExecutorRegistry } from './coordination-rRj5hjJK.js';
|
|
9
|
+
import { R as RuntimeHooks, I as Iteration, S as SandboxClient, D as Driver, A as AgentRunSpec, c as OutputAdapter, V as Validator, E as ExecCtx, Y as LoopWinner, Z as LoopLineageOptions, _ as LoopResult, L as LoopTokenUsage, b as RuntimeStreamEvent, $ as MountRecorder, j as AgentExecutionBackend, p as AgentTaskStatus, B as BackendErrorDetail } from './types-SyuwunY_.js';
|
|
10
|
+
export { a0 as LoopDecisionPayload, a1 as LoopEndedPayload, a2 as LoopIterationDispatchPayload, a3 as LoopIterationEndedPayload, a4 as LoopIterationStartedPayload, a5 as LoopPlanDescription, a6 as LoopPlanPayload, e as LoopSandboxPlacement, a7 as LoopStartedPayload, a8 as LoopTeardownFailedPayload, f as LoopTraceEmitter, d as LoopTraceEvent, a9 as MountManifestEntry, aa as RunProvenance, a as SelectionReceipt, ab as ValidationCtx } from './types-SyuwunY_.js';
|
|
11
11
|
import { RunProfileMatrixResult, Scenario, ProfileDispatchFn, JudgeConfig, RunProfileMatrixOptions, DispatchFn } from '@tangle-network/agent-eval/campaign';
|
|
12
12
|
export { AgentEnvironmentProviderRef, AgentEnvironmentProviderRegistry, ProviderAsSandboxClientOptions, ProviderExecutorOptions, SandboxClientProviderOptions, createAgentEnvironmentProviderRegistry, providerAsExecutor, providerAsSandboxClient, resolveAgentEnvironmentProvider, sandboxClientAsProvider } from './environment-provider.js';
|
|
13
|
-
import {
|
|
14
|
-
export { A as AuthoredHarness, t as DefinePersona, u as EqualKOnCost, v as Fanout, w as FanoutSynthesis, x as FlatWidenGate, y as LoopUntil, z as LoopUntilState, B as Panel, G as PanelJudge, H as PanelVerdict, I as PatchDeliverableOptions, J as PersonaContext, K as PersonaExecutors, M as Pipeline, N as RenderCorpusToInstructions, Q as RunPersonified, U as ShapeBudget, X as ShapeContext, Y as TrajectoryNode, Z as TrajectoryReportFn, _ as Verify, $ as Widen, a0 as WidenDecision, a1 as WidenLineage, a2 as WorktreeCliExecutorOptions, a as WorktreeFanoutOptions, b as WorktreePatchArtifact, a3 as createWorktreeCliExecutor, a4 as patchDelivered, a5 as worktreeFanout } from './worktree-fanout-
|
|
13
|
+
import { c as CorpusRecord, C as Corpus, S as ScopeAnalyzeInput, d as AssertTraceDerivedFindings, O as Outcome, e as SteerContext, f as ScopeAnalyst, F as FanoutOptions, g as CombinatorShape, h as ScopeWidenGate, L as LoopUntilSpec, P as PanelSpec, i as PipelineStage, W as WinnerStrategy, j as FanoutWinnerSelector, V as VerifySpec, k as WidenSpec, l as CorpusFilter, R as RenderCorpusToInstructionsOptions, D as DefinePersonaInput, m as Persona, n as RunPersonifiedOptions, o as ShapeRegistry, p as LoopShape, E as EqualKArm, q as EqualKOnCostOptions, r as EqualKVerdict, T as TrajectoryReportOptions, s as TrajectoryReport } from './worktree-fanout-BDFQIO-Y.js';
|
|
14
|
+
export { A as AuthoredHarness, t as DefinePersona, u as EqualKOnCost, v as Fanout, w as FanoutSynthesis, x as FlatWidenGate, y as LoopUntil, z as LoopUntilState, B as Panel, G as PanelJudge, H as PanelVerdict, I as PatchDeliverableOptions, J as PersonaContext, K as PersonaExecutors, M as Pipeline, N as RenderCorpusToInstructions, Q as RunPersonified, U as ShapeBudget, X as ShapeContext, Y as TrajectoryNode, Z as TrajectoryReportFn, _ as Verify, $ as Widen, a0 as WidenDecision, a1 as WidenLineage, a2 as WorktreeCliExecutorOptions, a as WorktreeFanoutOptions, b as WorktreePatchArtifact, a3 as createWorktreeCliExecutor, a4 as patchDelivered, a5 as worktreeFanout } from './worktree-fanout-BDFQIO-Y.js';
|
|
15
|
+
import { A as AgenticSurface, a as AgenticTask, b as AgenticOptions, c as Strategy, d as ArtifactHandle, e as SurfaceScore, f as AgenticTool } from './structural-rollout-MwlpgQ-6.js';
|
|
16
|
+
export { g as AgenticRunResult, C as CheckExecChannel, h as CheckOutcome, i as CheckRunContext, j as CheckRunner, k as CheckSource, l as CheckSourceCtx, m as CorpusReadbackOptions, R as RepairStop, n as RunAgenticOptions, o as ShotPersona, p as ShotSpec, q as StrategyCtx, r as StrategyResult, s as StructuralRolloutConfig, S as StructuralRolloutPolicy, t as StructuralRolloutResult, V as VisibleCheck, u as adaptiveRefine, v as breadthStrategy, w as canDisplace, x as compareCheckOutcomes, y as composeCheckSources, z as defaultExtractCandidate, B as defaultStructuralRolloutPolicy, D as defineStrategy, E as depthStrategy, F as filterAuthoredAsserts, G as modelAuthoredChecks, H as officialChecksFromMeta, I as refine, J as resolveEntrySymbol, K as runAgentic, L as sample, M as sampleThenRefine, N as sandboxCheckRunner, O as selectBestIndex, P as structuralRollout, Q as visibleCheckScore } from './structural-rollout-MwlpgQ-6.js';
|
|
15
17
|
import { b as AnalystRegistryLike } from './types-BC3bZpH0.js';
|
|
16
18
|
import { AgentProfile as AgentProfile$1 } from '@tangle-network/agent-interface';
|
|
17
|
-
import { R as RouterConfig,
|
|
18
|
-
export { c as RouterChatResult, d as RouterChatToolsResult, e as RouterToolCall, f as RouterToolLoopResult, g as ToolLoopCompaction,
|
|
19
|
-
import { D as DeliverableSpec } from './
|
|
20
|
-
export { g as WorktreeCommandResult, h as gateOnDeliverable } from './
|
|
19
|
+
import { R as RouterConfig, T as ToolLoopChat, a as ToolLoopCompactionOptions } from './router-client-DJImUDlm.js';
|
|
20
|
+
export { c as RouterChatResult, d as RouterChatToolsResult, e as RouterToolCall, f as RouterToolLoopResult, g as ToolLoopCompaction, b as ToolSpec, r as routerBrain, h as routerChatWithTools, i as routerChatWithUsage, j as routerToolLoop } from './router-client-DJImUDlm.js';
|
|
21
|
+
import { D as DeliverableSpec } from './completion-gate-DkAnUmpb.js';
|
|
22
|
+
export { g as WorktreeCommandResult, h as gateOnDeliverable } from './completion-gate-DkAnUmpb.js';
|
|
23
|
+
import { S as SupervisorProfile } from './supervise-DPmYPk0j.js';
|
|
24
|
+
export { D as DriveHarness, a as SuperviseOptions, b as SupervisorAgentDeps, s as supervise, c as supervisorAgent, w as workerFromBackend } from './supervise-DPmYPk0j.js';
|
|
21
25
|
import { stuckLoopView, toolWasteView } from '@tangle-network/agent-eval/pipelines';
|
|
22
26
|
export { AgentEnvironment, AgentEnvironmentCapabilities, AgentEnvironmentEvent, AgentEnvironmentProvider, AgentEnvironmentQuery, AgentEnvironmentStatus, AgentEnvironmentSummary, AgentProfileRef, AgentSession, AgentSessionRef, AgentSessionStatus, AgentTurnInput, AgentTurnResult, CheckpointRef, CheckpointRequest, CreateAgentEnvironmentInput, ExecRequest, ExecResult, ForkRequest, PlacementInfo, ResourceRequest, WorkspaceRequest } from '@tangle-network/agent-interface/environment-provider';
|
|
23
27
|
import './substrate-DO2GHNg2.js';
|
|
24
|
-
import './
|
|
25
|
-
import './local-harness-sI0S_XNA.js';
|
|
28
|
+
import './local-harness-dcD5WTTr.js';
|
|
26
29
|
import 'node:child_process';
|
|
27
30
|
|
|
28
31
|
/**
|
|
@@ -1059,235 +1062,6 @@ declare function loopCampaignDispatch<Task, Output, Decision, TScenario extends
|
|
|
1059
1062
|
*/
|
|
1060
1063
|
declare function loopDispatch<Task, Output, Decision, TScenario extends Scenario, TArtifact>(opts: LoopDispatchOptions<Task, Output, Decision, TScenario, TArtifact>): ProfileDispatchFn<TScenario, TArtifact>;
|
|
1061
1064
|
|
|
1062
|
-
/**
|
|
1063
|
-
* The general agentic primitive — sequential (depth) and parallel (breadth) over a shared,
|
|
1064
|
-
* checkable artifact, driven through the keystone Supervisor as one recursive `Agent.act`.
|
|
1065
|
-
*
|
|
1066
|
-
* The domain lives behind ONE seam — `AgenticSurface` (open an artifact, list tools, call a tool,
|
|
1067
|
-
* score the artifact, close it). EnterpriseOps implements it (seed a gym DB, MCP tools, SQL
|
|
1068
|
-
* verifier); Commit0/AppWorld/terminal-bench implement it the same way (a repo workspace, shell
|
|
1069
|
-
* tools, the test suite). The drivers below are domain-blind: they run over any surface.
|
|
1070
|
-
*
|
|
1071
|
-
* Two shapes, the agent's POMDP rollout as the unit:
|
|
1072
|
-
* - DEPTH one persistent artifact carried across shots. Each shot the agent works the tool loop;
|
|
1073
|
-
* between shots a trace-analyst (selector≠judge: reads the trajectory, never the score)
|
|
1074
|
-
* steers the resumed session toward what's unfinished. shot n stands on shot n-1's
|
|
1075
|
-
* artifact state + history. This is continuation — long-horizon, same artifact.
|
|
1076
|
-
* - BREADTH K independent artifacts, each a fresh rollout, the deployable verifier picks the best.
|
|
1077
|
-
*
|
|
1078
|
-
* Both are an `Agent` whose `act` spawns leaf shots through `scope.spawn` and reacts via
|
|
1079
|
-
* `scope.next()` — so the conserved budget pool meters them (equal-k by construction), the journal
|
|
1080
|
-
* records the tree, and the same primitive nests. `runAgentic` runs the chosen driver through
|
|
1081
|
-
* `createSupervisor().run`. The leaf (one shot over a handle) is resolved per-spawn from a
|
|
1082
|
-
* surface-closed registry — the open `Executor` seam, not bespoke per-benchmark glue.
|
|
1083
|
-
*/
|
|
1084
|
-
|
|
1085
|
-
interface AgenticTask {
|
|
1086
|
-
readonly id: string;
|
|
1087
|
-
readonly systemPrompt: string;
|
|
1088
|
-
readonly userPrompt: string;
|
|
1089
|
-
/** Opaque domain payload the surface reads (EOPS: servers/verifiers/tools). Drivers never read it. */
|
|
1090
|
-
readonly meta?: Record<string, unknown>;
|
|
1091
|
-
}
|
|
1092
|
-
interface ArtifactHandle {
|
|
1093
|
-
readonly id: string;
|
|
1094
|
-
readonly surface: string;
|
|
1095
|
-
/** Opaque per-artifact context the surface stashes (EOPS: the seeded gym server + db id). */
|
|
1096
|
-
readonly ctx?: unknown;
|
|
1097
|
-
}
|
|
1098
|
-
interface AgenticTool {
|
|
1099
|
-
readonly type: 'function';
|
|
1100
|
-
readonly function: {
|
|
1101
|
-
name: string;
|
|
1102
|
-
description?: string;
|
|
1103
|
-
parameters: Record<string, unknown>;
|
|
1104
|
-
};
|
|
1105
|
-
}
|
|
1106
|
-
interface SurfaceScore {
|
|
1107
|
-
passes: number;
|
|
1108
|
-
total: number;
|
|
1109
|
-
/** Checks excluded as malformed (data defect, not the agent). `total === 0` ⇒ unscoreable. */
|
|
1110
|
-
errored: number;
|
|
1111
|
-
}
|
|
1112
|
-
/** A stateful, checkable environment an agent operates over with tools. Open behind one interface. */
|
|
1113
|
-
interface AgenticSurface {
|
|
1114
|
-
readonly name: string;
|
|
1115
|
-
open(task: AgenticTask): Promise<ArtifactHandle>;
|
|
1116
|
-
tools(task: AgenticTask, handle: ArtifactHandle): Promise<AgenticTool[]>;
|
|
1117
|
-
call(handle: ArtifactHandle, name: string, args: Record<string, unknown>): Promise<string>;
|
|
1118
|
-
score(task: AgenticTask, handle: ArtifactHandle): Promise<SurfaceScore>;
|
|
1119
|
-
close(handle: ArtifactHandle): Promise<void>;
|
|
1120
|
-
}
|
|
1121
|
-
interface AgenticOptions {
|
|
1122
|
-
routerBaseUrl: string;
|
|
1123
|
-
routerKey: string;
|
|
1124
|
-
model: string;
|
|
1125
|
-
/** Optional completion transport (see `RouterConfig.complete`): when set, BOTH legs of an
|
|
1126
|
-
* offline run use it instead of `fetch`-ing the router — the worker's tool loop (threaded into
|
|
1127
|
-
* its `routerToolLoop` cfg) AND the analyst's critic (its `ChatClient` is bound to this same
|
|
1128
|
-
* transport). One injected responder serves both, as a localhost mock endpoint would. Absent ⇒
|
|
1129
|
-
* the live router fetch path (the default). */
|
|
1130
|
-
complete?: (body: Record<string, unknown>) => Promise<unknown>;
|
|
1131
|
-
temperature?: number;
|
|
1132
|
-
/** Completion cap per worker turn — REQUIRED for thinking models (they burn unbounded
|
|
1133
|
-
* budgets on reasoning and return empty content without it). Omitted ⇒ provider default. */
|
|
1134
|
-
maxTokens?: number;
|
|
1135
|
-
/** Turns the agent may take within ONE shot before the driver intervenes. */
|
|
1136
|
-
innerTurns?: number;
|
|
1137
|
-
/** The depth STEERER's analyst instruction (observe()'s system prompt). The knob a
|
|
1138
|
-
* prompt optimizer (GEPA) tunes — the analyst IS the steerer. Omitted ⇒ the default. */
|
|
1139
|
-
analystInstruction?: string;
|
|
1140
|
-
/** The critic's model — lets the analyst be a stronger (or cheaper) model than the
|
|
1141
|
-
* worker. Omitted ⇒ the worker's `model`. */
|
|
1142
|
-
analystModel?: string;
|
|
1143
|
-
/** Across-run learning: when set, the analyst's observe() pass appends trace-derived
|
|
1144
|
-
* facts here (the flywheel write side). Priming (the read side) is the caller's move —
|
|
1145
|
-
* query the corpus and fold facts into the task's systemPrompt before runAgentic. */
|
|
1146
|
-
corpus?: Corpus;
|
|
1147
|
-
/** Tags written onto learned facts (and used by the caller's priming query). */
|
|
1148
|
-
corpusTags?: string[];
|
|
1149
|
-
}
|
|
1150
|
-
type Msg = Record<string, unknown>;
|
|
1151
|
-
interface ShotResult {
|
|
1152
|
-
messages: Msg[];
|
|
1153
|
-
score: number;
|
|
1154
|
-
passes: number;
|
|
1155
|
-
total: number;
|
|
1156
|
-
completions: number;
|
|
1157
|
-
toolErrors: number;
|
|
1158
|
-
}
|
|
1159
|
-
interface AgenticRunResult {
|
|
1160
|
-
/** The strategy name (built-in 'depth'/'breadth' or a custom strategy's name). */
|
|
1161
|
-
mode: string;
|
|
1162
|
-
score: number;
|
|
1163
|
-
resolved: boolean;
|
|
1164
|
-
completions: number;
|
|
1165
|
-
/** DEPTH: score after each shot — the progress-over-rounds curve. BREADTH: best-so-far per rollout. */
|
|
1166
|
-
progression: number[];
|
|
1167
|
-
shots: number;
|
|
1168
|
-
/** The cost vector, stamped by `runAgentic` from the Supervisor's conserved pool: real
|
|
1169
|
-
* router tokens, priced usd (0 when the model is unpriced — never fabricated), wall ms. */
|
|
1170
|
-
usd: number;
|
|
1171
|
-
ms: number;
|
|
1172
|
-
tokens: {
|
|
1173
|
-
input: number;
|
|
1174
|
-
output: number;
|
|
1175
|
-
};
|
|
1176
|
-
}
|
|
1177
|
-
/** DEPTH: one persistent artifact, carried across analyst-steered shots. */
|
|
1178
|
-
declare function depthStrategy(surface: AgenticSurface, task: AgenticTask, opts: AgenticOptions, cfg: {
|
|
1179
|
-
maxShots: number;
|
|
1180
|
-
}): Agent<unknown, Outcome<unknown>>;
|
|
1181
|
-
/** BREADTH: K independent rollouts (each own artifact), verifier picks the best. */
|
|
1182
|
-
declare function breadthStrategy(_surface: AgenticSurface, task: AgenticTask, opts: AgenticOptions, cfg: {
|
|
1183
|
-
width: number;
|
|
1184
|
-
}): Agent<unknown, Outcome<unknown>>;
|
|
1185
|
-
/**
|
|
1186
|
-
* A Strategy is HOW you spend the compute budget to beat the Environment's check — it
|
|
1187
|
-
* builds the driver `Agent` the Supervisor runs. This is the OPEN extension point: a dev
|
|
1188
|
-
* authors their own by implementing `driver()` to return an Agent whose `act()` spawns
|
|
1189
|
-
* shots/analysts via `scope.spawn` / `scope.next` / `scope.send`. The two built-ins are
|
|
1190
|
-
* the reference implementations to copy:
|
|
1191
|
-
* sample — K INDEPENDENT attempts, keep the best-verifying (best-of-N / resample).
|
|
1192
|
-
* refine — attempt → observe() reads the trace → steer the next → repeat (iterate).
|
|
1193
|
-
* (A multi-agent "team" is just a Strategy whose driver spawns several different agents.)
|
|
1194
|
-
*/
|
|
1195
|
-
interface Strategy {
|
|
1196
|
-
readonly name: string;
|
|
1197
|
-
driver(surface: AgenticSurface, task: AgenticTask, opts: AgenticOptions, budget: number): Agent<unknown, Outcome<unknown>>;
|
|
1198
|
-
}
|
|
1199
|
-
/** Built-in `Strategy`: K independent attempts, keep the best-verifying (best-of-N / resample). */
|
|
1200
|
-
declare const sample: Strategy;
|
|
1201
|
-
/** Built-in `Strategy`: attempt → `observe()` reads the trace → steer the next attempt → repeat (deepen one lineage). */
|
|
1202
|
-
declare const refine: Strategy;
|
|
1203
|
-
/** A role for one shot — multi-agent loops (researcher + engineer, a panel of k
|
|
1204
|
-
* researchers) give each shot its own system prompt and optionally its own model. */
|
|
1205
|
-
interface ShotPersona {
|
|
1206
|
-
/** Replaces the task's systemPrompt for a FRESH shot; on a carried conversation it is
|
|
1207
|
-
* injected as a hand-off message (the transcript's earlier roles stay intact). */
|
|
1208
|
-
systemPrompt?: string;
|
|
1209
|
-
/** Per-shot model override (e.g. a stronger model for the engineer shot). */
|
|
1210
|
-
model?: string;
|
|
1211
|
-
}
|
|
1212
|
-
interface ShotSpec {
|
|
1213
|
-
/** present ⇒ continue this artifact (depth); absent ⇒ the shot opens a fresh one (sample/restart). */
|
|
1214
|
-
handle?: ArtifactHandle;
|
|
1215
|
-
messages?: Msg[];
|
|
1216
|
-
steer?: string;
|
|
1217
|
-
persona?: ShotPersona;
|
|
1218
|
-
/** Restrict THIS shot to a subset of the domain's tools (by name) — focus a shot on
|
|
1219
|
-
* the relevant capabilities. Restriction-only; unknown names throw. Omitted ⇒ all. */
|
|
1220
|
-
tools?: string[];
|
|
1221
|
-
}
|
|
1222
|
-
interface StrategyResult {
|
|
1223
|
-
score: number;
|
|
1224
|
-
resolved: boolean;
|
|
1225
|
-
completions: number;
|
|
1226
|
-
progression: number[];
|
|
1227
|
-
shots: number;
|
|
1228
|
-
}
|
|
1229
|
-
/** Artifact lifecycle a strategy may manage itself — open/close ONLY. Raw `call`/`score`
|
|
1230
|
-
* are withheld: scores reach the body solely through `shot()`'s ShotResult (the
|
|
1231
|
-
* harness-verified channel), so a body cannot peek the check or fabricate around it. */
|
|
1232
|
-
interface StrategyArtifacts {
|
|
1233
|
-
readonly name: string;
|
|
1234
|
-
open(task: AgenticTask): Promise<ArtifactHandle>;
|
|
1235
|
-
close(handle: ArtifactHandle): Promise<void>;
|
|
1236
|
-
}
|
|
1237
|
-
/** What a strategy body composes with: the artifact lifecycle, the budget, and the two steps. */
|
|
1238
|
-
interface StrategyCtx {
|
|
1239
|
-
/** Open/close artifacts the body manages itself (e.g. one persistent handle for depth). */
|
|
1240
|
-
readonly surface: StrategyArtifacts;
|
|
1241
|
-
readonly task: AgenticTask;
|
|
1242
|
-
readonly opts: AgenticOptions;
|
|
1243
|
-
readonly budget: number;
|
|
1244
|
-
readonly scope: Scope<Outcome<unknown>>;
|
|
1245
|
-
/** Run ONE worker shot; its harness-scored result, or null if it went down. */
|
|
1246
|
-
shot(spec?: ShotSpec): Promise<ShotResult | null>;
|
|
1247
|
-
/** The firewalled critic reads the trajectory → a steer string, or null on COMPLETE/down. */
|
|
1248
|
-
critique(messages: Msg[]): Promise<string | null>;
|
|
1249
|
-
/** The RAW analyst channel: the firewalled critic answers `instruction` over the
|
|
1250
|
-
* trajectory verbatim — no findings extraction, so verdict-shaped formats
|
|
1251
|
-
* (CONTINUE/STOP decisions, calibrated predictions) survive. Same firewall:
|
|
1252
|
-
* trajectory in, never scores. Null when the analyst went down. */
|
|
1253
|
-
consult(messages: Msg[], instruction: string): Promise<string | null>;
|
|
1254
|
-
/** The tools THIS artifact's task actually offers (names + descriptions only — never
|
|
1255
|
-
* the implementations). Tool sets vary per task on heterogeneous domains; a strategy
|
|
1256
|
-
* that restricts shots MUST select from this list, never from hardcoded names. */
|
|
1257
|
-
listTools(handle: ArtifactHandle): Promise<Array<{
|
|
1258
|
-
name: string;
|
|
1259
|
-
description?: string;
|
|
1260
|
-
}>>;
|
|
1261
|
-
}
|
|
1262
|
-
/** Author a Strategy from the composable steps — the open, compact way. */
|
|
1263
|
-
declare function defineStrategy(name: string, run: (ctx: StrategyCtx) => Promise<StrategyResult>): Strategy;
|
|
1264
|
-
/** A NEW strategy, authored from the steps (~20 lines): refine, but when a steered shot
|
|
1265
|
-
* fails to improve the score it ABANDONS that line and restarts fresh (branch-when-stuck)
|
|
1266
|
-
* — the widen/MCTS idea the depth-stuck failure motivated. Scored keep-best (the best
|
|
1267
|
-
* checkpoint across all lines), the deployable metric. This is the "experts build BETTER
|
|
1268
|
-
* optimizations" path: a new technique, compact, with zero Supervisor ceremony. */
|
|
1269
|
-
declare const adaptiveRefine: Strategy;
|
|
1270
|
-
/** The explore-then-exploit MIX: spend ⌈budget/2⌉ on independent samples (kept open),
|
|
1271
|
-
* then refine the best-verifying line with the remaining budget. Sample's basin escape +
|
|
1272
|
-
* refine's accumulation — the third built-in, authored from the public steps. */
|
|
1273
|
-
declare const sampleThenRefine: Strategy;
|
|
1274
|
-
interface RunAgenticOptions extends AgenticOptions {
|
|
1275
|
-
surface: AgenticSurface;
|
|
1276
|
-
task: AgenticTask;
|
|
1277
|
-
/** Lifecycle observability — every spawn/settle (shots, analysts) streams here live.
|
|
1278
|
-
* The seam online watchdogs/route-auditors subscribe to. */
|
|
1279
|
-
hooks?: RuntimeHooks;
|
|
1280
|
-
/** A Strategy (the open way) — author/pass your own. Overrides `mode` when present. */
|
|
1281
|
-
strategy?: Strategy;
|
|
1282
|
-
/** Built-in shorthand: 'depth'→refine, 'breadth'→sample. Default 'depth'. */
|
|
1283
|
-
mode?: 'depth' | 'breadth';
|
|
1284
|
-
/** budget: refine→max shots; sample→rollout width. */
|
|
1285
|
-
budget: number;
|
|
1286
|
-
rootBudget?: Budget;
|
|
1287
|
-
}
|
|
1288
|
-
/** Run a Strategy through the keystone Supervisor — `Agent.act` over a conserved-budget Scope. */
|
|
1289
|
-
declare function runAgentic(opts: RunAgenticOptions): Promise<AgenticRunResult>;
|
|
1290
|
-
|
|
1291
1065
|
/**
|
|
1292
1066
|
* runBenchmark — the packaged optimization suite. Define a domain by implementing an
|
|
1293
1067
|
* `Environment` (open / tools / call / score / close); get the optimization strategies
|
|
@@ -2432,6 +2206,14 @@ interface SandboxRun<Out> {
|
|
|
2432
2206
|
* @experimental
|
|
2433
2207
|
*/
|
|
2434
2208
|
type OpenSandboxRunPromptOptions = Omit<PromptOptions, 'signal' | 'sessionId'>;
|
|
2209
|
+
/** Context available after the box/session exists and before the first prompt is
|
|
2210
|
+
* drained. Intended for benchmark-owned workspace setup such as cloning a repo
|
|
2211
|
+
* into a fixed path. */
|
|
2212
|
+
interface OpenSandboxRunBeforeStartContext {
|
|
2213
|
+
readonly box: SandboxInstance;
|
|
2214
|
+
readonly sessionId: string;
|
|
2215
|
+
readonly signal: AbortSignal;
|
|
2216
|
+
}
|
|
2435
2217
|
/** @experimental */
|
|
2436
2218
|
interface OpenSandboxRunOptions {
|
|
2437
2219
|
/** Profile + sandbox env/overrides. `sandboxOverrides.backend.type` is the harness. */
|
|
@@ -2446,6 +2228,10 @@ interface OpenSandboxRunOptions {
|
|
|
2446
2228
|
/** Per-prompt sandbox SDK options forwarded to both `start()` and `resume()`.
|
|
2447
2229
|
* The runtime still owns the session id and abort signal for each turn. */
|
|
2448
2230
|
promptOptions?: OpenSandboxRunPromptOptions;
|
|
2231
|
+
/** Optional pre-start workspace setup. Runs after `lineage.start()` creates the
|
|
2232
|
+
* box/session and before the first prompt stream is consumed. A thrown error
|
|
2233
|
+
* fails the turn before the agent spends tokens. */
|
|
2234
|
+
beforeStart?: (ctx: OpenSandboxRunBeforeStartContext) => Promise<void> | void;
|
|
2449
2235
|
/** Test seam for deterministic hook timestamps. Defaults to `Date.now`. */
|
|
2450
2236
|
now?: () => number;
|
|
2451
2237
|
/** Bounds box-creation bursts inside lineage fanout. Default from lineage. */
|
|
@@ -3392,6 +3178,10 @@ declare function serveCoordinationMcp(opts: {
|
|
|
3392
3178
|
/** Hard cap on simultaneously-LIVE workers — `spawn_agent` fails closed once this many are in
|
|
3393
3179
|
* flight (a concurrency fence on top of the conserved-pool fence). Omit/`<= 0` = no cap. */
|
|
3394
3180
|
maxLiveWorkers?: number;
|
|
3181
|
+
/** Max wall-clock ms a single `await_event` may block before returning a re-pollable
|
|
3182
|
+
* `{ pending, live }` snapshot instead of erroring on the client's request timeout. Omit =
|
|
3183
|
+
* {@link DEFAULT_AWAIT_EVENT_TIMEOUT_MS}; `<= 0` = prior unbounded block (in-process only). */
|
|
3184
|
+
awaitTimeoutMs?: number;
|
|
3395
3185
|
port?: number;
|
|
3396
3186
|
host?: string;
|
|
3397
3187
|
/** Trace-analyst lenses the driver can run (`run_analyst`) or auto-fire on settle. */
|
|
@@ -3403,66 +3193,6 @@ declare function serveCoordinationMcp(opts: {
|
|
|
3403
3193
|
questionPolicy?: QuestionPolicy;
|
|
3404
3194
|
}): Promise<CoordinationMcpHandle>;
|
|
3405
3195
|
|
|
3406
|
-
/** The supervisor's profile — the subset of an `AgentProfile` that selects + shapes its brain.
|
|
3407
|
-
* `harness` is the backend-as-data discriminant; `systemPrompt` is the standing instruction. */
|
|
3408
|
-
interface SupervisorProfile {
|
|
3409
|
-
readonly name?: string;
|
|
3410
|
-
/** null/undefined → router brain (in-process tool-loop); a coding-CLI harness → sandboxed brain. */
|
|
3411
|
-
readonly harness?: string | null;
|
|
3412
|
-
/** The router model when the brain is router-driven (falls back to the deps router config). */
|
|
3413
|
-
readonly model?: string;
|
|
3414
|
-
/** The standing instructions ("you delegate, you do not solve"). */
|
|
3415
|
-
readonly systemPrompt?: string;
|
|
3416
|
-
}
|
|
3417
|
-
/** How to run a sandboxed harness as the DRIVER, with the coordination verbs mounted — the substrate
|
|
3418
|
-
* seam the caller supplies (mirrors `makeWorkerAgent` for spawned children). It runs `profile` on
|
|
3419
|
-
* `task` in its backend (sandbox / cli-bridge) with `coordinationMcpUrl` mounted as an MCP server,
|
|
3420
|
-
* so the harness calls spawn_agent / await_event / stop as native tools over the live scope. */
|
|
3421
|
-
type DriveHarness = (args: {
|
|
3422
|
-
readonly profile: SupervisorProfile;
|
|
3423
|
-
readonly task: unknown;
|
|
3424
|
-
readonly scope: Scope<unknown>;
|
|
3425
|
-
readonly coordinationMcpUrl: string;
|
|
3426
|
-
}) => Promise<void>;
|
|
3427
|
-
interface SupervisorAgentDeps {
|
|
3428
|
-
readonly blobs: ResultBlobStore;
|
|
3429
|
-
/** Resolve a spawned worker `profile` to a leaf agent — the recursion seam (same for both arms). */
|
|
3430
|
-
readonly makeWorkerAgent: MakeWorkerAgent;
|
|
3431
|
-
/** Per-child budget reserved from the conserved pool on each spawn. */
|
|
3432
|
-
readonly perWorker: Budget;
|
|
3433
|
-
/** Hard cap on simultaneously-LIVE workers across both arms — `spawn_agent` fails closed once
|
|
3434
|
-
* this many are in flight (a concurrency fence on top of the conserved-pool fence; bounds live
|
|
3435
|
-
* boxes/sandboxes, not total work). Omit/`<= 0` = no cap. */
|
|
3436
|
-
readonly maxLiveWorkers?: number;
|
|
3437
|
-
/** Router substrate for a router-brained supervisor (`harness` null). The profile's model wins. */
|
|
3438
|
-
readonly router?: RouterConfig;
|
|
3439
|
-
/** Inject the brain directly (tests / advanced) instead of resolving `routerBrain` from the profile. */
|
|
3440
|
-
readonly brain?: ToolLoopChat;
|
|
3441
|
-
/** Required for a sandboxed-harness supervisor (`harness` set): runs the harness as the driver. */
|
|
3442
|
-
readonly driveHarness?: DriveHarness;
|
|
3443
|
-
/** WORK tools the supervisor may call DIRECTLY (router arm) — so it can do simple work ITSELF and
|
|
3444
|
-
* only delegate when it needs parallelism. Pair with `executeExtraTool`. */
|
|
3445
|
-
readonly extraTools?: ReadonlyArray<{
|
|
3446
|
-
readonly name: string;
|
|
3447
|
-
readonly description?: string;
|
|
3448
|
-
readonly parameters: Record<string, unknown>;
|
|
3449
|
-
}>;
|
|
3450
|
-
/** Runs an `extraTools` call; null/undefined falls through to the coordination dispatch. */
|
|
3451
|
-
readonly executeExtraTool?: (name: string, args: Record<string, unknown>) => Promise<string | null | undefined>;
|
|
3452
|
-
/** Analyst lenses available to the driver (both arms). Required for `analyzeOnSettle`. */
|
|
3453
|
-
readonly analysts?: AnalystRegistry;
|
|
3454
|
-
/** Analyst kinds run on each worker-settle → a `finding` the driver composes its next steer from
|
|
3455
|
-
* (the self-improving UP-leg). Unset/empty = status quo (no analyst feed). Requires `analysts`. */
|
|
3456
|
-
readonly analyzeOnSettle?: ReadonlyArray<string>;
|
|
3457
|
-
readonly maxTurns?: number;
|
|
3458
|
-
/** Give the supervisor brain a chapter-lifecycle on its OWN context window (router arm only) — it
|
|
3459
|
-
* distills its coordination transcript to a compact progress note once it exceeds the threshold,
|
|
3460
|
-
* instead of re-billing the whole thing every turn. See `DriverAgentOptions.compaction`. */
|
|
3461
|
-
readonly compaction?: ToolLoopCompactionOptions;
|
|
3462
|
-
}
|
|
3463
|
-
/** Build a supervisor `Agent` from its profile: the brain resolves from `profile.harness` (backend-as-data), the same resolution rule as every worker. */
|
|
3464
|
-
declare function supervisorAgent(profile: SupervisorProfile, deps: SupervisorAgentDeps): Agent<unknown, unknown>;
|
|
3465
|
-
|
|
3466
3196
|
/**
|
|
3467
3197
|
*
|
|
3468
3198
|
* `delegate` — the one generic delegation verb. You hand it an INTENT (what you want done) and it
|
|
@@ -3803,71 +3533,6 @@ declare function createScope<Out>(args: ScopeArgs): Scope<Out>;
|
|
|
3803
3533
|
*/
|
|
3804
3534
|
declare function settledToIteration<Out>(settled: Settled<Out>): Iteration<unknown, Out>;
|
|
3805
3535
|
|
|
3806
|
-
/** Build the worker seam from a backend (WHERE workers run) + an optional completion oracle (the
|
|
3807
|
-
* deliverable check that makes "settled ⟺ delivered" true — the guard against "ran but didn't
|
|
3808
|
-
* deliver"). The ONE place a backend becomes a spawnable worker. */
|
|
3809
|
-
declare function workerFromBackend(backend: ExecutorConfig, deliverable?: DeliverableSpec<unknown>): MakeWorkerAgent;
|
|
3810
|
-
interface SuperviseOptions {
|
|
3811
|
-
/** The conserved compute pool for the whole run. */
|
|
3812
|
-
readonly budget: Budget;
|
|
3813
|
-
/** WHERE workers run — derives the worker seam. Provide this OR an explicit `makeWorkerAgent`. */
|
|
3814
|
-
readonly backend?: ExecutorConfig;
|
|
3815
|
-
/** The completion oracle for backend-derived workers (settled ⟺ delivered). Strongly recommended:
|
|
3816
|
-
* without it the supervisor trusts a worker's self-report — exactly the "ran but didn't deliver"
|
|
3817
|
-
* failure mode of a static orchestrator. */
|
|
3818
|
-
readonly deliverable?: DeliverableSpec<unknown>;
|
|
3819
|
-
/** Override the worker seam directly (tests / advanced) instead of deriving it from `backend`. */
|
|
3820
|
-
readonly makeWorkerAgent?: MakeWorkerAgent;
|
|
3821
|
-
/** The supervisor's router substrate (`harness` null). The profile's model wins. */
|
|
3822
|
-
readonly router?: RouterConfig;
|
|
3823
|
-
/** Inject the supervisor brain directly (tests / advanced). */
|
|
3824
|
-
readonly brain?: ToolLoopChat;
|
|
3825
|
-
/** Run a sandboxed-harness supervisor (`harness` set). */
|
|
3826
|
-
readonly driveHarness?: DriveHarness;
|
|
3827
|
-
/** WORK tools the supervisor may call DIRECTLY — so a recursive atom can ACT (do simple work
|
|
3828
|
-
* itself) OR SPAWN (delegate when it needs parallelism), not be a pure manager. Pair with
|
|
3829
|
-
* `executeExtraTool`. Router arm only (`harness` null). */
|
|
3830
|
-
readonly extraTools?: ReadonlyArray<{
|
|
3831
|
-
readonly name: string;
|
|
3832
|
-
readonly description?: string;
|
|
3833
|
-
readonly parameters: Record<string, unknown>;
|
|
3834
|
-
}>;
|
|
3835
|
-
/** Runs an `extraTools` call; null/undefined falls through to the coordination dispatch. */
|
|
3836
|
-
readonly executeExtraTool?: (name: string, args: Record<string, unknown>) => Promise<string | null | undefined>;
|
|
3837
|
-
/** Per-child budget reserved on each spawn. Defaults to a quarter of the pool's tokens. */
|
|
3838
|
-
readonly perWorker?: Budget;
|
|
3839
|
-
/** Hard cap on simultaneously-LIVE workers — `spawn_agent` fails closed once this many are in
|
|
3840
|
-
* flight. The conserved pool bounds TOTAL work; this bounds SIMULTANEOUS work (live boxes/
|
|
3841
|
-
* sandboxes a real fleet runs at once). Omit/`<= 0` = no cap (the pool stays the only fence). */
|
|
3842
|
-
readonly maxLiveWorkers?: number;
|
|
3843
|
-
/** Analyst lenses available to the driver. Required for `analyzeOnSettle`. Unset → status quo
|
|
3844
|
-
* (the driver receives settled worker outputs, no analyst findings). */
|
|
3845
|
-
readonly analysts?: AnalystRegistry;
|
|
3846
|
-
/** Analyst kind ids run AUTOMATICALLY when a worker settles `done` — each re-enters as a `finding`
|
|
3847
|
-
* the driver pulls (`await_event`) and composes its next steer from. The self-improving UP-leg,
|
|
3848
|
-
* threaded to the driver at this level (propagate to sub-drivers via a recursive `makeWorkerAgent`).
|
|
3849
|
-
* Omit/empty = status quo (no analyst feed). Requires `analysts`. */
|
|
3850
|
-
readonly analyzeOnSettle?: ReadonlyArray<string>;
|
|
3851
|
-
/** Worker output store. Defaults to in-memory. */
|
|
3852
|
-
readonly blobs?: ResultBlobStore;
|
|
3853
|
-
readonly maxDepth?: number;
|
|
3854
|
-
readonly maxTurns?: number;
|
|
3855
|
-
/** Give the supervisor brain a chapter-lifecycle on its OWN context window (router arm only): once
|
|
3856
|
-
* its coordination transcript exceeds `thresholdTokens` it distills to a compact progress note and
|
|
3857
|
-
* continues, instead of re-billing the whole transcript every turn (the cost that makes the LLM-brain
|
|
3858
|
-
* front door lose to a dumb-Ralph respawn). The live `Scope` roster is the durable state across
|
|
3859
|
-
* chapters. Default off. `distill` defaults to a brain self-summary + the settled-worker roster. */
|
|
3860
|
-
readonly compaction?: ToolLoopCompactionOptions;
|
|
3861
|
-
readonly runId?: string;
|
|
3862
|
-
readonly now?: () => number;
|
|
3863
|
-
/** Restrict the run to this subset of models. When set, every configured model — the
|
|
3864
|
-
* supervisor router model, the profile's model, and the backend's model — must be a member,
|
|
3865
|
-
* or `supervise()` throws a `ConfigError` before any compute is spent. Unset = unrestricted. */
|
|
3866
|
-
readonly allowedModels?: readonly string[];
|
|
3867
|
-
}
|
|
3868
|
-
/** One-call supervisor: build + run a supervisor from its profile with sensible defaults; the raw `supervisorAgent` + `createSupervisor().run` seams stay available for power use. */
|
|
3869
|
-
declare function supervise(profile: SupervisorProfile, task: unknown, opts: SuperviseOptions): Promise<SupervisedResult<unknown>>;
|
|
3870
|
-
|
|
3871
3536
|
/**
|
|
3872
3537
|
*
|
|
3873
3538
|
* The `Supervisor` impl (KEYSTONE, build step 5).
|
|
@@ -4089,4 +3754,4 @@ declare function runInWorkspace<T>(ws: Workspace, body: (cwd: string) => Promise
|
|
|
4089
3754
|
commitOnInvalid?: boolean;
|
|
4090
3755
|
}): Promise<WorkspaceRun<T>>;
|
|
4091
3756
|
|
|
4092
|
-
export { Agent, AgentRunSpec, type AgentTurnBackend, type AgentTurnUsage,
|
|
3757
|
+
export { Agent, AgentRunSpec, type AgentTurnBackend, type AgentTurnUsage, AgenticOptions, AgenticSurface, AgenticTask, AgenticTool, AnalystRegistry, type AnytimeReport, type AnytimeStrategySummary, type AnytimeTaskCurve, type ApplyContinuation, ArtifactHandle, AssertTraceDerivedFindings, type AuditIntentInput, type AuditIntentOptions, type AuthorStrategyOptions, type AuthoredProfile, type AuthoredStrategy, type BenchmarkCell, type BenchmarkConfig, type BenchmarkLift, type BenchmarkReport, type BenchmarkStrategySummary, type BenchmarkTaskRow, Budget, type BudgetPool, type BudgetReadout, type ChampionPick, type ChampionPolicy, type CheckpointCapableBox, type CollectedAgentTurn, CombinatorShape, type CompletionAnalyst, type CompletionEvidence, type CompletionPolicy, type CompletionVerdict, CoordinationEvent, type CoordinationMcpHandle, Corpus, CorpusFilter, CorpusRecord, type CreateScopeAnalystOptions, type CriuCapableClient, DefinePersonaInput, type DefinedLeaderboard, type DelegateOptions, type Deliverable, DeliverableSpec, Driver, type DriverAgentOptions, type DumbDriverOptions, type Environment, EqualKArm, EqualKOnCostOptions, EqualKVerdict, type EvolutionArchiveNode, type EvolutionAuthor, type EvolutionBandInfo, type EvolutionCandidate, type EvolutionGeneration, type EvolutionReport, ExecCtx, ExecutorConfig, ExecutorFactory, ExecutorRegistry, FanoutOptions, FanoutWinnerSelector, FileCorpus, type ForkCapableBox, type GitWorkspaceOptions, type HarvestCorpusOptions, type HarvestFailure, type HarvestReport, InMemoryCorpus, InMemoryResultBlobStore, type InMemoryRunContext, type InMemoryRunContextOptions, InMemorySpawnJournal, type InProcessOnPrompt, type InProcessPromptCtx, type InProcessSandboxClientOptions, type Inbox, type InboxMessage, type IntentAudit, type Interval, Iteration, 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 LoopCampaignDispatchOptions, type LoopDispatchOptions, LoopLineageOptions, type LoopOptionsForDispatch, LoopResult, LoopShape, LoopTokenUsage, LoopUntilSpec, LoopWinner, MakeWorkerAgent, type McpEndpoint, type McpEnvironmentOptions, MountRecorder, type NaiveDriverOptions, type Observation, type ObserveInput, type ObserveOptions, type OpenSandboxRunBeforeStartContext, type OpenSandboxRunOptions, type OpenSandboxRunPromptOptions, Outcome, OutputAdapter, type PairwiseOptions, type PairwiseVerdict, PanelSpec, Persona, PipelineStage, type ProfileRichness, type ProfileRichnessThresholds, type PromotionGateOptions, type PromotionVerdict, type RegistryAnalyzeProjection, RenderCorpusToInstructionsOptions, type ReservationTicket, type ResolveSandboxClientOptions, ResultBlobStore, RouterConfig, RunPersonifiedOptions, type SandboxCapabilities, SandboxClient, type SandboxLineage, type SandboxLineageHandle, type SandboxRun, SandboxRunAbortError, type SandboxToolPartState, Scope, ScopeAnalyst, ScopeAnalyzeInput, ScopeWidenGate, type SessionCapableBox, type SessionTraceBox, Settled, ShapeRegistry, type Shell, Spend, SteerContext, type SteeringDecision, Strategy, type StrategyEvolutionConfig, type StreamAgentTurnOptions, type SuperviseSurfaceOptions, type SuperviseSurfaceResult, SupervisedResult, Supervisor, SupervisorProfile, SurfaceScore, type SurfaceWorkerConfig, type SurfaceWorkerOut, ToolLoopChat, ToolLoopCompactionOptions, type TraceSource, type TrajectoryAnalysis, TrajectoryReport, TrajectoryReportOptions, type TurnResult, UsageEvent, type UsageSink, Validator, type VerifierEnvironmentOptions, VerifySpec, type WatchTraceOptions, type WaterfallCollector, type WaterfallReport, type WaterfallSpan, WidenSpec, WinnerStrategy, type Workspace, type WorkspaceCommit, type WorkspaceRun, acquireSandbox, analyzeTrace, anytimeReport, asAuthoredProfile, assertModelAllowed, assertStrategyContract, assertTraceDerivedFindings, assessAuthoredProfile, auditIntent, authorStrategy, authoredWorker, buildSteerContext, builtinShapes, collectAgentTurn, completionAuthorizes, contentAddress, createBudgetPool, createInMemoryRunContext, createInbox, createMcpEnvironment, createPushTraceSource, createSandboxLineage, createSandboxToolPartState, createScope, createScopeAnalyst, createShapeRegistry, createSupervisor, createVerifierEnvironment, createWaterfallCollector, decodeToolPart, defaultAnalystInstruction, defaultAuditorInstruction, defaultDelegateBudget, defaultProfileRichnessThresholds, defaultSelectWinner, defaultToolDetectors, defineLeaderboard, definePersona, delegate, deterministicCompletion, discriminatingMeans, driverAgent, dumbDriver, equalKOnCost, extractLlmCallEvent, failuresAnalyst, fanout, finalizeBestDelivered, flatWidenGate, gitWorkspace, harvestCorpus, inProcessSandboxClient, inlineSandboxClient, jjWorkspace, leaderboard, localShell, loopCampaignDispatch, loopDispatch, loopUntil, mapSandboxEvent, mapSandboxToolEvent, naiveDriver, observe, openSandboxRun, pairwiseSignificance, panel, pickChampion, pipeline, printBenchmarkReport, probeSandboxCapabilities, profileRichnessFinding, promotionGate, registerShape, registryScopeAnalyst, renderAnytimeTable, renderCorpusToInstructions, renderLeaderboardHtml, renderLeaderboardMarkdown, renderLeaderboardSvg, renderPairwiseMarkdown, renderReport, reportLoopUsage, resolveSandboxClient, runBenchmark, runInWorkspace, runLoop, runPersonified, runStrategyEvolution, sandboxSessionTraceSource, selectChampion, selectValidWinner, sentinelCompletion, serveCoordinationMcp, settledToIteration, spendFromUsageEvents, stopSentinel, strategyAuthorContract, streamAgentTurn, sumSandboxUsage, superviseSurface, supervisorInstructions, trajectoryReport, verify, watchTrace, widen };
|