mirror of
https://github.com/morluto/rea.git
synced 2026-12-03 21:46:01 +00:00
* 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>
Documentation directory
Find an installation step, investigation guide, or contributor reference by task. The REA website has worked examples and product pages.
Getting started
- Installation and setup
- Supported targets and requirements
- Client configuration and troubleshooting
- CLI and Evidence
- Guided MCP prompts and completion
Desktop applications
- Desktop installation directories
- Desktop application capture
- Desktop application state
- Desktop application tasks
- Desktop application export
- Desktop build computer
- Desktop build witness
Agent environments
Native binaries
- Native binary investigation
- Go binary build metadata
- DWARF compile units
- Offline binary diagnostics
- YARA rule matches
- ELF separate debug files
- ELF and Mach-O initializer functions
- ELF unwind function ranges
- Mach-O function starts and data in code
- Linux kernel build config
- Recorded crash evidence
- Windows Shell Link shortcuts
- Acquired NTFS metadata
- Binary hardening
- ELF note tables
- ELF dependency tables
- Linux kernel modules
- PE Authenticode certificate tables
- PE import and delay-load tables
- PE TLS callbacks and load configuration
- PE x64 exception-directory function ranges
- PE overlay
- Match native functions across builds
- Rust binary dependency metadata
- LabVIEW RSRC containers
- Static CUDA and HIP code objects
JavaScript and Electron
- JavaScript Application Graph
- Cross-layer JavaScript application workflows
- JavaScript artifact reconstruction
- JavaScript source recovery
- Passive Node and Electron runtime observation
- JavaScript static/runtime reconciliation
- Electron file-page observation
- V8 code cache inspection
- Electron fuse state
- Static JavaScript route inventory
- Bun standalone executables
- Deno compile executables
- Node.js single executable applications
Browser and captured websites
- Website observation with CDP
- Browser scenario contract
- Website runtime source attribution
- Historical web network captures
- HTTP/3 capture lab
- Captured website source locations
- Captured website module relationships
- Captured website scripts and static JavaScript analysis
- Offline Playwright traces
Android applications
- Static Android APK analysis
- Apktool resource decoding
- ADB device inspection and acquisition
- Flutter build identification
- Android boot and vendor_boot images
- Android DTBO partition images
- APK signature schemes
Apple applications
.NET assemblies
- Managed-code analysis
- NuGet packages
- VS Code extension packages
- .NET single-file bundles
- IL2CPP metadata
Firmware
- Firmware analysis
- Firmware interrupt and trap vector tables
- Firmware CPU and load-base candidates
- Non-MMIO hardware instruction channels
- Android OTA update payloads
- Android Verified Boot vbmeta images
- Android sparse images
- UBI images
- Flattened devicetree inspection
- Firmware literal-pool MMIO disassembly
- ESP flash images
- ESP-IDF NVS partitions
- ESP images
- U-Boot FIT images
- Flash SWF files
- Qualcomm MBN images
- Image4 containers
- MCUboot images
- Intel HEX and S-record images
- UF2 and DfuSe images
- U-Boot legacy uImage containers
- uClinux bFLT flat executables
HarmonyOS packages
Packages and metadata
- Offline API contract inventory
- CycloneDX dependencies
- Maven POM and Gradle module metadata
- OCI image layouts
- Release exposure
- Model file declarations
- Python packaged applications
- Debian package inspection
- CPython pyc inspection
- Erlang BEAM files
- Godot PCK archives
- UnityFS AssetBundle archives
- iNES containers
- Nintendo DS ROMs
- Sega Mega Drive ROMs
- Nintendo 64 ROMs
- WeChat mini-program wxapkg archives
- macOS flat installer packages
- ISO 9660 disc images
- tar and gzip-compressed tar archives
- Unix ar archives
- Nintendo Switch NSO and NRO executables
- GPU asset headers: DDS, GLB, KTX and KTX2
- Media asset headers: Ogg Opus, RIFF/XMA2, Bink 2 and Vulkan pipeline cache
WebAssembly
EVM contracts
Databases and recorded packets
- SQLite database snapshots
- Recorded packet capture inspection
- Packet capture summaries
- Offline Windows event logs
Audit logs
Process capture and instrumentation
Provider setup and formats
- Ghidra provider semantics
- DOS MZ and COM analysis with Ghidra
- Optional NativeAOT metadata recovery
- MIPS ELF analysis through Ghidra
- PSP static ELF analysis through Ghidra
- RISC-V ELF analysis through Ghidra
- Windows Ghidra P0
- Headerless raw-binary analysis with Ghidra
- IDA provider
- JEB instrumentation and analysis
- GameCube DOL analysis through Ghidra
- PowerPC ELF analysis through Ghidra
- Kuna provider
- Reverse-engineering tool integrations
Contracts and evidence
- MCP runtime contracts
- Target failures
- Directory identity
- Reconstruction obligation ledgers
- Reconstruction coverage
Development and verification
- Documentation ownership and authoring
- Settings and recovery
- REA limit inventory
- MCP tool design
- Testing REA
- Client and agent verification
- Reconstruction readiness conformance
- Releasing REA
- Testing lanes and provider verification
- Measure MCP catalog costs in Codex
- Static analysis in GitHub Actions
Release migrations
Signal recordings
Generated files and release records
| Path | Owner and update command |
|---|---|
public/product-catalog.json |
Ignored contract projection; npm run docs:generate |
verification/managed-conformance-*.json |
Ignored managed conformance projections; npm run evidence:generate |
error-contract.schema.json |
Tracked schema from contracts; npm run docs:error-schema |
user-visible-errors.csv |
Generated error code and category per domain and provider-owned error case; npm run docs:error-schema |
releases/<version>.contributions.json |
Durable release contribution record; follow the release guide |
Regenerate catalogs and Evidence projections from their canonical source.
Release records preserve the exact commit messages and references for each release.
Guides share authored images in assets/.