/** * Deterministic bounded drift detection. * * Detectors are deterministic and bounded; drift never automatically changes * the active policy. Drift generates evaluation recommendations. Safety drift * is high priority. Minimum sample counts are enforced and no unsupported * statistical certainty is claimed. */ import type { DriftConfig, DriftResult } from "./types.js"; export type DriftDimension = "quality" | "cost" | "latency" | "failure_cluster" | "retrieval" | "task_distribution" | "flakiness" | "policy_selection"; declare const DEFAULT_CONFIG: Record; export interface DriftHealth { ok: boolean; reasons: string[]; } /** Check drift detector health (read-only). */ export declare function checkDriftHealth(): DriftHealth; /** * Record a sample for a dimension and detect drift over the trailing window. * Compares the last half of the window against the first half using a simple * deterministic mean-delta detector (documented as such). */ export declare function detectDrift(dimension: DriftDimension, value: number, config?: Partial): DriftResult; /** * Pure deterministic drift computation over an explicit sample window. This is * the unit of testing: it never reads persistent storage, so results are fully * reproducible and do not depend on previously recorded samples. */ export declare function computeDrift(dimension: DriftDimension, samples: { t: number; v: number; }[], config?: Partial): DriftResult; export { DEFAULT_CONFIG as DRIFT_DEFAULT_CONFIG }; //# sourceMappingURL=drift.d.ts.map