Weekly update: SQLite connection resilience and MCP server lock recovery
This week's updates focused on operational durability: Engraphis 1.7.11 resolves SQLite transaction lock pin leaks under long-running agent sessions and introduces automatic connection recovery.
1. Resilient MCP SQLite connection recovery
Coding agents often keep background MCP servers running continuously for days. Under intense concurrency or external database compaction, connection descriptors could become stale. In 1.7.11, we implemented active device and inode tracking (_opened_identity) alongside Store.is_stale() and Store.reconnect() to detect and heal disconnected handles transparently.
2. Transaction lock pin leak prevention
We resolved an issue where rollback errors could inadvertently leave transaction locks pinned in worker threads. Connection serialization now guarantees that locks are released even when a rollback encounters a driver error, preventing worker timeouts and hanging queries.
3. Sanitized error reporting and single-retry loops
To eliminate query or credential leakage in server logs, we introduced safe exception classification distinguishing SQLITE_BUSY, SQLITE_LOCKED, and SQLITE_CORRUPT without printing raw SQL statements. We also added single-retry recovery loops across engraphis_recall_context, engraphis_recall, engraphis_recall_grounded, and engraphis_get_memory to smooth over momentary driver contention.
A background memory engine should survive database vacuums, driver retries, and long agent sessions without flinching.
See it running on your machine
Free and Apache-2.0. Install the complete local core without a hosted account.
Optional Pro adds memory-health analytics, scheduled upkeep, and Cloud Sync. Seven-day trial after email verification; no card required.
$10/month or $100/year when you subscribe. Sync and readable managed processing are separate opt-in choices.