fix(governance): retarget PR size exception from #583 to #596 - #597
Conversation
PR #583 could not be reopened after its branch was force-pushed during the size recompute -- GitHub permanently blocks reopening a closed PR once its head branch has been force-pushed or recreated. PR #596 was opened from the identical branch/commit as #583's successor; this updates the pr-size-exceptions.json entry's prNumber (and id) to match so check-pr-size.mjs's identity match applies to the live PR. No other figures in the entry change.
🤖 CodeAnt AI — Review Status
|
Thanks for using CodeAnt! 🎉We're free for open-source projects. if you're enjoying it, help us grow by sharing. Share on X · |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Review limit reachedNext included review available in 51 minutes. View limit detailsLimit details: You’ve used the included review currently available. Your 71 included PR review attempts over the past 7 days set your current allowance at 1 review per hour. Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. Review configuration: ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Essentials Run ID: 📒 Files selected for processing (1)
Comment |
Reviewer's guide (collapsed on small PRs)Reviewer's GuideUpdates the governance exception registry to recognize PR #596, the unchanged successor to force-push-blocked PR #583, allowing the existing 65-file/1611-line/14-commit exception to match and pass the PR Size Governance check. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
PR Summary
|
|
|
Overall Grade |
Security Reliability Complexity Hygiene |
Code Review Summary
| Analyzer | Status | Updated (UTC) | Details |
|---|---|---|---|
| Docker | Sep 3, 2026 6:40p.m. | Review ↗ | |
| Python | Sep 3, 2026 6:40p.m. | Review ↗ | |
| Rust | Sep 3, 2026 6:40p.m. | Review ↗ | |
| Shell | Sep 3, 2026 6:40p.m. | Review ↗ |
Important
AI Review is run only on demand for your team. We're only showing results of static analysis review right now. To trigger AI Review, comment @deepsourcebot review on this thread.
🏁 CodeAnt Quality Gate ResultsCommit: ✅ Overall Status: PASSEDQuality Gate Details
|
There was a problem hiding this comment.
This PR correctly retargets the PR size exception from #583 to #596 following GitHub's permanent block on reopening #583 after a force-push. The changes are minimal and precise: updating the id field, prNumber field, and appending an identity note to the reason field. All technical details (maxFiles: 65, maxNonExemptMeaningfulLines: 1611, maxCommits: 14, allowedPaths, and headRef) remain unchanged, correctly reflecting that PR #596 contains identical content to #583. The configuration update is internally consistent and will allow the PR Size Governance check to correctly apply the exception to PR #596.
Approved for merge.
You can now have the agent implement changes and create commits directly on your pull request's source branch. Simply comment with /q followed by your request in natural language to ask the agent to make changes.
There was a problem hiding this comment.
No application code in the PR — skipped Code Health checks.
See analysis details in CodeScene
Quality Gate Profile: The Bare Minimum
Install CodeScene MCP: safeguard and uplift AI-generated code. Catch issues early with our IDE extension and CLI tool.
There was a problem hiding this comment.
No issues found across 1 file
You’re at about 96% of the monthly reviewed-line limit. You may want to disable incremental reviews to conserve quota. Reviews will continue until that limit is exceeded. If you need help avoiding interruptions, please contact contact@cubic.dev.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
User description
Summary
fix/532-e2e-startup-determinism) was force-pushed during a size-exception recompute -- GitHub returns a permanent422(state cannot be changed ... branch was force-pushed or recreated) once a closed PR's branch has been force-pushed, with no recovery for that PR number.config/pr-size-exceptions.json'spr-583-532-e2e-startup-determinismentry still pointedprNumberat583, socheck-pr-size.mjs's identity match (repository+prNumber+baseRef+headRef) does not apply to fix(e2e): eliminate WelcomePortal startup/navigation nondeterminism (#532) #596 -- its own PR Size Governance check fails against the fixed absolute tier (30 files/3000 lines/15 commits) instead of the PR-specific 65/1611/14 ceiling.prNumber(583 -> 596) andid(pr-583-...->pr-596-...) to match the live PR, and appends an identity note to thereasonfield documenting the fix(e2e): eliminate WelcomePortal startup/navigation nondeterminism (#532) #583 -> fix(e2e): eliminate WelcomePortal startup/navigation nondeterminism (#532) #596 succession. No other figures (65/1611/14,allowedPaths, the recompute methodology) change.Verification
Simulated the exception match locally via a synthetic base commit +
GITHUB_EVENT_PATHpayload matching #596's real base/head (resolveException()reads the registry viagit show <base>:...and requires PR identity from the event payload, so a bare CLI run can't exercise this path):Test plan
pnpm run lint-- cleanpnpm exec vitest run tests/unit/tooling/checkPrSize.test.ts-- 57/57 passedpnpm run ci:prepush-- all local checks PASS (classification AMBIGUOUS, cloud validation required as normal)PR_SIZE_EXCEPTION=APPLIEDonce this mergesSummary by Sourcery
Bug Fixes:
CodeAnt-AI Description
Retarget the PR size exception from closed PR #583 to successor PR #596
What Changed
Impact
✅ PR #596 receives its intended size review allowance✅ Prevents the exception from being rejected due to a stale PR number✅ Preserves the existing governance limits💡 Usage Guide
Checking Your Pull Request
Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.
Talking to CodeAnt AI
Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:
This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.
Example
Preserve Org Learnings with CodeAnt
You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:
This helps CodeAnt AI learn and adapt to your team's coding style and standards.
Example
Retrigger review
Ask CodeAnt AI to review the PR again, by typing:
Check Your Repository Health
To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.
Summary by cubic
Retargets the PR size exception for the E2E startup determinism work from #583 to #596. #583 can't be reopened because GitHub permanently blocks reopening a closed PR after its branch is force-pushed, so the exception entry's
prNumberandidnow point to the live #596, which was opened from the identical branch/commit. All other exception figures (65 files/1611 lines/14 commits, allowed paths, methodology) are unchanged.Written for commit 0228855. Summary will update on new commits.