PASS one session served by >=2 replicas without re-login (no stickiness) - distribution [15, 15] PASS X-Instance-Id is present on errors and health too - PASS Idempotency-Key missing or malformed -> 400, nothing stored - PASS concurrent replay of one key through different replicas -> exactly one message - 24 parallel requests via 2 replicas -> 1 message PASS replay is semantic: JSON key order/whitespace does not matter; other body -> 409 - PASS key scope = user + chat: same key is independent for other user / other chat - PASS logout is visible on every replica immediately (shared sessions) - revoked token rejected by 2 replicas PASS replay re-checks the session and chat access - PASS PNG and JPEG upload/download byte-exact with true Content-Type - png 111817 B, jpeg 2565 B PASS size limit: valid ~10 MiB image accepted, 10 MiB + 1 byte -> 413 - accepted 10420335 B, rejected 10485761 B PASS decompression bomb (400M px header, tiny body) -> 413 before decoding - 83 B rejected in 25 ms PASS corrupted images and MIME spoofing -> 415, never 500 - 9 spoof/corrupt variants -> 415 PASS dangerous filenames -> 400; Unicode display name kept as-is - 12 bad names rejected PASS attachment_ids validation: duplicates, >10, bad UUID, empty text without files -> 400 - PASS idempotency: missing attachment_ids == []; other attachment list -> 409 - PASS 10 concurrent uploads through both replicas: all 201, distinct ids, same bytes back - 10 uploads via 2 replicas PASS ACL: outsider gets 404 on upload, metadata, content; no token -> 401 - PASS message attachment_ids: other chat / foreign / unknown -> 404, nothing stored - 18/18 passed