Commit Graph
21 Commits
Author SHA1 Message Date
0c59c2ed4e fix(maven): read Maven 4.1.0 model POMs (#14089)
inspect-maven-gradle-metadata accepted only the
http://maven.apache.org/POM/4.0.0 namespace, so every Maven 4 POM in the
4.1.0 model namespace was refused as "not a Maven project POM".

Classify a project root in any http://maven.apache.org/POM/ namespace as
a POM, as Maven 4's DefaultModelXmlFactory does, and read the 4.0.0 and
4.1.0 models with the same rules. Other model namespaces are refused
with a specific unsupported_target reason. A 4.1.0 model imports managed
bom-typed rows and carries a limitation that Maven 4 parent and reactor
coordinate inference was not applied.

Co-authored-by: aadheel <250292080+aadheel@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: gensokyo-dev <gensokyo-dev@users.noreply.github.com>
2026-11-27 05:16:54 +08:00
Vincent Koc 74134bf6fd refactor(metadata): share Maven and NuGet boolean text parsing (#14694) 2026-11-26 18:04:14 +08:00
Vincent Koc e7cb42a1d7 refactor(xml): share direct child element traversal (#14669) 2026-11-26 15:13:29 +08:00
morluto 4f66985978 feat(metadata)!: give NTFS, Maven report and NuGet budgets typed per-call controls (#14629)
* feat(metadata)!: give NTFS, Maven report and NuGet budgets typed per-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.

* fix(metadata): keep omitted NTFS budgets omitted and type host and maximum 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.
2026-11-25 21:55:28 -05:00
morluto 4b648f23fd refactor(xml): share DOM element traversal helpers in xmlDocument (#13799) 2026-11-23 01:12:58 +00:00
morluto 841d41df31 perf(parsers): remove hot-loop allocs in UEFI, USN, PE, Go, Rust, Maven (#13647)
perf(parsers): eliminate hot-loop allocs in UEFI, NTFS USN, PE, Go, Rust, and Maven
2026-11-22 17:12:34 -05:00
Afloat b43084c7fd fix(maven): preserve property value spelling (#13442)
Read property values through the same Java String.trim semantics as other
POM scalar declarations. Preserve non-ASCII boundary characters and
nonempty Unicode-only properties before transport credential removal.

Exercise compiled CLI, stdio MCP and retained Evidence with property
references, ASCII controls, URL redaction and unchanged artifact bytes.
2026-11-22 12:58:07 -05:00
morluto 103e1a71f2 fix(java): enforce format-specific metadata reports at the Evidence boundary (#13400) 2026-11-22 11:42:13 +00:00
morluto 232bd1181c fix(java): refuse nested XML in Maven text declarations (#13398) 2026-11-22 11:31:47 +00:00
morluto d0f3a4858e fix(java): preserve Gradle declaration spelling in Evidence (#13397) 2026-11-22 11:26:19 +00:00
morluto 66c192a450 perf(java): validate the Maven XML node allowance in one scan (#13395) 2026-11-22 06:24:58 -05:00
morluto 048213525a fix(java): classify Maven BOM imports by declaration scope (#13393) 2026-11-22 11:14:16 +00:00
hhangandhhang e1218b0388 fix(java): preserve Maven POM version spelling (#12714)
Co-authored-by: hhang <169027046+xu91102@users.noreply.github.com>
2026-11-19 23:04:11 -05:00
morluto 9c95d0ded3 fix(gradle): preserve variant identity in metadata evidence (#12677)
* fix(gradle): preserve unique variant identity

* test(gradle): cover unnamed variants and whitespace identity
2026-11-20 02:01:27 +00:00
morluto 0ab693fe81 fix(maven): match declarations in the project namespace (#12672) 2026-11-20 01:54:59 +00:00
morluto 78fdc7ecf7 fix(gradle): disclose unfamiliar metadata revisions (#12648) 2026-11-20 01:22:36 +00:00
morluto cd331e7b04 fix(gradle): admit module metadata from its root version marker (#12488) 2026-11-19 19:28:12 +00:00
ShuaixinHuang 004c43e32a fix(maven): preserve qualified property keys in metadata (#11860)
fix(maven): preserve qualified property keys
2026-11-18 14:47:42 -05:00
ShuaixinHuangandShuaixinHuang 2aaf76c5c1 fix(artifacts): read Maven and Gradle metadata with a UTF-8 BOM (#12009)
Co-authored-by: ShuaixinHuang <197200901+ShuaixinHuang@users.noreply.github.com>
2026-11-18 10:04:54 -05:00
RRFZ 372e6e2fa0 fix(artifacts): apply XML end-of-line handling to nuspec and POM text (#11846)
The .nuspec, its OPC relationships and the Maven POM now parse with
lineEndings normalize, as XML 1.0 section 2.11 and the NuGet and Maven
readers do. Text from CRLF files no longer keeps carriage returns.
2026-11-18 21:48:57 +08:00
Matt Van Hornandgensokyo-dev 05be423acb feat(artifacts): inspect Maven POM and Gradle module metadata
Inspect local Maven/Gradle metadata as Evidence with bounded report/XML admission, preserved caller choices and owned cleanup.

Refs #8828; broader comparison and resolution work remains outside this change.

Assisted-by: Suika (gensokyo-skills:suika-scatter-gather-planning)
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-11-17 14:40:38 +00:00