Repository navigation
fix(moq-net): a live join answered with no Largest sends no from-oldest update - #9313
Conversation
…st update A relay's moq-transport publisher subscribes an empty copy as a live join, then asks it from group 0 once it finds no group. The upstream SUBSCRIBE already went out as that live join, and since #9265 the copy's subscriber read the from-oldest start as a widening and sent a REQUEST_UPDATE. A publisher without REQUEST_UPDATE support, such as cloudflare/moq-rs, ends the subscription over it. A live join answered with no Largest began at group 0, so `joined` records group 0 and a start at the joined group keeps the live join. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
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 28 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. |
There was a problem hiding this comment.
ℹ️ No critical issues — one optional simplification inline.
Approach: sound. It fixes the cause: a live join answered with no Largest owes every group (start_at(0) already treats it that way), so recording joined = Some(0) makes wire_bounds see a from-oldest start as already covered. It does this without special-casing the ServeRange::request caller.
Reviewed changes: the one commit, which touches Established.joined, wire_bounds, and adds two regression tests.
joinedfor an empty answer: a live join with no Largest now records group 0 rather thanNone.joinedis read only bywire_bounds, so nothing else changes.wire_boundsstart at the joined group: a subscription whose start equalsjoinedkeeps(None, end), so it matchessent_boundsand sends no REQUEST_UPDATE. Starts above or belowjoinedstill bound the span, as before.- Side effect on Min Age ranges: on an empty join, a live join plus any started range now counts as covered rather than widening to group 0. That's correct, since the join delivers everything from group 0.
- Tests:
a_start_at_the_joined_group_keeps_the_live_joincovers the pure function, anda_from_oldest_reader_on_an_empty_join_sends_no_updatedrives SUBSCRIBE_OK with no Largest followed by a from-oldest reader.
claude-opus-5-5 | 𝕏
# Conflicts: # rs/moq-net/src/ietf/subscriber.rs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes: the merge of main and the test update since d5b0eb6.
- Adapted the fix to
wire_start:wire_boundsnow comparesjoinedwithwire_start(subscription)and returns(None, end)directly on a match. This applies the earlier simplification, so the fall-throughcoveredlogic is the same as onmain. - Covered
Oldestranges: anOldestrange with a budget that reaches back keeps a join that began at group 0. It still asks from group 0 when the join began later. That's correct because a join answered with no Largest already delivers everything the publisher holds. The test covers both cases.
claude-opus-5-5 | 𝕏

Problem
Scheduled Smoke run 44921862668 (job 136899442859) fails "Cloudflare interoperability" on
moq-dev / webtransport / subgroupandmoq-dev / quic / subgroup: cloudflare/moq-rs's client publishing and subscribing through our relay. It passed at 03:14 the same day. Cloudflare'sdraft-18-devhead (14f2eb1) is unchanged since 11-02, so the regression is ours. TheInternal error at subscriber.rs:559lines in that log come from thecloudflare / *rows, which pass.The relay's moq-transport publisher subscribes an empty copy as a live join, then, finding no group, asks it from group 0 (
ServeRange::request). By then the copy's upstream SUBSCRIBE has gone out as that live join. Since #9265,wire_boundsread the from-oldest start as a widening, so the relay sent a REQUEST_UPDATE right after SUBSCRIBE_OK. That happened for every first moq-transport subscriber. moq-rs answersNot implemented: subscription update parametersand ends the subscription with PUBLISH_DONE, which aborts the copy for every subscriber.Approach
A live join answered with no Largest began at group 0: the publisher had nothing yet, so every group comes after the join.
joinednow records group 0 for that answer (it wasNone), andwire_boundskeeps the live join when its wire start is the joined group. A start that isn't at the joined group still bounds the span as before.After merging main, whose moq-dev/moq#9316 maps a reaching
Start::Oldestrange to wire start 0 inwire_start, the rule applies to that start too: anOldestrange on a join that began at group 0 keeps the join, since the publisher held nothing older. Against a join at any later group it still asks from group 0.Impact
Validation
test/smoke/cloudflare.shwith a relay built frommain(54fb68da) fails bothmoq-devrows, as in CI. With this branch's relay it passes all six rows, 2 of 2 runs. Cloudflare's relay and client came from the same14f2eb1the CI used.git bisect(first-parent,a759e4cf..main, the smoke'smoq-devrows as the oracle) names d1c532d (feat(net)!: lite-07 has no relative anchors, and Min Age places a live join #9265). Debug logging onmainshowed the update check comparing(Some(0), None)against the sent(None, None)withjoined=None, after the aggregate turned from[{start: None}](Min Age 0) to[{start: Some(0)}].new_group_tests::a_from_oldest_reader_on_an_empty_join_sends_no_updatedrives the relay's subscriber: SUBSCRIBE_OK with no Largest, then a from-oldest reader. Onmainit fails withthe relay sent another message.filter_tests::a_start_at_the_joined_group_keeps_the_live_joincoverswire_boundsfor starts at, below, and above the joined group, and the start-less oldest range.just check(11000 Rust tests) andjust test interoppass.11b3328063):cargo test -p moq-net --all-features --lib ietf::(853 pass), including both new tests.just checkpasses (nextest: 11246 passed).test/smoke/cloudflare.shwith this head's release relay passes all six rows, including bothmoq-devrows, against Cloudflare's currentdraft-18-dev.Choices for review
wire_boundsreturns(None, end)directly for a start at the joined group, and thecoveredline stays as on main. Applied to main'swire_startin the merge, so the PR no longer touches the fall-through.Oldestrange on a join at group 0 now keeps the join (the pre-merge test expected it to ask from group 0). On main that range already reacheswire_start's group-0 start, and a join that began at group 0 delivers everything the publisher has.Caused by
ServeRange::requestask an empty copy from group 0 explicitly, which the copy's moq-transport subscriber read as widening its live join, so it sent a REQUEST_UPDATE (found by check: Smoke)Follow-ups
protocol violationrather than ending just that request with the upstream's error. That was a second symptom here and isn't fixed by this PR. It needs its own reproduction.Models
Size: S
Implementer: Claude Code, claude-opus-5-5, unknown effort
Implementer: Claude Code, claude-opus-5-5, unknown effort (iterate, S)
(Written by Opus 5.5)
🤖 Generated with Claude Code
Review
Rewritten by
quest reviewafter each round.Head: 11b3328
Base: origin/main at 1fd8509
Risk: medium,
The only shipped-code change is in rs/moq-net/src/ietf/subscriber.rs, where a live join answered with no Largest now counts as group 0 and a from-oldest start on that join stops sending a REQUEST_UPDATE, which fixes a bug that could end subscriptions on publishers without REQUEST_UPDATE support; the public API, the wire format, and the release and auth paths are unchanged, and a revert fully undoes it, so it is a fix that a patch cut would publish and not a high-risk change.Classified: medium by Claude Code, claude-haiku-5-5, low effort, session
ac9afd5e-8a9a-45c6-9ae8-7a50156834acReviewer: Codex, gpt-6.1-sol, medium effort
Session:
01a2061f-f05a-7d52-b5c9-8bd07a9c1438, round 1Score: 9/10,
Focused behavioral fix with regression coverage and no actionable dependent-contract regressions identified; tests were not run as instructed.Rounds: 1; first round 0; findings 0: fixed 0, refuted 0, open 0
Findings: none