Skip to content

verify: sync the reconnect, subscribe, and credit models with main - #9356

Merged
kixelated merged 4 commits into
mainfrom
quest/m1/precut-audit/tla-sync-drift
Nov 22, 2026
Merged

kixelated merged 4 commits into
mainfrom
quest/m1/precut-audit/tla-sync-drift

Conversation

@kixelated

@kixelated kixelated commented Nov 22, 2026 •

Copy link
Copy Markdown
Collaborator

Finishes quest/m1/precut-audit/tla-sync-drift.md (deleted here).

Summary

Every verify-* skill now records a sync commit that exists on main, and the models were audited against the code up to it.

  • verify-reconnect / Handover.tla: audited #9158 and #9213 (Connection::drain, hold, stop, close_by). They change no Reconnect policy step. drain takes the same live session and predecessor as close (now through one stop), so StatusTruthful and spred cover it. The model header and the rule comment say so. The GOAWAY, idle wait, hold count, and handover cap stay with moq-tokio's tests, recorded under Not covered. The skill's rules and coverage table also follow the Status → Phase change.
  • verify-subscribe / SubscribeAccounting.tla: audited #9280 (a relay fetches a missing head), #9307 (probe ranges for time starts), and #9308 (live-edge byte budget), plus the subscribe-path commits since the old sync point (#9300, #9265, #9223, #9297, #9318). None change a transition or invariant of the modelled accounting. The head fetch happens before a stream opens or ends as a drop, the probes are ranges of the unmodelled SUBSCRIBE_OK/ranges layer, and the edge budget is a shed, which Evict and a failing stream already stand for. The three are listed under Not covered.
  • verify-credit: audited #9328 (stall stats, counters only), feat(net, relay): a session's live edges are bounded in bytes #9308 (Track::new signature), and #9277. None touch a covered function's credit behaviour. The sync commit now records main, and fix(net): a paused stream holds a small allowance of credit, so many pause #9210 links as a PR instead of a SHA.
  • Sync commits: reconnect 51e8538a84 → e40a7a4340, subscribe bf3f3b26f2 → e40a7a4340, credit ef832d9bcc → e40a7a4340. The three dangling pre-squash SHAs the quest named (4a6f522483, c145046a74, 92fe03e755) are on main. The ones that dangled were 51e8538a84, bf3f3b26f2, and c0a70c8ab, now replaced.

Public API / wire

None. Skill docs, one TLA+ comment block, and the quest file.

Validation

TLC on the merged tree (the model files are unchanged apart from comments), 0 violations in each:

Config Distinct states Result
Handover.cfg 19,194,045 no error, 2m43s
RestartHandoff.cfg 3,408,116 no error, 28s
SubscribeAccounting.cfg 75,679,094 no error, 10m05s
ReceiveCredit / Main / Segments / Wide / Three 381,613 / 363,398 / 1,281,540 / 143,296 / 1,620,066 no error
SendCredit / Priority / Streams / Live 89,676 / 99,058 / 296,373 / 41,622 no error

ReceiveCreditGuards.cfg (about 8 min) was not run: nothing it checks (Guarded) changed. just check passes.

Choices for review

Models

Size: S
Implementer: Claude, claude-sonnet-5-5, unknown effort (arm B)

Review

Rewritten by quest review after each round.

  • Head: cea16d8

  • Base: origin/main at f2965d8

  • Risk: medium, Updated agent verification instructions could mislead contributors about model coverage or drift checks; they change no agent permissions or shipped behavior, and a revert fully undoes them.

  • Classified: medium by Codex, gpt-6.1-sol, low effort, session 01a2020e-0488-75e3-b402-7d93ae151df1

  • Reviewer: Codex, gpt-6.1-sol, medium effort

  • Session: 01a2020e-214e-7343-9946-af6e981378b7, round 1

  • Score: 9/10, Source inspection supports landing with no actionable defects, though model checks were not run as instructed.

  • Rounds: 1; first round 0; findings 0: fixed 0, refuted 0, open 0

  • Findings: none

@kixelated kixelated changed the title Sync TLA+ verification models and skill commit pointers with main verify: sync the reconnect, subscribe, and credit models with main Nov 22, 2026
@kixelated
kixelated marked this pull request as ready for review November 22, 2026 07:00
@coderabbitai

coderabbitai Bot commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You'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 13 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

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: 0b3372b9-f456-4ba2-881a-f1394238cf29
Commits

Reviewing files that changed from the base of the PR and between e40a7a4 and cea16d8.

Files selected for processing: 5

  • .claude/skills/verify-credit/SKILL.md
  • .claude/skills/verify-reconnect/SKILL.md
  • .claude/skills/verify-subscribe/SKILL.md
  • quest/m1/precut-audit/tla-sync-drift.md
  • rs/moq-net/verify/reconnect/Handover.tla
  • 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

@kixelated
kixelated enabled auto-merge November 22, 2026 07:01

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Approach: sound — documentation-only sync of the verify skills and one TLA+ comment block, with the abstraction deltas recorded under Not covered rather than adding rules that check nothing new.

Reviewed changes

Reviewed the full diff of all 5 files.

  • Sync commits: verify-credit, verify-reconnect, and verify-subscribe now point at e40a7a4340. I confirmed it exists and is an ancestor of origin/main.
  • Reconnect docs: the skill and Handover.tla comments now cover Connection::drain and stop. fn drain and fn stop exist in rs/moq-tokio/src/connection.rs.
  • Subscribe docs: the Not covered section records probe ranges, the relay head fetch, and the live-edge shed.
  • Quest file: tla-sync-drift.md is deleted as finished.

Pullfrog  | View workflow run | Using claude-sonnet-5-5 | 𝕏

@kixelated
kixelated added this pull request to the merge queue Nov 22, 2026
Merged via the queue into main with commit a2d1744 Nov 22, 2026
10 checks passed
@kixelated
kixelated deleted the quest/m1/precut-audit/tla-sync-drift branch November 22, 2026 07:52
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