@remnic/bench 9.6.17 → 9.6.19

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/dist/index.d.ts CHANGED
@@ -104,6 +104,25 @@ interface BenchResponse {
104
104
  interface BenchPhaseControl {
105
105
  signal?: AbortSignal;
106
106
  }
107
+ type BenchRecallSupportStatus = "supported" | "weak" | "empty" | "unavailable" | "backend_failure";
108
+ /**
109
+ * Answer-time support signal for the exact recall text supplied to the
110
+ * responder. `weak` is intentionally explicit: callers must not infer it from
111
+ * a zero-hit auxiliary search when `recalledText` contains evidence from other
112
+ * retrieval tiers.
113
+ */
114
+ interface BenchRecallSupportAssessment {
115
+ status: BenchRecallSupportStatus;
116
+ reason?: string;
117
+ evidenceCount?: number;
118
+ maxScore?: number;
119
+ supportThreshold?: number;
120
+ }
121
+ interface BenchRecallSupportRequest {
122
+ query: string;
123
+ recalledText: string;
124
+ sessionIds: readonly string[];
125
+ }
107
126
  interface BenchResponder {
108
127
  respond(question: string, recalledText: string, control?: BenchPhaseControl): Promise<BenchResponse>;
109
128
  }
@@ -116,6 +135,20 @@ interface BenchJudgeResult {
116
135
  latencyMs: number;
117
136
  model?: string;
118
137
  }
138
+ interface MemCorrectJudgeRequest {
139
+ taskId: string;
140
+ query: string;
141
+ retiredContent: string[];
142
+ correctedContent: string[];
143
+ postCorrectionRecall: string[];
144
+ postMaintenanceRecall: string[];
145
+ postReingestRecall: string[];
146
+ }
147
+ interface MemCorrectJudgeResult extends BenchJudgeResult {
148
+ decision: "pass" | "partial" | "fail";
149
+ reason: string;
150
+ rubricVersion: string;
151
+ }
119
152
  interface BenchJudge {
120
153
  score(question: string, predicted: string, expected: string, control?: BenchPhaseControl): Promise<number>;
121
154
  scoreWithMetrics?(question: string, predicted: string, expected: string, control?: BenchPhaseControl): Promise<BenchJudgeResult>;
@@ -126,10 +159,18 @@ interface BenchJudge {
126
159
  * judge prompt would change the metric contract.
127
160
  */
128
161
  scoreBinaryPrompt?(prompt: string, control?: BenchPhaseControl): Promise<BenchJudgeResult>;
162
+ judgeMemCorrectCorrectionAcceptance?(request: MemCorrectJudgeRequest, control?: BenchPhaseControl): Promise<MemCorrectJudgeResult>;
163
+ judgeMemCorrectStaleMemoryHarm?(request: MemCorrectJudgeRequest, control?: BenchPhaseControl): Promise<MemCorrectJudgeResult>;
129
164
  }
130
165
  interface BenchMemoryAdapter {
131
166
  store(sessionId: string, messages: Message[], control?: BenchPhaseControl): Promise<void>;
132
167
  recall(sessionId: string, query: string, budgetChars?: number, options?: BenchRecallOptions, control?: BenchPhaseControl): Promise<string>;
168
+ /**
169
+ * Optionally assess support using the exact, final recall context that will
170
+ * be sent to the responder. Implementations may return `weak` only from
171
+ * explicit evidence-confidence signals derived from that context.
172
+ */
173
+ assessRecallSupport?(request: BenchRecallSupportRequest, control?: BenchPhaseControl): Promise<BenchRecallSupportAssessment>;
133
174
  search(query: string, limit: number, sessionId?: string, control?: BenchPhaseControl): Promise<SearchResult[]>;
134
175
  /**
135
176
  * Optional explicit-correction surface (issue #1584 plan item 2a). Routes a
@@ -248,6 +289,8 @@ type BenchReasoningEffort = "low" | "medium" | "high" | "xhigh";
248
289
  interface ProviderConfig {
249
290
  provider: BuiltInProvider;
250
291
  model: string;
292
+ /** Versioned grading rubric used by judge providers, persisted for reproducibility. */
293
+ rubricVersion?: string;
251
294
  baseUrl?: string;
252
295
  apiKey?: string;
253
296
  retryOptions?: {
@@ -440,6 +483,8 @@ interface RunBenchmarkOptions {
440
483
  amaBenchJudgeProtocol?: AmaBenchJudgeProtocol;
441
484
  amaBenchCrossJudge?: BenchJudge;
442
485
  amaBenchCrossJudgeProvider?: ProviderConfig | null;
486
+ /** Live specialized judge used by MemCorrect; never persisted in result config. */
487
+ memCorrectJudge?: BenchJudge;
443
488
  /**
444
489
  * Force-disable the content-keyed judge-result cache (#1573 PR1). When
445
490
  * true, every judge call reaches the underlying model regardless of
@@ -898,6 +943,107 @@ interface RemnicAdapterOptions {
898
943
  declare const createLightweightAdapter: (options?: RemnicAdapterOptions) => Promise<BenchMemoryAdapter>;
899
944
  declare const createRemnicAdapter: (options?: RemnicAdapterOptions) => Promise<BenchMemoryAdapter>;
900
945
 
946
+ type McpBackendErrorCode = "backend_unusable" | "transport_failure" | "tool_failure" | "invalid_response";
947
+ type McpBackendResult<T> = {
948
+ ok: true;
949
+ value: T;
950
+ } | {
951
+ ok: false;
952
+ error: McpBackendErrorCode;
953
+ detail: string;
954
+ cause?: unknown;
955
+ };
956
+ declare class McpMemoryBackendError extends Error {
957
+ readonly code: McpBackendErrorCode;
958
+ readonly detail: string;
959
+ constructor(result: Extract<McpBackendResult<never>, {
960
+ ok: false;
961
+ }>);
962
+ }
963
+ interface McpStdioTransportConfig {
964
+ type: "stdio";
965
+ command: string;
966
+ args?: string[];
967
+ cwd?: string;
968
+ env?: Record<string, string>;
969
+ }
970
+ interface McpHttpTransportConfig {
971
+ type: "http";
972
+ url: string;
973
+ bearerToken?: string;
974
+ headers?: Record<string, string>;
975
+ }
976
+ type McpMemoryTransportConfig = McpStdioTransportConfig | McpHttpTransportConfig;
977
+ type McpToolOperation = "store" | "recall" | "correct" | "reset";
978
+ type McpArgumentSemantic = "namespace" | "sessionId" | "content" | "role" | "timestamp" | "query" | "limit";
979
+ interface McpToolMappingEntry {
980
+ name: string;
981
+ /** Map semantic input names to the server tool's argument names. */
982
+ arguments?: Partial<Record<McpArgumentSemantic, string>>;
983
+ /** Optional dot path into structured/JSON output, e.g. `data.memories`. */
984
+ resultPath?: string;
985
+ }
986
+ type McpToolMappingValue = string | McpToolMappingEntry;
987
+ type McpMemoryToolMapping = Partial<Record<McpToolOperation, McpToolMappingValue>>;
988
+ interface McpListedTool {
989
+ name: string;
990
+ inputSchema?: {
991
+ properties?: Record<string, unknown>;
992
+ };
993
+ }
994
+ interface McpToolCallResult {
995
+ content?: Array<{
996
+ type?: string;
997
+ text?: string;
998
+ }>;
999
+ structuredContent?: Record<string, unknown>;
1000
+ isError?: boolean;
1001
+ }
1002
+ interface McpToolClient {
1003
+ listTools(control?: BenchPhaseControl): Promise<McpListedTool[]>;
1004
+ callTool(name: string, args: Record<string, unknown>, control?: BenchPhaseControl): Promise<McpToolCallResult>;
1005
+ close(): Promise<void>;
1006
+ }
1007
+ interface McpMemoryAdapterOptions {
1008
+ transport: McpMemoryTransportConfig;
1009
+ tools?: McpMemoryToolMapping;
1010
+ /** Stable override for reproducible tests; production defaults are unique. */
1011
+ namespacePrefix?: string;
1012
+ label?: string;
1013
+ skipPreflight?: boolean;
1014
+ /** Bounds connection, discovery, and the conformance canary. */
1015
+ timeoutMs?: number;
1016
+ clientFactory?: (transport: McpMemoryTransportConfig, control?: BenchPhaseControl) => Promise<McpToolClient>;
1017
+ }
1018
+ type McpConformanceResult = {
1019
+ ok: true;
1020
+ value: {
1021
+ tools: Record<McpToolOperation, string>;
1022
+ namespace: string;
1023
+ };
1024
+ } | {
1025
+ ok: false;
1026
+ error: "backend_unusable";
1027
+ detail: string;
1028
+ cause?: unknown;
1029
+ };
1030
+ interface McpBenchMemoryAdapter extends BenchMemoryAdapter {
1031
+ readonly label: string;
1032
+ readonly namespacePrefix: string;
1033
+ preflight(control?: BenchPhaseControl): Promise<McpConformanceResult>;
1034
+ }
1035
+ declare function createMcpMemoryAdapter(options: McpMemoryAdapterOptions): Promise<McpBenchMemoryAdapter>;
1036
+ /** Create the packaged, deterministic, keyless stdio MCP demo adapter. */
1037
+ declare function createMcpDemoMemoryAdapter(options?: Omit<McpMemoryAdapterOptions, "transport">): Promise<McpBenchMemoryAdapter>;
1038
+ interface McpMemCorrectAdapter extends MemCorrectSystemAdapter {
1039
+ readonly namespacePrefix: string;
1040
+ preflight(): Promise<McpConformanceResult>;
1041
+ destroy(): Promise<void>;
1042
+ }
1043
+ declare function createMcpMemCorrectAdapter(options: McpMemoryAdapterOptions): Promise<McpMemCorrectAdapter>;
1044
+ /** MemCorrect facade over the packaged deterministic demo MCP server. */
1045
+ declare function createMcpDemoMemCorrectAdapter(options?: Omit<McpMemoryAdapterOptions, "transport">): Promise<McpMemCorrectAdapter>;
1046
+
901
1047
  interface TimeoutGuardOptions {
902
1048
  benchmarkId: string;
903
1049
  timeoutMs?: number;
@@ -980,6 +1126,8 @@ interface DiscoveredModel {
980
1126
  }
981
1127
  interface ProviderBaseConfig {
982
1128
  model: string;
1129
+ /** Versioned grading rubric used by judge providers, persisted for reproducibility. */
1130
+ rubricVersion?: string;
983
1131
  baseUrl?: string;
984
1132
  apiKey?: string;
985
1133
  headers?: Record<string, string>;
@@ -1223,6 +1371,9 @@ declare const BENCHMARK_RESULT_SCHEMA: {
1223
1371
  readonly model: {
1224
1372
  readonly type: "string";
1225
1373
  };
1374
+ readonly rubricVersion: {
1375
+ readonly type: "string";
1376
+ };
1226
1377
  readonly baseUrl: {
1227
1378
  readonly type: "string";
1228
1379
  };
@@ -1386,6 +1537,11 @@ interface BenchmarkReproManifestResult {
1386
1537
  seeds: number[];
1387
1538
  taskCount: number;
1388
1539
  configHash: string;
1540
+ judge: {
1541
+ provider: string;
1542
+ model: string;
1543
+ rubricVersion: string | null;
1544
+ } | null;
1389
1545
  }
1390
1546
  interface BenchmarkReproManifest {
1391
1547
  schemaVersion: number;
@@ -1551,6 +1707,20 @@ interface BenchmarkArtifactJudgeCalibration {
1551
1707
  threshold: number;
1552
1708
  /** True when `kappa < threshold` — local judge unreliable for this benchmark. */
1553
1709
  warning: boolean;
1710
+ /** Optional paired-bootstrap percentile interval (added by issue #1877). */
1711
+ confidenceInterval?: {
1712
+ lower: number;
1713
+ upper: number;
1714
+ level: number;
1715
+ };
1716
+ /** Number of paired bootstrap resamples used for the interval. */
1717
+ bootstrapSamples?: number;
1718
+ /** SHA-256 of the exact ordered answer set used for calibration. */
1719
+ answerSetHash?: string;
1720
+ /** Stored benchmark result that supplies the pinned answer payload. */
1721
+ sourceResultId?: string;
1722
+ /** Ordered, bounded task ids that make the pinned calibration slice auditable. */
1723
+ sliceQuestionIds?: readonly string[];
1554
1724
  }
1555
1725
  interface BenchmarkArtifactPerTaskScore {
1556
1726
  /** Runner-assigned task ID (stable across reruns). */
@@ -1776,6 +1946,7 @@ declare function answerBenchmarkQuestion(options: {
1776
1946
  answerFormat?: BenchmarkAnswerFormat;
1777
1947
  questionContext?: BenchmarkQuestionContext;
1778
1948
  retryUnknownWithEvidence?: boolean;
1949
+ recallSupport?: BenchRecallSupportAssessment;
1779
1950
  }): Promise<BenchmarkAnswerResult>;
1780
1951
 
1781
1952
  interface LeaderboardArtifactWrite {
@@ -2091,6 +2262,111 @@ declare function createOllamaProvider(config: OllamaProviderConfig): LlmProvider
2091
2262
 
2092
2263
  declare function createOpenAiCompatibleProvider(config: OpenAiCompatibleProviderConfig): LlmProvider;
2093
2264
 
2265
+ /**
2266
+ * OpenAI Responses API provider dedicated to benchmark judging.
2267
+ *
2268
+ * This intentionally sits beside openai-compatible.ts. The latter targets
2269
+ * Chat Completions-compatible third-party servers and must remain unchanged.
2270
+ */
2271
+
2272
+ declare const DEFAULT_OPENAI_RESPONSES_JUDGE_MODEL = "gpt-5.6";
2273
+ type OpenAiResponsesJudgeErrorCode = "api_error" | "rate_limited" | "refusal" | "malformed_response" | "malformed_verdict" | "incomplete_response" | "transport_error" | "aborted";
2274
+ interface OpenAiResponsesJudgeTelemetry {
2275
+ model: string;
2276
+ rubricVersion: string;
2277
+ inputTokens: number;
2278
+ outputTokens: number;
2279
+ latencyMs: number;
2280
+ errorCode?: OpenAiResponsesJudgeErrorCode;
2281
+ httpStatus?: number;
2282
+ }
2283
+ interface OpenAiResponsesVerdict {
2284
+ score: number;
2285
+ decision: "pass" | "partial" | "fail";
2286
+ reason: string;
2287
+ }
2288
+ type OpenAiResponsesVerdictResult = {
2289
+ ok: true;
2290
+ verdict: OpenAiResponsesVerdict;
2291
+ telemetry: OpenAiResponsesJudgeTelemetry;
2292
+ } | {
2293
+ ok: false;
2294
+ error: {
2295
+ code: OpenAiResponsesJudgeErrorCode;
2296
+ message: string;
2297
+ retryable: boolean;
2298
+ httpStatus?: number;
2299
+ };
2300
+ telemetry: OpenAiResponsesJudgeTelemetry;
2301
+ };
2302
+ interface OpenAiResponsesProviderConfig extends Omit<OpenAiCompatibleProviderConfig, "provider" | "model"> {
2303
+ provider?: "openai";
2304
+ model?: string;
2305
+ rubricVersion?: string;
2306
+ }
2307
+ interface VerdictRequest {
2308
+ rubric: string;
2309
+ rubricVersion: string;
2310
+ input: string;
2311
+ signal?: AbortSignal;
2312
+ maxTokens?: number;
2313
+ }
2314
+ declare class OpenAiResponsesJudgeError extends Error {
2315
+ readonly code: OpenAiResponsesJudgeErrorCode;
2316
+ readonly retryable: boolean;
2317
+ readonly httpStatus?: number;
2318
+ readonly telemetry: OpenAiResponsesJudgeTelemetry;
2319
+ constructor(failure: Extract<OpenAiResponsesVerdictResult, {
2320
+ ok: false;
2321
+ }>);
2322
+ }
2323
+ declare class OpenAiResponsesProvider implements LlmProvider {
2324
+ readonly provider: "openai";
2325
+ readonly id: string;
2326
+ readonly name: string;
2327
+ readonly rubricVersion: string;
2328
+ private readonly config;
2329
+ private usage;
2330
+ private readonly telemetryEvents;
2331
+ constructor(config?: OpenAiResponsesProviderConfig);
2332
+ complete(prompt: string, opts?: CompletionOpts): Promise<CompletionResult>;
2333
+ judge(request: VerdictRequest): Promise<OpenAiResponsesVerdictResult>;
2334
+ evaluateAssistantRubric(request: {
2335
+ system: string;
2336
+ user: string;
2337
+ rubricId: string;
2338
+ }): Promise<string>;
2339
+ getUsage(): TokenUsage;
2340
+ resetUsage(): void;
2341
+ getTelemetryEvents(): OpenAiResponsesJudgeTelemetry[];
2342
+ private parseResponse;
2343
+ private failure;
2344
+ private transportFailure;
2345
+ private asTransportError;
2346
+ private telemetry;
2347
+ private recordTelemetry;
2348
+ private recordUsage;
2349
+ private responsesUrl;
2350
+ private headers;
2351
+ }
2352
+ declare function createOpenAiResponsesProvider(config?: OpenAiResponsesProviderConfig): OpenAiResponsesProvider;
2353
+ declare function createOpenAiResponsesBenchJudge(config?: OpenAiResponsesProviderConfig, provider?: OpenAiResponsesProvider): BenchJudge;
2354
+ declare function judgeMemCorrectCorrectionAcceptance(provider: OpenAiResponsesProvider, input: string, signal?: AbortSignal): Promise<OpenAiResponsesVerdictResult>;
2355
+ declare function judgeMemCorrectStaleMemoryHarm(provider: OpenAiResponsesProvider, input: string, signal?: AbortSignal): Promise<OpenAiResponsesVerdictResult>;
2356
+
2357
+ /**
2358
+ * Versioned GPT-5.6 judge rubrics for Build Week issue #1870.
2359
+ *
2360
+ * Keep these prompts stable once an artifact cites their version. A wording
2361
+ * change is a measurement change and must receive a new version string.
2362
+ */
2363
+ declare const OPENAI_RESPONSES_JUDGE_RUBRIC_VERSION = "openai-responses-bench-v1";
2364
+ declare const MEMCORRECT_CORRECTION_ACCEPTANCE_RUBRIC_VERSION = "memcorrect-correction-acceptance-v1";
2365
+ declare const MEMCORRECT_STALE_HARM_RUBRIC_VERSION = "memcorrect-stale-memory-harm-v1";
2366
+ declare const GENERAL_ANSWER_JUDGE_RUBRIC: string;
2367
+ declare const MEMCORRECT_CORRECTION_ACCEPTANCE_RUBRIC: string;
2368
+ declare const MEMCORRECT_STALE_HARM_RUBRIC: string;
2369
+
2094
2370
  /**
2095
2371
  * Shared types for the Assistant bench tier.
2096
2372
  *
@@ -2647,6 +2923,70 @@ declare function interpretEffectSize(cohensDValue: number): EffectSizeInterpreta
2647
2923
  declare function compareResults(baseline: BenchmarkResult, candidate: BenchmarkResult, threshold?: number, lowerIsBetter?: ReadonlySet<string>): ComparisonResult;
2648
2924
  declare function getBenchmarkLowerIsBetter(benchmarkId: string): ReadonlySet<string>;
2649
2925
 
2926
+ interface LoComoProfileArtifactEvidence {
2927
+ artifact: BenchmarkArtifact;
2928
+ reference: string;
2929
+ sha256: string;
2930
+ }
2931
+ interface LoComoMetricDelta {
2932
+ baselineMean: number;
2933
+ realMean: number;
2934
+ delta: number;
2935
+ aggregateContribution: number;
2936
+ wins: number;
2937
+ losses: number;
2938
+ ties: number;
2939
+ }
2940
+ interface LoComoCategoryDelta {
2941
+ category: string;
2942
+ taskCount: number;
2943
+ metrics: Record<string, LoComoMetricDelta>;
2944
+ }
2945
+ interface LoComoTaskRegression {
2946
+ taskId: string;
2947
+ category: string;
2948
+ baselineScore: number;
2949
+ realScore: number;
2950
+ delta: number;
2951
+ }
2952
+ interface LoComoProfileDeltaReport {
2953
+ schemaVersion: 1;
2954
+ benchmarkId: "locomo";
2955
+ comparison: {
2956
+ baseline: {
2957
+ reference: string;
2958
+ sha256: string;
2959
+ };
2960
+ real: {
2961
+ reference: string;
2962
+ sha256: string;
2963
+ };
2964
+ datasetVersion: string;
2965
+ model: string;
2966
+ seed: number;
2967
+ gitSha: string;
2968
+ tier: string;
2969
+ };
2970
+ taskCount: number;
2971
+ primaryMetric: string;
2972
+ metrics: string[];
2973
+ overall: Record<string, LoComoMetricDelta>;
2974
+ categories: LoComoCategoryDelta[];
2975
+ topRegressions: LoComoTaskRegression[];
2976
+ evidenceBoundary: {
2977
+ scoreDiagnosis: "complete";
2978
+ recallRootCause: "requires-paired-recall-receipts";
2979
+ };
2980
+ }
2981
+ interface DiagnoseLoComoProfileDeltaOptions {
2982
+ baseline: LoComoProfileArtifactEvidence;
2983
+ real: LoComoProfileArtifactEvidence;
2984
+ primaryMetric?: string;
2985
+ maxRegressions?: number;
2986
+ }
2987
+ declare function diagnoseLoComoProfileDelta(options: DiagnoseLoComoProfileDeltaOptions): LoComoProfileDeltaReport;
2988
+ declare function renderLoComoProfileDeltaMarkdown(report: LoComoProfileDeltaReport): string;
2989
+
2650
2990
  /**
2651
2991
  * Dataset-contamination guard.
2652
2992
  *
@@ -2699,6 +3039,13 @@ declare function checkDatasetContamination(datasetHash: string, manifest?: Conta
2699
3039
  declare function addContaminationEntry(manifest: ContaminationManifest, entry: ContaminationEntry): ContaminationManifest;
2700
3040
  declare function mergeContaminationManifests(...manifests: ContaminationManifest[]): ContaminationManifest;
2701
3041
 
3042
+ interface ReportCardProvenanceContext {
3043
+ /** Human-readable reference to the manifest that covers this result. */
3044
+ manifestReference?: string;
3045
+ /** Reproducibility manifest artifact hash, when the manifest records one. */
3046
+ artifactHash?: string;
3047
+ }
3048
+
2702
3049
  interface StoredBenchmarkResultSummary {
2703
3050
  id: string;
2704
3051
  path: string;
@@ -2738,6 +3085,8 @@ interface PublishedBenchmarkFeedEntry {
2738
3085
  aggregateMetrics: BenchmarkResult["results"]["aggregates"];
2739
3086
  cost: BenchmarkResult["cost"];
2740
3087
  environment: BenchmarkResult["environment"];
3088
+ /** Self-contained HTML report card. Optional so older persisted feeds remain valid. */
3089
+ reportCardHtml?: string;
2741
3090
  integrity: {
2742
3091
  splitType: NonNullable<BenchmarkResult["meta"]["splitType"]>;
2743
3092
  qrelsSealedHash: string;
@@ -2767,6 +3116,11 @@ interface PublishedBenchmarkFeed {
2767
3116
  }
2768
3117
  declare function defaultBenchmarkBaselineDir(): string;
2769
3118
  declare function defaultBenchmarkPublishPath(target: BenchmarkPublishTarget): string;
3119
+ /**
3120
+ * Resolve explicit report-card provenance from an actual adjacent manifest.
3121
+ * A stale manifest that does not name the selected result is ignored.
3122
+ */
3123
+ declare function loadBenchmarkReportCardProvenance(outputDir: string, resultId: string): Promise<ReportCardProvenanceContext>;
2770
3124
  declare function loadBenchmarkResult(filePath: string): Promise<BenchmarkResult>;
2771
3125
  declare function listBenchmarkResults(outputDir: string): Promise<StoredBenchmarkResultSummary[]>;
2772
3126
  declare function saveBenchmarkBaseline(baselineDir: string, name: string, result: BenchmarkResult, source?: {
@@ -2798,7 +3152,9 @@ interface PublishSkipRecord {
2798
3152
  }
2799
3153
  declare function buildBenchmarkPublishFeed(outputDir: string, target: BenchmarkPublishTarget, options?: BuildBenchmarkPublishFeedOptions): Promise<PublishedBenchmarkFeed>;
2800
3154
  declare function writeBenchmarkPublishFeed(feed: PublishedBenchmarkFeed, outputPath: string): Promise<string>;
2801
- declare function renderBenchmarkResultExport(result: BenchmarkResult, format: BenchmarkExportFormat): string;
3155
+ declare function renderBenchmarkResultExport(result: BenchmarkResult, format: BenchmarkExportFormat, options?: {
3156
+ reportCardProvenance?: ReportCardProvenanceContext;
3157
+ }): string;
2802
3158
 
2803
3159
  interface HaystackTurn {
2804
3160
  role: "user" | "assistant";
@@ -3328,6 +3684,25 @@ interface CohenKappaResult {
3328
3684
  /** Distinct category labels seen across both raters (sorted). */
3329
3685
  categories: readonly JudgeCategory[];
3330
3686
  }
3687
+ interface KappaConfidenceInterval {
3688
+ lower: number;
3689
+ upper: number;
3690
+ level: number;
3691
+ }
3692
+ interface BootstrapKappaOptions {
3693
+ /** Number of paired bootstrap resamples. */
3694
+ iterations?: number;
3695
+ /** Confidence level in (0, 1). */
3696
+ level?: number;
3697
+ /** Optional deterministic seed. Derived from the labels when omitted. */
3698
+ seed?: number;
3699
+ }
3700
+ interface BootstrapKappaResult {
3701
+ confidenceInterval: KappaConfidenceInterval;
3702
+ bootstrapSamples: number;
3703
+ }
3704
+ declare const DEFAULT_KAPPA_BOOTSTRAP_SAMPLES = 2000;
3705
+ declare const DEFAULT_KAPPA_CONFIDENCE_LEVEL = 0.95;
3331
3706
  /**
3332
3707
  * Compute Cohen's kappa from two parallel arrays of category labels.
3333
3708
  *
@@ -3344,6 +3719,15 @@ interface CohenKappaResult {
3344
3719
  * function total and returns 0 defensively.
3345
3720
  */
3346
3721
  declare function computeCohensKappa(raterA: readonly JudgeCategory[], raterB: readonly JudgeCategory[]): CohenKappaResult;
3722
+ /**
3723
+ * Deterministic paired-bootstrap percentile interval for Cohen's kappa.
3724
+ *
3725
+ * Each resample draws paired verdict indexes, preserving the dependence
3726
+ * between the two raters. The default seed is derived from the complete label
3727
+ * vectors, so the same calibration answer set and verdicts produce byte-for-
3728
+ * byte identical confidence bounds across reruns.
3729
+ */
3730
+ declare function bootstrapCohensKappaConfidenceInterval(raterA: readonly JudgeCategory[], raterB: readonly JudgeCategory[], options?: BootstrapKappaOptions): BootstrapKappaResult;
3347
3731
  /** Default correct/incorrect decision threshold for a 0..1 judge score. */
3348
3732
  declare const DEFAULT_JUDGE_BINARIZATION_THRESHOLD = 0.5;
3349
3733
  /**
@@ -3398,12 +3782,20 @@ interface JudgeCalibrationIdentities {
3398
3782
  * the attach path treats absent identities as "unbound, attach anyway" to
3399
3783
  * preserve backwards compatibility.
3400
3784
  */
3401
- type LoadedJudgeCalibrationState = BenchmarkArtifactJudgeCalibration & Partial<JudgeCalibrationIdentities>;
3785
+ type LoadedJudgeCalibrationState = BenchmarkArtifactJudgeCalibration & Partial<JudgeCalibrationIdentities> & {
3786
+ /** Stored-result id that pins the answer payload across recalibrations. */
3787
+ sourceResultId?: string;
3788
+ /** Stable hash of the exact question/predicted/expected triples judged. */
3789
+ answerSetHash?: string;
3790
+ /** Question ids in the pinned calibration slice, in verdict order. */
3791
+ sliceQuestionIds?: readonly string[];
3792
+ };
3402
3793
  /**
3403
- * Fixed slice size per benchmark. The issue specifies a 50-question slice; a
3794
+ * Fixed slice size per benchmark. Issue #1877 raises the calibration target
3795
+ * from 50 to 200 to reduce slice sensitivity; a
3404
3796
  * benchmark with fewer available questions uses all of them.
3405
3797
  */
3406
- declare const CALIBRATION_SLICE_SIZE = 50;
3798
+ declare const CALIBRATION_SLICE_SIZE = 200;
3407
3799
  /**
3408
3800
  * Minimum number of completed tasks a stored result must have to be a valid
3409
3801
  * calibration source (codex P2 review). A `--limit 1` full run produces
@@ -3455,6 +3847,14 @@ interface RunJudgeCalibrationOptions {
3455
3847
  sliceSize?: number;
3456
3848
  /** Override the warning threshold (default 0.7). */
3457
3849
  threshold?: number;
3850
+ /** Override paired-bootstrap resamples (default 2,000; mainly for tests). */
3851
+ bootstrapSamples?: number;
3852
+ /** Override confidence level (default 0.95). */
3853
+ confidenceLevel?: number;
3854
+ /** Exact persisted question-id slice to reuse instead of reselecting. */
3855
+ pinnedQuestionIds?: readonly string[];
3856
+ /** Fail before judge calls when the pinned answer payload changed. */
3857
+ expectedAnswerSetHash?: string;
3458
3858
  }
3459
3859
  interface JudgeCalibrationResult extends CohenKappaResult {
3460
3860
  benchmarkId: string;
@@ -3464,6 +3864,12 @@ interface JudgeCalibrationResult extends CohenKappaResult {
3464
3864
  threshold: number;
3465
3865
  /** True when `kappa < threshold` — local judge is unreliable for this benchmark. */
3466
3866
  warning: boolean;
3867
+ /** Paired-bootstrap percentile interval for kappa. */
3868
+ confidenceInterval: KappaConfidenceInterval;
3869
+ /** Number of paired-bootstrap resamples. */
3870
+ bootstrapSamples: number;
3871
+ /** SHA-256 of the exact ordered answer triples used for calibration. */
3872
+ answerSetHash: string;
3467
3873
  /** Per-question verdict pairs, in slice order. */
3468
3874
  verdicts: readonly CalibrationVerdictPair[];
3469
3875
  }
@@ -3501,7 +3907,9 @@ declare function runJudgeCalibration(options: RunJudgeCalibrationOptions): Promi
3501
3907
  * judge pair that produced the kappa so a later run can refuse a stale kappa
3502
3908
  * for a different pair (codex P2 review); omitted on pre-binding state files.
3503
3909
  */
3504
- declare function writeJudgeCalibrationState(result: JudgeCalibrationResult, calibrationDir: string, identities?: JudgeCalibrationIdentities): Promise<string>;
3910
+ declare function writeJudgeCalibrationState(result: JudgeCalibrationResult, calibrationDir: string, identities?: JudgeCalibrationIdentities, provenance?: {
3911
+ sourceResultId: string;
3912
+ }): Promise<string>;
3505
3913
  /**
3506
3914
  * Load a previously persisted calibration result for a benchmark. Returns
3507
3915
  * `undefined` when no calibration has been run yet (the run path treats
@@ -4634,4 +5042,4 @@ declare function checkCodingGraphRegression(report: CodingGraphBenchReport, base
4634
5042
  */
4635
5043
  declare function buildBaselineFromReport(report: CodingGraphBenchReport, note: string): CodingGraphBaseline;
4636
5044
 
4637
- export { AMA_BENCH_DIAGNOSTIC_VARIANTS, ASSISTANT_AGENT_CONFIG_KEY, ASSISTANT_JUDGE_CONFIG_KEY, ASSISTANT_MEETING_PREP_SCENARIOS, ASSISTANT_MEETING_PREP_SMOKE_SCENARIOS, ASSISTANT_MORNING_BRIEF_SCENARIOS, ASSISTANT_MORNING_BRIEF_SMOKE_SCENARIOS, ASSISTANT_NEXT_BEST_ACTION_SCENARIOS, ASSISTANT_NEXT_BEST_ACTION_SMOKE_SCENARIOS, ASSISTANT_RUBRIC_DIMENSIONS, ASSISTANT_RUBRIC_ID_KEY, ASSISTANT_SEEDS_CONFIG_KEY, ASSISTANT_SPOT_CHECK_DIR_KEY, ASSISTANT_SYNTHESIS_SCENARIOS, ASSISTANT_SYNTHESIS_SMOKE_SCENARIOS, type AblationConfigOverrides, type AbstentionRetrievalCase, type AggregateMetrics, type AmaBenchDiagnosticAdapterOptions, type AmaBenchDiagnosticAnswererMode, type AmaBenchDiagnosticBreakdown, type AmaBenchDiagnosticMatrixArtifact, type AmaBenchDiagnosticRecallMode, type AmaBenchDiagnosticRunContext, type AmaBenchDiagnosticTaskEvidence, type AmaBenchDiagnosticTaskRow, type AmaBenchDiagnosticVariant, type AmaBenchDiagnosticVariantSummary, type AnthropicProviderConfig, type AssistantAgent, type AssistantMemoryFact, type AssistantMemoryGraph, type AssistantRubricDimension, type AssistantRubricScores, type AssistantRunnerOptions, type AssistantScenario, type AssistantStance, type AttackRecallOptions, type AttackRetrievalHit, type AttackerMode, BENCHMARK_ARTIFACT_SCHEMA_VERSION, BENCHMARK_INTEGRITY_META_SCHEMA, BENCHMARK_REPRO_MANIFEST_FILENAME, BENCHMARK_REPRO_MANIFEST_SCHEMA_VERSION, BENCHMARK_RESULT_SCHEMA, BENCHMARK_SPLIT_TYPES, type BaselineRow, type BaselineScenario, type BeamDatasetPreview, type BenchConfig, type BenchJudge, type BenchJudgeResult, type BenchMemoryAdapter, type BenchModelSource, type BenchReasoningEffort, type BenchRecallOptions, type BenchResponder, type BenchResponse, type BenchRuntimeProfile, type BenchTier, type BenchmarkArtifact, type BenchmarkArtifactEnvironment, type BenchmarkArtifactHardware, type BenchmarkArtifactJudgeCalibration, type BenchmarkArtifactPerTaskScore, type BenchmarkArtifactSystem, type BenchmarkArtifactTier, type BenchmarkCategory, type BenchmarkDefinition, type BenchmarkIntegrityMeta, type BenchmarkMeta, type BenchmarkMode, type BenchmarkReport, type BenchmarkReproManifest, type BenchmarkReproManifestDataset, type BenchmarkReproManifestFile, type BenchmarkReproManifestResult, type BenchmarkResult, type BenchmarkSplitType, type BenchmarkStatus, type BenchmarkSuiteResult, type BenchmarkTier, type BuildBenchmarkArtifactInput, type BuildBenchmarkPublishFeedOptions, type BuildBenchmarkReproManifestOptions, type BuiltInProvider, CALIBRATION_SLICE_SIZE, CANARY_FIXED_RECALL, CANARY_SCORE_FLOOR, DEFAULT_10K_FIXTURE as CODING_GRAPH_10K_FIXTURE, CODING_GRAPH_BENCH_SCHEMA_VERSION, DEFAULT_TOLERANCE_PERCENT as CODING_GRAPH_DEFAULT_TOLERANCE, MIN_ITERATIONS as CODING_GRAPH_MIN_ITERATIONS, DEFAULT_SMOKE_FIXTURE as CODING_GRAPH_SMOKE_FIXTURE, type CalibrationAnswer, type CalibrationVerdictPair, type CanaryAdapterOptions, type CanaryFloorCheck, type ClaudeCliProviderConfig, type CodexCliProviderConfig, type CodingGraphBaseline, type CodingGraphBenchConfig, type CodingGraphBenchReport, type MachineFingerprint as CodingGraphMachineFingerprint, type CodingGraphMetricKey, type RegressionMetricDetail as CodingGraphRegressionDetail, type RegressionMetricKey as CodingGraphRegressionKey, type RegressionGateResult as CodingGraphRegressionResult, type CohenKappaResult, type ComparisonMetricDelta, type ComparisonResult, type CompletionOpts, type CompletionResult, type ConfidenceInterval, type ContaminationCheckResult, type ContaminationEntry, type ContaminationManifest, type CustomBenchmarkScoring, type CustomBenchmarkSpec, type CustomBenchmarkTask, DEFAULT_ABLATION_BENCHMARK, DEFAULT_ABLATION_BOOTSTRAP_SEED, DEFAULT_ASSISTANT_RUBRIC_ID, DEFAULT_BASELINE_SCENARIOS, DEFAULT_JUDGE_BINARIZATION_THRESHOLD, type DatasetSource, type DiscoveredModel, EMPTY_CONTAMINATION_MANIFEST, type EffectSizeInterpretation, type EffectSizeSummary, type ExplainResult, type ExtractedEntity, type ExtractedLink, type ExtractedPage, type ExtractionAttackOptions, type ExtractionAttackResult, type ExtractionAttackTarget, type FixtureGenerator, type FixtureOutput, type FixtureVariant, type GeneratedFile, type GeneratedRepo, type GoldEntity, type GoldEntityType, type GoldGraph, type GoldLink, type GoldPage, type HarnessRng, INTEGRITY_CIPHER_ALGORITHM, INTEGRITY_HASH_ALGORITHM, INTEGRITY_META_FIELDS, type IngestionBenchAdapter, type IngestionLog, JUDGE_CALIBRATION_KAPPA_THRESHOLD, type JudgeCalibrationIdentities, type JudgeCalibrationResult, type JudgeCategory, LOCAL_LAB_PROVIDER_KINDS, LOCOMO_DATASET_FILENAMES, LONG_MEM_EVAL_DATASET_FILENAMES, type LeaderboardArtifactWrite, type LettaAdapterConfig, LettaMemCorrectAdapter, type LlmJudge, type LlmProvider, type LoadDatasetOptions, type LoadSealedQrelsOptions, type LoadedDataset, type LoadedJudgeCalibrationState, type LocalLabManifest, type LocalLabManifestNotes, type LocalLabPhase, type LocalLabPhaseDescriptor, type LocalLabPhaseExecute, type LocalLabPhaseName, type LocalLabPhaseOutcome, LocalLabPreflightError, type LocalLabPreflightFailure, type LocalLabPreflightInput, type LocalLabPreflightOptions, type LocalLabPreflightResult, type LocalLabPreflightSuccess, type LocalLabProviderKind, type LocalLabRoleConfig, type LocalLlmProviderConfig, MEMORY_EVAL_DIMENSIONS, MEMORY_EVAL_PUBLIC_LINE, MIN_CALIBRATION_SOURCE_TASKS, MITIGATED_BASELINE_SCENARIOS, type Mem0AdapterConfig, Mem0MemCorrectAdapter, type MemCorrectGeneratorOptions, type MemCorrectSystemAdapter, type MemoryEvalCategory, type MemoryEvalDimension, type MemoryEvalDimensionId, type MemoryEvalMetric, type MemoryGraph, type MemoryStats, type MemorySystem, type Message, type MetricAggregate, type MicroMetric, MissingCredentialError, type MitigatedBaselineConfig, type MitigatedTargetConfig, type MultipleChoiceQuestion, OTHER_NAMESPACE_MEMORIES, type OllamaProviderConfig, type OpenAiCompatibleProviderConfig, PROCEDURAL_REAL_SCENARIOS, PROCEDURAL_REAL_SCENARIOS_SMOKE, PUBLISHED_BENCHMARK_ARTIFACT_IDS, type PersonalizationRetrievalCase, type PreflightDiscoveredModel, type ProceduralAblationArtifact, type ProceduralAblationPerCase, type ProceduralAblationScenario, type ProceduralRealScenario, type ProceduralRealScenarioCategory, type ProviderBaseConfig, type ProviderConfig, type ProviderDiscoveryResult, type ProviderFactoryConfig, type PublishSkipReason, type PublishSkipRecord, type PublishedBenchmarkFeed, type PublishedBenchmarkFeedEntry, type PublishedBenchmarkId, REQUIRED_FRONTMATTER_FIELDS, type RecallMetrics, type RecoveredMemory, type RegressionDetail, type RegressionGateResult$1 as RegressionGateResult, type RemnicAdapterOptions, type ResolveBenchRuntimeProfileOptions, type ResolvedBenchRuntimeProfile, type ResolvedLocalLabProfile, type ResolvedLocalLabRole, type ResolvedRunBenchmarkOptions, type RotatedChoices, type RunBenchmarkOptions, type RunJudgeCalibrationOptions, type RunProceduralAblationCliArgs, type RunProceduralAblationOptions, type RunSequentialPhasesOptions, SCHEMA_TIER_FIXTURE, SCHEMA_TIER_SMOKE_FIXTURE, SEALED_PROMPT_REGISTRY, SINGLE_FLAG_ABLATION_MATRIX, SYNTHETIC_MEMORIES, type SanitizedDiagnosticProvider, type SavedBaseline, type SchemaTierCorpus, type SchemaTierFixture, type SchemaTierName, type SchemaTierPage, type SchemaTierPageFrontmatter, type SealedArtifact, type SealedJudgeDecision, type SealedJudgeInput, type SealedQrelsArtifact, type SealedQrelsHandle, type SealedRubric, type SearchResult, type SeededMemory, type SeededRng, type SequentialPhaseHooks, type SingleFlagAblationCell, type SingleFlagAblationId, type SpotCheckLogger, type StatisticalReport, type StructuredJudge, type SyntheticEdge, type SyntheticEmailIngestionAdapterOptions, type SyntheticFileIR, type SyntheticRepoConfig, type SyntheticSymbol, type SyntheticTargetOptions, type TaskResult, type TaskTokenUsage, type TemporalRetrievalCase, type ThirdPartyAdapterConfig, type TierDetail, type TimelineEntry, type TokenUsage, type WallMetric, type WriteBenchmarkArtifactResult, type ZepAdapterConfig, ZepMemCorrectAdapter, addContaminationEntry, aggregateTaskScores, answerBenchmarkQuestion, assertCanaryUnderFloor, assertIntegrityMetaPresent, assertPublishableIntegrity, assertSha256Hex, assistantMeetingPrepDefinition, assistantMorningBriefDefinition, assistantNextBestActionDefinition, assistantSynthesisDefinition, backlinkF1, binarizeJudgeScore, bootstrapMeanConfidenceInterval, buildAmaBenchDiagnosticMatrixArtifact, buildAmaBenchDiagnosticVariantSummary, buildAmaBenchLeaderboardRows, buildBaselineFromReport, buildBenchmarkArtifact, buildBenchmarkArtifactFilename, buildBenchmarkPublishFeed, buildBenchmarkReproManifest, buildBenchmarkRunSeeds, buildJudgePayload, buildOracleTrajectoryRecall, buildSchemaTierFixture, buildSchemaTierSmokeFixture, calendarFixture, canonicalJsonStringify, captureMachineFingerprint, chatFixture, checkCodingGraphRegression, checkDatasetContamination, checkRegression, clampScore, cohensD, compareResults, computeCohensKappa, computeSealHash, containsAnswer, createSeededRng$1 as createAdamSeededRng, createAmaBenchDiagnosticAdapter, createAnthropicProvider, createCanaryAdapter, createClaudeCliProvider, createCodexCliProvider, createSeededRng as createCodingGraphSeededRng, createDeterministicSpotCheckLogger, createGatewayResponder, createLightweightAdapter, createLiteLlmProvider, createLocalLlmProvider, createMitigatedTarget, createOllamaProvider, createOpenAiCompatibleProvider, createSeededRandom as createProceduralAblationSeededRandom, createProvider, createProviderBackedAmaBenchRecommendedJudge, createProviderBackedJudge, createProviderBackedResponder, createProviderBackedStructuredJudge, createRemnicAdapter, createResponderFromProvider, createSeededRng$2 as createSeededRng, createSpotCheckFileLogger, createStructuredJudgeFromProvider, createSyntheticEmailIngestionAdapter, createSyntheticTarget, createTimeoutGuardedAdapter, defaultBenchmarkBaselineDir, defaultBenchmarkPublishPath, deleteBenchmarkResults, discoverAllProviders, discoveryEndpointFor, emailFixture, entityRecall, exactMatch, extractMetrics as extractCodingGraphMetrics, extractMarkdownSectionsByTitle, f1Score, fixtureToAblationScenarios, formatHandoffNote, formatMissingDatasetError, generateReport, generateSyntheticRepo, getAblationCell, getBenchmark, getBenchmarkLowerIsBetter, getMemoryEvalDimension, getRemnicVersion, hashBenchmarkArtifact, hashBytes, hashCanonicalJson, hashString, integrityMetaIsComplete, interpretEffectSize, isAmaBenchUnknownLikeAnswer, isContaminationEntry, isContaminationManifest, isSealedQrelsArtifact, isSha256Hex, linkMatches, listBenchmarkBaselines, listBenchmarkResults, listBenchmarks, listMemoryEvalBenchmarkIds, listMemoryEvalDimensions, llmJudgeScore, llmJudgeScoreDetailed, loadAblationFixture, loadBaseline, loadBeamDatasetPreview, loadBenchmarkArtifact, loadBenchmarkBaseline, loadBenchmarkResult, loadCustomBenchmarkFile, loadJudgeCalibrationState, loadLoCoMo10, loadLocalLabManifest, loadLongMemEvalS, loadSealKeyFromEnv, loadSealedQrels, loadSealedRubric, matchEntity, mergeContaminationManifests, openSeal, orchestrateBenchmarkRuns, pairedDeltaConfidenceInterval, parseBenchmarkArtifact, parseCustomBenchmark, parseLocalLabManifest, parseRubricResponse, parseSealedQrels, pickStableQualifiedName, precisionAtK, preflightLocalLabRole, projectFolderFixture, recallAtK, redactBenchmarkResultSecrets, renderBaselineMarkdown, renderBenchmarkResultExport, renderMemorySummaryForJudge, renderMemoryViewForAgent, resolveAssistantAgent, resolveAssistantRubricId, resolveAssistantSeeds, resolveAssistantSpotCheckDir, resolveBenchRuntimeProfile, resolveBenchmarkPhaseTimeoutMs, resolveBenchmarkProgressLogging, resolveBenchmarkResultReference, resolveBenchmarkRunCount, resolveLocalLabProfile, resolveLocalLabRole, resolveStructuredJudge, rotateDistractors, rougeL, runAssistantBenchmark, runAssistantMeetingPrepBenchmark, runAssistantMorningBriefBenchmark, runAssistantNextBestActionBenchmark, runAssistantSynthesisBenchmark, runBaseline, runBenchSuite, runBenchmark, runCodingGraphBenchmark, runCustomBenchmarkFile, runExplain, runExtractionAttack, runJudgeCalibration, runMitigatedBaseline, runProceduralAblation, runProceduralAblationCli, runSealedJudge, runSequentialPhases, safeHexEqual, saveBaseline, saveBenchmarkBaseline, schemaCompleteness, sealPayload, selectAmaBenchDiagnosticVariants, selectCalibrationSlice, selectFixtureVariant, serializeBenchmarkArtifact, serializeJsonl, serializeSealedQrels, shuffleTasks, timed, verifyRubricDigest, writeBenchmarkArtifact, writeBenchmarkPublishFeed, writeBenchmarkReproManifest, writeBenchmarkResult, writeJudgeCalibrationState, writeLeaderboardArtifactsForResult, zeroScores };
5045
+ export { AMA_BENCH_DIAGNOSTIC_VARIANTS, ASSISTANT_AGENT_CONFIG_KEY, ASSISTANT_JUDGE_CONFIG_KEY, ASSISTANT_MEETING_PREP_SCENARIOS, ASSISTANT_MEETING_PREP_SMOKE_SCENARIOS, ASSISTANT_MORNING_BRIEF_SCENARIOS, ASSISTANT_MORNING_BRIEF_SMOKE_SCENARIOS, ASSISTANT_NEXT_BEST_ACTION_SCENARIOS, ASSISTANT_NEXT_BEST_ACTION_SMOKE_SCENARIOS, ASSISTANT_RUBRIC_DIMENSIONS, ASSISTANT_RUBRIC_ID_KEY, ASSISTANT_SEEDS_CONFIG_KEY, ASSISTANT_SPOT_CHECK_DIR_KEY, ASSISTANT_SYNTHESIS_SCENARIOS, ASSISTANT_SYNTHESIS_SMOKE_SCENARIOS, type AblationConfigOverrides, type AbstentionRetrievalCase, type AggregateMetrics, type AmaBenchDiagnosticAdapterOptions, type AmaBenchDiagnosticAnswererMode, type AmaBenchDiagnosticBreakdown, type AmaBenchDiagnosticMatrixArtifact, type AmaBenchDiagnosticRecallMode, type AmaBenchDiagnosticRunContext, type AmaBenchDiagnosticTaskEvidence, type AmaBenchDiagnosticTaskRow, type AmaBenchDiagnosticVariant, type AmaBenchDiagnosticVariantSummary, type AnthropicProviderConfig, type AssistantAgent, type AssistantMemoryFact, type AssistantMemoryGraph, type AssistantRubricDimension, type AssistantRubricScores, type AssistantRunnerOptions, type AssistantScenario, type AssistantStance, type AttackRecallOptions, type AttackRetrievalHit, type AttackerMode, BENCHMARK_ARTIFACT_SCHEMA_VERSION, BENCHMARK_INTEGRITY_META_SCHEMA, BENCHMARK_REPRO_MANIFEST_FILENAME, BENCHMARK_REPRO_MANIFEST_SCHEMA_VERSION, BENCHMARK_RESULT_SCHEMA, BENCHMARK_SPLIT_TYPES, type BaselineRow, type BaselineScenario, type BeamDatasetPreview, type BenchConfig, type BenchJudge, type BenchJudgeResult, type BenchMemoryAdapter, type BenchModelSource, type BenchReasoningEffort, type BenchRecallOptions, type BenchRecallSupportAssessment, type BenchRecallSupportRequest, type BenchRecallSupportStatus, type BenchResponder, type BenchResponse, type BenchRuntimeProfile, type BenchTier, type BenchmarkArtifact, type BenchmarkArtifactEnvironment, type BenchmarkArtifactHardware, type BenchmarkArtifactJudgeCalibration, type BenchmarkArtifactPerTaskScore, type BenchmarkArtifactSystem, type BenchmarkArtifactTier, type BenchmarkCategory, type BenchmarkDefinition, type BenchmarkIntegrityMeta, type BenchmarkMeta, type BenchmarkMode, type BenchmarkReport, type BenchmarkReproManifest, type BenchmarkReproManifestDataset, type BenchmarkReproManifestFile, type BenchmarkReproManifestResult, type BenchmarkResult, type BenchmarkSplitType, type BenchmarkStatus, type BenchmarkSuiteResult, type BenchmarkTier, type BootstrapKappaOptions, type BootstrapKappaResult, type BuildBenchmarkArtifactInput, type BuildBenchmarkPublishFeedOptions, type BuildBenchmarkReproManifestOptions, type BuiltInProvider, CALIBRATION_SLICE_SIZE, CANARY_FIXED_RECALL, CANARY_SCORE_FLOOR, DEFAULT_10K_FIXTURE as CODING_GRAPH_10K_FIXTURE, CODING_GRAPH_BENCH_SCHEMA_VERSION, DEFAULT_TOLERANCE_PERCENT as CODING_GRAPH_DEFAULT_TOLERANCE, MIN_ITERATIONS as CODING_GRAPH_MIN_ITERATIONS, DEFAULT_SMOKE_FIXTURE as CODING_GRAPH_SMOKE_FIXTURE, type CalibrationAnswer, type CalibrationVerdictPair, type CanaryAdapterOptions, type CanaryFloorCheck, type ClaudeCliProviderConfig, type CodexCliProviderConfig, type CodingGraphBaseline, type CodingGraphBenchConfig, type CodingGraphBenchReport, type MachineFingerprint as CodingGraphMachineFingerprint, type CodingGraphMetricKey, type RegressionMetricDetail as CodingGraphRegressionDetail, type RegressionMetricKey as CodingGraphRegressionKey, type RegressionGateResult as CodingGraphRegressionResult, type CohenKappaResult, type ComparisonMetricDelta, type ComparisonResult, type CompletionOpts, type CompletionResult, type ConfidenceInterval, type ContaminationCheckResult, type ContaminationEntry, type ContaminationManifest, type CustomBenchmarkScoring, type CustomBenchmarkSpec, type CustomBenchmarkTask, DEFAULT_ABLATION_BENCHMARK, DEFAULT_ABLATION_BOOTSTRAP_SEED, DEFAULT_ASSISTANT_RUBRIC_ID, DEFAULT_BASELINE_SCENARIOS, DEFAULT_JUDGE_BINARIZATION_THRESHOLD, DEFAULT_KAPPA_BOOTSTRAP_SAMPLES, DEFAULT_KAPPA_CONFIDENCE_LEVEL, DEFAULT_OPENAI_RESPONSES_JUDGE_MODEL, type DatasetSource, type DiagnoseLoComoProfileDeltaOptions, type DiscoveredModel, EMPTY_CONTAMINATION_MANIFEST, type EffectSizeInterpretation, type EffectSizeSummary, type ExplainResult, type ExtractedEntity, type ExtractedLink, type ExtractedPage, type ExtractionAttackOptions, type ExtractionAttackResult, type ExtractionAttackTarget, type FixtureGenerator, type FixtureOutput, type FixtureVariant, GENERAL_ANSWER_JUDGE_RUBRIC, type GeneratedFile, type GeneratedRepo, type GoldEntity, type GoldEntityType, type GoldGraph, type GoldLink, type GoldPage, type HarnessRng, INTEGRITY_CIPHER_ALGORITHM, INTEGRITY_HASH_ALGORITHM, INTEGRITY_META_FIELDS, type IngestionBenchAdapter, type IngestionLog, JUDGE_CALIBRATION_KAPPA_THRESHOLD, type JudgeCalibrationIdentities, type JudgeCalibrationResult, type JudgeCategory, type KappaConfidenceInterval, LOCAL_LAB_PROVIDER_KINDS, LOCOMO_DATASET_FILENAMES, LONG_MEM_EVAL_DATASET_FILENAMES, type LeaderboardArtifactWrite, type LettaAdapterConfig, LettaMemCorrectAdapter, type LlmJudge, type LlmProvider, type LoComoCategoryDelta, type LoComoMetricDelta, type LoComoProfileArtifactEvidence, type LoComoProfileDeltaReport, type LoComoTaskRegression, type LoadDatasetOptions, type LoadSealedQrelsOptions, type LoadedDataset, type LoadedJudgeCalibrationState, type LocalLabManifest, type LocalLabManifestNotes, type LocalLabPhase, type LocalLabPhaseDescriptor, type LocalLabPhaseExecute, type LocalLabPhaseName, type LocalLabPhaseOutcome, LocalLabPreflightError, type LocalLabPreflightFailure, type LocalLabPreflightInput, type LocalLabPreflightOptions, type LocalLabPreflightResult, type LocalLabPreflightSuccess, type LocalLabProviderKind, type LocalLabRoleConfig, type LocalLlmProviderConfig, MEMCORRECT_CORRECTION_ACCEPTANCE_RUBRIC, MEMCORRECT_CORRECTION_ACCEPTANCE_RUBRIC_VERSION, MEMCORRECT_STALE_HARM_RUBRIC, MEMCORRECT_STALE_HARM_RUBRIC_VERSION, MEMORY_EVAL_DIMENSIONS, MEMORY_EVAL_PUBLIC_LINE, MIN_CALIBRATION_SOURCE_TASKS, MITIGATED_BASELINE_SCENARIOS, type McpArgumentSemantic, type McpBackendErrorCode, type McpBackendResult, type McpBenchMemoryAdapter, type McpConformanceResult, type McpHttpTransportConfig, type McpListedTool, type McpMemCorrectAdapter, type McpMemoryAdapterOptions, McpMemoryBackendError, type McpMemoryToolMapping, type McpMemoryTransportConfig, type McpStdioTransportConfig, type McpToolCallResult, type McpToolClient, type McpToolMappingEntry, type McpToolMappingValue, type McpToolOperation, type Mem0AdapterConfig, Mem0MemCorrectAdapter, type MemCorrectGeneratorOptions, type MemCorrectJudgeRequest, type MemCorrectJudgeResult, type MemCorrectSystemAdapter, type MemoryEvalCategory, type MemoryEvalDimension, type MemoryEvalDimensionId, type MemoryEvalMetric, type MemoryGraph, type MemoryStats, type MemorySystem, type Message, type MetricAggregate, type MicroMetric, MissingCredentialError, type MitigatedBaselineConfig, type MitigatedTargetConfig, type MultipleChoiceQuestion, OPENAI_RESPONSES_JUDGE_RUBRIC_VERSION, OTHER_NAMESPACE_MEMORIES, type OllamaProviderConfig, type OpenAiCompatibleProviderConfig, OpenAiResponsesJudgeError, type OpenAiResponsesJudgeErrorCode, type OpenAiResponsesJudgeTelemetry, OpenAiResponsesProvider, type OpenAiResponsesProviderConfig, type OpenAiResponsesVerdict, type OpenAiResponsesVerdictResult, PROCEDURAL_REAL_SCENARIOS, PROCEDURAL_REAL_SCENARIOS_SMOKE, PUBLISHED_BENCHMARK_ARTIFACT_IDS, type PersonalizationRetrievalCase, type PreflightDiscoveredModel, type ProceduralAblationArtifact, type ProceduralAblationPerCase, type ProceduralAblationScenario, type ProceduralRealScenario, type ProceduralRealScenarioCategory, type ProviderBaseConfig, type ProviderConfig, type ProviderDiscoveryResult, type ProviderFactoryConfig, type PublishSkipReason, type PublishSkipRecord, type PublishedBenchmarkFeed, type PublishedBenchmarkFeedEntry, type PublishedBenchmarkId, REQUIRED_FRONTMATTER_FIELDS, type RecallMetrics, type RecoveredMemory, type RegressionDetail, type RegressionGateResult$1 as RegressionGateResult, type RemnicAdapterOptions, type ReportCardProvenanceContext, type ResolveBenchRuntimeProfileOptions, type ResolvedBenchRuntimeProfile, type ResolvedLocalLabProfile, type ResolvedLocalLabRole, type ResolvedRunBenchmarkOptions, type RotatedChoices, type RunBenchmarkOptions, type RunJudgeCalibrationOptions, type RunProceduralAblationCliArgs, type RunProceduralAblationOptions, type RunSequentialPhasesOptions, SCHEMA_TIER_FIXTURE, SCHEMA_TIER_SMOKE_FIXTURE, SEALED_PROMPT_REGISTRY, SINGLE_FLAG_ABLATION_MATRIX, SYNTHETIC_MEMORIES, type SanitizedDiagnosticProvider, type SavedBaseline, type SchemaTierCorpus, type SchemaTierFixture, type SchemaTierName, type SchemaTierPage, type SchemaTierPageFrontmatter, type SealedArtifact, type SealedJudgeDecision, type SealedJudgeInput, type SealedQrelsArtifact, type SealedQrelsHandle, type SealedRubric, type SearchResult, type SeededMemory, type SeededRng, type SequentialPhaseHooks, type SingleFlagAblationCell, type SingleFlagAblationId, type SpotCheckLogger, type StatisticalReport, type StructuredJudge, type SyntheticEdge, type SyntheticEmailIngestionAdapterOptions, type SyntheticFileIR, type SyntheticRepoConfig, type SyntheticSymbol, type SyntheticTargetOptions, type TaskResult, type TaskTokenUsage, type TemporalRetrievalCase, type ThirdPartyAdapterConfig, type TierDetail, type TimelineEntry, type TokenUsage, type WallMetric, type WriteBenchmarkArtifactResult, type ZepAdapterConfig, ZepMemCorrectAdapter, addContaminationEntry, aggregateTaskScores, answerBenchmarkQuestion, assertCanaryUnderFloor, assertIntegrityMetaPresent, assertPublishableIntegrity, assertSha256Hex, assistantMeetingPrepDefinition, assistantMorningBriefDefinition, assistantNextBestActionDefinition, assistantSynthesisDefinition, backlinkF1, binarizeJudgeScore, bootstrapCohensKappaConfidenceInterval, bootstrapMeanConfidenceInterval, buildAmaBenchDiagnosticMatrixArtifact, buildAmaBenchDiagnosticVariantSummary, buildAmaBenchLeaderboardRows, buildBaselineFromReport, buildBenchmarkArtifact, buildBenchmarkArtifactFilename, buildBenchmarkPublishFeed, buildBenchmarkReproManifest, buildBenchmarkRunSeeds, buildJudgePayload, buildOracleTrajectoryRecall, buildSchemaTierFixture, buildSchemaTierSmokeFixture, calendarFixture, canonicalJsonStringify, captureMachineFingerprint, chatFixture, checkCodingGraphRegression, checkDatasetContamination, checkRegression, clampScore, cohensD, compareResults, computeCohensKappa, computeSealHash, containsAnswer, createSeededRng$1 as createAdamSeededRng, createAmaBenchDiagnosticAdapter, createAnthropicProvider, createCanaryAdapter, createClaudeCliProvider, createCodexCliProvider, createSeededRng as createCodingGraphSeededRng, createDeterministicSpotCheckLogger, createGatewayResponder, createLightweightAdapter, createLiteLlmProvider, createLocalLlmProvider, createMcpDemoMemCorrectAdapter, createMcpDemoMemoryAdapter, createMcpMemCorrectAdapter, createMcpMemoryAdapter, createMitigatedTarget, createOllamaProvider, createOpenAiCompatibleProvider, createOpenAiResponsesBenchJudge, createOpenAiResponsesProvider, createSeededRandom as createProceduralAblationSeededRandom, createProvider, createProviderBackedAmaBenchRecommendedJudge, createProviderBackedJudge, createProviderBackedResponder, createProviderBackedStructuredJudge, createRemnicAdapter, createResponderFromProvider, createSeededRng$2 as createSeededRng, createSpotCheckFileLogger, createStructuredJudgeFromProvider, createSyntheticEmailIngestionAdapter, createSyntheticTarget, createTimeoutGuardedAdapter, defaultBenchmarkBaselineDir, defaultBenchmarkPublishPath, deleteBenchmarkResults, diagnoseLoComoProfileDelta, discoverAllProviders, discoveryEndpointFor, emailFixture, entityRecall, exactMatch, extractMetrics as extractCodingGraphMetrics, extractMarkdownSectionsByTitle, f1Score, fixtureToAblationScenarios, formatHandoffNote, formatMissingDatasetError, generateReport, generateSyntheticRepo, getAblationCell, getBenchmark, getBenchmarkLowerIsBetter, getMemoryEvalDimension, getRemnicVersion, hashBenchmarkArtifact, hashBytes, hashCanonicalJson, hashString, integrityMetaIsComplete, interpretEffectSize, isAmaBenchUnknownLikeAnswer, isContaminationEntry, isContaminationManifest, isSealedQrelsArtifact, isSha256Hex, judgeMemCorrectCorrectionAcceptance, judgeMemCorrectStaleMemoryHarm, linkMatches, listBenchmarkBaselines, listBenchmarkResults, listBenchmarks, listMemoryEvalBenchmarkIds, listMemoryEvalDimensions, llmJudgeScore, llmJudgeScoreDetailed, loadAblationFixture, loadBaseline, loadBeamDatasetPreview, loadBenchmarkArtifact, loadBenchmarkBaseline, loadBenchmarkReportCardProvenance, loadBenchmarkResult, loadCustomBenchmarkFile, loadJudgeCalibrationState, loadLoCoMo10, loadLocalLabManifest, loadLongMemEvalS, loadSealKeyFromEnv, loadSealedQrels, loadSealedRubric, matchEntity, mergeContaminationManifests, openSeal, orchestrateBenchmarkRuns, pairedDeltaConfidenceInterval, parseBenchmarkArtifact, parseCustomBenchmark, parseLocalLabManifest, parseRubricResponse, parseSealedQrels, pickStableQualifiedName, precisionAtK, preflightLocalLabRole, projectFolderFixture, recallAtK, redactBenchmarkResultSecrets, renderBaselineMarkdown, renderBenchmarkResultExport, renderLoComoProfileDeltaMarkdown, renderMemorySummaryForJudge, renderMemoryViewForAgent, resolveAssistantAgent, resolveAssistantRubricId, resolveAssistantSeeds, resolveAssistantSpotCheckDir, resolveBenchRuntimeProfile, resolveBenchmarkPhaseTimeoutMs, resolveBenchmarkProgressLogging, resolveBenchmarkResultReference, resolveBenchmarkRunCount, resolveLocalLabProfile, resolveLocalLabRole, resolveStructuredJudge, rotateDistractors, rougeL, runAssistantBenchmark, runAssistantMeetingPrepBenchmark, runAssistantMorningBriefBenchmark, runAssistantNextBestActionBenchmark, runAssistantSynthesisBenchmark, runBaseline, runBenchSuite, runBenchmark, runCodingGraphBenchmark, runCustomBenchmarkFile, runExplain, runExtractionAttack, runJudgeCalibration, runMitigatedBaseline, runProceduralAblation, runProceduralAblationCli, runSealedJudge, runSequentialPhases, safeHexEqual, saveBaseline, saveBenchmarkBaseline, schemaCompleteness, sealPayload, selectAmaBenchDiagnosticVariants, selectCalibrationSlice, selectFixtureVariant, serializeBenchmarkArtifact, serializeJsonl, serializeSealedQrels, shuffleTasks, timed, verifyRubricDigest, writeBenchmarkArtifact, writeBenchmarkPublishFeed, writeBenchmarkReproManifest, writeBenchmarkResult, writeJudgeCalibrationState, writeLeaderboardArtifactsForResult, zeroScores };