@tangle-network/agent-eval 0.85.0 → 0.86.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/CHANGELOG.md +14 -0
- package/dist/{chunk-XQL22JDG.js → chunk-P2J6SOXT.js} +97 -5
- package/dist/chunk-P2J6SOXT.js.map +1 -0
- package/dist/index.d.ts +471 -4
- package/dist/index.js +662 -49
- package/dist/index.js.map +1 -1
- package/dist/openapi.json +1 -1
- package/dist/traces.d.ts +55 -1
- package/dist/traces.js +7 -1
- package/package.json +26 -13
- package/dist/chunk-XQL22JDG.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { A as ActionExecutionPolicy, a as ActionPolicyDecision, C as ControlRunToRunRecordOptions, L as LlmJsonCall, b as LlmReviewerConfig, P as ProposeFn, c as ProposeInput, d as ProposeOutput, e as ProposeReviewConfig, f as ProposeReviewControlAction, g as ProposeReviewControlConfig, h as ProposeReviewControlResult, i as ProposeReviewControlState, j as ProposeReviewReport, k as ProposeReviewShot, R as Review, l as ReviewFn, m as ReviewInput, n as ReviewMemoryEntry, o as ReviewMemoryStore, p as RunEvidenceMetadata, V as Verification, q as VerifyFn, r as controlFailureClassFromVerification, s as controlRunToRunRecord, t as createLlmReviewer, u as evaluateActionPolicy, v as inMemoryReviewStore, w as jsonlReviewStore, x as runProposeReview, y as runProposeReviewAsControlLoop, z as scoreFromEvals } from './control-GeE8OhpN.js';
|
|
2
|
-
import { R as RunRecord } from './run-record-De9VarXR.js';
|
|
3
|
-
export { e as AGENT_PROFILE_KINDS, A as AgentProfileCell, d as AgentProfileCellInput, f as AgentProfileCellSchemaVersion, g as AgentProfileCellValidationError, h as AgentProfileDimensionValue, i as AgentProfileHarness, j as AgentProfileJson, k as AgentProfileKind, l as AgentProfileSource, m as AgentProfileSourceInput, J as JudgeScoresRecord, c as RunJudgeMetadata, n as RunOutcome, o as RunRecordValidationError,
|
|
2
|
+
import { R as RunRecord, a as RunSplitTag } from './run-record-De9VarXR.js';
|
|
3
|
+
export { e as AGENT_PROFILE_KINDS, A as AgentProfileCell, d as AgentProfileCellInput, f as AgentProfileCellSchemaVersion, g as AgentProfileCellValidationError, h as AgentProfileDimensionValue, i as AgentProfileHarness, j as AgentProfileJson, k as AgentProfileKind, l as AgentProfileSource, m as AgentProfileSourceInput, J as JudgeScoresRecord, c as RunJudgeMetadata, n as RunOutcome, o as RunRecordValidationError, b as RunTokenUsage, S as SandboxAgentProfileLike, p as agentProfileCellHashMaterial, q as agentProfileCellKey, r as assertRunAgentProfileCell, s as buildAgentProfileCell, t as buildSandboxAgentProfileCell, u as groupRunsByAgentProfileCell, v as isRunRecord, w as parseRunRecordSafe, x as requireAgentProfileCell, y as roundTripRunRecord, z as toAgentProfileJson, B as validateAgentProfileCell, C as validateRunRecord, D as verifyAgentProfileCell } from './run-record-De9VarXR.js';
|
|
4
4
|
export { B as BehavioralMetrics, z as ConceptComplexity, A as ConceptFinding, E as ConceptSpec, G as ConceptWeightStrategy, C as CreateAnalystAiConfig, H as DEFAULT_COMPLEXITY_WEIGHTS, D as DEFAULT_TRACE_ANALYST_KINDS, b as DefaultAnalystRegistryOptions, c as DiffPolicy, F as FAILURE_MODE_KIND_SPEC, f as FindingSubject, g as FindingSubjectKind, i as FindingsDiff, j as FindingsStore, I as IMPROVEMENT_KIND_SPEC, k as KNOWLEDGE_GAP_KIND_SPEC, l as KNOWLEDGE_POISONING_KIND_SPEC, P as PersistedFinding, J as SEMANTIC_CONCEPT_JUDGE_VERSION, m as SKILL_USAGE_ANALYST, a as SemanticConceptJudgeInput, S as SemanticConceptJudgeOptions, L as SemanticConceptJudgeResult, n as SkillUsageAnalyst, M as SuboptimalCode, N as SuboptimalSignal, r as buildDefaultAnalystRegistry, O as computeTraceMetrics, t as createAnalystAi, Q as createSemanticConceptJudge, u as defaultIsMaterial, v as diffFindings, R as runSemanticConceptJudge } from './semantic-concept-judge-DIEgr_6v.js';
|
|
5
5
|
import { l as ChatRequest, p as CreateChatClientOpts } from './types-Cu3u_x59.js';
|
|
6
6
|
export { A as Analyst, a as AnalystContext, g as AnalystCost, c as AnalystFinding, i as AnalystInputKind, j as AnalystRequirements, f as AnalystRunEvent, e as AnalystRunInputs, d as AnalystRunResult, b as AnalystRunSummary, h as AnalystSeverity, k as ChatCallOpts, C as ChatClient, m as ChatResponse, n as ChatTransport, o as CliBridgeTransportOpts, D as DirectProviderTransportOpts, E as EvidenceRef, M as MockTransportOpts, R as RouterTransportOpts, S as SandboxSdkTransportOpts, q as computeFindingId, r as createChatClient, s as makeFinding } from './types-Cu3u_x59.js';
|
|
@@ -23,7 +23,7 @@ export { C as CliffsMagnitude, c as CorpusAgreementOptions, d as CorpusAgreement
|
|
|
23
23
|
import { a as AnalyzeTracesInput, A as AnalyzeTracesOptions, b as AnalyzeTracesResult } from './analyst-C8HHvfJp.js';
|
|
24
24
|
export { c as AnalyzeTracesTurnSnapshot, d as analyzeTraces } from './analyst-C8HHvfJp.js';
|
|
25
25
|
import { OtelExporter, OtelExportConfig } from './traces.js';
|
|
26
|
-
export { CaptureFetchContext, CaptureFetchOptions, ExportableSpan, FlattenOtlpOptions, OTEL_AGENT_EVAL_SCOPE, OtlpExport, OtlpFileTraceStore, OtlpFileTraceStoreOptions, OtlpFlatLine, OtlpResourceSpans, OtlpSpan, OtlpToRunRecordsOptions, OtlpTraceRunRecord, ProjectedOtlpSpan, ReplayCache, ReplayCacheEntry, ReplayCacheMissError, ReplayCacheStats, ReplayFetchOptions, SpanNotFoundError, TRACE_ANALYST_ACTOR_DESCRIPTION, TRACE_ANALYST_ACTOR_DESCRIPTION_VERSION, TRACE_ANALYST_SUBAGENT_DESCRIPTION, TraceAggregate, TraceAnalystHookOptions, TraceFileMissingError, TraceInsightContext, TraceInsightFinding, TraceInsightPanelRole, TraceInsightPromptInput, TraceInsightQualityGate, TraceInsightQuestion, TraceInsightReadiness, TraceInsightSuite, TraceInsightTask, TraceNotFoundError, TraceStoreSource, TraceStoreToOtlpOptions, TracesToOtlpResult, asNumber, asString, buildTraceAnalystTools, buildTraceInsightContext, buildTraceInsightPrompt, captureFetchToRawSink, convertTraceStoresToOtlp, createOtelExporter, createOtelTracingStore, createReplayFetch, defaultTraceInsightPanel, describeTraceInsightScope, domainEvidencePattern, exportRunAsOtlp, extractOtlpAttributes, firstNumberAttr, firstStringAttr, flattenOtlpExportToNdjson, inferDomainKeywords, inferOtlpKind, iterateRawCalls, otelRunCompleteHook, otlpToRunRecords, otlpToTraceRunRecords, planTraceInsightQuestions, projectOtlpFlatLine, readOtlpStatus, scoreTraceInsightReadiness, stringField, tokenizeDomainWords, traceAnalystFunctionGroup, traceAnalystOnRunComplete } from './traces.js';
|
|
26
|
+
export { CaptureFetchContext, CaptureFetchOptions, ExportableSpan, ExtractedUsage, FlattenOtlpOptions, OTEL_AGENT_EVAL_SCOPE, OtlpExport, OtlpFileTraceStore, OtlpFileTraceStoreOptions, OtlpFlatLine, OtlpResourceSpans, OtlpSpan, OtlpToRunRecordsOptions, OtlpTraceRunRecord, ProjectedOtlpSpan, ReplayCache, ReplayCacheEntry, ReplayCacheMissError, ReplayCacheStats, ReplayFetchOptions, SpanNotFoundError, TRACE_ANALYST_ACTOR_DESCRIPTION, TRACE_ANALYST_ACTOR_DESCRIPTION_VERSION, TRACE_ANALYST_SUBAGENT_DESCRIPTION, TraceAggregate, TraceAnalystHookOptions, TraceFileMissingError, TraceInsightContext, TraceInsightFinding, TraceInsightPanelRole, TraceInsightPromptInput, TraceInsightQualityGate, TraceInsightQuestion, TraceInsightReadiness, TraceInsightSuite, TraceInsightTask, TraceNotFoundError, TraceStoreSource, TraceStoreToOtlpOptions, TracesToOtlpResult, asNumber, asString, buildTraceAnalystTools, buildTraceInsightContext, buildTraceInsightPrompt, captureFetchToRawSink, convertTraceStoresToOtlp, createOtelExporter, createOtelTracingStore, createReplayFetch, defaultTraceInsightPanel, describeTraceInsightScope, domainEvidencePattern, exportRunAsOtlp, extractOtlpAttributes, extractUsage, extractUsageFromResponse, extractUsageFromSse, firstNumberAttr, firstStringAttr, flattenOtlpExportToNdjson, inferDomainKeywords, inferOtlpKind, iterateRawCalls, otelRunCompleteHook, otlpToRunRecords, otlpToTraceRunRecords, planTraceInsightQuestions, projectOtlpFlatLine, readOtlpStatus, scoreTraceInsightReadiness, stringField, tokenizeDomainWords, traceAnalystFunctionGroup, traceAnalystOnRunComplete } from './traces.js';
|
|
27
27
|
export { D as DEFAULT_TRACE_ANALYST_BUDGETS, b as DatasetOverview, E as ErrorCluster, Q as QueryTracesPage, S as SearchSpanResult, c as SearchTraceResult, d as SpanMatchRecord, e as TRACE_ANALYST_TRUNCATION_MARKER_PREFIX, T as TraceAnalysisStore, f as TraceAnalystByteBudgets, g as TraceAnalystFilters, a as TraceAnalystSpan, h as TraceAnalystSpanKind, i as TraceAnalystSpanStatus, j as TraceAnalystTraceSummary, V as ViewSpansResult, k as ViewTraceOversized, l as ViewTraceResult } from './store-C1YxJDEK.js';
|
|
28
28
|
import { S as SteeringBundle } from './harness-optimizer-EnEnQPsr.js';
|
|
29
29
|
export { D as DEFAULT_HARNESS_OBJECTIVES, H as HarnessAdapter, a as HarnessExperimentConfig, b as HarnessExperimentResult, c as HarnessIntervention, d as HarnessRunRequest, e as HarnessRunResult, f as HarnessScenario, g as HarnessSelection, h as HarnessVariant, i as HarnessVariantReport, M as MeasurementPolicy, j as SteeringDelta, k as SteeringRolePrompt, W as WorkflowTopology, m as mergeSteeringBundle, r as renderSteeringText, l as runHarnessExperiment, s as selectHarnessVariant, n as summarizeHarnessResults } from './harness-optimizer-EnEnQPsr.js';
|
|
@@ -1275,6 +1275,118 @@ declare class BudgetGuard {
|
|
|
1275
1275
|
get state(): Record<keyof BudgetSpec, number>;
|
|
1276
1276
|
}
|
|
1277
1277
|
|
|
1278
|
+
/**
|
|
1279
|
+
* CostLedger — per-run token + USD accounting with an explicit `costUnknown`
|
|
1280
|
+
* axis, folded over the substrate's pricing resolver.
|
|
1281
|
+
*
|
|
1282
|
+
* `estimateCost` already resolves a model id to a price (exact table, then
|
|
1283
|
+
* family regex) and warns-once on a miss, but it returns 0 for an unpriced
|
|
1284
|
+
* model — indistinguishable downstream from a genuinely free run. Four
|
|
1285
|
+
* consumers re-wrap it to surface that distinction (physim's `costForUsage` /
|
|
1286
|
+
* `modelPriceKey` is the cleanest), and to bucket spend by "channel" (the
|
|
1287
|
+
* logical role of the call: agent / judge / verifier / …) so a dashboard can
|
|
1288
|
+
* answer "how much did judging cost vs the agent itself?".
|
|
1289
|
+
*
|
|
1290
|
+
* This is the canonical version. `modelPriceKey` exposes the resolver's verdict
|
|
1291
|
+
* as a stable key (or null). `CostLedger` folds usage records into per-channel
|
|
1292
|
+
* and total rollups, tracks `unpricedModels` so a $0 is never mistaken for a
|
|
1293
|
+
* measured zero, and computes cost-per-completed-task.
|
|
1294
|
+
*/
|
|
1295
|
+
/** Logical role of an LLM call. Free-form union — consumers add their own
|
|
1296
|
+
* channels; the rollup keys on whatever string is supplied. */
|
|
1297
|
+
type CostChannel = 'agent' | 'judge' | 'verifier' | 'analyst' | 'driver' | (string & {});
|
|
1298
|
+
interface CostUsage {
|
|
1299
|
+
inputTokens: number;
|
|
1300
|
+
outputTokens: number;
|
|
1301
|
+
cachedTokens?: number;
|
|
1302
|
+
}
|
|
1303
|
+
/**
|
|
1304
|
+
* Resolve a model id to the stable pricing key the substrate's `MODEL_PRICING`
|
|
1305
|
+
* / family resolver would use, or null when the id is unpriced. A non-null
|
|
1306
|
+
* return means `estimateCost` will produce a real number for this id; null
|
|
1307
|
+
* means any cost computed is `costUnknown` and the 0 must not aggregate as a
|
|
1308
|
+
* measured cost.
|
|
1309
|
+
*/
|
|
1310
|
+
declare function modelPriceKey(model: string): string | null;
|
|
1311
|
+
interface CostResult {
|
|
1312
|
+
costUsd: number;
|
|
1313
|
+
/** True when `model` has no pricing — the 0 is "not priced", NOT "free". */
|
|
1314
|
+
costUnknown: boolean;
|
|
1315
|
+
}
|
|
1316
|
+
/**
|
|
1317
|
+
* Cost for one usage record. Resolves pricing via the substrate resolver and
|
|
1318
|
+
* flags `costUnknown` when the model is unpriced so the 0 is observable rather
|
|
1319
|
+
* than silently emitted as a measured cost. Cached tokens are billed at the
|
|
1320
|
+
* model's input rate when present (no separate cache-discount table — callers
|
|
1321
|
+
* that need provider-specific cache pricing supply `actualCostUsd` upstream).
|
|
1322
|
+
*/
|
|
1323
|
+
declare function costForUsage(model: string, usage: CostUsage): CostResult;
|
|
1324
|
+
interface CostLedgerEntry extends CostUsage {
|
|
1325
|
+
model: string;
|
|
1326
|
+
channel: CostChannel;
|
|
1327
|
+
costUsd: number;
|
|
1328
|
+
costUnknown: boolean;
|
|
1329
|
+
/** Override the estimate with an observed provider cost. */
|
|
1330
|
+
actualCostUsd?: number;
|
|
1331
|
+
/** Free-form tags (scenario id, variant id, round, …). */
|
|
1332
|
+
tags?: Record<string, string>;
|
|
1333
|
+
timestamp: number;
|
|
1334
|
+
}
|
|
1335
|
+
interface ChannelRollup {
|
|
1336
|
+
channel: CostChannel;
|
|
1337
|
+
calls: number;
|
|
1338
|
+
inputTokens: number;
|
|
1339
|
+
outputTokens: number;
|
|
1340
|
+
cachedTokens: number;
|
|
1341
|
+
costUsd: number;
|
|
1342
|
+
/** Calls whose model was unpriced (their costUsd is 0-but-unknown). */
|
|
1343
|
+
unpricedCalls: number;
|
|
1344
|
+
}
|
|
1345
|
+
interface CostLedgerSummary {
|
|
1346
|
+
totalCalls: number;
|
|
1347
|
+
inputTokens: number;
|
|
1348
|
+
outputTokens: number;
|
|
1349
|
+
cachedTokens: number;
|
|
1350
|
+
totalCostUsd: number;
|
|
1351
|
+
/** Per-channel breakdown, sorted by channel name. */
|
|
1352
|
+
byChannel: ChannelRollup[];
|
|
1353
|
+
/** Distinct unpriced model ids seen — non-empty means totalCostUsd is a
|
|
1354
|
+
* lower bound (some calls priced to an unknown 0). */
|
|
1355
|
+
unpricedModels: string[];
|
|
1356
|
+
/** True when no unpriced model was charged — totalCostUsd is then exact. */
|
|
1357
|
+
fullyPriced: boolean;
|
|
1358
|
+
}
|
|
1359
|
+
/**
|
|
1360
|
+
* Append-only ledger of LLM spend for a single run. Record each call with its
|
|
1361
|
+
* channel; read per-channel and total rollups plus the unpriced-model set.
|
|
1362
|
+
* Pure accounting — no I/O. The `markCompleted` / `costPerCompletedTask` pair
|
|
1363
|
+
* answers "dollars per finished task", the metric every optimizer's
|
|
1364
|
+
* quality-vs-cost tradeoff needs.
|
|
1365
|
+
*/
|
|
1366
|
+
declare class CostLedger {
|
|
1367
|
+
private readonly entries;
|
|
1368
|
+
private completedTasks;
|
|
1369
|
+
/**
|
|
1370
|
+
* Record one LLM call. The cost is computed from pricing unless
|
|
1371
|
+
* `actualCostUsd` is supplied (a finite observed cost from the provider
|
|
1372
|
+
* response), in which case `costUnknown` is false regardless of pricing.
|
|
1373
|
+
*/
|
|
1374
|
+
record(input: {
|
|
1375
|
+
model: string;
|
|
1376
|
+
channel: CostChannel;
|
|
1377
|
+
usage: CostUsage;
|
|
1378
|
+
actualCostUsd?: number;
|
|
1379
|
+
tags?: Record<string, string>;
|
|
1380
|
+
timestamp?: number;
|
|
1381
|
+
}): CostLedgerEntry;
|
|
1382
|
+
/** Increment the completed-task counter (used for cost-per-completed-task). */
|
|
1383
|
+
markCompleted(count?: number): void;
|
|
1384
|
+
list(): CostLedgerEntry[];
|
|
1385
|
+
summary(): CostLedgerSummary;
|
|
1386
|
+
/** Total spend divided by completed tasks; null when nothing completed. */
|
|
1387
|
+
costPerCompletedTask(): number | null;
|
|
1388
|
+
}
|
|
1389
|
+
|
|
1278
1390
|
/**
|
|
1279
1391
|
* Cost tracker — token + USD accounting per scenario and per run.
|
|
1280
1392
|
*
|
|
@@ -1351,6 +1463,291 @@ interface CostSummary {
|
|
|
1351
1463
|
costPerCompletedTaskUsd: number | null;
|
|
1352
1464
|
}
|
|
1353
1465
|
|
|
1466
|
+
/**
|
|
1467
|
+
* EvalTraceStore — JSONL save / query / compare over the analysis-time
|
|
1468
|
+
* `RunRecord` row.
|
|
1469
|
+
*
|
|
1470
|
+
* `FileSystemTraceStore` (in `./trace/store`) persists the rich TraceSchema-v1
|
|
1471
|
+
* span corpus — runs, spans, events, artifacts — the runtime emits live. That
|
|
1472
|
+
* is NOT the thing three consumers hand-roll in `tests/eval/lib/trace-store.ts`.
|
|
1473
|
+
* What they hand-roll is the *analysis* layer: append each finished run as one
|
|
1474
|
+
* JSONL line keyed by scenario/candidate, then query it ("every run where score
|
|
1475
|
+
* < 50"), pick the best run for a scenario (few-shot seeding), and compare two
|
|
1476
|
+
* candidates on matched scenarios.
|
|
1477
|
+
*
|
|
1478
|
+
* The substrate already has the canonical analysis-time row — `RunRecord` — so
|
|
1479
|
+
* this is that query/compare API expressed over `RunRecord[]`, with a
|
|
1480
|
+
* JSONL-backed store. It does NOT fork `FileSystemTraceStore`; it sits beside it
|
|
1481
|
+
* for the analysis projection.
|
|
1482
|
+
*/
|
|
1483
|
+
|
|
1484
|
+
/** The score the query/compare layer ranks on: holdout when present (the
|
|
1485
|
+
* gated number), else search. Throws when a record carries neither — a
|
|
1486
|
+
* RunRecord is invalid without at least one, but a hand-built object might. */
|
|
1487
|
+
declare function runScore(record: RunRecord): number;
|
|
1488
|
+
interface RunRecordFilter {
|
|
1489
|
+
experimentId?: string;
|
|
1490
|
+
candidateId?: string;
|
|
1491
|
+
scenarioId?: string;
|
|
1492
|
+
model?: string;
|
|
1493
|
+
splitTag?: RunSplitTag;
|
|
1494
|
+
/** Inclusive lower bound on `runScore`. */
|
|
1495
|
+
minScore?: number;
|
|
1496
|
+
/** Inclusive upper bound on `runScore`. */
|
|
1497
|
+
maxScore?: number;
|
|
1498
|
+
/** Match a single tag in `outcome.raw` by exact numeric value. */
|
|
1499
|
+
rawEquals?: {
|
|
1500
|
+
key: string;
|
|
1501
|
+
value: number;
|
|
1502
|
+
};
|
|
1503
|
+
/** Custom predicate, ANDed with the structured filters. */
|
|
1504
|
+
where?: (record: RunRecord) => boolean;
|
|
1505
|
+
}
|
|
1506
|
+
interface CandidateComparison {
|
|
1507
|
+
a: string;
|
|
1508
|
+
b: string;
|
|
1509
|
+
/** Scenario ids present for BOTH candidates — the paired comparison set. */
|
|
1510
|
+
pairedScenarioIds: string[];
|
|
1511
|
+
/** Mean `runScore` for candidate a over the paired scenarios. */
|
|
1512
|
+
meanA: number;
|
|
1513
|
+
/** Mean `runScore` for candidate b over the paired scenarios. */
|
|
1514
|
+
meanB: number;
|
|
1515
|
+
/** meanB − meanA. Positive ⇒ b scored higher on the matched scenarios. */
|
|
1516
|
+
meanDelta: number;
|
|
1517
|
+
/** Scenarios where b beat a (strictly), tied, and a beat b. */
|
|
1518
|
+
bWins: number;
|
|
1519
|
+
ties: number;
|
|
1520
|
+
aWins: number;
|
|
1521
|
+
}
|
|
1522
|
+
/**
|
|
1523
|
+
* Backing persistence for `EvalTraceStore`. The in-memory store is the default;
|
|
1524
|
+
* the JSONL file store appends one validated `RunRecord` per line. Both keep an
|
|
1525
|
+
* append order so `getBest` / `compareRuns` are reproducible.
|
|
1526
|
+
*/
|
|
1527
|
+
interface RunRecordBackend {
|
|
1528
|
+
append(record: RunRecord): Promise<void>;
|
|
1529
|
+
load(): Promise<RunRecord[]>;
|
|
1530
|
+
}
|
|
1531
|
+
declare function inMemoryRunRecordBackend(initial?: RunRecord[]): RunRecordBackend;
|
|
1532
|
+
/**
|
|
1533
|
+
* JSONL-backed store at `path`, one `RunRecord` per line. Malformed lines fail
|
|
1534
|
+
* loud on load (a corrupt corpus must not silently shrink the analysis set);
|
|
1535
|
+
* pass `skipInvalid` only for forensics on a known-bad file.
|
|
1536
|
+
*/
|
|
1537
|
+
declare function jsonlRunRecordBackend(path: string, opts?: {
|
|
1538
|
+
skipInvalid?: boolean;
|
|
1539
|
+
}): RunRecordBackend;
|
|
1540
|
+
/**
|
|
1541
|
+
* Query / compare layer over a `RunRecord` corpus. Append finished runs, query
|
|
1542
|
+
* with a structured filter, take the best run for a scenario, and compare two
|
|
1543
|
+
* candidates on their matched scenarios. Persistence is injected via
|
|
1544
|
+
* `RunRecordBackend` (in-memory by default, JSONL file via
|
|
1545
|
+
* `jsonlRunRecordBackend`).
|
|
1546
|
+
*/
|
|
1547
|
+
declare class EvalTraceStore {
|
|
1548
|
+
private readonly backend;
|
|
1549
|
+
constructor(backend?: RunRecordBackend);
|
|
1550
|
+
/** Validate and append one run. Throws on an invalid record — the corpus
|
|
1551
|
+
* stays paper-grade. */
|
|
1552
|
+
append(record: RunRecord): Promise<void>;
|
|
1553
|
+
all(): Promise<RunRecord[]>;
|
|
1554
|
+
query(filter?: RunRecordFilter): Promise<RunRecord[]>;
|
|
1555
|
+
/**
|
|
1556
|
+
* Highest-scoring run for a scenario (optionally restricted to a candidate).
|
|
1557
|
+
* Returns null when no run matches. Ties resolve to the earliest-appended run
|
|
1558
|
+
* so the result is stable.
|
|
1559
|
+
*/
|
|
1560
|
+
getBest(scenarioId: string, opts?: {
|
|
1561
|
+
candidateId?: string;
|
|
1562
|
+
splitTag?: RunSplitTag;
|
|
1563
|
+
}): Promise<RunRecord | null>;
|
|
1564
|
+
/**
|
|
1565
|
+
* Compare two candidates on the scenarios they BOTH ran. When a candidate
|
|
1566
|
+
* ran a scenario more than once, its best `runScore` for that scenario is
|
|
1567
|
+
* used. Throws when there is no paired scenario — an unpaired "comparison" is
|
|
1568
|
+
* not one.
|
|
1569
|
+
*/
|
|
1570
|
+
compareRuns(candidateA: string, candidateB: string): Promise<CandidateComparison>;
|
|
1571
|
+
}
|
|
1572
|
+
|
|
1573
|
+
/**
|
|
1574
|
+
* Experiment tracker — git-provenanced experiment log with N-rep stats and a
|
|
1575
|
+
* KEEP / REGRESSION / NOISE verdict against a parent.
|
|
1576
|
+
*
|
|
1577
|
+
* Every loop the fleet runs reduces to the same question: "I ran the candidate
|
|
1578
|
+
* N times — is the median measurably better than the parent, or is the delta
|
|
1579
|
+
* inside the noise band?" The hand-rolled copies bake a fixed score scale
|
|
1580
|
+
* (percentage points), a fixed store path (`.evolve/experiments-v2.json`), and
|
|
1581
|
+
* `execSync('git …')` straight into the module. This is the canonical version:
|
|
1582
|
+
* provenance and persistence are injected, thresholds are configurable, and the
|
|
1583
|
+
* stats + verdict are pure functions you can unit-test without a git repo or a
|
|
1584
|
+
* filesystem.
|
|
1585
|
+
*
|
|
1586
|
+
* Stats per experiment: median / mean / min / max / iqr / stddev / passRate /
|
|
1587
|
+
* n, plus a `stable` flag (`iqr < iqrUnstableAbove && stddev < stddevUnstableAbove`).
|
|
1588
|
+
*
|
|
1589
|
+
* Verdict against a parent (both must have `n >= minRepsForVerdict`):
|
|
1590
|
+
* - NOISE — the candidate is too unstable to judge (`!stable`)
|
|
1591
|
+
* - KEEP — `medianDelta > keepThreshold`
|
|
1592
|
+
* - REGRESSION — `medianDelta < -regressionThreshold`
|
|
1593
|
+
* - NOISE — otherwise (delta inside the band)
|
|
1594
|
+
* With no parent (or insufficient reps) the verdict is the neutral ITERATE.
|
|
1595
|
+
*/
|
|
1596
|
+
/** Verdict for one experiment relative to its parent. ITERATE is the neutral
|
|
1597
|
+
* "keep collecting reps / no parent to compare against" state. */
|
|
1598
|
+
type ExperimentVerdict = 'KEEP' | 'ITERATE' | 'NOISE' | 'REGRESSION';
|
|
1599
|
+
/** Git provenance for the working tree an experiment was run from. */
|
|
1600
|
+
interface ExperimentProvenance {
|
|
1601
|
+
/** Commit sha (short or full — the tracker does not interpret it). */
|
|
1602
|
+
commit: string;
|
|
1603
|
+
/** First line of the commit message. */
|
|
1604
|
+
message: string;
|
|
1605
|
+
/** Files changed vs the parent commit, or a marker like 'uncommitted'. */
|
|
1606
|
+
changedFiles: string[];
|
|
1607
|
+
}
|
|
1608
|
+
/** A single repetition of an experiment, carrying the score the verdict is
|
|
1609
|
+
* computed on plus any free-form per-rep metrics the consumer wants kept. */
|
|
1610
|
+
interface ExperimentRep {
|
|
1611
|
+
/** 0-indexed repetition number within the experiment. */
|
|
1612
|
+
rep: number;
|
|
1613
|
+
/** The score this rep is judged on (same scale as the thresholds). */
|
|
1614
|
+
score: number;
|
|
1615
|
+
/** ISO timestamp the rep completed. */
|
|
1616
|
+
timestamp: string;
|
|
1617
|
+
/** Whether this rep passed the consumer's own gate — folded into `passRate`. */
|
|
1618
|
+
passed?: boolean;
|
|
1619
|
+
/** Free-form numeric metrics retained for later analysis. */
|
|
1620
|
+
metrics?: Record<string, number>;
|
|
1621
|
+
}
|
|
1622
|
+
interface ExperimentStats {
|
|
1623
|
+
median: number;
|
|
1624
|
+
mean: number;
|
|
1625
|
+
min: number;
|
|
1626
|
+
max: number;
|
|
1627
|
+
/** Inter-quartile range of the rep scores. */
|
|
1628
|
+
iqr: number;
|
|
1629
|
+
/** Population standard deviation of the rep scores. */
|
|
1630
|
+
stddev: number;
|
|
1631
|
+
/** Fraction of reps with `passed === true`, over reps that set `passed`.
|
|
1632
|
+
* null when no rep declared a pass/fail outcome. */
|
|
1633
|
+
passRate: number | null;
|
|
1634
|
+
/** Number of reps. */
|
|
1635
|
+
n: number;
|
|
1636
|
+
/** True when the sample is tight enough to trust for a verdict. */
|
|
1637
|
+
stable: boolean;
|
|
1638
|
+
}
|
|
1639
|
+
interface Experiment {
|
|
1640
|
+
/** Stable id for the experiment. */
|
|
1641
|
+
id: string;
|
|
1642
|
+
/** Free-form label / config descriptor. */
|
|
1643
|
+
label: string;
|
|
1644
|
+
/** Git provenance captured when the experiment was created. */
|
|
1645
|
+
provenance: ExperimentProvenance;
|
|
1646
|
+
/** Parent experiment id this candidate is compared against, if any. */
|
|
1647
|
+
parentId?: string;
|
|
1648
|
+
/** One-line summary of what changed from the parent. */
|
|
1649
|
+
changeSummary: string;
|
|
1650
|
+
reps: ExperimentRep[];
|
|
1651
|
+
stats: ExperimentStats;
|
|
1652
|
+
verdict: ExperimentVerdict;
|
|
1653
|
+
/** ISO timestamp the experiment was created. */
|
|
1654
|
+
createdAt: string;
|
|
1655
|
+
}
|
|
1656
|
+
interface ImprovementThresholds {
|
|
1657
|
+
/** medianDelta strictly above this ⇒ KEEP. Default 5. */
|
|
1658
|
+
keepThreshold?: number;
|
|
1659
|
+
/** medianDelta strictly below the negative of this ⇒ REGRESSION. Default 5. */
|
|
1660
|
+
regressionThreshold?: number;
|
|
1661
|
+
/** iqr at or above this ⇒ unstable. Default 10. */
|
|
1662
|
+
iqrUnstableAbove?: number;
|
|
1663
|
+
/** stddev at or above this ⇒ unstable. Default Infinity (iqr-only stability). */
|
|
1664
|
+
stddevUnstableAbove?: number;
|
|
1665
|
+
/** Reps required on BOTH candidate and parent before a verdict is rendered.
|
|
1666
|
+
* Default 3. */
|
|
1667
|
+
minRepsForVerdict?: number;
|
|
1668
|
+
}
|
|
1669
|
+
interface ImprovementVerdictResult {
|
|
1670
|
+
verdict: ExperimentVerdict;
|
|
1671
|
+
/** candidate.median − parent.median; null when no parent or insufficient reps. */
|
|
1672
|
+
medianDelta: number | null;
|
|
1673
|
+
/** Human-readable reason for the verdict — for dashboards and logs. */
|
|
1674
|
+
reason: string;
|
|
1675
|
+
}
|
|
1676
|
+
/**
|
|
1677
|
+
* Compute the N-rep statistics for a set of reps. Pure — no I/O. The `stable`
|
|
1678
|
+
* flag is the trust gate the verdict depends on: a sample whose spread exceeds
|
|
1679
|
+
* the configured bounds can't distinguish a real delta from run-to-run noise.
|
|
1680
|
+
*/
|
|
1681
|
+
declare function computeExperimentStats(reps: ExperimentRep[], thresholds?: ImprovementThresholds): ExperimentStats;
|
|
1682
|
+
/**
|
|
1683
|
+
* Verdict for a candidate against its parent. Pure — operates on already-computed
|
|
1684
|
+
* stats. KEEP/REGRESSION require both sides to have `>= minRepsForVerdict` reps
|
|
1685
|
+
* AND the candidate to be `stable`; otherwise the result is NOISE (unstable) or
|
|
1686
|
+
* ITERATE (not enough reps / no parent).
|
|
1687
|
+
*/
|
|
1688
|
+
declare function improvementVerdict(candidate: ExperimentStats, parent: ExperimentStats | null, thresholds?: ImprovementThresholds): ImprovementVerdictResult;
|
|
1689
|
+
/** Reads git provenance for the working tree. Inject a fake in tests; the
|
|
1690
|
+
* default implementation shells out to `git`. */
|
|
1691
|
+
type ProvenanceReader = () => ExperimentProvenance | Promise<ExperimentProvenance>;
|
|
1692
|
+
/** Persistence seam for the experiment log. Inject in-memory in tests; the
|
|
1693
|
+
* filesystem implementation is `fileExperimentStore`. */
|
|
1694
|
+
interface ExperimentStore {
|
|
1695
|
+
load(): Promise<Experiment[]>;
|
|
1696
|
+
save(experiments: Experiment[]): Promise<void>;
|
|
1697
|
+
}
|
|
1698
|
+
/**
|
|
1699
|
+
* Default provenance reader: `git rev-parse HEAD`, the subject line, and the
|
|
1700
|
+
* files changed vs `HEAD~1`. Fail-loud — a tracker that silently logs
|
|
1701
|
+
* `commit: 'unknown'` corrupts the provenance the whole point of the log is to
|
|
1702
|
+
* carry. When the working tree genuinely has no parent commit, pass an override.
|
|
1703
|
+
*/
|
|
1704
|
+
declare const gitProvenanceReader: ProvenanceReader;
|
|
1705
|
+
/** In-memory store — the default when no persistence is wanted (tests, ephemeral
|
|
1706
|
+
* runs). State lives on the instance. */
|
|
1707
|
+
declare function inMemoryExperimentStore(initial?: Experiment[]): ExperimentStore;
|
|
1708
|
+
/** Filesystem store — a single JSON array at `path`, created on first save. */
|
|
1709
|
+
declare function fileExperimentStore(path: string): ExperimentStore;
|
|
1710
|
+
interface ExperimentTrackerOptions {
|
|
1711
|
+
store?: ExperimentStore;
|
|
1712
|
+
provenanceReader?: ProvenanceReader;
|
|
1713
|
+
thresholds?: ImprovementThresholds;
|
|
1714
|
+
/** Clock seam for deterministic timestamps in tests. Default `Date.now`. */
|
|
1715
|
+
now?: () => number;
|
|
1716
|
+
}
|
|
1717
|
+
interface CreateExperimentInput {
|
|
1718
|
+
id: string;
|
|
1719
|
+
label: string;
|
|
1720
|
+
changeSummary: string;
|
|
1721
|
+
parentId?: string;
|
|
1722
|
+
/** Override provenance instead of reading from git (e.g. CI metadata). */
|
|
1723
|
+
provenance?: ExperimentProvenance;
|
|
1724
|
+
}
|
|
1725
|
+
/**
|
|
1726
|
+
* Stateful tracker over an `ExperimentStore`. Create an experiment (provenance
|
|
1727
|
+
* is captured once), append reps as they complete (stats + verdict recompute on
|
|
1728
|
+
* every append), and read the log back for a dashboard. All persistence and git
|
|
1729
|
+
* access flow through the injected seams, so the tracker is fully testable
|
|
1730
|
+
* without a repo or disk.
|
|
1731
|
+
*/
|
|
1732
|
+
declare class ExperimentTracker {
|
|
1733
|
+
private readonly store;
|
|
1734
|
+
private readonly provenanceReader;
|
|
1735
|
+
private readonly thresholds;
|
|
1736
|
+
private readonly now;
|
|
1737
|
+
constructor(options?: ExperimentTrackerOptions);
|
|
1738
|
+
create(input: CreateExperimentInput): Promise<Experiment>;
|
|
1739
|
+
/** Append a rep (its `rep` index defaults to the current rep count) and
|
|
1740
|
+
* recompute stats + verdict. Returns the updated experiment. */
|
|
1741
|
+
addRep(experimentId: string, rep: Omit<ExperimentRep, 'rep' | 'timestamp'> & {
|
|
1742
|
+
rep?: number;
|
|
1743
|
+
timestamp?: string;
|
|
1744
|
+
}): Promise<Experiment>;
|
|
1745
|
+
get(experimentId: string): Promise<Experiment | undefined>;
|
|
1746
|
+
list(): Promise<Experiment[]>;
|
|
1747
|
+
/** Full verdict (not just the enum) for an experiment vs its parent. */
|
|
1748
|
+
verdictFor(experimentId: string): Promise<ImprovementVerdictResult>;
|
|
1749
|
+
}
|
|
1750
|
+
|
|
1354
1751
|
/**
|
|
1355
1752
|
* muffled-gate-scanner — test helper that greps consumer source for
|
|
1356
1753
|
* gate + measurement anti-patterns and fails with file:line locations.
|
|
@@ -1508,6 +1905,76 @@ interface OracleReport {
|
|
|
1508
1905
|
/** Run all oracles against one observation and aggregate. */
|
|
1509
1906
|
declare function evaluateOracles(obs: OracleObservation, oracles: Oracle[]): OracleReport;
|
|
1510
1907
|
|
|
1908
|
+
/**
|
|
1909
|
+
* Deterministic held-out partitioning over stable ids.
|
|
1910
|
+
*
|
|
1911
|
+
* A promotion gate's paired-delta math needs a fixed partition: the same
|
|
1912
|
+
* scenario id lands in the same bucket forever, regardless of when it ran or
|
|
1913
|
+
* which loop emitted the record — otherwise the gate has nothing paired to
|
|
1914
|
+
* compare against. Picking one global split per run is wrong: every run then
|
|
1915
|
+
* stamps either ALL search or ALL holdout, and no id is ever observed on both
|
|
1916
|
+
* sides. Per-id deterministic hashing fixes that.
|
|
1917
|
+
*
|
|
1918
|
+
* Two consumers hand-roll this (agent-builder's `deterministicSplit` and the
|
|
1919
|
+
* frontier persona-splitter). The substrate already has a 3-way benchmark
|
|
1920
|
+
* `deterministicSplit` in `./benchmarks`; this is the generic, validated batch
|
|
1921
|
+
* partitioner: it takes a list of ids, splits them by a stable FNV-1a hash, and
|
|
1922
|
+
* fails loud when the inputs can't support a trustworthy held-out comparison
|
|
1923
|
+
* (duplicate ids, or a holdout set below the significance floor).
|
|
1924
|
+
*/
|
|
1925
|
+
/** 32-bit FNV-1a hash. Stable, allocation-free, deterministic across runtimes —
|
|
1926
|
+
* the same id+seed maps to the same bucket on every machine and process. */
|
|
1927
|
+
declare function fnv1a32(input: string): number;
|
|
1928
|
+
/** Map an id+seed to the half-open unit interval [0, 1) deterministically. */
|
|
1929
|
+
declare function hashToUnit(id: string, seed: string): number;
|
|
1930
|
+
interface PartitionHeldOutOptions {
|
|
1931
|
+
/** Partition seed. Bumping it reshuffles every assignment — do that only when
|
|
1932
|
+
* the corpus/policy changes meaningfully so old and new records can't pair.
|
|
1933
|
+
* Default 'held-out-v1'. */
|
|
1934
|
+
seed?: string;
|
|
1935
|
+
/** Fraction routed to the held-out bucket, in (0, 1). Default 0.5. */
|
|
1936
|
+
holdoutFraction?: number;
|
|
1937
|
+
/**
|
|
1938
|
+
* Minimum held-out ids required for the split to be admissible. Below this,
|
|
1939
|
+
* a paired comparison has too few observations to be significant, so the
|
|
1940
|
+
* partition throws rather than hand back an underpowered holdout. Default 1
|
|
1941
|
+
* (only the empty-holdout degenerate case is rejected). Raise it to enforce
|
|
1942
|
+
* real statistical power. */
|
|
1943
|
+
minHoldout?: number;
|
|
1944
|
+
/** Same floor for the search side. Default 1. */
|
|
1945
|
+
minSearch?: number;
|
|
1946
|
+
}
|
|
1947
|
+
interface HeldOutPartition {
|
|
1948
|
+
/** Ids the optimizer is allowed to read/optimize against. */
|
|
1949
|
+
search: string[];
|
|
1950
|
+
/** Ids reserved for gated, held-out evaluation. */
|
|
1951
|
+
holdout: string[];
|
|
1952
|
+
seed: string;
|
|
1953
|
+
holdoutFraction: number;
|
|
1954
|
+
}
|
|
1955
|
+
/**
|
|
1956
|
+
* Assign a single id to `'search'` or `'holdout'` deterministically. Same
|
|
1957
|
+
* `(id, seed)` always returns the same tag — the invariant the gate relies on.
|
|
1958
|
+
* Use this in a `splitTag:` field literal when stamping records one at a time;
|
|
1959
|
+
* use `partitionHeldOut` when you have the whole id list up front and want the
|
|
1960
|
+
* validated disjoint split.
|
|
1961
|
+
*/
|
|
1962
|
+
declare function assignHeldOutTag(id: string, options?: {
|
|
1963
|
+
seed?: string;
|
|
1964
|
+
holdoutFraction?: number;
|
|
1965
|
+
}): 'search' | 'holdout';
|
|
1966
|
+
/**
|
|
1967
|
+
* Partition a list of stable ids into disjoint `search` / `holdout` sets by a
|
|
1968
|
+
* deterministic hash. Fail-loud:
|
|
1969
|
+
* - empty input throws,
|
|
1970
|
+
* - duplicate ids throw (a dup would be observed on both sides, double-counting),
|
|
1971
|
+
* - a holdout (or search) set below its floor throws (underpowered comparison).
|
|
1972
|
+
*
|
|
1973
|
+
* Order within each bucket follows the input order, so the result is stable and
|
|
1974
|
+
* reproducible.
|
|
1975
|
+
*/
|
|
1976
|
+
declare function partitionHeldOut(ids: string[], options?: PartitionHeldOutOptions): HeldOutPartition;
|
|
1977
|
+
|
|
1511
1978
|
/**
|
|
1512
1979
|
* @stable
|
|
1513
1980
|
*
|
|
@@ -4801,4 +5268,4 @@ declare namespace index {
|
|
|
4801
5268
|
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 };
|
|
4802
5269
|
}
|
|
4803
5270
|
|
|
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 };
|
|
5271
|
+
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 CandidateComparison, type CandidateScenario, type CausalAttributionReport, type CellVerdict, type ChannelRollup, ChatRequest, CheckResult, CollectedArtifacts, type CommandRunner, type CompareLabels, CompletionCriterion, type ContinuityCheck, type ContinuityCheckResult, type ContinuityReport, type ContinuitySnapshotPair, type ContractMetric, type ContractReport, ConvergenceTracker, type CostChannel, type CostEntry, CostLedger, type CostLedgerEntry, type CostLedgerSummary, type CostResult, type CostSummary, CostTracker, type CostUsage, type CounterfactualContext, type CounterfactualMutation, type CounterfactualResult, type CounterfactualRunner, CreateChatClientOpts, type CreateDefaultReviewerOptions, type CreateExperimentInput, 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, EvalTraceStore, type EvolutionRound, type ExecutorConfig, type Expectation, type Experiment, type ExperimentProvenance, type ExperimentRep, type ExperimentStats, type ExperimentStore, ExperimentTracker, type ExperimentTrackerOptions, type ExperimentVerdict, 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, type HeldOutPartition, HoldoutAuditor, type HttpGithubClientOptions, type HypothesisManifest, type HypothesisResult, INTENT_MATCH_JUDGE_VERSION, type ImageData, type ImprovementThresholds, type ImprovementVerdictResult, 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, type PartitionHeldOutOptions, 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 ProvenanceReader, 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, type RunRecordBackend, type RunRecordFilter, RunScore, RunScoreWeights, RunSplitTag, 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, assignHeldOutTag, attributeCounterfactuals, bisect, buildAgreementJudge, buildDriverSystemPrompt, buildReflectionPrompt, buildReviewerPrompt, canaryLeakView, canonicalize, causalAttribution, checkBehavioralCanary, checkCanaries, checkSlos, codeExecutionJudge, coherenceJudge, collectionPreserved, commentsForSource, commitBisect, compareReferenceReplay, compilerJudge, computeExperimentStats, costForUsage, 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, fileExperimentStore, findAutoMatchNoExpectation, findConstructorCwdDropped, findFallbackToPass, findLiteralTruePass, findSkipCountsAsPass, flowLayer, fnv1a32, formatBenchmarkReport, formatDriverReport, formatFindings, formatScorecardDiff, ghCliClient, gitProvenanceReader, precision as goldenPrecision, hashContent, hashJson, hashToUnit, htmlContainsElement, httpGithubClient, improvementVerdict, inMemoryExperimentStore, inMemoryReferenceReplayStore, inMemoryRunRecordBackend, isModelPriced, isOtelConfigured, jsonShape, jsonlReferenceReplayStore, jsonlRunRecordBackend, judgeFamily, keyPreserved, linterJudge, loadGoldScenarios, loadScorecard, loadScorerFromGrader, localCommandRunner, lowercaseMutator, matchGoldens, mergeLayerResults, modelDescriptionBits, modelPriceKey, multiToolchainLayer, notBlocked, paraphraseRobustness, paraphraseRobustnessScenarios, parseGoldJsonl, parseReflectionResponse, partitionHeldOut, 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, runScore, 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 };
|