# 2026-11-22T19:20:24Z commit=n/a host=Linux 6.18.44-fc-v726 x86_64 cpus=2
$ dc run --rm --no-deps -T -v /home/claude/work7/mtusi2026lab7/student-tests:/app/student-tests:ro --entrypoint python api student-tests/test_cache_race.py
 Container mtusi-lab7-api-run-ae4315ec9236 Creating 
 Container mtusi-lab7-api-run-ae4315ec9236 Created 
PASS read-through put makes entry readable
PASS entry TTL capped by SESSION_CACHE_TTL_SECONDS  pttl=59999ms
PASS invalidate removes entry
PASS late put after logout is refused by tombstone
PASS tombstone outlives any cache entry  pttl=74999ms
PASS entry never outlives session expiry  pttl=1199ms
PASS expired session not served from cache
cache unavailable; falling back to PostgreSQL
PASS degraded mode: cache is not read until outbox drained
summary: all passed
exit=0
