Repository navigation
fix(runtime): refuse inventing Windows exec-ready success on provider exit - #408
Merged
Merged
Conversation
… exit wait_for_exec_ready must not return Ok(()) when the shim has exited without durable guest status (or after a collected provider-only exit). Mirror Unix fail-closed classification so boot cannot invent Ready without an exec channel.
1 of 4 tasks
ZhiXiao-Lin
added a commit
that referenced
this pull request
Sep 15, 2026
…before heartbeat (#411) Durable guest exit (or try_wait/has_exited completion) before the exec heartbeat must fail closed as BoxBootError — Windows #407/#408 parity — instead of inventing Ready/Ok(()). EOF Co-authored-by: Cursor <[email protected]>
ZhiXiao-Lin
added a commit
that referenced
this pull request
Sep 15, 2026
…resence (#412) Managed observe and promote_if_ready now require guest-control.ready plus a named-pipe heartbeat. Pool wait_for_exec_available fails closed instead of unconditional Ok(()) — #407/#408/#411 parity. EOF Co-authored-by: Cursor <[email protected]>
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.
Summary
wait_for_exec_readyno longer invents exec-ready success when the shim has exited without durable guest status (has_exited→ wasOk(())).BoxBootError, matching the persisted-exit path — never invent Ready.test_wait_for_exec_ready_rejects_provider_exit_without_guest_statusand..._rejects_collected_provider_exit_without_guest_file(Windows).Why (first principles)
Provider/shim death is not proof the guest exec channel is ready. Inventing
Ok(())lets boot proceed to Ready without authenticated readiness — Unix already failed closed; Windows did not.Anti-overfit
Does not flip B2, invent Live digests, widen timeouts, change prune filters, or claim MicroVM/TEE production.
Test plan
cargo test -p a3s-box-runtime wait_for_exec_ready(3 Windows tests green)EOF