/** * GUARDIAN — the always-on guardrail that turns Melete from "tune it once" into "watches your system 24/7". * A one-and-done optimizer creates value in bursts; a Guardian creates RECURRING value: it runs as a * background loop beside a live system, watches a metric you care about (tokens/sec, latency, yield, error * rate), and when conditions drift or breach a safe threshold it raises the alarm and proposes a fresh, * ROBUST configuration to recover — instead of waiting for a human to notice at 2 a.m. * * guardianTick() is the heartbeat: feed it the recent metric history + your baseline, and it returns a * status (STABLE / DEGRADING / BREACH) and, when warranted, a re-tune recommendation. It is deterministic * and dependency-free, so it can run as a daemon anywhere. * * Honest by construction (DIAKRISIS): the Guardian DETECTS and RECOMMENDS — it proposes a re-tune and hands * back the new config; APPLYING that to a production system is the customer's own integration, behind their * own safety gate (we never silently push changes to live infrastructure, and we don't claim to). Drift / * breach detection is a transparent statistical rule over the metric you supply, with a dead-band so noise * alone never trips a false alarm. */ export type GuardianStatus = "stable" | "degrading" | "breach" | "unknown"; export interface GuardianVerdict { status: GuardianStatus; current: number; baseline: number; driftPct: number; recommendRetune: boolean; note: string; } /** * One heartbeat of the guardrail. `history` = recent metric samples (oldest→newest). `lowerIsBetter` for * latency/error-rate. `breachFrac`: a drop worse than this fraction of baseline = BREACH (default 0.15). */ export declare function guardianTick(history: ReadonlyArray, opts?: { baseline?: number; lowerIsBetter?: boolean; breachFrac?: number; degradeFrac?: number; window?: number; }): GuardianVerdict; export declare function guardianGauntlet(): { score: 0 | 100; checks: Array<{ name: string; pass: boolean; detail: string; }>; }; //# sourceMappingURL=guardian.d.ts.map