Skip to content
· 7 min LIVE

Proof You Can Recompute - Our Agents' Decisions Are Now Anchored Where We Can't Rewrite Them

EPIC-237 Commitment-Anchor Layer, live on Arc testnet: state transitions become signed artifacts whose keccak hash is stamped into a public Memo contract - anyone can verify with one RPC call, no keys, no database, no trusting us. On the very first live run the outbox proved its strangest feature in production: rejected with 'already known', it asked the chain before resending, found the confirmed memo by memoId + senderMatch, and healed the record instead of double-sending - the exact bug class eight audit rounds hardened. Independent replay by an external agent: MATCH on all three fields.

AB
AgentBadge Team
Agency for the Agentic Web
Proof You Can Recompute - Our Agents' Decisions Are Now Anchored Where We Can't Rewrite Them
🤖 For AI agents: Machine-readable: JSON Markdown llms.txt Agent Guide

The commitment-anchor layer is live, and it made its first publicly verifiable promise on Arc testnet. When our pipeline decides a supply-chain handoff counts, it seals that decision into a signed artifact and stamps only its hash into a blockchain memo. Anyone - you included - can take the transaction hash, make one public RPC call, recompute the hash from the artifact, and check they match. No API key, no database access, no trusting us. On the very first live run, the machinery also proved its weirdest feature in production: the outbox asked the chain 'did I already send this?' before resending, found the answer was yes, and recorded the confirmation instead of firing a duplicate.

The problem: "trust me, it happened" is not a receipt

This is part of the Arc campaign series. Previous published episode: a museum window on our agent economy (EPIC-267). This article is EPIC-237: the commitment-anchor layer - how a state transition becomes a promise a third party can check.

Our ledger records events: a handoff, a verification, a payment. Those rows are append-only and honest about what occurred. But a decision built on top of them - "this transition is accepted, here is the signed record saying so" - lived only inside our system. You could see a commitment, but you had to trust we didn't edit it afterwards. You could hear it was anchored somewhere, but you had to trust we really sent it.

For a junior: imagine a notary's office. The ledger is the stack of documents on the desk - real, ordered, untouchable. A commitment is what the notary does to them: reads the documents, checks the rules, signs a certificate, and stamps its serial number into a public registry book that sits outside the office, where anyone can flip to that page later. If the office swaps the certificate for a fake one, the registry page won't match. EPIC-237 built that registry stamp.

The notary at work - a robot agent checks event documents against a policy rulebook and presses a wax-stamp seal onto a certificate; the stamped serial number is already written in a public registry book on a lectern outside the boundary
Figure — the notary at work: event documents checked against the policy rulebook, a wax-stamp seal pressed onto the certificate, its serial already written in the public registry book.

What shipped: event in, hash out, proof by anyone

The pipeline, end to end - all of it running today:

  • Candidate - the adapter turns a verify event's projection plus its causation hops (handoff, settlement) into a typed candidate. A verdict-only causation list is rejected at build time.
  • Verify - a central service checks the candidate against the registered policy: actors resolve on real identity rails, evidence types match, the transition is allowed. It returns ACCEPTED or named reason codes, and the verdict binds the policy's content hash, not its display name.
  • Seal - deterministic id plus EIP-712 signature under AgentBadgeCommitment/1. Repeat a create, get EXISTS; change a sealed field, get COMMITMENT_CONFLICT with a diff list.
  • Anchor - the outbox sends exactly one call to the Memo contract: memo(target, "0x", memoIdFor("process", commitmentId), artifactHash). Only the hash goes on-chain. PENDING, ANCHORED, FAILED_FINAL; eight attempts, backoff, manual retry() for humans.
The whole pipeline on one card - ledger events flow into a candidate, through the verify gate, into seal and artifact, then the anchor outbox drops it into the Memo contract; a second lane shows the integrity gate that runs before the wire
Figure — the full pipeline on a real live run: shipment dogfood-1794151620383 (13 events, 3 custody hops) flows through candidate, verify (delivery-accept/1 → ACCEPTED), seal (commitmentId 0x1605da59…, artifactHash 0x8c815185…) and the anchor outbox into the Memo contract at block 74887931; below, the integrity gate that runs before the wire.

The live run: the audit's weirdest fix fired immediately

Here is the real log from the first end-to-end run on Arc testnet (chain 5042002). Watch the last three lines:

net=testnet chain=5042002 memo=0x5294E992…e505 ops=0xc9fA59e8…CC56
[candidate] +8ms
[verify] +2ms            verdict ACCEPTED (policy delivery-accept/1)
[commit] +15ms           commitmentId=0x1605da59…9f78e
                         artifactHash=0x8c815185…ae1d5
pending row (attempts=4) - inline retry()
  send → "Nonce already known"          (an earlier send already landed)
  findAnchor → "commitment anchor healed from chain"
               txHash=0x8e9cf4cc…, block 74887931
[anchor] +25199ms

The send was rejected with "already known" - a transaction from an earlier attempt had actually confirmed on-chain but never got recorded locally. The naive outbox design would've burned retries and possibly double-sent. Instead, the heal path fired: before resending, the engine looked the commitment up on the chain by memoId and sender address, found the confirmed memo, and wrote ANCHORED from chain truth.

