Skip to content

fix(workers)!: name malformed worker replies by the model's kind - #14292

Merged
morluto merged 83 commits into
fix/target-failure-adapter-recoveryfrom
fix/worker-reason-kinds
Nov 24, 2026
Merged

morluto merged 83 commits into
fix/target-failure-adapter-recoveryfrom
fix/worker-reason-kinds

Conversation

@morluto

@morluto morluto commented Nov 24, 2026

Copy link
Copy Markdown
Owner

Depends on #14289. The base branch is #14289's, so the diff shows only this PR.

Eighth PR of the #14239 stack: worker wire reasons.

Root cause

Five worker protocols replied with reason: "format" for bytes that break their format: pwntools (Python bridge), EVM, UEFI LZMA, the source-map codec and the historical capture decoder. Each adapter then translated format into the model's malformed, so the same fact had two names across a process boundary, and the pwntools decoder had one branch per kind. pwndbg's schema accepted format but its bridge never sends it.

Structural fix

  • Renamed at the source. The workers send malformed: LayoutFailure and CoreFailure in bridge/pwntools (and test_layout.py), EvmoleInterfaceWorker, UefiLzmaWorker and the AMD zlib path, SourceMapCodecProcess, and CaptureFormatError.replyReason. Each reply schema accepts malformed and no longer accepts format.
  • One branch per fact. The pwntools decoder maps malformed and truncated replies to AnalysisTargetFailureError with kind: reply.reason.
  • pwndbg: format is removed from its reply schema, and the dead branch with it.

Design notes

  1. A wire protocol is a boundary, not a translation layer. The worker owns the fact, so the worker spells it in the model's vocabulary. Adapters read the kind; they do not rename it.
  2. No class changes here. The source-map codec and capture decoder still refuse malformed bytes as invalid_request with an issues[] entry, as before. Moving them onto AnalysisTargetFailureError changes about a dozen compiled-CLI acceptance expectations (HAR, qlog, SAZ, source-location), so I kept it out of this rename and listed it below.

Tests

  • Reply-scenario tables for pwntools and EVM, the EVM producer-limit test, the EVM cleanup-retry test, the capture cleanup test and bridge/pwntools/test_layout.py send and expect malformed.
  • No tests are removed, so there is no registry case to name. pwntools and EVM need runtimes the registry cannot assume.

Mutation checks: restoring "format" in bridge/pwntools/layout_impl.py fails 3 test_layout.py cases; restoring it in EvmoleInterfaceWorker fails EvmProducerLimits.test.ts. Both pass after revert. The pwntools TS reply-scenario suite is skipped without a local pwntools runtime, so the decoder's enum change is covered only by CI's real-binary-layout job.

Validation

  • npx vitest run src/{evm,uefi,javascript/sourceMaps,browser/history,native/pwntools,native/pwndbg} and the pwntools, EVM and capture boundary suites: 692 passed, 84 skipped (real pwntools and evmole runtimes).
  • python3 -I -m unittest discover -s bridge/pwntools: 8 passed.
  • Scoped tsc, oxfmt, oxlint: clean.

Real-provider verification scope

Not run against real pwntools, pwndbg or evmole runtimes. Simulated replies cover the projection.

Remaining cleanup

  • The source-map codec and capture decoder refuse malformed bytes as invalid_request. They should be target failures of the selected file.
  • asarFailure and the keyed-archive reader still map an unknown non-filesystem error to malformed. Narrowing them needs the plist and ASAR parsers' untyped throws to be typed first, and the suites that exercise them run the compiled CLI, so I could not verify the change locally and left it out.

The pwntools, EVM, UEFI LZMA, source-map and historical-capture workers
replied with reason "format" for bytes that break their format, a second
vocabulary for the TargetFailure kind. The workers and their reply schemas
now use "malformed" at the source, including the pwntools Python bridge
and its tests. pwndbg never sent "format", so its schema drops it.

The pwntools decoder maps the worker's malformed and truncated replies to
the target failure of the same kind in one branch.

BREAKING CHANGE: worker reply reason "format" is renamed "malformed" in
the pwntools, EVM, UEFI LZMA, source-map and capture decoder protocols.
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-24T05:31:58.050978Z
We couldn’t complete this review. Comment @codex review to try again.
cb37242 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@greptile-apps

greptile-apps Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5 Tier: plus

[High impact] The reviewed changes appear safe to merge; no new blocking issue was established.

Summary

The PR brings worker reply reasons into line with the shared target-failure model. The full diff also moves reader failures onto that model, updates CLI recovery text, and consolidates CLI/MCP contract tests.

  • Analysis results name file failures by what went wrong with the target.
  • File readers report damaged bytes as failures of the selected file.
  • Workers name malformed replies with the model's failure kind.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  A[Selected target bytes] --> B[Reader or worker]
  B --> C[Owned failure kind]
  C --> D[AnalysisTargetFailureError]
  D --> E[Shared code, details and retry rules]
  E --> F[CLI recovery spelling]
  E --> G[MCP error tool result]
  D --> H[Bound cleanup owner]
  H --> E
Loading

Reviews (7) · Last reviewed commit: "fix(target-failure): merge origin/main a..." · Reviewed by Greptile

