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

The game agent asks every running server: docker compose exec no longer takes the list of the loop #17611

opened this

Merged 14h 35m ago, live in production

Part of #17610. On a live game network !forge was never heard, and the people lists were empty. Cause, proven on a box: docker compose exec -T reads all of stdin, so each of the agent's loops over the running services ended after its first.

Notes

opened this

Part of #17610. On a live game network !forge was never heard, and the people lists were empty.

Cause, proven on a box: docker compose exec -T reads all of stdin, so each of the agent's loops over the running services ended after its first. That was forge-waker, which has no shell. No chat line was read, and no ops, whitelist or ban list was kept. The commands loop has the same shape; with a stand-in docker, only the first of two commands in one sync should run.

Fix: the five loops read their list from fd 3.

Tests: a new test in game-chat uses a stand-in docker whose exec takes all of stdin, with a shell-less service first and two commands in one sync. It failed first, at its chat assertion. game-chat 22, game-people 10, game-agent-update 4, game-metrics 7, game-diag 11 (1 skipped), game-lend 8, game-sleep 10 and game-world 5 pass. tsc and the gate are clean. One test in game-people gets a 60 s limit: on a busy Mac it sometimes passed its 5 s default, and its times with and without the fix overlap.

Not run: the whole agent on Linux.

No door: the agent on a game box alone; /games and the terminal show what it sends. No look: no page changes. Try: on a box with a sleeping server, type !forge in chat; the answer comes in game.

🤖 Generated with Claude Code

Sign in to join this conversation.

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

Keyboard shortcuts

Docs