Repository navigation
test(net): kill or exclude 35 resume and relay route mutants - #9540
Conversation
Quest-Claim: 5150dd3d8c194200
…d disconnect mutants Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… and placement for its serving copy Kills the Subscriber::ranges, knows_edge, and places_as_upstream mutants. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A restate clears the mirrored joining map in place, which only bounds memory: cargo-mutants cannot exclude its field-deletion mutant. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Takes every answered copy's staleness verdict, since drains reads only the replaced ones; excludes the empty-resolve and cap-bound comparisons as equivalent; pins that a start moved to the resume point takes no late group below it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…hortcut guard Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… model's missing group Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Maintainer decision (/quest-run pick, 2026-11-24):
(Written by Claude Opus 5.5) |
|
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 23 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. |
|
Answers #9540 (comment): both picks are recorded under (Written by Claude Opus 5.5) |
#9540's ten resume tests assumed an arrival read hands out a backlog oldest first. Those draining one now expect newest first, as this branch's others do; those whose subject needs the oldest read first, a capped unread group or a placement, ask ascending. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Works quest/m0/nightly/resume-route-mutants.md: kills or excludes 35 of the 45
resume.rsandroute/relay.rsmutants that survive on main, and rewrites the quest to the ten left.Summary
I reran cargo-mutants on main at moq-dev/moq#9531 over three sets:
That found 45 survivors, 8 of them new since the quest was written. 35 are now handled:
Copy::cap: a later switch at the same boundary only narrows a replaced copy's cap.Reader::resumed: four tests, covering a failed serving copy, an unmirrored edit, an answered empty copy, and a placed live join.Reader::sync: the returning route's resume.Reader::poll_drop: two tests.Reader::drained,owed,asking(two), andask.poll_lowest's refusal and held-back checks.Subscriber::ranges,knows_edge, andplaces_as_upstream.Router::step.a_capped_copy_places_only_what_its_cap_leaves_wholegains no row. Thewindowmutant is excluded instead, see below.Copy::capcompares one (group, frame) limit, where a whole group sorts past every frame. It drops the deadstopfilter:held_atonly ever returns a stop in the boundary group, past its first frame.Reader::resolvetests a time start with!= 0.Reader::sync's restate arm clearsrangesandjoiningin place. cargo-mutants can't exclude a "delete field" mutant, and droppingjoiningthere changed nothing observable.backfill_gapstakes a staleness verdict from every answered copy, sincedrainsalready checksreplaced..cargo/mutants.toml:Router::disconnect<to<=: session numbers are unique, and the closed session already leftpeers.Router::awaits' shortcut guard: the best route is always a usable one.Reader::window's capped-end filter<to>: a capped copy resolves an end its cap leaves whole one past the range's own, since keys are times.backfill_gapskey < endindrains:may_takealready confines a key to the copy's ranges.backfill_gapsowed.len() < raised.len(): excluded on an argument, see Waiting.The ten left are listed in the rewritten quest, with what each probe found. The quest's late-group lead didn't reproduce in eight setups, and
a_start_moved_to_the_resume_point_takes_no_late_group_below_itpins it.Public API: none. Wire: none.
Validation
cargo nextest run -p moq-net --all-features --lib --test integrationpasses: 4479 tests.-j 8, from.cargo/mutants.toml) on a snapshot of 677b4d9. It covered every mutant in the functions handled here, plus the in-diff set: 178 mutants, 165 caught, 3 unviable. The 10 missed are exactly the ten the quest keeps.just checkpasses exceptcheck quest, which flags the.claude/skillsas outdated against the pinnedquest. That fails the same way on main, and this branch doesn't touch those files.Decisions
The maintainer's picks, and the choices I made without asking:
resolveone (start != 0) hides a boundary that nothing tests: a time start of 0 that no copy resolves is placed as it is instead of waiting.backfill_gapsplaces such a start at its own time anyway.owed.len() < raised.len()exclusion inbackfill_gaps(.cargo/mutants.toml, column 17), with its argument in the comment, rather than moving it to the quest's unproven list.refuse_timetest helper (moq-dev/moq#9495), which one test uses.Follow-ups
MOQ_RESUME_SEED=2 MOQ_RESUME_CASES=4096fails the resume model on main. A reader joining after two give-ups misses group 1 across a route flap. Nightly sweeps a fresh seed, so seeds like this one fail it on some nights. Open decision: none.Caused by
No defect fixed. The tests and exclusions cover logic that landed untested.
Models
Size: M
Implementer: Claude Code, claude-opus-5-5, unknown effort
🤖 Generated with Claude Code
(Written by Claude Opus 5.5)
Review
Rewritten by
quest reviewafter each round.Head: 677b4d9
Base: origin/main at b367c92
Risk: medium,
The branch changes shipped `rs/moq-net` resume logic (`Copy::cap`, `Reader::resolve`, `backfill_gaps`, and the mirrored-ranges rebuild in `resume.rs`), which could break subscribers' resume and delivery behavior if it is wrong, but it keeps the public API and wire format and a revert undoes it fully, so it is a fix rather than a high-risk break; the mutants config, quest docs, and new tests are low.Classified: medium by Claude Code, claude-haiku-5-5, low effort, session
1e237656-43b2-4a73-9a52-87fe472eb615Reviewer: Codex, gpt-6.1-sol, high effort
Session:
01a210c0-5988-79d0-b29a-10917b1ece09, round 1Score: 9/10,
No actionable regressions were found in the reviewed resume logic, but builds, tests, and model 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, xhigh effort, shadow
Session:
01a210c0-599a-79a3-8270-3cb787fa04bf, round 1Score: 9/10,
Static review found no actionable defects in cap narrowing, range resolution, or subscription mirroring; builds, tests, and model checks were not run, as instructed.Rounds: 1; first round 0; findings 0: fixed 0, refuted 0, open 0
Findings: none