@tangle-network/agent-eval 2.0.10 → 2.0.12
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 +20 -0
- package/dist/adapters/http.d.ts +2 -2
- package/dist/{agent-profile-_JzxgLDM.d.ts → agent-profile-C0FBdYa6.d.ts} +3 -3
- package/dist/{agent-profile-_JzxgLDM.d.ts.map → agent-profile-C0FBdYa6.d.ts.map} +1 -1
- package/dist/analyst/index.d.ts +292 -74
- package/dist/analyst/index.d.ts.map +1 -1
- package/dist/analyst/index.js +11 -161
- package/dist/analyst/index.js.map +1 -1
- package/dist/app-grade/index.d.ts +2 -2
- package/dist/app-grade/index.js +3 -3
- package/dist/{benchmark-command-CGQXNFj7.js → benchmark-command-Be5O6A2v.js} +797 -13
- package/dist/benchmark-command-Be5O6A2v.js.map +1 -0
- package/dist/benchmarks/index.d.ts +5 -5
- package/dist/benchmarks/index.d.ts.map +1 -1
- package/dist/benchmarks/index.js +19 -10
- package/dist/benchmarks/index.js.map +1 -1
- package/dist/campaign/index.d.ts +5 -5
- package/dist/campaign/index.js +10 -10
- package/dist/{campaign-eus7YRs2.js → campaign-CE08mvQO.js} +11 -11
- package/dist/{campaign-eus7YRs2.js.map → campaign-CE08mvQO.js.map} +1 -1
- package/dist/{campaign-evidence-KM5GTsHG.js → campaign-evidence-71uzJMVY.js} +2 -2
- package/dist/{campaign-evidence-KM5GTsHG.js.map → campaign-evidence-71uzJMVY.js.map} +1 -1
- package/dist/{campaign-evidence-BOcX4w0r.d.ts → campaign-evidence-DRvr7lZU.d.ts} +2 -2
- package/dist/{campaign-evidence-BOcX4w0r.d.ts.map → campaign-evidence-DRvr7lZU.d.ts.map} +1 -1
- package/dist/{chat-client-Oyot5tyo.js → chat-client-TkNgQDLj.js} +2 -2
- package/dist/{chat-client-Oyot5tyo.js.map → chat-client-TkNgQDLj.js.map} +1 -1
- package/dist/{chat-json-call-DTmv2uNY.js → chat-json-call-gu3deRID.js} +2 -2
- package/dist/{chat-json-call-DTmv2uNY.js.map → chat-json-call-gu3deRID.js.map} +1 -1
- package/dist/cli.js +778 -10
- package/dist/cli.js.map +1 -1
- package/dist/code-agent-jsonl-aPWZG3vr.js +104 -0
- package/dist/code-agent-jsonl-aPWZG3vr.js.map +1 -0
- package/dist/{completion-verifier-CCPG2Yc0.js → completion-verifier-BvPqg9Gp.js} +4 -4
- package/dist/{completion-verifier-CCPG2Yc0.js.map → completion-verifier-BvPqg9Gp.js.map} +1 -1
- package/dist/contract/index.d.ts +8 -8
- package/dist/contract/index.js +16 -112
- package/dist/contract/index.js.map +1 -1
- package/dist/{cost-ledger-C5CCidPm.js → cost-ledger-ni6f77QJ.js} +106 -50
- package/dist/cost-ledger-ni6f77QJ.js.map +1 -0
- package/dist/{decision-point-CfqtnGop.js → decision-point-CjC56Enj.js} +2 -2
- package/dist/{decision-point-CfqtnGop.js.map → decision-point-CjC56Enj.js.map} +1 -1
- package/dist/{default-registry-Rs5uzlfJ.js → default-registry-C5iSuS8e.js} +5 -5
- package/dist/{default-registry-Rs5uzlfJ.js.map → default-registry-C5iSuS8e.js.map} +1 -1
- package/dist/{default-registry-X8McMoUV.d.ts → default-registry-DFRlBniE.d.ts} +2 -2
- package/dist/{default-registry-X8McMoUV.d.ts.map → default-registry-DFRlBniE.d.ts.map} +1 -1
- package/dist/{define-agent-eval-D8ntOXqV.js → define-agent-eval-BHn6t-DC.js} +4 -4
- package/dist/{define-agent-eval-D8ntOXqV.js.map → define-agent-eval-BHn6t-DC.js.map} +1 -1
- package/dist/{define-agent-eval-DH5-xi-F.d.ts → define-agent-eval-n63vmQMR.d.ts} +4 -4
- package/dist/{define-agent-eval-DH5-xi-F.d.ts.map → define-agent-eval-n63vmQMR.d.ts.map} +1 -1
- package/dist/{dspy-rlm-engine-ChE1PUM5.js → dspy-rlm-engine-CR5MSL2k.js} +6 -5
- package/dist/{dspy-rlm-engine-ChE1PUM5.js.map → dspy-rlm-engine-CR5MSL2k.js.map} +1 -1
- package/dist/{evaluation-BAisv8ZR.js → evaluation-DqfNMaKr.js} +2 -2
- package/dist/{evaluation-BAisv8ZR.js.map → evaluation-DqfNMaKr.js.map} +1 -1
- package/dist/{evaluation-CjZH6gW0.d.ts → evaluation-VbjqORBn.d.ts} +2 -2
- package/dist/{evaluation-CjZH6gW0.d.ts.map → evaluation-VbjqORBn.d.ts.map} +1 -1
- package/dist/evaluation.d.ts +1 -1
- package/dist/evaluation.js +1 -1
- package/dist/experiment/index.d.ts +1 -1
- package/dist/experiment/index.js +1 -1
- package/dist/{external-optimizer-contracts-BFV8lnhl.js → external-optimizer-contracts-vrye9kti.js} +2 -2
- package/dist/{external-optimizer-contracts-BFV8lnhl.js.map → external-optimizer-contracts-vrye9kti.js.map} +1 -1
- package/dist/{external-optimizer-process-B6emPodQ.js → external-optimizer-process-DkOMkeHW.js} +3 -3
- package/dist/{external-optimizer-process-B6emPodQ.js.map → external-optimizer-process-DkOMkeHW.js.map} +1 -1
- package/dist/{external-optimizer-subprocess-_O06eDVA.js → external-optimizer-subprocess-CFIiwHSE.js} +3 -3
- package/dist/{external-optimizer-subprocess-_O06eDVA.js.map → external-optimizer-subprocess-CFIiwHSE.js.map} +1 -1
- package/dist/{finding-scope-B_As3F_v.js → finding-scope-BVQVcjz7.js} +2 -2
- package/dist/{finding-scope-B_As3F_v.js.map → finding-scope-BVQVcjz7.js.map} +1 -1
- package/dist/{findings-store-CvYUzQBR.js → findings-store-Drnjid7m.js} +5 -5
- package/dist/{findings-store-CvYUzQBR.js.map → findings-store-Drnjid7m.js.map} +1 -1
- package/dist/fuzz.js +1 -1
- package/dist/hosted/index.js +1 -1
- package/dist/{index-BmWw8zN6.d.ts → index-BEXEYURJ.d.ts} +7 -7
- package/dist/{index-BmWw8zN6.d.ts.map → index-BEXEYURJ.d.ts.map} +1 -1
- package/dist/{index-ZffK_5sD.d.ts → index-CbzPtg7O.d.ts} +205 -29
- package/dist/index-CbzPtg7O.d.ts.map +1 -0
- package/dist/{index-CCOaNmh2.d.ts → index-Dt3zWlRa.d.ts} +3 -3
- package/dist/{index-CCOaNmh2.d.ts.map → index-Dt3zWlRa.d.ts.map} +1 -1
- package/dist/{index-aRalB_Ma.d.ts → index-rrPT3Pw0.d.ts} +2 -2
- package/dist/{index-aRalB_Ma.d.ts.map → index-rrPT3Pw0.d.ts.map} +1 -1
- package/dist/index.d.ts +13 -13
- package/dist/index.js +471 -22
- package/dist/index.js.map +1 -1
- package/dist/{judge-gate-CpD3wmcf.js → judge-gate-WgYqQ9LA.js} +2 -2
- package/dist/{judge-gate-CpD3wmcf.js.map → judge-gate-WgYqQ9LA.js.map} +1 -1
- package/dist/{kind-factory-B-xCxG7p.js → kind-factory-C8MJpMTV.js} +2 -2
- package/dist/{kind-factory-B-xCxG7p.js.map → kind-factory-C8MJpMTV.js.map} +1 -1
- package/dist/{llm-client-Dk8lBnMh.js → llm-client-D4B1qR_1.js} +2 -2
- package/dist/{llm-client-Dk8lBnMh.js.map → llm-client-D4B1qR_1.js.map} +1 -1
- package/dist/{llm-judge-DYmEdo3M.js → llm-judge-CgF3ZM3R.js} +4 -4
- package/dist/{llm-judge-DYmEdo3M.js.map → llm-judge-CgF3ZM3R.js.map} +1 -1
- package/dist/{matrix-BDl7hoBr.d.ts → matrix-B95YsrV7.d.ts} +2 -2
- package/dist/{matrix-BDl7hoBr.d.ts.map → matrix-B95YsrV7.d.ts.map} +1 -1
- package/dist/meta-eval/index.js +2 -2
- package/dist/metrics-C6pXdupw.js +9 -0
- package/dist/metrics-C6pXdupw.js.map +1 -0
- package/dist/multishot/golden/index.d.ts +1 -1
- package/dist/multishot/index.d.ts +6 -6
- package/dist/multishot/index.js +8 -7
- package/dist/multishot/index.js.map +1 -1
- package/dist/openapi.json +1 -1
- package/dist/{optimization-method-4JlbMxd2.js → optimization-method-1xzXK-B6.js} +9 -9
- package/dist/{optimization-method-4JlbMxd2.js.map → optimization-method-1xzXK-B6.js.map} +1 -1
- package/dist/{proposal-findings-CfRFCFXS.js → proposal-findings-BCd4KjLy.js} +2 -2
- package/dist/{proposal-findings-CfRFCFXS.js.map → proposal-findings-BCd4KjLy.js.map} +1 -1
- package/dist/rl.d.ts +1 -1
- package/dist/rollout/index.d.ts +2 -2
- package/dist/rollout/index.js +1 -1
- package/dist/{rollout--rSr43Pd.js → rollout-CbHMVoDr.js} +2 -2
- package/dist/{rollout--rSr43Pd.js.map → rollout-CbHMVoDr.js.map} +1 -1
- package/dist/{run-improvement-loop-BeHu5D9Z.d.ts → run-improvement-loop-BPhkYKV2.d.ts} +5 -5
- package/dist/{run-improvement-loop-BeHu5D9Z.d.ts.map → run-improvement-loop-BPhkYKV2.d.ts.map} +1 -1
- package/dist/search/index.d.ts +2 -2
- package/dist/search/index.js +2 -2
- package/dist/{search-kernel-mZc79S6N.js → search-kernel-BkkDo75N.js} +2 -2
- package/dist/{search-kernel-mZc79S6N.js.map → search-kernel-BkkDo75N.js.map} +1 -1
- package/dist/{search-kernel-CJZ-ZSV1.d.ts → search-kernel-CDSEWa2X.d.ts} +2 -2
- package/dist/{search-kernel-CJZ-ZSV1.d.ts.map → search-kernel-CDSEWa2X.d.ts.map} +1 -1
- package/dist/{search-ledger-C7t68cmy.js → search-ledger-sormHFLS.js} +17 -1
- package/dist/search-ledger-sormHFLS.js.map +1 -0
- package/dist/{search-shipper-CmDW9dU6.js → search-shipper-BJ2Bkx2q.js} +2 -2
- package/dist/{search-shipper-CmDW9dU6.js.map → search-shipper-BJ2Bkx2q.js.map} +1 -1
- package/dist/{search-summary-CCgP2qXz.js → search-summary-DMckFUNY.js} +2 -2
- package/dist/{search-summary-CCgP2qXz.js.map → search-summary-DMckFUNY.js.map} +1 -1
- package/dist/{self-improve-C_Bcdmv8.js → self-improve-CMrPmjYE.js} +5 -5
- package/dist/{self-improve-C_Bcdmv8.js.map → self-improve-CMrPmjYE.js.map} +1 -1
- package/dist/{self-improve-B1fsNejr.d.ts → self-improve-D0TtJz4e.d.ts} +5 -5
- package/dist/{self-improve-B1fsNejr.d.ts.map → self-improve-D0TtJz4e.d.ts.map} +1 -1
- package/dist/{server-aZFmRucn.js → server-B-7vXS9T.js} +4 -4
- package/dist/{server-aZFmRucn.js.map → server-B-7vXS9T.js.map} +1 -1
- package/dist/{skillopt-optimization-method-DHk1K757.js → skillopt-optimization-method-D-BPMi8J.js} +9 -9
- package/dist/{skillopt-optimization-method-DHk1K757.js.map → skillopt-optimization-method-D-BPMi8J.js.map} +1 -1
- package/dist/{store-otlp-CdeW7NWq.js → store-otlp-DL30pdXE.js} +2 -2
- package/dist/{store-otlp-CdeW7NWq.js.map → store-otlp-DL30pdXE.js.map} +1 -1
- package/dist/{store-tool-spans-CVX-jfkk.js → store-tool-spans-DRdpbrnb.js} +3 -3
- package/dist/{store-tool-spans-CVX-jfkk.js.map → store-tool-spans-DRdpbrnb.js.map} +1 -1
- package/dist/{systemone-4PadCE4C.d.ts → systemone-C26IFS-a.d.ts} +3 -3
- package/dist/{systemone-4PadCE4C.d.ts.map → systemone-C26IFS-a.d.ts.map} +1 -1
- package/dist/systemone.d.ts +2 -2
- package/dist/systemone.js +2 -2
- package/dist/traces.js +3 -3
- package/dist/{tree-CiIe-f3f.js → tree-BX9ykHi3.js} +3 -3
- package/dist/{tree-CiIe-f3f.js.map → tree-BX9ykHi3.js.map} +1 -1
- package/dist/{types-D5XtEH9Q.d.ts → types-CBT-XcX5.d.ts} +14 -1
- package/dist/types-CBT-XcX5.d.ts.map +1 -0
- package/dist/{types-an-CUndX.d.ts → types-CYPV2dlR.d.ts} +52 -5
- package/dist/types-CYPV2dlR.d.ts.map +1 -0
- package/dist/wire/index.js +1 -1
- package/docs/feature-guide.md +2 -0
- package/docs/public-api.md +23 -16
- package/docs/skill-eval.md +103 -0
- package/package.json +4 -2
- package/dist/benchmark-command-CGQXNFj7.js.map +0 -1
- package/dist/cost-ledger-C5CCidPm.js.map +0 -1
- package/dist/index-ZffK_5sD.d.ts.map +0 -1
- package/dist/search-ledger-C7t68cmy.js.map +0 -1
- package/dist/types-D5XtEH9Q.d.ts.map +0 -1
- package/dist/types-an-CUndX.d.ts.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-BJohB4LM.js";
|
|
2
|
-
import { i as JudgeError, n as CaptureIntegrityError, o as NotFoundError, r as ConfigError, s as ValidationError, t as AgentEvalError } from "./errors-DeEEV9Vx.js";
|
|
2
|
+
import { c as errorMessage$1, i as JudgeError, n as CaptureIntegrityError, o as NotFoundError, r as ConfigError, s as ValidationError, t as AgentEvalError } from "./errors-DeEEV9Vx.js";
|
|
3
3
|
import { a as hashCanonical, r as canonicalString } from "./canonical-DKgL_Wby.js";
|
|
4
4
|
import { a as agentProfileModelId, i as agentProfileId, n as HARNESS_NATIVE_MODEL, o as expandProfileAxes, r as agentProfileHash, s as harnessAxisOf, t as CODING_HARNESSES } from "./agent-profile-CCw6EXWW.js";
|
|
5
5
|
import { a as groupRunsByAgentProfileCell, c as verifyAgentProfileCell, i as buildAgentProfileCell, l as hashJson, o as toAgentProfileJson, r as agentProfileCellKey, s as validateAgentProfileCell, t as AGENT_PROFILE_KINDS, u as manifestContentDigest } from "./agent-profile-cell-CUthydZB.js";
|
|
@@ -10,33 +10,34 @@ import { a as assertServedModels, d as assertCrossFamily, f as judgeFamily, n as
|
|
|
10
10
|
import { i as summaryTable, n as gainHistogram } from "./summary-report-DyBkOC6V.js";
|
|
11
11
|
import { t as interpolatedQuantile } from "./quantile-CncXP-Ss.js";
|
|
12
12
|
import { n as pairArms, r as pairRunRecords, t as comparePairedArms } from "./paired-arms-CJH5Q0wx.js";
|
|
13
|
-
import { C as medianInPlace, _ as mean$1, a as pairedSignTest, c as meanConfidenceInterval, d as ranks, f as spearmanR, g as weightedMean, h as weightedComposite, l as partialCredit, m as summarizeNumberSeries, o as pairedTTest, p as studentTCritical, r as pairedBootstrap, s as confidenceInterval, t as BOOTSTRAP_GATE_MIN_N, u as pearsonR } from "./paired-tests-CXcD_B80.js";
|
|
13
|
+
import { C as medianInPlace, S as makeRng, _ as mean$1, a as pairedSignTest, c as meanConfidenceInterval, d as ranks, f as spearmanR, g as weightedMean, h as weightedComposite, l as partialCredit, m as summarizeNumberSeries, o as pairedTTest, p as studentTCritical, r as pairedBootstrap, s as confidenceInterval, t as BOOTSTRAP_GATE_MIN_N, u as pearsonR } from "./paired-tests-CXcD_B80.js";
|
|
14
14
|
import { t as mulberry32 } from "./random-DrzcgC7F.js";
|
|
15
15
|
import { A as cliffsDelta, C as chiSquared, D as normalTwoSidedPValue, E as linearRegressionSlope, F as summarizeDistribution, G as corpusInterRaterAgreement, K as corpusInterRaterAgreementFromJudgeScores, M as interpretCliffs, N as pairedCohensDz, O as studentTTwoSidedPValue, P as percentileNearestRank, S as holm, T as fisherExactTwoSided, W as rocAuc, X as calibrateJudgeContinuous, Y as calibrateJudge, Z as continuousAgreement, _ as passAtK, a as wilcoxonSignedRank, b as benjaminiHochberg, c as pairedMde, et as verbosityBias, f as mcnemar, g as pairedRiskDifferenceScore, h as pairedRiskDifferenceExact, i as mannWhitneyU, j as cohensD, k as twoByTwoPValue, l as requiredPairedSampleSize, m as pairedRiskDifference, n as sampleMedian, o as mcnemarPower, q as interRaterReliability, r as summarizeSample, s as mcnemarRequiredN, t as eProcess, u as requiredSampleSize, v as passHatK, w as chiSquaredPValue, x as bonferroni, y as wilson } from "./statistics-AKnVFnK-.js";
|
|
16
16
|
import { n as paretoFrontier, t as dominates } from "./pareto-DIVE5D0T.js";
|
|
17
17
|
import { a as welchsTTest, i as iqr, n as checkCanaries, t as analyzeRuns } from "./analyze-runs-xhH2Qxoc.js";
|
|
18
18
|
import { i as pairedDeltaTest, n as pairedDecisionShape, r as minimumPairsForPairedDeltaTest, t as decidePairedPromotion } from "./paired-promotion-decision-BtfVwEAk.js";
|
|
19
|
-
import { c as runsForScenario, i as judgeSpans, t as argHash } from "./query-Dhjkwqyx.js";
|
|
19
|
+
import { a as llmSpans, c as runsForScenario, i as judgeSpans, s as runMetricExtractor, t as argHash } from "./query-Dhjkwqyx.js";
|
|
20
|
+
import { a as mapConcurrent } from "./journal-3y-btqaP.js";
|
|
20
21
|
import { n as contentHash, r as fileVerdictCache, t as canonicalJson } from "./verdict-cache-BPaYxfG8.js";
|
|
21
|
-
import { B as redTeamDataset, H as scoreRedTeamOutput, Q as runCampaign, U as Dataset, V as redTeamReport, W as runCanaries, z as DEFAULT_RED_TEAM_CORPUS } from "./optimization-method-
|
|
22
|
-
import { c as
|
|
23
|
-
import { E as assertRealBackend, O as summarizeBackendIntegrity, T as BackendIntegrityError, a as ATTESTATION_ALGORITHM, b as parseReflectionResponse, o as attest, s as verifyAttestation, v as buildReflectionPrompt } from "./campaign-evidence-
|
|
24
|
-
import { a as clamp01, i as aggregateRunScore, r as transientDispatchFailure, t as llmJudge } from "./llm-judge-
|
|
22
|
+
import { B as redTeamDataset, H as scoreRedTeamOutput, Q as runCampaign, U as Dataset, V as redTeamReport, W as runCanaries, z as DEFAULT_RED_TEAM_CORPUS } from "./optimization-method-1xzXK-B6.js";
|
|
23
|
+
import { c as MODEL_PRICING, d as estimateCost, f as isModelPriced, i as CostCeilingReachedError, l as costForTokenPricing, n as CostAccountingIncompleteError, p as resolveModelPricing, t as CostLedger, u as costForUsage } from "./cost-ledger-ni6f77QJ.js";
|
|
24
|
+
import { E as assertRealBackend, O as summarizeBackendIntegrity, T as BackendIntegrityError, a as ATTESTATION_ALGORITHM, b as parseReflectionResponse, o as attest, s as verifyAttestation, v as buildReflectionPrompt } from "./campaign-evidence-71uzJMVY.js";
|
|
25
|
+
import { a as clamp01, i as aggregateRunScore, r as transientDispatchFailure, t as llmJudge } from "./llm-judge-CgF3ZM3R.js";
|
|
25
26
|
import { s as surfaceContentHash } from "./json-recovery-BRUCeQxo.js";
|
|
26
27
|
import { c as redactText, l as shareAllowed, n as REDACTION_VERSION, o as redact, r as assessShareSafety, s as redactForShare } from "./redact-zp_ILC4l.js";
|
|
27
28
|
import { a as makeProposalFinding, i as makeFinding, r as computeFindingId } from "./types-_tlhWGUq.js";
|
|
28
29
|
import { a as LlmCallError, i as stripFencedJson, n as isRecord, o as LlmResponseError } from "./json-DtvZNAU9.js";
|
|
29
30
|
import { n as pairedPromotionPower, r as requiredPairsForPairedPromotion } from "./paired-promotion-power-DG1avBKf.js";
|
|
30
|
-
import { n as selfImprove } from "./self-improve-
|
|
31
|
-
import { t as defineAgentEval } from "./define-agent-eval-
|
|
31
|
+
import { n as selfImprove } from "./self-improve-CMrPmjYE.js";
|
|
32
|
+
import { t as defineAgentEval } from "./define-agent-eval-BHn6t-DC.js";
|
|
32
33
|
import { n as equivalenceVerdict, t as certificationEvidenceDigest } from "./verdict-5PVtsWT_.js";
|
|
33
34
|
import { a as runEquivalenceCheck, i as defineEquivalenceCheck, n as VERIFICATION_STRATEGIES, r as VERIFICATION_STRATEGY_SOURCES, t as EquivalenceProtocolError } from "./verification-strategy-CYhDX1rE.js";
|
|
34
|
-
import { c as createBoundedTraceAnalysisStore, p as DEFAULT_TRACE_ANALYST_BUDGETS, t as createTraceAnalyst } from "./kind-factory-
|
|
35
|
-
import { C as assertUniqueFindingIds, D as validateAnalystReviewDecisions, E as snapshotAnalystRun, S as analystRunDigest, T as readAnalystReview, c as FAILURE_MODE_KIND_SPEC, i as DEFAULT_TRACE_ANALYST_KINDS, n as AnalystRegistry, t as buildDefaultAnalystRegistry, w as completedAnalystReviewQuality, x as analystFindingDigest } from "./default-registry-
|
|
35
|
+
import { c as createBoundedTraceAnalysisStore, p as DEFAULT_TRACE_ANALYST_BUDGETS, t as createTraceAnalyst } from "./kind-factory-C8MJpMTV.js";
|
|
36
|
+
import { C as assertUniqueFindingIds, D as validateAnalystReviewDecisions, E as snapshotAnalystRun, S as analystRunDigest, T as readAnalystReview, c as FAILURE_MODE_KIND_SPEC, i as DEFAULT_TRACE_ANALYST_KINDS, n as AnalystRegistry, t as buildDefaultAnalystRegistry, w as completedAnalystReviewQuality, x as analystFindingDigest } from "./default-registry-C5iSuS8e.js";
|
|
36
37
|
import { OUTPUT_VALUE } from "./trace-attributes.js";
|
|
37
38
|
import { n as extractUsageFromSse, t as extractUsage } from "./extract-usage-ISFqhfDz.js";
|
|
38
39
|
import { n as InMemoryRawProviderSink, r as NoopRawProviderSink, t as FileSystemRawProviderSink } from "./raw-provider-sink-RbaEv2vB.js";
|
|
39
|
-
import { _ as exportRunAsOtlp, c as describeTraceInsightScope, g as analyzeTraces, h as tokenizeDomainWords, l as domainEvidencePattern, m as scoreTraceInsightReadiness, n as toolSpansToTraceAnalysisStore, o as buildTraceInsightContext, s as buildTraceInsightPrompt, u as inferDomainKeywords, v as captureFetchToRawSink } from "./store-tool-spans-
|
|
40
|
+
import { _ as exportRunAsOtlp, c as describeTraceInsightScope, g as analyzeTraces, h as tokenizeDomainWords, l as domainEvidencePattern, m as scoreTraceInsightReadiness, n as toolSpansToTraceAnalysisStore, o as buildTraceInsightContext, s as buildTraceInsightPrompt, u as inferDomainKeywords, v as captureFetchToRawSink } from "./store-tool-spans-DRdpbrnb.js";
|
|
40
41
|
import { t as TraceEmitter } from "./emitter-xN9wGTVw.js";
|
|
41
42
|
import { n as assertRunCaptured, t as RunIntegrityError } from "./integrity-DOHt1mwU.js";
|
|
42
43
|
import { n as InMemoryTraceStore, t as FileSystemTraceStore } from "./store-ZykIyQmy.js";
|
|
@@ -45,18 +46,19 @@ import { n as trajectoryTimingBoundary, t as buildTrajectory } from "./trajector
|
|
|
45
46
|
import { i as failureBlame, n as classifyFailure, r as classifyFailureReason } from "./failure-taxonomy-9eQfXKoW.js";
|
|
46
47
|
import { n as runBoundedProcess, t as DEFAULT_BOUNDED_PROCESS_TIMEOUT_MS } from "./bounded-process-BZrWXIKW.js";
|
|
47
48
|
import { t as runEvalCampaign } from "./eval-campaign-BciGnrGy.js";
|
|
48
|
-
import { a as maximumChargeForLlmRequest, i as costReceiptFromLlmError, r as costReceiptFromLlm, s as isTransientLlmError } from "./llm-client-
|
|
49
|
-
import { n as createChatClient } from "./chat-client-
|
|
50
|
-
import { n as createLlmCorrectnessChecker, r as verifyCompletion, t as completionVerdict } from "./completion-verifier-
|
|
51
|
-
import "./rollout
|
|
49
|
+
import { a as maximumChargeForLlmRequest, i as costReceiptFromLlmError, r as costReceiptFromLlm, s as isTransientLlmError } from "./llm-client-D4B1qR_1.js";
|
|
50
|
+
import { n as createChatClient } from "./chat-client-TkNgQDLj.js";
|
|
51
|
+
import { n as createLlmCorrectnessChecker, r as verifyCompletion, t as completionVerdict } from "./completion-verifier-BvPqg9Gp.js";
|
|
52
|
+
import "./rollout-CbHMVoDr.js";
|
|
52
53
|
import { t as mintRolloutRows } from "./mint-B4n1pRRd.js";
|
|
53
54
|
import { i as sequentialPairedPower, n as pairedEvalueSequence, r as sequentialCrossingHorizon, t as evaluateInterimReleaseConfidence } from "./sequential-DR-pnYQ7.js";
|
|
54
|
-
import { n as paidJsonChat } from "./chat-json-call-
|
|
55
|
-
import { t as createDspyRlmTraceEngine } from "./dspy-rlm-engine-
|
|
56
|
-
import { n as diffFindings, r as createChatTraceEngine, t as FindingsStore } from "./findings-store-
|
|
55
|
+
import { n as paidJsonChat } from "./chat-json-call-gu3deRID.js";
|
|
56
|
+
import { t as createDspyRlmTraceEngine } from "./dspy-rlm-engine-CR5MSL2k.js";
|
|
57
|
+
import { n as diffFindings, r as createChatTraceEngine, t as FindingsStore } from "./findings-store-Drnjid7m.js";
|
|
58
|
+
import { t as estimateTokens } from "./metrics-C6pXdupw.js";
|
|
57
59
|
import { a as budgetBreachView, i as failureClusterView, n as computeToolUseMetrics, r as judgeAgreementView, t as toolWasteView } from "./tool-waste-BZnYSa6J.js";
|
|
58
|
-
import { _ as analyzeSeries, a as judgeGateDecision, c as snapshotFromJudgeAgreement, g as withJudgeRetry, i as assertJudgeMayGate, n as JudgeGateRefusedError, o as measureJudgeAgreement, r as addCalibrationVerdicts, s as registerCalibrationSet, t as DEFAULT_JUDGE_GATE_POLICY } from "./judge-gate-
|
|
59
|
-
import { a as spanRecordsToTraceAnalysisStore, i as otlpTextToTraceAnalysisStore, r as OtlpFileTraceStore } from "./store-otlp-
|
|
60
|
+
import { _ as analyzeSeries, a as judgeGateDecision, c as snapshotFromJudgeAgreement, g as withJudgeRetry, i as assertJudgeMayGate, n as JudgeGateRefusedError, o as measureJudgeAgreement, r as addCalibrationVerdicts, s as registerCalibrationSet, t as DEFAULT_JUDGE_GATE_POLICY } from "./judge-gate-WgYqQ9LA.js";
|
|
61
|
+
import { a as spanRecordsToTraceAnalysisStore, i as otlpTextToTraceAnalysisStore, r as OtlpFileTraceStore } from "./store-otlp-DL30pdXE.js";
|
|
60
62
|
import { n as bootstrapCi, t as evaluateReleaseConfidence } from "./release-confidence-Cndq1hwi.js";
|
|
61
63
|
import { createHash } from "node:crypto";
|
|
62
64
|
import { accessSync, appendFileSync, constants, cpSync, existsSync, mkdirSync, promises, readFileSync, readdirSync, statSync, writeFileSync } from "node:fs";
|
|
@@ -8576,6 +8578,453 @@ function validateId(id) {
|
|
|
8576
8578
|
function validateVersion(version) {
|
|
8577
8579
|
if (!version || version.length > 64) throw new Error(`Invalid version "${version}": must be 1–64 chars`);
|
|
8578
8580
|
}
|
|
8581
|
+
// src/skill-eval/recipe.ts
|
|
8582
|
+
/**
|
|
8583
|
+
* The skill eval recipe: does one unit earn its place?
|
|
8584
|
+
*
|
|
8585
|
+
* A unit is anything the caller can apply to an agent and take away again: a
|
|
8586
|
+
* skill, a paragraph of instructions, a profile difference. The recipe runs the
|
|
8587
|
+
* same real cases with the unit and without it, optionally a third time with a
|
|
8588
|
+
* neutral text of the same length, and reports one decision.
|
|
8589
|
+
*
|
|
8590
|
+
* It composes checks this package already owns and adds no statistic:
|
|
8591
|
+
*
|
|
8592
|
+
* | Step | Owner |
|
|
8593
|
+
* |---|---|
|
|
8594
|
+
* | Can the suite see a difference at all? | `capabilityHeadroom` over the `without` arm |
|
|
8595
|
+
* | Which answer is better? | the caller's judge, shown two answers with no arm label, in an order drawn from the seed |
|
|
8596
|
+
* | Is that preference reliable? | `decidePairedPromotion` on the paired preference, `wilson` for the win rate |
|
|
8597
|
+
* | Did the work change? | `comparePairedArms` over tool calls, tool errors, wall time and cost |
|
|
8598
|
+
*
|
|
8599
|
+
* Execution comes in through `run` and `judge` only. A callback that throws is
|
|
8600
|
+
* a failed run or a failed judgment, counted apart and never scored as a tie.
|
|
8601
|
+
*/
|
|
8602
|
+
/** The process measures the recipe compares between arms. */
|
|
8603
|
+
const SKILL_EVAL_METRICS = [
|
|
8604
|
+
"toolCalls",
|
|
8605
|
+
"toolErrors",
|
|
8606
|
+
"wallMs",
|
|
8607
|
+
"costUsd"
|
|
8608
|
+
];
|
|
8609
|
+
const NEUTRAL_SENTENCE = "This paragraph carries no instruction for the task. Read it and continue as you would without it. ";
|
|
8610
|
+
/**
|
|
8611
|
+
* A text of exactly `length` characters that asks for nothing: the control for
|
|
8612
|
+
* a unit of that length, so a gain from added reading is told apart from a gain
|
|
8613
|
+
* from what the unit says.
|
|
8614
|
+
*/
|
|
8615
|
+
function neutralControlText(length) {
|
|
8616
|
+
return NEUTRAL_SENTENCE.repeat(Math.ceil(length / 98)).slice(0, length);
|
|
8617
|
+
}
|
|
8618
|
+
function invalidOptions(message) {
|
|
8619
|
+
throw new ValidationError(`runSkillEval: ${message}`);
|
|
8620
|
+
}
|
|
8621
|
+
function settingsOf(options) {
|
|
8622
|
+
if (options.cases.length === 0) invalidOptions("no cases supplied");
|
|
8623
|
+
const ids = /* @__PURE__ */ new Set();
|
|
8624
|
+
for (const testCase of options.cases) {
|
|
8625
|
+
if (typeof testCase.id !== "string" || testCase.id === "") invalidOptions("every case needs an id");
|
|
8626
|
+
if (ids.has(testCase.id)) invalidOptions(`case id '${testCase.id}' appears twice`);
|
|
8627
|
+
ids.add(testCase.id);
|
|
8628
|
+
}
|
|
8629
|
+
const seed = options.seed ?? 1;
|
|
8630
|
+
if (!Number.isSafeInteger(seed)) invalidOptions(`seed must be an integer, got ${seed}`);
|
|
8631
|
+
const confidence = options.confidence ?? .95;
|
|
8632
|
+
if (!(confidence > 0 && confidence < 1)) invalidOptions(`confidence must be in (0, 1), got ${confidence}`);
|
|
8633
|
+
const smallestBenefit = options.smallestBenefit ?? .1;
|
|
8634
|
+
if (!(smallestBenefit > 0 && smallestBenefit <= 1)) invalidOptions(`smallestBenefit must be in (0, 1], got ${smallestBenefit}`);
|
|
8635
|
+
const concurrency = options.concurrency ?? 4;
|
|
8636
|
+
if (!Number.isSafeInteger(concurrency) || concurrency < 1) invalidOptions(`concurrency must be a positive integer, got ${concurrency}`);
|
|
8637
|
+
const ceiling = options.headroom?.ceiling ?? .9;
|
|
8638
|
+
const floor = options.headroom?.floor === void 0 ? .1 : options.headroom.floor;
|
|
8639
|
+
if (!(ceiling > 0 && ceiling <= 1)) invalidOptions(`headroom.ceiling must be in (0, 1], got ${ceiling}`);
|
|
8640
|
+
if (floor !== null && !(floor >= 0 && floor < ceiling)) invalidOptions(`headroom.floor must be in [0, ceiling), got ${floor}`);
|
|
8641
|
+
const unitText = options.unit.text;
|
|
8642
|
+
let controlText;
|
|
8643
|
+
if (options.control === true) controlText = unitText === void 0 ? null : neutralControlText(unitText.length);
|
|
8644
|
+
else if (typeof options.control === "string") {
|
|
8645
|
+
controlText = options.control;
|
|
8646
|
+
if (unitText !== void 0 && Math.abs(controlText.length - unitText.length) > unitText.length / 10) invalidOptions(`the control text is ${controlText.length} characters and the unit is ${unitText.length}: a control must be within a tenth of the unit's length`);
|
|
8647
|
+
}
|
|
8648
|
+
return {
|
|
8649
|
+
seed,
|
|
8650
|
+
confidence,
|
|
8651
|
+
smallestBenefit,
|
|
8652
|
+
concurrency,
|
|
8653
|
+
ceiling,
|
|
8654
|
+
floor,
|
|
8655
|
+
controlText
|
|
8656
|
+
};
|
|
8657
|
+
}
|
|
8658
|
+
/** A run result as the recipe will use it, or the reason it cannot. */
|
|
8659
|
+
function checkedRun(value) {
|
|
8660
|
+
const invalid = (message) => ({
|
|
8661
|
+
succeeded: false,
|
|
8662
|
+
error: `run returned ${message}`
|
|
8663
|
+
});
|
|
8664
|
+
if (typeof value?.answer !== "string") return invalid("no answer text");
|
|
8665
|
+
if (value.pass !== null && typeof value.pass !== "boolean") return invalid("a pass that is not true, false or null");
|
|
8666
|
+
const trace = {};
|
|
8667
|
+
for (const metric of SKILL_EVAL_METRICS) {
|
|
8668
|
+
const reading = value.trace?.[metric] ?? null;
|
|
8669
|
+
if (reading !== null && !(Number.isFinite(reading) && reading >= 0)) return invalid(`trace.${metric} = ${reading}, which is not a non-negative number or null`);
|
|
8670
|
+
trace[metric] = reading;
|
|
8671
|
+
}
|
|
8672
|
+
return {
|
|
8673
|
+
succeeded: true,
|
|
8674
|
+
value: {
|
|
8675
|
+
answer: value.answer,
|
|
8676
|
+
pass: value.pass,
|
|
8677
|
+
trace
|
|
8678
|
+
}
|
|
8679
|
+
};
|
|
8680
|
+
}
|
|
8681
|
+
function headroomOf(outcomes, ids, settings) {
|
|
8682
|
+
const { summary } = capabilityHeadroom(outcomes.map((outcome, index) => ({
|
|
8683
|
+
taskId: ids[index],
|
|
8684
|
+
baselineOutcome: !outcome.succeeded || outcome.value.pass === null ? "unknown" : outcome.value.pass ? "pass" : "fail"
|
|
8685
|
+
})));
|
|
8686
|
+
const passed = summary.tasksSaturated;
|
|
8687
|
+
const failed = summary.tasksWithGap;
|
|
8688
|
+
const passRate = passed + failed === 0 ? null : passed / (passed + failed);
|
|
8689
|
+
const verdict = passRate === null ? "unknown" : passRate >= settings.ceiling ? "saturated" : settings.floor !== null && passRate <= settings.floor ? "floored" : "separable";
|
|
8690
|
+
return {
|
|
8691
|
+
passed,
|
|
8692
|
+
failed,
|
|
8693
|
+
unknown: summary.tasksUnknown,
|
|
8694
|
+
passRate,
|
|
8695
|
+
ceiling: settings.ceiling,
|
|
8696
|
+
floor: settings.floor,
|
|
8697
|
+
verdict
|
|
8698
|
+
};
|
|
8699
|
+
}
|
|
8700
|
+
function preferenceOf(judgments, settings) {
|
|
8701
|
+
const withPreferred = [];
|
|
8702
|
+
const otherPreferred = [];
|
|
8703
|
+
let ties = 0;
|
|
8704
|
+
let notJudged = 0;
|
|
8705
|
+
let choseFirst = 0;
|
|
8706
|
+
let choseSecond = 0;
|
|
8707
|
+
let withShownFirst = 0;
|
|
8708
|
+
for (const { withFirst, choice } of judgments) {
|
|
8709
|
+
if (choice === null) {
|
|
8710
|
+
notJudged += 1;
|
|
8711
|
+
continue;
|
|
8712
|
+
}
|
|
8713
|
+
if (withFirst) withShownFirst += 1;
|
|
8714
|
+
if (choice === "tie") {
|
|
8715
|
+
ties += 1;
|
|
8716
|
+
withPreferred.push(0);
|
|
8717
|
+
otherPreferred.push(0);
|
|
8718
|
+
continue;
|
|
8719
|
+
}
|
|
8720
|
+
if (choice === "first") choseFirst += 1;
|
|
8721
|
+
else choseSecond += 1;
|
|
8722
|
+
const withWon = choice === "first" === withFirst;
|
|
8723
|
+
withPreferred.push(withWon ? 1 : 0);
|
|
8724
|
+
otherPreferred.push(withWon ? 0 : 1);
|
|
8725
|
+
}
|
|
8726
|
+
const wins = withPreferred.reduce((sum, value) => sum + value, 0);
|
|
8727
|
+
const losses = otherPreferred.reduce((sum, value) => sum + value, 0);
|
|
8728
|
+
const decide = (before, after) => decidePairedPromotion(before, after, {
|
|
8729
|
+
binaryScale: 1,
|
|
8730
|
+
confidence: settings.confidence
|
|
8731
|
+
});
|
|
8732
|
+
const judged = withPreferred.length > 0;
|
|
8733
|
+
const net = judged ? decide(otherPreferred, withPreferred) : null;
|
|
8734
|
+
return {
|
|
8735
|
+
wins,
|
|
8736
|
+
losses,
|
|
8737
|
+
ties,
|
|
8738
|
+
notJudged,
|
|
8739
|
+
winRate: wins + losses === 0 ? null : wilson(wins, wins + losses, settings.confidence),
|
|
8740
|
+
net,
|
|
8741
|
+
withReliablyPreferred: net?.promote ?? false,
|
|
8742
|
+
otherReliablyPreferred: judged && decide(withPreferred, otherPreferred).promote,
|
|
8743
|
+
choseFirst,
|
|
8744
|
+
choseSecond,
|
|
8745
|
+
withShownFirst
|
|
8746
|
+
};
|
|
8747
|
+
}
|
|
8748
|
+
function armRows(arm, outcomes, ids) {
|
|
8749
|
+
const rows = [];
|
|
8750
|
+
outcomes.forEach((outcome, index) => {
|
|
8751
|
+
if (!outcome.succeeded) return;
|
|
8752
|
+
rows.push({
|
|
8753
|
+
pairKey: ids[index],
|
|
8754
|
+
arm,
|
|
8755
|
+
pass: outcome.value.pass,
|
|
8756
|
+
metrics: outcome.value.trace
|
|
8757
|
+
});
|
|
8758
|
+
});
|
|
8759
|
+
return rows;
|
|
8760
|
+
}
|
|
8761
|
+
function processOf(against, rows, settings) {
|
|
8762
|
+
const arms = {
|
|
8763
|
+
baselineArm: against,
|
|
8764
|
+
treatmentArm: "with"
|
|
8765
|
+
};
|
|
8766
|
+
const process = comparePairedArms(rows, {
|
|
8767
|
+
...arms,
|
|
8768
|
+
metricNames: [...SKILL_EVAL_METRICS],
|
|
8769
|
+
bootstrap: {
|
|
8770
|
+
statistic: "mean",
|
|
8771
|
+
seed: settings.seed,
|
|
8772
|
+
confidence: settings.confidence
|
|
8773
|
+
}
|
|
8774
|
+
});
|
|
8775
|
+
const { pairs } = pairArms(rows, arms);
|
|
8776
|
+
const reliablyLower = [];
|
|
8777
|
+
const reliablyHigher = [];
|
|
8778
|
+
for (const metric of SKILL_EVAL_METRICS) {
|
|
8779
|
+
const other = [];
|
|
8780
|
+
const mine = [];
|
|
8781
|
+
for (const pair of pairs) {
|
|
8782
|
+
const before = pair.baseline.metrics?.[metric];
|
|
8783
|
+
const after = pair.treatment.metrics?.[metric];
|
|
8784
|
+
if (before == null || after == null) continue;
|
|
8785
|
+
other.push(before);
|
|
8786
|
+
mine.push(after);
|
|
8787
|
+
}
|
|
8788
|
+
if (mine.length === 0) continue;
|
|
8789
|
+
const reliably = (before, after) => decidePairedPromotion(before, after, {
|
|
8790
|
+
continuous: true,
|
|
8791
|
+
confidence: settings.confidence,
|
|
8792
|
+
seed: settings.seed
|
|
8793
|
+
}).promote;
|
|
8794
|
+
if (reliably(mine, other)) reliablyLower.push(metric);
|
|
8795
|
+
else if (reliably(other, mine)) reliablyHigher.push(metric);
|
|
8796
|
+
}
|
|
8797
|
+
return {
|
|
8798
|
+
process,
|
|
8799
|
+
reliablyLower,
|
|
8800
|
+
reliablyHigher
|
|
8801
|
+
};
|
|
8802
|
+
}
|
|
8803
|
+
const percent = (share) => `${Math.round(share * 1e3) / 10}%`;
|
|
8804
|
+
function ruleOf(settings, control) {
|
|
8805
|
+
const level = percent(settings.confidence);
|
|
8806
|
+
const floor = settings.floor === null ? "" : `, or at most ${percent(settings.floor)},`;
|
|
8807
|
+
return [
|
|
8808
|
+
`A suite that passes 100% is not evidence. When \`without\` passes at least ${percent(settings.ceiling)}${floor} of the cases with a known outcome, or no outcome is known, the suite cannot separate the arms: inconclusive, and no other arm runs.`,
|
|
8809
|
+
`Cut when blind judges reliably prefer \`without\`${control ? " or the control" : ""} over \`with\`.`,
|
|
8810
|
+
`Keep when blind judges reliably prefer \`with\` over \`without\`${control ? ", and over the control" : ""}.`,
|
|
8811
|
+
`Cut when the comparison with \`without\` rules out a net preference for \`with\` of ${percent(settings.smallestBenefit)} of cases and no process measure is reliably lower under \`with\`.`,
|
|
8812
|
+
"Otherwise inconclusive.",
|
|
8813
|
+
`Reliably preferred: the ${level} paired interval on (wins - losses) / judged cases excludes zero, the exact test agrees, and enough cases were judged for that test.`
|
|
8814
|
+
];
|
|
8815
|
+
}
|
|
8816
|
+
function decide(comparisons, settings) {
|
|
8817
|
+
const worse = comparisons.find((comparison) => comparison.preference.otherReliablyPreferred);
|
|
8818
|
+
if (worse !== void 0) {
|
|
8819
|
+
const { wins, losses, ties } = worse.preference;
|
|
8820
|
+
return {
|
|
8821
|
+
decision: "cut",
|
|
8822
|
+
reason: `Blind judges reliably prefer \`${worse.against}\` over \`with\`: ${losses} to ${wins}, ${ties} ties.`
|
|
8823
|
+
};
|
|
8824
|
+
}
|
|
8825
|
+
const [baseline, control] = comparisons;
|
|
8826
|
+
const { preference } = baseline;
|
|
8827
|
+
const tally = `${preference.wins} to ${preference.losses}, ${preference.ties} ties`;
|
|
8828
|
+
if (preference.withReliablyPreferred) {
|
|
8829
|
+
if (control === void 0 || control.preference.withReliablyPreferred) return {
|
|
8830
|
+
decision: "keep",
|
|
8831
|
+
reason: `Blind judges reliably prefer \`with\` over \`without\` (${tally})${control === void 0 ? "" : ` and over the control (${control.preference.wins} to ${control.preference.losses}, ${control.preference.ties} ties)`}.`
|
|
8832
|
+
};
|
|
8833
|
+
return {
|
|
8834
|
+
decision: "inconclusive",
|
|
8835
|
+
reason: `Blind judges prefer \`with\` over \`without\` (${tally}) but not reliably over the control (${control.preference.wins} to ${control.preference.losses}, ${control.preference.ties} ties): the gain may come from added text, not from what the unit says.`
|
|
8836
|
+
};
|
|
8837
|
+
}
|
|
8838
|
+
const { net } = preference;
|
|
8839
|
+
if (net === null) return {
|
|
8840
|
+
decision: "inconclusive",
|
|
8841
|
+
reason: "No pair of answers was judged."
|
|
8842
|
+
};
|
|
8843
|
+
if (!net.sufficient) return {
|
|
8844
|
+
decision: "inconclusive",
|
|
8845
|
+
reason: `${net.n} judged cases are fewer than the ${net.minimumPairs} the paired test needs.`
|
|
8846
|
+
};
|
|
8847
|
+
const interval = `${percent(net.low)} to ${percent(net.high)}`;
|
|
8848
|
+
if (net.high < settings.smallestBenefit) {
|
|
8849
|
+
if (baseline.reliablyLower.length === 0) return {
|
|
8850
|
+
decision: "cut",
|
|
8851
|
+
reason: `The net preference for \`with\` is ${interval} (${tally}), which rules out a gain of ${percent(settings.smallestBenefit)}, and no process measure is reliably lower.`
|
|
8852
|
+
};
|
|
8853
|
+
return {
|
|
8854
|
+
decision: "inconclusive",
|
|
8855
|
+
reason: `Answers are not preferred (net ${interval}; ${tally}), but ${baseline.reliablyLower.join(", ")} ${baseline.reliablyLower.length === 1 ? "is" : "are"} reliably lower under \`with\`: the unit may earn its place on cost, which this rule does not decide.`
|
|
8856
|
+
};
|
|
8857
|
+
}
|
|
8858
|
+
return {
|
|
8859
|
+
decision: "inconclusive",
|
|
8860
|
+
reason: `The net preference for \`with\` is ${interval} (${tally}): it includes both no preference and a gain of ${percent(settings.smallestBenefit)}. More cases would narrow it.`
|
|
8861
|
+
};
|
|
8862
|
+
}
|
|
8863
|
+
/**
|
|
8864
|
+
* Run the skill eval and return one decision with its evidence.
|
|
8865
|
+
*
|
|
8866
|
+
* `without` runs first on every case. When it already passes nearly all or
|
|
8867
|
+
* nearly none of them, the eval stops there: the remaining arms would cost runs
|
|
8868
|
+
* and could not change the answer. Otherwise `with` runs, then `control` when
|
|
8869
|
+
* asked for, and each pair of answers goes to the judge once, unlabeled, in an
|
|
8870
|
+
* order drawn from the seed before any judgment starts.
|
|
8871
|
+
*
|
|
8872
|
+
* Throws `ValidationError` on unusable options, before any callback runs.
|
|
8873
|
+
*/
|
|
8874
|
+
async function runSkillEval(options) {
|
|
8875
|
+
const settings = settingsOf(options);
|
|
8876
|
+
const { cases } = options;
|
|
8877
|
+
const ids = cases.map((testCase) => testCase.id);
|
|
8878
|
+
const failures = [];
|
|
8879
|
+
const runArm = async (arm, text) => {
|
|
8880
|
+
const outcomes = await mapConcurrent(cases, settings.concurrency, async (testCase) => {
|
|
8881
|
+
try {
|
|
8882
|
+
return checkedRun(await options.run(testCase, {
|
|
8883
|
+
arm,
|
|
8884
|
+
text
|
|
8885
|
+
}));
|
|
8886
|
+
} catch (error) {
|
|
8887
|
+
return {
|
|
8888
|
+
succeeded: false,
|
|
8889
|
+
error: errorMessage$1(error)
|
|
8890
|
+
};
|
|
8891
|
+
}
|
|
8892
|
+
});
|
|
8893
|
+
outcomes.forEach((outcome, index) => {
|
|
8894
|
+
if (!outcome.succeeded) failures.push({
|
|
8895
|
+
caseId: ids[index],
|
|
8896
|
+
step: { run: arm },
|
|
8897
|
+
error: outcome.error
|
|
8898
|
+
});
|
|
8899
|
+
});
|
|
8900
|
+
return outcomes;
|
|
8901
|
+
};
|
|
8902
|
+
const control = settings.controlText !== void 0;
|
|
8903
|
+
const report = (arms, headroom, comparisons, verdict) => ({
|
|
8904
|
+
unit: options.unit.name,
|
|
8905
|
+
cases: cases.length,
|
|
8906
|
+
seed: settings.seed,
|
|
8907
|
+
confidence: settings.confidence,
|
|
8908
|
+
smallestBenefit: settings.smallestBenefit,
|
|
8909
|
+
arms,
|
|
8910
|
+
headroom,
|
|
8911
|
+
comparisons,
|
|
8912
|
+
...verdict,
|
|
8913
|
+
rule: ruleOf(settings, control),
|
|
8914
|
+
failures
|
|
8915
|
+
});
|
|
8916
|
+
const without = await runArm("without", null);
|
|
8917
|
+
const headroom = headroomOf(without, ids, settings);
|
|
8918
|
+
if (headroom.verdict !== "separable") {
|
|
8919
|
+
const known = headroom.passed + headroom.failed;
|
|
8920
|
+
return report(["without"], headroom, [], {
|
|
8921
|
+
decision: "inconclusive",
|
|
8922
|
+
reason: headroom.verdict === "unknown" ? `No \`without\` run reported pass or fail, so headroom cannot be checked.` : `\`without\` passes ${headroom.passed} of ${known} cases with a known outcome: the suite cannot separate the arms. ${headroom.verdict === "saturated" ? "A suite that passes 100% is not evidence; add cases the baseline fails." : "Add cases the baseline can pass, or set headroom.floor to null for a unit meant to make these passable."}`
|
|
8923
|
+
});
|
|
8924
|
+
}
|
|
8925
|
+
const treated = await runArm("with", options.unit.text ?? null);
|
|
8926
|
+
const others = [{
|
|
8927
|
+
against: "without",
|
|
8928
|
+
outcomes: without
|
|
8929
|
+
}];
|
|
8930
|
+
if (settings.controlText !== void 0) others.push({
|
|
8931
|
+
against: "control",
|
|
8932
|
+
outcomes: await runArm("control", settings.controlText)
|
|
8933
|
+
});
|
|
8934
|
+
const draw = makeRng(settings.seed);
|
|
8935
|
+
const pairs = others.flatMap(({ against, outcomes }) => cases.map((testCase, index) => ({
|
|
8936
|
+
against,
|
|
8937
|
+
testCase,
|
|
8938
|
+
mine: treated[index],
|
|
8939
|
+
theirs: outcomes[index],
|
|
8940
|
+
withFirst: draw() < .5
|
|
8941
|
+
})));
|
|
8942
|
+
const judged = await mapConcurrent(pairs, settings.concurrency, async (pair) => {
|
|
8943
|
+
if (!pair.mine.succeeded || !pair.theirs.succeeded) return { choice: null };
|
|
8944
|
+
const [first, second] = pair.withFirst ? [pair.mine.value.answer, pair.theirs.value.answer] : [pair.theirs.value.answer, pair.mine.value.answer];
|
|
8945
|
+
try {
|
|
8946
|
+
const choice = await options.judge({
|
|
8947
|
+
case: pair.testCase,
|
|
8948
|
+
first,
|
|
8949
|
+
second
|
|
8950
|
+
});
|
|
8951
|
+
if (choice !== "first" && choice !== "second" && choice !== "tie") return {
|
|
8952
|
+
choice: null,
|
|
8953
|
+
error: `judge returned ${JSON.stringify(choice)}`
|
|
8954
|
+
};
|
|
8955
|
+
return { choice };
|
|
8956
|
+
} catch (error) {
|
|
8957
|
+
return {
|
|
8958
|
+
choice: null,
|
|
8959
|
+
error: errorMessage$1(error)
|
|
8960
|
+
};
|
|
8961
|
+
}
|
|
8962
|
+
});
|
|
8963
|
+
judged.forEach((judgment, index) => {
|
|
8964
|
+
const pair = pairs[index];
|
|
8965
|
+
if (judgment.error !== void 0) failures.push({
|
|
8966
|
+
caseId: pair.testCase.id,
|
|
8967
|
+
step: { judge: pair.against },
|
|
8968
|
+
error: judgment.error
|
|
8969
|
+
});
|
|
8970
|
+
});
|
|
8971
|
+
const withRows = armRows("with", treated, ids);
|
|
8972
|
+
const comparisons = others.map(({ against, outcomes }, position) => {
|
|
8973
|
+
const from = position * cases.length;
|
|
8974
|
+
return {
|
|
8975
|
+
against,
|
|
8976
|
+
preference: preferenceOf(pairs.slice(from, from + cases.length).map((pair, index) => ({
|
|
8977
|
+
withFirst: pair.withFirst,
|
|
8978
|
+
choice: judged[from + index].choice
|
|
8979
|
+
})), settings),
|
|
8980
|
+
...processOf(against, [...armRows(against, outcomes, ids), ...withRows], settings)
|
|
8981
|
+
};
|
|
8982
|
+
});
|
|
8983
|
+
return report([
|
|
8984
|
+
"without",
|
|
8985
|
+
"with",
|
|
8986
|
+
...control ? ["control"] : []
|
|
8987
|
+
], headroom, comparisons, decide(comparisons, settings));
|
|
8988
|
+
}
|
|
8989
|
+
// src/skill-eval/trace.ts
|
|
8990
|
+
/**
|
|
8991
|
+
* A recorded run as the process measures the skill eval compares. A caller
|
|
8992
|
+
* whose agent records into a {@link TraceStore} returns this from `run` instead
|
|
8993
|
+
* of counting tool calls and cost itself.
|
|
8994
|
+
*/
|
|
8995
|
+
/** What one response cost: the recorded cost, else the ledger's price for its tokens, else unknown. */
|
|
8996
|
+
function llmSpanCost(span) {
|
|
8997
|
+
if (span.costUsd !== void 0) return span.costUsd;
|
|
8998
|
+
if (span.inputTokens === void 0 || span.outputTokens === void 0) return null;
|
|
8999
|
+
const priced = costForUsage(span.model, {
|
|
9000
|
+
inputTokens: span.inputTokens,
|
|
9001
|
+
outputTokens: span.outputTokens,
|
|
9002
|
+
...span.cachedTokens === void 0 ? {} : { cachedTokens: span.cachedTokens },
|
|
9003
|
+
...span.cacheWriteTokens === void 0 ? {} : { cacheWriteTokens: span.cacheWriteTokens }
|
|
9004
|
+
});
|
|
9005
|
+
return priced.costUnknown ? null : priced.costUsd;
|
|
9006
|
+
}
|
|
9007
|
+
/**
|
|
9008
|
+
* Read one run's tool calls, tool errors, wall time and cost from a trace store.
|
|
9009
|
+
*
|
|
9010
|
+
* Wall time is null while the run has no end. Cost is null when the run
|
|
9011
|
+
* recorded no model call or any of its model calls cannot be priced: a partial
|
|
9012
|
+
* sum would read as a cheaper run. Throws when the store has no such run.
|
|
9013
|
+
*/
|
|
9014
|
+
async function skillEvalTraceFromRun(store, runId) {
|
|
9015
|
+
const run = await store.getRun(runId);
|
|
9016
|
+
if (run === void 0) throw new ValidationError(`skillEvalTraceFromRun: the store has no run '${runId}'`);
|
|
9017
|
+
const tools = await computeToolUseMetrics(store, runId);
|
|
9018
|
+
const costs = (await llmSpans(store, runId)).map(llmSpanCost);
|
|
9019
|
+
let costUsd = costs.length === 0 ? null : 0;
|
|
9020
|
+
for (const cost of costs) costUsd = costUsd === null || cost === null ? null : costUsd + cost;
|
|
9021
|
+
return {
|
|
9022
|
+
toolCalls: tools.totalCalls,
|
|
9023
|
+
toolErrors: Object.values(tools.byTool).reduce((errors, tool) => errors + tool.errors, 0),
|
|
9024
|
+
wallMs: await runMetricExtractor("durationMs")(run, store),
|
|
9025
|
+
costUsd
|
|
9026
|
+
};
|
|
9027
|
+
}
|
|
8579
9028
|
// src/steering-optimizer.ts
|
|
8580
9029
|
/**
|
|
8581
9030
|
* Rank already-evaluated steering variants.
|
|
@@ -8674,6 +9123,6 @@ function assertHasField(name, obj, field) {
|
|
|
8674
9123
|
actual: `keys: ${Object.keys(obj).join(", ")}`
|
|
8675
9124
|
};
|
|
8676
9125
|
}
|
|
8677
|
-
export { AGENT_PROFILE_KINDS, ATTESTATION_ALGORITHM, AgentEvalError, AnalystRegistry, BOOTSTRAP_GATE_MIN_N, BackendIntegrityError, BudgetBreachError, BudgetGuard, CODING_HARNESSES, ConfigError, CostAccountingIncompleteError, CostCeilingReachedError, CostLedger, CostTracker, CrossFamilyError, DEFAULT_BOUNDED_PROCESS_TIMEOUT_MS, DEFAULT_JUDGE_GATE_POLICY, DEFAULT_RED_TEAM_CORPUS, DEFAULT_TRACE_ANALYST_BUDGETS, DEFAULT_TRACE_ANALYST_KINDS, Dataset, ERROR_COUNT_PATTERNS, EquivalenceProtocolError, FAILURE_CLASSES, FAILURE_MODE_KIND_SPEC, FileSystemFeedbackTrajectoryStore, FileSystemRawProviderSink, FileSystemTraceStore, FindingsStore, HARNESS_NATIVE_MODEL, HeldOutGate, InMemoryFeedbackTrajectoryStore, InMemoryRawProviderSink, InMemoryTraceStore, JudgeError, JudgeGateRefusedError, LlmCallError, LlmResponseError, MODEL_PRICING, ModelSubstitutionError, MultiLayerVerifier, NoopRawProviderSink, NotFoundError, OUTPUT_VALUE, OtlpFileTraceStore, PairwiseSteeringOptimizer, ProductClient, PromptRegistry, REDACTION_VERSION, RunIntegrityError, RunRecordValidationError, SEMANTIC_CONCEPT_JUDGE_VERSION, TraceEmitter, UNKNOWN_MODEL, VERIFICATION_STRATEGIES, VERIFICATION_STRATEGY_SOURCES, ValidationError, acquisitionPlansForKnowledgeGaps, addCalibrationVerdicts, agentProfileCellKey, agentProfileHash, agentProfileId, aggregateJudgeVerdicts, aggregateRunScore, analystRunDigest, analystRunToFeedbackTrajectory, analystRunToReviewRequests, analyzeAntiSlop, analyzeRuns, analyzeSeries, analyzeTraces, argHash, assertCapabilityHeadroom, assertContains, assertCrossFamily, assertCrossFamilyServed, assertEventCount, assertExists, assertHasField, assertHttpOk, assertJudgeMayGate, assertLatencyUnder, assertNoHiddenLeak, assertNotContains, assertProductBenchmarkRun, assertRealBackend, assertRunCaptured, assertServedModel, assertServedModels, assertSingleBackend, assertStatus, assessShareSafety, assignFeedbackSplit, attest, benjaminiHochberg, blendHeldout, blockingKnowledgeEval, bonferroni, bootstrapCi, budgetBreachView, buildAgentProfileCell, buildDefaultAnalystRegistry, buildReflectionPrompt, buildTraceInsightContext, buildTraceInsightPrompt, buildTrajectory, calibrateJudge, calibrateJudgeContinuous, canonicalJson, capabilityHeadroom, captureFetchToRawSink, certificationEvidenceDigest, checkCanaries, checkServedModel, checkTraceContracts, chiSquared, chiSquaredPValue, clamp01, classifyFailure, classifyFailureReason, cliffsDelta, cohensD, comparePairedArms, compileTraceContractSpec, completionVerdict, computeFindingId, computeToolUseMetrics, confidenceInterval, contentHash, continuousAgreement, controlRunToFeedbackTrajectory, corpusInterRaterAgreement, corpusInterRaterAgreementFromJudgeScores, costForTokenPricing, costForUsage, costReceiptFromLlm, costReceiptFromLlmError, createAntiSlopJudge, createBoundedTraceAnalysisStore, createChatClient, createChatTraceEngine, createDspyRlmTraceEngine, createFeedbackTrajectory, createLlmCorrectnessChecker, createLlmReviewer, createTraceAnalyst, decidePairedPromotion, defineAgentEval, defineEquivalenceCheck, deployGateLayer, describeServedModelCheck, describeTraceInsightScope, diffFindings, diffScorecard, discoverPersonas, domainEvidencePattern, dominates, eProcess, ensembleJudge, equivalenceVerdict, errorStreakDetector, estimateCost, estimateTokens, evaluateActionPolicy, evaluateInterimReleaseConfidence, evaluateOracles, evaluateReleaseConfidence, evaluateTraceContract, expandProfileAxes, explainTraceContract, exportProductBenchmark, exportProductBenchmarkRuns, exportRunAsOtlp, extractErrorCount, extractProducedState, extractUsage, extractUsageFromSse, failureBlame, failureClusterView, feedbackTrajectoriesToDatasetScenarios, feedbackTrajectoriesToOptimizerRows, feedbackTrajectoryToOptimizerRow, fileVerdictCache, fisherExactTwoSided, formatScorecardDiff, gainHistogram, gateTreatmentApplied, gradeSemanticStatus, groupRunsByAgentProfileCell, harnessAxisOf, hashContent, hashJson, holm, inMemoryReviewStore, inferDomainKeywords, interRaterReliability, interpretCliffs, iqr, isJudgeSpan, isLlmSpan, isModelPriced, isRunRecord, isToolSpan, isTransientLlmError, jsonShape, jsonlReviewStore, jsonlRunRecordBackend, judgeAgreementView, judgeFamily, judgeGateDecision, judgeSpans, knowledgeReadinessTracePayload, leaderboard, linearRegressionSlope, lintTraceContractSpec, llmJudge, loadScorecard, localCommandRunner, makeFinding, makePolicyEditCandidateRecord, makeProposalFinding, manifestContentDigest, mannWhitneyU, maximumChargeForLlmRequest, mcnemar, mcnemarPower, mcnemarRequiredN, meanConfidenceInterval, measureJudgeAgreement, minimumPairsForPairedDeltaTest, mintRolloutRows, modelHasSnapshot, mulberry32, normalTwoSidedPValue, objectiveEval, observeAll, otlpTextToTraceAnalysisStore, pairArms, pairRunRecords, pairedBootstrap, pairedCohensDz, pairedDeltaTest, pairedEvalueSequence, pairedMde, pairedPromotionPower, pairedRiskDifference, pairedRiskDifferenceExact, pairedRiskDifferenceScore, pairedSignTest, pairedTTest, paretoFrontier, parseReflectionResponse, parseRunRecordSafe, partialCredit, partitionHeldOut, passAtK, passHatK, pearsonR, percentileNearestRank, preflightModels, productBenchmarkRepoIdentity, profile_exports as profile, projectRuntimeTrajectoryEvidence, proposeSynthesisTargets, ranks, readProductBenchmarkManifest, recordRuns, recordRunsToScorecard, redTeamDataset, redTeamReport, redact, redactForShare, redactText, registerCalibrationSet, renderPreferenceMemoryMarkdown, repeatedActionDetector, requiredPairedSampleSize, requiredPairsForPairedPromotion, requiredSampleSize, resolveModelPricing, resolveSeat, rocAuc, runAgentControlLoop, runBoundedProcess, runCampaign, runCanaries, runEquivalenceCheck, runEvalCampaign, runIntentMatchJudge, runKeywordCoverageJudge, runKeywordCoverageJudgeUrl, runProposeReview, runSemanticConceptJudge, runTaskScore, runsForScenario, sampleMedian, scoreKnowledgeReadiness, scoreRedTeamOutput, scoreTraceInsightReadiness, seatPresets, selfImprove, sequentialCrossingHorizon, sequentialPairedPower, shareAllowed, snapshotFromJudgeAgreement, spanRecordsToTraceAnalysisStore, spearmanR, stripFencedJson, studentTCritical, studentTTwoSidedPValue, subjectiveEval, summarizeBackendIntegrity, summarizeDistribution, summarizeNumberSeries, summarizePreferenceMemory, summarizeSample, summaryTable, toAgentProfileJson, tokenizeDomainWords, toolSpansToTraceAnalysisStore, toolWasteView, traceContract, trajectoryTimingBoundary, transientDispatchFailure, twoByTwoPValue, userQuestionsForKnowledgeGaps, validateRunRecord, verbosityBias, verifyAgentProfileCell, verifyAttestation, verifyCompletion, viteDeployRunner, weightedComposite, weightedMean, welchsTTest, wilcoxonSignedRank, wilson, withAssignedFeedbackSplit, withJudgeRetry, wranglerDeployRunner };
|
|
9126
|
+
export { AGENT_PROFILE_KINDS, ATTESTATION_ALGORITHM, AgentEvalError, AnalystRegistry, BOOTSTRAP_GATE_MIN_N, BackendIntegrityError, BudgetBreachError, BudgetGuard, CODING_HARNESSES, ConfigError, CostAccountingIncompleteError, CostCeilingReachedError, CostLedger, CostTracker, CrossFamilyError, DEFAULT_BOUNDED_PROCESS_TIMEOUT_MS, DEFAULT_JUDGE_GATE_POLICY, DEFAULT_RED_TEAM_CORPUS, DEFAULT_TRACE_ANALYST_BUDGETS, DEFAULT_TRACE_ANALYST_KINDS, Dataset, ERROR_COUNT_PATTERNS, EquivalenceProtocolError, FAILURE_CLASSES, FAILURE_MODE_KIND_SPEC, FileSystemFeedbackTrajectoryStore, FileSystemRawProviderSink, FileSystemTraceStore, FindingsStore, HARNESS_NATIVE_MODEL, HeldOutGate, InMemoryFeedbackTrajectoryStore, InMemoryRawProviderSink, InMemoryTraceStore, JudgeError, JudgeGateRefusedError, LlmCallError, LlmResponseError, MODEL_PRICING, ModelSubstitutionError, MultiLayerVerifier, NoopRawProviderSink, NotFoundError, OUTPUT_VALUE, OtlpFileTraceStore, PairwiseSteeringOptimizer, ProductClient, PromptRegistry, REDACTION_VERSION, RunIntegrityError, RunRecordValidationError, SEMANTIC_CONCEPT_JUDGE_VERSION, TraceEmitter, UNKNOWN_MODEL, VERIFICATION_STRATEGIES, VERIFICATION_STRATEGY_SOURCES, ValidationError, acquisitionPlansForKnowledgeGaps, addCalibrationVerdicts, agentProfileCellKey, agentProfileHash, agentProfileId, aggregateJudgeVerdicts, aggregateRunScore, analystRunDigest, analystRunToFeedbackTrajectory, analystRunToReviewRequests, analyzeAntiSlop, analyzeRuns, analyzeSeries, analyzeTraces, argHash, assertCapabilityHeadroom, assertContains, assertCrossFamily, assertCrossFamilyServed, assertEventCount, assertExists, assertHasField, assertHttpOk, assertJudgeMayGate, assertLatencyUnder, assertNoHiddenLeak, assertNotContains, assertProductBenchmarkRun, assertRealBackend, assertRunCaptured, assertServedModel, assertServedModels, assertSingleBackend, assertStatus, assessShareSafety, assignFeedbackSplit, attest, benjaminiHochberg, blendHeldout, blockingKnowledgeEval, bonferroni, bootstrapCi, budgetBreachView, buildAgentProfileCell, buildDefaultAnalystRegistry, buildReflectionPrompt, buildTraceInsightContext, buildTraceInsightPrompt, buildTrajectory, calibrateJudge, calibrateJudgeContinuous, canonicalJson, capabilityHeadroom, captureFetchToRawSink, certificationEvidenceDigest, checkCanaries, checkServedModel, checkTraceContracts, chiSquared, chiSquaredPValue, clamp01, classifyFailure, classifyFailureReason, cliffsDelta, cohensD, comparePairedArms, compileTraceContractSpec, completionVerdict, computeFindingId, computeToolUseMetrics, confidenceInterval, contentHash, continuousAgreement, controlRunToFeedbackTrajectory, corpusInterRaterAgreement, corpusInterRaterAgreementFromJudgeScores, costForTokenPricing, costForUsage, costReceiptFromLlm, costReceiptFromLlmError, createAntiSlopJudge, createBoundedTraceAnalysisStore, createChatClient, createChatTraceEngine, createDspyRlmTraceEngine, createFeedbackTrajectory, createLlmCorrectnessChecker, createLlmReviewer, createTraceAnalyst, decidePairedPromotion, defineAgentEval, defineEquivalenceCheck, deployGateLayer, describeServedModelCheck, describeTraceInsightScope, diffFindings, diffScorecard, discoverPersonas, domainEvidencePattern, dominates, eProcess, ensembleJudge, equivalenceVerdict, errorStreakDetector, estimateCost, estimateTokens, evaluateActionPolicy, evaluateInterimReleaseConfidence, evaluateOracles, evaluateReleaseConfidence, evaluateTraceContract, expandProfileAxes, explainTraceContract, exportProductBenchmark, exportProductBenchmarkRuns, exportRunAsOtlp, extractErrorCount, extractProducedState, extractUsage, extractUsageFromSse, failureBlame, failureClusterView, feedbackTrajectoriesToDatasetScenarios, feedbackTrajectoriesToOptimizerRows, feedbackTrajectoryToOptimizerRow, fileVerdictCache, fisherExactTwoSided, formatScorecardDiff, gainHistogram, gateTreatmentApplied, gradeSemanticStatus, groupRunsByAgentProfileCell, harnessAxisOf, hashContent, hashJson, holm, inMemoryReviewStore, inferDomainKeywords, interRaterReliability, interpretCliffs, iqr, isJudgeSpan, isLlmSpan, isModelPriced, isRunRecord, isToolSpan, isTransientLlmError, jsonShape, jsonlReviewStore, jsonlRunRecordBackend, judgeAgreementView, judgeFamily, judgeGateDecision, judgeSpans, knowledgeReadinessTracePayload, leaderboard, linearRegressionSlope, lintTraceContractSpec, llmJudge, loadScorecard, localCommandRunner, makeFinding, makePolicyEditCandidateRecord, makeProposalFinding, manifestContentDigest, mannWhitneyU, maximumChargeForLlmRequest, mcnemar, mcnemarPower, mcnemarRequiredN, meanConfidenceInterval, measureJudgeAgreement, minimumPairsForPairedDeltaTest, mintRolloutRows, modelHasSnapshot, mulberry32, normalTwoSidedPValue, objectiveEval, observeAll, otlpTextToTraceAnalysisStore, pairArms, pairRunRecords, pairedBootstrap, pairedCohensDz, pairedDeltaTest, pairedEvalueSequence, pairedMde, pairedPromotionPower, pairedRiskDifference, pairedRiskDifferenceExact, pairedRiskDifferenceScore, pairedSignTest, pairedTTest, paretoFrontier, parseReflectionResponse, parseRunRecordSafe, partialCredit, partitionHeldOut, passAtK, passHatK, pearsonR, percentileNearestRank, preflightModels, productBenchmarkRepoIdentity, profile_exports as profile, projectRuntimeTrajectoryEvidence, proposeSynthesisTargets, ranks, readProductBenchmarkManifest, recordRuns, recordRunsToScorecard, redTeamDataset, redTeamReport, redact, redactForShare, redactText, registerCalibrationSet, renderPreferenceMemoryMarkdown, repeatedActionDetector, requiredPairedSampleSize, requiredPairsForPairedPromotion, requiredSampleSize, resolveModelPricing, resolveSeat, rocAuc, runAgentControlLoop, runBoundedProcess, runCampaign, runCanaries, runEquivalenceCheck, runEvalCampaign, runIntentMatchJudge, runKeywordCoverageJudge, runKeywordCoverageJudgeUrl, runProposeReview, runSemanticConceptJudge, runSkillEval, runTaskScore, runsForScenario, sampleMedian, scoreKnowledgeReadiness, scoreRedTeamOutput, scoreTraceInsightReadiness, seatPresets, selfImprove, sequentialCrossingHorizon, sequentialPairedPower, shareAllowed, skillEvalTraceFromRun, snapshotFromJudgeAgreement, spanRecordsToTraceAnalysisStore, spearmanR, stripFencedJson, studentTCritical, studentTTwoSidedPValue, subjectiveEval, summarizeBackendIntegrity, summarizeDistribution, summarizeNumberSeries, summarizePreferenceMemory, summarizeSample, summaryTable, toAgentProfileJson, tokenizeDomainWords, toolSpansToTraceAnalysisStore, toolWasteView, traceContract, trajectoryTimingBoundary, transientDispatchFailure, twoByTwoPValue, userQuestionsForKnowledgeGaps, validateRunRecord, verbosityBias, verifyAgentProfileCell, verifyAttestation, verifyCompletion, viteDeployRunner, weightedComposite, weightedMean, welchsTTest, wilcoxonSignedRank, wilson, withAssignedFeedbackSplit, withJudgeRetry, wranglerDeployRunner };
|
|
8678
9127
|
|
|
8679
9128
|
//# sourceMappingURL=index.js.map
|