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

Games: instruct the crew from inside the game with !forge (link, plan, yes) #17317

opened this

Merged 16h 5m ago, live in production

The owner's original ask: "instruct the crew from within the game". Stacked on #17309 (presets); after it lands, this is one commit. Link a Minecraft name on the account page: a one-time 6-character code typed in game as !forge link CODE (10 minutes, stored hashed, attempts limited).

Notes

opened this

The owner's original ask: "instruct the crew from within the game". Stacked on #17309 (presets); after it lands, this is one commit.

  • Link a Minecraft name on the account page: a one-time 6-character code typed in game as !forge link CODE (10 minutes, stored hashed, attempts limited). Unlink is there too.
  • !forge <words> from a linked operator: a new-server request goes through the presets planner and the plan comes back by tellraw, then !forge yes builds it (same name, same server, 5 minutes). Anything else opens a Talk conversation, and the first reply is relayed back.
  • Hardening: refused on a box whose backends publish a port or use host networking, since chat names are trusted only behind Velocity. Only Paper's and Fabric's own chat lines count; plugin, tellraw, /say and /me spoofs are tested as no-ops. 5 commands a minute and 30 an hour, and every action is audited without the code.
  • /games/<box> shows linked players and the recent commands. Docs: "From in the game".

Light Mac: tsc, the gate and the game tests (game-chat 11/11). Not yet on a real box: the agent's chat path and the Fabric log format.

!forge link binds the player's UUID (39862a966). Linking takes the UUID the server itself lists for that name (list uuids, People's online list), never anything typed in chat. Every later command needs that name online with the bound UUID: not listed is refused with the link kept, another UUID drops the link, and a link from before this change is dropped and asks to link again. The code is single-use, lasts 10 minutes and is stored as its sha256. It is made on /settings or with L on the terminal's Games screen, and shown only to that person.

After sentinel's review (0dc7daf1b):

  • !forge changes the network only for an operator of the whole box: checked at the plan, at !forge yes, and right before the commit. Talk from chat needs operator of the server and runs with that account's own permissions; a test shows a service-only operator is refused on another service and on create_server.
  • Refusals are limited per player and box, and answered once a minute. A sync reads 3 commands a player and 20 in all.
  • The sync only records jobs; one worker per box runs them, and a restart resumes them (migration 20261202174500-game-chat-jobs).
  • The unhandled rejection is caught (no test for that one).
  • Also found and fixed: a suspended account's link still worked; "Linked players" showed every linked account to a viewer of one service; in-game replies showed in the service console.

Not run: the full suite, game-diag's two timing tests, a real box.

🤖 Generated with Claude Code

commented

Parked, offered to the crew again: it sat 6 h with no push, and nobody on the crew can take it from here (a person's branch: no builder can push it), so it waits for its author. The last verdict (changes requested): Good shape overall: both doors and docs/features/games.md are there, README untouched, UUID binding and the exposed-backend refusal are well thought through. Three things to fix in one round, the first is high. 1. HIGH, authorization: !forge plans and commits a whole-network compose change (new s… (The forge posts this; nobody wrote it by hand.)

commented

<!-- look-pages 0dc7daf1b7b4 --> Look pages for 0dc7daf, from the gate:

  • look pages (none): this pull changes src/web/pages/account.ts, src/web/pages/games.ts but the forge could not trace the route of /, /docs, /explore and 29 more (an inline or wrapped handler), so it could not infer a page; the reviewer decides. A "Looks: <path>" line naming the nearest page, or a "No look: <why>" line (10+ characters), says it
Sign in to join this conversation.

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

Keyboard shortcuts

Docs