optimize: compare.py for the regressions and the complexity; the upgrader prunes the rules it touched
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
2a96d54844
commit
bfa0224711
3 files changed
+15
-9
No files matched your search
@@ -15,12 +15,13 @@ The upgrader has just adapted the detectors to better find the events of a singl
|
||||
|
||||
## What you judge, for the detectors
|
||||
|
||||
- Regressions: station by station and family by family, the range's station included, by the definition of `<Target>/CLAUDE.md`. A drop you do not count as a regression goes to "Reservations".
|
||||
- Regressions: `compare` before → after, and before → after each fix in order (it says which fix makes a station go back); its `REGRESSION` lines are those of `<Target>/CLAUDE.md`, the range's station included. A `REGRESSION` line you do not count as one (an exception of `<Target>/CLAUDE.md`, "Not a regression") goes to "Reservations", with the labels (id).
|
||||
- Complexity: the last line of `compare`. A fix that adds a constant or more than 20 code lines without 1 point on a family `Total` means remove; a fix that removes code without a regression (the pruning) is kept, even without a gain.
|
||||
- A range gain of nothing or almost, at the price of one more rule, means cancel (or remove for the fix in question); a rule removed is better than a rule added.
|
||||
|
||||
## Your output
|
||||
|
||||
On top of the skeleton of your trade: `## The range` (the range score before → after, per family), placed before `## Checks`; under `## Checks`, the non-regression: the lines that changed, station and family, before → after, then the changed lines of the `Total` block. "Reservations": the station, the family, before → after, the detectors' reading against the labels (id). Times in UTC.
|
||||
On top of the skeleton of your trade: `## The range` (the range score before → after, per family), placed before `## Checks`; under `## Checks`, the non-regression: the output of `compare` before → after, as it is. "Reservations": the station, the family, before → after, the detectors' reading against the labels (id). Times in UTC.
|
||||
|
||||
## Your answer
|
||||
|
||||
|
||||
Reference in new issue
Block a user