FA-76128 / Chat ordering and read receipts / Member archive
Aggregate emoji reactions with a per-user limit: stray remove · case 03
A remove for a reaction the user never held frees a slot, letting them exceed the limit.
Case contract
events [seq, user, emoji, action] are applied in seq order. A user holds each emoji at most once and at most `limit` distinct emoji per message; an add beyond the limit is ignored. A remove only releases a reaction the user holds. Result rows [emoji, count, mine] for emoji with at least one user, ordered by the seq at which the emoji most recently went from zero to one user.
Why this case matters
Reaction chips reorder and recount live; wrong state handling shows phantom or misordered reactions.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| stray remove does not free a slot | [["a", 1, false], ["b", 1, false]] | [["a", 1, false]] | 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 ↗