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

opened this

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.

Notes

opened this

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.

When a sync's answer has a new compose file and jars ({name, url, sha256}):

  • each jar is fetched inside the up job, checked against its sha256 and put in jars/, so the sync never waits. A link is never on a command line or in the log;
  • a missing or wrong jar leaves the proxy as it is, and the other services still come up. A recreate of one service is refused while a jar is bad;
  • the AutoStopper the image fetched is moved aside by its sha512, only when jars has one and the compose file no longer names its project. It comes back if the up fails.

Limits: a held-back up is not tried again until the compose file or .env changes. An up that succeeds does not prove the plugin loaded. Old files in jars/ 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

Sign in to join this conversation.

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

Keyboard shortcuts

Docs