mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
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>