Skip to content

Protect chat mutations with revision compare-and-swap - #78

Merged
dovvnloading merged 1 commit into
mainfrom
codex/chat-revision-cas
Jul 30, 2026
Merged

Protect chat mutations with revision compare-and-swap#78
dovvnloading merged 1 commit into
mainfrom
codex/chat-revision-cas

Conversation

@dovvnloading

Copy link
Copy Markdown
Owner

Summary

  • add revision compare-and-swap support to both chat repository implementations
  • make in-memory chat mutations lock-protected and SQLite mutations transactional with BEGIN IMMEDIATE
  • reject stale synchronous message writes with HTTP 409 and guard generation persistence before both user and assistant writes
  • regenerate OpenAPI/TypeScript contracts and add concurrency/race regression coverage

Validation

  • python -m pytest -q (372 passed, 1 skipped)
  • python -m ruff check ... (all checks passed)
  • python tools/generate_contracts.py

@dovvnloading
dovvnloading merged commit 46e1714 into main Jul 30, 2026
1 check passed
@dovvnloading
dovvnloading deleted the codex/chat-revision-cas branch July 30, 2026 18:28
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