{
  "schema": 1,
  "sqlstate": "23000",
  "condition_name": "integrity_constraint_violation",
  "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.calls.REL_18_6",
      "kind": "local_artifact",
      "source_role": "source_call_scan",
      "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
    }
  ],
  "claims": [
    {
      "id": "identity",
      "statement": "23000 is the Class 23 integrity_constraint_violation umbrella condition.",
      "sources": [
        "src.errcodes.18.6"
      ],
      "method": "Read the fixed class and condition row.",
      "limits": "The umbrella code is a protocol definition; concrete PostgreSQL constraint paths normally use a more specific Class 23 code."
    },
    {
      "id": "specific-codes",
      "statement": "PostgreSQL source uses specific descendants such as 23001, 23502, 23503, 23505, 23514, and 23P01 for distinct mechanisms; the exhaustive 18.6 call scan has no resolved 23000 report group.",
      "sources": [
        "src.errcodes.18.6",
        "src.calls.REL_18_6"
      ],
      "method": "Compare the errcodes mapping with all resolved report groups whose code_candidates contain 23000.",
      "limits": "Absence from this scan is not proof that every extension or future source path can never emit 23000; it bounds this locked core scan."
    },
    {
      "id": "handling",
      "statement": "A client should branch on the exact five-character SQLSTATE and use constraint/object fields rather than collapsing every Class 23 error to 23000.",
      "sources": [
        "src.errcodes.18.6"
      ],
      "method": "Read the protocol identity and the specific descendant mappings.",
      "limits": "Do not fabricate a natural 23000 reproduction with RAISE; this batch has no safe core SQL path for it."
    }
  ],
  "messages": [],
  "usage_evidence": [
    {
      "scope": "definition-and-core-call-scan",
      "status": "definition_only",
      "evidence_ids": [
        "identity",
        "specific-codes",
        "handling",
        "src.errcodes.18.6",
        "src.calls.REL_18_6"
      ],
      "notes": "No natural runtime reproduction is asserted for the umbrella condition in the locked PostgreSQL 18.6 core scan."
    }
  ],
  "runtime": []
}
