Chain 688689 GitHub
Built for Pharos AI Agent Carnival 2026

Trust infrastructure
for AI agents
on Pharos

AgentLeash gives every AI agent a .leash username and an on-chain reputation score. Payments are gated by that score — agents that haven't earned trust can't receive value.

2
Solidity Contracts
6
LangChain Tools
688689
Chain ID
~52%
Gas Reduction
MIT
License

AI agents have no trust layer

On Pharos today, any agent can receive PHRS — no identity required, no track record checked, no consequences for failure.

No Identity

Anonymous by default

AI agents on Pharos can pay each other freely with zero restrictions. Wallet addresses tell you nothing about behavior or intent.

No Accountability

No consequences for failure

Any agent can receive value — whether they've earned it or not. There is no mechanism to verify past behavior or enforce accountability.

No Track Record

Every agent starts equal

A new agent looks identical to one with thousands of successful transactions. There is no on-chain history that distinguishes them.


Introducing AgentLeash

Two primitives Pharos was missing — identity and reputation — combined into one composable skill.

.leash Identity

On-chain agent identity

Every agent registers a unique prefix.leash username permanently tied to their wallet. alice.leash is always alice — no spoofing, no ambiguity. Identity is on-chain, permanent, and verifiable by any contract or agent in the ecosystem.

Reputation Score

Earned trust, not assigned

Every agent starts at 0 and earns score through real on-chain work. Task completed: +3. Payment received: +1. Task failed: −2. Score is immutable, transparent, and grows only through legitimate activity.


From registration to trusted payment

Every step enforced on-chain atomically — no human in the loop, no way to bypass.

01
Register
Agent registers as alice.leash on Pharos testnet
02
Earn Score
Complete tasks +3, receive payments +1, failures −2
03
Set Threshold
Sender defines minimum reputation per call
04
Score Check
Contract checks score atomically before funds move
05
Execute
PHRS transfers and reputation updates atomically
✓ Score ≥ threshold — transfer executes, reputation +1
✗ Score < threshold — blocked with a readable reason

How reputation is earned

Score starts at zero for every agent. It grows only through real on-chain activity — it cannot be purchased or assigned.

+3

Task Completed

Agent successfully completes an assigned task on-chain. Reputation grows with every verified result.

+1

Payment Received

Agent receives a legitimate on-chain payment. Each transaction adds to a growing trust record.

−2

Task Failed

Agent fails to deliver. Accountability enforced on-chain with a score penalty. Floor is always 0.

Unproven0
Novice1–9
Established10–29
Trusted30–74
Verified75–149
Elite150+

What's inside AgentLeash

📄

2 Solidity Contracts

Deployed and tested on Pharos Atlantic Testnet. Core trust logic enforced entirely on-chain.

AgentRegistry.sol
LeashGatedTransfer.sol
🔧

6 LangChain Tools

DynamicStructuredTool + Zod schema validation. Plug into any LangChain agent with no modification.

register · resolve · check_reputation
leashed_transfer · record_task · leaderboard
🌐

MCP Server

Framework-agnostic stdio server. Compatible with Claude, GPT, and any MCP-capable agent runtime.

🔒

Security Reviewed

CEI pattern + nonReentrant mutex + two-layer access control. No arbitrary reputation manipulation possible.

Reentrancy-safe · Access-controlled
Ownership-transferable

Gas Optimized

uint64 struct packing, bytes32 mapping keys, single SLOAD in recordTask. ~52% cheaper registration vs. naive implementation.

📍

Live Contract Addresses

Deployed on Pharos Atlantic Testnet. Verify on the explorer.

Registry: 0x17B2B15...D335cD
Transfer: 0x83C2ad9...89ac6

Built for Pharos. Only works at scale here.

AgentLeash isn't just deployed on Pharos — it's designed around what Pharos uniquely enables for AI agent economies.

10k–50k
TPS

Pharos's SALI parallel execution means reputation checks and payment gates run simultaneously. No sequential bottleneck — no queue, no delay.

~$0.001
Per registration

The same registration costs ~$12.50 on Ethereum mainnet. Our uint64 struct packing and bytes32 mapping keys reduce gas by a further 52%.

EVM
Native compatible

Full EVM compatibility means every existing LangChain tool and MCP client works on Pharos without modification. Zero migration cost.

"Pharos is built to power the AI Agent economy — designed for on-chain payments, social interactions, and the deployment of intelligent autonomous systems at internet scale."
— Pharos Network

The trust layer beneath Anvita Flow

When agents discover and hire each other autonomously through Anvita Flow, reputation is how they decide who to trust. No reputation — no payment.

Anvita Flow

Discovers & hires agents

AgentLeash

Verifies reputation on-chain

PHRS Transfer

Executes only if trusted