Repository navigation
Description
Summary
disk-hygiene still reads its user-global and project config from ~/.claude and .claude/. Move both to the config-cascade layers.
Current behavior
plugins/disk-hygiene/skills/clean/scripts/hygiene.py:
-
:1073-1076def standing_policy_paths(project_dir: Path | None) -> list[Path]: layers = [Path.home() / ".claude" / "disk-hygiene.json"] if project_dir is not None: layers.append(project_dir / ".claude" / "disk-hygiene.json")
-
:1172project_dir / ".claude" / "disk-hygiene.json"(project layer in the overlay path)
Desired behavior
Per the config-cascade layers:
| Old path | Layer |
|---|---|
~/.claude/disk-hygiene.json |
userConfig: one file-typed option naming the user's policy file, which keeps the overlay's arrays of objects as they are; elevation: uac-prompt stays allowed only from that file or an explicit --policy (owner decision 2026-11-21, Q2 (a)) |
<project>/.claude/disk-hygiene.json |
team: <home>/disk-hygiene.yaml, with a personal <home>/disk-hygiene.local.yaml |
Standing-policy loading reads the contract layers; a file at an old path keeps being read during a dual-read window (see the acceptance criteria) and is reported with a warning. The canonical location list (docs/contracts/config-cascade/locations.md) lands in the docs/config-locations pull request.
Key interfaces
standing_policy_pathsand the overlay-path project layer- The layer provenance the audit reports
Acceptance criteria
- The resolver reads the config-cascade layers (the layers).
- Dual-read window: while an old-path file exists, it is still read and its values still apply where no new-layer file supplies that layer; each run prints one warning naming the old file and the new location to move it to. No setting in an old file is silently dropped.
- Migration ends in one home, never two (owner 2026-11-21: "we don't have dual approaches, and that stuff gets cleaned up"): setup (check/apply) names each old file it finds and, after a preview and a yes, moves it to the new location, sets the
userConfigoption to it, checks the policy resolves the same, then deletes the old file. The dual-read warning names that setup command. - Removing the old-path read is a separate later change, made only once no old file is reported.
- Tests cover: new layer only; old file only (values apply, warning printed); both present (new wins, warning names both).
Out of scope
The killswitch, deep-inventory and destructive-guard code that reads Claude Code's own ~/.claude state, and other plugins' resolvers (one issue each).
Metadata
Metadata
Assignees
Labels
Type
Fields
Work status
Priority
Activity
github-actions commentedon Nov 21, 2026
Size: Medium
Complexity: Medium
Uncertainty: Known
Flags: none
Blocked by: none
Blast radius: disk-hygiene's policy loader, setup flow and tests; users with old-path policy files see a warning and a migration step.
Reversible: yes; revert the change, though a user-approved file move stays done.
Open questions: none
The recorded decision below settles the open questions.
#18009 (comment)
I understood this as: move disk-hygiene's user and project config to the config-cascade layers, keep a dual-read window with a warning, and have setup migrate old files. I found no duplicate or merged fix.
Automated triage. A maintainer reviews it.
melodic-automation-lanes commentedon Nov 21, 2026
{"v":1,"actor_id":337595936,"title_sha256":"85d5254daf4c2268d18e46e8c3fc223c75eaf97e57fb27e9b25c035afdb64f93","body_sha256":"a2b3f13f63c5162884f7eb9ffd51656169198cbecc5f75012ae34a507a4708f4"}
melodic-automation-lanes commentedon Nov 21, 2026
Not admitted to the issue lane: its body was edited after it was deferred, so the admission it was deferred from judged an older body. Admission takes the issue once each of those is met, when intake triages it again (
.github/actions/resolve-config/admission-rules.json).melodic-automation-lanes commentedon Nov 21, 2026
{"v":1,"actor_id":337595936,"title_sha256":"85d5254daf4c2268d18e46e8c3fc223c75eaf97e57fb27e9b25c035afdb64f93","body_sha256":"8c2487331f520e92805626cdb092897f65214660872ce10857ed68145edc3193"}
8 remaining items
melodic-automation-lanes commentedon Nov 22, 2026
{"v":1,"actor_id":337595936,"title_sha256":"85d5254daf4c2268d18e46e8c3fc223c75eaf97e57fb27e9b25c035afdb64f93","body_sha256":"2b3b8356b8d131e14e9d417d89771076c314cd8cdb99a748316092dcc2484f5f"}
melodic-automation-lanes commentedon Nov 22, 2026
This records a re-fire of an earlier stop, not a new one. The start gate stopped run 44983088820, the work-resolve-issue run that
agent-readystarted, before any model turn, because the GITHUB_TOKEN budget was under its start-gate share, or the window was projected to have under its start-project share of the header's limit left by the run's expected end (github-token start-gate, start-project and start-run-minutes in rate-limits.json; the run's start-gate notice names which); that run ended at 2026-11-22T04:31:50Z. work-unblock has now removed and addedagent-readyback to start a fresh run. A budget stop is the lanes' load, not a fault in this issue: it never counts toward limits.limit-stops-per-issue or thekill-switchwait.github-actions commentedon Nov 22, 2026
fix(disk-hygiene): delete a migrated policy file through the engine
fix(disk-hygiene): remove a migrated policy file through the gated ap…