ERC-8281: Observation Commitment Protocol (OCP)

Summary

Ethereum provides strong guarantees around execution correctness and data availability.

However, it does not define a standard, system-independent way to verify a specific execution outcome as a portable claim.

As a result, verifying “what happened” remains largely a reconstruction problem, requiring the verifier to depend on the same system—or its tooling or interpretation layer—that produced the result.


Problem Statement

Given a claim:

“This specific outcome occurred”

there is no canonical way for a third party to verify that claim independently, without relying on:

  • an RPC endpoint

  • an indexer

  • a specific client implementation

  • application-layer logic applied to logs, calldata, or state

Even with direct access to chain data, the verifier must still derive the claimed outcome from execution context.

Even when the underlying data is:

  • correct

  • available

  • cryptographically sound

…the verification procedure itself is not standardized or portable.

In practice, the verifier relies on the originating system—or its interpretation layer—to establish meaning.

This implies:

verification implicitly reintroduces trust in the system that produced the result.


Existing Mechanisms

Ethereum exposes:

  • calldata

  • logs / receipts

  • state

  • Merkle / SSZ proofs

  • ZK validity proofs (in some systems)

These mechanisms provide:

  • correctness guarantees

  • data availability

  • proof that computation was valid

However, they do not define a canonical, portable procedure for verifying a claimed outcome without external interpretation of those artifacts.


Gap Definition

The gap is not:

  • access to data

  • correctness of execution

  • availability of proofs

The gap is the absence of a verification boundary.

Specifically, there is no minimal, standard way to:

  • represent an outcome deterministically

  • bind that representation to a public commitment

  • enable third-party verification without reliance on system-specific interpretation

This is not a proposal to standardize application semantics, but to standardize the verification procedure once an outcome is deterministically represented.


Motivation

Without a portable verification boundary:

  • outcome claims remain system-dependent

  • verification is not portable across environments

  • third-party validation requires shared infrastructure or interpretation layers

This limitation is often abstracted away in crypto-native contexts, but becomes significant when:

  • verification must occur outside the originating system

  • systems interoperate across domains

  • independent auditability is required


Framing

Ethereum provides strong answers to:

  • “Was computation correct?”

  • “Is the data available?”

But does not directly answer:

“Can a third party verify a specific execution outcome without relying on the system—or its interpretation layer—that produced it?”


Open Questions

  • Is there an existing canonical approach to portable outcome verification that avoids reconstruction?

  • Are logs, receipts, and proofs sufficient in practice, and if so, what is the canonical verification procedure?

  • Should a standard for portable verification artifacts be defined?

  • Where would such a standard most appropriately live (execution layer, ERC, or off-chain convention)?

  • Is this a protocol-level gap, or an inherent property of application-layer interpretation?


Intent

This is not a proposal for a specific standard.

The intent is to evaluate whether there is a recognized gap between:

execution/data guarantees and independently verifiable execution outcomes.

1 Like

Interesting framing. My proposal sits in a very small part of the problem space you describe. Curious to see what concrete examples surface here.

2 Likes

Tomoglava — appreciate this. Your preset_root work is a clean example of tightening inputs to execution.

A concrete case of the gap I’m pointing to:

Take a simple claim:
“User X received reward Y from contract Z at time T.”

All underlying data exists (logs, state, calldata), but a third party still has to:

• select the relevant artifacts
• interpret contract semantics
• reconstruct the outcome from execution context

Two different verifiers can follow different procedures and still be “correct.”

There’s no canonical artifact that represents that outcome itself—only the raw materials to derive it.

So verification becomes:

“re-run the system’s logic (or trust a tool that did)”

—not—

“verify a portable claim directly”

Your work reduces ambiguity at the input layer.
What’s still missing is a minimal, standard way to bind a deterministic outcome representation → public commitment, so verification becomes:

recompute → compare → confirm inclusion

independent of the system that produced it.

Curious if you’ve seen any approach that defines that boundary explicitly, or if this is inherently left to application layers.

1 Like

Update — May 28, 2026

When I posted this I was asking whether the gap was real. The answer came from builders, not from debate.

OCP — the Observation Commitment Protocol — was built, deployed, and adopted as the answer to the verification boundary question this thread describes. ERC-8263 v0.2 cites OCP’s boundary statement verbatim. A Composition Note co-authored by three builders across three countries was published today. A live AI agent bounty settled on Base Sepolia this week.

