#3500·x402

[Feature]: Dispute evidence for agent-initiated payments

Author: ak68aCreated Sep 16, 2026Updated Sep 24, 2026

Problem or use case

x402's payment flow is forward-only: the resource server publishes PaymentRequired, the client signs a PaymentPayload, the facilitator verifies and settles, and the resource is delivered. This works well when the paying entity and the authorizing entity are the same person.

With AI agents initiating x402 payments on behalf of users, a new failure mode appears: the payment was technically valid — correct signature, sufficient balance, successful settlement — but the agent exceeded the scope the user authorized. The user said "fetch market data under $0.10," the agent paid $5.00 for a premium tier. No party committed fraud. The facilitator verified correctly. The settlement is final. But the user has no machine-readable way to express "this payment was valid yet wrong."

The offer-and-receipt extension already anticipates this. Its §1 names dispute evidence as a use case, §5.5 defines signed receipts that support "dispute evidence and auditability," and §8 references "dispute workflows, including scenarios involving automated purchasers (agents)." But the extension stops at evidence collection — it creates the building blocks (signed offer = what was promised, signed receipt = what was delivered) without defining the artifact that binds them together with a structured mismatch description.

This is the same gap across every agent payment protocol. I've proposed a dispute evidence extension for Agent Commerce Kit and MPP. The underlying research is at agent-payments-research/dispute-resolution.

Proposed solution

Add a dispute evidence extension alongside the existing offer-and-receipt extension — closing the gap the offer-receipt spec already identified. The core idea: an evidence triple — authorization scope, action, and a structured delta describing the mismatch — that a resolver can verify mechanically from the artifact alone, with no callbacks.

How it maps to x402 primitives:

  • Authorization scope: The user's budget or constraint for the agent. x402 doesn't define this today (it's above the protocol layer), but an agent-facing client could carry it as a signed object — analogous to ACK's "grant" or the upto scheme's ceiling.
  • Action: The settled payment. The offer-and-receipt extension already produces a signed receipt. That's the action leg.
  • Delta: A structured list of which constraints were violated. Each entry names a field, the authorized value, and the actual value. A resolver extracts both from the embedded artifacts and confirms they differ. No interpretation required.

Where the facilitator fits:

The facilitator already sees both sides of the transaction — it handles POST /verify and POST /settle. It's a natural candidate for dispute verification: a POST /dispute endpoint alongside the existing two could verify that the embedded receipt is one it actually settled, and that the delta entries are mathematically correct against the embedded artifacts.

What this would look like as an extension:

A dispute extension that travels in extensions{} or as a standalone artifact (like the receipt), carrying the evidence triple. The spec would define:

  • The artifact shape (likely JWS, matching the offer-and-receipt extension's JWS format option)
  • A small set of mechanically-verifiable reason codes (scope exceeded, budget exceeded, unauthorized resource)
  • A verification checklist the facilitator (or any third party) walks
  • How the extension interacts with different schemes (exact, upto, batch-settlement)

What this does NOT define:

  • Resolution outcomes — whether a dispute leads to a refund is a business decision above the protocol
  • Fund reversal — x402 settlements are on-chain; reversing funds is a separate problem
  • Intent capture — "I wanted cheap data, not premium" requires natural-language understanding, which is out of scope

Scope of this proposal:

This issue plants the idea. The full design work would come in follow-up proposals if there's interest.

The detailed research (artifact shapes, reason codes, verification checklist, security considerations, working code example) is at: agent-payments-research/dispute-resolution

Cross-reference: agentcommercekit/ack#217, tempoxyz/mpp-specs#359.

Known prerequisites

This proposal depends on two things x402 doesn't have yet:

  1. An agent authorization scope artifact — a signed object from the principal constraining what the agent can spend (amount, resources, networks, expiry). The upto scheme defines a server-facing max; this would be a principal-defined constraint traveling in PaymentPayload.extensions. Related to the scoping gap in #3462, though from the pre-payment side rather than post-payment entitlements.
  2. A receipt-to-authorization binding — a content-hash reference on the signed receipt pointing to the authorization scope and offer that were in effect at settlement time. The offer-receipt extension's receipt (§5.2) currently omits amount and offer reference for privacy; hash-based references would preserve that design while enabling verification. This relates to the receipt-binding pattern in #3379 (proof-of-done).

I have detailed proposals for both, designed around x402's existing extension mechanism and the offer-receipt extension's dual-format (EIP-712/JWS) approach. Happy to file them separately if this direction is useful.


This issue was prepared with AI assistance (Claude Code). The dispute resolution research and cross-protocol analysis are original work.