diff options
| author | Morgan Lunt <morganl@anthropic.com> | 2026-09-24 21:18:31 -0700 |
|---|---|---|
| committer | Morgan Lunt <morganl@anthropic.com> | 2026-09-24 21:18:31 -0700 |
| commit | fc8adcf13fab336a810a622e8cf7be86be3a183b (patch) | |
| tree | da986773092b4bdc9cf2a2d5d18cca07ab9525f8 /plugins/code-modernization/commands | |
| parent | 6436c5a81d2b163fe5a1c971b96f211d910bd75a (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/commands')
| -rw-r--r-- | plugins/code-modernization/commands/modernize-extract-rules.md | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/code-modernization/commands/modernize-extract-rules.md b/plugins/code-modernization/commands/modernize-extract-rules.md index 271c6776..4381c11a 100644 --- a/plugins/code-modernization/commands/modernize-extract-rules.md +++ b/plugins/code-modernization/commands/modernize-extract-rules.md @@ -146,5 +146,6 @@ confirmation** section listing each Medium and Low rule with its question. ## Finish Report: total rules, breakdown by category, how many need SME review, and (Method A) how many -candidates the referees rejected: that number is the quality the verification bought. Refresh the +candidates the referees rejected: that number is the quality the verification bought, and how many rules were +folded together because they described the same behavior in more than one file (`stats.consolidated`). Refresh the report: `python3 "${CLAUDE_PLUGIN_ROOT}/scripts/build_report.py" $system` (a convenience: if it fails or `python3` is missing, say so in one line and carry on). The next step is `/code-modernization:modernize-review $system` when rules are flagged for a person (P0 rules with a suspected defect, an SME question or less than High confidence: give the count), then `/code-modernization:modernize-brief $system <target-stack>`; with none flagged, go straight to the brief. |
