Overview — an MEV-searcher AI bot on testnet-1a
audience: ai
This is the first of three Part II examples, walked
through seven chapters. The example: an AI-policy
MEV searcher bound to a Flashbots-operated instance
of the
builder (6e3v) block-building lattice, named
testnet-1a. The searcher lives in its own small
coalition, searcher-α, which references testnet-1a
as a member.
The goal is not to specify a production searcher. It is to walk one concrete composition, from cold start to autonomous renewal, end to end — so that every mosaik surface named in Part I is exercised in a setting a reader can reproduce. Each chapter adds one surface; none invents a new primitive. Parallel examples for the provider side (web2) and the publisher side (oracle) exercise the same rungs against different compositions.
Market makers get a named variant at the end of each chapter where the pattern diverges. The MEV- searcher path is primary; market-makers share almost all the mechanics and differ only in what they read, what they submit, and on which reputation and settlement surfaces they bond.
What is assumed
- The 6e3v lattice is shipped. The builder
book specifies six organisms (
zipnet,unseal,offer,atelier,relay,tally) composed into one end-to-end block-building pipeline for one EVM chain. We do not re-derive that composition; we bind against it. - Flashbots operates an instance. The instance is
named
testnet-1a. ItsLatticeConfigstable id is published in Flashbots’ release notes and is reproduced in setup; it folds the Flashbots operator’s ACL, its per-organism TDX Measurements where TDX is gated, and its shared clock and retention policies. - Readers understand Part I. The four agent
shapes, the four emergent-coordination patterns, the
TDX/non-TDX split on what
Confighash-binds, and the self-replication and self-modification cycle from ai/sustainability.md are load-bearing. Part II does not re-explain them. - No implementation crates yet. Code blocks are
rust,ignorespecifications; their shapes match the book’s crate plan (coalition,coalition-compute, the pinnedbuildercrate exposingLatticeConfig). Everything compiles in the reader’s head; nothing compiles incargo.
The searcher’s shape
- Coalition.
searcher-α— the searcher’s ownCoalitionConfig. ItsCOA_LATTICESfield referencestestnet-1a’s stable id; it ships zero basic services in the minimal version (setup), optionally adding Compute and Chronicle in inference and sustainability. - Primary member. One shape-2 standalone
organism — the searcher agent itself, as the AI
policy wrapped in a narrow public surface. Its
Configfolds a model-family digest, a decoding seed, a mission-statement hash, and the searcher’s admission policy. When its inference runs in TDX,Config.contentalso folds the image post-hash. - Secondary members. A feed organism (see
wrapping) and, from chapter 5
onward, an
accuracy-reputationorganism and a candidate-strategy experimenter (sustainability). - Bindings across coalitions.
searcher-α’s ticket composition bonds againsttestnet-1a’s read-side organisms (tally::Refunds,offerorder flow where permitted) and against its sealed- submission pipeline (zipnet::seal). Some of these bonds are pinned to specific TDX Measurements the Flashbots operator publishes fortestnet-1a; see binding.
What runs where
| Component | Operator | TDX? |
|---|---|---|
testnet-1a lattice | Flashbots | Varies per organism |
testnet-1a.zipnet sealed submission | Flashbots | TDX Measurements pinned |
testnet-1a.unseal committee | Flashbots | TDX Measurements pinned |
testnet-1a.tally refund accounting | Flashbots | Attested-read-only |
searcher-α.searcher agent organism | Searcher team | TDX optional; required for confidential strategies |
searcher-α.feed.binance-depth (example) | Searcher team | TDX optional |
searcher-α.accuracy-reputation | Searcher team (or a shared reputation organism) | TDX optional |
searcher-α.compute (when shipped) | Searcher team | Delegates to provider MR_TD |
The table is read by every subsequent chapter. When an
endpoint reads “TDX Measurements pinned”, the
searcher’s TicketValidator requires a matching
measurement — which, by the TDX arm of the convergence
mechanism (ai/sustainability.md), means
the searcher is agreeing to run (or to bond against) a
shared runtime policy.
Chapter-by-chapter contract
- Setup and shape — dependencies,
CoalitionConfigforsearcher-α, the stable id oftestnet-1a, TDX posture. - Binding to the Flashbots lattice —
the handshake, the searcher’s
TicketValidatorcomposition, first smoke-test againsttestnet-1a’s public surfaces. - Reading the market — on-mosaik surfaces
—
tally::Refunds,offerorder flow, cross- lattice subscriptions where available. - Wrapping non-mosaik feeds —
mempool, CEX depth, on-chain events lifted into
mosaik
Streams as feed organisms. - Inference on Compute — running the searcher’s policy via the Compute basic service, TDX-gated when confidential, top-up and experiment-scheduling loops.
- Sealed submission and settlement
— bundle construction,
zipnet→unseal→offerpipeline, settlement evidence pointers, refund attribution. - Reputation, retirement, successor chain
—
accuracy-reputationbonding, autonomous renewal through staging-promote-publish, operator- side exit guarantee.
Every chapter closes with a market-maker variant note where the pattern diverges. Where it does not diverge, the note is omitted.
Register and non-goals
- Register.
audience: ai— research-monograph, pattern-forward, code-forward where a shape is load-bearing. Part II stays adjacent to ai/quickstart.md and ai/compute.md in density and tone; it exhibits the thesis rather than restating it. - Non-goal. Part II is not a searcher design guide. One concrete strategy — atomic two-venue DEX arbitrage — is walked in inference to keep the example concrete and exercise every mosaik surface the thesis names. Production searchers compose many more (inventory management, liquidations, cross- domain arb, MEV-share order flow, block-lookahead simulation); those questions stay out of scope. Where the substrate touches them, we name the boundary and stop.
- Non-goal. Part II does not enumerate every
Flashbots
testnet-1aoperator policy. Specific rate limits, ACL cadences, and refund shares are the operator’s publication; we pin only the shape of the handshake and the measurement sets the searcher must verify. - Non-goal. Part II is not a comparison with existing MEV-Share or relay integrations. The book treats the mosaik-native composition on its own terms; prior art sits in the builder book.
Cross-references
- Part I — AI overview
- Part I — AI quickstart — shape-1 integrator quickstart, which the example here extends by promoting the integrator to a standalone organism.
- Part I — emergent coordination
- Part I — compute
- Part I — sustainability
- Part III — integrators quickstart
- builder book — the lattice this example binds against