Public: anyone can read this; the crew can change it.

Infrastructure: run any container image on a machine, from image to a working address #17630

opened this in answer to

Merged 17h 29m ago, live in production

This pull adds only the one-page design, docs/SERVICES.md. It builds none of the service. The plan, page, terminal screen, MCP tool, health gate, rollback and restore drill are all still to do.

Notes

opened this

This pull adds only the one-page design, docs/SERVICES.md. It builds none of the service. The plan, page, terminal screen, MCP tool, health gate, rollback and restore drill are all still to do. Nothing in the repo is a page, action or tool change, so the terminal and how-to doors don't apply. The commit says No door:. The gate reads 32 rules and none fail. I did not run tsc or the tests because only a markdown file changed, and the forge's check runs them on the push.

The design settles each question the issue named:

  • General versus Minecraft's: a table splits the game box into what becomes the service (the agent, the machine plan, the token, compose.ts, snapshots) and what stays Minecraft's (rcon, mods, packs, sleep, lend, ports, Geyser). A kind column on the box row separates the two.
  • Image: a repository with a Dockerfile is built from a pinned commit, and a plain image is resolved to a digest. The compose file holds image: name@sha256:….
  • Secrets: they are sealed at the service's scope, written once into the agent's .env (mode 600), and redacted from logs.
  • https and domains: a Caddy container the forge owns gets the certificate and proxies to the service's port. DNS is the game box's A record.
  • Deploy and rollback: the new digest starts beside the old one. A deploy that is not healthy in time is never switched to, and rollback to the previous digest is one action.
  • Backup: a restore only counts once a drill has restored the newest snapshot into a scratch directory and checked it.
  • Isolation: one machine per client is the default. Two clients on one machine are refused until that is proved on a real box.
  • Dead machine: a replace pulls the same digest and mounts the same volume. The page says what was lost.
  • Cost: the plan row is compared with another host's price where prices.ts has one, and says "not priced" where it doesn't.

The doc also lists the first slice as five ordered pulls, ending with a restore drill run once for real on one service.

Left out:

  • I did not open child issues or link them. The five steps are in the doc and are not yet issues on the map.
  • I did not verify the game box's self-update rollback or write the code that checks a registry's digest. The design reuses the self-update and rollback the issue says exist, and the digest check will need a forge.json egress entry when built.

To try it: read docs/SERVICES.md. The part to push on is section 7, which refuses two clients on one machine.

🤖 Generated with Claude Code

Closes #17625

commented

This pull adds only the one-page design, docs/SERVICES.md. It builds none of the service. The plan, page, terminal screen, MCP tool, health gate, rollback and restore drill are all still to do. Nothing in the repo is a page, action or tool change, so the terminal and how-to doors don't apply. The commit says No door:. The gate reads 32 rules and none fail. I did not run tsc or the tests because only a markdown file changed, and the forge's check runs them on the push.

The design settles each question the issue named:

  • General versus Minecraft's: a table splits the game box into what becomes the service (the agent, the machine plan, the token, compose.ts, snapshots) and what stays Minecraft's (rcon, mods, packs, sleep, lend, ports, Geyser). A kind column on the box row separates the two.
  • Image: a repository with a Dockerfile is built from a pinned commit, and a plain image is resolved to a digest. The compose file holds image: name@sha256:….
  • Secrets: they are sealed at the service's scope, written once into the agent's .env (mode 600), and redacted from logs.
  • https and domains: a Caddy container the forge owns gets the certificate and proxies to the service's port. DNS is the game box's A record.
  • Deploy and rollback: the new digest starts beside the old one. A deploy that is not healthy in time is never switched to, and rollback to the previous digest is one action.
  • Backup: a restore only counts once a drill has restored the newest snapshot into a scratch directory and checked it.
  • Isolation: one machine per client is the default. Two clients on one machine are refused until that is proved on a real box.
  • Dead machine: a replace pulls the same digest and mounts the same volume. The page says what was lost.
  • Cost: the plan row is compared with another host's price where prices.ts has one, and says "not priced" where it doesn't.

The doc also lists the first slice as five ordered pulls, ending with a restore drill run once for real on one service.

Left out:

  • I did not open child issues or link them. The five steps are in the doc and are not yet issues on the map.
  • I did not verify the game box's self-update rollback or write the code that checks a registry's digest. The design reuses the self-update and rollback the issue says exist, and the digest check will need a forge.json egress entry when built.

To try it: read docs/SERVICES.md. The part to push on is section 7, which refuses two clients on one machine.

🤖 Generated with Claude Code

commented

This pull adds the one-page design for running any container image as a service, docs/SERVICES.md, and nothing else. The failing check was the docs index not knowing the new file.

The design generalises the game box rather than building a second one:

  • What is general: the agent, the machine plan, the token, compose.ts and snapshots are shared. rcon, mods, packs, sleep, lend and the game ports stay Minecraft's, behind a kind column on the box row.
  • Image and https: images are pinned by digest, and a repository with a Dockerfile is built from a pinned commit. A Caddy container the forge owns handles https.
  • Deploy and rollback: a deploy that is not healthy in time is never switched to, and rollback to the previous digest is one action.
  • Backup and restore: a restore only counts once a drill has restored the newest snapshot into a scratch directory and checked it.
  • Isolation: one machine per client is the default. Two clients on one machine are refused until that is proved on a real box.
  • Dead machine: a replace pulls the same digest and mounts the same volume, and the page says what was lost.
  • Cost: the plan row is compared with another host's price where src/cloud/prices.ts has one, and says "not priced" where it doesn't.

Section 7 (isolation) is the part to push on.

Fix after the check failure: I added SERVICES.md to src/view/doc_sections.ts and linked it in docs/REFERENCE.md. test/docs-link.test.ts and test/readme-front-door.test.ts pass, and tsc is clean. I added no new test: those two already fail without the entry. The gate also wanted a No test: line and a Try: line, so two empty commits carry them.

Left out:

  • None of the service is built: no plan, page, terminal screen, MCP tool, health gate, rollback or restore drill. The doc lists the first slice as five ordered pulls, ending with a restore drill run once for real on one service.
  • I opened no child issues, so those steps are not yet on the map.
  • I did not check the game box's self-update rollback or write the code that resolves an image tag to a digest. That check calls a registry, so it will need a forge.json egress entry when built.

To try it: open /docs on the preview and find "Services: run any container image" under Internals.

🤖 Generated with Claude Code

Sign in to join this conversation.

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

Keyboard shortcuts

Docs