{
  "schema": 1,
  "sqlstate": "HV004",
  "condition_name": "fdw_invalid_data_type",
  "sources": [
    {
      "id": "src.errcodes.18.6",
      "kind": "upstream_source",
      "source_role": "condition_definition",
      "tag": "REL_18_6",
      "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
      "path": "src/backend/utils/errcodes.txt",
      "sha256": "6e8de346643ba84aa3c9c6a73360acfc7b2dfb89162c06c08ce9bf5bcd5bbcba",
      "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/errcodes.txt"
    },
    {
      "id": "src.fdwapi.18.6",
      "kind": "upstream_source",
      "source_role": "fdw_callback_api",
      "tag": "REL_18_6",
      "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
      "path": "src/include/foreign/fdwapi.h",
      "sha256": "572ba892e6435ca92d3b3bc84dde5bbd3160cc3a082693daab8daa835c4d2cd7",
      "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/include/foreign/fdwapi.h"
    },
    {
      "id": "src.calls.REL_18_6",
      "kind": "local_artifact",
      "source_role": "source_call_scan",
      "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
    }
  ],
  "claims": [
    {
      "id": "identity",
      "statement": "HV004 is fdw_invalid_data_type in Class HV.",
      "sources": [
        "src.errcodes.18.6"
      ],
      "method": "Read the fixed definition row."
    },
    {
      "id": "fdw-boundary",
      "statement": "The FDW callback contract permits a wrapper to raise an error for a data-type mismatch, but the locked 18.6 core/contrib scan has no direct HV004 report group.",
      "sources": [
        "src.fdwapi.18.6",
        "src.calls.REL_18_6"
      ],
      "method": "Read callback contract and compare resolved call groups.",
      "limits": "Concrete type mappings and messages belong to the installed wrapper. Generic API context and the absent resolved report group do not establish a source path emitting this SQLSTATE."
    }
  ],
  "messages": [],
  "usage_evidence": [
    {
      "scope": "definition-and-fdw-api",
      "status": "definition_only",
      "evidence_ids": [
        "identity",
        "fdw-boundary"
      ]
    },
    {
      "scope": "direct-core-report",
      "status": "definition_only",
      "evidence_ids": [
        "fdw-boundary"
      ]
    },
    {
      "scope": "natural-runtime",
      "status": "unknown",
      "evidence_ids": [
        "fdw-boundary"
      ]
    }
  ],
  "runtime": []
}
