Skip to content

disk-hygiene: make clean model-invocable and audit a tmpfs /tmp #9572

Description

@kyle-sexton

Problem

Two things stopped a /tmp cleanup on 2026-10-24 (Claude Code 2.1.310, disk-hygiene 0.43.20, WSL):

  1. The model cannot run a cleanup the owner asked for. The owner asked the session to "run the /tmp cleanup"; the Skill tool refused /disk-hygiene:clean because it sets disable-model-invocation. disk-hygiene: model-invocable read-only audit skill for orchestrators and subagents #5516 kept clean manual-only on purpose (decision recorded there, resolved by feat(disk-hygiene): add model-invocable read-only audit skill #5590, which added the model-invocable read-only /disk-hygiene:audit). The owner now wants the disk-hygiene skills, clean included, model-invocable. Every removal would still need the user's own answer at clean's confirmation gate, the preview token and the kill switch; hardening for auto mode and bypass modes is tracked in disk-hygiene: prove the apply --execute guard holds in every permission mode #5609.
  2. /tmp cannot be audited. scan --target /tmp exits 2 with "mount points are not valid audit targets". On WSL /tmp is a tmpfs mount, and it is the zone that filled (companion issue on /tmp leftovers). No route audits its top-level entries, which is where the leftovers sit; the owner had to delete them with a hand-written find.

The session belt that outlived the refused run is #6377 (evidence added there).

Proposed fix

  1. Drop disable-model-invocation from /disk-hygiene:clean; keep the confirmation gate, preview token, kill switch and guard unchanged, and close disk-hygiene: prove the apply --execute guard holds in every permission mode #5609's open modes first if they block it.
  2. Admit a mount-point target's immediate children the way --root-children admits a volume root's, read-only, never walking the mount recursively; or route a tmpfs /tmp to systemd-tmpfiles --clean advice when a rule covers it.

Acceptance

  • The Skill tool loads /disk-hygiene:clean; no removal happens without the user's own answer at the confirmation gate.
  • An audit of /tmp on a tmpfs host reports its top-level entries.

Related

#5516, #5590, #5609, #6377

