@tangle-network/agent-eval 1.0.34 → 1.0.35
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 +7 -0
- package/dist/adapters/http.d.ts +2 -2
- package/dist/analyst/index.d.ts +3 -3
- package/dist/app-grade/index.d.ts +2 -2
- package/dist/benchmarks/index.d.ts +90 -8
- package/dist/benchmarks/index.d.ts.map +1 -1
- package/dist/benchmarks/index.js +590 -50
- package/dist/benchmarks/index.js.map +1 -1
- package/dist/campaign/index.d.ts +4 -4
- package/dist/contract/index.d.ts +7 -7
- package/dist/{default-registry-2Ziw-0sL.d.ts → default-registry-CfZCJdJT.d.ts} +2 -2
- package/dist/{default-registry-2Ziw-0sL.d.ts.map → default-registry-CfZCJdJT.d.ts.map} +1 -1
- package/dist/{define-agent-eval-DmCV1TZo.d.ts → define-agent-eval-QdTTdbyE.d.ts} +5 -5
- package/dist/{define-agent-eval-DmCV1TZo.d.ts.map → define-agent-eval-QdTTdbyE.d.ts.map} +1 -1
- package/dist/{evaluation-BQQ2ga5W.d.ts → evaluation-imW3I7tD.d.ts} +2 -2
- package/dist/{evaluation-BQQ2ga5W.d.ts.map → evaluation-imW3I7tD.d.ts.map} +1 -1
- package/dist/evaluation.d.ts +1 -1
- package/dist/experiment/index.d.ts +1 -1
- package/dist/{index-BwJtNdaj.d.ts → index-CeEW0CHk.d.ts} +11 -11
- package/dist/{index-BwJtNdaj.d.ts.map → index-CeEW0CHk.d.ts.map} +1 -1
- package/dist/{index-BFpDeCuS.d.ts → index-CeTno9aO.d.ts} +2 -2
- package/dist/{index-BFpDeCuS.d.ts.map → index-CeTno9aO.d.ts.map} +1 -1
- package/dist/{index-8hbrQwdR.d.ts → index-DshgWP9U.d.ts} +4 -4
- package/dist/{index-8hbrQwdR.d.ts.map → index-DshgWP9U.d.ts.map} +1 -1
- package/dist/{index-BfxYoHGF.d.ts → index-_Gwk9sZl.d.ts} +2 -2
- package/dist/{index-BfxYoHGF.d.ts.map → index-_Gwk9sZl.d.ts.map} +1 -1
- package/dist/{index-BnqugnsM.d.ts → index-sOdbeWGO.d.ts} +6 -6
- package/dist/{index-BnqugnsM.d.ts.map → index-sOdbeWGO.d.ts.map} +1 -1
- package/dist/index.d.ts +11 -11
- package/dist/index.js +1 -153
- package/dist/index.js.map +1 -1
- package/dist/llm-judge-DOgWUOml.js.map +1 -1
- package/dist/{matrix-D0fEU0fq.d.ts → matrix-Bk8Iz49C.d.ts} +2 -2
- package/dist/{matrix-D0fEU0fq.d.ts.map → matrix-Bk8Iz49C.d.ts.map} +1 -1
- package/dist/multishot/golden/index.d.ts +1 -1
- package/dist/multishot/index.d.ts +2 -2
- package/dist/openapi.json +1 -1
- package/dist/rl.d.ts +1 -1
- package/dist/rollout/index.d.ts +2 -2
- package/dist/search/index.d.ts +2 -2
- package/dist/{search-kernel-IpyhPDQd.d.ts → search-kernel-BigyOZX3.d.ts} +2 -2
- package/dist/{search-kernel-IpyhPDQd.d.ts.map → search-kernel-BigyOZX3.d.ts.map} +1 -1
- package/dist/{statistical-heldout-AvgLVFp6.d.ts → statistical-heldout-Bd6PVnQD.d.ts} +2 -2
- package/dist/{statistical-heldout-AvgLVFp6.d.ts.map → statistical-heldout-Bd6PVnQD.d.ts.map} +1 -1
- package/dist/{systemone-DPVj7a1g.d.ts → systemone-Dpp7I3uV.d.ts} +3 -3
- package/dist/{systemone-DPVj7a1g.d.ts.map → systemone-Dpp7I3uV.d.ts.map} +1 -1
- package/dist/systemone.d.ts +2 -2
- package/dist/{types-qJwFZTqa.d.ts → types-BeJIREX-.d.ts} +6 -1
- package/dist/types-BeJIREX-.d.ts.map +1 -0
- package/dist/{types-rf0yhJmW.d.ts → types-ff0YYJnj.d.ts} +69 -3
- package/dist/types-ff0YYJnj.d.ts.map +1 -0
- package/dist/verification-strategy-CYhDX1rE.js +156 -0
- package/dist/verification-strategy-CYhDX1rE.js.map +1 -0
- package/dist/wire/index.d.ts +5 -5
- package/package.json +1 -1
- package/dist/types-qJwFZTqa.d.ts.map +0 -1
- package/dist/types-rf0yhJmW.d.ts.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,13 @@ All notable changes to `@tangle-network/agent-eval` and its sibling `agent-eval-
|
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
+
## [1.0.35] — 2026-11-14
|
|
8
|
+
|
|
9
|
+
- Fix Harbor discovery for nested datasets while retaining native task configuration, artifact destinations and science metadata.
|
|
10
|
+
- Add native benchmark bindings through the existing checker/adapter contracts, immutable measurement definitions, and artifact-bound result receipts.
|
|
11
|
+
- Retain benchmark raw evidence and verification certifications in campaign cells; exclude unavailable grades from score denominators and bind resumptions to grader and responder identities.
|
|
12
|
+
- Add retained-trial Harbor regrading through the upstream verifier, with explicit reward selection and validity checks.
|
|
13
|
+
|
|
7
14
|
## [1.0.34] — 2026-11-14
|
|
8
15
|
|
|
9
16
|
- fix(deps): resolve Interface 5.10.26 and repin the analyst benchmark's dependency lock
|
package/dist/adapters/http.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { d as CostReceipt } from "../cost-ledger-Czro9wmo.js";
|
|
2
|
-
import { R as Scenario, d as DispatchContext, f as DispatchFn } from "../types-
|
|
3
|
-
import "../index-
|
|
2
|
+
import { R as Scenario, d as DispatchContext, f as DispatchFn } from "../types-BeJIREX-.js";
|
|
3
|
+
import "../index-sOdbeWGO.js";
|
|
4
4
|
export interface HttpDispatchOptions<TScenario extends Scenario, _TArtifact> {
|
|
5
5
|
/** Static endpoint URL. Mutually exclusive with `resolveUrl`. */
|
|
6
6
|
url?: string;
|
package/dist/analyst/index.d.ts
CHANGED
|
@@ -3,14 +3,14 @@ import { A as FindingParseOutcome, B as FindingTreatment, C as CalibrationInterv
|
|
|
3
3
|
import { A as ChatResponse, D as ChatCallOpts, F as MockTransportOpts, I as OpenAiCompatibleTransportOpts, L as SandboxSdkTransportOpts, M as CreateChatClientOpts, N as CustomTransportOpts, O as ChatClient, R as createChatClient, j as ChatTransport, k as ChatRequest, t as BootstrapInterval } from "../cluster-CSd0LE_M.js";
|
|
4
4
|
import { Wt as NominalAgreementOptions } from "../index-Bcy00QoN.js";
|
|
5
5
|
import { A as traceStoreEvidenceResolver, C as AnalystEvidenceResolutionError, D as AnalystLatencyDistribution, E as AnalystIssueExpectation, G as ExternalOptimizerRunnerCommand, H as ExternalOptimizerModelExecutionObservation, O as RunAnalystBenchmarkOptions, S as AnalystEvidenceResolution, T as AnalystFindingScore, _ as AnalystBenchmarkProvenance, b as AnalystBenchmarkSummary, d as AnalystBenchmarkDatasetRef, f as AnalystBenchmarkDescriptor, g as AnalystBenchmarkOutput, h as AnalystBenchmarkObservation, k as runAnalystBenchmark, m as AnalystBenchmarkLabelState, p as AnalystBenchmarkError, t as AgentProfile, u as AnalystBenchmarkCase, v as AnalystBenchmarkResult, w as AnalystEvidenceResolver, x as AnalystEvidenceExpectation, y as AnalystBenchmarkRunner, z as ExternalOptimizerModelCall } from "../agent-profile-BpLyM2kL.js";
|
|
6
|
-
import { C as BehavioralWindowPolicy, S as BehavioralTraceWindow, _ as BehavioralTraceEventMap, a as createTraceAnalyst, b as BehavioralTraceQuestionsOptions, c as BehavioralAnalystOptions, d as pinBehavioralFailureClass, f as BEHAVIORAL_TRACE_QUESTIONS, g as BehavioralTraceEvent, h as BehavioralTraceAnswer, i as TraceAnalystDefinition, l as assertFailureClasses, m as BehavioralQuestionCalibration, n as buildDefaultAnalystRegistry, o as runTraceAnalyst, p as BEHAVIORAL_TRACE_QUESTIONS_VERSION, r as CreateTraceAnalystOptions, s as BEHAVIORAL_FAILURE_CLASS, t as DefaultAnalystRegistryOptions, u as behavioralAnalyst, v as BehavioralTraceLayer, w as behavioralTraceQuestionDigest, x as BehavioralTraceSupport, y as BehavioralTraceQuestionId } from "../default-registry-
|
|
6
|
+
import { C as BehavioralWindowPolicy, S as BehavioralTraceWindow, _ as BehavioralTraceEventMap, a as createTraceAnalyst, b as BehavioralTraceQuestionsOptions, c as BehavioralAnalystOptions, d as pinBehavioralFailureClass, f as BEHAVIORAL_TRACE_QUESTIONS, g as BehavioralTraceEvent, h as BehavioralTraceAnswer, i as TraceAnalystDefinition, l as assertFailureClasses, m as BehavioralQuestionCalibration, n as buildDefaultAnalystRegistry, o as runTraceAnalyst, p as BEHAVIORAL_TRACE_QUESTIONS_VERSION, r as CreateTraceAnalystOptions, s as BEHAVIORAL_FAILURE_CLASS, t as DefaultAnalystRegistryOptions, u as behavioralAnalyst, v as BehavioralTraceLayer, w as behavioralTraceQuestionDigest, x as BehavioralTraceSupport, y as BehavioralTraceQuestionId } from "../default-registry-CfZCJdJT.js";
|
|
7
7
|
import { a as ExactAnalystRunPolicySnapshot, c as ExactAnalystSnapshot, d as ExactExecutionComponentSnapshot, i as ExactAnalystRunEvent, l as ExactCapableAnalyst, n as ExactAnalystExecutionPlanSnapshot, o as ExactAnalystRunResult, r as ExactAnalystRunCompletion, s as ExactAnalystRunSummary, t as ExactAnalystBudgetSnapshot, u as ExactExecutionComponentIdentity } from "../exact-types-xrjBO9sb.js";
|
|
8
8
|
import { g as SystemOneState } from "../systemone-protocol-C4t7JH4Y.js";
|
|
9
|
-
import { B as DiffPolicy, F as FindingsTimeStep, H as FindingsStore, I as LedgerFinding, L as diffFindingsOverTime, M as FindingsLedgerOutcome, N as FindingsLedgerRead, P as FindingsQuery, R as openFindingsLedger, U as PersistedFinding, V as FindingsDiff, W as diffFindings, j as FindingsLedger, r as SystemOneEvaluatorOptions, z as queryFindings } from "../systemone-
|
|
9
|
+
import { B as DiffPolicy, F as FindingsTimeStep, H as FindingsStore, I as LedgerFinding, L as diffFindingsOverTime, M as FindingsLedgerOutcome, N as FindingsLedgerRead, P as FindingsQuery, R as openFindingsLedger, U as PersistedFinding, V as FindingsDiff, W as diffFindings, j as FindingsLedger, r as SystemOneEvaluatorOptions, z as queryFindings } from "../systemone-Dpp7I3uV.js";
|
|
10
10
|
import { a as RAW_FINDING_SCHEMA_PROMPT, c as RawAnalystFindingSchema, i as TraceAnalystLimits, l as evidenceRefsFromRawFinding, n as TraceAnalysisEngineRequest, o as RawAnalystEvidence, r as TraceAnalysisEngineResult, s as RawAnalystFinding, t as TraceAnalysisEngine, u as parseRawFinding } from "../engine-yaSDTpEa.js";
|
|
11
11
|
import { n as buildTraceToolsForGroup, t as TraceToolGroupName } from "../tool-groups-5pgmtTmE.js";
|
|
12
12
|
import { a as BudgetPolicy, c as RegistryRunOpts, i as AnalystRegistryOptions, n as ExactAnalystRunExecutionError, o as ExactAnalystBudgetPolicy, r as AnalystHooks, s as ExactRegistryRunOpts, t as AnalystRegistry } from "../registry-x5n4GeBx.js";
|
|
13
|
-
import { T as SemanticConceptJudgeOptions, _ as DspyRlmTraceEngineOptions, a as FAILURE_MODE_KIND_SPEC, b as createChatTraceEngine, c as emitControlIntegrityFindings, d as FindingSubject, f as FindingSubjectKind, g as renderFindingSubject, h as parseFindingSubject, i as IMPROVEMENT_KIND_SPEC, l as FINDING_SUBJECT_KINDS, m as findingSubjectGrammarPromptFor, n as KNOWLEDGE_POISONING_KIND_SPEC, o as CONTROL_INTEGRITY_ANALYST, p as KIND_EXPECTED_SUBJECTS, r as KNOWLEDGE_GAP_KIND_SPEC, s as ControlIntegrityAnalyst, t as DEFAULT_TRACE_ANALYST_KINDS, u as FINDING_SUBJECT_SYNTAX, v as createDspyRlmTraceEngine, y as ChatTraceEngineOptions } from "../index-
|
|
13
|
+
import { T as SemanticConceptJudgeOptions, _ as DspyRlmTraceEngineOptions, a as FAILURE_MODE_KIND_SPEC, b as createChatTraceEngine, c as emitControlIntegrityFindings, d as FindingSubject, f as FindingSubjectKind, g as renderFindingSubject, h as parseFindingSubject, i as IMPROVEMENT_KIND_SPEC, l as FINDING_SUBJECT_KINDS, m as findingSubjectGrammarPromptFor, n as KNOWLEDGE_POISONING_KIND_SPEC, o as CONTROL_INTEGRITY_ANALYST, p as KIND_EXPECTED_SUBJECTS, r as KNOWLEDGE_GAP_KIND_SPEC, s as ControlIntegrityAnalyst, t as DEFAULT_TRACE_ANALYST_KINDS, u as FINDING_SUBJECT_SYNTAX, v as createDspyRlmTraceEngine, y as ChatTraceEngineOptions } from "../index-CeTno9aO.js";
|
|
14
14
|
import { C as runPrimeExchange, D as ReplyRowDecoded, E as ReplyEnvelope, O as ReplyRowRejection, S as projectPrimeTrajectory, T as ReplyContract, _ as buildPrimePrompt, a as PrimeProjectionOutcome, b as normalizePrimeUsage, c as PrimeProtocolIdentity, d as PrimeRepairPromptSpec, f as PrimeRepairState, g as analystUsageReceiptFromPrimeUsage, h as PrimeTurnRecord, i as PrimeProjectionDelivery, l as PrimeRawUsage, m as PrimeRowDecoded, n as PrimeExchangeOutcome, o as PrimeProjectionSource, p as PrimeReplyContract, r as PrimeFailure, s as PrimePromptSpec, t as PrimeExchangeOptions, u as PrimeRejectedRow, v as buildPrimeRepairPrompt, w as DecodedReply, x as primeProtocolSha256, y as mergePrimeRawUsage } from "../prime-protocol-3aHqoxSH.js";
|
|
15
15
|
import { i as nodeHttpPrimeBridgeTransport, n as PrimeBridgeTransportRequest, r as PrimeBridgeTransportResult, t as PrimeBridgeTransport } from "../prime-bridge-transport-Cfqir_Im.js";
|
|
16
16
|
import { b as SupervisorRunSources } from "../types-_dfu6Ox2.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { m as CustomTokenPricing, t as CostLedger } from "../cost-ledger-Czro9wmo.js";
|
|
2
|
-
import "../index-
|
|
2
|
+
import "../index-CeEW0CHk.js";
|
|
3
3
|
import { O as ChatClient, j as ChatTransport } from "../cluster-CSd0LE_M.js";
|
|
4
4
|
import { d as SystemOneRequest, g as SystemOneState, s as SystemOneQuestions } from "../systemone-protocol-C4t7JH4Y.js";
|
|
5
|
-
import "../systemone-
|
|
5
|
+
import "../systemone-Dpp7I3uV.js";
|
|
6
6
|
import { a as SystemOneReviewReport, r as SystemOneReviewCheck, t as PreparedSystemOneReview } from "../systemone-review-CrnsTRav.js";
|
|
7
7
|
import { IncomingHttpHeaders, OutgoingHttpHeaders } from "node:http";
|
|
8
8
|
import { Browser, BrowserContext, Locator, Page } from "playwright";
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { c as RunSplitTag } from "../run-record-hti3ETmO.js";
|
|
2
|
-
import "../
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { _ as StrategyChecker } from "../verdict-D_qiBQ6_.js";
|
|
3
|
+
import "../index-DshgWP9U.js";
|
|
4
|
+
import { S as JudgeConfig, a as CampaignResult } from "../types-BeJIREX-.js";
|
|
5
|
+
import { _t as CampaignStorage } from "../search-kernel-BigyOZX3.js";
|
|
6
|
+
import { _ as defineBenchmark, a as BenchmarkFamily, c as BenchmarkSource, d as BenchmarkResult, f as benchmarkResult, g as benchmarkDefinitionDigest, h as BenchmarkDefinition, i as BenchmarkEvaluation, l as BenchmarkTaskKind, m as defineBenchmarkResult, n as BenchmarkAdapter, o as BenchmarkResponder, p as benchmarkResultEvidenceDigest, r as BenchmarkDatasetItem, s as BenchmarkScenario, t as BENCHMARK_SPLIT_SEED, u as deterministicSplit } from "../types-ff0YYJnj.js";
|
|
6
7
|
interface BenchmarkMetricCalibrationOptions<TPayload = unknown, TArtifact = string> {
|
|
7
8
|
adapter: BenchmarkAdapter<BenchmarkDatasetItem<TPayload>, TPayload, TArtifact>;
|
|
8
9
|
item: BenchmarkDatasetItem<TPayload>;
|
|
@@ -28,6 +29,8 @@ interface HarborTaskPayload {
|
|
|
28
29
|
name: string;
|
|
29
30
|
/** The task's directory name inside the dataset's `tasks/`. */
|
|
30
31
|
dir: string;
|
|
32
|
+
/** Stable path relative to `tasks/`, including domain directories in nested datasets. */
|
|
33
|
+
relativePath?: string;
|
|
31
34
|
/** Absolute path of the task directory, for the grader. */
|
|
32
35
|
taskDir: string;
|
|
33
36
|
/** `instruction.md`, verbatim. */
|
|
@@ -47,6 +50,16 @@ interface HarborTaskPayload {
|
|
|
47
50
|
};
|
|
48
51
|
/** Paths the verifier reads from the agent's environment (`artifacts`, sources only). */
|
|
49
52
|
artifacts: string[];
|
|
53
|
+
/** Native artifact declarations, including target/service and unknown upstream fields. */
|
|
54
|
+
artifactMappings?: Array<Record<string, unknown> & {
|
|
55
|
+
source: string;
|
|
56
|
+
}>;
|
|
57
|
+
/** The complete parsed task configuration. The execution owner preserves its semantics. */
|
|
58
|
+
config?: Record<string, unknown>;
|
|
59
|
+
/** Byte identity of the imported task.toml, independent of its declared upstream revision. */
|
|
60
|
+
configDigest?: string;
|
|
61
|
+
/** Native metadata, including domain/field/subfield/tags in science datasets. */
|
|
62
|
+
metadata?: Record<string, unknown>;
|
|
50
63
|
/** The environment starts more than one container (a docker-compose file). */
|
|
51
64
|
multiContainer: boolean;
|
|
52
65
|
/** `[metadata].category`. */
|
|
@@ -61,6 +74,7 @@ type HarborGradeOutcome = {
|
|
|
61
74
|
value: {
|
|
62
75
|
reward: number;
|
|
63
76
|
detail?: string;
|
|
77
|
+
raw?: Record<string, unknown>;
|
|
64
78
|
};
|
|
65
79
|
} | {
|
|
66
80
|
succeeded: false;
|
|
@@ -75,7 +89,7 @@ interface HarborBenchmarkOptions<TArtifact> {
|
|
|
75
89
|
source: BenchmarkSource & {
|
|
76
90
|
revision: string;
|
|
77
91
|
};
|
|
78
|
-
/**
|
|
92
|
+
/** Relative task paths to load, in this order; recursively discover `tasks/` when absent. */
|
|
79
93
|
tasks?: readonly string[];
|
|
80
94
|
/** Run the task's own verifier on the agent's artifact. */
|
|
81
95
|
grade: (item: HarborTaskItem, artifact: TArtifact) => Promise<HarborGradeOutcome>;
|
|
@@ -133,12 +147,69 @@ export declare const dockerHostEnv: (host?: string) => NodeJS.ProcessEnv;
|
|
|
133
147
|
/** Build the case's environment image once and return its tag; waits for a live slot first. */
|
|
134
148
|
export declare function prepareCaseEnvironment(item: HarborTaskItem, options?: CaseEnvironmentOptions): Promise<string>;
|
|
135
149
|
/**
|
|
136
|
-
* Remove the case's
|
|
137
|
-
* `RUN` line, and every record built on them. Frees the case's live slot.
|
|
150
|
+
* Remove the case's tag and its build cache: the records whose step is the Dockerfile's first
|
|
151
|
+
* `RUN` line, and every record built on them. Frees the case's live slot. Another owner's tag of
|
|
152
|
+
* the same image keeps that image, and pruning build cache never removes an image.
|
|
138
153
|
*/
|
|
139
154
|
export declare function releaseCaseEnvironment(item: HarborTaskItem, options?: {
|
|
140
155
|
host?: string;
|
|
141
156
|
}): Promise<void>;
|
|
157
|
+
interface HarborTrialArtifact {
|
|
158
|
+
trialDir: string;
|
|
159
|
+
/** Optional expected original-trial identities; mismatch refuses before launching a verifier. */
|
|
160
|
+
sourceTrialId?: string;
|
|
161
|
+
sourceTaskChecksum?: string;
|
|
162
|
+
sourceResultDigest?: string;
|
|
163
|
+
}
|
|
164
|
+
interface HarborTrialGradeOptions {
|
|
165
|
+
/** Existing durable output parent outside the source trial. All new evidence is retained here. */
|
|
166
|
+
trialsDir: string;
|
|
167
|
+
harborBin?: string;
|
|
168
|
+
/** Explicit native reward key; never take an arbitrary metric from a multi-metric result. */
|
|
169
|
+
rewardKey: string;
|
|
170
|
+
environment?: string;
|
|
171
|
+
timeoutMs?: number;
|
|
172
|
+
env?: Record<string, string>;
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Re-run Harbor's separate verifier on a genuine retained trial. Harbor owns artifact-manifest,
|
|
176
|
+
* coverage and separate-verifier checks. Original and current task identities remain distinct:
|
|
177
|
+
* regrading old outputs with a new verifier does not establish a new agent solve.
|
|
178
|
+
*
|
|
179
|
+
* Protocol source: harbor-framework/harbor@ec6aeab7fe0eb51df52b4e72c524daf5ea9cc5f4,
|
|
180
|
+
* src/harbor/cli/trials.py, trial/regrade.py and models/trial/result.py. No fallback oracle run.
|
|
181
|
+
*/
|
|
182
|
+
export declare function gradeHarborTrial(options: HarborTrialGradeOptions): (item: HarborTaskItem, artifact: HarborTrialArtifact) => Promise<HarborGradeOutcome>;
|
|
183
|
+
interface NativeBenchmarkOptions<TPayload, TArtifact> {
|
|
184
|
+
definition: BenchmarkDefinition;
|
|
185
|
+
/** Pins the adapter, normalization and artifact-digest implementation. */
|
|
186
|
+
implementationRef: string;
|
|
187
|
+
load: () => Promise<BenchmarkDatasetItem<TPayload>[]>;
|
|
188
|
+
checker: StrategyChecker<{
|
|
189
|
+
item: BenchmarkDatasetItem<TPayload>;
|
|
190
|
+
artifact: TArtifact;
|
|
191
|
+
}, BenchmarkEvaluation & {
|
|
192
|
+
passed: boolean;
|
|
193
|
+
}>;
|
|
194
|
+
/** Preserve native splits. Rows without a split require this explicit policy. */
|
|
195
|
+
assignSplit?: (itemId: string) => RunSplitTag;
|
|
196
|
+
/** Defaults to hashing the JSON value. Files/path artifacts must hash their actual bytes here. */
|
|
197
|
+
artifactDigest?: (artifact: TArtifact) => string | Promise<string>;
|
|
198
|
+
family?: string;
|
|
199
|
+
taskKind?: string;
|
|
200
|
+
}
|
|
201
|
+
interface NativeBenchmarkAdapter<TPayload, TArtifact> extends BenchmarkAdapter<BenchmarkDatasetItem<TPayload>, TPayload, TArtifact> {
|
|
202
|
+
definition: BenchmarkDefinition;
|
|
203
|
+
evaluationRef: string;
|
|
204
|
+
loadAll(): Promise<BenchmarkDatasetItem<TPayload>[]>;
|
|
205
|
+
evaluateResult(item: BenchmarkDatasetItem<TPayload>, artifact: TArtifact): Promise<BenchmarkResult>;
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* Bind an existing native grader without replacing its protocol. The checker explicitly projects
|
|
209
|
+
* native scores into [0, 1], returns pass/fail separately, and retains native measurements in raw.
|
|
210
|
+
* Execution, hidden-reference staging, model transport and spend remain the caller's responsibility.
|
|
211
|
+
*/
|
|
212
|
+
export declare function createNativeBenchmarkAdapter<TPayload, TArtifact>(options: NativeBenchmarkOptions<TPayload, TArtifact>): NativeBenchmarkAdapter<TPayload, TArtifact>;
|
|
142
213
|
/**
|
|
143
214
|
* Synthetic routing dataset. 16 tasks across 4 categories. Used as a
|
|
144
215
|
* deterministic, dependency-free benchmark for any router that maps a
|
|
@@ -200,6 +271,8 @@ declare const assignSplit: (itemId: string) => RunSplitTag;
|
|
|
200
271
|
interface BenchmarkRunOptions<TPayload = unknown, TArtifact = string> {
|
|
201
272
|
adapter: BenchmarkAdapter<BenchmarkDatasetItem<TPayload>, TPayload, TArtifact>;
|
|
202
273
|
respond: BenchmarkResponder<TPayload, TArtifact>;
|
|
274
|
+
/** Pins the responder/model/prompt implementation for resumable defined benchmarks. */
|
|
275
|
+
dispatchRef?: string;
|
|
203
276
|
splits?: readonly RunSplitTag[];
|
|
204
277
|
runDir: string;
|
|
205
278
|
repo?: string;
|
|
@@ -226,6 +299,9 @@ interface BenchmarkReport {
|
|
|
226
299
|
durationMs: number;
|
|
227
300
|
totalItems: number;
|
|
228
301
|
totalCells: number;
|
|
302
|
+
/** Cells with a complete score, excluding missing/failed grading. */
|
|
303
|
+
cellsMeasured: number;
|
|
304
|
+
cellsUnmeasured: number;
|
|
229
305
|
cellsFailed: number;
|
|
230
306
|
cellsCached: number;
|
|
231
307
|
totalCostUsd: number;
|
|
@@ -235,6 +311,12 @@ interface BenchmarkReport {
|
|
|
235
311
|
score: BenchmarkDistribution;
|
|
236
312
|
costUsd: BenchmarkDistribution;
|
|
237
313
|
latencyMs: BenchmarkDistribution;
|
|
314
|
+
definition?: BenchmarkAdapter['definition'];
|
|
315
|
+
definitionDigest?: string;
|
|
316
|
+
evaluationRef?: string;
|
|
317
|
+
/** This report summarizes normalized Eval scores; native official aggregation is separate. */
|
|
318
|
+
scoreAggregation: 'mean-normalized-score';
|
|
319
|
+
nativeAggregation: 'not-computed';
|
|
238
320
|
}
|
|
239
321
|
interface BenchmarkSliceSummary {
|
|
240
322
|
n: number;
|
|
@@ -337,5 +419,5 @@ export declare function evaluateStandardRetrieval(payload: StandardRetrievalPayl
|
|
|
337
419
|
expectedScores: Record<string, number>;
|
|
338
420
|
};
|
|
339
421
|
};
|
|
340
|
-
export { BENCHMARK_SPLIT_SEED, type BenchmarkAdapter, type BenchmarkDatasetItem, type BenchmarkDistribution, type BenchmarkEvaluation, type BenchmarkFamily, type BenchmarkMetricCalibrationOptions, type BenchmarkMetricCalibrationResult, type BenchmarkReport, type BenchmarkResponder, type BenchmarkRunOptions, type BenchmarkRunResult, type BenchmarkScenario, type BenchmarkSliceSummary, type BenchmarkSource, type BenchmarkTaskKind, type BuildStandardRetrievalItemsOptions, type CaseEnvironmentOptions, type HarborBenchmarkAdapter, type HarborBenchmarkOptions, type HarborGradeOutcome, type HarborPatchGradeOptions, type HarborTaskItem, type HarborTaskPayload, type RetrievalIdAdapterOptions, type StandardRetrievalArtifact, type StandardRetrievalDocument, type StandardRetrievalEvaluationOptions, type StandardRetrievalPayload, type StandardRetrievalQrel, type StandardRetrievalQuery, type StandardRetrievalResult, deterministicSplit, index_d_exports as routing };
|
|
422
|
+
export { BENCHMARK_SPLIT_SEED, type BenchmarkAdapter, type BenchmarkDatasetItem, type BenchmarkDefinition, type BenchmarkDistribution, type BenchmarkEvaluation, type BenchmarkFamily, type BenchmarkMetricCalibrationOptions, type BenchmarkMetricCalibrationResult, type BenchmarkReport, type BenchmarkResponder, type BenchmarkResult, type BenchmarkRunOptions, type BenchmarkRunResult, type BenchmarkScenario, type BenchmarkSliceSummary, type BenchmarkSource, type BenchmarkTaskKind, type BuildStandardRetrievalItemsOptions, type CaseEnvironmentOptions, type HarborBenchmarkAdapter, type HarborBenchmarkOptions, type HarborGradeOutcome, type HarborPatchGradeOptions, type HarborTaskItem, type HarborTaskPayload, type HarborTrialArtifact, type HarborTrialGradeOptions, type NativeBenchmarkAdapter, type NativeBenchmarkOptions, type RetrievalIdAdapterOptions, type StandardRetrievalArtifact, type StandardRetrievalDocument, type StandardRetrievalEvaluationOptions, type StandardRetrievalPayload, type StandardRetrievalQrel, type StandardRetrievalQuery, type StandardRetrievalResult, benchmarkDefinitionDigest, benchmarkResult, benchmarkResultEvidenceDigest, defineBenchmark, defineBenchmarkResult, deterministicSplit, index_d_exports as routing };
|
|
341
423
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/benchmarks/calibration.ts","../../src/benchmarks/harbor.ts","../../src/benchmarks/harbor-environment.ts","../../src/benchmarks/routing/dataset.ts","../../src/benchmarks/routing/index.ts","../../src/benchmarks/runner.ts","../../src/benchmarks/standard-formats.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/benchmarks/calibration.ts","../../src/benchmarks/harbor.ts","../../src/benchmarks/harbor-environment.ts","../../src/benchmarks/harbor-regrade.ts","../../src/benchmarks/native.ts","../../src/benchmarks/routing/dataset.ts","../../src/benchmarks/routing/index.ts","../../src/benchmarks/runner.ts","../../src/benchmarks/standard-formats.ts"],"mappings":";;;;;;UAEiB,kCAAkC,oBAAoB;EACrE,SAAS,iBAAiB,qBAAqB,WAAW,UAAU;EACpE,MAAM,qBAAqB;EAC3B,cAAc;EACd,gBAAgB;EAChB;EACA;EACA;;UAGe;EACf;EACA,MAAM;EACN,QAAQ;EACR;EACA;EACA;EACA;;wBAGoB,yBAAyB,oBAAoB,oBACjE,SAAS,kCAAkC,UAAU,aACpD,QAAQ;;UCYM;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;IACE;IACA;IACA;IACA;;;EAGF;;EAEA,mBAAmB,MAAM;IAA4B;;;EAErD,SAAS;;EAET;;EAEA,WAAW;;EAEX;;EAEA;;EAEA;;KAGU,iBAAiB,qBAAqB;;KAGtC;EACN;EAAiB;IAAS;IAAgB;IAAiB,MAAM;;;EACjE;EAAkB;;UAEP,uBAAuB;;EAEtC;;EAEA;;EAEA,QAAQ;IAAoB;;;EAE5B;;EAEA,QAAQ,MAAM,gBAAgB,UAAU,cAAc,QAAQ;;EAE9D,eAAe,mBAAmB;;;UAInB,uBAAuB,mBAC9B,iBAAiB,gBAAgB,mB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