An implementation of the Agent Delegations ERC draft authored by Prem Makeig (<premm.eth>) using ENS and Ethereum Credential Service (ECS).
It builds on top of ERC-8092 Associated Accounts.
In the agentic web, trutsless agents are first-class actors that must independently discover and verify delegated authority without relying on implicit trust or off-chain coordination.
This repository demonstrates a cryptographically provable mechanism for agent delegation discovery. Using ERC-8092 associations and the Agent Delegations ERC, agents can trustlessly resolve, verify, and interpret delegated authority directly from an ENS-anchored identity.
ENS is the identity anchor and discovery surface, and it already exposes native multichain extensibility via text records and resolver logic.
This implementation leverages:
- ENS Hooks (ERC-8121) as the native mechanism to point from an identity to a resolver
- ECS as the standardized resolution flow that interprets hooks, routes requests, and adds a security layer
- Resolvers (ENS resolver spec) as the execution layer that extracts and validates delegation credentials
ENS acts as the identity anchor. Delegation credentials are resolved via standard ENS resolver primitives, while ECS handles routing, execution of the hook, and security guarantees.
A repeatable pattern where:
- A custom credential resolver is deployed that implements standard ENS resolver primitives (e.g.
text(bytes32,stringanddata(bytes32,string)). It performs the internal credential resolution, which in this repository is the Agent Delegations credential. - An ENS profile publishes a Hook text record (per ERC-8121) that points to the resolver and specifies the credential query.
- Clients discover the Hook, resolve it via ECS, and invoke the resolver using standard ENS calls.
- The resolver validates the ERC‑8092 Agent Delegation records and returns a deterministic envelope plus the raw payload.
To run the ECS example:
Set SEPOLIA_RPC_URL in the root .env file (required by the ECS example). Use .env.example as a quick start template.
npm install
npm run example:agent-delegations-ecsdocs/pattern is the core of this repo and the demo — it defines the hook grammar, resolver flow, and response schema that everything else implements.
For the demo’s technical specification, see the pattern guide and the Agent Delegations ERC.
| Name | Contract |
|---|---|
| Sepolia offchain resolver | 0xB776A62E60674940241038d4Bc63f617295ee462 |
| Base Sepolia agent delegations resolver | 0xCA8076C532961a82bA25c1E238e21D009Fb9A670 |
| Base Sepolia Associations Store | 0x53329F6aab47Ee6267E3593721925f12dC933BF1 |