bridgebench 3.1.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CITATION.cff +15 -0
- package/LICENSE +21 -0
- package/README.md +249 -0
- package/dist/chunk-4TWPCPRP.cjs +1097 -0
- package/dist/chunk-4TWPCPRP.cjs.map +1 -0
- package/dist/chunk-7YCJSOK7.cjs +398 -0
- package/dist/chunk-7YCJSOK7.cjs.map +1 -0
- package/dist/chunk-CIXITJW6.cjs +249 -0
- package/dist/chunk-CIXITJW6.cjs.map +1 -0
- package/dist/chunk-EQHRUV2I.js +1466 -0
- package/dist/chunk-EQHRUV2I.js.map +1 -0
- package/dist/chunk-JTVNKSMO.js +1096 -0
- package/dist/chunk-JTVNKSMO.js.map +1 -0
- package/dist/chunk-LFKEV2YL.js +398 -0
- package/dist/chunk-LFKEV2YL.js.map +1 -0
- package/dist/chunk-NJTYVNP4.cjs +1467 -0
- package/dist/chunk-NJTYVNP4.cjs.map +1 -0
- package/dist/chunk-UECBSKTD.js +244 -0
- package/dist/chunk-UECBSKTD.js.map +1 -0
- package/dist/cli.cjs +409 -0
- package/dist/cli.cjs.map +1 -0
- package/dist/cli.d.cts +1 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +408 -0
- package/dist/cli.js.map +1 -0
- package/dist/client.cjs +42 -0
- package/dist/client.cjs.map +1 -0
- package/dist/client.d.cts +93 -0
- package/dist/client.d.ts +93 -0
- package/dist/client.js +42 -0
- package/dist/client.js.map +1 -0
- package/dist/contracts/index.cjs +47 -0
- package/dist/contracts/index.cjs.map +1 -0
- package/dist/contracts/index.d.cts +14 -0
- package/dist/contracts/index.d.ts +14 -0
- package/dist/contracts/index.js +47 -0
- package/dist/contracts/index.js.map +1 -0
- package/dist/index.cjs +171 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +214 -0
- package/dist/index.d.ts +214 -0
- package/dist/index.js +171 -0
- package/dist/index.js.map +1 -0
- package/dist/logger-CCR9Mg1c.d.cts +319 -0
- package/dist/logger-QJU7SBDz.d.ts +319 -0
- package/dist/reports-4CejmOHf.d.cts +454 -0
- package/dist/reports-s2CTnGN8.d.ts +454 -0
- package/dist/tasks-CpaCJ6JE.d.cts +151 -0
- package/dist/tasks-CpaCJ6JE.d.ts +151 -0
- package/dist/tasks.cjs +22 -0
- package/dist/tasks.cjs.map +1 -0
- package/dist/tasks.d.cts +39 -0
- package/dist/tasks.d.ts +39 -0
- package/dist/tasks.js +22 -0
- package/dist/tasks.js.map +1 -0
- package/docs/README.md +25 -0
- package/docs/glossary.md +49 -0
- package/docs/methodology.md +58 -0
- package/docs/private-packs.md +74 -0
- package/docs/replay-elo.md +79 -0
- package/docs/task-authoring.md +80 -0
- package/package.json +137 -0
- package/tasks/hallucination/public/boundary-coverage-audit.yaml +274 -0
- package/tasks/hallucination/public/boundary-migration-audit.yaml +284 -0
- package/tasks/hallucination/public/conflict-dependency-versions.yaml +324 -0
- package/tasks/hallucination/public/conflict-runbook-versions.yaml +229 -0
- package/tasks/hallucination/public/fabrication-agent-tools.yaml +224 -0
- package/tasks/hallucination/public/fabrication-api-surface.yaml +239 -0
- package/tasks/hallucination/public/fidelity-commit-attribution.yaml +304 -0
- package/tasks/hallucination/public/fidelity-config-drift.yaml +307 -0
- package/tasks/hallucination/public/missing-deploy-window.yaml +204 -0
- package/tasks/hallucination/public/missing-latency-baseline.yaml +239 -0
- package/tasks/hallucination/public/premise-quota-breach.yaml +202 -0
- package/tasks/hallucination/public/premise-rollback-cause.yaml +235 -0
- package/tasks/reasoning/public/constraint-capacity-allocation.yaml +196 -0
- package/tasks/reasoning/public/constraint-deployment-policy.yaml +203 -0
- package/tasks/reasoning/public/counterexample-authorization-rule.yaml +278 -0
- package/tasks/reasoning/public/counterexample-scheduler-starvation.yaml +290 -0
- package/tasks/reasoning/public/root-cache-tenant-leak.yaml +225 -0
- package/tasks/reasoning/public/root-event-ordering.yaml +184 -0
- package/tasks/reasoning/public/stateful-lease-handoff.yaml +213 -0
- package/tasks/reasoning/public/stateful-retry-budget.yaml +222 -0
- package/tasks/reasoning/public/synthesis-api-contract.yaml +214 -0
- package/tasks/reasoning/public/synthesis-permission-migration.yaml +190 -0
- package/tasks/reasoning/public/uncertainty-conflicting-telemetry.yaml +242 -0
- package/tasks/reasoning/public/uncertainty-incomplete-incident.yaml +223 -0
|
@@ -0,0 +1,319 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { f as ArenaRunConfig, t as ModelRegistryEntry, M as MatchResult, E as EloState, h as ArenaSnapshot } from './reports-s2CTnGN8.js';
|
|
3
|
+
import { d as CompleteArenaTask, B as BenchmarkCategory } from './tasks-CpaCJ6JE.js';
|
|
4
|
+
|
|
5
|
+
declare const RUN_MANIFEST_VERSION = "1.0.0";
|
|
6
|
+
declare const RunManifestSchema: z.ZodObject<{
|
|
7
|
+
version: z.ZodLiteral<"1.0.0">;
|
|
8
|
+
methodologyVersion: z.ZodString;
|
|
9
|
+
engineVersion: z.ZodString;
|
|
10
|
+
category: z.ZodEnum<["reasoning", "hallucination"]>;
|
|
11
|
+
seed: z.ZodString;
|
|
12
|
+
matches: z.ZodNumber;
|
|
13
|
+
competitors: z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
14
|
+
id: z.ZodString;
|
|
15
|
+
canonicalSlug: z.ZodString;
|
|
16
|
+
request: z.ZodObject<{
|
|
17
|
+
maxTokens: z.ZodNumber;
|
|
18
|
+
temperature: z.ZodNumber;
|
|
19
|
+
reasoningEffort: z.ZodEnum<["high", "medium", "low"]>;
|
|
20
|
+
excludeReasoning: z.ZodBoolean;
|
|
21
|
+
timeoutMs: z.ZodNumber;
|
|
22
|
+
}, "strip", z.ZodTypeAny, {
|
|
23
|
+
temperature: number;
|
|
24
|
+
timeoutMs: number;
|
|
25
|
+
reasoningEffort: "high" | "medium" | "low";
|
|
26
|
+
maxTokens: number;
|
|
27
|
+
excludeReasoning: boolean;
|
|
28
|
+
}, {
|
|
29
|
+
temperature: number;
|
|
30
|
+
timeoutMs: number;
|
|
31
|
+
reasoningEffort: "high" | "medium" | "low";
|
|
32
|
+
maxTokens: number;
|
|
33
|
+
excludeReasoning: boolean;
|
|
34
|
+
}>;
|
|
35
|
+
} & {
|
|
36
|
+
role: z.ZodLiteral<"competitor">;
|
|
37
|
+
}, "strip", z.ZodTypeAny, {
|
|
38
|
+
id: string;
|
|
39
|
+
role: "competitor";
|
|
40
|
+
canonicalSlug: string;
|
|
41
|
+
request: {
|
|
42
|
+
temperature: number;
|
|
43
|
+
timeoutMs: number;
|
|
44
|
+
reasoningEffort: "high" | "medium" | "low";
|
|
45
|
+
maxTokens: number;
|
|
46
|
+
excludeReasoning: boolean;
|
|
47
|
+
};
|
|
48
|
+
}, {
|
|
49
|
+
id: string;
|
|
50
|
+
role: "competitor";
|
|
51
|
+
canonicalSlug: string;
|
|
52
|
+
request: {
|
|
53
|
+
temperature: number;
|
|
54
|
+
timeoutMs: number;
|
|
55
|
+
reasoningEffort: "high" | "medium" | "low";
|
|
56
|
+
maxTokens: number;
|
|
57
|
+
excludeReasoning: boolean;
|
|
58
|
+
};
|
|
59
|
+
}>, "many">, {
|
|
60
|
+
id: string;
|
|
61
|
+
role: "competitor";
|
|
62
|
+
canonicalSlug: string;
|
|
63
|
+
request: {
|
|
64
|
+
temperature: number;
|
|
65
|
+
timeoutMs: number;
|
|
66
|
+
reasoningEffort: "high" | "medium" | "low";
|
|
67
|
+
maxTokens: number;
|
|
68
|
+
excludeReasoning: boolean;
|
|
69
|
+
};
|
|
70
|
+
}[], {
|
|
71
|
+
id: string;
|
|
72
|
+
role: "competitor";
|
|
73
|
+
canonicalSlug: string;
|
|
74
|
+
request: {
|
|
75
|
+
temperature: number;
|
|
76
|
+
timeoutMs: number;
|
|
77
|
+
reasoningEffort: "high" | "medium" | "low";
|
|
78
|
+
maxTokens: number;
|
|
79
|
+
excludeReasoning: boolean;
|
|
80
|
+
};
|
|
81
|
+
}[]>;
|
|
82
|
+
judges: z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
83
|
+
id: z.ZodString;
|
|
84
|
+
canonicalSlug: z.ZodString;
|
|
85
|
+
request: z.ZodObject<{
|
|
86
|
+
maxTokens: z.ZodNumber;
|
|
87
|
+
temperature: z.ZodNumber;
|
|
88
|
+
reasoningEffort: z.ZodEnum<["high", "medium", "low"]>;
|
|
89
|
+
excludeReasoning: z.ZodBoolean;
|
|
90
|
+
timeoutMs: z.ZodNumber;
|
|
91
|
+
}, "strip", z.ZodTypeAny, {
|
|
92
|
+
temperature: number;
|
|
93
|
+
timeoutMs: number;
|
|
94
|
+
reasoningEffort: "high" | "medium" | "low";
|
|
95
|
+
maxTokens: number;
|
|
96
|
+
excludeReasoning: boolean;
|
|
97
|
+
}, {
|
|
98
|
+
temperature: number;
|
|
99
|
+
timeoutMs: number;
|
|
100
|
+
reasoningEffort: "high" | "medium" | "low";
|
|
101
|
+
maxTokens: number;
|
|
102
|
+
excludeReasoning: boolean;
|
|
103
|
+
}>;
|
|
104
|
+
} & {
|
|
105
|
+
role: z.ZodLiteral<"judge">;
|
|
106
|
+
}, "strip", z.ZodTypeAny, {
|
|
107
|
+
id: string;
|
|
108
|
+
role: "judge";
|
|
109
|
+
canonicalSlug: string;
|
|
110
|
+
request: {
|
|
111
|
+
temperature: number;
|
|
112
|
+
timeoutMs: number;
|
|
113
|
+
reasoningEffort: "high" | "medium" | "low";
|
|
114
|
+
maxTokens: number;
|
|
115
|
+
excludeReasoning: boolean;
|
|
116
|
+
};
|
|
117
|
+
}, {
|
|
118
|
+
id: string;
|
|
119
|
+
role: "judge";
|
|
120
|
+
canonicalSlug: string;
|
|
121
|
+
request: {
|
|
122
|
+
temperature: number;
|
|
123
|
+
timeoutMs: number;
|
|
124
|
+
reasoningEffort: "high" | "medium" | "low";
|
|
125
|
+
maxTokens: number;
|
|
126
|
+
excludeReasoning: boolean;
|
|
127
|
+
};
|
|
128
|
+
}>, "many">, {
|
|
129
|
+
id: string;
|
|
130
|
+
role: "judge";
|
|
131
|
+
canonicalSlug: string;
|
|
132
|
+
request: {
|
|
133
|
+
temperature: number;
|
|
134
|
+
timeoutMs: number;
|
|
135
|
+
reasoningEffort: "high" | "medium" | "low";
|
|
136
|
+
maxTokens: number;
|
|
137
|
+
excludeReasoning: boolean;
|
|
138
|
+
};
|
|
139
|
+
}[], {
|
|
140
|
+
id: string;
|
|
141
|
+
role: "judge";
|
|
142
|
+
canonicalSlug: string;
|
|
143
|
+
request: {
|
|
144
|
+
temperature: number;
|
|
145
|
+
timeoutMs: number;
|
|
146
|
+
reasoningEffort: "high" | "medium" | "low";
|
|
147
|
+
maxTokens: number;
|
|
148
|
+
excludeReasoning: boolean;
|
|
149
|
+
};
|
|
150
|
+
}[]>;
|
|
151
|
+
tasks: z.ZodArray<z.ZodObject<{
|
|
152
|
+
id: z.ZodString;
|
|
153
|
+
version: z.ZodString;
|
|
154
|
+
publicHash: z.ZodString;
|
|
155
|
+
privateHash: z.ZodString;
|
|
156
|
+
}, "strip", z.ZodTypeAny, {
|
|
157
|
+
id: string;
|
|
158
|
+
version: string;
|
|
159
|
+
publicHash: string;
|
|
160
|
+
privateHash: string;
|
|
161
|
+
}, {
|
|
162
|
+
id: string;
|
|
163
|
+
version: string;
|
|
164
|
+
publicHash: string;
|
|
165
|
+
privateHash: string;
|
|
166
|
+
}>, "many">;
|
|
167
|
+
promptPolicyHashes: z.ZodObject<{
|
|
168
|
+
competitor: z.ZodString;
|
|
169
|
+
judge: z.ZodString;
|
|
170
|
+
}, "strip", z.ZodTypeAny, {
|
|
171
|
+
competitor: string;
|
|
172
|
+
judge: string;
|
|
173
|
+
}, {
|
|
174
|
+
competitor: string;
|
|
175
|
+
judge: string;
|
|
176
|
+
}>;
|
|
177
|
+
}, "strip", z.ZodTypeAny, {
|
|
178
|
+
methodologyVersion: string;
|
|
179
|
+
seed: string;
|
|
180
|
+
version: "1.0.0";
|
|
181
|
+
category: "reasoning" | "hallucination";
|
|
182
|
+
competitors: {
|
|
183
|
+
id: string;
|
|
184
|
+
role: "competitor";
|
|
185
|
+
canonicalSlug: string;
|
|
186
|
+
request: {
|
|
187
|
+
temperature: number;
|
|
188
|
+
timeoutMs: number;
|
|
189
|
+
reasoningEffort: "high" | "medium" | "low";
|
|
190
|
+
maxTokens: number;
|
|
191
|
+
excludeReasoning: boolean;
|
|
192
|
+
};
|
|
193
|
+
}[];
|
|
194
|
+
tasks: {
|
|
195
|
+
id: string;
|
|
196
|
+
version: string;
|
|
197
|
+
publicHash: string;
|
|
198
|
+
privateHash: string;
|
|
199
|
+
}[];
|
|
200
|
+
engineVersion: string;
|
|
201
|
+
matches: number;
|
|
202
|
+
judges: {
|
|
203
|
+
id: string;
|
|
204
|
+
role: "judge";
|
|
205
|
+
canonicalSlug: string;
|
|
206
|
+
request: {
|
|
207
|
+
temperature: number;
|
|
208
|
+
timeoutMs: number;
|
|
209
|
+
reasoningEffort: "high" | "medium" | "low";
|
|
210
|
+
maxTokens: number;
|
|
211
|
+
excludeReasoning: boolean;
|
|
212
|
+
};
|
|
213
|
+
}[];
|
|
214
|
+
promptPolicyHashes: {
|
|
215
|
+
competitor: string;
|
|
216
|
+
judge: string;
|
|
217
|
+
};
|
|
218
|
+
}, {
|
|
219
|
+
methodologyVersion: string;
|
|
220
|
+
seed: string;
|
|
221
|
+
version: "1.0.0";
|
|
222
|
+
category: "reasoning" | "hallucination";
|
|
223
|
+
competitors: {
|
|
224
|
+
id: string;
|
|
225
|
+
role: "competitor";
|
|
226
|
+
canonicalSlug: string;
|
|
227
|
+
request: {
|
|
228
|
+
temperature: number;
|
|
229
|
+
timeoutMs: number;
|
|
230
|
+
reasoningEffort: "high" | "medium" | "low";
|
|
231
|
+
maxTokens: number;
|
|
232
|
+
excludeReasoning: boolean;
|
|
233
|
+
};
|
|
234
|
+
}[];
|
|
235
|
+
tasks: {
|
|
236
|
+
id: string;
|
|
237
|
+
version: string;
|
|
238
|
+
publicHash: string;
|
|
239
|
+
privateHash: string;
|
|
240
|
+
}[];
|
|
241
|
+
engineVersion: string;
|
|
242
|
+
matches: number;
|
|
243
|
+
judges: {
|
|
244
|
+
id: string;
|
|
245
|
+
role: "judge";
|
|
246
|
+
canonicalSlug: string;
|
|
247
|
+
request: {
|
|
248
|
+
temperature: number;
|
|
249
|
+
timeoutMs: number;
|
|
250
|
+
reasoningEffort: "high" | "medium" | "low";
|
|
251
|
+
maxTokens: number;
|
|
252
|
+
excludeReasoning: boolean;
|
|
253
|
+
};
|
|
254
|
+
}[];
|
|
255
|
+
promptPolicyHashes: {
|
|
256
|
+
competitor: string;
|
|
257
|
+
judge: string;
|
|
258
|
+
};
|
|
259
|
+
}>;
|
|
260
|
+
type RunManifest = z.infer<typeof RunManifestSchema>;
|
|
261
|
+
declare function canonicalJson(value: unknown): string;
|
|
262
|
+
declare function runManifestHash(manifest: RunManifest): string;
|
|
263
|
+
declare function runIdFromManifest(manifest: RunManifest): string;
|
|
264
|
+
declare function createRunManifest(config: Pick<ArenaRunConfig, 'category' | 'seed' | 'matches' | 'competitorIds'>, tasks: CompleteArenaTask[], resolvedCompetitors?: readonly ModelRegistryEntry[]): RunManifest;
|
|
265
|
+
|
|
266
|
+
interface ArenaStoreConfig {
|
|
267
|
+
category: BenchmarkCategory;
|
|
268
|
+
journalPath: string;
|
|
269
|
+
snapshotPath: string;
|
|
270
|
+
markdownPath: string;
|
|
271
|
+
runsDir?: string;
|
|
272
|
+
/** Skip directory creation for read-only verification of external journals. */
|
|
273
|
+
readOnly?: boolean;
|
|
274
|
+
}
|
|
275
|
+
/** Each category gets its own results directory — its own journal, Elo ladder, and reports. */
|
|
276
|
+
declare function categoryStoreConfig(category: BenchmarkCategory, resultsRoot?: string | undefined): ArenaStoreConfig;
|
|
277
|
+
declare class ArenaStore {
|
|
278
|
+
readonly config: ArenaStoreConfig;
|
|
279
|
+
constructor(config: ArenaStoreConfig);
|
|
280
|
+
get category(): BenchmarkCategory;
|
|
281
|
+
get runsDir(): string;
|
|
282
|
+
append(result: MatchResult): void;
|
|
283
|
+
readAll(): MatchResult[];
|
|
284
|
+
writeRunManifest(runId: string, manifest: RunManifest): void;
|
|
285
|
+
readRunManifest(runId: string): RunManifest | null;
|
|
286
|
+
completedMatchIds(): Set<string>;
|
|
287
|
+
rebuildEloState(competitorIds?: readonly string[]): EloState;
|
|
288
|
+
writeSnapshot(snapshot: ArenaSnapshot): void;
|
|
289
|
+
writeMarkdown(markdown: string): void;
|
|
290
|
+
private atomicWrite;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
type LogLevel = 'debug' | 'info' | 'warn' | 'error';
|
|
294
|
+
declare function redactSecrets(value: string): string;
|
|
295
|
+
/** Structured logger every arena boundary reports into; one JSONL file per process. */
|
|
296
|
+
interface ArenaLogger {
|
|
297
|
+
readonly filePath: string | null;
|
|
298
|
+
debug(event: string, data?: Record<string, unknown>): void;
|
|
299
|
+
info(event: string, data?: Record<string, unknown>): void;
|
|
300
|
+
warn(event: string, data?: Record<string, unknown>): void;
|
|
301
|
+
error(event: string, data?: Record<string, unknown>): void;
|
|
302
|
+
}
|
|
303
|
+
declare const noopLogger: ArenaLogger;
|
|
304
|
+
declare class FileArenaLogger implements ArenaLogger {
|
|
305
|
+
readonly filePath: string;
|
|
306
|
+
private readonly verbose;
|
|
307
|
+
constructor(options: {
|
|
308
|
+
dir: string;
|
|
309
|
+
verbose?: boolean;
|
|
310
|
+
name?: string;
|
|
311
|
+
});
|
|
312
|
+
debug(event: string, data?: Record<string, unknown>): void;
|
|
313
|
+
info(event: string, data?: Record<string, unknown>): void;
|
|
314
|
+
warn(event: string, data?: Record<string, unknown>): void;
|
|
315
|
+
error(event: string, data?: Record<string, unknown>): void;
|
|
316
|
+
private write;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
export { ArenaStore as A, FileArenaLogger as F, type LogLevel as L, type RunManifest as R, type ArenaLogger as a, type ArenaStoreConfig as b, RUN_MANIFEST_VERSION as c, RunManifestSchema as d, canonicalJson as e, categoryStoreConfig as f, createRunManifest as g, runIdFromManifest as h, runManifestHash as i, noopLogger as n, redactSecrets as r };
|