PASS: concurrent registration: one 201, seven 409
PASS: foreign-key failure rolls back chat and first member
PASS: strict payload validation and authentication before resource access
PASS: keyset pagination, changing limit, cross-chat cursor rejection
PASS: equal timestamps use UUID tie breaker
PASS: Unicode/colon password, wrong password, cache TTL and logout with warm cache
PASS: Redis outage falls back safely and cache recovers
PASS: DB outage fails closed with 503; same session works after recovery
PASS: SESSION_TTL_SECONDS=2 expires a warm-cache session
PASS: migrations are repeatable without duplicate data
