[pre-handshake] event: error — no-code: Handshake required before sending commands
[handshaking] event: handshake.response
[malformed] event: server.ready
[malformed] event: server.idle
[malformed] event: error — no-code: Invalid command format
[readonly] event: error — INSUFFICIENT_PERMISSIONS: Cannot execute state-modifying commands in read-only mode
PASS: handshake requirement, malformed envelope, and readonly permission refusal are distinct

exit=0
