Skip to content

Keep stored evaluations usable when severity is missing - #16

Merged
cynkai merged 4 commits into
mainfrom
codex/retain-results-without-severity
Dec 1, 2026
Merged

cynkai merged 4 commits into
mainfrom
codex/retain-results-without-severity

Conversation

@cynkai

@cynkai cynkai commented Dec 1, 2026

Copy link
Copy Markdown
Owner

Changes

Stored evaluations with an absent severity column, missing cells, numeric text, or infinite values could prevent the dashboard from opening and disable all exports. The report now computes severity from finite measurements on evaluated rows and records the denominator in severity_count. A measured zero remains usable. With no severity measurements, the grade and score are unavailable. Verdict counts, breach rate, and measured CVSS still work.

The dashboard, JSON and PDF preserve comparable before/after rates when score and severity changes cannot be calculated. The report also identifies incomplete severity coverage.

Finding IDs are assigned by ranked row position so duplicate DataFrame index labels cannot give a SAFE or ERROR row another row's ID. The original index and order are preserved, including when neither score column exists.

Verification

  • The old KPI entry point raised four distinct exceptions on neutral stored rows. Reopening those cases now preserves the two evaluated verdicts, 50% breach rate, and a measured CVSS of zero.
  • Opened and rendered the actual PDF. It reports zero severity measurements out of two and a verified drop from 50% to 0% in breach rate. Score and severity deltas remain unavailable.
  • Streamlit tests exercised CSV, strict JSON and PDF downloads. Recomputed IDs for both 25-row published fixtures, retaining the previous finding order and assignments.
  • Verified the full pinned local test suite, Pyflakes and the diff whitespace check.

@cynkai
cynkai merged commit f4b42c7 into main Dec 1, 2026
2 checks passed
@cynkai
cynkai deleted the codex/retain-results-without-severity branch December 1, 2026 20:39
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