pub fn save_codex_cache(snap: &CodexQuotaSnapshot) -> Result<()>
Persists the Codex quota snapshot atomically.