mirror of
https://github.com/jhd3197/ServerKit.git
synced 2026-11-09 05:24:49 +09:00
The raw subprocess census caught disk_reclaim_service as a 25th call site against a ceiling of 24. The ceiling only goes down, and this is a case where the shared door is genuinely the better call rather than a box to tick. _run's own `except OSError` turned a missing binary into an empty result, which is exactly the sbin-PATH failure mode: a unit whose $PATH omits sbin cannot exec a bare `journalctl`, and this sweep would have reported "nothing to reclaim" on a host that had plenty to reclaim -- a false fact about the operator's disk rather than a visible error. run_checked resolves argv[0] the way privileged_cmd does, and separates "never ran" (returncode None) from "answered no". _run keeps its (ok, stdout, stderr) shape, so callers and tests are unchanged; a missing binary still degrades to a zero-sized candidate instead of aborting the scan, but now the reason reaches stderr. Census back to 24/24; all six ratchets pass. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>