Skip to content

Monitoring: fail closed on undelivered events#961

Open
mswilkison wants to merge 4 commits into
mainfrom
codex/monitoring-delivery-hardening
Open

Monitoring: fail closed on undelivered events#961
mswilkison wants to merge 4 commits into
mainfrom
codex/monitoring-delivery-hardening

Conversation

@mswilkison
Copy link
Copy Markdown

@mswilkison mswilkison commented May 5, 2026

Summary

  • Treat missing Sentry event IDs and failed flushes as receiver failures
  • Allow duplicate acknowledgements while preventing unhandled system events from checkpointing silently
  • Cap trigger block ranges and checkpoint only the processed range
  • Bound persisted handled-event history per receiver

Validation

  • CI passes: monitoring format and monitoring build
  • git diff --check passed locally for the safe-fix batch

Notes

This is public-safe operational hardening only and does not include any private deployment mitigation.

@mswilkison mswilkison force-pushed the codex/monitoring-delivery-hardening branch from 924940a to 47b41c0 Compare May 5, 2026 15:44
@mswilkison mswilkison force-pushed the codex/monitoring-delivery-hardening branch from 47b41c0 to 5b0b0ad Compare May 5, 2026 15:46
@mswilkison mswilkison marked this pull request as ready for review May 5, 2026 16:45
mswilkison and others added 3 commits May 5, 2026 17:26
…errors

- Coverage check now skips events where all receivers returned "ignored"
  (no receiver configured for that event type), allowing deployments that
  run with only a subset of receivers without halting monitoring.
- Coverage check also skips events whose dispatches were rejected, since
  the dispatch error is already recorded and a second coverage error would
  be misleading.
- Replace switch/case dispatch blocks with if/else for clarity.
- Replace async-reduce test runner with a for-of loop for readability.
- Document the 10,000-block catch-up cap and the new dispatch coverage
  failure mode in README.adoc.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants