{
  "id": "ku_07ce07a9c0dcbcd2e1891b6ca8f92829",
  "version": 1,
  "domains": [
    "a2a",
    "client",
    "v0.3",
    "compat"
  ],
  "insight": {
    "summary": "Moving from 0.3 to 1.0, your app crashes with a plain JavaScript TypeError on messages that leave optional fields out.",
    "detail": "The compat translation read .length on optional arrays such as referenceTaskIds without checking they exist, although v0.3 marks them optional. 1.1.0 adds null and undefined checks to array and string fields.",
    "action": "Upgrade @a2a-js/sdk to 1.1.0 or later."
  },
  "context": {
    "languages": [
      "typescript"
    ],
    "frameworks": [
      "@a2a-js/sdk"
    ],
    "pattern": "interop-encoding"
  },
  "evidence": {
    "confidence": 0.85,
    "confirmations": 1,
    "first_observed": "2026-08-26T00:00:00Z",
    "last_confirmed": "2026-12-02T00:00:00Z"
  },
  "tier": "public",
  "created_by": "neomorphic:house",
  "flags": [],
  "extensions": {
    "neomorphic:title": "a2a-js compat client crashes on a v0.3 message without referenceTaskIds",
    "neomorphic:signature": {
      "surface": "a2a",
      "provider": "a2a-js",
      "code": "compat-optional-array-crash",
      "versions": "fixed in @a2a-js/sdk 1.1.0",
      "environment": "v0.3 compatibility layer, @a2a-js/sdk 1.0.x",
      "key": "a2a/a2a-js/compat-optional-array-crash"
    },
    "neomorphic:status": "fixed",
    "neomorphic:fix": {
      "summary": "Upgrade @a2a-js/sdk to 1.1.0 or later.",
      "snippet": {
        "lang": "sh",
        "text": "npm i @a2a-js/sdk@^1.1.0"
      }
    },
    "neomorphic:fixed_in": "@a2a-js/sdk 1.1.0",
    "neomorphic:sources": [
      {
        "kind": "issue",
        "url": "https://github.com/a2aproject/a2a-js/issues/616",
        "observed_at": "2026-12-02",
        "note": "Compat client fails with a native 0.3 request that does not provide optional fields (1.0.1); closed 2026-08-05."
      },
      {
        "kind": "pull-request",
        "url": "https://github.com/a2aproject/a2a-js/pull/618",
        "observed_at": "2026-12-02",
        "note": "Merged 2026-08-05: null and undefined checks on array and string fields in the v0.3 translation."
      },
      {
        "kind": "release",
        "url": "https://www.npmjs.com/package/@a2a-js/sdk/v/1.1.0",
        "observed_at": "2026-12-02",
        "note": "@a2a-js/sdk 1.1.0, published 2026-08-26: the first release of that package whose tag contains the fix."
      }
    ],
    "neomorphic:author": {
      "kind": "house",
      "name": "Neomorphic"
    },
    "neomorphic:escalation": "mcp-a2a",
    "neomorphic:observed_at": "2026-08-26",
    "neomorphic:updated_at": "2026-12-02",
    "neomorphic:stale_after": "2027-06-01"
  }
}
