@tangle-network/agent-eval 1.0.34 → 1.0.36

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.
Files changed (74) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/adapters/http.d.ts +2 -2
  3. package/dist/analyst/index.d.ts +3 -3
  4. package/dist/app-grade/index.d.ts +2 -2
  5. package/dist/benchmarks/index.d.ts +90 -8
  6. package/dist/benchmarks/index.d.ts.map +1 -1
  7. package/dist/benchmarks/index.js +592 -52
  8. package/dist/benchmarks/index.js.map +1 -1
  9. package/dist/campaign/index.d.ts +5 -5
  10. package/dist/campaign/index.js +5 -5
  11. package/dist/{campaign-BOoc6hc3.js → campaign-CifihyXp.js} +4 -4
  12. package/dist/{campaign-BOoc6hc3.js.map → campaign-CifihyXp.js.map} +1 -1
  13. package/dist/{campaign-evidence-DGTNdS_7.js → campaign-evidence-BPaJAccn.js} +27 -3
  14. package/dist/campaign-evidence-BPaJAccn.js.map +1 -0
  15. package/dist/contract/index.d.ts +8 -8
  16. package/dist/contract/index.js +5 -5
  17. package/dist/{default-registry-2Ziw-0sL.d.ts → default-registry-CfZCJdJT.d.ts} +2 -2
  18. package/dist/{default-registry-2Ziw-0sL.d.ts.map → default-registry-CfZCJdJT.d.ts.map} +1 -1
  19. package/dist/{define-agent-eval-DmCV1TZo.d.ts → define-agent-eval-C4v1f7hM.d.ts} +5 -5
  20. package/dist/{define-agent-eval-DmCV1TZo.d.ts.map → define-agent-eval-C4v1f7hM.d.ts.map} +1 -1
  21. package/dist/{define-agent-eval-Cw0HHdMF.js → define-agent-eval-DkvfaHya.js} +3 -3
  22. package/dist/{define-agent-eval-Cw0HHdMF.js.map → define-agent-eval-DkvfaHya.js.map} +1 -1
  23. package/dist/{evaluation-BQQ2ga5W.d.ts → evaluation-imW3I7tD.d.ts} +2 -2
  24. package/dist/{evaluation-BQQ2ga5W.d.ts.map → evaluation-imW3I7tD.d.ts.map} +1 -1
  25. package/dist/evaluation.d.ts +1 -1
  26. package/dist/experiment/index.d.ts +1 -1
  27. package/dist/experiment/index.js +1 -1
  28. package/dist/{index-8hbrQwdR.d.ts → index-0xdMmIi4.d.ts} +10 -5
  29. package/dist/index-0xdMmIi4.d.ts.map +1 -0
  30. package/dist/{index-BwJtNdaj.d.ts → index-BmtnyRsI.d.ts} +11 -11
  31. package/dist/{index-BwJtNdaj.d.ts.map → index-BmtnyRsI.d.ts.map} +1 -1
  32. package/dist/{index-BnqugnsM.d.ts → index-C8OFP1qj.d.ts} +6 -6
  33. package/dist/{index-BnqugnsM.d.ts.map → index-C8OFP1qj.d.ts.map} +1 -1
  34. package/dist/{index-BFpDeCuS.d.ts → index-CeTno9aO.d.ts} +2 -2
  35. package/dist/{index-BFpDeCuS.d.ts.map → index-CeTno9aO.d.ts.map} +1 -1
  36. package/dist/{index-BfxYoHGF.d.ts → index-_Gwk9sZl.d.ts} +2 -2
  37. package/dist/{index-BfxYoHGF.d.ts.map → index-_Gwk9sZl.d.ts.map} +1 -1
  38. package/dist/index.d.ts +11 -11
  39. package/dist/index.js +4 -156
  40. package/dist/index.js.map +1 -1
  41. package/dist/{llm-judge-DOgWUOml.js → llm-judge-DXygU107.js} +39 -5
  42. package/dist/llm-judge-DXygU107.js.map +1 -0
  43. package/dist/{matrix-D0fEU0fq.d.ts → matrix-Bk8Iz49C.d.ts} +2 -2
  44. package/dist/{matrix-D0fEU0fq.d.ts.map → matrix-Bk8Iz49C.d.ts.map} +1 -1
  45. package/dist/multishot/golden/index.d.ts +1 -1
  46. package/dist/multishot/index.d.ts +2 -2
  47. package/dist/openapi.json +1 -1
  48. package/dist/rl.d.ts +1 -1
  49. package/dist/rollout/index.d.ts +2 -2
  50. package/dist/search/index.d.ts +2 -2
  51. package/dist/{search-kernel-IpyhPDQd.d.ts → search-kernel-BigyOZX3.d.ts} +2 -2
  52. package/dist/{search-kernel-IpyhPDQd.d.ts.map → search-kernel-BigyOZX3.d.ts.map} +1 -1
  53. package/dist/{skillopt-optimization-method-lDHnLno3.js → skillopt-optimization-method-D3xC4hG9.js} +3 -3
  54. package/dist/{skillopt-optimization-method-lDHnLno3.js.map → skillopt-optimization-method-D3xC4hG9.js.map} +1 -1
  55. package/dist/{statistical-heldout-AvgLVFp6.d.ts → statistical-heldout-Bx4q4NUa.d.ts} +4 -2
  56. package/dist/statistical-heldout-Bx4q4NUa.d.ts.map +1 -0
  57. package/dist/{systemone-DPVj7a1g.d.ts → systemone-Dpp7I3uV.d.ts} +3 -3
  58. package/dist/{systemone-DPVj7a1g.d.ts.map → systemone-Dpp7I3uV.d.ts.map} +1 -1
  59. package/dist/systemone.d.ts +2 -2
  60. package/dist/{types-qJwFZTqa.d.ts → types-BeJIREX-.d.ts} +6 -1
  61. package/dist/types-BeJIREX-.d.ts.map +1 -0
  62. package/dist/{types-rf0yhJmW.d.ts → types-ff0YYJnj.d.ts} +69 -3
  63. package/dist/types-ff0YYJnj.d.ts.map +1 -0
  64. package/dist/verification-strategy-CYhDX1rE.js +156 -0
  65. package/dist/verification-strategy-CYhDX1rE.js.map +1 -0
  66. package/dist/wire/index.d.ts +3 -3
  67. package/docs/evaluation-integrity.md +14 -0
  68. package/package.json +1 -1
  69. package/dist/campaign-evidence-DGTNdS_7.js.map +0 -1
  70. package/dist/index-8hbrQwdR.d.ts.map +0 -1
  71. package/dist/llm-judge-DOgWUOml.js.map +0 -1
  72. package/dist/statistical-heldout-AvgLVFp6.d.ts.map +0 -1
  73. package/dist/types-qJwFZTqa.d.ts.map +0 -1
  74. package/dist/types-rf0yhJmW.d.ts.map +0 -1
