feat: implement issue #892 — dev-lead fix-review won't act on advisory-bot nitpick threads (green CI + CHANGES_REQUESTED, empty machine findings → status=no-changes → PR stalls on human) - #893
Conversation
…y-bot nitpick threads (green CI + CHANGES_REQUESTED, empty machine findings → status=no-changes → PR stalls on human)
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
🤖 CodeAnt AI — Review Status
|
|
Warning Review limit reached
Next review available in: 39 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (2)
📒 Files selected for processing (5)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
Dev-Lead — review-changes (no-changes)No changes were needed for this PR. |
PR Summary by QodoVendor Bats assertion/support libs into node_modules for shell test helpers
AI Description
Diagram
High-Level Assessment
Files changed (25)
|
There was a problem hiding this comment.
Code Review
This pull request adds the bats-assert and bats-support test helper libraries directly under node_modules/, but completely lacks the actual feature implementation mentioned in the PR title. Feedback highlights that committing node_modules/ directly to version control is a bad practice. Additionally, multiple critical issues were identified in the added Bash scripts, including potential fatal syntax errors across several assertion files when regular expression patterns or expected values are empty, as well as a missing function definition for __check_is_valid_regex when assert_regex.bash is sourced independently.
Code Review by Qodo
Context used✅ Compliance rules (platform):
87 rules 1.
|
|
CI checks on this PR are still running. Once they complete, re-mention Posted by the donpetry-bot PR-review cascade. |
Dev-Lead — review-changes (applied)Changes committed and pushed. |
Dev-Lead — review-changes (applied)Changes committed and pushed. |
|
Note @don-petry I reviewed this PR and no code changes were needed, but it still has blocking checks or reviews (failing or cancelled checks, or changes-requested reviews), so I cannot mark it done yet. I'll re-check automatically. |
Dev-Lead — waiting on PR blockers (intent: review-changes)PR: #893 |
Superseded by automated re-review at
|
Dev-Lead — review-changes (applied)Changes committed and pushed. |
|
Dev-Lead — waiting on PR blockers (intent: fix-reviews)PR: #893 |
donpetry-bot
left a comment
There was a problem hiding this comment.
Automated review — APPROVED ✓
Risk: MEDIUM
Reviewed commit: 574bde588a9f9ee93b3e05a85a80c4df668c73ae
Review mode: triage-approved (single reviewer)
Summary
Re-review after the cycle-2 fix request. The sole blocking finding — an accidental ~3,672-line vendored node_modules/ tree (bats-assert 2.2.4 + bats-support 0.3.0) — is fully resolved in 574bde5: all vendored files are deleted and the PR is now a focused 112-addition / 10-deletion change across 7 files. The #892 feature (advisory-bot-only review threads no longer block auto-dispatch) is correctly implemented in ready-check.sh, sweep-dispatch.sh, and pr-auto-review-reusable.yml, with strong bats coverage of every fail-safe. All required CI checks are green and there are zero unresolved review threads.
Linked issue analysis
Closes #892 (dev-lead fix-review stalls on advisory-bot nitpick threads with green CI). The PR addresses the stall mechanism at the dispatch gate: pr_auto_review_blocking_thread_count now excludes threads whose comments are exclusively from Bot-typed authors, so the review cascade can re-dispatch and clear the stale CHANGES_REQUESTED state instead of stalling on skip-unresolved-threads. Conservative fail-safes preserved: absent/empty comments, mixed bot+human threads, and null authors all still block; the CHANGES_REQUESTED gate (criterion 3) is untouched. The prior deep-cascade review validated this approach as correctly implementing #892.
Findings
- RESOLVED (prior MAJOR, maintainability): vendored node_modules/ tree removed in 574bde5 (bats-assert, bats-support — 26 files, ~3,672 deletions). The remaining node_modules/.package-lock.json is pre-existing on main; this PR only touches its name field.
- MINOR (hygiene, non-blocking): package-lock.json and node_modules/.package-lock.json name field churns pr-840 → pr-893 — cosmetic artifact of the dev-lead checkout dir naming; consider a follow-up to stabilize the lockfile name.
- VERIFIED (correctness): is_advisory_bot_thread requires comments.nodes non-empty AND every author.__typename == "Bot"; blocking = unresolved AND not outdated AND not bot-only. 7 new bats tests pin bot-only=0, human=1, absent/empty comments=1, mixed=1, bot-open+human-reply=1 (pins comments(first:100) vs first:1), and the 5-thread #892 scenario=0. bats CI green.
- VERIFIED (security): GraphQL query strings are static with owner/repo/number passed as GraphQL variables via -f/-F — no injection surface. No secrets in the diff; gitleaks green. run_secret_scanning MCP tool not available in this environment (noted, non-blocking).
- INFO (downstream): pr-auto-review-reusable.yml is pinned by 7 consumer repos; the change is an additive, backward-compatible GraphQL query expansion with no interface change.
CI status
All required checks green: SonarCloud, CodeQL, agent-shield/AgentShield, Detect ecosystems, Lint, ShellCheck, Agent Security Scan. Also green: bats, Lint and bats, npm audit, gitleaks, Analyze (actions), pr-auto-review, Graphite, CodeRabbit. The 4 non-green entries (dev-lead / dispatch, dev-lead / ci-relay ×2 each) are cancelled/rate-limited dev-lead agent orchestration relays — not required, not code checks.
Reviewed automatically by the PR-review agent (single-reviewer mode: fable 5). Reply if you need a human review.



User description
Closes #892
Implemented by dev-lead agent. Please review.
CodeAnt-AI Description
Keep PR dispatch moving when only advisory bot comments remain
What Changed
Impact
✅ Fewer PRs stalled by bot nitpicks✅ Faster dispatch after green CI✅ Fewer manual review cleanups before merge💡 Usage Guide
Checking Your Pull Request
Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.
Talking to CodeAnt AI
Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:
This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.
Example
Preserve Org Learnings with CodeAnt
You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:
This helps CodeAnt AI learn and adapt to your team's coding style and standards.
Example
Retrigger review
Ask CodeAnt AI to review the PR again, by typing:
Check Your Repository Health
To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.