events: capture dispatch is LIFO and count retention evicts undispatched captures #1019

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

internal/infrastructure/postgres/queries/edastore.sql:16-27 ListUndispatchedCaptures orders received_at DESC, so under sustained intake (>100 per cycle) older accepted captures are starved. Furthermore DeleteCapturesBeyondCount (lines 32-42) evicts captures older than max_events without checking if they were ever dispatched, silently losing accepted work. Done when undispatched listing is FIFO and count retention never evicts undispatched captures.

Close reason

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


Imported from beads archie-core-2et4b · GitHub #1604 · type bug · priority P1 · created 2026-10-11 · closed 2026-10-11

internal/infrastructure/postgres/queries/edastore.sql:16-27 ListUndispatchedCaptures orders received_at DESC, so under sustained intake (>100 per cycle) older accepted captures are starved. Furthermore DeleteCapturesBeyondCount (lines 32-42) evicts captures older than max_events without checking if they were ever dispatched, silently losing accepted work. Done when undispatched listing is FIFO and count retention never evicts undispatched captures. ### Close reason Fixed on fix/workflow-eda-audit (PR #1627) --- _Imported from beads `archie-core-2et4b` · GitHub #1604 · type bug · priority P1 · created 2026-10-11 · closed 2026-10-11_
sam added the highbug labels 2026-10-27 13:38:42 +00:00
sam self-assigned this 2026-10-27 13:38:42 +00:00
sam closed this issue 2026-10-27 13:38:42 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#1019