FAILURE MAP
← Case archive

FA-75888 / Chat ordering and read receipts / Member archive

Count unread messages for a conversation badge: marker inclusive · case 03

The message the user last read is counted as unread again, so badges never reach zero.

Member previewVariant 3 · 3 implementations · 10 checks per implementation

Case contract

messages are {seq, author, kind, thread, broadcast}. A message counts when seq > marker, the author differs from me (user handles compare case-insensitively), kind is exactly "user", and it is top level (thread is None) or a thread reply that is broadcast to the channel or belongs to a followed thread (a thread root may have seq 0). Badge: "" for 0, the count up to 99, "99+" above 99.

Why this case matters

Unread badges are the main signal of pending conversation work; miscounts either nag or hide messages.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
message at the marker{"badge": "2", "count": 2}{"badge": "1", "count": 1}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 ↗