Skip to content

refactor(evm): bind offline analysis through a static descriptor - #2261

Merged
N0zoM1z0 merged 3 commits into
mainfrom
feat/evm-domain-descriptor-20261012
Oct 12, 2026
Merged

N0zoM1z0 merged 3 commits into
mainfrom
feat/evm-domain-descriptor-20261012

Conversation

@N0zoM1z0

@N0zoM1z0 N0zoM1z0 commented Oct 12, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

EVM CLI/MCP registration independently repeats its operation, command and factory bindings, and keeps a redundant factory fallback after the host has already selected an owned service. Bind the existing exact contract, CLI name and legacy factory through a small static descriptor, and pass the selected full service instance to registration. Preserve injection identity and retryable cleanup. Continues #2016; that broader issue stays open.

Scope and compatibility

  • Keep createEvmInterfaceService, existing CLI/MCP names, path/encoding meanings, complete result/defaults, provider configuration and Evidence/session behavior unchanged.
  • Name the existing owning EVM contract directly; retain its original default catalog position and exact schemas/description/effects. No plugin loader, registry, pack selection, new provider protocol or installation behavior.
  • Keep domain/application layers independent of engine protocols; update the architecture map for static WASM/EVM composition.
  • Add digest-pinned public Uniswap v3-core 1.0.1 Factory/Pool compiler templates alongside the existing WETH historical example. Preserve original compiler JSON/carrier/decoded identity and unknown immutable/deployment metadata. Verify ABI dispatch selector multisets independently; no source-signature inference or live-chain claim.
  • Keep raw replies, binaries, model transcripts, credentials and detailed JSON outside Git. Only source-authored inputs/scripts and curated findings are included. No release or deployment.

Validation and actual evidence

  • Five actual in-memory SDK boundary scenarios: valid converted schemas, duplicate registration rejection before use, strict malformed input, unavailable/incompatible-output failures with healthy WASM peer, injected-owner cleanup retry and cancellation reaching handler settlement followed by a successful request. Recording ports establish adapter/lifetime semantics, not real engines.
  • Nine EVM service + 26 provider-boundary + seven WASM MCP cases pass; two unsupported-host cases are intentionally skipped on Linux. New fixture setup/SDK error-message assumptions were corrected with only the related MCP file rerun; first attempts remain private.
  • npm run check, npm run docs:check, npm run verify:test-discovery, formatting/diff and required pre-push checks pass. Source discovery covers all 940 files exactly once. The approximately 3 GiB static-check peak/high events are excluded from performance claims.
  • Actual default SDK catalog is byte-identical across six before/after EVM pairs (three inputs, two repetitions), including order, descriptions, schemas and annotations. All selected facts/settings agree; original run-specific reference maps remain preserved. Complete result byte counts stay 26,760 / 110,424 / 110,998 for WETH / Factory / Pool.
  • All 59 existing real EVM CLI/MCP verifier cases pass against the frozen modified runtime with unchanged EVMole 0.9.3 and private solc 0.8.30/strace. Actual verifier traces report no target execution/network sockets for those scenarios; owned descendants are empty.
  • Post-descriptor real public MCP workflows pass for SQLite WASM, ShareX managed PE/CLI, Obsidian inventory, NewPipe APK, OpenWrt firmware and jq native/Ghidra, with named schema validation and unchanged input digests. This is selected Linux coverage; no Windows runtime, DOS COM, IDA/Hopper, Android-device, browser or full JavaScript AST proof is added.
  • Six actual Codex CLI 0.161.0 trials request gpt-5.6-terra high: WETH/Factory/Pool each twice, isolated temporary configuration pointing at modified REA MCP. Every requested fact/observed-reference/target-integrity/profile-cleanup check passes; each uses one successful EVM call and no failed call. Requested alias is not a resolved-model identity claim; the fixed one-tool subset is not full-catalog discovery evaluation.

Performance interpretation and remaining work

This refactor establishes compatible wiring, not a new token reduction. Second-pair SDK latency/CPU are similar; slower initial controls are retained without attributing the difference to unchanged provider algorithms. Complete Uniswap model tasks still consume about 36–37k uncached input tokens. The captured complete-output cohort is a baseline for an explicit precise interface view in the next increment; complete defaults must remain available.

Frozen production comparison pins: control 1770f38cfc6cbe87491d0de8b8730c305c5cf8ea, candidate 152984da771450048ee9d60db8a410994a125878; driver/runtime digests and measurement order are in the curated notes. Later documentation-only commit does not change production behavior. All heavy trials were serial under one CPU, 4 GiB hard/3 GiB early-stop, no swap and bounded tasks. Final transient-cgroup counters remain unknown, so strict overall resource-qualified model grades are unverified, even though selected fact/lifecycle checks pass. No universal speedup, OOM absence or resource saving is claimed.

Remaining #2016 work includes precise EVM delivery, applicable preset lifecycle/snapshot coverage and additional domain/platform evidence. Existing unrelated REA bugs remain in the requested /tmp team handoff and are not repaired here.

N0zoM1z0 and others added 3 commits October 12, 2026 16:14
Preserve published compiler-template identities and unknown immutable metadata, reuse the complete WETH measurement workflow, and verify original ABI dispatch selector sets independently. Record latest-main SDK controls without claiming descriptor or model performance gains.

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
Share the exact existing operation, CLI name and legacy factory. Pass the selected complete service to registration and cleanup without rebuilding it or wrapping injection identity. Verify SDK schemas, duplicate registration, malformed/optional failures, healthy peers, cancellation recovery and failed-cleanup retry.

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
Record six exact SDK catalog/fact pairs, 59 real CLI/MCP cases, six cross-domain artifact workflows and six actual Codex CLI trials. Preserve failed setup attempts privately and qualify unchanged complete delivery, host-state variance and unknown final resource counters.

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
@N0zoM1z0 N0zoM1z0 self-assigned this Oct 12, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@N0zoM1z0 N0zoM1z0 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Final manual review of exact head d999d9874bf59c3c8486bac9b2c867a4a6a9121d: all checks in CI run 38283026233 completed successfully. Reviewed the descriptor/named-contract bindings, full-service injection and same-owner registration/cleanup, unchanged legacy CLI arguments/defaults, producer/ABI verification scripts, recording-port boundary tests and curated real receipts. Six SDK fact/settings pairs preserve the complete advertised catalog byte-for-byte; 59 real CLI/MCP cases, six actual cross-domain workflows and six real model selected-fact/lifecycle trials support the documented scopes. No protocol/provider/authority/default output changes, general SDK/cache introduction, raw artifact commits or release changes. Initial test fixture assumptions were corrected with related tests only; resource final-counter uncertainty remains explicit. The review bot did not execute due its usage limit; this is not a claim of automated review. Ready for the maintainer-authorized normal merge; #2016 remains open.

@N0zoM1z0
N0zoM1z0 merged commit ad08510 into main Oct 12, 2026
33 checks passed
@N0zoM1z0
N0zoM1z0 deleted the feat/evm-domain-descriptor-20261012 branch October 12, 2026 17:26
@morluto morluto added the enhancement New feature or request label Oct 14, 2026
@morluto morluto added the provider: evm Analysis provider / engine: evm label Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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