@tangle-network/agent-runtime 0.349.0 → 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-tNGW73Y9.js → activation-CfJMyzEs.js} +12 -14
- package/dist/{activation-tNGW73Y9.js.map → activation-CfJMyzEs.js.map} +1 -1
- package/dist/{activation-wBipBkCf.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-1xaJEgjq.js → bundle-Ze8pd07a.js} +3 -4
- package/dist/{bundle-1xaJEgjq.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-B2Z_MmL9.js → coordination-manager-BkVfWlMz.js} +101 -132
- package/dist/{coordination-manager-B2Z_MmL9.js.map → coordination-manager-BkVfWlMz.js.map} +1 -1
- package/dist/{delegate-Dr-63jFl.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-DPejYB3C.js → graph-Cx0FhKSE.js} +191 -14
- package/dist/graph-Cx0FhKSE.js.map +1 -0
- package/dist/{improve-DwSahPi1.js → improve-i0HU1-aa.js} +35 -53
- package/dist/{improve-DwSahPi1.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-CP6MfO1b.js → loop-runner-BwN9MhdP.js} +5 -6
- package/dist/{loop-runner-CP6MfO1b.js.map → loop-runner-BwN9MhdP.js.map} +1 -1
- package/dist/{loop-runner-C6pGq-2l.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-CyCUwHed.js.map → model-policy-GSxWwP-b.js.map} +1 -1
- 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-B9wWffjO.js → prepare-DE8TQnLu.js} +49 -69
- package/dist/{prepare-B9wWffjO.js.map → prepare-DE8TQnLu.js.map} +1 -1
- package/dist/{profile-JLJd2wFG.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-C4v2vqDo.js → provision-supervisor-Bde_FF0R.js} +11 -15
- package/dist/{provision-supervisor-C4v2vqDo.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-CsvGCQpl.js → runtime-6Ec9sHRe.js} +648 -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-DtuJWFrM.js → sandbox-profile-compat-BxMQ1VXv.js} +61 -43
- package/dist/sandbox-profile-compat-BxMQ1VXv.js.map +1 -0
- package/dist/{search-executor-CCb82Umc.js → search-executor-B7g_5Wjl.js} +10 -15
- package/dist/{search-executor-CCb82Umc.js.map → search-executor-B7g_5Wjl.js.map} +1 -1
- package/dist/{server-CKPwZU-I.js → server-fvEMwGMQ.js} +19 -30
- package/dist/{server-CKPwZU-I.js.map → server-fvEMwGMQ.js.map} +1 -1
- package/dist/{structural-rollout-DylC_fwU.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-BGfm2GlY.js → supervise-CaeZcgAW.js} +460 -195
- package/dist/supervise-CaeZcgAW.js.map +1 -0
- package/dist/{supervisor-wS9Ehz_x.js → supervisor-C1OePYE-.js} +511 -626
- 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 +7 -15
- 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-C8BGOCBn.d.ts → types-Fowuwdz2.d.ts} +364 -483
- 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 +17 -4
- package/skills/be-ambitious/SKILL.md +46 -0
- package/skills/graph-designer/SKILL.md +9 -2
- package/dist/delegate-Dr-63jFl.js.map +0 -1
- package/dist/graph-DPejYB3C.js.map +0 -1
- package/dist/profile-JLJd2wFG.js.map +0 -1
- package/dist/runtime-CsvGCQpl.js.map +0 -1
- package/dist/sandbox-profile-compat-DtuJWFrM.js.map +0 -1
- package/dist/structural-rollout-DylC_fwU.js.map +0 -1
- package/dist/supervise-BGfm2GlY.js.map +0 -1
- package/dist/supervisor-wS9Ehz_x.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
|
|
@@ -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. */
|
|
@@ -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
|
|
@@ -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;
|
|
@@ -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,8 +11572,6 @@ 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
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`
|
|
@@ -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.
|
|
@@ -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
|
|
@@ -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,19 +15883,31 @@ declare function queueOf<Out>(units: ReadonlyArray<{
|
|
|
16201
15883
|
task: unknown;
|
|
16202
15884
|
label: string;
|
|
16203
15885
|
}>, budget: Budget): () => DispatchUnit<Out> | undefined;
|
|
16204
|
-
|
|
16205
|
-
|
|
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];
|
|
16206
15901
|
/** @inline */
|
|
16207
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 deliverable:
|
|
16214
|
-
readonly describe?: string;
|
|
16215
|
-
readonly checkRef?: string;
|
|
16216
|
-
};
|
|
15910
|
+
readonly deliverable: Pick<AgentGraph['deliverable'], 'describe' | 'checkRef' | 'command' | 'when'>;
|
|
16217
15911
|
/** A flow graph's entry and gates; absent for any other graph. */
|
|
16218
15912
|
readonly entry?: AgentGraph['entry'];
|
|
16219
15913
|
readonly gates?: AgentGraph['gates'];
|
|
@@ -16232,6 +15926,12 @@ type StoredGraph = StoredGraphContent & ({
|
|
|
16232
15926
|
}>;
|
|
16233
15927
|
readonly budget?: AgentGraph['budget'];
|
|
16234
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
|
+
};
|
|
16235
15935
|
/** One run or an explicitly incomplete observation of a graph, for one task shape. */
|
|
16236
15936
|
interface GraphRunRecord {
|
|
16237
15937
|
/** Content-address of the exact graph that ran. */
|
|
@@ -16324,7 +16024,7 @@ declare function recordGraphRun(reg: GraphRegistryDir, graph: AgentGraph, record
|
|
|
16324
16024
|
* Imported observations retain their source identity and never authorize replay.
|
|
16325
16025
|
* A reader refreshing facts can preserve independently joined labels; an explicit
|
|
16326
16026
|
* correction leaves preserveLabels unset and replaces the record. */
|
|
16327
|
-
declare function recordStoredGraphRun(reg: GraphRegistryDir,
|
|
16027
|
+
declare function recordStoredGraphRun(reg: GraphRegistryDir, definition: StoredGraph | StoredGraphInput, record?: GraphRunRecord, options?: {
|
|
16328
16028
|
readonly preserveLabels?: boolean;
|
|
16329
16029
|
}): Promise<StoredGraph>;
|
|
16330
16030
|
/** All records, newest last. */
|
|
@@ -16383,13 +16083,193 @@ declare function loadGraph(reg: GraphRegistryDir, digest: string): Promise<Store
|
|
|
16383
16083
|
/** The designer's lookup: replay the known-good graph for this task shape, or
|
|
16384
16084
|
* author a new one — with the reason stated either way (the decision is data). */
|
|
16385
16085
|
declare function lookupGraph(reg: GraphRegistryDir, taskDigest: string): Promise<GraphSelection>;
|
|
16386
|
-
/** Rehydrate a stored graph
|
|
16387
|
-
|
|
16388
|
-
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;
|
|
16389
16088
|
/** Digests present on disk (integrity probe for tests and audits). */
|
|
16390
16089
|
declare function storedGraphDigests(reg: GraphRegistryDir): Promise<string[]>;
|
|
16391
|
-
|
|
16392
|
-
|
|
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>;
|
|
16393
16273
|
/** @inline */
|
|
16394
16274
|
interface ObservedFact<T> {
|
|
16395
16275
|
readonly value: T | null;
|
|
@@ -16462,8 +16342,6 @@ declare function graphFromSessionFacts(facts: readonly ObservedSessionFacts[], o
|
|
|
16462
16342
|
readonly graph: StoredGraph;
|
|
16463
16343
|
readonly record: GraphRunRecord;
|
|
16464
16344
|
};
|
|
16465
|
-
//#endregion
|
|
16466
|
-
//#region src/runtime/supervise/in-place-cli-executor.d.ts
|
|
16467
16345
|
/** @experimental */
|
|
16468
16346
|
interface InPlaceCliExecutorOptions {
|
|
16469
16347
|
/** Absolute path to the EXISTING directory the harness edits. The caller owns its lifecycle:
|
|
@@ -16503,8 +16381,6 @@ interface InPlaceCliExecutorOptions {
|
|
|
16503
16381
|
* @experimental
|
|
16504
16382
|
*/
|
|
16505
16383
|
declare function createInPlaceCliExecutor(options: InPlaceCliExecutorOptions): Executor<InPlaceHarnessResult>;
|
|
16506
|
-
//#endregion
|
|
16507
|
-
//#region src/runtime/supervise/interactive-worker.d.ts
|
|
16508
16384
|
/** Environment fields supplied to every interactive worker after Runtime adds the exact profile. */
|
|
16509
16385
|
type InteractiveWorkerEnvironment = Omit<CreateAgentEnvironmentInput, 'profile' | 'idempotencyKey' | 'signal'>;
|
|
16510
16386
|
/** Native interactive worker output. Provider usage is intentionally not fabricated. */
|
|
@@ -16556,8 +16432,6 @@ interface InteractiveWorkerKeyInput {
|
|
|
16556
16432
|
* it through the provider's public `get`/interactive contract.
|
|
16557
16433
|
*/
|
|
16558
16434
|
declare function workerFromInteractiveProvider(provider: AgentEnvironmentProvider, options?: InteractiveWorkerOptions): MakeWorkerAgent;
|
|
16559
|
-
//#endregion
|
|
16560
|
-
//#region src/runtime/supervise/profile-registry.d.ts
|
|
16561
16435
|
/** One completed run of one exact profile revision, under its stable NAME. */
|
|
16562
16436
|
interface ProfileRunRecord {
|
|
16563
16437
|
/** The profile's stable name — the registry key (routing identity). */
|
|
@@ -16605,8 +16479,6 @@ declare function bestProfileFor(reg: ProfileRegistryDir, name: string): Promise<
|
|
|
16605
16479
|
profile: AgentProfile;
|
|
16606
16480
|
record: ProfileRunRecord;
|
|
16607
16481
|
} | undefined>;
|
|
16608
|
-
//#endregion
|
|
16609
|
-
//#region src/runtime/supervise/provision-supervisor.d.ts
|
|
16610
16482
|
/** Caller-supplied environment provider for one supervisor run. */
|
|
16611
16483
|
interface ProvisionSupervisorConnection {
|
|
16612
16484
|
/** A constructed provider that owns exact-profile admission and environment reconnection. */
|
|
@@ -16661,8 +16533,6 @@ interface ProvisionedSupervisor {
|
|
|
16661
16533
|
* connection selection; Runtime does not infer them from process environment variables.
|
|
16662
16534
|
*/
|
|
16663
16535
|
declare function provisionSupervisor(request: ProvisionSupervisorRequest): Promise<ProvisionedSupervisor>;
|
|
16664
|
-
//#endregion
|
|
16665
|
-
//#region src/runtime/supervise/remote-supervisor.d.ts
|
|
16666
16536
|
/** Minimal agent identity and topology returned by the protected reader. */
|
|
16667
16537
|
interface RemoteSupervisorAgent {
|
|
16668
16538
|
readonly id: string;
|
|
@@ -16670,6 +16540,7 @@ interface RemoteSupervisorAgent {
|
|
|
16670
16540
|
readonly label: string;
|
|
16671
16541
|
readonly status: string;
|
|
16672
16542
|
readonly runtime: string;
|
|
16543
|
+
readonly failure?: RuntimeFailureCause;
|
|
16673
16544
|
}
|
|
16674
16545
|
/** Current owned tree, including nested managers and resumed nodes. */
|
|
16675
16546
|
interface RemoteSupervisorTree {
|
|
@@ -16683,15 +16554,54 @@ type RemoteWorkerEvents = WorkerEventPage;
|
|
|
16683
16554
|
interface RemoteSupervisorReader {
|
|
16684
16555
|
tree(): Promise<RemoteSupervisorTree>;
|
|
16685
16556
|
observe(workerId: string, cursor?: WorkerEventCursor): Promise<{
|
|
16686
|
-
agent:
|
|
16557
|
+
agent: RemoteSupervisorAgent;
|
|
16687
16558
|
events: RemoteWorkerEvents;
|
|
16688
16559
|
}>;
|
|
16689
16560
|
close(): Promise<void>;
|
|
16690
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
|
+
}
|
|
16691
16601
|
/** Connect with the server's readOnly URL and protected headers; credentials never enter a profile. */
|
|
16692
16602
|
declare function connectRemoteSupervisor(spec: HttpMcpServerSpec): Promise<RemoteSupervisorReader>;
|
|
16693
|
-
|
|
16694
|
-
|
|
16603
|
+
/** Connect with the dedicated /control capability, keeping credentials on the protected transport. */
|
|
16604
|
+
declare function connectRemoteSupervisorControl(access: CoordinationControlAccess): Promise<RemoteSupervisorControl>;
|
|
16695
16605
|
/** One atomically admitted down-leg request for an exact worker id. @stable */
|
|
16696
16606
|
interface WorkerSteerRequest {
|
|
16697
16607
|
readonly schemaVersion: 1;
|
|
@@ -16844,8 +16754,6 @@ declare function cancelWorker(eventDir: string, worker: string, operationId: str
|
|
|
16844
16754
|
readonly reason?: string;
|
|
16845
16755
|
readonly source?: string;
|
|
16846
16756
|
}): WorkerCancellation;
|
|
16847
|
-
//#endregion
|
|
16848
|
-
//#region src/runtime/supervise/scope-contract.d.ts
|
|
16849
16757
|
/** Construction args for `createScope`. The supervisor threads the shared pool, journal,
|
|
16850
16758
|
* blob store, and executor registry through; `depth`/`maxDepth` pair the runtime
|
|
16851
16759
|
* recursion ceiling with the conserved pool (R3). */
|
|
@@ -16950,12 +16858,8 @@ interface ScopeArgs {
|
|
|
16950
16858
|
};
|
|
16951
16859
|
};
|
|
16952
16860
|
}
|
|
16953
|
-
//#endregion
|
|
16954
|
-
//#region src/runtime/supervise/scope-construction.d.ts
|
|
16955
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. */
|
|
16956
16862
|
declare function createScope<Out>(args: ScopeArgs): Scope<Out>;
|
|
16957
|
-
//#endregion
|
|
16958
|
-
//#region src/runtime/supervise/scope-observation.d.ts
|
|
16959
16863
|
/**
|
|
16960
16864
|
* The step-8 merge-boundary adapter (M4): rehydrate a `Settled.done` into the kernel's
|
|
16961
16865
|
* `Iteration` shape so `defaultSelectWinner` stays single-sourced — the supervisor selects
|
|
@@ -16968,8 +16872,6 @@ declare function createScope<Out>(args: ScopeArgs): Scope<Out>;
|
|
|
16968
16872
|
* Fail loud on a `down` settlement: only a `done` child is an iteration.
|
|
16969
16873
|
*/
|
|
16970
16874
|
declare function settledToIteration<Out>(settled: Settled<Out>): Iteration<unknown, Out>;
|
|
16971
|
-
//#endregion
|
|
16972
|
-
//#region src/runtime/supervise/search-spec.d.ts
|
|
16973
16875
|
/**
|
|
16974
16876
|
* One multi-agent research configuration: seven orthogonal axes, all data.
|
|
16975
16877
|
*
|
|
@@ -17122,8 +17024,6 @@ type CompiledSearchSpec = {
|
|
|
17122
17024
|
* ```
|
|
17123
17025
|
*/
|
|
17124
17026
|
declare function compileSearchSpec(raw: SearchSpec, inputs: SearchSpecInputs): CompiledSearchSpec;
|
|
17125
|
-
//#endregion
|
|
17126
|
-
//#region src/runtime/supervise/sql-run-context.d.ts
|
|
17127
17027
|
interface SqlRunContextOptions extends SqlRunStoreOptions, InMemoryRunContextOptions {}
|
|
17128
17028
|
/** SQL stores are read-only outside an acquired ownership capability. runGraph acquires it. */
|
|
17129
17029
|
/** A `RunContext` bound to one fenced SQL ownership generation; read-only until acquired. */
|
|
@@ -17143,8 +17043,16 @@ interface FencedSqlRunContext extends RunContext {
|
|
|
17143
17043
|
* @experimental
|
|
17144
17044
|
*/
|
|
17145
17045
|
declare function createFencedSqlRunContext(db: SqlAdapter, runId: string, options?: SqlRunContextOptions): Promise<FencedSqlRunContext>;
|
|
17146
|
-
|
|
17147
|
-
|
|
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;
|
|
17148
17056
|
/**
|
|
17149
17057
|
* Mint a `RootHandle` plus its supervisor-private control. The handle is the substrate a
|
|
17150
17058
|
* chat/pi-viz client attaches to (Q2): `view()` reads the live tree, `signal()` delivers
|
|
@@ -17153,15 +17061,11 @@ declare function createFencedSqlRunContext(db: SqlAdapter, runId: string, option
|
|
|
17153
17061
|
* driving a live run gets a typed error, never a silent no-op.
|
|
17154
17062
|
*/
|
|
17155
17063
|
declare function createRootHandle<Out>(): SteerableRootHandle<Out>;
|
|
17156
|
-
//#endregion
|
|
17157
|
-
//#region src/runtime/supervise/supervisor-run.d.ts
|
|
17158
17064
|
/** The default recursion-depth ceiling. The conserved pool bounds depth (every level draws its
|
|
17159
17065
|
* slice from the one above); this only stops a runaway recursion of tiny slices. */
|
|
17160
17066
|
declare const DEFAULT_MAX_DEPTH = 16;
|
|
17161
17067
|
/** Create a supervisor that owns one recursive agent execution tree. */
|
|
17162
17068
|
declare function createSupervisor<Task, Out>(): Supervisor<Task, Out>;
|
|
17163
|
-
//#endregion
|
|
17164
|
-
//#region src/runtime/supervise/trace-evidence.d.ts
|
|
17165
17069
|
/** Schema version for content-addressed worker tool-trace artifacts. */
|
|
17166
17070
|
declare const WORKER_TOOL_TRACE_SCHEMA_VERSION: 1;
|
|
17167
17071
|
/** Bytes stored under `WorkerTraceEvidence.traceRef`. */
|
|
@@ -17171,8 +17075,6 @@ interface WorkerToolTraceArtifact {
|
|
|
17171
17075
|
}
|
|
17172
17076
|
/** Validate a stored trace artifact before an analyst or replay trusts it. */
|
|
17173
17077
|
declare function parseWorkerToolTraceArtifact(value: unknown, traceRef?: string): WorkerToolTraceArtifact;
|
|
17174
|
-
//#endregion
|
|
17175
|
-
//#region src/runtime/supervise/trajectory-recorder.d.ts
|
|
17176
17078
|
interface TrajectoryAnalysis {
|
|
17177
17079
|
/** Structured run summary (tool-call count, step order). Steps carry a single timestamp, so per-span
|
|
17178
17080
|
* duration is 0; loop/waste detection keys on call PATTERNS + cross-span windows, not durations. */
|
|
@@ -17185,8 +17087,6 @@ interface TrajectoryAnalysis {
|
|
|
17185
17087
|
}
|
|
17186
17088
|
/** Collect the source's spans and run the agent-eval batch analyzers over them under one `runId`. */
|
|
17187
17089
|
declare function analyzeTrace(source: TraceSource, runId?: string): Promise<TrajectoryAnalysis>;
|
|
17188
|
-
//#endregion
|
|
17189
|
-
//#region src/runtime/workspace.d.ts
|
|
17190
17090
|
/** Command runner seam. Host code can use `localShell`; sandbox code can wrap `box.exec`. */
|
|
17191
17091
|
type Shell = (args: ReadonlyArray<string>, cwd?: string) => Promise<{
|
|
17192
17092
|
stdout: string;
|
|
@@ -17242,8 +17142,6 @@ declare function runInWorkspace<T>(ws: Workspace, body: (cwd: string) => Promise
|
|
|
17242
17142
|
tmpPrefix?: string;
|
|
17243
17143
|
commitOnInvalid?: boolean;
|
|
17244
17144
|
}): Promise<WorkspaceRun<T>>;
|
|
17245
|
-
//#endregion
|
|
17246
|
-
//#region src/runtime/supervise/untracked-clone.d.ts
|
|
17247
17145
|
interface UntrackedCopyStats {
|
|
17248
17146
|
/** Files + symlinks that landed in the clone. */
|
|
17249
17147
|
copied: number;
|
|
@@ -17269,14 +17167,10 @@ declare function copyUntrackedIntoClone(sourceDir: string, cloneDir: string, opt
|
|
|
17269
17167
|
* `commit`/`head` pass through untouched, so delivery semantics are unchanged.
|
|
17270
17168
|
*/
|
|
17271
17169
|
declare function withUntrackedArtifacts(ws: Workspace, sourceDir: string, log?: (message: string) => void): Workspace;
|
|
17272
|
-
//#endregion
|
|
17273
|
-
//#region src/runtime/supervise/usage-metering.d.ts
|
|
17274
17170
|
/** Fold a normalized `UsageEvent` array into a `Spend`. Tokens and usd are separate
|
|
17275
17171
|
* channels; iterations come from `'iteration'` events. Pure; `ms` stays zero (the
|
|
17276
17172
|
* pool does not read wall-clock). */
|
|
17277
17173
|
declare function spendFromUsageEvents(events: UsageEvent[]): Spend;
|
|
17278
|
-
//#endregion
|
|
17279
|
-
//#region src/runtime/supervise/worker-evidence.d.ts
|
|
17280
17174
|
/**
|
|
17281
17175
|
* Evidence-rich worker settlement.
|
|
17282
17176
|
*
|
|
@@ -17333,8 +17227,6 @@ declare function settledWorkerOut(input: {
|
|
|
17333
17227
|
* (`composeWorkerEvidence` keeps the note's FIRST `NOTE_MAX_CHARS` chars).
|
|
17334
17228
|
*/
|
|
17335
17229
|
declare function closingWorkerNote(stdout: string, stderr: string): string | undefined;
|
|
17336
|
-
//#endregion
|
|
17337
|
-
//#region src/runtime/supervise/worker-interactive.d.ts
|
|
17338
17230
|
/** Durable exact-process binding or capability decision for one supervised worker. @stable */
|
|
17339
17231
|
type WorkerInteractiveBinding = {
|
|
17340
17232
|
readonly schemaVersion: 1;
|
|
@@ -17369,8 +17261,6 @@ declare function readWorkerInteractiveBinding(eventDir: string, workerId: string
|
|
|
17369
17261
|
* @stable
|
|
17370
17262
|
*/
|
|
17371
17263
|
declare function attachWorker(eventDir: string, workerId: string, options: AttachWorkerOptions): Promise<WorkerInteractiveSession>;
|
|
17372
|
-
//#endregion
|
|
17373
|
-
//#region src/runtime/supervise/worktree-cli-executor.d.ts
|
|
17374
17264
|
/** Terminal artifact of one worktree-CLI run — the canonical worktree-harness result (the captured
|
|
17375
17265
|
* diff + the harness's run record + the derived checks). */
|
|
17376
17266
|
type WorktreePatchArtifact = WorktreeHarnessResult;
|
|
@@ -17439,8 +17329,6 @@ interface WorktreeCliExecutorOptions {
|
|
|
17439
17329
|
* @experimental
|
|
17440
17330
|
*/
|
|
17441
17331
|
declare function createWorktreeCliExecutor(options: WorktreeCliExecutorOptions): Executor<WorktreePatchArtifact>;
|
|
17442
|
-
//#endregion
|
|
17443
|
-
//#region src/runtime/supervise/patch-checks.d.ts
|
|
17444
17332
|
/** @experimental The per-task constraints the mechanical gate enforces. */
|
|
17445
17333
|
interface CoderCheckConstraints {
|
|
17446
17334
|
/** Default 400. Hard cap; gate fails when exceeded. */
|
|
@@ -17448,8 +17336,6 @@ interface CoderCheckConstraints {
|
|
|
17448
17336
|
/** Literal path prefixes the patch must not touch. */
|
|
17449
17337
|
forbiddenPaths?: string[];
|
|
17450
17338
|
}
|
|
17451
|
-
//#endregion
|
|
17452
|
-
//#region src/runtime/supervise/patch-deliverable.d.ts
|
|
17453
17339
|
/** @experimental */
|
|
17454
17340
|
interface PatchDeliverableOptions extends CoderCheckConstraints {
|
|
17455
17341
|
/**
|
|
@@ -17460,8 +17346,6 @@ interface PatchDeliverableOptions extends CoderCheckConstraints {
|
|
|
17460
17346
|
*/
|
|
17461
17347
|
require?: ReadonlyArray<'tests' | 'typecheck'>;
|
|
17462
17348
|
}
|
|
17463
|
-
//#endregion
|
|
17464
|
-
//#region src/runtime/supervise/worktree-fanout.d.ts
|
|
17465
17349
|
/** @experimental One authored profile in a worktree fanout. Its exact `harness` field chooses the
|
|
17466
17350
|
* local CLI; the supervisor authors the complete profile per sub-task. */
|
|
17467
17351
|
interface AuthoredHarness {
|
|
@@ -17516,8 +17400,6 @@ interface WorktreeFanoutOptions extends PatchDeliverableOptions {
|
|
|
17516
17400
|
* @experimental
|
|
17517
17401
|
*/
|
|
17518
17402
|
declare function worktreeFanout<Task>(options: WorktreeFanoutOptions): CombinatorShape<Task, WorktreePatchArtifact>;
|
|
17519
|
-
//#endregion
|
|
17520
|
-
//#region src/runtime/supervise-analysts.d.ts
|
|
17521
17403
|
/**
|
|
17522
17404
|
* Adapt an `agent-eval` `AnalystRegistry` into the lens shape `supervise({ analysts })` takes.
|
|
17523
17405
|
*
|
|
@@ -17567,8 +17449,6 @@ interface AnalystAuthoring {
|
|
|
17567
17449
|
* the driver the still-FAILING tests (not just a score), so the next spawn targets the persistently-hard
|
|
17568
17450
|
* cases. Swap `analysts` to change what the driver improves from — that's the one knob. */
|
|
17569
17451
|
declare function failuresAnalyst(): AnalystRegistry$1;
|
|
17570
|
-
//#endregion
|
|
17571
|
-
//#region src/runtime/surface-diff.d.ts
|
|
17572
17452
|
/** Outcome of reading one surface back at settle. `missing: true` means the path no longer exists
|
|
17573
17453
|
* (a deletion — a valid, reportable outcome); any other failure carries its diagnostic. */
|
|
17574
17454
|
type SurfaceReadOutcome = {
|
|
@@ -17689,8 +17569,6 @@ declare function boxSurfaceReader(box: SurfaceReadBox, options?: BoxSurfaceReade
|
|
|
17689
17569
|
* Absence maps to `missing: true`; every other failure carries the error message.
|
|
17690
17570
|
*/
|
|
17691
17571
|
declare function fsSurfaceReader(root: string): SurfaceReader;
|
|
17692
|
-
//#endregion
|
|
17693
|
-
//#region src/runtime/verifier-environment.d.ts
|
|
17694
17572
|
interface VerifierEnvironmentOptions {
|
|
17695
17573
|
name: string;
|
|
17696
17574
|
/** The deployable check over a submitted answer. Graded via passes/total. */
|
|
@@ -17702,8 +17580,6 @@ interface VerifierEnvironmentOptions {
|
|
|
17702
17580
|
}
|
|
17703
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. */
|
|
17704
17582
|
declare function createVerifierEnvironment(opts: VerifierEnvironmentOptions): Environment;
|
|
17705
|
-
//#endregion
|
|
17706
|
-
//#region src/mcp/tools/coordination-contracts.d.ts
|
|
17707
17583
|
/** A worker whose settlement reached the manager's inbox. */
|
|
17708
17584
|
interface SettledWorker {
|
|
17709
17585
|
readonly id: string;
|
|
@@ -18236,8 +18112,6 @@ interface BlockedToolReport {
|
|
|
18236
18112
|
readonly probed: string;
|
|
18237
18113
|
readonly at: string;
|
|
18238
18114
|
}
|
|
18239
|
-
//#endregion
|
|
18240
|
-
//#region src/runtime/supervise/driver-attempt-evidence.d.ts
|
|
18241
18115
|
/** Why the retry loop stopped. `completed` is the only non-failure. */
|
|
18242
18116
|
type DriverAttemptStop = 'completed' | 'terminal-error' | 'retry-disabled' | 'aborted' | 'budget-exhausted' | 'deadline' | 'no-progress' | 'max-attempts' | 'pending-unresolved' | 'repeated-failure';
|
|
18243
18117
|
/** One attempt's record — the legible failure the issue's third ask names. Emitted per attempt so
|
|
@@ -18369,8 +18243,6 @@ interface DriverContinuationRecord extends DriverLoopRecord {
|
|
|
18369
18243
|
* Empty for a manager with no check. */
|
|
18370
18244
|
readonly continuations: ReadonlyArray<ContinuationEntry>;
|
|
18371
18245
|
}
|
|
18372
|
-
//#endregion
|
|
18373
|
-
//#region src/runtime/supervise/contracts/supervisor-result.d.ts
|
|
18374
18246
|
/** Provider-observed model identity for the root manager's settled inference turns.
|
|
18375
18247
|
* Runtime records this only from a Runtime-owned provider/bridge receipt; an authored profile
|
|
18376
18248
|
* alias is never substituted when the provider omits the identity. */
|
|
@@ -18644,8 +18516,6 @@ type SupervisedResult<Out> = {
|
|
|
18644
18516
|
* recoverable by the caller. A non-`Error` rejection is normalized, never dropped. */
|
|
18645
18517
|
error: NoWinnerError;
|
|
18646
18518
|
};
|
|
18647
|
-
//#endregion
|
|
18648
|
-
//#region src/runtime/supervise/contracts/node-lifecycle.d.ts
|
|
18649
18519
|
/** `'queued'` is an admitted child that holds its budget slice and waits for a worker slot
|
|
18650
18520
|
* (`workerSlots`); it runs nothing until the allocator grants one. `'acquiring'` is first-class
|
|
18651
18521
|
* (M1): a node spends real time + reaps an orphan box during sandbox acquire BEFORE it is
|
|
@@ -18816,10 +18686,7 @@ type Settled<Out> = {
|
|
|
18816
18686
|
* `retainedExecution` is; the `reason` text names the same thing, but a reader must never
|
|
18817
18687
|
* have to parse it (#1204). */
|
|
18818
18688
|
retainedPendingCause?: RetainedPendingCause;
|
|
18819
|
-
/**
|
|
18820
|
-
* while both were still values. Present on a live settlement whose executor threw; the
|
|
18821
|
-
* journal does not record it, so a replayed settlement leaves it to
|
|
18822
|
-
* `settlementFailureCause`. */
|
|
18689
|
+
/** Typed terminal diagnosis, preserved by the journal and replay. Legacy records may omit it. */
|
|
18823
18690
|
failure?: RuntimeFailureCause;
|
|
18824
18691
|
/** Present when this child led workers of its own: a bounded account of its team. */
|
|
18825
18692
|
subtree?: SubtreeSummary;
|
|
@@ -18863,6 +18730,8 @@ interface SubtreeResult {
|
|
|
18863
18730
|
readonly agents: number;
|
|
18864
18731
|
}
|
|
18865
18732
|
interface NodeSnapshot {
|
|
18733
|
+
/** Typed terminal diagnosis, beside status and never a replacement for lifecycle reason. */
|
|
18734
|
+
readonly failure?: RuntimeFailureCause;
|
|
18866
18735
|
readonly id: NodeId;
|
|
18867
18736
|
readonly parent?: NodeId;
|
|
18868
18737
|
readonly label: string;
|
|
@@ -18955,8 +18824,6 @@ interface TreeView {
|
|
|
18955
18824
|
* settles on the ordinary path and the recorded-result path writes no marker.
|
|
18956
18825
|
*/
|
|
18957
18826
|
type RetainedExecutionState = 'pending' | 'released' | 'release-unconfirmed';
|
|
18958
|
-
//#endregion
|
|
18959
|
-
//#region src/runtime/supervise/contracts/accounting.d.ts
|
|
18960
18827
|
/** Caller-defined resource ceiling in non-negative safe-integer units, consistent throughout a tree. */
|
|
18961
18828
|
interface ResourceLimit {
|
|
18962
18829
|
readonly unit: string;
|
|
@@ -19086,8 +18953,6 @@ interface BudgetViolation {
|
|
|
19086
18953
|
/** Every overspent channel, in the order tokens, iterations, usd, then resources. Never empty. */
|
|
19087
18954
|
readonly overspent: ReadonlyArray<BudgetOverspend>;
|
|
19088
18955
|
}
|
|
19089
|
-
//#endregion
|
|
19090
|
-
//#region src/runtime/supervise/trace-root.d.ts
|
|
19091
18956
|
/** Schema identifier of a stored {@link TraceRootArtifact}. */
|
|
19092
18957
|
declare const TRACE_ROOT_SCHEMA = "agent-runtime.trace-root.v1";
|
|
19093
18958
|
/** Schema identifier of the {@link TraceSummary} carried by a trace root's last leaf. */
|
|
@@ -19111,8 +18976,6 @@ interface TraceRootArtifact {
|
|
|
19111
18976
|
readonly leaves: readonly string[];
|
|
19112
18977
|
readonly summary: TraceSummary;
|
|
19113
18978
|
}
|
|
19114
|
-
//#endregion
|
|
19115
|
-
//#region src/runtime/supervise/retained-executor.d.ts
|
|
19116
18979
|
/**
|
|
19117
18980
|
* Why a retained execution has no accepted terminal result, classified where the cause is still
|
|
19118
18981
|
* a typed value rather than a string in a journal.
|
|
@@ -19202,8 +19065,6 @@ interface RetainedLeafContinuation {
|
|
|
19202
19065
|
readonly priorSession: RetainedRunEnvironmentAdmission;
|
|
19203
19066
|
readonly priorSpent: Spend;
|
|
19204
19067
|
}
|
|
19205
|
-
//#endregion
|
|
19206
|
-
//#region src/runtime/failure-cause.d.ts
|
|
19207
19068
|
/**
|
|
19208
19069
|
* Who must act before the same work can succeed.
|
|
19209
19070
|
*
|
|
@@ -19217,9 +19078,37 @@ interface RetainedLeafContinuation {
|
|
|
19217
19078
|
* - `unknown`: nothing structural attributes the failure.
|
|
19218
19079
|
* @stable
|
|
19219
19080
|
*/
|
|
19220
|
-
type RuntimeFailureOwner = '
|
|
19081
|
+
type RuntimeFailureOwner = RuntimeFailureCause['owner'];
|
|
19221
19082
|
/** Stable failure codes. A consumer branches on these, never on `cause` text. @stable */
|
|
19222
|
-
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>>;
|
|
19223
19112
|
/**
|
|
19224
19113
|
* A terminal failure as values, carried on final and settled events beside their existing
|
|
19225
19114
|
* `reason` and `error` fields.
|
|
@@ -19228,16 +19117,9 @@ type RuntimeFailureCode = 'aborted' | 'deadline-exceeded' | 'budget-exhausted' |
|
|
|
19228
19117
|
* and cause chain, the caller's signal and deadline, or the settlement's typed fields — never from
|
|
19229
19118
|
* message text. `cause` is the redacted, bounded cause chain for people; it is not a contract.
|
|
19230
19119
|
* @stable
|
|
19120
|
+
* @useDeclaredType
|
|
19231
19121
|
*/
|
|
19232
|
-
|
|
19233
|
-
readonly code: RuntimeFailureCode;
|
|
19234
|
-
readonly owner: RuntimeFailureOwner;
|
|
19235
|
-
readonly cause: string;
|
|
19236
|
-
/** The upstream or provider machine code the failure carried, when it carried one. */
|
|
19237
|
-
readonly providerCode?: string;
|
|
19238
|
-
}
|
|
19239
|
-
//#endregion
|
|
19240
|
-
//#region src/types.d.ts
|
|
19122
|
+
type RuntimeFailureCause = z.infer<typeof runtimeFailureCauseSchema>;
|
|
19241
19123
|
/** @stable */
|
|
19242
19124
|
interface AgentTaskSpec {
|
|
19243
19125
|
id: string;
|
|
@@ -19773,6 +19655,5 @@ interface KnowledgeReadinessDecision {
|
|
|
19773
19655
|
blockingGapIds: string[];
|
|
19774
19656
|
nonBlockingGapIds: string[];
|
|
19775
19657
|
}
|
|
19776
|
-
//#endregion
|
|
19777
|
-
export { NoWinnerError as $, RetainedRunHandle as $S, RuntimeEventCollector as $_, EvolutionAuthor as $a, WorkerTraceEvidence as $b, LoopUntilState as $c, DeadlineCheckIn as $d, ReentryTaskInput as $f, readCodexRolloutSession as $g, DelegationStatus as $h, Scope as $i, readDeclaredCheck as $l, extractLlmCallEvent as $m, SqlRunContextOptions as $n, flatWidenGate as $o, CliWorktreeSeam as $p, ObservedSessionFacts as $r, AgenticRunResult as $s, createVerifierEnvironment as $t, GraphRouteError as $u, MapItemFailurePolicy as $v, Driver as $x, openSqlRunStore as $y, TraceRootArtifact as A, RuntimeRunPersistenceAdapter as AS, areaUnderCurve as A_, StructuralRolloutPolicy as Aa, ExecutionBindingReceipt as Ab, HarvestFailure as Ac, retryPreSpawnRefusals as Ad, SupervisorAgentTestDeps as Af, DeliverableSpec as Ag, DelegationArgs as Ah, DesignerToolsEnv as Ai, ShapeContext as Al, ProviderLeafOut as Am, settledWorkerOut as An, startRetainedRunInEnvironment as Ao, DriverContractState as Ap, RemoteWorkerEvents as Ar, SuperviseOptionsForDispatch as As, AgentEnvironmentStatus as At, PursuitRunProjection as Au, RouteWhen as Av, persistHarnessTranscript as Ax, createEventBus as Ay, Handle as B, RecoverRetainedRunResult as BS, SandboxEvidenceContext as B_, officialChecksFromMeta as Ba, EnvironmentTeardownReceipt as Bb, renderReport as Bc, InMemoryRunContext as Bd, ProgressView as Bf, deterministicCompletion as Bg, DelegateCodeArgs as Bh, WorkspaceCheckpointMarker as Bi, LeaderboardRunContext as Bl, envKeyProvider as Bm, WorkspaceRun as Bn, PrivateCasArtifactPort as Bo, McpServer as Bp, loadProfile as Br, InProcessPromptCtx as Bs, CreateAgentEnvironmentInput$1 as Bt, EdgeDeliveryOutcome as Bu, QuestionPolicy as Bv, ProviderWorkspaceAttemptProvenance as Bx, AnalyzeOnSettleRoute as By, RuntimeFailureCause as C, SelectionReceipt as CS, renderLeaderboardMarkdown as C_, CheckRunContext as Ca, ValidationError as Cb, authorStrategy as Cc, createWorkerSlots as Cd, CoordinationVerbs as Cf, DelegationStore as Cg, FleetWorkspaceExecutorOptions as Ch, DispatchStopReason as Ci, Outcome as Cl, sharedBoxRefusal as Cm, readWorkerInteractiveBinding as Cn, createS3PrivateCasStore as Co, ContinuationPanelInput as Cp, supervisorRunDir as Cr, Environment as Cs, SuperviseProfileEntry as Ct, PursuitCostProvenance as Cu, DecideGate as Cv, HarnessTranscriptEvidence as Cx, McpToolDescriptor as Cy, RetainedPendingCause as D, RuntimeRunCost as DS, AnytimeStrategySummary as D_, RepairStop as Da, ExecutorRegistry as Db, strategyAuthorSystemPrompt as Dc, WorkerSpawnRetryPolicy as Dd, ResolveDriveHarness as Df, CoderTask as Dg, DetachedTurn as Dh, queueOf as Di, RunPersonified as Dl, createAgentEnvironmentProviderRegistry as Dm, WorkerEvidenceInput as Dn, reconnectRetainedRun as Do, PanelFinding as Dp, RemoteSupervisorAgent as Dr, LoopDispatchOptions as Ds, AgentEnvironmentEvent$1 as Dt, PursuitNodeTiming as Du, RouteFlow as Dv, ReadableEnvironment as Dx, BusStats as Dy, EvidencePendingEvent as E, RuntimeRunCompleteInput as ES, AnytimeReport as E_, CheckSourceCtx as Ea, ExecutorFactory as Eb, strategyAuthorContract as Ec, WorkerSpawnRetryHooks as Ed, ObserveSupervisorNodeEvent as Ef, CoderOutput as Eg, createSiblingSandboxExecutor as Eh, freeSlots as Ei, PersonaExecutors as El, AgentEnvironmentProviderRegistry as Em, VERIFY_TAIL_CHARS as En, PrivateCasNamespaceRetirement as Eo, ContinuationProfile as Ep, writeWorkerSteer as Er, LoopCampaignDispatchOptions as Es, AgentEnvironmentCapabilities$1 as Et, PursuitNodeProjection as Eu, JsonScalar as Ev, HarnessTranscriptUnavailableReason as Ex, BusRecord as Ey, ResourceLimit as F, NativeContextContinuationHandle as FS, WaterfallReport as F_, composeCheckSources as Fa, MaterializedModelIdentity as Fb, ObservationError as Fc, SeatSelection as Fd, ManagerWakePolicy as Ff, CompletionAnalyst as Fg, DelegationRunContext as Fh, delegate as Fi, LeaderboardBenchScore as Fl, BridgeHarnessStore as Fm, withUntrackedArtifacts as Fn, startRetainedInteractiveRun as Fo, SpawnResourceBytes as Fp, SupervisorCleanupReceipt as Fr, TERMINAL_DECISIONS as Fs, AgentSessionStatus$1 as Ft, ObserverJournal as Fu, QuestionEscalationOutcome as Fv, RetainedHarnessTranscriptDescriptor as Fx, AnalystFindingEvent as Fy, Settled as G, RetainedRunAdmission as GS, OtelExportStats as G_, visibleCheckScore as Ga, ExecutorResult as Gb, CorpusRecord as Gc, createInMemoryRunContext as Gd, noProgressFor as Gf, CodexRolloutSession as Gg, DelegateUiAuditConfig as Gh, RootSignal as Gi, DeclaredCheck as Gl, SandboxLeafOut as Gm, TrajectoryAnalysis as Gn, equalKOnCost as Go, DelegateResult as Gp, InteractiveWorkerEnvironment as Gr, MaterializeLocalMcpOptions as Gs, PlacementInfo as Gt, GraphResult as Gu, AuthorizedDownMessage as Gv, ProviderWorkspaceRetentionContext as Gx, LocalHarnessResult as Gy, NodeSnapshot as H, RetainedInteractiveEnvironmentAdmission as HS, SandboxEvidenceRetentionPort as H_, sandboxCheckRunner as Ha, ExecutorAccounting as Hb, CombinatorShape as Hc, RunContext as Hd, StopRule as Hf, stopSentinel as Hg, DelegateResearchArgs as Hh, RootHandle as Hi, LeaderboardScore as Hl, resolveMcpServerLaunch as Hm, jjWorkspace as Hn, PrivateCasOffloadReport as Ho, createMcpServer as Hp, profileRegistry as Hr, inProcessSandboxClient as Hs, ExecRequest as Ht, GraphEdge as Hu, QuestionUrgency as Hv, ProviderWorkspaceCaptureReceipt as Hx, AuthoredAnalystLimits as Hy, ResourceSpend as I, NativeContextContinuationInput as IS, WaterfallSpan as I_, defaultExtractCandidate as Ia, NodeExecutionIdentity as Ib, ObserveInput as Ic, SeatSelectionInput as Id, SupervisorProfile as If, CompletionEvidence as Ig, DelegationTaskQueue as Ih, ResultBlobStore as Ii, LeaderboardBenchTask as Il, BridgeModelCredential as Im, GitWorkspaceOptions as In, ResolveSandboxClientOptions as Io, SpawnResourceRead as Ip, provisionSupervisor as Ir, TerminalDecision as Is, AgentTurnResult$2 as It, ObserverRecord as Iu, QuestionEscalationRecord as Iv, resolveHarnessTranscriptCapture as Ix, AnalystKind as Iy, SpawnRejection as J, RetainedRunCancellation as JS, buildLoopOtelSpans as J_, AgentTurnUsage as Ja, HeldForContinuation as Jb, EqualKVerdict as Jc, SupervisorSpanOptions as Jd, RunCancellation as Jf, CodexRolloutTurn as Jg, DelegationFeedbackSnapshot as Jh, SupervisorOpts as Ji, assertDeclaredCheck as Jl, createSandboxToolPartState as Jm, parseWorkerToolTraceArtifact as Jn, runPersonified as Jo, ExecutorConfig as Jp, InteractiveWorkerResult as Jr, StdioMcpConnection as Js, SandboxInstance$1 as Jt, RunGraphTestOptions as Ju, DownMessageAuthorizationInput as Jv, ExecutorToolCall as Jx, LOCAL_HARNESSES as Jy, SpawnOpts as K, RetainedRunAdmissionHook as KS, OtelExporter as K_, AgentTurnBackend as Ka, ExecutorTeardownWarning as Kb, EqualKArm as Kc, withRunContext as Kd, plateau as Kf, CodexRolloutStoreReader as Kg, DelegateUiAuditRoute as Kh, SteerableRootHandle as Ki, DeclaredCheckPlacement as Kl, SandboxOutputMarker as Km, analyzeTrace as Kn, trajectoryReport as Ko, createDelegateHandler as Kp, InteractiveWorkerKeyInput as Kr, McpListedTool as Ks, ResourceRequest as Kt, GraphTopology as Ku, ContinuationInstruction as Kv, ProviderWorkspaceRetentionPort as Kx, RunLocalHarnessOptions as Ky, Spend as L, ReconnectRetainedRunOptions as LS, createWaterfallCollector as L_, defaultStructuralRolloutPolicy as La, ProfileMaterializationReceipt as Lb, ObserveOptions as Lc, SeatStage as Ld, AllWorkersStalledOptions as Lf, CompletionPolicy as Lg, DelegationTaskQueueOptions as Lh, SpawnEvent as Li, LeaderboardBenchmarkAdapter as Ll, BridgeSeam as Lm, Shell as Ln, resolveSandboxClient as Lo, SpawnResourceReader as Lp, ProfileRegistryDir as Lr, defaultSelectWinner as Ls, AnalystFinding$1 as Lt, ObserverRecordKind as Lu, QuestionEscalationTarget as Lv, retainHarnessTranscript as Lx, AnalystLensOutput as Ly, Budget as M, RuntimeRunStatus as MS, plateauLength as M_, VisibleCheck as Ma, ExecutorMaterialization as Mb, harvestCorpus as Mc, SuperviseRegistry as Md, SupervisorNodeContextSeed as Mf, gateOnDeliverable as Mg, DelegationResumeContext as Mh, graphDesignerExtraTools as Mi, ProviderAsSandboxClientOptions as Ml, providerAsExecutor as Mm, CopyOptions as Mn, claimRetainedInteractiveControl as Mo, DriverRetryPolicy as Mp, ProvisionSupervisorConnection as Mr, loopDispatch as Ms, AgentProfile$2 as Mt, PursuitStatus as Mu, EscalateQuestion as Mv, HarnessTranscriptReadLimits as Mx, defaultToolDetectors as My, BudgetOverspend as N, startRuntimeRun as NS, renderAnytimeTable as N_, canDisplace as Na, ExecutorNodeContext as Nb, Observation as Nc, SuperviseRegistryTable as Nd, SupervisorToolDescriptor as Nf, mapExecutorResult as Ng, DelegationResumeDriver as Nh, DelegateOptions as Ni, providerAsSandboxClient as Nl, UnavailablePausePolicy as Nm, UntrackedCopyStats as Nn, reconnectRetainedInteractiveRun as No, ResolveSpawnResourcePathsResult as Np, ProvisionSupervisorRequest as Nr, superviseDispatch as Ns, AgentSession as Nt, projectPursuit as Nu, Question as Nv, HarnessTranscriptReadOptions as Nx, watchTrace as Ny, TRACE_ROOT_SCHEMA as O, RuntimeRunHandle as OS, AnytimeTaskCurve as O_, StructuralRolloutConfig as Oa, SpawnModelSubstitution as Ob, HarvestCorpusOptions as Oc, isPreSpawnExecutorFailure as Od, ResolveSupervisorTools as Of, CheckUnavailableError as Og, RunDetachedTurnOptions as Oh, rollingDispatch as Oi, RunPersonifiedOptions as Ol, resolveAgentEnvironmentProvider as Om, closingWorkerNote as On, recoverRetainedRun as Oo, VerdictSummary as Op, RemoteSupervisorReader as Or, LoopOptionsForDispatch as Os, AgentEnvironmentProvider$1 as Ot, PursuitNodeUsage as Ou, RouteGate as Ov, captureHarnessTranscript as Ox, EventBus as Oy, BudgetViolation as P, NativeContextContinuationExecution as PS, WaterfallCollector as P_, compareCheckOutcomes as Pa, MaterializedExecutionIdentity as Pb, ObservationAnalysis as Pc, SeatSegment as Pd, SupervisorToolInvocationContext as Pf, verdictFromJudgeScore as Pg, DelegationResumeTick as Ph, defaultDelegateBudget as Pi, DefinedLeaderboard as Pl, ProviderPlacement as Pm, copyUntrackedIntoClone as Pn, recoverRetainedInteractiveRun as Po, ResolvedSpawnResourcePath as Pp, ProvisionedSupervisor as Pr, LocalSandboxClientOptions as Ps, AgentSessionRef as Pt, FileObserverJournal as Pu, QuestionDecision as Pv, RetainedHarnessTranscriptCapture as Px, AnalystAssignmentRecord as Py, FleetYield as Q, RetainedRunEventOptions as QS, padTraceId as Q_, streamAgentTurn as Qa, WorkerInteractiveUnavailableReason as Qb, LoopUntilSpec as Qc, WorkerTraceResolver as Qd, ReentryContinuity as Qf, harnessUsageIsEmpty as Qg, DelegationResultPayload as Qh, ResumedWork as Qi, declaredCheckJudge as Ql, SandboxUsageLedger as Qm, FencedSqlRunContext as Qn, fanout as Qo, CliWorktreeBridgeSeam as Qp, GraphSessionObservationOptions as Qr, AgenticOptions as Qs, VerifierEnvironmentOptions as Qt, defaultEdgeTraversalCap as Qu, WorkerResumeContext as Qv, DefaultVerdict$2 as Qx, SqlRunOwnershipError as Qy, SpendChannel as R, RecoverRetainedRunIntentOptions as RS, RunAgentRoundsOptions as R_, filterAuthoredAsserts as Ra, RootMaterialization as Rb, defaultAnalystInstruction as Rc, SelectSeat as Rd, NoProgressForOptions as Rf, CompletionVerdict as Rg, SubmitInput as Rh, SpawnJournal as Ri, LeaderboardFlagSpec as Rl, KeyProvider as Rm, Workspace as Rn, profileChatClient as Ro, environmentReader as Rp, ProfileRunRecord as Rr, inlineSandboxClient as Rs, CheckpointRef as Rt, observerRecordDigest as Ru, QuestionLevel as Rv, ProviderCheckpointCaptureContext as Rx, AnalystRegistry$1 as Ry, RuntimeStreamEvent as S, SandboxClient as SS, renderLeaderboardHtml as S_, CheckOutcome as Sa, NotFoundError as Sb, assertStrategyContract as Sc, WorkerSlots as Sd, CoordinationToolFace as Sf, DelegationPersistenceError as Sg, FleetHandle as Sh, DispatchReport as Si, LoopShape as Sl, ROUTER_CLIENT_HEADER as Sm, attachWorker as Sn, S3PrivateCasStoreOptions as So, ContinuationPanel as Sp, safeWorkerFile as Sr, BenchmarkTaskRow as Ss, SpawnRefusalCause as St, PursuitObserverDelivery as Su, WorkerWatchOptions as Sv, HarnessTranscriptCapture as Sx, McpToolAnnotations as Sy, RuntimeFailureOwner as T, Validator as TS, renderPairwiseMarkdown as T_, CheckSource as Ta, ExecutorContext as Tb, sampleThenRefine as Tc, WorkerSpawnRetryAttempt as Td, DriveHarnessOwnerContext as Tf, FileDelegationStoreOptions as Tg, createFleetWorkspaceExecutor as Th, RollingDispatchOptions as Ti, PersonaContext as Tl, AgentEnvironmentProviderRef as Tm, NOTE_MAX_CHARS as Tn, PrivateCasNamespaceObject as To, ContinuationPolicy as Tp, workerInboxFileFromEventDir as Tr, runBenchmark as Ts, AgentEnvironment$1 as Tt, PursuitNodePlatform as Tu, GateRequest as Tv, HarnessTranscriptUnavailable as Tx, BusEvent as Ty, NodeStatus as U, RetainedInteractiveIntentAdmission as US, OtelAttribute as U_, selectBestIndex as Ua, ExecutorCancellation as Ub, Corpus as Uc, RunContextLease as Ud, allWorkersStalled as Uf, CodexForkBoundary as Ug, DelegateResearchConfig as Uh, RootSegment as Ui, LeaderboardSpec as Ul, resolveSecretEnv as Um, localShell as Un, PrivateCasOptions as Uo, DelegateError as Up, profileRunsForName as Ur, HttpMcpServerSpec as Us, ExecResult as Ut, GraphEdgeCapError as Uu, questionEscalationTargets as Uv, ProviderWorkspaceCaptureResult as Ux, DefinedAnalystRecord as Uy, NodeId as V, RetainedInteractiveAdmission as VS, SandboxEvidenceReceipt as V_, resolveEntrySymbol as Va, Executor as Vb, AssertTraceDerivedFindings as Vc, InMemoryRunContextOptions as Vd, StopDecision as Vf, sentinelCompletion as Vg, DelegateCodeConfig as Vh, RecursiveReservationPolicy as Vi, LeaderboardScenario as Vl, mcpSecretEnvMetadataKey as Vm, gitWorkspace as Vn, PrivateCasDurableStore as Vo, McpServerOptions as Vp, pickBestProfile as Vr, InProcessSandboxClientOptions as Vs, CreateSandboxOptions$1 as Vt, EdgeTraversal as Vu, QuestionRecord as Vv, ProviderWorkspaceCaptureProvenance as Vx, AuthoredAnalystDefinition as Vy, RetainedExecutionState as W, RetainedInteractiveStartedAdmission as WS, OtelExportConfig as W_, structuralRollout as Wa, ExecutorCancellationRequest as Wb, CorpusFilter as Wc, createFileRunContext as Wd, anyOf as Wf, CodexRolloutIdentity as Wg, DelegateUiAuditArgs as Wh, RootSegmentEntry as Wi, defineLeaderboard as Wl, secretEnvOfMcpServer as Wm, runInWorkspace as Wn, createPrivateCasArtifactPort as Wo, DelegateHandlerOptions as Wp, recordProfileRun as Wr, LocalMcpMaterialization as Ws, ForkRequest as Wt, GraphNode as Wu, AuthorizeDownMessage as Wv, ProviderWorkspaceEntryMetadata as Wx, CodexExecutionEvidence as Wy, SubtreeSummary as X, RetainedRunEffect as XS, loopEventToOtelSpan as X_, StreamAgentTurnOptions as Xa, Runtime as Xb, FanoutSynthesis as Xc, SupervisorSpanRecorder as Xd, readRunCancelRequest as Xf, addHarnessUsage as Xg, DelegationHistoryEntry as Xh, ReenteredWorkers as Xi, declaredCheckDeliverable as Xl, mapSandboxToolEvent as Xm, createSupervisor as Xn, InMemoryCorpus as Xo, CliInPlaceSeam as Xp, InPlaceCliExecutorOptions as Xr, connectStdioMcp as Xs, computeFindingId$1 as Xt, runGraph as Xu, DownMessageDeliveryOutcome as Xv, UsageEvent as Xx, CodexTokenUsage as Xy, SubtreeResult as Y, RetainedRunDispatchedAdmission as YS, createOtelExporter as Y_, CollectedAgentTurn as Ya, HeldRelease as Yb, FanoutOptions as Yc, SupervisorSpanOutcome as Yd, cancelRun as Yf, CodexStoreDelta as Yg, DelegationHistoryArgs as Yh, Agent as Yi, checkProgramDigest as Yl, mapSandboxEvent as Ym, DEFAULT_MAX_DEPTH as Yn, FileCorpus as Yo, createExecutor as Yp, workerFromInteractiveProvider as Yr, StdioMcpServerSpec as Ys, WorkspaceRequest as Yt, TraversalContinuity as Yu, DownMessageDeliveryAttempt as Yv, TokenUsageProvenance as Yx, LocalHarness as Yy, TreeView as Z, RetainedRunEnvironmentAdmission as ZS, padSpanId as Z_, collectAgentTurn as Za, WorkerInteractiveSession as Zb, FanoutWinnerSelector as Zc, createSupervisorSpanRecorder as Zd, readRunCancellation as Zf, createCodexRolloutStoreReader as Zg, DelegationProgress as Zh, ResumedKeyState as Zi, declaredCheckDigest as Zl, SandboxServedBackend as Zm, createRootHandle as Zn, renderCorpusToInstructions as Zo, CliSeam as Zp, createInPlaceCliExecutor as Zr, materializeLocalMcp as Zs, makeFinding$1 as Zt, runGraphWithTestBrain as Zu, DownMessageEvent as Zv, AgentRunSpec as Zx, CodexExecutionPolicy as Zy, RunAgentTaskOptions as _, LoopWinner as _S, PairwiseVerdict as __, assessAuthoredProfile as _a, AgentEvalError$1 as _b, Strategy as _c, workerFromBackend as _d, RootStreamRecord as _f, TraceContext as _g, DetachedSessionDelegateOptions as _h, pickBestGraph as _i, WidenLineage as _l, SharedBoxPlacement as _m, WorktreePatchArtifact as _n, SandboxLineageHandle as _o, FileCoordinationLog as _p, cancelWorker as _r, BenchmarkCell as _s, PeerAuditAccess as _t, SupervisePursuitOptions as _u, EventAcknowledgement as _v, RetainedInteractiveEnvironmentInput as _x, isPeerMailEnvelope as _y, AgentKnowledgeProvider as a, StartRetainedRunInEnvironmentOptions as aC, LoopIterationEndedPayload as aS, CodeModeToolsOptions as a_, ChatCompletionsTransport as aa, SpawnForestMissingTree as ab, RunAgenticOptions as ac, delegatesWorkerBriefPrompt as ad, BudgetPool as af, UiAuditorDelegationOutput as ag, ToolLoopCallContext as ah, GraphRunRecord as ai, RenderCorpusToInstructionsOptions as al, SandboxSteeringOptions as am, SurfaceReader as an, TournamentRow as ao, SupervisorFinalizer as ap, SearchSpecOwnedOption as ar, widen as as, DriverAttemptRecord as at, JudgedPursuitVersion as au, SanitizedKnowledgeRequirement as av, ActivityLog as ax, PEER_MAIL_WIRE_KEY as ay, RuntimeSession as b, OutputAdapter as bS, leaderboard as b_, supervisorInstructions as ba, ConfigError as bb, StrategyResult as bc, SuperviseOptions as bd, supervisorAgent as bf, DelegationTraceSpan as bg, detachedSessionDelegate as bh, storedGraphDigests as bi, DefinePersona as bl, SharedWorkerIdentity as bm, WorkerInteractiveBinding as bn, acquireSandbox as bo, ContinuationAppend as bp, readWorkerSteerAcknowledgement as br, BenchmarkReport as bs, SpawnPreflightContext as bt, supervisePursuit as bu, ManagerWake as bv, StartRetainedInteractiveRunOptions as bx, JsonRpcMessage as by, AgentTaskContext as c, LoopPlanDescription as cS, createCodeModeTools as c_, ChatTransportTool as ca, loadSpawnForest as cb, SurfaceScore as cc, formatPromptHandle as cd, LeakedReservation as cf, UiFindingSeverity as cg, ToolLoopCompactionOptions as ch, digestOfGraph as ci, ScopeWidenGate as cl, createSteerableSandboxSession as cm, fsSurfaceReader as cn, Deliverable as co, CoordinationMcpHandle as cp, searchPresets as cr, assertTraceDerivedFindings as cs, DriverFailureClass as ct, PursuitVersionChain as cu, sanitizeKnowledgeReadinessReport as cv, ExecutorProgress as cx, PeerMailLimits as cy, AgentTaskStatus as d, LoopSandboxPlacement as dS, GroupOf as d_, chatWorkerSeam as da, FileSpawnJournal as db, refine as dc, promptHandle as dd, ReservationRejection as df, KnowledgeUpdate as dg, FeedbackEvent as dh, graphFromStored as di, TrajectoryReport as dl, InboxLease as dm, analystsFromRegistry as dn, OpenSandboxRunPromptOptions as do, CoordinationTransportOptions as dp, createScope as dr, registryScopeAnalyst as ds, CoordinationStats as dt, SettledPursuitVersion as du, WorktreeCommandResult as dv, WorkerProgress as dx, PeerMailRefusal as dy, RetainedRunIntentAdmission as eC, ExecCtx as eS, HarnessUsage as e_, UnconfirmedTeardown as ea, SqlAdapter as eb, AgenticSurface as ec, PromptHandle as ed, ParkedRun as ef, DelegationStatusResult as eg, sumSandboxUsage as eh, graphFromSessionFacts as ei, Panel as el, ProviderSeam as em, BoxSurfaceReaderOptions as en, EvolutionReport as eo, UNPROVEN_CONTINUITY as ep, createFencedSqlRunContext as er, loopUntil as es, ProviderModelAttemptEvidence as et, IsolatedCheckBox as eu, RuntimeStreamEventCollector as ev, WorkerTraceUnavailableReason as ex, MapOnSettleRoute as ey, BackendErrorDetail as f, LoopStartedPayload as fS, Interval as f_, createChatSessionStore as fa, InMemoryResultBlobStore as fb, runAgentic as fc, PursuitFork as fd, ReservationShortfall as ff, ResearchOutput as fg, FeedbackStore as fh, graphRegistry as fi, TrajectoryReportOptions as fl, InboxMessage as fm, failuresAnalyst as fn, SandboxRun as fo, serveCoordinationMcp as fp, ScopeArgs as fr, observationFromRegistry as fs, CoordinationTools as ft, VersionJudge as fu, WorktreeHarnessResult as fv, createActivityLog as fx, PeerMailSendInput as fy, OpenAIChatToolChoice as g, LoopTraceEvent as gS, PairwiseOptions as g_, asAuthoredProfile as ga, defaultRedactor as gb, ShotSpec as gc, superviseWithTestBrain as gd, createBudgetPool as gf, researcherProfile as gg, DelegateRunCtx as gh, lookupGraph as gi, WidenDecision as gl, SharedBoxCloseReceipt as gm, WorktreeCliExecutorOptions as gn, SandboxLineage as go, CoordinationLog as gp, WriteWorkerSteerOptions as gr, sanitizeMcpToolSchema as gs, MakeWorkerAgent as gt, SupervisePursuitError as gu, CoordinationEvent as gv, RetainedInteractiveAdmissionHook as gx, createPeerMailbox as gy, OpenAIChatTool as h, LoopTraceEmitter as hS, LeaderboardRow as h_, ProfileRichnessThresholds as ha, Redactor as hb, AuthoredStrategy as hc, superviseFleetCapabilities as hd, ReserveOptions as hf, ResearcherProfileOptions as hg, CoderReviewer as hh, loadGraph as hi, Widen as hl, DEFAULT_SHARED_BOX_WORKERS as hm, worktreeFanout as hn, openSandboxRun as ho, CoordinationDeliveryEvidence as hp, WorkerSteerRequest as hr, createMcpEnvironment as hs, GraphSubtasks as ht, SuperviseGraphPursuitOptions as hu, AwaitWakeInput as hv, RecoverRetainedInteractiveRunOptions as hx, claimsAuthority as hy, AgentExecutionBackend as i, RetainedRunTurnInput as iC, LoopIterationDispatchPayload as iS, CodeModeToolContext as i_, WorkerEventPage as ia, SpawnForestInDoubtNode as ib, CorpusReadbackOptions as ic, createPromptRegistry as id, readRunParking as if, UiAuditLensFilter as ig, ToolSpec as ih, GraphRunQuery as ii, PipelineStage as il, DEFAULT_SANDBOX_STEERING_MAX_TURNS as im, SurfaceReadOutcome as in, TournamentCell as io, FinalizerSettled as ip, SearchSpecInputs as ir, verify as is, SupervisedResult as it, runIsolatedCheck as iu, SanitizedKnowledgeReadinessReport as iv, createPushTraceSource as ix, DEFAULT_PEER_MAIL_LIMITS as iy, TraceSummary as j, RuntimeRunRow as jS, bestSoFar as j_, StructuralRolloutResult as ja, ExecutorExecutionBinding as jb, HarvestReport as jc, withWorkerSpawnRetry as jd, SupervisorNodeContext as jf, ExecutorResultMapping as jg, DelegationRecord as jh, GraphDesignerExtraTools as ji, ShapeRegistry as jl, ProviderPromptOptions as jm, spendFromUsageEvents as jn, ClaimRetainedInteractiveControlOptions as jo, DriverReentry as jp, connectRemoteSupervisor as jr, loopCampaignDispatch as js, AgentEnvironmentSummary as jt, PursuitRunTotals as ju, ChildQuestionInbox as jv, HarnessTranscriptMetadata as jx, WatchTraceOptions as jy, TRACE_SUMMARY_SCHEMA as k, RuntimeRunOptions as kS, anytimeReport as k_, StructuralRolloutMessage as ka, AgentExecutionRef as kb, HarvestError as kc, resolveWorkerSpawnRetry as kd, SupervisorAgentDeps as kf, CheckVerdict as kg, runDetachedTurn as kh, DesignerRunGraphEnv as ki, ShapeBudget as kl, ProviderExecutorOptions as km, composeWorkerEvidence as kn, startRetainedRun as ko, admitContinuationPolicy as kp, RemoteSupervisorTree as kr, SuperviseDispatchOptions as ks, AgentEnvironmentQuery as kt, PursuitProjection as ku, RouteMatch as kv, harnessTranscriptArtifact as kx, PublishOptions as ky, AgentTaskRunResult as l, LoopPlanPayload as lS, runCodeMode as l_, ChatWorkerSeamOptions as la, FileResultBlobStore as lb, breadthStrategy as lc, kernelPromptRegistry as ld, ReservationFloor as lf, UiLens as lg, ToolLoopMessageRecord as lh, graphCorpusSummary as li, SteerContext as ll, AuthorityInboxMessage as lm, harvestSurfaceDiffs as ln, OpenSandboxRunBeforeStartContext as lo, CoordinationPublicAddress as lp, searchSpecDigest as lr, buildSteerContext as ls, DriverRepromptRefusal as lt, PursuitVersionStop as lu, InPlaceHarnessResult as lv, ScopeProgressInput as lx, PeerMailOutcome as ly, OpenAIChatResponseFormat as m, LoopTokenUsage as mS, LeaderboardOptions as m_, ProfileRichness as ma, contentAddress as mb, AuthorStrategyOptions as mc, supervise as md, ReservationTicket as mf, ResearchTask as mg, CoderReview as mh, listGraphRuns as mi, VerifySpec as ml, DEFAULT_SHARED_BOX_RESOURCES as mm, WorktreeFanoutOptions as mn, TurnResult as mo, CoordinationRejectReason as mp, WorkerSteerAcknowledgement as mr, McpEnvironmentOptions as ms, GraphSubtaskPreparation as mt, assertPursuitVersions as mu, GitRunner as mv, ReconnectRetainedInteractiveRunOptions as mx, PeerMailboxOptions as my, AgentBackendContext as n, RetainedRunSnapshot as nC, LoopDecisionPayload as nS, CodeModeStore as n_, WorkerEventCursor as na, SpawnForest as nb, AgenticTool as nc, RegisteredPrompt as nd, RunParkingPolicy as nf, FeedbackRefersTo as ng, RouterTransportConfig as nh, GraphCorpusSummary as ni, PanelSpec as nl, RouterToolsSeam as nm, SurfaceDiff as nn, StrategyEvolutionConfig as no, DeliveredOutput as np, SEARCH_SPEC_CORRELATION_KEY as nr, pipeline as ns, RootProviderModelEvidence as nt, IsolatedCheckOptions as nu, RuntimeStreamEventSummary as nv, ToolStepInput as nx, MapTraversalEvent as ny, AgentRuntimeEvent as o, StartRetainedRunOptions as oC, LoopIterationStartedPayload as oS, CodeModeToolset as o_, ChatSessionStore as oa, SpawnForestNode as ob, StrategyMessage as oc, dumbContinuationFailPrompt as od, BudgetPoolRestore as of, UiFinding as og, ToolLoopChat as oh, GraphSelection as oi, ScopeAnalyst as ol, SteerableSandboxArgs as om, WatchedSurface as on, runStrategyEvolution as oo, bestDelivered as op, assertSearchSpec as or, CreateScopeAnalystOptions as os, DriverAttemptStop as ot, NextPursuitVersion as ou, createRuntimeEventCollector as ov, ActivityNote as ox, PeerMailEnvelope as oy, KnowledgeReadinessDecision as p, LoopTeardownFailedPayload as pS, Leaderboard as p_, AuthoredProfile as pa, InMemorySpawnJournal as pb, sample as pc, RUN_FORK_CORRELATION_KEYS as pd, ReservationStage as pf, ResearchSource as pg, CoderDelegate as ph, graphRunsFor as pi, Verify as pl, PeerInboxMessage as pm, AuthoredHarness as pn, SandboxRunAbortError as po, CoordinationHttpAudit as pp, WorkerCancellation as pr, McpEndpoint as ps, CoordinationToolsOptions as pt, VersionVerdict as pu, WorktreeProfileMaterializationReceipt as pv, readWorkerProgress as px, PeerMailbox as py, SpawnPrior as q, RetainedRunCancelOptions as qS, OtelSpan as q_, AgentTurnInput$1 as qa, HeldEnvironment as qb, EqualKOnCostOptions as qc, SupervisorSpanAttributes as qd, RunCancelRequest as qf, CodexRolloutStoreRef as qg, DelegationError as qh, Supervisor as qi, DeclaredCheckStateCapture as ql, SandboxToolPartState as qm, WorkerToolTraceArtifact as qn, definePersona as qo, createExecutorRegistry as qp, InteractiveWorkerOptions as qr, McpSpawnFault as qs, SandboxEvent$1 as qt, RunGraphOptions as qu, ContinuityMode as qv, ExecutorProgressEvent as qx, runLocalHarness as qy, AgentBackendInput as r, RetainedRunStartMaterial as rC, LoopEndedPayload as rS, CodeModeTool as r_, WorkerEventEntry as ra, SpawnForestEvent as rb, ArtifactHandle as rc, analyzesFindingsReportPrompt as rd, RunParkingRecord as rf, ResearchOutputShape as rg, RouterRouting as rh, GraphRegistryDir as ri, PanelVerdict as rl, SandboxSeam as rm, SurfaceReadBox as rn, StrategyTournament as ro, FinalizeContext as rp, SearchSpec as rr, selectValidWinner as rs, RootStreamReceipt as rt, IsolatedCheckResult as ru, RuntimeTelemetryOptions as rv, TraceSource as rx, AUTHORITY_MARKERS as ry, AgentRuntimeEventSink as s, LoopLineageOptions as sS, RunCodeModeOptions as s_, ChatTransportExecutorOptions as sa, SpawnForestTree as sb, StrategyShotResult as sc, dumbContinuationPassPrompt as sd, BudgetReadout as sf, UiFindingScreenshot as sg, ToolLoopCompaction as sh, StoredGraph as si, ScopeAnalyzeInput as sl, SteerableSandboxSession as sm, boxSurfaceReader as sn, strategyTournament as so, CoordinationAuthentication as sp, compileSearchSpec as sr, RegistryAnalyzeProjection as ss, DriverContinuationRecord as st, NextPursuitVersionInput as su, createRuntimeStreamEventCollector as sv, DEFAULT_STALL_AFTER_MS as sx, PeerMailEvent as sy, AgentAdapter as t, RetainedRunReplayPoint as tC, Iteration as tS, decodeHarnessUsage as t_, WidenGate as ta, materializeTreeView as tb, AgenticTask as tc, PromptRegistry as td, RunParkedError as tf, FeedbackRating as tg, RouterResponseReceipt as th, GraphCorpusGroup as ti, PanelJudge as tl, RouterSeam as tm, HarvestSurfaceDiffsOptions as tn, EvolutionStrategy as to, composeReentryTask as tp, CompiledSearchSpec as tr, panel as ts, ProviderModelExecutionEvidence as tt, IsolatedCheckBoxEvidence as tu, RuntimeStreamEventSink as tv, SessionMessageLike as tx, MapSpawnMarker as ty, AgentTaskSpec as u, LoopResult as uS, AxisScoresOf as u_, chatTransportExecutor as ua, replaySpawnTree as ub, depthStrategy as uc, naiveContinuationPrompt as ud, ReservationHolder as uf, KnowledgeItem as ug, ToolLoopToolCall as uh, graphDigest as ui, TrajectoryNode as ul, Inbox as um, AnalystAuthoring as un, OpenSandboxRunOptions as uo, CoordinationReadAccess as up, settledToIteration as ur, createScopeAnalyst as us, BlockedToolReport as ut, PursuitVersions as uu, WorktreeCheckRunner as uv, TeamProgress as ux, PeerMailReadout as uy, RunAgentTaskStreamOptions as v, MountManifestEntry as vS, ProfileKeyOf as v_, defaultProfileRichnessThresholds as va, AgentEvalErrorCode as vb, StrategyArtifacts as vc, AuthorizedSpawn as vd, readRootStream as vf, createPropagatingTraceEmitter as vg, DetachedWinnerSelection as vh, recordGraphRun as vi, WidenSpec as vl, SharedBoxPlacementOptions as vm, createWorktreeCliExecutor as vn, createSandboxLineage as vo, PriorCoordination as vp, legacySupervisorRunDir as vr, BenchmarkConfig as vs, SettledWorker as vt, SupervisedPursuitResult as vu, LeadMessage as vv, RetainedInteractiveRunHandle as vx, peerMailTools as vy, RuntimeFailureCode as w, ValidationCtx as wS, renderLeaderboardSvg as w_, CheckRunner as wa, AgentSpec as wb, defineStrategy as wc, ResolvedWorkerSpawnRetry as wd, DriveHarness as wf, FileDelegationStore as wg, SiblingSandboxExecutorOptions as wh, DispatchUnit as wi, Persona as wl, sharedWorkerClientName as wm, EVIDENCE_MAX_CHARS as wn, PrivateCasNamespaceInventory as wo, ContinuationPanelResult as wp, supervisorRunsRoot as wr, printBenchmarkReport as ws, WorkerSpawnContext as wt, PursuitNodeCost as wu, GateDecision as wv, HarnessTranscriptFile as wx, McpTransport as wy, RuntimeSessionStore as x, RunProvenance as xS, pairwiseSignificance as x_, CheckExecChannel as xa, JudgeError as xb, adaptiveRefine as xc, SuperviseTestOptions as xd, supervisorAgentWithTestBrain as xf, composeLoopTraceEmitters as xg, DelegationExecutor as xh, taskShapeDigest as xi, DefinePersonaInput as xl, sharedBoxPlacement as xm, WorkerInteractiveProviderSource as xn, S3PrivateCasStore as xo, ContinuationEntry as xp, readWorkerSteerRequests as xr, BenchmarkStrategySummary as xs, SpawnRefusal as xt, RunReopen as xu, ToolOutcomeEvent as xv, HarnessTranscriptArtifact as xx, JsonRpcResponse as xy, RuntimeCanonicalStreamEvent as y, MountRecorder as yS, ScoreOf as y_, profileRichnessFinding as ya, BackendTransportError as yb, StrategyCtx as yc, AuthorizedSpawnContext as yd, readRootStreamReceipt as yf, readTraceContextFromEnv as yg, UiAuditorDelegate as yh, recordStoredGraphRun as yi, WinnerStrategy as yl, SharedBoxStats as ym, AttachWorkerOptions as yn, AcquireOptions as yo, CheckRead as yp, readWorkerCancellation as yr, BenchmarkLift as ys, SpawnPreflight as yt, superviseGraphPursuit as yu, ManagerReentryState as yv, RetainedInteractiveStartMaterial as yx, peerMailVerbNames as yy, SpendGap as z, RecoverRetainedRunOptions as zS, runAgentRounds as z_, modelAuthoredChecks as za, UnknownMaterializationReason as zb, observe as zc, subscriptionUsageLimitSignal as zd, PlateauOptions as zf, completionAuthorizes as zg, SubmitOutput as zh, TraceRootReceipt as zi, LeaderboardIterationInfo as zl, ResolvedMcpServerLaunch as zm, WorkspaceCommit as zn, profileOptimizerModelCall as zo, resolveSpawnResourcePaths as zp, bestProfileFor as zr, InProcessOnPrompt as zs, CheckpointRequest as zt, AgentGraph as zu, QuestionOption as zv, ProviderNativeCapturePhase as zx, AnalystRunContext as zy };
|
|
19778
|
-
//# sourceMappingURL=types-C8BGOCBn.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
|