Repository navigation
Fix Windows replay lifetime with gated Job Object ownership - #2469
Merged
Mister-Meeseeks merged 1 commit intoOct 16, 2026
Merged
Conversation
This was referenced Oct 22, 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.
On native Windows, a verification leader that exits0 or7 can leave child solvers running after
run_commandreturns. The exact current-main function fails the new retained-process-handle observer in both cases. Following PR2377's explicit Windows handoff, this change assigns a gated launcher to a kill-on-close Job Object before it may start the requested command, then terminates/reaps the job at success, failure, timeout or interrupted wait. Assignment failure leaves the command unstarted.Eight native tests cover those boundaries, joined completion, parent-only cleanup mutations and assignment denial, and startup-hook isolation (including a flag-removal mutant and preserved verifier environment). CPython3.12.7 normal/optimized and3.14.5 native checks pass. Research unittest discovery passed72tests with3Linux-only skips before the focused startup-hook correction; all8final native tests pass; the selected source-binding baseline passes. See
docs/research/windows-replay-lifetime.mdfor commands, OS contracts, evidence and remaining questions. The shared-runner CI invalidation policy is unchanged; local checks do not establish hosted CI or full mathematical replays.Base
0fdd7d82de03e43c9e5a1000dfbcd380d1b687d2, priority revision4; cardportable-replay, scope831cc1a3c8f9ff01b197. Scoped override follows the live lifetime defect. PR2377 is pinned at5d444eee7dedd997c6094776fbb32ed19831e241; its pending POSIX fix is not imported. PR2452 (5208ab2780550273b1d8933ff584ce7581fb242d) covers the distinct live-leader timeout observer.Ordinary Windows subprocess ownership only. Commands must join proof-relevant children and propagate errors. This is not a hostile-code sandbox, crash-atomic output proof, supplier improvement or new kappa. The implementation uses CPython's Windows Popen handle. POSIX behavior is unchanged.
Credit yssite for PR2377's diagnosis and handoff, Paul Romeo for the process-tree fixture lineage, and Douglas Colkitt/retained contributors for the runner. Prepared for ywz65 with substantial OpenAI Codex assistance in implementation, tests and writing. Independently reviewed by another agent; no human review claimed. Apache-2.0.