ci: require Codex fixes to land on the PR head branch - #1477
Conversation
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in:41 minutes Your organization has reached its usage spending cap. Adjust your spending cap in the billing tab. 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: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (7)
Comment |
This pull request has been ignored for the connected project Preview Branches by Supabase. |
Summary
Testing
|
Uh oh!
There was an error while loading. Please reload this page.
Motivation
@codexauto-fix replies from claiming fixes that never land by binding repair requests to the exact repository and PR head branch and refusing detached/synthetic work branches.Description
.github/workflows/codex-autofix-review-comments.ymlto embed the intended repository/PR-head into the request prompt, add machine-readable result markers (<!-- codex-thread-result:fixed-head:<sha> -->and<!-- codex-thread-result:no-change -->), and validate that a reported fixed commit equals the PR head before resolving a thread.AGENTS.mdanddocs/codex-review-protocol.mdto require publishing fixes through the authenticated connector and to document the new result markers and verification discipline.scripts/check-codex-autofix-workflow.mjsto assert the new markers, routing, and verification rules.tests/codex-autofix-workflow.test.tsto cover intended-branch routing, dedupe behavior, malformed results, mismatched-head refusal, and no-change dispositions.docs/outstanding-issues.mdand updated the outstanding-issues guard where relevant.Testing
npm run check:codex-autofix-workflowand the guard passed.npm run test -- tests/codex-autofix-workflow.test.tsand the updated test file passed (all included assertions green).npm run format,npm run check:outstanding-issues, andnpm run verify:cheap(dry and full local gates as part of the PR-local dry run);verify:cheapcompleted successfully (full test suite run completed: all unit tests passed with a small number skipped per environment).ENETUNREACH, so implementation and checks relied on the repository’s existing hardening and executable guards rather than an external docs fetch.Codex Task