Design decisions

54. The offline bundle cap moves to 2,800,000 bytes (2026-11-21)

dist/cp-lang.html reached 2,601,595 bytes on main with ten stdlib area owners adding modules at once; 1,792,438 of it is the compiler (the WASM, gzip -9 and base64), so the cap tracks the compiler and the stdlib it embeds, not the pages. The cheap cuts are taken: the pages already ship as one gzip blob (4f74ff40), and opt-level="s" halves the call depth a program can reach in the browser (scripts/build-wasm.sh). The cap stays a ratchet against accidental growth: 2,800,000 is about 7% headroom. Reason: every lane's gate was red on bytes no single commit owned. Reverse: set the number back in scripts/check.sh and site/test_site.py once the bundle is under it, e.g. by running wasm-opt -Os in the bundle build. Reversed the same day: the search index shipped every page's prose a second time (571 kB of text, 178 kB gzipped). The offline shell now rebuilds each entry's text from its page on load (1013fbfe), which brought the bundle to about 2,400,000 bytes, so the cap is back at 2,600,000.