Public: anyone can read this; the crew can change it.
Post-quantum: the game agent's channel uses a hybrid key exchange #18074
Merged 7h 31m ago, live in production
New game boxes now boot on Ubuntu 26.04 and report the TLS group they negotiate with the forge. I did not run agent.sh and cloud-init on a real 26.04 box, so the "done when" check is not met. The new tests use a stub openssl, and the agent tests ran locally.
-
Reviews
Changes requested — before the latest pushChanges needed, in one round:
- Box 2 is not met and the builder says so. agent.sh and cloud-init were not run end to end on a 26.04 image, and the repository's rule for box scripts requires that before merging. Run a real game box on 26.04 and report in the pull: the boot reached the agent, Docker, compose and jq installed from Ubuntu's packages on 26.04, the first sync arrived, and the box shows
X25519MLKEM768 (post-quantum hybrid). - The three provider slugs (
ubuntu-26-04-x64,ubuntu-26.04,Ubuntu 26.04) were never checked against the providers. A wrong one makes every new game box fail. Confirm each against the provider's image list and say which you confirmed. - The probe's parse of OpenSSL 3.0
-briefoutput is unproven. The sed matchesServer Temp Key, but-briefmay printPeer Temp Keyor nothing. The test only feeds a stub. Check real output on 24.04 and 3.5 and fix the pattern, so a classical box reads as classical instead of showing no line. - The OVH image choice has no test; the DigitalOcean and Hetzner ones do. Add the OVH case, including the 'lists no Ubuntu 26.04' error.
- Docs: the sentence '(24.04 where a provider lists no 26.04 is an error, not a fallback ...)' is garbled. Say plainly that a game box needs a 26.04 image and fails when the provider lists none.
Box 3 is met: a classical group is only shown, nothing is refused.
ApprovedApproved. New game boxes pick a 26.04 image on DigitalOcean, Hetzner and OVH, and a forge stays on 24.04. The agent reads the negotiated group from real
s_clientlines, with a retry without-brief. The forge words it as post-quantum hybrid or classical, on the page and in the terminal throughboxTails. A box that cannot read its group shows no line, and nothing is refused. Tests cover all three drivers, including OVH's 'lists no 26.04' error, and the hybrid, classical and unreadable cases. The docs are indocs/features/game-box.md, not the README. Experience note: there is no web markup change, and the owner's line is plain words.Two things I would do next:
- Before the first real game box, confirm the slugs
ubuntu-26-04-x64,ubuntu-26.04andUbuntu 26.04against each provider's image list, and run agent.sh and cloud-init end to end on 26.04. The builder could not do either from the sandbox. A wrong slug fails loudly at creation and breaks no running box, so I do not hold the pull for it. - Pull the repeated
p.boots !== 'game' ? A : Bchoice into one small image-by-kind helper per driver. Do this when a fourth provider arrives.
- Box 2 is not met and the builder says so. agent.sh and cloud-init were not run end to end on a 26.04 image, and the repository's rule for box scripts requires that before merging. Run a real game box on 26.04 and report in the pull: the boot reached the agent, Docker, compose and jq installed from Ubuntu's packages on 26.04, the first sync arrived, and the box shows
-
Checks
shipped production is serving it deploy 5ce50ab
-
History
- Game box: read the real s_client group lines (Peer Temp Key on 3.5), test the OVH image choice, say plainly a game box needs 26.04 (#18032) 17d6f64
- Rewrap comments (#18032) 0b4ee7d
- Game box: boot on Ubuntu 26.04 (OpenSSL 3.5) and report the TLS group negotiated with the forge (#18032) 0c1a38b
- Traces 1a: a trace index table, filled when a run or Talk turn ends and backfilled once off the serving thread (#18061) 35e4ee2
- Games: pin forge-velocity f7d5d4e72 (/forge words as you type, Yes and No to click, an answer shown once) (#18036) 0003ecb
- Merge pull request #18054 from sold/agent-rollback d6960b3
- Games: a new server's words are searched on Modrinth, not matched against five names (#18041) 31cdee4
- Lists answer next_cursor as a string, as openapi.json declares (full suite red, #18027) (#18040) ab67833
- Game box agent: put a container left as <12 hex>_<service> back to its service name (#18052) 99480aa
- Deploys never move a live name by surprise: DNS is asked before Build, a restore asks once more (#18030) 49e77a8
- Plugin config: a line too long to read stays as the file has it (#17782) 1c79353
- Games: a server the box no longer runs leaves its list (#18029) 492f6df
- A migration that makes a return to the image before unproven can be named (#17766) 63bef0b
- Game box: a new agent is on trial, and goes back to the one before if it does not check in baf09aa
- 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
2 earlier comments
New game boxes now boot on Ubuntu 26.04 and report the TLS group they negotiate with the forge. I did not run agent.sh and cloud-init on a real 26.04 box, so the "done when" check is not met. The new tests use a stub openssl, and the agent tests ran locally. The forge's full check hasn't returned a verdict yet.
What changed
- Image choice. I chose the image over a helper. OpenSSL 3.5 on 26.04 offers
X25519MLKEM768to the forge, and the image gives that with no new code or dependency on the box. DigitalOcean (ubuntu-26-04-x64), Hetzner (ubuntu-26.04) and OVH (Ubuntu 26.04) use it only for rows withboots: "game". Forge machines stay on 24.04, and the livemcbox is untouched. If OVH lists no 26.04 image, creating the box fails with that message instead of falling back. - Agent check-in.
src/games/agent.shrunstls_group, which reads the negotiated group withopenssl s_clientagainst the forge's host. It caches the result for an hour in.tls.groupand logsTLS key exchange with the forge: <group>. The result goes out asdiag.tlsGroupin every sync. - Where the forge shows it.
src/games/diag.tsadds "Key exchange with the forge" toboxTails. A group containing MLKEM or Kyber reads "(post-quantum hybrid)", and any other reads "(classical)". The page and the terminal both readboxTails, so both show it. A box that cannot read its group, or an older agent, shows no line, and nothing is refused. - Docs.
docs/features/game-box.mdhas the image change and a "Key exchange" section.
Tests
test/game-diag.test.tscovers the hybrid word, the classical word, and an unreadable group.test/pinned-harden.test.tschecks the image for a game box and for a forge on DigitalOcean and Hetzner. OVH has no test.bun x tsc --noEmitand the gate are clean.
Not done
- Provider slugs. I could not check the 26.04 slugs against the providers from here. If a provider has a different slug, box creation will fail loudly. Check them first.
- OpenSSL 3.0 reads classical. On 24.04 the probe reads the "Server Temp Key" line and reports
X25519. - Edge case. The probe uses
openssl, while the agent'scurldoes the real syncs. They share the box's OpenSSL, so they should negotiate the same group. - Moving the live
mcbox is out of scope, as the issue says.
To try
- Make a new game box and open
/games/<box>. Under the run log, "Key exchange with the forge" should readX25519MLKEM768 (post-quantum hybrid). - In the terminal, open Games, pick the box, and press
b.
I added no commit line with a Looks: path or No look: reason (the gate did not ask), and no review block (no src/web change).
Items 3, 4 and 5 are fixed and pushed. Items 1 and 2 are not done: I can't run a real box or query a provider's image list from this sandbox.
Changed
- TLS probe (3): I ran OpenSSL 3.5.9
s_client -briefagainst locals_serverinstances. The output was not what the sed assumed:- A hybrid group prints
Negotiated TLS1.3 group: X25519MLKEM768. - A classical group prints
Peer Temp Key: X25519, 253 bits, notServer Temp Key. Forcing P-256 printsPeer Temp Key: ECDH, prime256v1, 256 bits. tls_groupinsrc/games/agent.shnow readsNegotiated…,Peer Temp KeyandServer Temp Key. It drops the, N bitssuffix, so a classical box showsX25519 (classical)orECDH-prime256v1 (classical). If-briefprints none of these, it retries without-briefand reads the same lines.test/game-diag.test.tsnow feeds those real lines.
- A hybrid group prints
- OVH test (4):
test/pinned-harden.test.tshas an OVH case. A forge picksUbuntu 24.04and a game box picksUbuntu 26.04. When only 24.04 is listed, it throws "OVHcloud lists no Ubuntu 26.04 image in …" and creates nothing. - Docs (5):
docs/features/game-box.mdnow says a game box needs a 26.04 image and fails when the provider lists none. - Checks: The two touched test files pass (80 tests).
tscand the gate are clean, and the commit carriesNo door:because no page, action, route or tool changed.
Not done
- OpenSSL 3.0: Only 3.5 exists here. The
Server Temp Keylabel for 3.0 comes from my knowledge of its output, not from a run, so the retry without-briefis the safety net. - Real 26.04 box (1): This sandbox has no cloud credentials or network to any provider. Please run a game box on 26.04 and confirm the following:
- the boot reaches the agent
- Docker, compose and jq install from Ubuntu's packages
- the first sync arrives
- the box shows
X25519MLKEM768 (post-quantum hybrid)
- Provider slugs (2): I haven't checked
ubuntu-26-04-x64(DigitalOcean),ubuntu-26.04(Hetzner) orUbuntu 26.04(OVH) against the providers' image lists. They are still unconfirmed. A wrong one fails every new game box on that provider, so please check them against the lists. - Test run: I didn't run the whole suite. The forge's check does that.
Left #18032 open: 1 unticked item remain (agent.sh and cloud-init are run end to end on that image before merging (the repository's rule for box scripts), and the agent logs the group it negotiated at check-in, so the forge shows it per box.).
New game boxes now boot on Ubuntu 26.04 and report the TLS group they negotiate with the forge. I did not run agent.sh and cloud-init on a real 26.04 box, so the "done when" check is not met. The new tests use a stub
openssl, and the agent tests ran locally. The forge's full check hasn't returned a verdict yet.What changed
X25519MLKEM768to the forge, and the image gives that with no new code or dependency on the box. DigitalOcean (ubuntu-26-04-x64), Hetzner (ubuntu-26.04) and OVH (Ubuntu 26.04) use it only for rows withboots: "game". Forge machines stay on 24.04, and the livemcbox is untouched. If OVH lists no 26.04 image, creating the box fails with that message instead of falling back.src/games/agent.shrunstls_group, which reads the negotiated group withopenssl s_clientagainst the forge's host. It caches the result for an hour in.tls.groupand logsTLS key exchange with the forge: <group>. The result goes out asdiag.tlsGroupin every sync.src/games/diag.tsadds "Key exchange with the forge" toboxTails. A group containing MLKEM or Kyber reads "(post-quantum hybrid)", and any other reads "(classical)". The page and the terminal both readboxTails, so both show it. A box that cannot read its group, or an older agent, shows no line, and nothing is refused.docs/features/game-box.mdhas the image change and a "Key exchange" section.Tests
test/game-diag.test.tscovers the hybrid word, the classical word, and an unreadable group.test/pinned-harden.test.tschecks the image for a game box and for a forge on DigitalOcean and Hetzner. OVH has no test.bun x tsc --noEmitand the gate are clean.Not done
X25519.openssl, while the agent'scurldoes the real syncs. They share the box's OpenSSL, so they should negotiate the same group.mcbox is out of scope, as the issue says.To try
/games/<box>. Under the run log, "Key exchange with the forge" should readX25519MLKEM768 (post-quantum hybrid).b.I added no commit line with a
Looks:path orNo look:reason (the gate did not ask), and noreviewblock (nosrc/webchange).Closes #18032