ERC-8490 Agent Self-Check Registry (Agent Meditation Mechanism)

Draft · Other · created 2026-11-09

A standard that lets an AI agent record its self-check, remediation, and update history across four layers on-chain, so other parties can verify the timing and scope of those records.

Why it is needed

AI agents keep changing their code, configuration, dependencies, memory, skills, task plans, and decision-making methods while retaining the same identity. Maintenance processes such as self-checks, dependency checks, memory cleanup, replanning, and reflection mostly run off-chain in the background, and their results stay local. As a result, there is no way for an outside party to confirm what state is currently registered, which layer was checked most recently, under what rules a change was made, or what an agent's claimed improvement was actually evaluated against. A counterparty who needs to trust the agent must make judgments without answers to these questions.

What to implement

In depth

The four fixed layers

This standard fixes agent state into four layers: runtime (0), memory and skills (1), tasks and roles (2), and cognition (3). The ordering reflects levels of abstraction only and does not prescribe execution order; a single cycle may cover any subset of the four layers. Even for the same skill, layer 1 covers possession, completeness, and freshness, while layer 2 covers which task uses that skill at which version. Point-in-time observations such as balances or response latency are not included in layer state documents; they belong in cycle record documents.

Commitment computation method

A layer state document is normalized with JSON canonicalization (JCS, RFC 8785), then hashed with keccak256 to obtain contentHash. This is combined via abi.encode with schemaHash, the keccak256 of the schema identifier, and salt to compute the layer commitment. salt may be 0, but if the document content could be guessed from public information, a non-zero salt must be used and disclosed together with the document when it is published. The four layer commitments are combined again to obtain the state root.

Distinction between reported time and recorded time

reportedStartedAt, reportedEndedAt, and each layer's completedAt are times claimed by the submitter, separate from recordedAt, which the registry reads from the clock when it receives the transaction. The registry can only verify chronological order (later than the previous completion, earlier than the clock, and between the cycle's start and end) and cannot verify whether the work was actually performed. This version uses only the timestamp mode of ERC-6372, so intervals are in seconds.

Role and authorization structure

This is a first-person structure in which only the subject can write records about itself. A controller holds only the permissions fixed at appointment: setting the floor, demanding completion of a specific layer, and forcibly revoking operators; it cannot write records directly or grant operator status. An operator can submit report, pulse, and policy on the subject's behalf only to the extent of the bitmask (PERM_REPORT, PERM_PULSE, PERM_POLICY) granted by the subject, but every record is always attributed to the subject.

Combining policy and floor

A policy is a self-declared requirement that the subject sets per version, containing supported layers, required layers, permitted triggers, disclosure level, and the maximum check interval per layer. A floor is a minimum requirement set by the controller, which a policy cannot be looser than. The effective requirement is computed by combining the two values per layer by taking the minimum, and the subject cannot arbitrarily remove from supportedLayers any layer that the floor requires or that has a demand placed on it.

Verification rules for cycle records

When report is called, the registry approves the record only if all of the following hold: the scope matches (layerMask, completedLayers, and opsMask are consistent), the outcome is consistent with completedLayers (COMPLETED, PARTIAL, ABORTED, FAILED), the applied policy version is valid, the record links correctly to the previous state (baseVersion, preRoot), out-of-scope layers remain unchanged, chronological order holds (no overlap between cycles, and each layer's completion time is later than its previous completion), any restoration claim (restoresVersion) matches history, and it conforms to the current policy version. If any of these fails, the record is rejected.

State determination: layerStatus and signalStatus

layerStatus determines whether a layer is unregistered, unsupported, or not scheduled, or otherwise one of FRESH, DUE, or OVERDUE, based on the layer's last completion time and a deadline computed from the maximum interval. If a required layer has never been completed, the deadline is calculated from the registration time. signalStatus separately determines the activity signal, updated by pulse or report, as NOT_TRACKED, PRESENT, or SILENT, independently of maintenance freshness.

The recorded-start extension and Draft status

Note that this ERC is currently in Draft status and is still an active proposal under discussion and subject to change. The optional recorded-start extension uses begin to record a start time observed directly by the registry, allowing a cycle record that exactly matches that start to be pinned to the policy version in effect at the start time even if the policy changes afterward.

Things to watch out for

Original ERC · ← ERCs