Skip to content

post-review: carried-forward open low-severity findings must not be treated as blocking or override comment/approve verdicts #2138

Open

Description

@fullsend-ai-retro

What happened

During the review workflow on PR redhat-et/ProtoBot#542, author @JohnStrunk pushed commit 50d799a addressing feedback from previous review rounds. Review run 44607538190 evaluated this commit. In its synthesized reasoning and output agent-result.json, the orchestrator model emitted action: "comment", reasoning that the single medium finding ([protected-path]) was non-actionable governance information, and all remaining findings were low-severity items that should not block on re-review.

However, during post-review processing, scripts/post-review.src.sh evaluated the finding ledger against prior reviews. Because prior low-severity findings (e.g. f_834b24717ef78a07, f_94c09e335fbf9ee3, f_e89f164734eaaf6e, f_711c354eb968ee63) had been marked actionable: true and were recorded with disposition status: "open", post-review.src.sh logged:

Blocking current or prior findings remain — changing 'comment' to 'request-changes'
• Submitting REQUEST_CHANGES review
  Attaching 10 inline comment(s)

The post-script automatically rewrote the agent's comment verdict to REQUEST_CHANGES on GitHub, appended a 'Blocking prior findings' list and next-steps /fs-fix footer, and blocked the PR until a human maintainer (@jerry-ng2) manually approved it ~22 hours later.

What could go better

In fullsend-ai/agents PR #1636 (implementing AISDLC-118 / #1208), REREVIEW_BLOCKING_RANK (medium, rank 2) was specifically established to enforce a medium-severity floor on re-reviews, ensuring that low-severity findings do not block PR merges or trigger infinite fix-agent loops.

However, in scripts/post-review.src.sh (lines 1406 and 1414), PRIOR_OPEN_BLOCKING_FINDINGS includes the clause:
or ((.actionable // false) == true and (.severity | severity_rank) >= $threshold)
where $threshold is severity_rank(REVIEW_FINDING_SEVERITY_THRESHOLD) (which defaults to low / rank 1). This clause unintentionally negates REREVIEW_BLOCKING_RANK: any carried-forward open finding with actionable: true and severity: "low" is treated as a blocking prior finding. When PRIOR_OPEN_BLOCKING_COUNT > 0, lines 1500–1534 unconditionally override comment or approve to request-changes.

This creates an inescapable deadlock for authors: on Round 1, an actionable low finding is non-blocking (comment). If the author explains why the suggestion is intentional or out of scope, the agent must carry it forward as open (because author comments cannot trigger dismissed_by_human under #1760). On Round 2+, post-review.src.sh mutates that same low finding into a hard blocker, overriding the LLM's own verdict and forcing REQUEST_CHANGES.

Proposed change

In scripts/post-review.src.sh in fullsend-ai/agents, remove the $threshold bypass from PRIOR_OPEN_BLOCKING_FINDINGS so that carried-forward open findings must meet REREVIEW_BLOCKING_RANK ($rank, medium+) to be considered blocking.

Specifically, update lines 1401–1416 from:

  [ .findings[]
    | select((.severity == "high" or .severity == "critical")
             or ((.severity | severity_rank) >= $rank)
             or ((.actionable // false) == true and (.severity | severity_rank) >= $threshold))
    | select(.id as $id | any($effective[]; .id == $id and .status == "open"))
    | select((.severity == "high" or .severity == "critical")
             or (.severity == "medium" and (
                   (.actionable // false) == true
                   or ((.actionable | type) != "boolean" and $prior_action == "request-changes")
                 ))
             or ((.actionable // false) == true and (.severity | severity_rank) >= $threshold))

to:

  [ .findings[]
    | select((.severity == "high" or .severity == "critical")
             or ((.severity | severity_rank) >= $rank))
    | select(.id as $id | any($effective[]; .id == $id and .status == "open"))
    | select((.severity == "high" or .severity == "critical")
             or ((.severity | severity_rank) >= $rank and (
                   (.actionable // false) == true
                   or ((.actionable | type) != "boolean" and $prior_action == "request-changes")
                 )))

This preserves threshold_rank as the reporting floor for publishing findings while ensuring that REREVIEW_BLOCKING_RANK remains the sole floor for blocking verdicts on re-review.

Validation criteria

In scripts/post-review.src.sh test suite:

  1. Given a PR re-review where the prior ledger contains carried-forward open findings with severity: "low" and actionable: true, and no current or prior medium, high, or critical findings, an agent result with action: "comment" must remain comment and not be changed to request-changes.
  2. Under the same conditions with action: "approve", the verdict must remain approve.
  3. Carried-forward open findings with severity: "medium" (actionable) or "high" must continue to block and flip approve / comment to request-changes as intended.
    Verified on the next 5 multi-round PR reviews in repositories using fullsend-ai/agents.

Related issues checked

Searched: PRIOR_OPEN_BLOCKING_FINDINGS threshold; post-review carried low request-changes; re-review blocking threshold severity_rank; post-review verdict override; carried finding blocking; re-review severity floor
Considered: #1982, #1974, #1208, #1634
#1982 covers undisposed prior finding IDs defaulted to open, not explicitly carried low findings.
#1974 covers prompt re-anchoring of fixed findings to HEAD, not script verdict reconciliation.
#1208 governs prompt thresholds for new low findings on re-review and explicitly exempts carried findings.
#1634 covers ledger parsing and info findings, not carried low findings overriding comment verdicts.


Generated by retro agent from redhat-et/ProtoBot#542

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

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions