@tangle-network/agent-runtime 0.142.3 → 0.153.1

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