Repository navigation
Closed
Labels
enhancementNew feature or request
Description
This was generated by AI during triage.
Problem
When a Security run audits and then fixes a finding in the same pass, its Run notification reads as if the merged pull request resolved every listed Security finding. It resolved only one.
A real notification from 2026-10-22 had this shape (the repository and findings are left out because the unfixed ones are still private):
Result: merged
Command: Security run
Audit: PR https://github.com/<owner>/<repo>/pull/26 is merged
Security findings:
- medium: <title>: <advisory URL>
- high: <title>: <advisory URL> <- the only one PR #26 fixed
- ... 5 more ...
Pull request: https://github.com/<owner>/<repo>/pull/26
The Day shift asked whether all seven were resolved by the PR. Six still wait for triage.
Why it happens
src/security.rs:198-213: afteraudit_and_record, whennext_fix()returns a finding, theOutcome::Fixedfromfix()has itsfindings(just the fixed one,vec![metadata]atsrc/security.rs:271) replaced withaudited.findings, which is every finding the audit recorded.- When the Security run fixes a previously recorded finding without auditing (
src/security.rs:177-183),findingsis just the fixed one. So the same layout means two different things depending on the path the run took. src/run_ending.rs:37-40andsrc/notification.rs:272-306: forEnding::SecurityFix, theAudit:line shows the fix Run's ended line ("PR … is merged"), not how the audit ended, and the findings list has no per-finding status.
Wanted
The notification body alone should let the Day shift tell:
- which finding, if any, the dispatched fix's pull request addresses (by its private link; still never its write-up)
- which listed findings were only recorded by this run's audit and are still waiting for the Day shift
- how the audit itself ended, separately from how the fix Run ended
This applies to both paths, audit-then-fix and fix-without-audit, and to a fix Run that failed or was interrupted (the finding was attempted, not fixed).
Open for triage
- Exact layout: a status per finding (for example
- high (fixed by PR #26): …), or separateFixed:andRecorded, waiting:sections. - Whether the
Audit:line should say "findings recorded" or "not run" on a fix-only pass, with the fix's ending moved to the existingPull request:andResult:lines. - Whether the Activity log end line and the Console/Inbox (
src/logs/status/inbox.rs:348) need the same distinction; they read the samesecurity_findings.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or request
Activity