Repository navigation
fix(runtime): refuse inventing Ready from attach without exec heartbeat - #413
Merged
ZhiXiao-Lin merged 3 commits intoSep 16, 2026
Merged
Conversation
attach_running_process reconstructed host manager state and projected Ready from a live shim PID alone. Require authenticated exec heartbeat (Unix connect+heartbeat; Windows guest-control.ready + named-pipe heartbeat) or leave Created for observe/promote_if_ready. Does not flip B2 or invent Live. EOF Co-authored-by: Cursor <[email protected]>
attach_ready_test_vm now asserts authenticated Ready. PTY fixtures answer exec.sock heartbeats; port-forward recover uses a live heartbeat server instead of inventing Ready from a dead layout path. EOF Co-authored-by: Cursor <[email protected]>
EOF Co-authored-by: Cursor <[email protected]>
ZhiXiao-Lin
deleted the
honesty/attach-refuse-ready-without-exec-heartbeat
branch
September 16, 2026 00:48
2 of 3 tasks
ZhiXiao-Lin
added a commit
that referenced
this pull request
Sep 16, 2026
…hout heartbeat (#414) Snapshot-restore boot completion now publishes Ready only when the one-shot exec heartbeat authenticated; otherwise leave Created (no box.ready) for observe/promote_if_ready (#414 / #413 parity). Does not flip B2 or invent Live digests. Co-authored-by: Cursor <[email protected]>
1 of 2 tasks
ZhiXiao-Lin
added a commit
that referenced
this pull request
Sep 16, 2026
…c heartbeat (#415) Linux attach_sandbox now promotes Ready only via authenticated exec heartbeat (promote_ready_if_exec_authenticated); otherwise leave Created for observe/promote_if_ready (#415 / #413/#414 parity). Does not flip B2 or invent Live digests. Co-authored-by: Cursor <[email protected]>
This was referenced Sep 16, 2026
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
VmManager::attach_running_processno longer invents Ready from a live shim PID (or layout path) aloneguest-control.ready+ named-pipe heartbeat); otherwise leaveCreatedfor observe/promote_if_readyTest plan
cargo test -p a3s-box-runtime --lib test_attach_running_process(Windows: refuses Ready without heartbeat)