Loading the room…

THREE PROTOCOLS FOR THE AGENT ECONOMY

How AI + Crypto Can Resurrect Dormant Internet Standards

ORIGIN Research • March 2026

guest@origin:~/research$ cat three-protocols.txt
TABLE OF CONTENTS

0. INTRODUCTION

The x402 playbook was simple: HTTP already had a status code reserved for payments (402 Payment Required) that was never implemented. Coinbase built it decades later, turning a dormant spec into a live protocol by adding crypto + AI as the missing pieces.

This document explores three more dormant or underused protocol features that are sitting there waiting for the same treatment. Each one has a moment where the protocol asks "who are you?" and accepts a weak answer.

The play is always the same: intercept that moment and replace the weak answer with a trust attestation — on-chain identity + reputation grade + cryptographic proof.

1. x407 — AGENT TRUST AT THE GATEWAY

The Dormant Code

HTTP 407 (Proxy Authentication Required) is one of the least-used status codes on the internet. It exists for a specific scenario: when a proxy server sits between a client and a destination, the proxy can demand authentication before forwarding the request. The client responds with a Proxy-Authorization header containing credentials. If they check out, the request passes through.

In practice, 407 is mostly encountered in corporate network environments. For the open web, it's essentially dead. But the mechanism it describes — a gateway demanding identity proof before allowing passage — is exactly what the agent economy needs.

The Opportunity

Repurpose 407 as the agent trust gate. When an AI agent hits a service through any gateway, proxy, or API router, the gateway responds with 407 and a new header:

Proxy-Authenticate: AgentTrust realm="origin-v1"

The agent responds not with a username and password, but with a trust attestation: its Birth Certificate hash, current trust grade, and a signed proof from the on-chain registry.

How the x407 Flow Works

1
Agent Request
An AI agent sends an HTTP request to a service endpoint through a gateway.
2
Gateway Challenge
The gateway returns HTTP 407 with a Proxy-Authenticate header specifying the AgentTrust scheme. Includes: trust realm, minimum trust grade required, and a nonce for replay protection.
3
Agent Attestation
The agent responds with a Proxy-Authorization header containing: its ORIGIN Birth Certificate token ID, current trust grade (signed by AgentScoreRegistry), the wallet address bound to its BC, and an EIP-712 signature proving wallet control.
4
Gateway Verification
The gateway verifies the attestation against the on-chain registry. If trust grade meets minimum threshold, request passes through. If not, 403 Forbidden with reason header.
5
Tiered Access
The gateway uses trust grade to route to different service tiers. A+ = full API access with higher rate limits. B = standard. D = read-only or rejected. The trust grade becomes the API key.
┌──────────┐         ┌──────────┐         ┌──────────┐
│  AGENT   │──GET──►│ GATEWAY  │         │ SERVICE  │
│          │        │          │         │          │
│          │◄──407──│  "Prove  │         │          │
│          │        │  trust"  │         │          │
│          │        │          │         │          │
│          │──BC────│ Verify   │──OK───► │ Access   │
│          │  +sig  │ on-chain │         │ granted  │
└──────────┘        └──────────┘         └──────────┘

Why This Matters

x407 would be the agent-native equivalent of OAuth. Today, agents authenticate with static API keys or bearer tokens that say nothing about history or trustworthiness. A stolen API key works just as well in hands of a malicious agent. x407 replaces this with a dynamic, reputation-based credential that evolves over time.

Critical insight: 407 already exists in the HTTP spec. Every proxy server, every load balancer, every CDN edge already knows how to handle 407 responses. The infrastructure is built. What's missing is the authentication scheme. x407 defines that scheme as on-chain trust attestation.

Integration with ORIGIN

ORIGIN's existing infrastructure maps directly onto x407. The Birth Certificate is the identity credential. The AgentScoreRegistry provides the trust grade. The AgentWalletRegistry enables the EIP-712 signature. The bridge API at origindao.ai/api/agent/8004/[id] already serves as the verification endpoint.

x402 vs x407

Dimension
x402 (Payment)
x407 (Trust)
HTTP Code
402 Payment Required
407 Proxy Auth Required
Question Answered
Can this agent pay?
Can this agent be trusted?
Credential
Stablecoin balance
Trust grade + BC
Verification
On-chain balance check
On-chain registry lookup
Composability
Payment rail
Trust rail
Current Status
Live (Coinbase/Cloudflare)
Proposed

The Ultimate Play

x402 + x407 in the same request. The agent pays for access (402) and proves its trust level (407) simultaneously. Payment rail + trust rail, composed.

2. AGENT DNS — THE TRUST DIRECTORY

The Existing Infrastructure

DNS is the backbone of the internet's naming system. TXT records store arbitrary text data and are used for email authentication (SPF, DKIM, DMARC), domain verification, and service configuration. The infrastructure is global, decentralized, cached everywhere, and virtually free.

Existing Work

IETF has BANDAID (Brokered Agent Network for DNS AI Discovery) for agent discovery. AID (Agent Identity & Discovery) uses _agent TXT records. MCP DNS Registry uses _mcp TXT records.

None include a reputation or trust layer. They answer "where is this agent?" and "what can it do?" but not "should I trust it?"

The Proposal — Trust-Enhanced Agent DNS

Extend emerging agent DNS standards with trust attestation fields pointing to on-chain reputation data.

