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": 132, "failed_attempts": 0, "first_recovery_seconds": 1.772}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
./scripts/restore.sh
 Container messenger-lab5-api-2  Running
 Container messenger-lab5-api-1  Starting
 Container messenger-lab5-api-1  Started
 Container messenger-lab5-api-1  Waiting
 Container messenger-lab5-api-2  Waiting
 Container messenger-lab5-api-1  Healthy
 Container messenger-lab5-api-2  Healthy
