Skip to content

fix(cli): reap home-fenced orphan shims on pool stop - #384

Merged
ZhiXiao-Lin merged 2 commits into
mainfrom
fix/pool-stop-reap-orphans
Sep 14, 2026
Merged

ZhiXiao-Lin merged 2 commits into
mainfrom
fix/pool-stop-reap-orphans

Conversation

@ZhiXiao-Lin

Copy link
Copy Markdown

Summary

  • pool stop runs the same home-fenced PPID-1 a3s-box-shim reap as pool start after socket stop (or when no daemon is listening).
  • JSON stop output includes reaped so operators can see crash-recovery work.
  • Add a Linux reap test that spawns a PPID-1 shim under a temp A3S_HOME and asserts discovery + cleanup.

Why (first principles)

#373 already named that crashed-daemon MicroVMs are invisible to pool stop. Start closed that hole; stop still lied with success / not_running while orphans kept CPU and mounts. This completes the stop contract without inventing ps reattach, B2, Live digests, or #172.

Test plan

  • test_execute_stop_json_reports_reaped_when_daemon_absent
  • home_fenced_ppid1_shim_orphan_is_reaped (Linux)
  • Linux CI Test job green
  • Full PR CI green before squash-merge

ZhiXiao-Lin and others added 2 commits September 14, 2026 22:43
Complete #373 stop-side honesty: when the warm-pool daemon is already dead,
socket-only stop must not leave PPID-1 MicroVMs invisible under A3S_HOME.

Co-authored-by: Cursor <[email protected]>
exec sleep replaced /proc cmdline and hid a3s-box-shim from the PPID-1 fence.

Co-authored-by: Cursor <[email protected]>
@ZhiXiao-Lin
ZhiXiao-Lin merged commit 572adeb into main Sep 14, 2026
14 checks passed
@ZhiXiao-Lin
ZhiXiao-Lin deleted the fix/pool-stop-reap-orphans branch September 14, 2026 15:43
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