Repository navigation
test(cleanup): distinguish prepared cancellation from queued expiry - #582
Merged
stamp-build[bot] merged 1 commit intoOct 31, 2026
Merged
Conversation
stamp-build
Bot
deleted the
agent/otter/cancellation-observation-fixture
branch
October 31, 2026 17:42
Merged
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.
The successful two-turn orphan cleanup regression could race a Windows worker's first background process-table preparation. Wait for that preparation to succeed before exercising cancellation, then require both fresh cancellation observations and all four original process-cleanup assertions to succeed. Failed assertions include each observation's result, duration and preparation state, plus the final exited response and its reason.
Add two actual ACP process controls using the real serial batcher and real process-table reads. Holding a background query beyond the first cancellation's unchanged one-second observation budget leaves the first tool unclaimed, cleans the later tool, and reports
before_cancel ... timeoutinexited.reason. Completing that query before cancellation cleans both turns' tools. The test explicitly checks that no second query starts while the first remains blocked.The original PR #580 Windows failure (run 41223079686, job 124601496941) did not retain these diagnostics. The controlled reproduction proves this queue mechanism, not that it caused the original CI failure. Product code, deadlines and behavior-suite entry points are unchanged.
Validation: the two focused files pass all 10 tests; full check passes 2,858 tests and 18 mock behaviors. Windows CI will verify the preparation prerequisite and both controls on its native process table.