Official tests/resilience.py --mode failover, hook scripts/stop-one.sh.
Before each run both API replicas answered. The hook stopped the replica that served the first message and left it stopped. Exit code of that container was 143 (SIGTERM). The public test then read the same PNG bytes through the replica that stayed up.

Run 1: {"observed_instances_before": 2, "successful_writes": 136, "failed_attempts": 1, "first_recovery_seconds": 0.669}
Run 2: {"observed_instances_before": 2, "successful_writes": 130, "failed_attempts": 1, "first_recovery_seconds": 1.276}
Run 3: {"observed_instances_before": 2, "successful_writes": 136, "failed_attempts": 1, "first_recovery_seconds": 0.745}

In all three runs the stopped container was mtusi-lab4-api-2, because that replica served the first message. mtusi-lab4-api-1 stayed up and served the later requests, including the file download. PASS each time.
