FA-75055 / CRDT convergence / Member archive
Bounded counter with rights transfer: a transfer is recorded in the reverse direction · case 05
The donor gains rights and the recipient loses them.
Case contract
Replicas share maps P (increments by replica), D (decrements by replica) and T ("from>to" transferred rights). A replica's rights are its own P minus its own D plus transfers to it minus transfers from it, all read from its local view. ["inc", r, k] grows P[r]; ["dec", r, k] and ["move", r, to, k] are rejected (event index recorded) unless rights >= k. ["sync", s, d] folds s's maps into d by maximum. Return values (sum P - sum D), rights, and rejected indices.
Why this case matters
Bounded counters keep a global non-negativity invariant without coordination by escrowing rights per replica.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| transferred rights can be spent | {"rejected": [3], "rights": [10, -2, 0], "values": [8, 8, 0]} | {"rejected": [], "rights": [6, 0, 0], "values": [6, 6, 0]} | 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 ↗