Repository navigation
fix(native)!: report details.limit for remaining native reader budgets and make BEAM table rows adjustable - #14631
Merged
Merged
Conversation
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. |
2 tasks done
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
3 tasks done
Contributor
[Medium impact] The reviewed changes appear safe to merge; both numbered findings are fixed. SummaryThe PR adds structured budget refusals and makes BEAM table rows adjustable. The latest commit fixes both numbered review findings.
Reviews (5) · Last reviewed commit: "refactor(native): keep one owner of the ..." · Reviewed by Greptile |
morluto
force-pushed
the
fix/native-format-allowances
branch
from
November 26, 2026 03:47
770566f to
a9d2f51
Compare
morluto
enabled auto-merge (squash)
November 26, 2026 04:08
…s and make BEAM table rows adjustable inspect_elf_dependencies, inspect_elf_unwind_ranges, inspect_apple_ips, inspect_dwarf_units, inspect_native_initializers and inspect_pe_resources named their per-call budgets only in remediation prose. Each now reports details.limit from a domain-owned budget object that also builds the schema. The unwind per-page symbol-name text refusal names the page size `limit`, the control that admits it. The fixed 65,536-row BEAM table ceiling becomes the per-call max_table_rows (default 65,536, at most 1,048,576). The plist nesting allowance is reclassified as a representation bound (MAX_JSON_DEPTH less the report envelope). GPU and APK input refusals that named their fixed allowances only in prose now declare them, registered as pending #14235. Part of #14234 and #14235. BREAKING CHANGE: a BEAM table-row refusal reports details.limit for max_table_rows instead of a fixed_ceiling refusal.
…he remaining native controls With #14625 the refusal owns per-call recovery, so the ELF dependency, ELF unwind, Apple IPS, DWARF, initializer, PE resource and BEAM refusals drop their authored sentences. BEAM reports the complete row and atom counts as required_value. The unwind per-page text allowance is a registered fixed allowance whose narrowing names a smaller limit, because a larger page would not admit it.
…t the unwind text allowance
morluto
force-pushed
the
fix/native-format-allowances
branch
from
November 26, 2026 04:13
9f3be0d to
c6d4c0c
Compare
Open
3 tasks done
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
22 of 29 tasks
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.
Summary
Part of #14234 and #14235. This finishes the per-call budget refusals in the native readers that still named their control only in
remediationActionprose. The fixed BEAM table-row ceiling becomes a per-call control, the plist nesting allowance is reclassified, and fixed GPU and APK refusals that described their allowance only in prose now declare it.Behavior change
ParameterBudgetobject (from fix(native)!: report details.limit for native reader per-call budgets #14622) that builds both the schema anddetails.limit:inspect_elf_dependencies:max_file_bytes,max_needed,max_versions,max_imports.inspect_elf_unwind_ranges:max_file_bytesandmax_ranges. The per-page symbol-name text allowance stays fixed, but its refusal now reportsdetails.limitfor the page sizelimit, which is the control that admits the page.inspect_apple_ips:max_file_bytes,max_join_bytes,max_threads,max_frames,max_images,max_registers,max_integer_text_bytes.inspect_dwarf_units,inspect_native_initializers:max_file_bytes.inspect_pe_resources:max_entries.inspect_erlang_beam: the fixed 65,536-row ceiling on export, import and lambda rows becomesmax_table_rows, with the same default and a maximum of 1,048,576. The parser decodes and retains one row per entry, so this is a resource limit.max_chunks,max_atomsandmax_file_bytesalso reportdetails.limit.inspect_plistnesting is reclassified frompendingtorepresentation.MAX_NATIVE_PLIST_NESTING_DEPTHisMAX_JSON_DEPTH - 3: the decoded value is nested inside Evidence JSON, whose depth is bounded before recursive result cloning.inspect_gpu_code_objectsandinspect_apk_signature: three fixed allowances that were named only in prose now usefixedAllowanceOptionsorfixedProducerInputAllowanceand are registered aspending[Feature] Give native readers' fixed structural, text and inventory allowances a control or a stated fixed reason #14235: "The GPU parser allowance", "The GPU object allowance" and "The APK signature input allowance". This makes existing debt visible; it does not add new limits.Counts
Compared with the state after #14622:
representation. Added: the three declarations above.After #14625 these refusals carry no authored recovery. BEAM reports the complete table-row and atom counts as
required_value. The ELF unwind per-page symbol-name text allowance is a registered fixed allowance (pending #14235) whosenarrowingasks for a smallerlimit, because the generated "pass a larger" recovery would be wrong for it.Validation
npx vitest runover:src/erlang,tests/boundary/mcp/erlangBeamMcp.test.ts,tests/boundary/filesystem(incl.pythonBeamCleanup,elfUnwindRanges,productCatalog),tests/boundary/mcp/elfDependenciesMcp.test.ts,tests/acceptance/elfDependenciesCli.test.ts,src/native,src/gpu,src/apkSignature,src/domain/native,src/domain/erlang,tests/conformance,tests/evaluation/fixedCeilingGuard.test.ts. All pass.details.limit:max_atoms,max_chunks, and single and combined table rows, with nodetails.refusal. A raisedmax_table_rowsadmits the image.max_neededandmax_file_bytes.limitandmax_ranges.node scripts/verify/fixed-ceilings.mjs: 102 registered, 81 pending, 82 authored-onlynode scripts/verify/architecture-guards.mjs,npm run docs:check,npx oxfmt --check .: cleannpm run verify:advertised-schemas -- --update-summary: cleantsc --noEmit: cleanCompatibility
Breaking: a BEAM table-row refusal reports
details.limitformax_table_rowsinstead of afixed_ceilingrefusal. Every other change addsdetails.limitor a registeredfixedAllowanceto existing refusals. Defaults are unchanged.