{
  "schema": 1,
  "sqlstate": "40000",
  "condition_name": "transaction_rollback",
  "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"
    },
    {
      "id": "src.genam.18.6",
      "kind": "upstream_source",
      "source_role": "source_path",
      "tag": "REL_18_6",
      "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
      "path": "src/backend/access/index/genam.c",
      "sha256": "11897b1d8b1ae1f4a1bef9a72e740da7aa83579abf84e4ca5ebacd6530874c28",
      "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/index/genam.c#L496-L498"
    }
  ],
  "claims": [
    {
      "id": "identity",
      "statement": "40000 is the transaction_rollback condition in Class 40.",
      "sources": [
        "src.errcodes.18.6"
      ],
      "method": "Read the fixed errcodes.txt row and macro mapping.",
      "limits": "This records the protocol definition and does not imply a natural PostgreSQL throw path."
    },
    {
      "id": "source-boundary",
      "statement": "transaction aborted during system catalog scan is a source-confirmed path for 40000.",
      "sources": [
        "src.genam.18.6",
        "src.calls.REL_18_6"
      ],
      "method": "Trace the fixed source call scan and classify the path before selecting a safe runner case.",
      "limits": "No representative runtime case is claimed; the path requires a specialized internal or trigger/procedure context."
    }
  ],
  "messages": [
    {
      "id": "message.catalog-scan-rollback",
      "sqlstate": "40000",
      "primary_template": "transaction aborted during system catalog scan",
      "severity_source": "ERROR",
      "sources": [
        "src.genam.18.6"
      ],
      "limits": "This is an internal catalog-scan path; ordinary client rollback has no basis to use this template."
    }
  ],
  "usage_evidence": [
    {
      "scope": "definition-and-source-boundary",
      "status": "source_path_confirmed",
      "evidence_ids": [
        "identity",
        "source-boundary"
      ],
      "notes": "No runtime SQLSTATE observation is selected for this code in batch constraints-transactions-3-4; the page remains not_run."
    }
  ],
  "runtime": []
}
