@tangle-network/agent-runtime 0.203.1 → 0.204.0

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 (49) hide show
  1. package/dist/{activation-jkFJVJRN.js → activation-C4FzfZdf.js} +2 -2
  2. package/dist/{activation-jkFJVJRN.js.map → activation-C4FzfZdf.js.map} +1 -1
  3. package/dist/agent.d.ts +1 -1
  4. package/dist/agent.js +2 -2
  5. package/dist/{coordination-driver-MJuF_LIR.js → coordination-driver-CeORgR_y.js} +54 -54
  6. package/dist/coordination-driver-CeORgR_y.js.map +1 -0
  7. package/dist/{delegate-BdLTkmND.js → delegate-Y8HERQ-0.js} +2 -2
  8. package/dist/{delegate-BdLTkmND.js.map → delegate-Y8HERQ-0.js.map} +1 -1
  9. package/dist/durable.d.ts +1 -1
  10. package/dist/durable.js +26 -3
  11. package/dist/durable.js.map +1 -1
  12. package/dist/{graph-DQN-oV1z.js → graph-BeKgH5yz.js} +3 -3
  13. package/dist/{graph-DQN-oV1z.js.map → graph-BeKgH5yz.js.map} +1 -1
  14. package/dist/{improvement-cycle-BxqzXYi8.js → improvement-cycle-Bgm5fYr0.js} +3 -3
  15. package/dist/{improvement-cycle-BxqzXYi8.js.map → improvement-cycle-Bgm5fYr0.js.map} +1 -1
  16. package/dist/{index-prZR0SAw.d.ts → index-JwBrfEmf.d.ts} +7 -1
  17. package/dist/index.d.ts +2 -2
  18. package/dist/index.js +7 -7
  19. package/dist/intelligence.js +3 -3
  20. package/dist/kernel.d.ts +1 -1
  21. package/dist/kernel.js +8 -8
  22. package/dist/{loop-runner-bin-CrRJTCHK.js → loop-runner-bin-DAzvKFYG.js} +3 -3
  23. package/dist/{loop-runner-bin-CrRJTCHK.js.map → loop-runner-bin-DAzvKFYG.js.map} +1 -1
  24. package/dist/{loop-runner-bin-CdLhMvhw.d.ts → loop-runner-bin-DD3mqY76.d.ts} +2 -2
  25. package/dist/loop-runner-bin.d.ts +1 -1
  26. package/dist/loop-runner-bin.js +1 -1
  27. package/dist/mcp/bin.js +3 -3
  28. package/dist/mcp/index.d.ts +1 -1
  29. package/dist/mcp/index.js +4 -4
  30. package/dist/{provision-supervisor-BS4y6pVS.js → provision-supervisor-CZ_YEGAm.js} +3 -3
  31. package/dist/{provision-supervisor-BS4y6pVS.js.map → provision-supervisor-CZ_YEGAm.js.map} +1 -1
  32. package/dist/{redact-B1SbJVu9.js → redact-73IRu8-T.js} +5 -3
  33. package/dist/{redact-B1SbJVu9.js.map → redact-73IRu8-T.js.map} +1 -1
  34. package/dist/{runtime-tA99kYBU.js → runtime-pw6TGY_D.js} +8 -8
  35. package/dist/{runtime-tA99kYBU.js.map → runtime-pw6TGY_D.js.map} +1 -1
  36. package/dist/{server-Bd7EYaQT.js → server-CrU79Grl.js} +3 -3
  37. package/dist/{server-Bd7EYaQT.js.map → server-CrU79Grl.js.map} +1 -1
  38. package/dist/{structural-rollout-FBtZzm0q.js → structural-rollout-Bzkfmwuo.js} +27 -5
  39. package/dist/structural-rollout-Bzkfmwuo.js.map +1 -0
  40. package/dist/{supervise-dCZg-EB8.js → supervise-Cr3ZtFyh.js} +25 -14
  41. package/dist/supervise-Cr3ZtFyh.js.map +1 -0
  42. package/dist/testing.d.ts +1 -1
  43. package/dist/testing.js +12 -12
  44. package/dist/tui/index.d.ts +1 -1
  45. package/dist/tui/index.js +1 -1
  46. package/package.json +4 -4
  47. package/dist/coordination-driver-MJuF_LIR.js.map +0 -1
  48. package/dist/structural-rollout-FBtZzm0q.js.map +0 -1
  49. package/dist/supervise-dCZg-EB8.js.map +0 -1
