FA-75303 / CRDT convergence / Member archive
State vector diff: a partly known struct is resent whole · case 03
Peers receive clocks they already integrated.
Case contract
The local store holds structs [client, clock, length] covering clocks clock..clock+length-1. The remote state vector maps client ids (decimal strings, as decoded from JSON) to the next clock it expects; absent clients expect 0. Send, sorted by client then clock, every struct part the remote lacks, slicing a partly known struct to start at the expected clock. Also return the local state vector.
Why this case matters
Delta sync in sequence CRDTs exchanges state vectors to ship only the structs the peer is missing.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| partial struct is sliced | {"send": [[1, 3, 2], [1, 5, 4], [2, 0, 4], [7, 0, 2], [7, 2, 1]], "state_vector": [["1", 9], ["2", 4], ["7", 3]]} | {"send": [[1, 4, 1], [1, 5, 4], [2, 1, 3], [7, 0, 2], [7, 2, 1]], "state_vector": [["1", 9], ["2", 4], ["7", 3]]} | Failed |
MEMBER ARCHIVE
The complete case is available to members.
This record includes three runnable implementations, regression fixtures, execution results, and source hashes.
Member access is invitation-based. Sign in with your invited account to inspect the sources.
Sign in to the archive ↗