package/CHANGELOG.md CHANGED
@@ -4,6 +4,19 @@ All notable changes to `@tangle-network/agent-eval` and its sibling `agent-eval-
4
4
 
5
5
  ---
6
6
 
7
+ ## [1.0.36] — 2026-11-15
8
+
9
+ - Bind semantic task digests to the existing final-evidence ledger so renamed tasks cannot move between final and development evidence or be consumed again as fresh final cases.
10
+
11
+ ## [1.0.35] — 2026-11-14
12
+
13
+ - Fix Harbor discovery for nested datasets while retaining native task configuration, artifact destinations and science metadata.
14
+ - Add native benchmark bindings through the existing checker/adapter contracts, immutable measurement definitions, and artifact-bound result receipts.
15
+ - Retain benchmark raw evidence and verification certifications in campaign cells; exclude unavailable grades from score denominators and bind resumptions to grader and responder identities.
16
+ - Add retained-trial Harbor regrading through the upstream verifier, with explicit reward selection and validity checks.
17
+ - Keep each improve pass's Harbor case images when several passes share one Docker host (#1272).
18
+ - Reclaim dead owners' Harbor case images, and share a live owner's, before the free-space check (#1273).
19
+
7
20
  ## [1.0.34] — 2026-11-14
8
21
 
9
22
  - fix(deps): resolve Interface 5.10.26 and repin the analyst benchmark's dependency lock
@@ -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-qJwFZTqa.js";
3
- import "../index-BnqugnsM.js";
2
+ import { R as Scenario, d as DispatchContext, f as DispatchFn } from "../types-BeJIREX-.js";
3
+ import "../index-C8OFP1qj.js";
4
4
  export interface HttpDispatchOptions<TScenario extends Scenario, _TArtifact> {
5
5
  /** Static endpoint URL. Mutually exclusive with `resolveUrl`. */
6
6
  url?: string;
@@ -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-2Ziw-0sL.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-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-DPVj7a1g.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-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-BFpDeCuS.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-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-BwJtNdaj.js";
2
+ import "../index-BmtnyRsI.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-DPVj7a1g.js";
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 "../index-8hbrQwdR.js";
3
- import { S as JudgeConfig, a as CampaignResult } from "../types-qJwFZTqa.js";
4
- import { _t as CampaignStorage } from "../search-kernel-IpyhPDQd.js";
5
- import { a as BenchmarkFamily, c as BenchmarkSource, i as BenchmarkEvaluation, l as BenchmarkTaskKind, n as BenchmarkAdapter, o as BenchmarkResponder, r as BenchmarkDatasetItem, s as BenchmarkScenario, t as BENCHMARK_SPLIT_SEED, u as deterministicSplit } from "../types-rf0yhJmW.js";
2
+ import { _ as StrategyChecker } from "../verdict-D_qiBQ6_.js";
3
+ import "../index-0xdMmIi4.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
- /** Task directory names to load, in this order; every task under `tasks/` when absent. */
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 image and its build cache: the records whose step is the Dockerfile's first
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":";;;;;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;IACE;IACA;IACA;IACA;;;EAGF;;EAEA;;EAEA;;EAEA;;KAGU,iBAAiB,qBAAqB;;KAGtC;EACN;EAAiB;IAAS;IAAgB;;;EAC1C;EAAkB;;UAEP,uBAAuB;;EAEtC;;EAEA;;EAEA,QAAQ;IAAoB;;;EAE5B;;EAEA,QAAQ,MAAM,gBAAgB,UAAU,cAAc,QAAQ;;EAE9D,eAAe,mBAAmB;;;UAInB,uBAAuB,mBAC9B,iBAAiB,gBAAgB,mBAAmB;EAC5D,WAAW,QAAQ;;;wBA0DL,6BAA6B,oBAC3C,SAAS,uBAAuB,aAC/B,uBAAuB;;;;;;;;UAkFT;EACf;EACA;EACA;EACA;EACA;EACA,MAAM;EACN;EACA;;;;;;;;;wBA4Cc,iBACd,UAAS,2BACP,MAAM,gBAAgB;EAAY;MAAoB,QAAQ;UC3QjD;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA,OAAO;EACP,SAAS;;;qBAIE,gBAAiB,kBAAgB,OAAO;;wBA0D/B,uBACpB,MAAM,gBACN,UAAS,yBACR;;;;;wBAyBmB,uB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W,UAAU,aACnE,YAAY,WAAW,kBAAkB;UC9J3B;EACf;EACA;EACA;EACA,WAAW;;UAGI;EACf;EACA;EACA,WAAW;;UAGI;EACf;EACA;EACA;;UAGe;EACf;EACA;EACA;EACA,gBAAgB;EAChB,SAAS,eAAe;EACxB,WAAW;;UAGI;EACf;EACA,QAAQ;EACR,kBAAkB;EAClB,gBAAgB;EAChB,kBAAkB;EAClB;EACA,SAAS;EACT;EACA,WAAW,oBAAoB;;UAGhB,kCAAkC;EACjD,oBAAoB;EACpB;EACA;EACA;EACA;;UAGe;EACf;EACA;EACA;EACA;;KAGU,kEAGC;EAEP;EACA;EACA,mBAAmB;;UAGR;EACf,oBAAoB;EACpB;EACA;EACA;EACA;;wBA0Bc,WAAW,eAAe;wBAgB1B,qBAAqB,eAAe;wBAgBpC,sBAAsB,eAAe;wBAerC,4BACd,SAAS,qCACR,MAAM,qBAAqB;wBAuCd,kCACd,SAAS,4BACR,iBACD,qBAAqB,2BACrB,0BACA;wBAqBc,0BACd,SAAS,0BACT,UAAU,2BACV,UAAS"}
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;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