@tangle-network/agent-eval 0.83.0 → 0.85.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/dist/belief-state/index.d.ts +82 -2
- package/dist/belief-state/index.js +293 -4
- package/dist/belief-state/index.js.map +1 -1
- package/dist/chunk-T4SQEITX.js +95 -0
- package/dist/chunk-T4SQEITX.js.map +1 -0
- package/dist/index.d.ts +192 -1
- package/dist/index.js +235 -7
- package/dist/index.js.map +1 -1
- package/dist/openapi.json +1 -1
- package/dist/runtime-trajectory-BLRiaifm.d.ts +49 -0
- package/docs/building-doctrine.md +42 -0
- package/docs/research/belief-state-agent-eval-roadmap.md +3 -0
- package/package.json +13 -26
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
// src/runtime-trajectory.ts
|
|
2
|
+
var DEFAULT_SPLIT_TAG = "search";
|
|
3
|
+
function projectRuntimeTrajectoryEvidence(options) {
|
|
4
|
+
const diagnostics = [];
|
|
5
|
+
const runsById = /* @__PURE__ */ new Map();
|
|
6
|
+
const events = [];
|
|
7
|
+
let recordWithRuntimeEventsCount = 0;
|
|
8
|
+
let defaultedSplitCount = 0;
|
|
9
|
+
for (let recordIndex = 0; recordIndex < options.records.length; recordIndex += 1) {
|
|
10
|
+
const record = options.records[recordIndex];
|
|
11
|
+
const key = runtimeTrajectoryRecordKey(record, recordIndex, options.recordIdOf);
|
|
12
|
+
const splitTag = record.splitTag ?? options.defaultSplitTag ?? DEFAULT_SPLIT_TAG;
|
|
13
|
+
if (record.splitTag === void 0) defaultedSplitCount += 1;
|
|
14
|
+
const rawEvents = record.runtimeEvents;
|
|
15
|
+
if (!Array.isArray(rawEvents)) {
|
|
16
|
+
diagnostics.push(
|
|
17
|
+
`${key}: runtimeEvents is not an array; no runtime run join can be extracted`
|
|
18
|
+
);
|
|
19
|
+
continue;
|
|
20
|
+
}
|
|
21
|
+
if (rawEvents.length === 0) {
|
|
22
|
+
diagnostics.push(`${key}: no runtimeEvents; no runtime run join can be extracted`);
|
|
23
|
+
continue;
|
|
24
|
+
}
|
|
25
|
+
recordWithRuntimeEventsCount += 1;
|
|
26
|
+
for (let index = 0; index < rawEvents.length; index += 1) {
|
|
27
|
+
const event = parseRuntimeTrajectoryHookEvent(rawEvents[index]);
|
|
28
|
+
if (!event) {
|
|
29
|
+
diagnostics.push(`${key}: runtimeEvents[${index}] is not a RuntimeHookEvent`);
|
|
30
|
+
continue;
|
|
31
|
+
}
|
|
32
|
+
events.push(event);
|
|
33
|
+
const scenarioId = event.scenarioId ?? stringOrUndefined(options.scenarioIdOf?.(record, recordIndex)) ?? stringOrUndefined(record.scenarioId);
|
|
34
|
+
const prior = runsById.get(event.runId);
|
|
35
|
+
if (!prior) {
|
|
36
|
+
runsById.set(event.runId, { runId: event.runId, scenarioId, splitTag });
|
|
37
|
+
continue;
|
|
38
|
+
}
|
|
39
|
+
if (prior.scenarioId !== scenarioId || prior.splitTag !== splitTag) {
|
|
40
|
+
diagnostics.push(`${key}: runId ${event.runId} has conflicting scenario/split metadata`);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
const runs = [...runsById.values()];
|
|
45
|
+
return {
|
|
46
|
+
runs,
|
|
47
|
+
events,
|
|
48
|
+
summary: {
|
|
49
|
+
recordCount: options.records.length,
|
|
50
|
+
recordWithRuntimeEventsCount,
|
|
51
|
+
runtimeRunCount: runs.length,
|
|
52
|
+
lifecycleEventCount: events.length,
|
|
53
|
+
defaultedSplitCount
|
|
54
|
+
},
|
|
55
|
+
diagnostics
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
function parseRuntimeTrajectoryHookEvent(input) {
|
|
59
|
+
if (!isRecord(input)) return null;
|
|
60
|
+
if (typeof input.id !== "string" || input.id.length === 0) return null;
|
|
61
|
+
if (typeof input.runId !== "string" || input.runId.length === 0) return null;
|
|
62
|
+
if (typeof input.target !== "string" || input.target.length === 0) return null;
|
|
63
|
+
if (typeof input.phase !== "string" || input.phase.length === 0) return null;
|
|
64
|
+
if (typeof input.timestamp !== "number" || !Number.isFinite(input.timestamp)) return null;
|
|
65
|
+
return {
|
|
66
|
+
id: input.id,
|
|
67
|
+
runId: input.runId,
|
|
68
|
+
scenarioId: stringOrUndefined(input.scenarioId),
|
|
69
|
+
target: input.target,
|
|
70
|
+
phase: input.phase,
|
|
71
|
+
timestamp: input.timestamp,
|
|
72
|
+
stepIndex: finiteNumberOrUndefined(input.stepIndex),
|
|
73
|
+
parentId: stringOrUndefined(input.parentId),
|
|
74
|
+
payload: input.payload,
|
|
75
|
+
metadata: isRecord(input.metadata) ? { ...input.metadata } : void 0
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
function runtimeTrajectoryRecordKey(record, index, recordIdOf) {
|
|
79
|
+
return stringOrUndefined(recordIdOf?.(record, index)) ?? stringOrUndefined(record.id) ?? `record[${index}]`;
|
|
80
|
+
}
|
|
81
|
+
function isRecord(value) {
|
|
82
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
83
|
+
}
|
|
84
|
+
function stringOrUndefined(value) {
|
|
85
|
+
return typeof value === "string" && value.length > 0 ? value : void 0;
|
|
86
|
+
}
|
|
87
|
+
function finiteNumberOrUndefined(value) {
|
|
88
|
+
return typeof value === "number" && Number.isFinite(value) ? value : void 0;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export {
|
|
92
|
+
projectRuntimeTrajectoryEvidence,
|
|
93
|
+
parseRuntimeTrajectoryHookEvent
|
|
94
|
+
};
|
|
95
|
+
//# sourceMappingURL=chunk-T4SQEITX.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/runtime-trajectory.ts"],"sourcesContent":["import type { RunSplitTag } from './run-record'\n\nexport interface RuntimeTrajectoryHookEvent {\n id: string\n runId: string\n scenarioId?: string\n target: string\n phase: string\n timestamp: number\n stepIndex?: number\n parentId?: string\n payload?: unknown\n metadata?: Record<string, unknown>\n}\n\nexport interface RuntimeTrajectoryRecord {\n id?: string\n scenarioId?: string\n splitTag?: RunSplitTag\n runtimeEvents?: unknown\n [key: string]: unknown\n}\n\nexport interface RuntimeTrajectoryRunRecord {\n runId: string\n scenarioId?: string\n splitTag: RunSplitTag\n}\n\nexport interface RuntimeTrajectoryEvidenceSummary {\n recordCount: number\n recordWithRuntimeEventsCount: number\n runtimeRunCount: number\n lifecycleEventCount: number\n defaultedSplitCount: number\n}\n\nexport interface RuntimeTrajectoryEvidenceProjection {\n runs: RuntimeTrajectoryRunRecord[]\n events: RuntimeTrajectoryHookEvent[]\n summary: RuntimeTrajectoryEvidenceSummary\n diagnostics: string[]\n}\n\nexport interface ProjectRuntimeTrajectoryEvidenceOptions<\n TRecord extends RuntimeTrajectoryRecord = RuntimeTrajectoryRecord,\n> {\n records: TRecord[]\n defaultSplitTag?: RunSplitTag\n recordIdOf?: (record: TRecord, index: number) => string | undefined\n scenarioIdOf?: (record: TRecord, index: number) => string | undefined\n}\n\nconst DEFAULT_SPLIT_TAG: RunSplitTag = 'search'\n\nexport function projectRuntimeTrajectoryEvidence<TRecord extends RuntimeTrajectoryRecord>(\n options: ProjectRuntimeTrajectoryEvidenceOptions<TRecord>,\n): RuntimeTrajectoryEvidenceProjection {\n const diagnostics: string[] = []\n const runsById = new Map<string, RuntimeTrajectoryRunRecord>()\n const events: RuntimeTrajectoryHookEvent[] = []\n let recordWithRuntimeEventsCount = 0\n let defaultedSplitCount = 0\n\n for (let recordIndex = 0; recordIndex < options.records.length; recordIndex += 1) {\n const record = options.records[recordIndex]!\n const key = runtimeTrajectoryRecordKey(record, recordIndex, options.recordIdOf)\n const splitTag = record.splitTag ?? options.defaultSplitTag ?? DEFAULT_SPLIT_TAG\n if (record.splitTag === undefined) defaultedSplitCount += 1\n\n const rawEvents = record.runtimeEvents\n if (!Array.isArray(rawEvents)) {\n diagnostics.push(\n `${key}: runtimeEvents is not an array; no runtime run join can be extracted`,\n )\n continue\n }\n if (rawEvents.length === 0) {\n diagnostics.push(`${key}: no runtimeEvents; no runtime run join can be extracted`)\n continue\n }\n recordWithRuntimeEventsCount += 1\n\n for (let index = 0; index < rawEvents.length; index += 1) {\n const event = parseRuntimeTrajectoryHookEvent(rawEvents[index])\n if (!event) {\n diagnostics.push(`${key}: runtimeEvents[${index}] is not a RuntimeHookEvent`)\n continue\n }\n events.push(event)\n\n const scenarioId =\n event.scenarioId ??\n stringOrUndefined(options.scenarioIdOf?.(record, recordIndex)) ??\n stringOrUndefined(record.scenarioId)\n const prior = runsById.get(event.runId)\n if (!prior) {\n runsById.set(event.runId, { runId: event.runId, scenarioId, splitTag })\n continue\n }\n if (prior.scenarioId !== scenarioId || prior.splitTag !== splitTag) {\n diagnostics.push(`${key}: runId ${event.runId} has conflicting scenario/split metadata`)\n }\n }\n }\n\n const runs = [...runsById.values()]\n return {\n runs,\n events,\n summary: {\n recordCount: options.records.length,\n recordWithRuntimeEventsCount,\n runtimeRunCount: runs.length,\n lifecycleEventCount: events.length,\n defaultedSplitCount,\n },\n diagnostics,\n }\n}\n\nexport function parseRuntimeTrajectoryHookEvent(input: unknown): RuntimeTrajectoryHookEvent | null {\n if (!isRecord(input)) return null\n if (typeof input.id !== 'string' || input.id.length === 0) return null\n if (typeof input.runId !== 'string' || input.runId.length === 0) return null\n if (typeof input.target !== 'string' || input.target.length === 0) return null\n if (typeof input.phase !== 'string' || input.phase.length === 0) return null\n if (typeof input.timestamp !== 'number' || !Number.isFinite(input.timestamp)) return null\n\n return {\n id: input.id,\n runId: input.runId,\n scenarioId: stringOrUndefined(input.scenarioId),\n target: input.target,\n phase: input.phase,\n timestamp: input.timestamp,\n stepIndex: finiteNumberOrUndefined(input.stepIndex),\n parentId: stringOrUndefined(input.parentId),\n payload: input.payload,\n metadata: isRecord(input.metadata) ? { ...input.metadata } : undefined,\n }\n}\n\nfunction runtimeTrajectoryRecordKey<TRecord extends RuntimeTrajectoryRecord>(\n record: TRecord,\n index: number,\n recordIdOf?: (record: TRecord, index: number) => string | undefined,\n): string {\n return (\n stringOrUndefined(recordIdOf?.(record, index)) ??\n stringOrUndefined(record.id) ??\n `record[${index}]`\n )\n}\n\nfunction isRecord(value: unknown): value is Record<string, unknown> {\n return typeof value === 'object' && value !== null && !Array.isArray(value)\n}\n\nfunction stringOrUndefined(value: unknown): string | undefined {\n return typeof value === 'string' && value.length > 0 ? value : undefined\n}\n\nfunction finiteNumberOrUndefined(value: unknown): number | undefined {\n return typeof value === 'number' && Number.isFinite(value) ? value : undefined\n}\n"],"mappings":";AAqDA,IAAM,oBAAiC;AAEhC,SAAS,iCACd,SACqC;AACrC,QAAM,cAAwB,CAAC;AAC/B,QAAM,WAAW,oBAAI,IAAwC;AAC7D,QAAM,SAAuC,CAAC;AAC9C,MAAI,+BAA+B;AACnC,MAAI,sBAAsB;AAE1B,WAAS,cAAc,GAAG,cAAc,QAAQ,QAAQ,QAAQ,eAAe,GAAG;AAChF,UAAM,SAAS,QAAQ,QAAQ,WAAW;AAC1C,UAAM,MAAM,2BAA2B,QAAQ,aAAa,QAAQ,UAAU;AAC9E,UAAM,WAAW,OAAO,YAAY,QAAQ,mBAAmB;AAC/D,QAAI,OAAO,aAAa,OAAW,wBAAuB;AAE1D,UAAM,YAAY,OAAO;AACzB,QAAI,CAAC,MAAM,QAAQ,SAAS,GAAG;AAC7B,kBAAY;AAAA,QACV,GAAG,GAAG;AAAA,MACR;AACA;AAAA,IACF;AACA,QAAI,UAAU,WAAW,GAAG;AAC1B,kBAAY,KAAK,GAAG,GAAG,0DAA0D;AACjF;AAAA,IACF;AACA,oCAAgC;AAEhC,aAAS,QAAQ,GAAG,QAAQ,UAAU,QAAQ,SAAS,GAAG;AACxD,YAAM,QAAQ,gCAAgC,UAAU,KAAK,CAAC;AAC9D,UAAI,CAAC,OAAO;AACV,oBAAY,KAAK,GAAG,GAAG,mBAAmB,KAAK,6BAA6B;AAC5E;AAAA,MACF;AACA,aAAO,KAAK,KAAK;AAEjB,YAAM,aACJ,MAAM,cACN,kBAAkB,QAAQ,eAAe,QAAQ,WAAW,CAAC,KAC7D,kBAAkB,OAAO,UAAU;AACrC,YAAM,QAAQ,SAAS,IAAI,MAAM,KAAK;AACtC,UAAI,CAAC,OAAO;AACV,iBAAS,IAAI,MAAM,OAAO,EAAE,OAAO,MAAM,OAAO,YAAY,SAAS,CAAC;AACtE;AAAA,MACF;AACA,UAAI,MAAM,eAAe,cAAc,MAAM,aAAa,UAAU;AAClE,oBAAY,KAAK,GAAG,GAAG,WAAW,MAAM,KAAK,0CAA0C;AAAA,MACzF;AAAA,IACF;AAAA,EACF;AAEA,QAAM,OAAO,CAAC,GAAG,SAAS,OAAO,CAAC;AAClC,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA,SAAS;AAAA,MACP,aAAa,QAAQ,QAAQ;AAAA,MAC7B;AAAA,MACA,iBAAiB,KAAK;AAAA,MACtB,qBAAqB,OAAO;AAAA,MAC5B;AAAA,IACF;AAAA,IACA;AAAA,EACF;AACF;AAEO,SAAS,gCAAgC,OAAmD;AACjG,MAAI,CAAC,SAAS,KAAK,EAAG,QAAO;AAC7B,MAAI,OAAO,MAAM,OAAO,YAAY,MAAM,GAAG,WAAW,EAAG,QAAO;AAClE,MAAI,OAAO,MAAM,UAAU,YAAY,MAAM,MAAM,WAAW,EAAG,QAAO;AACxE,MAAI,OAAO,MAAM,WAAW,YAAY,MAAM,OAAO,WAAW,EAAG,QAAO;AAC1E,MAAI,OAAO,MAAM,UAAU,YAAY,MAAM,MAAM,WAAW,EAAG,QAAO;AACxE,MAAI,OAAO,MAAM,cAAc,YAAY,CAAC,OAAO,SAAS,MAAM,SAAS,EAAG,QAAO;AAErF,SAAO;AAAA,IACL,IAAI,MAAM;AAAA,IACV,OAAO,MAAM;AAAA,IACb,YAAY,kBAAkB,MAAM,UAAU;AAAA,IAC9C,QAAQ,MAAM;AAAA,IACd,OAAO,MAAM;AAAA,IACb,WAAW,MAAM;AAAA,IACjB,WAAW,wBAAwB,MAAM,SAAS;AAAA,IAClD,UAAU,kBAAkB,MAAM,QAAQ;AAAA,IAC1C,SAAS,MAAM;AAAA,IACf,UAAU,SAAS,MAAM,QAAQ,IAAI,EAAE,GAAG,MAAM,SAAS,IAAI;AAAA,EAC/D;AACF;AAEA,SAAS,2BACP,QACA,OACA,YACQ;AACR,SACE,kBAAkB,aAAa,QAAQ,KAAK,CAAC,KAC7C,kBAAkB,OAAO,EAAE,KAC3B,UAAU,KAAK;AAEnB;AAEA,SAAS,SAAS,OAAkD;AAClE,SAAO,OAAO,UAAU,YAAY,UAAU,QAAQ,CAAC,MAAM,QAAQ,KAAK;AAC5E;AAEA,SAAS,kBAAkB,OAAoC;AAC7D,SAAO,OAAO,UAAU,YAAY,MAAM,SAAS,IAAI,QAAQ;AACjE;AAEA,SAAS,wBAAwB,OAAoC;AACnE,SAAO,OAAO,UAAU,YAAY,OAAO,SAAS,KAAK,IAAI,QAAQ;AACvE;","names":[]}
|
package/dist/index.d.ts
CHANGED
|
@@ -42,6 +42,7 @@ export { A as Artifact, E as EventKind, i as FAILURE_CLASSES, F as FailureClass,
|
|
|
42
42
|
import { T as TraceStore, R as RunFilter } from './store-CKUAgsJz.js';
|
|
43
43
|
export { E as EventFilter, F as FileSystemTraceStore, a as FileSystemTraceStoreOptions, I as InMemoryTraceStore, S as SpanFilter } from './store-CKUAgsJz.js';
|
|
44
44
|
export { D as DEFAULT_FAILURE_RULES, b as FailureClassification, c as FailureContext, d as FailureRule, e as classifyFailure } from './failure-cluster-CL7IVgkJ.js';
|
|
45
|
+
export { P as ProjectRuntimeTrajectoryEvidenceOptions, a as RuntimeTrajectoryEvidenceProjection, b as RuntimeTrajectoryEvidenceSummary, c as RuntimeTrajectoryHookEvent, R as RuntimeTrajectoryRecord, d as RuntimeTrajectoryRunRecord, p as parseRuntimeTrajectoryHookEvent, e as projectRuntimeTrajectoryEvidence } from './runtime-trajectory-BLRiaifm.js';
|
|
45
46
|
import { a as BaselineReport } from './baseline-DE36-Np7.js';
|
|
46
47
|
export { B as BaselineOptions, M as MetricSamples, b as MetricVerdict, T as ToolStats, d as ToolUseMetrics, e as ToolUseOptions, f as compareToBaseline, c as computeToolUseMetrics, i as iqr, w as welchsTTest } from './baseline-DE36-Np7.js';
|
|
47
48
|
import { T as Trajectory, a as TrajectoryStep } from './trajectory-GEdXJCL5.js';
|
|
@@ -355,6 +356,78 @@ interface ExecutorConfig {
|
|
|
355
356
|
*/
|
|
356
357
|
declare function executeScenario(tc: TCloud, scenario: Scenario, config: ExecutorConfig): Promise<ScenarioResult>;
|
|
357
358
|
|
|
359
|
+
/**
|
|
360
|
+
* Backend preflight: verify the models a campaign is about to spend tokens
|
|
361
|
+
* against are actually served by the router BEFORE the run starts. The PRE-hoc
|
|
362
|
+
* complement to `assertRealBackend` (which inspects RunRecords AFTER the run to
|
|
363
|
+
* catch a stub/unconfigured backend).
|
|
364
|
+
*
|
|
365
|
+
* Two checks, increasing in cost:
|
|
366
|
+
* - membership (free): GET `{baseUrl}/models` once; a model is `listed` when
|
|
367
|
+
* its id is in the served set.
|
|
368
|
+
* - probe (spends a tiny number of tokens): POST `{baseUrl}/chat/completions`
|
|
369
|
+
* per model with a 1-message, 5-token request; `served` is whether the
|
|
370
|
+
* router returns 2xx, with the HTTP `status` and the body's `error.message`
|
|
371
|
+
* captured in `detail`.
|
|
372
|
+
*
|
|
373
|
+
* A default model the router cannot serve is a config bug. Gate a campaign on
|
|
374
|
+
* `assertModelsServed` and it surfaces every dead id with its status + detail
|
|
375
|
+
* instead of silently producing a stub run.
|
|
376
|
+
*/
|
|
377
|
+
|
|
378
|
+
interface ModelPreflight {
|
|
379
|
+
/** The model id as supplied by the caller. */
|
|
380
|
+
model: string;
|
|
381
|
+
/** Membership in the `{baseUrl}/models` served set. */
|
|
382
|
+
listed: boolean;
|
|
383
|
+
/** 2xx on a 1-token chat probe. `null` when `probe` was not requested. */
|
|
384
|
+
served: boolean | null;
|
|
385
|
+
/** HTTP status of the probe. `null` when not probed. */
|
|
386
|
+
status: number | null;
|
|
387
|
+
/** Probe body's `error.message` when present, else `null`. */
|
|
388
|
+
detail: string | null;
|
|
389
|
+
}
|
|
390
|
+
interface PreflightModelsOptions {
|
|
391
|
+
/** Router base URL, e.g. `https://router.tangle.tools/v1`. Trailing slash tolerated. */
|
|
392
|
+
baseUrl: string;
|
|
393
|
+
/** Bearer token sent as `Authorization: Bearer <apiKey>`. */
|
|
394
|
+
apiKey: string;
|
|
395
|
+
/** Model ids to check. */
|
|
396
|
+
models: string[];
|
|
397
|
+
/** When true, additionally spend a 1-token chat probe per model. Default false. */
|
|
398
|
+
probe?: boolean;
|
|
399
|
+
/** Injectable fetch for tests; defaults to the global. */
|
|
400
|
+
fetchImpl?: typeof fetch;
|
|
401
|
+
}
|
|
402
|
+
interface PreflightOutcome {
|
|
403
|
+
succeeded: boolean;
|
|
404
|
+
value: ModelPreflight[] | null;
|
|
405
|
+
error: string | null;
|
|
406
|
+
}
|
|
407
|
+
/**
|
|
408
|
+
* Check that `models` are reachable on the router. Returns a typed outcome —
|
|
409
|
+
* a network failure yields `{ succeeded: false, error }`, never a throw and
|
|
410
|
+
* never a partial result silently reported as success. No retries, no
|
|
411
|
+
* fallbacks.
|
|
412
|
+
*
|
|
413
|
+
* The membership check (one GET) always runs. When `probe` is true, each model
|
|
414
|
+
* additionally gets a 1-token chat probe so a model that is listed but
|
|
415
|
+
* unconfigured (a 401 `model_not_found` from the router) is caught.
|
|
416
|
+
*/
|
|
417
|
+
declare function preflightModels(opts: PreflightModelsOptions): Promise<PreflightOutcome>;
|
|
418
|
+
declare class ModelsUnreachableError extends AgentEvalError {
|
|
419
|
+
readonly results: ReadonlyArray<ModelPreflight>;
|
|
420
|
+
constructor(message: string, results: ReadonlyArray<ModelPreflight>);
|
|
421
|
+
}
|
|
422
|
+
/**
|
|
423
|
+
* Throw `ModelsUnreachableError` naming EVERY model that is unlisted or (when
|
|
424
|
+
* probed) failed its probe — with status + detail per model. A model is dead
|
|
425
|
+
* if it is unlisted, or if `served === false`. Callers gate a campaign on this
|
|
426
|
+
* before spending tokens. When the network call itself fails the underlying
|
|
427
|
+
* outcome error is rethrown — there is no partial silent pass.
|
|
428
|
+
*/
|
|
429
|
+
declare function assertModelsServed(opts: PreflightModelsOptions): Promise<ModelPreflight[]>;
|
|
430
|
+
|
|
358
431
|
/**
|
|
359
432
|
* Single-backend guard: assert the agent and the rubric judge run through the
|
|
360
433
|
* SAME backend config, so the judge can't silently re-route through a
|
|
@@ -3738,6 +3811,124 @@ declare class Mutex {
|
|
|
3738
3811
|
get pending(): number;
|
|
3739
3812
|
}
|
|
3740
3813
|
|
|
3814
|
+
/**
|
|
3815
|
+
* DescriptionLengthGate — a Minimum-Description-Length promotion gate, the
|
|
3816
|
+
* Builder/Breaker acceptance rule from Wang & Buehler, "Self-Revising Discovery
|
|
3817
|
+
* Systems for Science" (arXiv:2606.01444, MIT LAMM), eq. 5:
|
|
3818
|
+
*
|
|
3819
|
+
* L(M, D) = L_model(M) + L_data(D | M)
|
|
3820
|
+
* accept M' over M iff L(M', D∪E) < L(M, D∪E)
|
|
3821
|
+
*
|
|
3822
|
+
* Both candidate and baseline are scored on the SAME enlarged evidence set
|
|
3823
|
+
* (every accumulated task — NOT just the held-out split), and the candidate is
|
|
3824
|
+
* accepted only if it lowers the TOTAL bit cost. This is the gate's whole
|
|
3825
|
+
* point and what distinguishes it from a monotone held-out delta:
|
|
3826
|
+
*
|
|
3827
|
+
* - L_model(M) — the candidate's own description length: the compressed size
|
|
3828
|
+
* of its model text (a prompt, skill, profile, or symbolic model). A bigger
|
|
3829
|
+
* model pays more bits.
|
|
3830
|
+
* - L_data(D|M) — the residual: bits of "surprise" that the model did not
|
|
3831
|
+
* simply succeed, −Σ_i log2(s_i) over the model's per-task score s_i.
|
|
3832
|
+
* Perfect scores cost 0 bits; failure costs a lot (capped, not infinite).
|
|
3833
|
+
*
|
|
3834
|
+
* A candidate that merely memorizes new counterexamples grows L_model faster
|
|
3835
|
+
* than it shrinks L_data and LOSES — a principled, complexity-penalized
|
|
3836
|
+
* alternative to HeldOutGate's held-out paired delta. Use this gate
|
|
3837
|
+
* when the model text whose size you want to penalize is available; use
|
|
3838
|
+
* HeldOutGate when promotion should turn on held-out generalization with an
|
|
3839
|
+
* overfit-gap check instead.
|
|
3840
|
+
*
|
|
3841
|
+
* Scale / calibration: a gzip'd prose model is hundreds–thousands of bits;
|
|
3842
|
+
* a single task contributes at most −log2(scoreFloor) data bits (≈10). So with
|
|
3843
|
+
* little evidence the model term dominates and the gate is conservative about
|
|
3844
|
+
* model GROWTH — it promotes a larger model only once accumulated evidence
|
|
3845
|
+
* genuinely pays for the added bits (exactly the paper's regime, where D∪E
|
|
3846
|
+
* grows). `lambda` is the lever: λ<1 discounts model bits (more permissive),
|
|
3847
|
+
* λ>1 is stricter. A shrinking-or-equal model that does no worse always wins.
|
|
3848
|
+
*
|
|
3849
|
+
* Stateless: construct once with the description-length budget, call
|
|
3850
|
+
* `evaluate` per (candidate, baseline) pair.
|
|
3851
|
+
*/
|
|
3852
|
+
type DescriptionLengthRejectionCode = 'few_tasks' | 'no_total_gain' | 'model_bloat';
|
|
3853
|
+
interface DescriptionLengthConfig {
|
|
3854
|
+
/** Stable label of the baseline. Required — paper-grade evaluation never
|
|
3855
|
+
* compares two unlabelled candidates. */
|
|
3856
|
+
baselineKey: string;
|
|
3857
|
+
/** Weight on model bits relative to data bits (the description-length
|
|
3858
|
+
* budget λ). 1 = bits are bits. >1 = more complexity-averse. Default 1. */
|
|
3859
|
+
lambda?: number;
|
|
3860
|
+
/** The candidate must beat the baseline by at least this many bits to
|
|
3861
|
+
* promote — a robustness margin against measurement noise. Default 0
|
|
3862
|
+
* (strict `<`, as the paper). */
|
|
3863
|
+
marginBits?: number;
|
|
3864
|
+
/** Per-task score floor for the residual code: −log2(max(s, floor)). Caps a
|
|
3865
|
+
* total-failure task's surprise instead of letting it diverge. Default
|
|
3866
|
+
* 2^-10 (a failed task costs 10 bits, not ∞). */
|
|
3867
|
+
scoreFloor?: number;
|
|
3868
|
+
/** Minimum number of shared (candidate, baseline) tasks before the gate will
|
|
3869
|
+
* consider promoting. Default 3. */
|
|
3870
|
+
minTasks?: number;
|
|
3871
|
+
}
|
|
3872
|
+
interface DescriptionLengthEvidence {
|
|
3873
|
+
/** Shared tasks scored on both sides (the enlarged evidence D∪E). */
|
|
3874
|
+
tasks: number;
|
|
3875
|
+
/** Compressed-model bits — L_model. */
|
|
3876
|
+
modelBits: {
|
|
3877
|
+
candidate: number;
|
|
3878
|
+
baseline: number;
|
|
3879
|
+
};
|
|
3880
|
+
/** Residual surprise bits — L_data(D|M). */
|
|
3881
|
+
dataBits: {
|
|
3882
|
+
candidate: number;
|
|
3883
|
+
baseline: number;
|
|
3884
|
+
};
|
|
3885
|
+
/** λ·L_model + L_data — the quantity the gate minimizes. */
|
|
3886
|
+
totalBits: {
|
|
3887
|
+
candidate: number;
|
|
3888
|
+
baseline: number;
|
|
3889
|
+
};
|
|
3890
|
+
/** candidate − baseline total. Negative = candidate compresses better. */
|
|
3891
|
+
deltaBits: number;
|
|
3892
|
+
/** Per-component deltas, for audit: did the win come from a smaller model,
|
|
3893
|
+
* better outcomes, or both? */
|
|
3894
|
+
modelBitsDelta: number;
|
|
3895
|
+
dataBitsDelta: number;
|
|
3896
|
+
}
|
|
3897
|
+
interface DescriptionLengthDecision {
|
|
3898
|
+
promote: boolean;
|
|
3899
|
+
candidateId: string;
|
|
3900
|
+
baselineId: string;
|
|
3901
|
+
evidence: DescriptionLengthEvidence;
|
|
3902
|
+
reason: string;
|
|
3903
|
+
rejectionCode: DescriptionLengthRejectionCode | null;
|
|
3904
|
+
}
|
|
3905
|
+
interface DescriptionLengthCandidate {
|
|
3906
|
+
/** The model text whose size is L_model (a prompt, skill, profile, or
|
|
3907
|
+
* symbolic model; concatenated if several files). */
|
|
3908
|
+
content: string;
|
|
3909
|
+
/** Runs whose per-task scores form L_data. */
|
|
3910
|
+
runs: RunRecord[];
|
|
3911
|
+
}
|
|
3912
|
+
/** Compressed-model bits — the model's description length L_model. gzip is a
|
|
3913
|
+
* deterministic, dependency-free stand-in for Kolmogorov complexity; it
|
|
3914
|
+
* rewards genuine compactness and penalizes boilerplate padding. */
|
|
3915
|
+
declare function modelDescriptionBits(content: string): number;
|
|
3916
|
+
/** Residual surprise L_data(D|M) = −Σ_i log2(max(s_i, floor)) over the given
|
|
3917
|
+
* per-task scores. Lower = the model more reliably succeeds. */
|
|
3918
|
+
declare function dataDescriptionBits(scoreByTask: Map<string, number>, keys: Iterable<string>, scoreFloor: number): number;
|
|
3919
|
+
declare class DescriptionLengthGate {
|
|
3920
|
+
private readonly baselineKey;
|
|
3921
|
+
private readonly lambda;
|
|
3922
|
+
private readonly marginBits;
|
|
3923
|
+
private readonly scoreFloor;
|
|
3924
|
+
private readonly minTasks;
|
|
3925
|
+
constructor(config: DescriptionLengthConfig);
|
|
3926
|
+
/** Decide whether `candidate` should replace `baseline`. Both are scored on
|
|
3927
|
+
* the shared task set (the enlarged evidence); the candidate promotes only
|
|
3928
|
+
* if λ·L_model + L_data is strictly lower by at least `marginBits`. */
|
|
3929
|
+
evaluate(candidate: DescriptionLengthCandidate, baseline: DescriptionLengthCandidate): DescriptionLengthDecision;
|
|
3930
|
+
}
|
|
3931
|
+
|
|
3741
3932
|
/**
|
|
3742
3933
|
* Walk a personas directory and return every file matching the convention
|
|
3743
3934
|
* `NN-slug.{yaml,yml,json,md}`. Sorted by filename so the numeric prefix
|
|
@@ -4610,4 +4801,4 @@ declare namespace index {
|
|
|
4610
4801
|
export { type index_AgentProfile as AgentProfile, type index_AgentProfileSection as AgentProfileSection, index_BASELINE_ROLES as BASELINE_ROLES, type index_BaselineRoleKey as BaselineRoleKey, type index_ProfileSkill as ProfileSkill, index_applyDomainPatch as applyDomainPatch, index_baselineProfile as baselineProfile, index_baselineProfileFromRole as baselineProfileFromRole, index_engineerRole as engineerRole, index_generalistRole as generalistRole, index_prodProfile as prodProfile, index_profileToSurface as profileToSurface, index_renderProfile as renderProfile, index_researcherRole as researcherRole, index_sectionHash as sectionHash };
|
|
4611
4802
|
}
|
|
4612
4803
|
|
|
4613
|
-
export { type ActiveLearningOptions, type AdapterRun, AgentDriver, type AgentDriverConfig, AgentEvalError, AgentProfile$1 as AgentProfile, type AgreementResult, type AlignmentOp, AnalyzeTracesInput, AnalyzeTracesOptions, AnalyzeTracesResult, type AntiSlopConfig, type AntiSlopIssue, type AntiSlopReport, type AssertCrossFamilyOptions, type AssertSingleBackendOptions, type AutoPrClient, AxGepaSteeringOptimizer, type AxSteeringOptimizerConfig, type BackendDescriptor, BaselineReport, BehaviorAssertion, BenchmarkReport, BenchmarkRunner, BenchmarkRunnerConfig, type BisectOptions, type BisectResult, type BisectStep, BudgetBreachError, BudgetGuard, BudgetLedgerEntry, BudgetSpec, type BuildAgreementJudgeOptions, CallExpectation, type CanaryAlert, type CanaryKind, type CanaryLeak, type CanaryOptions, type CanaryReport, type CanarySeverity, type CandidateScenario, type CausalAttributionReport, type CellVerdict, ChatRequest, CheckResult, CollectedArtifacts, type CommandRunner, type CompareLabels, CompletionCriterion, type ContinuityCheck, type ContinuityCheckResult, type ContinuityReport, type ContinuitySnapshotPair, type ContractMetric, type ContractReport, ConvergenceTracker, type CostEntry, type CostSummary, CostTracker, type CounterfactualContext, type CounterfactualMutation, type CounterfactualResult, type CounterfactualRunner, CreateChatClientOpts, type CreateDefaultReviewerOptions, type CreateSandboxPoolOpts, CrossFamilyError, type CrossTraceDiff, type CrossTraceDiffOptions, DEFAULT_AGENT_SLOS, DEFAULT_FINDERS, DEFAULT_MUTATION_PRIMITIVES, DEFAULT_MUTATORS, DEFAULT_PR_REVIEW_SCORE_WEIGHTS, DEFAULT_SEVERITY_WEIGHTS, Dataset, DatasetScenario, type DecideNextUserTurnOpts, type DeployFamily, type DeployGateLayerInput, type DeployRunResult, type DeployRunner, type DiffScorecardOptions, type DirEntry, type DiscoverPersonasOptions, type DiscoveredPersona, DriverResult, DriverState, DualAgentBench, type DualAgentBenchConfig, type DualAgentReport, type DualAgentRound, type DualAgentScenario, type DualAgentScenarioResult, ERROR_COUNT_PATTERNS, type EnsembleAggregate, type ErrorCountPattern, type EvolutionRound, type ExecutorConfig, type Expectation, type ExportedRewardModel, type ExtractOptions, type ExtractResult, type FactorContribution, type FactorialCell, FeedbackLabel, FeedbackTrajectory, FeedbackTrajectoryStore, type FieldAgreementSpec, type FileChange, type FlowAction, type FlowLayerEnv, type FlowLayerFactoryInput, type FlowRunner, type FlowRunnerStepResult, type FlowSpec, type FlowStep, type GhCliClientOptions, type GoldScenario, type GoldSplit, type GoldenSeverity, type GoldenSpec, HarnessConfig, HoldoutAuditor, type HttpGithubClientOptions, type HypothesisManifest, type HypothesisResult, INTENT_MATCH_JUDGE_VERSION, type ImageData, InMemoryWorkspaceInspector, type InferenceScorer, type InspectorContext, type IntentMatchInput, type IntentMatchOptions, type IntentMatchResult, type InteractionContribution, type JudgeFamily, type JudgeFleetOptions, JudgeFn, type JudgeReplayResult, type JudgeRetryOutcome, type JudgeRetryPolicy, JudgeRunner, type JudgeVerdict, type KeywordConceptSpec, type KeywordCoverageFinding, type KeywordCoverageOptions, type KeywordCoverageResult, type LangfuseEnvelope, type LangfuseGeneration, type LangfuseScore, Layer, LayerResult, type LiveProofArtifact, type LiveProofConfig, type LiveProofContext, type LiveProofResult, LlmClientOptions, LlmSpan, LockedJsonlAppender, MODEL_PRICING, type MatchResult, type MatcherResult, type MergeOptions, MetricsCollector, type MuffledFinder, type MuffledFinding, type MultiToolchainLayerConfig, type Mutator, Mutex, type Oracle, type OracleObservation, type OracleReport, type OracleResult, type OrthogonalityInput, type OrthogonalityResult, OtelExportConfig, OtelExporter, type OtelPipelineHandle, type OtelPipelineOptions, PairwiseSteeringOptimizer, type ParaphraseRobustnessScenarioInput, type ParaphraseRobustnessScenarioResult, type ParseStudentLabel, PersonaConfig, type Playbook, type PlaybookEntry, type PoolSlot, type PrReviewAuditCase, type PrReviewBenchmarkSummary, type PrReviewComment, type PrReviewMatchedFinding, type PrReviewOutcome, type PrReviewReferenceFinding, type PrReviewScore, type PrReviewScoreWeights, type PrReviewSeverity, type PrReviewSource, ProductClient, ProductClientConfig, type PromptHandle, PromptRegistry, type ProposeAutomatedPullRequestInput, type ProposeAutomatedPullRequestResult, type RecordRunsOptions, type ReferenceMatchResult, type ReferenceReplayAdapter, type ReferenceReplayAdapterFn, type ReferenceReplayAdapterLike, type ReferenceReplayAggregate, type ReferenceReplayCandidate, type ReferenceReplayCase, type ReferenceReplayCaseRun, type ReferenceReplayExecutionScenario, type ReferenceReplayItem, type ReferenceReplayMatch, type ReferenceReplayMatchStrategy, type ReferenceReplayMatcher, type ReferenceReplayPromotionDecision, type ReferenceReplayPromotionPolicy, type ReferenceReplayRun, type ReferenceReplayRunContext, type ReferenceReplayRunOptions, type ReferenceReplayRunStore, type ReferenceReplayScenario, type ReferenceReplayScenarioScore, type ReferenceReplayScore, type ReferenceReplayScoreOptions, type ReferenceReplaySplit, type ReferenceReplaySplitComparison, type ReferenceReplaySteeringRowsOptions, type ReflectionContext, type ReflectionProposal, ReleaseConfidenceScorecard, ReleaseConfidenceThresholds, type RenderStudentPrompt, type RepoRef, type ReviewerMemoryEntry, type ReviewerOutput, type ReviewerPromptInput, type ReviewerSoftFailDefaults, type ReviewerVerificationSummary, type RobustnessResult, Run, type RunCommandInput, type RunCommandResult, type RunDistillationOptions, type RunDistillationResult, RunFilter, RunRecord, RunScore, RunScoreWeights, SandboxDriver, SandboxHarnessResult, type SandboxJudgeKind, type SandboxJudgeResult, type SandboxJudgeSpec, type SandboxPool, type ScanOptions, Scenario, type ScenarioCost, ScenarioFile, ScenarioRegistry, ScenarioResult, type Scorecard, type ScorecardCell, type ScorecardCellDiff, type ScorecardDiff, type ScorecardEntry, type ScorecardLogLine, type ScoredTarget, type SelfPlayOptions, type SelfPlayProposer, type SelfPlayScorer, type SeriesConvergenceOptions, type SeriesConvergenceResult, Severity, type SignedManifest, type SignedManifestAlgo, type SingleBackendDivergence, SingleBackendError, type SingleBackendField, type SingleBackendReport, type Slo, type SloCheckResult, type SloComparator, type SloReport, type SloSeverity, type SlopCategory, type SlotFactory, type SplitGoldOptions, SteeringBundle, type SteeringOptimizationResult, type SteeringOptimizationRow, type SteeringOptimizationSelector, type SteeringOptimizerBackend, type SteeringOptimizerConfig, type StepAttribution, type SynthesisReason, type SynthesisTarget, TestResult, type ThresholdContract, TokenCounter, type TokenSpec, TraceEmitter, TraceStore, type TracedAnalystOptions, type TracedJudgeOptions, Trajectory, TrajectoryStep, type TrialTrace, TurnMetrics, UI_FINDING_SEVERITIES, UI_LENSES, UNIVERSAL_FINDERS, type UiFinding, type UiFindingScreenshot, type UiFindingSeverity, type UiLens, VerifyContext, type VisualDiffOptions, type VisualDiffResult, type ViteDeployRunnerInput, type WorkspaceAssertion, type WorkspaceAssertionResult, type WorkspaceInspector, type WorkspaceSnapshot, type WranglerDeployRunnerInput, adversarialJudge, aggregateJudgeVerdicts, aggregatePrReviewScore, analyzeAntiSlop, analyzeSeries, appendScorecard, assertCrossFamily, assertSingleBackend, attributeCounterfactuals, bisect, buildAgreementJudge, buildDriverSystemPrompt, buildReflectionPrompt, buildReviewerPrompt, canaryLeakView, canonicalize, causalAttribution, checkBehavioralCanary, checkCanaries, checkSlos, codeExecutionJudge, coherenceJudge, collectionPreserved, commentsForSource, commitBisect, compareReferenceReplay, compilerJudge, createAntiSlopJudge, createCustomJudge, createDefaultReviewer, createDomainExpertJudge, createIntentMatchJudge, createSandboxPool, crossTraceDiff, decideNextUserTurn, decideReferenceReplayPromotion, decideReferenceReplayRunPromotion, defaultJudges, defaultParseStudentLabel, defaultReferenceReplayMatcher, defaultRenderStudentPrompt, deployGateLayer, diffScorecard, discoverPersonas, distillPlaybook, estimateCost, estimateTokens, evaluateContract, evaluateHypothesis, evaluateOracles, executeScenario, expectAgent, exportRewardModel, extractAssetUrls, extractErrorCount, fieldAgreement, fileContains, fileExists, findAutoMatchNoExpectation, findConstructorCwdDropped, findFallbackToPass, findLiteralTruePass, findSkipCountsAsPass, flowLayer, formatBenchmarkReport, formatDriverReport, formatFindings, formatScorecardDiff, ghCliClient, precision as goldenPrecision, hashContent, hashJson, htmlContainsElement, httpGithubClient, inMemoryReferenceReplayStore, isModelPriced, isOtelConfigured, jsonShape, jsonlReferenceReplayStore, judgeFamily, keyPreserved, linterJudge, loadGoldScenarios, loadScorecard, loadScorerFromGrader, localCommandRunner, lowercaseMutator, matchGoldens, mergeLayerResults, multiToolchainLayer, notBlocked, paraphraseRobustness, paraphraseRobustnessScenarios, parseGoldJsonl, parseReflectionResponse, passOrthogonality, pixelDeltaRatio, politenessPrefixMutator, printDriverSummary, index as profile, promptBisect, proposeAutomatedPullRequest, proposeSynthesisTargets, recordRuns, recordRunsToScorecard, referenceReplayRunsToSteeringRows, referenceReplayScenarioToRunScore, regexMatches, renderMarkdownReport, renderPlaybookMarkdown, replayScorerOverCorpus, replayTraceThroughJudge, resetLockedAppendersForTesting, resolveModelPricing, rowCount, rowWhere, runAssertions, runBehavioralCanaries, runCanaries, runCounterfactual, runDistillation, runE2EWorkflow, runExpectations, runIntentMatchJudge, runJudgeFleet, runKeywordCoverageJudge, runKeywordCoverageJudgeUrl, runLiveProof, runReferenceReplay, runSelfPlay, scanForMuffledGates, scoreContinuity, scorePrReviewComments, scorePrReviewSource, scoreReferenceReplay, securityJudge, sentenceReorderMutator, signManifest, splitGold, statusAdvanced, summarizePrReviewBenchmark, testJudge, textInSnapshot, toLangfuseEnvelope, toPrometheusText, traceJudge, traceJudgeEnsemble, tracedAnalyzeTraces, typoMutator, urlContains, verifyManifest, visualDiff, viteDeployRunner, weightedRecall, whitespaceCollapseMutator, withJudgeRetry, withOtelPipeline, wranglerDeployRunner };
|
|
4804
|
+
export { type ActiveLearningOptions, type AdapterRun, AgentDriver, type AgentDriverConfig, AgentEvalError, AgentProfile$1 as AgentProfile, type AgreementResult, type AlignmentOp, AnalyzeTracesInput, AnalyzeTracesOptions, AnalyzeTracesResult, type AntiSlopConfig, type AntiSlopIssue, type AntiSlopReport, type AssertCrossFamilyOptions, type AssertSingleBackendOptions, type AutoPrClient, AxGepaSteeringOptimizer, type AxSteeringOptimizerConfig, type BackendDescriptor, BaselineReport, BehaviorAssertion, BenchmarkReport, BenchmarkRunner, BenchmarkRunnerConfig, type BisectOptions, type BisectResult, type BisectStep, BudgetBreachError, BudgetGuard, BudgetLedgerEntry, BudgetSpec, type BuildAgreementJudgeOptions, CallExpectation, type CanaryAlert, type CanaryKind, type CanaryLeak, type CanaryOptions, type CanaryReport, type CanarySeverity, type CandidateScenario, type CausalAttributionReport, type CellVerdict, ChatRequest, CheckResult, CollectedArtifacts, type CommandRunner, type CompareLabels, CompletionCriterion, type ContinuityCheck, type ContinuityCheckResult, type ContinuityReport, type ContinuitySnapshotPair, type ContractMetric, type ContractReport, ConvergenceTracker, type CostEntry, type CostSummary, CostTracker, type CounterfactualContext, type CounterfactualMutation, type CounterfactualResult, type CounterfactualRunner, CreateChatClientOpts, type CreateDefaultReviewerOptions, type CreateSandboxPoolOpts, CrossFamilyError, type CrossTraceDiff, type CrossTraceDiffOptions, DEFAULT_AGENT_SLOS, DEFAULT_FINDERS, DEFAULT_MUTATION_PRIMITIVES, DEFAULT_MUTATORS, DEFAULT_PR_REVIEW_SCORE_WEIGHTS, DEFAULT_SEVERITY_WEIGHTS, Dataset, DatasetScenario, type DecideNextUserTurnOpts, type DeployFamily, type DeployGateLayerInput, type DeployRunResult, type DeployRunner, type DescriptionLengthCandidate, type DescriptionLengthConfig, type DescriptionLengthDecision, type DescriptionLengthEvidence, DescriptionLengthGate, type DescriptionLengthRejectionCode, type DiffScorecardOptions, type DirEntry, type DiscoverPersonasOptions, type DiscoveredPersona, DriverResult, DriverState, DualAgentBench, type DualAgentBenchConfig, type DualAgentReport, type DualAgentRound, type DualAgentScenario, type DualAgentScenarioResult, ERROR_COUNT_PATTERNS, type EnsembleAggregate, type ErrorCountPattern, type EvolutionRound, type ExecutorConfig, type Expectation, type ExportedRewardModel, type ExtractOptions, type ExtractResult, type FactorContribution, type FactorialCell, FeedbackLabel, FeedbackTrajectory, FeedbackTrajectoryStore, type FieldAgreementSpec, type FileChange, type FlowAction, type FlowLayerEnv, type FlowLayerFactoryInput, type FlowRunner, type FlowRunnerStepResult, type FlowSpec, type FlowStep, type GhCliClientOptions, type GoldScenario, type GoldSplit, type GoldenSeverity, type GoldenSpec, HarnessConfig, HoldoutAuditor, type HttpGithubClientOptions, type HypothesisManifest, type HypothesisResult, INTENT_MATCH_JUDGE_VERSION, type ImageData, InMemoryWorkspaceInspector, type InferenceScorer, type InspectorContext, type IntentMatchInput, type IntentMatchOptions, type IntentMatchResult, type InteractionContribution, type JudgeFamily, type JudgeFleetOptions, JudgeFn, type JudgeReplayResult, type JudgeRetryOutcome, type JudgeRetryPolicy, JudgeRunner, type JudgeVerdict, type KeywordConceptSpec, type KeywordCoverageFinding, type KeywordCoverageOptions, type KeywordCoverageResult, type LangfuseEnvelope, type LangfuseGeneration, type LangfuseScore, Layer, LayerResult, type LiveProofArtifact, type LiveProofConfig, type LiveProofContext, type LiveProofResult, LlmClientOptions, LlmSpan, LockedJsonlAppender, MODEL_PRICING, type MatchResult, type MatcherResult, type MergeOptions, MetricsCollector, type ModelPreflight, ModelsUnreachableError, type MuffledFinder, type MuffledFinding, type MultiToolchainLayerConfig, type Mutator, Mutex, type Oracle, type OracleObservation, type OracleReport, type OracleResult, type OrthogonalityInput, type OrthogonalityResult, OtelExportConfig, OtelExporter, type OtelPipelineHandle, type OtelPipelineOptions, PairwiseSteeringOptimizer, type ParaphraseRobustnessScenarioInput, type ParaphraseRobustnessScenarioResult, type ParseStudentLabel, PersonaConfig, type Playbook, type PlaybookEntry, type PoolSlot, type PrReviewAuditCase, type PrReviewBenchmarkSummary, type PrReviewComment, type PrReviewMatchedFinding, type PrReviewOutcome, type PrReviewReferenceFinding, type PrReviewScore, type PrReviewScoreWeights, type PrReviewSeverity, type PrReviewSource, type PreflightModelsOptions, type PreflightOutcome, ProductClient, ProductClientConfig, type PromptHandle, PromptRegistry, type ProposeAutomatedPullRequestInput, type ProposeAutomatedPullRequestResult, type RecordRunsOptions, type ReferenceMatchResult, type ReferenceReplayAdapter, type ReferenceReplayAdapterFn, type ReferenceReplayAdapterLike, type ReferenceReplayAggregate, type ReferenceReplayCandidate, type ReferenceReplayCase, type ReferenceReplayCaseRun, type ReferenceReplayExecutionScenario, type ReferenceReplayItem, type ReferenceReplayMatch, type ReferenceReplayMatchStrategy, type ReferenceReplayMatcher, type ReferenceReplayPromotionDecision, type ReferenceReplayPromotionPolicy, type ReferenceReplayRun, type ReferenceReplayRunContext, type ReferenceReplayRunOptions, type ReferenceReplayRunStore, type ReferenceReplayScenario, type ReferenceReplayScenarioScore, type ReferenceReplayScore, type ReferenceReplayScoreOptions, type ReferenceReplaySplit, type ReferenceReplaySplitComparison, type ReferenceReplaySteeringRowsOptions, type ReflectionContext, type ReflectionProposal, ReleaseConfidenceScorecard, ReleaseConfidenceThresholds, type RenderStudentPrompt, type RepoRef, type ReviewerMemoryEntry, type ReviewerOutput, type ReviewerPromptInput, type ReviewerSoftFailDefaults, type ReviewerVerificationSummary, type RobustnessResult, Run, type RunCommandInput, type RunCommandResult, type RunDistillationOptions, type RunDistillationResult, RunFilter, RunRecord, RunScore, RunScoreWeights, SandboxDriver, SandboxHarnessResult, type SandboxJudgeKind, type SandboxJudgeResult, type SandboxJudgeSpec, type SandboxPool, type ScanOptions, Scenario, type ScenarioCost, ScenarioFile, ScenarioRegistry, ScenarioResult, type Scorecard, type ScorecardCell, type ScorecardCellDiff, type ScorecardDiff, type ScorecardEntry, type ScorecardLogLine, type ScoredTarget, type SelfPlayOptions, type SelfPlayProposer, type SelfPlayScorer, type SeriesConvergenceOptions, type SeriesConvergenceResult, Severity, type SignedManifest, type SignedManifestAlgo, type SingleBackendDivergence, SingleBackendError, type SingleBackendField, type SingleBackendReport, type Slo, type SloCheckResult, type SloComparator, type SloReport, type SloSeverity, type SlopCategory, type SlotFactory, type SplitGoldOptions, SteeringBundle, type SteeringOptimizationResult, type SteeringOptimizationRow, type SteeringOptimizationSelector, type SteeringOptimizerBackend, type SteeringOptimizerConfig, type StepAttribution, type SynthesisReason, type SynthesisTarget, TestResult, type ThresholdContract, TokenCounter, type TokenSpec, TraceEmitter, TraceStore, type TracedAnalystOptions, type TracedJudgeOptions, Trajectory, TrajectoryStep, type TrialTrace, TurnMetrics, UI_FINDING_SEVERITIES, UI_LENSES, UNIVERSAL_FINDERS, type UiFinding, type UiFindingScreenshot, type UiFindingSeverity, type UiLens, VerifyContext, type VisualDiffOptions, type VisualDiffResult, type ViteDeployRunnerInput, type WorkspaceAssertion, type WorkspaceAssertionResult, type WorkspaceInspector, type WorkspaceSnapshot, type WranglerDeployRunnerInput, adversarialJudge, aggregateJudgeVerdicts, aggregatePrReviewScore, analyzeAntiSlop, analyzeSeries, appendScorecard, assertCrossFamily, assertModelsServed, assertSingleBackend, attributeCounterfactuals, bisect, buildAgreementJudge, buildDriverSystemPrompt, buildReflectionPrompt, buildReviewerPrompt, canaryLeakView, canonicalize, causalAttribution, checkBehavioralCanary, checkCanaries, checkSlos, codeExecutionJudge, coherenceJudge, collectionPreserved, commentsForSource, commitBisect, compareReferenceReplay, compilerJudge, createAntiSlopJudge, createCustomJudge, createDefaultReviewer, createDomainExpertJudge, createIntentMatchJudge, createSandboxPool, crossTraceDiff, dataDescriptionBits, decideNextUserTurn, decideReferenceReplayPromotion, decideReferenceReplayRunPromotion, defaultJudges, defaultParseStudentLabel, defaultReferenceReplayMatcher, defaultRenderStudentPrompt, deployGateLayer, diffScorecard, discoverPersonas, distillPlaybook, estimateCost, estimateTokens, evaluateContract, evaluateHypothesis, evaluateOracles, executeScenario, expectAgent, exportRewardModel, extractAssetUrls, extractErrorCount, fieldAgreement, fileContains, fileExists, findAutoMatchNoExpectation, findConstructorCwdDropped, findFallbackToPass, findLiteralTruePass, findSkipCountsAsPass, flowLayer, formatBenchmarkReport, formatDriverReport, formatFindings, formatScorecardDiff, ghCliClient, precision as goldenPrecision, hashContent, hashJson, htmlContainsElement, httpGithubClient, inMemoryReferenceReplayStore, isModelPriced, isOtelConfigured, jsonShape, jsonlReferenceReplayStore, judgeFamily, keyPreserved, linterJudge, loadGoldScenarios, loadScorecard, loadScorerFromGrader, localCommandRunner, lowercaseMutator, matchGoldens, mergeLayerResults, modelDescriptionBits, multiToolchainLayer, notBlocked, paraphraseRobustness, paraphraseRobustnessScenarios, parseGoldJsonl, parseReflectionResponse, passOrthogonality, pixelDeltaRatio, politenessPrefixMutator, preflightModels, printDriverSummary, index as profile, promptBisect, proposeAutomatedPullRequest, proposeSynthesisTargets, recordRuns, recordRunsToScorecard, referenceReplayRunsToSteeringRows, referenceReplayScenarioToRunScore, regexMatches, renderMarkdownReport, renderPlaybookMarkdown, replayScorerOverCorpus, replayTraceThroughJudge, resetLockedAppendersForTesting, resolveModelPricing, rowCount, rowWhere, runAssertions, runBehavioralCanaries, runCanaries, runCounterfactual, runDistillation, runE2EWorkflow, runExpectations, runIntentMatchJudge, runJudgeFleet, runKeywordCoverageJudge, runKeywordCoverageJudgeUrl, runLiveProof, runReferenceReplay, runSelfPlay, scanForMuffledGates, scoreContinuity, scorePrReviewComments, scorePrReviewSource, scoreReferenceReplay, securityJudge, sentenceReorderMutator, signManifest, splitGold, statusAdvanced, summarizePrReviewBenchmark, testJudge, textInSnapshot, toLangfuseEnvelope, toPrometheusText, traceJudge, traceJudgeEnsemble, tracedAnalyzeTraces, typoMutator, urlContains, verifyManifest, visualDiff, viteDeployRunner, weightedRecall, whitespaceCollapseMutator, withJudgeRetry, withOtelPipeline, wranglerDeployRunner };
|