FrameLabs

FrameLab: replay expected pending-frame behavior twice, shrink mismatches, export CI bundles.

FrameLabs

Created At

ETHGlobal Mumbai

Project Description

FrameLab is a release-check workbench for EIP-8141 frame-transaction alt-mempool nodes. You write what should happen to pending frame transactions when the chain changes. It replays that sequence twice on a pinned local node, checks expected versus actual at each checkpoint, shrinks a mismatch to the smallest confirmed replayable case, and exports a CI bundle you can rerun after a fix.

The first target is an alt-mempool node developer checking a change to admission, revalidation, or eviction. Scenario S1 funds a payer, queues keyed self-paid frame transactions plus a control, then drains the payer. Under the sidecar policy SP-BAL-ENFORCE, the newest unpaid frame transactions must be evicted and the older ones plus the control must stay. An expected eviction is a pass. The fail-and-fix demo uses a labelled local patch that reverses eviction order, never an upstream bug: shrink reduces the noisy case, then compare shows WRONGLY_EVICTED going back to PASS with the same scenario and rule pack.

This is a Classic / From Scratch build for ETHGlobal Mumbai 2026, aimed at the EF prize Best use of the Frame Transaction Alternative Mempool. Tag v0.1-rc met 54/54 acceptance checks on CI. Try the read-only viewer at b (injected shrink: b), a judge VM at l, or Codespaces from the repo. Qualifying frame tx: e

How it's Made

FrameLab is TypeScript on Bun, with YAML scenarios checked against JSON Schema and viem for RPC and signing. Each run starts a pinned ethrex node in Docker and the ERC-8421 workshop sidecar (a Skandha fork), applies an observation patch that only logs when a reconcile pass finishes, then drives blocks through ethrex's engine API. Assertions cite written sidecar policy, not model guesses. After a mismatch, shrink deletes steps until the same predicate still fails on two fresh runs, then export writes a checksummed bundle with replay.sh. compare checks that the same reduced case passes on the unpatched build.

Vendor code stays pinned and uncommitted; setup-vendor.sh recreates it. The fail path is an injected patch that reverses newest-first eviction, so judges can see a real wrong outcome without claiming an upstream vulnerability. The hosted viewer at batcorps.batmnnn.live serves those exported bundles read-only. lab.batcorps.batmnnn.live signs a judge into GitHub and gives them a Linux VM with Docker, Bun, and FrameLab warmed up. A public-devnet command sends one qualifying frame transaction to the workshop alt-mempool. Partner benefit: the whole loop is built on the Frame Transaction Alternative Mempool stack (EIP-8141 frames, the workshop sidecar, ethrex, and the public explorer), which is the only way to test pending-frame lifecycle this way.

background image mobile

Join the mailing list

Get the latest news and updates