Artifact eb4dddf86364ace2fe9a3a3b28a457b95fa348e4b99fb9fcc7a07d48c109cec8:
- File
src/ctx.c
-
2026-11-19 17:07:11
— part of check-in
[35bb724e4f]
on branch rule-redundancy
— Reduce rule redundancy: covered-by-global retirement, identical-copy collapse, global-rule offers, restore
A benchmark on real rules found reworded duplicates inside a project are rare; the redundancy is project rules that restate the global CLAUDE.md, identical copies, and one rule saved in several projects.
- ctx rules restore KEY undoes any retirement or replacement, and neither automatic check retires that rule again while its text and the global text are unchanged. - Identical copies in one project collapse after each import (frontmatter and spacing ignored); a copy comes back when the rule it was collapsed into leaves force. - ctx rules covered sends active project rules to the automatic judge in bounded batches and retires one only with a verbatim quote of at least 20 characters from the global CLAUDE.md; the rule comes back when the quote leaves the global text, and a verdict is skipped if the rule changed during the call. - The decisions page offers groups of the same rule in several projects as one global rule; make global acts only on the listed keys, needs two projects, and refuses CLAUDE.md, AGENTS.md, global rules and rules with an until date. - ctx rules activity lists collapses, covered retirements and restores. tools/rule_redundancy.sh reports what each step would do on a copy of an archive.
On a copy of the live archive: 380 active rules, 3 retired as covered, 0 identical copies, 10 cross-project groups offered. (user: dmestas, size: 592855) [annotate] [blame] [check-ins using]
- 2026-11-19 17:17:42 — part of check-in [0f26acda1d] on branch trunk — Reduce rule redundancy: covered-by-global retirement, identical-copy collapse, global-rule offers, restore (user: context-bot, size: 592855) [annotate] [blame] [check-ins using]
-
2026-11-19 17:07:11
— part of check-in
[35bb724e4f]
on branch rule-redundancy
— Reduce rule redundancy: covered-by-global retirement, identical-copy collapse, global-rule offers, restore