๐ก๏ธ 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.
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