@tangle-network/agent-runtime 0.137.0 → 0.138.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/dist/{activation-BHoMDzMv.js → activation-AyIFaunX.js} +3 -3
  2. package/dist/{activation-BHoMDzMv.js.map → activation-AyIFaunX.js.map} +1 -1
  3. package/dist/agent.d.ts +1 -1
  4. package/dist/agent.js +2 -2
  5. package/dist/{authoring-rEOOEWn6.js → authoring-Cw6Ufsng.js} +2 -2
  6. package/dist/{authoring-rEOOEWn6.js.map → authoring-Cw6Ufsng.js.map} +1 -1
  7. package/dist/candidate-execution/index.js +4 -4
  8. package/dist/{candidate-execution-CyCLYLfK.js → candidate-execution-CN2hO-og.js} +4 -4
  9. package/dist/{candidate-execution-CyCLYLfK.js.map → candidate-execution-CN2hO-og.js.map} +1 -1
  10. package/dist/durable.d.ts +34 -1
  11. package/dist/durable.js +82 -1
  12. package/dist/durable.js.map +1 -1
  13. package/dist/{graph-yaEG0ZiR.js → graph-DxU92LTL.js} +3 -3
  14. package/dist/{graph-yaEG0ZiR.js.map → graph-DxU92LTL.js.map} +1 -1
  15. package/dist/{improvement-cycle-BeVj-EGJ.js → improvement-cycle-hIOGxDtV.js} +4 -4
  16. package/dist/{improvement-cycle-BeVj-EGJ.js.map → improvement-cycle-hIOGxDtV.js.map} +1 -1
  17. package/dist/{index-DBuSUP9J.d.ts → index-BOgzou1U.d.ts} +2 -12
  18. package/dist/{index-CcP87vSG.d.ts → index-Bdgpx2Dx.d.ts} +2 -2
  19. package/dist/index.d.ts +75 -5
  20. package/dist/index.js +106 -15
  21. package/dist/index.js.map +1 -1
  22. package/dist/intelligence.js +5 -5
  23. package/dist/jsonl-file-DtxhdAkZ.js +57 -0
  24. package/dist/jsonl-file-DtxhdAkZ.js.map +1 -0
  25. package/dist/kernel.d.ts +2 -2
  26. package/dist/kernel.js +8 -8
  27. package/dist/{knowledge-C1TcOBf6.js → knowledge-C-JiS5Xg.js} +5 -5
  28. package/dist/{knowledge-C1TcOBf6.js.map → knowledge-C-JiS5Xg.js.map} +1 -1
  29. package/dist/knowledge.d.ts +1 -1
  30. package/dist/knowledge.js +1 -1
  31. package/dist/{loop-runner-bin-DhUWzpNp.js → loop-runner-bin-B_Ww2iqY.js} +3 -3
  32. package/dist/{loop-runner-bin-DhUWzpNp.js.map → loop-runner-bin-B_Ww2iqY.js.map} +1 -1
  33. package/dist/{loop-runner-bin-Bfl9tm0R.d.ts → loop-runner-bin-OH61zEVw.d.ts} +2 -2
  34. package/dist/loop-runner-bin.d.ts +1 -1
  35. package/dist/loop-runner-bin.js +1 -1
  36. package/dist/mcp/bin.js +3 -3
  37. package/dist/mcp/index.d.ts +1 -1
  38. package/dist/mcp/index.js +4 -4
  39. package/dist/{openai-tools-K38wcStR.js → openai-tools-BKJqaQ1b.js} +2 -2
  40. package/dist/{openai-tools-K38wcStR.js.map → openai-tools-BKJqaQ1b.js.map} +1 -1
  41. package/dist/{prepare-Czki1LBy.js → prepare-CYqGSYza.js} +2 -2
  42. package/dist/{prepare-Czki1LBy.js.map → prepare-CYqGSYza.js.map} +1 -1
  43. package/dist/{protected-model-port-OhS0l_6m.js → protected-model-port-B6DW_x2I.js} +2 -2
  44. package/dist/{protected-model-port-OhS0l_6m.js.map → protected-model-port-B6DW_x2I.js.map} +1 -1
  45. package/dist/{runtime-yCuqlhou.js → runtime-CUpB4rEP.js} +7 -7
  46. package/dist/{runtime-yCuqlhou.js.map → runtime-CUpB4rEP.js.map} +1 -1
  47. package/dist/{spawn-journal-ZKEKel8N.js → spawn-journal-DVFqdzO9.js} +3 -56
  48. package/dist/spawn-journal-DVFqdzO9.js.map +1 -0
  49. package/dist/{structural-rollout-2Z6J5ttt.js → structural-rollout-CwtVIJf-.js} +3 -3
  50. package/dist/{structural-rollout-2Z6J5ttt.js.map → structural-rollout-CwtVIJf-.js.map} +1 -1
  51. package/dist/{supervise-to2ynnCG.js → supervise-CUJRmx3s.js} +4 -3
  52. package/dist/{supervise-to2ynnCG.js.map → supervise-CUJRmx3s.js.map} +1 -1
  53. package/dist/{supervisor-BfJNS2Z3.js → supervisor-BoC2tFgH.js} +2 -2
  54. package/dist/{supervisor-BfJNS2Z3.js.map → supervisor-BoC2tFgH.js.map} +1 -1
  55. package/dist/testing.d.ts +1 -1
  56. package/dist/testing.js +12 -12
  57. package/dist/{workspace-archive-B_JDld25.js → workspace-archive-C7AvjSVb.js} +2 -2
  58. package/dist/{workspace-archive-B_JDld25.js.map → workspace-archive-C7AvjSVb.js.map} +1 -1
  59. package/package.json +4 -4
  60. package/dist/spawn-journal-ZKEKel8N.js.map +0 -1
@@ -4116,16 +4116,6 @@ interface FinalizeContext {
4116
4116
  }
4117
4117
  /** The finalization seam: ledger in, output (or `undefined` = nothing deliverable) out. */
4118
4118
  type SupervisorFinalizer = (ctx: FinalizeContext) => Promise<unknown | undefined> | unknown | undefined;
4119
- /**
4120
- * The tree that describes the WHOLE run: this process's live nodes plus, on a resumed run, the
4121
- * committed nodes of the prior process(es). Node ids are assigned by the journal and unique across
4122
- * processes, so the union needs no reconciliation. `inFlight`/`waiting` stay the LIVE counts — a
4123
- * prior process's in-flight node died with it and is not in flight now.
4124
- *
4125
- * Without this, a resumed run reports spend for work whose nodes are missing from its own tree.
4126
- * On a run that never resumed there is nothing to merge and the live view is returned unchanged.
4127
- */
4128
- declare function runTree(scope: Pick<Scope<unknown>, 'view' | 'resume'>): TreeView;
4129
4119
  /** The single argmax both the default finalizer and `finalizeBestDelivered` share: highest
4130
4120
  * score wins, missing scores count 0, ties keep the earliest ledger entry. */
