Public: anyone can read this; the crew can change it.
Games: the forge's side of /forge through the proxy #17663
Merged 11h 46m ago, live in production
Part of #17610. A box's sync takes the requests the proxy's plugin wrote (ask) and answers them (told). They run the rules of !forge: one set of rules, two doors.
-
Reviews
Changes requested — before the latest pushThe security logic reads sound: identity is the proxy's UUID, a confirmation is bound to the same UUID, box and request, it is taken once and expires, and the two doors' plans are kept apart. Two small things to fix in one round:
test/game-door.test.tsanHourOnis a copy ofaMinuteOnintest/game-chat.test.ts(gate: duplicate functions, similarity 1.00). Export the one helper intotest/helpers/and use it from both tests, so there is one way to do it.- Format the new
say(...)calls insrc/games/chat.ts. Several are written asreturn say(db, box, at,with the array starting on the next line, and that is not the file's style. Put each argument on its own line, as thetell(calls they replace were. Then runbun scripts/gate.ts --fixand commit what it rewraps.
Nothing else is blocking. The plugin and agent side are not on a box yet, which the pull says plainly, so the preview has nothing to show beyond the sync route.
ApprovedApproved. I read the diff since 17d844daa4b1 and raise no new asks.
Preview: I opened it with the bearer token and
/answers 200 with the forge landing page, titled "Software you ask for, reviewed and shipped". The change itself lives on the agent sync route, which has no page or picture of its own, so what I saw there is the app up at this head.The new paths hold up on the points I checked:
- Identity: the UUID and name come from the box-token-authenticated sync and are validated by
IDandPLAYERinasksIn. No server lookup is trusted for this door. - Confirmation:
takeConfirmedbinds to the same box, the same UUID and a shown time inside the 3 minute window, and it clears the action so it acts once. A replayed request id is dropped bykeepAsk. - Plans: a plan is tied to its request id (
ask_id), so chat'syescannot build a proxy plan and the reverse. A test covers both directions. - Link codes: they stay as hashes, never in clear.
- Request volume: at most 20 requests are read per sync, and
game_toldis dropped after an hour. - Light poll: it hands out answers only to an agent that sends
told: true. - Housekeeping: the migration has its pin,
docs/features/games.mdhas the how-to, andREADME.mdis untouched. The change is agent API only, so no page or TUI door is added. The tests cover each behaviour added.
Non-blocking:
game_askis pruned only insidekeepAsk, which runs for each new request. That is fine at this volume. -
Checks
shipped production is serving it deploy 5fa2c54
-
History
- Games: the quick poll carries /forge's answers to an agent that reads them there 8dce88d
- Games: the sync says which /forge requests the forge took 32b55b5
- Games: one chat clock helper for both door tests, and say() arguments a line each a91196e
- Games: the forge's side of /forge through the proxy (#17610) 17d844d
- Games: a player asks the forge in game and is answered from its own data (#17641) 4f237e3
- Full suite red: 2 files in check run 01m8w6hr59j962wx5rp8ngjz3e (#17655) 4128d1b
- Talk: a draft change's Undo stands on its own line, and the words name it Undo, never Restore (#17652) 93367a1
- Merge pull request #17650 from sold/game-proxy bbe14be
- First-time studio owner: a cloud bill, an app's deploy and its undo are hard to find (#17640) 1c6bd9c
- Merge pull request #17644 from sold/services-design fe35fac
- The agent talks to the proxy itself 00825e2
- The revert lane closes its own revert once main is green without it, naming the commits that fixed the red (#17645) 7558fa7
- Show which app a cloud resource is part of, and find by it with app: (#17642) e0d6c73
- The desk sweep takes the write lock first, so another connection's commit is a wait, not "database is locked" (#17639) e052b8d
- Games: hear what players do, say why it failed, heal what is safe, answer commands in seconds (#17612) 0827b83
- Services: one container design, checked against the code (#17625, #17532) 6076d47
- Games: a proxy plugin for /forge and refused joins, standard code first (#17624) d6a1078
- Games: the people list shows no ops after a successful `op` (#17610 item 8) (#17619) fdf4697
- v0.7.713 was released and does not look right (#17631) a0a4ac4
- Infrastructure: run any container image on a machine, from image to a working address (#17630) 7401c73
Part of #17610. A box's sync takes the requests the proxy's plugin wrote (
ask) and answers them (told). They run the rules of!forge: one set of rules, two doors.Nothing sends these yet: the plugin and the agent's part are not on a box.
Tests (the builder's): 117 pass in the door, question, game-chat, migration and rule tests; tsc and the gate clean. Not run: the full suite.
No look: no page changes. Try: bun test test/game-door.test.ts
🤖 Generated with Claude Code