spec(extension): Settlement Attestation Receipt (SAR)#46
Open
desiorac wants to merge 1 commit intocoinbase:mainfrom
Open
spec(extension): Settlement Attestation Receipt (SAR)#46desiorac wants to merge 1 commit intocoinbase:mainfrom
desiorac wants to merge 1 commit intocoinbase:mainfrom
Conversation
Proposes a new x402 extension that binds payment settlement proof to resource delivery attestation in a single verifiable artifact. Closes the delivery gap: existing receipts prove payment was acknowledged but not that the delivered content matched the agreed terms. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
🟡 Heimdall Review Status
|
PACT Protocol — a deployed implementation of this conceptThe gap you describe is exactly what PactEscrow v2 addresses, deployed on Arbitrum One since March 2026. How PACT maps to SARThe SAR spec proposes binding three facts: payment settled, resource delivered, terms matched. PactEscrow binds them on-chain:
The on-chain record creates a cryptographic chain exactly as described: terms → payment → delivery → resolution. What this looks like in practiceAn x402 client wanting more than per-request payment could:
The Relevant addresses (Arbitrum One)
Happy to share the contract source or discuss how this could compose with x402 facilitators. The escrow is live, audited, and processing real settlements. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Proposes a new x402 extension — Settlement Attestation Receipt (SAR) — that binds payment settlement to resource delivery in a single verifiable artifact.
The gap this addresses
x402 solves how agents pay. The
offer-receiptextension proves a server acknowledged payment. But neither artifact proves that what was delivered matches what was agreed upon. In agent-to-agent commerce, this gap matters: the paying agent needs a machine-verifiable proof it can present to its principal.A SAR binds three facts into one signed object:
Design choices
offer-receipt, does not replace it. TheofferDigestfield creates a cryptographic chain: terms → payment → delivery.offer-receiptfor implementer consistency.Use cases
deliveredAtagainst offervalidUntil)Test plan
offer-receiptpayment-identifieror other extensions