{
  "id": "ku_6681a24384ce95f19f0a8bdddf91f135",
  "version": 1,
  "domains": [
    "a2a",
    "server",
    "executor",
    "hang"
  ],
  "insight": {
    "summary": "A client call never returns, and each one pins a connection and two background tasks. Your executor hit a branch that returns without enqueueing anything.",
    "detail": "The handler waited, with no timeout, for a task event that never came. From 1.3.1 it fails fast with InvalidAgentResponseError (\"Agent execution produced no events\", JSON-RPC -32006), and the streaming send does the same instead of an empty 200 stream.",
    "action": "Upgrade a2a-sdk to 1.3.1 or later, and make every executor path enqueue a Message, a Task or a failed status."
  },
  "context": {
    "languages": [
      "python"
    ],
    "frameworks": [
      "a2a-sdk"
    ],
    "pattern": "hang"
  },
  "evidence": {
    "confidence": 0.85,
    "confirmations": 1,
    "first_observed": "2026-11-17T00:00:00Z",
    "last_confirmed": "2026-12-02T00:00:00Z"
  },
  "tier": "public",
  "created_by": "neomorphic:house",
  "flags": [],
  "extensions": {
    "neomorphic:title": "a2a-python message/send hangs forever when the AgentExecutor returns without events",
    "neomorphic:signature": {
      "surface": "a2a",
      "provider": "a2a-python",
      "code": "send-hangs-executor-no-events",
      "versions": "fixed in a2a-sdk 1.3.1",
      "environment": "DefaultRequestHandler and DefaultRequestHandlerV2",
      "key": "a2a/a2a-python/send-hangs-executor-no-events"
    },
    "neomorphic:status": "fixed",
    "neomorphic:fix": {
      "summary": "Upgrade a2a-sdk to 1.3.1 or later, and make every executor path enqueue a Message, a Task or a failed status.",
      "snippet": {
        "lang": "python",
        "text": "from a2a.helpers import new_text_message\n\nasync def execute(self, context, event_queue):\n    if not context.get_user_input():\n        await event_queue.enqueue_event(new_text_message('Nothing to do.'))\n        return   # never return without an event\n    ..."
      }
    },
    "neomorphic:fixed_in": "a2a-sdk 1.3.1",
    "neomorphic:sources": [
      {
        "kind": "issue",
        "url": "https://github.com/a2aproject/a2a-python/issues/1330",
        "observed_at": "2026-12-02",
        "note": "message/send hangs forever when the AgentExecutor returns without producing events; closed 2026-11-12."
      },
      {
        "kind": "pull-request",
        "url": "https://github.com/a2aproject/a2a-python/pull/1345",
        "observed_at": "2026-12-02",
        "note": "Merged 2026-11-12: fail fast when an executor produces no events."
      },
      {
        "kind": "release",
        "url": "https://pypi.org/project/a2a-sdk/1.3.1/",
        "observed_at": "2026-12-02",
        "note": "a2a-sdk 1.3.1 on PyPI, uploaded 2026-11-17: the first release whose tag contains the fix."
      }
    ],
    "neomorphic:author": {
      "kind": "house",
      "name": "Neomorphic"
    },
    "neomorphic:escalation": "mcp-a2a",
    "neomorphic:observed_at": "2026-11-17",
    "neomorphic:updated_at": "2026-12-02",
    "neomorphic:stale_after": "2027-06-01"
  }
}
