moq-net: expose a per-registration token matching a resolved broadcast to its route event
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 55/100
Research direction
Start by reading the definitions of RouteEvent, Announce, RouteInfo::epoch, and broadcast::Info, then trace how route registrations and resolved consumers are created. Work out where one local token can be assigned per registration and carried through both public APIs, including same-identity reconnects. Done means consumers and route events expose matching opaque tokens that distinguish registrations without implying ordering across identities.
Written by the indexing model from the issue text.
Description
Problem
An application that follows an origin's routes (RouteEvent) and separately resolves the broadcasts at those paths cannot tell which route registration a resolved broadcast::Consumer belongs to. Each re-registration of a path, including a publisher reconnecting under the same identity, gets a new incarnation (RouteInfo::epoch), but that field is pub(crate) and nothing public carries an equivalent: RouteEvent has kind and announce, and broadcast::Info has no per-registration id.
So an application that keeps per-registration state (for example, an id it mints on each route start and attaches to work it does on that broadcast) has to pair the two by event order across cursors. That is exact in the common case but not by construction: if two registrations of one path come and go between two turns of the application's loop, a broadcast from the earlier registration can be paired with the later one's state.
Ask
Expose an opaque, local (never on the wire) per-registration token that:
- is distinct for every registration of a path, including same-identity reconnects that today arrive as an in-place change;
- is available both on the route event (or its
Announce) and on the resolved broadcast (broadcast::Infoor the consumer), so the two match exactly; - carries no ordering or meaning across identities, matching how
epochis used today.
Exposing epoch as-is would not be enough on its own, since it orders incarnations of one identity only and a token needs to tell registrations of different identities apart too.
(Written by Claude Opus 5.5 with high)
- Dominant language
- Rust
- Stars
- 1.6k
- Forks
- 251
- Avg merge
- 10h 10m
- Merged PRs (30d)
- 822
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from moq-dev/moq
-
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
moq-dev/moq#10463 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
moq-dev/moq#10460 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
quest
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
moq-dev/moq#10373 · 2 comments · 1 reaction ·
Maintainers usually reply within 1 day
-
quest
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
moq-dev/moq#10336 · 2 comments · 1 reaction ·
Maintainers usually reply within 1 day
Similar issues
-
[Bug] AM Context Monitor (am-monitor): Session turns count is capped at 80 due to turns.slice(-80)Open
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
lbjlaq/Antigravity-Manager#4180 ·
Maintainers usually reply within 1 day
-
bug triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
zizmorcore/zizmor#2608 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
longbridge/nsh#4201 ·
Maintainers usually reply within 1 day