Repository navigation
feat(limits)!: raise disk-backed admission defaults for large ordinary targets - #14653
Merged
Merged
Conversation
…y targets Raise four per-call input defaults whose work streams from disk or reads by range, so large but ordinary targets are admitted without a retry: - inspect_sqlite_database producer_limits.input_bytes: 256 MiB -> 2 GiB. The database and WAL stream into a private on-disk snapshot that node:sqlite reads by page with mmap disabled; the worker heap stays 256 MiB. - inspect_go_binary max_input_bytes: 256 MiB -> 2 GiB. One streaming hash pass, a header prefix and range reads with chunked build-info search. - inspect_rust_binary producer_limits.input_bytes: 256 MiB -> 2 GiB. One streaming hash pass, a header prefix and a windowed rustc scan. - inspect_nuget_nupkg max_file_bytes: 64 MiB -> 256 MiB, above nuget.org's 250 MB package ceiling. The ZIP is read by range; only the directory and .nuspec are retained. Descriptions and remediation text that restated the old Rust and NuGet values now derive from the owning constants. BREAKING CHANGE: omitted input budgets for inspect_sqlite_database, inspect_go_binary, inspect_rust_binary and inspect_nuget_nupkg now admit larger files. Callers relying on the old default refusal must pass the old value explicitly.
morluto
marked this pull request as ready for review
November 26, 2026 04:21
Open
3 tasks done
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Contributor
[Medium impact] No blocking issue was found in the latest change. SummaryRaises input defaults to 2 GiB for Go, Rust and SQLite, and 256 MiB for NuGet. Related descriptions and guides reflect those values.
Reviews (2) · Last reviewed commit: "test(nuget): pin the default max_file_by..." · Reviewed by Greptile |
vincentkoc
added a commit
that referenced
this pull request
Nov 26, 2026
…o-21113-20261126 * commit 'd63982890e70c55b09704249cde0327537e610f0': refactor(views): share default page request fields (#14633) test(dotnet): stop expecting required_value for the lower-bound path-depth refusal feat(limits)!: raise disk-backed admission defaults for large ordinary targets (#14653) feat(artifacts): back archive member counts with the artifact.member_count setting (#14650) # Conflicts: # tests/acceptance/dotnetBundleJourney.test.ts
vincentkoc
added a commit
that referenced
this pull request
Nov 26, 2026
…-beta3-20261126 * commit 'd63982890e70c55b09704249cde0327537e610f0': refactor(views): share default page request fields (#14633) test(dotnet): stop expecting required_value for the lower-bound path-depth refusal feat(limits)!: raise disk-backed admission defaults for large ordinary targets (#14653) feat(artifacts): back archive member counts with the artifact.member_count setting (#14650) build(deps): update Knip to 6.46.1 (#14641) fix(native)!: report details.limit for remaining native reader budgets and make BEAM table rows adjustable (#14631) perf(ci): omit unused PR associations from timing queries (#14636) perf(ci): resolve small pinned test batches directly (#14638) # Conflicts: # tests/acceptance/dotnetBundleJourney.test.ts
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.
Refs #14652. The full audit table, with the reasons for each default kept, is on the issue.
Behavior change
This raises four per-call input defaults whose work streams from disk or reads by range. Large but ordinary targets are now admitted without a retry:
inspect_sqlite_databaseproducer_limits.input_bytesnode:sqlitereads it by page withmmap_size=0. The worker heap stays 256 MiB.inspect_go_binarymax_input_bytesinspect_rust_binaryproducer_limits.input_bytesinspect_nuget_nupkgmax_file_bytes.nuspecare retained. Covers nuget.org's 250 MB package ceiling.Each default still has one owner, its domain constant. The Rust field description, the Rust resource-guard limitation and the NuGet
max_file_bytesdescription used to restate the old values; they now derive them from those constants. Heap-bound allowances (NTFS journal, ASAR header, managed and dispatch snapshots, release exposure, decoded capture JSON), agent-context budgets and tool-capture budgets are unchanged. The reasons are on the issue.BREAKING CHANGE: callers that relied on the old default refusal must now pass the old value explicitly.Validation
npm run test:focused -- tests/boundary/cli/artifactInputLimits.test.ts: default refusal boundary at 2 GiB + 1 for Go and Rust (sparse files)npm run test:focused -- tests/acceptance/sqliteDatabaseCli.test.ts: combined database and WAL refusal at 2 GiB + 1 through CLI and MCPnpm run test:focused -- tests/acceptance/nugetNupkgCli.test.ts,tests/boundary/go/goBinaryProvider.test.ts,tests/boundary/rust/rustBinaryBudget.test.ts,npm run test:local -- src/sqlite/SqliteDatabaseSnapshotLimits.test.tsnpm run docs:check, plusoxfmt --checkandoxlinton the changed files--no-verifyso the pre-pushcheck:fastwould not run.Measurements
Peak memory below is the summed RSS of the whole process family, including the SQLite worker. Runs used a warm page cache on a heavily loaded host. Inputs were real small binaries padded to size and a generated SQLite database. "Before" is main with the larger budget passed explicitly; "after" is the new default.
Peak memory stays flat from about 200 MiB to 1.5 GiB inputs. The elapsed differences come from host load. Not measured: cold-cache runs, and real binaries with large read-only sections, which would add windowed scan time.
Remaining
inspect_rust_binaryandinspect_sqlite_databaseindocs/reference/limits-and-recovery.mdstill say 256 MiB. They sit next to hunks in open fix(limits)!: let apktool and assetutil take producer_limits.output_bytes and type Android and process capture refusals #14624 and feat(limits)!: register producer.output_bytes as the session default for bounded producer output #14648, so I will update them after those PRs merge. Until then this PR stays in draft.No real-provider verification applies: these are offline readers, and the SQLite worker is REA's own.