python3 tests/own/grade4.py
PASS: wrong password, unknown user, Bearer-only access, X-User-Id ignored, logout
PASS: 128-code-point Unicode password including colon; suffix verified
PASS: HTTP registration race: one 201, seven 409
PASS: redis outage bounded; live=200, ready=503, protected=503, anonymous=401; session recovered, logout retained
PASS: postgres outage bounded; live=200, ready=503, protected=503, anonymous=401; session recovered, logout retained
PASS: cursor and existing session survive API restart
PASS: SESSION_TTL_SECONDS=2 expires; Redis restart does not revive expired session
PASS: all grade-4 HTTP checks; normal TTL restored to 3600