4131
4121
  declare function pickBestDelivered<T extends {
@@ -8558,5 +8548,5 @@ interface VerifierEnvironmentOptions {
8558
8548
  /** Any checkable task as an `Environment`, no tool surface required: the artifact is the worker's answer and the domain is one deployable `check` over it. */
8559
8549
  declare function createVerifierEnvironment(opts: VerifierEnvironmentOptions): Environment;
8560
8550
  //#endregion
8561
- export { captureWorkerTraceEvidence as $, SuperviseRegistry as $a, Leaderboard as $c, AgentEvalErrorCode as $d, pendingWaits as $f, assertTraceDerivedFindings as $i, WorkerResumeContext as $l, CheckSource as $n, bestDelivered as $o, SandboxRunAbortError as $r, PanelVerdict as $s, analyzesFindingsReportPrompt as $t, DelegationResumeDriver as $u, NOTE_MAX_CHARS as A, StrategyShotResult as Aa, ShapeRegistry as Ac, FeedbackRating as Ad, BusStats as Af, profileOptimizerModelCall as Ai, AnalystRegistry as Al, ChatWorkerSeamOptions as An, PlateauOptions as Ao, discriminatingMeans as Ar, defaultAnalystInstruction as As, createFileRunContext as At, coderTaskFromArgs as Au, GitWorkspaceOptions as B, LoopCampaignDispatchOptions as Ba, LeaderboardSpec as Bc, DelegationTraceCollector as Bd, mapExecutorResult as Bf, FileCorpus as Bi, DownMessageAuthorizationInput as Bl, spendFromUsageEvents as Bn, createProgressTracker as Bo, LocalMcpMaterialization as Br, EqualKOnCostOptions as Bs, GraphEdge as Bt, DetachedTurn as Bu, SurfaceWorkerOut as C, RunAgenticOptions as Ca, Persona as Cc, DelegationHistoryResult as Cd, RetainedRunReplayPoint as Cf, startRetainedRunInEnvironment as Ci, plateauLength as Cl, DriverAgentOptions as Cn, CoordinationDeliveryEvidence as Co, worktreeCliProfileMaterialization as Cp, EvolutionAuthor as Cr, HarvestCorpusOptions as Cs, workerControlLogFile as Ct, CoderReview as Cu, WorktreeFanoutOptions as D, StrategyCtx as Da, RunPersonifiedOptions as Dc, DelegationStatus as Dd, CoderOutput as Df, PromotionVerdict as Di, WaterfallSpan as Dl, ChatSessionStore as Dn, PriorCoordination as Do, EvolutionReport as Dr, Observation as Ds, InMemoryRunContext as Dt, DetachedWinnerSelection as Du, AuthoredHarness as E, StrategyArtifacts as Ea, RunPersonified as Ec, DelegationResultPayload as Ed, StartRetainedRunOptions as Ef, PromotionGateOptions as Ei, WaterfallReport as El, ChatCompletionsTransport as En, FileCoordinationLog as Eo, EvolutionGeneration as Er, harvestCorpus as Es, writeWorkerSteer as Et, DetachedSessionDelegateOptions as Eu, settledWorkerOut as F, depthStrategy as Fa, LeaderboardFlagSpec as Fc, UiAuditorDelegationOutput as Fd, defaultToolDetectors as Ff, builtinShapes as Fi, ContinuityMode as Fl, BudgetPoolRestore as Fn, StopDecision as Fo, AuthoredStrategy as Fr, Corpus as Fs, WorktreePatchArtifact as Ft, FleetWorkspaceExecutorOptions as Fu, gitWorkspace as G, loopCampaignDispatch as Ga, CompletionVerdict as Gc, createDelegationTraceCollector as Gd, SpawnForest as Gf, loopUntil as Gi, Question as Gl, assessAuthoredProfile as Gn, SupervisorSpanOptions as Go, StdioMcpServerSpec as Gr, FanoutWinnerSelector as Gs, RunGraphTestOptions as Gt, createDetachedTurnResumeDriver as Gu, Workspace as H, LoopOptionsForDispatch as Ha, CompletionAnalyst as Hc, buildDelegationTraceSpans as Hd, FileSpawnJournal as Hf, renderCorpusToInstructions as Hi, DownMessageDeliveryOutcome as Hl, ProfileRichness as Hn, plateau as Ho, McpSpawnFault as Hr, Fanout as Hs, GraphNode as Ht, DriveTurnCapableBox as Hu, CopyOptions as I, refine as Ia, LeaderboardIterationInfo as Ic, CappedDelegationTrace as Id, watchTrace as If, createShapeRegistry as Ii, CoordinationEvent as Il, BudgetReadout as In, StopRule as Io, assertStrategyContract as Ir, CorpusFilter as Is, createWorktreeCliExecutor as It, SiblingSandboxExecutorOptions as Iu, runInWorkspace as J, AuthorizedSpawn as Ja, sentinelCompletion as Jc, DelegationStore as Jd, SpawnForestMissingTree as Jf, selectValidWinner as Ji, QuestionOption as Jl, supervisorInstructions as Jn, createSupervisorSpanRecorder as Jo, Deliverable as Jr, LoopUntilSpec as Js, runGraph as Jt, parseDetachedSessionRef as Ju, jjWorkspace as K, loopDispatch as Ka, completionAuthorizes as Kc, DelegationPersistenceError as Kd, SpawnForestEvent as Kf, panel as Ki, QuestionDecision as Kl, defaultProfileRichnessThresholds as Kn, SupervisorSpanOutcome as Ko, connectStdioMcp as Kr, FlatWidenGate as Ks, TraversalContinuity as Kt, detachedTurnEvents as Ku, UntrackedCopyStats as L, runAgentic as La, LeaderboardRunContext as Lc, DELEGATION_TRACE_MAX_BYTES as Ld, DeliverableSpec as Lf, registerShape as Li, CoordinationTools as Ll, ReservationRejection as Ln, allOf as Lo, authorStrategy as Lr, CorpusRecord as Ls, AgentGraph as Lt, createFleetWorkspaceExecutor as Lu, WorkerEvidenceInput as M, adaptiveRefine as Ma, LeaderboardBenchScore as Mc, ResearchOutputShape as Md, PublishOptions as Mf, assertProfileModelsAllowed as Mi, AuthorizeDownMessage as Ml, chatWorkerSeam as Mn, ProgressTracker as Mo, runStrategyEvolution as Mr, renderReport as Ms, PatchDeliverableOptions as Mt, settleDetachedCoderTurn as Mu, closingWorkerNote as N, breadthStrategy as Na, LeaderboardBenchTask as Nc, ResearchSource as Nd, createEventBus as Nf, equalKOnCost as Ni, AuthorizedDownMessage as Nl, createChatSessionStore as Nn, ProgressTrackerOptions as No, selectChampion as Nr, AssertTraceDerivedFindings as Ns, patchDelivered as Nt, DelegationExecutor as Nu, worktreeFanout as O, StrategyMessage as Oa, ShapeBudget as Oc, DelegationStatusArgs as Od, BusEvent as Of, promotionGate as Oi, createWaterfallCollector as Ol, ChatTransportExecutorOptions as On, AllWorkersStalledOptions as Oo, ReproductionCheck as Or, ObserveInput as Os, InMemoryRunContextOptions as Ot, SettleDetachedCoderTurnOptions as Ou, composeWorkerEvidence as P, defineStrategy as Pa, LeaderboardBenchmarkAdapter as Pc, UiAuditLensFilter as Pd, WatchTraceOptions as Pf, trajectoryReport as Pi, ContinuationInstruction as Pl, BudgetPool as Pn, ProgressView as Po, AuthorStrategyOptions as Pr, CombinatorShape as Ps, WorktreeCliExecutorOptions as Pt, FleetHandle as Pu, WorkerToolTraceArtifact as Q, SuperviseOptions as Qa, Interval as Qc, AgentEvalError$1 as Qd, materializeTreeView as Qf, RegistryAnalyzeProjection as Qi, SettledWorker as Ql, CheckRunner as Qn, SupervisorFinalizer as Qo, SandboxRun as Qr, PanelSpec as Qs, RegisteredPrompt as Qt, DelegationResumeContext as Qu, copyUntrackedIntoClone as R, sample as Ra, LeaderboardScenario as Rc, DELEGATION_TRACE_MAX_SPANS as Rd, ExecutorResultMapping as Rf, definePersona as Ri, CoordinationToolsOptions as Rl, ReservationTicket as Rn, allWorkersStalled as Ro, strategyAuthorContract as Rr, EqualKArm as Rs, EdgeDeliveryOutcome as Rt, createSiblingSandboxExecutor as Ru, SurfaceWorkerConfig as S, CorpusReadbackOptions as Sa, Outcome as Sc, DelegationHistoryEntry as Sd, RetainedRunHandle as Sf, startRetainedRun as Si, bestSoFar as Sl, serveCoordinationMcp as Sn, supervisorAgentWithTestBrain as So, validateProfileMaterialization as Sp, EvolutionArchiveNode as Sr, inProcessSandboxClient as Ss, workerCancellationsDir as St, CoderDelegate as Su, superviseSurface as T, Strategy as Ta, PersonaExecutors as Tc, DelegationProgress as Td, StartRetainedRunInEnvironmentOptions as Tf, resolveSandboxClient as Ti, WaterfallCollector as Tl, finalizeBestDelivered as Tn, CoordinationOwnerId as To, EvolutionCandidate as Tr, HarvestReport as Ts, workerInboxFileFromEventDir as Tt, DelegateRunCtx as Tu, WorkspaceCommit as U, SuperviseDispatchOptions as Ua, CompletionEvidence as Uc, capDelegationTrace as Ud, InMemoryResultBlobStore as Uf, fanout as Ui, DownMessageEvent as Ul, ProfileRichnessThresholds as Un, sampleFromSettled as Uo, McpToolDescriptor as Ur, FanoutOptions as Us, GraphResult as Ut, DriveTurnTick as Uu, Shell as V, LoopDispatchOptions as Va, defineLeaderboard as Vc, DelegationTraceSpan as Vd, FileResultBlobStore as Vf, InMemoryCorpus as Vi, DownMessageDeliveryAttempt as Vl, AuthoredProfile as Vn, noProgressFor as Vo, MaterializeLocalMcpOptions as Vr, EqualKVerdict as Vs, GraphEdgeCapError as Vt, DetachedTurnResumeDriverOptions as Vu, WorkspaceRun as W, SuperviseOptionsForDispatch as Wa, CompletionPolicy as Wc, composeLoopTraceEmitters as Wd, InMemorySpawnJournal as Wf, flatWidenGate as Wi, MakeWorkerAgent as Wl, asAuthoredProfile as Wn, SupervisorSpanAttributes as Wo, StdioMcpConnection as Wr, FanoutSynthesis as Ws, RunGraphOptions as Wt, RunDetachedTurnOptions as Wu, analyzeTrace as X, DEFAULT_AUTHORED_PROFILE_SECURITY_POLICY as Xa, AxisScoresOf as Xc, FileDelegationStoreOptions as Xd, SpawnForestTree as Xf, widen as Xi, QuestionRecord as Xl, CheckOutcome as Xn, FinalizeContext as Xo, OpenSandboxRunOptions as Xr, Panel as Xs, PromptHandle as Xt, DelegationArgs as Xu, TrajectoryAnalysis as Y, AuthorizedSpawnContext as Ya, stopSentinel as Yc, FileDelegationStore as Yd, SpawnForestNode as Yf, verify as Yi, QuestionPolicy as Yl, CheckExecChannel as Yn, DeliveredOutput as Yo, OpenSandboxRunBeforeStartContext as Yr, LoopUntilState as Ys, runGraphWithTestBrain as Yt, runDetachedTurn as Yu, WORKER_TOOL_TRACE_SCHEMA_VERSION as Z, DeliverableResolutionInput as Za, GroupOf as Zc, InMemoryDelegationStore as Zd, loadSpawnForest as Zf, CreateScopeAnalystOptions as Zi, QuestionUrgency as Zl, CheckRunContext as Zn, FinalizerSettled as Zo, OpenSandboxRunPromptOptions as Zr, PanelJudge as Zs, PromptRegistry as Zt, DelegationRecord as Zu, boxSurfaceReader as _, AgenticRunResult as _a, WidenSpec as _c, DelegateUiAuditResult as _d, RetainedRunCancellation as _f, probeSandboxCapabilities as _i, AnytimeReport as _l, rollingDispatch as _n, SupervisorToolDescriptor as _o, promptModelProfileMaterialization as _p, selectBestIndex as _r, localSandboxClient as _s, supervisorRunDir as _t, validateDelegateArgs as _u, SandboxInstance$1 as a, createMcpEnvironment as aa, ScopeAnalyzeInput as ac, SubmitOutput as ad, RetainedRunAdmissionError as af, SandboxLineage as ai, ScoreOf as al, kernelPromptRegistry as an, CoordinationBinding as ao, CanonicalAgentProfileMaterializationAxis as ap, StructuralRolloutResult as ar, DriverAttemptStop as as, createScope as at, McpServer as au, SuperviseSurfaceOptions as b, AgenticTool as ba, DefinePersonaInput as bc, DelegationFeedbackSnapshot as bd, RetainedRunEnvironmentAdmission as bf, reconnectRetainedRun as bi, anytimeReport as bl, delegate as bn, resolveSupervisorProfile as bo, renderProfileMaterializationIssues as bp, ChampionPick as br, InProcessPromptCtx as bs, workerCancelRequestsFile as bt, InMemoryFeedbackStore as bu, VerifierEnvironmentOptions as c, BenchmarkConfig as ca, TrajectoryNode as cc, DelegateCodeConfig as cd, ValidationError as cf, createSandboxLineage as ci, renderLeaderboardHtml as cl, supervisorPolicyPrompt as cn, ObserveSupervisorNodeEvent as co, ProfileMaterializationContract as cp, compareCheckOutcomes as cr, DriverRetryPolicy as cs, WorkerCancellation as ct, createMcpServer as cu, HarvestSurfaceDiffsOptions as d, BenchmarkStrategySummary as da, TrajectoryReportOptions as dc, DelegateFeedbackResult as dd, ReconnectRetainedRunOptions as df, extractLlmCallEvent as di, renderPairwiseMarkdown as dl, DispatchStopReason as dn, ResolvedSupervisorProfile as do, assertProfileMaterialization as dp, defaultStructuralRolloutPolicy as dr, TERMINAL_DECISIONS as ds, legacySupervisorRunDir as dt, DELEGATE_TOOL_NAME as du, buildSteerContext as ea, Pipeline as ec, DelegationResumeTick as ed, BackendTransportError as ef, TurnResult as ei, LeaderboardOptions as el, createPromptRegistry as en, SuperviseRegistryTable as eo, replaySpawnTree as ep, CheckSourceCtx as er, collectDelivered as es, parseWorkerToolTraceArtifact as et, WorkerSpawnContext as eu, SurfaceDiff as f, BenchmarkTaskRow as fa, Verify as fc, DelegateResearchArgs as fd, RecoverRetainedRunOptions as ff, mapSandboxEvent as fi, AuditIntentInput as fl, DispatchUnit as fn, SupervisorAgentDeps as fo, controlProfileMaterialization as fp, filterAuthoredAsserts as fr, TerminalDecision as fs, legacySupervisorRunsRoot as ft, DelegateArgs as fu, WatchedSurface as g, AgenticOptions as ga, WidenLineage as gc, DelegateUiAuditConfig as gd, RetainedRunCancelOptions as gf, SandboxCapabilities as gi, defaultAuditorInstruction as gl, queueOf as gn, SupervisorProfile as go, promptControlProfileMaterialization as gp, sandboxCheckRunner as gr, LocalSandboxClientOptions as gs, safeWorkerFile as gt, createDelegateHandler as gu, SurfaceReader as h, runBenchmark as ha, WidenDecision as hc, DelegateUiAuditArgs as hd, RetainedRunAdmissionHook as hf, CriuCapableClient as hi, auditIntent as hl, freeSlots as hn, SupervisorNodeContextSeed as ho, profileMaterializationAxes$1 as hp, resolveEntrySymbol as hr, runAgentRounds as hs, readWorkerSteerRequests as ht, DelegateResult as hu, SandboxEvent$1 as i, McpEnvironmentOptions as ia, ScopeAnalyst as ic, SubmitInput as id, PlannerError as if, ForkCapableBox as ii, ProfileKeyOf as il, formatPromptHandle as in, workerFromBackend as io, AssertProfileMaterializationOptions as ip, StructuralRolloutPolicy as ir, DriverAttemptRecord as is, ScopeArgs as it, normalizeAnalyzeOnSettle as iu, VERIFY_TAIL_CHARS as j, SurfaceScore as ja, DefinedLeaderboard as jc, FeedbackRefersTo as jd, EventBus as jf, assertModelAllowed as ji, AnalyzeOnSettleRoute as jl, chatTransportExecutor as jn, ProgressSample as jo, pickChampion as jr, observe as js, createInMemoryRunContext as jt, detachedSessionDelegate as ju, EVIDENCE_MAX_CHARS as k, StrategyResult as ka, ShapeContext as kc, DelegationStatusResult as kd, BusRecord as kf, profileChatClient as ki, AnalystFindingEvent as kl, ChatTransportTool as kn, NoProgressForOptions as ko, StrategyEvolutionConfig as kr, ObserveOptions as ks, RunContext as kt, UiAuditorDelegate as ku, createVerifierEnvironment as l, BenchmarkLift as la, TrajectoryReport as lc, DelegateCodeResult as ld, NativeContextContinuationExecution as lf, SandboxToolPartState as li, renderLeaderboardMarkdown as ll, ConcurrencyCaps as ln, ResolveDriveHarness as lo, ProfileMaterializationIssue as lp, composeCheckSources as lr, classifyDriverFailure as ls, WorkerSteerRequest as lt, DELEGATE_DESCRIPTION as lu, SurfaceReadOutcome as m, printBenchmarkReport as ma, Widen as mc, DelegateResearchResult as md, RetainedRunAdmission as mf, sumSandboxUsage as mi, IntentAudit as ml, effectiveConcurrency as mn, SupervisorNodeContext as mo, fullProfileMaterialization as mp, officialChecksFromMeta as mr, isTerminalDecision as ms, readWorkerCancellation as mt, DelegateHandlerOptions as mu, AnalystFinding$1 as n, registryScopeAnalyst as na, RenderCorpusToInstructions as nc, DelegationTaskQueue as nd, JudgeError as nf, BranchCapableBox as ni, PairwiseOptions as nl, dumbContinuationFailPrompt as nn, supervise as no, AGENT_PROFILE_MATERIALIZATION_AXES as np, StructuralRolloutConfig as nr, runFinalizer as ns, createRootHandle as nt, canonicalFindingEvent as nu, computeFindingId$1 as o, sanitizeMcpToolSchema as oa, ScopeWidenGate as oc, hashIdempotencyInput as od, RetainedRunDispatchBindingError as of, SandboxLineageHandle as oi, leaderboard as ol, naiveContinuationPrompt as on, DriveHarness as oo, DefineProfileMaterializationContractOptions as op, VisibleCheck as or, DriverAttemptsExhaustedError as os, settledToIteration as ot, McpServerOptions as ou, SurfaceReadBox as p, Environment as pa, VerifySpec as pc, DelegateResearchConfig as pd, RecoverRetainedRunResult as pf, mapSandboxToolEvent as pi, AuditIntentOptions as pl, RollingDispatchOptions as pn, SupervisorAgentTestDeps as po, defineProfileMaterializationContract as pp, modelAuthoredChecks as pr, defaultSelectWinner as ps, readWorkerCancelRequests as pt, DelegateError as pu, localShell as q, superviseDispatch as qa, deterministicCompletion as qc, DelegationStateCorruptError as qd, SpawnForestInDoubtNode as qf, pipeline as qi, QuestionLevel as ql, profileRichnessFinding as qn, SupervisorSpanRecorder as qo, materializeLocalMcp as qr, LoopUntil as qs, defaultEdgeTraversalCap as qt, formatDetachedSessionRef as qu, CreateSandboxOptions$1 as r, McpEndpoint as ra, RenderCorpusToInstructionsOptions as rc, DelegationTaskQueueOptions as rd, NotFoundError as rf, CheckpointCapableBox as ri, PairwiseVerdict as rl, dumbContinuationPassPrompt as rn, superviseWithTestBrain as ro, AgentProfileMaterializationAxis as rp, StructuralRolloutMessage as rr, runTree as rs, createSupervisor as rt, createCoordinationTools as ru, makeFinding$1 as s, BenchmarkCell as sa, SteerContext as sc, DelegateCodeArgs as sd, RuntimeRunStateError as sf, SessionCapableBox as si, pairwiseSignificance as sl, promptHandle as sn, DriveHarnessOwnerContext as so, KnownAgentProfileMaterializationAxis as sp, canDisplace as sr, DriverProgressMark as ss, WorkerCancelRequest as st, createInProcessTransport as su, AgentProfile$2 as t, createScopeAnalyst as ta, PipelineStage as tc, DelegationRunContext as td, ConfigError as tf, openSandboxRun as ti, LeaderboardRow as tl, delegatesWorkerBriefPrompt as tn, SuperviseTestOptions as to, contentAddress as tp, RepairStop as tr, pickBestDelivered as ts, workerTraceAnalysisStore as tt, WorkerWatchOptions as tu, BoxSurfaceReaderOptions as u, BenchmarkReport as ua, TrajectoryReportFn as uc, DelegateFeedbackArgs as ud, NativeContextContinuationInput as uf, createSandboxToolPartState as ui, renderLeaderboardSvg as ul, DispatchReport as un, ResolveSupervisorTools as uo, ValidateProfileMaterializationOptions as up, defaultExtractCandidate as ur, RunAgentRoundsOptions as us, cancelWorker as ut, DELEGATE_INPUT_SCHEMA as uu, fsSurfaceReader as v, AgenticSurface as va, WinnerStrategy as vc, DelegateUiAuditRoute as vd, RetainedRunDispatchedAdmission as vf, AcquireOptions as vi, AnytimeStrategySummary as vl, DelegateOptions as vn, SupervisorToolInvocationContext as vo, promptOnlyProfileMaterialization as vp, structuralRollout as vr, inlineSandboxClient as vs, supervisorRunsRoot as vt, FeedbackEvent as vu, failuresAnalyst as w, ShotSpec as wa, PersonaContext as wc, DelegationProfile as wd, RetainedRunSnapshot as wf, ResolveSandboxClientOptions as wi, renderAnytimeTable as wl, driverAgent as wn, CoordinationLog as wo, EvolutionBandInfo as wr, HarvestFailure as ws, workerInboxFile as wt, CoderReviewer as wu, SuperviseSurfaceResult as x, ArtifactHandle as xa, LoopShape as xc, DelegationHistoryArgs as xd, RetainedRunEventOptions as xf, recoverRetainedRun as xi, areaUnderCurve as xl, CoordinationMcpHandle as xn, supervisorAgent as xo, sandboxActProfileMaterialization as xp, ChampionPolicy as xr, InProcessSandboxClientOptions as xs, workerCancellationFile as xt, eventToSnapshot as xu, harvestSurfaceDiffs as y, AgenticTask as ya, DefinePersona as yc, DelegationError as yd, RetainedRunEffect as yf, acquireSandbox as yi, AnytimeTaskCurve as yl, defaultDelegateBudget as yn, assertCoordinationBinding as yo, promptResourceProfileMaterialization as yp, visibleCheckScore as yr, InProcessOnPrompt as ys, supervisorWorkersDir as yt, FeedbackStore as yu, withUntrackedArtifacts as z, sampleThenRefine as za, LeaderboardScore as zc, DelegationTraceCaps as zd, gateOnDeliverable as zf, runPersonified as zi, DEFAULT_AWAIT_EVENT_TIMEOUT_MS as zl, createBudgetPool as zn, anyOf as zo, strategyAuthorSystemPrompt as zr, EqualKOnCost as zs, EdgeTraversal as zt, DetachedSessionRefParts as zu };
8562
- //# sourceMappingURL=index-DBuSUP9J.d.ts.map
8551
+ export { captureWorkerTraceEvidence as $, SuperviseRegistry as $a, LeaderboardOptions as $c, BackendTransportError as $d, replaySpawnTree as $f, assertTraceDerivedFindings as $i, WorkerSpawnContext as $l, CheckSource as $n, bestDelivered as $o, SandboxRunAbortError as $r, Pipeline as $s, analyzesFindingsReportPrompt as $t, DelegationResumeTick as $u, NOTE_MAX_CHARS as A, StrategyShotResult as Aa, DefinedLeaderboard as Ac, FeedbackRefersTo as Ad, EventBus as Af, profileOptimizerModelCall as Ai, AnalyzeOnSettleRoute as Al, ChatWorkerSeamOptions as An, PlateauOptions as Ao, discriminatingMeans as Ar, observe as As, createFileRunContext as At, detachedSessionDelegate as Au, GitWorkspaceOptions as B, LoopCampaignDispatchOptions as Ba, defineLeaderboard as Bc, DelegationTraceSpan as Bd, FileResultBlobStore as Bf, FileCorpus as Bi, DownMessageDeliveryAttempt as Bl, spendFromUsageEvents as Bn, createProgressTracker as Bo, LocalMcpMaterialization as Br, EqualKVerdict as Bs, GraphEdge as Bt, DetachedTurnResumeDriverOptions as Bu, SurfaceWorkerOut as C, RunAgenticOptions as Ca, PersonaContext as Cc, DelegationProfile as Cd, RetainedRunSnapshot as Cf, startRetainedRunInEnvironment as Ci, renderAnytimeTable as Cl, DriverAgentOptions as Cn, CoordinationDeliveryEvidence as Co, EvolutionAuthor as Cr, HarvestFailure as Cs, workerControlLogFile as Ct, CoderReviewer as Cu, WorktreeFanoutOptions as D, StrategyCtx as Da, ShapeBudget as Dc, DelegationStatusArgs as Dd, BusEvent as Df, PromotionVerdict as Di, createWaterfallCollector as Dl, ChatSessionStore as Dn, PriorCoordination as Do, EvolutionReport as Dr, ObserveInput as Ds, InMemoryRunContext as Dt, SettleDetachedCoderTurnOptions as Du, AuthoredHarness as E, StrategyArtifacts as Ea, RunPersonifiedOptions as Ec, DelegationStatus as Ed, CoderOutput as Ef, PromotionGateOptions as Ei, WaterfallSpan as El, ChatCompletionsTransport as En, FileCoordinationLog as Eo, EvolutionGeneration as Er, Observation as Es, writeWorkerSteer as Et, DetachedWinnerSelection as Eu, settledWorkerOut as F, depthStrategy as Fa, LeaderboardIterationInfo as Fc, CappedDelegationTrace as Fd, watchTrace as Ff, builtinShapes as Fi, CoordinationEvent as Fl, BudgetPoolRestore as Fn, StopDecision as Fo, AuthoredStrategy as Fr, CorpusFilter as Fs, WorktreePatchArtifact as Ft, SiblingSandboxExecutorOptions as Fu, gitWorkspace as G, loopCampaignDispatch as Ga, completionAuthorizes as Gc, DelegationPersistenceError as Gd, SpawnForestEvent as Gf, loopUntil as Gi, QuestionDecision as Gl, assessAuthoredProfile as Gn, SupervisorSpanOptions as Go, StdioMcpServerSpec as Gr, FlatWidenGate as Gs, RunGraphTestOptions as Gt, detachedTurnEvents as Gu, Workspace as H, LoopOptionsForDispatch as Ha, CompletionEvidence as Hc, capDelegationTrace as Hd, InMemoryResultBlobStore as Hf, renderCorpusToInstructions as Hi, DownMessageEvent as Hl, ProfileRichness as Hn, plateau as Ho, McpSpawnFault as Hr, FanoutOptions as Hs, GraphNode as Ht, DriveTurnTick as Hu, CopyOptions as I, refine as Ia, LeaderboardRunContext as Ic, DELEGATION_TRACE_MAX_BYTES as Id, DeliverableSpec as If, createShapeRegistry as Ii, CoordinationTools as Il, BudgetReadout as In, StopRule as Io, assertStrategyContract as Ir, CorpusRecord as Is, createWorktreeCliExecutor as It, createFleetWorkspaceExecutor as Iu, runInWorkspace as J, AuthorizedSpawn as Ja, stopSentinel as Jc, FileDelegationStore as Jd, SpawnForestNode as Jf, selectValidWinner as Ji, QuestionPolicy as Jl, supervisorInstructions as Jn, createSupervisorSpanRecorder as Jo, Deliverable as Jr, LoopUntilState as Js, runGraph as Jt, runDetachedTurn as Ju, jjWorkspace as K, loopDispatch as Ka, deterministicCompletion as Kc, DelegationStateCorruptError as Kd, SpawnForestInDoubtNode as Kf, panel as Ki, QuestionLevel as Kl, defaultProfileRichnessThresholds as Kn, SupervisorSpanOutcome as Ko, connectStdioMcp as Kr, LoopUntil as Ks, TraversalContinuity as Kt, formatDetachedSessionRef as Ku, UntrackedCopyStats as L, runAgentic as La, LeaderboardScenario as Lc, DELEGATION_TRACE_MAX_SPANS as Ld, ExecutorResultMapping as Lf, registerShape as Li, CoordinationToolsOptions as Ll, ReservationRejection as Ln, allOf as Lo, authorStrategy as Lr, EqualKArm as Ls, AgentGraph as Lt, createSiblingSandboxExecutor as Lu, WorkerEvidenceInput as M, adaptiveRefine as Ma, LeaderboardBenchTask as Mc, ResearchSource as Md, createEventBus as Mf, assertProfileModelsAllowed as Mi, AuthorizedDownMessage as Ml, chatWorkerSeam as Mn, ProgressTracker as Mo, runStrategyEvolution as Mr, AssertTraceDerivedFindings as Ms, PatchDeliverableOptions as Mt, DelegationExecutor as Mu, closingWorkerNote as N, breadthStrategy as Na, LeaderboardBenchmarkAdapter as Nc, UiAuditLensFilter as Nd, WatchTraceOptions as Nf, equalKOnCost as Ni, ContinuationInstruction as Nl, createChatSessionStore as Nn, ProgressTrackerOptions as No, selectChampion as Nr, CombinatorShape as Ns, patchDelivered as Nt, FleetHandle as Nu, worktreeFanout as O, StrategyMessage as Oa, ShapeContext as Oc, DelegationStatusResult as Od, BusRecord as Of, promotionGate as Oi, AnalystFindingEvent as Ol, ChatTransportExecutorOptions as On, AllWorkersStalledOptions as Oo, ReproductionCheck as Or, ObserveOptions as Os, InMemoryRunContextOptions as Ot, UiAuditorDelegate as Ou, composeWorkerEvidence as P, defineStrategy as Pa, LeaderboardFlagSpec as Pc, UiAuditorDelegationOutput as Pd, defaultToolDetectors as Pf, trajectoryReport as Pi, ContinuityMode as Pl, BudgetPool as Pn, ProgressView as Po, AuthorStrategyOptions as Pr, Corpus as Ps, WorktreeCliExecutorOptions as Pt, FleetWorkspaceExecutorOptions as Pu, WorkerToolTraceArtifact as Q, SuperviseOptions as Qa, Leaderboard as Qc, AgentEvalErrorCode as Qd, pendingWaits as Qf, RegistryAnalyzeProjection as Qi, WorkerResumeContext as Ql, CheckRunner as Qn, SupervisorFinalizer as Qo, SandboxRun as Qr, PanelVerdict as Qs, RegisteredPrompt as Qt, DelegationResumeDriver as Qu, copyUntrackedIntoClone as R, sample as Ra, LeaderboardScore as Rc, DelegationTraceCaps as Rd, gateOnDeliverable as Rf, definePersona as Ri, DEFAULT_AWAIT_EVENT_TIMEOUT_MS as Rl, ReservationTicket as Rn, allWorkersStalled as Ro, strategyAuthorContract as Rr, EqualKOnCost as Rs, EdgeDeliveryOutcome as Rt, DetachedSessionRefParts as Ru, SurfaceWorkerConfig as S, CorpusReadbackOptions as Sa, Persona as Sc, DelegationHistoryResult as Sd, RetainedRunReplayPoint as Sf, startRetainedRun as Si, plateauLength as Sl, serveCoordinationMcp as Sn, supervisorAgentWithTestBrain as So, worktreeCliProfileMaterialization as Sp, EvolutionArchiveNode as Sr, HarvestCorpusOptions as Ss, workerCancellationsDir as St, CoderReview as Su, superviseSurface as T, Strategy as Ta, RunPersonified as Tc, DelegationResultPayload as Td, StartRetainedRunOptions as Tf, resolveSandboxClient as Ti, WaterfallReport as Tl, finalizeBestDelivered as Tn, CoordinationOwnerId as To, EvolutionCandidate as Tr, harvestCorpus as Ts, workerInboxFileFromEventDir as Tt, DetachedSessionDelegateOptions as Tu, WorkspaceCommit as U, SuperviseDispatchOptions as Ua, CompletionPolicy as Uc, composeLoopTraceEmitters as Ud, InMemorySpawnJournal as Uf, fanout as Ui, MakeWorkerAgent as Ul, ProfileRichnessThresholds as Un, sampleFromSettled as Uo, McpToolDescriptor as Ur, FanoutSynthesis as Us, GraphResult as Ut, RunDetachedTurnOptions as Uu, Shell as V, LoopDispatchOptions as Va, CompletionAnalyst as Vc, buildDelegationTraceSpans as Vd, FileSpawnJournal as Vf, InMemoryCorpus as Vi, DownMessageDeliveryOutcome as Vl, AuthoredProfile as Vn, noProgressFor as Vo, MaterializeLocalMcpOptions as Vr, Fanout as Vs, GraphEdgeCapError as Vt, DriveTurnCapableBox as Vu, WorkspaceRun as W, SuperviseOptionsForDispatch as Wa, CompletionVerdict as Wc, createDelegationTraceCollector as Wd, SpawnForest as Wf, flatWidenGate as Wi, Question as Wl, asAuthoredProfile as Wn, SupervisorSpanAttributes as Wo, StdioMcpConnection as Wr, FanoutWinnerSelector as Ws, RunGraphOptions as Wt, createDetachedTurnResumeDriver as Wu, analyzeTrace as X, DEFAULT_AUTHORED_PROFILE_SECURITY_POLICY as Xa, GroupOf as Xc, InMemoryDelegationStore as Xd, loadSpawnForest as Xf, widen as Xi, QuestionUrgency as Xl, CheckOutcome as Xn, FinalizeContext as Xo, OpenSandboxRunOptions as Xr, PanelJudge as Xs, PromptHandle as Xt, DelegationRecord as Xu, TrajectoryAnalysis as Y, AuthorizedSpawnContext as Ya, AxisScoresOf as Yc, FileDelegationStoreOptions as Yd, SpawnForestTree as Yf, verify as Yi, QuestionRecord as Yl, CheckExecChannel as Yn, DeliveredOutput as Yo, OpenSandboxRunBeforeStartContext as Yr, Panel as Ys, runGraphWithTestBrain as Yt, DelegationArgs as Yu, WORKER_TOOL_TRACE_SCHEMA_VERSION as Z, DeliverableResolutionInput as Za, Interval as Zc, AgentEvalError$1 as Zd, materializeTreeView as Zf, CreateScopeAnalystOptions as Zi, SettledWorker as Zl, CheckRunContext as Zn, FinalizerSettled as Zo, OpenSandboxRunPromptOptions as Zr, PanelSpec as Zs, PromptRegistry as Zt, DelegationResumeContext as Zu, boxSurfaceReader as _, AgenticRunResult as _a, WinnerStrategy as _c, DelegateUiAuditRoute as _d, RetainedRunDispatchedAdmission as _f, probeSandboxCapabilities as _i, AnytimeStrategySummary as _l, rollingDispatch as _n, SupervisorToolDescriptor as _o, promptOnlyProfileMaterialization as _p, selectBestIndex as _r, inlineSandboxClient as _s, supervisorRunDir as _t, FeedbackEvent as _u, SandboxInstance$1 as a, createMcpEnvironment as aa, ScopeWidenGate as ac, hashIdempotencyInput as ad, RetainedRunDispatchBindingError as af, SandboxLineage as ai, leaderboard as al, kernelPromptRegistry as an, CoordinationBinding as ao, DefineProfileMaterializationContractOptions as ap, StructuralRolloutResult as ar, DriverAttemptsExhaustedError as as, createScope as at, McpServerOptions as au, SuperviseSurfaceOptions as b, AgenticTool as ba, LoopShape as bc, DelegationHistoryArgs as bd, RetainedRunEventOptions as bf, reconnectRetainedRun as bi, areaUnderCurve as bl, delegate as bn, resolveSupervisorProfile as bo, sandboxActProfileMaterialization as bp, ChampionPick as br, InProcessSandboxClientOptions as bs, workerCancelRequestsFile as bt, eventToSnapshot as bu, VerifierEnvironmentOptions as c, BenchmarkConfig as ca, TrajectoryReport as cc, DelegateCodeResult as cd, NativeContextContinuationExecution as cf, createSandboxLineage as ci, renderLeaderboardMarkdown as cl, supervisorPolicyPrompt as cn, ObserveSupervisorNodeEvent as co, ProfileMaterializationIssue as cp, compareCheckOutcomes as cr, classifyDriverFailure as cs, WorkerCancellation as ct, DELEGATE_DESCRIPTION as cu, HarvestSurfaceDiffsOptions as d, BenchmarkStrategySummary as da, Verify as dc, DelegateResearchArgs as dd, RecoverRetainedRunOptions as df, extractLlmCallEvent as di, AuditIntentInput as dl, DispatchStopReason as dn, ResolvedSupervisorProfile as do, controlProfileMaterialization as dp, defaultStructuralRolloutPolicy as dr, TerminalDecision as ds, legacySupervisorRunDir as dt, DelegateArgs as du, buildSteerContext as ea, PipelineStage as ec, DelegationRunContext as ed, ConfigError as ef, TurnResult as ei, LeaderboardRow as el, createPromptRegistry as en, SuperviseRegistryTable as eo, contentAddress as ep, CheckSourceCtx as er, collectDelivered as es, parseWorkerToolTraceArtifact as et, WorkerWatchOptions as eu, SurfaceDiff as f, BenchmarkTaskRow as fa, VerifySpec as fc, DelegateResearchConfig as fd, RecoverRetainedRunResult as ff, mapSandboxEvent as fi, AuditIntentOptions as fl, DispatchUnit as fn, SupervisorAgentDeps as fo, defineProfileMaterializationContract as fp, filterAuthoredAsserts as fr, defaultSelectWinner as fs, legacySupervisorRunsRoot as ft, DelegateError as fu, WatchedSurface as g, AgenticOptions as ga, WidenSpec as gc, DelegateUiAuditResult as gd, RetainedRunCancellation as gf, SandboxCapabilities as gi, AnytimeReport as gl, queueOf as gn, SupervisorProfile as go, promptModelProfileMaterialization as gp, sandboxCheckRunner as gr, localSandboxClient as gs, safeWorkerFile as gt, validateDelegateArgs as gu, SurfaceReader as h, runBenchmark as ha, WidenLineage as hc, DelegateUiAuditConfig as hd, RetainedRunCancelOptions as hf, CriuCapableClient as hi, defaultAuditorInstruction as hl, freeSlots as hn, SupervisorNodeContextSeed as ho, promptControlProfileMaterialization as hp, resolveEntrySymbol as hr, LocalSandboxClientOptions as hs, readWorkerSteerRequests as ht, createDelegateHandler as hu, SandboxEvent$1 as i, McpEnvironmentOptions as ia, ScopeAnalyzeInput as ic, SubmitOutput as id, RetainedRunAdmissionError as if, ForkCapableBox as ii, ScoreOf as il, formatPromptHandle as in, workerFromBackend as io, CanonicalAgentProfileMaterializationAxis as ip, StructuralRolloutPolicy as ir, DriverAttemptStop as is, ScopeArgs as it, McpServer as iu, VERIFY_TAIL_CHARS as j, SurfaceScore as ja, LeaderboardBenchScore as jc, ResearchOutputShape as jd, PublishOptions as jf, assertModelAllowed as ji, AuthorizeDownMessage as jl, chatTransportExecutor as jn, ProgressSample as jo, pickChampion as jr, renderReport as js, createInMemoryRunContext as jt, settleDetachedCoderTurn as ju, EVIDENCE_MAX_CHARS as k, StrategyResult as ka, ShapeRegistry as kc, FeedbackRating as kd, BusStats as kf, profileChatClient as ki, AnalystRegistry as kl, ChatTransportTool as kn, NoProgressForOptions as ko, StrategyEvolutionConfig as kr, defaultAnalystInstruction as ks, RunContext as kt, coderTaskFromArgs as ku, createVerifierEnvironment as l, BenchmarkLift as la, TrajectoryReportFn as lc, DelegateFeedbackArgs as ld, NativeContextContinuationInput as lf, SandboxToolPartState as li, renderLeaderboardSvg as ll, ConcurrencyCaps as ln, ResolveDriveHarness as lo, ValidateProfileMaterializationOptions as lp, composeCheckSources as lr, RunAgentRoundsOptions as ls, WorkerSteerRequest as lt, DELEGATE_INPUT_SCHEMA as lu, SurfaceReadOutcome as m, printBenchmarkReport as ma, WidenDecision as mc, DelegateUiAuditArgs as md, RetainedRunAdmissionHook as mf, sumSandboxUsage as mi, auditIntent as ml, effectiveConcurrency as mn, SupervisorNodeContext as mo, profileMaterializationAxes$1 as mp, officialChecksFromMeta as mr, runAgentRounds as ms, readWorkerCancellation as mt, DelegateResult as mu, AnalystFinding$1 as n, registryScopeAnalyst as na, RenderCorpusToInstructionsOptions as nc, DelegationTaskQueueOptions as nd, NotFoundError as nf, BranchCapableBox as ni, PairwiseVerdict as nl, dumbContinuationFailPrompt as nn, supervise as no, AgentProfileMaterializationAxis as np, StructuralRolloutConfig as nr, runFinalizer as ns, createRootHandle as nt, createCoordinationTools as nu, computeFindingId$1 as o, sanitizeMcpToolSchema as oa, SteerContext as oc, DelegateCodeArgs as od, RuntimeRunStateError as of, SandboxLineageHandle as oi, pairwiseSignificance as ol, naiveContinuationPrompt as on, DriveHarness as oo, KnownAgentProfileMaterializationAxis as op, VisibleCheck as or, DriverProgressMark as os, settledToIteration as ot, createInProcessTransport as ou, SurfaceReadBox as p, Environment as pa, Widen as pc, DelegateResearchResult as pd, RetainedRunAdmission as pf, mapSandboxToolEvent as pi, IntentAudit as pl, RollingDispatchOptions as pn, SupervisorAgentTestDeps as po, fullProfileMaterialization as pp, modelAuthoredChecks as pr, isTerminalDecision as ps, readWorkerCancelRequests as pt, DelegateHandlerOptions as pu, localShell as q, superviseDispatch as qa, sentinelCompletion as qc, DelegationStore as qd, SpawnForestMissingTree as qf, pipeline as qi, QuestionOption as ql, profileRichnessFinding as qn, SupervisorSpanRecorder as qo, materializeLocalMcp as qr, LoopUntilSpec as qs, defaultEdgeTraversalCap as qt, parseDetachedSessionRef as qu, CreateSandboxOptions$1 as r, McpEndpoint as ra, ScopeAnalyst as rc, SubmitInput as rd, PlannerError as rf, CheckpointCapableBox as ri, ProfileKeyOf as rl, dumbContinuationPassPrompt as rn, superviseWithTestBrain as ro, AssertProfileMaterializationOptions as rp, StructuralRolloutMessage as rr, DriverAttemptRecord as rs, createSupervisor as rt, normalizeAnalyzeOnSettle as ru, makeFinding$1 as s, BenchmarkCell as sa, TrajectoryNode as sc, DelegateCodeConfig as sd, ValidationError as sf, SessionCapableBox as si, renderLeaderboardHtml as sl, promptHandle as sn, DriveHarnessOwnerContext as so, ProfileMaterializationContract as sp, canDisplace as sr, DriverRetryPolicy as ss, WorkerCancelRequest as st, createMcpServer as su, AgentProfile$2 as t, createScopeAnalyst as ta, RenderCorpusToInstructions as tc, DelegationTaskQueue as td, JudgeError as tf, openSandboxRun as ti, PairwiseOptions as tl, delegatesWorkerBriefPrompt as tn, SuperviseTestOptions as to, AGENT_PROFILE_MATERIALIZATION_AXES as tp, RepairStop as tr, pickBestDelivered as ts, workerTraceAnalysisStore as tt, canonicalFindingEvent as tu, BoxSurfaceReaderOptions as u, BenchmarkReport as ua, TrajectoryReportOptions as uc, DelegateFeedbackResult as ud, ReconnectRetainedRunOptions as uf, createSandboxToolPartState as ui, renderPairwiseMarkdown as ul, DispatchReport as un, ResolveSupervisorTools as uo, assertProfileMaterialization as up, defaultExtractCandidate as ur, TERMINAL_DECISIONS as us, cancelWorker as ut, DELEGATE_TOOL_NAME as uu, fsSurfaceReader as v, AgenticSurface as va, DefinePersona as vc, DelegationError as vd, RetainedRunEffect as vf, AcquireOptions as vi, AnytimeTaskCurve as vl, DelegateOptions as vn, SupervisorToolInvocationContext as vo, promptResourceProfileMaterialization as vp, structuralRollout as vr, InProcessOnPrompt as vs, supervisorRunsRoot as vt, FeedbackStore as vu, failuresAnalyst as w, ShotSpec as wa, PersonaExecutors as wc, DelegationProgress as wd, StartRetainedRunInEnvironmentOptions as wf, ResolveSandboxClientOptions as wi, WaterfallCollector as wl, driverAgent as wn, CoordinationLog as wo, EvolutionBandInfo as wr, HarvestReport as ws, workerInboxFile as wt, DelegateRunCtx as wu, SuperviseSurfaceResult as x, ArtifactHandle as xa, Outcome as xc, DelegationHistoryEntry as xd, RetainedRunHandle as xf, recoverRetainedRun as xi, bestSoFar as xl, CoordinationMcpHandle as xn, supervisorAgent as xo, validateProfileMaterialization as xp, ChampionPolicy as xr, inProcessSandboxClient as xs, workerCancellationFile as xt, CoderDelegate as xu, harvestSurfaceDiffs as y, AgenticTask as ya, DefinePersonaInput as yc, DelegationFeedbackSnapshot as yd, RetainedRunEnvironmentAdmission as yf, acquireSandbox as yi, anytimeReport as yl, defaultDelegateBudget as yn, assertCoordinationBinding as yo, renderProfileMaterializationIssues as yp, visibleCheckScore as yr, InProcessPromptCtx as ys, supervisorWorkersDir as yt, InMemoryFeedbackStore as yu, withUntrackedArtifacts as z, sampleThenRefine as za, LeaderboardSpec as zc, DelegationTraceCollector as zd, mapExecutorResult as zf, runPersonified as zi, DownMessageAuthorizationInput as zl, createBudgetPool as zn, anyOf as zo, strategyAuthorSystemPrompt as zr, EqualKOnCostOptions as zs, EdgeTraversal as zt, DetachedTurn as zu };
8552
+ //# sourceMappingURL=index-BOgzou1U.d.ts.map
@@ -1,4 +1,4 @@
1
- import { Lf as DeliverableSpec, Qa as SuperviseOptions, go as SupervisorProfile } from "./index-DBuSUP9J.js";
1
+ import { If as DeliverableSpec, Qa as SuperviseOptions, go as SupervisorProfile } from "./index-BOgzou1U.js";
2
2
  import { i as Budget, q as SupervisedResult } from "./types-BCkweg3w.js";
3
3
  import { o as ExecutorConfig } from "./runtime-DhPCNvuH.js";
4
4
  import { y as AgentCandidateOutputArtifactPort } from "./types-CxU37Uzr.js";
@@ -135,4 +135,4 @@ declare function runKnowledgeImprovementJob(options: RunKnowledgeImprovementJobO
135
135
  declare function buildKnowledgeImprovementExperimentBundles(bundle: AgentCandidateBundle, knowledge: KnowledgeImprovementCandidatePair): KnowledgeImprovementExperimentBundles;
136
136
  //#endregion
137
137
  export { KnowledgeImprovementActivationExecutor as C, CreateKnowledgeImprovementActivationExecutorOptions as S, SupervisedKnowledgeUpdater as _, KnowledgeImprovementJobResult as a, knowledgeReadinessDeliverable as b, createAgentKnowledgeReadinessCheck as c, KnowledgeReadinessCheckInput as d, KnowledgeReadinessCheckResult as f, SupervisedKnowledgeUpdateResult as g, SupervisedKnowledgeUpdateOptions as h, KnowledgeImprovementJobMeasurement as i, runKnowledgeImprovementJob as l, SupervisedKnowledgeUpdateInput as m, KnowledgeImprovementCandidatePair as n, RunKnowledgeImprovementJobOptions as o, RESEARCH_SUPERVISOR_SYSTEM_PROMPT as p, KnowledgeImprovementExperimentBundles as r, buildKnowledgeImprovementExperimentBundles as s, AgentKnowledgeReadinessCheckOptions as t, KnowledgeReadinessCheck as u, createSupervisedKnowledgeUpdater as v, createKnowledgeImprovementActivationExecutor as w, runSupervisedKnowledgeUpdate as x, formatSupervisedKnowledgeTask as y };
138
- //# sourceMappingURL=index-CcP87vSG.d.ts.map
138
+ //# sourceMappingURL=index-Bdgpx2Dx.d.ts.map
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
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, et as RunAgentTaskOptions, it as RuntimeStreamEvent, j as RuntimeRunCost, m as LoopResult, nt as RuntimeSession, q as AgentTaskSpec, r as Driver, rt as RuntimeSessionStore, tt as RunAgentTaskStreamOptions, z as AgentBackendContext } from "./types-BBwGSiAj.js";
2
2
  import { i as SurfaceImprovementEdit } from "./improvement-adapter-D5gwwoXQ.js";
3
3
  import { o as ImprovementProposalSource } from "./types-zWfqDjeL.js";
4
- import { $d as AgentEvalErrorCode, Al as AnalystRegistry, Il as CoordinationEvent, Qd as AgentEvalError, Qo as SupervisorFinalizer, Xo as FinalizeContext, af as RetainedRunAdmissionError, cf as ValidationError, ef as BackendTransportError, if as PlannerError, ir as StructuralRolloutPolicy, nf as JudgeError, of as RetainedRunDispatchBindingError, rf as NotFoundError, sf as RuntimeRunStateError, tf as ConfigError } from "./index-DBuSUP9J.js";
4
+ import { $d as BackendTransportError, Fl as CoordinationEvent, Qd as AgentEvalErrorCode, Qo as SupervisorFinalizer, Xo as FinalizeContext, Zd as AgentEvalError, af as RetainedRunDispatchBindingError, ef as ConfigError, if as RetainedRunAdmissionError, ir as StructuralRolloutPolicy, kl as AnalystRegistry, nf as NotFoundError, of as RuntimeRunStateError, rf as PlannerError, sf as ValidationError, tf as JudgeError } from "./index-BOgzou1U.js";
5
5
  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-sbRpjStq.js";
6
6
  import { At as exportEvalRuns, Bt as RuntimeTelemetryOptions, Ct as OtelSpan, Dt as buildRuntimeEventOtelSpans, E as ProviderModelExecutionEvidence, Et as buildLoopSpanNodes, Ft as toOtelAttributes, G as SpendGap, Gt as sanitizeAgentRuntimeEvent, Ht as SanitizedKnowledgeRequirement, I as Scope, It as RuntimeEventCollector, J as Supervisor, Kt as sanitizeKnowledgeReadinessReport, L as Settled, Lt as RuntimeStreamEventCollector, Mt as loopEventToOtelSpan, N as RootProviderModelEvidence, Nt as padSpanId, Ot as createOpenInferenceFileExporter, Pt as padTraceId, Rt as RuntimeStreamEventSink, St as OtelExporter, T as ProviderModelAttemptEvidence, Tt as buildLoopOtelSpans, U as Spend, Ut as createRuntimeEventCollector, Vt as SanitizedKnowledgeReadinessReport, W as SpendChannel, Wt as createRuntimeStreamEventCollector, _t as EvalRunsExportResult, bt as OtelAttribute, gt as EvalRunsExportConfig, ht as EvalRunGeneration, i as Budget, jt as generateSpanId, kt as createOtelExporter, m as ExecutorRegistry, mt as EvalRunEvent, nt as WorkerTraceUnavailableReason, q as SupervisedResult, qt as sanitizeRuntimeStreamEvent, r as AgentSpec, s as Executor, tt as WorkerTraceEvidence, vt as INTELLIGENCE_WIRE_VERSION, wt as RuntimeEventOtelOptions, xt as OtelExportConfig, yt as LoopSpanNode, zt as RuntimeStreamEventSummary } from "./types-BCkweg3w.js";
7
7
  import { M as WorktreeCheckRunner } from "./runtime-DhPCNvuH.js";
@@ -10,12 +10,12 @@ import { A as AgentCandidateExecutionPhase, B as AgentCandidatePreparationEviden
10
10
  import { A as AgentCandidateWorkspacePort, B as ResolvedAgentCandidateContainer, C as AgentCandidateProtectedModelSettlement, D as AgentCandidateRunFinalization, E as AgentCandidateRepositoryPort, F as PreparedAgentCandidateExecution, H as VerifiedAgentCandidateTaskOutcome, I as PreparedAgentCandidateInstruction, L as PreparedAgentCandidateKnowledge, M as CANDIDATE_TRACE_TAGS, N as CanonicalCandidateDocument, O as AgentCandidateTaskExecution, P as PersistedTaskOutcomeEvidence, R as PreparedAgentCandidateLaunch, S as AgentCandidateProtectedModelReservation, T as AgentCandidateProtectedRunCapture, V as VerifiedAgentCandidate, _ as AgentCandidateModelLimits, a as AgentCandidateExecutionPorts, b as AgentCandidateOutputPurpose, c as AgentCandidateExecutorPort, d as AgentCandidateExecutorStopRequest, f as AgentCandidateExecutorTaskOutcomeCapture, g as AgentCandidateMemoryResetResult, h as AgentCandidateMemoryPort, i as AgentCandidateContainerPort, j as CANDIDATE_TRACE_ENV, k as AgentCandidateVerificationPorts, l as AgentCandidateExecutorProfileFile, m as AgentCandidateExecutorWorkspaceInput, n as AgentCandidateBenchmarkGraderIdentity, o as AgentCandidateExecutorFinalCapture, p as AgentCandidateExecutorWorkspaceFile, r as AgentCandidateBenchmarkGraderPort, s as AgentCandidateExecutorMemoryCapture, t as AgentCandidateArtifactPort, u as AgentCandidateExecutorRequest, v as AgentCandidateModelPort, w as AgentCandidateProtectedModelSettlementCall, x as AgentCandidateProtectedModelActivation, y as AgentCandidateOutputArtifactPort, z as PreparedAgentCandidateTrace } from "./types-CxU37Uzr.js";
11
11
  import { $ as sleep, A as RunConversationOptions, B as buildForwardHeaders, C as ConversationResult, D as HaltPredicate, E as HaltContext, F as InMemoryConversationJournal, G as CircuitBreakerState, H as readDepth, I as DEFAULT_MAX_DEPTH, J as RetryBackoff, K as CircuitOpenError, L as FORWARD_HEADERS, M as ConversationJournal, N as ConversationJournalEntry, O as HaltReason, P as FileConversationJournal, Q as makePerAttemptSignal, R as ForwardHeaderName, S as ConversationPolicy, T as ConversationTurn, U as BackendCallPolicy, V as isDepthExceeded, W as CircuitBreakerConfig, X as computeBackoff, Y as RetryableErrorPredicate, Z as defaultIsRetryable, _ as createConversationBackend, a as RunPersonaConfig, b as ConversationDriveState, c as runPersonaDispatch, d as D1DatabaseLike, et as createProfileExecutionBackend, f as D1StmtLike, g as defineConversation, h as d1ToSqlAdapter, i as PersonaDriver, j as TurnOrder, k as HaltSignal, l as runConversation, m as SqlConversationJournal, n as turnId, o as RunPersonaConversationOptions, p as SqlAdapter, q as DeadlineExceededError, r as PersonaConversationResult, s as runPersonaConversation, t as slugifySpeaker, u as runConversationStream, v as AuthSource, w as ConversationStreamEvent, x as ConversationParticipant, y as Conversation, z as PropagatedHeaders } from "./index-CETQJlqT.js";
12
12
  import { $ as agenticGenerator, A as ImprovementCandidate, B as ImprovementProfilePopulationLineage, C as ImproveProfileComponents, D as ImproveScenarioPartitions, E as ImproveRuntimeCodeGeneratorOptions, F as ImprovementProfileCandidatePopulationAvailable, G as ReadonlyAgentProfile, H as ImprovementProfilePopulationObservationSource, I as ImprovementProfileCandidatePopulationUnavailable, J as AgenticGeneratorShotDisposition, K as AgenticGeneratorExecutorForWorktree, L as ImprovementProfilePopulationArtifactSource, M as ImprovementMaterializedProfilePopulationCandidate, N as ImprovementProfileCandidate, O as ImproveSkillsOptions, P as ImprovementProfileCandidatePopulation, Q as VerifyResult, R as ImprovementProfilePopulationCandidate, S as ImproveProfileAgent, T as ImproveResult, U as ImprovementRefusedProfilePopulationCandidate, V as ImprovementProfilePopulationLineageNode, W as DeepReadonly, X as AgenticGeneratorShotReceipt, Y as AgenticGeneratorShotExecution, Z as Verifier, _ as ImproveMethodOptions, a as ImproveCandidateValidationInput, b as ImproveOptimizationRunOptions, c as ImproveCodeOptions, d as ImproveCost, et as commandVerifier, f as ImproveCustomCodeGeneratorOptions, g as ImproveMethodLineage, h as ImproveMethodFactory, i as improve, j as ImprovementCodeCandidate, k as ImproveSurface, l as ImproveCodeResult, m as ImproveMethodContext, nt as CandidateGenerator, o as ImproveCandidateValidator, p as ImproveLineage, q as AgenticGeneratorOptions, s as ImproveCodeBaseOptions, t as Redactor, tt as defaultBuildPrompt, u as ImproveCodeRunOptions, v as ImproveMethodResult, w as ImproveProfileSurface, x as ImproveOptions, y as ImproveMethodSource, z as ImprovementProfilePopulationCandidateSource } from "./redact-BwEdhuVH.js";
13
- import { C as KnowledgeImprovementActivationExecutor, S as CreateKnowledgeImprovementActivationExecutorOptions, _ as SupervisedKnowledgeUpdater, a as KnowledgeImprovementJobResult, b as knowledgeReadinessDeliverable, c as createAgentKnowledgeReadinessCheck, d as KnowledgeReadinessCheckInput, f as KnowledgeReadinessCheckResult, g as SupervisedKnowledgeUpdateResult, h as SupervisedKnowledgeUpdateOptions, i as KnowledgeImprovementJobMeasurement, l as runKnowledgeImprovementJob, m as SupervisedKnowledgeUpdateInput, n as KnowledgeImprovementCandidatePair, o as RunKnowledgeImprovementJobOptions, p as RESEARCH_SUPERVISOR_SYSTEM_PROMPT, r as KnowledgeImprovementExperimentBundles, s as buildKnowledgeImprovementExperimentBundles, t as AgentKnowledgeReadinessCheckOptions, u as KnowledgeReadinessCheck, v as createSupervisedKnowledgeUpdater, w as createKnowledgeImprovementActivationExecutor, x as runSupervisedKnowledgeUpdate, y as formatSupervisedKnowledgeTask } from "./index-CcP87vSG.js";
14
- 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-Bfl9tm0R.js";
13
+ import { C as KnowledgeImprovementActivationExecutor, S as CreateKnowledgeImprovementActivationExecutorOptions, _ as SupervisedKnowledgeUpdater, a as KnowledgeImprovementJobResult, b as knowledgeReadinessDeliverable, c as createAgentKnowledgeReadinessCheck, d as KnowledgeReadinessCheckInput, f as KnowledgeReadinessCheckResult, g as SupervisedKnowledgeUpdateResult, h as SupervisedKnowledgeUpdateOptions, i as KnowledgeImprovementJobMeasurement, l as runKnowledgeImprovementJob, m as SupervisedKnowledgeUpdateInput, n as KnowledgeImprovementCandidatePair, o as RunKnowledgeImprovementJobOptions, p as RESEARCH_SUPERVISOR_SYSTEM_PROMPT, r as KnowledgeImprovementExperimentBundles, s as buildKnowledgeImprovementExperimentBundles, t as AgentKnowledgeReadinessCheckOptions, u as KnowledgeReadinessCheck, v as createSupervisedKnowledgeUpdater, w as createKnowledgeImprovementActivationExecutor, x as runSupervisedKnowledgeUpdate, y as formatSupervisedKnowledgeTask } from "./index-Bdgpx2Dx.js";
14
+ 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-OH61zEVw.js";
15
15
  import { n as mcpToolsForRuntimeMcpSubset, t as mcpToolsForRuntimeMcp } from "./openai-tools-DU3TZvFY.js";
16
16
  import { ControlBudget, ControlDecision, ControlEvalResult, ControlEvalResult as ControlEvalResult$1, ControlRunResult, ControlStep, DataAcquisitionPlan, KnowledgeReadinessReport, KnowledgeReadinessReport as KnowledgeReadinessReport$1, KnowledgeRequirement, ProposalFinding, RunRecord, RunRecord as RunRecord$1 } from "@tangle-network/agent-eval";
17
17
  import { GepaOptimizationMethodConfig, SkillOptOptimizationMethodConfig } from "@tangle-network/agent-eval/campaign";
18
- import { AgentProfile as AgentProfile$1 } from "@tangle-network/agent-interface";
18
+ import { AgentProfile as AgentProfile$1, Sha256Digest } from "@tangle-network/agent-interface";
19
19
  import { MutableSurface, Scenario as Scenario$1, SelfImproveOptions } from "@tangle-network/agent-eval/contract";
20
20
  //#region src/backends.d.ts
21
21
  /** Wrap any custom async-iterable stream into a typed `AgentExecutionBackend`. @stable */
@@ -142,6 +142,76 @@ declare const optimizerMethod: string;
142
142
  */
143
143
  declare const strategyAuthorMethod: string;
144
144
  //#endregion
145
+ //#region src/improvement/profile-improvement-harness.d.ts
146
+ interface CreateProfileImprovementHarnessOptions<TScenario extends Scenario$1, TArtifact> {
147
+ /** Exact baseline profile. It is parsed, detached, and frozen at construction. */
148
+ profile: AgentProfile$1;
149
+ /**
150
+ * Immutable identity of the bound executor, models, tools, component mapping,
151
+ * and every closure or external setting that can change measured behavior.
152
+ */
153
+ executionRef: Sha256Digest;
154
+ /** Execute one exact materialized profile on one scenario. */
155
+ agent: ImproveProfileAgent<TScenario, TArtifact>;
156
+ /** Optional validator shared by every run from this harness. */
157
+ validateCandidate?: ImproveCandidateValidator;
158
+ }
159
+ type ProfileImprovementHarnessRunOptions<TScenario extends Scenario$1, TArtifact> = Omit<ImproveMethodOptions<TScenario, TArtifact>, 'executionRef' | 'agent' | 'validateCandidate'> & {
160
+ /** Override the harness-level validator for this run. */
161
+ validateCandidate?: ImproveCandidateValidator;
162
+ };
163
+ /**
164
+ * A small, reusable front door over `improve(profile, options)`.
165
+ *
166
+ * The harness freezes the baseline and binds execution identity once, which
167
+ * removes the two easiest sources of accidental experiment drift when a
168
+ * developer runs several methods, surfaces, or held-out suites against the
169
+ * same agent. It does not replace or narrow `improve`; callers retain every
170
+ * method option and may still use the lower-level API directly.
171
+ */
172
+ interface ProfileImprovementHarness<TScenario extends Scenario$1, TArtifact> {
173
+ /** Detached immutable baseline actually used by every run. */
174
+ readonly profile: ReadonlyAgentProfile;
175
+ /** Canonical digest of the bound baseline profile. */
176
+ readonly profileDigest: Sha256Digest;
177
+ /** Exact execution identity bound at construction. */
178
+ readonly executionRef: Sha256Digest;
179
+ run(options: ProfileImprovementHarnessRunOptions<TScenario, TArtifact>): Promise<ImproveMethodResult>;
180
+ }
181
+ /**
182
+ * Bind one exact profile and executor into a repeatable self-improvement
183
+ * harness. The returned `run` method remains generic over every existing
184
+ * profile surface, optimization method, split, gate, and budget option.
185
+ */
186
+ declare function createProfileImprovementHarness<TScenario extends Scenario$1, TArtifact>(options: CreateProfileImprovementHarnessOptions<TScenario, TArtifact>): ProfileImprovementHarness<TScenario, TArtifact>;
187
+ //#endregion
188
+ //#region src/improvement/prompt-instructions-profile-components.d.ts
189
+ /** Stable component-name prefix used for `profile.prompt.instructions`. */
190
+ declare const PROMPT_INSTRUCTION_COMPONENT_PREFIX = "prompt.instruction:";
191
+ /**
192
+ * Canonical `ImproveProfileComponents` mapping for the ordered
193
+ * `AgentProfile.prompt.instructions` list.
194
+ *
195
+ * Use it with `surface: 'agent-profile'` when an optimizer should rewrite the
196
+ * exact instruction texts without being allowed to change their count, order,
197
+ * labels, or any unrelated profile field:
198
+ *
199
+ * ```ts
200
+ * await improve(profile, {
201
+ * surface: 'agent-profile',
202
+ * profileComponents: promptInstructionsProfileComponents,
203
+ * // method, scenarios, judge, executionRef, agent, ...
204
+ * })
205
+ * ```
206
+ *
207
+ * Component names are zero-padded and stable. Runtime's existing component
208
+ * materializer requires every candidate to preserve the exact key set and
209
+ * verifies that `apply(read(profile))` reproduces the baseline profile. A
210
+ * profile with no prompt instructions is refused rather than inventing a
211
+ * sentinel instruction that could accidentally ship.
212
+ */
213
+ declare const promptInstructionsProfileComponents: ImproveProfileComponents;
214
+ //#endregion
145
215
  //#region src/improvement/raw-trace-distiller.d.ts
146
216
  interface RawTraceDistillerOptions {
147
217
  /** Anchor the emitted paths at this run root instead of the generation `runDir`
@@ -353,5 +423,5 @@ declare function readinessServerSentEvent(report: KnowledgeReadinessReport$1, op
353
423
  /** Serialize a `RuntimeStreamEvent` as a Server-Sent Event string. @stable */
354
424
  declare function runtimeStreamServerSentEvent(event: RuntimeStreamEvent, options?: RuntimeTelemetryOptions & ServerSentEventOptions): string;
355
425
  //#endregion
356
- export { AGENT_CANDIDATE_EXECUTION_SUPPORT, type AgentAdapter, type AgentBackendContext, type AgentBackendInput, type AgentCandidateArtifactPort, type AgentCandidateBenchmarkGraderIdentity, type AgentCandidateBenchmarkGraderPort, type AgentCandidateBundleInput, type AgentCandidateCodeSource, type AgentCandidateCodeSurfaceSource, type AgentCandidateContainerPort, type AgentCandidateExecutionAttemptRecord, type AgentCandidateExecutionAttemptRef, type AgentCandidateExecutionClaim, type AgentCandidateExecutionClaimResult, type AgentCandidateExecutionClaimStore, type AgentCandidateExecutionCleanupHandles, type AgentCandidateExecutionFailureClass, type AgentCandidateExecutionFinishResult, type AgentCandidateExecutionLease, type AgentCandidateExecutionPhase, type AgentCandidateExecutionPhaseResult, type AgentCandidateExecutionPorts, type AgentCandidateExecutionRecoveryEvidence, type AgentCandidateExecutionStageResult, type AgentCandidateExecutionTerminalRecord, type AgentCandidateExecutionTerminalResult, type AgentCandidateExecutorFinalCapture, type AgentCandidateExecutorMemoryCapture, type AgentCandidateExecutorPort, type AgentCandidateExecutorProfileFile, type AgentCandidateExecutorRequest, type AgentCandidateExecutorStopRequest, type AgentCandidateExecutorTaskOutcomeCapture, type AgentCandidateExecutorWorkspaceFile, type AgentCandidateExecutorWorkspaceInput, type AgentCandidateMemoryPort, type AgentCandidateMemoryResetResult, type AgentCandidateModelGrantActivateInput, type AgentCandidateModelGrantClient, type AgentCandidateModelGrantReservation, type AgentCandidateModelGrantReserveInput, type AgentCandidateModelGrantRunReservationInput, type AgentCandidateModelGrantSettleInput, type AgentCandidateModelLimits, type AgentCandidateModelPort, type AgentCandidateOutputArtifactPort, type AgentCandidateOutputPurpose, type AgentCandidatePreparationEvidence, type AgentCandidateProfileSource, type AgentCandidateProtectedModelActivation, type AgentCandidateProtectedModelReservation, type AgentCandidateProtectedModelSettlement, type AgentCandidateProtectedModelSettlementCall, type AgentCandidateProtectedRunCapture, type AgentCandidateRepositoryPort, type AgentCandidateRetryRejection, type AgentCandidateRunFinalization, type AgentCandidateTaskExecution, type AgentCandidateVerificationPorts, type AgentCandidateWorkspaceArchiveLimits, type AgentCandidateWorkspacePort, AgentEvalError, type AgentEvalErrorCode, type AgentExecutionBackend, type AgentKnowledgeProvider, type AgentKnowledgeReadinessCheckOptions, type AgentRuntimeEvent, type AgentRuntimeEventSink, type AgentSpec, type AgentTaskContext, type AgentTaskRunResult, type AgentTaskSpec, type AgentTaskStatus, type AgenticGeneratorExecutorForWorktree, type AgenticGeneratorOptions, type AgenticGeneratorShotDisposition, type AgenticGeneratorShotExecution, type AgenticGeneratorShotReceipt, type AnalystRegistry, type AuthSource, type BackendCallPolicy, type BackendErrorDetail, BackendTransportError, type Budget, type BuildAgentCandidateBundleInput, type BuildPromptFindingsInput, CANDIDATE_KNOWLEDGE_RETRIEVAL_CONFIG_ENV, CANDIDATE_KNOWLEDGE_ROOT_ENV, CANDIDATE_TRACE_ENV, CANDIDATE_TRACE_TAGS, type CandidateGenerator, type CanonicalCandidateDocument, type CaptureAgentCandidateWorkspaceOptions, type CapturedAgentCandidateWorkspace, type ChatModelCandidate, type ChatModelValidation, type CircuitBreakerConfig, CircuitBreakerState, CircuitOpenError, ConfigError, type ControlBudget, type ControlDecision, type ControlEvalResult, type ControlRunResult, type ControlStep, type Conversation, type ConversationDriveState, type ConversationJournal, type ConversationJournalEntry, type ConversationParticipant, type ConversationPolicy, type ConversationResult, type ConversationStreamEvent, type ConversationTurn, type CoordinationEvent, type CreateAgentCandidateWorkspacePortOptions, type CreateKnowledgeImprovementActivationExecutorOptions, type CreateProtectedAgentCandidateModelPortOptions, type D1DatabaseLike, type D1StmtLike, DEFAULT_MAX_DEPTH, DEFAULT_ROUTER_BASE_URL, DELEGATED_LOOP_MODES, type DataAcquisitionPlan, DeadlineExceededError, type DeepReadonly, type DelegatedLoopMode, type DelegatedLoopRegistry, type DelegatedLoopResult, type DelegatedLoopRunner, type DisposePreparedAgentCandidateOptions, type Driver, type EvalRunEvent, type EvalRunGeneration, type EvalRunsExportConfig, type EvalRunsExportResult, type ExactProcessCandidateExecutorOptions, type ExecutePreparedAgentCandidateOptions, type Executor, type ExecutorRegistry, FORWARD_HEADERS, FileAgentCandidateExecutionClaimStore, type FileAgentCandidateExecutionClaimStoreOptions, FileConversationJournal, type FinalizeContext, type ForwardHeaderName, type HaltContext, type HaltPredicate, type HaltReason, type HaltSignal, INTELLIGENCE_WIRE_VERSION, type ImproveCandidateValidationInput, type ImproveCandidateValidator, type ImproveCodeBaseOptions, type ImproveCodeOptions, type ImproveCodeResult, type ImproveCodeRunOptions, type ImproveCost, type ImproveCustomCodeGeneratorOptions, type ImproveLineage, type ImproveMethodContext, type ImproveMethodFactory, type ImproveMethodLineage, type ImproveMethodOptions, type ImproveMethodResult, type ImproveMethodSource, type ImproveOptimizationRunOptions, type ImproveOptions, type ImproveProfileAgent, type ImproveProfileComponents, type ImproveProfileSurface, type ImproveResult, type ImproveRuntimeCodeGeneratorOptions, type ImproveScenarioPartitions, type ImproveSkillsOptions, type ImproveSurface, type ImprovementCandidate, type ImprovementCodeCandidate, type ImprovementMaterializedProfilePopulationCandidate, type ImprovementProfileCandidate, type ImprovementProfileCandidatePopulation, type ImprovementProfileCandidatePopulationAvailable, type ImprovementProfileCandidatePopulationUnavailable, type ImprovementProfilePopulationArtifactSource, type ImprovementProfilePopulationCandidate, type ImprovementProfilePopulationCandidateSource, type ImprovementProfilePopulationLineage, type ImprovementProfilePopulationLineageNode, type ImprovementProfilePopulationObservationSource, type ImprovementRefusedProfilePopulationCandidate, InMemoryAgentCandidateExecutionClaimStore, type InMemoryAgentCandidateExecutionClaimStoreOptions, InMemoryConversationJournal, InMemoryRuntimeSessionStore, JudgeError, type KnowledgeImprovementActivationExecutor, type KnowledgeImprovementCandidatePair, type KnowledgeImprovementExperimentBundles, type KnowledgeImprovementJobMeasurement, type KnowledgeImprovementJobResult, type KnowledgeReadinessCheck, type KnowledgeReadinessCheckInput, type KnowledgeReadinessCheckResult, type KnowledgeReadinessDecision, type KnowledgeReadinessReport, type KnowledgeRequirement, type LoopResult, type LoopRunnerCliArgs, type LoopRunnerCliResult, type LoopSpanNode, type McpServeSpec, type ModelInfo, NotFoundError, type OfficialGepaOptions, type OfficialOptimizerContextOptions, OfficialOptimizerUnavailableError, type OfficialSensitiveCandidateInput, type OfficialSkillOptOptions, type OpenAIChatResponseFormat, type OpenAIChatTool, type OpenAIChatToolChoice, type OtelAttribute, type OtelExportConfig, type OtelExporter, type OtelSpan, type PersistedTaskOutcomeEvidence, type PersonaConversationResult, type PersonaDriver, PlannerError, type PrepareAgentCandidateExecutionOptions, type PreparedAgentCandidateExecution, type PreparedAgentCandidateInstruction, type PreparedAgentCandidateKnowledge, type PreparedAgentCandidateLaunch, type PreparedAgentCandidateTrace, type PropagatedHeaders, type ProtectedAgentCandidateModelGrantContext, type ProviderModelAttemptEvidence, type ProviderModelExecutionEvidence, RESEARCH_SUPERVISOR_SYSTEM_PROMPT, ROLLOUT_POLICY_EXTENSION, type RawTraceDistillerOptions, type ReadonlyAgentProfile, type RecoverExpiredAgentCandidateOptions, type ReflectiveGeneratorOptions, type ResearchLoopResult, type ResearchLoopRunnerOptions, type ResolvedAgentCandidateContainer, type ResolvedChatModel, RetainedRunAdmissionError, RetainedRunDispatchBindingError, type RetryBackoff, type RetryableErrorPredicate, type RootProviderModelEvidence, type RouterEnv, type RunAgentTaskOptions, type RunAgentTaskStreamOptions, type RunConversationOptions, type RunDelegatedLoopOptions, type RunKnowledgeImprovementJobOptions, type RunPersonaConfig, type RunPersonaConversationOptions, type RunProtectedAgentCandidateModelGrantOptions, type RunProtectedAgentCandidateModelGrantResult, type RunRecord, type RuntimeDecisionEvidenceRef, type RuntimeDecisionKind, type RuntimeDecisionPoint, type RuntimeEventCollector, type RuntimeEventOtelOptions, type RuntimeHookContext, type RuntimeHookErrorContext, type RuntimeHookEvent, type RuntimeHookPhase, type RuntimeHookTarget, type RuntimeHooks, type RuntimeRunCompleteInput, type RuntimeRunCost, type RuntimeRunHandle, type RuntimeRunOptions, type RuntimeRunPersistenceAdapter, type RuntimeRunRow, RuntimeRunStateError, type RuntimeRunStatus, type RuntimeSession, type RuntimeSessionStore, type RuntimeStreamEvent, type RuntimeStreamEventCollector, type RuntimeStreamEventSink, type RuntimeStreamEventSummary, type RuntimeTelemetryOptions, type SanitizedKnowledgeReadinessReport, type SanitizedKnowledgeRequirement, type Scope, type ServerSentEventOptions, type Settled, type Spend, type SpendChannel, type SpendGap, type SqlAdapter, SqlConversationJournal, type SupervisedKnowledgeUpdateInput, type SupervisedKnowledgeUpdateOptions, type SupervisedKnowledgeUpdateResult, type SupervisedKnowledgeUpdater, type SupervisedResult, type Supervisor, type SupervisorFinalizer, type TurnOrder, ValidationError, type VerifiedAgentCandidate, type VerifiedAgentCandidateTaskOutcome, type Verifier, type VerifyResult, type VetoedFact, type WorkerTraceEvidence, type WorkerTraceUnavailableReason, type WorktreeCheckRunner, type WorktreeLoopRunnerOptions, agentCandidateProfileAsAgentProfile, agenticGenerator, applyExactAgentProfileDiff, applyRolloutPolicyToProfile, applyRunRecordDefaults, assertCandidateProfileBinding, auditLoopRunner, buildAgentCandidateBundle, buildForwardHeaders, buildKnowledgeImprovementExperimentBundles, buildLoopOtelSpans, buildLoopSpanNodes, buildRuntimeEventOtelSpans, candidateExecutionClaim, candidateKnowledgeExecutionPaths, captureAgentCandidateWorkspace, captureAgentCandidateWorkspaceFiles, cleanModelId, commandVerifier, composeRuntimeHooks, computeBackoff, createAgentCandidateWorkspacePort, createAgentKnowledgeReadinessCheck, createConversationBackend, createIterableBackend, createKnowledgeImprovementActivationExecutor, createOpenInferenceFileExporter, createOtelExporter, createProfileExecutionBackend, createProtectedAgentCandidateModelPort, createRuntimeEventCollector, createRuntimeStreamEventCollector, createSandboxPromptBackend, createSupervisedKnowledgeUpdater, d1ToSqlAdapter, decideKnowledgeReadiness, defaultBuildPrompt, defaultIsRetryable, defineConversation, defineRuntimeHooks, disposePreparedAgentCandidateExecution, exactProcessProviderAsCandidateExecutor, executePreparedAgentCandidate, exportEvalRuns, findingLines, formatSupervisedKnowledgeTask, freezeGenericAgentCandidateProfile, generateSpanId, getModels, improve, isDelegatedLoopMode, isDepthExceeded, knowledgeReadinessDeliverable, loopEventToOtelSpan, makePerAttemptSignal, mcpBuildPrompt, mcpServeVerifier, mcpToolsForRuntimeMcp, mcpToolsForRuntimeMcpSubset, normalizeRolloutPolicy, notifyRuntimeDecisionPoint, notifyRuntimeHookEvent, officialGepa, officialSkillOpt, omitUndefinedObjectFields, optimizerMethod, padSpanId, padTraceId, parseExactAgentProfile, parseExactAgentProfileDiff, parseExactCandidateProfile, parseLoopRunnerArgv, parseRolloutPolicy, persistCandidateOutputArtifact, prepareAgentCandidateExecution, rawTraceDistiller, readDepth, readinessServerSentEvent, recoverExpiredAgentCandidateExecution, reflectiveGenerator, researchLoopRunner, resolveChatModel, resolveRouterBaseUrl, runAgentTask, runAgentTaskStream, runConversation, runConversationStream, runDelegatedLoop, runKnowledgeImprovementJob, runLoopRunnerCli, runPersonaConversation, runPersonaDispatch, runProtectedAgentCandidateModelGrant, runSupervisedKnowledgeUpdate, runtimeStreamServerSentEvent, sanitizeAgentRuntimeEvent, sanitizeKnowledgeReadinessReport, sanitizeRuntimeStreamEvent, sealAgentCandidateBundle, serializeRolloutPolicy, sleep, slugifySpeaker, startRuntimeRun, strategyAuthorMethod, structuralRolloutPolicyFromProfile, toOtelAttributes, toolBuildPrompt, turnId, validateChatModelId, verifyAgentCandidateBundle, worktreeLoopRunner };
426
+ export { AGENT_CANDIDATE_EXECUTION_SUPPORT, type AgentAdapter, type AgentBackendContext, type AgentBackendInput, type AgentCandidateArtifactPort, type AgentCandidateBenchmarkGraderIdentity, type AgentCandidateBenchmarkGraderPort, type AgentCandidateBundleInput, type AgentCandidateCodeSource, type AgentCandidateCodeSurfaceSource, type AgentCandidateContainerPort, type AgentCandidateExecutionAttemptRecord, type AgentCandidateExecutionAttemptRef, type AgentCandidateExecutionClaim, type AgentCandidateExecutionClaimResult, type AgentCandidateExecutionClaimStore, type AgentCandidateExecutionCleanupHandles, type AgentCandidateExecutionFailureClass, type AgentCandidateExecutionFinishResult, type AgentCandidateExecutionLease, type AgentCandidateExecutionPhase, type AgentCandidateExecutionPhaseResult, type AgentCandidateExecutionPorts, type AgentCandidateExecutionRecoveryEvidence, type AgentCandidateExecutionStageResult, type AgentCandidateExecutionTerminalRecord, type AgentCandidateExecutionTerminalResult, type AgentCandidateExecutorFinalCapture, type AgentCandidateExecutorMemoryCapture, type AgentCandidateExecutorPort, type AgentCandidateExecutorProfileFile, type AgentCandidateExecutorRequest, type AgentCandidateExecutorStopRequest, type AgentCandidateExecutorTaskOutcomeCapture, type AgentCandidateExecutorWorkspaceFile, type AgentCandidateExecutorWorkspaceInput, type AgentCandidateMemoryPort, type AgentCandidateMemoryResetResult, type AgentCandidateModelGrantActivateInput, type AgentCandidateModelGrantClient, type AgentCandidateModelGrantReservation, type AgentCandidateModelGrantReserveInput, type AgentCandidateModelGrantRunReservationInput, type AgentCandidateModelGrantSettleInput, type AgentCandidateModelLimits, type AgentCandidateModelPort, type AgentCandidateOutputArtifactPort, type AgentCandidateOutputPurpose, type AgentCandidatePreparationEvidence, type AgentCandidateProfileSource, type AgentCandidateProtectedModelActivation, type AgentCandidateProtectedModelReservation, type AgentCandidateProtectedModelSettlement, type AgentCandidateProtectedModelSettlementCall, type AgentCandidateProtectedRunCapture, type AgentCandidateRepositoryPort, type AgentCandidateRetryRejection, type AgentCandidateRunFinalization, type AgentCandidateTaskExecution, type AgentCandidateVerificationPorts, type AgentCandidateWorkspaceArchiveLimits, type AgentCandidateWorkspacePort, AgentEvalError, type AgentEvalErrorCode, type AgentExecutionBackend, type AgentKnowledgeProvider, type AgentKnowledgeReadinessCheckOptions, type AgentRuntimeEvent, type AgentRuntimeEventSink, type AgentSpec, type AgentTaskContext, type AgentTaskRunResult, type AgentTaskSpec, type AgentTaskStatus, type AgenticGeneratorExecutorForWorktree, type AgenticGeneratorOptions, type AgenticGeneratorShotDisposition, type AgenticGeneratorShotExecution, type AgenticGeneratorShotReceipt, type AnalystRegistry, type AuthSource, type BackendCallPolicy, type BackendErrorDetail, BackendTransportError, type Budget, type BuildAgentCandidateBundleInput, type BuildPromptFindingsInput, CANDIDATE_KNOWLEDGE_RETRIEVAL_CONFIG_ENV, CANDIDATE_KNOWLEDGE_ROOT_ENV, CANDIDATE_TRACE_ENV, CANDIDATE_TRACE_TAGS, type CandidateGenerator, type CanonicalCandidateDocument, type CaptureAgentCandidateWorkspaceOptions, type CapturedAgentCandidateWorkspace, type ChatModelCandidate, type ChatModelValidation, type CircuitBreakerConfig, CircuitBreakerState, CircuitOpenError, ConfigError, type ControlBudget, type ControlDecision, type ControlEvalResult, type ControlRunResult, type ControlStep, type Conversation, type ConversationDriveState, type ConversationJournal, type ConversationJournalEntry, type ConversationParticipant, type ConversationPolicy, type ConversationResult, type ConversationStreamEvent, type ConversationTurn, type CoordinationEvent, type CreateAgentCandidateWorkspacePortOptions, type CreateKnowledgeImprovementActivationExecutorOptions, type CreateProfileImprovementHarnessOptions, type CreateProtectedAgentCandidateModelPortOptions, type D1DatabaseLike, type D1StmtLike, DEFAULT_MAX_DEPTH, DEFAULT_ROUTER_BASE_URL, DELEGATED_LOOP_MODES, type DataAcquisitionPlan, DeadlineExceededError, type DeepReadonly, type DelegatedLoopMode, type DelegatedLoopRegistry, type DelegatedLoopResult, type DelegatedLoopRunner, type DisposePreparedAgentCandidateOptions, type Driver, type EvalRunEvent, type EvalRunGeneration, type EvalRunsExportConfig, type EvalRunsExportResult, type ExactProcessCandidateExecutorOptions, type ExecutePreparedAgentCandidateOptions, type Executor, type ExecutorRegistry, FORWARD_HEADERS, FileAgentCandidateExecutionClaimStore, type FileAgentCandidateExecutionClaimStoreOptions, FileConversationJournal, type FinalizeContext, type ForwardHeaderName, type HaltContext, type HaltPredicate, type HaltReason, type HaltSignal, INTELLIGENCE_WIRE_VERSION, type ImproveCandidateValidationInput, type ImproveCandidateValidator, type ImproveCodeBaseOptions, type ImproveCodeOptions, type ImproveCodeResult, type ImproveCodeRunOptions, type ImproveCost, type ImproveCustomCodeGeneratorOptions, type ImproveLineage, type ImproveMethodContext, type ImproveMethodFactory, type ImproveMethodLineage, type ImproveMethodOptions, type ImproveMethodResult, type ImproveMethodSource, type ImproveOptimizationRunOptions, type ImproveOptions, type ImproveProfileAgent, type ImproveProfileComponents, type ImproveProfileSurface, type ImproveResult, type ImproveRuntimeCodeGeneratorOptions, type ImproveScenarioPartitions, type ImproveSkillsOptions, type ImproveSurface, type ImprovementCandidate, type ImprovementCodeCandidate, type ImprovementMaterializedProfilePopulationCandidate, type ImprovementProfileCandidate, type ImprovementProfileCandidatePopulation, type ImprovementProfileCandidatePopulationAvailable, type ImprovementProfileCandidatePopulationUnavailable, type ImprovementProfilePopulationArtifactSource, type ImprovementProfilePopulationCandidate, type ImprovementProfilePopulationCandidateSource, type ImprovementProfilePopulationLineage, type ImprovementProfilePopulationLineageNode, type ImprovementProfilePopulationObservationSource, type ImprovementRefusedProfilePopulationCandidate, InMemoryAgentCandidateExecutionClaimStore, type InMemoryAgentCandidateExecutionClaimStoreOptions, InMemoryConversationJournal, InMemoryRuntimeSessionStore, JudgeError, type KnowledgeImprovementActivationExecutor, type KnowledgeImprovementCandidatePair, type KnowledgeImprovementExperimentBundles, type KnowledgeImprovementJobMeasurement, type KnowledgeImprovementJobResult, type KnowledgeReadinessCheck, type KnowledgeReadinessCheckInput, type KnowledgeReadinessCheckResult, type KnowledgeReadinessDecision, type KnowledgeReadinessReport, type KnowledgeRequirement, type LoopResult, type LoopRunnerCliArgs, type LoopRunnerCliResult, type LoopSpanNode, type McpServeSpec, type ModelInfo, NotFoundError, type OfficialGepaOptions, type OfficialOptimizerContextOptions, OfficialOptimizerUnavailableError, type OfficialSensitiveCandidateInput, type OfficialSkillOptOptions, type OpenAIChatResponseFormat, type OpenAIChatTool, type OpenAIChatToolChoice, type OtelAttribute, type OtelExportConfig, type OtelExporter, type OtelSpan, PROMPT_INSTRUCTION_COMPONENT_PREFIX, type PersistedTaskOutcomeEvidence, type PersonaConversationResult, type PersonaDriver, PlannerError, type PrepareAgentCandidateExecutionOptions, type PreparedAgentCandidateExecution, type PreparedAgentCandidateInstruction, type PreparedAgentCandidateKnowledge, type PreparedAgentCandidateLaunch, type PreparedAgentCandidateTrace, type ProfileImprovementHarness, type ProfileImprovementHarnessRunOptions, type PropagatedHeaders, type ProtectedAgentCandidateModelGrantContext, type ProviderModelAttemptEvidence, type ProviderModelExecutionEvidence, RESEARCH_SUPERVISOR_SYSTEM_PROMPT, ROLLOUT_POLICY_EXTENSION, type RawTraceDistillerOptions, type ReadonlyAgentProfile, type RecoverExpiredAgentCandidateOptions, type ReflectiveGeneratorOptions, type ResearchLoopResult, type ResearchLoopRunnerOptions, type ResolvedAgentCandidateContainer, type ResolvedChatModel, RetainedRunAdmissionError, RetainedRunDispatchBindingError, type RetryBackoff, type RetryableErrorPredicate, type RootProviderModelEvidence, type RouterEnv, type RunAgentTaskOptions, type RunAgentTaskStreamOptions, type RunConversationOptions, type RunDelegatedLoopOptions, type RunKnowledgeImprovementJobOptions, type RunPersonaConfig, type RunPersonaConversationOptions, type RunProtectedAgentCandidateModelGrantOptions, type RunProtectedAgentCandidateModelGrantResult, type RunRecord, type RuntimeDecisionEvidenceRef, type RuntimeDecisionKind, type RuntimeDecisionPoint, type RuntimeEventCollector, type RuntimeEventOtelOptions, type RuntimeHookContext, type RuntimeHookErrorContext, type RuntimeHookEvent, type RuntimeHookPhase, type RuntimeHookTarget, type RuntimeHooks, type RuntimeRunCompleteInput, type RuntimeRunCost, type RuntimeRunHandle, type RuntimeRunOptions, type RuntimeRunPersistenceAdapter, type RuntimeRunRow, RuntimeRunStateError, type RuntimeRunStatus, type RuntimeSession, type RuntimeSessionStore, type RuntimeStreamEvent, type RuntimeStreamEventCollector, type RuntimeStreamEventSink, type RuntimeStreamEventSummary, type RuntimeTelemetryOptions, type SanitizedKnowledgeReadinessReport, type SanitizedKnowledgeRequirement, type Scope, type ServerSentEventOptions, type Settled, type Spend, type SpendChannel, type SpendGap, type SqlAdapter, SqlConversationJournal, type SupervisedKnowledgeUpdateInput, type SupervisedKnowledgeUpdateOptions, type SupervisedKnowledgeUpdateResult, type SupervisedKnowledgeUpdater, type SupervisedResult, type Supervisor, type SupervisorFinalizer, type TurnOrder, ValidationError, type VerifiedAgentCandidate, type VerifiedAgentCandidateTaskOutcome, type Verifier, type VerifyResult, type VetoedFact, type WorkerTraceEvidence, type WorkerTraceUnavailableReason, type WorktreeCheckRunner, type WorktreeLoopRunnerOptions, agentCandidateProfileAsAgentProfile, agenticGenerator, applyExactAgentProfileDiff, applyRolloutPolicyToProfile, applyRunRecordDefaults, assertCandidateProfileBinding, auditLoopRunner, buildAgentCandidateBundle, buildForwardHeaders, buildKnowledgeImprovementExperimentBundles, buildLoopOtelSpans, buildLoopSpanNodes, buildRuntimeEventOtelSpans, candidateExecutionClaim, candidateKnowledgeExecutionPaths, captureAgentCandidateWorkspace, captureAgentCandidateWorkspaceFiles, cleanModelId, commandVerifier, composeRuntimeHooks, computeBackoff, createAgentCandidateWorkspacePort, createAgentKnowledgeReadinessCheck, createConversationBackend, createIterableBackend, createKnowledgeImprovementActivationExecutor, createOpenInferenceFileExporter, createOtelExporter, createProfileExecutionBackend, createProfileImprovementHarness, createProtectedAgentCandidateModelPort, createRuntimeEventCollector, createRuntimeStreamEventCollector, createSandboxPromptBackend, createSupervisedKnowledgeUpdater, d1ToSqlAdapter, decideKnowledgeReadiness, defaultBuildPrompt, defaultIsRetryable, defineConversation, defineRuntimeHooks, disposePreparedAgentCandidateExecution, exactProcessProviderAsCandidateExecutor, executePreparedAgentCandidate, exportEvalRuns, findingLines, formatSupervisedKnowledgeTask, freezeGenericAgentCandidateProfile, generateSpanId, getModels, improve, isDelegatedLoopMode, isDepthExceeded, knowledgeReadinessDeliverable, loopEventToOtelSpan, makePerAttemptSignal, mcpBuildPrompt, mcpServeVerifier, mcpToolsForRuntimeMcp, mcpToolsForRuntimeMcpSubset, normalizeRolloutPolicy, notifyRuntimeDecisionPoint, notifyRuntimeHookEvent, officialGepa, officialSkillOpt, omitUndefinedObjectFields, optimizerMethod, padSpanId, padTraceId, parseExactAgentProfile, parseExactAgentProfileDiff, parseExactCandidateProfile, parseLoopRunnerArgv, parseRolloutPolicy, persistCandidateOutputArtifact, prepareAgentCandidateExecution, promptInstructionsProfileComponents, rawTraceDistiller, readDepth, readinessServerSentEvent, recoverExpiredAgentCandidateExecution, reflectiveGenerator, researchLoopRunner, resolveChatModel, resolveRouterBaseUrl, runAgentTask, runAgentTaskStream, runConversation, runConversationStream, runDelegatedLoop, runKnowledgeImprovementJob, runLoopRunnerCli, runPersonaConversation, runPersonaDispatch, runProtectedAgentCandidateModelGrant, runSupervisedKnowledgeUpdate, runtimeStreamServerSentEvent, sanitizeAgentRuntimeEvent, sanitizeKnowledgeReadinessReport, sanitizeRuntimeStreamEvent, sealAgentCandidateBundle, serializeRolloutPolicy, sleep, slugifySpeaker, startRuntimeRun, strategyAuthorMethod, structuralRolloutPolicyFromProfile, toOtelAttributes, toolBuildPrompt, turnId, validateChatModelId, verifyAgentCandidateBundle, worktreeLoopRunner };
357
427
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -1,21 +1,22 @@
1
1
  import { a as JudgeError, c as RetainedRunAdmissionError, f as ValidationError, i as ConfigError, l as RetainedRunDispatchBindingError, o as NotFoundError, r as BackendTransportError, s as PlannerError, t as AgentEvalError, u as RuntimeRunStateError } from "./errors-CVIDr7GQ.js";
2
2
  import { a as normalizeBackendStreamEvent, c as nowIso, i as createSandboxPromptBackend, l as startOrResumeRuntimeSession, o as InMemoryRuntimeSessionStore, r as createIterableBackend, u as touchSession } from "./stream-agent-turn-Q5ellSUu.js";
3
- import { $ as parseExactAgentProfile, G as agentCandidateProfileAsAgentProfile, K as applyExactAgentProfileDiff, S as CANDIDATE_TRACE_TAGS, Y as freezeGenericAgentCandidateProfile, Z as omitUndefinedObjectFields, _ as candidateExecutionClaim, a as persistCandidateOutputArtifact, c as CANDIDATE_KNOWLEDGE_ROOT_ENV, et as parseExactAgentProfileDiff, f as verifyAgentCandidateBundle, h as InMemoryAgentCandidateExecutionClaimStore, l as candidateKnowledgeExecutionPaths, n as executePreparedAgentCandidate, q as assertCandidateProfileBinding, rt as canonicalCandidateDigest, s as CANDIDATE_KNOWLEDGE_RETRIEVAL_CONFIG_ENV, t as prepareAgentCandidateExecution, tt as parseExactCandidateProfile, u as AGENT_CANDIDATE_EXECUTION_SUPPORT, x as CANDIDATE_TRACE_ENV } from "./prepare-Czki1LBy.js";
4
- import { i as sealAgentCandidateBundle, n as captureAgentCandidateWorkspaceFiles, r as createAgentCandidateWorkspacePort, t as captureAgentCandidateWorkspace } from "./workspace-archive-B_JDld25.js";
5
- import { a as buildAgentCandidateBundle, i as FileAgentCandidateExecutionClaimStore, n as runProtectedAgentCandidateModelGrant, r as disposePreparedAgentCandidateExecution, t as recoverExpiredAgentCandidateExecution } from "./candidate-execution-CyCLYLfK.js";
6
- import { n as exactProcessProviderAsCandidateExecutor, t as createProtectedAgentCandidateModelPort } from "./protected-model-port-OhS0l_6m.js";
3
+ import { $ as parseExactAgentProfile, G as agentCandidateProfileAsAgentProfile, K as applyExactAgentProfileDiff, S as CANDIDATE_TRACE_TAGS, Y as freezeGenericAgentCandidateProfile, Z as omitUndefinedObjectFields, _ as candidateExecutionClaim, a as persistCandidateOutputArtifact, c as CANDIDATE_KNOWLEDGE_ROOT_ENV, et as parseExactAgentProfileDiff, f as verifyAgentCandidateBundle, h as InMemoryAgentCandidateExecutionClaimStore, l as candidateKnowledgeExecutionPaths, n as executePreparedAgentCandidate, q as assertCandidateProfileBinding, rt as canonicalCandidateDigest$1, s as CANDIDATE_KNOWLEDGE_RETRIEVAL_CONFIG_ENV, st as immutableCandidateValue, t as prepareAgentCandidateExecution, tt as parseExactCandidateProfile, u as AGENT_CANDIDATE_EXECUTION_SUPPORT, x as CANDIDATE_TRACE_ENV } from "./prepare-CYqGSYza.js";
4
+ import { i as sealAgentCandidateBundle, n as captureAgentCandidateWorkspaceFiles, r as createAgentCandidateWorkspacePort, t as captureAgentCandidateWorkspace } from "./workspace-archive-C7AvjSVb.js";
5
+ import { a as buildAgentCandidateBundle, i as FileAgentCandidateExecutionClaimStore, n as runProtectedAgentCandidateModelGrant, r as disposePreparedAgentCandidateExecution, t as recoverExpiredAgentCandidateExecution } from "./candidate-execution-CN2hO-og.js";
6
+ import { n as exactProcessProviderAsCandidateExecutor, t as createProtectedAgentCandidateModelPort } from "./protected-model-port-B6DW_x2I.js";
7
7
  import { C as makePerAttemptSignal, S as defaultIsRetryable, T as createProfileExecutionBackend, _ as readDepth, a as FileConversationJournal, b as DeadlineExceededError, c as createConversationBackend, d as slugifySpeaker, f as turnId, g as isDepthExceeded, h as buildForwardHeaders, i as d1ToSqlAdapter, l as runConversation, m as FORWARD_HEADERS, n as runPersonaDispatch, o as InMemoryConversationJournal, p as DEFAULT_MAX_DEPTH, r as SqlConversationJournal, s as defineConversation, t as runPersonaConversation, u as runConversationStream, v as CircuitBreakerState, w as sleep, x as computeBackoff, y as CircuitOpenError } from "./conversation-DIUtiLkC.js";
8
- import { At as exportEvalRuns, Bt as sanitizeKnowledgeReadinessReport, Dt as buildRuntimeEventOtelSpans, Et as buildLoopSpanNodes, Ft as padTraceId, It as toOtelAttributes, Lt as createRuntimeEventCollector, Mt as generateSpanId, Nt as loopEventToOtelSpan, Ot as createOpenInferenceFileExporter, Pt as padSpanId, Rt as createRuntimeStreamEventCollector, Tt as buildLoopOtelSpans, Vt as sanitizeRuntimeStreamEvent, kt as createOtelExporter, wt as INTELLIGENCE_WIRE_VERSION, zt as sanitizeAgentRuntimeEvent } from "./supervisor-BfJNS2Z3.js";
8
+ import { At as exportEvalRuns, Bt as sanitizeKnowledgeReadinessReport, Dt as buildRuntimeEventOtelSpans, Et as buildLoopSpanNodes, Ft as padTraceId, It as toOtelAttributes, Lt as createRuntimeEventCollector, Mt as generateSpanId, Nt as loopEventToOtelSpan, Ot as createOpenInferenceFileExporter, Pt as padSpanId, Rt as createRuntimeStreamEventCollector, Tt as buildLoopOtelSpans, Vt as sanitizeRuntimeStreamEvent, kt as createOtelExporter, wt as INTELLIGENCE_WIRE_VERSION, zt as sanitizeAgentRuntimeEvent } from "./supervisor-BoC2tFgH.js";
9
9
  import { i as notifyRuntimeHookEvent, n as defineRuntimeHooks, r as notifyRuntimeDecisionPoint, t as composeRuntimeHooks } from "./runtime-hooks-C7iJOWm3.js";
10
- import { D as optimizerMethod, O as strategyAuthorMethod } from "./structural-rollout-2Z6J5ttt.js";
11
- import { A as improve, B as commandVerifier, F as normalizeRolloutPolicy, I as parseRolloutPolicy, L as serializeRolloutPolicy, M as rawTraceDistiller, N as ROLLOUT_POLICY_EXTENSION, P as applyRolloutPolicyToProfile, R as structuralRolloutPolicyFromProfile, V as defaultBuildPrompt, j as withMethodRuntimeControls, z as agenticGenerator } from "./improvement-cycle-BeVj-EGJ.js";
12
- import { Ft as McpSpawnFault, It as connectStdioMcp } from "./runtime-yCuqlhou.js";
10
+ import { D as optimizerMethod, O as strategyAuthorMethod } from "./structural-rollout-CwtVIJf-.js";
11
+ import { A as improve, B as commandVerifier, F as normalizeRolloutPolicy, I as parseRolloutPolicy, L as serializeRolloutPolicy, M as rawTraceDistiller, N as ROLLOUT_POLICY_EXTENSION, P as applyRolloutPolicyToProfile, R as structuralRolloutPolicyFromProfile, V as defaultBuildPrompt, j as withMethodRuntimeControls, z as agenticGenerator } from "./improvement-cycle-hIOGxDtV.js";
12
+ import { Ft as McpSpawnFault, It as connectStdioMcp } from "./runtime-CUpB4rEP.js";
13
13
  import { n as defaultRedactorIdentityMaterial, r as resolveRedactor, t as defaultRedactor } from "./redact-D-u-rrcn.js";
14
- import { a as createSupervisedKnowledgeUpdater, c as runSupervisedKnowledgeUpdate, i as RESEARCH_SUPERVISOR_SYSTEM_PROMPT, l as createKnowledgeImprovementActivationExecutor, n as createAgentKnowledgeReadinessCheck, o as formatSupervisedKnowledgeTask, r as runKnowledgeImprovementJob, s as knowledgeReadinessDeliverable, t as buildKnowledgeImprovementExperimentBundles } from "./knowledge-C1TcOBf6.js";
15
- 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-DhUWzpNp.js";
16
- import { n as mcpToolsForRuntimeMcpSubset, t as mcpToolsForRuntimeMcp } from "./openai-tools-K38wcStR.js";
14
+ import { a as createSupervisedKnowledgeUpdater, c as runSupervisedKnowledgeUpdate, i as RESEARCH_SUPERVISOR_SYSTEM_PROMPT, l as createKnowledgeImprovementActivationExecutor, n as createAgentKnowledgeReadinessCheck, o as formatSupervisedKnowledgeTask, r as runKnowledgeImprovementJob, s as knowledgeReadinessDeliverable, t as buildKnowledgeImprovementExperimentBundles } from "./knowledge-C-JiS5Xg.js";
15
+ 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-B_Ww2iqY.js";
16
+ import { n as mcpToolsForRuntimeMcpSubset, t as mcpToolsForRuntimeMcp } from "./openai-tools-BKJqaQ1b.js";
17
17
  import { FAILURE_CLASSES, acquisitionPlansForKnowledgeGaps, blockingKnowledgeEval, canonicalJson, runAgentControlLoop, scoreKnowledgeReadiness, userQuestionsForKnowledgeGaps } from "@tangle-network/agent-eval";
18
18
  import { gepaOptimizationMethod, skillOptOptimizationMethod } from "@tangle-network/agent-eval/campaign";
19
+ import { agentProfileSchema, canonicalAgentProfileDigest } from "@tangle-network/agent-interface";
19
20
  import { spawnSync } from "node:child_process";
20
21
  import { isDeepStrictEqual } from "node:util";
21
22
  //#region src/improvement/build-prompts.ts
@@ -329,7 +330,7 @@ function redactJudgeScore(score, redactor) {
329
330
  }
330
331
  function optimizerRedactionPolicyRef(redact, builtInIdentity = defaultRedactorIdentityMaterial()) {
331
332
  if (redact === false) return "caller-approved-raw";
332
- return canonicalCandidateDigest({
333
+ return canonicalCandidateDigest$1({
333
334
  kind: redact === void 0 ? "default-redactor" : "caller-redactor-with-default",
334
335
  builtIn: builtInIdentity,
335
336
  ...redact === void 0 ? {} : {
@@ -339,7 +340,7 @@ function optimizerRedactionPolicyRef(redact, builtInIdentity = defaultRedactorId
339
340
  });
340
341
  }
341
342
  function optimizerEvidencePolicyRef(input) {
342
- return canonicalCandidateDigest({
343
+ return canonicalCandidateDigest$1({
343
344
  runtimeEvaluationRef: input.runtimeEvaluationRef,
344
345
  redactionPolicyRef: input.redactionPolicyRef,
345
346
  describeScenario: callbackSource(input.describeScenario),
@@ -357,7 +358,7 @@ function withDependencyHelp(optimizer, evaluationRef, redactor, redactionPolicyR
357
358
  try {
358
359
  const judges = input.judges.map((judge) => Object.freeze({
359
360
  ...judge,
360
- judgeVersion: canonicalCandidateDigest({
361
+ judgeVersion: canonicalCandidateDigest$1({
361
362
  evaluationRef,
362
363
  name: judge.name,
363
364
  dimensions: judge.dimensions,
@@ -401,6 +402,96 @@ function isMissingDependency(optimizer, cause) {
401
402
  return [...common, ...specific].some((fragment) => message.includes(fragment));
402
403
  }
403
404
  //#endregion
405
+ //#region src/improvement/profile-improvement-harness.ts
406
+ /**
407
+ * Bind one exact profile and executor into a repeatable self-improvement
408
+ * harness. The returned `run` method remains generic over every existing
409
+ * profile surface, optimization method, split, gate, and budget option.
410
+ */
411
+ function createProfileImprovementHarness(options) {
412
+ const parsed = agentProfileSchema.safeParse(options.profile);
413
+ if (!parsed.success) throw new ConfigError(`createProfileImprovementHarness: invalid AgentProfile: ${parsed.error.message}`);
414
+ if (!/^sha256:[0-9a-f]{64}$/.test(options.executionRef)) throw new ConfigError("createProfileImprovementHarness: executionRef must be a lowercase sha256 digest");
415
+ if (typeof options.agent !== "function") throw new ConfigError("createProfileImprovementHarness: agent must be a function");
416
+ if (options.validateCandidate !== void 0 && typeof options.validateCandidate !== "function") throw new ConfigError("createProfileImprovementHarness: validateCandidate must be a function when present");
417
+ const profile = immutableCandidateValue(parsed.data);
418
+ const executionRef = options.executionRef;
419
+ const agent = options.agent;
420
+ const defaultValidator = options.validateCandidate;
421
+ return Object.freeze({
422
+ profile,
423
+ profileDigest: canonicalAgentProfileDigest(profile),
424
+ executionRef,
425
+ run(runOptions) {
426
+ if (runOptions.validateCandidate !== void 0 && typeof runOptions.validateCandidate !== "function") throw new ConfigError("ProfileImprovementHarness.run: validateCandidate must be a function when present");
427
+ const validateCandidate = runOptions.validateCandidate ?? defaultValidator;
428
+ return improve(profile, {
429
+ ...runOptions,
430
+ executionRef,
431
+ agent,
432
+ ...validateCandidate === void 0 ? {} : { validateCandidate }
433
+ });
434
+ }
435
+ });
436
+ }
437
+ //#endregion
438
+ //#region src/improvement/prompt-instructions-profile-components.ts
439
+ /** Stable component-name prefix used for `profile.prompt.instructions`. */
440
+ const PROMPT_INSTRUCTION_COMPONENT_PREFIX = "prompt.instruction:";
441
+ const COMPONENT_INDEX_WIDTH = 6;
442
+ function componentName(index) {
443
+ return `${PROMPT_INSTRUCTION_COMPONENT_PREFIX}${String(index).padStart(COMPONENT_INDEX_WIDTH, "0")}`;
444
+ }
445
+ function orderedInstructionValues(components) {
446
+ const entries = Object.entries(components).sort(([left], [right]) => left.localeCompare(right));
447
+ if (entries.length === 0) throw new ConfigError("promptInstructionsProfileComponents: at least one prompt instruction is required");
448
+ for (const [index, [name, value]] of entries.entries()) {
449
+ const expected = componentName(index);
450
+ if (name !== expected) throw new ConfigError(`promptInstructionsProfileComponents: expected component ${JSON.stringify(expected)}, got ${JSON.stringify(name)}`);
451
+ if (typeof value !== "string") throw new ConfigError(`promptInstructionsProfileComponents: component ${JSON.stringify(name)} must be a string`);
452
+ }
453
+ return entries.map(([, value]) => value);
454
+ }
455
+ /**
456
+ * Canonical `ImproveProfileComponents` mapping for the ordered
457
+ * `AgentProfile.prompt.instructions` list.
458
+ *
459
+ * Use it with `surface: 'agent-profile'` when an optimizer should rewrite the
460
+ * exact instruction texts without being allowed to change their count, order,
461
+ * labels, or any unrelated profile field:
462
+ *
463
+ * ```ts
464
+ * await improve(profile, {
465
+ * surface: 'agent-profile',
466
+ * profileComponents: promptInstructionsProfileComponents,
467
+ * // method, scenarios, judge, executionRef, agent, ...
468
+ * })
469
+ * ```
470
+ *
471
+ * Component names are zero-padded and stable. Runtime's existing component
472
+ * materializer requires every candidate to preserve the exact key set and
473
+ * verifies that `apply(read(profile))` reproduces the baseline profile. A
474
+ * profile with no prompt instructions is refused rather than inventing a
475
+ * sentinel instruction that could accidentally ship.
476
+ */
477
+ const promptInstructionsProfileComponents = Object.freeze({
478
+ read(profile) {
479
+ const instructions = profile.prompt?.instructions ?? [];
480
+ if (instructions.length === 0) throw new ConfigError("promptInstructionsProfileComponents: profile.prompt.instructions must contain at least one instruction");
481
+ return Object.fromEntries(instructions.map((instruction, index) => [componentName(index), instruction]));
482
+ },
483
+ apply(profile, components) {
484
+ const instructions = orderedInstructionValues(components);
485
+ return agentProfileSchema.parse({
486
+ ...profile,
487
+ prompt: {
488
+ ...profile.prompt,
489
+ instructions
490
+ }
491
+ });
492
+ }
493
+ });
494
+ //#endregion
404
495
  //#region src/improvement/reflective-generator.ts
405
496
  /**
406
497
  *
@@ -1235,6 +1326,6 @@ function stripNewlines(value) {
1235
1326
  return value.replace(/[\r\n]/g, " ");
1236
1327
  }
1237
1328
  //#endregion
1238
- export { AGENT_CANDIDATE_EXECUTION_SUPPORT, AgentEvalError, BackendTransportError, CANDIDATE_KNOWLEDGE_RETRIEVAL_CONFIG_ENV, CANDIDATE_KNOWLEDGE_ROOT_ENV, CANDIDATE_TRACE_ENV, CANDIDATE_TRACE_TAGS, CircuitBreakerState, CircuitOpenError, ConfigError, DEFAULT_MAX_DEPTH, DEFAULT_ROUTER_BASE_URL, DELEGATED_LOOP_MODES, DeadlineExceededError, FORWARD_HEADERS, FileAgentCandidateExecutionClaimStore, FileConversationJournal, INTELLIGENCE_WIRE_VERSION, InMemoryAgentCandidateExecutionClaimStore, InMemoryConversationJournal, InMemoryRuntimeSessionStore, JudgeError, NotFoundError, OfficialOptimizerUnavailableError, PlannerError, RESEARCH_SUPERVISOR_SYSTEM_PROMPT, ROLLOUT_POLICY_EXTENSION, RetainedRunAdmissionError, RetainedRunDispatchBindingError, RuntimeRunStateError, SqlConversationJournal, ValidationError, agentCandidateProfileAsAgentProfile, agenticGenerator, applyExactAgentProfileDiff, applyRolloutPolicyToProfile, applyRunRecordDefaults, assertCandidateProfileBinding, auditLoopRunner, buildAgentCandidateBundle, buildForwardHeaders, buildKnowledgeImprovementExperimentBundles, buildLoopOtelSpans, buildLoopSpanNodes, buildRuntimeEventOtelSpans, candidateExecutionClaim, candidateKnowledgeExecutionPaths, captureAgentCandidateWorkspace, captureAgentCandidateWorkspaceFiles, cleanModelId, commandVerifier, composeRuntimeHooks, computeBackoff, createAgentCandidateWorkspacePort, createAgentKnowledgeReadinessCheck, createConversationBackend, createIterableBackend, createKnowledgeImprovementActivationExecutor, createOpenInferenceFileExporter, createOtelExporter, createProfileExecutionBackend, createProtectedAgentCandidateModelPort, createRuntimeEventCollector, createRuntimeStreamEventCollector, createSandboxPromptBackend, createSupervisedKnowledgeUpdater, d1ToSqlAdapter, decideKnowledgeReadiness, defaultBuildPrompt, defaultIsRetryable, defineConversation, defineRuntimeHooks, disposePreparedAgentCandidateExecution, exactProcessProviderAsCandidateExecutor, executePreparedAgentCandidate, exportEvalRuns, findingLines, formatSupervisedKnowledgeTask, freezeGenericAgentCandidateProfile, generateSpanId, getModels, improve, isDelegatedLoopMode, isDepthExceeded, knowledgeReadinessDeliverable, loopEventToOtelSpan, makePerAttemptSignal, mcpBuildPrompt, mcpServeVerifier, mcpToolsForRuntimeMcp, mcpToolsForRuntimeMcpSubset, normalizeRolloutPolicy, notifyRuntimeDecisionPoint, notifyRuntimeHookEvent, officialGepa, officialSkillOpt, omitUndefinedObjectFields, optimizerMethod, padSpanId, padTraceId, parseExactAgentProfile, parseExactAgentProfileDiff, parseExactCandidateProfile, parseLoopRunnerArgv, parseRolloutPolicy, persistCandidateOutputArtifact, prepareAgentCandidateExecution, rawTraceDistiller, readDepth, readinessServerSentEvent, recoverExpiredAgentCandidateExecution, reflectiveGenerator, researchLoopRunner, resolveChatModel, resolveRouterBaseUrl, runAgentTask, runAgentTaskStream, runConversation, runConversationStream, runDelegatedLoop, runKnowledgeImprovementJob, runLoopRunnerCli, runPersonaConversation, runPersonaDispatch, runProtectedAgentCandidateModelGrant, runSupervisedKnowledgeUpdate, runtimeStreamServerSentEvent, sanitizeAgentRuntimeEvent, sanitizeKnowledgeReadinessReport, sanitizeRuntimeStreamEvent, sealAgentCandidateBundle, serializeRolloutPolicy, sleep, slugifySpeaker, startRuntimeRun, strategyAuthorMethod, structuralRolloutPolicyFromProfile, toOtelAttributes, toolBuildPrompt, turnId, validateChatModelId, verifyAgentCandidateBundle, worktreeLoopRunner };
1329
+ export { AGENT_CANDIDATE_EXECUTION_SUPPORT, AgentEvalError, BackendTransportError, CANDIDATE_KNOWLEDGE_RETRIEVAL_CONFIG_ENV, CANDIDATE_KNOWLEDGE_ROOT_ENV, CANDIDATE_TRACE_ENV, CANDIDATE_TRACE_TAGS, CircuitBreakerState, CircuitOpenError, ConfigError, DEFAULT_MAX_DEPTH, DEFAULT_ROUTER_BASE_URL, DELEGATED_LOOP_MODES, DeadlineExceededError, FORWARD_HEADERS, FileAgentCandidateExecutionClaimStore, FileConversationJournal, INTELLIGENCE_WIRE_VERSION, InMemoryAgentCandidateExecutionClaimStore, InMemoryConversationJournal, InMemoryRuntimeSessionStore, JudgeError, NotFoundError, OfficialOptimizerUnavailableError, PROMPT_INSTRUCTION_COMPONENT_PREFIX, PlannerError, RESEARCH_SUPERVISOR_SYSTEM_PROMPT, ROLLOUT_POLICY_EXTENSION, RetainedRunAdmissionError, RetainedRunDispatchBindingError, RuntimeRunStateError, SqlConversationJournal, ValidationError, agentCandidateProfileAsAgentProfile, agenticGenerator, applyExactAgentProfileDiff, applyRolloutPolicyToProfile, applyRunRecordDefaults, assertCandidateProfileBinding, auditLoopRunner, buildAgentCandidateBundle, buildForwardHeaders, buildKnowledgeImprovementExperimentBundles, buildLoopOtelSpans, buildLoopSpanNodes, buildRuntimeEventOtelSpans, candidateExecutionClaim, candidateKnowledgeExecutionPaths, captureAgentCandidateWorkspace, captureAgentCandidateWorkspaceFiles, cleanModelId, commandVerifier, composeRuntimeHooks, computeBackoff, createAgentCandidateWorkspacePort, createAgentKnowledgeReadinessCheck, createConversationBackend, createIterableBackend, createKnowledgeImprovementActivationExecutor, createOpenInferenceFileExporter, createOtelExporter, createProfileExecutionBackend, createProfileImprovementHarness, createProtectedAgentCandidateModelPort, createRuntimeEventCollector, createRuntimeStreamEventCollector, createSandboxPromptBackend, createSupervisedKnowledgeUpdater, d1ToSqlAdapter, decideKnowledgeReadiness, defaultBuildPrompt, defaultIsRetryable, defineConversation, defineRuntimeHooks, disposePreparedAgentCandidateExecution, exactProcessProviderAsCandidateExecutor, executePreparedAgentCandidate, exportEvalRuns, findingLines, formatSupervisedKnowledgeTask, freezeGenericAgentCandidateProfile, generateSpanId, getModels, improve, isDelegatedLoopMode, isDepthExceeded, knowledgeReadinessDeliverable, loopEventToOtelSpan, makePerAttemptSignal, mcpBuildPrompt, mcpServeVerifier, mcpToolsForRuntimeMcp, mcpToolsForRuntimeMcpSubset, normalizeRolloutPolicy, notifyRuntimeDecisionPoint, notifyRuntimeHookEvent, officialGepa, officialSkillOpt, omitUndefinedObjectFields, optimizerMethod, padSpanId, padTraceId, parseExactAgentProfile, parseExactAgentProfileDiff, parseExactCandidateProfile, parseLoopRunnerArgv, parseRolloutPolicy, persistCandidateOutputArtifact, prepareAgentCandidateExecution, promptInstructionsProfileComponents, rawTraceDistiller, readDepth, readinessServerSentEvent, recoverExpiredAgentCandidateExecution, reflectiveGenerator, researchLoopRunner, resolveChatModel, resolveRouterBaseUrl, runAgentTask, runAgentTaskStream, runConversation, runConversationStream, runDelegatedLoop, runKnowledgeImprovementJob, runLoopRunnerCli, runPersonaConversation, runPersonaDispatch, runProtectedAgentCandidateModelGrant, runSupervisedKnowledgeUpdate, runtimeStreamServerSentEvent, sanitizeAgentRuntimeEvent, sanitizeKnowledgeReadinessReport, sanitizeRuntimeStreamEvent, sealAgentCandidateBundle, serializeRolloutPolicy, sleep, slugifySpeaker, startRuntimeRun, strategyAuthorMethod, structuralRolloutPolicyFromProfile, toOtelAttributes, toolBuildPrompt, turnId, validateChatModelId, verifyAgentCandidateBundle, worktreeLoopRunner };
1239
1330
 
1240
1331
  //# sourceMappingURL=index.js.map