Activity

  1. added
    needs-triage
    on Oct 24, 2026
  2. github-actions commented on Oct 24, 2026

    @github-actions
    Contributor

    Proposed work class: work-class: scoped
    Basis: automated intake triage; the lanes App applied this class.

    Size: Small
    Complexity: Low
    Uncertainty: Known
    Flags: none
    Blocked by: none

    Decision recorded. The owner decided both parts of this issue on 2026-10-25 (#9572 (comment)):

    Every condition in that order is now met:
    [quote truncated; the full decision is at the link]
    #9572 (comment)

    The decision settles the open questions. What remains is one change: drop disable-model-invocation from the clean skill. The confirmation gate stays, and a test or eval should show that a model-invoked run stops at that gate. Part 2 shipped in #10028.

    Automated triage, applied by the lanes App.

  3. added
    needs-human
    and removed
    needs-triage
    on Oct 24, 2026
  4. added
    needs-owner-decision
    on Oct 24, 2026
  5. kyle-sexton commented on Oct 25, 2026

    @kyle-sexton
    MemberAuthor

    Status (owner decision, 2026-10-25, "go w/ recommendations"):

  6. removed
    needs-owner-decision
    needs-human
    on Oct 26, 2026
  7. kyle-sexton commented on Oct 26, 2026

    @kyle-sexton
    MemberAuthor

    Released for re-triage under the owner's 2026-10-26 rule: a person is involved only for "1. A change in original intent/vision 2. Something comes up during implementation ... that alters intent/vision or the primary design 3. If there is a HIGH/CRITICAL security issue". None applies here, so the hold label came off and intake triage runs again now.

    To hold this issue again, add needs-human (or status: needs-decision) and name which of the three applies.

  8. added
    needs-triage
    and removed
    needs-triage
    on Oct 26, 2026
  9. added
    status: ready
    on Oct 26, 2026
  10. 3 remaining items

  11. melodic-automation-lanes commented on Oct 26, 2026

    @melodic-automation-lanes
    Contributor

    The latest triage verdict holds nothing: the issue is at status: ready.

  12. added
    needs-owner-decision
    on Oct 26, 2026
  13. melodic-automation-lanes commented on Oct 26, 2026

    @melodic-automation-lanes
    Contributor

    Refinement. A read-only run explored this repository, searched its issues and pull requests, and read the allowed docs to draft what follows. On an issue a listed human filed, it counts as the issue's spec once posted, while unedited; it is still model text, so check it.

    Intended outcome: Part 2 already shipped via #​10028; what remains is dropping disable-model-invocation from clean after #​9853 and #​5609 settle, which the owner's D3 rule currently blocks.

    Dependencies

    • #​5609: the open auto/bypass-mode hardening must close before part 1
    • #​9853: the owner's status comment says to decide it first; its state is unconfirmed

    Related work

    Open questions

    1. Is part 2 (audit of a tmpfs /tmp) complete via #​10028, so this issue can narrow to part 1 only?
      RECOMMENDED: Yes. Confirm #​10028 merged, then drop part 2 from the issue. Basis: plugins/disk-hygiene/skills/clean/scripts/hygiene.py:219
    2. Is the owner's D3 rule (#​6458, re-graded in docs/conventions/invocation-mode/README.md) still blocking a model-invocable clean?
      RECOMMENDED: Yes, keep blocked until #​9853 is decided and #​5609 is closed, per the owner's 2026-10-25 status comment. Basis: comment by kyle-sexton 2026-10-25
    3. Does making a destructive skill model-invocable count as a HIGH security change that needs a person under the owner's 2026-10-26 rule?
      RECOMMENDED: Yes; plugins/disk-hygiene/skills/clean/SKILL.md:5 sets disable-model-invocation true on purpose, so confirm with the owner before any lane flips it. Basis: judgment

    Sources read

    • plugins/disk-hygiene/skills/clean/SKILL.md:5: disable-model-invocation is true
    • plugins/disk-hygiene/skills/audit/SKILL.md:5: disable-model-invocation is false
    • plugins/disk-hygiene/README.md:17: the side-effecting skill is manual-only
    • plugins/disk-hygiene/skills/clean/scripts/hygiene.py:219: --root-children lists a mount point's immediate children read-only
    • plugins/disk-hygiene/skills/clean/scripts/hygiene.py:5587: the 'mount points are not valid audit targets' error still exists for other paths

    Automated refinement by the lanes App. Answer with a comment whose first line is **Decision recorded.**.

  14. removed
    needs-owner-decision
    on Oct 26, 2026
  15. kyle-sexton commented on Oct 26, 2026

    @kyle-sexton
    MemberAuthor

    Decision recorded. The owner decided both parts of this issue on 2026-10-25 (#9572 (comment)):

    Every condition in that order is now met:

    This answers the refinement's questions. Q1: yes, Part 2 is done. Q2: the order's conditions were the block, and they are met. Q3 (is this a security change that needs a person?): the owner made it, in the order above, and set #9853's resume guard and #5609's hardening as its preconditions. Both have landed. The skill's confirmation gate stays as it is.

    Acceptance criteria:

    • plugins/disk-hygiene/skills/clean/SKILL.md no longer sets disable-model-invocation: true (today at :5), so the Skill tool can load /disk-hygiene:clean.
    • No removal happens without the user's own answer at the skill's confirmation gate; a test or eval shows a model-invoked run stops at the gate.
    • Part 2 is checked off as met by feat(disk-hygiene): list a mount point's immediate children read-only #10028.
  16. added
    needs-triage
    and removed
    status: confirmed
    needs-triage
    on Oct 26, 2026
  17. added
    status: ready
    on Oct 26, 2026
  18. added
    admission-deferred
    on Oct 28, 2026
  19. added
    agent-ready
    and removed
    admission-deferred
    on Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-readystatus: ready

    Type

    Fields

    No fields configured for Task.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions