[GH-ISSUE #180] [Issue]: CodeRabbit gate can pass after an incomplete rate-limited review #93

Closed
opened 2026-10-20 17:24:17 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @thetopham on GitHub (Aug 1, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/180

Originally assigned to: @thetopham on GitHub.

Summary

The Marinara-Agents staging merge gate can appear green even when CodeRabbit did not complete a fresh review of the pull request head. PR #164 received a Review limit reached / couldn't start this review warning for its final commit range, while the CodeRabbit status context was still SUCCESS and the PR merged.

This is not only a cosmetic status mismatch. A valid outside-diff data-integrity finding remained in an earlier CodeRabbit review body, had no review thread that could stay unresolved, and was still present in the merged source.

Affected package

Catalog/repository pull-request governance (observed on the World Maps 1.2.5 release PR).

Expected behavior

  • A ready PR cannot satisfy the CodeRabbit gate unless a complete review covers the current head commit.
  • A rate-limited, skipped, cancelled, or otherwise incomplete review must remain non-successful or require an explicit maintainer fallback review before merge.
  • Actionable outside-diff findings must be represented in a state that reviewers can see and resolve before merge.
  • A bot reply confirming individual fixes must not be mistaken for a complete current-head review.

Actual behavior

On #164:

  1. CodeRabbit completed a review against an earlier head and included an outside-diff finding that active locations could bypass the new archived-only permanent-deletion rule.
  2. Follow-up commits addressed the inline shared-world/catalog findings but did not address the outside-diff deletion finding.
  3. For the final commit range, CodeRabbit posted Review limit reached and said it could not start the review.
  4. The PR still showed a successful CodeRabbit status context and merged into staging.
  5. The valid deletion defect remained in World Maps 1.2.5 and current 1.2.6 staging source; it is now tracked separately in #178.

Steps to reproduce

  1. Open a ready PR with CodeRabbit enabled.
  2. Receive an initial CodeRabbit review and push follow-up commits.
  3. Reach the CodeRabbit review limit before a complete review of the final head.
  4. Have the bot post its rate-limit warning and/or reply to existing inline threads.
  5. Observe whether the CodeRabbit status context becomes or remains successful even though no complete review covers the current head.
  6. Verify that branch policy permits the PR to merge with that status.

Environment

  • Marinara Engine version: N/A
  • Package version: Repository workflow; observed during World Maps 1.2.5
  • Install type: N/A
  • OS + version: GitHub-hosted pull request checks
  • Browser or app shell: GitHub

Logs, screenshots, or video

Evidence is visible on PR #164:

  • The bot comment says Review limit reached and we couldn't start this review for the final commit range.
  • The PR check rollup records the CodeRabbit status context as SUCCESS.
  • The PR merged.
  • The active-location deletion finding remained in the earlier review body and in the merged code, now tracked by #178.

Additional context

Possible acceptance criteria:

  • Detect a CodeRabbit rate-limit/incomplete-review marker and fail a repository-owned gate for ready PRs.
  • Verify that the latest complete CodeRabbit review corresponds to the current PR head SHA, not only that a status named CodeRabbit is green.
  • Define a narrow maintainer fallback when the external review service is unavailable, including explicit review of all prior review-body findings and the manual test checklist.
  • Add a PR checklist/gate check that distinguishes inline thread resolution from actionable findings emitted only in a top-level review body.

This issue is about making the existing documented gate fail closed. It does not request automatic merging or a broader release process.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @thetopham on GitHub (Aug 1, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/180 Originally assigned to: @thetopham on GitHub. ## Summary The Marinara-Agents staging merge gate can appear green even when CodeRabbit did not complete a fresh review of the pull request head. PR #164 received a **Review limit reached / couldn't start this review** warning for its final commit range, while the `CodeRabbit` status context was still `SUCCESS` and the PR merged. This is not only a cosmetic status mismatch. A valid outside-diff data-integrity finding remained in an earlier CodeRabbit review body, had no review thread that could stay unresolved, and was still present in the merged source. ## Affected package Catalog/repository pull-request governance (observed on the World Maps 1.2.5 release PR). ## Expected behavior - A ready PR cannot satisfy the CodeRabbit gate unless a complete review covers the current head commit. - A rate-limited, skipped, cancelled, or otherwise incomplete review must remain non-successful or require an explicit maintainer fallback review before merge. - Actionable outside-diff findings must be represented in a state that reviewers can see and resolve before merge. - A bot reply confirming individual fixes must not be mistaken for a complete current-head review. ## Actual behavior On #164: 1. CodeRabbit completed a review against an earlier head and included an outside-diff finding that active locations could bypass the new archived-only permanent-deletion rule. 2. Follow-up commits addressed the inline shared-world/catalog findings but did not address the outside-diff deletion finding. 3. For the final commit range, CodeRabbit posted **Review limit reached** and said it could not start the review. 4. The PR still showed a successful `CodeRabbit` status context and merged into `staging`. 5. The valid deletion defect remained in World Maps 1.2.5 and current 1.2.6 staging source; it is now tracked separately in #178. ## Steps to reproduce 1. Open a ready PR with CodeRabbit enabled. 2. Receive an initial CodeRabbit review and push follow-up commits. 3. Reach the CodeRabbit review limit before a complete review of the final head. 4. Have the bot post its rate-limit warning and/or reply to existing inline threads. 5. Observe whether the `CodeRabbit` status context becomes or remains successful even though no complete review covers the current head. 6. Verify that branch policy permits the PR to merge with that status. ## Environment - Marinara Engine version: N/A - Package version: Repository workflow; observed during World Maps 1.2.5 - Install type: N/A - OS + version: GitHub-hosted pull request checks - Browser or app shell: GitHub ## Logs, screenshots, or video Evidence is visible on PR #164: - The bot comment says **Review limit reached** and **we couldn't start this review** for the final commit range. - The PR check rollup records the `CodeRabbit` status context as `SUCCESS`. - The PR merged. - The active-location deletion finding remained in the earlier review body and in the merged code, now tracked by #178. ## Additional context Possible acceptance criteria: - Detect a CodeRabbit rate-limit/incomplete-review marker and fail a repository-owned gate for ready PRs. - Verify that the latest complete CodeRabbit review corresponds to the current PR head SHA, not only that a status named `CodeRabbit` is green. - Define a narrow maintainer fallback when the external review service is unavailable, including explicit review of all prior review-body findings and the manual test checklist. - Add a PR checklist/gate check that distinguishes inline thread resolution from actionable findings emitted only in a top-level review body. This issue is about making the existing documented gate fail closed. It does not request automatic merging or a broader release process. ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-20 17:24:17 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Agents#93
No description provided.