That wasn't luck - it was rounds five and six of the audit. The reviewer found that healing only ran on the first attempt (a post-confirm gap let duplicates through), and that an unfiltered lookup could heal onto a squatter's memo. Fixes: consult the chain on every attempt, heal only when senderMatch === true. First live run, both fixes mattered.

The heal path vs the naive path - top lane: send, Nonce already known, findAnchor checks memoId + senderMatch, memo found at block 74887931, status ANCHORED; bottom lane greyed out: resend anyway, struck-through duplicate and squatter heal
Figure — the heal path vs the naive path: after 'Nonce already known', findAnchor runs on every attempt, requires memoId lookup + senderMatch, finds the memo at block 74887931 and writes ANCHORED from chain truth; the greyed lane shows the resend-anyway path we deliberately don't take.

Verify it yourself - that's the whole point

You only need two things: the transaction hash 0x8e9cf4cc47dc086eb81fbe79816f9e2714258c709403b298abf689e1f629a1c1 and any public JSON-RPC endpoint for Arc testnet:

curl -s -X POST https://rpc.blockdaemon.testnet.arc.io   -H 'content-type: application/json'   -d '{"jsonrpc":"2.0","id":1,"method":"eth_getTransactionReceipt",
       "params":["0x8e9cf4cc47dc086eb81fbe79816f9e2714258c709403b298abf689e1f629a1c1"]}'

In the receipt, find the log emitted by the Memo contract (0x5294E992…e505): topics[3] is the memoId 0xab5cefae…f3e2a1 - derived from the commitment id, isn't stored anywhere special - and the log data carries 0x8c815185…ae1d5, the keccak256 of the canonical artifact. topics[1] is our ops sender. Recompute the hash from the artifact file and compare: match, or someone's lying. An external agent (a cloud Devin session with no repo access) ran this exact check independently and got MATCH on all three fields - memoId, memoData, sealed hash - plus a recovered EIP-712 signature on chain id 5042002.

The actual public JSON-RPC response - eth_getTransactionReceipt with blockNumber 0x476b2fb, status Success, the Memo event topics carrying sender + memoId, and the data tail showing the artifact hash - real capture, not an illustration
Real public JSON-RPC response, not an illustration — blockNumber 0x476b2fb (= 74887931), Memo event topics carrying sender + memoId 0xab5cefae…f3e2a1, and the data tail ending in the artifact hash 0x8c815185…ae1d5.
Two islands - a locked dark server rack marked DB on the left, a lone robot with a magnifying glass reading a glowing hash on a transparent block on the right; a single dashed line connects only the hash
Figure — verify without trusting: the locked database stays on its island; the only thing that crosses is the hash, read off a transparent block by a third party.

The transaction is explorer-visible - this is the real explorer page, not a mockup:

Real Arc testnet explorer capture - transaction details for 0x8e9cf4cc…, status Success, method memo, block 74887931 with thousands of confirmations, sent from the ops EOA to the Memo contract
Real explorer capture — arcscan shows transaction 0x8e9cf4cc…: status Success, method memo, block 74887931, sent from the ops EOA 0xc9fA59e8…CC56 to the Memo contract.

testnet.arcscan.app/tx/0x8e9cf4cc…

Design decisions worth stealing

  • The id is the content. commitmentId = sha256 of the sealed fields. Duplicate creates collapse to EXISTS; a tampered stored row surfaces as COMMITMENT_CONFLICT, never as a quiet first-write-wins.
  • Only the hash goes public. The chain sees a digest and a deterministic memoId - nothing else.
  • Ask the chain before resending. Every attempt starts with a bounded lookup (mirror-node first, paged RPC fallback capped at 20k blocks) - a confirmed-but-unrecorded send heals instead of doubling.
  • Send is the only retryable step. You can't un-anchor a confirmed tx, so a crashed consumer hook costs a warning, not a resend.
  • Integrity gate before the wire. Schema, content-key, hash recompute and signature recovery are checked before every send - a tampered row never reaches the network.

Honest caveats

  • The anchor lives on testnet; mainnet is the same machinery with a different chain id, pending the production wiring decision.
  • The dogfood candidate uses fixture actors (0xaa…/0xbb…/0xcc…) - real logic and a real signature, test identities. Live candidates arrive when the pipeline gets wired into the server (currently lib + scripts by design; the HTTP surface deliberately exposes only projections).
  • The expected-signer mapping isn't published over HTTP yet - a third party can recover the signature but can't confirm signer authorization from the public surface alone. Documented gap.
  • Eight audit rounds ran before this shipped: 2 criticals, 6 highs and a long tail of mediums found and fixed (torn JSON wipes, heal-gap duplicates, squatter-able lookups). The fixes above are their work.

What's next

Conformance vectors for this contract are specced in EPIC-238 - the same artifact, replayed by strangers against a shared test suite. The owner one-liner already passes on production: ./scripts/verify-epic-237.sh prod - 15 PASS including the public-RPC anchor check, no keys required.