Skip to content

test(net): kill the last two route mutants from Nightly 45459585582 - #9623

Draft
kixelated wants to merge 1 commit into
mainfrom
test/route-mutants-nightly-45459585582
Draft

kixelated wants to merge 1 commit into
mainfrom
test/route-mutants-nightly-45459585582

Conversation

@kixelated

@kixelated kixelated commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

Nightly run 45459585582 (at 5d86f05) reported seven missed mutants in rs/moq-net/src/route and model/resume.rs. That commit predates #9540, so I reran all seven against current main (just rs mutants --re ...). Five of them were already killed or excluded there:

Two still survived on main:

  • route/node.rs State::forward, Confirm::Serving if slot.served.available to true.
  • route/reader.rs Reader::apply, was.presented && ancestors(..) to ||.

Approach

Each surviving mutant gets a test that kills it. Neither one is equivalent:

  • forward: the router applies a message as soon as it is received (Stream::recv), but the lanes only catch up on the next flush. A claim that was served unavailable and is then received available again leaves a window where step already finds a way, while the slot still says unavailable. In that window a request is answered by what the session serves, which is unroutable. Only the flush routes it. This PR extends an_unavailable_routed_claim_takes_no_request to cover that window.
  • apply: the existing test only ended an own claim that had nothing shown above it. a_presented_claim_that_moved_up_goes_offline now also ends an own (non-presented) claim nested under one that is still shown. It must end, not go offline. This is what the test's doc comment already promised.

I applied each mutant by hand and confirmed the extended test fails under it.

Impact

  • Public API: none.
  • Wire: none.
  • Tests only.

Alternatives

  • Have forward wait (return None) in the flush window instead of refusing. I didn't do it. Refusing matches how the node treats a claim it shows unavailable, and the flush that marks the claim available tells the peer to retry anyway. Waiting could also hang a request if the router and the lanes ever disagree after a flush.

Decisions

  • Decided 2026-11-25 (maintainer, /quest-plan): ✅ in the router/slot flush window the node refuses the request and the peer retries after the flush (rejected: wait for the flush).

Follow-ups

None. All seven reported mutants are now killed or already excluded on main.

Validation

  • just rs mutants --re ... on main: of the 33 mutants the filter selected, 31 were caught and 2 missed (the two above).
  • Each of the two extended tests fails with its mutant applied by hand and passes on the branch.
  • just check passes.

Models

Size: S
Implementer: Claude Code, claude-opus-5-5, unknown

🤖 Generated with Claude Code

(Written by Opus 5.5)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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