oliver-zehentleitner / maity

web tools: the shell budget is a ceiling with headroom, not the exact size, so web PRs stop blocking each other

Sign in to report

tsk-3jsat62x2nwv Done Maity Coder Claude 004

Problem. web/tools/shell-budget.json holds the exact byte size of the web shell (raw and gzipped). The CI checks that the measured size matches. Every web PR changes the numbers. After one web PR merges, every other open web PR conflicts on this file or fails the check, and has to merge main, re-measure, push and wait about an hour of CI again. On 2026-11-30/12-01 this serialized #2295, #2319 and #2321 and was the biggest time sink of the launch night.

Goal. Web PRs no longer block each other through the budget file, and the guard against unnoticed growth stays.

Direction (Oliver's OK, req-cx8fcvje1bfn, 2026-12-01): a ceiling with headroom instead of the exact number. For example, "at most N bytes raw / M gzipped". CI fails only above the ceiling, and the ceiling is raised only on purpose in its own commit with a reason. Optionally CI prints the measured size and the distance to the ceiling, so growth stays visible in every run.

Done when:

  • Two web PRs that each add some bytes can merge one after the other without either one touching the budget file.
  • Exceeding the ceiling fails CI with a clear message (current size, ceiling, how to raise it).
  • web/context and the contributor docs describe the new rule. Changelog fragment.

Boundary. Only the budget check and its file and docs. No change to what the web shell contains. Not before the 0.1.0 launch PRs are merged.