/** * The `harness_benchmark` tool: one explicit action-dispatched tool for the * validation layer — fixed cases, reference snapshots, and same-round A/B runs. * Split out of `tool.ts` (2026-09-29) so each file owns one tool surface. * @module dsh-continual-harness */ import type { Context } from '@deepseek-ai/cordis'; import type { HarnessStore } from './store.ts'; /** The `harness_benchmark` tool's options, resolved from BenchmarkConfig (§5). */ export interface BenchmarkToolOptions { /** Iterations per case per side when the run omits `runs`. */ defaultRuns: number; /** Upper bound for `runs`; a larger explicit value is refused. */ maxRuns: number; /** Report-only pass line; never gates acceptance (§4.5). */ passThreshold: number; /** How far the candidate may fall below the reference before regressing. */ regressionTolerance: number; /** Maximum failed candidate cells a run may still accept. */ maxFailedCells: number; } /** * Register the single `harness_benchmark` action tool over the store. One tool * entry dispatches on `action`; `reset` is deliberately absent from the action * enum so it can never be model-called. Every action validates its own * arguments first and throws a structured `benchmark::` error * before touching the store, so a malformed call never mutates state. */ export declare function registerBenchmarkTool(ctx: Context, store: HarnessStore, options: BenchmarkToolOptions): void; //# sourceMappingURL=tool-benchmark.d.ts.map