Public: anyone can read this; the crew can change it.
A game box that cannot lend says why, and new boxes can lend #17941
Merged 24h 2m ago, live in production
A game box with lending on now says why it cannot lend, on its page, on the runners page and in the terminal. The related tests, tsc and the migration pin check pass; I did not run the dead-code test by name or the full suite.
-
Reviews
ApprovedApproved. A box that holds a runner token and lacks bubblewrap or git now says why, in one of three fixed phrases. The forge drops anything else the box sends, so nothing hostile reaches a page. The phrase shows under the switch on /games/<box>, in the terminal's box screen, on the runner's row in Settings → Runners, and in the terminal's runners screen. The how-to is in docs/features/game-box.md and README is untouched. New boxes already install bubblewrap and git at boot (src/games/boot.ts:61). The tests cover the agent without bubblewrap, a capable box, the page, the runners page, a hostile phrase and the terminal. The migration is additive and pinned. I judged this from the diff and the source and did not fetch the preview.
Two things I would do next:
- The cannot-lend line on /games/<box> is a bare
<p class="small">inlendBlock(src/web/pages/games.ts), the same weight as the text around it. Make it astatus-rowsrow, as the Spare rows are, so it reads as a fact and not a stray line. - A box that has not synced since the upgrade shows nothing until its next check-in. Say so in the how-to, so an owner who just switched lending on does not read the empty line as 'can lend'.
- The cannot-lend line on /games/<box> is a bare
-
Checks
shipped production is serving it deploy a338207
-
History
- Pin the lend_why migration, rewrap comments e3f09eb
- A game box that cannot lend says why: the agent names the missing bubblewrap or git, and the box page, runners page and terminal show it (#17934) b3bdc2f
- The /search page keeps to the repository repo:owner/name names in q, as /api/… (#17932) c310a25
- Talk: no conversation cap; archive old threads to backup storage and restore on open (#17930) f8f8b8f
- JSON for the home lanes, figures and slot graphs, with ETags (#17923) e16b19a
- A crew run's page says how its model was fed, so a packed SubQ run compares with its explored run and with Claude (#17925) 52b26cd
- Infrastructure reads Azure: subscriptions, resources and costs (#17924) 4ceb81b
- Merge pull request #17921 from sold/azure-reads 509de83
- Azure reads serve #17922 570fb17
- Feed each model the way it works: packed context for long-window models like SubQ, tools for the rest (#17918) 898c0b9
- A preview that does not start shows its last start lines and the cause on the pull page (#17904) 3b4cddd
- openapi.json describes what each route answers (#17917) d398aa1
- Infrastructure reads Azure: each subscription a project, its resources from Resource Graph eb2191e
- A release keeps the forge's log and each child forge's up and down history, so "was it down?" has an answer (#17913) 4c8a425
- A Talk answer that fails says which call failed and why, in the pane (#17900) f29a578
- Name and bound the largest heap retainer from production's own census (#17908) 5501eb1
- Games: a client pack, one .mrpack a player opens in a launcher to join a mod server (#17815) 53985a8
- Main holds a picture of the seeded app page, so a pull's looks show it beside main (#17907) ab4f639
- Merge pull request #17820 from sold/forge-door-reads 517041f
- Games: a command's door is named in one place, and a read from before the column is the proxy's 1a003b5
A game box with lending on now says why it cannot lend, on its page, on the runners page and in the terminal. The related tests, tsc and the migration pin check pass; I did not run the dead-code test by name or the full suite.
- Agent: while the box holds a runner token and
bwraporgitis missing, it sendslendWhywith each check-in: "bubblewrap is not installed", "git is not installed", or "bubblewrap and git are not installed".lend_tickuses the same check, so it still refuses to claim. Previously it just returned. - Forge: the forge stores
lend_whyon the game box (migration20261203070000-game-box-lend-why, pinned) and keeps only those three phrases. Anything else the box sends is dropped, so nothing unescaped reaches a page. - Doors: "cannot lend: bubblewrap is not installed" appears under the switch on
/games/<box>and in the terminal's box screen. It also appears on that runner's row in Settings → Runners (a "Lending" fact) and in the terminal's runners screen. It shows only while the switch is on and clears at the next check-in once the tool is installed. - New boxes: the boot already installed
bubblewrapandgitinsrc/games/boot.ts, so I changed nothing there. Boxes older than that fix are the ones that need the message.docs/features/game-box.mdnow says so. - Tests: the agent runs for real without bubblewrap and sends the reason, and a capable box sends "". The page and runners page show the reason and drop a hostile phrase. The terminal box screen shows it too.
GameBoxintest/game-spare.test.tsnow carrieslendWhy, so it type-checks withoutas never. - Module state:
cannotByRunneris a query, not module state.
Left out: no JSON or API field for the reason, and no alert or notification. The gate's "both doors" rule flagged the pull because it adds no new screen or how-to file. The terminal screens and the how-to are edited, so a commit line says No door: and explains that.
Try it on the preview: switch lending on for a box with no bubblewrap, and open /games/<box> or Settings → Runners after its next check-in.
I used bun scripts/gate.ts --explain rather than similar.ts. Its one duplicate note was cannotByRunner against readLevels, which does something different, so I kept it.
A game box with lending on now says why it cannot lend, on its page, on the runners page and in the terminal. The related tests, tsc and the migration pin check pass; I did not run the dead-code test by name or the full suite.
bwraporgitis missing, it sendslendWhywith each check-in: "bubblewrap is not installed", "git is not installed", or "bubblewrap and git are not installed".lend_tickuses the same check, so it still refuses to claim. Previously it just returned.lend_whyon the game box (migration20261203070000-game-box-lend-why, pinned) and keeps only those three phrases. Anything else the box sends is dropped, so nothing unescaped reaches a page./games/<box>and in the terminal's box screen. It also appears on that runner's row in Settings → Runners (a "Lending" fact) and in the terminal's runners screen. It shows only while the switch is on and clears at the next check-in once the tool is installed.bubblewrapandgitinsrc/games/boot.ts, so I changed nothing there. Boxes older than that fix are the ones that need the message.docs/features/game-box.mdnow says so.GameBoxintest/game-spare.test.tsnow carrieslendWhy, so it type-checks withoutas never.cannotByRunneris a query, not module state.Left out: no JSON or API field for the reason, and no alert or notification. The gate's "both doors" rule flagged the pull because it adds no new screen or how-to file. The terminal screens and the how-to are edited, so a commit line says
No door:and explains that.Try it on the preview: switch lending on for a box with no bubblewrap, and open
/games/<box>or Settings → Runners after its next check-in.I used
bun scripts/gate.ts --explainrather thansimilar.ts. Its one duplicate note wascannotByRunneragainstreadLevels, which does something different, so I kept it.Closes #17934