diff options
| author | Morgan Lunt <morganl@anthropic.com> | 2026-09-23 19:18:55 -0700 |
|---|---|---|
| committer | Morgan Lunt <morganl@anthropic.com> | 2026-09-24 17:49:55 -0700 |
| commit | cbba09effc7046cf649b78dc4b84e95cf1a64edd (patch) | |
| tree | aa1a3f30d7e07320042491e7b1319835da52dfc0 /plugins/code-modernization/scripts | |
| parent | 5a8191cd213bd4f4b2a0dd237d450aed029d2752 (diff) | |
code-modernization: harden-scan reports the coverage it lost instead of dropping it
When a verifier agent died, harden-scan dropped its finding: the finding
was neither confirmed nor refuted and nothing in the result mentioned
it. When a finder agent died, its whole vulnerability class vanished the
same way, so a class nobody scanned looked like a class that was clean.
Both also flattered the false-positive rate, which was divided by every
finding, judged or not (issue #6109).
The workflow now pairs each result with its input by position. Finder
classes that returned nothing come back as deadFinders, findings no
refuter judged come back as unverified with a reason, and both are
counted in stats. Neither is in findings, so what counts as confirmed is
unchanged, and the false-positive rate is refuted over judged findings.
When nothing dies the result is identical to before.
modernize-harden now writes a Coverage gaps section under the scorecard
in SECURITY_FINDINGS.md that names the classes not scanned and the
findings not judged, and offers to re-run just those. The workflow takes
them back as optional classes and findings arguments and reports its own
gaps the same way. The agent estimate now states the formula from the
code (5 finders, one refuter per distinct finding, one second judge per
finding still Critical or High) instead of a fixed range.
Diffstat (limited to 'plugins/code-modernization/scripts')
0 files changed, 0 insertions, 0 deletions
