Skip to content

fix(runtime): fail closed file-mount staging cleanup - #551

Merged
emigmo merged 1 commit into
mainfrom
fix/fail-closed-host-claim-cleanup
Sep 18, 2026
Merged

emigmo merged 1 commit into
mainfrom
fix/fail-closed-host-claim-cleanup

Conversation

@emigmo

@emigmo emigmo commented Sep 18, 2026

Copy link
Copy Markdown

Summary

  • Remove now deletes shim file-mount staging at $TMPDIR/a3s-fs-mount-<id>-<tag>, the directory the shim actually creates, instead of only the unsuffixed path.
  • CLI, SDK, and managed stop/remove fail closed when that staging, an external socket directory, or a legacy MicroVM host cgroup cannot be removed.
  • Does not close ROADMAP B2/B3/B4 or flip b2_process_session_recovery_closed.

Test plan

  • cargo test -p a3s-box-runtime --lib fs::tests::file_mount_staging (2 passed)
  • cargo test -p a3s-box-cli --lib cleanup:: (4 passed)
  • cargo check -p a3s-box-sdk --lib
  • Hosted CI

The shim writes a3s-fs-mount-<id>-<tag>, but remove only deleted the unsuffixed directory and swallowed socket-directory and legacy cgroup errors. Match the real staging identity and refuse stop/remove when staging, the external socket directory, or the host cgroup remains. Does not flip B2/B3/B4.

Co-authored-by: Cursor <[email protected]>
@emigmo
emigmo merged commit 9c85be5 into main Sep 18, 2026
2 of 7 checks passed
@emigmo
emigmo deleted the fix/fail-closed-host-claim-cleanup branch September 18, 2026 05:06
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.

2 participants