mirror of
https://github.com/morluto/rea.git
synced 2026-12-06 18:14:30 +08:00
* feat(native): describe the UniFFI library report and its read budgets Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * feat(native): recover UniFFI interfaces from a library's exports Group a library's UniFFI scaffolding exports by namespace: objects named by their free and clone functions with their constructors and methods, functions, callback interfaces and runtime helpers. The contract version and each item's checksum are read from function bodies that return only that constant (x86, x86-64 with or without endbr, arm64), and NAMESPACE and UDL_FILE metadata buffers are decoded. Nothing is called; a method that two object names could own is listed under the longer and counted. Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * feat(native): read UniFFI libraries through an identity-checked provider The provider reads one bounded PE or ELF file, maps its export addresses through the image's own declarations and decodes the UniFFI interface. A refusal at max_entries, max_text_bytes or max_file_bytes names the budget to raise. Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * feat(analysis): summarize retained UniFFI library reports Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * refactor(analysis): bound the UniFFI summary's namespaces with boundedList Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * feat(native): add the inspect_uniffi_library tool CLI inspect-uniffi-library and MCP inspect_uniffi_library recover a UniFFI library's namespaces, objects, methods, functions, callback interfaces, contract version and checksums from its exports without loading it. Large reports return the retained per-namespace summary within the agent budget. Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * docs(native): describe UniFFI interface recovery Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * docs(skill): route UniFFI libraries to inspect_uniffi_library Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * ci: scope the UniFFI reader with the native formats Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * chore(schemas): record the advertised inspect_uniffi_library catalog summary Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * fix(native): keep UniFFI grouping linear and its omissions visible - Namespaces, metadata owners and object owners are found by looking up each underscore-delimited prefix of a name, instead of scanning every namespace or object for every export. - A body or metadata buffer reads the longest mapped prefix, so a constant that ends at its mapping's end is still decoded. - A metadata buffer that cannot be read or decoded is counted apart from kinds this reader does not decode, and makes coverage partial. - A partial export table carries its reasons into the report. Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * feat(native): expose max_structure_bytes for UniFFI library inspection The export reader's table-size limit is now a caller control, and its refusal names it, as inspect_native_exports does. Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * fix(cli): honour delivery options for inspect-uniffi-library Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * docs(native): list the UniFFI structure budget and record its schema Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * fix(native): match UniFFI namespaces and owners with a prefix trie Namespaces, metadata owners and object owners are now found by walking the name once through a trie of the known words, from the positions where UniFFI spells them. The cost per name grows with its length, not with its underscore count squared or with the number of known words. Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * fix(native): index UniFFI prefixes by hash instead of a character trie A character trie allocated a node and a map for every distinct prefix, so long crafted export names could exhaust the heap before the report's text checks. The prefix index now keeps one entry per known word, keyed by two polynomial hashes, and walks each name once computing the hashes of its underscore-ended prefixes; only the longest matches are compared. Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * fix(native): map UniFFI reads through one index and check namespace shapes - Constant and metadata reads use one file-mapping index built with the image's zero-filled ranges, so each read is a lookup and an ambiguous address reads as unknown instead of as definite bytes. - The ELF container read honours max_structure_bytes, as the export read already did. - 32-bit x86 images, which the shared readers name 386, decode their constants. - A scaffolding symbol belongs to the longest namespace whose remainder has a scaffolding shape, so a namespace ending in _fn cannot take another namespace's functions. Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * fix(native): carry the export reader's issues into a partial UniFFI report A partial export table now reports its first issues by code and message, counting the rest, before falling back to its limitations. Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * fix(native): consider every shaped namespace match for UniFFI symbols The scaffolding shape after a namespace is now checked while the name is walked, so every span followed by _fn_ or _checksum_ is a candidate, not only the longest four matches; only the chosen word is compared. Co-authored-by: gensokyo-dev <342580529+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
- Native toolchain identification
- 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
- UniFFI libraries
- 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 resource sets
- WPF BAML documents
- .NET single-file bundles
- IL2CPP metadata
Firmware
- Firmware analysis
- Firmware interrupt and trap vector tables
- Firmware CPU and load-base candidates
- Firmware MMIO access disassembly
- Non-MMIO hardware instruction channels
- 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
- 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
- Game Boy ROMs
- Game Boy Advance ROMs
- Nintendo DS ROMs
- Sega Mega Drive ROMs
- Nintendo 64 ROMs
- PlayStation executables
- WeChat mini-program wxapkg archives
- macOS flat installer packages
- ISO 9660 disc images
- tar and gzip-compressed tar archives
- Unix ar archives
- MetaTrader compiled programs (EX4 and EX5)
- 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
- Adding an artifact format
- 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/.