Commit Graph
4620 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
morluto ac4f655858 perf(native): pre-screen IL2CPP slots and reuse ObjC/PE indices (#13314) 2026-11-22 03:51:45 +00:00
morluto 264c398c0d perf(sqlite): reuse stateless TextDecoder codecs and skip redundant truncation scan on short pages (#13274)
* perf(sqlite): reuse stateless TextDecoder codecs and skip redundant truncation scan on short pages

* test(sqlite): verify short-page probe skip and shared decoder malformed-cell isolation
2026-11-21 22:31:55 -05:00
morluto f7355b1b61 perf(kuna): avoid per-line Buffer.concat allocations in KunaProjectFiles.scanLines (#13270)
* perf(kuna): avoid per-line Buffer.concat allocations in KunaProjectFiles.scanLines

* test(kuna): cover single-chunk UTF-8 and length refusals in scanLines
2026-11-21 22:31:44 -05:00
morluto 7269165323 perf(il2cpp): fix 8x yields and hoist opcode checks before BigInt math in executable scans (#13272)
* perf(il2cpp): fix 8x yields and hoist opcode checks before BigInt math in executable scans

* test(il2cpp): type codegen module fixtures without as-never casts
2026-11-21 22:31:33 -05:00
morluto c34bdabeae fix(setup): keep incomplete Windows roots unresolved (#13298)
* fix(setup): keep incomplete Windows roots unresolved

* fix(setup): qualify Kilo roots before appending directories
2026-11-22 03:20:23 +00:00
morluto e9b0f0b68c test(setup): consolidate registration status contracts (#13303) 2026-11-22 03:16:16 +00:00
morluto e726f89bcb fix(setup): preserve Goose configuration root selection (#13297) 2026-11-22 03:07:46 +00:00
morluto 825afe019c test(setup): consolidate TOML client preservation checks (#13294) 2026-11-22 02:58:25 +00:00
morluto 2af8248a44 fix(uninstall): report verified removal after staging cleanup failure (#13293) 2026-11-22 02:51:55 +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 a06e04b4df fix(cli): preserve doctor routing with empty output values (#13262)
* fix(cli): preserve doctor routing with empty output values

* fix(cli): keep configuration precedence before malformed readiness commands
2026-11-22 02:12:45 +00:00
morluto 2dfe4754ac test(cli): consolidate MCP registration admission and policy checks (#13264)
* test(cli): consolidate MCP registration admission and policy checks

* test(cli): assert MCP registration option facts without fixed prose
2026-11-21 20:59:51 -05: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 3102d18bfc test(mcp): consolidate artifact verifier catalog and schema checks (#13260) 2026-11-22 01:40:30 +00:00
morluto d6c4776e65 fix(setup): unify OpenCode layer resolution and alias ownership (#13226) 2026-11-22 01:35:37 +00: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 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
morluto a7b195d0e1 fix(browser): refuse partial HTTP source-map responses (#13236) 2026-11-21 23:31:49 +00:00
morluto 1f3703f6f1 test(browser): consolidate source-map coordinates and wire deadlines (#13235) 2026-11-21 18:22:38 -05:00
morluto 2e83fbd394 test(mcp): consolidate browser source boundary checks (#13234) 2026-11-21 18:14:25 -05:00
morluto 190395eade fix(browser): retire detached WebMCP frame descendants (#13233) 2026-11-21 23:12:06 +00:00
morluto 04d399d675 fix(electron): preserve inspection frame identity and diagnostics (#13232) 2026-11-21 23:04:46 +00:00
morluto eba41afd6c fix(browser): retain passive coverage and failure identity (#13231) 2026-11-21 23:03:00 +00:00
morluto cfa04985c2 test(browser): consolidate runtime window and request contracts (#13230)
* test(browser): consolidate runtime window and request contracts

* test(browser): distinguish reused request producer fields
2026-11-21 22:55:15 +00:00
morluto 39ccb1d3b8 fix(browser): preserve terminal verifier startup outcomes (#13228) 2026-11-21 22:45:18 +00:00
morluto 6e300622e9 test(browser): consolidate bundle admission and retained facts (#13227) 2026-11-21 22:32:34 +00:00
Harsh Asalkarandmorluto 63c50ecfc0 feat(setup): discover project-scoped MCP registrations in doctor and … (#7283)
* feat(setup): discover project-scoped MCP registrations in doctor and uninstall

* fix(setup): preserve OpenCode layer fields, user launcher provenance, and user fallback

* fix(setup): restore working directory in tests and refine replacement and launcher provenance

* fix(setup): bound OpenCode discovery to worktree and enforce Pi project trust

* fix(setup): preserve Pi project trust failures in doctor and prevent skipping project registrations in uninstall

* fix(setup): defer cross-setting environment validation and decouple OpenCode launcher ownership

* fix(setup): separate OpenCode readiness schema from launcher ownership and fix cross-setting test

* fix(doctor): include project remediation when disabled project registration inherits outdated user launcher

* fix(setup): scope status properties to project-scoped registrations

Omit scope and launcher_scope when no project-level configuration was discovered or evaluated, ensuring user-level registrations retain their exact unextended status contract in isolated environments without project files.

* fix(setup): prevent activating unowned launchers during uninstall and align array normalization

Prevent activating unowned or foreign launchers hidden in lower-precedence configurations during project-scoped uninstall, normalize array command arguments uniformly in OpenCode ownership parsing without appending separate args, and clarify field inheritance in client configuration documentation.

* fix(setup): check effective remaining launcher on uninstall and preserve cleanup failure

* fix(uninstall): preserve user configuration path in project client to check fallback ownership

* fix(uninstall): scope fallback configuration paths only to project-scoped clients

* fix(doctor): validate effective merged Pi flags and preserve MSIX selection during uninstall

* fix(uninstall): preserve surviving OpenCode project registrations across complete configuration layers

* fix(uninstall): require surviving OpenCode server to carry a launcher when checking layered activation

* fix(uninstall): rely on full layered check for OpenCode instead of lower-only fallback

* fix(doctor): preserve source paths for inherited environment failures

When a trusted Pi project partial override or an OpenCode project registration inherits an invalid REA environment value from user configuration (or an ancestor configuration), attribute the resulting doctor invalid registration error to the contributing configuration source rather than the winning project file. Preserves source evidence provenance across merged configuration layers so doctor remediation points the user to the file that actually requires repair.

* test(doctor): exercise effective cross-setting merge failure in inherited environment tests

Replace scalar validation errors with cross-setting constraints (REA_GHIDRA_PROGRAM_NAME without REA_GHIDRA_PROJECT_PATH) in inherited environment regression tests so individual fragments pass and the failure is only triggered during effective layer merge, directly protecting contributingEnvironmentSource provenance lookup.

* fix(uninstall): allow cleaning up owned entries in untrusted Pi projects

Evaluate Pi project trust in unownedLowerLayerFallback so owned entries in untrusted Pi projects can be cleanly removed without falsely claiming that removal would activate an unowned user launcher.

* fix(uninstall): require confirmed untrusted decision to skip Pi fallback check

Only skip the unowned lower-layer fallback check when Pi project trust is confirmed untrusted (trust.ok && !trust.value). When Pi trust reading or parsing fails (!trust.ok), preserve the unresolved state and conservatively inspect the lower layer so that an unowned user launcher is not inadvertently exposed if the project was trusted.

* fix(doctor): track activation provenance across layers and normalize platform path identity

- Track activation source provenance (activationScope, activationConfigPath) across Pi and OpenCode configuration layers so activation drift remediation points to the exact file contributing the disable/enable flag rather than nearest fragment.
- Normalize path identity case-insensitively on Windows and macOS when deduplicating user configuration from OpenCode hierarchy and Pi project candidates.
- Qualify Pi project registration docs with trusted projects prerequisite and fallback semantics.

* fix(doctor): isolate platform casing tests and restore cwd mocks

* fix(doctor): use filesystem identity for path normalization and verify present files in case tests

* fix(doctor): preserve inherited schema provenance and include activation in project package remediation

* fix(doctor): report the contributing registration and activation sources

* test(doctor): exercise combined Pi activation and launcher repairs

* fix(doctor): honor OpenCode activation by config dialect

* fix(doctor): share project registration activation and provenance

* fix(setup): plan project removals before writes and isolate provider probes

* fix(doctor): preserve OpenCode registration and launcher provenance

* fix(doctor): use shared registration error and path provenance

* fix(doctor): gate desktop probes on registration authority

* fix(uninstall): skip absent project configuration candidates

* fix(uninstall): compare effective project registration before removal

* fix(doctor): guide project package launcher migration

* test(doctor): verify OpenCode project launcher migration advice

* fix(uninstall): separate project load order from write targets

* fix(doctor): preserve OpenCode directory alias precedence

* fix(uninstall): preserve unchanged remote project registrations

---------

Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>
2026-11-21 22:19:56 +00:00
8d6552e928 feat(config): persist provider settings in a user config file (#3023)
* feat(config): persist provider settings in a user config file

Providers currently rediscover install paths from scratch in every
process, so a path set once (for example GHIDRA_INSTALL_DIR) silently
reverts on the next run. Introduce ~/.config/rea/rea.json as the
user-owned persistence layer and merge it into the environment
snapshot before configuration parsing, keeping env > config file >
auto-detect precedence on both the CLI and MCP entry points.

Add a rea config command (list/get/set/unset) as the write surface,
reporting the effective value and where it came from.

* fix(config): address review findings on persistence safety and CLI surface

- stage config writes beside the file and rename into place so an
  interrupted write cannot leave partial JSON (greptile #4, codex #11)
- convert unreadable config files into configuration errors on the CLI
  seam instead of escaping raw filesystem errors (greptile #5, codex #15)
- keep injected runtimes without a config root isolated from the host
  account's rea.json (codex #18)
- surface the config file error on stderr when doctor falls back to the
  raw environment (greptile #3, codex #16)
- route the config command through logCliCommand and return documents so
  --json stays parseable and failures exit non-zero (greptile #2,
  codex #10)
- reject empty --set values, unknown --set/--unset/--get names, and --get
  combined with mutations (greptile #1/#7, codex #9/#12/#13/#17)
- cover the new behavior in the boundary tests and stop leaking one
  temporary home per run (greptile #8)

* fix(config): validate and back up persisted provider settings

* fix(config): keep saved provider defaults out of client registrations

* fix(config): preserve provider discovery and budgets for saved settings

* fix(config): check only settings needed by the IDA deadline lookup

* fix(config): share effective provider settings and verify config file reads

* fix(doctor): share selected settings with Hopper and ILSpy probes

* fix(config): resolve the destination of first-time saves

* fix(doctor): preserve unresolved provider location inputs

* fix(doctor): honor inherited IDA deadline overrides

* fix(config): show empty environment overrides

* fix(setup): preserve client-selected saved configuration roots

---------

Co-authored-by: Jackzigen <zigenhan@gmail.com>
Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>
2026-11-21 22:02:35 +00:00
morluto 7b3fb897c0 test(browser): consolidate source-map and deadline contracts (#13220) 2026-11-21 16:57:36 -05:00
morluto d41af199f0 fix(browser): preserve malformed request-body coverage (#13219) 2026-11-21 21:57:26 +00:00
morluto 0ee5f8461e test(capture): consolidate redirect and URL admission checks (#13218) 2026-11-21 21:47:27 +00:00
morluto 9528005707 test(capture): consolidate historical runtime retry coverage (#13217) 2026-11-21 21:44:09 +00:00
abba1f43bb fix(setup): register aube's bin shim instead of its versioned store path (#5311)
* fix(setup): register aube's bin shim instead of its versioned store path

mise's npm backend installs with aube, whose bin is a shell shim that runs
the script inside one version's store directory. Setup registered that
versioned script, which the next upgrade removes from under the agents.
Setup now registers the shim when it proves, from the shim's own header,
that it runs this exact entrypoint, and registration identity accepts that
shim as REA's own.

Refs #4847

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

* fix(setup): move aube store registrations to the shim and follow links to it

Status now reports a direct registration as stale when the running
entrypoint has an aube bin shim and the registration is not that shim, so
doctor and setup move registrations written before this fix. A link to a
shim resolves the target from the shim's real directory, as the shim does.
The shim check runs only when the exact-path check does not already own the
command, applies on every platform (the header alone decides), and a failed
close no longer escapes classification. The test now lays out versions the
way mise does, with `latest` as a symlink.

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

* fix(setup): launch managed shims without client PATH dependencies

* fix(setup): bind Node for installed Aube shims without a sidecar

* fix(setup): keep an independent Node fallback for Aube shims

* fix(setup): preserve independent Node aliases across upgrades

* fix(setup): reuse verified Node for host-bound Aube shims

* fix(setup): keep Aube registrations across shim format changes

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>
2026-11-21 16:34:38 -05:00
morluto e5850aff15 test(capture): consolidate historical worker lifecycle checks (#13216)
* test(capture): consolidate historical worker lifecycle checks

* test(capture): keep pre-launch cancellation classification
2026-11-21 21:31:19 +00:00
pedrocormannandClaude Opus 5.5 73bc6f48c7 fix(javascript): read the target of method-first request(method, url) calls
endpointArgument takes the first literal of a get/post/put/patch/delete/request
call as its endpoint candidate. Method-first clients (superagent's
request(method, url), needle.request, Angular HttpClient.request) put the HTTP
method there, so Api.request("get", "/api/v1/profile") reported the candidate
"get" in both analyze_javascript_application and analyze_web_bundle, and the
path was lost.

For a request callee whose first literal is a standard HTTP method (the
XHR_METHODS set that xhrOpenUrl uses, compared after toUpperCase), an exact
second string is now the candidate. A computed target keeps the method token,
so request("POST", target) is unchanged, as are RPC names, Octokit route
strings and URL-first calls.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 22:29:49 +01:00