Skip to content

docs(claude): non-exact rules/ neither purges orphans nor flags them#301

Merged
laurigates merged 1 commit into
mainfrom
docs/chezmoi-nonexact-orphan-note
Jul 5, 2026
Merged

docs(claude): non-exact rules/ neither purges orphans nor flags them#301
laurigates merged 1 commit into
mainfrom
docs/chezmoi-nonexact-orphan-note

Conversation

@laurigates

Copy link
Copy Markdown
Owner

What

Session distill from the #300 context diet: document in .claude/rules/chezmoi-conventions.md that non-exact_ subdirs neither purge orphaned targets nor flag them — the flip side of the existing per-directory-level note.

  • Moving/deleting a source file out of exact_dot_claude/rules/ leaves the old target orphaned in ~/.claude/rules/, still loading into every session, with no D line in chezmoi status to reveal it. Manual target cleanup + chezmoi source-path verification documented.
  • The inverse leak too: a rule created directly in the target is never captured to source and silently loads forever — includes the unmanaged-file sweep one-liner.

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 from origin/main.

🤖 Generated with Claude Code

https://claude.ai/code/session_01RVnFBnQFMWKgd8h4kTCjZy

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
@github-actions github-actions Bot added documentation Improvements or additions to documentation size/s labels Jul 5, 2026
@laurigates laurigates merged commit dac2379 into main Jul 5, 2026
8 checks passed
@laurigates laurigates deleted the docs/chezmoi-nonexact-orphan-note branch July 5, 2026 06:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/s

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant