{
  "id": "ku_cddaddca65e9fcc8d9b61164d8f77422",
  "version": 1,
  "domains": [
    "x402",
    "buyer",
    "go",
    "hooks"
  ],
  "insight": {
    "summary": "Your reconciliation hook failed on the final retry, but the client returned the response with a nil error, so the failure went unrecorded.",
    "detail": "After the bounded corrective retry, the client dispatched payment response hooks and returned nil on a hook error, despite its own docs saying hook errors propagate. v2.21.0 returns the error and closes the response body on hook failure.",
    "action": "Upgrade the Go module to v2.21.0 or later, and treat a non-nil error after a paid call as \"reconcile before paying again\"."
  },
  "context": {
    "languages": [
      "go"
    ],
    "frameworks": [
      "x402 go/v2"
    ],
    "pattern": "lost-signal"
  },
  "evidence": {
    "confidence": 0.8,
    "confirmations": 1,
    "first_observed": "2026-08-04T00:00:00Z",
    "last_confirmed": "2026-12-02T00:00:00Z"
  },
  "tier": "public",
  "created_by": "neomorphic:house",
  "flags": [],
  "extensions": {
    "neomorphic:title": "Go x402 client returns success after a corrective retry even though your payment response hook failed",
    "neomorphic:signature": {
      "surface": "x402",
      "provider": "x402-go",
      "code": "corrective-retry-hook-error-dropped",
      "versions": "fixed in Go v2.21.0",
      "environment": "Go HTTP payment client, v2 recovery flow",
      "key": "x402/x402-go/corrective-retry-hook-error-dropped"
    },
    "neomorphic:status": "fixed",
    "neomorphic:fix": {
      "summary": "Upgrade the Go module to v2.21.0 or later, and treat a non-nil error after a paid call as \"reconcile before paying again\".",
      "snippet": {
        "lang": "sh",
        "text": "go get github.com/x402-foundation/x402/go/v2@v2.21.0"
      }
    },
    "neomorphic:fixed_in": "Go v2.21.0",
    "neomorphic:sources": [
      {
        "kind": "issue",
        "url": "https://github.com/x402-foundation/x402/issues/2913",
        "observed_at": "2026-12-02",
        "note": "Go HTTP corrective retry silently discards payment response hook errors; closed 2026-08-03."
      },
      {
        "kind": "pull-request",
        "url": "https://github.com/x402-foundation/x402/pull/3022",
        "observed_at": "2026-12-02",
        "note": "Merged 2026-08-03: propagate payment response hook errors after corrective retries."
      },
      {
        "kind": "release",
        "url": "https://pkg.go.dev/github.com/x402-foundation/x402/go/v2@v2.21.0",
        "observed_at": "2026-12-02",
        "note": "x402 Go module v2.21.0, tagged 2026-08-04: the first Go release whose tag contains the fix."
      }
    ],
    "neomorphic:author": {
      "kind": "house",
      "name": "Neomorphic"
    },
    "neomorphic:escalation": "buyer",
    "neomorphic:observed_at": "2026-08-04",
    "neomorphic:updated_at": "2026-12-02",
    "neomorphic:stale_after": "2027-06-01"
  }
}
