Repository navigation
test(moq-net): kill or exclude 26 of the resume and relay route mutant survivors - #9294
Conversation
Quest-Claim: 69beb5dd21176007
…resume Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…art reads the group holding it Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ole ask Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…he group it counts back to Kills the Reader::sync mutant that skips the resolve right after a range change: without it the reader places the range at the copy's own, floor-raised resolution and reads group 0 too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
There was a problem hiding this comment.
✅ No new issues found.
Approach: sound. Each survivor gets a test named for the edge case its guard decides. Truly equivalent mutants are excluded with a reason, and the one dead branch is deleted rather than excluded.
Reviewed changes
I reviewed all 7 commits: the one code change, both new exclusions, the new tests, and the quest rewrite.
Subscriber::poll_peek_groupdisarm removal: this is dead code, as claimed.passedwas only true forPoll::Ready(Ok(None)), andIdle::finish(.., pending = false)(rs/moq-net/src/util/idle.rs:102) already setsparked = Nonebefore the removedIdle::disarmran.delivered.forget_below(..)still runs on the same condition.resolvecolumn-pinned exclusion::7:selects the right!. Using the convention of the existing:32: … Reader::backfillentry (1-based columns, a tab counts as one), column 7 is the relative-end!range.is_empty()atresume.rs:1927. The caught!atresume.rs:1899sits at column 8.withdraw+exclusion:withdrawhas exactly one+, thecount(origins.len() + peers.len())argument. The-replacement looked risky: in test builds, ausizeunderflow would panic whenpeers.len() > origins.len(). Applied by hand, though, it still passes all 65route::relay::tests, including the three new ones, so the exclusion holds.- New
resume.rsandrelay.rstests: they target the listed guards (restated copies held back, lost copies beside an ended claim, the furthest-behind resume point, oldest-end edits, whole-ask keying, relative and time starts below the resume point, replacement time anchors), and the late-arrival gap test now assertslanded. - Quest file: it is cut down to the three
unraisedmutants and an outside wait on #9278.
claude-opus-5-5 | 𝕏
#9294's resume tests move to the Range without anchors: the Relative(3) edit becomes a live join with a 6 ms Min Age, and the two Oldest-end refusal tests go, since a range end can no longer be Oldest. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Works on quest/m0/nightly/resume-route-mutants.md: of the 30 mutants Nightly run 44767045952 reported surviving in
resume.rsandrelay.rs, 27 are now caught or excluded with a reason. The quest is rewritten to the three left, which wait on moq-dev/moq#9278.Changes
Tests (each named for the edge case its guard decides):
relay.rspublishandadopt, theunholdclosures (10 mutants):a_holder_restating_its_copy_still_holds_itanda_neighbour_restating_its_copy_still_holds_it. A claimant or scoped neighbour that restates its copy of an ended claim (same announcer, same or older epoch) is still held back. Another announcer's claim or a newer epoch lets it go, so the ended claim claimed again after that shows.relay.rswithdraw, thelost_copyclosure (2):a_lost_copy_beside_an_ended_claim_ends_no_other_path. A copy that the ending message loses ends only its own path. Another announcer's claim, lost earlier under the ended one, still waits out its debounce.Resume::add(3):the_fronts_subscription_resumes_past_the_reader_furthest_behind, in both reader orders.Mirrored::insertandremove(2):editing_an_oldest_end_away_lifts_its_refusal. The case is a range keyed again in place, then a range retired.Copy::ask_whole(1):a_copy_asked_whole_keys_its_ranges_as_the_reader_does. Edits that outrun the reader's log reach the copy as one whole ask, and the reader's next edit replaces the range there.Reader::sync's resolve right after a range change (1,delete !):an_added_relative_start_below_the_resume_point_reads_the_group_it_counts_back_to. A range added withRelative(3)after a route switch whose resume point lies above the group it counts back to. Without that resolve, the reader places the range from the copy's own subscription, which the wire clamped up to the floor, and reads group 0 as well as group 2. A time start never showed it, becauseunraisedrestores a time start; a relative one has no such fallback.Subscriber::landed(1):a_front_reports_a_late_arrival_as_a_gapnow asserts that the gap says when its group landed.unraised(9 of 12):a_replacement_places_time_anchors_around_its_resume_point. An unanswered replacement places a range wholly under its resume point at the end it asks for, and places a time start above it at the group holding that time.a_failed_copy_places_no_range_the_reader_updates(sync's failed-copy skip, with the update taken before the next route) andan_added_time_start_below_the_resume_point_reads_the_group_holding_it.Code:
Subscriber::poll_peek_group: deleted themovedcheck and itsIdle::disarm(1 mutant).passedwas true only for aReady(Ok(None))read, andidle.finish(.., pending = false)already leaves the gate unarmed, so the disarm never changed anything..cargo/mutants.toml: two exclusions, each with its reason.+inwithdraw'sself.count(origins.len() + peers.len())(2 mutants), for the same reason as the existingvisit|countrule: it only feeds the tests' work budgets.resolve's!range.is_empty()before an open relative end (1). Probes of six ranges, in both read orders, read the same groups with and without it. A range placed with its relative end still open stays unsettled, so a copy places it again once it resolves that end. The check only saves the window an edit. The column is pinned, because the otherdelete !inresolveis caught.Left in the quest:
unraised, 3 mutants:start < floorto<=, and theend < floorguard astrueor<=. They decide only an anchor exactly at the resume point, or a time end above it. Probes with the replacement holding and lacking the floor group read the same groups. moq-dev/moq#9278 deletesunraisedforraised, so they are left to it instead of excluded.Choices for review:
resolverelative-end check rather than deleting it: it saves the window an edit restart, the same kind of saving the file's other exclusions name.unraisedmutants to moq-dev/moq#9278 rather than excluding them now. Its head7bed524d11(checked 2026-11-20, during its scope-down) still replacesunraisedwithraised, so the quest keeps that as an outside wait and this PR goes ready without it.Impact
Validation
Reader::syncmutant applied by hand: the new relative-start test fails withleft: [0, 2],right: [2]; reverted, it and the otheran_added_*tests pass (cargo test -p moq-net --features async --lib -- an_added_).cargo mutants --in-placeon the 30 survivors by name, pluspoll_peek_group, with the resume and relay test modules: 26 caught, the 4 above missed. The field-deletion mutants in the log come in past--re; they are not survivors.poll_peek_groupis_pendingmutant, which the module filter missed, against the full--lib --test integrationsuite: caught byrange_anchors::a_time_end_between_groups_ends_an_ordered_read_at_the_next. The other 4129 tests pass.just checkandquest check --base origin/mainpass.Follow-ups
None. The quest file holds the remaining work.
Models
Size: S
Implementer: Claude, claude-opus-5-5, medium effort (arm A)
Implementer: Claude Code, claude-opus-5-5, unknown effort (iterate, S, arm A)
🤖 Generated with Claude Code
(Written by Claude Opus 5.5)
Review
Rewritten by
quest reviewafter each round.Head: eab4c8e
Base: origin/main at 99d3757
Risk: low,
The change adds tests, mutation exclusions, and plan updates while removing a redundant idle disarm, preserving subscriber behavior for consumers; a revert fully undoes it.Classified: low by Codex, gpt-6.1-sol, low effort, session
01a1fd09-9d3b-7d43-ac09-16ec10b2836cReviewer: Codex, gpt-6.1-sol, medium effort
Session:
01a1fd09-e628-7c63-acee-d3789d5a177e, round 1Score: 9/10,
Source review found no actionable defects because Idle::finish already leaves completed reads unarmed, though builds and tests were not run.Rounds: 1; first round 0; findings 0: fixed 0, refuted 0, open 0
Findings: none