diff options
| author | Craig Jennings <c@cjennings.net> | 2026-07-27 13:13:09 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-07-27 13:15:14 -0500 |
| commit | 7ea1d7b1402eb68a13479f8073b84819c1d59ec8 (patch) | |
| tree | aef0ae30760f04db3d99bc2305b46f52d3c295a5 /languages/elisp/claude | |
| parent | 0adcb1afcf64a4638f110a3ab0c616c48d86ba4f (diff) | |
| download | rulesets-7ea1d7b1402eb68a13479f8073b84819c1d59ec8.tar.gz rulesets-7ea1d7b1402eb68a13479f8073b84819c1d59ec8.zip | |
fix(rules): stop shipping generic rules into every project
Generic rules install once at ~/.claude/rules/ and load in every session on the machine. The language bundles copied all twenty into each project as well, so work and .emacs.d loaded them twice. Project rules outrank user-level ones, which makes it worse than waste. A stale project copy overrides the fresh global rule until the next startup heals it, and that is what happened to work's interaction.md this morning for the hours between the commit and its next session.
I stopped install-lang copying them. sync-language-bundle now sweeps the copies earlier installs left, but only where the global rule exists to take over. A machine that hasn't run make install keeps the only copy it has. I swept 20 files each from work and .emacs.d, leaving their language rules and work's publishing overlay untouched.
I updated three existing tests that encoded the old contract. The generic-rule drift test is the interesting one: I made a drifted copy get swept rather than repaired, which is the stronger fix, because that copy outranked the global rule for as long as it existed.
I also gitignored the live session anchor. This repo tracks .ai/, so the anchor read as untracked for a whole session. git-worktree-gate reported rulesets sync-blocked, and every other project skipped its rulesets pull until wrap. The anchor is ephemeral and gets archived under a different name, so nothing needs it tracked.
Diffstat (limited to 'languages/elisp/claude')
0 files changed, 0 insertions, 0 deletions