@@ -3954,6 +3954,9 @@ interface ObserveInput {
3954
3954
  output: string;
3955
3955
  /** The worker's trace — any event array (sandbox events, tool-call records). */
3956
3956
  trace: ReadonlyArray<unknown>;
3957
+ /** Caller-owned execution evidence, separate from task/output and final grading.
3958
+ * The default analyst requires JSON-serializable data; custom analysis receives the original value. */
3959
+ context?: unknown;
3957
3960
  /** Terminal status only (passed/failed/unknown) — NOT a judge score; the
3958
3961
  * observer never reads the verdict, it reads behavior. */
3959
3962
  outcome?: 'passed' | 'failed' | 'unknown';
@@ -3973,6 +3976,9 @@ interface ObserveCommonOptions {
3973
3976
  maxTraceLines?: number;
3974
3977
  /** Maximum output characters delivered to the default observer. Default 1200. */
3975
3978
  maxOutputChars?: number;
3979
+ /** Maximum serialized context characters before a truncation marker. Default 12000; zero omits context.
3980
+ * Applies only to the default analyst. Custom analysis receives the complete input. */
3981
+ maxContextChars?: number;
3976
3982
  /** Evidence origin for the default observer. Defaults to production for existing callers. */
3977
3983
  proposalOrigin?: ProposalFinding['proposal_origin'];
3978
3984
  }
@@ -9681,4 +9687,4 @@ interface VerifierEnvironmentOptions {
9681
9687
  declare function createVerifierEnvironment(opts: VerifierEnvironmentOptions): Environment;
9682
9688
  //#endregion
9683
9689
  export { WorkspaceRun as $, Environment as $a, EqualKOnCost as $c, FeedbackEvent as $d, DelegateUiAuditRoute as $f, acquireSandbox as $i, LeaderboardScore as $l, freeSlots as $n, CoordinationBinding as $o, WatchTraceOptions as $p, modelAuthoredChecks as $r, FinalizeContext as $s, RunContext as $t, AuthorizeDownMessage as $u, worktreeFanout as A, loopUntil as Aa, InProcessOnPrompt as Ac, WorkerResumeContext as Ad, runDetachedTurn as Af, StdioMcpConnection as Ai, WidenLineage as Al, assertProfileMaterialization as Am, RunGraphTestOptions as An, SuperviseOptionsForDispatch as Ao, FileDelegationStore as Ap, asAuthoredProfile as Ar, PriorCoordination as As, readWorkerCancellation as At, defaultAuditorInstruction as Au, VERIFY_TAIL_CHARS as B, createScopeAnalyst as Ba, ObservationAnalysis as Bc, McpServer as Bd, SubmitOutput as Bf, TurnResult as Bi, RunPersonified as Bl, sandboxActProfileMaterialization as Bm, delegatesWorkerBriefPrompt as Bn, SuperviseRegistryTable as Bo, RetainedInteractiveAdmissionError as Bp, CheckSourceCtx as Br, allOf as Bs, workerCancellationFile as Bt, WaterfallReport as Bu, SurfaceWorkerConfig as C, definePersona as Ca, TerminalDecision as Cc, QuestionRecord as Cd, DriveTurnCapableBox as Cf, authorStrategy as Ci, TrajectoryReport as Cl, AssertProfileMaterializationOptions as Cm, EdgeDeliveryOutcome as Cn, runAgentic as Co, buildDelegationTraceSpans as Cp, ReservationRejection as Cr, serveCoordinationMcp as Cs, cancelRun as Ct, renderLeaderboardMarkdown as Cu, superviseSurface as D, renderCorpusToInstructions as Da, LocalSandboxClientOptions as Dc, SpawnPreflightContext as Dd, detachedTurnEvents as Df, MaterializeLocalMcpOptions as Di, VerifySpec as Dl, ProfileMaterializationContract as Dm, GraphNode as Dn, LoopDispatchOptions as Do, DelegationPersistenceError as Dp, AuthoredProfile as Dr, CoordinationLog as Ds, readRunCancelRequest as Dt, AuditIntentOptions as Du, failuresAnalyst as E, InMemoryCorpus as Ea, runAgentRounds as Ec, SpawnPreflight as Ed, createDetachedTurnResumeDriver as Ef, LocalMcpMaterialization as Ei, Verify as El, KnownAgentProfileMaterializationAxis as Em, GraphEdgeCapError as En, LoopCampaignDispatchOptions as Eo, createDelegationTraceCollector as Ep, spendFromUsageEvents as Er, CoordinationDeliveryEvidence as Es, legacySupervisorRunsRoot as Et, AuditIntentInput as Eu, readWorkerInteractiveBinding as F, widen as Fa, HarvestError as Fc, createCoordinationTools as Fd, DelegationResumeTick as Ff, OpenSandboxRunBeforeStartContext as Fi, LoopShape as Fl, promptControlProfileMaterialization as Fm, PromptHandle as Fn, AuthorizedSpawnContext as Fo, BackendTransportError as Fp, CheckExecChannel as Fr, ProgressTracker as Fs, safeWorkerFile as Ft, areaUnderCurve as Fu, CopyOptions as G, createMcpEnvironment as Ga, observe as Gc, DELEGATE_INPUT_SCHEMA as Gd, DelegateFeedbackArgs as Gf, SandboxLineage as Gi, DefinedLeaderboard as Gl, naiveContinuationPrompt as Gn, ResolvedWorkerSpawnRetry as Go, ValidationError as Gp, StructuralRolloutResult as Gr, plateau as Gs, workerSteerAcknowledgementFile as Gt, AnalystFindingEvent as Gu, closingWorkerNote as H, observationFromRegistry as Ha, ObserveInput as Hc, createInProcessTransport as Hd, DelegateCodeArgs as Hf, BranchCapableBox as Hi, ShapeBudget as Hl, worktreeCliProfileMaterialization as Hm, dumbContinuationPassPrompt as Hn, supervise as Ho, RetainedRunAdmissionError as Hp, StructuralRolloutConfig as Hr, anyOf as Hs, workerControlLogFile as Ht, createWaterfallCollector as Hu, workerInteractiveBindingFile as I, CreateScopeAnalystOptions as Ia, HarvestFailure as Ic, downMessageRefusalReasons as Id, DelegationRunContext as If, OpenSandboxRunOptions as Ii, Outcome as Il, promptModelProfileMaterialization as Im, PromptRegistry as In, DEFAULT_AUTHORED_PROFILE_SECURITY_POLICY as Io, ConfigError as Ip, CheckOutcome as Ir, ProgressTrackerOptions as Is, supervisorRunDir as It, bestSoFar as Iu, withUntrackedArtifacts as J, BenchmarkConfig as Ja, CombinatorShape as Jc, DelegateError as Jd, DelegateResearchConfig as Jf, createSandboxLineage as Ji, LeaderboardBenchmarkAdapter as Jl, DispatchReport as Jn, WorkerSpawnRetryPolicy as Jo, BusRecord as Jp, compareCheckOutcomes as Jr, SupervisorSpanOptions as Js, workerSteerRequestsDir as Jt, AnalystRegistry$1 as Ju, UntrackedCopyStats as K, sanitizeMcpToolSchema as Ka, renderReport as Kc, DELEGATE_TOOL_NAME as Kd, DelegateFeedbackResult as Kf, SandboxLineageHandle as Ki, LeaderboardBenchScore as Kl, promptHandle as Kn, WorkerSpawnRetryAttempt as Ko, CoderOutput as Kp, VisibleCheck as Kr, sampleFromSettled as Ks, workerSteerAcknowledgementsDir as Kt, AnalystKind as Ku, workerInteractiveBindingsDir as L, RegistryAnalyzeProjection as La, HarvestReport as Lc, normalizeAnalyzeOnSettle as Ld, DelegationTaskQueue as Lf, OpenSandboxRunPromptOptions as Li, Persona as Ll, promptOnlyProfileMaterialization as Lm, RegisteredPrompt as Ln, DeliverableResolutionInput as Lo, JudgeError as Lp, CheckRunContext as Lr, ProgressView as Ls, supervisorRunsRoot as Lt, plateauLength as Lu, WorkerInteractiveBinding as M, pipeline as Ma, InProcessSandboxClientOptions as Mc, WorkerWatchOptions as Md, DelegationRecord as Mf, connectStdioMcp as Mi, WinnerStrategy as Ml, defineProfileMaterializationContract as Mm, defaultEdgeTraversalCap as Mn, loopDispatch as Mo, InMemoryDelegationStore as Mp, defaultProfileRichnessThresholds as Mr, NoProgressForOptions as Ms, readWorkerSteerRequests as Mt, AnytimeStrategySummary as Mu, WorkerInteractiveProviderSource as N, selectValidWinner as Na, inProcessSandboxClient as Nc, analystToolGroupNames as Nd, DelegationResumeContext as Nf, materializeLocalMcp as Ni, DefinePersona as Nl, fullProfileMaterialization as Nm, runGraph as Nn, superviseDispatch as No, AgentEvalError$1 as Np, profileRichnessFinding as Nr, PlateauOptions as Ns, runCancelRequestFile as Nt, AnytimeTaskCurve as Nu, AuthoredHarness as O, fanout as Oa, localSandboxClient as Oc, SpawnRefusal as Od, formatDetachedSessionRef as Of, McpSpawnFault as Oi, Widen as Ol, ProfileMaterializationIssue as Om, GraphResult as On, LoopOptionsForDispatch as Oo, DelegationStateCorruptError as Op, ProfileRichness as Or, CoordinationOwnerId as Os, readRunCancellation as Ot, IntentAudit as Ou, attachWorker as P, verify as Pa, HarvestCorpusOptions as Pc, canonicalFindingEvent as Pd, DelegationResumeDriver as Pf, Deliverable as Pi, DefinePersonaInput as Pl, profileMaterializationAxes$1 as Pm, runGraphWithTestBrain as Pn, AuthorizedSpawn as Po, AgentEvalErrorCode as Pp, supervisorInstructions as Pr, ProgressSample as Ps, runCancellationFile as Pt, anytimeReport as Pu, WorkspaceCommit as Q, BenchmarkTaskRow as Qa, EqualKArm as Qc, validateDelegateArgs as Qd, DelegateUiAuditResult as Qf, AcquireOptions as Qi, LeaderboardScenario as Ql, effectiveConcurrency as Qn, withWorkerSpawnRetry as Qo, createEventBus as Qp, filterAuthoredAsserts as Qr, DeliveredOutput as Qs, InMemoryRunContextOptions as Qt, AuthoredAnalystLimits as Qu, EVIDENCE_MAX_CHARS as R, assertTraceDerivedFindings as Ra, harvestCorpus as Rc, parseAuthoredAnalystDefinition as Rd, DelegationTaskQueueOptions as Rf, SandboxRun as Ri, PersonaContext as Rl, promptResourceProfileMaterialization as Rm, analyzesFindingsReportPrompt as Rn, SuperviseOptions as Ro, NotFoundError as Rp, CheckRunner as Rr, StopDecision as Rs, supervisorWorkersDir as Rt, renderAnytimeTable as Ru, SuperviseSurfaceResult as S, registerShape as Sa, TERMINAL_DECISIONS as Sc, QuestionPolicy as Sd, DetachedTurnResumeDriverOptions as Sf, assertStrategyContract as Si, TrajectoryNode as Sl, AgentProfileMaterializationAxis as Sm, AgentGraph as Sn, refine as So, DelegationTraceSpan as Sp, BudgetReadout as Sr, CoordinationTransportOptions as Ss, WriteWorkerSteerOptions as St, renderLeaderboardHtml as Su, analystsFromRegistry as T, FileCorpus as Ta, isTerminalDecision as Tc, SettledWorker as Td, RunDetachedTurnOptions as Tf, strategyAuthorSystemPrompt as Ti, TrajectoryReportOptions as Tl, DefineProfileMaterializationContractOptions as Tm, GraphEdge as Tn, sampleThenRefine as To, composeLoopTraceEmitters as Tp, createBudgetPool as Tr, CoordinationHttpOptions as Ts, legacySupervisorRunDir as Tt, renderPairwiseMarkdown as Tu, composeWorkerEvidence as U, McpEndpoint as Ua, ObserveOptions as Uc, createMcpServer as Ud, DelegateCodeConfig as Uf, CheckpointCapableBox as Ui, ShapeContext as Ul, formatPromptHandle as Un, superviseWithTestBrain as Uo, RetainedRunDispatchBindingError as Up, StructuralRolloutMessage as Ur, createProgressTracker as Us, workerInboxFile as Ut, ANALYST_DEFINITION_BOUNDS as Uu, WorkerEvidenceInput as V, registryScopeAnalyst as Va, ObservationError as Vc, McpServerOptions as Vd, hashIdempotencyInput as Vf, openSandboxRun as Vi, RunPersonifiedOptions as Vl, validateProfileMaterialization as Vm, dumbContinuationFailPrompt as Vn, SuperviseTestOptions as Vo, RetainedInteractiveBindingError as Vp, RepairStop as Vr, allWorkersStalled as Vs, workerCancellationsDir as Vt, WaterfallSpan as Vu, settledWorkerOut as W, McpEnvironmentOptions as Wa, defaultAnalystInstruction as Wc, DELEGATE_DESCRIPTION as Wd, DelegateCodeResult as Wf, ForkCapableBox as Wi, ShapeRegistry as Wl, kernelPromptRegistry as Wn, workerFromBackend as Wo, RuntimeRunStateError as Wp, StructuralRolloutPolicy as Wr, noProgressFor as Ws, workerInboxFileFromEventDir as Wt, AnalystDefinitionIssue as Wu, Shell as X, BenchmarkReport as Xa, CorpusFilter as Xc, DelegateResult as Xd, DelegateUiAuditArgs as Xf, SandboxCapabilities as Xi, LeaderboardIterationInfo as Xl, DispatchUnit as Xn, resolveWorkerSpawnRetry as Xo, EventBus as Xp, defaultExtractCandidate as Xr, SupervisorSpanRecorder as Xs, writeWorkerSteer as Xt, AnalyzeOnSettleRoute as Xu, GitWorkspaceOptions as Y, BenchmarkLift as Ya, Corpus as Yc, DelegateHandlerOptions as Yd, DelegateResearchResult as Yf, CriuCapableClient as Yi, LeaderboardFlagSpec as Yl, DispatchStopReason as Yn, isPreSpawnExecutorFailure as Yo, BusStats as Yp, composeCheckSources as Yr, SupervisorSpanOutcome as Ys, workerSteersDir as Yt, AnalystToolGroupName as Yu, Workspace as Z, BenchmarkStrategySummary as Za, CorpusRecord as Zc, createDelegateHandler as Zd, DelegateUiAuditConfig as Zf, probeSandboxCapabilities as Zi, LeaderboardRunContext as Zl, RollingDispatchOptions as Zn, retryPreSpawnRefusals as Zo, PublishOptions as Zp, defaultStructuralRolloutPolicy as Zr, createSupervisorSpanRecorder as Zs, InMemoryRunContext as Zt, AuthoredAnalystDefinition as Zu, boxSurfaceReader as _, assertProfileModelsAllowed as _a, DriverUnmetContractDecision as _c, QuestionEscalationOutcome as _d, SiblingSandboxExecutorOptions as _f, pickChampion as _i, RenderCorpusToInstructionsOptions as _l, materializeTreeView as _m, WorkerInteractiveAdmission as _n, SurfaceScore as _o, CappedDelegationTrace as _p, chatTransportExecutor as _r, supervisorAgent as _s, RunCancellation as _t, PairwiseVerdict as _u, SandboxInstance$1 as a, claimRetainedInteractiveControl as aa, runFinalizer as ac, CoordinationTools as ad, CoderReviewer as af, visibleCheckScore as ai, FanoutWinnerSelector as al, mapExecutorResult as am, SupervisorCleanupReceipt as an, AgenticTask as ao, DelegationProfile as ap, DriverAgentOptions as ar, ResolveDriveHarness as as, analyzeTrace as at, CompletionVerdict as au, AnalystAuthoring as b, builtinShapes as ba, defaultUnmetContractSteer as bc, QuestionLevel as bd, DetachedSessionRefParts as bf, AuthorStrategyOptions as bi, ScopeWidenGate as bl, contentAddress as bm, InPlaceCliExecutorOptions as bn, defineStrategy as bo, DelegationTraceCaps as bp, BudgetPool as br, CoordinationMcpHandle as bs, WorkerSteerAcknowledgement as bt, leaderboard as bu, VerifierEnvironmentOptions as c, startRetainedInteractiveRun as ca, DriverAttemptsExhaustedError as cc, DefinedAnalystRecord as cd, DetachedWinnerSelection as cf, EvolutionArchiveNode as ci, LoopUntilSpec as cl, InMemoryResultBlobStore as cm, patchDelivered as cn, CorpusReadbackOptions as co, DelegationStatus as cp, CodeModeOptions as cr, SupervisorAgentDeps as cs, captureWorkerTraceEvidence as ct, sentinelCompletion as cu, HarvestSurfaceDiffsOptions as d, PromotionGateOptions as da, DriverProgressMark as dc, DownMessageDeliveryOutcome as dd, coderTaskFromArgs as df, EvolutionCandidate as di, PanelJudge as dl, SpawnForestEvent as dm, createWorktreeCliExecutor as dn, Strategy as do, FeedbackRating as dp, unsafeInProcessRunner as dr, SupervisorNodeContextSeed as ds, createRootHandle as dt, GroupOf as du, reconnectRetainedRun as ea, FinalizerSettled as ec, AuthorizedDownMessage as ed, FeedbackStore as ef, officialChecksFromMeta as ei, EqualKOnCostOptions as el, defaultToolDetectors as em, createFileRunContext as en, printBenchmarkReport as eo, DelegationError as ep, queueOf as er, CoordinationToolFace as es, gitWorkspace as et, LeaderboardSpec as eu, SurfaceDiff as f, PromotionVerdict as fa, DriverReentry as fc, DownMessageEvent as fd, detachedSessionDelegate as ff, EvolutionGeneration as fi, PanelSpec as fl, SpawnForestInDoubtNode as fm, InteractiveWorkerEnvironment as fn, StrategyArtifacts as fo, FeedbackRefersTo as fp, ChatCompletionsTransport as fr, SupervisorProfile as fs, createSupervisor as ft, Interval as fu, WatchedSurface as g, assertModelAllowed as ga, DriverUnmetContractContext as gc, QuestionDecision as gd, FleetWorkspaceExecutorOptions as gf, discriminatingMeans as gi, RenderCorpusToInstructions as gl, loadSpawnForest as gm, workerFromInteractiveProvider as gn, StrategyShotResult as go, delegationProfiles as gp, ChatWorkerSeamOptions as gr, resolveSupervisorProfile as gs, RunCancelRequest as gt, PairwiseOptions as gu, SurfaceReader as h, profileOptimizerModelCall as ha, DriverRetryPolicy as hc, Question as hd, FleetHandle as hf, StrategyEvolutionConfig as hi, PipelineStage as hl, SpawnForestTree as hm, InteractiveWorkerResult as hn, StrategyResult as ho, UiAuditorDelegationOutput as hp, ChatTransportTool as hr, assertCoordinationBinding as hs, settledToIteration as ht, LeaderboardRow as hu, SandboxEvent$1 as i, ClaimRetainedInteractiveControlOptions as ia, pickBestDelivered as ic, CoordinationStats as id, CoderReview as if, structuralRollout as ii, FanoutSynthesis as il, gateOnDeliverable as im, ProvisionedSupervisor as in, AgenticSurface as io, DelegationHistoryResult as ip, delegate as ir, ObserveSupervisorNodeEvent as is, TrajectoryAnalysis as it, CompletionPolicy as iu, AttachWorkerOptions as j, panel as ja, InProcessPromptCtx as jc, WorkerSpawnContext as jd, DelegationArgs as jf, StdioMcpServerSpec as ji, WidenSpec as jl, controlProfileMaterialization as jm, TraversalContinuity as jn, loopCampaignDispatch as jo, FileDelegationStoreOptions as jp, assessAuthoredProfile as jr, AllWorkersStalledOptions as js, readWorkerSteerAcknowledgement as jt, AnytimeReport as ju, WorktreeFanoutOptions as k, flatWidenGate as ka, inlineSandboxClient as kc, SpawnRefusalCause as kd, parseDetachedSessionRef as kf, McpToolDescriptor as ki, WidenDecision as kl, ValidateProfileMaterializationOptions as km, RunGraphOptions as kn, SuperviseDispatchOptions as ko, DelegationStore as kp, ProfileRichnessThresholds as kr, FileCoordinationLog as ks, readWorkerCancelRequests as kt, auditIntent as ku, createVerifierEnvironment as l, ResolveSandboxClientOptions as la, DriverBudgetReadout as lc, DownMessageAuthorizationInput as ld, SettleDetachedCoderTurnOptions as lf, EvolutionAuthor as li, LoopUntilState as ll, InMemorySpawnJournal as lm, WorktreeCliExecutorOptions as ln, RunAgenticOptions as lo, DelegationStatusArgs as lp, CodeModeRunner as lr, SupervisorAgentTestDeps as ls, parseWorkerToolTraceArtifact as lt, stopSentinel as lu, SurfaceReadOutcome as m, profileChatClient as ma, DriverRepromptRefusal as mc, MakeWorkerAgent as md, DelegationExecutor as mf, ReproductionCheck as mi, Pipeline as ml, SpawnForestNode as mm, InteractiveWorkerOptions as mn, StrategyMessage as mo, UiAuditLensFilter as mp, ChatTransportExecutorOptions as mr, SupervisorToolInvocationContext as ms, createScope as mt, LeaderboardOptions as mu, AnalystFinding$1 as n, startRetainedRun as na, bestDelivered as nc, ContinuityMode as nd, eventToSnapshot as nf, sandboxCheckRunner as ni, Fanout as nl, DeliverableSpec as nm, ProvisionSupervisorConnection as nn, AgenticOptions as no, DelegationHistoryArgs as np, DelegateOptions as nr, DriveHarness as ns, localShell as nt, CompletionAnalyst as nu, computeFindingId$1 as o, reconnectRetainedInteractiveRun as oa, DriverAttemptRecord as oc, CoordinationToolsOptions as od, DelegateRunCtx as of, ChampionPick as oi, FlatWidenGate as ol, FileResultBlobStore as om, provisionSupervisor as on, AgenticTool as oo, DelegationProgress as op, driverAgent as or, ResolveSupervisorTools as os, WORKER_TOOL_TRACE_SCHEMA_VERSION as ot, completionAuthorizes as ou, SurfaceReadBox as p, promotionGate as pa, DriverRepromptPolicy as pc, EscalateQuestion as pd, settleDetachedCoderTurn as pf, EvolutionReport as pi, PanelVerdict as pl, SpawnForestMissingTree as pm, InteractiveWorkerKeyInput as pn, StrategyCtx as po, ResearchOutputShape as pp, ChatSessionStore as pr, SupervisorToolDescriptor as ps, ScopeArgs as pt, Leaderboard as pu, copyUntrackedIntoClone as q, BenchmarkCell as qa, AssertTraceDerivedFindings as qc, DelegateArgs as qd, DelegateResearchArgs as qf, SessionCapableBox as qi, LeaderboardBenchTask as ql, ConcurrencyCaps as qn, WorkerSpawnRetryHooks as qo, BusEvent as qp, canDisplace as qr, SupervisorSpanAttributes as qs, workerSteerRequestFile as qt, AnalystLensOutput as qu, CreateSandboxOptions$1 as r, startRetainedRunInEnvironment as ra, collectDelivered as rc, CoordinationEvent as rd, CoderDelegate as rf, selectBestIndex as ri, FanoutOptions as rl, ExecutorResultMapping as rm, ProvisionSupervisorRequest as rn, AgenticRunResult as ro, DelegationHistoryEntry as rp, defaultDelegateBudget as rr, DriveHarnessOwnerContext as rs, runInWorkspace as rt, CompletionEvidence as ru, makeFinding$1 as s, recoverRetainedInteractiveRun as sa, DriverAttemptStop as sc, DEFAULT_AWAIT_EVENT_TIMEOUT_MS as sd, DetachedSessionDelegateOptions as sf, ChampionPolicy as si, LoopUntil as sl, FileSpawnJournal as sm, PatchDeliverableOptions as sn, ArtifactHandle as so, DelegationResultPayload as sp, finalizeBestDelivered as sr, ResolvedSupervisorProfile as ss, WorkerToolTraceArtifact as st, deterministicCompletion as su, AgentProfile$2 as t, recoverRetainedRun as ta, SupervisorFinalizer as tc, ContinuationInstruction as td, InMemoryFeedbackStore as tf, resolveEntrySymbol as ti, EqualKVerdict as tl, watchTrace as tm, createInMemoryRunContext as tn, runBenchmark as to, DelegationFeedbackSnapshot as tp, rollingDispatch as tr, CoordinationVerbs as ts, jjWorkspace as tt, defineLeaderboard as tu, BoxSurfaceReaderOptions as u, resolveSandboxClient as ua, DriverContractState as uc, DownMessageDeliveryAttempt as ud, UiAuditorDelegate as uf, EvolutionBandInfo as ui, Panel as ul, SpawnForest as um, WorktreePatchArtifact as un, ShotSpec as uo, DelegationStatusResult as up, codeModeSupervisorTools as ur, SupervisorNodeContext as us, workerTraceAnalysisStore as ut, AxisScoresOf as uu, fsSurfaceReader as v, equalKOnCost as va, OnUnmetContract as vc, QuestionEscalationRecord as vd, createFleetWorkspaceExecutor as vf, runStrategyEvolution as vi, ScopeAnalyst as vl, pendingWaits as vm, readWorkerInteractiveAdmissions as vn, adaptiveRefine as vo, DELEGATION_TRACE_MAX_BYTES as vp, chatWorkerSeam as vr, supervisorAgentWithTestBrain as vs, WorkerCancelRequest as vt, ProfileKeyOf as vu, SurfaceWorkerOut as w, runPersonified as wa, defaultSelectWinner as wc, QuestionUrgency as wd, DriveTurnTick as wf, strategyAuthorContract as wi, TrajectoryReportFn as wl, CanonicalAgentProfileMaterializationAxis as wm, EdgeTraversal as wn, sample as wo, capDelegationTrace as wp, ReservationTicket as wr, CoordinationHttpAudit as ws, cancelWorker as wt, renderLeaderboardSvg as wu, SuperviseSurfaceOptions as x, createShapeRegistry as xa, RunAgentRoundsOptions as xc, QuestionOption as xd, DetachedTurn as xf, AuthoredStrategy as xi, SteerContext as xl, AGENT_PROFILE_MATERIALIZATION_AXES as xm, createInPlaceCliExecutor as xn, depthStrategy as xo, DelegationTraceCollector as xp, BudgetPoolRestore as xr, CoordinationPublicAddress as xs, WorkerSteerRequest as xt, pairwiseSignificance as xu, harvestSurfaceDiffs as y, trajectoryReport as ya, classifyDriverFailure as yc, QuestionEscalationTarget as yd, createSiblingSandboxExecutor as yf, selectChampion as yi, ScopeAnalyzeInput as yl, replaySpawnTree as ym, workerInteractiveAdmissionFile as yn, breadthStrategy as yo, DELEGATION_TRACE_MAX_SPANS as yp, createChatSessionStore as yr, CoordinationAuthentication as ys, WorkerCancellation as yt, ScoreOf as yu, NOTE_MAX_CHARS as z, buildSteerContext as za, Observation as zc, questionEscalationTargets as zd, SubmitInput as zf, SandboxRunAbortError as zi, PersonaExecutors as zl, renderProfileMaterializationIssues as zm, createPromptRegistry as zn, SuperviseRegistry as zo, PlannerError as zp, CheckSource as zr, StopRule as zs, workerCancelRequestsFile as zt, WaterfallCollector as zu };
9684
- //# sourceMappingURL=index-prZR0SAw.d.ts.map
9690
+ //# sourceMappingURL=index-JwBrfEmf.d.ts.map
package/dist/index.d.ts CHANGED
@@ -1,12 +1,12 @@
1
1
  import { $ as OpenAIChatToolChoice, A as RuntimeRunCompleteInput, B as AgentBackendInput, F as RuntimeRunRow, G as AgentTaskContext, H as AgentKnowledgeProvider, I as RuntimeRunStatus, J as AgentTaskStatus, K as AgentTaskRunResult, L as startRuntimeRun, M as RuntimeRunHandle, N as RuntimeRunOptions, P as RuntimeRunPersistenceAdapter, Q as OpenAIChatTool, R as AgentAdapter, U as AgentRuntimeEvent, V as AgentExecutionBackend, W as AgentRuntimeEventSink, X as KnowledgeReadinessDecision, Y as BackendErrorDetail, Z as OpenAIChatResponseFormat, at as RuntimeStreamEvent, et as RunAgentTaskOptions, it as RuntimeSessionStore, j as RuntimeRunCost, nt as RuntimeCanonicalStreamEvent, q as AgentTaskSpec, rt as RuntimeSession, tt as RunAgentTaskStreamOptions, z as AgentBackendContext } from "./types-Q0PMagdm.js";
2
2
  import { i as SurfaceImprovementEdit } from "./improvement-adapter-D5gwwoXQ.js";
3
3
  import { o as ImprovementProposalSource } from "./types-zWfqDjeL.js";
4
- import { Bp as RetainedInteractiveAdmissionError, Fp as BackendTransportError, Gp as ValidationError, Hp as RetainedRunAdmissionError, Ip as ConfigError, Lp as JudgeError, Np as AgentEvalError, Pp as AgentEvalErrorCode, Ro as SuperviseOptions, Rp as NotFoundError, Up as RetainedRunDispatchBindingError, Vp as RetainedInteractiveBindingError, Wp as RuntimeRunStateError, Wr as StructuralRolloutPolicy, fs as SupervisorProfile, nm as DeliverableSpec, zp as PlannerError } from "./index-prZR0SAw.js";
4
+ import { Bp as RetainedInteractiveAdmissionError, Fp as BackendTransportError, Gp as ValidationError, Hp as RetainedRunAdmissionError, Ip as ConfigError, Lp as JudgeError, Np as AgentEvalError, Pp as AgentEvalErrorCode, Ro as SuperviseOptions, Rp as NotFoundError, Up as RetainedRunDispatchBindingError, Vp as RetainedInteractiveBindingError, Wp as RuntimeRunStateError, Wr as StructuralRolloutPolicy, fs as SupervisorProfile, nm as DeliverableSpec, zp as PlannerError } from "./index-JwBrfEmf.js";
5
5
  import { $i as sanitizeAgentRuntimeEvent, Ai as OtelExporter, Bi as loopEventToOtelSpan, Ci as EvalRunGeneration, Di as LoopSpanNode, Ei as INTELLIGENCE_WIRE_VERSION, Fi as buildRuntimeEventOtelSpans, Gi as RuntimeStreamEventCollector, Hi as padTraceId, Ii as createOpenInferenceFileExporter, Ji as RuntimeTelemetryOptions, Ki as RuntimeStreamEventSink, Li as createOtelExporter, Mi as RuntimeEventOtelOptions, Ni as buildLoopOtelSpans, Oi as OtelAttribute, Pi as buildLoopSpanNodes, Qi as createRuntimeStreamEventCollector, Qn as Redactor, Ri as exportEvalRuns, Si as EvalRunEvent, Ti as EvalRunsExportResult, Ui as toOtelAttributes, Vi as padSpanId, Wi as RuntimeEventCollector, Xi as SanitizedKnowledgeRequirement, Yi as SanitizedKnowledgeReadinessReport, Zi as createRuntimeEventCollector, Zr as SupervisedResult, Zt as WorktreeCheckRunner, ea as sanitizeKnowledgeReadinessReport, h as ExecutorConfig, ir as Budget, ji as OtelSpan, ki as OtelExportConfig, pr as ExecutorFactory, qi as RuntimeStreamEventSummary, ta as sanitizeRuntimeStreamEvent, wi as EvalRunsExportConfig, zi as generateSpanId } from "./stream-agent-turn-CAj0XcwD.js";
6
6
  import { a as RuntimeHookErrorContext, c as RuntimeHookTarget, d as defineRuntimeHooks, f as notifyRuntimeDecisionPoint, i as RuntimeHookContext, l as RuntimeHooks, n as RuntimeDecisionKind, o as RuntimeHookEvent, p as notifyRuntimeHookEvent, r as RuntimeDecisionPoint, s as RuntimeHookPhase, t as RuntimeDecisionEvidenceRef, u as composeRuntimeHooks } from "./runtime-hooks-Bj6wJHlH.js";
7
7
  import { y as AgentCandidateOutputArtifactPort } from "./types-CuXu5zuS.js";
8
8
  import { $ as ImprovementProfilePopulationLineageNode, A as ImproveMethodResult, B as ImproveSkillsOptions, C as ImproveCost, D as ImproveMethodFactory, E as ImproveMethodContext, F as ImproveProfileComponents, G as ImprovementProfileCandidate, H as ImprovementCandidate, I as ImproveProfileSurface, J as ImprovementProfileCandidatePopulationUnavailable, K as ImprovementProfileCandidatePopulation, L as ImproveResult, M as ImproveOptimizationRunOptions, N as ImproveOptions, O as ImproveMethodLineage, P as ImproveProfileAgent, Q as ImprovementProfilePopulationLineage, R as ImproveRuntimeCodeGeneratorOptions, S as ImproveCodeRunOptions, T as ImproveLineage, U as ImprovementCodeCandidate, V as ImproveSurface, W as ImprovementMaterializedProfilePopulationCandidate, X as ImprovementProfilePopulationCandidate, Y as ImprovementProfilePopulationArtifactSource, Z as ImprovementProfilePopulationCandidateSource, _ as ImproveCandidateValidationInput, at as AgenticGeneratorOptions, b as ImproveCodeOptions, ct as AgenticGeneratorShotReceipt, dt as agenticGenerator, et as ImprovementProfilePopulationObservationSource, ft as commandVerifier, g as improve, i as AgentImprovementActivationTransition, it as AgenticGeneratorExecutorForWorktree, j as ImproveMethodSource, k as ImproveMethodOptions, lt as Verifier, mt as CandidateGenerator, n as AgentImprovementActivationResultStore, nt as DeepReadonly, ot as AgenticGeneratorShotDisposition, pt as defaultBuildPrompt, q as ImprovementProfileCandidatePopulationAvailable, rt as ReadonlyAgentProfile, st as AgenticGeneratorShotExecution, t as AgentImprovementActivationReconciliation, tt as ImprovementRefusedProfilePopulationCandidate, ut as VerifyResult, v as ImproveCandidateValidator, w as ImproveCustomCodeGeneratorOptions, x as ImproveCodeResult, y as ImproveCodeBaseOptions, z as ImproveScenarioPartitions } from "./activation-B_4qFpKR.js";
9
- import { _ as researchLoopRunner, a as DELEGATED_LOOP_MODES, c as DelegatedLoopResult, d as ResearchLoopRunnerOptions, f as RunDelegatedLoopOptions, g as isDelegatedLoopMode, h as auditLoopRunner, i as runLoopRunnerCli, l as DelegatedLoopRunner, m as WorktreeLoopRunnerOptions, n as LoopRunnerCliResult, o as DelegatedLoopMode, p as VetoedFact, r as parseLoopRunnerArgv, s as DelegatedLoopRegistry, t as LoopRunnerCliArgs, u as ResearchLoopResult, v as runDelegatedLoop, y as worktreeLoopRunner } from "./loop-runner-bin-CdLhMvhw.js";
9
+ import { _ as researchLoopRunner, a as DELEGATED_LOOP_MODES, c as DelegatedLoopResult, d as ResearchLoopRunnerOptions, f as RunDelegatedLoopOptions, g as isDelegatedLoopMode, h as auditLoopRunner, i as runLoopRunnerCli, l as DelegatedLoopRunner, m as WorktreeLoopRunnerOptions, n as LoopRunnerCliResult, o as DelegatedLoopMode, p as VetoedFact, r as parseLoopRunnerArgv, s as DelegatedLoopRegistry, t as LoopRunnerCliArgs, u as ResearchLoopResult, v as runDelegatedLoop, y as worktreeLoopRunner } from "./loop-runner-bin-DD3mqY76.js";
10
10
  import { n as mcpToolsForRuntimeMcpSubset, t as mcpToolsForRuntimeMcp } from "./openai-tools-CRQhVT_V.js";
11
11
  import { AgentCandidateBundle, AgentCandidateCapturedArtifact, AgentCandidateKnowledge, AgentProfile, Sha256Digest } from "@tangle-network/agent-interface";
12
12
  import { AgentProfile as AgentProfile$1, ControlBudget, ControlDecision, ControlEvalResult, ControlEvalResult as ControlEvalResult$1, ControlRunResult, ControlStep, DataAcquisitionPlan, KnowledgeReadinessReport, KnowledgeReadinessReport as KnowledgeReadinessReport$1, KnowledgeRequirement, MaximumCharge, ProposalFinding, RunRecord, RunRecord as RunRecord$1 } from "@tangle-network/agent-eval";
package/dist/index.js CHANGED
@@ -1,16 +1,16 @@
1
- import { $n as buildRuntimeEventOtelSpans, Hr as parseCommittedJsonLines, Mi as providerMessageText, Qn as buildLoopSpanNodes, Ur as prepareJsonlAppend, Vr as isNoEntError, Wr as writeAllBytes, Xn as INTELLIGENCE_WIRE_VERSION, Zn as buildLoopOtelSpans, ar as loopEventToOtelSpan, cr as toOtelAttributes, dr as sanitizeAgentRuntimeEvent, er as createOpenInferenceFileExporter, fr as sanitizeKnowledgeReadinessReport, ir as generateSpanId, li as executableAgentProfileSnapshot, lr as createRuntimeEventCollector, n as defaultRedactorIdentityMaterial, nr as exportEvalRuns, or as padSpanId, pr as sanitizeRuntimeStreamEvent, r as resolveRedactor, sr as padTraceId, t as defaultRedactor, tr as createOtelExporter, ur as createRuntimeStreamEventCollector } from "./redact-B1SbJVu9.js";
1
+ import { $n as buildRuntimeEventOtelSpans, Hr as parseCommittedJsonLines, Mi as providerMessageText, Qn as buildLoopSpanNodes, Ur as prepareJsonlAppend, Vr as isNoEntError, Wr as writeAllBytes, Xn as INTELLIGENCE_WIRE_VERSION, Zn as buildLoopOtelSpans, ar as loopEventToOtelSpan, cr as toOtelAttributes, dr as sanitizeAgentRuntimeEvent, er as createOpenInferenceFileExporter, fr as sanitizeKnowledgeReadinessReport, ir as generateSpanId, li as executableAgentProfileSnapshot, lr as createRuntimeEventCollector, n as defaultRedactorIdentityMaterial, nr as exportEvalRuns, or as padSpanId, pr as sanitizeRuntimeStreamEvent, r as resolveRedactor, sr as padTraceId, t as defaultRedactor, tr as createOtelExporter, ur as createRuntimeStreamEventCollector } from "./redact-73IRu8-T.js";
2
2
  import { a as JudgeError, c as RetainedInteractiveAdmissionError, d as RetainedRunDispatchBindingError, f as RuntimeRunStateError, i as ConfigError, l as RetainedInteractiveBindingError, m as ValidationError, o as NotFoundError, r as BackendTransportError, s as PlannerError, t as AgentEvalError, u as RetainedRunAdmissionError } from "./errors-DodWX-cb.js";
3
- import { F as InMemoryRuntimeSessionStore, I as newRuntimeSession, L as nowIso, M as createIterableBackend, N as createSandboxPromptBackend, O as optimizerMethod, P as normalizeBackendStreamEvent, R as startOrResumeRuntimeSession, j as streamAgentTurn, k as strategyAuthorMethod, z as touchSession } from "./structural-rollout-FBtZzm0q.js";
3
+ import { F as InMemoryRuntimeSessionStore, I as newRuntimeSession, L as nowIso, M as createIterableBackend, N as createSandboxPromptBackend, O as optimizerMethod, P as normalizeBackendStreamEvent, R as startOrResumeRuntimeSession, j as streamAgentTurn, k as strategyAuthorMethod, z as touchSession } from "./structural-rollout-Bzkfmwuo.js";
4
4
  import { t as assertExecutableAgentProfile } from "./model-policy-DKDyr-fc.js";
5
- import { It as McpSpawnFault, Lt as connectStdioMcp } from "./runtime-tA99kYBU.js";
5
+ import { It as McpSpawnFault, Lt as connectStdioMcp } from "./runtime-pw6TGY_D.js";
6
6
  import { i as notifyRuntimeHookEvent, n as defineRuntimeHooks, r as notifyRuntimeDecisionPoint, t as composeRuntimeHooks } from "./runtime-hooks-tXpAarhW.js";
7
- import { B as ROLLOUT_POLICY_EXTENSION, G as structuralRolloutPolicyFromProfile, H as normalizeRolloutPolicy, J as defaultBuildPrompt, K as agenticGenerator, L as improve, R as withMethodRuntimeControls, U as parseRolloutPolicy, V as applyRolloutPolicyToProfile, W as serializeRolloutPolicy, q as commandVerifier, z as rawTraceDistiller } from "./improvement-cycle-BxqzXYi8.js";
7
+ import { B as ROLLOUT_POLICY_EXTENSION, G as structuralRolloutPolicyFromProfile, H as normalizeRolloutPolicy, J as defaultBuildPrompt, K as agenticGenerator, L as improve, R as withMethodRuntimeControls, U as parseRolloutPolicy, V as applyRolloutPolicyToProfile, W as serializeRolloutPolicy, q as commandVerifier, z as rawTraceDistiller } from "./improvement-cycle-Bgm5fYr0.js";
8
8
  import { a as canonicalCandidateBytes, d as omitTopLevelDigest, l as embeddedCandidateArtifact, o as canonicalCandidateDigest$1, u as immutableCandidateValue } from "./protected-redaction-wGo44k2K.js";
9
9
  import { d as persistCandidateOutputArtifact } from "./prepare-Dc30WRB0.js";
10
- import { t as createAgentImprovementActivationResult } from "./activation-jkFJVJRN.js";
10
+ import { t as createAgentImprovementActivationResult } from "./activation-C4FzfZdf.js";
11
11
  import { i as sealAgentCandidateBundle, t as captureAgentCandidateWorkspace } from "./workspace-archive-CBX0hwL_.js";
12
- import { n as supervise } from "./supervise-dCZg-EB8.js";
13
- import { a as isDelegatedLoopMode, c as worktreeLoopRunner, i as auditLoopRunner, n as runLoopRunnerCli, o as researchLoopRunner, r as DELEGATED_LOOP_MODES, s as runDelegatedLoop, t as parseLoopRunnerArgv } from "./loop-runner-bin-CrRJTCHK.js";
12
+ import { n as supervise } from "./supervise-Cr3ZtFyh.js";
13
+ import { a as isDelegatedLoopMode, c as worktreeLoopRunner, i as auditLoopRunner, n as runLoopRunnerCli, o as researchLoopRunner, r as DELEGATED_LOOP_MODES, s as runDelegatedLoop, t as parseLoopRunnerArgv } from "./loop-runner-bin-DAzvKFYG.js";
14
14
  import { n as mcpToolsForRuntimeMcpSubset, t as mcpToolsForRuntimeMcp } from "./openai-tools-DoQ32vpe.js";
15
15
  import { agentCandidateKnowledgeSchema, agentProfileSchema, canonicalAgentProfileDigest, sha256DigestSchema } from "@tangle-network/agent-interface";
16
16
  import { FAILURE_CLASSES, acquisitionPlansForKnowledgeGaps, blockingKnowledgeEval, canonicalJson, runAgentControlLoop, scoreKnowledgeReadiness, userQuestionsForKnowledgeGaps } from "@tangle-network/agent-eval";
@@ -1,8 +1,8 @@
1
- import { $n as buildRuntimeEventOtelSpans, Zn as buildLoopOtelSpans, _n as resolveAgentEnvironmentProvider, r as resolveRedactor, rr as flatOtelSpan, t as defaultRedactor, tr as createOtelExporter } from "./redact-B1SbJVu9.js";
2
- import { C as optimizationActivationReceiptFromMetadata, D as agentImprovementProfileSurfaceDigest, E as agentImprovementProfileDiffs, F as isAgentImprovementProfileSurface, I as isAgentProfileMeasuredSurface, N as assertProfileImprovementTargetsShareIdentity, O as agentImprovementProfileSurfaceInput, P as buildAgentImprovementActivationTargets, S as createOptimizationActivationReceipt, T as AGENT_PROFILE_MEASURED_SURFACES, _ as profilePolicyWithBudget, a as executeAgentCandidateExperimentCell, b as profileTaskScenarioIdentity, d as verifyAgentImprovementActivation, f as verifyAgentImprovementProposal, g as profileImprovementMetadata, h as createProfileImprovementCostLedger, i as createAgentImprovementProposal, j as agentImprovementTargetProfileDiffs, l as reviewAgentImprovementProposal, m as verifyCandidateExecutionEvidence, n as createAgentImprovementActivation, o as proposeAgentImprovement, p as verifyAgentImprovementReview, r as createAgentImprovementMeasuredComparison, s as proposeAgentProfileImprovement, t as AgentCandidateExperimentCellExecutionError, u as runAgentCandidateExperiment, v as profilePreparationAccounting, w as AGENT_IMPROVEMENT_PROFILE_SURFACES, x as sealProfileImprovementBenchmark, y as profileStateDigest$1 } from "./improvement-cycle-BxqzXYi8.js";
1
+ import { $n as buildRuntimeEventOtelSpans, Zn as buildLoopOtelSpans, _n as resolveAgentEnvironmentProvider, r as resolveRedactor, rr as flatOtelSpan, t as defaultRedactor, tr as createOtelExporter } from "./redact-73IRu8-T.js";
2
+ import { C as optimizationActivationReceiptFromMetadata, D as agentImprovementProfileSurfaceDigest, E as agentImprovementProfileDiffs, F as isAgentImprovementProfileSurface, I as isAgentProfileMeasuredSurface, N as assertProfileImprovementTargetsShareIdentity, O as agentImprovementProfileSurfaceInput, P as buildAgentImprovementActivationTargets, S as createOptimizationActivationReceipt, T as AGENT_PROFILE_MEASURED_SURFACES, _ as profilePolicyWithBudget, a as executeAgentCandidateExperimentCell, b as profileTaskScenarioIdentity, d as verifyAgentImprovementActivation, f as verifyAgentImprovementProposal, g as profileImprovementMetadata, h as createProfileImprovementCostLedger, i as createAgentImprovementProposal, j as agentImprovementTargetProfileDiffs, l as reviewAgentImprovementProposal, m as verifyCandidateExecutionEvidence, n as createAgentImprovementActivation, o as proposeAgentImprovement, p as verifyAgentImprovementReview, r as createAgentImprovementMeasuredComparison, s as proposeAgentProfileImprovement, t as AgentCandidateExperimentCellExecutionError, u as runAgentCandidateExperiment, v as profilePreparationAccounting, w as AGENT_IMPROVEMENT_PROFILE_SURFACES, x as sealProfileImprovementBenchmark, y as profileStateDigest$1 } from "./improvement-cycle-Bgm5fYr0.js";
3
3
  import { o as canonicalCandidateDigest$1, u as immutableCandidateValue } from "./protected-redaction-wGo44k2K.js";
4
4
  import { A as omitUndefinedObjectFields, M as parseExactAgentProfile, a as AGENT_CANDIDATE_EXECUTION_SUPPORT, j as parseAgentCandidateProfileActivation, w as applyExactAgentProfileDiff } from "./prepare-Dc30WRB0.js";
5
- import { n as executeAgentImprovementActivation, r as verifyAgentImprovementActivationResult, t as createAgentImprovementActivationResult } from "./activation-jkFJVJRN.js";
5
+ import { n as executeAgentImprovementActivation, r as verifyAgentImprovementActivationResult, t as createAgentImprovementActivationResult } from "./activation-C4FzfZdf.js";
6
6
  import { n as exactProcessProviderAsCandidateExecutor, t as createProtectedAgentCandidateModelPort } from "./protected-model-port-D5gDcnrH.js";
7
7
  import { agentImprovementSourceSchema, agentProfileImprovementArmSchema, applyAgentProfileDiff } from "@tangle-network/agent-interface";
8
8
  import { contentHash } from "@tangle-network/agent-eval";
package/dist/kernel.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  import { C as MountRecorder, D as SelectionReceipt, E as SandboxClient, O as ValidationCtx, S as MountManifestEntry, T as RunProvenance, _ as LoopTeardownFailedPayload, a as Iteration, b as LoopTraceEvent, c as LoopIterationDispatchPayload, d as LoopLineageOptions, f as LoopPlanDescription, g as LoopStartedPayload, h as LoopSandboxPlacement, i as ExecCtx, k as Validator, l as LoopIterationEndedPayload, m as LoopResult, n as DefaultVerdict, o as LoopDecisionPayload, p as LoopPlanPayload, r as Driver, s as LoopEndedPayload, t as AgentRunSpec, u as LoopIterationStartedPayload, v as LoopTokenUsage, w as OutputAdapter, x as LoopWinner, y as LoopTraceEmitter } from "./types-Q0PMagdm.js";
2
- import { $ as WorkspaceRun, $a as Environment, $c as EqualKOnCost, $i as acquireSandbox, $l as LeaderboardScore, $n as freeSlots, $o as CoordinationBinding, $p as WatchTraceOptions, $r as modelAuthoredChecks, $s as FinalizeContext, $t as RunContext, $u as AuthorizeDownMessage, A as worktreeFanout, Aa as loopUntil, Ac as InProcessOnPrompt, Ad as WorkerResumeContext, Ai as StdioMcpConnection, Al as WidenLineage, Ao as SuperviseOptionsForDispatch, Ar as asAuthoredProfile, As as PriorCoordination, At as readWorkerCancellation, Au as defaultAuditorInstruction, B as VERIFY_TAIL_CHARS, Ba as createScopeAnalyst, Bc as ObservationAnalysis, Bi as TurnResult, Bl as RunPersonified, Bn as delegatesWorkerBriefPrompt, Bo as SuperviseRegistryTable, Br as CheckSourceCtx, Bs as allOf, Bt as workerCancellationFile, Bu as WaterfallReport, C as SurfaceWorkerConfig, Ca as definePersona, Cc as TerminalDecision, Ci as authorStrategy, Cl as TrajectoryReport, Cn as EdgeDeliveryOutcome, Co as runAgentic, Cr as ReservationRejection, Cs as serveCoordinationMcp, Ct as cancelRun, Cu as renderLeaderboardMarkdown, D as superviseSurface, Da as renderCorpusToInstructions, Dc as LocalSandboxClientOptions, Dd as SpawnPreflightContext, Di as MaterializeLocalMcpOptions, Dl as VerifySpec, Dn as GraphNode, Do as LoopDispatchOptions, Dr as AuthoredProfile, Ds as CoordinationLog, Dt as readRunCancelRequest, Du as AuditIntentOptions, E as failuresAnalyst, Ea as InMemoryCorpus, Ec as runAgentRounds, Ed as SpawnPreflight, Ei as LocalMcpMaterialization, El as Verify, En as GraphEdgeCapError, Eo as LoopCampaignDispatchOptions, Er as spendFromUsageEvents, Es as CoordinationDeliveryEvidence, Et as legacySupervisorRunsRoot, Eu as AuditIntentInput, F as readWorkerInteractiveBinding, Fa as widen, Fc as HarvestError, Fi as OpenSandboxRunBeforeStartContext, Fl as LoopShape, Fn as PromptHandle, Fo as AuthorizedSpawnContext, Fr as CheckExecChannel, Fs as ProgressTracker, Ft as safeWorkerFile, Fu as areaUnderCurve, G as CopyOptions, Ga as createMcpEnvironment, Gc as observe, Gi as SandboxLineage, Gl as DefinedLeaderboard, Gn as naiveContinuationPrompt, Go as ResolvedWorkerSpawnRetry, Gr as StructuralRolloutResult, Gs as plateau, Gt as workerSteerAcknowledgementFile, Gu as AnalystFindingEvent, H as closingWorkerNote, Ha as observationFromRegistry, Hc as ObserveInput, Hi as BranchCapableBox, Hl as ShapeBudget, Hn as dumbContinuationPassPrompt, Ho as supervise, Hr as StructuralRolloutConfig, Hs as anyOf, Ht as workerControlLogFile, Hu as createWaterfallCollector, I as workerInteractiveBindingFile, Ia as CreateScopeAnalystOptions, Ic as HarvestFailure, Ii as OpenSandboxRunOptions, Il as Outcome, In as PromptRegistry, Io as DEFAULT_AUTHORED_PROFILE_SECURITY_POLICY, Ir as CheckOutcome, Is as ProgressTrackerOptions, It as supervisorRunDir, Iu as bestSoFar, J as withUntrackedArtifacts, Ja as BenchmarkConfig, Jc as CombinatorShape, Ji as createSandboxLineage, Jl as LeaderboardBenchmarkAdapter, Jn as DispatchReport, Jo as WorkerSpawnRetryPolicy, Jp as BusRecord, Jr as compareCheckOutcomes, Js as SupervisorSpanOptions, Jt as workerSteerRequestsDir, Ju as AnalystRegistry, K as UntrackedCopyStats, Ka as sanitizeMcpToolSchema, Kc as renderReport, Ki as SandboxLineageHandle, Kl as LeaderboardBenchScore, Kn as promptHandle, Ko as WorkerSpawnRetryAttempt, Kr as VisibleCheck, Ks as sampleFromSettled, Kt as workerSteerAcknowledgementsDir, Ku as AnalystKind, L as workerInteractiveBindingsDir, La as RegistryAnalyzeProjection, Lc as HarvestReport, Ld as normalizeAnalyzeOnSettle, Li as OpenSandboxRunPromptOptions, Ll as Persona, Ln as RegisteredPrompt, Lo as DeliverableResolutionInput, Lr as CheckRunContext, Ls as ProgressView, Lt as supervisorRunsRoot, Lu as plateauLength, M as WorkerInteractiveBinding, Ma as pipeline, Mc as InProcessSandboxClientOptions, Md as WorkerWatchOptions, Mi as connectStdioMcp, Ml as WinnerStrategy, Mn as defaultEdgeTraversalCap, Mo as loopDispatch, Mr as defaultProfileRichnessThresholds, Ms as NoProgressForOptions, Mt as readWorkerSteerRequests, Mu as AnytimeStrategySummary, N as WorkerInteractiveProviderSource, Na as selectValidWinner, Nc as inProcessSandboxClient, Ni as materializeLocalMcp, Nl as DefinePersona, Nn as runGraph, No as superviseDispatch, Nr as profileRichnessFinding, Ns as PlateauOptions, Nt as runCancelRequestFile, Nu as AnytimeTaskCurve, O as AuthoredHarness, Oa as fanout, Oc as localSandboxClient, Od as SpawnRefusal, Oi as McpSpawnFault, Ol as Widen, On as GraphResult, Oo as LoopOptionsForDispatch, Or as ProfileRichness, Os as CoordinationOwnerId, Ot as readRunCancellation, Ou as IntentAudit, P as attachWorker, Pa as verify, Pc as HarvestCorpusOptions, Pd as canonicalFindingEvent, Pi as Deliverable, Pl as DefinePersonaInput, Po as AuthorizedSpawn, Pr as supervisorInstructions, Ps as ProgressSample, Pt as runCancellationFile, Pu as anytimeReport, Q as WorkspaceCommit, Qa as BenchmarkTaskRow, Qc as EqualKArm, Qi as AcquireOptions, Ql as LeaderboardScenario, Qn as effectiveConcurrency, Qo as withWorkerSpawnRetry, Qp as createEventBus, Qr as filterAuthoredAsserts, Qs as DeliveredOutput, Qt as InMemoryRunContextOptions, Qu as AuthoredAnalystLimits, R as EVIDENCE_MAX_CHARS, Ra as assertTraceDerivedFindings, Rc as harvestCorpus, Ri as SandboxRun, Rl as PersonaContext, Rn as analyzesFindingsReportPrompt, Ro as SuperviseOptions, Rr as CheckRunner, Rs as StopDecision, Rt as supervisorWorkersDir, Ru as renderAnytimeTable, S as SuperviseSurfaceResult, Sa as registerShape, Sc as TERMINAL_DECISIONS, Si as assertStrategyContract, Sl as TrajectoryNode, Sn as AgentGraph, So as refine, Sr as BudgetReadout, Ss as CoordinationTransportOptions, St as WriteWorkerSteerOptions, Su as renderLeaderboardHtml, T as analystsFromRegistry, Ta as FileCorpus, Tc as isTerminalDecision, Ti as strategyAuthorSystemPrompt, Tl as TrajectoryReportOptions, Tn as GraphEdge, To as sampleThenRefine, Tr as createBudgetPool, Ts as CoordinationHttpOptions, Tt as legacySupervisorRunDir, Tu as renderPairwiseMarkdown, U as composeWorkerEvidence, Ua as McpEndpoint, Uc as ObserveOptions, Ui as CheckpointCapableBox, Ul as ShapeContext, Un as formatPromptHandle, Ur as StructuralRolloutMessage, Us as createProgressTracker, Ut as workerInboxFile, V as WorkerEvidenceInput, Va as registryScopeAnalyst, Vc as ObservationError, Vi as openSandboxRun, Vl as RunPersonifiedOptions, Vn as dumbContinuationFailPrompt, Vr as RepairStop, Vs as allWorkersStalled, Vt as workerCancellationsDir, Vu as WaterfallSpan, W as settledWorkerOut, Wa as McpEnvironmentOptions, Wc as defaultAnalystInstruction, Wi as ForkCapableBox, Wl as ShapeRegistry, Wn as kernelPromptRegistry, Wo as workerFromBackend, Wr as StructuralRolloutPolicy, Ws as noProgressFor, Wt as workerInboxFileFromEventDir, X as Shell, Xa as BenchmarkReport, Xc as CorpusFilter, Xi as SandboxCapabilities, Xl as LeaderboardIterationInfo, Xn as DispatchUnit, Xo as resolveWorkerSpawnRetry, Xp as EventBus, Xr as defaultExtractCandidate, Xs as SupervisorSpanRecorder, Xt as writeWorkerSteer, Xu as AnalyzeOnSettleRoute, Y as GitWorkspaceOptions, Ya as BenchmarkLift, Yc as Corpus, Yi as CriuCapableClient, Yl as LeaderboardFlagSpec, Yn as DispatchStopReason, Yo as isPreSpawnExecutorFailure, Yp as BusStats, Yr as composeCheckSources, Ys as SupervisorSpanOutcome, Yt as workerSteersDir, Z as Workspace, Za as BenchmarkStrategySummary, Zc as CorpusRecord, Zi as probeSandboxCapabilities, Zl as LeaderboardRunContext, Zn as RollingDispatchOptions, Zo as retryPreSpawnRefusals, Zp as PublishOptions, Zr as defaultStructuralRolloutPolicy, Zs as createSupervisorSpanRecorder, Zt as InMemoryRunContext, Zu as AuthoredAnalystDefinition, _ as boxSurfaceReader, _a as assertProfileModelsAllowed, _c as DriverUnmetContractDecision, _d as QuestionEscalationOutcome, _i as pickChampion, _l as RenderCorpusToInstructionsOptions, _m as materializeTreeView, _n as WorkerInteractiveAdmission, _o as SurfaceScore, _r as chatTransportExecutor, _s as supervisorAgent, _t as RunCancellation, _u as PairwiseVerdict, a as SandboxInstance, aa as claimRetainedInteractiveControl, ac as runFinalizer, ai as visibleCheckScore, al as FanoutWinnerSelector, am as mapExecutorResult, an as SupervisorCleanupReceipt, ao as AgenticTask, as as ResolveDriveHarness, at as analyzeTrace, au as CompletionVerdict, b as AnalystAuthoring, ba as builtinShapes, bc as defaultUnmetContractSteer, bi as AuthorStrategyOptions, bl as ScopeWidenGate, bm as contentAddress, bn as InPlaceCliExecutorOptions, bo as defineStrategy, br as BudgetPool, bs as CoordinationMcpHandle, bt as WorkerSteerAcknowledgement, bu as leaderboard, c as VerifierEnvironmentOptions, ca as startRetainedInteractiveRun, cc as DriverAttemptsExhaustedError, cd as DefinedAnalystRecord, ci as EvolutionArchiveNode, cl as LoopUntilSpec, cm as InMemoryResultBlobStore, cn as patchDelivered, co as CorpusReadbackOptions, cr as CodeModeOptions, cs as SupervisorAgentDeps, ct as captureWorkerTraceEvidence, cu as sentinelCompletion, d as HarvestSurfaceDiffsOptions, da as PromotionGateOptions, dc as DriverProgressMark, dd as DownMessageDeliveryOutcome, di as EvolutionCandidate, dl as PanelJudge, dm as SpawnForestEvent, dn as createWorktreeCliExecutor, do as Strategy, dr as unsafeInProcessRunner, ds as SupervisorNodeContextSeed, dt as createRootHandle, du as GroupOf, ea as reconnectRetainedRun, ec as FinalizerSettled, ed as AuthorizedDownMessage, ei as officialChecksFromMeta, el as EqualKOnCostOptions, em as defaultToolDetectors, en as createFileRunContext, eo as printBenchmarkReport, er as queueOf, es as CoordinationToolFace, et as gitWorkspace, eu as LeaderboardSpec, f as SurfaceDiff, fa as PromotionVerdict, fc as DriverReentry, fd as DownMessageEvent, fi as EvolutionGeneration, fl as PanelSpec, fm as SpawnForestInDoubtNode, fn as InteractiveWorkerEnvironment, fo as StrategyArtifacts, fr as ChatCompletionsTransport, fs as SupervisorProfile, ft as createSupervisor, fu as Interval, g as WatchedSurface, ga as assertModelAllowed, gc as DriverUnmetContractContext, gi as discriminatingMeans, gl as RenderCorpusToInstructions, gm as loadSpawnForest, gn as workerFromInteractiveProvider, go as StrategyShotResult, gr as ChatWorkerSeamOptions, gs as resolveSupervisorProfile, gt as RunCancelRequest, gu as PairwiseOptions, h as SurfaceReader, ha as profileOptimizerModelCall, hc as DriverRetryPolicy, hi as StrategyEvolutionConfig, hl as PipelineStage, hm as SpawnForestTree, hn as InteractiveWorkerResult, ho as StrategyResult, hr as ChatTransportTool, hs as assertCoordinationBinding, ht as settledToIteration, hu as LeaderboardRow, i as SandboxEvent, ia as ClaimRetainedInteractiveControlOptions, ic as pickBestDelivered, id as CoordinationStats, ii as structuralRollout, il as FanoutSynthesis, im as gateOnDeliverable, in as ProvisionedSupervisor, io as AgenticSurface, ir as delegate, is as ObserveSupervisorNodeEvent, it as TrajectoryAnalysis, iu as CompletionPolicy, j as AttachWorkerOptions, ja as panel, jc as InProcessPromptCtx, jd as WorkerSpawnContext, ji as StdioMcpServerSpec, jl as WidenSpec, jn as TraversalContinuity, jo as loopCampaignDispatch, jr as assessAuthoredProfile, js as AllWorkersStalledOptions, jt as readWorkerSteerAcknowledgement, ju as AnytimeReport, k as WorktreeFanoutOptions, ka as flatWidenGate, kc as inlineSandboxClient, kd as SpawnRefusalCause, ki as McpToolDescriptor, kl as WidenDecision, kn as RunGraphOptions, ko as SuperviseDispatchOptions, kr as ProfileRichnessThresholds, ks as FileCoordinationLog, kt as readWorkerCancelRequests, ku as auditIntent, l as createVerifierEnvironment, la as ResolveSandboxClientOptions, lc as DriverBudgetReadout, ld as DownMessageAuthorizationInput, li as EvolutionAuthor, ll as LoopUntilState, lm as InMemorySpawnJournal, ln as WorktreeCliExecutorOptions, lo as RunAgenticOptions, lr as CodeModeRunner, lt as parseWorkerToolTraceArtifact, lu as stopSentinel, m as SurfaceReadOutcome, ma as profileChatClient, mc as DriverRepromptRefusal, md as MakeWorkerAgent, mi as ReproductionCheck, ml as Pipeline, mm as SpawnForestNode, mn as InteractiveWorkerOptions, mo as StrategyMessage, mr as ChatTransportExecutorOptions, ms as SupervisorToolInvocationContext, mt as createScope, mu as LeaderboardOptions, n as AnalystFinding, na as startRetainedRun, nc as bestDelivered, nd as ContinuityMode, ni as sandboxCheckRunner, nl as Fanout, nm as DeliverableSpec, nn as ProvisionSupervisorConnection, no as AgenticOptions, nr as DelegateOptions, ns as DriveHarness, nt as localShell, nu as CompletionAnalyst, o as computeFindingId, oa as reconnectRetainedInteractiveRun, oc as DriverAttemptRecord, oi as ChampionPick, ol as FlatWidenGate, om as FileResultBlobStore, on as provisionSupervisor, oo as AgenticTool, os as ResolveSupervisorTools, ot as WORKER_TOOL_TRACE_SCHEMA_VERSION, ou as completionAuthorizes, p as SurfaceReadBox, pa as promotionGate, pc as DriverRepromptPolicy, pd as EscalateQuestion, pi as EvolutionReport, pl as PanelVerdict, pm as SpawnForestMissingTree, pn as InteractiveWorkerKeyInput, po as StrategyCtx, pr as ChatSessionStore, ps as SupervisorToolDescriptor, pt as ScopeArgs, pu as Leaderboard, q as copyUntrackedIntoClone, qa as BenchmarkCell, qc as AssertTraceDerivedFindings, qi as SessionCapableBox, ql as LeaderboardBenchTask, qn as ConcurrencyCaps, qo as WorkerSpawnRetryHooks, qp as BusEvent, qr as canDisplace, qs as SupervisorSpanAttributes, qt as workerSteerRequestFile, qu as AnalystLensOutput, r as CreateSandboxOptions, ra as startRetainedRunInEnvironment, rc as collectDelivered, rd as CoordinationEvent, ri as selectBestIndex, rl as FanoutOptions, rm as ExecutorResultMapping, rn as ProvisionSupervisorRequest, ro as AgenticRunResult, rr as defaultDelegateBudget, rs as DriveHarnessOwnerContext, rt as runInWorkspace, ru as CompletionEvidence, s as makeFinding, sa as recoverRetainedInteractiveRun, sc as DriverAttemptStop, sd as DEFAULT_AWAIT_EVENT_TIMEOUT_MS, si as ChampionPolicy, sl as LoopUntil, sm as FileSpawnJournal, sn as PatchDeliverableOptions, so as ArtifactHandle, sr as finalizeBestDelivered, ss as ResolvedSupervisorProfile, st as WorkerToolTraceArtifact, su as deterministicCompletion, t as AgentProfile, ta as recoverRetainedRun, tc as SupervisorFinalizer, td as ContinuationInstruction, ti as resolveEntrySymbol, tl as EqualKVerdict, tm as watchTrace, tn as createInMemoryRunContext, to as runBenchmark, tr as rollingDispatch, ts as CoordinationVerbs, tt as jjWorkspace, tu as defineLeaderboard, u as BoxSurfaceReaderOptions, ua as resolveSandboxClient, uc as DriverContractState, ud as DownMessageDeliveryAttempt, ui as EvolutionBandInfo, ul as Panel, um as SpawnForest, un as WorktreePatchArtifact, uo as ShotSpec, ur as codeModeSupervisorTools, us as SupervisorNodeContext, ut as workerTraceAnalysisStore, uu as AxisScoresOf, v as fsSurfaceReader, va as equalKOnCost, vc as OnUnmetContract, vd as QuestionEscalationRecord, vi as runStrategyEvolution, vl as ScopeAnalyst, vm as pendingWaits, vn as readWorkerInteractiveAdmissions, vo as adaptiveRefine, vr as chatWorkerSeam, vt as WorkerCancelRequest, vu as ProfileKeyOf, w as SurfaceWorkerOut, wa as runPersonified, wc as defaultSelectWinner, wi as strategyAuthorContract, wl as TrajectoryReportFn, wn as EdgeTraversal, wo as sample, wr as ReservationTicket, ws as CoordinationHttpAudit, wt as cancelWorker, wu as renderLeaderboardSvg, x as SuperviseSurfaceOptions, xa as createShapeRegistry, xc as RunAgentRoundsOptions, xi as AuthoredStrategy, xl as SteerContext, xn as createInPlaceCliExecutor, xo as depthStrategy, xr as BudgetPoolRestore, xs as CoordinationPublicAddress, xt as WorkerSteerRequest, xu as pairwiseSignificance, y as harvestSurfaceDiffs, ya as trajectoryReport, yc as classifyDriverFailure, yi as selectChampion, yl as ScopeAnalyzeInput, ym as replaySpawnTree, yn as workerInteractiveAdmissionFile, yo as breadthStrategy, yr as createChatSessionStore, ys as CoordinationAuthentication, yt as WorkerCancellation, yu as ScoreOf, z as NOTE_MAX_CHARS, za as buildSteerContext, zc as Observation, zi as SandboxRunAbortError, zl as PersonaExecutors, zn as createPromptRegistry, zo as SuperviseRegistry, zr as CheckSource, zs as StopRule, zt as workerCancelRequestsFile, zu as WaterfallCollector } from "./index-prZR0SAw.js";
2
+ import { $ as WorkspaceRun, $a as Environment, $c as EqualKOnCost, $i as acquireSandbox, $l as LeaderboardScore, $n as freeSlots, $o as CoordinationBinding, $p as WatchTraceOptions, $r as modelAuthoredChecks, $s as FinalizeContext, $t as RunContext, $u as AuthorizeDownMessage, A as worktreeFanout, Aa as loopUntil, Ac as InProcessOnPrompt, Ad as WorkerResumeContext, Ai as StdioMcpConnection, Al as WidenLineage, Ao as SuperviseOptionsForDispatch, Ar as asAuthoredProfile, As as PriorCoordination, At as readWorkerCancellation, Au as defaultAuditorInstruction, B as VERIFY_TAIL_CHARS, Ba as createScopeAnalyst, Bc as ObservationAnalysis, Bi as TurnResult, Bl as RunPersonified, Bn as delegatesWorkerBriefPrompt, Bo as SuperviseRegistryTable, Br as CheckSourceCtx, Bs as allOf, Bt as workerCancellationFile, Bu as WaterfallReport, C as SurfaceWorkerConfig, Ca as definePersona, Cc as TerminalDecision, Ci as authorStrategy, Cl as TrajectoryReport, Cn as EdgeDeliveryOutcome, Co as runAgentic, Cr as ReservationRejection, Cs as serveCoordinationMcp, Ct as cancelRun, Cu as renderLeaderboardMarkdown, D as superviseSurface, Da as renderCorpusToInstructions, Dc as LocalSandboxClientOptions, Dd as SpawnPreflightContext, Di as MaterializeLocalMcpOptions, Dl as VerifySpec, Dn as GraphNode, Do as LoopDispatchOptions, Dr as AuthoredProfile, Ds as CoordinationLog, Dt as readRunCancelRequest, Du as AuditIntentOptions, E as failuresAnalyst, Ea as InMemoryCorpus, Ec as runAgentRounds, Ed as SpawnPreflight, Ei as LocalMcpMaterialization, El as Verify, En as GraphEdgeCapError, Eo as LoopCampaignDispatchOptions, Er as spendFromUsageEvents, Es as CoordinationDeliveryEvidence, Et as legacySupervisorRunsRoot, Eu as AuditIntentInput, F as readWorkerInteractiveBinding, Fa as widen, Fc as HarvestError, Fi as OpenSandboxRunBeforeStartContext, Fl as LoopShape, Fn as PromptHandle, Fo as AuthorizedSpawnContext, Fr as CheckExecChannel, Fs as ProgressTracker, Ft as safeWorkerFile, Fu as areaUnderCurve, G as CopyOptions, Ga as createMcpEnvironment, Gc as observe, Gi as SandboxLineage, Gl as DefinedLeaderboard, Gn as naiveContinuationPrompt, Go as ResolvedWorkerSpawnRetry, Gr as StructuralRolloutResult, Gs as plateau, Gt as workerSteerAcknowledgementFile, Gu as AnalystFindingEvent, H as closingWorkerNote, Ha as observationFromRegistry, Hc as ObserveInput, Hi as BranchCapableBox, Hl as ShapeBudget, Hn as dumbContinuationPassPrompt, Ho as supervise, Hr as StructuralRolloutConfig, Hs as anyOf, Ht as workerControlLogFile, Hu as createWaterfallCollector, I as workerInteractiveBindingFile, Ia as CreateScopeAnalystOptions, Ic as HarvestFailure, Ii as OpenSandboxRunOptions, Il as Outcome, In as PromptRegistry, Io as DEFAULT_AUTHORED_PROFILE_SECURITY_POLICY, Ir as CheckOutcome, Is as ProgressTrackerOptions, It as supervisorRunDir, Iu as bestSoFar, J as withUntrackedArtifacts, Ja as BenchmarkConfig, Jc as CombinatorShape, Ji as createSandboxLineage, Jl as LeaderboardBenchmarkAdapter, Jn as DispatchReport, Jo as WorkerSpawnRetryPolicy, Jp as BusRecord, Jr as compareCheckOutcomes, Js as SupervisorSpanOptions, Jt as workerSteerRequestsDir, Ju as AnalystRegistry, K as UntrackedCopyStats, Ka as sanitizeMcpToolSchema, Kc as renderReport, Ki as SandboxLineageHandle, Kl as LeaderboardBenchScore, Kn as promptHandle, Ko as WorkerSpawnRetryAttempt, Kr as VisibleCheck, Ks as sampleFromSettled, Kt as workerSteerAcknowledgementsDir, Ku as AnalystKind, L as workerInteractiveBindingsDir, La as RegistryAnalyzeProjection, Lc as HarvestReport, Ld as normalizeAnalyzeOnSettle, Li as OpenSandboxRunPromptOptions, Ll as Persona, Ln as RegisteredPrompt, Lo as DeliverableResolutionInput, Lr as CheckRunContext, Ls as ProgressView, Lt as supervisorRunsRoot, Lu as plateauLength, M as WorkerInteractiveBinding, Ma as pipeline, Mc as InProcessSandboxClientOptions, Md as WorkerWatchOptions, Mi as connectStdioMcp, Ml as WinnerStrategy, Mn as defaultEdgeTraversalCap, Mo as loopDispatch, Mr as defaultProfileRichnessThresholds, Ms as NoProgressForOptions, Mt as readWorkerSteerRequests, Mu as AnytimeStrategySummary, N as WorkerInteractiveProviderSource, Na as selectValidWinner, Nc as inProcessSandboxClient, Ni as materializeLocalMcp, Nl as DefinePersona, Nn as runGraph, No as superviseDispatch, Nr as profileRichnessFinding, Ns as PlateauOptions, Nt as runCancelRequestFile, Nu as AnytimeTaskCurve, O as AuthoredHarness, Oa as fanout, Oc as localSandboxClient, Od as SpawnRefusal, Oi as McpSpawnFault, Ol as Widen, On as GraphResult, Oo as LoopOptionsForDispatch, Or as ProfileRichness, Os as CoordinationOwnerId, Ot as readRunCancellation, Ou as IntentAudit, P as attachWorker, Pa as verify, Pc as HarvestCorpusOptions, Pd as canonicalFindingEvent, Pi as Deliverable, Pl as DefinePersonaInput, Po as AuthorizedSpawn, Pr as supervisorInstructions, Ps as ProgressSample, Pt as runCancellationFile, Pu as anytimeReport, Q as WorkspaceCommit, Qa as BenchmarkTaskRow, Qc as EqualKArm, Qi as AcquireOptions, Ql as LeaderboardScenario, Qn as effectiveConcurrency, Qo as withWorkerSpawnRetry, Qp as createEventBus, Qr as filterAuthoredAsserts, Qs as DeliveredOutput, Qt as InMemoryRunContextOptions, Qu as AuthoredAnalystLimits, R as EVIDENCE_MAX_CHARS, Ra as assertTraceDerivedFindings, Rc as harvestCorpus, Ri as SandboxRun, Rl as PersonaContext, Rn as analyzesFindingsReportPrompt, Ro as SuperviseOptions, Rr as CheckRunner, Rs as StopDecision, Rt as supervisorWorkersDir, Ru as renderAnytimeTable, S as SuperviseSurfaceResult, Sa as registerShape, Sc as TERMINAL_DECISIONS, Si as assertStrategyContract, Sl as TrajectoryNode, Sn as AgentGraph, So as refine, Sr as BudgetReadout, Ss as CoordinationTransportOptions, St as WriteWorkerSteerOptions, Su as renderLeaderboardHtml, T as analystsFromRegistry, Ta as FileCorpus, Tc as isTerminalDecision, Ti as strategyAuthorSystemPrompt, Tl as TrajectoryReportOptions, Tn as GraphEdge, To as sampleThenRefine, Tr as createBudgetPool, Ts as CoordinationHttpOptions, Tt as legacySupervisorRunDir, Tu as renderPairwiseMarkdown, U as composeWorkerEvidence, Ua as McpEndpoint, Uc as ObserveOptions, Ui as CheckpointCapableBox, Ul as ShapeContext, Un as formatPromptHandle, Ur as StructuralRolloutMessage, Us as createProgressTracker, Ut as workerInboxFile, V as WorkerEvidenceInput, Va as registryScopeAnalyst, Vc as ObservationError, Vi as openSandboxRun, Vl as RunPersonifiedOptions, Vn as dumbContinuationFailPrompt, Vr as RepairStop, Vs as allWorkersStalled, Vt as workerCancellationsDir, Vu as WaterfallSpan, W as settledWorkerOut, Wa as McpEnvironmentOptions, Wc as defaultAnalystInstruction, Wi as ForkCapableBox, Wl as ShapeRegistry, Wn as kernelPromptRegistry, Wo as workerFromBackend, Wr as StructuralRolloutPolicy, Ws as noProgressFor, Wt as workerInboxFileFromEventDir, X as Shell, Xa as BenchmarkReport, Xc as CorpusFilter, Xi as SandboxCapabilities, Xl as LeaderboardIterationInfo, Xn as DispatchUnit, Xo as resolveWorkerSpawnRetry, Xp as EventBus, Xr as defaultExtractCandidate, Xs as SupervisorSpanRecorder, Xt as writeWorkerSteer, Xu as AnalyzeOnSettleRoute, Y as GitWorkspaceOptions, Ya as BenchmarkLift, Yc as Corpus, Yi as CriuCapableClient, Yl as LeaderboardFlagSpec, Yn as DispatchStopReason, Yo as isPreSpawnExecutorFailure, Yp as BusStats, Yr as composeCheckSources, Ys as SupervisorSpanOutcome, Yt as workerSteersDir, Z as Workspace, Za as BenchmarkStrategySummary, Zc as CorpusRecord, Zi as probeSandboxCapabilities, Zl as LeaderboardRunContext, Zn as RollingDispatchOptions, Zo as retryPreSpawnRefusals, Zp as PublishOptions, Zr as defaultStructuralRolloutPolicy, Zs as createSupervisorSpanRecorder, Zt as InMemoryRunContext, Zu as AuthoredAnalystDefinition, _ as boxSurfaceReader, _a as assertProfileModelsAllowed, _c as DriverUnmetContractDecision, _d as QuestionEscalationOutcome, _i as pickChampion, _l as RenderCorpusToInstructionsOptions, _m as materializeTreeView, _n as WorkerInteractiveAdmission, _o as SurfaceScore, _r as chatTransportExecutor, _s as supervisorAgent, _t as RunCancellation, _u as PairwiseVerdict, a as SandboxInstance, aa as claimRetainedInteractiveControl, ac as runFinalizer, ai as visibleCheckScore, al as FanoutWinnerSelector, am as mapExecutorResult, an as SupervisorCleanupReceipt, ao as AgenticTask, as as ResolveDriveHarness, at as analyzeTrace, au as CompletionVerdict, b as AnalystAuthoring, ba as builtinShapes, bc as defaultUnmetContractSteer, bi as AuthorStrategyOptions, bl as ScopeWidenGate, bm as contentAddress, bn as InPlaceCliExecutorOptions, bo as defineStrategy, br as BudgetPool, bs as CoordinationMcpHandle, bt as WorkerSteerAcknowledgement, bu as leaderboard, c as VerifierEnvironmentOptions, ca as startRetainedInteractiveRun, cc as DriverAttemptsExhaustedError, cd as DefinedAnalystRecord, ci as EvolutionArchiveNode, cl as LoopUntilSpec, cm as InMemoryResultBlobStore, cn as patchDelivered, co as CorpusReadbackOptions, cr as CodeModeOptions, cs as SupervisorAgentDeps, ct as captureWorkerTraceEvidence, cu as sentinelCompletion, d as HarvestSurfaceDiffsOptions, da as PromotionGateOptions, dc as DriverProgressMark, dd as DownMessageDeliveryOutcome, di as EvolutionCandidate, dl as PanelJudge, dm as SpawnForestEvent, dn as createWorktreeCliExecutor, do as Strategy, dr as unsafeInProcessRunner, ds as SupervisorNodeContextSeed, dt as createRootHandle, du as GroupOf, ea as reconnectRetainedRun, ec as FinalizerSettled, ed as AuthorizedDownMessage, ei as officialChecksFromMeta, el as EqualKOnCostOptions, em as defaultToolDetectors, en as createFileRunContext, eo as printBenchmarkReport, er as queueOf, es as CoordinationToolFace, et as gitWorkspace, eu as LeaderboardSpec, f as SurfaceDiff, fa as PromotionVerdict, fc as DriverReentry, fd as DownMessageEvent, fi as EvolutionGeneration, fl as PanelSpec, fm as SpawnForestInDoubtNode, fn as InteractiveWorkerEnvironment, fo as StrategyArtifacts, fr as ChatCompletionsTransport, fs as SupervisorProfile, ft as createSupervisor, fu as Interval, g as WatchedSurface, ga as assertModelAllowed, gc as DriverUnmetContractContext, gi as discriminatingMeans, gl as RenderCorpusToInstructions, gm as loadSpawnForest, gn as workerFromInteractiveProvider, go as StrategyShotResult, gr as ChatWorkerSeamOptions, gs as resolveSupervisorProfile, gt as RunCancelRequest, gu as PairwiseOptions, h as SurfaceReader, ha as profileOptimizerModelCall, hc as DriverRetryPolicy, hi as StrategyEvolutionConfig, hl as PipelineStage, hm as SpawnForestTree, hn as InteractiveWorkerResult, ho as StrategyResult, hr as ChatTransportTool, hs as assertCoordinationBinding, ht as settledToIteration, hu as LeaderboardRow, i as SandboxEvent, ia as ClaimRetainedInteractiveControlOptions, ic as pickBestDelivered, id as CoordinationStats, ii as structuralRollout, il as FanoutSynthesis, im as gateOnDeliverable, in as ProvisionedSupervisor, io as AgenticSurface, ir as delegate, is as ObserveSupervisorNodeEvent, it as TrajectoryAnalysis, iu as CompletionPolicy, j as AttachWorkerOptions, ja as panel, jc as InProcessPromptCtx, jd as WorkerSpawnContext, ji as StdioMcpServerSpec, jl as WidenSpec, jn as TraversalContinuity, jo as loopCampaignDispatch, jr as assessAuthoredProfile, js as AllWorkersStalledOptions, jt as readWorkerSteerAcknowledgement, ju as AnytimeReport, k as WorktreeFanoutOptions, ka as flatWidenGate, kc as inlineSandboxClient, kd as SpawnRefusalCause, ki as McpToolDescriptor, kl as WidenDecision, kn as RunGraphOptions, ko as SuperviseDispatchOptions, kr as ProfileRichnessThresholds, ks as FileCoordinationLog, kt as readWorkerCancelRequests, ku as auditIntent, l as createVerifierEnvironment, la as ResolveSandboxClientOptions, lc as DriverBudgetReadout, ld as DownMessageAuthorizationInput, li as EvolutionAuthor, ll as LoopUntilState, lm as InMemorySpawnJournal, ln as WorktreeCliExecutorOptions, lo as RunAgenticOptions, lr as CodeModeRunner, lt as parseWorkerToolTraceArtifact, lu as stopSentinel, m as SurfaceReadOutcome, ma as profileChatClient, mc as DriverRepromptRefusal, md as MakeWorkerAgent, mi as ReproductionCheck, ml as Pipeline, mm as SpawnForestNode, mn as InteractiveWorkerOptions, mo as StrategyMessage, mr as ChatTransportExecutorOptions, ms as SupervisorToolInvocationContext, mt as createScope, mu as LeaderboardOptions, n as AnalystFinding, na as startRetainedRun, nc as bestDelivered, nd as ContinuityMode, ni as sandboxCheckRunner, nl as Fanout, nm as DeliverableSpec, nn as ProvisionSupervisorConnection, no as AgenticOptions, nr as DelegateOptions, ns as DriveHarness, nt as localShell, nu as CompletionAnalyst, o as computeFindingId, oa as reconnectRetainedInteractiveRun, oc as DriverAttemptRecord, oi as ChampionPick, ol as FlatWidenGate, om as FileResultBlobStore, on as provisionSupervisor, oo as AgenticTool, os as ResolveSupervisorTools, ot as WORKER_TOOL_TRACE_SCHEMA_VERSION, ou as completionAuthorizes, p as SurfaceReadBox, pa as promotionGate, pc as DriverRepromptPolicy, pd as EscalateQuestion, pi as EvolutionReport, pl as PanelVerdict, pm as SpawnForestMissingTree, pn as InteractiveWorkerKeyInput, po as StrategyCtx, pr as ChatSessionStore, ps as SupervisorToolDescriptor, pt as ScopeArgs, pu as Leaderboard, q as copyUntrackedIntoClone, qa as BenchmarkCell, qc as AssertTraceDerivedFindings, qi as SessionCapableBox, ql as LeaderboardBenchTask, qn as ConcurrencyCaps, qo as WorkerSpawnRetryHooks, qp as BusEvent, qr as canDisplace, qs as SupervisorSpanAttributes, qt as workerSteerRequestFile, qu as AnalystLensOutput, r as CreateSandboxOptions, ra as startRetainedRunInEnvironment, rc as collectDelivered, rd as CoordinationEvent, ri as selectBestIndex, rl as FanoutOptions, rm as ExecutorResultMapping, rn as ProvisionSupervisorRequest, ro as AgenticRunResult, rr as defaultDelegateBudget, rs as DriveHarnessOwnerContext, rt as runInWorkspace, ru as CompletionEvidence, s as makeFinding, sa as recoverRetainedInteractiveRun, sc as DriverAttemptStop, sd as DEFAULT_AWAIT_EVENT_TIMEOUT_MS, si as ChampionPolicy, sl as LoopUntil, sm as FileSpawnJournal, sn as PatchDeliverableOptions, so as ArtifactHandle, sr as finalizeBestDelivered, ss as ResolvedSupervisorProfile, st as WorkerToolTraceArtifact, su as deterministicCompletion, t as AgentProfile, ta as recoverRetainedRun, tc as SupervisorFinalizer, td as ContinuationInstruction, ti as resolveEntrySymbol, tl as EqualKVerdict, tm as watchTrace, tn as createInMemoryRunContext, to as runBenchmark, tr as rollingDispatch, ts as CoordinationVerbs, tt as jjWorkspace, tu as defineLeaderboard, u as BoxSurfaceReaderOptions, ua as resolveSandboxClient, uc as DriverContractState, ud as DownMessageDeliveryAttempt, ui as EvolutionBandInfo, ul as Panel, um as SpawnForest, un as WorktreePatchArtifact, uo as ShotSpec, ur as codeModeSupervisorTools, us as SupervisorNodeContext, ut as workerTraceAnalysisStore, uu as AxisScoresOf, v as fsSurfaceReader, va as equalKOnCost, vc as OnUnmetContract, vd as QuestionEscalationRecord, vi as runStrategyEvolution, vl as ScopeAnalyst, vm as pendingWaits, vn as readWorkerInteractiveAdmissions, vo as adaptiveRefine, vr as chatWorkerSeam, vt as WorkerCancelRequest, vu as ProfileKeyOf, w as SurfaceWorkerOut, wa as runPersonified, wc as defaultSelectWinner, wi as strategyAuthorContract, wl as TrajectoryReportFn, wn as EdgeTraversal, wo as sample, wr as ReservationTicket, ws as CoordinationHttpAudit, wt as cancelWorker, wu as renderLeaderboardSvg, x as SuperviseSurfaceOptions, xa as createShapeRegistry, xc as RunAgentRoundsOptions, xi as AuthoredStrategy, xl as SteerContext, xn as createInPlaceCliExecutor, xo as depthStrategy, xr as BudgetPoolRestore, xs as CoordinationPublicAddress, xt as WorkerSteerRequest, xu as pairwiseSignificance, y as harvestSurfaceDiffs, ya as trajectoryReport, yc as classifyDriverFailure, yi as selectChampion, yl as ScopeAnalyzeInput, ym as replaySpawnTree, yn as workerInteractiveAdmissionFile, yo as breadthStrategy, yr as createChatSessionStore, ys as CoordinationAuthentication, yt as WorkerCancellation, yu as ScoreOf, z as NOTE_MAX_CHARS, za as buildSteerContext, zc as Observation, zi as SandboxRunAbortError, zl as PersonaExecutors, zn as createPromptRegistry, zo as SuperviseRegistry, zr as CheckSource, zs as StopRule, zt as workerCancelRequestsFile, zu as WaterfallCollector } from "./index-JwBrfEmf.js";
3
3
  import { $ as resolveSecretEnv, $a as RetainedRunEnvironmentAdmission, $r as SupervisorOpts, $t as WorktreeHarnessResult, A as Inbox, Aa as RecoverRetainedInteractiveRunOptions, An as AUTHORITY_MARKERS, Ar as ProviderModelAttemptEvidence, At as providerAsExecutor, B as createSandboxToolPartState, Ba as RecoverRetainedRunIntentOptions, Bn as PeerMailSendInput, Br as Scope, Bt as CodexRolloutStoreReader, C as createExecutorRegistry, Ca as DEFAULT_STALL_AFTER_MS, Cn as ToolSpec, Cr as MaterializedModelIdentity, Ct as ProviderExecutorOptions, D as SteerableSandboxSession, Da as createActivityLog, Dn as ToolLoopCompactionOptions, Dr as NodeSnapshot, Dt as SandboxClientProviderOptions, E as SteerableSandboxArgs, Ea as WorkerProgress, En as ToolLoopCompaction, Er as NodeId, Et as ResourceRequest, F as SandboxOutputMarker, Fa as StartRetainedInteractiveRunOptions, Fn as PeerMailKind, Fr as RootHandle, Ft as SandboxControlClient, G as sandboxEventServedBackend, Ga as RetainedInteractiveIntentAdmission, Gn as isPeerMailEnvelope, Gr as SpawnPrior, Gt as createCodexRolloutStoreReader, H as extractLlmCallEvent, Ha as RecoverRetainedRunResult, Hn as PeerMailboxOptions, Hr as SpawnEvent, Ht as CodexRolloutTurn, I as SandboxServedBackend, Ia as NativeContextContinuationExecution, Ii as createOpenInferenceFileExporter, In as PeerMailLimits, Ir as RootMaterialization, It as createTangleSandboxExactProcessProvider, J as KeyProvider, Ja as RetainedRunAdmissionHook, Jr as SpendChannel, Jt as HarnessUsage, K as sandboxProgressEvents, Ka as RetainedInteractiveStartedAdmission, Kn as peerMailTools, Kr as SpawnRejection, Kt as harnessUsageIsEmpty, L as SandboxToolPartState, La as NativeContextContinuationHandle, Li as createOtelExporter, Ln as PeerMailOutcome, Lr as RootProviderModelEvidence, Lt as CodexForkBoundary, M as PeerInboxMessage, Ma as RetainedInteractiveEnvironmentInput, Mn as PEER_MAIL_WIRE_KEY, Mr as ResultBlobStore, Mt as resolveAgentEnvironmentProvider, N as createInbox, Na as RetainedInteractiveRunHandle, Nn as PeerMailEnvelope, Nr as ResumedKeyState, Nt as sandboxClientAsProvider, O as createSteerableSandboxSession, Oa as readWorkerProgress, On as ToolLoopMessageRecord, Or as NodeStatus, Ot as WorkspaceRequest, P as SandboxLeafOut, Pa as RetainedInteractiveStartMaterial, Pn as PeerMailEvent, Pr as ResumedWork, Pt as CreateTangleSandboxExactProcessProviderOptions, Q as resolveMcpServerLaunch, Qa as RetainedRunEffect, Qr as Supervisor, Qt as WorktreeCommandResult, R as SandboxUsageLedger, Ra as NativeContextContinuationInput, Rn as PeerMailReadout, Rr as RootSignal, Rt as CodexRolloutIdentity, S as createExecutor, Sa as ActivityNote, Sn as RouterTransportConfig, Sr as MaterializedExecutionIdentity, St as ProviderAsSandboxClientOptions, T as SandboxSteeringOptions, Ta as ScopeProgressInput, Tn as ToolLoopChat, Tr as NodeExecutionIdentity, Tt as ProviderPromptOptions, U as mapSandboxEvent, Ua as RetainedInteractiveAdmission, Un as claimsAuthority, Ur as SpawnJournal, Ut as CodexStoreDelta, V as createSandboxUsageLedger, Va as RecoverRetainedRunOptions, Vn as PeerMailbox, Vr as Settled, Vt as CodexRolloutStoreRef, W as mapSandboxToolEvent, Wa as RetainedInteractiveEnvironmentAdmission, Wn as createPeerMailbox, Wr as SpawnOpts, Wt as addHarnessUsage, X as envKeyProvider, Xa as RetainedRunCancellation, Xr as SteerableRootHandle, Xt as InPlaceHarnessResult, Y as ResolvedMcpServerLaunch, Ya as RetainedRunCancelOptions, Yr as SpendGap, Yt as decodeHarnessUsage, Z as mcpSecretEnvMetadataKey, Za as RetainedRunDispatchedAdmission, Zr as SupervisedResult, Zt as WorktreeCheckRunner, _ as RouterSeam, _a as TraceSource, _r as ExecutorRegistry, _t as CreateAgentEnvironmentInput, a as StreamAgentTurnOptions, aa as WaitProbeRegistry, ai as WaitOpts, ao as RetainedRunStartMaterial, at as AgentEnvironmentProviderRef, b as cliInPlaceExecutor, ba as sandboxSessionTraceSource, br as ExecutorToolCall, bt as ForkRequest, c as BridgeHarnessStore, ca as createWaitProbes, ci as WorkerInteractiveUnavailableReason, co as StartRetainedRunOptions, cr as ExecutorAccounting, ct as AgentEnvironmentStatus, d as CliInPlaceSeam, da as timerAt, di as WorkerTraceResolver, dr as ExecutorContext, dt as AgentSession, ei as TokenUsageProvenance, en as WorktreeProfileMaterializationReceipt, eo as RetainedRunEventOptions, et as secretEnvOfMcpServer, f as CliSeam, fa as validateWaitSpec, fi as WorkerTraceSeamCarrier, fr as ExecutorExecutionBinding, ft as AgentSessionRef, g as ProviderSeam, ga as ToolStepInput, gi as workerTraceSeamKey, gr as ExecutorProgressEvent, gt as CheckpointRequest, h as ExecutorConfig, ha as SessionTraceBox, hi as workerTraceHeaders, hr as ExecutorNodeContext, ht as CheckpointRef, i as CollectedAgentTurn, ia as WaitProbe, ii as UsageEvent, io as RetainedRunSnapshot, ir as Budget, it as AgentEnvironmentProvider, j as InboxMessage, ja as RetainedInteractiveAdmissionHook, jn as DEFAULT_PEER_MAIL_LIMITS, jr as ProviderModelExecutionEvidence, jt as providerAsSandboxClient, k as AuthorityInboxMessage, ka as ReconnectRetainedInteractiveRunOptions, kn as ToolLoopToolCall, kr as ProfileMaterializationReceipt, kt as createAgentEnvironmentProviderRegistry, l as BridgeModelCredential, la as isWaitOutcome, li as WorkerTraceEvidence, lr as ExecutorCancellation, lt as AgentEnvironmentSummary, m as CliWorktreeSeam, ma as SessionMessageLike, mi as workerTraceEnv, mr as ExecutorMaterialization, mt as AgentTurnResult, n as AgentTurnInput, na as PendingWait, ni as UnconfirmedTeardown, no as RetainedRunIntentAdmission, nr as AgentExecutionRef, nt as AgentEnvironmentCapabilities, o as collectAgentTurn, oa as WaitRejection, oi as WidenGate, oo as RetainedRunTurnInput, or as ExecutionBindingReceipt, ot as AgentEnvironmentProviderRegistry, p as CliWorktreeBridgeSeam, pa as waitUntil, pi as readWorkerTraceContext, pr as ExecutorFactory, pt as AgentSessionStatus, q as sumSandboxUsage, qa as RetainedRunAdmission, qn as peerMailVerbNames, qr as Spend, qt as readCodexRolloutSession, r as AgentTurnUsage, ra as WaitOutcome, ri as UnknownMaterializationReason, ro as RetainedRunReplayPoint, rr as AgentSpec, rt as AgentEnvironmentEvent, s as streamAgentTurn, sa as WaitSpec, si as WorkerInteractiveSession, so as StartRetainedRunInEnvironmentOptions, sr as Executor, st as AgentEnvironmentQuery, t as AgentTurnBackend, ti as TreeView, to as RetainedRunHandle, tr as Agent, tt as AgentEnvironment, u as BridgeSeam, ua as pollFor, ui as WorkerTraceUnavailableReason, ur as ExecutorCancellationRequest, ut as AgentProfileRef, v as RouterToolsSeam, va as createPushTraceSource, vr as ExecutorResult, vt as ExecRequest, w as DEFAULT_SANDBOX_STEERING_MAX_TURNS, wa as ExecutorProgress, wn as ToolLoopCallContext, wr as NoWinnerError, wt as ProviderLeafOut, x as cliWorktreeExecutor, xa as ActivityLog, xr as Handle, xt as PlacementInfo, y as SandboxSeam, ya as decodeToolPart, yr as ExecutorTeardownWarning, yt as ExecResult, z as assertSandboxServedModel, za as ReconnectRetainedRunOptions, zn as PeerMailRefusal, zr as Runtime, zt as CodexRolloutSession } from "./stream-agent-turn-CAj0XcwD.js";
4
4
  export { AUTHORITY_MARKERS, type AcquireOptions, type ActivityLog, type ActivityNote, type Agent, type AgentEnvironment, type AgentEnvironmentCapabilities, type AgentEnvironmentEvent, type AgentEnvironmentProvider, type AgentEnvironmentProviderRef, type AgentEnvironmentProviderRegistry, type AgentEnvironmentQuery, type AgentEnvironmentStatus, type AgentEnvironmentSummary, type AgentExecutionRef, type AgentGraph, type AgentProfile, type AgentProfileRef, type AgentRunSpec, type AgentSession, type AgentSessionRef, type AgentSessionStatus, type AgentSpec, type AgentTurnBackend, type AgentTurnInput, type AgentTurnResult, type AgentTurnUsage, type AgenticOptions, type AgenticRunResult, type AgenticSurface, type AgenticTask, type AgenticTool, type AllWorkersStalledOptions, type AnalystAuthoring, type AnalystFinding, type AnalystFindingEvent, type AnalystKind, type AnalystLensOutput, type AnalystRegistry, type AnalyzeOnSettleRoute, type AnytimeReport, type AnytimeStrategySummary, type AnytimeTaskCurve, type ArtifactHandle, type AssertTraceDerivedFindings, type AttachWorkerOptions, type AuditIntentInput, type AuditIntentOptions, type AuthorStrategyOptions, type AuthoredAnalystDefinition, type AuthoredAnalystLimits, type AuthoredHarness, type AuthoredProfile, type AuthoredStrategy, type AuthorityInboxMessage, type AuthorizeDownMessage, type AuthorizedDownMessage, type AuthorizedSpawn, type AuthorizedSpawnContext, type AxisScoresOf, type BenchmarkCell, type BenchmarkConfig, type BenchmarkLift, type BenchmarkReport, type BenchmarkStrategySummary, type BenchmarkTaskRow, type BoxSurfaceReaderOptions, type BranchCapableBox, type BridgeHarnessStore, type BridgeModelCredential, type BridgeSeam, type Budget, type BudgetPool, type BudgetPoolRestore, type BudgetReadout, type BusEvent, type BusRecord, type BusStats, type ChampionPick, type ChampionPolicy, type ChatCompletionsTransport, type ChatSessionStore, type ChatTransportExecutorOptions, type ChatTransportTool, type ChatWorkerSeamOptions, type CheckExecChannel, type CheckOutcome, type CheckRunContext, type CheckRunner, type CheckSource, type CheckSourceCtx, type CheckpointCapableBox, type CheckpointRef, type CheckpointRequest, type ClaimRetainedInteractiveControlOptions, type CliInPlaceSeam, type CliSeam, type CliWorktreeBridgeSeam, type CliWorktreeSeam, type CodeModeOptions, type CodeModeRunner, type CodexForkBoundary, type CodexRolloutIdentity, type CodexRolloutSession, type CodexRolloutStoreReader, type CodexRolloutStoreRef, type CodexRolloutTurn, type CodexStoreDelta, type CollectedAgentTurn, type CombinatorShape, type CompletionAnalyst, type CompletionEvidence, type CompletionPolicy, type CompletionVerdict, type ConcurrencyCaps, type ContinuationInstruction, type ContinuityMode, type CoordinationAuthentication, type CoordinationBinding, type CoordinationDeliveryEvidence, type CoordinationEvent, type CoordinationHttpAudit, type CoordinationHttpOptions, type CoordinationLog, type CoordinationMcpHandle, type CoordinationOwnerId, type CoordinationPublicAddress, type CoordinationStats, type CoordinationToolFace, type CoordinationTransportOptions, type CoordinationVerbs, type CopyOptions, type Corpus, type CorpusFilter, type CorpusReadbackOptions, type CorpusRecord, type CreateAgentEnvironmentInput, type CreateSandboxOptions, type CreateScopeAnalystOptions, type CreateTangleSandboxExactProcessProviderOptions, type CriuCapableClient, DEFAULT_AUTHORED_PROFILE_SECURITY_POLICY, DEFAULT_AWAIT_EVENT_TIMEOUT_MS, DEFAULT_PEER_MAIL_LIMITS, DEFAULT_SANDBOX_STEERING_MAX_TURNS, DEFAULT_STALL_AFTER_MS, type DefaultVerdict, type DefinePersona, type DefinePersonaInput, type DefinedAnalystRecord, type DefinedLeaderboard, type DelegateOptions, type Deliverable, type DeliverableResolutionInput, type DeliverableSpec, type DeliveredOutput, type DispatchReport, type DispatchStopReason, type DispatchUnit, type DownMessageAuthorizationInput, type DownMessageDeliveryAttempt, type DownMessageDeliveryOutcome, type DownMessageEvent, type DriveHarness, type DriveHarnessOwnerContext, type Driver, type DriverAttemptRecord, type DriverAttemptStop, DriverAttemptsExhaustedError, type DriverBudgetReadout, type DriverContractState, type DriverProgressMark, type DriverReentry, type DriverRepromptPolicy, type DriverRepromptRefusal, type DriverRetryPolicy, type DriverUnmetContractContext, type DriverUnmetContractDecision, EVIDENCE_MAX_CHARS, type EdgeDeliveryOutcome, type EdgeTraversal, type Environment, type EqualKArm, type EqualKOnCost, type EqualKOnCostOptions, type EqualKVerdict, type EscalateQuestion, type EventBus, type EvolutionArchiveNode, type EvolutionAuthor, type EvolutionBandInfo, type EvolutionCandidate, type EvolutionGeneration, type EvolutionReport, type ExecCtx, type ExecRequest, type ExecResult, type ExecutionBindingReceipt, type Executor, type ExecutorAccounting, type ExecutorCancellation, type ExecutorCancellationRequest, type ExecutorConfig, type ExecutorContext, type ExecutorExecutionBinding, type ExecutorFactory, type ExecutorMaterialization, type ExecutorNodeContext, type ExecutorProgress, type ExecutorProgressEvent, type ExecutorRegistry, type ExecutorResult, type ExecutorResultMapping, type ExecutorTeardownWarning, type ExecutorToolCall, type Fanout, type FanoutOptions, type FanoutSynthesis, type FanoutWinnerSelector, FileCoordinationLog, FileCorpus, FileResultBlobStore, FileSpawnJournal, type FinalizeContext, type FinalizerSettled, type FlatWidenGate, type ForkCapableBox, type ForkRequest, type GitWorkspaceOptions, type GraphEdge, GraphEdgeCapError, type GraphNode, type GraphResult, type GroupOf, type Handle, type HarnessUsage, type HarvestCorpusOptions, HarvestError, type HarvestFailure, type HarvestReport, type HarvestSurfaceDiffsOptions, InMemoryCorpus, InMemoryResultBlobStore, type InMemoryRunContext, type InMemoryRunContextOptions, InMemorySpawnJournal, type InPlaceCliExecutorOptions, type InPlaceHarnessResult, type InProcessOnPrompt, type InProcessPromptCtx, type InProcessSandboxClientOptions, type Inbox, type InboxMessage, type IntentAudit, type InteractiveWorkerEnvironment, type InteractiveWorkerKeyInput, type InteractiveWorkerOptions, type InteractiveWorkerResult, type Interval, type Iteration, type KeyProvider, type Leaderboard, type LeaderboardBenchScore, type LeaderboardBenchTask, type LeaderboardBenchmarkAdapter, type LeaderboardFlagSpec, type LeaderboardIterationInfo, type LeaderboardOptions, type LeaderboardRow, type LeaderboardRunContext, type LeaderboardScenario, type LeaderboardScore, type LeaderboardSpec, type LocalMcpMaterialization, type LocalSandboxClientOptions, type LoopCampaignDispatchOptions, type LoopDecisionPayload, type LoopDispatchOptions, type LoopEndedPayload, type LoopIterationDispatchPayload, type LoopIterationEndedPayload, type LoopIterationStartedPayload, type LoopLineageOptions, type LoopOptionsForDispatch, type LoopPlanDescription, type LoopPlanPayload, type LoopResult, type LoopSandboxPlacement, type LoopShape, type LoopStartedPayload, type LoopTeardownFailedPayload, type LoopTokenUsage, type LoopTraceEmitter, type LoopTraceEvent, type LoopUntil, type LoopUntilSpec, type LoopUntilState, type LoopWinner, type MakeWorkerAgent, type MaterializeLocalMcpOptions, type MaterializedExecutionIdentity, type MaterializedModelIdentity, type McpEndpoint, type McpEnvironmentOptions, McpSpawnFault, type McpToolDescriptor, type MountManifestEntry, type MountRecorder, NOTE_MAX_CHARS, type NativeContextContinuationExecution, type NativeContextContinuationHandle, type NativeContextContinuationInput, type NoProgressForOptions, type NoWinnerError, type NodeExecutionIdentity, type NodeId, type NodeSnapshot, type NodeStatus, type Observation, type ObservationAnalysis, ObservationError, type ObserveInput, type ObserveOptions, type ObserveSupervisorNodeEvent, type OnUnmetContract, type OpenSandboxRunBeforeStartContext, type OpenSandboxRunOptions, type OpenSandboxRunPromptOptions, type Outcome, type OutputAdapter, PEER_MAIL_WIRE_KEY, type PairwiseOptions, type PairwiseVerdict, type Panel, type PanelJudge, type PanelSpec, type PanelVerdict, type PatchDeliverableOptions, type PeerInboxMessage, type PeerMailEnvelope, type PeerMailEvent, type PeerMailKind, type PeerMailLimits, type PeerMailOutcome, type PeerMailReadout, type PeerMailRefusal, type PeerMailSendInput, type PeerMailbox, type PeerMailboxOptions, type PendingWait, type Persona, type PersonaContext, type PersonaExecutors, type Pipeline, type PipelineStage, type PlacementInfo, type PlateauOptions, type PriorCoordination, type ProfileKeyOf, type ProfileMaterializationReceipt, type ProfileRichness, type ProfileRichnessThresholds, type ProgressSample, type ProgressTracker, type ProgressTrackerOptions, type ProgressView, type PromotionGateOptions, type PromotionVerdict, type PromptHandle, type PromptRegistry, type ProviderAsSandboxClientOptions, type ProviderExecutorOptions, type ProviderLeafOut, type ProviderModelAttemptEvidence, type ProviderModelExecutionEvidence, type ProviderPromptOptions, type ProviderSeam, type ProvisionSupervisorConnection, type ProvisionSupervisorRequest, type ProvisionedSupervisor, type PublishOptions, type QuestionEscalationOutcome, type QuestionEscalationRecord, type ReconnectRetainedInteractiveRunOptions, type ReconnectRetainedRunOptions, type RecoverRetainedInteractiveRunOptions, type RecoverRetainedRunIntentOptions, type RecoverRetainedRunOptions, type RecoverRetainedRunResult, type RegisteredPrompt, type RegistryAnalyzeProjection, type RenderCorpusToInstructions, type RenderCorpusToInstructionsOptions, type RepairStop, type ReproductionCheck, type ReservationRejection, type ReservationTicket, type ResolveDriveHarness, type ResolveSandboxClientOptions, type ResolveSupervisorTools, type ResolvedMcpServerLaunch, type ResolvedSupervisorProfile, type ResolvedWorkerSpawnRetry, type ResourceRequest, type ResultBlobStore, type ResumedKeyState, type ResumedWork, type RetainedInteractiveAdmission, type RetainedInteractiveAdmissionHook, type RetainedInteractiveEnvironmentAdmission, type RetainedInteractiveEnvironmentInput, type RetainedInteractiveIntentAdmission, type RetainedInteractiveRunHandle, type RetainedInteractiveStartMaterial, type RetainedInteractiveStartedAdmission, type RetainedRunAdmission, type RetainedRunAdmissionHook, type RetainedRunCancelOptions, type RetainedRunCancellation, type RetainedRunDispatchedAdmission, type RetainedRunEffect, type RetainedRunEnvironmentAdmission, type RetainedRunEventOptions, type RetainedRunHandle, type RetainedRunIntentAdmission, type RetainedRunReplayPoint, type RetainedRunSnapshot, type RetainedRunStartMaterial, type RetainedRunTurnInput, type RollingDispatchOptions, type RootHandle, type RootMaterialization, type RootProviderModelEvidence, type RootSignal, type RouterSeam, type RouterToolsSeam, type RouterTransportConfig, type RunAgentRoundsOptions, type RunAgenticOptions, type RunCancelRequest, type RunCancellation, type RunContext, type RunGraphOptions, type RunPersonified, type RunPersonifiedOptions, type RunProvenance, type Runtime, type SandboxCapabilities, type SandboxClient, type SandboxClientProviderOptions, type SandboxControlClient, type SandboxEvent, type SandboxInstance, type SandboxLeafOut, type SandboxLineage, type SandboxLineageHandle, type SandboxOutputMarker, type SandboxRun, SandboxRunAbortError, type SandboxSeam, type SandboxServedBackend, type SandboxSteeringOptions, type SandboxToolPartState, type SandboxUsageLedger, type Scope, type ScopeAnalyst, type ScopeAnalyzeInput, type ScopeArgs, type ScopeProgressInput, type ScopeWidenGate, type ScoreOf, type SelectionReceipt, type SessionCapableBox, type SessionMessageLike, type SessionTraceBox, type Settled, type ShapeBudget, type ShapeContext, type ShapeRegistry, type Shell, type ShotSpec, type SpawnEvent, type SpawnForest, type SpawnForestEvent, type SpawnForestInDoubtNode, type SpawnForestMissingTree, type SpawnForestNode, type SpawnForestTree, type SpawnJournal, type SpawnOpts, type SpawnPreflight, type SpawnPreflightContext, type SpawnPrior, type SpawnRefusal, type SpawnRefusalCause, type SpawnRejection, type Spend, type SpendChannel, type SpendGap, type StartRetainedInteractiveRunOptions, type StartRetainedRunInEnvironmentOptions, type StartRetainedRunOptions, type StdioMcpConnection, type StdioMcpServerSpec, type SteerContext, type SteerableRootHandle, type SteerableSandboxArgs, type SteerableSandboxSession, type StopDecision, type StopRule, type Strategy, type StrategyArtifacts, type StrategyCtx, type StrategyEvolutionConfig, type StrategyMessage, type StrategyResult, type StrategyShotResult, type StreamAgentTurnOptions, type StructuralRolloutConfig, type StructuralRolloutMessage, type StructuralRolloutPolicy, type StructuralRolloutResult, type SuperviseDispatchOptions, type SuperviseOptions, type SuperviseOptionsForDispatch, type SuperviseRegistry, type SuperviseRegistryTable, type SuperviseSurfaceOptions, type SuperviseSurfaceResult, type SupervisedResult, type Supervisor, type SupervisorAgentDeps, type SupervisorCleanupReceipt, type SupervisorFinalizer, type SupervisorNodeContext, type SupervisorNodeContextSeed, type SupervisorOpts, type SupervisorProfile, type SupervisorSpanAttributes, type SupervisorSpanOptions, type SupervisorSpanOutcome, type SupervisorSpanRecorder, type SupervisorToolDescriptor, type SupervisorToolInvocationContext, type SurfaceDiff, type SurfaceReadBox, type SurfaceReadOutcome, type SurfaceReader, type SurfaceScore, type SurfaceWorkerConfig, type SurfaceWorkerOut, TERMINAL_DECISIONS, type TerminalDecision, type TokenUsageProvenance, type ToolLoopCallContext, type ToolLoopChat, type ToolLoopCompaction, type ToolLoopCompactionOptions, type ToolLoopMessageRecord, type ToolLoopToolCall, type ToolSpec, type ToolStepInput, type TraceSource, type TrajectoryAnalysis, type TrajectoryNode, type TrajectoryReport, type TrajectoryReportFn, type TrajectoryReportOptions, type TraversalContinuity, type TreeView, type TurnResult, type UnconfirmedTeardown, type UnknownMaterializationReason, type UntrackedCopyStats, type UsageEvent, VERIFY_TAIL_CHARS, type ValidationCtx, type Validator, type VerifierEnvironmentOptions, type Verify, type VerifySpec, type VisibleCheck, WORKER_TOOL_TRACE_SCHEMA_VERSION, type WaitOpts, type WaitOutcome, type WaitProbe, type WaitProbeRegistry, type WaitRejection, type WaitSpec, type WatchTraceOptions, type WatchedSurface, type WaterfallCollector, type WaterfallReport, type WaterfallSpan, type Widen, type WidenDecision, type WidenGate, type WidenLineage, type WidenSpec, type WinnerStrategy, type WorkerCancelRequest, type WorkerCancellation, type WorkerEvidenceInput, type WorkerInteractiveAdmission, type WorkerInteractiveBinding, type WorkerInteractiveProviderSource, type WorkerInteractiveSession, type WorkerInteractiveUnavailableReason, type WorkerProgress, type WorkerResumeContext, type WorkerSpawnContext, type WorkerSpawnRetryAttempt, type WorkerSpawnRetryHooks, type WorkerSpawnRetryPolicy, type WorkerSteerAcknowledgement, type WorkerSteerRequest, type WorkerToolTraceArtifact, type WorkerTraceEvidence, type WorkerTraceResolver, type WorkerTraceSeamCarrier, type WorkerTraceUnavailableReason, type WorkerWatchOptions, type Workspace, type WorkspaceCommit, type WorkspaceRequest, type WorkspaceRun, type WorktreeCheckRunner, type WorktreeCliExecutorOptions, type WorktreeCommandResult, type WorktreeFanoutOptions, type WorktreeHarnessResult, type WorktreePatchArtifact, type WorktreeProfileMaterializationReceipt, type WriteWorkerSteerOptions, acquireSandbox, adaptiveRefine, addHarnessUsage, allOf, allWorkersStalled, analystsFromRegistry, analyzeTrace, analyzesFindingsReportPrompt, anyOf, anytimeReport, areaUnderCurve, asAuthoredProfile, assertCoordinationBinding, assertModelAllowed, assertProfileModelsAllowed, assertSandboxServedModel, assertStrategyContract, assertTraceDerivedFindings, assessAuthoredProfile, attachWorker, auditIntent, authorStrategy, bestDelivered, bestSoFar, boxSurfaceReader, breadthStrategy, buildSteerContext, builtinShapes, canDisplace, cancelRun, cancelWorker, canonicalFindingEvent, captureWorkerTraceEvidence, chatTransportExecutor, chatWorkerSeam, claimRetainedInteractiveControl, claimsAuthority, classifyDriverFailure, cliInPlaceExecutor, cliWorktreeExecutor, closingWorkerNote, codeModeSupervisorTools, collectAgentTurn, collectDelivered, compareCheckOutcomes, completionAuthorizes, composeCheckSources, composeWorkerEvidence, computeFindingId, connectStdioMcp, contentAddress, copyUntrackedIntoClone, createActivityLog, createAgentEnvironmentProviderRegistry, createBudgetPool, createChatSessionStore, createCodexRolloutStoreReader, createEventBus, createExecutor, createExecutorRegistry, createFileRunContext, createInMemoryRunContext, createInPlaceCliExecutor, createInbox, createMcpEnvironment, createOpenInferenceFileExporter, createOtelExporter, createPeerMailbox, createProgressTracker, createPromptRegistry, createPushTraceSource, createRootHandle, createSandboxLineage, createSandboxToolPartState, createSandboxUsageLedger, createScope, createScopeAnalyst, createShapeRegistry, createSteerableSandboxSession, createSupervisor, createSupervisorSpanRecorder, createTangleSandboxExactProcessProvider, createVerifierEnvironment, createWaitProbes, createWaterfallCollector, createWorktreeCliExecutor, decodeHarnessUsage, decodeToolPart, defaultAnalystInstruction, defaultAuditorInstruction, defaultDelegateBudget, defaultEdgeTraversalCap, defaultExtractCandidate, defaultProfileRichnessThresholds, defaultSelectWinner, defaultStructuralRolloutPolicy, defaultToolDetectors, defaultUnmetContractSteer, defineLeaderboard, definePersona, defineStrategy, delegate, delegatesWorkerBriefPrompt, depthStrategy, deterministicCompletion, discriminatingMeans, dumbContinuationFailPrompt, dumbContinuationPassPrompt, effectiveConcurrency, envKeyProvider, equalKOnCost, extractLlmCallEvent, failuresAnalyst, fanout, filterAuthoredAsserts, finalizeBestDelivered, flatWidenGate, formatPromptHandle, freeSlots, fsSurfaceReader, gateOnDeliverable, gitWorkspace, harnessUsageIsEmpty, harvestCorpus, harvestSurfaceDiffs, inProcessSandboxClient, inlineSandboxClient, isPeerMailEnvelope, isPreSpawnExecutorFailure, isTerminalDecision, isWaitOutcome, jjWorkspace, kernelPromptRegistry, leaderboard, legacySupervisorRunDir, legacySupervisorRunsRoot, loadSpawnForest, localSandboxClient, localShell, loopCampaignDispatch, loopDispatch, loopUntil, makeFinding, mapExecutorResult, mapSandboxEvent, mapSandboxToolEvent, materializeLocalMcp, materializeTreeView, mcpSecretEnvMetadataKey, modelAuthoredChecks, naiveContinuationPrompt, noProgressFor, normalizeAnalyzeOnSettle, observationFromRegistry, observe, officialChecksFromMeta, openSandboxRun, pairwiseSignificance, panel, parseWorkerToolTraceArtifact, patchDelivered, peerMailTools, peerMailVerbNames, pendingWaits, pickBestDelivered, pickChampion, pipeline, plateau, plateauLength, pollFor, printBenchmarkReport, probeSandboxCapabilities, profileChatClient, profileOptimizerModelCall, profileRichnessFinding, promotionGate, promptHandle, providerAsExecutor, providerAsSandboxClient, provisionSupervisor, queueOf, readCodexRolloutSession, readRunCancelRequest, readRunCancellation, readWorkerCancelRequests, readWorkerCancellation, readWorkerInteractiveAdmissions, readWorkerInteractiveBinding, readWorkerProgress, readWorkerSteerAcknowledgement, readWorkerSteerRequests, readWorkerTraceContext, reconnectRetainedInteractiveRun, reconnectRetainedRun, recoverRetainedInteractiveRun, recoverRetainedRun, refine, registerShape, registryScopeAnalyst, renderAnytimeTable, renderCorpusToInstructions, renderLeaderboardHtml, renderLeaderboardMarkdown, renderLeaderboardSvg, renderPairwiseMarkdown, renderReport, replaySpawnTree, resolveAgentEnvironmentProvider, resolveEntrySymbol, resolveMcpServerLaunch, resolveSandboxClient, resolveSecretEnv, resolveSupervisorProfile, resolveWorkerSpawnRetry, retryPreSpawnRefusals, rollingDispatch, runAgentRounds, runAgentic, runBenchmark, runCancelRequestFile, runCancellationFile, runFinalizer, runGraph, runInWorkspace, runPersonified, runStrategyEvolution, safeWorkerFile, sample, sampleFromSettled, sampleThenRefine, sandboxCheckRunner, sandboxClientAsProvider, sandboxEventServedBackend, sandboxProgressEvents, sandboxSessionTraceSource, sanitizeMcpToolSchema, secretEnvOfMcpServer, selectBestIndex, selectChampion, selectValidWinner, sentinelCompletion, serveCoordinationMcp, settledToIteration, settledWorkerOut, spendFromUsageEvents, startRetainedInteractiveRun, startRetainedRun, startRetainedRunInEnvironment, stopSentinel, strategyAuthorContract, strategyAuthorSystemPrompt, streamAgentTurn, structuralRollout, sumSandboxUsage, supervise, superviseDispatch, superviseSurface, supervisorAgent, supervisorInstructions, supervisorRunDir, supervisorRunsRoot, supervisorWorkersDir, timerAt, trajectoryReport, unsafeInProcessRunner, validateWaitSpec, verify, visibleCheckScore, waitUntil, watchTrace, widen, withUntrackedArtifacts, withWorkerSpawnRetry, workerCancelRequestsFile, workerCancellationFile, workerCancellationsDir, workerControlLogFile, workerFromBackend, workerFromInteractiveProvider, workerInboxFile, workerInboxFileFromEventDir, workerInteractiveAdmissionFile, workerInteractiveBindingFile, workerInteractiveBindingsDir, workerSteerAcknowledgementFile, workerSteerAcknowledgementsDir, workerSteerRequestFile, workerSteerRequestsDir, workerSteersDir, workerTraceAnalysisStore, workerTraceEnv, workerTraceHeaders, workerTraceSeamKey, worktreeFanout, writeWorkerSteer };
package/dist/kernel.js CHANGED
@@ -1,11 +1,11 @@
1
- import { $t as spendFromUsageEvents, At as peerMailTools, B as workerInteractiveBindingFile, Bn as startRetainedRunInEnvironment, C as settledToIteration, Ct as createInbox, D as timerAt, Di as decodeHarnessUsage, Dt as claimsAuthority, E as pollFor, Ei as sumSandboxUsage, Et as PEER_MAIL_WIRE_KEY, Gn as readCodexRolloutSession, Gt as WORKER_TOOL_TRACE_SCHEMA_VERSION, H as reconnectRetainedInteractiveRun, Hn as addHarnessUsage, Ht as materializeTreeView, I as readWorkerInteractiveAdmissions, It as FileResultBlobStore, J as queueOf, Jt as parseWorkerToolTraceArtifact, K as effectiveConcurrency, Kt as captureWorkerTraceEvidence, L as workerInteractiveAdmissionFile, Ln as reconnectRetainedRun, Lt as FileSpawnJournal, O as validateWaitSpec, Ot as createPeerMailbox, Pt as createInPlaceCliExecutor, Qt as createBudgetPool, R as attachWorker, Rn as recoverRetainedRun, Rt as InMemoryResultBlobStore, Si as mapSandboxToolEvent, St as readWorkerProgress, T as isWaitOutcome, Ti as sandboxProgressEvents, Tt as DEFAULT_PEER_MAIL_LIMITS, U as recoverRetainedInteractiveRun, Un as createCodexRolloutStoreReader, Ut as pendingWaits, V as workerInteractiveBindingsDir, Vt as loadSpawnForest, W as startRetainedInteractiveRun, Wn as harnessUsageIsEmpty, Wt as replaySpawnTree, Xt as contentAddress, Y as rollingDispatch, Yt as workerTraceAnalysisStore, _i as createSandboxToolPartState, _n as resolveAgentEnvironmentProvider, _t as createPushTraceSource, a as createSupervisor, an as createSandboxLineage, at as cliWorktreeExecutor, bt as DEFAULT_STALL_AFTER_MS, c as pickBestDelivered, dt as readWorkerTraceContext, en as TERMINAL_DECISIONS, er as createOpenInferenceFileExporter, ft as workerTraceEnv, g as createScope, gn as providerAsSandboxClient, gt as createSteerableSandboxSession, hi as assertSandboxServedModel, hn as providerAsExecutor, ht as DEFAULT_SANDBOX_STEERING_MAX_TURNS, i as createRootHandle, in as runAgentRounds, it as cliInPlaceExecutor, jt as peerMailVerbNames, k as waitUntil, kt as isPeerMailEnvelope, l as runFinalizer, lt as createWorktreeCliExecutor, mn as createAgentEnvironmentProviderRegistry, mt as workerTraceSeamKey, nn as defaultSelectWinner, o as bestDelivered, on as probeSandboxCapabilities, ot as createExecutor, pt as workerTraceHeaders, q as freeSlots, rn as isTerminalDecision, s as collectDelivered, sn as acquireSandbox, st as createExecutorRegistry, tr as createOtelExporter, vi as createSandboxUsageLedger, vn as sandboxClientAsProvider, vt as decodeToolPart, w as createWaitProbes, wi as sandboxEventServedBackend, wt as AUTHORITY_MARKERS, xi as mapSandboxEvent, xt as createActivityLog, yi as extractLlmCallEvent, yt as sandboxSessionTraceSource, z as readWorkerInteractiveBinding, zn as startRetainedRun, zt as InMemorySpawnJournal } from "./redact-B1SbJVu9.js";
2
- import { A as collectAgentTurn, C as defaultAnalystInstruction, D as profileOptimizerModelCall, E as profileChatClient, S as ObservationError, T as renderReport, _ as depthStrategy, a as defaultStructuralRolloutPolicy, b as sample, c as officialChecksFromMeta, d as selectBestIndex, f as structuralRollout, g as defineStrategy, h as breadthStrategy, i as defaultExtractCandidate, j as streamAgentTurn, l as resolveEntrySymbol, m as adaptiveRefine, n as compareCheckOutcomes, o as filterAuthoredAsserts, p as visibleCheckScore, r as composeCheckSources, s as modelAuthoredChecks, t as canDisplace, u as sandboxCheckRunner, v as refine, w as observe, x as sampleThenRefine, y as runAgentic } from "./structural-rollout-FBtZzm0q.js";
1
+ import { $t as spendFromUsageEvents, At as peerMailTools, B as workerInteractiveBindingFile, Bn as startRetainedRunInEnvironment, C as settledToIteration, Ct as createInbox, D as timerAt, Di as decodeHarnessUsage, Dt as claimsAuthority, E as pollFor, Ei as sumSandboxUsage, Et as PEER_MAIL_WIRE_KEY, Gn as readCodexRolloutSession, Gt as WORKER_TOOL_TRACE_SCHEMA_VERSION, H as reconnectRetainedInteractiveRun, Hn as addHarnessUsage, Ht as materializeTreeView, I as readWorkerInteractiveAdmissions, It as FileResultBlobStore, J as queueOf, Jt as parseWorkerToolTraceArtifact, K as effectiveConcurrency, Kt as captureWorkerTraceEvidence, L as workerInteractiveAdmissionFile, Ln as reconnectRetainedRun, Lt as FileSpawnJournal, O as validateWaitSpec, Ot as createPeerMailbox, Pt as createInPlaceCliExecutor, Qt as createBudgetPool, R as attachWorker, Rn as recoverRetainedRun, Rt as InMemoryResultBlobStore, Si as mapSandboxToolEvent, St as readWorkerProgress, T as isWaitOutcome, Ti as sandboxProgressEvents, Tt as DEFAULT_PEER_MAIL_LIMITS, U as recoverRetainedInteractiveRun, Un as createCodexRolloutStoreReader, Ut as pendingWaits, V as workerInteractiveBindingsDir, Vt as loadSpawnForest, W as startRetainedInteractiveRun, Wn as harnessUsageIsEmpty, Wt as replaySpawnTree, Xt as contentAddress, Y as rollingDispatch, Yt as workerTraceAnalysisStore, _i as createSandboxToolPartState, _n as resolveAgentEnvironmentProvider, _t as createPushTraceSource, a as createSupervisor, an as createSandboxLineage, at as cliWorktreeExecutor, bt as DEFAULT_STALL_AFTER_MS, c as pickBestDelivered, dt as readWorkerTraceContext, en as TERMINAL_DECISIONS, er as createOpenInferenceFileExporter, ft as workerTraceEnv, g as createScope, gn as providerAsSandboxClient, gt as createSteerableSandboxSession, hi as assertSandboxServedModel, hn as providerAsExecutor, ht as DEFAULT_SANDBOX_STEERING_MAX_TURNS, i as createRootHandle, in as runAgentRounds, it as cliInPlaceExecutor, jt as peerMailVerbNames, k as waitUntil, kt as isPeerMailEnvelope, l as runFinalizer, lt as createWorktreeCliExecutor, mn as createAgentEnvironmentProviderRegistry, mt as workerTraceSeamKey, nn as defaultSelectWinner, o as bestDelivered, on as probeSandboxCapabilities, ot as createExecutor, pt as workerTraceHeaders, q as freeSlots, rn as isTerminalDecision, s as collectDelivered, sn as acquireSandbox, st as createExecutorRegistry, tr as createOtelExporter, vi as createSandboxUsageLedger, vn as sandboxClientAsProvider, vt as decodeToolPart, w as createWaitProbes, wi as sandboxEventServedBackend, wt as AUTHORITY_MARKERS, xi as mapSandboxEvent, xt as createActivityLog, yi as extractLlmCallEvent, yt as sandboxSessionTraceSource, z as readWorkerInteractiveBinding, zn as startRetainedRun, zt as InMemorySpawnJournal } from "./redact-73IRu8-T.js";
2
+ import { A as collectAgentTurn, C as defaultAnalystInstruction, D as profileOptimizerModelCall, E as profileChatClient, S as ObservationError, T as renderReport, _ as depthStrategy, a as defaultStructuralRolloutPolicy, b as sample, c as officialChecksFromMeta, d as selectBestIndex, f as structuralRollout, g as defineStrategy, h as breadthStrategy, i as defaultExtractCandidate, j as streamAgentTurn, l as resolveEntrySymbol, m as adaptiveRefine, n as compareCheckOutcomes, o as filterAuthoredAsserts, p as visibleCheckScore, r as composeCheckSources, s as modelAuthoredChecks, t as canDisplace, u as sandboxCheckRunner, v as refine, w as observe, x as sampleThenRefine, y as runAgentic } from "./structural-rollout-Bzkfmwuo.js";
3
3
  import { n as assertModelAllowed, r as assertProfileModelsAllowed } from "./model-policy-DKDyr-fc.js";
4
- import { $ as InMemoryCorpus, A as chatWorkerSeam, At as renderLeaderboardHtml, B as SandboxRunAbortError, Bt as sanitizeMcpToolSchema, C as withUntrackedArtifacts, Ct as superviseDispatch, D as codeModeSupervisorTools, Dt as stopSentinel, Et as sentinelCompletion, F as selectChampion, Ft as defaultAuditorInstruction, G as equalKOnCost, Gt as secretEnvOfMcpServer, H as printBenchmarkReport, Ht as mcpSecretEnvMetadataKey, I as assertStrategyContract, It as McpSpawnFault, J as runPersonified, K as trajectoryReport, Kt as createTangleSandboxExactProcessProvider, L as authorStrategy, Lt as connectStdioMcp, M as discriminatingMeans, Mt as renderLeaderboardSvg, N as pickChampion, Nt as renderPairwiseMarkdown, O as unsafeInProcessRunner, Ot as leaderboard, P as runStrategyEvolution, Pt as auditIntent, Q as FileCorpus, R as strategyAuthorContract, Rt as materializeLocalMcp, S as copyUntrackedIntoClone, St as loopDispatch, T as patchDelivered, Tt as deterministicCompletion, U as runBenchmark, Ut as resolveMcpServerLaunch, V as openSandboxRun, Vt as envKeyProvider, W as promotionGate, Wt as resolveSecretEnv, X as createShapeRegistry, Y as builtinShapes, Z as registerShape, _ as NOTE_MAX_CHARS, _t as defineLeaderboard, a as localShell, at as pipeline, b as composeWorkerEvidence, bt as inlineSandboxClient, c as createVerifierEnvironment, ct as widen, d as harvestSurfaceDiffs, dt as createScopeAnalyst, et as renderCorpusToInstructions, f as analystsFromRegistry, ft as registryScopeAnalyst, g as EVIDENCE_MAX_CHARS, gt as harvestCorpus, h as worktreeFanout, ht as HarvestError, i as jjWorkspace, it as panel, j as createChatSessionStore, jt as renderLeaderboardMarkdown, k as chatTransportExecutor, kt as pairwiseSignificance, l as boxSurfaceReader, lt as assertTraceDerivedFindings, m as superviseSurface, mt as inProcessSandboxClient, n as makeFinding, nt as flatWidenGate, o as runInWorkspace, ot as selectValidWinner, p as failuresAnalyst, pt as observationFromRegistry, q as definePersona, r as gitWorkspace, rt as loopUntil, s as createWaterfallCollector, st as verify, t as computeFindingId, tt as fanout, u as fsSurfaceReader, ut as buildSteerContext, v as VERIFY_TAIL_CHARS, vt as resolveSandboxClient, w as analyzeTrace, wt as completionAuthorizes, x as settledWorkerOut, xt as loopCampaignDispatch, y as closingWorkerNote, yt as localSandboxClient, z as strategyAuthorSystemPrompt, zt as createMcpEnvironment } from "./runtime-tA99kYBU.js";
5
- import { _ as serveCoordinationMcp, a as isPreSpawnExecutorFailure, b as mapExecutorResult, c as withWorkerSpawnRetry, d as resolveSupervisorProfile, f as supervisorAgent, g as defaultUnmetContractSteer, h as classifyDriverFailure, i as workerFromBackend, l as assertCoordinationBinding, m as DriverAttemptsExhaustedError, n as supervise, o as resolveWorkerSpawnRetry, s as retryPreSpawnRefusals, t as DEFAULT_AUTHORED_PROFILE_SECURITY_POLICY, v as createSupervisorSpanRecorder, y as gateOnDeliverable } from "./supervise-dCZg-EB8.js";
6
- import { A as defaultToolDetectors, E as normalizeAnalyzeOnSettle, M as createFileRunContext, N as createInMemoryRunContext, P as FileCoordinationLog, S as canonicalFindingEvent, _ as renderAnytimeTable, a as allOf, b as DEFAULT_AWAIT_EVENT_TIMEOUT_MS, c as createProgressTracker, f as sampleFromSettled, g as plateauLength, h as bestSoFar, i as finalizeBestDelivered, j as watchTrace, k as createEventBus, l as noProgressFor, m as areaUnderCurve, o as allWorkersStalled, p as anytimeReport, s as anyOf, u as plateau } from "./coordination-driver-MJuF_LIR.js";
4
+ import { $ as InMemoryCorpus, A as chatWorkerSeam, At as renderLeaderboardHtml, B as SandboxRunAbortError, Bt as sanitizeMcpToolSchema, C as withUntrackedArtifacts, Ct as superviseDispatch, D as codeModeSupervisorTools, Dt as stopSentinel, Et as sentinelCompletion, F as selectChampion, Ft as defaultAuditorInstruction, G as equalKOnCost, Gt as secretEnvOfMcpServer, H as printBenchmarkReport, Ht as mcpSecretEnvMetadataKey, I as assertStrategyContract, It as McpSpawnFault, J as runPersonified, K as trajectoryReport, Kt as createTangleSandboxExactProcessProvider, L as authorStrategy, Lt as connectStdioMcp, M as discriminatingMeans, Mt as renderLeaderboardSvg, N as pickChampion, Nt as renderPairwiseMarkdown, O as unsafeInProcessRunner, Ot as leaderboard, P as runStrategyEvolution, Pt as auditIntent, Q as FileCorpus, R as strategyAuthorContract, Rt as materializeLocalMcp, S as copyUntrackedIntoClone, St as loopDispatch, T as patchDelivered, Tt as deterministicCompletion, U as runBenchmark, Ut as resolveMcpServerLaunch, V as openSandboxRun, Vt as envKeyProvider, W as promotionGate, Wt as resolveSecretEnv, X as createShapeRegistry, Y as builtinShapes, Z as registerShape, _ as NOTE_MAX_CHARS, _t as defineLeaderboard, a as localShell, at as pipeline, b as composeWorkerEvidence, bt as inlineSandboxClient, c as createVerifierEnvironment, ct as widen, d as harvestSurfaceDiffs, dt as createScopeAnalyst, et as renderCorpusToInstructions, f as analystsFromRegistry, ft as registryScopeAnalyst, g as EVIDENCE_MAX_CHARS, gt as harvestCorpus, h as worktreeFanout, ht as HarvestError, i as jjWorkspace, it as panel, j as createChatSessionStore, jt as renderLeaderboardMarkdown, k as chatTransportExecutor, kt as pairwiseSignificance, l as boxSurfaceReader, lt as assertTraceDerivedFindings, m as superviseSurface, mt as inProcessSandboxClient, n as makeFinding, nt as flatWidenGate, o as runInWorkspace, ot as selectValidWinner, p as failuresAnalyst, pt as observationFromRegistry, q as definePersona, r as gitWorkspace, rt as loopUntil, s as createWaterfallCollector, st as verify, t as computeFindingId, tt as fanout, u as fsSurfaceReader, ut as buildSteerContext, v as VERIFY_TAIL_CHARS, vt as resolveSandboxClient, w as analyzeTrace, wt as completionAuthorizes, x as settledWorkerOut, xt as loopCampaignDispatch, y as closingWorkerNote, yt as localSandboxClient, z as strategyAuthorSystemPrompt, zt as createMcpEnvironment } from "./runtime-pw6TGY_D.js";
5
+ import { _ as serveCoordinationMcp, a as isPreSpawnExecutorFailure, b as mapExecutorResult, c as withWorkerSpawnRetry, d as resolveSupervisorProfile, f as supervisorAgent, g as defaultUnmetContractSteer, h as classifyDriverFailure, i as workerFromBackend, l as assertCoordinationBinding, m as DriverAttemptsExhaustedError, n as supervise, o as resolveWorkerSpawnRetry, s as retryPreSpawnRefusals, t as DEFAULT_AUTHORED_PROFILE_SECURITY_POLICY, v as createSupervisorSpanRecorder, y as gateOnDeliverable } from "./supervise-Cr3ZtFyh.js";
7
6
  import { C as workerInboxFileFromEventDir, D as workerSteerRequestsDir, E as workerSteerRequestFile, O as workerSteersDir, S as workerInboxFile, T as workerSteerAcknowledgementsDir, _ as supervisorWorkersDir, a as legacySupervisorRunsRoot, b as workerCancellationsDir, c as readWorkerCancelRequests, d as readWorkerSteerRequests, f as runCancelRequestFile, g as supervisorRunsRoot, h as supervisorRunDir, i as legacySupervisorRunDir, j as writeWorkerSteer, l as readWorkerCancellation, m as safeWorkerFile, n as cancelWorker, o as readRunCancelRequest, p as runCancellationFile, s as readRunCancellation, t as cancelRun, u as readWorkerSteerAcknowledgement, v as workerCancelRequestsFile, w as workerSteerAcknowledgementFile, x as workerControlLogFile, y as workerCancellationFile } from "./run-layout-B8I_LXN-.js";
8
- import { n as workerFromInteractiveProvider, r as claimRetainedInteractiveControl, t as provisionSupervisor } from "./provision-supervisor-BS4y6pVS.js";
9
- import { a as defaultProfileRichnessThresholds, i as assessAuthoredProfile, n as delegate, o as profileRichnessFinding, r as asAuthoredProfile, s as supervisorInstructions, t as defaultDelegateBudget } from "./delegate-BdLTkmND.js";
10
- import { a as analyzesFindingsReportPrompt, c as dumbContinuationFailPrompt, d as kernelPromptRegistry, f as naiveContinuationPrompt, l as dumbContinuationPassPrompt, n as defaultEdgeTraversalCap, o as createPromptRegistry, p as promptHandle, r as runGraph, s as delegatesWorkerBriefPrompt, t as GraphEdgeCapError, u as formatPromptHandle } from "./graph-DQN-oV1z.js";
7
+ import { A as watchTrace, M as createInMemoryRunContext, N as FileCoordinationLog, O as createEventBus, T as normalizeAnalyzeOnSettle, _ as renderAnytimeTable, a as allOf, c as createProgressTracker, f as sampleFromSettled, g as plateauLength, h as bestSoFar, i as finalizeBestDelivered, j as createFileRunContext, k as defaultToolDetectors, l as noProgressFor, m as areaUnderCurve, o as allWorkersStalled, p as anytimeReport, s as anyOf, u as plateau, x as canonicalFindingEvent, y as DEFAULT_AWAIT_EVENT_TIMEOUT_MS } from "./coordination-driver-CeORgR_y.js";
8
+ import { n as workerFromInteractiveProvider, r as claimRetainedInteractiveControl, t as provisionSupervisor } from "./provision-supervisor-CZ_YEGAm.js";
9
+ import { a as defaultProfileRichnessThresholds, i as assessAuthoredProfile, n as delegate, o as profileRichnessFinding, r as asAuthoredProfile, s as supervisorInstructions, t as defaultDelegateBudget } from "./delegate-Y8HERQ-0.js";
10
+ import { a as analyzesFindingsReportPrompt, c as dumbContinuationFailPrompt, d as kernelPromptRegistry, f as naiveContinuationPrompt, l as dumbContinuationPassPrompt, n as defaultEdgeTraversalCap, o as createPromptRegistry, p as promptHandle, r as runGraph, s as delegatesWorkerBriefPrompt, t as GraphEdgeCapError, u as formatPromptHandle } from "./graph-BeKgH5yz.js";
11
11
  export { AUTHORITY_MARKERS, DEFAULT_AUTHORED_PROFILE_SECURITY_POLICY, DEFAULT_AWAIT_EVENT_TIMEOUT_MS, DEFAULT_PEER_MAIL_LIMITS, DEFAULT_SANDBOX_STEERING_MAX_TURNS, DEFAULT_STALL_AFTER_MS, DriverAttemptsExhaustedError, EVIDENCE_MAX_CHARS, FileCoordinationLog, FileCorpus, FileResultBlobStore, FileSpawnJournal, GraphEdgeCapError, HarvestError, InMemoryCorpus, InMemoryResultBlobStore, InMemorySpawnJournal, McpSpawnFault, NOTE_MAX_CHARS, ObservationError, PEER_MAIL_WIRE_KEY, SandboxRunAbortError, TERMINAL_DECISIONS, VERIFY_TAIL_CHARS, WORKER_TOOL_TRACE_SCHEMA_VERSION, acquireSandbox, adaptiveRefine, addHarnessUsage, allOf, allWorkersStalled, analystsFromRegistry, analyzeTrace, analyzesFindingsReportPrompt, anyOf, anytimeReport, areaUnderCurve, asAuthoredProfile, assertCoordinationBinding, assertModelAllowed, assertProfileModelsAllowed, assertSandboxServedModel, assertStrategyContract, assertTraceDerivedFindings, assessAuthoredProfile, attachWorker, auditIntent, authorStrategy, bestDelivered, bestSoFar, boxSurfaceReader, breadthStrategy, buildSteerContext, builtinShapes, canDisplace, cancelRun, cancelWorker, canonicalFindingEvent, captureWorkerTraceEvidence, chatTransportExecutor, chatWorkerSeam, claimRetainedInteractiveControl, claimsAuthority, classifyDriverFailure, cliInPlaceExecutor, cliWorktreeExecutor, closingWorkerNote, codeModeSupervisorTools, collectAgentTurn, collectDelivered, compareCheckOutcomes, completionAuthorizes, composeCheckSources, composeWorkerEvidence, computeFindingId, connectStdioMcp, contentAddress, copyUntrackedIntoClone, createActivityLog, createAgentEnvironmentProviderRegistry, createBudgetPool, createChatSessionStore, createCodexRolloutStoreReader, createEventBus, createExecutor, createExecutorRegistry, createFileRunContext, createInMemoryRunContext, createInPlaceCliExecutor, createInbox, createMcpEnvironment, createOpenInferenceFileExporter, createOtelExporter, createPeerMailbox, createProgressTracker, createPromptRegistry, createPushTraceSource, createRootHandle, createSandboxLineage, createSandboxToolPartState, createSandboxUsageLedger, createScope, createScopeAnalyst, createShapeRegistry, createSteerableSandboxSession, createSupervisor, createSupervisorSpanRecorder, createTangleSandboxExactProcessProvider, createVerifierEnvironment, createWaitProbes, createWaterfallCollector, createWorktreeCliExecutor, decodeHarnessUsage, decodeToolPart, defaultAnalystInstruction, defaultAuditorInstruction, defaultDelegateBudget, defaultEdgeTraversalCap, defaultExtractCandidate, defaultProfileRichnessThresholds, defaultSelectWinner, defaultStructuralRolloutPolicy, defaultToolDetectors, defaultUnmetContractSteer, defineLeaderboard, definePersona, defineStrategy, delegate, delegatesWorkerBriefPrompt, depthStrategy, deterministicCompletion, discriminatingMeans, dumbContinuationFailPrompt, dumbContinuationPassPrompt, effectiveConcurrency, envKeyProvider, equalKOnCost, extractLlmCallEvent, failuresAnalyst, fanout, filterAuthoredAsserts, finalizeBestDelivered, flatWidenGate, formatPromptHandle, freeSlots, fsSurfaceReader, gateOnDeliverable, gitWorkspace, harnessUsageIsEmpty, harvestCorpus, harvestSurfaceDiffs, inProcessSandboxClient, inlineSandboxClient, isPeerMailEnvelope, isPreSpawnExecutorFailure, isTerminalDecision, isWaitOutcome, jjWorkspace, kernelPromptRegistry, leaderboard, legacySupervisorRunDir, legacySupervisorRunsRoot, loadSpawnForest, localSandboxClient, localShell, loopCampaignDispatch, loopDispatch, loopUntil, makeFinding, mapExecutorResult, mapSandboxEvent, mapSandboxToolEvent, materializeLocalMcp, materializeTreeView, mcpSecretEnvMetadataKey, modelAuthoredChecks, naiveContinuationPrompt, noProgressFor, normalizeAnalyzeOnSettle, observationFromRegistry, observe, officialChecksFromMeta, openSandboxRun, pairwiseSignificance, panel, parseWorkerToolTraceArtifact, patchDelivered, peerMailTools, peerMailVerbNames, pendingWaits, pickBestDelivered, pickChampion, pipeline, plateau, plateauLength, pollFor, printBenchmarkReport, probeSandboxCapabilities, profileChatClient, profileOptimizerModelCall, profileRichnessFinding, promotionGate, promptHandle, providerAsExecutor, providerAsSandboxClient, provisionSupervisor, queueOf, readCodexRolloutSession, readRunCancelRequest, readRunCancellation, readWorkerCancelRequests, readWorkerCancellation, readWorkerInteractiveAdmissions, readWorkerInteractiveBinding, readWorkerProgress, readWorkerSteerAcknowledgement, readWorkerSteerRequests, readWorkerTraceContext, reconnectRetainedInteractiveRun, reconnectRetainedRun, recoverRetainedInteractiveRun, recoverRetainedRun, refine, registerShape, registryScopeAnalyst, renderAnytimeTable, renderCorpusToInstructions, renderLeaderboardHtml, renderLeaderboardMarkdown, renderLeaderboardSvg, renderPairwiseMarkdown, renderReport, replaySpawnTree, resolveAgentEnvironmentProvider, resolveEntrySymbol, resolveMcpServerLaunch, resolveSandboxClient, resolveSecretEnv, resolveSupervisorProfile, resolveWorkerSpawnRetry, retryPreSpawnRefusals, rollingDispatch, runAgentRounds, runAgentic, runBenchmark, runCancelRequestFile, runCancellationFile, runFinalizer, runGraph, runInWorkspace, runPersonified, runStrategyEvolution, safeWorkerFile, sample, sampleFromSettled, sampleThenRefine, sandboxCheckRunner, sandboxClientAsProvider, sandboxEventServedBackend, sandboxProgressEvents, sandboxSessionTraceSource, sanitizeMcpToolSchema, secretEnvOfMcpServer, selectBestIndex, selectChampion, selectValidWinner, sentinelCompletion, serveCoordinationMcp, settledToIteration, settledWorkerOut, spendFromUsageEvents, startRetainedInteractiveRun, startRetainedRun, startRetainedRunInEnvironment, stopSentinel, strategyAuthorContract, strategyAuthorSystemPrompt, streamAgentTurn, structuralRollout, sumSandboxUsage, supervise, superviseDispatch, superviseSurface, supervisorAgent, supervisorInstructions, supervisorRunDir, supervisorRunsRoot, supervisorWorkersDir, timerAt, trajectoryReport, unsafeInProcessRunner, validateWaitSpec, verify, visibleCheckScore, waitUntil, watchTrace, widen, withUntrackedArtifacts, withWorkerSpawnRetry, workerCancelRequestsFile, workerCancellationFile, workerCancellationsDir, workerControlLogFile, workerFromBackend, workerFromInteractiveProvider, workerInboxFile, workerInboxFileFromEventDir, workerInteractiveAdmissionFile, workerInteractiveBindingFile, workerInteractiveBindingsDir, workerSteerAcknowledgementFile, workerSteerAcknowledgementsDir, workerSteerRequestFile, workerSteerRequestsDir, workerSteersDir, workerTraceAnalysisStore, workerTraceEnv, workerTraceHeaders, workerTraceSeamKey, worktreeFanout, writeWorkerSteer };
@@ -1,6 +1,6 @@
1
- import { st as createExecutorRegistry } from "./redact-B1SbJVu9.js";
1
+ import { st as createExecutorRegistry } from "./redact-73IRu8-T.js";
2
2
  import { i as ConfigError } from "./errors-DodWX-cb.js";
3
- import { J as runPersonified, h as worktreeFanout, q as definePersona } from "./runtime-tA99kYBU.js";
3
+ import { J as runPersonified, h as worktreeFanout, q as definePersona } from "./runtime-pw6TGY_D.js";
4
4
  import { t as runAnalystLoop } from "./analyst-loop-DZw5QWT9.js";
5
5
  import { t as createKbGate } from "./kb-gate-DpaSwXVx.js";
6
6
  //#region src/loop-runner.ts
@@ -243,4 +243,4 @@ if (invokedScript && /loop-runner-bin\.(js|ts|mjs)$/.test(invokedScript)) main()
243
243
  //#endregion
244
244
  export { isDelegatedLoopMode as a, worktreeLoopRunner as c, auditLoopRunner as i, runLoopRunnerCli as n, researchLoopRunner as o, DELEGATED_LOOP_MODES as r, runDelegatedLoop as s, parseLoopRunnerArgv as t };
245
245
 
246
- //# sourceMappingURL=loop-runner-bin-CrRJTCHK.js.map
246
+ //# sourceMappingURL=loop-runner-bin-DAzvKFYG.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"loop-runner-bin-CrRJTCHK.js","names":[],"sources":["../src/loop-runner.ts","../src/loop-runner-bin.ts"],"sourcesContent":["/**\n *\n * `runDelegatedLoop` — the configured delegated loop-runner.\n *\n * One typed entrypoint a worker agent (or a scheduled routine) calls to run a\n * disciplined loop in a chosen MODE, over agent-runtime's hardened engines:\n *\n * code → build-in-a-loop on the GENERIC recursive path (worktreeLoopRunner: author one\n * `AgentProfile` per harness → worktree-CLI leaves → `patchDelivered` gate)\n * review → caller-registered runner — a `code` runner with an approval gate over candidates\n * research → research-in-a-loop with valid-only KB growth (createKbGate)\n * audit → analyze trace/run data → findings (runAnalystLoop, caller-wired)\n * self-improve → caller-registered `improve(profile, options)` run\n *\n * It is intentionally a thin façade: the value is that EVERY product reuses the\n * one hardened engine instead of forking delegation logic. The dispatcher owns\n * mode routing, timing, fail-loud on an unregistered mode, and a uniform result\n * shape; each mode's engine is a pre-configured runner in the registry (build it\n * with the factories below, or inject your own / a stub).\n *\n * @experimental\n */\n\nimport type { AgentProfile } from '@tangle-network/agent-interface'\nimport { runAnalystLoop } from './analyst-loop'\nimport type { RunAnalystLoopOpts, RunAnalystLoopResult } from './analyst-loop/types'\nimport { ConfigError } from './errors'\nimport { type CreateKbGateOptions, createKbGate, type FactCandidate } from './mcp/kb-gate'\nimport {\n type AuthoredHarness,\n type Budget,\n createExecutorRegistry,\n definePersona,\n runPersonified,\n type WinnerStrategy,\n type WorktreeFanoutOptions,\n type WorktreePatchArtifact,\n worktreeFanout,\n} from './runtime'\n\n/** All valid delegated-loop mode names — used for validation and CLI surfaces. @experimental */\nexport const DELEGATED_LOOP_MODES = ['code', 'review', 'research', 'audit', 'self-improve'] as const\n\n/** @experimental */\nexport type DelegatedLoopMode = (typeof DELEGATED_LOOP_MODES)[number]\n\n/** Type guard — returns true when `value` is a valid `DelegatedLoopMode` string. @experimental */\nexport function isDelegatedLoopMode(value: unknown): value is DelegatedLoopMode {\n return typeof value === 'string' && (DELEGATED_LOOP_MODES as readonly string[]).includes(value)\n}\n\n/** @experimental A pre-configured loop for one mode. Returns the mode's raw\n * output; the dispatcher wraps it in a {@link DelegatedLoopResult}. */\nexport type DelegatedLoopRunner<T = unknown> = (signal: AbortSignal) => Promise<T>\n\n/** @experimental Mode → configured runner. Partial: only register the modes a\n * given product/routine actually uses. */\nexport type DelegatedLoopRegistry = Partial<Record<DelegatedLoopMode, DelegatedLoopRunner>>\n\n/** @experimental Uniform result — never throws from a registered runner; a\n * thrown engine becomes `{ ok: false, error }` so a routine can record + move on. */\nexport interface DelegatedLoopResult<T = unknown> {\n mode: DelegatedLoopMode\n ok: boolean\n output?: T\n error?: string\n durationMs: number\n}\n\n/** @experimental */\nexport interface RunDelegatedLoopOptions {\n signal?: AbortSignal\n /** Clock override for deterministic tests. */\n now?: () => number\n}\n\n/**\n *\n * Dispatch a configured loop by mode. Fails loud (throws `ConfigError`) when no\n * runner is registered for the mode — a routine pointed at an unwired mode is a\n * config bug, not a silent no-op. A runner that throws is captured as\n * `{ ok: false }` so unattended runs record the failure rather than crash.\n *\n * @experimental\n */\nexport async function runDelegatedLoop<T = unknown>(\n mode: DelegatedLoopMode,\n registry: DelegatedLoopRegistry,\n options: RunDelegatedLoopOptions = {},\n): Promise<DelegatedLoopResult<T>> {\n const runner = registry[mode] as DelegatedLoopRunner<T> | undefined\n if (!runner) {\n throw new ConfigError(\n `runDelegatedLoop: no runner registered for mode '${mode}' (registered: ${\n Object.keys(registry).join(', ') || 'none'\n })`,\n )\n }\n const now = options.now ?? Date.now\n const signal = options.signal ?? new AbortController().signal\n const start = now()\n try {\n const output = await runner(signal)\n return { mode, ok: true, output, durationMs: now() - start }\n } catch (err) {\n return {\n mode,\n ok: false,\n error: err instanceof Error ? err.message : String(err),\n durationMs: now() - start,\n }\n }\n}\n\n/** @experimental Options for the local-repo `code` runner over the GENERIC recursive path. */\nexport interface WorktreeLoopRunnerOptions {\n /** Exact profile carried by the personified root that owns this fanout. */\n rootProfile: AgentProfile\n /** Absolute path to the local git checkout each worktree is cut from. */\n repoRoot: string\n /** The instruction handed to every authored harness (composed under each profile's systemPrompt). */\n taskPrompt: string\n /** The supervisor-authored harness profiles — one fanout item (one worktree-CLI leaf) each. */\n harnesses: ReadonlyArray<AuthoredHarness>\n /** Conserved budget pool bounding the fanout (equal-k holds by construction). */\n budget: Budget\n /** Shell command run in each worktree to derive the tests-PASS signal. */\n testCmd?: string\n /** Shell command run in each worktree to derive the typecheck-PASS signal. */\n typecheckCmd?: string\n /** Which verification signals the deliverable REQUIRES present-and-passing (default none). */\n require?: ReadonlyArray<'tests' | 'typecheck'>\n /** Diff-size cap (lines). */\n maxDiffLines?: number\n /** Literal path prefixes the patch must not touch (the secret-floor is always on regardless). */\n forbiddenPaths?: string[]\n /** Winner-selection strategy among gated candidates. Default `highest-score`. */\n winnerStrategy?: WinnerStrategy\n /** Test seams forwarded to the worktree-CLI leaves so the runner drives offline. */\n runGit?: WorktreeFanoutOptions['runGit']\n runHarness?: WorktreeFanoutOptions['runHarness']\n runCommand?: WorktreeFanoutOptions['runCommand']\n}\n\n/**\n *\n * `code` mode on the GENERIC recursive path: author one `AgentProfile` per harness, run them as a\n * `worktreeFanout` (N `createWorktreeCliExecutor` leaves, each `gateOnDeliverable`) through\n * `runPersonified` on the keystone Supervisor. The sandbox-session counterpart that drives the in-box\n * harness over a `SandboxClient` is `detachedSessionDelegate` (`./mcp/delegates`); here there is no\n * `runAgentRounds` driver, no role-coupled delegate — the harness list is the fanout, the gate is\n * `patchDelivered`,\n * the winner is the shared valid-only selector (NOT `defaultSelectWinner`, whose non-valid fallback\n * would surface an ungated patch). Equal-k holds by the conserved budget pool. Returns the winning\n * patch artifact, or throws when no candidate is delivered (fail loud, never a vacuous done).\n *\n * @experimental\n */\nexport function worktreeLoopRunner(\n options: WorktreeLoopRunnerOptions,\n): DelegatedLoopRunner<WorktreePatchArtifact> {\n const shape = worktreeFanout<string>({\n repoRoot: options.repoRoot,\n taskPrompt: options.taskPrompt,\n harnesses: options.harnesses,\n ...(options.testCmd !== undefined ? { testCmd: options.testCmd } : {}),\n ...(options.typecheckCmd !== undefined ? { typecheckCmd: options.typecheckCmd } : {}),\n ...(options.require !== undefined ? { require: options.require } : {}),\n ...(options.maxDiffLines !== undefined ? { maxDiffLines: options.maxDiffLines } : {}),\n ...(options.forbiddenPaths !== undefined ? { forbiddenPaths: options.forbiddenPaths } : {}),\n ...(options.winnerStrategy !== undefined ? { winnerStrategy: options.winnerStrategy } : {}),\n ...(options.runGit ? { runGit: options.runGit } : {}),\n ...(options.runHarness ? { runHarness: options.runHarness } : {}),\n ...(options.runCommand ? { runCommand: options.runCommand } : {}),\n })\n // The persona's only role here is to carry the fanout shape onto the Supervisor; each item's\n // executor is BYO (the gated worktree-CLI leaf), so the registry only needs to pass BYO through.\n const persona = definePersona<WorktreePatchArtifact>({\n name: 'worktree-coder',\n root: { profile: options.rootProfile, harness: null },\n directive: 'deliver a minimal validated patch on a fresh worktree',\n context: { role: 'coder' },\n executors: { registry: createExecutorRegistry() },\n })\n return async (signal) => {\n const result = await runPersonified<string, WorktreePatchArtifact>({\n persona,\n shape,\n task: options.taskPrompt,\n budget: options.budget,\n signal,\n })\n if (result.kind !== 'winner' || result.out.kind !== 'done') {\n const blockers =\n result.kind === 'winner' && result.out.kind === 'blocked'\n ? result.out.blockers.join('; ')\n : `supervisor settled ${result.kind}`\n throw new Error(`worktreeLoopRunner: no delivered patch (${blockers})`)\n }\n return result.out.deliverable\n }\n}\n\n/** @experimental A fact rejected at the KB gate — surfaced, never dropped. */\nexport interface VetoedFact {\n candidate: FactCandidate\n vetoedBy?: string\n reason?: string\n}\n\n/** @experimental */\nexport interface ResearchLoopResult {\n /** Facts that passed the fail-closed gate — safe to write to the KB. */\n accepted: FactCandidate[]\n /** Facts the gate vetoed in the final round — escalate, do not silently drop. */\n vetoed: VetoedFact[]\n /** Research rounds actually run. */\n rounds: number\n}\n\n/** @experimental Options for the default `research` runner. */\nexport interface ResearchLoopRunnerOptions {\n /**\n * The research engine (the consumer's web/doc searcher + extractor). Called\n * each round with the prior round's vetoes so it can re-research the gaps.\n * Returns fact candidates carrying their grounding (`verbatimPassage` +\n * `sourceText`).\n */\n research: (round: number, vetoed: VetoedFact[]) => Promise<FactCandidate[]>\n /** Gate config (extra judges, self-artifact kinds, …). The floor is always on. */\n gate?: CreateKbGateOptions\n /** Max research rounds (correct-on-veto remediation). Default 1. */\n maxRounds?: number\n}\n\n/**\n * `research` mode — research-in-a-loop with valid-only KB growth.\n *\n * Each round: research → gate every candidate (fail-closed; passage MUST be in\n * the source) → accept the clean ones → re-research the vetoed ones next round,\n * up to `maxRounds`. Vetoed facts in the final round are RETURNED (escalate,\n * never silently dropped) so the caller audits vs retries.\n *\n * @experimental\n */\nexport function researchLoopRunner(\n o: ResearchLoopRunnerOptions,\n): DelegatedLoopRunner<ResearchLoopResult> {\n const gate = createKbGate(o.gate)\n const maxRounds = Math.max(1, Math.trunc(o.maxRounds ?? 1))\n return async (signal) => {\n const accepted: FactCandidate[] = []\n let vetoed: VetoedFact[] = []\n let rounds = 0\n for (let round = 0; round < maxRounds; round += 1) {\n if (signal.aborted) break\n rounds += 1\n const candidates = await o.research(round, vetoed)\n if (candidates.length === 0) break\n vetoed = []\n for (const c of candidates) {\n const v = await gate(c)\n if (v.accepted) accepted.push(c)\n else vetoed.push({ candidate: c, vetoedBy: v.vetoedBy, reason: v.reason })\n }\n if (vetoed.length === 0) break\n }\n return { accepted, vetoed, rounds }\n }\n}\n\n/**\n * `audit` mode — analyst loop over captured trace/run data.\n *\n * @experimental\n */\nexport function auditLoopRunner<TProposal = unknown, TEdit = unknown>(\n options: RunAnalystLoopOpts,\n): DelegatedLoopRunner<RunAnalystLoopResult<TProposal, TEdit>> {\n return async () => runAnalystLoop<TProposal, TEdit>(options)\n}\n","#!/usr/bin/env node\n/**\n *\n * `agent-runtime-loop` — the schedulable entrypoint for the configured\n * delegated loop-runner. A cron job / routine / Makefile target invokes:\n *\n * agent-runtime-loop --mode research --config ./loops.config.js\n *\n * The config module wires the registry (with full access to env / creds —\n * which is why the deps live there, not in this generic bin). It must default-\n * export a `DelegatedLoopRegistry`, or a `() => DelegatedLoopRegistry | Promise<…>`.\n * The bin runs the selected mode, prints the `DelegatedLoopResult` as JSON, and\n * exits 0 on `ok`, 1 on a recorded failure, 2 on a usage/config error.\n *\n * @experimental\n */\n\nimport {\n DELEGATED_LOOP_MODES,\n type DelegatedLoopMode,\n type DelegatedLoopRegistry,\n type DelegatedLoopResult,\n isDelegatedLoopMode,\n runDelegatedLoop,\n} from './loop-runner'\n\n/** @experimental Parsed CLI invocation. */\nexport interface LoopRunnerCliArgs {\n mode: string\n /** Loads the registry — the bin wires this from `--config`; tests inject a stub. */\n loadRegistry: () => Promise<DelegatedLoopRegistry> | DelegatedLoopRegistry\n now?: () => number\n}\n\n/** @experimental */\nexport interface LoopRunnerCliResult {\n exitCode: number\n result?: DelegatedLoopResult\n error?: string\n}\n\n/**\n *\n * Pure CLI core (no process / argv / IO) so it's unit-testable: validate the\n * mode, load the registry, dispatch, map to an exit code (0 ok / 1 failed /\n * 2 usage). Exported for embedding in custom runners + tests.\n *\n * @experimental\n */\nexport async function runLoopRunnerCli(args: LoopRunnerCliArgs): Promise<LoopRunnerCliResult> {\n if (!isDelegatedLoopMode(args.mode)) {\n return {\n exitCode: 2,\n error: `unknown mode '${args.mode}' (expected one of: ${DELEGATED_LOOP_MODES.join(', ')})`,\n }\n }\n let registry: DelegatedLoopRegistry\n try {\n registry = await args.loadRegistry()\n } catch (err) {\n return { exitCode: 2, error: `failed to load registry: ${errMsg(err)}` }\n }\n if (!registry[args.mode]) {\n return {\n exitCode: 2,\n error: `config registers no runner for mode '${args.mode}' (registered: ${\n Object.keys(registry).join(', ') || 'none'\n })`,\n }\n }\n // runDelegatedLoop throws only on a missing runner (guarded above); a failing\n // engine is captured as { ok: false } → exit 1, not a crash.\n const result = await runDelegatedLoop(args.mode as DelegatedLoopMode, registry, {\n ...(args.now ? { now: args.now } : {}),\n })\n return { exitCode: result.ok ? 0 : 1, result }\n}\n\n/** Parse `--mode X --config Y` from an argv tail (`process.argv.slice(2)`). */\nexport function parseLoopRunnerArgv(argv: string[]): { mode?: string; config?: string } {\n const out: { mode?: string; config?: string } = {}\n for (let i = 0; i < argv.length; i += 1) {\n const a = argv[i]\n if (a === '--mode') out.mode = argv[++i]\n else if (a === '--config') out.config = argv[++i]\n else if (a?.startsWith('--mode=')) out.mode = a.slice('--mode='.length)\n else if (a?.startsWith('--config=')) out.config = a.slice('--config='.length)\n }\n return out\n}\n\n/** Normalize a config module's default export → a registry. */\nfunction resolveRegistry(mod: unknown): DelegatedLoopRegistry {\n const def = (mod as { default?: unknown })?.default ?? mod\n const value = typeof def === 'function' ? (def as () => unknown)() : def\n return value as DelegatedLoopRegistry\n}\n\nfunction errMsg(err: unknown): string {\n return err instanceof Error ? err.message : String(err)\n}\n\n/** The argv → IO → exit shell. Kept thin; logic lives in `runLoopRunnerCli`. */\nasync function main(): Promise<void> {\n const { mode, config } = parseLoopRunnerArgv(process.argv.slice(2))\n if (!mode || !config) {\n process.stderr.write(\n 'usage: agent-runtime-loop --mode <mode> --config <module>\\n' +\n ` modes: ${DELEGATED_LOOP_MODES.join(' | ')}\\n` +\n ' config: a JS/TS module default-exporting a DelegatedLoopRegistry (or a factory)\\n',\n )\n process.exit(2)\n }\n const { pathToFileURL } = await import('node:url')\n const { resolve } = await import('node:path')\n const cli = await runLoopRunnerCli({\n mode,\n loadRegistry: async () => resolveRegistry(await import(pathToFileURL(resolve(config)).href)),\n })\n process.stdout.write(`${JSON.stringify(cli.result ?? { error: cli.error }, null, 2)}\\n`)\n if (cli.error) process.stderr.write(`${cli.error}\\n`)\n process.exit(cli.exitCode)\n}\n\n// Run only when executed as the bin — never when imported for the testable\n// core, and never when bundled into a runtime that has no `process.argv`\n// (e.g. Cloudflare Workers, where `process` is a shim without `argv`). Reading\n// `process.argv[1]` directly would throw at module load there; `process.argv?.`\n// keeps the guard a no-op instead of crashing the Worker on startup.\nconst invokedScript = typeof process !== 'undefined' ? process.argv?.[1] : undefined\nif (invokedScript && /loop-runner-bin\\.(js|ts|mjs)$/.test(invokedScript)) {\n void main()\n}\n"],"mappings":"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"}
1
+ {"version":3,"file":"loop-runner-bin-DAzvKFYG.js","names":[],"sources":["../src/loop-runner.ts","../src/loop-runner-bin.ts"],"sourcesContent":["/**\n *\n * `runDelegatedLoop` — the configured delegated loop-runner.\n *\n * One typed entrypoint a worker agent (or a scheduled routine) calls to run a\n * disciplined loop in a chosen MODE, over agent-runtime's hardened engines:\n *\n * code → build-in-a-loop on the GENERIC recursive path (worktreeLoopRunner: author one\n * `AgentProfile` per harness → worktree-CLI leaves → `patchDelivered` gate)\n * review → caller-registered runner — a `code` runner with an approval gate over candidates\n * research → research-in-a-loop with valid-only KB growth (createKbGate)\n * audit → analyze trace/run data → findings (runAnalystLoop, caller-wired)\n * self-improve → caller-registered `improve(profile, options)` run\n *\n * It is intentionally a thin façade: the value is that EVERY product reuses the\n * one hardened engine instead of forking delegation logic. The dispatcher owns\n * mode routing, timing, fail-loud on an unregistered mode, and a uniform result\n * shape; each mode's engine is a pre-configured runner in the registry (build it\n * with the factories below, or inject your own / a stub).\n *\n * @experimental\n */\n\nimport type { AgentProfile } from '@tangle-network/agent-interface'\nimport { runAnalystLoop } from './analyst-loop'\nimport type { RunAnalystLoopOpts, RunAnalystLoopResult } from './analyst-loop/types'\nimport { ConfigError } from './errors'\nimport { type CreateKbGateOptions, createKbGate, type FactCandidate } from './mcp/kb-gate'\nimport {\n type AuthoredHarness,\n type Budget,\n createExecutorRegistry,\n definePersona,\n runPersonified,\n type WinnerStrategy,\n type WorktreeFanoutOptions,\n type WorktreePatchArtifact,\n worktreeFanout,\n} from './runtime'\n\n/** All valid delegated-loop mode names — used for validation and CLI surfaces. @experimental */\nexport const DELEGATED_LOOP_MODES = ['code', 'review', 'research', 'audit', 'self-improve'] as const\n\n/** @experimental */\nexport type DelegatedLoopMode = (typeof DELEGATED_LOOP_MODES)[number]\n\n/** Type guard — returns true when `value` is a valid `DelegatedLoopMode` string. @experimental */\nexport function isDelegatedLoopMode(value: unknown): value is DelegatedLoopMode {\n return typeof value === 'string' && (DELEGATED_LOOP_MODES as readonly string[]).includes(value)\n}\n\n/** @experimental A pre-configured loop for one mode. Returns the mode's raw\n * output; the dispatcher wraps it in a {@link DelegatedLoopResult}. */\nexport type DelegatedLoopRunner<T = unknown> = (signal: AbortSignal) => Promise<T>\n\n/** @experimental Mode → configured runner. Partial: only register the modes a\n * given product/routine actually uses. */\nexport type DelegatedLoopRegistry = Partial<Record<DelegatedLoopMode, DelegatedLoopRunner>>\n\n/** @experimental Uniform result — never throws from a registered runner; a\n * thrown engine becomes `{ ok: false, error }` so a routine can record + move on. */\nexport interface DelegatedLoopResult<T = unknown> {\n mode: DelegatedLoopMode\n ok: boolean\n output?: T\n error?: string\n durationMs: number\n}\n\n/** @experimental */\nexport interface RunDelegatedLoopOptions {\n signal?: AbortSignal\n /** Clock override for deterministic tests. */\n now?: () => number\n}\n\n/**\n *\n * Dispatch a configured loop by mode. Fails loud (throws `ConfigError`) when no\n * runner is registered for the mode — a routine pointed at an unwired mode is a\n * config bug, not a silent no-op. A runner that throws is captured as\n * `{ ok: false }` so unattended runs record the failure rather than crash.\n *\n * @experimental\n */\nexport async function runDelegatedLoop<T = unknown>(\n mode: DelegatedLoopMode,\n registry: DelegatedLoopRegistry,\n options: RunDelegatedLoopOptions = {},\n): Promise<DelegatedLoopResult<T>> {\n const runner = registry[mode] as DelegatedLoopRunner<T> | undefined\n if (!runner) {\n throw new ConfigError(\n `runDelegatedLoop: no runner registered for mode '${mode}' (registered: ${\n Object.keys(registry).join(', ') || 'none'\n })`,\n )\n }\n const now = options.now ?? Date.now\n const signal = options.signal ?? new AbortController().signal\n const start = now()\n try {\n const output = await runner(signal)\n return { mode, ok: true, output, durationMs: now() - start }\n } catch (err) {\n return {\n mode,\n ok: false,\n error: err instanceof Error ? err.message : String(err),\n durationMs: now() - start,\n }\n }\n}\n\n/** @experimental Options for the local-repo `code` runner over the GENERIC recursive path. */\nexport interface WorktreeLoopRunnerOptions {\n /** Exact profile carried by the personified root that owns this fanout. */\n rootProfile: AgentProfile\n /** Absolute path to the local git checkout each worktree is cut from. */\n repoRoot: string\n /** The instruction handed to every authored harness (composed under each profile's systemPrompt). */\n taskPrompt: string\n /** The supervisor-authored harness profiles — one fanout item (one worktree-CLI leaf) each. */\n harnesses: ReadonlyArray<AuthoredHarness>\n /** Conserved budget pool bounding the fanout (equal-k holds by construction). */\n budget: Budget\n /** Shell command run in each worktree to derive the tests-PASS signal. */\n testCmd?: string\n /** Shell command run in each worktree to derive the typecheck-PASS signal. */\n typecheckCmd?: string\n /** Which verification signals the deliverable REQUIRES present-and-passing (default none). */\n require?: ReadonlyArray<'tests' | 'typecheck'>\n /** Diff-size cap (lines). */\n maxDiffLines?: number\n /** Literal path prefixes the patch must not touch (the secret-floor is always on regardless). */\n forbiddenPaths?: string[]\n /** Winner-selection strategy among gated candidates. Default `highest-score`. */\n winnerStrategy?: WinnerStrategy\n /** Test seams forwarded to the worktree-CLI leaves so the runner drives offline. */\n runGit?: WorktreeFanoutOptions['runGit']\n runHarness?: WorktreeFanoutOptions['runHarness']\n runCommand?: WorktreeFanoutOptions['runCommand']\n}\n\n/**\n *\n * `code` mode on the GENERIC recursive path: author one `AgentProfile` per harness, run them as a\n * `worktreeFanout` (N `createWorktreeCliExecutor` leaves, each `gateOnDeliverable`) through\n * `runPersonified` on the keystone Supervisor. The sandbox-session counterpart that drives the in-box\n * harness over a `SandboxClient` is `detachedSessionDelegate` (`./mcp/delegates`); here there is no\n * `runAgentRounds` driver, no role-coupled delegate — the harness list is the fanout, the gate is\n * `patchDelivered`,\n * the winner is the shared valid-only selector (NOT `defaultSelectWinner`, whose non-valid fallback\n * would surface an ungated patch). Equal-k holds by the conserved budget pool. Returns the winning\n * patch artifact, or throws when no candidate is delivered (fail loud, never a vacuous done).\n *\n * @experimental\n */\nexport function worktreeLoopRunner(\n options: WorktreeLoopRunnerOptions,\n): DelegatedLoopRunner<WorktreePatchArtifact> {\n const shape = worktreeFanout<string>({\n repoRoot: options.repoRoot,\n taskPrompt: options.taskPrompt,\n harnesses: options.harnesses,\n ...(options.testCmd !== undefined ? { testCmd: options.testCmd } : {}),\n ...(options.typecheckCmd !== undefined ? { typecheckCmd: options.typecheckCmd } : {}),\n ...(options.require !== undefined ? { require: options.require } : {}),\n ...(options.maxDiffLines !== undefined ? { maxDiffLines: options.maxDiffLines } : {}),\n ...(options.forbiddenPaths !== undefined ? { forbiddenPaths: options.forbiddenPaths } : {}),\n ...(options.winnerStrategy !== undefined ? { winnerStrategy: options.winnerStrategy } : {}),\n ...(options.runGit ? { runGit: options.runGit } : {}),\n ...(options.runHarness ? { runHarness: options.runHarness } : {}),\n ...(options.runCommand ? { runCommand: options.runCommand } : {}),\n })\n // The persona's only role here is to carry the fanout shape onto the Supervisor; each item's\n // executor is BYO (the gated worktree-CLI leaf), so the registry only needs to pass BYO through.\n const persona = definePersona<WorktreePatchArtifact>({\n name: 'worktree-coder',\n root: { profile: options.rootProfile, harness: null },\n directive: 'deliver a minimal validated patch on a fresh worktree',\n context: { role: 'coder' },\n executors: { registry: createExecutorRegistry() },\n })\n return async (signal) => {\n const result = await runPersonified<string, WorktreePatchArtifact>({\n persona,\n shape,\n task: options.taskPrompt,\n budget: options.budget,\n signal,\n })\n if (result.kind !== 'winner' || result.out.kind !== 'done') {\n const blockers =\n result.kind === 'winner' && result.out.kind === 'blocked'\n ? result.out.blockers.join('; ')\n : `supervisor settled ${result.kind}`\n throw new Error(`worktreeLoopRunner: no delivered patch (${blockers})`)\n }\n return result.out.deliverable\n }\n}\n\n/** @experimental A fact rejected at the KB gate — surfaced, never dropped. */\nexport interface VetoedFact {\n candidate: FactCandidate\n vetoedBy?: string\n reason?: string\n}\n\n/** @experimental */\nexport interface ResearchLoopResult {\n /** Facts that passed the fail-closed gate — safe to write to the KB. */\n accepted: FactCandidate[]\n /** Facts the gate vetoed in the final round — escalate, do not silently drop. */\n vetoed: VetoedFact[]\n /** Research rounds actually run. */\n rounds: number\n}\n\n/** @experimental Options for the default `research` runner. */\nexport interface ResearchLoopRunnerOptions {\n /**\n * The research engine (the consumer's web/doc searcher + extractor). Called\n * each round with the prior round's vetoes so it can re-research the gaps.\n * Returns fact candidates carrying their grounding (`verbatimPassage` +\n * `sourceText`).\n */\n research: (round: number, vetoed: VetoedFact[]) => Promise<FactCandidate[]>\n /** Gate config (extra judges, self-artifact kinds, …). The floor is always on. */\n gate?: CreateKbGateOptions\n /** Max research rounds (correct-on-veto remediation). Default 1. */\n maxRounds?: number\n}\n\n/**\n * `research` mode — research-in-a-loop with valid-only KB growth.\n *\n * Each round: research → gate every candidate (fail-closed; passage MUST be in\n * the source) → accept the clean ones → re-research the vetoed ones next round,\n * up to `maxRounds`. Vetoed facts in the final round are RETURNED (escalate,\n * never silently dropped) so the caller audits vs retries.\n *\n * @experimental\n */\nexport function researchLoopRunner(\n o: ResearchLoopRunnerOptions,\n): DelegatedLoopRunner<ResearchLoopResult> {\n const gate = createKbGate(o.gate)\n const maxRounds = Math.max(1, Math.trunc(o.maxRounds ?? 1))\n return async (signal) => {\n const accepted: FactCandidate[] = []\n let vetoed: VetoedFact[] = []\n let rounds = 0\n for (let round = 0; round < maxRounds; round += 1) {\n if (signal.aborted) break\n rounds += 1\n const candidates = await o.research(round, vetoed)\n if (candidates.length === 0) break\n vetoed = []\n for (const c of candidates) {\n const v = await gate(c)\n if (v.accepted) accepted.push(c)\n else vetoed.push({ candidate: c, vetoedBy: v.vetoedBy, reason: v.reason })\n }\n if (vetoed.length === 0) break\n }\n return { accepted, vetoed, rounds }\n }\n}\n\n/**\n * `audit` mode — analyst loop over captured trace/run data.\n *\n * @experimental\n */\nexport function auditLoopRunner<TProposal = unknown, TEdit = unknown>(\n options: RunAnalystLoopOpts,\n): DelegatedLoopRunner<RunAnalystLoopResult<TProposal, TEdit>> {\n return async () => runAnalystLoop<TProposal, TEdit>(options)\n}\n","#!/usr/bin/env node\n/**\n *\n * `agent-runtime-loop` — the schedulable entrypoint for the configured\n * delegated loop-runner. A cron job / routine / Makefile target invokes:\n *\n * agent-runtime-loop --mode research --config ./loops.config.js\n *\n * The config module wires the registry (with full access to env / creds —\n * which is why the deps live there, not in this generic bin). It must default-\n * export a `DelegatedLoopRegistry`, or a `() => DelegatedLoopRegistry | Promise<…>`.\n * The bin runs the selected mode, prints the `DelegatedLoopResult` as JSON, and\n * exits 0 on `ok`, 1 on a recorded failure, 2 on a usage/config error.\n *\n * @experimental\n */\n\nimport {\n DELEGATED_LOOP_MODES,\n type DelegatedLoopMode,\n type DelegatedLoopRegistry,\n type DelegatedLoopResult,\n isDelegatedLoopMode,\n runDelegatedLoop,\n} from './loop-runner'\n\n/** @experimental Parsed CLI invocation. */\nexport interface LoopRunnerCliArgs {\n mode: string\n /** Loads the registry — the bin wires this from `--config`; tests inject a stub. */\n loadRegistry: () => Promise<DelegatedLoopRegistry> | DelegatedLoopRegistry\n now?: () => number\n}\n\n/** @experimental */\nexport interface LoopRunnerCliResult {\n exitCode: number\n result?: DelegatedLoopResult\n error?: string\n}\n\n/**\n *\n * Pure CLI core (no process / argv / IO) so it's unit-testable: validate the\n * mode, load the registry, dispatch, map to an exit code (0 ok / 1 failed /\n * 2 usage). Exported for embedding in custom runners + tests.\n *\n * @experimental\n */\nexport async function runLoopRunnerCli(args: LoopRunnerCliArgs): Promise<LoopRunnerCliResult> {\n if (!isDelegatedLoopMode(args.mode)) {\n return {\n exitCode: 2,\n error: `unknown mode '${args.mode}' (expected one of: ${DELEGATED_LOOP_MODES.join(', ')})`,\n }\n }\n let registry: DelegatedLoopRegistry\n try {\n registry = await args.loadRegistry()\n } catch (err) {\n return { exitCode: 2, error: `failed to load registry: ${errMsg(err)}` }\n }\n if (!registry[args.mode]) {\n return {\n exitCode: 2,\n error: `config registers no runner for mode '${args.mode}' (registered: ${\n Object.keys(registry).join(', ') || 'none'\n })`,\n }\n }\n // runDelegatedLoop throws only on a missing runner (guarded above); a failing\n // engine is captured as { ok: false } → exit 1, not a crash.\n const result = await runDelegatedLoop(args.mode as DelegatedLoopMode, registry, {\n ...(args.now ? { now: args.now } : {}),\n })\n return { exitCode: result.ok ? 0 : 1, result }\n}\n\n/** Parse `--mode X --config Y` from an argv tail (`process.argv.slice(2)`). */\nexport function parseLoopRunnerArgv(argv: string[]): { mode?: string; config?: string } {\n const out: { mode?: string; config?: string } = {}\n for (let i = 0; i < argv.length; i += 1) {\n const a = argv[i]\n if (a === '--mode') out.mode = argv[++i]\n else if (a === '--config') out.config = argv[++i]\n else if (a?.startsWith('--mode=')) out.mode = a.slice('--mode='.length)\n else if (a?.startsWith('--config=')) out.config = a.slice('--config='.length)\n }\n return out\n}\n\n/** Normalize a config module's default export → a registry. */\nfunction resolveRegistry(mod: unknown): DelegatedLoopRegistry {\n const def = (mod as { default?: unknown })?.default ?? mod\n const value = typeof def === 'function' ? (def as () => unknown)() : def\n return value as DelegatedLoopRegistry\n}\n\nfunction errMsg(err: unknown): string {\n return err instanceof Error ? err.message : String(err)\n}\n\n/** The argv → IO → exit shell. Kept thin; logic lives in `runLoopRunnerCli`. */\nasync function main(): Promise<void> {\n const { mode, config } = parseLoopRunnerArgv(process.argv.slice(2))\n if (!mode || !config) {\n process.stderr.write(\n 'usage: agent-runtime-loop --mode <mode> --config <module>\\n' +\n ` modes: ${DELEGATED_LOOP_MODES.join(' | ')}\\n` +\n ' config: a JS/TS module default-exporting a DelegatedLoopRegistry (or a factory)\\n',\n )\n process.exit(2)\n }\n const { pathToFileURL } = await import('node:url')\n const { resolve } = await import('node:path')\n const cli = await runLoopRunnerCli({\n mode,\n loadRegistry: async () => resolveRegistry(await import(pathToFileURL(resolve(config)).href)),\n })\n process.stdout.write(`${JSON.stringify(cli.result ?? { error: cli.error }, null, 2)}\\n`)\n if (cli.error) process.stderr.write(`${cli.error}\\n`)\n process.exit(cli.exitCode)\n}\n\n// Run only when executed as the bin — never when imported for the testable\n// core, and never when bundled into a runtime that has no `process.argv`\n// (e.g. Cloudflare Workers, where `process` is a shim without `argv`). Reading\n// `process.argv[1]` directly would throw at module load there; `process.argv?.`\n// keeps the guard a no-op instead of crashing the Worker on startup.\nconst invokedScript = typeof process !== 'undefined' ? process.argv?.[1] : undefined\nif (invokedScript && /loop-runner-bin\\.(js|ts|mjs)$/.test(invokedScript)) {\n void main()\n}\n"],"mappings":"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"}
@@ -1,5 +1,5 @@
1
1
  import { d as RunAnalystLoopOpts, f as RunAnalystLoopResult } from "./types-zWfqDjeL.js";
2
- import { Ml as WinnerStrategy, O as AuthoredHarness, k as WorktreeFanoutOptions, un as WorktreePatchArtifact } from "./index-prZR0SAw.js";
2
+ import { Ml as WinnerStrategy, O as AuthoredHarness, k as WorktreeFanoutOptions, un as WorktreePatchArtifact } from "./index-JwBrfEmf.js";
3
3
  import { ir as Budget } from "./stream-agent-turn-CAj0XcwD.js";
4
4
  import { n as FactCandidate, t as CreateKbGateOptions } from "./kb-gate-C8z2juK8.js";
5
5
  import { AgentProfile } from "@tangle-network/agent-interface";
@@ -162,4 +162,4 @@ declare function parseLoopRunnerArgv(argv: string[]): {
162
162
  };
163
163
  //#endregion
164
164
  export { researchLoopRunner as _, DELEGATED_LOOP_MODES as a, DelegatedLoopResult as c, ResearchLoopRunnerOptions as d, RunDelegatedLoopOptions as f, isDelegatedLoopMode as g, auditLoopRunner as h, runLoopRunnerCli as i, DelegatedLoopRunner as l, WorktreeLoopRunnerOptions as m, LoopRunnerCliResult as n, DelegatedLoopMode as o, VetoedFact as p, parseLoopRunnerArgv as r, DelegatedLoopRegistry as s, LoopRunnerCliArgs as t, ResearchLoopResult as u, runDelegatedLoop as v, worktreeLoopRunner as y };
165
- //# sourceMappingURL=loop-runner-bin-CdLhMvhw.d.ts.map
165
+ //# sourceMappingURL=loop-runner-bin-DD3mqY76.d.ts.map
@@ -1,2 +1,2 @@
1
- import { i as runLoopRunnerCli, n as LoopRunnerCliResult, r as parseLoopRunnerArgv, t as LoopRunnerCliArgs } from "./loop-runner-bin-CdLhMvhw.js";
1
+ import { i as runLoopRunnerCli, n as LoopRunnerCliResult, r as parseLoopRunnerArgv, t as LoopRunnerCliArgs } from "./loop-runner-bin-DD3mqY76.js";
2
2
  export { LoopRunnerCliArgs, LoopRunnerCliResult, parseLoopRunnerArgv, runLoopRunnerCli };
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
- import { n as runLoopRunnerCli, t as parseLoopRunnerArgv } from "./loop-runner-bin-CrRJTCHK.js";
2
+ import { n as runLoopRunnerCli, t as parseLoopRunnerArgv } from "./loop-runner-bin-DAzvKFYG.js";
3
3
  export { parseLoopRunnerArgv, runLoopRunnerCli };
package/dist/mcp/bin.js CHANGED
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
- import { Jn as readTraceContextFromEnv } from "../redact-B1SbJVu9.js";
2
+ import { Jn as readTraceContextFromEnv } from "../redact-73IRu8-T.js";
3
3
  import { i as ConfigError } from "../errors-DodWX-cb.js";
4
- import { s as supervisorInstructions } from "../delegate-BdLTkmND.js";
5
- import { _ as FileDelegationStore, n as createMcpServer, p as DelegationTaskQueue } from "../server-Bd7EYaQT.js";
4
+ import { s as supervisorInstructions } from "../delegate-Y8HERQ-0.js";
5
+ import { _ as FileDelegationStore, n as createMcpServer, p as DelegationTaskQueue } from "../server-CrU79Grl.js";
6
6
  //#region src/mcp/delegate-supervisor-provisioning.ts
7
7
  function trimmed(value) {
8
8
  const v = value?.trim();
@@ -1,5 +1,5 @@
1
1
  import { E as SandboxClient, h as LoopSandboxPlacement } from "../types-Q0PMagdm.js";
2
- import { $d as FeedbackEvent, $f as DelegateUiAuditRoute, $u as AuthorizeDownMessage, Af as runDetachedTurn, Ap as FileDelegationStore, Bd as McpServer, Bf as SubmitOutput, Cd as QuestionRecord, Cf as DriveTurnCapableBox, Cp as buildDelegationTraceSpans, Df as detachedTurnEvents, Dp as DelegationPersistenceError, Ef as createDetachedTurnResumeDriver, Ep as createDelegationTraceCollector, Fd as createCoordinationTools, Ff as DelegationResumeTick, Gd as DELEGATE_INPUT_SCHEMA, Gf as DelegateFeedbackArgs, Gu as AnalystFindingEvent, Hd as createInProcessTransport, Hf as DelegateCodeArgs, Id as downMessageRefusalReasons, If as DelegationRunContext, Jd as DelegateError, Jf as DelegateResearchConfig, Ju as AnalystRegistry, Kd as DELEGATE_TOOL_NAME, Kf as DelegateFeedbackResult, Kp as CoderOutput, Ku as AnalystKind, Lf as DelegationTaskQueue, Md as WorkerWatchOptions, Mf as DelegationRecord, Mp as InMemoryDelegationStore, Nd as analystToolGroupNames, Nf as DelegationResumeContext, Of as formatDetachedSessionRef, Op as DelegationStateCorruptError, Pf as DelegationResumeDriver, Qd as validateDelegateArgs, Qf as DelegateUiAuditResult, Qu as AuthoredAnalystLimits, Rd as parseAuthoredAnalystDefinition, Rf as DelegationTaskQueueOptions, Sd as QuestionPolicy, Sf as DetachedTurnResumeDriverOptions, Sp as DelegationTraceSpan, Td as SettledWorker, Tf as RunDetachedTurnOptions, Tp as composeLoopTraceEmitters, Ud as createMcpServer, Uf as DelegateCodeConfig, Uu as ANALYST_DEFINITION_BOUNDS, Vd as McpServerOptions, Vf as hashIdempotencyInput, Wd as DELEGATE_DESCRIPTION, Wf as DelegateCodeResult, Wu as AnalystDefinitionIssue, Xd as DelegateResult, Xf as DelegateUiAuditArgs, Yd as DelegateHandlerOptions, Yf as DelegateResearchResult, Yu as AnalystToolGroupName, Zd as createDelegateHandler, Zf as DelegateUiAuditConfig, Zu as AuthoredAnalystDefinition, _d as QuestionEscalationOutcome, _f as SiblingSandboxExecutorOptions, _p as CappedDelegationTrace, ad as CoordinationTools, af as CoderReviewer, ap as DelegationProfile, bd as QuestionLevel, bf as DetachedSessionRefParts, bp as DelegationTraceCaps, cd as DefinedAnalystRecord, cf as DetachedWinnerSelection, cp as DelegationStatus, dd as DownMessageDeliveryOutcome, df as coderTaskFromArgs, dp as FeedbackRating, ed as AuthorizedDownMessage, ef as FeedbackStore, ep as DelegationError, fd as DownMessageEvent, ff as detachedSessionDelegate, fp as FeedbackRefersTo, gd as QuestionDecision, gf as FleetWorkspaceExecutorOptions, gp as delegationProfiles, hd as Question, hf as FleetHandle, hp as UiAuditorDelegationOutput, if as CoderReview, ip as DelegationHistoryResult, jd as WorkerSpawnContext, jf as DelegationArgs, jp as FileDelegationStoreOptions, kf as parseDetachedSessionRef, kp as DelegationStore, ld as DownMessageAuthorizationInput, lf as SettleDetachedCoderTurnOptions, lp as DelegationStatusArgs, md as MakeWorkerAgent, mf as DelegationExecutor, mp as UiAuditLensFilter, nf as eventToSnapshot, np as DelegationHistoryArgs, od as CoordinationToolsOptions, of as DelegateRunCtx, op as DelegationProgress, pd as EscalateQuestion, pf as settleDetachedCoderTurn, pp as ResearchOutputShape, qd as DelegateArgs, qf as DelegateResearchArgs, rd as CoordinationEvent, rf as CoderDelegate, rp as DelegationHistoryEntry, sd as DEFAULT_AWAIT_EVENT_TIMEOUT_MS, sf as DetachedSessionDelegateOptions, sp as DelegationResultPayload, td as ContinuationInstruction, tf as InMemoryFeedbackStore, tp as DelegationFeedbackSnapshot, ud as DownMessageDeliveryAttempt, uf as UiAuditorDelegate, up as DelegationStatusResult, vd as QuestionEscalationRecord, vf as createFleetWorkspaceExecutor, vp as DELEGATION_TRACE_MAX_BYTES, wd as QuestionUrgency, wf as DriveTurnTick, wp as capDelegationTrace, xd as QuestionOption, xf as DetachedTurn, xp as DelegationTraceCollector, yd as QuestionEscalationTarget, yf as createSiblingSandboxExecutor, yp as DELEGATION_TRACE_MAX_SPANS, zd as questionEscalationTargets, zf as SubmitInput } from "../index-prZR0SAw.js";
2
+ import { $d as FeedbackEvent, $f as DelegateUiAuditRoute, $u as AuthorizeDownMessage, Af as runDetachedTurn, Ap as FileDelegationStore, Bd as McpServer, Bf as SubmitOutput, Cd as QuestionRecord, Cf as DriveTurnCapableBox, Cp as buildDelegationTraceSpans, Df as detachedTurnEvents, Dp as DelegationPersistenceError, Ef as createDetachedTurnResumeDriver, Ep as createDelegationTraceCollector, Fd as createCoordinationTools, Ff as DelegationResumeTick, Gd as DELEGATE_INPUT_SCHEMA, Gf as DelegateFeedbackArgs, Gu as AnalystFindingEvent, Hd as createInProcessTransport, Hf as DelegateCodeArgs, Id as downMessageRefusalReasons, If as DelegationRunContext, Jd as DelegateError, Jf as DelegateResearchConfig, Ju as AnalystRegistry, Kd as DELEGATE_TOOL_NAME, Kf as DelegateFeedbackResult, Kp as CoderOutput, Ku as AnalystKind, Lf as DelegationTaskQueue, Md as WorkerWatchOptions, Mf as DelegationRecord, Mp as InMemoryDelegationStore, Nd as analystToolGroupNames, Nf as DelegationResumeContext, Of as formatDetachedSessionRef, Op as DelegationStateCorruptError, Pf as DelegationResumeDriver, Qd as validateDelegateArgs, Qf as DelegateUiAuditResult, Qu as AuthoredAnalystLimits, Rd as parseAuthoredAnalystDefinition, Rf as DelegationTaskQueueOptions, Sd as QuestionPolicy, Sf as DetachedTurnResumeDriverOptions, Sp as DelegationTraceSpan, Td as SettledWorker, Tf as RunDetachedTurnOptions, Tp as composeLoopTraceEmitters, Ud as createMcpServer, Uf as DelegateCodeConfig, Uu as ANALYST_DEFINITION_BOUNDS, Vd as McpServerOptions, Vf as hashIdempotencyInput, Wd as DELEGATE_DESCRIPTION, Wf as DelegateCodeResult, Wu as AnalystDefinitionIssue, Xd as DelegateResult, Xf as DelegateUiAuditArgs, Yd as DelegateHandlerOptions, Yf as DelegateResearchResult, Yu as AnalystToolGroupName, Zd as createDelegateHandler, Zf as DelegateUiAuditConfig, Zu as AuthoredAnalystDefinition, _d as QuestionEscalationOutcome, _f as SiblingSandboxExecutorOptions, _p as CappedDelegationTrace, ad as CoordinationTools, af as CoderReviewer, ap as DelegationProfile, bd as QuestionLevel, bf as DetachedSessionRefParts, bp as DelegationTraceCaps, cd as DefinedAnalystRecord, cf as DetachedWinnerSelection, cp as DelegationStatus, dd as DownMessageDeliveryOutcome, df as coderTaskFromArgs, dp as FeedbackRating, ed as AuthorizedDownMessage, ef as FeedbackStore, ep as DelegationError, fd as DownMessageEvent, ff as detachedSessionDelegate, fp as FeedbackRefersTo, gd as QuestionDecision, gf as FleetWorkspaceExecutorOptions, gp as delegationProfiles, hd as Question, hf as FleetHandle, hp as UiAuditorDelegationOutput, if as CoderReview, ip as DelegationHistoryResult, jd as WorkerSpawnContext, jf as DelegationArgs, jp as FileDelegationStoreOptions, kf as parseDetachedSessionRef, kp as DelegationStore, ld as DownMessageAuthorizationInput, lf as SettleDetachedCoderTurnOptions, lp as DelegationStatusArgs, md as MakeWorkerAgent, mf as DelegationExecutor, mp as UiAuditLensFilter, nf as eventToSnapshot, np as DelegationHistoryArgs, od as CoordinationToolsOptions, of as DelegateRunCtx, op as DelegationProgress, pd as EscalateQuestion, pf as settleDetachedCoderTurn, pp as ResearchOutputShape, qd as DelegateArgs, qf as DelegateResearchArgs, rd as CoordinationEvent, rf as CoderDelegate, rp as DelegationHistoryEntry, sd as DEFAULT_AWAIT_EVENT_TIMEOUT_MS, sf as DetachedSessionDelegateOptions, sp as DelegationResultPayload, td as ContinuationInstruction, tf as InMemoryFeedbackStore, tp as DelegationFeedbackSnapshot, ud as DownMessageDeliveryAttempt, uf as UiAuditorDelegate, up as DelegationStatusResult, vd as QuestionEscalationRecord, vf as createFleetWorkspaceExecutor, vp as DELEGATION_TRACE_MAX_BYTES, wd as QuestionUrgency, wf as DriveTurnTick, wp as capDelegationTrace, xd as QuestionOption, xf as DetachedTurn, xp as DelegationTraceCollector, yd as QuestionEscalationTarget, yf as createSiblingSandboxExecutor, yp as DELEGATION_TRACE_MAX_SPANS, zd as questionEscalationTargets, zf as SubmitInput } from "../index-JwBrfEmf.js";
3
3
  import { Jn as JsonRpcMessage, Xn as McpToolDescriptor, Yn as JsonRpcResponse, Zn as McpTransport, _i as TraceContext, _n as RunLocalHarnessOptions, an as RemoveWorktreeOptions, bi as readTraceContextFromEnv, bn as parseCodexTokenUsage, cn as createWorktree, dn as CodexExecutionPolicy, fn as CodexTokenUsage, gn as LocalHarnessResult, hn as LocalHarness, in as GitRunner, ln as removeWorktree, mn as LOCAL_HARNESSES, nn as DiffOptions, on as WorktreeHandle, pn as DEFAULT_LOCAL_HARNESS, rn as DiffResult, sn as captureWorktreeDiff, tn as CreateWorktreeOptions, un as CodexExecutionEvidence, vi as createPropagatingTraceEmitter, vn as harnessSupportsReasoningEffort, xi as traceContextToEnv, xn as runLocalHarness, yi as mergeTraceEnv, yn as localHarnessExecutable } from "../stream-agent-turn-CAj0XcwD.js";
4
4
  import { d as ResearchSource, o as UiLens } from "../substrate-B4iT90Zv.js";
5
5
  import { a as KbGateResult, i as FactJudgeVerdict, n as FactCandidate, o as createKbGate, r as FactJudge, t as CreateKbGateOptions } from "../kb-gate-C8z2juK8.js";