@tangle-network/agent-eval 0.100.1 → 0.101.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/dist/adapters/http.d.ts +1 -1
- package/dist/adapters/langchain.d.ts +1 -1
- package/dist/adapters/otel.d.ts +1 -1
- package/dist/campaign/index.d.ts +58 -8
- package/dist/campaign/index.js +207 -34
- package/dist/campaign/index.js.map +1 -1
- package/dist/chunk-63MBSQTX.js +350 -0
- package/dist/chunk-63MBSQTX.js.map +1 -0
- package/dist/{chunk-G7IB3GJ5.js → chunk-CHIFZIQD.js} +3 -3
- package/dist/{chunk-VWQ6PO5O.js → chunk-GUII3E73.js} +54 -1
- package/dist/{chunk-VWQ6PO5O.js.map → chunk-GUII3E73.js.map} +1 -1
- package/dist/{chunk-2KTBHICD.js → chunk-NK77GPUH.js} +3 -3
- package/dist/chunk-NK77GPUH.js.map +1 -0
- package/dist/{chunk-QZYXA7ZO.js → chunk-X5OUZB4T.js} +2 -2
- package/dist/{chunk-HRGTA6U5.js → chunk-XIOQHCHU.js} +256 -32
- package/dist/chunk-XIOQHCHU.js.map +1 -0
- package/dist/contract/index.d.ts +6 -6
- package/dist/contract/index.js +7 -7
- package/dist/{gepa-BRgNnmGZ.d.ts → gepa-CEy1AIWp.d.ts} +36 -2
- package/dist/hosted/index.d.ts +1 -1
- package/dist/index.d.ts +102 -7
- package/dist/index.js +99 -154
- package/dist/index.js.map +1 -1
- package/dist/multishot/index.d.ts +1 -1
- package/dist/openapi.json +1 -1
- package/dist/{pre-registration-DB8oDqZJ.d.ts → pre-registration-BjGZf9YA.d.ts} +1 -1
- package/dist/product-benchmark/index.d.ts +144 -0
- package/dist/product-benchmark/index.js +23 -0
- package/dist/{provenance-B0SZw1z2.d.ts → provenance-DdfmVfqR.d.ts} +2 -2
- package/dist/rl.d.ts +1 -1
- package/dist/{run-campaign-OWCFOEQG.js → run-campaign-HG4WTSDH.js} +4 -2
- package/dist/run-campaign-HG4WTSDH.js.map +1 -0
- package/dist/{types-Cv1bo4_a.d.ts → types-fWqEJm7h.d.ts} +3 -0
- package/docs/concepts.md +1 -0
- package/docs/eval-fixtures.md +115 -0
- package/docs/feature-guide.md +4 -0
- package/package.json +6 -1
- package/dist/chunk-2KTBHICD.js.map +0 -1
- package/dist/chunk-HRGTA6U5.js.map +0 -1
- /package/dist/{chunk-G7IB3GJ5.js.map → chunk-CHIFZIQD.js.map} +0 -0
- /package/dist/{chunk-QZYXA7ZO.js.map → chunk-X5OUZB4T.js.map} +0 -0
- /package/dist/{run-campaign-OWCFOEQG.js.map → product-benchmark/index.js.map} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -18,8 +18,8 @@ import { A as AgentEvalError, J as JudgeError, a as ConfigError } from './errors
|
|
|
18
18
|
export { b as AgentEvalErrorCode, C as CaptureIntegrityError, N as NotFoundError, R as ReplayError, V as ValidationError, c as VerificationError } from './errors-CzMUYo7b.js';
|
|
19
19
|
import { b as FeedbackLabel, F as FeedbackTrajectoryStore, a as FeedbackTrajectory } from './feedback-trajectory-BxY0cKfs.js';
|
|
20
20
|
export { c as FeedbackArtifactType, d as FeedbackAttempt, e as FeedbackLabelKind, f as FeedbackLabelSource, g as FeedbackOptimizerRow, h as FeedbackOutcome, i as FeedbackReplayAdapter, j as FeedbackReplayResult, k as FeedbackSeverity, l as FeedbackSplitPolicy, m as FeedbackTask, n as FeedbackTrajectoryFilter, o as FileSystemFeedbackTrajectoryStore, I as InMemoryFeedbackTrajectoryStore, P as PreferenceMemoryEntry, p as ProposedSideEffect, q as assignFeedbackSplit, r as controlRunToFeedbackTrajectory, s as createFeedbackTrajectory, t as feedbackTrajectoriesToDatasetScenarios, u as feedbackTrajectoriesToOptimizerRows, v as feedbackTrajectoryToDatasetScenario, w as feedbackTrajectoryToOptimizerRow, x as parseFeedbackTrajectoriesJsonl, y as renderPreferenceMemoryMarkdown, z as replayFeedbackTrajectories, A as replayFeedbackTrajectory, B as serializeFeedbackTrajectoriesJsonl, C as summarizePreferenceMemory, D as withAssignedFeedbackSplit } from './feedback-trajectory-BxY0cKfs.js';
|
|
21
|
-
import { b as CorrectnessChecker } from './pre-registration-
|
|
22
|
-
export { A as ArtifactCheckArtifact, d as ArtifactEventLike, e as ArtifactValidator, f as BackendIntegrityError, B as BackendIntegrityReport, C as CompletionRequirement, a as CompletionVerdict, H as HypothesisManifest, g as HypothesisResult, h as LlmCorrectnessCheckerOpts, L as LlmJudgeDimension, c as LlmJudgeOptions, i as ProducedProposal, P as ProducedState, j as ProposalEventLike, k as RequirementCheck, R as RuntimeEventLike, m as SatisfiedBy, S as SignedManifest, n as SignedManifestAlgo, T as TaskGold, o as ToolCallEventLike, V as ValidationContext, p as ValidationIssue, q as ValidationResult, r as assertRealBackend, s as byteLengthRange, t as canonicalize, u as completionVerdict, v as composeValidators, w as containsAll, x as createLlmCorrectnessChecker, y as createTokenRecallChecker, z as evaluateHypothesis, D as extractProducedState, E as hashJson, F as jsonHasKeys, l as llmJudge, G as parseCorrectnessResponse, I as regexMatch, J as signManifest, K as summarizeBackendIntegrity, M as verifyCompletion, N as verifyManifest } from './pre-registration-
|
|
21
|
+
import { b as CorrectnessChecker } from './pre-registration-BjGZf9YA.js';
|
|
22
|
+
export { A as ArtifactCheckArtifact, d as ArtifactEventLike, e as ArtifactValidator, f as BackendIntegrityError, B as BackendIntegrityReport, C as CompletionRequirement, a as CompletionVerdict, H as HypothesisManifest, g as HypothesisResult, h as LlmCorrectnessCheckerOpts, L as LlmJudgeDimension, c as LlmJudgeOptions, i as ProducedProposal, P as ProducedState, j as ProposalEventLike, k as RequirementCheck, R as RuntimeEventLike, m as SatisfiedBy, S as SignedManifest, n as SignedManifestAlgo, T as TaskGold, o as ToolCallEventLike, V as ValidationContext, p as ValidationIssue, q as ValidationResult, r as assertRealBackend, s as byteLengthRange, t as canonicalize, u as completionVerdict, v as composeValidators, w as containsAll, x as createLlmCorrectnessChecker, y as createTokenRecallChecker, z as evaluateHypothesis, D as extractProducedState, E as hashJson, F as jsonHasKeys, l as llmJudge, G as parseCorrectnessResponse, I as regexMatch, J as signManifest, K as summarizeBackendIntegrity, M as verifyCompletion, N as verifyManifest } from './pre-registration-BjGZf9YA.js';
|
|
23
23
|
export { DataAcquisitionPlan, KnowledgeAcquisitionMode, KnowledgeBundle, KnowledgeFallbackPolicy, KnowledgeFreshness, KnowledgeImportance, KnowledgeReadinessReport, KnowledgeRecommendedAction, KnowledgeRequirement, KnowledgeRequirementCategory, KnowledgeResponsibleSurface, KnowledgeSensitivity, ScoreKnowledgeReadinessOptions, UserQuestion, acquisitionPlansForKnowledgeGaps, blockingKnowledgeEval, knowledgeReadinessTracePayload, scoreKnowledgeReadiness, userQuestionsForKnowledgeGaps } from './knowledge/index.js';
|
|
24
24
|
import { h as ReleaseConfidenceThresholds, f as ReleaseConfidenceScorecard } from './release-report-B1tA6pKu.js';
|
|
25
25
|
export { A as ActionableSideInfo, o as AsiSeverity, B as BootstrapOptions, a as BootstrapResult, J as JudgeReplayGateArgs, R as ReleaseConfidenceAxis, b as ReleaseConfidenceAxisName, c as ReleaseConfidenceInput, d as ReleaseConfidenceIssue, e as ReleaseConfidenceMetrics, g as ReleaseConfidenceStatus, i as ReleaseTraceEvidence, j as RenderReleaseReportOptions, V as Verdict, k as assertReleaseConfidence, l as bootstrapCi, m as evaluateReleaseConfidence, n as judgeReplayGate, r as renderReleaseReport } from './release-report-B1tA6pKu.js';
|
|
@@ -30,7 +30,7 @@ import { a as AnalyzeTracesInput, A as AnalyzeTracesOptions, b as AnalyzeTracesR
|
|
|
30
30
|
export { c as AnalyzeTracesTurnSnapshot, d as analyzeTraces } from './analyst-C8HHvfJp.js';
|
|
31
31
|
import { a as TraceAnalystSpan } from './store-C1YxJDEK.js';
|
|
32
32
|
export { D as DEFAULT_TRACE_ANALYST_BUDGETS, b as DatasetOverview, E as ErrorCluster, Q as QueryTracesPage, S as SearchSpanResult, c as SearchTraceResult, d as SpanMatchRecord, e as TRACE_ANALYST_TRUNCATION_MARKER_PREFIX, T as TraceAnalysisStore, f as TraceAnalystByteBudgets, g as TraceAnalystFilters, h as TraceAnalystSpanKind, i as TraceAnalystSpanStatus, j as TraceAnalystTraceSummary, V as ViewSpansResult, k as ViewTraceOversized, l as ViewTraceResult } from './store-C1YxJDEK.js';
|
|
33
|
-
import { a as JudgeConfig, J as JudgeScore, S as Scenario$1, g as Gate } from './types-
|
|
33
|
+
import { a as JudgeConfig, J as JudgeScore, S as Scenario$1, g as Gate } from './types-fWqEJm7h.js';
|
|
34
34
|
import { A as AnalyzeRunsOptions } from './analyze-runs-BlJRBniC.js';
|
|
35
35
|
import { S as SteeringBundle } from './harness-optimizer-mOl9XX_O.js';
|
|
36
36
|
export { D as DEFAULT_HARNESS_OBJECTIVES, H as HarnessAdapter, a as HarnessExperimentConfig, b as HarnessExperimentResult, c as HarnessIntervention, d as HarnessRunRequest, e as HarnessRunResult, f as HarnessScenario, g as HarnessSelection, h as HarnessVariant, i as HarnessVariantReport, M as MeasurementPolicy, j as SteeringDelta, k as SteeringRolePrompt, W as WorkflowTopology, m as mergeSteeringBundle, r as renderSteeringText, l as runHarnessExperiment, s as selectHarnessVariant, n as summarizeHarnessResults } from './harness-optimizer-mOl9XX_O.js';
|
|
@@ -52,8 +52,8 @@ import { a as BaselineReport } from './baseline-Bbid3WoO.js';
|
|
|
52
52
|
export { B as BaselineOptions, M as MetricSamples, b as MetricVerdict, T as ToolStats, d as ToolUseMetrics, e as ToolUseOptions, f as compareToBaseline, c as computeToolUseMetrics, i as iqr, w as welchsTTest } from './baseline-Bbid3WoO.js';
|
|
53
53
|
import { a as TrajectoryStep, T as Trajectory } from './trajectory-2TkpSEVh.js';
|
|
54
54
|
export { b as buildTrajectory } from './trajectory-2TkpSEVh.js';
|
|
55
|
-
import { AgentProfile } from '@tangle-network/agent-interface';
|
|
56
|
-
export { AgentProfile } from '@tangle-network/agent-interface';
|
|
55
|
+
import { HarnessType, AgentProfile } from '@tangle-network/agent-interface';
|
|
56
|
+
export { AgentProfile, HarnessType } from '@tangle-network/agent-interface';
|
|
57
57
|
import { b as ChannelRollup, C as CostLedger } from './cost-ledger-DuSqlw5B.js';
|
|
58
58
|
export { a as CostChannel, c as CostLedgerEntry, d as CostLedgerSummary, e as CostResult, f as CostUsage, g as costForUsage, m as modelPriceKey } from './cost-ledger-DuSqlw5B.js';
|
|
59
59
|
export { D as Direction, O as Objective, P as ParetoResult, c as crowdingDistance, d as dominates, p as paretoFrontier, a as paretoFrontierWithCrowding, s as scalarScore } from './pareto-E-pembql.js';
|
|
@@ -75,8 +75,9 @@ export { C as CallbackResearcher, d as CallbackResearcherOptions, e as CampaignF
|
|
|
75
75
|
export { G as GainDistributionBin, a as GainDistributionFigureSpec, b as GainDistributionOptions, m as GateDecision, n as GateEvidence, H as HeldOutGate, o as HeldOutGateConfig, q as HeldOutGateRejectionCode, P as ParetoFigureSpec, c as ParetoPoint, R as RESEARCH_REPORT_HARD_PAIR_FLOOR, d as ResearchReport, e as ResearchReportCandidate, f as ResearchReportDecision, g as ResearchReportMethodology, h as ResearchReportOptions, i as ResearchReportRecommendation, S as SummaryTable, j as SummaryTableOptions, k as SummaryTableRow, l as gainHistogram, p as paretoChart, r as researchReport, s as summaryTable } from './summary-report-C4uzRWh8.js';
|
|
76
76
|
export { L as LockedJsonlAppender } from './testing-C21CHsq2.js';
|
|
77
77
|
export { I as InterimReleaseConfidence, a as InterimReleaseConfidenceInput, P as PairedEvalueOptions, b as PairedEvalueSequence, c as PairedEvalueStep, S as SequentialDecision, e as evaluateInterimReleaseConfidence, p as pairedEvalueSequence } from './sequential-5iSVfzl2.js';
|
|
78
|
-
import {
|
|
78
|
+
import { j as GepaProposerConstraints, b as RunImprovementLoopResult } from './gepa-CEy1AIWp.js';
|
|
79
79
|
export { IntegrityResult, IntegrityViolation, JourneySpec, PerfBaseline, PerfGateResult, PerfRegression, PerfScenario, PerfStat, ScenarioAxes, assertRecordIntegrity, checkRecordIntegrity, expandMatrix, gatePerf, scenarioKey, summarizeRecords } from './perf/index.js';
|
|
80
|
+
export { AgentProfileRuntimeReceipt, ProductBenchmarkArm, ProductBenchmarkArtifactPaths, ProductBenchmarkBudgets, ProductBenchmarkManifest, ProductBenchmarkProfileRef, ProductBenchmarkRecord, ProductBenchmarkRepoRef, ProductBenchmarkRunInput, ProductBenchmarkScenario, ProductBenchmarkSplit, ProductBenchmarkSubstrateVersions, ProductBenchmarkValidationReport, RuntimeResolution, findProductBenchmarkArtifacts, productBenchmarkIntegrityFailures, productBenchmarkSplits, readProductBenchmarkManifest, readProductBenchmarkRecords, validateProductBenchmarkManifest, validateProductBenchmarkRecord, validateProductBenchmarkRun } from './product-benchmark/index.js';
|
|
80
81
|
import '@ax-llm/ax';
|
|
81
82
|
import 'zod';
|
|
82
83
|
import './insight-report-C02J3q4T.js';
|
|
@@ -1969,6 +1970,55 @@ declare function blendHeldout(heldoutPassRate: number, judgeScore: number, weigh
|
|
|
1969
1970
|
*/
|
|
1970
1971
|
declare function withHeldoutBlend<TArtifact>(score: (input: JudgeScoreInput<TArtifact>) => JudgeScore | Promise<JudgeScore>, heldoutPassRate: (artifact: TArtifact) => number, weights?: BlendWeights): (input: JudgeScoreInput<TArtifact>) => Promise<JudgeScore>;
|
|
1971
1972
|
|
|
1973
|
+
/**
|
|
1974
|
+
* The agentic coding harnesses an eval sweeps by default — the ones we care about
|
|
1975
|
+
* ranking. This is the SINGLE source of that list; consumers import it instead of
|
|
1976
|
+
* re-declaring their own (a re-declared list is how the fleet drifts). Pass an
|
|
1977
|
+
* explicit `harnesses` (e.g. `harnessTypeSchema.options` for literally every known
|
|
1978
|
+
* harness) to widen beyond these.
|
|
1979
|
+
*/
|
|
1980
|
+
declare const CODING_HARNESSES: readonly HarnessType[];
|
|
1981
|
+
interface ProfileAxisSpec {
|
|
1982
|
+
/** The domain profile to sweep. Its prompt/tools/skills are held fixed; only the
|
|
1983
|
+
* harness and model vary. `model.default` is the fallback model. */
|
|
1984
|
+
base: AgentProfile;
|
|
1985
|
+
/** Harnesses to cross. Default: {@link CODING_HARNESSES}. */
|
|
1986
|
+
harnesses?: readonly HarnessType[];
|
|
1987
|
+
/** Models to cross. Default: `[base.model.default]` — one model, i.e. today's
|
|
1988
|
+
* single-model behaviour, so omitting this never changes an existing run. */
|
|
1989
|
+
models?: readonly string[];
|
|
1990
|
+
/** Keep (harness, model) pairs the harness can't run instead of dropping them.
|
|
1991
|
+
* Default: drop (via `harnessSupportsModel`), so a vendor-locked harness paired
|
|
1992
|
+
* with a foreign model doesn't become a guaranteed-failing cell. */
|
|
1993
|
+
keepIncompatible?: boolean;
|
|
1994
|
+
}
|
|
1995
|
+
/**
|
|
1996
|
+
* Expand a base profile across the harness × model matrix into the `AgentProfile[]`
|
|
1997
|
+
* that `runProfileMatrix` / `selfImprove` score — the ONE place "which harnesses ×
|
|
1998
|
+
* which models do we evaluate" lives, so no product hand-rolls its own harness list
|
|
1999
|
+
* or column→profile mapping (the pattern that let those copies drift and silently
|
|
2000
|
+
* break the harness pivot).
|
|
2001
|
+
*
|
|
2002
|
+
* Each cell clones `base`, sets `model.default`, and stamps `metadata.harness` +
|
|
2003
|
+
* `metadata.harnessModel` (both hash-bearing, so every cell gets a distinct
|
|
2004
|
+
* `agentProfileId` row and results join back by harness/model via {@link harnessAxisOf}
|
|
2005
|
+
* with no hand-recomputed key). Incompatible pairs are dropped unless `keepIncompatible`.
|
|
2006
|
+
*
|
|
2007
|
+
* Omit `harnesses`/`models` to sweep the full default set — the "turn it on for
|
|
2008
|
+
* everything we care about" switch, identical in shape whether one harness or all.
|
|
2009
|
+
*/
|
|
2010
|
+
declare function expandProfileAxes(spec: ProfileAxisSpec): AgentProfile[];
|
|
2011
|
+
/**
|
|
2012
|
+
* Read the (harness, model) a matrix cell ran under, off a profile or a result row's
|
|
2013
|
+
* profile — the join-back for a `byHarness` pivot. Returns undefined when the profile
|
|
2014
|
+
* wasn't produced by {@link expandProfileAxes}. Callers group `result.byProfile` by
|
|
2015
|
+
* this instead of recomputing an id (recomputing the wrong key is what broke the pivot
|
|
2016
|
+
* in the hand-rolled copies).
|
|
2017
|
+
*/
|
|
2018
|
+
declare function harnessAxisOf(profile: Pick<AgentProfile, 'metadata'>): {
|
|
2019
|
+
harness: HarnessType;
|
|
2020
|
+
model: string;
|
|
2021
|
+
} | undefined;
|
|
1972
2022
|
/**
|
|
1973
2023
|
* Collision-resistant, path-safe, human-readable profile id for eval artifacts.
|
|
1974
2024
|
* Scorecard joins still use `agentProfileHash`; this id is for run ids, matrix
|
|
@@ -2355,6 +2405,51 @@ declare class ExperimentTracker {
|
|
|
2355
2405
|
verdictFor(experimentId: string): Promise<ImprovementVerdictResult>;
|
|
2356
2406
|
}
|
|
2357
2407
|
|
|
2408
|
+
/**
|
|
2409
|
+
* Cross-profile leaderboard — rank agent profiles (or any grouping) over a corpus
|
|
2410
|
+
* of RunRecords on pass-rate with a Wilson CI, joined with the cost / token /
|
|
2411
|
+
* latency rollup every benchmark wants next to the score.
|
|
2412
|
+
*
|
|
2413
|
+
* This is substrate, not benchmark-specific: any consumer of agent-eval gets a
|
|
2414
|
+
* cross-harness × model leaderboard without re-implementing grouping, binomial
|
|
2415
|
+
* CIs, or the observability join. The benchmark supplies only what "passed"
|
|
2416
|
+
* means; everything else composes existing primitives (`wilson`, the RunRecord
|
|
2417
|
+
* cost/token/wall fields, the AgentProfileCell grouping key).
|
|
2418
|
+
*/
|
|
2419
|
+
|
|
2420
|
+
interface LeaderboardRow {
|
|
2421
|
+
/** Group key — the agent-profile cellId by default, else a caller dimension. */
|
|
2422
|
+
key: string;
|
|
2423
|
+
/** Display label: `harness · model` when the profile carries them, else the key. */
|
|
2424
|
+
label: string;
|
|
2425
|
+
harness?: string;
|
|
2426
|
+
model?: string;
|
|
2427
|
+
rank: number;
|
|
2428
|
+
/** Measured runs in this group. */
|
|
2429
|
+
n: number;
|
|
2430
|
+
passRate: number;
|
|
2431
|
+
passRateCi95: [number, number];
|
|
2432
|
+
/** Observability rollup — means over the group; null when no run reported it. */
|
|
2433
|
+
meanCostUsd: number | null;
|
|
2434
|
+
meanTokensIn: number | null;
|
|
2435
|
+
meanTokensOut: number | null;
|
|
2436
|
+
meanWallMs: number | null;
|
|
2437
|
+
}
|
|
2438
|
+
interface LeaderboardOptions {
|
|
2439
|
+
/** Per-run pass predicate — the benchmark defines what "passed" means (real-build
|
|
2440
|
+
* hit-rate, test-pass, etc.). The leaderboard owns only the grouping + stats. */
|
|
2441
|
+
passed: (record: RunRecord) => boolean;
|
|
2442
|
+
/** Group key. Default: the agent-profile cellId (harness × model × dimensions),
|
|
2443
|
+
* so persona/harness/model sweeps separate without parsing labels. */
|
|
2444
|
+
groupBy?: (record: RunRecord) => string;
|
|
2445
|
+
}
|
|
2446
|
+
/**
|
|
2447
|
+
* Group `records`, compute pass-rate + Wilson CI + cost/token/latency means per
|
|
2448
|
+
* group, and rank by pass-rate (cost as the tiebreaker — cheaper wins a tie).
|
|
2449
|
+
* Pure projection: no I/O, deterministic, safe to call on any RunRecord[].
|
|
2450
|
+
*/
|
|
2451
|
+
declare function leaderboard(records: RunRecord[], opts: LeaderboardOptions): LeaderboardRow[];
|
|
2452
|
+
|
|
2358
2453
|
/**
|
|
2359
2454
|
* muffled-gate-scanner — test helper that greps consumer source for
|
|
2360
2455
|
* gate + measurement anti-patterns and fails with file:line locations.
|
|
@@ -5974,4 +6069,4 @@ type CachedJudge<TArtifact, TScenario extends Scenario$1 = Scenario$1> = JudgeCo
|
|
|
5974
6069
|
*/
|
|
5975
6070
|
declare function cachedJudge<TArtifact, TScenario extends Scenario$1 = Scenario$1>(judge: JudgeConfig<TArtifact, TScenario>, store: VerdictCacheStore, options: CachedJudgeOptions): CachedJudge<TArtifact, TScenario>;
|
|
5976
6071
|
|
|
5977
|
-
export { ATTESTATION_ALGORITHM, type ActiveLearningOptions, type AdapterRun, AgentDriver, type AgentDriverConfig, AgentEvalError, type AgreementResult, type AlignmentOp, AnalyzeTracesInput, AnalyzeTracesOptions, AnalyzeTracesResult, type AntiSlopConfig, type AntiSlopIssue, type AntiSlopReport, type AssertCrossFamilyOptions, type AssertSingleBackendOptions, type AttestationProvenance, type AttestationVerification, type AttestedReport, type AutoPrClient, AxGepaSteeringOptimizer, type AxSteeringOptimizerConfig, type BackendDescriptor, BaselineReport, BehaviorAssertion, BehavioralMetrics, BenchmarkReport, BenchmarkRunner, BenchmarkRunnerConfig, type BisectOptions, type BisectResult, type BisectStep, type BlendWeights, BudgetBreachError, BudgetGuard, BudgetLedgerEntry, BudgetSpec, type BuildAgreementJudgeOptions, type CachedJudge, type CachedJudgeOptions, CallExpectation, type CanaryAlert, type CanaryKind, type CanaryLeak, type CanaryOptions, type CanaryReport, type CanarySeverity, type CandidateComparison, type CandidateScenario, type CausalAttributionReport, type CellVerdict, ChannelRollup, ChatRequest, CheckResult, CollectedArtifacts, type CommandRunner, type CompareLabels, CompletionCriterion, ConfigError, type ContinuityCheck, type ContinuityCheckResult, type ContinuityReport, type ContinuitySnapshotPair, type ContractCheckResult, type ContractJudgeOptions, type ContractMetric, type ContractReport, type ContractRule, type ContractRuleKind, type ContractSpan, type ContractVerdict, type ContractViolation, ConvergenceTracker, CorrectnessChecker, type CostEntry, CostLedger, type CostReport, type CostSummary, CostTracker, CreateChatClientOpts, type CreateDefaultReviewerOptions, type CreateExperimentInput, type CreateSandboxPoolOpts, CrossFamilyError, type CrossTraceDiff, type CrossTraceDiffOptions, DEFAULT_AGENT_SLOS, DEFAULT_FINDERS, DEFAULT_MUTATION_PRIMITIVES, DEFAULT_MUTATORS, DEFAULT_PR_REVIEW_SCORE_WEIGHTS, DEFAULT_SEVERITY_WEIGHTS, Dataset, DatasetScenario, type DecideNextUserTurnOpts, DefaultVerdict, type DeployFamily, type DeployGateLayerInput, type DeployRunResult, type DeployRunner, type DescriptionLengthCandidate, type DescriptionLengthConfig, type DescriptionLengthDecision, type DescriptionLengthEvidence, DescriptionLengthGate, type DescriptionLengthRejectionCode, type DetectorEvent, type DetectorSeverity, type DetectorSignal, type DiffScorecardOptions, type DirEntry, type DiscoverPersonasOptions, type DiscoveredPersona, DriverResult, DriverState, DualAgentBench, type DualAgentBenchConfig, type DualAgentReport, type DualAgentRound, type DualAgentScenario, type DualAgentScenarioResult, ERROR_COUNT_PATTERNS, type EnsembleAggregate, type EnsembleJudgeOptions, type ErrorCountPattern, type ErrorStreakOptions, type EvalToolDef, EvalTraceStore, type EvolutionRound, type ExecutorConfig, type Expectation, type Experiment, type ExperimentProvenance, type ExperimentRep, type ExperimentStats, type ExperimentStore, ExperimentTracker, type ExperimentTrackerOptions, type ExperimentVerdict, type ExportedRewardModel, type ExtractOptions, type ExtractResult, type FactorContribution, type FactorialCell, FailureClass, FeedbackLabel, FeedbackTrajectory, FeedbackTrajectoryStore, type FieldAgreementSpec, type FieldDestination, type FileChange, type FlowAction, type FlowLayerEnv, type FlowLayerFactoryInput, type FlowRunner, type FlowRunnerStepResult, type FlowSpec, type FlowStep, type GhCliClientOptions, type GoldScenario, type GoldSplit, type GoldenSeverity, type GoldenSpec, HarnessConfig, type HeldOutPartition, type HiddenCriteriaGrader, type HiddenGradeResult, type HiddenLeak, HoldoutAuditor, type HttpGithubClientOptions, INTENT_MATCH_JUDGE_VERSION, type ImageData, type ImprovementThresholds, type ImprovementVerdictResult, InMemoryWorkspaceInspector, type InferenceScorer, type InspectorContext, type IntentMatchInput, type IntentMatchOptions, type IntentMatchResult, type InteractionContribution, JudgeError, type JudgeFamily, type JudgeFleetOptions, JudgeFn, JudgeParseError, type JudgeReplayResult, type JudgeRetryOutcome, type JudgeRetryPolicy, JudgeRunner, type JudgeScoreInput, type JudgeVerdict, type KeywordConceptSpec, type KeywordCoverageFinding, type KeywordCoverageOptions, type KeywordCoverageResult, type LangfuseEnvelope, type LangfuseGeneration, type LangfuseScore, Layer, LayerResult, type LiveProofArtifact, type LiveProofConfig, type LiveProofContext, type LiveProofResult, LlmClientOptions, LlmSpan, MODEL_PRICING, type MakeEvalToolsConfig, type MatchResult, type MatcherResult, type MergeOptions, MetricsCollector, type ModelCostRollup, type ModelPreflight, type ModelSeats, ModelsUnreachableError, type MuffledFinder, type MuffledFinding, type MultiToolchainLayerConfig, type Mutator, Mutex, type NoLeakOptions, type NoProgressOptions, type Oracle, type OracleObservation, type OracleReport, type OracleResult, type OrthogonalityInput, type OrthogonalityResult, OtelExportConfig, OtelExporter, type OtelPipelineHandle, type OtelPipelineOptions, PairwiseSteeringOptimizer, type ParaphraseRobustnessScenarioInput, type ParaphraseRobustnessScenarioResult, type ParseStudentLabel, type PartitionHeldOutOptions, PersonaConfig, type Playbook, type PlaybookEntry, type PoolSlot, type PrReviewAuditCase, type PrReviewBenchmarkSummary, type PrReviewComment, type PrReviewMatchedFinding, type PrReviewOutcome, type PrReviewReferenceFinding, type PrReviewScore, type PrReviewScoreWeights, type PrReviewSeverity, type PrReviewSource, type PreflightModelsOptions, type PreflightOutcome, ProductClient, ProductClientConfig, type PromptHandle, PromptRegistry, type ProposeAutomatedPullRequestInput, type ProposeAutomatedPullRequestResult, type ProvenanceReader, type RecordRunsOptions, type ReferenceMatchResult, type ReferenceReplayAdapter, type ReferenceReplayAdapterFn, type ReferenceReplayAdapterLike, type ReferenceReplayAggregate, type ReferenceReplayCandidate, type ReferenceReplayCase, type ReferenceReplayCaseRun, type ReferenceReplayExecutionScenario, type ReferenceReplayItem, type ReferenceReplayMatch, type ReferenceReplayMatchStrategy, type ReferenceReplayMatcher, type ReferenceReplayPromotionDecision, type ReferenceReplayPromotionPolicy, type ReferenceReplayRun, type ReferenceReplayRunContext, type ReferenceReplayRunOptions, type ReferenceReplayRunStore, type ReferenceReplayScenario, type ReferenceReplayScenarioScore, type ReferenceReplayScore, type ReferenceReplayScoreOptions, type ReferenceReplaySplit, type ReferenceReplaySplitComparison, type ReferenceReplaySteeringRowsOptions, type ReflectionContext, type ReflectionProposal, ReleaseConfidenceScorecard, ReleaseConfidenceThresholds, type RenderStudentPrompt, type RepeatedActionOptions, type RepoRef, type ReviewerMemoryEntry, type ReviewerOutput, type ReviewerPromptInput, type ReviewerSoftFailDefaults, type ReviewerVerificationSummary, type RobustnessResult, type RoutedField, Run, type RunCommandInput, type RunCommandResult, type RunDistillationOptions, type RunDistillationResult, RunFilter, RunRecord, type RunRecordBackend, type RunRecordFilter, RunScore, RunScoreWeights, RunSplitTag, SandboxDriver, SandboxHarnessResult, type SandboxJudgeKind, type SandboxJudgeResult, type SandboxJudgeSpec, type SandboxPool, type ScanOptions, Scenario, type ScenarioCost, ScenarioFile, ScenarioRegistry, ScenarioResult, type Scorecard, type ScorecardCell, type ScorecardCellDiff, type ScorecardDiff, type ScorecardEntry, type ScorecardLogLine, type ScoredTarget, type SeatName, type SeatPresetName, SeatUnsetError, type SelfPlayOptions, type SelfPlayProposer, type SelfPlayScorer, type SerializedRegex, Severity, type SingleBackendDivergence, SingleBackendError, type SingleBackendField, type SingleBackendReport, type Slo, type SloCheckResult, type SloComparator, type SloReport, type SloSeverity, type SlopCategory, type SlotFactory, type SpanPredicate, type SplitGoldOptions, SteeringBundle, type SteeringOptimizationResult, type SteeringOptimizationRow, type SteeringOptimizationSelector, type SteeringOptimizerBackend, type SteeringOptimizerConfig, type StepAttribution, type StreamingDetector, type SynthesisReason, type SynthesisTarget, TestResult, type TextMatcher, type ThresholdContract, TokenCounter, type TokenSpec, type ToolMatcher, ToolSpan, TraceAnalystSpan, type TraceContract, TraceContractBuilder, TraceEmitter, TraceStore, type TracedAnalystOptions, type TracedJudgeOptions, Trajectory, TrajectoryStep, type TreatmentClass, type TreatmentGate, type TreatmentGateInput, type TreatmentGateOptions, type TrialTrace, TurnMetrics, UI_FINDING_SEVERITIES, UI_LENSES, UNIVERSAL_FINDERS, type UiFinding, type UiFindingScreenshot, type UiFindingSeverity, type UiLens, type VerdictCacheStats, type VerdictCacheStore, VerifyContext, type VisualDiffOptions, type VisualDiffResult, type ViteDeployRunnerInput, type WorkerDriverContext, type WorkspaceAssertion, type WorkspaceAssertionResult, type WorkspaceInspector, type WorkspaceSnapshot, type WranglerDeployRunnerInput, adversarialJudge, agentProfileHash, agentProfileId, agentProfileModelId, agentVisibleFields, aggregateJudgeVerdicts, aggregatePrReviewScore, analyzeAntiSlop, appendScorecard, assertCrossFamily, assertModelsServed, assertNoHiddenLeak, assertSingleBackend, assignHeldOutTag, attachCostToReport, attest, bisect, blendHeldout, buildAgreementJudge, buildDriverSystemPrompt, buildReflectionPrompt, buildReviewerPrompt, buildWorkerDriverSystemPrompt, cachedJudge, canaryLeakView, canonicalJson, causalAttribution, checkBehavioralCanary, checkCanaries, checkSlos, checkTraceContracts, classifyTreatment, codeExecutionJudge, coherenceJudge, collectionPreserved, commentsForSource, commitBisect, compareReferenceReplay, compilerJudge, computeExperimentStats, contentHash, contractJudge, costReport, createAntiSlopJudge, createCustomJudge, createDefaultReviewer, createDomainExpertJudge, createIntentMatchJudge, createSandboxPool, crossTraceDiff, dataDescriptionBits, decideNextUserTurn, decideReferenceReplayPromotion, decideReferenceReplayRunPromotion, defaultBlendWeights, defaultJudges, defaultParseStudentLabel, defaultReferenceReplayMatcher, defaultRenderStudentPrompt, deployGateLayer, diffScorecard, discoverPersonas, distillPlaybook, ensembleJudge, errorStreakDetector, estimateCost, estimateTokens, evaluateContract, evaluateOracles, evaluateTraceContract, executeScenario, expectAgent, exportRewardModel, extractAssetUrls, extractErrorCount, fieldAgreement, fileContains, fileExists, fileExperimentStore, fileVerdictCache, findAutoMatchNoExpectation, findConstructorCwdDropped, findFallbackToPass, findLiteralTruePass, findSkipCountsAsPass, flowLayer, fnv1a32, formatBenchmarkReport, formatDriverReport, formatFindings, formatScorecardDiff, gateTreatmentApplied, gateTreatmentFromMetrics, gateTreatmentFromSpans, gateTreatmentFromToolSpans, ghCliClient, gitProvenanceReader, precision as goldenPrecision, gradeOnHidden, hashContent, hashToUnit, hiddenGrade, htmlContainsElement, httpGithubClient, improvementVerdict, inMemoryExperimentStore, inMemoryReferenceReplayStore, inMemoryRunRecordBackend, inMemoryVerdictCache, isHiddenDestination, isModelPriced, isOtelConfigured, jsonShape, jsonlReferenceReplayStore, jsonlRunRecordBackend, judgeFamily, keyPreserved, linterJudge, loadGoldScenarios, loadScorecard, loadScorerFromGrader, localCommandRunner, lowercaseMutator, makeEvalTools, matchGoldens, matchSpan, mergeLayerResults, modelDescriptionBits, multiToolchainLayer, noProgressDetector, notBlocked, observeAll, paraphraseRobustness, paraphraseRobustnessScenarios, parseGoldJsonl, parseReflectionResponse, partitionHeldOut, passOrthogonality, pixelDeltaRatio, politenessPrefixMutator, preflightModels, printDriverSummary, index as profile, promptBisect, proposeSynthesisTargets, recordRuns, recordRunsToScorecard, referenceReplayRunsToSteeringRows, referenceReplayScenarioToRunScore, regexMatches, renderMarkdownReport, renderPlaybookMarkdown, repeatedActionDetector, replayScorerOverCorpus, replayTraceThroughJudge, resolveModelPricing, resolveSeat, routeFields, rowCount, rowWhere, runAssertions, runBehavioralCanaries, runCanaries, runDistillation, runE2EWorkflow, runExpectations, runIntentMatchJudge, runJudgeFleet, runKeywordCoverageJudge, runKeywordCoverageJudgeUrl, runLiveProof, runReferenceReplay, runScore, runSelfPlay, scanForMuffledGates, scoreContinuity, scorePrReviewComments, scorePrReviewSource, scoreReferenceReplay, seatPresets, securityJudge, sentenceReorderMutator, splitGold, statusAdvanced, summarizePrReviewBenchmark, testJudge, textInSnapshot, toLangfuseEnvelope, toOpenAiTool, toPrometheusText, traceContract, traceJudge, traceJudgeEnsemble, tracedAnalyzeTraces, typoMutator, urlContains, verifyAttestation, visualDiff, viteDeployRunner, weightedRecall, whitespaceCollapseMutator, withHeldoutBlend, withJudgeRetry, withOtelPipeline, wranglerDeployRunner };
|
|
6072
|
+
export { ATTESTATION_ALGORITHM, type ActiveLearningOptions, type AdapterRun, AgentDriver, type AgentDriverConfig, AgentEvalError, type AgreementResult, type AlignmentOp, AnalyzeTracesInput, AnalyzeTracesOptions, AnalyzeTracesResult, type AntiSlopConfig, type AntiSlopIssue, type AntiSlopReport, type AssertCrossFamilyOptions, type AssertSingleBackendOptions, type AttestationProvenance, type AttestationVerification, type AttestedReport, type AutoPrClient, AxGepaSteeringOptimizer, type AxSteeringOptimizerConfig, type BackendDescriptor, BaselineReport, BehaviorAssertion, BehavioralMetrics, BenchmarkReport, BenchmarkRunner, BenchmarkRunnerConfig, type BisectOptions, type BisectResult, type BisectStep, type BlendWeights, BudgetBreachError, BudgetGuard, BudgetLedgerEntry, BudgetSpec, type BuildAgreementJudgeOptions, CODING_HARNESSES, type CachedJudge, type CachedJudgeOptions, CallExpectation, type CanaryAlert, type CanaryKind, type CanaryLeak, type CanaryOptions, type CanaryReport, type CanarySeverity, type CandidateComparison, type CandidateScenario, type CausalAttributionReport, type CellVerdict, ChannelRollup, ChatRequest, CheckResult, CollectedArtifacts, type CommandRunner, type CompareLabels, CompletionCriterion, ConfigError, type ContinuityCheck, type ContinuityCheckResult, type ContinuityReport, type ContinuitySnapshotPair, type ContractCheckResult, type ContractJudgeOptions, type ContractMetric, type ContractReport, type ContractRule, type ContractRuleKind, type ContractSpan, type ContractVerdict, type ContractViolation, ConvergenceTracker, CorrectnessChecker, type CostEntry, CostLedger, type CostReport, type CostSummary, CostTracker, CreateChatClientOpts, type CreateDefaultReviewerOptions, type CreateExperimentInput, type CreateSandboxPoolOpts, CrossFamilyError, type CrossTraceDiff, type CrossTraceDiffOptions, DEFAULT_AGENT_SLOS, DEFAULT_FINDERS, DEFAULT_MUTATION_PRIMITIVES, DEFAULT_MUTATORS, DEFAULT_PR_REVIEW_SCORE_WEIGHTS, DEFAULT_SEVERITY_WEIGHTS, Dataset, DatasetScenario, type DecideNextUserTurnOpts, DefaultVerdict, type DeployFamily, type DeployGateLayerInput, type DeployRunResult, type DeployRunner, type DescriptionLengthCandidate, type DescriptionLengthConfig, type DescriptionLengthDecision, type DescriptionLengthEvidence, DescriptionLengthGate, type DescriptionLengthRejectionCode, type DetectorEvent, type DetectorSeverity, type DetectorSignal, type DiffScorecardOptions, type DirEntry, type DiscoverPersonasOptions, type DiscoveredPersona, DriverResult, DriverState, DualAgentBench, type DualAgentBenchConfig, type DualAgentReport, type DualAgentRound, type DualAgentScenario, type DualAgentScenarioResult, ERROR_COUNT_PATTERNS, type EnsembleAggregate, type EnsembleJudgeOptions, type ErrorCountPattern, type ErrorStreakOptions, type EvalToolDef, EvalTraceStore, type EvolutionRound, type ExecutorConfig, type Expectation, type Experiment, type ExperimentProvenance, type ExperimentRep, type ExperimentStats, type ExperimentStore, ExperimentTracker, type ExperimentTrackerOptions, type ExperimentVerdict, type ExportedRewardModel, type ExtractOptions, type ExtractResult, type FactorContribution, type FactorialCell, FailureClass, FeedbackLabel, FeedbackTrajectory, FeedbackTrajectoryStore, type FieldAgreementSpec, type FieldDestination, type FileChange, type FlowAction, type FlowLayerEnv, type FlowLayerFactoryInput, type FlowRunner, type FlowRunnerStepResult, type FlowSpec, type FlowStep, type GhCliClientOptions, type GoldScenario, type GoldSplit, type GoldenSeverity, type GoldenSpec, HarnessConfig, type HeldOutPartition, type HiddenCriteriaGrader, type HiddenGradeResult, type HiddenLeak, HoldoutAuditor, type HttpGithubClientOptions, INTENT_MATCH_JUDGE_VERSION, type ImageData, type ImprovementThresholds, type ImprovementVerdictResult, InMemoryWorkspaceInspector, type InferenceScorer, type InspectorContext, type IntentMatchInput, type IntentMatchOptions, type IntentMatchResult, type InteractionContribution, JudgeError, type JudgeFamily, type JudgeFleetOptions, JudgeFn, JudgeParseError, type JudgeReplayResult, type JudgeRetryOutcome, type JudgeRetryPolicy, JudgeRunner, type JudgeScoreInput, type JudgeVerdict, type KeywordConceptSpec, type KeywordCoverageFinding, type KeywordCoverageOptions, type KeywordCoverageResult, type LangfuseEnvelope, type LangfuseGeneration, type LangfuseScore, Layer, LayerResult, type LeaderboardOptions, type LeaderboardRow, type LiveProofArtifact, type LiveProofConfig, type LiveProofContext, type LiveProofResult, LlmClientOptions, LlmSpan, MODEL_PRICING, type MakeEvalToolsConfig, type MatchResult, type MatcherResult, type MergeOptions, MetricsCollector, type ModelCostRollup, type ModelPreflight, type ModelSeats, ModelsUnreachableError, type MuffledFinder, type MuffledFinding, type MultiToolchainLayerConfig, type Mutator, Mutex, type NoLeakOptions, type NoProgressOptions, type Oracle, type OracleObservation, type OracleReport, type OracleResult, type OrthogonalityInput, type OrthogonalityResult, OtelExportConfig, OtelExporter, type OtelPipelineHandle, type OtelPipelineOptions, PairwiseSteeringOptimizer, type ParaphraseRobustnessScenarioInput, type ParaphraseRobustnessScenarioResult, type ParseStudentLabel, type PartitionHeldOutOptions, PersonaConfig, type Playbook, type PlaybookEntry, type PoolSlot, type PrReviewAuditCase, type PrReviewBenchmarkSummary, type PrReviewComment, type PrReviewMatchedFinding, type PrReviewOutcome, type PrReviewReferenceFinding, type PrReviewScore, type PrReviewScoreWeights, type PrReviewSeverity, type PrReviewSource, type PreflightModelsOptions, type PreflightOutcome, ProductClient, ProductClientConfig, type ProfileAxisSpec, type PromptHandle, PromptRegistry, type ProposeAutomatedPullRequestInput, type ProposeAutomatedPullRequestResult, type ProvenanceReader, type RecordRunsOptions, type ReferenceMatchResult, type ReferenceReplayAdapter, type ReferenceReplayAdapterFn, type ReferenceReplayAdapterLike, type ReferenceReplayAggregate, type ReferenceReplayCandidate, type ReferenceReplayCase, type ReferenceReplayCaseRun, type ReferenceReplayExecutionScenario, type ReferenceReplayItem, type ReferenceReplayMatch, type ReferenceReplayMatchStrategy, type ReferenceReplayMatcher, type ReferenceReplayPromotionDecision, type ReferenceReplayPromotionPolicy, type ReferenceReplayRun, type ReferenceReplayRunContext, type ReferenceReplayRunOptions, type ReferenceReplayRunStore, type ReferenceReplayScenario, type ReferenceReplayScenarioScore, type ReferenceReplayScore, type ReferenceReplayScoreOptions, type ReferenceReplaySplit, type ReferenceReplaySplitComparison, type ReferenceReplaySteeringRowsOptions, type ReflectionContext, type ReflectionProposal, ReleaseConfidenceScorecard, ReleaseConfidenceThresholds, type RenderStudentPrompt, type RepeatedActionOptions, type RepoRef, type ReviewerMemoryEntry, type ReviewerOutput, type ReviewerPromptInput, type ReviewerSoftFailDefaults, type ReviewerVerificationSummary, type RobustnessResult, type RoutedField, Run, type RunCommandInput, type RunCommandResult, type RunDistillationOptions, type RunDistillationResult, RunFilter, RunRecord, type RunRecordBackend, type RunRecordFilter, RunScore, RunScoreWeights, RunSplitTag, SandboxDriver, SandboxHarnessResult, type SandboxJudgeKind, type SandboxJudgeResult, type SandboxJudgeSpec, type SandboxPool, type ScanOptions, Scenario, type ScenarioCost, ScenarioFile, ScenarioRegistry, ScenarioResult, type Scorecard, type ScorecardCell, type ScorecardCellDiff, type ScorecardDiff, type ScorecardEntry, type ScorecardLogLine, type ScoredTarget, type SeatName, type SeatPresetName, SeatUnsetError, type SelfPlayOptions, type SelfPlayProposer, type SelfPlayScorer, type SerializedRegex, Severity, type SingleBackendDivergence, SingleBackendError, type SingleBackendField, type SingleBackendReport, type Slo, type SloCheckResult, type SloComparator, type SloReport, type SloSeverity, type SlopCategory, type SlotFactory, type SpanPredicate, type SplitGoldOptions, SteeringBundle, type SteeringOptimizationResult, type SteeringOptimizationRow, type SteeringOptimizationSelector, type SteeringOptimizerBackend, type SteeringOptimizerConfig, type StepAttribution, type StreamingDetector, type SynthesisReason, type SynthesisTarget, TestResult, type TextMatcher, type ThresholdContract, TokenCounter, type TokenSpec, type ToolMatcher, ToolSpan, TraceAnalystSpan, type TraceContract, TraceContractBuilder, TraceEmitter, TraceStore, type TracedAnalystOptions, type TracedJudgeOptions, Trajectory, TrajectoryStep, type TreatmentClass, type TreatmentGate, type TreatmentGateInput, type TreatmentGateOptions, type TrialTrace, TurnMetrics, UI_FINDING_SEVERITIES, UI_LENSES, UNIVERSAL_FINDERS, type UiFinding, type UiFindingScreenshot, type UiFindingSeverity, type UiLens, type VerdictCacheStats, type VerdictCacheStore, VerifyContext, type VisualDiffOptions, type VisualDiffResult, type ViteDeployRunnerInput, type WorkerDriverContext, type WorkspaceAssertion, type WorkspaceAssertionResult, type WorkspaceInspector, type WorkspaceSnapshot, type WranglerDeployRunnerInput, adversarialJudge, agentProfileHash, agentProfileId, agentProfileModelId, agentVisibleFields, aggregateJudgeVerdicts, aggregatePrReviewScore, analyzeAntiSlop, appendScorecard, assertCrossFamily, assertModelsServed, assertNoHiddenLeak, assertSingleBackend, assignHeldOutTag, attachCostToReport, attest, bisect, blendHeldout, buildAgreementJudge, buildDriverSystemPrompt, buildReflectionPrompt, buildReviewerPrompt, buildWorkerDriverSystemPrompt, cachedJudge, canaryLeakView, canonicalJson, causalAttribution, checkBehavioralCanary, checkCanaries, checkSlos, checkTraceContracts, classifyTreatment, codeExecutionJudge, coherenceJudge, collectionPreserved, commentsForSource, commitBisect, compareReferenceReplay, compilerJudge, computeExperimentStats, contentHash, contractJudge, costReport, createAntiSlopJudge, createCustomJudge, createDefaultReviewer, createDomainExpertJudge, createIntentMatchJudge, createSandboxPool, crossTraceDiff, dataDescriptionBits, decideNextUserTurn, decideReferenceReplayPromotion, decideReferenceReplayRunPromotion, defaultBlendWeights, defaultJudges, defaultParseStudentLabel, defaultReferenceReplayMatcher, defaultRenderStudentPrompt, deployGateLayer, diffScorecard, discoverPersonas, distillPlaybook, ensembleJudge, errorStreakDetector, estimateCost, estimateTokens, evaluateContract, evaluateOracles, evaluateTraceContract, executeScenario, expandProfileAxes, expectAgent, exportRewardModel, extractAssetUrls, extractErrorCount, fieldAgreement, fileContains, fileExists, fileExperimentStore, fileVerdictCache, findAutoMatchNoExpectation, findConstructorCwdDropped, findFallbackToPass, findLiteralTruePass, findSkipCountsAsPass, flowLayer, fnv1a32, formatBenchmarkReport, formatDriverReport, formatFindings, formatScorecardDiff, gateTreatmentApplied, gateTreatmentFromMetrics, gateTreatmentFromSpans, gateTreatmentFromToolSpans, ghCliClient, gitProvenanceReader, precision as goldenPrecision, gradeOnHidden, harnessAxisOf, hashContent, hashToUnit, hiddenGrade, htmlContainsElement, httpGithubClient, improvementVerdict, inMemoryExperimentStore, inMemoryReferenceReplayStore, inMemoryRunRecordBackend, inMemoryVerdictCache, isHiddenDestination, isModelPriced, isOtelConfigured, jsonShape, jsonlReferenceReplayStore, jsonlRunRecordBackend, judgeFamily, keyPreserved, leaderboard, linterJudge, loadGoldScenarios, loadScorecard, loadScorerFromGrader, localCommandRunner, lowercaseMutator, makeEvalTools, matchGoldens, matchSpan, mergeLayerResults, modelDescriptionBits, multiToolchainLayer, noProgressDetector, notBlocked, observeAll, paraphraseRobustness, paraphraseRobustnessScenarios, parseGoldJsonl, parseReflectionResponse, partitionHeldOut, passOrthogonality, pixelDeltaRatio, politenessPrefixMutator, preflightModels, printDriverSummary, index as profile, promptBisect, proposeSynthesisTargets, recordRuns, recordRunsToScorecard, referenceReplayRunsToSteeringRows, referenceReplayScenarioToRunScore, regexMatches, renderMarkdownReport, renderPlaybookMarkdown, repeatedActionDetector, replayScorerOverCorpus, replayTraceThroughJudge, resolveModelPricing, resolveSeat, routeFields, rowCount, rowWhere, runAssertions, runBehavioralCanaries, runCanaries, runDistillation, runE2EWorkflow, runExpectations, runIntentMatchJudge, runJudgeFleet, runKeywordCoverageJudge, runKeywordCoverageJudgeUrl, runLiveProof, runReferenceReplay, runScore, runSelfPlay, scanForMuffledGates, scoreContinuity, scorePrReviewComments, scorePrReviewSource, scoreReferenceReplay, seatPresets, securityJudge, sentenceReorderMutator, splitGold, statusAdvanced, summarizePrReviewBenchmark, testJudge, textInSnapshot, toLangfuseEnvelope, toOpenAiTool, toPrometheusText, traceContract, traceJudge, traceJudgeEnsemble, tracedAnalyzeTraces, typoMutator, urlContains, verifyAttestation, visualDiff, viteDeployRunner, weightedRecall, whitespaceCollapseMutator, withHeldoutBlend, withJudgeRetry, withOtelPipeline, wranglerDeployRunner };
|
package/dist/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
checkBehavioralCanary,
|
|
10
10
|
checkCanaries,
|
|
11
11
|
runBehavioralCanaries
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-X5OUZB4T.js";
|
|
13
13
|
import {
|
|
14
14
|
classifyEuAiRisk,
|
|
15
15
|
euAiActReport,
|
|
@@ -34,6 +34,17 @@ import {
|
|
|
34
34
|
summarizeRecords
|
|
35
35
|
} from "./chunk-STGVSCDH.js";
|
|
36
36
|
import {
|
|
37
|
+
findProductBenchmarkArtifacts,
|
|
38
|
+
productBenchmarkIntegrityFailures,
|
|
39
|
+
productBenchmarkSplits,
|
|
40
|
+
readProductBenchmarkManifest,
|
|
41
|
+
readProductBenchmarkRecords,
|
|
42
|
+
validateProductBenchmarkManifest,
|
|
43
|
+
validateProductBenchmarkRecord,
|
|
44
|
+
validateProductBenchmarkRun
|
|
45
|
+
} from "./chunk-63MBSQTX.js";
|
|
46
|
+
import {
|
|
47
|
+
CODING_HARNESSES,
|
|
37
48
|
JudgeParseError,
|
|
38
49
|
adversarialJudge,
|
|
39
50
|
agentProfileHash,
|
|
@@ -47,11 +58,13 @@ import {
|
|
|
47
58
|
createLlmCorrectnessChecker,
|
|
48
59
|
createTokenRecallChecker,
|
|
49
60
|
defaultJudges,
|
|
61
|
+
expandProfileAxes,
|
|
50
62
|
extractProducedState,
|
|
63
|
+
harnessAxisOf,
|
|
51
64
|
llmJudge,
|
|
52
65
|
parseCorrectnessResponse,
|
|
53
66
|
verifyCompletion
|
|
54
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-GUII3E73.js";
|
|
55
68
|
import {
|
|
56
69
|
DEFAULT_MUTATION_PRIMITIVES,
|
|
57
70
|
DEFAULT_RED_TEAM_CORPUS,
|
|
@@ -75,12 +88,17 @@ import {
|
|
|
75
88
|
scoreRedTeamOutput,
|
|
76
89
|
surfaceContentHash,
|
|
77
90
|
toolNamesForRun
|
|
78
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-NK77GPUH.js";
|
|
79
92
|
import {
|
|
80
93
|
BackendIntegrityError,
|
|
81
94
|
assertRealBackend,
|
|
95
|
+
cachedJudge,
|
|
96
|
+
canonicalJson,
|
|
97
|
+
contentHash,
|
|
98
|
+
fileVerdictCache,
|
|
99
|
+
inMemoryVerdictCache,
|
|
82
100
|
summarizeBackendIntegrity
|
|
83
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-XIOQHCHU.js";
|
|
84
102
|
import {
|
|
85
103
|
MODEL_PRICING,
|
|
86
104
|
MetricsCollector,
|
|
@@ -4491,9 +4509,9 @@ function median(sorted) {
|
|
|
4491
4509
|
const mid = Math.floor(n / 2);
|
|
4492
4510
|
return n % 2 === 0 ? (sorted[mid - 1] + sorted[mid]) / 2 : sorted[mid];
|
|
4493
4511
|
}
|
|
4494
|
-
function stddev(values,
|
|
4512
|
+
function stddev(values, mean6) {
|
|
4495
4513
|
if (values.length < 2) return 0;
|
|
4496
|
-
const variance = values.reduce((acc, v) => acc + (v -
|
|
4514
|
+
const variance = values.reduce((acc, v) => acc + (v - mean6) ** 2, 0) / values.length;
|
|
4497
4515
|
return Math.sqrt(variance);
|
|
4498
4516
|
}
|
|
4499
4517
|
function computeExperimentStats(reps, thresholds) {
|
|
@@ -4519,15 +4537,15 @@ function computeExperimentStats(reps, thresholds) {
|
|
|
4519
4537
|
return r.score;
|
|
4520
4538
|
});
|
|
4521
4539
|
const sorted = [...scores2].sort((a, b) => a - b);
|
|
4522
|
-
const
|
|
4523
|
-
const sd = stddev(scores2,
|
|
4540
|
+
const mean6 = scores2.reduce((s, v) => s + v, 0) / n;
|
|
4541
|
+
const sd = stddev(scores2, mean6);
|
|
4524
4542
|
const spread = iqr(scores2);
|
|
4525
4543
|
const rated = reps.filter((r) => typeof r.passed === "boolean");
|
|
4526
4544
|
const passRate = rated.length === 0 ? null : rated.filter((r) => r.passed).length / rated.length;
|
|
4527
4545
|
const stable = spread < t.iqrUnstableAbove && sd < t.stddevUnstableAbove;
|
|
4528
4546
|
return {
|
|
4529
4547
|
median: median(sorted),
|
|
4530
|
-
mean:
|
|
4548
|
+
mean: mean6,
|
|
4531
4549
|
min: sorted[0],
|
|
4532
4550
|
max: sorted[n - 1],
|
|
4533
4551
|
iqr: spread,
|
|
@@ -4697,6 +4715,49 @@ var ExperimentTracker = class {
|
|
|
4697
4715
|
}
|
|
4698
4716
|
};
|
|
4699
4717
|
|
|
4718
|
+
// src/leaderboard.ts
|
|
4719
|
+
function mean3(xs) {
|
|
4720
|
+
return xs.length ? xs.reduce((a, b) => a + b, 0) / xs.length : null;
|
|
4721
|
+
}
|
|
4722
|
+
function leaderboard(records, opts) {
|
|
4723
|
+
const keyOf = opts.groupBy ?? ((r) => r.agentProfile?.cellId ?? "ungrouped");
|
|
4724
|
+
const groups = /* @__PURE__ */ new Map();
|
|
4725
|
+
for (const r of records) {
|
|
4726
|
+
const k = keyOf(r);
|
|
4727
|
+
const g = groups.get(k);
|
|
4728
|
+
if (g) g.push(r);
|
|
4729
|
+
else groups.set(k, [r]);
|
|
4730
|
+
}
|
|
4731
|
+
const rows = [...groups.entries()].map(([key, rs]) => {
|
|
4732
|
+
const passes = rs.filter((r) => opts.passed(r)).length;
|
|
4733
|
+
const ci = wilson(passes, rs.length);
|
|
4734
|
+
const profile = rs[0].agentProfile;
|
|
4735
|
+
const harness = profile?.harness?.id;
|
|
4736
|
+
const model = profile?.model;
|
|
4737
|
+
return {
|
|
4738
|
+
key,
|
|
4739
|
+
label: harness && model ? `${harness} \xB7 ${model}` : key,
|
|
4740
|
+
...harness ? { harness } : {},
|
|
4741
|
+
...model ? { model } : {},
|
|
4742
|
+
rank: 0,
|
|
4743
|
+
n: rs.length,
|
|
4744
|
+
passRate: ci.estimate,
|
|
4745
|
+
passRateCi95: [ci.lower, ci.upper],
|
|
4746
|
+
meanCostUsd: mean3(rs.map((r) => r.costUsd)),
|
|
4747
|
+
meanTokensIn: mean3(rs.map((r) => r.tokenUsage.input)),
|
|
4748
|
+
meanTokensOut: mean3(rs.map((r) => r.tokenUsage.output)),
|
|
4749
|
+
meanWallMs: mean3(rs.map((r) => r.wallMs))
|
|
4750
|
+
};
|
|
4751
|
+
});
|
|
4752
|
+
rows.sort(
|
|
4753
|
+
(a, b) => b.passRate - a.passRate || (a.meanCostUsd ?? Infinity) - (b.meanCostUsd ?? Infinity)
|
|
4754
|
+
);
|
|
4755
|
+
rows.forEach((row, i) => {
|
|
4756
|
+
row.rank = i + 1;
|
|
4757
|
+
});
|
|
4758
|
+
return rows;
|
|
4759
|
+
}
|
|
4760
|
+
|
|
4700
4761
|
// src/muffled-gate-scanner.ts
|
|
4701
4762
|
import { existsSync, readdirSync, readFileSync, statSync } from "fs";
|
|
4702
4763
|
import { join } from "path";
|
|
@@ -6242,12 +6303,12 @@ async function paraphraseRobustness(prompt, mutators, scoreFn, options = {}) {
|
|
|
6242
6303
|
variantScores.push({ mutator: id, score, mutated });
|
|
6243
6304
|
all.push(score);
|
|
6244
6305
|
}
|
|
6245
|
-
const
|
|
6246
|
-
const variance = all.reduce((a, v) => a + (v -
|
|
6306
|
+
const mean6 = all.reduce((a, b) => a + b, 0) / all.length;
|
|
6307
|
+
const variance = all.reduce((a, v) => a + (v - mean6) ** 2, 0) / all.length;
|
|
6247
6308
|
const stdDev = Math.sqrt(variance);
|
|
6248
|
-
const ref = Math.abs(
|
|
6309
|
+
const ref = Math.abs(mean6) > 1e-9 ? Math.abs(mean6) : 1;
|
|
6249
6310
|
const robustness = Math.max(0, 1 - stdDev / ref);
|
|
6250
|
-
return { originalScore, variantScores, meanScore:
|
|
6311
|
+
return { originalScore, variantScores, meanScore: mean6, stdDev, robustness };
|
|
6251
6312
|
}
|
|
6252
6313
|
var lowercaseMutator = (p) => p.toLowerCase();
|
|
6253
6314
|
var sentenceReorderMutator = (p, seed) => {
|
|
@@ -6313,8 +6374,8 @@ async function paraphraseRobustnessScenarios(args) {
|
|
|
6313
6374
|
});
|
|
6314
6375
|
scores2.push(out.score);
|
|
6315
6376
|
}
|
|
6316
|
-
const
|
|
6317
|
-
deltas[m.name] =
|
|
6377
|
+
const mean6 = scores2.reduce((a, b) => a + b, 0) / scores2.length;
|
|
6378
|
+
deltas[m.name] = mean6 - originalScore;
|
|
6318
6379
|
paraphrasedAll.push(...scores2);
|
|
6319
6380
|
}
|
|
6320
6381
|
const paraphrasedMean = paraphrasedAll.length === 0 ? originalScore : paraphrasedAll.reduce((a, b) => a + b, 0) / paraphrasedAll.length;
|
|
@@ -6648,8 +6709,8 @@ async function proposeSynthesisTargets(dataset, traceStore, options = {}) {
|
|
|
6648
6709
|
const sRuns = runs.filter((r) => r.scenarioId === s.id);
|
|
6649
6710
|
const scores2 = sRuns.map((r) => r.outcome?.score).filter((x) => typeof x === "number");
|
|
6650
6711
|
if (scores2.length < 3) continue;
|
|
6651
|
-
const
|
|
6652
|
-
const variance = scores2.reduce((a, b) => a + (b -
|
|
6712
|
+
const mean6 = scores2.reduce((a, b) => a + b, 0) / scores2.length;
|
|
6713
|
+
const variance = scores2.reduce((a, b) => a + (b - mean6) ** 2, 0) / scores2.length;
|
|
6653
6714
|
if (variance > varianceThreshold) {
|
|
6654
6715
|
targets.push({
|
|
6655
6716
|
reason: "high-variance",
|
|
@@ -8104,7 +8165,7 @@ function decideReferenceReplayPromotion(baseline, candidate, policy = {}) {
|
|
|
8104
8165
|
regressions
|
|
8105
8166
|
};
|
|
8106
8167
|
}
|
|
8107
|
-
const requiredMeanDelta =
|
|
8168
|
+
const requiredMeanDelta = mean4(compared.map((item) => item.f1Delta));
|
|
8108
8169
|
if (requiredMeanDelta < minF1Delta) {
|
|
8109
8170
|
return {
|
|
8110
8171
|
promote: false,
|
|
@@ -8340,7 +8401,7 @@ function clamp012(value) {
|
|
|
8340
8401
|
function sum2(values) {
|
|
8341
8402
|
return values.reduce((acc, value) => acc + value, 0);
|
|
8342
8403
|
}
|
|
8343
|
-
function
|
|
8404
|
+
function mean4(values) {
|
|
8344
8405
|
return values.length ? sum2(values) / values.length : 0;
|
|
8345
8406
|
}
|
|
8346
8407
|
function formatPct(value) {
|
|
@@ -8794,10 +8855,10 @@ var HeldOutGate = class {
|
|
|
8794
8855
|
afterHoldout.push(run.outcome.holdoutScore);
|
|
8795
8856
|
}
|
|
8796
8857
|
const productiveRuns = beforeHoldout.length;
|
|
8797
|
-
const candidateSearchMean =
|
|
8798
|
-
const candidateHoldoutMean =
|
|
8799
|
-
const baselineSearchMean =
|
|
8800
|
-
const baselineHoldoutMean =
|
|
8858
|
+
const candidateSearchMean = mean5(scores(candidate, "searchScore", "search"));
|
|
8859
|
+
const candidateHoldoutMean = mean5(scores(candidate, "holdoutScore", "holdout"));
|
|
8860
|
+
const baselineSearchMean = mean5(scores(baseline, "searchScore", "search"));
|
|
8861
|
+
const baselineHoldoutMean = mean5(scores(baseline, "holdoutScore", "holdout"));
|
|
8801
8862
|
const overfitGap = safeDiff(candidateSearchMean, candidateHoldoutMean);
|
|
8802
8863
|
const baselineOverfitGap = safeDiff(baselineSearchMean, baselineHoldoutMean);
|
|
8803
8864
|
const medianCandidateCost = medianFinite(candidate.map((r) => r.costUsd));
|
|
@@ -8909,7 +8970,7 @@ function scores(runs, field, splitFilter) {
|
|
|
8909
8970
|
}
|
|
8910
8971
|
return out;
|
|
8911
8972
|
}
|
|
8912
|
-
function
|
|
8973
|
+
function mean5(xs) {
|
|
8913
8974
|
if (xs.length === 0) return Number.NaN;
|
|
8914
8975
|
return xs.reduce((s, x) => s + x, 0) / xs.length;
|
|
8915
8976
|
}
|
|
@@ -8949,9 +9010,9 @@ function passOrthogonality(input) {
|
|
|
8949
9010
|
sims.push(cosineSimilarity(vectors[i], vectors[j]));
|
|
8950
9011
|
}
|
|
8951
9012
|
}
|
|
8952
|
-
const
|
|
9013
|
+
const mean6 = sims.length === 0 ? 0 : sims.reduce((a, b) => a + b, 0) / sims.length;
|
|
8953
9014
|
return {
|
|
8954
|
-
orthogonality: Math.max(0, Math.min(1, 1 -
|
|
9015
|
+
orthogonality: Math.max(0, Math.min(1, 1 - mean6)),
|
|
8955
9016
|
passCount: passes.length,
|
|
8956
9017
|
similarities: sims
|
|
8957
9018
|
};
|
|
@@ -9893,134 +9954,6 @@ function resolveSeat(seats, seat, fallback) {
|
|
|
9893
9954
|
throw new SeatUnsetError(seat);
|
|
9894
9955
|
}
|
|
9895
9956
|
|
|
9896
|
-
// src/verdict-cache.ts
|
|
9897
|
-
import { createHash } from "crypto";
|
|
9898
|
-
import { appendFileSync as appendFileSync3, existsSync as existsSync5, readFileSync as readFileSync6 } from "fs";
|
|
9899
|
-
function canonicalizeAt(value, path) {
|
|
9900
|
-
if (value === null) return "null";
|
|
9901
|
-
switch (typeof value) {
|
|
9902
|
-
case "boolean":
|
|
9903
|
-
return value ? "true" : "false";
|
|
9904
|
-
case "number":
|
|
9905
|
-
if (!Number.isFinite(value)) {
|
|
9906
|
-
throw new Error(
|
|
9907
|
-
`canonicalJson: non-finite number (${value}) at ${path} \u2014 ambiguity is an error, not a coercion`
|
|
9908
|
-
);
|
|
9909
|
-
}
|
|
9910
|
-
return JSON.stringify(value);
|
|
9911
|
-
case "string":
|
|
9912
|
-
return JSON.stringify(value);
|
|
9913
|
-
case "undefined":
|
|
9914
|
-
case "function":
|
|
9915
|
-
case "symbol":
|
|
9916
|
-
throw new Error(
|
|
9917
|
-
`canonicalJson: ${typeof value} at ${path} \u2014 ambiguity is an error, not a coercion`
|
|
9918
|
-
);
|
|
9919
|
-
case "bigint":
|
|
9920
|
-
throw new Error(`canonicalJson: bigint at ${path} \u2014 not representable in JSON`);
|
|
9921
|
-
case "object":
|
|
9922
|
-
break;
|
|
9923
|
-
}
|
|
9924
|
-
const obj = value;
|
|
9925
|
-
if (typeof obj["toJSON"] === "function") {
|
|
9926
|
-
return canonicalizeAt(obj.toJSON(), path);
|
|
9927
|
-
}
|
|
9928
|
-
if (Array.isArray(obj)) {
|
|
9929
|
-
return `[${obj.map((item, i) => canonicalizeAt(item, `${path}[${i}]`)).join(",")}]`;
|
|
9930
|
-
}
|
|
9931
|
-
if (obj instanceof Map || obj instanceof Set) {
|
|
9932
|
-
throw new Error(
|
|
9933
|
-
`canonicalJson: ${obj instanceof Map ? "Map" : "Set"} at ${path} \u2014 would serialize as '{}'; convert to a plain object/array first`
|
|
9934
|
-
);
|
|
9935
|
-
}
|
|
9936
|
-
const keys = Object.keys(obj).sort();
|
|
9937
|
-
const parts = keys.map((k) => `${JSON.stringify(k)}:${canonicalizeAt(obj[k], `${path}.${k}`)}`);
|
|
9938
|
-
return `{${parts.join(",")}}`;
|
|
9939
|
-
}
|
|
9940
|
-
function canonicalJson(value) {
|
|
9941
|
-
return canonicalizeAt(value, "$");
|
|
9942
|
-
}
|
|
9943
|
-
function contentHash(value) {
|
|
9944
|
-
return createHash("sha256").update(canonicalJson(value)).digest("hex");
|
|
9945
|
-
}
|
|
9946
|
-
function inMemoryVerdictCache() {
|
|
9947
|
-
const entries = /* @__PURE__ */ new Map();
|
|
9948
|
-
return {
|
|
9949
|
-
get: (key) => entries.get(key),
|
|
9950
|
-
set: (key, score) => {
|
|
9951
|
-
entries.set(key, score);
|
|
9952
|
-
}
|
|
9953
|
-
};
|
|
9954
|
-
}
|
|
9955
|
-
function parseCacheLine(line, path, lineNo) {
|
|
9956
|
-
let parsed;
|
|
9957
|
-
try {
|
|
9958
|
-
parsed = JSON.parse(line);
|
|
9959
|
-
} catch (err) {
|
|
9960
|
-
throw new Error(
|
|
9961
|
-
`fileVerdictCache: corrupt JSONL at ${path}:${lineNo} \u2014 ${err instanceof Error ? err.message : String(err)}`
|
|
9962
|
-
);
|
|
9963
|
-
}
|
|
9964
|
-
const rec = parsed;
|
|
9965
|
-
if (typeof rec !== "object" || rec === null || typeof rec.key !== "string" || typeof rec.score !== "object" || rec.score === null || typeof rec.score.composite !== "number" || typeof rec.score.dimensions !== "object") {
|
|
9966
|
-
throw new Error(
|
|
9967
|
-
`fileVerdictCache: invalid record shape at ${path}:${lineNo} \u2014 expected {key, score:{dimensions, composite, notes}}`
|
|
9968
|
-
);
|
|
9969
|
-
}
|
|
9970
|
-
return rec;
|
|
9971
|
-
}
|
|
9972
|
-
function fileVerdictCache(path) {
|
|
9973
|
-
const entries = /* @__PURE__ */ new Map();
|
|
9974
|
-
if (existsSync5(path)) {
|
|
9975
|
-
const lines = readFileSync6(path, "utf8").split("\n");
|
|
9976
|
-
for (let i = 0; i < lines.length; i++) {
|
|
9977
|
-
const line = lines[i];
|
|
9978
|
-
if (line === void 0 || line.trim() === "") continue;
|
|
9979
|
-
const rec = parseCacheLine(line, path, i + 1);
|
|
9980
|
-
entries.set(rec.key, rec.score);
|
|
9981
|
-
}
|
|
9982
|
-
}
|
|
9983
|
-
return {
|
|
9984
|
-
get: (key) => entries.get(key),
|
|
9985
|
-
set: (key, score) => {
|
|
9986
|
-
appendFileSync3(path, `${JSON.stringify({ key, score })}
|
|
9987
|
-
`, "utf8");
|
|
9988
|
-
entries.set(key, score);
|
|
9989
|
-
}
|
|
9990
|
-
};
|
|
9991
|
-
}
|
|
9992
|
-
function cachedJudge(judge, store, options) {
|
|
9993
|
-
if (typeof options.judgeVersion !== "string" || options.judgeVersion.trim() === "") {
|
|
9994
|
-
throw new Error("cachedJudge: judgeVersion is required and must be a non-empty string");
|
|
9995
|
-
}
|
|
9996
|
-
const stats = { hits: 0, misses: 0 };
|
|
9997
|
-
const wrapped = {
|
|
9998
|
-
name: judge.name,
|
|
9999
|
-
dimensions: judge.dimensions,
|
|
10000
|
-
async score(input) {
|
|
10001
|
-
const key = contentHash({
|
|
10002
|
-
artifact: canonicalJson(input.artifact),
|
|
10003
|
-
scenarioId: input.scenario.id,
|
|
10004
|
-
judgeName: judge.name,
|
|
10005
|
-
dimensions: judge.dimensions,
|
|
10006
|
-
judgeVersion: options.judgeVersion
|
|
10007
|
-
});
|
|
10008
|
-
const cached = await store.get(key);
|
|
10009
|
-
if (cached !== void 0) {
|
|
10010
|
-
stats.hits += 1;
|
|
10011
|
-
return cached;
|
|
10012
|
-
}
|
|
10013
|
-
const score = await judge.score(input);
|
|
10014
|
-
await store.set(key, score);
|
|
10015
|
-
stats.misses += 1;
|
|
10016
|
-
return score;
|
|
10017
|
-
},
|
|
10018
|
-
stats: () => ({ ...stats })
|
|
10019
|
-
};
|
|
10020
|
-
if (judge.appliesTo) wrapped.appliesTo = judge.appliesTo;
|
|
10021
|
-
return wrapped;
|
|
10022
|
-
}
|
|
10023
|
-
|
|
10024
9957
|
// src/attestation.ts
|
|
10025
9958
|
var ATTESTATION_ALGORITHM = "sha256/canonical-json";
|
|
10026
9959
|
function attest(report, provenance) {
|
|
@@ -10067,6 +10000,7 @@ export {
|
|
|
10067
10000
|
BenchmarkRunner,
|
|
10068
10001
|
BudgetBreachError,
|
|
10069
10002
|
BudgetGuard,
|
|
10003
|
+
CODING_HARNESSES,
|
|
10070
10004
|
CallbackResearcher,
|
|
10071
10005
|
CaptureIntegrityError,
|
|
10072
10006
|
ConfigError,
|
|
@@ -10344,6 +10278,7 @@ export {
|
|
|
10344
10278
|
evaluateTraceContract,
|
|
10345
10279
|
executeScenario,
|
|
10346
10280
|
expandMatrix,
|
|
10281
|
+
expandProfileAxes,
|
|
10347
10282
|
expectAgent,
|
|
10348
10283
|
exportRewardModel,
|
|
10349
10284
|
exportRunAsOtlp,
|
|
@@ -10367,6 +10302,7 @@ export {
|
|
|
10367
10302
|
findConstructorCwdDropped,
|
|
10368
10303
|
findFallbackToPass,
|
|
10369
10304
|
findLiteralTruePass,
|
|
10305
|
+
findProductBenchmarkArtifacts,
|
|
10370
10306
|
findSkipCountsAsPass,
|
|
10371
10307
|
firstNumberAttr,
|
|
10372
10308
|
firstStringAttr,
|
|
@@ -10390,6 +10326,7 @@ export {
|
|
|
10390
10326
|
gradeSemanticStatus,
|
|
10391
10327
|
groupBy,
|
|
10392
10328
|
groupRunsByAgentProfileCell,
|
|
10329
|
+
harnessAxisOf,
|
|
10393
10330
|
hashContent,
|
|
10394
10331
|
hashJson,
|
|
10395
10332
|
hashScenarios,
|
|
@@ -10431,6 +10368,7 @@ export {
|
|
|
10431
10368
|
judgeSpans,
|
|
10432
10369
|
keyPreserved,
|
|
10433
10370
|
knowledgeReadinessTracePayload,
|
|
10371
|
+
leaderboard,
|
|
10434
10372
|
linterJudge,
|
|
10435
10373
|
llmJudge,
|
|
10436
10374
|
llmSpanFromProvider,
|
|
@@ -10494,6 +10432,8 @@ export {
|
|
|
10494
10432
|
preflightModels,
|
|
10495
10433
|
printDriverSummary,
|
|
10496
10434
|
probeLlm,
|
|
10435
|
+
productBenchmarkIntegrityFailures,
|
|
10436
|
+
productBenchmarkSplits,
|
|
10497
10437
|
profile_exports as profile,
|
|
10498
10438
|
projectOtlpFlatLine,
|
|
10499
10439
|
projectRuntimeTrajectoryEvidence,
|
|
@@ -10503,6 +10443,8 @@ export {
|
|
|
10503
10443
|
pytestTestParser,
|
|
10504
10444
|
ranks,
|
|
10505
10445
|
readOtlpStatus,
|
|
10446
|
+
readProductBenchmarkManifest,
|
|
10447
|
+
readProductBenchmarkRecords,
|
|
10506
10448
|
recordRuns,
|
|
10507
10449
|
recordRunsToScorecard,
|
|
10508
10450
|
redTeamDataset,
|
|
@@ -10615,6 +10557,9 @@ export {
|
|
|
10615
10557
|
userQuestionsForKnowledgeGaps,
|
|
10616
10558
|
validateAgentProfileCell,
|
|
10617
10559
|
validatePolicyEdit,
|
|
10560
|
+
validateProductBenchmarkManifest,
|
|
10561
|
+
validateProductBenchmarkRecord,
|
|
10562
|
+
validateProductBenchmarkRun,
|
|
10618
10563
|
validateRunRecord,
|
|
10619
10564
|
verbosityBias,
|
|
10620
10565
|
verifyAgentProfileCell,
|