docs(claude): non-exact rules/ neither purges orphans nor flags them#301
Merged
Conversation
Session distill from the 2026-07 context diet: moving or deleting a rule from exact_dot_claude/rules/ leaves the old target orphaned in ~/.claude/rules/ (still loading every turn) with no chezmoi status D line, because exact_ semantics stop at the directory carrying the prefix. Document the manual target cleanup and the inverse unmanaged-file sweep in chezmoi-conventions.md. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RVnFBnQFMWKgd8h4kTCjZy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Session distill from the #300 context diet: document in
.claude/rules/chezmoi-conventions.mdthat non-exact_subdirs neither purge orphaned targets nor flag them — the flip side of the existing per-directory-level note.exact_dot_claude/rules/leaves the old target orphaned in~/.claude/rules/, still loading into every session, with noDline inchezmoi statusto reveal it. Manual target cleanup +chezmoi source-pathverification documented.Both directions bit during the #300 diet (7 orphaned targets after the wave-1 moves; one 4.7 KB unmanaged rule found loading invisibly).
Why not in #300
The commit was authored on the #300 branch during session wrap-up, but the PR had already been squash-merged — pushing would have orphaned it (hazard #2 in the freshly consolidated
git-hazards.md, fittingly). Cherry-picked onto a fresh branch fromorigin/main.🤖 Generated with Claude Code
https://claude.ai/code/session_01RVnFBnQFMWKgd8h4kTCjZy