PS> docker compose run --rm -T tools python student-tests/grade3.py core
 Container mtusi-lab3-grade3-tools-run-309ba1f80a2b Creating
 Container mtusi-lab3-grade3-tools-run-309ba1f80a2b Created
PASS: one Bearer accepted by api1 and api2
{"same_key_race": [{"instance": "api2", "status": 201, "message_id": "0f879955-e2e3-41da-a213-66a6105d1048"}, {"instance": "api1", "status": 201, "message_id": "0f879955-e2e3-41da-a213-66a6105d1048"}], "history_count": 1}
{"different_body_race": {"api1": 201, "api2": 409}}
PASS: independent keys/users/chats, invalid key/body, authorization and revocation on replay
PASS: Argon2id, session TTL and expiry, 24h key TTL and concurrent key reuse after expiry
PASS: retry of committed POST with unread response returned ae7b9594-56af-4e3b-a31e-3f400c28c36c
PASS: message insert lock timeout produced 503 and rolled back reservation, same key then committed once
exit=0
