Repository navigation
quest(m2): record the upstream E2EE gap in e2ee-rooms - #66
Conversation
Quest-Claim: 9ae9127a2f29a78f
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. WalkthroughThe document revises the encrypted-room plan. It defines Hang’s credential and routing requirements, describes private-session encryption and validation, and lists upstream publish, watch, and room-roster requirements. Merge Risk:
|
|
Maintainer decision (via /quest-run): ✅ (Written by Claude Opus 5.5) |
Reconcile quest/m2/e2ee-rooms.md with #58's rewrite: keep this PR's plan, adopt #58's client-generated opaque room ID over the credential-derived one, and add the moq-lite-07-wip requirement and encrypted cursor/drag datagrams. Drop the signing Waiting item, which the maintainer settled on 2026-11-26. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Applying the maintainer decision on head 6fa7044:
(Written by Claude Opus 5.5 with medium) |
Summary
The pinned
moq/has no browser E2EE wiring yet, so this PR builds no crypto in Hang. It rewritesquest/m2/e2ee-rooms.mdto record the gap, the Hang-side design for when upstream lands, and what the quest waits on.It merges main after #58, which rewrote the same quest. The merge keeps this PR's plan and adds #58's requirements:
moq-lite-07-wipon the client and every relay hop, a client-generated opaque room ID, and encrypted cursor/drag datagrams. The two design clashes are listed under Decisions. #58 also made m2 require m1 (quest/m2/README.md), which this PR leaves as is.What the pinned
moq/(28d8eb84d6) andmoq-dev/moqmain (901714058b) provide:@moq/e2ee(moq/js/e2ee, profilemoq-e2ee-01-wip) exists, but it isprivateand its format is still changing. Themoq/js/cryptopackage, theE2ee/Signclasses, and themoq-e2ee-00/moq-sign-00profiles the quest named don't exist.@moq/publishand@moq/watchtake no credential. Upstream marked E2EE "not ready yet" on 2026-11-16. The wiring isquest/m5/e2ee/browser.md, which waits onquest/m3/e2ee-format.md,consumer.md, andnet-wrap/js.md.@moq/roomhas no encrypted mode, and no upstream quest owns one. Its roster parses identity and kind from plaintext path segments, andCredential.path()is one-way.moq-lite-07-wipcarries the publisher's instance end to end, and both@moq/net's defaults and the pinned relay leave it out.Decisions
/quest-mergepick (maintainer, comment): ✅/quest-merge(rejected: iterate, skip). The moq-dev/moq follow-up (encrypted@moq/roomroster) is kept, for/quest-planthere.Maintainer:signing item in## Waitingis gone.api/and the relay.api/src/room.tsnow receives the opaque ID and never signs a grant under the plaintext name.moq-lite-07-wip) and refuse any other.dev/root.tomlenables it, andcdn.moq.devmust accept it.datagrams-p2pare encrypted under the profile's datagram key domain, and the leak test also captures datagrams.#fragmentshows a "missing key" warning instead of an empty room.account_id, or the guest id from #53) stays visible to the relay, which already learns it from the token. Hiding it would need the opaque roster upstream and anapi/change.localStorage, settings, logs, or attributes), matching upstreambrowser.md.echooff: both are disabled while a credential is set, as upstreambrowser.mdrequires.app/src/room/index.ts, which parses plaintext path segments today) both discover through upstream's encrypted roster. The 3D room needs a discovery-only API that opens noWatch.Player, so no peer is watched twice. The moq-dev/moq roster follow-up now asks for that API.[M].quest mergeaccepts the head (rejected: rebasing a published branch). The merge was conflict-free and leaves this PR's diff unchanged, so the review of 6fa7044 still covers it.Follow-ups
/quest-planthere, since no quest owns it): an encrypted@moq/roommode whose roster finds participants and their kind without parsing plaintext path segments, with a discovery-only API that opens noWatch.Player. Recorded as amoq-dev/moq:item in the quest's## Waiting. Kept by the maintainer.Public API / wire impact
None. Quest text only.
Validation
quest checkandquest check --base origin/mainpass on the merge, with themoq/submodule checked out so links into it are checked.The
moq-lite-07-wipclaims were rechecked against the pinned submodule (moq/js/net,moq/rs/moq-relay).quest gate just checklocally: everything passes exceptapp/test/media.browser.ts, whosebeforeAll(relay plus Vite startup) runs past bun's 5s hook default on this host (2 CPUs, load average ~23). The relay itself starts in 26ms. With--timeout 60000the hook passes but two browser tests still time out under the same load. This PR changes only quest text, so the code under test is main's and the failure is environmental (GitHub CI passed it). Not filed as a quest here; reported to the coordinator.Base merge 9c6eb0f: conflict-free.
quest check --base origin/mainpasses, andfallow,bun run check, and the API and app unit tests pass locally.test:mediawas not run locally (browser tests time out on this loaded host); CI runs it.Models
🤖 Generated with Claude Code
(Written by Claude Opus 5.5 with medium)
Review
Rewritten by
quest reviewafter each round.Head: 6fa7044
Base: origin/main at 1b75c4a
Risk: medium,
it adds to plans under quest/, which agents start without a person reading themClassified: medium by default
Risk file: none
Reviewer: Codex, gpt-6.2-sol, high effort
Session:
01a21a13-9784-7050-b61e-75361b216c4b, round 3Score: 10/10,
The plan is ready to land because it requires encrypted discovery in both views and preserves a single watch pipeline per 3D tile.Rounds: 3; first round 1 (medium 1); findings 1 (medium 1): fixed 1, refuted 0, open 0
Findings: none
The last round's findings, at 934c1dc:
quest/m2/e2ee-rooms.md:91:Require discovery without a second watch pipeline;The plan requires the 3D room to use a discovery-only API that creates no `Watch.Player` (`quest/m2/e2ee-rooms.md:90`), and the readiness check requires that API in the pinned workspace (`quest/m2/e2ee-rooms.md:110`).