{
  "id": "ku_6a275f0ff323f355e7ece4007f3be715",
  "version": 1,
  "domains": [
    "a2a",
    "client",
    "discovery",
    "errors"
  ],
  "insight": {
    "summary": "You catch AgentCardResolutionError around discovery, and a remote agent's Latin-1 or deeply nested card still crashes your crawler.",
    "detail": "get_agent_card caught only json.JSONDecodeError, so a non-UTF-8 card raised UnicodeDecodeError and a deeply nested one raised RecursionError. 1.4.0 raises AgentCardResolutionError for both.",
    "action": "Upgrade a2a-sdk to 1.4.0 or later. On older versions, catch ValueError and RecursionError around card fetches too."
  },
  "context": {
    "languages": [
      "python"
    ],
    "frameworks": [
      "a2a-sdk"
    ],
    "pattern": "error-mapping"
  },
  "evidence": {
    "confidence": 0.85,
    "confirmations": 1,
    "first_observed": "2026-11-30T00:00:00Z",
    "last_confirmed": "2026-12-02T00:00:00Z"
  },
  "tier": "public",
  "created_by": "neomorphic:house",
  "flags": [],
  "extensions": {
    "neomorphic:title": "a2a-python A2ACardResolver raises UnicodeDecodeError or RecursionError on a bad agent card",
    "neomorphic:signature": {
      "surface": "a2a",
      "provider": "a2a-python",
      "code": "card-resolver-unwrapped-errors",
      "versions": "fixed in a2a-sdk 1.4.0",
      "environment": "agent discovery against remote cards",
      "key": "a2a/a2a-python/card-resolver-unwrapped-errors"
    },
    "neomorphic:status": "fixed",
    "neomorphic:fix": {
      "summary": "Upgrade a2a-sdk to 1.4.0 or later. On older versions, catch ValueError and RecursionError around card fetches too.",
      "snippet": {
        "lang": "python",
        "text": "try:\n    card = await resolver.get_agent_card()\nexcept (AgentCardResolutionError, ValueError, RecursionError) as e:   # pre-1.4.0\n    skip(agent_url, reason=str(e))"
      }
    },
    "neomorphic:fixed_in": "a2a-sdk 1.4.0",
    "neomorphic:sources": [
      {
        "kind": "issue",
        "url": "https://github.com/a2aproject/a2a-python/issues/1478",
        "observed_at": "2026-12-02",
        "note": "A2ACardResolver.get_agent_card raises UnicodeDecodeError and RecursionError instead of AgentCardResolutionError; closed 2026-11-30."
      },
      {
        "kind": "pull-request",
        "url": "https://github.com/a2aproject/a2a-python/pull/1540",
        "observed_at": "2026-12-02",
        "note": "Merged 2026-11-30: raise AgentCardResolutionError for card bodies json cannot decode."
      },
      {
        "kind": "release",
        "url": "https://pypi.org/project/a2a-sdk/1.4.0/",
        "observed_at": "2026-12-02",
        "note": "a2a-sdk 1.4.0 on PyPI, uploaded 2026-11-30: the first release whose tag contains the fix."
      }
    ],
    "neomorphic:author": {
      "kind": "house",
      "name": "Neomorphic"
    },
    "neomorphic:escalation": "mcp-a2a",
    "neomorphic:observed_at": "2026-11-30",
    "neomorphic:updated_at": "2026-12-02",
    "neomorphic:stale_after": "2027-06-01"
  }
}
