Repository navigation
feat(scan): raise the default total scan limit to 256 MiB (0.2.1) - #58
Merged
Merged
Conversation
Repositories with more than 64 MiB of scannable text failed with scan_error: LimitExceeded under the default scan configuration. Raise the default total limit to 256 MiB. The 1 MiB per-file and 10,000-file limits are unchanged. The scan snapshot schema now allows total_bytes up to the new default. The limit feeds the scan input fingerprint, so existing derived indexes rebuild once. Add a test that scans 65 MiB with the default configuration and checks the 256 MiB boundary on the default scanner's byte budget. Bump bran-cli to 0.2.1 and add CHANGELOG.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
DEFAULT_MAX_TOTAL_BYTES) from 64 MiB to 256 MiB. Repositories with more than 64 MiB of scannable text failed withscan_error: LimitExceeded. The 1 MiB per-file and 10,000-file limits are unchanged.total_bytesmaximum inschemas/repository-scan-snapshot.schema.jsonto match.docs/deployment-profile.md(the separate 64 MiBpacked-refslimit is unchanged).CHANGELOG.md.The limit feeds the scan input fingerprint, so existing derived indexes rebuild once after upgrading.
Tests
default_total_limit_accepts_256_mib_and_rejects_more: scans 65 MiB with the default configuration, and checks that the default scanner's byte budget accepts a file ending at exactly 256 MiB and rejects one byte more withLimitExceeded. It fails onmainwithLimitExceeded { ..., limit: 67108864 }and passes here in about 1.2 s../tools/ci/check.sh --fast: pass.🤖 Generated with Claude Code