@tangle-network/agent-eval 2.0.21 → 2.0.24
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 +61 -0
- package/dist/adapters/http.d.ts +2 -2
- package/dist/{agent-profile-CTneqKs4.d.ts → agent-profile-_A7aMA4F.d.ts} +4 -4
- package/dist/{agent-profile-CTneqKs4.d.ts.map → agent-profile-_A7aMA4F.d.ts.map} +1 -1
- package/dist/analyst/index.d.ts +10 -10
- package/dist/analyst/index.js +3 -3
- package/dist/{analyze-runs-ByEuSMUT.d.ts → analyze-runs-Izz_ZeWg.d.ts} +2 -2
- package/dist/{analyze-runs-ByEuSMUT.d.ts.map → analyze-runs-Izz_ZeWg.d.ts.map} +1 -1
- package/dist/app-grade/index.d.ts +3 -3
- package/dist/{benchmark-command-pmeFawvb.js → benchmark-command-Cad4mBro.js} +5 -5
- package/dist/{benchmark-command-pmeFawvb.js.map → benchmark-command-Cad4mBro.js.map} +1 -1
- package/dist/benchmarks/index.d.ts +4 -4
- package/dist/benchmarks/index.js +2 -2
- package/dist/campaign/index.d.ts +7 -7
- package/dist/campaign/index.js +6 -6
- package/dist/{campaign-DPB35MjP.js → campaign-VRqINMNu.js} +313 -8
- package/dist/campaign-VRqINMNu.js.map +1 -0
- package/dist/{campaign-evidence-CSb3y1ob.d.ts → campaign-evidence-Biq06MQ9.d.ts} +3 -3
- package/dist/{campaign-evidence-CSb3y1ob.d.ts.map → campaign-evidence-Biq06MQ9.d.ts.map} +1 -1
- package/dist/{campaign-evidence-71uzJMVY.js → campaign-evidence-tY94JzUe.js} +45 -2
- package/dist/campaign-evidence-tY94JzUe.js.map +1 -0
- package/dist/cli.js +2 -2
- package/dist/contract/index.d.ts +10 -10
- package/dist/contract/index.js +6 -6
- package/dist/{default-registry-CKAFLuJg.d.ts → default-registry-BKHpiYiW.d.ts} +6 -6
- package/dist/{default-registry-CKAFLuJg.d.ts.map → default-registry-BKHpiYiW.d.ts.map} +1 -1
- package/dist/{define-agent-eval-DyVma2pV.d.ts → define-agent-eval-BPg0IRdI.d.ts} +4 -4
- package/dist/{define-agent-eval-DyVma2pV.d.ts.map → define-agent-eval-BPg0IRdI.d.ts.map} +1 -1
- package/dist/{define-agent-eval-CBhYD7Gq.js → define-agent-eval-Dto1p8Pd.js} +3 -3
- package/dist/{define-agent-eval-CBhYD7Gq.js.map → define-agent-eval-Dto1p8Pd.js.map} +1 -1
- package/dist/diagnosis/index.d.ts +2 -2
- package/dist/{dspy-rlm-engine-DFgGrKzg.js → dspy-rlm-engine-DA4uW64o.js} +2 -2
- package/dist/{dspy-rlm-engine-DFgGrKzg.js.map → dspy-rlm-engine-DA4uW64o.js.map} +1 -1
- package/dist/{evaluation-BnRaBCKu.d.ts → evaluation-f-UIDwbL.d.ts} +4 -4
- package/dist/{evaluation-BnRaBCKu.d.ts.map → evaluation-f-UIDwbL.d.ts.map} +1 -1
- package/dist/evaluation.d.ts +1 -1
- package/dist/{exact-types-QwxMWchv.d.ts → exact-types-BIHqYBYf.d.ts} +2 -2
- package/dist/{exact-types-QwxMWchv.d.ts.map → exact-types-BIHqYBYf.d.ts.map} +1 -1
- package/dist/experiment/index.d.ts +1 -1
- package/dist/experiment/index.js +1 -1
- package/dist/{external-optimizer-process-DkOMkeHW.js → external-optimizer-process-BfRVOfBK.js} +2 -2
- package/dist/{external-optimizer-process-DkOMkeHW.js.map → external-optimizer-process-BfRVOfBK.js.map} +1 -1
- package/dist/{external-optimizer-subprocess-CFIiwHSE.js → external-optimizer-subprocess-D2_gmU9_.js} +8 -3
- package/dist/external-optimizer-subprocess-D2_gmU9_.js.map +1 -0
- package/dist/{feedback-trajectory-BkWAgoY0.d.ts → feedback-trajectory-CoQPmSJV.d.ts} +3 -3
- package/dist/{feedback-trajectory-BkWAgoY0.d.ts.map → feedback-trajectory-CoQPmSJV.d.ts.map} +1 -1
- package/dist/{findings-store-DcBkRLDk.js → findings-store-Daqo7ksI.js} +2 -2
- package/dist/{findings-store-DcBkRLDk.js.map → findings-store-Daqo7ksI.js.map} +1 -1
- package/dist/{index-D4SWfwQe.d.ts → index-0GNQgbji.d.ts} +18 -18
- package/dist/{index-D4SWfwQe.d.ts.map → index-0GNQgbji.d.ts.map} +1 -1
- package/dist/{index-DmsDwlPe.d.ts → index-4khf0Q7g.d.ts} +5 -5
- package/dist/{index-DmsDwlPe.d.ts.map → index-4khf0Q7g.d.ts.map} +1 -1
- package/dist/{index-BrALSxZU.d.ts → index-AUyYKA-x.d.ts} +9 -9
- package/dist/{index-BrALSxZU.d.ts.map → index-AUyYKA-x.d.ts.map} +1 -1
- package/dist/{index-CUpIEvoN.d.ts → index-DH_Jxu9p.d.ts} +2 -2
- package/dist/{index-CUpIEvoN.d.ts.map → index-DH_Jxu9p.d.ts.map} +1 -1
- package/dist/index.d.ts +18 -18
- package/dist/index.js +7 -7
- package/dist/{llm-judge-DRHTRT66.js → llm-judge-DyHMJrDb.js} +2 -2
- package/dist/{llm-judge-DRHTRT66.js.map → llm-judge-DyHMJrDb.js.map} +1 -1
- package/dist/{matrix-CHbTz1bP.d.ts → matrix-BtyN7jpb.d.ts} +2 -2
- package/dist/{matrix-CHbTz1bP.d.ts.map → matrix-BtyN7jpb.d.ts.map} +1 -1
- package/dist/multishot/golden/index.d.ts +1 -1
- package/dist/multishot/index.d.ts +7 -7
- package/dist/multishot/index.js +3 -3
- package/dist/openapi.json +1 -1
- package/dist/{optimization-method-B-NFaHom.js → optimization-method-4F1Npdy5.js} +2 -2
- package/dist/{optimization-method-B-NFaHom.js.map → optimization-method-4F1Npdy5.js.map} +1 -1
- package/dist/{prime-protocol-46WvqIIt.d.ts → prime-protocol-BRMk6dGI.d.ts} +2 -2
- package/dist/{prime-protocol-46WvqIIt.d.ts.map → prime-protocol-BRMk6dGI.d.ts.map} +1 -1
- package/dist/{registry-Bh1M9hrf.d.ts → registry-BeInzotS.d.ts} +3 -3
- package/dist/{registry-Bh1M9hrf.d.ts.map → registry-BeInzotS.d.ts.map} +1 -1
- package/dist/rl.d.ts +3 -3
- package/dist/rollout/index.d.ts +2 -2
- package/dist/{run-improvement-loop-E4Uec3my.d.ts → run-improvement-loop-B9m24xsg.d.ts} +62 -9
- package/dist/run-improvement-loop-B9m24xsg.d.ts.map +1 -0
- package/dist/search/index.d.ts +23 -8
- package/dist/search/index.d.ts.map +1 -1
- package/dist/search/index.js +73 -31
- package/dist/search/index.js.map +1 -1
- package/dist/{search-kernel-By0lhdoJ.d.ts → search-kernel-C2XOJHvk.d.ts} +2 -2
- package/dist/{search-kernel-By0lhdoJ.d.ts.map → search-kernel-C2XOJHvk.d.ts.map} +1 -1
- package/dist/{self-improve-CpmIIb57.d.ts → self-improve-CcL0tRSr.d.ts} +6 -6
- package/dist/{self-improve-CpmIIb57.d.ts.map → self-improve-CcL0tRSr.d.ts.map} +1 -1
- package/dist/{self-improve-Dm9PvLF2.js → self-improve-e5hx2cCo.js} +3 -3
- package/dist/{self-improve-Dm9PvLF2.js.map → self-improve-e5hx2cCo.js.map} +1 -1
- package/dist/{skillopt-optimization-method-QZoNbg57.js → skillopt-optimization-method-Qx0HYCHY.js} +984 -907
- package/dist/skillopt-optimization-method-Qx0HYCHY.js.map +1 -0
- package/dist/{store-tool-spans-B9zc0I1r.d.ts → store-tool-spans-wH8y7InB.d.ts} +3 -3
- package/dist/{store-tool-spans-B9zc0I1r.d.ts.map → store-tool-spans-wH8y7InB.d.ts.map} +1 -1
- package/dist/{systemone-Co2Lv810.d.ts → systemone-CpW1U2Uy.d.ts} +6 -6
- package/dist/{systemone-Co2Lv810.d.ts.map → systemone-CpW1U2Uy.d.ts.map} +1 -1
- package/dist/{systemone-review-CRJ-Zdfo.d.ts → systemone-review-DpAXWDkL.d.ts} +3 -3
- package/dist/{systemone-review-CRJ-Zdfo.d.ts.map → systemone-review-DpAXWDkL.d.ts.map} +1 -1
- package/dist/systemone.d.ts +3 -3
- package/dist/{tool-groups-BHX9G_oE.d.ts → tool-groups-SlnoQNyT.d.ts} +2 -2
- package/dist/tool-groups-SlnoQNyT.d.ts.map +1 -0
- package/dist/{trace-questions-DfaIVysB.d.ts → trace-questions-ybyF0B6N.d.ts} +2 -2
- package/dist/{trace-questions-DfaIVysB.d.ts.map → trace-questions-ybyF0B6N.d.ts.map} +1 -1
- package/dist/trace-repair/index.d.ts +1 -1
- package/dist/traces.d.ts +2 -2
- package/dist/{tree-DBvepwFt.js → tree-CK9h-xZF.js} +5 -4
- package/dist/tree-CK9h-xZF.js.map +1 -0
- package/dist/{types-CjrzKsOK.d.ts → types-B1W3v8dT.d.ts} +8 -8
- package/dist/{types-CjrzKsOK.d.ts.map → types-B1W3v8dT.d.ts.map} +1 -1
- package/dist/{types-CmHcpGl0.d.ts → types-BpIAnRCe.d.ts} +2 -2
- package/dist/{types-CmHcpGl0.d.ts.map → types-BpIAnRCe.d.ts.map} +1 -1
- package/dist/{types-Ci2r6el5.d.ts → types-DSU3qb_o.d.ts} +2 -2
- package/dist/{types-Ci2r6el5.d.ts.map → types-DSU3qb_o.d.ts.map} +1 -1
- package/dist/wire/index.d.ts +1 -1
- package/docs/campaign-proposers.md +31 -0
- package/docs/public-api.md +5 -4
- package/docs/search-ledger.md +4 -3
- package/package.json +1 -1
- package/dist/campaign-DPB35MjP.js.map +0 -1
- package/dist/campaign-evidence-71uzJMVY.js.map +0 -1
- package/dist/external-optimizer-subprocess-CFIiwHSE.js.map +0 -1
- package/dist/run-improvement-loop-E4Uec3my.d.ts.map +0 -1
- package/dist/skillopt-optimization-method-QZoNbg57.js.map +0 -1
- package/dist/tool-groups-BHX9G_oE.d.ts.map +0 -1
- package/dist/tree-DBvepwFt.js.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { c as RunSplitTag } from "../run-record-kuOr3BCF.js";
|
|
2
2
|
import { _ as StrategyChecker } from "../verdict-D_qiBQ6_.js";
|
|
3
|
-
import "../run-improvement-loop-
|
|
4
|
-
import { S as JudgeConfig, a as CampaignResult } from "../types-
|
|
5
|
-
import { _t as CampaignStorage } from "../search-kernel-
|
|
6
|
-
import { _ as defineBenchmarkResult, a as BenchmarkFamily, b as defineBenchmark, c as BenchmarkRuntimeHooks, d as BenchmarkTaskKind, f as deterministicSplit, g as benchmarkResultEvidenceDigest, h as benchmarkResult, i as BenchmarkEvaluation, l as BenchmarkScenario, m as BenchmarkResult, n as BenchmarkAdapter, o as BenchmarkLoadOptions, p as selectBenchmarkItems, r as BenchmarkDatasetItem, s as BenchmarkResponder, t as BENCHMARK_SPLIT_SEED, u as BenchmarkSource, v as BenchmarkDefinition, y as benchmarkDefinitionDigest } from "../types-
|
|
3
|
+
import "../run-improvement-loop-B9m24xsg.js";
|
|
4
|
+
import { S as JudgeConfig, a as CampaignResult } from "../types-BpIAnRCe.js";
|
|
5
|
+
import { _t as CampaignStorage } from "../search-kernel-C2XOJHvk.js";
|
|
6
|
+
import { _ as defineBenchmarkResult, a as BenchmarkFamily, b as defineBenchmark, c as BenchmarkRuntimeHooks, d as BenchmarkTaskKind, f as deterministicSplit, g as benchmarkResultEvidenceDigest, h as benchmarkResult, i as BenchmarkEvaluation, l as BenchmarkScenario, m as BenchmarkResult, n as BenchmarkAdapter, o as BenchmarkLoadOptions, p as selectBenchmarkItems, r as BenchmarkDatasetItem, s as BenchmarkResponder, t as BENCHMARK_SPLIT_SEED, u as BenchmarkSource, v as BenchmarkDefinition, y as benchmarkDefinitionDigest } from "../types-DSU3qb_o.js";
|
|
7
7
|
interface BenchmarkMetricCalibrationOptions<TPayload = unknown, TArtifact = string> {
|
|
8
8
|
adapter: BenchmarkAdapter<BenchmarkDatasetItem<TPayload>, TPayload, TArtifact>;
|
|
9
9
|
item: BenchmarkDatasetItem<TPayload>;
|
package/dist/benchmarks/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as __exportAll } from "../rolldown-runtime-BJohB4LM.js";
|
|
2
2
|
import { a as hashCanonical } from "../canonical-DKgL_Wby.js";
|
|
3
3
|
import { _ as mean, m as summarizeNumberSeries } from "../paired-tests-CXcD_B80.js";
|
|
4
|
-
import { Q as runCampaign } from "../optimization-method-
|
|
4
|
+
import { Q as runCampaign } from "../optimization-method-4F1Npdy5.js";
|
|
5
5
|
import { t as deepFreezeCanonicalJson } from "../deep-freeze-CK8-2W7p.js";
|
|
6
6
|
import { p as fsCampaignStorage } from "../finding-scope-BVQVcjz7.js";
|
|
7
7
|
import { c as redactText, o as redact } from "../redact-zp_ILC4l.js";
|
|
8
8
|
import { t as certificationEvidenceDigest } from "../verdict-5PVtsWT_.js";
|
|
9
9
|
import { r as VERIFICATION_STRATEGY_SOURCES } from "../verification-strategy-CYhDX1rE.js";
|
|
10
|
-
import "../campaign-
|
|
10
|
+
import "../campaign-VRqINMNu.js";
|
|
11
11
|
import { createHash, randomBytes, randomUUID } from "node:crypto";
|
|
12
12
|
import { z } from "zod";
|
|
13
13
|
import { createReadStream } from "node:fs";
|
package/dist/campaign/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { o as CostLedgerHandle, r as CostBreakdown, v as PendingCostCallView } from "../cost-ledger-CSP-OfFe.js";
|
|
2
|
-
import { S as makeProposalFinding, v as ProposalFinding, y as ProposalFindingOrigin } from "../types-
|
|
2
|
+
import { S as makeProposalFinding, v as ProposalFinding, y as ProposalFindingOrigin } from "../types-B1W3v8dT.js";
|
|
3
3
|
import { gt as SeriesDistribution } from "../index-Bk1XEkP7.js";
|
|
4
4
|
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 SearchTokenCounts, 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, nt as SearchTraceRef, o as SearchAudit, p as SearchCellStage, q as SearchSplits, r as SearchArtifactKind, rt as SearchUnknown, s as SearchBudget, t as NodeEstimate, tt as SearchTokenUnknownCause, u as SearchCellAllocatedEvent, v as SearchClaimTest, w as SearchEdgeRecordedEvent, x as SearchCostAccounting, y as SearchCloseReason, z as SearchOperationRecordedEvent } from "../search-ledger-types-DF-f031V.js";
|
|
5
|
-
import { $ as
|
|
6
|
-
import { A as LabeledScenarioWrite, B as ScoredSurfaceOutcome, C as JudgeDimension, D as LabeledScenarioSampleArgs, E as LabeledScenarioRecord, F as ProposeContext, G as SearchProposerView, H as SurfaceProposer, I as ProposedCandidate, J as searchProposerView, K as SearchSummaryOptions, L as RedactionStatus, M as OptimizerConfig, N as ParetoParent, O as LabeledScenarioSource, P as ProposalTrackContext, R as Scenario, S as JudgeConfig, T as LabelTrust, U as TraceSpan, V as SessionScript, W as isProposedCandidate, X as SearchStateView, Y as SearchState, Z as searchUnitScores, _ as GateDecision, a as CampaignResult, at as SearchCompletion, b as GenerationRecord, c as CampaignTraceWriter, ct as SearchOperation, d as DispatchContext, dt as SearchUnitScore, f as DispatchFn, ft as searchCellId, g as GateContribution, h as GateContext, i as CampaignCostMeter, it as SearchCell, j as MutableSurface, k as LabeledScenarioStore, l as CodeSurface, lt as SearchScoredCell, m as GateCheckStatus, mt as searchTaskSetDigest, n as CampaignArtifactWriter, o as CampaignScenarioIdentity, ot as SearchDecisionRecord, p as Gate, pt as searchNodeId, q as renderSearchSummary, r as CampaignCellResult, s as CampaignTokenUsage, st as SearchNode, t as CampaignAggregates, u as ComponentSurface, ut as SearchSpend, v as GateResult, w as JudgeScore, x as JudgeAggregate, y as GenerationCandidate, z as ScenarioAggregate } from "../types-
|
|
7
|
-
import { A as SequentialPairedGateOptions, C as heldoutSignificance, D as SequentialGateDecision, E as SequentialDecideOptions, G as EvidenceVector, H as AxisEvidence, J as PromotionObjective, K as ObjectiveSource, M as sequentialDecide, N as sequentialPairedGate, O as SequentialObservation, Q as paretoSignificanceGate, S as dimensionRegressions, T as SequentialDecideFn, U as AxisVerdict, W as BuildEvidenceVectorOptions, X as buildEvidenceVector, Y as PromotionPolicy, Z as paretoPolicy, at as powerPreflight, b as HeldoutSignificanceOptions, it as PowerPreflightOptions, j as SequentialStreamState, k as SequentialPairedGate, q as ParetoSignificanceGateOptions, rt as PowerPreflight, v as DimensionRegression, w as pairHoldout, x as PairedHoldout, y as HeldoutSignificance } from "../campaign-evidence-
|
|
8
|
-
import { $ as SearchRecorderOptions, A as estimateNode, At as PlanSearchClaimInput, Bt as AshaOptions, C as crowdedFrontierParent, Ct as SearchLedger, D as NodePosterior, Dt as parseSearchLedgerLine, E as EstimateNodeCellsInput, Et as openSearchLedger, Ft as decideSearchClaim, Gt as SearchUnitExtension, Ht as SearchAllocator, It as planSearchClaim, J as RecordSearchEdgeInput, Kt as asha, Lt as searchClaimDecision, M as searchCellSetDigest, Mt as SearchClaimDecision, N as searchEstimateMethod, Nt as SearchClaimPlan, O as SEARCH_ESTIMATOR, Ot as replaySearchLedgerText, P as searchPosterior, Pt as SearchClaimVerification, Q as SearchRecorder, Rt as searchClaimReserveUsd, S as beam, St as OpenSearchLedgerOptions, T as incumbentWithOperatorBandit, Tt as SearchLedgerTrustedHeadMode, Ut as SearchCellPlan, Vt as SearchAllocationView, Wt as SearchRungDecision, X as SearchLedgerBinding, Y as RegisterSearchNodeInput, Z as SearchOpening, _ as SearchExpansion, _t as CampaignStorage, a as SearchArtifactCodec, at as surfaceNode, b as SearchPolicyView, bt as inMemoryCampaignStorage, c as SearchExecutor, ct as SearchHistoryAuditSummary, d as SearchProposalRequest, dt as SearchHistoryPolicy, et as SearchRunIdentity, f as SearchProposalResult, ft as SearchHistoryReceipt, g as AideOptions, gt as verifySearchHistoryReceipt, h as SearchRunResult, ht as verifySearchHistoryArtifact, i as RunSearchOptions, it as surfaceDiff, j as estimateNodeFromCells, jt as SEARCH_CLAIM_RULE, k as SearchPosterior, kt as validateSearchLedgerEvent, l as SearchLane, lt as SearchHistoryCoverage, m as SearchProposerPort, mt as createSearchHistoryReceipt, n as searchDivergence, nt as developmentClaim, o as SearchCellResult, ot as CreateSearchHistoryReceiptInput, p as SearchProposedChild, pt as assertSearchHistoryMatchesState, q as AllocateSearchCellInput, qt as uniform, r as searchPolicyView, rt as searchEdgeId, s as SearchCellWork, st as SearchHistoryAdmissionOptions, t as runSearch, tt as SettleSearchCellInput, u as SearchProposalBlob, ut as SearchHistoryCoverageRow, v as SearchPolicy, vt as createRunCostLedger, w as incumbent, wt as SearchLedgerAppendResult, x as aide, xt as FileSearchLedger, y as SearchPolicyNode, yt as fsCampaignStorage, zt as verifySearchClaim } from "../search-kernel-
|
|
5
|
+
import { $ as LoopProvenanceBackend, $i as OpenAutoPrResult, $n as defaultProductionGate, $r as GepaCandidatePopulationSummary, $t as ProfileMatrixVerdict, A as skyDiscoverSolutionOptimizationMethod, Ai as CrossSurfaceInteractionTask, An as UngroundedLiteralReport, Ar as ExternalTextOptimizerResult, At as FinalizeProfileMatrixOptions, B as scoreDiscrimination, Bi as CrossSurfaceTaskRow, Bn as GepaOptimizationMethodConfig, Br as OptimizationPackageSource, Bt as ProfileDispatchFn, C as codeSurfaceIdentityMaterial, Ca as campaignCoverage, Ci as CrossSurfaceEligibility, Cn as sequentialOptimizationMethod, Cr as discoverEvalFixtures, Ct as ProfileMatrixRaceBatch, D as surfaceDispatchRef, Da as SearchLedgerError, Di as CrossSurfaceInteractionEffect, Dn as RolloutArgumentDiffOptions, Dr as externalTextOptimizationMethod, Dt as RaceProfileMatrixOptions, E as surfaceContentHash, Ea as campaignSplitDigestFromIdentities, Ei as CrossSurfaceInteractionAwareSelection, En as RolloutArgumentDiff, Er as planEvalFixtureRun, Et as ProfileMatrixRaceStanding, F as SingleRunLock, Fi as CrossSurfacePairwiseEntry, Fn as importExternalEvaluations, Fr as OptimizationMethodComposition, Ft as ProfileMatrixSegmentResult, G as RepeatReliability, Gn as OptimizerModelBudget, Gr as DescribeArtifact, Gt as runProfileMatrix, H as RetainedDispatchOptions, Hi as BuildTraceAnalystSurfaceDispatchOptions, Hn as GepaRunnerCommand, Hr as CampaignBreakdown, Ht as RunProfileMatrixOptions, I as SingleRunLockOptions, Ii as CrossSurfaceRankedSingle, In as importGepaPopulation, Ir as OptimizationMethodInput, It as RunProfileMatrixSegmentOptions, J as repeatReliability, Ji as ReferenceEquivalenceScenario, Jn as HeldOutGateOptions, Jr as ComparisonCost, K as RepeatReliabilityOptions, Ki as ReferenceEquivalenceJudgeOptions, Kn as NeutralizationGateOptions, Kr as campaignBreakdown, L as acquireSingleRunLock, Li as CrossSurfaceRelativeCost, Ln as GepaAdaptiveEngineRun, Lr as OptimizationMethodProvenance, Lt as createProfileMatrixPlan, M as SkillOptRunnerCommand, Mi as CrossSurfacePairCompatibility, Mn as GepaEvaluationImport, Mr as ExternalTextEvaluationResponse, Mt as ProfileMatrixCoverage, N as SkillOptTrainerConfig, Ni as CrossSurfacePairEvidence, Nn as GepaPopulationImport, Nr as decodeExternalTextCandidate, Nt as ProfileMatrixPlan, O as surfaceHash, Oa as SearchLedgerIntegrityError, Oi as CrossSurfaceInteractionPath, On as RolloutCall, Or as ExternalTextOptimizationMethodConfig, Ot as raceProfileMatrix, P as skillOptOptimizationMethod, Pi as CrossSurfacePairIncompatibilityReason, Pn as externalSurface, Pr as OptimizationMethod, Pt as ProfileMatrixRow, Q as LoopProvenanceArgsFromResult, Qi as OpenAutoPrOptions, Qn as DefaultProductionRewardHackingOptions, Qr as GepaCandidatePopulationCandidate, Qt as ProfileMatrixRunStability, R as DiscriminationScore, Ri as CrossSurfaceSelectionPolicy, Rn as GepaEngineOptions, Rr as OptimizationMethodResult, Rt as finalizeProfileMatrix, S as assertCodeSurfaceIdentity, Sa as assertCampaignDesign, Si as CrossSurfaceDistribution, Sn as scopedOptimizationMethod, Sr as PlanEvalFixtureRunOptions, St as analyzeProfileMatrix, T as renderSurfaceDiff, Ta as campaignSplitDigest, Ti as CrossSurfaceIneligibilityReason, Tn as FsLabeledScenarioStoreOptions, Tr as loadEvalFixtureScenarios, Tt as ProfileMatrixRaceResult, U as RetainedDispatchOutcome, Ui as TraceAnalystArtifact, Un as gepaOptimizationMethod, Ut as RunProfileMatrixResult, V as resolveRunDir, Vi as measureCampaignCost, Vn as GepaOptimizationRecipe, Vr as ArtifactEvidenceOptions, Vt as ProfileSummary, W as createRetainedDispatch, Wi as TraceAnalystScenario, Wn as OpenAICompatibleOptimizerModel, Wr as ContrastiveEvidencePolicy, Wt as ScenarioRollup, X as EmitLoopProvenanceArgs, Xi as LlmJudgeOptions, Xn as DefaultProductionGateCheck, Xr as costFromLedgerSummary, Xt as ProfileMatrixFamily, Y as BuildLoopProvenanceArgs, Yi as LlmJudgeDimension, Yn as heldOutGate, Yr as OptimizationTokenUsage, Z as EmitLoopProvenanceResult, Zi as llmJudge, Zn as DefaultProductionGateOptions, Zr as GepaCandidatePopulationArtifact, Zt as ProfileMatrixPairwiseShare, _ as PhoenixEvaluationResultLike, _a as FinalEvidenceUse, _i as CrossSurfaceCandidateOutcome, _n as CompareOptimizationMethodsOptions, _r as EvalFixtureLoadOptions, _t as ProfileMatrixPairedDifference, a as RunOptimizationOptions, aa as RunCampaignOptions, ai as ExternalOptimizerSubmittedCandidate, an as ScoreboardSummary, at as emitLoopProvenance, b as isTransientTransportFailure, ba as withFinalEvidenceSources, bi as CrossSurfaceComponentEvidence, bn as OptimizationMethodScore, br as EvalFixtureValidationMode, bt as ProfileMatrixReportOptions, c as CodeSurfaceVerification, ca as CampaignRunPlanCell, ci as AnalyzeCrossSurfaceInteractionsInput, cn as renderScoreboardMarkdown, ct as renderProfileMatrixReport, d as WorktreeAdapter, da as CacheIssueReason, di as CrossSurfaceAttemptCompleteness, dn as userStoryScoreboard, dt as ProfileMatrixCalibration, ei as GepaCandidateSelectionScore, en as PlaybackContext, et as LoopProvenanceCandidate, f as gitWorktreeAdapter, fa as CacheRead, fi as CrossSurfaceBestSingleSelection, ft as ProfileMatrixCaseDifficulty, g as AutoevalsScorerLike, ga as FinalEvidencePolicy, gi as CrossSurfaceCandidateEvidence, gr as EvalFixtureFile, gt as ProfileMatrixInterval, h as AutoevalsScoreLike, ha as cellCachePath, hi as CrossSurfaceCandidateComparison, hr as EvalFixture, ht as ProfileMatrixFactorEffect, i as PremeasuredOptimizationBaseline, ia as CampaignCellRetryPolicy, ii as ExternalOptimizerObservationSummary, in as ScoreboardRow, it as canonicalDigest, j as SkillOptOptimizationMethodConfig, ji as CrossSurfaceNaiveStackSelection, jn as ExternalSearchOptimizer, jr as ExternalOptimizationExample, jt as FinalizedProfileMatrixResult, k as SkyDiscoverSolutionMethodConfig, ki as CrossSurfaceInteractionReport, kn as ScoredRollout, kr as ExternalTextOptimizerContext, kt as CreateProfileMatrixPlanOptions, l as GitWorktreeAdapterOptions, la as PlanCampaignRunOptions, li as CrossSurfaceAdditionDecision, ln as scoreUserStory, lt as ProfileMatrixAnalysis, m as verifyCodeSurface, ma as buildCellSchedule, mi as CrossSurfaceCandidate, mr as composeGate, mt as ProfileMatrixErrorOverlap, n as RunImprovementLoopResult, na as runEval, ni as ExternalOptimizerExecutionSummary, nn as PlaybackStep, nt as LoopProvenanceOptimizationMethod, o as RunOptimizationResult, oa as runCampaign, oi as readExternalOptimizerObservationArtifact, on as UserStory, ot as PrismOptimizationMethodConfig, p as resolveWorktreePath, pa as CellScheduleSlot, pi as CrossSurfaceBootstrapPolicy, pt as ProfileMatrixCostAxis, q as ScenarioRepeatReliability, qn as neutralizationGate, qr as campaignMeanComposite, r as runImprovementLoop, ra as CampaignCellFailureReceipt, ri as ExternalOptimizerObservationArtifact, rn as ScoreboardRenderOptions, rt as LoopProvenanceRecord, s as runOptimization, sa as CampaignRunPlan, si as analyzeCrossSurfaceInteractions, sn as UserStoryVerdict, st as prismOptimizationMethod, t as RunImprovementLoopOptions, ta as RunEvalOptions, ti as readGepaCandidatePopulationArtifact, tn as PlaybackDriver, tt as LoopProvenanceEvidence, u as Worktree, ua as planCampaignRun, ui as CrossSurfaceAdditionRejectionReason, un as scoreboardSummary, ut as ProfileMatrixAxisSummary, v as PhoenixEvaluatorLike, va as captureFinalEvidencePolicy, vi as CrossSurfaceCandidateSummary, vn as OptimizationMethodComparison, vr as EvalFixtureRunPlan, vt as ProfileMatrixPower, w as componentSurfaceIdentityMaterial, wa as campaignScenarioIdentity, wi as CrossSurfaceEvidenceBreakdown, wn as neutralizeText, wr as loadEvalFixture, wt as ProfileMatrixRaceFinalRow, x as transientDispatchFailure, xa as CampaignCoverage, xi as CrossSurfaceCompositionStep, xn as compareOptimizationMethods, xr as LoadEvalFixtureScenariosOptions, xt as ProfileMatrixSliceCell, y as TransientFailureOptions, ya as prepareSearchFinalEvidence, yi as CrossSurfaceComponent, yn as OptimizationMethodPairwise, yr as EvalFixtureScenario, yt as ProfileMatrixProfileStats, z as ScenarioSignal, zi as CrossSurfaceSelections, zn as GepaEngineRun, zr as OptimizationMethodRunOptions, zt as runProfileMatrixSegment } from "../run-improvement-loop-B9m24xsg.js";
|
|
6
|
+
import { A as LabeledScenarioWrite, B as ScoredSurfaceOutcome, C as JudgeDimension, D as LabeledScenarioSampleArgs, E as LabeledScenarioRecord, F as ProposeContext, G as SearchProposerView, H as SurfaceProposer, I as ProposedCandidate, J as searchProposerView, K as SearchSummaryOptions, L as RedactionStatus, M as OptimizerConfig, N as ParetoParent, O as LabeledScenarioSource, P as ProposalTrackContext, R as Scenario, S as JudgeConfig, T as LabelTrust, U as TraceSpan, V as SessionScript, W as isProposedCandidate, X as SearchStateView, Y as SearchState, Z as searchUnitScores, _ as GateDecision, a as CampaignResult, at as SearchCompletion, b as GenerationRecord, c as CampaignTraceWriter, ct as SearchOperation, d as DispatchContext, dt as SearchUnitScore, f as DispatchFn, ft as searchCellId, g as GateContribution, h as GateContext, i as CampaignCostMeter, it as SearchCell, j as MutableSurface, k as LabeledScenarioStore, l as CodeSurface, lt as SearchScoredCell, m as GateCheckStatus, mt as searchTaskSetDigest, n as CampaignArtifactWriter, o as CampaignScenarioIdentity, ot as SearchDecisionRecord, p as Gate, pt as searchNodeId, q as renderSearchSummary, r as CampaignCellResult, s as CampaignTokenUsage, st as SearchNode, t as CampaignAggregates, u as ComponentSurface, ut as SearchSpend, v as GateResult, w as JudgeScore, x as JudgeAggregate, y as GenerationCandidate, z as ScenarioAggregate } from "../types-BpIAnRCe.js";
|
|
7
|
+
import { A as SequentialPairedGateOptions, C as heldoutSignificance, D as SequentialGateDecision, E as SequentialDecideOptions, G as EvidenceVector, H as AxisEvidence, J as PromotionObjective, K as ObjectiveSource, M as sequentialDecide, N as sequentialPairedGate, O as SequentialObservation, Q as paretoSignificanceGate, S as dimensionRegressions, T as SequentialDecideFn, U as AxisVerdict, W as BuildEvidenceVectorOptions, X as buildEvidenceVector, Y as PromotionPolicy, Z as paretoPolicy, at as powerPreflight, b as HeldoutSignificanceOptions, it as PowerPreflightOptions, j as SequentialStreamState, k as SequentialPairedGate, q as ParetoSignificanceGateOptions, rt as PowerPreflight, v as DimensionRegression, w as pairHoldout, x as PairedHoldout, y as HeldoutSignificance } from "../campaign-evidence-Biq06MQ9.js";
|
|
8
|
+
import { $ as SearchRecorderOptions, A as estimateNode, At as PlanSearchClaimInput, Bt as AshaOptions, C as crowdedFrontierParent, Ct as SearchLedger, D as NodePosterior, Dt as parseSearchLedgerLine, E as EstimateNodeCellsInput, Et as openSearchLedger, Ft as decideSearchClaim, Gt as SearchUnitExtension, Ht as SearchAllocator, It as planSearchClaim, J as RecordSearchEdgeInput, Kt as asha, Lt as searchClaimDecision, M as searchCellSetDigest, Mt as SearchClaimDecision, N as searchEstimateMethod, Nt as SearchClaimPlan, O as SEARCH_ESTIMATOR, Ot as replaySearchLedgerText, P as searchPosterior, Pt as SearchClaimVerification, Q as SearchRecorder, Rt as searchClaimReserveUsd, S as beam, St as OpenSearchLedgerOptions, T as incumbentWithOperatorBandit, Tt as SearchLedgerTrustedHeadMode, Ut as SearchCellPlan, Vt as SearchAllocationView, Wt as SearchRungDecision, X as SearchLedgerBinding, Y as RegisterSearchNodeInput, Z as SearchOpening, _ as SearchExpansion, _t as CampaignStorage, a as SearchArtifactCodec, at as surfaceNode, b as SearchPolicyView, bt as inMemoryCampaignStorage, c as SearchExecutor, ct as SearchHistoryAuditSummary, d as SearchProposalRequest, dt as SearchHistoryPolicy, et as SearchRunIdentity, f as SearchProposalResult, ft as SearchHistoryReceipt, g as AideOptions, gt as verifySearchHistoryReceipt, h as SearchRunResult, ht as verifySearchHistoryArtifact, i as RunSearchOptions, it as surfaceDiff, j as estimateNodeFromCells, jt as SEARCH_CLAIM_RULE, k as SearchPosterior, kt as validateSearchLedgerEvent, l as SearchLane, lt as SearchHistoryCoverage, m as SearchProposerPort, mt as createSearchHistoryReceipt, n as searchDivergence, nt as developmentClaim, o as SearchCellResult, ot as CreateSearchHistoryReceiptInput, p as SearchProposedChild, pt as assertSearchHistoryMatchesState, q as AllocateSearchCellInput, qt as uniform, r as searchPolicyView, rt as searchEdgeId, s as SearchCellWork, st as SearchHistoryAdmissionOptions, t as runSearch, tt as SettleSearchCellInput, u as SearchProposalBlob, ut as SearchHistoryCoverageRow, v as SearchPolicy, vt as createRunCostLedger, w as incumbent, wt as SearchLedgerAppendResult, x as aide, xt as FileSearchLedger, y as SearchPolicyNode, yt as fsCampaignStorage, zt as verifySearchClaim } from "../search-kernel-C2XOJHvk.js";
|
|
9
9
|
import { n as ModelTreatment, t as ModelComparison } from "../model-comparison-BHNL8Qrn.js";
|
|
10
10
|
import { a as HarnessScenario, i as HarnessReport, o as HarnessScope, r as HarnessExpectation, s as HarnessTiming, t as HarnessAssertion, u as runSandboxScenario } from "../sandbox-harness-K3LuyORm.js";
|
|
11
|
-
import { A as campaignCellMeasurement, C as ExternalOptimizerProcessLimits, D as ExternalTextCandidate, M as searchModelIdentity, N as searchProposalExecution, P as searchReceiptAccounting, S as ExternalOptimizerModelExecutionObservation, T as ExternalOptimizerRunnerCommand, _ as ExternalOptimizerEvaluationRefusalReason, b as ExternalOptimizerModelCallRequest, d as DEFAULT_EXTERNAL_OPTIMIZER_PROCESS_LIMITS, f as ExternalEvaluationMeasurement, g as ExternalOptimizerEvaluationObservation, h as ExternalOptimizerEndpointFormat, j as campaignCellSearchResult, k as CampaignCellMeasurement, m as ExternalOptimizerChatRequest, p as ExternalOptimizerCallbackLimits, u as DEFAULT_EXTERNAL_OPTIMIZER_CALLBACK_LIMITS, v as ExternalOptimizerModelBudget, x as ExternalOptimizerModelCallResult, y as ExternalOptimizerModelCall } from "../agent-profile-
|
|
12
|
-
export { type AideOptions, type AllocateSearchCellInput, type AnalyzeCrossSurfaceInteractionsInput, type ArtifactEvidenceOptions, 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 CampaignCellMeasurement, type CampaignCellResult, type CampaignCellRetryPolicy, type CampaignCostMeter, type CampaignCoverage, 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 CostBreakdown, 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 DescribeArtifact, 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 ExternalEvaluationMeasurement, 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, 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 HarnessAssertion, type HarnessExpectation, type HarnessReport, type HarnessScenario, type HarnessScope, type HarnessTiming, type HeldOutGateOptions, type HeldoutSignificance, type HeldoutSignificanceOptions, type JudgeAggregate, type JudgeConfig, type JudgeDimension, type JudgeScore, type LabelTrust, type LabeledScenarioRecord, type LabeledScenarioSampleArgs, type LabeledScenarioSource, type LabeledScenarioStore, type LabeledScenarioWrite, type LlmJudgeDimension, type LlmJudgeOptions, type LoadEvalFixtureScenariosOptions, type LoopProvenanceArgsFromResult, type LoopProvenanceBackend, type LoopProvenanceCandidate, type LoopProvenanceEvidence, type LoopProvenanceOptimizationMethod, type LoopProvenanceRecord, type ModelComparison, type ModelTreatment, 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 ProfileMatrixAnalysis, type ProfileMatrixAxisSummary, type ProfileMatrixCalibration, type ProfileMatrixCaseDifficulty, type ProfileMatrixCostAxis, type ProfileMatrixCoverage, type ProfileMatrixErrorOverlap, type ProfileMatrixFactorEffect, type ProfileMatrixFamily, type ProfileMatrixInterval, type ProfileMatrixPairedDifference, type ProfileMatrixPairwiseShare, type ProfileMatrixPlan, type ProfileMatrixPower, type ProfileMatrixProfileStats, type ProfileMatrixRaceBatch, type ProfileMatrixRaceFinalRow, type ProfileMatrixRaceResult, type ProfileMatrixRaceStanding, type ProfileMatrixReportOptions, type ProfileMatrixRow, type ProfileMatrixRunStability, type ProfileMatrixSegmentResult, type ProfileMatrixSliceCell, type ProfileMatrixVerdict, type ProfileSummary, type PromotionObjective, type PromotionPolicy, type ProposalFinding, type ProposalFindingOrigin, type ProposalTrackContext, type ProposeContext, type ProposedCandidate, type RaceProfileMatrixOptions, type RecordSearchEdgeInput, type RedactionStatus, type ReferenceEquivalenceJudgeOptions, type ReferenceEquivalenceScenario, type RegisterSearchNodeInput, type RepeatReliability, type RepeatReliabilityOptions, 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_LEDGER_SCHEMA, type Scenario, type ScenarioAggregate, type ScenarioRepeatReliability, 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, type SearchLane, type SearchLedger, type SearchLedgerAppendResult, type SearchLedgerBinding, 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 SearchTokenCounts, type SearchTokenUnknownCause, type SearchTraceRef, type SearchUnitExtension, type SearchUnitScore, type SearchUnknown, type SequentialDecideFn, type SequentialDecideOptions, type SequentialGateDecision, 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, acquireSingleRunLock, aide, analyzeCrossSurfaceInteractions, analyzeProfileMatrix, asha, assertCampaignDesign, assertCodeSurfaceIdentity, assertSearchHistoryMatchesState, beam, buildCellSchedule, buildEvidenceVector, campaignBreakdown, campaignCellMeasurement, campaignCellSearchResult, campaignCoverage, campaignMeanComposite, campaignScenarioIdentity, campaignSplitDigest, campaignSplitDigestFromIdentities, canonicalDigest, captureFinalEvidencePolicy, cellCachePath, codeSurfaceIdentityMaterial, compareOptimizationMethods, componentSurfaceIdentityMaterial, composeGate, costFromLedgerSummary, createProfileMatrixPlan, createRetainedDispatch, createRunCostLedger, createSearchHistoryReceipt, crowdedFrontierParent, decideSearchClaim, decodeExternalTextCandidate, defaultProductionGate, developmentClaim, dimensionRegressions, discoverEvalFixtures, emitLoopProvenance, estimateNode, estimateNodeFromCells, externalSurface, externalTextOptimizationMethod, finalizeProfileMatrix, fsCampaignStorage, gepaOptimizationMethod, gitWorktreeAdapter, heldOutGate, heldoutSignificance, importExternalEvaluations, importGepaPopulation, inMemoryCampaignStorage, incumbent, incumbentWithOperatorBandit, isProposedCandidate, isTransientTransportFailure, llmJudge, loadEvalFixture, loadEvalFixtureScenarios, makeProposalFinding, measureCampaignCost, neutralizationGate, neutralizeText, openSearchLedger, pairHoldout, paretoPolicy, paretoSignificanceGate, parseSearchLedgerLine, planCampaignRun, planEvalFixtureRun, planSearchClaim, powerPreflight, prepareSearchFinalEvidence, raceProfileMatrix, readExternalOptimizerObservationArtifact, readGepaCandidatePopulationArtifact, renderProfileMatrixReport, renderScoreboardMarkdown, renderSearchSummary, renderSurfaceDiff, repeatReliability, replaySearchLedgerText, resolveRunDir, resolveWorktreePath, runCampaign, runEval, runImprovementLoop, runOptimization, runProfileMatrix, runProfileMatrixSegment, runSandboxScenario, runSearch, scopedOptimizationMethod, scoreDiscrimination, scoreUserStory, scoreboardSummary, searchCellId, searchCellSetDigest, searchClaimDecision, searchClaimReserveUsd, searchDivergence, searchEdgeId, searchEstimateMethod, searchModelIdentity, searchNodeId, searchPolicyView, searchPosterior, searchProposalExecution, searchProposerView, searchReceiptAccounting, searchTaskSetDigest, searchUnitScores, sequentialDecide, sequentialOptimizationMethod, sequentialPairedGate, skillOptOptimizationMethod, surfaceContentHash, surfaceDiff, surfaceDispatchRef, surfaceHash, surfaceNode, transientDispatchFailure, uniform, userStoryScoreboard, validateSearchLedgerEvent, verifyCodeSurface, verifySearchClaim, verifySearchHistoryArtifact, verifySearchHistoryReceipt, withFinalEvidenceSources };
|
|
11
|
+
import { A as campaignCellMeasurement, C as ExternalOptimizerProcessLimits, D as ExternalTextCandidate, M as searchModelIdentity, N as searchProposalExecution, P as searchReceiptAccounting, S as ExternalOptimizerModelExecutionObservation, T as ExternalOptimizerRunnerCommand, _ as ExternalOptimizerEvaluationRefusalReason, b as ExternalOptimizerModelCallRequest, d as DEFAULT_EXTERNAL_OPTIMIZER_PROCESS_LIMITS, f as ExternalEvaluationMeasurement, g as ExternalOptimizerEvaluationObservation, h as ExternalOptimizerEndpointFormat, j as campaignCellSearchResult, k as CampaignCellMeasurement, m as ExternalOptimizerChatRequest, p as ExternalOptimizerCallbackLimits, u as DEFAULT_EXTERNAL_OPTIMIZER_CALLBACK_LIMITS, v as ExternalOptimizerModelBudget, x as ExternalOptimizerModelCallResult, y as ExternalOptimizerModelCall } from "../agent-profile-_A7aMA4F.js";
|
|
12
|
+
export { type AideOptions, type AllocateSearchCellInput, type AnalyzeCrossSurfaceInteractionsInput, type ArtifactEvidenceOptions, 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 CampaignCellMeasurement, type CampaignCellResult, type CampaignCellRetryPolicy, type CampaignCostMeter, type CampaignCoverage, 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 ContrastiveEvidencePolicy, type CostBreakdown, 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 DescribeArtifact, 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 ExternalEvaluationMeasurement, 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, 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 HarnessAssertion, type HarnessExpectation, type HarnessReport, type HarnessScenario, type HarnessScope, type HarnessTiming, type HeldOutGateOptions, type HeldoutSignificance, type HeldoutSignificanceOptions, type JudgeAggregate, type JudgeConfig, type JudgeDimension, type JudgeScore, type LabelTrust, type LabeledScenarioRecord, type LabeledScenarioSampleArgs, type LabeledScenarioSource, type LabeledScenarioStore, type LabeledScenarioWrite, type LlmJudgeDimension, type LlmJudgeOptions, type LoadEvalFixtureScenariosOptions, type LoopProvenanceArgsFromResult, type LoopProvenanceBackend, type LoopProvenanceCandidate, type LoopProvenanceEvidence, type LoopProvenanceOptimizationMethod, type LoopProvenanceRecord, type ModelComparison, type ModelTreatment, 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 PrismOptimizationMethodConfig, type ProfileDispatchFn, type ProfileMatrixAnalysis, type ProfileMatrixAxisSummary, type ProfileMatrixCalibration, type ProfileMatrixCaseDifficulty, type ProfileMatrixCostAxis, type ProfileMatrixCoverage, type ProfileMatrixErrorOverlap, type ProfileMatrixFactorEffect, type ProfileMatrixFamily, type ProfileMatrixInterval, type ProfileMatrixPairedDifference, type ProfileMatrixPairwiseShare, type ProfileMatrixPlan, type ProfileMatrixPower, type ProfileMatrixProfileStats, type ProfileMatrixRaceBatch, type ProfileMatrixRaceFinalRow, type ProfileMatrixRaceResult, type ProfileMatrixRaceStanding, type ProfileMatrixReportOptions, type ProfileMatrixRow, type ProfileMatrixRunStability, type ProfileMatrixSegmentResult, type ProfileMatrixSliceCell, type ProfileMatrixVerdict, type ProfileSummary, type PromotionObjective, type PromotionPolicy, type ProposalFinding, type ProposalFindingOrigin, type ProposalTrackContext, type ProposeContext, type ProposedCandidate, type RaceProfileMatrixOptions, type RecordSearchEdgeInput, type RedactionStatus, type ReferenceEquivalenceJudgeOptions, type ReferenceEquivalenceScenario, type RegisterSearchNodeInput, type RepeatReliability, type RepeatReliabilityOptions, 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_LEDGER_SCHEMA, type Scenario, type ScenarioAggregate, type ScenarioRepeatReliability, 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, type SearchLane, type SearchLedger, type SearchLedgerAppendResult, type SearchLedgerBinding, 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 SearchTokenCounts, type SearchTokenUnknownCause, type SearchTraceRef, type SearchUnitExtension, type SearchUnitScore, type SearchUnknown, type SequentialDecideFn, type SequentialDecideOptions, type SequentialGateDecision, 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 SkyDiscoverSolutionMethodConfig, type SurfaceProposer, type TraceAnalystArtifact, type TraceAnalystScenario, type TraceSpan, type TransientFailureOptions, type UngroundedLiteralReport, type UserStory, type UserStoryVerdict, type Worktree, type WorktreeAdapter, acquireSingleRunLock, aide, analyzeCrossSurfaceInteractions, analyzeProfileMatrix, asha, assertCampaignDesign, assertCodeSurfaceIdentity, assertSearchHistoryMatchesState, beam, buildCellSchedule, buildEvidenceVector, campaignBreakdown, campaignCellMeasurement, campaignCellSearchResult, campaignCoverage, campaignMeanComposite, campaignScenarioIdentity, campaignSplitDigest, campaignSplitDigestFromIdentities, canonicalDigest, captureFinalEvidencePolicy, cellCachePath, codeSurfaceIdentityMaterial, compareOptimizationMethods, componentSurfaceIdentityMaterial, composeGate, costFromLedgerSummary, createProfileMatrixPlan, createRetainedDispatch, createRunCostLedger, createSearchHistoryReceipt, crowdedFrontierParent, decideSearchClaim, decodeExternalTextCandidate, defaultProductionGate, developmentClaim, dimensionRegressions, discoverEvalFixtures, emitLoopProvenance, estimateNode, estimateNodeFromCells, externalSurface, externalTextOptimizationMethod, finalizeProfileMatrix, fsCampaignStorage, gepaOptimizationMethod, gitWorktreeAdapter, heldOutGate, heldoutSignificance, importExternalEvaluations, importGepaPopulation, inMemoryCampaignStorage, incumbent, incumbentWithOperatorBandit, isProposedCandidate, isTransientTransportFailure, llmJudge, loadEvalFixture, loadEvalFixtureScenarios, makeProposalFinding, measureCampaignCost, neutralizationGate, neutralizeText, openSearchLedger, pairHoldout, paretoPolicy, paretoSignificanceGate, parseSearchLedgerLine, planCampaignRun, planEvalFixtureRun, planSearchClaim, powerPreflight, prepareSearchFinalEvidence, prismOptimizationMethod, raceProfileMatrix, readExternalOptimizerObservationArtifact, readGepaCandidatePopulationArtifact, renderProfileMatrixReport, renderScoreboardMarkdown, renderSearchSummary, renderSurfaceDiff, repeatReliability, replaySearchLedgerText, resolveRunDir, resolveWorktreePath, runCampaign, runEval, runImprovementLoop, runOptimization, runProfileMatrix, runProfileMatrixSegment, runSandboxScenario, runSearch, scopedOptimizationMethod, scoreDiscrimination, scoreUserStory, scoreboardSummary, searchCellId, searchCellSetDigest, searchClaimDecision, searchClaimReserveUsd, searchDivergence, searchEdgeId, searchEstimateMethod, searchModelIdentity, searchNodeId, searchPolicyView, searchPosterior, searchProposalExecution, searchProposerView, searchReceiptAccounting, searchTaskSetDigest, searchUnitScores, sequentialDecide, sequentialOptimizationMethod, sequentialPairedGate, skillOptOptimizationMethod, skyDiscoverSolutionOptimizationMethod, surfaceContentHash, surfaceDiff, surfaceDispatchRef, surfaceHash, surfaceNode, transientDispatchFailure, uniform, userStoryScoreboard, validateSearchLedgerEvent, verifyCodeSurface, verifySearchClaim, verifySearchHistoryArtifact, verifySearchHistoryReceipt, withFinalEvidenceSources };
|
package/dist/campaign/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { a as heldoutSignificance, i as dimensionRegressions, o as pairHoldout } from "../statistical-heldout-CL_7mI5C.js";
|
|
2
|
-
import { $ as planCampaignRun, A as searchReceiptAccounting, C as createSearchHistoryReceipt, D as campaignCellSearchResult, E as campaignCellMeasurement, K as captureFinalEvidencePolicy, M as uniform, O as searchModelIdentity, Q as runCampaign, R as defaultProductionGate, S as assertSearchHistoryMatchesState, T as verifySearchHistoryReceipt, Y as prepareSearchFinalEvidence, Z as withFinalEvidenceSources, _ as developmentClaim, b as surfaceNode, c as runImprovementLoop, d as aide, et as resolveRunDir, f as beam, g as SearchRecorder, h as incumbentWithOperatorBandit, i as readGepaCandidatePopulationArtifact, j as asha, k as searchProposalExecution, l as runOptimization, m as incumbent, nt as buildCellSchedule, o as costFromLedgerSummary, p as crowdedFrontierParent, rt as cellCachePath, u as isProposedCandidate, v as searchEdgeId, w as verifySearchHistoryArtifact, y as surfaceDiff } from "../optimization-method-
|
|
3
|
-
import {
|
|
2
|
+
import { $ as planCampaignRun, A as searchReceiptAccounting, C as createSearchHistoryReceipt, D as campaignCellSearchResult, E as campaignCellMeasurement, K as captureFinalEvidencePolicy, M as uniform, O as searchModelIdentity, Q as runCampaign, R as defaultProductionGate, S as assertSearchHistoryMatchesState, T as verifySearchHistoryReceipt, Y as prepareSearchFinalEvidence, Z as withFinalEvidenceSources, _ as developmentClaim, b as surfaceNode, c as runImprovementLoop, d as aide, et as resolveRunDir, f as beam, g as SearchRecorder, h as incumbentWithOperatorBandit, i as readGepaCandidatePopulationArtifact, j as asha, k as searchProposalExecution, l as runOptimization, m as incumbent, nt as buildCellSchedule, o as costFromLedgerSummary, p as crowdedFrontierParent, rt as cellCachePath, u as isProposedCandidate, v as searchEdgeId, w as verifySearchHistoryArtifact, y as surfaceDiff } from "../optimization-method-4F1Npdy5.js";
|
|
3
|
+
import { A as assertCampaignDesign, F as campaignSplitDigest, I as campaignSplitDigestFromIdentities, N as campaignCoverage, P as campaignScenarioIdentity, S as powerPreflight, f as campaignBreakdown, h as campaignMeanComposite, l as canonicalDigest, u as emitLoopProvenance } from "../campaign-evidence-tY94JzUe.js";
|
|
4
4
|
import { a as SearchLedgerError, o as SearchLedgerIntegrityError } from "../search-ledger-file-QuIbgz6b.js";
|
|
5
5
|
import { f as createRunCostLedger, m as inMemoryCampaignStorage, p as fsCampaignStorage } from "../finding-scope-BVQVcjz7.js";
|
|
6
|
-
import { n as isTransientTransportFailure, o as runEval, r as transientDispatchFailure, t as llmJudge } from "../llm-judge-
|
|
6
|
+
import { n as isTransientTransportFailure, o as runEval, r as transientDispatchFailure, t as llmJudge } from "../llm-judge-DyHMJrDb.js";
|
|
7
7
|
import { a as componentSurfaceIdentityMaterial, c as surfaceDispatchRef, i as codeSurfaceIdentityMaterial, l as surfaceHash, o as renderSurfaceDiff, r as assertCodeSurfaceIdentity, s as surfaceContentHash } from "../json-recovery-BRUCeQxo.js";
|
|
8
8
|
import { a as validateSearchLedgerEvent, c as SearchStateView, d as searchNodeId, f as searchTaskSetDigest, i as replaySearchLedgerText, l as searchUnitScores, n as openSearchLedger, o as SEARCH_LEDGER_SCHEMA, r as parseSearchLedgerLine, s as SearchState, t as FileSearchLedger, u as searchCellId } from "../search-ledger-C7DywY8N.js";
|
|
9
9
|
import { _ as estimateNode, b as searchEstimateMethod, d as decideSearchClaim, f as planSearchClaim, g as SEARCH_ESTIMATOR, h as verifySearchClaim, m as searchClaimReserveUsd, n as searchDivergence, p as searchClaimDecision, r as searchPolicyView, t as runSearch, u as SEARCH_CLAIM_RULE, v as estimateNodeFromCells, x as searchPosterior, y as searchCellSetDigest } from "../search-kernel-DezUrquk.js";
|
|
@@ -12,8 +12,8 @@ import { n as DEFAULT_EXTERNAL_OPTIMIZER_PROCESS_LIMITS, t as DEFAULT_EXTERNAL_O
|
|
|
12
12
|
import { t as acquireSingleRunLock } from "../single-run-lock-BSKsoeQF.js";
|
|
13
13
|
import { n as searchProposerView, t as renderSearchSummary } from "../search-summary-DOhRouoT.js";
|
|
14
14
|
import { n as runSandboxScenario } from "../sandbox-harness-CzRlzJ5y.js";
|
|
15
|
-
import { C as
|
|
16
|
-
import {
|
|
15
|
+
import { C as neutralizationGate, D as planEvalFixtureRun, E as loadEvalFixtureScenarios, O as analyzeCrossSurfaceInteractions, S as neutralizeText, T as loadEvalFixture, _ as scoreUserStory, a as scoreDiscrimination, b as scopedOptimizationMethod, c as prismOptimizationMethod, d as finalizeProfileMatrix, f as runProfileMatrixSegment, g as renderScoreboardMarkdown, h as analyzeProfileMatrix, i as skyDiscoverSolutionOptimizationMethod, k as measureCampaignCost, l as raceProfileMatrix, m as renderProfileMatrixReport, n as resolveWorktreePath, o as createRetainedDispatch, p as runProfileMatrix, r as verifyCodeSurface, s as repeatReliability, t as gitWorktreeAdapter, u as createProfileMatrixPlan, v as scoreboardSummary, w as discoverEvalFixtures, x as sequentialOptimizationMethod, y as userStoryScoreboard } from "../campaign-VRqINMNu.js";
|
|
16
|
+
import { _ as readExternalOptimizerObservationArtifact, c as heldOutGate, d as externalSurface, f as importExternalEvaluations, l as composeGate, m as decodeExternalTextCandidate, n as compareOptimizationMethods, p as importGepaPopulation, r as gepaOptimizationMethod, t as skillOptOptimizationMethod, u as externalTextOptimizationMethod } from "../skillopt-optimization-method-Qx0HYCHY.js";
|
|
17
17
|
import { n as paretoPolicy, r as paretoSignificanceGate, t as buildEvidenceVector } from "../promotion-policy-BgI7PsQn.js";
|
|
18
18
|
import { i as sequentialPairedGate, r as sequentialDecide } from "../power-COie_o6E.js";
|
|
19
|
-
export { DEFAULT_EXTERNAL_OPTIMIZER_CALLBACK_LIMITS, DEFAULT_EXTERNAL_OPTIMIZER_PROCESS_LIMITS, FileSearchLedger, SEARCH_CLAIM_RULE, SEARCH_ESTIMATOR, SEARCH_LEDGER_SCHEMA, SearchLedgerError, SearchLedgerIntegrityError, SearchRecorder, SearchState, SearchStateView, acquireSingleRunLock, aide, analyzeCrossSurfaceInteractions, analyzeProfileMatrix, asha, assertCampaignDesign, assertCodeSurfaceIdentity, assertSearchHistoryMatchesState, beam, buildCellSchedule, buildEvidenceVector, campaignBreakdown, campaignCellMeasurement, campaignCellSearchResult, campaignCoverage, campaignMeanComposite, campaignScenarioIdentity, campaignSplitDigest, campaignSplitDigestFromIdentities, canonicalDigest, captureFinalEvidencePolicy, cellCachePath, codeSurfaceIdentityMaterial, compareOptimizationMethods, componentSurfaceIdentityMaterial, composeGate, costFromLedgerSummary, createProfileMatrixPlan, createRetainedDispatch, createRunCostLedger, createSearchHistoryReceipt, crowdedFrontierParent, decideSearchClaim, decodeExternalTextCandidate, defaultProductionGate, developmentClaim, dimensionRegressions, discoverEvalFixtures, emitLoopProvenance, estimateNode, estimateNodeFromCells, externalSurface, externalTextOptimizationMethod, finalizeProfileMatrix, fsCampaignStorage, gepaOptimizationMethod, gitWorktreeAdapter, heldOutGate, heldoutSignificance, importExternalEvaluations, importGepaPopulation, inMemoryCampaignStorage, incumbent, incumbentWithOperatorBandit, isProposedCandidate, isTransientTransportFailure, llmJudge, loadEvalFixture, loadEvalFixtureScenarios, makeProposalFinding, measureCampaignCost, neutralizationGate, neutralizeText, openSearchLedger, pairHoldout, paretoPolicy, paretoSignificanceGate, parseSearchLedgerLine, planCampaignRun, planEvalFixtureRun, planSearchClaim, powerPreflight, prepareSearchFinalEvidence, raceProfileMatrix, readExternalOptimizerObservationArtifact, readGepaCandidatePopulationArtifact, renderProfileMatrixReport, renderScoreboardMarkdown, renderSearchSummary, renderSurfaceDiff, repeatReliability, replaySearchLedgerText, resolveRunDir, resolveWorktreePath, runCampaign, runEval, runImprovementLoop, runOptimization, runProfileMatrix, runProfileMatrixSegment, runSandboxScenario, runSearch, scopedOptimizationMethod, scoreDiscrimination, scoreUserStory, scoreboardSummary, searchCellId, searchCellSetDigest, searchClaimDecision, searchClaimReserveUsd, searchDivergence, searchEdgeId, searchEstimateMethod, searchModelIdentity, searchNodeId, searchPolicyView, searchPosterior, searchProposalExecution, searchProposerView, searchReceiptAccounting, searchTaskSetDigest, searchUnitScores, sequentialDecide, sequentialOptimizationMethod, sequentialPairedGate, skillOptOptimizationMethod, surfaceContentHash, surfaceDiff, surfaceDispatchRef, surfaceHash, surfaceNode, transientDispatchFailure, uniform, userStoryScoreboard, validateSearchLedgerEvent, verifyCodeSurface, verifySearchClaim, verifySearchHistoryArtifact, verifySearchHistoryReceipt, withFinalEvidenceSources };
|
|
19
|
+
export { DEFAULT_EXTERNAL_OPTIMIZER_CALLBACK_LIMITS, DEFAULT_EXTERNAL_OPTIMIZER_PROCESS_LIMITS, FileSearchLedger, SEARCH_CLAIM_RULE, SEARCH_ESTIMATOR, SEARCH_LEDGER_SCHEMA, SearchLedgerError, SearchLedgerIntegrityError, SearchRecorder, SearchState, SearchStateView, acquireSingleRunLock, aide, analyzeCrossSurfaceInteractions, analyzeProfileMatrix, asha, assertCampaignDesign, assertCodeSurfaceIdentity, assertSearchHistoryMatchesState, beam, buildCellSchedule, buildEvidenceVector, campaignBreakdown, campaignCellMeasurement, campaignCellSearchResult, campaignCoverage, campaignMeanComposite, campaignScenarioIdentity, campaignSplitDigest, campaignSplitDigestFromIdentities, canonicalDigest, captureFinalEvidencePolicy, cellCachePath, codeSurfaceIdentityMaterial, compareOptimizationMethods, componentSurfaceIdentityMaterial, composeGate, costFromLedgerSummary, createProfileMatrixPlan, createRetainedDispatch, createRunCostLedger, createSearchHistoryReceipt, crowdedFrontierParent, decideSearchClaim, decodeExternalTextCandidate, defaultProductionGate, developmentClaim, dimensionRegressions, discoverEvalFixtures, emitLoopProvenance, estimateNode, estimateNodeFromCells, externalSurface, externalTextOptimizationMethod, finalizeProfileMatrix, fsCampaignStorage, gepaOptimizationMethod, gitWorktreeAdapter, heldOutGate, heldoutSignificance, importExternalEvaluations, importGepaPopulation, inMemoryCampaignStorage, incumbent, incumbentWithOperatorBandit, isProposedCandidate, isTransientTransportFailure, llmJudge, loadEvalFixture, loadEvalFixtureScenarios, makeProposalFinding, measureCampaignCost, neutralizationGate, neutralizeText, openSearchLedger, pairHoldout, paretoPolicy, paretoSignificanceGate, parseSearchLedgerLine, planCampaignRun, planEvalFixtureRun, planSearchClaim, powerPreflight, prepareSearchFinalEvidence, prismOptimizationMethod, raceProfileMatrix, readExternalOptimizerObservationArtifact, readGepaCandidatePopulationArtifact, renderProfileMatrixReport, renderScoreboardMarkdown, renderSearchSummary, renderSurfaceDiff, repeatReliability, replaySearchLedgerText, resolveRunDir, resolveWorktreePath, runCampaign, runEval, runImprovementLoop, runOptimization, runProfileMatrix, runProfileMatrixSegment, runSandboxScenario, runSearch, scopedOptimizationMethod, scoreDiscrimination, scoreUserStory, scoreboardSummary, searchCellId, searchCellSetDigest, searchClaimDecision, searchClaimReserveUsd, searchDivergence, searchEdgeId, searchEstimateMethod, searchModelIdentity, searchNodeId, searchPolicyView, searchPosterior, searchProposalExecution, searchProposerView, searchReceiptAccounting, searchTaskSetDigest, searchUnitScores, sequentialDecide, sequentialOptimizationMethod, sequentialPairedGate, skillOptOptimizationMethod, skyDiscoverSolutionOptimizationMethod, surfaceContentHash, surfaceDiff, surfaceDispatchRef, surfaceHash, surfaceNode, transientDispatchFailure, uniform, userStoryScoreboard, validateSearchLedgerEvent, verifyCodeSurface, verifySearchClaim, verifySearchHistoryArtifact, verifySearchHistoryReceipt, withFinalEvidenceSources };
|
|
@@ -11,27 +11,31 @@ import { n as paretoFrontier } from "./pareto-DIVE5D0T.js";
|
|
|
11
11
|
import { o as pairHoldout } from "./statistical-heldout-CL_7mI5C.js";
|
|
12
12
|
import { a as mapConcurrent } from "./journal-3y-btqaP.js";
|
|
13
13
|
import { n as contentHash, t as canonicalJson } from "./verdict-cache-BPaYxfG8.js";
|
|
14
|
-
import { $ as planCampaignRun, Q as runCampaign, a as combineComparisonCosts, at as computeManifestHash, et as resolveRunDir, n as executeOptimizationMethod, rt as cellCachePath, tt as cellReceiptModels } from "./optimization-method-
|
|
14
|
+
import { $ as planCampaignRun, Q as runCampaign, a as combineComparisonCosts, at as computeManifestHash, et as resolveRunDir, n as executeOptimizationMethod, rt as cellCachePath, tt as cellReceiptModels } from "./optimization-method-4F1Npdy5.js";
|
|
15
15
|
import { n as campaignCellToRunRecord, r as projectCampaignCellQuality, t as campaignCellCostProvenance } from "./run-record-CuO8ErrI.js";
|
|
16
|
-
import {
|
|
16
|
+
import { A as assertCampaignDesign, D as assertRealBackend, P as campaignScenarioIdentity, k as summarizeBackendIntegrity } from "./campaign-evidence-tY94JzUe.js";
|
|
17
17
|
import { p as fsCampaignStorage } from "./finding-scope-BVQVcjz7.js";
|
|
18
|
-
import "./llm-judge-
|
|
18
|
+
import "./llm-judge-DyHMJrDb.js";
|
|
19
19
|
import { r as assertCodeSurfaceIdentity, s as surfaceContentHash } from "./json-recovery-BRUCeQxo.js";
|
|
20
20
|
import "./search-ledger-C7DywY8N.js";
|
|
21
21
|
import "./search-kernel-DezUrquk.js";
|
|
22
22
|
import "./types-_tlhWGUq.js";
|
|
23
|
+
import { n as isRecord } from "./json-DtvZNAU9.js";
|
|
24
|
+
import { u as removeCredentialEnvironment } from "./external-optimizer-contracts-vrye9kti.js";
|
|
23
25
|
import "./search-summary-DOhRouoT.js";
|
|
24
26
|
import { r as verifyCompletion } from "./completion-verifier-BvPqg9Gp.js";
|
|
25
27
|
import { r as calibrationFromPairs, t as brierScore } from "./calibration-Dz8mQb5P.js";
|
|
26
|
-
import "./external-optimizer-
|
|
27
|
-
import "./
|
|
28
|
+
import { i as startExternalOptimizerModelProxy, n as closeExternalOptimizerResources, r as runWithCleanup, t as runExternalOptimizerProcess } from "./external-optimizer-subprocess-D2_gmU9_.js";
|
|
29
|
+
import { t as startExternalOptimizerCallback } from "./external-optimizer-process-BfRVOfBK.js";
|
|
30
|
+
import { a as assertOptimizerModel, g as openExternalOptimizerObservationLog, h as openExternalOptimizerExecutionLog, i as inspectExternalOptimizerRuntime, o as snapshotOptimizerModel, s as externalOptimizerRunnerIdentity, u as externalTextOptimizationMethod } from "./skillopt-optimization-method-Qx0HYCHY.js";
|
|
28
31
|
import { n as clusteredPower } from "./power-COie_o6E.js";
|
|
29
|
-
import { createHash } from "node:crypto";
|
|
32
|
+
import { createHash, randomBytes } from "node:crypto";
|
|
30
33
|
import { z } from "zod";
|
|
31
34
|
import { closeSync, constants, existsSync, fstatSync, lstatSync, mkdirSync, mkdtempSync, openSync, readFileSync, readSync, readdirSync, readlinkSync, realpathSync, rmSync, statSync } from "node:fs";
|
|
32
35
|
import { basename, dirname, isAbsolute, join, relative, resolve, sep } from "node:path";
|
|
33
36
|
import { devNull, tmpdir } from "node:os";
|
|
34
37
|
import { execFileSync } from "node:child_process";
|
|
38
|
+
import { writeFile } from "node:fs/promises";
|
|
35
39
|
// src/campaign/cost-breakdown.ts
|
|
36
40
|
/** Read the source rates for this execution, never a copied model price table.
|
|
37
41
|
* inputTokens includes cachedTokens. Seat credits are standard model credits;
|
|
@@ -3653,6 +3657,173 @@ function finalComparison(ctx, scores, survivors, casesRaced) {
|
|
|
3653
3657
|
rows
|
|
3654
3658
|
};
|
|
3655
3659
|
}
|
|
3660
|
+
// src/campaign/prism-optimization-method.ts
|
|
3661
|
+
const optimizerPackage = "agent-harness-optimizer";
|
|
3662
|
+
const module = "agent_eval_rpc.prism_bridge";
|
|
3663
|
+
const prismRevision = "0d7652b42296c8df07532fa3787fc956250741e7";
|
|
3664
|
+
const sourceUrl = "https://github.com/airbnb/agent-harness-optimizer.git";
|
|
3665
|
+
/** Run Airbnb PRISM's prompt-only search on Eval's independently scored candidate cases. */
|
|
3666
|
+
function prismOptimizationMethod(config) {
|
|
3667
|
+
assertOptimizerModel(config.optimizer, "prismOptimizationMethod: optimizer");
|
|
3668
|
+
const { python, generations, candidatesPerGeneration, maxConcurrentEvaluations, passScore, searchLedger, ...options } = config;
|
|
3669
|
+
const settings = {
|
|
3670
|
+
generations,
|
|
3671
|
+
candidatesPerGeneration,
|
|
3672
|
+
maxConcurrentEvaluations,
|
|
3673
|
+
passScore
|
|
3674
|
+
};
|
|
3675
|
+
const { optimizer: rawOptimizer, ...methodOptions } = options;
|
|
3676
|
+
const optimizer = snapshotOptimizerModel(rawOptimizer);
|
|
3677
|
+
for (const [field, value] of Object.entries({
|
|
3678
|
+
generations,
|
|
3679
|
+
candidatesPerGeneration,
|
|
3680
|
+
maxConcurrentEvaluations
|
|
3681
|
+
})) if (!Number.isSafeInteger(value) || value <= 0) throw new Error(`prismOptimizationMethod: ${field} must be a positive safe integer`);
|
|
3682
|
+
if (!Number.isFinite(settings.passScore)) throw new Error("prismOptimizationMethod: passScore must be finite");
|
|
3683
|
+
const runner = python === void 0 ? void 0 : { command: python };
|
|
3684
|
+
const timeoutMs = methodOptions.timeoutMs ?? 18e5;
|
|
3685
|
+
return {
|
|
3686
|
+
name: methodOptions.name,
|
|
3687
|
+
async optimize(input) {
|
|
3688
|
+
if (typeof input.baselineSurface !== "string" || input.trainScenarios.length === 0 || input.selectionScenarios.length === 0) throw new Error("PRISM requires a prompt surface and separate training and selection cases");
|
|
3689
|
+
const runtime = await inspectExternalOptimizerRuntime({
|
|
3690
|
+
label: methodOptions.name,
|
|
3691
|
+
package: optimizerPackage,
|
|
3692
|
+
module,
|
|
3693
|
+
runner,
|
|
3694
|
+
timeoutMs,
|
|
3695
|
+
signal: input.runOptions.signal
|
|
3696
|
+
});
|
|
3697
|
+
if (runtime.optimizer.sourceUrl !== sourceUrl || runtime.optimizer.revision !== prismRevision) throw new Error(`PRISM requires ${optimizerPackage} installed from ${sourceUrl}@${prismRevision}`);
|
|
3698
|
+
return externalTextOptimizationMethod({
|
|
3699
|
+
...methodOptions,
|
|
3700
|
+
...searchLedger ? { searchLedger: {
|
|
3701
|
+
...searchLedger,
|
|
3702
|
+
optimizer: "PRISM"
|
|
3703
|
+
} } : {},
|
|
3704
|
+
source: {
|
|
3705
|
+
kind: "package",
|
|
3706
|
+
...runtime.optimizer
|
|
3707
|
+
},
|
|
3708
|
+
evaluationId: contentHash({
|
|
3709
|
+
ref: methodOptions.evaluationId,
|
|
3710
|
+
model: optimizer.model,
|
|
3711
|
+
callRef: optimizer.callRef,
|
|
3712
|
+
modelBudget: optimizer.budget,
|
|
3713
|
+
servedModelPolicy: optimizer.servedModelPolicy ?? "exact",
|
|
3714
|
+
settings
|
|
3715
|
+
}),
|
|
3716
|
+
run: (context) => runPrism(context, runtime, optimizer, settings, timeoutMs, runner)
|
|
3717
|
+
}).optimize(input);
|
|
3718
|
+
}
|
|
3719
|
+
};
|
|
3720
|
+
}
|
|
3721
|
+
async function runPrism(context, runtime, optimizer, settings, timeoutMs, runner) {
|
|
3722
|
+
const trainIds = context.trainSet.map(({ id }) => id);
|
|
3723
|
+
const train = new Set(trainIds);
|
|
3724
|
+
const storage = context.storage;
|
|
3725
|
+
const observationLog = openExternalOptimizerObservationLog({
|
|
3726
|
+
storage,
|
|
3727
|
+
path: `${context.artifactDir}/observations.jsonl`
|
|
3728
|
+
});
|
|
3729
|
+
const callback = await startExternalOptimizerCallback({
|
|
3730
|
+
token: randomBytes(32).toString("hex"),
|
|
3731
|
+
maxEvaluations: context.maxEvaluations,
|
|
3732
|
+
evaluate: async (request, signal, measured) => {
|
|
3733
|
+
const result = await context.evaluate(request, signal, measured);
|
|
3734
|
+
if (train.has(request.exampleId) && result.info.status === "scored") return result;
|
|
3735
|
+
const { scenarioId, dimensions, scores, status } = result.info;
|
|
3736
|
+
return {
|
|
3737
|
+
score: result.score,
|
|
3738
|
+
info: {
|
|
3739
|
+
scenarioId,
|
|
3740
|
+
dimensions,
|
|
3741
|
+
scores,
|
|
3742
|
+
status
|
|
3743
|
+
}
|
|
3744
|
+
};
|
|
3745
|
+
},
|
|
3746
|
+
observe: observationLog.observe,
|
|
3747
|
+
signal: context.signal
|
|
3748
|
+
});
|
|
3749
|
+
let modelProxy;
|
|
3750
|
+
return runWithCleanup({
|
|
3751
|
+
label: context.name,
|
|
3752
|
+
cleanup: () => closeExternalOptimizerResources({
|
|
3753
|
+
label: context.name,
|
|
3754
|
+
callback,
|
|
3755
|
+
modelProxy
|
|
3756
|
+
}),
|
|
3757
|
+
run: async () => {
|
|
3758
|
+
const executionLog = openExternalOptimizerExecutionLog({
|
|
3759
|
+
storage,
|
|
3760
|
+
path: `${context.artifactDir}/model-executions.jsonl`
|
|
3761
|
+
});
|
|
3762
|
+
modelProxy = await startExternalOptimizerModelProxy({
|
|
3763
|
+
...optimizer,
|
|
3764
|
+
costLedger: context.cost,
|
|
3765
|
+
phase: "prism.outer-model",
|
|
3766
|
+
actor: "prism",
|
|
3767
|
+
recordExecution: executionLog.observe,
|
|
3768
|
+
anthropicEndpoint: true,
|
|
3769
|
+
signal: context.signal
|
|
3770
|
+
});
|
|
3771
|
+
let diagnostics = {
|
|
3772
|
+
stdout: "",
|
|
3773
|
+
stderr: ""
|
|
3774
|
+
};
|
|
3775
|
+
const result = await runExternalOptimizerProcess({
|
|
3776
|
+
label: context.name,
|
|
3777
|
+
tempPrefix: "agent-eval-prism-",
|
|
3778
|
+
module,
|
|
3779
|
+
runner,
|
|
3780
|
+
timeoutMs,
|
|
3781
|
+
signal: context.signal,
|
|
3782
|
+
onDiagnostics: (output) => {
|
|
3783
|
+
diagnostics = output;
|
|
3784
|
+
},
|
|
3785
|
+
input: {
|
|
3786
|
+
...settings,
|
|
3787
|
+
runtime,
|
|
3788
|
+
runId: context.runId,
|
|
3789
|
+
objective: context.objective,
|
|
3790
|
+
background: context.background,
|
|
3791
|
+
trainIds,
|
|
3792
|
+
selectionIds: context.selectionSet.map(({ id }) => id),
|
|
3793
|
+
seedCandidate: context.seedCandidate,
|
|
3794
|
+
outputDir: context.artifactDir,
|
|
3795
|
+
seed: context.seed,
|
|
3796
|
+
timeoutMs,
|
|
3797
|
+
evaluator: {
|
|
3798
|
+
url: callback.url,
|
|
3799
|
+
token: callback.token
|
|
3800
|
+
},
|
|
3801
|
+
model: {
|
|
3802
|
+
id: optimizer.model,
|
|
3803
|
+
origin: new URL(modelProxy.baseUrl).origin,
|
|
3804
|
+
token: modelProxy.apiKey,
|
|
3805
|
+
maxOutputTokens: optimizer.budget.maxOutputTokensPerRequest,
|
|
3806
|
+
timeoutMs: optimizer.budget.requestTimeoutMs ?? 3e5
|
|
3807
|
+
}
|
|
3808
|
+
}
|
|
3809
|
+
});
|
|
3810
|
+
modelProxy.assertExecutionComplete();
|
|
3811
|
+
await writeFile(`${context.artifactDir}/process-output.json`, JSON.stringify(diagnostics));
|
|
3812
|
+
if (modelProxy.successfulCompletions() === 0 && result.stoppedBeforeProposal !== true) throw new Error(`${context.name}: PRISM completed no admitted model calls. stdout=${diagnostics.stdout} stderr=${diagnostics.stderr}`);
|
|
3813
|
+
return {
|
|
3814
|
+
bestCandidate: result.bestCandidate,
|
|
3815
|
+
resumed: false,
|
|
3816
|
+
observations: observationLog.summary(),
|
|
3817
|
+
modelExecution: {
|
|
3818
|
+
model: optimizer.model,
|
|
3819
|
+
callRef: optimizer.callRef,
|
|
3820
|
+
log: executionLog.summary()
|
|
3821
|
+
},
|
|
3822
|
+
costAccounting: { kind: modelProxy.requestAttempts() > 0 ? "metered" : "no-paid-work" }
|
|
3823
|
+
};
|
|
3824
|
+
}
|
|
3825
|
+
});
|
|
3826
|
+
}
|
|
3656
3827
|
// src/campaign/repeat-reliability.ts
|
|
3657
3828
|
/** pass^k beside mean success over a campaign's seeded repeats. */
|
|
3658
3829
|
function repeatReliability(cells, opts) {
|
|
@@ -4129,6 +4300,140 @@ function scoreDiscrimination(signals, opts) {
|
|
|
4129
4300
|
};
|
|
4130
4301
|
}).sort(compareDiscrimination);
|
|
4131
4302
|
}
|
|
4303
|
+
// src/campaign/skydiscover-solution-method.ts
|
|
4304
|
+
const source = Object.freeze({
|
|
4305
|
+
kind: "package",
|
|
4306
|
+
package: "skydiscover",
|
|
4307
|
+
version: "0.2.0",
|
|
4308
|
+
sourceUrl: "https://github.com/skydiscover-ai/skydiscover",
|
|
4309
|
+
revision: "0d932b690670a7e544388ad362e9876c8bd256a0"
|
|
4310
|
+
});
|
|
4311
|
+
const worker = "agent_eval_rpc.skydiscover_solution_bridge";
|
|
4312
|
+
/** Run official SkyDiscover solution search with its pinned strategy.
|
|
4313
|
+
* The bridge does not enable strategy evolution or variation code generation.
|
|
4314
|
+
* Candidate code is only passed to the caller's Eval dispatch and judge. */
|
|
4315
|
+
function skyDiscoverSolutionOptimizationMethod(config) {
|
|
4316
|
+
const { iterations, timeoutMs = 9e4 } = config;
|
|
4317
|
+
if (!Number.isSafeInteger(iterations) || iterations < 1 || iterations >= Number.MAX_SAFE_INTEGER) throw new Error("SkyDiscover solution iterations must be a positive safe integer");
|
|
4318
|
+
assertOptimizerModel(config.optimizer, "SkyDiscover optimizer");
|
|
4319
|
+
const optimizer = snapshotOptimizerModel(config.optimizer);
|
|
4320
|
+
const identity = externalOptimizerRunnerIdentity(config.runner, worker);
|
|
4321
|
+
const runner = {
|
|
4322
|
+
command: identity.command,
|
|
4323
|
+
args: identity.args,
|
|
4324
|
+
limits: identity.limits,
|
|
4325
|
+
env: removeCredentialEnvironment(config.runner?.env ?? {})
|
|
4326
|
+
};
|
|
4327
|
+
return externalTextOptimizationMethod({
|
|
4328
|
+
...config,
|
|
4329
|
+
searchLedger: void 0,
|
|
4330
|
+
name: "skydiscover-fixed-strategy",
|
|
4331
|
+
source,
|
|
4332
|
+
evaluationId: contentHash({
|
|
4333
|
+
evaluator: config.evaluationId,
|
|
4334
|
+
iterations,
|
|
4335
|
+
optimizer: {
|
|
4336
|
+
model: optimizer.model,
|
|
4337
|
+
callRef: optimizer.callRef,
|
|
4338
|
+
budget: optimizer.budget,
|
|
4339
|
+
servedModelPolicy: optimizer.servedModelPolicy ?? "exact"
|
|
4340
|
+
},
|
|
4341
|
+
runner: identity
|
|
4342
|
+
}),
|
|
4343
|
+
timeoutMs,
|
|
4344
|
+
resume: "never",
|
|
4345
|
+
async run(context) {
|
|
4346
|
+
if (typeof context.seedCandidate !== "string") throw new Error("SkyDiscover solution search requires one Python source string");
|
|
4347
|
+
const examples = [...context.trainSet, ...context.selectionSet].map(({ id }) => id);
|
|
4348
|
+
if (!examples.length) throw new Error("SkyDiscover requires train or selection cases");
|
|
4349
|
+
const { storage } = context;
|
|
4350
|
+
const executions = openExternalOptimizerExecutionLog({
|
|
4351
|
+
storage,
|
|
4352
|
+
path: join(context.artifactDir, "model-executions.jsonl")
|
|
4353
|
+
});
|
|
4354
|
+
const evaluations = openExternalOptimizerObservationLog({
|
|
4355
|
+
storage,
|
|
4356
|
+
path: join(context.artifactDir, "observations.jsonl")
|
|
4357
|
+
});
|
|
4358
|
+
const scored = /* @__PURE__ */ new Map();
|
|
4359
|
+
const callback = await startExternalOptimizerCallback({
|
|
4360
|
+
token: randomBytes(24).toString("hex"),
|
|
4361
|
+
maxEvaluations: context.maxEvaluations,
|
|
4362
|
+
evaluate: async (request, signal, measured) => {
|
|
4363
|
+
if (typeof request.candidate !== "string") throw new Error("Expected Python source");
|
|
4364
|
+
const result = await context.evaluate(request, signal, measured);
|
|
4365
|
+
if (result.info.status === "scored") {
|
|
4366
|
+
const cases = scored.get(request.candidate) ?? /* @__PURE__ */ new Set();
|
|
4367
|
+
cases.add(request.exampleId);
|
|
4368
|
+
scored.set(request.candidate, cases);
|
|
4369
|
+
}
|
|
4370
|
+
return result;
|
|
4371
|
+
},
|
|
4372
|
+
observe: evaluations.observe,
|
|
4373
|
+
signal: context.signal
|
|
4374
|
+
});
|
|
4375
|
+
let modelProxy;
|
|
4376
|
+
return runWithCleanup({
|
|
4377
|
+
label: context.name,
|
|
4378
|
+
run: async () => {
|
|
4379
|
+
modelProxy = await startExternalOptimizerModelProxy({
|
|
4380
|
+
...optimizer,
|
|
4381
|
+
costLedger: context.cost,
|
|
4382
|
+
phase: "search",
|
|
4383
|
+
actor: context.name,
|
|
4384
|
+
recordExecution: executions.observe,
|
|
4385
|
+
signal: context.signal
|
|
4386
|
+
});
|
|
4387
|
+
const output = await runExternalOptimizerProcess({
|
|
4388
|
+
label: context.name,
|
|
4389
|
+
tempPrefix: "eval-skydiscover-",
|
|
4390
|
+
module: worker,
|
|
4391
|
+
runner,
|
|
4392
|
+
timeoutMs,
|
|
4393
|
+
signal: context.signal,
|
|
4394
|
+
input: {
|
|
4395
|
+
baseline: context.seedCandidate,
|
|
4396
|
+
objective: context.objective,
|
|
4397
|
+
seed: context.seed,
|
|
4398
|
+
examples,
|
|
4399
|
+
iterations,
|
|
4400
|
+
evaluationUrl: callback.url,
|
|
4401
|
+
evaluationToken: callback.token,
|
|
4402
|
+
model: optimizer.model,
|
|
4403
|
+
modelUrl: modelProxy.baseUrl,
|
|
4404
|
+
modelToken: modelProxy.apiKey,
|
|
4405
|
+
maxOutputTokens: optimizer.budget.maxOutputTokensPerRequest,
|
|
4406
|
+
requestTimeout: Math.max(1, Math.ceil(timeoutMs / 1e3)),
|
|
4407
|
+
expectedRevision: source.revision,
|
|
4408
|
+
outputDir: join(context.artifactDir, "skydiscover")
|
|
4409
|
+
}
|
|
4410
|
+
});
|
|
4411
|
+
modelProxy.assertExecutionComplete();
|
|
4412
|
+
const failures = modelProxy.failures();
|
|
4413
|
+
if (failures.length) throw new AggregateError(failures, "SkyDiscover model calls failed");
|
|
4414
|
+
if (!isRecord(output) || typeof output.candidate !== "string" || output.revision !== source.revision || output.version !== source.version) throw new Error("SkyDiscover result lacks a candidate or the pinned worker identity");
|
|
4415
|
+
if (scored.get(output.candidate)?.size !== examples.length) throw new Error("SkyDiscover selected a candidate without complete Eval scores");
|
|
4416
|
+
return {
|
|
4417
|
+
bestCandidate: output.candidate,
|
|
4418
|
+
resumed: false,
|
|
4419
|
+
observations: evaluations.summary(),
|
|
4420
|
+
modelExecution: {
|
|
4421
|
+
model: optimizer.model,
|
|
4422
|
+
callRef: optimizer.callRef,
|
|
4423
|
+
log: executions.summary()
|
|
4424
|
+
},
|
|
4425
|
+
costAccounting: { kind: "metered" }
|
|
4426
|
+
};
|
|
4427
|
+
},
|
|
4428
|
+
cleanup: () => closeExternalOptimizerResources({
|
|
4429
|
+
label: context.name,
|
|
4430
|
+
callback,
|
|
4431
|
+
...modelProxy ? { modelProxy } : {}
|
|
4432
|
+
})
|
|
4433
|
+
});
|
|
4434
|
+
}
|
|
4435
|
+
});
|
|
4436
|
+
}
|
|
4132
4437
|
// src/campaign/worktree/index.ts
|
|
4133
4438
|
/**
|
|
4134
4439
|
* VCS-pluggable worktree adapter. One improvement = one worktree, PR-like
|
|
@@ -4666,6 +4971,6 @@ function verifyCodeSurface(surface, worktreeDir) {
|
|
|
4666
4971
|
function resolveWorktreePath(surface, worktreeDir) {
|
|
4667
4972
|
return verifyCodeSurface(surface, worktreeDir).path;
|
|
4668
4973
|
}
|
|
4669
|
-
export {
|
|
4974
|
+
export { neutralizationGate as C, planEvalFixtureRun as D, loadEvalFixtureScenarios as E, analyzeCrossSurfaceInteractions as O, neutralizeText as S, loadEvalFixture as T, scoreUserStory as _, scoreDiscrimination as a, scopedOptimizationMethod as b, prismOptimizationMethod as c, finalizeProfileMatrix as d, runProfileMatrixSegment as f, renderScoreboardMarkdown as g, analyzeProfileMatrix as h, skyDiscoverSolutionOptimizationMethod as i, measureCampaignCost as k, raceProfileMatrix as l, renderProfileMatrixReport as m, resolveWorktreePath as n, createRetainedDispatch as o, runProfileMatrix as p, verifyCodeSurface as r, repeatReliability as s, gitWorktreeAdapter as t, createProfileMatrixPlan as u, scoreboardSummary as v, discoverEvalFixtures as w, sequentialOptimizationMethod as x, userStoryScoreboard as y };
|
|
4670
4975
|
|
|
4671
|
-
//# sourceMappingURL=campaign-
|
|
4976
|
+
//# sourceMappingURL=campaign-VRqINMNu.js.map
|