Skip to content

v1.7.3: a row and its outbox records in one commit - #7

Merged
subhamviky merged 2 commits into
mainfrom
release/v1.7.3
Nov 16, 2026
Merged

subhamviky merged 2 commits into
mainfrom
release/v1.7.3

Conversation

@subhamviky

Copy link
Copy Markdown
Owner

No description provided.

put_if_version(key, value, version, outbox=[records]) commits the row and the
records in one atomic write: the records are pending if and only if the write
COMMITTED. A store without an outbox refuses records before writing anything.

- e2a.port_contract.check_transactional_outbox (9 scenarios, with a race)
- capability transactional_outbox; reference InMemoryTransactionalStore(outbox=)
- e2a-adapters: DynamoDB (TransactWriteItems), Firestore (WriteBatch with the
  row's precondition), Cosmos DB (transactional batch on the row's partition);
  CasBackend.commit; from_config builds the matching outbox store
- version 1.7.3 (Python, adapters, Java), README, CHANGELOG

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ArrRtrXyLLMMWD5wHSKbQ4
Several sweepers marking one record made Firestore's lock-based transactions
abort each other until the SDK gave up with ValueError (seen in CI on the
contract race). mark_published now deletes the record (precondition: exists)
and advances the fence (precondition: unchanged since read) in one atomic
batch, retrying only when the fence moved. Exactly one sweeper wins.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ArrRtrXyLLMMWD5wHSKbQ4
@subhamviky
subhamviky merged commit 4741b8b into main Nov 16, 2026
4 checks passed
@subhamviky
subhamviky deleted the release/v1.7.3 branch November 16, 2026 04:13
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.

2 participants