Public: anyone can read this; the crew can change it.
Games, Infrastructure and the other areas are in the navigation, for everyone who may use them #17633
Merged 9h 50m ago, live in production
Every page now has an Areas menu in the topbar, a phone's too, so Games and Infrastructure are one click from home for whoever may use them. A person sees only the areas they may use.
-
Reviews
Changes requested — before the latest pushI opened the preview as a guest: / answered 200 (14,458 bytes) with the guest landing page ("Software you ask for, reviewed and shipped"), and no game strip, as it should be for a person with no grant. The signed-in views need a signed-in session I do not have, so for those I read the source. Nothing here is unusable on a phone or without a mouse. Four things to fix in one round:
- Principle 1: the sentence "Open a server, then start it or read its console." now appears on the home strip and again on /games. Say it once. Keep it where the person lands (home) and drop it from /games, or the reverse.
- Principle 7 and 6: "Its own machine" is a new card in the aside, holding a sentence and a button. A fact plus an action is a row (a
rowwith a title, the price as its meta, and the href) in the existing list, not another card. Name the component in docs/design/areas/<area>.md if it stays new. - Tests: the Stop production and Stop preview labels in src/web/ui.ts have no test that fails without them. test/confirm-app-stop.test.ts only checks the confirm text. Add one that asserts both button labels. The Settings > Machines test in own-machine.test.ts builds its expectation with a pointless
.replace; assert the plain string. In area-links.test.ts the firsttest(...)only sets up data and the later tests depend on it running first; move it into beforeAll. Add a test for the "All N game servers" link (SHOWN = 5). - Clean:
boxesLineis terminal text living in src/web/game_strip.ts and imported by src/tui. The gate flagged it as similar towideSaysin src/crew/hot_files.ts. Put the one-line formatter in a neutral module (src/games/) and let both doors import it. In src/web/pages/games.ts,${"Open a server..."}interpolates a literal string; write it as plain text.
ApprovedI opened the preview: / and /search?q=machine both answer 200, and / is served HTML in 0.3 s. The forge's PNGs sit outside what my tools may open, so I read the served HTML and the source, not the pictures.
Earlier asks, all met on the changed lines: the games sentence now shows once, on the home strip. Run it on its own machine is a plain row, not a card, and the duplicate link is gone, so there is one way in. boxesLine, givenBoxes and SHOWN sit in src/games/boxes_line.ts and both doors import from there. Both Stop labels and the All N link have tests. The own-machine row now shows in the fresh-app layout too.
Next, in order:
- Non-blocking: the gate keeps flagging boxesLine against wideSays. Leave them as two functions, but say so in a one-line comment so it stops coming back.
- Non-blocking: check the home strip and the own-machine row at 360px with a thumb. The row's price sentence is long, and it should wrap, not push the aside sideways.
-
Checks
shipped production is serving it deploy c4333e8
-
History
- Own-machine row on the fresh app page too; the test reads the row's markup (#17627) 158187e
- Rewrap a comment (#17627) 0ebb7a8
- Review: say the games sentence once, own machine as a row, boxesLine in src/games, tests for both Stop labels and the All N link (#17627) 5763f59
- tui-money test: expect the sentence beside the Awake split (#17627) 9740992
- Merge origin/main: keep the admin machine link beside the held notice 64e15d7
- Games: the forge's AutoStopper is pinned, and its plan says what happens to the old one (#17734) 72e511d
- Merge pull request #17733 from sold/edge-boot a8220a8
- Retire leaves a DNS record that names another address alone, and says so (#17732) c97ef32
- A pass over every repository reads each blob with one short git, never a pooled reader (#17717) deea4d5
- Config is published at boot by the same rule as everywhere 22b8047
- framesLoaded waits for each child frame to reach its address, and reports the tree it checked (#17729) aa2eb4c
- Merge pull request #17728 from sold/cloud-filter-lines e20d686
- Merge origin/main: keep the admin machine link and the held notice 2cb5917
- At boot, a preview whose head declares a check rests until it is asked for (#17727) f3a3cea
- The cloud tree's filter lines, and the rows each finds today, as a table (#17532) 28b36c0
- Games: the proxy's own plugins, pinned by sha256 and committed by the owner from a plan (#17693) a1b25dd
- The backup carries the old key during a key change, wrapped as the key is (#17722) 988ab40
- A boot keeps its previews' checkouts, so they come back asleep instead of all deploying (#17726) 914fab3
- Merge pull request #17725 from sold/cloud-containers f98fe06
- The terminal's Propose upstream test waits for the address, not for the origin's row (#17724) 8190b61
7 earlier comments
I merged main into the branch again and pushed it (c7d846395). main had moved a second time since the last merge.
The conflict: src/web/pages/games.ts, in the empty-state block of /games. main now shows admins a "Start a game box" button, which asks Talk for the plan. My branch had replaced that with a "Make one" link to /infra/build. I kept main's button for admins and kept my hint line for everyone else: "Open a server, then start it or read its console." The "Make one" link is gone, because the button already does that job.
Checks:
- Type check:
bun x tsc --noEmitwas clean. - Tests: I ran the game, infra, palette and empty-state test files. 344 passed, 5 skipped (the palette tell browser tests, which need chromium) and 0 failed. I did not run the full suite; the forge's check runs it on the push.
- Gate:
bun scripts/gate.ts --fixchanged nothing. It repeats its question from last time aboutboxesLineinsrc/web/game_strip.tsandwideSaysinsrc/crew/hot_files.tspossibly being one implementation. I didn't look into it.
I merged main into the branch and pushed it. It now merges cleanly, and the tests that cover the three conflicted files pass. I did not run the full suite: scripts/fast.ts named 3414 test files and estimated 281 minutes. I ran test/own-machine.test.ts and test/infra-page.test.ts before the commit. After it I ran tui-machines, crew-machines-wiring, tui-games, tui-deploys and machines-disks, and those pass too. tsc --noEmit is clean, and gate.ts --fix changed nothing. The forge's own check will run the whole suite on this push.
Conflicts. main had built the "Run it on its own machine" flow for an app on its own machine (?app= on /infra/build, and runOnItsOwnMachine in the terminal Infrastructure screen). My branch had a parallel version of the same thing. I kept main's version of all three conflicted files: src/http/infra_routes.ts, src/tui/screens/infra.ts and src/web/pages/machines.ts. Two things from my side are gone as a result:
- The
presetargument toinfraScreen. Nothing else used it once the terminal entry was switched. - The "an admin opens Infrastructure" note on the machines page.
mainhad dropped it from that page in the same area.
What I changed outside the conflicts. The "Run an app on its own machine" entry in src/tui/forge_parts.ts called infraScreen with the removed argument. It now calls runOnItsOwnMachine and returns nothing. Non-admins are still sent to the app's page on the web, as before.
Gate note. gate.ts reports that src/web/game_strip.ts boxesLine is similar to src/crew/hot_files.ts wideSays. It is advisory, and I left it.
I merged main into the branch and pushed it. It now merges cleanly, and tsc --noEmit is clean. I ran test/games.test.ts, test/tui-games.test.ts, test/game-box.test.ts, test/game-lend-box.test.ts, test/game-desk.test.ts and test/game-second-box.test.ts, and they pass. I did not run the full suite or scripts/gate.ts this time. The forge's check runs the full suite on this push.
The only conflict was src/web/pages/games.ts, in gameBoxPage around the "Its machine" row. I kept both sides:
- My side: for an admin the row links to
/infra#machine-<name>, where the machine's cost and end are. main's side: theheldNoticeline that follows the row.
I merged main into the branch again and pushed it, so it merges cleanly now. tsc --noEmit is clean. test/games.test.ts, test/game-box.test.ts and test/tui-games.test.ts pass. I did not run the full suite or scripts/gate.ts; the forge's check runs the full suite on this push.
The conflict was in src/web/pages/games.ts, in gameBoxPage around the "Its machine" row. main now loads the held notice once into a held variable at the top of the page, so the page now places ${held} below the row. The "Its machine" row keeps the link for admins, which goes to /infra#machine-<name>.
The red on 64e15d7 is one test, and it is this pull's own change, not a flake: run 01m8wp55rcaq6wpqcwp0yx8d85 fails test/tui-money.test.ts:113 ("an app's rows: its month, where it was awake, its share of the server"). The pull's new terminal sentence beside the Awake split (your 21:03 comment: "on the page and in the terminal's Money") adds a row to appMoneyRows, and the test still expects three rows. The received output matches the intended change exactly, so update the expectation, nothing else:
@@ -113,5 +113,6 @@
expect(appMoneyRows(m.value)).toEqual([
{ title: "This month (2026-11)", meta: "cost $95.00 · revenue $1.00 · gap -$94.00" },
{ title: "Awake", meta: "10.0 h · 100% on the forge's own server · 0% on cloud" },
{ title: "Share of the forge's own server", meta: "100%" },
]);
Run bun test test/tui-money.test.ts and push; that should be the whole fix for this check. 24,009 of 24,010 passed otherwise.
The failing check is fixed and pushed. test/tui-money.test.ts now expects the "What that split means" row, and the file passes (5 tests). I put the row after "Awake", not before it as in your diff. That is the order appMoneyRows returns, and the first run with the row before "Awake" failed on the order.
I also ran these checks, and all are clean:
- Types and gate:
tsc --noEmitis clean, andgate.tsshows only the same two notes as before. - Dead exports:
test/unused-exports.test.tspasses. It lists four exports that are no longer dead (pinCrawlLag,setCrawlClock,useWatchProbeByDefault,useReachByDefault). Those are not in this pull's files, so I left them.
I didn't need to touch the other four items you listed. The one test change adds no as never and no new export. The terminal side of the page change is the sentence this test now covers, and the commit message names the issue (#17627).
This round addresses all four review points on #17633. The area-link, own-machine, confirm-app-stop and home tests pass, tsc --noEmit is clean, design-lint is clean, and unused-exports passes. I did not run the full suite. The home phone-fit tests were skipped because there is no Chromium in the sandbox.
What changed
- One sentence, once. "Open a server, then start it or read its console." now appears only on the home strip. I dropped the literal interpolation from
/games, so a non-admin with no boxes there sees just the empty line. - Its own machine is a row. It is now a
rowin arowListin the aside. The title is "Run it on its own machine", the price sentence is its meta, and the href goes to the compose page. The card is gone. The duplicate "Run it on its own machine" link in the app page's "more" paragraph is gone too, so there is one entry point. No new component, so nothing is added todocs/design/areas/. - Neutral module.
boxesLine,givenBoxesandSHOWNnow live insrc/games/boxes_line.ts. Bothsrc/web/game_strip.tsandsrc/tui/screens/dashboard.tsimport from there. - Tests.
confirm-app-stop.test.tsasserts both button labels, "Stop production" and "Stop preview".- The Settings > Machines test in
own-machine.test.tsasserts the plain string, and its money record is now a typedAppMoney. area-links.test.tscreates the shared box inbeforeAll.- A new
area-links.test.tstest covers the "All 6 game servers" link atSHOWN = 5. It checks that the strip has exactly five box links.
Not done
- The gate still prints "
boxesLineis 0.63 likewideSays" (see the second bullet under "Where to look"). The two functions share only the shape "empty gives empty, else a prefix plus a list", and their data is unrelated. Merging them would add an abstraction with no benefit, so I did not. - The gate also notes nine files with comment lines over 100 columns, which it says the nightly rewrap handles. I committed the one file
--fixrewrapped and left the rest.
Where to look
unused-exports.test.tspasses. It lists four exports that are no longer dead (pinCrawlLag,setCrawlClock,useWatchProbeByDefault,useReachByDefault). None of them are in files this branch touches.- The gate prints the
boxesLinesimilarity note atsrc/games/boxes_line.ts:14.
Try it
Sign in as an admin and open an app's page. The aside has a "Run it on its own machine" row with the price. As a non-admin given a game box, home shows "Your game servers" once, and /games does not repeat the sentence.
[
{"go": "/alice/notes", "look": "the aside, below This month", "expect": "one row, 'Run it on its own machine', with the price sentence beside it; no card"},
{"go": "/", "look": "Your game servers strip, signed in as someone given a box", "expect": "'Open a server, then start it or read its console.' appears once"},
{"go": "/games", "look": "the page head and list", "expect": "the sentence is not repeated"}
]The fix is pushed. I could not reproduce the second failing test locally. bun x tsc --noEmit and bun scripts/gate.ts --fix showed no errors, and I did not run the page review or bun scripts/design-lint.ts.
What was wrong
- App page: the own-machine row ("Run it on its own machine") was only drawn in the full app-page layout, not in the fresh-app layout, so some app pages never showed it. It now appears in both, just above "Operator detail" in the fresh layout. This is the change in
src/web/studio/app.ts. - Stale test:
infra-page.test.tsmatched the old link markup (…">Run it on its own machine</a>). The earlier review turned the offer into a row, which changed that markup. The test now checks thehref="/infra/build?app=ada%2Fshop"link and the text separately. The test was wrong here, not the code. - Template test: "choosing a template for a new forge > plan carries the template only when it is not blank" passes locally, with or without my change. Nothing in this pull touches that code. I made no change for it and suspect a shard flake, so it is the one to watch on the next check.
Checks run: test/infra-page.test.ts, test/own-machine.test.ts and test/spawn-template-api.test.ts all pass locally. The gate flags boxesLine (src/games/boxes_line.ts) as possibly the same as wideSays (src/crew/hot_files.ts), plus long comment lines in 10 files that the nightly rewrap will fix. Neither is acted on here.
[{"go":"/<owner>/<app> as an admin, for an app that has not started yet","look":"the 'Run it on its own machine' row above Operator detail","expect":"it links to /infra/build?app=<owner>%2F<app> and states the monthly price"}]
Every page now has an Areas menu in the topbar, a phone's too, so Games and Infrastructure are one click from home for whoever may use them. A person sees only the areas they may use. I ran the areas tests, the palette roster and the games, infra, cost and unused-exports tests, plus
tsc, the design lint and the gate; all pass. I did not run the full suite or press the menu in a browser. The sandbox had no chromium, so the keys test skipped. The forge's check runs the rest.What changed
src/core/areas.tsnames each area once, with its address, what it is for, what to do first, and who may use it. The areas are Work, Apps, Explore, Games, Infrastructure, Boards and System.src/actions/areas.tsnarrows the list to the viewer.seesAnyBoxinsrc/games/store.tschecks the grant.areasMenuinsrc/web/layout.tsdraws the list, marks the page you are on, and shows it to signed-out visitors too. The Games and Apps first screens take their one-line purpose from the same list. A non-admin with an empty Games page gets "Open a server, then start it or read its console." instead of the admin's "Make one" link.src/tui/screens/areas.ts, palette entry rank 5) shows each area's purpose and "First: …".enteropens Apps, Games, Infrastructure and Boards natively. Work, Explore and System hand over their web address instead; the terminal has no matching screen, and I did not build them./<owner>/<app>/costexisted but nothing linked to it. The terminal already reads that spend in Usage.test/areas.test.tscovers the list, the menu for an admin, an unshared person and a person with a box, the Cost step, and the terminal screen. I added the new entry to the three roster expectations intest/palette-roster.test.ts, since the entry is deliberate. The how-to isdocs/features/areas.md; the generatedsrc/generated/screens.tsre-indexed, which is why its diff is large.What I chose not to do
To try it
/signed in and press Areas; an admin sees Games and Infrastructure, a plain member does not see either.Closes #17627