Commit Graph
2733 Commits
Author SHA1 Message Date
Vincent Koc b25f05e886 test(reference): share successful source read fixtures (#15927) 2026-12-02 12:19:29 +00:00
Vincent Koc d4c89cc7cb test(javascript): share package subpath fixtures (#15908) 2026-12-02 11:59:32 +00:00
Vincent Koc c6aa2a0f85 refactor(binary): share raw load address projection (#15901) 2026-12-02 11:47:07 +00:00
Vincent Koc 34fa343534 refactor(ledger): reuse evaluation maps for orphan manifest IDs (#15898) 2026-12-02 11:43:11 +00:00
Vincent Koc c8beaeb995 refactor(environment): share argument name reservation (#15896) 2026-12-02 11:24:47 +00:00
Vincent Koc f8767e9b71 refactor(javascript): share built-in graph relation resolution (#15881) 2026-12-02 10:44:55 +00:00
Vincent Koc 48a29fcc15 refactor(elf): share kernel module entry-section validation (#15875) 2026-12-02 10:31:24 +00:00
Vincent Koc 0b243905e4 refactor(apple): share bundle executable error handling (#15869) 2026-12-02 09:56:41 +00:00
Vincent Koc 9ec3ca87bc refactor(javascript): share workflow graph input validation (#15864) 2026-12-02 09:46:11 +00:00
Vincent Koc 761b7a439a refactor(investigation): finish linked Evidence through one path (#15860) 2026-12-02 09:35:29 +00:00
Vincent Koc eec2009d91 test(desktop): share export deadline test fixtures (#15862) 2026-12-02 09:26:16 +00:00
Vincent Koc 552ec327fe refactor(setup): reuse configuration cleanup failure handling (#15856) 2026-12-02 09:17:54 +00:00
Vincent Koc 95ac5084cc refactor(setup): share missing-file checks across setup and uninstall (#15789)
* refactor(setup): share missing-file checks across setup and uninstall

* test(clients): assert the scoped catalog mismatch
2026-12-02 16:48:52 +08:00
Vincent Koc 0e23515936 test(wasm): share comparison Evidence fixtures (#15847) 2026-12-02 08:36:18 +00:00
Vincent Koc 74fa22cc71 refactor(environment): classify learned identifier pairs once (#15828) 2026-12-02 07:58:29 +00:00
Vincent Koc ac02fee207 refactor(evidence): share cleanup observation promotion (#15825) 2026-12-02 07:45:35 +00:00
Vincent Koc 26756f3c28 refactor(artifacts): share unavailable JavaScript evidence construction (#15821) 2026-12-02 07:25:37 +00:00
Vincent Koc b9e5a53ff9 refactor(guidance): share invalid cursor errors (#15806) 2026-12-02 06:28:36 +00:00
gensokyo-devandgensokyo-dev 9841b45512 refactor(settings): return the unknown-operation refusal as a Result
inspect_analysis_settings refused an unknown operation by throwing, and the
MCP binding caught the exception to turn it back into an error result. The
return type did not describe the refusal. AnalysisSettings.inspect now returns
a Result, the binding maps it directly, and update reads the unvalidated
snapshot through a private helper.

Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-12-02 14:11:07 +08:00
Beqa d5cf615e92 fix(settings): refuse unknown inspect_analysis_settings operations
A typo in operation returned settings: [] like a real tool with no
editable settings. Refuse names that are neither an advertised tool nor
an operation any setting applies to.
2026-12-02 14:11:07 +08:00
GamerDubz 104c1c189e test(clients): verify native OpenCode integration against OpenCode V2 (#10178)
* test(clients): verify native OpenCode integration against OpenCode V2

The OpenCode client lane targeted OpenCode V1 (opencode-ai@1.18.35) and
could not pass against OpenCode V2. The V2 skill tool names its argument
`id`, so the lane's `{ name: ... }` call was rejected with "id: Missing
key" and the personal skill never loaded.

Bring the lane to OpenCode V2:

- Call the skill tool with `id` under V2 and keep `name` for V1.
- Register REA in the native `mcp.servers` table and read additional skill
  sources from the `skills` array; grant tool access with a `permissions`
  ruleset. The V1 dialect remains selectable with
  `REA_VERIFY_OPENCODE_DIALECT=v1`.
- OpenCode V2 groups MCP tools behind its Code Mode tool by default, so the
  lane sets the documented `codemode: false` server option to observe the
  forwarded catalog as direct function tools. REA's refresh preserves that
  client-owned option, which the lane now covers.
- Start a private server under V2. The shared background service keeps the
  environment it started with and would read the caller's own configuration
  instead of the lane's isolated one.
- Isolate the home for both platforms. The lane set only USERPROFILE, so a
  POSIX run resolved the caller's real home for the shared skill directory.
- Take the expected catalog from the runtime under test, so
  `REA_VERIFY_RUNTIME_ROOT` can point at an installed package whose catalog
  differs from this checkout.
- Record the dialect, plugin-isolation mechanism and tool surface in the
  receipt. OpenCode V2 dropped OPENCODE_PURE, so the V1 isolation claim no
  longer described what ran.

The lane no longer refuses Windows, so the OpenCode integration can be
verified on a native Windows host.

* fix(clients): isolate OpenCode verifier config and coverage claims

Clear inherited OPENCODE_CONFIG and OPENCODE_CONFIG_CONTENT so the lab
cannot load the caller's configuration layers. Record V2 as verified
only on native Windows and leave POSIX V2 explicitly unverified.

* fix(clients): pin OpenCode verifier to a full REA catalog

Clear inherited REA_MCP_TOOL_FAMILIES and set REA_MCP_TOOL_CATALOG_PROFILE=full so setup and the MCP child always advertise the complete catalog the fixture asserts.

* fix(ci): pin Native MCP OpenCode checks to @opencode/cli@2.2.7

The verifier defaults to the OpenCode V2 dialect, but the Native MCP
registration workflow still installed opencode-ai@1.19.6 without selecting
v1. Point the matrix at the published V2 CLI that supports the V2 config
and --standalone.

* fix(clients): harden OpenCode V2 verifier modes and launch seeds

Keep Code Mode enabled for scoped-chat and assert the paginated catalog
search, clear inherited REA MCP capacity/schema settings that can reject
fixture calls, and accept Aube-managed shim launchers alongside the
raw Node/script/mcp shape.

* fix(clients): only require Code Mode catalog search for OpenCode V2

* fix(clients): clear OpenCode verifier ambient budget and Windows env aliases

Unset inherited REA_AGENT_RESULT_BUDGET_BYTES so the fixture keeps complete
Evidence, and delete cleared OpenCode/REA launch seeds case-insensitively
before spawn so mixed-case Windows aliases cannot survive.

* fix(clients): require Windows packaged OpenCode runtime and isolate V2 ancestors

Document that Windows call verification needs REA_VERIFY_RUNTIME_ROOT with a
matching packaged runtime, and refuse OpenCode V2 lab runs when an ancestor
project configuration file would join the private server.

* fix(clients): qualify POSIX OpenCode V2 coverage and dialect Windows hint

Limit checked-in POSIX V2 claims to scoped-chat catalog search and point
Windows preflight recovery at the selected OpenCode package major.

* fix(clients): match OpenCode runtime contracts and clear registration seeds

Reject a REA_VERIFY_RUNTIME_ROOT whose package version or tool catalog
differs from this checkout, and clear every selected registration setting
from SetupRegistrationEnvironment instead of a hand-maintained MCP list.

* fix(verification): bind OpenCode fixtures to selected runtime

* fix(verification): refuse discovered OpenCode plugin sources

* test(verification): reject plugins before starting OpenCode

* test(ci): exercise packaged OpenCode on Windows

* fix(verification): type the selected-runtime fixture reader

* chore(ci): use pinned npm for Windows client proof

* docs(verification): distinguish Windows runner isolation

* test(verification): keep compiled fixtures in the built test lane

* test(verification): type catalog fixtures without generated output

* fix(ci): classify automated OpenCode verification
2026-12-02 13:39:47 +08:00
ShuaixinHuangandShuaixinHuang afd746fba4 perf(evidence): resume oversized JSON paging across requests (#15752)
* perf(evidence): resume oversized JSON paging across requests

* refactor(evidence): align serialized chunk offsets

---------

Co-authored-by: ShuaixinHuang <197200901+ShuaixinHuang@users.noreply.github.com>
2026-12-02 13:36:58 +08:00
ShuaixinHuang 8dc37bfcea perf(evidence): bound temporary storage for filtered unknown pages (#15747) 2026-12-02 13:36:47 +08:00
Vincent Koc 93dcb1a8a8 refactor(ledger): share Evidence links from bindings (#15775) 2026-12-02 04:57:09 +00:00
Vincent Koc c19f474453 refactor(config): share the final YAML member edit (#15766) 2026-12-02 03:44:20 +00:00
Vincent Koc 6bb42af594 refactor(apple): share missing bundle layout reporting (#15757) 2026-12-02 02:51:00 +00:00
Vincent Koc 8412025724 refactor(doctor): share provider check classification (#15754) 2026-12-02 02:47:27 +00:00
Vincent Koc cd2f4dd985 refactor(setup): reuse unresolved registration status projection (#15742) 2026-12-02 02:38:11 +00:00
Vincent Koc a795e1a46a refactor(setup): share MCP stdio connection profiles (#15734) 2026-12-02 02:17:12 +00:00
Vincent Koc b0a6081ef2 test(vsix): share the inspection report fixture (#15729) 2026-12-02 01:55:33 +00:00
Vincent Koc cacaefe8f8 refactor(api-contract): share parser heap admission (#15725)
* refactor(api-contract): share parser heap admission

* refactor(errors): centralize measured heap refusals

* test(api-contract): isolate parser heap regression
2026-12-02 01:47:46 +00:00
Vincent Koc 106dbf8e72 test(application): reuse inspection input refusals (#15724) 2026-12-02 01:31:18 +00:00
Vincent Koc 449fef2c03 test(packages): reuse late cancellation evidence fixture (#15720) 2026-12-02 01:18:45 +00:00
Vincent Koc 35a43708bf test(resources): reuse bundle cleanup promise fixtures (#15715) 2026-12-02 01:04:41 +00:00
Vincent Koc 98c7ee53a0 refactor(mcp): share client configuration presence checks (#15708) 2026-12-02 00:54:42 +00:00
Vincent Koc c40e85a9cf test(pcap): share empty capture fixture fields (#15707) 2026-12-02 00:53:00 +00:00
Vincent Koc 8c9516ae3e refactor(guidance): share documentation result formatting (#15700) 2026-12-02 00:29:31 +00:00
Vincent Koc 017c2de642 refactor(pe): reuse load-config evidence range projection (#15692) 2026-12-02 00:11:00 +00:00
2SinceJuly 6943bc32b5 fix(doctor): stop offering Hopper setup where its installer cannot run (#15633)
* fix(doctor): stop offering Hopper setup where its installer cannot run

Doctor told every host without HOPPER_LAUNCHER_PATH to run 'rea setup to install Hopper'. Setup already classifies that request: on Windows it refuses with 'REA supports Hopper on macOS and selected x86_64 Linux distributions', and on macOS older than 12 it says to upgrade. Users on those hosts were sent to a step that cannot work (a Windows dry run even printed the macOS hdiutil plan).

Move the per-platform install decision into a single hopperSetupSupport owner in LinuxHopper.ts. Setup planning now folds its result into the eligibility it already carried, and doctor reads the same host facts (macOS version, Linux distribution) to pick its remediation: point at 'rea setup' only where the installer can run, and otherwise name the hosts that support Hopper and point at an existing provider or launcher.

The probe host gains architecture, macosVersion, and linuxDistribution so a client-selected environment keeps the machine's platform facts.

* fix(doctor): keep an unreadable macOS version unknown in Hopper advice

hopperSetupSupport folded an unparseable macOS version into the macOS 12
floor refusal, so a host whose probe failed was told to upgrade while the
host check reported the same value as unknown. Report the version as
undeterminable instead, matching the host check's wording and preserving
the uncertainty across the boundary.
2026-12-01 18:57:54 -05:00
Vincent Koc 89fbd96bb9 test(mcp): share global registration client fixtures (#15690) 2026-12-01 23:56:40 +00:00
Vincent Koc c62e1fe51e refactor(environment): share state entity key extraction (#15688) 2026-12-01 23:55:48 +00:00
Vincent Koc 1ff9d32b35 refactor(shortcut): share evidence range selection (#15681) 2026-12-01 23:40:22 +00:00
Vincent Koc f147d79efd refactor(evidence): share metadata report subject facts (#15678) 2026-12-01 23:34:32 +00:00
morluto 44fbcfc787 feat(evtx)!: page event records with offset and report page facts (#15636)
* feat(evtx): page event records with offset and report page facts

inspect_evtx_archive stopped walking at max_records, so records past the first 20,000 (the newest events of a default-size Application log) could not be listed. The walk now covers every record. max_records stays a 20,000-record page bound, which limits retained Evidence. A new zero-based offset selects the first record listed. The result reports page { offset, limit, returned, total, next_offset }, and the record-limit-reached diagnostic names offset=next_offset. Coverage now describes parse loss only, so a page that leaves records out by selection is no longer partial, and chunk ending facts and endpoint checks cover records past the page.

Fixes #15612

* feat(evtx)!: qualify the file-tail offset for small and wrapped logs

The suggested tail offset is now the larger of 0 and page.total minus max_records, so a log smaller than one page gets a valid offset. File order is oldest first only in a log that has not wrapped; the guide and descriptions now say how chunks[] locates the newest records in a wrapped log.

BREAKING CHANGE: inspect_evtx_archive results now require page. Evidence saved before this change has no page, and inspect_analysis_view refuses to summarise it. Re-run inspect_evtx_archive on the log to produce current Evidence.
2026-12-01 17:15:02 -05:00
Vincent Koc 2e5147ffd2 refactor(reference): share import key ordering (#15642) 2026-12-01 22:13:32 +00:00
morluto 62e7c0b050 fix(views): size evidence-json pages to the effective agent result budget (#15638)
* fix(views): size evidence-json pages to the effective agent result budget

An over-budget delivery names inspect_analysis_view evidence-json at offset
0 as its next call. With limit omitted, a page held at most 24,576 bytes of
escaped text, sized for the 32 KiB default budget with a fixed 8 KiB
allowance for its view Evidence. Below about 32 KiB (the minimum is 4,096),
following next returned another answer over the budget.

The view service now pages an omitted limit as the largest page whose
view Evidence, measured as delivered, fits the effective budget (the
runtime override, then REA_AGENT_RESULT_BUDGET_BYTES, then the default).
A page over the budget shrinks by its measured excess and is projected
again. The MCP binding, application-execution views and the CLI pass the
launch seed they captured. A default page also never spans more code
units than the largest explicit limit, so large budgets keep fitting the
stdio frame. The fixed envelope constant and default page size are gone.

* perf(views): reuse the last window while shrinking an uncached evidence-json page
2026-12-01 17:13:14 -05:00
morluto 2271e21a00 fix(setup): keep Hopper advice and plans off hosts without Hopper (#15635)
* fix(setup): keep Hopper advice and plans off hosts without Hopper

On Windows, doctor told people to run rea setup to install Hopper, and
rea setup --install-hopper --dry-run then showed the macOS installer before
refusing. Hopper runs only on macOS and Linux.

The Hopper provider, doctor and setup now share one host rule. On another
host doctor reports Hopper as unsupported_host, even for a configured
launcher the provider would refuse, and names Ghidra or IDA as the next
step. Setup refuses an explicit Hopper installation before planning, so no
host shows an installer it cannot run, and its Windows refusal names the
command to run instead.

* test(package): expect no Hopper plan where setup refuses it

The package verifier required an install_hopper plan from
setup --install-hopper on every host, including Linux arm64 and Windows,
where setup refuses. Setup now refuses before planning there, so the
verifier expects the installer plan only where Hopper setup is supported.
2026-12-01 21:55:49 +00:00
morluto 05a9e8fb66 fix(desktop): recognize unpacked resources/app Electron applications (#15632)
* fix(desktop): recognize unpacked resources/app Electron applications

Electron loads an application from resources/app.asar, resources/app or
resources/default_app.asar. The desktop path convention recognized only the
ASAR names, so VS Code and GitHub Desktop, which ship an unpacked
resources/app folder, got no Electron candidate and only .NET probes for the
managed helpers they bundle.

The convention owner now reports the Electron application layout and its
depth for both forms. inspect_desktop_application emits an
electron-app-directory-convention fact for resources/app/package.json, adds it
to the Electron candidate and offers analyze_javascript_application on the
folder. Electron application probes are now application priority, so bundled
managed or native helpers no longer lead next_probes. Release exposure reads
the layout folder from the same convention, so an unpacked build names its
fuse host like an ASAR build.

* fix(desktop): derive Electron probes before bundled managed helpers

A bundled managed helper with its own .runtimeconfig.json, such as Git
Credential Manager in GitHub Desktop, is application priority too. Its probe
was derived first, so the stable priority sort still put it ahead of the
Electron application. Derive the Electron candidate and probes first.
2026-12-01 16:35:04 -05:00
Vincent Koc 52c712c26d refactor(setup): share aggregate uninstall status (#15629) 2026-12-01 21:30:29 +00:00
Vincent Koc e6edca0403 refactor(views): reuse indexed load-image paging (#15628) 2026-12-01 21:17:59 +00:00