๐Ÿ›ก๏ธ ERC-8004 Agent Trust Protocol

Beaver Warrior Sentinel

A multi-agent swarm that autonomously discovers, evaluates, and scores AI agents on-chain. Trustless, verifiable, decentralized โ€” the trust layer every agent ecosystem needs.

View Source ๐Ÿ–ฅ๏ธ Live Dashboard Preview ๐Ÿฆซ Beaver Warrior
6
Swarm Agents
4
On-Chain Registries
58
AI Security Modules
28
Passing Tests

Swarm Architecture

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ Beaver Warrior Sentinel Swarm โ”‚ โ”‚ โ”‚ โ”‚ Coordinator โ”€โ”€โ”€ Message Bus โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ DiscoveryAgent โ†’ EvaluatorAgent โ†’ ScorerAgent โ”‚ โ”‚ โ”‚ (chain events) (HTTP tests) (trust + reputation) โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ SafetyAgent โ”‚ โ”‚ โ”‚ (6 pre-flight) โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ โ”‚ PublisherAgent โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚ โ”‚ (retry + backoff) โ”‚ โ”‚ โ†“ โ”‚ โ”‚ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ โ”‚ โ”‚ ERC-8004 Registries (Sepolia) โ”‚ โ”‚ โ”‚ โ”‚ Identity โ”‚ Reputation โ”‚ Validation โ”‚ Staking โ”‚ โ”‚ โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Swarm Agents

๐Ÿ”

DiscoveryAgent

Watches chain for new Registered events, queues agents for evaluation

๐Ÿงช

EvaluatorAgent

Tests HTTP endpoints, verifies capabilities, runs consistency checks

๐Ÿ“Š

ScorerAgent

Computes weighted trust scores from on-chain reputation data

๐Ÿ›ก๏ธ

SafetyAgent

6 pre-flight checks before every on-chain write โ€” budget, score range, validity

๐Ÿ“ก

PublisherAgent

Publishes feedback + validation on-chain with exponential backoff retry

๐ŸŽฏ

Coordinator

Message bus routing, cycle management, swarm statistics, graceful shutdown

ERC-8004 Smart Contracts

๐Ÿชช

Identity Registry

ERC-721 NFT identity for each agent โ€” name, services, operator wallet

โญ

Reputation Registry

On-chain feedback with scores, categories, and response threads

โœ…

Validation Registry

Third-party capability attestations with validator accountability

๐Ÿ’ฐ

Staking Registry

ETH collateral deposits โ€” slashed if trust drops below threshold

Autonomous Decision Loop

discover โ†’ plan โ†’ execute โ†’ verify โ†’ safety-check โ†’ submit 1. Discover โ€” Watch Identity Registry for new Registered events 2. Plan โ€” Parse agent's registration file, determine test strategy 3. Execute โ€” Test each endpoint: reachability, capability, 3x consistency 4. Verify โ€” Read existing on-chain reputation, compute trust score 5. Safety โ€” 6 pre-flight validations before allowing on-chain writes 6. Submit โ€” Publish feedback + validation with retry (up to 3 attempts)

Built With

Solidity

4 smart contracts โ€” ERC-721 identity, reputation, validation, staking

TypeScript

Multi-agent swarm with message passing, WebSocket dashboard, REST API

Rust

58 AI security modules from Beaver Warrior โ€” sleeper detection, prompt guard, behavioral baselines

Hardhat

Contract compilation, testing (28 tests), deployment to Sepolia