Skip to content

chore(governance): add scoped PR-size exception for PR #564 - #576

Merged
qnbs merged 1 commit into
mainfrom
chore/pr-size-exception-564
Sep 1, 2026
Merged

chore(governance): add scoped PR-size exception for PR #564#576
qnbs merged 1 commit into
mainfrom
chore/pr-size-exception-564

Conversation

@qnbs

@qnbsqnbs commented Sep 1, 2026

Copy link
Copy Markdown
Owner

User description

Summary

Why

PR #564's cumulative diff across its 15-commit iterative security/durability/migration/recovery review-convergence history reached 3138 meaningful lines, just over the docs/governance absolute ceiling (3000). Splitting the contract now, or compressing content merely to fit under the limit, was rejected as worse for review and security quality than a transparent, narrowly-scoped, documented exception — exactly the case this exception mechanism exists for.

Test plan

Summary by Sourcery

Chores:


CodeAnt-AI Description

Allow the secure-storage contract review PR to pass size checks under a narrowly scoped exception

What Changed

  • PR docs(core): define R-15 secure storage contract (#445) #564 may include up to 15 commits and three approved documentation files
  • The secure-storage contract document can contain up to 3,200 meaningful lines
  • Related ledger and classification changes remain limited to 10 non-exempt meaningful lines
  • No executable or production source files are covered by the exception

Impact

✅ Secure-storage documentation can complete review without being rejected for size
✅ PR-size checks retain strict limits on unrelated changes
✅ Production code remains subject to the standard size rules

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

  • Chores
    • Updated project contribution settings to accommodate an approved documentation-related change.
    • Adjusted review limits and scope for this exception without affecting product functionality.

The R-15 secure storage contract (docs/native/R15-SECURE-STORAGE-CONTRACT.md)
grew past the absolute meaningful-line ceiling through iterative security,
durability, migration, recovery, and data-integrity review convergence.
check-pr-size.mjs loads config/pr-size-exceptions.json from the PR's base
ref, so PR #564 cannot self-authorize this exception -- it must land on
main first. Scoped narrowly to PR #564 / design/445-r15-storage-contract:
3 allowed paths (all docs, no executables), a 10-line non-exempt ceiling
for the two minimal ledger/classification touch-ups, and a 3200-line
supplemental allowance for the contract document itself as a hard ceiling,
not a new target.
@codeant-ai

codeant-aiBot commented Sep 1, 2026

Copy link
Copy Markdown

🤖 CodeAnt AI — Review Status

StatusCommitStarted (UTC)Finished (UTC)
✅ Reviewed your PRbba92b3Sep 01, 2026 · 22:2922:30

@vercel

vercelBot commented Sep 1, 2026

Copy link
Copy Markdown

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

ProjectDeploymentActionsUpdated
worldscript-studioReadyReadyPreviewSep 1, 2026 10:30pm UTC

@codeant-ai

codeant-aiBot commented Sep 1, 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

@sourcery-ai

sourcery-aiBot commented Sep 1, 2026

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

Reviewer's Guide

The PR adds a base-ref-loaded, narrowly scoped size exception for PR #564, allowing its 3138-line iterative design diff to pass the documented governance ceiling while preserving strict path, file-type, and line-count limits.

File-Level Changes

ChangeDetailsFiles
Adds a narrowly scoped PR-size exception for the R-15 secure storage contract design PR.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-aicodeant-aiBot added the size:S This PR changes 10-29 lines, ignoring generated files label Sep 1, 2026
@deepsource-io

deepsource-ioBot commented Sep 1, 2026

Copy link
Copy Markdown

DeepSource Code Review

We reviewed changes in 3dff030...bba92b3 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 GradeSecurity

Reliability

Complexity

Hygiene

Code Review Summary

AnalyzerStatusUpdated (UTC)Details
DockerSep 1, 2026 10:29p.m.Review ↗
JavaScriptSep 1, 2026 10:29p.m.Review ↗
PythonSep 1, 2026 10:29p.m.Review ↗
RustSep 1, 2026 10:29p.m.Review ↗
ShellSep 1, 2026 10:29p.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-aiBot commented Sep 1, 2026

Copy link
Copy Markdown

🏁 CodeAnt Quality Gate Results

Commit:bba92b31
Scan Time: 2026-09-01 22:31:28 UTC

✅ Overall Status: PASSED

Quality Gate Details

Quality GateStatusDetails
Secrets✅ PASSED0 secrets found
Duplicate Code✅ PASSED0.0% duplicated
SAST✅ PASSEDNo security issues
Bugs✅ PASSEDRating S: No bugs
IAC✅ PASSEDRating S: No issues

View Full Results

@sourcery-aisourcery-aiBot 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.

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@amazon-q-developeramazon-q-developerBot 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.

Review Summary

This PR adds a narrowly-scoped exception to the PR size governance for PR #564. The configuration change is clean and follows the established pattern.

Findings:

  • ✅ JSON syntax is valid and well-formed
  • ✅ Exception structure is consistent with existing entry (PR #539)
  • ✅ Scope is appropriately restrictive (3 markdown files only, no executables)
  • ✅ Line limits align with PR description (10 non-exempt lines, 3200 supplemental for contract)
  • ✅ Clear justification provided in the reason field

Test Coverage:
Per the PR description, unit tests pass (56/56) and the exception was validated against PR #564's actual SHAs.

No blocking issues identified. The change is ready 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.

@coderabbitai

coderabbitaiBot commented Sep 1, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Essentials

Run ID: dc1c6681-e856-4a13-b848-fac393cf4b41

📥 Commits

Reviewing files that changed from the base of the PR and between 3dff030 and bba92b3.

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

Included review availability: 0 reviews are currently available. Your included PR review attempts over the past 7 days set your current allowance at 1 review per hour.


📝 Walkthrough

Walkthrough

The change adds a one-time PR-size exception for the R15 secure-storage contract review. The exception defines file, commit, line, and documentation limits and restricts changes to three documentation files.

Changes

Secure-storage contract review

Layer / File(s)Summary
Configure review size exception
config/pr-size-exceptions.json
Adds limits of 3 files, 15 commits, and 10 non-exempt meaningful lines, plus a 3,200-line secure-storage contract allowance. The exception permits only three specified documentation files.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Merge Risk:⚪ Minimal · up to bba92

This change adds a narrowly scoped documentation-only PR-size exception without modifying production code or existing exceptions; no actionable merge-blocking risk remains after normal checks and review.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check nameStatusExplanation
Description Check✅ PassedCheck skipped - CodeRabbit’s high-level summary is enabled.
Title check✅ PassedThe title clearly and concisely describes the main change: adding a scoped PR-size exception for PR #564.
Docstring Coverage✅ PassedNo functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check✅ PassedCheck skipped because no linked issues were found for this pull request.
Out of Scope Changes check✅ PassedCheck skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/pr-size-exception-564

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

@codecov

codecovBot commented Sep 1, 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 5a3ff80 into mainSep 1, 2026
55 of 57 checks passed
@qnbs
qnbs deleted the chore/pr-size-exception-564 branch September 1, 2026 23:06
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:SThis PR changes 10-29 lines, ignoring generated files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@qnbs