{
  "schema": 1,
  "sqlstate": "25002",
  "condition_name": "branch_transaction_already_active",
  "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": "25002 is branch_transaction_already_active in Class 25.",
      "sources": [
        "src.errcodes.18.6"
      ],
      "method": "Read the fixed errcodes row and macro.",
      "limits": "This is a narrow transaction-branch state, distinct from 25001 active_sql_transaction and 25P02 in_failed_sql_transaction."
    },
    {
      "id": "source-boundary",
      "statement": "The exhaustive resolved PostgreSQL 18.6 core call scan has no report group mapped to 25002, so this batch does not claim a safe natural SQL trigger.",
      "sources": [
        "src.errcodes.18.6",
        "src.calls.REL_18_6"
      ],
      "method": "Compare the errcodes macro mapping with all resolved report groups.",
      "limits": "A missing core call-site is a bounded source observation; do not manufacture it with RAISE or a guessed replication topology."
    }
  ],
  "messages": [],
  "usage_evidence": [
    {
      "scope": "definition-and-core-call-scan",
      "status": "definition_only",
      "evidence_ids": [
        "identity",
        "source-boundary",
        "src.errcodes.18.6",
        "src.calls.REL_18_6"
      ]
    }
  ],
  "runtime": []
}
