Repository navigation
Closed
Labels
priority/p1-highPriority P1: high-impact work for the next planned milestonescope/reviewMulti-persona code review engine, verification, and findingstype/bugType bug: the code does not do what it must
Milestone
Description
Summary
Found in the release/v0.2.23 review (line numbers at 7fdaa9d).
devops review pr <n> --post always posts "Zero findings identified.", even when review.md lists a verified HIGH finding. The comment is 153 characters and contains none of the findings.
Two related symptoms:
- The
FINDINGS_TOTALmetric is never emitted. - The comment's "Analyzers:" line lists tools found on
PATHor implied by file suffixes, not the analyzers that actually ran. It still claims "Gitleaks" under--no-static-scanor--dry-run.
Root Cause
_make_review_clientsalways builds anLLMClient, so reviews take the orchestrator path. That path returns the consolidated Markdown report as a plain string (src/devops_cli/ai/review/runner.py:2027-2029)._has_review_findings(runner.py:507-520) only recognisesReviewResultobjects or JSON blocks with afindingskey.format_pr_review_commenttherefore always takes the zero-findings branch (:622-625)._record_review_metricscounts onlyReviewResultfindings, so the orchestrated path emits no findings metric.- The analyzer list (
runner.py:545-564) is inferred from binaries onPATHand file suffixes, not from the static-scan stage results. tests/test_review_pr_post.pyonly feeds mockedReviewResultobjects, so it never exercises the real report shape.
Remediation Plan
- Have the orchestrated path hand the structured findings to the PR comment formatter and to the metrics recorder alongside the Markdown report.
- Build the "Analyzers:" line from the stages and scanners that actually ran.
- Add tests that post from real
_build_consolidated_markdown_reportoutput:- a verified HIGH finding appears in the comment;
FINDINGS_TOTALis recorded;--no-static-scanlists no scanners.
Metadata
Metadata
Assignees
Labels
priority/p1-highPriority P1: high-impact work for the next planned milestonescope/reviewMulti-persona code review engine, verification, and findingstype/bugType bug: the code does not do what it must
Type
Projects
- StatusShow more project fieldsDone
Activity
fix(review): remediate response repair, review pipeline and verifier …