PS> docker compose run --rm -T tools python student-tests/grade3.py persistence
 Container mtusi-lab3-grade3-tools-run-6baa53019397 Creating
 Container mtusi-lab3-grade3-tools-run-6baa53019397 Created
python3 tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "http://lb:8080"
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
postgres before 5d254f0d75a9a9f9467e73ff3618215cf6535830043b347fb402ca84b8a63094 running 2026-11-20T11:39:51.532308399Z after 5d254f0d75a9a9f9467e73ff3618215cf6535830043b347fb402ca84b8a63094 running 2026-11-20T11:44:07.540264913Z
api1 before 9b898d6720dca8eb1cfb84fde08090f64b808a495578c0185c77bd63892fdf1f running 2026-11-20T11:41:43.244757785Z after 9b898d6720dca8eb1cfb84fde08090f64b808a495578c0185c77bd63892fdf1f running 2026-11-20T11:44:11.521174934Z
api2 before ab7c05600399d2c7dc9c5beb0dc661eb222032d32a9758f9cee945b4ae196a02 running 2026-11-20T11:42:05.596639197Z after ab7c05600399d2c7dc9c5beb0dc661eb222032d32a9758f9cee945b4ae196a02 running 2026-11-20T11:44:11.248047203Z
PASS: old Bearer on both replicas after PostgreSQL restart, unchanged expiry, replay 443b9676-28b5-43f3-a2f7-2df69ab3cf76, history count 1
exit=0
