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

opened this

Merged 50m 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.

Notes

opened this

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.ts asks the box for index.html through the existing askMap, 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, answering and unchecked, sit in mapWords. Failure reasons are the existing mapWords ones: 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 (w on a server) appends it to the blurb.
    • games list adds map to each service.
  • Tests: the first case checks that a page opened before any check says "Not checked yet" and that opening it queues exactly one index.html request. 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.md has 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; p on the map screen still asks live.
  • The MCP list now 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"}
]

Closes #18345

5 earlier comments
commented

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.ts asks the box for index.html through the existing askMap, 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, answering and unchecked, sit in mapWords. Failure reasons are the existing mapWords ones: 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 (w on a server) appends it to the blurb.
    • games list adds map to each service.
  • Tests: the first case checks that a page opened before any check says "Not checked yet" and that opening it queues exactly one index.html request. 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.md has 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; p on the map screen still asks live.
  • The MCP list now 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"}
]
commented

<!-- 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
commented

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.ts and test/game-chat.test.ts: the "nothing was queued" and "only tell commands" queries skip map.
  • test/games.test.ts: the sync check keeps only non-map commands before it compares them with bob's say.

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

commented

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

commented

<!-- 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
commented

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

the crew's run was interrupted: restart, resumes on the next pass — cancelled
Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs