Skip to content

fix(governance): raise PR #596's ceilings for its second review-fix wave - #599

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

fix(governance): raise PR #596's ceilings for its second review-fix wave#599
qnbs merged 1 commit into
mainfrom
fix/pr-size-exception-596-wave2

Conversation

@qnbs

@qnbs qnbs commented Sep 3, 2026

Copy link
Copy Markdown
Owner

User description

Summary

PR #596's live review (CodeAnt, CodeRabbit, cubic — independently) surfaced a second wave of genuine, narrowly-scoped gaps in files already inside its exception scope:

  • services/localFirst/docPersistence.ts: the reset closer unregistered before its underlying provider.destroy() settled (couldn't be awaited by the barrier), and a rejected destroy() was silently swallowed before the reset gate ever saw it.
  • services/storage/idbResetGate.ts: a closer registering after the drain loop already emptied (but before endIdbReset()) was never invoked at all; a closer that itself registers another closer mid-drain could be invoked twice via the live Set iteration.
  • services/storage/idbCore.ts: concurrent initDB() callers before the first open resolved each started their own indexedDB.open(), letting the last onsuccess silently orphan every earlier connection.
  • services/factoryResetService.ts: deleteDatabase() rejected immediately on onblocked, releasing the reset gate while deletion was still asynchronously pending — now bounded by a timeout instead.
  • services/sceneRevisionService.ts: missing the identity check loraAdapterService.ts already had.
  • Plus a Hebrew locale grammar fix, a dead data-testid removal, and several test-only wording/mock-leak fixes.

These were fixed as a new 15th commit on #596 (a materially separate review round from the prior wave, not amended). components/settings/FactoryResetDangerZone.tsx's dead-testid removal reverted that file to byte-identical with main, so it drops out of allowedPaths; tests/unit/storage/idbCore.test.ts is a new regression-test file added in its place.

This PR updates config/pr-size-exceptions.json's pr-596-532-e2e-startup-determinism entry: maxCommits (14 → 15), maxNonExemptMeaningfulLines (1741 → 1877), and swaps the one allowedPaths entry. No other figures change.

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=1877 NON_EXEMPT_MEANINGFUL_LINES=1877/1877 commits=15/15
BASE_GOVERNED=YES IDENTITY_MATCH=YES PATH_SCOPE_MATCH=YES
EFFECTIVE_LIMITS=files<=65;nonExemptLines<=1877;commits<=15

Test plan

Summary by Sourcery

Enhancements:


CodeAnt-AI Description

Update the PR size exception for the second review-fix wave

What Changed

  • Raises the allowed commit count from 14 to 15 and the meaningful-line ceiling from 1,741 to 1,877 for PR fix(e2e): eliminate WelcomePortal startup/navigation nondeterminism (#532) #596
  • Removes the reverted factory-reset UI file from the approved paths
  • Adds the new IndexedDB core regression-test file to the approved paths
  • Records the additional reset, database-opening, deletion, locale, and test fixes covered by the updated exception

Impact

✅ Accurate governance limits for PR #596
✅ Regression coverage for concurrent IndexedDB opens
✅ Approved file scope matches the current PR

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


Summary by cubic

Updates PR #596's size-exception ceilings in config/pr-size-exceptions.json to cover its second review-fix wave.

  • The wave fixed reset-gate races in docPersistence.ts, idbResetGate.ts, idbCore.ts, factoryResetService.ts, and sceneRevisionService.ts, plus test-only fixes; the idbCore.ts fix also gained a live-handle guard folded into the same 15th commit.
  • FactoryResetDangerZone.tsx reverted to byte-identical with main and drops from allowedPaths; tests/unit/storage/idbCore.test.ts joins in its place.
  • maxCommits rises 14→15 and maxNonExemptMeaningfulLines rises 1741→1900; maxFiles stays 65.

Written for commit 0da93aa. Summary will update on new commits.

Review in cubic

@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 9 hours and 46 minutes by commenting @sourcery-ai review. Upgrade to get a review now.

@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 9c914ca Sep 03, 2026 · 20:02 20:03

@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 8:45pm 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 13 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: 0ff1b37f-00a2-48c6-b0c4-5fbacb6600dd

📥 Commits

Reviewing files that changed from the base of the PR and between 5073037 and 0da93aa.

📒 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

Updates PR #596's size-exception entry to account for its 15th commit, 136 additional meaningful lines, and the replacement of a reverted settings-file path with the new IndexedDB regression tests; the PR description reports that lint, pre-push checks, and local exception matching all pass.

File-Level Changes

Change Details Files
Raises the governance exception ceilings for PR #596's separately committed second review-fix wave.
  • Increases the permitted commit count from 14 to 15.
  • Increases the permitted non-exempt meaningful-line limit from 1741 to 1877.
  • Replaces the removed dead-testid path with the new IndexedDB regression-test path in the allowed-path scope.
  • Leaves all other exception figures unchanged.
config/pr-size-exceptions.json

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

@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 PR size exception configuration for PR #596's second review wave. The changes are internally consistent: one file dropped from and one added to allowedPaths (maintaining the 65-file count), maxCommits incremented from 14 to 15, and maxNonExemptMeaningfulLines raised from 1741 to 1877. The verification output confirms the exception will apply as intended. 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.

@deepsource-io

deepsource-io Bot commented Sep 3, 2026

Copy link
Copy Markdown

DeepSource Code Review

We reviewed changes in 5073037...0da93aa 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 8:46p.m. Review ↗
Python Sep 3, 2026 8:46p.m. Review ↗
Rust Sep 3, 2026 8:46p.m. Review ↗
Shell Sep 3, 2026 8:46p.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 commented Sep 3, 2026

Copy link
Copy Markdown

🏁 CodeAnt Quality Gate Results

Commit: 0da93aa4
Scan Time: 2026-09-03 20:46:27 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[bot]

This comment was marked as outdated.

@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!

CodeAnt, CodeRabbit, and cubic independently surfaced a second wave of
genuine reset-gate gaps (docPersistence.ts closer-unregister timing and
swallowed destroy() failures, idbResetGate.ts late-closer and
double-invocation races, idbCore.ts concurrent-open orphaning,
factoryResetService.ts onblocked/onsuccess ordering, plus test-only
fixes), fixed as a new 15th commit. FactoryResetDangerZone.tsx's dead
data-testid removal reverted that file to byte-identical with main, so
it drops from allowedPaths; tests/unit/storage/idbCore.test.ts is a new
regression-test file added in its place. A same-review-cycle coderabbit
follow-up then found the idbCore.ts fix also needed a live-handle guard
(not just single-flight) so a live sibling database isn't reopened when
only the other one needs a fresh open -- folded into the same 15th
commit. maxCommits: 14 -> 15, maxNonExemptMeaningfulLines: 1741 -> 1900,
both exact measurements.
@qnbs
qnbs force-pushed the fix/pr-size-exception-596-wave2 branch from 9c914ca to 0da93aa Compare September 3, 2026 20:44

@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.

@qnbs
qnbs merged commit 2c7a6ca into main Sep 3, 2026
41 checks passed
@qnbs
qnbs deleted the fix/pr-size-exception-596-wave2 branch September 3, 2026 21:11
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