Repository navigation
fix(net): a front's reader waits on no copy for a group another copy declared skipped - #9563
Merged
Merged
Conversation
Quest-Claim: 70f2d2d2ef1fd6d8
…declared skipped Rust and JS now agree when the only copy that might still deliver a group is a backfill under the serving copy's START: a group a replaced copy declared skipped was never produced, so neither side waits for it on another copy. JS waited out the budget's grace (forever, unbounded); Rust ended only because its START clamp hid the same wait, which it kept once the copy declared no START. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
kixelated
marked this pull request as ready for review
November 25, 2026 00:45
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 1 minute. 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.
Finishes
quest/m1/backfill-waits-below-answered-start.md.Summary
A front's reader no longer waits on any copy for a group that another copy declared skipped. Rust and JS now agree in the case the quest describes.
Which side was right about START. JS is right about what a lowered floor asks of the wire: it asks the feed for the groups below START. Rust's subscriber does the same thing: on lite-05/06 it calls
start_at(active.start)("moving below a declared SUBSCRIBE_START reopens those groups"), and on lite-07 it leaves the new range's START pending. Neither START rule changes, and the lowered-floor exception thatowedRunsrelies on for fills stays as it is.What actually diverged. The plan says Rust ended because
find_landableclamps to the START, and that is true. The clamp, though, only hid a wait that was wrong on both sides. In the test, the replaced copybdeclared group 7 skipped. A skip means the publisher never produced the group, and since group identity is global, no route will ever deliver it. BothCopy::retains(Rust) and#retains(JS) still waited for 7 on the serving route's backfill throughmay_land, because that check only reads the backfill copy's own drops:recvGrouppending.an_unplaced_time_start_*tests.Rust's fill path (
Reader::owed) already subtracts what any copy declared skipped. Themay_landpath now does the same on both sides:let_gocollectsskipped_inonce over the replaced copies' caps (Retain::skipped), andretainsasksmay_landonly for the parts of each window run that are not skipped.#retainsasksmayLandonly for the parts of each run thatskippedIndoes not cover.The twin tests
an_unplaced_time_start_waits_below_its_time_on_a_replaced_copy(Rust) andan unplaced time start waits below its time on a replaced copy(JS) now run with and without the serving copy's START at 9. Both end with the same assertion:poll_recv_groupreturnsReady(Ok(None)), andrecvGroup()resolvesundefined.Choices made without asking
Validation
recvGroupwas still pending after an hour of mock time. Rust: with the serving copy given no START, the test failed at the end assertion (started=false).retainschange makesstarted=falsefail again.tc(floor 0, until 7) and waited on run 6..8. Rust created the same backfill (7..8) and dropped it in the same poll because of the clamp. That confirms the two sides diverged only in that wait.cargo test -p moq-net --features async: all pass (3786 + 657 + others).bun testinjs/net: 3838 pass./verify-resumewas not run: its model leaves out drops and skips ("Not covered"), so it cannot exercise this change.just check: everything passes exceptcheck quest, which flags the.claude/skills/quest-*stubs as outdated against the local quest binary (59b106e). That drift is in the pin and not related to this PR.Public API
None. Wire: none.
Caused by
No single PR. The skip-blind
may_landwait inretainsis as old as cross-copy skip records. moq-dev/moq#9438 only exposed it, through a JS test that had no end assertion (found by reviewer).Follow-ups
None. The related audit quest
quest/m1/subscribe-progress-fixes.mdlists none of this.Models
Size: S
Implementer: Claude Code, claude-opus-5-5, unknown effort
🤖 Generated with Claude Code
Review
Rewritten by
quest reviewafter each round.Head: 9365505
Base: origin/main at 2311175
Risk: medium,
This is a bug fix in the internal resume logic of `rs/moq-net` and `js/net`: a front's reader stops waiting on a group that a replaced copy declared skipped, so reads that used to hang now resolve. It keeps the public API and wire format, so consumers of the published packages could only notice a changed read ending, and a revert fully undoes it, which makes it medium rather than high. The quest plan deletion and test changes are low-risk on their own.Classified: medium by Claude Code, claude-haiku-5-5, low effort, session
bcd1a766-8623-4a2b-9513-427aff2be7eaReviewer: Codex, gpt-6.1-sol, medium effort
Session:
01a21027-7a91-70a2-a81c-45fe775fce00, round 1Score: 9/10,
Focused fix with matching regression coverage and no actionable regressions found; checks were not run as instructed.Rounds: 1; first round 0; findings 0: fixed 0, refuted 0, open 0
Findings: none
Reviewer: Codex, gpt-6.1-sol, high effort, shadow
Session:
01a21027-7a91-7dc0-a61f-1d139eaafe2d, round 2Score: 10/10,
The sole finding is refuted by the models’ documented scope and transitions, and the head is unchanged since the previous review.Rounds: 2; first round 1 (medium 1); findings 1 (medium 1): fixed 0, refuted 1, open 0
Findings: none
The last round's findings, at 9365505:
rs/moq-net/src/model/resume.rs:1126:Mirror skip-aware retention in the covered models;The exclusions in .claude/skills/verify-resume/SKILL.md:58 and .claude/skills/verify-failover/SKILL.md:57 match the models’ lack of skip declarations, so the new skip exclusion changes no modeled transition and requires no model synchronization.