Skip to content

fix(review): review pr --post --no-reporting posts zero findings and metrics lose the persona #791

Closed

Description

@dan-petty

Context & Rationale

ai/review/runner.py:2085-2094 builds the PR comment's ReviewResult from the report payload. As a result, review pr --post --no-reporting posts "Zero findings identified." and records no FINDINGS_TOTAL; both were reproduced. In the same block, Finding(**f) (ai/review/runner.py:2086) drops persona, so every finding metric carries the one default persona.

The tests added with the #657 fix pass on 1ad24ac. One builds the ReviewResult by hand (tests/test_batch_2_review_defects.py:112), one passes static_analyzers={} explicitly (:148), and tests/test_telemetry_instruments.py:169 builds its input by hand. Found while checking the #657 fix.

Scope & Deliverables

  • Deliverable:
    • The comment and the finding metrics are built from the verified findings, whether or not the reporting stage runs.
    • persona is kept.
    • Tests feed real _run_orchestrator_review output into the comment and the metrics, both with and without --no-reporting and with --no-static-scan.
  • Constraint: the analyzer line keeps showing only the scanners that actually ran (fix(review): pr comments report zero findings for orchestrated reviews #657).

Strategic Alignment

  • Milestone: Backlog (no release)
  • Design: none
  • Depends on: none

Generated by Claude Code

Update 2026-10-08: refinement

The bug holds (ai/review/runner.py:2220-2243; {} under --no-reporting, ai/review/pipeline.py:4818-4823). #871 merged, so --post posts admitted findings from admitted_scanner_findings (:2635), which exists with --no-reporting.

  • With and without --no-reporting, the comment lists an admitted finding, and its metric carries that finding's own label.

Activity

  1. added
    type/bug
    scope/review
    priority/p2-medium
    on Oct 1, 2026
  2. dan-petty commented on Oct 3, 2026

    @dan-petty
    OwnerAuthor

    Review redesign (#1137, 2026-10-03): this item is a phase P4 child (P4-4: review pr --post posts admitted findings). It is a live bug, so its current fix is not blocked by the redesign; the re-scope to admitted findings applies when #871 lands.

  3. added this to the v0.2.35 milestone on Oct 11, 2026
  4. dan-petty commented on Oct 11, 2026

    @dan-petty
    OwnerAuthor

    Moved to v0.2.35: v0.2.35 started with fewer than its 16 items and was topped up to 16 from Ready items, critical fixes and P0 features first. (devops roadmap reprioritize)

  5. added a commit that references this issue on Oct 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority/p2-mediumscope/reviewtype/bug

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions