Repository navigation
test(net): keep the resume model's missing-group seed as a regression - #9602
Conversation
Quest-Claim: 3db371ea381e86dc
A switch caps the copy it replaces, which narrows that copy's ranges, so its record retires the gaps between what it handed out and the drops its reader reported: past one per run, a gap counts as handed out. Lifting the cap, whether by returning to the route or by widening the copy as a backfill, then never offers a group landing in that gap, though the logical reader lacks it. A copy whose record counts a group past its cap as handed out now stays replaced: a returning route serves from a fresh copy, and a backfill asks again rather than widening it. Fixes the `MOQ_RESUME_SEED=2` sweep of `readers_match_the_logical_track` and keeps its shrunk case as a regression. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#9564 makes `Record::retire` forget a retired gap rather than settle it as handed out, which fixes this at the record for every reader: the shrunk case, both unit tests, and the `MOQ_RESUME_SEED=2` sweep pass on its head without the resume-side guard. Drop the guard, which would never fire once that lands, and keep the tests as its regressions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Maintainer decision (/quest-run, 2026-11-25):
(Written by Opus 5.5 with high) |
…me-model-missing-group
|
No actionable comments were generated in the recent review. WalkthroughThe change adds two regression scenarios for route give-ups and group delivery after a route returns. It removes the related missing-group quest and link. It also adds a separate report about intermittent sibling finish replay test failures. Estimated code review effort Merge Risk:
|
Closes the quest quest/m0/nightly/resume-model-missing-group.md.
Problem
MOQ_RESUME_SEED=2 MOQ_RESUME_CASES=4096failsmodel::resume_model::readers_match_the_logical_track: reader 1 never gets group 1. The model is right and the reader is wrong.Root cause: a switch caps the copy it replaces, which narrows that copy's ranges.
Record::retirethen treats the narrowing like a reader moving its ranges: the gaps left between settled keys (here group 0 handed out, and drops 2 and 6 reported because the reader polls drops) exceed one per run, so the gap at 1 is settled as handed out. When the route fails back,Reader::syncreuses that copy and lifts its cap, but the copy's own record now skips group 1 as a replay. Only a drop-polling reader that still holds a group across the switch keeps the copy, which is why every op in the shrunk case is needed.Approach
moq-dev/moq#9564 (
Record::retireforgets a retired gap instead of settling it) already fixes this at the record, for every reader. On its head (3d6ec82), without any resume-side change, the shrunk case, the new unit test, and the seed-2 sweep all pass. So this PR carries only the regressions:resume_model::regressionsgets the shrunk case.resume.rsgetsa_returning_route_hands_out_a_group_its_capped_copy_retired, the same path in direct calls.resume-route-mutants.md.#9564 has merged; on
mainwith it, both tests pass.Impact
None: tests and quests only. Public API: none. Wire: none.
Alternatives
verify-resumeTLA configs, andjust checkall passed), but it becomes dead code once fix(net): subscribe progress, wakeup, and cache-invariant fixes from the subscribe/fetch audit #9564 lands and covers only the resume path. Dropped for fix(net): subscribe progress, wakeup, and cache-invariant fixes from the subscribe/fetch audit #9564's fix.Overlap
resume.rs'smod test, in different places, and applying this PR's diff onto its head was clean.resume.rsandResumeReader.tla, but not the code paths here; no logic overlap.Record::retire(only floor folding), so no JS change.Caused by
Record::retire, which settles a retired gap as handed out, so lifting a resume copy's cap loses the group (found by check: Nightly's resume-model sweep)Validation
main(with fix(net): subscribe progress, wakeup, and cache-invariant fixes from the subscribe/fetch audit #9564, at 1322b2f):cargo test -p moq-net --features async --lib model::resume(293 tests, includingregressionsanda_returning_route_hands_out_a_group_its_capped_copy_retired),MOQ_RESUME_SEED=2 MOQ_RESUME_CASES=4096onmodel::resume_model,just check, andquest checkpassed.Copy::cap->settle_record->Record::retire->raise.regressions, the unit test, andMOQ_RESUME_SEED=2 MOQ_RESUME_CASES=4096pass.verify-resumeconfigs (21.3M and 5.4M states), andjust check(11508 tests) passed.Follow-ups
moq-gst'sa_reannounced_sibling_instance_does_not_replay_its_finishfails about 1 in 40-70 stress runs, also with this PR's changes disabled; the first instance's group replays on its pad after a reannounce. No open decisions.Decisions
Models
Size: M
Implementer: Claude Code, claude-opus-5-5, unknown
Implementer: Claude Code, claude-opus-5-5, low effort (iterate, XS)
Implementer: Claude Code, claude-opus-5-5, high effort (iterate)
🤖 Generated with Claude Code
(Written by Opus 5.5 with high)
Review
Rewritten by
quest reviewafter each round.What could break: nothing a consumer or peer relies on. The change deletes two quest plan files, adds one quest plan file, and adds a unit test plus a regression case to test-only code in rs/moq-net (resume.rs test module, resume_model.rs regressions list). No source behavior, public API, wire format, or stored format changes, so no published consumer or deployed relay is exposed. A revert fully undoes it, and the only harm of a wrong test is a red or missed check in CI, which the repository's own checks catch first.709c485d-51ad-48fc-a382-bb82b6b6689e