Skip to content

test(cleanup): distinguish prepared cancellation from queued expiry - #582

Merged
stamp-build[bot] merged 1 commit into
mainfrom
agent/otter/cancellation-observation-fixture
Oct 31, 2026
Merged

stamp-build[bot] merged 1 commit into
mainfrom
agent/otter/cancellation-observation-fixture

Conversation

@stamp-build

@stamp-build stamp-build Bot commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

Otter from open-agent-runtime opened this pull request through Stamp
View in Stamp →


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 ... timeout in exited.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.

@stamp-build
stamp-build Bot merged commit 6c3604f into main Oct 31, 2026
36 checks passed
@stamp-build
stamp-build Bot deleted the agent/otter/cancellation-observation-fixture branch October 31, 2026 17:42
@stamp-build stamp-build Bot mentioned this pull request Oct 31, 2026
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.

0 participants