Repository navigation
feat(examples): track durable public result delivery acknowledgments - #41
Merged
Merged
Conversation
willtmc
marked this pull request as ready for review
September 8, 2026 19:46
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Expose committed public bid/group-close results through a durable outbox backed by the existing SQLite journal. Each consumer has an independent persisted cursor; stable stream/sequence delivery IDs survive restarts. Failed callbacks remain pending, exact command retries do not enqueue duplicates, and acknowledgment cannot skip the next pending result.
The callback runs outside the database lock. A crash after receiver acceptance but before acknowledgment can redeliver the same ID: the receiver must deduplicate atomically with its own side effects. This is at-least-once delivery, with one worker per consumer for ordered callbacks. No network transport or external messages are sent by this example.
Only clock and member public projections leave the journal; privileged events, bidder identities and maxima are excluded. Existing journals become available to new consumers from their oldest accepted entry. Full replay validates results before delivery.
Validation: 197 tests / 47,121 assertions pass, including ten new tests for restart/callback failure, actual process death after handoff, stable IDs, cursor ordering, consumer independence, rollback, privacy and callback mutation. Clean installed-gem checks and git diff --check pass. Fixtures are synthetic.
This remains an informative local adapter outside the gem. Production transport, checkpointing, leases and authorized private accounting handoff remain separate work. No release or deployment claimed.
Follows #40; refs #33 and #34.