Commit Graph
12 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
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 232bd1181c fix(java): refuse nested XML in Maven text declarations (#13398) 2026-11-22 11:31:47 +00:00
morluto 048213525a fix(java): classify Maven BOM imports by declaration scope (#13393) 2026-11-22 11:14:16 +00:00
74bdfd2ec2 test: assert structured recovery facts instead of recovery wording in src tests (#12721)
* test: assert structured recovery facts instead of recovery wording in src tests

Replace recovery-sentence locks with the structured fields that already
carry those facts, and own Batch 4 temporary directories through
createTestTempDirectory.

* test(hopper): keep recovery order that retry_action does not carry

retry_action names restart or unknown. It does not say to read
provider_operation_health before retrying, or to close_binary before
opening and retrying. Those order checks stay.

Co-authored-by: morluto <morluto@users.noreply.github.com>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: morluto <morluto@users.noreply.github.com>
2026-11-19 23:05:20 -05: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 0ab693fe81 fix(maven): match declarations in the project namespace (#12672) 2026-11-20 01:54:59 +00:00
ShuaixinHuang ce02c899e8 fix(maven): classify embedded brackets as literal qualifiers (#12228) 2026-11-19 06:35:18 -05:00
ShuaixinHuangandShuaixinHuang ac838a7f48 fix(artifacts): align Gradle version selectors with Java whitespace (#12019)
* fix(artifacts): classify Gradle version selectors by their grammar

* fix(artifacts): match Gradle ASCII range whitespace

---------

Co-authored-by: ShuaixinHuang <197200901+ShuaixinHuang@users.noreply.github.com>
2026-11-18 23:07:18 +08: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