Public: anyone can read this; the crew can change it.
Game box: refuse a wake or a mod install the box has no memory for #18057
Merged 6h 3m ago, live in production
Part of #18025. A start (wake) and a mod install, which restarts the server, are refused in words when the box's last host memory leaves less free than the server's own MEMORY plus 512 MiB. A box that has not said its memory is not guessed at.
-
Reviews
Changes requested — before the latest pushChanges needed, in one round:
- The mod-install check refuses installs it should allow (first to fix). Installing a mod restarts a server that is usually running, and a running server's own heap is already counted in memUsedMiB. Restarting frees that heap first, so free >= heap + margin is the wrong test for a running server. On a 2 GiB box with a 1 GiB server running, an install is refused for no reason, and the person has no way past it. Only count the server's heap when the server is stopped (a wake). For a running server, check only what the restart adds or skip the check. Add a test with a running service.
- The refusal rests on box.host as the agent last said it, with no age check. A reading from before a person stopped another server refuses a wake that would fit, until the next report. Ignore a reading older than a short bound, or say in the refusal how old the numbers are.
- The TUI fires an unawaited async block (
void (async () => ...)). If readCompose throws, the rejection is unhandled and the note never updates. Catch it and set the note. Add a test that the TUI shows the memory refusal. - Both doors: no docs/features how-to is touched and I see no
No door:line. Say in the relevant docs/features page that a start or mod install is refused when the box lacks room, or putNo door: <why>on a commit.
The tests for the page and MCP door of the start refusal are only at the askPower level. That is acceptable once the points above are fixed.
ApprovedApproved. The refusal is said in words with the reading's age, a reading older than ten minutes is ignored, a running server asks only the 512 MiB margin, and a stop is never refused. All three doors share one check: the page flashes the error, the MCP tool returns it as refused, and the terminal shows it or says the forge could not check the box. The sentinel's four points are met: tests cover running, stale, the terminal's refusal and its thrown check, and the commits carry
No door:lines. I did not exercise the preview, so this rests on the diff and its tests. Next, two things: (1) add a line to docs/features/game-mods.md and games.md saying a start or mod install is refused when the box reports too little free memory, so a person finds the reason before they hit it; (2) in the terminal's start note, carry the refusal's own words for a held box too, so the held and memory branches do not needrefusesNowre-evaluated after the fact. -
Checks
shipped production is serving it deploy 5ce50ab
-
History
- Box memory: a running server asks only the margin, a stale reading says its age, and the terminal catches a failed check 1aba1fc
- Game box: refuse a wake or a mod install the box has no memory for b60baa2
- Talk API: pin a conversation, answer a held action yes or no, and redo a turn (#18012) 4513adb
- Asks: routes so a client can clear the whole queue (resume paused, snooze, group contents, dismiss all kinds) (#17966) 11275b0
- Merge pull request #18016 from sold/forge-fast b9491db
- Talk API: a person's sent files on each turn, and search inside turns (#18009) 0e5211b
- Merge commit '2b24ebd48bea0a43bd8236087ff986b3542c25d4' into HEAD cee6636
- GET /api/v1/repos/{owner}/{name}/commits reads `path`: only the commits that touched it (#18007) 2b24ebd
- Move in: bring all of GitHub and Vercel into the forge through one trusted flow (inventory → plan → paced copy → verify), read-only toward the sources; clean-up is a separate, later step (#18000) 6d7f17e
- A test that reads an /api/v1 answer disagreeing with openapi.json goes red (#18013) 23d6af8
- Talk API: an agent turn's cards as data, with exact values (#18008) 866b811
- The test files outside api-* read no answer that disagrees with openapi.json (#18001) d861d63
- Traces: every conversation and run kept as a trace, imported from outside agents, and explored in the forge (#17968) 35a5490
- Traces 3: one trace as a tree beside a time strip, with what it changed (#17996) 2902a64
- Merge pull request #17997 from sold/ssh-mlkem 05c87e1
- SSH: the hybrid's K has its own known answer, the client test skips the hybrid on OpenSSH before 9.9, one comment, the docs in their own paragraph 281e40c
- Merge pull request #17998 from sold/tab-start 7e39794
- The /tab fix serves #16840 4eed511
- /tab starts in Safari and Chrome: the worker sees its host page, and the page waits for activation a5d9dd7
- SSH offers the hybrid post-quantum key exchange first: mlkem768x25519-sha256 1124a92
Part of #18025.
A start (wake) and a mod install, which restarts the server, are refused in words when the box's last host memory leaves less free than the server's own MEMORY plus 512 MiB. A box that has not said its memory is not guessed at.
askPoweris now async and takes the app, to read the server's MEMORY;heapMiBmoved tobox_memory.ts.Not covered: the healer's own wake start (heal.ts) is not checked.
Test: test/game-mods.test.ts, room on the box (red on main, green here).
🤖 Generated with Claude Code