Repository navigation
feat(metadata)!: give NTFS, Maven report and NuGet budgets typed per-call controls - #14629
Merged
Merged
Conversation
…call controls inspect_ntfs_journal refused acquisitions above a fixed 64 MiB allowance; it now takes max_file_bytes (default 64 MiB) and re-admits a retained acquisition under the call's budget, so lowering it cannot reuse a larger cached read. inspect_maven_gradle_metadata refused at six fixed report allowances; they are now report_limits fields (CLI --report-limits JSON) with today's values as defaults. Maven max_file_bytes and NuGet max_file_bytes, max_entries and max_nuspec_bytes refusals now report details.limit from the same bounds objects the schemas use. The Ghidra installation-properties read allowance is registered as a protocol bound: it reads the provider's own short installation descriptor, not analysis input. BREAKING CHANGE: NTFS and Maven report refusals report details.limit instead of a fixed_ceiling refusal, and parseMavenGradleMetadata and the inspect_ntfs_journal input contract gain the new controls.
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] The reviewed changes appear safe to merge, with all four previous findings addressed. SummaryThis PR adds per-call NTFS and Maven/Gradle report controls and structured budget details for Maven and NuGet refusals.
Reviews (2) · Last reviewed commit: "fix(metadata): keep omitted NTFS budgets..." · Reviewed by Greptile |
…ximum recovery inspect_ntfs_journal recorded the default max_file_bytes as if the caller had chosen it; the field is now optional and resolved for execution only, so Evidence keeps omission. A host allocation failure while holding an admitted acquisition is reported as measured memory exhaustion instead of generic I/O. A Maven report refusal whose need exceeds the control's maximum no longer suggests raising it. A public CLI/MCP test covers report_limits refusal and recovery for a POM.
19 of 29 tasks
trism-prism
added a commit
to trism-prism/rea
that referenced
this pull request
Nov 28, 2026
Rebased onto main; the devicetree and NuGet parts were dropped here (landed via morluto#14622 and morluto#14629). This commit now carries only the pyc part. Refusals of the per-call budgets on inspect_devicetree, inspect_nuget_nupkg and inspect_python_pyc carried recovery only in remediation prose. Each owner now keeps one bounds object that feeds both its input schema and a structured details.limit (parameter, effective value, unit, range, default). A pyc limit that depends on max_objects and max_depth together reports related_parameters instead of a single range. The fixed decoded devicetree allowance is reported as a fixed ceiling and registered as pending. Refs morluto#14234
vincentkoc
pushed a commit
that referenced
this pull request
Nov 30, 2026
* fix(limits): report details.limit for pyc budget refusals Rebased onto main; the devicetree and NuGet parts were dropped here (landed via #14622 and #14629). This commit now carries only the pyc part. Refusals of the per-call budgets on inspect_devicetree, inspect_nuget_nupkg and inspect_python_pyc carried recovery only in remediation prose. Each owner now keeps one bounds object that feeds both its input schema and a structured details.limit (parameter, effective value, unit, range, default). A pyc limit that depends on max_objects and max_depth together reports related_parameters instead of a single range. The fixed decoded devicetree allowance is reported as a fixed ceiling and registered as pending. Refs #14234 * test(python): expect field-only pyc recovery text and the CLI limit flag
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 #14236 and #14234. Gives the NTFS journal acquisition and the Maven/Gradle report allowances per-call controls, makes NuGet and Maven file-budget refusals report
details.limit, and reclassifies the Ghidra installation-properties read.Behavior change
inspect_ntfs_journalmax_file_bytes(new; default 64 MiB, maximum safe integer; CLI--max-file-bytes): bounds each of the MFT and journal acquisitions read into memory.NTFS_JOURNAL_FILE_BYTESis now the bounds object the schema andntfsJournalFileBytesLimitshare. The service's retained acquisition cache is re-admitted under each call's budget, so loweringmax_file_bytesrefuses a larger cached read instead of silently reusing it (the documented rule that lowered admission must refuse cached state).inspect_maven_gradle_metadatareport_limits(new; CLI--report-limitsJSON):dependency_rows(65,536),variants(4,096),exclusions(65,536),unresolved_records(65,536),xml_nodes(1,048,576),repeated_variant_name_chars(4,194,304), each up to 2^31-1.MAVEN_GRADLE_REPORT_LIMIT_BOUNDSreplaces the sixMAVEN_GRADLE_METADATA_*constants and the provider's per-allowance subject/unit table; the parser takes the resolved limits, and the duplicateMavenGradleReportAllowanceunion is replaced by the domain's field type.max_file_bytesand NuGetmax_file_bytes/max_entries/max_nuspec_bytesrefusals now carrydetails.limitbuilt fromMAVEN_GRADLE_FILE_BYTESandNUGET_NUPKG_BUDGETS, the same objects the schemas use (NUGET_NUPKG_LIMIT_MAXIMAis removed).Registry and baseline
max_file_bytes)report_limits.*)application.properties, a short key=value installation descriptor of the bring-your-own provider; no analysis input passes through itPending ceilings on this base: 80 -> 77 (#14236: 28 -> 25). Authored-only refusals: 103 -> 101 (
MavenGradleMetadataProvider,NugetNupkgProvider).Measured values for
required_valueonce the foundation change lands: every Maven report refusal already carriesrequiredinreported_limits; NuGet entry and nuspec refusals carry the parse-limit maximum only; NTFS knows the retained acquisition size.Contract impact
details.limitinstead of afixed_ceilingrefusal;inspect_ntfs_journalandinspect_maven_gradle_metadatagain optional inputs (advertised schema summaries updated).Validation
tests/boundary/mcp/ntfsJournal.test.ts: CLI refusal atmax_file_byteswith the fulldetails.limit; over MCP, an admitted call, then a lowered call refused on the retained acquisition, then a raised call admitted.tests/acceptance/nugetNupkgCli.test.ts: CLI refusal atmax_entrieswith the fulldetails.limit, then the default admits the same package.src/java/MavenGradleMetadataParser.test.ts:report_limits.variantsandrepeated_variant_name_charsrefusals reportdetails.limit, and the raised value reports the same document.tests/boundary/filesystem/mavenGradleMetadata.test.ts:max_file_byteslimit.npm run test:focusedon 13 files (176 tests),oxfmt --check ., lint report, architecture guards,fixed-ceilings.mjs,docs:check,tsc --noEmit.