Public: anyone can read this; the crew can change it.
Game boxes: a machine on your own cloud that runs a compose network, kept by a pull-based agent #16913
Check · Review · Land · Live done — Landed and live in production.
The owner's Minecraft network, built by the forge's own tools (the owner, 2026-11-30: live by 02:00Z). A game box is a pinned row plus a gamebox row. It goes through the same plan, ceiling, drivers, volume, DNS, watch, retire and hourly reckoning.
-
Reviews
Changes requested — before the latest pushSound bones: the agent token is hashed and rotated, sync is capped by bytes read, every page and MCP write checks
roleOn, jar URLs are HMAC-signed and expire, and the box answers over https only. Changes needed, in one round:- HIGH (authorization):
committer()in src/games/compose.ts writes a non-admin operator's env and plugin commits as the repository's owner. A per-service grant therefore becomes write access, as the owner, to the compose repo; the repo's compose runs as root on the box. Commit as the person, and refuse when they cannot write the repo. Or, if an operator is meant to edit env, have an owner/admin approve it. The same applies to the page, the MCP tool and the crew. - MEDIUM (cross-box):
signJarUrlssigns any/games/jar/<id>/<name>found in a compose file without checking that the jar belongs to this box. Checkjar.boxId === box.id. - MEDIUM (secrets): the env editor commits any value to the repo, while docs/features/games.md says secrets are never committed. The page hides values only by a key-name regex. Refuse or route
*PASSWORD|SECRET|TOKEN|KEYkeys to the sealed secret store. - MEDIUM (DoS): the jar upload reads up to 64 MiB into memory (
file.arrayBuffer()), with no.jaror zip-magic check and no per-box count or size cap. Orphaned jars are never deleted when the commit fails. Validate the file, bound what a box keeps, and remove the file ifaddPluginfails. - Both doors: the terminal only starts, stops and restarts. The console (RCON), the env editor, plugins and grants exist on the page and MCP but not under
src/tui/. Add them, or the rule is not met. - Design (principles 3, 6, 7): src/web/pages/games.ts uses inline
style="max-height:24rem;overflow:auto"and a hand-rolled.codelog box, and asettings-blocksection with its own border for each of console, env and plugins. Use tokens and a named component, and put any new class in docs/design/areas/<area>.md. - agent.sh:
docker exec "$service"names a container, but compose names itgame-<service>-1unlesscontainer_nameis set, so rcon fails for most files. Usecompose exec -T "$service" rcon-cli -- "$text". The.envname list also allowsagent.envand.authinside the agent's own directory, so write only.env. - Clean:
scripts/unused-exports-allow.jsonallows three exports that nothing outside tests uses. DeletecreateGameBox's separate path or use it, rather than allow-listing.
Security notes, not blocking: an operator who adds a jar or plugin can run code on the game server, which is inherent to plugins. Please say so in docs/features/games.md.
ApprovedAll eight earlier asks are met at this head. (1) Env and plugin commits are made as the person and refused without write access to the compose repo. (2) Jar URLs are signed only for jars of this box. (3) Secret-looking env keys are refused. (4) Jar upload is validated as a .jar with zip magic, bounded at 64 MiB per jar and 20 jars / 256 MiB per box, and the file is removed if the commit fails. (5) The terminal Games screen now has console, env, plugins and grants. (6) The page uses the named components (settings-block, run-log) and has no inline style. (7) The agent uses
compose execby service and writes only.env. (8) No allow-list entries remain. The how-to is in docs/features, not the README, and docs/features/games.md says plugins run code on the game server. Non-blocking: the jar upload stays web-only in the terminal, which the doc says. - HIGH (authorization):
-
Checks
shipped production is serving it deploy 63ed874
-
History
- Games: the agent script is embedded so the bundle carries it; refusals say what is true without sending the reader elsewhere bc8d0ac
- Games: the generated source index names the games migration, marks and screen 1a57cd6
- Games in the terminal: a service's console, env and plugins, and a box's grants 5c26fbf
- The game agent runs rcon by service through compose, and writes only .env 877b0e2
- Games: commits as the person who can write the repo; jars of this box only, validated and bounded; secret keys refused; the console is the run log 910e612
- Games: check again (an unrelated XML timing test flaked under load) 097e4db
- Games: listed in the registry tests (open walk, looks, own script, doors, tag, held form) 572b5ac
- The game agent's sync test runs where its tools are, and says what the agent said when it fails 3755765
- Games: empty states are kinds in the empty-words table, drawn by emptyLine and the terminal's emptyText 7be5307
- Games: empty states say what is true and what to do, not a bare No 7881947
- Game boxes use the games store's lookup and token rotation 2b01434
- The game agent writes every env name verbatim, .env included, and runs compose in its own directory 500dcab
- Game boxes: a machine on your cloud running Docker and the game agent, made through the plan 7c94aae
- Games: the sync route's OpenAPI row passes the contract tests 75fdb6f
- Games: an RCON key for every service; one box lookup 71737a8
- Games: one .env, box lookups for the machine side, retired boxes refused 6ef2a08
- Forge games: the agent sync, /games and the games tool 597b1c2
- Runner checks get the impact map, kept results, times and tsc cache: pull checks stop running ~82% of the suite (#16876) 22a2cae
- Bridge v1.1: h/l across lanes, an obvious close, honest resource figures, and a phone tap that selects (#16941) 3254601
- Crypto agility: sealed values, the edge file and cost bills name their algorithm (#16919) 730b9ed
The owner's Minecraft network, built by the forge's own tools (the owner, 2026-11-30: live by 02:00Z).
game_boxrow. It goes through the same plan, ceiling, drivers, volume, DNS, watch, retire and hourly reckoning.infra plan {want:{game:true, where, host}}, thenapply.POST /api/v1/games/agent/syncevery 5 s, applies compose and env (0600), runs rcon and power commands, and reports services, stats and logs. Its token is stored hashed and never placed on argv.The sync endpoint and the /games pages follow in the next pull.
🤖 Generated with Claude Code