* ci(test-selection): run every portable test when error classification changes
Boundary and acceptance tests pin the code, category and retry class a
refusal reports, but reach src/domain/analysisError* only through the
built CLI or MCP server, so PR selection never picked them. A
classification change (#15588) passed CI and left stale pins that
failed later on unrelated PRs. Treat a change to that owner as
untraceable so the plan falls back to the complete fast suite.
The rule lives in test selection rather than SHARED_BOUNDARY, because
that list also limits lane planning to a single naming lane and would
drop the four lanes that name these files.
* style(ci): format test selection
* fix(analysis-view): fit managed member pages to byte budget
* fix(analysis-view): type the projected managed row shape
---------
Co-authored-by: ShuaixinHuang <197200901+ShuaixinHuang@users.noreply.github.com>
The Maven reader decoded every file as strict UTF-8, so an ISO-8859-1 POM
such as Maven's own pom-encoding fixture, or a BOM-marked UTF-16 POM,
failed as "not valid UTF-8". Decode with the shared XML text decoder and
admit ISO-8859-1. A POM that declares an encoding REA does not decode is
now refused as unsupported and names that declaration.
Fixes#15664
Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
The shared XML text decoder reads UTF-8 and BOM-marked UTF-16 and refuses
other declared encodings. A caller can now also admit ISO-8859-1, read
byte for byte when the declaration says so and no byte order mark
contradicts it. Callers that pass nothing keep refusing it, and the
refusal lists the encodings the caller admits.
Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
Every DDS surface holds at least one texel, so a file that ends at its
payload offset is truncated even when the format's exact size is not
derived, such as planar video formats.
Fixes#15674
Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
The DXGI table listed only RGBA32, RGBA16 and RGBA8/BGRA8 formats, so a
DX10 texture in R8_UINT, R16_FLOAT, R32_FLOAT, RG8 and other single- or
two-channel formats had no expected payload size and passed the extent
check even with no pixel data. List every format with a fixed number of
bytes per texel.
Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
* fix(contracts): refuse empty enhanced selector strings
Empty get_call_graph, find_xrefs_to_name, trace_call_path, and
batch_decompile selectors were admitted by the schema, so agents could
reach the provider or record empty Evidence. Align them with the shared
min(1) selector rule.
* test(mcp): refresh advertised compact digests for empty selectors
The min(1) admission change updated the compact input schemas for
batch_decompile, find_xrefs_to_name, get_call_graph, and trace_call_path.
Commit the advertised-schema summaries CI printed for those tools.
Evidence files written before triggers stopped counting as a maintainer
script still list it. Accept that name when reading so the summary view
and other readers of saved reports keep working.
Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
DEB_MAINTAINER_SCRIPTS listed "triggers" alongside preinst/postinst/
prerm/postrm/config, so inspect-deb-package reported a maintainer script
for packages whose control archive ships a triggers file. Debian defines
triggers as a list of directives dpkg reads (deb-triggers(5)); it is not
an executable maintainer script. Packages like libxv1 therefore showed
one bogus entry named "triggers" with an interpreter line that does not
exist.
Drop "triggers" from the script list and stop treating it as one. Update
the fixture to ship a realistic control-archive triggers file (mode 0644,
activate-noawait directive) so the regression exercises the real shape,
and correct the parser test's script list and summary count. The docs
note that triggers is a directive list, not a maintainer script.
* test(settings): fail analysis settings setup steps with the refusal
Setup MCP calls asserted only `isError` was not true, so a refused
setup step failed as "expected true not to be true" without the
refusal, and several setup calls were not checked at all. They now use
callOk, which fails at that step with the tool's content. Inventory
lookups no longer hide a missing substep or occurrence behind optional
chaining.
* test(settings): keep the fixture's reply checks on setup steps
callOk now also accepts a fixture's call function, so setup steps keep
the output-schema checks connectLocalToolsMcp applies to replies.
* fix(resources)!: refuse Windows names ending in a dot or space
Node writes files through `\\?\` paths on Windows, so a member named
`dir/name.` or `dir/space ` is created literally. Win32 path
normalization drops a trailing dot or space when other programs open
the path, so `dir\name.` reads the bytes of a sibling `dir\name`, and
`dir\space ` cannot be opened. The extraction manifest then records a
digest for a path that ordinary tools resolve to different bytes.
A Windows output tree now refuses any path segment that ends in a dot
or space with DestinationPathUnrepresentableFailure, before creating
the path, using the trailing rule isPortablePathSegment already
applies. The refusal names the cause and the next step. Reserved device
names stay accepted, since Node creates them as ordinary files.
Every writer that materializes target-derived names goes through
SafeOutputTree (extract_artifact, firmware and UEFI publication,
desktop export, environment bundles, recovered JavaScript sources, web
script export), so all of them apply the rule. Web script export
already moves an unrepresentable URL path to its isolated layout.
Fixes#15613
BREAKING CHANGE: On Windows, extract_artifact and other output-tree
writers now refuse a path with a segment ending in a dot or space,
where they used to write it. To extract the rest of such an archive on
Windows, select occurrence_ids that leave those members out, or extract
on a non-Windows host. Web script export on Windows writes such URL
paths under its isolated layout instead.
* ci: run Windows extraction name tests in the curated Windows lane