Skip to content

feat(examples): track durable public result delivery acknowledgments - #41

Merged
willtmc merged 2 commits into
mainfrom
codex/public-result-outbox
Nov 26, 2026
Merged

willtmc merged 2 commits into
mainfrom
codex/public-result-outbox

Conversation

@willtmc

@willtmc willtmc commented Sep 8, 2026

Copy link
Copy Markdown
Owner

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.

@willtmc
willtmc marked this pull request as ready for review September 8, 2026 19:46
@willtmc
willtmc merged commit ba2f21d into main Nov 26, 2026
4 checks passed
@willtmc
willtmc deleted the codex/public-result-outbox branch November 26, 2026 17:23
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