A future can miss a wake between checking readiness and storing its Waker. Register first, recheck state, and let AtomicWaker coordinate concurrent registration with wake calls.
Force a stale-worker history with SQLx and PostgreSQL. Check the current lease generation in the same statement that commits the local business effect.
Your tenant has enough documents, but an HNSW query returns too few. Compare real plans, iterative scans, and an exact fallback without weakening access checks.
A good answer can still use the wrong document. Test tenant access, stale embeddings, deletion, and context size before sending retrieved text to a model.