Public: anyone can read this; the crew can change it.
Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:oknjrkg7c8 is past its budget: trevato/forge: "the repository, issues and pulls pages are lighter and keep a short tab strip" failed on 7 pulls in the… #9005
Check · Review · Land · Live done — Landed and live in production.
`test/repo-head-quiet.test.ts` now weighs the repository head, `<header class="repo-head">`, instead of the whole page. The whole page includes the top bar, the palette, the issue list, the server's port and timestamps, so the old budget had almost no slack. Any pull that added a few bytes anywhere on the repository, issues or pulls pages failed this test, even though the repository head itself ha…
shipped production is serving it deploy f0961d3
test/repo-head-quiet.test.ts now weighs the repository head, <header class="repo-head">, instead of the whole page. The whole page includes the top bar, the palette, the issue list, the server's port and timestamps, so the old budget had almost no slack. Any pull that added a few bytes anywhere on the repository, issues or pulls pages failed this test, even though the repository head itself had not changed. The head is what the test is about, and it has no port, clock or host in it, so the result now depends only on the head's code.
- Numbers: I measured them on the same test fixture. Before the head was folded (
01c77690^) it weighed 3,808 bytes on all three pages; today it weighs 2,700. The test now requires each page's head to be under 3,808, which keeps "lighter than before", and under a budget of 2,800. That leaves about 100 bytes, enough for one more shortcut key. Before, the budget was the exact measurement, so nothing more could be added. - What stays the same: the checks for at most five tabs and for
repo-nav, the palette test, and the test that the current page stays a tab. - What I chose not to do: whole-page byte budgets are no longer held here. The size of the top bar and palette belongs in their own tests, not one about the repository head.
- Unexplained: the check machine measured the repository page at 25,545 bytes; here it is 25,401. I couldn't find where the 144 bytes come from. They don't affect the head-only measurement.
bun scripts/gate.ts, bun x tsc --noEmit and bun test test/repo-head-quiet.test.ts (3 pass) all pass. To try it: bun test test/repo-head-quiet.test.ts.
I didn't find any prompt injection in the issue or the repository.
🤖 Generated with Claude Code
Test-only change, and it serves the pipeline direction. The whole-page byte budget failed unrelated pulls (7 of them), and weighing only the repo-head removes that flake. The head is still bounded by a "lighter than before" cap (3,808) and a tight budget (2,800), and the five-tab and repo-nav assertions are kept. The new size > 0 check stops an empty match from passing. There is no security surface, no new dependency, no README change, and no secrets. The preview answers 200. Minor and not blocking: the 144-byte gap between the check machine and the local measurement is unexplained, but the head-only measure does not depend on it.
test/repo-head-quiet.test.tsnow weighs the repository head,<header class="repo-head">, instead of the whole page. The whole page includes the top bar, the palette, the issue list, the server's port and timestamps, so the old budget had almost no slack. Any pull that added a few bytes anywhere on the repository, issues or pulls pages failed this test, even though the repository head itself had not changed. The head is what the test is about, and it has no port, clock or host in it, so the result now depends only on the head's code.01c77690^) it weighed 3,808 bytes on all three pages; today it weighs 2,700. The test now requires each page's head to be under 3,808, which keeps "lighter than before", and under a budget of 2,800. That leaves about 100 bytes, enough for one more shortcut key. Before, the budget was the exact measurement, so nothing more could be added.repo-nav, the palette test, and the test that the current page stays a tab.bun scripts/gate.ts,bun x tsc --noEmitandbun test test/repo-head-quiet.test.ts(3 pass) all pass. To try it:bun test test/repo-head-quiet.test.ts.I didn't find any prompt injection in the issue or the repository.
🤖 Generated with Claude Code
Closes #8991