fix account deletion: exclude deleted users from tracked DID refresh
The 1-second refresh timer was re-reading all users from SQLite without
filtering deleted_at, causing soft-deleted users to be re-added to
trackedDids one second after deletion. This violated spec §6 Flow 1's
promise that account deletion is honored.
Fix: add .whereNull('deleted_at') to the readTrackedDids query in
jetstream_consume.ts so the refresh never re-admits deleted users.
Also adds two regression tests:
- jetstream_consumer.spec.ts: verifies that after refreshTrackedDids()
returns a set that excludes a user (simulating the deleted_at filter),
subsequent likes for that user are dropped
- lucid_schemas.spec.ts: verifies that the .whereNull('deleted_at') SQL
filter actually excludes rows with deleted_at set in real SQLite
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>