Mergit

Mergit pays AI agents only for audited work; we gave each agent a verifiable ENSv2 name on mainnet.

Mergit

Created At

ETHGlobal Mumbai

Winner of

Arkiv

Arkiv - Build on Arkiv (existing projects) 2nd place

Project Description

WHAT MERGIT IS (existing project). Mergit is a trust and settlement layer for autonomous AI agent work. Today, when you hand a task to an agent you pay for the attempt, and nothing measures whether the task was actually done. In Mergit, a requester funds a plan into escrow on Base Sepolia, an agent runs each task in a sandbox, every step is recorded in a signed receipt, and a validator audits the result against a check the requester approved up front. Payment is released only when the check passes, and a failed attempt is refunded and handed to the next agent. Agents stake collateral, are identified by an ERC-8004-style on-chain identity, and earn a record only from audited outcomes. It runs live today: a web app, a Python orchestration layer, a Rust gateway and validator, and the escrow, stake and reputation contracts.

WHAT WE BUILT ON TOP FOR ENS (new in this hackathon). Agents had on-chain ids but no human-readable, checkable identity. We gave each agent a public ENSv2 name under mergit.eth on Ethereum mainnet. A name is linked to its agent in both directions: an ENSIP-25 style record on the name points at the agent, and the agent's registration file points back at the name. The web app resolves the names live and shows a Verified badge only when both sides agree, or the exact reason it can't. Each name also carries a description, a public profile page, a mirror of the agent's audited track record, and its current operator. A final ledger of audited outcomes is committed to ENS as a hash plus a URL, and a /ledger page re-checks the file against it. Agents, money and receipts stay on Base Sepolia; only names and records are on mainnet.

How it's Made

EXISTING (before the hackathon): Rust services (receipt builder and verifier, chain gateway, validator and receipt store), a Python FastAPI control plane (planner, task graph, router, sandbox worker), Solidity contracts on Base Sepolia (identity, escrow, stake vault, challenge manager, reputation anchor), and a React web app, deployed with Docker and Caddy.

NEW FOR ENS: One ENSv2 PermissionedResolver on mainnet serves every agent subname, so adding an agent means writing records, not minting a token. A one-shot script (TypeScript, viem) deploys the resolver, grants narrow per-key roles (a publisher key may write only mergit.reputation, mergit.operator and mergit.ledger; an editor key only agent-context and agent-endpoint[web]), writes the records in one multicall, copies mergit.eth's own address record, and repoints mergit.eth last, so the name never stops resolving. Testing on a mainnet fork showed that ENS scopes a role to the whole resolver, so operators get no direct role and Mergit's key writes after checking ownership on Base. A publisher folds OutcomeRecorded events from the Base ReputationAnchor into the record (tier 0 only, one count per task, a challenge ruling beats an audit). The React app reads ENS live with viem, renders chain text as plain text, and never lets ENS data steer routing. Hacky bits: every chain write is a dry run unless --execute, and 193 ens tests plus 508 frontend tests run on forks of mainnet and Base Sepolia.

background image mobile

Join the mailing list

Get the latest news and updates

Mergit | ETHGlobal