FAILURE MAP
← Case archive

FA-75049 / CRDT convergence / Member archive

Bounded counter with rights transfer: rights are computed from the global value · case 04

Two replicas both spend the whole observed balance and the merged counter drops below zero.

Member previewVariant 4 · 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
each replica spends only its own rights{"rejected": [], "rights": [0, 4, 0], "values": [0, 4, 0]}{"rejected": [2], "rights": [0, 0, 0], "values": [0, 5, 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 ↗