Skip to content

fix(ai-review): only request changes for critical findings#9

Merged
vklimontovich merged 1 commit into
mainfrom
fix/ai-review-severity-gating
May 22, 2026
Merged

fix(ai-review): only request changes for critical findings#9
vklimontovich merged 1 commit into
mainfrom
fix/ai-review-severity-gating

Conversation

@vklimontovich
Copy link
Copy Markdown
Contributor

Problem

The AI reviewer sometimes flags a non-issue (or a finding it is not confident about) and still submits REQUEST_CHANGES, blocking the PR.

Change

Raises the bar for the REQUEST_CHANGES verdict in the Codex prompt:

  • Findings are now classified by severity. Critical = a real bug breaking correctness, a security vulnerability, data loss, or a user-visible regression, with an identifiable failing code path. Everything else is non-critical.
  • REQUEST_CHANGES fires only for a new, critical issue — never for non-critical or uncertain findings, regardless of count.
  • Non-critical findings post as COMMENT inline comments (visible, non-blocking).
  • When unsure whether a finding is critical or even real, the model must treat it as non-critical.
  • APPROVE still clears a prior REQUEST_CHANGES once the critical issue is resolved, even if non-critical comments remain — avoids wedging a branch behind a stale block.

Raise the bar for the REQUEST_CHANGES verdict so it fires only on new,
critical issues — real bugs, security holes, data loss, user-visible
regressions. Non-critical and uncertain findings now post as COMMENT
inline comments instead, so false positives no longer block PRs.
Copy link
Copy Markdown

@jitsu-code-review jitsu-code-review Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Severity: none.

I reviewed the changes in .github/workflows/ai-review.yml and found no actionable bugs, security issues, correctness problems, or user-visible regressions in this diff. No existing review threads were present.

@vklimontovich vklimontovich merged commit 77baf43 into main May 22, 2026
1 check passed
@vklimontovich vklimontovich deleted the fix/ai-review-severity-gating branch May 22, 2026 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant