Skip to content

fix(runtime): refuse inventing Windows exec-ready success on provider exit - #408

Merged
ZhiXiao-Lin merged 1 commit into
mainfrom
honesty/win-exec-ready-refuse-provider-exit
Sep 15, 2026
Merged

ZhiXiao-Lin merged 1 commit into
mainfrom
honesty/win-exec-ready-refuse-provider-exit

Conversation

@ZhiXiao-Lin

Copy link
Copy Markdown

Summary

  • Windows wait_for_exec_ready no longer invents exec-ready success when the shim has exited without durable guest status (has_exited → was Ok(())).
  • Collected provider-only exits (nonzero shim without guest exit file) classify as BoxBootError, matching the persisted-exit path — never invent Ready.
  • Tests: test_wait_for_exec_ready_rejects_provider_exit_without_guest_status and ..._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

  • Local: cargo test -p a3s-box-runtime wait_for_exec_ready (3 Windows tests green)
  • CI: Format / Clippy / Test / WHPX / Build Checks

EOF

… 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.
@ZhiXiao-Lin
ZhiXiao-Lin merged commit 323bc7a into main Sep 15, 2026
14 checks passed
@ZhiXiao-Lin
ZhiXiao-Lin deleted the honesty/win-exec-ready-refuse-provider-exit branch September 15, 2026 20:10
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]>
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.

1 participant