feat: reconcile reserved create operations atomically - #139
Merged
Conversation
rrrodzilla
changed the base branch from
feat/conditional-entity-mutations
to
main
September 7, 2026 21:23
rrrodzilla
marked this pull request as ready for review
September 7, 2026 21:23
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds an opt-in create-intent protocol for recovering a lost create response without inserting a replacement entity. PostgreSQL commits the entity, initial revision and receipt atomically. Repeated submission returns the currently authorized original result; deletion does not permit resurrection.
Reservation, commitment and receipt lookup reuse current principal/tenant/schema authorization. First commitment has a 15-minute admission window; receipt recovery lasts24 hours from reservation. Unknown, expired or differently scoped intents refuse commitment. Hooked schemas and enabled global webhooks reject new reservations/pending commitments explicitly. Business-name uniqueness remains separate from operation identity.
The public contract is documented in docs/create-reconciliation.md. Tests cover concurrent commitment, rollback on uniqueness, changed payload/schema, expiry/pruning, current owner denial, deleted results and selected two-membership tenant isolation.
Validation:1198 nextest tests passed with10 infrastructure-dependent skips; the disposable live PostgreSQL backend and two HTTP cases also passed. CLI/runtime/PostgreSQL/backend all-target Clippy passed without warnings. The merged tree is byte-identical to the tested tree, with current conditional-read and uniqueness fixes included.
Stacked on conditional mutations PR #138. No registry release or production deployment is implied.