Repository navigation
State that a completed cleanup outcome does not prove cleanup code ran - #1314
Merged
Merged
Conversation
The embedded proofs (#1312) pin that a result already in history when the work deadline is noticed can let workflow code return without the interruption being delivered; the outcome is still completed. Say so in the contract, how to recognize it in history, and where compensation that must always run belongs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…onable Review follow-up: delivery is decided per durable wait by whether its result was already in history, applies to any wait kind, and never to side effects or shielded code. Compensation that must always run should be idempotent and also run on late-return paths. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Member
Author
|
Independent review: PASS at
🤖 Generated with Claude Code |
|
This was referenced Nov 26, 2026
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 one finding from the embedded proofs in #1312 to the portable contract (
docs/architecture/timeout-cleanup.md). Part of #863.A
completedcleanup outcome means workflow code returned or rethrew before the cleanup deadline. It does not prove cleanup code ran. When a timer or activity result is already in history at the moment the engine notices the work deadline, workflow code can take that result and return without blocking again. The interruption is then never delivered, but the outcome is stillcompleted. #1312 pins this intestCompletingInTheTaskThatNoticesTheWorkDeadlineEndsTimedOut.The text says how to recognize this in history:
WorkflowTimeoutCleanupStartedwith noCooperativeCancellationDelivered. It also says that compensation which must always run belongs on every path that can return after the work deadline. A review-decisions entry records it. Behaviour is unchanged and matches ordinary cooperative cancellation.Documentation only.
🤖 Generated with Claude Code