Public: anyone can read this; the crew can change it.
The game map says which way it failed: not listening, too large, too slow or refused by BlueMap #18347
Merged 1h 2m ago, live in production
The game map now says which way it failed, and a viewer is only sent to reinstall BlueMap when BlueMap isn't listening. test/games-map.test.ts, tsc and scripts/gate.ts --fix pass. I didn't run the rest of the suite, because scripts/fast.ts found the change too broad to narrow down.
-
Reviews
ApprovedTried to break it:
$?aftercode="$(curl ...)"is curl's own status (the script hasset -uonly, noset -e, so the rc file is always written); curl failures other than 7, 63 and 28 stay000and get today's sentence; a new agent talking to an old forge falls to the unreachable sentence; an old agent'sstatus 000and any unparseable output keep the install hint;status 404stays a 404; the output words are fixed strings, so no user text reaches a sentence except a three-digit code. Nothing broke. Next two: (1) nothing runs the agent's exit-code mapping in agent.sh, because the test feeds the forge the words directly. A stubcurlon PATH exiting 7, 63 and 28 would pin it. (2) The 600 KB and 10 s in the sentences are typed twice, once in agent.sh and once in map_words.ts. Derive them or comment the pairing. -
Checks
shipped production is serving it deploy b6d2692
-
History
- Game map: the agent says which way a fetch failed, the forge words each (#18343) 00478f5
- 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
- The release was held: could not cut the tag v0.7.741 (#18299) 4d3523d
- Tab forge: a real-browser walk makes an app and edits a file without 'Failed to fetch' (#18307) c343cd7
- Game door: each player sees and reaches only the servers their forge grant allows (#18301) 37e3d90
- Report key: an admin makes, rotates and revokes it through the JSON API, in the settings page's words (#18289) ff66ea0
The game map now says which way it failed, and a viewer is only sent to reinstall BlueMap when BlueMap isn't listening. test/games-map.test.ts, tsc and scripts/gate.ts --fix pass. I didn't run the rest of the suite, because scripts/fast.ts found the change too broad to narrow down. The forge's check runs it on this push. Nothing was run against a live BlueMap.
What changed
- Agent (
src/games/agent.sh):map_startnow reads curl's exit code. Exit 7 is sent asrefused, 63 astoobigand 28 asslow. Any other HTTP status still goes asstatus NNN. - Forge (
src/games/map.ts,src/games/map_words.ts):askMapmaps each answer to its own status and sentence:
| Answer | Status | Sentence |
|---|---|---|
refused | 502 | Today's not-listening sentence, with the install hint |
toobig | 502 | Larger than the 600 KB the box relays (no install hint) |
slow | 504 | Took longer than 10 s (no install hint) |
status 404 | 404 | Not on the map |
status 403, 5xx and other codes | 502 | BlueMap refused the file, with its status |
- Old agents: a bare
status 000from an agent that isn't updated still gets today's not-listening sentence. An unrecognised answer also gets that sentence. - Doors: the web page and the terminal both read
askMap's sentence, so both show the new wording. The commit saysNo door:because neither surface changed shape. - Docs:
docs/features/game-map.mddescribes the four reasons. - Test: one new case in
test/games-map.test.tscoversrefused, an oldstatus 000,toobig,slowandstatus 403. Each fails without the change.
Left out
toobigandrefusedshare status 502. I didn't pick a more specific code, such as 413, because it would mislead the browser.- The release scripts are untouched. I added no new function and no dependency.
The game map now says which way it failed, and a viewer is only sent to reinstall BlueMap when BlueMap isn't listening.
test/games-map.test.ts,tscandscripts/gate.ts --fixpass. I didn't run the rest of the suite, becausescripts/fast.tsfound the change too broad to narrow down. The forge's check runs it on this push. Nothing was run against a live BlueMap.What changed
src/games/agent.sh):map_startnow reads curl's exit code. Exit 7 is sent asrefused, 63 astoobigand 28 asslow. Any other HTTP status still goes asstatus NNN.src/games/map.ts,src/games/map_words.ts):askMapmaps each answer to its own status and sentence:refusedtoobigslowstatus 404status 403,5xxand other codesstatus 000from an agent that isn't updated still gets today's not-listening sentence. An unrecognised answer also gets that sentence.askMap's sentence, so both show the new wording. The commit saysNo door:because neither surface changed shape.docs/features/game-map.mddescribes the four reasons.test/games-map.test.tscoversrefused, an oldstatus 000,toobig,slowandstatus 403. Each fails without the change.Left out
toobigandrefusedshare status 502. I didn't pick a more specific code, such as 413, because it would mislead the browser.Closes #18343