Skip to content

fix(runtime): refuse inventing Windows destroy exit from provider zero - #407

Merged
ZhiXiao-Lin merged 1 commit into
mainfrom
honesty/win-destroy-refuse-provider-zero
Sep 15, 2026
Merged

ZhiXiao-Lin merged 1 commit into
mainfrom
honesty/win-destroy-refuse-provider-zero

Conversation

@ZhiXiao-Lin

Copy link
Copy Markdown

Summary

  • Windows destroy_with_options no longer assigns raw handler.exit_code() after stop — routes through collect_windows_guest_result so clean provider 0 without durable guest status stays Absent.
  • Nonzero provider crash evidence and authenticated persisted exits are kept.
  • TDD: live-stop handler on destroy proves exit_code() stays None.

Test plan

  • cargo test -p a3s-box-runtime test_destroy_refuses_invented_provider_zero (red then green)
  • CI green on this PR

@ZhiXiao-Lin
ZhiXiao-Lin merged commit df8dd56 into main Sep 15, 2026
14 checks passed
@ZhiXiao-Lin
ZhiXiao-Lin deleted the honesty/win-destroy-refuse-provider-zero branch September 15, 2026 16:06
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