Commit Graph
6964 Commits
Author SHA1 Message Date
Vincent Koc 1b3e3ee83e test(analysis-view): reuse graph binding for source fixtures (#16338) 2026-12-03 12:18:28 +00:00
Vincent Koc aef3fb790d test(api-contract): share retained view fixture calls (#16335) 2026-12-03 12:08:11 +00:00
Vincent Koc 34599ec5ff test(cli): share instructions completion fixtures (#16330) 2026-12-03 12:00:02 +00:00
Vincent Koc b635ff751e test(cli): share timing flag fixture matrix (#16327) 2026-12-03 11:29:03 +00:00
Vincent Koc d3e70b88a2 test(cli): share logged command fixture execution (#16320) 2026-12-03 11:00:55 +00:00
Vincent Koc c41d023097 test(macos): share package resource fork fixtures (#16315) 2026-12-03 10:49:15 +00:00
Vincent Koc baaabb3dfa test(cli): share accessibility comparison result checks (#16317) 2026-12-03 10:46:10 +00:00
Vincent Koc b013a2ff28 test(cli): share analysis view request fixtures (#16314) 2026-12-03 10:36:10 +00:00
Vincent Koc d5ed402722 test(plist): share native CLI fixture invocations (#16310) 2026-12-03 10:30:12 +00:00
Vincent Koc 246f63a304 test(cli): share Unicode output capture setup (#16307) 2026-12-03 09:49:21 +00:00
Vincent Koc 77235a7fd3 test(apple): share archive CLI projection fixtures (#16304) 2026-12-03 09:35:00 +00:00
0af842ad26 feat(firmware): disassemble RISC-V, MIPS32, PowerPC, and ARM64 split-immediate MMIO accesses (#15413)
* feat(firmware): disassemble RISC-V, MIPS32, PowerPC, and ARM64 split-immediate MMIO accesses

* fix(firmware): tighten SVD interval inheritance and split-immediate register tracking

* fix(firmware): bound inherited SVD block expansion and decode exact destination GPRs

* fix(firmware): clear Rs across acquire-ordered ARM64 CAS and CASP variants

* chore(mcp): sync advertised schema summary and budget projection with main

* fix(firmware): bound CMSIS-SVD numeric widths before BigInt and index expansion

* fix(firmware): keep rejected SVD addressBlocks distinct from omitted spans

* fix(firmware): bound MMIO representation growth and preserve SVD ambiguity

* perf(firmware): memoize SVD address lookups and pre-rank peripheral names

* fix(firmware): scan a whole application image by default for MMIO syntheses

On the 1.36 MB IROM segment of the MicroPython 1.24.1 ESP32-C3 image, a
default call scanned 256 KiB and kept 512 of 713 matching accesses. The
omitted rows were not in the retained Evidence, so the agent had to repeat
the call with larger controls or page by scan_offset. Defaults now scan
4 MiB and keep up to 32,768 syntheses within a 16 MiB representation
allowance, matching the literal-pool tool. Retained summary delivery still
sizes what reaches the agent. The image completes in about 1 s with 4,073
syntheses.

Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>

* refactor(firmware): use MMIO synthesis maximums as their defaults directly

The default scan, synthesis and representation constants only repeated
their maximums, which Knip reports as duplicate exports. The budgets and
the parser fallback now name the maximums.

Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>

* fix(firmware): bound SVD match cache weight, exclude RISC-V flash, and report scan-limit stops

---------

Co-authored-by: gensokyo-dev <gensokyo-dev@users.noreply.github.com>
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-12-03 17:22:49 +08:00
Vincent Koc 753feb550d test(cli): share filtered rows command fixtures (#16301) 2026-12-03 09:21:01 +00:00
Vincent Koc 2ecbb734c8 test(cli): share expected require resolution edges (#16298) 2026-12-03 09:07:45 +00:00
Vincent Koc 30a70b138b test(javascript): reuse package specifier fixture writer (#16296) 2026-12-03 09:07:12 +00:00
04d473ca0b feat(firmware): disassemble ARM and Xtensa PC-relative literal-pool MMIO loads (#14447)
* feat(firmware): disassemble ARM and Xtensa PC-relative literal-pool MMIO loads

Disassemble PC-relative literal-pool load instructions (`arm-thumb` 16-bit
LDR and 32-bit Thumb-2 LDR.W, `arm-a32` LDR, and `xtensa` L32R) from local
firmware images at an explicit `base_address` without target execution:

- Byte-granular `PoolByteBitset` suppresses forward and backward pool byte
  ranges even at `4k + 2` unaligned file offsets (`base_address` ending in 2).
- Two-pass Xtensa pool discovery preserves `L32R` alignment after leading or
  interleaved 4-byte literal pools and preserves valid `21 36 01` encodings.
- Indexed `O(log M)` CMSIS-SVD disjoint `<addressBlock>`/`<register>` matching
  with cycle-safe multi-hop `derivedFrom` resolution, `mapped_image` bounds
  precedence, exact ARMv7-M/v8-M SCS sub-blocks, and `arm-a32` SoC neutrality.
- Cooperative `setImmediate` event-loop yields with `AbortSignal` cancellation,
  complete retained Evidence with `detail: "summary"` and `inspect_analysis_view`
  (`firmware-literal-pools`), `max_svd_nodes` parameter budget, and
  field-specific `invalid_request` validation.

* fix(firmware): bound SVD and candidate memory, preserve overshadowed loads, and report required_value

* fix(firmware): resolve SVD derivedFrom chains iteratively and restore lifecycle test title

* fix(firmware): bound Xtensa trace and SVD representation memory, make Evidence cooperative, and preserve unaligned literal loads

* fix(firmware): retain completed literal-pool scans on late cancellation and avoid repeated SVD string hashing

* fix(firmware): walk SVD register clusters, sweep dense overlaps linearly, and preserve XML depth recovery

* fix(firmware): enforce profile-wide cooperative SVD cluster expansion budget and sync schema

* fix(firmware): pre-parse SVD cluster templates, inherit defaults, and keep Xtensa framing

* fix(firmware): share inherited SVD template chains and count compact arrays as single intervals

* fix(firmware): replace SVD override chain links with persistent O(log K) treap

* fix(firmware): default max_references to the representation-bounded maximum

The IROM segment of the MicroPython 1.24.1 ESP32 image resolves 35,179
literal-pool loads. A default call scanned it and then refused at 16,384
references, so the agent had to repeat the whole scan with a larger
max_references. The count is checked after scanning, and
max_representation_bytes already bounds the Evidence these rows build. The
default is now the maximum; the same image completes in 1.4 s with a 12 MB
complete result.

Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>

* refactor(firmware): use the max_references maximum as its default directly

Knip reported DEFAULT_LITERAL_POOL_MAX_REFERENCES as a duplicate export of
MAX_LITERAL_POOL_REFERENCES. The budget now names the maximum as its
default, and the provider test reads the default from the budget.

Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>

* fix(firmware): preserve inherited SVD register widths and addressBlock spans

---------

Co-authored-by: gensokyo-dev <gensokyo-dev@users.noreply.github.com>
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-12-03 17:00:14 +08:00
Vincent Koc 553288963f test(ci): share PR health fixture inputs (#16292) 2026-12-03 08:52:06 +00:00
Vincent Koc cf54d0af98 test(cli): share literal Evidence bundle arguments (#16291) 2026-12-03 08:41:32 +00:00
bf7646b0c7 feat(firmware): classify privileged system-register, CSR, and port-I/O instructions (#14422)
* feat(firmware): classify privileged system-register, CSR, and port-I/O instructions

Add `inspect_procedure_hardware_instructions` (`rea inspect-procedure-hardware-instructions`)
to extract and classify architectural non-MMIO hardware instructions from
`read_function_instructions` across `arm`, `arm64`, `riscv`, `xtensa`, `mips`,
`x86`, and `x86_64`.

- Parse provider `<nativeAddress>: <assembly>` lines through the shared native
  address grammar (`OBSERVED_NATIVE_ADDRESS_PATTERN` / `nativeAddressInputSchema`)
  without stripping 2-hex-letter mnemonics (`dc`) or discarding address spaces
  (`rom:0x1000`, `overlay%3Aspace:0x1000`).
- Normalize conditional A32/T32 system, coprocessor, barrier, wait, and trap
  mnemonics (`mrcne`, `mcrgt`, `mrsne`, `msreq`, `cpsie.w`, `wfene`, `wfine`,
  `sevne`, `svcne`) while preserving original disassembled mnemonics, and cover
  AArch64 `dc`/`ic`/`at`/`tlbi` maintenance operations.
- Parse complete 8-bit immediate x86 port tokens (`0x00..0xff` across `0x`,
  Intel `h`, `$`/`#`, and decimal syntax), keep register-selected `DX` ports as
  `unresolved_register`, and separate symbolic or unparsed port tokens as
  `unresolved_operand`.
- Classify zero-source RISC-V CSR set/clear pseudo-instructions (`csrsi csr, 0`,
  `csrci csr, 0`, `csrs csr, zero`, `csrc csr, x0`) as `read` consistently with
  their canonical `csrrs`/`csrrc`/`csrrsi`/`csrrci` encodings.

Refs #7955

* chore(firmware): refresh the hardware-instruction advertised schema summary

The shared Evidence output schema on main now advertises its string
patterns, so the summary recorded on the older base was stale.

Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>

---------

Co-authored-by: gensokyo-dev <gensokyo-dev@users.noreply.github.com>
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-12-03 16:36:28 +08:00
Vincent Koc 4f0f74f43b test(cli): share probe contract fixtures (#16278) 2026-12-03 07:53:01 +00:00
Vincent Koc 8eabbd1ca4 test(macho): share dylib platform fixtures (#16254) 2026-12-03 06:29:43 +00:00
Vincent Koc 01ebd15b6c test(mcp): share artifact client setup (#16234) 2026-12-03 05:30:24 +00:00
CyberSprout 6c627682ba feat(artifacts): inspect and extract MCUboot firmware images (#15414)
* feat(firmware): inspect and extract MCUboot images offline

* fix(firmware): align MCUboot digest tags, ParseFailureError locations, and compact summaries
2026-12-03 13:02:15 +08:00
CyberSprout 60d804050c feat(firmware): disassemble ARM A/R, Atmel AVR, and Motorola 68000 vector tables (#15404)
* feat(firmware): disassemble ARM A/R, Atmel AVR, and Motorola 68000 vector tables

* fix(firmware): preserve legacy vector views and tighten AVR/ARM-AR bounds

* fix(firmware): report truncated AVR vector slots and remove unused wrapper

* fix(firmware): enforce ARM A/R LDR pc target rules and slot-based table coverage
2026-12-03 13:02:09 +08:00
c50b1bae9d feat(firmware): propose CPU, endianness, and load-base candidates for firmware blobs (#14419)
* feat(firmware): propose CPU, endianness, and load-base candidates for firmware blobs

* fix(firmware): preserve MCP caller inputs, x32 decoder width, and bounded ELF tallies

* fix(firmware): leave M-profile variant and PPC width unresolved and report observed file size

* chore(firmware): remove unused exported types flagged by knip

* fix(firmware): recognize x86_64 leave;ret functions, keep uImage ppc width unknown, and preserve MIPS ELF flags

* fix(firmware): preserve MIPS/ARM decoder uncertainty and partial scan stages

* fix(firmware): preserve MIPS16 and microMIPS ELF ASE mode declarations

* fix(firmware): admit Cortex-M vector tables with filled reserved slots

The Raspberry Pi Pico SDK fills reserved vector slots with its default
handler. The detector required them to be zero, so it missed the vector
table and load base of the MicroPython 1.24.1 RP2040 image and offered only
an instruction-census guess. Reserved slots may now hold a Thumb handler in
the Reset region; any other value still rejects the table.

Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>

* feat(firmware): identify ESP-IDF images from their header chip_id

The detectors found no candidate for the MicroPython 1.24.1 ESP32 image.
They have no Xtensa signature, and the chip is named in the image header.
A new esp-image-header detector recognizes the ESP-IDF header at offset 0
or a ROM bootloader offset, and takes the ISA from the existing ESP-IDF chip
table. The chip_id field now has one reader shared with the ESP image
parser. ESP32 images report Xtensa and ESP32-C3 images RISC-V.

Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>

---------

Co-authored-by: gensokyo-dev <gensokyo-dev@users.noreply.github.com>
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-12-03 13:02:04 +08:00
Som SamantrayandYsopwnable cfaee2f5f7 feat(build): add non-turbo source-build path for freebsd (#15247)
* feat(build): add non-turbo source-build path for freebsd

* test(build): keep direct-build coverage runnable without turbo and reap build children

* test(build): use processTest fixture and long-running tag for build tests

---------

Co-authored-by: Ysopwnable <161784452+N0zoM1z0@users.noreply.github.com>
2026-12-03 12:46:27 +08:00
07de725f17 feat(setup): register Mistral Vibe CLI client (#15278)
* feat(setup): register Mistral Vibe CLI client

* fix(setup): preserve inline Vibe entry order and reject non-boolean enable_mcp on read

* fix(setup): report duplicate Vibe registrations in doctor and preserve separated subtables

* docs(setup): record the Mistral Vibe 3.2.0 registration check

Mistral Vibe 3.2.0 on Linux loaded the setup registration through its
configuration schema and discovered REA's tools over stdio. After its own
`vibe mcp add` rewrote the file, setup made no change and uninstall removed
only the REA entry.

Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>

---------

Co-authored-by: gensokyo-dev <gensokyo-dev@users.noreply.github.com>
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-12-03 12:46:21 +08:00
d318d752a5 feat(api-contract): resolve same-document OpenAPI path item references (#15966)
* feat(api-contract): resolve same-document OpenAPI path item references

Refs #14392.

* fix(api-contract): deduplicate shared declaration diagnostics

* fix(api-contract): preserve operations from unresolved reference chains

* fix(api-contract): preserve and deduplicate source diagnostics

* perf(api-contract): avoid temporary reference counting work

* fix(api-contract): locate malformed shared path references

* fix(api-contract): preserve reference failure reasons in narrow pages

* test(api-contract): assert narrow pages without assuming union fields

* fix(api-contract): diagnose malformed references in conflicting path items

* feat(api-contract): filter path item references by resolution state

Once same-document Path Items resolve, a contract can hold thousands of
resolved references beside a few unresolved ones. Finding those required
paging every reference. The path-item-references collection now accepts
states, and the partial-coverage unknown names the selection to use.

Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>

---------

Co-authored-by: ShuaixinHuang <197200901+ShuaixinHuang@users.noreply.github.com>
Co-authored-by: gensokyo-dev <gensokyo-dev@users.noreply.github.com>
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-12-03 12:23:04 +08:00
gensokyo-devandgensokyo-dev 75b8a9f9eb fix(config): leave environment WABT directory admission to the WASM lane
A relative REA_WABT_BIN_DIRECTORY in the environment made the whole REA
configuration invalid, disabling unrelated tools, instead of returning the
WASM provider's directory_not_absolute diagnostic. Validate the saved value
in the user configuration owner beside REA_JADX_MCP_JAR, which follows the
same rule.

Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-12-03 12:22:58 +08:00
2SinceJuly 30bac88e18 feat(config): persist REA_WABT_BIN_DIRECTORY in the user config file
A plugin install has no `rea setup` registration to carry a WABT
tool directory, so the only way to enable inspect_wasm_artifact was a
client-wide environment variable, even though #3016 persisted the other
host-stable tool paths.

Add REA_WABT_BIN_DIRECTORY to PERSISTED_SETTINGS and the environment
schema as an absolute path, so `rea config --set`,
`rea config --get --json` and startup precedence (env > config > auto)
behave like REA_ILSPY_CMD_PATH and HOPPER_LAUNCHER_PATH. The value is
merged into the effective environment before the WASM provider reads it,
so no provider change is needed. Setup still leaves saved values in the
file rather than copying them into a client registration.
2026-12-03 12:22:58 +08:00
Vincent Koc 523bb18d89 test(ntfs): share empty journal MFT record fixture (#16211) 2026-12-03 03:45:15 +00:00
Vincent Koc 714f1a1144 test(maven): share retained metadata Evidence assertions (#16205) 2026-12-03 03:21:06 +00:00
Vincent Koc b911b391e8 test(mcp): share source publication recovery setup (#16203) 2026-12-03 03:06:42 +00:00
Vincent Koc 5a1515caa2 test(mcp): exercise real ZIP Zstandard refusals (#16200) 2026-12-03 03:03:20 +00:00
Vincent Koc 7cfee63b43 refactor(nvs): share decoded slot provenance (#16199) 2026-12-03 02:52:03 +00:00
Vincent Koc f0e6a766f6 test(native): share successful export report fixtures (#16196) 2026-12-03 02:44:43 +00:00
Vincent Koc dc6bf4a306 test(apple): share keyed archive scalar parity fixtures (#16190) 2026-12-03 02:26:13 +00:00
Vincent Koc 407cedca98 test(mcp): share retained comparison integrity setup (#16183) 2026-12-03 01:51:05 +00:00
Vincent Koc 31a71597ad test(js): share path autodetection fixture (#16172) 2026-12-03 01:34:28 +00:00
Vincent Koc 72145706ea test(cli): share artifact inspection response parsing (#16176) 2026-12-03 01:31:53 +00:00
Vincent Koc 0d8770e439 test(il2cpp): share fixture header prefix (#16171) 2026-12-03 01:28:14 +00:00
dependabot[bot]andVincent Koc b81002e05b build(deps): bump actions/checkout from 4.4.0 to 7.0.1 (#15409)
* build(deps): bump actions/checkout from 4.4.0 to 7.0.1

Bumps [actions/checkout](https://github.com/actions/checkout) from 4.4.0 to 7.0.1.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4.4.0...3d3c42e5aac5ba805825da76410c181273ba90b1)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: 7.0.1
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* test(ci): identify the trusted checkout independently of its release

* test(ci): narrow workflow step uses before matching checkout

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
2026-12-03 09:09:58 +08:00
Vincent Koc 5951ceb105 test(cli): share reference-source import fixture (#16166) 2026-12-03 01:07:49 +00:00
Vincent Koc 2d9a339afd test(mcp): share artifact comparison fixture setup (#16162) 2026-12-03 01:03:06 +00:00
Vincent Koc 27444f5ee6 test(lint): reuse the numeric limit registry fixture (#16156) 2026-12-03 00:42:43 +00:00
Vincent Koc e6e7420ed0 refactor(ci): collect fixed-ceiling facts in one AST walk (#16141) 2026-12-02 23:25:57 +00:00
Vincent Koc 595867a90c refactor(ci): collect verifier import edges in one parse (#16124) 2026-12-02 22:27:27 +00:00
Vincent Koc 58a2256742 test(sqlite): share inspection fixture requests (#16119) 2026-12-02 22:05:43 +00:00
Vincent Koc fdaa06a304 test(il2cpp): share metadata and binary request arguments (#16112) 2026-12-02 21:45:00 +00:00
Vincent Koc 6877531eae refactor(tooling): collect module boundary facts in one pass (#16111) 2026-12-02 21:38:37 +00:00