Repository navigation
Closed
Labels
priority/p0-criticalPriority P0: a release blocker or a critical defectscope/reviewMulti-persona code review engine, verification, and findingstype/bugType bug: the code does not do what it must
Milestone
Description
Part of #509.
Problem
Findings are lost between the model's reply and the report, with no model involved and no trace left:
- Scanner findings overwritten (
pipeline.py:1622):payload.findings = consolidate_duplicate_findings(file_findings)replaces the Gitleaks, Bandit, Semgrep, Trivy and OSV findings seeded atpipeline.py:1273-1285with the persona findings alone. The error paths (:1629, 1730, 1864, 1879) setpayload.findings = []. - Whole-reply parse loss (
review_schema.parse_review_response): one malformed field returnsNonefor the whole reply. Reproduced with a valid SQL-injection finding plus"external_dependencies": ["requests"]. The same happens with wrapper keys ({"issues": [...]}), stray{}in prose, and a literal<think>in a finding, which truncates the reply. - Different defects merged (
_are_findings_duplicate,_merge_two_findings): titles with Jaccard ≥ 0.5 merge at any line. Reproduced: "Missing timeout" with "Missing authorization check", and two "Hardcoded secret" findings at lines 5 and 90. The merge keeps the first location and can mix a verified status with an invalidated finding's severity and description. - Titles blanked (
sanitize_finding_text): "Looks good overall, but token is logged in plaintext", "Checking of token expiry is missing" and "Verification criteria list is never deduplicated" become empty and are dropped. - Model-set status trusted: a persona reply with
"status": "INVALIDATED"or"MITIGATED"skips verification and is filtered out. - Redaction rewrites code (
mask_secretson review pages):password = hashlib.md5(pw.encode()).hexdigest()becomespassword=<masked-password>, andtoken = req.query.tokenbecomestoken=<masked-token>. - Severities flattened:
BLOCKER,P0andSEVEREbecome MEDIUM.
Acceptance criteria
- Each case has a test that reproduces the loss first.
- Scanner findings reach the report alongside persona findings.
- A reply keeps every valid finding.
- Distinct defects stay distinct.
- Redaction masks secret values only, never code.
Metadata
Metadata
Assignees
Labels
priority/p0-criticalPriority P0: a release blocker or a critical defectscope/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
docs(roadmap): focus v0.2.23 on devops ai and plan multi-language val…
docs(roadmap): focus v0.2.23 on devops ai and plan multi-language val…
fix(review): keep findings the pipeline lost before the report (#517)
dan-petty commentedon Sep 24, 2026
Closed by #517, merged into
release/v0.2.23.GitHub only acts on closing keywords when a pull request merges into the default branch, so this was closed by
devops gh issues close-merged.test(review): regression harness keeps real defects reported and fals…
feat(release): v0.2.23 (#681)