@tangle-network/agent-runtime 0.143.0 → 0.153.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.
Files changed (115) hide show
  1. package/README.md +32 -0
  2. package/dist/{activation-mi8TgSLM.js → activation-Bbic0THc.js} +3 -3
  3. package/dist/{activation-mi8TgSLM.js.map → activation-Bbic0THc.js.map} +1 -1
  4. package/dist/agent.d.ts +1 -1
  5. package/dist/agent.js +3 -3
  6. package/dist/{analyst-loop-CvkmfhUB.js → analyst-loop-Bouu53-l.js} +2 -2
  7. package/dist/{analyst-loop-CvkmfhUB.js.map → analyst-loop-Bouu53-l.js.map} +1 -1
  8. package/dist/analyst-loop.js +1 -1
  9. package/dist/{authoring-DuyShLdw.js → authoring-CcVhJ1lP.js} +2 -2
  10. package/dist/{authoring-DuyShLdw.js.map → authoring-CcVhJ1lP.js.map} +1 -1
  11. package/dist/candidate-execution/index.js +4 -4
  12. package/dist/{candidate-execution-CD5PoNmC.js → candidate-execution-DYOB1juU.js} +4 -4
  13. package/dist/{candidate-execution-CD5PoNmC.js.map → candidate-execution-DYOB1juU.js.map} +1 -1
  14. package/dist/{conversation-1hNtDeMM.js → conversation-BHMwAiMo.js} +28 -13
  15. package/dist/{conversation-1hNtDeMM.js.map → conversation-BHMwAiMo.js.map} +1 -1
  16. package/dist/conversation.d.ts +1 -1
  17. package/dist/conversation.js +1 -1
  18. package/dist/durable.d.ts +102 -4
  19. package/dist/durable.js +259 -13
  20. package/dist/durable.js.map +1 -1
  21. package/dist/{environment-provider-DCBJ13VP.js → environment-provider-3eCszBEm.js} +218 -34
  22. package/dist/environment-provider-3eCszBEm.js.map +1 -0
  23. package/dist/{environment-provider-B8eZ85Ga.d.ts → environment-provider-DJG0yIYl.d.ts} +2 -2
  24. package/dist/environment-provider.d.ts +1 -1
  25. package/dist/environment-provider.js +1 -1
  26. package/dist/executable-spec-BUcUcEPk.js +73 -0
  27. package/dist/executable-spec-BUcUcEPk.js.map +1 -0
  28. package/dist/{graph-De_XEsfH.js → graph-CIh2HDmH.js} +4 -4
  29. package/dist/{graph-De_XEsfH.js.map → graph-CIh2HDmH.js.map} +1 -1
  30. package/dist/{improvement-cycle-Bi-Tf4QF.js → improvement-cycle-GCDSsTN6.js} +7 -7
  31. package/dist/{improvement-cycle-Bi-Tf4QF.js.map → improvement-cycle-GCDSsTN6.js.map} +1 -1
  32. package/dist/{index-C2caGomG.d.ts → index-DLn9WI-f.d.ts} +342 -505
  33. package/dist/{index-B8rKtH3U.d.ts → index-lMADJLfq.d.ts} +4 -4
  34. package/dist/{index-D4sLkOPY.d.ts → index-rxVSm9-z.d.ts} +6 -4
  35. package/dist/index.d.ts +7 -7
  36. package/dist/index.js +13 -13
  37. package/dist/intelligence.d.ts +4 -4
  38. package/dist/intelligence.js +6 -6
  39. package/dist/jsonl-file-CDfsCI5s.js +59 -0
  40. package/dist/jsonl-file-CDfsCI5s.js.map +1 -0
  41. package/dist/kernel.d.ts +6 -6
  42. package/dist/kernel.js +13 -13
  43. package/dist/{knowledge-CVE6Wk1i.js → knowledge-CaY53BW2.js} +10 -7
  44. package/dist/{knowledge-CVE6Wk1i.js.map → knowledge-CaY53BW2.js.map} +1 -1
  45. package/dist/knowledge.d.ts +1 -1
  46. package/dist/knowledge.js +1 -1
  47. package/dist/{loop-runner-bin-BoHdQqLm.d.ts → loop-runner-bin-BwPqxKhR.d.ts} +3 -3
  48. package/dist/{loop-runner-bin-DdaI1nLL.js → loop-runner-bin-Dw43kB_-.js} +4 -4
  49. package/dist/{loop-runner-bin-DdaI1nLL.js.map → loop-runner-bin-Dw43kB_-.js.map} +1 -1
  50. package/dist/loop-runner-bin.d.ts +1 -1
  51. package/dist/loop-runner-bin.js +1 -1
  52. package/dist/{materialization-P86EciBw.js → materialization-Dl9J8ek4.js} +279 -58
  53. package/dist/materialization-Dl9J8ek4.js.map +1 -0
  54. package/dist/mcp/bin.js +3 -3
  55. package/dist/mcp/index.d.ts +3 -3
  56. package/dist/mcp/index.js +6 -6
  57. package/dist/{model-policy-DgRJIJse.js → model-policy-Sw4ywhtL.js} +68 -6
  58. package/dist/model-policy-Sw4ywhtL.js.map +1 -0
  59. package/dist/{openai-tools-BiAWKjh6.js → openai-tools-C4XKuK4t.js} +2 -2
  60. package/dist/{openai-tools-BiAWKjh6.js.map → openai-tools-C4XKuK4t.js.map} +1 -1
  61. package/dist/{prepare-D3n7cA39.js → prepare-C5tI-H4o.js} +2 -2
  62. package/dist/{prepare-D3n7cA39.js.map → prepare-C5tI-H4o.js.map} +1 -1
  63. package/dist/primeintellect/index.d.ts +1 -1
  64. package/dist/profiles.js +1 -1
  65. package/dist/{protected-model-port-bq6bD9YX.js → protected-model-port-DHDKNeY7.js} +2 -2
  66. package/dist/{protected-model-port-bq6bD9YX.js.map → protected-model-port-DHDKNeY7.js.map} +1 -1
  67. package/dist/{redact-DexTuAiX.d.ts → redact-NAptmqKw.d.ts} +3 -3
  68. package/dist/{researcher-CiSY6Wzb.js → researcher-BMFFPwKb.js} +2 -2
  69. package/dist/{researcher-CiSY6Wzb.js.map → researcher-BMFFPwKb.js.map} +1 -1
  70. package/dist/{run-layout-Be_Z0dF8.js → run-layout-C2jgwsCq.js} +111 -6
  71. package/dist/run-layout-C2jgwsCq.js.map +1 -0
  72. package/dist/{runtime-BnqjbOGX.js → runtime--Jsq8JCC.js} +118 -97
  73. package/dist/runtime--Jsq8JCC.js.map +1 -0
  74. package/dist/{runtime-J6Toky8K.d.ts → runtime-B-5dp5Iz.d.ts} +214 -14
  75. package/dist/{sandbox-events-COwCWUVB.js → sandbox-events-BVjstFgb.js} +70 -3
  76. package/dist/sandbox-events-BVjstFgb.js.map +1 -0
  77. package/dist/{spawn-journal-D2HKUImC.js → spawn-journal-BLnveCRS.js} +34 -104
  78. package/dist/spawn-journal-BLnveCRS.js.map +1 -0
  79. package/dist/{stream-agent-turn-C1Vs_3B9.d.ts → stream-agent-turn-BGyszuPH.d.ts} +2 -2
  80. package/dist/{stream-agent-turn-CXRugSGO.js → stream-agent-turn-DYi8ymsU.js} +91 -16
  81. package/dist/stream-agent-turn-DYi8ymsU.js.map +1 -0
  82. package/dist/{structural-rollout-CJgj9YXH.js → structural-rollout-D7V-HgXJ.js} +30 -13
  83. package/dist/structural-rollout-D7V-HgXJ.js.map +1 -0
  84. package/dist/{supervise-hCgG6ROJ.js → supervise-k_8VOASb.js} +2499 -2171
  85. package/dist/supervise-k_8VOASb.js.map +1 -0
  86. package/dist/{supervisor-s8SfZYbW.js → supervisor-CMZsJ7Wn.js} +673 -446
  87. package/dist/supervisor-CMZsJ7Wn.js.map +1 -0
  88. package/dist/testing.d.ts +2 -2
  89. package/dist/testing.js +12 -12
  90. package/dist/{top-app-BMOSKK06.js → top-app-3rYfFPTW.js} +192 -147
  91. package/dist/top-app-3rYfFPTW.js.map +1 -0
  92. package/dist/tui/bin.js +1 -1
  93. package/dist/tui/index.d.ts +32 -5
  94. package/dist/tui/index.js +1 -1
  95. package/dist/{types-Df9vulGc.d.ts → types-BPQhQRrC.d.ts} +507 -10
  96. package/dist/{util-C1bv6yog.js → util-D6ZEuBMi.js} +71 -2
  97. package/dist/util-D6ZEuBMi.js.map +1 -0
  98. package/dist/{workspace-archive-C52LjkeN.js → workspace-archive-B9ui4rrR.js} +2 -2
  99. package/dist/{workspace-archive-C52LjkeN.js.map → workspace-archive-B9ui4rrR.js.map} +1 -1
  100. package/package.json +7 -7
  101. package/dist/environment-provider-DCBJ13VP.js.map +0 -1
  102. package/dist/materialization-P86EciBw.js.map +0 -1
  103. package/dist/model-policy-DgRJIJse.js.map +0 -1
  104. package/dist/retained-run-binding-Dp2e8xne.js +0 -268
  105. package/dist/retained-run-binding-Dp2e8xne.js.map +0 -1
  106. package/dist/run-layout-Be_Z0dF8.js.map +0 -1
  107. package/dist/runtime-BnqjbOGX.js.map +0 -1
  108. package/dist/sandbox-events-COwCWUVB.js.map +0 -1
  109. package/dist/spawn-journal-D2HKUImC.js.map +0 -1
  110. package/dist/stream-agent-turn-CXRugSGO.js.map +0 -1
  111. package/dist/structural-rollout-CJgj9YXH.js.map +0 -1
  112. package/dist/supervise-hCgG6ROJ.js.map +0 -1
  113. package/dist/supervisor-s8SfZYbW.js.map +0 -1
  114. package/dist/top-app-BMOSKK06.js.map +0 -1
  115. package/dist/util-C1bv6yog.js.map +0 -1
@@ -1,18 +1,19 @@
1
- import { C as MountRecorder, D as SelectionReceipt, E as SandboxClient, S as MountManifestEntry, a as Iteration, at as RuntimeStreamEvent, b as LoopTraceEvent, d as LoopLineageOptions, i as ExecCtx, k as Validator, m as LoopResult, r as Driver, t as AgentRunSpec, w as OutputAdapter, x as LoopWinner, y as LoopTraceEmitter } from "./types-DeX8ibLc.js";
1
+ import { C as MountRecorder, D as SelectionReceipt, E as SandboxClient, S as MountManifestEntry, a as Iteration, b as LoopTraceEvent, d as LoopLineageOptions, i as ExecCtx, k as Validator, m as LoopResult, r as Driver, t as AgentRunSpec, w as OutputAdapter, x as LoopWinner, y as LoopTraceEmitter } from "./types-DeX8ibLc.js";
2
2
  import { n as AnalystRegistryLike } from "./types-zWfqDjeL.js";
3
3
  import { l as RuntimeHooks } from "./runtime-hooks-Bj6wJHlH.js";
4
- import { B as SpawnOpts, E as ProviderModelExecutionEvidence, F as Runtime, G as SpendGap, I as Scope, J as Supervisor, Jt as PendingWait, K as SteerableRootHandle, L as Settled, O as ResultBlobStore, Q as UsageEvent, R as SpawnEvent, S as NodeSnapshot, St as OtelExporter, U as Spend, X as TreeView, Zt as WaitProbeRegistry, a as DefaultVerdict, b as NodeExecutionIdentity, d as ExecutorFactory, h as ExecutorResult, i as Budget, j as RootHandle, k as ResumedKeyState, ln as TraceSource, lt as TraceContext, m as ExecutorRegistry, n as AgentExecutionRef, o as ExecutionBindingReceipt, q as SupervisedResult, r as AgentSpec, rt as WorkerTraceResolver, s as Executor, t as Agent, tt as WorkerTraceEvidence, vn as WorkerProgress, w as ProfileMaterializationReceipt, x as NodeId, xt as OtelExportConfig, y as NoWinnerError, z as SpawnJournal } from "./types-Df9vulGc.js";
5
- import { At as JsonRpcMessage, Ct as PeerMailbox, E as KeyProvider, F as WorktreeHarnessResult, J as runLocalHarness, Mt as McpToolDescriptor$1, N as WorktreeCheckRunner, Nt as McpTransport, Q as GitRunner, at as ToolSpec, b as Inbox, gt as PeerMailEvent, it as RouterTransportConfig, jt as JsonRpcResponse, l as RouterToolsSeam, lt as ToolLoopCompactionOptions, o as ExecutorConfig, st as ToolLoopChat, vt as PeerMailLimits } from "./runtime-J6Toky8K.js";
4
+ import { $n as RetainedRunHandle, A as ProviderModelExecutionEvidence, B as Scope, Bn as RecoverRetainedRunResult, C as NoWinnerError, E as NodeSnapshot, F as RootHandle, Gn as RetainedRunAdmission, H as SpawnEvent, Ln as ReconnectRetainedRunOptions, M as ResultBlobStore, Mn as RetainedInteractiveRunHandle, N as ResumedKeyState, O as ProfileMaterializationReceipt, On as ReconnectRetainedInteractiveRunOptions, Ot as OtelExportConfig, Pn as StartRetainedInteractiveRunOptions, Q as Supervisor, Rn as RecoverRetainedRunIntentOptions, T as NodeId, Tn as WorkerProgress, U as SpawnJournal, V as Settled, Vn as RetainedInteractiveAdmission, W as SpawnOpts, X as SteerableRootHandle, Xn as RetainedRunEffect, Y as SpendGap, Z as SupervisedResult, _ as ExecutorRegistry, a as DefaultVerdict, ar as StartRetainedRunOptions, ct as WorkerTraceEvidence, et as TreeView, gn as TraceSource, gt as TraceContext, i as Budget, in as WaitProbeRegistry, ir as StartRetainedRunInEnvironmentOptions, kn as RecoverRetainedInteractiveRunOptions, kt as OtelExporter, n as AgentExecutionRef, o as ExecutionBindingReceipt, p as ExecutorFactory, q as Spend, r as AgentSpec, rt as UsageEvent, s as Executor, t as Agent, tn as PendingWait, tt as UnconfirmedTeardown, ut as WorkerTraceResolver, v as ExecutorResult, w as NodeExecutionIdentity, z as Runtime, zn as RecoverRetainedRunOptions } from "./types-BPQhQRrC.js";
5
+ import { Bt as JsonRpcMessage, Et as PeerMailEvent, G as WorktreeHarnessResult, Ht as McpToolDescriptor$1, I as KeyProvider, Nt as PeerMailbox, Ot as PeerMailLimits, U as WorktreeCheckRunner, Ut as McpTransport, Vt as JsonRpcResponse, _t as ToolLoopChat, b as Inbox, ct as GitRunner, ht as ToolSpec, it as runLocalHarness, l as RouterToolsSeam, mt as RouterTransportConfig, o as ExecutorConfig, yt as ToolLoopCompactionOptions } from "./runtime-B-5dp5Iz.js";
6
6
  import { o as UiLens, r as UiFinding, s as CoderTask } from "./substrate-BcnuSHXm.js";
