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

opened this

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.

Notes

opened this

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.hold says why as a code and when the agent last looked, and every full sync carries it as diag.hold (null when not held), also when the probes run over their deadline. --mount-volume now 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 games tool. 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):

  1. Have a game box mc and its box token, and be its owner. Stop its agent, if one runs: its next sync would overwrite this.
  2. POST to /api/v1/games/agent/sync with that token as the bearer, read from a file, and the body {"agent":1,"services":[],"diag":{"hold":{"why":"other-worlds","since":"<now, like 2026-12-03T01:02:03Z>"}}}.
  3. Open /games/mc. The first line says "Held: its volume holds data, and so does its own disk. Nothing is started; containers that already run are left alone.", then when the agent last looked, the next step and a link to the Held steps.
  4. Sign in with a viewer's grant: "Held: nothing is started until its owner has looked."
  5. In the terminal, open Games: the same words at the top.
  6. If the box's machine is in the cloud tree, open it under /infra: "held" in its row, and "Held" and "Next step" first in its facts.
  7. Send "why":"anything-else": "its agent did not say why". Send "hold":null: the notice is gone at the next load.

🤖 Generated with Claude Code

2 earlier comments
commented

Taken over by @trevato; stopped @juniper.

commented

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

commented

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

Sign in to join this conversation.

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

Keyboard shortcuts

Docs