Repository navigation
fix(panicbot): report panic-attack's own severity to the verdict grid - #726
Conversation
panicbot printed the fleet severity word on `--format json scan`. The fleet Severity has no critical level, and the grid reads `error` as high, `warning` as medium and `suggestion` as info. So every finding read one level milder in panicbot's row than in panic-attack's own row, though both ran the same panic-attack revision. A Critical could never reach the grid as critical. Each finding translated from a weak point now reports panic-attack's own word (critical, high, medium, low) in `severity`, with the fleet word kept in `fleet_severity`. Findings with no panic-attack severity (suite parts) keep the fleet word. The fleet Severity is unchanged, so blocks_release, the exit code and guardian mode behave as before. Tests: every level, the #1709 critical/high shape, case handling, the fallback, and an end-to-end scan through a stub panic-attack.
|
Review these changes at https://app.gitnotebooks.com/hyperpolymath/gitbot-fleet/pull/726 |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
The grid severity e2e test copied the stub and scan helpers from envelope_parity_test.rs, which SonarCloud counted as duplicated new code. It now lives in envelope_parity_test.rs and reuses those helpers, with a stub_body_with_report helper behind full_stub_body.
d90d86d to
a078f49
Compare
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|



Problem
The 26 Nov grid had panicbot and panic-attack both on cbf2b935, yet their rows disagreed on 11 of 37 PRs.
panicbot printed the fleet severity word on
--format json scan. The fleetSeverityhas four levels and no critical. The grid'snorm_sev(standardsscripts/lib/verdict-grid.jq) reads:So every panicbot finding read one level milder than in panic-attack's own row. A Critical could never reach the grid as critical.
Note: the hand-off said #1709 read critical in panicbot and high in panic-attack. The code gives the reverse. I have asked hypatia-rules for the raw rows to confirm which column was which.
Fix
translator::report_severity: a finding translated from a weak point reports panic-attack's own word (critical, high, medium, low). A finding with no panic-attack severity (a suite part) keeps its fleet word.translator::findings_for_report: the JSON scan output puts that word inseverityand keeps the fleet word infleet_severity.Severityis unchanged.blocks_release, the exit code and guardian mode behave as before. Thefleetsubcommand output is unchanged.Evidence
cargo testinbots/panicbot: all pass. New tests cover every level, the #1709 critical/high shape, case handling, the fallback, and an end-to-end scan through a stub panic-attack (tests/grid_severity_parity_test.rs).cargo fmt --checkis clean, andcargo clippy --all-targetshas 0 warnings.tests/fleet-report-back-test.shwithSTANDARDS_DIRset to standards 540331a: 243 passed, 69 passed.verdict-grid.sh render, with the same 4 weak points on both rows:Draft for the owner to decide. Not to be merged or marked ready by a session.
Generated by Claude Code
Summary by CodeRabbit