Repository navigation
verify: resync the resume, failover, credit, and warm models to main - #9627
Conversation
Quest-Claim: 369207c43c4935c7
#9210 merged, and every moq-quic transport shapes stream credit, so the unshaped branch (Shaped = FALSE, gating every turn) modeled no code on main. Drop it and ReceiveCreditMain.cfg. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each covered function's change since the old sync commits is outside its model's scope or already modeled, so only the sync commits move. 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>
|
No actionable comments were generated in the recent review. WalkthroughThe receive-credit TLA+ model now applies shaping and pacing rules without a Merge Risk:
|
Finishes quest/m1/resync-tla-models.md.
Problem
The
verify-resume,verify-failover,verify-credit, andverify-warmsync commits trailedmainby 72, 75, 17, and 3 commits to their covered files. The 0.22 cut needs the models to describe the lite-07 code it ships.Approach
I compared each Coverage row's functions at the old sync commit against
main(7cab21e65b, which includes moq-dev/moq#9529) and judged each change against the model's stated scope. I didn't walk the log commit by commit.holds), varint caps onMAX_STREAM_DATA/MAX_STREAMS, the WebTransport quiesce, shed reporting inPace::took, andSendStream::holdfor header-delivering resets. One stale part:Shaped = FALSEmodeled "main's design", but moq-dev/moq#9210 merged and every moq-quic transport (moq-tokio and moq-uring, QUIC and WebTransport) shapes. The unshaped branch also gated every turn, which no path onmaindoes (poll_read_framegates only at a seal). I deleted it andReceiveCreditMain.cfg, and the skill now describes one design.rendezvous, and thefeedshelper. None changes behavior.mainat7cab21e65bmatches the spec feat(net): an arrival read serves held groups in Group Order, in Rust and JS #9529 landed in every in-scope behavior. The rest of the drift is in what the model leaves out: time starts, live joins, local ranges, bounded windows (exhausted,ran_short,asking, fills'owed), skips (skipped,owes_below), staleness, eviction, and frames.Reader::refused(A route switch caps the old subscription at one boundary #9276) reaches the same outcome as the model'sBackfillearly return, since the failed backfill copy still covers the range untilLetGodrops it. After that, only a new generation setsresumedagain.Cause::Closedin A replaced copy's short group continues from the replacement #9277/fix(net): a short close below the frames read fails a resumed group #9391/fix(net): a short close waits for the copy the front is splicing in #9523, pool eviction in fix(net): a frame read through a front resumes on a flight once the pool evicts its copy #9546, front retire-while-asking in feat(net): a held request knows when nobody waits #9383, staleness inRecover::poll) is outside the model, and its Not covered section already says so. The foldedcapintrack/demand.rsmatchesStopAt.js/*/src), so there's nothing to advance. I ran every config anyway.All four sync commits move to
7cab21e65b. The quest file and its link fromquest/m3/release/cut.mdare removed.Choices made, for review:
Shaped = FALSEinstead of rewriting it into an unshaped-transport variant. No in-tree transport with a connection window is unshaped, and the stuck-window eviction the receive model checks exists only in moq-quic, which always shapes.resume_model.rs's proptest plus the unit tests own them.Impact
Evictnote on top.Alternatives
maininstead.Validation
Every config under
rs/moq-net/verify/{credit,warm,resume,failover}andjs/*/verify, throughquest gate bash sh/tla.sh(TLC 2.18, four workers):Step's guardPullsQuietas theirOpen findinglines expectOpen findingexpectsjust checkpasses, includingsh/coverage-tables.py.just cipasses (check rs,test rs, and the rest).Models
Follow-ups
None.
🤖 Generated with Claude Code
(Written by Claude Opus 5.5)
Review
Rewritten by
quest reviewafter each round.The diff touches only TLA+ models and their configs, verification skill docs, and a quest plan, and removes the `Shaped` switch so the credit model checks only the shaped design; nothing a consumer, peer, or release script reads changes, so a bad edit could at worst mislead a verification run until a revert, which fully undoes it.f944f37b-4cc9-4e92-a536-e8e73f321895