Commit Graph
1343 Commits
Author SHA1 Message Date
morluto 11a75a5c19 fix(guidance): direct workflow errors to the scoped inventory (#13321)
* fix(guidance): direct workflow errors to the scoped inventory

* fix(mcp): type the progressive catalog registration boundary
2026-11-22 04:26:57 +00:00
morluto ae4e0c83dd test(guidance): consolidate search and locator contracts (#13312) 2026-11-22 04:08:28 +00:00
morluto 27181314cb test(evidence): consolidate input admission and schema examples (#13322) 2026-11-22 04:01:42 +00: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 4485912fd8 fix(evidence): bound omitted validation issue locations (#13309)
* fix(evidence): bound omitted validation issue locations

* fix(evidence): keep diagnostic locations that fit
2026-11-22 03:53:11 +00:00
Deepak Jain (DJ) fd40fd9ab2 fix(mcp): accept discover_tools in exact-name discovery batches (#13288)
With REA_MCP_TOOL_CATALOG_PROFILE=hot-cold, discover_tools is listed in
tools/list, yet an exact-name request that named it failed with "Unknown
or excluded tool names. No tools were loaded." Exact names load
atomically, so a batch such as ["inspect_sqlite_database",
"discover_tools"] also left the valid cold tool unloaded.

The catalog validated names against the domain registrations it was
built from, and the server registered the adapter only after building
it. The server now registers discover_tools first and passes that
registration to ProgressiveToolCatalog. Exact-name lookup, the returned
entries and both counts read one inventory that includes the adapter,
which replaces the two "+ 1" adjustments. Search and reset still cover
only domain tools, so a query never spends a page slot on the adapter
and reset never hides it. Unknown or excluded names are still rejected
before anything loads.

Signed-off-by: Deepak Jain <deepujain@gmail.com>
2026-11-21 21:37:07 -05:00
morluto 6dbd86847e test(mcp): consolidate default HTTP input capacity checks (#13258) 2026-11-22 01:33:13 +00:00
morluto 87889b8729 fix(mcp): retain doctor initialization when catalog requests fail (#13255) 2026-11-22 01:23:35 +00:00
morluto 0209d3e1b5 fix(mcp): keep doctor launches target-free on Windows (#13250) 2026-11-22 01:14:11 +00:00
morluto 0299413e86 perf(mcp): filter prompt completions before sorting (#13251) 2026-11-22 01:09:10 +00:00
morluto 61eabd25dc test(mcp): distinguish schema recursion from instance data (#13249) 2026-11-22 01:01:01 +00:00
morluto 00974e5a61 test(mcp): consolidate progressive catalog wire checks (#13248) 2026-11-22 00:43:59 +00:00
morluto 051658daa1 test(mcp): consolidate deferred runtime and recorder cleanup (#13247) 2026-11-22 00:34:45 +00:00
morluto eacbd2522a fix(verification): distinguish MCP probe refusals from local deadlines (#13246) 2026-11-22 00:31:34 +00:00
morluto 8d591e38f9 test(mcp): consolidate shutdown settlement and admission checks (#13243) 2026-11-22 00:12:16 +00:00
morluto 2e83fbd394 test(mcp): consolidate browser source boundary checks (#13234) 2026-11-21 18:14:25 -05:00
Filhao2019 2fbcec84eb fix(mcp): name the HTTP option that requires --http 2026-11-21 21:28:49 +01:00
Deepak Jain 68657d55bb test(mcp): cover wrapped ENOTCONN connection loss
The ENOTCONN classifier and direct-error regression landed in #11490.
Keep that implementation and add coverage for an HTTP listener error whose
parsed system code is ENOTCONN after its native cause is made opaque.

Group the direct and wrapped cases outside the runtime test function to
keep the existing function-size limit while retaining both assertions.

Related: #11362

Signed-off-by: Deepak Jain <deepujain@gmail.com>
2026-11-21 21:24:09 +01:00
ShuaixinHuangandShuaixinHuang ae72c30e2c fix(bun): keep budget refusals out of layout selection (#12763)
Co-authored-by: ShuaixinHuang <197200901+ShuaixinHuang@users.noreply.github.com>
2026-11-21 20:39:31 +01:00
morluto 8d17fcb7a2 test(web): consolidate scenario Evidence delivery checks (#13161) 2026-11-21 17:25:33 +00:00
morluto 0fa220c735 test(web): consolidate scenario input diagnostics (#13159) 2026-11-21 12:20:56 -05:00
morluto 97f10e8957 test(web): consolidate passive CDP response header proofs (#13099) 2026-11-21 13:33:44 +00:00
morluto 8322b55552 test(web): consolidate module syntax and capture identity fixtures (#13073) 2026-11-21 06:02:44 -05:00
morluto a9463bf1a9 test(sourcemap): consolidate retained views and MCP delivery checks (#13070) 2026-11-21 10:40:12 +00:00
morluto 9a388afdfc test(mcp): consolidate JavaScript Evidence transport checks (#13055)
* test(mcp): verify literal seeds and mixed Evidence responses

* test(mcp): consolidate JavaScript summary transport checks
2026-11-21 09:23:26 +00:00
morluto bf77776873 test(evidence): consolidate native routing and identity refusals (#13054)
test(evidence): consolidate native routing and identity refusal checks
2026-11-21 09:15:18 +00:00
morluto 34da2cce1f test(snapshots): verify live source metadata refresh (#13048) 2026-11-21 08:51:24 +00:00
Kaoru0822 8f2b865c06 perf(mcp): reduce deferred catalog startup data (#13039)
* perf(mcp): trim deferrable result schema storage

* test(mcp): guard the deferred catalog output projection

* test(mcp): validate hardening against the canonical output schema
2026-11-21 00:47:31 -08: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
morluto 72a8ae01a3 test(mcp): consolidate debugger retirement evidence checks (#13014)
* test(mcp): consolidate debugger retirement evidence checks

* test(mcp): require server cancellation after debugger retirement
2026-11-21 06:40:39 +00:00
morluto 765ee73094 test(ida): consolidate HTTP diagnostic format checks (#13000) 2026-11-21 00:23:51 -05:00
morluto 2533a8b32b fix(electron): preserve waits and cancellation through renderer shutdown (#12972)
* fix(electron): preserve scenario waits through renderer crashes

* fix(electron): retain action cancellation across final Inspector failure

* fix(electron): collect active state in a single Inspector call
2026-11-21 03:08:49 +00:00
morluto 93aaf18e18 test(asar): consolidate MCP admission and extraction coverage (#12950) 2026-11-20 23:05:46 +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 82cb3d040b test(ghidra): consolidate function observation evidence coverage (#12932) 2026-11-20 16:51:10 -05:00
morluto 5f9e931365 test(ghidra): consolidate literal search boundary coverage (#12925)
* test(ghidra): consolidate literal search boundary coverage

* test(ghidra): prove primary-name Unicode folding independently
2026-11-20 21:26:34 +00:00
morluto 9c3ab4a0df test(ghidra): consolidate inventory Evidence and byte coverage (#12922) 2026-11-20 16:03:47 -05:00
morluto c8b938252d test(ghidra): consolidate request recovery assertions (#12916)
* test(ghidra): consolidate request recovery assertions

* test(ghidra): verify recovery delivery without fixed prose
2026-11-20 20:11:03 +00:00
morluto 6cd055bfca test: restore audited startup, launcher, and BEAM contracts (#12884) 2026-11-20 16:48:32 +00:00
morluto aa84c59d8b test(go): consolidate retained metadata views (#12875) 2026-11-20 10:57:02 -05:00
morluto 5486394715 test(artifacts): consolidate inventory view coverage (#12871) 2026-11-20 15:48:58 +00:00
morluto 4edb900bdd test(mcp): consolidate shutdown and retry lifecycle checks (#12847)
test(mcp): consolidate runtime shutdown and retry checks
2026-11-20 09:14:54 -05:00
morluto 11c951228c test(mcp): consolidate result delivery and capture checks (#12836) 2026-11-20 08:48:55 -05:00
morluto c9caa0aa5b test(formats): consolidate BEAM and DOL boundary checks (#12832)
* test(erlang): consolidate BEAM path and atom budget checks

* test(dol): prove session contracts through the MCP client
2026-11-20 13:44:28 +00:00
morluto bb7bdd2fba test(mcp): consolidate admission and lifecycle checks (#12833)
* test(mcp): consolidate canonical batch capacity checks

* test(mcp): keep separate cold-start prompt checks

* test(mcp): consolidate byte entropy request checks

* test(mcp): consolidate progress checks and remove waiting sleeps
2026-11-20 08:44:13 -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 40c6dade8e test(mcp): consolidate reduced output schema proof at the SDK boundary (#12823)
* test(mcp): consolidate reduced output schema proof at the SDK boundary

* test(mcp): verify both required fields on the reduced output root
2026-11-20 08:24:46 -05:00
morluto adb8e2ea35 test(evidence): consolidate bundle comparison proof at the MCP boundary (#12813)
* test(evidence): verify bundle source retention through MCP

* test(evidence): verify retention without explicit record pairs
2026-11-20 13:00:23 +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