feat: log bazaar EXTENSION-RESPONSES header in resource servers#2161
feat: log bazaar EXTENSION-RESPONSES header in resource servers#2161ethanoroshiba wants to merge 6 commits intox402-foundation:mainfrom
EXTENSION-RESPONSES header in resource servers#2161Conversation
|
@ethanoroshiba is attempting to deploy a commit to the Coinbase Team on Vercel. A member of the Team first needs to authorize it. |
XTENSION-RESPONSES header in resource servers
XTENSION-RESPONSES header in resource serversEXTENSION-RESPONSES header in resource servers
|
This From the AgentPay MCP side, the production distinction we’re documenting is:
One interoperability note from implementing docs/tests against this: clients should treat four states differently in logs/UI — We added the AgentPay MCP recipe and docs tests here for downstream consumers: up2itnow0822/agentpay-mcp#8 |
|
Looks good @ethanoroshiba 👍 could you please add the |
Description
When the bazaar extension is configured on a resource server, the facilitator may return an
EXTENSION-RESPONSESheader on verify/settle responses containing the bazaar cataloging status (e.g.{"bazaar":{"status":"success"}}). This PR surfaces that data by reading the header in the HTTP facilitator clients (TypeScript, Go, Python) and logging an allowlisted subset of the extension fields.Specifically:
EXTENSION-RESPONSESheader, base64-decodes it, and logs the sanitized result as[x402] extension responses: ....status,rejectedReason,reason, andcodeare included in the log output — all other extension data is dropped before logging.VerifyResponseorSettleResponse.Tests
Unit tests passing. Formatting and linting verified per each language's CONTRIBUTING.md.
Checklist