Repository navigation
Description
Problem
review.md hides why a finding has no verdict and what severity it was raised with. It also counts reported findings on two bases, and the profile uses the larger one. Checked at da50329.
Notes and raw severity are not rendered. _build_detailed_findings_section (src/devops_cli/ai/review/pipeline.py:3401-3424) writes Location, Persona and Status, a Mitigation line for MITIGATED findings, then Description and Fix. The summary table (:3378-3398) has Severity, Location, Title, Status and Persona. The console detail panel (:3729-3765) has the same fields, plus invalidation_reason. None of them shows verification_note, severity_raw or verified_by, although findings.json and candidates.json carry all three. In S8 (.data/reviews/20261003-012555):
- 16 of the 24 reported findings are UNVERIFIED, and all 16 carry a note. 7 say
verifier-reply-cut, 8 say "Refutation cited line N does not contain cited construct tokens; downgraded to UNVERIFIED", and 1 saysverifier-inconclusive. review.md contains none of them. S7 (-005122) is the same: 16 of 16 noted, 0 in review.md. So is S9 (-021501, run at da50329): 18 of 18 noted, 0 in review.md, and 7 of its 22 findings carryseverity_raw. - 6 of the 24 carry
severity_raw.pricing.py:55and:65went from HIGH to MEDIUM, three test findings from HIGH to LOW, andqdrant.py:18from MEDIUM to LOW. review.md shows only the lowered value. - The 16 UNVERIFIED rows look alike. But the cut ones were never judged, and the guard ones were refuted and the refutation was set aside. A reader cannot tell which to re-run or re-judge.
Counts on two bases.
_record_profile_findings(src/devops_cli/ai/review/runner.py:2056-2066) countsverifiedandreportedover every finding in the payloads. It is called atrunner.py:2196, before the report stage.generate_consolidated_reportthen merges duplicates (_collect_and_deduplicate_findings,pipeline.py:3311-3320). It writes the merged list to findings.json (:4118-4119) and to review.md's summary (:4131,:3601).- review.md's Verdict Field Distributions table (
:3513-3519, called at:3630) and its Category table (:3624-3626) count the candidates before the merge. Neither heading says so. - In S8, profile.json has
reported_findings25, and findings.json holds 24. review.md says "Total Findings: 24" and "16 unverified". Further down it saysReportabletrue: 25andUNVERIFIED: 17. The difference is thesettings.py:19pair, merged into one finding. - 36 sessions under
.data/reviewshave both files, S9 included. In 16 of them the two counts differ: by 1 in 15 sessions and by 2 in one. In all 16, the profile count equals the reportable, non-INVALIDATED candidates, and findings.json holds them merged. S9 at da50329 has 23 against 22. The profile's figure is what review profile comparisons read (median_reported_findings,src/devops_cli/ai/review/profile.py:455).
Acceptance criteria
- In review.md's Detailed Findings, a finding's block shows its
verification_noteafter Status when it has one, for example- **Verification note**: verifier-reply-cut. - A finding whose
severity_rawdiffers from its severity shows both in its block, for example- **Severity**: MEDIUM (raised as HIGH). The summary table keeps the one calibrated severity it is sorted by. - A VERIFIED or MITIGATED finding's block shows
verified_by. - The console detail panel (
pipeline.py:3729-3765) shows the same three lines. - profile.json's
reported_findingsandverified_findingscount the findings that findings.json holds, after duplicates merge.candidate_findingsandverdict_distributionskeep counting candidates. - review.md's Verdict Field Distributions and Category tables state under their heading that they count candidates, INVALIDATED included, and how many. They also say how many reportable candidates the merge folded, for example "49 candidates. 25 reportable candidates were merged into 24 findings."
- A test builds a report from candidates where two reportable findings merge into one. One UNVERIFIED finding has a note, and one has
severity_rawHIGH over MEDIUM. The test asserts that review.md's Total Findings, the length of findings.json'sfindingsand profile.json'sreported_findingsare equal. It asserts that the note and the raw severity appear in their findings' blocks, and that the distribution table names the candidate count and the merge. It fails on the current code (profile 2 against 1, no note, no raw severity). - A test renders a fixture under
tests/fixtures/, S8's findings.json trimmed to the fields the report renders. Its review.md holds 16 notes and 6 raw severities. It fails on the current code, which renders 0 of each. - The tests run offline, call no model, and each runs well under 1 s.
-
changelog.d/1046.mdrecords the fix under### Fixed.CHANGELOG.mdis not edited. -
uv run devops cipasses. - (person-run) After the next branch review, every UNVERIFIED row in review.md shows its note, and profile.json's
reported_findingsequals the length of findings.json'sfindings.
Key questions
- Should the distribution and category tables count the merged findings instead of the candidates? (proposed) No. They measure the verifier and the categories over every candidate, INVALIDATED included, and the merged list drops those. Naming the base and the merge is enough to remove the contradiction.
- Should the known note kinds be put into plain words? (proposed) No. Render the note as written. The kinds already read as words (
verifier-reply-cut), and the free-text notes are sentences. A label table would be one more place to keep in step withCONST_VERIFICATION_NOTE_KINDS(src/devops_cli/config/constants.py:2919-2927). - Should the block show which rule lowered the severity? (proposed) No, not here. Calibration records only the raw value (
src/devops_cli/ai/review/calibration.py:128), and a verifier's lower severity is stored the same way. Naming the rule needs calibration to record it, which is a separate change. The raw value already tells the reader that the severity was lowered. - Should
verified_bybe shown? (proposed) Yes. Since fix(review): criteria commands run in the reviewed project's environment with a measured python timeout #847 (da50329), a criteria verdict is final, and since fix(review): the report ranks verified findings first, keeps only scanned advisories, and uses one category taxonomy and calibrated severity #948 VERIFIED rows rank first.llmandcriteriaare the values a reader needs to tell apart. In S8 all 8 VERIFIED findings arellm. - Should the console panel change too? (proposed) Yes. By default it prints for HIGH and above (
pipeline.py:3664-3665), which are the findings a person triages first, and it is built from the same finding. - Does this belong in refactor(review): report rendering leaves the orchestrator #1008? (proposed) No. refactor(review): report rendering leaves the orchestrator #1008 moves the report rendering out of the orchestrator, and a golden test pins the output as unchanged. This item changes the output.
Depends on: none.
Order: if both land in one release, land this before #1008, so that #1008's golden test captures the new lines. #1013 (v0.2.29) adds an unparsed-files line to review.md, and whichever lands second rebases. #995 (no milestone) changes who writes findings.json, and the count criterion holds whichever lands first.
Related: #846 (every UNVERIFIED finding carries a note). #948 (added severity_raw, calibration and the VERIFIED-first ranking). #1008 (report rendering leaves the orchestrator). #1021 (the scope proposed for it on 2026-10-03 gives the construct guard's note its own kind and stops a rejected verdict from writing severity_raw; this item renders whatever the finding carries). #771 (the session store that will own findings.json and profile.json). #816 (another profile count, cached_calls).
Scope added 2026-10-03 from review session 20261003-021501 (S9; .data/review-evaluation-20261003-s9.md, section 6): review.md:5 explains three files whose verification raised an AttributeError as "AI provider offline or communication failure", and the persona page cut at its cap (project-template.json, unparsed) is not listed.
- review.md names the error a file's verification raised (masked), not a generic provider failure, and lists every persona page that ended cut or unparsed.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
dan-petty commentedon Oct 3, 2026
What S10 adds (review session
20261003-034353, release/v0.2.25 at d6ebe97;.data/review-evaluation-20261003-s10.md, section 4).profile.jsoncounts 41 noted UNVERIFIED findings: other 18,verifier-inconclusive17,verifier-reply-cut3 andverifier-self-refutation3.yaml.kubernetes.security.*onk8s/llm/profiles/ollama-profiles.yaml:50and:33. Both are valid (fix(review): the scanned-clean check invalidates only claims about a dependency's own advisories #1044, fix(k8s): the ollama tier DaemonSets drop privilege escalation and capabilities, use RuntimeDefault seccomp and a read-only root filesystem, and run as non-root where the model directory allows #1060), and a reader can't see that they were removed.no-read-only-root-fsrows and the 16 falsedangling-servicerows share the title[kube-linter-check] K8s Security Lint Warningand the status UNVERIFIED. Neither shows a note in review.md; only their descriptions differ ("read-only root file system" vs "no pods found").verdict_distributions.reportable.true), while findings.json and the headline hold 47 (D6 again).dan-petty commentedon Oct 3, 2026
Frozen by the evidence-first review redesign (#1137, owner direction of 2026-10-03): patches to the model generator and verifier stop, and tool-layer fixes continue. This item (review.md and profile.json counting on two bases; its count invariant (profile.json = findings.json) is already a criterion of #871) is superseded by #871, re-scoped on 2026-10-03 as the redesign's single admission step: findings carry their producer's anchor, a location checked against the reviewed commit, severity from the tool and a policy table, and suppressions read at the base revision.
It stays open, labelled
status/blocked, and closes as not planned with "Superseded by #871" when #871 lands. Merging it into #871 now was proposed by the consolidation; that is left to a person.dan-petty commentedon Oct 8, 2026
Closing as not planned: superseded by #871 (PR #1278, v0.2.28), as the 2026-10-03 freeze comment and #1137's table say. The count half is delivered: the report step sets profile.json's reported count to the number of findings it writes (
ai/review/pipeline.py:4912-4917at release/v0.2.29). The rendering half (verifier notes,severity_raw,verified_by) goes away with #1150 and #1151, which delete what produces those fields.Found by the 2026-10-08 backlog review.