summaryrefslogtreecommitdiff
path: root/plugins/code-modernization/scripts/baseline_diff.py
diff options
context:
space:
mode:
authorMorgan Lunt <morganl@anthropic.com>2026-09-24 20:52:33 -0700
committerMorgan Lunt <morganl@anthropic.com>2026-09-24 20:52:33 -0700
commit9b4b9865f5e6a07ced1f436972dc76d2c4022749 (patch)
treee553bb05efbd3d7dc5f590905290dd70312072c0 /plugins/code-modernization/scripts/baseline_diff.py
parent51b1ae9e20486d62b839ed9f37e1cfc7d55bf85c (diff)
code-modernization: keep rule extraction proportional to the code
On a roughly thousand-line C utility the whole-estate extraction ran four rounds, spawned 223 agents and returned 141 rules (31 of them P0), because a model can always find one more micro-behavior in a small program and the loop only stopped when a round found nothing at all. Every extractor now gets the same instruction on how fine to cut a rule: one per business decision or calculation, not per branch or field, skipping plumbing, roughly one per 40 to 80 lines of real logic, and rating P0 only for the few rules that would defeat the system's purpose. The whole-estate loop defaults to two rounds and stops when a round adds under 15% of what is already catalogued.
Diffstat (limited to 'plugins/code-modernization/scripts/baseline_diff.py')
0 files changed, 0 insertions, 0 deletions