Commit Graph
541 Commits
Author SHA1 Message Date
gensokyo-devandgensokyo-dev ca26f2ac84 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 <342580529+gensokyo-dev@users.noreply.github.com>
2026-11-23 17:41:53 +08:00
gensokyo-devandgensokyo-dev e617a55385 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 <342580529+gensokyo-dev@users.noreply.github.com>
2026-11-23 14:58:56 +08:00
morluto 5817ebb288 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
2026-11-23 01:11:58 -05:00
morluto b565f787cb 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
2026-11-23 00:58:01 -05:00
morluto 88dfad5bb7 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
2026-11-23 00:47:47 -05:00
gensokyo-devandgensokyo-dev 11ac37a42f 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 <342580529+gensokyo-dev@users.noreply.github.com>
2026-11-23 13:12:02 +08:00
morluto 11a7a34dfc 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
2026-11-22 21:46:36 -05:00
morluto 1d4fadceb2 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
2026-11-23 02:44:42 +00:00
morluto 9ec23ad03b 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
2026-11-23 02:28:45 +00:00
morluto f47dbd9351 feat(android): add optional limit and offset paging to search_android_classes (#13846)
* feat(android): add optional limit and offset paging to search_android_classes

Closes #13845

* fix(android): honor larger class search pages

* fix(android): size JADX reads to the requested page

* test(android): separate class paging from Evidence retention
2026-11-22 21:19:46 -05:00
morluto dbd6057454 feat(adb): add optional limit and offset paging to list_adb_packages, list_adb_processes, and list_adb_directory (#13843)
* feat(adb): add optional limit and offset paging to list_adb_packages, list_adb_processes, and list_adb_directory

Closes #13842

* fix(adb): honor larger pages and preserve empty-list coverage

* docs(adb): explain listing pagination and coverage
2026-11-22 21:12:59 -05:00
morluto d0560b1b88 feat(tools): add optional max_depth and max_nodes bounds to get_call_graph and trace_call_path (#13828)
* feat(tools): add optional max_depth and max_nodes bounds to get_call_graph and trace_call_path

* fix(tools): preserve call graph depth warnings through cleanup
2026-11-22 20:53:25 -05:00
morluto f6a83f1fcf fix(contracts/mcp): collapse Evidence wire schemas, project type lists, preserve discover_tools guidance (#13752)
* fix(contracts/mcp): collapse Evidence wire schemas, project type lists, preserve discover_tools guidance

* fix(mcp): preserve borrowed Evidence arrays in advertised schemas

* fix(mcp): retain typed union constraints and clarify tool discovery

* test(mcp): refresh advertised schema summaries

* style(mcp): format compact schema tests
2026-11-22 20:23:50 -05:00
morluto c4be5b7065 refactor(artifacts): extract releaseExposureFailures from ReleaseExposureReader (#13739)
* refactor(artifacts): extract releaseExposureFailures from ReleaseExposureReader

* fix(artifacts): preserve release audit operation in errors

* style: format files with oxfmt
2026-11-22 20:23:07 -05:00
morluto 33061332ef refactor(native): extract NativeMacosErrorProjection from NativeMacOSProvider (#13741)
* refactor(native): extract NativeMacosErrorProjection from NativeMacOSProvider

* refactor(native): remove unused error projection imports
2026-11-22 19:39:55 -05:00
morluto 67388539e0 refactor(server): extract ErrorEvidenceTransport from EvidenceMcpServerCore (#13761)
* refactor(server): extract ErrorEvidenceTransport from EvidenceMcpServerCore

* refactor(mcp): drop unused error encoding import
2026-11-23 00:37:03 +00:00
morluto 8e619be40c refactor(setup): extract SupportedClientLocations from SupportedClients (#13731)
* refactor(setup): extract SupportedClientLocations from SupportedClients

* refactor(setup): remove clientProjectConfigurationPaths re-export

* refactor(setup): remove unused client location imports
2026-11-23 00:22:36 +00:00
morluto 7af28969ed refactor(ghidra): extract GhidraSessionErrorProjection from GhidraProviderClient (#13722)
* refactor(ghidra): extract GhidraSessionErrorProjection from GhidraProviderClient

* refactor(ghidra): remove unused error projection imports

* refactor(ghidra): remove guidance re-exports and import directly
2026-11-23 00:07:20 +00:00
morluto 0eaea650c0 fix(evidence): reject unknown fields in comparison record pairs (#13523) 2026-11-22 17:56:50 +00:00
b57671cb42 feat(evidence): find direct referrers by linked Evidence ID (#11709)
* feat(evidence): find direct referrers by linked Evidence ID

* docs(evidence): record real APK referrer verification

---------

Co-authored-by: gensokyo-dev <gensokyo-dev@users.noreply.github.com>
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-11-22 16:30:29 +08:00
Xiangfang Chen 85154de8ab fix(android): advertise the external-reference inputs the bridge accepts
The bridge-owned catalog omitted method_name and reference_target from
get_class_summary and reference_target from get_xrefs_to_method, even
though the bridge reads both on its external-prototype path and REA
sends both for reference queries. Neither side validates against the
schema today, but the verified catalog contradicted the traffic it
describes, and any schema-validating client would reject REA's own
reference queries.

The REA call sites also stopped sending limit, resolve_line and
smali_fallback, which the bridge never reads.

Validation: check:fast, and the Android MCP boundary plus JadxAnalysis
tests (92 tests). The bridge source itself was not compiled here; the
local engine JAR is absent, so verify:android against the real 0.8.0
JAR remains the authoritative catalog check.
2026-11-22 16:01:00 +08:00
Xiangfang Chen ab3ae658da test(android): assert bridge property types and surface Java stderr
The catalog check compared property names and required fields only, so
advertising `overload_index` as a string would still have passed even
though the bridge rejects it. Each expected property now carries its type.

The transport piped the bridge's stderr and never read it, so a failing
startup or catalog reply surfaced as "Connection closed" with the Java
error hidden. Retain a bounded tail and append it to the failure.

Validation: bridge-catalog against the real 0.8.0 JAR passes; a wrong
expected type fails with "get_method_body.overload_index must stay
string", and a missing engine JAR now reports the javac diagnostics
instead of only the closed connection.
2026-11-22 16:01:00 +08:00
Xiangfang Chen 2b6ede2d0c fix(android): let the bridge advertise its own tool schemas
Listing the bridge tools closed the connection. The bridge copied each
property from the pinned engine's schema, and that schema has no
`overload_index` for `get_xrefs_to_method`, so the advertised map carried
a null that kotlinx serialization cannot write. Only `tools/list` was
affected: REA calls tools by name, which is why the real lanes never saw
it, and the same defect reproduces against the 0.7.1 engine.

The bridge now declares the properties and required fields it accepts, so
an engine bump can neither advertise a null nor drop the overload
selector REA relies on. The real Android lane lists the live catalog to
keep the shape under test. One tool list serves both the consumed set and
the reimplementation loop, unknown names fail fast instead of inheriting
a method-shaped schema, and the identity moves to 12 because main's JNI
split-qualification change already owns 11.

Validation: build:cached, check:fast, docs:check, test:focused over the
Android boundary files, and verify:android against the real 0.8.0 JAR and
ApiDemos 6.0.18. The new catalog step passes; the lane still stops at the
pre-existing `missing java` recovery expectation, which this change does
not touch.
2026-11-22 16:01:00 +08:00
morluto 87243c0c0e perf(schemas): eliminate generator/clone overhead in schema compaction and compact union projections (#13313) 2026-11-22 03:57:03 +00:00
morluto 411e78ea64 fix(ci): check the MCP SDK validator option in its constructor slot (#13266) 2026-11-22 01:54:17 +00:00
morluto 34c69f606d fix(verification): require Gemini native answer and skill provenance (#13241) 2026-11-22 00:00:18 +00:00
morluto 63ff46e9ee fix(verification): read back Qwen skill output before analysis (#13240) 2026-11-21 18:53:53 -05:00
morluto e3ce2b53d4 fix(verification): bind DeepSeek skill evidence to its installed directory (#13238) 2026-11-21 18:41:30 -05:00
gensokyo-devandgensokyo-dev 006581b838 refactor(desktop): read OpenPGP packet lengths through BinaryReader
OpenPGP packet headers read their one-, two- and four-byte lengths with
raw Buffer reads after the header-width checks. Read them through an
openpgp BinaryReader. This was the last counted raw numeric read, so the
raw-buffer-read baseline is removed and the guard now refuses any new
copy outright. The CI change-scope test names another baseline file as
its static-only path.

Refs #11865

Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-11-21 19:52:16 +01:00
gensokyo-devandgensokyo-dev 6543a3c1a1 refactor(pe): decode certificate BMP and UTF-32 strings through BinaryReader
BMPString and UniversalString decoding read code units with raw Buffer
reads after their length-multiple checks. Read them through the
pe-certificate-table BinaryReader instead.

Refs #11865

Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-11-21 19:52:16 +01:00
gensokyo-devandgensokyo-dev 2bd8963062 refactor(managed): read custom-attribute prologs and resource lengths through BinaryReader
The fixed-string custom-attribute prolog and the embedded resource length
were raw Buffer reads after their length and directory checks. Read them
with the managed BinaryReader formats the other metadata readers use.

Refs #11865

Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-11-21 19:52:16 +01:00
gensokyo-devandgensokyo-dev 0ae58b4a1f refactor(apple): read dispatch relative displacements through the shared readers
The Objective-C method and Swift relative-pointer decoders read 32-bit
displacements straight from the image bytes, beside the checked u32 and
pointer readers. The shared dispatch readers now provide i32 through the
image BinaryReader and both facets use it, so they no longer take the raw
image bytes.

Refs #11865

Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-11-21 19:52:16 +01:00
gensokyo-devandgensokyo-dev a0d2357230 refactor(macho): read LC_BUILD_VERSION fields through BinaryReader
The build-version platform and tool count were read through a local
DataView after the command-size check. Read them with machoWordReader,
as the other load-command decoders do, and drop the now-unused viewOf.

Refs #11865

Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-11-21 19:52:16 +01:00
gensokyo-devandgensokyo-dev add4faf2ad refactor(elf): read GNU property words through BinaryReader
readGnuPropertyWords decoded property type, size and feature words with
endian-selected raw Buffer reads. Every read already sits behind the
record length checks, so the shared reader returns the same values.

Refs #11865

Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-11-21 19:52:16 +01:00
gensokyo-devandgensokyo-dev 3ba20f0eb8 refactor(hopper): compose bridge image cleanup through the shared owner
The image and publisher cleanup retry built its composite and bound the
parts by hand; providerCleanupErrorFromFailures builds the same composite.
It names close_binary, the ProviderCleanupError default that the parts
and the previous composite used.

Refs #11859

Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-11-21 19:34:01 +01:00
gensokyo-devandgensokyo-dev 2d360253dd refactor(process): compose analysis runtime cleanup through the shared owner
ArtifactAnalysisResources built its multi-failure cleanup composite and
bound the parts by hand; providerCleanupErrorFromFailures builds the same
composite with the existing per-part diagnostics.

Refs #11859

Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-11-21 19:34:01 +01:00
gensokyo-devandgensokyo-dev 3af56cc7d5 refactor(native): compose LLDB resolver cleanup through the shared owner
The resolver retry built a multi-marker ProviderCleanupError and bound
the markers by hand; providerCleanupErrorFromFailures builds the same
composite, including the distinct resource list.

Refs #11859

Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-11-21 19:34:01 +01:00
gensokyo-devandgensokyo-dev a5f3689179 refactor(inspector): compose provider close failures through the shared owner
V8InspectorProvider built its multi-failure cleanup composite by hand and
bound the parts with bindCleanupDependencies. providerCleanupErrorFromFailures
builds the same composite: resources, reason, operation, aggregate cause
and release tracking.

Refs #11859

Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-11-21 19:34:01 +01:00
gensokyo-devandgensokyo-dev 10597e10f2 fix(desktop): keep every state-reader close failure in the cleanup composite
The desktop state-reader close collects up to three failures (artifact
scope, SQLite service, and the export worker retry), but composed only
the first two with analysisErrorWithCleanupFailure and bound the rest by
hand. The third failure's reason never reached the caller. Fold the
failures through analysisErrorWithCleanupDependencies so each keeps its
reason and owner; two failures produce the same composite as before.

Refs #11859

Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-11-21 19:07:31 +01:00
gensokyo-devandgensokyo-dev a80dc68318 refactor(verify): exclude negated .ok checks from the abort-reclassification guard
The completed-abort-reclassification pattern matched any `.ok && …aborted`,
including `!outcome.ok && signal?.aborted`, which attaches a secondary
cancellation to an already failed primary and reclassifies nothing. Move
the pattern to completed-abort-guard.mjs, where the receiver chain
(member, optional, private, element and call segments) must start the
check, and cover positive and negated forms in tests.
DesktopApplicationState and FridaInstrumentationService leave the
baseline.

Fixes #11920

Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-11-21 19:07:31 +01:00
morluto 03b99c2bcf fix(web): align scenario schema guidance with admitted inputs (#13170) 2026-11-21 17:56:08 +00:00
morluto 29bf76bfc3 test(electron): isolate live verifier profiles and reuse evidence (#12970)
* test(electron): isolate live verifier profiles and reuse evidence

* test(electron): keep verifier profiles under the fixture owner
2026-11-21 02:54:43 +00:00
morluto a1dec2d2d5 docs: remove tracked planning and architecture records (#12856) 2026-11-20 09:47:41 -05:00
morluto 9af55017cf test(guards): verify CLI prose exemptions independently (#12828) 2026-11-20 08:27:11 -05:00
morluto 3e3faf2fc3 fix(kuna): use one constant for the serial job count (#12735)
Release-As: 6.10.1
2026-11-20 00:04:57 -05:00
2474e6ec6c refactor(verify): run Hopper and Kuna verifier commands through the supervised owner (#12718)
* refactor(verify): run Hopper and Kuna verifier commands through the supervised owner

Replace bare execFile in the Hopper and Kuna real-provider verifiers with
createVerifierCommands, and run pre-workspace toolchain probes through
runOwnedCommand. Close the owner before lineage verification and keep the
diagnostic workspace when cleanup, lineage, or the run fails.

Replace isError-only and FAT64 prose refusals with the projected error code
and structured issue or target details.

* fix(verify): release a clean Kuna workspace after a verification failure

A failed check whose provider, command, and lineage cleanup all completed
still removes the root. The workspace stays only when that cleanup is
unconfirmed, which is the contract the Kuna verifier failure-path tests
already require.

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

* fix(verify): keep the Kuna report when workspace release fails

release() closes cleanup registration before it removes the root, so
retain() after a failed release throws and skips the JSON report. Register
retention only when release has not started; a failed release already
keeps the workspace.

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

* fix(verify): keep both Hopper verification and lineage failures

When verification has already failed and lineage observation then fails,
the retained-workspace error carried only the earlier cause. Aggregate
both failures in the Hopper, FAT, and caller verifiers so the cleanup
reason stays with the workspace.

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

* fix(verify): keep Hopper manifests inside the repository

realpath() accepted REA_HOPPER_CONFORMANCE_MANIFEST_PATH as any filesystem
path. Resolve the manifest against the repository and reject a lexical or
symlink escape before it is read.

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

* fix(verify): acquire command owners before verifier workspaces

* fix(verify): create the command owner before the verifier workspace

If command-owner setup fails after a workspace is allocated, the temporary
root is never released. Create the owner first and close it when workspace
allocation fails.

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

* fix(verify): supervise Hopper helper CLI processes

* fix(verify): run Hopper helper CLIs through the command owner

Boundary and Linux owner-exit checks still launched the REA CLI with
execFile, so a timeout could not stop those processes. Both helpers now
require the verifier command owner and run those CLIs through it.

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

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: morluto <morluto@users.noreply.github.com>
2026-11-20 04:35:35 +00:00
dc2c31e76d test(limits): check documented limit defaults against code instead of per-file pins (#12720)
* test(limits): check documented limit defaults against code instead of per-file pins

The numeric-limit script now reads every default, floor, and maximum in
docs/design/rea-limit-inventory.md and compares it with ANALYSIS_SETTINGS
or the owner constant the parser enforces. A mismatch names the limit and
both values. Pins that only restated a covered value are removed.

Pwntools input bytes and the Kuna timeouts now use the shared exports, so
the registry value is the one the parser applies.

* fix(limits): reject a fractional documented limit cell

The cell parser treated a dot as the end of the integer, so 5000.5
compared equal to 5000. A documented number is now one complete integer,
with prose only after whitespace.

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

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: morluto <morluto@users.noreply.github.com>
2026-11-19 23:05:07 -05:00
morluto ed96765d11 refactor(macho): share unsigned dispatch metadata reads (#12668) 2026-11-20 02:17:09 +00:00
morluto 2c7c858c5a refactor(native): share mapped ELF and FAT scalar readers (#12631) 2026-11-20 01:59:55 +00:00
morluto bd887a96be refactor(apk): project signing block pair limits from the parser (#12670)
* refactor(apk): project the signing-block pair limit from the parser

* test(apk): compare the pair refusal with the parser-owned reason
2026-11-20 01:58:07 +00:00