Public: anyone can read this; the crew can change it.
A server's page shows whether its map answers, with the reason, before anyone opens the 3D view #18349
Merged 49m ago, live in production
A game server's page now shows one line under "Open the map": "The map answers.", or the reason it doesn't. The terminal and the games MCP tool give the same words.
-
Reviews
Changes requestedThe shape is right: a stored line, a once-a-minute claim by an atomic upsert, and the page never waits on the box. Three things to fix in one round.
- (medium) The terminal calls
refreshMapfrom its draw function, so every repaint runs a write query and the line is a side effect of rendering. Start the check when the screen is opened (or on the key handler), and readmapLinein draw. - (medium) The stored line has no age.
The map answers.can be hours old if nobody looked in between, and the reader cannot tell. Say how old the result is, or call a result older than a few minutes stale in the words. The same word is needed in the MCPmapfield. - (low)
uncheckedexplains the mechanism (the box is asked when someone looks) instead of saying plainly that the map has not been checked yet. Shorten it (design principles 1 and 8). Also, ifaskMapthrows,.catch(() => {})leavesokNULL or stale for a minute with no trace: store a reason there.
Tests: the new test is good and would fail without the line. Three older tests now filter out
mapcommands. That is acceptable, but add a line in the test helpers so the next test does not trip on it.Doors and docs are present (terminal, MCP, docs/features/game-map.md). Design lint is clean; the muted
pfits the page.ApprovedNo change since my last read of this head. The line is stored and read from SQLite, so the page, terminal and MCP list never wait on the box. The check is claimed with one atomic upsert, which holds it to once a minute per server. It asks only
index.htmlthrough the existingaskMap. The page output is escaped by the template, and the terminal and MCP carry the same words frommapWords. The migration is additive and pinned, and the how-to is in docs/features/game-map.md, not the README. Tests fail without the line. Non-blocking: a GET on a page now starts a background check, which is capped at one per server per minute, so it is cheap. Non-blocking: the MCPliststarts a check for every viewable service, with the same cap. - (medium) The terminal calls
-
Checks
shipped production is serving it deploy e036110
-
History
- No look: a game server's page needs a seeded server and is not in app.looks; the page test reads the line instead 12448a3
- Looks: /games/mc/hub c51e5a2
- Tests that read the command queue ignore the map check's own index.html ask (#18345) d39017b
- A server's page shows whether its map answers, with the reason, from a stored once-a-minute check of index.html (#18345) 59d2caa
- The game map says which way it failed: not listening, too large, too slow or refused by BlueMap (#18347) f1e92e5
- Full suite red: test/spawn-move-cell-sizes.test.ts (#18340) 6034a7d
- Game door: lock automatically when the player leaves the network, as a setting (#18329) f698c54
- Connections: email_check.verified_at is read nowhere once #18222 lands, and is dropped when no release in play reads it (#18327) 0ccd5dd
- Connections: one place says an email is proven, with the sign-in proof reading it (#18320) 181d662
- Talk opens on the conversation the person was in, at the place they left it (#18322) 3eab8eb
- Universal runner: a Mac registers itself, ships TestFlight from main with the forge's secrets, and has one switch (#18291) 08c168a
- Game door: the desk snapshot carries each player's allowed servers, from whoMayReach (#18325) 9b34956
- Connections 1: one list of proven identities on the account, with the proven email and the Minecraft link moved into it (#18168) 278b2e3
- Game door: one Talk engine for game chat, web and iOS (#18316) 8304196
- Game door: a read-only switch and a one-hour write window the owner opens with a second factor (#18304) 1235063
- Full suite red: 2 files in check run 01m91f4z6qq7gd3712hjm33z1r (#18315) 1f9f7ad
- Tab forge: serve the forge as the tab's own page in the hosted shell, no frame (#18306) d162615
- Connections: a Minecraft name is a second kind of proven connection beside email (#18227) 5948687
- Access 5c: the tab forge and the Apple app's on-device mode present the same visitor to a shared forge, so apps made without a login arrive owned (#18275) ec352f4
- Tab forge: making an app is refused ("not from this forge's own page") (#18267) b869757
5 earlier comments
A game server's page now shows one line under "Open the map": "The map answers.", or the reason it doesn't. The terminal and the games MCP tool give the same words. The new tests in test/games-map.test.ts, the MCP size test, the dead-code, duplicate-import and cascade tests, the migration tests and tsc pass locally; the design lint printed no complaints. The rest of the suite is left to the forge's check on the push.
- The check:
src/games/map_check.tsasks the box forindex.htmlthrough the existingaskMap, at most once a minute per server. It stores the result in a new table,game_map_check, added by a migration and its pin. - Starting a check: looking at a server starts the next check in the background. This happens on the server's page, the terminal's live map screen and the MCP
list. None of them waits on the box. A page opened before any check has run says "Not checked yet: the box is asked when someone looks at this server." - Words: the two new sentences,
answeringandunchecked, sit inmapWords. Failure reasons are the existingmapWordsones: not listening, too large, too slow, refused, or box silent. - Each door:
- The page shows the line in the Live map block,
#map-line. - The terminal's live map screen (
won a server) appends it to the blurb. gameslistaddsmapto each service.
- The page shows the line in the Live map block,
- Tests: the first case checks that a page opened before any check says "Not checked yet" and that opening it queues exactly one
index.htmlrequest. It then checks that the box's answer shows as the stored reason and that a second look queues nothing. The second case checks that a check a minute later runs again and that a good answer reads "answering". - Docs:
docs/features/game-map.mdhas a short section on the line.
Not done:
- No page-refresh or polling of the line while a page stays open; it updates on the next load.
- I didn't add a terminal key to force a check;
pon the map screen still asks live. - The MCP
listnow starts a check for every service you can view, still capped at one per server per minute.
The migration gate refused the first push, so the commit message carries a No door: line and a Try: line; the door already exists in the files above.
Review
[
{"go": "/games/<box>/<service>", "look": "Live map block, under Open the map", "expect": "A muted line: 'Not checked yet…' on a first look, then 'The map answers.' or the reason after the box has answered"},
{"go": "/games/<box>/<service>", "look": "Reload within a minute", "expect": "The line stays; no second check starts until a minute has passed"}
]<!-- look-pages 59d2caa5db66 --> Look pages for 59d2caa, from the gate:
look pages (none): this pull changes src/web/pages/games.ts but the forge could not trace the route of /, /admin/telemetry, /explore and 29 more (an inline or wrapped handler), so it could not infer a page; the reviewer decides. A "Looks: <path>" line naming the nearest page, or a "No look: <why>" line (10+ characters), says it
A game server's page now shows whether its map answers, with the reason when it doesn't. The line comes from a stored check of index.html that runs at most once a minute per server, so the page never waits on the box.
The page, the terminal's live map screen and the MCP games list all read that stored line. Opening a server's page starts the next check in the background if the stored one is a minute old. docs/features/game-map.md says so.
Why the check failed. Opening a server's page now queues a map command for index.html. Three tests listed every queued command and so counted it. I changed them to leave out map commands, and nothing else in them changed:
test/game-findings.test.tsandtest/game-chat.test.ts: the "nothing was queued" and "onlytellcommands" queries skipmap.test/games.test.ts: the sync check keeps only non-mapcommands before it compares them with bob'ssay.
The fourth failure, test/cloud-files.test.ts ("the terminal: ] goes to File…"), passed here in isolation and alongside the others. It never touches the map check or the command queue, so I believe it was a timing flake in the shard (it took 304 ms there). I made no change for it. If it fails again, it needs a separate look.
What I ran. Before pushing I ran the four failing test files plus test/games-map.test.ts twice (75 pass, 0 fail both times) and test/cloud-files.test.ts three more times (0 fail). tsc --noEmit and bun scripts/gate.ts --fix were clean, and --fix left nothing to commit. I did not run the whole suite. The forge's check does that on this push.
What to look at. The change adds no feature and no new door. Try it by opening a game server's page on the preview and reading the line under "Open the map".
🤖 Generated with Claude Code
This push adds no code. I added an empty commit with a Looks: /games/mc/hub line, so the gate has a page to look at; it couldn't work one out for src/web/pages/games.ts.
The three tests you named pass here: the unused-exports, duplicate-import and first-view budget checks, run through test/unused-exports.test.ts, test/dup-imports.test.ts and test/attention.test.ts. test/attention-stamped.test.ts passes too. mapLine and refreshMap each have callers in the page, the terminal and the MCP games list, and no module imports the same file twice.
The terminal side already exists. src/tui/screens/game_map.ts shows the same stored line on the live map screen. The MCP games list (src/http/mcp/tools/games.ts) carries it too. The new commit message says so, and docs/features/game-map.md notes it as well.
The forge's full check runs on this push. I did not run the whole suite here.
🤖 Generated with Claude Code
<!-- look-pages c51e5a2ae81f --> Look pages for c51e5a2, from the gate:
look pages (none): "Looks: /games/mc/hub" is not a page of app.looks in forge.json; this pull changes src/web/pages/games.ts but the forge could not trace the route of /, /admin/telemetry, /explore and 29 more (an inline or wrapped handler), so it could not infer a page; the reviewer decides. A "Looks: <path>" line naming the nearest page, or a "No look: <why>" line (10+ characters), says it
The look-pages feedback is addressed with a No look: line. I changed no code in this push, so the three tests you named were not re-run. They passed last round.
The earlier Looks: /games/mc/hub line was refused because that path isn't in app.looks in forge.json. A game server's page needs a seeded server, so I chose not to add one to the looks list for this pull. The new empty commit says No look: and gives that reason.
The two doors are unchanged. The terminal's live map screen (src/tui/screens/game_map.ts) and the MCP games list already show the same stored line as the page.
The forge's check runs on this push. I did not run the whole suite.
🤖 Generated with Claude Code
A game server's page now shows one line under "Open the map": "The map answers.", or the reason it doesn't. The terminal and the
gamesMCP tool give the same words. The new tests intest/games-map.test.ts, the MCP size test, the dead-code, duplicate-import and cascade tests, the migration tests andtscpass locally; the design lint printed no complaints. The rest of the suite is left to the forge's check on the push.src/games/map_check.tsasks the box forindex.htmlthrough the existingaskMap, at most once a minute per server. It stores the result in a new table,game_map_check, added by a migration and its pin.list. None of them waits on the box. A page opened before any check has run says "Not checked yet: the box is asked when someone looks at this server."answeringandunchecked, sit inmapWords. Failure reasons are the existingmapWordsones: not listening, too large, too slow, refused, or box silent.#map-line.won a server) appends it to the blurb.gameslistaddsmapto each service.index.htmlrequest. It then checks that the box's answer shows as the stored reason and that a second look queues nothing. The second case checks that a check a minute later runs again and that a good answer reads "answering".docs/features/game-map.mdhas a short section on the line.Not done:
pon the map screen still asks live.listnow starts a check for every service you can view, still capped at one per server per minute.The migration gate refused the first push, so the commit message carries a
No door:line and aTry:line; the door already exists in the files above.Review
Closes #18345