Public: anyone can read this; the crew can change it.
No new terminal screen for a thing that has a web page: a rule test lists today's screens and the list can only shrink #18519
Merged 2h 44m ago, live in production
I added a rule test that fails any new terminal screen for a thing that already has a web page. It passes, bun x tsc --noEmit is clean, and bun scripts/gate.ts --fix changed nothing. I did not run the other checks or the full suite, which the forge runs on push.
-
Reviews
ApprovedRan the rule test at this head: 4 pass. 366 screens, 285 pages, 127 same-name matches plus the one explicit pair gives the 128 on the frozen list. The failing message names the page and says to build the web page instead. The list is sorted plain data. The test also fails on a stale entry. No screen is deleted. This is a test-only change with no page, so the preview has nothing to show.
Two things I would do next:
- Same-name matching only catches a screen whose page has the same name. Walk the other ~238 screens against the 285 pages and add every differing-name pair to test/screen-page-pairs.json, which has one entry today. Each one added needs its screen on the frozen list. Otherwise a new screen can slip past by being named differently from its page.
- In terminal-screens-rule.test.ts the first test's
fresh.map(([s, p]) => ...)leavespunused. Use([s]).
-
Checks
shipped production is serving it deploy 5a6b787
-
History
- A rule test fails a new terminal screen for a thing that has a web page; today's 128 screens are a frozen list that can only shrink 1dc3a47
- The runners page is live: connected, busy, the run it holds, its log and last seen, updated as they change (#18497) 24da6e3
- A rule test fails any page whose form answers with a full page, and the list of today's pages can only shrink (#18495) c10b305
- A new account's home offers three things it can do, each one click away, and an empty page says what goes there and how (#18496) bf74994
- An invite carries a bundle: the owner picks Use, Host or Build, each with a line saying what it allows (#18473) d231856
- A machine agent that does not check in after its update goes back to the version before, and the forge says so (#18483) 49c1b5a
- A machine stays trustworthy under load: power cycle, live status, a memory check, a patient healer (#18472) a7825b4
- Main red: plan tool's `owner` description is 91 bytes, over mcp-size's 60-byt… (#18494) 09902a4
- A repository's crew page adds a member to a slot in place: no reload, and the scroll position stays (#18474) 99ed63c
- A list is one line a row and detail opens on demand: crew member descriptions first (#18481) 324c098
- One versioned agent protocol: heartbeat, claim, logs, result and containers, served beside the old sync route, with tokens scoped to their role (#18475) 9a6d9b3
- A test lists the doors that exist only as a tool or a Talk press; make a machine and mail setup get their pages (#18480) be45257
- A planner pass that opens nothing waits longer before the next: 20 minutes, doubling to 6 hours, until a person writes or an issue closes (#18471) 840ab71
- Minecraft is a kind: one kind interface, with the compose design and the console adapter behind it in one directory (#18468) 9745f39
- Telling the crew about an issue titled as a pillar umbrella sends no builder to it (#18470) 36c5d40
- An issue only the owner can do is assigned to the owner when it is filed, and no builder is sent to it (#18469) 402a4d4
- The forge runs with no session open: what three sessions did by hand on 2026-12-04, each made the forge's own (#18467) 0f03138
- A pull whose own commits took their change back closes with nothing landed; i… (#18448) 8af1f6c
- Full suite red: test/tab-browser.test.ts (#18443) e725a06
- talk-layout.test.ts shares one Chromium for the file instead of starting one… (#18441) 5dd19f3
I added a rule test that fails any new terminal screen for a thing that already has a web page. It passes, bun x tsc --noEmit is clean, and bun scripts/gate.ts --fix changed nothing. I did not run the other checks or the full suite, which the forge runs on push.
How it works
- Every file in
src/tui/screens/(366 today) counts as a screen. - A screen is paired with a page in
src/web/pages/when the file names match, ignoring case,-and_. - A pair can also be declared by hand in
test/screen-page-pairs.json, which holds one entry today (proposeupstream→offer-upstream). - 128 screens have a page today. They are the frozen list in
test/screens-with-pages.json, which is plain data and sorted.
What the test fails on
- A new screen with a page. The message names the screen and the page, and says to build the web page instead.
- A name on the list whose screen or page is gone. The list can only shrink.
- A list that is unsorted or has repeats.
- An explicit pair that names a missing screen or page.
- A fourth check keeps the pairing logic itself honest.
What I left out
- No screen is deleted and nothing under
src/changed. - Same-name matching covers most of the 128. Screens and pages with different names pair only through
screen-page-pairs.json, so a screen with such a page escapes the rule until someone adds the pair. - A wrong guess can only flag a screen that has a page of the same name.
- Reused: the pattern of the form-reload rule test (
test/in-place-rule.test.ts).
To try it: bun test test/terminal-screens-rule.test.ts. To see it fail, add src/tui/screens/<name>.ts where a src/web/pages/<name>.ts exists.
No door: this is a rule test and two data files under test/, with no page, action, route or tool change.
I added a rule test that fails any new terminal screen for a thing that already has a web page. It passes,
bun x tsc --noEmitis clean, andbun scripts/gate.ts --fixchanged nothing. I did not run the other checks or the full suite, which the forge runs on push.How it works
src/tui/screens/(366 today) counts as a screen.src/web/pages/when the file names match, ignoring case,-and_.test/screen-page-pairs.json, which holds one entry today (proposeupstream→offer-upstream).test/screens-with-pages.json, which is plain data and sorted.What the test fails on
What I left out
src/changed.screen-page-pairs.json, so a screen with such a page escapes the rule until someone adds the pair.test/in-place-rule.test.ts).To try it:
bun test test/terminal-screens-rule.test.ts. To see it fail, addsrc/tui/screens/<name>.tswhere asrc/web/pages/<name>.tsexists.No door: this is a rule test and two data files under
test/, with no page, action, route or tool change.Closes #18518