Skip to content

fix(runtime): require Ready before inventing LocalExecutionHandle (#422) - #422

Merged
ZhiXiao-Lin merged 1 commit into
mainfrom
honesty/handle-requires-ready-state
Sep 16, 2026
Merged

ZhiXiao-Lin merged 1 commit into
mainfrom
honesty/handle-requires-ready-state

Conversation

@ZhiXiao-Lin

Copy link
Copy Markdown

Summary

  • handle_from_manager refuses inventing a LocalExecutionHandle unless VmManager state is Ready/Busy/Compacting (PID + layout alone must not invent a handle).
  • Sandbox paused inspect returns durable Paused without a handle when exec did not authenticate; pause/resume fails closed instead of inventing a handle.
  • Does not flip B2, invent Live digests, widen flaky timeouts, or claim WHPX/KVM production.

Test plan

  • cargo test -p a3s-box-runtime --lib handle_from_manager_refuses_created_without_authenticated_ready
  • sibling start Ready invent-refusal tests still green
  • CI Format / Clippy / Test on PR

A start/pause/inspect handle implies operable guest exec. Created/Failed/Stopped
managers must not invent a handle from PID + layout alone; Sandbox paused keeps
durable Paused without a handle when exec did not authenticate.

EOF

Co-authored-by: Cursor <[email protected]>
@ZhiXiao-Lin
ZhiXiao-Lin merged commit 42016dc into main Sep 16, 2026
5 of 7 checks passed
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