eda: non-dispatchable captures permanently crowd the dispatch batch #1480

Closed
opened 2026-10-27 13:40:34 +00:00 by sam · 0 comments
Owner

internal/infrastructure/postgres/queries/edastore.sql:19-20 ListUndispatchedCaptures does not filter on authenticated OR unsigned. Webhooks with failed HMAC are stored with authenticated=false. In daemon.go:648 Matches rejects them without recording an evaluation, leaving them permanently eligible. Being ordered DESC, bad-signature webhooks crowd out dispatchable events from the 100-event batch. Done when ListUndispatchedCaptures filters to dispatchable events only.

Close reason

Fixed on fix/workflow-eda-audit (PR #1627)


Imported from beads archie-core-o0s0z · GitHub #1613 · type bug · priority P2 · created 2026-10-11 · closed 2026-10-11

internal/infrastructure/postgres/queries/edastore.sql:19-20 ListUndispatchedCaptures does not filter on authenticated OR unsigned. Webhooks with failed HMAC are stored with authenticated=false. In daemon.go:648 Matches rejects them without recording an evaluation, leaving them permanently eligible. Being ordered DESC, bad-signature webhooks crowd out dispatchable events from the 100-event batch. Done when ListUndispatchedCaptures filters to dispatchable events only. ### Close reason Fixed on fix/workflow-eda-audit (PR #1627) --- _Imported from beads `archie-core-o0s0z` · GitHub #1613 · type bug · priority P2 · created 2026-10-11 · closed 2026-10-11_
sam added the mediumbug labels 2026-10-27 13:40:34 +00:00
sam self-assigned this 2026-10-27 13:40:34 +00:00
sam closed this issue 2026-10-27 13:40:34 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#1480