szn

Bug 190 — Inconsistent packet size limits across the three parsers

190. Inconsistent packet size limits across the three parsers

File: src/client/client.zig:53 (send 4096), src/client/client.zig:71 (recv 1 MiB), src/server/message_reader.zig:16 (8192) Severity: MEDIUM Status: ✅ FIXED — Defined canonical MAX_PACKET_SIZE (1 MiB) and MAX_CLIENT_PACKET_SIZE (8 KiB) limits in protocol.zig and updated all parsers and tests.

Client send cap is 4096 (5 + data.len > 4096), client recv cap is 1 MiB (MAX_PACKET_SIZE), and the server MessageReader cap is 8192. Only MAX_PACKET_SIZE is a named constant. A server .output packet larger than 8192 is fine on the wire but would be rejected if it ever came back into the server. The caps are also asymmetric between client send and server recv.