Deterministic memory/context pipeline with semantic retrieval checks, compression/lint, safe fallback, and memory watchdog.