Repository navigation
Prevent cancelled edit attempts from publishing proposals - #205
Merged
Merged
Conversation
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.
When a deck author cancelled an edit after the action's status read, the later proposal mutation still saved a ready proposal. Both hosted and local-candidate edit callers now pass their captured run and attempt to that mutation. It checks current authority before writing and records the proposal/trace link in the same transaction, so cancellation that commits first prevents publication; publication that commits first remains reviewable and replayable.
The existing stream-completion/review checkpoint order is preserved. Failure finalization from an older attempt cannot fail its replacement attempt. Source tours and architecture citations follow the moved lines; the existing action-test mock distinguishes progress updates from newly run-bound proposals. No dependency, model, schema or visual changes.
Validation:
These are bounded local handler/persistence checks, not deployed Convex contention, browser Stop, provider abort or production/soak certification. The broader stale-checkpoint lifecycle is outside this patch. Local proof uses an existing installed runtime with candidate source aliases; full locked-install/build/package-consumer validation belongs to PR CI.