﻿# 2026-10-29T13:56:19 persistence: restart api, postgres, redis with volumes kept; same bearer token after restart
## containers BEFORE
  /mtusi-lab2-api-1 running StartedAt=2026-10-29T10:54:06.160154929Z
  /mtusi-lab2-migrate-1 exited StartedAt=2026-10-29T10:54:01.857928321Z
  /mtusi-lab2-postgres-1 running StartedAt=2026-10-29T10:54:56.204288024Z
  /mtusi-lab2-redis-1 running StartedAt=2026-10-29T10:50:55.728984099Z
  volume mtusi-lab2_postgres_data CreatedAt=2026-10-15T14:23:31Z
$ python tests/resilience.py --mode persistence --action-script scripts/restart.cmd
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
exit=0
## containers AFTER (new StartedAt = really restarted; Redis comes back empty, sessions are re-read from PostgreSQL)
  /mtusi-lab2-api-1 running StartedAt=2026-10-29T10:56:37.367116728Z
  /mtusi-lab2-migrate-1 exited StartedAt=2026-10-29T10:56:33.062187191Z
  /mtusi-lab2-postgres-1 running StartedAt=2026-10-29T10:56:26.947421567Z
  /mtusi-lab2-redis-1 running StartedAt=2026-10-29T10:56:26.357852423Z
  volume mtusi-lab2_postgres_data CreatedAt=2026-10-15T14:23:31Z
