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
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.
-
Reviews
ApprovedA design-only pull, and it answers what the issue named: what of the game box is general, image pinning by digest, secrets, https, deploy/health/rollback, a restore that was tried, isolation, a dead machine, cost. It adds no page, action or tool, so the terminal and how-to doors do not apply. README is untouched. The doc is indexed in REFERENCE.md and doc_sections.ts, the paths it cites exist, and /docs answers 200 on the preview. It breaks no Never: nothing is deleted and no governor is added.
Two things I would do next:
- Section 5 starts the new container beside the old one on the same volume. For a stateful service two writers on one volume corrupts data. Say which services get blue/green and which are stopped, then started, with a short downtime that the plan states.
- Open the five first-slice steps as issues and link them with blockedBy, so they appear on the map. Step 1 (
kindon the box row) is ready now.
-
Checks
shipped production is serving it deploy 9c0dc23
-
History
- Direction: say how to try the services docs entry (#17625) 9e262e0
- Direction: the docs index entry for the services design is covered by existing tests (#17625) bb26078
- Direction: list the services design in the docs index and REFERENCE (#17625) 10cd30c
- Direction: a one-page design for running any container image as a service, generalising the game box (#17625) c53b5d7
- Merge pull request #17616 from sold/cloud-gaps 324663c
- Home: a stat tile's label stops before its sparkline, so "Shipped in 24 hours" is no longer drawn over on a phone (#17581) 59b8076
- An evicted check on a game box loses at most one shard, and a frozen job thaws if the player leaves soon (#17615) 2492b91
- Merge pull request #17620 from sold/game-outcome 2a44186
- The Asked column holds only what needs the owner's word; the crew's queue is one line, and an ask closes itself after seven days (#17559) 40f1d8f
- Test the cloud note on screen and ECS rows at both doors, and clean up after a failure (#17532) 8e73a4b
- The people lists are read right after an op, ban or whitelist typed on the console (#17610) 7afe537
- The game agent never enters the waker's container (#17610) a9ee2ec
- A player command the game server refused is failed, with the closest names seen on that server (#17610) c822b18
- Say a cloud project's note as a plain line, web, terminal and tool (#17532) 6ceafed
- Count a billed account's unread kinds in the headline, apart from the sum (#17532) c059c80
- Lead the headline's unread count to the account that names the kinds (#17532) ee3350f
- Count a resource page's own statements from rest (#17532) ed18981
- Say on a cloud account which kinds were not read, where and why (#17532) 6294957
- Say when R2 is not switched on, instead of asking for a permission (#17532) 7a2295c
- Keep cloud names as their owner wrote them (#17532) da23125
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). Akindcolumn 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.tshas 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.jsonegressentry 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
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.tsand snapshots are shared. rcon, mods, packs, sleep, lend and the game ports stay Minecraft's, behind akindcolumn 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.tshas 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.jsonegressentry when built.
To try it: open /docs on the preview and find "Services: run any container image" under Internals.
🤖 Generated with Claude Code
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 saysNo door:. The gate reads 32 rules and none fail. I did not runtscor 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:
compose.ts, snapshots) and what stays Minecraft's (rcon, mods, packs, sleep, lend, ports, Geyser). Akindcolumn on the box row separates the two.image: name@sha256:…..env(mode 600), and redacted from logs.prices.tshas 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:
forge.jsonegressentry 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