/** * Agentic QE v3 - Early Exit Testing * ADR-033: Lambda-stability decisions with speculative execution * * This module provides intelligent test layer skipping based on quality signals. * When early layers show high confidence (stable lambda), deeper layers can be skipped * with speculative predictions for their outcomes. * * @example * ```typescript * import { * EarlyExitController, * DEFAULT_EXIT_CONFIG, * createEarlyExitController, * } from '@agentic-qe/v3/early-exit'; * * const controller = createEarlyExitController(4); * * const result = await controller.runWithEarlyExit(layers, async (layer) => { * return await testRunner.execute(layer); * }); * * if (result.exitedEarly) { * console.log(`Early exit at layer ${result.exitLayer}`); * console.log(`Saved ${result.computeSavings}ms`); * console.log(`Confidence: ${result.confidence * 100}%`); * } * ``` * * @module early-exit */ export type { TestLayerType, TestLayer, LayerResult, TestResult, QualitySignal, ExitReason, EarlyExitDecision, EarlyExitConfig, PredictedOutcome, SpeculativeResult, SpeculativeBatch, TestPyramidResult, EarlyExitMetrics, } from './types'; export { DEFAULT_EXIT_CONFIG, AGGRESSIVE_EXIT_CONFIG, CONSERVATIVE_EXIT_CONFIG, QualityFlags, } from './types'; export { calculateQualitySignal, calculateLambdaStability, calculateConfidence, countQualityPartitions, createQualitySignal, isStableForExit, } from './quality-signal'; export { CoherenceEarlyExit, createEarlyExit, createAggressiveEarlyExit, createConservativeEarlyExit, createCustomEarlyExit, } from './early-exit-decision'; export { SpeculativeExecutor, createSpeculativeExecutor, type LayerHistory, type IPredictionModel, } from './speculative-executor'; export { EarlyExitController, createEarlyExitController, createAggressiveController, createConservativeController, createCustomController, type LayerExecutor, type EarlyExitEvents, } from './early-exit-controller'; //# sourceMappingURL=index.d.ts.map