Skip to content

Model resume skips and failover source closure in TLA+ specs - #9836

Draft
kixelated wants to merge 4 commits into
mainfrom
quest/m1/verify-resume-failover-sync
Draft

kixelated wants to merge 4 commits into
mainfrom
quest/m1/verify-resume-failover-sync

Conversation

@kixelated

@kixelated kixelated commented Nov 28, 2026 •

Copy link
Copy Markdown
Collaborator

Claims quest/m1/verify-resume-failover-sync.md. Draft: the resume half is nearly done, the failover half is unfinished.

Done

  • ResumeReader.tla: Skip(t, g) (a route learns the publisher skipped a group, bounded by MaxSkips), Land refuses a skipped group, Seal and MayLand honour a route's own skips, and Retains waits on no copy for a group any held copy declared skipped (Known), as Retain::skipped does. QuietIsSettled now excludes skipped groups. Late excludes them as the oracle.
  • Skip.cfg (G=3, two routes, MaxSkips=2): passes, 564,525 states.
  • Mutants, both caught: dropping the Known union fails QuietIsSettled; claiming a group nobody skipped fails CleanEndIsComplete. A global-skip QuietIsSettled antecedent also passes, so a reader does not hang when only a let-go copy knew of the skip (at these bounds).
  • ThreeRoutes.cfg at MaxSkips = 0 passes (5,000,258 states).
  • FailoverChain.tla: Die (sources close) now precedes Fail (copies fail) and Withdraw; Verdict models the front taking a failed copy of a still-open source as the track's verdict; FailsOnlyUnroutable is in every failover config. Mutant (copies fail before sources close) violates FailsOnlyUnroutable in 76 states.
  • The stale Shows comment (a session fails copies before closing sources) is corrected.

Remaining

  • ResumeReader.cfg and Evict.cfg were killed by the time limit: rerun at MaxSkips = 0.
  • The failover split grew the state space: FailoverChain.cfg passed 20M distinct states without finishing in 25 minutes (7.5M before), and Deaths.cfg 24M. Leave.cfg and Mesh.cfg were not run. The spec needs fewer interleavings before its configs run in CI.
  • Sync markers and coverage rows in both SKILL.md files are not advanced.

Waiting

  • Maintainer: this quest no longer gates the 0.22.0 cut. How should the failover half proceed?
    • Reduce the interleavings, rerun, and finish this PR (Recommended) - the resume half is verified; the failover split needs one more design pass (fold Fail into the step that observes it), so a later session finishes both.
    • Land the resume half alone and split failover into its own quest - gives a smaller PR now, at the cost of a second quest.
    • Drop the failover half - the Shows comment is already corrected, and Withdraw stayed separate.

Impact

  • Public API: none. Wire: none. TLA+ specs, configs, and a skill doc only.

Caused by

Validation

Through quest gate just rs tla: Skip.cfg pass; its two resume mutants and the failover mutant fail as expected; ThreeRoutes.cfg pass. FailoverChain.cfg and Deaths.cfg timed out unfinished; ResumeReader.cfg, Evict.cfg, Leave.cfg, Mesh.cfg, and just check did not run.

Models

  • Size: S
  • Implementer: Claude Code, claude-sonnet-5-5, unknown (arm B, cohort advisor-2026-11, advisor claude-opus-5-5)

Follow-ups

None.

🤖 Generated with Claude Code

(Written by Claude Sonnet 5.5)

Luke Curley and others added 3 commits November 28, 2026 01:38
…efore copy failure (checkpoint)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 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