Date: 2026-10-09 (Europe/Moscow)

Command: python scripts/check_contract.py
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.

Command: docker compose exec -T api python tests/smoke.py
PASS: lab2 public API scenario; infrastructure and grading evidence remain separate.

Command: docker compose exec -T api python -m unittest discover -s student-tests -v
test_chat_rollback ... ok
test_expiry_short_ttl ... ok
test_migrations_repeat ... ok
test_password_logout_and_identity ... ok
test_registration_race ... ok
test_unicode_password ... ok
Ran 6 tests in 8.057s
OK

Command: 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.
Container start times: evidence/restart.txt

Command: python student-tests/failures.py
PASS redis unavailable: 503; seconds=[3.04, 3.041, 3.036]; anonymous=401; live=200
PASS redis recovered in 6.12s: same session and message
PASS postgres unavailable: 503; seconds=[2.032, 4.034, 4.049]; anonymous=401; live=200
PASS postgres recovered in 6.41s: same session and message

Initial failure test exceeded the HTTP timeout because Docker DNS waited too long
for the stopped service. Fixed with dns_opt timeout:1, attempts:1 on the API.
The timings above are from the successful rerun after this fix.

Final verification after fixes:
python tests/smoke.py --base-url http://127.0.0.1:8080
PASS: lab2 public API scenario; infrastructure and grading evidence remain separate.
Integration suite repeated: Ran 6 tests in 8.030s; OK.
docker compose ps: api, postgres and redis are healthy.
