Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

1008 B
Raw Blame

fix(database): dispose overwritten engine on cache publish + degrade on corrupt verifier

  • When a cache publish overwrites a previously cached engine for the same user, the overwritten engine is disposed exactly once (after a WAL checkpoint, outside the global connection-cache lock) instead of lingering with its SQLCipher pool and file handle until garbage collection. A same-identity republish disposes nothing.

  • A malformed cached password verifier (anything that is not a (salt, digest) pair of bytes) now counts as "no match" on both the cache-hit path and the cold-open path, so a login falls through to a key-validating open instead of failing with a TypeError / ValueError. Well-formed entries are the only ones the manager produces, so a corrupt entry can only come from external mutation.

Pinned by test_cache_connection_disposes_overwritten_engine and test_verifier_matches_degrades_on_corrupt_entry in tests/security/test_db_connection_change_password_race.py.