Skip to content

ci: triage-only Review Comment Monitor for bot reviews (auto-monitor) - #1789

Merged
POWERFULMOVES merged 2 commits into
mainfrom
feat/review-comment-monitor
Jun 11, 2026
Merged

ci: triage-only Review Comment Monitor for bot reviews (auto-monitor)#1789
POWERFULMOVES merged 2 commits into
mainfrom
feat/review-comment-monitor

Conversation

@POWERFULMOVES

Copy link
Copy Markdown
Owner

Item ⑤ of the 4090 review-infra lane (companion to #1763 / #1785 / #1787). Delivers "auto-monitor incoming review comments" — the safe interpretation.

What

A new workflow that fires on pull_request_review from CodeRabbit / Codex, classifies the findings P0–P3 (pr-trim severity model), and posts one summary comment flagging P0/P1 for human attention (with file:line) + a P2/P3 count.

Safety stance (deliberate)

  • Triage-only: contents: read, no thread-resolution scope. The workflow cannot push commits or resolve threads. Fixing + resolving stays the deliberate, human-invoked pr-trimmer / /pr-trim path.
  • This keeps monitoring and mutation separate, so an automated reviewer can never trigger an unsupervised change to a PR. (The aggressive variant — auto-running pr-trimmer to apply fixes on every bot review — was intentionally not built; it needs explicit opt-in.)
  • Gated to known bot logins + non-empty review body, so human reviews and empty approvals are ignored. SHA-pinned actions per repo policy.

Verification

YAML parses; trigger/permissions/bot-gate confirmed. Caveat (honest): a pull_request_review-triggered workflow can't be end-to-end verified without a real CodeRabbit/Codex review landing — the first bot review after merge is the live test. The if: author-gate and read-only perms bound the blast radius if the prompt misbehaves (worst case: one extra summary comment).

🤖 Generated with Claude Code

Surfaces CodeRabbit/Codex review findings for human attention: on a bot pull_request_review, classifies findings P0-P3 and posts ONE summary comment flagging P0/P1 for action via /pr-trim.

Deliberately TRIAGE-ONLY (contents: read, no thread-resolution): an automated reviewer can never trigger an unsupervised code change. Fixing+resolving stays the human-invoked pr-trimmer path. Gated to known bot logins + non-empty review body so human reviews and empty approvals are ignored.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@POWERFULMOVES, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 24 minutes and 45 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more credits in the billing tab to continue.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: ae787c92-ee4f-4161-b3a2-f04101647c30

📥 Commits

Reviewing files that changed from the base of the PR and between 85127b3 and 46f81e5.

📒 Files selected for processing (1)
  • .github/workflows/review-comment-monitor.yml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/review-comment-monitor

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2fe65ef6a3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/review-comment-monitor.yml
Comment thread .github/workflows/review-comment-monitor.yml Outdated
Addresses Codex review on #1789: (P1) claude-code-action rejects bot-triggered runs by default — add allowed_bots; (P2) drop the review.body!='' gate so inline-only bot reviews aren't missed (action fetches the comments itself).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@POWERFULMOVES
POWERFULMOVES merged commit 528c3b7 into main Jun 11, 2026
22 checks passed
@POWERFULMOVES
POWERFULMOVES deleted the feat/review-comment-monitor branch June 11, 2026 17:14
POWERFULMOVES added a commit that referenced this pull request Jun 12, 2026
…e variant) (#1796)

* ci: add opt-in (label-gated) Review Auto-Fix for bot reviews

The aggressive counterpart to review-comment-monitor.yml (#1789): on a trusted-bot review of a PR carrying the human-applied 'pr-trim:auto' label, runs a conservative pr-trim pass that applies clearly-actionable fixes, pushes to the PR branch, and resolves the addressed threads.

Safety: HUMAN label gate (never fires unsolicited); changes land as reviewable commits; the pass is instructed to skip P3/judgment/behaviour-changing items and touch only files in the bot's findings. contents:write is scoped to this opt-in path only (the default monitor stays contents:read). allowed_bots set per the #1789 lesson.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* ci(review-autofix): gate to same-repo PRs (fork checkout/push hazard)

Addresses Codex P1 on #1796: actions/checkout's ref resolves against the base repo, so a fork PR with a base-named head branch (e.g. main) could make the autofix job check out + push its commit to the wrong repo. Restrict the job to same-repo PRs (head.repo.full_name == github.repository) so head==base and the ref is safe. PMOVES PRs are internal org branches, so this loses no coverage.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
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