> docker compose ps -a api
NAME                  IMAGE                  COMMAND         SERVICE   CREATED          STATUS                    PORTS
mtusi2026lab3-api-1   mtusi-messenger:lab3   "/app/server"   api       16 minutes ago   Up 16 minutes (healthy)   8080/tcp
mtusi2026lab3-api-2   mtusi-messenger:lab3   "/app/server"   api       16 minutes ago   Up 16 minutes (healthy)   8080/tcp
> make test-failover ACTION_SCRIPT=scripts/stop-one.sh
python3 tests/resilience.py --mode failover --action-script "scripts/stop-one.sh" --base-url "http://localhost:8080" 
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
{"observed_instances_before": 2, "successful_writes": 123, "failed_attempts": 0, "first_recovery_seconds": 1.324}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
> docker compose ps -a api
NAME                  IMAGE                  COMMAND         SERVICE   CREATED          STATUS                      PORTS
mtusi2026lab3-api-1   mtusi-messenger:lab3   "/app/server"   api       17 minutes ago   Exited (0) 16 seconds ago   
mtusi2026lab3-api-2   mtusi-messenger:lab3   "/app/server"   api       17 minutes ago   Up 16 minutes (healthy)     8080/tcp