Add @bazel-io review comment command to BCR PR reviewer #2901
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.37) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 230 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.326
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #2901"
general
weight: 0.35
Wyverald
Add a
@bazel-io reviewcomment command to the BCR PR reviewer. It runs the same review as the scheduledreview_prsjob, but only for the PR it's commented on.review_prsis scheduled every 20 minutes, but GitHub doesn't honor the schedule: in practice it runs every 3-5 hours, even though each run takes less than 2 minutes. So PRs already approved by their module maintainers can wait hours to be merged. With this command, anyone can ask the bot to review and merge a PR right away.@bazel-io reviewon a BCR PR. It's handled by the existinghandle_commentaction type, and BCR'shandle_comment.ymlalready runs for PR comments starting with@bazel-io, so no new workflow trigger is needed.dismiss_approvalsworkflow runs (likereview_prsdoes), then callsreviewPRfor the PR. It reacts 🚀 if the PR was merged. Otherwise it replies with the reason: draft PR, more than 500 changed files, no module versions modified, modules still missing maintainer approval, sensitivemetadata.jsonchanges or a new module, or approved but the merge failed (usually pending or failing presubmit checks).reviewPRnow returns{ merged, message }, andrunHandleCommentdispatches between@bazel-io abandonand@bazel-io review. The scheduledreview_prsjob ignores the return value, so its behavior is unchanged.index.test.jscases for the command with a fake octokit (merge, missing approval, merge failure, sensitive metadata, draft, and non-matching comments).