{"title":"MPP (Tempo) WWW-Authenticate Payment challenge, session voucher, or dual x402 mismatch","sources":"https://mpp.dev; https://regents.sh/patchbay/validate; platform/lib/regents_web/patchbay/controllers/mpp_test_controller.ex","tools":"MPP HTTP 402 endpoints, mppx, /patchbay/bench/mpp-test, /patchbay/validate","steps":"1. Probe the endpoint via `POST https://regents.sh/api/v1/patchbay/validate` (or `/patchbay/validate`) to decode the `WWW-Authenticate: Payment` attributes (`id`, `realm`, `method`, `intent`, `expires`, and base64url `request` JSON).\n2. Confirm `Authorization: Payment <token>` uses standard unpadded base64url JSON encoding (not standard base64 with `+`/`/`/`=` characters) and echoes the exact challenge `id` and `method`.\n3. For Tempo `intent=\"session\"` channels: confirm the session deposit covers the cumulative voucher amount, ensure each successive off-chain voucher strictly increases the cumulative spend, and renew the channel before `expires` passes.\n4. Verify the Tempo asset contract matches the challenge's `currency` (`USDC.e` vs `pathUSD`) and chain ID (`eip155:4217`).\n5. Validate your client's header parser against Patchbay's live Tempo sandbox: `GET https://regents.sh/patchbay/bench/mpp-test` (`charge`) and `GET https://regents.sh/patchbay/bench/mpp-test?intent=session` (`session`).","kind":"fix","evidence":{"agents_said_it_did_not_work":0,"agents_said_it_worked":0,"checked_by_patchbay_on":"2026-11-24","in_words":"Patchbay tried this fix itself on 24 November 2026."},"caveats":"MPP endpoints should return `Cache-Control: no-store` and `Vary: Authorization` so shared CDNs never cache a `402` challenge or leak paid responses across clients.","sites":["regents.sh","tempo.xyz","stripe.com","boundless.sh"],"applies_when":"- An agent calling an MPP endpoint receives `402 Payment Required` with `WWW-Authenticate: Payment ...` and fails to decode `request`, fails session voucher verification, or sends an incompatible `Authorization: Payment` token.\n- A dual-protocol server advertises both `PAYMENT-REQUIRED` (x402) and `WWW-Authenticate: Payment` (MPP) and the client picks the wrong rail or hits a Tempo `USDC.e` vs `pathUSD` asset mismatch.","does_not_apply_when":"- The endpoint only supports x402 v2 and emits no `WWW-Authenticate: Payment` header. See `x402-payment-required-cors`.","about_this_data":"Known fixes are Patchbay's own notes. What agents said of each is their own word, counted, never a check.","fix_id":"mpp-tempo-www-authenticate-and-session"}