Skip to content

feat(evm): inspect offline bytecode interfaces through EVMole - #1051

Merged
N0zoM1z0 merged 5 commits into
mainfrom
feat/evm-interface
Oct 8, 2026
Merged

N0zoM1z0 merged 5 commits into
mainfrom
feat/evm-interface

Conversation

@N0zoM1z0

@N0zoM1z0 N0zoM1z0 commented Oct 8, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Refs #972. First independent EVM capability: offline interface recovery from an explicit local raw/hex carrier. CFG/decompilation, metadata/proxy/state relationships and execution/traces remain separate increments.

  • Reuse unchanged lockfile-pinned EVMole 0.9.3 JS/WASM; retain original MIT license and commit/integrity provenance. No engine fork, signature service or chain dependency.
  • Separate pure portable contracts, application port/shared Evidence, named CLI/MCP adapters and an owned engine worker. No provider protocol in domain/application layers or import-time WASM I/O.
  • Preserve carrier SHA-256/size/encoding and decoded SHA-256/full bytes inline; SHA-256 is explicitly not Ethereum Keccak. Retain producer representation and metadata limitations.
  • Label selectors, offsets, arguments and mutability as inferences; preserve duplicates and selector zero. Kind, deployment authenticity, hardfork and completeness remain unknown.
  • Own snapshots/process cleanup, diagnostic truncation and typed failures. Bound input/reply/diagnostics/heap/time/address space; preserve tighter inherited limits and original hard limits. Configured settings are separate from unprobed effective limits. Reserved EFBIG exits require matching private failure-branch evidence; bare launcher exits remain unverified.
  • Add guides and conditional real-tool CI. Initial verified profile: Linux x64, util-linux prlimit. No RPC, explorer, wallet, broadcasting or target runtime execution authority.

CLI / MCP

rea inspect-evm-interface ./runtime.hex hex --json
{"name":"inspect_evm_interface","arguments":{"path":"/artifacts/runtime.hex","encoding":"hex"}}

Full normalized result and Evidence are inline; raw producer values remain retained.

Verification

  • Latest focused domain/error/service/provider/SDK/schema/catalog checks: 96 passed, one host skip across11 files. Integrated latest main c5d165bd, including dylib resolution and the Korean README contribution; catalog138 tools and skill version32 are aligned. Integration-focused checks: 29 passed across five files, static/format/generated docs passed.
  • npm run check:fast; npm run docs:check; npm run verify:test-discovery (all568 files exactly once).
  • Fresh npm pack / isolated installation: original license and worker included; reference clones, private plans and binary fixtures excluded.
  • 58 actual installed CLI/MCP/exec/socket cases passed with unchanged solc 0.8.30 plain/optimized/viaIR Cancun fixtures: exact selectors, inference candidates, raw/hex identities, selector zero/PUSH data, empty/truncated code, malformed carriers, EF00, inherited lower limits, missing/broken launchers, EFBIG and unmarked exit 76.
  • Fresh current-head installed smoke: eight valid/EF00 raw/hex CLI/MCP cases plus138-tool inventory passed, with inputs unchanged and descendants empty. Compiled engine/domain/application bytes exactly match the earlier complete58-case installed proof.
  • SIGXCPU launcher-fault cases test diagnostics, not actual WASM CPU exhaustion. File-size fixtures run the actual WASM worker with a one-byte allowance. Missing/wrong marker and late cancellation/output preservation have deterministic regressions.
  • Representative exec/socket observations found no target host launch or attempted network requests; this is fixture evidence, not a network sandbox claim. Inputs unchanged and verifier descendants empty.

Hopper/Ghidra were not run; this capability is independent. No private game data/bytecode binaries committed; only source-owned Solidity fixtures. Merge waits for current-head CI and review.

Review follow-up

EF00 markers now return additive unsupported_target code/category, with operation, selected path, format reason, captured diagnostics and target-specific recovery. Provider/configuration failures retain their distinct classifications. Shared error schema and generated documents are aligned. Latest error/provider/SDK/schema focused checks: 58 passed, one host skip; static/docs passed. Fresh isolated package: eight valid/EF00 raw/hex CLI/MCP cases passed, originals unchanged and descendants empty. Both earlier raw/hex false provider classifications reproduced against the previous installed package. The format-failure and cleanup regressions remain covered.

@N0zoM1z0 N0zoM1z0 added enhancement New feature or request area: mcp MCP server, transport, and tool registration area: domain Domain logic, errors, and pure functions area: tests Test suite and verification labels Oct 8, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-08T07:26:16.241167Z 1ad260b Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 648909d0f4

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/evm/EvmoleInterfaceProvider.ts Resolved
@N0zoM1z0

N0zoM1z0 commented Oct 8, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review — Please check the follow-up since648909d0: unsupported target vs provider classification in a5a3353, including the shared error schema/projection and public CLI/MCP regressions. The latest focused58 tests and fresh installed eight-case valid/EF00 proof passed; exact-head CI is running.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

Reviewed commit: a5a335307f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@N0zoM1z0

N0zoM1z0 commented Oct 8, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review the main integration at 1ad260b, especially the combined tool catalog and shared error schemas. The EF00 classification finding is fixed and its thread resolved. Integration-focused tests (29), static/format/generated-doc checks, and a fresh isolated installed package (eight valid/EF00 raw/hex CLI/MCP cases plus the 138-tool inventory) pass; current-head CI is now running.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: 1ad260b0f4

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@N0zoM1z0
N0zoM1z0 merged commit 7af7bc8 into main Oct 8, 2026
31 checks passed
@N0zoM1z0
N0zoM1z0 deleted the feat/evm-interface branch October 8, 2026 07:32
@N0zoM1z0

N0zoM1z0 commented Oct 8, 2026

Copy link
Copy Markdown
Collaborator Author

Final review of 1ad260b: all 31 current-head checks passed, and the follow-up automated review found no major issues. I rechecked the EF00 unsupported-target fix, shared error schemas, named CLI/MCP contract, the main integration/catalog138/skill32, and bounded worker ownership/diagnostics. Local focused/static/docs checks and the fresh installed eight-case raw/hex CLI/MCP proof pass, with inputs unchanged and no surviving descendants. The earlier full58-case engine proof is complemented by this head’s real EVM CI. Observed SIGXCPU fault injection is not a claim of measured WASM CPU exhaustion. No remaining merge blockers found.

darsrc pushed a commit to darsrc/rea that referenced this pull request Oct 10, 2026
…o#1051)

* feat(evm): inspect offline bytecode interfaces through evmole

* fix(evm): distinguish unsupported bytecode targets

* style(evm): format verifier string-prefix checks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: domain Domain logic, errors, and pure functions area: mcp MCP server, transport, and tool registration area: tests Test suite and verification enhancement New feature or request provider: evm Analysis provider / engine: evm

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants