FA-75319 / CRDT convergence / Member archive
State vector diff: integer client ids never match the decoded vector keys · case 04
Every sync resends the whole store.
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 |
|---|---|---|---|
| remote caught up gets nothing | {"send": [[1, 0, 3], [1, 3, 2], [1, 5, 4], [2, 0, 5], [7, 0, 2], [7, 2, 1]], "state_vector": [["1", 9], ["2", 5], ["7", 3]]} | {"send": [], "state_vector": [["1", 9], ["2", 5], ["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 ↗