summaryrefslogtreecommitdiff
path: root/plugins/code-modernization/scripts/baseline_diff.py
diff options
context:
space:
mode:
authorMorgan Lunt <morganl@anthropic.com>2026-09-24 21:18:31 -0700
committerMorgan Lunt <morganl@anthropic.com>2026-09-24 21:18:31 -0700
commitfc8adcf13fab336a810a622e8cf7be86be3a183b (patch)
treeda986773092b4bdc9cf2a2d5d18cca07ab9525f8 /plugins/code-modernization/scripts/baseline_diff.py
parent6436c5a81d2b163fe5a1c971b96f211d910bd75a (diff)
code-modernization: fold the same rule found in several files into one
A numeric library implemented in C, in a C++ header and in a fixed-point variant produced three "twiddle factor" rules, two "generic butterfly" rules and two "factorization" rules, because the referee's duplicate key is the file plus the rule's name. The plan and the review then carry noise. After verification, one small agent per 150 rules lists the groups that describe the same behavior implemented in more than one place, told to merge only what would be implemented and tested as one thing. The kept rule cites every place (the renderer shows them as "Also cited") and takes the highest priority of its group; overlapping, out-of-range or self-merging groups are ignored, and the rule list is fenced as untrusted data. The count is reported as stats.consolidated.
Diffstat (limited to 'plugins/code-modernization/scripts/baseline_diff.py')
0 files changed, 0 insertions, 0 deletions