Skip to content

fix(runtime): demote MicroVM pause to Paused and re-auth on resume (#424) - #425

Closed
ZhiXiao-Lin wants to merge 1 commit into
mainfrom
honesty/pause-demote-resume-reauth
Closed

ZhiXiao-Lin wants to merge 1 commit into
mainfrom
honesty/pause-demote-resume-reauth

Conversation

@ZhiXiao-Lin

Copy link
Copy Markdown

Summary

  • Add BoxState::Paused; MicroVM pause demotes after SIGSTOP so Ready cannot invent operable exec while frozen.
  • resume re-proves guest exec before restoring Ready — SIGCONT alone fails closed and leaves Paused.
  • handle_from_manager allows Paused for pause lease bookkeeping; health_check / exec refuse Paused.
  • Does not flip B2, invent Live digests, or widen flaky timeouts.

Test plan

  • health_check_refuses_paused_without_inventing_ready
  • handle_from_manager_allows_paused_for_pause_lease_bookkeeping
  • CI Unix: microvm_pause_demotes_ready_when_exec_frozen / microvm_resume_refuses_ready_without_post_cont_heartbeat
  • CI Format / Clippy / Test

)

SIGSTOP must not leave Ready inventing operable guest exec. Pause demotes to
BoxState::Paused; resume restores Ready only after exec heartbeat re-proof.
Pause leases may still retain a handle without inventing Ready.

Co-authored-by: Cursor <[email protected]>
@ZhiXiao-Lin

Copy link
Copy Markdown
Author

Duplicate of merged #424

ZhiXiao-Lin added a commit that referenced this pull request Sep 16, 2026
…426)

set_boot_completion_state must not invent Ready from call-order alone.
Retain authenticated ExecClient on Windows wait/attach/pool paths so the
gate matches Unix #414 (#425).

EOF

Co-authored-by: Cursor <[email protected]>
ZhiXiao-Lin added a commit that referenced this pull request Sep 16, 2026
…433)

Rootfs-maintenance boot must publish Ready only via set_boot_completion_state
and fail-close when the authenticated exec client was not retained (#433 / #425/#430).
Does not invent Live digests or flip B2.

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