Skip to content

Honor persisted outbox success during replay - #32

Merged
Shearerbeard merged 2 commits into
redesign/bootstrapfrom
card/e32
Nov 20, 2026
Merged

Shearerbeard merged 2 commits into
redesign/bootstrapfrom
card/e32

Conversation

@Shearerbeard

@Shearerbeard Shearerbeard commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner

An outbox intent with a stored Done is acknowledged without calling the effect port or compensation hook again. Success takes precedence over retry-budget handling.

A private replay-state enum replaces the boolean and optional fields with Fresh, Attempted, Parked and Done variants. Each variant carries only its own data. Read errors remain in Result; stored records and public interfaces are unchanged.

Tests cover SQLite reopen with stored success and absent-Done redelivery. Two in-memory cases cover a tightened retry budget and failed/parked outcomes after success. The SQLite success tests seed the persisted outcome; they do not inject a crash between the outcome append and acknowledgement.

Checked on Rust 1.88.0 with locked in-memory/SQLite tests, cargo check, formatting and strict all-target Clippy.

Comment thread src/streams/outbox.rs Resolved
Comment thread src/streams/outbox.rs Resolved
@Shearerbeard
Shearerbeard merged commit d09d765 into redesign/bootstrap Nov 20, 2026
4 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