…ics (#14293)

#14253 made the static PE readers read the optional header at its fixed
offsets and admit a declared directory count below 16, as the Windows
loader does. The Go MZ diagnostic fixtures still expected the older
refusals, so inspect_go_binary MCP and CLI diagnostics failed on main.
A short SizeOfOptionalHeader with an unknown magic at the fixed offset
is now an unsupported optional header, and a PE declaring one data
directory is admitted and keeps its build information, which the MCP
test now asserts.
Comment thread src/uefi/UefiLzmaWorker.ts Resolved
morluto and others added 22 commits November 24, 2026 00:43
…der reads

#14253 walks resource trees at their RVA whatever the directory Size
declares, so shrinking Size no longer made the 65,535-language table
malformed and the case reported the entry allowance instead. Point the
type directory's entry at a language directory outside the file-backed
resource bytes: its header cannot be read, which the reader reports as
malformed before counting rows against the allowance.
* ci: validate workflow anchors with actionlint 1.7.12

* ci: wait for static checks before broad PR test shards
Bumps [markdownify](https://github.com/matthewwithanm/python-markdownify) from 1.2.3 to 1.2.4.
- [Release notes](https://github.com/matthewwithanm/python-markdownify/releases)
- [Commits](matthewwithanm/python-markdownify@1.2.3...1.2.4)

---
updated-dependencies:
- dependency-name: markdownify
  dependency-version: 1.2.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [rcssmin](https://github.com/ndparker/rcssmin) from 1.2.2 to 1.3.0.
- [Changelog](https://github.com/ndparker/rcssmin/blob/master/CHANGES)
- [Commits](ndparker/rcssmin@1.2.2...1.3.0)

---
updated-dependencies:
- dependency-name: rcssmin
  dependency-version: 1.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [pyyaml](https://github.com/yaml/pyyaml) from 6.0.3 to 6.0.4.
- [Release notes](https://github.com/yaml/pyyaml/releases)
- [Changelog](https://github.com/yaml/pyyaml/blob/6.0.4/CHANGES)
- [Commits](yaml/pyyaml@6.0.3...6.0.4)

---
updated-dependencies:
- dependency-name: pyyaml
  dependency-version: 6.0.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…ction (#14311)

* refactor(tests): consolidate repeated CLI capture and fixture construction

* test(cli): keep overlapping schema and help cases in their existing PR
…ers (#14322)

* refactor(application): consolidate configuration and observation helpers

* refactor(config): leave optional launch parsers to their existing change
* refactor(tooling): share verifier fixture and lint helpers

* test(clients): retain tool messages in verifier model substitutes
* perf(nuget): stream .nupkg ZIP over FileHandle instead of buffering full archive (#13835)

* perf(nuget): stream .nupkg ZIP over FileHandle instead of buffering full archive

Closes #13834

* fix(nuget): check artifact stability after format rejection

* refactor(kuna): extract KunaSingleFunctionCache from KunaSessionClient (#13863)

Closes #13862

* perf(har): reuse normalized Base64 for retained response bodies (#13847)

Co-authored-by: hhang <[email protected]>

* refactor(application): migrate 7 standalone format services onto executeArtifactInspection (#13861)

Closes #13860

* refactor: prune 5 redundant single-call wrapper modules (#13807)

* refactor: prune 5 redundant single-call wrapper modules

* chore(ci): remove deleted providerEnvironment.ts from Stryker and CI scope configs

* fix(ci): retarget provider environment mutation coverage

* refactor(application): migrate 3 remaining artifact services onto executeArtifactInspection (#13867)

* refactor(rizin): extract RizinDebugEvidence from RizinDebugSessionManager (#13823)

* refactor(rizin): extract RizinDebugEvidence from RizinDebugSessionManager

* refactor(rizin): remove unused evidence imports

* fix(ci): follow extracted Rizin evidence in mutation checks

* docs: codify pagination, schema-flatness, DDIA, and flat-ownership guidance in tool-design docs and skills (#13865)

* 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

* feat(frida): add optional limit and offset paging to list_frida_processes (#13854)

* 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

* refactor(application): unify 5 pass-through analysis services into ProviderOperationService (#13856)

Closes #13855

* refactor(cli): extract contractCommandRunners from contractCommand (#13869)

* feat(tools): add optional limit and offset paging to find_xrefs_to_name (#13858)

* feat(tools): add optional limit and offset paging to find_xrefs_to_name

Closes #13857

* fix(tools): preserve xref discovery coverage in paged results

* feat(adb): add optional limit and offset paging to list_adb_features and list_adb_services (#13873)

* feat(adb): add optional limit and offset paging to list_adb_features and list_adb_services

* test(adb): verify feature and service paging guidance

* refactor(cli): extract contractCliSchemaProjection and contractCliDocumentDescription (#13871)

* fix(dwarf): reject PE long section names when PointerToSymbolTable is zero (#13889)

* perf(macho): streamline legacy rebase run marking (#13881)

* perf(erlang): stream BEAM IFF inspection over FileHandle (#13886)

* perf(erlang): stream BEAM IFF inspection over FileHandle

* fix(erlang): retain only decoded BEAM code headers

* refactor(kuna): extract KunaSessionEvidence from KunaSessionClient (#13879)

* refactor(kuna): extract KunaSessionEvidence from KunaSessionClient

* refactor(kuna): remove stale session evidence imports

* fix(objc): preserve class import reader failures (#13892)

* refactor(server): extract desktop build tool bindings (#13891)

* refactor(server): collapse inspect bindings and extract desktopBuildToolBindings

* fix(mcp): restore contract-checked inspect bindings

* fix(macho): preserve legacy bind stream bounds and target scope (#13874)

* fix(macho): preserve legacy bind stream bounds and target scope

* fix(macho): report unresolved legacy bind targets in coverage

* test(macho): consolidate legacy bind target coverage

* perf(pe): stream PE certificates over FileHandle (#13884)

* perf(pe): stream PE certificates over FileHandle

* fix(pe): share certificate table admission across readers

* perf(apple-ips): stream Mach-O join headers over FileHandle (#13894)

* perf(apple-ips): stream Mach-O join headers over FileHandle

* fix(apple-ips): retain only verified Mach-O joins

* perf(objc): streamline exact class identity projection (#13897)

* perf(pe): stream PE resource inspection over FileHandle (#13899)

* perf(pe): stream PE resource inspection over FileHandle

* fix(pe): bound streamed icon-group reads and restore lifetime coverage

* perf(swift): streamline symbol inventory classification (#13902)

* perf(apk-signature): stream APK signature inspection over FileHandle (#13877)

* perf(apk-signature): stream APK signature inspection over FileHandle

* fix(apk-signature): preserve bounded reads and file identity

* fix(apk-signature): handle deflate EOF and repair verifier bounds

* fix(apk-signature): recognize internal pipeline cancellation at EOF

* perf(release-exposure): stream PE CodeView/PDB inspection over FileHandle (#13896)

* perf(release-exposure): stream PE CodeView/PDB inspection over FileHandle

* fix(release-exposure): share and bound PE CodeView parsing

* refactor(server): simplify contractToolBindings types and handler dispatch (#13912)

* perf(macho): streamline slice selection diagnostics (#13905)

* fix(macho): preserve retained magic from valid FAT ranges (#13910)

* perf(pe): stream PE load-config inspection over FileHandle (#13901)

* perf(pe): stream PE load-config inspection over FileHandle

* fix(pe): admit empty section tables and batch TLS callback reads

* perf(elf): stream ELF note inspection over FileHandle (#13904)

* perf(elf): stream ELF note inspection over FileHandle

* fix(elf): validate full header extents and reuse aliased note reads

* fix(macho): keep header reads inside declared slices (#13913)

* perf(v8): stream V8 code cache inspection over FileHandle (#13907)

* fix(macho): correct encryption range VM mapping (#13918)

* perf(elf): stream kernel module inspection over FileHandle (#13917)

* perf(elf): stream kernel module inspection over FileHandle

* test(elf): exercise streamed kernel module reads and finalization

* refactor(providers): share offlineArtifactFailureDialect across offline providers (#13921)

* test(macho): consolidate fixed header and extent proofs (#13919)

* perf(macho): bound positional command string probes (#13925)

* refactor(server): replace server.close and onclose monkey-patching with lifecycle hooks (#13882)

* refactor(server): replace server.close and onclose monkey-patching with lifecycle hooks

* fix(mcp): keep deferred runtime cleanup out of protocol close

* test(mcp): verify materialized runtime hooks close once

* fix(cli): defer artifact AnalysisView loading until requested

* test(macho): consolidate native path framing proofs (#13926)

* perf(elf): stream ELF dependency inspection over FileHandle (#13915)

* perf(elf): stream ELF dependency inspection over FileHandle

* fix(elf): share dependency hash parsing and bound string reads

* perf(elf): reuse cached prefixes for short dependency names

* refactor(server): extract debugger and instrumentation tool bindings (#13909)

* refactor(server): extract debugger and instrumentation tool bindings

* test(server): track extracted debugger bindings in reverse tools coverage

* fix(cli): defer artifact AnalysisView loading until requested

(cherry picked from commit e58fda3f2618b35bde5990c9e114f57f9d43f65d)

* refactor(macho): use binary facts for native diagnostic admission (#13929)

* perf(macho): streamline native export inventory merging (#13932)

* perf(elf): stream ELF debug-link inspection over FileHandle (#13928)

* perf(elf): stream ELF debug-link inspection over FileHandle

* perf(elf): reuse section name bytes across debug-link readers

* perf(pe): stream PE import inspection over FileHandle (#13924)

* perf(pe): stream PE import inspection over FileHandle

* perf(pe): reuse import read windows and cover positional boundaries

* fix(elf): preserve load segment range diagnostics

* test(macho): consolidate lipo field and native slice proofs (#13937)

* perf(elf): stream ELF unwind-range inspection over FileHandle (#13931)

* perf(elf): stream ELF unwind-range inspection over FileHandle

* fix(elf): bound unwind name retention and refill frame metadata

* test(macho): make slice cancellation and cleanup ordering deterministic (#13944)

* test(macho): make slice cancellation and cleanup ordering deterministic

* test(macho): join slice reads before restoring test spies

* refactor(providers): adopt offlineArtifactFailureDialect in BEAM, V8, NuGet, and LNK providers (#13936)

* refactor(providers): adopt offlineArtifactFailureDialect in BEAM, V8, NuGet, and LNK providers

* fix(nuget): let integrity and cancellation fall through to classifyProviderFailure

* perf(macho): defer segment geometry until lazy metadata needs it (#13949)

* test(macho): consolidate classic and modern dylib encoding proofs (#13952)

* perf(native): stream binary hardening inspection over FileHandle for ELF, PE, and Mach-O (#13934)

* perf(native): stream binary hardening inspection over FileHandle for ELF, PE, and Mach-O

* fix(native): bound hardening note and symbol reads

* test(native): verify bounded hardening reads through positional readers

* refactor(server): extract browser, Electron, and JavaScript runtime tool bindings (#13939)

* refactor(server): extract browser, Electron, and JavaScript runtime tool bindings

* test(ci): select browser checks for extracted bindings

* refactor(providers): adopt offlineArtifactFailureDialect in PE, ELF, and Apple IPS providers (#13954)

* test(macho): consolidate lazy payload reuse and capacity proofs (#13958)

* refactor(artifacts): extract source-map detection and occurrence path helpers from ReleaseExposureReader (#13961)

* perf(elf): stream kernel build-config inspection over FileHandle (#13942)

* perf(elf): stream kernel build-config inspection over FileHandle

* fix(elf): reuse kernel marker windows and report compressed input limits

* fix: preserve kernel config identity on cleanup failure

* test(macho): consolidate command framing and admission proofs (#13964)

* test(macho): consolidate command framing and admission proofs

* test: assert Mach-O command failure facts

* perf(dwarf): stream DWARF compile-unit inspection over FileHandle for ELF, PE, and Mach-O (#13948)

* perf(dwarf): stream DWARF compile-unit inspection over FileHandle for ELF, PE, and Mach-O

* fix: bound positional DWARF reads and share Mach-O selection

* test: verify positional Mach-O command admission

* refactor(providers): adopt offlineArtifactFailureDialect in NativeInitializers, Go, Rust, and ElfUnwind providers (#13966)

* refactor(providers): adopt offlineArtifactFailureDialect in BinaryHardeningProvider and PeBinaryFailure (#13970)

* refactor(server): extract session, investigation, and workflow tool bindings (#13968)

* perf(ntfs): stream MFT record decoding in O(recordBytes) memory (#13957)

* perf(ntfs): stream MFT record decoding in O(recordBytes) memory

* fix: resolve streamed MFT links through bounded positional reads

* refactor(providers): adopt offlineArtifactFailureDialect in KernelBuildConfigProvider (#13973)

* refactor(adb): extract read-only shell inspection operations from AdbProvider (#13975)

* refactor(elf): remove obsolete debug-link buffer parsers (#13971)

* perf(native): stream PE and ELF export-table inspection over FileHandle (#13951)

* perf(native): stream PE and ELF export-table inspection over FileHandle

* fix: share export interpretation across buffered and positional reads

* refactor(providers): adopt offlineArtifactFailureDialect in DwarfUnitsProvider (#13977)

* perf(elf): read only needed debug-link section bytes (#13980)

* refactor(providers): adopt offlineArtifactFailureDialect in NativeExportsProvider (#13982)

* feat(analysis-view): page retained UEFI firmware maps

Add the uefi-firmware view for inspect_uefi_firmware Evidence. The summary returns volume, file and section counts with FFS type, section type and volume depth tallies. Pages select volumes, files, sections, unknown regions, integrity records and PSP tables or candidates. Files match exact GUIDs, user-interface names, type names and owning volume; sections match their owning file and type. Rows keep the original flattened index plus the offset and source stream that extraction targets.

Co-Authored-By: gensokyo-dev <[email protected]>

* perf(uefi)!: summarize firmware inspection by default over MCP

A complete map of a 4 MiB OVMF image is about 514 KB of structured content, which exceeds client result limits. MCP inspect_uefi_firmware now retains the complete map and returns its summary unless the caller passes detail complete. An optional view returns the first uefi-firmware page in the same call; later pages use inspect_analysis_view. The one-shot CLI command still returns complete Evidence.

BREAKING CHANGE: MCP callers that need every volume, file and section inline must pass detail: "complete" to inspect_uefi_firmware.

Co-Authored-By: gensokyo-dev <[email protected]>

* docs(firmware): describe UEFI summaries and views

Co-Authored-By: gensokyo-dev <[email protected]>

* perf(rust): stream Rust binary inspection over FileHandle for ELF, PE, Mach-O, and WebAssembly (#13979)

* perf(rust): stream Rust binary inspection over FileHandle for ELF, PE, Mach-O, and WebAssembly

* fix(rust): bound positional dependency and name reads

* refactor(rust): reuse strict UTF-8 validation

* fix(elf): retain verified debug-link evidence through descriptor finalization (#13986)

* refactor(elf): prune superseded whole-buffer parseKernelBuildConfig wrapper (#13996)

* refactor(dwarf): prune superseded whole-buffer locateDwarfSections wrapper (#13993)

* refactor(elf): retire obsolete note buffer parsers (#13995)

* fix(gpu): mark conflicting CUDA shared sections partial and clear register provenance (#13963)

* refactor(artifacts): extract bounded member I/O helpers from ReleaseExposureReader (#13990)

* refactor(adb): extract package and app lifecycle operations from AdbProvider (#13988)

* refactor(server): extract offline inspection tool bindings from serviceToolBindings (#13984)

* refactor(elf): retire the obsolete unwind buffer parser (#14007)

* refactor(uninstall): extract registration-removal and item-collapse helpers from Uninstall (#14006)

* refactor(rizin): extract NUL-frame reader and wait helpers from RizinDebugSessionManager (#14001)

* refactor(rizin): extract NUL-frame reader and wait helpers from RizinDebugSessionManager

* fix(ci): track extracted Rizin frame helpers

* refactor(native): extract NativeAotPeImage from nativeAotPe (#13998)

* chore(guards): declare desktop build-computer entries and clear the entry baseline (#14011)

* perf(go): stream Go binary inspection over FileHandle for ELF, PE, and Mach-O (#14003)

* perf(go): stream Go binary inspection over FileHandle for ELF, PE, and Mach-O

* fix(go): share parsing and bound positional string reads

* perf(go): reuse target reads under the scan budget

* refactor: remove internal re-export shims and guard against new ones (#14009)

* refactor: remove internal re-export shims and guard against new ones

* fix(ci): catch namespace module re-exports

* perf(elf): reuse proven symbol suffixes in unwind lookup (#14014)

* refactor(cli/server): break remaining module-layer cycles (#14013)

* refactor(cli,server): break remaining module-layer cycles

* fix(ci): follow relocated CLI entry points

* refactor: remove retired internal reader exports

* fix(ci): track configuration inputs across cached checks (#14015)

* fix(ci): close static-check cache gaps and prune stale settings (#14017)

* fix(ci): close static-check cache gaps and prune stale settings

* chore(ci): remove unused Actionlint runner label

* fix(ci): rerun TODO scans against the host interpreter

* fix(elf): retain verified artifact reports through descriptor finalization

* test(elf): assert retained reports during descriptor finalization

* refactor(elf): retire the test-only dependency buffer driver

* test(elf): join the paused dependency parser on failure

* refactor(elf): consolidate kernel module checks on positional reads

* fix(elf): preserve kernel config framing and location provenance (#14021)

* perf(elf): bound kernel module signature digest reads (#14024)

* fix(elf): retain verified kernel reports through descriptor finalization (#14022)

* refactor(go): consolidate native parser checks on positional reads (#14027)

* feat(uefi): record the owning FFS file of extracted payloads

Each published extraction file now names the FFS file whose body or section produced it, with its GUID, user-interface name, type and logical path. Decoded streams resolve through their carrier section. Callers no longer need to match output paths against a separate inspection to find which driver a file belongs to.

Co-Authored-By: gensokyo-dev <[email protected]>

* feat(analysis-view): page retained UEFI extraction manifests

Add the uefi-extraction view for extract_uefi_firmware Evidence. The summary returns file, byte, derivation and gap counts, source, media-type and gap-kind tallies, and a bounded preview of the first published files. Pages select files by exact media type, source and owning FFS GUID, name or type, in publication or size order, plus derivations and gaps by kind. Counts and the size order are built once per retained report.

Co-Authored-By: gensokyo-dev <[email protected]>

* perf(uefi)!: summarize firmware extraction by default over MCP

A whole-image extraction of a 4 MiB OVMF image lists 560 files in about 553 KB of structured content, which exceeds client result limits. MCP extract_uefi_firmware now retains the complete manifest and returns its summary unless the caller passes detail complete. Targeted extractions fit in the summary's file preview. An optional view returns the first uefi-extraction page in the same call; later pages use inspect_analysis_view. The one-shot CLI command still returns complete Evidence.

BREAKING CHANGE: MCP callers that need every published file inline must pass detail: "complete" to extract_uefi_firmware.

Co-Authored-By: gensokyo-dev <[email protected]>

* docs(firmware): describe UEFI extraction summaries and owners

Co-Authored-By: gensokyo-dev <[email protected]>

* fix(uefi): attribute a refused output directory to output_directory

An existing output directory was reported as an invalid path issue, which points callers at the firmware image instead of the directory they chose. Route destination refusals through outputDirectoryAdmissionRefusal, as firmware extraction already does.

Co-Authored-By: gensokyo-dev <[email protected]>

* fix(go): reject contradictory module coverage in retained views (#14029)

* fix(go): retain verified reports through descriptor finalization (#14026)

* perf(analysis-view): page unfiltered Go and Rust metadata directly (#14030)

* refactor(rust): consolidate binary parser checks on positional reads (#14033)

* feat(native): report the stored RVA of PE exports

PE export rows reported only the preferred-base virtual address, which the parser derives from the export-address-table RVA. Callers asking for an RVA had to recover the image base through other tools. Each row now carries the RVA as the slot stores it; a forwarder's RVA locates its forwarder string.

Co-Authored-By: gensokyo-dev <[email protected]>

* feat(analysis-view): filter native exports and ELF dependencies by name prefix

Retained native-exports and elf-dependencies views matched only exact names, so counting the exports or imports in one namespace meant paging every row. Add name_prefixes to the exports collection and to every named elf-dependencies collection. A prefix filter combines with exact names, and coverage.total counts every match, so limit 1 returns a count. ELF export prefixes follow the exact-name identity rules: non-ASCII names compare their UTF-8 bytes, and names that are not valid UTF-8 never match. The tool descriptions now name the filter.

Co-Authored-By: gensokyo-dev <[email protected]>

* docs(native): describe export RVAs and name-prefix views

Co-Authored-By: gensokyo-dev <[email protected]>

* fix(analysis-view): read older UEFI extraction Evidence and drop filter-count ceilings

extract_uefi_firmware rows gained a required ffs_file, so extraction Evidence saved before that field failed to parse in retained views. The field is now optional when reading: the extractor still always records it, and an unrecorded owner matches no owner filter. UEFI view filters also capped each list at 64 values without a format, protocol or resource reason; overlapping filters cannot be split into separate requests without miscounting, so the cap is removed. MCP input-element admission still bounds every request.

Co-Authored-By: gensokyo-dev <[email protected]>

* fix(python): validate marshal coverage and consolidate pyc tests (#14036)

* perf(rust): reuse the Wasm section probe for custom name lengths (#14035)

* refactor(process): share the abortable command-turn wait between GDB and Rizin (#14042)

* fix(erlang): require complete positional BEAM reads (#14045)

* fix(rust): retain verified reports through descriptor finalization (#14034)

* test(process): consolidate symlink snapshot captures (#14051)

* fix(domain): make partial count switches exhaustive for typed lint (#14048)

Deep static checks on main fail typed lint (switch-exhaustiveness-check) in three counting switches introduced by recent single-pass summary refactors. Name the unmatched 'none' basis explicitly and give the graph/AST switches a documented default.

* refactor(server): extract ForwardingTransport base class for MCP Transport wrappers (#14050)

* fix(devicetree): validate retained report ranges and coverage (#14066)

* fix(ci): fall back to Ubuntu Azure archive in recorded-crash container (#14061)

The Ubuntu 24.04 recorded-crash container repeatedly timed out at 150s refreshing APT indexes from archive.ubuntu.com and security.ubuntu.com on main. Split Noble's 150s refresh budget into a 75s initial attempt followed by a 75s retry against http://azure.archive.ubuntu.com/ubuntu (matching ubuntu-archive's Noble Azure fallback while keeping http:// before ca-certificates is installed), and leave Debian unchanged at 150s.

* fix(erlang): retain verified BEAM reports through descriptor finalization (#14062)

* perf(uefi): skip verified erased padding in NVRAM scans (#14069)

* test(uefi): consolidate volume ownership and checksum proofs (#14070)

* fix(ci): run type-aware lint on changed files in fast PRs (#14068)

* fix(v8): preserve verified code cache results and require exact payload reads (#14067)

* refactor(config): return Result for ConfigurationError in IdaConfiguration and KiloClientLocation (#14053)

* refactor(config): return Result for ConfigurationError in IdaConfiguration and KiloClientLocation

* fix(config): return Kilo file-probe failures through Result

kiloGlobalLocation returned inline-configuration failures as Result but kept
throwing the shared probe's ConfigurationError, and kiloLayeredLocation no
longer caught it: an unreadable Kilo folder rejected resolveSupportedClients
for every client instead of staying a Kilo row failure. Convert probe
failures at the same Result boundary and register the counted catch.

Validation: a new boundary test (regular file at Kilo's config root) fails
without the fix and passes with it; kiloClientLocation, clientLifecycle,
mcpAddClientLifecycle and registration catalog suites pass; check:fast
passes.

* fix(ida): preserve the size rejection when descriptor close fails

The 64 KiB rejection became a completed outcome holding a rejected Result,
so the cleanup-failure handler replaced it with generic close guidance.
Read the rejection from the completed outcome when composing the cleanup
error, covering both the admission and growth size checks. Restore the
close spy leaked by the existing denial test, which the new cases exposed.

Validation: a new it.each denies close after each size check, asserts the
64 KiB message plus retained-cleanup release, and fails without the fix;
the IdaConfiguration suite and check:fast pass.

* refactor(uefi): exercise only the framed LZMA worker (#14072)

* fix(uefi): preserve verified source identity through descriptor finalization (#14073)

* refactor(config): return Result from resolveKiloRegistrationWorktree (#14055)

* refactor(config): return Result from resolveKiloRegistrationWorktree

* test(config): cover Kilo worktree resolution results

* perf(views): page exact Playwright trace index hits directly (#14031)

Co-authored-by: hhang <[email protected]>

* refactor(domain): compose cleanup dependencies through analysisErrorCleanup helpers (#14064)

* refactor(domain): compose cleanup dependencies through analysisErrorCleanup helpers

* fix(kuna): honor completed project cleanup when wrapping failures

* refactor(domain): one ByteSource representation for streaming parsers (#14044)

* refactor(domain): one ByteSource representation for streaming parsers

* refactor(nuget): adopt ByteSource across NuGet and APK parsers (#14047)

refactor(nuget,apk): adopt ByteSource and drop the NuGet in-memory parse branch

* test(elf): remove obsolete byte source fixture declarations

* refactor: centralize owned finalization and configuration failures (#14071)

* refactor(config): propagate typed configuration failures

* refactor(lifecycle): centralize completion and cancellation

* fix(config): preserve Hermes YAML edit refusal guidance

* fix(reference): preserve file cleanup when directory enumeration fails (#14081)

Directory enumeration can list a file and then fail with EIO. If that
file read is cancelled and its close fails, replacing the cancelled
result with success dropped the still-open file. Keep the directory
read failure primary and merge the file's remaining resource into both
cleanup-combination returns.

Co-authored-by: Cursor Agent <[email protected]>

* fix(ci): bind timing evidence to its workflow attempt (#14080)

Co-authored-by: ShuaixinHuang <[email protected]>

* fix(ci): trace test dependencies through static template imports (#14079)

Co-authored-by: ShuaixinHuang <[email protected]>

* fix(ci): retain cache generations per restore version (#14084)

* fix(ci): retain cache generations per restore version

* test(ci): align inherited Mach-O assertion with main

---------

Co-authored-by: ShuaixinHuang <[email protected]>
Co-authored-by: ShuaixinHuang <[email protected]>

* fix(ci): use retry start times in PR health reporting (#14085)

* fix(ci): use retry start times in PR health reporting

* test: cover the reviewed CI boundary cases

---------

Co-authored-by: ShuaixinHuang <[email protected]>
Co-authored-by: ShuaixinHuang <[email protected]>

* perf(javascript): reuse completed CommonJS module-source queries

Static and semantic analysis ask whether the same callee or receiver is a CommonJS module object or require delegate at the same read site several times; a minified 1.9 MB webpack main bundle repeated about half of its 92,374 queries. Once member-mutation facts are complete, an identical query reuses its answer and re-records the resource limits the first walk reached. The answers are cleared with the semantic value caches and require-delegate writes, which every state change that can alter them already invalidates. The same bundle runs 48,447 walks instead of 92,374, and static and semantic results are unchanged on all 43 sources of the measured application.

Co-Authored-By: gensokyo-dev <[email protected]>

* perf(javascript): skip captured-selection normalization without captures

Most loader sources carry no captured selections, yet normalization allocated a map and sorted an empty array for each one before returning nothing. Return that result directly.

Co-Authored-By: gensokyo-dev <[email protected]>

* perf(javascript): build loader context keys without JSON serialization

Every module-source work item serialized its read site and capture boundaries to JSON to key its context. Build the same key by concatenation; absent and null positions still share a key, and absent captures still differ from an empty capture list.

Co-Authored-By: gensokyo-dev <[email protected]>

* perf(javascript): reuse preload-discovery static checkpoints in the normal pass

When any .js source belongs to a module package, preload discovery statically analyzes every source and the normal pass analyzes each one again. The worker now keeps the complete static checkpoint discovery computed, keyed by container, path, text digest, package type, precision and member-mutation allowance, and the normal pass of the same source writes that checkpoint instead of recomputing it. Static analysis is deterministic for those inputs, so the parent reads, validates and charges byte-identical facts. A discovered preload whose package type changes, a source discovery could not checkpoint, and a replaced worker all recompute. Retained checkpoints are consumed once and bounded to one eighth of the worker's V8 heap limit.

Co-Authored-By: gensokyo-dev <[email protected]>

* perf(javascript): park the worker after preload-discovery allowance refusals

A scoped worker closed instead of parking after any failed analysis, so one member-mutation refusal during preload discovery discarded the process and every static checkpoint it retained. Discovery skips such a source and the normal pass analyzes and reports it again, and the worker reports the refusal while staying healthy. A discovery checkout whose failures are all member-mutation refusals now parks if canReuse still holds. Other failures, and any failure in a normal analysis, still close the worker.

Co-Authored-By: gensokyo-dev <[email protected]>

* perf(javascript): keep the worker reusable after a final discovery refusal

The worker's reuse state cleared its last failure only on success, so a
member-mutation refusal of the last discovered source still closed the
worker and discarded every retained static checkpoint. The worker now
owns the recoverable-refusal rule, and the scope uses the same predicate.

Co-Authored-By: gensokyo-dev <[email protected]>

* perf(javascript): skip checkpoint encoding without reuse capacity

Runtimes without a reported heap limit (Bun) retain nothing, yet discovery
still encoded every complete checkpoint before checking capacity. Check the
remaining capacity first.

Co-Authored-By: gensokyo-dev <[email protected]>

* feat(analysis-view): select inventory occurrences by artifact kind

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 <[email protected]>

* feat(analysis-view): select retained JavaScript facts by property value

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 <[email protected]>

* feat(analysis-view): count distinct retained JavaScript fact values

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 <[email protected]>

* docs(analysis-view): qualify javascript-fact-groups readback to scalar values

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 <[email protected]>

* perf(ghidra): scan defined data for selective string search instead of materializing inventory (#14101)

search_strings now scans getDefinedData directly when the string inventory has not been built, matching before allocating StringFacts and retaining only matches in STRING_ORDER. Sessions that only search no longer pay full inventory materialization and retention in the bridge JVM heap; list operations still build the cached inventory as before.

Refs #13292, #13355. Verified: ghidraBridgeSources (11 tests), javac against Ghidra jars, check:fast, and a real Ghidra 12.2 + JDK 25 probe asserting search-before-list equals search-after-list for regex and insensitive literal queries. No wire or result-order change.

* perf(ghidra): scan procedures for selective search without retaining inventory (#14103)

search_procedures now builds procedure entries without populating procedureInventory when it has not been built yet (buildProcedures extracted from procedures()), so a search-only session does not retain the full procedure inventory in the bridge JVM. Cached path, name index, order (PROCEDURE_ORDER) and matched_aliases output are unchanged. Companion to the search_strings scan in #14101; together they apply the DDIA rule of materializing inventories only for repeated list access, not for one ad-hoc search.

Refs #13355, #13299. Verified: javac against Ghidra 12.2 jars, ghidraBridgeSources 11 tests, and a real Ghidra 12.2 + JDK 25 probe asserting search-before-list deep-equals search-after-list (7 procedure matches, 12 procedures).

* refactor(frida): make inspectStatus async and load the view service lazily (#14108)

FridaInstrumentationService was the last application service statically importing AnalysisViewService for a conditional summary branch, because inspectStatus was synchronous. It is now async (its only production caller, debuggerToolBindings, already runs it inside an async handler), loads AnalysisViewService dynamically only when detail=summary, and otherwise imports only the retention check. Tests updated to await the six call sites; no behavior change.

Refs #13275. Verified: FridaInstrumentationService tests (37), check:fast. Stacks cleanly with #14102, which moves the retention import to AnalysisViewRetention.ts; resolve by taking that import line if both land.

* fix(ida): extend verifier admission check deadline to 90s

The admission check spawns scripts/verify-real-ida.mjs, which imports the
full dist graph before reaching the early admission errors. Under CI shard
load that exceeded the 10s command deadline and failed Test shard (5/12)
on main, while the same sha passed the scheduled run. The sibling verifier
observations check already uses 90s for the same script.

* perf(search): derive literal candidates from regex alternations (#14106)

* perf(search): derive literal candidates from regex alternations

extractRequiredRegexLiteral previously returned undefined for every alternation, so regex search_strings/search_procedures with alternatives paged full IDA inventories and transferred full Hopper inventories for Node-side matching. It now computes, for top-level and required-group alternations, the longest literal every branch guarantees (longest common substring of each branch's required runs) and returns it as the provider candidate; Node still verifies the full ECMAScript regex on candidates, so the candidate remains a zero-false-negative prefilter. A branch-common segment floats inside each branch and is never joined to neighbouring literals.

Refs #13353. Verified: regexLiteralCandidate tests (including the /u and /iu zero-false-negative corpus with new alternation patterns), IdaOperationRunner tests, HopperRegexSearch tests, check:fast with architecture guards.

* fix(search): require two code points for alternation candidates

A single shared code point (e.g. matched|absent -> a) matches nearly every value, so alternation-derived candidates now require at least two code points to be worth a provider round trip; shorter commons fall back to full inventory as before. Single-branch literals keep existing behavior. HopperRegexSearch routing tests pass unchanged.

* fix(search): bound alternation candidate extraction work and nesting

Long disjoint alternatives could spend hundreds of thousands of substring probes on the calling thread, and nested alternation groups recursed once per nesting level. Cap total probes (falling back to the full inventory past the budget) and cap alternation recursion depth, abandoning only the over-deep branch. Tests cover 2000-deep nesting and 1024-char disjoint alternatives.

* refactor(application): move AnalysisViewRetention to a light module and defer view loading in services (#14102)

* refactor(application): move AnalysisViewRetention to a light module and defer view loading in services

AnalysisViewRetention and requireAnalysisViewRetention moved from AnalysisViewService (which pulls the 1.3 MB analysis-view result graph) into AnalysisViewRetention.ts, which depends only on error and Evidence port types. All type-only consumers now import the light module. ApkSignature, Il2cpp and Reverse services load AnalysisViewService dynamically only on the detail=summary branch, and executeArtifactInspection checks retention readiness through the light module and loads the view service only after a successful inspection. No behavior or wire change.

Refs #13275, #13940. Verified: check:fast (typecheck, lint, architecture guards), 93 source tests (AnalysisViewService, Il2cpp, ApkSignature, Reverse), cliStartupImports 10/10 on pinned Node 24.22.1, knip clean. Remaining static importers (ArtifactComparisonEvidence, environment build/state, Frida sync inspectStatus, server bindings) still block a full chunk split and stay in #13275.

* fix(application): recheck cancellation after lazy view imports and guard static view links

An abort arriving while the dynamic AnalysisViewService import was pending still recorded and returned a successful summary. ArtifactInspectionExecution, ApkSignature, Il2cpp and Reverse now recheck the signal after the import (retaining the complete Evidence as the cancelled partial observation) before projecting. Add a counted architecture guard so static AnalysisViewService imports in application services cannot return silently; the baseline records only the known synchronous helpers and Frida path tracked in #14112.

* perf(tests): supervise direct vitest scripts through run-exclusive on POSIX (#14104)

* perf(tests): supervise direct vitest scripts through run-exclusive on POSIX

test:run, test:with-build, test:boundary, test:mcp, test:acceptance, test:integration, test:coverage and test:verbose invoked vitest directly, so an interrupted run could orphan detached provider children outside the owned process group. They now go through scripts/run-vitest.mjs, which wraps Vitest in run-exclusive --unlocked on non-Windows platforms (mirroring run-development-tests.mjs) and invokes Vitest directly on Windows, where source tests must not require the built Job Object artifact. Watch and CI shard scripts are unchanged.

Refs #13357. Verified: launcher smoke run (4 tests passed), check:fast, knip.

* fix(tests): forward stop signals from the vitest launcher to its child

The launcher ignored SIGINT/SIGTERM when wrapped, so a signal sent only to its PID left Vitest and its descendants running. It now always forwards to the child (run-exclusive can only forward signals it receives itself) and reports the tracked signal's exit code (143/130) deterministically. Verified with a manual probe: SIGTERM to the launcher PID during a 60s fixture test exits 143 with the tree stopped; launcher smoke run passes. A nested-supervisor in-process test proved environmentally unstable (the inner Vitest main is killed under nested run-exclusive supervisors) and was not landed.

* perf(contracts): prune only over-depth schema branches instead of reducing whole schemas (#14107)

* perf(contracts): prune only over-depth schema branches instead of reducing whole schemas

A schema whose inlined form exceeded the depth-10 advertised limit fell back to reduceToShallowProperties for the entire tool, erasing enums and nested validation on all root properties. pruneSchemaBeyondDepth now replaces only sub-schemas past the prune depth with type-preserving placeholders (every replacement widens acceptance, so canonical server-side validation is unchanged), and both input and output compaction keep the pruned form as inline when it fits bytes, depth and dialect checks. Two compactInputSchema tests that pinned depth-forces-reduction now pin the pruned-inline contract with the same Ajv/dialect safety assertions.

Refs #13302. Verified: compactInputSchema, compactOutputSchema, toolSchemaMetadata, advertisedInputExamples (59 tests), check:fast, docs:check.

* docs(contracts): refresh advertised schema summary for pruned-inline compaction

Pruned-inline schemas retain patterns (digest, Evidence id and text patterns) that whole-schema reduction dropped on 13 tools; regenerate the committed catalog summary with npm run verify:advertised-schemas -- --update-summary and re-verify clean.

* fix(contracts): make deep-schema pruning widening-safe

Walk schema positions instead of raw JSON, preserve declared integer types, keep branches that fit, return no pruned schema under not/oneOf where widening can reject valid values, and recheck output byte budgets. Add regression coverage for closed objects, unsafe combinators, fitting enums, and nullable integers; refresh advertised summaries.

* fix(contracts): keep untyped deep schemas unconstrained when pruned

Inferring object from properties or array from items narrows an untyped schema, which accepts every JSON value; the placeholder is now always unconstrained when no type is declared. Add an Ajv regression accepting null and nested values through a pruned untyped branch.

* test(contracts): assert pruned untyped schemas at depth 8

The regression accepted values that never reached the replaced node, so
it stayed green for an object placeholder and did not distinguish
branch pruning from whole-schema reduction. Assert the empty schema at
depth 8 and accept null there.

---------

Co-authored-by: Cursor Agent <[email protected]>

* docs(github): require reported verification and factual docs in PR template (#14130)

* docs(github): require reported verification and factual docs in PR template

Record the maintainer checks for running needed validation, limiting
comments to constraints and decisions, and keeping documentation factual.
Mirror that guidance in AGENTS.md where it was not already stated.

* docs(github): assign the PR checklist to the author

Rename Before merge so the PR author completes it before requesting
review, and point the draft-PR note at that section.

* docs(github): confirm root cause and engineering rules on PRs

Add a few author-checklist items for the root cause, owning-boundary
interpretation, retained cleanup facts, and REA_ limit settings.

* docs(github): attest engineering rules in the PR template only

Restore AGENTS.md to main and phrase the new author-checklist items
as author attestations, including hardcoded limits rather than every limit.

Co-authored-by: morluto <[email protected]>

---------

Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: morluto <[email protected]>

* chore(deps): update MCP TypeScript SDK to 2.4.0 (#14129)

* chore(deps): update MCP TypeScript SDK to 2.4.0

Bump @modelcontextprotocol/server and @modelcontextprotocol/client (and core transitively) from 2.3.1 to 2.4.0, the current v2 release; the legacy @modelcontextprotocol/sdk package line (1.x) is not used. Regenerate package metadata. Notable upstream changes checked against REA usage: no x-mcp-header annotations are used, output schema ids are urn: URIs accepted by the new Ajv fast-uri, and REA does not unwrap structuredContent.result. The 2025-11-25 structuredContent wrapping change for meta-id output schemas is client-visible and noted for release notes.

Verified: check:fast, DeferredEvidenceMcpServer + toolOutputReferences suites (53 tests), deferredRuntime + serverLifecycleMcp boundary suites (41 tests), and a stdio initialize/tools/list probe on all profiles after a clean build.

* fix(contracts): keep compact output unions when the SDK stamps an object root

MCP SDK 2.4.0 treats a $ref union of objects as an object and stamps
type:object before tools/list. Compact reduction then dropped that union
and advertised an empty property bag. Reduce each alternative's root
shape instead, and advertise widened oneOf branches as anyOf so
overlapping branches still accept canonical results. guided_workflows
already declared that object root and had the same empty advertisement.

Refresh the advertised catalog summaries for guided_workflows,
read_guidance_section, and search_guidance.

* chore(licenses): refresh the MCP SDK 2.4.0 dependency inventory

Regenerate licenses/npm-dependencies.txt with the license inventory
script. Update the three runtime notice identities from the lockfile
after checking each 2.4.0 archive integrity and LICENSE text; those
license bodies are unchanged. The notice fingerprint matches the
generator.

---------

Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: morluto <[email protected]>

* feat(javascript): add semantic_analysis structure-only mode to analyze_javascript_application (#14117)

* 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 <[email protected]>

* perf(browser): fetch source maps with bounded lookahead and in-order admission (#14115)

* perf(browser): fetch source maps with bounded lookahead and in-order admission

fetchWebSourceMaps awaited each map's full fetch-decode cycle before starting the next, so bundles with dozens of external maps paid serial round trips. Responses now start with a lookahead of 4 (approved origins only, never past the operation deadline), while every budget (URL bytes, retained bytes, decoded records), deadline check and decode still happens strictly in request order inside fetchOne, so item order, inclusion under output limits and limitations are unchanged. A started prefetch that is never admitted is cancelled in teardown, and abort/deadline paths route through fetchOne so retained-cleanup ownership (SourceMapPendingFetch) is preserved.

Closes #14109. Verified: WebSourceMapFetcher tests 31 passed (30 existing unchanged plus a new out-of-order-completion proof asserting overlap >1 and request-order admission), check:fast.

* fix(browser): abort and bind cleanup for unadmitted source-map prefetches

Teardown now aborts the operation controller before removing deadline/caller controls, and every started-but-unadmitted prefetch is settled and bound to the returned result: pending-fetch cleanup becomes the retained failure (or a secondary failure on an existing error), and unread prefetched responses are cancelled with cleanup failures tracked. The lookahead test now gates six requests to prove the four-fetch cap.

* fix(browser): pipeline source-map fetches without speculative or reordered requests

Start each request's fetch after its budget reservation and deadline checks pass, and start the next fetch only when the current body is read and the next failure reservation still fits. Redirect chains and host-observable request order stay sequential; the next fetch overlaps only the current decode. Sibling binding now ignores teardown-abort artifacts and binds only genuinely incomplete cleanup. Boundary suites (49 tests) and unit suite (31) pass unchanged in their budget and redirect assertions.

* fix(browser): retain sibling source-map cleanup on teardown

Cancellation that stops admission at the first map left later lookahead
fetches owning unread responses. Teardown skipped stored failures and
recorded the rest only as secondary notes, so the returned error could
report cleanup complete while those resources were still owned.

Await every started prefetch and merge its live cleanup through the
existing cleanup-composition helpers, preserving remaining resources.

* fix(browser): keep caller cancellation through source-map cleanup

Unused-prefetch teardown chose success before its cleanup wait and after
the caller abort listener was removed. Recheck the caller signal after
that wait so a cancel during a successful release stays a cancellation,
while an existing failure keeps its cleanup owners.

Cover unused-prefetch release, mixed redirect and prefetch cleanup, and
cancellation during release with structured cleanup facts.

---------

Co-authored-by: Cursor Agent <[email protected]>

* fix(gpu): name an unreadable shared section instead of a bare null count (#14133)

Co-authored-by: 吴佳浩 <[email protected]>

* perf(process): pool regex workers across match calls (#14114)

* perf(process): pool regex workers across match calls

matchRegexValues spawned a fresh worker_threads Worker per call (~10.5 ms measured, vs ~0.9 ms pooled for a trivial match on 1-5k candidates). Workers are now pooled by heap class (max 4, 10 s idle reap, unref'd while idle): the worker protocol is message-driven, a worker is reused only after a clean matched/invalid-pattern reply, and deadline, abort, error, exit or malformed replies retire it so a stuck pattern can never poison the pool. Queueing for a busy pool counts toward the caller's deadline. Results, heap and deadline errors, and cancellation semantics are unchanged.

Closes #14110. Verified: RegexMatcher + RegexMatcherReply + boundary regexMatcher + HopperRegexSearch + IdaOperationRunner tests (91+15), check:fast, and a 15-call benchmark (10.5 ms -> 0.9 ms per call).

* test(process): use the admitted deadline source spelling in the pool test

* fix(process): enforce queue deadlines, reclaim idle regex workers, and await retirement

Address pooled-worker review findings: the matching deadline now starts before pool acquisition (queue waiters expire and expired jobs are never posted), idle workers of another heap class are reclaimed instead of blocking a changed heap setting, queued worker startup failures reject into the normal Cannot-start path, and non-clean outcomes await worker termination before returning so close() cannot finish while matching work lives. Add RegexMatcherPool.test.ts with a construction-counting fake worker proving reuse across clean calls and termination-before-return plus replacement after a deadline.

* fix(process): allocate regex workers through one capacity path

Acquisition retired an idle worker and spawned directly, bypassing waiter order: retirement served an older waiter into the freed slot and acquisition then spawned a fifth worker. Acquisition now only takes an idle match or enqueues, and serveRegexWaiters owns every spawn/reclaim decision in waiter order. Add a mock-pool regression proving a fifth queued search deadlines at four constructions.

* fix(process): reclaim incompatible regex workers on one path

Keep a stopping worker counted until terminate settles, and let release
ask the shared allocator so a different heap does not wait out the idle
reap. A failed stop stays owned and is recorded beside the match error.

* fix(process): mark background regex-worker stops and release test gates

Typed lint rejects an unmarked beginStopRegexWorker promise, so the
allocator's fire-and-forget stops are explicit. Pool tests release held
workers in finally, including when an assertion fails first.

Co-authored-by: morluto <[email protected]>

---------

Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: morluto <[email protected]>

* perf(mcp): serve compact output schemas from the build-recorded catalog (#14121)

* 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 <[email protected]>

* 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 <[email protected]>

---------

Co-authored-by: Cursor Agent <[email protected]>
Co-authored-by: morluto <[email protected]>

* feat(analysis-view): select inventory occurrences by path glob

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 <[email protected]>

* feat(analysis-view): order inventory occurrences by size before paging

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 <[email protected]>

* fix(analysis-view): match inventory path globs without backtracking

Globs compiled to regular expressions in which every * became another
overlapping [^/]* group, so a selector such as *a*a*a*a*a*a*a*a*b took
polynomial time in the name length to reject a long run of a's, and
selection runs synchronously before paging. Match each segment with the
two-pointer wildcard algorithm, which keeps one retry point and bounds
work to pattern length times segment length, and resolve ** segments with
a reachability pass over path segments. Matching semantics, including
code-point ?, literal metacharacters and a trailing ** needing one segment,
are unchanged.

Co-Authored-By: gensokyo-dev <[email protected]>

* test(analysis-view): cover compressed-size inventory ordering

The ordering test selected only declared_size, so an implementation that
ignored order_by.field still passed. Add an archive whose repetitive text
is declared larger but compresses smaller than incompressible bytes, and
assert both orders with the directory's unknown size last.

Co-Authored-By: gensokyo-dev <[email protected]>

* fix(adb): report macOS ownership preparation failures as typed host prerequisites (#14140)

Since adb runs under owned supervision, a failed macOS ownership helper
build reached the adb version probe as an unreadable result, so one broken
toolchain failed all of binary_session. adb now reports the shared
ownership_preparation failure that apktool, JADX and Ghidra report, and its
availability probe turns it into runtime_unavailable.

When the host refuses the helper's compiler for capacity (EMFILE), that
retryable constraint now stays primary over the helper root it could not
remove, which remains a retained cleanup dependency.

The four providers build the preparation error through one owner,
ownershipPreparationError, next to the availability check that reads it.

Fixes #13943

Co-authored-by: Anurag Singh <[email protected]>

* test(ida): decode the Hex-Rays query line without importing site (#14144)

The decoder asserts empty stderr, but -I still imports site, so a host
sitecustomize that writes to stderr failed the test. The decoder needs
only ast, json and sys; -S removes the dependency on host site setup.

* docs(i18n): standardize Vietnamese translations for guides and common terms (#14141)

* docs(i18n): standardize Vietnamese translations for guides and common terms

* docs(i18n): address review feedback on verification claims and analysis guidance

* fix(javascript): report no loader call in a program that names no CommonJS loader (#14191)

Two loader queries answer "unknown" when they exhaust their alias
budget, and callers report that as a require reference. Ordinary calls
such as node.getClientRects() were reported as dynamic requires in
programs that contain no loader at all, and on dense bundles those walks
dominated the static phase.

Every loader identity these queries recognize is rooted in a name the
program must contain (require, module, a mainModule member, the module
builtin, process used as a value, or global code) or in a bundler
factory binding. One pass over the syntax establishes whether a program
names any of them. When it names none, both queries answer without
walking.

Closes #14190

* perf(javascript): merge data-effect traversals and look up callable kinds (#14149)

Configuration, request and boundary candidates were each collected by a
whole-program traversal that rebuilt the same callable and ancestor
stacks, followed by two more for defaults and response consumers. The
three independent collectors now share one traversal and the two that
read their results share another.

Callable ownership is asked of every node on entry and exit in about a
dozen passes. It is now one lookup by node type, derived from Babel's
Function and Class aliases, instead of a chain of type guards.

Refs #14147

* chore: ignore the .claude agent directory like other local agent tooling (#14194)

Agent worktrees under .claude/worktrees carry their own .oxlintrc.json.
oxlint discovers it as a nested configuration and rejects it, so lint,
check:fast and the pre-push hook fail for the whole checkout. .codex,
.devin and .factory are already ignored for git and lint; .claude was
not.

* docs(verification): remove dated records that nothing cites (#14196)

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

* docs(guides): correct native and platform guide flags, host limits and stale notes (#14198)

* docs(guides): correct host requirements and prune change notes in runtime, web, data guides (#14197)

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.

* perf(debugger): stop repeating command results as raw_result (#14146)

* perf(debugger): stop repeating command results as raw_result

GDB console/startup, Rizin debug, Cutter and reverse-engineering command
Evidence set rawResult to a copy of result, contrary to the raw_result
contract. Every interactive debugger reply therefore carried its records
and output twice. Omit rawResult where no distinct provider
representation exists; tests assert the same facts on normalized_result.

Closes #14145

* test(debugger): assert command results on normalized_result in remaining suites

The composition, CLI delivery, acceptance and MCP suites still read
command output through raw_result, and one fixture built a parent
Evidence record that repeated its result as raw_result. They now assert
the same fields on normalized_result and that raw_result is null.

* fix(examples): pin the CI example to the current REA release (#14201)

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 exp…
Entrpi and others added 2 commits November 24, 2026 14:41
* test(raw): pin raw-binary admission and identity

Record what raw-binary loads produce today, so a later change to how the
load is represented has to keep it:

- every admission result and pairing message over a grid of
  architectures, entry spellings and file sizes;
- the analysis profile digest for each raw family;
- the snapshot target and query identity of a raw ARM load;
- the complete raw-binary load image for the ARM fixture.

The values were computed at d6f88be without changing production code.

* refactor(raw): carry the raw load selection as one admitted value

The caller's raw load selection (format, architecture and entry_point)
travelled as three loose optional fields through about ten layers:
CLI flags, MCP open, direct analysis (five call sites), the session
port and open options, and target resolution. Every new load input had
to be threaded through each of them. The CLI and MCP boundaries now
build one NativeLoadSelection, and target admission is its only reader.

Admission now returns one RawBinaryLoad, carried on the raw target as
rawLoad. It names the base address of file offset 0 and the entry
separately. Before, the provider client, the load-image attestation,
the analysis profile and the snapshot target each read the entry and
assumed it was also the base. Admission still sets the base to the
entry, so nothing a caller sees changes.

No contract or behaviour change. The tests pinned in the previous
commit pass unchanged: the admission and pairing result grids, the
per-family profile digests, the raw snapshot target and query id, and
the complete raw load image. Tests that build raw targets use the new
rawLoadAtEntry fixture.

* feat(raw): state the M-profile raw load contract

Record provisional decision D1 (#4246) as code before implementing it,
so maintainers can confirm or redirect the contract cheaply.

- src/domain/rawArchitectureVariant.ts owns the variant vocabulary:
  armv6-m, armv7-m, armv7e-m, armv8-m.base and armv8-m.main, each an ARM
  M profile with Thumb-only code and an M-profile vector table. It also
  owns the closed sets that persisted entries use: isa_mode, role (the
  entry's function: entry or reset) and basis (how REA chose it: caller
  or vector-table).
- GHIDRA_RAW_VARIANT_LANGUAGES maps them to ARM:LE:32:Cortex and, for
  v8-M, ARM:LE:32:v8-m, which has the v8-M encodings Cortex lacks. This
  follows the GNU architecture names in Ghidra 12.1.4's ARM.ldefs.
  Provider language ids stay out of the domain.
- CLI and MCP gain architecture_variant, and with it base_address and
  vector_table_address; the open_binary description explains them.
  Narrow first: a separate base is accepted only with a variant, the one
  lane verified with it. The pairing check names the input to correct,
  so MCP error paths come from one owner, and
  rawBinaryVariantSelectionIssue owns the rules for the new inputs.
  Legacy pairing messages and paths are unchanged and pinned.
- Raw target summaries gain optional base_address, architecture_variant
  and vector_table_address. The load-image union gains the versioned
  segments shape (version 1): one file-backed segment, entries with
  address, isa_mode, role and basis, and, when the basis is the vector
  table, the table address with the two words read from it.
- docs/raw-binary.md describes the inputs and Evidence, and two levels
  of identity: coordinates from resolved values only, sessions and
  snapshots also from the provenance that results report. It keeps the
  decision record, which includes not applying Ghidra's
  processor-defined labels to variant loads.
- Tests are generated from the tables: pairing per variant and family,
  the Ghidra binding per variant, and the docs table and the skill
  reference's variant names against the tables. The persisted variant
  names are pinned.

Admission refuses the new inputs until the following commits implement
them. The base_address input follows #4927 by Jean Granié.

* feat(raw): admit M-profile loads at a separate base

Raw admission now implements the D1 inputs:

- architecture_variant must match the family. Its code runs in Thumb
  state, so an even entry is accepted where generic ARM needs 4-byte
  alignment. An odd entry is refused as a Thumb interworking address.
  The error diagnostics give the even code_address and suggest omitting
  entry_point, so the caller's value is never silently changed. An odd
  generic ARM entry keeps its earlier reason and gains a hint to use
  the M-profile inputs.
- With a variant, base_address maps file offset 0. The entry must lie
  inside the mapped image, and the address width is measured from the
  base.
- With a variant and a base but no entry_point, admission asks the
  resolver to read the first two words of the vector table. It reads
  them at vector_table_address, or at the base when that is omitted.
  Word 1 must be odd and point inside the image; the entry is that word
  with bit 0 cleared. Word 0, the initial stack pointer, is recorded as
  observed and not validated.

Admission applies the same rawBinaryVariantSelectionIssue rules as the
pairing check, so CLI and MCP refuse the same selections in the same
words.

RawBinaryLoad records the variant, the entry's instruction set, and
whether the entry was the caller's or read from a vector table. It keeps
canonical values only: caller spellings are not facts about the load,
and a session reused across spellings must report the same load. The
grid pin is recomputed at d6f88be without the spelling and is
otherwise unchanged. isLegacyRawLoad decides legacy equivalence on
resolved values. Target summaries report base_address,
architecture_variant and vector_table_address only for loads that are
not legacy-equivalent. The load_selection_rejected recovery now lists
the new inputs.

* feat(raw): give M-profile loads a versioned identity

rawLoadIdentity is the one identity function for raw loads. A
legacy-equivalent load has no new identity, so its analysis profile,
coordinate context, snapshot target and query ids stay exactly as
before; the pinned digests prove it.

Any other load gets raw_load (version 1), built from canonical resolved
values: the base, the variant, the vector table that Reset was read
from, and the entry's address, instruction set, role and basis. The
role names the entry's function (entry or reset); the basis records how
REA chose it (caller or vector-table). Every load fact that summaries
and Evidence report is in it, provenance included, so a reused session
never reports what the current request did not choose. Spellings are
excluded, so another base spelling, or an explicit vector table at the
default location, reuses the same session. Absent values are omitted,
as in the summaries and Evidence.

- The snapshot target gains optional raw_load, compared canonically.
  Older snapshots have none and keep matching legacy loads.
- The Ghidra profile commits raw_load, base_address, the variant's
  language, the Thumb entry context, processor_labels not-applied-v1
  and load_image_evidence independent-raw-segments-v1.
- The function coordinate context covers resolved values only. Beside
  the language and entry it already covers, it gains base_address and
  the entry's decode context. Analyses that differ only in role, basis,
  vector table or a variant with the same decoder stay comparable: a
  caller-named entry and Reset at one address share a coordinate
  context while their sessions stay separate.
- The persisted variant names are pinned in raw_load.

* feat(ghidra): open M-profile loads at their base in Thumb state

The Ghidra raw lane now reads the committed load instead of assuming
that the base is the entry:

- The decoder comes from the variant (ARM:LE:32:Cortex or v8-m);
  generic ARM keeps ARM:LE:32:v7.
- BinaryLoader maps the file at the base. A variant load is imported
  with -loader-applyLabels false: ARMCortex.pspec names the vector table
  at ram:0x0-0x40 and marks every handler slot an entry, reserved slots
  included, which at base 0 would cover the image and the code after
  the table. Loads without a variant keep the language default.
- ReaGhidraPrepareRaw receives the base, the entry and the committed
  entry context. It requires the entry inside the file-backed block
  and, for Thumb, TMode=1 at the entry, and fails closed otherwise.
- The bridge descriptor carries entry_context_register. The bridge
  accepts only the registers GHIDRA_RAW_ENTRY_CONTEXT can commit, and a
  launcher test keeps the two equal. It reports that register in
  load-image observations, so it no longer needs to match a language
  string to know about TMode.
- Load-image attestation keeps the raw-binary image unchanged for
  legacy-equivalent loads; the pinned digest proves it. Other loads get
  the segments image (version 1): one file-backed segment at the base,
  the entry with its isa_mode, role and basis, the vector table address
  and both words read from it when Reset was derived, an
  entry_context.TMode check, and a check that the committed entry is
  the only external entry. Spellings of the same load give the same
  image, so a reused session reports what the current request would.
- Raw limitations are derived from the load. Legacy wording is kept,
  except the claim that Cortex-M is unsupported.

The base and entry separation in the prepare script, the TMode check
and the entry-context attestation follow #4927.

Co-authored-by: jgranie <[email protected]>

* test(raw): check saved raw snapshots and schemas stay compatible

The segments load image is the first persisted shape these inputs add,
so this commit adds the historical-snapshot and schema checks with it:

- A raw-binary snapshot written at d6f88be, before base_address,
  still parses. It matches the same load admitted today, and its
  load-image Evidence replays and equals what this version produces. An
  M-profile load of the same file does not match it.
- The earlier raw-binary Evidence schema rejects a segments image, so
  readers that predate it refuse the new shape instead of misreading
  it. An unknown segments version is rejected as well.
- The advertised inspect_native_load_image output accepts both the
  saved and the segments images. The advertised open_binary input
  accepts calls from before base_address beside the new inputs, and
  rejects variants outside the table.

* test(ghidra): verify M-profile raw loads against real Ghidra

Add npm run verify:ghidra:cortex-m, adapted from the #4927 verifier and
its Cortex-M0 fixture. It drives the compiled CLI and stdio MCP server
with source-owned images:

- the Cortex-M0 (armv6-m) image at bases 0x0 and 0x08000000, and after
  a 256-byte boot2-style header opened with vector_table_address;
- a Thumb-2 image (movw, movt, ldr.w, it, cbz) opened as armv7-m at 0x0
  and as armv7e-m at 0x08000000;
- an armv8-m.base image with movw, movt, cbz and udiv;
- an armv8-m.main image that sets MSPLIM, which only the v8-M decoder
  names.

LLVM is the independent oracle. The lane assembles each fixture's
annotated source for its triple, requires identical bytes, and requires
Ghidra to decode the same mnemonics in Thumb state. Mnemonics are
compared without width qualifiers (ldr.w) or the dot Ghidra puts before
an IT condition (mov.eq). The Cortex-M0 fill after its last return is
declared as data, so neither decoder counts it as code. The lane also
checks that Reset, read from the vector table, is the only entry Ghidra
reports, the segments load image and its TMode check, decompilation,
odd-entry refusal with code_address while the session is kept, CLI/MCP
parity, unchanged legacy identity, refusal of a base without a variant,
snapshot reuse across base spellings and refusal across variants,
unchanged source bytes, and owned cleanup.

Only named settings reach REA, which fixes the #4927 review finding that
an exported REA_GHIDRA_LANGUAGE_ID broke the verifier.

Verified on Linux x86_64 (Debian 13) with Ghidra 12.1.4, OpenJDK
21.0.12 and LLVM 19.1.7; the oracle also runs with Apple LLVM 21. Not
run on macOS or Windows.

Co-authored-by: jgranie <[email protected]>

* feat(raw): add the armv8.1-m.main variant

ARMv8.1-M Mainline, as in the Cortex-M55 and Cortex-M85, gets its own
architecture_variant row, decoded with ARM:LE:32:v8-m. Ghidra 12.1.4's
ARM.ldefs lists armv8.1-m.main as a GNU name of that language, and its
slaspec builds it with VERSION_8M. The next commit's real-Ghidra case
checks that it decodes ARMv8.1-M low-overhead loops and MVE.

Folding v8.1-M into armv8-m.main would use the same decoder but drop the
profile from identity, and splitting it out later would change identity
again. The decision record now says so.

The docs table, the skill reference and the pinned persisted names
follow the table. The refused-spelling test now uses armv8.1m.main, the
LLVM triple's spelling, since armv8.1-m.main is accepted.

* fix(ghidra): report Ghidra's ARMv8.1-M loop flow for armv8.1-m.main

On real Ghidra 12.1.4, the ARM:LE:32:v8-m decoder names the ARMv8.1-M
low-overhead-loop branches correctly but gets their flow wrong. In the
Cortex-M55 image the next commit verifies:

- WLS at 0x46 branched to 0x5a, 2 bytes short of its target 0x5c and
  inside the LE instruction;
- LE at 0x58 branched unconditionally to 0x4e, 4 bytes past the loop
  start 0x4a, with no fall-through.

So the code after the loop was never disassembled, and a function with
such a loop is cut short. Results of armv8.1-m.main sessions now carry
that limitation, and the raw-binary docs state it, instead of the claim
that the decoder handles the low-overhead loops. MVE loads, stores and
VCTP decode as LLVM decodes them.

* test(ghidra): verify an ARMv8.1-M image against real Ghidra

The cortex-m lane gains a Cortex-M55 image opened as armv8.1-m.main at
base 0x0: a WLS/LE low-overhead loop around the MVE instructions VLDRW,
VCTP and VSTRW. LLVM assembles it for thumbv8.1m.main with
-mcpu=cortex-m55 -mfloat-abi=hard, because clang 19 refuses MVE under
the default soft-float ABI. The oracle takes the CPU and float ABI from
the fixture.

Ghidra must decode each instruction it reaches with LLVM's mnemonic in
Thumb state, as in the other cases. A data type that gives only the
element size (Ghidra vldrw.32) matches one with signedness (LLVM
vldrw.u32); opposite signedness still fails. The lane now reports every
disagreement in one run instead of stopping at the first.

Ghidra 12.1.4 does not follow the loop's exits (see the previous
commit), so this case requires the pop after the loop to stay
undisassembled, records both loop branches' flow, and checks that the
results report the limitation. Base 0 also checks that the v8-m
decoder's vector table gets no processor labels.

Verified on Linux x86_64 (Debian 13) with Ghidra 12.1.4, OpenJDK
21.0.12 and LLVM 19.1.7: all eight cases pass. The oracle also runs with
Apple LLVM 21. Not run on macOS or Windows.

* refactor: name the variant vocabulary after architecture_variant

The variant table is no longer only for raw loads: the M-profile ELF
lane uses the same vocabulary. Its internal names now follow the public
input, architecture_variant, without an ARM M-profile prefix that would
need renaming again once other architectures get variants:

- src/domain/rawArchitectureVariant.ts becomes architectureVariant.ts,
  together with its test and the docs conformance test;
- RawArchitectureVariant, RAW_ARCHITECTURE_VARIANTS,
  RAW_ARCHITECTURE_VARIANT_NAMES, rawArchitectureVariantSchema and
  rawArchitectureVariantRow drop the raw prefix;
- GHIDRA_RAW_VARIANT_LANGUAGES becomes GHIDRA_VARIANT_LANGUAGES, and
  ghidraRawProcessorLabels becomes ghidraVariantProcessorLabels.

Identifiers only. Saved values, schemas, lane ids and the
processor_labels value are unchanged: the recorded catalog digests and
MCP catalog are byte-identical before and after, the pinned profile and
snapshot digests pass unchanged, and no snapshot fixture changes.

Names that mean the raw load keep theirs: RawBinaryLoad, rawLoad,
raw_load, and the vocabularies of its entries (RAW_ENTRY_ISA_MODES,
RawEntryIsaMode, RAW_ENTRY_ROLES and RAW_ENTRY_BASES).

* refactor(ghidra): keep variant decoder limitations beside the languages

The low-overhead-loop limitation lived in the raw-binary limitations, but
it describes Ghidra's ARM:LE:32:v8-m decoder for armv8.1-m.main whatever
container holds the code. The M-profile ELF lane maps ELF builds to the
same variants and must report the same text.

GHIDRA_VARIANT_LIMITATIONS now sits beside GHIDRA_VARIANT_LANGUAGES and
states the limitations of every variant, so adding a variant also
decides them. Raw results read it; their text and order are unchanged.

* fix(raw): require base_address with every architecture_variant

A variant without base_address mapped the image at its entry, and the
odd-entry suggestion led callers there: retrying with the even
code_address and no base mapped the vector table at Reset, and the
segments image still verified.

architecture_variant now requires base_address, the address of file
offset 0, and the odd-entry suggestion no longer offers a retry without
a base. A code fragment that starts at its entry passes that address as
its base. Loads without a variant are unchanged.

* fix(raw): align vector tables as VTOR does and refuse Reset inside them

VTOR.TBLOFF holds address bits 31:7 wherever VTOR exists (ARMv6-M with
VTOR, ARMv7-M, ARMv8-M), so a vector table is at least 128-byte
aligned. Admission accepted any 4-byte-aligned table, so naming the
Reset slot (0x10000104) instead of the table (0x10000100) read NMI as
Reset and reported it with role reset. A named table and the default at
the base now need 128-byte alignment.

A Reset word that points into the 8 table bytes just read is refused
too. Even, outside and inside Reset words stay load_selection_rejected,
with the observed words as diagnostics: a raw dump has no format they
can violate, and the usual cause is a wrong base, table or variant.

* fix(ghidra): key variant coordinates by base, not entry

A variant load maps file offset 0 at base_address, so with the decoder
and the entry's decode context the base fixes every coordinate. The
coordinate context still held the entry address, so functions found
from two entries of one image did not compare.

Variant coordinate contexts now take the base from the admitted load
and leave the entry out. Variant profiles commit raw_load without flat
entry_point and base_address copies of it; entry_context stays as
Ghidra's seeding commitment, which raw_load does not record. Legacy
profiles keep their parameters and digests.

* refactor(raw): discriminate the segments load image by layout

The segments load image named its shape with variant: "segments", beside
architecture_variant, which names the decoder. It is now
layout: "segments", as layout names data shapes elsewhere in REA. The
shape is unreleased, so no saved Evidence uses the old key.

* docs(raw): record why vector-table words keep their full width

vector_table.initial_stack_pointer and reset_vector are words read from
the table, not addresses: REA reports format words such as GPU
code-object flags and metadata tokens as full-width hex, and the entry
already holds Reset's canonical code address. The schema, admission and
raw-binary guide now say so.

* docs(raw): record why the seeded entry function is named entry

Ghidra names the function REA seeds at a raw entry entry, whatever the
entry's role, as its loaders name a program entry. The load image
reports the role; naming the function after it, as CMSIS Reset_Handler,
would claim a symbol the image does not carry. The prepare script and
the decision record now say so.

* fix(raw): name the refused load input in error details

Raw admission refused a pairing with the rule's message but dropped the
field it named, so callers had to read the input to correct from prose.
Each raw admission refusal now names the input to blame, and
BinaryTargetError projects it as details.field on the CLI and MCP; the
Reset-word refusals and a file too short for a table at its base name
none. Pairing refusals from the target resolver keep their field too.

MCP refuses invalid pairings in the open_binary input schema before
admission; that error reports path [] as it does on main and is left
unchanged here.

* docs(raw): state that results keep no caller spellings yet

The raw_load identity comment claimed Evidence parameters keep the
caller's spellings of the load inputs. They do not: summaries, Evidence
and snapshots report canonical addresses only, as legacy entry_point did
before these inputs. The comment and the raw-binary guide now say so,
and the decision record names the gap and the caller_input_path pattern
that could close it additively.

* docs(raw): explain why reused sessions cannot report stale vector words

raw_load leaves the two vector-table words out, yet results report
them. They cannot go stale: sessions and snapshots also match the file
digest, and with the base and the table address it fixes the bytes the
words are read from. The identity comment and the raw-binary guide now
say so.

* docs(raw): scope architecture_variant to the ARM M profiles

The generic raw-language limitation listed 68020, ColdFire and other
"processor variants" as unsupported, which read as future
architecture_variant values. It now says those languages are not
offered and that architecture_variant names only ARM M profiles.

The variant table and the decision record also state the scope: the
base requirement, Reset derivation and label policy hold for every row
because every row is an M profile, and a variant of another family
would first make them per-row properties.

* docs(raw): state each load pairing rule once in open_binary

open_binary said that architecture_variant requires base_address, and
that entry_point may then be omitted, in its tool description and again
in three field descriptions; the default compact input profile
advertises all of them. Each rule now sits on the field it constrains,
and the tool description points to the M-profile lane in one sentence.
CLI flag help follows the same split.

Measured from tools/list of a server built from this source, the trim
saves 237 bytes of open_binary in each input-schema profile.

* refactor(ghidra): let session limitations own the variant load facts

A segments load image restated that only the file is mapped, that
processor labels are not applied and where Reset came from, beside the
session limitations that every result, the load image included, already
carries. The load image now states only what its verification covers
and requires; the session limitations are the one owner of the load
facts.

* refactor(ghidra): launch with the label policy the profile committed

The Ghidra client recomputed the processor-label policy from the
target's variant instead of reading the processor_labels value the
analysis profile commits, so the launch and the profile each held their
own copy of the rule. The client now reads the committed value, named
once as GHIDRA_PROCESSOR_LABELS_NOT_APPLIED, and a behavior test checks
that a variant profile reaches the launcher without labels.

* refactor(raw): let the vector-table read carry its length

Admission and the target resolver each knew that the vector table read
is 8 bytes: the resolver passed a literal 8 and admission checked one.
RawBinaryVectorTableRead now carries byteLength beside fileOffset, and
admission derives its bounds, inside-table check and message from one
constant.

* test(raw): compare saved raw images by their facts, not their prose

The compatibility test required a snapshot saved before base_address to
equal today's raw load image exactly, limitation text included, so any
rewording of a limitation would fail it although no fact changed. It
now compares every field except limitations.

* test(ghidra): expect not-in-listing where the Cortex-M lane stops

Since #7823, Ghidra reports an address in memory with no listed
instruction or data as not-in-listing instead of undecodable. The
Cortex-M55 case expects the pop after its low-overhead loop to stay
undisassembled, so the lane now expects not-in-listing there.

* test(raw): pin raw identity to main after its instruction-status revision

#7823 commits instruction_status in every Ghidra profile, so the legacy
raw digests pinned at d6f88be and the variant digest changed, and the
snapshot saved before base_address no longer replays on main either.
The legacy pins now hold main's own digests at 07dfd12, computed
without these inputs; the merged branch matches them for all six
families. The variant digest is re-pinned.

The compatibility test now checks that the saved snapshot keeps its
target, that its profile differs from today's only by instruction_status,
and that its load-image facts equal today's. The raw-binary guide states
replay relative to REA without these inputs.

* test(ghidra): own the Cortex-M lane's LLVM and CLI commands

The lane's LLVM oracle ran clang and llvm-objdump through execFile with
no deadline, and its CLI parity launch used execFile directly, so a
hung tool could stall the lane and a killed one could leave children
behind. All three now run through createVerifierCommands, the owner
that stops each process tree, with a 120-second deadline for LLVM and
240 seconds for the CLI, as the ESP image verifier does.

The oracle writes under the lane's workspace instead of its own
temporary directory, and the lane closes the owner before removing that
workspace; a failed close keeps it for inspection.

* test(raw): derive the Reset fixtures from one Thumb image

The segments tests verified a Reset load admitted for 16 bytes, with
vector words supplied separately, against the 4-byte ARM fixture, so
the image they called verified held neither the table nor the entry at
0x8000008. fixtureRawBinaryLoadImage now takes the image bytes and the
load and derives the digest, size, mapping, entry and bound language
from them; its defaults keep the legacy fixture unchanged.

The Thumb tests and the compatibility test's segments image use the
Cortex-M0 image the real lane verifies, admit Reset from its own first
eight bytes, and name a caller entry at its add_three function. A
declaration file lets TypeScript tests import that fixture.

* docs(raw-binary): say that recording load spellings would not be additive

The Evidence envelope is strict, so a later field that keeps a load
selection's spellings would make records that REA versions without it
refuse, as caller_input_path did. The guide called that change additive.

* docs(raw-binary): tell callers how to keep their load spellings

Results report canonical addresses, and an omitted vector_table_address
reads as one at the base. A caller that needs its exact spelling keeps
its own request beside the Evidence, with the record's evidence_id: the
raw-binary guide says so for people, and the skill's raw-image paragraph
for agents, loaded only when an agent opens that reference.

* test(ghidra): keep raw digests at main's byte-search and data-type revisions

* test(domain): check raw-binary refusal facts, not sentences

The new variant and raw-binary refusal tests compared whole explanations.
They now check the rejected field, constraint and diagnostics exactly, and
match the parameter names and addresses each reason must state as whole
tokens through tests/support/statingFacts.ts. Rewording a refusal passes;
dropping its mapped range fails. The admission and pairing grids stay
digests of results computed on main before this change.

* docs(adr): move the M-profile raw load decision into an ADR

The raw binary guide held decision D1 inline. Record it under
docs/adr/firmware/ with Nygard sections and Proposed status, index it,
and link it from the guide.

* test(ghidra): repin digests and replay for main's call-coverage revision

main's #8340 bumps call_relationship_coverage from v5 to v7, which changes
every Ghidra profile digest. Repin the raw digests this branch owns, and set
the revision aside in the replay test of the snapshot saved before
base_address, like the other upstream revisions it lists. With the revision
reverted in place, the old pins hold; only main's own two pins, which assert
v7, then fail.

* chore(plugin): regenerate the skill bundle from the authored skill

* test(raw): keep the target route diagnostics within the function length limit

* docs(raw): record the M-profile lane on Ghidra 12.2

* refactor(raw): read vector words and own the Cortex-M workspace through their shared owners

Main's architecture guards require BinaryReader for numeric reads and VerifierFixture for verifier fixture roots.

* fix(raw): name raw-binary as the format of vector-table read failures

* fix(verify): remove the Cortex-M workspace after a verified run

closeEarly stops the command owner but keeps the root, so every successful
run left its fixtures, snapshots and LLVM outputs behind while reporting
cleanup complete. Release the workspace once process lineage is verified; a
failed run still keeps it for diagnosis.

* chore(verify): record open_binary's input schema with the M-profile load fields

CI's package build compares the committed advertised-schema summaries with
the packaged catalog; regenerated with
`node scripts/verify-advertised-schemas.mjs --update-summary`.

* test(cli): expect open_binary's M-profile load flags in the CLI command table

Main's command-table test (#11777) pins the flag of each open_binary field
a direct-analysis command takes; D1 adds --architecture-variant,
--base-address and --vector-table-address.

* test(cli): record the CLI help goldens with the M-profile load flags

Commands that open a target list open_binary's options; D1 adds
--architecture-variant, --base-address and --vector-table-address.
Recorded with REA_RECORD_CLI_PARITY=1 from the built CLI.

* docs(raw-binary): qualify snapshot replay under the producer rule

A load without the M-profile inputs keeps its analysis profile inputs,
snapshot target and load image, but every analysis profile also commits
to the REA release and packaged bridge scripts. A snapshot saved by an
earlier release is therefore refused after an upgrade either way. Say
so, and point to the Ghidra guide's producer rule.

* test(ghidra): report why Cortex-M verifier cleanup could not be checked

The verifier compared the completed lineage's status and descendants
directly, so an unavailable lineage failed as a bare equality without
its reason. Use the shared assertVerifierCleanupComplete, which names
the reason, as docs/development/testing.md requires.

* fix(domain): compare raw-load functions by coordinates, not entry provenance

compare_functions and build_call_path required equal target identity,
which for a non-legacy raw load includes the entry's address, role and
basis and the vector table it was read from. Two loads of the same image
at the same base, one with Reset read from the vector table and one with
a caller-named entry, therefore stopped comparing, although their
function coordinate contexts match and the raw-binary guide says they
compare.

targetIdentity now owns sameTargetCoordinates, which keeps a raw load's
base and variant and leaves out how it chose its entry; a legacy load
still places addresses by its entry. Both comparison workflows use it.
Session, snapshot and Evidence subject matching keep the full identity.

* fix(domain): align coordinateKey canonicalization and target diagnostics with main

---------

Co-authored-by: jgranie <[email protected]>
Co-authored-by: morluto <[email protected]>
@morluto
morluto changed the base branch from fix/target-failure-adapter-recovery to main November 24, 2026 14:50
Comment thread src/cli/projectCliAnalysisResult.ts Resolved
N0zoM1z0 and others added 6 commits November 24, 2026 10:08
…ection (#14368)

* feat(browser)!: size inspect_web_page delivery and page captures by section

inspect_web_page returned the complete capture inline with no detail
choice. A local page with 2,000 list rows, 200 buttons and three bundled
libraries produced a 4.6 MB MCP result, mostly 6,423 DOM nodes and 10,614
accessibility nodes.

inspect_web_page now declares the size-aware detail. Omitted, a capture
up to 32 KiB is inline and a larger one is retained behind a summary of
its small sections and counts. A new web-page view pages dom (node_names),
accessibility (roles), console (types), network (methods), scripts and
resources. The shared Evidence handler applies the same size decision as
the other size-aware tools and keeps detail out of the capture parameters.

BREAKING CHANGE: an MCP inspect_web_page call that omits detail on a
capture above 32 KiB now returns the retained summary. Pass
detail: "complete" for the previous shape, for example before
compare_web_captures.

Co-Authored-By: gensokyo-dev <[email protected]>

* feat(cli): deliver inspect-web-page summaries through the Evidence bundle

The contract's size-aware detail also generated a --detail option for
rea inspect-web-page, but the command ignored it and always printed the
complete capture. The command now uses the shared CLI Evidence delivery,
as analyze-web-bundle does: omitted or complete detail prints the
capture, and --detail summary requires --evidence_output and prints the
summary with the bundle receipt.

Co-Authored-By: gensokyo-dev <[email protected]>

* fix(browser): bound web-page summaries and keep capture context on pages

Review found three gaps in the new web-page view:
- pages dropped the capture's completeness and the section's context, so
  an empty accessibility page looked like an exhausted one;
- script rows carried their complete captured source, so one large
  bundle could not be paged;
- the summary copied every frame and worker.

Every page now carries the capture's completeness and its section's own
context beside the page coverage. Script rows keep source metadata
without text, and a script-source collection pages one script's text by
UTF-16 offset. The summary counts frames and workers, which page through
their own collections.

Co-Authored-By: gensokyo-dev <[email protected]>

* test(browser): request complete captures in the real-browser verifiers

The metadata-budget, URL userinfo, DOM destination and script export
verifiers read the complete inspect_web_page capture through MCP. With
size-aware delivery, an omitted detail above 32 KiB returns the summary,
and the metadata-budget verifier failed reading scripts.items from it.
These calls now request detail complete; their CLI calls already return
the complete capture.

Co-Authored-By: gensokyo-dev <[email protected]>

---------

Co-authored-by: gensokyo-dev <[email protected]>
Co-authored-by: gensokyo-dev <[email protected]>
…napshot and TShark output (#14280)

* fix(limits)!: let inspect_pcap_capture take producer_limits for its snapshot and TShark output

inspect_pcap_capture kept private copies of the producer budgets that
inspect_packet_capture already exposes. It now accepts producer_limits with
input_bytes (the streamed capture snapshot, default 2 GiB) and output_bytes
(each TShark JSON pass, default 8 MiB, at most the fixed 128 MiB decoded-JSON
allowance). Refusals report details.limit for the parameter instead of a
fixed ceiling. The decoded-JSON expansion and retained-fact allowances stay
fixed because raising them needs a streaming decoder; the version and
summary probe capture is reclassified as protocol.

Part of #14237

BREAKING CHANGE: an inspect_pcap_capture refusal at the snapshot or TShark
JSON budget reports details.limit for producer_limits.input_bytes or
producer_limits.output_bytes and no longer carries details.refusal
fixed_ceiling.

* fix(limits): keep the DNS pass's producer limit and cover raised pcap budgets

When only the DNS wire-identity pass exceeds producer_limits.output_bytes,
the partial summary now records dns_identity_limit with the parameter,
effective value, default and range. The pcap output budget is documented as
combined stdout and stderr, as producer_limits.output_bytes is elsewhere.
Acceptance covers TShark output above the old 8 MiB ceiling in both passes.
…14262)

* 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)!: bound static readers by the bytes they read, not file size

max_file_bytes now counts the header prefix and every positional read of
headers, directory tables and their referenced ranges. The identity pass
that hashes the whole file is bounded only by a fixed whole-file ceiling:
4 GiB minus one byte for the PE-only readers, whose file offsets are 32-bit,
and 512 MiB for hardening and exports. An exhausted allowance is a capacity
refusal with a typed parameter details.limit.

BREAKING CHANGE: max_file_bytes no longer refuses a large file whose reads
fit; an exhausted read allowance reports resource capacity instead of
file-size, and only a file above the fixed ceiling reports file-size.

* 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): assert a refused read never reaches the descriptor

* 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(pe): report image_base and IAT slot VAs in static PE results (#14263)

* feat(pe): report image_base and IAT slot VAs in static PE results

Every static PE result reports the optional-header image_base once as a hex
VA, and import rows add iat_va beside iat_rva so a slot goes straight to
xrefs. Fields name their space as rva, va or file_offset; the new fields are
optional so saved Evidence still parses, and the imports service rejects an
iat_va that disagrees with image_base plus iat_rva.

* fix(pe): document iat_va for rebased databases and test VA rejection

iat_va is relative to the file's ImageBase; a rebased provider database
needs its own base plus iat_rva. Cover the service rejection of a slot VA
that disagrees with image_base plus iat_rva.

* chore(pe): register the forwarded whole-file ceiling and shrink refusal baselines
…14267)

* fix(ghidra)!: scope defect notes and state session limitations once

Ghidra known-defect records filtered by version only, so every result
on an x86-64 PE carried the AArch64 ghidra-10154 record and the clang
ghidra-9996 record, including byte reads and string searches. Each
record now declares the target architectures it can apply to.
ghidraKnownProviderDefectLimitations keeps a record only when the
target's architecture can match (an unknown architecture keeps it) and
the operation can depend on jump-table or function-body recovery.

Every native result also repeated the session's shared limitations: the
analysis and checkpoint caveats, the address convention, the native
decompiler note, the PDB state, and the build and defect records. Over
nine MCP calls on a public x64 DLL they were about 54% of the bytes. The
provider now names those entries in a new AnalysisExecution
sessionLimitations field. It still keeps them in limitations, so a
consumer that ignores the field loses nothing. The session owner decides
delivery. The persistent MCP runtime selects reference mode: each result
replaces the shared entries with one limitation naming a retained
session-context Evidence, records it, and links it in evidence_links.
Equal session facts link the same record, so repeated observations keep
their Evidence. One-shot CLI sessions keep the entries inline.

BREAKING CHANGE: in MCP sessions, Ghidra result Evidence no longer lists
session-scoped limitations inline. It carries one reference limitation
and links a retained session-limitations Evidence (operation health,
parameters.facet session-limitations) in evidence_links. Read it with
get_evidence_bundle. Defect records no longer appear on operations or
architectures outside their declared scope.

Fixes #14183
Fixes #14158

* test(ghidra): spread readonly defect limitations into the matcher

* fix(ghidra): keep defect notes on byte searches and reuse sourced session Evidence

search_bytes names the function containing each match, so a body truncated by a switch defect can leave that procedure null. It now keeps the applicable defect records.

Reference mode links a session-context record from every result, and bindSessionEvidenceExecution refused to reuse any execution with sources, so the adapter rebuilt and rehashed the Evidence the session had already retained. Reuse now accepts an execution whose sources match the record's authenticated evidence_links, in order.

A regression checks that an exported snapshot's bundle carries the linked context record, so a replay in another process can resolve the reference.

* fix(decompile-all): write the full session limitations into exported directories

In reference mode a result carries one reference to the session-context Evidence instead of the session limitations. decompile_all copied execution limitations into its function files, journal and index, but the directory writer never saves the linked record, so after the MCP process ended the known-defect, PDB and checkpoint caveats could not be recovered. decompile_all now reads through inlineLinkedSessionLimitations, which restores the referenced text from the linked context record owned by SessionLimitationContext, so the directory stays self-describing.
@morluto
morluto enabled auto-merge (squash) November 24, 2026 15:22
…4250)

* fix(native)!: resolve name and import selectors through one owner

find_xrefs_to_name matched names exactly against list_names, while
procedure_callers and procedure_references used each provider's own
procedure lookup. One import selector therefore resolved differently per
tool, and each tool failed on a different provider. Hopper also refused
every target outside a procedure, so it could not answer incoming
references to an import.

- NativeSymbolSelection owns name resolution for find_xrefs_to_name, xrefs
  and the incoming procedure tools: exact name, then a provider-reported
  external import by imported or library-qualified name, then the
  provider's procedure lookup. CLI and MCP both run through it.
- When a provider refuses a name for xrefs, procedure_callers or incoming
  procedure_references, REA resolves it once and asks again by address.
- The Ghidra and Hopper bridges answer an explicit address outside every
  procedure (an import slot, imported name or data label) with its recorded
  references and their containing procedures.
- XrefsAddressResolution is removed.

BREAKING CHANGE: procedure_references.procedure may now identify an address
outside every procedure, with classification null and an unavailable body.
find_xrefs_to_name adds resolved_name and candidates, and resolves bare
import names on Ghidra.

Fixes #14160
Fixes #14184

* fix(native): order selector candidates by code point

The domain ordering rule forbids localeCompare.

* fix(native): retry only names outside every procedure and keep retry facts

- Answer a refused name by address only when the provider observes that
  address outside every procedure. An interior label stays refused instead
  of selecting its containing procedure.
- Return a retry's own failure unless it is another lookup miss.
- Retain Hopper's native address-target reply as raw Evidence, with its
  target identity and caller completeness.

* fix(native): retry at exact procedure entries and return containment failures

- An import resolved to a procedure's exact entry, such as Ghidra's external
  function for kernel32.dll::VirtualAlloc, is answered by that address;
  only an address strictly inside a procedure keeps the refusal.
- A containment lookup that fails for any reason other than the provider
  lacking it is returned with its facts instead of the name refusal.

* test(ida): answer unknown names as Not found in the verifier fixture

The verifier's fake IDA resolved every lookup_funcs query to main. With
xrefs names now resolved by the shared selector owner, an unknown name
such as not-an-address reaches the provider's procedure lookup, which the
fake answered with main, so xrefs succeeded instead of the expected
invalid_request. Real IDA answers an unknown name with "Not found"; the
fixture now does too, and the verifier's contract is unchanged.

* fix(native): keep provider ambiguity and declare the procedure-lookup fallback

- The Ghidra bridge sends every matching entry of an ambiguous procedure
  selector as structured candidates. The projection carries them as the
  typed ambiguous-selector refusal, and the shared owner no longer treats
  an ambiguous lookup as a missing name, so find_xrefs_to_name returns the
  ambiguity with its candidates.
- find_xrefs_to_name requires list_names or procedure_address, plus xrefs,
  so providers without a name inventory, such as IDA and Kuna, report it as
  available with the effects of the calls it makes.

* fix(native): answer a provider-ambiguous name by its unique exact name

Ghidra's procedure lookup matches leaf names, so a global work and ns::work
make work ambiguous, while the shared owner resolves the exact name work.
When the provider reports an ambiguity, the shared owner now retries only by
a unique exact-name match and otherwise keeps the provider's ambiguity and
candidates.

* fix(native): resolve incoming procedure names through the shared owner first

procedure_callers and incoming procedure_references asked the provider by
name first, so Ghidra's leaf-name lookup could answer "work" with ns::work
while find_xrefs_to_name selected the exact label work. These tools now
resolve the name with the shared owner first and ask the provider by its
address when that address is outside every procedure or a procedure's exact
entry. A name the owner cannot resolve, or one inside a procedure, still goes
to the provider's procedure lookup, which owns alias and thunk spellings.
xrefs keeps provider-first resolution.

* fix(native): retain snapshot replay for resolved symbol selectors
… archives (#14245)

* feat(artifacts): inventory and extract stored and gzip-compressed tar archives

Recognize POSIX ustar and GNU tar headers, plain or as the first block of
a gzip member, as the new tar artifact format, so Linux release tarballs
and Unity .unitypackage files inventory and extract like ZIP archives.

The tar reader walks every header once, applying pax path, linkpath and
size records, GNU long names and the ustar prefix. Regular files,
directories and symlinks are occurrences with typeflag, mode, owner,
mtime and link target; devices, FIFOs, hard links and sparse members
are traversal omissions. Gzip members are read by forward decompression
with an idle stream reused for in-order opens, and every decompressed
byte is charged to artifact_limits.expanded_bytes.

A later corrupt header, a truncated member or gzip stream, and non-zero
bytes after the end marker keep the members read so far with unknown
coverage and an explicit end_state; a first block with the ustar magic
and a bad checksum is refused with that reason.

Fixes #14177

* docs(compare): name tar-entry among the compared format metadata kinds

* fix(tar): keep complete members and header facts across tar edge cases

- Charge omitted devices, FIFOs and links to the retained-metadata allowance.
- Probe a small gzip tar without verifying its trailer, and feed the final
  trailer to zlib separately so data before a bad CRC stays readable;
  queue decompressed output so a later failure cannot drop it.
- Decode negative GNU base-256 numbers; only mtime may be negative.
- Apply pending pax records only to the next member, never to extension
  headers, and let an empty pax value delete the keyword.
- Push a member once its data is complete, then skip its padding.
- Treat a cut-off zero block as truncation, not an end marker.
- Stop with malformed partial coverage, not a refusal, when a later header
  declares an unsafe size.

* fix(tar): charge gzip expansion as zlib produces it

The decompressed-output queue charged the plaintext-work allowance only
when the reader took a chunk, so bytes queued for an idle reader were
not bounded by artifact_limits.expanded_bytes. Each chunk is now charged
in the data handler before it is queued; an exhausted allowance stops the
inflater, and the queued, already-charged bytes are served before the
limit failure.

* fix(tar): validate numeric pax records and probe gzip past its header fields

- A pax size, uid, gid or mtime record that does not parse now stops the
  walk as malformed at that member, keeping earlier members, instead of
  silently falling back to the header field.
- The gzip-wrapped tar probe skips the RFC 1952 FEXTRA, FNAME, FCOMMENT
  and FHCRC fields before applying its 2 KiB compressed-data bound, so a
  long name or comment no longer hides the archive.
…with typed discriminators (#14359)

* refactor(domain): replace production prose/regex limitation matching with typed discriminators

Closes #14347

* fix(evidence): preserve format-2 relationship coverage reader and fix CI tests/formatting

* test(mcp): align boundary coverage fixtures and assertions with limited_directions
* feat(pe): inspect x64 exception-directory function ranges

Add inspect_pe_unwind_ranges, a provider-free reader of the PE32+
exception directory (.pdata). It reports each RUNTIME_FUNCTION's begin,
end and unwind RVAs, whether the entry starts a function or is a chained
fragment (UNW_FLAG_CHAININFO or an indirect unwind RVA), the chain's
parent and primary entry, and empty, unsorted, overlapping, unmapped or
unresolvable entries as explicit issues. Counts cover every entry while
kind, offset and limit select the page.

It reads headers through the shared PE image owner without changing its
admission. Failures use the existing PE failure projection.

Refs #14181

* chore(pe): record the unwind-ranges advertised schema and cursor skill

* fix(pe): index chain parents, map the whole exception directory and keep high RVAs unsigned

An unsorted table looked up every chain parent with a linear scan, and
chain resolution did not yield, so a crafted table could stall the
server. Parents are now found through one begin-RVA order and the pass
yields to cancellation. The file-backed check covers every declared
directory byte, including trailing bytes, and clearing the indirect bit
keeps RVAs at or above 0x80000000 unsigned.

* fix(pe): bound unwind reads and report unreadable codes, mismatched parents and unsorted overlaps

Unwind data is visited in ascending RVA order, so the windowed reader
moves forward and reads each region about once whatever the table order.
A primary entry whose declared code array leaves the file-backed bytes
is unknown (unwind_codes_unmapped), and its header facts are kept. A
chain parent must match the whole RUNTIME_FUNCTION; an entry with the
same begin but another end or unwind RVA is chain_parent_mismatch.
Order and overlap are checked separately. The guide moves under
docs/guides/native, and its route is unchanged.

* fix(pe): index whole RUNTIME_FUNCTION records for chain parents

Entries sharing a begin RVA were scanned for every parent lookup. The
table is now ordered once by (begin, end, unwind), and a parent is a
binary search for the exact record, with a second search for a begin
mismatch.

* test(pe): register the unwind-ranges provider lifecycle coverage

The provider lifecycle registry needs one entry per provider id. Add
rea-pe-unwind-ranges with its public CLI/MCP workflow and a typed
resource and cancellation failure test.

* test(cli): record inspect-pe-unwind-ranges in the completion goldens

* fix(pe): keep a verified unwind report through cleanup failure and check the directory before its allowance

A report completed before final close failed was replaced by the file
hash. The provider now records the verified report and the shared PE
failure projection retains it, as the ELF readers do. The entry
allowance now applies only after the directory is shown file-backed, so
an oversized count that leaves the file is a malformed target.

* chore(pe): register the exception-directory entry allowance as a pending fixed ceiling
@morluto
morluto changed the base branch from main to fix/target-failure-adapter-recovery November 24, 2026 22:54
@morluto
morluto merged commit 2c20a68 into fix/target-failure-adapter-recovery Nov 24, 2026
48 of 61 checks passed
@morluto
morluto deleted the fix/worker-reason-kinds branch November 24, 2026 22:55
cursor Bot pushed a commit that referenced this pull request Nov 25, 2026
…tions (#14289)

* feat(errors)!: add the TargetFailure model, its projection table and conformance registry

Introduce one domain-owned TargetFailure value whose kind alone derives
the public code, category, retryability, recovery and details, for CLI
and MCP alike. Selected-file malformed and truncated refusals are the
first area on it: AnalysisMalformedTargetError is replaced by
AnalysisTargetFailureError, and ParseFailure's byte-structure variants
are TargetFailure variants rather than a parallel type.

The shared stableArtifactParserFailureCli loop is replaced by a
declarative registry (tests/support/targetFailure/readers/*.ts) and one
generated suite that runs every registered case through the CLI and MCP.

BREAKING CHANGE: selected-file malformed and truncated refusals add
details.failure_kind, and a truncated target's remediation now says to
re-acquire the complete file instead of choosing another target. Codes
are unchanged. Affected operations: every operation that refuses a
selected file's malformed or truncated bytes, including the ELF, PE,
Mach-O, DWARF, Go, Rust, BEAM, pyc, devicetree, Apple IPS, kernel
module, binary hardening, managed PE/CLI and IL2CPP readers.

* test(managed): name the target failure error in the merged status test

* docs(reference): name the error CSV instead of linking a non-page file

* fix(tests): expect the path reason for non-regular dyld inputs

#14225 refuses a non-regular dyld input as ArtifactReaderFailure("path");
dylibFileLifetime still expected "format" and fails on main's shard 9.

* fix(tests): expect io, invariant and path where #14225 reclassified

stableArtifact expected "format" for an impossible descriptor byte count
(now io) and an invalid chunk size (now InternalInvariantError);
directoryArtifactReaderOpen expected "format" for a non-file entry (now
path, the same change as #14238). All three fail on main.

* fix(errors)!: raise container reader byte faults as malformed or truncated targets

Delete the ambiguous `format` reason from ArtifactReaderFailure and
ArtifactOperationError. Each container reader now raises its owner's
fact once, through malformedArtifact / truncatedArtifact, with format,
offset, field and measured extents. Short reads inside a measured extent
are read-coverage integrity failures, path-kind refusals are `path`,
foreign or recovery-requiring inputs are `unsupported`, host tool output
is `io`, and REA defects are InternalInvariantError.

The trace, NTFS journal, release exposure, web capture, native macOS and
web artifact adapters project the reader's parsed facts as
AnalysisTargetFailureError instead of invalid_request. Inventory
malformed, truncated, unsupported and cancelled reasons take their code
from the TargetFailure projection table, so a truncated container is
unsupported_target with failure_kind "truncated" on both paths.

BREAKING CHANGE: inventory_artifact, inspect_artifact, extract_artifact,
analyze_javascript_application, inspect_desktop_application,
inspect_keyed_archive, inspect_asset_catalog, inspect_nuget_nupkg,
trace_dylib_resolution, trace_web_module_imports and
trace_web_source_location report damaged container bytes as
unsupported_target (details.reason "malformed" or "truncated", with
failure_kind and format) instead of artifact_operation_failed with
reason "format", and a truncated container as unsupported_target instead
of truncated. inspect_playwright_trace, inspect_ntfs_journal,
audit_release_exposure, the web capture inspection operations and the
caller-selected import and source maps report damaged selected bytes as
unsupported_target instead of invalid_request. The `format` reason no
longer appears in details.reason.

* test(artifacts): expect target failure codes in compiled CLI and MCP suites

* fix(errors)!: refuse malformed SQLite, pwntools and EVM inputs as target failures

The SQLite engine's `format` reason is renamed to `malformed` at its
owner (SQLITE_INSPECTION_REASONS), and its refusal becomes an
AnalysisTargetFailureError at the selected path with format "sqlite".
The pwntools and EVM worker replies keep their wire reason "format",
which their workers define, and the adapters translate it once into a
malformed target failure with the profile's format (elf, elf-core,
evm-bytecode) instead of an invalid_format argument issue. SQLite joins
the target-failure conformance registry.

BREAKING CHANGE: inspect_sqlite_database, inspect_binary_layout,
inspect_recorded_crash and inspect_evm_interface report a selected
file's malformed bytes as unsupported_target with details.failure_kind
"malformed", format_failure, format and path, instead of invalid_request
with an invalid_format issue on path.

* fix(errors): give the integrity kind a schema-valid code and list the reference page

artifact_integrity_mismatch's projection schema requires declared and
calculated digests, which a TargetFailure of kind integrity does not
carry, so the kind now projects artifact_operation_failed with category
integrity_mismatch. The model test validates every kind's projection
against analysisErrorProjectionSchema. The reference page joins the
documentation sidebar.

* fix(artifacts): report a short carrier read as a changed file and keep unsupported desktop probes local

A Bun or Node SEA short read inside a range already checked against the
measured size meant the file changed, not that it was truncated. The
carrier range reader and Bun's readExact now raise read-coverage
integrity for it, and keep 'outside the file' as the truncated case.
DesktopFileInspection records an unsupported managed-metadata probe as a
row issue again, so later file checks still run.

* test(errors): expect target failure facts in the pwntools and EVM reply suites

The literal-replacement scenario now reads the failure's detail instead
of an issues[] message, and a malformed reply wrapped by cleanup failure
reports category unsupported_target.

* test(errors): register PE DOS-signature and truncated IPS refusals and drop their per-command copies

The non-MZ PE imports and load-config cases (PE32/PE32+, ZZ and high-bit
signatures) and the truncated Apple IPS body move into the conformance
registry, which runs them through the CLI and MCP and now also checks
that a refusal leaves the selected file unchanged. The per-command tests
keep only their valid-image controls.

* test(sqlite): drop the malformed-database provider test the conformance registry covers

inspect_sqlite_database/not-a-database in the target-failure registry runs
the same non-SQLite bytes through the CLI and MCP, asserts the malformed
target facts and checks the selected file is unchanged.

* feat(errors)!: make failure_kind the identifier and derive code and retry from it

Apply the owner review on #14239 to the TargetFailure model:
- remove details.format_failure; failure_kind is the only identifier;
- give integrity, conflict and io their own codes
  (target_integrity_mismatch, input_conflict, host_io_failed) and derive
  inventory malformed, truncated and unsupported codes from the same table;
- add a retry hint (none, backoff, after_change) derived from the kind,
  with io refined by its transient errno fact; retryable stays the
  unchanged-retry flag and is true exactly for backoff;
- rename the limit-cut result code and category truncated to partial;
- drop cancelled and resource from the target kinds and spell
  identifiers in American English (unrecognized);
- return a target failure a tool handler throws as a projected isError
  result instead of letting the SDK flatten it to text.

BREAKING CHANGE: details.format_failure is removed (read
details.failure_kind). The truncated result code and category are now
partial. Target integrity failures report target_integrity_mismatch,
host read failures host_io_failed and disagreeing inputs input_conflict.
Inventory operations (inventory_artifact, inspect_artifact,
extract_artifact and the other inventory callers) report truncated
container bytes as unsupported_target. Every target failure carries a
top-level retry hint.

* test(sqlite): expect a malformed target for non-database bytes in the CLI suite

* fix(artifacts): keep changed-file short reads, invalid offsets and EOF declarations apart

PyInstaller reads inside the measured size, and .NET bundle manifest
refills, now raise read-coverage integrity on a zero-byte read instead of
truncated. A .NET bundle field and a Godot PCK directory entry that extend
past the file are truncated (with offset and extents) instead of
malformed. An absent or invalid ASAR packed offset is malformed; only a
valid range past the archive is truncated. The .NET manifest string
offset is reported in file coordinates.

* fix(pwntools): report a short ELF header as a truncated target

The layout and recorded-crash workers raise a distinct truncated reason
when the file ends inside the ELF identification or header, and the
decoder projects it as failure_kind truncated instead of inferring it
from the message.

* fix(errors)!: report managed coverage gaps and IL2CPP pair conflicts as target failures

Managed readers interpret an issue code once, in managedIssueTargetFailure:
a coverage gap is an unsupported target, every other rule violation is a
malformed target, and the inventory metadata status is derived from that
same fact. managedInspectionTargetFailure now returns only
AnalysisTargetFailureError.

An IL2CPP binary that parses but does not link to its metadata is a
conflict target failure that lists both inputs and blames neither, in
place of an invalid_request with two issue entries. Metadata version 108
is an unsupported target. The CLI spells each conflict input's field by
the command's option name.

BREAKING CHANGE: inspect_managed_artifact, inspect_managed_members,
inspect_managed_native_boundaries and the managed comparison operations
report unsupported metadata or signature forms as an
AnalysisTargetFailureError (failure_kind unsupported, format pe-cli,
field, offset) instead of a bare unsupported target. inspect_il2cpp_metadata
reports a binary/metadata pair that does not link as code input_conflict
with failure_kind conflict and details.inputs, instead of invalid_request
with details.issues, and metadata version 108 with failure_kind
unsupported.

* fix(artifacts): verify the carrier before blaming a short read on the bytes

The NTFS $MFT decoder, positional members (FIT, uImage, Bun, Deno) and
.NET bundle members now re-verify the source before reporting a short
stream as malformed, so a file that changed during the read reports the
change. The truncation site builds the model's measured extent.

* fix(errors)!: report inventory refusals as target failures of the selected path

An inventory, inspection or extraction refused damaged or unsupported
container bytes as an ArtifactOperationError whose reason repeated the
format owner's kind. It carried no path or retry hint, so the conformance
registry could not express container cases.

translateArtifactFailure now takes the selected path and returns the
reader's TargetFailure as an AnalysisTargetFailureError. The malformed,
truncated and unsupported reasons, their classification rows and their
presentation branch are deleted from ArtifactOperationError. Readers'
unsupported refusals carry their format facts through unsupportedArtifact.

Container cases move into the conformance registry, which now opens the
target first for session tools such as inspect_artifact.

BREAKING CHANGE: inventory_artifact, inspect_artifact, extract_artifact and
the bundle readers report a refused container as a target failure of
details.path with a top-level retry. details.reason is the owner's
description and details.detail is removed.

* docs(il2cpp): describe pair conflicts as input_conflict with both inputs

* docs(android): name unsupported_target for truncated boot image structures

* fix(errors)!: report a target that changed during the read as failure_kind changed

Inventory integrity failures whose check means the target moved under the
read (container, member and unpacked-entry identity, read coverage,
traversal coverage) now take the model's changed projection: code
artifact_changed, retry backoff and details.failure_kind changed. A
selected target that no longer matches the one the session admitted gets
its own admitted-identity check and keeps its reopen recovery.

BREAKING CHANGE: inventory_artifact, inspect_artifact, extract_artifact and
the other inventory operations report a target that changed during the
read as artifact_changed (retryable, failure_kind changed) instead of
artifact_operation_failed. Admission-identity refusals report
integrity_check admitted-identity instead of container-identity.

* test(artifacts): raise the cleanup fixture's decode refusal with its format facts

* fix(errors)!: report unsupported and unrecognized targets on the TargetFailure model

AnalysisUnsupportedTargetError carried a free-text reason and remediation
beside the TargetFailure model, so unsupported refusals had no format,
failure_kind or retry hint, and their recovery was prose written at each
producer.

The class is deleted. Producers raise unsupportedTarget or
unrecognizedTarget with the owner's format, and consumers read
targetFailureOfKind. The projection table renders the recovery and names
the operations the owner lists in related.operations. The foreign-bytes
identity loop moves into the conformance registry.

BREAKING CHANGE: unsupported and unrecognized targets report
failure_kind, format and retry. Their remediation comes from the
target-failure table; producer-written remediation sentences are folded
into details.reason or replaced by details.related_operations.

* test(artifacts): expect admitted-identity for selections replaced before admission

A selected source replaced before admission fails the admitted-identity check rather than container-identity since the changed/admitted split.

* test(go): name the fixture and result when an MZ carrier is not refused through MCP

* style: format the migrated target-failure tests

* test(errors): expect the PE readers' native-binary format label for foreign bytes

* fix(cli)!: spell a target failure's recovery with CLI commands and options

The target-failure recovery named MCP tools even when the CLI printed it,
and it could not name another provider. The projection table now renders
the owner's alternative operations and providers through an adapter
spelling: MCP by tool name and open_binary argument, the CLI by command
and --provider. The CLI output layer re-renders only the table's own text,
so appended guidance is kept.

BREAKING CHANGE: CLI target-failure remediation names commands (for
example `rea inspect-plist`) instead of MCP tool names, and errors gain
details.related_providers when the owner names a provider.

* test(verify): expect target failures for damaged ELF, core and EVM inputs in real-provider verifiers

The binary-layout, recorded-crash and EVM verifiers still expected invalid_input for malformed or truncated selected bytes. The pwntools and EVM adapters now report those as unsupported_target with failure_kind; a missing path remains invalid_input.

* test(web): expect the partial code for a refused source-map admission

The limit-cut code is partial; this Windows-lane test arrived from main with the old truncated spelling.

* fix(workers)!: name malformed worker replies by the model's kind (#14292)

* fix(workers)!: name malformed worker replies by the model's kind

The pwntools, EVM, UEFI LZMA, source-map and historical-capture workers
replied with reason "format" for bytes that break their format, a second
vocabulary for the TargetFailure kind. The workers and their reply schemas
now use "malformed" at the source, including the pwntools Python bridge
and its tests. pwndbg never sent "format", so its schema drops it.

The pwntools decoder maps the worker's malformed and truncated replies to
the target failure of the same kind in one branch.

BREAKING CHANGE: worker reply reason "format" is renamed "malformed" in
the pwntools, EVM, UEFI LZMA, source-map and capture decoder protocols.

* test(go): expect loader-equivalent PE header facts in the MZ diagnostics (#14293)

#14253 made the static PE readers read the optional header at its fixed
offsets and admit a declared directory count below 16, as the Windows
loader does. The Go MZ diagnostic fixtures still expected the older
refusals, so inspect_go_binary MCP and CLI diagnostics failed on main.
A short SizeOfOptionalHeader with an unknown magic at the fixed offset
is now an unsupported optional header, and a PE declaring one data
directory is admitted and keeps its build information, which the MCP
test now asserts.

* fix(tests): damage Deno PE resource framing the loader-equivalent reader reads

#14253 walks resource trees at their RVA whatever the directory Size
declares, so shrinking Size no longer made the 65,535-language table
malformed and the case reported the entry allowance instead. Point the
type directory's entry at a language directory outside the file-backed
resource bytes: its header cannot be read, which the reader reports as
malformed before counting rows against the allowance.

* test(go): check build information in a one-directory PE32 fixture (#14303)

* test(pe): distinguish unsupported DOS input from truncated input (#14302)

* ci: measure portable runner time for recorded selection predictions (#14304)

* ci: validate workflow anchors with actionlint 1.7.12 (#14298)

* ci: wait for static checks before broad PR test shards (#14299)

* ci: validate workflow anchors with actionlint 1.7.12

* ci: wait for static checks before broad PR test shards

* ci: record affected-test predictions above the live cutoff (#14300)

* ci: compare frozen selections with observed test failures (#14301)

* chore(deps): bump markdownify from 1.2.3 to 1.2.4 in /website (#14227)

Bumps [markdownify](https://github.com/matthewwithanm/python-markdownify) from 1.2.3 to 1.2.4.
- [Release notes](https://github.com/matthewwithanm/python-markdownify/releases)
- [Commits](https://github.com/matthewwithanm/python-markdownify/compare/1.2.3...1.2.4)

---
updated-dependencies:
- dependency-name: markdownify
  dependency-version: 1.2.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump rcssmin from 1.2.2 to 1.3.0 in /website (#14229)

Bumps [rcssmin](https://github.com/ndparker/rcssmin) from 1.2.2 to 1.3.0.
- [Changelog](https://github.com/ndparker/rcssmin/blob/master/CHANGES)
- [Commits](https://github.com/ndparker/rcssmin/compare/1.2.2...1.3.0)

---
updated-dependencies:
- dependency-name: rcssmin
  dependency-version: 1.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix(ci): retry recorded crash dependency acquisition without stale index cache (#14076)

Co-authored-by: ShuaixinHuang <[email protected]>

* ci: publish the portable build cache only for selected consumers (#14307)

* ci: run the verified actionlint release binary (#14309)

* chore(deps): bump pyyaml from 6.0.3 to 6.0.4 in /website (#14228)

Bumps [pyyaml](https://github.com/yaml/pyyaml) from 6.0.3 to 6.0.4.
- [Release notes](https://github.com/yaml/pyyaml/releases)
- [Changelog](https://github.com/yaml/pyyaml/blob/6.0.4/CHANGES)
- [Commits](https://github.com/yaml/pyyaml/compare/6.0.3...6.0.4)

---
updated-dependencies:
- dependency-name: pyyaml
  dependency-version: 6.0.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* refactor(views): reuse invalid-view results and row selectors (#14314)

* refactor(domain): share record and graph parsing across input paths (#14321)

* ci: shallow-checkout the classifier for qualification runs (#14312)

* refactor(tests): consolidate repeated CLI capture and fixture construction (#14311)

* refactor(tests): consolidate repeated CLI capture and fixture construction

* test(cli): keep overlapping schema and help cases in their existing PR

* refactor(application): consolidate configuration and observation helpers (#14322)

* refactor(application): consolidate configuration and observation helpers

* refactor(config): leave optional launch parsers to their existing change

* refactor(tooling): share verifier fixture and lint helpers (#14318)

* refactor(tooling): share verifier fixture and lint helpers

* test(clients): retain tool messages in verifier model substitutes

* build(deps): bump write-file-atomic from 7.0.0 to 8.0.0 (#8134)

* perf(nuget): stream .nupkg ZIP over FileHandle instead of buffering full archive (#13835)

* perf(nuget): stream .nupkg ZIP over FileHandle instead of buffering full archive

Closes #13834

* fix(nuget): check artifact stability after format rejection

* refactor(kuna): extract KunaSingleFunctionCache from KunaSessionClient (#13863)

Closes #13862

* perf(har): reuse normalized Base64 for retained response bodies (#13847)

Co-authored-by: hhang <[email protected]>

* refactor(application): migrate 7 standalone format services onto executeArtifactInspection (#13861)

Closes #13860

* refactor: prune 5 redundant single-call wrapper modules (#13807)

* refactor: prune 5 redundant single-call wrapper modules

* chore(ci): remove deleted providerEnvironment.ts from Stryker and CI scope configs

* fix(ci): retarget provider environment mutation coverage

* refactor(application): migrate 3 remaining artifact services onto executeArtifactInspection (#13867)

* refactor(rizin): extract RizinDebugEvidence from RizinDebugSessionManager (#13823)

* refactor(rizin): extract RizinDebugEvidence from RizinDebugSessionManager

* refactor(rizin): remove unused evidence imports

* fix(ci): follow extracted Rizin evidence in mutation checks

* docs: codify pagination, schema-flatness, DDIA, and flat-ownership guidance in tool-design docs and skills (#13865)

* 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

* feat(frida): add optional limit and offset paging to list_frida_processes (#13854)

* 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

* refactor(application): unify 5 pass-through analysis services into ProviderOperationService (#13856)

Closes #13855

* refactor(cli): extract contractCommandRunners from contractCommand (#13869)

* feat(tools): add optional limit and offset paging to find_xrefs_to_name (#13858)

* feat(tools): add optional limit and offset paging to find_xrefs_to_name

Closes #13857

* fix(tools): preserve xref discovery coverage in paged results

* feat(adb): add optional limit and offset paging to list_adb_features and list_adb_services (#13873)

* feat(adb): add optional limit and offset paging to list_adb_features and list_adb_services

* test(adb): verify feature and service paging guidance

* refactor(cli): extract contractCliSchemaProjection and contractCliDocumentDescription (#13871)

* fix(dwarf): reject PE long section names when PointerToSymbolTable is zero (#13889)

* perf(macho): streamline legacy rebase run marking (#13881)

* perf(erlang): stream BEAM IFF inspection over FileHandle (#13886)

* perf(erlang): stream BEAM IFF inspection over FileHandle

* fix(erlang): retain only decoded BEAM code headers

* refactor(kuna): extract KunaSessionEvidence from KunaSessionClient (#13879)

* refactor(kuna): extract KunaSessionEvidence from KunaSessionClient

* refactor(kuna): remove stale session evidence imports

* fix(objc): preserve class import reader failures (#13892)

* refactor(server): extract desktop build tool bindings (#13891)

* refactor(server): collapse inspect bindings and extract desktopBuildToolBindings

* fix(mcp): restore contract-checked inspect bindings

* fix(macho): preserve legacy bind stream bounds and target scope (#13874)

* fix(macho): preserve legacy bind stream bounds and target scope

* fix(macho): report unresolved legacy bind targets in coverage

* test(macho): consolidate legacy bind target coverage

* perf(pe): stream PE certificates over FileHandle (#13884)

* perf(pe): stream PE certificates over FileHandle

* fix(pe): share certificate table admission across readers

* perf(apple-ips): stream Mach-O join headers over FileHandle (#13894)

* perf(apple-ips): stream Mach-O join headers over FileHandle

* fix(apple-ips): retain only verified Mach-O joins

* perf(objc): streamline exact class identity projection (#13897)

* perf(pe): stream PE resource inspection over FileHandle (#13899)

* perf(pe): stream PE resource inspection over FileHandle

* fix(pe): bound streamed icon-group reads and restore lifetime coverage

* perf(swift): streamline symbol inventory classification (#13902)

* perf(apk-signature): stream APK signature inspection over FileHandle (#13877)

* perf(apk-signature): stream APK signature inspection over FileHandle

* fix(apk-signature): preserve bounded reads and file identity

* fix(apk-signature): handle deflate EOF and repair verifier bounds

* fix(apk-signature): recognize internal pipeline cancellation at EOF

* perf(release-exposure): stream PE CodeView/PDB inspection over FileHandle (#13896)

* perf(release-exposure): stream PE CodeView/PDB inspection over FileHandle

* fix(release-exposure): share and bound PE CodeView parsing

* refactor(server): simplify contractToolBindings types and handler dispatch (#13912)

* perf(macho): streamline slice selection diagnostics (#13905)

* fix(macho): preserve retained magic from valid FAT ranges (#13910)

* perf(pe): stream PE load-config inspection over FileHandle (#13901)

* perf(pe): stream PE load-config inspection over FileHandle

* fix(pe): admit empty section tables and batch TLS callback reads

* perf(elf): stream ELF note inspection over FileHandle (#13904)

* perf(elf): stream ELF note inspection over FileHandle

* fix(elf): validate full header extents and reuse aliased note reads

* fix(macho): keep header reads inside declared slices (#13913)

* perf(v8): stream V8 code cache inspection over FileHandle (#13907)

* fix(macho): correct encryption range VM mapping (#13918)

* perf(elf): stream kernel module inspection over FileHandle (#13917)

* perf(elf): stream kernel module inspection over FileHandle

* test(elf): exercise streamed kernel module reads and finalization

* refactor(providers): share offlineArtifactFailureDialect across offline providers (#13921)

* test(macho): consolidate fixed header and extent proofs (#13919)

* perf(macho): bound positional command string probes (#13925)

* refactor(server): replace server.close and onclose monkey-patching with lifecycle hooks (#13882)

* refactor(server): replace server.close and onclose monkey-patching with lifecycle hooks

* fix(mcp): keep deferred runtime cleanup out of protocol close

* test(mcp): verify materialized runtime hooks close once

* fix(cli): defer artifact AnalysisView loading until requested

* test(macho): consolidate native path framing proofs (#13926)

* perf(elf): stream ELF dependency inspection over FileHandle (#13915)

* perf(elf): stream ELF dependency inspection over FileHandle

* fix(elf): share dependency hash parsing and bound string reads

* perf(elf): reuse cached prefixes for short dependency names

* refactor(server): extract debugger and instrumentation tool bindings (#13909)

* refactor(server): extract debugger and instrumentation tool bindings

* test(server): track extracted debugger bindings in reverse tools coverage

* fix(cli): defer artifact AnalysisView loading until requested

(cherry picked from commit e58fda3f2618b35bde5990c9e114f57f9d43f65d)

* refactor(macho): use binary facts for native diagnostic admission (#13929)

* perf(macho): streamline native export inventory merging (#13932)

* perf(elf): stream ELF debug-link inspection over FileHandle (#13928)

* perf(elf): stream ELF debug-link inspection over FileHandle

* perf(elf): reuse section name bytes across debug-link readers

* perf(pe): stream PE import inspection over FileHandle (#13924)

* perf(pe): stream PE import inspection over FileHandle

* perf(pe): reuse import read windows and cover positional boundaries

* fix(elf): preserve load segment range diagnostics

* test(macho): consolidate lipo field and native slice proofs (#13937)

* perf(elf): stream ELF unwind-range inspection over FileHandle (#13931)

* perf(elf): stream ELF unwind-range inspection over FileHandle

* fix(elf): bound unwind name retention and refill frame metadata

* test(macho): make slice cancellation and cleanup ordering deterministic (#13944)

* test(macho): make slice cancellation and cleanup ordering deterministic

* test(macho): join slice reads before restoring test spies

* refactor(providers): adopt offlineArtifactFailureDialect in BEAM, V8, NuGet, and LNK providers (#13936)

* refactor(providers): adopt offlineArtifactFailureDialect in BEAM, V8, NuGet, and LNK providers

* fix(nuget): let integrity and cancellation fall through to classifyProviderFailure

* perf(macho): defer segment geometry until lazy metadata needs it (#13949)

* test(macho): consolidate classic and modern dylib encoding proofs (#13952)

* perf(native): stream binary hardening inspection over FileHandle for ELF, PE, and Mach-O (#13934)

* perf(native): stream binary hardening inspection over FileHandle for ELF, PE, and Mach-O

* fix(native): bound hardening note and symbol reads

* test(native): verify bounded hardening reads through positional readers

* refactor(server): extract browser, Electron, and JavaScript runtime tool bindings (#13939)

* refactor(server): extract browser, Electron, and JavaScript runtime tool bindings

* test(ci): select browser checks for extracted bindings

* refactor(providers): adopt offlineArtifactFailureDialect in PE, ELF, and Apple IPS providers (#13954)

* test(macho): consolidate lazy payload reuse and capacity proofs (#13958)

* refactor(artifacts): extract source-map detection and occurrence path helpers from ReleaseExposureReader (#13961)

* perf(elf): stream kernel build-config inspection over FileHandle (#13942)

* perf(elf): stream kernel build-config inspection over FileHandle

* fix(elf): reuse kernel marker windows and report compressed input limits

* fix: preserve kernel config identity on cleanup failure

* test(macho): consolidate command framing and admission proofs (#13964)

* test(macho): consolidate command framing and admission proofs

* test: assert Mach-O command failure facts

* perf(dwarf): stream DWARF compile-unit inspection over FileHandle for ELF, PE, and Mach-O (#13948)

* perf(dwarf): stream DWARF compile-unit inspection over FileHandle for ELF, PE, and Mach-O

* fix: bound positional DWARF reads and share Mach-O selection

* test: verify positional Mach-O command admission

* refactor(providers): adopt offlineArtifactFailureDialect in NativeInitializers, Go, Rust, and ElfUnwind providers (#13966)

* refactor(providers): adopt offlineArtifactFailureDialect in BinaryHardeningProvider and PeBinaryFailure (#13970)

* refactor(server): extract session, investigation, and workflow tool bindings (#13968)

* perf(ntfs): stream MFT record decoding in O(recordBytes) memory (#13957)

* perf(ntfs): stream MFT record decoding in O(recordBytes) memory

* fix: resolve streamed MFT links through bounded positional reads

* refactor(providers): adopt offlineArtifactFailureDialect in KernelBuildConfigProvider (#13973)

* refactor(adb): extract read-only shell inspection operations from AdbProvider (#13975)

* refactor(elf): remove obsolete debug-link buffer parsers (#13971)

* perf(native): stream PE and ELF export-table inspection over FileHandle (#13951)

* perf(native): stream PE and ELF export-table inspection over FileHandle

* fix: share export interpretation across buffered and positional reads

* refactor(providers): adopt offlineArtifactFailureDialect in DwarfUnitsProvider (#13977)

* perf(elf): read only needed debug-link section bytes (#13980)

* refactor(providers): adopt offlineArtifactFailureDialect in NativeExportsProvider (#13982)

* feat(analysis-view): page retained UEFI firmware maps

Add the uefi-firmware view for inspect_uefi_firmware Evidence. The summary returns volume, file and section counts with FFS type, section type and volume depth tallies. Pages select volumes, files, sections, unknown regions, integrity records and PSP tables or candidates. Files match exact GUIDs, user-interface names, type names and owning volume; sections match their owning file and type. Rows keep the original flattened index plus the offset and source stream that extraction targets.

Co-Authored-By: gensokyo-dev <[email protected]>

* perf(uefi)!: summarize firmware inspection by default over MCP

A complete map of a 4 MiB OVMF image is about 514 KB of structured content, which exceeds client result limits. MCP inspect_uefi_firmware now retains the complete map and returns its summary unless the caller passes detail complete. An optional view returns the first uefi-firmware page in the same call; later pages use inspect_analysis_view. The one-shot CLI command still returns complete Evidence.

BREAKING CHANGE: MCP callers that need every volume, file and section inline must pass detail: "complete" to inspect_uefi_firmware.

Co-Authored-By: gensokyo-dev <[email protected]>

* docs(firmware): describe UEFI summaries and views

Co-Authored-By: gensokyo-dev <[email protected]>

* perf(rust): stream Rust binary inspection over FileHandle for ELF, PE, Mach-O, and WebAssembly (#13979)

* perf(rust): stream Rust binary inspection over FileHandle for ELF, PE, Mach-O, and WebAssembly

* fix(rust): bound positional dependency and name reads

* refactor(rust): reuse strict UTF-8 validation

* fix(elf): retain verified debug-link evidence through descriptor finalization (#13986)

* refactor(elf): prune superseded whole-buffer parseKernelBuildConfig wrapper (#13996)

* refactor(dwarf): prune superseded whole-buffer locateDwarfSections wrapper (#13993)

* refactor(elf): retire obsolete note buffer parsers (#13995)

* fix(gpu): mark conflicting CUDA shared sections partial and clear register provenance (#13963)

* refactor(artifacts): extract bounded member I/O helpers from ReleaseExposureReader (#13990)

* refactor(adb): extract package and app lifecycle operations from AdbProvider (#13988)

* refactor(server): extract offline inspection tool bindings from serviceToolBindings (#13984)

* refactor(elf): retire the obsolete unwind buffer parser (#14007)

* refactor(uninstall): extract registration-removal and item-collapse helpers from Uninstall (#14006)

* refactor(rizin): extract NUL-frame reader and wait helpers from RizinDebugSessionManager (#14001)

* refactor(rizin): extract NUL-frame reader and wait helpers from RizinDebugSessionManager

* fix(ci): track extracted Rizin frame helpers

* refactor(native): extract NativeAotPeImage from nativeAotPe (#13998)

* chore(guards): declare desktop build-computer entries and clear the entry baseline (#14011)

* perf(go): stream Go binary inspection over FileHandle for ELF, PE, and Mach-O (#14003)

* perf(go): stream Go binary inspection over FileHandle for ELF, PE, and Mach-O

* fix(go): share parsing and bound positional string reads

* perf(go): reuse target reads under the scan budget

* refactor: remove internal re-export shims and guard against new ones (#14009)

* refactor: remove internal re-export shims and guard against new ones

* fix(ci): catch namespace module re-exports

* perf(elf): reuse proven symbol suffixes in unwind lookup (#14014)

* refactor(cli/server): break remaining module-layer cycles (#14013)

* refactor(cli,server): break remaining module-layer cycles

* fix(ci): follow relocated CLI entry points

* refactor: remove retired internal reader exports

* fix(ci): track configuration inputs across cached checks (#14015)

* fix(ci): close static-check cache gaps and prune stale settings (#14017)

* fix(ci): close static-check cache gaps and prune stale settings

* chore(ci): remove unused Actionlint runner label

* fix(ci): rerun TODO scans against the host interpreter

* fix(elf): retain verified artifact reports through descriptor finalization

* test(elf): assert retained reports during descriptor finalization

* refactor(elf): retire the test-only dependency buffer driver

* test(elf): join the paused dependency parser on failure

* refactor(elf): consolidate kernel module checks on positional reads

* fix(elf): preserve kernel config framing and location provenance (#14021)

* perf(elf): bound kernel module signature digest reads (#14024)

* fix(elf): retain verified kernel reports through descriptor finalization (#14022)

* refactor(go): consolidate native parser checks on positional reads (#14027)

* feat(uefi): record the owning FFS file of extracted payloads

Each published extraction file now names the FFS file whose body or section produced it, with its GUID, user-interface name, type and logical path. Decoded streams resolve through their carrier section. Callers no longer need to match output paths against a separate inspection to find which driver a file belongs to.

Co-Authored-By: gensokyo-dev <[email protected]>

* feat(analysis-view): page retained UEFI extraction manifests

Add the uefi-extraction view for extract_uefi_firmware Evidence. The summary returns file, byte, derivation and gap counts, source, media-type and gap-kind tallies, and a bounded preview of the first published files. Pages select files by exact media type, source and owning FFS GUID, name or type, in publication or size order, plus derivations and gaps by kind. Counts and the size order are built once per retained report.

Co-Authored-By: gensokyo-dev <[email protected]>

* perf(uefi)!: summarize firmware extraction by default over MCP

A whole-image extraction of a 4 MiB OVMF image lists 560 files in about 553 KB of structured content, which exceeds client result limits. MCP extract_uefi_firmware now retains the complete manifest and returns its summary unless the caller passes detail complete. Targeted extractions fit in the summary's file preview. An optional view returns the first uefi-extraction page in the same call; later pages use inspect_analysis_view. The one-shot CLI command still returns complete Evidence.

BREAKING CHANGE: MCP callers that need every published file inline must pass detail: "complete" to extract_uefi_firmware.

Co-Authored-By: gensokyo-dev <[email protected]>

* docs(firmware): describe UEFI extraction summaries and owners

Co-Authored-By: gensokyo-dev <[email protected]>

* fix(uefi): attribute a refused output directory to output_directory

An existing output directory was reported as an invalid path issue, which points callers at the firmware image instead of the directory they chose. Route destination refusals through outputDirectoryAdmissionRefusal, as firmware extraction already does.

Co-Authored-By: gensokyo-dev <[email protected]>

* fix(go): reject contradictory module coverage in retained views (#14029)

* fix(go): retain verified reports through descriptor finalization (#14026)

* perf(analysis-view): page unfiltered Go and Rust metadata directly (#14030)

* refactor(rust): consolidate binary parser checks on positional reads (#14033)

* feat(native): report the stored RVA of PE exports

PE export rows reported only the preferred-base virtual address, which the parser derives from the export-address-table RVA. Callers asking for an RVA had to recover the image base through other tools. Each row now carries the RVA as the slot stores it; a forwarder's RVA locates its forwarder string.

Co-Authored-By: gensokyo-dev <[email protected]>

* feat(analysis-view): filter native exports and ELF dependencies by name prefix

Retained native-exports and elf-dependencies views matched only exact names, so counting the exports or imports in one namespace meant paging every row. Add name_prefixes to the exports collection and to every named elf-dependencies collection. A prefix filter combines with exact names, and coverage.total counts every match, so limit 1 returns a count. ELF export prefixes follow the exact-name identity rules: non-ASCII names compare their UTF-8 bytes, and names that are not valid UTF-8 never match. The tool descriptions now name the filter.

Co-Authored-By: gensokyo-dev <[email protected]>

* docs(native): describe export RVAs and name-prefix views

Co-Authored-By: gensokyo-dev <[email protected]>

* fix(analysis-view): read older UEFI extraction Evidence and drop filter-count ceilings

extract_uefi_firmware rows gained a required ffs_file, so extraction Evidence saved before that field failed to parse in retained views. The field is now optional when reading: the extractor still always records it, and an unrecorded owner matches no owner filter. UEFI view filters also capped each list at 64 values without a format, protocol or resource reason; overlapping filters cannot be split into separate requests without miscounting, so the cap is removed. MCP input-element admission still bounds every request.

Co-Authored-By: gensokyo-dev <[email protected]>

* fix(python): validate marshal coverage and consolidate pyc tests (#14036)

* perf(rust): reuse the Wasm section probe for custom name lengths (#14035)

* refactor(process): share the abortable command-turn wait between GDB and Rizin (#14042)

* fix(erlang): require complete positional BEAM reads (#14045)

* fix(rust): retain verified reports through descriptor finalization (#14034)

* test(process): consolidate symlink snapshot captures (#14051)

* fix(domain): make partial count switches exhaustive for typed lint (#14048)

Deep static checks on main fail typed lint (switch-exhaustiveness-check) in three counting switches introduced by recent single-pass summary refactors. Name the unmatched 'none' basis explicitly and give the graph/AST switches a documented default.

* refactor(server): extract ForwardingTransport base class for MCP Transport wrappers (#14050)

* fix(devicetree): validate retained report ranges and coverage (#14066)

* fix(ci): fall back to Ubuntu Azure archive in recorded-crash container (#14061)

The Ubuntu 24.04 recorded-crash container repeatedly timed out at 150s refreshing APT indexes from archive.ubuntu.com and security.ubuntu.com on main. Split Noble's 150s refresh budget into a 75s initial attempt followed by a 75s retry against http://azure.archive.ubuntu.com/ubuntu (matching ubuntu-archive's Noble Azure fallback while keeping http:// before ca-certificates is installed), and leave Debian unchanged at 150s.

* fix(erlang): retain verified BEAM reports through descriptor finalization (#14062)

* perf(uefi): skip verified erased padding in NVRAM scans (#14069)

* test(uefi): consolidate volume ownership and checksum proofs (#14070)

* fix(ci): run type-aware lint on changed files in fast PRs (#14068)

* fix(v8): preserve verified code cache results and require exact payload reads (#14067)

* refactor(config): return Result for ConfigurationError in IdaConfiguration and KiloClientLocation (#14053)

* refactor(config): return Result for ConfigurationError in IdaConfiguration and KiloClientLocation

* fix(config): return Kilo file-probe failures through Result

kiloGlobalLocation returned inline-configuration failures as Result but kept
throwing the shared probe's ConfigurationError, and kiloLayeredLocation no
longer caught it: an unreadable Kilo folder rejected resolveSupportedClients
for every client instead of staying a Kilo row failure. Convert probe
failures at the same Result boundary and register the counted catch.

Validation: a new boundary test (regular file at Kilo's config root) fails
without the fix and passes with it; kiloClientLocation, clientLifecycle,
mcpAddClientLifecycle and registration catalog suites pass; check:fast
passes.

* fix(ida): preserve the size rejection when descriptor close fails

The 64 KiB rejection became a completed outcome holding a rejected Result,
so the cleanup-failure handler replaced it with generic close guidance.
Read the rejection from the completed outcome when composing the cleanup
error, covering both the admission and growth size checks. Restore the
close spy leaked by the existing denial test, which the new cases exposed.

Validation: a new it.each denies close after each size check, asserts the
64 KiB message plus retained-cleanup release, and fails without the fix;
the IdaConfiguration suite and check:fast pass.

* refactor(uefi): exercise only the framed LZMA worker (#14072)

* fix(uefi): preserve verified source identity through descriptor finalization (#14073)

* refactor(config): return Result from resolveKiloRegistrationWorktree (#14055)

* refactor(config): return Result from resolveKiloRegistrationWorktree

* test(config): cover Kilo worktree resolution results

* perf(views): page exact Playwright trace index hits directly (#14031)

Co-authored-by: hhang <[email protected]>

* refactor(domain): compose cleanup dependencies through analysisErrorCleanup helpers (#14064)

* refactor(domain): compose cleanup dependencies through analysisErrorCleanup helpers

* fix(kuna): honor completed project cleanup when wrapping failures

* refactor(domain): one ByteSource representation for streaming parsers (#14044)

* refactor(domain): one ByteSource representation for streaming parsers

* refactor(nuget): adopt ByteSource across NuGet and APK parsers (#14047)

refactor(nuget,apk): adopt ByteSource and drop the NuGet in-memory parse branch

* test(elf): remove obsolete byte source fixture declarations

* refactor: centralize owned finalization and configuration failures (#14071)

* refactor(config): propagate typed configuration failures

* refactor(lifecycle): centralize completion and cancellation

* fix(config): preserve Hermes YAML edit refusal guidance

* fix(reference): preserve file cleanup when directory enumeration fails (#14081)

Directory enumeration can list a file and then fail with EIO. If that
file read is cancelled and its close fails, replacing the cancelled
result with success dropped the still-open file. Keep the directory
read failure primary and merge the file's remaining resource into both
cleanup-combination returns.

Co-authored-by: Cursor Agent <[email protected]>

* fix(ci): bind timing evidence to its workflow attempt (#14080)

Co-authored-by: ShuaixinHuang <[email protected]>

* fix(ci): trace test dependencies through static template imports (#14079)

Co-authored-by: ShuaixinHuang <[email protected]>

* fix(ci): retain cache generations per restore version (#14084)

* fix(ci): retain cache generations per restore version

* test(ci): align inherited Mach-O assertion with main

---------

Co-authored-by: ShuaixinHuang <[email protected]>
Co-authored-by: ShuaixinHuang <[email protected]>

* fix(ci): use retry start times in PR health reporting (#14085)

* fix(ci): use retry start times in PR health reporting

* test: cover the reviewed CI boundary cases

---------

Co-authored-by: ShuaixinHuang <[email protected]>
Co-authored-by: ShuaixinHuang <[email protected]>

* perf(javascript): reuse completed CommonJS module-source queries

Static and semantic analysis ask whether the same callee or receiver is a CommonJS module object or require delegate at the same read site several times; a minified 1.9 MB webpack main bundle repeated about half of its 92,374 queries. Once member-mutation facts are complete, an identical query reuses its answer and re-records the resource limits the first walk reached. The answers are cleared with the semantic value caches and require-delegate writes, which every state change that can alter them already invalidates. The same bundle runs 48,447 walks instead of 92,374, and static and semantic results are unchanged on all 43 sources of the measured application.

Co-Authored-By: gensokyo-dev <[email protected]>

* perf(javascript): skip captured-selection normalization without captures

Most loader sources carry no captured selections, yet normalization allocated a map and sorted an empty array for each one before returning nothing. Return that result directly.

Co-Authored-By: gensokyo-dev <[email protected]>

* perf(javascript): build loader context keys without JSON serialization

Every module-source work item serialized its read site and capture boundaries to JSON to key its context. Build the same key by concatenation; absent and null positions still share a key, and absent captures still differ from an empty capture list.

Co-Authored-By: gensokyo-dev <[email protected]>

* perf(javascript): reuse preload-discovery static checkpoints in the normal pass

When any .js source belongs to a module package, preload discovery statically analyzes every source and the normal pass analyzes each one again. The worker now keeps the complete static checkpoint discovery computed, keyed by container, path, text digest, package type, precision and member-mutation allowance, and the normal pass of the same source writes that checkpoint instead of recomputing it. Static analysis is deterministic for those inputs, so the parent reads, validates and charges byte-identical facts. A discovered preload whose package type changes, a source discovery could not checkpoint, and a replaced worker all recompute. Retained checkpoints are consumed once and bounded to one eighth of the worker's V8 heap limit.

Co-Authored-By: gensokyo-dev <[email protected]>

* perf(javascript): park the worker after preload-discovery allowance refusals

A scoped worker closed instead of parking after any failed analysis, so one member-mutation refusal during preload discovery discarded the process and every static checkpoint it retained. Discovery skips such a source and the normal pass analyzes and reports it again, and the worker reports the refusal while staying healthy. A discovery checkout whose failures are all member-mutation refusals now parks if canReuse still holds. Other failures, and any failure in a normal analysis, still close the worker.

Co-Authored-By: gensokyo-dev <[email protected]>

* perf(javascript): keep the worker reusable after a final discovery refusal

The worker's reuse state cleared its last failure only on success, so a
member-mutation refusal of the last discovered source still closed the
worker and discarded every retained static checkpoint. The worker now
owns the recoverable-refusal rule, and the scope uses the same predicate.

Co-Authored-By: gensokyo-dev <[email protected]>

* perf(javascript): skip checkpoint encoding without reuse capacity

Runtimes without a reported heap limit (Bun) retain nothing, yet discovery
still encoded every complete checkpoint before checking capacity. Check the
remaining capacity first.

Co-Authored-By: gensokyo-dev <[email protected]>

* feat(analysis-view): select inventory occurrences by artifact kind

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 <[email protected]>

* feat(analysis-view): select retained JavaScript facts by property value

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 <[email protected]>

* feat(analysis-view): count distinct retained JavaScript fact values

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 <[email protected]>

* docs(analysis-view): qualify javascript-fact-groups readback to scalar values

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 <[email protected]>

* perf(ghidra): scan defined data for selective string search instead of materializing inventory (#14101)

search_strings now scans getDefinedData directly when the string inventory has not been built, matching before allocating StringFacts and retaining only matches in STRING_ORDER. Sessions that only search no longer pay full inventory materialization and retention in the bridge JVM heap; list operations still build the cached inventory as before.

Refs #13292, #13355. Verified: ghidraBridgeSources (11 tests), javac against Ghidra jars, check:fast, and a real Ghidra 12.2 + JDK 25 probe asserting search-before-list equals search-after-list for regex and insensitive literal queries. No wire or result-order change.

* perf(ghidra): scan procedures for selective search without retaining inventory (#14103)

search_procedures now builds procedure entries without populating procedureInventory when it has not been built yet (buildProcedures extracted from procedures()), so a search-only session does not retain the full procedure inventory in the bridge JVM. Cached path, name index, order (PROCEDURE_ORDER) and matched_aliases output are unchanged. Companion to the search_strings scan in #14101; together they apply the DDIA rule of materializing inventories only for repeated list access, not for one ad-hoc search.

Refs #13355, #13299. Verified: javac against Ghidra 12.2 jars, ghidraBridgeSources 11 tests, and a real Ghidra 12.2 + JDK 25 probe asserting search-before-list deep-equals search-after-list (7 procedure matches, 12 procedures).

* refactor(frida): make inspectStatus async and load the view service lazily (#14108)

FridaInstrumentationService was the last application service statically importing AnalysisViewService for a conditional summary branch, because inspectStatus was synchronous. It is now async (its only production caller, debuggerToolBindings, already runs it inside an async handler), loads AnalysisViewService dynamically only when detail=summary, and otherwise imports only the retention check. Tests updated to await the six call sites; no behavior change.

Refs #13275. Verified: FridaInstrumentationService tests (37), check:fast. Stacks cleanly with #14102, which moves the retention import to AnalysisViewRetention.ts; resolve by taking that import line if both land.

* fix(ida): extend verifier admission check deadline to 90s

The admission check spawns scripts/verify-real-ida.mjs, which imports the
full dist graph before reaching the early admission errors. Under CI shard
load that exceeded the 10s command deadline and failed Test shard (5/12)
on main, while the same sha passed the scheduled run. The sibling verifier
observations check already uses 90s for the same script.

* perf(search): derive literal candidates from regex alternations (#14106)

* perf(search): derive literal candidates from regex alternations

extractRequiredRegexLiteral previously returned undefined for every alternation, so regex search_strings/search_procedures with alternatives paged full IDA inventories and transferred full Hopper inventories for Node-side matching. It now computes, for top-level and required-group alternations, the longest literal every branch guarantees (longest common substring of each branch's required runs) and returns it as the provider candidate; Node still verifies the full ECMAScript regex on candidates, so the candidate remains a zero-false-negative prefilter. A branch-common segment floats inside each branch and is never joined to neighbouring literals.

Refs #13353. Verified: regexLiteralCandidate tests (including the /u and /iu zero-false-negative corpus with new alternation patterns), IdaOperationRunner tests, HopperRegexSearch tests, check:fast with architecture guards.

* fix(search): require two code points for alternation candidates

A single shared code point (e.g. matched|absent -> a) matches nearly every value, so alternation-derived candidates now require at least two code points to be worth a provider round trip; shorter commons fall back to full inventory as before. Single-branch literals keep existing behavior. HopperRegexSearch routing tests pass unchanged.

* fix(search): bound alternation candidate extraction work and nesting

Long disjoint alternatives could spend hundreds of thousands of substring probes on the calling thread, and nested alternation groups recursed once per nesting level. Cap total probes (falling back to the full inventory past the budget) and cap alternation recursion depth, abandoning only the over-deep branch. Tests cover 2000-deep nesting and 1024-char disjoint alternatives.

* refactor(application): move AnalysisViewRetention to a light module and defer view loading in services (#14102)

* refactor(application): move AnalysisViewRetention to a light module and defer view loading in services

AnalysisViewRetention and requireAnalysisViewRetention moved from AnalysisViewService (which pulls the 1.3 MB analysis-view result graph) into AnalysisViewRetention.ts, which depends only on error and Evidence port types. All type-only consumers now import the light module. ApkSignature, Il2cpp and Reverse services load AnalysisViewService dynamically only on the detail=summary branch, and executeArtifactInspection checks retention readiness through the light module and loads the view service only after a successful inspection. No behavior or wire change.

Refs #13275, #13940. Verified: check:fast (typecheck, lint, architecture guards), 93 source tests (AnalysisViewService, Il2cpp, ApkSignature, Reverse), cliStartupImports 10/10 on pinned Node 24.22.1, knip clean. Remaining static importers (ArtifactComparisonEvidence, environment build/state, Frida sync inspectStatus, server bindings) still block a full chunk split and stay in #13275.

* fix(application): recheck cancellation after lazy view imports and guard static view links

An abort arriving while the dynamic AnalysisViewService import was pending still recorded and returned a successful summary. ArtifactInspectionExecution, ApkSignature, Il2cpp and Reverse now recheck the signal after the import (retaining the complete Evidence as the cancelled partial observation) before projecting. Add a counted architecture guard so static AnalysisViewService imports in application services cannot return silently; the baseline records only the known synchronous helpers and Frida path tracked in #14112.

* perf(tests): supervise direct vitest scripts through run-exclusive on POSIX (#14104)

* perf(tests): supervise direct vitest scripts through run-exclusive on POSIX

test:run, test:with-build, test:boundary, test:mcp, test:acceptance, test:integration, test:coverage and test:verbose invoked vitest directly, so an interrupted run could orphan detached provider children outside the owned process group. They now go through scripts/run-vitest.mjs, which wraps Vitest in run-exclusive --unlocked on non-Windows platforms (mirroring run-development-tests.mjs) and invokes Vitest directly on Windows, where source tests must not require the built Job Object artifact. Watch and CI shard scripts are unchanged.

Refs #13357. Verified: launcher smoke run (4 tests passed), check:fast, knip.

* fix(tests): forward stop signals from the vitest launcher to its child

The launcher ignored SIGINT/SIGTERM when wrapped, so a signal sent only to its PID left Vitest and its descendants running. It now always forwards to the child (run-exclusive can only forward signals it receives itself) and reports the tracked signal's exit code (143/130) deterministically. Verified with a manual probe: SIGTERM to the launcher PID during a 60s fixture test exits 143 with the tree stopped; launcher smoke run passes. A nested-supervisor in-process test proved environmentally unstable (the inner Vitest main is killed under nested run-exclusive supervisors) and was not landed.

* perf(contracts): prune only over-depth schema branches instead of reducing whole schemas (#14107)

* perf(contracts): prune only over-depth schema branches instead of reducing whole schemas

A schema whose inlined form exceeded the depth-10 advertised limit fell back to reduceToShallowProperties for the entire tool, erasing enums and nested validation on all root properties. pruneSchemaBeyondDepth now replaces only sub-schemas past the prune depth with type-preserving placeholders (every replacement widens acceptance, so canonical server-side validation is unchanged), and both input and output compaction keep the pruned form as inline when it fits bytes, depth and dialect checks. Two compactInputSchema tests that pinned depth-forces-reduction now pin the pruned-inline contract with the same Ajv/dialect safety assertions.

Refs #13302. Verified: compactInputSchema, compactOutputSchema, toolSchemaMetadata, advertisedInputExamples (59 tests), check:fast, docs:check.

* docs(contracts): refresh advertised schema summary for pruned-inline compaction

Pruned-inline schemas retain patterns (digest, Evidence id and text patterns) that whole-schema reduction dropped on 13 tools; regenerate the committed catalog summary with npm run verify:advertised-schemas -- --update-summary and re-verify clean.

* fix(contracts): make deep-schema pruning widening-safe

Walk schema positions instead of raw JSON, preserve declared integer types, keep branches that fit, return no pruned schema under not/oneOf where widening can reject valid values, and recheck output byte budgets. Add regression coverage for closed objects, unsafe combinators, fitting enums, and nullable integers; refresh advertised summaries.

* fix(contracts): keep untyped deep schemas unconstrained when pruned

Inferring object from properties or array from items narrows an untyped schema, which accepts every JSON value; the placeholder is now always unconstrained when no type is declared. Add an Ajv regression accepting null and nested values through a pruned untyped branch.

* test(contracts): assert pruned untyped schemas at depth 8

The regression accepted values that never reached the replaced node, so
it stayed green for an object placeholder and did not distinguish
branch pruning from whole-schema reduction. Assert the empty schema at
depth 8 and accept null there.

---------

Co-authored-by: Cursor Agent <[email protected]>

* docs(github): require reported verification and factual docs in PR template (#14130)

* docs(github): require reported verification and factual docs in PR template

Record the maintainer checks for running needed validation, limiting
comments to constraints and decisions, and keeping documentation factual.
Mirror that guidance in AGENTS.md where it was not already stated.

* docs(github): assign the PR checklist to the author

Rename Before merge so the PR author completes it before requesting
review, and point the draft-PR note at that section.

* docs(github): confirm root cause and engineering rules on PRs

Add a few author-checklist items for the root cause, owning-boundary
interpretation, retained cleanup facts, …
morluto added a commit that referenced this pull request Nov 25, 2026
…e MachoReadIssue (#14416)

* feat(errors)!: add the TargetFailure model, its projection table and conformance registry

Introduce one domain-owned TargetFailure value whose kind alone derives
the public code, category, retryability, recovery and details, for CLI
and MCP alike. Selected-file malformed and truncated refusals are the
first area on it: AnalysisMalformedTargetError is replaced by
AnalysisTargetFailureError, and ParseFailure's byte-structure variants
are TargetFailure variants rather than a parallel type.

The shared stableArtifactParserFailureCli loop is replaced by a
declarative registry (tests/support/targetFailure/readers/*.ts) and one
generated suite that runs every registered case through the CLI and MCP.

BREAKING CHANGE: selected-file malformed and truncated refusals add
details.failure_kind, and a truncated target's remediation now says to
re-acquire the complete file instead of choosing another target. Codes
are unchanged. Affected operations: every operation that refuses a
selected file's malformed or truncated bytes, including the ELF, PE,
Mach-O, DWARF, Go, Rust, BEAM, pyc, devicetree, Apple IPS, kernel
module, binary hardening, managed PE/CLI and IL2CPP readers.

* test(managed): name the target failure error in the merged status test

* docs(reference): name the error CSV instead of linking a non-page file

* fix(tests): expect the path reason for non-regular dyld inputs

#14225 refuses a non-regular dyld input as ArtifactReaderFailure("path");
dylibFileLifetime still expected "format" and fails on main's shard 9.

* fix(tests): expect io, invariant and path where #14225 reclassified

stableArtifact expected "format" for an impossible descriptor byte count
(now io) and an invalid chunk size (now InternalInvariantError);
directoryArtifactReaderOpen expected "format" for a non-file entry (now
path, the same change as #14238). All three fail on main.

* fix(errors)!: raise container reader byte faults as malformed or truncated targets

Delete the ambiguous `format` reason from ArtifactReaderFailure and
ArtifactOperationError. Each container reader now raises its owner's
fact once, through malformedArtifact / truncatedArtifact, with format,
offset, field and measured extents. Short reads inside a measured extent
are read-coverage integrity failures, path-kind refusals are `path`,
foreign or recovery-requiring inputs are `unsupported`, host tool output
is `io`, and REA defects are InternalInvariantError.

The trace, NTFS journal, release exposure, web capture, native macOS and
web artifact adapters project the reader's parsed facts as
AnalysisTargetFailureError instead of invalid_request. Inventory
malformed, truncated, unsupported and cancelled reasons take their code
from the TargetFailure projection table, so a truncated container is
unsupported_target with failure_kind "truncated" on both paths.

BREAKING CHANGE: inventory_artifact, inspect_artifact, extract_artifact,
analyze_javascript_application, inspect_desktop_application,
inspect_keyed_archive, inspect_asset_catalog, inspect_nuget_nupkg,
trace_dylib_resolution, trace_web_module_imports and
trace_web_source_location report damaged container bytes as
unsupported_target (details.reason "malformed" or "truncated", with
failure_kind and format) instead of artifact_operation_failed with
reason "format", and a truncated container as unsupported_target instead
of truncated. inspect_playwright_trace, inspect_ntfs_journal,
audit_release_exposure, the web capture inspection operations and the
caller-selected import and source maps report damaged selected bytes as
unsupported_target instead of invalid_request. The `format` reason no
longer appears in details.reason.

* test(artifacts): expect target failure codes in compiled CLI and MCP suites

* fix(errors)!: refuse malformed SQLite, pwntools and EVM inputs as target failures

The SQLite engine's `format` reason is renamed to `malformed` at its
owner (SQLITE_INSPECTION_REASONS), and its refusal becomes an
AnalysisTargetFailureError at the selected path with format "sqlite".
The pwntools and EVM worker replies keep their wire reason "format",
which their workers define, and the adapters translate it once into a
malformed target failure with the profile's format (elf, elf-core,
evm-bytecode) instead of an invalid_format argument issue. SQLite joins
the target-failure conformance registry.

BREAKING CHANGE: inspect_sqlite_database, inspect_binary_layout,
inspect_recorded_crash and inspect_evm_interface report a selected
file's malformed bytes as unsupported_target with details.failure_kind
"malformed", format_failure, format and path, instead of invalid_request
with an invalid_format issue on path.

* fix(errors): give the integrity kind a schema-valid code and list the reference page

artifact_integrity_mismatch's projection schema requires declared and
calculated digests, which a TargetFailure of kind integrity does not
carry, so the kind now projects artifact_operation_failed with category
integrity_mismatch. The model test validates every kind's projection
against analysisErrorProjectionSchema. The reference page joins the
documentation sidebar.

* fix(artifacts): report a short carrier read as a changed file and keep unsupported desktop probes local

A Bun or Node SEA short read inside a range already checked against the
measured size meant the file changed, not that it was truncated. The
carrier range reader and Bun's readExact now raise read-coverage
integrity for it, and keep 'outside the file' as the truncated case.
DesktopFileInspection records an unsupported managed-metadata probe as a
row issue again, so later file checks still run.

* test(errors): expect target failure facts in the pwntools and EVM reply suites

The literal-replacement scenario now reads the failure's detail instead
of an issues[] message, and a malformed reply wrapped by cleanup failure
reports category unsupported_target.

* test(errors): register PE DOS-signature and truncated IPS refusals and drop their per-command copies

The non-MZ PE imports and load-config cases (PE32/PE32+, ZZ and high-bit
signatures) and the truncated Apple IPS body move into the conformance
registry, which runs them through the CLI and MCP and now also checks
that a refusal leaves the selected file unchanged. The per-command tests
keep only their valid-image controls.

* test(sqlite): drop the malformed-database provider test the conformance registry covers

inspect_sqlite_database/not-a-database in the target-failure registry runs
the same non-SQLite bytes through the CLI and MCP, asserts the malformed
target facts and checks the selected file is unchanged.

* feat(errors)!: make failure_kind the identifier and derive code and retry from it

Apply the owner review on #14239 to the TargetFailure model:
- remove details.format_failure; failure_kind is the only identifier;
- give integrity, conflict and io their own codes
  (target_integrity_mismatch, input_conflict, host_io_failed) and derive
  inventory malformed, truncated and unsupported codes from the same table;
- add a retry hint (none, backoff, after_change) derived from the kind,
  with io refined by its transient errno fact; retryable stays the
  unchanged-retry flag and is true exactly for backoff;
- rename the limit-cut result code and category truncated to partial;
- drop cancelled and resource from the target kinds and spell
  identifiers in American English (unrecognized);
- return a target failure a tool handler throws as a projected isError
  result instead of letting the SDK flatten it to text.

BREAKING CHANGE: details.format_failure is removed (read
details.failure_kind). The truncated result code and category are now
partial. Target integrity failures report target_integrity_mismatch,
host read failures host_io_failed and disagreeing inputs input_conflict.
Inventory operations (inventory_artifact, inspect_artifact,
extract_artifact and the other inventory callers) report truncated
container bytes as unsupported_target. Every target failure carries a
top-level retry hint.

* test(sqlite): expect a malformed target for non-database bytes in the CLI suite

* fix(artifacts): keep changed-file short reads, invalid offsets and EOF declarations apart

PyInstaller reads inside the measured size, and .NET bundle manifest
refills, now raise read-coverage integrity on a zero-byte read instead of
truncated. A .NET bundle field and a Godot PCK directory entry that extend
past the file are truncated (with offset and extents) instead of
malformed. An absent or invalid ASAR packed offset is malformed; only a
valid range past the archive is truncated. The .NET manifest string
offset is reported in file coordinates.

* fix(pwntools): report a short ELF header as a truncated target

The layout and recorded-crash workers raise a distinct truncated reason
when the file ends inside the ELF identification or header, and the
decoder projects it as failure_kind truncated instead of inferring it
from the message.

* fix(errors)!: report managed coverage gaps and IL2CPP pair conflicts as target failures

Managed readers interpret an issue code once, in managedIssueTargetFailure:
a coverage gap is an unsupported target, every other rule violation is a
malformed target, and the inventory metadata status is derived from that
same fact. managedInspectionTargetFailure now returns only
AnalysisTargetFailureError.

An IL2CPP binary that parses but does not link to its metadata is a
conflict target failure that lists both inputs and blames neither, in
place of an invalid_request with two issue entries. Metadata version 108
is an unsupported target. The CLI spells each conflict input's field by
the command's option name.

BREAKING CHANGE: inspect_managed_artifact, inspect_managed_members,
inspect_managed_native_boundaries and the managed comparison operations
report unsupported metadata or signature forms as an
AnalysisTargetFailureError (failure_kind unsupported, format pe-cli,
field, offset) instead of a bare unsupported target. inspect_il2cpp_metadata
reports a binary/metadata pair that does not link as code input_conflict
with failure_kind conflict and details.inputs, instead of invalid_request
with details.issues, and metadata version 108 with failure_kind
unsupported.

* fix(artifacts): verify the carrier before blaming a short read on the bytes

The NTFS $MFT decoder, positional members (FIT, uImage, Bun, Deno) and
.NET bundle members now re-verify the source before reporting a short
stream as malformed, so a file that changed during the read reports the
change. The truncation site builds the model's measured extent.

* fix(errors)!: report inventory refusals as target failures of the selected path

An inventory, inspection or extraction refused damaged or unsupported
container bytes as an ArtifactOperationError whose reason repeated the
format owner's kind. It carried no path or retry hint, so the conformance
registry could not express container cases.

translateArtifactFailure now takes the selected path and returns the
reader's TargetFailure as an AnalysisTargetFailureError. The malformed,
truncated and unsupported reasons, their classification rows and their
presentation branch are deleted from ArtifactOperationError. Readers'
unsupported refusals carry their format facts through unsupportedArtifact.

Container cases move into the conformance registry, which now opens the
target first for session tools such as inspect_artifact.

BREAKING CHANGE: inventory_artifact, inspect_artifact, extract_artifact and
the bundle readers report a refused container as a target failure of
details.path with a top-level retry. details.reason is the owner's
description and details.detail is removed.

* docs(il2cpp): describe pair conflicts as input_conflict with both inputs

* docs(android): name unsupported_target for truncated boot image structures

* fix(errors)!: report a target that changed during the read as failure_kind changed

Inventory integrity failures whose check means the target moved under the
read (container, member and unpacked-entry identity, read coverage,
traversal coverage) now take the model's changed projection: code
artifact_changed, retry backoff and details.failure_kind changed. A
selected target that no longer matches the one the session admitted gets
its own admitted-identity check and keeps its reopen recovery.

BREAKING CHANGE: inventory_artifact, inspect_artifact, extract_artifact and
the other inventory operations report a target that changed during the
read as artifact_changed (retryable, failure_kind changed) instead of
artifact_operation_failed. Admission-identity refusals report
integrity_check admitted-identity instead of container-identity.

* test(artifacts): raise the cleanup fixture's decode refusal with its format facts

* fix(errors)!: report unsupported and unrecognized targets on the TargetFailure model

AnalysisUnsupportedTargetError carried a free-text reason and remediation
beside the TargetFailure model, so unsupported refusals had no format,
failure_kind or retry hint, and their recovery was prose written at each
producer.

The class is deleted. Producers raise unsupportedTarget or
unrecognizedTarget with the owner's format, and consumers read
targetFailureOfKind. The projection table renders the recovery and names
the operations the owner lists in related.operations. The foreign-bytes
identity loop moves into the conformance registry.

BREAKING CHANGE: unsupported and unrecognized targets report
failure_kind, format and retry. Their remediation comes from the
target-failure table; producer-written remediation sentences are folded
into details.reason or replaced by details.related_operations.

* test(artifacts): expect admitted-identity for selections replaced before admission

A selected source replaced before admission fails the admitted-identity check rather than container-identity since the changed/admitted split.

* test(go): name the fixture and result when an MZ carrier is not refused through MCP

* style: format the migrated target-failure tests

* test(errors): expect the PE readers' native-binary format label for foreign bytes

* fix(cli)!: spell a target failure's recovery with CLI commands and options

The target-failure recovery named MCP tools even when the CLI printed it,
and it could not name another provider. The projection table now renders
the owner's alternative operations and providers through an adapter
spelling: MCP by tool name and open_binary argument, the CLI by command
and --provider. The CLI output layer re-renders only the table's own text,
so appended guidance is kept.

BREAKING CHANGE: CLI target-failure remediation names commands (for
example `rea inspect-plist`) instead of MCP tool names, and errors gain
details.related_providers when the owner names a provider.

* test(verify): expect target failures for damaged ELF, core and EVM inputs in real-provider verifiers

The binary-layout, recorded-crash and EVM verifiers still expected invalid_input for malformed or truncated selected bytes. The pwntools and EVM adapters now report those as unsupported_target with failure_kind; a missing path remains invalid_input.

* test(web): expect the partial code for a refused source-map admission

The limit-cut code is partial; this Windows-lane test arrived from main with the old truncated spelling.

* fix(workers)!: name malformed worker replies by the model's kind (#14292)

* fix(workers)!: name malformed worker replies by the model's kind

The pwntools, EVM, UEFI LZMA, source-map and historical-capture workers
replied with reason "format" for bytes that break their format, a second
vocabulary for the TargetFailure kind. The workers and their reply schemas
now use "malformed" at the source, including the pwntools Python bridge
and its tests. pwndbg never sent "format", so its schema drops it.

The pwntools decoder maps the worker's malformed and truncated replies to
the target failure of the same kind in one branch.

BREAKING CHANGE: worker reply reason "format" is renamed "malformed" in
the pwntools, EVM, UEFI LZMA, source-map and capture decoder protocols.

* test(go): expect loader-equivalent PE header facts in the MZ diagnostics (#14293)

#14253 made the static PE readers read the optional header at its fixed
offsets and admit a declared directory count below 16, as the Windows
loader does. The Go MZ diagnostic fixtures still expected the older
refusals, so inspect_go_binary MCP and CLI diagnostics failed on main.
A short SizeOfOptionalHeader with an unknown magic at the fixed offset
is now an unsupported optional header, and a PE declaring one data
directory is admitted and keeps its build information, which the MCP
test now asserts.

* fix(tests): damage Deno PE resource framing the loader-equivalent reader reads

#14253 walks resource trees at their RVA whatever the directory Size
declares, so shrinking Size no longer made the 65,535-language table
malformed and the case reported the entry allowance instead. Point the
type directory's entry at a language directory outside the file-backed
resource bytes: its header cannot be read, which the reader reports as
malformed before counting rows against the allowance.

* test(go): check build information in a one-directory PE32 fixture (#14303)

* test(pe): distinguish unsupported DOS input from truncated input (#14302)

* ci: measure portable runner time for recorded selection predictions (#14304)

* ci: validate workflow anchors with actionlint 1.7.12 (#14298)

* ci: wait for static checks before broad PR test shards (#14299)

* ci: validate workflow anchors with actionlint 1.7.12

* ci: wait for static checks before broad PR test shards

* ci: record affected-test predictions above the live cutoff (#14300)

* ci: compare frozen selections with observed test failures (#14301)

* chore(deps): bump markdownify from 1.2.3 to 1.2.4 in /website (#14227)

Bumps [markdownify](https://github.com/matthewwithanm/python-markdownify) from 1.2.3 to 1.2.4.
- [Release notes](https://github.com/matthewwithanm/python-markdownify/releases)
- [Commits](https://github.com/matthewwithanm/python-markdownify/compare/1.2.3...1.2.4)

---
updated-dependencies:
- dependency-name: markdownify
  dependency-version: 1.2.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump rcssmin from 1.2.2 to 1.3.0 in /website (#14229)

Bumps [rcssmin](https://github.com/ndparker/rcssmin) from 1.2.2 to 1.3.0.
- [Changelog](https://github.com/ndparker/rcssmin/blob/master/CHANGES)
- [Commits](https://github.com/ndparker/rcssmin/compare/1.2.2...1.3.0)

---
updated-dependencies:
- dependency-name: rcssmin
  dependency-version: 1.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix(ci): retry recorded crash dependency acquisition without stale index cache (#14076)

Co-authored-by: ShuaixinHuang <[email protected]>

* ci: publish the portable build cache only for selected consumers (#14307)

* ci: run the verified actionlint release binary (#14309)

* chore(deps): bump pyyaml from 6.0.3 to 6.0.4 in /website (#14228)

Bumps [pyyaml](https://github.com/yaml/pyyaml) from 6.0.3 to 6.0.4.
- [Release notes](https://github.com/yaml/pyyaml/releases)
- [Changelog](https://github.com/yaml/pyyaml/blob/6.0.4/CHANGES)
- [Commits](https://github.com/yaml/pyyaml/compare/6.0.3...6.0.4)

---
updated-dependencies:
- dependency-name: pyyaml
  dependency-version: 6.0.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* refactor(views): reuse invalid-view results and row selectors (#14314)

* refactor(domain): share record and graph parsing across input paths (#14321)

* ci: shallow-checkout the classifier for qualification runs (#14312)

* refactor(tests): consolidate repeated CLI capture and fixture construction (#14311)

* refactor(tests): consolidate repeated CLI capture and fixture construction

* test(cli): keep overlapping schema and help cases in their existing PR

* refactor(application): consolidate configuration and observation helpers (#14322)

* refactor(application): consolidate configuration and observation helpers

* refactor(config): leave optional launch parsers to their existing change

* refactor(tooling): share verifier fixture and lint helpers (#14318)

* refactor(tooling): share verifier fixture and lint helpers

* test(clients): retain tool messages in verifier model substitutes

* build(deps): bump write-file-atomic from 7.0.0 to 8.0.0 (#8134)

* perf(nuget): stream .nupkg ZIP over FileHandle instead of buffering full archive (#13835)

* perf(nuget): stream .nupkg ZIP over FileHandle instead of buffering full archive

Closes #13834

* fix(nuget): check artifact stability after format rejection

* refactor(kuna): extract KunaSingleFunctionCache from KunaSessionClient (#13863)

Closes #13862

* perf(har): reuse normalized Base64 for retained response bodies (#13847)

Co-authored-by: hhang <[email protected]>

* refactor(application): migrate 7 standalone format services onto executeArtifactInspection (#13861)

Closes #13860

* refactor: prune 5 redundant single-call wrapper modules (#13807)

* refactor: prune 5 redundant single-call wrapper modules

* chore(ci): remove deleted providerEnvironment.ts from Stryker and CI scope configs

* fix(ci): retarget provider environment mutation coverage

* refactor(application): migrate 3 remaining artifact services onto executeArtifactInspection (#13867)

* refactor(rizin): extract RizinDebugEvidence from RizinDebugSessionManager (#13823)

* refactor(rizin): extract RizinDebugEvidence from RizinDebugSessionManager

* refactor(rizin): remove unused evidence imports

* fix(ci): follow extracted Rizin evidence in mutation checks

* docs: codify pagination, schema-flatness, DDIA, and flat-ownership guidance in tool-design docs and skills (#13865)

* 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

* feat(frida): add optional limit and offset paging to list_frida_processes (#13854)

* 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

* refactor(application): unify 5 pass-through analysis services into ProviderOperationService (#13856)

Closes #13855

* refactor(cli): extract contractCommandRunners from contractCommand (#13869)

* feat(tools): add optional limit and offset paging to find_xrefs_to_name (#13858)

* feat(tools): add optional limit and offset paging to find_xrefs_to_name

Closes #13857

* fix(tools): preserve xref discovery coverage in paged results

* feat(adb): add optional limit and offset paging to list_adb_features and list_adb_services (#13873)

* feat(adb): add optional limit and offset paging to list_adb_features and list_adb_services

* test(adb): verify feature and service paging guidance

* refactor(cli): extract contractCliSchemaProjection and contractCliDocumentDescription (#13871)

* fix(dwarf): reject PE long section names when PointerToSymbolTable is zero (#13889)

* perf(macho): streamline legacy rebase run marking (#13881)

* perf(erlang): stream BEAM IFF inspection over FileHandle (#13886)

* perf(erlang): stream BEAM IFF inspection over FileHandle

* fix(erlang): retain only decoded BEAM code headers

* refactor(kuna): extract KunaSessionEvidence from KunaSessionClient (#13879)

* refactor(kuna): extract KunaSessionEvidence from KunaSessionClient

* refactor(kuna): remove stale session evidence imports

* fix(objc): preserve class import reader failures (#13892)

* refactor(server): extract desktop build tool bindings (#13891)

* refactor(server): collapse inspect bindings and extract desktopBuildToolBindings

* fix(mcp): restore contract-checked inspect bindings

* fix(macho): preserve legacy bind stream bounds and target scope (#13874)

* fix(macho): preserve legacy bind stream bounds and target scope

* fix(macho): report unresolved legacy bind targets in coverage

* test(macho): consolidate legacy bind target coverage

* perf(pe): stream PE certificates over FileHandle (#13884)

* perf(pe): stream PE certificates over FileHandle

* fix(pe): share certificate table admission across readers

* perf(apple-ips): stream Mach-O join headers over FileHandle (#13894)

* perf(apple-ips): stream Mach-O join headers over FileHandle

* fix(apple-ips): retain only verified Mach-O joins

* perf(objc): streamline exact class identity projection (#13897)

* perf(pe): stream PE resource inspection over FileHandle (#13899)

* perf(pe): stream PE resource inspection over FileHandle

* fix(pe): bound streamed icon-group reads and restore lifetime coverage

* perf(swift): streamline symbol inventory classification (#13902)

* perf(apk-signature): stream APK signature inspection over FileHandle (#13877)

* perf(apk-signature): stream APK signature inspection over FileHandle

* fix(apk-signature): preserve bounded reads and file identity

* fix(apk-signature): handle deflate EOF and repair verifier bounds

* fix(apk-signature): recognize internal pipeline cancellation at EOF

* perf(release-exposure): stream PE CodeView/PDB inspection over FileHandle (#13896)

* perf(release-exposure): stream PE CodeView/PDB inspection over FileHandle

* fix(release-exposure): share and bound PE CodeView parsing

* refactor(server): simplify contractToolBindings types and handler dispatch (#13912)

* perf(macho): streamline slice selection diagnostics (#13905)

* fix(macho): preserve retained magic from valid FAT ranges (#13910)

* perf(pe): stream PE load-config inspection over FileHandle (#13901)

* perf(pe): stream PE load-config inspection over FileHandle

* fix(pe): admit empty section tables and batch TLS callback reads

* perf(elf): stream ELF note inspection over FileHandle (#13904)

* perf(elf): stream ELF note inspection over FileHandle

* fix(elf): validate full header extents and reuse aliased note reads

* fix(macho): keep header reads inside declared slices (#13913)

* perf(v8): stream V8 code cache inspection over FileHandle (#13907)

* fix(macho): correct encryption range VM mapping (#13918)

* perf(elf): stream kernel module inspection over FileHandle (#13917)

* perf(elf): stream kernel module inspection over FileHandle

* test(elf): exercise streamed kernel module reads and finalization

* refactor(providers): share offlineArtifactFailureDialect across offline providers (#13921)

* test(macho): consolidate fixed header and extent proofs (#13919)

* perf(macho): bound positional command string probes (#13925)

* refactor(server): replace server.close and onclose monkey-patching with lifecycle hooks (#13882)

* refactor(server): replace server.close and onclose monkey-patching with lifecycle hooks

* fix(mcp): keep deferred runtime cleanup out of protocol close

* test(mcp): verify materialized runtime hooks close once

* fix(cli): defer artifact AnalysisView loading until requested

* test(macho): consolidate native path framing proofs (#13926)

* perf(elf): stream ELF dependency inspection over FileHandle (#13915)

* perf(elf): stream ELF dependency inspection over FileHandle

* fix(elf): share dependency hash parsing and bound string reads

* perf(elf): reuse cached prefixes for short dependency names

* refactor(server): extract debugger and instrumentation tool bindings (#13909)

* refactor(server): extract debugger and instrumentation tool bindings

* test(server): track extracted debugger bindings in reverse tools coverage

* fix(cli): defer artifact AnalysisView loading until requested

(cherry picked from commit e58fda3f2618b35bde5990c9e114f57f9d43f65d)

* refactor(macho): use binary facts for native diagnostic admission (#13929)

* perf(macho): streamline native export inventory merging (#13932)

* perf(elf): stream ELF debug-link inspection over FileHandle (#13928)

* perf(elf): stream ELF debug-link inspection over FileHandle

* perf(elf): reuse section name bytes across debug-link readers

* perf(pe): stream PE import inspection over FileHandle (#13924)

* perf(pe): stream PE import inspection over FileHandle

* perf(pe): reuse import read windows and cover positional boundaries

* fix(elf): preserve load segment range diagnostics

* test(macho): consolidate lipo field and native slice proofs (#13937)

* perf(elf): stream ELF unwind-range inspection over FileHandle (#13931)

* perf(elf): stream ELF unwind-range inspection over FileHandle

* fix(elf): bound unwind name retention and refill frame metadata

* test(macho): make slice cancellation and cleanup ordering deterministic (#13944)

* test(macho): make slice cancellation and cleanup ordering deterministic

* test(macho): join slice reads before restoring test spies

* refactor(providers): adopt offlineArtifactFailureDialect in BEAM, V8, NuGet, and LNK providers (#13936)

* refactor(providers): adopt offlineArtifactFailureDialect in BEAM, V8, NuGet, and LNK providers

* fix(nuget): let integrity and cancellation fall through to classifyProviderFailure

* perf(macho): defer segment geometry until lazy metadata needs it (#13949)

* test(macho): consolidate classic and modern dylib encoding proofs (#13952)

* perf(native): stream binary hardening inspection over FileHandle for ELF, PE, and Mach-O (#13934)

* perf(native): stream binary hardening inspection over FileHandle for ELF, PE, and Mach-O

* fix(native): bound hardening note and symbol reads

* test(native): verify bounded hardening reads through positional readers

* refactor(server): extract browser, Electron, and JavaScript runtime tool bindings (#13939)

* refactor(server): extract browser, Electron, and JavaScript runtime tool bindings

* test(ci): select browser checks for extracted bindings

* refactor(providers): adopt offlineArtifactFailureDialect in PE, ELF, and Apple IPS providers (#13954)

* test(macho): consolidate lazy payload reuse and capacity proofs (#13958)

* refactor(artifacts): extract source-map detection and occurrence path helpers from ReleaseExposureReader (#13961)

* perf(elf): stream kernel build-config inspection over FileHandle (#13942)

* perf(elf): stream kernel build-config inspection over FileHandle

* fix(elf): reuse kernel marker windows and report compressed input limits

* fix: preserve kernel config identity on cleanup failure

* test(macho): consolidate command framing and admission proofs (#13964)

* test(macho): consolidate command framing and admission proofs

* test: assert Mach-O command failure facts

* perf(dwarf): stream DWARF compile-unit inspection over FileHandle for ELF, PE, and Mach-O (#13948)

* perf(dwarf): stream DWARF compile-unit inspection over FileHandle for ELF, PE, and Mach-O

* fix: bound positional DWARF reads and share Mach-O selection

* test: verify positional Mach-O command admission

* refactor(providers): adopt offlineArtifactFailureDialect in NativeInitializers, Go, Rust, and ElfUnwind providers (#13966)

* refactor(providers): adopt offlineArtifactFailureDialect in BinaryHardeningProvider and PeBinaryFailure (#13970)

* refactor(server): extract session, investigation, and workflow tool bindings (#13968)

* perf(ntfs): stream MFT record decoding in O(recordBytes) memory (#13957)

* perf(ntfs): stream MFT record decoding in O(recordBytes) memory

* fix: resolve streamed MFT links through bounded positional reads

* refactor(providers): adopt offlineArtifactFailureDialect in KernelBuildConfigProvider (#13973)

* refactor(adb): extract read-only shell inspection operations from AdbProvider (#13975)

* refactor(elf): remove obsolete debug-link buffer parsers (#13971)

* perf(native): stream PE and ELF export-table inspection over FileHandle (#13951)

* perf(native): stream PE and ELF export-table inspection over FileHandle

* fix: share export interpretation across buffered and positional reads

* refactor(providers): adopt offlineArtifactFailureDialect in DwarfUnitsProvider (#13977)

* perf(elf): read only needed debug-link section bytes (#13980)

* refactor(providers): adopt offlineArtifactFailureDialect in NativeExportsProvider (#13982)

* feat(analysis-view): page retained UEFI firmware maps

Add the uefi-firmware view for inspect_uefi_firmware Evidence. The summary returns volume, file and section counts with FFS type, section type and volume depth tallies. Pages select volumes, files, sections, unknown regions, integrity records and PSP tables or candidates. Files match exact GUIDs, user-interface names, type names and owning volume; sections match their owning file and type. Rows keep the original flattened index plus the offset and source stream that extraction targets.

Co-Authored-By: gensokyo-dev <[email protected]>

* perf(uefi)!: summarize firmware inspection by default over MCP

A complete map of a 4 MiB OVMF image is about 514 KB of structured content, which exceeds client result limits. MCP inspect_uefi_firmware now retains the complete map and returns its summary unless the caller passes detail complete. An optional view returns the first uefi-firmware page in the same call; later pages use inspect_analysis_view. The one-shot CLI command still returns complete Evidence.

BREAKING CHANGE: MCP callers that need every volume, file and section inline must pass detail: "complete" to inspect_uefi_firmware.

Co-Authored-By: gensokyo-dev <[email protected]>

* docs(firmware): describe UEFI summaries and views

Co-Authored-By: gensokyo-dev <[email protected]>

* perf(rust): stream Rust binary inspection over FileHandle for ELF, PE, Mach-O, and WebAssembly (#13979)

* perf(rust): stream Rust binary inspection over FileHandle for ELF, PE, Mach-O, and WebAssembly

* fix(rust): bound positional dependency and name reads

* refactor(rust): reuse strict UTF-8 validation

* fix(elf): retain verified debug-link evidence through descriptor finalization (#13986)

* refactor(elf): prune superseded whole-buffer parseKernelBuildConfig wrapper (#13996)

* refactor(dwarf): prune superseded whole-buffer locateDwarfSections wrapper (#13993)

* refactor(elf): retire obsolete note buffer parsers (#13995)

* fix(gpu): mark conflicting CUDA shared sections partial and clear register provenance (#13963)

* refactor(artifacts): extract bounded member I/O helpers from ReleaseExposureReader (#13990)

* refactor(adb): extract package and app lifecycle operations from AdbProvider (#13988)

* refactor(server): extract offline inspection tool bindings from serviceToolBindings (#13984)

* refactor(elf): retire the obsolete unwind buffer parser (#14007)

* refactor(uninstall): extract registration-removal and item-collapse helpers from Uninstall (#14006)

* refactor(rizin): extract NUL-frame reader and wait helpers from RizinDebugSessionManager (#14001)

* refactor(rizin): extract NUL-frame reader and wait helpers from RizinDebugSessionManager

* fix(ci): track extracted Rizin frame helpers

* refactor(native): extract NativeAotPeImage from nativeAotPe (#13998)

* chore(guards): declare desktop build-computer entries and clear the entry baseline (#14011)

* perf(go): stream Go binary inspection over FileHandle for ELF, PE, and Mach-O (#14003)

* perf(go): stream Go binary inspection over FileHandle for ELF, PE, and Mach-O

* fix(go): share parsing and bound positional string reads

* perf(go): reuse target reads under the scan budget

* refactor: remove internal re-export shims and guard against new ones (#14009)

* refactor: remove internal re-export shims and guard against new ones

* fix(ci): catch namespace module re-exports

* perf(elf): reuse proven symbol suffixes in unwind lookup (#14014)

* refactor(cli/server): break remaining module-layer cycles (#14013)

* refactor(cli,server): break remaining module-layer cycles

* fix(ci): follow relocated CLI entry points

* refactor: remove retired internal reader exports

* fix(ci): track configuration inputs across cached checks (#14015)

* fix(ci): close static-check cache gaps and prune stale settings (#14017)

* fix(ci): close static-check cache gaps and prune stale settings

* chore(ci): remove unused Actionlint runner label

* fix(ci): rerun TODO scans against the host interpreter

* fix(elf): retain verified artifact reports through descriptor finalization

* test(elf): assert retained reports during descriptor finalization

* refactor(elf): retire the test-only dependency buffer driver

* test(elf): join the paused dependency parser on failure

* refactor(elf): consolidate kernel module checks on positional reads

* fix(elf): preserve kernel config framing and location provenance (#14021)

* perf(elf): bound kernel module signature digest reads (#14024)

* fix(elf): retain verified kernel reports through descriptor finalization (#14022)

* refactor(go): consolidate native parser checks on positional reads (#14027)

* feat(uefi): record the owning FFS file of extracted payloads

Each published extraction file now names the FFS file whose body or section produced it, with its GUID, user-interface name, type and logical path. Decoded streams resolve through their carrier section. Callers no longer need to match output paths against a separate inspection to find which driver a file belongs to.

Co-Authored-By: gensokyo-dev <[email protected]>

* feat(analysis-view): page retained UEFI extraction manifests

Add the uefi-extraction view for extract_uefi_firmware Evidence. The summary returns file, byte, derivation and gap counts, source, media-type and gap-kind tallies, and a bounded preview of the first published files. Pages select files by exact media type, source and owning FFS GUID, name or type, in publication or size order, plus derivations and gaps by kind. Counts and the size order are built once per retained report.

Co-Authored-By: gensokyo-dev <[email protected]>

* perf(uefi)!: summarize firmware extraction by default over MCP

A whole-image extraction of a 4 MiB OVMF image lists 560 files in about 553 KB of structured content, which exceeds client result limits. MCP extract_uefi_firmware now retains the complete manifest and returns its summary unless the caller passes detail complete. Targeted extractions fit in the summary's file preview. An optional view returns the first uefi-extraction page in the same call; later pages use inspect_analysis_view. The one-shot CLI command still returns complete Evidence.

BREAKING CHANGE: MCP callers that need every published file inline must pass detail: "complete" to extract_uefi_firmware.

Co-Authored-By: gensokyo-dev <[email protected]>

* docs(firmware): describe UEFI extraction summaries and owners

Co-Authored-By: gensokyo-dev <[email protected]>

* fix(uefi): attribute a refused output directory to output_directory

An existing output directory was reported as an invalid path issue, which points callers at the firmware image instead of the directory they chose. Route destination refusals through outputDirectoryAdmissionRefusal, as firmware extraction already does.

Co-Authored-By: gensokyo-dev <[email protected]>

* fix(go): reject contradictory module coverage in retained views (#14029)

* fix(go): retain verified reports through descriptor finalization (#14026)

* perf(analysis-view): page unfiltered Go and Rust metadata directly (#14030)

* refactor(rust): consolidate binary parser checks on positional reads (#14033)

* feat(native): report the stored RVA of PE exports

PE export rows reported only the preferred-base virtual address, which the parser derives from the export-address-table RVA. Callers asking for an RVA had to recover the image base through other tools. Each row now carries the RVA as the slot stores it; a forwarder's RVA locates its forwarder string.

Co-Authored-By: gensokyo-dev <[email protected]>

* feat(analysis-view): filter native exports and ELF dependencies by name prefix

Retained native-exports and elf-dependencies views matched only exact names, so counting the exports or imports in one namespace meant paging every row. Add name_prefixes to the exports collection and to every named elf-dependencies collection. A prefix filter combines with exact names, and coverage.total counts every match, so limit 1 returns a count. ELF export prefixes follow the exact-name identity rules: non-ASCII names compare their UTF-8 bytes, and names that are not valid UTF-8 never match. The tool descriptions now name the filter.

Co-Authored-By: gensokyo-dev <[email protected]>

* docs(native): describe export RVAs and name-prefix views

Co-Authored-By: gensokyo-dev <[email protected]>

* fix(analysis-view): read older UEFI extraction Evidence and drop filter-count ceilings

extract_uefi_firmware rows gained a required ffs_file, so extraction Evidence saved before that field failed to parse in retained views. The field is now optional when reading: the extractor still always records it, and an unrecorded owner matches no owner filter. UEFI view filters also capped each list at 64 values without a format, protocol or resource reason; overlapping filters cannot be split into separate requests without miscounting, so the cap is removed. MCP input-element admission still bounds every request.

Co-Authored-By: gensokyo-dev <[email protected]>

* fix(python): validate marshal coverage and consolidate pyc tests (#14036)

* perf(rust): reuse the Wasm section probe for custom name lengths (#14035)

* refactor(process): share the abortable command-turn wait between GDB and Rizin (#14042)

* fix(erlang): require complete positional BEAM reads (#14045)

* fix(rust): retain verified reports through descriptor finalization (#14034)

* test(process): consolidate symlink snapshot captures (#14051)

* fix(domain): make partial count switches exhaustive for typed lint (#14048)

Deep static checks on main fail typed lint (switch-exhaustiveness-check) in three counting switches introduced by recent single-pass summary refactors. Name the unmatched 'none' basis explicitly and give the graph/AST switches a documented default.

* refactor(server): extract ForwardingTransport base class for MCP Transport wrappers (#14050)

* fix(devicetree): validate retained report ranges and coverage (#14066)

* fix(ci): fall back to Ubuntu Azure archive in recorded-crash container (#14061)

The Ubuntu 24.04 recorded-crash container repeatedly timed out at 150s refreshing APT indexes from archive.ubuntu.com and security.ubuntu.com on main. Split Noble's 150s refresh budget into a 75s initial attempt followed by a 75s retry against http://azure.archive.ubuntu.com/ubuntu (matching ubuntu-archive's Noble Azure fallback while keeping http:// before ca-certificates is installed), and leave Debian unchanged at 150s.

* fix(erlang): retain verified BEAM reports through descriptor finalization (#14062)

* perf(uefi): skip verified erased padding in NVRAM scans (#14069)

* test(uefi): consolidate volume ownership and checksum proofs (#14070)

* fix(ci): run type-aware lint on changed files in fast PRs (#14068)

* fix(v8): preserve verified code cache results and require exact payload reads (#14067)

* refactor(config): return Result for ConfigurationError in IdaConfiguration and KiloClientLocation (#14053)

* refactor(config): return Result for ConfigurationError in IdaConfiguration and KiloClientLocation

* fix(config): return Kilo file-probe failures through Result

kiloGlobalLocation returned inline-configuration failures as Result but kept
throwing the shared probe's ConfigurationError, and kiloLayeredLocation no
longer caught it: an unreadable Kilo folder rejected resolveSupportedClients
for every client instead of staying a Kilo row failure. Convert probe
failures at the same Result boundary and register the counted catch.

Validation: a new boundary test (regular file at Kilo's config root) fails
without the fix and passes with it; kiloClientLocation, clientLifecycle,
mcpAddClientLifecycle and registration catalog suites pass; check:fast
passes.

* fix(ida): preserve the size rejection when descriptor close fails

The 64 KiB rejection became a completed outcome holding a rejected Result,
so the cleanup-failure handler replaced it with generic close guidance.
Read the rejection from the completed outcome when composing the cleanup
error, covering both the admission and growth size checks. Restore the
close spy leaked by the existing denial test, which the new cases exposed.

Validation: a new it.each denies close after each size check, asserts the
64 KiB message plus retained-cleanup release, and fails without the fix;
the IdaConfiguration suite and check:fast pass.

* refactor(uefi): exercise only the framed LZMA worker (#14072)

* fix(uefi): preserve verified source identity through descriptor finalization (#14073)

* refactor(config): return Result from resolveKiloRegistrationWorktree (#14055)

* refactor(config): return Result from resolveKiloRegistrationWorktree

* test(config): cover Kilo worktree resolution results

* perf(views): page exact Playwright trace index hits directly (#14031)

Co-authored-by: hhang <[email protected]>

* refactor(domain): compose cleanup dependencies through analysisErrorCleanup helpers (#14064)

* refactor(domain): compose cleanup dependencies through analysisErrorCleanup helpers

* fix(kuna): honor completed project cleanup when wrapping failures

* refactor(domain): one ByteSource representation for streaming parsers (#14044)

* refactor(domain): one ByteSource representation for streaming parsers

* refactor(nuget): adopt ByteSource across NuGet and APK parsers (#14047)

refactor(nuget,apk): adopt ByteSource and drop the NuGet in-memory parse branch

* test(elf): remove obsolete byte source fixture declarations

* refactor: centralize owned finalization and configuration failures (#14071)

* refactor(config): propagate typed configuration failures

* refactor(lifecycle): centralize completion and cancellation

* fix(config): preserve Hermes YAML edit refusal guidance

* fix(reference): preserve file cleanup when directory enumeration fails (#14081)

Directory enumeration can list a file and then fail with EIO. If that
file read is cancelled and its close fails, replacing the cancelled
result with success dropped the still-open file. Keep the directory
read failure primary and merge the file's remaining resource into both
cleanup-combination returns.

Co-authored-by: Cursor Agent <[email protected]>

* fix(ci): bind timing evidence to its workflow attempt (#14080)

Co-authored-by: ShuaixinHuang <[email protected]>

* fix(ci): trace test dependencies through static template imports (#14079)

Co-authored-by: ShuaixinHuang <[email protected]>

* fix(ci): retain cache generations per restore version (#14084)

* fix(ci): retain cache generations per restore version

* test(ci): align inherited Mach-O assertion with main

---------

Co-authored-by: ShuaixinHuang <[email protected]>
Co-authored-by: ShuaixinHuang <[email protected]>

* fix(ci): use retry start times in PR health reporting (#14085)

* fix(ci): use retry start times in PR health reporting

* test: cover the reviewed CI boundary cases

---------

Co-authored-by: ShuaixinHuang <[email protected]>
Co-authored-by: ShuaixinHuang <[email protected]>

* perf(javascript): reuse completed CommonJS module-source queries

Static and semantic analysis ask whether the same callee or receiver is a CommonJS module object or require delegate at the same read site several times; a minified 1.9 MB webpack main bundle repeated about half of its 92,374 queries. Once member-mutation facts are complete, an identical query reuses its answer and re-records the resource limits the first walk reached. The answers are cleared with the semantic value caches and require-delegate writes, which every state change that can alter them already invalidates. The same bundle runs 48,447 walks instead of 92,374, and static and semantic results are unchanged on all 43 sources of the measured application.

Co-Authored-By: gensokyo-dev <[email protected]>

* perf(javascript): skip captured-selection normalization without captures

Most loader sources carry no captured selections, yet normalization allocated a map and sorted an empty array for each one before returning nothing. Return that result directly.

Co-Authored-By: gensokyo-dev <[email protected]>

* perf(javascript): build loader context keys without JSON serialization

Every module-source work item serialized its read site and capture boundaries to JSON to key its context. Build the same key by concatenation; absent and null positions still share a key, and absent captures still differ from an empty capture list.

Co-Authored-By: gensokyo-dev <[email protected]>

* perf(javascript): reuse preload-discovery static checkpoints in the normal pass

When any .js source belongs to a module package, preload discovery statically analyzes every source and the normal pass analyzes each one again. The worker now keeps the complete static checkpoint discovery computed, keyed by container, path, text digest, package type, precision and member-mutation allowance, and the normal pass of the same source writes that checkpoint instead of recomputing it. Static analysis is deterministic for those inputs, so the parent reads, validates and charges byte-identical facts. A discovered preload whose package type changes, a source discovery could not checkpoint, and a replaced worker all recompute. Retained checkpoints are consumed once and bounded to one eighth of the worker's V8 heap limit.

Co-Authored-By: gensokyo-dev <[email protected]>

* perf(javascript): park the worker after preload-discovery allowance refusals

A scoped worker closed instead of parking after any failed analysis, so one member-mutation refusal during preload discovery discarded the process and every static checkpoint it retained. Discovery skips such a source and the normal pass analyzes and reports it again, and the worker reports the refusal while staying healthy. A discovery checkout whose failures are all member-mutation refusals now parks if canReuse still holds. Other failures, and any failure in a normal analysis, still close the worker.

Co-Authored-By: gensokyo-dev <[email protected]>

* perf(javascript): keep the worker reusable after a final discovery refusal

The worker's reuse state cleared its last failure only on success, so a
member-mutation refusal of the last discovered source still closed the
worker and discarded every retained static checkpoint. The worker now
owns the recoverable-refusal rule, and the scope uses the same predicate.

Co-Authored-By: gensokyo-dev <[email protected]>

* perf(javascript): skip checkpoint encoding without reuse capacity

Runtimes without a reported heap limit (Bun) retain nothing, yet discovery
still encoded every complete checkpoint before checking capacity. Check the
remaining capacity first.

Co-Authored-By: gensokyo-dev <[email protected]>

* feat(analysis-view): select inventory occurrences by artifact kind

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 <[email protected]>

* feat(analysis-view): select retained JavaScript facts by property value

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 <[email protected]>

* feat(analysis-view): count distinct retained JavaScript fact values

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 <[email protected]>

* docs(analysis-view): qualify javascript-fact-groups readback to scalar values

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 <[email protected]>

* perf(ghidra): scan defined data for selective string search instead of materializing inventory (#14101)

search_strings now scans getDefinedData directly when the string inventory has not been built, matching before allocating StringFacts and retaining only matches in STRING_ORDER. Sessions that only search no longer pay full inventory materialization and retention in the bridge JVM heap; list operations still build the cached inventory as before.

Refs #13292, #13355. Verified: ghidraBridgeSources (11 tests), javac against Ghidra jars, check:fast, and a real Ghidra 12.2 + JDK 25 probe asserting search-before-list equals search-after-list for regex and insensitive literal queries. No wire or result-order change.

* perf(ghidra): scan procedures for selective search without retaining inventory (#14103)

search_procedures now builds procedure entries without populating procedureInventory when it has not been built yet (buildProcedures extracted from procedures()), so a search-only session does not retain the full procedure inventory in the bridge JVM. Cached path, name index, order (PROCEDURE_ORDER) and matched_aliases output are unchanged. Companion to the search_strings scan in #14101; together they apply the DDIA rule of materializing inventories only for repeated list access, not for one ad-hoc search.

Refs #13355, #13299. Verified: javac against Ghidra 12.2 jars, ghidraBridgeSources 11 tests, and a real Ghidra 12.2 + JDK 25 probe asserting search-before-list deep-equals search-after-list (7 procedure matches, 12 procedures).

* refactor(frida): make inspectStatus async and load the view service lazily (#14108)

FridaInstrumentationService was the last application service statically importing AnalysisViewService for a conditional summary branch, because inspectStatus was synchronous. It is now async (its only production caller, debuggerToolBindings, already runs it inside an async handler), loads AnalysisViewService dynamically only when detail=summary, and otherwise imports only the retention check. Tests updated to await the six call sites; no behavior change.

Refs #13275. Verified: FridaInstrumentationService tests (37), check:fast. Stacks cleanly with #14102, which moves the retention import to AnalysisViewRetention.ts; resolve by taking that import line if both land.

* fix(ida): extend verifier admission check deadline to 90s

The admission check spawns scripts/verify-real-ida.mjs, which imports the
full dist graph before reaching the early admission errors. Under CI shard
load that exceeded the 10s command deadline and failed Test shard (5/12)
on main, while the same sha passed the scheduled run. The sibling verifier
observations check already uses 90s for the same script.

* perf(search): derive literal candidates from regex alternations (#14106)

* perf(search): derive literal candidates from regex alternations

extractRequiredRegexLiteral previously returned undefined for every alternation, so regex search_strings/search_procedures with alternatives paged full IDA inventories and transferred full Hopper inventories for Node-side matching. It now computes, for top-level and required-group alternations, the longest literal every branch guarantees (longest common substring of each branch's required runs) and returns it as the provider candidate; Node still verifies the full ECMAScript regex on candidates, so the candidate remains a zero-false-negative prefilter. A branch-common segment floats inside each branch and is never joined to neighbouring literals.

Refs #13353. Verified: regexLiteralCandidate tests (including the /u and /iu zero-false-negative corpus with new alternation patterns), IdaOperationRunner tests, HopperRegexSearch tests, check:fast with architecture guards.

* fix(search): require two code points for alternation candidates

A single shared code point (e.g. matched|absent -> a) matches nearly every value, so alternation-derived candidates now require at least two code points to be worth a provider round trip; shorter commons fall back to full inventory as before. Single-branch literals keep existing behavior. HopperRegexSearch routing tests pass unchanged.

* fix(search): bound alternation candidate extraction work and nesting

Long disjoint alternatives could spend hundreds of thousands of substring probes on the calling thread, and nested alternation groups recursed once per nesting level. Cap total probes (falling back to the full inventory past the budget) and cap alternation recursion depth, abandoning only the over-deep branch. Tests cover 2000-deep nesting and 1024-char disjoint alternatives.

* refactor(application): move AnalysisViewRetention to a light module and defer view loading in services (#14102)

* refactor(application): move AnalysisViewRetention to a light module and defer view loading in services

AnalysisViewRetention and requireAnalysisViewRetention moved from AnalysisViewService (which pulls the 1.3 MB analysis-view result graph) into AnalysisViewRetention.ts, which depends only on error and Evidence port types. All type-only consumers now import the light module. ApkSignature, Il2cpp and Reverse services load AnalysisViewService dynamically only on the detail=summary branch, and executeArtifactInspection checks retention readiness through the light module and loads the view service only after a successful inspection. No behavior or wire change.

Refs #13275, #13940. Verified: check:fast (typecheck, lint, architecture guards), 93 source tests (AnalysisViewService, Il2cpp, ApkSignature, Reverse), cliStartupImports 10/10 on pinned Node 24.22.1, knip clean. Remaining static importers (ArtifactComparisonEvidence, environment build/state, Frida sync inspectStatus, server bindings) still block a full chunk split and stay in #13275.

* fix(application): recheck cancellation after lazy view imports and guard static view links

An abort arriving while the dynamic AnalysisViewService import was pending still recorded and returned a successful summary. ArtifactInspectionExecution, ApkSignature, Il2cpp and Reverse now recheck the signal after the import (retaining the complete Evidence as the cancelled partial observation) before projecting. Add a counted architecture guard so static AnalysisViewService imports in application services cannot return silently; the baseline records only the known synchronous helpers and Frida path tracked in #14112.

* perf(tests): supervise direct vitest scripts through run-exclusive on POSIX (#14104)

* perf(tests): supervise direct vitest scripts through run-exclusive on POSIX

test:run, test:with-build, test:boundary, test:mcp, test:acceptance, test:integration, test:coverage and test:verbose invoked vitest directly, so an interrupted run could orphan detached provider children outside the owned process group. They now go through scripts/run-vitest.mjs, which wraps Vitest in run-exclusive --unlocked on non-Windows platforms (mirroring run-development-tests.mjs) and invokes Vitest directly on Windows, where source tests must not require the built Job Object artifact. Watch and CI shard scripts are unchanged.

Refs #13357. Verified: launcher smoke run (4 tests passed), check:fast, knip.

* fix(tests): forward stop signals from the vitest launcher to its child

The launcher ignored SIGINT/SIGTERM when wrapped, so a signal sent only to its PID left Vitest and its descendants running. It now always forwards to the child (run-exclusive can only forward signals it receives itself) and reports the tracked signal's exit code (143/130) deterministically. Verified with a manual probe: SIGTERM to the launcher PID during a 60s fixture test exits 143 with the tree stopped; launcher smoke run passes. A nested-supervisor in-process test proved environmentally unstable (the inner Vitest main is killed under nested run-exclusive supervisors) and was not landed.

* perf(contracts): prune only over-depth schema branches instead of reducing whole schemas (#14107)

* perf(contracts): prune only over-depth schema branches instead of reducing whole schemas

A schema whose inlined form exceeded the depth-10 advertised limit fell back to reduceToShallowProperties for the entire tool, erasing enums and nested validation on all root properties. pruneSchemaBeyondDepth now replaces only sub-schemas past the prune depth with type-preserving placeholders (every replacement widens acceptance, so canonical server-side validation is unchanged), and both input and output compaction keep the pruned form as inline when it fits bytes, depth and dialect checks. Two compactInputSchema tests that pinned depth-forces-reduction now pin the pruned-inline contract with the same Ajv/dialect safety assertions.

Refs #13302. Verified: compactInputSchema, compactOutputSchema, toolSchemaMetadata, advertisedInputExamples (59 tests), check:fast, docs:check.

* docs(contracts): refresh advertised schema summary for pruned-inline compaction

Pruned-inline schemas retain patterns (digest, Evidence id and text patterns) that whole-schema reduction dropped on 13 tools; regenerate the committed catalog summary with npm run verify:advertised-schemas -- --update-summary and re-verify clean.

* fix(contracts): make deep-schema pruning widening-safe

Walk schema positions instead of raw JSON, preserve declared integer types, keep branches that fit, return no pruned schema under not/oneOf where widening can reject valid values, and recheck output byte budgets. Add regression coverage for closed objects, unsafe combinators, fitting enums, and nullable integers; refresh advertised summaries.

* fix(contracts): keep untyped deep schemas unconstrained when pruned

Inferring object from properties or array from items narrows an untyped schema, which accepts every JSON value; the placeholder is now always unconstrained when no type is declared. Add an Ajv regression accepting null and nested values through a pruned untyped branch.

* test(contracts): assert pruned untyped schemas at depth 8

The regression accepted values that never reached the replaced node, so
it stayed green for an object placeholder and did not distinguish
branch pruning from whole-schema reduction. Assert the empty schema at
depth 8 and accept null there.

---------

Co-authored-by: Cursor Agent <[email protected]>

* docs(github): require reported verification and factual docs in PR template (#14130)

* docs(github): require reported verification and factual docs in PR template

Record the maintainer checks for running needed validation, limiting
comments to constraints and decisions, and keeping documentation factual.
Mirror that guidance in AGENTS.md where it was not already stated.

* docs(github): assign the PR checklist to the author

Rename Before merge so the PR author completes it before requesting
review, and point the draft-PR note at that section.

* docs(github): confirm root cause and engineering rules on PRs

Add a few author-checklist items for the root cause, owning-boundary
interpretation, retained clea…
@morluto morluto added the bug Something isn't working label Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants