Commit Graph
1478 Commits
Author SHA1 Message Date
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
Lewis WongandClaude Opus 5.5 b2a7cd91cc fix(apple): require a $top dictionary, not a UID, for another archiver name
A binary plist UID projects as `{ UID: n }` and the XML convention as
`{ CF$UID: n }`, so the structural check accepted a UID-valued $top as the
roots dictionary. A plist naming another archiver with such a $top was then
decoded with an invented root named after the UID key. The kind test now
also requires that $top is not a UID. NSKeyedArchiver archives keep their
existing $top handling.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 19:51:56 +01:00
Lewis WongandClaude Opus 5.5 2d182f865f fix(apple): report the declared archiver of a keyed archive
Keyed archives may now name another archiver, so the name is source
metadata a caller needs: a SceneKit scene says SCNKeyedArchiver. The
keyed-archive result gains `archiver`, the declared `$archiver` string, and
the inspect_keyed_archive contract describes archives written by
NSKeyedArchiver or a subclass archiver such as SCNKeyedArchiver instead of
NSKeyedArchiver plists only.

The reviewed golden graph adds `"archiver": "NSKeyedArchiver"` for its
capture; only its provenance digest changes, and the captured XML does not.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 19:51:56 +01:00
Lewis WongandClaude Opus 5.5 11896a6eb1 fix(apple): decode keyed archives that name another archiver
Foundation's NSKeyedUnarchiver decodes a keyed archive whatever its
$archiver names. SceneKit writes .scn scenes with SCNKeyedArchiver, so
inspect_keyed_archive refused system and third-party scenes such as Audio
MIDI Setup's SpeakerRoom.scn as "not an NSKeyedArchiver archive" and pointed
the caller at inspect_plist.

