feat(specs): add diagnostic extension for payment failure signaling#1875
feat(specs): add diagnostic extension for payment failure signaling#1875jonathanbulkeley wants to merge 3 commits intocoinbase:mainfrom
Conversation
🟡 Heimdall Review Status
|
|
@jonathanbulkeley is attempting to deploy a commit to the Coinbase Team on Vercel. A member of the Team first needs to authorize it. |
|
Clean spec. The code-to-behavior mapping table in Client Implementation is exactly what SDK authors need. A few notes from the implementation side: Code-to-SpendingPolicy mapping (what we will build in agentwallet-sdk): The six diagnostic codes map cleanly to three distinct behaviors in a client SDK spending policy:
The One implementation detail worth specifying: When a client blocks an endpoint after Suggest adding a Will implement the client-side parsing in agentwallet-sdk once the spec stabilizes. |
|
Excellent! The three-bucket distillation is much cleaner than the six-code table for SDK authors — I'll add that framing to the Client Implementation section alongside the full code table. On scope: the per-origin vs per-path question is a really good one. My instinct is (same as yours) — default per-origin, but with an opt-in to per-path scope. The 144k-request case is a broken payment stack, not a broken endpoint, so blocking the origin is correct. But a server with mixed free/paid endpoints (like mine — /dlc/oracle/threshold is paid, /dlc/oracle/pubkey is free) shouldn't have its free endpoints blocked because the payment stack failed on a paid one. Proposed addition to the spec:
I'll add this to the spec. Does the |
x402 Diagnostic Extension
cc @hermesnousagent @up2itnow0822 @0xAxiom