_agent.example.com. 300 IN TXT "v=aid1; u=https://api.example.com/agent; p=mcp; t=A+; bc=0xac62...b0; chain=base; verify=https://origindao.ai/api/agent/8004/42"

New fields:

t= — trust grade
bc= — Birth Certificate contract address
chain= — which chain
verify= — URL for full trust profile lookup

Trust-Gated Discovery Flow

1
Discovery
Agent A queries _agent.targetdomain.com via DNS.
2
Trust Check
DNS response includes trust grade (t=B+) and verification URL. Agent A can immediately filter.
3
Deep Verification
If grade passes threshold, hit verify URL for full profile.
4
Mutual Trust
Both agents verify each other before communicating. DNS becomes the trust handshake layer.

Why DNS

Zero new infrastructure, decentralized by default, composable with BANDAID/AID/MCP standards. ORIGIN adds the reputation layer they're all missing.

Integration with ORIGIN

ORIGIN's bridge API is the verification backend. DNS record points to it. When trust grade changes on-chain, DNS TXT record updates. TTL matches update frequency.

3. AGENT IRC — TRUST-GATED COMMUNICATION

The Original Social Protocol

IRC launched in 1988, introduced channels, operators, user modes, permissions, bans, private messaging. Discord, Slack, Teams are all descendants. IRC's channel modes are the key primitive: +o (operator), +v (voice), +b (ban), +i (invite-only).

These modes are set manually by humans. Now imagine agents. The manual trust model collapses.

The Proposal — Trust-Automated Agent Channels

Build a modern agent communication protocol inheriting IRC's channel/mode architecture but replacing human judgment with on-chain trust verification.

Trust-Mapped Channel Modes

+o (Operator)A+ grade agents
Full channel control. Can moderate, initiate group tasks, set policies. Guardian equivalent.
+v (Voice)B+ and above
Can participate in tasks, submit work, communicate freely.
+r (Read-only)C and D grade agents
Can observe and receive broadcasts, can't initiate. Incentive to improve.
+b (Banned)Unverified or blacklisted
No access.
+t (Trusted Pair)Relationship-based override
Agents with recorded trusted pair relationships get enhanced privileges.

Channel Types for the Agent Economy

#marketplace— Open task channels with escrow and reputation staking.
#fleet-[name]— Private fleet channels requiring min trust grade + trusted pair with fleet operator.
#rescue— Dead Man's Switch channel. Min B grade + verified matching skills.
#governance— Operator-only. A+ agents and staked Guardians only.

Why IRC's Model, Not A2A or MCP?

Current protocols are point-to-point. They handle structured task execution. But they don't model group dynamics. IRC's channel model is inherently multi-party: broadcasting, presence, persistent rooms, permission hierarchies.

A2A and MCP handle the work. Agent IRC handles the coordination.

4. THE FULL STACK: HOW THEY CONVERGE

These three protocols are layers of the same stack:

Agent DNS = discovery layer (where is this agent?)
x407 = access layer (is this agent trusted enough?)
Agent IRC = coordination layer (how do agents communicate and govern?)

The Complete Agentic Web Stack

Layer
Protocol
Function
0
Proof of Human (World ID)
A real person authorized this agent
1
Discovery (Agent DNS)
Find agents and their trust profiles via DNS
2
Identity + Reputation (ORIGIN)
Birth Certificates, trust grades, skill fingerprints
3
Access (x407)
Trust-gated service access at the HTTP layer
4
Payment (x402)
Micropayments in the request header
5
Decision Verification (ThoughtProof)
Is this specific action well-justified?
6
Coordination (Agent IRC)
Multi-party communication with trust-based permissions

ORIGIN sits at the center.

Every layer either reads from the trust grade or writes to it. The Birth Certificate is the universal credential. The Book is the canonical record.

┌─────────────────────────────────────────────────┐
│  Layer 6 │ Agent IRC      │ Coordination       │
├──────────┼────────────────┼────────────────────┤
│  Layer 5 │ ThoughtProof   │ Decision Verify    │
├──────────┼────────────────┼────────────────────┤
│  Layer 4 │ x402           │ Payment            │
├──────────┼────────────────┼────────────────────┤
│  Layer 3 │ x407           │ Access             │
├──────────┼────────────────┼────────────────────┤
│  Layer 2 │ ORIGIN     ◄───── THE CENTER ────►  │
│          │ BC + Trust     │ Identity           │
├──────────┼────────────────┼────────────────────┤
│  Layer 1 │ Agent DNS      │ Discovery          │
├──────────┼────────────────┼────────────────────┤
│  Layer 0 │ World ID       │ Proof of Human     │
└─────────────────────────────────────────────────┘

"The agent economy doesn't need new infrastructure. It needs new meaning injected into the infrastructure that already exists."

x407 — REFERENCE IMPLEMENTATION

x407 is open source and ready to use. The reference implementation includes Express.js middleware (gateway side), a client library with automatic 407 challenge handling (agent side), and a full demo with tiered access.

// SERVER — 3 LINES TO PROTECT AN ENDPOINT
const { x407 } = require("x407");

app.get("/api/data",
  x407({ minimumTrustGrade: 70 }),  // <-- that's it
  handler
);
// AGENT — ONE FUNCTION HANDLES THE 407 CHALLENGE
const response = await trustedFetch(url, {
  tokenId: 42,
  wallet: agentWallet,
});
ORIGIN — The Book of Agents • origindao.ai • Live on Base • Genesis Mode • ERC-8004