7
- import "./environment-provider-B8eZ85Ga.js";
8
- import "./stream-agent-turn-C1Vs_3B9.js";
9
- import { AGENT_PROFILE_MATERIALIZATION_AXES, AgentExactRunControlRef, AgentInteractiveSession, AgentInteractiveSessionControlClaim, AgentInteractiveSessionPromptAcknowledgement, AgentInteractiveSessionPromptCommand, AgentInteractiveSessionRef, AgentInteractiveSessionStart, AgentInteractiveSessionStatus, AgentNativeContextContinuationOptions, AgentNativeContextContinuationResult, AgentProfile, AgentProfile as AgentProfile$2, AgentProfile as AgentProfile$3, AgentProfilePrompt, AgentProfileSecurityPolicy, AgentSessionStatus, CanonicalAgentProfileMaterializationAxis, InteractionAcknowledgement, InteractionResponseCommand, NativeContextBoundaryProof, NativeContextContinuationRequest, NativeContextContinuationTurn, RuntimeEventEnvelope, Sha256Digest, StreamEvent, profileMaterializationAxes as profileMaterializationAxes$1 } from "@tangle-network/agent-interface";
10
- import { AgentEvalError, AgentEvalError as AgentEvalError$1, AgentEvalErrorCode, AgentProfile as AgentProfile$1, AnalystFinding, AnalystFinding as AnalystFinding$1, AnalystFinding as AnalystFinding$2, AnalystRunInputs, ChatClient, ConfigError, CustomTokenPricing, DetectorSignal, HarnessType as HarnessType$1, JudgeError, MaximumCharge, NotFoundError, ProposalFinding, RankTestMethod, RunRecord, StreamingDetector, ToolSpan, TraceAnalysisStore, ValidationError, buildTrajectory, computeFindingId as computeFindingId$1, makeFinding as makeFinding$1 } from "@tangle-network/agent-eval";
7
+ import "./environment-provider-DJG0yIYl.js";
8
+ import "./stream-agent-turn-BGyszuPH.js";
9
+ import { AGENT_PROFILE_MATERIALIZATION_AXES, AgentInteractiveSessionControlClaim, AgentInteractiveSessionRef, AgentInteractiveSessionStart, AgentInteractiveSessionStatus, AgentProfile, AgentProfile as AgentProfile$2, AgentProfile as AgentProfile$3, AgentProfilePrompt, AgentProfileSecurityPolicy, CanonicalAgentProfileMaterializationAxis, Sha256Digest, profileMaterializationAxes as profileMaterializationAxes$1 } from "@tangle-network/agent-interface";
10
+ import { AgentEvalError, AgentEvalError as AgentEvalError$1, AgentEvalErrorCode, AgentProfile as AgentProfile$1, AnalystFinding, AnalystFinding as AnalystFinding$1, AnalystFinding as AnalystFinding$2, AnalystRunInputs, ChatClient, ConfigError, CustomTokenPricing, DetectorSignal, HarnessType as HarnessType$1, JudgeError, MaximumCharge, NotFoundError, ProposalFinding, RankTestMethod, RegistryRunOpts, RunRecord, StreamingDetector, ToolSpan, TraceAnalysisStore, ValidationError, buildTrajectory, computeFindingId as computeFindingId$1, makeFinding as makeFinding$1 } from "@tangle-network/agent-eval";
11
11
  import { DispatchFn, ExternalOptimizerModelCall, JudgeConfig, ProfileDispatchFn, RunProfileMatrixOptions, RunProfileMatrixResult, Scenario } from "@tangle-network/agent-eval/campaign";
12
+ import "@tangle-network/agent-profile-materialize";
12
13
  import { AgentRunOutcome } from "@tangle-network/sandbox/runtime";
13
14
  import { BackendType, BranchOptions, CreateSandboxOptions, CreateSandboxOptions as CreateSandboxOptions$1, PromptOptions, SandboxEvent, SandboxEvent as SandboxEvent$1, SandboxInstance, SandboxInstance as SandboxInstance$1 } from "@tangle-network/sandbox";
14
15
  import { stuckLoopView, toolWasteView } from "@tangle-network/agent-eval/pipelines";
15
- import { AgentEnvironment, AgentEnvironmentCapabilities, AgentEnvironmentProvider, AgentTurnInput, AgentTurnResult, CreateAgentEnvironmentInput } from "@tangle-network/agent-interface/environment-provider";
16
+ import { AgentEnvironment, AgentEnvironmentCapabilities, AgentEnvironmentProvider } from "@tangle-network/agent-interface/environment-provider";
16
17
  //#region src/agent/profile-materialization.d.ts
17
18
  type KnownAgentProfileMaterializationAxis = CanonicalAgentProfileMaterializationAxis;
18
19
  /** AgentProfile axis name, with `custom:<name>` reserved for caller-owned extensions. */
@@ -416,259 +417,6 @@ interface CoderOutput {
416
417
  reviewerNotes?: string;
417
418
  }
418
419
  //#endregion
419
- //#region src/runtime/retained-run-types.d.ts
420
- /** Cursor plus runtime sequence needed to continue one ordered replay. @stable */
421
- interface RetainedRunReplayPoint {
422
- readonly cursor: string;
423
- readonly sequence: number;
424
- }
425
- /** Options for replaying canonical events strictly after a saved point. @stable */
426
- interface RetainedRunEventOptions {
427
- readonly after?: RetainedRunReplayPoint;
428
- readonly signal?: AbortSignal;
429
- }
430
- /** Effect recorded for one retained control operation. @stable */
431
- type RetainedRunEffect = 'cancel_requested' | 'cancelled' | 'not_live' | 'unknown';
432
- /** Stable status snapshot for a retained run. @stable */
433
- interface RetainedRunSnapshot {
434
- readonly runId: string;
435
- readonly controlRef: AgentExactRunControlRef;
436
- readonly status: AgentSessionStatus | null;
437
- readonly effect: RetainedRunEffect;
438
- readonly observedAt: string;
439
- readonly reason?: string;
440
- readonly signal?: string;
441
- }
442
- /** Durable acknowledgement state for one retained control operation. @stable */
443
- interface RetainedRunCancellation {
444
- readonly operationId: string;
445
- readonly requestDigest: Sha256Digest;
446
- readonly status: 'accepted' | 'replayed' | 'conflict' | 'unknown';
447
- readonly effect: RetainedRunEffect;
448
- readonly snapshot: RetainedRunSnapshot;
449
- readonly reason?: string;
450
- readonly signal?: string;
451
- }
452
- /** Options for an idempotent retained cancellation. @stable */
453
- interface RetainedRunCancelOptions {
454
- readonly operationId: string;
455
- readonly reason?: string;
456
- readonly signal?: AbortSignal;
457
- }
458
- /** Runtime controls plus the exact user turn bound into a continuation request. @stable */
459
- type NativeContextContinuationInput = NativeContextContinuationTurn & Omit<AgentNativeContextContinuationOptions, 'turn'>;
460
- /** Result of one verified same-session continuation. @stable */
461
- type NativeContextContinuationExecution = AgentNativeContextContinuationResult;
462
- /** Reconstructable control of one provider-retained run. @stable */
463
- interface RetainedRunHandle {
464
- readonly controlRef: AgentExactRunControlRef;
465
- /** Capabilities measured from the exact environment that owns this run. */
466
- readonly capabilities: AgentEnvironmentCapabilities;
467
- status(options?: {
468
- waitMs?: number;
469
- signal?: AbortSignal;
470
- }): Promise<RetainedRunSnapshot>;
471
- events(options?: RetainedRunEventOptions): AsyncIterable<RuntimeEventEnvelope>;
472
- result(): Promise<AgentTurnResult>;
473
- respondToInteraction(command: InteractionResponseCommand, options?: {
474
- signal?: AbortSignal;
475
- }): Promise<InteractionAcknowledgement>;
476
- contextBoundary(options?: {
477
- signal?: AbortSignal;
478
- }): Promise<NativeContextBoundaryProof | null>;
479
- continueNative(request: NativeContextContinuationRequest, turn: NativeContextContinuationInput): Promise<NativeContextContinuationExecution>;
480
- cancel(options: RetainedRunCancelOptions): Promise<RetainedRunCancellation>;
481
- }
482
- /**
483
- * Sanitized headless intent durable before environment creation.
484
- *
485
- * The request digest binds the public create and turn material without
486
- * retaining secret values. The original start material is required to replay
487
- * this record after a process crash.
488
- * @stable
489
- */
490
- interface RetainedRunIntentAdmission {
491
- readonly phase: 'intent';
492
- readonly provider: string;
493
- readonly idempotencyKey: string;
494
- readonly turnId: string;
495
- readonly sessionId: string;
496
- readonly executionId: string;
497
- readonly runId: string;
498
- readonly requestedProfileDigest: Sha256Digest;
499
- readonly requestDigest: Sha256Digest;
500
- }
501
- /** Recovery coordinates durable after environment creation and before dispatch. @stable */
502
- interface RetainedRunEnvironmentAdmission {
503
- readonly phase: 'environment';
504
- readonly provider: string;
505
- readonly environmentId: string;
506
- readonly idempotencyKey: string;
507
- readonly turnId: string;
508
- /** Caller-supplied or runtime-minted; always the identity the dispatch will request. */
509
- readonly sessionId: string;
510
- /** Caller-supplied or runtime-minted; always the identity the dispatch will request. */
511
- readonly executionId: string;
512
- }
513
- /** The verified exact reference, durable before the start promise resolves. @stable */
514
- interface RetainedRunDispatchedAdmission {
515
- readonly phase: 'dispatched';
516
- readonly controlRef: AgentExactRunControlRef;
517
- readonly idempotencyKey: string;
518
- readonly turnId: string;
519
- }
520
- /**
521
- * Sanitized intent durable before an interactive environment create begins.
522
- *
523
- * The digest covers the public start and create material without retaining that
524
- * material. It never carries environment variables, secret values, or provider
525
- * options. The replay input supplies private values after this check.
526
- * @stable
527
- */
528
- interface RetainedInteractiveIntentAdmission {
529
- readonly phase: 'interactive_intent';
530
- readonly provider: string;
531
- readonly idempotencyKey: string;
532
- readonly interactiveIdempotencyKey: string;
533
- readonly sessionId: string;
534
- readonly executionId: string;
535
- readonly runId: string;
536
- readonly requestedProfileDigest: Sha256Digest;
537
- readonly requestDigest: Sha256Digest;
538
- }
539
- /** Exact interactive start request durable after environment creation. @stable */
540
- interface RetainedInteractiveEnvironmentAdmission {
541
- readonly phase: 'interactive_environment';
542
- readonly provider: string;
543
- readonly environmentId: string;
544
- readonly idempotencyKey: string;
545
- readonly interactiveIdempotencyKey: string;
546
- readonly request: AgentInteractiveSessionStart;
547
- }
548
- /** Provider-issued interactive process reference durable before start returns. @stable */
549
- interface RetainedInteractiveStartedAdmission {
550
- readonly phase: 'interactive_started';
551
- readonly idempotencyKey: string;
552
- readonly interactiveIdempotencyKey: string;
553
- readonly ref: AgentInteractiveSessionRef;
554
- }
555
- /** Durable records for one exact native coding-agent process. @stable */
556
- type RetainedInteractiveAdmission = RetainedInteractiveIntentAdmission | RetainedInteractiveEnvironmentAdmission | RetainedInteractiveStartedAdmission;
557
- /** One detached-run admission record the runtime persists before creation or dispatch proceeds. @stable */
558
- type RetainedRunAdmission = RetainedRunIntentAdmission | RetainedRunEnvironmentAdmission | RetainedRunDispatchedAdmission;
559
- /**
560
- * Awaited durability hook for retained admission records.
561
- *
562
- * The runtime blocks after the pre-create intent, environment creation, and
563
- * provider work until the hook resolves. No retained run becomes caller-visible
564
- * before its exact recovery record is durable. A rejection keeps provider state
565
- * for recovery when provider work has already started.
566
- *
567
- * @stable
568
- */
569
- type RetainedRunAdmissionHook = (admission: RetainedRunAdmission) => Promise<void>;
570
- /** Environment, turn, and optional identity needed to replay one retained start. @stable */
571
- interface RetainedRunStartMaterial {
572
- readonly environment: CreateAgentEnvironmentInput & {
573
- idempotencyKey: string;
574
- };
575
- readonly turn: AgentTurnInput & {
576
- turnId: string;
577
- };
578
- /**
579
- * Explicit dispatch coordinates. When omitted, the runtime mints
580
- * deterministic coordinates from `(environment.idempotencyKey, turn.turnId)`
581
- * so every process derives the same values.
582
- */
583
- readonly identity?: {
584
- readonly sessionId: string;
585
- readonly executionId: string;
586
- };
587
- }
588
- /** A retained start is retry-safe only when environment and turn keys are explicit. @stable */
589
- interface StartRetainedRunOptions extends RetainedRunStartMaterial {
590
- readonly provider: AgentEnvironmentProvider;
591
- /** A previously persisted intent used to replay the exact create operation. */
592
- readonly intent?: RetainedRunIntentAdmission;
593
- readonly onAdmission: RetainedRunAdmissionHook;
594
- readonly now?: () => number;
595
- }
596
- /** A fresh retained session inside a provider environment that already exists. @stable */
597
- interface StartRetainedRunInEnvironmentOptions {
598
- readonly provider: AgentEnvironmentProvider;
599
- readonly environment: {
600
- /** Stable provider environment identifier used by `provider.get`. */
601
- readonly id: string;
602
- /** Original environment key. The provider must return the matching retained metadata. */
603
- readonly idempotencyKey: string;
604
- };
605
- readonly turn: AgentTurnInput & {
606
- turnId: string;
607
- };
608
- /**
609
- * Explicit fresh-session coordinates. When omitted, the runtime mints them
610
- * from `(environment.idempotencyKey, turn.turnId)`.
611
- */
612
- readonly identity?: {
613
- readonly sessionId: string;
614
- readonly executionId: string;
615
- };
616
- readonly onAdmission: RetainedRunAdmissionHook;
617
- readonly now?: () => number;
618
- }
619
- /** Inputs sufficient to rebuild a control client in a new process. @stable */
620
- interface ReconnectRetainedRunOptions {
621
- readonly provider: AgentEnvironmentProvider;
622
- readonly controlRef: AgentExactRunControlRef;
623
- readonly now?: () => number;
624
- }
625
- /** Recover a headless start after its pre-create intent was persisted. @stable */
626
- interface RecoverRetainedRunIntentOptions {
627
- readonly provider: AgentEnvironmentProvider;
628
- readonly admission: RetainedRunIntentAdmission;
629
- /** The exact original environment, turn, and optional identity material. */
630
- readonly replay: RetainedRunStartMaterial;
631
- readonly onAdmission: RetainedRunAdmissionHook;
632
- readonly now?: () => number;
633
- }
634
- /**
635
- * Pre-dispatch admission coordinates for one recovery attempt.
636
- *
637
- * A `phase: 'environment'` admission record carries these fields, so a caller
638
- * can pass that record after a crash before the dispatched record landed.
639
- *
640
- * @stable
641
- */
642
- interface RecoverRetainedRunOptions {
643
- readonly provider: AgentEnvironmentProvider;
644
- readonly environmentId: string;
645
- readonly sessionId: string;
646
- readonly executionId: string;
647
- readonly now?: () => number;
648
- }
649
- /**
650
- * Outcome of one recovery attempt from pre-dispatch admission coordinates.
651
- *
652
- * `not_found`: the provider no longer holds the environment; nothing remains
653
- * to destroy. `recovered`: the provider self-identified the session with a
654
- * strict exact reference matching the recorded coordinates. `unverifiable`:
655
- * the environment exists but the provider cannot self-identify the session;
656
- * never destroy on this outcome — keep the environment, retry
657
- * `reconnectRetainedRun` with a dispatched admission record, or inspect it
658
- * with provider-native tools.
659
- *
660
- * @stable
661
- */
662
- type RecoverRetainedRunResult = {
663
- readonly outcome: 'recovered';
664
- readonly handle: RetainedRunHandle;
665
- } | {
666
- readonly outcome: 'not_found';
667
- } | {
668
- readonly outcome: 'unverifiable';
669
- readonly environment: AgentEnvironment;
670
- };
671
- //#endregion
672
420
  //#region src/errors.d.ts
673
421
  /**
674
422
  *
@@ -2199,13 +1947,25 @@ interface QuestionRecord extends Question {
2199
1947
  readonly openedAt: number;
2200
1948
  }
2201
1949
  type QuestionPolicy = 'auto' | 'mustDecide' | 'bubble' | 'failClosed';
1950
+ /**
1951
+ * What one analyst lens may return.
1952
+ *
1953
+ * Two shapes, because two real producers exist and neither can be dropped. An eval-registry lens
1954
+ * returns validated `AnalystFinding`s — the schema every upstream consumer already reads. An
1955
+ * authored lens like `failuresAnalyst` returns a written brief for the driver and has no findings
1956
+ * to validate against. The union names both, so the boundary can no longer silently accept an
1957
+ * unvalidated shape (#630) while the authored lens keeps working.
1958
+ */
1959
+ type AnalystLensOutput = ReadonlyArray<AnalystFinding> | {
1960
+ readonly summary: string;
1961
+ };
2202
1962
  interface AnalystRegistry {
2203
1963
  readonly kinds: ReadonlyArray<{
2204
1964
  id: string;
2205
1965
  description: string;
2206
1966
  area: string;
2207
1967
  }>;
2208
- readonly run: (kindId: string, trace: TraceAnalysisStore) => Promise<unknown>;
1968
+ readonly run: (kindId: string, trace: TraceAnalysisStore) => Promise<AnalystLensOutput>;
2209
1969
  }
2210
1970
  /** A trace-analyst result re-entered as a message on the bus (the `finding` event kind). */
