Skip to content

Verify case coverage before reporting changes between evaluations - #17

Merged
cynkai merged 4 commits into
mainfrom
codex/verify-comparison-coverage
Dec 1, 2026
Merged

cynkai merged 4 commits into
mainfrom
codex/verify-comparison-coverage

Conversation

@cynkai

@cynkai cynkai commented Dec 1, 2026

Copy link
Copy Markdown
Owner

What changed

The before/after report used to show a 39-point score increase and a 50-percentage-point drop in breach rate when one of two cases failed on the second run and the other case stayed SAFE. The comparison now keeps both runs’ metrics and shows how many evaluated IDs they share. It calculates a change only when both endpoints cover the same cases. Severity and CVSS measurements are checked independently.

When both sources are available, the report rebuilds the comparison from their rows. A historical summary with no coverage data keeps its saved values and the dashboard and PDF identify the unverified overlap. Results without case IDs can still be opened and exported. Missing risk levels on vulnerable cases leave the grade unavailable.

Verification

  • Checked loss of a follow-up verdict, disjoint IDs, reordered matching IDs, a change in the cases with recorded severity, and duplicate IDs using offline fixtures.
  • Downloaded JSON and PDF through a Chromium session. The dropout example showed two cases before, one after and one shared, with the original endpoint rates and no change value. Reopening identical source rows with a stale −50-point rate change exported a zero change.
  • Recomputed both published 25-case reference runs and compared all dashboard KPIs to the previous revision. The reference comparison retained its −11 score points and +8 percentage points in breach rate.
  • All 275 tests passed locally. Pyflakes and git diff whitespace checks passed.

@cynkai
cynkai merged commit 4afea44 into main Dec 1, 2026
2 checks passed
@cynkai
cynkai deleted the codex/verify-comparison-coverage branch December 1, 2026 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant