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
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.
-
Reviews
ApprovedApproved. Every
while read ... done < <(...)loop in src/games/agent.sh now reads from fd 3, sodocker compose execcan no longer take the rest of the list from stdin. I grepped the file and none is left on stdin. The new test fakes an exec that swallows stdin, and it would fail without the change. It checks chat, metrics and people for both servers, and that both queued commands run. The 60 s timeout on the people test matches its sibling tests.This is shell with no web or TUI surface, so the both-doors rule has nothing to add. I read the diff and grepped the file. I opened the preview:
/answers 200 with the home page HTML. It has no picture of this change, since the change is a shell agent.Two things I would do next:
- Put the fd-3 idiom in one helper, or add a lint that rejects
done < <(in agent.sh, so a new loop cannot bring the bug back. - Redirect
3<&-on the exec calls inside the loops so docker does not inherit the list pipe.
- Put the fd-3 idiom in one helper, or add a lint that rejects
-
Checks
shipped production is serving it deploy c4333e8
-
History
- The game agent asks every running server: docker compose exec no longer takes the loop's list (#17610) a53e9bf
- The gate-audit tests of shards-run start no browser: 15 s less on a Mac, 1.5 s on a runner (#17609) dec1f91
- Home: "All quiet." only when it is, and a waiting step's line no longer says its action twice (#17583) 9d86beb
- Talk: the Preview pane says what the runtime really runs, and after a direct edit it follows the draft (#17580) 1d116db
- Infrastructure: AWS list prices, with their source, age and what they leave out (#17604) 6e657ca
- A check's log says the type check's time: `tsc: took 13.2s`, beside the gate's and the tests' (#17606) befaa4d
- A merged pull of the forge says "production is serving it" before the running forge has it (#17603) db29859
- The crew counters of /metrics read two indexes, not all history: the series sampler holds the loop 50 ms, not 250 (#17605) d269148
- A game box owner can switch on "Run checks while servers sleep", and the forge sends it only trusted, fitting jobs (#17599) 9c89a64
- Migrations are read from their directory when the forge is bundled: two pulls that each add one merge in either order (#17213) 11c2487
- The hollow audit no longer forces a full collection every 64 files: half its CPU, a lower peak (#17600) 954e20f
- Merge pull request #17601 from sold/floor-paths-bind 1cfbdc6
- The app stand-ins of security-floor-paths bind 127.0.0.1, so no other process answers for them fbfc6e3
- A failed cloud read says the host, status and code, in plain characters (#17598) f8c7b30
- The check's tsc runs eight checkers, not four (#17574) 88d036f
- A game box says how many spare core-hours a week its sleeping servers leave, against what the forge's checks use (#17589) 7c6f863
- Talk: a dev server is handed its own address whole, so an app made from the template comes up instead of hanging 60 s (#17595) 8f632d3
- Template: a FORGE_APP_URL that is no address is warned of, not thrown (#17596) f43af8d
- Merge pull request #17554 from sold/cloud-tree c52e927
- Turning the crew on names who turned it on, by every door: the Autonomy knob no longer leaves a repository paused as "nobody" (#17588) ac9e135
Part of #17610. On a live game network
!forgewas never heard, and the people lists were empty.Cause, proven on a box:
docker compose exec -Treads all of stdin, so each of the agent's loops over the running services ended after its first. That wasforge-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-chatuses a stand-in docker whoseexectakes 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
!forgein chat; the answer comes in game.🤖 Generated with Claude Code