Public: anyone can read this; the crew can change it.
Game door: the desk snapshot carries each player's allowed servers, from whoMayReach #18325
Merged 2h 36m ago, live in production
The snapshot file that the box's agent puts in the proxy's plugin folder now has a reach(uuid, server) table. It has one row for each linked player and each server whoMayReach (src/games/reach.ts) lets them on. The uuid is the one stored on their link.
-
Reviews
ApprovedThe snapshot now carries a reach(uuid, server) table built from whoMayReach, always present, and its rows are part of the version hash. Names map back to UUIDs through game_link with the same filter whoMayReach uses, so there is no second copy of the rule. The tests cover a viewer's row, no row for an ungranted or suspended player, an empty table on an offline-mode network, a removed grant, and the version change. The docs name the table and say the plugin must filter by it. No page or terminal change is fine for a file only the plugin reads. I opened the preview:
/answers 200 with the server-rendered landing page,; the change is a file for the plugin, so the preview shows no new page and the landing page is unchanged. Two things I would do next: 1) add a test that makes the file through snapshotFor with no player online, to cover the behaviour change that the file is now made whenever the compose file reads; 2) when forge-velocity (#18303) filters by this table, add an end-to-end check that a revoked grant disappears from the game within the documented window. -
Checks
shipped production is serving it deploy 3eab8eb
-
History
- Rewrap the snapshot's comments (#18323) b055801
- Game door: the desk snapshot carries each player's allowed servers, from whoMayReach (#18323) ae6ab5c
- 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
- Tab forge: the whole tab, the whole forge, and this machine put to work (#18290) 8089d62
- Apple crash reports: the app's owner sees the groups on the telemetry view, is told once per new group, and /privacy says what a report holds (#18302) c6bd3f3
- Tab forge: a write from the tab's own page passes the same-origin guard, a cross-site write is still refused (#18300) a9db6c9
- A repository's page lists its open crash groups with their issues and pulls, within the page's SQL budget (#18293) d006820
- A `bug` issue, filed by the forge or by hand, is queued ahead of feature work for its repository's crew (#18292) ecf5bab
- Crew: run the game agent tests in ubuntu:24.04 before an agent.sh release, recorded on the release (#18274) 6a2c07b
- Crew: after an agent.sh release, watch the box (check-in, idle CPU between syncs, no rollback) and post it on the release (#18276) 707f092
- Crash reports: a private app's owner makes a report key, and a build with it can file reports without a session (#18277) 7048203
The snapshot file that the box's agent puts in the proxy's plugin folder now has a reach(uuid, server) table. It has one row for each linked player and each server whoMayReach (src/games/reach.ts) lets them on. The uuid is the one stored on their link. The forge's own database and grants are unchanged.
whoMayReach returns player names, so the new reachRows in src/games/desk_snapshot.ts looks each name up in game_link to get its UUID. It reuses whoMayReach as the issue asked instead of a second copy of the rule. pack takes the rows as an optional fourth argument and always keeps them whole; players' answers are still the part dropped when the file gets too big. The rows are part of the version hash, so removing a grant produces a new version and the agent is sent the new file.
One behaviour change: the file used to be made only while a linked player was on a server. It is now made whenever the box's compose file can be read. Without that, a player joining an empty network would find no rule, and the table could not be present but empty when nobody may reach anything. pack([]) now returns a file with an empty answer table instead of undefined. The 1.5 MB limit and the 15-second/one-minute timings are unchanged.
docs/features/games.md names reach(uuid, server) as the contract forge-velocity reads and lists who gets no row. It also says the rule holds in the game only once the plugin filters the server list, hub selector and /server by this table. Until such a plugin is pinned, nothing reads it.
Not done:
- Plugin side: forge-velocity's source is not in this repository (#18303).
- Terminal: there is no terminal or page change, because the table is a file for the plugin and nothing a person sees changes. The commit says so in a
No door:line.
Two new tests in test/game-desk-snapshot.test.ts:
- A viewer on
hubgets one row. A player with no grant and a suspended account get none, and an offline-mode network gives an empty table. Removing the grant and making the file again empties it. - A change in the rows changes the version.
Checks: bun x tsc --noEmit is clean. bun scripts/gate.ts reports 0 failing rules, and its comment rewrap is committed separately. 135 tests across 14 files pass: the snapshot, reach, desk and games tests plus the dead-code, duplicate-import, feature-doc and test-honesty rules. bun scripts/fast.ts named 392 files, about 26 minutes, so the rest is left to the forge's full check.
To try it: bun test test/game-desk-snapshot.test.ts test/game-reach.test.ts.
🤖 Generated with Claude Code
The snapshot file that the box's agent puts in the proxy's plugin folder now has a
reach(uuid, server)table. It has one row for each linked player and each serverwhoMayReach(src/games/reach.ts) lets them on. Theuuidis the one stored on their link. The forge's own database and grants are unchanged.whoMayReachreturns player names, so the newreachRowsinsrc/games/desk_snapshot.tslooks each name up ingame_linkto get its UUID. It reuseswhoMayReachas the issue asked instead of a second copy of the rule.packtakes the rows as an optional fourth argument and always keeps them whole; players' answers are still the part dropped when the file gets too big. The rows are part of the version hash, so removing a grant produces a new version and the agent is sent the new file.One behaviour change: the file used to be made only while a linked player was on a server. It is now made whenever the box's compose file can be read. Without that, a player joining an empty network would find no rule, and the table could not be present but empty when nobody may reach anything.
pack([])now returns a file with an emptyanswertable instead ofundefined. The 1.5 MB limit and the 15-second/one-minute timings are unchanged.docs/features/games.mdnamesreach(uuid, server)as the contract forge-velocity reads and lists who gets no row. It also says the rule holds in the game only once the plugin filters the server list, hub selector and/serverby this table. Until such a plugin is pinned, nothing reads it.Not done:
No door:line.Two new tests in
test/game-desk-snapshot.test.ts:hubgets one row. A player with no grant and a suspended account get none, and an offline-mode network gives an empty table. Removing the grant and making the file again empties it.Checks:
bun x tsc --noEmitis clean.bun scripts/gate.tsreports 0 failing rules, and its comment rewrap is committed separately. 135 tests across 14 files pass: the snapshot, reach, desk and games tests plus the dead-code, duplicate-import, feature-doc and test-honesty rules.bun scripts/fast.tsnamed 392 files, about 26 minutes, so the rest is left to the forge's full check.To try it:
bun test test/game-desk-snapshot.test.ts test/game-reach.test.ts.🤖 Generated with Claude Code
Closes #18323