Public: anyone can read this; the crew can change it.
Games G2: import a world from a link, snapshots before every swap, Restore and Undo (#17284) #17289
Merged 22h 15m ago, live in production
The owner wants his old worlds back on mc (a signed storage link). From #17284 G2: /games/ / World block: Import world (a link to a .zip or .tar.gz with level.dat), a snapshot list with Restore, Undo, and Take a snapshot. Steps show live from the box's job log.
-
Reviews
Changes requested — before the latest pushChanges needed, in order: (1) HIGH: the terminal's
i(import) andu(restore) keys queue a world command with no operator check, so a viewer or guest can replace a world from the terminal. The page and the games tool gate it; the terminal must too. (2) The terminal console tab prints the raw queued command text, so an import link's query string (the signed secret) shows there until the box takes it. (3) Snapshot pruning deletes snapshots with no red button, and that is a Never. (4) The page's explanatory paragraph breaks design principle 1. Each finding is anchored below. Also add a test that a viewer's terminalioruis refused, and that the console tab never shows a query string.ApprovedEvery earlier ask is met. (1) Terminal
ianduno longer skip the role check:queueWorldnow refuses anyone who is not an operator of the service, so the page, the terminal and the tool all go through it. (2) The console tab renders world commands throughworldWords, and the forge now keeps only host and path once the link has gone to the box. (3) The prune is gone and every snapshot is kept, which fits the Never on deleting data. (4) The explanatory paragraph under World is gone. I found nothing new in the later lines. The link is validated and has no control characters. It reaches curl through a mode-600 config file that is removed when the job ends. The level name and snapshot name are regex-checked before they go into the helper's shell. Non-blocking: the terminal'suasks for a number before telling a viewer they are not an operator; checking the role first would save the typing. -
Checks
shipped production is serving it deploy 339cc69
-
History
- World import: only an operator queues a world change, at every door; links show as host and path in the terminal; every snapshot is kept 468cf8b
- World import picks the overworld: the shallowest level.dat outside a _nether or _the_end folder. On Linux find lists in disk order, and took hub-world_nether's level.dat for the world (the check's runner showed it: world/level.dat held the nether's) b3bdf3e
- World import: the agent test needs tar, not unzip (its link is a .tar.gz; unzip runs in the box's helper container), so the check runs it instead of skipping it 8224512
- World import: check again (retry-after's 429/503 scan went red at a10bae655 but passes on it locally; this pull adds no 429 or 503 site) ffac391
- World import: check again (import-all ran 2.29 s against its 2 s budget on a loaded runner) 7f7f307
- A world with no snapshot yet says so from the empty-words table 78b4d19
- Games: import a world from a link, with a snapshot of the world it replaces, Restore and Undo (#17284 G2) 280333f
- Merge pull request #17295 from sold/game-people b50a2de
- People: a head's misses and fetches out are the app's, kept by app in a WeakMap, not the process's (#12569) 3423c7c
- People: log facts only after the server's own line head, heads only for players the forge has seen, a move only to a server the person operates (#17295 review) 6bb0e56
- People: the head picture route is named among the patterns the seed cannot fill 8fcc7cf
- Games: the network as a picture on /games/<box>: the proxy, its servers awake, waking, asleep or stopped, their TPS and who is on them, and Move by a player's head (#17284 G5) 05e8f63
- Games: people on the network, with no plugin on the servers: who is on with heads, the whitelist, ops and bans as toggles, joins, deaths and chat, and Move between servers (#17284 G3) 0a3b212
- Games: metrics per server (players, TPS, MSPT, CPU, memory, errors, joins), a minute a row for 30 days, on the pages and in the games tool under 4 KB f0b241d
- Sentinel: memory-growth was degraded 18 minutes today: The forge's own memory is 5017 MiB, over twice its first-hour 1654 MiB and past the 2176 MiB more its database caches m… (#17436) baf03ad
- A forge boots in the browser tab: wasm SQLite on OPFS and a service worker as its server (#17148) 0b6466e
- A tab forge's service worker answers home and the issue list from the tab's store (#17363) 517654c
- See and manage everything on any cloud: provider ▸ account ▸ project ▸ resources, the cloud's own view, a console that always works (#17253) 3ceb22f
- Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:1qrob4aq1a is past its budget: trevato/forge: "migrate from the terminal > repositories are listed newest push first, and two ticked start two migrati… (#17413) b7cd143
- Sentinel re-files a closed budget breach every 2 minutes: breach findings car… (#17409) ecacbd4
The owner wants his old worlds back on mc (a signed storage link). From #17284 G2:
worldop, and a held Talk action.Not run locally beyond tsc and its own tests (the Mac is kept free). The helper commands still owe an ubuntu/alpine container run.
🤖 Generated with Claude Code