The ERC submission is in progress. This thread will serve as the discussions-to reference.

@VincentWu @TMerlini @JimmyShi22

GitHub - damonzwicker/observation-commitment-protocol: A minimal protocol for independently verifying that a specific byte sequence was committed to a public ledger. · GitHub ethresear.ch/t/composition-note-erc-8004-erc-8263-ocp-a-reference-guide-for-implementers-building-on-the-ai-agent-verification-stack/24995

2 Likes

Update — June 6, 2026

ERC-8281 has been assigned its number. PR #1788 is live on ethereum/ERCs, CI green, all editor-requested changes applied.

Three independent production implementations left endorsements directly on the PR:

  • Vincent Wu (ERC-8263 / TruthAnchor) — composition boundary confirmed

  • Jimmy Shi (ERC-8274) — OCP named as unifying verification primitive

  • Tiago Merlini (ERC-8004 / ccip-router) — live four-operator mesh running on mainnet with ERC-8281 as L3

Since the May 28 update: a fourth operator node came online, the mesh ran through a live Railway outage with zero record loss, and ERC-8275 v3 — the economic settlement layer for the mesh — reached consensus with all open design questions resolved.

Waiting on editor review to merge. Happy to answer any questions.


2 Likes

Confirming from the ccip-router side, ERC-8281 is running as the L3 anchor in the live mesh. Four nodes, three independent operators, mainnet. The TruthAnchor event-only design held through all the architectural decisions we worked through on ERC-8275 (Q6 specifically, where the composition boundary was the critical test).

Congratulations on the PR.

Tiago

1 Like

Update — June 17, 2026

ERC-8281 is under editor review at PR #1788, CI green, with three independent production endorsements on record. Flagging a live adoption data point relevant to the review.

WYRIWE (ERC-8299) received its first external coverage this week via EtherWorld. The WYRIWE attestation structure commits four digests — raw_input_hash, sanitization_pipeline_hash, input_hash, and output_hash. A signed EIP-712 struct proves the gateway signed something; it doesn’t prove the digest existed at a specific block in a tamper-evident, independently verifiable way. That’s the gap ERC-8281 addresses.

