Commit Graph
3116 Commits
Author SHA1 Message Date
RRFZ f54cc2f3ac fix(javascript): omit requests rejected by the default agent protocol 2026-11-21 21:10:59 +01:00
RRFZ a8d714f0e3 fix(javascript): qualify response consumers with uncertain receivers 2026-11-21 21:10:51 +01:00
morluto 286d599e9f test(web): consolidate passive capture comparison coverage (#13200) 2026-11-21 20:10:41 +00:00
morluto 7b856fa5a1 refactor(desktop): validate task pointer syntax at its shared owner 2026-11-21 20:57:32 +01:00
Nianze Wu 361be4cb63 fix(desktop): reject invalid task pointer escapes 2026-11-21 20:57:32 +01:00
Davmunrey 909d4702f2 test(javascript): cover array holes, nested spreads and an empty spread before an argument in kill signals
Review follow-up: firstRuntimeArgument has separate paths for an array hole, a nested array spread and an empty spread followed by another argument. child.kill(...[, "SIGINT"]) sends SIGTERM, child.kill(...[...["SIGINT"]]) sends SIGINT and child.kill(...[], "SIGKILL") sends SIGKILL; the case now pins all three.
2026-11-21 20:48:31 +01:00
ahmed0magdyandClaude Opus 5.5 4bcd0d864a fix(javascript): resolve literal spreads and const aliases in kill signals
Address review feedback on the kill() signal fact:

- Drop the semanticResolutionBlocked import, which isUnshadowedGlobal
  superseded.
- Expand spreads of array literals before selecting the signal, so
  kill(...[]) reports Node's SIGTERM default and kill(...["SIGINT"])
  reports SIGINT. A spread of anything else stays unknown.
- Follow const aliases whose only write is one unconditional initializer
  (the same !mutable + semanticStableInitializer rule other producers
  use), so `const signal = undefined; kill(signal)` reports SIGTERM.
  let, var, reassigned, and shadowed bindings stay unknown.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 20:48:31 +01:00
ShuaixinHuang d9f2fd365d fix(desktop): classify complete filename boundary code points 2026-11-21 20:22:43 +01:00
ShuaixinHuang d07d28b533 fix(desktop): match title filenames at Unicode boundaries 2026-11-21 20:22:43 +01:00
ShuaixinHuangandShuaixinHuang c5b5d9f7ea fix(pe): exclude section padding from RVA metadata reads (#12755)
Co-authored-by: ShuaixinHuang <197200901+ShuaixinHuang@users.noreply.github.com>
2026-11-21 20:20:04 +01:00
ShuaixinHuang efe692721e fix(desktop): preserve dynamic-token refusal wording 2026-11-21 20:18:25 +01:00
ShuaixinHuang 1b2299c7f8 fix(desktop): leave host-dependent ELF library names unresolved 2026-11-21 20:18:25 +01:00
ShuaixinHuangandShuaixinHuang 6a0a5e7379 fix(desktop): report JSON view depth after reviver stack exhaustion (#12759)
Co-authored-by: ShuaixinHuang <197200901+ShuaixinHuang@users.noreply.github.com>
2026-11-21 20:16:54 +01:00
Vinícius DS Andrade cc19240ca9 fix(v8): admit the six-word code cache header of V8 8.8 through 11.7
The reader pinned the seven-word header that V8 11.8 and later write and
took the payload length from the word at 0x14. V8 8.8 through 11.7,
which Node 16 through 20 embed, define six words: there is no read-only
snapshot checksum word, the payload length is the word at 0x10 and the
header is 24 bytes on both pointer widths. For such a container the word
at 0x14 is the payload checksum, so a complete cache was refused as
truncated or corrupt.

Admit the six-word layout when the word at 0x10 reaches the end of the
file from a 24-byte header, and report its six words. A container that
fits both layouts is refused as ambiguous. The six-word roles come from
the V8 sources of those releases, so only the magic and the
payload-length relation are reported as confirmed, and the result states
that the layout was not measured against one of their producers.

A container that fits neither layout is no longer described as certainly
truncated or corrupt, since an unadmitted header has the same effect.
2026-11-21 20:02:30 +01: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 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 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
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
Heo Hao a44e705ad8 fix(desktop): skip only ASCII whitespace before a desktop entry key (#13126)
The key reader stripped each line with JavaScript's trimStart(), which also
removes Unicode spaces such as U+00A0 and U+3000. GLib skips only
g_ascii_isspace, so it keeps those bytes inside the key and the record never
matches Name= or Hidden=.

The drift had a safety direction: a line indented with U+00A0 and reading
Hidden=true was accepted as a hidden override by REA but never by the desktop
environment, so findHiddenDesktopEntry() claimed a deletion that GLib would not
honour. #12708 closed this for group headers by validating the captured padding
against GLib's ASCII set; the blank-line, comment and key checks still used the
Unicode-aware trim.

I now strip only [ \t\f\r] before deciding whether a line is blank, a comment
or a key, and hand that same string to the record matcher. ASCII indentation
still parses as before. The inventory test covers the refusal when a hidden
override carries the padding, and the domain tests cover the three Unicode
spaces for keys, blank lines and comments.
2026-11-21 19:40:34 +01:00
gensokyo-devandgensokyo-dev 13725d2986 refactor(errors): list distinct resources in providerCleanupErrorFromFailures
Parts of one cleanup composite can share a resource, such as a common
runtime root. Callers deduplicated the list by hand before composing;
normalize it once in the owner so they can use it directly.

Refs #11859

Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-11-21 19:34:01 +01:00
morluto 03b99c2bcf fix(web): align scenario schema guidance with admitted inputs (#13170) 2026-11-21 17:56:08 +00:00
morluto 505cac1487 test(web): consolidate scenario capture schema coverage (#13169)
* test(web): consolidate scenario capture schema coverage

* test(web): preserve wide scenario origin coverage
2026-11-21 17:52:42 +00:00
morluto fba0e43af3 test(web): consolidate exact response number checks (#13118) 2026-11-21 10:03:33 -05:00
morluto 251f863f30 test(web): consolidate storage fingerprint comparison proofs (#13084) 2026-11-21 06:50:22 -05:00
morluto 5b04c74ae0 test(web): consolidate redirect ancestry comparison proofs (#13082) 2026-11-21 11:45:15 +00:00
morluto 3a60c55a91 test(web): consolidate scenario transaction and context proofs (#13081) 2026-11-21 06:37:45 -05:00
morluto 2dc27d164a test(web): consolidate scenario event coverage proofs (#13079)
* test(web): consolidate scenario event coverage proofs

* test(web): verify scenario guidance through its formatters
2026-11-21 11:33:19 +00:00
morluto b723393611 test(web): consolidate scenario alignment and ordering proofs (#13078) 2026-11-21 11:27:03 +00:00
morluto 8322b55552 test(web): consolidate module syntax and capture identity fixtures (#13073) 2026-11-21 06:02:44 -05:00
morluto 47d86582c8 test(sourcemap): consolidate indexed section admission checks (#13066) 2026-11-21 10:20:13 +00:00
morluto d69a7fdbf6 test(sourcemap): consolidate browser capture coverage checks (#13063)
test(sourcemap): consolidate capture coverage and validation
2026-11-21 10:06:40 +00:00
morluto 0c3e1d69aa test(evidence): verify request admission and retained display ownership (#13053)
* test(evidence): verify frame refusal and pre-parse cancellation

* test(evidence): verify display and digest at their owners
2026-11-21 09:07:28 +00:00
morluto b6fced40a3 test(snapshots): verify ambiguous provenance through direct replay (#13046) 2026-11-21 08:42:05 +00:00
morluto 184e9c083c test(evidence): distinguish legacy format from schema refusal (#13045)
* test(evidence): distinguish legacy format from schema refusal

* test(evidence): verify full format recovery guidance
2026-11-21 08:32:56 +00:00
Kaoru0822 2e45687dfd perf(javascript): share settled ambient call continuations (#13010)
* perf(javascript): share settled ambient call continuations

* test(javascript): cover settled dispatch invalidation at captured reads
2026-11-20 23:50:21 -08:00
Kaoru0822 f2d5cd6337 perf(javascript): index widened summary coverage by root (#13007)
* 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

* perf(javascript): index widened summary coverage by root

* test(javascript): count canonical keys during widened effect merging

* perf(javascript): reuse canonical keys from widened effect summaries
2026-11-20 23:12:23 -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
Kaoru0822 91a68a8b7c fix(javascript): preserve Webpack slots outside finite writes (#13006)
* fix(javascript): preserve Webpack slots outside finite writes

* test(javascript): verify finite Webpack cache writes preserve other slots

* test(javascript): separate cache slot controls from external identity
2026-11-20 22:32:29 -08:00
Kaoru0822 e66a27c2f2 fix(electron): resolve exact local IPC channel values (#13005)
* fix(electron): resolve exact local IPC channel values

* test(electron): cover ESM IPC channel overwrites

* fix(electron): reconcile wrapper registrations before resolving channels

* test(electron): require inference evidence for resolved handler channels

* fix(electron): preserve inferred channels on handler evidence
2026-11-20 22:32:13 -08:00
Kaoru0822 fba5e44bf5 fix(javascript): share widened reference-store propagation (#12990)
* fix(javascript): share widened reference-store propagation

* test(javascript): witness post-fixpoint ambient checkpoints

* fix(javascript): checkpoint ambient effect publication between sites
2026-11-20 22:31:43 -08:00
Kaoru0822 c2870f9132 fix(javascript): preserve Electron identity beside unrelated alias exhaustion (#12988)
* fix(javascript): preserve Electron identity beside unrelated alias exhaustion

* fix(javascript): retain delegate uncertainty after opaque global code

* test(javascript): keep an escaped CommonJS receiver unresolved

* fix(javascript): bound CommonJS receiver sources at admission
2026-11-20 22:31:28 -08: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 9c3ab4a0df test(ghidra): consolidate inventory Evidence and byte coverage (#12922) 2026-11-20 16:03:47 -05:00
morluto 70eb0b6722 test(browser): verify result budgets and memory attribution structurally (#12886) 2026-11-20 16:51:12 +00:00
morluto 6dde865ccf test(model): consolidate historical layout and retained views (#12878) 2026-11-20 16:06:43 +00:00
morluto aa84c59d8b test(go): consolidate retained metadata views (#12875) 2026-11-20 10:57:02 -05:00
morluto cfc1644238 test(il2cpp): consolidate retained metadata projection coverage (#12870) 2026-11-20 15:51:59 +00:00
morluto 75908cc1fa test(rust): consolidate carrier budgets and retained views (#12872)
* test(rust): consolidate authenticated dependency views

* test(rust): consolidate carrier and report budget checks
2026-11-20 10:50:58 -05:00