Repository navigation
feat(huh): Sections 4-5 (on-demand tracks and live discovery) - #304
Merged
Merged
Conversation
Quest-Claim: 1ffa228550fc8d0a
Section 4 is a track rack for one hang broadcast: pull tracks or pick a viewer preset, and only the pulled tracks' encoders run, with the uplink meter and live catalog.json following. An E2EE toggle, labeled as the moq-e2ee project draft, swaps what the relay sees for opaque names. The displayed catalog is checked against @moq/hang's own schema. Section 5 is a three-relay announce mesh: publishers come online and offline, and the rosters of sessions watching room/* or boat/* update as the gossip lands, with a seeded property test against an oracle. Sections now take a list of badges, so a standard feature and its project-draft extension each get their own. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The relay column now names the rear camera's own broadcast and rendition, and E2EE hides both in the label and tooltip. Discovery's clock watches the rosters too, so they keep updating on a phone after the diagram scrolls away. The E2EE note says who holds the credential and what the relay still sees, the uplink meter skips its transition with motion off, and the /huh smoke test covers Sections 4 and 5. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
kixelated
marked this pull request as ready for review
November 26, 2026 05:00
Contributor
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 24 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds Sections 4 and 5 to
/huh, finishingquest/m2/huh/tracks-and-discovery.md./huhstays behind the dev/staging gate (UNRELEASEDinastro.config.ts) until Sections 6–8 land.Changes
src/components/huh/tracks.tsx, model inrack.ts): a track rack for one hang broadcast (video/1080p,video/480p, a second camera,audio,captions,controls.json). You can toggle each track or pick a viewer preset (TV, Phone, Both cameras, Audio only, Bot, Nobody). Tracks nobody subscribes to sit atidle · 0 kbpswith an empty wire. An uplink meter compares the current uplink with what pushing every track would cost, and a livecatalog.jsonview highlights the entries being pulled. The E2EE toggle is labeled as themoq-e2eeproject draft, not part of hang ormoq-transport. It swaps the broadcast path and track names the relay sees for opaque ones.discovery.tsx, model ingossip.ts): five sessions on a three-relay mesh. alice, bob, and carol each publishroom/<name>and watchroom/*,cam-1publishesboat/cam-1, andharborwatchesboat/*. Taking a publisher online or offline animates the announce or withdraw message through the relays, and matching rosters update when it arrives. Each card shows a session both publishing and watching, which makes the bidirectional sessions visible.Standard · IETF MoQplus+ hang, and Section 5 getsStandard · IETF MoQplus+ cluster. Sections 1–3 are unchanged.rack.test.tsparses the displayedcatalog.jsonwith@moq/hang's realRootSchema, so the page can't show a catalog hang would reject. That's why@moq/hangis now a devDependency; it's a workspace package that was already installed.gossip.test.tscovers prefix matching, withdrawals, and step-size independence. It also runs a seeded property test: 50 random toggle sequences, each checked against an oracle of who is online.MotionToggleandprefers-reduced-motionthrough the sharedclock.ts. With motion paused, a toggle in Section 5 jumps straight to the settled rosters.routing-and-timestamps.md'sRequiredlist.Choices made without asking
studio/rear.hang, listed under the catalog'scontributionsmap, which hang opens only when a viewer picks it. That matches hang and still shows on-demand behavior. The alternative was avideo/rearrendition, which hang would treat as an alternative of the front camera.clusterdraft's hop lists for how real relays avoid loops. Modeling hop lists here would mean re-teaching Section 6.PUBLISH_NAMESPACEandSUBSCRIBE_NAMESPACE.moq/doc/concept/{standard,hang,moq-lite,index}.mdand the hang and cluster drafts. Edit it freely.Public API / wire impact
None. Site-only;
/huhis still unreleased.Validation
just check(biome, tsc,quest check) andjust test(91 pass) pass locally.src/lib/landing.test.tsnow also server-renders Sections 4 and 5, so a crash in either diagram fails the smoke test.studio/rear.hang/video/720p, and the relay column shows only opaque names.just devin Chrome at 1280×1100 and 390×844:Follow-ups
None.
Models
🤖 Generated with Claude Code
(Written by Claude Opus 5.5 with high)
Review
Rewritten by
quest reviewafter each round.Head: d9fbf3c
Base: origin/main at 07d3921
Risk: medium,
the base has no RISK.md to name what is always high or customer-facing, so every change is mediumClassified: medium by default
Reviewer: Codex, gpt-6.2-sol, high effort
Session:
01a21634-6526-72d1-bc56-8e81c1316b39, round 2Score: 10/10,
The discovery rosters stay live when visible, the relay labels and tooltips show the correct routes in both encryption modes, and the follow-up introduces no new findings.Rounds: 2; first round 2 (medium 2); findings 2 (medium 2): fixed 2, refuted 0, open 0
Findings: none
The last round's findings, at 665508e:
src/components/huh/discovery.tsx:46:Keep discovery running while the rosters are visible;The clock now observes the wrapper at `src/components/huh/discovery.tsx:98`, which contains both the SVG and the session rosters.src/components/huh/tracks.tsx:164:Show the correct routes in the relay view;The rear camera routes to `studio/rear.hang` and `video/720p` at `src/components/huh/rack.ts:34`, and the relay label and tooltip at `src/components/huh/tracks.tsx:166` both use that route and display opaque names with E2EE enabled.