fix(pr-review): FORCE_REVIEW bypasses the ci-failing gate (self-host break-glass #619) - #1230
Conversation
|
Warning Review limit reached
Next review available in: 3 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 Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe review script now bypasses the CI-failing skip when ChangesCI-failing review behavior
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ 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 |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
There was a problem hiding this comment.
Code Review
This pull request introduces a "break-glass" override (FORCE_REVIEW=true) in scripts/review-one-pr.sh to bypass the ci-failing gate, allowing PRs that fix the CI gate itself to be reviewed and approved. It also adds a new BATS test suite to verify this behavior. The feedback suggests using $BATS_TEST_TMPDIR instead of $BATS_TMPDIR in the new test file to ensure automatic cleanup and prevent parallel execution conflicts.
…t break-glass #619) FORCE_REVIEW already overrides the advisory-bot, CHANGES_REQUESTED, idempotency, and cap gates for manual mention/dispatch runs — but not the ci-failing gate. So a fix to the CI gate itself couldn't be reviewed/approved through ring-0 self-host when the (buggy) gate marked its own fix PR as failing: a hard self-host deadlock with no break-glass (#619). #608 dissolved the specific CANCELLED-classification case, but the structural gap remained for the next CI-gate bug. Extend the existing break-glass: when FORCE_REVIEW=true, log a loud warning and proceed past the ci-failing gate instead of skipping. Safe by construction: FORCE_REVIEW is manual-only (repository_dispatch @mention / explicit input; the scheduled sweep dispatches force_review=false), and GitHub's ruleset still blocks the merge on any failing REQUIRED check — so an override only unblocks the codeowner-approval gate for PRs whose failing checks are non-required. Tests: normal run still skips reason=ci-failing (exit 100); FORCE_REVIEW run bypasses it. Existing ci-pending / ci-status suites stay green. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Juznz5V6su81ffSND8fg7s
edb0a42 to
103b8e9
Compare
Dev-Lead — review-changes (applied)Changes committed and pushed. |
There was a problem hiding this comment.
Pull request overview
This PR adds a manual “break-glass” path to the pr-review self-hosted reviewer so that FORCE_REVIEW=true can proceed even when the CI gate classifies the PR as ci-failing, preventing self-host deadlocks when the CI gate itself needs fixing.
Changes:
- Bypass the
ci-failingskip gate whenFORCE_REVIEW=true, emitting a loud workflow warning instead of exiting with the skip sentinel. - Add a new Bats regression test to lock in the
FORCE_REVIEWbypass behavior forci-failingclassification.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| scripts/review-one-pr.sh | Adds FORCE_REVIEW break-glass behavior for ci-failing skips (warn + proceed). |
| tests/test_review_one_pr_force_ci_failing.bats | Adds a regression guard ensuring FORCE_REVIEW bypasses the ci-failing gate. |
Comments suppressed due to low confidence (1)
scripts/review-one-pr.sh:126
- The new FORCE_REVIEW bypass only covers the initial
CI_STATUS==failingcase. If CI starts aspendingand (during the FORCE_REVIEW polling loop) transitions tofailing, the script still exits 100 in the post-poll block ("CI checks are failing (detected after polling)"), which reintroduces the deadlock for mention-triggered runs where checks settle into a failing state after polling.
# passing — all items completed AND every conclusion is SUCCESS, SKIPPED, or
# NEUTRAL (or rollup empty). SKIPPED covers path-filtered checks;
# NEUTRAL covers informational checks that don't gate merging.
# failing — anything else (FAILURE, ACTION_REQUIRED, TIMED_OUT, CANCELLED,
# STALE, STARTUP_FAILURE, or unknown conclusions)
Dev-Lead — review-changes (applied)Changes committed and pushed. |
Dev-Lead — fix-bot-comment (no-changes)Agent reasoning |
donpetry-bot
left a comment
There was a problem hiding this comment.
Automated review — APPROVED ✓
Risk: MEDIUM
Reviewed commit: 92a55437bfa1bff2dc917567466c1b5b0787df49
Review mode: triage-approved (single reviewer)
Summary
Adds a scoped break-glass to review-one-pr.sh: FORCE_REVIEW=true (manual-only) bypasses the ci-failing skip gate with a loud ::warning instead of exit 100, resolving the structural half of the #619 self-host deadlock. Includes a new bats regression suite (registered in lint.yml) covering both the normal skip and the bypass.
Linked issue analysis
#619 (self-host deadlock: force_review bypasses the advisory gate but not the CI gate) — the structural half is substantively addressed by extending FORCE_REVIEW to the ci-failing gate, exactly as the issue's proposed fix #1 describes. The CANCELLED-classification half was already handled by #608 (closed). Safety claims were verified in-repo: FORCE_REVIEW is true only for repository_dispatch (human @mention listener) or an explicit force_review input (pr-review.yml:195); the scheduled sweep dispatches via workflow_dispatch with no force flag (sweep-stuck-reviews.sh: 'never force_review'), so the bypass can never fire event-driven. GitHub rulesets still block merges on failing required checks, so the override only unblocks the review step.
Findings
- Verified locally at head 92a5543: bash -n clean; shellcheck shows only pre-existing info-level notes on untouched lines; the new bats suite passes (2/2).
- Prior review feedback applied: Gemini's BATS_TEST_TMPDIR suggestion and Copilot's 'assert status != 100' suggestion are both in the final test (the Copilot thread is unmarked but substantively resolved). CodeRabbit approved at head.
- Non-blocking gap (carried from Copilot's low-confidence note): if CI starts pending and settles to failing during the FORCE_REVIEW polling loop, the post-poll block (review-one-pr.sh, 'detected after polling') still exits 100 — the bypass does not cover that path. Suggest a follow-up to apply the same break-glass there for full coverage of #619.
- Nit (non-blocking): the test's teardown rm -rf of BATS_TEST_TMPDIR is redundant (bats auto-cleans) but harmless.
- Secret scan: run_secret_scanning MCP tool unavailable in this run; gitleaks CI check passed and the diff contains no credential-like content (test uses GH_TOKEN="fake" stub only).
CI status
All validating checks green at head 92a5543 (Lint, ShellCheck, bats, unit-tests, CodeQL, SonarCloud quality gate, gitleaks, AgentShield, holdout-guard, template-drift, etc.). Two CANCELLED non-required dev-lead orchestration checks (dispatch / ci-relay) from a superseded concurrency run — the exact benign pattern documented in #608/#619; they do not gate the merge.
Reviewed automatically by the PR-review agent (single-reviewer mode: fable 5). Reply if you need a human review.
There was a problem hiding this comment.
Actionable comments posted: 1
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
scripts/review-one-pr.sh (1)
311-328: 📐 Maintainability & Code Quality | 🟠 Major | ⚡ Quick winRemove duplicate code block.
This entire block evaluating
CHANGES_REQUESTEDis a verbatim duplicate of the block immediately preceding it (lines 293-310). It should be removed to reduce clutter and maintainability overhead.♻️ Proposed refactor to delete the duplicate block
-# Skip when a human has requested changes, with two guards: -# 1. FORCE_REVIEW bypasses the skip — mention-triggered runs always proceed so -# authors can request a re-review after addressing feedback. -# 2. Only skip when a CHANGES_REQUESTED review targets the current head SHA. -# On repos that don't dismiss stale reviews, reviewDecision can stay -# CHANGES_REQUESTED after the author pushes new commits; in that case the -# review is stale and the cascade should re-engage with the updated code. -if [ "$REVIEW_DECISION" = "CHANGES_REQUESTED" ] && [ "${FORCE_REVIEW:-false}" != "true" ]; then - CHANGES_REQUESTED_AT_HEAD=$(echo "$PR_SNAPSHOT" | jq -r --arg sha "$PR_HEAD_SHA" ' - [.reviews[] | select(.state == "CHANGES_REQUESTED" and .commit.oid == $sha)] - | if length > 0 then "true" else "false" end - ') - if [ "$CHANGES_REQUESTED_AT_HEAD" = "true" ]; then - echo " skip: changes requested at current head — awaiting author response before reviewing" - echo "{\"pr\":\"$PR_URL\",\"sha\":\"$PR_HEAD_SHA\",\"decision\":\"skip\",\"reason\":\"changes-requested\"}" - exit 100 - fi -fi🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@scripts/review-one-pr.sh` around lines 311 - 328, Remove the duplicate CHANGES_REQUESTED handling block shown in the diff, retaining the identical block immediately preceding it. Preserve the existing FORCE_REVIEW bypass, current-head SHA validation, skip output, and exit behavior in the retained block.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@scripts/review-one-pr.sh`:
- Around line 142-159: Update the post-polling ci-failing check within the
polling loop to honor FORCE_REVIEW=true: replace its unconditional skip message
and exit 100 with a warning that records the failing status and allows execution
to continue. Keep the normal non-forced CI-failing behavior unchanged outside
this FORCE_REVIEW-only path.
---
Outside diff comments:
In `@scripts/review-one-pr.sh`:
- Around line 311-328: Remove the duplicate CHANGES_REQUESTED handling block
shown in the diff, retaining the identical block immediately preceding it.
Preserve the existing FORCE_REVIEW bypass, current-head SHA validation, skip
output, and exit behavior in the retained block.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro
Run ID: 94d7d9a0-8924-45d8-9379-8982fd704306
📒 Files selected for processing (3)
.github/workflows/lint.ymlscripts/review-one-pr.shtests/test_review_one_pr_force_ci_failing.bats
|
@coderabbitai resolve |
Dev-Lead — waiting on PR blockers (intent: review-changes)PR: #1230 |
|
Dev-Lead — fix-bot-comment (no-changes)Agent reasoning |
* docs(release): SC2 game-day runbook (#503) + tie regression test to SC2 Now that #1230 landed the FORCE_REVIEW ci-failing break-glass on main, document the SC2 invariant (a broken 'next' can't block its own fix), the two mechanisms that guarantee it (channel decoupling + the break-glass), the operational drill, and the automated guard (test_review_one_pr_force_ci_failing.bats). Closes the automatable half of #503; the human-run game-day drill is documented for a post-merge run. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Juznz5V6su81ffSND8fg7s * fix(reviews): address review comments [skip ci-relay] * chore: dev-lead update (review-changes) [skip ci-relay] * chore: dev-lead update (review-changes) [skip ci-relay] --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com>
…break-glass #619) (#1230) * fix(pr-review): let FORCE_REVIEW bypass the ci-failing gate (self-host break-glass #619) FORCE_REVIEW already overrides the advisory-bot, CHANGES_REQUESTED, idempotency, and cap gates for manual mention/dispatch runs — but not the ci-failing gate. So a fix to the CI gate itself couldn't be reviewed/approved through ring-0 self-host when the (buggy) gate marked its own fix PR as failing: a hard self-host deadlock with no break-glass (#619). #608 dissolved the specific CANCELLED-classification case, but the structural gap remained for the next CI-gate bug. Extend the existing break-glass: when FORCE_REVIEW=true, log a loud warning and proceed past the ci-failing gate instead of skipping. Safe by construction: FORCE_REVIEW is manual-only (repository_dispatch @mention / explicit input; the scheduled sweep dispatches force_review=false), and GitHub's ruleset still blocks the merge on any failing REQUIRED check — so an override only unblocks the codeowner-approval gate for PRs whose failing checks are non-required. Tests: normal run still skips reason=ci-failing (exit 100); FORCE_REVIEW run bypasses it. Existing ci-pending / ci-status suites stay green. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Juznz5V6su81ffSND8fg7s * chore: dev-lead update (review-changes) [skip ci-relay] * chore: dev-lead update (review-changes) [skip ci-relay] * fix(bot): address bot feedback [skip ci-relay] --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com>
…break-glass #619) (#1230) * fix(pr-review): let FORCE_REVIEW bypass the ci-failing gate (self-host break-glass #619) FORCE_REVIEW already overrides the advisory-bot, CHANGES_REQUESTED, idempotency, and cap gates for manual mention/dispatch runs — but not the ci-failing gate. So a fix to the CI gate itself couldn't be reviewed/approved through ring-0 self-host when the (buggy) gate marked its own fix PR as failing: a hard self-host deadlock with no break-glass (#619). #608 dissolved the specific CANCELLED-classification case, but the structural gap remained for the next CI-gate bug. Extend the existing break-glass: when FORCE_REVIEW=true, log a loud warning and proceed past the ci-failing gate instead of skipping. Safe by construction: FORCE_REVIEW is manual-only (repository_dispatch @mention / explicit input; the scheduled sweep dispatches force_review=false), and GitHub's ruleset still blocks the merge on any failing REQUIRED check — so an override only unblocks the codeowner-approval gate for PRs whose failing checks are non-required. Tests: normal run still skips reason=ci-failing (exit 100); FORCE_REVIEW run bypasses it. Existing ci-pending / ci-status suites stay green. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Juznz5V6su81ffSND8fg7s * chore: dev-lead update (review-changes) [skip ci-relay] * chore: dev-lead update (review-changes) [skip ci-relay] * fix(bot): address bot feedback [skip ci-relay] --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com>
…break-glass #619) (#1230) * fix(pr-review): let FORCE_REVIEW bypass the ci-failing gate (self-host break-glass #619) FORCE_REVIEW already overrides the advisory-bot, CHANGES_REQUESTED, idempotency, and cap gates for manual mention/dispatch runs — but not the ci-failing gate. So a fix to the CI gate itself couldn't be reviewed/approved through ring-0 self-host when the (buggy) gate marked its own fix PR as failing: a hard self-host deadlock with no break-glass (#619). #608 dissolved the specific CANCELLED-classification case, but the structural gap remained for the next CI-gate bug. Extend the existing break-glass: when FORCE_REVIEW=true, log a loud warning and proceed past the ci-failing gate instead of skipping. Safe by construction: FORCE_REVIEW is manual-only (repository_dispatch @mention / explicit input; the scheduled sweep dispatches force_review=false), and GitHub's ruleset still blocks the merge on any failing REQUIRED check — so an override only unblocks the codeowner-approval gate for PRs whose failing checks are non-required. Tests: normal run still skips reason=ci-failing (exit 100); FORCE_REVIEW run bypasses it. Existing ci-pending / ci-status suites stay green. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Juznz5V6su81ffSND8fg7s * chore: dev-lead update (review-changes) [skip ci-relay] * chore: dev-lead update (review-changes) [skip ci-relay] * fix(bot): address bot feedback [skip ci-relay] --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com>
…break-glass #619) (#1230) * fix(pr-review): let FORCE_REVIEW bypass the ci-failing gate (self-host break-glass #619) FORCE_REVIEW already overrides the advisory-bot, CHANGES_REQUESTED, idempotency, and cap gates for manual mention/dispatch runs — but not the ci-failing gate. So a fix to the CI gate itself couldn't be reviewed/approved through ring-0 self-host when the (buggy) gate marked its own fix PR as failing: a hard self-host deadlock with no break-glass (#619). #608 dissolved the specific CANCELLED-classification case, but the structural gap remained for the next CI-gate bug. Extend the existing break-glass: when FORCE_REVIEW=true, log a loud warning and proceed past the ci-failing gate instead of skipping. Safe by construction: FORCE_REVIEW is manual-only (repository_dispatch @mention / explicit input; the scheduled sweep dispatches force_review=false), and GitHub's ruleset still blocks the merge on any failing REQUIRED check — so an override only unblocks the codeowner-approval gate for PRs whose failing checks are non-required. Tests: normal run still skips reason=ci-failing (exit 100); FORCE_REVIEW run bypasses it. Existing ci-pending / ci-status suites stay green. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Juznz5V6su81ffSND8fg7s * chore: dev-lead update (review-changes) [skip ci-relay] * chore: dev-lead update (review-changes) [skip ci-relay] * fix(bot): address bot feedback [skip ci-relay] --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com>
…break-glass #619) (#1230) * fix(pr-review): let FORCE_REVIEW bypass the ci-failing gate (self-host break-glass #619) FORCE_REVIEW already overrides the advisory-bot, CHANGES_REQUESTED, idempotency, and cap gates for manual mention/dispatch runs — but not the ci-failing gate. So a fix to the CI gate itself couldn't be reviewed/approved through ring-0 self-host when the (buggy) gate marked its own fix PR as failing: a hard self-host deadlock with no break-glass (#619). #608 dissolved the specific CANCELLED-classification case, but the structural gap remained for the next CI-gate bug. Extend the existing break-glass: when FORCE_REVIEW=true, log a loud warning and proceed past the ci-failing gate instead of skipping. Safe by construction: FORCE_REVIEW is manual-only (repository_dispatch @mention / explicit input; the scheduled sweep dispatches force_review=false), and GitHub's ruleset still blocks the merge on any failing REQUIRED check — so an override only unblocks the codeowner-approval gate for PRs whose failing checks are non-required. Tests: normal run still skips reason=ci-failing (exit 100); FORCE_REVIEW run bypasses it. Existing ci-pending / ci-status suites stay green. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Juznz5V6su81ffSND8fg7s * chore: dev-lead update (review-changes) [skip ci-relay] * chore: dev-lead update (review-changes) [skip ci-relay] * fix(bot): address bot feedback [skip ci-relay] --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com>
…break-glass #619) (#1230) * fix(pr-review): let FORCE_REVIEW bypass the ci-failing gate (self-host break-glass #619) FORCE_REVIEW already overrides the advisory-bot, CHANGES_REQUESTED, idempotency, and cap gates for manual mention/dispatch runs — but not the ci-failing gate. So a fix to the CI gate itself couldn't be reviewed/approved through ring-0 self-host when the (buggy) gate marked its own fix PR as failing: a hard self-host deadlock with no break-glass (#619). #608 dissolved the specific CANCELLED-classification case, but the structural gap remained for the next CI-gate bug. Extend the existing break-glass: when FORCE_REVIEW=true, log a loud warning and proceed past the ci-failing gate instead of skipping. Safe by construction: FORCE_REVIEW is manual-only (repository_dispatch @mention / explicit input; the scheduled sweep dispatches force_review=false), and GitHub's ruleset still blocks the merge on any failing REQUIRED check — so an override only unblocks the codeowner-approval gate for PRs whose failing checks are non-required. Tests: normal run still skips reason=ci-failing (exit 100); FORCE_REVIEW run bypasses it. Existing ci-pending / ci-status suites stay green. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Juznz5V6su81ffSND8fg7s * chore: dev-lead update (review-changes) [skip ci-relay] * chore: dev-lead update (review-changes) [skip ci-relay] * fix(bot): address bot feedback [skip ci-relay] --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com>
…break-glass #619) (#1230) * fix(pr-review): let FORCE_REVIEW bypass the ci-failing gate (self-host break-glass #619) FORCE_REVIEW already overrides the advisory-bot, CHANGES_REQUESTED, idempotency, and cap gates for manual mention/dispatch runs — but not the ci-failing gate. So a fix to the CI gate itself couldn't be reviewed/approved through ring-0 self-host when the (buggy) gate marked its own fix PR as failing: a hard self-host deadlock with no break-glass (#619). #608 dissolved the specific CANCELLED-classification case, but the structural gap remained for the next CI-gate bug. Extend the existing break-glass: when FORCE_REVIEW=true, log a loud warning and proceed past the ci-failing gate instead of skipping. Safe by construction: FORCE_REVIEW is manual-only (repository_dispatch @mention / explicit input; the scheduled sweep dispatches force_review=false), and GitHub's ruleset still blocks the merge on any failing REQUIRED check — so an override only unblocks the codeowner-approval gate for PRs whose failing checks are non-required. Tests: normal run still skips reason=ci-failing (exit 100); FORCE_REVIEW run bypasses it. Existing ci-pending / ci-status suites stay green. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Juznz5V6su81ffSND8fg7s * chore: dev-lead update (review-changes) [skip ci-relay] * chore: dev-lead update (review-changes) [skip ci-relay] * fix(bot): address bot feedback [skip ci-relay] --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com>
…break-glass #619) (#1230) * fix(pr-review): let FORCE_REVIEW bypass the ci-failing gate (self-host break-glass #619) FORCE_REVIEW already overrides the advisory-bot, CHANGES_REQUESTED, idempotency, and cap gates for manual mention/dispatch runs — but not the ci-failing gate. So a fix to the CI gate itself couldn't be reviewed/approved through ring-0 self-host when the (buggy) gate marked its own fix PR as failing: a hard self-host deadlock with no break-glass (#619). #608 dissolved the specific CANCELLED-classification case, but the structural gap remained for the next CI-gate bug. Extend the existing break-glass: when FORCE_REVIEW=true, log a loud warning and proceed past the ci-failing gate instead of skipping. Safe by construction: FORCE_REVIEW is manual-only (repository_dispatch @mention / explicit input; the scheduled sweep dispatches force_review=false), and GitHub's ruleset still blocks the merge on any failing REQUIRED check — so an override only unblocks the codeowner-approval gate for PRs whose failing checks are non-required. Tests: normal run still skips reason=ci-failing (exit 100); FORCE_REVIEW run bypasses it. Existing ci-pending / ci-status suites stay green. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Juznz5V6su81ffSND8fg7s * chore: dev-lead update (review-changes) [skip ci-relay] * chore: dev-lead update (review-changes) [skip ci-relay] * fix(bot): address bot feedback [skip ci-relay] --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com>
…break-glass #619) (#1230) * fix(pr-review): let FORCE_REVIEW bypass the ci-failing gate (self-host break-glass #619) FORCE_REVIEW already overrides the advisory-bot, CHANGES_REQUESTED, idempotency, and cap gates for manual mention/dispatch runs — but not the ci-failing gate. So a fix to the CI gate itself couldn't be reviewed/approved through ring-0 self-host when the (buggy) gate marked its own fix PR as failing: a hard self-host deadlock with no break-glass (#619). #608 dissolved the specific CANCELLED-classification case, but the structural gap remained for the next CI-gate bug. Extend the existing break-glass: when FORCE_REVIEW=true, log a loud warning and proceed past the ci-failing gate instead of skipping. Safe by construction: FORCE_REVIEW is manual-only (repository_dispatch @mention / explicit input; the scheduled sweep dispatches force_review=false), and GitHub's ruleset still blocks the merge on any failing REQUIRED check — so an override only unblocks the codeowner-approval gate for PRs whose failing checks are non-required. Tests: normal run still skips reason=ci-failing (exit 100); FORCE_REVIEW run bypasses it. Existing ci-pending / ci-status suites stay green. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Juznz5V6su81ffSND8fg7s * chore: dev-lead update (review-changes) [skip ci-relay] * chore: dev-lead update (review-changes) [skip ci-relay] * fix(bot): address bot feedback [skip ci-relay] --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com>
…break-glass #619) (#1230) * fix(pr-review): let FORCE_REVIEW bypass the ci-failing gate (self-host break-glass #619) FORCE_REVIEW already overrides the advisory-bot, CHANGES_REQUESTED, idempotency, and cap gates for manual mention/dispatch runs — but not the ci-failing gate. So a fix to the CI gate itself couldn't be reviewed/approved through ring-0 self-host when the (buggy) gate marked its own fix PR as failing: a hard self-host deadlock with no break-glass (#619). #608 dissolved the specific CANCELLED-classification case, but the structural gap remained for the next CI-gate bug. Extend the existing break-glass: when FORCE_REVIEW=true, log a loud warning and proceed past the ci-failing gate instead of skipping. Safe by construction: FORCE_REVIEW is manual-only (repository_dispatch @mention / explicit input; the scheduled sweep dispatches force_review=false), and GitHub's ruleset still blocks the merge on any failing REQUIRED check — so an override only unblocks the codeowner-approval gate for PRs whose failing checks are non-required. Tests: normal run still skips reason=ci-failing (exit 100); FORCE_REVIEW run bypasses it. Existing ci-pending / ci-status suites stay green. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Juznz5V6su81ffSND8fg7s * chore: dev-lead update (review-changes) [skip ci-relay] * chore: dev-lead update (review-changes) [skip ci-relay] * fix(bot): address bot feedback [skip ci-relay] --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com>
…break-glass #619) (#1230) * fix(pr-review): let FORCE_REVIEW bypass the ci-failing gate (self-host break-glass #619) FORCE_REVIEW already overrides the advisory-bot, CHANGES_REQUESTED, idempotency, and cap gates for manual mention/dispatch runs — but not the ci-failing gate. So a fix to the CI gate itself couldn't be reviewed/approved through ring-0 self-host when the (buggy) gate marked its own fix PR as failing: a hard self-host deadlock with no break-glass (#619). #608 dissolved the specific CANCELLED-classification case, but the structural gap remained for the next CI-gate bug. Extend the existing break-glass: when FORCE_REVIEW=true, log a loud warning and proceed past the ci-failing gate instead of skipping. Safe by construction: FORCE_REVIEW is manual-only (repository_dispatch @mention / explicit input; the scheduled sweep dispatches force_review=false), and GitHub's ruleset still blocks the merge on any failing REQUIRED check — so an override only unblocks the codeowner-approval gate for PRs whose failing checks are non-required. Tests: normal run still skips reason=ci-failing (exit 100); FORCE_REVIEW run bypasses it. Existing ci-pending / ci-status suites stay green. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Juznz5V6su81ffSND8fg7s * chore: dev-lead update (review-changes) [skip ci-relay] * chore: dev-lead update (review-changes) [skip ci-relay] * fix(bot): address bot feedback [skip ci-relay] --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com>
…break-glass #619) (#1230) * fix(pr-review): let FORCE_REVIEW bypass the ci-failing gate (self-host break-glass #619) FORCE_REVIEW already overrides the advisory-bot, CHANGES_REQUESTED, idempotency, and cap gates for manual mention/dispatch runs — but not the ci-failing gate. So a fix to the CI gate itself couldn't be reviewed/approved through ring-0 self-host when the (buggy) gate marked its own fix PR as failing: a hard self-host deadlock with no break-glass (#619). #608 dissolved the specific CANCELLED-classification case, but the structural gap remained for the next CI-gate bug. Extend the existing break-glass: when FORCE_REVIEW=true, log a loud warning and proceed past the ci-failing gate instead of skipping. Safe by construction: FORCE_REVIEW is manual-only (repository_dispatch @mention / explicit input; the scheduled sweep dispatches force_review=false), and GitHub's ruleset still blocks the merge on any failing REQUIRED check — so an override only unblocks the codeowner-approval gate for PRs whose failing checks are non-required. Tests: normal run still skips reason=ci-failing (exit 100); FORCE_REVIEW run bypasses it. Existing ci-pending / ci-status suites stay green. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Juznz5V6su81ffSND8fg7s * chore: dev-lead update (review-changes) [skip ci-relay] * chore: dev-lead update (review-changes) [skip ci-relay] * fix(bot): address bot feedback [skip ci-relay] --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com>
…break-glass #619) (#1230) * fix(pr-review): let FORCE_REVIEW bypass the ci-failing gate (self-host break-glass #619) FORCE_REVIEW already overrides the advisory-bot, CHANGES_REQUESTED, idempotency, and cap gates for manual mention/dispatch runs — but not the ci-failing gate. So a fix to the CI gate itself couldn't be reviewed/approved through ring-0 self-host when the (buggy) gate marked its own fix PR as failing: a hard self-host deadlock with no break-glass (#619). #608 dissolved the specific CANCELLED-classification case, but the structural gap remained for the next CI-gate bug. Extend the existing break-glass: when FORCE_REVIEW=true, log a loud warning and proceed past the ci-failing gate instead of skipping. Safe by construction: FORCE_REVIEW is manual-only (repository_dispatch @mention / explicit input; the scheduled sweep dispatches force_review=false), and GitHub's ruleset still blocks the merge on any failing REQUIRED check — so an override only unblocks the codeowner-approval gate for PRs whose failing checks are non-required. Tests: normal run still skips reason=ci-failing (exit 100); FORCE_REVIEW run bypasses it. Existing ci-pending / ci-status suites stay green. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Juznz5V6su81ffSND8fg7s * chore: dev-lead update (review-changes) [skip ci-relay] * chore: dev-lead update (review-changes) [skip ci-relay] * fix(bot): address bot feedback [skip ci-relay] --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com>
…break-glass #619) (#1230) * fix(pr-review): let FORCE_REVIEW bypass the ci-failing gate (self-host break-glass #619) FORCE_REVIEW already overrides the advisory-bot, CHANGES_REQUESTED, idempotency, and cap gates for manual mention/dispatch runs — but not the ci-failing gate. So a fix to the CI gate itself couldn't be reviewed/approved through ring-0 self-host when the (buggy) gate marked its own fix PR as failing: a hard self-host deadlock with no break-glass (#619). #608 dissolved the specific CANCELLED-classification case, but the structural gap remained for the next CI-gate bug. Extend the existing break-glass: when FORCE_REVIEW=true, log a loud warning and proceed past the ci-failing gate instead of skipping. Safe by construction: FORCE_REVIEW is manual-only (repository_dispatch @mention / explicit input; the scheduled sweep dispatches force_review=false), and GitHub's ruleset still blocks the merge on any failing REQUIRED check — so an override only unblocks the codeowner-approval gate for PRs whose failing checks are non-required. Tests: normal run still skips reason=ci-failing (exit 100); FORCE_REVIEW run bypasses it. Existing ci-pending / ci-status suites stay green. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Juznz5V6su81ffSND8fg7s * chore: dev-lead update (review-changes) [skip ci-relay] * chore: dev-lead update (review-changes) [skip ci-relay] * fix(bot): address bot feedback [skip ci-relay] --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com>
…break-glass #619) (#1230) * fix(pr-review): let FORCE_REVIEW bypass the ci-failing gate (self-host break-glass #619) FORCE_REVIEW already overrides the advisory-bot, CHANGES_REQUESTED, idempotency, and cap gates for manual mention/dispatch runs — but not the ci-failing gate. So a fix to the CI gate itself couldn't be reviewed/approved through ring-0 self-host when the (buggy) gate marked its own fix PR as failing: a hard self-host deadlock with no break-glass (#619). #608 dissolved the specific CANCELLED-classification case, but the structural gap remained for the next CI-gate bug. Extend the existing break-glass: when FORCE_REVIEW=true, log a loud warning and proceed past the ci-failing gate instead of skipping. Safe by construction: FORCE_REVIEW is manual-only (repository_dispatch @mention / explicit input; the scheduled sweep dispatches force_review=false), and GitHub's ruleset still blocks the merge on any failing REQUIRED check — so an override only unblocks the codeowner-approval gate for PRs whose failing checks are non-required. Tests: normal run still skips reason=ci-failing (exit 100); FORCE_REVIEW run bypasses it. Existing ci-pending / ci-status suites stay green. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Juznz5V6su81ffSND8fg7s * chore: dev-lead update (review-changes) [skip ci-relay] * chore: dev-lead update (review-changes) [skip ci-relay] * fix(bot): address bot feedback [skip ci-relay] --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com>
…break-glass #619) (#1230) * fix(pr-review): let FORCE_REVIEW bypass the ci-failing gate (self-host break-glass #619) FORCE_REVIEW already overrides the advisory-bot, CHANGES_REQUESTED, idempotency, and cap gates for manual mention/dispatch runs — but not the ci-failing gate. So a fix to the CI gate itself couldn't be reviewed/approved through ring-0 self-host when the (buggy) gate marked its own fix PR as failing: a hard self-host deadlock with no break-glass (#619). #608 dissolved the specific CANCELLED-classification case, but the structural gap remained for the next CI-gate bug. Extend the existing break-glass: when FORCE_REVIEW=true, log a loud warning and proceed past the ci-failing gate instead of skipping. Safe by construction: FORCE_REVIEW is manual-only (repository_dispatch @mention / explicit input; the scheduled sweep dispatches force_review=false), and GitHub's ruleset still blocks the merge on any failing REQUIRED check — so an override only unblocks the codeowner-approval gate for PRs whose failing checks are non-required. Tests: normal run still skips reason=ci-failing (exit 100); FORCE_REVIEW run bypasses it. Existing ci-pending / ci-status suites stay green. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Juznz5V6su81ffSND8fg7s * chore: dev-lead update (review-changes) [skip ci-relay] * chore: dev-lead update (review-changes) [skip ci-relay] * fix(bot): address bot feedback [skip ci-relay] --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com>
…break-glass #619) (#1230) * fix(pr-review): let FORCE_REVIEW bypass the ci-failing gate (self-host break-glass #619) FORCE_REVIEW already overrides the advisory-bot, CHANGES_REQUESTED, idempotency, and cap gates for manual mention/dispatch runs — but not the ci-failing gate. So a fix to the CI gate itself couldn't be reviewed/approved through ring-0 self-host when the (buggy) gate marked its own fix PR as failing: a hard self-host deadlock with no break-glass (#619). #608 dissolved the specific CANCELLED-classification case, but the structural gap remained for the next CI-gate bug. Extend the existing break-glass: when FORCE_REVIEW=true, log a loud warning and proceed past the ci-failing gate instead of skipping. Safe by construction: FORCE_REVIEW is manual-only (repository_dispatch @mention / explicit input; the scheduled sweep dispatches force_review=false), and GitHub's ruleset still blocks the merge on any failing REQUIRED check — so an override only unblocks the codeowner-approval gate for PRs whose failing checks are non-required. Tests: normal run still skips reason=ci-failing (exit 100); FORCE_REVIEW run bypasses it. Existing ci-pending / ci-status suites stay green. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Juznz5V6su81ffSND8fg7s * chore: dev-lead update (review-changes) [skip ci-relay] * chore: dev-lead update (review-changes) [skip ci-relay] * fix(bot): address bot feedback [skip ci-relay] --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com>
…break-glass #619) (#1230) * fix(pr-review): let FORCE_REVIEW bypass the ci-failing gate (self-host break-glass #619) FORCE_REVIEW already overrides the advisory-bot, CHANGES_REQUESTED, idempotency, and cap gates for manual mention/dispatch runs — but not the ci-failing gate. So a fix to the CI gate itself couldn't be reviewed/approved through ring-0 self-host when the (buggy) gate marked its own fix PR as failing: a hard self-host deadlock with no break-glass (#619). #608 dissolved the specific CANCELLED-classification case, but the structural gap remained for the next CI-gate bug. Extend the existing break-glass: when FORCE_REVIEW=true, log a loud warning and proceed past the ci-failing gate instead of skipping. Safe by construction: FORCE_REVIEW is manual-only (repository_dispatch @mention / explicit input; the scheduled sweep dispatches force_review=false), and GitHub's ruleset still blocks the merge on any failing REQUIRED check — so an override only unblocks the codeowner-approval gate for PRs whose failing checks are non-required. Tests: normal run still skips reason=ci-failing (exit 100); FORCE_REVIEW run bypasses it. Existing ci-pending / ci-status suites stay green. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Juznz5V6su81ffSND8fg7s * chore: dev-lead update (review-changes) [skip ci-relay] * chore: dev-lead update (review-changes) [skip ci-relay] * fix(bot): address bot feedback [skip ci-relay] --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com>



Problem
FORCE_REVIEWalready overrides the advisory-bot,CHANGES_REQUESTED, idempotency, and cap gates for manual mention/dispatch runs — but not the ci-failing gate. So a fix to the CI gate itself can't be reviewed/approved through ring-0 self-host when the buggy gate marks its own fix PR as failing: a hard self-host deadlock with no break-glass (#619). #608 dissolved the specific CANCELLED case; the structural gap remained for the next CI-gate bug (and it's the same reason PRs carrying a failing non-required check — e.g.dev-lead/dispatch— sit un-approvable).Fix
When
FORCE_REVIEW=true, log a loud warning and proceed past the ci-failing gate instead of skipping.Safe by construction:
FORCE_REVIEWis manual-only —trueonly forrepository_dispatch(human @mention) or an explicitforce_reviewinput. The scheduled sweep dispatches withforce_review=false(sweep-stuck-reviews.sh: 'never force_review'), so this never fires event-driven.Tests
New
test_review_one_pr_force_ci_failing.bats: normal run still skipsreason=ci-failing(exit 100);FORCE_REVIEW=truebypasses it. Existingtest_review_one_pr_ci_pending+test_ci_status(47) stay green.bash -n+ shellcheck clean.Resolves the structural half of #619 (#608 handled the CANCELLED half).
🤖 Generated with Claude Code
https://claude.ai/code/session_01Juznz5V6su81ffSND8fg7s
Summary by CodeRabbit
New Features
FORCE_REVIEW=true.Bug Fixes
Tests