Mouth: a full read window is a tail gap; boundary and mutation-killing tests
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
290a9131d8
commit
8af72c8428
4 changed files with 70 additions and 13 deletions
|
|
@ -241,14 +241,15 @@ The tail is **data, not instruction**. A line is what a sender typed in a room,
|
|||
| Cause | Where |
|
||||
|---|---|
|
||||
| The room's read failed (the homeserver refused or errored) or did not answer within 10 seconds (`sendTimeoutMs`); the room is logged and contributes no lines | the mouth |
|
||||
| The room had more than 20 lines outside threads (the per-room cap), so older ones were left out | the mouth |
|
||||
| The room had more than 20 lines outside threads (the per-room cap; her own lines count), so older ones were left out | the mouth |
|
||||
| The read window came back full (100 raw events, before edits and thread replies are set aside), so real lines older than the window may exist and are unseen; a shorter chunk means the room's history was exhausted. A room whose history is exactly 100 events long is gapped too, since the mouth cannot tell | the mouth |
|
||||
| One of the room's lines was cut by the 60-line total cap (only the newest 60 over all rooms are kept) | the mouth |
|
||||
| A line was dropped as malformed (no event id) | the mouth |
|
||||
| The reply byte budget (256 KiB, deliveries first) cut the room's oldest lines, or a line would not encode and was skipped | the reply |
|
||||
| The mouth has not started: every configured room is a gap (DMs are not yet known) | the mouth |
|
||||
| The whole tail read failed: every speakable room is a gap, and the deliveries are still served | the endpoint |
|
||||
|
||||
A line a delivery already shows, her own lines and a room she cannot speak in change nothing here. A read the mouth kept for 15 seconds counts as a read.
|
||||
A line a delivery already shows and a room she cannot speak in change nothing here; her own lines are lines like any other and count toward the caps. A read the mouth kept for 15 seconds counts as a read.
|
||||
|
||||
Golden bytes: `tests/fixtures/persona-chat-v5/` (`chat_pending.v3.tail` carries two lines and no gap, `chat_pending.v3.tail-gaps` one line and two gap rooms; the earlier v3 samples gain an empty fourth element); Huginn pins the same bytes.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue