You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Follow-up to the review-state behavior observed on #1066, with supporting command-history evidence from #1293.
Description
Fork pull-request review events have a read-only token, so the workflow could recognize a fresh automated change request but leave stale review-state labels until hourly reconciliation. A narrowly filtered coderabbitai[bot] status-comment event now provides prompt base-context reconciliation. Contributor-authored comments are rejected both by the job condition and inside the metadata-only script.
CodeRabbit configuration now prevents non-organization members from directing comment chat, restricts failed pre-merge-check overrides to requested reviewers, and disables automatic review pausing. The pause setting avoids requiring outside contributors to use unavailable review or resume commands. The tradeoff is additional review-capacity use on eligible incremental updates; this repository limits that exposure by opting reviews in only with the workflow-managed coderabbit-review-active label after required CI passes.
Contributor guidance now consistently describes the sequence as required CI, automated review completion for the current head, then fresh human maintainer or CODEOWNER approval. Automated approval is treated only as a review-completion signal and never as a substitute for native human approval or branch protection.
Test Procedure
Run pnpm --dir src exec vitest run services/__tests__/pr-review-state-workflow.test.ts.
Validate .coderabbit.yaml against https://coderabbit.ai/integrations/schema.v2.json.
Run pnpm test, then pnpm lint, then pnpm check-types sequentially.
Confirm the focused cases cover fork PRs, trusted and contributor comment events, fresh automated and human review ordering, new-head invalidation, state-specific guidance, and metadata-only permissions.
Pre-Submission Checklist
Issue Linked: The source PRs that exposed the workflow and messaging risks are linked above.
Scope: Changes are limited to CodeRabbit configuration, review-state reconciliation, contributor guidance, and focused tests.
Self-Review: The final diff was reviewed for reviewer-semantic regressions, fork trust, and unnecessary permissions.
Testing: Focused and full repository checks cover the changed behavior.
Visual Snapshot (UI changes only): Not applicable; this changes GitHub workflow/configuration and Markdown guidance only.
Documentation Impact: CONTRIBUTING.md and the managed PR guidance now describe the actual review sequence and access model.
Contribution Guidelines: Repository guidance was reviewed and followed.
Visual Snapshots
Not applicable. There is no browser-rendered product surface for this workflow/configuration change.
Videos (interaction / animation only)
Not applicable.
Documentation Updates
CONTRIBUTING.md now states that automated review does not replace fresh human maintainer/CODEOWNER approval, outside contributors cannot direct CodeRabbit through comments, and maintainers own exceptional review restarts.
Expanded the draft in commit f88c242c3: restricted non-org CodeRabbit chat and pre-merge overrides, disabled auto-pause, kept privileged reconciliation metadata-only and least-privilege, replaced contributor command prompts with automatic/maintainer-owned actions, clarified automated review versus required human approval, and added focused coverage. The live official CodeRabbit schema, focused tests, full tests, lint, and type checks all pass; the PR title/body now document the capacity tradeoff and PR #1293 evidence without implying branch-protection bypass.
zoomoteBot
changed the title
[Fix] Fork PR labels stay stale after CodeRabbit requests changes
[Fix] Fork PR review state stays stale after automated review
Sep 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related GitHub Issue
Follow-up to the review-state behavior observed on #1066, with supporting command-history evidence from #1293.
Description
Fork pull-request review events have a read-only token, so the workflow could recognize a fresh automated change request but leave stale review-state labels until hourly reconciliation. A narrowly filtered
coderabbitai[bot]status-comment event now provides prompt base-context reconciliation. Contributor-authored comments are rejected both by the job condition and inside the metadata-only script.CodeRabbit configuration now prevents non-organization members from directing comment chat, restricts failed pre-merge-check overrides to requested reviewers, and disables automatic review pausing. The pause setting avoids requiring outside contributors to use unavailable
revieworresumecommands. The tradeoff is additional review-capacity use on eligible incremental updates; this repository limits that exposure by opting reviews in only with the workflow-managedcoderabbit-review-activelabel after required CI passes.Contributor guidance now consistently describes the sequence as required CI, automated review completion for the current head, then fresh human maintainer or CODEOWNER approval. Automated approval is treated only as a review-completion signal and never as a substitute for native human approval or branch protection.
Test Procedure
pnpm --dir src exec vitest run services/__tests__/pr-review-state-workflow.test.ts..coderabbit.yamlagainsthttps://coderabbit.ai/integrations/schema.v2.json.pnpm test, thenpnpm lint, thenpnpm check-typessequentially.Pre-Submission Checklist
CONTRIBUTING.mdand the managed PR guidance now describe the actual review sequence and access model.Visual Snapshots
Not applicable. There is no browser-rendered product surface for this workflow/configuration change.
Videos (interaction / animation only)
Not applicable.
Documentation Updates
CONTRIBUTING.mdnow states that automated review does not replace fresh human maintainer/CODEOWNER approval, outside contributors cannot direct CodeRabbit through comments, and maintainers own exceptional review restarts.Additional Notes
auto_pause_after_reviewed_commits: 0: https://docs.coderabbit.ai/configuration/auto-review@coderabbitai approveresolved automated comments but did not satisfy native human review: a maintainer subsequently requested changes, and branch protection continued to require human/CODEOWNER approval.Get in Touch
Mention
@roomoteon the PR for follow-up investigation or changes.