Skip to content

feat: add durable SQLite state and idempotency ledger - #5

Merged
cvsz merged 2 commits into
mainfrom
feat/durable-state-recovery
Aug 22, 2026
Merged

feat: add durable SQLite state and idempotency ledger#5
cvsz merged 2 commits into
mainfrom
feat/durable-state-recovery

Conversation

@cvsz

@cvsz cvsz commented Aug 22, 2026

Copy link
Copy Markdown
Owner

Summary

Implements the first bounded slice of EP-01 Durable State and Recovery:

  • add SQLiteStateStore
  • WAL mode + synchronous=FULL
  • atomic checkpoint updates via BEGIN IMMEDIATE
  • checkpoint integrity validation on read
  • durable idempotency records
  • fail-closed idempotency status validation
  • prevent successful side effects from being moved backward into retry states
  • add deterministic unit tests for checkpoints and idempotency behavior

Acceptance evidence targeted by CI

python -m unittest discover -s src -p 'test_*.py' -v

This PR does not yet claim all of EP-01 complete. Resume API, cancellation/deadlines, PostgreSQL contract, and full state-machine recovery remain follow-up slices.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@cvsz
cvsz merged commit d41a506 into main Aug 22, 2026
3 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