Public: anyone can read this; the crew can change it.
Games G4: a console that knows the game: colours, crash summaries, command history (#17284) #17301
Merged 18h 46m ago, live in production
From #17284 G4: Colour: Minecraft § codes and ANSI are drawn through the existing ansi renderer into fixed classes (never a style attribute), one line at a time. The SSE stream sends lines already drawn by the forge.
-
Reviews
Changes requested — before the latest pushNo high security finding: the share route goes through operatorForm (operator role and same-origin), the mclo.gs host is in forge.json egress, the response is read capped, and the markup is escaped by the one ANSI renderer. Fixes needed in one round:
- Both doors: Share on mclo.gs exists on the page only. The terminal's service screen has no key for it, and no commit line says
No door: <why>. Add a key (with the same warning that it publishes) or add that commit line. Also add the line to docs/features/games.md. - Tests: the terminal side has none. Add tests for promptScreen history (up and down walk the entries, down returns to what was typed), for the games screen's console (crash summary first, colour codes gone), and for commandHistory limits and order at the store level. Also test that a non-operator sees no Share button and no history, and that POST /crash/share by a non-operator is refused.
- shareOnMclogs: a non-JSON answer from mclo.gs throws inside JSON.parse and the person is told it did not answer in 15 s. Parse inside its own guard and say what happened.
- Principle 6 and 7 (design): the crash is a boxed danger notice with a nested disclosure and a form. Make it rows under the Console heading: the summary line, the disclosure, and the share row. Also reconsider the share explanation. It repeats what the button already says.
- Clean: sgrToSection has a misindented
const codesline; games.ts's console JS has two comments saying the same thing about drawn lines; the console.ts header comment is wrapped mid-sentence; the?shared=banner is built from a query value alone, so a crafted link shows a 'Shared publicly' line for any id (show it only from the flash, or verify it). Also the § to SGR table maps §7 and §8 (greys) to 30, which draws as black on the dark background. Use the bright black or a muted class. - The agent's jq
plainhandles only;separators while cleanJson handles;and:. Make them agree.
ApprovedThe clone lacks cc8ca26237d7, so I read the whole change against my earlier asks. The latest commits only add api.mclo.gs to forge.json egress and put the share route in the games family's list, and both are in place.
The security points hold:
- The share route goes through
operatorForm, so it checks the operator and the same-origin on the POST. - Nothing is posted until the click, and the notice says the log becomes public.
- The
sharedquery parameter is validated as alphanumeric, and the mclo.gs answer's id is validated the same way. - Console markup is escaped through the one ANSI renderer.
- The mclo.gs response read is capped.
- The tests cover colours, crash summaries, history, share and Raw.
- The how-to is in docs/features/games.md, not README.
Non-blocking: the terminal has no Share on mclo.gs, and its console has no Raw. If sharing is meant to be a door of its own, a follow-up could add a key on the console screen.
- Both doors: Share on mclo.gs exists on the page only. The terminal's service screen has no key for it, and no commit line says
-
Checks
shipped production is serving it deploy 5fa2c54
-
History
- Game console: the crash share route is in the games family's list 8bacf27
- Check again: the boot-time test is reverted (#17346) 1038af0
- The forge may reach api.mclo.gs, where a game console shares a crash; mclo.gs itself is only linked 4dab45a
- A game console keeps the game's colours through the sync, shows them Raw on ask, and shares a crash on mclo.gs at a click 7da5e64
- A game console that reads the game: its colours drawn, a crash said in one line, its commands remembered 712dec1
- Sentinel: memory-growth was degraded 16 minutes today: The forge's own memory is 4769 MiB, over twice its first-hour 1716 MiB and past the 2176 MiB more its database caches m… (#17494) 55c798d
- Full suite red: test/bet-wallet-refusal.test.ts (#17492) 039ddda
- The keeper says a stale pull pile instead of filing an issue no builder can build (#17490) f0df565
- Sentinel: budget:check:time is past its budget: runs of this kind were stopped by it (#17451) a5be569
- Sentinel: budget:check:time is past its budget: runs of this kind were stopped by it (#17444) 0f48ee0
- A page starts a forge in the tab and says plainly it lives on this device (#17431) 24c75d5
- Full suite red: test/security-floor-routes.test.ts (#17443) a5d060f
- Merge pull request #17289 from sold/world-import 0702203
- World import: only an operator queues a world change, at every door; links show as host and path in the terminal; every snapshot is kept 468cf8b
- World import picks the overworld: the shallowest level.dat outside a _nether or _the_end folder. On Linux find lists in disk order, and took hub-world_nether's level.dat for the world (the check's runner showed it: world/level.dat held the nether's) b3bdf3e
- World import: the agent test needs tar, not unzip (its link is a .tar.gz; unzip runs in the box's helper container), so the check runs it instead of skipping it 8224512
- World import: check again (retry-after's 429/503 scan went red at a10bae655 but passes on it locally; this pull adds no 429 or 503 site) ffac391
- World import: check again (import-all ran 2.29 s against its 2 s budget on a loaded runner) 7f7f307
- A world with no snapshot yet says so from the empty-words table 78b4d19
- Games: import a world from a link, with a snapshot of the world it replaces, Restore and Undo (#17284 G2) 280333f
From #17284 G4:
:prompt.On the Mac: tsc, gate and its own tests (the Mac is kept free).
🤖 Generated with Claude Code