Skip to content

fix(runtime): refuse inventing VmManager success from cached shim zero - #410

Merged
ZhiXiao-Lin merged 1 commit into
mainfrom
honesty/vm-refuse-cached-shim-zero-at-source
Sep 15, 2026
Merged

ZhiXiao-Lin merged 1 commit into
mainfrom
honesty/vm-refuse-cached-shim-zero-at-source

Conversation

@ZhiXiao-Lin

Copy link
Copy Markdown

Summary

  • Authenticate VmManager::{try_wait_exit,exit_code,has_exited} cached shim/provider exit at source via durable guest status (resolve_workload_exit_code / Windows guest-result collect)
  • Clear inventable cached 0 so pool deferred-main / start-during-startup cannot bypass #409 terminal observation
  • Windows cleanup_boot_failure collect-Err fallback refuses inventing clean provider 0 (destroy parity)

Test plan

  • test_try_wait_exit_refuses_cached_shim_zero_without_durable_guest_exit
  • test_try_wait_exit_accepts_cached_shim_zero_with_durable_guest_exit
  • test_cleanup_boot_failure_refuses_provider_zero_when_guest_collect_fails
  • Existing destroy / Windows rootfs exit regressions
  • CI green on Linux + Windows

Does not flip B2 or invent Live digests.

Authenticate try_wait_exit/exit_code/has_exited against durable guest status
at the cache source so pool deferred-main cannot bypass terminal observation;
Windows cleanup_boot_failure collect-Err no longer invents provider 0.

Co-authored-by: Cursor <[email protected]>
@ZhiXiao-Lin
ZhiXiao-Lin merged commit 561ebfa into main Sep 15, 2026
14 checks passed
@ZhiXiao-Lin
ZhiXiao-Lin deleted the honesty/vm-refuse-cached-shim-zero-at-source branch September 15, 2026 21:57
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