ERC-8471: AI Dispute Resolution Framework (ADRF)

This is ERC-8471 (Draft; ethereum/ERCs#2123), a proposal for the step that the standards around AI systems, resources and services have been leaving to “the parties’ contract”: what happens when someone objects to a record. Participants may be people, organizations, agents or contracts; what a dispute is about (which model, service, output, dataset, evaluation or promise) and how it is resolved (verifier, evidence, human or AI-assisted judgment) are kept apart, and nothing requires that AI be judged by AI or that a party be an agent.

The claim is the object. A dispute is a specific claim about a specific object: an identified record, delivery, settlement, declaration or action does or does not conform to an obligation that was declared before the event. Admission is an algorithmic check of five criteria against what the bound business contract attests — identifiable object and event, accountable respondent, a norm declared before the event under which the source recognizes the contested point as a breach (the decisive sub-question, in the direction the claim names), a bound method for every sub-question, open window — plus standing, authorized effects, a clock check (the business window must hold the whole procedure plus an enactment margin) and exclusivity (one active binding case per source, obligation and decisive proposition). “Agent A is unreliable” cannot be filed; “delivery S of task T does not meet the criteria pinned at tender time” can.

Roles kept apart. Every case records the object under dispute, the actor that performed the conduct (an agent, a model service process, a human operator, a tool, a contract), the obligor (the party alleged to bear the obligation), the judgment participants and the executors — one participant may hold several roles, the records keep them apart. Identities, qualifications and organizational relations (trustless-agent identities, know-your-agent assertions, agent identity facets, swarm charters) are optional references, never prerequisites; a plain enterprise account and a model API service under ordinary terms can dispute a double charge, and the version the terms committed, the version the provider declared and the version actually used are three different things, the third being a fact for evidence rather than a filing prerequisite.

Four objects, two registries, no funds. A Dispute Policy (content-addressed, versioned through families) binds each (obligation kind, question type) pair to a method contract and declares the effect vocabulary and the procedure track. A Dispute Binding is the obligation source’s own statement of which policy it accepts for its objects, which effects a ruling may authorize (only what it can enact), who may enact and who else has standing — the only source of a ruling’s authority. A Case holds the eight elements a dispute must state, a dependency table of typed sub-questions, the findings with their support kinds, the round decisions and four dimensions read separately (procedure state, substantive result, reason, enactment status per effect). A Ruling is Sustained, NotSustained or NoDecision, with provenance, the one substantive effect it authorizes or the pre-committed disposition it points to, and how the procedure closed. The registries never move funds or execute; executors named by the binding read, check their own authority, enact and report.

Three question types, three method interfaces. FORMAL questions go to a deterministic verifier over inputs pinned at filing (support kind computed). EVIDENCED questions go to an evidence rule (support as the rule declares). JUDGED questions go to a judgment method; the reference profile files one binary question per sub-question as a CONSUMER_FILED issue with an ERC-8436 registry and imports only the Final result, with its issue, policy, source round, round count and adoption flag. Support kinds are a set, not a hierarchy: a finding records what its method supports, a derived conclusion inherits a list of sources, never their proof.

Not deciding has a meaning. NoDecision is distinct from NotSustained; the policy says per claim kind whether an undetermined decisive finding falls on the claimant or ends in no decision; NoDecision routes to the disposition the business committed in advance, never to a consumer’s improvisation. Every window has a consequence and a hard deadline closes every case; under the optional optimistic track, silence adopts a pre-accepted result and proves nothing.

Economics declared, not designed. The kernel fixes what an economic declaration must state (instruments, purposes, flows under every state and result, assumptions, failure handling) and records what executors report; it endorses no loser-pays, bond or reward scheme, and being in the minority of a panel is not a violation.

What is in the reference repository. Two registries (the dispute registry exposes the whole interface at one address and runs six modules by delegatecall on its own storage, so that every deployable unit stays within the per-transaction gas cap of Sepolia’s current schedule), the ERC-8436 bridge, two formal verifiers (duplicate settlement, declared version), an attestor-quorum evidence rule and a model-API-service escrow between plain accounts that is both obligation source and executor; JSON schemas for the policy, binding, case, finding, ruling and enactment documents; vectors cross-checked between ethers and solc; a 79-test Foundry suite that runs the two complete flows (a double charge verified on chain; a delivery-quality dispute judged by an ERC-8436 roster, including a NoDecision and a finality-by-adoption import) and the exception paths (no authority → Advisory, timeouts adopting an earlier decision, Advisory with no disposal, duplicate enactment refused, exclusivity, clock incompatibility, a claim the source does not recognize as a breach, a late executor); an evidence script rehearsed end to end on Anvil and executed on Sepolia against the live ERC-8436 registry (the record is in the thread below).

What is deliberately out of the first draft (reserved, named in the text): panel replacement on review, non-binary outcomes, verifiable selection and independence screening, economic modules, private evidence, cross-chain carriage, mirrors into validation or reputation registries.

Questions I would most value feedback on:

  1. The five admission criteria as the boundary of what can be filed as Binding — is anything missing that a consumer would need checked before a ruling can bind it?
  2. Support kinds as an unordered set with per-finding provenance — does anyone see a case where a consumer genuinely needs a kernel-level ordering?
  3. The exclusivity key (source, obligationRef, proposition) within one registry — is per-registry exclusivity the right honest scope, or should the text push consumers harder towards one registry per obligation?
  4. The J-profile’s one-binary-question rule — whether a typed multi-option profile should be specified now or left reserved.

Repository: GitHub - garyyang-finchip/ai-dispute-resolution: AI Dispute Resolution Framework (ADRF) · GitHub · PR: Add ERC: AI Dispute Resolution Framework (ADRF) by garyyang-finchip · Pull Request #2123 · ethereum/ERCs · GitHub

1 Like

Revision 3 — ERC-8471 assigned; the reference registry made deployable under Sepolia’s gas cap.

The proposal has its number: ERC-8471 (ethereum/ERCs#2123, files renamed from the placeholder). Revision 3 changes the reference implementation only; the specification text, every interface, every identifier and the vectors are unchanged.

What changed and why. Sepolia’s current gas schedule caps a transaction at 16,777,216 gas and prices deployment at roughly 1,500 gas per byte of code, so nothing above about 10.5 KB of runtime code can be deployed there. The revision-2 dispute registry was 14.4 KB with two externally linked libraries of 12.0 and 13.2 KB — none of the three would have deployed. Revision 3 keeps the whole of IADRFDisputeRegistry at one address: a 2 KB registry holds the record in its own storage and runs each function of the interface in one of six modules by delegatecall (bindings; filing and admission; resolution and reviews; decisions and finality; the case reads and the informative entries; the reads of findings, rounds and rulings), each between 3.9 and 8.5 KB. The modules share the registry’s storage layout, are fixed at construction, refuse to run on their own storage, and must have been built for the same policy registry; every entry is logged under the registry’s address and a module’s revert reaches the caller unchanged. supportsInterface and the interface identifier are as before.

The suite is now 70 tests (six new ones for the module mechanics: routing of every interface function, direct-call refusal, foreign-module refusal, unknown selectors, no ether, logs under the registry), and the seven-phase evidence script was rehearsed again on Anvil end to end. The Sepolia run follows; its record will be posted here.

Repository: GitHub - garyyang-finchip/ai-dispute-resolution: AI Dispute Resolution Framework (ADRF) · GitHub · PR: Add ERC: AI Dispute Resolution Framework (ADRF) by garyyang-finchip · Pull Request #2123 · ethereum/ERCs · GitHub

Sepolia evidence — both flows executed against the live ERC-8436 registry.

The reference implementation of ERC-8471 (revision 3) now has its evidence run on Sepolia: 46 transactions on 2026-10-29, blocks 12017706 to 12017916, all successful, 131.3 million gas under Sepolia’s current schedule, 0.0077 ETH in fees. Dispute registry 0x4e27C4728B22c3306f2378b8B421774dc35fE0a9 (one address for the whole IADRFDisputeRegistry, over six modules of at most 8.5 KB; the three largest creations landed at 80% of the 16,777,216-gas cap, as estimated), policy registry 0x071093a38289b5f9578D0162727b05A52E07eed5, bridge 0xeC31cb06CEFCd871Bc36cD5267bC3fe9A21c60EB over the ERC-8436 revision-3 registry 0x3bE57E74f2E7c280073b6B16A1Db3F562758dB01.

Two complete flows, each with a plain-account client and a model API service under ordinary terms, no agent identity anywhere:

  • A double charge (call 1 settled twice): filed, admitted under the five criteria, verified on chain by the duplicate-settlement verifier (TRUE, support computed), decided Sustained, finalized after the review window, refund enacted by the escrow and reported Enacted — case 0x1bc24c2e….
  • A delivery-quality claim (call 2): filed, admitted, one JUDGED sub-question opened as a CONSUMER_FILED issue with the live ERC-8436 registry under a 2-of-3 fast-track policy; two jurors blocked, the round settled, the appeal window lapsed, the Final result (Decided, no) was imported as the finding FALSE with support judged and full provenance (registry, issue, policy, source round 1 of 1), the claim decided Sustained through its own direction, finalized, refund enacted — case 0xee91e703…, issue 0xbe51f9c5….

Every entry was logged under the registry’s address (the modules never appear as emitters), and every read of the record comes back through the same address. The record — addresses, identifiers, every transaction with block, gas and status, the state read back from the chain, the gas schedule observed — is docs/sepolia-evidence.md in the repository, with deployments/sepolia.json, deployments/sepolia.transactions.json and a read-back script anyone can run against a Sepolia RPC. Sourcify verification of the thirteen contracts was submitted from the standard JSON input.

Repository: GitHub - garyyang-finchip/ai-dispute-resolution: AI Dispute Resolution Framework (ADRF) · GitHub · PR: Add ERC: AI Dispute Resolution Framework (ADRF) by garyyang-finchip · Pull Request #2123 · ethereum/ERCs · GitHub

Nice to see the escrow ship as both obligation source and executor, it makes the clock check concrete.

The escrow attests an adoption deadline but doesn’t hold the money to it. settle moves the charge straight into balanceOf[provider] and withdrawBalance has no hold, so a provider that charges twice can withdraw both charges right away. The duplicate settlement case still ends Final and Sustained, since admission only checked the clock, and enact then finds the provider balance short and reports Failed. The clock check covers time, not funds, and the worked example is where readers will see what “commits only effects it can enact” means. Keeping each settlement in a pending balance until lastSettledAt + disputePeriod would line up the attested deadline with the refundable amount, and a line in the source rules saying an attested adoption deadline means keeping the disputed value enactable until then would carry it to other sources.

On your exclusivity question, scope per registry seems fine to me, the unit is what bites. propositionFor(ledger, callId) gives one proposition per call, and file refuses the key for good once its case is Final or Expired. The refund is one charge, so a call settled three times gets one back, and a charge made after the ruling can’t be filed at all (Duplicate). A LIMIT obligation can be breached again after a ruling, so putting the settlement ordinal in the proposition (or in eventRef and the key), or having the verifier return the count so the executor refunds count minus one charges, would give one case per breach instead of one per call.

In Section 6 the filer supplies supportsWhen and the mapping from results to effects, while admission checks that requested effects belong to the binding’s authorized set. Could the binding also constrain those choices?

Suppose the duplicate-charge verifier correctly returns FALSE for a call charged once. What prevents a filer from choosing supportsWhen = FALSE and effectOnSustained = REFUND? Reading Section 9.1, that combination appears to produce a Sustained claim and authorize a refund despite no double charge. The verifier could check the canonical proposition and pinned inputs correctly throughout.

Should admission validate those combinations against a claim template approved by the source? If that responsibility belongs to the executor, could the integration requirements explicitly require the check with a test covering an inverted direction? Authorizing a refund should also constrain the finding that makes it available.

Thank you — both points stand, and both go into Revision 4.

Enactability. The escrow attested an adoption deadline it did not back: settle credits the provider at once and withdrawBalance holds nothing, so a provider who charged twice can leave with both charges, the case still ends Sustained, and enact can only report Failed. In Revision 4 the example holds each settlement until settledAt + disputePeriod (anyone may release after that), withdrawals take released funds only, and a refund takes the held settlement itself. The text gains the rule you suggest, as a source requirement: a source that attests an adoption deadline MUST keep every value a ruling on that event could affect enactable until that deadline; a Failed report after a release is the executor’s breach of its own binding, and the record says so — the clock check guarantees time, this guarantees the value.

Unit. Agreed that the unit was the call rather than the breach. Revision 4 makes each settlement beyond the first its own event (an event reference per ordinal, with its own instant and deadline), the verifier’s canonical proposition names the ordinal, and the exclusivity key is taken on the decisive sub-question’s proposition (see the reply to Mikhail below for the second reason). A third settlement is then a new contested point with its own case and its own refund, before or after a ruling on the second. I preferred this to “count minus one at enactment”: that variant leaves a breach after a ruling undisputable and makes the refund depend on the ledger at enactment time rather than on the finding.

The revision note will credit both findings; the Sepolia run will be repeated on the revised contracts.

Thank you — this is a gap in the text, and it is wider than the inverted direction: the filer also chooses the decisive sub-question, so a question that is trivially true with supportsWhen = TRUE gets the same Sustained ruling, and since the exclusivity key was taken on the claim’s own proposition hash, a second filing with different wording took a second slot and a second refund.

Revision 4 closes all three at admission rather than at the executor, for the reason you give: a Sustained ruling on something that is not a breach would be a false public record even if nothing were ever enacted, and admission is where the kernel checks the claim against what the source attests. IADRFObligationSource gains recognizesBreach(object, eventRef, obligationKind, proposition, breachWhen): the source states which proposition, taking which value, is a breach of which obligation under the norm it attested for the event. Criterion 3 of admission requires it for the decisive sub-question with the claim’s direction, and the exclusivity key moves from the claim’s headline proposition to the decisive sub-question’s proposition, so the contested point is the recognized breach, not the filer’s wording. The executor still checks its own authority; the integration requirements now say both. Tests cover the inverted direction, an unrecognized decisive proposition and the headline variation (refused as Duplicate), and the escrow example implements the recognition for its two kinds of events.

The revision note will credit this; the Sepolia run will be repeated on the revised contracts.

1 Like

Revision 4 — the source states the breaches; exclusivity on the contested point; settlements held until the attested deadline.

Revision 4 is the one announced in the two replies above. It answers the findings of Carlos (Zealynx, post 4) and Mikhail (Revinand, post 5), which were both right and both wider than their first example, and it changes the admission rule, the exclusivity key and the obligations of a source. The pull request carries the text; the repository carries the contracts, tests, vectors and examples.

The source states the breaches (post 5). The filer used to choose both the decisive sub-question and its direction, and admission checked neither against anything: a question that holds whatever the facts, sustained when TRUE, or the direction in which the respondent’s good performance is the breach, passed the five criteria, was verified correctly, sustained and enacted — a refund for having been paid once. IADRFObligationSource gains recognizesBreach(object, eventRef, obligationKind, proposition, breachWhen): the source states which proposition, taking which value, is a breach of which obligation under the norm it attested for the event. Criterion 3 of admission (“norm pre-declared and breach recognized”) requires it for the decisive sub-question with the claim’s supportsWhen; a claim the source does not recognize is refused with NormNotApplicable. Recognition is a statement about the norm, not about the facts — a source may recognize a proposition that only evidence or judgment can settle — and it pre-judges nothing; premises are not checked, because only the decisive finding is read against the direction. The effects were already constrained by the binding (authorized effects, SUBSTANTIVE category); the finding that makes an effect available now is too. The interface identifier of IADRFObligationSource is therefore new (0xa52f2870); those of the two registries are unchanged.

Exclusivity on the contested point (posts 4 and 5). The key moves from the claim’s headline proposition to the decisive sub-question’s proposition: keccak256(abi.encode(source, info.obligationRef, decisive.proposition)). Two descriptions of one point now share a key (the headline variation is refused as Duplicate), and two breaches of one obligation do not, because the source recognizes one proposition per breach. For the limit obligation of the example that is what makes a further breach actionable: the escrow attests each settlement beyond the first as an event of its own (settlementEventRef(n), with its own instant and adoption deadline) and recognizes the duplicate-settlement verifier’s proposition for that ordinal (statement adrf:prop/duplicate-settlement/v2, one proposition per (ledger, call, ordinal)), so a third charge after the ruling on the second is a new case with its own refund, while the second cannot be tried twice. The verifiers now publish their canonical propositions through small statement libraries, which is how a source recognizes exactly them.

Held until the attested deadline (post 4). A source that attests an adoption deadline MUST keep what a ruling on that event could affect enactable by its executors until that deadline (Section 5.1); the clock check guaranteed the time, this guarantees the value. The example escrow no longer credits the provider at settlement: every settlement is held until settledAt + disputePeriod, anyone may release it afterwards, withdrawBalance takes released funds only, and a refund takes the held settlement the case was about (a sustained delivery claim takes the earliest held charge). An executor that finds the value gone reports Failed with the reason (keccak256("settlement released before enactment")), the ruling stands, and Section 10.3 says whose failure that is.

What else is in the text. The source’s duties (derive every attestation from its own state; recognize one proposition per breach), the Rationale paragraphs on direction, on the key following the point rather than the headline, and on held value, the Security Considerations on direction and choice of question and on enactability, and the test-case items for admission, exclusivity and the new recognition and held-value scenarios. The claim grammar, the methods, the state machine, the ruling and the J-profile are unchanged.

Tests and sizes. The suite is 79 tests (nine new in ADRFRecognition.t.sol: the inverted direction, a trivially true decisive question, an unrecognized proposition and a wrong kind, recognition as the source’s own statement through a mock source, exclusivity on the decisive proposition, each settlement beyond the first as its own case with its own refund, settlements held until the attested deadline, a late executor reporting Failed, a delivery claim refunding the held charge), and the existing flows and vectors were adapted (the duplicate-charge case names settlement 2 as its event and the verifier’s proposition for it). Four deployable units changed bytecode (ADRFBindingModule, which checks the source interface identifier; ADRFFilingModule, now 8,784 bytes; DuplicateSettlementVerifier; ADRFServiceEscrow, now 9,209 bytes with its settlement ledger); all stay within the 16,777,216-gas cap at the schedule the revision-3 run measured (the escrow at about 88% of it). The seven-phase evidence script was rehearsed again on Anvil with the Sepolia flags; both refunds were enacted from held settlements.

Sepolia. The revision-3 deployment and its record stay as they are (docs/sepolia-evidence.md, deployments/sepolia.json). The revision-4 contracts are deployed in a second run, recorded separately (deployments/sepolia-rev4.json, docs/sepolia-evidence-rev4.md); its note follows here.

Repository: GitHub - garyyang-finchip/ai-dispute-resolution: AI Dispute Resolution Framework (ADRF) · GitHub · PR: Add ERC: AI Dispute Resolution Framework (ADRF) by garyyang-finchip · Pull Request #2123 · ethereum/ERCs · GitHub

Sepolia evidence, revision 4 — the revised contracts, both flows, 45 transactions.

The revision-4 reference implementation of ERC-8471 has its own evidence run on Sepolia: 45 transactions on 2026-10-29, blocks 12021936 to 12022145, all successful, 132.4 million gas under Sepolia’s current schedule, 0.0021 ETH in fees. Dispute registry 0x48aBDc76a736546CB3C3B122C9964BC294aE2508 (one address for the whole IADRFDisputeRegistry, over six modules), policy registry 0x9AA578eBbc6af2a3E0a015a0fFCc6330ba4BeEd5, escrow 0x698E06aE8C3bc0aa1E2ec12D9A378341b71776B1, bridge 0x5535588f5eA314B94Fa24567Bb3990Dfd7Ee0fE6 over the same live ERC-8436 registry as before (0x3bE57E74…). The revision-3 deployment stays where it is; this is a second deployment, not a replacement.

What the run shows that the revision-3 run could not:

  • The double charge is filed as a claim about settlement 2 of call 1 — the event the escrow attests for it (settlementEventRef(2)) — with the verifier’s proposition for that settlement as the decisive question; admission passed because the escrow recognizes that proposition being TRUE as a breach of the payment obligation (criterion 3 of revision 4). The exclusivity key read back from the case is the hash of the source, the attested obligation and that decisive proposition, not of the claim’s headline: exclusivityKeyOf(escrow, keccak(1, "payment"), proposition) = 0x5b362e7d… matches getCase. Case 0xafb715e3…: TRUE, computed, Sustained, Final after the review window, refund Enacted — of settlement 2, taken from the escrow’s held balance, while settlement 1 of the same call is still Held for the provider (settlementOf(1, 1) = Held, settlementOf(1, 2) = Refunded, heldOf(1) = 0.001 ETH).
  • The delivery-quality claim (call 2) ran as before through a CONSUMER_FILED issue with the live ERC-8436 registry: two jurors blocked, the Final result was imported as FALSE with its provenance (issue 0x71f29705…, source round 1 of 1), the claim decided Sustained through its own direction, and the refund took the call’s held charge — case 0xc7b6796b…. Nothing had been credited to the provider at settlement (balanceOf(provider) = 0), so the value a ruling could touch was there when the ruling came, as Section 5.1 now requires of a source that attests an adoption deadline.

One detail of the run itself: the ERC-8436 fast-track policy the script registers is content-addressed and identical to the one the revision-3 run registered (same family, same derived jurors, same windows), so the live policy registry refused to register it twice; the script now finds it registered and reuses it (0x328b3d82…), which is why this run has 45 transactions where the first had 46. The largest creations landed where the pre-flight had estimated them: the revised escrow at 14.56 million gas (87% of the 16,777,216-gas cap), the filing module at 13.79 million (82%); the nine units whose bytecode did not change cost exactly what they cost in revision 3.

The record — addresses, identifiers, every transaction with block, gas and status, the state read back from the chain, the identifiers recomputed and matched — is docs/sepolia-evidence-rev4.md in the repository, with deployments/sepolia-rev4.json, deployments/sepolia-rev4.transactions.json and the read-back script (scripts/sepolia-readback.sh, which now also prints each settlement’s state). All thirteen contracts are verified on Sourcify (runtime and creation bytecode match).

Repository: GitHub - garyyang-finchip/ai-dispute-resolution: AI Dispute Resolution Framework (ADRF) · GitHub · PR: Add ERC: AI Dispute Resolution Framework (ADRF) by garyyang-finchip · Pull Request #2123 · ethereum/ERCs · GitHub

I added 7 passing tests for amended terms: old deliveries keep their original norm and filing window, even after the current terms change. Uses a test source with the real ADRF registry.

PR #1