Skip to content

fix(moq-net): a live join answered with no Largest sends no from-oldest update - #9313

Merged
kixelated merged 3 commits into
mainfrom
fix/ietf-relay-no-spurious-update
Nov 23, 2026
Merged

kixelated merged 3 commits into
mainfrom
fix/ietf-relay-no-spurious-update

Conversation

@kixelated

@kixelated kixelated commented Nov 21, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

Scheduled Smoke run 44921862668 (job 136899442859) fails "Cloudflare interoperability" on moq-dev / webtransport / subgroup and moq-dev / quic / subgroup: cloudflare/moq-rs's client publishing and subscribing through our relay. It passed at 03:14 the same day. Cloudflare's draft-18-dev head (14f2eb1) is unchanged since 11-02, so the regression is ours. The Internal error at subscriber.rs:559 lines in that log come from the cloudflare / * 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_bounds read 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 answers Not implemented: subscription update parameters and 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. joined now records group 0 for that answer (it was None), and wire_bounds keeps 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::Oldest range to wire start 0 in wire_start, the rule applies to that start too: an Oldest range 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

  • No public API change.
  • Wire: no format change. A relay no longer sends a REQUEST_UPDATE right after a moq-transport SUBSCRIBE_OK that names no Largest.

Validation

  • test/smoke/cloudflare.sh with a relay built from main (54fb68da) fails both moq-dev rows, 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 same 14f2eb1 the CI used.
  • git bisect (first-parent, a759e4cf..main, the smoke's moq-dev rows as the oracle) names d1c532d (feat(net)!: lite-07 has no relative anchors, and Min Age places a live join #9265). Debug logging on main showed the update check comparing (Some(0), None) against the sent (None, None) with joined=None, after the aggregate turned from [{start: None}] (Min Age 0) to [{start: Some(0)}].
  • New tests, which fail with the fix reverted:
    • new_group_tests::a_from_oldest_reader_on_an_empty_join_sends_no_update drives the relay's subscriber: SUBSCRIBE_OK with no Largest, then a from-oldest reader. On main it fails with the relay sent another message.
    • filter_tests::a_start_at_the_joined_group_keeps_the_live_join covers wire_bounds for starts at, below, and above the joined group, and the start-less oldest range.
  • just check (11000 Rust tests) and just test interop pass.
  • After merging main (head 11b3328063): cargo test -p moq-net --all-features --lib ietf:: (853 pass), including both new tests. just check passes (nextest: 11246 passed). test/smoke/cloudflare.sh with this head's release relay passes all six rows, including both moq-dev rows, against Cloudflare's current draft-18-dev.

Choices for review

  • Took Pullfrog's simplification (thread): wire_bounds returns (None, end) directly for a start at the joined group, and the covered line stays as on main. Applied to main's wire_start in the merge, so the PR no longer touches the fall-through.
  • An Oldest range 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 reaches wire_start's group-0 start, and a join that began at group 0 delivers everything the publisher has.

Caused by

  • moq-dev/moq#9265 - made ServeRange::request ask 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

  • With the upstream subscription ended, the relay closed the second downstream moq-transport session with protocol violation rather 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 review after 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-7a50156834ac

  • Reviewer: Codex, gpt-6.1-sol, medium effort

  • Session: 01a2061f-f05a-7d52-b5c9-8bd07a9c1438, round 1

  • Score: 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

…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>
@kixelated
kixelated marked this pull request as ready for review November 21, 2026 18:42
@coderabbitai

coderabbitai Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 4827b1bc-da85-4a50-b480-24206bcc782f
Commits

Reviewing files that changed from the base of the PR and between 1fd8509 and 11b3328.

Files selected for processing: 1

  • rs/moq-net/src/ietf/subscriber.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ℹ️ 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.

  • joined for an empty answer: a live join with no Largest now records group 0 rather than None. joined is read only by wire_bounds, so nothing else changes.
  • wire_bounds start at the joined group: a subscription whose start equals joined keeps (None, end), so it matches sent_bounds and sends no REQUEST_UPDATE. Starts above or below joined still 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_join covers the pure function, and a_from_oldest_reader_on_an_empty_join_sends_no_update drives SUBSCRIBE_OK with no Largest followed by a from-oldest reader.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using claude-opus-5-5 | 𝕏

Comment thread rs/moq-net/src/ietf/subscriber.rs Resolved
kixelated and others added 2 commits November 22, 2026 17:24
# Conflicts:
#	rs/moq-net/src/ietf/subscriber.rs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes: the merge of main and the test update since d5b0eb6.

  • Adapted the fix to wire_start: wire_bounds now compares joined with wire_start(subscription) and returns (None, end) directly on a match. This applies the earlier simplification, so the fall-through covered logic is the same as on main.
  • Covered Oldest ranges: an Oldest range 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.

Pullfrog  | View workflow run | Using claude-opus-5-5 | 𝕏

@kixelated
kixelated added this pull request to the merge queue Nov 23, 2026
Merged via the queue into main with commit 8cc6c19 Nov 23, 2026
7 checks passed
@kixelated
kixelated deleted the fix/ietf-relay-no-spurious-update branch November 23, 2026 06:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant