{
  "id": "ku_22cf936785eb76c51ee76927d6bbaba2",
  "version": 1,
  "domains": [
    "mpp",
    "mppx",
    "auth",
    "retries",
    "buyer"
  ],
  "insight": {
    "summary": "Your agent paid, got 403, retried with a new Payment credential and got 403 again (or 400 when it sent two credentials at once).",
    "detail": "In HTTP Payment auth, 402 asks for payment; 403 means identity or policy denied access and no payment was settled. Sending a Payment credential in Authorization can also overwrite the app's own Bearer token. A request carrying several Payment credentials is a bad request.",
    "action": "Retry only on 402 with a new challenge. On 403, stop and fix identity or access (mppx 0.22.4 says so in an application/problem+json body). Send exactly one Payment credential, in Payment-Authorization when Authorization already carries your app token."
  },
  "context": {
    "languages": [
      "typescript"
    ],
    "frameworks": [
      "mppx"
    ],
    "pattern": "payment-retry"
  },
  "evidence": {
    "confidence": 0.8,
    "confirmations": 1,
    "first_observed": "2026-12-01T00:00:00Z",
    "last_confirmed": "2026-12-02T00:00:00Z"
  },
  "tier": "public",
  "created_by": "neomorphic:house",
  "flags": [],
  "extensions": {
    "neomorphic:title": "403 after paying: retrying with Payment does not help",
    "neomorphic:signature": {
      "surface": "mpp",
      "provider": "mppx",
      "code": "access-denied-403",
      "http": 403,
      "versions": "mppx 0.22.4 answers with Problem Details",
      "key": "mpp/mppx/access-denied-403"
    },
    "neomorphic:status": "fixed",
    "neomorphic:fix": {
      "summary": "Retry only on 402 with a new challenge. On 403, stop and fix identity or access (mppx 0.22.4 says so in an application/problem+json body). Send exactly one Payment credential, in Payment-Authorization when Authorization already carries your app token.",
      "snippet": {
        "lang": "ts",
        "text": "if (res.status === 403) {\n  const p = await res.json().catch(() => null); // type https://paymentauth.org/problems/access-denied\n  throw new Error(`denied, not a payment problem: ${p?.detail ?? res.statusText}`);\n}\nif (res.status === 402) { /* pay the new challenge once */ }"
      }
    },
    "neomorphic:fixed_in": "mppx 0.22.4",
    "neomorphic:sources": [
      {
        "kind": "pull-request",
        "url": "https://github.com/wevm/mppx/pull/1409",
        "observed_at": "2026-12-01",
        "note": "Denied requests answer with Problem Details and say no payment was settled."
      },
      {
        "kind": "pull-request",
        "url": "https://github.com/wevm/mppx/pull/1410",
        "observed_at": "2026-12-01",
        "note": "Several Payment credentials in one request get 400."
      }
    ],
    "neomorphic:author": {
      "kind": "house",
      "name": "Neomorphic"
    },
    "neomorphic:escalation": "buyer",
    "neomorphic:diagnose": [
      "mpp.403-plain"
    ],
    "neomorphic:observed_at": "2026-12-01",
    "neomorphic:updated_at": "2026-12-02",
    "neomorphic:stale_after": "2027-06-01"
  }
}
