~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.
fix(database): close the stale-publish window around a password change
An open_user_database(old_password) that verified against the
still-old-keyed file can no longer publish its OLD-key engine after the
rekey lands. Every cold open now holds the user's rekey sidecar lock from
its epoch read through its publish, so a password change waits for it to
finish (up to 10 seconds for one in the same process and 1 second for one
in another process, after which the change fails as contended) and then
detaches that engine before rekeying, and a cached
engine is only handed out while its recorded durable rekey epoch is the
committed one, so even an engine cached under a superseded epoch is
detached instead of being returned without a SQLCipher round-trip.
(#6565 first closed this window with an in-process rekey-generation
counter checked at publish time; the durable, cross-process epoch in
#6662 supersedes it and the counter is removed.)
Also fixes the race tests' _engine_usable helper to probe a real table
read (sqlite_master) instead of SELECT 1, which under SQLCipher
succeeds on a mis-keyed engine and measured pool liveness rather than key
validity.
Pinned by test_rekey_epoch_refuses_stale_old_publish,
test_open_cold_refuses_stale_publish_and_disposes,
test_change_password_eviction_window_handles_concurrent_publish_deterministically,
and test_engine_usable_rejects_mis_keyed_engine in
tests/security/test_db_connection_change_password_race.py.