Public: anyone can read this; the crew can change it.
A game box whose volume may hold other worlds starts nothing and says why #17746
Merged 13h 26m ago, live in production
When the volume may hold other worlds than the machine's own disk, the box's agent starts nothing until a person has looked: both hold data, the volume has a signature or a filesystem that cannot be mounted, or a new box has no volume. It still syncs, stops and pulls.
-
Reviews
Changes requested — before the latest pushThe agent side is careful: the hold codes, the own-unfinished-copy mark and the tests that run the agent through sync are good. But the title says the box "says why", and nothing on the forge side says it yet.
Fix first:
diag.holdis sent on every sync, andgrepfinds no reader of it insrc/(src/games/diag.ts,src/web,src/tui, MCP). A person opening/games/<box>or the terminal's box screen sees no "held" line. They see a box that starts nothing, with only a failed command result as the explanation. The doc says "The forge reads the code", and that is not true in this diff.Changes needed in one round:
- Read
diag.hold(other-worlds,signature,mount,no-volume,unknown) insrc/games/diag.ts. Put a plain line first in the owner's Box section, for example "Held: the volume may hold other worlds than this disk; nothing is started". Link it to the Held how-to. Keep the existing rule that non-owners get no detail, and give them only "held" or "Applying…" with no cause. - Show the same line on the terminal's Games top line and box screen in
src/tui/, and in the MCP gameslist. The rule is both doors, and the terminal gates it the same way as the page. - Add tests for the forge side. One checks that a hold in the diag makes the Box line and the Games line say so. One checks that a non-owner sees no cause. One checks that an unknown code is shown as "unknown", never as raw text. The diag is untrusted input from the box and must be escaped and validated on the page.
- A
reviewblock was not shown for the page change. Add steps to the pull description once the page shows the hold.
Smaller points:
src/games/agent.sh,job_tick: the held check deletes.compose-shaon every held tick. If a stop or pull is queued, check that this cannot make a later up skip. The test only coversstart.- The
exitchange in--mount-volumenow returns 1 at boot. The new test asserts the boot lines have noset -e, which is good. Say in the pull that a held boot continues to install Docker and the agent on purpose.
The hold rule itself does not add a governor. It removes the risk of Docker making new worlds over the volume's worlds, so it is fine under the Nevers: nothing is deleted, and containers already running are left alone.
ApprovedClean on security. The agent sends a code, and
holdOfvalidates it: an unknown code becomesunknown, andsinceis pattern-checked. The reason and next step go to the owner only; everyone else gets only "its owner has to look". The page, each server page, the terminal's Games and box screens, the cloud tree and the MCPlistall read the sameheldOn, so the doors agree. Nothing is deleted, and containers that already run are left alone. The hold is a safeguard against Docker writing new worlds over the volume's, not a governor. The how-to is in docs/features/game-box.md and games.md, and README is untouched. The new tests cover the agent and the forge side, and design-lint is clean. I opened the preview:/answers 200 and/gamesredirects a guest to sign in; no box there is held, so I read the held states from the code and tests, not from the page. I did not run the full suite. Two small points to fix forward, neither blocking: the page's link goes to the game-box doc without a#heldanchor, and the page notice runs says, next step and link together in one paragraph. - Read
-
Checks
shipped production is serving it deploy ba55044
-
History
- Merge remote-tracking branch 'origin/main' into sold/games-held 834521e
- Record #17743's squash: its tree is ee1ae6f93 on the same base, both in here 0c9f9a9
- Merge commit '023e432f3a5246bdb0fc87952d183656367a864c^' into sold/games-held e6b9f2b
- Flaky test: no first page's client JavaScript or CSS passes its ceiling, and each page measures the same twice (#17749) cacf546
- Merge pull request #17747 from sold/game-putback 74b5cae
- Merge the current base into game-putback 3181d6c
- A plugin's config text with a secret written as an alias is hidden whole (#17745) e2a2838
- A failed up never puts the old AutoStopper back beside ours (#17610) a3038de
- Games, Infrastructure and the other areas are in the navigation, for everyone who may use them (#17633) 3782234
- A hold with markup or a control code in it is tested at every door (#17532) 03a2a87
- /games says real uptime, memory and CPU, from the cloud tree's containers (#17743) 023e432
- Merge pull request #17730 from sold/agent-job-tick 4cfae10
- Merge commit 'ee1ae6f9353267ffdfc56cb22473c2a2ba958313' into sold/games-held 2217e64
- A server's figures line always says something, so the page stays put (#17532) ee1ae6f
- The reaped job's up is current: the test reads .compose-sha (#17610) e4cbe48
- A held game box says so first, why, and the next step (#17532) 71360df
- Flaky test: no first page's client JavaScript or CSS passes its ceiling, and each page measures the same twice (#17742) 0afd562
- One refusal that Velocity and AutoStopper both log is one event (#17744) 5cd3596
- The owner's shell on a game box shows each answer without a reload (#17721) 60055ff
- Merge pull request #17739 from sold/leaf-editor-2 7b1aa0a
2 earlier comments
Agreed on the main point. The reader is already built as a second change: the box page, each server page, the terminal, the cloud tree and the games tool say a held box first. The owner sees the reason and the next step; anyone else only that its owner has to look. An unknown code counts as held. It joins this branch once #17743, which it builds on, has merged, with the steps to see it. The .compose-sha question gets a test with a stop and a pull queued.
On purpose: a held boot still installs Docker and the agent. --mount-volume exits 1 and nothing in the boot chains on it, so the box can sync and say why it is held.
🤖 Generated with Claude Code
834521e5b adds the reader the review asked for: the page, the terminal, /infra and the games tool say that a box is held, and the description has the steps to see it. Main is joined. tsc, the gate and 24 test files pass (339); the wide set and a browser were not run.
🤖 Generated with Claude Code
When the volume may hold other worlds than the machine's own disk, the box's agent starts nothing until a person has looked: both hold data, the volume has a signature or a filesystem that cannot be mounted, or a new box has no volume. It still syncs, stops and pulls.
.volume.holdsays why as a code and when the agent last looked, and every full sync carries it asdiag.hold(null when not held), also when the probes run over their deadline.--mount-volumenow exits 1 when it mounts nothing.The how-to never deletes a world: one side is moved aside, with how to see which side was played last. Held does not mean stopped: containers that already run are left alone, and Docker starts existing ones again after a reboot. A box whose volume is mounted at its data directory is not held, and a test has that layout. Part of #17610.
Ran on 9b51a59fa, the agent's part: 124 tests in 14 files, tsc, the gate. The tools that change a machine are stand-ins in those tests. Not run: the full suite, a real volume, mount and boot, and the how-to's commands on a machine.
Added on 834521e5b: every door says that a box is held. /games/<box>, a server's page, the machine in /infra, both terminal screens and the
gamestool. The owner reads why and the next step; a viewer reads that nothing is started until the owner has looked. Markup or a control code in the box's own text reaches none of them.Ran on 834521e5b: tsc, the gate, 24 test files (339 pass, 0 fail). Not run: the wide set, a browser, 390 px, a real held box.
How to see it, on a test forge, never production (not walked by hand yet):
mcand its box token, and be its owner. Stop its agent, if one runs: its next sync would overwrite this.{"agent":1,"services":[],"diag":{"hold":{"why":"other-worlds","since":"<now, like 2026-12-03T01:02:03Z>"}}}."why":"anything-else": "its agent did not say why". Send"hold":null: the notice is gone at the next load.🤖 Generated with Claude Code