/** * Panic Response Layer — centralized constants. * * Single source of truth for all numeric thresholds, weights, cooldowns, and * timing values used across the panic subsystem (panic-response.ts, * epistemic-lease.ts). Exported so tests can reference these values directly * rather than hard-coding snapshots that silently diverge. */ import type { PanicLevel } from './panic-response.js'; import type { PanicCheckOutput } from './panic-response.js'; /** Score required to transition upward from level N to N+1. */ export declare const PANIC_UP_THRESHOLD: Record; /** Score below which level N drops to N−1. Separate from UP to prevent thrashing. */ export declare const PANIC_DOWN_THRESHOLD: Record; /** Trajectory burst signal: density ≥ threshold fires this delta. */ export declare const PANIC_TRAJECTORY_DENSITY = 0.6; export declare const PANIC_TRAJECTORY_DELTA = 15; /** Oscillation spike signal: oscillation ≥ threshold fires this delta. */ export declare const PANIC_OSCILLATION_THRESHOLD = 0.5; export declare const PANIC_OSCILLATION_DELTA = 10; /** Stale-depth-3 persistence signal (gated by localityConfidence < threshold). */ export declare const PANIC_STALE_D3_LOCALITY_GATE = 0.5; export declare const PANIC_STALE_D3_DELTA = 25; /** Locality recovery: per-call score reduction when agent is stable. */ export declare const PANIC_LOCALITY_RECOVERY = 3; /** Passive wall-clock decay: score reduction per elapsed minute. */ export declare const PANIC_DECAY_PER_MIN = 5; /** Hard ceiling on panic score. */ export declare const PANIC_SCORE_MAX = 100; /** Post-orient() refractory window — upward signals suppressed for this long. */ export declare const PANIC_REFRACTORY_MS = 45000; /** Session expiry — panic state older than this is discarded on read. */ export declare const PANIC_SESSION_EXPIRY_MS: number; /** * Minimum ms between hook interventions per panic level. * Prevents context saturation and habituation from repeated injection. * L4 = 0: every tool call warned at critical level. */ export declare const HOOK_COOLDOWN_MS: Record; /** Repetitive retry burst (low entropy + failing commands). */ export declare const GRYPH_RETRY_BURST_DELTA = 15; /** Large patch while stale, low command entropy (non-deliberate). */ export declare const GRYPH_LARGE_PATCH_LOW_ENTROPY_DELTA = 30; /** Large patch while stale, high command entropy (deliberate refactor — attenuated). */ export declare const GRYPH_LARGE_PATCH_HIGH_ENTROPY_DELTA = 10; /** LOC threshold for "large patch" classification. */ export declare const GRYPH_LARGE_PATCH_LOC_THRESHOLD = 500; /** Command entropy below this = low-diversity / retry loop. */ export declare const GRYPH_ENTROPY_LOW_THRESHOLD = 0.3; /** Command entropy above this = deliberate exploratory work (attenuation gate). */ export declare const GRYPH_ENTROPY_HIGH_THRESHOLD = 0.6; /** Failure rate above this triggers burst signal regardless of entropy (mixed-window robustness). */ export declare const GRYPH_FAILING_RATE_THRESHOLD = 0.3; /** Default poll interval for background Gryph behavioral ingestion. */ export declare const GRYPH_POLL_INTERVAL_MS = 15000; /** Minimum allowed poll interval (env override floor). */ export declare const GRYPH_POLL_INTERVAL_MIN_MS = 5000; export declare const SEVERITY_MAP: Record; //# sourceMappingURL=panic-constants.d.ts.map