Skip to content

verify: resync the resume, failover, credit, and warm models to main - #9627

Merged
kixelated merged 6 commits into
mainfrom
quest/m1/resync-tla-models
Nov 25, 2026
Merged

kixelated merged 6 commits into
mainfrom
quest/m1/resync-tla-models

Conversation

@kixelated

@kixelated kixelated commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Finishes quest/m1/resync-tla-models.md.

Problem

The verify-resume, verify-failover, verify-credit, and verify-warm sync commits trailed main by 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.

All four sync commits move to 7cab21e65b. The quest file and its link from quest/m3/release/cut.md are removed.

Choices made, for review:

  • I dropped Shaped = FALSE instead 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.
  • I wrote no rows for the resume and failover features out of scope. Their Not covered sections already list them, and resume_model.rs's proptest plus the unit tests own them.

Impact

Alternatives

Validation

Every config under rs/moq-net/verify/{credit,warm,resume,failover} and js/*/verify, through quest gate bash sh/tla.sh (TLC 2.18, four workers):

Model Configs Result
credit ReceiveCredit 381,613, Guards 10,289, Segments 1,281,540, Three 1,620,066, Wide 143,296, SendCredit 89,676, Live 41,622, Priority 99,058, Streams 296,373 pass; state counts unchanged from the skill's table
credit witnesses NeverPaused, NeverPartial, NeverPausedInside, NeverEvicted, NeverStuckWaiting on Segments each violated, as expected after changing Step's guard
warm Drones 158,198, Hash 158,198, Flap 44,427, Mesh503 490,125, Settled 407,526, SettledDrones 6,852; Pick and Orderless fail PullsQuiet as their Open finding lines expect pass; state counts unchanged
resume ResumeReader 18,714,456 (7 min), ThreeRoutes 4,871,515 (1.5 min) pass
failover FailoverChain 7,462,329, Leave 8,023,664, Deaths 11,587,260; Mesh's 800k sampled behaviors (80M states, 9.5 min) pass; the skill's counts (8.0M, 8.6M, 12.3M) predated spec edits in #9402, #9430, and #9444, so I corrected them
js Publish, Room, Watch, Failover, FailoverRedirect pass; FailoverRedirectRefused fails as its Open finding expects pass

just check passes, including sh/coverage-tables.py. just ci passes (check rs, test rs, and the rest).

Models

  • Size: L
  • Implementer: Claude Code, claude-opus-5-5, unknown

Follow-ups

None.

🤖 Generated with Claude Code

(Written by Claude Opus 5.5)

Review

Rewritten by quest review after each round.

  • Head: 31241a4
  • Base: origin/main at 8812fa0
  • Risk: low, 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.
  • Classified: low by Claude Code, claude-haiku-5-5, low effort, session f944f37b-4cc9-4e92-a536-e8e73f321895
  • Local review: none, since the head is low risk

kixelated and others added 6 commits November 25, 2026 11:42
#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>
@kixelated kixelated changed the title Resync drifted TLA+ models before 0.22 verify: resync the resume, failover, credit, and warm models to main Nov 25, 2026
@kixelated
kixelated marked this pull request as ready for review November 25, 2026 20:29
@coderabbitai

coderabbitai Bot commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The receive-credit TLA+ model now applies shaping and pacing rules without a Shaped configuration switch. Its TLC configurations remove that setting, and the ReceiveCreditMain.cfg configuration is deleted. Verification guides update coverage mappings, sync commits, and reported run metrics. The TLA+ resync planning document and the related release requirement are removed.

Merge Risk: Minimal · up to 31241

This change resyncs the formal verification models and docs and removes the unshaped credit branch. It does not alter shipped runtime behavior, so merge risk is minimal.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the resync of the resume, failover, credit, and warm TLA+ models to main. The changeset updates sync commits in those four models' skill docs, removes the unshaped credit branch and Re…
Description check Passed The description explains the problem (sync commits trailing main), the approach per model, the removal of the Shaped = FALSE branch and ReceiveCreditMain.cfg, the removal of the quest file, and the va…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the resync of the resume, failover, credit, and warm TLA+ models to main. The changeset updates sync commits in those four models' skill docs, removes the unshaped credit branch and ReceiveCreditMain.cfg, and deletes the resync quest plan. The title covers the main change and is specific enough for a teammate scanning history.

Full details: Description check

Explanation

The description explains the problem (sync commits trailing main), the approach per model, the removal of the Shaped = FALSE branch and ReceiveCreditMain.cfg, the removal of the quest file, and the validation runs. It matches the changeset closely.

Finishing Touches

Simplify code

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 6dcc6bd5-30c0-4b72-a9ea-d6e684bd45c5
Commits

Reviewing files that changed from the base of the PR and between 7cab21e and 31241a4.

Files selected for processing: 13

  • .claude/skills/verify-credit/SKILL.md
  • .claude/skills/verify-failover/SKILL.md
  • .claude/skills/verify-resume/SKILL.md
  • .claude/skills/verify-warm/SKILL.md
  • quest/m1/resync-tla-models.md
  • quest/m3/release/cut.md
  • rs/moq-net/verify/credit/ReceiveCredit.cfg
  • rs/moq-net/verify/credit/ReceiveCredit.tla
  • rs/moq-net/verify/credit/ReceiveCreditGuards.cfg
  • rs/moq-net/verify/credit/ReceiveCreditMain.cfg
  • rs/moq-net/verify/credit/ReceiveCreditSegments.cfg
  • rs/moq-net/verify/credit/ReceiveCreditThree.cfg
  • rs/moq-net/verify/credit/ReceiveCreditWide.cfg
Files with no reviewable changes: 4

  • quest/m1/resync-tla-models.md
  • quest/m3/release/cut.md
  • rs/moq-net/verify/credit/ReceiveCreditGuards.cfg
  • rs/moq-net/verify/credit/ReceiveCreditMain.cfg

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 0 remain after this review.

@kixelated
kixelated added this pull request to the merge queue Nov 25, 2026
Merged via the queue into main with commit 7979ad4 Nov 25, 2026
10 checks passed
@kixelated
kixelated deleted the quest/m1/resync-tla-models branch November 25, 2026 20:57
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