An archive named NSKeyedArchiver keeps its current handling, including
format failures for a damaged table. Another string archiver name is a keyed
archive when the plist also has an $objects table and $top roots; without
them it stays an ordinary property list with the inspect_plist workflow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 19:51:56 +01:00
morluto 1587b46a9f fix(setup): keep MCP launchers usable after session cleanup (#13185) 2026-11-21 18:50:36 +00:00
Lewis WangandClaude Opus 5.5 f548a62a4f fix(artifacts): keep a ZIP inventory when one member uses an unsupported compression method (#13026)
* fix(artifacts): keep a ZIP inventory when one member uses an unsupported compression method

zip.js refuses a member whose compression method it has no codec for, such
as bzip2 (12) or LZMA (14), before reading its data. typedZipFailure turned
that refusal into an archive-level unavailable failure, so inventory_artifact,
inspect_artifact and compare_artifacts rejected the whole archive and never
listed or hashed its readable members. unzip and bsdtar list them all.

A refusal raised while reading one member is now ArtifactEntryContentUnavailable,
the per-member failure the inventory scan already records, as UnityFS members
with unsupported compression do. The member keeps its occurrence with an
unavailable hash and a limitation naming the method, siblings are hashed, and
coverage is unknown. Extraction of that member is still refused.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(artifacts): keep ZIP entry coverage complete for an unreadable member codec

The central directory still lists every entry when one member's compression
method is unsupported; only that member's content is unreadable. Recording an
unknown traversal made inventory coverage, whose scope is container entries,
claim that entries might be missing. Drop the traversal override, as the
encrypted-member path already does, and let the occurrence limitation carry
the content gap.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 19:45:46 +01:00
morluto ce5258043c test(docs): isolate README drift cases and remove duplicate checks 2026-11-21 08:49:29 -05:00
morluto 4304a66974 test(web): isolate captured module artifact checks (#13075) 2026-11-21 06:11:19 -05:00
morluto eca10e848f test(sourcemap): isolate artifact identity and retain rejected reports (#13069)
* test(sourcemap): isolate artifact identity and retain rejected reports

* test(sourcemap): track the consolidated artifact lifecycle witness
2026-11-21 05:41:12 -05:00
morluto 47d86582c8 test(sourcemap): consolidate indexed section admission checks (#13066) 2026-11-21 10:20:13 +00:00
morluto 243b9a37f6 test(json): verify structured CLI file diagnostics (#13051)
test(json): verify file diagnostics through each output format
2026-11-21 08:56:46 +00:00
morluto 486eb81405 test(json): observe streamed cancellation and file recovery (#13050) 2026-11-21 03:49:38 -05:00
morluto 88d829bc0d test(snapshots): verify byte consistency across file scans (#13049) 2026-11-21 08:47:41 +00:00
morluto b6fced40a3 test(snapshots): verify ambiguous provenance through direct replay (#13046) 2026-11-21 08:42:05 +00:00
morluto eb84f90417 test(snapshots): consolidate non-object file admission checks (#13047) 2026-11-21 08:37:55 +00:00
Kaoru0822 9fd8c8d903 fix(setup): recognize DSH registrations nested in Cordis groups (#13037)
* test(setup): reproduce hidden DSH registrations in Cordis groups

* fix(setup): track DSH registrations inside Cordis insert groups

* test(uninstall): cover aliased DSH group cleanup

* fix(uninstall): preserve comments at edited DSH group aliases
2026-11-21 00:23:18 -08:00
Kaoru0822 76da8fd8ba fix(uninstall): keep emptied DSH inserts from applying overrides (#13036)
* test(uninstall): reproduce DSH inserts becoming active overrides

* fix(uninstall): preserve the mode of emptied DSH insert operations
2026-11-21 00:23:02 -08:00
Kaoru0822 270c3a6b28 fix(setup): preserve caller comments on detached DSH aliases (#13032)
* test(setup): reproduce DSH alias comment loss on registration edits

* fix(setup): retain DSH alias annotations when materializing values
2026-11-21 00:22:38 -08:00
Kaoru0822 d43fc10511 perf(javascript): reuse lexical returned-reference facts across ambient writes (#13004)
* perf(javascript): reuse lexical returned-reference facts across ambient writes

* test(javascript): count returned-reference dependency checks by binding

* perf(javascript): collect return dependency facts once per binding

* ci: run required verification for stacked pull requests
2026-11-20 23:12:00 -08:00
morluto 0e70522b6d test(evidence): consolidate composed workflow provenance checks (#12975) 2026-11-20 22:13:54 -05:00
morluto 2bac1b5add test(electron): consolidate file admission and cleanup coverage (#12953) 2026-11-20 23:12:10 +00:00
morluto 916a033eb7 test(asar): consolidate inventory boundary coverage (#12948) 2026-11-20 23:04:21 +00:00
morluto 0b0b847afd test(asar): streamline allocation and descriptor fixtures (#12949) 2026-11-20 22:58:47 +00:00
6822ebe1f3 feat(ida): support the official Hex-Rays IDA MCP headlessly (#4813)
* feat(ida): support the official Hex-Rays IDA MCP headlessly

Hex-Rays IDA MCP serves database reads only through execute_python, so
REA rejected it as an upstream. A `hexrays` headless stdio registration
now leases a private idalib worker through open_database, answers the
existing database-supervisor reads with a fixed, packaged, read-only
query module, and releases the lease with close_database, verified by
list_databases.

Observations record execute_python, the query and the module digest.
Tool errors are typed so a completed rejection is distinguished from an
unknown outcome; an unconfirmed release is retried and a late lease on
the private input is adopted.

Validated IDA source and bridge tests, static checks, docs, and npm run
verify:ida on Linux x64 against x86-64 and AArch64 ELF fixtures.

* feat(ida): name the Hex-Rays registration for its catalog

A registration without `protocol` that reaches the official Hex-Rays
server failed with only the missing database-supervisor tools. Startup
profile failures now report the advertised catalog, and when it is the
Hex-Rays one the message and recovery name the `hexrays` registration.

Refs #1416

* docs(ida): state Hex-Rays prerequisites and upstream session traces

Upstream needs IDA 9.4 or later with idalib, Python 3.11 or later, uv
and Git. The profile does not analyze databases open in the IDA GUI, and
the server keeps its own session traces outside REA's workspace.

Refs #1416

* fix(ida): skip inline data when scanning Hex-Rays calls

The call scan decoded every head that FuncItems yields. Inline data such
as a jump table can decode as a call and refer to a function or import,
which reported false callees and call-graph edges. Skip non-code heads
before decoding, as disassembly already does.

Refs #1416

* fix(ida): retain Hex-Rays health reads in evidence

The identity and readiness reads around each operation kept only their
parsed result, dropping the bridge digest and any engine output. Keep
them whole as health_observations beside the parsed metadata, in both
successful and partial-failure Evidence.

Refs #1416

* test(ida): list the Hex-Rays bridge in package fixtures

The packed-bridge verifier has required bridge/ida/hexrays_queries.py
since the Hex-Rays profile landed, but three package tests still built
their member lists without it. The verifier stopped at that file, so 21
cases failed or asserted on the wrong omission.

Refs #1416

* feat(ida): open existing IDA databases through the Hex-Rays profile

A headless open re-ran auto-analysis from the input binary, discarding
the names, types and comments of an existing database and taking far
longer on large targets. Target admission now identifies IDA databases
by their IDA1/IDA2 signature, and the hexrays profile opens a private
copy of one; Hopper and the other IDA profiles reject them.

The copy is required, not incidental: idalib repacks a database when
its last lease is released, even without a save. A database reports
the input it was created from, so the session is bound to the opened
copy's idb_path, and health now reports the input SHA-256 it records.

Validated with resolver, provider and session tests, check:fast,
docs:check and test:changed, plus a real Hex-Rays MCP run against a
1.4 GB SC2 .i64 whose original file was left byte-identical.

Refs #1416

* fix(ida): verify the private workspace of a database target by idb_path

* test(ida): fix Hex-Rays health stand-ins and Windows path and runtime teardown

* refactor(ida): resolve the registration once for target support

* docs(ida): record the real Hex-Rays run on an existing .i64

* docs(ida): make the Hex-Rays registration example install-neutral

* chore: keep merge-hook formatting outside the IDA change

* fix(ida): retain live Hex-Rays databases this server does not lease

A list_databases row with instance_id null is a live owner, not a stopped
database. Mapping it to the supervisor's released-worker shape made cleanup
delete files another client still held. Unleased rows stay active, so the
private path must leave inventory before the workspace is removed.

Accept idat inventory rows, hash the query bridge with sha256Hex, and
complete databaseEngine on Hopper fixtures added on main.

* fix(ida): report uncapped Hex-Rays call graphs

* docs(ida): link to the Hex-Rays bridge on GitHub

* fix(ida): verify Hex-Rays worker identity and cleanup

* feat(ida): support Hex-Rays idat headless workers

Refs #12921

* fix(ida): retain workspace after ambiguous Hex-Rays startup

* fix(ida): preserve typed Hex-Rays call edges and deadlines

* test(ida): verify Hex-Rays cleanup with a peer lease

* test(ci): use project deadlines for the Cutter verifier

* test(ida): keep verifier cleanup fixtures scoped to mocked modules

* fix(ida): retain the worker backend in partial evidence

---------

Co-authored-by: Kaoru0822 <208281322+kaoru0822-kitauji@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: morluto <morluto@users.noreply.github.com>
Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>
2026-11-20 17:58:27 -05:00
morluto 339b6b5750 test(asar): consolidate companion identity coverage (#12946)
* test(asar): consolidate companion identity coverage

* test(asar): allow companion limitation wording changes
2026-11-20 17:51:02 -05:00
morluto 2f87f938e0 test(asar): verify packed member close on cancellation (#12947) 2026-11-20 17:48:21 -05:00
morluto 329510a5e1 test(resources): consolidate output publication coverage (#12938)
* test(resources): consolidate output publication coverage

* test(ci): retain output publication in the Windows lane
2026-11-20 22:44:28 +00:00
morluto c355fcb8f7 test(asar): consolidate packed listing coverage (#12945) 2026-11-20 22:44:24 +00:00
morluto 4f472e001c test(asar): consolidate header admission coverage (#12944) 2026-11-20 22:42:46 +00:00
morluto 8a971e192a test(resources): consolidate directory reader identity checks (#12941) 2026-11-20 22:42:11 +00:00
morluto f454348281 test(resources): consolidate stable artifact chunk coverage (#12937) 2026-11-20 17:18:31 -05:00
morluto fd3f10a0eb test(ghidra): verify metadata reads and doctor probe admission (#12911)
test(ghidra): prove metadata descriptor and probe admission
2026-11-20 14:35:04 -05:00
morluto fdbe6d5f2b test(artifacts): consolidate selected name and admitted content coverage (#12880) 2026-11-20 16:12:58 +00:00
morluto 79bd830f4e test(filesystem): consolidate stable hash and descriptor ownership checks (#12879) 2026-11-20 11:10:13 -05:00
morluto 41fc470072 fix(ci): verify packaged Agent Environment bridges (#12874)
* test(agentenv): observe timeout before polling a pending run

* test(agentenv): verify bridge files at package boundary
2026-11-20 16:06:14 +00:00
morluto ae449a3021 test(zip): consolidate archive coverage and name checks (#12857)
* test(zip): consolidate member extent and empty archive checks

* test(zip): reuse Unicode path fixture framing
2026-11-20 15:13:19 +00:00
morluto f4937a04be fix(reference): retain physical Git read failure after cleanup refusal (#12848) 2026-11-20 14:28:31 +00:00
morluto 3dacda36f2 test(elf): consolidate debug-link candidate coverage (#12851) 2026-11-20 14:27:36 +00:00
morluto 18cd307b6e test(reference): consolidate Git exclusion and policy checks (#12846)
test(reference): consolidate Git metadata and policy checks
2026-11-20 14:12:54 +00:00
morluto 21795b199d test(ci): consolidate project discovery and isolation checks (#12842) 2026-11-20 14:10:36 +00:00
morluto 4f5d1b250c test(reference): consolidate reader scheduling and failure checks (#12835)
* test(reference): prove directory admission scheduling without sleeps

Gate real admissions to verify traversal-order policy, drained lookups on cancellation, and bounded lookahead beneath held siblings. Retain cancellation reason and inventory in the same fixture. Share a native import between unsupported FIFO recovery and configured exclusion.

* test(reference): witness deeper admission pressure

Keep directory admissions pending through the third level so a cap bypass under backlog fails. Check the native FIFO error category and compare delivered guidance with the existing projection producer.
2026-11-20 08:58:11 -05:00
morluto 01895d33ef test(erlang): consolidate BEAM budget and truncation coverage (#12830)
test(erlang): consolidate BEAM limit and truncation checks
2026-11-20 08:30:16 -05:00
morluto 68e6953897 test(reference): verify exclusion and missing-root outcomes (#12831)
test(reference): verify exact exclusions against failed ancestors
2026-11-20 13:29:33 +00:00
morluto 84ee3c1edc test(filesystem): verify commit cancellation closes its parent descriptor (#12814) 2026-11-20 13:03:31 +00:00
morluto 06ffe5c63e test(install): isolate installer fixtures from ambient configuration (#12810)
test(installer): isolate release selection and consolidate dry-run coverage
2026-11-20 12:59:31 +00:00
morluto ec533c6e64 test(ci): consolidate project deadline policy checks (#12777) 2026-11-20 12:32:19 +00:00
morluto ad2b34ca9b ci(release): preserve unpublished versions and verify npm before tagging (#12770)
* ci(release): require full qualification before tagging

* ci(release): preserve unpublished versions and verify npm before tagging

* test(release): exercise publication gates on both release routes

* fix(release): fetch the live main checkpoint before verifying it

* fix(release): constrain GitHub requests and workflow output

* fix(release): honor GitHub label and recovery API contracts
2026-11-20 12:08:59 +00:00
385e5d228f test: own temporary directories through createTestTempDirectory in remaining tests/ (#12727)
* test: own temporary directories through createTestTempDirectory in remaining tests/

Give per-test directories in the remaining tests/ suites to
createTestTempDirectory so onTestFinished removes them through
removeTestWorkspace. Keep suite-scoped roots and child-process directories
whose removal is the assertion.

* test: drop empty cleanup callbacks and keep the capture skip reason visible

Remove the no-op withVerifierCleanup steps left after directory removal
moved to createTestTempDirectory. Put the native capture skip explanation
in the Linux sample test name, because it.skipIf only tests truthiness.

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:22:53 -05:00
e58c60b36e test(limits): reference limit constants instead of repeating their values (#12715)
* test(limits): reference limit constants instead of repeating their values

Point duplicated default literals at their owner constants and replace
recovery-wording locks with the setting name, units, and those constants.
Keep the single default pins that guard shipped values.

* test(limits): pin the shipped Ghidra value-flow defaults

Consumer checks follow the owner constants, so they no longer catch a
change to 3000, 64, or 12000. One owner pin keeps those shipped values.

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:22:32 +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