mirror of
https://github.com/morluto/rea.git
synced 2026-12-02 11:33:10 +00:00
* fix(native)!: bound read_bytes to 1 MiB per call read_bytes accepted any length up to Number.MAX_SAFE_INTEGER, both in the public contract and in the Ghidra bridge request, so one call could ask a provider to allocate and hex-encode an unbounded range before any delivery budget applied. Admit at most 1,048,576 bytes per call: about 2 MiB of hex, inside the 10 MiB maximum agent result budget and the MCP SDK's default 10 MiB stdio message buffer. The contract and the Ghidra request share one MAX_READ_BYTES_LENGTH, the schema describes the bound and how to read a longer range, and the refusal comes from input admission before the provider runs. Refs #8560 BREAKING CHANGE: read_bytes refuses length above 1048576 with invalid_request on length. Read longer ranges as consecutive calls that start at the previous address plus returned_bytes. * fix(native): derive the read_bytes ceiling from the maximum agent result budget The 1 MiB ceiling was a chosen number. Each byte returns as at least two hex characters and no result can exceed MAXIMUM_AGENT_RESULT_BUDGET_BYTES, so a read longer than half that maximum could never be delivered at any budget. Derive MAX_READ_BYTES_LENGTH from it (5,242,880 bytes), so it follows that ceiling instead of a separate constant. * fix(native): size the read_bytes ceiling to a complete MCP response MCP sends bytes_hex in both structuredContent and the text block, so a read of N bytes needs about 4N bytes of response. The ceiling was half the maximum agent budget, so a full read at it could not fit the default 10 MiB MCP response and failed after the provider finished. Derive it from MINIMUM_RESPONSE_BYTES, which every server delivers, less a 64 KiB Evidence envelope reserve, divided by four (2,605,056 bytes). The boundary test now delivers a complete read at the ceiling. The compact input schema drops field descriptions, so the consecutive-call advice now lives in the tool description and the length refusal message, from one READ_BYTES_CONTINUATION. * refactor(limits): own the minimum MCP response size in the domain limits nativeByteRead derives the read_bytes ceiling from the minimum MCP response, but imported it from config, which the pure-layer boundary forbids. Define MINIMUM_RESPONSE_BYTES with the other delivery limits in src/domain/analysisResourceLimits.ts; the config parser, the byte-read ceiling, the numeric-limit verifier and tests read it there. * test(ghidra): verify read_bytes at its admitted ceiling The real-Ghidra verifier still requested read_bytes with Number.MAX_SAFE_INTEGER and with a length past the new ceiling, so it stopped on input refusal. - The boundary probe reads MAX_READ_BYTES_LENGTH, which runs past the probe's mapped bytes, so it still checks an explicit incomplete read, and refuses a length one over the ceiling. - The large-result probe reads MAX_READ_BYTES_LENGTH through MCP and the CLI and checks it is delivered complete with the fixture's bytes. The annotation and dossier probes keep covering oversized delivery with a retained reference. * test(ghidra): compare the served annotation description with its owner The real-Ghidra boundary verifier compared annotate_native_function's served description with the bare contract text. Since the open-target prerequisite is appended by describeToolPrerequisite, the check failed before reaching the read_bytes probes. Compare with the description that owner produces from the contract and its availability. * test(ghidra): run verifier probes under the shared command owner The read_bytes and large-result verifier helpers launched the CLI, ps and the compiler through promisify(execFile), outside the verifier's command owner, so a failure or timeout could leave their children running. Pass the native-value verifier's commands owner through verifyGhidraBoundaries, verifyStartupCancellation and verifyGhidraLargeResults and run every command with commands.exec. Expected-refusal checks read the owner's VerifierCommandExitError output (snapshot.stdout.text).
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
- Android OTA update payloads
- Android Verified Boot vbmeta images
- Android sparse images
- UBI images
- Flattened devicetree inspection
- ESP flash images
- ESP-IDF NVS partitions
- ESP images
- U-Boot FIT images
- Flash SWF files
- Qualcomm MBN images
- Image4 containers
- 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/.