Retract 7 5 cancel invariant - #30
Merged
Merged
Conversation
The invariant rested on the claim that a booking left pending by an abandoned checkout remains confirmable. Section 5.3.4 restricts confirm to business-initiated manual-mode approval, so that claim does not hold as stated and the invariant has no established hazard to protect against. Withdraws the invariant, cancellation.reason_code and its checkout_abandoned value, the canceled_at cross-read stability requirement, the notification suppression rule, the Section 5.2 missing-terminal-path note, and flow vector 105. Also removes the pre-existing clause requiring cancel_checkout to transition the pending booking to canceled, which cited derivation rule 2 as authority that rule does not carry. Keeps the derivation rule 2 clarification and the cancel-response shape rule, both of which stand independently of the withdrawn invariant. Section 5.1.1 and Section 5.3.4 disagree on whether confirm is legal from pending in auto mode. That conflict is tracked separately and is the precondition for deciding whether any cancel-path requirement is needed.
- Made Section 5.3.4 authoritative over the Section 5.1.1 `pending`/`confirm` cell, so `confirm` from `pending` is legal only in manual confirmation mode and an auto-mode booking that is not already `confirmed` MUST be rejected with `invalid_transition`. That closes the contradiction that would otherwise let a platform confirm an unpaid UCP-Native leftover sitting in `pending`
- Marked REST `POST /bookings/{booking_id}/confirm` and MCP `usp_bookings_confirm` as `business_only`, stripping platform `USP-Agent`/`_meta` and booking-scoped credentials, because a scoped credential that can confirm would still grant a free appointment on that unpaid leftover
- Added flow vector `105-confirmation-mode-guard` and a coherence check for the `business_only` access class so the cell cannot drift untested again
---
…invariant # Conflicts: # CHANGE_LOG.md # tests/vectors/README.md
yahalomran
enabled auto-merge (squash)
September 20, 2026 13:55
yahalomran
disabled auto-merge
September 20, 2026 13:55
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.
No description provided.