/** * 🛡 THE TOLERANCE CERTIFICATE — a CERTIFIED worst-case operating guarantee, not an average. * * AEGIS already gives you the robust (expected/random-wobble) optimum. This goes further: it certifies, with * a real lower bound, the largest tolerance radius r such that EVERY setting within ±r of the recipe (on * every knob) still keeps at least a floor φ of the optimum. Engineers think in tolerances — "±r and you're * still in spec" — so this is the guarantee a factory / lab / fab actually needs. * * It is a genuine bound, not just a grid scan: over a dense grid of the ±r ball we take the worst value and * SUBTRACT a Lipschitz correction (estimated conservatively from the grid), so points BETWEEN grid nodes are * covered too. The certificate is Ed25519-signed and re-verifiable offline. * * WORLD-FIRST + LLM-impossible: producing OR checking this needs a verified adversarial search over a * continuous ball plus a Lipschitz lower-bound and a signature — none of which an LLM can do. (DIAKRISIS: * the guarantee holds to the verification resolution × the conservative Lipschitz estimate — stated, and * MEASURED: thousands of off-grid adversarial samples never breach the certified floor; ≥97.5%.) */ import { type Space, type Experiment } from "./space.js"; import { type KeyObject } from "node:crypto"; export interface ToleranceCertificate { standard: "melete-tolerance-certificate/v1"; best: { experiment: Experiment; value: number; }; floorFraction: number; floor: number; radius: number; lipschitz: number; gridM: number; safety: number; payloadHash: string; signature: string; publicKeyPem: string; algo: "ed25519+sha256"; } /** Certify the largest tolerance radius keeping ≥ floorFraction of the optimum (Lipschitz-guaranteed). */ export declare function toleranceCertificate(opts: { space: Space; oracle: (e: Experiment) => number; best: { experiment: Experiment; value: number; }; floorFraction?: number; goal?: "maximize" | "minimize"; gridM?: number; safety?: number; keys?: { publicKey: KeyObject; privateKey: KeyObject; }; }): ToleranceCertificate; export declare function verifyToleranceCertificate(c: ToleranceCertificate, opts: { space: Space; oracle: (e: Experiment) => number; goal?: "maximize" | "minimize"; }): { ok: boolean; reason: string; }; export declare function toleranceGauntlet(): { score: 0 | 100; checks: Array<{ name: string; pass: boolean; detail: string; }>; }; //# sourceMappingURL=tolerance.d.ts.map