FAILURE MAP
← Case archive

FA-75040 / CRDT convergence / Member archive

Bounded counter with rights transfer: received rights are never credited · case 05

A replica that was given rights still cannot decrement.

Member previewVariant 5 · 3 implementations · 8 checks per implementation

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 fixture

This sample comes from the broken implementation of a controlled reproducer.

Boundary fixtureActualExpectedOutcome
transferred rights can be spent{"rejected": [3], "rights": [6, 0, 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 ↗