test_needs_query_rewrite imports Bot from bot.py which reads
MATRIX_HOMESERVER etc. at module level — KeyError in CI where those
vars are not set. This has blocked all deploys since c2985488.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Unverified devices (lacking cross-signing) caused OlmUnverifiedDeviceError
in _send_text(), silently breaking all message delivery. Now on_sync()
blacklists non-cross-signed devices instead of skipping them, and
_send_text() catches E2EE errors gracefully.
Adds 12 unit tests for device trust policy and send error handling.
CI test job now gates deployment in deploy.yml.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>