Skip to content

Prevent cancelled edit attempts from publishing proposals - #205

Merged
HomenShum merged 2 commits into
mainfrom
codex/nodeslide-cancel-publication-20261015
Oct 16, 2026
Merged

HomenShum merged 2 commits into
mainfrom
codex/nodeslide-cancel-publication-20261015

Conversation

@HomenShum

@HomenShum HomenShum commented Oct 16, 2026 •

Copy link
Copy Markdown
Owner

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:

  • The new frozen regression fails on original source in 11 scenarios, with 3 controls passing; the same 14 scenarios pass after the change. It covers both callers, cancellation/publication order, authority bindings, stale attempts, replay, four overlapping jobs and twelve retained recovery cycles.
  • An unchanged separate 31-job actual-handler/convex-test comparison observes 17 cancelled-run publications before and zero after; both ordering controls and all 12 fresh manual recoveries pass. No provider/research/fetch calls; deck snapshots remain unchanged.
  • 80 surrounding recovery, streaming, memory, planner and budget tests pass. Root and Convex typechecks, focused Biome and source function-bundle checks pass.
  • All nine existing citation, tour and edit-verification cases pass after updating the derived pointers and mock contract; their assertions and provider fixtures are unchanged.
  • Independent source/simplification and raw before/after result reviews are recorded locally. Native repository CI remains a separate merge gate.

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.

@HomenShum
HomenShum merged commit e0b35c9 into main Oct 16, 2026
10 checks passed
@HomenShum
HomenShum deleted the codex/nodeslide-cancel-publication-20261015 branch October 16, 2026 00:47
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