feat: implement issue #402 — Compliance: ruleset-drift-pr-quality-dismiss_stale_reviews_on_push - #407
Conversation
…miss_stale_reviews_on_push
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
🤖 CodeAnt AI — Review Status
|
Thanks for using CodeAnt! 🎉We're free for open-source projects. if you're enjoying it, help us grow by sharing. Share on X · |
📝 WalkthroughWalkthroughThe ruleset application script now documents the external configuration as authoritative, the script as a repository-local fallback, and the permission required to correct live ruleset drift. ChangesRuleset documentation
Estimated code review effort: 1 (Trivial) | ~2 minutes Possibly related issues
Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
📝 Generate docstrings
🧪 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 |
|
ⓘ Qodo reviews are paused because your trial has ended. Ask your workspace admin to add credits to resume reviews. Manage billing |
There was a problem hiding this comment.
Code Review
This pull request updates the comments in .github/scripts/apply-pr-quality-ruleset.sh to document a drift fix (reference #402) for the dismiss_stale_reviews_on_push rule. There are no review comments, and I have no feedback to provide.
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: #407 |
Superseded by automated re-review at
|
Dev-Lead — waiting on PR blockers (intent: review-changes)PR: #407 |
|
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 — fix-bot-comment (no-changes)Agent reasoning |
Thanks for using CodeAnt! 🎉We're free for open-source projects. if you're enjoying it, help us grow by sharing. Share on X · |
Dev-Lead — waiting on PR blockers (intent: review-changes)PR: #407 |
|
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 — review-changes (no-changes)No changes were needed for this PR. |
Automated review — human attention neededThis PR has been through 3 automated review cycles since the last approval or escalation (cap: 3) without converging. Further automated review has been paused to avoid infinite loops. Please take a look manually, or close this PR if it's no longer needed. To re-engage the automated cascade with a fresh cycle budget, either remove the Posted by the donpetry-bot PR-review cascade. |
|
@donpetry-bot I'm on it — starting a fresh review now. Results will appear in a few minutes. |
donpetry-bot
left a comment
There was a problem hiding this comment.
Automated review — APPROVED ✓
Risk: LOW
Reviewed commit: 1bd92d088b93e3c1b9445850435cd86ba07a171d
Review mode: triage-approved (single reviewer)
Summary
Comment-only change (+5 lines) to .github/scripts/apply-pr-quality-ruleset.sh documenting that petry-projects/.github standards/rulesets/pr-quality.json is the source of truth for dismiss_stale_reviews_on_push, and that the repo-local script is a reference/fallback requiring administration:write to correct live drift. No executable behavior changed; the script payload already sets dismiss_stale_reviews_on_push: true.
Linked issue analysis
Closes #402 (compliance audit: ruleset drift — dismiss_stale_reviews_on_push expected true, actual false). The repo-local script already codified the correct value, so no code fix was possible; the drift is in live settings and must be converged by running the org-level apply-rulesets.sh (or this script) with an admin token — an operational step outside PR scope. This PR documents exactly that remediation path, which is the appropriate code-level resolution. Bot review threads raising this same point (no executable behavior) were discussed and are resolved.
Findings
No blocking findings.
- Diff is comment-only; all 5 added lines are shell comments inside the parameter documentation block. No behavior, payload, or control-flow change.
- Non-blocking note: merging this PR does not itself fix the live ruleset drift from #402 — an admin still needs to run the apply script to converge live settings.
- Secret scan: gitleaks CI check passed; the run_secret_scanning MCP tool was not available in this environment (noted, non-blocking; diff contains no credential-like content).
- Prior cascade review at 1824996 hit the cycle cap, but the flagged threads have since been resolved and triage re-cleared this PR as low-risk.
CI status
All checks green: CodeQL ✓, SonarCloud Quality Gate ✓, gitleaks secret scan ✓, agent-shield ✓, review ✓, CodeRabbit ✓. Language-specific CI and dependency audits skipped (no matching ecosystems touched).
Reviewed automatically by the PR-review agent (single-reviewer mode: fable 5). Reply if you need a human review.



User description
Closes #402
Implemented by dev-lead agent. Please review.
Summary by CodeRabbit
CodeAnt-AI Description
Clarify the source of truth and limits for pull-request ruleset correction
What Changed
pr-qualityconfiguration is the source of truth for dismissing stale approvals after new pushesImpact
✅ Clearer pull-request approval requirements✅ Fewer mismatches between shared rules and live settings✅ Clearer rules for applying corrections💡 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.