Files
buzz/crates/buzz-core
Will Pfleger cf593a4f5a fix(relay): close channel-window bypass and fix e2e draft-expiry tests
Route channel-window rows through reader_can_receive_event so expired
drafts are suppressed on the top_level bridge path — previously this
surface serialized rows directly, bypassing the canonical read gate.

Rewrite e2e fixtures to use a short future expiration tag (now + 2s)
instead of a 31-day-old created_at that ingest rejects (±15 min drift
limit). Add a third e2e test covering the channel-window surface. All
three tests poll rather than fixed-sleep.

Move the canonical-gate rustdoc block back onto reader_can_receive_event
(it was incorrectly placed on draft_expired).

Accepted tradeoff: self-authored draft COUNTs now route through the
5000-candidate fallback rather than raw COUNT(*). A user with >5000
drafts matching one filter hits the "restricted: narrower constraints"
rejection — not a real scenario.

Co-authored-by: Will Pfleger <pfleger.will@gmail.com>
Signed-off-by: Will Pfleger <pfleger.will@gmail.com>
2026-07-14 00:21:25 -04:00
..