Skip to content

feat(disk-hygiene): make disk-hygiene:clean model-invocable - #10802

Merged
melodic-automation-lanes[bot] merged 6 commits into
mainfrom
work-resolve-issue/issue-9572-40790017883-1
Oct 29, 2026
Merged

melodic-automation-lanes[bot] merged 6 commits into
mainfrom
work-resolve-issue/issue-9572-40790017883-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #9572

Summary

Opened by the work-resolve-issue lane. The run's own summary:

Following the owner's recorded decision on #9572 (with #9853 decided and #5609 closed), /disk-hygiene:clean now sets disable-model-invocation: false, so the Skill tool can load it. Its confirmation gate, preview token, kill switch and guard are unchanged. One rule was added: when Claude loads the skill, an --execute it passes counts as an execution request only when a user message asked for removal. A new eval checks that a model-invoked run stops at the gate. Docs that called clean manual-only were updated, and they now state that the #9853 resume notice covers only a typed /disk-hygiene:clean. Part 2 (auditing a tmpfs /tmp) already shipped in #10028 as --root-children on a mount target.

Not verified

  • Tidy did not run: the change touches shared paths (docs/conventions/, scripts/) and spans 3 areas (plugins/disk-hygiene, docs/conventions, scripts), over the 1-area cutoff.
  • check-affected skipped typos (not installed), changed-skills and three validate-plugins sub-checks (they run code from the checked tree), and it left its listed CI-only checks (evals-schema, skill-leaf-names, line-citations, purged-em-dashes and others) to the PR's CI.
  • Eval 18 was not executed against a live model in this lane; the plugin-eval CI or a person runs it.
  • No build or test suite was run: the change touches only markdown, eval JSON and a registry comment, with no code. The disk-hygiene test suites are left to the PR's CI.
  • Follow-up finding, not in this issue's scope: a clean loaded through the Skill tool writes no clean-invoked marker (that hook is UserPromptExpansion-only), so #9853's resume notice does not cover model-invoked runs, and those runs get no guard-values note (SKILL.md's probe fallback covers that). A P
  • The changelog fragment was written by hand: new-changelog-fragment refused because HEAD is detached. check-changelog-fragments accepted it.
  • Part 2 is taken as met by #10028 on the strength of the owner's recorded decision and the --root-children mount-target support documented in scan-flags.md; #10028's merge was not re-checked from this lane.
  • git status lists untracked dotfiles at the checkout root (.bashrc, .gitconfig, .idea, .mcp.json, etc.). The Read tool reports them as nonexistent, so they appear to be sandbox mount stubs. This run did not create them, and they are not part of the change.

Fix

  • plugins/disk-hygiene/skills/clean/SKILL.md: disable-model-invocation true -> false; the description no longer says manual-only and states that nothing is removed without the user's answer naming one tier and its paths; a Skill-tool load's --execute is an execution request only when a user message
  • plugins/disk-hygiene/skills/clean/evals/evals.json: new eval 18 'model-invoked-run-stops-at-the-confirmation-gate' (Linux, non-mount seeded target): loads clean through the Skill tool, plans one tier, previews, asks the removal question, and runs no apply before the user's own answer.
  • plugins/disk-hygiene/skills/clean/reference/safety-model.md: notes that a Skill-tool load writes no clean-invoked marker, so a resume after it gets no notice.
  • plugins/disk-hygiene/skills/clean/reference/unsupported-platform-handoff.md: the same resume caveat for the manual lane: treat a resumed session as unguarded after a Skill-tool load.
  • plugins/disk-hygiene/README.md: the safety contract now says clean is model-invocable and still gated on the user's answer; the resume-notice gap is stated, and so is the engine gate's ask on apply and handoff-apply; the audit-handoff and docs-reference lines no longer say a person must invoke clean
  • plugins/disk-hygiene/skills/audit/SKILL.md: the description, hand-off and Next lines no longer say only a person invokes clean.
  • plugins/disk-hygiene/skills/audit/evals/evals.json: evals 3 and 4 now expect a route to clean gated on the user's answer instead of 'invoked by a person'; eval 4 allows loading clean through the Skill tool.
  • docs/conventions/invocation-mode/README.md: the verdict-table row for disk-hygiene:clean is FLIPPED -> false by owner decision on #9572; the re-grade section records the flip as the owner's call (not a pass of the D3 test) and keeps the D3 findings; the 'two flips' fleet note gains the third.
  • scripts/skill-leaf-name-registry.txt: the comment no longer calls clean manual-only.
  • .changes/disk-hygiene/feat-9572-clean-model-invocable-4e7a9c21.md: new minor changelog fragment for the change.

Verification

The runner ran each check from the base copy against aca195e:

  • scripts/check-changelog-fragments.sh --check: passed

The run reports:

  • read https: //code.claude.com/docs/en/hooks: UserPromptExpansion 'Runs when a user-typed command expands into a prompt before reaching Claude'; 'a PreToolUse hook matching the Skill tool fires only when Claude calls the tool, but typing /skillname directly bypasses PreToolUse'; skill frontmatter hoo
  • .lane/checks/bin/check-changelog-fragments: all 8 fragments valid (run before and after the review fixes).
  • .lane/checks/bin/check-affected: 11 passed, 7 skipped over 10 changed files (run before and after the review fixes).
  • .lane/verify/bin/check-evals-quality on the clean and audit evals.json: PASS; the 2 warnings are on existing cases 9 and 14, not the new case.
  • Fresh-context review subagent over the whole diff: 1 high, 3 medium and 4 low findings, all fixed (eval 18 retargeted to a seeded non-mount Linux directory, the resume caveat added to safety-model.md and unsupported-platform-handoff.md, the audit evals 3 and 4 wording, the invocation-mode fleet note
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/40790017883

Left out: the items under Not verified.

Related

#9572

Lane-Activity: work-resolve-issue/resolve-issue

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-security-review: 1 inline finding(s) on aca195e5c89ccec1abc582ec957a9dcd732d41c4; the summary is in this lane's pull request comment.

claude-lane: claude-security-review

@github-actions

github-actions Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 8b642575e14c6995341ac35764bf61a20f16c93b: 0 finding(s), 0 as inline comments.

Incremental security review of docs/conventions/invocation-mode/README.md since bf0d64c: no security issues found.

The only change is one line of prose (line 394). "#9853's notice covers both load paths" became "The #9853 notice covers both load paths". It is a wording edit. It does not delete, narrow or soften a standing instruction, and it doesn't touch a trust control, hook, manifest or script. The file matches none of the listed trusted paths, and no protected-class rule is removed.

I did not review the other 14 files of the PR. They are unchanged since the earlier review.

critical-findings: 0

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 1 inline finding(s) on aca195e5c89ccec1abc582ec957a9dcd732d41c4; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 8b642575e14c6995341ac35764bf61a20f16c93b: 0 finding(s), 0 as inline comments.

Incremental review of docs/conventions/invocation-mode/README.md since bf0d64c: no findings.

The only change is a one-line wording edit at line 394. "#9853's notice covers both load paths" became "The #9853 notice covers both load paths". It changes no claim, reference, path or behavior. The file is not on the trusted-paths list, so the trivial-change skip gate applies.

I read only the incremental diff. I did not re-review the other 14 files, which are unchanged since the earlier review. I ran no tools, so nothing here is independently verified beyond reading that diff.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 1 of max 4 on aca195e.

@melodic-automation-lanes melodic-automation-lanes Bot added the needs-human Human-in-the-loop required; autonomous sessions must not resolve items carrying this. label Oct 29, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The pr-unblock lane stopped on this pull request and needs a person: an adjudicator found that a disputed review finding turns on a security judgment, which a person decides.

  • Reason: feedback-question-security
  • Resume key: aca195e5c89ccec1abc582ec957a9dcd732d41c4 (the head the lane stopped on)

To resume, deal with the reason above, remove the needs-human label (and do-not-merge, if set), then dispatch the pr-unblock workflow with pr-number=10802 and activity=address-feedback:

gh workflow run pr-unblock.yml -R melodic-software/claude-code-plugins -f pr-number=10802 -f activity=address-feedback

@melodic-automation-lanes

melodic-automation-lanes Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor Author

The pr-unblock lane stopped address-feedback on this pull request: the pull request has an unresolved review thread the lane does not take (a reviewer it does not act on, a review of an older head, or a thread it already answered), so nothing will resolve it. The lane sets no label: the run ends in a failing pr-unblock/address-feedback status on the head the lane gated.

When a retry on this head can change the outcome, the lane runs one on its own, up to its per-head cap, and edits this comment if it stops again; a run that does not stop clears the status. When no retry can (a review thread the lane does not take or settle, or a failing check after the retries are spent), a person resolves the threads or gets the checks green, then dispatches the workflow below: that run finds the cause gone and clears the status. On a pull request the lanes App opened, the dispatchers start that run once per stop; on any other, a person does. A new commit to the branch starts clean.

To run it again on this head now, dispatch the pr-unblock workflow:

gh workflow run pr-unblock.yml -R melodic-software/claude-code-plugins -f pr-number=10802 -f activity=address-feedback

kyle-sexton and others added 2 commits October 28, 2026 21:21
…otice

A model load of /disk-hygiene:clean goes through the Skill tool, which
fires PreToolUse and not UserPromptExpansion, so it wrote no
clean-invoked marker and a later --resume got no notice.

Add a PreToolUse Skill row that runs run-python-hook.sh with
--launch-marker clean-invoked and a new --only-skill disk-hygiene:clean
filter. With no target script the launcher writes the marker and exits 0
with no output before resolving Python, so the row makes no permission
decision. Tests cover clean writing the marker, other skills writing
none, and the resume notice firing after the Skill row ran.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-security-review: 1 inline finding(s) on 356b44bb5b8e7d2cdd0d8a13c5657cbc7a131bb0; the summary is in this lane's pull request comment.

claude-lane: claude-security-review

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 1 inline finding(s) on 356b44bb5b8e7d2cdd0d8a13c5657cbc7a131bb0; the summary is in this lane's pull request comment.

claude-lane: claude-review

Lane-Activity: pr-unblock/address-feedback
Lane-Thread: PRRT_kwDOTCGFQM6xaTYz
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 2 of max 4 on bf0d64c.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The pr-unblock lane stopped on this pull request and needs a person: a disputed review finding is one only a person decides (a security-review or CRITICAL finding, one no known review lane wrote, or a thread a person directed).

  • Reason: feedback-disputed
  • Resume key: bf0d64cab329567a40003089c1243b6bb725a8ed (the head the lane stopped on)

To resume, deal with the reason above, remove the needs-human label (and do-not-merge, if set), then dispatch the pr-unblock workflow with pr-number=10802 and activity=address-feedback:

gh workflow run pr-unblock.yml -R melodic-software/claude-code-plugins -f pr-number=10802 -f activity=address-feedback

@kyle-sexton kyle-sexton removed the needs-human Human-in-the-loop required; autonomous sessions must not resolve items carrying this. label Oct 29, 2026
@melodic-automation-lanes

melodic-automation-lanes Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head bf0d64cab329567a40003089c1243b6bb725a8ed. The lanes clear this reason on their own; the next scheduled run judges it again.

pr-merge's gate refuses its verifier verdict (verify:missing)

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head 8b642575e14c6995341ac35764bf61a20f16c93b.

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Oct 29, 2026
Merged via the queue into main with commit 40e31ab Oct 29, 2026
41 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-9572-40790017883-1 branch October 29, 2026 15:53
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.

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

1 participant