* fix(limits): make the IL2CPP pointer index adjustable and name ELF note budgets in details.limit
inspect_il2cpp_metadata accepts max_native_index_bytes (default 1 GiB,
needs binary_path) for the estimated ELF virtual pointer index. The index
refusal now carries its own limit name (virtual-pointer-index-bytes) and a
details.limit naming the parameter, its effective value, default and range,
instead of a fixed ceiling with no override. The binary file allowance and
the loader's fixed capacities are unchanged.
inspect_elf_notes and inspect_elf_debug_link refusals for max_file_bytes,
the decoded section-name budget and max_entries now set details.limit. One
domain-owned bounds object per operation feeds both the schema and the limit.
Two guards keep new in-code refusal limits owned:
- scripts/verify/fixed-ceilings.mjs (run by npm run lint) requires every
fixedAllowanceOptions, fixedProducerInputAllowance,
artifactFixedLimitFailure or inline fixedAllowance declaration to be
listed in fixed-ceiling-registry.json with its class (format, protocol,
representation, derived, forwarding, or pending with an issue) and reason,
and fails on stale entries.
- The untyped-budget-refusal architecture guard counts refusals whose only
recovery is an authored remediationAction, with a shrink-only baseline.
Fixes#14175
Part of #14234
BREAKING CHANGE: an inspect_il2cpp_metadata refusal at the ELF pointer index
reports reported_limits.boundary "virtual-pointer-index-bytes" and
details.limit for max_native_index_bytes, and no longer carries a
details.refusal fixed_ceiling.
* fix(limits): track IL2CPP's remaining fixed allowances with the native readers
* fix(limits): run the authored-only refusal count from lint, where TypeScript is installed
The architecture guards run before npm ci in CI and must stay
dependency-free, so the AST-based count moves into fixed-ceilings.mjs with
its own shrink-only baseline and --shrink-baselines.
* fix(limits): register producer and native wrapper ceilings by the allowance they name
fixedProducerInputAllowance names its allowance in its second argument, and
fixedNativeAllowance forwards its first, so the guard now reads each helper's
allowance argument and checks the callers of both.
* fix(limits): delete the authored-only baseline when its last count is removed
reconcileBaselineFile returns delete once no count remains, but the
verifier ignored it and the next run read the file unconditionally, so
--shrink-baselines could not finish. An absent baseline now reads as empty
and shrinking removes the file.
* fix(limits): record the advertised IL2CPP input schema with max_native_index_bytes
* feat(artifacts): report declared DDS, GLB, KTX and KTX2 headers and regions
Recognize DDS (including the DX10 extension), GLB, KTX 1.1 and KTX 2.0
by their header signatures and inventory them as containers. The root
format metadata carries the declared header facts. Each declared byte
region is a member that is hashed, classified and extractable: the DDS
payload; GLB JSON and BIN chunks and BIN-stored images; KTX key/value
data and mip levels; and KTX2 DFD, KVD, SGD and levels.
Nothing is decoded. A DDS payload is checked against the size derived
from its dimensions, mips, faces, layers and block size. Disagreeing
extents are reported in extent_check with unknown coverage rather than
refused, and regions past the end of the file are dropped, not clipped.
Structural header faults refuse as malformed input with the format and
offset.
Part of #14155
* fix(gpu-assets): bound GLB chunks and keep unexamined regions unknown
- Stop the GLB chunk walk at 1,024 chunks with unknown coverage.
- Refuse a GLB chunk that crosses the declared length, or a chunk table
that stops short of a physically present declared end, as malformed.
- Report coverage unknown when GLB images were not all listed: past the
image allowance, an unparsed JSON chunk, or an unresolved bufferView.
- Leave the DDS payload size unknown when rows are padded to a declared
pitch or more than 32 mip levels are declared, instead of deriving it
from different dimensions.
* fix(gpu-assets): report GLB images in URI-backed buffers as external
Only buffers[0] without a uri is the GLB BIN chunk. An image whose
bufferView sits in a buffer with a uri, or an image named by uri, is
stored outside the file; it was counted as an unresolved image and made
coverage unknown. Such images are now counted in external_images and
leave coverage complete; only views that resolve to no buffer stay
unknown.
* fix(gpu-assets): report KTX2 level-index failures at file offsets
The 64-bit level-index fields were read from a buffer that starts at file
offset 80, but an unsafe value reported its index-relative position.
The reader now takes the buffer's file base and reports base plus
position, so every failure offset is a file offset.
* fix(gpu-assets): count a GLB image as external only for a URI string
An image or buffer whose uri is present but not a string, and an image
with neither a uri nor a bufferView, were counted in external_images and
left coverage complete without an established source. Only a URI string
now marks a source external; other sources stay unresolved and keep
coverage unknown.
* fix(pe)!: share one loader-equivalent PE header owner across static readers
Resources and certificates now admit headers through readPeImage, and
resources map RVAs through the shared file-backed mapping. The owner reads
the optional header at fixed offsets, caps data directories at 16, and lets
a PE signature at e_lfanew override a DOS relocation table. Export, import,
TLS and resource directories are read at their RVA whatever Size declares.
Disregarded declarations are reported in header_anomalies.
BREAKING CHANGE: import and delay-import walks continue to the null
descriptor past a short directory Size instead of stopping with a
malformed_entry issue, and inspect-pe-resources reports an unsupported
optional-header magic as unsupported_target.
* fix(pe): keep valid DOS relocation tables owning e_lfanew
Only a relocation table that describes no DOS load module yields e_lfanew
to a PE signature; update MZ/PE conformance to the shared owner.
* fix(pe): walk resource trees within file-backed bytes and cite TLS reads
The resource walk is bounded by the file-backed run from the directory RVA
rather than its Size, and a Size that ends before the bytes walked is a
directory_size_below_structure anomaly. The TLS result carries
structure_location for the structure read past a short Size, and Evidence
cites it.
* test(pe): use a resource cycle as damage now that a short Size is read
* fix(pe): read resource trees past an oversized Size and keep damaged MZ headers malformed
An oversized resource Size is reported without requiring its unused bytes
to map. A Windows-header candidate is malformed when the DOS module is also
invalid, and the guide states that a valid DOS relocation table owns
e_lfanew.
* feat(cli): add list-procedures to produce function-matching inventories
match-native-functions accepts only list_procedures Evidence, and no CLI
command produced it. Expose the list_procedures contract as
rea list-procedures, with complete or summary-plus-bundle delivery, and
name that producer when the matcher refuses another record such as a
filtered search_procedures result.
Fixes#14185
* test(cli): assert the bundled inventory keeps its fixture rows
* feat(desktop)!: recognise native releases and rank application probes first
inspect-desktop-application returned nothing for native Qt or SDL
releases, gave Godot candidates no probe, and listed every BCL facade of
a self-contained .NET release as an equal inspect_managed_artifact probe.
- A native candidate names the shallowest main executables when no
other runtime is recognised. Its PE probes are inspect_pe_imports and
inspect_pe_resources.
- Component markers name Qt, SDL, wxWidgets, GTK and the MSVC runtime
from the files a release ships.
- Each Godot pack carrier gets an inspect_artifact probe.
- Probes carry a priority. Assemblies with a matching runtimeconfig,
deps.json or pdb come first, and runtime facades are counted once in
deferred_probes instead of probed one by one.
BREAKING CHANGE: the desktop application result adds the native family,
the ui-framework and runtime-library component categories, new probe
operations, a required probe priority and deferred_probes.
Fixes#14173
Refs #14179
* fix(desktop): select Godot packs with open_binary, summarize deferred probes and match Unix wxWidgets names
inspect_artifact reads the active target and takes no path, so a Godot
pack probe now selects its carrier with open_binary and names
inspect_artifact as the follow-up, as the ASAR probe does. The default
summary carries deferred_probes, the release-audit fixtures include the
field, and the wxWidgets marker accepts libwx_*.so and .dylib names.
* fix(desktop): read Unix mains without host executable marking and describe resource probes accurately
Windows cannot mark ELF or Mach-O files executable, so the reader also
reads headers of Contents/MacOS entries and extensionless root files.
The inspect_pe_resources probe now describes the resource-tree inventory
it returns.
* fix(snapshot): replay every one-shot Ghidra read and say when a live result cannot replay
One-shot CLI --snapshot replayed only Ghidra decompile: the documentless
exception was limited to procedure_pseudo_code, and DirectAnalysis passed
the one-shot context only for that operation. Every read-only Ghidra
query of the call's own Program now records its replay entry, keyed as
before by target identity, provider profile, operation and parameters.
Providers that declare their results live (Hopper, IDA, Kuna) still run
every call. With --snapshot, their result now carries a limitation that
says it was saved but cannot replay, and why.
Fixes#14182
* fix(snapshot): disclose unsaved function, workflow and skipped replay entries
The not-saved notice covered only direct observations, and only by
policy. rea function and composed workflows now report it too, and the
notice also follows what recording will actually keep: a result with
reference truncation or classifications, a full cache without this
query, or a session whose metadata write invalidated its snapshot. The
cache answers that question from the same predicate its record uses.
* fix(snapshot): word composed-command notices for recomposition and unwritten snapshots
decompile-all and trace-native-ui-action never write the snapshot, so
their notice now says nothing was recorded. Other composed commands say
the answer is composed again on repeat, starting the provider only for
source reads the snapshot lacks. The snapshot write and the notice share
one set of unwritten commands.
* fix(macho)!: report a FAT header or table cut off by the file's end as truncated
The universal Mach-O container reader measured the file's size but
reported a FAT header shorter than 8 bytes as malformed, and a FAT table
that runs past the file's end as not FAT at all. Callers could not tell a
cut-off download from corrupt bytes.
readFatContainerHeader now returns a typed truncated state carrying the
measured file size and the length the header or table needs. A CAFEBABE
count that reads as a JVM class version stays not FAT, because a short
class file is not evidence of a universal file. Universal image
selection, the native container reader and the lipo-selected slice
resolver raise that fact as a truncated ParseFailure with an extent, and
the malformed-target projection reports it as details.available_bytes and
details.required_bytes. Complete but corrupt FAT data (zero count,
overlapping slices, slices inside the table) stays malformed.
BREAKING CHANGE: inspect_go_binary, inspect_rust_binary,
inspect_dwarf_units, inspect_native_initializers,
inspect_native_dispatch_metadata, the IL2CPP binary readers and the
macOS provider's lipo-selected slice reads now report a FAT header or
table cut off by the file's end with details.format_failure "truncated"
(previously "malformed", or an unsupported or not-universal result for a
table past the end), plus details.available_bytes and
details.required_bytes.
* test(macho): type every format-owner row with its asserted format failure
* fix(doctor)!: emit each check once and classify passing checks healthy
Audit-wide doctor reports copied every check into both scope_checks and
checks. The audit-wide report now has no scope_checks, since every check
in checks is in scope. Explicit scopes keep scope_checks.
The CLI treated an unhealthy report like an error payload, so
--filter-output and the token count for a filtered selection were ignored
when healthy was false. An unhealthy report is now a completed result
for output controls. The exit status stays 1, and the JSONL and
full-output envelopes still mark it failed.
The provider check port typed classification as a failure class for every
check, so Ghidra, IDA, JADX and Kuna attached unsupported_host,
config_drift or runtime_failure to passing rows in providerInspections.
DoctorProviderCheck is now a union: a passing check is healthy with no
code, and only a failing check carries a failure class.
JADX and Kuna reported their not-configured state with the remediation
text as the reason, so detail repeated remediation. The reason now states
the observation (REA_JADX_MCP_JAR or REA_KUNA_COMMAND is not set).
BREAKING CHANGE: audit-wide doctor reports omit scope_checks; read
checks. Passing providerInspections checks report classification
"healthy".
Fixes#14166Fixes#14200
* fix(doctor): filter unhealthy reports in full output and keep repairs
--filter-output still skipped an unhealthy report under --full-output,
because the envelope's failure payload was chosen before the filter. The
completed-report decision now has one owner in writeResult: it selects
from the report first and uses the selection as the envelope's error, so
the envelope keeps ok: false. JSON Lines keeps its documented framing of
a classified failure as one whole error record.
Shortening the JADX and Kuna not-configured reasons left their analysis
errors without a repair step, because those errors copied only the
reason. They now pass the configuration owner's existing remediation
(jadxFailureRemediation and the Kuna configuration remediation) as the
remediation action.
The installation guide now limits the healthy-classification statement
to provider checks and names the registration_environment exception.
* fix(kuna): accept a remediation action on capability gaps
* fix(cli): keep an unhealthy report failed when its selection drops the verdict
Under --full-output, the selected value doubled as the failure marker, so a selection that was missing (an audit-wide report has no scope_checks) made the envelope report ok: true. writeResult now decides failureReported before selection and uses the selection only as the payload. A missing or verdict-free selection keeps ok: false, and an invalid filter is still reported as a filter error.
* fix(release-exposure)!: omit checks that cannot apply to the detected formats
audit-release-exposure always returned all 15 checks. On a single PE it
reported Mach-O hardened runtime and the Android manifest as not_assessed,
and the four Electron fuse checks as not_applicable, each with a next probe
for another format. Agents following those probes would run Mach-O,
Android, or Electron tools on a Windows image.
The report now omits a check that cannot apply and names it in
coverage.inapplicable_checks. Applicability comes from the reader's format
facts: native image formats, the target kind, embedded package formats,
and whether a native image may have gone unread. A check stays whenever a
member it could apply to may be unread. checks and inapplicable_checks
always split the fixed table, in order, and the report schema enforces it.
On a public x64 SDL2.dll the JSON report drops from 10,451 to 6,256 bytes.
BREAKING CHANGE: release-exposure checks no longer use the not_applicable
status, and summary.by_status has no not_applicable count. A check that
cannot apply is absent from checks and listed in
coverage.inapplicable_checks.
Fixes#14163
* fix(release-exposure): keep format checks when a package may hold them
A selected executable that embeds a package, such as a .NET bundle or
PyInstaller archive, may store native images and other members that the
audit does not read. Applicability ignored those for executables, so a PE
bundle with a packaged Mach-O helper lost macho.hardened_runtime and its
inspect_signature probe.
Unread or packaged native images and embedded packages now keep the
Mach-O, native hardening and Android checks for every target kind. Direct
schema cases cover duplicate, overlapping, missing and reordered splits.
* fix(release-exposure): decide native applicability from unread members, not package presence
A fully read ASAR or other package with no native member regained native.hardening, macho.hardened_runtime and android.manifest, because any embedded package format counted as an unread member. Applicability now follows nativeImagesMayBeUnread, which already covers native images stored inside a package that went unread. Android stays limited to directory and file selections.
* fix(zip): account apksigner alignment padding before the APK Signing Block
Signed release APKs pad the member region with zero bytes so the APK
Signing Block starts on a 4 KiB boundary. The member-region account
counted that pad as unaccounted bytes, so ZIP listing coverage was
unknown for ordinary apksigner output.
An all-zero range under 4 KiB that ends at a well-formed, 4 KiB-aligned
signing block is now accounted as padding. A non-zero byte, an
unaligned block or a zero run with no signing block stays unaccounted.
Fixes#14178
* fix(zip): prefer the descriptor layout that leaves signing-block padding
An empty member's zero sizes match both the 16-byte and the 24-byte data
descriptor layouts. When the 24-byte layout is followed only by
apksigner alignment padding, the first-match 16-byte choice left more
than 4 KiB for the padding check, so valid padding stayed unaccounted.
The descriptor search now also prefers a layout whose remainder is that
padding.
* fix(gpu)!: dispatch AMDGPU note metadata on the declared ELF ABI
inspect_gpu_code_objects read every AMDGPU ELF note under the HSA schema,
so a well-formed PAL-ABI code object was reported malformed ("no valid
kernel array") while the same object without metadata was unsupported.
The AMD ELF metadata owner now reads EI_OSABI once and selects the note
schema from it. HSA (64) keeps the existing kernel path. PAL (65) decodes
amdpal.pipelines into a new amd_pal_metadata object field during kernel
analysis: the version, and per pipeline its name, type, API, API shader
stages with their hardware mapping, and each hardware stage's entry point,
entry point symbol, SGPR/VGPR/AGPR counts, wavefront size, LDS and scratch
sizes. PAL register maps use unsigned integer keys, which the MessagePack
reader now admits for that schema only. Mesa3D (66) and unrecognized ABIs
are unsupported with their e_flags target and unexamined notes. Corrupt PAL
MessagePack or container shapes remain malformed.
BREAKING CHANGE: amd_target_metadata gains required os_abi and abi fields,
GPU objects gain a nullable amd_pal_metadata field, and PAL-ABI objects
report complete, partial or unsupported instead of malformed.
Fixes#14154
* chore(gpu): regenerate the inspect_gpu_code_objects advertised schema summary
The objects view fields selector derives from the GPU object schema, so the new amd_pal_metadata field changes the advertised input compact schema.
* fix(gpu): bound AMDGPU note expansion per code object and refuse binary maps
The decoded-value allowance is now shared across all of a code object's notes, so PAL pipeline facts expanded during discovery stay bounded. MessagePack binary values are no longer accepted as maps for PAL pipelines, stages or HSA kernel and argument rows.
* fix(managed)!: report an unsupported signature as partial metadata, not malformed
The refusal path already treats `unsupported-signature` as a valid form
outside decoder coverage, but `managedMetadataFailureStatus` still called
it malformed. One predicate, `isManagedCoverageGap`, now owns that split
for both the refusal and the inventory status.
Value retention no longer reads the inventory status: one value's
unsupported signature is still retained locally, while a budget or an
unsupported metadata layout still stops the whole read.
BREAKING CHANGE: when a managed reader stops on `unsupported-signature`,
`metadata.status` is `partial` (was `malformed`) in managed artifact,
member and native-boundary inspection, and the artifact
`classification.status` is `managed` (was `malformed`). The field names
and enum members are unchanged.
* fix(il2cpp)!: refuse a reused or non-MethodDef token as malformed metadata
`invalid-method-token` covered two facts. A MethodDef row reused within
one image, or a token that is not a nonzero MethodDef row, is in the
metadata's own records; a row past the module's method pointers is a
disagreement between two files that both parse.
The metadata reader now checks each image's tokens while reading link
facts and raises `invalid-method-definition-token`, which the provider
already refuses as a malformed target at the metadata's path. The linker
keeps `invalid-method-token` for the cross-file range check only and drops
its own duplicate scan.
BREAKING CHANGE: a duplicate or non-MethodDef method token found while
linking is `unsupported_target` with `details.path` the metadata file,
`details.format` `il2cpp-metadata`, `details.format_failure` `malformed`
and `details.reason` starting `invalid-method-definition-token:` (was an
`invalid_request` link conflict naming `path` and `binary_path` with
reason `invalid-method-token`). A token past the module's method
pointers keeps the conflict and the `invalid-method-token` reason.
Three formats had their own error mappers that still reported a selected
file's corrupt bytes as an invalid_format path issue (invalid_request):
managedInspectionInputFailure, Il2cppMetadataProvider and the Mach-O slice
selection mappers. Each now projects its format owner's own failure through
AnalysisMalformedTargetError at the path of the file whose bytes are at fault.
- Managed PE/CLI: a broken rule is a malformed pe-cli target with the
reader's scope and offset; unsupported-metadata and unsupported-signature
are unsupported targets; resource limits stay with their producer.
- Universal Mach-O: the container reader raises a ParseFailure once
(malformed, truncated where it measured the end, unsupported from the
container's own category), and requireSelectedNativeImage(FromReader)
project it at the universal file's path. An unknown or ambiguous
architecture stays invalid_request on the architecture field.
SliceSelectionInput.pathField is removed.
- IL2CPP: metadata and binary format failures each name their own file. A
binary that parses but does not link to the metadata is a link conflict:
invalid_request with invalid_value issues on both path and binary_path,
no input-contract recovery, and the partial observation keeps both file
identities. Neither file is called malformed.
BREAKING CHANGE: inspect_managed_artifact, inspect_managed_members,
inspect_managed_native_boundaries, compare_managed_members,
inspect_il2cpp_metadata, inspect_go_binary, inspect_rust_binary,
inspect_dwarf_units and inspect_native_initializers report corrupt or
truncated target bytes as code unsupported_target with details.path,
format, format_failure and reason instead of invalid_request with an
invalid_format issue. IL2CPP link conflicts list both path and binary_path
with reason invalid_value instead of one invalid_format binary_path issue.
ArtifactReaderFailure("format") covered two different facts: target
bytes that violate their format, and a selected path that is not a
regular file. The shared selected-file projections
(projectOwnedArtifactInputFailure and classifyProviderFailure's file
step) mapped both to invalid_request with an invalid_format path
issue, so corrupt BEAM files and PE certificate table bodies were
reported as caller argument errors.
Split the reason at its producers:
- Path-kind refusals now use the existing "path" selection reason:
regular-file admission, the stable root, directory, ZIP, ASAR and
PyInstaller entries, dyld inputs, the UEFI flash source and extract
occurrence selection. They stay invalid_request.
- The BEAM parser and the PE certificate table parser raise the format
owner's ParseFailureError (malformed or truncated, format "beam" or
"pe-certificate-table"). A short file that does not start with FOR1
is malformed, not truncated. A PKCS#7 name encoding the decoder does
not implement is unsupported, not malformed.
- Short reads inside an admitted range (kernel module, kernel build
config, ELF unwind ranges) are integrity read-coverage failures,
because the file changed during the read.
- Internal contract breaks (stream chunk size, a non-Buffer keyed
archive chunk) are invariant violations; an impossible descriptor
byte count is an I/O failure.
The shared projections now treat only "path" as a selection error.
They take the malformed-target facts from the reader failure's own
parseFailure, which artifactParseFailure sets once from the owner's
ParseFailureError and rebuilt failures keep through primaryFacts.
ArtifactOperationError carries the same facts, so inspect_artifact
refusals (for example Android boot images) now include
details.format_failure, format, offset and field. Android boot entry
planning raises the format owner's malformed failure, and the
redundant shortcut and API-contract format branches are removed.
BREAKING CHANGE: callers that parse `code` see unsupported_target
instead of invalid_request for malformed or truncated bytes from
inspect_erlang_beam and from the inspect_pe_certificates certificate
table body. Truncated reads of a file that changed during
inspect_kernel_module, inspect_kernel_build_config and
inspect_elf_unwind_ranges now report artifact_changed. inspect_artifact
malformed and truncated refusals gain details.format_failure and
details.format. Existing fields are unchanged.
* fix(errors): refuse malformed target bytes as a target, not invalid input
parseFailureAnalysisError is the shared owner that turns a byte-format
parser's ParseFailure into a public refusal. It mapped malformed and
truncated bytes to an AnalysisInputError on the path field. The envelope
then reported invalid_request, with inspect_input_contract recovery and
"correct the listed fields". The arguments were valid; the target bytes
were the problem. Readers that wrap the ParseFailureError in an
ArtifactReaderFailure, and ArtifactOperationError reason=malformed, were
classified the same way.
Add AnalysisMalformedTargetError. It keeps the parser's kind, format,
detail, offset and field, and projects as unsupported_target with
details.format_failure. Its recovery is to choose another operation or a
well-formed copy of the target. Route both parser entry points through it
and reclassify ArtifactOperationError reason=malformed. Argument and
selection errors (missing files, directories, symlinks, JSON arguments)
stay invalid_request.
Fixes#14170
* docs(maven): describe duplicate variant names as malformed metadata
Duplicate Gradle variant names go through malformedInput, which now
reports unsupported_target with details.format_failure: malformed.
Point the earlier statement at that section instead of the old
invalid_format code.
* test(errors): expect malformed-target refusals from CLI byte-format readers
Truncated IPS, ELF, PE and shortcut bytes now project as unsupported_target with format_failure=malformed. Update the CLI acceptance cases that still expected invalid_request.
* fix(errors): keep a cancelled read a cancellation whatever its abort reason
projectOwnedArtifactInputFailure read the reader failure's cause without
checking the reader's own reason. A cancelled read carries the caller's
opaque abort reason as that cause, so aborting with a ParseFailureError
turned the cancellation into a non-retryable malformed-target refusal
before the shared cancellation projection ran. Only a reader whose own
reason is malformed or truncated now yields a malformed target.
The ELF dependency checkpoint cancellation test now also aborts with a
parser failure as the reason, through the public provider read.
* test(pe): expect malformed-target refusals from the PE filesystem boundaries
Short non-PE bytes now refuse the target rather than the request field.
The missing-file, directory, symlink and child-path controls keep their
caller-input expectations.
* fix(elf): refuse malformed ELF note bytes as a target, not invalid input
inspect_elf_notes shared this PR's root cause: its parser reported
structural violations as a reader "format" failure, which the shared
stable-artifact projection treats as a request-field error, so truncated
or non-ELF bytes still returned invalid_request. The parser now raises
malformed or truncated ParseFailureErrors, which the shared projection
reports as a malformed target with format_failure and format facts.
Consumers that interpreted the old reader reason now use the parser's
facts: debug-link build-id observation keys on ParseFailureError kinds,
and binary hardening drops its rewrap of note-parser format failures
into BinaryFormatFailure, which the parser's own failure supersedes.
* test(errors): own the byte readers' malformed-target projection in one CLI table
The PR repeated the same malformed -> unsupported_target mapping in a
dedicated CLI test per command and again in each provider's filesystem
boundary test. The stable-artifact parser-failure CLI table now owns it:
every byte reader it covers (now including ELF dependencies, debug link,
unwind ranges and native initializers) refuses a truncated ELF header as
a malformed target with operation, path, format_failure, retained file
identity and no argument recovery.
Removed as redundant with that table: the truncated or non-ELF/non-PE
CLI tests for ELF debug link, dependencies, unwind ranges and notes,
native initializers, and PE imports and certificates; and the
malformed-file blocks in thirteen filesystem boundary tests, which keep
their directory, symlink, missing-file and child-path controls. Format
specific refusals (a truncated IPS body, a wrong shortcut CLSID, DWARF
units) keep their own tests, as do the owner tests in
parseFailureAnalysisError and ArtifactOperationFailure.
* test(errors): expect malformed target bytes as unsupported_target in acceptance tests
The first full acceptance run of this PR found five expectations still
asserting invalid_request for target-byte failures: the timing test's
truncated ELF, a truncated DTB, duplicate Rust dependency JSON, and PE32
and PE64 load-config images without an MZ header. Assert the
unsupported_target code, with format_failure malformed where the
non-MZ PE path matches the already-updated PE imports test.
Both the structured resource-limit reply and the reserved memory exit omit
details.limit, because an allocation failure does not prove that
producer_limits.address_space_bytes was exhausted. The reference promised
the parameter limit for every pwntools budget failure.
* fix(cli)!: accept only the documented kebab-case option spelling
REA's argv parser kept incur's second spelling of every option: the
camelCase schema key (`--maxRows`) bound like the documented
`--max-rows`, although help, completion and manifests list only the
kebab-case form. That hidden alias let wrong spellings survive in the
guides.
The parser now binds only the documented flag. A schema key spelling,
including its `--no-` negation, fails as a typed `flag_spelling`
failure rendered as PARSE_ERROR that names the documented flag:
"Unknown flag: --maxRows. Did you mean --max-rows?". Completion no
longer resolves camelCase option names. The sensitive-value scan still
treats `--sensitiveValue` as a declaration so its value stays redacted
from the refusal.
Guides, the inspect-api-contract option description and tests now use
the kebab-case flags.
BREAKING CHANGE: camelCase option spellings such as `--maxRows` or
`--dryRun` are refused; use the kebab-case flag that `--help` lists.
* test(cli): exercise invalid dry-run values with the documented flag spelling
The invalid dry-run cases in strictPositionals and cliSetup appended
--dryRun=false as a later valid override. The parser now refuses that
schema key spelling before it validates the dry-run value, so each case
failed on flag spelling and never checked that a later override cannot
hide an earlier invalid value. The override is now --dry-run=false, and
each case asserts the dry-run failure message, so a spelling refusal can
no longer satisfy it.
The --dryRun=abc case in cliSetup's malformed-value list is removed: it
was the --dry-run=abc case under a spelling the parser now refuses
before reading the value, and argvParser.test.ts owns that refusal.
* test(cli): keep one public case for the flag spelling refusal
cliOptionAliases repeated argvParser's three token shapes (bare, inline
value, negation) through the full CLI. The parser test owns those shapes
and asserts the structured flag_spelling failure with its flag and
documented spelling; the CLI keeps one case for the documented
PARSE_ERROR projection, whose message is part of the CLI contract.
The camel-case sensitive-value case also dropped its trailing
--no-<literal> token: the spelling refusal stops parsing before it, so
the token no longer exercised anything.
* docs: correct, re-verify and prune getting-started, provider and reference pages
Re-verify the macOS arm64 native decompiler build, the m68k lane and the
RISC-V lane on Ghidra 12.2, check RISC-V language facts against the 12.2
SLEIGH sources, document the verify:ghidra demangler prerequisite, remove
duplicated IDA and mcp add paragraphs, prune release-history narratives and
the stale 6.4.0 registry checkpoint, clarify Godot carrier classification,
correct the packet-summary and SQLite host rows, and say in the
inspect-binary-layout CLI description that it is ELF-only on Linux x64.
* docs(reference): add a canonical producer_limits section
Derive the accepted fields and defaults per operation from the producer
limit schemas and describe how an exhausted budget reports its per-call
control.
* docs(reference): split producer_limits defaults by operation and document the pwntools exceptions
Field and decoder discovery reject input_bytes, and packet field search
defaults output_bytes to 32 MiB. For pwntools, diagnostic_bytes bounds
combined stdout and stderr while output_bytes bounds the reply file, and
an oversized input reports the pwntools.max_input_bytes setting limit
rather than the producer_limits parameter shape.
* fix(pwntools)!: report a per-call input ceiling as its producer_limits parameter
When producer_limits.input_bytes set the pwntools admission ceiling for a
call, an oversized input reported the registered pwntools.max_input_bytes
setting limit with update_mode "parameter" attached. Every other
producer budget reports the parameter shape, and AGENTS.md asks for the
limit of the control that stopped the work. Report producer_limits.input_bytes
with applies_at "next_call" and, as its default, the ceiling that applies
when the field is omitted. Setting, launch and built-in ceilings keep the
setting shape. Remove the reference exception this made obsolete.
BREAKING CHANGE: for a request-sourced pwntools input ceiling,
details.limit is now a control_kind "parameter" limit instead of a
setting limit carrying setting, source, update_mode and scope fields.
* fix(wasm): state the accepted WABT release range from its owning constant
`WabtRelease.ts` admits caller-supplied WABT `>=1.0.42 <1.1.0`, but the
`inspect_wasm_artifact` description, the capability inventory
remediation and the WASM static-inspection guidance said "WABT 1.0.42",
and a source comment and the WASM guide claimed managed downloads stay
pinned, although REA downloads no WABT.
The accepted range and the caller-facing release line now live in the
domain beside `WABT_VERSION`, so the contract description, inventory
remediation, error guidance and adapter messages all render the same
"WABT >=1.0.42 <1.1.0 (verified with 1.0.42)". The download claim is
removed, and the guides and skill source state the range.
* docs(wasm): state the accepted WABT release range in one owning guide section
The bundled WABT README still required an exact 1.0.42 banner while the
guide and supported-targets table stated the admitted range. Keep the range
in the WASM guide's Configure WABT section and link to it from the README
and the supported-targets table; the README keeps the verified release,
source commit and archive digest.
* test(wasm): derive WABT version assertions from the owning constants
Assert the verified release and caller-facing release line through
WABT_VERSION and WABT_RELEASE_LINE, and drop the literal range pin that the
owner-level admission boundary checks already cover.
* test(wasm): type the WABT version probe fixture by its owning type
Deriving expected_version from WABT_VERSION in an untyped literal widened
it to string; annotate the fixture as WabtVersionProbe instead.
* perf(ghidra): retain literal search candidates only when filtering narrows them
The Ghidra bridge folds ASCII exactly, so a case-insensitive literal
search with an ASCII-foldable pattern already returns its matches.
Attaching the unnarrowed reply as rawResult repeated the full match list
in every default search_strings/search_procedures response and Evidence
record. Retain it, with the candidate limitation, only when Unicode
filtering removed a row or secondary name.
Closes#14142
* docs(ghidra): state when a literal search retains raw candidates
The native investigation guide still said every case-insensitive literal
search puts bridge candidates in raw_result. It now states the
condition. A test covers the case where filtering removes only a matched
secondary name, which keeps every procedure but must still retain the
candidates.
* docs: tighten contributor guidance and prune duplicated skill and verification text
Link AGENTS.md to the CONTRIBUTING.md owners for scope, issues and pull
requests, remove change narratives from the development guides, add a
verification-record retention rule, and route format-specific skill
entries to tool descriptions and guides instead of restating them.
* chore(skill): regenerate the Cursor plugin skill copy
The skill source was trimmed in this PR; regenerate the tracked Cursor
plugin copy with scripts/generate-cursor-plugin-skill.mjs so the
documentation check's freshness test passes.
* docs: tighten format pages and correct stated limits
Restructure the GPU code object, UnityFS, IL2CPP, model, Rust and
hardening pages for scanning, state the Rust input and report limits
as overridable defaults, replace an IL2CPP jq round trip with the
--evidence-bundle query, and remove change narratives.
* docs(model): separate the big-endian v2 and unknown-version GGUF refusals
Only unknown versions report the raw version bytes and both UINT32
interpretations with byte order unknown; big-endian v2 is recognised and
refused with its own message.
* docs(development): route first contact by parsed facts and split admission limits from delivery budgets
Add first-contact routing rules, provider-neutral selector semantics,
address-space naming, once-per-session caveats, sibling-reader parser
sharing and target-versus-request error categorization to the tool
design guide. Replace the unpaged-by-default rule with bounded summaries
backed by retained Evidence, and distinguish refusing admission limits
from non-refusing delivery budgets. Add public-corpus checks to the
testing guide and tighten the audit and workflow sections.
* docs(development): bind mutable-state cursors to a revision and limit retryable to idempotent retries
* docs(development): share parsing, not admission policy, across sibling readers
Sibling readers of one format need different amounts of the same header,
so they share the parser and structural checks while each operation keeps
its own required fields and admission policy. Align the AGENTS.md limits
rule with the admission-limit and delivery-budget split.
The GitHub Actions example pinned rea-agents 6.7.0 and its test
hard-coded the same string, so the pin went stale silently across
three releases. Pin 6.10.1 and derive the test's expected version from
package.json, so a release bump fails the test until the example is
updated. Stop naming a fixed version in the CI analysis guide.
docs(guides): correct host and runtime claims and prune change notes
Correct sigrok, firmware and SQLite host/runtime requirements and a v8 CLI
flag, remove consumer-migration and historical asides, and drop duplicated
sentences in the JavaScript, web, runtime, data, firmware and signals guides.
Delete 54 dated verification records and companion JSON files that no
document, script, test or sidebar entry references. Keep the records
that live docs cite as evidence, the script-produced release-exposure
record, and the JSON companions those records link to. Move the one
record a test reads as data into tests/fixtures/javascript beside its
consumer. Git history retains every removed record.
Claude-Session: https://claude.ai/code/session_01TBh3FSTJTdVSc2DntiwVY7
Finding the largest files in an archive meant reading every occurrence
and sorting client-side, which for a jar of 28,671 entries is tens of
megabytes of rows. Add order_by with field declared_size or
compressed_size and an ascending or descending direction. Selected rows
are ordered before paging; unknown sizes, such as directories, come last in
either direction and ties keep inventory order. The container's own "."
row carries its size, so the description points at path_globs ["**"] to
rank only its entries.
Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
Questions about one directory of a large archive, such as the native
libraries under lib/ in an APK or the classes of one package in a jar,
required paging every occurrence, because occurrences could be selected
only by exact path, ID or kind. Add path_globs, which match whole recorded
logical paths: * and ? stay within one segment, a ** segment spans zero or
more segments (or everything below when last), other characters are
literal and case-sensitive, and the container's own "." row never matches.
Several globs union, then intersect with the other selectors, so one call
returns, for example, every file at the archive root or below assets/.
Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
* perf(mcp): serve compact output schemas from the build-recorded catalog
The compact output profile forced the eager runtime: full server composition plus runtime schema compaction measured at ~700 ms init + ~421 ms first tools/list, vs ~125 ms deferred for the default profile. The catalog recorder now also records bounded compact output advertisements per tool at build time; the deferred server serves them verbatim (new recorded presentation kind, canonical validation unchanged on calls), main admits the compact profile to the deferred path, and catalogs recorded before this field fall back to eager. Measured after: compact init 118 ms + list 7 ms at the same ~672 KB payload.
Refs #13275. Verified: DeferredEvidenceMcpServer tests (17), check:fast, build:cached, and a stdio probe comparing default/compact/hot-cold initialize and tools/list timings and bytes.
* fix(mcp): align compact deferred listings with the recorded catalog
Deferred compact startup used the off-profile catalog digests, so the first
tool call rejected the runtime. Select the digest for the configured output
profile.
Recorded output presentation skipped compaction for every listed schema.
Track which tools have a build-recorded advertisement and compact live
registrations, including discover_tools.
The recorder stored a contract projection. Legacy clients receive that
projection after the SDK stamps or wraps a non-object root and REA compacts
the listing. Record that listed schema.
Co-authored-by: morluto <morluto@users.noreply.github.com>
* docs(mcp): describe recorded compact startup
Compact stdio startup serves the recorded catalog, including compact output
when that catalog has compact schemas. A compact profile whose catalog has
none falls back to eager composition. Initial-target, HTTP, family-scoped
hot/cold, and source runs without recorded artifacts stay eager.
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>
* feat(javascript): add semantic_analysis structure-only mode to analyze_javascript_application
On large Electron apps the default analysis runs full semantic analysis per file (364 s measured in #14100) although first questions are application-graph facts. semantic_analysis: structure-only returns static and application-graph facts without semantic IR, graph content or traces: the worker purpose protocol gains structure-only (full static checkpoint, semantic phase skipped, no semantic result budget consumed), adoption records the mode once as a limitation, and Evidence parameters record the selection. Default complete behavior is unchanged.
Closes#14116. Verified: javascriptArtifactReconstruction, electronApplicationAnalysis and javascriptApplicationService suites (75 tests incl. new structure-only e2e), worker server/schema tests, check:fast, docs:check, advertised schema summary regenerated.
* test(javascript): assert semantic relations in the structure-only test
* fix(javascript): record structure-only semantic coverage as incomplete and retain refusal facts
Structure-only files now record a semantic unavailable reason so graph coverage cannot claim complete examination (comparisons will not report skipped bindings as removed), member-mutation refusal checkpoints cross for structure-only as they do for complete analysis, and the e2e control asserts real semantic content under the default.
* docs(javascript): document semantic_analysis and expose --semantic-analysis
The owning reconstruction guide now describes the complete default, what structure-only returns and skips, and how to follow up with complete analysis of selected sources. The CLI projection declares the field so --semantic-analysis <complete|structure-only> is accepted with the contract enum.
* fix(javascript): record structure-only application coverage as partial
Structure-only omits source-module and export-binding nodes. The
application graph now reports partial coverage with a null omission
count, so a comparison of an unchanged application treats those
bindings as unknown rather than removed.
---------
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
where.properties selects only present JSON scalar values, so a group over
array, object or missing values cannot be read back through it. Say so in
the group_by description and the workflow guide, and assert the exact node
count of a repeated channel in the MCP test.
Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
Counting the distinct IPC channels of one operation meant paging every
observation, each with its full Evidence, and deduplicating by hand; real
clients miscounted send channels on a large Electron app. Add the
javascript-fact-groups view: with the javascript-facts selectors and
group_by property names, it returns each distinct combination with its
observation and node counts, ordered by canonical JSON, and its total. A
missing key stays omitted, distinct from a retained null such as an
unresolved dynamic channel. The analyze_javascript_application description
names the IPC grouping.
Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
javascript-facts selected observations only by location and node kind, so
reading one operation of an IPC channel set meant paging every channel
observation of the file. Add where.properties: each listed key must be
retained with one of its JSON scalar values. A missing key or non-scalar
value never matches, and repeated keys must all hold.
Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
Finding the native addons in an application archive meant paging every
inventory occurrence (about 1 KB each) or reading the complete inspection,
because occurrences could be selected only by exact path, ID or entry kind.
Add artifact_kinds, which matches the recorded artifact kind exactly and
intersects with the other selectors, so one call returns, for example,
every native-addon occurrence with selected fields.
Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
* feat(frida): add optional limit and offset paging to list_frida_processes
Closes#13853
* fix(frida): stabilize paged process discovery
* docs(frida): scope paging claims to shipped discovery
* docs: codify pagination, schema-flatness, DDIA, and flat-ownership guidance in tool-design docs and skills
Closes#13864
* docs: name the current provider operation runner