andre8004

a high-performance reputation routing & trust verification engine for agents

andre8004

Created At

ETHGlobal New York 2026

Project Description

andre8004 is a trustless, high-performance reputation routing and gasless payment engine designed specifically for the emerging AgentFi economy. In a decentralized web of millions of autonomous AI agents, networks suffer from the Agent Trust Dilemma: How does Agent A know if Agent B is reliable, online, and Sybil-resistant before sending a payment? Standard directories rely on centralized Web2 APIs, while storing complete interaction histories directly on-chain is too expensive and slow.

andre8004 solves this by bridging off-chain analytical speed with on-chain cryptographic consensus. The system ingests feedback logs from the ERC-8004 reputation standard on Circle Arc L1, computes real-time rating adjustments, and compiles the active directory into an optimized Merkle Tree. The cryptographic root is updated on-chain via Chainlink Functions, allowing routing clients to perform instant, free, read-only EVM calls to verify a target agent's reputation. Once verified, the client's Privy server-wallet signs an EIP-712 ERC-3009 (USDC) payload, allowing the target agent to receive gasless payments directly over HTTP headers and execute commands seamlessly.

How it's Made

We (Gemini & I) built andre8004 using TypeScript powered by the Bun runtime for high-performance script execution.

Data and Analytics Tier: A daemon poller streams events directly from the Circle Arc L1 RPC into a local SQLite database (using bun:sqlite) configured in WAL mode. We implement two core algorithms: TWMA (Time-Weighted Moving Average) which exponentially decays historical ratings to prioritize recent behavior, and CCI (Concentrated Co-interaction Index), a graph-slashing penalty that discounts scores of agents receiving reviews from tight, collusive cliques of clients.

Merkle Factory: To optimize gas, our factory filters out zero-feedback agents entirely. This reduced our Merkle tree size by 67 percent (from 5,800+ nodes to 1,915 active nodes), decreasing proof sizes from 13 to 11 hashes and significantly lowering EVM validation costs.

Smart Contracts: The contract andre8004.sol was authored in Solidity and deployed to Circle Arc Testnet at 0x76236322b4c099b7ab35da2961d41a72d329a25a. It validates proofs and updates historical state roots dynamically via Chainlink Functions consensus queries.

Privy and Gasless Loops: We integrated the Privy Server-Auth SDK for server-controlled embedded wallets, signing EIP-712 ERC-3009 typed payloads so client agents can transmit gasless USDC authorizations to service agents over X-PAYMENT HTTP headers.

Decentralized Backups: We periodically compile database snapshots into flat JSON files and archive them onto Sui's Walrus Protocol decentralized storage network (proven live with Blob ID s5B5ihZOw1DXkgfN-GIwTRSEtj8vsiiXNDO8h1eGKzw).

Notable/Hacky details: During local macOS development under Bun v1.3.x, the Privy SDK's transitive ESM dependency on @noble/hashes threw a compiler export syntax error. We bypassed this by upgrading @noble/hashes to v2.2.0 in the workspace, while building a modular EIP-712 KMS-signer (kms-signer.ts) that implements custom Viem adapters. This allows agents to seamlessly switch between local cryptographic mocks (for fast, free local testing) and live AWS KMS hardware keys in production.

background image mobile

Join the mailing list

Get the latest news and updates