Skip to content

fix(governance): raise PR #596's line ceiling for its own review-fix commit - #598

Merged
qnbs merged 1 commit into
mainfrom
fix/pr-size-exception-596-line-ceiling
Sep 3, 2026
Merged

fix(governance): raise PR #596's line ceiling for its own review-fix commit#598
qnbs merged 1 commit into
mainfrom
fix/pr-size-exception-596-line-ceiling

Conversation

@qnbs

@qnbs qnbs commented Sep 3, 2026

Copy link
Copy Markdown
Owner

User description

Summary

  • PR fix(e2e): eliminate WelcomePortal startup/navigation nondeterminism (#532) #596's live review (CodeAnt) surfaced three genuine, narrowly-scoped gaps in files already inside its exception scope:
    • app/listenerMiddleware.ts: a symmetric encryption-disable NOOP-discard case (mirror image of the already-handled encryption-enable case).
    • services/ai/aiInferenceCacheService.ts: the reset closer now clears openPromise too (identity-checked, matching crossProjectIndexService.ts's established pattern), not just db.
    • services/storage/idbResetGate.ts: a concurrent beginIdbReset() call now joins the already-draining barrier instead of overwriting activeBarrier.
  • These were fixed in place by amending fix(e2e): eliminate WelcomePortal startup/navigation nondeterminism (#532) #596's own last commit (preserving the exact 14-commit count) rather than adding a 15th, per the exception's maxCommits ceiling.
  • This pushed the measured meaningful-line count from 1611 to 1741. maxFiles (65) and maxCommits (14) are unchanged, and no path outside the existing allowedPaths was touched.
  • This PR updates config/pr-size-exceptions.json's pr-596-532-e2e-startup-determinism entry's maxNonExemptMeaningfulLines (1611 -> 1741) to match.

Verification

Simulated the exception match locally against the rebased #596 branch:

PR_SIZE_EXCEPTION=APPLIED outcome=within target id=pr-596-532-e2e-startup-determinism pr=#596 scope=65/65 files
TOTAL_MEANINGFUL_LINES=1741 NON_EXEMPT_MEANINGFUL_LINES=1741/1741 commits=14/14
BASE_GOVERNED=YES IDENTITY_MATCH=YES PATH_SCOPE_MATCH=YES
EFFECTIVE_LIMITS=files<=65;nonExemptLines<=1741;commits<=14

Test plan

Summary by Sourcery

Chores:


Summary by cubic

Updates the PR size exception for PR #596 to allow its new line count after its review-fix commit.

PR #596's review surfaced three small gaps in files already covered by the exception, fixed by amending its last commit rather than adding a new one. That raised the measured meaningful-line count from 1611 to 1741, so the exception's maxNonExemptMeaningfulLines is updated accordingly. maxFiles and maxCommits are unchanged.

Written for commit 9fc0cba. Summary will update on new commits.

Review in cubic


CodeAnt-AI Description

Raise the approved review limit for PR #596 after narrowly scoped fixes

What Changed

Impact

✅ PR #596 remains eligible for its governance exception
✅ No additional files or commits are admitted
✅ Review limits match the amended PR content

💡 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:

@codeant-ai ask: Your question here

This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.

Example

@codeant-ai ask: Can you suggest a safer alternative to storing this secret?

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:

@codeant-ai: Your feedback here

This helps CodeAnt AI learn and adapt to your team's coding style and standards.

Example

@codeant-ai: Do not flag unused imports.

Retrigger review

Ask CodeAnt AI to review the PR again, by typing:

@codeant-ai: review

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.

…commit

#596's live review surfaced three genuine gaps in files already inside
its exception scope, fixed by amending its last commit (preserving the
14-commit ceiling) rather than adding a 15th. That pushed the measured
meaningful-line count from 1611 to 1741; maxFiles and maxCommits are
unchanged, and no path outside the existing allowedPaths was touched.
@codeant-ai

codeant-ai Bot commented Sep 3, 2026

Copy link
Copy Markdown

🤖 CodeAnt AI — Review Status

Status Commit Started (UTC) Finished (UTC)
✅ Reviewed your PR 9fc0cba Sep 03, 2026 · 19:13 19:14

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry @qnbs, you've used your own review budget of 250,000 diff characters for the last 7 days.

You can request another review in 10 hours and 35 minutes by commenting @sourcery-ai review. Upgrade to get a review now.

@vercel

vercel Bot commented Sep 3, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
worldscript-studio Ready Ready Preview Sep 3, 2026 7:14pm UTC

@codeant-ai

codeant-ai Bot commented Sep 3, 2026

Copy link
Copy Markdown

Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

@coderabbitai

coderabbitai Bot commented Sep 3, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 17 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 70 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.
You're only billed for reviews past your plan's rate limits ($0.25/file).

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Essentials

Run ID: 86888674-5b8a-44ad-9081-e837e9d09181

📥 Commits

Reviewing files that changed from the base of the PR and between ca85039 and 9fc0cba.

📒 Files selected for processing (1)
  • config/pr-size-exceptions.json

Comment @coderabbitai help to get the list of available commands.

@sourcery-ai

sourcery-ai Bot commented Sep 3, 2026

Copy link
Copy Markdown
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

This PR updates the governance exception for PR #596 to reflect three in-scope review fixes amended into its existing 14th commit, raising the meaningful-line ceiling from 1611 to 1741 while preserving the 65-file limit, allowed paths, and commit count; lint, prepush checks, and local exception matching pass.

File-Level Changes

Change Details Files
Raise the governed meaningful-line ceiling for PR #596 after incorporating three in-scope review fixes without changing its file or commit limits.
  • Increase the exception's meaningful-line limit from 1611 to 1741.
  • Keep the existing 65-file and 14-commit ceilings unchanged.
  • Preserve the allowed path scope while amending the fixes into the existing final commit.
config/pr-size-exceptions.json
Address three narrowly scoped correctness gaps identified during PR #596's live review.
  • Handle the symmetric encryption-disable NOOP discard case.
  • Clear identity-matched openPromise state when resetting the AI inference cache.
  • Make concurrent IDB reset callers join the active draining barrier instead of replacing it.
app/listenerMiddleware.ts
services/ai/aiInferenceCacheService.ts
services/storage/idbResetGate.ts

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@what-the-diff

what-the-diff Bot commented Sep 3, 2026

Copy link
Copy Markdown

PR Summary

  • Adjusted the Limit for Non-Exempt Meaningful Lines
    The cap for non-exempt purposeful lines in the config file has been increased from 1611 to 1741. This modification allows more meaningful code to be written before it triggers any warnings or limits.

  • Updated Reason for PR Changes
    The motive behind the changes in this pull request has been modified to focus on implementing an IndexedDB (which is a type of browser-based database) reset-quiescence contract and enhancing current approaches to manage these IndexedDB connections.

  • Resolved Bugs and Enhanced Performance
    This PR documents numerous bug fixes and performance enhancements. It focuses on preventing potential race conditions (which are instances wherein the output depends on the sequence or timing of other uncontrollable events) and retaining proper handling of database operations during resets - which help make the system more robust and efficient.

  • Refined Allowed Paths
    The allowedPaths array has been revised to reflect correct paths, considering changes from other pull requests being processed simultaneously. This keeps our file paths accurate and up to date.

@deepsource-io

deepsource-io Bot commented Sep 3, 2026

Copy link
Copy Markdown

DeepSource Code Review

We reviewed changes in ca85039...9fc0cba on this pull request. Below is the summary for the review, and you can see the individual issues we found as inline review comments.

See full review on DeepSource ↗

PR Report Card

Overall Grade   Security  

Reliability  

Complexity  

Hygiene  

Code Review Summary

Analyzer Status Updated (UTC) Details
Docker Sep 3, 2026 7:13p.m. Review ↗
Python Sep 3, 2026 7:13p.m. Review ↗
Rust Sep 3, 2026 7:13p.m. Review ↗
Shell Sep 3, 2026 7:13p.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-ai codeant-ai Bot added the size:XS This PR changes 0-9 lines, ignoring generated files label Sep 3, 2026

@amazon-q-developer amazon-q-developer Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR correctly updates the maxNonExemptMeaningfulLines ceiling for PR #596 from 1611 to 1741, reflecting the measured line count after review-driven fixes. The JSON syntax is valid, the change is well-documented in the updated reason field, and the update aligns with the verification output provided in the PR description. No blocking issues identified.


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.

@codeant-ai

codeant-ai Bot commented Sep 3, 2026

Copy link
Copy Markdown

🏁 CodeAnt Quality Gate Results

Commit: 9fc0cbaa
Scan Time: 2026-09-03 19:14:39 UTC

✅ Overall Status: PASSED

Quality Gate Details

Quality Gate Status Details
Secrets ✅ PASSED 0 secrets found
Duplicate Code ✅ PASSED 0.0% duplicated
SAST ✅ PASSED No security issues
Bugs ✅ PASSED Rating S: No bugs
IAC ✅ PASSED Rating S: No issues

View Full Results

@codescene-access codescene-access Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@codecov

codecov Bot commented Sep 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@qnbs
qnbs merged commit 5073037 into main Sep 3, 2026
42 checks passed
@qnbs
qnbs deleted the fix/pr-size-exception-596-line-ceiling branch September 3, 2026 19:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS This PR changes 0-9 lines, ignoring generated files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant