Skip to content

Add operator acknowledgment for terminal delivery failures - #4

Merged
marzouca merged 2 commits into
mainfrom
codex/delivery-acknowledgment-20261031
Oct 31, 2026
Merged

marzouca merged 2 commits into
mainfrom
codex/delivery-acknowledgment-20261031

Conversation

@marzouca

@marzouca marzouca commented Oct 31, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Adds an auditable lifecycle for terminal delivery failures.

  • Schema-2 acknowledgments use a short SQLite transaction that updates only delivery metadata, so they work while a schema-2 watch is active without resetting stream counters.
  • Schema-1 remains readable. A schema-1 acknowledgment follows the normal exclusive writer and migration path.
  • failures lists terminal records with event and destination IDs; ack-delivery records the operator and UTC time without changing delivery status or retrying it.
  • Pending deliveries cannot be acknowledged. Status distinguishes total, unacknowledged, and acknowledged failures; only unacknowledged failures affect overall health.
  • Acknowledged failures remain in the ledger through configured retention. Pending and unacknowledged deliveries remain protected.
  • Missing state returns not_found without creating a database; an empty state file remains a corruption error.

Verification

  • Windows Python 3.12.10: rtk python -m unittest discover -s tests -v — 179 tests ran, 9 skipped, no failures.
  • Focused operations: rtk python -m unittest discover -s tests -p test_operations.py -v — 35 tests ran, 2 skipped, no failures.
  • rtk git diff --check passed.
  • Tests use local fixtures; no notification destination or live stream was contacted.
  • The updated exact PR head will run through the Linux/Windows source matrix and Linux FFmpeg integration CI.

@marzouca
marzouca merged commit d05c8db into main Oct 31, 2026
12 checks passed
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.

1 participant