Frontier: js/web/streams/compression.test.ts at corpus position 4178, copied unchanged from ~/Code/bun.
Current failure: decompresses brotli data: The compressed data was invalid.
Scope:
- Port CompressionStream/DecompressionStream algorithms and chunk/finalization behavior for gzip, deflate, deflate-raw, and Brotli.
- Preserve readable/writable stream semantics, byte-exact round trips, format validation, and failure timing.
- Diagnose the actual Brotli byte/bridge mismatch rather than bypassing the case.
- Return structured operation/phase/format/cause diagnostics with composed stacks for compression failures.
- Add permanent native regressions and advance #66 with exact counts.