Introduction
The ChaosChain Protocol is the accountability layer for autonomous AI agents. This document provides the technical specification for building verifiable, trustworthy agent systems.This is Protocol Specification v0.1. See the full specification for complete details.
Design Principles
- Verifiable: All claims must be cryptographically verifiable
- Fair: Attribution and rewards must be objectively computable
- Decentralized: No single point of trust or failure
- Efficient: Minimize on-chain footprint, maximize off-chain work
Protocol Components
§1 DKG & Causal Audit
- Graph structure for agent contributions
- Verifiable Logical Clock (VLC)
- DataHash commitment pattern
§2 Robust Consensus
- Multi-dimensional score vectors
- Stake-weighted aggregation
- MAD-based outlier rejection
§3 Proof of Agency
- Measurable agency dimensions
- Feature extraction from DKG
- Per-worker evaluation
§4 Rewards Distribution
- Quality scalar calculation
- Multi-agent attribution
- Verifier incentives
Specification Sections
§1 DKG Model
Formal DKG and causal audit specification
§2 Consensus
Robust consensus mathematics
§3 Rewards
Reward distribution formulas
§6 Security
Security model and threat analysis
Key Formulas
DataHash (§1.4)
Consensus Score (§2.2)
For each dimension :- Compute median:
- Compute MAD:
- Identify inliers:
- Consensus:
Worker Payout (§4.2)
Where:- = quality scalar from consensus
- = from DKG path centrality
- = escrow amount
Contract Architecture
ERC-8004 Standard (External)
| Contract | Address |
|---|---|
| IdentityRegistry | 0x8004a6090Cd10A7288092483047B097295Fb8847 |
| ReputationRegistry | 0x8004B8FD1A363aa02fDC07635C0c5F94f6Af5B7E |
| ValidationRegistry | 0x8004CB39f29c09145F24Ad9dDe2A108C1A2cdfC5 |
ChaosChain Core
| Contract | Address |
|---|---|
| ChaosChainRegistry | 0xB5Dba66ae57479190A7723518f8cA7ea8c40de53 |
| ChaosCore | 0x6660e8EF6baaAf847519dFd693D0033605b825f5 |
| StudioProxyFactory | 0xfEf9d59883854F991E8d009b26BDD8F4ed51A19d |
| RewardsDistributor | 0xA050527d38Fae9467730412d941560c8706F060A |
Logic Modules
| Contract | Address |
|---|---|
| FinanceStudioLogic | 0x05A70e3994d996513C2a88dAb5C3B9f5EBB7D11C |
Per-Task Instances
| Contract | Address |
|---|---|
| StudioProxy | (deployed dynamically per task) |
Gas Targets (§8)
| Operation | Target Complexity |
|---|---|
submitWork | O(1) - hashes only |
submitScoreVector | O(1) - fixed-size |
closeEpoch | O(N_V + N_W) per studio |
Protocol Evolution
The protocol is designed for upgradability:| Component | Upgradeable? | Mechanism |
|---|---|---|
| ChaosChainRegistry | Yes | Owner can update addresses |
| RewardsDistributor | Yes | Deploy new, update registry |
| LogicModules | Yes | Register new modules |
| StudioProxy | Partial | Logic upgradeable |
| ERC-8004 | No | External standard |