Implement robust detection of LLM coding-agent storage corruptions (e.g. SQLite page corruption database disk image is malformed in ~/.gemini/antigravity-cli/conversations) and unhandled panic signatures (such as nil-pointer dereferences during trajectory loading) within uncrash diagnostics and recovery.
check_sqlite_integrity(path) for preflight validation of agent SQLite databases using PRAGMA quick_check.scan_agent_log_panics(log_dir) to detect unhandled panic signatures in agent host logs.check_agent_storage_health(home) providing comprehensive diagnostic status (HEALTHY, DEGRADED, CORRUPTED).salvage_agent_session_db(source, dest) to safely quarantine and salvage corrupted session databases into clean stores.tests/test_diagnostics.py verifying detection of corrupt databases, log panics, and database salvage.This directory contains the minimal reviewed intent. Optional participant prose and raw command logs are not required delivery output.