Repository navigation
feat(disk-hygiene): list a mount point's immediate children read-only - #10028
Conversation
scan --root-children on a mount point that is not a volume root (a tmpfs /tmp on WSL) now lists its immediate children under the strict ladder: loose files admitted, nested mounts withheld, nothing walked, no snapshot written. --quiet sends the full listing to --output. A --root-child selection on a mount point is refused; scan an admitted child directory as its own target. The plain mount-point refusal now carries a hint. Refs: #9572 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01ALNPqVZStM4GRvFnkZgVjF
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
claude-review reviewed Incremental review of The edit is a docs-only rewording. It keeps the claim that I read only the incremental diff. I did not re-review the other five files, which are unchanged since b93cb1e. The PR context file was not needed for this change. No hold applies, and no cost is incurred beyond the lane's normal run. |
|
claude-security-review reviewed No security findings. The incremental change since b93cb1e is one wording edit in The edit is descriptive documentation. It doesn't delete, narrow, or soften a standing instruction, a rule, or a hook allowlist or block list. No code, manifest, or trusted-path file changed in this increment. So the instruction-surface lens finds nothing to compare against the exception register, and no manifest items apply. I did not re-review the other five files. They are unchanged since b93cb1e and were reviewed then. PR context: the description contains no embedded instructions aimed at the review lane. critical-findings: 0 |
Lane-Activity: pr-refine/fix-docs
Refs: #9572
Summary
This PR covers half of #9572: an audit of a tmpfs
/tmpnow reports its top-level entries. The other half, making/disk-hygiene:cleanmodel-invocable, is not in this PR. A recorded owner decision blocks it, so this PR links the issue withRefs:and does not close it.Why the
cleanflip is blocked.docs/conventions/invocation-mode/README.md, in "Re-grade:disk-hygiene:cleanunder the 2026-10-18 decision (#9706)", applies the owner's D3 rule from #6458: a destructive-capable skill becomes model-invocable only if every destructive step provably stops for a person, even in an unattended run. Its verdict is KEEPtrue. The Windows/macOS manual deletion lane and the opt-in elevated script have no deterministic stop, andhandoff-applyhas never been probed. #5609 is still open. Its 2026-10-24 Windows probe found a PowerShell delete that ran with no prompt after--resume, and #9853 tracks the fix for that as an open owner decision (options A, B and C). #9572 makes the flip conditional on #5609's open modes, so this PR leavesdisable-model-invocation: trueunchanged and does not work around the block.Fix
scan --root-childrennow accepts a mount point that is not a volume root. It lists the mount's immediate children using the strict volume-root ladder: loose files are admitted, and hidden entries and nested mounts (nested-mount-point) are withheld. It setsmount_point_target: true, walks nothing, and writes no snapshot. Under--quiet, the full listing goes to the--outputpath and stdout carries onlyadmitted_kindsand the withheld-reason counts.--root-childselection on a mount point is refused, with a message telling you to scan an admitted child directory as its own target. A child of/tmpis not a mount, so a plain scan of it already works. Without--root-children, the refusal of a mount-point target keeps its error text and now adds ahintthat names the flag. A plain/disk-hygiene:audit /tmpstill stops at that exit 2;/disk-hygiene:audit --root-children /tmpreports the top-level entries, with no SKILL.md change.resolve_snapshot_targetstill refuses a mount-point target, and the--quietlisting file carries no snapshot schema, so preview rejects it.scan-flags.md,safety-model.mdand the README describe the new shape. A.changes/disk-hygiene/minor fragment is included.Verification
test_root_children_lists_immediate_children_of_a_mount_point_target,test_quiet_mount_point_listing_goes_to_the_output_fileandtest_root_child_selection_on_a_mount_point_target_is_refusedwere red before the fix (exit 2, nohint).test_scan_rejects_non_root_mount_pointwas extended to assert the hint.plugins/disk-hygiene/skills/clean/scripts/hygiene.test.sh: 722 tests, OK (2 skipped), after rebasing onto main. The skill-quality checker overplugins/disk-hygiene/skillspassed 4 skills with 0 failed, and that run also ran every bundled script test.scripts/check-changelog-fragments.sh --checkandscripts/run-ruff.sh checkon the engine scripts both pass./tmpis a tmpfs mount:scan --target /tmp --root-childrenreturnedroot-children-selection-requiredwithmount_point_target: true, 25,572 admitted top-level entries (23,073 directories and 2,499 files) and 5 withheld (2 hidden, 3 non-regular). Theos_autocleanadvisory named systemd-tmpfiles.skill-criteria.md("a description change re-measures triggering, a body change re-measures output") no model-graded eval is owed. None was run.cleanmodel-invocation flip (blocked, see Summary).ruff format --check, which already fails on main for these files without this change.--quietshapes the scan's stdout and nothing else" is not updated: for a mount-point listing--quietalso writes the--outputfile. Editing the body would owe a model-graded eval run, soscan-flags.mdcarries the detail instead.Related
--resume.Follow-up question for the owner: should the
/tmpcleanup run on a schedule outside a session? That needs a host-operations design (a schedule owner, an unattended deletion lane), and none exists yet, so nothing is built here.🤖 Generated with Claude Code
https://claude.ai/code/session_01ALNPqVZStM4GRvFnkZgVjF