const MAX_BUFFER_SIZE: usize = 10_000_000;
Maximum buffer size per channel (prevents memory exhaustion) Set to 10MB to prevent unbounded memory growth from excessive output accumulation.