@tangle-network/agent-eval 0.201.0 → 0.202.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.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,15 @@ All notable changes to `@tangle-network/agent-eval` and its sibling `agent-eval-
4
4
 
5
5
  ---
6
6
 
7
+ ## [0.202.1] — 2026-09-28
8
+
9
+ - fix(campaign): prevent lost history and changed decoders from resetting retained dispatch (#893)
10
+
11
+ ## [0.202.0] — 2026-09-28
12
+
13
+ - feat(meta-eval): audit planning and canonical schemas for evaluator construction (#888)
14
+ - fix(test): stop hosted receivers by process group and give loop tests room (#891)
15
+
7
16
  ## [0.201.0] — 2026-09-28
8
17
 
9
18
  - chore(deps): update all dependencies to latest (#889)
@@ -1,6 +1,6 @@
1
1
  import { m as CostReceipt } from "../cost-ledger-DbQdN3nO.js";
2
2
  import { R as Scenario, d as DispatchContext, f as DispatchFn } from "../types-DfvQOe91.js";
3
- import "../index-EkRNsLr4.js";
3
+ import "../index-DWDvp-6z.js";
4
4
  //#region src/adapters/http.d.ts
5
5
  export interface HttpDispatchOptions<TScenario extends Scenario, _TArtifact> {
6
6
  /** Static endpoint URL. Mutually exclusive with `resolveUrl`. */
@@ -1,6 +1,6 @@
1
1
  import { c as RunSplitTag } from "../run-record-DF-fuu31.js";
2
2
  import { a as CampaignResult } from "../types-DfvQOe91.js";
3
- import "../index-DKmrHA02.js";
3
+ import "../index-BzSeeKNp.js";
4
4
  import { Yt as CampaignStorage } from "../search-kernel-C9CXvFR7.js";
5
5
  import { a as BenchmarkFamily, c as BenchmarkSource, i as BenchmarkEvaluation, l as BenchmarkTaskKind, n as BenchmarkAdapter, o as BenchmarkResponder, r as BenchmarkDatasetItem, s as BenchmarkScenario, t as BENCHMARK_SPLIT_SEED, u as deterministicSplit } from "../types-C4hH69a9.js";
6
6
  //#region src/benchmarks/calibration.d.ts
@@ -1,7 +1,7 @@
1
1
  import { t as __exportAll } from "../rolldown-runtime-8H4AJuhK.js";
2
2
  import { rt as runCampaign } from "../llm-judge-C-0P1WiT.js";
3
3
  import { S as fsCampaignStorage } from "../external-optimizer-subprocess-CkyUUV7h.js";
4
- import "../campaign-PmTWZi72.js";
4
+ import "../campaign-Btk1yFfw.js";
5
5
  import { join, resolve } from "node:path";
6
6
  import { readFile, readdir, stat } from "node:fs/promises";
7
7
  import { parse } from "smol-toml";
@@ -4,7 +4,7 @@ import { t as SeriesDistribution } from "../descriptive-B2iPaT9J.js";
4
4
  import { $ as paretoSignificanceGate, B as PowerPreflight, G as BuildEvidenceVectorOptions, H as powerPreflight, J as ParetoSignificanceGateOptions, K as EvidenceVector, Q as paretoPolicy, U as AxisEvidence, V as PowerPreflightOptions, W as AxisVerdict, X as PromotionPolicy, Y as PromotionObjective, Z as buildEvidenceVector, _ as sequentialPairedGate, a as detectScale, c as pairHoldout, d as SequentialDecision, f as SequentialObservation, g as sequentialDecide, h as SequentialStreamState, i as PairedHoldout, l as SequentialDecideFn, m as SequentialPairedGateOptions, n as HeldoutSignificance, o as dimensionRegressions, p as SequentialPairedGate, q as ObjectiveSource, r as HeldoutSignificanceOptions, s as heldoutSignificance, t as DimensionRegression, u as SequentialDecideOptions } from "../statistical-heldout-HswMvzbP.js";
5
5
  import { $ as SearchTokenAccounting, A as SearchLedgerHash, B as SearchOperationStartedEvent, C as SearchEdgeOperator, D as SearchFailureReason, E as SearchExecutionIdentity, F as SearchNodeRegisteredEvent, G as SearchSplit, H as SearchProposerKind, I as SearchNodeStatus, J as SearchSurfaceEffect, K as SearchSplitTasks, L as SearchOpenedEvent, M as SearchNodeDecidedEvent, N as SearchNodeDecision, O as SearchLedgerEntry, P as SearchNodeRef, Q as SearchTaskOutcome, R as SearchOperationKind, S as SearchEdgeAttribution, T as SearchEstimateMethod, U as SearchReservation, V as SearchProposer, W as SearchSourceRef, X as SearchSurfaceKind, Y as SearchSurfaceEvidence, Z as SearchTask, _ as SearchClaimPower, a as SearchAttemptAccounting, b as SearchClosedEvent, c as SearchCancelReason, d as SearchCellCancelledEvent, et as SearchTraceRef, f as SearchCellSettledEvent, g as SearchClaimFinalist, h as SearchClaimEstimator, i as SearchArtifactRef, j as SearchModelIdentity, k as SearchLedgerEvent, l as SearchCandidateSurface, m as SearchClaim, n as SEARCH_LEDGER_SCHEMA, o as SearchAudit, p as SearchCellStage, q as SearchSplits, r as SearchArtifactKind, s as SearchBudget, t as NodeEstimate, tt as SearchUnknown, u as SearchCellAllocatedEvent, v as SearchClaimTest, w as SearchEdgeRecordedEvent, x as SearchCostAccounting, y as SearchCloseReason, z as SearchOperationRecordedEvent } from "../search-ledger-types-p2xKfiDJ.js";
6
6
  import { $ as SearchNode, A as LabeledScenarioWrite, B as ScoredSurfaceOutcome, C as JudgeDimension, D as LabeledScenarioSampleArgs, E as LabeledScenarioRecord, F as ProposeContext, G as labelTrustRank, H as SurfaceProposer, I as ProposedCandidate, J as renderSearchSummary, K as SearchProposerView, L as RedactionStatus, M as OptimizerConfig, N as ParetoParent, O as LabeledScenarioSource, P as ProposalTrackContext, Q as SearchDecisionRecord, R as Scenario, S as JudgeConfig, T as LabelTrust, U as TraceSpan, V as SessionScript, W as isProposedCandidate, X as SearchCell, Y as searchProposerView, Z as SearchCompletion, _ as GateDecision, a as CampaignResult, at as SearchUnitScore, b as GenerationRecord, c as CampaignTraceWriter, ct as searchTaskSetDigest, d as DispatchContext, et as SearchOperation, f as DispatchFn, g as GateContribution, h as GateContext, i as CampaignCostMeter, it as SearchStateView, j as MutableSurface, k as LabeledScenarioStore, l as CodeSurface, lt as searchUnitScores, m as GateCheckStatus, n as CampaignArtifactWriter, nt as SearchSpend, o as CampaignScenarioIdentity, ot as searchCellId, p as Gate, q as SearchSummaryOptions, r as CampaignCellResult, rt as SearchState, s as CampaignTokenUsage, st as searchNodeId, t as CampaignAggregates, tt as SearchScoredCell, u as ComponentSurface, v as GateResult, w as JudgeScore, x as JudgeAggregate, y as GenerationCandidate, z as ScenarioAggregate } from "../types-DfvQOe91.js";
7
- import { $ as UserStoryVerdict, $i as PremeasuredOptimizationBaseline, $n as BuildLoopProvenanceArgs, $r as OpenAICompatibleOptimizerModel, $t as recordSkillOptSearch, A as ScenarioSignal, Aa as campaignSplitDigest, Ai as ExternalOptimizerExecutionSummary, An as CrossSurfaceEligibility, B as ProfileMatrixRow, Bi as ReferenceEquivalenceScenario, Bn as CrossSurfacePairEvidence, Bt as RolloutArgumentDiffOptions, C as SingleRunLockOptions, Ca as buildCellSchedule, Ci as combineComparisonCosts, Cn as CrossSurfaceCandidateEvidence, Cr as DefaultProductionGateCheck, D as searchProposalExecution, Da as assertCampaignDesign, Di as GepaCandidatePopulationSummary, Dn as CrossSurfaceComponentEvidence, E as searchModelIdentity, Ea as FinalEvidenceUse, Ei as GepaCandidatePopulationCandidate, En as CrossSurfaceComponent, Er as defaultProductionGate, F as CreateProfileMatrixPlanOptions, Fn as CrossSurfaceInteractionPath, Ft as neutralizeText, G as runProfileMatrixSegment, Gi as llmJudge, Gn as CrossSurfaceSelectionPolicy, Gr as skillOptOptimizationMethod, Gt as rolloutArgumentDiff, H as RunProfileMatrixSegmentOptions, Hn as CrossSurfacePairwiseEntry, Hr as SkillOptOptimizationMethodConfig, Ht as ScoredRollout, I as FinalizeProfileMatrixOptions, In as CrossSurfaceInteractionReport, It as FsLabeledScenarioStore, J as PlaybackStep, Ji as quotaExhaustedUntil, Jn as BuildTraceAnalystSurfaceDispatchOptions, Jr as GepaEngineRun, Jt as GepaPopulationImport, K as PlaybackContext, Ki as TransientFailureOptions, Kn as CrossSurfaceSelections, Kr as GepaAdaptiveEngineRun, Kt as ExternalSearchOptimizer, L as FinalizedProfileMatrixResult, Ln as CrossSurfaceInteractionTask, Lt as FsLabeledScenarioStoreOptions, M as selectDiscriminative, Mi as ExternalOptimizerObservationSummary, Mn as CrossSurfaceIneligibilityReason, N as resolveRunDir, Ni as ExternalOptimizerSubmittedCandidate, Nn as CrossSurfaceInteractionAwareSelection, Nt as scopedOptimizationMethod, O as searchReceiptAccounting, Oa as assertCampaignSplitIdentity, Oi as GepaCandidateSelectionScore, On as CrossSurfaceCompositionStep, P as tangleTracesRoot, Pi as readExternalOptimizerObservationArtifact, Pn as CrossSurfaceInteractionEffect, Pt as sequentialOptimizationMethod, Q as UserStory, Qi as runImprovementLoop, Qn as traceAnalystQualityJudge, Qr as gepaOptimizationMethod, Qt as recordGepaSearch, R as ProfileMatrixCoverage, Ri as ReferenceEquivalenceJudgeOptions, Rn as CrossSurfaceNaiveStackSelection, Rt as LabeledScenarioStoreError, S as SingleRunLock, Sa as CellScheduleSlot, Si as ComparisonCost, Sn as CrossSurfaceCandidateComparison, Sr as heldOutGate, T as campaignCellSearchResult, Ta as FinalEvidencePolicy, Ti as GepaCandidatePopulationArtifact, Tn as CrossSurfaceCandidateSummary, Tr as DefaultProductionRewardHackingOptions, U as createProfileMatrixPlan, Ui as LlmJudgeDimension, Un as CrossSurfaceRankedSingle, Ur as SkillOptRunnerCommand, Ut as UngroundedLiteralReport, V as ProfileMatrixSegmentResult, Vi as createReferenceEquivalenceJudge, Vn as CrossSurfacePairIncompatibilityReason, Vr as composeGate, Vt as RolloutCall, W as finalizeProfileMatrix, Wi as LlmJudgeOptions, Wn as CrossSurfaceRelativeCost, Wr as SkillOptTrainerConfig, Wt as classifyUngroundedLiterals, X as ScoreboardRow, Xi as RunImprovementLoopOptions, Xn as TraceAnalystScenario, Xr as GepaOptimizationRecipe, Xt as importExternalEvaluations, Y as ScoreboardRenderOptions, Yi as transientDispatchFailure, Yn as TraceAnalystArtifact, Yr as GepaOptimizationMethodConfig, Yt as externalSurface, Z as ScoreboardSummary, Zi as RunImprovementLoopResult, Zn as buildTraceAnalystSurfaceDispatch, Zr as GepaRunnerCommand, Zt as importGepaPopulation, _ as componentSurfaceIdentityMaterial, _a as PlanCampaignRunOptions, _i as OptimizationMethodScore, _n as CrossSurfaceAdditionRejectionReason, _r as CampaignBreakdown, a as WorktreeAdapterError, aa as SearchLedgerIntegrityError, ai as ExternalOptimizationExample, an as EvalFixtureRunPlan, ar as LoopProvenanceEvidence, at as ProfileDispatchFn, b as surfaceDispatchRef, ba as CacheRead, bi as compareOptimizationMethods, bn as CrossSurfaceBootstrapPolicy, br as campaignMeanComposite, c as verifyCodeSurface, ca as openAutoPr, ci as CompareOptimizationMethodsOptions, cn as LoadEvalFixtureScenariosOptions, cr as buildLoopProvenanceRecord, ct as RunProfileMatrixOptions, d as PhoenixEvaluationResultLike, da as CampaignCellFailureReceipt, di as OptimizationMethodComposition, dn as loadEvalFixture, dr as emitLoopProvenance, dt as runProfileMatrix, ea as RunOptimizationOptions, ei as OptimizerModelBudget, en as NeutralizationGateOptions, er as EmitLoopProvenanceArgs, et as makePlaybackDispatch, f as PhoenixEvaluatorLike, fa as CampaignCellRetryPolicy, fi as OptimizationMethodInput, fn as loadEvalFixtureScenarios, fr as loopProvenanceArgsFromResult, g as codeSurfaceIdentityMaterial, ga as CampaignRunPlanCell, gi as OptimizationMethodRunOptions, gn as CrossSurfaceAdditionDecision, gr as verifyLoopProvenanceRecord, h as assertCodeSurfaceIdentity, ha as CampaignRunPlan, hi as OptimizationMethodResult, hn as AnalyzeCrossSurfaceInteractionsInput, hr as provenanceSpansPath, i as WorktreeAdapter, ia as SearchLedgerError, ii as ExternalTextOptimizerResult, in as EvalFixtureLoadOptions, ir as LoopProvenanceCandidate, it as userStoryScoreboard, j as scoreDiscrimination, ja as campaignSplitDigestFromIdentities, ji as ExternalOptimizerObservationArtifact, jn as CrossSurfaceEvidenceBreakdown, k as DiscriminationScore, ka as campaignScenarioIdentity, ki as readGepaCandidatePopulationArtifact, kn as CrossSurfaceDistribution, l as AutoevalsScoreLike, la as RunEvalOptions, li as OptimizationMethod, ln as PlanEvalFixtureRunOptions, lr as campaignMeasurementDigest, lt as RunProfileMatrixResult, m as phoenixEvaluatorJudge, ma as runCampaign, mi as OptimizationMethodProvenance, mn as analyzeCrossSurfaceInteractions, mr as provenanceRecordPath, n as GitWorktreeAdapterOptions, na as runOptimization, ni as ExternalTextOptimizationMethodConfig, nn as EvalFixture, nr as LoopProvenanceArgsFromResult, nt as scoreUserStory, o as gitWorktreeAdapter, oa as OpenAutoPrOptions, oi as ExternalTextEvaluationResponse, on as EvalFixtureScenario, or as LoopProvenanceOptimizationMethod, ot as ProfileMatrixError, p as autoevalsScorerJudge, pa as RunCampaignOptions, pi as OptimizationMethodPairwise, pn as planEvalFixtureRun, pr as loopProvenanceSpans, q as PlaybackDriver, qi as isTransientTransportFailure, qn as CrossSurfaceTaskRow, qr as GepaEngineOptions, qt as GepaEvaluationImport, r as Worktree, ra as SearchLedgerConflictError, ri as ExternalTextOptimizerContext, rn as EvalFixtureFile, rr as LoopProvenanceBackend, rt as scoreboardSummary, s as resolveWorktreePath, sa as OpenAutoPrResult, si as decodeExternalTextCandidate, sn as EvalFixtureValidationMode, sr as LoopProvenanceRecord, st as ProfileSummary, t as CodeSurfaceVerification, ta as RunOptimizationResult, ti as externalTextOptimizationMethod, tn as neutralizationGate, tr as EmitLoopProvenanceResult, tt as renderScoreboardMarkdown, u as AutoevalsScorerLike, ua as runEval, ui as OptimizationMethodComparison, un as discoverEvalFixtures, ur as canonicalDigest, ut as ScenarioRollup, v as renderSurfaceDiff, va as planCampaignRun, vi as OptimizationPackageSource, vn as CrossSurfaceAttemptCompleteness, w as acquireSingleRunLock, wa as cellCachePath, wi as costFromLedgerSummary, wn as CrossSurfaceCandidateOutcome, wr as DefaultProductionGateOptions, x as surfaceHash, xa as readCachedCell, xi as optimizationTokenUsageFromSummary, xn as CrossSurfaceCandidate, xr as HeldOutGateOptions, y as surfaceContentHash, ya as CacheIssueReason, yi as OptimizationTokenUsage, yn as CrossSurfaceBestSingleSelection, yr as campaignBreakdown, z as ProfileMatrixPlan, zn as CrossSurfacePairCompatibility, zt as RolloutArgumentDiff } from "../index-DKmrHA02.js";
7
+ import { $ as ScoreboardRow, $i as RunImprovementLoopOptions, $n as TraceAnalystScenario, $r as GepaOptimizationRecipe, $t as importExternalEvaluations, A as ScenarioSignal, Aa as assertCampaignDesign, Ai as GepaCandidatePopulationSummary, An as CrossSurfaceComponentEvidence, B as FinalizedProfileMatrixResult, Bn as CrossSurfaceInteractionTask, Bt as FsLabeledScenarioStoreOptions, C as SingleRunLockOptions, Ca as CacheRead, Ci as compareOptimizationMethods, Cn as CrossSurfaceBootstrapPolicy, Cr as campaignMeanComposite, D as searchProposalExecution, Da as cellCachePath, Di as costFromLedgerSummary, Dn as CrossSurfaceCandidateOutcome, Dr as DefaultProductionGateOptions, E as searchModelIdentity, Ea as buildCellSchedule, Ei as combineComparisonCosts, En as CrossSurfaceCandidateEvidence, Er as DefaultProductionGateCheck, F as RetainedDispatchOptions, Fi as ExternalOptimizerObservationSummary, Fn as CrossSurfaceIneligibilityReason, G as RunProfileMatrixSegmentOptions, Gn as CrossSurfacePairwiseEntry, Gr as SkillOptOptimizationMethodConfig, Gt as ScoredRollout, H as ProfileMatrixPlan, Hn as CrossSurfacePairCompatibility, Ht as RolloutArgumentDiff, I as RetainedDispatchOutcome, Ii as ExternalOptimizerSubmittedCandidate, In as CrossSurfaceInteractionAwareSelection, It as scopedOptimizationMethod, J as runProfileMatrixSegment, Ji as llmJudge, Jn as CrossSurfaceSelectionPolicy, Jr as skillOptOptimizationMethod, Jt as rolloutArgumentDiff, K as createProfileMatrixPlan, Ki as LlmJudgeDimension, Kn as CrossSurfaceRankedSingle, Kr as SkillOptRunnerCommand, Kt as UngroundedLiteralReport, L as createRetainedDispatch, Li as readExternalOptimizerObservationArtifact, Ln as CrossSurfaceInteractionEffect, Lt as sequentialOptimizationMethod, M as selectDiscriminative, Ma as campaignScenarioIdentity, Mi as readGepaCandidatePopulationArtifact, Mn as CrossSurfaceDistribution, N as resolveRunDir, Na as campaignSplitDigest, Ni as ExternalOptimizerExecutionSummary, Nn as CrossSurfaceEligibility, O as searchReceiptAccounting, Oa as FinalEvidencePolicy, Oi as GepaCandidatePopulationArtifact, On as CrossSurfaceCandidateSummary, Or as DefaultProductionRewardHackingOptions, P as tangleTracesRoot, Pa as campaignSplitDigestFromIdentities, Pi as ExternalOptimizerObservationArtifact, Pn as CrossSurfaceEvidenceBreakdown, Q as ScoreboardRenderOptions, Qi as transientDispatchFailure, Qn as TraceAnalystArtifact, Qr as GepaOptimizationMethodConfig, Qt as externalSurface, R as CreateProfileMatrixPlanOptions, Rn as CrossSurfaceInteractionPath, Rt as neutralizeText, S as SingleRunLock, Sa as CacheIssueReason, Si as OptimizationTokenUsage, Sn as CrossSurfaceBestSingleSelection, Sr as campaignBreakdown, T as campaignCellSearchResult, Ta as CellScheduleSlot, Ti as ComparisonCost, Tn as CrossSurfaceCandidateComparison, Tr as heldOutGate, U as ProfileMatrixRow, Ui as ReferenceEquivalenceScenario, Un as CrossSurfacePairEvidence, Ut as RolloutArgumentDiffOptions, V as ProfileMatrixCoverage, Vi as ReferenceEquivalenceJudgeOptions, Vn as CrossSurfaceNaiveStackSelection, Vt as LabeledScenarioStoreError, W as ProfileMatrixSegmentResult, Wi as createReferenceEquivalenceJudge, Wn as CrossSurfacePairIncompatibilityReason, Wr as composeGate, Wt as RolloutCall, X as PlaybackDriver, Xi as isTransientTransportFailure, Xn as CrossSurfaceTaskRow, Xr as GepaEngineOptions, Xt as GepaEvaluationImport, Y as PlaybackContext, Yi as TransientFailureOptions, Yn as CrossSurfaceSelections, Yr as GepaAdaptiveEngineRun, Yt as ExternalSearchOptimizer, Z as PlaybackStep, Zi as quotaExhaustedUntil, Zn as BuildTraceAnalystSurfaceDispatchOptions, Zr as GepaEngineRun, Zt as GepaPopulationImport, _ as componentSurfaceIdentityMaterial, _a as runCampaign, _i as OptimizationMethodProvenance, _n as analyzeCrossSurfaceInteractions, _r as provenanceRecordPath, a as WorktreeAdapterError, aa as runOptimization, ai as ExternalTextOptimizationMethodConfig, an as EvalFixture, ar as LoopProvenanceArgsFromResult, at as scoreUserStory, b as surfaceDispatchRef, ba as PlanCampaignRunOptions, bi as OptimizationMethodScore, bn as CrossSurfaceAdditionRejectionReason, br as CampaignBreakdown, c as verifyCodeSurface, ca as SearchLedgerIntegrityError, ci as ExternalOptimizationExample, cn as EvalFixtureRunPlan, cr as LoopProvenanceEvidence, ct as ProfileDispatchFn, d as PhoenixEvaluationResultLike, da as openAutoPr, di as CompareOptimizationMethodsOptions, dn as LoadEvalFixtureScenariosOptions, dr as buildLoopProvenanceRecord, dt as RunProfileMatrixOptions, ea as RunImprovementLoopResult, ei as GepaRunnerCommand, en as importGepaPopulation, er as buildTraceAnalystSurfaceDispatch, et as ScoreboardSummary, f as PhoenixEvaluatorLike, fa as RunEvalOptions, fi as OptimizationMethod, fn as PlanEvalFixtureRunOptions, fr as campaignMeasurementDigest, ft as RunProfileMatrixResult, g as codeSurfaceIdentityMaterial, ga as RunCampaignOptions, gi as OptimizationMethodPairwise, gn as planEvalFixtureRun, gr as loopProvenanceSpans, h as assertCodeSurfaceIdentity, ha as CampaignCellRetryPolicy, hi as OptimizationMethodInput, hn as loadEvalFixtureScenarios, hr as loopProvenanceArgsFromResult, i as WorktreeAdapter, ia as RunOptimizationResult, ii as externalTextOptimizationMethod, in as neutralizationGate, ir as EmitLoopProvenanceResult, it as renderScoreboardMarkdown, j as scoreDiscrimination, ja as assertCampaignSplitIdentity, ji as GepaCandidateSelectionScore, jn as CrossSurfaceCompositionStep, k as DiscriminationScore, ka as FinalEvidenceUse, ki as GepaCandidatePopulationCandidate, kn as CrossSurfaceComponent, kr as defaultProductionGate, l as AutoevalsScoreLike, la as OpenAutoPrOptions, li as ExternalTextEvaluationResponse, ln as EvalFixtureScenario, lr as LoopProvenanceOptimizationMethod, lt as ProfileMatrixError, m as phoenixEvaluatorJudge, ma as CampaignCellFailureReceipt, mi as OptimizationMethodComposition, mn as loadEvalFixture, mr as emitLoopProvenance, mt as runProfileMatrix, n as GitWorktreeAdapterOptions, na as PremeasuredOptimizationBaseline, ni as OpenAICompatibleOptimizerModel, nn as recordSkillOptSearch, nr as BuildLoopProvenanceArgs, nt as UserStoryVerdict, o as gitWorktreeAdapter, oa as SearchLedgerConflictError, oi as ExternalTextOptimizerContext, on as EvalFixtureFile, or as LoopProvenanceBackend, ot as scoreboardSummary, p as autoevalsScorerJudge, pa as runEval, pi as OptimizationMethodComparison, pn as discoverEvalFixtures, pr as canonicalDigest, pt as ScenarioRollup, q as finalizeProfileMatrix, qi as LlmJudgeOptions, qn as CrossSurfaceRelativeCost, qr as SkillOptTrainerConfig, qt as classifyUngroundedLiterals, r as Worktree, ra as RunOptimizationOptions, ri as OptimizerModelBudget, rn as NeutralizationGateOptions, rr as EmitLoopProvenanceArgs, rt as makePlaybackDispatch, s as resolveWorktreePath, sa as SearchLedgerError, si as ExternalTextOptimizerResult, sn as EvalFixtureLoadOptions, sr as LoopProvenanceCandidate, st as userStoryScoreboard, t as CodeSurfaceVerification, ta as runImprovementLoop, ti as gepaOptimizationMethod, tn as recordGepaSearch, tr as traceAnalystQualityJudge, tt as UserStory, u as AutoevalsScorerLike, ua as OpenAutoPrResult, ui as decodeExternalTextCandidate, un as EvalFixtureValidationMode, ur as LoopProvenanceRecord, ut as ProfileSummary, v as renderSurfaceDiff, va as CampaignRunPlan, vi as OptimizationMethodResult, vn as AnalyzeCrossSurfaceInteractionsInput, vr as provenanceSpansPath, w as acquireSingleRunLock, wa as readCachedCell, wi as optimizationTokenUsageFromSummary, wn as CrossSurfaceCandidate, wr as HeldOutGateOptions, x as surfaceHash, xa as planCampaignRun, xi as OptimizationPackageSource, xn as CrossSurfaceAttemptCompleteness, y as surfaceContentHash, ya as CampaignRunPlanCell, yi as OptimizationMethodRunOptions, yn as CrossSurfaceAdditionDecision, yr as verifyLoopProvenanceRecord, z as FinalizeProfileMatrixOptions, zn as CrossSurfaceInteractionReport, zt as FsLabeledScenarioStore } from "../index-BzSeeKNp.js";
8
8
  import { A as SearchCellPlan, At as SearchHistoryCoverageRow, B as aide, Bt as FileSearchLedger, C as decideSearchClaim, Ct as searchEdgeId, D as AshaOptions, Dt as SearchHistoryAdmissionOptions, E as verifySearchClaim, Et as CreateSearchHistoryReceiptInput, F as AideOptions, Ft as assertSearchHistoryMatchesState, G as EstimateNodeCellsInput, Gt as openSearchLedger, H as crowdedFrontierParent, Ht as SearchLedger, I as SearchExpansion, It as createSearchHistoryReceipt, J as SearchPosterior, Jt as validateSearchLedgerEvent, K as NodePosterior, Kt as parseSearchLedgerLine, L as SearchPolicy, Lt as searchHistoryCoverageRow, M as SearchUnitExtension, Mt as SearchHistoryReceipt, N as asha, Nt as SearchHistoryRequiredError, O as SearchAllocationView, Ot as SearchHistoryAuditSummary, P as uniform, Pt as assertCompleteSearchHistory, Q as searchPosterior, Qt as inMemoryCampaignStorage, R as SearchPolicyNode, Rt as verifySearchHistoryArtifact, S as SearchClaimVerification, St as developmentClaim, T as searchClaimReserveUsd, Tt as surfaceNode, U as incumbent, Ut as SearchLedgerAppendResult, V as beam, Vt as OpenSearchLedgerOptions, W as incumbentWithOperatorBandit, Wt as SearchLedgerTrustedHeadMode, X as estimateNodeFromCells, Xt as createRunCostLedger, Y as estimateNode, Yt as CampaignStorage, Z as searchCellSetDigest, Zt as fsCampaignStorage, _ as searchPolicyView, _t as SearchOpening, a as SearchCellWork, b as SearchClaimDecision, bt as SearchRunIdentity, c as SearchProposalBlob, d as SearchProposedChild, f as SearchProposerPort, g as searchExpansionIndex, gt as SearchLedgerBinding, h as searchDivergence, ht as RegisterSearchNodeInput, i as SearchCellResult, j as SearchRungDecision, jt as SearchHistoryPolicy, k as SearchAllocator, kt as SearchHistoryCoverage, l as SearchProposalRequest, m as runSearch, mt as RecordSearchEdgeInput, n as SEARCH_KERNEL_SOURCE, o as SearchExecutor, p as SearchRunResult, pt as AllocateSearchCellInput, q as SEARCH_ESTIMATOR, qt as replaySearchLedgerText, r as SearchArtifactCodec, s as SearchLane, t as RunSearchOptions, u as SearchProposalResult, v as PlanSearchClaimInput, vt as SearchRecorder, w as planSearchClaim, wt as surfaceDiff, x as SearchClaimPlan, xt as SettleSearchCellInput, y as SEARCH_CLAIM_RULE, yt as SearchRecorderOptions, z as SearchPolicyView, zt as verifySearchHistoryReceipt } from "../search-kernel-C9CXvFR7.js";
9
9
  import { B as ExternalOptimizerModelBudget, F as ExternalOptimizerCallbackLimits, G as ExternalOptimizerProcessLimits, H as ExternalOptimizerModelCallRequest, I as ExternalOptimizerChatRequest, L as ExternalOptimizerEndpointFormat, N as DEFAULT_EXTERNAL_OPTIMIZER_CALLBACK_LIMITS, P as DEFAULT_EXTERNAL_OPTIMIZER_PROCESS_LIMITS, Q as resolveExternalOptimizerProcessLimits, R as ExternalOptimizerEvaluationObservation, U as ExternalOptimizerModelCallResult, V as ExternalOptimizerModelCall, W as ExternalOptimizerModelExecutionObservation, Y as ExternalTextCandidate, Z as resolveExternalOptimizerCallbackLimits, q as ExternalOptimizerRunnerCommand, z as ExternalOptimizerEvaluationRefusalReason } from "../agent-profile-DDfIjdyS.js";
10
- export { type AideOptions, type AllocateSearchCellInput, type AnalyzeCrossSurfaceInteractionsInput, type AshaOptions, type AutoevalsScoreLike, type AutoevalsScorerLike, type AxisEvidence, type AxisVerdict, type BuildEvidenceVectorOptions, type BuildLoopProvenanceArgs, type BuildTraceAnalystSurfaceDispatchOptions, type CacheIssueReason, type CacheRead, type CampaignAggregates, type CampaignArtifactWriter, type CampaignBreakdown, type CampaignCellFailureReceipt, type CampaignCellResult, type CampaignCellRetryPolicy, type CampaignCostMeter, type CampaignResult, type CampaignRunPlan, type CampaignRunPlanCell, type CampaignScenarioIdentity, type CampaignStorage, type CampaignTokenUsage, type CampaignTraceWriter, type CellScheduleSlot, type CodeSurface, type CodeSurfaceVerification, type CompareOptimizationMethodsOptions, type ComparisonCost, type ComponentSurface, type CostLedgerHandle, type CreateProfileMatrixPlanOptions, type CreateSearchHistoryReceiptInput, type CrossSurfaceAdditionDecision, type CrossSurfaceAdditionRejectionReason, type CrossSurfaceAttemptCompleteness, type CrossSurfaceBestSingleSelection, type CrossSurfaceBootstrapPolicy, type CrossSurfaceCandidate, type CrossSurfaceCandidateComparison, type CrossSurfaceCandidateEvidence, type CrossSurfaceCandidateOutcome, type CrossSurfaceCandidateSummary, type CrossSurfaceComponent, type CrossSurfaceComponentEvidence, type CrossSurfaceCompositionStep, type CrossSurfaceDistribution, type CrossSurfaceEligibility, type CrossSurfaceEvidenceBreakdown, type CrossSurfaceIneligibilityReason, type CrossSurfaceInteractionAwareSelection, type CrossSurfaceInteractionEffect, type CrossSurfaceInteractionPath, type CrossSurfaceInteractionReport, type CrossSurfaceInteractionTask, type CrossSurfaceNaiveStackSelection, type CrossSurfacePairCompatibility, type CrossSurfacePairEvidence, type CrossSurfacePairIncompatibilityReason, type CrossSurfacePairwiseEntry, type CrossSurfaceRankedSingle, type CrossSurfaceRelativeCost, type CrossSurfaceSelectionPolicy, type CrossSurfaceSelections, type CrossSurfaceTaskRow, DEFAULT_EXTERNAL_OPTIMIZER_CALLBACK_LIMITS, DEFAULT_EXTERNAL_OPTIMIZER_PROCESS_LIMITS, type DefaultProductionGateCheck, type DefaultProductionGateOptions, type DefaultProductionRewardHackingOptions, type DimensionRegression, type DiscriminationScore, type DispatchContext, type DispatchFn, type EmitLoopProvenanceArgs, type EmitLoopProvenanceResult, type EstimateNodeCellsInput, type EvalFixture, type EvalFixtureFile, type EvalFixtureLoadOptions, type EvalFixtureRunPlan, type EvalFixtureScenario, type EvalFixtureValidationMode, type EvidenceVector, type ExternalOptimizationExample, type ExternalOptimizerCallbackLimits, type ExternalOptimizerChatRequest, type ExternalOptimizerEndpointFormat, type ExternalOptimizerEvaluationObservation, type ExternalOptimizerEvaluationRefusalReason, type ExternalOptimizerExecutionSummary, type ExternalOptimizerModelBudget, type ExternalOptimizerModelCall, type ExternalOptimizerModelCallRequest, type ExternalOptimizerModelCallResult, type ExternalOptimizerModelExecutionObservation, type ExternalOptimizerObservationArtifact, type ExternalOptimizerObservationSummary, type ExternalOptimizerProcessLimits, type ExternalOptimizerRunnerCommand, type ExternalOptimizerSubmittedCandidate, type ExternalSearchOptimizer, type ExternalTextCandidate, type ExternalTextEvaluationResponse, type ExternalTextOptimizationMethodConfig, type ExternalTextOptimizerContext, type ExternalTextOptimizerResult, FileSearchLedger, type FinalEvidencePolicy, type FinalEvidenceUse, type FinalizeProfileMatrixOptions, type FinalizedProfileMatrixResult, FsLabeledScenarioStore, type FsLabeledScenarioStoreOptions, type Gate, type GateCheckStatus, type GateContext, type GateContribution, type GateDecision, type GateResult, type GenerationCandidate, type GenerationRecord, type GepaAdaptiveEngineRun, type GepaCandidatePopulationArtifact, type GepaCandidatePopulationCandidate, type GepaCandidatePopulationSummary, type GepaCandidateSelectionScore, type GepaEngineOptions, type GepaEngineRun, type GepaEvaluationImport, type GepaOptimizationMethodConfig, type GepaOptimizationRecipe, type GepaPopulationImport, type GepaRunnerCommand, type GitWorktreeAdapterOptions, type HeldOutGateOptions, type HeldoutSignificance, type HeldoutSignificanceOptions, type JudgeAggregate, type JudgeConfig, type JudgeDimension, type JudgeScore, type LabelTrust, type LabeledScenarioRecord, type LabeledScenarioSampleArgs, type LabeledScenarioSource, type LabeledScenarioStore, LabeledScenarioStoreError, type LabeledScenarioWrite, type LlmJudgeDimension, type LlmJudgeOptions, type LoadEvalFixtureScenariosOptions, type LoopProvenanceArgsFromResult, type LoopProvenanceBackend, type LoopProvenanceCandidate, type LoopProvenanceEvidence, type LoopProvenanceOptimizationMethod, type LoopProvenanceRecord, type MutableSurface, type NeutralizationGateOptions, type NodeEstimate, type NodePosterior, type ObjectiveSource, type OpenAICompatibleOptimizerModel, type OpenAutoPrOptions, type OpenAutoPrResult, type OpenSearchLedgerOptions, type OptimizationMethod, type OptimizationMethodComparison, type OptimizationMethodComposition, type OptimizationMethodInput, type OptimizationMethodPairwise, type OptimizationMethodProvenance, type OptimizationMethodResult, type OptimizationMethodRunOptions, type OptimizationMethodScore, type OptimizationPackageSource, type OptimizationTokenUsage, type OptimizerConfig, type OptimizerModelBudget, type PairedHoldout, type ParetoParent, type ParetoSignificanceGateOptions, type PendingCostCallView, type PhoenixEvaluationResultLike, type PhoenixEvaluatorLike, type PlanCampaignRunOptions, type PlanEvalFixtureRunOptions, type PlanSearchClaimInput, type PlaybackContext, type PlaybackDriver, type PlaybackStep, type PowerPreflight, type PowerPreflightOptions, type PremeasuredOptimizationBaseline, type ProfileDispatchFn, type ProfileMatrixCoverage, ProfileMatrixError, type ProfileMatrixPlan, type ProfileMatrixRow, type ProfileMatrixSegmentResult, type ProfileSummary, type PromotionObjective, type PromotionPolicy, type ProposalFinding, type ProposalFindingOrigin, type ProposalTrackContext, type ProposeContext, type ProposedCandidate, type RecordSearchEdgeInput, type RedactionStatus, type ReferenceEquivalenceJudgeOptions, type ReferenceEquivalenceScenario, type RegisterSearchNodeInput, type RolloutArgumentDiff, type RolloutArgumentDiffOptions, type RolloutCall, type RunCampaignOptions, type RunEvalOptions, type RunImprovementLoopOptions, type RunImprovementLoopResult, type RunOptimizationOptions, type RunOptimizationResult, type RunProfileMatrixOptions, type RunProfileMatrixResult, type RunProfileMatrixSegmentOptions, type RunSearchOptions, SEARCH_CLAIM_RULE, SEARCH_ESTIMATOR, SEARCH_KERNEL_SOURCE, SEARCH_LEDGER_SCHEMA, type Scenario, type ScenarioAggregate, type ScenarioRollup, type ScenarioSignal, type ScoreboardRenderOptions, type ScoreboardRow, type ScoreboardSummary, type ScoredRollout, type ScoredSurfaceOutcome, type SearchAllocationView, type SearchAllocator, type SearchArtifactCodec, type SearchArtifactKind, type SearchArtifactRef, type SearchAttemptAccounting, type SearchAudit, type SearchBudget, type SearchCancelReason, type SearchCandidateSurface, type SearchCell, type SearchCellAllocatedEvent, type SearchCellCancelledEvent, type SearchCellPlan, type SearchCellResult, type SearchCellSettledEvent, type SearchCellStage, type SearchCellWork, type SearchClaim, type SearchClaimDecision, type SearchClaimEstimator, type SearchClaimFinalist, type SearchClaimPlan, type SearchClaimPower, type SearchClaimTest, type SearchClaimVerification, type SearchCloseReason, type SearchClosedEvent, type SearchCompletion, type SearchCostAccounting, type SearchDecisionRecord, type SearchEdgeAttribution, type SearchEdgeOperator, type SearchEdgeRecordedEvent, type SearchEstimateMethod, type SearchExecutionIdentity, type SearchExecutor, type SearchExpansion, type SearchFailureReason, type SearchHistoryAdmissionOptions, type SearchHistoryAuditSummary, type SearchHistoryCoverage, type SearchHistoryCoverageRow, type SearchHistoryPolicy, type SearchHistoryReceipt, SearchHistoryRequiredError, type SearchLane, type SearchLedger, type SearchLedgerAppendResult, type SearchLedgerBinding, SearchLedgerConflictError, type SearchLedgerEntry, SearchLedgerError, type SearchLedgerEvent, type SearchLedgerHash, SearchLedgerIntegrityError, type SearchLedgerTrustedHeadMode, type SearchModelIdentity, type SearchNode, type SearchNodeDecidedEvent, type SearchNodeDecision, type SearchNodeRef, type SearchNodeRegisteredEvent, type SearchNodeStatus, type SearchOpenedEvent, type SearchOpening, type SearchOperation, type SearchOperationKind, type SearchOperationRecordedEvent, type SearchOperationStartedEvent, type SearchPolicy, type SearchPolicyNode, type SearchPolicyView, type SearchPosterior, type SearchProposalBlob, type SearchProposalRequest, type SearchProposalResult, type SearchProposedChild, type SearchProposer, type SearchProposerKind, type SearchProposerPort, type SearchProposerView, SearchRecorder, type SearchRecorderOptions, type SearchReservation, type SearchRunIdentity, type SearchRunResult, type SearchRungDecision, type SearchScoredCell, type SearchSourceRef, type SearchSpend, type SearchSplit, type SearchSplitTasks, type SearchSplits, SearchState, SearchStateView, type SearchSummaryOptions, type SearchSurfaceEffect, type SearchSurfaceEvidence, type SearchSurfaceKind, type SearchTask, type SearchTaskOutcome, type SearchTokenAccounting, type SearchTraceRef, type SearchUnitExtension, type SearchUnitScore, type SearchUnknown, type SequentialDecideFn, type SequentialDecideOptions, type SequentialDecision, type SequentialObservation, type SequentialPairedGate, type SequentialPairedGateOptions, type SequentialStreamState, type SeriesDistribution, type SessionScript, type SettleSearchCellInput, type SingleRunLock, type SingleRunLockOptions, type SkillOptOptimizationMethodConfig, type SkillOptRunnerCommand, type SkillOptTrainerConfig, type SurfaceProposer, type TraceAnalystArtifact, type TraceAnalystScenario, type TraceSpan, type TransientFailureOptions, type UngroundedLiteralReport, type UserStory, type UserStoryVerdict, type Worktree, type WorktreeAdapter, WorktreeAdapterError, acquireSingleRunLock, aide, analyzeCrossSurfaceInteractions, asha, assertCampaignDesign, assertCampaignSplitIdentity, assertCodeSurfaceIdentity, assertCompleteSearchHistory, assertSearchHistoryMatchesState, autoevalsScorerJudge, beam, buildCellSchedule, buildEvidenceVector, buildLoopProvenanceRecord, buildTraceAnalystSurfaceDispatch, campaignBreakdown, campaignCellSearchResult, campaignMeanComposite, campaignMeasurementDigest, campaignScenarioIdentity, campaignSplitDigest, campaignSplitDigestFromIdentities, canonicalDigest, cellCachePath, classifyUngroundedLiterals, codeSurfaceIdentityMaterial, combineComparisonCosts, compareOptimizationMethods, componentSurfaceIdentityMaterial, composeGate, costFromLedgerSummary, createProfileMatrixPlan, createReferenceEquivalenceJudge, createRunCostLedger, createSearchHistoryReceipt, crowdedFrontierParent, decideSearchClaim, decodeExternalTextCandidate, defaultProductionGate, detectScale, developmentClaim, dimensionRegressions, discoverEvalFixtures, emitLoopProvenance, estimateNode, estimateNodeFromCells, externalSurface, externalTextOptimizationMethod, finalizeProfileMatrix, fsCampaignStorage, gepaOptimizationMethod, gitWorktreeAdapter, heldOutGate, heldoutSignificance, importExternalEvaluations, importGepaPopulation, inMemoryCampaignStorage, incumbent, incumbentWithOperatorBandit, isProposedCandidate, isTransientTransportFailure, labelTrustRank, llmJudge, loadEvalFixture, loadEvalFixtureScenarios, loopProvenanceArgsFromResult, loopProvenanceSpans, makePlaybackDispatch, makeProposalFinding, neutralizationGate, neutralizeText, openAutoPr, openSearchLedger, optimizationTokenUsageFromSummary, pairHoldout, paretoPolicy, paretoSignificanceGate, parseSearchLedgerLine, phoenixEvaluatorJudge, planCampaignRun, planEvalFixtureRun, planSearchClaim, powerPreflight, provenanceRecordPath, provenanceSpansPath, quotaExhaustedUntil, readCachedCell, readExternalOptimizerObservationArtifact, readGepaCandidatePopulationArtifact, recordGepaSearch, recordSkillOptSearch, renderScoreboardMarkdown, renderSearchSummary, renderSurfaceDiff, replaySearchLedgerText, resolveExternalOptimizerCallbackLimits, resolveExternalOptimizerProcessLimits, resolveRunDir, resolveWorktreePath, rolloutArgumentDiff, runCampaign, runEval, runImprovementLoop, runOptimization, runProfileMatrix, runProfileMatrixSegment, runSearch, scopedOptimizationMethod, scoreDiscrimination, scoreUserStory, scoreboardSummary, searchCellId, searchCellSetDigest, searchClaimReserveUsd, searchDivergence, searchEdgeId, searchExpansionIndex, searchHistoryCoverageRow, searchModelIdentity, searchNodeId, searchPolicyView, searchPosterior, searchProposalExecution, searchProposerView, searchReceiptAccounting, searchTaskSetDigest, searchUnitScores, selectDiscriminative, sequentialDecide, sequentialOptimizationMethod, sequentialPairedGate, skillOptOptimizationMethod, surfaceContentHash, surfaceDiff, surfaceDispatchRef, surfaceHash, surfaceNode, tangleTracesRoot, traceAnalystQualityJudge, transientDispatchFailure, uniform, userStoryScoreboard, validateSearchLedgerEvent, verifyCodeSurface, verifyLoopProvenanceRecord, verifySearchClaim, verifySearchHistoryArtifact, verifySearchHistoryReceipt };
10
+ export { type AideOptions, type AllocateSearchCellInput, type AnalyzeCrossSurfaceInteractionsInput, type AshaOptions, type AutoevalsScoreLike, type AutoevalsScorerLike, type AxisEvidence, type AxisVerdict, type BuildEvidenceVectorOptions, type BuildLoopProvenanceArgs, type BuildTraceAnalystSurfaceDispatchOptions, type CacheIssueReason, type CacheRead, type CampaignAggregates, type CampaignArtifactWriter, type CampaignBreakdown, type CampaignCellFailureReceipt, type CampaignCellResult, type CampaignCellRetryPolicy, type CampaignCostMeter, type CampaignResult, type CampaignRunPlan, type CampaignRunPlanCell, type CampaignScenarioIdentity, type CampaignStorage, type CampaignTokenUsage, type CampaignTraceWriter, type CellScheduleSlot, type CodeSurface, type CodeSurfaceVerification, type CompareOptimizationMethodsOptions, type ComparisonCost, type ComponentSurface, type CostLedgerHandle, type CreateProfileMatrixPlanOptions, type CreateSearchHistoryReceiptInput, type CrossSurfaceAdditionDecision, type CrossSurfaceAdditionRejectionReason, type CrossSurfaceAttemptCompleteness, type CrossSurfaceBestSingleSelection, type CrossSurfaceBootstrapPolicy, type CrossSurfaceCandidate, type CrossSurfaceCandidateComparison, type CrossSurfaceCandidateEvidence, type CrossSurfaceCandidateOutcome, type CrossSurfaceCandidateSummary, type CrossSurfaceComponent, type CrossSurfaceComponentEvidence, type CrossSurfaceCompositionStep, type CrossSurfaceDistribution, type CrossSurfaceEligibility, type CrossSurfaceEvidenceBreakdown, type CrossSurfaceIneligibilityReason, type CrossSurfaceInteractionAwareSelection, type CrossSurfaceInteractionEffect, type CrossSurfaceInteractionPath, type CrossSurfaceInteractionReport, type CrossSurfaceInteractionTask, type CrossSurfaceNaiveStackSelection, type CrossSurfacePairCompatibility, type CrossSurfacePairEvidence, type CrossSurfacePairIncompatibilityReason, type CrossSurfacePairwiseEntry, type CrossSurfaceRankedSingle, type CrossSurfaceRelativeCost, type CrossSurfaceSelectionPolicy, type CrossSurfaceSelections, type CrossSurfaceTaskRow, DEFAULT_EXTERNAL_OPTIMIZER_CALLBACK_LIMITS, DEFAULT_EXTERNAL_OPTIMIZER_PROCESS_LIMITS, type DefaultProductionGateCheck, type DefaultProductionGateOptions, type DefaultProductionRewardHackingOptions, type DimensionRegression, type DiscriminationScore, type DispatchContext, type DispatchFn, type EmitLoopProvenanceArgs, type EmitLoopProvenanceResult, type EstimateNodeCellsInput, type EvalFixture, type EvalFixtureFile, type EvalFixtureLoadOptions, type EvalFixtureRunPlan, type EvalFixtureScenario, type EvalFixtureValidationMode, type EvidenceVector, type ExternalOptimizationExample, type ExternalOptimizerCallbackLimits, type ExternalOptimizerChatRequest, type ExternalOptimizerEndpointFormat, type ExternalOptimizerEvaluationObservation, type ExternalOptimizerEvaluationRefusalReason, type ExternalOptimizerExecutionSummary, type ExternalOptimizerModelBudget, type ExternalOptimizerModelCall, type ExternalOptimizerModelCallRequest, type ExternalOptimizerModelCallResult, type ExternalOptimizerModelExecutionObservation, type ExternalOptimizerObservationArtifact, type ExternalOptimizerObservationSummary, type ExternalOptimizerProcessLimits, type ExternalOptimizerRunnerCommand, type ExternalOptimizerSubmittedCandidate, type ExternalSearchOptimizer, type ExternalTextCandidate, type ExternalTextEvaluationResponse, type ExternalTextOptimizationMethodConfig, type ExternalTextOptimizerContext, type ExternalTextOptimizerResult, FileSearchLedger, type FinalEvidencePolicy, type FinalEvidenceUse, type FinalizeProfileMatrixOptions, type FinalizedProfileMatrixResult, FsLabeledScenarioStore, type FsLabeledScenarioStoreOptions, type Gate, type GateCheckStatus, type GateContext, type GateContribution, type GateDecision, type GateResult, type GenerationCandidate, type GenerationRecord, type GepaAdaptiveEngineRun, type GepaCandidatePopulationArtifact, type GepaCandidatePopulationCandidate, type GepaCandidatePopulationSummary, type GepaCandidateSelectionScore, type GepaEngineOptions, type GepaEngineRun, type GepaEvaluationImport, type GepaOptimizationMethodConfig, type GepaOptimizationRecipe, type GepaPopulationImport, type GepaRunnerCommand, type GitWorktreeAdapterOptions, type HeldOutGateOptions, type HeldoutSignificance, type HeldoutSignificanceOptions, type JudgeAggregate, type JudgeConfig, type JudgeDimension, type JudgeScore, type LabelTrust, type LabeledScenarioRecord, type LabeledScenarioSampleArgs, type LabeledScenarioSource, type LabeledScenarioStore, LabeledScenarioStoreError, type LabeledScenarioWrite, type LlmJudgeDimension, type LlmJudgeOptions, type LoadEvalFixtureScenariosOptions, type LoopProvenanceArgsFromResult, type LoopProvenanceBackend, type LoopProvenanceCandidate, type LoopProvenanceEvidence, type LoopProvenanceOptimizationMethod, type LoopProvenanceRecord, type MutableSurface, type NeutralizationGateOptions, type NodeEstimate, type NodePosterior, type ObjectiveSource, type OpenAICompatibleOptimizerModel, type OpenAutoPrOptions, type OpenAutoPrResult, type OpenSearchLedgerOptions, type OptimizationMethod, type OptimizationMethodComparison, type OptimizationMethodComposition, type OptimizationMethodInput, type OptimizationMethodPairwise, type OptimizationMethodProvenance, type OptimizationMethodResult, type OptimizationMethodRunOptions, type OptimizationMethodScore, type OptimizationPackageSource, type OptimizationTokenUsage, type OptimizerConfig, type OptimizerModelBudget, type PairedHoldout, type ParetoParent, type ParetoSignificanceGateOptions, type PendingCostCallView, type PhoenixEvaluationResultLike, type PhoenixEvaluatorLike, type PlanCampaignRunOptions, type PlanEvalFixtureRunOptions, type PlanSearchClaimInput, type PlaybackContext, type PlaybackDriver, type PlaybackStep, type PowerPreflight, type PowerPreflightOptions, type PremeasuredOptimizationBaseline, type ProfileDispatchFn, type ProfileMatrixCoverage, ProfileMatrixError, type ProfileMatrixPlan, type ProfileMatrixRow, type ProfileMatrixSegmentResult, type ProfileSummary, type PromotionObjective, type PromotionPolicy, type ProposalFinding, type ProposalFindingOrigin, type ProposalTrackContext, type ProposeContext, type ProposedCandidate, type RecordSearchEdgeInput, type RedactionStatus, type ReferenceEquivalenceJudgeOptions, type ReferenceEquivalenceScenario, type RegisterSearchNodeInput, type RetainedDispatchOptions, type RetainedDispatchOutcome, type RolloutArgumentDiff, type RolloutArgumentDiffOptions, type RolloutCall, type RunCampaignOptions, type RunEvalOptions, type RunImprovementLoopOptions, type RunImprovementLoopResult, type RunOptimizationOptions, type RunOptimizationResult, type RunProfileMatrixOptions, type RunProfileMatrixResult, type RunProfileMatrixSegmentOptions, type RunSearchOptions, SEARCH_CLAIM_RULE, SEARCH_ESTIMATOR, SEARCH_KERNEL_SOURCE, SEARCH_LEDGER_SCHEMA, type Scenario, type ScenarioAggregate, type ScenarioRollup, type ScenarioSignal, type ScoreboardRenderOptions, type ScoreboardRow, type ScoreboardSummary, type ScoredRollout, type ScoredSurfaceOutcome, type SearchAllocationView, type SearchAllocator, type SearchArtifactCodec, type SearchArtifactKind, type SearchArtifactRef, type SearchAttemptAccounting, type SearchAudit, type SearchBudget, type SearchCancelReason, type SearchCandidateSurface, type SearchCell, type SearchCellAllocatedEvent, type SearchCellCancelledEvent, type SearchCellPlan, type SearchCellResult, type SearchCellSettledEvent, type SearchCellStage, type SearchCellWork, type SearchClaim, type SearchClaimDecision, type SearchClaimEstimator, type SearchClaimFinalist, type SearchClaimPlan, type SearchClaimPower, type SearchClaimTest, type SearchClaimVerification, type SearchCloseReason, type SearchClosedEvent, type SearchCompletion, type SearchCostAccounting, type SearchDecisionRecord, type SearchEdgeAttribution, type SearchEdgeOperator, type SearchEdgeRecordedEvent, type SearchEstimateMethod, type SearchExecutionIdentity, type SearchExecutor, type SearchExpansion, type SearchFailureReason, type SearchHistoryAdmissionOptions, type SearchHistoryAuditSummary, type SearchHistoryCoverage, type SearchHistoryCoverageRow, type SearchHistoryPolicy, type SearchHistoryReceipt, SearchHistoryRequiredError, type SearchLane, type SearchLedger, type SearchLedgerAppendResult, type SearchLedgerBinding, SearchLedgerConflictError, type SearchLedgerEntry, SearchLedgerError, type SearchLedgerEvent, type SearchLedgerHash, SearchLedgerIntegrityError, type SearchLedgerTrustedHeadMode, type SearchModelIdentity, type SearchNode, type SearchNodeDecidedEvent, type SearchNodeDecision, type SearchNodeRef, type SearchNodeRegisteredEvent, type SearchNodeStatus, type SearchOpenedEvent, type SearchOpening, type SearchOperation, type SearchOperationKind, type SearchOperationRecordedEvent, type SearchOperationStartedEvent, type SearchPolicy, type SearchPolicyNode, type SearchPolicyView, type SearchPosterior, type SearchProposalBlob, type SearchProposalRequest, type SearchProposalResult, type SearchProposedChild, type SearchProposer, type SearchProposerKind, type SearchProposerPort, type SearchProposerView, SearchRecorder, type SearchRecorderOptions, type SearchReservation, type SearchRunIdentity, type SearchRunResult, type SearchRungDecision, type SearchScoredCell, type SearchSourceRef, type SearchSpend, type SearchSplit, type SearchSplitTasks, type SearchSplits, SearchState, SearchStateView, type SearchSummaryOptions, type SearchSurfaceEffect, type SearchSurfaceEvidence, type SearchSurfaceKind, type SearchTask, type SearchTaskOutcome, type SearchTokenAccounting, type SearchTraceRef, type SearchUnitExtension, type SearchUnitScore, type SearchUnknown, type SequentialDecideFn, type SequentialDecideOptions, type SequentialDecision, type SequentialObservation, type SequentialPairedGate, type SequentialPairedGateOptions, type SequentialStreamState, type SeriesDistribution, type SessionScript, type SettleSearchCellInput, type SingleRunLock, type SingleRunLockOptions, type SkillOptOptimizationMethodConfig, type SkillOptRunnerCommand, type SkillOptTrainerConfig, type SurfaceProposer, type TraceAnalystArtifact, type TraceAnalystScenario, type TraceSpan, type TransientFailureOptions, type UngroundedLiteralReport, type UserStory, type UserStoryVerdict, type Worktree, type WorktreeAdapter, WorktreeAdapterError, acquireSingleRunLock, aide, analyzeCrossSurfaceInteractions, asha, assertCampaignDesign, assertCampaignSplitIdentity, assertCodeSurfaceIdentity, assertCompleteSearchHistory, assertSearchHistoryMatchesState, autoevalsScorerJudge, beam, buildCellSchedule, buildEvidenceVector, buildLoopProvenanceRecord, buildTraceAnalystSurfaceDispatch, campaignBreakdown, campaignCellSearchResult, campaignMeanComposite, campaignMeasurementDigest, campaignScenarioIdentity, campaignSplitDigest, campaignSplitDigestFromIdentities, canonicalDigest, cellCachePath, classifyUngroundedLiterals, codeSurfaceIdentityMaterial, combineComparisonCosts, compareOptimizationMethods, componentSurfaceIdentityMaterial, composeGate, costFromLedgerSummary, createProfileMatrixPlan, createReferenceEquivalenceJudge, createRetainedDispatch, createRunCostLedger, createSearchHistoryReceipt, crowdedFrontierParent, decideSearchClaim, decodeExternalTextCandidate, defaultProductionGate, detectScale, developmentClaim, dimensionRegressions, discoverEvalFixtures, emitLoopProvenance, estimateNode, estimateNodeFromCells, externalSurface, externalTextOptimizationMethod, finalizeProfileMatrix, fsCampaignStorage, gepaOptimizationMethod, gitWorktreeAdapter, heldOutGate, heldoutSignificance, importExternalEvaluations, importGepaPopulation, inMemoryCampaignStorage, incumbent, incumbentWithOperatorBandit, isProposedCandidate, isTransientTransportFailure, labelTrustRank, llmJudge, loadEvalFixture, loadEvalFixtureScenarios, loopProvenanceArgsFromResult, loopProvenanceSpans, makePlaybackDispatch, makeProposalFinding, neutralizationGate, neutralizeText, openAutoPr, openSearchLedger, optimizationTokenUsageFromSummary, pairHoldout, paretoPolicy, paretoSignificanceGate, parseSearchLedgerLine, phoenixEvaluatorJudge, planCampaignRun, planEvalFixtureRun, planSearchClaim, powerPreflight, provenanceRecordPath, provenanceSpansPath, quotaExhaustedUntil, readCachedCell, readExternalOptimizerObservationArtifact, readGepaCandidatePopulationArtifact, recordGepaSearch, recordSkillOptSearch, renderScoreboardMarkdown, renderSearchSummary, renderSurfaceDiff, replaySearchLedgerText, resolveExternalOptimizerCallbackLimits, resolveExternalOptimizerProcessLimits, resolveRunDir, resolveWorktreePath, rolloutArgumentDiff, runCampaign, runEval, runImprovementLoop, runOptimization, runProfileMatrix, runProfileMatrixSegment, runSearch, scopedOptimizationMethod, scoreDiscrimination, scoreUserStory, scoreboardSummary, searchCellId, searchCellSetDigest, searchClaimReserveUsd, searchDivergence, searchEdgeId, searchExpansionIndex, searchHistoryCoverageRow, searchModelIdentity, searchNodeId, searchPolicyView, searchPosterior, searchProposalExecution, searchProposerView, searchReceiptAccounting, searchTaskSetDigest, searchUnitScores, selectDiscriminative, sequentialDecide, sequentialOptimizationMethod, sequentialPairedGate, skillOptOptimizationMethod, surfaceContentHash, surfaceDiff, surfaceDispatchRef, surfaceHash, surfaceNode, tangleTracesRoot, traceAnalystQualityJudge, transientDispatchFailure, uniform, userStoryScoreboard, validateSearchLedgerEvent, verifyCodeSurface, verifyLoopProvenanceRecord, verifySearchClaim, verifySearchHistoryArtifact, verifySearchHistoryReceipt };
@@ -9,7 +9,7 @@ import { t as acquireSingleRunLock } from "../single-run-lock-fVu3MZWH.js";
9
9
  import { n as searchProposerView, t as renderSearchSummary } from "../search-summary-C1nAHgkB.js";
10
10
  import { i as makeProposalFinding } from "../types-CW5b90JH.js";
11
11
  import { a as importGepaPopulation, c as heldOutGate, d as decodeExternalTextCandidate, f as readExternalOptimizerObservationArtifact, h as createReferenceEquivalenceJudge, i as importExternalEvaluations, l as composeGate, n as gepaOptimizationMethod, o as recordGepaSearch, r as externalSurface, s as recordSkillOptSearch, t as skillOptOptimizationMethod, u as externalTextOptimizationMethod } from "../skillopt-optimization-method-Bls9t-G_.js";
12
- import { A as planEvalFixtureRun, C as LabeledScenarioStoreError, D as discoverEvalFixtures, E as neutralizationGate, M as buildTraceAnalystSurfaceDispatch, N as traceAnalystQualityJudge, O as loadEvalFixture, S as FsLabeledScenarioStore, T as rolloutArgumentDiff, _ as scoreboardSummary, a as autoevalsScorerJudge, b as sequentialOptimizationMethod, c as selectDiscriminative, d as runProfileMatrixSegment, f as ProfileMatrixError, g as scoreUserStory, h as renderScoreboardMarkdown, i as verifyCodeSurface, j as analyzeCrossSurfaceInteractions, k as loadEvalFixtureScenarios, l as createProfileMatrixPlan, m as makePlaybackDispatch, n as gitWorktreeAdapter, o as phoenixEvaluatorJudge, p as runProfileMatrix, r as resolveWorktreePath, s as scoreDiscrimination, t as WorktreeAdapterError, u as finalizeProfileMatrix, v as userStoryScoreboard, w as classifyUngroundedLiterals, x as neutralizeText, y as scopedOptimizationMethod } from "../campaign-PmTWZi72.js";
12
+ import { A as loadEvalFixtureScenarios, C as FsLabeledScenarioStore, D as neutralizationGate, E as rolloutArgumentDiff, M as analyzeCrossSurfaceInteractions, N as buildTraceAnalystSurfaceDispatch, O as discoverEvalFixtures, P as traceAnalystQualityJudge, S as neutralizeText, T as classifyUngroundedLiterals, _ as scoreUserStory, a as autoevalsScorerJudge, b as scopedOptimizationMethod, c as selectDiscriminative, d as finalizeProfileMatrix, f as runProfileMatrixSegment, g as renderScoreboardMarkdown, h as makePlaybackDispatch, i as verifyCodeSurface, j as planEvalFixtureRun, k as loadEvalFixture, l as createRetainedDispatch, m as runProfileMatrix, n as gitWorktreeAdapter, o as phoenixEvaluatorJudge, p as ProfileMatrixError, r as resolveWorktreePath, s as scoreDiscrimination, t as WorktreeAdapterError, u as createProfileMatrixPlan, v as scoreboardSummary, w as LabeledScenarioStoreError, x as sequentialOptimizationMethod, y as userStoryScoreboard } from "../campaign-Btk1yFfw.js";
13
13
  import { n as paretoPolicy, r as paretoSignificanceGate, t as buildEvidenceVector } from "../promotion-policy-BI1RxzwD.js";
14
14
  import { n as sequentialPairedGate, t as sequentialDecide } from "../sequential-DWn_np6P.js";
15
- export { DEFAULT_EXTERNAL_OPTIMIZER_CALLBACK_LIMITS, DEFAULT_EXTERNAL_OPTIMIZER_PROCESS_LIMITS, FileSearchLedger, FsLabeledScenarioStore, LabeledScenarioStoreError, ProfileMatrixError, SEARCH_CLAIM_RULE, SEARCH_ESTIMATOR, SEARCH_KERNEL_SOURCE, SEARCH_LEDGER_SCHEMA, SearchHistoryRequiredError, SearchLedgerConflictError, SearchLedgerError, SearchLedgerIntegrityError, SearchRecorder, SearchState, SearchStateView, WorktreeAdapterError, acquireSingleRunLock, aide, analyzeCrossSurfaceInteractions, asha, assertCampaignDesign, assertCampaignSplitIdentity, assertCodeSurfaceIdentity, assertCompleteSearchHistory, assertSearchHistoryMatchesState, autoevalsScorerJudge, beam, buildCellSchedule, buildEvidenceVector, buildLoopProvenanceRecord, buildTraceAnalystSurfaceDispatch, campaignBreakdown, campaignCellSearchResult, campaignMeanComposite, campaignMeasurementDigest, campaignScenarioIdentity, campaignSplitDigest, campaignSplitDigestFromIdentities, canonicalDigest, cellCachePath, classifyUngroundedLiterals, codeSurfaceIdentityMaterial, combineComparisonCosts, compareOptimizationMethods, componentSurfaceIdentityMaterial, composeGate, costFromLedgerSummary, createProfileMatrixPlan, createReferenceEquivalenceJudge, createRunCostLedger, createSearchHistoryReceipt, crowdedFrontierParent, decideSearchClaim, decodeExternalTextCandidate, defaultProductionGate, detectScale, developmentClaim, dimensionRegressions, discoverEvalFixtures, emitLoopProvenance, estimateNode, estimateNodeFromCells, externalSurface, externalTextOptimizationMethod, finalizeProfileMatrix, fsCampaignStorage, gepaOptimizationMethod, gitWorktreeAdapter, heldOutGate, heldoutSignificance, importExternalEvaluations, importGepaPopulation, inMemoryCampaignStorage, incumbent, incumbentWithOperatorBandit, isProposedCandidate, isTransientTransportFailure, labelTrustRank, llmJudge, loadEvalFixture, loadEvalFixtureScenarios, loopProvenanceArgsFromResult, loopProvenanceSpans, makePlaybackDispatch, makeProposalFinding, neutralizationGate, neutralizeText, openAutoPr, openSearchLedger, optimizationTokenUsageFromSummary, pairHoldout, paretoPolicy, paretoSignificanceGate, parseSearchLedgerLine, phoenixEvaluatorJudge, planCampaignRun, planEvalFixtureRun, planSearchClaim, powerPreflight, provenanceRecordPath, provenanceSpansPath, quotaExhaustedUntil, readCachedCell, readExternalOptimizerObservationArtifact, readGepaCandidatePopulationArtifact, recordGepaSearch, recordSkillOptSearch, renderScoreboardMarkdown, renderSearchSummary, renderSurfaceDiff, replaySearchLedgerText, resolveExternalOptimizerCallbackLimits, resolveExternalOptimizerProcessLimits, resolveRunDir, resolveWorktreePath, rolloutArgumentDiff, runCampaign, runEval, runImprovementLoop, runOptimization, runProfileMatrix, runProfileMatrixSegment, runSearch, scopedOptimizationMethod, scoreDiscrimination, scoreUserStory, scoreboardSummary, searchCellId, searchCellSetDigest, searchClaimReserveUsd, searchDivergence, searchEdgeId, searchExpansionIndex, searchHistoryCoverageRow, searchModelIdentity, searchNodeId, searchPolicyView, searchPosterior, searchProposalExecution, searchProposerView, searchReceiptAccounting, searchTaskSetDigest, searchUnitScores, selectDiscriminative, sequentialDecide, sequentialOptimizationMethod, sequentialPairedGate, skillOptOptimizationMethod, surfaceContentHash, surfaceDiff, surfaceDispatchRef, surfaceHash, surfaceNode, tangleTracesRoot, traceAnalystQualityJudge, transientDispatchFailure, uniform, userStoryScoreboard, validateSearchLedgerEvent, verifyCodeSurface, verifyLoopProvenanceRecord, verifySearchClaim, verifySearchHistoryArtifact, verifySearchHistoryReceipt };
15
+ export { DEFAULT_EXTERNAL_OPTIMIZER_CALLBACK_LIMITS, DEFAULT_EXTERNAL_OPTIMIZER_PROCESS_LIMITS, FileSearchLedger, FsLabeledScenarioStore, LabeledScenarioStoreError, ProfileMatrixError, SEARCH_CLAIM_RULE, SEARCH_ESTIMATOR, SEARCH_KERNEL_SOURCE, SEARCH_LEDGER_SCHEMA, SearchHistoryRequiredError, SearchLedgerConflictError, SearchLedgerError, SearchLedgerIntegrityError, SearchRecorder, SearchState, SearchStateView, WorktreeAdapterError, acquireSingleRunLock, aide, analyzeCrossSurfaceInteractions, asha, assertCampaignDesign, assertCampaignSplitIdentity, assertCodeSurfaceIdentity, assertCompleteSearchHistory, assertSearchHistoryMatchesState, autoevalsScorerJudge, beam, buildCellSchedule, buildEvidenceVector, buildLoopProvenanceRecord, buildTraceAnalystSurfaceDispatch, campaignBreakdown, campaignCellSearchResult, campaignMeanComposite, campaignMeasurementDigest, campaignScenarioIdentity, campaignSplitDigest, campaignSplitDigestFromIdentities, canonicalDigest, cellCachePath, classifyUngroundedLiterals, codeSurfaceIdentityMaterial, combineComparisonCosts, compareOptimizationMethods, componentSurfaceIdentityMaterial, composeGate, costFromLedgerSummary, createProfileMatrixPlan, createReferenceEquivalenceJudge, createRetainedDispatch, createRunCostLedger, createSearchHistoryReceipt, crowdedFrontierParent, decideSearchClaim, decodeExternalTextCandidate, defaultProductionGate, detectScale, developmentClaim, dimensionRegressions, discoverEvalFixtures, emitLoopProvenance, estimateNode, estimateNodeFromCells, externalSurface, externalTextOptimizationMethod, finalizeProfileMatrix, fsCampaignStorage, gepaOptimizationMethod, gitWorktreeAdapter, heldOutGate, heldoutSignificance, importExternalEvaluations, importGepaPopulation, inMemoryCampaignStorage, incumbent, incumbentWithOperatorBandit, isProposedCandidate, isTransientTransportFailure, labelTrustRank, llmJudge, loadEvalFixture, loadEvalFixtureScenarios, loopProvenanceArgsFromResult, loopProvenanceSpans, makePlaybackDispatch, makeProposalFinding, neutralizationGate, neutralizeText, openAutoPr, openSearchLedger, optimizationTokenUsageFromSummary, pairHoldout, paretoPolicy, paretoSignificanceGate, parseSearchLedgerLine, phoenixEvaluatorJudge, planCampaignRun, planEvalFixtureRun, planSearchClaim, powerPreflight, provenanceRecordPath, provenanceSpansPath, quotaExhaustedUntil, readCachedCell, readExternalOptimizerObservationArtifact, readGepaCandidatePopulationArtifact, recordGepaSearch, recordSkillOptSearch, renderScoreboardMarkdown, renderSearchSummary, renderSurfaceDiff, replaySearchLedgerText, resolveExternalOptimizerCallbackLimits, resolveExternalOptimizerProcessLimits, resolveRunDir, resolveWorktreePath, rolloutArgumentDiff, runCampaign, runEval, runImprovementLoop, runOptimization, runProfileMatrix, runProfileMatrixSegment, runSearch, scopedOptimizationMethod, scoreDiscrimination, scoreUserStory, scoreboardSummary, searchCellId, searchCellSetDigest, searchClaimReserveUsd, searchDivergence, searchEdgeId, searchExpansionIndex, searchHistoryCoverageRow, searchModelIdentity, searchNodeId, searchPolicyView, searchPosterior, searchProposalExecution, searchProposerView, searchReceiptAccounting, searchTaskSetDigest, searchUnitScores, selectDiscriminative, sequentialDecide, sequentialOptimizationMethod, sequentialPairedGate, skillOptOptimizationMethod, surfaceContentHash, surfaceDiff, surfaceDispatchRef, surfaceHash, surfaceNode, tangleTracesRoot, traceAnalystQualityJudge, transientDispatchFailure, uniform, userStoryScoreboard, validateSearchLedgerEvent, verifyCodeSurface, verifyLoopProvenanceRecord, verifySearchClaim, verifySearchHistoryArtifact, verifySearchHistoryReceipt };
@@ -1,5 +1,5 @@
1
1
  import { s as ValidationError, t as AgentEvalError } from "./errors-Dngq5h35.js";
2
- import { i as compareCodeUnits } from "./canonical-BsZVgBhW.js";
2
+ import { a as hashCanonical, i as compareCodeUnits, r as canonicalString } from "./canonical-BsZVgBhW.js";
3
3
  import { c as agentProfileId, d as harnessAxisOf, i as verifyCompletion, l as agentProfileModelId, s as agentProfileHash, t as extractProducedState } from "./produced-state-CR2tAPLf.js";
4
4
  import { s as buildAgentProfileCell } from "./agent-profile-cell-DcFW4vOc.js";
5
5
  import { r as pairedBootstrap } from "./paired-tests-Ccr16gcW.js";
@@ -22,6 +22,7 @@ import "./skillopt-optimization-method-Bls9t-G_.js";
22
22
  import "./sequential-DWn_np6P.js";
23
23
  import { createHash } from "node:crypto";
24
24
  import { closeSync, constants, existsSync, fstatSync, lstatSync, mkdirSync, mkdtempSync, openSync, readFileSync, readSync, readdirSync, readlinkSync, realpathSync, rmSync, statSync, writeFileSync } from "node:fs";
25
+ import { z } from "zod";
25
26
  import { basename, dirname, isAbsolute, join, relative, resolve, sep } from "node:path";
26
27
  import { devNull, tmpdir } from "node:os";
27
28
  import { execFileSync } from "node:child_process";
@@ -2366,6 +2367,348 @@ function byteLength(value) {
2366
2367
  return new TextEncoder().encode(value).byteLength;
2367
2368
  }
2368
2369
  //#endregion
2370
+ //#region src/campaign/retained-dispatch.ts
2371
+ const digest = z.string().regex(/^sha256:[a-f0-9]{64}$/);
2372
+ const headerSchema = z.object({
2373
+ kind: z.literal("retained-dispatch-v1"),
2374
+ scope: digest,
2375
+ limits: z.array(z.tuple([z.string().min(1), z.number().int().nonnegative()]))
2376
+ }).strict();
2377
+ const eventSchema = z.discriminatedUnion("kind", [z.object({
2378
+ kind: z.literal("started"),
2379
+ id: digest,
2380
+ lane: z.string().min(1)
2381
+ }).strict(), z.object({
2382
+ kind: z.literal("settled"),
2383
+ id: digest,
2384
+ receipt: digest
2385
+ }).strict()]);
2386
+ const resultSchema = z.object({
2387
+ kind: z.literal("retained-dispatch-result-v1"),
2388
+ id: digest,
2389
+ receipt: digest,
2390
+ value: z.unknown()
2391
+ }).strict();
2392
+ /** The committed byte length and cumulative digest of retained dispatch history. */
2393
+ const anchorEntrySchema = z.object({
2394
+ kind: z.literal("retained-dispatch-anchor-v1"),
2395
+ scope: digest,
2396
+ bytes: z.number().int().positive(),
2397
+ digest
2398
+ }).strict();
2399
+ /**
2400
+ * Persist dispatch intent before an external call and its validated result afterward.
2401
+ * Replays settled calls; never repeats an uncertain call or refunds its allowance.
2402
+ * Every journal event is durably anchored before it takes effect, and history that
2403
+ * cannot be proven equal to its durable anchor fails closed.
2404
+ * This wraps a campaign's dispatch; runEval still owns scheduling, judging and reports.
2405
+ * Uses CampaignStorage's existing compare-and-append, not another database or scheduler.
2406
+ */
2407
+ function createRetainedDispatch(options) {
2408
+ if (!options.runDir.trim()) throw new ValidationError("retained dispatch requires a run directory");
2409
+ const storage = options.storage ?? fsCampaignStorage();
2410
+ const parse = options.parse;
2411
+ const header = headerSchema.parse({
2412
+ kind: "retained-dispatch-v1",
2413
+ scope: hashCanonical(options.scope),
2414
+ limits: Object.entries(options.limits).sort(([a], [b]) => compareCodeUnits(a, b))
2415
+ });
2416
+ if (!header.limits.length) throw new ValidationError("retained dispatch requires named allowances");
2417
+ const limits = new Map(header.limits);
2418
+ const counts = /* @__PURE__ */ new Map();
2419
+ const calls = /* @__PURE__ */ new Map();
2420
+ const active = /* @__PURE__ */ new Map();
2421
+ const indexPath = join(options.runDir, "dispatches.jsonl");
2422
+ const scopePath = join(options.runDir, "dispatch-scope.json");
2423
+ const anchorPath = join(options.runDir, "dispatch-anchor.jsonl");
2424
+ const scopeText = canonicalString(header);
2425
+ const scopeDigest = hashCanonical(header);
2426
+ const receiptsDir = join(options.runDir, "dispatch-results");
2427
+ const resultPath = (id) => join(receiptsDir, `${id.slice(7)}.json`);
2428
+ storage.ensureDir(options.runDir);
2429
+ storage.ensureDir(receiptsDir);
2430
+ let retainedText = "";
2431
+ let revision = 0;
2432
+ let chain = null;
2433
+ let opened = false;
2434
+ const fail = (message) => {
2435
+ throw new ValidationError(`retained dispatch: ${message}`);
2436
+ };
2437
+ const apply = (event) => {
2438
+ const existing = calls.get(event.id);
2439
+ if (event.kind === "started") {
2440
+ const limit = limits.get(event.lane);
2441
+ const count = counts.get(event.lane) ?? 0;
2442
+ if (existing || limit === void 0 || count >= limit) fail("invalid or over-budget dispatch history");
2443
+ calls.set(event.id, { lane: event.lane });
2444
+ counts.set(event.lane, count + 1);
2445
+ } else {
2446
+ if (!existing || existing.receipt) return fail("settlement has no unique pending dispatch");
2447
+ existing.receipt = event.receipt;
2448
+ }
2449
+ };
2450
+ const readAnchor = () => {
2451
+ const content = storage.read(anchorPath);
2452
+ if (content === void 0 && storage.exists(anchorPath)) fail("cannot read durable anchor");
2453
+ const text = content ?? "";
2454
+ if (text && !text.endsWith("\n")) fail("durable anchor is torn");
2455
+ const entries = [];
2456
+ let previous = 0;
2457
+ const lines = text.split("\n");
2458
+ if (lines.at(-1) === "") lines.pop();
2459
+ if (lines.some((line) => !line)) fail("durable anchor contains an empty record");
2460
+ for (const line of lines) {
2461
+ const entry = anchorEntrySchema.parse(JSON.parse(line));
2462
+ if (entry.scope !== scopeDigest) fail("durable anchor scope changed");
2463
+ if (entry.bytes <= previous) fail("durable anchor is not append-only");
2464
+ previous = entry.bytes;
2465
+ entries.push(entry);
2466
+ }
2467
+ return {
2468
+ text,
2469
+ entries
2470
+ };
2471
+ };
2472
+ const refresh = () => {
2473
+ if (storage.read(scopePath) !== scopeText) fail("scope anchor is missing or changed");
2474
+ const stored = storage.read(indexPath);
2475
+ if (stored === void 0 && storage.exists(indexPath)) fail("cannot read existing history");
2476
+ const text = stored ?? "";
2477
+ if (!text.startsWith(retainedText) || text && !text.endsWith("\n")) fail("history was truncated, replaced or torn");
2478
+ const { entries } = readAnchor();
2479
+ const bytes = Buffer.byteLength(text);
2480
+ const applied = Buffer.byteLength(retainedText);
2481
+ if (text && !entries.length) fail("durable anchor is missing");
2482
+ const highWater = entries[entries.length - 1];
2483
+ if (highWater && bytes !== highWater.bytes) {
2484
+ if (bytes < highWater.bytes) fail("history was truncated below its durable anchor");
2485
+ fail("history extends beyond its durable anchor");
2486
+ }
2487
+ let offset = 0;
2488
+ let running = null;
2489
+ let entryIndex = 0;
2490
+ let seenHeader = opened;
2491
+ for (const line of text.split("\n")) {
2492
+ if (!line) continue;
2493
+ running = hashCanonical([running, line]);
2494
+ offset += Buffer.byteLength(line) + 1;
2495
+ while (entryIndex < entries.length && entries[entryIndex].bytes === offset) {
2496
+ if (entries[entryIndex].digest !== running) fail("history diverges from its durable anchor");
2497
+ entryIndex += 1;
2498
+ }
2499
+ if (offset <= applied) continue;
2500
+ if (!seenHeader) {
2501
+ const value = JSON.parse(line);
2502
+ if (hashCanonical(headerSchema.parse(value)) !== hashCanonical(header)) fail("resume changed its scope or allowances");
2503
+ seenHeader = true;
2504
+ } else apply(eventSchema.parse(JSON.parse(line)));
2505
+ }
2506
+ if (entries.length && entryIndex !== entries.length) fail("history diverges from its durable anchor");
2507
+ chain = running;
2508
+ retainedText = text;
2509
+ revision = bytes;
2510
+ opened = seenHeader;
2511
+ };
2512
+ const append = (event) => {
2513
+ const encoded = canonicalString(event);
2514
+ const line = `${encoded}\n`;
2515
+ const next = storage.append(indexPath, line, revision);
2516
+ if (next === void 0) {
2517
+ refresh();
2518
+ return false;
2519
+ }
2520
+ if (next !== revision + Buffer.byteLength(line)) fail("storage returned an invalid append revision");
2521
+ chain = hashCanonical([chain, encoded]);
2522
+ retainedText += line;
2523
+ revision = next;
2524
+ if (event.kind === "retained-dispatch-v1") opened = true;
2525
+ else apply(event);
2526
+ return true;
2527
+ };
2528
+ const advanceAnchor = () => {
2529
+ const currentChain = chain ?? fail("cannot anchor an empty history");
2530
+ if (revision <= 0) fail("cannot anchor an empty history");
2531
+ const { text, entries } = readAnchor();
2532
+ const last = entries[entries.length - 1];
2533
+ if (last) {
2534
+ if (last.bytes > revision) fail("history is behind its durable anchor");
2535
+ if (last.bytes === revision) {
2536
+ if (last.digest !== currentChain) fail("history diverges from its durable anchor");
2537
+ return;
2538
+ }
2539
+ }
2540
+ const line = `${canonicalString({
2541
+ kind: "retained-dispatch-anchor-v1",
2542
+ scope: scopeDigest,
2543
+ bytes: revision,
2544
+ digest: currentChain
2545
+ })}\n`;
2546
+ const next = storage.append(anchorPath, line, Buffer.byteLength(text));
2547
+ if (next === void 0) {
2548
+ const concurrent = readAnchor().entries.at(-1);
2549
+ if (concurrent?.bytes === revision && concurrent.digest === chain) return;
2550
+ fail("durable anchor append is busy; retry with the same run directory");
2551
+ }
2552
+ if (next !== Buffer.byteLength(text) + Buffer.byteLength(line)) fail("storage returned an invalid durable anchor revision");
2553
+ };
2554
+ /** An event takes effect only after both its journal append and its anchor entry are durable. */
2555
+ const commit = (event) => {
2556
+ if (!append(event)) return false;
2557
+ advanceAnchor();
2558
+ return true;
2559
+ };
2560
+ if (options.requireExisting && (!storage.exists(scopePath) || !storage.exists(indexPath) || !storage.exists(anchorPath))) fail("required retained history is missing");
2561
+ if (storage.exists(scopePath)) {
2562
+ if (storage.read(scopePath) !== scopeText) fail("resume changed its scope or allowances");
2563
+ if (!storage.read(indexPath)?.trim()) fail("dispatch history is missing or empty");
2564
+ if (!storage.read(anchorPath)?.trim()) fail("durable anchor is missing");
2565
+ } else {
2566
+ if (storage.exists(indexPath) || storage.exists(anchorPath)) fail("legacy history has no scope anchor; reconcile before migration");
2567
+ const created = storage.append(scopePath, scopeText, 0);
2568
+ if (created === void 0) {
2569
+ if (storage.read(scopePath) !== scopeText || !storage.read(indexPath)?.trim()) fail("scope initialization is busy; retry the same scope");
2570
+ } else if (created !== Buffer.byteLength(scopeText)) fail("storage returned an invalid scope revision");
2571
+ }
2572
+ refresh();
2573
+ if (!opened && !commit(header) && !opened) fail("history is busy; retry with the same run directory");
2574
+ const readResult = (id) => {
2575
+ const content = storage.read(resultPath(id));
2576
+ if (content === void 0) return void 0;
2577
+ const result = resultSchema.parse(JSON.parse(content));
2578
+ if (result.id !== id) return fail("retained result dispatch id mismatch");
2579
+ if (hashCanonical(result.value) !== result.receipt) return fail("retained result digest mismatch");
2580
+ const value = parse(result.value);
2581
+ if (hashCanonical(value) !== result.receipt) return fail("result decoder changed retained output");
2582
+ return {
2583
+ value,
2584
+ receipt: result.receipt
2585
+ };
2586
+ };
2587
+ const settle = (id, receipt) => {
2588
+ while (true) {
2589
+ const existing = calls.get(id);
2590
+ if (existing?.receipt) {
2591
+ if (existing.receipt !== receipt) fail("settled result digest mismatch");
2592
+ return;
2593
+ }
2594
+ if (!existing) fail("settlement has no pending dispatch");
2595
+ const previousRevision = revision;
2596
+ if (commit({
2597
+ kind: "settled",
2598
+ id,
2599
+ receipt
2600
+ })) return;
2601
+ if (revision === previousRevision) fail("settlement is busy; retained result awaits reconciliation");
2602
+ }
2603
+ };
2604
+ const load = (id, receipt) => {
2605
+ const result = readResult(id);
2606
+ if (!result) return fail("settled result is missing");
2607
+ if (result.receipt !== receipt) return fail("settled result digest mismatch");
2608
+ return {
2609
+ succeeded: true,
2610
+ value: result.value,
2611
+ dispatchId: id,
2612
+ receiptDigest: receipt,
2613
+ replayed: true
2614
+ };
2615
+ };
2616
+ return {
2617
+ /** The input binds all behavior-affecting request material, not just a caller-selected nonce. */
2618
+ run(request) {
2619
+ const { lane, dispatch, signal } = request;
2620
+ const id = hashCanonical([
2621
+ header.scope,
2622
+ lane,
2623
+ request.input
2624
+ ]);
2625
+ const pending = active.get(id);
2626
+ if (pending) return pending;
2627
+ const work = async () => {
2628
+ if (!limits.has(lane)) return fail("unknown allowance lane");
2629
+ refresh();
2630
+ while (true) {
2631
+ const existing = calls.get(id);
2632
+ if (existing) {
2633
+ if (existing.receipt) return load(id, existing.receipt);
2634
+ const result = readResult(id);
2635
+ if (!result) return {
2636
+ succeeded: false,
2637
+ reason: "outcome_unknown",
2638
+ dispatchId: id
2639
+ };
2640
+ settle(id, result.receipt);
2641
+ return {
2642
+ succeeded: true,
2643
+ value: result.value,
2644
+ dispatchId: id,
2645
+ receiptDigest: result.receipt,
2646
+ replayed: true
2647
+ };
2648
+ }
2649
+ signal?.throwIfAborted();
2650
+ if ((counts.get(lane) ?? 0) >= limits.get(lane)) return {
2651
+ succeeded: false,
2652
+ reason: "allowance_exhausted",
2653
+ dispatchId: id
2654
+ };
2655
+ const previousRevision = revision;
2656
+ if (commit({
2657
+ kind: "started",
2658
+ id,
2659
+ lane
2660
+ })) break;
2661
+ if (revision === previousRevision) return fail("history is busy; retry with the same input");
2662
+ }
2663
+ let value;
2664
+ try {
2665
+ signal?.throwIfAborted();
2666
+ value = parse(await dispatch());
2667
+ } catch (error) {
2668
+ return {
2669
+ succeeded: false,
2670
+ reason: "outcome_unknown",
2671
+ dispatchId: id,
2672
+ diagnostic: error instanceof Error ? error.message : String(error)
2673
+ };
2674
+ }
2675
+ const encoded = canonicalString(value);
2676
+ const decoded = JSON.parse(encoded);
2677
+ const retainedValue = parse(decoded);
2678
+ if (canonicalString(retainedValue) !== encoded) return fail("result decoder is not stable across serialization");
2679
+ const receipt = hashCanonical(decoded);
2680
+ const retainedResult = canonicalString({
2681
+ kind: "retained-dispatch-result-v1",
2682
+ id,
2683
+ receipt,
2684
+ value: decoded
2685
+ });
2686
+ const file = resultPath(id);
2687
+ if (storage.append(file, retainedResult, 0) === void 0 && storage.read(file) !== retainedResult) fail("cannot retain dispatch result");
2688
+ settle(id, receipt);
2689
+ return {
2690
+ succeeded: true,
2691
+ value: retainedValue,
2692
+ dispatchId: id,
2693
+ receiptDigest: receipt,
2694
+ replayed: false
2695
+ };
2696
+ };
2697
+ const promise = work();
2698
+ active.set(id, promise);
2699
+ promise.finally(() => {
2700
+ active.delete(id);
2701
+ }).catch(() => {});
2702
+ return promise;
2703
+ },
2704
+ /** Counts include uncertain dispatches, which keep their reservation. No pricing is inferred. */
2705
+ committed() {
2706
+ refresh();
2707
+ return new Map(header.limits.map(([lane]) => [lane, counts.get(lane) ?? 0]));
2708
+ }
2709
+ };
2710
+ }
2711
+ //#endregion
2369
2712
  //#region src/campaign/scenario-selection.ts
2370
2713
  const DEFAULT_SATURATION_CEILING = .999;
2371
2714
  /** Variance below this is treated as "every candidate scored the same". */
@@ -3091,6 +3434,6 @@ function resolveWorktreePath(surface, worktreeDir) {
3091
3434
  return verifyCodeSurface(surface, worktreeDir).path;
3092
3435
  }
3093
3436
  //#endregion
3094
- export { planEvalFixtureRun as A, LabeledScenarioStoreError as C, discoverEvalFixtures as D, neutralizationGate as E, buildTraceAnalystSurfaceDispatch as M, traceAnalystQualityJudge as N, loadEvalFixture as O, FsLabeledScenarioStore as S, rolloutArgumentDiff as T, scoreboardSummary as _, autoevalsScorerJudge as a, sequentialOptimizationMethod as b, selectDiscriminative as c, runProfileMatrixSegment as d, ProfileMatrixError as f, scoreUserStory as g, renderScoreboardMarkdown as h, verifyCodeSurface as i, analyzeCrossSurfaceInteractions as j, loadEvalFixtureScenarios as k, createProfileMatrixPlan as l, makePlaybackDispatch as m, gitWorktreeAdapter as n, phoenixEvaluatorJudge as o, runProfileMatrix as p, resolveWorktreePath as r, scoreDiscrimination as s, WorktreeAdapterError as t, finalizeProfileMatrix as u, userStoryScoreboard as v, classifyUngroundedLiterals as w, neutralizeText as x, scopedOptimizationMethod as y };
3437
+ export { loadEvalFixtureScenarios as A, FsLabeledScenarioStore as C, neutralizationGate as D, rolloutArgumentDiff as E, analyzeCrossSurfaceInteractions as M, buildTraceAnalystSurfaceDispatch as N, discoverEvalFixtures as O, traceAnalystQualityJudge as P, neutralizeText as S, classifyUngroundedLiterals as T, scoreUserStory as _, autoevalsScorerJudge as a, scopedOptimizationMethod as b, selectDiscriminative as c, finalizeProfileMatrix as d, runProfileMatrixSegment as f, renderScoreboardMarkdown as g, makePlaybackDispatch as h, verifyCodeSurface as i, planEvalFixtureRun as j, loadEvalFixture as k, createRetainedDispatch as l, runProfileMatrix as m, gitWorktreeAdapter as n, phoenixEvaluatorJudge as o, ProfileMatrixError as p, resolveWorktreePath as r, scoreDiscrimination as s, WorktreeAdapterError as t, createProfileMatrixPlan as u, scoreboardSummary as v, LabeledScenarioStoreError as w, sequentialOptimizationMethod as x, userStoryScoreboard as y };
3095
3438
 
3096
- //# sourceMappingURL=campaign-PmTWZi72.js.map
3439
+ //# sourceMappingURL=campaign-Btk1yFfw.js.map