mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-06 11:07:31 +01:00
3b58335be59f044883520a1c53d6b1d686319a2e
TLA+ model of the restore: claim, two-step fork, hydrate, bounded batch cuts (upload own fids under an intent, one HEAD CAS per batch), marker after the last foreign ref, claim drop; GC, source delete, snapshot retention and crashes with a resume from remote facts at any point. Invariants NoGap, Independent, NoForeignList, ClaimUntilHead_Inv (option 1: today's fork claim semantics), LifecycleFree, StateRemote. cfgs: option-1 safe at three sizes, the stricter claim-until-independent variant, two witnesses, and one red cfg per mutant (each red at its expected invariant in simulation). Simulation only so far: no violation in about 0.81M states per safe cfg (3 seeds x 60000 traces, depth 40); not exhausted. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Languages
Go
84.8%
Rust
7.6%
Shell
2.7%
templ
1.5%
Java
0.9%
Other
2.3%