~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.
Python academiaanthropicarxivbravedeep-researchencryptionhome-automationhomeserverlocallocal-deep-researchlocal-llmmistralollamaopenaipubmedresearchresearch-toolretrieval-augmented-generationsearxngself-hosted
docs(db): document password-change returns and rekey errors (#6898)
LearningCircuit57678e0ab8c0
diff --git a/src/local_deep_research/database/encrypted_db.py b/src/local_deep_research/database/encrypted_db.pyindex 39ffb65f1a..63cae4cc0c 100644--- a/src/local_deep_research/database/encrypted_db.py+++ b/src/local_deep_research/database/encrypted_db.py@@ -3258,6 +3258,30 @@ class DatabaseManager:This rekeys the SQLCipher database — no separate auth-DBpassword-hash update is needed because passwords are neverstored. Login verification is done by attempting decryption.++ Returns:+ bool: True once the new password is verified as active, even+ if publishing its rekey epoch must be retried on the next+ successful open. False when SQLCipher is unavailable, the+ database path is refused as a symlink, or the old password+ fails key verification, including pending-rekey recovery.+ The username is validated first; without SQLCipher, False is+ returned before either password is validated.++ Raises:+ ValueError: If the username is None or empty, or SQLCipher is+ available and either password is None, empty, or+ whitespace-only. Invalid keys are rejected before the+ database is accessed (#6353).+ RekeyLockContentionError: If another password change owns the+ lock or the rekey lock cannot be acquired in time.+ RekeyUnavailableError: If the database is missing or an+ operational failure prevents the change without an+ indeterminate rekey outcome.+ RekeyRecoveryRequiredError: If durable rekey metadata requires+ verified recovery before the change can proceed.+ RekeyIndeterminateError: If rekey has started and durable state+ cannot establish which password remains active."""db_path = self._get_user_db_path(username)if not self.has_encryption: