@tangle-network/agent-eval 0.114.0 → 0.115.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 +12 -0
- package/README.md +1 -1
- package/dist/analyst/index.js +2 -2
- package/dist/benchmarks/index.js +2 -2
- package/dist/campaign/index.d.ts +611 -7
- package/dist/campaign/index.js +18 -2
- package/dist/{chunk-HJWNHCD5.js → chunk-AN5UYSVD.js} +43 -1
- package/dist/chunk-AN5UYSVD.js.map +1 -0
- package/dist/{chunk-4FRTXH2M.js → chunk-I2HNIE6N.js} +3 -44
- package/dist/chunk-I2HNIE6N.js.map +1 -0
- package/dist/{chunk-VHPD6AXX.js → chunk-MNR6ZW4P.js} +4830 -2480
- package/dist/chunk-MNR6ZW4P.js.map +1 -0
- package/dist/index.d.ts +4 -158
- package/dist/index.js +6 -153
- package/dist/index.js.map +1 -1
- package/dist/openapi.json +1 -1
- package/dist/{pre-registration-CTQbZbpX.d.ts → pre-registration-oNItiRBb.d.ts} +155 -1
- package/package.json +1 -1
- package/dist/chunk-4FRTXH2M.js.map +0 -1
- package/dist/chunk-HJWNHCD5.js.map +0 -1
- package/dist/chunk-VHPD6AXX.js.map +0 -1
package/dist/campaign/index.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { S as SignedManifest, B as BackendIntegrityReport, C as CompletionRequirement, R as RuntimeEventLike, a as CompletionVerdict,
|
|
2
|
-
export { L as LlmJudgeDimension,
|
|
1
|
+
import { P as PairedArmsComparison, S as SignedManifest, B as BackendIntegrityReport, C as CompletionRequirement, R as RuntimeEventLike, a as CompletionVerdict, b as ProducedState, c as CorrectnessChecker } from '../pre-registration-oNItiRBb.js';
|
|
2
|
+
export { L as LlmJudgeDimension, d as LlmJudgeOptions, l as llmJudge } from '../pre-registration-oNItiRBb.js';
|
|
3
3
|
import { A as AnalyzeTracesOptions, a as AnalyzeTracesInput, b as AnalyzeTracesResult } from '../analyst-C8HHvfJp.js';
|
|
4
4
|
import { S as Scenario, M as MutableSurface, D as DispatchContext, b as JudgeConfig, g as Gate, e as GenerationRecord, J as JudgeScore, L as LabeledScenarioStore, s as LabeledScenarioWrite, t as LabeledScenarioSampleArgs, u as LabeledScenarioRecord, v as LabelTrust, f as SurfaceProposer, w as ProposedCandidate, x as ProposeContext, m as CodeSurface, y as LabeledScenarioSource, C as CampaignResult } from '../types-CgSlO6wT.js';
|
|
5
5
|
export { i as CampaignAggregates, j as CampaignArtifactWriter, k as CampaignCellResult, l as CampaignCostMeter, z as CampaignTokenUsage, d as CampaignTraceWriter, c as DispatchFn, n as GateContext, h as GateDecision, G as GateResult, o as GenerationCandidate, A as JudgeAggregate, a as JudgeDimension, p as Mutator, O as OptimizationProposer, q as OptimizerConfig, P as ParetoParent, R as RedactionStatus, B as ScenarioAggregate, r as SessionScript, T as TraceSpan, E as isProposedCandidate, F as labelTrustRank } from '../types-CgSlO6wT.js';
|
|
6
6
|
import { C as CampaignRunPlan, P as PlanCampaignRunOptions, b as RunCampaignOptions, c as RunImprovementLoopOptions } from '../gepa-DolL_Fko.js';
|
|
7
7
|
export { f as CampaignRunPlanCell, h as GepaProposerConstraints, G as GepaProposerOptions, O as OpenAutoPrOptions, i as OpenAutoPrResult, a as RunImprovementLoopResult, R as RunOptimizationOptions, j as RunOptimizationResult, k as countSentenceEdits, l as defaultRenderDiff, m as extractH2Sections, g as gepaProposer, o as openAutoPr, p as planCampaignRun, r as runCampaign, d as runImprovementLoop, n as runOptimization } from '../gepa-DolL_Fko.js';
|
|
8
|
+
import { a as PairedBootstrapResult, E as EProcessState } from '../statistics-oUbOJe-S.js';
|
|
8
9
|
import { C as CampaignStorage } from '../storage-Dw_f7WMt.js';
|
|
9
10
|
export { f as fsCampaignStorage, i as inMemoryCampaignStorage } from '../storage-Dw_f7WMt.js';
|
|
10
11
|
export { A as AxisEvidence, a as AxisVerdict, B as BuildEvidenceVectorOptions, l as BuildLoopProvenanceArgs, D as DefaultProductionGateOptions, m as EmitLoopProvenanceArgs, n as EmitLoopProvenanceResult, E as EvidenceVector, b as EvolutionaryProposerOptions, H as HeldOutGateOptions, o as LoopProvenanceBackend, q as LoopProvenanceCandidate, L as LoopProvenanceRecord, O as ObjectiveSource, c as ParetoSignificanceGateOptions, P as PowerPreflight, s as PowerPreflightOptions, d as PromotionObjective, e as PromotionPolicy, R as RunEvalOptions, f as buildEvidenceVector, t as buildLoopProvenanceRecord, g as composeGate, h as defaultProductionGate, u as emitLoopProvenance, i as evolutionaryProposer, j as heldOutGate, v as loopProvenanceSpans, p as paretoPolicy, k as paretoSignificanceGate, w as powerPreflight, x as provenanceRecordPath, y as provenanceSpansPath, r as runEval } from '../provenance-BZmpWmn4.js';
|
|
11
|
-
import { E as EProcessState, a as PairedBootstrapResult } from '../statistics-oUbOJe-S.js';
|
|
12
12
|
import { L as LlmClientOptions } from '../llm-client-DyqEH4jH.js';
|
|
13
13
|
import { AgentProfile } from '@tangle-network/agent-interface';
|
|
14
|
-
import { A as AgentEvalError } from '../errors-oeQrLqXC.js';
|
|
14
|
+
import { A as AgentEvalError, V as ValidationError } from '../errors-oeQrLqXC.js';
|
|
15
15
|
import { b as RunSplitTag, R as RunRecord } from '../run-record-DksGsfgv.js';
|
|
16
16
|
import { b as PolicyEdit, F as FindingToPolicyEditOptions, d as PolicyEditAdmissionOptions, c as PolicyEditAdmission } from '../policy-edit-az2qRmvN.js';
|
|
17
17
|
import { T as TraceAnalystKindSpec, A as AnalystFinding } from '../kind-factory-20hcaYpf.js';
|
|
@@ -23,12 +23,12 @@ import '../store-C1YxJDEK.js';
|
|
|
23
23
|
import '../dataset-NENEzRgk.js';
|
|
24
24
|
import '../store-BsVi7ncX.js';
|
|
25
25
|
import '../schema-SGWcK9wa.js';
|
|
26
|
+
import '../judge-calibration-7C-IDmKr.js';
|
|
27
|
+
import '../types-C7DGg5ex.js';
|
|
26
28
|
import '../hosted/index.js';
|
|
27
29
|
import '../insight-report-D4cXFsLt.js';
|
|
28
30
|
import '../summary-report-Bz-0-t8v.js';
|
|
29
31
|
import '../failure-cluster-C48PiReX.js';
|
|
30
|
-
import '../judge-calibration-7C-IDmKr.js';
|
|
31
|
-
import '../types-C7DGg5ex.js';
|
|
32
32
|
import 'zod';
|
|
33
33
|
|
|
34
34
|
/**
|
|
@@ -375,6 +375,278 @@ interface FailureModeRecallJudgeOptions {
|
|
|
375
375
|
*/
|
|
376
376
|
declare function failureModeRecallJudge(opts?: FailureModeRecallJudgeOptions): JudgeConfig<AnalystArtifact, AnalystScenario>;
|
|
377
377
|
|
|
378
|
+
/** Whether one candidate attempt produced a usable executable outcome. */
|
|
379
|
+
type CrossSurfaceAttemptCompleteness = 'complete' | 'missing' | 'invalid';
|
|
380
|
+
/** One independently proposed change on one caller-defined surface. */
|
|
381
|
+
interface CrossSurfaceComponent {
|
|
382
|
+
componentId: string;
|
|
383
|
+
surfaceId: string;
|
|
384
|
+
/** Explicitly controls whether this component may anchor the best-single arm. */
|
|
385
|
+
bestSingleEligible: boolean;
|
|
386
|
+
}
|
|
387
|
+
/** Immutable identity for a single candidate or a materialized composition. */
|
|
388
|
+
interface CrossSurfaceCandidate {
|
|
389
|
+
candidateId: string;
|
|
390
|
+
componentIds: string[];
|
|
391
|
+
contentHash: string;
|
|
392
|
+
artifactBytes: number;
|
|
393
|
+
}
|
|
394
|
+
/** Per-component trace evidence captured during one task attempt. */
|
|
395
|
+
interface CrossSurfaceComponentEvidence {
|
|
396
|
+
componentId: string;
|
|
397
|
+
/** null means the trace could not establish whether the component fired. */
|
|
398
|
+
fired: boolean | null;
|
|
399
|
+
/** null means the trace could not establish whether the component changed behavior. */
|
|
400
|
+
effectObserved: boolean | null;
|
|
401
|
+
}
|
|
402
|
+
/**
|
|
403
|
+
* Canonical per-task input row. Consumers may extend this interface with
|
|
404
|
+
* receipt, trace, retry, or failure details; the report preserves the original
|
|
405
|
+
* row object rather than projecting those details away.
|
|
406
|
+
*/
|
|
407
|
+
interface CrossSurfaceTaskRow {
|
|
408
|
+
taskId: string;
|
|
409
|
+
candidateId: string;
|
|
410
|
+
/** Repeated here so every persisted row remains self-describing. */
|
|
411
|
+
componentIds: string[];
|
|
412
|
+
completeness: CrossSurfaceAttemptCompleteness;
|
|
413
|
+
pass: boolean | null;
|
|
414
|
+
score: number | null;
|
|
415
|
+
/**
|
|
416
|
+
* Per-attempt deployment measurements. Every declared metric must have a
|
|
417
|
+
* known, non-negative value. Proposal, analysis, and selection spend belongs
|
|
418
|
+
* in the search ledger rather than being spread across task cells.
|
|
419
|
+
*/
|
|
420
|
+
cost: Record<string, number | null>;
|
|
421
|
+
componentEvidence: CrossSurfaceComponentEvidence[];
|
|
422
|
+
/** Required for missing or invalid attempts; forbidden for complete attempts. */
|
|
423
|
+
rejectReason: string | null;
|
|
424
|
+
}
|
|
425
|
+
interface CrossSurfaceBootstrapPolicy {
|
|
426
|
+
seed: number;
|
|
427
|
+
resamples: number;
|
|
428
|
+
confidence: number;
|
|
429
|
+
}
|
|
430
|
+
/** Predeclared candidate eligibility and composition policy. */
|
|
431
|
+
interface CrossSurfaceSelectionPolicy {
|
|
432
|
+
minimumFiringTasks: number;
|
|
433
|
+
minimumEffectTasks: number;
|
|
434
|
+
requireObservedFiring: boolean;
|
|
435
|
+
requireObservedEffect: boolean;
|
|
436
|
+
/** Only named metrics are constrained; all declared metrics are still reported. */
|
|
437
|
+
maximumMedianCostRatioToBaseline: Record<string, number>;
|
|
438
|
+
/** A smaller terminal bundle is reported but cannot become the selected arm. */
|
|
439
|
+
minimumBundleComponents: number;
|
|
440
|
+
}
|
|
441
|
+
interface AnalyzeCrossSurfaceInteractionsInput<TRow extends CrossSurfaceTaskRow = CrossSurfaceTaskRow> {
|
|
442
|
+
components: readonly CrossSurfaceComponent[];
|
|
443
|
+
candidates: readonly CrossSurfaceCandidate[];
|
|
444
|
+
rows: readonly TRow[];
|
|
445
|
+
baselineCandidateId: string;
|
|
446
|
+
/** Exact shared task axis and its canonical output order. */
|
|
447
|
+
taskOrder: readonly string[];
|
|
448
|
+
/** Canonical materialization order for component sets and the naive stack. */
|
|
449
|
+
componentOrder: readonly string[];
|
|
450
|
+
/** Final deterministic tie-break; lower index wins. */
|
|
451
|
+
candidateOrder: readonly string[];
|
|
452
|
+
/** Declares every cost key and the order used for cost tie-breaks. */
|
|
453
|
+
costMetricOrder: readonly string[];
|
|
454
|
+
bootstrap: CrossSurfaceBootstrapPolicy;
|
|
455
|
+
selection: CrossSurfaceSelectionPolicy;
|
|
456
|
+
}
|
|
457
|
+
interface CrossSurfaceDistribution {
|
|
458
|
+
n: number;
|
|
459
|
+
min: number;
|
|
460
|
+
median: number;
|
|
461
|
+
mean: number;
|
|
462
|
+
max: number;
|
|
463
|
+
total: number;
|
|
464
|
+
}
|
|
465
|
+
interface CrossSurfaceEvidenceBreakdown {
|
|
466
|
+
componentId: string;
|
|
467
|
+
observedTaskIds: string[];
|
|
468
|
+
notObservedTaskIds: string[];
|
|
469
|
+
unobservedTaskIds: string[];
|
|
470
|
+
}
|
|
471
|
+
interface CrossSurfaceCandidateEvidence {
|
|
472
|
+
byComponent: CrossSurfaceEvidenceBreakdown[];
|
|
473
|
+
allObservedTaskIds: string[];
|
|
474
|
+
someObservedTaskIds: string[];
|
|
475
|
+
noneObservedTaskIds: string[];
|
|
476
|
+
unobservedTaskIds: string[];
|
|
477
|
+
}
|
|
478
|
+
type CrossSurfaceIneligibilityReason = 'missing_attempt' | 'invalid_attempt' | 'baseline_outcome_missing' | 'benefit_not_greater_than_regression' | 'firing_below_minimum' | 'firing_unobserved' | 'effect_below_minimum' | 'effect_unobserved' | 'cost_limit_exceeded';
|
|
479
|
+
interface CrossSurfaceEligibility {
|
|
480
|
+
eligible: boolean;
|
|
481
|
+
reasons: CrossSurfaceIneligibilityReason[];
|
|
482
|
+
}
|
|
483
|
+
interface CrossSurfaceCandidateOutcome {
|
|
484
|
+
resolvedTaskIds: string[];
|
|
485
|
+
failedTaskIds: string[];
|
|
486
|
+
missingTaskIds: string[];
|
|
487
|
+
invalidTaskIds: string[];
|
|
488
|
+
benefitTaskIds: string[];
|
|
489
|
+
regressionTaskIds: string[];
|
|
490
|
+
comparisonMissingTaskIds: string[];
|
|
491
|
+
netBenefit: number;
|
|
492
|
+
}
|
|
493
|
+
interface CrossSurfaceCandidateSummary {
|
|
494
|
+
candidate: CrossSurfaceCandidate;
|
|
495
|
+
outcome: CrossSurfaceCandidateOutcome;
|
|
496
|
+
score: CrossSurfaceDistribution | null;
|
|
497
|
+
costs: Record<string, CrossSurfaceDistribution>;
|
|
498
|
+
firing: CrossSurfaceCandidateEvidence;
|
|
499
|
+
effect: CrossSurfaceCandidateEvidence;
|
|
500
|
+
/** Reuses the package's paired McNemar/risk-difference/bootstrap statistics. */
|
|
501
|
+
comparisonToBaseline: PairedArmsComparison | null;
|
|
502
|
+
/** null only for the fixed baseline. */
|
|
503
|
+
eligibility: CrossSurfaceEligibility | null;
|
|
504
|
+
}
|
|
505
|
+
interface CrossSurfaceRelativeCost {
|
|
506
|
+
treatmentMedian: number;
|
|
507
|
+
comparatorMedian: number;
|
|
508
|
+
medianDelta: number;
|
|
509
|
+
/** null when the comparator median is zero but the treatment median is not. */
|
|
510
|
+
medianRatio: number | null;
|
|
511
|
+
}
|
|
512
|
+
interface CrossSurfaceCandidateComparison {
|
|
513
|
+
comparatorCandidateId: string;
|
|
514
|
+
treatmentCandidateId: string;
|
|
515
|
+
winsTaskIds: string[];
|
|
516
|
+
regressionTaskIds: string[];
|
|
517
|
+
missingTaskIds: string[];
|
|
518
|
+
paired: PairedArmsComparison;
|
|
519
|
+
relativeCost: Record<string, CrossSurfaceRelativeCost>;
|
|
520
|
+
}
|
|
521
|
+
interface CrossSurfacePairEvidence {
|
|
522
|
+
bothTaskIds: string[];
|
|
523
|
+
leftOnlyTaskIds: string[];
|
|
524
|
+
rightOnlyTaskIds: string[];
|
|
525
|
+
neitherTaskIds: string[];
|
|
526
|
+
unobservedTaskIds: string[];
|
|
527
|
+
}
|
|
528
|
+
interface CrossSurfaceInteractionTask {
|
|
529
|
+
taskId: string;
|
|
530
|
+
/** Composition minus the additive expectation from the baseline and singles. */
|
|
531
|
+
passInteraction: number | null;
|
|
532
|
+
scoreInteraction: number | null;
|
|
533
|
+
}
|
|
534
|
+
interface CrossSurfaceInteractionEffect {
|
|
535
|
+
perTask: CrossSurfaceInteractionTask[];
|
|
536
|
+
n: number;
|
|
537
|
+
nMissing: number;
|
|
538
|
+
meanPassInteraction: number | null;
|
|
539
|
+
meanScoreInteraction: number | null;
|
|
540
|
+
passBootstrap: PairedBootstrapResult | null;
|
|
541
|
+
scoreBootstrap: PairedBootstrapResult | null;
|
|
542
|
+
}
|
|
543
|
+
type CrossSurfacePairIncompatibilityReason = 'constituent_not_ready' | 'pair_incomplete' | 'baseline_regression' | 'interference' | 'no_incremental_resolution' | 'firing_below_minimum' | 'firing_unobserved' | 'effect_below_minimum' | 'effect_unobserved' | 'cost_limit_exceeded';
|
|
544
|
+
interface CrossSurfacePairCompatibility {
|
|
545
|
+
compatible: boolean;
|
|
546
|
+
reasons: CrossSurfacePairIncompatibilityReason[];
|
|
547
|
+
betterSingleCandidateId: string;
|
|
548
|
+
}
|
|
549
|
+
interface CrossSurfacePairwiseEntry {
|
|
550
|
+
componentIds: [string, string];
|
|
551
|
+
singleCandidateIds: [string, string];
|
|
552
|
+
compositionCandidateId: string;
|
|
553
|
+
benefitTaskIds: string[];
|
|
554
|
+
regressionTaskIds: string[];
|
|
555
|
+
synergyTaskIds: string[];
|
|
556
|
+
interferenceTaskIds: string[];
|
|
557
|
+
incrementalVsConstituents: [CrossSurfaceCandidateComparison, CrossSurfaceCandidateComparison];
|
|
558
|
+
relativeCostToBaseline: Record<string, CrossSurfaceRelativeCost>;
|
|
559
|
+
firing: CrossSurfacePairEvidence;
|
|
560
|
+
effect: CrossSurfacePairEvidence;
|
|
561
|
+
interaction: CrossSurfaceInteractionEffect;
|
|
562
|
+
compatibility: CrossSurfacePairCompatibility;
|
|
563
|
+
}
|
|
564
|
+
interface CrossSurfaceRankedSingle {
|
|
565
|
+
rank: number;
|
|
566
|
+
candidateId: string;
|
|
567
|
+
componentId: string;
|
|
568
|
+
}
|
|
569
|
+
interface CrossSurfaceBestSingleSelection {
|
|
570
|
+
candidateId: string;
|
|
571
|
+
componentId: string;
|
|
572
|
+
ranking: CrossSurfaceRankedSingle[];
|
|
573
|
+
}
|
|
574
|
+
interface CrossSurfaceNaiveStackSelection {
|
|
575
|
+
candidateId: string;
|
|
576
|
+
componentIds: string[];
|
|
577
|
+
}
|
|
578
|
+
type CrossSurfaceAdditionRejectionReason = 'pair_incompatible' | 'full_bundle_not_evaluated' | 'bundle_incomplete' | 'baseline_regression' | 'no_incremental_resolution' | 'incremental_regression' | 'firing_below_minimum' | 'firing_unobserved' | 'effect_below_minimum' | 'effect_unobserved' | 'cost_limit_exceeded';
|
|
579
|
+
interface CrossSurfaceAdditionDecision {
|
|
580
|
+
additionCandidateId: string;
|
|
581
|
+
additionComponentId: string;
|
|
582
|
+
bundleCandidateId: string | null;
|
|
583
|
+
incrementalResolutionTaskIds: string[];
|
|
584
|
+
incrementalRegressionTaskIds: string[];
|
|
585
|
+
incrementalMedianCost: Record<string, number> | null;
|
|
586
|
+
eligible: boolean;
|
|
587
|
+
selected: boolean;
|
|
588
|
+
reasons: CrossSurfaceAdditionRejectionReason[];
|
|
589
|
+
}
|
|
590
|
+
interface CrossSurfaceCompositionStep {
|
|
591
|
+
fromCandidateId: string;
|
|
592
|
+
retainedComponentIds: string[];
|
|
593
|
+
considered: CrossSurfaceAdditionDecision[];
|
|
594
|
+
selectedCandidateId: string | null;
|
|
595
|
+
}
|
|
596
|
+
/** One deterministic growth path starting from a compatible two-surface seed. */
|
|
597
|
+
interface CrossSurfaceInteractionPath {
|
|
598
|
+
seedCandidateId: string;
|
|
599
|
+
terminalCandidateId: string;
|
|
600
|
+
terminalComponentIds: string[];
|
|
601
|
+
qualified: boolean;
|
|
602
|
+
steps: CrossSurfaceCompositionStep[];
|
|
603
|
+
}
|
|
604
|
+
interface CrossSurfaceInteractionAwareSelection {
|
|
605
|
+
/** Compatible pair that seeded the selected deterministic growth path. */
|
|
606
|
+
seedCandidateId: string;
|
|
607
|
+
/** Candidate reached by the winning path, even if the minimum size is not met. */
|
|
608
|
+
terminalCandidateId: string;
|
|
609
|
+
terminalComponentIds: string[];
|
|
610
|
+
/** null when no path produced a qualifying multi-component bundle. */
|
|
611
|
+
selectedCandidateId: string | null;
|
|
612
|
+
qualified: boolean;
|
|
613
|
+
/** Every compatible pair seed is retained so seed choice cannot hide an interaction. */
|
|
614
|
+
evaluatedPaths: CrossSurfaceInteractionPath[];
|
|
615
|
+
/** Convenience alias for the winning path's steps. */
|
|
616
|
+
steps: CrossSurfaceCompositionStep[];
|
|
617
|
+
}
|
|
618
|
+
interface CrossSurfaceSelections {
|
|
619
|
+
bestSingle: CrossSurfaceBestSingleSelection | null;
|
|
620
|
+
naiveStack: CrossSurfaceNaiveStackSelection | null;
|
|
621
|
+
interactionAware: CrossSurfaceInteractionAwareSelection | null;
|
|
622
|
+
}
|
|
623
|
+
interface CrossSurfaceInteractionReport<TRow extends CrossSurfaceTaskRow = CrossSurfaceTaskRow> {
|
|
624
|
+
taskIds: string[];
|
|
625
|
+
componentIds: string[];
|
|
626
|
+
candidateIds: string[];
|
|
627
|
+
costMetrics: string[];
|
|
628
|
+
/** Canonical candidate × task order; no input row is dropped. */
|
|
629
|
+
rows: TRow[];
|
|
630
|
+
missingAttempts: TRow[];
|
|
631
|
+
invalidAttempts: TRow[];
|
|
632
|
+
candidates: CrossSurfaceCandidateSummary[];
|
|
633
|
+
pairwise: CrossSurfacePairwiseEntry[];
|
|
634
|
+
selections: CrossSurfaceSelections;
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
/**
|
|
638
|
+
* Task-paired comparison and deterministic selection for independently
|
|
639
|
+
* proposed agent surfaces. Unlike factorial cell-mean attribution, every
|
|
640
|
+
* benefit, regression, and interaction remains attached to its task row.
|
|
641
|
+
*/
|
|
642
|
+
|
|
643
|
+
/**
|
|
644
|
+
* Build the complete cross-surface evidence matrix and derive all three frozen
|
|
645
|
+
* candidates. The task/candidate/component orders are part of the input so
|
|
646
|
+
* neither insertion order nor an after-the-fact tie-break can change a result.
|
|
647
|
+
*/
|
|
648
|
+
declare function analyzeCrossSurfaceInteractions<TRow extends CrossSurfaceTaskRow>(input: AnalyzeCrossSurfaceInteractionsInput<TRow>): CrossSurfaceInteractionReport<TRow>;
|
|
649
|
+
|
|
378
650
|
type EvalFixtureValidationMode = 'vitest' | 'none';
|
|
379
651
|
interface EvalFixtureFile {
|
|
380
652
|
path: string;
|
|
@@ -2145,6 +2417,338 @@ interface CampaignBreakdown {
|
|
|
2145
2417
|
* on: mean score per judge dimension + per-scenario composite. */
|
|
2146
2418
|
declare function campaignBreakdown<TArtifact, TScenario extends Scenario>(campaign: CampaignResult<TArtifact, TScenario>): CampaignBreakdown;
|
|
2147
2419
|
|
|
2420
|
+
declare class SearchLedgerError extends ValidationError {
|
|
2421
|
+
}
|
|
2422
|
+
declare class SearchLedgerIntegrityError extends SearchLedgerError {
|
|
2423
|
+
}
|
|
2424
|
+
declare class SearchLedgerConflictError extends SearchLedgerError {
|
|
2425
|
+
}
|
|
2426
|
+
|
|
2427
|
+
/**
|
|
2428
|
+
* Durable append-only audit log for improvement searches.
|
|
2429
|
+
*
|
|
2430
|
+
* Existing campaign artifacts keep their own rich records: `RunRecord` owns a
|
|
2431
|
+
* measured run, `Lineage` owns the candidate graph, and `CostLedger` owns
|
|
2432
|
+
* per-call accounting. This ledger does not copy those structures. It binds
|
|
2433
|
+
* their immutable ids and receipts into one replayable event stream so a
|
|
2434
|
+
* search can answer, after a crash, exactly which candidates and task attempts
|
|
2435
|
+
* existed, which surfaces actually fired, what they cost, and why they were
|
|
2436
|
+
* selected or rejected.
|
|
2437
|
+
*
|
|
2438
|
+
* The file format is canonical JSONL with a SHA-256 hash chain. Every append is
|
|
2439
|
+
* serialized across processes, fsynced before acknowledgement, and idempotent
|
|
2440
|
+
* by `eventId`. A malformed, non-canonical, truncated, reordered, or conflicting
|
|
2441
|
+
* log fails loudly; the implementation never skips a bad row.
|
|
2442
|
+
*/
|
|
2443
|
+
|
|
2444
|
+
declare const SEARCH_LEDGER_SCHEMA: "tangle.search-ledger.v1";
|
|
2445
|
+
type SearchLedgerHash = `sha256:${string}`;
|
|
2446
|
+
type SearchSurfaceKind = 'prompt' | 'tool-contract' | 'runtime-config' | 'memory' | 'knowledge' | 'agent-profile' | 'code' | 'deployment';
|
|
2447
|
+
/** Content-addressed artifact or receipt. Mutable paths are locators only; the
|
|
2448
|
+
* digest and byte length bind the exact bytes used by the search. */
|
|
2449
|
+
interface SearchArtifactRef {
|
|
2450
|
+
role: string;
|
|
2451
|
+
uri: string;
|
|
2452
|
+
sha256: SearchLedgerHash;
|
|
2453
|
+
byteLength: number;
|
|
2454
|
+
}
|
|
2455
|
+
/** Repository, dataset, or package source pinned to an immutable commit or
|
|
2456
|
+
* content digest. Branches, tags, and bare package versions are rejected. */
|
|
2457
|
+
interface SearchSourceRef {
|
|
2458
|
+
uri: string;
|
|
2459
|
+
revision: string;
|
|
2460
|
+
}
|
|
2461
|
+
interface SearchModelIdentity {
|
|
2462
|
+
provider: string;
|
|
2463
|
+
snapshot: string;
|
|
2464
|
+
}
|
|
2465
|
+
interface SearchCandidateSurface {
|
|
2466
|
+
surfaceId: string;
|
|
2467
|
+
kind: SearchSurfaceKind;
|
|
2468
|
+
artifact: SearchArtifactRef;
|
|
2469
|
+
}
|
|
2470
|
+
interface SearchCandidateLineage {
|
|
2471
|
+
/** Existing `LineageNode.id`; this ledger references rather than embeds it. */
|
|
2472
|
+
lineageNodeId: string;
|
|
2473
|
+
parentCandidateIds: string[];
|
|
2474
|
+
generation: number;
|
|
2475
|
+
proposer: string;
|
|
2476
|
+
proposerSource: SearchSourceRef;
|
|
2477
|
+
}
|
|
2478
|
+
type SearchOperationKind = 'candidate-generation' | 'analysis' | 'selection' | 'judge' | 'other';
|
|
2479
|
+
interface SearchPlannedTask {
|
|
2480
|
+
taskId: string;
|
|
2481
|
+
source: SearchSourceRef;
|
|
2482
|
+
benchmark: SearchSourceRef;
|
|
2483
|
+
/** Maximum transport attempts for this task and candidate. Only an explicit
|
|
2484
|
+
* passed/failed outcome satisfies the planned denominator. */
|
|
2485
|
+
maxAttempts: number;
|
|
2486
|
+
}
|
|
2487
|
+
interface SearchPlannedOperation {
|
|
2488
|
+
operationId: string;
|
|
2489
|
+
kind: SearchOperationKind;
|
|
2490
|
+
}
|
|
2491
|
+
interface SearchCandidateSlot {
|
|
2492
|
+
slotId: string;
|
|
2493
|
+
/** Planned candidate-generation call that must either produce this slot or
|
|
2494
|
+
* fail before the slot can be closed. Several slots may share one batched call. */
|
|
2495
|
+
generationOperationId: string;
|
|
2496
|
+
}
|
|
2497
|
+
interface SearchPlan {
|
|
2498
|
+
/** Stable slots and their proposer calls are frozen before search begins. */
|
|
2499
|
+
candidateSlots: SearchCandidateSlot[];
|
|
2500
|
+
/** Every task applies to every successfully registered candidate. */
|
|
2501
|
+
tasks: SearchPlannedTask[];
|
|
2502
|
+
/** Non-task spend slots: proposal, analysis, selection, extra judges, etc. */
|
|
2503
|
+
operations: SearchPlannedOperation[];
|
|
2504
|
+
}
|
|
2505
|
+
type SearchTokenAccounting = {
|
|
2506
|
+
status: 'known';
|
|
2507
|
+
inputTokens: number;
|
|
2508
|
+
outputTokens: number;
|
|
2509
|
+
cachedTokens: number;
|
|
2510
|
+
} | {
|
|
2511
|
+
status: 'unknown';
|
|
2512
|
+
reason: string;
|
|
2513
|
+
};
|
|
2514
|
+
type SearchCostAccounting = {
|
|
2515
|
+
status: 'known';
|
|
2516
|
+
usd: number;
|
|
2517
|
+
source: 'provider' | 'pricing-table' | 'free';
|
|
2518
|
+
} | {
|
|
2519
|
+
status: 'unknown';
|
|
2520
|
+
/** Known spend may still be a lower bound when one call was unpriced. */
|
|
2521
|
+
knownLowerBoundUsd: number;
|
|
2522
|
+
reason: string;
|
|
2523
|
+
};
|
|
2524
|
+
interface SearchAttemptAccounting {
|
|
2525
|
+
tokens: SearchTokenAccounting;
|
|
2526
|
+
cost: SearchCostAccounting;
|
|
2527
|
+
}
|
|
2528
|
+
interface SearchFailureReason {
|
|
2529
|
+
code: string;
|
|
2530
|
+
message: string;
|
|
2531
|
+
}
|
|
2532
|
+
type SearchTaskOutcome = {
|
|
2533
|
+
status: 'passed';
|
|
2534
|
+
score: number;
|
|
2535
|
+
metrics: Record<string, number>;
|
|
2536
|
+
} | {
|
|
2537
|
+
status: 'failed';
|
|
2538
|
+
score: number;
|
|
2539
|
+
metrics: Record<string, number>;
|
|
2540
|
+
failure: SearchFailureReason;
|
|
2541
|
+
} | {
|
|
2542
|
+
status: 'errored';
|
|
2543
|
+
metrics: Record<string, number>;
|
|
2544
|
+
error: SearchFailureReason & {
|
|
2545
|
+
retryable: boolean;
|
|
2546
|
+
};
|
|
2547
|
+
};
|
|
2548
|
+
type SearchSurfaceEffect = {
|
|
2549
|
+
status: 'measured';
|
|
2550
|
+
metric: string;
|
|
2551
|
+
baselineValue: number;
|
|
2552
|
+
candidateValue: number;
|
|
2553
|
+
delta: number;
|
|
2554
|
+
} | {
|
|
2555
|
+
status: 'not-measured';
|
|
2556
|
+
reason: string;
|
|
2557
|
+
};
|
|
2558
|
+
/** Per-attempt proof that a declared candidate surface was or was not active,
|
|
2559
|
+
* plus measured effect when the experiment supports attribution. */
|
|
2560
|
+
interface SearchSurfaceEvidence {
|
|
2561
|
+
surfaceId: string;
|
|
2562
|
+
fired: boolean;
|
|
2563
|
+
firingCount: number;
|
|
2564
|
+
effect: SearchSurfaceEffect;
|
|
2565
|
+
evidence: SearchArtifactRef[];
|
|
2566
|
+
}
|
|
2567
|
+
interface SearchLedgerEventBase {
|
|
2568
|
+
eventId: string;
|
|
2569
|
+
occurredAt: string;
|
|
2570
|
+
artifacts: SearchArtifactRef[];
|
|
2571
|
+
}
|
|
2572
|
+
interface SearchPlannedEvent extends SearchLedgerEventBase {
|
|
2573
|
+
kind: 'search-planned';
|
|
2574
|
+
plan: SearchPlan;
|
|
2575
|
+
}
|
|
2576
|
+
interface SearchCandidateRegisteredEvent extends SearchLedgerEventBase {
|
|
2577
|
+
kind: 'candidate-registered';
|
|
2578
|
+
slotId: string;
|
|
2579
|
+
generationOperationId: string;
|
|
2580
|
+
candidateId: string;
|
|
2581
|
+
lineage: SearchCandidateLineage;
|
|
2582
|
+
surfaces: SearchCandidateSurface[];
|
|
2583
|
+
}
|
|
2584
|
+
interface SearchCandidateSlotClosedEvent extends SearchLedgerEventBase {
|
|
2585
|
+
kind: 'candidate-slot-closed';
|
|
2586
|
+
slotId: string;
|
|
2587
|
+
generationOperationId: string;
|
|
2588
|
+
reason: SearchFailureReason;
|
|
2589
|
+
}
|
|
2590
|
+
interface SearchTaskAttemptedEvent extends SearchLedgerEventBase {
|
|
2591
|
+
kind: 'task-attempted';
|
|
2592
|
+
candidateId: string;
|
|
2593
|
+
runId: string;
|
|
2594
|
+
attemptIndex: number;
|
|
2595
|
+
task: {
|
|
2596
|
+
taskId: string;
|
|
2597
|
+
source: SearchSourceRef;
|
|
2598
|
+
};
|
|
2599
|
+
identity: {
|
|
2600
|
+
model: SearchModelIdentity;
|
|
2601
|
+
agent: SearchSourceRef;
|
|
2602
|
+
benchmark: SearchSourceRef;
|
|
2603
|
+
};
|
|
2604
|
+
outcome: SearchTaskOutcome;
|
|
2605
|
+
accounting: SearchAttemptAccounting;
|
|
2606
|
+
surfaceEvidence: SearchSurfaceEvidence[];
|
|
2607
|
+
}
|
|
2608
|
+
interface SearchOperationRecordedEvent extends SearchLedgerEventBase {
|
|
2609
|
+
kind: 'search-operation-recorded';
|
|
2610
|
+
operationId: string;
|
|
2611
|
+
operationKind: SearchOperationKind;
|
|
2612
|
+
execution: {
|
|
2613
|
+
kind: 'model';
|
|
2614
|
+
model: SearchModelIdentity;
|
|
2615
|
+
source: SearchSourceRef;
|
|
2616
|
+
} | {
|
|
2617
|
+
kind: 'deterministic';
|
|
2618
|
+
source: SearchSourceRef;
|
|
2619
|
+
};
|
|
2620
|
+
outcome: {
|
|
2621
|
+
status: 'completed';
|
|
2622
|
+
} | {
|
|
2623
|
+
status: 'partial';
|
|
2624
|
+
failure: SearchFailureReason;
|
|
2625
|
+
} | {
|
|
2626
|
+
status: 'failed';
|
|
2627
|
+
failure: SearchFailureReason;
|
|
2628
|
+
};
|
|
2629
|
+
accounting: SearchAttemptAccounting;
|
|
2630
|
+
}
|
|
2631
|
+
interface SearchCandidateDecidedEvent extends SearchLedgerEventBase {
|
|
2632
|
+
kind: 'candidate-decided';
|
|
2633
|
+
candidateId: string;
|
|
2634
|
+
decision: {
|
|
2635
|
+
status: 'selected';
|
|
2636
|
+
} | {
|
|
2637
|
+
status: 'rejected';
|
|
2638
|
+
reason: SearchFailureReason;
|
|
2639
|
+
};
|
|
2640
|
+
}
|
|
2641
|
+
interface SearchCompletedEvent extends SearchLedgerEventBase {
|
|
2642
|
+
kind: 'search-completed';
|
|
2643
|
+
result: {
|
|
2644
|
+
status: 'selected';
|
|
2645
|
+
candidateId: string;
|
|
2646
|
+
} | {
|
|
2647
|
+
status: 'all-rejected';
|
|
2648
|
+
reason: SearchFailureReason;
|
|
2649
|
+
};
|
|
2650
|
+
}
|
|
2651
|
+
type SearchLedgerEvent = SearchPlannedEvent | SearchCandidateRegisteredEvent | SearchCandidateSlotClosedEvent | SearchTaskAttemptedEvent | SearchOperationRecordedEvent | SearchCandidateDecidedEvent | SearchCompletedEvent;
|
|
2652
|
+
interface SearchLedgerEntry {
|
|
2653
|
+
schema: typeof SEARCH_LEDGER_SCHEMA;
|
|
2654
|
+
campaignId: string;
|
|
2655
|
+
sequence: number;
|
|
2656
|
+
previousHash: SearchLedgerHash | null;
|
|
2657
|
+
event: SearchLedgerEvent;
|
|
2658
|
+
entryHash: SearchLedgerHash;
|
|
2659
|
+
}
|
|
2660
|
+
type SearchAccountingAudit = {
|
|
2661
|
+
status: 'known';
|
|
2662
|
+
inputTokens: number;
|
|
2663
|
+
outputTokens: number;
|
|
2664
|
+
cachedTokens: number;
|
|
2665
|
+
costUsd: number;
|
|
2666
|
+
} | {
|
|
2667
|
+
status: 'partial';
|
|
2668
|
+
knownInputTokens: number;
|
|
2669
|
+
knownOutputTokens: number;
|
|
2670
|
+
knownCachedTokens: number;
|
|
2671
|
+
knownCostUsd: number;
|
|
2672
|
+
unknownTokenEventIds: string[];
|
|
2673
|
+
unknownCostEventIds: string[];
|
|
2674
|
+
};
|
|
2675
|
+
interface SearchLedgerAudit {
|
|
2676
|
+
campaignId: string;
|
|
2677
|
+
eventCount: number;
|
|
2678
|
+
candidateCount: number;
|
|
2679
|
+
closedCandidateSlotCount: number;
|
|
2680
|
+
attemptCount: number;
|
|
2681
|
+
operationCount: number;
|
|
2682
|
+
outcomes: {
|
|
2683
|
+
passed: number;
|
|
2684
|
+
failed: number;
|
|
2685
|
+
errored: number;
|
|
2686
|
+
};
|
|
2687
|
+
operationOutcomes: {
|
|
2688
|
+
completed: number;
|
|
2689
|
+
partial: number;
|
|
2690
|
+
failed: number;
|
|
2691
|
+
};
|
|
2692
|
+
decisions: {
|
|
2693
|
+
selected: number;
|
|
2694
|
+
rejected: number;
|
|
2695
|
+
pending: number;
|
|
2696
|
+
};
|
|
2697
|
+
expected: {
|
|
2698
|
+
candidateSlots: number;
|
|
2699
|
+
taskOutcomes: number;
|
|
2700
|
+
operations: number;
|
|
2701
|
+
missingCandidateSlots: string[];
|
|
2702
|
+
missingTaskOutcomes: string[];
|
|
2703
|
+
missingOperations: string[];
|
|
2704
|
+
};
|
|
2705
|
+
status: 'in-progress' | 'selected' | 'all-rejected';
|
|
2706
|
+
selectedCandidateId: string | null;
|
|
2707
|
+
accounting: SearchAccountingAudit;
|
|
2708
|
+
headHash: SearchLedgerHash | null;
|
|
2709
|
+
}
|
|
2710
|
+
interface SearchLedgerReplay {
|
|
2711
|
+
entries: SearchLedgerEntry[];
|
|
2712
|
+
plan: SearchPlannedEvent | null;
|
|
2713
|
+
candidates: SearchCandidateRegisteredEvent[];
|
|
2714
|
+
closedCandidateSlots: SearchCandidateSlotClosedEvent[];
|
|
2715
|
+
attempts: SearchTaskAttemptedEvent[];
|
|
2716
|
+
operations: SearchOperationRecordedEvent[];
|
|
2717
|
+
decisions: SearchCandidateDecidedEvent[];
|
|
2718
|
+
completion: SearchCompletedEvent | null;
|
|
2719
|
+
audit: SearchLedgerAudit;
|
|
2720
|
+
}
|
|
2721
|
+
interface SearchLedgerAppendResult {
|
|
2722
|
+
entry: SearchLedgerEntry;
|
|
2723
|
+
/** False when the exact event was already durably present. */
|
|
2724
|
+
appended: boolean;
|
|
2725
|
+
replay: SearchLedgerReplay;
|
|
2726
|
+
}
|
|
2727
|
+
/** Validate and return a canonical copy. Arrays whose order is not semantic are
|
|
2728
|
+
* sorted so retries from different processes produce byte-identical events. */
|
|
2729
|
+
declare function validateSearchLedgerEvent(input: unknown): SearchLedgerEvent;
|
|
2730
|
+
interface OpenSearchLedgerOptions {
|
|
2731
|
+
path: string;
|
|
2732
|
+
campaignId: string;
|
|
2733
|
+
}
|
|
2734
|
+
interface SearchLedger {
|
|
2735
|
+
readonly path: string;
|
|
2736
|
+
readonly campaignId: string;
|
|
2737
|
+
append(event: SearchLedgerEvent): Promise<SearchLedgerAppendResult>;
|
|
2738
|
+
replay(): Promise<SearchLedgerReplay>;
|
|
2739
|
+
}
|
|
2740
|
+
/** Open a durable filesystem search ledger. Construction performs no I/O; the
|
|
2741
|
+
* first `append` or `replay` validates the complete existing file. */
|
|
2742
|
+
declare function openSearchLedger(options: OpenSearchLedgerOptions): SearchLedger;
|
|
2743
|
+
declare class FileSearchLedger implements SearchLedger {
|
|
2744
|
+
readonly path: string;
|
|
2745
|
+
readonly campaignId: string;
|
|
2746
|
+
private readonly mutex;
|
|
2747
|
+
constructor(path: string, campaignId: string);
|
|
2748
|
+
replay(): Promise<SearchLedgerReplay>;
|
|
2749
|
+
append(input: SearchLedgerEvent): Promise<SearchLedgerAppendResult>;
|
|
2750
|
+
}
|
|
2751
|
+
|
|
2148
2752
|
/**
|
|
2149
2753
|
* Single-run lock for evaluations that share one mutable environment.
|
|
2150
2754
|
*
|
|
@@ -2294,4 +2898,4 @@ declare function verifyCodeSurface(surface: CodeSurface, worktreeDir?: string):
|
|
|
2294
2898
|
* identity against the checkout at `worktreeRef`. */
|
|
2295
2899
|
declare function resolveWorktreePath(surface: CodeSurface, worktreeDir?: string): string;
|
|
2296
2900
|
|
|
2297
|
-
export { type AcceptedEdit, type AceProposerOptions, type AnalystArtifact, type AnalystScenario, type ApplySkillPatchResult, type BuildAnalystSurfaceDispatchOptions, type CampaignBreakdown, CampaignResult, CampaignRunPlan, CampaignStorage, CodeSurface, type CodeSurfaceVerification, type CompareProposersOptions, type CompositeProposerOptions, type DimensionRegression, type DiscriminationScore, DispatchContext, type EvalFixture, type EvalFixtureFile, type EvalFixtureLoadOptions, type EvalFixtureRunPlan, type EvalFixtureScenario, type EvalFixtureValidationMode, type FailureModeRecallJudgeOptions, type FapoAttributionSignals, type FapoEntryConfig, type FapoFailureCluster, type FapoOptimizationLevel, type FapoProposerOptions, type FapoReviewInput, type FapoReviewIssue, type FapoReviewResult, type FapoScopeContract, FsLabeledScenarioStore, type FsLabeledScenarioStoreOptions, Gate, GenerationRecord, type GitWorktreeAdapterOptions, type Governor, type GovernorContext, type GovernorOp, type HaloProposerOptions, type HeldoutSignificance, type HeldoutSignificanceOptions, type HeuristicGovernorOptions, type JsonPrimitive, type JsonValue, JudgeConfig, JudgeScore, LabelTrust, LabeledScenarioRecord, LabeledScenarioSampleArgs, LabeledScenarioSource, LabeledScenarioStore, LabeledScenarioStoreError, LabeledScenarioWrite, Lineage, type LineageEdge, type LineageGraph, type LineageNode, type LineageNodeInput, type LineageStore, type LoadEvalFixtureScenariosOptions, type MemoryCurationProposerOptions, MutableSurface, type NeutralizationGateOptions, type OptimizerEntryConfig, type PairedHoldout, type ParameterCandidate, type ParameterChange, type ParameterSweepProposerOptions, PlanCampaignRunOptions, type PlanEvalFixtureRunOptions, type PlaybackContext, type PlaybackDriver, type PlaybackStep, type PolicyEditProposerOptions, type ProfileDispatchFn, ProfileMatrixError, type ProfileSummary, ProposeContext, type ProposePatchesArgs, ProposedCandidate, type ProposerComparison, type ProposerEntry, type ProposerPairwise, type ProposerScore, type RejectedEdit, type RolloutArgumentDiff, type RolloutArgumentDiffOptions, type RolloutCall, RunCampaignOptions, RunImprovementLoopOptions, type RunLineageLoopOptions, type RunLineageLoopResult, type RunLineageLoopSeed, type RunLineageOptions, type RunLineageResult, type RunLineageSeed, type RunLineageStepResult, type RunProfileMatrixOptions, type RunProfileMatrixResult, type RunSkillOptOptions, type RunSkillOptResult, Scenario, type ScenarioRollup, type ScenarioSignal, type ScoreboardRenderOptions, type ScoreboardRow, type ScoreboardSummary, type ScoredRollout, type SequentialDecideFn, type SequentialDecideOptions, type SequentialDecision, type SequentialObservation, type SequentialPairedGate, type SequentialPairedGateOptions, type SingleRunLock, type SingleRunLockOptions, type SkillOptEpochRecord, type SkillOptEvidence, type SkillOptProposer, type SkillOptProposerOptions, type SkillPatch, type SkillPatchOp, SkillPatchParseError, type SkillPatchRejection, SurfaceProposer, type SurfaceScore, type TraceAnalystProposerOptions, type TransientFailureOptions, type UngroundedLiteralReport, type UserStory, type UserStoryVerdict, type Worktree, type WorktreeAdapter, WorktreeAdapterError, aceProposer, acquireSingleRunLock, applySkillPatch, assertCodeSurfaceIdentity, buildAnalystSurfaceDispatch, callbackGovernor, campaignBreakdown, campaignMeanComposite, classifyUngroundedLiterals, codeSurfaceIdentityMaterial, compareProposers, compositeProposer, detectScale, dimensionRegressions, discoverEvalFixtures, extractFapoAttributionSignals, failureModeRecallJudge, fapoEscalationEntry, fapoProposer, fsLineageStore, gepaParetoEntry, gepaReflectionEntry, gitWorktreeAdapter, haloProposer, heldoutSignificance, heuristicGovernor, isTransientTransportFailure, lineageNodeId, loadEvalFixture, loadEvalFixtureScenarios, makePlaybackDispatch, memLineageStore, memoryCurationProposer, neutralizationGate, neutralizeText, pairHoldout, parameterSweepProposer, parseSkillPatchResponse, patchEditCount, planEvalFixtureRun, policyEditProposer, renderScoreboardMarkdown, resolveRunDir, resolveWorktreePath, rolloutArgumentDiff, runLineage, runLineageLoop, runProfileMatrix, runSkillOpt, scoreDiscrimination, scoreUserStory, scoreboardSummary, selectDiscriminative, sequentialDecide, sequentialPairedGate, skillOptEntry, skillOptProposer, surfaceContentHash, surfaceHash, tangleTracesRoot, traceAnalystProposer, userStoryScoreboard, verifyCodeSurface };
|
|
2901
|
+
export { type AcceptedEdit, type AceProposerOptions, type AnalystArtifact, type AnalystScenario, type AnalyzeCrossSurfaceInteractionsInput, type ApplySkillPatchResult, type BuildAnalystSurfaceDispatchOptions, type CampaignBreakdown, CampaignResult, CampaignRunPlan, CampaignStorage, CodeSurface, type CodeSurfaceVerification, type CompareProposersOptions, type CompositeProposerOptions, type CrossSurfaceAdditionDecision, type CrossSurfaceAdditionRejectionReason, type CrossSurfaceAttemptCompleteness, type CrossSurfaceBestSingleSelection, type CrossSurfaceBootstrapPolicy, type CrossSurfaceCandidate, type CrossSurfaceCandidateComparison, type CrossSurfaceCandidateEvidence, type CrossSurfaceCandidateOutcome, type CrossSurfaceCandidateSummary, type CrossSurfaceComponent, type CrossSurfaceComponentEvidence, type CrossSurfaceCompositionStep, type CrossSurfaceDistribution, type CrossSurfaceEligibility, type CrossSurfaceEvidenceBreakdown, type CrossSurfaceIneligibilityReason, type CrossSurfaceInteractionAwareSelection, type CrossSurfaceInteractionEffect, type CrossSurfaceInteractionPath, type CrossSurfaceInteractionReport, type CrossSurfaceInteractionTask, type CrossSurfaceNaiveStackSelection, type CrossSurfacePairCompatibility, type CrossSurfacePairEvidence, type CrossSurfacePairIncompatibilityReason, type CrossSurfacePairwiseEntry, type CrossSurfaceRankedSingle, type CrossSurfaceRelativeCost, type CrossSurfaceSelectionPolicy, type CrossSurfaceSelections, type CrossSurfaceTaskRow, type DimensionRegression, type DiscriminationScore, DispatchContext, type EvalFixture, type EvalFixtureFile, type EvalFixtureLoadOptions, type EvalFixtureRunPlan, type EvalFixtureScenario, type EvalFixtureValidationMode, type FailureModeRecallJudgeOptions, type FapoAttributionSignals, type FapoEntryConfig, type FapoFailureCluster, type FapoOptimizationLevel, type FapoProposerOptions, type FapoReviewInput, type FapoReviewIssue, type FapoReviewResult, type FapoScopeContract, FileSearchLedger, FsLabeledScenarioStore, type FsLabeledScenarioStoreOptions, Gate, GenerationRecord, type GitWorktreeAdapterOptions, type Governor, type GovernorContext, type GovernorOp, type HaloProposerOptions, type HeldoutSignificance, type HeldoutSignificanceOptions, type HeuristicGovernorOptions, type JsonPrimitive, type JsonValue, JudgeConfig, JudgeScore, LabelTrust, LabeledScenarioRecord, LabeledScenarioSampleArgs, LabeledScenarioSource, LabeledScenarioStore, LabeledScenarioStoreError, LabeledScenarioWrite, Lineage, type LineageEdge, type LineageGraph, type LineageNode, type LineageNodeInput, type LineageStore, type LoadEvalFixtureScenariosOptions, type MemoryCurationProposerOptions, MutableSurface, type NeutralizationGateOptions, type OpenSearchLedgerOptions, type OptimizerEntryConfig, type PairedHoldout, type ParameterCandidate, type ParameterChange, type ParameterSweepProposerOptions, PlanCampaignRunOptions, type PlanEvalFixtureRunOptions, type PlaybackContext, type PlaybackDriver, type PlaybackStep, type PolicyEditProposerOptions, type ProfileDispatchFn, ProfileMatrixError, type ProfileSummary, ProposeContext, type ProposePatchesArgs, ProposedCandidate, type ProposerComparison, type ProposerEntry, type ProposerPairwise, type ProposerScore, type RejectedEdit, type RolloutArgumentDiff, type RolloutArgumentDiffOptions, type RolloutCall, RunCampaignOptions, RunImprovementLoopOptions, type RunLineageLoopOptions, type RunLineageLoopResult, type RunLineageLoopSeed, type RunLineageOptions, type RunLineageResult, type RunLineageSeed, type RunLineageStepResult, type RunProfileMatrixOptions, type RunProfileMatrixResult, type RunSkillOptOptions, type RunSkillOptResult, SEARCH_LEDGER_SCHEMA, Scenario, type ScenarioRollup, type ScenarioSignal, type ScoreboardRenderOptions, type ScoreboardRow, type ScoreboardSummary, type ScoredRollout, type SearchAccountingAudit, type SearchArtifactRef, type SearchAttemptAccounting, type SearchCandidateDecidedEvent, type SearchCandidateLineage, type SearchCandidateRegisteredEvent, type SearchCandidateSlot, type SearchCandidateSlotClosedEvent, type SearchCandidateSurface, type SearchCompletedEvent, type SearchCostAccounting, type SearchFailureReason, type SearchLedger, type SearchLedgerAppendResult, SearchLedgerConflictError, type SearchLedgerEntry, SearchLedgerError, type SearchLedgerEvent, type SearchLedgerHash, SearchLedgerIntegrityError, type SearchLedgerReplay, type SearchModelIdentity, type SearchOperationKind, type SearchOperationRecordedEvent, type SearchPlan, type SearchPlannedEvent, type SearchPlannedOperation, type SearchPlannedTask, type SearchSourceRef, type SearchSurfaceEffect, type SearchSurfaceEvidence, type SearchSurfaceKind, type SearchTaskAttemptedEvent, type SearchTaskOutcome, type SearchTokenAccounting, type SequentialDecideFn, type SequentialDecideOptions, type SequentialDecision, type SequentialObservation, type SequentialPairedGate, type SequentialPairedGateOptions, type SingleRunLock, type SingleRunLockOptions, type SkillOptEpochRecord, type SkillOptEvidence, type SkillOptProposer, type SkillOptProposerOptions, type SkillPatch, type SkillPatchOp, SkillPatchParseError, type SkillPatchRejection, SurfaceProposer, type SurfaceScore, type TraceAnalystProposerOptions, type TransientFailureOptions, type UngroundedLiteralReport, type UserStory, type UserStoryVerdict, type Worktree, type WorktreeAdapter, WorktreeAdapterError, aceProposer, acquireSingleRunLock, analyzeCrossSurfaceInteractions, applySkillPatch, assertCodeSurfaceIdentity, buildAnalystSurfaceDispatch, callbackGovernor, campaignBreakdown, campaignMeanComposite, classifyUngroundedLiterals, codeSurfaceIdentityMaterial, compareProposers, compositeProposer, detectScale, dimensionRegressions, discoverEvalFixtures, extractFapoAttributionSignals, failureModeRecallJudge, fapoEscalationEntry, fapoProposer, fsLineageStore, gepaParetoEntry, gepaReflectionEntry, gitWorktreeAdapter, haloProposer, heldoutSignificance, heuristicGovernor, isTransientTransportFailure, lineageNodeId, loadEvalFixture, loadEvalFixtureScenarios, makePlaybackDispatch, memLineageStore, memoryCurationProposer, neutralizationGate, neutralizeText, openSearchLedger, pairHoldout, parameterSweepProposer, parseSkillPatchResponse, patchEditCount, planEvalFixtureRun, policyEditProposer, renderScoreboardMarkdown, resolveRunDir, resolveWorktreePath, rolloutArgumentDiff, runLineage, runLineageLoop, runProfileMatrix, runSkillOpt, scoreDiscrimination, scoreUserStory, scoreboardSummary, selectDiscriminative, sequentialDecide, sequentialPairedGate, skillOptEntry, skillOptProposer, surfaceContentHash, surfaceHash, tangleTracesRoot, traceAnalystProposer, userStoryScoreboard, validateSearchLedgerEvent, verifyCodeSurface };
|