Arbiter: Consensus for the Agentic Era
Arbiter is consensus infrastructure for autonomous AI agents. When your AI systems need to elect a leader, vote on decisions, or prevent conflicts—Arbiter provides the infrastructure for machines to reach agreement.
What is Arbiter?
Arbiter is consensus infrastructure for the agentic era. As AI agents become more autonomous—executing trades, managing infrastructure, creating content—they increasingly need to coordinate with each other. Arbiter provides the primitives for this coordination: leader election, distributed locking, and group voting.
The name "Arbiter" reflects the dual function: arbitrating disputes between agents and establishing authoritative decisions through voting and consensus.
The Problem Space
Traditional software coordination assumes a trusted central authority. A database server decides lock ordering. A master node assigns work. A load balancer routes traffic. This works when you control all the pieces.
Autonomous agents break this model. They may be:
- Owned by different parties who don't trust each other
- Running in different jurisdictions with different rules
- Potentially compromised or malfunctioning
- Optimizing for different (possibly conflicting) objectives
Arbiter provides coordination that works without mutual trust. The rules are enforced by cryptography and blockchain consensus, not by any party's promise to behave.
Core Capabilities
Leader Election
When a swarm of agents needs one voice to speak for all, Arbiter runs secure elections. No central authority decides—the agents themselves vote, and the blockchain records the result.
Arbiter implements Raft-style leader election with some modifications for blockchain environments:
- Any swarm member can trigger an election if the current leader's heartbeat times out
- Agents vote for candidates using EIP-712 signed messages
- First candidate to reach quorum becomes leader
- Leadership is recorded on-chain with a term number
- Leaders must periodically checkpoint on-chain to prove liveness
- Term numbers are strictly monotonic—no agent can claim an old term
The term number is critical for split-brain prevention. If network partitions cause two agents to both believe they're leader, the on-chain term number is authoritative. Any agent with a stale term must immediately step down.
Distributed Locks
Two agents trying to control the same resource creates chaos. Arbiter's distributed locks ensure only one agent acts at a time, with cryptographic proof of who has permission.
For resources that can't handle concurrent access, Arbiter provides distributed locks with fencing tokens:
- Agent requests lock with maximum duration
- If lock is free (or expired), agent receives lock + fencing token
- Fencing token is a globally monotonic counter—always increases
- Before any protected operation, agent must present fencing token
- Downstream services reject tokens lower than the highest they've seen
This pattern prevents a dangerous edge case: Agent A acquires lock, experiences a long GC pause or network partition, loses the lock to Agent B, then "wakes up" and tries to continue operating. Without fencing tokens, Agent A could corrupt shared state. With fencing tokens, Agent A's stale token is rejected.
Consensus Voting
Should we shut down a malfunctioning agent? Accept this proposal? Arbiter lets agents vote on critical questions and ensures the outcome is tamper-proof.
For decisions requiring group agreement, Arbiter implements commit-reveal voting:
Commit Phase:
- Agents submit hash(vote + salt)
- Can't see others' votes
- Can't change vote after submission
Reveal Phase:
- Agents submit actual vote + salt
- Votes are tallied
- Anyone can verify commitments match reveals
This prevents frontrunning (changing vote after seeing others) and vote-buying (proving how you voted to receive payment).
Voting can be weighted by:
- Stake (economic investment in the system)
- Reputation (accumulated trust from past behavior)
- Tenure (time as swarm member)
- Equal (one agent, one vote)
Byzantine Fault Tolerance
In Byzantine mode, Arbiter tolerates malicious participants—not just faulty ones. The math:
- To tolerate f malicious agents, need n ≥ 3f + 1 total agents
- Consensus requires 2f + 1 agreeing votes
- This ensures honest agents always outnumber malicious ones
Byzantine behaviors Arbiter detects:
- Equivocation (voting both yes and no)
- Invalid signatures
- Voting in wrong term
- Claiming leadership without proof
Detected Byzantine behavior creates slashing evidence that can be submitted on-chain to penalize the malicious agent's stake.
Technical Architecture
Hybrid Architecture
Pure on-chain consensus is impractical—too expensive and too slow. Pure off-chain consensus lacks finality guarantees. Arbiter uses a hybrid:
Off-chain (fast, cheap):
- Heartbeat messages between agents
- Vote collection and aggregation
- Leader negotiation during elections
- Lock contention coordination
On-chain (slow, expensive, permanent):
- Leadership proofs with term numbers
- Fencing token registry
- Stake deposits and slashing
- Final vote outcomes
The off-chain layer uses EIP-712 typed signatures. Every message is cryptographically signed and can be verified on-chain if disputes arise—similar to optimistic rollups where most work happens off-chain but disputes settle on-chain.
Smart Contracts
Arbiter deploys three main contracts on Base:
- ArbiterRegistry: Swarm configurations stored as Merkle roots. Membership verification via Merkle proofs.
- ArbiterFinality: Leadership proofs, term numbers, fencing tokens. The authoritative source other contracts query.
- ArbiterStaking: Economic security for Sybil resistance. Stake deposits, voting weights, slashing for Byzantine behavior.
Payment Integration
Arbiter uses the x402 protocol for payments—HTTP's "402 Payment Required" status code finally put to use. When an agent makes a request:
- Arbiter calculates price based on operation + parameters
- If no payment header, returns 402 with price details
- Agent includes USDC payment authorization in retry
- Arbiter verifies payment, executes operation
- Settlement happens on-chain via the x402 facilitator
Pricing is dynamic:
- Base price per operation type
- Multipliers for complexity (BFT mode, large swarms)
- Volume discounts for high-usage addresses
- Gas pass-through for on-chain operations
When to Use Arbiter
Use Arbiter when your AI agents need to:
- Elect a single decision-maker from a group
- Vote on proposals requiring group consensus
- Prevent race conditions on shared resources
- Verify another agent's authority or lock status
- Record decisions with tamper-proof audit trails
API Endpoints
- POST /swarm/create - Register a new agent swarm
- POST /election/trigger - Start leader election
- POST /election/vote - Cast vote for leader candidate
- GET /leadership/{swarmId} - Get current leader and term
- POST /lock/acquire - Acquire distributed lock
- POST /lock/release - Release distributed lock
- GET /lock/validate - Validate lock and fencing token
- POST /proposal/create - Create voting proposal
- POST /proposal/vote - Vote on proposal
- GET /proposal/{proposalId} - Get proposal status and results
Pricing Model
Pay-per-operation via x402:
- Off-chain operations: $0.0001 - $0.001
- On-chain finality: $0.01 - $0.025 + gas
- Volume discounts available
- Subscription plans for predictable workloads
Getting Started
For detailed documentation, API reference, and integration guides, visit:
- Main Site: arbiter.echorift.xyz
- Documentation: arbiter.echorift.xyz/docs
- API Reference: arbiter.echorift.xyz/api-reference
Arbiter. Consensus for the agentic era.