Repository navigation
feat: implement issue #2178 — dev-lead never dispositions a neutral bot overview (CodeAnt "PR Risk: Low Risk"), but pr-review's comment gate still counts it — the PR can never be approved - #2192
Conversation
…ot overview (CodeAnt "PR Risk: Low Risk"), but pr-review's comment gate still counts it — the PR can never be approved
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
ⓘ Qodo reviews are paused because your trial has ended. Ask your workspace admin to add credits to resume reviews. Manage billing |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 25 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Code Review
This pull request updates the prompt instructions in fix-bot-comment.md and adds corresponding unit tests to address issue #2178. It specifies that neutral bot overviews, such as CodeAnt's 'PR Risk: Low Risk' summary, must be dispositioned with exactly one informational reply to clear the maintainer comment gate, rather than being left reply-less. The added tests verify both the prompt's content and the gate's behavior under various conditions. There are no review comments, and I have no additional feedback to provide.
don-petry
left a comment
There was a problem hiding this comment.
Maintainer finding on the second acceptance criterion. The prompt change itself is right and I confirmed the path works end to end: cdv_body_has_findings returns "no findings" for today's real CodeAnt Low Risk overviews, so an informational disposition on them verifies and the harness minimizes the comment. Keep that. One gap inline.
CodeAnt Nitpicks1 code suggestion1. This tests an undispositioned comment, which blocks regardless of its text; an informational disposition on this generic CodeAnt suggestion still clears the gate, so the finding rule is untested.Possible bug · |
CodeAnt PR Risk: Low Risk
Assessed commit: |
QA Lead — test-risk advisoryRisk tier: MEDIUM. The PR changes only the prompt, but it now tells dev-lead to post What I'd shore up (highest leverage first):
Escalate? Yes. A maintainer should decide before merge: either extend the finding check to cover CodeAnt's suggestion and finding markers, or knowingly accept that the prompt alone keeps CodeAnt findings from being waved through. Advisory only — I comment, I do not change code. Ground: BMAD Test Architecture |
Dev-Lead — review-changes (not-applied)A commit was pushed, but it did not touch any region the review named — the requested changes were not applied. Per requested item:
|
|
Advisory bots were rate-limited; auto-approval is withheld until they recover. pr-review-sweep will re-review this PR after 2026-10-10T14:09:32Z. |
|
No description provided. |
|
No description provided. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
No description provided. |
|
Fixed in scripts/lib/reviewer-sources.sh: adjusted the PR Risk pattern from |
|
No description provided. |
…g correctly The previous pattern `PR Risk:\s*\**\s*(?!Low Risk)\S` incorrectly matched bolded risk levels like `**Low Risk**` due to regex backtracking. The pattern would match fewer asterisks and then see the remaining asterisk as a non-whitespace character, bypassing the negative lookahead. Adjusted the pattern to `PR Risk:\s*(?!\**Low Risk(?:\*\*)?)\S` to explicitly exclude bolded variations of "Low Risk" in the negative lookahead. Added regression tests for both bolded Low Risk (clean) and bolded Medium Risk (finding-bearing) cases to prevent future regressions. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
|
No description provided. |
|
Advisory bots were rate-limited; auto-approval is withheld until they recover. pr-review-sweep will re-review this PR after 2026-10-10T15:49:22Z. |
|
No description provided. |
|
No description provided. |
|
This is a CodeRabbit OSS review rate-limit notice indicating their free review quota is exhausted. The rate-limit block contains no actionable code findings — it is purely an operational notice about review availability. No code changes are required. |
Dev-Lead — fix-bot-comment (no-changes)Agent reasoning |
|
No description provided. |
…er 'Low Risk' The pattern was accepting variations like 'Low Risky' as clean because it lacked a word boundary check after 'Low Risk'. Changed pattern from: PR Risk:\s*(?!\**Low Risk(?:\*\*)?)\S to: PR Risk:\s*(?!\**Low Risk\b(?:\*\*)?)\S The \b word boundary now ensures that 'Low Risk' must be followed by a non-word character (space, punctuation, or end of string) to be treated as clean. Variations like 'Low Risky' are now correctly detected as findings. Added test cases to verify both 'Low Risky' is detected as finding-bearing and 'Low Risk ' (with trailing space) remains clean. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
|
Fixed in scripts/lib/reviewer-sources.sh and tests/dev-lead/unit/test_maintainer_comment_gate.bats: added word boundary after 'Low Risk' in the CodeAnt PR Risk pattern to prevent accepting variations like 'Low Risky' as clean. Pattern changed from |
|
No description provided. |
|
|
Advisory bots were rate-limited; auto-approval is withheld until they recover. pr-review-sweep will re-review this PR after 2026-10-10T17:08:48Z. |
Dev-Lead — fix-reviews (no-changes)Agent reasoning |



Problem
dev-lead never dispositions a neutral bot overview (CodeAnt "PR Risk: Low Risk"), but pr-review's comment gate still counts it — the PR can never be approved
From the issue: A finding-bot's clean summary with no finding in it — for example CodeAnt's
## CodeAnt PR Risk: Low Risk … The PR appears safe to merge— holds pr-review'sundispositioned-pr-commentgate forever:Risk
Low — 3 file(s) changed; no CI- or runtime-critical paths touched.
Test plan
Tests added/updated:
tests/dev-lead/unit/test_fix_reviews.bats,tests/dev-lead/unit/test_maintainer_comment_gate.bats. Verification:bash scripts/dev-lead-lint.sh(shellcheck --severity=warning) ran pre-commit; the bats suite runs in CI.Rollback
Revert this PR. No non-revertible side effects (no tags, migrations, or external state).
Monitoring
This PR's CI checks (Lint + bats) are the success/regression signal.
Closes #2178