$ python3 scripts/check_contract.py
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
$ python3 tests/smoke.py
PASS: lab3 public API scenario; infrastructure and grading evidence remain separate.
$ [персистентность] before:
/mtusi-lab3-api-8 id=c07d43275734 StartedAt=2026-10-02T23:21:08.027285124Z
/mtusi-lab3-api-7 id=7a132f87de78 StartedAt=2026-10-02T23:19:20.697214715Z
$ python3 tests/resilience.py --mode persistence --action-script scripts/restart.sh   (Windows: 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.
after:
/mtusi-lab3-api-8 id=c07d43275734 StartedAt=2026-10-02T23:21:33.360551488Z
/mtusi-lab3-api-7 id=7a132f87de78 StartedAt=2026-10-02T23:21:33.2184745Z
$ python3 tests/resilience.py --mode failover --action-script scripts/stop-one.sh  (1-я реплика)
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
{"observed_instances_before": 2, "successful_writes": 112, "failed_attempts": 0, "first_recovery_seconds": 2.438}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
mtusi-lab3-api-8 Up 24 seconds (healthy)
mtusi-lab3-api-7 Exited (137) 15 seconds ago
mtusi-lab2-api-1 Exited (128) 51 minutes ago
(реплика восстановлена: scripts/restore-replicas.sh)
mtusi-lab3-api-9 Up 12 seconds (healthy)
mtusi-lab3-api-8 Up 37 seconds (healthy)
$ ... (2-я реплика)
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
{"observed_instances_before": 2, "successful_writes": 119, "failed_attempts": 0, "first_recovery_seconds": 1.453}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
mtusi-lab3-api-9 Exited (137) 15 seconds ago
mtusi-lab3-api-8 Up 53 seconds (healthy)
mtusi-lab2-api-1 Exited (128) 51 minutes ago
$ python -m unittest student-tests/test_api.py
Ran 12 tests in 2.888s
OK
$ python student-tests/test_idempotency.py
Ran 9 tests in 2.556s
OK
$ python student-tests/test_topology.py
Ran 6 tests in 1.318s
OK
$ python student-tests/test_expiry.py
Ran 2 tests in 22.272s
OK
$ python student-tests/test_dependencies.py   (остановка Valkey / PostgreSQL; при остановке БД LB отдаёт 503 JSON из errorfile)
Ran 2 tests in 9.940s
OK