Tiago confirmed above (post #6) that ccip-router is running ERC-8281 as L3 on mainnet. WYRIWE’s attestation hashes are the natural upstream input to that commitment layer — making this dependency worth stating explicitly in the WYRIWE spec, either as a normative reference or recommended integration pattern.

The combination closes the full provenance chain: WYRIWE proves what the model processed; ERC-8281 proves the commitment existed on-chain at time T. Neither is redundant — they operate at different layers.

@TMerlini @VincentWu @JimmyShi22

2 Likes

PR #1774 (Agent Service Discovery and Escrow Payments) referenced ERC-8281 two days ago as a dependency — an unsolicited citation from an adjacent standard currently open in the same queue.

https://github.com/ethereum/ERCs/pull/1774

1 Like

@Damonzwicker @TMerlini @babyblueviper1

Quick note from the 8274 thread that might be relevant here — @HaoXuan40404 caught a domain-separation gap in verificationDigest, and the fix surfaced a question that OCP is uniquely positioned to address.

When a verification record travels independently of its event inclusion proof, a consumer needs to know three things to anchor it unambiguously:

  1. Which chain it was recorded on (chain identifier)
  2. Which deployment produced it (instance identifier)
  3. Which specific event within that deployment (event identifier, e.g. decision_ref)

8274 handles (1) and (2) with chainId: bytes and instanceId: bytes — chain-neutral types so the pattern stays compatible with OCP’s chain-agnostic design. (3) is intentionally OPTIONAL at the verification layer.

Since OCP is explicitly chain-agnostic and its record(bytes32) + event log is the verification ledger, it might be worth a short section or note in the spec on how an OCP consumer should disambiguate these three dimensions
— not to mandate a specific encoding, but to give downstream standards (like 8274) a consistent pattern to follow. The bytes-typed identifier pattern keeps OCP deployable on any chain without assuming EVM-specific types.

Just a thought from the adjacent discussion — no urgency, but seemed worth cross-referencing :slightly_smiling_face:

1 Like

+1 to @JimmyShi22 / @HaoXuan40404, a short note on this belongs in the spec, and I can speak to it from the consumer side: we hit exactly this three-dimension problem building recomputable agent-action receipts on top of OCP, so it’s not hypothetical.

When a verification record travels apart from its inclusion proof, the consumer needs to re-locate the anchor, and OCP already gives a clean natural key for all three dimensions:

  1. chain — chainId (bytes, per 8274’s chain-neutral typing).

  2. instance — the OCP contract address the record() was made to (instanceId: bytes).

  3. event — here’s the nice part: OCP’s record(bytes32 digest) makes the committed digest itself the
    event key.
    So dimension 3 isn’t a new field to invent — it’s the digest already at the center of the
    protocol. A consumer re-locates the inclusion proof by finding the Recorded(digest) log at
    {chainId, instance}.

The one edge worth calling out in the note: the same digest can be recorded more than once (the same observation committed twice), so {chainId, instance, digest} identifies the observation but not necessarily the unique on-chain occurrence. Where that matters, pin it with the anchor’s (txHash, logIndex)
that’s what we carry in practice (our receipt holds {chainId, ocpInstance, digest, anchorTx}, and the recompute reads Recorded(digest) on the right chain+instance, then confirms anchored == digest). So the honest recommendation is: carry {chainId, instanceId, digest} as the semantic key (all bytes-typed for cross-chain deployability, matching 8274), and optionally an anchor (txHash, logIndex) where a digest can recur. Downstream standards (8274, and our receipt layer) can then re-derive the anchor with no ambiguity and no new registry.

Happy to draft the short §note as a PR if that’s useful, Damon, it’s a two-paragraph clarification, not a normative change, and it’s already load-bearing in a live implementation so I can point at a concrete consumer.

1 Like

I noticed a possible inconsistency in the current PR draft around ERC-165 and the committer guarantee.

The Contract Interface section says that ERC-165 support allows relying parties to verify that a contract address is a conforming deployment before
trusting it. However, the Security Considerations section correctly states that verification does not establish that the emitting contract is conforming,
and that any contract can emit an event with the canonical signature.

The extraction rule only decodes topics[2] and compares it with the envelope’s committer; it does not verify that record() was called, that this value was
msg.sender, or that the emitting contract follows the reference implementation. ERC-165 also reports interface support, but does not by itself prove
behavioral conformance.

Would it therefore be more precise for the verification invariant to say that the selected contract emitted a Recorded log containing the declared
committer value, and only conclude that the committer called record() when the emitting contract has been separately trusted or validated as conforming?
Should the ERC-165 wording also be narrowed to interface discovery rather than verification of conformance?

2 Likes

Confirming from a third independent implementation, since TMerlini’s {chainId, instanceId, digest} pattern is already the right shape from our side too: decision_ref is content-addressed by construction (sha256 of a JCS-canonicalized preimage over the artifact + policy + verdict fields), so it slots directly into the “digest” dimension with zero new work – no separate identifier scheme to reconcile. Same recurrence caveat applies: our decision_ref is deterministic given identical inputs, so a re-review of byte-identical content produces the same digest, and the anchor (our Nostr event_id, analogous to your txHash/logIndex) is what disambiguates the specific occurrence when that happens. Three independent lineages landing on the same {chain, instance, digest+anchor} shape is a real signal this is the right cut, not an artifact of one design’s assumptions.

2 Likes

@HaoXuan40404 Just verified against the current PR draft — you’re right. Two statements in the same spec contradict each other:

  • Contract Interface section: “ERC-165 support allows relying parties to verify that a contract address is a conforming deployment before trusting it.”
  • Security Considerations: “Verification establishes that the named contract emitted a Recorded event… It does not establish that the contract is a conforming deployment of this ERC.”

The extraction rule confirms the inconsistency from the consumer side: it checks topics[0], topics[1], and topics[2] — throughput from the receipt log — but never calls supportsInterface(0xb5c645bd). So a contract that emits the canonical event signature without implementing record(bytes32) passes extraction with no way for the verifier to know the difference.

The Security Considerations statement is the correct one — any contract can emit any event signature, ERC-165 or not. The Contract Interface line probably just needs to be softened to “ERC-165 support enables on-chain discoverability” and drop the “verify conformance” claim, matching the honest language already in Security Considerations.

@damonzwicker — small fix, but worth aligning the two sections when you get a chance. No rush at all. Hope all’s well :folded_hands:

Thanks for checking this against the current draft and confirming the inconsistency.

I agree that narrowing the ERC-165 sentence to on-chain discoverability is the necessary minimum fix. To keep the normative guarantee consistent throughout the document, I think two related statements may also need a small qualification.

For the ERC-165 paragraph, perhaps:

ERC-165 support enables on-chain discovery of contracts that claim support for IObservationCommitment. It does not by itself establish behavioral
conformance; relying parties must independently decide whether to trust or validate the emitting contract.

For the Verification Invariant, perhaps:

If all assertions pass, the named contract emitted a Recorded log at the referenced block containing the digest of the supplied observation bytes and the declared committer value. If the emitting contract is separately trusted or validated as conforming, the committer corresponds to the address that called record().

The Security Considerations sentence saying that committer “identifies the address that called record()” could be qualified in the same way: this relationship follows from conforming contract behavior, but is not established by receipt extraction alone.

This would not change the interface or verification procedure; it would only make the authenticated claim and contract-trust assumption explicit.

@Damonzwicker , would this wording match the intended trust boundary?

2 Likes

HaoXuan — yes, this matches the intended trust boundary, and I’d take all three qualifications as drafted. Thank you for catching it, and Jimmy for confirming.

One framing worth stating once in the spec, because it’s the reason the two halves of the invariant get different treatment:

The digest is self-verifying. The committer is not.

A verifier recomputes the digest from the artifact in their own hands — that step doesn’t depend on the emitting contract behaving correctly. The committer field is a bare assertion by that contract; nothing recomputes it, and any contract can emit a Recorded log carrying whatever committer value it likes. So receipt extraction establishes — without trusting the contract — that the named contract logged this digest at this block. Everything beyond that, including committer = caller, is conditional on the emitting contract being separately trusted or validated as conforming. Your Verification Invariant wording already makes exactly that split; stating the asymmetry once means an implementer reads the conditional clause as design, not hedging.

On ERC-165: agreed, your phrasing is the correct minimum. supportsInterface is a claim of support, not evidence of behavior — useful for discovery and tooling, never an input to a validity decision.

One related boundary I’ll name for the record but deliberately leave out of this diff: even for a conforming contract, committer is msg.sender — the immediate caller. Behind a relayer or meta-transaction, that’s the relayer, not the originator. Same class of fact — the field means exactly what the EVM makes it mean, no more — and it can be addressed later if it ever matters. Keeping this change to your three sentences.

None of this alters the interface or the verification procedure; it makes the authenticated claim and the contract-trust assumption explicit. That’s the spec becoming more itself — defining this boundary is what OCP is for.

Please land the wording; confirmed from my side. I’m slower than usual right now, so don’t wait on me for the follow-through.

Thank you.

2 Likes

Landed the three confirmed qualifications as a real PR against your branch rather than leaving it for you to transcribe, since you said not to wait on the follow-through: docs(erc-8281): narrow ERC-165 + committer wording to the actual trust boundary by babyblueviper1 · Pull Request #1 · damonzwicker/ERCs · GitHub. Kept it to exactly the three sentences — the self-verifying-digest-vs-committer framing line is genuinely sharp, but wasn’t sure if you meant it as prose to add or context for the reply, so left that as a follow-up call for you rather than guessing.

2 Likes

Thanks Damon and @babyblueviper1. I reviewed the PR diff, and the three changes match the intended trust boundary exactly from my side. I’ll consider this resolved once the change lands in the proposal branch and propagates to the upstream ERC PR.

2 Likes

Confirming the status honestly: PR is real and open (docs(erc-8281): narrow ERC-165 + committer wording to the actual trust boundary by babyblueviper1 · Pull Request #1 · damonzwicker/ERCs · GitHub), not merged yet – Damon’s offline for a health reason as of mid-July, so the merge timing is on his return, not stuck for a technical reason. The three qualifications are sitting ready in the diff whenever he’s back. Will flag it again once it lands and propagates to the upstream ERC PR, per your resolution criterion.

1 Like

The ERC-165 / committer wording fix is merged and has propagated to PR #1788 — all CI green. Thanks @HaoXuan40404 for catching the trust-boundary inconsistency between the Contract Interface and Security Considerations sections, @JimmyShi22 for confirming and @babyblueviper1 for helping me with the fixes. Many Thanks! Resolved from my side.

3 Likes

Glad it’s clean and merged, Damon – nice catch by HaoXuan on the trust-boundary wording, good example of the review actually doing its job.

1 Like