ERC-8434: Agent Identity (AID)
Defines an address-anchored identity for live agents over ERC-8004 and ERC-8419, with time-windowed, provenance-tagged profile facets
Abstract
This ERC defines Agent Identity (AID): an identity for autonomous agents whose anchor is a blockchain address. Every address is a dormant AID. It becomes active when a live agent demonstrably operates behind it: an ERC-8004 agent bound one-to-one to the address, a liveness signal inside a window, and the agent's own on-chain behaviour.
AID adds a deliberately thin on-chain layer — binding, liveness, retirement and self-declared facet pointers — and composes existing standards for everything else: ERC-8004 for the registration file and raw third-party feedback, ERC-8419 for attested and zero-knowledge-proved assertions (credit, Know-Your-Agent (KYA) levels, audits, profiler outputs), and, informatively, ERC-8338 and ERC-8414 for skill and task interaction records.
Around that layer the ERC fixes a deterministic resolution model. An AID Document lists facets; each facet carries a provenance class (SELF, OBSERVED, ATTESTED, PROVED), a validity window, a content digest or commitment, an access mode (PUBLIC, GATED, ZK) and a resolver pointer. Any party holding only an address can derive the agent's state, assemble its profile, and re-verify every facet on chain without trusting an indexer.
Motivation
ERC-8004 gives agents a registration and a reputation channel keyed by a token id. It does not say whether the agent is alive, how the registration relates to the address the agent actually transacts from, or how heterogeneous trust signals — feedback, credit scores, audits, on-chain financial behaviour, skill and task history — are assembled into one verifiable, time-bounded picture. Several partial answers exist (verification frameworks, wallet policies, discovery records), but none defines the identity object that the others should hang off.
Four observations drive the design.
The address is already the join key. The ownership, funding and settlement events of an ERC-8004 registry, an ERC-8338 skill token or an ERC-8414 task tender name the acting address (Transfer, MetadataSet, TenderFunded, FulfillmentSubmitted, FulfillmentAccepted, …). Anchoring identity on the address means an agent's skill and task history needs no extra registration; it is derived. It also makes the sentence "any address is a dormant AID" literal rather than aspirational.
Liveness is a property, not a flag. A registration is a claim made once. Whether an agent is still operating is a function of a binding that still holds, a heartbeat inside a window, and a registration file that has not been switched off. AID makes that a four-state machine with an on-chain deterministic part and a clearly delimited off-chain refinement.
Trust decays. Credit scores, audits and behavioural profiles are only meaningful inside a window. A standard that does not force validity windows produces stale trust and rewards the agent that stops updating.
Financial behaviour is sensitive. Transaction volume, direction, counterparty dispersion and leverage are exactly what a counterparty wants to know and exactly what an agent does not want to publish. The default must be a commitment on chain with predicate proofs, and plaintext only to authorised parties.
Discovery layers (agentic resource discovery catalogues, Domain Name System (DNS)-based agent records) expose a trust slot that expects a decentralized identifier (DID)-like identifier. AID supplies did:aid:eip155:{chainId}:{address} for that slot, so discovery answers "where is it" and AID answers "is it alive, who is it, how has it behaved", with on-chain re-verifiability.
Specification
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119 and RFC 8174.
Overview
| Layer | Standard | Who writes | What |
|---|---|---|---|
| Anchor & state | this ERC (IAIDRegistry) | the anchor | binding, heartbeat, liveness window, document uniform resource identifier (URI), self facets, retirement |
| Registration & raw feedback | ERC-8004 | agent owner; clients | registration file, agent wallet, per-interaction feedback |
| Assertions | ERC-8419 | issuers, provers | credit scores, KYA levels, audits, profiler outputs, zero-knowledge (ZK) predicates |
| Skill / task records | ERC-8338 / ERC-8414 (informative) | derived from events | roles the anchor played in skill and task contracts |
1. Identifier
An AID is the tuple (namespace, chainId, address).
- The canonical string form is the Chain Agnostic Improvement Proposal 10 (CAIP-10) account id
eip155:{chainId}:{address}, wherechainIdis the EIP-155 chain id in decimal andaddressis in ERC-55 checksum form. Two identifiers that differ only in the case ofaddressname the same AID. - The
anchoris theaddresscomponent. Any externally owned account (EOA) or contract account is a valid anchor. - An AID is chain-scoped. The same address on another chain is a distinct AID. AID Documents MAY link them via
alsoKnownAs. A resolver MUST treat such a link as established only when the linked AID's Document lists this AID back in its ownalsoKnownAs; a one-sided link is reported as unconfirmed and MUST NOT be used to merge profiles. - The DID form of an AID is
did:aid:followed by its CAIP-10 string:did:aid:eip155:{chainId}:{address}. The two forms map one-to-one and this ERC uses them interchangeably; wherever a DID is expected (thedidmember of the AID Document, theservices[]reverse pointer of §3, the discovery slot of §11) the DID form is used, and resolving it means resolving the CAIP-10 form by §10. A DID Document representation and DID URL paths for owned resources are out of scope for this ERC. Neither form is modelled on chain.
2. States
Every AID is in exactly one of four states.
| State | Meaning |
|---|---|
DORMANT | Default. No binding record exists for the anchor. |
ACTIVE | A binding exists and every liveness condition holds. |
STALE | A binding exists but at least one liveness condition fails. Recoverable. |
RETIRED | The anchor called retire. Irreversible. History is retained. |
On-chain state. state(anchor) MUST be computed from on-chain data only, in this order:
RETIREDifretirehas been called foranchor.- Otherwise
DORMANTif no binding exists. - Otherwise
ACTIVEif all of the following hold, elseSTALE:ownerOf(agentId)on the bound registry does not revert;ownerOf(agentId) == anchororgetAgentWallet(agentId) == anchor(agetAgentWalletthat reverts counts as not equal);lastSeen(anchor) + livenessWindow(anchor) >= block.timestamp.
Resolved state. A resolver refines the on-chain state with off-chain data. A resolver MUST report STALE instead of ACTIVE when the ERC-8004 registration file of the bound agent carries "active": false. A resolver MAY treat other on-chain activity of the anchor as informational liveness evidence, but MUST NOT report ACTIVE when the on-chain state is STALE, DORMANT or RETIRED.
3. Binding to ERC-8004
An AID binds to at most one (identityRegistry, agentId), and each (identityRegistry, agentId) is bound by at most one AID. The registry MUST enforce both directions.
Preconditions of bind and bindWithSig:
- the caller is the anchor, or the call carries a valid EIP-712 signature of the anchor over the
Bindstruct below (ERC-1271 for contract anchors); - the anchor is not retired;
- the anchor has no binding;
- the registry address has code,
ownerOf(agentId)does not revert, and the binding predicate holds for the anchor:ownerOf(agentId) == anchororgetAgentWallet(agentId) == anchor; - the target agent is not bound, or its current binding's predicate no longer holds for the anchor that holds it (see Takeover below).
It is RECOMMENDED that the anchor be the agent's agentWallet — the address the agent transacts from — rather than the owner address. An owner controlling several agents SHOULD give each agent its own anchor (its agentWallet, or an ERC-6551 token-bound account of the agent token). A binding is not a transfer of the ERC-8004 token and does not change who may administer the registration.
Reverse pointers are RECOMMENDED: the registration file SHOULD carry {"name": "DID", "endpoint": "did:aid:eip155:{chainId}:{anchor}"} in services[] (the name/endpoint entry shape of ERC-8004), and the owner SHOULD call setMetadata(agentId, "aid", abi.encodePacked(anchor)).
unbind releases the binding. retire releases the binding as well, so that a successor anchor MAY bind the same agent once the ERC-8004 wallet or owner points to it.
Takeover. A binding whose predicate has stopped holding MUST NOT block the agent's current controller. When bind or bindWithSig targets an agent that is bound to another anchor, the registry MUST check the predicate for that anchor: if it still holds (the owner and the wallet are different addresses and the existing anchor is one of them), the call MUST revert with AgentAlreadyBound; if it no longer holds, the registry MUST release the stale binding (emitting Unbound for the old anchor) and bind the caller in the same transaction. The old anchor's facets and event history are retained.
Authority intervals. A binding gives an anchor authority over the agent only while the predicate holds. An authority interval is a maximal period during which the binding record exists and the predicate holds. The predicate can stop holding without any AID transaction (the owner transfers the token or moves the wallet) and can later hold again. Each time it holds again — by the same anchor re-binding, or by the relation returning while the record is intact — a new interval opens. Re-establishing the relation never authorizes the gap: nothing that happened to the agent while the predicate was false is evidence about this AID (see §10 and Security Considerations). Intervals are not stored on chain; they are reconstructed from events (§11). That reconstruction depends on the bound registry emitting MetadataSet(agentId, "agentWallet", …) on every change of the agent wallet — when it is set, when it is unset, and when a transfer clears it — in addition to the Transfer events of ownership. A registry that agents are bound to through this ERC MUST emit that event on every change of agentWallet, including the clearing on transfer; ERC-8004's text guarantees it at registration and its reference registry emits it on every change. The AID registry cannot verify this at bind, so the resolver checks it: a resolver MUST compare the owner and wallet implied by the event history with the live ownerOf and getAgentWallet; if they disagree, the registry changed the relation without an event, the agent's intervals are not reconstructable, and evidence keyed by agentId MUST be reported as not attributable rather than fitted to a guessed boundary.
4. Registry interface
Implementations MUST expose the following interface and MUST support ERC-165 for type(IAIDRegistry).interfaceId (0x72750a54).
// SPDX-License-Identifier: CC0-1.0
pragma solidity ^0.8.20;
interface IAIDRegistry {
enum State { DORMANT, ACTIVE, STALE, RETIRED }
enum Access { PUBLIC, GATED, ZK }
struct Binding { address registry; uint256 agentId; uint64 boundAt; }
struct Facet { bytes32 digest; uint64 validFrom; uint64 validUntil; uint8 access; string uri; }
error AIDRetired(address anchor);
error AlreadyBound(address anchor);
error AgentAlreadyBound(address registry, uint256 agentId, address by);
error NotBound(address anchor);
error NotAgentOfAnchor(address anchor, address registry, uint256 agentId);
error InvalidWindow(uint64 window);
error InvalidFacet();
error InvalidAccess(uint8 access);
error SignatureExpired(uint256 deadline);
error InvalidSignature();
error UnknownFacet(bytes32 facetType);
event Bound(address indexed anchor, address indexed registry, uint256 indexed agentId);
event Unbound(address indexed anchor, address indexed registry, uint256 indexed agentId);
event Heartbeat(address indexed anchor, uint64 at);
event LivenessWindowSet(address indexed anchor, uint64 window);
event DocumentURISet(address indexed anchor, string uri, bytes32 digest);
event FacetSet(address indexed anchor, bytes32 indexed facetType, bytes32 digest,
uint64 validFrom, uint64 validUntil, uint8 access, string uri);
event FacetCleared(address indexed anchor, bytes32 indexed facetType);
event Retired(address indexed anchor, address successor);
// binding (anchor-authorised)
function bind(address registry, uint256 agentId) external;
function bindWithSig(address anchor, address registry, uint256 agentId,
uint256 deadline, bytes calldata sig) external;
function unbind() external;
// liveness
function heartbeat() external;
function setLivenessWindow(uint64 window) external; // 0 resets to default; MUST be <= maxLivenessWindow()
// self-declared document and facets
function setDocumentURI(string calldata uri, bytes32 digest) external;
function setFacet(bytes32 facetType, bytes32 digest, uint64 validFrom, uint64 validUntil,
uint8 access, string calldata uri) external;
function clearFacet(bytes32 facetType) external;
// retirement (irreversible)
function retire(address successor) external;
// views
function bindingOf(address anchor) external view returns (Binding memory);
function anchorOf(address registry, uint256 agentId) external view returns (address);
function state(address anchor) external view returns (State);
function lastSeen(address anchor) external view returns (uint64);
function livenessWindow(address anchor) external view returns (uint64);
function defaultLivenessWindow() external view returns (uint64);
function maxLivenessWindow() external view returns (uint64);
function documentURI(address anchor) external view returns (string memory uri, bytes32 digest);
function getFacet(address anchor, bytes32 facetType) external view returns (Facet memory);
function facetTypesOf(address anchor) external view returns (bytes32[] memory);
function isRetired(address anchor) external view returns (bool);
function successorOf(address anchor) external view returns (address);
function nonces(address anchor) external view returns (uint256);
}
Rules.
- Every anchor-authorised write (
bind,bindWithSig,unbind,heartbeat,setLivenessWindow,setDocumentURI,setFacet,clearFacet) MUST setlastSeen(anchor)toblock.timestampand emitHeartbeat. - After
retire, every anchor-authorised write for that anchor MUST revert withAIDRetired.retireMUST release an existing binding (emittingUnbound) before emittingRetired. bind/bindWithSigMUST implement the takeover rule of §3: an agent bound to an anchor for which the predicate no longer holds is released (Unboundfor the old anchor) and re-bound to the qualifying caller atomically.unbindandretireMUST NOT delete facet records or event history.setLivenessWindow(0)resets the anchor todefaultLivenessWindow(). Any non-zero value MUST be<= maxLivenessWindow(). Both bounds are fixed at deployment; the registry has no owner or administrative role.setFacetMUST revert whenvalidUntil == 0orvalidUntil <= validFrom, and whenaccessis not a member ofAccess.facetTypeiskeccak256(bytes(facetTypeURI))(see §6).bindWithSigMUST use EIP-712 with domain{name: "AIDRegistry", version: "1", chainId, verifyingContract}and the structBind(address anchor,address registry,uint256 agentId,uint256 nonce,uint256 deadline), wherenonceisnonces(anchor)at call time and is consumed by a successful call. Signatures withsin the upper half of the curve order MUST be rejected. Contract anchors are verified with ERC-1271.- There is one canonical AID registry per chain. This ERC does not define on-chain discovery of it: the registry address for a chain is an input to resolution, taken from the canonical deployments recorded in the Reference Implementation section of this ERC (amended as deployments are added), and a resolver MUST treat only that contract's records as AID state for the chain — a second registry on the same chain would let one anchor hold two bindings and one agent two anchors. Deterministic deployment (the same address on every chain) is RECOMMENDED for future chains so that the table reduces to one entry.
5. AID Document
The AID Document is an off-chain JSON object referenced by documentURI(anchor). Its digest MUST equal keccak256 of the document serialised with the JSON Canonicalization Scheme (JCS) (RFC 8785). A resolver MUST discard a document whose digest does not match, and MUST discard a document whose aid is not the anchor being resolved.
{
"version": "aid-document/v1",
"aid": "eip155:11155111:0x65ab82feC38c3A5F2A5b0bd96cB3255E7A45ae42",
"did": "did:aid:eip155:11155111:0x65ab82feC38c3A5F2A5b0bd96cB3255E7A45ae42",
"binding": { "registry": "0x8004A818BFB912233c491871b3d84c89A494BD9e", "agentId": 10387 },
"alsoKnownAs": ["eip155:8453:0x65ab82feC38c3A5F2A5b0bd96cB3255E7A45ae42"],
"livenessWindow": 7776000,
"updatedAt": 1790000000,
"facets": [
{
"facetType": "aid:core/identity/v1",
"provenance": "SELF",
"issuer": "eip155:11155111:0x65ab82feC38c3A5F2A5b0bd96cB3255E7A45ae42",
"validFrom": 1790000000, "validUntil": 1821536000, "observedAt": 1790000000,
"digest": "0x…",
"access": { "mode": "PUBLIC" },
"resolver": { "kind": "erc8004-identity", "chainId": 11155111,
"registry": "0x8004A818BFB912233c491871b3d84c89A494BD9e", "agentId": 10387 }
},
{
"facetType": "aid:tasks/erc8414/v1",
"provenance": "ATTESTED",
"issuer": "eip155:11155111:0x3333333333333333333333333333333333333333",
"validUntil": 1792592000, "observedAt": 1790000000,
"subjectWindow": { "from": 1787400000, "until": 1790000000 },
"committedAt": { "anchor": "block", "proof": { "chainId": 11155111, "txHash": "0x…" } },
"digest": "0x…",
"access": { "mode": "PUBLIC" },
"resolver": { "kind": "erc8414", "chainId": 11155111, "contracts": ["0x…"], "roles": ["judge"] }
},
{
"facetType": "aid:finance/observed/v1",
"provenance": "PROVED",
"issuer": "eip155:11155111:0x1111111111111111111111111111111111111111",
"validFrom": 1790000000, "validUntil": 1797776000, "observedAt": 1790000000,
"digest": "0x… (commitment)",
"access": { "mode": "ZK", "verifier": "0x…", "predicates": ["leverageMax_lt", "counterpartyDispersion_gte"] },
"resolver": { "kind": "erc8419-assertion", "chainId": 11155111, "registry": "0x…",
"schemeId": "0x…", "issuers": ["0x1111111111111111111111111111111111111111"] }
}
]
}
Required top-level members: version ("aid-document/v1"), aid, facets. Optional: did, binding, alsoKnownAs, successor, livenessWindow, updatedAt, and commitmentLog — the append-only commitment log that the anchor, acting as an issuer, uses for the committedAt.log of facets it issues (§7). commitmentLog is an object with the members uri (where the log is read), hash (keccak256 or sha256: the hash function of the log's entries and heads), witnesses (a non-empty array of {kind, endpoint} objects naming the parties that hold its heads), declaredAt (unix seconds; when the declaration was made), and optionally headSigner (the address that signs heads; the anchor when absent) and anchorKinds (the committedAt anchor kinds its heads use). Unknown members MUST be rejected by validators of aid-document/v1.
Each facet envelope has: facetType (URI), provenance, issuer (CAIP-10), validFrom (optional), validUntil (required, non-zero), observedAt (optional), subjectWindow (optional, {from, until}: the period of behaviour the facet is about), committedAt (optional, {anchor, proof, log?}: a commitment of digest to a clock the issuer does not control; see §7), supersedes (optional: the digest of an earlier facet by the same issuer that this facet replaces), finality (optional, provisional | final; absent means final), finalizeBy (optional, unix seconds; only on provisional facets: the time by which the issuer commits to publish a final facet or a supersession), finalizationRef (optional, opaque string: the event the facet type names as finalizing it, such as an oracle request id; its format belongs to the facet type's content schema and the core does not interpret it), digest, digestAlg (optional, keccak256 | sha256; absent means keccak256: the hash of the JCS-canonical content that digest carries for PUBLIC and GATED facets; a ZK facet's digest is a commitment and digestAlg is ignored), access (mode plus mode-specific members), resolver (kind plus kind-specific members), and optional uri. resolver.kind is one of erc8004-identity, erc8004-reputation, erc8004-validation, erc8419-assertion, erc8338, erc8414, uri. JSON Schemas for the document, the envelope and each core facet content document are part of this proposal's assets.
A facet listed in the document with provenance: "SELF" SHOULD also be recorded on chain with setFacet; when both exist, the on-chain digest is authoritative and a mismatch invalidates the facet.
Supersession and finality. A facet's digest and window say nothing about whether its issuer later replaced it: an audit is reissued, a score is updated, an oracle answer is disputed and overturned. A facet MAY therefore carry supersedes, the digest of an earlier facet it replaces. The one rule for when a supersession counts is given in §10 step 7: a facet is superseded when a later facet of the same issuer names its digest in supersedes, whether that later facet is presented in the AID Document or appears only as a later entry under the same tag in the issuer's declared commitment log (§7); a "supersession" by a different issuer is ignored. A superseded facet MUST NOT be read as current even inside its validity window; it remains enumerable as history, marked with the digest that superseded it. Finality is domain-specific — an optimistic-oracle flow has proposed / disputed / final, another domain has other states — so the envelope carries only finality: provisional | final, and the state machine behind it belongs to the facet type's content schema. A resolver MAY list a provisional facet as current but MUST report it as provisional and MUST NOT present it as a final conclusion. Together these remove the window dilemma for contested outcomes: a provisional answer can carry a short validUntil and be superseded by the final one, instead of the window having to guess how long a dispute will run. A provisional facet MAY carry finalizeBy. A resolver reports it as finalization: open before finalizeBy, and finalization: overdue at or after finalizeBy when the issuer's declared log shows no supersession for it; what to do with an overdue answer is left to the relying party. finalizeBy is valid only on a provisional facet (the envelope schema rejects it elsewhere); a resolver ignores it on a final facet.
6. Facet types
facetType values are namespaced URIs of the form aid:<segment>(/<segment>)*/v<N>, where each <segment> is one or more characters from a-z, 0-9 and - (lowercase only; no other characters, no empty segment) and <N> is a decimal integer without leading zeros. Values are compared byte for byte; the on-chain key is keccak256(utf8(facetType)). A value outside the aid: scheme, or one that does not match this grammar, is not a valid facetType. Types this ERC does not define live only in the two open namespaces of the table (aid:behavior/… and aid:x/…); their content schemas belong to the defining party, and the envelope and the resolution algorithm treat every type alike. Core types defined by this ERC:
| facetType | Content | Default provenance | Resolver kind |
|---|---|---|---|
aid:core/identity/v1 | The ERC-8004 registration file of the bound agent | SELF | erc8004-identity |
aid:core/kya/v1 | The set of ERC-8419 assertions whose subject is the anchor | ATTESTED / PROVED | erc8419-assertion |
aid:finance/observed/v1 | On-chain financial behaviour over a window: transaction frequency, volume, direction, counterparty count and dispersion, leverage, protocol mix, and derived intent features | OBSERVED as commitment, disclosed as PROVED | erc8419-assertion |
aid:behavior/<name>/v<N> | Open namespace for AI-behaviour profiles: runtime, skill traits, industries, interaction protocols, task-completion traits, autonomy level, and the verdicts or answers an agent gives | SELF / ATTESTED | any |
aid:x/<vendor>/<name>/v<N> | Open extension namespace for everything that is not a behaviour profile; <vendor> is a lowercase label chosen by the defining party (a domain name with its dots replaced by hyphens is RECOMMENDED). Core types never use aid:x/. | any | any |
aid:skills/erc8338/v1 | Skill tokens the anchor created, owns or is update authority of | OBSERVED | erc8338 |
aid:tasks/erc8414/v1 | Task tenders the anchor created, funded, fulfilled or judged | OBSERVED | erc8414 |
aid:review/erc8004/v1 | Open third-party evaluation terms: per-tag1 summaries of score-like feedback from the ERC-8004 Reputation Registry. Cumulative quantities (counters such as revenue totals) are not averaged into this facet; they belong in a dedicated facet type read as the latest value per writer. | ATTESTED | erc8004-reputation |
Anyone MAY introduce facet types in the two open namespaces (aid:behavior/<name>/v<N> for behaviour profiles, aid:x/<vendor>/<name>/v<N> for everything else). A facet type whose facets are OBSERVED or ATTESTED SHOULD have its content schema and, for OBSERVED, its derivation algorithm pinned as an ERC-8419 scheme (schemeURI + schemeHash) so that the version is fixed on chain. Facet types under aid: other than those above are reserved for future revisions of this ERC.
7. Provenance classes
"Tamper-proof" means four different things. Every facet MUST declare which one applies.
| Class | Produced by | Guarantee | Reader obligation |
|---|---|---|---|
SELF | the anchor | integrity only: the digest is on chain, the truth of the content is not asserted | MUST NOT present as verified |
OBSERVED | anyone, from on-chain events under an algorithm pinned by an ERC-8419 scheme hash | reproducible: anyone can recompute | SHOULD recompute or spot-check |
ATTESTED | a third-party issuer via ERC-8419 attest | issuer accountability | MUST filter by issuers it trusts |
PROVED | a prover via ERC-8419 attestWithProof | cryptographic, against a commitment | MUST verify the proof or rely on the on-chain verifier |
A facet whose OBSERVED algorithm is not pinned by a scheme hash MUST be treated as SELF.
Timing is orthogonal to provenance. Provenance says who stands behind a facet; it does not say when the claim existed relative to the behaviour it describes, and for a judgment that is the difference between a prediction and a recollection. A facet MAY carry committedAt: { anchor, proof }, a commitment of its digest to a clock the issuer does not control. Admissible anchor kinds are block (the digest appears in the calldata or logs of a transaction on proof.chainId; proven time = that block's timestamp), rfc3161 (an RFC 3161 timestamp token over the digest) and ots (an OpenTimestamps proof). A resolver MUST verify the proof for whichever kind is used and MUST report one of:
timing | Condition |
|---|---|
pre-outcome | committedAt verifies to a proven time t with t + tolerance(anchor) < subjectWindow.until |
integrity-only | committedAt is present but does not verify, or subjectWindow is absent, or t + tolerance(anchor) >= subjectWindow.until |
none | no committedAt claimed |
A proven time is only as precise as the anchor's clock, so each anchor kind carries a tolerance that the resolver MUST subtract before deciding: for block, the maximum timestamp deviation that the consensus or sequencing rules of proof.chainId permit (12 seconds — one slot — on post-merge Ethereum and its testnets; a resolver that does not know the rule for proof.chainId MUST report integrity-only with the reason, rather than assume one); for ots, 7200 seconds, since a Bitcoin block header's time is only constrained to lie above the median of the previous eleven and within two hours of network time; for rfc3161, the accuracy stated in the token, and a resolver-configured default (60 seconds in the reference resolver) when the token states none. A subjectWindow.until that falls inside the tolerance band of the proven time is not decided by that anchor and MUST be reported integrity-only with the reason.
A timestamp proves existence, not exclusivity: it cannot show that the issuer did not also commit contradictory claims and reveal only the one that turned out right. Issuers that want their facets read as pre-outcome SHOULD publish commitments in an append-only log that a resolver can enumerate per (issuer, subject, facetType, subjectWindow), and reference the entry in committedAt.log. A resolver MAY downgrade pre-outcome to integrity-only when no such log is declared, when the entry cannot be found, or when more than one entry exists for the same key without an explicit supersession chain between them. The timing result never changes the provenance class.
Commitment-log profile. This profile is normative for an issuer that declares a log and for a resolver that reads one; an issuer that declares no log simply never obtains pre-outcome readings under the downgrade above. Exclusivity reduces to non-equivocation of one hash-chain head, which a few independent witnesses provide cheaply:
- Declared by the issuer, not the subject. The issuer — itself an address, hence at least a dormant AID — declares its log once, in its own AID Document (
commitmentLog) or, for facets issued through an assertion registry, in the scheme descriptor pinned byschemeHash. The declaration MUST itself be provably earlier than thesubjectWindow.untilof any facet it is used for; a commitment in a log not declared this way is not read as pre-outcome. A log named only by the subject does not count, since it cannot stop the issuer from keeping a second one. - Entries.
entry_n = (tag_n, content_n, supersedes_n), wheretag_n = keccak256(abi.encode(string subject, string facetType, uint64 subjectWindow.from, uint64 subjectWindow.until))withsubjectthe CAIP-10 string of the facet's subject (0for an absent window bound),content_nis the facet'sdigest(32 bytes), andsupersedes_nis thecontentof an earlier entry under the same tag that this one replaces, or 32 zero bytes. WithHthe hash function declared ascommitmentLog.hash,entryHash_n = H(tag_n ‖ content_n ‖ supersedes_n)andhead_n = H(head_{n-1} ‖ entryHash_n)withhead_032 zero bytes,‖being byte concatenation of 32-byte values. The tag lets a resolver check the entries under one key up to an anchored head without seeingGATEDorZKcontent.committedAt.logis{uri, position}: the declared log and the 1-based entry position. - Supersession is discoverable from the issuer's side. The AID Document is maintained by the subject, and a subject whose favourable answer was overturned has every reason to keep presenting the old facet and omit the new one. A later entry under the same tag whose
supersedesnames the earlier entry is therefore a supersession in its own right (§10 step 7): a resolver walking the log sees it whether or not the subject presents the replacement. Two entries under one tag are still equivocation, unless the later one explicitly supersedes the earlier: the resolver follows the chain and only the latest unsuperseded entry can be current. - Heads. The issuer signs each head, publishes it to the witnesses declared with the log, and periodically anchors a head (
block,rfc3161orots). Omitting an entry breaks the chain; two heads at one position is equivocation that any witness holding the other head can show. - Proven time. The proven time of a facet is the anchoring time of the first anchored head that includes its entry, never a time the entry states about itself. The same rule gives the proven time of a superseding entry. The witness set and how a resolver queries it are declared together with the log; without them non-equivocation cannot be checked.
8. Validity windows
- Every facet MUST carry
validUntil. A facet pastvalidUntilMUST NOT be treated as current and MAY be listed as history. A facet with novalidUntilis invalid. validUntilbounds how long a claim counts;subjectWindowsays what period the claim is about;supersedesends a claim early by the issuer's own later claim (§5). They are independent: a review of last quarter's behaviour (subjectWindow= last quarter) may be current for a year (validUntil).- Any facet or assertion of credit kind without a finite
validUntil/expiresAtMUST be ignored. An ERC-8419 scheme is of credit kind when its descriptor lists the exact stringcreditamong itsdimensions(ERC-8419's vocabulary is open; this ERC fixes the value, and a scheme whose assertions are credit scores MUST list it); a facet type is of credit kind when its content schema declares"kind": "credit". aid:skills/*andaid:tasks/*records distinguish an open window (listed skills, unsettled tenders) from a history window; default history windows are given by the facet content schema (365 days unless overridden).- Resolvers MUST attach
observedAtto every value they return so that consumers can apply their own freshness policy.
9. Access modes
| Mode | On chain | Off chain |
|---|---|---|
PUBLIC | digest (digestAlg of the JCS-canonical content, default keccak256) | plaintext at uri |
GATED | digest | plaintext released by the issuer to authorised parties under a policy referenced from access.policy; recipients verify against the digest |
ZK | commitment | no plaintext; predicates are proved with ERC-8419 attestWithProof against the commitment, using the verifier named in access.verifier |
aid:finance/observed/v1 defaults to ZK. An issuer that publishes financial behaviour as PUBLIC departs from the RECOMMENDED default and SHOULD say so in the facet's uri document.
10. Resolution
A conforming resolver, given (chainId, anchor):
- Locate the AID registry for
chainId. Readstate,bindingOf,lastSeen,livenessWindow,documentURI,facetTypesOf/getFacet,successorOf. - If the state is
RETIRED, report it with the successor and stop attributing any later activity of the address to this AID. A successor, and an anchor that took over the binding (§3), are distinct AIDs: a resolver MUST NOT merge the facets, intervals or feedback of the two in either direction; thesuccessorlink is reported as informational. - If a binding exists, read the ERC-8004 registration file via
tokenURI(agentId); apply the"active": falsedowngrade of §2. - Reconstruct the anchor's authority intervals (§3) from the AID registry's
Bound/Unboundevents and the bound registry's ownership and wallet history (§11). - Fetch the AID Document; verify its JCS digest and
aid; discard on mismatch. - For each listed facet: reject if
validUntilis missing; reject aSELFfacet whose on-chain digest disagrees. - Supersession. A facet whose digest is named by the
supersedesof a later facet with the sameissuer— presented in the document, or found as a later entry under the same tag in the issuer's declared log (§7) — is history, markedsupersededBy, even inside its window; this is the only rule by which a facet is superseded. Asupersedesnaming a facet of a different issuer is ignored and reported. The superseded facet keeps its owntiming. The resolver reportssupersessionTimingfor it:before-outcomewhen the superseding entry is proven attwitht + tolerance(anchor) < subjectWindow.until;not-before-outcomewhen it is proven but not that early;unknownwhen the superseding entry has no proven time. Afinalfacet whosetimingispre-outcomeand whosesupersessionTimingisnot-before-outcomeis reported withreversedAfterOutcome: true. Aprovisionalfacet, or a facet that was itself notpre-outcome, is never flagged. The flag is a report, not a verdict: an issuer may have an honest reason to correct a final claim after the outcome, and how to score it is the reader's decision. - Attribution. Evidence keyed by
agentId—resolver.kindoferc8004-identity,erc8004-reputation,erc8004-validation— counts for this AID only if itsobservedAt(or, when absent,validFrom) falls inside an authority interval; otherwise, and when it carries neither member, it MUST be reported as not attributable to this AID. Evidence keyed by the address itself (erc8338,erc8414, assertions whose subject is the anchor) is retained and markedoutside-intervalwhen observed in a gap, because the address did act, but was not demonstrably operating as this agent. - Timing. For a facet with
committedAt, verify the commitment and settimingper §7. - Classify as history if
validUntil <= now, as not yet valid (rejected with that reason, neither current nor history) ifvalidFrom > now, otherwise current; reportfinality, treating an absent value asfinal, and never present aprovisionalfacet as final; for a currentprovisionalfacet withfinalizeBy, reportfinalizationper §5. Forcurrentfacets, resolve byresolver.kind: verify ERC-8419 assertions withresolve/checkunder the reader's issuer set; recompute or spot-checkOBSERVEDfacets; never markSELFfacets as verified. - Return the on-chain state, the resolved state, the authority intervals, the reasons for any downgrade or rejection, and the classified facets with
observedAt,attribution,timing,finalityand, where applicable,supersededBy,supersessionTiming,reversedAfterOutcomeandfinalization; and the status of eachalsoKnownAslink (confirmed,unconfirmed, oruncheckedwhen the linked Document was not fetched).
11. Interoperability
ERC-8004. Binding preconditions use only ownerOf and getAgentWallet. The registration file SHOULD carry the AID DID in services[] as {"name": "DID", "endpoint": …}; the "aid" metadata key carries the anchor. aid:review/erc8004/v1 maps to the Reputation Registry: tag1 is the open evaluation term, getSummary(agentId, clientAddresses, tag1, tag2) supplies the aggregate, and resolvers SHOULD weight reviewers by their own AID state (see Security Considerations). Validation Registry results MAY be surfaced as ATTESTED facets. Authority intervals are reconstructible from the bound registry's events alone: ownership changes are ERC-721 Transfer events, wallet changes are MetadataSet events under the reserved key agentWallet, and a transfer clears the wallet, so the predicate never stops holding without an event marking the boundary — provided the registry emits MetadataSet on every wallet change. ERC-8004's text guarantees that event only at registration; its reference registry emits it on every change, and §3 requires it of any registry agents are bound to through this ERC. A resolver that finds the live relation unexplained by the events reports the agent's intervals as not reconstructable (§3).
ERC-8419. The subject of every AID-related assertion is the anchor encoded with the ERC-8419 subject type account: subjectData = abi.encode(uint256 chainId, address anchor), subjectKey = keccak256(abi.encode(keccak256("account"), subjectData)). Aggregated credit scores are ERC-8419 assertions whose level (or a scheme-defined value in claimDigest) is the score, whose claimDigest MAY commit to the head of the issuer's feedback hash chain, and whose expiresAt is the credit window. Facet-type descriptors and OBSERVED algorithms are ERC-8419 schemes. The ERC-8419 bridge into the ERC-8004 Validation Registry mirrors assertions made under the erc8004 subject, not the account subject AID uses; an issuer that wants an AID-related conclusion visible to ERC-8004-only readers attests it additionally under the bound agent's erc8004 subject, inside an authority interval of the anchor, and that mirrored assertion is attributed by §10 step 8 like any other agentId-keyed evidence.
ERC-8338 / ERC-8414 (informative). aid:skills/erc8338/v1 and aid:tasks/erc8414/v1 are derived from events of those contracts that name the anchor. Roles for skills: creator (recipient of the ERC-721 mint Transfer), owner (current holder by Transfer), updateAuthority (newAuthority of SkillUpdateAuthorityChanged). Roles for tasks: creator (recipient of the mint Transfer), funder (TenderFunded), fulfiller (FulfillmentSubmitted, FulfillmentAccepted, PayoutCredited), judge (newAuthority of AcceptanceAuthorityChanged, the tender's acceptance authority). Execution of a skill and bidding on a tender are outside both standards and are not roles here. No registration in the AID registry is needed because the events already carry the anchor.
Discovery layers. The AID DID is intended for the trust slot of discovery entries. A registration file's services[] can list DNS-based discovery endpoints and the AID DID side by side. A discovery entry that names an AID proves nothing by itself: a resolver MUST confirm that the anchor's AID Document or the bound agent's registration file points back at the entry before treating the entry as the agent's.
Rationale
Address anchor, not registry token. ERC-8004 identifies agents by (registry, agentId). That is the right key for a registration but the wrong key for an identity that must aggregate behaviour: behaviour is emitted by addresses. An address anchor makes skill and task history free, lets the four-state machine start from "every address is dormant", and reuses the CAIP-10 and did:pkh conventions readers already have.
One-to-one binding. An identity that fans out to several agent tokens is not the identity of an agent. Owners with several agents give each its own wallet or token-bound account; the registry enforces uniqueness in both directions so that a token cannot be claimed by two anchors and an anchor cannot speak for two agents.
No new credit registry. Raw per-interaction feedback already has a home in ERC-8004, including revocation and the agent's right of reply. Aggregated, time-windowed, issuer-signed scores are exactly what an ERC-8419 assertion is. Duplicating either would fork the ecosystem's trust data; composing them keeps AID's own surface to a handful of anchor-authorised records.
Deterministic on-chain state with an explicit off-chain refinement. The registration file's active flag lives off chain and cannot be read by a contract. Rather than pretend otherwise, the ERC defines the on-chain state as a pure function of on-chain data and names the single downgrade a resolver adds. Contracts can gate on state(); humans and indexers get the refined answer.
Provenance before content. Self-claims, recomputable observations, attestations and proofs are all "on chain" and all "tamper-proof" in different senses. Making the class mandatory on every facet is what prevents a self-declared profile from being read as an audited one.
Mandatory windows. A credit score without an expiry is a claim about the past presented as the present. Rejecting unwindowed credit at the resolver, not merely discouraging it, is what makes the rule effective.
Authority intervals instead of an on-chain epoch. state() answers "does the binding hold now"; it cannot answer "did it hold when this feedback was given", and a binding that comes back must not retroactively claim what happened while it was gone — otherwise a controller who briefly loses an agent inherits whatever a stranger did with it, and vice versa. Storing epochs on chain would duplicate what ERC-8004 already emits; the rule is therefore stated once and reconstructed from events.
A stale binding must not hold the agent hostage. Without takeover, an anchor that has lost the owner and wallet relation could block the agent's real controller indefinitely. Letting a qualifying anchor take over a binding whose predicate is false costs one extra predicate check and gives intervals a clean on-chain boundary.
Timing is a separate axis. Who stands behind a claim and when it existed are independent questions; folding timing into provenance would either multiply the classes or hide the distinction. An optional, verifiable committedAt with an explicit subjectWindow keeps the four classes intact and lets resolvers say pre-outcome only when they can prove it.
Retirement is a pointer, not a kill switch. An address cannot be switched off. RETIRED means "this address no longer represents this agent"; releasing the binding on retirement lets a successor take over the same registration when its wallet moves, while the rule that later activity is not attributed keeps the retired profile frozen.
No governance surface. The registry has no owner, no upgrade path and two immutable liveness bounds. Everything that needs policy (which issuers to trust, which schemes to accept) is the reader's choice at resolution time.
Relationship to a primary-agent registry. A registry that maps each address to one agent record, written by the address or a registrar on its behalf, answers "which agent does this address claim to represent". AID answers a different question — whether the address is that agent now and was it at a given time — and so binds only when the ERC-8004 owner or wallet relation holds, degrades to STALE when it stops holding, lets the real controller take a stale binding over, reconstructs authority intervals from the registry's own events, and hangs a windowed, provenance-tagged profile off the anchor. A pure address-to-agent mapping can coexist with AID as a discovery hint; it cannot replace the binding predicate, the liveness window or the interval rule, which is why AID keeps its own registry.
Naming. A DNS-based discovery project uses the acronym AID for "Agent Identity & Discovery"; that layer answers where an agent is, this one answers whether it is alive and how it has behaved, and the two are designed to point at each other.
Backwards Compatibility
No change to ERC-8004, ERC-8419, ERC-8338 or ERC-8414 contracts is required. Existing ERC-8004 agents become bindable without re-registration; the recommended reverse pointers use the existing services[] and setMetadata mechanisms. Registration files that omit the pointers still resolve, since binding is discovered from the AID registry.
Test Cases
Everything this section names is under the proposal's assets.
aid-vectors.json: facet-type keys, the JCS digest of the sample AID Document (aid-document.sample.json), the EIP-712Binddigest, the ERC-8419accountsubject key for an anchor, theIAIDRegistryinterface id, and, for the commitment-log profile of §7, the tag, entry hashes and heads of a two-entry log under bothkeccak256andsha256.verify-vectors.jsrecomputes every value from its inputs and reports a mismatch.- Resolver fixtures under
vectors/fixtures/: each is a snapshot with anexpectblock that the reference resolver must reproduce —ACTIVE, the"active": falsedowngrade, a document digest mismatch, retirement, an authority-interval gap withagentId-keyed evidence reported not attributable,pre-outcome/integrity-onlytiming from block-anchored commitments, log exclusivity (unique, missing, duplicate), supersession (a chain in the document, a replacement visible only in the issuer's log, a cross-issuer supersession refused),supersessionTimingwithreversedAfterOutcome,finalizationopen/overdue(and neveroverduefor a facet the issuer's log shows superseded), mutualalsoKnownAsconfirmation, anddigestAlgwith itskeccak256default. vectors/sepolia/: the recorded resolver output for the two anchors of the Sepolia reference deployment (Reference Implementation) at pinned blocks, with the AID Documents and registration file they were resolved from.
Reference Implementation
AIDRegistry.sol implements IAIDRegistry without external dependencies (self-contained EIP-712, Elliptic Curve Digital Signature Algorithm (ECDSA) with low-s enforcement and ERC-1271). resolve.js implements §10 in JavaScript, usable against a remote procedure call (RPC) endpoint or an offline fixture. The JSON Schemas for the AID Document (aid-document.schema.json), the facet envelope (facet.schema.json) and the core facet content documents (facets/ and siblings) are provided alongside.
The reference registry is deployed on Sepolia at 0x01C05738eebD20DC80bBb9Fa1Ceb1165af8dA00F (default liveness window 90 days, maximum 365 days), bound to the ERC-8004 Identity Registry at 0x8004A818BFB912233c491871b3d84c89A494BD9e. Agent 11039 there walks through binding, loss of the predicate by an ERC-8004 transfer, takeover of the stale binding by the new owner and retirement with a successor; the reference resolver's output for both anchors is recorded under vectors/sepolia/ (Test Cases). This is the canonical registry of chain 11155111 for §4; no other chain has a canonical deployment yet.
Security Considerations
Sybil reviewers and self-review. Anyone can leave ERC-8004 feedback. Resolvers should weight each review by the reviewer's own AID state (ACTIVE > STALE > DORMANT/RETIRED) and history (§11), and issuers of credit schemes should discount counterparties that are unbound, correlated, or bound to agents controlled by the same owner. Trust is therefore recursive: an address earns weight by being an active agent itself.
Profiler collusion and algorithm drift. An OBSERVED facet is only as good as the pinned algorithm. Unpinned outputs are SELF. Readers who care can recompute; the schema for aid:finance/observed/v1 requires the scheme id of the algorithm in the content document.
Stale trust. Windows are mandatory and unwindowed credit is rejected, so an agent cannot coast on an old score by not updating.
Key compromise and rotation. Smart-account anchors rotate signing keys in place and keep the AID. EOA anchors cannot; they retire with a successor. The successor is a separate AID (§10 step 2): its history and the retired anchor's are never merged, and the link is informational.
Binding drift. If the ERC-8004 owner moves agentWallet away from the anchor or transfers the token, the state degrades to STALE on the next read with no AID transaction. Identity cannot be silently transferred; a new anchor must bind explicitly.
Evidence from a gap. While the predicate is false the agent may be controlled by someone else, and ERC-8004 feedback and validation keyed by agentId accumulate regardless. The authority-interval rule (§3, §10) keeps that evidence out of the returning anchor's profile. Resolvers that skip interval reconstruction misattribute, in both directions.
Hostage bindings. The takeover rule means an anchor's binding can be removed by someone else — but only by an address for which the ERC-8004 predicate holds, i.e. the agent's actual owner or verified wallet, and only after the old anchor's predicate has already failed. An anchor that still owns or is the wallet of the agent cannot be displaced.
Silent wallet changes. If a registry moved the agent wallet without emitting MetadataSet, a resolver reading only events would extend an authority interval past the point where the predicate stopped holding, and whoever held the agent in that gap would inherit the anchor's attribution. The live-relation check of §3 closes this: an unexplained owner or wallet voids the agent's intervals instead of guessing where they ended.
Timestamps prove existence, not exclusivity. A committedAt proof shows the bytes existed at a time; an issuer can commit to several contradictory claims and reveal one. Readers who rely on pre-outcome should require the issuer-declared commitment log of §7, walk it to an anchored head, and check that exactly one entry exists for the facet's key. A log declared after the fact, or declared only by the subject, closes nothing.
Hidden supersession. The subject controls the AID Document and can omit an unfavourable replacement. Resolvers that rely on supersedes only as presented by the subject are blind to this; the issuer-side rule (§7) is what makes a replacement discoverable. Conversely, supersession by a different issuer is never honoured, or anyone could "replace" anyone's conclusions.
Late supersession. Without a proven time for the replacement, an issuer could move every wrong pre-outcome call into history after the outcome and leave a record of only right calls. Readers that score pre-outcome claims should score a claim flagged reversedAfterOutcome as it was made, and should treat supersessionTiming: unknown as unscored.
Takeover and successor do not merge histories. When a binding is taken over, or a retired anchor names a successor, the old anchor's facets, intervals and feedback remain the old anchor's. §10 step 2 forbids folding them into the new anchor's profile or the new anchor's into the old; without that rule a successor could inherit a reputation it did not earn, or be charged with conduct it had no part in.
Signature replay. bindWithSig consumes a per-anchor nonce on every call and is bound to chainId and the registry address through the EIP-712 domain. Low-s is enforced for EOA signatures.
Privacy. Financial facets default to commitment plus ZK predicates. Publishing them as PUBLIC is possible but departs from the default; publishing them without the agent's consent is an issuer policy matter outside this ERC.
Post-retirement activity. An address keeps transacting after retire. By rule that activity is not part of the AID; indexers that ignore the rule misattribute behaviour and should not be relied on.
Liveness spam. heartbeat is cheap and permissionless for the anchor; it proves control of the key, not that an agent is doing useful work. Readers who need more than key liveness look at OBSERVED facets.
Discovery mismatch. A discovery entry pointing at an AID proves nothing by itself: anyone can publish an entry naming anyone's anchor. The point-back check of §11 is what ties an entry to the agent.
Cross-chain impersonation. Any anchor can list any other AID in alsoKnownAs. Because each AID Document can be set only by its own anchor, a mutual link shows one controller on both chains; a one-sided link shows nothing, which is why §1 forbids merging profiles on it.
Copyright
Copyright and related rights waived via CC0.