Skip to content

Add rejected Update recovery scenario across SDKs - #963

Closed
mfateev wants to merge 1 commit into
mainfrom
codex/rejected-update-worker-restart
Closed

mfateev wants to merge 1 commit into
mainfrom
codex/rejected-update-worker-restart

Conversation

@mfateev

@mfateev mfateev commented Nov 27, 2026

Copy link
Copy Markdown
Member

Scenario

Add update/rejected_update_worker_restart in Go, Java, Python, TypeScript, and .NET. The feature waits for the initial Workflow Task, rejects an Update through a validator, and asserts that the complete persisted history is unchanged. It then replaces the worker, accepts a valid Update, checks that its result and final Workflow result are 1, and verifies that history has exactly one UpdateAccepted and one UpdateCompleted event and no UpdateRejected event.

This combines the nondurable rejection and worker restart paths already covered separately by update/non_durable_reject and update/worker_restart. It follows the speculative rejection, reset, later acceptance, and replay sequence covered by the Lean Update proofs in core-validator.

Validation

  • go run . run --lang go update/rejected_update_worker_restart — passed
  • go run . run --lang java update/rejected_update_worker_restart — passed
  • go run . run --lang py update/rejected_update_worker_restart — passed
  • go run . run --lang ts update/rejected_update_worker_restart — passed
  • go run . run --lang cs update/rejected_update_worker_restart — passed
  • Go package compile, Java Spotless, Python Ruff/mypy, TypeScript tsc/Prettier, and .NET build passed.

No bug was found in the tested current SDK releases. An attempted Go SDK v1.49.0 run could not compile the suite because an unrelated system_nexus/signal_with_start feature uses APIs introduced after that release; this scenario was therefore not tested on v1.49.0.

@mfateev mfateev closed this Nov 27, 2026
@mfateev
mfateev deleted the codex/rejected-update-worker-restart branch November 27, 2026 00:07
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