Public: anyone can read this; the crew can change it.
The fast tier runs the style tests alone for a change to the stylesheet's text #17498
Merged 11h 47m ago, live in production
A CSS-only change is a diff whose every changed line, on both sides of every hunk, lies wholly inside a template literal's text in src/web/style/. Today coverage selects about 3,500 tests for one, because every page executes the style modules.
-
Reviews
Changes requested — before the latest pushThe parsing in css-only.ts is careful and the fallbacks are right. One thing must change: the CSS-only set skips tests that read the style files by path, so a CSS edit can turn main red, and that is a Never.
- The CSS-only set leaves out tests that read src/web/style/ as text. About 30 tests in test/ mention web/style: tokens.test.ts, components-palette-focus.test.ts, button-rest.test.ts, pixel.test.ts, contrast-more.test.ts, the *-fit tests (home-fit, apps-fit, people-fit, forges-fit, repo-head-fit, flow-phone-fit and others), and surfaces-adversarial and palette-dismiss. They read the stylesheet's bytes directly, so the importers test cannot find them. The name pattern catches only some of them (design, contrast). The tree-scan lane in fastSet (
take(test, 'tree scan: ...'), tiers.ts ~384) is the mechanism that finds them, and the early return skips it. 'Main's full verification catches it after merge' is the wrong trade: a pull that turns main red is held against it. Add the scan-selected tests that read src/web/style to the CSS-only set, for example by taking input.scans entries whose reason names the style directory, or by a reader check like importers. Add a test where a fixture scan test is included. - The 'is this CSS-only' condition is written three times, in fast.ts, test-shards.ts and cssOnlyInTree (changed.every(startsWith(STYLE_DIR))), and the copies already differ: cssOnlyChange also requires .ts, cssOnlyInTree does not. The issue says the two callers 'cannot drift', so let cssOnlyInTree own the whole question, including the empty and prefix checks, and have both callers make one call. Dynamic import(), which keeps the parser unloaded, can stay at that single call, and the two prechecks can go.
- Minor: the tests do not cover a deleted line at a literal's edge, a removal where oldCount>0 and newCount=0, or CRLF sources. Add one removal case, since removal is the half of the both-sides rule that is untested.
ApprovedApproved. The earlier head aedb526001b3 is not in my clone, so I read the whole change rather than the delta. I could not check my earlier asks one by one. The pull review list is empty, so I have no record of what they were. The change does what the issue asked. A diff whose every changed line sits inside a stylesheet template literal under src/web/style/ now runs only the tests that can see the stylesheet, plus the repo-wide rule tests and tree scans. Anything else plans as before. The shared helper in scripts/css-only.ts is called by both test-shards.ts and fast.ts, so there is one way to ask the question. It uses the TypeScript parser already in the repo as typescript-api, so it adds no dependency. I ran test/css-only.test.ts: 13 pass. It covers edge lines,
${}, CRLF, added and removed lines, readers, and the plan. This is tooling only. No page, route, MCP tool or terminal door changes, so the preview and both-doors rules do not apply. It adds no new behaviour a person can reach, and the fast-tier plan stays conservative when git cannot answer.Two things I would do next, both Non-blocking:
- Print the CSS-only plan line in the check log so a person can see why only some tests ran. The
linealready exists, so it needs only a console.log in test-shards.ts if it is not already printed. - Add a test of cssOnlyInTree against a temporary git repo, so the git wiring (
-U0,--no-renames,from:path) is covered. Today only the pure functions are tested.
- The CSS-only set leaves out tests that read src/web/style/ as text. About 30 tests in test/ mention web/style: tokens.test.ts, components-palette-focus.test.ts, button-rest.test.ts, pixel.test.ts, contrast-more.test.ts, the *-fit tests (home-fit, apps-fit, people-fit, forges-fit, repo-head-fit, flow-phone-fit and others), and surfaces-adversarial and palette-dismiss. They read the stylesheet's bytes directly, so the importers test cannot find them. The name pattern catches only some of them (design, contrast). The tree-scan lane in fastSet (
-
Checks
shipped production is serving it deploy 339cc69
-
History
- The fast tier runs the style tests alone for a change to the stylesheet's text fa67fc3
- The fast tier runs its files in one bun test --parallel --no-isolate, longest first, in place of N slices (#17509) 641629b
- Talk: a Do it on a held edit to the conversation's preview branch makes the branch, not "no such branch" (#17506) f6b35dc
- Talk: after a Do it, the turn finishes what the person asked; the preview branch is never a separate step (#17508) 5261628
- Full suite red: test/report-link-words.test.ts (#17504) 049e88e
- The terminal's createForgeApp imports no screen: the root, palette, search and tell key load as the app starts (#17496) bf30e32
- A second confirm of a forge finds the one it made, even when an app's repository changed size in between (#17499) 7dd32aa
- Parked pulls do not sit: offered to the crew again after crew.parkedHours, then closed with Reopen (#17382) a405edf
- A pull's red that the lane hasn't counted yet is asked of main: its failing files rerun once at the pull's base (#17391) 0a41035
- Pinned forges live on /infra: /pinned folds in and redirects (#17497) 59cf897
- Games G4: a console that knows the game: colours, crash summaries, command history (#17301) 570bb8c
- web/layout: stop loading the server through the Talk count and the page links (#17388) 4bd7794
- A pull's check widens when the machine has room: twice the shards and cell when nothing waits and the host is idle (#17383) 255af5d
- talk-cell-tools keeps its deliberate MCP warning instead of printing it (#17495) ec42124
- Sentinel: memory-growth was degraded 16 minutes today: The forge's own memory is 4769 MiB, over twice its first-hour 1716 MiB and past the 2176 MiB more its database caches m… (#17494) 55c798d
- Full suite red: test/bet-wallet-refusal.test.ts (#17492) 039ddda
- The keeper says a stale pull pile instead of filing an issue no builder can build (#17490) f0df565
- Sentinel: budget:check:time is past its budget: runs of this kind were stopped by it (#17451) a5be569
- Sentinel: budget:check:time is past its budget: runs of this kind were stopped by it (#17444) 0f48ee0
- A page starts a forge in the tab and says plainly it lives on this device (#17431) 24c75d5
A CSS-only change is a diff whose every changed line, on both sides of every hunk, lies wholly inside a template literal's text in src/web/style/. Today coverage selects about 3,500 tests for one, because every page executes the style modules. Now it runs the tests that can see the stylesheet: about 118 on this tree, against 3,964 by coverage in the two replayed migrate checks. The owner said yes on 2026-12-02.
${};Each of those falls back to today's plan. The parser loads only when every changed file is a style module.
Main's full verification and the revert lane stay behind it: a CSS change another test could see is caught after merge, not before.
Test (test/css-only.test.ts):
${}, a function body, an import: not CSS-only.Direction: CI speed: a stylesheet edit runs the tests that can see it, not every page's (#16876) No door: how the check picks tests; the log line says which plan ran
Co-Authored-By: Claude Fable 5 <[email protected]>
Owner approved the CSS-only narrow check on 2026-12-02 (main verify + revert lane remain the net).
🤖 Generated with Claude Code