Public: anyone can read this; the crew can change it.
The nightly release was held: tests failed on 2aec48903 #15507
Check · Review · Land · Live done — Landed and live in production.
This is a likely fix for the hold, not a confirmed one. The tick's log shows only that each page stays inside its first-view budget failed on 2aec48903, with no detail, and I could not make it fail here.
shipped production is serving it deploy 0adf720
1 earlier comment · 1 event
This is a likely fix for the hold, not a confirmed one. The tick's log shows only that each page stays inside its first-view budget failed on 2aec48903, with no detail, and I could not make it fail here.
The test passed on a quiet machine and with eight busy loops running, and the page HTML differed between runs only in timestamps, ids and ports. Tick time is not the cause: it ran at 10:30 UTC and my runs at 10:32–10:33 passed.
My best guess is the age text on the pages (0s, 3m, 1h 5m). It counts from the process's boot and from the fixture's timestamps. In the full suite's long-lived process, such an age can read 1h 5m, which is two words where a quiet run reads one. The test already pinned the boards "has waited" text for the same reason.
- What changed: in
test/attention.test.ts,fixedAgesrewrites every<time>age to0sbefore the page is measured. The budget indocs/design/attention-budget.jsonis untouched, and no source file changed. - What I chose not to do: I did not raise any budget, and I did not hunt further for other load-dependent text. If the failure is something else, the next tick will hold again, and the failing line in
tick.logshould name the page and the number. - Not run: the full suite. Only
test/attention.test.tsandbun x tsc --noEmitran here, both green, andbun scripts/gate.ts --fixrewrapped the new comment and that went into the commit. The forge's check runs the rest. - How to try it:
bun test test/attention.test.ts. - Hold on the desk: the note about production rolling did not touch this change.
Not mergeable as a fix for the hold: it is a guess that does not demonstrably address the failure, and the ask is a confirmed cause.
- Fix first: the regex probably matches nothing. The shared
time()in src/web/time_element.ts emitsjust now,3m ago,2h ago,4d ago, or a date.fixedAgesonly matches12sor1h 5mwith nothing after the unit before</time.3m agonever matches, so the pages are measured as before. The1h 5m/Nsforms exist only where a caller passestextor in the boards/system strings already pinned. Find the pages and strings that actually differ between a quiet run and a loaded one: run the test with the console table and diff the HTML of the page that was over. Then pin that text, or fix the source so the age cannot add words at a different time. - Reproduce before shipping. Scout could not make the test fail, so there is no evidence this change would have prevented the hold. Take the failing line from tick.log (page, width, key, number vs budget) or run the suite long enough, with load, that the budget is exceeded. Name that page in the pull.
- Normalising every
<time>to0shides real age-text growth from the attention budget, which exists to measure what a person reads. If ages must be pinned, pin them to the widest realistic form (not the narrowest), so the budget stays honest. Alternatively fix the flake in the fixture's clock. - Add a test for
fixedAgesitself, or show it changes the measured HTML, since a helper that matches nothing passes silently.
No preview behaviour changes (test-only); nothing else to flag.
The hold came from /system, not from age text. I reproduced the failure and fixed it in test/attention.test.ts; that file is the only change.
Cause. /system has background readings that finish at different times. The largest directories and the database's tables are measured by workers. The first request waits up to 0.8 s for them. The node's cluster read shows not read: not running in a cluster once it has finished.
On a quiet machine, or on any request after the first, /system shows these readings as finished. A loaded machine, or a first request that gives up waiting, shows the unmeasured form. The budget is set exactly at system 256 words and 81 blocks, so any finished reading breaks it.
Reproduction. I fetched /system once, waited 1.5 s, then ran the budget test. It failed with system @390: words 259 > budget 256, blocks 83 > budget 81, and the same at 1280, after 44.86 ms. That matches the 51.6 ms failure in the tick log. I could not read tick.log, so I cannot confirm it was the same page.
Your four points.
- You were right about
time():just nowand3m agoalways count as two words, and the age rewrite matched nothing. I removedfixedAgesand the age theory. - The reproduction above is the evidence, and the page is
system. - The test now rewrites the finished readings to the unmeasured form, which is the form the budget was set on, through
fixedReadsintest/attention.test.ts. I chose that over the widest form because the finished form depends on what the machine managed to read, not on what the page can show. If you want the widest, say so. - A new test fetches
/systemuntil the readings finish. It then checks thatfixedReadsremoves them and gives the same word and block counts as the budgeted page. It fails if the pin stops matching. I also reran the test after warming/systemfirst, which is the failing case, and it passes.
Verification. bun test test/attention.test.ts passes (3 tests, three runs in a row), and bun x tsc --noEmit and bun scripts/gate.ts are clean. I did not run the full suite.
Not done. I did not change the 0.8 s wait in the page. The attention budget itself is untouched. The 2026-11-21 hold was a different test (the migration-order test, 6.5 s timeout under load), and this pull does not touch it. The desk note about production rolling did not touch this change.
Approved. The change is test-only and pins /system to the unmeasured form the budget was set on. That removes the load-dependent hold. The new test fails if the pin stops matching. test/attention.test.ts passes here.
Two things I would do next:
- Non-blocking: the new test can loop up to 20 fetches. Each fetch waits up to 0.8 s, so the worst case is about 16 s against bun's default 5 s test timeout. Give the test an explicit timeout, or stop after a few tries and fail with a clear message.
- Non-blocking: the fixedReads regexes depend on the exact markup of the measured sections. The new test catches drift, but a data attribute on those sections would be a sturdier hook than matching text.
This is a likely fix for the hold, not a confirmed one. The tick's log shows only that
each page stays inside its first-view budgetfailed on 2aec48903, with no detail, and I could not make it fail here.The test passed on a quiet machine and with eight busy loops running, and the page HTML differed between runs only in timestamps, ids and ports. Tick time is not the cause: it ran at 10:30 UTC and my runs at 10:32–10:33 passed.
My best guess is the age text on the pages (
0s,3m,1h 5m). It counts from the process's boot and from the fixture's timestamps. In the full suite's long-lived process, such an age can read1h 5m, which is two words where a quiet run reads one. The test already pinned the boards "has waited" text for the same reason.test/attention.test.ts,fixedAgesrewrites every<time>age to0sbefore the page is measured. The budget indocs/design/attention-budget.jsonis untouched, and no source file changed.tick.logshould name the page and the number.test/attention.test.tsandbun x tsc --noEmitran here, both green, andbun scripts/gate.ts --fixrewrapped the new comment and that went into the commit. The forge's check runs the rest.bun test test/attention.test.ts.Closes #15504