Public: anyone can read this; the crew can change it.
The game agent puts the proxy's pinned jars in place before an up #17679
Merged 13h 54m ago, live in production
Part of #17610. The agent's half of giving the proxy a plugin the forge builds. The forge sends no jars yet, so on a box this changes only that each compose up goes through a small function that runs the same command.
-
Reviews
ApprovedThe agent side is sound. Jars are validated (count, sha256, URL shape, name carries the sha256 prefix, so no path), fetched through a curl config file so the signed link is never on a command line or in the log, and checked by sha256 before anything moves into place. A bad jar holds back only the proxy, and the rest comes up. The AutoStopper move-aside is matched by sha512 and is undone when the up fails. The tests cover each of these and use a fake docker. No door change is needed: this is the box agent, not a page, action, API route or MCP tool. No new dependency, no README change, and nothing is added to forge.json egress because the fetch runs on the game host.
Two things to do next:
- Nothing in src/ sends
jarsin the sync answer or mounts jars/ at /forge-jars yet (I found none in src/games/*.ts). Until that lands, the new path is never taken. Land the answer and compose side next, and add a test that the answer's jars shape matches what jars_ready accepts, so the two cannot drift. - The first test only greps agent.sh for the sha512 and project id. It proves the constants match sleep.ts but not behaviour. Pass them through the env in the other tests, or generate the agent's constants from sleep.ts, so a single source holds them.
- Nothing in src/ sends
-
Checks
shipped production is serving it deploy a544da9
-
History
- The agent puts the proxy's pinned jars in place before an up (#17610) 96a9bc6
- The memory line says what is held: RSS and its anonymous part, and the allocator's churn as a rate, never "committed 126 GiB" (#17667) 59691dc
- Adopting data from before the migration table parses each migration once, not once per earlier one (#17671) 85b9aa9
- Every transaction on a forge's connection takes the write lock first, with the busy retry (#17643) b9554e8
- scripts/boot-profile.ts: boot a copy of a forge's data under the CPU profiler and say what held the thread (#17660) 05bf470
- The newest snapshot is read alone: the backup watch, drill, probe and standby parse one manifest, not fourteen (#17659) c10544f
- Game pages: an operator on a phone finds the five things they came for (#17664) 2d0f5f0
- The cost ledger's chain is walked in a worker: a boot no longer holds the loop 0.5-1 s for it (#17638) 7ce8163
- Merge pull request #17665 from sold/game-restore 07ec5c4
- A snapshot's files are cut off the serving thread: an unchanged hosted forge's stream pass holds the loop 0 ms, not 0.8 s (#17622) 574b021
- Merge main into sold/game-restore dffb002
- A game box's snapshot comes back as a game box, not a forge on its worlds (#17625) 275aa3a
- A machine says what it boots: a forge, a game box or services (#17662) f1cc743
- A search that finds nothing is sent to the crew on Enter (#17648) bd828f9
- A pull that lands while its check runs keeps the check, and a red it ends with is main's, said on the home's first line (#17632) f270a47
- Merge pull request #17649 from sold/game-token 6e291aa
- Games: a player asks the forge in game and is answered from its own data (#17641) 4f237e3
- A machine says what it boots: a forge, a game box or services (#17625) 70e4ecc
- Full suite red: 2 files in check run 01m8w6hr59j962wx5rp8ngjz3e (#17655) 4128d1b
- Keep the last two tokens: a restored forge still answers the box e817733
Part of #17610. The agent's half of giving the proxy a plugin the forge builds. The forge sends no
jarsyet, so on a box this changes only that eachcompose upgoes through a small function that runs the same command.When a sync's answer has a new compose file and
jars({name, url, sha256}):upjob, checked against its sha256 and put injars/, so the sync never waits. A link is never on a command line or in the log;jarshas one and the compose file no longer names its project. It comes back if theupfails.Limits: a held-back
upis not tried again until the compose file or.envchanges. Anupthat succeeds does not prove the plugin loaded. Old files injars/are not deleted.Not tried: the real proxy image, the real mount, a real box; everything ran against a stand-in docker.
Tests (the builder's), on Linux: game-jars failed before the code and gives 8 pass; game-box, game-volume, game-world and game-agent-update pass, run before a last edit to the jars test only; tsc exits 0. Not run: the other agent test files, the full suite.
No door: the box's agent only; the forge sends no jars yet. No look: no page changes. Try: bun test test/game-jars.test.ts
🤖 Generated with Claude Code