2211
1971
  interface AnalystFindingEvent {
@@ -2519,6 +2279,41 @@ interface CoordinationToolsOptions {
2519
2279
  readonly peerMail?: {
2520
2280
  readonly limits?: Partial<PeerMailLimits>;
2521
2281
  };
2282
+ /**
2283
+ * OPT-IN async gate run on every spawn BEFORE an assignment is minted, budget is reserved, or
2284
+ * `Scope.spawn` is called — the one pre-journal point where a network question may be asked.
2285
+ *
2286
+ * `Scope.spawn` and `MakeWorkerAgent` are synchronous, so a check that needs the backend's
2287
+ * answer (does this bridge route the child's wire id; is it already at admission capacity)
2288
+ * cannot live there. Returning a {@link SpawnRefusal} refuses the spawn as a tool result: no
2289
+ * assignment, no reservation, no journal entry, no worker — and the refusal is counted on
2290
+ * {@link CoordinationTools.stats} so a gate that never refuses is visible as such.
2291
+ *
2292
+ * Returning `undefined` admits the spawn. A THROW is not a refusal: it propagates, because a
2293
+ * pre-flight that fails open would hand back exactly the silent admission it exists to stop.
2294
+ */
2295
+ readonly preflightSpawn?: SpawnPreflight;
2296
+ }
2297
+ /** Why a pre-flight refused a spawn. Each cause is a distinct, separately countable decision. */
2298
+ type SpawnRefusalCause = 'model-route' | 'bridge-full' | 'unmountable-tool';
2299
+ /** A pre-flight's refusal: the cause it decided on, and the operator-facing evidence for it. */
2300
+ interface SpawnRefusal {
2301
+ readonly cause: SpawnRefusalCause;
2302
+ /** Names the exact thing that failed — the unrouted wire id, the admission numbers, the tool. */
2303
+ readonly detail: string;
2304
+ }
2305
+ /** What a pre-flight sees: the authored child profile and the spawn it is being asked to admit. */
2306
+ interface SpawnPreflightContext {
2307
+ readonly label: string;
2308
+ readonly key?: string;
2309
+ readonly task: unknown;
2310
+ }
2311
+ /** The gate `CoordinationToolsOptions.preflightSpawn` installs. */
2312
+ type SpawnPreflight = (profile: AgentProfile, context: SpawnPreflightContext) => Promise<SpawnRefusal | undefined>;
2313
+ /** Bus throughput plus the pre-flight's own refusal ledger. */
2314
+ interface CoordinationStats extends BusStats {
2315
+ /** One counter per refusal cause, present only when a pre-flight is installed. */
2316
+ readonly preflight?: Readonly<Record<SpawnRefusalCause, number>>;
2522
2317
  }
2523
2318
  /** Online-detector wiring for spawned workers (`CoordinationToolsOptions.watchWorkers`). */
2524
2319
  interface WorkerWatchOptions {
@@ -2555,8 +2350,11 @@ interface CoordinationTools {
2555
2350
  * instruction receipts, and DOWN delivery outcomes (steer / answer). Each record carries seq,
2556
2351
  * timestamp, and priority. A receipt is evidence and is never auto-delivered on restart. */
2557
2352
  history(): ReadonlyArray<BusRecord<CoordinationEvent>>;
2558
- /** Bus throughput counters (published / pulled / by-kind) for live dashboards. */
2559
- stats(): BusStats;
2353
+ /** Bus throughput counters (published / pulled / by-kind) for live dashboards, plus one
2354
+ * counter per {@link SpawnRefusalCause} the pre-flight refused. `preflight` is present
2355
+ * whenever `preflightSpawn` is installed, with every cause at 0 until one fires — a gate that
2356
+ * never refuses has to be readable as such. */
2357
+ stats(): CoordinationStats;
2560
2358
  /** The run's peer-mail post office, present only when `peerMail` was enabled. The transport
2561
2359
  * layer stands the capability endpoint up over it; the parent reads `history()` for the audit
2562
2360
  * trail and calls `stopThread` to end a peer exchange. */
@@ -4559,12 +4357,37 @@ interface SupervisorNodeContext {
4559
4357
  }
4560
4358
  /** Context known before `Agent.act`; Runtime adds the concrete node, profile, and task. */
4561
4359
  type SupervisorNodeContextSeed = Omit<SupervisorNodeContext, 'nodeId' | 'profile' | 'task'>;
4360
+ /**
4361
+ * The coordination verbs THIS manager serves, callable in code from a product tool handler.
4362
+ *
4363
+ * Each verb dispatches by name to the live coordination descriptor's own handler, so a spawn made
4364
+ * here crosses the identical path the MCP verb crosses: `makeWorkerAgent` → `authorizeSpawn` /
4365
+ * security / `allowedModels`, the conserved pool reservation, `maxLiveWorkers`, the journal, and
4366
+ * the event bus. There is no second spawn path and no way to bypass a gate by calling in code.
4367
+ *
4368
+ * The set is deliberately the COORDINATION surface only. `submit_result`, `stop`, and `ask_parent`
4369
+ * are the manager's own lifecycle verbs — a product tool that could settle the run or answer as
4370
+ * the manager would be a second brain, not a composition surface.
4371
+ *
4372
+ * Arguments and results are the same JSON shapes the MCP tools take and return.
4373
+ */
4374
+ interface CoordinationVerbs {
4375
+ spawnAgent(args: unknown): Promise<unknown>;
4376
+ awaitEvent(args: unknown): Promise<unknown>;
4377
+ steerAgent(args: unknown): Promise<unknown>;
4378
+ observeAgent(args: unknown): Promise<unknown>;
4379
+ listQuestions(args: unknown): Promise<unknown>;
4380
+ answerQuestion(args: unknown): Promise<unknown>;
4381
+ runAnalyst(args: unknown): Promise<unknown>;
4382
+ }
4562
4383
  /** Trusted context for one product-tool invocation. The node identity remains the same detached,
4563
- * immutable snapshot supplied to the resolver; `signal` is the one live control reference Runtime
4564
- * adds. It aborts when this manager's scope is cancelled by the caller, RootHandle, deadline,
4565
- * breaker, or a recursive parent. */
4384
+ * immutable snapshot supplied to the resolver; `signal` and `verbs` are the live control
4385
+ * references Runtime adds. `signal` aborts when this manager's scope is cancelled by the caller,
4386
+ * RootHandle, deadline, breaker, or a recursive parent; `verbs` composes THIS manager's children
4387
+ * in code (see {@link CoordinationVerbs}). */
4566
4388
  interface SupervisorToolInvocationContext extends SupervisorNodeContext {
4567
4389
  readonly signal: AbortSignal;
4390
+ readonly verbs: CoordinationVerbs;
4568
4391
  }
4569
4392
  /** One product-owned tool. It reuses the canonical MCP descriptor fields while Runtime supplies
4570
4393
  * the trusted invocation context as a separate argument and binds the result for either
@@ -4671,15 +4494,21 @@ interface SupervisorAgentDeps {
4671
4494
  * that name to the node's latest settled worker; `spawn_agent`'s per-call `continuity`
4672
4495
  * overrides. Omit = every spawn fresh (status quo). */
4673
4496
  readonly continuityByProfile?: Readonly<Record<string, ContinuityMode>>;
4674
- /** PROGRESS-derived stop rule (router arm). Ends a run that has stopped learning BEFORE it
4675
- * exhausts a ceiling; it can never keep a run alive past one. Build it with `plateau` /
4497
+ /** PROGRESS-derived stop rule (BOTH arms). Ends a run that has stopped learning BEFORE it
4498
+ * exhausts a ceiling; it can never keep a run alive past one. Router arm: evaluated before each
4499
+ * driver inference turn. External arm: evaluated on each worker settle, and a stop aborts
4500
+ * `stopSignal` so the harness ends at its next turn boundary. Build it with `plateau` /
4676
4501
  * `noProgressFor` / `allWorkersStalled` from `supervise/stop-rules` — the thresholds are the
4677
4502
  * caller's judgment. Omit = ceilings only. */
4678
4503
  readonly stopRule?: StopRule;
4679
- /** One-shot notification of WHY a `stopRule` ended the run. */
4504
+ /** One-shot notification of WHY a `stopRule` ended the run (BOTH arms). */
4680
4505
  readonly onProgressStop?: (reason: string) => void;
4506
+ /** Turn cap for the supervisor's own loop. Router arm: driver inference turns (see
4507
+ * `DriverAgentOptions.maxTurns`). External arm: the cap belongs to the harness loop, so
4508
+ * `supervise()` applies it in the drive seam it builds and this field is not read here. */
4681
4509
  readonly maxTurns?: number;
4682
- /** Give the supervisor brain a chapter-lifecycle on its OWN context window (router arm only) — it
4510
+ /** Give the supervisor brain a chapter-lifecycle on its OWN context window (ROUTER ARM ONLY; a
4511
+ * harness-brained supervisor is refused at construction rather than silently ignoring it) — it
4683
4512
  * distills its coordination transcript to a compact progress note once it exceeds the threshold,
4684
4513
  * instead of re-billing the whole thing every turn. See `DriverAgentOptions.compaction`. */
4685
4514
  readonly compaction?: ToolLoopCompactionOptions;
@@ -4701,10 +4530,30 @@ interface SupervisorAgentDeps {
4701
4530
  * unreachable from an off-host harness. A non-loopback host fails closed — see
4702
4531
  * {@link assertCoordinationBinding}. */
4703
4532
  readonly coordination?: CoordinationBinding;
4533
+ /** OPT-IN async gate run before every spawn mints an assignment or reserves budget — the one
4534
+ * pre-journal point that may ask the backend a question (does this bridge route the child's
4535
+ * wire id; is it already at admission capacity). `supervise` derives one automatically for a
4536
+ * bridge backend; see `CoordinationToolsOptions.preflightSpawn`. */
4537
+ readonly preflightSpawn?: SpawnPreflight;
4538
+ /** OPT-IN peer mail (external arm): serve the sibling `send_mail` / `read_mail` post office
4539
+ * beside the coordination MCP and mint each spawn a capability URL on
4540
+ * `WorkerSpawnContext.peerMailUrl`. A router-brained supervisor is refused: it serves no
4541
+ * listener, so there is no post office a worker could reach. */
4542
+ readonly peerMail?: boolean | {
4543
+ limits?: Partial<PeerMailLimits>;
4544
+ };
4704
4545
  /** The durable run directory this manager acknowledges worker-scoped cancel requests from
4705
4546
  * (router arm only — the in-process turn loop is the acknowledger). See
4706
4547
  * `DriverAgentOptions.controlDir`. */
4707
4548
  readonly controlDir?: string;
4549
+ /** Which cancel requests this manager's acknowledger owns: `'run'` (default; the tree root —
4550
+ * its own direct-child node ids plus label/profile-name references) or `'subtree'` (a nested
4551
+ * manager — exact direct-child node ids only). Exactly one manager owns any request, so two
4552
+ * acknowledgers can never apply one operation. See `DriverAgentOptions.controlScope`. */
4553
+ readonly controlScope?: 'run' | 'subtree';
4554
+ /** Abort the whole run — the seam a run-scoped cancel request is applied through (router arm,
4555
+ * `'run'` scope only). See `DriverAgentOptions.abortRun`. */
4556
+ readonly abortRun?: (reason: string) => void;
4708
4557
  }
4709
4558
  /** Test-only dependency shape. It is exported only through the package's explicit `/testing`
4710
4559
  * entry; production supervisor surfaces cannot replace profile-derived model execution. */
@@ -4796,6 +4645,17 @@ interface SuperviseOptions {
4796
4645
  * port on `127.0.0.1`, which an off-host root cannot reach. A non-loopback host is refused
4797
4646
  * unless `allowUnauthenticatedRemote` acknowledges that the verbs are unauthenticated. */
4798
4647
  readonly coordination?: CoordinationBinding;
4648
+ /** OPT-IN peer mail for the run's workers: sibling-to-sibling `send_mail` / `read_mail`, bounded
4649
+ * and audited (`CoordinationToolsOptions.peerMail`). The runtime mints one capability URL per
4650
+ * spawn, serves the mail listener beside the coordination MCP, and hands each worker its
4651
+ * endpoint on {@link WorkerSpawnContext.peerMailUrl}. Mounting that URL into the worker is the
4652
+ * `makeWorkerAgent` owner's job today: the runtime never writes it into a worker profile, since
4653
+ * the fresh random URL would move the canonical profile digest, and bridge workers cannot mount
4654
+ * it out of band until the bridge carries runtime attachments (#774). Requires a harness-brained
4655
+ * supervisor; a router-brained supervisor is refused rather than silently unmailed. */
4656
+ readonly peerMail?: boolean | {
4657
+ limits?: Partial<PeerMailLimits>;
4658
+ };
4799
4659
  /** Override the worker seam directly (tests / advanced) instead of deriving it from `backend`.
4800
4660
  * This is caller-owned execution: profile security, spawn authorization, and recursive-driver
4801
4661
  * selection below apply only to the backend-derived worker path. `authorizeMessage` still
@@ -4881,7 +4741,11 @@ interface SuperviseOptions {
4881
4741
  /** Resolve product-owned tools from the exact trusted manager context. The same descriptors and
4882
4742
  * handlers are bound to router and external-harness managers; resolution happens once per node.
4883
4743
  * Each handler receives that manager scope's live cancellation signal in its trusted invocation
4884
- * context, including recursive parent and root cascades. */
4744
+ * context, including recursive parent and root cascades, plus `context.verbs` — that manager's
4745
+ * own coordination verbs, callable in code so a product tool can COMPOSE its children (fan out,
4746
+ * chain, join, retry) in one tool call instead of one model turn per verb. Every verb crosses
4747
+ * the same authorizeSpawn / security / allowedModels gate, pool reservation, `maxLiveWorkers`
4748
+ * cap, journal, and bus the MCP verb crosses, at every depth and on both arms. */
4885
4749
  readonly resolveSupervisorTools?: ResolveSupervisorTools;
4886
4750
  /** Awaited product transaction hook for every coordination record. `eventId` is stable across a
4887
4751
  * lost acknowledgement and durable restart; the record is not pull-visible until this commits. */
@@ -4968,9 +4832,14 @@ interface SuperviseOptions {
4968
4832
  * `registry.probes`. */
4969
4833
  readonly probes?: WaitProbeRegistry | string;
4970
4834
  /**
4971
- * PROGRESS-derived stop rule (router-brained supervisor). Ends a run that has stopped LEARNING
4972
- * before it exhausts a ceiling — the answer to "a run should end because it is done or stuck,
4973
- * not because it ran out". It composes with the budget guards and can never override one.
4835
+ * PROGRESS-derived stop rule (BOTH arms). Ends a run that has stopped LEARNING before it
4836
+ * exhausts a ceiling — the answer to "a run should end because it is done or stuck, not because
4837
+ * it ran out". It composes with the budget guards and can never override one.
4838
+ *
4839
+ * The evaluation boundary differs by arm because the loop does: a router-brained supervisor is
4840
+ * evaluated before each of its own inference turns; a harness-brained supervisor is evaluated on
4841
+ * each worker settle, and a stop aborts its stop signal so the harness ends at its next turn
4842
+ * boundary. Both arms fold the same settled ledger through the same evaluator.
4974
4843
  *
4975
4844
  * Build it from `supervise/stop-rules`: `plateau({window, minDelta})`,
4976
4845
  * `noProgressFor({ms, settles})`, `allWorkersStalled({...})`, combined with `anyOf`/`allOf`. The
@@ -4978,22 +4847,37 @@ interface SuperviseOptions {
4978
4847
  * only (unchanged behavior).
4979
4848
  */
4980
4849
  readonly stopRule?: StopRule;
4981
- /** One-shot notification of WHY a `stopRule` ended the run — so a caller records the reason
4982
- * instead of inferring an early stop from an unexhausted budget. */
4850
+ /** One-shot notification of WHY a `stopRule` ended the run (BOTH arms) — so a caller records the
4851
+ * reason instead of inferring an early stop from an unexhausted budget. */
4983
4852
  readonly onProgressStop?: (reason: string) => void;
4984
4853
  readonly maxDepth?: number;
4854
+ /** Turn cap for the supervisor's OWN loop (BOTH arms). Router arm: inference turns of the
4855
+ * driver's tool loop. Harness arm: turns the harness reports, counted off its `iteration`
4856
+ * stream — reaching the cap aborts the stop signal, so the harness ends at its next turn
4857
+ * boundary rather than mid-request. `0` lifts the cap on both arms and leaves the conserved
4858
+ * pool, the deadline, and abort as the bounds; a negative value is refused. Omit = the router
4859
+ * arm's default cap, and no turn cap on the harness arm. */
4985
4860
  readonly maxTurns?: number;
4986
- /** Give the supervisor brain a chapter-lifecycle on its OWN context window (router arm only): once
4987
- * its coordination transcript exceeds `thresholdTokens` it distills to a compact progress note and
4988
- * continues, instead of re-billing the whole transcript every turn (the cost that makes the LLM-brain
4989
- * front door lose to a dumb-Ralph respawn). The live `Scope` roster is the durable state across
4990
- * chapters. Default off. `distill` defaults to a brain self-summary + the settled-worker roster. */
4861
+ /** Give the supervisor brain a chapter-lifecycle on its OWN context window (ROUTER ARM ONLY
4862
+ * a harness owns its own context window and its own compaction, so this is refused for a
4863
+ * harness-brained supervisor rather than silently ignored): once its coordination transcript
4864
+ * exceeds `thresholdTokens` it distills to a compact progress note and continues, instead of
4865
+ * re-billing the whole transcript every turn (the cost that makes the LLM-brain front door lose
4866
+ * to a dumb-Ralph respawn). The live `Scope` roster is the durable state across chapters.
4867
+ * Default off. `distill` defaults to a brain self-summary + the settled-worker roster. */
4991
4868
  readonly compaction?: ToolLoopCompactionOptions;
4992
4869
  readonly runId?: string;
4993
4870
  readonly now?: () => number;
4994
4871
  /** Restrict the run to this subset of models. When set, every configured model — the
4995
4872
  * supervisor router model, the profile's model, and the backend's model — must be a member,
4996
- * or `supervise()` throws a `ConfigError` before any compute is spent. Unset = unrestricted. */
4873
+ * or `supervise()` throws a `ConfigError` before any compute is spent. Unset = unrestricted.
4874
+ *
4875
+ * This is a MODEL-ID filter, not a route filter. The compared values are the bare ids a profile
4876
+ * declares — `model.default`, `model.small`, `subagents[].model`, `modes[].model`. The composed
4877
+ * wire id (`harness/provider/model`) is never built here and never compared, so an entry written
4878
+ * in qualified form matches nothing, and a child that names an allowed id is admitted whatever
4879
+ * harness and provider its own profile declares. Pin the route with `authorizeSpawn`: it reads
4880
+ * the authored child profile and may refuse the spawn before any reservation. */
4997
4881
  readonly allowedModels?: readonly string[];
4998
4882
  /** How the settled-worker ledger becomes the run's output. Default `bestDelivered` — the single
4999
4883
  * highest-scoring DELIVERED child (the exact behavior every existing caller had). Alternatives:
@@ -5053,6 +4937,7 @@ declare function supervise(profile: SupervisorProfile, task: unknown, opts: Supe
5053
4937
  downCount: number;
5054
4938
  spentTotal: Spend;
5055
4939
  providerModel?: ProviderModelExecutionEvidence;
4940
+ teardownUnconfirmed?: ReadonlyArray<UnconfirmedTeardown>;
5056
4941
  spendGaps?: ReadonlyArray<SpendGap>;
5057
4942
  error?: never;
5058
4943
  } | {
@@ -5063,6 +4948,7 @@ declare function supervise(profile: SupervisorProfile, task: unknown, opts: Supe
5063
4948
  downCount: number;
5064
4949
  spentTotal: Spend;
5065
4950
  providerModel?: ProviderModelExecutionEvidence;
4951
+ teardownUnconfirmed?: ReadonlyArray<UnconfirmedTeardown>;
5066
4952
  spendGaps?: ReadonlyArray<SpendGap>;
5067
4953
  error: NoWinnerError;
5068
4954
  } | {
@@ -5074,6 +4960,7 @@ declare function supervise(profile: SupervisorProfile, task: unknown, opts: Supe
5074
4960
  tree: TreeView;
5075
4961
  spentTotal: Spend;
5076
4962
  providerModel?: ProviderModelExecutionEvidence;
4963
+ teardownUnconfirmed?: ReadonlyArray<UnconfirmedTeardown>;
5077
4964
  spendGaps?: ReadonlyArray<SpendGap>;
5078
4965
  spentBreakdown?: {
5079
4966
  driverInference: Spend;
@@ -5089,6 +4976,7 @@ declare function superviseWithTestBrain(profile: SupervisorProfile, task: unknow
5089
4976
  downCount: number;
5090
4977
  spentTotal: Spend;
5091
4978
  providerModel?: ProviderModelExecutionEvidence;
4979
+ teardownUnconfirmed?: ReadonlyArray<UnconfirmedTeardown>;
5092
4980
  spendGaps?: ReadonlyArray<SpendGap>;
5093
4981
  error?: never;
5094
4982
  } | {
@@ -5099,6 +4987,7 @@ declare function superviseWithTestBrain(profile: SupervisorProfile, task: unknow
5099
4987
  downCount: number;
5100
4988
  spentTotal: Spend;
5101
4989
  providerModel?: ProviderModelExecutionEvidence;
4990
+ teardownUnconfirmed?: ReadonlyArray<UnconfirmedTeardown>;
5102
4991
  spendGaps?: ReadonlyArray<SpendGap>;
5103
4992
  error: NoWinnerError;
5104
4993
  } | {
@@ -5110,6 +4999,7 @@ declare function superviseWithTestBrain(profile: SupervisorProfile, task: unknow
5110
4999
  tree: TreeView;
5111
5000
  spentTotal: Spend;
5112
5001
  providerModel?: ProviderModelExecutionEvidence;
5002
+ teardownUnconfirmed?: ReadonlyArray<UnconfirmedTeardown>;
5113
5003
  spendGaps?: ReadonlyArray<SpendGap>;
5114
5004
  spentBreakdown?: {
5115
5005
  driverInference: Spend;
@@ -5741,8 +5631,9 @@ declare class InMemoryCorpus implements Corpus {
5741
5631
  * back silently) and folding by `id`: a later identical line dedups, a later conflicting line
5742
5632
  * under the same `id` is a corruption (fail loud). `append` first replays to enforce the same
5743
5633
  * idempotence/conflict contract as the in-mem impl, then fsyncs the new line so a crash between
5744
- * writes never loses an acknowledged fact. Shares the JSONL append-line spine with the spawn
5745
- * journal, but the interface stays separate (a learned fact is not a replay record).
5634
+ * writes never loses an acknowledged fact. Reads and appends over the shared append-only
5635
+ * spine (`durable/jsonl-file`) the same one the spawn journal uses but the interface stays
5636
+ * separate (a learned fact is not a replay record).
5746
5637
  */
5747
5638
  declare class FileCorpus implements Corpus {
5748
5639
  private readonly path;
@@ -5835,7 +5726,12 @@ declare function equalKOnCost(arms: ReadonlyArray<EqualKArm>, options?: EqualKOn
5835
5726
  */
5836
5727
  declare function assertModelAllowed(model: string | undefined, allowed: readonly string[] | undefined): void;
5837
5728
  /** Check every canonical model-bearing field in a complete profile, including the models a
5838
- * backend may select for cheap work, named subagents, or modes. */
5729
+ * backend may select for cheap work, named subagents, or modes.
5730
+ *
5731
+ * Every compared value is a bare model id. The composed `harness/provider/model` wire id
5732
+ * (`profileBridgeWireModel`) is neither built nor compared here, so this admits any route that
5733
+ * declares an allowed id, and a qualified entry in `allowed` matches nothing. Route pinning
5734
+ * belongs to `SuperviseOptions.authorizeSpawn`. */
5839
5735
  declare function assertProfileModelsAllowed(profile: AgentProfile, allowed: readonly string[] | undefined): void;
5840
5736
  //#endregion
5841
5737
  //#region src/runtime/profile-chat-client.d.ts
@@ -5948,54 +5844,6 @@ interface ResolveSandboxClientOptions {
5948
5844
  */
5949
5845
  declare function resolveSandboxClient(opts: ResolveSandboxClientOptions): SandboxClient;
5950
5846
  //#endregion
5951
- //#region src/runtime/retained-interactive-types.d.ts
5952
- /** Environment and exact AgentProfile used to start one native coding-agent process. @stable */
5953
- type RetainedInteractiveEnvironmentInput = Omit<CreateAgentEnvironmentInput, 'idempotencyKey' | 'profile' | 'signal'> & {
5954
- readonly idempotencyKey: string;
5955
- readonly profile: AgentProfile;
5956
- };
5957
- /** Material used to create and start one native coding-agent TUI. @stable */
5958
- interface RetainedInteractiveStartMaterial {
5959
- readonly environment: RetainedInteractiveEnvironmentInput;
5960
- readonly interactiveIdempotencyKey: string;
5961
- readonly initialPrompt?: string;
5962
- readonly cwd?: string;
5963
- readonly cols?: number;
5964
- readonly rows?: number;
5965
- }
5966
- /** Start one retry-safe native coding-agent TUI in a new environment. @stable */
5967
- interface StartRetainedInteractiveRunOptions extends RetainedInteractiveStartMaterial {
5968
- readonly provider: AgentEnvironmentProvider;
5969
- /** A previously persisted intent used to replay the exact create operation. */
5970
- readonly intent?: RetainedInteractiveIntentAdmission;
5971
- readonly onAdmission: RetainedInteractiveAdmissionHook;
5972
- readonly signal?: AbortSignal;
5973
- }
5974
- /** Persist each exact interactive record before the runtime proceeds. @stable */
5975
- type RetainedInteractiveAdmissionHook = (admission: RetainedInteractiveAdmission) => Promise<void>;
5976
- /** Reconstruct one exact provider-owned native coding-agent process. @stable */
5977
- interface ReconnectRetainedInteractiveRunOptions {
5978
- readonly provider: AgentEnvironmentProvider;
5979
- readonly ref: AgentInteractiveSessionRef;
5980
- readonly signal?: AbortSignal;
5981
- }
5982
- /** Recover a start after a pre-create crash or a lost provider response. @stable */
5983
- interface RecoverRetainedInteractiveRunOptions {
5984
- readonly provider: AgentEnvironmentProvider;
5985
- readonly admission: RetainedInteractiveIntentAdmission | RetainedInteractiveEnvironmentAdmission;
5986
- /** Required when recovering from an intent before an environment existed. */
5987
- readonly replay?: RetainedInteractiveStartMaterial;
5988
- readonly onAdmission: RetainedInteractiveAdmissionHook;
5989
- readonly signal?: AbortSignal;
5990
- }
5991
- /** Exact interactive process controls plus measured environment capabilities. @stable */
5992
- interface RetainedInteractiveRunHandle extends AgentInteractiveSession {
5993
- readonly capabilities: AgentEnvironmentCapabilities;
5994
- sendPrompt(command: AgentInteractiveSessionPromptCommand, options?: {
5995
- signal?: AbortSignal;
5996
- }): Promise<AgentInteractiveSessionPromptAcknowledgement>;
5997
- }
5998
- //#endregion
5999
5847
  //#region src/runtime/retained-interactive.d.ts
6000
5848
  /**
6001
5849
  * Start one retry-safe native coding-agent TUI without dispatching a headless turn.
@@ -6142,163 +5990,6 @@ interface CriuCapableClient {
6142
5990
  }>;
6143
5991
  }
6144
5992
  //#endregion
6145
- //#region src/runtime/sandbox-events.d.ts
6146
- /** The provider/model the platform reports it actually bound to a turn, when it reports one.
6147
- * `source` is the platform's own account of where that choice came from — `environment` means
6148
- * the platform chose, not the request. */
6149
- interface SandboxServedBackend {
6150
- readonly provider?: string;
6151
- readonly model?: string;
6152
- readonly source?: string;
6153
- }
6154
- /**
6155
- * Read the served execution identity off one Sandbox event.
6156
- *
6157
- * The platform reports `effectiveBackend` on `execution.started` and again on the terminal
6158
- * event (`@tangle-network/sandbox`, `EffectiveBackend`). Absence returns `undefined`
6159
- * and must stay unknown — a request is not a receipt, so nothing here may be inferred from
6160
- * what was asked for.
6161
- */
6162
- declare function sandboxEventServedBackend(event: SandboxEvent): SandboxServedBackend | undefined;
6163
- /**
6164
- * Fail the execution when the platform reports serving a model other than the exact one asked for.
6165
- *
6166
- * Measured motive (agent-runtime#892, live infrastructure 2026-08-17): 6 of 6 boxes whose profile
6167
- * declared `zai-coding-plan/glm-5.2` reported
6168
- * `{"provider":"openai-compat","model":"deepseek/deepseek-v4-flash","source":"environment"}`,
6169
- * while the materialization receipt recorded the declared model as `status: "known"`. Sending
6170
- * `backend.model` makes that substitution unlikely; only reading the report back makes it
6171
- * detectable. A run that cannot say which model produced its evidence must not settle as one
6172
- * that can.
6173
- *
6174
- * Silent when the platform reports no served model: unobserved stays unobserved.
6175
- */
6176
- declare function assertSandboxServedModel(event: SandboxEvent, expected: {
6177
- readonly provider?: string;
6178
- readonly model?: string;
6179
- } | undefined): void;
6180
- /**
6181
- * Extract a `RuntimeStreamEvent`-shaped `llm_call` from a sandbox event when
6182
- * the event carries usage/cost data. Returns `undefined` for non-cost events
6183
- * so the kernel can iterate the full stream without branching.
6184
- *
6185
- * Pure by contract: it never throws on a failed run. The terminal truth
6186
- * boundary is the public Sandbox outcome tracker, applied after the complete
6187
- * stream. Post-hoc readers — {@link sumSandboxUsage}, the
6188
- * analyst trace store, the chat projection — must stay able to read a failed
6189
- * turn's events, which is when reading them matters most.
6190
- *
6191
- * Canonical cost-carrying types observed in the wild:
6192
- * - `llm_call` — `data: { model, tokensIn, tokensOut, costUsd, ... }`
6193
- * - `message.completed` / `result` — `data: { usage: { inputTokens,
6194
- * outputTokens, totalCostUsd? } }`
6195
- * - `cost.usage` / `usage` — same shape under a dedicated type
6196
- *
6197
- * Numeric coercion is strict: `Number.isFinite` gates every accumulator write
6198
- * so a sentinel `NaN` from a misbehaving backend cannot poison the ledger.
6199
- */
6200
- declare function extractLlmCallEvent(event: SandboxEvent, agentRunName: string): (RuntimeStreamEvent & {
6201
- type: 'llm_call';
6202
- }) | undefined;
6203
- /**
6204
- * Sum the token usage + USD cost of a sandbox turn's events — the one honest way to meter an
6205
- * `openSandboxRun` cell. Folds `extractLlmCallEvent` over the stream (which reads usage off EVERY backend
6206
- * event shape), so a `runProfileMatrix` dispatch can report it to `ctx.cost`:
6207
- *
6208
- * receipt: (turn) => {
6209
- * const u = sumSandboxUsage(turn.events)
6210
- * return { model, inputTokens: u.input, outputTokens: u.output,
6211
- * ...(u.tokensKnown === false ? { usageUnknown: true } : {}),
6212
- * ...(u.usdKnown !== false && u.costUsd > 0 ? { actualCostUsd: u.costUsd } : {}),
6213
- * ...(u.usdKnown === false ? { costUnknown: true } : {}),
6214
- * ...(u.estimatedCostUsd !== undefined ? { estimatedCostUsd: u.estimatedCostUsd } : {}) }
6215
- * }
6216
- *
6217
- * Without this a cell reads `{tokens:0, cost:0}` and the backend-integrity guard correctly aborts the
6218
- * matrix as a stub. `agentRunName` is the fallback model label for cost-only events (default `'agent'`).
6219
- */
6220
- declare function sumSandboxUsage(events: readonly SandboxEvent[], agentRunName?: string): {
6221
- input: number;
6222
- output: number;
6223
- costUsd: number;
6224
- tokensKnown?: false;
6225
- usdKnown?: false;
6226
- estimatedCostUsd?: number;
6227
- };
6228
- /**
6229
- * Cross-event state for {@link mapSandboxToolEvent}. Sandbox backends emit a
6230
- * tool invocation as MANY `message.part.updated` frames on the same call id
6231
- * (pending → running → completed), so faithful projection needs per-call
6232
- * status memory: one `tool_call` on first sighting, at most one `tool_result`
6233
- * on the terminal transition, nothing on intermediate re-frames. Create one
6234
- * state per turn via {@link createSandboxToolPartState}.
6235
- *
6236
- * @experimental
6237
- */
6238
- interface SandboxToolPartState {
6239
- /** Last seen status per tool call id. A terminal status is sticky — later
6240
- * frames on a settled call project to nothing. */
6241
- statusByCall: Map<string, string>;
6242
- /** Sequence for synthesized call ids when an event carries none. */
6243
- seq: number;
6244
- }
6245
- /**
6246
- * Fresh per-turn {@link SandboxToolPartState} for {@link mapSandboxToolEvent} — an
6247
- * empty call-status map so each turn projects tool frames independently.
6248
- *
6249
- * @experimental
6250
- */
6251
- declare function createSandboxToolPartState(): SandboxToolPartState;
6252
- /**
6253
- * Project one `SandboxEvent` onto the `tool_call` / `tool_result` variants of
6254
- * `RuntimeStreamEvent` — the tool-part projection `mapSandboxEvent`
6255
- * deliberately does NOT perform. Opt-in and additive: `mapSandboxEvent`'s
6256
- * default vocabulary (text/reasoning deltas + `llm_call`) is unchanged;
6257
- * consumers that need the tool surface (chat UIs rendering tool activity)
6258
- * compose this projector alongside it — `streamAgentTurn` does exactly that
6259
- * under its `preserveToolParts` option.
6260
- *
6261
- * Handled shapes (observed on the opencode / claude-code sandbox backends):
6262
- * - `message.part.updated` with `part.type === 'tool'` — stateful: a
6263
- * `tool_call` on the call id's first frame (args from `state.input` or
6264
- * `state.metadata.input`), a `tool_result` when the status transitions to
6265
- * `completed` (result from `state.output` / `metadata.output`) or to a
6266
- * terminal failure (result is `{ error, status, output? }` — the error
6267
- * surfaced in-band, never dropped).
6268
- * - bare `tool*` event types (`tool.call`, `tool_result`, …) — stateless:
6269
- * `*result*` types project to `tool_result`, the rest to `tool_call`.
6270
- *
6271
- * Returns `[]` for every non-tool event.
6272
- *
6273
- * @experimental
6274
- */
6275
- declare function mapSandboxToolEvent(event: SandboxEvent, state: SandboxToolPartState): (RuntimeStreamEvent & {
6276
- type: 'tool_call' | 'tool_result';
6277
- })[];
6278
- /**
6279
- * Project one `SandboxEvent` onto the `RuntimeStreamEvent` chat-UX vocabulary,
6280
- * for runtimes that bridge a sandbox `streamPrompt` into the
6281
- * `AgentRuntime.act` streaming contract. Returns `undefined` for events that
6282
- * have no faithful projection — the raw stream is preserved separately for the
6283
- * `OutputAdapter`, so an unmapped event never loses data.
6284
- *
6285
- * Mapped (the task-optional incremental variants — no synthesized task
6286
- * lifecycle, no guessed tool-part shapes):
6287
- * - `message.part.updated` text part → `text_delta`
6288
- * - `message.part.updated` reasoning/thinking part → `reasoning_delta`
6289
- * - cost-bearing events → `llm_call` (shared with the ledger extractor)
6290
- *
6291
- * Tool parts are deliberately NOT mapped here (unchanged default) — compose
6292
- * {@link mapSandboxToolEvent} alongside when a consumer needs them.
6293
- *
6294
- * The opencode backend emits incremental text as
6295
- * `{ type: 'message.part.updated', data: { part: { type, text }, delta } }`;
6296
- * `delta` is the increment, `part.text` the running accumulation.
6297
- */
6298
- declare function mapSandboxEvent(event: SandboxEvent, opts?: {
6299
- agentRunName?: string;
6300
- }): RuntimeStreamEvent | undefined;
6301
- //#endregion
6302
5993
  //#region src/runtime/sandbox-lineage.d.ts
6303
5994
  /**
6304
5995
  * A live box plus the session that threads its iterations together. Handed back
@@ -7320,6 +7011,9 @@ interface DriverAgentOptions {
7320
7011
  * `CoordinationToolsOptions.continuityByProfile`); `spawn_agent`'s per-call `continuity`
7321
7012
  * argument overrides. Omit = every spawn fresh (status quo). */
7322
7013
  readonly continuityByProfile?: Readonly<Record<string, ContinuityMode>>;
7014
+ /** OPT-IN async gate run before every spawn mints an assignment or reserves budget. See
7015
+ * `CoordinationToolsOptions.preflightSpawn`. */
7016
+ readonly preflightSpawn?: SpawnPreflight;
7323
7017
  /** The driver's stance — a string, or built from the task (the worker-driver prompt /
7324
7018
  * the generator). INJECTED so the prompt is a pluggable, optimizable role. */
7325
7019
  readonly systemPrompt: string | ((task: unknown) => string);
@@ -7399,10 +7093,35 @@ interface DriverAgentOptions {
7399
7093
  * writes the durable {@link WorkerCancellation} acknowledgement: `cancel_requested` when the
7400
7094
  * abort is issued, `cancelled` only when the worker reaches a terminal `down` on the settle
7401
7095
  * path, `not_live` when the worker is already gone — a missing worker never reads as success.
7402
- * A request naming a deeper descendant stays unanswered (cancel its lead instead). Omit = no
7403
- * acknowledger (in-memory runs keep in-process control via handles).
7096
+ * Which requests this driver OWNS is set by {@link controlScope}. Omit = no acknowledger
7097
+ * (in-memory runs keep in-process control via handles).
7404
7098
  */
7405
7099
  readonly controlDir?: string;
7100
+ /**
7101
+ * Which cancel requests this driver's acknowledger owns when `controlDir` is set.
7102
+ *
7103
+ * `'run'` (the default, and the tree root's role): exact node ids of its OWN direct children,
7104
+ * plus every label/profile-name reference. `'subtree'` (a nested manager): exact direct-child
7105
+ * node ids ONLY — never labels or profile names, which can match workers under more than one
7106
+ * manager. Ownership makes each operation appliable by exactly ONE manager, so two acknowledgers
7107
+ * sharing one `controlDir` can never abort two workers for one operation or race on the
7108
+ * acknowledgement file. At the end of `act`, the owner writes an expiry record for each owned
7109
+ * request still open: `not_live` for one never applied, `unknown` for an abort whose settle the
7110
+ * run ended too soon to observe — so a reader can tell run-over from in-progress.
7111
+ */
7112
+ /** Called with this driver's coordination tool descriptors once they exist and before the brain
7113
+ * loop starts — the seam a node tool uses to call the same verbs in code
7114
+ * (`SupervisorToolInvocationContext.verbs`). */
7115
+ readonly onCoordinationTools?: (tools: ReadonlyArray<McpToolDescriptor$1>) => void;
7116
+ readonly controlScope?: 'run' | 'subtree';
7117
+ /**
7118
+ * Abort the WHOLE run — the seam a run-scoped cancel request (`cancelRun`) is applied through.
7119
+ * Wired by `supervise()` to the run's ONE cascade controller (the attached root control), so a
7120
+ * run cancel takes the same path a caller's `RootHandle.abort` takes; there is no second
7121
+ * controller and no poller. Read only by the `'run'`-scoped manager with a `controlDir`; omit
7122
+ * and a run-scoped request stays unanswered.
7123
+ */
7124
+ readonly abortRun?: (reason: string) => void;
7406
7125
  }
7407
7126
  /**
7408
7127
  * Build the intelligent recursive driver. Its `act` is the LLM tool-loop; spawn it as a
@@ -7517,6 +7236,14 @@ declare function serveCoordinationMcp(opts: {
7517
7236
  peerMail?: boolean | {
7518
7237
  limits?: Partial<PeerMailLimits>;
7519
7238
  };
7239
+ /** OPT-IN async gate run before every spawn mints an assignment or reserves budget — the one
7240
+ * pre-journal point that may ask the backend a question. See
7241
+ * `CoordinationToolsOptions.preflightSpawn`. */
7242
+ preflightSpawn?: SpawnPreflight;
7243
+ /** Called with this server's coordination tool descriptors once they exist and BEFORE the
7244
+ * listener opens — the seam a caller uses to give an already-bound node tool a way to call the
7245
+ * same verbs in code (`SupervisorToolInvocationContext.verbs`). */
7246
+ onCoordinationTools?: (tools: ReadonlyArray<McpToolDescriptor$1>) => void;
7520
7247
  }): Promise<CoordinationMcpHandle>;
7521
7248
  //#endregion
7522
7249
  //#region src/runtime/supervise/delegate.d.ts
@@ -8097,7 +7824,9 @@ interface WorkerCancelRequest {
8097
7824
  readonly at: string;
8098
7825
  /** Who asked — 'human', a brain label, a tool name. Provenance, not authorization. */
8099
7826
  readonly source: string;
8100
- /** The worker the request targets: a workerId (node id), a profile name, or a spawn label. */
7827
+ /** The worker the request targets: a workerId (node id routed to the owning manager at any
7828
+ * depth), or a profile name or spawn label (resolved by the root manager against its direct
7829
+ * children only). */
8101
7830
  readonly worker: string;
8102
7831
  readonly reason?: string;
8103
7832
  }
@@ -8108,11 +7837,18 @@ interface WorkerCancelRequest {
8108
7837
  * `effect` reuses the retained-run vocabulary ({@link RetainedRunEffect}) so the runtime has one
8109
7838
  * spelling of the four cancellation states:
8110
7839
  * - `'unknown'` — not yet resolved by the runtime (also what `cancelWorker` returns for
8111
- * a request no acknowledger has answered). Never a success.
7840
+ * a request no acknowledger has answered), or terminally, with the
7841
+ * run-over detail — an abort was issued but the run ended before the
7842
+ * termination could be observed. Never a success.
8112
7843
  * - `'cancel_requested'` — the runtime issued the worker's abort; termination not yet proven.
8113
7844
  * - `'cancelled'` — the worker reached a terminal `down` state on the settle path.
8114
- * - `'not_live'` — the worker was not live to cancel (already settled, or it settled
8115
- * `done` despite the abort). Never a success of THIS operation.
7845
+ * - `'not_live'` — the worker was not live to cancel (already settled, it settled
7846
+ * `done` despite the abort, or the run ended before the request was
7847
+ * ever applied). Never a success of THIS operation.
7848
+ *
7849
+ * Expiry is run end: the owning manager's final pass closes every still-open request it owns
7850
+ * (`not_live` never applied, `unknown` issued-but-unproven), so a pending request cannot outlive
7851
+ * its run and abort a future spawn that happens to reuse a label.
8116
7852
  */
8117
7853
  interface WorkerCancellation {
8118
7854
  readonly operationId: string;
@@ -8131,12 +7867,53 @@ interface WorkerCancellation {
8131
7867
  readonly detail?: string;
8132
7868
  /**
8133
7869
  * Every node id this operation PROVED terminated: the requested worker plus each descendant of
8134
- * its subtree observed to reach a terminal `down`/`cancelled` journal record at or after
8135
- * `requestedAt` (a cancelled lead cascades to its subtree by design — the scope signal chain —
8136
- * so the acknowledgement names the set, not one id). Empty until termination is proven.
7870
+ * its subtree observed to reach a terminal `down`/`cancelled` journal record at or after the
7871
+ * abort was ISSUED the acknowledger's own `observedAt` on the `cancel_requested` record
7872
+ * (runtime clock), never the client's `requestedAt` (a cancelled lead cascades to its subtree
7873
+ * by design — the scope signal chain — so the acknowledgement names the set, not one id).
7874
+ * Proven at acknowledgement time; post-abort causation is approximate: a descendant that died
7875
+ * of its own cause after the abort is indistinguishable from the cascade and may be included,
7876
+ * a late teardown journal joins the set on a later pass while the manager still runs, and one
7877
+ * still absent at run end is absent from the set. Grows monotonically; empty until termination
7878
+ * is proven.
8137
7879
  */
8138
7880
  readonly terminated: ReadonlyArray<string>;
8139
7881
  }
7882
+ /** One durable run-scoped cancel request: cancel the WHOLE run, not one worker. */
7883
+ interface RunCancelRequest {
7884
+ /** Caller-minted stable operation identifier — the idempotency key of the whole operation. */
7885
+ readonly operationId: string;
7886
+ /** ISO timestamp of the write. */
7887
+ readonly at: string;
7888
+ /** Who asked — 'human', a brain label, a tool name. Provenance, not authorization. */
7889
+ readonly source: string;
7890
+ readonly reason?: string;
7891
+ }
7892
+ /**
7893
+ * The durable acknowledgement state for the run-scoped cancel operation, keyed by `operationId`.
7894
+ * The runtime is the ONLY writer; {@link cancelRun} only reads it.
7895
+ *
7896
+ * `effect` is the same {@link RetainedRunEffect} vocabulary the worker-scoped and retained-run
7897
+ * paths use, so the runtime has one spelling of the four cancellation states:
7898
+ * - `'unknown'` — no runtime has answered yet. Never a success.
7899
+ * - `'cancel_requested'` — the root manager issued the run's cascading abort; the run's terminal
7900
+ * state is not yet observed.
7901
+ * - `'cancelled'` — the run reached its terminal state ABORTED after that request.
7902
+ * - `'not_live'` — the run was not live to cancel: it settled on its own despite the
7903
+ * request, or it ended before the request was applied.
7904
+ */
7905
+ interface RunCancellation {
7906
+ readonly operationId: string;
7907
+ readonly effect: RetainedRunEffect;
7908
+ /** ISO timestamp of the original request. */
7909
+ readonly requestedAt: string;
7910
+ /** ISO timestamp of the runtime's most recent observation of this operation. */
7911
+ readonly observedAt: string;
7912
+ /** The caller's reason, carried verbatim from the request. */
7913
+ readonly reason?: string;
7914
+ /** The runtime's explanation of how it arrived at `effect`. */
7915
+ readonly detail?: string;
7916
+ }
8140
7917
  /** The root every supervisor run of one workspace lives under. */
8141
7918
  declare function supervisorRunsRoot(rootDir: string): string;
8142
7919
  /** The run directory every artifact of one supervisor run lives under. */
@@ -8202,9 +7979,10 @@ declare function readWorkerCancellation(eventDir: string, operationId: string):
8202
7979
  * durable state.
8203
7980
  *
8204
7981
  * The write half of the acknowledged-cancellation contract (`writeWorkerSteer` is the steer
8205
- * analog): append the request to the run's cancellation inbox, where the runtime's acknowledger
8206
- * (the coordination driver's turn loop) applies it aborting exactly that worker's subtree and
8207
- * recording what it proved. This function never applies the cancellation itself; writing a
7982
+ * analog): append the request to the run's cancellation inbox, where the OWNING manager's
7983
+ * acknowledger (its turn loop the root for label/profile references, the parent manager for an
7984
+ * exact node id at any depth) applies it aborting exactly that worker's subtree and recording
7985
+ * what it proved. This function never applies the cancellation itself; writing a
8208
7986
  * request file is not an acknowledgement.
8209
7987
  *
8210
7988
  * Idempotency is a lookup: when an acknowledgement for `operationId` already exists, it is
@@ -8217,6 +7995,39 @@ declare function cancelWorker(eventDir: string, worker: string, operationId: str
8217
7995
  readonly reason?: string;
8218
7996
  readonly source?: string;
8219
7997
  }): WorkerCancellation;
7998
+ /** The run-scoped cancel request file of one run — one {@link RunCancelRequest}. */
7999
+ declare function runCancelRequestFile(eventDir: string): string;
8000
+ /** The run-scoped acknowledgement file of one run — one {@link RunCancellation}. */
8001
+ declare function runCancellationFile(eventDir: string): string;
8002
+ /** Read the run-scoped cancel request, or `undefined` when none was written. */
8003
+ declare function readRunCancelRequest(eventDir: string): RunCancelRequest | undefined;
8004
+ /**
8005
+ * Read the acknowledgement for the run-scoped cancel operation. `undefined` when the runtime has
8006
+ * not answered. A record holding a DIFFERENT `operationId` belongs to another operation on the
8007
+ * same run — fail loud rather than answer for it.
8008
+ */
8009
+ declare function readRunCancellation(eventDir: string, operationId: string): RunCancellation | undefined;
8010
+ /**
8011
+ * Request the cancellation of the WHOLE run, idempotently, and return the operation's current
8012
+ * durable state.
8013
+ *
8014
+ * The run-scoped twin of {@link cancelWorker}: write the request into the run's cancellation
8015
+ * directory, where the run's own root manager applies it — aborting the root through the one
8016
+ * cascade controller the run already has, so every live worker comes down with it. This function
8017
+ * never applies the cancellation itself; writing a request file is not an acknowledgement.
8018
+ *
8019
+ * Idempotency is a lookup: when an acknowledgement for `operationId` already exists it is returned
8020
+ * AS-IS and nothing is written. A request the runtime has not answered yet returns
8021
+ * `effect: 'unknown'` (never a success); call again with the same `operationId` — or
8022
+ * {@link readRunCancellation} — to read the acknowledged result after a reconnect.
8023
+ *
8024
+ * A run carries ONE run-scoped operation: a second request under a different `operationId` throws
8025
+ * rather than silently replacing the pending one, because both would claim the same single abort.
8026
+ */
8027
+ declare function cancelRun(eventDir: string, operationId: string, options?: {
8028
+ readonly reason?: string;
8029
+ readonly source?: string;
8030
+ }): RunCancellation;
8220
8031
  //#endregion
8221
8032
  //#region src/runtime/supervise/scope.d.ts
8222
8033
  /** Construction args for `createScope`. The supervisor threads the shared pool, journal,
@@ -8586,6 +8397,32 @@ interface SurfaceWorkerOut {
8586
8397
  readonly summary: string;
8587
8398
  readonly failing?: readonly string[];
8588
8399
  }
8400
+ /**
8401
+ * Adapt an `agent-eval` `AnalystRegistry` into the lens shape `supervise({ analysts })` takes.
8402
+ *
8403
+ * The two registries were never structurally compatible: eval's class exposes `list()` and
8404
+ * `run(runId, inputs, opts)` and returns an `AnalystRunResult`, while `supervise` wants `kinds`
8405
+ * and `run(kindId, trace)`. So `'kinds' in buildDefaultAnalystRegistry()` is `false` and the five
8406
+ * calibrated lenses in `DEFAULT_TRACE_ANALYST_KINDS` were unreachable from any supervised run —
8407
+ * every consumer hand-rolled a lens instead (#630).
8408
+ *
8409
+ * The adapter lives HERE, not in eval, for one reason: eval must never import runtime, and runtime
8410
+ * already owns both shapes — it consumes `AnalystFinding` / `AnalystRunResult` from eval for its
8411
+ * analyst loop and defines the supervise lens itself. Writing it in eval would mean eval declaring
8412
+ * a duck-typed copy of a type this package already exports.
8413
+ *
8414
+ * `kinds` is the DEFINITION list, not `registry.list()`, because `Analyst` carries no `area` while
8415
+ * `TraceAnalystDefinition` does — `list()` cannot supply the field the lens shape requires. Every
8416
+ * id must be registered: an unknown kind throws at adapt time rather than returning nothing at run
8417
+ * time, when the driver would read the silence as "no findings".
8418
+ */
8419
+ declare function analystsFromRegistry(registry: AnalystRegistryLike, kinds?: ReadonlyArray<{
8420
+ id: string;
8421
+ description: string;
8422
+ area: string;
8423
+ }>, opts?: {
8424
+ runOpts?: RegistryRunOpts;
8425
+ }): AnalystRegistry;
8589
8426
  /** The default self-improvement LENS — authored content, not a code path. On each settled worker it hands
8590
8427
  * the driver the still-FAILING tests (not just a score), so the next spawn targets the persistently-hard
8591
8428
  * cases. Swap `analysts` to change what the driver improves from — that's the one knob. */
@@ -8772,5 +8609,5 @@ interface VerifierEnvironmentOptions {
8772
8609
  /** 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. */
8773
8610
  declare function createVerifierEnvironment(opts: VerifierEnvironmentOptions): Environment;
8774
8611
  //#endregion
8775
- export { captureWorkerTraceEvidence as $, sample as $a, LeaderboardScore as $c, DelegationTraceCaps as $d, BusStats as $f, definePersona as $i, DEFAULT_AWAIT_EVENT_TIMEOUT_MS as $l, CheckSource as $n, allWorkersStalled as $o, SandboxRunAbortError as $r, EqualKOnCost as $s, analyzesFindingsReportPrompt as $t, DetachedSessionRefParts as $u, NOTE_MAX_CHARS as A, runBenchmark as Aa, WidenLineage as Ac, DelegateUiAuditConfig as Ad, RecoverRetainedRunResult as Af, recoverRetainedInteractiveRun as Ai, defaultAuditorInstruction as Al, ChatWorkerSeamOptions as An, SupervisorNodeContextSeed as Ao, KnownAgentProfileMaterializationAxis as Ap, discriminatingMeans as Ar, LocalSandboxClientOptions as As, createFileRunContext as At, createDelegateHandler as Au, GitWorkspaceOptions as B, Strategy as Ba, RunPersonified as Bc, DelegationResultPayload as Bd, RetainedRunEffect as Bf, resolveSandboxClient as Bi, WaterfallReport as Bl, spendFromUsageEvents as Bn, CoordinationOwnerId as Bo, promptModelProfileMaterialization as Bp, LocalMcpMaterialization as Br, harvestCorpus as Bs, GraphEdge as Bt, DetachedSessionDelegateOptions as Bu, SurfaceWorkerOut as C, BenchmarkConfig as Ca, TrajectoryReport as Cc, DelegateCodeResult as Cd, RuntimeRunStateError as Cf, reconnectRetainedRun as Ci, renderLeaderboardMarkdown as Cl, DriverAgentOptions as Cn, ObserveSupervisorNodeEvent as Co, replaySpawnTree as Cp, EvolutionAuthor as Cr, classifyDriverFailure as Cs, workerControlLogFile as Ct, DELEGATE_DESCRIPTION as Cu, WorktreeFanoutOptions as D, BenchmarkTaskRow as Da, VerifySpec as Dc, DelegateResearchConfig as Dd, ReconnectRetainedRunOptions as Df, ClaimRetainedInteractiveControlOptions as Di, AuditIntentOptions as Dl, ChatSessionStore as Dn, SupervisorAgentDeps as Do, AssertProfileMaterializationOptions as Dp, EvolutionReport as Dr, defaultSelectWinner as Ds, InMemoryRunContext as Dt, DelegateError as Du, AuthoredHarness as E, BenchmarkStrategySummary as Ea, Verify as Ec, DelegateResearchArgs as Ed, NativeContextContinuationInput as Ef, startRetainedRunInEnvironment as Ei, AuditIntentInput as El, ChatCompletionsTransport as En, ResolvedSupervisorProfile as Eo, AgentProfileMaterializationAxis as Ep, EvolutionGeneration as Er, TerminalDecision as Es, writeWorkerSteer as Et, DelegateArgs as Eu, settledWorkerOut as F, AgenticTool as Fa, LoopShape as Fc, DelegationHistoryArgs as Fd, RetainedRunAdmission as Ff, RetainedInteractiveEnvironmentInput as Fi, areaUnderCurve as Fl, BudgetPoolRestore as Fn, resolveSupervisorProfile as Fo, controlProfileMaterialization as Fp, AuthoredStrategy as Fr, InProcessSandboxClientOptions as Fs, WorktreePatchArtifact as Ft, eventToSnapshot as Fu, gitWorkspace as G, StrategyShotResult as Ga, DefinedLeaderboard as Gc, FeedbackRefersTo as Gd, RetainedRunReplayPoint as Gf, profileOptimizerModelCall as Gi, AnalyzeOnSettleRoute as Gl, assessAuthoredProfile as Gn, PlateauOptions as Go, validateProfileMaterialization as Gp, StdioMcpServerSpec as Gr, observe as Gs, RunGraphTestOptions as Gt, detachedSessionDelegate as Gu, Workspace as H, StrategyCtx as Ha, ShapeBudget as Hc, DelegationStatusArgs as Hd, RetainedRunEventOptions as Hf, PromotionVerdict as Hi, createWaterfallCollector as Hl, ProfileRichness as Hn, PriorCoordination as Ho, promptResourceProfileMaterialization as Hp, McpSpawnFault as Hr, ObserveInput as Hs, GraphNode as Ht, SettleDetachedCoderTurnOptions as Hu, CopyOptions as I, ArtifactHandle as Ia, Outcome as Ic, DelegationHistoryEntry as Id, RetainedRunAdmissionHook as If, RetainedInteractiveRunHandle as Ii, bestSoFar as Il, BudgetReadout as In, supervisorAgent as Io, defineProfileMaterializationContract as Ip, assertStrategyContract as Ir, inProcessSandboxClient as Is, createWorktreeCliExecutor as It, CoderDelegate as Iu, runInWorkspace as J, breadthStrategy as Ja, LeaderboardBenchmarkAdapter as Jc, UiAuditLensFilter as Jd, StartRetainedRunInEnvironmentOptions as Jf, equalKOnCost as Ji, ContinuationInstruction as Jl, supervisorInstructions as Jn, ProgressTrackerOptions as Jo, Deliverable as Jr, CombinatorShape as Js, runGraph as Jt, FleetHandle as Ju, jjWorkspace as K, SurfaceScore as Ka, LeaderboardBenchScore as Kc, ResearchOutputShape as Kd, RetainedRunSnapshot as Kf, assertModelAllowed as Ki, AuthorizeDownMessage as Kl, defaultProfileRichnessThresholds as Kn, ProgressSample as Ko, worktreeCliProfileMaterialization as Kp, connectStdioMcp as Kr, renderReport as Ks, TraversalContinuity as Kt, settleDetachedCoderTurn as Ku, UntrackedCopyStats as L, CorpusReadbackOptions as La, Persona as Lc, DelegationHistoryResult as Ld, RetainedRunCancelOptions as Lf, RetainedInteractiveStartMaterial as Li, plateauLength as Ll, ReservationRejection as Ln, supervisorAgentWithTestBrain as Lo, fullProfileMaterialization as Lp, authorStrategy as Lr, HarvestCorpusOptions as Ls, AgentGraph as Lt, CoderReview as Lu, WorkerEvidenceInput as M, AgenticRunResult as Ma, WinnerStrategy as Mc, DelegateUiAuditRoute as Md, RetainedInteractiveEnvironmentAdmission as Mf, ReconnectRetainedInteractiveRunOptions as Mi, AnytimeStrategySummary as Ml, chatWorkerSeam as Mn, SupervisorToolDescriptor as Mo, ProfileMaterializationIssue as Mp, runStrategyEvolution as Mr, inlineSandboxClient as Ms, PatchDeliverableOptions as Mt, FeedbackEvent as Mu, closingWorkerNote as N, AgenticSurface as Na, DefinePersona as Nc, DelegationError as Nd, RetainedInteractiveIntentAdmission as Nf, RecoverRetainedInteractiveRunOptions as Ni, AnytimeTaskCurve as Nl, createChatSessionStore as Nn, SupervisorToolInvocationContext as No, ValidateProfileMaterializationOptions as Np, selectChampion as Nr, InProcessOnPrompt as Ns, patchDelivered as Nt, FeedbackStore as Nu, worktreeFanout as O, Environment as Oa, Widen as Oc, DelegateResearchResult as Od, RecoverRetainedRunIntentOptions as Of, claimRetainedInteractiveControl as Oi, IntentAudit as Ol, ChatTransportExecutorOptions as On, SupervisorAgentTestDeps as Oo, CanonicalAgentProfileMaterializationAxis as Op, ReproductionCheck as Or, isTerminalDecision as Os, InMemoryRunContextOptions as Ot, DelegateHandlerOptions as Ou, composeWorkerEvidence as P, AgenticTask as Pa, DefinePersonaInput as Pc, DelegationFeedbackSnapshot as Pd, RetainedInteractiveStartedAdmission as Pf, RetainedInteractiveAdmissionHook as Pi, anytimeReport as Pl, BudgetPool as Pn, assertCoordinationBinding as Po, assertProfileMaterialization as Pp, AuthorStrategyOptions as Pr, InProcessPromptCtx as Ps, WorktreeCliExecutorOptions as Pt, InMemoryFeedbackStore as Pu, WorkerToolTraceArtifact as Q, runAgentic as Qa, LeaderboardScenario as Qc, DELEGATION_TRACE_MAX_SPANS as Qd, BusRecord as Qf, registerShape as Qi, CoordinationToolsOptions as Ql, CheckRunner as Qn, allOf as Qo, SandboxRun as Qr, EqualKArm as Qs, RegisteredPrompt as Qt, createSiblingSandboxExecutor as Qu, copyUntrackedIntoClone as R, RunAgenticOptions as Ra, PersonaContext as Rc, DelegationProfile as Rd, RetainedRunCancellation as Rf, StartRetainedInteractiveRunOptions as Ri, renderAnytimeTable as Rl, ReservationTicket as Rn, CoordinationDeliveryEvidence as Ro, profileMaterializationAxes$1 as Rp, strategyAuthorContract as Rr, HarvestFailure as Rs, EdgeDeliveryOutcome as Rt, CoderReviewer as Ru, SurfaceWorkerConfig as S, BenchmarkCell as Sa, TrajectoryNode as Sc, DelegateCodeConfig as Sd, RetainedRunDispatchBindingError as Sf, acquireSandbox as Si, renderLeaderboardHtml as Sl, serveCoordinationMcp as Sn, DriveHarnessOwnerContext as So, pendingWaits as Sp, EvolutionArchiveNode as Sr, DriverRetryPolicy as Ss, workerCancellationsDir as St, createMcpServer as Su, superviseSurface as T, BenchmarkReport as Ta, TrajectoryReportOptions as Tc, DelegateFeedbackResult as Td, NativeContextContinuationExecution as Tf, startRetainedRun as Ti, renderPairwiseMarkdown as Tl, finalizeBestDelivered as Tn, ResolveSupervisorTools as To, AGENT_PROFILE_MATERIALIZATION_AXES as Tp, EvolutionCandidate as Tr, TERMINAL_DECISIONS as Ts, workerInboxFileFromEventDir as Tt, DELEGATE_TOOL_NAME as Tu, WorkspaceCommit as U, StrategyMessage as Ua, ShapeContext as Uc, DelegationStatusResult as Ud, RetainedRunHandle as Uf, promotionGate as Ui, AnalystFindingEvent as Ul, ProfileRichnessThresholds as Un, AllWorkersStalledOptions as Uo, renderProfileMaterializationIssues as Up, McpToolDescriptor as Ur, ObserveOptions as Us, GraphResult as Ut, UiAuditorDelegate as Uu, Shell as V, StrategyArtifacts as Va, RunPersonifiedOptions as Vc, DelegationStatus as Vd, RetainedRunEnvironmentAdmission as Vf, PromotionGateOptions as Vi, WaterfallSpan as Vl, AuthoredProfile as Vn, FileCoordinationLog as Vo, promptOnlyProfileMaterialization as Vp, MaterializeLocalMcpOptions as Vr, Observation as Vs, GraphEdgeCapError as Vt, DetachedWinnerSelection as Vu, WorkspaceRun as W, StrategyResult as Wa, ShapeRegistry as Wc, FeedbackRating as Wd, RetainedRunIntentAdmission as Wf, profileChatClient as Wi, AnalystRegistry as Wl, asAuthoredProfile as Wn, NoProgressForOptions as Wo, sandboxActProfileMaterialization as Wp, StdioMcpConnection as Wr, defaultAnalystInstruction as Ws, RunGraphOptions as Wt, coderTaskFromArgs as Wu, analyzeTrace as X, depthStrategy as Xa, LeaderboardIterationInfo as Xc, CappedDelegationTrace as Xd, CoderOutput as Xf, builtinShapes as Xi, CoordinationEvent as Xl, CheckOutcome as Xn, StopDecision as Xo, OpenSandboxRunOptions as Xr, CorpusFilter as Xs, PromptHandle as Xt, SiblingSandboxExecutorOptions as Xu, TrajectoryAnalysis as Y, defineStrategy as Ya, LeaderboardFlagSpec as Yc, UiAuditorDelegationOutput as Yd, StartRetainedRunOptions as Yf, trajectoryReport as Yi, ContinuityMode as Yl, CheckExecChannel as Yn, ProgressView as Yo, OpenSandboxRunBeforeStartContext as Yr, Corpus as Ys, runGraphWithTestBrain as Yt, FleetWorkspaceExecutorOptions as Yu, WORKER_TOOL_TRACE_SCHEMA_VERSION as Z, refine as Za, LeaderboardRunContext as Zc, DELEGATION_TRACE_MAX_BYTES as Zd, BusEvent as Zf, createShapeRegistry as Zi, CoordinationTools as Zl, CheckRunContext as Zn, StopRule as Zo, OpenSandboxRunPromptOptions as Zr, CorpusRecord as Zs, PromptRegistry as Zt, createFleetWorkspaceExecutor as Zu, boxSurfaceReader as _, registryScopeAnalyst as _a, RenderCorpusToInstructionsOptions as _c, DelegationTaskQueueOptions as _d, NotFoundError as _f, sumSandboxUsage as _i, PairwiseVerdict as _l, rollingDispatch as _n, supervise as _o, SpawnForestMissingTree as _p, selectBestIndex as _r, runFinalizer as _s, supervisorRunDir as _t, createCoordinationTools as _u, SandboxInstance$1 as a, flatWidenGate as aa, FanoutWinnerSelector as ac, createDetachedTurnResumeDriver as ad, createDelegationTraceCollector as af, SandboxLineage as ai, CompletionVerdict as al, kernelPromptRegistry as an, SuperviseOptionsForDispatch as ao, watchTrace as ap, StructuralRolloutResult as ar, SupervisorSpanAttributes as as, createScope as at, Question as au, SuperviseSurfaceOptions as b, createMcpEnvironment as ba, ScopeWidenGate as bc, hashIdempotencyInput as bd, RetainedInteractiveBindingError as bf, probeSandboxCapabilities as bi, leaderboard as bl, delegate as bn, CoordinationBinding as bo, loadSpawnForest as bp, ChampionPick as br, DriverAttemptsExhaustedError as bs, workerCancelRequestsFile as bt, McpServerOptions as bu, VerifierEnvironmentOptions as c, pipeline as ca, LoopUntilSpec as cc, parseDetachedSessionRef as cd, DelegationStore as cf, createSandboxLineage as ci, sentinelCompletion as cl, supervisorPolicyPrompt as cn, superviseDispatch as co, gateOnDeliverable as cp, compareCheckOutcomes as cr, SupervisorSpanRecorder as cs, WorkerCancellation as ct, QuestionOption as cu, HarvestSurfaceDiffsOptions as d, widen as da, PanelJudge as dc, DelegationRecord as dd, InMemoryDelegationStore as df, assertSandboxServedModel as di, GroupOf as dl, DispatchStopReason as dn, DEFAULT_AUTHORED_PROFILE_SECURITY_POLICY as do, FileSpawnJournal as dp, defaultStructuralRolloutPolicy as dr, FinalizeContext as ds, legacySupervisorRunDir as dt, QuestionUrgency as du, runPersonified as ea, EqualKOnCostOptions as ec, DetachedTurn as ed, DelegationTraceCollector as ef, TurnResult as ei, LeaderboardSpec as el, createPromptRegistry as en, sampleThenRefine as eo, EventBus as ep, CheckSourceCtx as er, anyOf as es, parseWorkerToolTraceArtifact as et, DownMessageAuthorizationInput as eu, SurfaceDiff as f, CreateScopeAnalystOptions as fa, PanelSpec as fc, DelegationResumeContext as fd, AgentEvalError$1 as ff, createSandboxToolPartState as fi, Interval as fl, DispatchUnit as fn, DeliverableResolutionInput as fo, InMemoryResultBlobStore as fp, filterAuthoredAsserts as fr, FinalizerSettled as fs, legacySupervisorRunsRoot as ft, SettledWorker as fu, WatchedSurface as g, createScopeAnalyst as ga, RenderCorpusToInstructions as gc, DelegationTaskQueue as gd, JudgeError as gf, sandboxEventServedBackend as gi, PairwiseOptions as gl, queueOf as gn, SuperviseTestOptions as go, SpawnForestInDoubtNode as gp, sandboxCheckRunner as gr, pickBestDelivered as gs, safeWorkerFile as gt, canonicalFindingEvent as gu, SurfaceReader as h, buildSteerContext as ha, PipelineStage as hc, DelegationRunContext as hd, ConfigError as hf, mapSandboxToolEvent as hi, LeaderboardRow as hl, freeSlots as hn, SuperviseRegistryTable as ho, SpawnForestEvent as hp, resolveEntrySymbol as hr, collectDelivered as hs, readWorkerSteerRequests as ht, WorkerWatchOptions as hu, SandboxEvent$1 as i, fanout as ia, FanoutSynthesis as ic, RunDetachedTurnOptions as id, composeLoopTraceEmitters as if, ForkCapableBox as ii, CompletionPolicy as il, formatPromptHandle as in, SuperviseDispatchOptions as io, defaultToolDetectors as ip, StructuralRolloutPolicy as ir, sampleFromSettled as is, ScopeArgs as it, MakeWorkerAgent as iu, VERIFY_TAIL_CHARS as j, AgenticOptions as ja, WidenSpec as jc, DelegateUiAuditResult as jd, RetainedInteractiveAdmission as jf, startRetainedInteractiveRun as ji, AnytimeReport as jl, chatTransportExecutor as jn, SupervisorProfile as jo, ProfileMaterializationContract as jp, pickChampion as jr, localSandboxClient as js, createInMemoryRunContext as jt, validateDelegateArgs as ju, EVIDENCE_MAX_CHARS as k, printBenchmarkReport as ka, WidenDecision as kc, DelegateUiAuditArgs as kd, RecoverRetainedRunOptions as kf, reconnectRetainedInteractiveRun as ki, auditIntent as kl, ChatTransportTool as kn, SupervisorNodeContext as ko, DefineProfileMaterializationContractOptions as kp, StrategyEvolutionConfig as kr, runAgentRounds as ks, RunContext as kt, DelegateResult as ku, createVerifierEnvironment as l, selectValidWinner as la, LoopUntilState as lc, runDetachedTurn as ld, FileDelegationStore as lf, SandboxServedBackend as li, stopSentinel as ll, ConcurrencyCaps as ln, AuthorizedSpawn as lo, mapExecutorResult as lp, composeCheckSources as lr, createSupervisorSpanRecorder as ls, WorkerSteerRequest as lt, QuestionPolicy as lu, SurfaceReadOutcome as m, assertTraceDerivedFindings as ma, Pipeline as mc, DelegationResumeTick as md, BackendTransportError as mf, mapSandboxEvent as mi, LeaderboardOptions as ml, effectiveConcurrency as mn, SuperviseRegistry as mo, SpawnForest as mp, officialChecksFromMeta as mr, bestDelivered as ms, readWorkerCancellation as mt, WorkerSpawnContext as mu, AnalystFinding$1 as n, InMemoryCorpus as na, Fanout as nc, DriveTurnCapableBox as nd, buildDelegationTraceSpans as nf, BranchCapableBox as ni, CompletionAnalyst as nl, dumbContinuationFailPrompt as nn, LoopDispatchOptions as no, createEventBus as np, StructuralRolloutConfig as nr, noProgressFor as ns, createRootHandle as nt, DownMessageDeliveryOutcome as nu, computeFindingId$1 as o, loopUntil as oa, FlatWidenGate as oc, detachedTurnEvents as od, DelegationPersistenceError as of, SandboxLineageHandle as oi, completionAuthorizes as ol, naiveContinuationPrompt as on, loopCampaignDispatch as oo, DeliverableSpec as op, VisibleCheck as or, SupervisorSpanOptions as os, settledToIteration as ot, QuestionDecision as ou, SurfaceReadBox as p, RegistryAnalyzeProjection as pa, PanelVerdict as pc, DelegationResumeDriver as pd, AgentEvalErrorCode as pf, extractLlmCallEvent as pi, Leaderboard as pl, RollingDispatchOptions as pn, SuperviseOptions as po, InMemorySpawnJournal as pp, modelAuthoredChecks as pr, SupervisorFinalizer as ps, readWorkerCancelRequests as pt, WorkerResumeContext as pu, localShell as q, adaptiveRefine as qa, LeaderboardBenchTask as qc, ResearchSource as qd, RetainedRunStartMaterial as qf, assertProfileModelsAllowed as qi, AuthorizedDownMessage as ql, profileRichnessFinding as qn, ProgressTracker as qo, materializeLocalMcp as qr, AssertTraceDerivedFindings as qs, defaultEdgeTraversalCap as qt, DelegationExecutor as qu, CreateSandboxOptions$1 as r, renderCorpusToInstructions as ra, FanoutOptions as rc, DriveTurnTick as rd, capDelegationTrace as rf, CheckpointCapableBox as ri, CompletionEvidence as rl, dumbContinuationPassPrompt as rn, LoopOptionsForDispatch as ro, WatchTraceOptions as rp, StructuralRolloutMessage as rr, plateau as rs, createSupervisor as rt, DownMessageEvent as ru, makeFinding$1 as s, panel as sa, LoopUntil as sc, formatDetachedSessionRef as sd, DelegationStateCorruptError as sf, SessionCapableBox as si, deterministicCompletion as sl, promptHandle as sn, loopDispatch as so, ExecutorResultMapping as sp, canDisplace as sr, SupervisorSpanOutcome as ss, WorkerCancelRequest as st, QuestionLevel as su, AgentProfile$2 as t, FileCorpus as ta, EqualKVerdict as tc, DetachedTurnResumeDriverOptions as td, DelegationTraceSpan as tf, openSandboxRun as ti, defineLeaderboard as tl, delegatesWorkerBriefPrompt as tn, LoopCampaignDispatchOptions as to, PublishOptions as tp, RepairStop as tr, createProgressTracker as ts, workerTraceAnalysisStore as tt, DownMessageDeliveryAttempt as tu, BoxSurfaceReaderOptions as u, verify as ua, Panel as uc, DelegationArgs as ud, FileDelegationStoreOptions as uf, SandboxToolPartState as ui, AxisScoresOf as ul, DispatchReport as un, AuthorizedSpawnContext as uo, FileResultBlobStore as up, defaultExtractCandidate as ur, DeliveredOutput as us, cancelWorker as ut, QuestionRecord as uu, fsSurfaceReader as v, McpEndpoint as va, ScopeAnalyst as vc, SubmitInput as vd, PlannerError as vf, CriuCapableClient as vi, ProfileKeyOf as vl, DelegateOptions as vn, superviseWithTestBrain as vo, SpawnForestNode as vp, structuralRollout as vr, DriverAttemptRecord as vs, supervisorRunsRoot as vt, normalizeAnalyzeOnSettle as vu, failuresAnalyst as w, BenchmarkLift as wa, TrajectoryReportFn as wc, DelegateFeedbackArgs as wd, ValidationError as wf, recoverRetainedRun as wi, renderLeaderboardSvg as wl, driverAgent as wn, ResolveDriveHarness as wo, contentAddress as wp, EvolutionBandInfo as wr, RunAgentRoundsOptions as ws, workerInboxFile as wt, DELEGATE_INPUT_SCHEMA as wu, SuperviseSurfaceResult as x, sanitizeMcpToolSchema as xa, SteerContext as xc, DelegateCodeArgs as xd, RetainedRunAdmissionError as xf, AcquireOptions as xi, pairwiseSignificance as xl, CoordinationMcpHandle as xn, DriveHarness as xo, materializeTreeView as xp, ChampionPolicy as xr, DriverProgressMark as xs, workerCancellationFile as xt, createInProcessTransport as xu, harvestSurfaceDiffs as y, McpEnvironmentOptions as ya, ScopeAnalyzeInput as yc, SubmitOutput as yd, RetainedInteractiveAdmissionError as yf, SandboxCapabilities as yi, ScoreOf as yl, defaultDelegateBudget as yn, workerFromBackend as yo, SpawnForestTree as yp, visibleCheckScore as yr, DriverAttemptStop as ys, supervisorWorkersDir as yt, McpServer as yu, withUntrackedArtifacts as z, ShotSpec as za, PersonaExecutors as zc, DelegationProgress as zd, RetainedRunDispatchedAdmission as zf, ResolveSandboxClientOptions as zi, WaterfallCollector as zl, createBudgetPool as zn, CoordinationLog as zo, promptControlProfileMaterialization as zp, strategyAuthorSystemPrompt as zr, HarvestReport as zs, EdgeTraversal as zt, DelegateRunCtx as zu };
8776
- //# sourceMappingURL=index-C2caGomG.d.ts.map
8612
+ export { WorkerToolTraceArtifact as $, loopDispatch as $a, completionAuthorizes as $c, DelegationTraceCollector as $d, AGENT_PROFILE_MATERIALIZATION_AXES as $f, panel as $i, MakeWorkerAgent as $l, assessAuthoredProfile as $n, SupervisorSpanOptions as $o, StdioMcpServerSpec as $r, FlatWidenGate as $s, RunGraphTestOptions as $t, DetachedTurn as $u, EVIDENCE_MAX_CHARS as A, RunAgenticOptions as Aa, Persona as Ac, DelegateUiAuditResult as Ad, createEventBus as Af, startRetainedInteractiveRun as Ai, plateauLength as Al, serveCoordinationMcp as An, supervisorAgentWithTestBrain as Ao, EvolutionArchiveNode as Ar, HarvestCorpusOptions as As, workerCancellationsDir as At, validateDelegateArgs as Au, withUntrackedArtifacts as B, breadthStrategy as Ba, LeaderboardBenchTask as Bc, DelegationStatus as Bd, InMemoryResultBlobStore as Bf, equalKOnCost as Bi, AuthorizeDownMessage as Bl, chatWorkerSeam as Bn, ProgressTracker as Bo, runStrategyEvolution as Br, AssertTraceDerivedFindings as Bs, PatchDeliverableOptions as Bt, DetachedWinnerSelection as Bu, SurfaceWorkerOut as C, AgenticOptions as Ca, WidenLineage as Cc, DelegateFeedbackArgs as Cd, ValidationError as Cf, recoverRetainedRun as Ci, defaultAuditorInstruction as Cl, freeSlots as Cn, SupervisorNodeContextSeed as Co, resolveEntrySymbol as Cr, LocalSandboxClientOptions as Cs, runCancellationFile as Ct, DELEGATE_INPUT_SCHEMA as Cu, AuthoredHarness as D, AgenticTool as Da, DefinePersonaInput as Dc, DelegateResearchResult as Dd, BusStats as Df, claimRetainedInteractiveControl as Di, anytimeReport as Dl, defaultDelegateBudget as Dn, assertCoordinationBinding as Do, visibleCheckScore as Dr, InProcessPromptCtx as Ds, supervisorWorkersDir as Dt, DelegateHandlerOptions as Du, superviseSurface as E, AgenticTask as Ea, DefinePersona as Ec, DelegateResearchConfig as Ed, BusRecord as Ef, ClaimRetainedInteractiveControlOptions as Ei, AnytimeTaskCurve as El, DelegateOptions as En, SupervisorToolInvocationContext as Eo, structuralRollout as Er, InProcessOnPrompt as Es, supervisorRunsRoot as Et, DelegateError as Eu, composeWorkerEvidence as F, StrategyMessage as Fa, ShapeBudget as Fc, DelegationHistoryEntry as Fd, ExecutorResultMapping as Ff, promotionGate as Fi, createWaterfallCollector as Fl, ChatSessionStore as Fn, PriorCoordination as Fo, EvolutionReport as Fr, ObserveInput as Fs, InMemoryRunContext as Ft, CoderDelegate as Fu, WorkspaceRun as G, sample as Ga, LeaderboardScenario as Gc, ResearchOutputShape as Gd, SpawnForestMissingTree as Gf, definePersona as Gi, CoordinationStats as Gl, ReservationRejection as Gn, allOf as Go, authorStrategy as Gr, EqualKArm as Gs, AgentGraph as Gt, settleDetachedCoderTurn as Gu, Shell as H, depthStrategy as Ha, LeaderboardFlagSpec as Hc, DelegationStatusResult as Hd, SpawnForest as Hf, builtinShapes as Hi, ContinuationInstruction as Hl, BudgetPool as Hn, ProgressView as Ho, AuthorStrategyOptions as Hr, Corpus as Hs, WorktreeCliExecutorOptions as Ht, UiAuditorDelegate as Hu, settledWorkerOut as I, StrategyResult as Ia, ShapeContext as Ic, DelegationHistoryResult as Id, gateOnDeliverable as If, profileChatClient as Ii, AnalystFindingEvent as Il, ChatTransportExecutorOptions as In, AllWorkersStalledOptions as Io, ReproductionCheck as Ir, ObserveOptions as Is, InMemoryRunContextOptions as It, CoderReview as Iu, localShell as J, LoopDispatchOptions as Ja, defineLeaderboard as Jc, UiAuditorDelegationOutput as Jd, loadSpawnForest as Jf, InMemoryCorpus as Ji, DEFAULT_AWAIT_EVENT_TIMEOUT_MS as Jl, spendFromUsageEvents as Jn, createProgressTracker as Jo, LocalMcpMaterialization as Jr, EqualKVerdict as Js, GraphEdge as Jt, FleetWorkspaceExecutorOptions as Ju, gitWorkspace as K, sampleThenRefine as Ka, LeaderboardScore as Kc, ResearchSource as Kd, SpawnForestNode as Kf, runPersonified as Ki, CoordinationTools as Kl, ReservationTicket as Kn, allWorkersStalled as Ko, strategyAuthorContract as Kr, EqualKOnCost as Ks, EdgeDeliveryOutcome as Kt, DelegationExecutor as Ku, CopyOptions as L, StrategyShotResult as La, ShapeRegistry as Lc, DelegationProfile as Ld, mapExecutorResult as Lf, profileOptimizerModelCall as Li, AnalystLensOutput as Ll, ChatTransportTool as Ln, NoProgressForOptions as Lo, StrategyEvolutionConfig as Lr, defaultAnalystInstruction as Ls, RunContext as Lt, CoderReviewer as Lu, VERIFY_TAIL_CHARS as M, Strategy as Ma, PersonaExecutors as Mc, DelegationError as Md, defaultToolDetectors as Mf, resolveSandboxClient as Mi, WaterfallCollector as Ml, driverAgent as Mn, CoordinationLog as Mo, EvolutionBandInfo as Mr, HarvestReport as Ms, workerInboxFile as Mt, FeedbackStore as Mu, WorkerEvidenceInput as N, StrategyArtifacts as Na, RunPersonified as Nc, DelegationFeedbackSnapshot as Nd, watchTrace as Nf, PromotionGateOptions as Ni, WaterfallReport as Nl, finalizeBestDelivered as Nn, CoordinationOwnerId as No, EvolutionCandidate as Nr, harvestCorpus as Ns, workerInboxFileFromEventDir as Nt, InMemoryFeedbackStore as Nu, WorktreeFanoutOptions as O, ArtifactHandle as Oa, LoopShape as Oc, DelegateUiAuditArgs as Od, EventBus as Of, reconnectRetainedInteractiveRun as Oi, areaUnderCurve as Ol, delegate as On, resolveSupervisorProfile as Oo, ChampionPick as Or, InProcessSandboxClientOptions as Os, workerCancelRequestsFile as Ot, DelegateResult as Ou, closingWorkerNote as P, StrategyCtx as Pa, RunPersonifiedOptions as Pc, DelegationHistoryArgs as Pd, DeliverableSpec as Pf, PromotionVerdict as Pi, WaterfallSpan as Pl, ChatCompletionsTransport as Pn, FileCoordinationLog as Po, EvolutionGeneration as Pr, Observation as Ps, writeWorkerSteer as Pt, eventToSnapshot as Pu, WORKER_TOOL_TRACE_SCHEMA_VERSION as Q, loopCampaignDispatch as Qa, CompletionVerdict as Qc, DelegationTraceCaps as Qd, contentAddress as Qf, loopUntil as Qi, DownMessageEvent as Ql, asAuthoredProfile as Qn, SupervisorSpanAttributes as Qo, StdioMcpConnection as Qr, FanoutWinnerSelector as Qs, RunGraphOptions as Qt, DetachedSessionRefParts as Qu, UntrackedCopyStats as R, SurfaceScore as Ra, DefinedLeaderboard as Rc, DelegationProgress as Rd, FileResultBlobStore as Rf, assertModelAllowed as Ri, AnalystRegistry as Rl, ChatWorkerSeamOptions as Rn, PlateauOptions as Ro, discriminatingMeans as Rr, observe as Rs, createFileRunContext as Rt, DelegateRunCtx as Ru, SurfaceWorkerConfig as S, runBenchmark as Sa, WidenDecision as Sc, DelegateCodeResult as Sd, RuntimeRunStateError as Sf, reconnectRetainedRun as Si, auditIntent as Sl, effectiveConcurrency as Sn, SupervisorNodeContext as So, officialChecksFromMeta as Sr, runAgentRounds as Ss, runCancelRequestFile as St, DELEGATE_DESCRIPTION as Su, failuresAnalyst as T, AgenticSurface as Ta, WinnerStrategy as Tc, DelegateResearchArgs as Td, BusEvent as Tf, startRetainedRunInEnvironment as Ti, AnytimeStrategySummary as Tl, rollingDispatch as Tn, SupervisorToolDescriptor as To, selectBestIndex as Tr, inlineSandboxClient as Ts, supervisorRunDir as Tt, DelegateArgs as Tu, Workspace as U, refine as Ua, LeaderboardIterationInfo as Uc, FeedbackRating as Ud, SpawnForestEvent as Uf, createShapeRegistry as Ui, ContinuityMode as Ul, BudgetPoolRestore as Un, StopDecision as Uo, AuthoredStrategy as Ur, CorpusFilter as Us, WorktreePatchArtifact as Ut, coderTaskFromArgs as Uu, GitWorkspaceOptions as V, defineStrategy as Va, LeaderboardBenchmarkAdapter as Vc, DelegationStatusArgs as Vd, InMemorySpawnJournal as Vf, trajectoryReport as Vi, AuthorizedDownMessage as Vl, createChatSessionStore as Vn, ProgressTrackerOptions as Vo, selectChampion as Vr, CombinatorShape as Vs, patchDelivered as Vt, SettleDetachedCoderTurnOptions as Vu, WorkspaceCommit as W, runAgentic as Wa, LeaderboardRunContext as Wc, FeedbackRefersTo as Wd, SpawnForestInDoubtNode as Wf, registerShape as Wi, CoordinationEvent as Wl, BudgetReadout as Wn, StopRule as Wo, assertStrategyContract as Wr, CorpusRecord as Ws, createWorktreeCliExecutor as Wt, detachedSessionDelegate as Wu, TrajectoryAnalysis as X, SuperviseDispatchOptions as Xa, CompletionEvidence as Xc, DELEGATION_TRACE_MAX_BYTES as Xd, pendingWaits as Xf, fanout as Xi, DownMessageDeliveryAttempt as Xl, ProfileRichness as Xn, plateau as Xo, McpSpawnFault as Xr, FanoutOptions as Xs, GraphNode as Xt, createFleetWorkspaceExecutor as Xu, runInWorkspace as Y, LoopOptionsForDispatch as Ya, CompletionAnalyst as Yc, CappedDelegationTrace as Yd, materializeTreeView as Yf, renderCorpusToInstructions as Yi, DownMessageAuthorizationInput as Yl, AuthoredProfile as Yn, noProgressFor as Yo, MaterializeLocalMcpOptions as Yr, Fanout as Ys, GraphEdgeCapError as Yt, SiblingSandboxExecutorOptions as Yu, analyzeTrace as Z, SuperviseOptionsForDispatch as Za, CompletionPolicy as Zc, DELEGATION_TRACE_MAX_SPANS as Zd, replaySpawnTree as Zf, flatWidenGate as Zi, DownMessageDeliveryOutcome as Zl, ProfileRichnessThresholds as Zn, sampleFromSettled as Zo, McpToolDescriptor as Zr, FanoutSynthesis as Zs, GraphResult as Zt, createSiblingSandboxExecutor as Zu, boxSurfaceReader as _, BenchmarkReport as _a, TrajectoryReportFn as _c, SubmitInput as _d, PlannerError as _f, CriuCapableClient as _i, renderLeaderboardSvg as _l, ConcurrencyCaps as _n, ResolveDriveHarness as _o, renderProfileMaterializationIssues as _p, composeCheckSources as _r, RunAgentRoundsOptions as _s, readRunCancelRequest as _t, normalizeAnalyzeOnSettle as _u, SandboxInstance$1 as a, RegistryAnalyzeProjection as aa, PanelSpec as ac, detachedTurnEvents as ad, DelegationPersistenceError as af, OpenSandboxRunPromptOptions as ai, Interval as al, PromptRegistry as an, SuperviseOptions as ao, ProfileMaterializationContract as ap, CheckRunContext as ar, FinalizerSettled as as, ScopeArgs as at, QuestionRecord as au, SuperviseSurfaceOptions as b, Environment as ba, VerifySpec as bc, DelegateCodeArgs as bd, RetainedRunAdmissionError as bf, AcquireOptions as bi, AuditIntentOptions as bl, DispatchUnit as bn, SupervisorAgentDeps as bo, worktreeCliProfileMaterialization as bp, filterAuthoredAsserts as br, defaultSelectWinner as bs, readWorkerCancellation as bt, createInProcessTransport as bu, VerifierEnvironmentOptions as c, createScopeAnalyst as ca, PipelineStage as cc, runDetachedTurn as cd, FileDelegationStore as cf, TurnResult as ci, LeaderboardRow as cl, createPromptRegistry as cn, SuperviseTestOptions as co, assertProfileMaterialization as cp, CheckSourceCtx as cr, collectDelivered as cs, RunCancelRequest as ct, SpawnPreflight as cu, HarvestSurfaceDiffsOptions as d, McpEnvironmentOptions as da, ScopeAnalyst as dc, DelegationResumeContext as dd, AgentEvalError$1 as df, CheckpointCapableBox as di, ProfileKeyOf as dl, dumbContinuationPassPrompt as dn, workerFromBackend as do, fullProfileMaterialization as dp, StructuralRolloutMessage as dr, DriverAttemptRecord as ds, WorkerCancellation as dt, SpawnRefusalCause as du, pipeline as ea, LoopUntil as ec, DetachedTurnResumeDriverOptions as ed, DelegationTraceSpan as ef, connectStdioMcp as ei, deterministicCompletion as el, TraversalContinuity as en, superviseDispatch as eo, AgentProfileMaterializationAxis as ep, defaultProfileRichnessThresholds as er, SupervisorSpanOutcome as es, captureWorkerTraceEvidence as et, Question as eu, SurfaceDiff as f, createMcpEnvironment as fa, ScopeAnalyzeInput as fc, DelegationResumeDriver as fd, AgentEvalErrorCode as ff, ForkCapableBox as fi, ScoreOf as fl, formatPromptHandle as fn, CoordinationBinding as fo, profileMaterializationAxes$1 as fp, StructuralRolloutPolicy as fr, DriverAttemptStop as fs, WorkerSteerRequest as ft, WorkerResumeContext as fu, WatchedSurface as g, BenchmarkLift as ga, TrajectoryReport as gc, DelegationTaskQueueOptions as gd, NotFoundError as gf, createSandboxLineage as gi, renderLeaderboardMarkdown as gl, supervisorPolicyPrompt as gn, ObserveSupervisorNodeEvent as go, promptResourceProfileMaterialization as gp, compareCheckOutcomes as gr, classifyDriverFailure as gs, legacySupervisorRunsRoot as gt, createCoordinationTools as gu, SurfaceReader as h, BenchmarkConfig as ha, TrajectoryNode as hc, DelegationTaskQueue as hd, JudgeError as hf, SessionCapableBox as hi, renderLeaderboardHtml as hl, promptHandle as hn, DriveHarnessOwnerContext as ho, promptOnlyProfileMaterialization as hp, canDisplace as hr, DriverRetryPolicy as hs, legacySupervisorRunDir as ht, canonicalFindingEvent as hu, SandboxEvent$1 as i, CreateScopeAnalystOptions as ia, PanelJudge as ic, createDetachedTurnResumeDriver as id, createDelegationTraceCollector as if, OpenSandboxRunOptions as ii, GroupOf as il, PromptHandle as in, DeliverableResolutionInput as io, KnownAgentProfileMaterializationAxis as ip, CheckOutcome as ir, FinalizeContext as is, createSupervisor as it, QuestionPolicy as iu, NOTE_MAX_CHARS as j, ShotSpec as ja, PersonaContext as jc, DelegateUiAuditRoute as jd, WatchTraceOptions as jf, ResolveSandboxClientOptions as ji, renderAnytimeTable as jl, DriverAgentOptions as jn, CoordinationDeliveryEvidence as jo, EvolutionAuthor as jr, HarvestFailure as js, workerControlLogFile as jt, FeedbackEvent as ju, worktreeFanout as k, CorpusReadbackOptions as ka, Outcome as kc, DelegateUiAuditConfig as kd, PublishOptions as kf, recoverRetainedInteractiveRun as ki, bestSoFar as kl, CoordinationMcpHandle as kn, supervisorAgent as ko, ChampionPolicy as kr, inProcessSandboxClient as ks, workerCancellationFile as kt, createDelegateHandler as ku, createVerifierEnvironment as l, registryScopeAnalyst as la, RenderCorpusToInstructions as lc, DelegationArgs as ld, FileDelegationStoreOptions as lf, openSandboxRun as li, PairwiseOptions as ll, delegatesWorkerBriefPrompt as ln, supervise as lo, controlProfileMaterialization as lp, RepairStop as lr, pickBestDelivered as ls, RunCancellation as lt, SpawnPreflightContext as lu, SurfaceReadOutcome as m, BenchmarkCell as ma, SteerContext as mc, DelegationRunContext as md, ConfigError as mf, SandboxLineageHandle as mi, pairwiseSignificance as ml, naiveContinuationPrompt as mn, DriveHarness as mo, promptModelProfileMaterialization as mp, VisibleCheck as mr, DriverProgressMark as ms, cancelWorker as mt, WorkerWatchOptions as mu, AnalystFinding$1 as n, verify as na, LoopUntilState as nc, DriveTurnTick as nd, capDelegationTrace as nf, Deliverable as ni, stopSentinel as nl, runGraph as nn, AuthorizedSpawnContext as no, CanonicalAgentProfileMaterializationAxis as np, supervisorInstructions as nr, createSupervisorSpanRecorder as ns, workerTraceAnalysisStore as nt, QuestionLevel as nu, computeFindingId$1 as o, assertTraceDerivedFindings as oa, PanelVerdict as oc, formatDetachedSessionRef as od, DelegationStateCorruptError as of, SandboxRun as oi, Leaderboard as ol, RegisteredPrompt as on, SuperviseRegistry as oo, ProfileMaterializationIssue as op, CheckRunner as or, SupervisorFinalizer as os, createScope as ot, QuestionUrgency as ou, SurfaceReadBox as p, sanitizeMcpToolSchema as pa, ScopeWidenGate as pc, DelegationResumeTick as pd, BackendTransportError as pf, SandboxLineage as pi, leaderboard as pl, kernelPromptRegistry as pn, CoordinationVerbs as po, promptControlProfileMaterialization as pp, StructuralRolloutResult as pr, DriverAttemptsExhaustedError as ps, cancelRun as pt, WorkerSpawnContext as pu, jjWorkspace as q, LoopCampaignDispatchOptions as qa, LeaderboardSpec as qc, UiAuditLensFilter as qd, SpawnForestTree as qf, FileCorpus as qi, CoordinationToolsOptions as ql, createBudgetPool as qn, anyOf as qo, strategyAuthorSystemPrompt as qr, EqualKOnCostOptions as qs, EdgeTraversal as qt, FleetHandle as qu, CreateSandboxOptions$1 as r, widen as ra, Panel as rc, RunDetachedTurnOptions as rd, composeLoopTraceEmitters as rf, OpenSandboxRunBeforeStartContext as ri, AxisScoresOf as rl, runGraphWithTestBrain as rn, DEFAULT_AUTHORED_PROFILE_SECURITY_POLICY as ro, DefineProfileMaterializationContractOptions as rp, CheckExecChannel as rr, DeliveredOutput as rs, createRootHandle as rt, QuestionOption as ru, makeFinding$1 as s, buildSteerContext as sa, Pipeline as sc, parseDetachedSessionRef as sd, DelegationStore as sf, SandboxRunAbortError as si, LeaderboardOptions as sl, analyzesFindingsReportPrompt as sn, SuperviseRegistryTable as so, ValidateProfileMaterializationOptions as sp, CheckSource as sr, bestDelivered as ss, settledToIteration as st, SettledWorker as su, AgentProfile$2 as t, selectValidWinner as ta, LoopUntilSpec as tc, DriveTurnCapableBox as td, buildDelegationTraceSpans as tf, materializeLocalMcp as ti, sentinelCompletion as tl, defaultEdgeTraversalCap as tn, AuthorizedSpawn as to, AssertProfileMaterializationOptions as tp, profileRichnessFinding as tr, SupervisorSpanRecorder as ts, parseWorkerToolTraceArtifact as tt, QuestionDecision as tu, BoxSurfaceReaderOptions as u, McpEndpoint as ua, RenderCorpusToInstructionsOptions as uc, DelegationRecord as ud, InMemoryDelegationStore as uf, BranchCapableBox as ui, PairwiseVerdict as ul, dumbContinuationFailPrompt as un, superviseWithTestBrain as uo, defineProfileMaterializationContract as up, StructuralRolloutConfig as ur, runFinalizer as us, WorkerCancelRequest as ut, SpawnRefusal as uu, fsSurfaceReader as v, BenchmarkStrategySummary as va, TrajectoryReportOptions as vc, SubmitOutput as vd, RetainedInteractiveAdmissionError as vf, SandboxCapabilities as vi, renderPairwiseMarkdown as vl, DispatchReport as vn, ResolveSupervisorTools as vo, sandboxActProfileMaterialization as vp, defaultExtractCandidate as vr, TERMINAL_DECISIONS as vs, readRunCancellation as vt, McpServer as vu, analystsFromRegistry as w, AgenticRunResult as wa, WidenSpec as wc, DelegateFeedbackResult as wd, CoderOutput as wf, startRetainedRun as wi, AnytimeReport as wl, queueOf as wn, SupervisorProfile as wo, sandboxCheckRunner as wr, localSandboxClient as ws, safeWorkerFile as wt, DELEGATE_TOOL_NAME as wu, SuperviseSurfaceResult as x, printBenchmarkReport as xa, Widen as xc, DelegateCodeConfig as xd, RetainedRunDispatchBindingError as xf, acquireSandbox as xi, IntentAudit as xl, RollingDispatchOptions as xn, SupervisorAgentTestDeps as xo, modelAuthoredChecks as xr, isTerminalDecision as xs, readWorkerSteerRequests as xt, createMcpServer as xu, harvestSurfaceDiffs as y, BenchmarkTaskRow as ya, Verify as yc, hashIdempotencyInput as yd, RetainedInteractiveBindingError as yf, probeSandboxCapabilities as yi, AuditIntentInput as yl, DispatchStopReason as yn, ResolvedSupervisorProfile as yo, validateProfileMaterialization as yp, defaultStructuralRolloutPolicy as yr, TerminalDecision as ys, readWorkerCancelRequests as yt, McpServerOptions as yu, copyUntrackedIntoClone as z, adaptiveRefine as za, LeaderboardBenchScore as zc, DelegationResultPayload as zd, FileSpawnJournal as zf, assertProfileModelsAllowed as zi, AnalyzeOnSettleRoute as zl, chatTransportExecutor as zn, ProgressSample as zo, pickChampion as zr, renderReport as zs, createInMemoryRunContext as zt, DetachedSessionDelegateOptions as zu };
8613
+ //# sourceMappingURL=index-DLn9WI-f.d.ts.map