Skip to content

fix(runtime): fail closed orphan sandbox reap - #550

Merged
emigmo merged 1 commit into
mainfrom
fix/fail-closed-orphan-reap
Sep 18, 2026
Merged

emigmo merged 1 commit into
mainfrom
fix/fail-closed-orphan-reap

Conversation

@emigmo

@emigmo emigmo commented Sep 18, 2026

Copy link
Copy Markdown

Summary

  • Recorded Sandbox reap fails closed when the log worker is still present or the bundle directory, runtime root, or runtime.json cannot be removed.
  • Orphan crash recovery uses the same synchronous overlay unmount as product stop/remove and keeps the box directory when unmount or wipe fails, without logging a successful reap.
  • Does not close ROADMAP B2/B3/B4 or flip b2_process_session_recovery_closed.

Test plan

  • cargo test -p a3s-box-runtime --lib vm::reap (18 passed; home_fenced_ppid1_shim_orphan_is_reaped failed before reap on PPID-1 discovery in this WSL host, not on the unmount path; test_reap_removes_box_dir passed)
  • Hosted CI

Recorded Sandbox cleanup refuses a clean reap when the log worker remains or the bundle, runtime root, or runtime.json cannot be removed. Orphan box-dir wipe uses synchronous overlay unmount and retains the directory when unmount or delete fails. Does not flip B2/B3/B4.

Co-authored-by: Cursor <[email protected]>
@emigmo
emigmo merged commit 730daa1 into main Sep 18, 2026
2 of 7 checks passed
@emigmo
emigmo deleted the fix/fail-closed-orphan-reap branch September 18, 2026 04:45
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