@tangle-network/agent-runtime 0.348.1 → 0.350.2
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/{activation-BEGalhOL.js → activation-CfJMyzEs.js} +12 -14
- package/dist/{activation-BEGalhOL.js.map → activation-CfJMyzEs.js.map} +1 -1
- package/dist/{activation-NQZP_mdI.d.ts → activation-DyiHrTlS.d.ts} +2 -24
- package/dist/agent.d.ts +8 -12
- package/dist/agent.js +9 -12
- package/dist/agent.js.map +1 -1
- package/dist/{analyst-loop-DZw5QWT9.js → analyst-loop-BZvXCDKy.js} +2 -3
- package/dist/{analyst-loop-DZw5QWT9.js.map → analyst-loop-BZvXCDKy.js.map} +1 -1
- package/dist/analyst-loop.d.ts +3 -5
- package/dist/analyst-loop.js +1 -2
- package/dist/{bundle-DKQtOO9d.js → bundle-Ze8pd07a.js} +3 -4
- package/dist/{bundle-DKQtOO9d.js.map → bundle-Ze8pd07a.js.map} +1 -1
- package/dist/candidate-execution/index.d.ts +13 -33
- package/dist/candidate-execution/index.js +16 -18
- package/dist/candidate-execution/index.js.map +1 -1
- package/dist/{coordination-manager-Bm6leXc6.js → coordination-manager-BkVfWlMz.js} +101 -132
- package/dist/coordination-manager-BkVfWlMz.js.map +1 -0
- package/dist/{delegate-Cp5-PsaX.js → delegate-DgEie4ad.js} +19 -21
- package/dist/delegate-DgEie4ad.js.map +1 -0
- package/dist/durable.d.ts +13 -23
- package/dist/durable.js +48 -43
- package/dist/durable.js.map +1 -1
- package/dist/{errors-DodWX-cb.js → errors-wuhGvpE3.js} +2 -3
- package/dist/{errors-DodWX-cb.js.map → errors-wuhGvpE3.js.map} +1 -1
- package/dist/{graph-CE_pzU31.js → graph-Cx0FhKSE.js} +192 -15
- package/dist/graph-Cx0FhKSE.js.map +1 -0
- package/dist/{improve-wT11zteg.js → improve-i0HU1-aa.js} +35 -53
- package/dist/{improve-wT11zteg.js.map → improve-i0HU1-aa.js.map} +1 -1
- package/dist/{improvement-adapter-sIthWkcN.d.ts → improvement-adapter-D5GRU1eY.d.ts} +2 -6
- package/dist/index.d.ts +41 -89
- package/dist/index.js +43 -61
- package/dist/index.js.map +1 -1
- package/dist/intelligence.d.ts +39 -59
- package/dist/intelligence.js +23 -33
- package/dist/intelligence.js.map +1 -1
- package/dist/kernel.d.ts +5 -5
- package/dist/kernel.js +11 -11
- package/dist/{loop-runner-CZzeeJTG.js → loop-runner-BwN9MhdP.js} +5 -6
- package/dist/{loop-runner-CZzeeJTG.js.map → loop-runner-BwN9MhdP.js.map} +1 -1
- package/dist/{loop-runner-CY5HHhtR.d.ts → loop-runner-DvfOXVx9.d.ts} +3 -5
- package/dist/loop-runner-bin.d.ts +5 -8
- package/dist/loop-runner-bin.js +2 -3
- package/dist/mcp/bin.js +6 -8
- package/dist/mcp/bin.js.map +1 -1
- package/dist/mcp/index.d.ts +8 -18
- package/dist/mcp/index.js +17 -25
- package/dist/mcp/index.js.map +1 -1
- package/dist/mcp/memory-bin.js +4 -6
- package/dist/mcp/memory-bin.js.map +1 -1
- package/dist/{model-policy-CyCUwHed.js → model-policy-GSxWwP-b.js} +11 -13
- package/dist/model-policy-GSxWwP-b.js.map +1 -0
- package/dist/placement.d.ts +12 -14
- package/dist/placement.js +1 -2
- package/dist/platform.d.ts +7 -13
- package/dist/platform.js +3 -6
- package/dist/platform.js.map +1 -1
- package/dist/{prepare-TEEHSJwq.js → prepare-DE8TQnLu.js} +49 -69
- package/dist/{prepare-TEEHSJwq.js.map → prepare-DE8TQnLu.js.map} +1 -1
- package/dist/{profile-6OLpbjvV.js → profile-CAhZDW2T.js} +58 -92
- package/dist/profile-CAhZDW2T.js.map +1 -0
- package/dist/{profile-materialization-bPm0gGLO.d.ts → profile-materialization-BRY22Oh8.d.ts} +1 -3
- package/dist/profiles.d.ts +25 -12
- package/dist/profiles.js +52 -11
- package/dist/profiles.js.map +1 -1
- package/dist/{protected-model-port-DVVh-hEk.d.ts → protected-model-port-IKqhTypD.d.ts} +2 -14
- package/dist/{protected-redaction-DFCeo4vg.js → protected-redaction-DilFZch5.js} +2 -3
- package/dist/{protected-redaction-DFCeo4vg.js.map → protected-redaction-DilFZch5.js.map} +1 -1
- package/dist/{provision-supervisor-CC0HdOHo.js → provision-supervisor-Bde_FF0R.js} +11 -15
- package/dist/{provision-supervisor-CC0HdOHo.js.map → provision-supervisor-Bde_FF0R.js.map} +1 -1
- package/dist/{record-events-D93DkpAx.js → record-events-B2GUgYdz.js} +12 -14
- package/dist/{record-events-D93DkpAx.js.map → record-events-B2GUgYdz.js.map} +1 -1
- package/dist/{run-cancellation-CzFhQGMa.js → run-cancellation-BLy_Zz-w.js} +6 -7
- package/dist/{run-cancellation-CzFhQGMa.js.map → run-cancellation-BLy_Zz-w.js.map} +1 -1
- package/dist/{runtime-B_40dXlF.js → runtime-6Ec9sHRe.js} +833 -215
- package/dist/runtime-6Ec9sHRe.js.map +1 -0
- package/dist/{runtime-hooks-tXpAarhW.js → runtime-hooks-CsW2pfFk.js} +2 -3
- package/dist/{runtime-hooks-tXpAarhW.js.map → runtime-hooks-CsW2pfFk.js.map} +1 -1
- package/dist/{runtime-hooks-nsqxSUFL.d.ts → runtime-hooks-ZQqPw-0g.d.ts} +1 -3
- package/dist/{sandbox-profile-compat-_fEtHPCj.js → sandbox-profile-compat-BxMQ1VXv.js} +62 -44
- package/dist/sandbox-profile-compat-BxMQ1VXv.js.map +1 -0
- package/dist/{search-executor-COd2F2wp.js → search-executor-B7g_5Wjl.js} +12 -17
- package/dist/search-executor-B7g_5Wjl.js.map +1 -0
- package/dist/{server-BGB4R4wQ.js → server-fvEMwGMQ.js} +19 -30
- package/dist/{server-BGB4R4wQ.js.map → server-fvEMwGMQ.js.map} +1 -1
- package/dist/{structural-rollout-Wl_rCuzM.js → structural-rollout-B86bSixU.js} +69 -70
- package/dist/structural-rollout-B86bSixU.js.map +1 -0
- package/dist/{substrate-CGDFTSRh.js → substrate-Db2pp6y3.js} +2 -3
- package/dist/{substrate-CGDFTSRh.js.map → substrate-Db2pp6y3.js.map} +1 -1
- package/dist/{supervise-BUOeThuB.js → supervise-CaeZcgAW.js} +615 -203
- package/dist/supervise-CaeZcgAW.js.map +1 -0
- package/dist/{supervisor-DDy0aEtR.js → supervisor-C1OePYE-.js} +526 -642
- package/dist/supervisor-C1OePYE-.js.map +1 -0
- package/dist/{task-queue-0fKkoweu.d.ts → task-queue-kefGy79U.d.ts} +1 -3
- package/dist/task-queue.d.ts +1 -1
- package/dist/task-queue.js +1 -2
- package/dist/testing.d.ts +8 -16
- package/dist/testing.js +241 -244
- package/dist/testing.js.map +1 -1
- package/dist/tool-loop.d.ts +16 -19
- package/dist/tool-loop.js +2 -3
- package/dist/{tool-server-XV4aJwoQ.js → tool-server-CwuYeW_Z.js} +3 -4
- package/dist/{tool-server-XV4aJwoQ.js.map → tool-server-CwuYeW_Z.js.map} +1 -1
- package/dist/{top-snapshot-CflmaDgk.js → top-snapshot-ChwpTr7A.js} +4 -5
- package/dist/{top-snapshot-CflmaDgk.js.map → top-snapshot-ChwpTr7A.js.map} +1 -1
- package/dist/tui/bin.js +7 -9
- package/dist/tui/bin.js.map +1 -1
- package/dist/tui/index.d.ts +3 -5
- package/dist/tui/index.js +2 -2
- package/dist/{types-hc4cmSc7.d.ts → types-Fowuwdz2.d.ts} +555 -503
- package/dist/{types-Cwrea-bU.d.ts → types-qsqfyQoY.d.ts} +1 -3
- package/dist/workspace-store/index.d.ts +12 -22
- package/dist/workspace-store/index.js +4 -7
- package/dist/workspace-store/index.js.map +1 -1
- package/dist/{workspace-streams-BiS4ABah.d.ts → workspace-streams-Dq2Fzk3c.d.ts} +1 -11
- package/package.json +25 -25
- package/skills/agent-graphs/SKILL.md +19 -4
- package/skills/be-ambitious/SKILL.md +46 -0
- package/skills/graph-designer/SKILL.md +15 -2
- package/skills/profile-authoring/SKILL.md +1 -1
- package/dist/coordination-manager-Bm6leXc6.js.map +0 -1
- package/dist/delegate-Cp5-PsaX.js.map +0 -1
- package/dist/graph-CE_pzU31.js.map +0 -1
- package/dist/model-policy-CyCUwHed.js.map +0 -1
- package/dist/profile-6OLpbjvV.js.map +0 -1
- package/dist/runtime-B_40dXlF.js.map +0 -1
- package/dist/sandbox-profile-compat-_fEtHPCj.js.map +0 -1
- package/dist/search-executor-COd2F2wp.js.map +0 -1
- package/dist/structural-rollout-Wl_rCuzM.js.map +0 -1
- package/dist/supervise-BUOeThuB.js.map +0 -1
- package/dist/supervisor-DDy0aEtR.js.map +0 -1
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { l as RuntimeHooks, o as RuntimeHookEvent, r as RuntimeDecisionPoint } from "./runtime-hooks-
|
|
2
|
-
import { N as AgentCandidateOutputArtifactPort, g as AgentCandidateArtifactPort, l as AgentCandidateWorkspaceArchiveLimits, n as AgentCandidateWorkspaceTree } from "./workspace-streams-
|
|
3
|
-
import { a as ProfileMaterializationContract } from "./profile-materialization-
|
|
4
|
-
import { n as AnalystRegistryLike } from "./types-
|
|
1
|
+
import { l as RuntimeHooks, o as RuntimeHookEvent, r as RuntimeDecisionPoint } from "./runtime-hooks-ZQqPw-0g.js";
|
|
2
|
+
import { N as AgentCandidateOutputArtifactPort, g as AgentCandidateArtifactPort, l as AgentCandidateWorkspaceArchiveLimits, n as AgentCandidateWorkspaceTree } from "./workspace-streams-Dq2Fzk3c.js";
|
|
3
|
+
import { a as ProfileMaterializationContract } from "./profile-materialization-BRY22Oh8.js";
|
|
4
|
+
import { n as AnalystRegistryLike } from "./types-qsqfyQoY.js";
|
|
5
5
|
import { AgentCandidateArtifactRef, AgentCandidateWorkspaceManifestMaterial, AgentCandidateWorkspaceSnapshotEvidence, AgentExactRunControlRef, AgentInteractiveSession, AgentInteractiveSessionControlClaim, AgentInteractiveSessionPromptAcknowledgement, AgentInteractiveSessionPromptCommand, AgentInteractiveSessionRef, AgentInteractiveSessionStart, AgentNativeContextContinuationOptions, AgentNativeContextContinuationResult, AgentProfile, AgentProfile as AgentProfile$2, AgentProfile as AgentProfile$3, AgentProfileDiff, AgentProfileMcpServer, AgentProfilePrompt, AgentProfileSecurityPolicy, AgentSessionStatus, AgentTurnResult, ChildTaskEvent, ContextTransferReceipt, ContextTransferRequest, HarnessType, InputPart, InteractionAcknowledgement, InteractionRequest, InteractionResponseCommand, NativeContextBoundaryProof, NativeContextContinuationRequest, NativeContextContinuationTurn, ReasoningEffort, RequestedInteractions, RuntimeEventEnvelope, Sha256Digest, StreamEvent, TokenUsage, WorkspaceCheckpointRef, WorkspaceCheckpointRequest } from "@tangle-network/agent-interface";
|
|
6
6
|
import { AgentEvalError, AgentEvalError as AgentEvalError$1, AgentEvalErrorCode, AgentProfile as AgentProfile$1, AnalystFinding, AnalystFinding as AnalystFinding$1, AnalystFinding as AnalystFinding$2, AnalystRunInputs, ChatClient, ConfigError, ControlBudget, ControlDecision, ControlEvalResult, ControlRunResult, ControlStep, CustomTokenPricing, DataAcquisitionPlan, DefaultVerdict, DefaultVerdict as DefaultVerdict$1, DefaultVerdict as DefaultVerdict$2, DetectorSignal, HarnessType as HarnessType$1, JudgeError, KnowledgeReadinessReport, KnowledgeRequirement, MaximumCharge, NotFoundError, PairedPromotionDecision, ProposalFinding, RankTestMethod, RegistryRunOpts, RunRecord, StreamingDetector, ToolSpan, TraceAnalysisEngine, TraceAnalysisStore, TraceStore, UserQuestion, ValidationError, buildTrajectory, computeFindingId as computeFindingId$1, makeFinding as makeFinding$1 } from "@tangle-network/agent-eval";
|
|
7
7
|
import { AgentRunOutcome } from "@tangle-network/sandbox/runtime";
|
|
8
8
|
import { BackendType, CreateRequestOptions, CreateSandboxOptions, CreateSandboxOptions as CreateSandboxOptions$1, PromptOptions, SandboxEvent, SandboxEvent as SandboxEvent$1, SandboxInstance, SandboxInstance as SandboxInstance$1, SandboxResources } from "@tangle-network/sandbox";
|
|
9
|
+
import { z } from "zod";
|
|
9
10
|
import { watch } from "node:fs";
|
|
10
11
|
import { ChildProcess } from "node:child_process";
|
|
11
12
|
import { HarnessId, WorkspacePlanReceipt } from "@tangle-network/agent-profile-materialize";
|
|
@@ -16,7 +17,6 @@ import { EvaluationClaim, SealedExperiment } from "@tangle-network/agent-eval/ex
|
|
|
16
17
|
import { stuckLoopView, toolWasteView } from "@tangle-network/agent-eval/pipelines";
|
|
17
18
|
import { AgentEnvironment, AgentEnvironment as AgentEnvironment$1, AgentEnvironmentCapabilities, AgentEnvironmentCapabilities as AgentEnvironmentCapabilities$1, AgentEnvironmentEvent, AgentEnvironmentEvent as AgentEnvironmentEvent$1, AgentEnvironmentProvider, AgentEnvironmentProvider as AgentEnvironmentProvider$1, AgentEnvironmentQuery, AgentEnvironmentStatus, AgentEnvironmentSummary, AgentSession, AgentSessionRef, AgentSessionStatus as AgentSessionStatus$1, AgentTurnInput, AgentTurnInput as AgentTurnInput$1, AgentTurnResult as AgentTurnResult$1, AgentTurnResult as AgentTurnResult$2, CheckpointRef, CheckpointRequest, CreateAgentEnvironmentInput, CreateAgentEnvironmentInput as CreateAgentEnvironmentInput$1, ExecRequest, ExecResult, ForkRequest, PlacementInfo, ResourceRequest, WorkspaceRequest } from "@tangle-network/agent-interface/environment-provider";
|
|
18
19
|
import { CodemodeExecuteOptions, CodemodeJsonSchema, CodemodeResult, CodemodeSandboxOptions } from "@earendil-works/pi-codemode";
|
|
19
|
-
//#region src/runtime/retained-run-types.d.ts
|
|
20
20
|
/** Cursor plus runtime sequence needed to continue one ordered replay. @stable */
|
|
21
21
|
interface RetainedRunReplayPoint {
|
|
22
22
|
readonly cursor: string;
|
|
@@ -300,8 +300,6 @@ type RecoverRetainedRunResult = {
|
|
|
300
300
|
readonly outcome: 'unverifiable';
|
|
301
301
|
readonly environment: AgentEnvironment;
|
|
302
302
|
};
|
|
303
|
-
//#endregion
|
|
304
|
-
//#region src/runtime-usage.d.ts
|
|
305
303
|
/** Observed subtotals, with missing measurements kept separate from measured zeroes. */
|
|
306
304
|
interface RuntimeUsageTotals {
|
|
307
305
|
/** Observed input tokens across normalized per-call events. */
|
|
@@ -319,8 +317,6 @@ interface RuntimeUsageTotals {
|
|
|
319
317
|
/** Sum of reported external estimates; never included in `costUsd` or proof of complete cost. */
|
|
320
318
|
estimatedCostUsd?: number;
|
|
321
319
|
}
|
|
322
|
-
//#endregion
|
|
323
|
-
//#region src/runtime-run.d.ts
|
|
324
320
|
/** @stable */
|
|
325
321
|
type RuntimeRunStatus = 'running' | 'completed' | 'failed' | 'cancelled';
|
|
326
322
|
/** @stable */
|
|
@@ -421,8 +417,6 @@ interface RuntimeRunHandle {
|
|
|
421
417
|
* @stable
|
|
422
418
|
*/
|
|
423
419
|
declare function startRuntimeRun(options: RuntimeRunOptions): RuntimeRunHandle;
|
|
424
|
-
//#endregion
|
|
425
|
-
//#region src/runtime/types.d.ts
|
|
426
420
|
/** @stable */
|
|
427
421
|
interface ValidationCtx {
|
|
428
422
|
/** Iteration index this output came from (0-based). */
|
|
@@ -1068,8 +1062,6 @@ interface ExecCtx {
|
|
|
1068
1062
|
*/
|
|
1069
1063
|
parentSpanId?: string;
|
|
1070
1064
|
}
|
|
1071
|
-
//#endregion
|
|
1072
|
-
//#region src/runtime/supervise/contracts/execution-events.d.ts
|
|
1073
1065
|
/**
|
|
1074
1066
|
* Normalized usage event — the single channel every executor reports through, so the
|
|
1075
1067
|
* conserved pool meters all runtimes identically. `tokens` carries `LoopTokenUsage`'s
|
|
@@ -1220,8 +1212,6 @@ type UsageEvent = {
|
|
|
1220
1212
|
} | {
|
|
1221
1213
|
kind: 'iteration';
|
|
1222
1214
|
};
|
|
1223
|
-
//#endregion
|
|
1224
|
-
//#region src/runtime/provider-workspace-retention.d.ts
|
|
1225
1215
|
/** The caller-owned boundary used to retain an executable provider workspace. */
|
|
1226
1216
|
interface ProviderWorkspaceRetentionPort {
|
|
1227
1217
|
/** Maximum wall-clock time Runtime gives queueing, capture, and verification. */
|
|
@@ -1462,8 +1452,6 @@ interface ProviderWorkspaceCaptureReceipt {
|
|
|
1462
1452
|
readonly coverageComplete: boolean;
|
|
1463
1453
|
readonly incompleteReason?: string;
|
|
1464
1454
|
}
|
|
1465
|
-
//#endregion
|
|
1466
|
-
//#region src/runtime/retained-harness-transcript.d.ts
|
|
1467
1455
|
/** Inventory and source identity only; native bytes remain in the original workspace archive. */
|
|
1468
1456
|
interface RetainedHarnessTranscriptDescriptor {
|
|
1469
1457
|
readonly kind: 'retained-harness-transcript';
|
|
@@ -1553,8 +1541,6 @@ declare function resolveHarnessTranscriptCapture(capture: HarnessTranscriptCaptu
|
|
|
1553
1541
|
declare function resolveHarnessTranscriptCapture(capture: HarnessTranscriptCapture, options?: HarnessTranscriptReadOptions & {
|
|
1554
1542
|
content?: true;
|
|
1555
1543
|
}): Promise<HarnessTranscriptArtifact | undefined>;
|
|
1556
|
-
//#endregion
|
|
1557
|
-
//#region src/runtime/harness-transcript.d.ts
|
|
1558
1544
|
declare const HARNESS_TRANSCRIPT_SCHEMA_VERSION: 1;
|
|
1559
1545
|
interface HarnessTranscriptFile {
|
|
1560
1546
|
readonly path: string;
|
|
@@ -1679,8 +1665,6 @@ declare function harnessTranscriptArtifact(evidence: HarnessTranscriptEvidence,
|
|
|
1679
1665
|
declare function harnessTranscriptArtifact(evidence: HarnessTranscriptEvidence, blobs: Pick<ResultBlobStore, 'get'>, options?: HarnessTranscriptReadOptions & {
|
|
1680
1666
|
content?: true;
|
|
1681
1667
|
}): Promise<HarnessTranscriptArtifact | undefined>;
|
|
1682
|
-
//#endregion
|
|
1683
|
-
//#region src/runtime/retained-interactive-types.d.ts
|
|
1684
1668
|
/** Environment and exact AgentProfile used to start one native coding-agent process. @stable */
|
|
1685
1669
|
type RetainedInteractiveEnvironmentInput = Omit<CreateAgentEnvironmentInput, 'idempotencyKey' | 'profile' | 'signal'> & {
|
|
1686
1670
|
readonly idempotencyKey: string;
|
|
@@ -1727,8 +1711,6 @@ interface RetainedInteractiveRunHandle extends AgentInteractiveSession {
|
|
|
1727
1711
|
signal?: AbortSignal;
|
|
1728
1712
|
}): Promise<AgentInteractiveSessionPromptAcknowledgement>;
|
|
1729
1713
|
}
|
|
1730
|
-
//#endregion
|
|
1731
|
-
//#region src/runtime/supervise/progress.d.ts
|
|
1732
1714
|
/** How long a worker may produce no metered activity before a `progress()` read calls it stalled.
|
|
1733
1715
|
* Deliberately generous: a coding harness routinely spends minutes inside one tool call, and a
|
|
1734
1716
|
* false stall that provokes a steer is worse than a late one. */
|
|
@@ -1858,8 +1840,6 @@ interface ScopeProgressInput {
|
|
|
1858
1840
|
/** Fold the scope-derived facts and the executor's optional enrichment into one read. Pure: the
|
|
1859
1841
|
* caller supplies `now`, so a test can observe a stall without waiting for one. */
|
|
1860
1842
|
declare function readWorkerProgress(scope: ScopeProgressInput, executor: ExecutorProgress | undefined, now: number, stallAfterMs?: number): WorkerProgress;
|
|
1861
|
-
//#endregion
|
|
1862
|
-
//#region src/runtime/supervise/trace-source.d.ts
|
|
1863
1843
|
interface ToolStepInput {
|
|
1864
1844
|
readonly toolName: string;
|
|
1865
1845
|
readonly args: unknown;
|
|
@@ -1906,8 +1886,6 @@ declare function createPushTraceSource(opts?: {
|
|
|
1906
1886
|
interface SessionMessageLike {
|
|
1907
1887
|
readonly parts?: ReadonlyArray<unknown>;
|
|
1908
1888
|
}
|
|
1909
|
-
//#endregion
|
|
1910
|
-
//#region src/runtime/supervise/contracts/executor-port.d.ts
|
|
1911
1889
|
/**
|
|
1912
1890
|
* The leaf runtime — ONE open interface, not a closed union. `execute` returns a
|
|
1913
1891
|
* `Promise<ExecutorResult>` for one-shot executors OR an `AsyncIterable<UsageEvent>` for
|
|
@@ -2014,7 +1992,7 @@ interface Executor<Out> {
|
|
|
2014
1992
|
*
|
|
2015
1993
|
* `teardown` keeps a pending retained execution's environment alive by construction: the paid
|
|
2016
1994
|
* work inside it is what a resumed run reconciles. Once the root has reached its own terminal
|
|
2017
|
-
* outcome nothing will, and the environment is a leak —
|
|
1995
|
+
* outcome nothing will, and the environment is a leak — four settled runs
|
|
2018
1996
|
* held 18 of a 60-slot fleet for 19 to 37 hours this way. The supervisor calls this at root
|
|
2019
1997
|
* settlement, never on a resumable interruption (an explicit cancellation, a process crash), and
|
|
2020
1998
|
* journals one `environment-teardown` receipt per environment returned. `signal` bounds the
|
|
@@ -2266,8 +2244,6 @@ interface EnvironmentTeardownReceipt {
|
|
|
2266
2244
|
/** The runtime tag of a `Executor` impl. Open by intent: custom runtimes use their own string name.
|
|
2267
2245
|
* External executors can register additional runtime strings without widening this type. */
|
|
2268
2246
|
type Runtime = 'router' | 'inline' | 'sandbox' | 'cli' | (string & {});
|
|
2269
|
-
//#endregion
|
|
2270
|
-
//#region src/runtime/supervise/contracts/execution-identity.d.ts
|
|
2271
2247
|
/** Caller-owned identity beyond the exact profile/task bytes Scope can compute itself. */
|
|
2272
2248
|
interface AgentExecutionRef {
|
|
2273
2249
|
readonly candidateDigest?: Sha256Digest;
|
|
@@ -2390,8 +2366,6 @@ interface ExecutorNodeContext {
|
|
|
2390
2366
|
readonly attemptId: string;
|
|
2391
2367
|
readonly identity?: NodeExecutionIdentity;
|
|
2392
2368
|
}
|
|
2393
|
-
//#endregion
|
|
2394
|
-
//#region src/runtime/supervise/contracts/executor-construction.d.ts
|
|
2395
2369
|
/**
|
|
2396
2370
|
* `AgentProfile` is the complete execution authority. Scope parses and snapshots it before calling
|
|
2397
2371
|
* any registry, including one that resolves caller-supplied factories. The default registry
|
|
@@ -2482,8 +2456,6 @@ interface ExecutorRegistry {
|
|
|
2482
2456
|
error: string;
|
|
2483
2457
|
};
|
|
2484
2458
|
}
|
|
2485
|
-
//#endregion
|
|
2486
|
-
//#region src/errors.d.ts
|
|
2487
2459
|
/**
|
|
2488
2460
|
*
|
|
2489
2461
|
* A backend transport call (HTTP, gRPC, sidecar IPC) failed with a non-success
|
|
@@ -2525,8 +2497,6 @@ declare class BackendTransportError extends AgentEvalError {
|
|
|
2525
2497
|
providerDispatch?: 'not_started';
|
|
2526
2498
|
});
|
|
2527
2499
|
}
|
|
2528
|
-
//#endregion
|
|
2529
|
-
//#region src/redact.d.ts
|
|
2530
2500
|
/**
|
|
2531
2501
|
* Redaction for values that may leave the Runtime process. The built-in
|
|
2532
2502
|
* redactor is agent-eval's redaction core (`@tangle-network/agent-eval/traces`,
|
|
@@ -2549,12 +2519,8 @@ type Redactor = (value: unknown) => unknown;
|
|
|
2549
2519
|
* on customer input and never mutates it.
|
|
2550
2520
|
*/
|
|
2551
2521
|
declare function defaultRedactor(value: unknown): unknown;
|
|
2552
|
-
//#endregion
|
|
2553
|
-
//#region src/durable/content-address.d.ts
|
|
2554
2522
|
/** Stable content address shared by result and trace artifacts. */
|
|
2555
2523
|
declare function contentAddress(artifact: unknown): string;
|
|
2556
|
-
//#endregion
|
|
2557
|
-
//#region src/durable/in-memory-spawn-stores.d.ts
|
|
2558
2524
|
/**
|
|
2559
2525
|
* In-memory `ResultBlobStore`. Content-addressed: `put` verifies the supplied
|
|
2560
2526
|
* `outRef` matches the artifact's hash so a stale/forged ref fails loud rather than
|
|
@@ -2582,8 +2548,6 @@ declare class InMemorySpawnJournal implements SpawnJournal {
|
|
|
2582
2548
|
beginTree(root: NodeId, at: string): Promise<void>;
|
|
2583
2549
|
appendEvent(root: NodeId, ev: SpawnEvent): Promise<void>;
|
|
2584
2550
|
}
|
|
2585
|
-
//#endregion
|
|
2586
|
-
//#region src/durable/spawn-journal/journal-store.d.ts
|
|
2587
2551
|
/**
|
|
2588
2552
|
* JSONL on disk. One line per record: the first record is `begin`, subsequent records
|
|
2589
2553
|
* are `event` or atomic `events` envelopes. `loadTree` replays the whole file,
|
|
@@ -2608,8 +2572,6 @@ declare class FileSpawnJournal implements SpawnJournal {
|
|
|
2608
2572
|
private serializeAppend;
|
|
2609
2573
|
private writeRecord;
|
|
2610
2574
|
}
|
|
2611
|
-
//#endregion
|
|
2612
|
-
//#region src/durable/spawn-journal/replay.d.ts
|
|
2613
2575
|
/**
|
|
2614
2576
|
* Re-feed a journaled spawn tree in strict `seq` order, rehydrating each settled
|
|
2615
2577
|
* child's `out` from the blob store by `outRef`, and return the `Settled[]` exactly
|
|
@@ -2624,8 +2586,6 @@ declare class FileSpawnJournal implements SpawnJournal {
|
|
|
2624
2586
|
* @stable
|
|
2625
2587
|
*/
|
|
2626
2588
|
declare function replaySpawnTree(journal: SpawnJournal, blobs: ResultBlobStore, root: NodeId): Promise<Settled<unknown>[]>;
|
|
2627
|
-
//#endregion
|
|
2628
|
-
//#region src/durable/spawn-journal/result-blob-store.d.ts
|
|
2629
2589
|
/**
|
|
2630
2590
|
* FS `ResultBlobStore`. One JSON file per artifact under `dir`, named by a
|
|
2631
2591
|
* filesystem-safe encoding of the `outRef` (`sha256:<hex>` → `sha256-<hex>.json`).
|
|
@@ -2641,8 +2601,6 @@ declare class FileResultBlobStore implements ResultBlobStore {
|
|
|
2641
2601
|
get(outRef: string): Promise<unknown | undefined>;
|
|
2642
2602
|
private blobPath;
|
|
2643
2603
|
}
|
|
2644
|
-
//#endregion
|
|
2645
|
-
//#region src/durable/spawn-journal/spawn-forest.d.ts
|
|
2646
2604
|
/** One journal tree in a recursively loaded supervision forest. */
|
|
2647
2605
|
interface SpawnForestTree {
|
|
2648
2606
|
readonly root: NodeId;
|
|
@@ -2703,8 +2661,6 @@ interface SpawnForest {
|
|
|
2703
2661
|
* change the result already observed.
|
|
2704
2662
|
*/
|
|
2705
2663
|
declare function loadSpawnForest(journal: SpawnJournal, root: NodeId): Promise<SpawnForest>;
|
|
2706
|
-
//#endregion
|
|
2707
|
-
//#region src/durable/spawn-journal/tree-view.d.ts
|
|
2708
2664
|
/**
|
|
2709
2665
|
* Materialize a recorded `TreeView` from a journaled event list for inspection. Folds
|
|
2710
2666
|
* `spawned`/`settled`/`cancelled` into a per-node snapshot in `seq` order, then adds each
|
|
@@ -2712,8 +2668,6 @@ declare function loadSpawnForest(journal: SpawnJournal, root: NodeId): Promise<S
|
|
|
2712
2668
|
* matches the recorded cursor. It does not recover live executors or driver state after restart.
|
|
2713
2669
|
*/
|
|
2714
2670
|
declare function materializeTreeView(events: SpawnEvent[]): TreeView;
|
|
2715
|
-
//#endregion
|
|
2716
|
-
//#region src/durable/sql-adapter.d.ts
|
|
2717
2671
|
/**
|
|
2718
2672
|
* SQL seam for Runtime's shared-SQL run persistence (`openSqlRunStore`,
|
|
2719
2673
|
* `createFencedSqlRunContext`). Callers wire a `SqlAdapter` against the driver
|
|
@@ -2737,8 +2691,6 @@ interface SqlAdapter {
|
|
|
2737
2691
|
/** Execute a read statement (SELECT). Returns rows as plain objects. */
|
|
2738
2692
|
query<TRow = Record<string, unknown>>(sql: string, params?: readonly unknown[]): Promise<TRow[]>;
|
|
2739
2693
|
}
|
|
2740
|
-
//#endregion
|
|
2741
|
-
//#region src/durable/sql-run-store.d.ts
|
|
2742
2694
|
/** @internal The SQL run context owns the payload schema; this store owns publication. */
|
|
2743
2695
|
interface SqlRunStoreOptions {
|
|
2744
2696
|
readonly tablePrefix?: string;
|
|
@@ -2775,8 +2727,6 @@ declare function openSqlRunStore<Payload>(db: SqlAdapter, runId: string, options
|
|
|
2775
2727
|
read(): Promise<readonly Payload[]>;
|
|
2776
2728
|
acquire(signal?: AbortSignal): Promise<SqlRunLease<Payload>>;
|
|
2777
2729
|
}>;
|
|
2778
|
-
//#endregion
|
|
2779
|
-
//#region src/mcp/codex-execution-policy.d.ts
|
|
2780
2730
|
/** Isolation settings asserted before a reproducible Codex run is allowed to start. */
|
|
2781
2731
|
interface CodexExecutionPolicy {
|
|
2782
2732
|
sessionPersistence: 'ephemeral';
|
|
@@ -2806,8 +2756,6 @@ interface CodexExecutionPolicy {
|
|
|
2806
2756
|
callerReadDeniedPaths: 'enforced';
|
|
2807
2757
|
containerSockets: false;
|
|
2808
2758
|
}
|
|
2809
|
-
//#endregion
|
|
2810
|
-
//#region src/mcp/codex-token-usage.d.ts
|
|
2811
2759
|
/**
|
|
2812
2760
|
* Exact aggregate usage emitted by Codex's terminal `turn.completed` JSONL event.
|
|
2813
2761
|
*
|
|
@@ -2823,8 +2771,6 @@ interface CodexTokenUsage {
|
|
|
2823
2771
|
reasoningOutputTokens: number;
|
|
2824
2772
|
cacheWriteInputTokens?: number;
|
|
2825
2773
|
}
|
|
2826
|
-
//#endregion
|
|
2827
|
-
//#region src/mcp/local-harness-invocation.d.ts
|
|
2828
2774
|
/**
|
|
2829
2775
|
* Local coding harness available inside the sandbox — a narrowing of the shared `HarnessType`
|
|
2830
2776
|
* vocabulary, NOT a private spelling of it. The harness id is `claude-code`; `claude` is the
|
|
@@ -2836,8 +2782,6 @@ type LocalHarness = Extract<HarnessType, 'claude-code' | 'codex' | 'kimi-code' |
|
|
|
2836
2782
|
/** Every local harness, in table order — the one list `AGENT_RUNTIME_LOCAL_HARNESSES` and any
|
|
2837
2783
|
* other harness enumeration reads, so adding a row above is the only edit a new harness needs. */
|
|
2838
2784
|
declare const LOCAL_HARNESSES: ReadonlyArray<LocalHarness>;
|
|
2839
|
-
//#endregion
|
|
2840
|
-
//#region src/mcp/local-harness-process.d.ts
|
|
2841
2785
|
/** @experimental */
|
|
2842
2786
|
interface RunLocalHarnessOptions {
|
|
2843
2787
|
harness: LocalHarness;
|
|
@@ -2936,8 +2880,6 @@ interface LocalHarnessResult {
|
|
|
2936
2880
|
* @experimental
|
|
2937
2881
|
*/
|
|
2938
2882
|
declare function runLocalHarness(options: RunLocalHarnessOptions): Promise<LocalHarnessResult>;
|
|
2939
|
-
//#endregion
|
|
2940
|
-
//#region src/mcp/codex-execution-evidence.d.ts
|
|
2941
2883
|
/** Zero-model-call evidence for the exact Codex process about to run. */
|
|
2942
2884
|
interface CodexExecutionEvidence {
|
|
2943
2885
|
cliVersion: string;
|
|
@@ -2953,8 +2895,6 @@ interface CodexExecutionEvidence {
|
|
|
2953
2895
|
readDeniedPathCount: number;
|
|
2954
2896
|
policy: CodexExecutionPolicy;
|
|
2955
2897
|
}
|
|
2956
|
-
//#endregion
|
|
2957
|
-
//#region src/mcp/tools/coordination-analysts.d.ts
|
|
2958
2898
|
/**
|
|
2959
2899
|
* What one analyst lens may return.
|
|
2960
2900
|
*
|
|
@@ -3136,8 +3076,6 @@ interface AnalystAssignmentRecord {
|
|
|
3136
3076
|
readonly directive?: string;
|
|
3137
3077
|
readonly to?: string;
|
|
3138
3078
|
}
|
|
3139
|
-
//#endregion
|
|
3140
|
-
//#region src/runtime/supervise/detector-monitor.d.ts
|
|
3141
3079
|
interface WatchTraceOptions {
|
|
3142
3080
|
/** The detectors to run online. Defaults to a stuck-loop + error-streak panel. */
|
|
3143
3081
|
readonly detectors?: ReadonlyArray<StreamingDetector>;
|
|
@@ -3156,8 +3094,6 @@ declare function defaultToolDetectors(): StreamingDetector[];
|
|
|
3156
3094
|
/** Subscribe to a `TraceSource` and run the streaming detectors over its live spans. Returns an
|
|
3157
3095
|
* unsubscribe. A defensive `argHash` failure (circular args) never throws out of the side-channel. */
|
|
3158
3096
|
declare function watchTrace(source: TraceSource, opts?: WatchTraceOptions): () => void;
|
|
3159
|
-
//#endregion
|
|
3160
|
-
//#region src/runtime/supervise/event-bus.d.ts
|
|
3161
3097
|
/**
|
|
3162
3098
|
*
|
|
3163
3099
|
* The child→parent message bus: the ONE pipe carrying every message a worker, sub-driver, or
|
|
@@ -3242,8 +3178,6 @@ interface EventBus<E extends BusEvent> {
|
|
|
3242
3178
|
/** Create the child→parent coordination bus: one typed pipe for settled outputs, questions, and analyst findings, with a priority-ordered pull queue and a pass-through subscribe lane.
|
|
3243
3179
|
* @experimental In-process queue; durability is a transport swap that does not exist yet. */
|
|
3244
3180
|
declare function createEventBus<E extends BusEvent>(now?: () => number): EventBus<E>;
|
|
3245
|
-
//#endregion
|
|
3246
|
-
//#region src/mcp/protocol.d.ts
|
|
3247
3181
|
/**
|
|
3248
3182
|
* Shared wire contracts for the in-process stdio MCP servers.
|
|
3249
3183
|
*
|
|
@@ -3300,8 +3234,6 @@ interface JsonRpcResponse {
|
|
|
3300
3234
|
data?: unknown;
|
|
3301
3235
|
};
|
|
3302
3236
|
}
|
|
3303
|
-
//#endregion
|
|
3304
|
-
//#region src/runtime/supervise/peer-mail.d.ts
|
|
3305
3237
|
/** One admitted peer message. `threadId` is the root mail's id; `depth` is 0 for a root mail and
|
|
3306
3238
|
* one more than its parent for a reply, which is what the reply-depth cap counts. */
|
|
3307
3239
|
interface PeerMailEnvelope {
|
|
@@ -3436,8 +3368,6 @@ declare function createPeerMailbox(opts: PeerMailboxOptions): PeerMailbox;
|
|
|
3436
3368
|
* authority rule, because the receiving model reads them as part of the channel's contract.
|
|
3437
3369
|
*/
|
|
3438
3370
|
declare function peerMailTools(mailbox: PeerMailbox, capabilityId: string): McpToolDescriptor[];
|
|
3439
|
-
//#endregion
|
|
3440
|
-
//#region src/mcp/tools/coordination-map-contracts.d.ts
|
|
3441
3371
|
/** What a map does when one of its items fails. See {@link MapOnSettleRoute.onItemFailure}. */
|
|
3442
3372
|
type MapItemFailurePolicy = 'all-or-refuse' | 'settled-subset';
|
|
3443
3373
|
/**
|
|
@@ -3507,8 +3437,6 @@ interface MapTraversalEvent {
|
|
|
3507
3437
|
readonly items?: number;
|
|
3508
3438
|
readonly reason?: string;
|
|
3509
3439
|
}
|
|
3510
|
-
//#endregion
|
|
3511
|
-
//#region src/mcp/tools/coordination-messages.d.ts
|
|
3512
3440
|
/** How a spawn CONTINUES a node's prior work: `'fresh'` starts a brand-new session (the default,
|
|
3513
3441
|
* and the only pre-continuity behavior); `'resume'` re-attaches to the node's most recent
|
|
3514
3442
|
* SETTLED worker — a NEW live worker is spawned whose spawn context carries the prior worker's
|
|
@@ -3579,8 +3507,6 @@ interface AuthorizedDownMessage {
|
|
|
3579
3507
|
}
|
|
3580
3508
|
/** Product decision over an exact continuation before it is durably recorded or delivered. */
|
|
3581
3509
|
type AuthorizeDownMessage = (input: DownMessageAuthorizationInput) => AuthorizedDownMessage;
|
|
3582
|
-
//#endregion
|
|
3583
|
-
//#region src/mcp/tools/coordination-questions.d.ts
|
|
3584
3510
|
type QuestionLevel = 'worker' | 'driver' | 'loop';
|
|
3585
3511
|
type QuestionUrgency = 'continue-without' | 'blocks-step' | 'blocks-run';
|
|
3586
3512
|
interface QuestionOption {
|
|
@@ -3666,8 +3592,6 @@ interface QuestionEscalationRecord {
|
|
|
3666
3592
|
readonly reason?: string;
|
|
3667
3593
|
readonly at: number;
|
|
3668
3594
|
}
|
|
3669
|
-
//#endregion
|
|
3670
|
-
//#region src/mcp/tools/coordination-route-contracts.d.ts
|
|
3671
3595
|
/** A JSON scalar: what a route condition compares. A numeric or stateful rule is a field the
|
|
3672
3596
|
* settling node writes (a boolean or a counter), never an expression evaluated here. */
|
|
3673
3597
|
type JsonScalar = string | number | boolean | null;
|
|
@@ -3856,8 +3780,6 @@ type RouteFlowEvent = {
|
|
|
3856
3780
|
readonly detail: string;
|
|
3857
3781
|
readonly result?: unknown;
|
|
3858
3782
|
};
|
|
3859
|
-
//#endregion
|
|
3860
|
-
//#region src/mcp/tools/coordination-events.d.ts
|
|
3861
3783
|
/** Every message on the one typed pipe. UP (child→parent): question / settled / finding — queued for
|
|
3862
3784
|
* the driver to `pull`. An `instruction` is the pre-delivery authorization receipt and is retained
|
|
3863
3785
|
* as evidence. DOWN (parent→child): steer / answer — record-only (history + subscribers), routed
|
|
@@ -4081,8 +4003,6 @@ interface ToolOutcomeEvent {
|
|
|
4081
4003
|
readonly error?: string;
|
|
4082
4004
|
readonly elapsedMs: number;
|
|
4083
4005
|
}
|
|
4084
|
-
//#endregion
|
|
4085
|
-
//#region src/mcp/worktree.d.ts
|
|
4086
4006
|
/** Pluggable git runner (sync) — replaceable in tests. */
|
|
4087
4007
|
type GitRunner = (args: ReadonlyArray<string>, opts: {
|
|
4088
4008
|
cwd: string;
|
|
@@ -4091,8 +4011,6 @@ type GitRunner = (args: ReadonlyArray<string>, opts: {
|
|
|
4091
4011
|
stderr: string;
|
|
4092
4012
|
exitCode: number;
|
|
4093
4013
|
};
|
|
4094
|
-
//#endregion
|
|
4095
|
-
//#region src/mcp/worktree-harness.d.ts
|
|
4096
4014
|
/** Outcome of one verification command run in the worktree (test or typecheck). */
|
|
4097
4015
|
interface WorktreeCommandResult {
|
|
4098
4016
|
/** The shell command line that was run. */
|
|
@@ -4198,8 +4116,6 @@ interface InPlaceHarnessResult {
|
|
|
4198
4116
|
/** The harness subprocess outcome. */
|
|
4199
4117
|
harness: WorktreeHarnessResult['harness'];
|
|
4200
4118
|
}
|
|
4201
|
-
//#endregion
|
|
4202
|
-
//#region src/sanitize.d.ts
|
|
4203
4119
|
/** @stable */
|
|
4204
4120
|
interface RuntimeTelemetryOptions {
|
|
4205
4121
|
/**
|
|
@@ -4294,8 +4210,6 @@ declare function createRuntimeEventCollector<TState = unknown, TAction = unknown
|
|
|
4294
4210
|
* @stable
|
|
4295
4211
|
*/
|
|
4296
4212
|
declare function createRuntimeStreamEventCollector(options?: RuntimeTelemetryOptions): RuntimeStreamEventCollector;
|
|
4297
|
-
//#endregion
|
|
4298
|
-
//#region src/otel-export.d.ts
|
|
4299
4213
|
interface OtelExportConfig {
|
|
4300
4214
|
/** OTLP endpoint. Reads OTEL_EXPORTER_OTLP_ENDPOINT env by default. */
|
|
4301
4215
|
endpoint?: string;
|
|
@@ -4426,8 +4340,6 @@ declare function padSpanId(id: string): string;
|
|
|
4426
4340
|
* UUID-form, preserving the pre-strict-W3C wire id), everything else is derived with
|
|
4427
4341
|
* `deriveHexId(id, 16)` so every process derives the SAME wire id for the same run. */
|
|
4428
4342
|
declare function padTraceId(id: string): string;
|
|
4429
|
-
//#endregion
|
|
4430
|
-
//#region src/runtime/sandbox-evidence-retention.d.ts
|
|
4431
4343
|
/** One durable capture before a Sandbox box is removed. */
|
|
4432
4344
|
interface SandboxEvidenceRetentionPort {
|
|
4433
4345
|
readonly timeoutMs: number;
|
|
@@ -4464,8 +4376,6 @@ interface SandboxEvidenceReceipt {
|
|
|
4464
4376
|
readonly coverageComplete: boolean;
|
|
4465
4377
|
readonly incompleteReason?: string;
|
|
4466
4378
|
}
|
|
4467
|
-
//#endregion
|
|
4468
|
-
//#region src/runtime/agent-rounds.d.ts
|
|
4469
4379
|
/** @stable */
|
|
4470
4380
|
interface RunAgentRoundsOptions<Task, Output, Decision> {
|
|
4471
4381
|
driver: Driver<Task, Output, Decision>;
|
|
@@ -4547,8 +4457,6 @@ interface RunAgentRoundsOptions<Task, Output, Decision> {
|
|
|
4547
4457
|
* @stable
|
|
4548
4458
|
*/
|
|
4549
4459
|
declare function runAgentRounds<Task, Output, Decision>(options: RunAgentRoundsOptions<Task, Output, Decision>): Promise<LoopResult<Task, Output, Decision>>;
|
|
4550
|
-
//#endregion
|
|
4551
|
-
//#region src/runtime/waterfall.d.ts
|
|
4552
4460
|
interface WaterfallSpan {
|
|
4553
4461
|
id: string;
|
|
4554
4462
|
/** The spawn label (`shot:0`, `analyst:1`, a nested agent's label) — the row name. */
|
|
@@ -4606,8 +4514,6 @@ interface WaterfallCollector {
|
|
|
4606
4514
|
}
|
|
4607
4515
|
/** Build a `WaterfallCollector` that records agent spans and renders them as an ASCII timeline. */
|
|
4608
4516
|
declare function createWaterfallCollector(): WaterfallCollector;
|
|
4609
|
-
//#endregion
|
|
4610
|
-
//#region src/runtime/anytime.d.ts
|
|
4611
4517
|
interface AnytimeTaskCurve {
|
|
4612
4518
|
taskId: string;
|
|
4613
4519
|
strategy: string;
|
|
@@ -4683,8 +4589,6 @@ declare function anytimeReport(spans: WaterfallSpan[], opts?: {
|
|
|
4683
4589
|
}): AnytimeReport;
|
|
4684
4590
|
/** One row per (strategy, satisficing target): the shareable time-to-satisfactory table. */
|
|
4685
4591
|
declare function renderAnytimeTable(report: AnytimeReport): string;
|
|
4686
|
-
//#endregion
|
|
4687
|
-
//#region src/runtime/benchmark-report.d.ts
|
|
4688
4592
|
/** Pull the headline score in [0,1] from a record. Default: the held-out split, else the search split,
|
|
4689
4593
|
* else a `composite`/`passed`/`score` entry in the raw bag. Override to score a domain differently. */
|
|
4690
4594
|
type ScoreOf = (record: RunRecord) => number | undefined;
|
|
@@ -4818,8 +4722,6 @@ declare function renderLeaderboardSvg(report: Leaderboard): string;
|
|
|
4818
4722
|
/** Render a self-contained HTML leaderboard page (the hosted surface): the SVG charts + the full Markdown
|
|
4819
4723
|
* matrix as a table. Single file, no assets, opens in any browser. */
|
|
4820
4724
|
declare function renderLeaderboardHtml(report: Leaderboard): string;
|
|
4821
|
-
//#endregion
|
|
4822
|
-
//#region src/runtime/code-mode.d.ts
|
|
4823
4725
|
type CodeModeResult = CodemodeResult;
|
|
4824
4726
|
type CodeModeStore = NonNullable<CodemodeExecuteOptions['store']>;
|
|
4825
4727
|
interface CodeModeToolContext {
|
|
@@ -4884,8 +4786,6 @@ interface CodeModeToolset {
|
|
|
4884
4786
|
* avoid silently losing store writes; concurrency within a program is queued.
|
|
4885
4787
|
*/
|
|
4886
4788
|
declare function createCodeModeTools(granted: ReadonlyArray<CodeModeTool>, options?: CodeModeToolsOptions): CodeModeToolset;
|
|
4887
|
-
//#endregion
|
|
4888
|
-
//#region src/runtime/harness-usage.d.ts
|
|
4889
4789
|
/**
|
|
4890
4790
|
* One harness's own token-usage report for one turn, in the runtime's field names.
|
|
4891
4791
|
*
|
|
@@ -4926,8 +4826,6 @@ interface HarnessUsage {
|
|
|
4926
4826
|
* cannot read the numbers.
|
|
4927
4827
|
*/
|
|
4928
4828
|
declare function decodeHarnessUsage(event: SandboxEvent, harness?: HarnessType): HarnessUsage | undefined;
|
|
4929
|
-
//#endregion
|
|
4930
|
-
//#region src/runtime/codex-rollout-store.d.ts
|
|
4931
4829
|
/** Who wrote one rollout, exactly as its own `session_meta` states it. Nothing here is inferred. */
|
|
4932
4830
|
interface CodexRolloutIdentity {
|
|
4933
4831
|
/** The rollout's own thread id (`session_meta.payload.id`). */
|
|
@@ -5055,8 +4953,6 @@ declare function createCodexRolloutStoreReader(ref: CodexRolloutStoreRef): Codex
|
|
|
5055
4953
|
declare function addHarnessUsage(left: HarnessUsage, right: HarnessUsage): HarnessUsage;
|
|
5056
4954
|
/** True when a report states any spend at all. */
|
|
5057
4955
|
declare function harnessUsageIsEmpty(usage: HarnessUsage): boolean;
|
|
5058
|
-
//#endregion
|
|
5059
|
-
//#region src/runtime/completion.d.ts
|
|
5060
4956
|
/** Trace-derived evidence for a completion claim — an artifact (output) or a verifier metric,
|
|
5061
4957
|
* never the judge's own verdict. Mirrors the steer-firewall's provenance discipline. */
|
|
5062
4958
|
interface CompletionEvidence {
|
|
@@ -5112,8 +5008,13 @@ declare function deterministicCompletion<Task, Output>(check: (output: Output, h
|
|
|
5112
5008
|
passed: boolean;
|
|
5113
5009
|
reasons?: string;
|
|
5114
5010
|
}): CompletionAnalyst<Task, Output>;
|
|
5115
|
-
|
|
5116
|
-
|
|
5011
|
+
/** Kernel-owned leaf identity; never reconstructed from the worker's submitted output. */
|
|
5012
|
+
interface CompletionCheckContext {
|
|
5013
|
+
readonly profile: AgentProfile;
|
|
5014
|
+
readonly node: ExecutorNodeContext | undefined;
|
|
5015
|
+
readonly originalVerdict: DefaultVerdict$1 | undefined;
|
|
5016
|
+
readonly signal: AbortSignal;
|
|
5017
|
+
}
|
|
5117
5018
|
/**
|
|
5118
5019
|
* The deployable completion oracle passed to {@link gateOnDeliverable}: a `check` that
|
|
5119
5020
|
* decides DELIVERED (settles `valid` ⟺ it passes) plus an optional `describe` of what the spawn
|
|
@@ -5126,8 +5027,9 @@ interface DeliverableSpec<Out = unknown> {
|
|
|
5126
5027
|
/** The deployable check that decides DELIVERED. Return a `CheckVerdict` to report the items it
|
|
5127
5028
|
* read and one `FAIL <item> <where>: <reason>` line per failed item; `true` or a passing verdict
|
|
5128
5029
|
* delivers. Throw `CheckUnavailableError` (or anything) when the check could not run: that is
|
|
5129
|
-
* never a verdict on the result.
|
|
5130
|
-
|
|
5030
|
+
* never a verdict on the result. Only gateFactoryOnDeliverable supplies the trusted leaf
|
|
5031
|
+
* context; direct checks and graph finalizers receive none. */
|
|
5032
|
+
check: (out: Out, context?: CompletionCheckContext) => boolean | CheckVerdict | Promise<boolean | CheckVerdict>;
|
|
5131
5033
|
/** What the spawn was supposed to produce — surfaced in traces/reports. */
|
|
5132
5034
|
describe?: string;
|
|
5133
5035
|
/** Judge the run's current state with no submitted result. Runtime calls it when a manager's
|
|
@@ -5205,8 +5107,6 @@ declare function verdictFromJudgeScore(score: {
|
|
|
5205
5107
|
readonly notes: string;
|
|
5206
5108
|
readonly failed?: true;
|
|
5207
5109
|
}, threshold: number): CheckVerdict;
|
|
5208
|
-
//#endregion
|
|
5209
|
-
//#region src/profiles/coder.d.ts
|
|
5210
5110
|
/**
|
|
5211
5111
|
*
|
|
5212
5112
|
* `CoderTask` + `coderTaskToPrompt` — the per-task DATA + pure formatter for code-modification tasks
|
|
@@ -5240,8 +5140,6 @@ interface CoderTask {
|
|
|
5240
5140
|
/** Default 400. Hard cap; the gate hard-fails when exceeded. */
|
|
5241
5141
|
maxDiffLines?: number;
|
|
5242
5142
|
}
|
|
5243
|
-
//#endregion
|
|
5244
|
-
//#region src/mcp/detached-coder.d.ts
|
|
5245
5143
|
/** @experimental The structured coder result the sandbox-session path decodes + gates. */
|
|
5246
5144
|
interface CoderOutput {
|
|
5247
5145
|
/** Branch the agent wrote the patch on. */
|
|
@@ -5264,8 +5162,6 @@ interface CoderOutput {
|
|
|
5264
5162
|
/** Optional reviewer commentary surfaced by the agent. */
|
|
5265
5163
|
reviewerNotes?: string;
|
|
5266
5164
|
}
|
|
5267
|
-
//#endregion
|
|
5268
|
-
//#region src/mcp/delegation-store.d.ts
|
|
5269
5165
|
/** @stable */
|
|
5270
5166
|
interface DelegationStore {
|
|
5271
5167
|
/**
|
|
@@ -5340,8 +5236,6 @@ declare class FileDelegationStore implements DelegationStore {
|
|
|
5340
5236
|
private enqueueWrite;
|
|
5341
5237
|
private writeSnapshot;
|
|
5342
5238
|
}
|
|
5343
|
-
//#endregion
|
|
5344
|
-
//#region src/mcp/delegation-trace.d.ts
|
|
5345
5239
|
/**
|
|
5346
5240
|
* One span of a delegation's compact trace. Flat (parent linkage by id), all
|
|
5347
5241
|
* values JSON-safe scalars — `FileDelegationStore` round-trips records
|
|
@@ -5372,8 +5266,6 @@ interface DelegationTraceSpan {
|
|
|
5372
5266
|
* @experimental
|
|
5373
5267
|
*/
|
|
5374
5268
|
declare function composeLoopTraceEmitters(...emitters: ReadonlyArray<LoopTraceEmitter | undefined>): LoopTraceEmitter | undefined;
|
|
5375
|
-
//#endregion
|
|
5376
|
-
//#region src/mcp/trace-propagation.d.ts
|
|
5377
5269
|
interface TraceContext {
|
|
5378
5270
|
/** Trace id inherited from the parent process, or a fresh one. */
|
|
5379
5271
|
traceId: string;
|
|
@@ -5402,8 +5294,6 @@ declare function createPropagatingTraceEmitter(ctx: TraceContext): {
|
|
|
5402
5294
|
exporter: OtelExporter | undefined;
|
|
5403
5295
|
context: TraceContext;
|
|
5404
5296
|
};
|
|
5405
|
-
//#endregion
|
|
5406
|
-
//#region src/profiles/researcher.d.ts
|
|
5407
5297
|
/** Source families a researcher profile may prefer for a task. One owner: the delegation
|
|
5408
5298
|
* vocabulary (`DelegateResearchArgs.sources`) re-exports this type rather than restating it.
|
|
5409
5299
|
* @experimental */
|
|
@@ -5522,8 +5412,6 @@ declare function researcherProfile(options: ResearcherProfileOptions & {
|
|
|
5522
5412
|
validator: Validator<ResearchOutput>;
|
|
5523
5413
|
agentRunSpec: AgentRunSpec<ResearchTask>;
|
|
5524
5414
|
};
|
|
5525
|
-
//#endregion
|
|
5526
|
-
//#region src/profiles/ui-auditor/substrate.d.ts
|
|
5527
5415
|
/**
|
|
5528
5416
|
*
|
|
5529
5417
|
* UI audit finding shapes — the unit of evidence a contributor can act on.
|
|
@@ -5596,8 +5484,6 @@ interface UiFinding {
|
|
|
5596
5484
|
/** ISO-8601 creation timestamp set by the writer when persisted. */
|
|
5597
5485
|
createdAt?: string;
|
|
5598
5486
|
}
|
|
5599
|
-
//#endregion
|
|
5600
|
-
//#region src/mcp/types.d.ts
|
|
5601
5487
|
/**
|
|
5602
5488
|
* Every delegation profile a queued record can carry. One owner: the tool schemas and validators
|
|
5603
5489
|
* that filter on a profile read this list, so a profile added here cannot be one a tool refuses.
|
|
@@ -5838,8 +5724,6 @@ interface DelegationHistoryEntry {
|
|
|
5838
5724
|
/** Inherited trace identity recorded at submit — join key into the caller's trace. */
|
|
5839
5725
|
traceId?: string;
|
|
5840
5726
|
}
|
|
5841
|
-
//#endregion
|
|
5842
|
-
//#region src/mcp/task-queue.d.ts
|
|
5843
5727
|
/** Arguments accepted by the durable delegation queue. @stable */
|
|
5844
5728
|
type DelegationArgs = DelegateCodeArgs | DelegateResearchArgs | DelegateUiAuditArgs;
|
|
5845
5729
|
/**
|
|
@@ -6114,8 +5998,6 @@ declare class DelegationTaskQueue {
|
|
|
6114
5998
|
private failPersistence;
|
|
6115
5999
|
private enforceRetention;
|
|
6116
6000
|
}
|
|
6117
|
-
//#endregion
|
|
6118
|
-
//#region src/mcp/detached-turn.d.ts
|
|
6119
6001
|
/** @experimental The terminal payload of a finished detached turn. */
|
|
6120
6002
|
interface DetachedTurn {
|
|
6121
6003
|
/** Final assistant text. */
|
|
@@ -6169,8 +6051,6 @@ interface RunDetachedTurnOptions {
|
|
|
6169
6051
|
* @experimental
|
|
6170
6052
|
*/
|
|
6171
6053
|
declare function runDetachedTurn(options: RunDetachedTurnOptions): Promise<DetachedTurn>;
|
|
6172
|
-
//#endregion
|
|
6173
|
-
//#region src/mcp/executor.d.ts
|
|
6174
6054
|
/** @experimental */
|
|
6175
6055
|
interface DelegationExecutor {
|
|
6176
6056
|
/** Sandbox client the kernel calls. Returned with `describePlacement` set. */
|
|
@@ -6243,8 +6123,6 @@ interface FleetWorkspaceExecutorOptions {
|
|
|
6243
6123
|
* @experimental
|
|
6244
6124
|
*/
|
|
6245
6125
|
declare function createFleetWorkspaceExecutor(options: FleetWorkspaceExecutorOptions): DelegationExecutor;
|
|
6246
|
-
//#endregion
|
|
6247
|
-
//#region src/mcp/delegates.d.ts
|
|
6248
6126
|
/** @experimental */
|
|
6249
6127
|
interface DelegateRunCtx {
|
|
6250
6128
|
signal: AbortSignal;
|
|
@@ -6377,8 +6255,6 @@ interface DetachedSessionDelegateOptions {
|
|
|
6377
6255
|
* @experimental
|
|
6378
6256
|
*/
|
|
6379
6257
|
declare function detachedSessionDelegate(options: DetachedSessionDelegateOptions): CoderDelegate;
|
|
6380
|
-
//#endregion
|
|
6381
|
-
//#region src/mcp/feedback-store.d.ts
|
|
6382
6258
|
/** @stable */
|
|
6383
6259
|
interface FeedbackEvent {
|
|
6384
6260
|
id: string;
|
|
@@ -6401,8 +6277,6 @@ interface FeedbackStore {
|
|
|
6401
6277
|
refersToRef?: string;
|
|
6402
6278
|
}): Promise<FeedbackEvent[]>;
|
|
6403
6279
|
}
|
|
6404
|
-
//#endregion
|
|
6405
|
-
//#region src/runtime/tool-loop.d.ts
|
|
6406
6280
|
/** Provider-neutral conversation record accepted by a tool-loop brain. */
|
|
6407
6281
|
type ToolLoopMessageRecord = Record<string, unknown>;
|
|
6408
6282
|
/** One provider-neutral tool request emitted by a tool-loop model. */
|
|
@@ -6479,8 +6353,6 @@ interface ToolLoopCompaction {
|
|
|
6479
6353
|
type ToolLoopCompactionOptions = Omit<ToolLoopCompaction, 'distill'> & {
|
|
6480
6354
|
readonly distill?: ToolLoopCompaction['distill'];
|
|
6481
6355
|
};
|
|
6482
|
-
//#endregion
|
|
6483
|
-
//#region src/runtime/router-retry-policy.d.ts
|
|
6484
6356
|
/** Exact retry controls accepted at `AgentProfile.model.metadata.retry`. */
|
|
6485
6357
|
interface RouterRetryPolicy {
|
|
6486
6358
|
/** Total attempts, including the first request. */
|
|
@@ -6496,8 +6368,6 @@ interface RouterRetryPolicy {
|
|
|
6496
6368
|
/** Deadline for receiving one attempt's response headers. Zero disables it. */
|
|
6497
6369
|
readonly requestTimeoutMs?: number;
|
|
6498
6370
|
}
|
|
6499
|
-
//#endregion
|
|
6500
|
-
//#region src/runtime/router-request-body.d.ts
|
|
6501
6371
|
/**
|
|
6502
6372
|
* Router provider routing, lowered into every request a transport sends as
|
|
6503
6373
|
* `providerOptions.gateway.{only, allowFallbacks}` and `require_model`. Braid's Z.ai-only release
|
|
@@ -6574,8 +6444,6 @@ interface ToolSpec {
|
|
|
6574
6444
|
outputSchema?: Record<string, unknown> | boolean;
|
|
6575
6445
|
};
|
|
6576
6446
|
}
|
|
6577
|
-
//#endregion
|
|
6578
|
-
//#region src/runtime/router-http-transport.d.ts
|
|
6579
6447
|
/**
|
|
6580
6448
|
* Connection details for Runtime's Router-backed executors.
|
|
6581
6449
|
*
|
|
@@ -6608,8 +6476,6 @@ interface RouterResponseReceipt {
|
|
|
6608
6476
|
readonly headers: Readonly<Record<string, string>>;
|
|
6609
6477
|
readonly body: string | null;
|
|
6610
6478
|
}
|
|
6611
|
-
//#endregion
|
|
6612
|
-
//#region src/runtime/sandbox-events.d.ts
|
|
6613
6479
|
/** The provider/model the platform reports it actually bound to a turn, when it reports one.
|
|
6614
6480
|
* `source` is the platform's own account of where that choice came from — `environment` means
|
|
6615
6481
|
* the platform chose, not the request. */
|
|
@@ -6706,8 +6572,6 @@ declare function sumSandboxUsage(events: readonly SandboxEvent[], agentRunName?:
|
|
|
6706
6572
|
estimatedCostUsd?: number;
|
|
6707
6573
|
tokensUnknownReason?: string;
|
|
6708
6574
|
};
|
|
6709
|
-
//#endregion
|
|
6710
|
-
//#region src/runtime/sandbox-executor-output.d.ts
|
|
6711
6575
|
/**
|
|
6712
6576
|
* Cross-event state for {@link mapSandboxToolEvent}. Sandbox backends emit a
|
|
6713
6577
|
* tool invocation as MANY `message.part.updated` frames on the same call id
|
|
@@ -6818,8 +6682,6 @@ interface SandboxLeafOut {
|
|
|
6818
6682
|
toolCalls?: ExecutorToolCall[];
|
|
6819
6683
|
outcome?: AgentRunOutcome;
|
|
6820
6684
|
}
|
|
6821
|
-
//#endregion
|
|
6822
|
-
//#region src/runtime/key-provider.d.ts
|
|
6823
6685
|
/** Resolve named secrets. The ONE seam every secret store adapts to. */
|
|
6824
6686
|
interface KeyProvider {
|
|
6825
6687
|
/** The value for `name`, or `undefined` when this provider does not hold it. */
|
|
@@ -6874,8 +6736,6 @@ interface ResolvedMcpServerLaunch {
|
|
|
6874
6736
|
* pre-0.40 spawn precedence: the secret value wins in the child env.
|
|
6875
6737
|
*/
|
|
6876
6738
|
declare function resolveMcpServerLaunch(server: AgentProfileMcpServer, keys: KeyProvider | undefined, label: string): Promise<ResolvedMcpServerLaunch>;
|
|
6877
|
-
//#endregion
|
|
6878
|
-
//#region src/runtime/supervise/bridge-config.d.ts
|
|
6879
6739
|
/**
|
|
6880
6740
|
* cli-bridge seam. A local OpenAI-compatible bridge that fronts harness CLIs
|
|
6881
6741
|
* (claude-code / opencode / kimi / pi) behind one HTTP surface. The spawned
|
|
@@ -6924,6 +6784,8 @@ declare function resolveMcpServerLaunch(server: AgentProfileMcpServer, keys: Key
|
|
|
6924
6784
|
interface BridgeSeam {
|
|
6925
6785
|
bridgeUrl: string;
|
|
6926
6786
|
bridgeBearer: string;
|
|
6787
|
+
/** Require Bridge-owned final JSON; conversation text, tools and usage remain trace evidence. */
|
|
6788
|
+
outputFormat?: 'json';
|
|
6927
6789
|
/**
|
|
6928
6790
|
* Optional request-scoped model credential.
|
|
6929
6791
|
*
|
|
@@ -6991,8 +6853,6 @@ interface BridgeModelCredential {
|
|
|
6991
6853
|
/** Live credential service. Runtime retains this reference through reusable captures. */
|
|
6992
6854
|
provider: KeyProvider;
|
|
6993
6855
|
}
|
|
6994
|
-
//#endregion
|
|
6995
|
-
//#region src/runtime/provider-placement.d.ts
|
|
6996
6856
|
/** Caller-declared execution placement. Matching never changes the authored profile.
|
|
6997
6857
|
* @experimental */
|
|
6998
6858
|
interface ProviderPlacement {
|
|
@@ -7007,8 +6867,6 @@ interface ProviderPlacement {
|
|
|
7007
6867
|
};
|
|
7008
6868
|
promptOptions?: ProviderPromptOptions;
|
|
7009
6869
|
}
|
|
7010
|
-
//#endregion
|
|
7011
|
-
//#region src/runtime/supervise/upstream-unavailable.d.ts
|
|
7012
6870
|
/** How long an agent waits after its upstream refused a turn for capacity: the codes and
|
|
7013
6871
|
* statuses `upstreamUnavailableSignal` reads. A pause is not a failure: a driver spends neither
|
|
7014
6872
|
* `maxAttempts` nor `maxConsecutiveFailures` on it. */
|
|
@@ -7019,8 +6877,6 @@ interface UnavailablePausePolicy {
|
|
|
7019
6877
|
* hour. */
|
|
7020
6878
|
readonly maxUnavailablePauseMs?: number;
|
|
7021
6879
|
}
|
|
7022
|
-
//#endregion
|
|
7023
|
-
//#region src/runtime/environment-provider/provider-executor-admission.d.ts
|
|
7024
6880
|
/** Adapt an environment provider into an `ExecutorFactory` for `createExecutor`.
|
|
7025
6881
|
*
|
|
7026
6882
|
* `createExecutor({ backend: 'provider', provider })` is the composition most callers want; it
|
|
@@ -7134,8 +6990,6 @@ interface ProviderExecutorOptions {
|
|
|
7134
6990
|
*/
|
|
7135
6991
|
unavailablePause?: UnavailablePausePolicy | false;
|
|
7136
6992
|
}
|
|
7137
|
-
//#endregion
|
|
7138
|
-
//#region src/runtime/environment-provider/provider-registry.d.ts
|
|
7139
6993
|
/** Provider object or registry name accepted by runtime provider adapters.
|
|
7140
6994
|
* @experimental */
|
|
7141
6995
|
type AgentEnvironmentProviderRef = AgentEnvironmentProvider | string;
|
|
@@ -7158,8 +7012,6 @@ declare function createAgentEnvironmentProviderRegistry(providers?: Iterable<Age
|
|
|
7158
7012
|
/** Resolve a provider instance or registry name, failing loudly when a name is unknown.
|
|
7159
7013
|
* @experimental */
|
|
7160
7014
|
declare function resolveAgentEnvironmentProvider(provider: AgentEnvironmentProviderRef, registry?: AgentEnvironmentProviderRegistry): AgentEnvironmentProvider;
|
|
7161
|
-
//#endregion
|
|
7162
|
-
//#region src/runtime/shared-box-worker.d.ts
|
|
7163
7015
|
/** The request header the router records as a usage row's `clientName`. */
|
|
7164
7016
|
declare const ROUTER_CLIENT_HEADER = "x-tangle-client";
|
|
7165
7017
|
/**
|
|
@@ -7179,8 +7031,6 @@ declare function sharedWorkerClientName(nodeId: string): string;
|
|
|
7179
7031
|
* resource the materializer does not lower into the worker's directory.
|
|
7180
7032
|
*/
|
|
7181
7033
|
declare function sharedBoxRefusal(profile: AgentProfile): string | undefined;
|
|
7182
|
-
//#endregion
|
|
7183
|
-
//#region src/runtime/shared-box.d.ts
|
|
7184
7034
|
/**
|
|
7185
7035
|
* The most workers one default box carries at once.
|
|
7186
7036
|
*
|
|
@@ -7277,8 +7127,6 @@ interface SharedBoxPlacement {
|
|
|
7277
7127
|
* profile keeps the dedicated provider.
|
|
7278
7128
|
*/
|
|
7279
7129
|
declare function sharedBoxPlacement(options: SharedBoxPlacementOptions): SharedBoxPlacement;
|
|
7280
|
-
//#endregion
|
|
7281
|
-
//#region src/runtime/supervise/inbox.d.ts
|
|
7282
7130
|
/** A message from the run's AUTHORITY — the parent driver. These two kinds carry instruction. */
|
|
7283
7131
|
interface AuthorityInboxMessage {
|
|
7284
7132
|
/** The sender's `messageId`, or one minted on arrival. What {@link InboxLease.commit} names. */
|
|
@@ -7335,8 +7183,6 @@ interface Inbox {
|
|
|
7335
7183
|
/** Render taken messages as ONE operator turn to fold into the worker's conversation. */
|
|
7336
7184
|
fold(messages: ReadonlyArray<InboxMessage>): string;
|
|
7337
7185
|
}
|
|
7338
|
-
//#endregion
|
|
7339
|
-
//#region src/runtime/supervise/sandbox-session.d.ts
|
|
7340
7186
|
/** Ceiling on continuation turns (turn 0 is the task, each later turn a folded steer). */
|
|
7341
7187
|
declare const DEFAULT_SANDBOX_STEERING_MAX_TURNS = 24;
|
|
7342
7188
|
/** Opt-in configuration for the steerable sandbox worker (`SandboxSeam.steering`); absent, the single-shot composition is kept. */
|
|
@@ -7386,8 +7232,6 @@ interface SteerableSandboxArgs {
|
|
|
7386
7232
|
}
|
|
7387
7233
|
/** One steerable sandbox worker. The returned session is inert until `stream()` is drained. */
|
|
7388
7234
|
declare function createSteerableSandboxSession(args: SteerableSandboxArgs): SteerableSandboxSession;
|
|
7389
|
-
//#endregion
|
|
7390
|
-
//#region src/runtime/supervise/runtime-seams.d.ts
|
|
7391
7235
|
/**
|
|
7392
7236
|
* Router/inline transport seam. The profile owns model, prompt, and generation behavior.
|
|
7393
7237
|
*/
|
|
@@ -7482,8 +7326,8 @@ interface CliSeam {
|
|
|
7482
7326
|
* named as data. `repoRoot` is transport data; `AgentProfile.harness` selects the CLI.
|
|
7483
7327
|
* `taskPrompt` remains an optional direct-call fallback for callers that execute with `undefined`.
|
|
7484
7328
|
* The authored
|
|
7485
|
-
* `profile.prompt
|
|
7486
|
-
* `
|
|
7329
|
+
* `profile.prompt` uses native replace/append controls and a caller-instruction preamble;
|
|
7330
|
+
* `profile.model.default` selects the native model. Everything else mirrors `WorktreeCliExecutorOptions`.
|
|
7487
7331
|
*/
|
|
7488
7332
|
interface CliWorktreeSeam {
|
|
7489
7333
|
repoRoot: string;
|
|
@@ -7512,7 +7356,7 @@ interface CliWorktreeSeam {
|
|
|
7512
7356
|
* cli-in-place seam. A supervisor-authored `AgentProfile` driving a local coding-harness CLI
|
|
7513
7357
|
* (claude-code / codex / opencode / pi) on a workspace the CALLER supplies — the leaf
|
|
7514
7358
|
* `createInPlaceCliExecutor` named as data. `workspacePath` is transport data;
|
|
7515
|
-
* `AgentProfile.harness` selects the CLI, and the authored `profile.prompt
|
|
7359
|
+
* `AgentProfile.harness` selects the CLI, and the authored `profile.prompt` +
|
|
7516
7360
|
* `profile.model.default` reach the harness via the §1.5 `harnessInvocation` mapper.
|
|
7517
7361
|
*
|
|
7518
7362
|
* READ THIS BEFORE CHOOSING BETWEEN THIS AND `cli-worktree`. They differ in ONE thing, and it is
|
|
@@ -7634,8 +7478,6 @@ interface RouterToolsSeam {
|
|
|
7634
7478
|
durationMs?: number;
|
|
7635
7479
|
}) => void;
|
|
7636
7480
|
}
|
|
7637
|
-
//#endregion
|
|
7638
|
-
//#region src/runtime/supervise/executor-config.d.ts
|
|
7639
7481
|
/**
|
|
7640
7482
|
* Config for {@link createExecutor}: the backend is DATA — the cost dial a profile,
|
|
7641
7483
|
* an experiment config, or a replay journal can name — not an import choice. Each
|
|
@@ -7667,8 +7509,6 @@ type ExecutorConfig = ({
|
|
|
7667
7509
|
* `UsageEvent` reporting channel.
|
|
7668
7510
|
*/
|
|
7669
7511
|
declare function createExecutor(config: ExecutorConfig): ExecutorFactory<unknown>;
|
|
7670
|
-
//#endregion
|
|
7671
|
-
//#region src/runtime/supervise/executor-registry.d.ts
|
|
7672
7512
|
/**
|
|
7673
7513
|
* The open resolver/registry. Pre-registers the three built-ins under their
|
|
7674
7514
|
* runtime tags (`'router'`, `'sandbox'`, `'cli'`) and accepts `register(name,
|
|
@@ -7680,8 +7520,6 @@ declare function createExecutor(config: ExecutorConfig): ExecutorFactory<unknown
|
|
|
7680
7520
|
* harness-derived runtime (`'sandbox'` for any `BackendType`); else fail loud.
|
|
7681
7521
|
*/
|
|
7682
7522
|
declare function createExecutorRegistry(): ExecutorRegistry;
|
|
7683
|
-
//#endregion
|
|
7684
|
-
//#region src/mcp/tools/delegate.d.ts
|
|
7685
7523
|
/** The synchronous result the `delegate` tool returns to the calling agent: the delivered output (or
|
|
7686
7524
|
* the no-winner reason) PLUS the conserved spend of the whole delegation. */
|
|
7687
7525
|
type DelegateResult = {
|
|
@@ -7721,8 +7559,6 @@ interface DelegateHandlerOptions {
|
|
|
7721
7559
|
* delivered output with its conserved cost.
|
|
7722
7560
|
*/
|
|
7723
7561
|
declare function createDelegateHandler(options: DelegateHandlerOptions): (raw: unknown) => Promise<DelegateResult>;
|
|
7724
|
-
//#endregion
|
|
7725
|
-
//#region src/mcp/server.d.ts
|
|
7726
7562
|
/** @experimental */
|
|
7727
7563
|
interface McpServerOptions {
|
|
7728
7564
|
/**
|
|
@@ -7779,8 +7615,6 @@ interface McpServer {
|
|
|
7779
7615
|
* @experimental
|
|
7780
7616
|
*/
|
|
7781
7617
|
declare function createMcpServer(options?: McpServerOptions): McpServer;
|
|
7782
|
-
//#endregion
|
|
7783
|
-
//#region src/mcp/tools/spawn-resource-paths.d.ts
|
|
7784
7618
|
/** One successful read: the bytes as a string plus the identity the journal records. */
|
|
7785
7619
|
interface SpawnResourceBytes {
|
|
7786
7620
|
readonly content: string;
|
|
@@ -7842,8 +7676,6 @@ type ResolveSpawnResourcePathsResult = {
|
|
|
7842
7676
|
* is refused with the reason and what to do instead.
|
|
7843
7677
|
*/
|
|
7844
7678
|
declare function resolveSpawnResourcePaths(profile: unknown, source: string | SpawnResourceReader | undefined): Promise<ResolveSpawnResourcePathsResult>;
|
|
7845
|
-
//#endregion
|
|
7846
|
-
//#region src/runtime/supervise/driver-retry.d.ts
|
|
7847
7679
|
/** Whether the declared completion check has passed; `'none'` means the caller declared no check. */
|
|
7848
7680
|
type DriverContractState = 'met' | 'unmet' | 'none';
|
|
7849
7681
|
/** How hard the root driver is retried after a transient failure; `enabled: false` restores pre-#741 behavior. */
|
|
@@ -7916,8 +7748,6 @@ type DriverReentry = {
|
|
|
7916
7748
|
/** Of `live`, the workers this process re-placed; the others are gone and their work is lost. */
|
|
7917
7749
|
readonly replaced: ReadonlyArray<string>;
|
|
7918
7750
|
};
|
|
7919
|
-
//#endregion
|
|
7920
|
-
//#region src/runtime/supervise/continuation.d.ts
|
|
7921
7751
|
/** One time the check ran inside the run, whatever started it. */
|
|
7922
7752
|
interface CheckRead {
|
|
7923
7753
|
/** 1-based count of check reads in this manager, the unavailable ones included. */
|
|
@@ -8131,8 +7961,6 @@ interface VerdictSummary {
|
|
|
8131
7961
|
readonly failed?: number;
|
|
8132
7962
|
readonly total?: number;
|
|
8133
7963
|
}
|
|
8134
|
-
//#endregion
|
|
8135
|
-
//#region src/runtime/supervise/coordination-log.d.ts
|
|
8136
7964
|
/** Stable identity of the supervisor that owns one coordination stream. High-level supervision
|
|
8137
7965
|
* derives it from the exact root/child execution identity plus its parent assignment. */
|
|
8138
7966
|
type CoordinationOwnerId = string;
|
|
@@ -8186,8 +8014,6 @@ declare class FileCoordinationLog implements CoordinationLog {
|
|
|
8186
8014
|
private appendRecord;
|
|
8187
8015
|
load(runId: string, ownerId?: CoordinationOwnerId): Promise<PriorCoordination>;
|
|
8188
8016
|
}
|
|
8189
|
-
//#endregion
|
|
8190
|
-
//#region src/runtime/supervise/coordination-http.d.ts
|
|
8191
8017
|
/** Why the coordination boundary refused a request. The refusal's JSON-RPC error body names it, so
|
|
8192
8018
|
* an agent reads more than a bare status, and its audit event records it. */
|
|
8193
8019
|
type CoordinationRejectReason = 'method-not-allowed' | 'unknown-path' | 'wrong-host' | 'origin-refused' | 'listener-closed' | 'scope-stopped' | 'credential-refused' | 'unsupported-content-type' | 'body-too-large' | 'malformed-request' | 'request-limit' | 'body-timeout' | 'action-timeout';
|
|
@@ -8211,8 +8037,6 @@ interface CoordinationHttpOptions {
|
|
|
8211
8037
|
/** Audit fields exclude credentials, request bodies, and arbitrary error strings. */
|
|
8212
8038
|
readonly onAudit?: (event: CoordinationHttpAudit) => Promise<void> | void;
|
|
8213
8039
|
}
|
|
8214
|
-
//#endregion
|
|
8215
|
-
//#region src/runtime/supervise/coordination-mcp.d.ts
|
|
8216
8040
|
interface CoordinationMcpHandle {
|
|
8217
8041
|
/** The URL an in-box harness mounts as `mcp.mcpServers.coordination.url`. */
|
|
8218
8042
|
readonly url: string;
|
|
@@ -8222,6 +8046,8 @@ interface CoordinationMcpHandle {
|
|
|
8222
8046
|
readonly url: string;
|
|
8223
8047
|
readonly headers: Readonly<Record<string, string>>;
|
|
8224
8048
|
};
|
|
8049
|
+
/** Independent operator capability; never persist its protected headers in profiles or journals. */
|
|
8050
|
+
readonly control: CoordinationControlAccess;
|
|
8225
8051
|
/** Runtime-only credentials. Never put these headers in canonical profiles or journals. */
|
|
8226
8052
|
readonly headers: Readonly<Record<string, string>>;
|
|
8227
8053
|
/** The current credential's expiry under `authentication.ttlMs`; undefined when it lives as long
|
|
@@ -8274,12 +8100,19 @@ interface CoordinationReadAccess {
|
|
|
8274
8100
|
readonly url: string;
|
|
8275
8101
|
readonly headers: Readonly<Record<string, string>>;
|
|
8276
8102
|
}
|
|
8103
|
+
/** Runtime-only owned-worker control capability, separate from read and manager authority. */
|
|
8104
|
+
interface CoordinationControlAccess extends CoordinationReadAccess {
|
|
8105
|
+
readonly runId: string;
|
|
8106
|
+
readonly actorId: string;
|
|
8107
|
+
}
|
|
8277
8108
|
interface CoordinationTransportOptions extends CoordinationHttpOptions {
|
|
8278
8109
|
/** Publish the read capability before dispatch, so a remote client can observe the first worker. */
|
|
8279
8110
|
readonly onReadReady?: (access: CoordinationReadAccess & {
|
|
8280
8111
|
readonly runId: string;
|
|
8281
8112
|
readonly actorId: string;
|
|
8282
8113
|
}) => void | Promise<void>;
|
|
8114
|
+
/** Publish the separate operator capability before dispatch. */
|
|
8115
|
+
readonly onControlReady?: (access: CoordinationControlAccess) => void | Promise<void>;
|
|
8283
8116
|
readonly host?: string;
|
|
8284
8117
|
readonly port?: number;
|
|
8285
8118
|
/** Required for remote binds. Each server mints a distinct run/actor credential. */
|
|
@@ -8382,8 +8215,6 @@ declare function serveCoordinationMcp(opts: CoordinationTransportOptions & {
|
|
|
8382
8215
|
* verbs in code (`SupervisorToolInvocationContext.verbs`). */
|
|
8383
8216
|
onCoordinationTools?: (tools: ReadonlyArray<McpToolDescriptor>, coordination: Pick<CoordinationTools, 'awaitSettlement'>) => void;
|
|
8384
8217
|
}): Promise<CoordinationMcpHandle>;
|
|
8385
|
-
//#endregion
|
|
8386
|
-
//#region src/runtime/supervise/finalizer.d.ts
|
|
8387
8218
|
/** One settled worker as the finalizer sees it — the ledger row (structural fields only). */
|
|
8388
8219
|
interface FinalizerSettled {
|
|
8389
8220
|
readonly id: string;
|
|
@@ -8417,8 +8248,6 @@ type SupervisorFinalizer = (ctx: FinalizeContext) => Promise<unknown | undefined
|
|
|
8417
8248
|
* existing caller had: the highest-scoring delivered child's output, `undefined` when nothing
|
|
8418
8249
|
* delivered (or the best delivered child carries no artifact). */
|
|
8419
8250
|
declare const bestDelivered: SupervisorFinalizer;
|
|
8420
|
-
//#endregion
|
|
8421
|
-
//#region src/runtime/supervise/reentry.d.ts
|
|
8422
8251
|
/** What the next drive continues, as the drive harness can prove it before the turn starts. */
|
|
8423
8252
|
interface ReentryContinuity {
|
|
8424
8253
|
/** `continued`: the next turn is sent into the harness session that received the last one.
|
|
@@ -8451,8 +8280,6 @@ interface ReentryTaskInput {
|
|
|
8451
8280
|
}
|
|
8452
8281
|
/** Compose the task for one re-entered drive. */
|
|
8453
8282
|
declare function composeReentryTask(input: ReentryTaskInput): string;
|
|
8454
|
-
//#endregion
|
|
8455
|
-
//#region src/runtime/supervise/run-cancellation.d.ts
|
|
8456
8283
|
/** One durable run-scoped cancel request: cancel the WHOLE run, not one worker. */
|
|
8457
8284
|
interface RunCancelRequest {
|
|
8458
8285
|
/** Caller-minted stable operation identifier — the idempotency key of the whole operation. */
|
|
@@ -8538,8 +8365,6 @@ declare function cancelRun(eventDir: string, operationId: string, options?: {
|
|
|
8538
8365
|
readonly deadlineMs?: number;
|
|
8539
8366
|
readonly operator?: string;
|
|
8540
8367
|
}): RunCancellation;
|
|
8541
|
-
//#endregion
|
|
8542
|
-
//#region src/runtime/supervise/stop-rules.d.ts
|
|
8543
8368
|
/** The read-model a `StopRule` decides from — the run's progress, not its budget. */
|
|
8544
8369
|
interface ProgressView {
|
|
8545
8370
|
readonly now: number;
|
|
@@ -8632,12 +8457,8 @@ interface AllWorkersStalledOptions {
|
|
|
8632
8457
|
declare function allWorkersStalled(opts?: AllWorkersStalledOptions): StopRule;
|
|
8633
8458
|
/** Stop when ANY rule stops — the ordinary composition (each rule is a separate reason to end). */
|
|
8634
8459
|
declare function anyOf(...rules: ReadonlyArray<StopRule>): StopRule;
|
|
8635
|
-
//#endregion
|
|
8636
|
-
//#region src/runtime/supervise/supervisor-agent-profile.d.ts
|
|
8637
8460
|
/** A supervisor is an exact canonical AgentProfile; no looser model/prompt shape exists. */
|
|
8638
8461
|
type SupervisorProfile = AgentProfile;
|
|
8639
|
-
//#endregion
|
|
8640
|
-
//#region src/runtime/supervise/wake.d.ts
|
|
8641
8462
|
/** How Runtime wakes a manager that ended its turn with work open. */
|
|
8642
8463
|
interface ManagerWakePolicy {
|
|
8643
8464
|
/** Wake with no event after this long, so a waiting manager can reconsider. Default 15 min. */
|
|
@@ -8647,8 +8468,6 @@ interface ManagerWakePolicy {
|
|
|
8647
8468
|
/** Wake once this long before the deadline and ask for the best result now. Default 15 min. */
|
|
8648
8469
|
readonly deadlineWarningMs?: number;
|
|
8649
8470
|
}
|
|
8650
|
-
//#endregion
|
|
8651
|
-
//#region src/runtime/supervise/supervisor-agent-contracts.d.ts
|
|
8652
8471
|
type CoordinationBinding = CoordinationTransportOptions;
|
|
8653
8472
|
/** Trusted run/node identity Runtime binds to one manager. Model-authored tool arguments cannot
|
|
8654
8473
|
* provide or replace any of these fields. */
|
|
@@ -8866,7 +8685,7 @@ interface SupervisorAgentDeps {
|
|
|
8866
8685
|
* Required with `deliverable` on the external arm, refused without one, and refused for a
|
|
8867
8686
|
* router-brained supervisor, which runs its own turn loop in process. The harness owns its own
|
|
8868
8687
|
* turn loop, so it can end while the run has delivered nothing — 376 of 376 winning
|
|
8869
|
-
* discovery-lab runs
|
|
8688
|
+
* discovery-lab runs ended on the driver's own completion. A continuation reuses the
|
|
8870
8689
|
* retry path: same scope, same coordination server, same live children, same bounds. */
|
|
8871
8690
|
readonly continuation?: ContinuationPolicy;
|
|
8872
8691
|
/** Where this manager's continuation files go (`<dir>/<n>/note.md`, `verdict.json`,
|
|
@@ -9006,15 +8825,11 @@ interface SupervisorAgentDeps {
|
|
|
9006
8825
|
interface SupervisorAgentTestDeps extends SupervisorAgentDeps {
|
|
9007
8826
|
readonly brain: ToolLoopChat;
|
|
9008
8827
|
}
|
|
9009
|
-
//#endregion
|
|
9010
|
-
//#region src/runtime/supervise/supervisor-agent.d.ts
|
|
9011
8828
|
/** Build a supervisor `Agent` from its profile: the brain resolves from `profile.harness`
|
|
9012
8829
|
* (backend-as-data), the same resolution rule as every worker. */
|
|
9013
8830
|
declare function supervisorAgent(profile: SupervisorProfile, deps: SupervisorAgentDeps): Agent<unknown, unknown>;
|
|
9014
8831
|
/** Scripted-brain construction for deterministic tests. Not exported from Runtime's main entry. */
|
|
9015
8832
|
declare function supervisorAgentWithTestBrain(profile: SupervisorProfile, deps: SupervisorAgentTestDeps): Agent<unknown, unknown>;
|
|
9016
|
-
//#endregion
|
|
9017
|
-
//#region src/runtime/supervise/root-stream.d.ts
|
|
9018
8833
|
/** One line of `root-stream.jsonl`. */
|
|
9019
8834
|
type RootStreamRecord = {
|
|
9020
8835
|
/** 1-based position in the file, continuing across drive attempts and across processes. */
|
|
@@ -9044,8 +8859,6 @@ declare function readRootStreamReceipt(runDir: string): Promise<RootStreamReceip
|
|
|
9044
8859
|
/** Every committed line of the root stream, in order, or `undefined` when there is no file. A
|
|
9045
8860
|
* torn final line from a process that died mid-write is not a record and is left out. */
|
|
9046
8861
|
declare function readRootStream(runDir: string): Promise<RootStreamRecord[] | undefined>;
|
|
9047
|
-
//#endregion
|
|
9048
|
-
//#region src/runtime/supervise/budget.d.ts
|
|
9049
8862
|
/** Opaque, single-use reservation handle returned by `reserve` and consumed by
|
|
9050
8863
|
* `reconcile`. Carries the reserved ceilings so reconciliation needs no lookup. */
|
|
9051
8864
|
interface ReservationTicket {
|
|
@@ -9209,8 +9022,6 @@ interface BudgetPool {
|
|
|
9209
9022
|
* none), an absolute instant. A resumed pool passes the ORIGINAL instant.
|
|
9210
9023
|
*/
|
|
9211
9024
|
declare function createBudgetPool(root: Budget, runStartedAtMs: number, restore?: BudgetPoolRestore): BudgetPool;
|
|
9212
|
-
//#endregion
|
|
9213
|
-
//#region src/runtime/supervise/run-parking.d.ts
|
|
9214
9025
|
/** Release a durable coordinator after it has only waited this long. The caller's keeper owns wakeup. */
|
|
9215
9026
|
interface RunParkingPolicy {
|
|
9216
9027
|
/** Milliseconds of idle waiting before returning RunParkedError. Runtime owns the default idle threshold. */
|
|
@@ -9234,8 +9045,6 @@ declare class RunParkedError extends Error {
|
|
|
9234
9045
|
readonly parking: RunParkingRecord;
|
|
9235
9046
|
constructor(runId: string, parking: RunParkingRecord);
|
|
9236
9047
|
}
|
|
9237
|
-
//#endregion
|
|
9238
|
-
//#region src/runtime/supervise/deadline.d.ts
|
|
9239
9048
|
/**
|
|
9240
9049
|
* What a steerable child's own time box does: a check-in, not a kill. At the child's deadline its
|
|
9241
9050
|
* lead's scope delivers `DEADLINE_CHECK_IN_MESSAGE` to the child's inbox and keeps it
|
|
@@ -9244,7 +9053,7 @@ declare class RunParkedError extends Error {
|
|
|
9244
9053
|
* `false` restores the hard kill at the time box. A child that exposes no inbox cannot be told,
|
|
9245
9054
|
* so it is stopped at its time box as before.
|
|
9246
9055
|
*
|
|
9247
|
-
*
|
|
9056
|
+
* Four of 42 directors
|
|
9248
9057
|
* were killed at the 90-minute boxes their root set, three of them mid-turn, losing 27, 6 and 91
|
|
9249
9058
|
* minutes since their last recorded page, and each successor spent 12 to 19 minutes re-reading
|
|
9250
9059
|
* before its first page.
|
|
@@ -9252,16 +9061,12 @@ declare class RunParkedError extends Error {
|
|
|
9252
9061
|
type DeadlineCheckIn = false | {
|
|
9253
9062
|
readonly idleMs?: number;
|
|
9254
9063
|
};
|
|
9255
|
-
//#endregion
|
|
9256
|
-
//#region src/runtime/supervise/worker-trace.d.ts
|
|
9257
9064
|
/**
|
|
9258
9065
|
* Resolve the trace context a worker spawned BY `spawningNodeId` should inherit. `undefined` means
|
|
9259
9066
|
* this run records no spans, so nothing is stamped. Supplied by
|
|
9260
9067
|
* `SupervisorSpanRecorder.workerTrace` and threaded to the scope as `SupervisorOpts.workerTrace`.
|
|
9261
9068
|
*/
|
|
9262
9069
|
type WorkerTraceResolver = (spawningNodeId: string) => TraceContext | undefined;
|
|
9263
|
-
//#endregion
|
|
9264
|
-
//#region src/runtime/supervise/otel-spans.d.ts
|
|
9265
9070
|
/** OTLP span attribute values; exported because `SupervisorSpanOptions.attributes` is public. */
|
|
9266
9071
|
type SupervisorSpanAttributes = Record<string, string | number | boolean>;
|
|
9267
9072
|
type Attrs = SupervisorSpanAttributes;
|
|
@@ -9317,8 +9122,6 @@ interface SupervisorSpanRecorder {
|
|
|
9317
9122
|
}
|
|
9318
9123
|
/** Build the span recorder for one run, or `undefined` when no exporter resolves (off by default; "configured but unreachable" also costs nothing). */
|
|
9319
9124
|
declare function createSupervisorSpanRecorder(opts: SupervisorSpanOptions): SupervisorSpanRecorder | undefined;
|
|
9320
|
-
//#endregion
|
|
9321
|
-
//#region src/runtime/supervise/run-context.d.ts
|
|
9322
9125
|
/** Options for a supervised run context. */
|
|
9323
9126
|
interface InMemoryRunContextOptions {
|
|
9324
9127
|
/**
|
|
@@ -9390,22 +9193,8 @@ declare function createInMemoryRunContext(opts?: InMemoryRunContextOptions): InM
|
|
|
9390
9193
|
* existing consumer writes to disk or resumes unless it asks for this.
|
|
9391
9194
|
*/
|
|
9392
9195
|
declare function createFileRunContext(dir: string, opts?: InMemoryRunContextOptions): RunContext;
|
|
9393
|
-
//#endregion
|
|
9394
|
-
//#region src/runtime/supervise/seat-chain.d.ts
|
|
9395
9196
|
/** A stage is authored in the immutable profile. A selection is a concrete, private placement. */
|
|
9396
|
-
|
|
9397
|
-
readonly harness: string;
|
|
9398
|
-
readonly provider: string;
|
|
9399
|
-
readonly model: string;
|
|
9400
|
-
readonly selector: {
|
|
9401
|
-
readonly kind: 'all-eligible';
|
|
9402
|
-
} | {
|
|
9403
|
-
readonly kind: 'seat';
|
|
9404
|
-
readonly id: string;
|
|
9405
|
-
};
|
|
9406
|
-
readonly tools?: AgentProfile['tools'];
|
|
9407
|
-
readonly permissions?: AgentProfile['permissions'];
|
|
9408
|
-
}
|
|
9197
|
+
type SeatStage = Readonly<NonNullable<AgentProfile['seats']>[number]>;
|
|
9409
9198
|
interface SeatSegment {
|
|
9410
9199
|
readonly seat: string;
|
|
9411
9200
|
readonly harness: string;
|
|
@@ -9447,8 +9236,6 @@ declare function subscriptionUsageLimitSignal(failure: {
|
|
|
9447
9236
|
readonly error: string;
|
|
9448
9237
|
readonly errorCode?: string;
|
|
9449
9238
|
}): 'subscription-usage-limit' | undefined;
|
|
9450
|
-
//#endregion
|
|
9451
|
-
//#region src/runtime/supervise/supervise-registry.d.ts
|
|
9452
9239
|
/** A name→value table in this package's resolver-port shape: construction stays the caller's,
|
|
9453
9240
|
* lookup stays lazy, and a table backed by a file, a plugin loader, or a plain object all
|
|
9454
9241
|
* satisfy one interface. */
|
|
@@ -9484,8 +9271,6 @@ interface SuperviseRegistry {
|
|
|
9484
9271
|
names(): readonly string[];
|
|
9485
9272
|
};
|
|
9486
9273
|
}
|
|
9487
|
-
//#endregion
|
|
9488
|
-
//#region src/runtime/supervise/worker-retry.d.ts
|
|
9489
9274
|
/** One re-entry, reported before it waits. */
|
|
9490
9275
|
interface WorkerSpawnRetryAttempt {
|
|
9491
9276
|
/** 1-based: the attempt that just failed. */
|
|
@@ -9566,8 +9351,6 @@ declare function withWorkerSpawnRetry(make: MakeWorkerAgent, policy: WorkerSpawn
|
|
|
9566
9351
|
declare function retryPreSpawnRefusals<Out>(inner: Executor<Out>, policy: ResolvedWorkerSpawnRetry, hooks?: WorkerSpawnRetryHooks & {
|
|
9567
9352
|
worker?: string;
|
|
9568
9353
|
}): Executor<Out>;
|
|
9569
|
-
//#endregion
|
|
9570
|
-
//#region src/runtime/supervise/worker-slots.d.ts
|
|
9571
9354
|
/**
|
|
9572
9355
|
* Worker slots: the one bound on how many spawned agents work at the same time.
|
|
9573
9356
|
*
|
|
@@ -9615,8 +9398,6 @@ interface SlotPermit {
|
|
|
9615
9398
|
* run that should share one bound.
|
|
9616
9399
|
*/
|
|
9617
9400
|
declare function createWorkerSlots(max?: number): WorkerSlots;
|
|
9618
|
-
//#endregion
|
|
9619
|
-
//#region src/runtime/supervise/supervise-options.d.ts
|
|
9620
9401
|
interface SuperviseOptions {
|
|
9621
9402
|
/** Whole-run persistence and ownership. SQL contexts are acquired before replay and compute. */
|
|
9622
9403
|
readonly runContext?: RunContext;
|
|
@@ -9752,9 +9533,9 @@ interface SuperviseOptions {
|
|
|
9752
9533
|
readonly router?: RouterTransportConfig;
|
|
9753
9534
|
/** When `driverBackend` is absent, whether an external-harness ROOT may default to running on
|
|
9754
9535
|
* `backend` (where workers run). `true` (default) keeps the convenience every direct caller has.
|
|
9755
|
-
*
|
|
9756
|
-
*
|
|
9757
|
-
*
|
|
9536
|
+
* Rooted `runGraph` calls set `false`, so an external root needs an explicit `driverBackend`.
|
|
9537
|
+
* Flow graphs keep derivation for native child drivers; their root uses Runtime's deterministic
|
|
9538
|
+
* brain and makes no model call through this backend. */
|
|
9758
9539
|
readonly rootDriverFromBackend?: boolean;
|
|
9759
9540
|
/** Pre-journal profile resolution for the spawn pre-flight: the profile a driver authored →
|
|
9760
9541
|
* the profile that will run (`CoordinationToolsOptions.resolveSpawnProfile`). A pinning layer
|
|
@@ -9840,7 +9621,7 @@ interface SuperviseOptions {
|
|
|
9840
9621
|
* switches.
|
|
9841
9622
|
*
|
|
9842
9623
|
* A harness owns its own turn loop, so it decides when it is finished — and it can decide that
|
|
9843
|
-
* while the run has produced nothing. Measured on discovery-lab (
|
|
9624
|
+
* while the run has produced nothing. Measured on discovery-lab (n = 1,422 settled
|
|
9844
9625
|
* runs): 376 of 376 winning runs ended on the driver's own completion, and the completion gate
|
|
9845
9626
|
* could only LABEL an undelivered result `valid:false`, never send the driver back for it. By
|
|
9846
9627
|
* 2026-09-24, 650 recorded inputs had chosen seven different re-prompt counts, and the note the
|
|
@@ -10160,8 +9941,6 @@ type DeliverableResolutionInput = AuthorizedSpawnContext;
|
|
|
10160
9941
|
interface SuperviseTestOptions extends SuperviseOptions {
|
|
10161
9942
|
readonly brain: ToolLoopChat;
|
|
10162
9943
|
}
|
|
10163
|
-
//#endregion
|
|
10164
|
-
//#region src/runtime/supervise/supervise-worker-backend.d.ts
|
|
10165
9944
|
/**
|
|
10166
9945
|
* Build the worker seam from a backend (WHERE workers run) + an optional completion oracle (the
|
|
10167
9946
|
* deliverable check that makes "settled ⟺ delivered" true — the guard against "ran but didn't
|
|
@@ -10186,8 +9965,6 @@ interface SuperviseTestOptions extends SuperviseOptions {
|
|
|
10186
9965
|
* a stamp asserting something that never happened.
|
|
10187
9966
|
*/
|
|
10188
9967
|
declare function workerFromBackend(backend: ExecutorConfig, deliverable?: DeliverableSpec<unknown>, seams?: () => Readonly<Record<string, unknown>>): MakeWorkerAgent;
|
|
10189
|
-
//#endregion
|
|
10190
|
-
//#region src/runtime/supervise/supervise.d.ts
|
|
10191
9968
|
/** Capabilities a data-only consumer may require before building an opted-in run. `graphTools`:
|
|
10192
9969
|
* a manager whose profile grants `run_graph` can start an agent graph as one subtask. */
|
|
10193
9970
|
declare const superviseFleetCapabilities: Readonly<{
|
|
@@ -10349,8 +10126,6 @@ declare function superviseWithTestBrain(profile: SupervisorProfile, task: unknow
|
|
|
10349
10126
|
childWork: Spend;
|
|
10350
10127
|
};
|
|
10351
10128
|
}>;
|
|
10352
|
-
//#endregion
|
|
10353
|
-
//#region src/durable/run-fork.d.ts
|
|
10354
10129
|
/**
|
|
10355
10130
|
* Start a run as a version of a settled run: the parent's recorded root inputs plus one change.
|
|
10356
10131
|
*
|
|
@@ -10379,8 +10154,6 @@ interface PursuitFork {
|
|
|
10379
10154
|
* spend of every version of one lineage groups under one id.
|
|
10380
10155
|
*/
|
|
10381
10156
|
declare const RUN_FORK_CORRELATION_KEYS: readonly ["forkParentRunId", "forkParentSettleDigest", "forkProfileDiffId", "lineageRootRunId"];
|
|
10382
|
-
//#endregion
|
|
10383
|
-
//#region src/runtime/supervise/prompt-registry.d.ts
|
|
10384
10157
|
/**
|
|
10385
10158
|
*
|
|
10386
10159
|
* The kernel prompt registry — versioned prompt text as DATA, addressed by `PromptHandle`.
|
|
@@ -10453,8 +10226,6 @@ declare const dumbContinuationPassPrompt: RegisteredPrompt;
|
|
|
10453
10226
|
/** The kernel's seeded registry: every surface the runtime's own builders derive from. A caller
|
|
10454
10227
|
* may register additional surfaces/versions on the returned registry. */
|
|
10455
10228
|
declare function kernelPromptRegistry(): PromptRegistry;
|
|
10456
|
-
//#endregion
|
|
10457
|
-
//#region src/runtime/supervise/graph-flow.d.ts
|
|
10458
10229
|
/** A flow node's usable settle matched no routes edge leaving it (`unrouted`), or a fired edge named
|
|
10459
10230
|
* a node that still had a running worker (`target-live`). The flow spawned nothing more; the full
|
|
10460
10231
|
* evidence rides on the error, shaped like `GraphEdgeCapError`. */
|
|
@@ -10471,12 +10242,17 @@ declare class GraphRouteError extends Error {
|
|
|
10471
10242
|
readonly detail: string;
|
|
10472
10243
|
}, ledger: ReadonlyArray<EdgeTraversal>, result: SupervisedResult<unknown>);
|
|
10473
10244
|
}
|
|
10474
|
-
//#endregion
|
|
10475
|
-
//#region src/runtime/supervise/graph-topology.d.ts
|
|
10476
10245
|
/** Default per-edge traversal cap — the cyclic-graph backstop when an edge names none. */
|
|
10477
10246
|
declare const defaultEdgeTraversalCap = 32;
|
|
10478
|
-
|
|
10479
|
-
|
|
10247
|
+
/** An environment-owned check command, run outside the agent's conversation. */
|
|
10248
|
+
interface GraphCommandCheck {
|
|
10249
|
+
readonly command: string;
|
|
10250
|
+
readonly timeoutMs?: number;
|
|
10251
|
+
}
|
|
10252
|
+
interface GraphFromStoredOptions {
|
|
10253
|
+
readonly trigger?: Readonly<Record<string, unknown>>;
|
|
10254
|
+
readonly checks?: Readonly<Record<string, AgentGraph['deliverable']['check'] | GraphCommandCheck>>;
|
|
10255
|
+
}
|
|
10480
10256
|
/** A graph node: an id and a canonical `AgentProfile`. The profile is the ONLY way a node is
|
|
10481
10257
|
* described — its `prompt.systemPrompt` is the standing role (the 0.117 canonical resolution;
|
|
10482
10258
|
* never a legacy top-level-only reduction), its tools/mcp/resources are its capabilities. */
|
|
@@ -10625,10 +10401,16 @@ interface GraphTopology {
|
|
|
10625
10401
|
readonly gates?: AgentGraph['gates'];
|
|
10626
10402
|
}
|
|
10627
10403
|
interface AgentGraph {
|
|
10404
|
+
/** Preserve fully bound literal data when serializing a hydrated graph. */
|
|
10405
|
+
readonly triggerBindings?: readonly [];
|
|
10628
10406
|
readonly nodes: ReadonlyArray<GraphNode>;
|
|
10629
10407
|
readonly edges: ReadonlyArray<GraphEdge>;
|
|
10630
10408
|
/** Termination is mandatory, not optional: the independent completion oracle. */
|
|
10631
|
-
readonly deliverable: DeliverableSpec<unknown
|
|
10409
|
+
readonly deliverable: DeliverableSpec<unknown> & {
|
|
10410
|
+
readonly checkRef?: string;
|
|
10411
|
+
readonly command?: GraphCommandCheck;
|
|
10412
|
+
readonly when?: RouteWhen;
|
|
10413
|
+
};
|
|
10632
10414
|
/** One conserved pool across the whole graph — cycles without conservation never terminate. */
|
|
10633
10415
|
readonly budget: Budget;
|
|
10634
10416
|
/** Setting it makes this a FLOW graph: Runtime spawns every entry at once, each with its task,
|
|
@@ -10808,8 +10590,6 @@ declare function runGraph(graph: AgentGraph, opts: RunGraphOptions): Promise<Gra
|
|
|
10808
10590
|
/** Alias for graph tests written before `RunGraphOptions.brain` was production. The production
|
|
10809
10591
|
* entry accepts the same shape; this wrapper only keeps the `/testing` import path working. */
|
|
10810
10592
|
declare function runGraphWithTestBrain(graph: AgentGraph, opts: RunGraphTestOptions): Promise<GraphResult>;
|
|
10811
|
-
//#endregion
|
|
10812
|
-
//#region src/durable/observer-journal.d.ts
|
|
10813
10593
|
type ObserverRecordKind = 'event' | 'decision';
|
|
10814
10594
|
/**
|
|
10815
10595
|
* One immutable record in the observer plane. `sequence` is journal order, not
|
|
@@ -10864,8 +10644,6 @@ declare class FileObserverJournal implements ObserverJournal {
|
|
|
10864
10644
|
}
|
|
10865
10645
|
/** Compute the canonical SHA-256 digest for an unsigned observer record. */
|
|
10866
10646
|
declare function observerRecordDigest(record: Omit<ObserverRecord, 'digest'>): string;
|
|
10867
|
-
//#endregion
|
|
10868
|
-
//#region src/durable/observer-projection.d.ts
|
|
10869
10647
|
/**
|
|
10870
10648
|
* One settled projection status, shared by runs and nodes. `down` is the journal's own word for a
|
|
10871
10649
|
* failure (a settlement is journaled as `kind: 'down'`, cancellation included), so a consumer can
|
|
@@ -11037,6 +10815,7 @@ interface PursuitNodeProjection {
|
|
|
11037
10815
|
readonly score?: number;
|
|
11038
10816
|
readonly valid?: boolean;
|
|
11039
10817
|
readonly reason?: string;
|
|
10818
|
+
readonly failure?: RuntimeFailureCause;
|
|
11040
10819
|
/** Subscription execution of this logical child, ordered across seat changes. */
|
|
11041
10820
|
readonly segments?: ReadonlyArray<SeatSegment>;
|
|
11042
10821
|
readonly resumeAt?: string;
|
|
@@ -11095,8 +10874,6 @@ interface PursuitProjection {
|
|
|
11095
10874
|
* unmeasured channel into a zero, because a fabricated zero is indistinguishable from free work.
|
|
11096
10875
|
*/
|
|
11097
10876
|
declare function projectPursuit(records: readonly ObserverRecord[]): PursuitProjection;
|
|
11098
|
-
//#endregion
|
|
11099
|
-
//#region src/durable/pursuit-observer-delivery.d.ts
|
|
11100
10877
|
/**
|
|
11101
10878
|
* Where a pursuit's observer projection is delivered while it runs, so a run started anywhere is
|
|
11102
10879
|
* findable in one place by its pursuit id.
|
|
@@ -11125,8 +10902,6 @@ interface PursuitObserverDelivery {
|
|
|
11125
10902
|
readonly timeoutMs?: number;
|
|
11126
10903
|
readonly fetch?: typeof fetch;
|
|
11127
10904
|
}
|
|
11128
|
-
//#endregion
|
|
11129
|
-
//#region src/durable/run-reopen.d.ts
|
|
11130
10905
|
/** `supervisePursuit`'s `reopen` option: reopen this settled run under its own run id. */
|
|
11131
10906
|
interface RunReopen {
|
|
11132
10907
|
/** Who reopens the run. Required and non-empty. */
|
|
@@ -11146,8 +10921,6 @@ interface RunReopen {
|
|
|
11146
10921
|
*/
|
|
11147
10922
|
readonly budget?: Budget;
|
|
11148
10923
|
}
|
|
11149
|
-
//#endregion
|
|
11150
|
-
//#region src/durable/supervise-pursuit.d.ts
|
|
11151
10924
|
interface SupervisePursuitOptions extends SuperviseOptions {
|
|
11152
10925
|
/** Stable objective identity spanning concrete Runtime runs. */
|
|
11153
10926
|
readonly pursuitId: string;
|
|
@@ -11249,12 +11022,15 @@ interface SuperviseGraphPursuitOptions extends RunGraphOptions {
|
|
|
11249
11022
|
/** Stable objective identity spanning concrete Runtime runs. */
|
|
11250
11023
|
readonly pursuitId: string;
|
|
11251
11024
|
/** The directory this execution owns: journal, blobs, observer journal, lock and terminal
|
|
11252
|
-
* records. Re-running the same `runDir` and `runId` resumes
|
|
11025
|
+
* records. Re-running the same `runDir` and `runId` resumes an unsettled graph; a settled
|
|
11026
|
+
* graph requires an explicit `reopen`. */
|
|
11253
11027
|
readonly runDir: string;
|
|
11254
|
-
/** Always `'release'
|
|
11028
|
+
/** Always `'release'`: a reopened segment reuses its journal, not retired environments. */
|
|
11255
11029
|
readonly retainedAtSettlement?: 'release';
|
|
11256
11030
|
/** As for {@link supervisePursuit}. */
|
|
11257
11031
|
readonly observerDelivery?: PursuitObserverDelivery;
|
|
11032
|
+
/** Explicitly reopen a settled segment under this graph's existing run id and journal. */
|
|
11033
|
+
readonly reopen?: RunReopen;
|
|
11258
11034
|
}
|
|
11259
11035
|
/**
|
|
11260
11036
|
* One-call durable execution of an `AgentGraph`: the graph twin of {@link supervisePursuit}.
|
|
@@ -11266,11 +11042,10 @@ interface SuperviseGraphPursuitOptions extends RunGraphOptions {
|
|
|
11266
11042
|
* the graph from its spawn journal. `result.json` holds the graph's supervised result, the same
|
|
11267
11043
|
* record every supervised run leaves; the edge ledger is the journal's `edge` events and the
|
|
11268
11044
|
* returned `result.ledger`. Version chains and forks are `supervisePursuit` features and are not
|
|
11269
|
-
* offered here.
|
|
11045
|
+
* offered here. An explicit `reopen` uses the same archived-settle and resume contract as
|
|
11046
|
+
* `supervisePursuit`; ordinary re-entry of a settled graph stays refused.
|
|
11270
11047
|
*/
|
|
11271
11048
|
declare function superviseGraphPursuit(graph: AgentGraph, opts: SuperviseGraphPursuitOptions): Promise<SupervisedPursuitResult<GraphResult>>;
|
|
11272
|
-
//#endregion
|
|
11273
|
-
//#region src/durable/pursuit-versions.d.ts
|
|
11274
11049
|
/**
|
|
11275
11050
|
* Continue a pursuit across versions: after each version settles, an outside judge scores it, and
|
|
11276
11051
|
* the next version forks from the version the chain keeps with one change, until the stop rule
|
|
@@ -11396,8 +11171,6 @@ interface PursuitVersionChain {
|
|
|
11396
11171
|
* a caller that records the option as data can run it at preflight.
|
|
11397
11172
|
*/
|
|
11398
11173
|
declare function assertPursuitVersions(versions: unknown): asserts versions is PursuitVersions;
|
|
11399
|
-
//#endregion
|
|
11400
|
-
//#region src/runtime/isolated-checker.d.ts
|
|
11401
11174
|
interface IsolatedCheckOptions {
|
|
11402
11175
|
/** Trusted workspace boundary containing the untrusted tree. */
|
|
11403
11176
|
workspaceRoot: string;
|
|
@@ -11502,8 +11275,6 @@ type IsolatedCheckResult = {
|
|
|
11502
11275
|
* command there with only the environment `env` names, and deletes the box.
|
|
11503
11276
|
*/
|
|
11504
11277
|
declare function runIsolatedCheck(options: IsolatedCheckOptions): Promise<IsolatedCheckResult>;
|
|
11505
|
-
//#endregion
|
|
11506
|
-
//#region src/runtime/declared-check.d.ts
|
|
11507
11278
|
/** A check program as a record declares it. */
|
|
11508
11279
|
interface DeclaredCheck {
|
|
11509
11280
|
/** The evaluator program's files. A directory whose canonical digest differs is refused. */
|
|
@@ -11589,8 +11360,6 @@ declare function declaredCheckDeliverable(check: DeclaredCheck, placement: Decla
|
|
|
11589
11360
|
* `null`, which never counts as an improvement.
|
|
11590
11361
|
*/
|
|
11591
11362
|
declare function declaredCheckJudge(check: DeclaredCheck, placement: DeclaredCheckPlacement): VersionJudge;
|
|
11592
|
-
//#endregion
|
|
11593
|
-
//#region src/runtime/define-leaderboard.d.ts
|
|
11594
11363
|
/** Structured per-case verdict a `score` function may return (a bare number is
|
|
11595
11364
|
* shorthand for `{ composite }`). `composite` is the [0,1] leaderboard score;
|
|
11596
11365
|
* `dimensions` are recorded as extra judge dimensions. */
|
|
@@ -11779,8 +11548,6 @@ interface DefinedLeaderboard<TCase, TArtifact = string> {
|
|
|
11779
11548
|
* exposes the same domain as a structural `BenchmarkAdapter`.
|
|
11780
11549
|
*/
|
|
11781
11550
|
declare function defineLeaderboard<TCase, TArtifact = string>(spec: LeaderboardSpec<TCase, TArtifact>): DefinedLeaderboard<TCase, TArtifact>;
|
|
11782
|
-
//#endregion
|
|
11783
|
-
//#region src/runtime/environment-provider/provider-sandbox-adapter.d.ts
|
|
11784
11551
|
/** Adapt a neutral environment provider to the `SandboxClient` interface used by existing loop paths.
|
|
11785
11552
|
* @experimental */
|
|
11786
11553
|
declare function providerAsSandboxClient(provider: AgentEnvironmentProvider, options?: ProviderAsSandboxClientOptions): SandboxClient;
|
|
@@ -11805,10 +11572,8 @@ interface ProviderAsSandboxClientOptions {
|
|
|
11805
11572
|
* callback, unsupported fields are refused before any environment is created. */
|
|
11806
11573
|
mapCreateOptions?: (options: CreateSandboxOptions | undefined) => Partial<CreateAgentEnvironmentInput>;
|
|
11807
11574
|
}
|
|
11808
|
-
//#endregion
|
|
11809
|
-
//#region src/runtime/personify/types.d.ts
|
|
11810
11575
|
/**
|
|
11811
|
-
* The terminal contract
|
|
11576
|
+
* The terminal contract: a loop returns a FINISHED deliverable, or the concrete
|
|
11812
11577
|
* list of blockers that stopped it — never a half-done best-effort coercion. A `blocked`
|
|
11813
11578
|
* outcome with an empty `blockers` list is a contract violation (a shape that can't finish
|
|
11814
11579
|
* MUST name why); impls fail loud on it rather than emitting a vacuous block.
|
|
@@ -12027,8 +11792,6 @@ interface RunPersonifiedOptions<Task, D> {
|
|
|
12027
11792
|
}
|
|
12028
11793
|
/** The composed run signature. */
|
|
12029
11794
|
type RunPersonified = <Task, D>(options: RunPersonifiedOptions<Task, D>) => Promise<SupervisedResult<Outcome<D>>>;
|
|
12030
|
-
//#endregion
|
|
12031
|
-
//#region src/runtime/personify/wave-types.d.ts
|
|
12032
11795
|
/**
|
|
12033
11796
|
* A combinator is just a `LoopShape`: a factory `(ShapeContext) => Agent` whose `Agent.act`
|
|
12034
11797
|
* runs the combinator's structure over the `Scope` (spawn children, drain `next()`, select via
|
|
@@ -12518,8 +12281,6 @@ interface EqualKOnCostOptions {
|
|
|
12518
12281
|
* the impl (e.g. 0.05). A tighter tolerance = a stricter equal-compute claim. */
|
|
12519
12282
|
readonly tolerance?: number;
|
|
12520
12283
|
}
|
|
12521
|
-
//#endregion
|
|
12522
|
-
//#region src/runtime/observe.d.ts
|
|
12523
12284
|
interface ObserveInput {
|
|
12524
12285
|
/** What the worker was asked to do. */
|
|
12525
12286
|
task: string;
|
|
@@ -12595,8 +12356,6 @@ declare function observe(input: ObserveInput, opts: ObserveOptions): Promise<Obs
|
|
|
12595
12356
|
/** Operator-facing report, split by who should act. The agent block is the
|
|
12596
12357
|
* steer; the operator block is the advice. */
|
|
12597
12358
|
declare function renderReport(findings: ReadonlyArray<AnalystFinding>): string;
|
|
12598
|
-
//#endregion
|
|
12599
|
-
//#region src/runtime/harvest-corpus.d.ts
|
|
12600
12359
|
type HarvestCorpusOptions = ObserveOptions & {
|
|
12601
12360
|
/** The completed runs to analyze — map your store's rows to `ObserveInput`. */
|
|
12602
12361
|
runs: AsyncIterable<ObserveInput> | Iterable<ObserveInput>;
|
|
@@ -12632,10 +12391,8 @@ declare class HarvestError extends Error {
|
|
|
12632
12391
|
}
|
|
12633
12392
|
/** Batch the selected observation implementation over completed runs and retain its findings. */
|
|
12634
12393
|
declare function harvestCorpus(opts: HarvestCorpusOptions): Promise<HarvestReport>;
|
|
12635
|
-
//#endregion
|
|
12636
|
-
//#region src/runtime/strategy-author.d.ts
|
|
12637
12394
|
/** The compressed consumable a skill carries: everything an author needs to emit a loop. */
|
|
12638
|
-
declare const strategyAuthorContract = "\nYou author an OPTIMIZATION STRATEGY for an agentic loop system. A strategy decides how to\nspend a compute budget to beat a task's deployable check. You compose exactly two steps:\n\n shot(spec?: { handle?, messages?, steer?, profile?, tools? }): Promise<ShotResult | null>\n Runs ONE worker attempt (a bounded tool loop) over an artifact.\n - omit handle => the shot opens its OWN fresh artifact and closes it after (a sample).\n - pass handle => the shot CONTINUES that artifact (state accumulates across shots).\n - messages => the carried conversation (pass the previous ShotResult.messages to continue).\n - steer => a corrective instruction injected before the shot.\n - profile => a complete AgentProfile — give THIS shot its own instructions,\n model, skills, tools, hooks, and subagents. Include name, harness, and\n model: { provider, default }; put standing instructions in prompt.
|
|
12395
|
+
declare const strategyAuthorContract = "\nYou author an OPTIMIZATION STRATEGY for an agentic loop system. A strategy decides how to\nspend a compute budget to beat a task's deployable check. You compose exactly two steps:\n\n shot(spec?: { handle?, messages?, steer?, profile?, tools? }): Promise<ShotResult | null>\n Runs ONE worker attempt (a bounded tool loop) over an artifact.\n - omit handle => the shot opens its OWN fresh artifact and closes it after (a sample).\n - pass handle => the shot CONTINUES that artifact (state accumulates across shots).\n - messages => the carried conversation (pass the previous ShotResult.messages to continue).\n - steer => a corrective instruction injected before the shot.\n - profile => a complete AgentProfile — give THIS shot its own instructions,\n model, skills, tools, hooks, and subagents. Include name, harness, and\n model: { provider, default }; put standing instructions in prompt.appendSystemPrompt.\n For example: { ...opts.workerProfile, name: 'researcher',\n prompt: { ...opts.workerProfile.prompt,\n appendSystemPrompt: 'Inspect the evidence before proposing a change.' } }.\n Choose an available model from the current execution setup. Omit profile to use\n the worker's exact profile. Every shot spends from the same conserved budget.\n - tools => string[] — restrict THIS shot to a subset of the task's tools by\n name (focus an explore shot on read-only tools, an execute shot on write tools).\n Restriction-only; unknown names make the shot fail. ALWAYS select from\n await listTools(handle) — never hardcode. Omitted => the shot sees every tool.\n ShotResult = { messages, score (0..1 on the task's check), passes, total, completions, toolErrors }\n Returns null if the attempt failed infra-wise.\n\n critique(messages): Promise<string | null>\n A firewalled trace-analyst reads the attempt's trajectory and returns ONE corrective\n instruction (or null when it judges the work complete). Costs ~1 completion.\n\n consult(messages, instruction): Promise<string | null>\n The RAW analyst channel: the same firewalled critic answers YOUR instruction over the\n trajectory verbatim (no reformatting) — use it when you need a specific reply format\n (a decision, a prediction). Costs ~1 completion.\n\n surface.open(task) / surface.close(handle)\n Open a persistent artifact you manage yourself (remember to close in a finally).\n close is idempotent — closing an already-closed handle is a safe no-op.\n\n listTools(handle): Promise<Array<{ name, description? }>>\n The tools THIS task actually offers. TOOL SETS VARY PER TASK — if you restrict a\n shot with `tools`, you MUST pick names from await listTools(handle); hardcoding\n names from an example kills your shots on every task whose tools differ.\n\nRules:\n- ALWAYS await every shot/critique/surface call — a floating promise that rejects\n crashes the whole benchmark run.\n- Stay within ~budget total shots; every shot/critique spends from a conserved pool.\n- For a FRESH attempt OMIT `messages` entirely (never pass `[]` — an empty array is a\n fresh conversation too, but be explicit). To CONTINUE, pass the previous\n ShotResult.messages unchanged.\n- Return { score, resolved, completions, progression, shots } — score = the BEST checkpoint\n you reached (keep-best, never final-state), progression = score after each shot.\n- The module must be EXACTLY this shape (no other imports, no commentary outside code):\n\nimport { defineStrategy } from '@tangle-network/agent-runtime/kernel'\nexport default defineStrategy('your-strategy-name', async ({ surface, task, opts, budget, shot, critique, listTools }) => {\n // your composition (listTools comes from the destructured context — it is NOT a global)\n})\n";
|
|
12639
12396
|
interface AuthorStrategyOptions {
|
|
12640
12397
|
/** Exact author identity. Runtime binds it to every authoring turn. */
|
|
12641
12398
|
profile: AgentProfile;
|
|
@@ -12773,8 +12530,6 @@ declare const sampleThenRefine: Strategy<{
|
|
|
12773
12530
|
progression: number[];
|
|
12774
12531
|
shots: number;
|
|
12775
12532
|
}>;
|
|
12776
|
-
//#endregion
|
|
12777
|
-
//#region src/runtime/strategy.d.ts
|
|
12778
12533
|
interface AgenticTask {
|
|
12779
12534
|
readonly id: string;
|
|
12780
12535
|
readonly userPrompt: string;
|
|
@@ -12904,8 +12659,6 @@ interface RunAgenticOptions<Result extends StrategyResult = StrategyResult> exte
|
|
|
12904
12659
|
}
|
|
12905
12660
|
/** Run a Strategy through the keystone Supervisor — `Agent.act` over a conserved-budget Scope. */
|
|
12906
12661
|
declare function runAgentic<Result extends StrategyResult = StrategyResult>(opts: RunAgenticOptions<Result>): Promise<AgenticRunResult & Result>;
|
|
12907
|
-
//#endregion
|
|
12908
|
-
//#region src/runtime/stdio-mcp-client.d.ts
|
|
12909
12662
|
interface StdioMcpServerSpec {
|
|
12910
12663
|
/** Command that starts the MCP server (stdio transport). */
|
|
12911
12664
|
command: string;
|
|
@@ -12979,8 +12732,6 @@ interface LocalMcpMaterialization {
|
|
|
12979
12732
|
* scored as if it had no MCP surface.
|
|
12980
12733
|
*/
|
|
12981
12734
|
declare function materializeLocalMcp(profile: AgentProfile, opts?: MaterializeLocalMcpOptions): Promise<LocalMcpMaterialization>;
|
|
12982
|
-
//#endregion
|
|
12983
|
-
//#region src/runtime/http-mcp-client.d.ts
|
|
12984
12735
|
interface HttpMcpServerSpec {
|
|
12985
12736
|
/** The MCP endpoint URL, e.g. `https://host/mcp`. */
|
|
12986
12737
|
url: string;
|
|
@@ -12994,8 +12745,6 @@ interface HttpMcpServerSpec {
|
|
|
12994
12745
|
/** Override fetch (tests + constrained runtimes). */
|
|
12995
12746
|
fetchImpl?: typeof fetch;
|
|
12996
12747
|
}
|
|
12997
|
-
//#endregion
|
|
12998
|
-
//#region src/runtime/in-process-sandbox-client.d.ts
|
|
12999
12748
|
/** Context handed to each `onPrompt` call. */
|
|
13000
12749
|
interface InProcessPromptCtx {
|
|
13001
12750
|
/** 0-based round index — increments per `streamPrompt` on the same box.
|
|
@@ -13052,8 +12801,6 @@ interface InProcessSandboxClientOptions {
|
|
|
13052
12801
|
* @experimental
|
|
13053
12802
|
*/
|
|
13054
12803
|
declare function inProcessSandboxClient(options: InProcessSandboxClientOptions): SandboxClient;
|
|
13055
|
-
//#endregion
|
|
13056
|
-
//#region src/runtime/inline-sandbox-client.d.ts
|
|
13057
12804
|
/**
|
|
13058
12805
|
* Adapt an `ExecutorFactory` into a `SandboxClient` for `runAgentRounds`. The factory is
|
|
13059
12806
|
* instantiated fresh per `streamPrompt` (mirrors the per-spawn executor lifecycle):
|
|
@@ -13065,8 +12812,6 @@ declare function inProcessSandboxClient(options: InProcessSandboxClientOptions):
|
|
|
13065
12812
|
declare function inlineSandboxClient(factory: ExecutorFactory<unknown>, defaults?: {
|
|
13066
12813
|
profile?: AgentProfile;
|
|
13067
12814
|
}): SandboxClient;
|
|
13068
|
-
//#endregion
|
|
13069
|
-
//#region src/runtime/iteration-result.d.ts
|
|
13070
12815
|
/**
|
|
13071
12816
|
* The kernel's winner argmax — best-valid-score, ties broken by earliest index,
|
|
13072
12817
|
* falling back to the best-scoring non-errored output when none is valid. Exported
|
|
@@ -13086,8 +12831,6 @@ declare function defaultSelectWinner<Task, Output>(iterations: Iteration<Task, O
|
|
|
13086
12831
|
declare const TERMINAL_DECISIONS: readonly ["stop", "pick-winner", "fail", "done"];
|
|
13087
12832
|
/** One of the kernel's terminal decision values. @stable */
|
|
13088
12833
|
type TerminalDecision = (typeof TERMINAL_DECISIONS)[number];
|
|
13089
|
-
//#endregion
|
|
13090
|
-
//#region src/runtime/local-sandbox-client.d.ts
|
|
13091
12834
|
interface LocalSandboxClientOptions {
|
|
13092
12835
|
/** Optional code-mode presentation over the same explicitly trusted MCP tools. */
|
|
13093
12836
|
codeMode?: true | CodeModeToolsOptions;
|
|
@@ -13105,8 +12848,6 @@ interface LocalSandboxClientOptions {
|
|
|
13105
12848
|
* different per-create profile and provides no host isolation. */
|
|
13106
12849
|
profileSecurityPolicy?: AgentProfileSecurityPolicy;
|
|
13107
12850
|
}
|
|
13108
|
-
//#endregion
|
|
13109
|
-
//#region src/runtime/loop-dispatch.d.ts
|
|
13110
12851
|
/** runAgentRounds options minus the `ctx` (loopDispatch builds the ctx). */
|
|
13111
12852
|
type LoopOptionsForDispatch<Task, Output, Decision> = Omit<RunAgentRoundsOptions<Task, Output, Decision>, 'ctx'>;
|
|
13112
12853
|
interface LoopDispatchOptions<Task, Output, Decision, TScenario extends Scenario, TArtifact> {
|
|
@@ -13201,8 +12942,6 @@ declare function loopCampaignDispatch<Task, Output, Decision, TScenario extends
|
|
|
13201
12942
|
* inside Eval's paid-call lifecycle.
|
|
13202
12943
|
*/
|
|
13203
12944
|
declare function loopDispatch<Task, Output, Decision, TScenario extends Scenario, TArtifact>(opts: LoopDispatchOptions<Task, Output, Decision, TScenario, TArtifact>): ProfileDispatchFn<TScenario, TArtifact>;
|
|
13204
|
-
//#endregion
|
|
13205
|
-
//#region src/runtime/run-benchmark.d.ts
|
|
13206
12945
|
/** A checkable task domain — implement these 5 hooks and the suite does the rest. The
|
|
13207
12946
|
* same seam as `AgenticSurface`; `Environment` is the RL/gym-standard name for it. */
|
|
13208
12947
|
type Environment = AgenticSurface;
|
|
@@ -13302,8 +13041,6 @@ interface BenchmarkReport {
|
|
|
13302
13041
|
declare function runBenchmark(cfg: BenchmarkConfig): Promise<BenchmarkReport>;
|
|
13303
13042
|
/** Pretty-print a report — the "free optimization" verdict, with the cost vector. */
|
|
13304
13043
|
declare function printBenchmarkReport(report: BenchmarkReport): void;
|
|
13305
|
-
//#endregion
|
|
13306
|
-
//#region src/runtime/mcp-environment.d.ts
|
|
13307
13044
|
/** Where a handle's MCP server lives; headers carry per-artifact scoping. */
|
|
13308
13045
|
interface McpEndpoint {
|
|
13309
13046
|
url: string;
|
|
@@ -13331,8 +13068,6 @@ interface McpEnvironmentOptions {
|
|
|
13331
13068
|
declare function sanitizeMcpToolSchema(s: unknown): Record<string, unknown>;
|
|
13332
13069
|
/** Wrap any MCP server as an `Environment`: `tools/list` becomes `AgenticTool[]` with provider-safe schemas; the domain supplies only the artifact lifecycle hooks. */
|
|
13333
13070
|
declare function createMcpEnvironment(opts: McpEnvironmentOptions): Environment;
|
|
13334
|
-
//#endregion
|
|
13335
|
-
//#region src/runtime/observation-registry.d.ts
|
|
13336
13071
|
/** Adapt any Eval analyst registry, including recursive engines, to observation and harvesting. */
|
|
13337
13072
|
declare function observationFromRegistry(registry: Pick<AnalystRegistry, 'run'>, options: {
|
|
13338
13073
|
inputs: AnalystRunInputs$1 | ((input: ObserveInput) => AnalystRunInputs$1 | Promise<AnalystRunInputs$1>);
|
|
@@ -13342,8 +13077,6 @@ declare function observationFromRegistry(registry: Pick<AnalystRegistry, 'run'>,
|
|
|
13342
13077
|
/** Retain the complete registry result, including unsuccessful analysts, in caller-owned storage. */
|
|
13343
13078
|
record?: (result: AnalystRunResult$1, input: ObserveInput) => void | Promise<void>;
|
|
13344
13079
|
}): ObservationAnalysis;
|
|
13345
|
-
//#endregion
|
|
13346
|
-
//#region src/runtime/personify/analyst.d.ts
|
|
13347
13080
|
/** Reject analyst findings derived from evaluation scores instead of execution traces. */
|
|
13348
13081
|
declare const assertTraceDerivedFindings: AssertTraceDerivedFindings;
|
|
13349
13082
|
/**
|
|
@@ -13418,8 +13151,6 @@ declare function registryScopeAnalyst<D>(registry: AnalystRegistryLike, buildInp
|
|
|
13418
13151
|
* that must never leak.
|
|
13419
13152
|
*/
|
|
13420
13153
|
declare function buildSteerContext<D>(findings: ReadonlyArray<AnalystFinding>, settledSoFar: ReadonlyArray<Settled<Outcome<D>>>): SteerContext<D>;
|
|
13421
|
-
//#endregion
|
|
13422
|
-
//#region src/runtime/personify/combinators.d.ts
|
|
13423
13154
|
/**
|
|
13424
13155
|
* The single content-free valid-only winner selector. Among the gated-VALID children only
|
|
13425
13156
|
* (`verdict.valid === true`), pick by `strategy` — best score / smallest delivered artifact /
|
|
@@ -13515,8 +13246,6 @@ declare function widen<Task, Seed, D>(spec: WidenSpec<Seed, D>): CombinatorShape
|
|
|
13515
13246
|
* dormant. A gate run passes this explicitly; a test asserts the default is flat.
|
|
13516
13247
|
*/
|
|
13517
13248
|
declare function flatWidenGate<D>(): ScopeWidenGate<D>;
|
|
13518
|
-
//#endregion
|
|
13519
|
-
//#region src/runtime/personify/corpus.d.ts
|
|
13520
13249
|
/**
|
|
13521
13250
|
* In-memory `Corpus`. Keyed by record `id`; `append` validates the record, is idempotent on an
|
|
13522
13251
|
* identical re-append, and returns a typed `{ succeeded: false }` on a conflicting re-append under
|
|
@@ -13567,8 +13296,6 @@ declare class FileCorpus implements Corpus {
|
|
|
13567
13296
|
* "nothing learned yet" read, not an error).
|
|
13568
13297
|
*/
|
|
13569
13298
|
declare function renderCorpusToInstructions(opts: RenderCorpusToInstructionsOptions): Promise<AgentProfile>;
|
|
13570
|
-
//#endregion
|
|
13571
|
-
//#region src/runtime/personify/persona.d.ts
|
|
13572
13299
|
/**
|
|
13573
13300
|
* Build a frozen `Persona`. Fails loud on the executors-supplied invariant: a persona with
|
|
13574
13301
|
* neither a pre-built registry nor a seam bag cannot resolve its built-in runtimes, so it is
|
|
@@ -13587,8 +13314,6 @@ declare function definePersona<D = unknown>(input: DefinePersonaInput<D>): Perso
|
|
|
13587
13314
|
* @stable
|
|
13588
13315
|
*/
|
|
13589
13316
|
declare function runPersonified<Task, D>(options: RunPersonifiedOptions<Task, D>): Promise<SupervisedResult<Outcome<D>>>;
|
|
13590
|
-
//#endregion
|
|
13591
|
-
//#region src/runtime/personify/trajectory.d.ts
|
|
13592
13317
|
/**
|
|
13593
13318
|
* Reconstruct the whole spawn tree for `root` with per-node + rolled-up `Spend`. Reads the
|
|
13594
13319
|
* journal for structure + spend and, when `withOutputs`, the blob store for each `done`
|
|
@@ -13610,8 +13335,6 @@ declare function trajectoryReport(journal: SpawnJournal, blobs: ResultBlobStore,
|
|
|
13610
13335
|
* identical work would read as unequal compute whenever their cache hit rates differed.
|
|
13611
13336
|
*/
|
|
13612
13337
|
declare function equalKOnCost(arms: ReadonlyArray<EqualKArm>, options?: EqualKOnCostOptions): EqualKVerdict;
|
|
13613
|
-
//#endregion
|
|
13614
|
-
//#region src/runtime/private-cas.d.ts
|
|
13615
13338
|
/**
|
|
13616
13339
|
* Off-host storage that holds a private CAS's bytes after the host deletes its local copy.
|
|
13617
13340
|
* Keys are the run namespace and the content digest, so a retry stores the same object again.
|
|
@@ -13665,7 +13388,7 @@ interface PrivateCasOptions {
|
|
|
13665
13388
|
* objects and receipts are written and published without fsync. For a capture's staging, whose
|
|
13666
13389
|
* caller removes it and whose dead process's directory is swept, and whose durable record is
|
|
13667
13390
|
* kept elsewhere (the durable store, and receipts the caller copies and syncs itself). Never on
|
|
13668
|
-
* a store read after a restart. On drew-gtr-pro
|
|
13391
|
+
* a store read after a restart. On drew-gtr-pro a staging store's fsyncs, about
|
|
13669
13392
|
* four per object, came to 6,924 in 60 s and held a 150-file capture to about 1.4 files/s.
|
|
13670
13393
|
*/
|
|
13671
13394
|
readonly ephemeral?: boolean;
|
|
@@ -13716,8 +13439,6 @@ interface PrivateCasArtifactPort extends AgentCandidateOutputArtifactPort {
|
|
|
13716
13439
|
* but by a caller that copies and syncs what it keeps.
|
|
13717
13440
|
*/
|
|
13718
13441
|
declare function createPrivateCasArtifactPort(root: string, namespace: string, options?: PrivateCasOptions): PrivateCasArtifactPort;
|
|
13719
|
-
//#endregion
|
|
13720
|
-
//#region src/runtime/profile-chat-client.d.ts
|
|
13721
13442
|
/** Profile-exact adapter for packages that consume agent-eval's ChatClient contract.
|
|
13722
13443
|
* Every call still enters Runtime through createExecutor -> streamAgentTurn, and every
|
|
13723
13444
|
* behavioral field is checked against the exact AgentProfile before any transport runs. */
|
|
@@ -13735,8 +13456,6 @@ declare function profileOptimizerModelCall(args: {
|
|
|
13735
13456
|
context: string;
|
|
13736
13457
|
pricing?: CustomTokenPricing;
|
|
13737
13458
|
}): ExternalOptimizerModelCall;
|
|
13738
|
-
//#endregion
|
|
13739
|
-
//#region src/runtime/resolve-sandbox-client.d.ts
|
|
13740
13459
|
interface ResolveSandboxClientOptions {
|
|
13741
13460
|
/** The execution transport for the driven loop. */
|
|
13742
13461
|
backend: 'sandbox' | 'bridge' | 'router' | 'local';
|
|
@@ -13765,8 +13484,6 @@ interface ResolveSandboxClientOptions {
|
|
|
13765
13484
|
* `createExecutor`/`inlineSandboxClient` branch in each product.
|
|
13766
13485
|
*/
|
|
13767
13486
|
declare function resolveSandboxClient(opts: ResolveSandboxClientOptions): SandboxClient;
|
|
13768
|
-
//#endregion
|
|
13769
|
-
//#region src/runtime/retained-interactive.d.ts
|
|
13770
13487
|
/**
|
|
13771
13488
|
* Start one retry-safe native coding-agent TUI without dispatching a headless turn.
|
|
13772
13489
|
* The intent admission is durable before provider.create; the environment and
|
|
@@ -13784,8 +13501,6 @@ declare function startRetainedInteractiveRun(options: StartRetainedInteractiveRu
|
|
|
13784
13501
|
declare function recoverRetainedInteractiveRun(options: RecoverRetainedInteractiveRunOptions): Promise<RetainedInteractiveRunHandle | null>;
|
|
13785
13502
|
/** Rebuild controls for one exact provider-owned coding-agent process. @stable */
|
|
13786
13503
|
declare function reconnectRetainedInteractiveRun(options: ReconnectRetainedInteractiveRunOptions): Promise<RetainedInteractiveRunHandle | null>;
|
|
13787
|
-
//#endregion
|
|
13788
|
-
//#region src/runtime/retained-interactive-control.d.ts
|
|
13789
13504
|
/** Input for acquiring write authority over one exact interactive process. @stable */
|
|
13790
13505
|
interface ClaimRetainedInteractiveControlOptions {
|
|
13791
13506
|
readonly handle: RetainedInteractiveRunHandle;
|
|
@@ -13804,8 +13519,6 @@ interface ClaimRetainedInteractiveControlOptions {
|
|
|
13804
13519
|
* @stable
|
|
13805
13520
|
*/
|
|
13806
13521
|
declare function claimRetainedInteractiveControl(options: ClaimRetainedInteractiveControlOptions): Promise<AgentInteractiveSessionControlClaim>;
|
|
13807
|
-
//#endregion
|
|
13808
|
-
//#region src/runtime/retained-run-start.d.ts
|
|
13809
13522
|
/**
|
|
13810
13523
|
* Dispatch one detached, replayable run and return only after exact durable
|
|
13811
13524
|
* coordinates are confirmed by the provider and persisted by the caller.
|
|
@@ -13852,8 +13565,6 @@ declare function recoverRetainedRun(options: RecoverRetainedRunIntentOptions): P
|
|
|
13852
13565
|
declare function recoverRetainedRun(options: RecoverRetainedRunOptions): Promise<RecoverRetainedRunResult>;
|
|
13853
13566
|
/** Rebuild a retained-run client without retaining any object from the starter. @stable */
|
|
13854
13567
|
declare function reconnectRetainedRun(options: ReconnectRetainedRunOptions): Promise<RetainedRunHandle | null>;
|
|
13855
|
-
//#endregion
|
|
13856
|
-
//#region src/runtime/s3-private-cas-namespace.d.ts
|
|
13857
13568
|
interface PrivateCasNamespaceObject {
|
|
13858
13569
|
readonly key: string;
|
|
13859
13570
|
readonly etag: string;
|
|
@@ -13889,8 +13600,6 @@ interface PrivateCasNamespaceOperations {
|
|
|
13889
13600
|
signal?: AbortSignal;
|
|
13890
13601
|
}): Promise<PrivateCasNamespaceRetirement>;
|
|
13891
13602
|
}
|
|
13892
|
-
//#endregion
|
|
13893
|
-
//#region src/runtime/s3-private-cas-store.d.ts
|
|
13894
13603
|
/** An S3-compatible bucket (Amazon S3, Cloudflare R2) addressed with path-style requests. */
|
|
13895
13604
|
interface S3PrivateCasStoreOptions {
|
|
13896
13605
|
/** HTTPS origin of the S3 API, for example `https://<account>.r2.cloudflarestorage.com`. */
|
|
@@ -13934,8 +13643,6 @@ interface S3PrivateCasStore extends PrivateCasDurableStore, PrivateCasNamespaceO
|
|
|
13934
13643
|
* metadata. Reads return raw bytes; the private CAS port verifies them.
|
|
13935
13644
|
*/
|
|
13936
13645
|
declare function createS3PrivateCasStore(options: S3PrivateCasStoreOptions): S3PrivateCasStore;
|
|
13937
|
-
//#endregion
|
|
13938
|
-
//#region src/runtime/sandbox-acquire.d.ts
|
|
13939
13646
|
/** @experimental */
|
|
13940
13647
|
interface AcquireOptions {
|
|
13941
13648
|
/**
|
|
@@ -13965,8 +13672,6 @@ interface AcquireOptions {
|
|
|
13965
13672
|
* @experimental
|
|
13966
13673
|
*/
|
|
13967
13674
|
declare function acquireSandbox(client: SandboxClient, options: CreateSandboxOptions, acquire?: AcquireOptions): Promise<SandboxInstance>;
|
|
13968
|
-
//#endregion
|
|
13969
|
-
//#region src/runtime/sandbox-lineage.d.ts
|
|
13970
13675
|
/**
|
|
13971
13676
|
* A live box plus the session that threads its iterations together. Handed back
|
|
13972
13677
|
* by `start`/`fork`, passed into `continue`/`fork` to descend from. Opaque to
|
|
@@ -14057,8 +13762,6 @@ declare function createSandboxLineage(client: SandboxClient, options?: {
|
|
|
14057
13762
|
beforeDelete?: (box: SandboxInstance) => Promise<void>;
|
|
14058
13763
|
onAcquire?: (box: SandboxInstance, profile: AgentProfile) => void;
|
|
14059
13764
|
}): SandboxLineage;
|
|
14060
|
-
//#endregion
|
|
14061
|
-
//#region src/runtime/sandbox-run.d.ts
|
|
14062
13765
|
/**
|
|
14063
13766
|
* How a typed deliverable `Out` is materialized from a finished turn.
|
|
14064
13767
|
* - `events` — pure parse over the event array (identical to `OutputAdapter`).
|
|
@@ -14177,8 +13880,6 @@ interface OpenSandboxRunOptions {
|
|
|
14177
13880
|
* @experimental
|
|
14178
13881
|
*/
|
|
14179
13882
|
declare function openSandboxRun<Out>(client: SandboxClient, options: OpenSandboxRunOptions, deliverable: Deliverable<Out>): Promise<SandboxRun<Out>>;
|
|
14180
|
-
//#endregion
|
|
14181
|
-
//#region src/runtime/strategy-evolution.d.ts
|
|
14182
13883
|
interface EvolutionAuthor {
|
|
14183
13884
|
/** Exact author identity. */
|
|
14184
13885
|
profile: AgentProfile;
|
|
@@ -14320,8 +14021,6 @@ declare function runStrategyEvolution(cfg: StrategyEvolutionConfig): Promise<Evo
|
|
|
14320
14021
|
* by task and repeat, keyed by strategy name. `names` maps node ids to report names.
|
|
14321
14022
|
*/
|
|
14322
14023
|
declare function strategyTournament(state: SearchStateView, split: SearchSplit, names: ReadonlyMap<string, string>): StrategyTournament;
|
|
14323
|
-
//#endregion
|
|
14324
|
-
//#region src/runtime/stream-agent-turn.d.ts
|
|
14325
14024
|
/**
|
|
14326
14025
|
* The execution substrate one turn runs on — a closed discriminated union over
|
|
14327
14026
|
* the three stream surfaces the runtime already owns.
|
|
@@ -14440,8 +14139,6 @@ declare function streamAgentTurn(backend: AgentTurnBackend, input: AgentTurnInpu
|
|
|
14440
14139
|
* @stable
|
|
14441
14140
|
*/
|
|
14442
14141
|
declare function collectAgentTurn(stream: AsyncIterable<RuntimeStreamEvent>): Promise<CollectedAgentTurn>;
|
|
14443
|
-
//#endregion
|
|
14444
|
-
//#region src/runtime/structural-rollout.d.ts
|
|
14445
14142
|
/** Provider-neutral conversation records read by structural candidate extraction. */
|
|
14446
14143
|
type StructuralRolloutMessage = Record<string, unknown>;
|
|
14447
14144
|
/** The rollout's compute recipe — promoted from the proven rigs' env vars (K/REPAIRS/
|
|
@@ -14615,15 +14312,11 @@ interface StructuralRolloutConfig {
|
|
|
14615
14312
|
* `k + repairRounds + 1` so the samples, repairs, and the check-author consult all admit.
|
|
14616
14313
|
*/
|
|
14617
14314
|
declare function structuralRollout(config?: StructuralRolloutConfig): Strategy<StructuralRolloutResult>;
|
|
14618
|
-
//#endregion
|
|
14619
|
-
//#region src/runtime/supervise/authoring.d.ts
|
|
14620
14315
|
/** What the supervisor AUTHORS per sub-task: one complete canonical profile whose name and
|
|
14621
|
-
* task-specific
|
|
14316
|
+
* task-specific guidance are present. Every other `AgentProfile` axis is preserved exactly. */
|
|
14622
14317
|
type AuthoredProfile = AgentProfile & {
|
|
14623
14318
|
readonly name: string;
|
|
14624
|
-
readonly prompt: AgentProfilePrompt
|
|
14625
|
-
readonly systemPrompt: string;
|
|
14626
|
-
};
|
|
14319
|
+
readonly prompt: AgentProfilePrompt;
|
|
14627
14320
|
};
|
|
14628
14321
|
/** Narrow an untyped `spawn_worker` profile argument to an `AuthoredProfile`, or null if the
|
|
14629
14322
|
* supervisor failed to author one (empty/placeholder profile — a skill violation worth catching). */
|
|
@@ -14645,8 +14338,7 @@ declare const defaultProfileRichnessThresholds: ProfileRichnessThresholds;
|
|
|
14645
14338
|
/** Per-field verdict on one authored profile — the raw material the bench renders + scores. */
|
|
14646
14339
|
interface ProfileRichness {
|
|
14647
14340
|
readonly name: string;
|
|
14648
|
-
/**
|
|
14649
|
-
* convention, or a bare-string prompt — whichever the author used). */
|
|
14341
|
+
/** Resolved authored guidance from replacement, addition and instruction sections. */
|
|
14650
14342
|
readonly systemPrompt: string;
|
|
14651
14343
|
readonly systemPromptChars: number;
|
|
14652
14344
|
readonly systemPromptLines: number;
|
|
@@ -14676,8 +14368,6 @@ declare function profileRichnessFinding(richness: ProfileRichness, opts?: {
|
|
|
14676
14368
|
analystId?: string;
|
|
14677
14369
|
runId?: string;
|
|
14678
14370
|
}): AnalystFinding;
|
|
14679
|
-
//#endregion
|
|
14680
|
-
//#region src/runtime/supervise/chat-transport-executor.d.ts
|
|
14681
14371
|
/** Buffered OpenAI-compatible completion port used only for offline execution. */
|
|
14682
14372
|
type ChatCompletionsTransport = NonNullable<RouterToolsSeam['complete']>;
|
|
14683
14373
|
/** Conversation history keyed by the settled Runtime worker id. */
|
|
@@ -14722,8 +14412,6 @@ interface ChatWorkerSeamOptions {
|
|
|
14722
14412
|
}
|
|
14723
14413
|
/** Session-owning worker factory for graph continuity. */
|
|
14724
14414
|
declare function chatWorkerSeam(opts: ChatWorkerSeamOptions): MakeWorkerAgent;
|
|
14725
|
-
//#endregion
|
|
14726
|
-
//#region src/runtime/supervise/worker-events.d.ts
|
|
14727
14415
|
/** Live observation is bounded and process-local. A reconnect explicitly reports expired history. */
|
|
14728
14416
|
interface WorkerEventCursor {
|
|
14729
14417
|
readonly epoch: string;
|
|
@@ -14746,8 +14434,6 @@ type WorkerEventPage = {
|
|
|
14746
14434
|
readonly historyExpired: boolean;
|
|
14747
14435
|
readonly remaining: number;
|
|
14748
14436
|
};
|
|
14749
|
-
//#endregion
|
|
14750
|
-
//#region src/runtime/supervise/contracts/agent-scope.d.ts
|
|
14751
14437
|
/**
|
|
14752
14438
|
* One self-similar atom. A leaf is an `Agent` that never calls `scope.spawn`; a driver
|
|
14753
14439
|
* is an `Agent` whose `act` spawns children and reacts to them via `scope.next()`. An
|
|
@@ -15014,8 +14700,6 @@ interface WidenGate<Out> {
|
|
|
15014
14700
|
* must be explicitly argued per cell, never defaulted on). */
|
|
15015
14701
|
readonly judgeExempt?: boolean;
|
|
15016
14702
|
}
|
|
15017
|
-
//#endregion
|
|
15018
|
-
//#region src/runtime/supervise/contracts/supervisor-port.d.ts
|
|
15019
14703
|
/**
|
|
15020
14704
|
* Owns the conserved pool, the spawn log, the abort cascade, the OTP intensity breaker,
|
|
15021
14705
|
* and the root handle. `run` executes the root `Agent` to completion; `attach` wires a
|
|
@@ -15150,7 +14834,7 @@ interface SupervisorOpts {
|
|
|
15150
14834
|
*
|
|
15151
14835
|
* - `'release'`: the run will not be resumed, so nothing would ever reconcile or release those
|
|
15152
14836
|
* environments. The join barrier releases each one and journals an `environment-teardown`
|
|
15153
|
-
* receipt per environment.
|
|
14837
|
+
* receipt per environment. Four settled runs held 18 of a 60-slot
|
|
15154
14838
|
* Sandbox fleet for 19 to 37 hours without it. It then closes each released child's cursor
|
|
15155
14839
|
* slot with a terminal record marked `retainedExecution: 'released'`, so `spendGaps` names
|
|
15156
14840
|
* it `unreported` (a floor) rather than `never-settled` (a ceiling) and
|
|
@@ -15227,8 +14911,6 @@ type RootSignal = {
|
|
|
15227
14911
|
kind: 'cancel';
|
|
15228
14912
|
reason?: string;
|
|
15229
14913
|
};
|
|
15230
|
-
//#endregion
|
|
15231
|
-
//#region src/runtime/supervise/contracts/spawn-journal.d.ts
|
|
15232
14914
|
/** Journaled spawn-tree events (B1/B2). `seq` is the cursor order; `at` is an ISO
|
|
15233
14915
|
* timestamp for human inspection only (NOT a replay input). */
|
|
15234
14916
|
/** The file Runtime writes into a retained owner's workspace immediately before a checkpoint, and
|
|
@@ -15388,6 +15070,8 @@ type SpawnEvent = {
|
|
|
15388
15070
|
/** Provider model evidence is independent from the planned materialization receipt. */
|
|
15389
15071
|
providerModel?: ProviderModelExecutionEvidence;
|
|
15390
15072
|
infra?: boolean;
|
|
15073
|
+
/** Runtime-classified diagnosis; absent only when older records did not carry it. */
|
|
15074
|
+
failure?: RuntimeFailureCause;
|
|
15391
15075
|
/** Exact child failure. Present on every new `status: 'down'` record; optional only so
|
|
15392
15076
|
* journals written before this field existed remain replayable. */
|
|
15393
15077
|
reason?: string;
|
|
@@ -15428,6 +15112,8 @@ type SpawnEvent = {
|
|
|
15428
15112
|
reason: string;
|
|
15429
15113
|
source?: string;
|
|
15430
15114
|
infra?: boolean;
|
|
15115
|
+
/** Runtime-classified diagnosis; absent only when older records did not carry it. */
|
|
15116
|
+
failure?: RuntimeFailureCause;
|
|
15431
15117
|
spent?: Spend;
|
|
15432
15118
|
providerModel?: ProviderModelExecutionEvidence;
|
|
15433
15119
|
trace?: WorkerTraceEvidence;
|
|
@@ -15554,6 +15240,8 @@ type SpawnEvent = {
|
|
|
15554
15240
|
reason?: string;
|
|
15555
15241
|
retainedPendingCause?: RetainedPendingCause;
|
|
15556
15242
|
infra?: boolean;
|
|
15243
|
+
/** Runtime-classified diagnosis; absent only when older records did not carry it. */
|
|
15244
|
+
failure?: RuntimeFailureCause;
|
|
15557
15245
|
trace?: WorkerTraceEvidence;
|
|
15558
15246
|
outRef?: string;
|
|
15559
15247
|
traceRoot?: TraceRootReceipt;
|
|
@@ -16067,8 +15755,6 @@ interface ResultBlobStore {
|
|
|
16067
15755
|
put(outRef: string, artifact: unknown): Promise<void>;
|
|
16068
15756
|
get(outRef: string): Promise<unknown | undefined>;
|
|
16069
15757
|
}
|
|
16070
|
-
//#endregion
|
|
16071
|
-
//#region src/runtime/supervise/delegate.d.ts
|
|
16072
15758
|
/** The conserved pool a `delegate()` call applies when the caller does not pass its own `budget`.
|
|
16073
15759
|
* A modest token ceiling + a small iteration ceiling — generous enough for a few-worker decompose,
|
|
16074
15760
|
* bounded enough that an unsupervised intent cannot run away. Callers override via `opts.budget`. */
|
|
@@ -16102,8 +15788,6 @@ interface DelegateOptions<Out = unknown> {
|
|
|
16102
15788
|
* authored worker's delivered output; a `no-winner` result names why (never a fabricated success).
|
|
16103
15789
|
*/
|
|
16104
15790
|
declare function delegate<Out = unknown>(intent: string, opts: DelegateOptions<Out>): Promise<SupervisedResult<Out>>;
|
|
16105
|
-
//#endregion
|
|
16106
|
-
//#region src/runtime/supervise/designer-tools.d.ts
|
|
16107
15791
|
/** How the ENVIRONMENT executes a graph the designer asked to run. */
|
|
16108
15792
|
interface DesignerRunGraphEnv {
|
|
16109
15793
|
/** Run one graph (check already re-bound by {@link DesignerToolsEnv.bindCheck}). */
|
|
@@ -16129,8 +15813,6 @@ interface GraphDesignerExtraTools {
|
|
|
16129
15813
|
/** The designer's three tools over one registry. Record-every-run is enforced
|
|
16130
15814
|
* by construction: running IS recording. */
|
|
16131
15815
|
declare function graphDesignerExtraTools(env: DesignerToolsEnv): GraphDesignerExtraTools;
|
|
16132
|
-
//#endregion
|
|
16133
|
-
//#region src/runtime/supervise/dispatch.d.ts
|
|
16134
15816
|
/** One unit of queued work: the agent to run, its task, and the spawn options (budget + label).
|
|
16135
15817
|
* `nextUnit` mints these lazily so a queue can be generated, re-ordered, or grown while the
|
|
16136
15818
|
* dispatcher runs. */
|
|
@@ -16201,50 +15883,122 @@ declare function queueOf<Out>(units: ReadonlyArray<{
|
|
|
16201
15883
|
task: unknown;
|
|
16202
15884
|
label: string;
|
|
16203
15885
|
}>, budget: Budget): () => DispatchUnit<Out> | undefined;
|
|
16204
|
-
|
|
16205
|
-
|
|
16206
|
-
|
|
16207
|
-
|
|
15886
|
+
/** Explicit authored trigger slots in compiled graph data. An empty list marks fully bound data. */
|
|
15887
|
+
declare const graphTriggerBindingsSchema: z.ZodArray<z.ZodObject<{
|
|
15888
|
+
path: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
15889
|
+
mode: z.ZodEnum<{
|
|
15890
|
+
value: "value";
|
|
15891
|
+
text: "text";
|
|
15892
|
+
}>;
|
|
15893
|
+
parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
15894
|
+
literal: z.ZodString;
|
|
15895
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
15896
|
+
trigger: z.ZodArray<z.ZodString>;
|
|
15897
|
+
}, z.core.$strict>]>>;
|
|
15898
|
+
}, z.core.$strict>>;
|
|
15899
|
+
/** @useDeclaredType */
|
|
15900
|
+
type GraphTriggerBinding = z.infer<typeof graphTriggerBindingsSchema>[number];
|
|
15901
|
+
/** @inline */
|
|
15902
|
+
interface StoredGraphContent {
|
|
16208
15903
|
readonly digest: string;
|
|
15904
|
+
/** Authored trigger-slot provenance; present (even empty) on compiled loader output. */
|
|
15905
|
+
readonly triggerBindings?: readonly GraphTriggerBinding[];
|
|
16209
15906
|
readonly nodes: ReadonlyArray<{
|
|
16210
15907
|
readonly id: string;
|
|
16211
15908
|
readonly profile: AgentProfile;
|
|
16212
15909
|
}>;
|
|
16213
|
-
readonly
|
|
16214
|
-
readonly budget: AgentGraph['budget'];
|
|
16215
|
-
readonly deliverable: {
|
|
16216
|
-
readonly describe?: string;
|
|
16217
|
-
readonly checkRef?: string;
|
|
16218
|
-
};
|
|
15910
|
+
readonly deliverable: Pick<AgentGraph['deliverable'], 'describe' | 'checkRef' | 'command' | 'when'>;
|
|
16219
15911
|
/** A flow graph's entry and gates; absent for any other graph. */
|
|
16220
15912
|
readonly entry?: AgentGraph['entry'];
|
|
16221
15913
|
readonly gates?: AgentGraph['gates'];
|
|
16222
15914
|
}
|
|
16223
|
-
/**
|
|
15915
|
+
/** A graph as stored. Observed imports retain unknown directives and budgets;
|
|
15916
|
+
* they describe what happened and cannot be replayed as executable graphs. */
|
|
15917
|
+
type StoredGraph = StoredGraphContent & ({
|
|
15918
|
+
readonly observed?: false;
|
|
15919
|
+
readonly edges: ReadonlyArray<GraphEdge>;
|
|
15920
|
+
readonly budget: AgentGraph['budget'];
|
|
15921
|
+
} | {
|
|
15922
|
+
readonly observed: true;
|
|
15923
|
+
readonly edges: ReadonlyArray<GraphEdge | {
|
|
15924
|
+
readonly from: string;
|
|
15925
|
+
readonly to: string;
|
|
15926
|
+
}>;
|
|
15927
|
+
readonly budget?: AgentGraph['budget'];
|
|
15928
|
+
});
|
|
15929
|
+
/** Editable graph data; registration computes its digest when it is omitted. */
|
|
15930
|
+
type StoredGraphInput = Omit<Extract<StoredGraph, {
|
|
15931
|
+
readonly observed?: false;
|
|
15932
|
+
}>, 'digest'> & {
|
|
15933
|
+
readonly digest?: string;
|
|
15934
|
+
};
|
|
15935
|
+
/** One run or an explicitly incomplete observation of a graph, for one task shape. */
|
|
16224
15936
|
interface GraphRunRecord {
|
|
16225
15937
|
/** Content-address of the exact graph that ran. */
|
|
16226
15938
|
readonly graphDigest: string;
|
|
16227
15939
|
/** Digest of the normalized task shape the designer computed for lookup. */
|
|
16228
15940
|
readonly taskDigest: string;
|
|
16229
15941
|
readonly startedAt: string;
|
|
16230
|
-
|
|
15942
|
+
/** Absent while running or when completion was not established. */
|
|
15943
|
+
readonly finishedAt?: string;
|
|
16231
15944
|
readonly outcome: {
|
|
16232
15945
|
readonly kind: 'delivered';
|
|
16233
15946
|
readonly summary?: string;
|
|
16234
15947
|
} | {
|
|
16235
15948
|
readonly kind: 'no-winner';
|
|
16236
15949
|
readonly reason?: string;
|
|
15950
|
+
} | {
|
|
15951
|
+
readonly kind: 'unknown' | 'running';
|
|
15952
|
+
readonly reason: string;
|
|
16237
15953
|
};
|
|
16238
|
-
/**
|
|
15954
|
+
/** Measured accounting; running observations are to date. Unknown channels omitted. */
|
|
16239
15955
|
readonly cost: {
|
|
16240
15956
|
readonly iterations?: number;
|
|
16241
15957
|
readonly tokens?: number;
|
|
16242
15958
|
readonly usd?: number;
|
|
16243
15959
|
readonly ms?: number;
|
|
15960
|
+
readonly inputTokens?: number;
|
|
15961
|
+
readonly outputTokens?: number;
|
|
15962
|
+
readonly humanMessages?: number;
|
|
15963
|
+
readonly leadMessages?: number;
|
|
15964
|
+
/** Elapsed wall time from the task start to an independently verified merge. */
|
|
15965
|
+
readonly mergeMs?: number;
|
|
16244
15966
|
};
|
|
16245
|
-
/**
|
|
16246
|
-
readonly traversals
|
|
15967
|
+
/** Metered ledger size, absent when a source exposes relationships without traversals. */
|
|
15968
|
+
readonly traversals?: number;
|
|
16247
15969
|
readonly exhaustedEdges?: ReadonlyArray<string>;
|
|
15970
|
+
/** Explicit source metadata, never classified from transcript or PR prose. */
|
|
15971
|
+
readonly taskType?: 'feature' | 'bugfix' | 'consolidation' | 'investigation' | 'ops';
|
|
15972
|
+
/** Stable run identity; re-ingesting this source replaces its observation. */
|
|
15973
|
+
readonly source?: {
|
|
15974
|
+
readonly kind: string;
|
|
15975
|
+
readonly id: string;
|
|
15976
|
+
readonly url?: string;
|
|
15977
|
+
};
|
|
15978
|
+
readonly observedAt?: string;
|
|
15979
|
+
/** Link to the canonical trace run; execution trees remain trace-owned. */
|
|
15980
|
+
readonly traceRunId?: string;
|
|
15981
|
+
/** Canonical ordered adjacency. This is not a graph-isomorphism claim. */
|
|
15982
|
+
readonly topologyDigest?: string;
|
|
15983
|
+
readonly evidence?: ReadonlyArray<{
|
|
15984
|
+
readonly kind: string;
|
|
15985
|
+
readonly url: string;
|
|
15986
|
+
readonly at?: string;
|
|
15987
|
+
}>;
|
|
15988
|
+
readonly nodeUsage?: ReadonlyArray<{
|
|
15989
|
+
readonly nodeId: string;
|
|
15990
|
+
readonly sourceId?: string;
|
|
15991
|
+
readonly startedAt?: string;
|
|
15992
|
+
/** Latest recorded activity, not a claim that the node finished. */
|
|
15993
|
+
readonly lastRecordAt?: string;
|
|
15994
|
+
readonly finishedAt?: string;
|
|
15995
|
+
readonly inputTokens?: number;
|
|
15996
|
+
readonly outputTokens?: number;
|
|
15997
|
+
readonly humanMessages?: number;
|
|
15998
|
+
readonly leadMessages?: number;
|
|
15999
|
+
}>;
|
|
16000
|
+
/** Missing or partial evidence, including incomplete accounting channels. */
|
|
16001
|
+
readonly unknowns?: ReadonlyArray<string>;
|
|
16248
16002
|
}
|
|
16249
16003
|
interface GraphRegistryDir {
|
|
16250
16004
|
readonly root: string;
|
|
@@ -16266,10 +16020,51 @@ declare function graphRegistry(root: string): GraphRegistryDir;
|
|
|
16266
16020
|
* Idempotent per (taskDigest, graphDigest, startedAt): a replayed append with
|
|
16267
16021
|
* the same key replaces the prior row rather than duplicating it. */
|
|
16268
16022
|
declare function recordGraphRun(reg: GraphRegistryDir, graph: AgentGraph, record: GraphRunRecord): Promise<StoredGraph>;
|
|
16023
|
+
/** Store an executable graph or an observed external topology in the same registry.
|
|
16024
|
+
* Imported observations retain their source identity and never authorize replay.
|
|
16025
|
+
* A reader refreshing facts can preserve independently joined labels; an explicit
|
|
16026
|
+
* correction leaves preserveLabels unset and replaces the record. */
|
|
16027
|
+
declare function recordStoredGraphRun(reg: GraphRegistryDir, definition: StoredGraph | StoredGraphInput, record?: GraphRunRecord, options?: {
|
|
16028
|
+
readonly preserveLabels?: boolean;
|
|
16029
|
+
}): Promise<StoredGraph>;
|
|
16269
16030
|
/** All records, newest last. */
|
|
16270
16031
|
declare function listGraphRuns(reg: GraphRegistryDir): Promise<GraphRunRecord[]>;
|
|
16271
|
-
/**
|
|
16272
|
-
|
|
16032
|
+
/** Filters over the existing graph run records. Missing source kind is native. */
|
|
16033
|
+
interface GraphRunQuery {
|
|
16034
|
+
readonly taskDigest?: string;
|
|
16035
|
+
readonly taskType?: GraphRunRecord['taskType'] | 'unknown';
|
|
16036
|
+
readonly topologyDigest?: string;
|
|
16037
|
+
readonly sourceKind?: string;
|
|
16038
|
+
}
|
|
16039
|
+
/** Records for one task shape or deterministic label query, newest last. */
|
|
16040
|
+
declare function graphRunsFor(reg: GraphRegistryDir, query?: string | GraphRunQuery): Promise<GraphRunRecord[]>;
|
|
16041
|
+
/** Descriptive task-type/topology measurements, with every population explicit.
|
|
16042
|
+
* Unknown and running runs never enter the assessed denominator or medians. */
|
|
16043
|
+
interface GraphCorpusGroup {
|
|
16044
|
+
readonly taskType: NonNullable<GraphRunRecord['taskType']> | 'unknown';
|
|
16045
|
+
readonly topologyDigest: string;
|
|
16046
|
+
readonly delivered: number;
|
|
16047
|
+
readonly assessed: number;
|
|
16048
|
+
readonly unknown: number;
|
|
16049
|
+
readonly deliveredRate: number | null;
|
|
16050
|
+
readonly medianWallMs: number | null;
|
|
16051
|
+
readonly wallMsCount: number;
|
|
16052
|
+
readonly medianMergeMs: number | null;
|
|
16053
|
+
readonly mergeMsCount: number;
|
|
16054
|
+
readonly medianTokens: number | null;
|
|
16055
|
+
readonly tokenCount: number;
|
|
16056
|
+
readonly medianHumanMessages: number | null;
|
|
16057
|
+
readonly humanMessageCount: number;
|
|
16058
|
+
readonly runs: readonly GraphRunRecord[];
|
|
16059
|
+
}
|
|
16060
|
+
/** The registry's observational view. It neither authorizes replay nor proves a causal win. */
|
|
16061
|
+
interface GraphCorpusSummary {
|
|
16062
|
+
readonly recordCount: number;
|
|
16063
|
+
readonly groups: readonly GraphCorpusGroup[];
|
|
16064
|
+
}
|
|
16065
|
+
/** Query and rank the same registry records using the opt-in observational
|
|
16066
|
+
* policy: delivery rate, wall time, tokens, then human messages; unknowns last. */
|
|
16067
|
+
declare function graphCorpusSummary(reg: GraphRegistryDir, query?: GraphRunQuery): Promise<GraphCorpusSummary>;
|
|
16273
16068
|
type GraphSelection = {
|
|
16274
16069
|
readonly kind: 'replay';
|
|
16275
16070
|
readonly graph: StoredGraph;
|
|
@@ -16280,19 +16075,273 @@ type GraphSelection = {
|
|
|
16280
16075
|
};
|
|
16281
16076
|
/** The documented heuristic: delivered beats failed; among delivered, cheaper
|
|
16282
16077
|
* (tokens, then iterations) wins; ties go to the most recent. */
|
|
16283
|
-
declare function pickBestGraph(records: ReadonlyArray<GraphRunRecord
|
|
16078
|
+
declare function pickBestGraph(records: ReadonlyArray<GraphRunRecord>, options?: {
|
|
16079
|
+
readonly policy?: 'native' | 'observed';
|
|
16080
|
+
}): GraphRunRecord | undefined;
|
|
16284
16081
|
/** Load a stored graph by digest. */
|
|
16285
16082
|
declare function loadGraph(reg: GraphRegistryDir, digest: string): Promise<StoredGraph | undefined>;
|
|
16286
16083
|
/** The designer's lookup: replay the known-good graph for this task shape, or
|
|
16287
16084
|
* author a new one — with the reason stated either way (the decision is data). */
|
|
16288
16085
|
declare function lookupGraph(reg: GraphRegistryDir, taskDigest: string): Promise<GraphSelection>;
|
|
16289
|
-
/** Rehydrate a stored graph
|
|
16290
|
-
|
|
16291
|
-
declare function graphFromStored(stored: StoredGraph, check: AgentGraph['deliverable']['check']): AgentGraph;
|
|
16086
|
+
/** Rehydrate a stored graph, binding trigger data and an environment-owned named check. */
|
|
16087
|
+
declare function graphFromStored(stored: StoredGraph | StoredGraphInput, environment?: AgentGraph['deliverable']['check'] | GraphFromStoredOptions): AgentGraph;
|
|
16292
16088
|
/** Digests present on disk (integrity probe for tests and audits). */
|
|
16293
16089
|
declare function storedGraphDigests(reg: GraphRegistryDir): Promise<string[]>;
|
|
16294
|
-
|
|
16295
|
-
|
|
16090
|
+
type GraphFileSeat = NonNullable<AgentProfile['seats']>[number];
|
|
16091
|
+
/** A provider name in authored data needs an environment-owned canonical connection binding. */
|
|
16092
|
+
declare class GraphFileResolutionError extends Error {
|
|
16093
|
+
readonly provider: string;
|
|
16094
|
+
readonly node: string;
|
|
16095
|
+
readonly code: "CONNECTION_REQUIRED";
|
|
16096
|
+
readonly fixCommand = "tangle graph run --help";
|
|
16097
|
+
constructor(provider: string, node: string);
|
|
16098
|
+
}
|
|
16099
|
+
interface LoadGraphFileOptions {
|
|
16100
|
+
/** Exact authored bytes. The file argument still names the format and default working directory. */
|
|
16101
|
+
readonly source?: string;
|
|
16102
|
+
readonly cwd?: string;
|
|
16103
|
+
readonly signal?: AbortSignal;
|
|
16104
|
+
readonly params?: Readonly<Record<string, unknown>>;
|
|
16105
|
+
readonly trigger?: Readonly<Record<string, unknown>>;
|
|
16106
|
+
/** Concrete Bridge inventory defaults, in preference order. No authentication is performed here. */
|
|
16107
|
+
readonly seats?: readonly GraphFileSeat[];
|
|
16108
|
+
/** One CLI override for every node, ahead of per-node options and authored seats. */
|
|
16109
|
+
readonly seat?: string;
|
|
16110
|
+
readonly nodeSeats?: Readonly<Record<string, string | readonly string[]>>;
|
|
16111
|
+
/** Bridge-owned syntax, model and login resolution. Undefined marks an unavailable candidate;
|
|
16112
|
+
* errors propagate unchanged. The loader does not parse aliases or reasoning effort. */
|
|
16113
|
+
readonly resolveSeat?: (seat: string | undefined, context: {
|
|
16114
|
+
readonly node: string;
|
|
16115
|
+
readonly cwd?: string;
|
|
16116
|
+
readonly signal?: AbortSignal;
|
|
16117
|
+
readonly lastCandidate: boolean;
|
|
16118
|
+
}) => GraphFileSeat | undefined | Promise<GraphFileSeat | undefined>;
|
|
16119
|
+
/** Environment-owned provider-name bindings; files never carry Hub credentials. */
|
|
16120
|
+
readonly needs?: Readonly<Record<string, NonNullable<AgentProfile['connections']>[number]>>;
|
|
16121
|
+
readonly registry?: PromptRegistry;
|
|
16122
|
+
readonly analysts?: AnalystRegistry$1;
|
|
16123
|
+
}
|
|
16124
|
+
interface LoadedGraphFile {
|
|
16125
|
+
readonly graph: StoredGraph;
|
|
16126
|
+
readonly params: Readonly<Record<string, unknown>>;
|
|
16127
|
+
/** Deployment metadata is preserved separately and never contributes to the graph digest. */
|
|
16128
|
+
readonly on?: unknown;
|
|
16129
|
+
}
|
|
16130
|
+
/** Parse the canonical YAML/JSON file into content-addressed Runtime graph data, offline. */
|
|
16131
|
+
declare function loadGraphFile(file: string, options?: LoadGraphFileOptions): Promise<LoadedGraphFile>;
|
|
16132
|
+
/** The same data grammar as routes; no executable expressions or additional operators. */
|
|
16133
|
+
declare const graphRouteWhenSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
16134
|
+
equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
16135
|
+
node: z.ZodOptional<z.ZodString>;
|
|
16136
|
+
pointer: z.ZodString;
|
|
16137
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
16138
|
+
in: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>;
|
|
16139
|
+
node: z.ZodOptional<z.ZodString>;
|
|
16140
|
+
pointer: z.ZodString;
|
|
16141
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
16142
|
+
exists: z.ZodBoolean;
|
|
16143
|
+
node: z.ZodOptional<z.ZodString>;
|
|
16144
|
+
pointer: z.ZodString;
|
|
16145
|
+
}, z.core.$strict>]>, z.ZodObject<{
|
|
16146
|
+
all: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
16147
|
+
equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
16148
|
+
node: z.ZodOptional<z.ZodString>;
|
|
16149
|
+
pointer: z.ZodString;
|
|
16150
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
16151
|
+
in: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>;
|
|
16152
|
+
node: z.ZodOptional<z.ZodString>;
|
|
16153
|
+
pointer: z.ZodString;
|
|
16154
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
16155
|
+
exists: z.ZodBoolean;
|
|
16156
|
+
node: z.ZodOptional<z.ZodString>;
|
|
16157
|
+
pointer: z.ZodString;
|
|
16158
|
+
}, z.core.$strict>]>>;
|
|
16159
|
+
}, z.core.$strict>]>;
|
|
16160
|
+
/** Authoring envelope. Canonical profiles and topology are validated by their existing owners. */
|
|
16161
|
+
declare const graphFileSchema: z.ZodObject<{
|
|
16162
|
+
digest: z.ZodOptional<z.ZodString>;
|
|
16163
|
+
graph: z.ZodOptional<z.ZodString>;
|
|
16164
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
16165
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
16166
|
+
default: z.ZodOptional<z.ZodUnknown>;
|
|
16167
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
16168
|
+
string: "string";
|
|
16169
|
+
number: "number";
|
|
16170
|
+
boolean: "boolean";
|
|
16171
|
+
object: "object";
|
|
16172
|
+
null: "null";
|
|
16173
|
+
array: "array";
|
|
16174
|
+
integer: "integer";
|
|
16175
|
+
}>>;
|
|
16176
|
+
}, z.core.$strict>>>;
|
|
16177
|
+
nodes: z.ZodArray<z.ZodObject<{
|
|
16178
|
+
id: z.ZodString;
|
|
16179
|
+
profile: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
16180
|
+
seat: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
16181
|
+
needs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
16182
|
+
}, z.core.$strict>>;
|
|
16183
|
+
entry: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
16184
|
+
node: z.ZodString;
|
|
16185
|
+
task: z.ZodUnknown;
|
|
16186
|
+
}, z.core.$strict>]>>>;
|
|
16187
|
+
edges: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
16188
|
+
gates: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
16189
|
+
budget: z.ZodObject<{
|
|
16190
|
+
maxIterations: z.ZodNumber;
|
|
16191
|
+
maxTokens: z.ZodNumber;
|
|
16192
|
+
maxUsd: z.ZodOptional<z.ZodNumber>;
|
|
16193
|
+
deadlineMs: z.ZodOptional<z.ZodNumber>;
|
|
16194
|
+
resources: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
16195
|
+
unit: z.ZodString;
|
|
16196
|
+
limit: z.ZodNumber;
|
|
16197
|
+
}, z.core.$strict>>>;
|
|
16198
|
+
}, z.core.$strict>;
|
|
16199
|
+
check: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
16200
|
+
equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
16201
|
+
node: z.ZodOptional<z.ZodString>;
|
|
16202
|
+
pointer: z.ZodString;
|
|
16203
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
16204
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
16205
|
+
in: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>;
|
|
16206
|
+
node: z.ZodOptional<z.ZodString>;
|
|
16207
|
+
pointer: z.ZodString;
|
|
16208
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
16209
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
16210
|
+
exists: z.ZodBoolean;
|
|
16211
|
+
node: z.ZodOptional<z.ZodString>;
|
|
16212
|
+
pointer: z.ZodString;
|
|
16213
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
16214
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
16215
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
16216
|
+
all: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
16217
|
+
equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
16218
|
+
node: z.ZodOptional<z.ZodString>;
|
|
16219
|
+
pointer: z.ZodString;
|
|
16220
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
16221
|
+
in: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>;
|
|
16222
|
+
node: z.ZodOptional<z.ZodString>;
|
|
16223
|
+
pointer: z.ZodString;
|
|
16224
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
16225
|
+
exists: z.ZodBoolean;
|
|
16226
|
+
node: z.ZodOptional<z.ZodString>;
|
|
16227
|
+
pointer: z.ZodString;
|
|
16228
|
+
}, z.core.$strict>]>>;
|
|
16229
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
16230
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
16231
|
+
command: z.ZodObject<{
|
|
16232
|
+
command: z.ZodString;
|
|
16233
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
16234
|
+
}, z.core.$strict>;
|
|
16235
|
+
}, z.core.$strict>]>>;
|
|
16236
|
+
deliverable: z.ZodOptional<z.ZodObject<{
|
|
16237
|
+
describe: z.ZodOptional<z.ZodString>;
|
|
16238
|
+
checkRef: z.ZodString;
|
|
16239
|
+
command: z.ZodOptional<z.ZodObject<{
|
|
16240
|
+
command: z.ZodString;
|
|
16241
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
16242
|
+
}, z.core.$strict>>;
|
|
16243
|
+
when: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
16244
|
+
equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
16245
|
+
node: z.ZodOptional<z.ZodString>;
|
|
16246
|
+
pointer: z.ZodString;
|
|
16247
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
16248
|
+
in: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>;
|
|
16249
|
+
node: z.ZodOptional<z.ZodString>;
|
|
16250
|
+
pointer: z.ZodString;
|
|
16251
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
16252
|
+
exists: z.ZodBoolean;
|
|
16253
|
+
node: z.ZodOptional<z.ZodString>;
|
|
16254
|
+
pointer: z.ZodString;
|
|
16255
|
+
}, z.core.$strict>]>, z.ZodObject<{
|
|
16256
|
+
all: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
16257
|
+
equals: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
16258
|
+
node: z.ZodOptional<z.ZodString>;
|
|
16259
|
+
pointer: z.ZodString;
|
|
16260
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
16261
|
+
in: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>;
|
|
16262
|
+
node: z.ZodOptional<z.ZodString>;
|
|
16263
|
+
pointer: z.ZodString;
|
|
16264
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
16265
|
+
exists: z.ZodBoolean;
|
|
16266
|
+
node: z.ZodOptional<z.ZodString>;
|
|
16267
|
+
pointer: z.ZodString;
|
|
16268
|
+
}, z.core.$strict>]>>;
|
|
16269
|
+
}, z.core.$strict>]>>;
|
|
16270
|
+
}, z.core.$strict>>;
|
|
16271
|
+
on: z.ZodOptional<z.ZodUnknown>;
|
|
16272
|
+
}, z.core.$strict>;
|
|
16273
|
+
/** @inline */
|
|
16274
|
+
interface ObservedFact<T> {
|
|
16275
|
+
readonly value: T | null;
|
|
16276
|
+
readonly unavailable?: string | null;
|
|
16277
|
+
readonly partial?: string;
|
|
16278
|
+
}
|
|
16279
|
+
/** Structural projection of traces' SessionFacts. The trace reader owns all
|
|
16280
|
+
* measurements; this adapter neither parses transcripts nor recounts tokens. */
|
|
16281
|
+
interface ObservedSessionFacts {
|
|
16282
|
+
readonly sessionId: string | null;
|
|
16283
|
+
readonly traceId?: string;
|
|
16284
|
+
readonly rootSpanId?: ObservedFact<string>;
|
|
16285
|
+
readonly parentSessionId: string | null;
|
|
16286
|
+
readonly harness: string | null;
|
|
16287
|
+
readonly firstRecordAt: ObservedFact<string>;
|
|
16288
|
+
readonly lastRecordAt: ObservedFact<string>;
|
|
16289
|
+
readonly tokens: {
|
|
16290
|
+
readonly input: number | null;
|
|
16291
|
+
readonly output: number | null;
|
|
16292
|
+
readonly unavailable?: string | null;
|
|
16293
|
+
};
|
|
16294
|
+
readonly humanTurns: ObservedFact<readonly unknown[]>;
|
|
16295
|
+
/** Exact pre-cap counts from the trace owner's sender classification. */
|
|
16296
|
+
readonly typedTurnCounts?: ObservedFact<readonly {
|
|
16297
|
+
readonly actor: string;
|
|
16298
|
+
readonly turns: number;
|
|
16299
|
+
}[]>;
|
|
16300
|
+
/** Actual unread source records, counted only by the trace reader. */
|
|
16301
|
+
readonly unreadRecords?: ObservedFact<number>;
|
|
16302
|
+
/** Only an authoritative sender-role join can establish who led the work. */
|
|
16303
|
+
readonly leadMessages?: ObservedFact<number>;
|
|
16304
|
+
readonly agent: ObservedFact<{
|
|
16305
|
+
readonly profileName?: string;
|
|
16306
|
+
readonly model?: string;
|
|
16307
|
+
readonly harness?: string;
|
|
16308
|
+
}>;
|
|
16309
|
+
}
|
|
16310
|
+
/** Provenance and explicit labels for one imported run. spanRun is a structural
|
|
16311
|
+
* projection of traces' existing SpanRunSnapshot, never a replacement run tree. */
|
|
16312
|
+
interface GraphSessionObservationOptions {
|
|
16313
|
+
readonly source: NonNullable<GraphRunRecord['source']>;
|
|
16314
|
+
readonly traceRunId?: string;
|
|
16315
|
+
readonly taskType?: GraphRunRecord['taskType'];
|
|
16316
|
+
readonly taskShape?: Record<string, unknown>;
|
|
16317
|
+
readonly outcome?: GraphRunRecord['outcome'];
|
|
16318
|
+
/** Authoritative task start; first trace activity alone does not establish it. */
|
|
16319
|
+
readonly startedAt?: string;
|
|
16320
|
+
readonly finishedAt?: string;
|
|
16321
|
+
readonly observedAt?: string;
|
|
16322
|
+
readonly evidence?: GraphRunRecord['evidence'];
|
|
16323
|
+
readonly spanRun?: {
|
|
16324
|
+
readonly present: boolean;
|
|
16325
|
+
readonly traceIds: readonly string[];
|
|
16326
|
+
readonly orphanSpans: number;
|
|
16327
|
+
readonly nodes: readonly {
|
|
16328
|
+
readonly traceId: string;
|
|
16329
|
+
readonly spanId: string;
|
|
16330
|
+
readonly parentNodeId: string | null;
|
|
16331
|
+
readonly runtime: string | null;
|
|
16332
|
+
readonly kind?: string | null;
|
|
16333
|
+
}[];
|
|
16334
|
+
};
|
|
16335
|
+
readonly complete?: boolean;
|
|
16336
|
+
readonly issues?: readonly unknown[];
|
|
16337
|
+
}
|
|
16338
|
+
/** Project an existing canonical span run tree into an observed graph design,
|
|
16339
|
+
* linked to its trace run. SessionFacts supplies exclusive accounting. No
|
|
16340
|
+
* execution tree, transcript, or source-specific traversal parser is stored. */
|
|
16341
|
+
declare function graphFromSessionFacts(facts: readonly ObservedSessionFacts[], options: GraphSessionObservationOptions): {
|
|
16342
|
+
readonly graph: StoredGraph;
|
|
16343
|
+
readonly record: GraphRunRecord;
|
|
16344
|
+
};
|
|
16296
16345
|
/** @experimental */
|
|
16297
16346
|
interface InPlaceCliExecutorOptions {
|
|
16298
16347
|
/** Absolute path to the EXISTING directory the harness edits. The caller owns its lifecycle:
|
|
@@ -16332,8 +16381,6 @@ interface InPlaceCliExecutorOptions {
|
|
|
16332
16381
|
* @experimental
|
|
16333
16382
|
*/
|
|
16334
16383
|
declare function createInPlaceCliExecutor(options: InPlaceCliExecutorOptions): Executor<InPlaceHarnessResult>;
|
|
16335
|
-
//#endregion
|
|
16336
|
-
//#region src/runtime/supervise/interactive-worker.d.ts
|
|
16337
16384
|
/** Environment fields supplied to every interactive worker after Runtime adds the exact profile. */
|
|
16338
16385
|
type InteractiveWorkerEnvironment = Omit<CreateAgentEnvironmentInput, 'profile' | 'idempotencyKey' | 'signal'>;
|
|
16339
16386
|
/** Native interactive worker output. Provider usage is intentionally not fabricated. */
|
|
@@ -16385,8 +16432,6 @@ interface InteractiveWorkerKeyInput {
|
|
|
16385
16432
|
* it through the provider's public `get`/interactive contract.
|
|
16386
16433
|
*/
|
|
16387
16434
|
declare function workerFromInteractiveProvider(provider: AgentEnvironmentProvider, options?: InteractiveWorkerOptions): MakeWorkerAgent;
|
|
16388
|
-
//#endregion
|
|
16389
|
-
//#region src/runtime/supervise/profile-registry.d.ts
|
|
16390
16435
|
/** One completed run of one exact profile revision, under its stable NAME. */
|
|
16391
16436
|
interface ProfileRunRecord {
|
|
16392
16437
|
/** The profile's stable name — the registry key (routing identity). */
|
|
@@ -16434,8 +16479,6 @@ declare function bestProfileFor(reg: ProfileRegistryDir, name: string): Promise<
|
|
|
16434
16479
|
profile: AgentProfile;
|
|
16435
16480
|
record: ProfileRunRecord;
|
|
16436
16481
|
} | undefined>;
|
|
16437
|
-
//#endregion
|
|
16438
|
-
//#region src/runtime/supervise/provision-supervisor.d.ts
|
|
16439
16482
|
/** Caller-supplied environment provider for one supervisor run. */
|
|
16440
16483
|
interface ProvisionSupervisorConnection {
|
|
16441
16484
|
/** A constructed provider that owns exact-profile admission and environment reconnection. */
|
|
@@ -16490,8 +16533,6 @@ interface ProvisionedSupervisor {
|
|
|
16490
16533
|
* connection selection; Runtime does not infer them from process environment variables.
|
|
16491
16534
|
*/
|
|
16492
16535
|
declare function provisionSupervisor(request: ProvisionSupervisorRequest): Promise<ProvisionedSupervisor>;
|
|
16493
|
-
//#endregion
|
|
16494
|
-
//#region src/runtime/supervise/remote-supervisor.d.ts
|
|
16495
16536
|
/** Minimal agent identity and topology returned by the protected reader. */
|
|
16496
16537
|
interface RemoteSupervisorAgent {
|
|
16497
16538
|
readonly id: string;
|
|
@@ -16499,6 +16540,7 @@ interface RemoteSupervisorAgent {
|
|
|
16499
16540
|
readonly label: string;
|
|
16500
16541
|
readonly status: string;
|
|
16501
16542
|
readonly runtime: string;
|
|
16543
|
+
readonly failure?: RuntimeFailureCause;
|
|
16502
16544
|
}
|
|
16503
16545
|
/** Current owned tree, including nested managers and resumed nodes. */
|
|
16504
16546
|
interface RemoteSupervisorTree {
|
|
@@ -16512,15 +16554,54 @@ type RemoteWorkerEvents = WorkerEventPage;
|
|
|
16512
16554
|
interface RemoteSupervisorReader {
|
|
16513
16555
|
tree(): Promise<RemoteSupervisorTree>;
|
|
16514
16556
|
observe(workerId: string, cursor?: WorkerEventCursor): Promise<{
|
|
16515
|
-
agent:
|
|
16557
|
+
agent: RemoteSupervisorAgent;
|
|
16516
16558
|
events: RemoteWorkerEvents;
|
|
16517
16559
|
}>;
|
|
16518
16560
|
close(): Promise<void>;
|
|
16519
16561
|
}
|
|
16562
|
+
declare const steerSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
16563
|
+
delivered: z.ZodLiteral<true>;
|
|
16564
|
+
progress: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
16565
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
16566
|
+
delivered: z.ZodLiteral<false>;
|
|
16567
|
+
outcome: z.ZodCustom<"unknown-worker" | "already-settled" | "runtime-has-no-inbox" | "scope-stopped" | "runtime-error", "unknown-worker" | "already-settled" | "runtime-has-no-inbox" | "scope-stopped" | "runtime-error">;
|
|
16568
|
+
reason: z.ZodString;
|
|
16569
|
+
progress: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
16570
|
+
}, z.core.$strip>], "delivered">;
|
|
16571
|
+
declare const cancelSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
16572
|
+
live: z.ZodNumber;
|
|
16573
|
+
queued: z.ZodNumber;
|
|
16574
|
+
cancelled: z.ZodLiteral<true>;
|
|
16575
|
+
workerId: z.ZodString;
|
|
16576
|
+
label: z.ZodString;
|
|
16577
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
16578
|
+
live: z.ZodNumber;
|
|
16579
|
+
queued: z.ZodNumber;
|
|
16580
|
+
released: z.ZodLiteral<true>;
|
|
16581
|
+
workerId: z.ZodString;
|
|
16582
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
16583
|
+
live: z.ZodNumber;
|
|
16584
|
+
queued: z.ZodNumber;
|
|
16585
|
+
error: z.ZodLiteral<"not-live">;
|
|
16586
|
+
reason: z.ZodString;
|
|
16587
|
+
}, z.core.$strip>]>;
|
|
16588
|
+
/** Actual handler outcomes; queue admission never stands in for delivered steering.
|
|
16589
|
+
* @useDeclaredType
|
|
16590
|
+
*/
|
|
16591
|
+
type RemoteSupervisorSteerResult = z.infer<typeof steerSchema>;
|
|
16592
|
+
/** @useDeclaredType */
|
|
16593
|
+
type RemoteSupervisorCancelResult = z.infer<typeof cancelSchema>;
|
|
16594
|
+
/** A separate capability for the same manager's owned workers, without manager tool grants. */
|
|
16595
|
+
interface RemoteSupervisorControl extends RemoteSupervisorReader {
|
|
16596
|
+
steer(workerId: string, instruction: string, options?: {
|
|
16597
|
+
readonly interrupt?: boolean;
|
|
16598
|
+
}): Promise<RemoteSupervisorSteerResult>;
|
|
16599
|
+
cancel(workerId: string, reason?: string): Promise<RemoteSupervisorCancelResult>;
|
|
16600
|
+
}
|
|
16520
16601
|
/** Connect with the server's readOnly URL and protected headers; credentials never enter a profile. */
|
|
16521
16602
|
declare function connectRemoteSupervisor(spec: HttpMcpServerSpec): Promise<RemoteSupervisorReader>;
|
|
16522
|
-
|
|
16523
|
-
|
|
16603
|
+
/** Connect with the dedicated /control capability, keeping credentials on the protected transport. */
|
|
16604
|
+
declare function connectRemoteSupervisorControl(access: CoordinationControlAccess): Promise<RemoteSupervisorControl>;
|
|
16524
16605
|
/** One atomically admitted down-leg request for an exact worker id. @stable */
|
|
16525
16606
|
interface WorkerSteerRequest {
|
|
16526
16607
|
readonly schemaVersion: 1;
|
|
@@ -16673,8 +16754,6 @@ declare function cancelWorker(eventDir: string, worker: string, operationId: str
|
|
|
16673
16754
|
readonly reason?: string;
|
|
16674
16755
|
readonly source?: string;
|
|
16675
16756
|
}): WorkerCancellation;
|
|
16676
|
-
//#endregion
|
|
16677
|
-
//#region src/runtime/supervise/scope-contract.d.ts
|
|
16678
16757
|
/** Construction args for `createScope`. The supervisor threads the shared pool, journal,
|
|
16679
16758
|
* blob store, and executor registry through; `depth`/`maxDepth` pair the runtime
|
|
16680
16759
|
* recursion ceiling with the conserved pool (R3). */
|
|
@@ -16779,12 +16858,8 @@ interface ScopeArgs {
|
|
|
16779
16858
|
};
|
|
16780
16859
|
};
|
|
16781
16860
|
}
|
|
16782
|
-
//#endregion
|
|
16783
|
-
//#region src/runtime/supervise/scope-construction.d.ts
|
|
16784
16861
|
/** Create the reactive `Scope` a driver's `Agent.act` runs inside: spawn children on an atomically reserved conserved budget, settle via the `next()` cursor, journal for replay. */
|
|
16785
16862
|
declare function createScope<Out>(args: ScopeArgs): Scope<Out>;
|
|
16786
|
-
//#endregion
|
|
16787
|
-
//#region src/runtime/supervise/scope-observation.d.ts
|
|
16788
16863
|
/**
|
|
16789
16864
|
* The step-8 merge-boundary adapter (M4): rehydrate a `Settled.done` into the kernel's
|
|
16790
16865
|
* `Iteration` shape so `defaultSelectWinner` stays single-sourced — the supervisor selects
|
|
@@ -16797,8 +16872,6 @@ declare function createScope<Out>(args: ScopeArgs): Scope<Out>;
|
|
|
16797
16872
|
* Fail loud on a `down` settlement: only a `done` child is an iteration.
|
|
16798
16873
|
*/
|
|
16799
16874
|
declare function settledToIteration<Out>(settled: Settled<Out>): Iteration<unknown, Out>;
|
|
16800
|
-
//#endregion
|
|
16801
|
-
//#region src/runtime/supervise/search-spec.d.ts
|
|
16802
16875
|
/**
|
|
16803
16876
|
* One multi-agent research configuration: seven orthogonal axes, all data.
|
|
16804
16877
|
*
|
|
@@ -16951,8 +17024,6 @@ type CompiledSearchSpec = {
|
|
|
16951
17024
|
* ```
|
|
16952
17025
|
*/
|
|
16953
17026
|
declare function compileSearchSpec(raw: SearchSpec, inputs: SearchSpecInputs): CompiledSearchSpec;
|
|
16954
|
-
//#endregion
|
|
16955
|
-
//#region src/runtime/supervise/sql-run-context.d.ts
|
|
16956
17027
|
interface SqlRunContextOptions extends SqlRunStoreOptions, InMemoryRunContextOptions {}
|
|
16957
17028
|
/** SQL stores are read-only outside an acquired ownership capability. runGraph acquires it. */
|
|
16958
17029
|
/** A `RunContext` bound to one fenced SQL ownership generation; read-only until acquired. */
|
|
@@ -16972,8 +17043,16 @@ interface FencedSqlRunContext extends RunContext {
|
|
|
16972
17043
|
* @experimental
|
|
16973
17044
|
*/
|
|
16974
17045
|
declare function createFencedSqlRunContext(db: SqlAdapter, runId: string, options?: SqlRunContextOptions): Promise<FencedSqlRunContext>;
|
|
16975
|
-
|
|
16976
|
-
|
|
17046
|
+
interface ValidateStoredGraphOptions {
|
|
17047
|
+
readonly registry?: PromptRegistry;
|
|
17048
|
+
readonly analysts?: AnalystRegistry$1;
|
|
17049
|
+
/** Environment-owned bindings only. A custom checkRef is refused without its own binding. */
|
|
17050
|
+
readonly checks?: GraphFromStoredOptions['checks'];
|
|
17051
|
+
}
|
|
17052
|
+
/** Validate compiled, runnable StoredGraph data. Authored params/seats/on envelopes belong to
|
|
17053
|
+
* loadGraphFile; observations belong to the registry's observation importer, never this entry.
|
|
17054
|
+
* No check function or model call is executed while validating environment-owned references. */
|
|
17055
|
+
declare function validateStoredGraph(value: unknown, options?: ValidateStoredGraphOptions): StoredGraph;
|
|
16977
17056
|
/**
|
|
16978
17057
|
* Mint a `RootHandle` plus its supervisor-private control. The handle is the substrate a
|
|
16979
17058
|
* chat/pi-viz client attaches to (Q2): `view()` reads the live tree, `signal()` delivers
|
|
@@ -16982,15 +17061,11 @@ declare function createFencedSqlRunContext(db: SqlAdapter, runId: string, option
|
|
|
16982
17061
|
* driving a live run gets a typed error, never a silent no-op.
|
|
16983
17062
|
*/
|
|
16984
17063
|
declare function createRootHandle<Out>(): SteerableRootHandle<Out>;
|
|
16985
|
-
//#endregion
|
|
16986
|
-
//#region src/runtime/supervise/supervisor-run.d.ts
|
|
16987
17064
|
/** The default recursion-depth ceiling. The conserved pool bounds depth (every level draws its
|
|
16988
17065
|
* slice from the one above); this only stops a runaway recursion of tiny slices. */
|
|
16989
17066
|
declare const DEFAULT_MAX_DEPTH = 16;
|
|
16990
17067
|
/** Create a supervisor that owns one recursive agent execution tree. */
|
|
16991
17068
|
declare function createSupervisor<Task, Out>(): Supervisor<Task, Out>;
|
|
16992
|
-
//#endregion
|
|
16993
|
-
//#region src/runtime/supervise/trace-evidence.d.ts
|
|
16994
17069
|
/** Schema version for content-addressed worker tool-trace artifacts. */
|
|
16995
17070
|
declare const WORKER_TOOL_TRACE_SCHEMA_VERSION: 1;
|
|
16996
17071
|
/** Bytes stored under `WorkerTraceEvidence.traceRef`. */
|
|
@@ -17000,8 +17075,6 @@ interface WorkerToolTraceArtifact {
|
|
|
17000
17075
|
}
|
|
17001
17076
|
/** Validate a stored trace artifact before an analyst or replay trusts it. */
|
|
17002
17077
|
declare function parseWorkerToolTraceArtifact(value: unknown, traceRef?: string): WorkerToolTraceArtifact;
|
|
17003
|
-
//#endregion
|
|
17004
|
-
//#region src/runtime/supervise/trajectory-recorder.d.ts
|
|
17005
17078
|
interface TrajectoryAnalysis {
|
|
17006
17079
|
/** Structured run summary (tool-call count, step order). Steps carry a single timestamp, so per-span
|
|
17007
17080
|
* duration is 0; loop/waste detection keys on call PATTERNS + cross-span windows, not durations. */
|
|
@@ -17014,8 +17087,6 @@ interface TrajectoryAnalysis {
|
|
|
17014
17087
|
}
|
|
17015
17088
|
/** Collect the source's spans and run the agent-eval batch analyzers over them under one `runId`. */
|
|
17016
17089
|
declare function analyzeTrace(source: TraceSource, runId?: string): Promise<TrajectoryAnalysis>;
|
|
17017
|
-
//#endregion
|
|
17018
|
-
//#region src/runtime/workspace.d.ts
|
|
17019
17090
|
/** Command runner seam. Host code can use `localShell`; sandbox code can wrap `box.exec`. */
|
|
17020
17091
|
type Shell = (args: ReadonlyArray<string>, cwd?: string) => Promise<{
|
|
17021
17092
|
stdout: string;
|
|
@@ -17071,8 +17142,6 @@ declare function runInWorkspace<T>(ws: Workspace, body: (cwd: string) => Promise
|
|
|
17071
17142
|
tmpPrefix?: string;
|
|
17072
17143
|
commitOnInvalid?: boolean;
|
|
17073
17144
|
}): Promise<WorkspaceRun<T>>;
|
|
17074
|
-
//#endregion
|
|
17075
|
-
//#region src/runtime/supervise/untracked-clone.d.ts
|
|
17076
17145
|
interface UntrackedCopyStats {
|
|
17077
17146
|
/** Files + symlinks that landed in the clone. */
|
|
17078
17147
|
copied: number;
|
|
@@ -17098,14 +17167,10 @@ declare function copyUntrackedIntoClone(sourceDir: string, cloneDir: string, opt
|
|
|
17098
17167
|
* `commit`/`head` pass through untouched, so delivery semantics are unchanged.
|
|
17099
17168
|
*/
|
|
17100
17169
|
declare function withUntrackedArtifacts(ws: Workspace, sourceDir: string, log?: (message: string) => void): Workspace;
|
|
17101
|
-
//#endregion
|
|
17102
|
-
//#region src/runtime/supervise/usage-metering.d.ts
|
|
17103
17170
|
/** Fold a normalized `UsageEvent` array into a `Spend`. Tokens and usd are separate
|
|
17104
17171
|
* channels; iterations come from `'iteration'` events. Pure; `ms` stays zero (the
|
|
17105
17172
|
* pool does not read wall-clock). */
|
|
17106
17173
|
declare function spendFromUsageEvents(events: UsageEvent[]): Spend;
|
|
17107
|
-
//#endregion
|
|
17108
|
-
//#region src/runtime/supervise/worker-evidence.d.ts
|
|
17109
17174
|
/**
|
|
17110
17175
|
* Evidence-rich worker settlement.
|
|
17111
17176
|
*
|
|
@@ -17162,8 +17227,6 @@ declare function settledWorkerOut(input: {
|
|
|
17162
17227
|
* (`composeWorkerEvidence` keeps the note's FIRST `NOTE_MAX_CHARS` chars).
|
|
17163
17228
|
*/
|
|
17164
17229
|
declare function closingWorkerNote(stdout: string, stderr: string): string | undefined;
|
|
17165
|
-
//#endregion
|
|
17166
|
-
//#region src/runtime/supervise/worker-interactive.d.ts
|
|
17167
17230
|
/** Durable exact-process binding or capability decision for one supervised worker. @stable */
|
|
17168
17231
|
type WorkerInteractiveBinding = {
|
|
17169
17232
|
readonly schemaVersion: 1;
|
|
@@ -17198,8 +17261,6 @@ declare function readWorkerInteractiveBinding(eventDir: string, workerId: string
|
|
|
17198
17261
|
* @stable
|
|
17199
17262
|
*/
|
|
17200
17263
|
declare function attachWorker(eventDir: string, workerId: string, options: AttachWorkerOptions): Promise<WorkerInteractiveSession>;
|
|
17201
|
-
//#endregion
|
|
17202
|
-
//#region src/runtime/supervise/worktree-cli-executor.d.ts
|
|
17203
17264
|
/** Terminal artifact of one worktree-CLI run — the canonical worktree-harness result (the captured
|
|
17204
17265
|
* diff + the harness's run record + the derived checks). */
|
|
17205
17266
|
type WorktreePatchArtifact = WorktreeHarnessResult;
|
|
@@ -17268,8 +17329,6 @@ interface WorktreeCliExecutorOptions {
|
|
|
17268
17329
|
* @experimental
|
|
17269
17330
|
*/
|
|
17270
17331
|
declare function createWorktreeCliExecutor(options: WorktreeCliExecutorOptions): Executor<WorktreePatchArtifact>;
|
|
17271
|
-
//#endregion
|
|
17272
|
-
//#region src/runtime/supervise/patch-checks.d.ts
|
|
17273
17332
|
/** @experimental The per-task constraints the mechanical gate enforces. */
|
|
17274
17333
|
interface CoderCheckConstraints {
|
|
17275
17334
|
/** Default 400. Hard cap; gate fails when exceeded. */
|
|
@@ -17277,8 +17336,6 @@ interface CoderCheckConstraints {
|
|
|
17277
17336
|
/** Literal path prefixes the patch must not touch. */
|
|
17278
17337
|
forbiddenPaths?: string[];
|
|
17279
17338
|
}
|
|
17280
|
-
//#endregion
|
|
17281
|
-
//#region src/runtime/supervise/patch-deliverable.d.ts
|
|
17282
17339
|
/** @experimental */
|
|
17283
17340
|
interface PatchDeliverableOptions extends CoderCheckConstraints {
|
|
17284
17341
|
/**
|
|
@@ -17289,8 +17346,6 @@ interface PatchDeliverableOptions extends CoderCheckConstraints {
|
|
|
17289
17346
|
*/
|
|
17290
17347
|
require?: ReadonlyArray<'tests' | 'typecheck'>;
|
|
17291
17348
|
}
|
|
17292
|
-
//#endregion
|
|
17293
|
-
//#region src/runtime/supervise/worktree-fanout.d.ts
|
|
17294
17349
|
/** @experimental One authored profile in a worktree fanout. Its exact `harness` field chooses the
|
|
17295
17350
|
* local CLI; the supervisor authors the complete profile per sub-task. */
|
|
17296
17351
|
interface AuthoredHarness {
|
|
@@ -17345,8 +17400,6 @@ interface WorktreeFanoutOptions extends PatchDeliverableOptions {
|
|
|
17345
17400
|
* @experimental
|
|
17346
17401
|
*/
|
|
17347
17402
|
declare function worktreeFanout<Task>(options: WorktreeFanoutOptions): CombinatorShape<Task, WorktreePatchArtifact>;
|
|
17348
|
-
//#endregion
|
|
17349
|
-
//#region src/runtime/supervise-analysts.d.ts
|
|
17350
17403
|
/**
|
|
17351
17404
|
* Adapt an `agent-eval` `AnalystRegistry` into the lens shape `supervise({ analysts })` takes.
|
|
17352
17405
|
*
|
|
@@ -17396,8 +17449,6 @@ interface AnalystAuthoring {
|
|
|
17396
17449
|
* the driver the still-FAILING tests (not just a score), so the next spawn targets the persistently-hard
|
|
17397
17450
|
* cases. Swap `analysts` to change what the driver improves from — that's the one knob. */
|
|
17398
17451
|
declare function failuresAnalyst(): AnalystRegistry$1;
|
|
17399
|
-
//#endregion
|
|
17400
|
-
//#region src/runtime/surface-diff.d.ts
|
|
17401
17452
|
/** Outcome of reading one surface back at settle. `missing: true` means the path no longer exists
|
|
17402
17453
|
* (a deletion — a valid, reportable outcome); any other failure carries its diagnostic. */
|
|
17403
17454
|
type SurfaceReadOutcome = {
|
|
@@ -17518,8 +17569,6 @@ declare function boxSurfaceReader(box: SurfaceReadBox, options?: BoxSurfaceReade
|
|
|
17518
17569
|
* Absence maps to `missing: true`; every other failure carries the error message.
|
|
17519
17570
|
*/
|
|
17520
17571
|
declare function fsSurfaceReader(root: string): SurfaceReader;
|
|
17521
|
-
//#endregion
|
|
17522
|
-
//#region src/runtime/verifier-environment.d.ts
|
|
17523
17572
|
interface VerifierEnvironmentOptions {
|
|
17524
17573
|
name: string;
|
|
17525
17574
|
/** The deployable check over a submitted answer. Graded via passes/total. */
|
|
@@ -17531,8 +17580,6 @@ interface VerifierEnvironmentOptions {
|
|
|
17531
17580
|
}
|
|
17532
17581
|
/** Any checkable task as an `Environment`, no tool surface required: the artifact is the worker's answer and the domain is one deployable `check` over it. */
|
|
17533
17582
|
declare function createVerifierEnvironment(opts: VerifierEnvironmentOptions): Environment;
|
|
17534
|
-
//#endregion
|
|
17535
|
-
//#region src/mcp/tools/coordination-contracts.d.ts
|
|
17536
17583
|
/** A worker whose settlement reached the manager's inbox. */
|
|
17537
17584
|
interface SettledWorker {
|
|
17538
17585
|
readonly id: string;
|
|
@@ -18065,8 +18112,6 @@ interface BlockedToolReport {
|
|
|
18065
18112
|
readonly probed: string;
|
|
18066
18113
|
readonly at: string;
|
|
18067
18114
|
}
|
|
18068
|
-
//#endregion
|
|
18069
|
-
//#region src/runtime/supervise/driver-attempt-evidence.d.ts
|
|
18070
18115
|
/** Why the retry loop stopped. `completed` is the only non-failure. */
|
|
18071
18116
|
type DriverAttemptStop = 'completed' | 'terminal-error' | 'retry-disabled' | 'aborted' | 'budget-exhausted' | 'deadline' | 'no-progress' | 'max-attempts' | 'pending-unresolved' | 'repeated-failure';
|
|
18072
18117
|
/** One attempt's record — the legible failure the issue's third ask names. Emitted per attempt so
|
|
@@ -18163,7 +18208,7 @@ interface DriverLoopRecord {
|
|
|
18163
18208
|
readonly unavailablePauses: number;
|
|
18164
18209
|
/** Infrastructure time the unavailable upstream cost this loop: every pause, plus every refused
|
|
18165
18210
|
* drive that made no progress. A refused drive that made progress was mostly work, so only its
|
|
18166
|
-
* pause counts.
|
|
18211
|
+
* pause counts. A first drive worked 8 minutes before its
|
|
18167
18212
|
* refusal, and counting its whole duration doubled a 10-minute outage to 16 minutes. */
|
|
18168
18213
|
readonly unavailableMs: number;
|
|
18169
18214
|
/** Re-entered drives, in a row at the end, that completed without a delivery. */
|
|
@@ -18198,8 +18243,6 @@ interface DriverContinuationRecord extends DriverLoopRecord {
|
|
|
18198
18243
|
* Empty for a manager with no check. */
|
|
18199
18244
|
readonly continuations: ReadonlyArray<ContinuationEntry>;
|
|
18200
18245
|
}
|
|
18201
|
-
//#endregion
|
|
18202
|
-
//#region src/runtime/supervise/contracts/supervisor-result.d.ts
|
|
18203
18246
|
/** Provider-observed model identity for the root manager's settled inference turns.
|
|
18204
18247
|
* Runtime records this only from a Runtime-owned provider/bridge receipt; an authored profile
|
|
18205
18248
|
* alias is never substituted when the provider omits the identity. */
|
|
@@ -18473,8 +18516,6 @@ type SupervisedResult<Out> = {
|
|
|
18473
18516
|
* recoverable by the caller. A non-`Error` rejection is normalized, never dropped. */
|
|
18474
18517
|
error: NoWinnerError;
|
|
18475
18518
|
};
|
|
18476
|
-
//#endregion
|
|
18477
|
-
//#region src/runtime/supervise/contracts/node-lifecycle.d.ts
|
|
18478
18519
|
/** `'queued'` is an admitted child that holds its budget slice and waits for a worker slot
|
|
18479
18520
|
* (`workerSlots`); it runs nothing until the allocator grants one. `'acquiring'` is first-class
|
|
18480
18521
|
* (M1): a node spends real time + reaps an orphan box during sandbox acquire BEFORE it is
|
|
@@ -18645,10 +18686,7 @@ type Settled<Out> = {
|
|
|
18645
18686
|
* `retainedExecution` is; the `reason` text names the same thing, but a reader must never
|
|
18646
18687
|
* have to parse it (#1204). */
|
|
18647
18688
|
retainedPendingCause?: RetainedPendingCause;
|
|
18648
|
-
/**
|
|
18649
|
-
* while both were still values. Present on a live settlement whose executor threw; the
|
|
18650
|
-
* journal does not record it, so a replayed settlement leaves it to
|
|
18651
|
-
* `settlementFailureCause`. */
|
|
18689
|
+
/** Typed terminal diagnosis, preserved by the journal and replay. Legacy records may omit it. */
|
|
18652
18690
|
failure?: RuntimeFailureCause;
|
|
18653
18691
|
/** Present when this child led workers of its own: a bounded account of its team. */
|
|
18654
18692
|
subtree?: SubtreeSummary;
|
|
@@ -18692,6 +18730,8 @@ interface SubtreeResult {
|
|
|
18692
18730
|
readonly agents: number;
|
|
18693
18731
|
}
|
|
18694
18732
|
interface NodeSnapshot {
|
|
18733
|
+
/** Typed terminal diagnosis, beside status and never a replacement for lifecycle reason. */
|
|
18734
|
+
readonly failure?: RuntimeFailureCause;
|
|
18695
18735
|
readonly id: NodeId;
|
|
18696
18736
|
readonly parent?: NodeId;
|
|
18697
18737
|
readonly label: string;
|
|
@@ -18784,8 +18824,6 @@ interface TreeView {
|
|
|
18784
18824
|
* settles on the ordinary path and the recorded-result path writes no marker.
|
|
18785
18825
|
*/
|
|
18786
18826
|
type RetainedExecutionState = 'pending' | 'released' | 'release-unconfirmed';
|
|
18787
|
-
//#endregion
|
|
18788
|
-
//#region src/runtime/supervise/contracts/accounting.d.ts
|
|
18789
18827
|
/** Caller-defined resource ceiling in non-negative safe-integer units, consistent throughout a tree. */
|
|
18790
18828
|
interface ResourceLimit {
|
|
18791
18829
|
readonly unit: string;
|
|
@@ -18915,8 +18953,6 @@ interface BudgetViolation {
|
|
|
18915
18953
|
/** Every overspent channel, in the order tokens, iterations, usd, then resources. Never empty. */
|
|
18916
18954
|
readonly overspent: ReadonlyArray<BudgetOverspend>;
|
|
18917
18955
|
}
|
|
18918
|
-
//#endregion
|
|
18919
|
-
//#region src/runtime/supervise/trace-root.d.ts
|
|
18920
18956
|
/** Schema identifier of a stored {@link TraceRootArtifact}. */
|
|
18921
18957
|
declare const TRACE_ROOT_SCHEMA = "agent-runtime.trace-root.v1";
|
|
18922
18958
|
/** Schema identifier of the {@link TraceSummary} carried by a trace root's last leaf. */
|
|
@@ -18940,8 +18976,6 @@ interface TraceRootArtifact {
|
|
|
18940
18976
|
readonly leaves: readonly string[];
|
|
18941
18977
|
readonly summary: TraceSummary;
|
|
18942
18978
|
}
|
|
18943
|
-
//#endregion
|
|
18944
|
-
//#region src/runtime/supervise/retained-executor.d.ts
|
|
18945
18979
|
/**
|
|
18946
18980
|
* Why a retained execution has no accepted terminal result, classified where the cause is still
|
|
18947
18981
|
* a typed value rather than a string in a journal.
|
|
@@ -19031,8 +19065,6 @@ interface RetainedLeafContinuation {
|
|
|
19031
19065
|
readonly priorSession: RetainedRunEnvironmentAdmission;
|
|
19032
19066
|
readonly priorSpent: Spend;
|
|
19033
19067
|
}
|
|
19034
|
-
//#endregion
|
|
19035
|
-
//#region src/runtime/failure-cause.d.ts
|
|
19036
19068
|
/**
|
|
19037
19069
|
* Who must act before the same work can succeed.
|
|
19038
19070
|
*
|
|
@@ -19046,9 +19078,37 @@ interface RetainedLeafContinuation {
|
|
|
19046
19078
|
* - `unknown`: nothing structural attributes the failure.
|
|
19047
19079
|
* @stable
|
|
19048
19080
|
*/
|
|
19049
|
-
type RuntimeFailureOwner = '
|
|
19081
|
+
type RuntimeFailureOwner = RuntimeFailureCause['owner'];
|
|
19050
19082
|
/** Stable failure codes. A consumer branches on these, never on `cause` text. @stable */
|
|
19051
|
-
type RuntimeFailureCode = '
|
|
19083
|
+
type RuntimeFailureCode = RuntimeFailureCause['code'];
|
|
19084
|
+
/** @internal Validate Runtime-owned failure values on observation transports. */
|
|
19085
|
+
declare const runtimeFailureCauseSchema: z.ZodReadonly<z.ZodObject<{
|
|
19086
|
+
code: z.ZodEnum<{
|
|
19087
|
+
aborted: "aborted";
|
|
19088
|
+
"deadline-exceeded": "deadline-exceeded";
|
|
19089
|
+
"budget-exhausted": "budget-exhausted";
|
|
19090
|
+
"credential-refused": "credential-refused";
|
|
19091
|
+
"request-rejected": "request-rejected";
|
|
19092
|
+
"upstream-unavailable": "upstream-unavailable";
|
|
19093
|
+
transport: "transport";
|
|
19094
|
+
"provider-contract": "provider-contract";
|
|
19095
|
+
"retained-unobservable": "retained-unobservable";
|
|
19096
|
+
"nested-recovery": "nested-recovery";
|
|
19097
|
+
platform: "platform";
|
|
19098
|
+
"work-failed": "work-failed";
|
|
19099
|
+
unknown: "unknown";
|
|
19100
|
+
}>;
|
|
19101
|
+
owner: z.ZodEnum<{
|
|
19102
|
+
platform: "platform";
|
|
19103
|
+
unknown: "unknown";
|
|
19104
|
+
provider: "provider";
|
|
19105
|
+
runtime: "runtime";
|
|
19106
|
+
work: "work";
|
|
19107
|
+
caller: "caller";
|
|
19108
|
+
}>;
|
|
19109
|
+
cause: z.ZodString;
|
|
19110
|
+
providerCode: z.ZodOptional<z.ZodString>;
|
|
19111
|
+
}, z.core.$strip>>;
|
|
19052
19112
|
/**
|
|
19053
19113
|
* A terminal failure as values, carried on final and settled events beside their existing
|
|
19054
19114
|
* `reason` and `error` fields.
|
|
@@ -19057,16 +19117,9 @@ type RuntimeFailureCode = 'aborted' | 'deadline-exceeded' | 'budget-exhausted' |
|
|
|
19057
19117
|
* and cause chain, the caller's signal and deadline, or the settlement's typed fields — never from
|
|
19058
19118
|
* message text. `cause` is the redacted, bounded cause chain for people; it is not a contract.
|
|
19059
19119
|
* @stable
|
|
19120
|
+
* @useDeclaredType
|
|
19060
19121
|
*/
|
|
19061
|
-
|
|
19062
|
-
readonly code: RuntimeFailureCode;
|
|
19063
|
-
readonly owner: RuntimeFailureOwner;
|
|
19064
|
-
readonly cause: string;
|
|
19065
|
-
/** The upstream or provider machine code the failure carried, when it carried one. */
|
|
19066
|
-
readonly providerCode?: string;
|
|
19067
|
-
}
|
|
19068
|
-
//#endregion
|
|
19069
|
-
//#region src/types.d.ts
|
|
19122
|
+
type RuntimeFailureCause = z.infer<typeof runtimeFailureCauseSchema>;
|
|
19070
19123
|
/** @stable */
|
|
19071
19124
|
interface AgentTaskSpec {
|
|
19072
19125
|
id: string;
|
|
@@ -19602,6 +19655,5 @@ interface KnowledgeReadinessDecision {
|
|
|
19602
19655
|
blockingGapIds: string[];
|
|
19603
19656
|
nonBlockingGapIds: string[];
|
|
19604
19657
|
}
|
|
19605
|
-
//#endregion
|
|
19606
|
-
export { NoWinnerError as $, createRuntimeStreamEventCollector as $_, strategyTournament as $a, DEFAULT_STALL_AFTER_MS as $b, ScopeAnalyzeInput as $c, BudgetReadout as $d, CoordinationAuthentication as $f, RunCodeModeOptions as $g, UiFindingScreenshot as $h, ChatTransportExecutorOptions as $i, NextPursuitVersionInput as $l, ToolLoopCompaction as $m, SqlRunContextOptions as $n, RegistryAnalyzeProjection as $o, SteerableSandboxSession as $p, GraphRunRecord as $r, StrategyShotResult as $s, createVerifierEnvironment as $t, dumbContinuationPassPrompt as $u, PeerMailEvent as $v, LoopLineageOptions as $x, SpawnForestTree as $y, TraceRootArtifact as A, RecoverRetainedRunIntentOptions as AS, RunAgentRoundsOptions as A_, filterAuthoredAsserts as Aa, RootMaterialization as Ab, defaultAnalystInstruction as Ac, SelectSeat as Ad, NoProgressForOptions as Af, CompletionVerdict as Ag, SubmitInput as Ah, SpawnJournal as Ai, LeaderboardFlagSpec as Al, KeyProvider as Am, settledWorkerOut as An, profileChatClient as Ao, environmentReader as Ap, RemoteWorkerEvents as Ar, inlineSandboxClient as As, AgentEnvironmentStatus as At, observerRecordDigest as Au, QuestionLevel as Av, ProviderCheckpointCaptureContext as Ax, AnalystRegistry$1 as Ay, Handle as B, RetainedRunCancellation as BS, buildLoopOtelSpans as B_, AgentTurnUsage as Ba, HeldForContinuation as Bb, EqualKVerdict as Bc, SupervisorSpanOptions as Bd, RunCancellation as Bf, CodexRolloutTurn as Bg, DelegationFeedbackSnapshot as Bh, SupervisorOpts as Bi, assertDeclaredCheck as Bl, createSandboxToolPartState as Bm, WorkspaceRun as Bn, runPersonified as Bo, ExecutorConfig as Bp, loadProfile as Br, StdioMcpConnection as Bs, CreateAgentEnvironmentInput$1 as Bt, RunGraphTestOptions as Bu, DownMessageAuthorizationInput as Bv, ExecutorToolCall as Bx, LOCAL_HARNESSES as By, RuntimeFailureCause as C, RuntimeRunRow as CS, bestSoFar as C_, StructuralRolloutResult as Ca, ExecutorExecutionBinding as Cb, HarvestReport as Cc, withWorkerSpawnRetry as Cd, SupervisorNodeContext as Cf, ExecutorResultMapping as Cg, DelegationRecord as Ch, GraphDesignerExtraTools as Ci, ShapeRegistry as Cl, ProviderPromptOptions as Cm, readWorkerInteractiveBinding as Cn, ClaimRetainedInteractiveControlOptions as Co, DriverReentry as Cp, supervisorRunDir as Cr, loopCampaignDispatch as Cs, SuperviseProfileEntry as Ct, PursuitRunTotals as Cu, ChildQuestionInbox as Cv, HarnessTranscriptMetadata as Cx, WatchTraceOptions as Cy, RetainedPendingCause as D, NativeContextContinuationHandle as DS, WaterfallReport as D_, composeCheckSources as Da, MaterializedModelIdentity as Db, ObservationError as Dc, SeatSelection as Dd, ManagerWakePolicy as Df, CompletionAnalyst as Dg, DelegationRunContext as Dh, delegate as Di, LeaderboardBenchScore as Dl, BridgeHarnessStore as Dm, WorkerEvidenceInput as Dn, startRetainedInteractiveRun as Do, SpawnResourceBytes as Dp, RemoteSupervisorAgent as Dr, TERMINAL_DECISIONS as Ds, AgentEnvironmentEvent$1 as Dt, ObserverJournal as Du, QuestionEscalationOutcome as Dv, RetainedHarnessTranscriptDescriptor as Dx, AnalystFindingEvent as Dy, EvidencePendingEvent as E, NativeContextContinuationExecution as ES, WaterfallCollector as E_, compareCheckOutcomes as Ea, MaterializedExecutionIdentity as Eb, ObservationAnalysis as Ec, SeatSegment as Ed, SupervisorToolInvocationContext as Ef, verdictFromJudgeScore as Eg, DelegationResumeTick as Eh, defaultDelegateBudget as Ei, DefinedLeaderboard as El, ProviderPlacement as Em, VERIFY_TAIL_CHARS as En, recoverRetainedInteractiveRun as Eo, ResolvedSpawnResourcePath as Ep, writeWorkerSteer as Er, LocalSandboxClientOptions as Es, AgentEnvironmentCapabilities$1 as Et, FileObserverJournal as Eu, QuestionDecision as Ev, RetainedHarnessTranscriptCapture as Ex, AnalystAssignmentRecord as Ey, ResourceLimit as F, RetainedInteractiveIntentAdmission as FS, OtelAttribute as F_, selectBestIndex as Fa, ExecutorCancellation as Fb, Corpus as Fc, RunContextLease as Fd, allWorkersStalled as Ff, CodexForkBoundary as Fg, DelegateResearchConfig as Fh, RootSegment as Fi, LeaderboardSpec as Fl, resolveSecretEnv as Fm, withUntrackedArtifacts as Fn, PrivateCasOptions as Fo, DelegateError as Fp, SupervisorCleanupReceipt as Fr, HttpMcpServerSpec as Fs, AgentSessionStatus$1 as Ft, GraphEdgeCapError as Fu, questionEscalationTargets as Fv, ProviderWorkspaceCaptureResult as Fx, DefinedAnalystRecord as Fy, Settled as G, RetainedRunHandle as GS, RuntimeEventCollector as G_, EvolutionAuthor as Ga, WorkerTraceEvidence as Gb, LoopUntilState as Gc, DeadlineCheckIn as Gd, ReentryTaskInput as Gf, readCodexRolloutSession as Gg, DelegationStatus as Gh, Scope as Gi, readDeclaredCheck as Gl, extractLlmCallEvent as Gm, TrajectoryAnalysis as Gn, flatWidenGate as Go, CliWorktreeSeam as Gp, InteractiveWorkerEnvironment as Gr, AgenticRunResult as Gs, PlacementInfo as Gt, GraphRouteError as Gu, MapItemFailurePolicy as Gv, Driver as Gx, openSqlRunStore as Gy, NodeSnapshot as H, RetainedRunEffect as HS, loopEventToOtelSpan as H_, StreamAgentTurnOptions as Ha, Runtime as Hb, FanoutSynthesis as Hc, SupervisorSpanRecorder as Hd, readRunCancelRequest as Hf, addHarnessUsage as Hg, DelegationHistoryEntry as Hh, ReenteredWorkers as Hi, declaredCheckDeliverable as Hl, mapSandboxToolEvent as Hm, jjWorkspace as Hn, InMemoryCorpus as Ho, CliInPlaceSeam as Hp, profileRegistry as Hr, connectStdioMcp as Hs, ExecRequest as Ht, runGraph as Hu, DownMessageDeliveryOutcome as Hv, UsageEvent as Hx, CodexTokenUsage as Hy, ResourceSpend as I, RetainedInteractiveStartedAdmission as IS, OtelExportConfig as I_, structuralRollout as Ia, ExecutorCancellationRequest as Ib, CorpusFilter as Ic, createFileRunContext as Id, anyOf as If, CodexRolloutIdentity as Ig, DelegateUiAuditArgs as Ih, RootSegmentEntry as Ii, defineLeaderboard as Il, secretEnvOfMcpServer as Im, GitWorkspaceOptions as In, createPrivateCasArtifactPort as Io, DelegateHandlerOptions as Ip, provisionSupervisor as Ir, LocalMcpMaterialization as Is, AgentTurnResult$2 as It, GraphNode as Iu, AuthorizeDownMessage as Iv, ProviderWorkspaceEntryMetadata as Ix, CodexExecutionEvidence as Iy, SpawnRejection as J, RetainedRunSnapshot as JS, RuntimeStreamEventSummary as J_, StrategyEvolutionConfig as Ja, ToolStepInput as Jb, PanelSpec as Jc, RunParkingPolicy as Jd, DeliveredOutput as Jf, CodeModeStore as Jg, FeedbackRefersTo as Jh, WorkerEventCursor as Ji, IsolatedCheckOptions as Jl, RouterTransportConfig as Jm, parseWorkerToolTraceArtifact as Jn, pipeline as Jo, RouterToolsSeam as Jp, InteractiveWorkerResult as Jr, AgenticTool as Js, SandboxInstance$1 as Jt, RegisteredPrompt as Ju, MapTraversalEvent as Jv, LoopDecisionPayload as Jx, SpawnForest as Jy, SpawnOpts as K, RetainedRunIntentAdmission as KS, RuntimeStreamEventCollector as K_, EvolutionReport as Ka, WorkerTraceUnavailableReason as Kb, Panel as Kc, ParkedRun as Kd, UNPROVEN_CONTINUITY as Kf, HarnessUsage as Kg, DelegationStatusResult as Kh, UnconfirmedTeardown as Ki, IsolatedCheckBox as Kl, sumSandboxUsage as Km, analyzeTrace as Kn, loopUntil as Ko, ProviderSeam as Kp, InteractiveWorkerKeyInput as Kr, AgenticSurface as Ks, ResourceRequest as Kt, PromptHandle as Ku, MapOnSettleRoute as Kv, ExecCtx as Kx, SqlAdapter as Ky, Spend as L, RetainedRunAdmission as LS, OtelExportStats as L_, visibleCheckScore as La, ExecutorResult as Lb, CorpusRecord as Lc, createInMemoryRunContext as Ld, noProgressFor as Lf, CodexRolloutSession as Lg, DelegateUiAuditConfig as Lh, RootSignal as Li, DeclaredCheck as Ll, SandboxLeafOut as Lm, Shell as Ln, equalKOnCost as Lo, DelegateResult as Lp, ProfileRegistryDir as Lr, MaterializeLocalMcpOptions as Ls, AnalystFinding$1 as Lt, GraphResult as Lu, AuthorizedDownMessage as Lv, ProviderWorkspaceRetentionContext as Lx, LocalHarnessResult as Ly, Budget as M, RecoverRetainedRunResult as MS, SandboxEvidenceContext as M_, officialChecksFromMeta as Ma, EnvironmentTeardownReceipt as Mb, renderReport as Mc, InMemoryRunContext as Md, ProgressView as Mf, deterministicCompletion as Mg, DelegateCodeArgs as Mh, WorkspaceCheckpointMarker as Mi, LeaderboardRunContext as Ml, envKeyProvider as Mm, CopyOptions as Mn, PrivateCasArtifactPort as Mo, McpServer as Mp, ProvisionSupervisorConnection as Mr, InProcessPromptCtx as Ms, AgentProfile$2 as Mt, EdgeDeliveryOutcome as Mu, QuestionPolicy as Mv, ProviderWorkspaceAttemptProvenance as Mx, AnalyzeOnSettleRoute as My, BudgetOverspend as N, RetainedInteractiveAdmission as NS, SandboxEvidenceReceipt as N_, resolveEntrySymbol as Na, Executor as Nb, AssertTraceDerivedFindings as Nc, InMemoryRunContextOptions as Nd, StopDecision as Nf, sentinelCompletion as Ng, DelegateCodeConfig as Nh, RecursiveReservationPolicy as Ni, LeaderboardScenario as Nl, mcpSecretEnvMetadataKey as Nm, UntrackedCopyStats as Nn, PrivateCasDurableStore as No, McpServerOptions as Np, ProvisionSupervisorRequest as Nr, InProcessSandboxClientOptions as Ns, AgentSession as Nt, EdgeTraversal as Nu, QuestionRecord as Nv, ProviderWorkspaceCaptureProvenance as Nx, AuthoredAnalystDefinition as Ny, TRACE_ROOT_SCHEMA as O, NativeContextContinuationInput as OS, WaterfallSpan as O_, defaultExtractCandidate as Oa, NodeExecutionIdentity as Ob, ObserveInput as Oc, SeatSelectionInput as Od, SupervisorProfile as Of, CompletionEvidence as Og, DelegationTaskQueue as Oh, ResultBlobStore as Oi, LeaderboardBenchTask as Ol, BridgeModelCredential as Om, closingWorkerNote as On, ResolveSandboxClientOptions as Oo, SpawnResourceRead as Op, RemoteSupervisorReader as Or, TerminalDecision as Os, AgentEnvironmentProvider$1 as Ot, ObserverRecord as Ou, QuestionEscalationRecord as Ov, resolveHarnessTranscriptCapture as Ox, AnalystKind as Oy, BudgetViolation as P, RetainedInteractiveEnvironmentAdmission as PS, SandboxEvidenceRetentionPort as P_, sandboxCheckRunner as Pa, ExecutorAccounting as Pb, CombinatorShape as Pc, RunContext as Pd, StopRule as Pf, stopSentinel as Pg, DelegateResearchArgs as Ph, RootHandle as Pi, LeaderboardScore as Pl, resolveMcpServerLaunch as Pm, copyUntrackedIntoClone as Pn, PrivateCasOffloadReport as Po, createMcpServer as Pp, ProvisionedSupervisor as Pr, inProcessSandboxClient as Ps, AgentSessionRef as Pt, GraphEdge as Pu, QuestionUrgency as Pv, ProviderWorkspaceCaptureReceipt as Px, AuthoredAnalystLimits as Py, FleetYield as Q, StartRetainedRunOptions as QS, createRuntimeEventCollector as Q_, runStrategyEvolution as Qa, ActivityNote as Qb, ScopeAnalyst as Qc, BudgetPoolRestore as Qd, bestDelivered as Qf, CodeModeToolset as Qg, UiFinding as Qh, ChatSessionStore as Qi, NextPursuitVersion as Ql, ToolLoopChat as Qm, FencedSqlRunContext as Qn, CreateScopeAnalystOptions as Qo, SteerableSandboxArgs as Qp, GraphRegistryDir as Qr, StrategyMessage as Qs, VerifierEnvironmentOptions as Qt, dumbContinuationFailPrompt as Qu, PeerMailEnvelope as Qv, LoopIterationStartedPayload as Qx, SpawnForestNode as Qy, SpendChannel as R, RetainedRunAdmissionHook as RS, OtelExporter as R_, AgentTurnBackend as Ra, ExecutorTeardownWarning as Rb, EqualKArm as Rc, withRunContext as Rd, plateau as Rf, CodexRolloutStoreReader as Rg, DelegateUiAuditRoute as Rh, SteerableRootHandle as Ri, DeclaredCheckPlacement as Rl, SandboxOutputMarker as Rm, Workspace as Rn, trajectoryReport as Ro, createDelegateHandler as Rp, ProfileRunRecord as Rr, McpListedTool as Rs, CheckpointRef as Rt, GraphTopology as Ru, ContinuationInstruction as Rv, ProviderWorkspaceRetentionPort as Rx, RunLocalHarnessOptions as Ry, RuntimeStreamEvent as S, RuntimeRunPersistenceAdapter as SS, areaUnderCurve as S_, StructuralRolloutPolicy as Sa, ExecutionBindingReceipt as Sb, HarvestFailure as Sc, retryPreSpawnRefusals as Sd, SupervisorAgentTestDeps as Sf, DeliverableSpec as Sg, DelegationArgs as Sh, DesignerToolsEnv as Si, ShapeContext as Sl, ProviderLeafOut as Sm, attachWorker as Sn, startRetainedRunInEnvironment as So, DriverContractState as Sp, safeWorkerFile as Sr, SuperviseOptionsForDispatch as Ss, SpawnRefusalCause as St, PursuitRunProjection as Su, RouteWhen as Sv, persistHarnessTranscript as Sx, createEventBus as Sy, RuntimeFailureOwner as T, startRuntimeRun as TS, renderAnytimeTable as T_, canDisplace as Ta, ExecutorNodeContext as Tb, Observation as Tc, SuperviseRegistryTable as Td, SupervisorToolDescriptor as Tf, mapExecutorResult as Tg, DelegationResumeDriver as Th, DelegateOptions as Ti, providerAsSandboxClient as Tl, UnavailablePausePolicy as Tm, NOTE_MAX_CHARS as Tn, reconnectRetainedInteractiveRun as To, ResolveSpawnResourcePathsResult as Tp, workerInboxFileFromEventDir as Tr, superviseDispatch as Ts, AgentEnvironment$1 as Tt, projectPursuit as Tu, Question as Tv, HarnessTranscriptReadOptions as Tx, watchTrace as Ty, NodeStatus as U, RetainedRunEnvironmentAdmission as US, padSpanId as U_, collectAgentTurn as Ua, WorkerInteractiveSession as Ub, FanoutWinnerSelector as Uc, createSupervisorSpanRecorder as Ud, readRunCancellation as Uf, createCodexRolloutStoreReader as Ug, DelegationProgress as Uh, ResumedKeyState as Ui, declaredCheckDigest as Ul, SandboxServedBackend as Um, localShell as Un, renderCorpusToInstructions as Uo, CliSeam as Up, profileRunsForName as Ur, materializeLocalMcp as Us, ExecResult as Ut, runGraphWithTestBrain as Uu, DownMessageEvent as Uv, AgentRunSpec as Ux, CodexExecutionPolicy as Uy, NodeId as V, RetainedRunDispatchedAdmission as VS, createOtelExporter as V_, CollectedAgentTurn as Va, HeldRelease as Vb, FanoutOptions as Vc, SupervisorSpanOutcome as Vd, cancelRun as Vf, CodexStoreDelta as Vg, DelegationHistoryArgs as Vh, Agent as Vi, checkProgramDigest as Vl, mapSandboxEvent as Vm, gitWorkspace as Vn, FileCorpus as Vo, createExecutor as Vp, pickBestProfile as Vr, StdioMcpServerSpec as Vs, CreateSandboxOptions$1 as Vt, TraversalContinuity as Vu, DownMessageDeliveryAttempt as Vv, TokenUsageProvenance as Vx, LocalHarness as Vy, RetainedExecutionState as W, RetainedRunEventOptions as WS, padTraceId as W_, streamAgentTurn as Wa, WorkerInteractiveUnavailableReason as Wb, LoopUntilSpec as Wc, WorkerTraceResolver as Wd, ReentryContinuity as Wf, harnessUsageIsEmpty as Wg, DelegationResultPayload as Wh, ResumedWork as Wi, declaredCheckJudge as Wl, SandboxUsageLedger as Wm, runInWorkspace as Wn, fanout as Wo, CliWorktreeBridgeSeam as Wp, recordProfileRun as Wr, AgenticOptions as Ws, ForkRequest as Wt, defaultEdgeTraversalCap as Wu, WorkerResumeContext as Wv, DefaultVerdict$2 as Wx, SqlRunOwnershipError as Wy, SubtreeSummary as X, RetainedRunTurnInput as XS, SanitizedKnowledgeReadinessReport as X_, TournamentCell as Xa, createPushTraceSource as Xb, PipelineStage as Xc, readRunParking as Xd, FinalizerSettled as Xf, CodeModeToolContext as Xg, UiAuditLensFilter as Xh, WorkerEventPage as Xi, runIsolatedCheck as Xl, ToolSpec as Xm, createSupervisor as Xn, verify as Xo, DEFAULT_SANDBOX_STEERING_MAX_TURNS as Xp, InPlaceCliExecutorOptions as Xr, CorpusReadbackOptions as Xs, computeFindingId$1 as Xt, createPromptRegistry as Xu, DEFAULT_PEER_MAIL_LIMITS as Xv, LoopIterationDispatchPayload as Xx, SpawnForestInDoubtNode as Xy, SubtreeResult as Y, RetainedRunStartMaterial as YS, RuntimeTelemetryOptions as Y_, StrategyTournament as Ya, TraceSource as Yb, PanelVerdict as Yc, RunParkingRecord as Yd, FinalizeContext as Yf, CodeModeTool as Yg, ResearchOutputShape as Yh, WorkerEventEntry as Yi, IsolatedCheckResult as Yl, RouterRouting as Ym, DEFAULT_MAX_DEPTH as Yn, selectValidWinner as Yo, SandboxSeam as Yp, workerFromInteractiveProvider as Yr, ArtifactHandle as Ys, WorkspaceRequest as Yt, analyzesFindingsReportPrompt as Yu, AUTHORITY_MARKERS as Yv, LoopEndedPayload as Yx, SpawnForestEvent as Yy, TreeView as Z, StartRetainedRunInEnvironmentOptions as ZS, SanitizedKnowledgeRequirement as Z_, TournamentRow as Za, ActivityLog as Zb, RenderCorpusToInstructionsOptions as Zc, BudgetPool as Zd, SupervisorFinalizer as Zf, CodeModeToolsOptions as Zg, UiAuditorDelegationOutput as Zh, ChatCompletionsTransport as Zi, JudgedPursuitVersion as Zl, ToolLoopCallContext as Zm, createRootHandle as Zn, widen as Zo, SandboxSteeringOptions as Zp, createInPlaceCliExecutor as Zr, RunAgenticOptions as Zs, makeFinding$1 as Zt, delegatesWorkerBriefPrompt as Zu, PEER_MAIL_WIRE_KEY as Zv, LoopIterationEndedPayload as Zx, SpawnForestMissingTree as Zy, RunAgentTaskOptions as _, Validator as _S, renderPairwiseMarkdown as __, CheckSource as _a, ExecutorContext as _b, sampleThenRefine as _c, WorkerSpawnRetryAttempt as _d, DriveHarnessOwnerContext as _f, FileDelegationStoreOptions as _g, createFleetWorkspaceExecutor as _h, RollingDispatchOptions as _i, PersonaContext as _l, AgentEnvironmentProviderRef as _m, WorktreePatchArtifact as _n, PrivateCasNamespaceObject as _o, ContinuationPolicy as _p, cancelWorker as _r, runBenchmark as _s, PeerAuditAccess as _t, PursuitNodePlatform as _u, GateRequest as _v, HarnessTranscriptUnavailable as _x, BusEvent as _y, AgentKnowledgeProvider as a, LoopTeardownFailedPayload as aS, Leaderboard as a_, AuthoredProfile as aa, InMemorySpawnJournal as ab, sample as ac, RUN_FORK_CORRELATION_KEYS as ad, ReservationStage as af, ResearchSource as ag, CoderDelegate as ah, graphRegistry as ai, Verify as al, PeerInboxMessage as am, SurfaceReader as an, SandboxRunAbortError as ao, CoordinationHttpAudit as ap, SearchSpecOwnedOption as ar, McpEndpoint as as, DriverAttemptRecord as at, VersionVerdict as au, WorktreeProfileMaterializationReceipt as av, readWorkerProgress as ax, PeerMailbox as ay, RuntimeSession as b, RuntimeRunHandle as bS, AnytimeTaskCurve as b_, StructuralRolloutConfig as ba, SpawnModelSubstitution as bb, HarvestCorpusOptions as bc, isPreSpawnExecutorFailure as bd, ResolveSupervisorTools as bf, CheckUnavailableError as bg, RunDetachedTurnOptions as bh, rollingDispatch as bi, RunPersonifiedOptions as bl, resolveAgentEnvironmentProvider as bm, WorkerInteractiveBinding as bn, recoverRetainedRun as bo, VerdictSummary as bp, readWorkerSteerAcknowledgement as br, LoopOptionsForDispatch as bs, SpawnPreflightContext as bt, PursuitNodeUsage as bu, RouteGate as bv, captureHarnessTranscript as bx, EventBus as by, AgentTaskContext as c, LoopTraceEvent as cS, PairwiseOptions as c_, asAuthoredProfile as ca, defaultRedactor as cb, ShotSpec as cc, superviseWithTestBrain as cd, createBudgetPool as cf, researcherProfile as cg, DelegateRunCtx as ch, loadGraph as ci, WidenDecision as cl, SharedBoxCloseReceipt as cm, fsSurfaceReader as cn, SandboxLineage as co, CoordinationLog as cp, searchPresets as cr, sanitizeMcpToolSchema as cs, DriverFailureClass as ct, SupervisePursuitError as cu, CoordinationEvent as cv, RetainedInteractiveAdmissionHook as cx, createPeerMailbox as cy, AgentTaskStatus as d, MountRecorder as dS, ScoreOf as d_, profileRichnessFinding as da, BackendTransportError as db, StrategyCtx as dc, AuthorizedSpawnContext as dd, readRootStreamReceipt as df, readTraceContextFromEnv as dg, UiAuditorDelegate as dh, recordGraphRun as di, WinnerStrategy as dl, SharedBoxStats as dm, analystsFromRegistry as dn, AcquireOptions as do, CheckRead as dp, createScope as dr, BenchmarkLift as ds, CoordinationStats as dt, superviseGraphPursuit as du, ManagerReentryState as dv, RetainedInteractiveStartMaterial as dx, peerMailVerbNames as dy, LoopPlanDescription as eS, createCodeModeTools as e_, ChatTransportTool as ea, loadSpawnForest as eb, SurfaceScore as ec, formatPromptHandle as ed, LeakedReservation as ef, UiFindingSeverity as eg, ToolLoopCompactionOptions as eh, GraphSelection as ei, ScopeWidenGate as el, createSteerableSandboxSession as em, BoxSurfaceReaderOptions as en, Deliverable as eo, CoordinationMcpHandle as ep, createFencedSqlRunContext as er, assertTraceDerivedFindings as es, ProviderModelAttemptEvidence as et, PursuitVersionChain as eu, sanitizeKnowledgeReadinessReport as ev, ExecutorProgress as ex, PeerMailLimits as ey, BackendErrorDetail as f, OutputAdapter as fS, leaderboard as f_, supervisorInstructions as fa, ConfigError as fb, StrategyResult as fc, SuperviseOptions as fd, supervisorAgent as ff, DelegationTraceSpan as fg, detachedSessionDelegate as fh, storedGraphDigests as fi, DefinePersona as fl, SharedWorkerIdentity as fm, failuresAnalyst as fn, acquireSandbox as fo, ContinuationAppend as fp, ScopeArgs as fr, BenchmarkReport as fs, CoordinationTools as ft, supervisePursuit as fu, ManagerWake as fv, StartRetainedInteractiveRunOptions as fx, JsonRpcMessage as fy, OpenAIChatToolChoice as g, ValidationCtx as gS, renderLeaderboardSvg as g_, CheckRunner as ga, AgentSpec as gb, defineStrategy as gc, ResolvedWorkerSpawnRetry as gd, DriveHarness as gf, FileDelegationStore as gg, SiblingSandboxExecutorOptions as gh, DispatchUnit as gi, Persona as gl, sharedWorkerClientName as gm, WorktreeCliExecutorOptions as gn, PrivateCasNamespaceInventory as go, ContinuationPanelResult as gp, WriteWorkerSteerOptions as gr, printBenchmarkReport as gs, MakeWorkerAgent as gt, PursuitNodeCost as gu, GateDecision as gv, HarnessTranscriptFile as gx, McpTransport as gy, OpenAIChatTool as h, SelectionReceipt as hS, renderLeaderboardMarkdown as h_, CheckRunContext as ha, ValidationError as hb, authorStrategy as hc, createWorkerSlots as hd, CoordinationVerbs as hf, DelegationStore as hg, FleetWorkspaceExecutorOptions as hh, DispatchStopReason as hi, Outcome as hl, sharedBoxRefusal as hm, worktreeFanout as hn, createS3PrivateCasStore as ho, ContinuationPanelInput as hp, WorkerSteerRequest as hr, Environment as hs, GraphSubtasks as ht, PursuitCostProvenance as hu, DecideGate as hv, HarnessTranscriptEvidence as hx, McpToolDescriptor as hy, AgentExecutionBackend as i, LoopStartedPayload as iS, Interval as i_, createChatSessionStore as ia, InMemoryResultBlobStore as ib, runAgentic as ic, PursuitFork as id, ReservationShortfall as if, ResearchOutput as ig, FeedbackStore as ih, graphFromStored as ii, TrajectoryReportOptions as il, InboxMessage as im, SurfaceReadOutcome as in, SandboxRun as io, serveCoordinationMcp as ip, SearchSpecInputs as ir, observationFromRegistry as is, SupervisedResult as it, VersionJudge as iu, WorktreeHarnessResult as iv, createActivityLog as ix, PeerMailSendInput as iy, TraceSummary as j, RecoverRetainedRunOptions as jS, runAgentRounds as j_, modelAuthoredChecks as ja, UnknownMaterializationReason as jb, observe as jc, subscriptionUsageLimitSignal as jd, PlateauOptions as jf, completionAuthorizes as jg, SubmitOutput as jh, TraceRootReceipt as ji, LeaderboardIterationInfo as jl, ResolvedMcpServerLaunch as jm, spendFromUsageEvents as jn, profileOptimizerModelCall as jo, resolveSpawnResourcePaths as jp, connectRemoteSupervisor as jr, InProcessOnPrompt as js, AgentEnvironmentSummary as jt, AgentGraph as ju, QuestionOption as jv, ProviderNativeCapturePhase as jx, AnalystRunContext as jy, TRACE_SUMMARY_SCHEMA as k, ReconnectRetainedRunOptions as kS, createWaterfallCollector as k_, defaultStructuralRolloutPolicy as ka, ProfileMaterializationReceipt as kb, ObserveOptions as kc, SeatStage as kd, AllWorkersStalledOptions as kf, CompletionPolicy as kg, DelegationTaskQueueOptions as kh, SpawnEvent as ki, LeaderboardBenchmarkAdapter as kl, BridgeSeam as km, composeWorkerEvidence as kn, resolveSandboxClient as ko, SpawnResourceReader as kp, RemoteSupervisorTree as kr, defaultSelectWinner as ks, AgentEnvironmentQuery as kt, ObserverRecordKind as ku, QuestionEscalationTarget as kv, retainHarnessTranscript as kx, AnalystLensOutput as ky, AgentTaskRunResult as l, LoopWinner as lS, PairwiseVerdict as l_, assessAuthoredProfile as la, AgentEvalError$1 as lb, Strategy as lc, workerFromBackend as ld, RootStreamRecord as lf, TraceContext as lg, DetachedSessionDelegateOptions as lh, lookupGraph as li, WidenLineage as ll, SharedBoxPlacement as lm, harvestSurfaceDiffs as ln, SandboxLineageHandle as lo, FileCoordinationLog as lp, searchSpecDigest as lr, BenchmarkCell as ls, DriverRepromptRefusal as lt, SupervisePursuitOptions as lu, EventAcknowledgement as lv, RetainedInteractiveEnvironmentInput as lx, isPeerMailEnvelope as ly, OpenAIChatResponseFormat as m, SandboxClient as mS, renderLeaderboardHtml as m_, CheckOutcome as ma, NotFoundError as mb, assertStrategyContract as mc, WorkerSlots as md, CoordinationToolFace as mf, DelegationPersistenceError as mg, FleetHandle as mh, DispatchReport as mi, LoopShape as ml, ROUTER_CLIENT_HEADER as mm, WorktreeFanoutOptions as mn, S3PrivateCasStoreOptions as mo, ContinuationPanel as mp, WorkerSteerAcknowledgement as mr, BenchmarkTaskRow as ms, GraphSubtaskPreparation as mt, PursuitObserverDelivery as mu, WorkerWatchOptions as mv, HarnessTranscriptCapture as mx, McpToolAnnotations as my, AgentBackendContext as n, LoopResult as nS, AxisScoresOf as n_, chatTransportExecutor as na, replaySpawnTree as nb, depthStrategy as nc, naiveContinuationPrompt as nd, ReservationHolder as nf, KnowledgeItem as ng, ToolLoopToolCall as nh, digestOfGraph as ni, TrajectoryNode as nl, Inbox as nm, SurfaceDiff as nn, OpenSandboxRunOptions as no, CoordinationReadAccess as np, SEARCH_SPEC_CORRELATION_KEY as nr, createScopeAnalyst as ns, RootProviderModelEvidence as nt, PursuitVersions as nu, WorktreeCheckRunner as nv, TeamProgress as nx, PeerMailReadout as ny, AgentRuntimeEvent as o, LoopTokenUsage as oS, LeaderboardOptions as o_, ProfileRichness as oa, contentAddress as ob, AuthorStrategyOptions as oc, supervise as od, ReservationTicket as of, ResearchTask as og, CoderReview as oh, graphRunsFor as oi, VerifySpec as ol, DEFAULT_SHARED_BOX_RESOURCES as om, WatchedSurface as on, TurnResult as oo, CoordinationRejectReason as op, assertSearchSpec as or, McpEnvironmentOptions as os, DriverAttemptStop as ot, assertPursuitVersions as ou, GitRunner as ov, ReconnectRetainedInteractiveRunOptions as ox, PeerMailboxOptions as oy, KnowledgeReadinessDecision as p, RunProvenance as pS, pairwiseSignificance as p_, CheckExecChannel as pa, JudgeError as pb, adaptiveRefine as pc, SuperviseTestOptions as pd, supervisorAgentWithTestBrain as pf, composeLoopTraceEmitters as pg, DelegationExecutor as ph, taskShapeDigest as pi, DefinePersonaInput as pl, sharedBoxPlacement as pm, AuthoredHarness as pn, S3PrivateCasStore as po, ContinuationEntry as pp, WorkerCancellation as pr, BenchmarkStrategySummary as ps, CoordinationToolsOptions as pt, RunReopen as pu, ToolOutcomeEvent as pv, HarnessTranscriptArtifact as px, JsonRpcResponse as py, SpawnPrior as q, RetainedRunReplayPoint as qS, RuntimeStreamEventSink as q_, EvolutionStrategy as qa, SessionMessageLike as qb, PanelJudge as qc, RunParkedError as qd, composeReentryTask as qf, decodeHarnessUsage as qg, FeedbackRating as qh, WidenGate as qi, IsolatedCheckBoxEvidence as ql, RouterResponseReceipt as qm, WorkerToolTraceArtifact as qn, panel as qo, RouterSeam as qp, InteractiveWorkerOptions as qr, AgenticTask as qs, SandboxEvent$1 as qt, PromptRegistry as qu, MapSpawnMarker as qv, Iteration as qx, materializeTreeView as qy, AgentBackendInput as r, LoopSandboxPlacement as rS, GroupOf as r_, chatWorkerSeam as ra, FileSpawnJournal as rb, refine as rc, promptHandle as rd, ReservationRejection as rf, KnowledgeUpdate as rg, FeedbackEvent as rh, graphDigest as ri, TrajectoryReport as rl, InboxLease as rm, SurfaceReadBox as rn, OpenSandboxRunPromptOptions as ro, CoordinationTransportOptions as rp, SearchSpec as rr, registryScopeAnalyst as rs, RootStreamReceipt as rt, SettledPursuitVersion as ru, WorktreeCommandResult as rv, WorkerProgress as rx, PeerMailRefusal as ry, AgentRuntimeEventSink as s, LoopTraceEmitter as sS, LeaderboardRow as s_, ProfileRichnessThresholds as sa, Redactor as sb, AuthoredStrategy as sc, superviseFleetCapabilities as sd, ReserveOptions as sf, ResearcherProfileOptions as sg, CoderReviewer as sh, listGraphRuns as si, Widen as sl, DEFAULT_SHARED_BOX_WORKERS as sm, boxSurfaceReader as sn, openSandboxRun as so, CoordinationDeliveryEvidence as sp, compileSearchSpec as sr, createMcpEnvironment as ss, DriverContinuationRecord as st, SuperviseGraphPursuitOptions as su, AwaitWakeInput as sv, RecoverRetainedInteractiveRunOptions as sx, claimsAuthority as sy, AgentAdapter as t, LoopPlanPayload as tS, runCodeMode as t_, ChatWorkerSeamOptions as ta, FileResultBlobStore as tb, breadthStrategy as tc, kernelPromptRegistry as td, ReservationFloor as tf, UiLens as tg, ToolLoopMessageRecord as th, StoredGraph as ti, SteerContext as tl, AuthorityInboxMessage as tm, HarvestSurfaceDiffsOptions as tn, OpenSandboxRunBeforeStartContext as to, CoordinationPublicAddress as tp, CompiledSearchSpec as tr, buildSteerContext as ts, ProviderModelExecutionEvidence as tt, PursuitVersionStop as tu, InPlaceHarnessResult as tv, ScopeProgressInput as tx, PeerMailOutcome as ty, AgentTaskSpec as u, MountManifestEntry as uS, ProfileKeyOf as u_, defaultProfileRichnessThresholds as ua, AgentEvalErrorCode as ub, StrategyArtifacts as uc, AuthorizedSpawn as ud, readRootStream as uf, createPropagatingTraceEmitter as ug, DetachedWinnerSelection as uh, pickBestGraph as ui, WidenSpec as ul, SharedBoxPlacementOptions as um, AnalystAuthoring as un, createSandboxLineage as uo, PriorCoordination as up, settledToIteration as ur, BenchmarkConfig as us, BlockedToolReport as ut, SupervisedPursuitResult as uu, LeadMessage as uv, RetainedInteractiveRunHandle as ux, peerMailTools as uy, RunAgentTaskStreamOptions as v, RuntimeRunCompleteInput as vS, AnytimeReport as v_, CheckSourceCtx as va, ExecutorFactory as vb, strategyAuthorContract as vc, WorkerSpawnRetryHooks as vd, ObserveSupervisorNodeEvent as vf, CoderOutput as vg, createSiblingSandboxExecutor as vh, freeSlots as vi, PersonaExecutors as vl, AgentEnvironmentProviderRegistry as vm, createWorktreeCliExecutor as vn, PrivateCasNamespaceRetirement as vo, ContinuationProfile as vp, legacySupervisorRunDir as vr, LoopCampaignDispatchOptions as vs, SettledWorker as vt, PursuitNodeProjection as vu, JsonScalar as vv, HarnessTranscriptUnavailableReason as vx, BusRecord as vy, RuntimeFailureCode as w, RuntimeRunStatus as wS, plateauLength as w_, VisibleCheck as wa, ExecutorMaterialization as wb, harvestCorpus as wc, SuperviseRegistry as wd, SupervisorNodeContextSeed as wf, gateOnDeliverable as wg, DelegationResumeContext as wh, graphDesignerExtraTools as wi, ProviderAsSandboxClientOptions as wl, providerAsExecutor as wm, EVIDENCE_MAX_CHARS as wn, claimRetainedInteractiveControl as wo, DriverRetryPolicy as wp, supervisorRunsRoot as wr, loopDispatch as ws, WorkerSpawnContext as wt, PursuitStatus as wu, EscalateQuestion as wv, HarnessTranscriptReadLimits as wx, defaultToolDetectors as wy, RuntimeSessionStore as x, RuntimeRunOptions as xS, anytimeReport as x_, StructuralRolloutMessage as xa, AgentExecutionRef as xb, HarvestError as xc, resolveWorkerSpawnRetry as xd, SupervisorAgentDeps as xf, CheckVerdict as xg, runDetachedTurn as xh, DesignerRunGraphEnv as xi, ShapeBudget as xl, ProviderExecutorOptions as xm, WorkerInteractiveProviderSource as xn, startRetainedRun as xo, admitContinuationPolicy as xp, readWorkerSteerRequests as xr, SuperviseDispatchOptions as xs, SpawnRefusal as xt, PursuitProjection as xu, RouteMatch as xv, harnessTranscriptArtifact as xx, PublishOptions as xy, RuntimeCanonicalStreamEvent as y, RuntimeRunCost as yS, AnytimeStrategySummary as y_, RepairStop as ya, ExecutorRegistry as yb, strategyAuthorSystemPrompt as yc, WorkerSpawnRetryPolicy as yd, ResolveDriveHarness as yf, CoderTask as yg, DetachedTurn as yh, queueOf as yi, RunPersonified as yl, createAgentEnvironmentProviderRegistry as ym, AttachWorkerOptions as yn, reconnectRetainedRun as yo, PanelFinding as yp, readWorkerCancellation as yr, LoopDispatchOptions as ys, SpawnPreflight as yt, PursuitNodeTiming as yu, RouteFlow as yv, ReadableEnvironment as yx, BusStats as yy, SpendGap as z, RetainedRunCancelOptions as zS, OtelSpan as z_, AgentTurnInput$1 as za, HeldEnvironment as zb, EqualKOnCostOptions as zc, SupervisorSpanAttributes as zd, RunCancelRequest as zf, CodexRolloutStoreRef as zg, DelegationError as zh, Supervisor as zi, DeclaredCheckStateCapture as zl, SandboxToolPartState as zm, WorkspaceCommit as zn, definePersona as zo, createExecutorRegistry as zp, bestProfileFor as zr, McpSpawnFault as zs, CheckpointRequest as zt, RunGraphOptions as zu, ContinuityMode as zv, ExecutorProgressEvent as zx, runLocalHarness as zy };
|
|
19607
|
-
//# sourceMappingURL=types-hc4cmSc7.d.ts.map
|
|
19658
|
+
export { NoWinnerError as $, NativeContextContinuationExecution as $S, WaterfallCollector as $_, filterAuthoredAsserts as $a, MaterializedExecutionIdentity as $b, defaultAnalystInstruction as $c, SeatSelectionInput as $d, SupervisorProfile as $f, verdictFromJudgeScore as $g, DelegationRunContext as $h, SpawnJournal as $i, LeaderboardFlagSpec as $l, BridgeHarnessStore as $m, validateStoredGraph as $n, profileChatClient as $o, SpawnResourceBytes as $p, InteractiveWorkerOptions as $r, inlineSandboxClient as $s, createVerifierEnvironment as $t, observerRecordDigest as $u, QuestionDecision as $v, RetainedHarnessTranscriptCapture as $x, AnalystAssignmentRecord as $y, TraceRootArtifact as A, LoopSandboxPlacement as AS, GroupOf as A_, ProfileRichnessThresholds as Aa, FileSpawnJournal as Ab, AuthoredStrategy as Ac, RUN_FORK_CORRELATION_KEYS as Ad, ReservationStage as Af, ResearchOutput as Ag, FeedbackStore as Ah, lookupGraph as Ai, Widen as Al, InboxMessage as Am, settledWorkerOut as An, openSandboxRun as Ao, serveCoordinationMcp as Ap, RemoteSupervisorCancelResult as Ar, createMcpEnvironment as As, AgentEnvironmentStatus as At, SuperviseGraphPursuitOptions as Au, WorktreeCommandResult as Av, WorkerProgress as Ax, PeerMailRefusal as Ay, Handle as B, RunProvenance as BS, pairwiseSignificance as B_, CheckSource as Ba, JudgeError as Bb, sampleThenRefine as Bc, createWorkerSlots as Bd, CoordinationVerbs as Bf, DelegationPersistenceError as Bg, FleetHandle as Bh, RollingDispatchOptions as Bi, PersonaContext as Bl, ROUTER_CLIENT_HEADER as Bm, WorkspaceRun as Bn, PrivateCasNamespaceObject as Bo, ContinuationPanel as Bp, ProvisionedSupervisor as Br, runBenchmark as Bs, CreateAgentEnvironmentInput$1 as Bt, PursuitNodePlatform as Bu, ToolOutcomeEvent as Bv, HarnessTranscriptArtifact as Bx, JsonRpcResponse as By, RuntimeFailureCause as C, RetainedRunTurnInput as CC, LoopIterationDispatchPayload as CS, CodeModeToolContext as C_, ChatTransportTool as Ca, SpawnForestInDoubtNode as Cb, SurfaceScore as Cc, dumbContinuationFailPrompt as Cd, BudgetPoolRestore as Cf, UiAuditorDelegationOutput as Cg, ToolLoopCallContext as Ch, graphCorpusSummary as Ci, ScopeWidenGate as Cl, SandboxSteeringOptions as Cm, readWorkerInteractiveBinding as Cn, Deliverable as Co, bestDelivered as Cp, readWorkerSteerRequests as Cr, assertTraceDerivedFindings as Cs, SuperviseProfileEntry as Ct, PursuitVersionChain as Cu, SanitizedKnowledgeReadinessReport as Cv, createPushTraceSource as Cx, DEFAULT_PEER_MAIL_LIMITS as Cy, RetainedPendingCause as D, LoopPlanDescription as DS, createCodeModeTools as D_, createChatSessionStore as Da, loadSpawnForest as Db, runAgentic as Dc, naiveContinuationPrompt as Dd, ReservationHolder as Df, UiLens as Dg, ToolLoopMessageRecord as Dh, graphRunsFor as Di, TrajectoryReportOptions as Dl, AuthorityInboxMessage as Dm, WorkerEvidenceInput as Dn, SandboxRun as Do, CoordinationPublicAddress as Dp, workerInboxFileFromEventDir as Dr, observationFromRegistry as Ds, AgentEnvironmentEvent$1 as Dt, VersionJudge as Du, sanitizeKnowledgeReadinessReport as Dv, ExecutorProgress as Dx, PeerMailLimits as Dy, EvidencePendingEvent as E, LoopLineageOptions as ES, RunCodeModeOptions as E_, chatWorkerSeam as Ea, SpawnForestTree as Eb, refine as Ec, kernelPromptRegistry as Ed, ReservationFloor as Ef, UiFindingSeverity as Eg, ToolLoopCompactionOptions as Eh, graphRegistry as Ei, TrajectoryReport as El, createSteerableSandboxSession as Em, VERIFY_TAIL_CHARS as En, OpenSandboxRunPromptOptions as Eo, CoordinationMcpHandle as Ep, supervisorRunsRoot as Er, registryScopeAnalyst as Es, AgentEnvironmentCapabilities$1 as Et, SettledPursuitVersion as Eu, createRuntimeStreamEventCollector as Ev, DEFAULT_STALL_AFTER_MS as Ex, PeerMailEvent as Ey, ResourceLimit as F, LoopTraceEvent as FS, PairwiseOptions as F_, supervisorInstructions as Fa, defaultRedactor as Fb, StrategyResult as Fc, AuthorizedSpawn as Fd, readRootStream as Ff, TraceContext as Fg, DetachedSessionDelegateOptions as Fh, taskShapeDigest as Fi, DefinePersona as Fl, SharedBoxPlacement as Fm, withUntrackedArtifacts as Fn, acquireSandbox as Fo, FileCoordinationLog as Fp, RemoteWorkerEvents as Fr, BenchmarkReport as Fs, AgentSessionStatus$1 as Ft, supervisePursuit as Fu, CoordinationEvent as Fv, RetainedInteractiveAdmissionHook as Fx, createPeerMailbox as Fy, Settled as G, RuntimeRunCompleteInput as GS, AnytimeReport as G_, StructuralRolloutPolicy as Ga, ExecutorFactory as Gb, HarvestFailure as Gc, isPreSpawnExecutorFailure as Gd, ResolveSupervisorTools as Gf, CoderTask as Gg, DetachedTurn as Gh, DesignerToolsEnv as Gi, ShapeContext as Gl, createAgentEnvironmentProviderRegistry as Gm, TrajectoryAnalysis as Gn, startRetainedRunInEnvironment as Go, PanelFinding as Gp, bestProfileFor as Gr, SuperviseOptionsForDispatch as Gs, PlacementInfo as Gt, PursuitRunProjection as Gu, JsonScalar as Gv, HarnessTranscriptUnavailableReason as Gx, BusRecord as Gy, NodeSnapshot as H, SelectionReceipt as HS, renderLeaderboardMarkdown as H_, RepairStop as Ha, ValidationError as Hb, strategyAuthorSystemPrompt as Hc, WorkerSpawnRetryAttempt as Hd, DriveHarnessOwnerContext as Hf, FileDelegationStore as Hg, SiblingSandboxExecutorOptions as Hh, queueOf as Hi, RunPersonified as Hl, sharedWorkerClientName as Hm, jjWorkspace as Hn, reconnectRetainedRun as Ho, ContinuationPanelResult as Hp, provisionSupervisor as Hr, LoopDispatchOptions as Hs, ExecRequest as Ht, PursuitNodeTiming as Hu, DecideGate as Hv, HarnessTranscriptEvidence as Hx, McpToolDescriptor as Hy, ResourceSpend as I, LoopWinner as IS, PairwiseVerdict as I_, CheckExecChannel as Ia, AgentEvalError$1 as Ib, adaptiveRefine as Ic, AuthorizedSpawnContext as Id, readRootStreamReceipt as If, createPropagatingTraceEmitter as Ig, DetachedWinnerSelection as Ih, GraphTriggerBinding as Ii, DefinePersonaInput as Il, SharedBoxPlacementOptions as Im, GitWorkspaceOptions as In, S3PrivateCasStore as Io, PriorCoordination as Ip, connectRemoteSupervisor as Ir, BenchmarkStrategySummary as Is, AgentTurnResult$2 as It, RunReopen as Iu, EventAcknowledgement as Iv, RetainedInteractiveEnvironmentInput as Ix, isPeerMailEnvelope as Iy, SpawnRejection as J, RuntimeRunOptions as JS, anytimeReport as J_, canDisplace as Ja, AgentExecutionRef as Jb, Observation as Jc, withWorkerSpawnRetry as Jd, SupervisorNodeContext as Jf, CompletionCheckContext as Jg, DelegationArgs as Jh, DelegateOptions as Ji, providerAsSandboxClient as Jl, ProviderLeafOut as Jm, parseWorkerToolTraceArtifact as Jn, reconnectRetainedInteractiveRun as Jo, DriverContractState as Jp, profileRegistry as Jr, superviseDispatch as Js, SandboxInstance$1 as Jt, projectPursuit as Ju, RouteMatch as Jv, harnessTranscriptArtifact as Jx, PublishOptions as Jy, SpawnOpts as K, RuntimeRunCost as KS, AnytimeStrategySummary as K_, StructuralRolloutResult as Ka, ExecutorRegistry as Kb, HarvestReport as Kc, resolveWorkerSpawnRetry as Kd, SupervisorAgentDeps as Kf, CheckUnavailableError as Kg, RunDetachedTurnOptions as Kh, GraphDesignerExtraTools as Ki, ShapeRegistry as Kl, resolveAgentEnvironmentProvider as Km, analyzeTrace as Kn, ClaimRetainedInteractiveControlOptions as Ko, VerdictSummary as Kp, loadProfile as Kr, loopCampaignDispatch as Ks, ResourceRequest as Kt, PursuitRunTotals as Ku, RouteFlow as Kv, ReadableEnvironment as Kx, BusStats as Ky, Spend as L, MountManifestEntry as LS, ProfileKeyOf as L_, CheckOutcome as La, AgentEvalErrorCode as Lb, assertStrategyContract as Lc, SuperviseOptions as Ld, supervisorAgent as Lf, readTraceContextFromEnv as Lg, UiAuditorDelegate as Lh, DispatchReport as Li, LoopShape as Ll, SharedBoxStats as Lm, Shell as Ln, S3PrivateCasStoreOptions as Lo, CheckRead as Lp, connectRemoteSupervisorControl as Lr, BenchmarkTaskRow as Ls, AnalystFinding$1 as Lt, PursuitObserverDelivery as Lu, LeadMessage as Lv, RetainedInteractiveRunHandle as Lx, peerMailTools as Ly, Budget as M, LoopTeardownFailedPayload as MS, Leaderboard as M_, assessAuthoredProfile as Ma, InMemorySpawnJournal as Mb, Strategy as Mc, superviseFleetCapabilities as Md, ReserveOptions as Mf, ResearchTask as Mg, CoderReview as Mh, recordGraphRun as Mi, WidenLineage as Ml, DEFAULT_SHARED_BOX_RESOURCES as Mm, CopyOptions as Mn, SandboxLineageHandle as Mo, CoordinationRejectReason as Mp, RemoteSupervisorReader as Mr, BenchmarkCell as Ms, AgentProfile$2 as Mt, SupervisePursuitOptions as Mu, WorktreeProfileMaterializationReceipt as Mv, readWorkerProgress as Mx, PeerMailbox as My, BudgetOverspend as N, LoopTokenUsage as NS, LeaderboardOptions as N_, defaultProfileRichnessThresholds as Na, contentAddress as Nb, StrategyArtifacts as Nc, superviseWithTestBrain as Nd, createBudgetPool as Nf, ResearcherProfileOptions as Ng, CoderReviewer as Nh, recordStoredGraphRun as Ni, WidenSpec as Nl, DEFAULT_SHARED_BOX_WORKERS as Nm, UntrackedCopyStats as Nn, createSandboxLineage as No, CoordinationDeliveryEvidence as Np, RemoteSupervisorSteerResult as Nr, BenchmarkConfig as Ns, AgentSession as Nt, SupervisedPursuitResult as Nu, GitRunner as Nv, ReconnectRetainedInteractiveRunOptions as Nx, PeerMailboxOptions as Ny, TRACE_ROOT_SCHEMA as O, LoopPlanPayload as OS, runCodeMode as O_, AuthoredProfile as Oa, FileResultBlobStore as Ob, sample as Oc, promptHandle as Od, ReservationRejection as Of, KnowledgeItem as Og, ToolLoopToolCall as Oh, listGraphRuns as Oi, Verify as Ol, Inbox as Om, closingWorkerNote as On, SandboxRunAbortError as Oo, CoordinationReadAccess as Op, writeWorkerSteer as Or, McpEndpoint as Os, AgentEnvironmentProvider$1 as Ot, VersionVerdict as Ou, InPlaceHarnessResult as Ov, ScopeProgressInput as Ox, PeerMailOutcome as Oy, BudgetViolation as P, LoopTraceEmitter as PS, LeaderboardRow as P_, profileRichnessFinding as Pa, Redactor as Pb, StrategyCtx as Pc, workerFromBackend as Pd, RootStreamRecord as Pf, researcherProfile as Pg, DelegateRunCtx as Ph, storedGraphDigests as Pi, WinnerStrategy as Pl, SharedBoxCloseReceipt as Pm, copyUntrackedIntoClone as Pn, AcquireOptions as Po, CoordinationLog as Pp, RemoteSupervisorTree as Pr, BenchmarkLift as Ps, AgentSessionRef as Pt, superviseGraphPursuit as Pu, AwaitWakeInput as Pv, RecoverRetainedInteractiveRunOptions as Px, claimsAuthority as Py, FleetYield as Q, startRuntimeRun as QS, renderAnytimeTable as Q_, defaultStructuralRolloutPolicy as Qa, ExecutorNodeContext as Qb, ObserveOptions as Qc, SeatSelection as Qd, ManagerWakePolicy as Qf, mapExecutorResult as Qg, DelegationResumeTick as Qh, SpawnEvent as Qi, LeaderboardBenchmarkAdapter as Ql, ProviderPlacement as Qm, ValidateStoredGraphOptions as Qn, resolveSandboxClient as Qo, ResolvedSpawnResourcePath as Qp, InteractiveWorkerKeyInput as Qr, defaultSelectWinner as Qs, VerifierEnvironmentOptions as Qt, ObserverRecordKind as Qu, Question as Qv, HarnessTranscriptReadOptions as Qx, watchTrace as Qy, SpendChannel as R, MountRecorder as RS, ScoreOf as R_, CheckRunContext as Ra, BackendTransportError as Rb, authorStrategy as Rc, SuperviseTestOptions as Rd, supervisorAgentWithTestBrain as Rf, DelegationTraceSpan as Rg, detachedSessionDelegate as Rh, DispatchStopReason as Ri, Outcome as Rl, SharedWorkerIdentity as Rm, Workspace as Rn, createS3PrivateCasStore as Ro, ContinuationAppend as Rp, ProvisionSupervisorConnection as Rr, Environment as Rs, CheckpointRef as Rt, PursuitCostProvenance as Ru, ManagerReentryState as Rv, RetainedInteractiveStartMaterial as Rx, peerMailVerbNames as Ry, RuntimeStreamEvent as S, RetainedRunStartMaterial as SC, LoopEndedPayload as SS, CodeModeTool as S_, ChatTransportExecutorOptions as Sa, SpawnForestEvent as Sb, StrategyShotResult as Sc, delegatesWorkerBriefPrompt as Sd, BudgetPool as Sf, UiAuditLensFilter as Sg, ToolSpec as Sh, digestOfGraph as Si, ScopeAnalyzeInput as Sl, DEFAULT_SANDBOX_STEERING_MAX_TURNS as Sm, attachWorker as Sn, strategyTournament as So, SupervisorFinalizer as Sp, readWorkerSteerAcknowledgement as Sr, RegistryAnalyzeProjection as Ss, SpawnRefusalCause as St, NextPursuitVersionInput as Su, RuntimeTelemetryOptions as Sv, TraceSource as Sx, AUTHORITY_MARKERS as Sy, RuntimeFailureOwner as T, StartRetainedRunOptions as TC, LoopIterationStartedPayload as TS, CodeModeToolset as T_, chatTransportExecutor as Ta, SpawnForestNode as Tb, depthStrategy as Tc, formatPromptHandle as Td, LeakedReservation as Tf, UiFindingScreenshot as Tg, ToolLoopCompaction as Th, graphFromStored as Ti, TrajectoryNode as Tl, SteerableSandboxSession as Tm, NOTE_MAX_CHARS as Tn, OpenSandboxRunOptions as To, CoordinationControlAccess as Tp, supervisorRunDir as Tr, createScopeAnalyst as Ts, AgentEnvironment$1 as Tt, PursuitVersions as Tu, createRuntimeEventCollector as Tv, ActivityNote as Tx, PeerMailEnvelope as Ty, NodeStatus as U, ValidationCtx as US, renderLeaderboardSvg as U_, StructuralRolloutConfig as Ua, AgentSpec as Ub, HarvestCorpusOptions as Uc, WorkerSpawnRetryHooks as Ud, ObserveSupervisorNodeEvent as Uf, FileDelegationStoreOptions as Ug, createFleetWorkspaceExecutor as Uh, rollingDispatch as Ui, RunPersonifiedOptions as Ul, AgentEnvironmentProviderRef as Um, localShell as Un, recoverRetainedRun as Uo, ContinuationPolicy as Up, ProfileRegistryDir as Ur, LoopOptionsForDispatch as Us, ExecResult as Ut, PursuitNodeUsage as Uu, GateDecision as Uv, HarnessTranscriptFile as Ux, McpTransport as Uy, NodeId as V, SandboxClient as VS, renderLeaderboardHtml as V_, CheckSourceCtx as Va, NotFoundError as Vb, strategyAuthorContract as Vc, ResolvedWorkerSpawnRetry as Vd, DriveHarness as Vf, DelegationStore as Vg, FleetWorkspaceExecutorOptions as Vh, freeSlots as Vi, PersonaExecutors as Vl, sharedBoxRefusal as Vm, gitWorkspace as Vn, PrivateCasNamespaceRetirement as Vo, ContinuationPanelInput as Vp, SupervisorCleanupReceipt as Vr, LoopCampaignDispatchOptions as Vs, CreateSandboxOptions$1 as Vt, PursuitNodeProjection as Vu, WorkerWatchOptions as Vv, HarnessTranscriptCapture as Vx, McpToolAnnotations as Vy, RetainedExecutionState as W, Validator as WS, renderPairwiseMarkdown as W_, StructuralRolloutMessage as Wa, ExecutorContext as Wb, HarvestError as Wc, WorkerSpawnRetryPolicy as Wd, ResolveDriveHarness as Wf, CoderOutput as Wg, createSiblingSandboxExecutor as Wh, DesignerRunGraphEnv as Wi, ShapeBudget as Wl, AgentEnvironmentProviderRegistry as Wm, runInWorkspace as Wn, startRetainedRun as Wo, ContinuationProfile as Wp, ProfileRunRecord as Wr, SuperviseDispatchOptions as Ws, ForkRequest as Wt, PursuitProjection as Wu, GateRequest as Wv, HarnessTranscriptUnavailable as Wx, BusEvent as Wy, SubtreeSummary as X, RuntimeRunRow as XS, bestSoFar as X_, composeCheckSources as Xa, ExecutorExecutionBinding as Xb, ObservationError as Xc, SuperviseRegistryTable as Xd, SupervisorToolDescriptor as Xf, ExecutorResultMapping as Xg, DelegationResumeContext as Xh, delegate as Xi, LeaderboardBenchScore as Xl, providerAsExecutor as Xm, createSupervisor as Xn, startRetainedInteractiveRun as Xo, DriverRetryPolicy as Xp, recordProfileRun as Xr, TERMINAL_DECISIONS as Xs, computeFindingId$1 as Xt, ObserverJournal as Xu, ChildQuestionInbox as Xv, HarnessTranscriptMetadata as Xx, WatchTraceOptions as Xy, SubtreeResult as Y, RuntimeRunPersistenceAdapter as YS, areaUnderCurve as Y_, compareCheckOutcomes as Ya, ExecutionBindingReceipt as Yb, ObservationAnalysis as Yc, SuperviseRegistry as Yd, SupervisorNodeContextSeed as Yf, DeliverableSpec as Yg, DelegationRecord as Yh, defaultDelegateBudget as Yi, DefinedLeaderboard as Yl, ProviderPromptOptions as Ym, DEFAULT_MAX_DEPTH as Yn, recoverRetainedInteractiveRun as Yo, DriverReentry as Yp, profileRunsForName as Yr, LocalSandboxClientOptions as Ys, WorkspaceRequest as Yt, FileObserverJournal as Yu, RouteWhen as Yv, persistHarnessTranscript as Yx, createEventBus as Yy, TreeView as Z, RuntimeRunStatus as ZS, plateauLength as Z_, defaultExtractCandidate as Za, ExecutorMaterialization as Zb, ObserveInput as Zc, SeatSegment as Zd, SupervisorToolInvocationContext as Zf, gateOnDeliverable as Zg, DelegationResumeDriver as Zh, ResultBlobStore as Zi, LeaderboardBenchTask as Zl, UnavailablePausePolicy as Zm, createRootHandle as Zn, ResolveSandboxClientOptions as Zo, ResolveSpawnResourcePathsResult as Zp, InteractiveWorkerEnvironment as Zr, TerminalDecision as Zs, makeFinding$1 as Zt, ObserverRecord as Zu, EscalateQuestion as Zv, HarnessTranscriptReadLimits as Zx, defaultToolDetectors as Zy, RunAgentTaskOptions as _, RetainedRunEventOptions as _C, DefaultVerdict$2 as _S, harnessUsageIsEmpty as __, WorkerEventCursor as _a, SqlRunOwnershipError as _b, AgenticTool as _c, PromptHandle as _d, ParkedRun as _f, DelegationStatus as _g, extractLlmCallEvent as _h, GraphRunQuery as _i, PanelSpec as _l, CliWorktreeSeam as _m, WorktreePatchArtifact as _n, StrategyEvolutionConfig as _o, UNPROVEN_CONTINUITY as _p, WorkerSteerRequest as _r, pipeline as _s, PeerAuditAccess as _t, IsolatedCheckOptions as _u, padTraceId as _v, WorkerInteractiveUnavailableReason as _x, WorkerResumeContext as _y, AgentKnowledgeProvider as a, RecoverRetainedRunResult as aC, ProviderWorkspaceAttemptProvenance as aS, deterministicCompletion as a_, RootSegmentEntry as aa, AnalyzeOnSettleRoute as ab, LocalMcpMaterialization as ac, GraphNode as ad, RunContext as af, DelegateCodeConfig as ag, mcpSecretEnvMetadataKey as ah, ObservedSessionFacts as ai, CorpusFilter as al, McpServerOptions as am, SurfaceReader as an, structuralRollout as ao, StopRule as ap, SearchSpec as ar, createPrivateCasArtifactPort as as, DriverAttemptRecord as at, defineLeaderboard as au, SandboxEvidenceContext as av, EnvironmentTeardownReceipt as ax, QuestionPolicy as ay, RuntimeSession as b, RetainedRunReplayPoint as bC, Iteration as bS, decodeHarnessUsage as b_, ChatCompletionsTransport as ba, materializeTreeView as bb, RunAgenticOptions as bc, analyzesFindingsReportPrompt as bd, RunParkingRecord as bf, FeedbackRefersTo as bg, RouterTransportConfig as bh, StoredGraph as bi, RenderCorpusToInstructionsOptions as bl, RouterToolsSeam as bm, WorkerInteractiveBinding as bn, TournamentRow as bo, FinalizeContext as bp, legacySupervisorRunDir as br, widen as bs, SpawnPreflightContext as bt, JudgedPursuitVersion as bu, RuntimeStreamEventSink as bv, SessionMessageLike as bx, MapSpawnMarker as by, AgentTaskContext as c, RetainedInteractiveIntentAdmission as cC, ProviderWorkspaceCaptureResult as cS, CodexForkBoundary as c_, Supervisor as ca, DefinedAnalystRecord as cb, McpSpawnFault as cc, RunGraphOptions as cd, createInMemoryRunContext as cf, DelegateUiAuditArgs as cg, secretEnvOfMcpServer as ch, graphRouteWhenSchema as ci, EqualKOnCostOptions as cl, DelegateHandlerOptions as cm, fsSurfaceReader as cn, AgentTurnInput$1 as co, noProgressFor as cp, assertSearchSpec as cr, definePersona as cs, DriverFailureClass as ct, DeclaredCheckStateCapture as cu, OtelAttribute as cv, ExecutorCancellation as cx, questionEscalationTargets as cy, AgentTaskStatus as d, RetainedRunAdmissionHook as dC, ProviderWorkspaceRetentionPort as dS, CodexRolloutStoreReader as d_, ReenteredWorkers as da, RunLocalHarnessOptions as db, connectStdioMcp as dc, runGraph as dd, SupervisorSpanOptions as df, DelegationError as dg, SandboxToolPartState as dh, LoadGraphFileOptions as di, FanoutSynthesis as dl, createExecutorRegistry as dm, analystsFromRegistry as dn, StreamAgentTurnOptions as do, RunCancellation as dp, searchSpecDigest as dr, InMemoryCorpus as ds, CoordinationStats as dt, declaredCheckDeliverable as du, OtelExporter as dv, ExecutorTeardownWarning as dx, ContinuationInstruction as dy, NativeContextContinuationHandle as eC, RetainedHarnessTranscriptDescriptor as eS, CompletionAnalyst as e_, TraceRootReceipt as ea, AnalystFindingEvent as eb, InProcessOnPrompt as ec, AgentGraph as ed, SeatStage as ef, DelegationTaskQueue as eg, BridgeModelCredential as eh, InteractiveWorkerResult as ei, observe as el, SpawnResourceRead as em, BoxSurfaceReaderOptions as en, modelAuthoredChecks as eo, AllWorkersStalledOptions as ep, FencedSqlRunContext as er, profileOptimizerModelCall as es, ProviderModelAttemptEvidence as et, LeaderboardIterationInfo as eu, WaterfallReport as ev, MaterializedModelIdentity as ex, QuestionEscalationOutcome as ey, BackendErrorDetail as f, RetainedRunCancelOptions as fC, ExecutorProgressEvent as fS, CodexRolloutStoreRef as f_, ResumedKeyState as fa, runLocalHarness as fb, materializeLocalMcp as fc, runGraphWithTestBrain as fd, SupervisorSpanOutcome as ff, DelegationFeedbackSnapshot as fg, createSandboxToolPartState as fh, LoadedGraphFile as fi, FanoutWinnerSelector as fl, ExecutorConfig as fm, failuresAnalyst as fn, collectAgentTurn as fo, cancelRun as fp, settledToIteration as fr, renderCorpusToInstructions as fs, CoordinationTools as ft, declaredCheckDigest as fu, OtelSpan as fv, HeldEnvironment as fx, ContinuityMode as fy, OpenAIChatToolChoice as g, RetainedRunEnvironmentAdmission as gC, AgentRunSpec as gS, createCodexRolloutStoreReader as g_, WidenGate as ga, CodexExecutionPolicy as gb, AgenticTask as gc, GraphRouteError as gd, DeadlineCheckIn as gf, DelegationResultPayload as gg, SandboxUsageLedger as gh, GraphRegistryDir as gi, PanelJudge as gl, CliWorktreeBridgeSeam as gm, WorktreeCliExecutorOptions as gn, EvolutionStrategy as go, ReentryTaskInput as gp, WorkerSteerAcknowledgement as gr, panel as gs, MakeWorkerAgent as gt, IsolatedCheckBoxEvidence as gu, padSpanId as gv, WorkerInteractiveSession as gx, DownMessageEvent as gy, OpenAIChatTool as h, RetainedRunEffect as hC, UsageEvent as hS, addHarnessUsage as h_, UnconfirmedTeardown as ha, CodexTokenUsage as hb, AgenticSurface as hc, defaultEdgeTraversalCap as hd, WorkerTraceResolver as hf, DelegationProgress as hg, SandboxServedBackend as hh, GraphCorpusSummary as hi, Panel as hl, CliSeam as hm, worktreeFanout as hn, EvolutionReport as ho, ReentryContinuity as hp, WorkerCancellation as hr, loopUntil as hs, GraphSubtasks as ht, IsolatedCheckBox as hu, loopEventToOtelSpan as hv, Runtime as hx, DownMessageDeliveryOutcome as hy, AgentExecutionBackend as i, RecoverRetainedRunOptions as iC, ProviderNativeCapturePhase as iS, completionAuthorizes as i_, RootSegment as ia, AnalystRunContext as ib, HttpMcpServerSpec as ic, GraphEdgeCapError as id, InMemoryRunContextOptions as if, DelegateCodeArgs as ig, envKeyProvider as ih, GraphSessionObservationOptions as ii, Corpus as il, McpServer as im, SurfaceReadOutcome as in, selectBestIndex as io, StopDecision as ip, SEARCH_SPEC_CORRELATION_KEY as ir, PrivateCasOptions as is, SupervisedResult as it, LeaderboardSpec as iu, runAgentRounds as iv, UnknownMaterializationReason as ix, QuestionOption as iy, TraceSummary as j, LoopStartedPayload as jS, Interval as j_, asAuthoredProfile as ja, InMemoryResultBlobStore as jb, ShotSpec as jc, supervise as jd, ReservationTicket as jf, ResearchSource as jg, CoderDelegate as jh, pickBestGraph as ji, WidenDecision as jl, PeerInboxMessage as jm, spendFromUsageEvents as jn, SandboxLineage as jo, CoordinationHttpAudit as jp, RemoteSupervisorControl as jr, sanitizeMcpToolSchema as js, AgentEnvironmentSummary as jt, SupervisePursuitError as ju, WorktreeHarnessResult as jv, createActivityLog as jx, PeerMailSendInput as jy, TRACE_SUMMARY_SCHEMA as k, LoopResult as kS, AxisScoresOf as k_, ProfileRichness as ka, replaySpawnTree as kb, AuthorStrategyOptions as kc, PursuitFork as kd, ReservationShortfall as kf, KnowledgeUpdate as kg, FeedbackEvent as kh, loadGraph as ki, VerifySpec as kl, InboxLease as km, composeWorkerEvidence as kn, TurnResult as ko, CoordinationTransportOptions as kp, RemoteSupervisorAgent as kr, McpEnvironmentOptions as ks, AgentEnvironmentQuery as kt, assertPursuitVersions as ku, WorktreeCheckRunner as kv, TeamProgress as kx, PeerMailReadout as ky, AgentTaskRunResult as l, RetainedInteractiveStartedAdmission as lC, ProviderWorkspaceEntryMetadata as lS, CodexRolloutIdentity as l_, SupervisorOpts as la, CodexExecutionEvidence as lb, StdioMcpConnection as lc, RunGraphTestOptions as ld, withRunContext as lf, DelegateUiAuditConfig as lg, SandboxLeafOut as lh, GraphFileResolutionError as li, EqualKVerdict as ll, DelegateResult as lm, harvestSurfaceDiffs as ln, AgentTurnUsage as lo, plateau as lp, compileSearchSpec as lr, runPersonified as ls, DriverRepromptRefusal as lt, assertDeclaredCheck as lu, OtelExportConfig as lv, ExecutorCancellationRequest as lx, AuthorizeDownMessage as ly, OpenAIChatResponseFormat as m, RetainedRunDispatchedAdmission as mC, TokenUsageProvenance as mS, CodexStoreDelta as m_, Scope as ma, LocalHarness as mb, AgenticRunResult as mc, GraphFromStoredOptions as md, createSupervisorSpanRecorder as mf, DelegationHistoryEntry as mg, mapSandboxToolEvent as mh, GraphCorpusGroup as mi, LoopUntilState as ml, CliInPlaceSeam as mm, WorktreeFanoutOptions as mn, EvolutionAuthor as mo, readRunCancellation as mp, ScopeArgs as mr, flatWidenGate as ms, GraphSubtaskPreparation as mt, readDeclaredCheck as mu, createOtelExporter as mv, HeldRelease as mx, DownMessageDeliveryAttempt as my, AgentBackendContext as n, ReconnectRetainedRunOptions as nC, retainHarnessTranscript as nS, CompletionPolicy as n_, RecursiveReservationPolicy as na, AnalystLensOutput as nb, InProcessSandboxClientOptions as nc, EdgeTraversal as nd, subscriptionUsageLimitSignal as nf, SubmitInput as ng, KeyProvider as nh, InPlaceCliExecutorOptions as ni, AssertTraceDerivedFindings as nl, environmentReader as nm, SurfaceDiff as nn, resolveEntrySymbol as no, PlateauOptions as np, createFencedSqlRunContext as nr, PrivateCasDurableStore as ns, RootProviderModelEvidence as nt, LeaderboardScenario as nu, createWaterfallCollector as nv, ProfileMaterializationReceipt as nx, QuestionEscalationTarget as ny, AgentRuntimeEvent as o, RetainedInteractiveAdmission as oC, ProviderWorkspaceCaptureProvenance as oS, sentinelCompletion as o_, RootSignal as oa, AuthoredAnalystDefinition as ob, MaterializeLocalMcpOptions as oc, GraphResult as od, RunContextLease as of, DelegateResearchArgs as og, resolveMcpServerLaunch as oh, graphFromSessionFacts as oi, CorpusRecord as ol, createMcpServer as om, WatchedSurface as on, visibleCheckScore as oo, allWorkersStalled as op, SearchSpecInputs as or, equalKOnCost as os, DriverAttemptStop as ot, DeclaredCheck as ou, SandboxEvidenceReceipt as ov, Executor as ox, QuestionRecord as oy, KnowledgeReadinessDecision as p, RetainedRunCancellation as pC, ExecutorToolCall as pS, CodexRolloutTurn as p_, ResumedWork as pa, LOCAL_HARNESSES as pb, AgenticOptions as pc, GraphCommandCheck as pd, SupervisorSpanRecorder as pf, DelegationHistoryArgs as pg, mapSandboxEvent as ph, loadGraphFile as pi, LoopUntilSpec as pl, createExecutor as pm, AuthoredHarness as pn, streamAgentTurn as po, readRunCancelRequest as pp, createScope as pr, fanout as ps, CoordinationToolsOptions as pt, declaredCheckJudge as pu, buildLoopOtelSpans as pv, HeldForContinuation as px, DownMessageAuthorizationInput as py, SpawnPrior as q, RuntimeRunHandle as qS, AnytimeTaskCurve as q_, VisibleCheck as qa, SpawnModelSubstitution as qb, harvestCorpus as qc, retryPreSpawnRefusals as qd, SupervisorAgentTestDeps as qf, CheckVerdict as qg, runDetachedTurn as qh, graphDesignerExtraTools as qi, ProviderAsSandboxClientOptions as ql, ProviderExecutorOptions as qm, WorkerToolTraceArtifact as qn, claimRetainedInteractiveControl as qo, admitContinuationPolicy as qp, pickBestProfile as qr, loopDispatch as qs, SandboxEvent$1 as qt, PursuitStatus as qu, RouteGate as qv, captureHarnessTranscript as qx, EventBus as qy, AgentBackendInput as r, RecoverRetainedRunIntentOptions as rC, ProviderCheckpointCaptureContext as rS, CompletionVerdict as r_, RootHandle as ra, AnalystRegistry$1 as rb, inProcessSandboxClient as rc, GraphEdge as rd, InMemoryRunContext as rf, SubmitOutput as rg, ResolvedMcpServerLaunch as rh, createInPlaceCliExecutor as ri, CombinatorShape as rl, resolveSpawnResourcePaths as rm, SurfaceReadBox as rn, sandboxCheckRunner as ro, ProgressView as rp, CompiledSearchSpec as rr, PrivateCasOffloadReport as rs, RootStreamReceipt as rt, LeaderboardScore as ru, RunAgentRoundsOptions as rv, RootMaterialization as rx, QuestionLevel as ry, AgentRuntimeEventSink as s, RetainedInteractiveEnvironmentAdmission as sC, ProviderWorkspaceCaptureReceipt as sS, stopSentinel as s_, SteerableRootHandle as sa, AuthoredAnalystLimits as sb, McpListedTool as sc, GraphTopology as sd, createFileRunContext as sf, DelegateResearchConfig as sg, resolveSecretEnv as sh, graphFileSchema as si, EqualKArm as sl, DelegateError as sm, boxSurfaceReader as sn, AgentTurnBackend as so, anyOf as sp, SearchSpecOwnedOption as sr, trajectoryReport as ss, DriverContinuationRecord as st, DeclaredCheckPlacement as su, SandboxEvidenceRetentionPort as sv, ExecutorAccounting as sx, QuestionUrgency as sy, AgentAdapter as t, NativeContextContinuationInput as tC, resolveHarnessTranscriptCapture as tS, CompletionEvidence as t_, WorkspaceCheckpointMarker as ta, AnalystKind as tb, InProcessPromptCtx as tc, EdgeDeliveryOutcome as td, SelectSeat as tf, DelegationTaskQueueOptions as tg, BridgeSeam as th, workerFromInteractiveProvider as ti, renderReport as tl, SpawnResourceReader as tm, HarvestSurfaceDiffsOptions as tn, officialChecksFromMeta as to, NoProgressForOptions as tp, SqlRunContextOptions as tr, PrivateCasArtifactPort as ts, ProviderModelExecutionEvidence as tt, LeaderboardRunContext as tu, WaterfallSpan as tv, NodeExecutionIdentity as tx, QuestionEscalationRecord as ty, AgentTaskSpec as u, RetainedRunAdmission as uC, ProviderWorkspaceRetentionContext as uS, CodexRolloutSession as u_, Agent as ua, LocalHarnessResult as ub, StdioMcpServerSpec as uc, TraversalContinuity as ud, SupervisorSpanAttributes as uf, DelegateUiAuditRoute as ug, SandboxOutputMarker as uh, GraphFileSeat as ui, FanoutOptions as ul, createDelegateHandler as um, AnalystAuthoring as un, CollectedAgentTurn as uo, RunCancelRequest as up, searchPresets as ur, FileCorpus as us, BlockedToolReport as ut, checkProgramDigest as uu, OtelExportStats as uv, ExecutorResult as ux, AuthorizedDownMessage as uy, RunAgentTaskStreamOptions as v, RetainedRunHandle as vC, Driver as vS, readCodexRolloutSession as v_, WorkerEventEntry as va, openSqlRunStore as vb, ArtifactHandle as vc, PromptRegistry as vd, RunParkedError as vf, DelegationStatusResult as vg, sumSandboxUsage as vh, GraphRunRecord as vi, PanelVerdict as vl, ProviderSeam as vm, createWorktreeCliExecutor as vn, StrategyTournament as vo, composeReentryTask as vp, WriteWorkerSteerOptions as vr, selectValidWinner as vs, SettledWorker as vt, IsolatedCheckResult as vu, RuntimeEventCollector as vv, WorkerTraceEvidence as vx, MapItemFailurePolicy as vy, RuntimeFailureCode as w, StartRetainedRunInEnvironmentOptions as wC, LoopIterationEndedPayload as wS, CodeModeToolsOptions as w_, ChatWorkerSeamOptions as wa, SpawnForestMissingTree as wb, breadthStrategy as wc, dumbContinuationPassPrompt as wd, BudgetReadout as wf, UiFinding as wg, ToolLoopChat as wh, graphDigest as wi, SteerContext as wl, SteerableSandboxArgs as wm, EVIDENCE_MAX_CHARS as wn, OpenSandboxRunBeforeStartContext as wo, CoordinationAuthentication as wp, safeWorkerFile as wr, buildSteerContext as ws, WorkerSpawnContext as wt, PursuitVersionStop as wu, SanitizedKnowledgeRequirement as wv, ActivityLog as wx, PEER_MAIL_WIRE_KEY as wy, RuntimeSessionStore as x, RetainedRunSnapshot as xC, LoopDecisionPayload as xS, CodeModeStore as x_, ChatSessionStore as xa, SpawnForest as xb, StrategyMessage as xc, createPromptRegistry as xd, readRunParking as xf, ResearchOutputShape as xg, RouterRouting as xh, StoredGraphInput as xi, ScopeAnalyst as xl, SandboxSeam as xm, WorkerInteractiveProviderSource as xn, runStrategyEvolution as xo, FinalizerSettled as xp, readWorkerCancellation as xr, CreateScopeAnalystOptions as xs, SpawnRefusal as xt, NextPursuitVersion as xu, RuntimeStreamEventSummary as xv, ToolStepInput as xx, MapTraversalEvent as xy, RuntimeCanonicalStreamEvent as y, RetainedRunIntentAdmission as yC, ExecCtx as yS, HarnessUsage as y_, WorkerEventPage as ya, SqlAdapter as yb, CorpusReadbackOptions as yc, RegisteredPrompt as yd, RunParkingPolicy as yf, FeedbackRating as yg, RouterResponseReceipt as yh, GraphSelection as yi, PipelineStage as yl, RouterSeam as ym, AttachWorkerOptions as yn, TournamentCell as yo, DeliveredOutput as yp, cancelWorker as yr, verify as ys, SpawnPreflight as yt, runIsolatedCheck as yu, RuntimeStreamEventCollector as yv, WorkerTraceUnavailableReason as yx, MapOnSettleRoute as yy, SpendGap as z, OutputAdapter as zS, leaderboard as z_, CheckRunner as za, ConfigError as zb, defineStrategy as zc, WorkerSlots as zd, CoordinationToolFace as zf, composeLoopTraceEmitters as zg, DelegationExecutor as zh, DispatchUnit as zi, Persona as zl, sharedBoxPlacement as zm, WorkspaceCommit as zn, PrivateCasNamespaceInventory as zo, ContinuationEntry as zp, ProvisionSupervisorRequest as zr, printBenchmarkReport as zs, CheckpointRequest as zt, PursuitNodeCost as zu, ManagerWake as zv, StartRetainedInteractiveRunOptions as zx, JsonRpcMessage as zy };
|
|
19659
|
+
//# sourceMappingURL=types-Fowuwdz2.d.ts.map
|