{
  "schema": 1,
  "entries": [
    {
      "sqlstate": "00000",
      "condition_name": "successful_completion",
      "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",
          "lines": "79"
        },
        {
          "id": "src.elog.18.6",
          "kind": "upstream_source",
          "source_role": "default_sqlstate_selection",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/error/elog.c",
          "sha256": "766d30a426ba1d9597657bd46fb890da3e37e4ae53a83d1245bf082ed9433c33",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/error/elog.c",
          "lines": "449-457"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "00000 is successful_completion in Class 00.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes definition row and macro."
        },
        {
          "id": "default-selection",
          "statement": "In the fixed 18.6 error machinery, levels below WARNING initialize the SQLSTATE to ERRCODE_SUCCESSFUL_COMPLETION when no more specific code is supplied.",
          "sources": [
            "src.elog.18.6"
          ],
          "method": "Read the default sqlerrcode selection in errstart().",
          "limits": "This is only the low-level default for levels below WARNING; it does not establish a normal ErrorResponse or successful command protocol result, and no natural runtime is claimed."
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "fixed-default-selection",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "identity",
            "default-selection"
          ]
        },
        {
          "scope": "command-completion-protocol",
          "status": "unknown",
          "evidence_ids": [
            "default-selection"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "default-selection"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "01000",
      "condition_name": "warning",
      "sources": [
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "src.errcodes.18.6",
          "location": "lines 81-84",
          "path": "src/backend/utils/errcodes.txt",
          "sha256": "6e8de346643ba84aa3c9c6a73360acfc7b2dfb89162c06c08ce9bf5bcd5bbcba",
          "tag": "REL_18_6",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/errcodes.txt"
        },
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "src.elog.18.6",
          "location": "lines 442-454",
          "path": "src/backend/utils/error/elog.c",
          "sha256": "766d30a426ba1d9597657bd46fb890da3e37e4ae53a83d1245bf082ed9433c33",
          "tag": "REL_18_6",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/error/elog.c#L442-L454"
        },
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "src.async.18.6",
          "location": "lines 1518-1559",
          "path": "src/backend/commands/async.c",
          "sha256": "61818f28cd0364a7ada65d4efa94db0ef1a441064621b26314bb7a13816c24e1",
          "tag": "REL_18_6",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/async.c#L1518-L1559"
        },
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "src.varsup.18.6",
          "location": "lines 168-179",
          "path": "src/backend/access/transam/varsup.c",
          "sha256": "63525c51e70b9daa5a3544fae19537aa3065a62f8b5506a78cd646648d228a02",
          "tag": "REL_18_6",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/transam/varsup.c#L168-L179"
        },
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "src.multixact.18.6",
          "location": "lines 1287-1300",
          "path": "src/backend/access/transam/multixact.c",
          "sha256": "cf6634f5dc84f2938623bc0e8f8c19c1a37331160810815c169a5b3b5e22cd5f",
          "tag": "REL_18_6",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/transam/multixact.c#L1287-L1300"
        },
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "src.spi.18.6",
          "location": "lines 467-472",
          "path": "src/backend/executor/spi.c",
          "sha256": "7244b45f632583c72530832df901b788fe403c8857425dd13edb49d9f84b0c78",
          "tag": "REL_18_6",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/executor/spi.c#L467-L472"
        },
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "doc.protocol.18",
          "location": "lines 6254-6290, ErrorResponse/NoticeResponse severity fields",
          "path": "doc/src/sgml/protocol.sgml",
          "sha256": "745339e07ebbc2bb67d98b258e25772ada644ef26011e3cd6b3fcbb435235f89",
          "tag": "PG18-docs",
          "url": "https://www.postgresql.org/docs/18/protocol-error-fields.html"
        },
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "doc.logging.18",
          "location": "lines 7142-7190 and 9721-9760, message logging thresholds",
          "path": "doc/src/sgml/config.sgml",
          "sha256": "ffca322c15315ba670733d6b320f23cbba7374db0d18937298ffc07b58799ef6",
          "tag": "PG18-docs",
          "url": "https://www.postgresql.org/docs/18/runtime-config-logging.html"
        },
        {
          "commit": "313a720f95a3f41b59f853786b184f38f82172d9",
          "id": "doc.errcodes.8.1.4",
          "kind": "upstream_source",
          "location": "REL8_1_4 table rows 93-95; the older table renders 01000 as 1000",
          "path": "doc/src/sgml/errcodes.sgml",
          "release": "8.1.4",
          "sha256": "fdd6f5470b19970d3b60219a44e66b33193647975d346adfe2a98178f706b776",
          "url": "https://github.com/postgres/postgres/blob/313a720f95a3f41b59f853786b184f38f82172d9/doc/src/sgml/errcodes.sgml#L93-L95"
        },
        {
          "id": "manifest.01000",
          "kind": "local_artifact",
          "location": "snapshots and definition_blobs entries for the 01000 definition",
          "sha256": "1727a275f336988ff96b4f9990a4ca253080f73fc5d316e7def165c8cf3708a8"
        },
        {
          "id": "case-manifest.01000",
          "kind": "local_artifact",
          "location": "generic_warning_boundary",
          "sha256": "4d3c6cf00c5ec99a0ecee396fbc66aee86c0fd9297f05a143bb0e0eb0c6c87ef"
        },
        {
          "id": "snippet-registry.01000.final",
          "kind": "local_artifact",
          "location": "generic_warning_boundary ordered probe and followup",
          "sha256": "4c8a6418ae49f45ade9dd68c04d13ef1c300f472b2816c9ff57455776153ac58"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "limits": "Directory identity does not identify the emitting subsystem or prove a runtime occurrence.",
          "method": "Read the Class 01 section and the 01000 row in the frozen errcodes.txt snapshot.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "statement": "01000 is the generic warning condition in Class 01, and the directory comment says not to use Class 01 for failure conditions."
        },
        {
          "id": "dispatch.default-severity-map",
          "limits": "An explicit errcode in the ereport construction can replace this initial value; the mapping does not classify every notice by message text.",
          "method": "Read the default sqlerrcode selection in errstart() in the fixed 18.6 source.",
          "sources": [
            "src.elog.18.6"
          ],
          "statement": "Without a later explicit errcode, PostgreSQL initializes ERROR and higher levels as XX000, WARNING as 01000, and lower levels as 00000."
        },
        {
          "id": "mechanism.notify-queue",
          "limits": "The warning is rate-limited and conditional on queue usage and an identifiable old listener; the source path is not a promise that every installation will observe it.",
          "method": "Read asyncQueueFillWarning() and its ereport(WARNING) construction.",
          "sources": [
            "src.async.18.6"
          ],
          "statement": "The asynchronous notification queue emits a WARNING with SQLSTATE 01000 by default when its usage reaches the warning path, with conditional PID detail and a hint to end the oldest transaction."
        },
        {
          "id": "mechanism.wraparound-warnings",
          "limits": "These are source-confirmed paths; their conditions and remaining-count values depend on live transaction state.",
          "method": "Read the ereport(WARNING) branches and their VACUUM, prepared-transaction, and replication-slot hints.",
          "sources": [
            "src.varsup.18.6",
            "src.multixact.18.6"
          ],
          "statement": "Transaction ID and MultiXact horizon checks emit warning messages and maintenance hints for a database approaching its configured horizon."
        },
        {
          "id": "mechanism.spi-explicit-code",
          "limits": "This warning requires an SPI lifecycle defect; it is not a generic SQL warning trigger.",
          "method": "Read the commit cleanup branch at lines 467-472 in the fixed source.",
          "sources": [
            "src.spi.18.6"
          ],
          "statement": "The SPI cleanup path explicitly supplies ERRCODE_WARNING for a non-empty SPI stack and reports a missing SPI_finish hint."
        },
        {
          "id": "protocol.severity-fields",
          "limits": "The fields describe the wire message; they do not change the SQLSTATE directory row.",
          "method": "Read the official Error and Notice Message Fields table in the PostgreSQL 18 documentation.",
          "sources": [
            "doc.protocol.18"
          ],
          "statement": "The protocol carries localized S and nonlocalized V severity fields; error messages use ERROR/FATAL/PANIC while notice messages can use WARNING, NOTICE, DEBUG, INFO, or LOG."
        },
        {
          "id": "delivery.logging-thresholds",
          "limits": "Thresholds affect visibility, not the underlying emitting condition, and configuration can differ between sessions and servers.",
          "method": "Read the PostgreSQL 18 runtime logging configuration entries.",
          "sources": [
            "doc.logging.18"
          ],
          "statement": "client_min_messages and log_min_messages control which messages are delivered to clients or written to the server log."
        },
        {
          "id": "versions.catalogue-boundary",
          "limits": "The pre-9.0 source set is locked through 8.4.22 but candidate source gaps remain for 7.0–7.3; observed presence is not an asserted introduction version.",
          "method": "Read the manifest snapshots and the same-tag REL8_1_4 errcodes.sgml row for the 01000 definition; the per-code history file is a derived view of these locked records.",
          "sources": [
            "manifest.01000",
            "doc.errcodes.8.1.4"
          ],
          "statement": "The catalogue records 01000 in the locked 7.4–8.4.22 pre-9.0 formal sources and every listed formal snapshot from 9.0.23 through 18.6 and 19beta3. The same-tag REL8_1_4 errcodes.sgml row already lists the older 1000 spelling with condition name warning, confirming that condition-name observation by 8.1.4. Candidate source gaps remain for 7.0–7.3, so 7.4 is a presence boundary rather than an exact introduction version."
        },
        {
          "id": "runtime.representative-warning",
          "limits": "This runtime result covers the PL/pgSQL RAISE WARNING dispatch probe only; it is not runtime evidence for the separate NOTIFY queue, hstore, XID, or MultiXact paths.",
          "method": "Read the stable case and ordered snippet registry, then compare the warning notice, SQLSTATE, severity, followup, and IDLE status in both final run summaries and raw records.",
          "sources": [
            "case-manifest.01000",
            "snippet-registry.01000.final",
            "runtime.01000-warning-dispatch-final-20260909.latest",
            "runtime.01000-warning-dispatch-final-20260909.pg10"
          ],
          "statement": "The generic_warning_boundary case delivered an observed WARNING with SQLSTATE 01000 and the calibration warning message on PostgreSQL 18.6 and 10.21; the autocommit connection remained IDLE and accepted SELECT 1."
        }
      ],
      "messages": [
        {
          "detail_template": "The server process with PID %d is among those with the oldest transactions.",
          "hint_template": "The NOTIFY queue cannot be emptied until that process ends its current transaction.",
          "id": "message.notify-queue",
          "limits": "DETAIL and HINT are conditional on finding an oldest listener process.",
          "primary_template": "NOTIFY queue is %.0f%% full",
          "severity_source": "default_by_severity WARNING",
          "sources": [
            "src.async.18.6"
          ],
          "sqlstate": "01000"
        },
        {
          "hint_template": "To avoid transaction ID assignment failures, execute a database-wide VACUUM in that database.\nYou might also need to commit or roll back old prepared transactions, or drop stale replication slots.",
          "id": "message.xid-wraparound",
          "limits": "The remaining count and optional follow-up text are calculated from live transaction state.",
          "primary_template": "database \"%s\" must be vacuumed within %u transactions",
          "severity_source": "default_by_severity WARNING",
          "sources": [
            "src.varsup.18.6"
          ],
          "sqlstate": "01000",
          "template_type": "singular"
        },
        {
          "hint_template": "Execute a database-wide VACUUM in that database.\nYou might also need to commit or roll back old prepared transactions.",
          "id": "message.multixact-wraparound",
          "limits": "The singular/plural selection and remaining count depend on live MultiXact state.",
          "primary_template_plural": "database \"%s\" must be vacuumed before %u more MultiXactIds are used",
          "primary_template_singular": "database \"%s\" must be vacuumed before %u more MultiXactId is used",
          "severity_source": "default_by_severity WARNING",
          "sources": [
            "src.multixact.18.6"
          ],
          "sqlstate": "01000",
          "template_type": "plural"
        },
        {
          "hint_template": "Check for missing \"SPI_finish\" calls.",
          "id": "message.spi-stack",
          "limits": "This template belongs to SPI cleanup and does not describe every 01000 path.",
          "primary_template": "transaction left non-empty SPI stack",
          "severity_source": "explicit ERRCODE_WARNING at WARNING",
          "sources": [
            "src.spi.18.6"
          ],
          "sqlstate": "01000"
        },
        {
          "id": "message.runtime-warning",
          "limits": "This message is supplied by the representative probe and is not a built-in template for the NOTIFY, hstore, XID, or MultiXact paths.",
          "primary_template": "calibration warning",
          "severity_source": "observed WARNING notice",
          "sources": [
            "runtime.01000-warning-dispatch-final-20260909.latest",
            "runtime.01000-warning-dispatch-final-20260909.pg10"
          ],
          "sqlstate": "01000"
        }
      ],
      "usage_evidence": [
        {
          "evidence_ids": [
            "versions.catalogue-boundary",
            "manifest.01000",
            "doc.errcodes.8.1.4"
          ],
          "scope": "version_presence",
          "status": "definition_only"
        },
        {
          "evidence_ids": [
            "identity.class-and-condition",
            "src.errcodes.18.6"
          ],
          "scope": "directory_definition",
          "status": "definition_only"
        },
        {
          "evidence_ids": [
            "dispatch.default-severity-map",
            "src.elog.18.6"
          ],
          "scope": "default_warning_dispatch",
          "status": "source_path_confirmed"
        },
        {
          "evidence_ids": [
            "mechanism.notify-queue",
            "src.async.18.6",
            "message.notify-queue"
          ],
          "scope": "notification_queue_warning",
          "status": "source_path_confirmed"
        },
        {
          "evidence_ids": [
            "mechanism.wraparound-warnings",
            "src.varsup.18.6",
            "src.multixact.18.6"
          ],
          "scope": "transaction_horizon_warnings",
          "status": "source_path_confirmed"
        },
        {
          "evidence_ids": [
            "runtime.representative-warning",
            "message.runtime-warning",
            "snippet-registry.01000.final",
            "runtime.01000-warning-dispatch-final-20260909.latest",
            "runtime.01000-warning-dispatch-final-20260909.pg10"
          ],
          "notes": "Both targets observed the PL/pgSQL RAISE WARNING probe; the result does not cover the separate subsystem paths.",
          "scope": "representative_runtime",
          "status": "observed_runtime"
        }
      ],
      "runtime": [
        {
          "cases": [
            "generic_warning_boundary"
          ],
          "id": "runtime.01000-warning-dispatch-final-20260909.latest",
          "limits": "The run verifies default RAISE WARNING dispatch, not the separate NOTIFY queue, hstore, XID, or MultiXact warning paths.",
          "observed": {
            "followup": 1,
            "message_primary": "calibration warning",
            "scope": "PL/pgSQL RAISE WARNING dispatch probe; does not represent the hstore_compat.c warning path",
            "severity": "WARNING",
            "sqlstate": "01000",
            "status_after_probe": "IDLE"
          },
          "raw_sha256": "754dfce792e831725220e08cd071d0b86642003c774794979d211eb5b5882a84",
          "run_id": "01000-warning-dispatch-final-20260909",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "snippet_registry": {
            "sha256": "4c8a6418ae49f45ade9dd68c04d13ef1c300f472b2816c9ff57455776153ac58"
          },
          "status": "passed",
          "summary_sha256": "aa77c0684de9e5f8e257416ba32f10550ebb2362bf8ce083ff6c4fd4242b2565",
          "target": "latest"
        },
        {
          "cases": [
            "generic_warning_boundary"
          ],
          "id": "runtime.01000-warning-dispatch-final-20260909.pg10",
          "image": "postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
          "limits": "The run verifies default RAISE WARNING dispatch, not the separate NOTIFY queue, hstore, XID, or MultiXact warning paths.",
          "observed": {
            "followup": 1,
            "message_primary": "calibration warning",
            "scope": "PL/pgSQL RAISE WARNING dispatch probe; does not represent the hstore_compat.c warning path",
            "severity": "WARNING",
            "sqlstate": "01000",
            "status_after_probe": "IDLE"
          },
          "raw_sha256": "471efe14b8234036ed5d978f816b08b2f577eab6c79b56b1259ade338983251d",
          "run_id": "01000-warning-dispatch-final-20260909",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "snippet_registry": {
            "sha256": "4c8a6418ae49f45ade9dd68c04d13ef1c300f472b2816c9ff57455776153ac58"
          },
          "status": "passed",
          "summary_sha256": "ee813797dd39ee66307ce1016bc7840730fa1e919afdbc9a44d8cb75f38129af",
          "target": "pg10"
        }
      ]
    },
    {
      "sqlstate": "01003",
      "condition_name": "null_value_eliminated_in_set_function",
      "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",
          "lines": "87"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "01003 is null_value_eliminated_in_set_function in SQLSTATE Class 01.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes definition row and macro."
        },
        {
          "id": "scan-boundary",
          "statement": "No resolved 01003 report group was found in the locked PostgreSQL 18.6 core/contrib call scan.",
          "sources": [
            "src.calls.REL_18_6",
            "src.errcodes.18.6"
          ],
          "method": "Compare resolved report groups with the fixed macro mapping.",
          "limits": "This scan does not cover external clients, drivers, extensions, remote systems, or other implementations; absence from the scan is not an absolute absence claim."
        },
        {
          "id": "history-boundary",
          "statement": "The locked release definitions establish catalogue presence, not a precise introducing release or runtime use.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Compare the canonical release-definition facts with the available history boundary.",
          "limits": "Definition presence is not an emitting-path observation."
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "definition-and-scan",
          "status": "definition_only",
          "evidence_ids": [
            "identity",
            "scan-boundary"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history-boundary"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "scan-boundary"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "01004",
      "condition_name": "string_data_right_truncation",
      "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",
          "lines": "90"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "01004 is string_data_right_truncation in SQLSTATE Class 01.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes definition row and macro."
        },
        {
          "id": "scan-boundary",
          "statement": "No resolved 01004 report group was found in the locked PostgreSQL 18.6 core/contrib call scan.",
          "sources": [
            "src.calls.REL_18_6",
            "src.errcodes.18.6"
          ],
          "method": "Compare resolved report groups with the fixed macro mapping.",
          "limits": "This scan does not cover external clients, drivers, extensions, remote systems, or other implementations; absence from the scan is not an absolute absence claim."
        },
        {
          "id": "history-boundary",
          "statement": "The locked release definitions establish catalogue presence, not a precise introducing release or runtime use.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Compare the canonical release-definition facts with the available history boundary.",
          "limits": "Definition presence is not an emitting-path observation."
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "definition-and-scan",
          "status": "definition_only",
          "evidence_ids": [
            "identity",
            "scan-boundary"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history-boundary"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "scan-boundary"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "01006",
      "condition_name": "privilege_not_revoked",
      "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",
          "lines": "89"
        },
        {
          "id": "src.aclchk.18.6",
          "kind": "upstream_source",
          "source_role": "acl_warning_paths",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/catalog/aclchk.c",
          "sha256": "9700258318959b47c42edb423418fb511dd3a008023e732f601eecf4c80868f8",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/catalog/aclchk.c#L318-L382",
          "lines": "318-382"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "01006 is privilege_not_revoked in SQLSTATE Class 01.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes definition row and macro."
        },
        {
          "id": "source-path",
          "statement": "A fixed PostgreSQL 18.6 source path uses this SQLSTATE at the stated severity and operation.",
          "sources": [
            "src.aclchk.18.6"
          ],
          "method": "Read the fixed source context around the SQLSTATE macro.",
          "limits": "This confirms a source path and current wording; it is not a runtime observation of every installation."
        },
        {
          "id": "acl-effective-grantor",
          "statement": "The fixed aclchk.c function computes this_privileges as the requested privilege set intersected with the effective grantor's available grant options. The REVOKE none branch warns when that mask is zero; the partial branch warns when !all_privs and the mask differs from the request. This warning branch does not inspect the grantee's old ACL; the resulting ACL must be checked separately.",
          "sources": [
            "src.aclchk.18.6"
          ],
          "method": "Read restrict_and_check_grant() and its fixed {op} report branches around aclchk.c lines 318-382.",
          "limits": "This is a source-level warning condition; it does not claim a natural runtime or prescribe a universal role/ACL setup."
        }
      ],
      "messages": [
        {
          "id": "acl-revoke-column-none",
          "severity": "WARNING",
          "primary_template": "no privileges could be revoked for column \"%s\" of relation \"%s\"",
          "sources": [
            "src.aclchk.18.6"
          ],
          "path": "src.aclchk.18.6",
          "sqlstate": "01006",
          "source_ids": [
            "src.aclchk.18.6"
          ]
        },
        {
          "id": "acl-revoke-object-none",
          "severity": "WARNING",
          "primary_template": "no privileges could be revoked for \"%s\"",
          "sources": [
            "src.aclchk.18.6"
          ],
          "path": "src.aclchk.18.6",
          "sqlstate": "01006",
          "source_ids": [
            "src.aclchk.18.6"
          ]
        },
        {
          "id": "acl-revoke-column-partial",
          "severity": "WARNING",
          "primary_template": "not all privileges could be revoked for column \"%s\" of relation \"%s\"",
          "sources": [
            "src.aclchk.18.6"
          ],
          "path": "src.aclchk.18.6",
          "sqlstate": "01006",
          "source_ids": [
            "src.aclchk.18.6"
          ]
        },
        {
          "id": "acl-revoke-object-partial",
          "severity": "WARNING",
          "primary_template": "not all privileges could be revoked for \"%s\"",
          "sources": [
            "src.aclchk.18.6"
          ],
          "path": "src.aclchk.18.6",
          "sqlstate": "01006",
          "source_ids": [
            "src.aclchk.18.6"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "identity",
            "source-path",
            "acl-effective-grantor"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "source-path"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "01007",
      "condition_name": "privilege_not_granted",
      "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",
          "lines": "88"
        },
        {
          "id": "src.aclchk.18.6",
          "kind": "upstream_source",
          "source_role": "acl_warning_paths",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/catalog/aclchk.c",
          "sha256": "9700258318959b47c42edb423418fb511dd3a008023e732f601eecf4c80868f8",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/catalog/aclchk.c#L318-L382",
          "lines": "318-382"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "01007 is privilege_not_granted in SQLSTATE Class 01.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes definition row and macro."
        },
        {
          "id": "source-path",
          "statement": "A fixed PostgreSQL 18.6 source path uses this SQLSTATE at the stated severity and operation.",
          "sources": [
            "src.aclchk.18.6"
          ],
          "method": "Read the fixed source context around the SQLSTATE macro.",
          "limits": "This confirms a source path and current wording; it is not a runtime observation of every installation."
        },
        {
          "id": "acl-effective-grantor",
          "statement": "The fixed aclchk.c function computes this_privileges as the requested privilege set intersected with the effective grantor's available grant options. The GRANT none branch warns when that mask is zero; the partial branch warns when !all_privs and the mask differs from the request. This warning branch does not inspect the grantee's old ACL; the resulting ACL must be checked separately.",
          "sources": [
            "src.aclchk.18.6"
          ],
          "method": "Read restrict_and_check_grant() and its fixed {op} report branches around aclchk.c lines 318-382.",
          "limits": "This is a source-level warning condition; it does not claim a natural runtime or prescribe a universal role/ACL setup."
        }
      ],
      "messages": [
        {
          "id": "acl-grant-column-none",
          "severity": "WARNING",
          "primary_template": "no privileges were granted for column \"%s\" of relation \"%s\"",
          "sources": [
            "src.aclchk.18.6"
          ],
          "path": "src.aclchk.18.6",
          "sqlstate": "01007",
          "source_ids": [
            "src.aclchk.18.6"
          ]
        },
        {
          "id": "acl-grant-object-none",
          "severity": "WARNING",
          "primary_template": "no privileges were granted for \"%s\"",
          "sources": [
            "src.aclchk.18.6"
          ],
          "path": "src.aclchk.18.6",
          "sqlstate": "01007",
          "source_ids": [
            "src.aclchk.18.6"
          ]
        },
        {
          "id": "acl-grant-column-partial",
          "severity": "WARNING",
          "primary_template": "not all privileges were granted for column \"%s\" of relation \"%s\"",
          "sources": [
            "src.aclchk.18.6"
          ],
          "path": "src.aclchk.18.6",
          "sqlstate": "01007",
          "source_ids": [
            "src.aclchk.18.6"
          ]
        },
        {
          "id": "acl-grant-object-partial",
          "severity": "WARNING",
          "primary_template": "not all privileges were granted for \"%s\"",
          "sources": [
            "src.aclchk.18.6"
          ],
          "path": "src.aclchk.18.6",
          "sqlstate": "01007",
          "source_ids": [
            "src.aclchk.18.6"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "identity",
            "source-path",
            "acl-effective-grantor"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "source-path"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "01008",
      "condition_name": "implicit_zero_bit_padding",
      "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",
          "lines": "86"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "01008 is implicit_zero_bit_padding in SQLSTATE Class 01.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes definition row and macro."
        },
        {
          "id": "scan-boundary",
          "statement": "No resolved 01008 report group was found in the locked PostgreSQL 18.6 core/contrib call scan.",
          "sources": [
            "src.calls.REL_18_6",
            "src.errcodes.18.6"
          ],
          "method": "Compare resolved report groups with the fixed macro mapping.",
          "limits": "This scan does not cover external clients, drivers, extensions, remote systems, or other implementations; absence from the scan is not an absolute absence claim."
        },
        {
          "id": "history-boundary",
          "statement": "The locked release definitions establish catalogue presence, not a precise introducing release or runtime use.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Compare the canonical release-definition facts with the available history boundary.",
          "limits": "Definition presence is not an emitting-path observation."
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "definition-and-scan",
          "status": "definition_only",
          "evidence_ids": [
            "identity",
            "scan-boundary"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history-boundary"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "scan-boundary"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "0100C",
      "condition_name": "dynamic_result_sets_returned",
      "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",
          "lines": "85"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "0100C is dynamic_result_sets_returned in SQLSTATE Class 01.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes definition row and macro."
        },
        {
          "id": "scan-boundary",
          "statement": "No resolved 0100C report group was found in the locked PostgreSQL 18.6 core/contrib call scan.",
          "sources": [
            "src.calls.REL_18_6",
            "src.errcodes.18.6"
          ],
          "method": "Compare resolved report groups with the fixed macro mapping.",
          "limits": "This scan does not cover external clients, drivers, extensions, remote systems, or other implementations; absence from the scan is not an absolute absence claim."
        },
        {
          "id": "history-boundary",
          "statement": "The locked release definitions establish catalogue presence, not a precise introducing release or runtime use.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Compare the canonical release-definition facts with the available history boundary.",
          "limits": "Definition presence is not an emitting-path observation."
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "definition-and-scan",
          "status": "definition_only",
          "evidence_ids": [
            "identity",
            "scan-boundary"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history-boundary"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "scan-boundary"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "01P01",
      "condition_name": "deprecated_feature",
      "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",
          "lines": "91"
        },
        {
          "id": "src.crypt.18.6",
          "kind": "upstream_source",
          "source_role": "deprecation_warning_path",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/libpq/crypt.c",
          "sha256": "d0c7579210827dbaec466f1c064a3d1ea2f7f7bfbf8b40b2e79fb4769cb406a9",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/libpq/crypt.c",
          "lines": "181-185"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "01P01 is deprecated_feature in SQLSTATE Class 01.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes definition row and macro."
        },
        {
          "id": "source-path",
          "statement": "A fixed PostgreSQL 18.6 source path uses this SQLSTATE at the stated severity and operation.",
          "sources": [
            "src.crypt.18.6"
          ],
          "method": "Read the fixed source context around the SQLSTATE macro.",
          "limits": "This confirms a source path and current wording; it is not a runtime observation of every installation."
        },
        {
          "id": "verifier-trigger",
          "statement": "The fixed password-setting path is relevant when the resulting stored verifier is MD5; diagnose password_encryption and the supplied verifier form, and do not treat pg_hba.conf authentication method or an existing SCRAM verifier as this warning trigger.",
          "sources": [
            "src.crypt.18.6"
          ],
          "method": "Read the fixed crypt.c warning call site and its password-setting context.",
          "limits": "Source evidence confirms the warning call site and exact fields; no natural password-setting runtime is claimed."
        }
      ],
      "messages": [
        {
          "id": "md5-password-deprecated",
          "severity": "WARNING",
          "primary_template": "setting an MD5-encrypted password",
          "sources": [
            "src.crypt.18.6"
          ],
          "path": "L181-L185",
          "detail_template": "MD5 password support is deprecated and will be removed in a future release of PostgreSQL.",
          "hint_template": "Refer to the PostgreSQL documentation for details about migrating to another password type.",
          "sqlstate": "01P01",
          "source_ids": [
            "src.crypt.18.6"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "identity",
            "source-path",
            "verifier-trigger"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "source-path"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "02000",
      "condition_name": "no_data",
      "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",
          "lines": "96"
        },
        {
          "id": "src.verify_nbtree.18.6",
          "kind": "upstream_source",
          "source_role": "internal_debug_diagnostics",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "contrib/amcheck/verify_nbtree.c",
          "sha256": "a59ae7540a990e5a70e8eb9cedbcad7c62e3e86b1ad426142c8931ee188b752d",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/contrib/amcheck/verify_nbtree.c",
          "lines": "992-1001"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "02000 is no_data in SQLSTATE Class 02.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes definition row and macro."
        },
        {
          "id": "source-path",
          "statement": "A fixed PostgreSQL 18.6 source path uses this SQLSTATE at the stated severity and operation.",
          "sources": [
            "src.verify_nbtree.18.6"
          ],
          "method": "Read the fixed source context around the SQLSTATE macro.",
          "limits": "This confirms a source path and current wording; it is not a runtime observation of every installation."
        },
        {
          "id": "message-scope",
          "statement": "The authored evidence expands three representative amcheck groups, each resolved at DEBUG1; the fixed source also contains other 02000 DEBUG1/DEBUG2 paths that are outside this selected message set.",
          "sources": [
            "src.verify_nbtree.18.6"
          ],
          "method": "Compare the selected message groups with the fixed verify_nbtree.c call scan.",
          "limits": "No natural amcheck runtime or exhaustive producer inventory is claimed."
        }
      ],
      "messages": [
        {
          "id": "amcheck-fast-root-mismatch",
          "severity": "DEBUG1",
          "primary_template": "harmless fast root mismatch in index \"%s\"",
          "sources": [
            "src.verify_nbtree.18.6"
          ],
          "path": "L508-L514",
          "detail_template": "Fast root block %u (level %u) differs from true root block %u (level %u).",
          "internal": true,
          "sqlstate": "02000",
          "source_ids": [
            "src.verify_nbtree.18.6"
          ],
          "limits": "Resolved group is DEBUG1 and internal; the fixed source labels this mismatch harmless, so it does not imply corruption or a VACUUM requirement."
        },
        {
          "id": "amcheck-concurrent-delete",
          "severity": "DEBUG1",
          "primary_template": "block %u of index \"%s\" concurrently deleted",
          "sources": [
            "src.verify_nbtree.18.6"
          ],
          "path": "L691-L694",
          "internal": true,
          "sqlstate": "02000",
          "source_ids": [
            "src.verify_nbtree.18.6"
          ],
          "limits": "Resolved group is DEBUG1 and internal; this branch has no VACUUM hint and requires concurrency context."
        },
        {
          "id": "amcheck-uniqueness-uncheckable",
          "severity": "DEBUG1",
          "primary_template": "index uniqueness can not be checked for index tid=(%u,%u) in index \"%s\"",
          "sources": [
            "src.verify_nbtree.18.6"
          ],
          "path": "L992-L1001",
          "detail_template": "It doesn't have visible heap tids and key is equal to the tid=(%u,%u)%s (points to heap tid=(%u,%u)).",
          "hint_template": "VACUUM the table and repeat the check.",
          "sqlstate": "02000",
          "source_ids": [
            "src.verify_nbtree.18.6"
          ],
          "limits": "Resolved group is DEBUG1; the VACUUM hint belongs to this uniqueness-check branch only."
        }
      ],
      "usage_evidence": [
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "identity",
            "source-path",
            "message-scope"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "source-path"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "02001",
      "condition_name": "no_additional_dynamic_result_sets_returned",
      "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",
          "lines": "97"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "02001 is no_additional_dynamic_result_sets_returned in SQLSTATE Class 02.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes definition row and macro."
        },
        {
          "id": "scan-boundary",
          "statement": "No resolved 02001 report group was found in the locked PostgreSQL 18.6 core/contrib call scan.",
          "sources": [
            "src.calls.REL_18_6",
            "src.errcodes.18.6"
          ],
          "method": "Compare resolved report groups with the fixed macro mapping.",
          "limits": "This scan does not cover external clients, drivers, extensions, remote systems, or other implementations; absence from the scan is not an absolute absence claim."
        },
        {
          "id": "history-boundary",
          "statement": "The locked release definitions establish catalogue presence, not a precise introducing release or runtime use.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Compare the canonical release-definition facts with the available history boundary.",
          "limits": "Definition presence is not an emitting-path observation."
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "definition-and-scan",
          "status": "definition_only",
          "evidence_ids": [
            "identity",
            "scan-boundary"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history-boundary"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "scan-boundary"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "03000",
      "condition_name": "sql_statement_not_yet_complete",
      "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",
          "lines": "101"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "03000 is sql_statement_not_yet_complete in SQLSTATE Class 03.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes definition row and macro."
        },
        {
          "id": "scan-boundary",
          "statement": "No resolved 03000 report group was found in the locked PostgreSQL 18.6 core/contrib call scan.",
          "sources": [
            "src.calls.REL_18_6",
            "src.errcodes.18.6"
          ],
          "method": "Compare resolved report groups with the fixed macro mapping.",
          "limits": "This scan does not cover external clients, drivers, extensions, remote systems, or other implementations; absence from the scan is not an absolute absence claim."
        },
        {
          "id": "history-boundary",
          "statement": "The locked release definitions establish catalogue presence, not a precise introducing release or runtime use.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Compare the canonical release-definition facts with the available history boundary.",
          "limits": "Definition presence is not an emitting-path observation."
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "definition-and-scan",
          "status": "definition_only",
          "evidence_ids": [
            "identity",
            "scan-boundary"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history-boundary"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "scan-boundary"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "08000",
      "condition_name": "connection_exception",
      "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",
          "tag": "REL_18_6"
        },
        {
          "id": "src.calls.REL_10_23",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "00d16d3eb01b71ccf1b245c8f3102f9d0ec9f36fb02777b8dd1b99fcb263040c",
          "tag": "REL_10_23"
        },
        {
          "id": "src.fdw-connection.18.6",
          "kind": "upstream_source",
          "source_role": "source_path",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "contrib/postgres_fdw/connection.c",
          "sha256": "67fc002657f2c7df6d93cbf99c933cbc103907d1857ed77aedbb85099ea4dda0",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/contrib/postgres_fdw/connection.c#L1369-L1372"
        },
        {
          "id": "src.fdw-connection.10.23",
          "kind": "upstream_source",
          "source_role": "source_path",
          "tag": "REL_10_23",
          "commit": "02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4",
          "path": "contrib/postgres_fdw/connection.c",
          "sha256": "8a8b053e4ef599d95d0709744aa1dd5bb20047af9dc29b3f42cfba5785e525c5",
          "url": "https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/contrib/postgres_fdw/connection.c#L1033-L1036"
        },
        {
          "id": "manifest.08000",
          "kind": "local_artifact",
          "source_role": "case_manifest",
          "sha256": "db1a8c9acb66b739158ea9cf305f3e31228e0d214a6a43cfcdbc013667cbc5e2",
          "tag": "workspace"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "statement": "08000 is the connection_exception condition in Class 08.",
          "method": "Read the fixed errcodes.txt definition and the locked catalogue metadata.",
          "limits": "Directory identity does not identify every backend or client path.",
          "sources": [
            "src.errcodes.18.6"
          ]
        },
        {
          "id": "mechanism.source-boundary",
          "statement": "The source scan resolves this class code to `postgres_fdw` abort-cleanup handling when a foreign connection cannot be discarded cleanly. It is source-path evidence, not a general socket failure case.",
          "method": "Trace the fixed REL_18_6 and REL_10_23 source call scans and the recorded source paths.",
          "limits": "This is a bounded source claim; it is not an observed natural SQLSTATE case.",
          "sources": [
            "src.fdw-connection.18.6",
            "src.fdw-connection.10.23"
          ]
        },
        {
          "id": "versions.catalogue-boundary",
          "statement": "The locked catalogue records 08000 in the listed snapshots; this source-only page compares the fixed REL_18_6 and REL_10_23 postgres_fdw source/call records and has no selected natural runtime.",
          "method": "Read the generated facts block and fixed postgres_fdw source/call records; no runtime target summaries are used for this page.",
          "limits": "Presence in a definition file is not an exact behavioral introduction, and the fixed source records do not prove every intermediate release or ordinary client connection failure.",
          "sources": [
            "src.errcodes.18.6",
            "src.calls.REL_18_6",
            "src.calls.REL_10_23"
          ]
        }
      ],
      "messages": [
        {
          "id": "message.fdw-abort-cleanup",
          "sqlstate": "08000",
          "severity_source": "explicit ERROR",
          "sources": [
            "src.fdw-connection.18.6",
            "src.fdw-connection.10.23"
          ],
          "primary_template": "connection to server \"%s\" cannot be used due to abort cleanup failure",
          "limits": "The foreign server name is dynamic; this fixed postgres_fdw branch is not a generic client socket refusal."
        }
      ],
      "usage_evidence": [
        {
          "scope": "SQLSTATE directory identity",
          "status": "definition_only",
          "evidence_ids": [
            "identity.class-and-condition",
            "src.errcodes.18.6"
          ]
        },
        {
          "scope": "Fixed source or definition boundary",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "mechanism.source-boundary",
            "src.fdw-connection.18.6",
            "src.fdw-connection.10.23",
            "message.fdw-abort-cleanup"
          ]
        },
        {
          "scope": "Locked release presence and bounded version comparison",
          "status": "definition_only",
          "evidence_ids": [
            "versions.catalogue-boundary",
            "src.errcodes.18.6"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "08001",
      "condition_name": "sqlclient_unable_to_establish_sqlconnection",
      "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",
          "tag": "REL_18_6"
        },
        {
          "id": "src.calls.REL_10_23",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "00d16d3eb01b71ccf1b245c8f3102f9d0ec9f36fb02777b8dd1b99fcb263040c",
          "tag": "REL_10_23"
        },
        {
          "id": "src.dblink-connect.18.6",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "contrib/dblink/dblink.c",
          "sha256": "e4cfaec3a0a1e5d23fded584725e0f6cf7a17321ad99e5fe046e8b7f97416f15",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/contrib/dblink/dblink.c#L335-L338"
        },
        {
          "id": "src.dblink-connect.10.23",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_10_23",
          "commit": "02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4",
          "path": "contrib/dblink/dblink.c",
          "sha256": "2d542cc722ba361bd59990aaed7fe7c0f8e147155df5e5fcd56ee03b4dd27c61",
          "url": "https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/contrib/dblink/dblink.c#L299-L302"
        },
        {
          "id": "doc.transactions.18",
          "kind": "upstream_source",
          "source_role": "transaction_recovery_documentation",
          "tag": "PG18-docs",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "doc/src/sgml/xact.sgml",
          "sha256": "b48fbe8bd02ce3d1181a350c88c8baa6e11c73edc90a936e77b180daef328c5c",
          "url": "https://www.postgresql.org/docs/18/tutorial-transactions.html"
        },
        {
          "id": "manifest.08001",
          "kind": "local_artifact",
          "source_role": "case_manifest",
          "sha256": "d1310befd467814a86638f37b0b2fc4ede637b6a459e511d5e9eacccf0e1cadd",
          "tag": "workspace"
        },
        {
          "id": "snippet-registry.08001",
          "kind": "local_artifact",
          "source_role": "snippet_registry",
          "sha256": "8227f1b7b90faa2fd296bc921279c0f357637ae39695f481f9979af01b22e93e",
          "tag": "workspace"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "statement": "08001 is the sqlclient_unable_to_establish_sqlconnection condition in Class 08.",
          "method": "Read the fixed errcodes.txt definition and the locked catalogue metadata.",
          "limits": "Directory identity does not identify every backend or client path.",
          "sources": [
            "src.errcodes.18.6"
          ]
        },
        {
          "id": "mechanism.backend-path",
          "statement": "The fixed source paths associated with 08001 report the condition in the mechanism selected for this page.",
          "method": "Trace the resolved source call records at the fixed release commits and compare their dynamic message fields.",
          "limits": "Other calls can retain the same SQLSTATE with different context or text.",
          "sources": [
            "src.dblink-connect.18.6",
            "src.dblink-connect.10.23"
          ]
        },
        {
          "id": "runtime.representative-case",
          "statement": "The selected dblink_connect_failure case passed with the expected structured diagnostics, recovery assertions, and cleanup on PostgreSQL 18.6 and 10.21.",
          "method": "Run the shared registry case on isolated runner-owned latest and PG10 targets; inspect the final summaries and raw results.",
          "limits": "This covers the selected case and versions only; it does not generalize to every driver, proxy, or intermediate release.",
          "sources": [
            "snippet-registry.08001",
            "manifest.08001"
          ],
          "runtime": [
            "runtime.08001-dblink-repair-latest2.latest",
            "runtime.08001-dblink-repair-pg10c.pg10"
          ]
        },
        {
          "id": "transaction-boundary",
          "statement": "The selected dblink ERROR is observed under autocommit, where the owner session remains IDLE; when the same ERROR occurs inside an explicit transaction, PostgreSQL's transaction recovery rules require rollback or an intentional savepoint before unrelated work.",
          "method": "Combine the fixed dblink ERROR source path with the official transaction and savepoint recovery contract.",
          "limits": "No explicit-transaction dblink runtime was selected in this batch; the transaction guidance is the general ERROR boundary, not a claim about a specific remote topology.",
          "sources": [
            "src.dblink-connect.18.6",
            "doc.transactions.18"
          ]
        },
        {
          "id": "versions.catalogue-boundary",
          "statement": "The locked catalogue records 08001 in the listed snapshots; the runtime comparison here is limited to PostgreSQL 18.6 and 10.21.",
          "method": "Read the generated facts block and locked manifest, then compare the selected target summaries.",
          "limits": "Presence in a definition file is not an exact behavioral introduction; the two runtime targets do not prove all middle versions.",
          "sources": [
            "src.errcodes.18.6",
            "src.calls.REL_18_6",
            "src.calls.REL_10_23"
          ]
        }
      ],
      "messages": [
        {
          "id": "message.dblink-establish",
          "sqlstate": "08001",
          "severity_source": "explicit ERROR",
          "sources": [
            "src.dblink-connect.18.6",
            "src.dblink-connect.10.23"
          ],
          "primary_template": "could not establish connection",
          "detail_template": "%s",
          "detail_boundary": "The fixed dblink.c call passes libpq's already-assembled connection error through errdetail_internal(\"%s\", msg); the refused-port text below is an observation from the selected run, not a PostgreSQL format template."
        }
      ],
      "usage_evidence": [
        {
          "scope": "SQLSTATE directory identity",
          "status": "definition_only",
          "evidence_ids": [
            "identity.class-and-condition",
            "src.errcodes.18.6"
          ]
        },
        {
          "scope": "Selected backend mechanism",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "mechanism.backend-path",
            "src.dblink-connect.18.6",
            "src.dblink-connect.10.23",
            "transaction-boundary",
            "doc.transactions.18"
          ]
        },
        {
          "scope": "Observed dblink_connect_failure on isolated targets",
          "status": "observed_runtime",
          "evidence_ids": [
            "runtime.representative-case",
            "snippet-registry.08001",
            "runtime.08001-dblink-repair-latest2.latest",
            "runtime.08001-dblink-repair-pg10c.pg10"
          ]
        },
        {
          "scope": "Locked release presence and bounded version comparison",
          "status": "definition_only",
          "evidence_ids": [
            "versions.catalogue-boundary",
            "src.errcodes.18.6"
          ]
        }
      ],
      "runtime": [
        {
          "id": "runtime.08001-dblink-repair-latest2.latest",
          "kind": "runtime_observation",
          "run_id": "08001-dblink-repair-latest2",
          "target": "latest",
          "status": "passed",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "cases": [
            "dblink_connect_failure"
          ],
          "summary_sha256": "5dace2836aa9b1c47208ad250c2f527fb65c6947db4c7167cb210721eb92b4c6",
          "raw_sha256": "076f97e40f38907d27d3436ac7657fefbb521ef313898410efabc7032908092a",
          "case_manifest_sha256": "d1310befd467814a86638f37b0b2fc4ede637b6a459e511d5e9eacccf0e1cadd",
          "snippet_registry": {
            "sha256": "8227f1b7b90faa2fd296bc921279c0f357637ae39695f481f9979af01b22e93e"
          },
          "environment": {
            "target_kind": "latest",
            "server_version": "18.6 (Homebrew)",
            "server_version_num": "180006",
            "machine": "arm64",
            "platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O",
            "libpq_version": "18.6",
            "psycopg_version": "3.3.5",
            "python_version": "3.14.6 (main, Jun 10 2026, 10:03:53) [Clang 21.0.0 (clang-2100.0.123.102)]",
            "locale": "en_US.UTF-8",
            "lc_messages": "C",
            "log_destination": "csvlog,jsonlog"
          },
          "observed": {
            "connection_autocommit": true,
            "connection_scope": "server-side dblink connection to the same runner-owned target and a refused runner-local port",
            "dblink_repair": {
              "disconnected": "OK",
              "opened": "OK",
              "remote_probe": 1
            },
            "diagnostic": {
              "column_name": null,
              "constraint_name": null,
              "context": null,
              "datatype_name": null,
              "exception_type": "SqlclientUnableToEstablishSqlconnection",
              "internal_position": null,
              "internal_query": null,
              "message_detail": "connection to server at \"127.0.0.1\", port 1 failed: Connection refused\n\tIs the server running on that host and accepting TCP/IP connections?",
              "message_hint": null,
              "message_primary": "could not establish connection",
              "schema_name": null,
              "severity": "ERROR",
              "severity_nonlocalized": "ERROR",
              "source_file": "dblink.c",
              "source_function": "dblink_connect",
              "source_line": "338",
              "sqlstate": "08001",
              "statement_position": null,
              "table_name": null,
              "text": "could not establish connection\nDETAIL:  connection to server at \"127.0.0.1\", port 1 failed: Connection refused\n\tIs the server running on that host and accepting TCP/IP connections?"
            },
            "probe": 1,
            "statuses": {
              "after_error": "IDLE",
              "final": "IDLE"
            }
          },
          "assertions": [
            {
              "expected": "08001",
              "name": "dblink connection SQLSTATE",
              "observed": "08001",
              "passed": true
            },
            {
              "expected": "could not establish connection",
              "name": "dblink connection diagnostic",
              "observed": "could not establish connection",
              "passed": true
            },
            {
              "expected": "IDLE",
              "name": "failed connection attempt leaves session usable",
              "observed": "IDLE",
              "passed": true
            },
            {
              "expected": "OK and remote SELECT 1",
              "name": "correct dblink connection can be repaired",
              "observed": {
                "open": "OK",
                "remote": 1
              },
              "passed": true
            },
            {
              "expected": "OK",
              "name": "named dblink handle is explicitly released",
              "observed": "OK",
              "passed": true
            },
            {
              "expected": "SELECT 1 and IDLE",
              "name": "owner session remains usable",
              "observed": {
                "probe": 1,
                "status": "IDLE"
              },
              "passed": true
            }
          ],
          "cleanup": {
            "case": {
              "errors": [],
              "passed": true
            },
            "target_stop": {
              "argv": [
                "/opt/homebrew/Cellar/postgresql@18/18.6/bin/pg_ctl",
                "-D",
                "<local runtime artifact>",
                "-m",
                "fast",
                "-w",
                "stop"
              ],
              "elapsed_seconds": 0.107,
              "returncode": 0,
              "stderr": "",
              "stdout": "waiting for server to shut down.... done\nserver stopped\n"
            }
          },
          "limits": "Disposable runner-owned target only; this is a bounded mechanism case, not a guarantee for every client or network path."
        },
        {
          "id": "runtime.08001-dblink-repair-pg10c.pg10",
          "kind": "runtime_observation",
          "run_id": "08001-dblink-repair-pg10c",
          "target": "pg10",
          "status": "passed",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "cases": [
            "dblink_connect_failure"
          ],
          "summary_sha256": "339c3ec9564d613ce80e4801dffb5de90b505bd1af2a0f33d84b7ef870643035",
          "raw_sha256": "7257f77a09d23b2ae709bd550f2815f3d18b51d7e03bf3760c99211bb945db93",
          "case_manifest_sha256": "d1310befd467814a86638f37b0b2fc4ede637b6a459e511d5e9eacccf0e1cadd",
          "snippet_registry": {
            "sha256": "8227f1b7b90faa2fd296bc921279c0f357637ae39695f481f9979af01b22e93e"
          },
          "environment": {
            "target_kind": "pg10",
            "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
            "server_version_num": "100021",
            "machine": "arm64",
            "platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O",
            "libpq_version": "18.6",
            "psycopg_version": "3.3.5",
            "python_version": "3.14.6 (main, Jun 10 2026, 10:03:53) [Clang 21.0.0 (clang-2100.0.123.102)]",
            "locale": "en_US.UTF-8",
            "lc_messages": "en_US.utf8",
            "log_destination": "csvlog"
          },
          "observed": {
            "connection_autocommit": true,
            "connection_scope": "server-side dblink connection to the same runner-owned target and a refused runner-local port",
            "dblink_repair": {
              "disconnected": "OK",
              "opened": "OK",
              "remote_probe": 1
            },
            "diagnostic": {
              "column_name": null,
              "constraint_name": null,
              "context": null,
              "datatype_name": null,
              "exception_type": "SqlclientUnableToEstablishSqlconnection",
              "internal_position": null,
              "internal_query": null,
              "message_detail": "could not connect to server: Connection refused\n\tIs the server running on host \"127.0.0.1\" and accepting\n\tTCP/IP connections on port 1?",
              "message_hint": null,
              "message_primary": "could not establish connection",
              "schema_name": null,
              "severity": "ERROR",
              "severity_nonlocalized": "ERROR",
              "source_file": "dblink.c",
              "source_function": "dblink_connect",
              "source_line": "302",
              "sqlstate": "08001",
              "statement_position": null,
              "table_name": null,
              "text": "could not establish connection\nDETAIL:  could not connect to server: Connection refused\n\tIs the server running on host \"127.0.0.1\" and accepting\n\tTCP/IP connections on port 1?"
            },
            "probe": 1,
            "statuses": {
              "after_error": "IDLE",
              "final": "IDLE"
            }
          },
          "assertions": [
            {
              "expected": "08001",
              "name": "dblink connection SQLSTATE",
              "observed": "08001",
              "passed": true
            },
            {
              "expected": "could not establish connection",
              "name": "dblink connection diagnostic",
              "observed": "could not establish connection",
              "passed": true
            },
            {
              "expected": "IDLE",
              "name": "failed connection attempt leaves session usable",
              "observed": "IDLE",
              "passed": true
            },
            {
              "expected": "OK and remote SELECT 1",
              "name": "correct dblink connection can be repaired",
              "observed": {
                "open": "OK",
                "remote": 1
              },
              "passed": true
            },
            {
              "expected": "OK",
              "name": "named dblink handle is explicitly released",
              "observed": "OK",
              "passed": true
            },
            {
              "expected": "SELECT 1 and IDLE",
              "name": "owner session remains usable",
              "observed": {
                "probe": 1,
                "status": "IDLE"
              },
              "passed": true
            }
          ],
          "cleanup": {
            "case": {
              "errors": [],
              "passed": true
            },
            "target_stop": {
              "cleanup": {
                "argv": [
                  "/usr/local/bin/docker",
                  "rm",
                  "-f",
                  "-v",
                  "sqlstate08001_08001dblinkrepairpg10c_pg10"
                ],
                "elapsed_seconds": 0.286,
                "returncode": 0,
                "stderr": "",
                "stdout": "sqlstate08001_08001dblinkrepairpg10c_pg10\n"
              },
              "inspect": {
                "argv": [
                  "/usr/local/bin/docker",
                  "inspect",
                  "sqlstate08001_08001dblinkrepairpg10c_pg10"
                ],
                "elapsed_seconds": 0.016,
                "returncode": 0,
                "stderr": "",
                "stdout": "[\n    {\n        \"Id\": \"2f98d352570f93b81b370dea5c3f1901ec167149ebd07a60352638bc1ca6d341\",\n        \"Created\": \"2026-09-09T15:34:24.994154755Z\",\n        \"Path\": \"docker-entrypoint.sh\",\n        \"Args\": [\n            \"postgres\",\n            \"-c\",\n            \"listen_addresses=*\",\n            \"-c\",\n            \"log_destination=csvlog\",\n            \"-c\",\n            \"logging_collector=on\",\n            \"-c\",\n            \"log_directory=log\",\n            \"-c\",\n            \"log_filename=postgresql-%Y%m%d%H%M%S.log\",\n            \"-c\",\n            \"log_min_messages=error\",\n            \"-c\",\n            \"log_min_error_statement=error\",\n            \"-c\",\n            \"log_error_verbosity=verbose\",\n            \"-c\",\n            \"wal_level=logical\",\n            \"-c\",\n            \"max_wal_senders=10\",\n            \"-c\",\n            \"max_replication_slots=10\"\n        ],\n        \"State\": {\n            \"Status\": \"running\",\n            \"Running\": true,\n            \"Paused\": false,\n            \"Restarting\": false,\n            \"OOMKilled\": false,\n            \"Dead\": false,\n            \"Pid\": 57716,\n            \"ExitCode\": 0,\n            \"Error\": \"\",\n            \"StartedAt\": \"2026-09-09T15:34:25.074162839Z\",\n            \"FinishedAt\": \"0001-01-01T00:00:00Z\"\n        },\n        \"Image\": \"sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc\",\n        \"ResolvConfPath\": \"/var/lib/docker/containers/2f98d352570f93b81b370dea5c3f1901ec167149ebd07a60352638bc1ca6d341/resolv.conf\",\n        \"HostnamePath\": \"/var/lib/docker/containers/2f98d352570f93b81b370dea5c3f1901ec167149ebd07a60352638bc1ca6d341/hostname\",\n        \"HostsPath\": \"/var/lib/docker/containers/2f98d352570f93b81b370dea5c3f1901ec167149ebd07a60352638bc1ca6d341/hosts\",\n        \"LogPath\": \"/var/lib/docker/containers/2f98d352570f93b81b370dea5c3f1901ec167149ebd07a60352638bc1ca6d341/2f98d352570f93b81b370dea5c3f1901ec167149ebd07a60352638bc1ca6d341-json.log\",\n        \"Name\": \"/sqlstate08001_08001dblinkrepairpg10c_pg10\",\n        \"RestartCount\": 0,\n        \"Driver\": \"overlayfs\",\n        \"Platform\": \"linux\",\n        \"MountLabel\": \"\",\n        \"ProcessLabel\": \"\",\n        \"AppArmorProfile\": \"\",\n        \"ExecIDs\": null,\n        \"HostConfig\": {\n            \"Binds\": null,\n            \"ContainerIDFile\": \"\",\n            \"LogConfig\": {\n                \"Type\": \"json-file\",\n                \"Config\": {}\n            },\n            \"NetworkMode\": \"bridge\",\n            \"PortBindings\": {\n                \"5432/tcp\": [\n                    {\n                        \"HostIp\": \"127.0.0.1\",\n                        \"HostPort\": \"\"\n                    }\n                ]\n            },\n            \"RestartPolicy\": {\n                \"Name\": \"no\",\n                \"MaximumRetryCount\": 0\n            },\n            \"AutoRemove\": false,\n            \"VolumeDriver\": \"\",\n            \"VolumesFrom\": null,\n            \"ConsoleSize\": [\n                0,\n                0\n            ],\n            \"CapAdd\": null,\n            \"CapDrop\": null,\n            \"CgroupnsMode\": \"private\",\n            \"Dns\": null,\n            \"DnsOptions\": [],\n            \"DnsSearch\": [],\n            \"ExtraHosts\": null,\n            \"GroupAdd\": null,\n            \"IpcMode\": \"private\",\n            \"Cgroup\": \"\",\n            \"Links\": null,\n            \"OomScoreAdj\": 0,\n            \"PidMode\": \"\",\n            \"Privileged\": false,\n            \"PublishAllPorts\": false,\n            \"ReadonlyRootfs\": false,\n            \"SecurityOpt\": null,\n            \"UTSMode\": \"\",\n            \"UsernsMode\": \"\",\n            \"ShmSize\": 67108864,\n            \"Runtime\": \"runc\",\n            \"Isolation\": \"\",\n            \"CpuShares\": 0,\n            \"Memory\": 0,\n            \"NanoCpus\": 0,\n            \"CgroupParent\": \"\",\n            \"BlkioWeight\": 0,\n            \"BlkioWeightDevice\": [],\n            \"BlkioDeviceReadBps\": [],\n            \"BlkioDeviceWriteBps\": [],\n            \"BlkioDeviceReadIOps\": [],\n            \"BlkioDeviceWriteIOps\": [],\n            \"CpuPeriod\": 0,\n            \"CpuQuota\": 0,\n            \"CpuRealtimePeriod\": 0,\n            \"CpuRealtimeRuntime\": 0,\n            \"CpusetCpus\": \"\",\n            \"CpusetMems\": \"\",\n            \"Devices\": [],\n            \"DeviceCgroupRules\": null,\n            \"DeviceRequests\": null,\n            \"MemoryReservation\": 0,\n            \"MemorySwap\": 0,\n            \"MemorySwappiness\": null,\n            \"OomKillDisable\": null,\n            \"PidsLimit\": null,\n            \"Ulimits\": [],\n            \"CpuCount\": 0,\n            \"CpuPercent\": 0,\n            \"IOMaximumIOps\": 0,\n            \"IOMaximumBandwidth\": 0,\n            \"MaskedPaths\": [\n                \"/proc/acpi\",\n                \"/proc/asound\",\n                \"/proc/interrupts\",\n                \"/proc/kcore\",\n                \"/proc/keys\",\n                \"/proc/latency_stats\",\n                \"/proc/sched_debug\",\n                \"/proc/scsi\",\n                \"/proc/timer_list\",\n                \"/proc/timer_stats\",\n                \"/sys/devices/virtual/powercap\",\n                \"/sys/firmware\"\n            ],\n            \"ReadonlyPaths\": [\n                \"/proc/bus\",\n                \"/proc/fs\",\n                \"/proc/irq\",\n                \"/proc/sys\",\n                \"/proc/sysrq-trigger\"\n            ]\n        },\n        \"Storage\": {\n            \"RootFS\": {\n                \"Snapshot\": {\n                    \"Name\": \"overlayfs\"\n                }\n            }\n        },\n        \"Mounts\": [\n            {\n                \"Type\": \"volume\",\n                \"Name\": \"1e6c5835c8f903cced71dc70a20ff91109b11c7b4a5ae698fea98467e5f19950\",\n                \"Source\": \"/var/lib/docker/volumes/1e6c5835c8f903cced71dc70a20ff91109b11c7b4a5ae698fea98467e5f19950/_data\",\n                \"Destination\": \"/var/lib/postgresql/data\",\n                \"Driver\": \"local\",\n                \"Mode\": \"\",\n                \"RW\": true,\n                \"Propagation\": \"\"\n            }\n        ],\n        \"Config\": {\n            \"Hostname\": \"2f98d352570f\",\n            \"Domainname\": \"\",\n            \"User\": \"\",\n            \"AttachStdin\": false,\n            \"AttachStdout\": false,\n            \"AttachStderr\": false,\n            \"ExposedPorts\": {\n                \"5432/tcp\": {}\n            },\n            \"Tty\": false,\n            \"OpenStdin\": false,\n            \"StdinOnce\": false,\n            \"Env\": [\n                \"POSTGRES_HOST_AUTH_METHOD=trust\",\n                \"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/10/bin\",\n                \"GOSU_VERSION=1.14\",\n                \"LANG=en_US.utf8\",\n                \"PG_MAJOR=10\",\n                \"PG_VERSION=10.21-1.pgdg90+1\",\n                \"PGDATA=/var/lib/postgresql/data\"\n            ],\n            \"Cmd\": [\n                \"postgres\",\n                \"-c\",\n                \"listen_addresses=*\",\n                \"-c\",\n                \"log_destination=csvlog\",\n                \"-c\",\n                \"logging_collector=on\",\n                \"-c\",\n                \"log_directory=log\",\n                \"-c\",\n                \"log_filename=postgresql-%Y%m%d%H%M%S.log\",\n                \"-c\",\n                \"log_min_messages=error\",\n                \"-c\",\n                \"log_min_error_statement=error\",\n                \"-c\",\n                \"log_error_verbosity=verbose\",\n                \"-c\",\n                \"wal_level=logical\",\n                \"-c\",\n                \"max_wal_senders=10\",\n                \"-c\",\n                \"max_replication_slots=10\"\n            ],\n            \"Image\": \"postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc\",\n            \"Volumes\": {\n                \"/var/lib/postgresql/data\": {}\n            },\n            \"WorkingDir\": \"\",\n            \"Entrypoint\": [\n                \"docker-entrypoint.sh\"\n            ],\n            \"Labels\": {},\n            \"StopSignal\": \"SIGINT\",\n            \"StopTimeout\": 1\n        },\n        \"NetworkSettings\": {\n            \"SandboxID\": \"5d8478ab84f65a6c2dc840471a1befcdc3ead2876599f0b0c4dcd71c38a4ffc0\",\n            \"SandboxKey\": \"/var/run/docker/netns/5d8478ab84f6\",\n            \"Ports\": {\n                \"5432/tcp\": [\n                    {\n                        \"HostIp\": \"127.0.0.1\",\n                        \"HostPort\": \"62377\"\n                    }\n                ]\n            },\n            \"Networks\": {\n                \"bridge\": {\n                    \"IPAMConfig\": null,\n                    \"Links\": null,\n                    \"Aliases\": null,\n                    \"DriverOpts\": null,\n                    \"GwPriority\": 0,\n                    \"NetworkID\": \"aed51554f8cd8bac69ecd4f073e41e147fda7b458e9d95be2af472651f2e825c\",\n                    \"EndpointID\": \"8a98a65ddf0f4eae760b2f4f509fb09579287cb9a351bdeda35601de7ded7f74\",\n                    \"Gateway\": \"172.17.0.1\",\n                    \"IPAddress\": \"172.17.0.53\",\n                    \"MacAddress\": \"32:88:0b:fd:4c:0e\",\n                    \"IPPrefixLen\": 16,\n                    \"IPv6Gateway\": \"\",\n                    \"GlobalIPv6Address\": \"\",\n                    \"GlobalIPv6PrefixLen\": 0,\n                    \"DNSNames\": null\n                }\n            }\n        },\n        \"ImageManifestDescriptor\": {\n            \"mediaType\": \"application/vnd.docker.distribution.manifest.v2+json\",\n            \"digest\": \"sha256:52aada7978f1eef3b6b52a51afb7a3defd69254d00c946cb90d2ceb32b8ffce7\",\n            \"size\": 3246,\n            \"platform\": {\n                \"architecture\": \"arm64\",\n                \"os\": \"linux\",\n                \"variant\": \"v8\"\n            }\n        }\n    }\n]\n"
              }
            }
          },
          "limits": "Disposable runner-owned target only; this is a bounded mechanism case, not a guarantee for every client or network path.",
          "image": "postgres:10"
        }
      ]
    },
    {
      "sqlstate": "08003",
      "condition_name": "connection_does_not_exist",
      "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",
          "tag": "REL_18_6"
        },
        {
          "id": "src.calls.REL_10_23",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "00d16d3eb01b71ccf1b245c8f3102f9d0ec9f36fb02777b8dd1b99fcb263040c",
          "tag": "REL_10_23"
        },
        {
          "id": "src.dblink-not-available.18.6",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "contrib/dblink/dblink.c",
          "sha256": "e4cfaec3a0a1e5d23fded584725e0f6cf7a17321ad99e5fe046e8b7f97416f15",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/contrib/dblink/dblink.c#L193-L195"
        },
        {
          "id": "src.dblink-not-available.10.23",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_10_23",
          "commit": "02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4",
          "path": "contrib/dblink/dblink.c",
          "sha256": "2d542cc722ba361bd59990aaed7fe7c0f8e147155df5e5fcd56ee03b4dd27c61",
          "url": "https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/contrib/dblink/dblink.c#L171-L173"
        },
        {
          "id": "doc.transactions.18",
          "kind": "upstream_source",
          "source_role": "transaction_recovery_documentation",
          "tag": "PG18-docs",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "doc/src/sgml/xact.sgml",
          "sha256": "b48fbe8bd02ce3d1181a350c88c8baa6e11c73edc90a936e77b180daef328c5c",
          "url": "https://www.postgresql.org/docs/18/tutorial-transactions.html"
        },
        {
          "id": "manifest.08003",
          "kind": "local_artifact",
          "source_role": "case_manifest",
          "sha256": "8ea12e9b1ce6097559da1eb41f880d946356274d5147465ea33b96190104a8ae",
          "tag": "workspace"
        },
        {
          "id": "snippet-registry.08003",
          "kind": "local_artifact",
          "source_role": "snippet_registry",
          "sha256": "a5f2c89616e3b311eec9b54a7d2a5c454bfad02b53896f3596bf5f963354d4a0",
          "tag": "workspace"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "statement": "08003 is the connection_does_not_exist condition in Class 08.",
          "method": "Read the fixed errcodes.txt definition and the locked catalogue metadata.",
          "limits": "Directory identity does not identify every backend or client path.",
          "sources": [
            "src.errcodes.18.6"
          ]
        },
        {
          "id": "mechanism.backend-path",
          "statement": "The fixed source paths associated with 08003 report the condition in the mechanism selected for this page.",
          "method": "Trace the resolved source call records at the fixed release commits and compare their dynamic message fields.",
          "limits": "Other calls can retain the same SQLSTATE with different context or text.",
          "sources": [
            "src.dblink-not-available.18.6",
            "src.dblink-not-available.10.23"
          ]
        },
        {
          "id": "runtime.representative-case",
          "statement": "The selected dblink_missing_connection case passed with the expected structured diagnostics, recovery assertions, and cleanup on PostgreSQL 18.6 and 10.21.",
          "method": "Run the shared registry case on isolated runner-owned latest and PG10 targets; inspect the final summaries and raw results.",
          "limits": "This covers the selected case and versions only; it does not generalize to every driver, proxy, or intermediate release.",
          "sources": [
            "snippet-registry.08003",
            "manifest.08003"
          ],
          "runtime": [
            "runtime.08003-dblink-repair-latest.latest",
            "runtime.08003-dblink-repair-pg10c.pg10"
          ]
        },
        {
          "id": "transaction-boundary",
          "statement": "The selected dblink handle lookup is an ERROR observed under autocommit, where the owner session remains IDLE; inside an explicit transaction, the same ERROR follows PostgreSQL's rollback or intentional-savepoint recovery boundary.",
          "method": "Combine the fixed dblink handle lookup source path with the official transaction and savepoint recovery contract.",
          "limits": "No explicit-transaction dblink runtime was selected in this batch; the transaction guidance is the general ERROR boundary.",
          "sources": [
            "src.dblink-not-available.18.6",
            "doc.transactions.18"
          ]
        },
        {
          "id": "versions.catalogue-boundary",
          "statement": "The locked catalogue records 08003 in the listed snapshots; the runtime comparison here is limited to PostgreSQL 18.6 and 10.21.",
          "method": "Read the generated facts block and locked manifest, then compare the selected target summaries.",
          "limits": "Presence in a definition file is not an exact behavioral introduction; the two runtime targets do not prove all middle versions.",
          "sources": [
            "src.errcodes.18.6",
            "src.calls.REL_18_6",
            "src.calls.REL_10_23"
          ]
        }
      ],
      "messages": [
        {
          "id": "message.dblink-handle",
          "sqlstate": "08003",
          "severity_source": "explicit ERROR",
          "sources": [
            "src.dblink-not-available.18.6",
            "src.dblink-not-available.10.23"
          ],
          "primary_template": "connection \"%s\" not available"
        }
      ],
      "usage_evidence": [
        {
          "scope": "SQLSTATE directory identity",
          "status": "definition_only",
          "evidence_ids": [
            "identity.class-and-condition",
            "src.errcodes.18.6"
          ]
        },
        {
          "scope": "Selected backend mechanism",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "mechanism.backend-path",
            "src.dblink-not-available.18.6",
            "src.dblink-not-available.10.23",
            "transaction-boundary",
            "doc.transactions.18"
          ]
        },
        {
          "scope": "Observed dblink_missing_connection on isolated targets",
          "status": "observed_runtime",
          "evidence_ids": [
            "runtime.representative-case",
            "snippet-registry.08003",
            "runtime.08003-dblink-repair-latest.latest",
            "runtime.08003-dblink-repair-pg10c.pg10"
          ]
        },
        {
          "scope": "Locked release presence and bounded version comparison",
          "status": "definition_only",
          "evidence_ids": [
            "versions.catalogue-boundary",
            "src.errcodes.18.6"
          ]
        }
      ],
      "runtime": [
        {
          "id": "runtime.08003-dblink-repair-latest.latest",
          "kind": "runtime_observation",
          "run_id": "08003-dblink-repair-latest",
          "target": "latest",
          "status": "passed",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "cases": [
            "dblink_missing_connection"
          ],
          "summary_sha256": "6700d31ff0162861b00242d054665fc0644487d1f78eb3b7c663c1e95b077046",
          "raw_sha256": "170d804e9fc4fe7b1ef2d7cf85ebb16c451144178d275b8bd8720934f7c584b5",
          "case_manifest_sha256": "8ea12e9b1ce6097559da1eb41f880d946356274d5147465ea33b96190104a8ae",
          "snippet_registry": {
            "sha256": "a5f2c89616e3b311eec9b54a7d2a5c454bfad02b53896f3596bf5f963354d4a0"
          },
          "environment": {
            "target_kind": "latest",
            "server_version": "18.6 (Homebrew)",
            "server_version_num": "180006",
            "machine": "arm64",
            "platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O",
            "libpq_version": "18.6",
            "psycopg_version": "3.3.5",
            "python_version": "3.14.6 (main, Jun 10 2026, 10:03:53) [Clang 21.0.0 (clang-2100.0.123.102)]",
            "locale": "en_US.UTF-8",
            "lc_messages": "C",
            "log_destination": "csvlog,jsonlog"
          },
          "observed": {
            "connection_autocommit": true,
            "connection_scope": "server-side dblink name lookup followed by a real runner-owned dblink handle",
            "dblink_repair": {
              "disconnected": "OK",
              "opened": "OK",
              "remote_probe": 1
            },
            "diagnostic": {
              "column_name": null,
              "constraint_name": null,
              "context": null,
              "datatype_name": null,
              "exception_type": "ConnectionDoesNotExist",
              "internal_position": null,
              "internal_query": null,
              "message_detail": null,
              "message_hint": null,
              "message_primary": "connection \"missing_remote\" not available",
              "schema_name": null,
              "severity": "ERROR",
              "severity_nonlocalized": "ERROR",
              "source_file": "dblink.c",
              "source_function": "dblink_conn_not_avail",
              "source_line": "195",
              "sqlstate": "08003",
              "statement_position": null,
              "table_name": null,
              "text": "connection \"missing_remote\" not available"
            },
            "probe": 1,
            "statuses": {
              "after_error": "IDLE",
              "final": "IDLE"
            }
          },
          "assertions": [
            {
              "expected": "08003",
              "name": "missing dblink connection SQLSTATE",
              "observed": "08003",
              "passed": true
            },
            {
              "expected": "connection not available",
              "name": "missing dblink connection diagnostic",
              "observed": "connection \"missing_remote\" not available",
              "passed": true
            },
            {
              "expected": "IDLE",
              "name": "lookup failure leaves session usable",
              "observed": "IDLE",
              "passed": true
            },
            {
              "expected": "OK and remote SELECT 1",
              "name": "missing handle path can open a real handle",
              "observed": {
                "open": "OK",
                "remote": 1
              },
              "passed": true
            },
            {
              "expected": "OK",
              "name": "real handle is disconnected",
              "observed": "OK",
              "passed": true
            },
            {
              "expected": "SELECT 1 and IDLE",
              "name": "owner session remains usable",
              "observed": {
                "probe": 1,
                "status": "IDLE"
              },
              "passed": true
            }
          ],
          "cleanup": {
            "case": {
              "errors": [],
              "passed": true
            },
            "target_stop": {
              "argv": [
                "/opt/homebrew/Cellar/postgresql@18/18.6/bin/pg_ctl",
                "-D",
                "<local runtime artifact>",
                "-m",
                "fast",
                "-w",
                "stop"
              ],
              "elapsed_seconds": 0.111,
              "returncode": 0,
              "stderr": "",
              "stdout": "waiting for server to shut down.... done\nserver stopped\n"
            }
          },
          "limits": "Disposable runner-owned target only; this is a bounded mechanism case, not a guarantee for every client or network path."
        },
        {
          "id": "runtime.08003-dblink-repair-pg10c.pg10",
          "kind": "runtime_observation",
          "run_id": "08003-dblink-repair-pg10c",
          "target": "pg10",
          "status": "passed",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "cases": [
            "dblink_missing_connection"
          ],
          "summary_sha256": "e0145f317869154f9641cbd77e935ed8a985716fdcdf889d0a0f5566de022ce7",
          "raw_sha256": "8484128ab10388de521a0dfab08f2313ec0f53d6ec447583f5fd3b8cd3a51fcf",
          "case_manifest_sha256": "8ea12e9b1ce6097559da1eb41f880d946356274d5147465ea33b96190104a8ae",
          "snippet_registry": {
            "sha256": "a5f2c89616e3b311eec9b54a7d2a5c454bfad02b53896f3596bf5f963354d4a0"
          },
          "environment": {
            "target_kind": "pg10",
            "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
            "server_version_num": "100021",
            "machine": "arm64",
            "platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O",
            "libpq_version": "18.6",
            "psycopg_version": "3.3.5",
            "python_version": "3.14.6 (main, Jun 10 2026, 10:03:53) [Clang 21.0.0 (clang-2100.0.123.102)]",
            "locale": "en_US.UTF-8",
            "lc_messages": "en_US.utf8",
            "log_destination": "csvlog"
          },
          "observed": {
            "connection_autocommit": true,
            "connection_scope": "server-side dblink name lookup followed by a real runner-owned dblink handle",
            "dblink_repair": {
              "disconnected": "OK",
              "opened": "OK",
              "remote_probe": 1
            },
            "diagnostic": {
              "column_name": null,
              "constraint_name": null,
              "context": null,
              "datatype_name": null,
              "exception_type": "ConnectionDoesNotExist",
              "internal_position": null,
              "internal_query": null,
              "message_detail": null,
              "message_hint": null,
              "message_primary": "connection \"missing_remote\" not available",
              "schema_name": null,
              "severity": "ERROR",
              "severity_nonlocalized": "ERROR",
              "source_file": "dblink.c",
              "source_function": "dblink_conn_not_avail",
              "source_line": "173",
              "sqlstate": "08003",
              "statement_position": null,
              "table_name": null,
              "text": "connection \"missing_remote\" not available"
            },
            "probe": 1,
            "statuses": {
              "after_error": "IDLE",
              "final": "IDLE"
            }
          },
          "assertions": [
            {
              "expected": "08003",
              "name": "missing dblink connection SQLSTATE",
              "observed": "08003",
              "passed": true
            },
            {
              "expected": "connection not available",
              "name": "missing dblink connection diagnostic",
              "observed": "connection \"missing_remote\" not available",
              "passed": true
            },
            {
              "expected": "IDLE",
              "name": "lookup failure leaves session usable",
              "observed": "IDLE",
              "passed": true
            },
            {
              "expected": "OK and remote SELECT 1",
              "name": "missing handle path can open a real handle",
              "observed": {
                "open": "OK",
                "remote": 1
              },
              "passed": true
            },
            {
              "expected": "OK",
              "name": "real handle is disconnected",
              "observed": "OK",
              "passed": true
            },
            {
              "expected": "SELECT 1 and IDLE",
              "name": "owner session remains usable",
              "observed": {
                "probe": 1,
                "status": "IDLE"
              },
              "passed": true
            }
          ],
          "cleanup": {
            "case": {
              "errors": [],
              "passed": true
            },
            "target_stop": {
              "cleanup": {
                "argv": [
                  "/usr/local/bin/docker",
                  "rm",
                  "-f",
                  "-v",
                  "sqlstate08003_08003dblinkrepairpg10c_pg10"
                ],
                "elapsed_seconds": 0.382,
                "returncode": 0,
                "stderr": "",
                "stdout": "sqlstate08003_08003dblinkrepairpg10c_pg10\n"
              },
              "inspect": {
                "argv": [
                  "/usr/local/bin/docker",
                  "inspect",
                  "sqlstate08003_08003dblinkrepairpg10c_pg10"
                ],
                "elapsed_seconds": 0.015,
                "returncode": 0,
                "stderr": "",
                "stdout": "[\n    {\n        \"Id\": \"025cd355a7e4c5c60fc61c525bcc661349a7eb300691a6ff57c2e9941b491026\",\n        \"Created\": \"2026-09-09T15:34:24.994177964Z\",\n        \"Path\": \"docker-entrypoint.sh\",\n        \"Args\": [\n            \"postgres\",\n            \"-c\",\n            \"listen_addresses=*\",\n            \"-c\",\n            \"log_destination=csvlog\",\n            \"-c\",\n            \"logging_collector=on\",\n            \"-c\",\n            \"log_directory=log\",\n            \"-c\",\n            \"log_filename=postgresql-%Y%m%d%H%M%S.log\",\n            \"-c\",\n            \"log_min_messages=error\",\n            \"-c\",\n            \"log_min_error_statement=error\",\n            \"-c\",\n            \"log_error_verbosity=verbose\",\n            \"-c\",\n            \"wal_level=logical\",\n            \"-c\",\n            \"max_wal_senders=10\",\n            \"-c\",\n            \"max_replication_slots=10\"\n        ],\n        \"State\": {\n            \"Status\": \"running\",\n            \"Running\": true,\n            \"Paused\": false,\n            \"Restarting\": false,\n            \"OOMKilled\": false,\n            \"Dead\": false,\n            \"Pid\": 57740,\n            \"ExitCode\": 0,\n            \"Error\": \"\",\n            \"StartedAt\": \"2026-09-09T15:34:25.105205547Z\",\n            \"FinishedAt\": \"0001-01-01T00:00:00Z\"\n        },\n        \"Image\": \"sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc\",\n        \"ResolvConfPath\": \"/var/lib/docker/containers/025cd355a7e4c5c60fc61c525bcc661349a7eb300691a6ff57c2e9941b491026/resolv.conf\",\n        \"HostnamePath\": \"/var/lib/docker/containers/025cd355a7e4c5c60fc61c525bcc661349a7eb300691a6ff57c2e9941b491026/hostname\",\n        \"HostsPath\": \"/var/lib/docker/containers/025cd355a7e4c5c60fc61c525bcc661349a7eb300691a6ff57c2e9941b491026/hosts\",\n        \"LogPath\": \"/var/lib/docker/containers/025cd355a7e4c5c60fc61c525bcc661349a7eb300691a6ff57c2e9941b491026/025cd355a7e4c5c60fc61c525bcc661349a7eb300691a6ff57c2e9941b491026-json.log\",\n        \"Name\": \"/sqlstate08003_08003dblinkrepairpg10c_pg10\",\n        \"RestartCount\": 0,\n        \"Driver\": \"overlayfs\",\n        \"Platform\": \"linux\",\n        \"MountLabel\": \"\",\n        \"ProcessLabel\": \"\",\n        \"AppArmorProfile\": \"\",\n        \"ExecIDs\": null,\n        \"HostConfig\": {\n            \"Binds\": null,\n            \"ContainerIDFile\": \"\",\n            \"LogConfig\": {\n                \"Type\": \"json-file\",\n                \"Config\": {}\n            },\n            \"NetworkMode\": \"bridge\",\n            \"PortBindings\": {\n                \"5432/tcp\": [\n                    {\n                        \"HostIp\": \"127.0.0.1\",\n                        \"HostPort\": \"\"\n                    }\n                ]\n            },\n            \"RestartPolicy\": {\n                \"Name\": \"no\",\n                \"MaximumRetryCount\": 0\n            },\n            \"AutoRemove\": false,\n            \"VolumeDriver\": \"\",\n            \"VolumesFrom\": null,\n            \"ConsoleSize\": [\n                0,\n                0\n            ],\n            \"CapAdd\": null,\n            \"CapDrop\": null,\n            \"CgroupnsMode\": \"private\",\n            \"Dns\": null,\n            \"DnsOptions\": [],\n            \"DnsSearch\": [],\n            \"ExtraHosts\": null,\n            \"GroupAdd\": null,\n            \"IpcMode\": \"private\",\n            \"Cgroup\": \"\",\n            \"Links\": null,\n            \"OomScoreAdj\": 0,\n            \"PidMode\": \"\",\n            \"Privileged\": false,\n            \"PublishAllPorts\": false,\n            \"ReadonlyRootfs\": false,\n            \"SecurityOpt\": null,\n            \"UTSMode\": \"\",\n            \"UsernsMode\": \"\",\n            \"ShmSize\": 67108864,\n            \"Runtime\": \"runc\",\n            \"Isolation\": \"\",\n            \"CpuShares\": 0,\n            \"Memory\": 0,\n            \"NanoCpus\": 0,\n            \"CgroupParent\": \"\",\n            \"BlkioWeight\": 0,\n            \"BlkioWeightDevice\": [],\n            \"BlkioDeviceReadBps\": [],\n            \"BlkioDeviceWriteBps\": [],\n            \"BlkioDeviceReadIOps\": [],\n            \"BlkioDeviceWriteIOps\": [],\n            \"CpuPeriod\": 0,\n            \"CpuQuota\": 0,\n            \"CpuRealtimePeriod\": 0,\n            \"CpuRealtimeRuntime\": 0,\n            \"CpusetCpus\": \"\",\n            \"CpusetMems\": \"\",\n            \"Devices\": [],\n            \"DeviceCgroupRules\": null,\n            \"DeviceRequests\": null,\n            \"MemoryReservation\": 0,\n            \"MemorySwap\": 0,\n            \"MemorySwappiness\": null,\n            \"OomKillDisable\": null,\n            \"PidsLimit\": null,\n            \"Ulimits\": [],\n            \"CpuCount\": 0,\n            \"CpuPercent\": 0,\n            \"IOMaximumIOps\": 0,\n            \"IOMaximumBandwidth\": 0,\n            \"MaskedPaths\": [\n                \"/proc/acpi\",\n                \"/proc/asound\",\n                \"/proc/interrupts\",\n                \"/proc/kcore\",\n                \"/proc/keys\",\n                \"/proc/latency_stats\",\n                \"/proc/sched_debug\",\n                \"/proc/scsi\",\n                \"/proc/timer_list\",\n                \"/proc/timer_stats\",\n                \"/sys/devices/virtual/powercap\",\n                \"/sys/firmware\"\n            ],\n            \"ReadonlyPaths\": [\n                \"/proc/bus\",\n                \"/proc/fs\",\n                \"/proc/irq\",\n                \"/proc/sys\",\n                \"/proc/sysrq-trigger\"\n            ]\n        },\n        \"Storage\": {\n            \"RootFS\": {\n                \"Snapshot\": {\n                    \"Name\": \"overlayfs\"\n                }\n            }\n        },\n        \"Mounts\": [\n            {\n                \"Type\": \"volume\",\n                \"Name\": \"3974c6b731a2f5565901139f85b1dcbc7c493ca42171e31dd5141547c819ec65\",\n                \"Source\": \"/var/lib/docker/volumes/3974c6b731a2f5565901139f85b1dcbc7c493ca42171e31dd5141547c819ec65/_data\",\n                \"Destination\": \"/var/lib/postgresql/data\",\n                \"Driver\": \"local\",\n                \"Mode\": \"\",\n                \"RW\": true,\n                \"Propagation\": \"\"\n            }\n        ],\n        \"Config\": {\n            \"Hostname\": \"025cd355a7e4\",\n            \"Domainname\": \"\",\n            \"User\": \"\",\n            \"AttachStdin\": false,\n            \"AttachStdout\": false,\n            \"AttachStderr\": false,\n            \"ExposedPorts\": {\n                \"5432/tcp\": {}\n            },\n            \"Tty\": false,\n            \"OpenStdin\": false,\n            \"StdinOnce\": false,\n            \"Env\": [\n                \"POSTGRES_HOST_AUTH_METHOD=trust\",\n                \"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/10/bin\",\n                \"GOSU_VERSION=1.14\",\n                \"LANG=en_US.utf8\",\n                \"PG_MAJOR=10\",\n                \"PG_VERSION=10.21-1.pgdg90+1\",\n                \"PGDATA=/var/lib/postgresql/data\"\n            ],\n            \"Cmd\": [\n                \"postgres\",\n                \"-c\",\n                \"listen_addresses=*\",\n                \"-c\",\n                \"log_destination=csvlog\",\n                \"-c\",\n                \"logging_collector=on\",\n                \"-c\",\n                \"log_directory=log\",\n                \"-c\",\n                \"log_filename=postgresql-%Y%m%d%H%M%S.log\",\n                \"-c\",\n                \"log_min_messages=error\",\n                \"-c\",\n                \"log_min_error_statement=error\",\n                \"-c\",\n                \"log_error_verbosity=verbose\",\n                \"-c\",\n                \"wal_level=logical\",\n                \"-c\",\n                \"max_wal_senders=10\",\n                \"-c\",\n                \"max_replication_slots=10\"\n            ],\n            \"Image\": \"postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc\",\n            \"Volumes\": {\n                \"/var/lib/postgresql/data\": {}\n            },\n            \"WorkingDir\": \"\",\n            \"Entrypoint\": [\n                \"docker-entrypoint.sh\"\n            ],\n            \"Labels\": {},\n            \"StopSignal\": \"SIGINT\",\n            \"StopTimeout\": 1\n        },\n        \"NetworkSettings\": {\n            \"SandboxID\": \"706850bbbb1bb9a05c398b4856d1156fcb710a9f2c1001ffb59b6fddc585fbe4\",\n            \"SandboxKey\": \"/var/run/docker/netns/706850bbbb1b\",\n            \"Ports\": {\n                \"5432/tcp\": [\n                    {\n                        \"HostIp\": \"127.0.0.1\",\n                        \"HostPort\": \"62378\"\n                    }\n                ]\n            },\n            \"Networks\": {\n                \"bridge\": {\n                    \"IPAMConfig\": null,\n                    \"Links\": null,\n                    \"Aliases\": null,\n                    \"DriverOpts\": null,\n                    \"GwPriority\": 0,\n                    \"NetworkID\": \"aed51554f8cd8bac69ecd4f073e41e147fda7b458e9d95be2af472651f2e825c\",\n                    \"EndpointID\": \"c87448deaf1d0ca8886a7d07b083a3824850a8f90af3eb8bdb2c91978786da6b\",\n                    \"Gateway\": \"172.17.0.1\",\n                    \"IPAddress\": \"172.17.0.57\",\n                    \"MacAddress\": \"d2:ac:2a:95:f4:9b\",\n                    \"IPPrefixLen\": 16,\n                    \"IPv6Gateway\": \"\",\n                    \"GlobalIPv6Address\": \"\",\n                    \"GlobalIPv6PrefixLen\": 0,\n                    \"DNSNames\": null\n                }\n            }\n        },\n        \"ImageManifestDescriptor\": {\n            \"mediaType\": \"application/vnd.docker.distribution.manifest.v2+json\",\n            \"digest\": \"sha256:52aada7978f1eef3b6b52a51afb7a3defd69254d00c946cb90d2ceb32b8ffce7\",\n            \"size\": 3246,\n            \"platform\": {\n                \"architecture\": \"arm64\",\n                \"os\": \"linux\",\n                \"variant\": \"v8\"\n            }\n        }\n    }\n]\n"
              }
            }
          },
          "limits": "Disposable runner-owned target only; this is a bounded mechanism case, not a guarantee for every client or network path.",
          "image": "postgres:10"
        }
      ]
    },
    {
      "sqlstate": "08004",
      "condition_name": "sqlserver_rejected_establishment_of_sqlconnection",
      "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",
          "tag": "REL_18_6"
        },
        {
          "id": "src.calls.REL_10_23",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "00d16d3eb01b71ccf1b245c8f3102f9d0ec9f36fb02777b8dd1b99fcb263040c",
          "tag": "REL_10_23"
        },
        {
          "id": "manifest.08004",
          "kind": "local_artifact",
          "source_role": "case_manifest",
          "sha256": "533ef5ec3f8813715da35f9daff8dcdd515e7ea1dcfe3ddb065993519c67b819",
          "tag": "workspace"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "statement": "08004 is the sqlserver_rejected_establishment_of_sqlconnection condition in Class 08.",
          "method": "Read the fixed errcodes.txt definition and the locked catalogue metadata.",
          "limits": "Directory identity does not identify every backend or client path.",
          "sources": [
            "src.errcodes.18.6"
          ]
        },
        {
          "id": "mechanism.source-boundary",
          "statement": "The fixed core scans contain no resolved PostgreSQL throw site for 08004. Keep the SQL-standard definition separate from concrete startup codes such as 28000 and 28P01.",
          "method": "Trace the fixed REL_18_6 and REL_10_23 source call scans and the recorded source paths.",
          "limits": "This is a bounded source claim; it is not an observed natural SQLSTATE case.",
          "sources": [
            "src.calls.REL_18_6",
            "src.calls.REL_10_23"
          ]
        },
        {
          "id": "versions.catalogue-boundary",
          "statement": "The locked catalogue records 08004 in the listed snapshots; this definition/source-only page has no selected natural runtime and only compares the fixed catalogue and bounded REL_18_6/REL_10_23 call-scan records.",
          "method": "Read the generated facts block and bounded fixed source/call-scan records; no runtime target summaries are used.",
          "limits": "Presence in a definition file is not an exact behavioral introduction; this scope establishes no resolved fixed core emitter or universal message template and does not prove every intermediate release.",
          "sources": [
            "src.errcodes.18.6",
            "src.calls.REL_18_6",
            "src.calls.REL_10_23"
          ]
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "SQLSTATE directory identity",
          "status": "definition_only",
          "evidence_ids": [
            "identity.class-and-condition",
            "src.errcodes.18.6"
          ]
        },
        {
          "scope": "Fixed source or definition boundary",
          "status": "definition_only",
          "evidence_ids": [
            "mechanism.source-boundary",
            "src.calls.REL_18_6",
            "src.calls.REL_10_23"
          ]
        },
        {
          "scope": "Locked release presence and bounded version comparison",
          "status": "definition_only",
          "evidence_ids": [
            "versions.catalogue-boundary",
            "src.errcodes.18.6"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "08006",
      "condition_name": "connection_failure",
      "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",
          "tag": "REL_18_6"
        },
        {
          "id": "src.calls.REL_10_23",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "00d16d3eb01b71ccf1b245c8f3102f9d0ec9f36fb02777b8dd1b99fcb263040c",
          "tag": "REL_10_23"
        },
        {
          "id": "src.fdw-connection-failure.18.6",
          "kind": "upstream_source",
          "source_role": "source_path",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "contrib/postgres_fdw/connection.c",
          "sha256": "67fc002657f2c7df6d93cbf99c933cbc103907d1857ed77aedbb85099ea4dda0",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/contrib/postgres_fdw/connection.c#L1462-L1464"
        },
        {
          "id": "src.copy-connection-failure.10.23",
          "kind": "upstream_source",
          "source_role": "source_path",
          "tag": "REL_10_23",
          "commit": "02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4",
          "path": "src/backend/commands/copy.c",
          "sha256": "0edb032be1ce8d8c90efc28e504aa9e298a2cd26cd374c85da6da0e33ed0915c",
          "url": "https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/commands/copy.c#L525-L527"
        },
        {
          "id": "manifest.08006",
          "kind": "local_artifact",
          "source_role": "case_manifest",
          "sha256": "205dd83742e554dc0ceb466ed9acd023f538785306e2a2b29a7ec3842a8f50af",
          "tag": "workspace"
        },
        {
          "id": "src.copy-client-eof.18.6",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/copyfromparse.c",
          "sha256": "bc42754023579cd782a3cb3f144ad2c2c3d3aa46119eb7567fcdb05f2d445571",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/copyfromparse.c#L276-L303"
        },
        {
          "id": "src.copy-client-eof.10.23",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_10_23",
          "commit": "02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4",
          "path": "src/backend/commands/copy.c",
          "sha256": "0edb032be1ce8d8c90efc28e504aa9e298a2cd26cd374c85da6da0e33ed0915c",
          "url": "https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/commands/copy.c#L587-L614"
        },
        {
          "id": "doc.transactions.18",
          "kind": "upstream_source",
          "source_role": "transaction_recovery_documentation",
          "tag": "PG18-docs",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "doc/src/sgml/xact.sgml",
          "sha256": "b48fbe8bd02ce3d1181a350c88c8baa6e11c73edc90a936e77b180daef328c5c",
          "url": "https://www.postgresql.org/docs/18/tutorial-transactions.html"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "statement": "08006 is the connection_failure condition in Class 08.",
          "method": "Read the fixed errcodes.txt definition and the locked catalogue metadata.",
          "limits": "Directory identity does not identify every backend or client path.",
          "sources": [
            "src.errcodes.18.6"
          ]
        },
        {
          "id": "mechanism.source-boundary",
          "statement": "The fixed source paths resolve 08006 to distinct established-connection failure branches: postgres_fdw cancel warnings, a COPY-to-stdout FATAL in REL_10_23, and COPY client-EOF ERROR paths in REL_18_6 and REL_10_23. The exact diagnostic and severity depend on where the connection loss is detected.",
          "method": "Trace the fixed REL_18_6 and REL_10_23 source call scans and the recorded source paths.",
          "limits": "This is a bounded source claim; this batch has no selected natural 08006 runtime, and it does not claim that an ordinary client socket failure exposes this SQLSTATE.",
          "sources": [
            "src.fdw-connection-failure.18.6",
            "src.copy-connection-failure.10.23",
            "src.copy-client-eof.18.6",
            "src.copy-client-eof.10.23"
          ]
        },
        {
          "id": "recovery-boundary",
          "statement": "The fixed 08006 variants have different recovery contracts: the COPY client-EOF ERROR detects that the triggering client socket is already at EOF and therefore does not establish a reusable session for sending ROLLBACK; an independently still-connected ERROR can require rollback or savepoint recovery, while FATAL ends the backend; a client EOF without an ErrorResponse may expose no SQLSTATE.",
          "method": "Combine the COPY client-EOF source branch, recorded source severities, and the official transaction and savepoint recovery contract.",
          "limits": "This is a source-backed boundary; the COPY EOF branch says nothing about reusing the already-lost client socket, and this batch selected no natural 08006 runtime or ordinary socket failure.",
          "sources": [
            "mechanism.source-boundary",
            "doc.transactions.18"
          ]
        },
        {
          "id": "versions.catalogue-boundary",
          "statement": "The locked catalogue records 08006 in the listed snapshots; this page compares only the fixed REL_18_6 and REL_10_23 source paths and has no selected natural runtime.",
          "method": "Read the generated facts block and fixed source records; no runtime result is used for this source-only page.",
          "limits": "Presence in a definition file is not an exact behavioral introduction, and the fixed source paths do not prove every intermediate release or socket failure.",
          "sources": [
            "src.errcodes.18.6",
            "src.copy-client-eof.18.6",
            "src.copy-client-eof.10.23"
          ]
        }
      ],
      "messages": [
        {
          "id": "message.fdw-cancel-send",
          "sqlstate": "08006",
          "severity_source": "explicit WARNING",
          "sources": [
            "src.fdw-connection-failure.18.6"
          ],
          "primary_template": "could not send cancel request: %s",
          "limits": "The %s value is the dynamic libpq/cancel error text."
        },
        {
          "id": "message.fdw-cancel-result",
          "sqlstate": "08006",
          "severity_source": "explicit WARNING",
          "sources": [
            "src.fdw-connection-failure.18.6"
          ],
          "primary_template": "could not get result of cancel request: %s",
          "limits": "The %s value is the dynamic error text returned while reading the cancel result; the fixed source has more than one call site."
        },
        {
          "id": "message.copy-connection-lost",
          "sqlstate": "08006",
          "severity_source": "explicit FATAL",
          "sources": [
            "src.copy-connection-failure.10.23"
          ],
          "primary_template": "connection lost during COPY to stdout",
          "limits": "This exact fixed branch is recorded from REL_10_23; the page does not generalize it to every COPY direction or release."
        },
        {
          "id": "message.copy-client-eof-open-tx",
          "sqlstate": "08006",
          "severity_source": "explicit ERROR",
          "sources": [
            "src.copy-client-eof.18.6",
            "src.copy-client-eof.10.23"
          ],
          "primary_template": "unexpected EOF on client connection with an open transaction",
          "limits": "The fixed COPY client-EOF path reports this when an open transaction is present; the source confirms the branch, not a selected natural run in this batch."
        }
      ],
      "usage_evidence": [
        {
          "scope": "SQLSTATE directory identity",
          "status": "definition_only",
          "evidence_ids": [
            "identity.class-and-condition",
            "src.errcodes.18.6"
          ]
        },
        {
          "scope": "Fixed source or definition boundary",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "mechanism.source-boundary",
            "src.fdw-connection-failure.18.6",
            "src.copy-connection-failure.10.23",
            "src.copy-client-eof.18.6",
            "src.copy-client-eof.10.23",
            "recovery-boundary",
            "doc.transactions.18"
          ]
        },
        {
          "scope": "Locked release presence and bounded version comparison",
          "status": "definition_only",
          "evidence_ids": [
            "versions.catalogue-boundary",
            "src.errcodes.18.6"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "08007",
      "condition_name": "transaction_resolution_unknown",
      "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",
          "tag": "REL_18_6"
        },
        {
          "id": "src.calls.REL_10_23",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "00d16d3eb01b71ccf1b245c8f3102f9d0ec9f36fb02777b8dd1b99fcb263040c",
          "tag": "REL_10_23"
        },
        {
          "id": "manifest.08007",
          "kind": "local_artifact",
          "source_role": "case_manifest",
          "sha256": "a3415a0f0f518e59cd08d86d05c21b75c2926f8bb884d2ae5e212aefa1b98f21",
          "tag": "workspace"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "statement": "08007 is the transaction_resolution_unknown condition in Class 08.",
          "method": "Read the fixed errcodes.txt definition and the locked catalogue metadata.",
          "limits": "Directory identity does not identify every backend or client path.",
          "sources": [
            "src.errcodes.18.6"
          ]
        },
        {
          "id": "mechanism.source-boundary",
          "statement": "The fixed core scans contain no resolved PostgreSQL throw site for 08007. A client that cannot learn the result of COMMIT is a reconciliation problem, not proof of this server SQLSTATE.",
          "method": "Trace the fixed REL_18_6 and REL_10_23 source call scans and the recorded source paths.",
          "limits": "This is a bounded source claim; it is not an observed natural SQLSTATE case.",
          "sources": [
            "src.calls.REL_18_6",
            "src.calls.REL_10_23"
          ]
        },
        {
          "id": "versions.catalogue-boundary",
          "statement": "The locked catalogue records 08007 in the listed snapshots; this definition/source-only page has no selected natural runtime and only compares the fixed catalogue and bounded REL_18_6/REL_10_23 call-scan records.",
          "method": "Read the generated facts block and bounded fixed source/call-scan records; no runtime target summaries are used.",
          "limits": "Presence in a definition file is not an exact behavioral introduction; this scope establishes no resolved fixed core emitter or universal message template and does not prove every intermediate release.",
          "sources": [
            "src.errcodes.18.6",
            "src.calls.REL_18_6",
            "src.calls.REL_10_23"
          ]
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "SQLSTATE directory identity",
          "status": "definition_only",
          "evidence_ids": [
            "identity.class-and-condition",
            "src.errcodes.18.6"
          ]
        },
        {
          "scope": "Fixed source or definition boundary",
          "status": "definition_only",
          "evidence_ids": [
            "mechanism.source-boundary",
            "src.calls.REL_18_6",
            "src.calls.REL_10_23"
          ]
        },
        {
          "scope": "Locked release presence and bounded version comparison",
          "status": "definition_only",
          "evidence_ids": [
            "versions.catalogue-boundary",
            "src.errcodes.18.6"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "08P01",
      "condition_name": "protocol_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",
          "tag": "REL_18_6"
        },
        {
          "id": "src.calls.REL_10_23",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "00d16d3eb01b71ccf1b245c8f3102f9d0ec9f36fb02777b8dd1b99fcb263040c",
          "tag": "REL_10_23"
        },
        {
          "id": "src.protocol-invalid-frontend.18.6",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/tcop/postgres.c",
          "sha256": "9fb62275b1badf94d01ab351337b60410cd9b3ab1fe63fa9f23d6d2185a21061",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/tcop/postgres.c#L454-L456"
        },
        {
          "id": "src.protocol-invalid-frontend.10.23",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_10_23",
          "commit": "02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4",
          "path": "src/backend/tcop/postgres.c",
          "sha256": "badfe30749794afa80a799dcdbd142fd4e4732ac1c913002d365549ae5313497",
          "url": "https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/tcop/postgres.c#L430-L432"
        },
        {
          "id": "src.postgres-bind.10.23",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_10_23",
          "commit": "02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4",
          "path": "src/backend/tcop/postgres.c",
          "sha256": "badfe30749794afa80a799dcdbd142fd4e4732ac1c913002d365549ae5313497",
          "url": "https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/tcop/postgres.c#L1483-L1580"
        },
        {
          "id": "src.pqformat.10.23",
          "kind": "upstream_source",
          "source_role": "protocol_parser",
          "tag": "REL_10_23",
          "commit": "02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4",
          "path": "src/backend/libpq/pqformat.c",
          "sha256": "637923dbf2b9d9a0610350784f3b1d7d36a545cd8a6bd2cbe6272d9549873a91",
          "url": "https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/libpq/pqformat.c#L432-L682"
        },
        {
          "id": "src.postgres-sync.10.23",
          "kind": "upstream_source",
          "source_role": "protocol_flow",
          "tag": "REL_10_23",
          "commit": "02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4",
          "path": "src/backend/tcop/postgres.c",
          "sha256": "badfe30749794afa80a799dcdbd142fd4e4732ac1c913002d365549ae5313497",
          "url": "https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/tcop/postgres.c#L3863-L3980"
        },
        {
          "id": "doc.protocol.18",
          "kind": "upstream_source",
          "source_role": "protocol_error_documentation",
          "tag": "PG18-docs",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "doc/src/sgml/protocol.sgml",
          "sha256": "745339e07ebbc2bb67d98b258e25772ada644ef26011e3cd6b3fcbb435235f89",
          "url": "https://www.postgresql.org/docs/18/protocol-error-fields.html"
        },
        {
          "id": "manifest.08P01",
          "kind": "local_artifact",
          "source_role": "case_manifest",
          "sha256": "ff8ea1b7c0555be091611aff9149037af8d78ab3abefb82a3954e42b646da437",
          "tag": "workspace"
        },
        {
          "id": "snippet-registry.08P01",
          "kind": "local_artifact",
          "source_role": "snippet_registry",
          "sha256": "8fad2a3b728b304d1a81f48779c44eae892da89542ba9fb1a5cb93669bf3e90f",
          "tag": "workspace"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "statement": "08P01 is the protocol_violation condition in Class 08.",
          "method": "Read the fixed errcodes.txt definition and the locked catalogue metadata.",
          "limits": "Directory identity does not identify every backend or client path.",
          "sources": [
            "src.errcodes.18.6"
          ]
        },
        {
          "id": "mechanism.backend-path",
          "statement": "The fixed source paths associated with 08P01 report the condition in the mechanism selected for this page.",
          "method": "Trace the resolved source call records at the fixed release commits and compare their dynamic message fields.",
          "limits": "Other calls can retain the same SQLSTATE with different context or text.",
          "sources": [
            "src.protocol-invalid-frontend.18.6",
            "src.protocol-invalid-frontend.10.23"
          ]
        },
        {
          "id": "extended-query-error-recovery",
          "statement": "The fixed extended-query Bind path reports ERROR 08P01 for parameter-format cardinality mismatches or a parameter count that differs from the prepared statement. After an ERROR while processing an extended-query message, the top-level loop skips messages until a protocol-valid Sync and then resumes the normal ReadyForQuery flow; this ERROR path is distinct from the unknown frontend type FATAL branch.",
          "method": "Read the complete REL_10_23 exec_bind_message branch and the surrounding top-level error-recovery and Sync handling in postgres.c.",
          "limits": "This is a REL_10_23 source contract; no Bind or Sync runtime was selected in this batch, and a driver must send a valid Sync rather than arbitrary bytes.",
          "sources": [
            "src.postgres-bind.10.23",
            "src.postgres-sync.10.23"
          ]
        },
        {
          "id": "message-buffer-boundary",
          "statement": "The fixed REL_10_23 pqformat readers report ERROR 08P01 for a depleted message, insufficient bytes, an invalid string, or trailing message data. These parser errors are source-only examples of protocol_violation and do not imply the unknown-message FATAL socket termination.",
          "method": "Read pq_getmsgbyte, pq_getmsgbytes/pq_copymsgbytes, pq_getmsgstring/pq_getmsgrawstring, and pq_getmsgend in the fixed pqformat.c source.",
          "limits": "The exact branch depends on the parser and message framing; this source scan does not select a natural runtime or generalize every malformed frame.",
          "sources": [
            "src.pqformat.10.23"
          ]
        },
        {
          "id": "runtime.representative-case",
          "statement": "The selected protocol_violation case passed with the expected structured diagnostics, recovery assertions, and cleanup on PostgreSQL 18.6 and 10.21.",
          "method": "Run the shared registry case on isolated runner-owned latest and PG10 targets; inspect the final summaries and raw results.",
          "limits": "This covers the selected case and versions only; it does not generalize to every driver, proxy, or intermediate release.",
          "sources": [
            "snippet-registry.08P01",
            "manifest.08P01"
          ],
          "runtime": [
            "runtime.08P01-eof-repair-latest.latest",
            "runtime.08P01-eof-repair-pg10.pg10"
          ]
        },
        {
          "id": "protocol-phase-boundary",
          "statement": "The selected unknown-message branch occurs after startup reaches ReadyForQuery, emits a FATAL ErrorResponse, and closes the affected socket; a pre-session protocol failure has no session transaction, and a client EOF without the server ErrorResponse is not sufficient to assign 08P01.",
          "method": "Compare the fixed postgres.c dispatch path, the protocol error-field contract, and the selected raw collector sequence.",
          "limits": "The selected runtime covers one unknown frontend byte and does not generalize to every framing, proxy, or startup failure.",
          "sources": [
            "src.protocol-invalid-frontend.18.6",
            "doc.protocol.18",
            "runtime.representative-case"
          ]
        },
        {
          "id": "versions.catalogue-boundary",
          "statement": "The locked catalogue records 08P01 in the listed snapshots; the runtime comparison here is limited to PostgreSQL 18.6 and 10.21.",
          "method": "Read the generated facts block and locked manifest, then compare the selected target summaries.",
          "limits": "Presence in a definition file is not an exact behavioral introduction; the two runtime targets do not prove all middle versions.",
          "sources": [
            "src.errcodes.18.6",
            "src.calls.REL_18_6",
            "src.calls.REL_10_23"
          ]
        }
      ],
      "messages": [
        {
          "id": "message.protocol-invalid-frontend",
          "sqlstate": "08P01",
          "severity_source": "explicit FATAL",
          "sources": [
            "src.protocol-invalid-frontend.18.6",
            "src.protocol-invalid-frontend.10.23"
          ],
          "primary_template": "invalid frontend message type %d"
        },
        {
          "id": "message.bind-format-count",
          "sqlstate": "08P01",
          "severity_source": "explicit ERROR",
          "sources": [
            "src.postgres-bind.10.23"
          ],
          "primary_template": "bind message has %d parameter formats but %d parameters"
        },
        {
          "id": "message.bind-parameter-count",
          "sqlstate": "08P01",
          "severity_source": "explicit ERROR",
          "sources": [
            "src.postgres-bind.10.23"
          ],
          "primary_template": "bind message supplies %d parameters, but prepared statement \"%s\" requires %d"
        },
        {
          "id": "message.no-data-left",
          "sqlstate": "08P01",
          "severity_source": "explicit ERROR",
          "sources": [
            "src.pqformat.10.23"
          ],
          "primary_template": "no data left in message"
        },
        {
          "id": "message.insufficient-data-left",
          "sqlstate": "08P01",
          "severity_source": "explicit ERROR",
          "sources": [
            "src.pqformat.10.23"
          ],
          "primary_template": "insufficient data left in message"
        },
        {
          "id": "message.invalid-string",
          "sqlstate": "08P01",
          "severity_source": "explicit ERROR",
          "sources": [
            "src.pqformat.10.23"
          ],
          "primary_template": "invalid string in message"
        },
        {
          "id": "message.invalid-format",
          "sqlstate": "08P01",
          "severity_source": "explicit ERROR",
          "sources": [
            "src.pqformat.10.23"
          ],
          "primary_template": "invalid message format"
        }
      ],
      "usage_evidence": [
        {
          "scope": "SQLSTATE directory identity",
          "status": "definition_only",
          "evidence_ids": [
            "identity.class-and-condition",
            "src.errcodes.18.6"
          ]
        },
        {
          "scope": "Selected backend mechanism",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "mechanism.backend-path",
            "src.protocol-invalid-frontend.18.6",
            "src.protocol-invalid-frontend.10.23",
            "protocol-phase-boundary",
            "doc.protocol.18"
          ]
        },
        {
          "scope": "Observed protocol_violation on isolated targets",
          "status": "observed_runtime",
          "evidence_ids": [
            "runtime.representative-case",
            "snippet-registry.08P01",
            "runtime.08P01-eof-repair-latest.latest",
            "runtime.08P01-eof-repair-pg10.pg10"
          ]
        },
        {
          "scope": "Locked release presence and bounded version comparison",
          "status": "definition_only",
          "evidence_ids": [
            "versions.catalogue-boundary",
            "src.errcodes.18.6"
          ]
        }
      ],
      "runtime": [
        {
          "id": "runtime.08P01-eof-repair-latest.latest",
          "kind": "runtime_observation",
          "run_id": "08P01-eof-repair-latest",
          "target": "latest",
          "status": "passed",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "cases": [
            "protocol_violation"
          ],
          "summary_sha256": "092ffb28a00d072464781f159a4046646f4de9fa377c7733d4f0b6d6d36e6f27",
          "raw_sha256": "6364ec948d1e14121ac160f82f7097d5412eae6f39f434f3a9a87c0f83f37125",
          "case_manifest_sha256": "ff8ea1b7c0555be091611aff9149037af8d78ab3abefb82a3954e42b646da437",
          "snippet_registry": {
            "sha256": "8fad2a3b728b304d1a81f48779c44eae892da89542ba9fb1a5cb93669bf3e90f"
          },
          "environment": {
            "target_kind": "latest",
            "server_version": "18.6 (Homebrew)",
            "server_version_num": "180006",
            "machine": "arm64",
            "platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O",
            "libpq_version": "18.6",
            "psycopg_version": "3.3.5",
            "python_version": "3.14.6 (main, Jun 10 2026, 10:03:53) [Clang 21.0.0 (clang-2100.0.123.102)]",
            "locale": "en_US.UTF-8",
            "lc_messages": "C",
            "log_destination": "csvlog,jsonlog"
          },
          "observed": {
            "collector": {
              "primary": "invalid frontend message type 89",
              "severity": "FATAL",
              "sqlstate": "08P01"
            },
            "connection_scope": "runner-owned TCP endpoint",
            "eof_probe_error": null,
            "invalid_frontend_message_type": "Y",
            "probe": 1,
            "probe_status": "IDLE",
            "server_eof_after_fatal": true,
            "server_error": {
              "C": "08P01",
              "F": "postgres.c",
              "L": "456",
              "M": "invalid frontend message type 89",
              "R": "SocketBackend",
              "S": "FATAL",
              "V": "FATAL"
            },
            "startup_messages": [
              "R",
              "S",
              "S",
              "S",
              "S",
              "S",
              "S",
              "S",
              "S",
              "S",
              "S",
              "S",
              "S",
              "S",
              "S",
              "S",
              "K",
              "Z"
            ]
          },
          "assertions": [
            {
              "expected": "08P01",
              "name": "protocol SQLSTATE comes from server ErrorResponse",
              "observed": "08P01",
              "passed": true
            },
            {
              "expected": "FATAL",
              "name": "protocol violation is fatal",
              "observed": "FATAL",
              "passed": true
            },
            {
              "expected": "invalid frontend message diagnostic",
              "name": "invalid message diagnostic",
              "observed": "invalid frontend message type 89",
              "passed": true
            },
            {
              "expected": true,
              "name": "server closes fatal protocol session",
              "observed": {
                "eof": true,
                "error": null
              },
              "passed": true
            },
            {
              "expected": "ReadyForQuery (Z)",
              "name": "startup reached ReadyForQuery",
              "observed": [
                "R",
                "S",
                "S",
                "S",
                "S",
                "S",
                "S",
                "S",
                "S",
                "S",
                "S",
                "S",
                "S",
                "S",
                "S",
                "S",
                "K",
                "Z"
              ],
              "passed": true
            },
            {
              "expected": "SELECT 1 and IDLE",
              "name": "separate connection remains usable",
              "observed": {
                "probe": 1,
                "status": "IDLE"
              },
              "passed": true
            }
          ],
          "cleanup": {
            "case": {
              "errors": [],
              "passed": true
            },
            "target_stop": {
              "argv": [
                "/opt/homebrew/Cellar/postgresql@18/18.6/bin/pg_ctl",
                "-D",
                "<local runtime artifact>",
                "-m",
                "fast",
                "-w",
                "stop"
              ],
              "elapsed_seconds": 0.109,
              "returncode": 0,
              "stderr": "",
              "stdout": "waiting for server to shut down.... done\nserver stopped\n"
            }
          },
          "limits": "Disposable runner-owned target only; this is a bounded mechanism case, not a guarantee for every client or network path."
        },
        {
          "id": "runtime.08P01-eof-repair-pg10.pg10",
          "kind": "runtime_observation",
          "run_id": "08P01-eof-repair-pg10",
          "target": "pg10",
          "status": "passed",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "cases": [
            "protocol_violation"
          ],
          "summary_sha256": "91736dfcfbf3d47205388295113f747c2e0693e844f90bcf9937e5adc530266c",
          "raw_sha256": "52ac4143e18bbc2fc2d8af0dbcb4d14ad54e8519fbdaa351e50b99aeb50f563d",
          "case_manifest_sha256": "ff8ea1b7c0555be091611aff9149037af8d78ab3abefb82a3954e42b646da437",
          "snippet_registry": {
            "sha256": "8fad2a3b728b304d1a81f48779c44eae892da89542ba9fb1a5cb93669bf3e90f"
          },
          "environment": {
            "target_kind": "pg10",
            "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
            "server_version_num": "100021",
            "machine": "arm64",
            "platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O",
            "libpq_version": "18.6",
            "psycopg_version": "3.3.5",
            "python_version": "3.14.6 (main, Jun 10 2026, 10:03:53) [Clang 21.0.0 (clang-2100.0.123.102)]",
            "locale": "en_US.UTF-8",
            "lc_messages": "en_US.utf8",
            "log_destination": "csvlog"
          },
          "observed": {
            "collector": {
              "primary": "invalid frontend message type 89",
              "severity": "FATAL",
              "sqlstate": "08P01"
            },
            "connection_scope": "runner-owned TCP endpoint",
            "eof_probe_error": null,
            "invalid_frontend_message_type": "Y",
            "probe": 1,
            "probe_status": "IDLE",
            "server_eof_after_fatal": true,
            "server_error": {
              "C": "08P01",
              "F": "postgres.c",
              "L": "467",
              "M": "invalid frontend message type 89",
              "R": "SocketBackend",
              "S": "FATAL",
              "V": "FATAL"
            },
            "startup_messages": [
              "R",
              "S",
              "S",
              "S",
              "S",
              "S",
              "S",
              "S",
              "S",
              "S",
              "S",
              "S",
              "K",
              "Z"
            ]
          },
          "assertions": [
            {
              "expected": "08P01",
              "name": "protocol SQLSTATE comes from server ErrorResponse",
              "observed": "08P01",
              "passed": true
            },
            {
              "expected": "FATAL",
              "name": "protocol violation is fatal",
              "observed": "FATAL",
              "passed": true
            },
            {
              "expected": "invalid frontend message diagnostic",
              "name": "invalid message diagnostic",
              "observed": "invalid frontend message type 89",
              "passed": true
            },
            {
              "expected": true,
              "name": "server closes fatal protocol session",
              "observed": {
                "eof": true,
                "error": null
              },
              "passed": true
            },
            {
              "expected": "ReadyForQuery (Z)",
              "name": "startup reached ReadyForQuery",
              "observed": [
                "R",
                "S",
                "S",
                "S",
                "S",
                "S",
                "S",
                "S",
                "S",
                "S",
                "S",
                "S",
                "K",
                "Z"
              ],
              "passed": true
            },
            {
              "expected": "SELECT 1 and IDLE",
              "name": "separate connection remains usable",
              "observed": {
                "probe": 1,
                "status": "IDLE"
              },
              "passed": true
            }
          ],
          "cleanup": {
            "case": {
              "errors": [],
              "passed": true
            },
            "target_stop": {
              "cleanup": {
                "argv": [
                  "/usr/local/bin/docker",
                  "rm",
                  "-f",
                  "-v",
                  "sqlstate08p01_08P01eofrepairpg10_pg10"
                ],
                "elapsed_seconds": 0.317,
                "returncode": 0,
                "stderr": "",
                "stdout": "sqlstate08p01_08P01eofrepairpg10_pg10\n"
              },
              "inspect": {
                "argv": [
                  "/usr/local/bin/docker",
                  "inspect",
                  "sqlstate08p01_08P01eofrepairpg10_pg10"
                ],
                "elapsed_seconds": 0.02,
                "returncode": 0,
                "stderr": "",
                "stdout": "[\n    {\n        \"Id\": \"26fd4f6f5fa521c9e057e2aaaf9f5c8aaf1940a30ae41fc1f312e8e691d3f185\",\n        \"Created\": \"2026-09-09T15:32:56.548369298Z\",\n        \"Path\": \"docker-entrypoint.sh\",\n        \"Args\": [\n            \"postgres\",\n            \"-c\",\n            \"listen_addresses=*\",\n            \"-c\",\n            \"log_destination=csvlog\",\n            \"-c\",\n            \"logging_collector=on\",\n            \"-c\",\n            \"log_directory=log\",\n            \"-c\",\n            \"log_filename=postgresql-%Y%m%d%H%M%S.log\",\n            \"-c\",\n            \"log_min_messages=error\",\n            \"-c\",\n            \"log_min_error_statement=error\",\n            \"-c\",\n            \"log_error_verbosity=verbose\",\n            \"-c\",\n            \"wal_level=logical\",\n            \"-c\",\n            \"max_wal_senders=10\",\n            \"-c\",\n            \"max_replication_slots=10\"\n        ],\n        \"State\": {\n            \"Status\": \"running\",\n            \"Running\": true,\n            \"Paused\": false,\n            \"Restarting\": false,\n            \"OOMKilled\": false,\n            \"Dead\": false,\n            \"Pid\": 56640,\n            \"ExitCode\": 0,\n            \"Error\": \"\",\n            \"StartedAt\": \"2026-09-09T15:32:56.660443964Z\",\n            \"FinishedAt\": \"0001-01-01T00:00:00Z\"\n        },\n        \"Image\": \"sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc\",\n        \"ResolvConfPath\": \"/var/lib/docker/containers/26fd4f6f5fa521c9e057e2aaaf9f5c8aaf1940a30ae41fc1f312e8e691d3f185/resolv.conf\",\n        \"HostnamePath\": \"/var/lib/docker/containers/26fd4f6f5fa521c9e057e2aaaf9f5c8aaf1940a30ae41fc1f312e8e691d3f185/hostname\",\n        \"HostsPath\": \"/var/lib/docker/containers/26fd4f6f5fa521c9e057e2aaaf9f5c8aaf1940a30ae41fc1f312e8e691d3f185/hosts\",\n        \"LogPath\": \"/var/lib/docker/containers/26fd4f6f5fa521c9e057e2aaaf9f5c8aaf1940a30ae41fc1f312e8e691d3f185/26fd4f6f5fa521c9e057e2aaaf9f5c8aaf1940a30ae41fc1f312e8e691d3f185-json.log\",\n        \"Name\": \"/sqlstate08p01_08P01eofrepairpg10_pg10\",\n        \"RestartCount\": 0,\n        \"Driver\": \"overlayfs\",\n        \"Platform\": \"linux\",\n        \"MountLabel\": \"\",\n        \"ProcessLabel\": \"\",\n        \"AppArmorProfile\": \"\",\n        \"ExecIDs\": null,\n        \"HostConfig\": {\n            \"Binds\": null,\n            \"ContainerIDFile\": \"\",\n            \"LogConfig\": {\n                \"Type\": \"json-file\",\n                \"Config\": {}\n            },\n            \"NetworkMode\": \"bridge\",\n            \"PortBindings\": {\n                \"5432/tcp\": [\n                    {\n                        \"HostIp\": \"127.0.0.1\",\n                        \"HostPort\": \"\"\n                    }\n                ]\n            },\n            \"RestartPolicy\": {\n                \"Name\": \"no\",\n                \"MaximumRetryCount\": 0\n            },\n            \"AutoRemove\": false,\n            \"VolumeDriver\": \"\",\n            \"VolumesFrom\": null,\n            \"ConsoleSize\": [\n                0,\n                0\n            ],\n            \"CapAdd\": null,\n            \"CapDrop\": null,\n            \"CgroupnsMode\": \"private\",\n            \"Dns\": null,\n            \"DnsOptions\": [],\n            \"DnsSearch\": [],\n            \"ExtraHosts\": null,\n            \"GroupAdd\": null,\n            \"IpcMode\": \"private\",\n            \"Cgroup\": \"\",\n            \"Links\": null,\n            \"OomScoreAdj\": 0,\n            \"PidMode\": \"\",\n            \"Privileged\": false,\n            \"PublishAllPorts\": false,\n            \"ReadonlyRootfs\": false,\n            \"SecurityOpt\": null,\n            \"UTSMode\": \"\",\n            \"UsernsMode\": \"\",\n            \"ShmSize\": 67108864,\n            \"Runtime\": \"runc\",\n            \"Isolation\": \"\",\n            \"CpuShares\": 0,\n            \"Memory\": 0,\n            \"NanoCpus\": 0,\n            \"CgroupParent\": \"\",\n            \"BlkioWeight\": 0,\n            \"BlkioWeightDevice\": [],\n            \"BlkioDeviceReadBps\": [],\n            \"BlkioDeviceWriteBps\": [],\n            \"BlkioDeviceReadIOps\": [],\n            \"BlkioDeviceWriteIOps\": [],\n            \"CpuPeriod\": 0,\n            \"CpuQuota\": 0,\n            \"CpuRealtimePeriod\": 0,\n            \"CpuRealtimeRuntime\": 0,\n            \"CpusetCpus\": \"\",\n            \"CpusetMems\": \"\",\n            \"Devices\": [],\n            \"DeviceCgroupRules\": null,\n            \"DeviceRequests\": null,\n            \"MemoryReservation\": 0,\n            \"MemorySwap\": 0,\n            \"MemorySwappiness\": null,\n            \"OomKillDisable\": null,\n            \"PidsLimit\": null,\n            \"Ulimits\": [],\n            \"CpuCount\": 0,\n            \"CpuPercent\": 0,\n            \"IOMaximumIOps\": 0,\n            \"IOMaximumBandwidth\": 0,\n            \"MaskedPaths\": [\n                \"/proc/acpi\",\n                \"/proc/asound\",\n                \"/proc/interrupts\",\n                \"/proc/kcore\",\n                \"/proc/keys\",\n                \"/proc/latency_stats\",\n                \"/proc/sched_debug\",\n                \"/proc/scsi\",\n                \"/proc/timer_list\",\n                \"/proc/timer_stats\",\n                \"/sys/devices/virtual/powercap\",\n                \"/sys/firmware\"\n            ],\n            \"ReadonlyPaths\": [\n                \"/proc/bus\",\n                \"/proc/fs\",\n                \"/proc/irq\",\n                \"/proc/sys\",\n                \"/proc/sysrq-trigger\"\n            ]\n        },\n        \"Storage\": {\n            \"RootFS\": {\n                \"Snapshot\": {\n                    \"Name\": \"overlayfs\"\n                }\n            }\n        },\n        \"Mounts\": [\n            {\n                \"Type\": \"volume\",\n                \"Name\": \"7a91f8bb39ab938c0c655ad9fe3959dd66f9ee7aa58d7da0358feeb34418609a\",\n                \"Source\": \"/var/lib/docker/volumes/7a91f8bb39ab938c0c655ad9fe3959dd66f9ee7aa58d7da0358feeb34418609a/_data\",\n                \"Destination\": \"/var/lib/postgresql/data\",\n                \"Driver\": \"local\",\n                \"Mode\": \"\",\n                \"RW\": true,\n                \"Propagation\": \"\"\n            }\n        ],\n        \"Config\": {\n            \"Hostname\": \"26fd4f6f5fa5\",\n            \"Domainname\": \"\",\n            \"User\": \"\",\n            \"AttachStdin\": false,\n            \"AttachStdout\": false,\n            \"AttachStderr\": false,\n            \"ExposedPorts\": {\n                \"5432/tcp\": {}\n            },\n            \"Tty\": false,\n            \"OpenStdin\": false,\n            \"StdinOnce\": false,\n            \"Env\": [\n                \"POSTGRES_HOST_AUTH_METHOD=trust\",\n                \"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/10/bin\",\n                \"GOSU_VERSION=1.14\",\n                \"LANG=en_US.utf8\",\n                \"PG_MAJOR=10\",\n                \"PG_VERSION=10.21-1.pgdg90+1\",\n                \"PGDATA=/var/lib/postgresql/data\"\n            ],\n            \"Cmd\": [\n                \"postgres\",\n                \"-c\",\n                \"listen_addresses=*\",\n                \"-c\",\n                \"log_destination=csvlog\",\n                \"-c\",\n                \"logging_collector=on\",\n                \"-c\",\n                \"log_directory=log\",\n                \"-c\",\n                \"log_filename=postgresql-%Y%m%d%H%M%S.log\",\n                \"-c\",\n                \"log_min_messages=error\",\n                \"-c\",\n                \"log_min_error_statement=error\",\n                \"-c\",\n                \"log_error_verbosity=verbose\",\n                \"-c\",\n                \"wal_level=logical\",\n                \"-c\",\n                \"max_wal_senders=10\",\n                \"-c\",\n                \"max_replication_slots=10\"\n            ],\n            \"Image\": \"postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc\",\n            \"Volumes\": {\n                \"/var/lib/postgresql/data\": {}\n            },\n            \"WorkingDir\": \"\",\n            \"Entrypoint\": [\n                \"docker-entrypoint.sh\"\n            ],\n            \"Labels\": {},\n            \"StopSignal\": \"SIGINT\",\n            \"StopTimeout\": 1\n        },\n        \"NetworkSettings\": {\n            \"SandboxID\": \"15aef53e12f50f8cb7311b8968993281a1c00e34b197e7860bb21db3082f251e\",\n            \"SandboxKey\": \"/var/run/docker/netns/15aef53e12f5\",\n            \"Ports\": {\n                \"5432/tcp\": [\n                    {\n                        \"HostIp\": \"127.0.0.1\",\n                        \"HostPort\": \"62073\"\n                    }\n                ]\n            },\n            \"Networks\": {\n                \"bridge\": {\n                    \"IPAMConfig\": null,\n                    \"Links\": null,\n                    \"Aliases\": null,\n                    \"DriverOpts\": null,\n                    \"GwPriority\": 0,\n                    \"NetworkID\": \"aed51554f8cd8bac69ecd4f073e41e147fda7b458e9d95be2af472651f2e825c\",\n                    \"EndpointID\": \"73dc3d9a216090ba58ff15d32e0e17496d91344244d84273330fa49e58768e58\",\n                    \"Gateway\": \"172.17.0.1\",\n                    \"IPAddress\": \"172.17.0.53\",\n                    \"MacAddress\": \"9e:2f:95:27:05:56\",\n                    \"IPPrefixLen\": 16,\n                    \"IPv6Gateway\": \"\",\n                    \"GlobalIPv6Address\": \"\",\n                    \"GlobalIPv6PrefixLen\": 0,\n                    \"DNSNames\": null\n                }\n            }\n        },\n        \"ImageManifestDescriptor\": {\n            \"mediaType\": \"application/vnd.docker.distribution.manifest.v2+json\",\n            \"digest\": \"sha256:52aada7978f1eef3b6b52a51afb7a3defd69254d00c946cb90d2ceb32b8ffce7\",\n            \"size\": 3246,\n            \"platform\": {\n                \"architecture\": \"arm64\",\n                \"os\": \"linux\",\n                \"variant\": \"v8\"\n            }\n        }\n    }\n]\n"
              }
            }
          },
          "limits": "Disposable runner-owned target only; this is a bounded mechanism case, not a guarantee for every client or network path.",
          "image": "postgres:10"
        }
      ]
    },
    {
      "sqlstate": "09000",
      "condition_name": "triggered_action_exception",
      "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#L115"
        },
        {
          "id": "src.spi.autoinc.18.6",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "contrib/spi/autoinc.c",
          "sha256": "154ac91833a2edbfb64f0d9845bff10db45b9bd9ee02e703e52650b2b1fecbf1",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/contrib/spi/autoinc.c",
          "lines": "74-90"
        },
        {
          "id": "src.spi.insert_username.18.6",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "contrib/spi/insert_username.c",
          "sha256": "f4102a2487bfcc89d1dd821928bf9a4b9fe31abddd5ff14e8a6e75737c39e9ee",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/contrib/spi/insert_username.c",
          "lines": "74-82"
        },
        {
          "id": "src.spi.moddatetime.18.6",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "contrib/spi/moddatetime.c",
          "sha256": "d73f1ba56e2fa74b9cfdf7b1bfa3722d242fdab08988276fc1126936c2cda4e8",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/contrib/spi/moddatetime.c",
          "lines": "95-120"
        },
        {
          "id": "src.spi.refint.18.6",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "contrib/spi/refint.c",
          "sha256": "4197aab0853558bac9db814363b7e294e7e3d079b95f32489fb003a8b5d2d498",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/contrib/spi/refint.c",
          "lines": "181-184,504-516"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "09000 is triggered_action_exception in SQLSTATE Class 09.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes definition row, severity, and macro."
        },
        {
          "id": "resolved-path",
          "statement": "The fixed PostgreSQL 18.6 source contains the report path and message context described on the page.",
          "sources": [
            "src.spi.autoinc.18.6",
            "src.spi.insert_username.18.6",
            "src.spi.moddatetime.18.6",
            "src.spi.refint.18.6"
          ],
          "method": "Read the complete source context around the resolved report group.",
          "limits": "This is source confirmation, not a runtime observation in this batch."
        },
        {
          "id": "history-boundary",
          "statement": "The locked release definitions establish catalogue presence from the known 7.4 boundary; they do not establish a precise introducing release or runtime use.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Compare canonical release-definition facts with the available history boundary.",
          "limits": "Definition presence is not an emitting-path observation."
        }
      ],
      "messages": [
        {
          "id": "message.autoinc-missing-attribute",
          "sqlstate": "09000",
          "primary_template": "\"%s\" has no attribute \"%s\"",
          "severity_source": "ERROR",
          "sources": [
            "src.spi.autoinc.18.6"
          ],
          "limits": "Relation and attribute names are dynamic."
        },
        {
          "id": "message.autoinc-invalid-type",
          "sqlstate": "09000",
          "primary_template": "attribute \"%s\" of \"%s\" must be type INT4",
          "severity_source": "ERROR",
          "sources": [
            "src.spi.autoinc.18.6"
          ],
          "limits": "Attribute and relation names are dynamic."
        },
        {
          "id": "message.insert-username-missing-attribute",
          "sqlstate": "09000",
          "primary_template": "\"%s\" has no attribute \"%s\"",
          "severity_source": "ERROR",
          "sources": [
            "src.spi.insert_username.18.6"
          ],
          "limits": "Relation and attribute names are dynamic."
        },
        {
          "id": "message.insert-username-invalid-type",
          "sqlstate": "09000",
          "primary_template": "attribute \"%s\" of \"%s\" must be type TEXT",
          "severity_source": "ERROR",
          "sources": [
            "src.spi.insert_username.18.6"
          ],
          "limits": "Attribute and relation names are dynamic."
        },
        {
          "id": "message.moddatetime-missing-attribute",
          "sqlstate": "09000",
          "primary_template": "\"%s\" has no attribute \"%s\"",
          "severity_source": "ERROR",
          "sources": [
            "src.spi.moddatetime.18.6"
          ],
          "limits": "Relation and attribute names are dynamic."
        },
        {
          "id": "message.moddatetime-invalid-type",
          "sqlstate": "09000",
          "primary_template": "attribute \"%s\" of \"%s\" must be type TIMESTAMP or TIMESTAMPTZ",
          "severity_source": "ERROR",
          "sources": [
            "src.spi.moddatetime.18.6"
          ],
          "limits": "Attribute and relation names are dynamic."
        },
        {
          "id": "message.refint-missing-key",
          "sqlstate": "09000",
          "primary_template": "tuple references non-existent key",
          "detail_template": "Trigger \"%s\" found tuple referencing non-existent key in \"%s\".",
          "severity_source": "ERROR",
          "sources": [
            "src.spi.refint.18.6"
          ],
          "limits": "Trigger and relation names in DETAIL are dynamic."
        },
        {
          "id": "message.refint-spi-status",
          "sqlstate": "09000",
          "primary_template": "SPI_execp returned %d",
          "severity_source": "ERROR",
          "sources": [
            "src.spi.refint.18.6"
          ],
          "limits": "The SPI status code is dynamic."
        },
        {
          "id": "message.refint-restrictive",
          "sqlstate": "09000",
          "primary_template": "\"%s\": tuple is referenced in \"%s\"",
          "severity_source": "ERROR",
          "sources": [
            "src.spi.refint.18.6"
          ],
          "limits": "Referencing relation names are dynamic; this is the restrictive action path."
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "resolved-path"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history-boundary"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "resolved-path"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "0A000",
      "condition_name": "feature_not_supported",
      "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",
          "tag": "REL_18_6"
        },
        {
          "id": "src.calls.REL_10_23",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "00d16d3eb01b71ccf1b245c8f3102f9d0ec9f36fb02777b8dd1b99fcb263040c",
          "tag": "REL_10_23"
        },
        {
          "id": "src.indexcmds-asc-desc.18.6",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/indexcmds.c",
          "sha256": "0bdae365f207ab82865806c5983cac94c5c062e7a61ab7c883ccb7e2015fad36",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/indexcmds.c#L2244-L2247"
        },
        {
          "id": "src.indexcmds-asc-desc.10.23",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_10_23",
          "commit": "02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4",
          "path": "src/backend/commands/indexcmds.c",
          "sha256": "97766ba385fea1ba642e5b077fd5ce7cbb9f9faff177bcece0de2fc3e2904b23",
          "url": "https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/commands/indexcmds.c#L1403-L1406"
        },
        {
          "id": "doc.transactions.18",
          "kind": "upstream_source",
          "source_role": "transaction_recovery_documentation",
          "tag": "PG18-docs",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "doc/src/sgml/xact.sgml",
          "sha256": "b48fbe8bd02ce3d1181a350c88c8baa6e11c73edc90a936e77b180daef328c5c",
          "url": "https://www.postgresql.org/docs/18/tutorial-transactions.html"
        },
        {
          "id": "manifest.0A000",
          "kind": "local_artifact",
          "source_role": "case_manifest",
          "sha256": "e711ee0419cff19ec9e882d12ccecfc725c521539a2bcc8fcb25a7da119cd871",
          "tag": "workspace"
        },
        {
          "id": "snippet-registry.0A000",
          "kind": "local_artifact",
          "source_role": "snippet_registry",
          "sha256": "887418175ca41e41edc08dce950711bf71ee61cedb60076304332bb90e1b8cf3",
          "tag": "workspace"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "statement": "0A000 is the feature_not_supported condition in Class 0A.",
          "method": "Read the fixed errcodes.txt definition and the locked catalogue metadata.",
          "limits": "Directory identity does not identify every backend or client path.",
          "sources": [
            "src.errcodes.18.6"
          ]
        },
        {
          "id": "mechanism.backend-path",
          "statement": "The fixed source paths associated with 0A000 report the condition in the mechanism selected for this page.",
          "method": "Trace the resolved source call records at the fixed release commits and compare their dynamic message fields.",
          "limits": "Other calls can retain the same SQLSTATE with different context or text.",
          "sources": [
            "src.indexcmds-asc-desc.18.6",
            "src.indexcmds-asc-desc.10.23"
          ]
        },
        {
          "id": "runtime.representative-case",
          "statement": "The selected hash_index_feature case passed with the expected structured diagnostics, recovery assertions, and cleanup on PostgreSQL 18.6 and 10.21.",
          "method": "Run the shared registry case on isolated runner-owned latest and PG10 targets; inspect the final summaries and raw results.",
          "limits": "This covers the selected case and versions only; it does not generalize to every driver, proxy, or intermediate release.",
          "sources": [
            "snippet-registry.0A000",
            "manifest.0A000"
          ],
          "runtime": [
            "runtime.0A000-registry-repair-latest.latest",
            "runtime.0A000-registry-repair-pg10.pg10"
          ]
        },
        {
          "id": "transaction-boundary",
          "statement": "The selected unsupported hash-index option is an ERROR observed under autocommit, where the session remains IDLE; the same DDL failure inside an explicit transaction follows PostgreSQL's rollback or intentional-savepoint recovery boundary.",
          "method": "Combine the fixed index-command ERROR path with the official transaction and savepoint recovery contract.",
          "limits": "No explicit-transaction index runtime was selected in this batch; this does not generalize the IDLE observation to every 0A000 producer.",
          "sources": [
            "src.indexcmds-asc-desc.18.6",
            "doc.transactions.18"
          ]
        },
        {
          "id": "versions.catalogue-boundary",
          "statement": "The locked catalogue records 0A000 in the listed snapshots; the runtime comparison here is limited to PostgreSQL 18.6 and 10.21.",
          "method": "Read the generated facts block and locked manifest, then compare the selected target summaries.",
          "limits": "Presence in a definition file is not an exact behavioral introduction; the two runtime targets do not prove all middle versions.",
          "sources": [
            "src.errcodes.18.6",
            "src.calls.REL_18_6",
            "src.calls.REL_10_23"
          ]
        }
      ],
      "messages": [
        {
          "id": "message.hash-asc-desc",
          "sqlstate": "0A000",
          "severity_source": "explicit ERROR",
          "sources": [
            "src.indexcmds-asc-desc.18.6",
            "src.indexcmds-asc-desc.10.23"
          ],
          "primary_template": "access method \"%s\" does not support ASC/DESC options"
        }
      ],
      "usage_evidence": [
        {
          "scope": "SQLSTATE directory identity",
          "status": "definition_only",
          "evidence_ids": [
            "identity.class-and-condition",
            "src.errcodes.18.6"
          ]
        },
        {
          "scope": "Selected backend mechanism",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "mechanism.backend-path",
            "src.indexcmds-asc-desc.18.6",
            "src.indexcmds-asc-desc.10.23",
            "transaction-boundary",
            "doc.transactions.18"
          ]
        },
        {
          "scope": "Observed hash_index_feature on isolated targets",
          "status": "observed_runtime",
          "evidence_ids": [
            "runtime.representative-case",
            "snippet-registry.0A000",
            "runtime.0A000-registry-repair-latest.latest",
            "runtime.0A000-registry-repair-pg10.pg10"
          ]
        },
        {
          "scope": "Locked release presence and bounded version comparison",
          "status": "definition_only",
          "evidence_ids": [
            "versions.catalogue-boundary",
            "src.errcodes.18.6"
          ]
        }
      ],
      "runtime": [
        {
          "id": "runtime.0A000-registry-repair-latest.latest",
          "kind": "runtime_observation",
          "run_id": "0A000-registry-repair-latest",
          "target": "latest",
          "status": "passed",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "cases": [
            "hash_index_feature"
          ],
          "summary_sha256": "54cc318bb40b47917849a6737f3099701a490097c8166530311694eead88ee4b",
          "raw_sha256": "d97aa6d3727466b1916a09a18977b374e5524e2bee8e25a4a638bdd9e77451d9",
          "case_manifest_sha256": "e711ee0419cff19ec9e882d12ccecfc725c521539a2bcc8fcb25a7da119cd871",
          "snippet_registry": {
            "sha256": "887418175ca41e41edc08dce950711bf71ee61cedb60076304332bb90e1b8cf3"
          },
          "environment": {
            "target_kind": "latest",
            "server_version": "18.6 (Homebrew)",
            "server_version_num": "180006",
            "machine": "arm64",
            "platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O",
            "libpq_version": "18.6",
            "psycopg_version": "3.3.5",
            "python_version": "3.14.6 (main, Jun 10 2026, 10:03:53) [Clang 21.0.0 (clang-2100.0.123.102)]",
            "locale": "en_US.UTF-8",
            "lc_messages": "C",
            "log_destination": "csvlog,jsonlog"
          },
          "observed": {
            "connection_autocommit": true,
            "diagnostic": {
              "column_name": null,
              "constraint_name": null,
              "context": null,
              "datatype_name": null,
              "exception_type": "FeatureNotSupported",
              "internal_position": null,
              "internal_query": null,
              "message_detail": null,
              "message_hint": null,
              "message_primary": "access method \"hash\" does not support ASC/DESC options",
              "schema_name": null,
              "severity": "ERROR",
              "severity_nonlocalized": "ERROR",
              "source_file": "indexcmds.c",
              "source_function": "ComputeIndexAttrs",
              "source_line": "2247",
              "sqlstate": "0A000",
              "statement_position": null,
              "table_name": null,
              "text": "access method \"hash\" does not support ASC/DESC options"
            },
            "index_valid": true,
            "repair": "CREATE INDEX USING hash without ASC/DESC",
            "statuses": {
              "after_error": "IDLE",
              "final": "IDLE"
            }
          },
          "assertions": [
            {
              "expected": "0A000",
              "name": "feature SQLSTATE",
              "observed": "0A000",
              "passed": true
            },
            {
              "expected": "access method does not support ASC/DESC options",
              "name": "feature diagnostic",
              "observed": "access method \"hash\" does not support ASC/DESC options",
              "passed": true
            },
            {
              "expected": "IDLE, valid index, IDLE",
              "name": "valid alternative index repairs path",
              "observed": {
                "after_error": "IDLE",
                "final": "IDLE",
                "valid": true
              },
              "passed": true
            }
          ],
          "cleanup": {
            "case": {
              "errors": [],
              "passed": true
            },
            "target_stop": {
              "argv": [
                "/opt/homebrew/Cellar/postgresql@18/18.6/bin/pg_ctl",
                "-D",
                "<local runtime artifact>",
                "-m",
                "fast",
                "-w",
                "stop"
              ],
              "elapsed_seconds": 0.111,
              "returncode": 0,
              "stderr": "",
              "stdout": "waiting for server to shut down.... done\nserver stopped\n"
            }
          },
          "limits": "Disposable runner-owned target only; this is a bounded mechanism case, not a guarantee for every client or network path."
        },
        {
          "id": "runtime.0A000-registry-repair-pg10.pg10",
          "kind": "runtime_observation",
          "run_id": "0A000-registry-repair-pg10",
          "target": "pg10",
          "status": "passed",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "cases": [
            "hash_index_feature"
          ],
          "summary_sha256": "22268d4d8c72c33e298f708ed13352c3935fbfc90c4b4fa707eafde5370ae4c4",
          "raw_sha256": "f05761b7086a8c223fc4e1137de8c3580fdf507a452f87892662a98871edb977",
          "case_manifest_sha256": "e711ee0419cff19ec9e882d12ccecfc725c521539a2bcc8fcb25a7da119cd871",
          "snippet_registry": {
            "sha256": "887418175ca41e41edc08dce950711bf71ee61cedb60076304332bb90e1b8cf3"
          },
          "environment": {
            "target_kind": "pg10",
            "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
            "server_version_num": "100021",
            "machine": "arm64",
            "platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O",
            "libpq_version": "18.6",
            "psycopg_version": "3.3.5",
            "python_version": "3.14.6 (main, Jun 10 2026, 10:03:53) [Clang 21.0.0 (clang-2100.0.123.102)]",
            "locale": "en_US.UTF-8",
            "lc_messages": "en_US.utf8",
            "log_destination": "csvlog"
          },
          "observed": {
            "connection_autocommit": true,
            "diagnostic": {
              "column_name": null,
              "constraint_name": null,
              "context": null,
              "datatype_name": null,
              "exception_type": "FeatureNotSupported",
              "internal_position": null,
              "internal_query": null,
              "message_detail": null,
              "message_hint": null,
              "message_primary": "access method \"hash\" does not support ASC/DESC options",
              "schema_name": null,
              "severity": "ERROR",
              "severity_nonlocalized": "ERROR",
              "source_file": "indexcmds.c",
              "source_function": "ComputeIndexAttrs",
              "source_line": "1338",
              "sqlstate": "0A000",
              "statement_position": null,
              "table_name": null,
              "text": "access method \"hash\" does not support ASC/DESC options"
            },
            "index_valid": true,
            "repair": "CREATE INDEX USING hash without ASC/DESC",
            "statuses": {
              "after_error": "IDLE",
              "final": "IDLE"
            }
          },
          "assertions": [
            {
              "expected": "0A000",
              "name": "feature SQLSTATE",
              "observed": "0A000",
              "passed": true
            },
            {
              "expected": "access method does not support ASC/DESC options",
              "name": "feature diagnostic",
              "observed": "access method \"hash\" does not support ASC/DESC options",
              "passed": true
            },
            {
              "expected": "IDLE, valid index, IDLE",
              "name": "valid alternative index repairs path",
              "observed": {
                "after_error": "IDLE",
                "final": "IDLE",
                "valid": true
              },
              "passed": true
            }
          ],
          "cleanup": {
            "case": {
              "errors": [],
              "passed": true
            },
            "target_stop": {
              "cleanup": {
                "argv": [
                  "/usr/local/bin/docker",
                  "rm",
                  "-f",
                  "-v",
                  "sqlstate0a000_0A000registryrepairpg10_pg10"
                ],
                "elapsed_seconds": 0.563,
                "returncode": 0,
                "stderr": "",
                "stdout": "sqlstate0a000_0A000registryrepairpg10_pg10\n"
              },
              "inspect": {
                "argv": [
                  "/usr/local/bin/docker",
                  "inspect",
                  "sqlstate0a000_0A000registryrepairpg10_pg10"
                ],
                "elapsed_seconds": 0.02,
                "returncode": 0,
                "stderr": "",
                "stdout": "[\n    {\n        \"Id\": \"c898141790dbae928a9bf34a34dbc39b5b6ffced8436d2fc08d8a6389e070126\",\n        \"Created\": \"2026-09-09T15:32:56.548342006Z\",\n        \"Path\": \"docker-entrypoint.sh\",\n        \"Args\": [\n            \"postgres\",\n            \"-c\",\n            \"listen_addresses=*\",\n            \"-c\",\n            \"log_destination=csvlog\",\n            \"-c\",\n            \"logging_collector=on\",\n            \"-c\",\n            \"log_directory=log\",\n            \"-c\",\n            \"log_filename=postgresql-%Y%m%d%H%M%S.log\",\n            \"-c\",\n            \"log_min_messages=error\",\n            \"-c\",\n            \"log_min_error_statement=error\",\n            \"-c\",\n            \"log_error_verbosity=verbose\",\n            \"-c\",\n            \"wal_level=logical\",\n            \"-c\",\n            \"max_wal_senders=10\",\n            \"-c\",\n            \"max_replication_slots=10\"\n        ],\n        \"State\": {\n            \"Status\": \"running\",\n            \"Running\": true,\n            \"Paused\": false,\n            \"Restarting\": false,\n            \"OOMKilled\": false,\n            \"Dead\": false,\n            \"Pid\": 56765,\n            \"ExitCode\": 0,\n            \"Error\": \"\",\n            \"StartedAt\": \"2026-09-09T15:32:56.707315506Z\",\n            \"FinishedAt\": \"0001-01-01T00:00:00Z\"\n        },\n        \"Image\": \"sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc\",\n        \"ResolvConfPath\": \"/var/lib/docker/containers/c898141790dbae928a9bf34a34dbc39b5b6ffced8436d2fc08d8a6389e070126/resolv.conf\",\n        \"HostnamePath\": \"/var/lib/docker/containers/c898141790dbae928a9bf34a34dbc39b5b6ffced8436d2fc08d8a6389e070126/hostname\",\n        \"HostsPath\": \"/var/lib/docker/containers/c898141790dbae928a9bf34a34dbc39b5b6ffced8436d2fc08d8a6389e070126/hosts\",\n        \"LogPath\": \"/var/lib/docker/containers/c898141790dbae928a9bf34a34dbc39b5b6ffced8436d2fc08d8a6389e070126/c898141790dbae928a9bf34a34dbc39b5b6ffced8436d2fc08d8a6389e070126-json.log\",\n        \"Name\": \"/sqlstate0a000_0A000registryrepairpg10_pg10\",\n        \"RestartCount\": 0,\n        \"Driver\": \"overlayfs\",\n        \"Platform\": \"linux\",\n        \"MountLabel\": \"\",\n        \"ProcessLabel\": \"\",\n        \"AppArmorProfile\": \"\",\n        \"ExecIDs\": null,\n        \"HostConfig\": {\n            \"Binds\": null,\n            \"ContainerIDFile\": \"\",\n            \"LogConfig\": {\n                \"Type\": \"json-file\",\n                \"Config\": {}\n            },\n            \"NetworkMode\": \"bridge\",\n            \"PortBindings\": {\n                \"5432/tcp\": [\n                    {\n                        \"HostIp\": \"127.0.0.1\",\n                        \"HostPort\": \"\"\n                    }\n                ]\n            },\n            \"RestartPolicy\": {\n                \"Name\": \"no\",\n                \"MaximumRetryCount\": 0\n            },\n            \"AutoRemove\": false,\n            \"VolumeDriver\": \"\",\n            \"VolumesFrom\": null,\n            \"ConsoleSize\": [\n                0,\n                0\n            ],\n            \"CapAdd\": null,\n            \"CapDrop\": null,\n            \"CgroupnsMode\": \"private\",\n            \"Dns\": null,\n            \"DnsOptions\": [],\n            \"DnsSearch\": [],\n            \"ExtraHosts\": null,\n            \"GroupAdd\": null,\n            \"IpcMode\": \"private\",\n            \"Cgroup\": \"\",\n            \"Links\": null,\n            \"OomScoreAdj\": 0,\n            \"PidMode\": \"\",\n            \"Privileged\": false,\n            \"PublishAllPorts\": false,\n            \"ReadonlyRootfs\": false,\n            \"SecurityOpt\": null,\n            \"UTSMode\": \"\",\n            \"UsernsMode\": \"\",\n            \"ShmSize\": 67108864,\n            \"Runtime\": \"runc\",\n            \"Isolation\": \"\",\n            \"CpuShares\": 0,\n            \"Memory\": 0,\n            \"NanoCpus\": 0,\n            \"CgroupParent\": \"\",\n            \"BlkioWeight\": 0,\n            \"BlkioWeightDevice\": [],\n            \"BlkioDeviceReadBps\": [],\n            \"BlkioDeviceWriteBps\": [],\n            \"BlkioDeviceReadIOps\": [],\n            \"BlkioDeviceWriteIOps\": [],\n            \"CpuPeriod\": 0,\n            \"CpuQuota\": 0,\n            \"CpuRealtimePeriod\": 0,\n            \"CpuRealtimeRuntime\": 0,\n            \"CpusetCpus\": \"\",\n            \"CpusetMems\": \"\",\n            \"Devices\": [],\n            \"DeviceCgroupRules\": null,\n            \"DeviceRequests\": null,\n            \"MemoryReservation\": 0,\n            \"MemorySwap\": 0,\n            \"MemorySwappiness\": null,\n            \"OomKillDisable\": null,\n            \"PidsLimit\": null,\n            \"Ulimits\": [],\n            \"CpuCount\": 0,\n            \"CpuPercent\": 0,\n            \"IOMaximumIOps\": 0,\n            \"IOMaximumBandwidth\": 0,\n            \"MaskedPaths\": [\n                \"/proc/acpi\",\n                \"/proc/asound\",\n                \"/proc/interrupts\",\n                \"/proc/kcore\",\n                \"/proc/keys\",\n                \"/proc/latency_stats\",\n                \"/proc/sched_debug\",\n                \"/proc/scsi\",\n                \"/proc/timer_list\",\n                \"/proc/timer_stats\",\n                \"/sys/devices/virtual/powercap\",\n                \"/sys/firmware\"\n            ],\n            \"ReadonlyPaths\": [\n                \"/proc/bus\",\n                \"/proc/fs\",\n                \"/proc/irq\",\n                \"/proc/sys\",\n                \"/proc/sysrq-trigger\"\n            ]\n        },\n        \"Storage\": {\n            \"RootFS\": {\n                \"Snapshot\": {\n                    \"Name\": \"overlayfs\"\n                }\n            }\n        },\n        \"Mounts\": [\n            {\n                \"Type\": \"volume\",\n                \"Name\": \"0555c33286c93d297818c400da5418176790153dcaee5fcf903fd15e70055b0f\",\n                \"Source\": \"/var/lib/docker/volumes/0555c33286c93d297818c400da5418176790153dcaee5fcf903fd15e70055b0f/_data\",\n                \"Destination\": \"/var/lib/postgresql/data\",\n                \"Driver\": \"local\",\n                \"Mode\": \"\",\n                \"RW\": true,\n                \"Propagation\": \"\"\n            }\n        ],\n        \"Config\": {\n            \"Hostname\": \"c898141790db\",\n            \"Domainname\": \"\",\n            \"User\": \"\",\n            \"AttachStdin\": false,\n            \"AttachStdout\": false,\n            \"AttachStderr\": false,\n            \"ExposedPorts\": {\n                \"5432/tcp\": {}\n            },\n            \"Tty\": false,\n            \"OpenStdin\": false,\n            \"StdinOnce\": false,\n            \"Env\": [\n                \"POSTGRES_HOST_AUTH_METHOD=trust\",\n                \"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/10/bin\",\n                \"GOSU_VERSION=1.14\",\n                \"LANG=en_US.utf8\",\n                \"PG_MAJOR=10\",\n                \"PG_VERSION=10.21-1.pgdg90+1\",\n                \"PGDATA=/var/lib/postgresql/data\"\n            ],\n            \"Cmd\": [\n                \"postgres\",\n                \"-c\",\n                \"listen_addresses=*\",\n                \"-c\",\n                \"log_destination=csvlog\",\n                \"-c\",\n                \"logging_collector=on\",\n                \"-c\",\n                \"log_directory=log\",\n                \"-c\",\n                \"log_filename=postgresql-%Y%m%d%H%M%S.log\",\n                \"-c\",\n                \"log_min_messages=error\",\n                \"-c\",\n                \"log_min_error_statement=error\",\n                \"-c\",\n                \"log_error_verbosity=verbose\",\n                \"-c\",\n                \"wal_level=logical\",\n                \"-c\",\n                \"max_wal_senders=10\",\n                \"-c\",\n                \"max_replication_slots=10\"\n            ],\n            \"Image\": \"postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc\",\n            \"Volumes\": {\n                \"/var/lib/postgresql/data\": {}\n            },\n            \"WorkingDir\": \"\",\n            \"Entrypoint\": [\n                \"docker-entrypoint.sh\"\n            ],\n            \"Labels\": {},\n            \"StopSignal\": \"SIGINT\",\n            \"StopTimeout\": 1\n        },\n        \"NetworkSettings\": {\n            \"SandboxID\": \"4ed893f40affee15438ac3802ec3777071f620012107f9a179c26d24cca9717a\",\n            \"SandboxKey\": \"/var/run/docker/netns/4ed893f40aff\",\n            \"Ports\": {\n                \"5432/tcp\": [\n                    {\n                        \"HostIp\": \"127.0.0.1\",\n                        \"HostPort\": \"62079\"\n                    }\n                ]\n            },\n            \"Networks\": {\n                \"bridge\": {\n                    \"IPAMConfig\": null,\n                    \"Links\": null,\n                    \"Aliases\": null,\n                    \"DriverOpts\": null,\n                    \"GwPriority\": 0,\n                    \"NetworkID\": \"aed51554f8cd8bac69ecd4f073e41e147fda7b458e9d95be2af472651f2e825c\",\n                    \"EndpointID\": \"0094243d9477e362f2349254ba0bd4a903e868ccd5c3e1320a3519c2e065d21a\",\n                    \"Gateway\": \"172.17.0.1\",\n                    \"IPAddress\": \"172.17.0.60\",\n                    \"MacAddress\": \"c2:f6:a5:c7:89:41\",\n                    \"IPPrefixLen\": 16,\n                    \"IPv6Gateway\": \"\",\n                    \"GlobalIPv6Address\": \"\",\n                    \"GlobalIPv6PrefixLen\": 0,\n                    \"DNSNames\": null\n                }\n            }\n        },\n        \"ImageManifestDescriptor\": {\n            \"mediaType\": \"application/vnd.docker.distribution.manifest.v2+json\",\n            \"digest\": \"sha256:52aada7978f1eef3b6b52a51afb7a3defd69254d00c946cb90d2ceb32b8ffce7\",\n            \"size\": 3246,\n            \"platform\": {\n                \"architecture\": \"arm64\",\n                \"os\": \"linux\",\n                \"variant\": \"v8\"\n            }\n        }\n    }\n]\n"
              }
            }
          },
          "limits": "Disposable runner-owned target only; this is a bounded mechanism case, not a guarantee for every client or network path.",
          "image": "postgres:10"
        }
      ]
    },
    {
      "sqlstate": "0B000",
      "condition_name": "invalid_transaction_initiation",
      "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#L123"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "0B000 is invalid_transaction_initiation in SQLSTATE Class 0B.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes definition row, severity, and macro."
        },
        {
          "id": "scan-boundary",
          "statement": "No resolved 0B000 report group was found in the locked PostgreSQL 18.6 core/contrib call scan.",
          "sources": [
            "src.calls.REL_18_6",
            "src.errcodes.18.6"
          ],
          "method": "Compare resolved report groups with the fixed macro mapping.",
          "limits": "The scan does not cover external wrappers, drivers, extensions, remote systems, or user code; absence from this scan is not an absolute absence claim."
        },
        {
          "id": "history-boundary",
          "statement": "The locked release definitions establish catalogue presence from the known 7.4 boundary; they do not establish a precise introducing release or runtime use.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Compare canonical release-definition facts with the available history boundary.",
          "limits": "Definition presence is not an emitting-path observation."
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "resolved-call-scan",
          "status": "definition_only",
          "evidence_ids": [
            "scan-boundary"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history-boundary"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "scan-boundary"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "0F000",
      "condition_name": "locator_exception",
      "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#L127"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "0F000 is locator_exception in SQLSTATE Class 0F.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes definition row, severity, and macro."
        },
        {
          "id": "scan-boundary",
          "statement": "No resolved 0F000 report group was found in the locked PostgreSQL 18.6 core/contrib call scan.",
          "sources": [
            "src.calls.REL_18_6",
            "src.errcodes.18.6"
          ],
          "method": "Compare resolved report groups with the fixed macro mapping.",
          "limits": "The scan does not cover external wrappers, drivers, extensions, remote systems, or user code; absence from this scan is not an absolute absence claim."
        },
        {
          "id": "history-boundary",
          "statement": "The locked release definitions establish catalogue presence from the known 7.4 boundary; they do not establish a precise introducing release or runtime use.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Compare canonical release-definition facts with the available history boundary.",
          "limits": "Definition presence is not an emitting-path observation."
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "resolved-call-scan",
          "status": "definition_only",
          "evidence_ids": [
            "scan-boundary"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history-boundary"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "scan-boundary"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "0F001",
      "condition_name": "invalid_locator_specification",
      "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#L128"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "0F001 is invalid_locator_specification in SQLSTATE Class 0F.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes definition row, severity, and macro."
        },
        {
          "id": "scan-boundary",
          "statement": "No resolved 0F001 report group was found in the locked PostgreSQL 18.6 core/contrib call scan.",
          "sources": [
            "src.calls.REL_18_6",
            "src.errcodes.18.6"
          ],
          "method": "Compare resolved report groups with the fixed macro mapping.",
          "limits": "The scan does not cover external wrappers, drivers, extensions, remote systems, or user code; absence from this scan is not an absolute absence claim."
        },
        {
          "id": "history-boundary",
          "statement": "The locked release definitions establish catalogue presence from the known 7.4 boundary; they do not establish a precise introducing release or runtime use.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Compare canonical release-definition facts with the available history boundary.",
          "limits": "Definition presence is not an emitting-path observation."
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "resolved-call-scan",
          "status": "definition_only",
          "evidence_ids": [
            "scan-boundary"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history-boundary"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "scan-boundary"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "0L000",
      "condition_name": "invalid_grantor",
      "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",
          "tag": "REL_18_6"
        },
        {
          "id": "src.calls.REL_10_23",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "00d16d3eb01b71ccf1b245c8f3102f9d0ec9f36fb02777b8dd1b99fcb263040c",
          "tag": "REL_10_23"
        },
        {
          "id": "src.aclparse-grantor-fallback.18.6",
          "kind": "upstream_source",
          "source_role": "source_path",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/acl.c",
          "sha256": "623f2dd01c1d393d3b224c7622dc2ec946faced444c1f5fd5e396e037903a5b0",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/acl.c#L408-L411"
        },
        {
          "id": "src.aclparse-grantor-fallback.10.23",
          "kind": "upstream_source",
          "source_role": "source_path",
          "tag": "REL_10_23",
          "commit": "02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4",
          "path": "src/backend/utils/adt/acl.c",
          "sha256": "3cfe29c06d211130552d2aab88f61dcdd9a5287c9ab8c450d48562056b32829e",
          "url": "https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/utils/adt/acl.c#L350-L353"
        },
        {
          "id": "src.aclparse-slash-missing-name.10.23",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_10_23",
          "commit": "02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4",
          "path": "src/backend/utils/adt/acl.c",
          "sha256": "3cfe29c06d211130552d2aab88f61dcdd9a5287c9ab8c450d48562056b32829e",
          "url": "https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/utils/adt/acl.c#L338-L344"
        },
        {
          "id": "manifest.0L000",
          "kind": "local_artifact",
          "source_role": "case_manifest",
          "sha256": "1c88601f15fe25f7ae25c1da2379a28f1f4508e15e5124eb66c6a9291d05cfcb",
          "tag": "workspace"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "statement": "0L000 is the invalid_grantor condition in Class 0L.",
          "method": "Read the fixed errcodes.txt definition and the locked catalogue metadata.",
          "limits": "Directory identity does not identify every backend or client path.",
          "sources": [
            "src.errcodes.18.6"
          ]
        },
        {
          "id": "mechanism.source-boundary",
          "statement": "The fixed aclparse path accepts ACL item text without a /grantor suffix for backward compatibility, defaults the grantor to BOOTSTRAP_SUPERUSERID, and emits WARNING 0L000. If a slash is present but no name follows it, the parser instead emits 22P02; this is ACL text parsing rather than bootstrap or ACL initialization and is not an ordinary GRANT failure.",
          "method": "Read the complete fixed aclparse branch in REL_18_6 and REL_10_23, including the slash-without-name error branch and the omitted-grantor fallback.",
          "limits": "This is a bounded source claim; no natural SQLSTATE case was selected, and the warning's numeric user ID is dynamic.",
          "sources": [
            "src.aclparse-grantor-fallback.18.6",
            "src.aclparse-grantor-fallback.10.23",
            "src.aclparse-slash-missing-name.10.23"
          ]
        },
        {
          "id": "versions.catalogue-boundary",
          "statement": "The locked catalogue records 0L000 in the listed snapshots; this page compares only the fixed REL_18_6 and REL_10_23 aclparse source paths and has no selected natural runtime.",
          "method": "Read the generated facts block and fixed aclparse source records; no runtime result is used for this source-only page.",
          "limits": "Presence in a definition file is not an exact behavioral introduction, and the fixed source paths do not prove every intermediate release.",
          "sources": [
            "src.errcodes.18.6",
            "src.aclparse-grantor-fallback.18.6",
            "src.aclparse-grantor-fallback.10.23"
          ]
        }
      ],
      "messages": [
        {
          "id": "message.aclparse-grantor-fallback",
          "sqlstate": "0L000",
          "severity_source": "explicit WARNING",
          "sources": [
            "src.aclparse-grantor-fallback.18.6",
            "src.aclparse-grantor-fallback.10.23"
          ],
          "primary_template": "defaulting grantor to user ID %u",
          "limits": "The %u value is BOOTSTRAP_SUPERUSERID in the fixed fallback branch; this message is emitted for ACL text without a /grantor suffix."
        },
        {
          "id": "message.aclparse-slash-missing-name",
          "sqlstate": "22P02",
          "severity_source": "explicit ERROR",
          "sources": [
            "src.aclparse-slash-missing-name.10.23"
          ],
          "primary_template": "a name must follow the \"/\" sign"
        }
      ],
      "usage_evidence": [
        {
          "scope": "SQLSTATE directory identity",
          "status": "definition_only",
          "evidence_ids": [
            "identity.class-and-condition",
            "src.errcodes.18.6"
          ]
        },
        {
          "scope": "Fixed source or definition boundary",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "mechanism.source-boundary",
            "src.aclparse-grantor-fallback.18.6",
            "src.aclparse-grantor-fallback.10.23",
            "src.aclparse-slash-missing-name.10.23"
          ]
        },
        {
          "scope": "Locked release presence and bounded version comparison",
          "status": "definition_only",
          "evidence_ids": [
            "versions.catalogue-boundary",
            "src.errcodes.18.6"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "0LP01",
      "condition_name": "invalid_grant_operation",
      "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",
          "tag": "REL_18_6"
        },
        {
          "id": "src.calls.REL_10_23",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "00d16d3eb01b71ccf1b245c8f3102f9d0ec9f36fb02777b8dd1b99fcb263040c",
          "tag": "REL_10_23"
        },
        {
          "id": "src.acl-invalid-grant-dynamic.18.6",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/catalog/aclchk.c",
          "sha256": "9700258318959b47c42edb423418fb511dd3a008023e732f601eecf4c80868f8",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/catalog/aclchk.c#L585-L587"
        },
        {
          "id": "src.acl-invalid-grant-dynamic.10.23",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_10_23",
          "commit": "02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4",
          "path": "src/backend/catalog/aclchk.c",
          "sha256": "3a4330bd55ea8c0ec12324d7046ec31d64c920f99196235b84612d6cd1a4b26c",
          "url": "https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/catalog/aclchk.c#L548-L550"
        },
        {
          "id": "manifest.0LP01",
          "kind": "local_artifact",
          "source_role": "case_manifest",
          "sha256": "da87dfe02737841ad5fcd3bdcf11a3db4d2d47335fbe3f8710603bc66bc0bb39",
          "tag": "workspace"
        },
        {
          "id": "snippet-registry.0LP01",
          "kind": "local_artifact",
          "source_role": "snippet_registry",
          "sha256": "4689f3bc44bd388dbca7965d35b4c04903204e66a0e1c6435dbdf950822f0fda",
          "tag": "workspace"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "statement": "0LP01 is the invalid_grant_operation condition in Class 0L.",
          "method": "Read the fixed errcodes.txt definition and the locked catalogue metadata.",
          "limits": "Directory identity does not identify every backend or client path.",
          "sources": [
            "src.errcodes.18.6"
          ]
        },
        {
          "id": "mechanism.backend-path",
          "statement": "The fixed source paths associated with 0LP01 report the condition in the mechanism selected for this page.",
          "method": "Trace the resolved source call records at the fixed release commits and compare their dynamic message fields.",
          "limits": "Other calls can retain the same SQLSTATE with different context or text.",
          "sources": [
            "src.acl-invalid-grant-dynamic.18.6",
            "src.acl-invalid-grant-dynamic.10.23"
          ]
        },
        {
          "id": "runtime.representative-case",
          "statement": "The selected invalid_grant_operation case passed with the expected structured diagnostics, recovery assertions, and cleanup on PostgreSQL 18.6 and 10.21.",
          "method": "Run the shared registry case on isolated runner-owned latest and PG10 targets; inspect the final summaries and raw results.",
          "limits": "This covers the selected case and versions only; it does not generalize to every driver, proxy, or intermediate release.",
          "sources": [
            "snippet-registry.0LP01",
            "manifest.0LP01"
          ],
          "runtime": [
            "runtime.0LP01-conn-test-latest.latest",
            "runtime.0LP01-conn-test-pg10.pg10"
          ]
        },
        {
          "id": "versions.catalogue-boundary",
          "statement": "The locked catalogue records 0LP01 in the listed snapshots; the runtime comparison here is limited to PostgreSQL 18.6 and 10.21.",
          "method": "Read the generated facts block and locked manifest, then compare the selected target summaries.",
          "limits": "Presence in a definition file is not an exact behavioral introduction; the two runtime targets do not prove all middle versions.",
          "sources": [
            "src.errcodes.18.6",
            "src.calls.REL_18_6",
            "src.calls.REL_10_23"
          ]
        }
      ],
      "messages": [
        {
          "id": "message.invalid-grant-dynamic",
          "sqlstate": "0LP01",
          "severity_source": "explicit ERROR",
          "sources": [
            "src.acl-invalid-grant-dynamic.18.6",
            "src.acl-invalid-grant-dynamic.10.23"
          ],
          "primary_template": null,
          "dynamic_format": "errmsg(errormsg, privilege_to_string(priv))",
          "observed_primary_example": "invalid privilege type INSERT for sequence",
          "limits": "The primary is dynamically assembled from the object and privilege; the example is an observed instantiation, not a static format string."
        }
      ],
      "usage_evidence": [
        {
          "scope": "SQLSTATE directory identity",
          "status": "definition_only",
          "evidence_ids": [
            "identity.class-and-condition",
            "src.errcodes.18.6"
          ]
        },
        {
          "scope": "Selected backend mechanism",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "mechanism.backend-path",
            "src.acl-invalid-grant-dynamic.18.6",
            "src.acl-invalid-grant-dynamic.10.23"
          ]
        },
        {
          "scope": "Observed invalid_grant_operation on isolated targets",
          "status": "observed_runtime",
          "evidence_ids": [
            "runtime.representative-case",
            "snippet-registry.0LP01",
            "runtime.0LP01-conn-test-latest.latest",
            "runtime.0LP01-conn-test-pg10.pg10"
          ]
        },
        {
          "scope": "Locked release presence and bounded version comparison",
          "status": "definition_only",
          "evidence_ids": [
            "versions.catalogue-boundary",
            "src.errcodes.18.6"
          ]
        }
      ],
      "runtime": [
        {
          "id": "runtime.0LP01-conn-test-latest.latest",
          "kind": "runtime_observation",
          "run_id": "0LP01-conn-test-latest",
          "target": "latest",
          "status": "passed",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "cases": [
            "invalid_grant_operation"
          ],
          "summary_sha256": "7cd561a0a16c3b4a377ce6d684a8c5929a690b05dc92a64e179a1fad18969885",
          "raw_sha256": "8ca360f063bded4bb4b1c964f030d855b1d05623576ceab7b9f9df82ecaacf54",
          "case_manifest_sha256": "da87dfe02737841ad5fcd3bdcf11a3db4d2d47335fbe3f8710603bc66bc0bb39",
          "snippet_registry": {
            "sha256": "4689f3bc44bd388dbca7965d35b4c04903204e66a0e1c6435dbdf950822f0fda"
          },
          "environment": {
            "target_kind": "latest",
            "server_version": "18.6 (Homebrew)",
            "server_version_num": "180006",
            "machine": "arm64",
            "platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O",
            "libpq_version": "18.6",
            "psycopg_version": "3.3.5",
            "python_version": "3.14.6 (main, Jun 10 2026, 10:03:53) [Clang 21.0.0 (clang-2100.0.123.102)]",
            "locale": "en_US.UTF-8",
            "lc_messages": "C",
            "log_destination": "csvlog,jsonlog"
          },
          "observed": {
            "connection_autocommit": true,
            "diagnostic": {
              "column_name": null,
              "constraint_name": null,
              "context": null,
              "datatype_name": null,
              "exception_type": "InvalidGrantOperation",
              "internal_position": null,
              "internal_query": null,
              "message_detail": null,
              "message_hint": null,
              "message_primary": "invalid privilege type INSERT for sequence",
              "schema_name": null,
              "severity": "ERROR",
              "severity_nonlocalized": "ERROR",
              "source_file": "aclchk.c",
              "source_function": "ExecuteGrantStmt",
              "source_line": "587",
              "sqlstate": "0LP01",
              "statement_position": null,
              "table_name": null,
              "text": "invalid privilege type INSERT for sequence"
            },
            "role": "u0lp01_4a1b230fc0",
            "statuses": {
              "after_error": "IDLE",
              "final": "IDLE"
            },
            "valid_privilege": "USAGE"
          },
          "assertions": [
            {
              "expected": "0LP01",
              "name": "grant operation SQLSTATE",
              "observed": "0LP01",
              "passed": true
            },
            {
              "expected": "invalid privilege type INSERT for sequence",
              "name": "grant operation diagnostic",
              "observed": "invalid privilege type INSERT for sequence",
              "passed": true
            },
            {
              "expected": "IDLE, USAGE granted, IDLE",
              "name": "valid sequence privilege repairs path",
              "observed": {
                "after_error": "IDLE",
                "final": "IDLE",
                "granted": true
              },
              "passed": true
            }
          ],
          "cleanup": {
            "case": {
              "errors": [],
              "passed": true
            },
            "target_stop": {
              "argv": [
                "/opt/homebrew/Cellar/postgresql@18/18.6/bin/pg_ctl",
                "-D",
                "<local runtime artifact>",
                "-m",
                "fast",
                "-w",
                "stop"
              ],
              "elapsed_seconds": 0.111,
              "returncode": 0,
              "stderr": "",
              "stdout": "waiting for server to shut down.... done\nserver stopped\n"
            }
          },
          "limits": "Disposable runner-owned target only; this is a bounded mechanism case, not a guarantee for every client or network path."
        },
        {
          "id": "runtime.0LP01-conn-test-pg10.pg10",
          "kind": "runtime_observation",
          "run_id": "0LP01-conn-test-pg10",
          "target": "pg10",
          "status": "passed",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "cases": [
            "invalid_grant_operation"
          ],
          "summary_sha256": "dca3d6e0e507a3adbe5bc637b52e8c4f503f6cc813872af135ac542ca1312603",
          "raw_sha256": "948874e5c9479ae408cf528de73c57fb03410e9dc8eb0d3dd8cf8751a6f19c09",
          "case_manifest_sha256": "da87dfe02737841ad5fcd3bdcf11a3db4d2d47335fbe3f8710603bc66bc0bb39",
          "snippet_registry": {
            "sha256": "4689f3bc44bd388dbca7965d35b4c04903204e66a0e1c6435dbdf950822f0fda"
          },
          "environment": {
            "target_kind": "pg10",
            "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
            "server_version_num": "100021",
            "machine": "arm64",
            "platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O",
            "libpq_version": "18.6",
            "psycopg_version": "3.3.5",
            "python_version": "3.14.6 (main, Jun 10 2026, 10:03:53) [Clang 21.0.0 (clang-2100.0.123.102)]",
            "locale": "en_US.UTF-8",
            "lc_messages": "en_US.utf8",
            "log_destination": "csvlog"
          },
          "observed": {
            "connection_autocommit": true,
            "diagnostic": {
              "column_name": null,
              "constraint_name": null,
              "context": null,
              "datatype_name": null,
              "exception_type": "InvalidGrantOperation",
              "internal_position": null,
              "internal_query": null,
              "message_detail": null,
              "message_hint": null,
              "message_primary": "invalid privilege type INSERT for sequence",
              "schema_name": null,
              "severity": "ERROR",
              "severity_nonlocalized": "ERROR",
              "source_file": "aclchk.c",
              "source_function": "ExecuteGrantStmt",
              "source_line": "550",
              "sqlstate": "0LP01",
              "statement_position": null,
              "table_name": null,
              "text": "invalid privilege type INSERT for sequence"
            },
            "role": "u0lp01_5cf42727d1",
            "statuses": {
              "after_error": "IDLE",
              "final": "IDLE"
            },
            "valid_privilege": "USAGE"
          },
          "assertions": [
            {
              "expected": "0LP01",
              "name": "grant operation SQLSTATE",
              "observed": "0LP01",
              "passed": true
            },
            {
              "expected": "invalid privilege type INSERT for sequence",
              "name": "grant operation diagnostic",
              "observed": "invalid privilege type INSERT for sequence",
              "passed": true
            },
            {
              "expected": "IDLE, USAGE granted, IDLE",
              "name": "valid sequence privilege repairs path",
              "observed": {
                "after_error": "IDLE",
                "final": "IDLE",
                "granted": true
              },
              "passed": true
            }
          ],
          "cleanup": {
            "case": {
              "errors": [],
              "passed": true
            },
            "target_stop": {
              "cleanup": {
                "argv": [
                  "/usr/local/bin/docker",
                  "rm",
                  "-f",
                  "-v",
                  "sqlstate0lp01_0LP01conntestpg10_pg10"
                ],
                "elapsed_seconds": 0.286,
                "returncode": 0,
                "stderr": "",
                "stdout": "sqlstate0lp01_0LP01conntestpg10_pg10\n"
              },
              "inspect": {
                "argv": [
                  "/usr/local/bin/docker",
                  "inspect",
                  "sqlstate0lp01_0LP01conntestpg10_pg10"
                ],
                "elapsed_seconds": 0.017,
                "returncode": 0,
                "stderr": "",
                "stdout": "[\n    {\n        \"Id\": \"3f395360a945030c44fc65e00b4737c6694f02ed2b3dbb3c7f4e268fe929bf9f\",\n        \"Created\": \"2026-09-09T14:55:21.496591712Z\",\n        \"Path\": \"docker-entrypoint.sh\",\n        \"Args\": [\n            \"postgres\",\n            \"-c\",\n            \"listen_addresses=*\",\n            \"-c\",\n            \"log_destination=csvlog\",\n            \"-c\",\n            \"logging_collector=on\",\n            \"-c\",\n            \"log_directory=log\",\n            \"-c\",\n            \"log_filename=postgresql-%Y%m%d%H%M%S.log\",\n            \"-c\",\n            \"log_min_messages=error\",\n            \"-c\",\n            \"log_min_error_statement=error\",\n            \"-c\",\n            \"log_error_verbosity=verbose\",\n            \"-c\",\n            \"wal_level=logical\",\n            \"-c\",\n            \"max_wal_senders=10\",\n            \"-c\",\n            \"max_replication_slots=10\"\n        ],\n        \"State\": {\n            \"Status\": \"running\",\n            \"Running\": true,\n            \"Paused\": false,\n            \"Restarting\": false,\n            \"OOMKilled\": false,\n            \"Dead\": false,\n            \"Pid\": 54592,\n            \"ExitCode\": 0,\n            \"Error\": \"\",\n            \"StartedAt\": \"2026-09-09T14:55:21.569636712Z\",\n            \"FinishedAt\": \"0001-01-01T00:00:00Z\"\n        },\n        \"Image\": \"sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc\",\n        \"ResolvConfPath\": \"/var/lib/docker/containers/3f395360a945030c44fc65e00b4737c6694f02ed2b3dbb3c7f4e268fe929bf9f/resolv.conf\",\n        \"HostnamePath\": \"/var/lib/docker/containers/3f395360a945030c44fc65e00b4737c6694f02ed2b3dbb3c7f4e268fe929bf9f/hostname\",\n        \"HostsPath\": \"/var/lib/docker/containers/3f395360a945030c44fc65e00b4737c6694f02ed2b3dbb3c7f4e268fe929bf9f/hosts\",\n        \"LogPath\": \"/var/lib/docker/containers/3f395360a945030c44fc65e00b4737c6694f02ed2b3dbb3c7f4e268fe929bf9f/3f395360a945030c44fc65e00b4737c6694f02ed2b3dbb3c7f4e268fe929bf9f-json.log\",\n        \"Name\": \"/sqlstate0lp01_0LP01conntestpg10_pg10\",\n        \"RestartCount\": 0,\n        \"Driver\": \"overlayfs\",\n        \"Platform\": \"linux\",\n        \"MountLabel\": \"\",\n        \"ProcessLabel\": \"\",\n        \"AppArmorProfile\": \"\",\n        \"ExecIDs\": null,\n        \"HostConfig\": {\n            \"Binds\": null,\n            \"ContainerIDFile\": \"\",\n            \"LogConfig\": {\n                \"Type\": \"json-file\",\n                \"Config\": {}\n            },\n            \"NetworkMode\": \"bridge\",\n            \"PortBindings\": {\n                \"5432/tcp\": [\n                    {\n                        \"HostIp\": \"127.0.0.1\",\n                        \"HostPort\": \"\"\n                    }\n                ]\n            },\n            \"RestartPolicy\": {\n                \"Name\": \"no\",\n                \"MaximumRetryCount\": 0\n            },\n            \"AutoRemove\": false,\n            \"VolumeDriver\": \"\",\n            \"VolumesFrom\": null,\n            \"ConsoleSize\": [\n                0,\n                0\n            ],\n            \"CapAdd\": null,\n            \"CapDrop\": null,\n            \"CgroupnsMode\": \"private\",\n            \"Dns\": null,\n            \"DnsOptions\": [],\n            \"DnsSearch\": [],\n            \"ExtraHosts\": null,\n            \"GroupAdd\": null,\n            \"IpcMode\": \"private\",\n            \"Cgroup\": \"\",\n            \"Links\": null,\n            \"OomScoreAdj\": 0,\n            \"PidMode\": \"\",\n            \"Privileged\": false,\n            \"PublishAllPorts\": false,\n            \"ReadonlyRootfs\": false,\n            \"SecurityOpt\": null,\n            \"UTSMode\": \"\",\n            \"UsernsMode\": \"\",\n            \"ShmSize\": 67108864,\n            \"Runtime\": \"runc\",\n            \"Isolation\": \"\",\n            \"CpuShares\": 0,\n            \"Memory\": 0,\n            \"NanoCpus\": 0,\n            \"CgroupParent\": \"\",\n            \"BlkioWeight\": 0,\n            \"BlkioWeightDevice\": [],\n            \"BlkioDeviceReadBps\": [],\n            \"BlkioDeviceWriteBps\": [],\n            \"BlkioDeviceReadIOps\": [],\n            \"BlkioDeviceWriteIOps\": [],\n            \"CpuPeriod\": 0,\n            \"CpuQuota\": 0,\n            \"CpuRealtimePeriod\": 0,\n            \"CpuRealtimeRuntime\": 0,\n            \"CpusetCpus\": \"\",\n            \"CpusetMems\": \"\",\n            \"Devices\": [],\n            \"DeviceCgroupRules\": null,\n            \"DeviceRequests\": null,\n            \"MemoryReservation\": 0,\n            \"MemorySwap\": 0,\n            \"MemorySwappiness\": null,\n            \"OomKillDisable\": null,\n            \"PidsLimit\": null,\n            \"Ulimits\": [],\n            \"CpuCount\": 0,\n            \"CpuPercent\": 0,\n            \"IOMaximumIOps\": 0,\n            \"IOMaximumBandwidth\": 0,\n            \"MaskedPaths\": [\n                \"/proc/acpi\",\n                \"/proc/asound\",\n                \"/proc/interrupts\",\n                \"/proc/kcore\",\n                \"/proc/keys\",\n                \"/proc/latency_stats\",\n                \"/proc/sched_debug\",\n                \"/proc/scsi\",\n                \"/proc/timer_list\",\n                \"/proc/timer_stats\",\n                \"/sys/devices/virtual/powercap\",\n                \"/sys/firmware\"\n            ],\n            \"ReadonlyPaths\": [\n                \"/proc/bus\",\n                \"/proc/fs\",\n                \"/proc/irq\",\n                \"/proc/sys\",\n                \"/proc/sysrq-trigger\"\n            ]\n        },\n        \"Storage\": {\n            \"RootFS\": {\n                \"Snapshot\": {\n                    \"Name\": \"overlayfs\"\n                }\n            }\n        },\n        \"Mounts\": [\n            {\n                \"Type\": \"volume\",\n                \"Name\": \"33e2f6e51c57806bfa5b036c0e2dd31e9b11184447ea03f73098a8506b5bc3e1\",\n                \"Source\": \"/var/lib/docker/volumes/33e2f6e51c57806bfa5b036c0e2dd31e9b11184447ea03f73098a8506b5bc3e1/_data\",\n                \"Destination\": \"/var/lib/postgresql/data\",\n                \"Driver\": \"local\",\n                \"Mode\": \"\",\n                \"RW\": true,\n                \"Propagation\": \"\"\n            }\n        ],\n        \"Config\": {\n            \"Hostname\": \"3f395360a945\",\n            \"Domainname\": \"\",\n            \"User\": \"\",\n            \"AttachStdin\": false,\n            \"AttachStdout\": false,\n            \"AttachStderr\": false,\n            \"ExposedPorts\": {\n                \"5432/tcp\": {}\n            },\n            \"Tty\": false,\n            \"OpenStdin\": false,\n            \"StdinOnce\": false,\n            \"Env\": [\n                \"POSTGRES_HOST_AUTH_METHOD=trust\",\n                \"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/10/bin\",\n                \"GOSU_VERSION=1.14\",\n                \"LANG=en_US.utf8\",\n                \"PG_MAJOR=10\",\n                \"PG_VERSION=10.21-1.pgdg90+1\",\n                \"PGDATA=/var/lib/postgresql/data\"\n            ],\n            \"Cmd\": [\n                \"postgres\",\n                \"-c\",\n                \"listen_addresses=*\",\n                \"-c\",\n                \"log_destination=csvlog\",\n                \"-c\",\n                \"logging_collector=on\",\n                \"-c\",\n                \"log_directory=log\",\n                \"-c\",\n                \"log_filename=postgresql-%Y%m%d%H%M%S.log\",\n                \"-c\",\n                \"log_min_messages=error\",\n                \"-c\",\n                \"log_min_error_statement=error\",\n                \"-c\",\n                \"log_error_verbosity=verbose\",\n                \"-c\",\n                \"wal_level=logical\",\n                \"-c\",\n                \"max_wal_senders=10\",\n                \"-c\",\n                \"max_replication_slots=10\"\n            ],\n            \"Image\": \"postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc\",\n            \"Volumes\": {\n                \"/var/lib/postgresql/data\": {}\n            },\n            \"WorkingDir\": \"\",\n            \"Entrypoint\": [\n                \"docker-entrypoint.sh\"\n            ],\n            \"Labels\": {},\n            \"StopSignal\": \"SIGINT\",\n            \"StopTimeout\": 1\n        },\n        \"NetworkSettings\": {\n            \"SandboxID\": \"75440c9096643596c1104b2140b96d6da84a33d5ff91846f458c0e1318d1e3f6\",\n            \"SandboxKey\": \"/var/run/docker/netns/75440c909664\",\n            \"Ports\": {\n                \"5432/tcp\": [\n                    {\n                        \"HostIp\": \"127.0.0.1\",\n                        \"HostPort\": \"56636\"\n                    }\n                ]\n            },\n            \"Networks\": {\n                \"bridge\": {\n                    \"IPAMConfig\": null,\n                    \"Links\": null,\n                    \"Aliases\": null,\n                    \"DriverOpts\": null,\n                    \"GwPriority\": 0,\n                    \"NetworkID\": \"aed51554f8cd8bac69ecd4f073e41e147fda7b458e9d95be2af472651f2e825c\",\n                    \"EndpointID\": \"218862d9ddac6dc90f6bdd63c03e3f99598b07f17a3e794b91f126fec2975621\",\n                    \"Gateway\": \"172.17.0.1\",\n                    \"IPAddress\": \"172.17.0.53\",\n                    \"MacAddress\": \"c6:7c:78:46:55:e8\",\n                    \"IPPrefixLen\": 16,\n                    \"IPv6Gateway\": \"\",\n                    \"GlobalIPv6Address\": \"\",\n                    \"GlobalIPv6PrefixLen\": 0,\n                    \"DNSNames\": null\n                }\n            }\n        },\n        \"ImageManifestDescriptor\": {\n            \"mediaType\": \"application/vnd.docker.distribution.manifest.v2+json\",\n            \"digest\": \"sha256:52aada7978f1eef3b6b52a51afb7a3defd69254d00c946cb90d2ceb32b8ffce7\",\n            \"size\": 3246,\n            \"platform\": {\n                \"architecture\": \"arm64\",\n                \"os\": \"linux\",\n                \"variant\": \"v8\"\n            }\n        }\n    }\n]\n"
              }
            }
          },
          "limits": "Disposable runner-owned target only; this is a bounded mechanism case, not a guarantee for every client or network path.",
          "image": "postgres:10"
        }
      ]
    },
    {
      "sqlstate": "0P000",
      "condition_name": "invalid_role_specification",
      "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",
          "tag": "REL_18_6"
        },
        {
          "id": "src.calls.REL_10_23",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "00d16d3eb01b71ccf1b245c8f3102f9d0ec9f36fb02777b8dd1b99fcb263040c",
          "tag": "REL_10_23"
        },
        {
          "id": "src.auth-name-translation.18.6",
          "kind": "upstream_source",
          "source_role": "source_path",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/libpq/auth.c",
          "sha256": "94252cb1e2c49b0ddb15f6596d0abf8056c84493de07cc81439da4c5b07018f1",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/libpq/auth.c#L1514-L1516"
        },
        {
          "id": "src.auth-name-translation.10.23",
          "kind": "upstream_source",
          "source_role": "source_path",
          "tag": "REL_10_23",
          "commit": "02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4",
          "path": "src/backend/libpq/auth.c",
          "sha256": "15418faa6d6ee1b2a4ad1e50ebc9b34c2daf4799f7062df425e33dbf777ade61",
          "url": "https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/libpq/auth.c#L1699-L1701"
        },
        {
          "id": "src.auth-sspi-upn.10.23",
          "kind": "upstream_source",
          "source_role": "source_path",
          "tag": "REL_10_23",
          "commit": "02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4",
          "path": "src/backend/libpq/auth.c",
          "sha256": "15418faa6d6ee1b2a4ad1e50ebc9b34c2daf4799f7062df425e33dbf777ade61",
          "url": "https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/libpq/auth.c#L1666-L1758"
        },
        {
          "id": "manifest.0P000",
          "kind": "local_artifact",
          "source_role": "case_manifest",
          "sha256": "2460d980be19d06e88766a7907f6f3a301ae4786dcab8c019736a904116aadc4",
          "tag": "workspace"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "statement": "0P000 is the invalid_role_specification condition in Class 0P.",
          "method": "Read the fixed errcodes.txt definition and the locked catalogue metadata.",
          "limits": "Directory identity does not identify every backend or client path.",
          "sources": [
            "src.errcodes.18.6"
          ]
        },
        {
          "id": "mechanism.source-boundary",
          "statement": "Under ENABLE_SSPI, the fixed pg_SSPI_make_upn path builds a DOMAIN\\user SAM name, calls Windows TranslateName to obtain a user@realm UPN, and logs 0P000 when translation fails, the result has no @, or the realm or translated account exceeds its target buffer. These are server LOG branches, not client ErrorResponse fields.",
          "method": "Read the complete fixed SSPI authentication and pg_SSPI_make_upn paths in REL_18_6 and REL_10_23, including each explicit LOG branch.",
          "limits": "This is a bounded source claim under ENABLE_SSPI; the disposable trust target cannot faithfully exercise it, and it is not an observed natural SQLSTATE case.",
          "sources": [
            "src.auth-name-translation.18.6",
            "src.auth-name-translation.10.23",
            "src.auth-sspi-upn.10.23"
          ]
        },
        {
          "id": "versions.catalogue-boundary",
          "statement": "The locked catalogue records 0P000 in the listed snapshots; this page compares only the fixed REL_18_6 and REL_10_23 SSPI source paths and has no selected natural runtime.",
          "method": "Read the generated facts block and fixed SSPI source records; no runtime result is used for this source-only page.",
          "limits": "Presence in a definition file is not an exact behavioral introduction, and the fixed source paths do not prove every intermediate release or authentication configuration.",
          "sources": [
            "src.errcodes.18.6",
            "src.auth-name-translation.18.6",
            "src.auth-sspi-upn.10.23"
          ]
        }
      ],
      "messages": [
        {
          "id": "message.auth-name-translation",
          "sqlstate": "0P000",
          "severity_source": "LOG",
          "sources": [
            "src.auth-name-translation.18.6",
            "src.auth-name-translation.10.23",
            "src.auth-sspi-upn.10.23"
          ],
          "primary_template": "could not translate name"
        },
        {
          "id": "message.auth-sspi-realm-too-long",
          "sqlstate": "0P000",
          "severity_source": "explicit LOG",
          "sources": [
            "src.auth-sspi-upn.10.23"
          ],
          "primary_template": "realm name too long"
        },
        {
          "id": "message.auth-sspi-account-too-long",
          "sqlstate": "0P000",
          "severity_source": "explicit LOG",
          "sources": [
            "src.auth-sspi-upn.10.23"
          ],
          "primary_template": "translated account name too long"
        }
      ],
      "usage_evidence": [
        {
          "scope": "SQLSTATE directory identity",
          "status": "definition_only",
          "evidence_ids": [
            "identity.class-and-condition",
            "src.errcodes.18.6"
          ]
        },
        {
          "scope": "Fixed source or definition boundary",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "mechanism.source-boundary",
            "src.auth-name-translation.18.6",
            "src.auth-name-translation.10.23",
            "src.auth-sspi-upn.10.23"
          ]
        },
        {
          "scope": "Locked release presence and bounded version comparison",
          "status": "definition_only",
          "evidence_ids": [
            "versions.catalogue-boundary",
            "src.errcodes.18.6"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "0Z000",
      "condition_name": "diagnostics_exception",
      "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#L141"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "0Z000 is diagnostics_exception in SQLSTATE Class 0Z.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes definition row, severity, and macro."
        },
        {
          "id": "scan-boundary",
          "statement": "No resolved 0Z000 report group was found in the locked PostgreSQL 18.6 core/contrib call scan.",
          "sources": [
            "src.calls.REL_18_6",
            "src.errcodes.18.6"
          ],
          "method": "Compare resolved report groups with the fixed macro mapping.",
          "limits": "The scan does not cover external wrappers, drivers, extensions, remote systems, or user code; absence from this scan is not an absolute absence claim."
        },
        {
          "id": "history-boundary",
          "statement": "The locked release definitions establish catalogue presence from the known 9.2.0 boundary; they do not establish a precise introducing release or runtime use.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Compare canonical release-definition facts with the available history boundary.",
          "limits": "Definition presence is not an emitting-path observation."
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "resolved-call-scan",
          "status": "definition_only",
          "evidence_ids": [
            "scan-boundary"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history-boundary"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "scan-boundary"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "0Z002",
      "condition_name": "stacked_diagnostics_accessed_without_active_handler",
      "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#L142"
        },
        {
          "id": "src.pl_exec.18.6",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/pl/plpgsql/src/pl_exec.c",
          "sha256": "0df3c70a6bccf6dddf443fb99e152a16a67009827c44a820597e98e585cb8b20",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/pl/plpgsql/src/pl_exec.c",
          "lines": "2421-2423,3747-3749"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "0Z002 is stacked_diagnostics_accessed_without_active_handler in SQLSTATE Class 0Z.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes definition row, severity, and macro."
        },
        {
          "id": "resolved-path",
          "statement": "The fixed PostgreSQL 18.6 source contains the report path and message context described on the page.",
          "sources": [
            "src.pl_exec.18.6"
          ],
          "method": "Read the complete source context around the resolved report group.",
          "limits": "This is source confirmation, not a runtime observation in this batch."
        },
        {
          "id": "history-boundary",
          "statement": "The locked release definitions establish catalogue presence from the known 9.2.0 boundary; they do not establish a precise introducing release or runtime use.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Compare canonical release-definition facts with the available history boundary.",
          "limits": "Definition presence is not an emitting-path observation."
        }
      ],
      "messages": [
        {
          "id": "message.get-stacked-outside-handler",
          "sqlstate": "0Z002",
          "primary_template": "GET STACKED DIAGNOSTICS cannot be used outside an exception handler",
          "severity_source": "ERROR",
          "sources": [
            "src.pl_exec.18.6"
          ]
        },
        {
          "id": "message.raise-without-parameters-outside-handler",
          "sqlstate": "0Z002",
          "primary_template": "RAISE without parameters cannot be used outside an exception handler",
          "severity_source": "ERROR",
          "sources": [
            "src.pl_exec.18.6"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "resolved-path"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history-boundary"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "resolved-path"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "10608",
      "condition_name": "invalid_argument_for_xquery",
      "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#L148"
        },
        {
          "id": "src.xml.18.6",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/xml.c",
          "sha256": "f1c70b5ee5ee9a20a41d9b2c27bc7a8a50dbd9489ba462a4a678f7f55f14d",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/xml.c",
          "lines": "4388-4390,4825-4861"
        },
        {
          "id": "src.xml2.xpath.18.6",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "contrib/xml2/xpath.c",
          "sha256": "2eb71a90f3cf2f3d0f4137327600f410dcade58ce1dbde93ea0cf90d81430792",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/contrib/xml2/xpath.c",
          "lines": "400,664"
        },
        {
          "id": "src.xml2.xslt.18.6",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "contrib/xml2/xslt_proc.c",
          "sha256": "a5a76f59e851175955dfa62477fd4a7d7be3fb69b37e7a7e955ab76c8e01d0ae",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/contrib/xml2/xslt_proc.c",
          "lines": "106,141"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "10608 is invalid_argument_for_xquery in SQLSTATE Class 10.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes definition row, severity, and macro."
        },
        {
          "id": "resolved-path",
          "statement": "The fixed PostgreSQL 18.6 source contains the report path and message context described on the page.",
          "sources": [
            "src.xml.18.6",
            "src.xml2.xpath.18.6",
            "src.xml2.xslt.18.6"
          ],
          "method": "Read the complete source context around the resolved report group.",
          "limits": "This is source confirmation, not a runtime observation in this batch."
        },
        {
          "id": "history-boundary",
          "statement": "The locked release definitions establish catalogue presence from the known 18.0 boundary; they do not establish a precise introducing release or runtime use.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Compare canonical release-definition facts with the available history boundary.",
          "limits": "Definition presence is not an emitting-path observation."
        }
      ],
      "messages": [
        {
          "id": "message.xml-empty-xpath",
          "sqlstate": "10608",
          "primary_template": "empty XPath expression",
          "severity_source": "ERROR",
          "sources": [
            "src.xml.18.6"
          ]
        },
        {
          "id": "message.xml-empty-row-path",
          "sqlstate": "10608",
          "primary_template": "row path filter must not be empty string",
          "severity_source": "ERROR",
          "sources": [
            "src.xml.18.6"
          ]
        },
        {
          "id": "message.xml-empty-column-path",
          "sqlstate": "10608",
          "primary_template": "column path filter must not be empty string",
          "severity_source": "ERROR",
          "sources": [
            "src.xml.18.6"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "resolved-path"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history-boundary"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "resolved-path"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "20000",
      "condition_name": "case_not_found",
      "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#L152"
        },
        {
          "id": "src.pl_exec.case.18.6",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/pl/plpgsql/src/pl_exec.c",
          "sha256": "0df3c70a6bccf6dddf443fb99e152a16a67009827c44a820597e98e585cb8b20",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/pl/plpgsql/src/pl_exec.c",
          "lines": "2627-2630"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "20000 is case_not_found in SQLSTATE Class 20.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes definition row, severity, and macro."
        },
        {
          "id": "resolved-path",
          "statement": "The fixed PostgreSQL 18.6 source contains the report path and message context described on the page.",
          "sources": [
            "src.pl_exec.case.18.6"
          ],
          "method": "Read the complete source context around the resolved report group.",
          "limits": "This is source confirmation, not a runtime observation in this batch."
        },
        {
          "id": "history-boundary",
          "statement": "The locked release definitions establish catalogue presence from the known 8.4.0 boundary; they do not establish a precise introducing release or runtime use.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Compare canonical release-definition facts with the available history boundary.",
          "limits": "Definition presence is not an emitting-path observation."
        }
      ],
      "messages": [
        {
          "id": "message.case-not-found",
          "sqlstate": "20000",
          "primary_template": "case not found",
          "hint_template": "CASE statement is missing ELSE part.",
          "severity_source": "ERROR",
          "sources": [
            "src.pl_exec.case.18.6"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "resolved-path"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history-boundary"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "resolved-path"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "21000",
      "condition_name": "cardinality_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"
        },
        {
          "id": "src.nodeSubplan.18.6",
          "kind": "upstream_source",
          "source_role": "source_path",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/executor/nodeSubplan.c",
          "sha256": "c356a9812691f875974c1f476efa987015ba19e70a4be833a43b692f3554dc47",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/executor/nodeSubplan.c#L296-L298"
        },
        {
          "id": "src.nodeModifyTable.18.6",
          "kind": "upstream_source",
          "source_role": "source_path",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/executor/nodeModifyTable.c",
          "sha256": "0fc3cb180b3443f216142954e43d8ed5f84713d75094ce8cd2785ad8f604bd68",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/executor/nodeModifyTable.c#L2804-L2809"
        },
        {
          "id": "doc.syntax.18.6",
          "kind": "upstream_source",
          "source_role": "official_documentation",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "doc/src/sgml/syntax.sgml",
          "sha256": "449b0c500fccca068d0f8a1db2a5ebb5430eb83e33f12c6cb310a01a7437b635",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/syntax.sgml#L2232-L2238",
          "docs_url": "https://www.postgresql.org/docs/18/functions-subquery.html"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "21000 is the cardinality_violation condition in Class 21.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes.txt row and macro mapping.",
          "limits": "This identifies the protocol condition; it does not select one particular SQL operation."
        },
        {
          "id": "scalar-subquery",
          "statement": "A scalar subquery used as an expression must yield at most one row; the executor reports 21000 when it produces a second row.",
          "sources": [
            "src.nodeSubplan.18.6",
            "src.calls.REL_18_6",
            "doc.syntax.18.6"
          ],
          "method": "Trace ERRCODE_CARDINALITY_VIOLATION and the fixed scalar-subquery documentation.",
          "limits": "A scalar subquery returning zero rows yields NULL; the error is the more-than-one-row case."
        },
        {
          "id": "dml-conflict",
          "statement": "ON CONFLICT DO UPDATE and MERGE can use 21000 when one command would affect the same target row a second time.",
          "sources": [
            "src.nodeModifyTable.18.6",
            "src.calls.REL_18_6"
          ],
          "method": "Read the separate nodeModifyTable report groups and their hints.",
          "limits": "This is a command-level cardinality conflict, not a generic duplicate-key error."
        },
        {
          "id": "runtime",
          "statement": "The selected scalar-subquery case returned 21000 on PostgreSQL 18.6 and 10.21, remained usable in autocommit mode, and succeeded after a one-row predicate.",
          "sources": [
            "runtime.21000-batch1-latest-20260909.latest",
            "runtime.21000-batch1-pg10-20260909.pg10"
          ],
          "method": "Compare the selected summaries, raw outputs, and shared snippet registry.",
          "limits": "The run covers one scalar-subquery path; it does not validate ON CONFLICT, MERGE, PL/pgSQL, dblink, or materialized-view paths."
        }
      ],
      "messages": [
        {
          "id": "message.scalar-subquery",
          "sqlstate": "21000",
          "primary_template": "more than one row returned by a subquery used as an expression",
          "severity_source": "ERROR",
          "sources": [
            "src.nodeSubplan.18.6"
          ],
          "limits": "This is the scalar-subquery template; other 21000 paths have different templates."
        },
        {
          "id": "dml-second-target",
          "sqlstate": "21000",
          "primary_template": "%s command cannot affect row a second time",
          "severity_source": "ERROR",
          "sources": [
            "src.nodeModifyTable.18.6"
          ],
          "limits": "The %s substitution is ON CONFLICT DO UPDATE or MERGE; the hint branch is command-specific.",
          "hint_template": "Ensure that no rows proposed for insertion within the same command have duplicate constrained values. / Ensure that not more than one source row matches any one target row."
        }
      ],
      "usage_evidence": [
        {
          "scope": "scalar-subquery-runtime",
          "status": "observed_runtime",
          "evidence_ids": [
            "runtime",
            "runtime.21000-batch1-latest-20260909.latest",
            "runtime.21000-batch1-pg10-20260909.pg10"
          ]
        },
        {
          "scope": "condition-and-source-paths",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "identity",
            "scalar-subquery",
            "dml-conflict"
          ]
        }
      ],
      "runtime": [
        {
          "id": "runtime.21000-batch1-latest-20260909.latest",
          "run_id": "21000-batch1-latest-20260909",
          "target": "latest",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "status": "passed",
          "cases": [
            "scalar_subquery_cardinality"
          ],
          "summary_sha256": "a0042f75764d6b803750aeacc2e4a1b94f5f9b61fd6a61dc30f77e72937fef9f",
          "raw_sha256": "d2b3cff4ba74cebed39719769cc781555a43805354c0ed9eaa1727b654617c86",
          "snippet_registry": {
            "sha256": "6d820e94518ffca97f407956fdc2df104d47b14263d3117ff59dbc4409774dc2"
          },
          "case_manifest": {
            "sha256": "26525997f7d1220ec953f6451c63ddbbe788272d43050d71be9cfce2f23f17ca"
          },
          "observed": {
            "sqlstate": "21000",
            "primary": "more than one row returned by a subquery used as an expression",
            "status_after_error": "IDLE",
            "valid_result": 1
          }
        },
        {
          "id": "runtime.21000-batch1-pg10-20260909.pg10",
          "run_id": "21000-batch1-pg10-20260909",
          "target": "pg10",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "status": "passed",
          "cases": [
            "scalar_subquery_cardinality"
          ],
          "summary_sha256": "87675457e4ff52f78f0c0075aab0be5e82e290554bafda5515cdbf8abf5f1979",
          "raw_sha256": "ec026f72b65e378fcfcb5b99ccc98055bc899aa3ad811a6cc52b4908c57e7c30",
          "snippet_registry": {
            "sha256": "6d820e94518ffca97f407956fdc2df104d47b14263d3117ff59dbc4409774dc2"
          },
          "case_manifest": {
            "sha256": "26525997f7d1220ec953f6451c63ddbbe788272d43050d71be9cfce2f23f17ca"
          },
          "observed": {
            "sqlstate": "21000",
            "primary": "more than one row returned by a subquery used as an expression",
            "status_after_error": "IDLE",
            "valid_result": 1
          }
        }
      ]
    },
    {
      "sqlstate": "22000",
      "condition_name": "data_exception",
      "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#L161",
          "lines": "161"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        },
        {
          "id": "src.path.array-append",
          "kind": "upstream_source",
          "source_role": "source_guard",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/array_userfuncs.c",
          "sha256": "dc14f95e12c92360f8b10c7546d8af4a0b41a6a0431efc2a4f5b236155eadb50",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/array_userfuncs.c#L173-L175",
          "lines": "173-175"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "22000 is data_exception in SQLSTATE Class 22.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read fixed definition."
        },
        {
          "id": "mechanism.array-append",
          "statement": "array_append accepts an empty or one-dimensional array; a multi-dimensional argument emits 22000 with the dimensionality message.",
          "sources": [
            "src.path.array-append"
          ],
          "method": "Read the complete array_userfuncs.c branch.",
          "limits": "This confirms one core array path, not every Data Exception caller."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 22000 from 7.4 without proving an exact implementation introduction date.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue boundary."
        }
      ],
      "messages": [
        {
          "id": "message.array",
          "sqlstate": "22000",
          "primary_template": "argument must be empty or one-dimensional array",
          "severity_source": "ERROR",
          "sources": [
            "src.path.array-append"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "mechanism.array-append"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "mechanism.array-append"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "22001",
      "condition_name": "string_data_right_truncation",
      "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#L200",
          "lines": "200"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        },
        {
          "id": "src.path.character",
          "kind": "upstream_source",
          "source_role": "source_guard",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/varchar.c",
          "sha256": "aee29b2c745b34a7299d158b8e8c60b2c6c4900a5e3751fd211acea81b431f42",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/varchar.c#L300-L313",
          "lines": "300-313"
        },
        {
          "id": "src.path.varchar",
          "kind": "upstream_source",
          "source_role": "source_guard",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/varchar.c",
          "sha256": "aee29b2c745b34a7299d158b8e8c60b2c6c4900a5e3751fd211acea81b431f42",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/varchar.c#L633-L640",
          "lines": "633-640"
        },
        {
          "id": "src.path.hstore",
          "kind": "upstream_source",
          "source_role": "source_guard",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "contrib/hstore/hstore_io.c",
          "sha256": "4f9e853ca79e1412d989e937749eeb2a251f7e8173d2732098e4c8a67a96b3d4",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/contrib/hstore/hstore_io.c#L407-L434",
          "lines": "407-434"
        },
        {
          "id": "src.path.varbit",
          "kind": "upstream_source",
          "source_role": "source_guard",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/varbit.c",
          "sha256": "f719afe56683db3714a41d2f49f454a6b65b38e310c00d5afe47cbc44fd9480d",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/varbit.c#L733-L758",
          "lines": "733-758"
        },
        {
          "id": "snippet-registry.22001",
          "kind": "local_artifact",
          "source_role": "runtime_input",
          "sha256": "ee3932e6fef2bd5b1c3ff35391019940f81eb61fd72854d9c79447efceeab634"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "22001 is string_data_right_truncation in SQLSTATE Class 22.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read fixed definition."
        },
        {
          "id": "mechanism.character-varchar",
          "statement": "The character and character-varying input paths check the non-explicit value against the typmod and emit distinct primary templates; explicit casts may truncate according to the type rules.",
          "sources": [
            "src.path.character",
            "src.path.varchar"
          ],
          "method": "Read complete varchar.c width checks.",
          "limits": "The exact behavior depends on target type and explicitness."
        },
        {
          "id": "mechanism.extension-types",
          "statement": "hstore key/value and varbit length checks use 22001 with subsystem-specific messages.",
          "sources": [
            "src.path.hstore",
            "src.path.varbit"
          ],
          "method": "Read fixed extension/type guards.",
          "limits": "These are not interchangeable with varchar typmod diagnostics."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 22001 from 7.4 without proving an exact implementation introduction date.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue boundary."
        },
        {
          "id": "runtime.observation",
          "statement": "The varchar_width_overflow case passed on isolated PostgreSQL 18.6 and 10.21: the non-fitting varchar(3) value produced 22001, left the autocommit session IDLE, and the corrected value ok was accepted.",
          "sources": [
            "manifest.22001",
            "snippet-registry.22001"
          ],
          "method": "Execute the shared registry and inspect selected summaries.",
          "limits": "The observation covers varchar varying input only, not hstore, varbit, or explicit-cast truncation.",
          "runtime": [
            "runtime.22001-data1-latest.latest",
            "runtime.22001-data1-pg10.pg10"
          ]
        }
      ],
      "messages": [
        {
          "id": "message.character",
          "sqlstate": "22001",
          "primary_template": "value too long for type character(%d)",
          "severity_source": "ERROR",
          "sources": [
            "src.path.character"
          ]
        },
        {
          "id": "message.varchar",
          "sqlstate": "22001",
          "primary_template": "value too long for type character varying(%d)",
          "severity_source": "ERROR",
          "sources": [
            "src.path.varchar"
          ]
        },
        {
          "id": "message.hstore-key",
          "sqlstate": "22001",
          "primary_template": "string too long for hstore key",
          "severity_source": "ERROR",
          "sources": [
            "src.path.hstore"
          ]
        },
        {
          "id": "message.hstore-value",
          "sqlstate": "22001",
          "primary_template": "string too long for hstore value",
          "severity_source": "ERROR",
          "sources": [
            "src.path.hstore"
          ]
        },
        {
          "id": "message.varbit",
          "sqlstate": "22001",
          "primary_template": "bit string too long for type bit varying(%d)",
          "severity_source": "ERROR",
          "sources": [
            "src.path.varbit"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "mechanism.character-varchar",
            "mechanism.extension-types"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "selected-varchar-18.6-and-10.21",
          "status": "observed_runtime",
          "evidence_ids": [
            "runtime.observation",
            "runtime.22001-data1-latest.latest",
            "runtime.22001-data1-pg10.pg10"
          ]
        }
      ],
      "runtime": [
        {
          "id": "runtime.22001-data1-latest.latest",
          "run_id": "22001-data1-latest",
          "target": "latest",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "status": "passed",
          "cases": [
            "varchar_width_overflow"
          ],
          "summary_sha256": "d4700f6daef109b19ddfddc1f70948979400702a04024dc8ba4dfbcb13cd3def",
          "raw_sha256": "722254ec20e72752649e81427aec2e21f8072d75e22960c3183883a04625c48a",
          "snippet_registry": {
            "sha256": "ee3932e6fef2bd5b1c3ff35391019940f81eb61fd72854d9c79447efceeab634"
          },
          "observed": {
            "sqlstate": "22001",
            "status_after_repair": "IDLE"
          }
        },
        {
          "id": "runtime.22001-data1-pg10.pg10",
          "run_id": "22001-data1-pg10",
          "target": "pg10",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "status": "passed",
          "cases": [
            "varchar_width_overflow"
          ],
          "summary_sha256": "0acd54978ccf0df63136d6d32d1259804d5ae52c1cf9b45a48b165bdc9f201e1",
          "raw_sha256": "da3eabf6714cfde3179b8d3456f74b7378ea4fc24b63905a8fef18acc93a8d31",
          "snippet_registry": {
            "sha256": "ee3932e6fef2bd5b1c3ff35391019940f81eb61fd72854d9c79447efceeab634"
          },
          "observed": {
            "sqlstate": "22001",
            "status_after_repair": "IDLE"
          }
        }
      ]
    },
    {
      "sqlstate": "22002",
      "condition_name": "null_value_no_indicator_parameter",
      "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#L196",
          "lines": "196"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "22002 is null_value_no_indicator_parameter in SQLSTATE Class 22.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read fixed definition."
        },
        {
          "id": "bounded-scan",
          "statement": "The bounded REL_18_6 call archive contains no resolved native report group for 22002.",
          "sources": [
            "src.calls.REL_18_6"
          ],
          "method": "Search fixed call records for the macro.",
          "limits": "This does not exclude an ECPG, extension, wrapper, or other unscanned path."
        },
        {
          "id": "meaning-boundary",
          "statement": "The condition name describes a NULL indicator-variable contract associated with embedded SQL/client handling; it is not evidence that a server column NULL alone should produce 22002.",
          "sources": [
            "src.errcodes.18.6",
            "src.calls.REL_18_6"
          ],
          "method": "Compare the condition definition with the bounded emitter scan.",
          "limits": "No fixed server message template was confirmed."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 22002 from 7.4 without proving an exact implementation introduction date.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue boundary."
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "unknown",
          "evidence_ids": [
            "bounded-scan"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "bounded-scan"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "22003",
      "condition_name": "numeric_value_out_of_range",
      "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#L197",
          "lines": "197"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        },
        {
          "id": "src.path.integer-input",
          "kind": "upstream_source",
          "source_role": "source_guard",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/numutils.c",
          "sha256": "9018d559d8a2b04f6d3fa8fedeb754fc5f1f8cd8594292e6adc5108e8f97f1bf",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/numutils.c#L603-L612",
          "lines": "603-612"
        },
        {
          "id": "src.path.numeric-format",
          "kind": "upstream_source",
          "source_role": "source_guard",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/numeric.c",
          "sha256": "6cde7cd60b3330b83be35d1f014045f5fb5fe737f3c5db4c8ed4080b99f2b666",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/numeric.c#L3765-L3769",
          "lines": "3765-3769"
        },
        {
          "id": "src.path.width-bucket",
          "kind": "upstream_source",
          "source_role": "source_guard",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/numeric.c",
          "sha256": "6cde7cd60b3330b83be35d1f014045f5fb5fe737f3c5db4c8ed4080b99f2b666",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/numeric.c#L2042-L2046",
          "lines": "2042-2046"
        },
        {
          "id": "snippet-registry.22003",
          "kind": "local_artifact",
          "source_role": "runtime_input",
          "sha256": "6b32f84593ac976a3a39460cd680f9b64bbfd0c62caf1a32b26a561f38a07f2e"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "22003 is numeric_value_out_of_range in SQLSTATE Class 22.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read fixed definition."
        },
        {
          "id": "mechanism.integer-input",
          "statement": "The integer input routine reports 22003 when a parsed value exceeds the int32 range, with the value and target type in the primary message.",
          "sources": [
            "src.path.integer-input"
          ],
          "method": "Read numutils.c out_of_range branch.",
          "limits": "This is the selected runtime path; other integer widths have their own input functions."
        },
        {
          "id": "mechanism.numeric-format",
          "statement": "The numeric factorial path reports 22003 when the result would overflow the numeric format.",
          "sources": [
            "src.path.numeric-format"
          ],
          "method": "Read numeric.c overflow guard.",
          "limits": "This message is not the same as an integer cast failure."
        },
        {
          "id": "mechanism.subsystem",
          "statement": "Other numeric operations such as width_bucket can use a shorter integer-out-of-range message under the same SQLSTATE.",
          "sources": [
            "src.path.width-bucket"
          ],
          "method": "Read the complete conversion guard.",
          "limits": "The primary message and source object are required to identify the repair."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 22003 from 7.4 without proving an exact implementation introduction date.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue boundary."
        },
        {
          "id": "runtime.observation",
          "statement": "The integer_out_of_range case passed on isolated PostgreSQL 18.6 and 10.21: casting 2147483648 raised 22003, left the autocommit session IDLE, and 2147483647 succeeded.",
          "sources": [
            "manifest.22003",
            "snippet-registry.22003"
          ],
          "method": "Execute the shared registry and inspect selected summaries.",
          "limits": "The observation covers an integer input cast, not the other numeric or subsystem paths.",
          "runtime": [
            "runtime.22003-data1-latest.latest",
            "runtime.22003-data1-pg10.pg10"
          ]
        }
      ],
      "messages": [
        {
          "id": "message.integer",
          "sqlstate": "22003",
          "primary_template": "value \"%s\" is out of range for type %s",
          "severity_source": "ERROR",
          "sources": [
            "src.path.integer-input"
          ]
        },
        {
          "id": "message.numeric",
          "sqlstate": "22003",
          "primary_template": "value overflows numeric format",
          "severity_source": "ERROR",
          "sources": [
            "src.path.numeric-format"
          ]
        },
        {
          "id": "message.width-bucket",
          "sqlstate": "22003",
          "primary_template": "integer out of range",
          "severity_source": "ERROR",
          "sources": [
            "src.path.width-bucket"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "mechanism.integer-input",
            "mechanism.numeric-format",
            "mechanism.subsystem"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "selected-integer-18.6-and-10.21",
          "status": "observed_runtime",
          "evidence_ids": [
            "runtime.observation",
            "runtime.22003-data1-latest.latest",
            "runtime.22003-data1-pg10.pg10"
          ]
        }
      ],
      "runtime": [
        {
          "id": "runtime.22003-data1-latest.latest",
          "run_id": "22003-data1-latest",
          "target": "latest",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "status": "passed",
          "cases": [
            "integer_out_of_range"
          ],
          "summary_sha256": "b75b028698e01f0a8d2e46c2cdc8eeb82e95d9bc57bcdd6a036874de387ab0b7",
          "raw_sha256": "175423ac2544f055d99352849c7b595f3a7856597282eca042dec0d301f85bb8",
          "snippet_registry": {
            "sha256": "6b32f84593ac976a3a39460cd680f9b64bbfd0c62caf1a32b26a561f38a07f2e"
          },
          "observed": {
            "sqlstate": "22003",
            "status_after_repair": "IDLE"
          }
        },
        {
          "id": "runtime.22003-data1-pg10.pg10",
          "run_id": "22003-data1-pg10",
          "target": "pg10",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "status": "passed",
          "cases": [
            "integer_out_of_range"
          ],
          "summary_sha256": "5ed100d3d0ae588e15638a04477f34541365eaa5832a48b651ad0e3ed7d46a77",
          "raw_sha256": "00cd428c715f1b196579c4529a65e93a2e7967941a51c0c3d05cb981669a666e",
          "snippet_registry": {
            "sha256": "6b32f84593ac976a3a39460cd680f9b64bbfd0c62caf1a32b26a561f38a07f2e"
          },
          "observed": {
            "sqlstate": "22003",
            "status_after_repair": "IDLE"
          }
        }
      ]
    },
    {
      "sqlstate": "22004",
      "condition_name": "null_value_not_allowed",
      "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#L195",
          "lines": "195"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        },
        {
          "id": "src.path.xmltable",
          "kind": "upstream_source",
          "source_role": "source_guard",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/executor/nodeTableFuncscan.c",
          "sha256": "0a9faaa9e45bb460dd98e4688f088711d459333eb8bd94255779f2c0218df82b",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/executor/nodeTableFuncscan.c#L346-L371",
          "lines": "346-371"
        },
        {
          "id": "src.path.xmltable-filters",
          "kind": "upstream_source",
          "source_role": "source_guard",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/executor/nodeTableFuncscan.c",
          "sha256": "0a9faaa9e45bb460dd98e4688f088711d459333eb8bd94255779f2c0218df82b",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/executor/nodeTableFuncscan.c#L380-L419",
          "lines": "380-419"
        },
        {
          "id": "src.path.xmltable-output",
          "kind": "upstream_source",
          "source_role": "source_guard",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/executor/nodeTableFuncscan.c",
          "sha256": "0a9faaa9e45bb460dd98e4688f088711d459333eb8bd94255779f2c0218df82b",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/executor/nodeTableFuncscan.c#L494-L508",
          "lines": "494-508"
        },
        {
          "id": "snippet-registry.22004",
          "kind": "local_artifact",
          "source_role": "runtime_input",
          "sha256": "a71cda2337e992c422232fa9f7fabc158411970e959daba3c571f521e65ece0c"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "22004 is null_value_not_allowed in SQLSTATE Class 22.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read fixed definition."
        },
        {
          "id": "mechanism.xmltable-namespace",
          "statement": "The XMLTABLE table-function executor rejects a NULL namespace URI and reports 22004 before producing rows.",
          "sources": [
            "src.path.xmltable"
          ],
          "method": "Read the complete namespace evaluation and NULL guard.",
          "limits": "Other functions may use 22004 for different NULL contracts."
        },
        {
          "id": "mechanism.xmltable-null-guards",
          "statement": "The table-function executor module has separate 22004 guards for null row-filter expressions, null column-filter expressions, and output columns marked NOT NULL whose value remains NULL after any DEFAULT expression is applied, each with a distinct primary message.",
          "sources": [
            "src.path.xmltable-filters",
            "src.path.xmltable-output"
          ],
          "method": "Read the complete tfuncInitialize guard sequence.",
          "limits": "The selected runtime covers only the namespace URI guard."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 22004 from 7.4 without proving an exact implementation introduction date.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue boundary."
        },
        {
          "id": "runtime.observation",
          "statement": "The xmltable_null_namespace case passed on isolated PostgreSQL 18.6 and 10.21: a NULL URI raised 22004 and the valid URI repair returned one row with the session IDLE.",
          "sources": [
            "manifest.22004",
            "snippet-registry.22004"
          ],
          "method": "Execute the shared registry and inspect selected summaries.",
          "limits": "The observation covers XMLTABLE namespace evaluation only.",
          "runtime": [
            "runtime.22004-data1-latest.latest",
            "runtime.22004-data1-pg10.pg10"
          ]
        }
      ],
      "messages": [
        {
          "id": "message.xmltable",
          "sqlstate": "22004",
          "primary_template": "namespace URI must not be null",
          "severity_source": "ERROR",
          "sources": [
            "src.path.xmltable"
          ]
        },
        {
          "id": "message.xmltable-row-filter",
          "sqlstate": "22004",
          "primary_template": "row filter expression must not be null",
          "severity_source": "ERROR",
          "sources": [
            "src.path.xmltable-filters"
          ]
        },
        {
          "id": "message.xmltable-column-filter",
          "sqlstate": "22004",
          "primary_template": "column filter expression must not be null",
          "severity_source": "ERROR",
          "detail_template": "Filter for column \"%s\" is null.",
          "sources": [
            "src.path.xmltable-filters"
          ]
        },
        {
          "id": "message.xmltable-column-output",
          "sqlstate": "22004",
          "primary_template": "null is not allowed in column \"%s\"",
          "severity_source": "ERROR",
          "guard_context": "XMLTABLE output column is marked NOT NULL and remains NULL after the output value and any DEFAULT expression have been evaluated",
          "sources": [
            "src.path.xmltable-output"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "mechanism.xmltable-namespace",
            "mechanism.xmltable-null-guards"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "selected-xmltable-18.6-and-10.21",
          "status": "observed_runtime",
          "evidence_ids": [
            "runtime.observation",
            "runtime.22004-data1-latest.latest",
            "runtime.22004-data1-pg10.pg10"
          ]
        }
      ],
      "runtime": [
        {
          "id": "runtime.22004-data1-latest.latest",
          "run_id": "22004-data1-latest",
          "target": "latest",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "status": "passed",
          "cases": [
            "xmltable_null_namespace"
          ],
          "summary_sha256": "6d2a04c9fec0b2253747c2961000f74500aa992f83b58123a15bc0eaa3a02575",
          "raw_sha256": "245e7dc22a58a7411347c9d7ef3732ee19b16b83bd6935946330e15f883bf863",
          "snippet_registry": {
            "sha256": "a71cda2337e992c422232fa9f7fabc158411970e959daba3c571f521e65ece0c"
          },
          "observed": {
            "sqlstate": "22004",
            "status_after_repair": "IDLE"
          }
        },
        {
          "id": "runtime.22004-data1-pg10.pg10",
          "run_id": "22004-data1-pg10",
          "target": "pg10",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "status": "passed",
          "cases": [
            "xmltable_null_namespace"
          ],
          "summary_sha256": "ec256223667ce3481fe0284a6455601713b9a863e4320a55e02e0728a5b6373c",
          "raw_sha256": "05609b74ec6458e635c31330ee36d4ce3a5e8695b078bb1dfd29caf290eac3da",
          "snippet_registry": {
            "sha256": "a71cda2337e992c422232fa9f7fabc158411970e959daba3c571f521e65ece0c"
          },
          "observed": {
            "sqlstate": "22004",
            "status_after_repair": "IDLE"
          }
        }
      ]
    },
    {
      "sqlstate": "22005",
      "condition_name": "error_in_assignment",
      "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#L169",
          "lines": "169"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        },
        {
          "id": "src.path.plpgsql-constant",
          "kind": "upstream_source",
          "source_role": "source_guard",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/pl/plpgsql/src/pl_exec.c",
          "sha256": "0df3c70a6bccf6dddf443fb99e152a16a67009827c44a820597e98e585cb8b20",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/pl/plpgsql/src/pl_exec.c#L8565-L8582",
          "lines": "8565-8582"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "22005 is error_in_assignment in SQLSTATE Class 22.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read fixed definition."
        },
        {
          "id": "mechanism.plpgsql-constant",
          "statement": "PL/pgSQL assignment checking rejects writes to a variable marked CONSTANT and reports the variable name.",
          "sources": [
            "src.path.plpgsql-constant"
          ],
          "method": "Read exec_check_assignable and its complete CONSTANT branch.",
          "limits": "This does not classify every type conversion or target-column assignment error."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 22005 from 7.4 without proving an exact implementation introduction date.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue boundary."
        }
      ],
      "messages": [
        {
          "id": "message.constant",
          "sqlstate": "22005",
          "primary_template": "variable \"%s\" is declared CONSTANT",
          "severity_source": "ERROR",
          "sources": [
            "src.path.plpgsql-constant"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "mechanism.plpgsql-constant"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "mechanism.plpgsql-constant"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "22007",
      "condition_name": "invalid_datetime_format",
      "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#L179",
          "lines": "179"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        },
        {
          "id": "src.path.interval-format",
          "kind": "upstream_source",
          "source_role": "source_guard",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/formatting.c",
          "sha256": "a22651cc223e93c1879420004027325579fc79a3ba8684408496149164a2220c",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/formatting.c#L548-L559",
          "lines": "548-559"
        },
        {
          "id": "src.path.date-input",
          "kind": "upstream_source",
          "source_role": "source_parser",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/date.c",
          "sha256": "4834c868f3461822eb0de972fe35b04f9fb9ba75cf2fa9794a67259536f35773",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/date.c#L110-L178",
          "lines": "110-178"
        },
        {
          "id": "src.path.datetime-error",
          "kind": "upstream_source",
          "source_role": "source_error_mapping",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/datetime.c",
          "sha256": "709e05b536f611f7eeaaabb716501d59d4d1e87c53757e15240fe1fc4845459c",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/datetime.c#L4195-L4266",
          "lines": "4195-4266"
        },
        {
          "id": "doc.datetime-input.18.6",
          "kind": "upstream_source",
          "source_role": "official_documentation",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "doc/src/sgml/datatype.sgml",
          "sha256": "86328daa77e20d81d222376ec0306d9841a17104e436c08d138eb763aefb3700",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/datatype.sgml#L1878-L1896",
          "docs_url": "https://www.postgresql.org/docs/18/datatype-datetime.html#DATATYPE-DATETIME-INPUT",
          "lines": "1878-1896"
        },
        {
          "id": "snippet-registry.22007",
          "kind": "local_artifact",
          "source_role": "runtime_input",
          "sha256": "cea6f9f6a07e3371f1ebc79d2842da2c66c06750f3b39f91b7fdd57fb2b7d0a9"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "22007 is invalid_datetime_format in SQLSTATE Class 22.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read fixed definition."
        },
        {
          "id": "mechanism.interval-format",
          "statement": "The interval/time formatting guard rejects calendar-specific format tokens for interval values and supplies a fixed hint explaining the calendar boundary.",
          "sources": [
            "src.path.interval-format"
          ],
          "method": "Read the INVALID_FOR_INTERVAL macro and both message fields.",
          "limits": "The selected runtime covers interval formatting only."
        },
        {
          "id": "mechanism.datetime-input",
          "statement": "Fixed date input dispatches text through ParseDateTime and DecodeDateTime. DateTimeParseError maps the DTERR_BAD_FORMAT/default branch to 22007 with the common primary invalid input syntax for type template; field overflow and month/day overflow use 22008, with the latter adding a DateStyle hint. The PostgreSQL 18 documentation describes DateStyle as selecting the interpretation order for ambiguous numeric date input, and the parser can fill ErrorSaveContext instead of throwing for soft-validation callers.",
          "sources": [
            "src.path.date-input",
            "src.path.datetime-error",
            "doc.datetime-input.18.6"
          ],
          "method": "Read the fixed date input/parser and error mapping, then the same-version documentation.",
          "limits": "This confirms source and documentation scope only; the selected runtime covers interval formatting, not DateStyle parsing."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 22007 from 7.4 without proving an exact implementation introduction date.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue boundary."
        },
        {
          "id": "runtime.observation",
          "statement": "The invalid_interval_format case passed on isolated PostgreSQL 18.6 and 10.21: the interval mask ID raised 22007 with the fixed hint, left the autocommit session IDLE, and DD returned 01.",
          "sources": [
            "manifest.22007",
            "snippet-registry.22007"
          ],
          "method": "Execute the shared registry and inspect selected summaries.",
          "limits": "The observation does not generalize to DateStyle parsing or every date/time formatter.",
          "runtime": [
            "runtime.22007-data1-latest.latest",
            "runtime.22007-data1-pg10.pg10"
          ]
        }
      ],
      "messages": [
        {
          "id": "message.interval",
          "sqlstate": "22007",
          "primary_template": "invalid format specification for an interval value",
          "severity_source": "ERROR",
          "sources": [
            "src.path.interval-format"
          ],
          "hint_template": "Intervals are not tied to specific calendar dates."
        },
        {
          "id": "message.datetime-input",
          "sqlstate": "22007",
          "primary_template": "invalid input syntax for type %s: \"%s\"",
          "severity_source": "ERROR",
          "sources": [
            "src.path.datetime-error"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "mechanism.interval-format",
            "mechanism.datetime-input"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "selected-interval-18.6-and-10.21",
          "status": "observed_runtime",
          "evidence_ids": [
            "runtime.observation",
            "runtime.22007-data1-latest.latest",
            "runtime.22007-data1-pg10.pg10"
          ]
        }
      ],
      "runtime": [
        {
          "id": "runtime.22007-data1-latest.latest",
          "run_id": "22007-data1-latest",
          "target": "latest",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "status": "passed",
          "cases": [
            "invalid_interval_format"
          ],
          "summary_sha256": "5429879e671be538f513654b5c0821f227aac67f67e0b1fbb2d6c7821c0af675",
          "raw_sha256": "e1ab1c24625152560f9dc7baf091dbec22324d34bba0deea9c8048565500906a",
          "snippet_registry": {
            "sha256": "cea6f9f6a07e3371f1ebc79d2842da2c66c06750f3b39f91b7fdd57fb2b7d0a9"
          },
          "observed": {
            "sqlstate": "22007",
            "status_after_repair": "IDLE"
          }
        },
        {
          "id": "runtime.22007-data1-pg10.pg10",
          "run_id": "22007-data1-pg10",
          "target": "pg10",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "status": "passed",
          "cases": [
            "invalid_interval_format"
          ],
          "summary_sha256": "dbc6026274c92764eb19acdc4668d1aa3bb2529a01a7ca3dbcb879cb46646f9c",
          "raw_sha256": "e9f8cef16bd8674c68fb7c518fa325adbf726e8797dc8b43da20508a0ecc41dd",
          "snippet_registry": {
            "sha256": "cea6f9f6a07e3371f1ebc79d2842da2c66c06750f3b39f91b7fdd57fb2b7d0a9"
          },
          "observed": {
            "sqlstate": "22007",
            "status_after_repair": "IDLE"
          }
        }
      ]
    },
    {
      "sqlstate": "22008",
      "condition_name": "datetime_field_overflow",
      "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#L166",
          "lines": "166"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        },
        {
          "id": "src.path.date-recv",
          "kind": "upstream_source",
          "source_role": "source_guard",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/date.c",
          "sha256": "4834c868f3461822eb0de972fe35b04f9fb9ba75cf2fa9794a67259536f35773",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/date.c#L217-L223",
          "lines": "217-223"
        },
        {
          "id": "src.path.date-field",
          "kind": "upstream_source",
          "source_role": "source_guard",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/date.c",
          "sha256": "4834c868f3461822eb0de972fe35b04f9fb9ba75cf2fa9794a67259536f35773",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/date.c#L271-L293",
          "lines": "271-293"
        },
        {
          "id": "src.path.time-field",
          "kind": "upstream_source",
          "source_role": "source_guard",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/date.c",
          "sha256": "4834c868f3461822eb0de972fe35b04f9fb9ba75cf2fa9794a67259536f35773",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/date.c#L1649-L1654",
          "lines": "1649-1654"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "22008 is datetime_field_overflow in SQLSTATE Class 22.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read fixed definition."
        },
        {
          "id": "mechanism.date-range",
          "statement": "The date input/binary receive and field validation paths use 22008 for an unrepresentable date or field; the primary wording identifies whether the failure is a field or range check.",
          "sources": [
            "src.path.date-recv",
            "src.path.date-field"
          ],
          "method": "Read date.c range guards.",
          "limits": "This page does not claim every timestamp or interval overflow uses the same message."
        },
        {
          "id": "mechanism.time-field",
          "statement": "The make_time path uses the same condition for an out-of-range time field.",
          "sources": [
            "src.path.time-field"
          ],
          "method": "Read the time-field guard.",
          "limits": "Inspect the named target type and operation before choosing a repair."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 22008 from 7.4 without proving an exact implementation introduction date.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue boundary."
        }
      ],
      "messages": [
        {
          "id": "message.date-range",
          "sqlstate": "22008",
          "primary_template": "date out of range",
          "severity_source": "ERROR",
          "sources": [
            "src.path.date-recv"
          ]
        },
        {
          "id": "message.date-field",
          "sqlstate": "22008",
          "primary_template": "date field value out of range: %d-%02d-%02d",
          "severity_source": "ERROR",
          "sources": [
            "src.path.date-field"
          ]
        },
        {
          "id": "message.time-field",
          "sqlstate": "22008",
          "primary_template": "time field value out of range: %d:%02d:%02g",
          "severity_source": "ERROR",
          "sources": [
            "src.path.time-field"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "mechanism.date-range",
            "mechanism.time-field"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "mechanism.date-range"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "22009",
      "condition_name": "invalid_time_zone_displacement_value",
      "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#L192",
          "lines": "192"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        },
        {
          "id": "src.path.timezone-displacement",
          "kind": "upstream_source",
          "source_role": "source_guard",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/date.c",
          "sha256": "4834c868f3461822eb0de972fe35b04f9fb9ba75cf2fa9794a67259536f35773",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/date.c#L2419-L2425",
          "lines": "2419-2425"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "22009 is invalid_time_zone_displacement_value in SQLSTATE Class 22.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read fixed definition."
        },
        {
          "id": "mechanism.timezone-displacement",
          "statement": "The date/time binary receive path checks the GMT displacement against the supported TZDISP_LIMIT and emits 22009 when it is outside that range.",
          "sources": [
            "src.path.timezone-displacement"
          ],
          "method": "Read the complete displacement guard.",
          "limits": "This is a displacement-range error, distinct from malformed date text or session TimeZone configuration."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 22009 from 7.4 without proving an exact implementation introduction date.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue boundary."
        }
      ],
      "messages": [
        {
          "id": "message.timezone",
          "sqlstate": "22009",
          "primary_template": "time zone displacement out of range",
          "severity_source": "ERROR",
          "sources": [
            "src.path.timezone-displacement"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "mechanism.timezone-displacement"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "mechanism.timezone-displacement"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "2200B",
      "condition_name": "escape_character_conflict",
      "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#L170",
          "lines": "170"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "2200B is escape_character_conflict in SQLSTATE Class 22.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read fixed definition."
        },
        {
          "id": "bounded-scan",
          "statement": "The bounded REL_18_6 call archive contains no resolved report group for 2200B.",
          "sources": [
            "src.calls.REL_18_6"
          ],
          "method": "Search fixed call records for the macro.",
          "limits": "This does not exclude an ECPG, extension, wrapper, or other unscanned path."
        },
        {
          "id": "meaning-boundary",
          "statement": "The condition name identifies a conflict in the escape-character contract; the actual parser and primary message must be captured before prescribing a quoting repair.",
          "sources": [
            "src.errcodes.18.6",
            "src.calls.REL_18_6"
          ],
          "method": "Keep definition and emitter evidence separate.",
          "limits": "No fixed native message template was confirmed."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 2200B from 7.4 without proving an exact implementation introduction date.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue boundary."
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "unknown",
          "evidence_ids": [
            "bounded-scan"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "bounded-scan"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "2200C",
      "condition_name": "invalid_use_of_escape_character",
      "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#L193",
          "lines": "193"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        },
        {
          "id": "src.path.regexp-escape",
          "kind": "upstream_source",
          "source_role": "source_guard",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/regexp.c",
          "sha256": "8c54fe9e937ce03111b39da7bca89b22d6cb2de6b9ce5f7caf90c76bc7218e0e",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/regexp.c#L758-L951",
          "lines": "758-951"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "2200C is invalid_use_of_escape_character in SQLSTATE Class 22.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read fixed definition."
        },
        {
          "id": "mechanism.regexp-separators",
          "statement": "The SQL SIMILAR TO translation helper similar_escape_internal treats an escaped double quote outside a bracket as a separator for the SQL SUBSTRING pattern parts; the third such separator raises 2200C. This is not a generic POSIX regular-expression backslash rule.",
          "sources": [
            "src.path.regexp-escape"
          ],
          "method": "Read the afterescape/nquotes guard and surrounding parser context.",
          "limits": "The rule concerns this escape-double-quote syntax, not every backslash in a regex."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 2200C from 7.4 without proving an exact implementation introduction date.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue boundary."
        }
      ],
      "messages": [
        {
          "id": "message.regexp",
          "sqlstate": "2200C",
          "primary_template": "SQL regular expression may not contain more than two escape-double-quote separators",
          "severity_source": "ERROR",
          "sources": [
            "src.path.regexp-escape"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "mechanism.regexp-separators"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "mechanism.regexp-separators"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "2200D",
      "condition_name": "invalid_escape_octet",
      "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#L181",
          "lines": "181"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "2200D is invalid_escape_octet in SQLSTATE Class 22.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read fixed definition."
        },
        {
          "id": "bounded-scan",
          "statement": "No fixed PostgreSQL 18.6 emitting path was resolved for 2200D in the bounded source scan.",
          "sources": [
            "src.calls.REL_18_6"
          ],
          "method": "Search fixed call records for the macro.",
          "limits": "A bounded scan does not prove that no extension, client, or historical path exists."
        },
        {
          "id": "meaning-boundary",
          "statement": "The code names an invalid octet at an escape-decoding boundary; the owning parser, byte encoding, primary message, and severity must be captured from the actual diagnostic.",
          "sources": [
            "src.errcodes.18.6",
            "src.calls.REL_18_6"
          ],
          "method": "Separate code identity from emitter evidence.",
          "limits": "Do not substitute the regexp 2200C message."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 2200D from 7.4 without proving an exact implementation introduction date.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue boundary."
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "emitting-path",
          "status": "unknown",
          "evidence_ids": [
            "bounded-scan"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "bounded-scan"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "2200F",
      "condition_name": "zero_length_character_string",
      "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#L204",
          "lines": "204"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        },
        {
          "id": "src.path.metaphone",
          "kind": "upstream_source",
          "source_role": "source_guard",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "contrib/fuzzystrmatch/fuzzystrmatch.c",
          "sha256": "bd5b12031fa6ca844b8d4e2c2ced490b7233cc9e35c77ef681cb620c7367a591",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/contrib/fuzzystrmatch/fuzzystrmatch.c#L253-L287",
          "lines": "253-287"
        },
        {
          "id": "src.path.tsvector-empty",
          "kind": "upstream_source",
          "source_role": "source_guard",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/tsvector_op.c",
          "sha256": "5ea1783f4023be82a092fbfc66a59d2586cd63352c375e2c8d599bc98bccfe8f",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/tsvector_op.c#L741-L777",
          "lines": "741-777"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "2200F is zero_length_character_string in SQLSTATE Class 22.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read fixed definition."
        },
        {
          "id": "mechanism.metaphone",
          "statement": "The contrib fuzzystrmatch metaphone function returns an empty text result at its empty-input early return; after that return, a non-empty input with non-positive requested output length raises 2200F with primary output cannot be empty string.",
          "sources": [
            "src.path.metaphone"
          ],
          "method": "Read the complete metaphone length guards.",
          "limits": "The empty-input early return precedes the reqlen guard; this path does not make every empty SQL string a 2200F error."
        },
        {
          "id": "mechanism.tsvector",
          "statement": "array_to_tsvector rejects an empty lexeme with 2200F and primary lexeme array may not contain empty strings.",
          "sources": [
            "src.path.tsvector-empty"
          ],
          "method": "Read the lexeme validation loop.",
          "limits": "The tsvector path is distinct from metaphone and needs its own input repair."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 2200F from 7.4 without proving an exact implementation introduction date.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue boundary."
        }
      ],
      "messages": [
        {
          "id": "message.metaphone",
          "sqlstate": "2200F",
          "primary_template": "output cannot be empty string",
          "severity_source": "ERROR",
          "sources": [
            "src.path.metaphone"
          ]
        },
        {
          "id": "message.tsvector",
          "sqlstate": "2200F",
          "primary_template": "lexeme array may not contain empty strings",
          "severity_source": "ERROR",
          "sources": [
            "src.path.tsvector-empty"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "mechanism.metaphone",
            "mechanism.tsvector"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "mechanism.metaphone"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "2200G",
      "condition_name": "most_specific_type_mismatch",
      "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#L194",
          "lines": "194"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "2200G is most_specific_type_mismatch in SQLSTATE Class 22.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read fixed definition."
        },
        {
          "id": "bounded-scan",
          "statement": "No fixed PostgreSQL 18.6 emitting path was resolved for 2200G in the bounded source scan.",
          "sources": [
            "src.calls.REL_18_6"
          ],
          "method": "Search fixed call records for the macro.",
          "limits": "A bounded scan does not prove that no extension, wrapper, or historical path exists."
        },
        {
          "id": "meaning-boundary",
          "statement": "The condition name describes failure to choose a most-specific common type; unknown literals, polymorphic arguments, overloaded operators, and routine signatures are investigation targets, not evidence that a generic 42804/42846 is 2200G.",
          "sources": [
            "src.errcodes.18.6",
            "src.calls.REL_18_6"
          ],
          "method": "Keep code identity separate from neighboring type errors.",
          "limits": "No fixed primary/detail template was confirmed."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 2200G from 7.4 without proving an exact implementation introduction date.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue boundary."
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "emitting-path",
          "status": "unknown",
          "evidence_ids": [
            "bounded-scan"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "bounded-scan"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "2200H",
      "condition_name": "sequence_generator_limit_exceeded",
      "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#L198",
          "lines": "198"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        },
        {
          "id": "src.path.sequence-limit",
          "kind": "upstream_source",
          "source_role": "source_guard",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/sequence.c",
          "sha256": "3e5afe17d5a84862fae502a5481211220368f1d639e9d07ba6f96ee8be92a8d8",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/sequence.c#L731-L769",
          "lines": "731-769"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "2200H is sequence_generator_limit_exceeded in SQLSTATE Class 22.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read fixed definition."
        },
        {
          "id": "mechanism.sequence-limit",
          "statement": "The nextval fetch loop checks the configured maximum for ascending sequences and minimum for descending sequences; at a boundary, rescnt > 0 stops fetching so already fetched legal values can be returned, while a non-cycling branch with no result left emits 2200H and cycle=true wraps to the opposite bound.",
          "sources": [
            "src.path.sequence-limit"
          ],
          "method": "Read the full fetch loop and both boundary branches.",
          "limits": "The endpoint value can be a legal returned value, and CYCLE is a sequence policy choice rather than a universal repair for exhausted identifiers."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 2200H from 10.0 without proving an exact implementation introduction date.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue boundary."
        }
      ],
      "messages": [
        {
          "id": "message.sequence-max",
          "sqlstate": "2200H",
          "primary_template": "nextval: reached maximum value of sequence \"%s\" (%\" PRId64 \")",
          "severity_source": "ERROR",
          "sources": [
            "src.path.sequence-limit"
          ]
        },
        {
          "id": "message.sequence-min",
          "sqlstate": "2200H",
          "primary_template": "nextval: reached minimum value of sequence \"%s\" (%\" PRId64 \")",
          "severity_source": "ERROR",
          "sources": [
            "src.path.sequence-limit"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "mechanism.sequence-limit"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "mechanism.sequence-limit"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "2200L",
      "condition_name": "not_an_xml_document",
      "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#L210",
          "lines": "210"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        },
        {
          "id": "src.path.xml-document-option",
          "kind": "upstream_source",
          "source_role": "source_guard",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/xml.c",
          "sha256": "f1c70b5ee5ee9a20a41d9b2c27bc7a8a50dbd47d9489ba462a4a678f7f55f14d",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/xml.c#L669-L697",
          "lines": "669-697"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "2200L is not_an_xml_document in SQLSTATE Class 22.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read fixed definition."
        },
        {
          "id": "mechanism.xml-document-option",
          "statement": "The public SQLSERIALIZE DOCUMENT operation reaches xmltotext_with_options with XMLOPTION_DOCUMENT; when xml parsing fails or records a soft error, the wrapper maps that document conformance failure to 2200L with primary not an XML document.",
          "sources": [
            "src.path.xml-document-option"
          ],
          "method": "Read xml.c XML option mapping.",
          "limits": "The wrapper returns binary-compatible input for non-DOCUMENT/no-indent before this check, so this evidence does not generalize the 2200L mapping to CONTENT; it is distinct from the 2200M invalid-document branch in xml_parse and from content/subconstruct errors."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 2200L from 8.3.0 without proving an exact implementation introduction date.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue boundary."
        }
      ],
      "messages": [
        {
          "id": "message.xml-document-option",
          "sqlstate": "2200L",
          "primary_template": "not an XML document",
          "severity_source": "ERROR",
          "sources": [
            "src.path.xml-document-option"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "mechanism.xml-document-option"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "mechanism.xml-document-option"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "2200M",
      "condition_name": "invalid_xml_document",
      "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#L211",
          "lines": "211"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        },
        {
          "id": "src.path.xml-invalid-document",
          "kind": "upstream_source",
          "source_role": "source_guard",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/xml.c",
          "sha256": "f1c70b5ee5ee9a20a41d9b2c27bc7a8a50dbd47d9489ba462a4a678f7f55f14d",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/xml.c#L1846-L1862",
          "lines": "1846-1862"
        },
        {
          "id": "src.path.xml2-document",
          "kind": "upstream_source",
          "source_role": "source_guard",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "contrib/xml2/xslt_proc.c",
          "sha256": "a5a76f59e851175955dfa62477fd4a7d7be3fb69b37e7a7e955ab76c8e01d0ae",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/contrib/xml2/xslt_proc.c#L84-L100",
          "lines": "84-100"
        },
        {
          "id": "src.path.xml-error-save",
          "kind": "upstream_source",
          "source_role": "source_guard",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/xml.c",
          "sha256": "f1c70b5ee5ee9a20a41d9b2c27bc7a8a50dbd47d9489ba462a4a678f7f55f14d",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/xml.c#L2047-L2082",
          "lines": "2047-2082"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "2200M is invalid_xml_document in SQLSTATE Class 22.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read fixed definition."
        },
        {
          "id": "mechanism.core-xml",
          "statement": "The core xml_parse document branch maps a failed libxml document parse to 2200M with primary invalid XML document.",
          "sources": [
            "src.path.xml-invalid-document"
          ],
          "method": "Read the document parse failure branch.",
          "limits": "The dynamic libxml diagnostic may be attached separately; no single static DETAIL template should be invented."
        },
        {
          "id": "mechanism.error-save",
          "statement": "The core xml_errsave helper passes XML errors to errsave: an ErrorSaveContext stores the error and returns, while an ordinary context throws; this soft-error path is distinct from the direct ERROR branches in contrib/xml2.",
          "method": "Read the xml_errsave comment and errsave call.",
          "limits": "This source distinction describes error propagation; it is not a natural runtime observation."
        },
        {
          "id": "mechanism.xml2",
          "statement": "The contrib/xml2 XSLT path also reports invalid XML document when its parser reports an error.",
          "sources": [
            "src.path.xml2-document"
          ],
          "method": "Read the complete xml2 error branch.",
          "limits": "This path requires the xml2 extension and is separate from core XML constructors."
        },
        {
          "id": "build-boundary",
          "statement": "Core XML branches are compiled under the USE_LIBXML feature guard; availability depends on the server build.",
          "sources": [
            "src.path.xml-invalid-document"
          ],
          "method": "Read surrounding fixed source guards.",
          "limits": "Source confirmation is not a natural runtime observation."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 2200M from 8.3.0 without proving an exact implementation introduction date.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue boundary."
        }
      ],
      "messages": [
        {
          "id": "message.core-document",
          "sqlstate": "2200M",
          "primary_template": "invalid XML document",
          "severity_source": "ERROR",
          "sources": [
            "src.path.xml-invalid-document"
          ]
        },
        {
          "id": "message.xml2-document",
          "sqlstate": "2200M",
          "primary_template": "error parsing XML document",
          "severity_source": "ERROR",
          "sources": [
            "src.path.xml2-document"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "mechanism.core-xml",
            "mechanism.xml2",
            "mechanism.error-save"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "mechanism.core-xml"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "2200N",
      "condition_name": "invalid_xml_content",
      "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#L212",
          "lines": "212"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        },
        {
          "id": "src.path.xml-invalid-content",
          "kind": "upstream_source",
          "source_role": "source_guard",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/xml.c",
          "sha256": "f1c70b5ee5ee9a20a41d9b2c27bc7a8a50dbd47d9489ba462a4a678f7f55f14d",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/xml.c#L1801-L1810",
          "lines": "1801-1810"
        },
        {
          "id": "src.path.xml-content-parse",
          "kind": "upstream_source",
          "source_role": "source_guard",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/xml.c",
          "sha256": "f1c70b5ee5ee9a20a41d9b2c27bc7a8a50dbd47d9489ba462a4a678f7f55f14d",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/xml.c#L1851-L1894",
          "lines": "1851-1894"
        },
        {
          "id": "src.path.xml-error-save",
          "kind": "upstream_source",
          "source_role": "source_guard",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/xml.c",
          "sha256": "f1c70b5ee5ee9a20a41d9b2c27bc7a8a50dbd47d9489ba462a4a678f7f55f14d",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/xml.c#L2047-L2082",
          "lines": "2047-2082"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "2200N is invalid_xml_content in SQLSTATE Class 22.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read fixed definition."
        },
        {
          "id": "mechanism.content-parse",
          "statement": "The core XML parser uses 2200N for failed content parsing and for an invalid XML declaration in content mode.",
          "sources": [
            "src.path.xml-invalid-content",
            "src.path.xml-content-parse"
          ],
          "method": "Read both content-mode branches.",
          "limits": "The XML declaration path adds a dynamic errdetail_for_xml_code result; do not publish a fabricated fixed DETAIL."
        },
        {
          "id": "mechanism.error-save",
          "statement": "The XML declaration branch calls errsave and the content branches call xml_errsave; with an ErrorSaveContext these errors are saved and returned to the caller, while an ordinary context throws ERROR.",
          "method": "Read the declaration/content calls and the xml_errsave helper.",
          "limits": "The soft-error propagation distinction is separate from the dynamic DETAIL produced for XML declaration failures."
        },
        {
          "id": "build-boundary",
          "statement": "Core XML content parsing is compiled under the USE_LIBXML feature guard; build support and parser version affect availability and detail text.",
          "sources": [
            "src.path.xml-content-parse"
          ],
          "method": "Read surrounding fixed source guards.",
          "limits": "Source confirmation is not a natural runtime observation."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 2200N from 8.3.0 without proving an exact implementation introduction date.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue boundary."
        }
      ],
      "messages": [
        {
          "id": "message.invalid-content",
          "sqlstate": "2200N",
          "primary_template": "invalid XML content",
          "severity_source": "ERROR",
          "sources": [
            "src.path.xml-content-parse"
          ]
        },
        {
          "id": "message.invalid-declaration",
          "sqlstate": "2200N",
          "primary_template": "invalid XML content: invalid XML declaration",
          "severity_source": "ERROR",
          "sources": [
            "src.path.xml-invalid-content"
          ],
          "detail_template": "dynamic errdetail_for_xml_code(res_code)"
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "mechanism.content-parse",
            "build-boundary",
            "mechanism.error-save"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "mechanism.content-parse"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "2200S",
      "condition_name": "invalid_xml_comment",
      "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#L213",
          "lines": "213"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        },
        {
          "id": "src.path.xml-comment",
          "kind": "upstream_source",
          "source_role": "source_guard",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/xml.c",
          "sha256": "f1c70b5ee5ee9a20a41d9b2c27bc7a8a50dbd47d9489ba462a4a678f7f55f14d",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/xml.c#L490-L523",
          "lines": "490-523"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "2200S is invalid_xml_comment in SQLSTATE Class 22.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read fixed definition."
        },
        {
          "id": "mechanism.comment",
          "statement": "xmlcomment rejects a comment containing -- or ending in - and emits 2200S with invalid XML comment.",
          "sources": [
            "src.path.xml-comment"
          ],
          "method": "Read the complete comment validation loop.",
          "limits": "The branch is guarded by USE_LIBXML; without XML support the function follows the separate 0A000 path."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 2200S from 8.3.0 without proving an exact implementation introduction date.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue boundary."
        }
      ],
      "messages": [
        {
          "id": "message.comment",
          "sqlstate": "2200S",
          "primary_template": "invalid XML comment",
          "severity_source": "ERROR",
          "sources": [
            "src.path.xml-comment"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "mechanism.comment"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "mechanism.comment"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "2200T",
      "condition_name": "invalid_xml_processing_instruction",
      "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#L214",
          "lines": "214"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        },
        {
          "id": "src.path.xmlpi",
          "kind": "upstream_source",
          "source_role": "source_guard",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/xml.c",
          "sha256": "f1c70b5ee5ee9a20a41d9b2c27bc7a8a50dbd47d9489ba462a4a678f7f55f14d",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/xml.c#L1010-L1055",
          "lines": "1010-1055"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "2200T is invalid_xml_processing_instruction in SQLSTATE Class 22.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read fixed definition."
        },
        {
          "id": "mechanism.target",
          "statement": "xmlpi rejects the target name xml and reports 2200T with a target-specific DETAIL.",
          "sources": [
            "src.path.xmlpi"
          ],
          "method": "Read the target-name branch and its detail.",
          "limits": "The NULL argument check follows the target check and returns NULL after a valid target."
        },
        {
          "id": "mechanism.body",
          "statement": "xmlpi also rejects a body containing ?> and reports 2200T with a body-specific DETAIL.",
          "sources": [
            "src.path.xmlpi"
          ],
          "method": "Read the body validation branch.",
          "limits": "Do not apply comment or document repairs to this processing-instruction path."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 2200T from 8.3.0 without proving an exact implementation introduction date.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue boundary."
        }
      ],
      "messages": [
        {
          "id": "message.target",
          "sqlstate": "2200T",
          "primary_template": "invalid XML processing instruction",
          "severity_source": "ERROR",
          "sources": [
            "src.path.xmlpi"
          ],
          "detail_template": "XML processing instruction target name cannot be \"%s\"."
        },
        {
          "id": "message.body",
          "sqlstate": "2200T",
          "primary_template": "invalid XML processing instruction",
          "severity_source": "ERROR",
          "sources": [
            "src.path.xmlpi"
          ],
          "detail_template": "XML processing instruction cannot contain \"?>\"."
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "mechanism.target",
            "mechanism.body"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "mechanism.target"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "22010",
      "condition_name": "invalid_indicator_parameter_value",
      "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#L179",
          "lines": "179"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "22010 is invalid_indicator_parameter_value in SQLSTATE Class 22.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes row and macro."
        },
        {
          "id": "bounded-source-scope",
          "statement": "The bounded PostgreSQL 18.6 source review does not bind 22010 to a native emitter, primary template, severity, or API owner.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Keep the catalogue definition separate from an unresolved emitter search.",
          "limits": "A client/API or extension may own the diagnostic; no emitter is asserted here."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 22010 from 7.4 without proving an exact implementation introduction date.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue presence and history boundaries."
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "emitting-path",
          "status": "unknown",
          "evidence_ids": [
            "bounded-source-scope"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "bounded-source-scope"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "22011",
      "condition_name": "substring_error",
      "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#L180",
          "lines": "180"
        },
        {
          "id": "src.text-substring.18.6",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/varlena.c",
          "sha256": "fd4fa7e214370cabeec0a33792533e4f10037ba763ca1c433ae8795f9f04cd3c",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/varlena.c#L896-1010",
          "lines": "896-1010"
        },
        {
          "id": "src.overlay.18.6",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/varlena.c",
          "sha256": "fd4fa7e214370cabeec0a33792533e4f10037ba763ca1c433ae8795f9f04cd3c",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/varlena.c#L1166-1186",
          "lines": "1166-1186"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "22011 is substring_error in SQLSTATE Class 22.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes row and macro."
        },
        {
          "id": "resolved-text-path",
          "statement": "The fixed text_substring path raises 22011 only for an explicit negative length; the omitted-length sentinel returns the remainder and the start/end calculations cover empty and overflow cases.",
          "sources": [
            "src.text-substring.18.6"
          ],
          "method": "Read the complete text_substring wrapper and guard.",
          "limits": "This is the fixed text path; other substring data types have separate consumers."
        },
        {
          "id": "resolved-overlay-path",
          "statement": "The fixed OVERLAY path reuses the 22011 primary for a non-positive start, while an overflowing start-plus-length uses 22003.",
          "sources": [
            "src.overlay.18.6"
          ],
          "method": "Read the complete OVERLAY guard and overflow branch."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 22011 from 7.4 without proving an exact implementation introduction date.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue presence and history boundaries."
        }
      ],
      "messages": [
        {
          "id": "message.text-negative-length",
          "sqlstate": "22011",
          "primary_template": "negative substring length not allowed",
          "severity_source": "ERROR",
          "sources": [
            "src.text-substring.18.6"
          ],
          "limits": "Explicit negative text length."
        },
        {
          "id": "message.overlay-nonpositive-start",
          "sqlstate": "22011",
          "primary_template": "negative substring length not allowed",
          "severity_source": "ERROR",
          "sources": [
            "src.overlay.18.6"
          ],
          "limits": "Non-positive OVERLAY start; this is not the OVERLAY overflow branch."
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "resolved-text-path",
            "resolved-overlay-path"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "resolved-text-path"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "22012",
      "condition_name": "division_by_zero",
      "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#L182",
          "lines": "182"
        },
        {
          "id": "src.numeric-div.18.6",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/numeric.c",
          "sha256": "6cde7cd60b3330b83be35d1f014045f5fb5fe737f3c5db4c8ed4080b99f2b666",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/numeric.c#L3243-3375",
          "lines": "3243-3375"
        },
        {
          "id": "src.numeric-mod.18.6",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/numeric.c",
          "sha256": "6cde7cd60b3330b83be35d1f014045f5fb5fe737f3c5db4c8ed4080b99f2b666",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/numeric.c#L3467-3553",
          "lines": "3467-3553"
        },
        {
          "id": "src.int-div.18.6",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/int.c",
          "sha256": "ed5a4718016a9acaf68eb08d97bb5c8973c450444dca57e0b953d11c99695e77",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/int.c#L861-875",
          "lines": "861-875"
        },
        {
          "id": "src.int-mod.18.6",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/int.c",
          "sha256": "ed5a4718016a9acaf68eb08d97bb5c8973c450444dca57e0b953d11c99695e77",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/int.c#L1158-1184",
          "lines": "1158-1184"
        },
        {
          "id": "src.int8-div.18.6",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/int8.c",
          "sha256": "da4d3688c0b037346f25419ea31020af9fec54021f182370234dcbf70b748f36",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/int8.c#L503-517",
          "lines": "503-517"
        },
        {
          "id": "src.int8-mod.18.6",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/int8.c",
          "sha256": "da4d3688c0b037346f25419ea31020af9fec54021f182370234dcbf70b748f36",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/int8.c#L559-588",
          "lines": "559-588"
        },
        {
          "id": "src.float-inline.18.6",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/include/utils/float.h",
          "sha256": "e41d97d3eff1ee8447f56562cdf649733330b56f07ee3d81325ee096ff5fd446",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/include/utils/float.h#L222-250",
          "lines": "222-250"
        },
        {
          "id": "src.float-error.18.6",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/float.c",
          "sha256": "58914ae93c06c281e581a4bb2dcf2280e4ae1619f3ceb8f801f50beca87eecd8",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/float.c#L101-106",
          "lines": "101-106"
        },
        {
          "id": "src.cash-int.18.6",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/cash.c",
          "sha256": "a6b9d7af9e8d697b737a5ed5ae98226ed317ec75c06f3fb2dcb057a6bd6a92b3",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/cash.c#L155-161",
          "lines": "155-161"
        },
        {
          "id": "src.cash-money.18.6",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/cash.c",
          "sha256": "a6b9d7af9e8d697b737a5ed5ae98226ed317ec75c06f3fb2dcb057a6bd6a92b3",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/cash.c#L728-744",
          "lines": "728-744"
        },
        {
          "id": "src.interval-div.18.6",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/timestamp.c",
          "sha256": "2614ccd2182fa904b4cac9bef43039e90a1af578d2d1c6803d49a07420d168f2",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/timestamp.c#L3759-3776",
          "lines": "3759-3776"
        },
        {
          "id": "src.planner-const.18.6",
          "kind": "upstream_source",
          "source_role": "planner_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/optimizer/util/clauses.c",
          "sha256": "7268380af5eccec9e3bf90179f0a2753a7f50426d62af143a451b7f0fb542732",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/optimizer/util/clauses.c#L2437-2462",
          "lines": "2437-2462"
        },
        {
          "id": "src.docs-conditional.18.6",
          "kind": "upstream_source",
          "source_role": "conditional_expression_documentation",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "doc/src/sgml/func.sgml",
          "sha256": "05d03f505dc3c3b4fb2b3a6e8ed3275c425306a8ff20dd9548e838c26bbb968a",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/func.sgml#L20143-20150",
          "lines": "20143-20150"
        },
        {
          "id": "snippet-registry.22012",
          "kind": "local_artifact",
          "source_role": "runtime_input",
          "sha256": "d070ef39a492c0411c3fc2cf9cc841321cae85cbd8a2f8d169f49ecbadbd3be7"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "22012 is division_by_zero in SQLSTATE Class 22.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes row and macro."
        },
        {
          "id": "numeric-divmod",
          "statement": "Numeric division and modulo guard zero divisors; direct SQL calls raise, while internal opt-error forms can report through a have_error soft path.",
          "sources": [
            "src.numeric-div.18.6",
            "src.numeric-mod.18.6"
          ],
          "method": "Read the complete numeric division and modulo functions."
        },
        {
          "id": "integer-divmod",
          "statement": "The int4 and int8 division and modulo functions check their second operand before using the arithmetic operator.",
          "sources": [
            "src.int-div.18.6",
            "src.int-mod.18.6",
            "src.int8-div.18.6",
            "src.int8-mod.18.6"
          ],
          "method": "Read the representative integer and bigint guards."
        },
        {
          "id": "float-guard",
          "statement": "float4/float8 division raises for a zero divisor only when the numerator is not NaN, through the inline zero-divide helper.",
          "sources": [
            "src.float-inline.18.6",
            "src.float-error.18.6"
          ],
          "method": "Read the exact val2==0 and !isnan(val1) guard."
        },
        {
          "id": "money-and-interval",
          "statement": "Money division checks its divisor and interval division rejects a zero factor with the same condition.",
          "sources": [
            "src.cash-int.18.6",
            "src.cash-money.18.6",
            "src.interval-div.18.6"
          ],
          "method": "Read the type-specific division guards."
        },
        {
          "id": "planner-boundary",
          "statement": "The planner can evaluate an immutable constant division while simplifying expressions; same-tag conditional-expression documentation calls out unreachable CASE 1/0 as a planning-time failure boundary.",
          "sources": [
            "src.planner-const.18.6",
            "src.docs-conditional.18.6"
          ],
          "method": "Read the planner evaluation path and same-tag documentation.",
          "limits": "This is a planning/execution boundary, not an assertion that every CASE expression is evaluated early."
        },
        {
          "id": "runtime.observation",
          "statement": "The retained numeric division case observed 22012 for 10::numeric / 0::numeric and 5.0000000000000000 after 10::numeric / 2::numeric on PostgreSQL 18.6 and 10.21; both repaired sessions were IDLE.",
          "sources": [
            "runtime.22012-data-runtime-latest.latest",
            "runtime.22012-data-runtime-pg10.pg10",
            "snippet-registry.22012"
          ],
          "method": "Read both retained summaries, raw digests, and the fixed snippet registry.",
          "limits": "The observation covers this numeric case and does not generalize to every producer."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 22012 from 7.4 without proving an exact implementation introduction date.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue presence and history boundaries."
        }
      ],
      "messages": [
        {
          "id": "message.division-by-zero",
          "sqlstate": "22012",
          "primary_template": "division by zero",
          "severity_source": "ERROR",
          "sources": [
            "src.numeric-div.18.6",
            "src.numeric-mod.18.6",
            "src.int-div.18.6",
            "src.int-mod.18.6",
            "src.int8-div.18.6",
            "src.int8-mod.18.6",
            "src.float-inline.18.6",
            "src.float-error.18.6",
            "src.cash-int.18.6",
            "src.cash-money.18.6",
            "src.interval-div.18.6"
          ],
          "limits": "Direct cited guards; special values and internal numeric soft callers are type/context dependent."
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "numeric-divmod",
            "integer-divmod",
            "float-guard",
            "money-and-interval",
            "planner-boundary"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "observed_runtime",
          "evidence_ids": [
            "runtime.observation",
            "runtime.22012-data-runtime-latest.latest",
            "runtime.22012-data-runtime-pg10.pg10"
          ]
        }
      ],
      "runtime": [
        {
          "id": "runtime.22012-data-runtime-latest.latest",
          "run_id": "22012-data-runtime-latest",
          "target": "latest",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "status": "passed",
          "cases": [
            "division_by_zero_numeric"
          ],
          "summary_sha256": "a92ed17a37d32b0a6dc3f30c2b900f4d643fa0dea2736110b1d6170ccba4157c",
          "raw_sha256": "9d7035f924444adf1fa68308787310083c584343376d7b041e803a3bd2e1b539",
          "snippet_registry": {
            "sha256": "d070ef39a492c0411c3fc2cf9cc841321cae85cbd8a2f8d169f49ecbadbd3be7"
          },
          "observed": {
            "sqlstate": "22012",
            "status_after_repair": "IDLE"
          }
        },
        {
          "id": "runtime.22012-data-runtime-pg10.pg10",
          "run_id": "22012-data-runtime-pg10",
          "target": "pg10",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "status": "passed",
          "cases": [
            "division_by_zero_numeric"
          ],
          "summary_sha256": "60991b51352ba0c2294f65719ada02e39aba969e7467755b138febedcd548e50",
          "raw_sha256": "e8b465904879a89b453d291d4cabddcfe8920ea8c9752f83213644e84f6510f2",
          "snippet_registry": {
            "sha256": "d070ef39a492c0411c3fc2cf9cc841321cae85cbd8a2f8d169f49ecbadbd3be7"
          },
          "observed": {
            "sqlstate": "22012",
            "status_after_repair": "IDLE"
          }
        }
      ]
    },
    {
      "sqlstate": "22013",
      "condition_name": "invalid_preceding_or_following_size",
      "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#L183",
          "lines": "183"
        },
        {
          "id": "src.window-executor.18.6",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/executor/nodeWindowAgg.c",
          "sha256": "c365e6750bc77a89562254903d099c3e5914e001d3aae418322ccffc1d535d17",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/executor/nodeWindowAgg.c#L2144-2210",
          "lines": "2144-2210"
        },
        {
          "id": "src.range-int8.18.6",
          "kind": "upstream_source",
          "source_role": "resolved_range_guard",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/int8.c",
          "sha256": "da4d3688c0b037346f25419ea31020af9fec54021f182370234dcbf70b748f36",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/int8.c#L400-420",
          "lines": "400-420"
        },
        {
          "id": "src.range-numeric.18.6",
          "kind": "upstream_source",
          "source_role": "resolved_range_guard",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/numeric.c",
          "sha256": "6cde7cd60b3330b83be35d1f014045f5fb5fe737f3c5db4c8ed4080b99f2b666",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/numeric.c#L2690-2715",
          "lines": "2690-2715"
        },
        {
          "id": "src.range-float.18.6",
          "kind": "upstream_source",
          "source_role": "resolved_range_guard",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/float.c",
          "sha256": "58914ae93c06c281e581a4bb2dcf2280e4ae1619f3ceb8f801f50beca87eecd8",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/float.c#L1105-1125",
          "lines": "1105-1125"
        },
        {
          "id": "src.range-timestamp.18.6",
          "kind": "upstream_source",
          "source_role": "resolved_range_guard",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/timestamp.c",
          "sha256": "2614ccd2182fa904b4cac9bef43039e90a1af578d2d1c6803d49a07420d168f2",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/timestamp.c#L3860-3885",
          "lines": "3860-3885"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "22013 is invalid_preceding_or_following_size in SQLSTATE Class 22.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes row and macro."
        },
        {
          "id": "resolved-rows-groups-path",
          "statement": "The window executor rejects negative ROWS/GROUPS start or end offsets with endpoint-specific 22013 primaries; NULL endpoints use 22004.",
          "sources": [
            "src.window-executor.18.6"
          ],
          "method": "Read the complete calculate_frame_offsets branches.",
          "limits": "This source path is limited to ROWS/GROUPS."
        },
        {
          "id": "resolved-range-path",
          "statement": "Representative RANGE in_range helpers reject negative integer or interval offsets and reject the specified NaN/negative numeric and float offsets with the generic 22013 primary.",
          "sources": [
            "src.range-int8.18.6",
            "src.range-numeric.18.6",
            "src.range-float.18.6",
            "src.range-timestamp.18.6"
          ],
          "method": "Read the representative type-specific in_range guards.",
          "limits": "The cited helpers are representative, not an exhaustive list of every range-capable type."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 22013 from 11.0 without proving an exact implementation introduction date.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue presence and history boundaries."
        }
      ],
      "messages": [
        {
          "id": "message.start-negative",
          "sqlstate": "22013",
          "primary_template": "frame starting offset must not be negative",
          "severity_source": "ERROR",
          "sources": [
            "src.window-executor.18.6"
          ]
        },
        {
          "id": "message.end-negative",
          "sqlstate": "22013",
          "primary_template": "frame ending offset must not be negative",
          "severity_source": "ERROR",
          "sources": [
            "src.window-executor.18.6"
          ]
        },
        {
          "id": "message.range-generic",
          "sqlstate": "22013",
          "primary_template": "invalid preceding or following size in window function",
          "severity_source": "ERROR",
          "sources": [
            "src.range-int8.18.6",
            "src.range-numeric.18.6",
            "src.range-float.18.6",
            "src.range-timestamp.18.6"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "resolved-rows-groups-path",
            "resolved-range-path"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "resolved-rows-groups-path",
            "resolved-range-path"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "22014",
      "condition_name": "invalid_argument_for_ntile_function",
      "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#L184",
          "lines": "184"
        },
        {
          "id": "src.ntile.18.6",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/windowfuncs.c",
          "sha256": "49214f9325dcdd73728d08574b0b6843e90822a18bdaf6b0d49139b1eaae6b63",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/windowfuncs.c#L411-475",
          "lines": "411-475"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "22014 is invalid_argument_for_ntile_function in SQLSTATE Class 22.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes row and macro."
        },
        {
          "id": "resolved-path",
          "statement": "When ntile state is still uninitialized, the function evaluates the bucket argument; NULL returns before initialization, non-positive raises 22014, and a positive count initializes and is reused for later rows.",
          "sources": [
            "src.ntile.18.6"
          ],
          "method": "Read the complete window_ntile initialization, NULL, guard, and distribution path.",
          "limits": "An empty input has no window-function row to evaluate."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 22014 from 8.4.0 without proving an exact implementation introduction date.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue presence and history boundaries."
        }
      ],
      "messages": [
        {
          "id": "message.nonpositive-buckets",
          "sqlstate": "22014",
          "primary_template": "argument of ntile must be greater than zero",
          "severity_source": "ERROR",
          "sources": [
            "src.ntile.18.6"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "resolved-path"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "resolved-path"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "22015",
      "condition_name": "interval_field_overflow",
      "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#L185",
          "lines": "185"
        },
        {
          "id": "src.interval-input.18.6",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/timestamp.c",
          "sha256": "2614ccd2182fa904b4cac9bef43039e90a1af578d2d1c6803d49a07420d168f2",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/timestamp.c#L884-967",
          "lines": "884-967"
        },
        {
          "id": "src.datetime-errors.18.6",
          "kind": "upstream_source",
          "source_role": "error_mapping",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/datetime.c",
          "sha256": "709e05b536f611f7eeaaabb716501d59d4d1e87c53757e15240fe1fc4845459c",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/datetime.c#L4195-4266",
          "lines": "4195-4266"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "22015 is interval_field_overflow in SQLSTATE Class 22.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes row and macro."
        },
        {
          "id": "interval-input-path",
          "statement": "interval_in maps a datetime field-overflow decode result to DTERR_INTERVAL_OVERFLOW before DateTimeParseError reports the interval-field primary; later itmin2interval range failure is a separate 22008 branch.",
          "sources": [
            "src.interval-input.18.6",
            "src.datetime-errors.18.6"
          ],
          "method": "Read interval_in, the remap, and the DateTimeParseError switch.",
          "limits": "This is the interval input decoding path, not every interval arithmetic overflow."
        },
        {
          "id": "soft-error-path",
          "statement": "DateTimeParseError fills ErrorSaveContext through errsave instead of throwing when a soft error context is supplied; ordinary callers receive ERROR.",
          "sources": [
            "src.datetime-errors.18.6"
          ],
          "method": "Read the ErrorSaveContext comment and errsave branch."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 22015 from 7.4 without proving an exact implementation introduction date.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue presence and history boundaries."
        }
      ],
      "messages": [
        {
          "id": "message.interval-field-overflow",
          "sqlstate": "22015",
          "primary_template": "interval field value out of range: \"%s\"",
          "severity_source": "ERROR (ordinary context; errsave soft path when escontext supplied)",
          "sources": [
            "src.datetime-errors.18.6"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "interval-input-path",
            "soft-error-path"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "interval-input-path"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "22016",
      "condition_name": "invalid_argument_for_nth_value_function",
      "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#L186",
          "lines": "186"
        },
        {
          "id": "src.nth-value.18.6",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/windowfuncs.c",
          "sha256": "49214f9325dcdd73728d08574b0b6843e90822a18bdaf6b0d49139b1eaae6b63",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/windowfuncs.c#L686-715",
          "lines": "686-715"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "22016 is invalid_argument_for_nth_value_function in SQLSTATE Class 22.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes row and macro."
        },
        {
          "id": "resolved-path",
          "statement": "window_nth_value returns NULL for a NULL ordinal, raises 22016 for a non-positive ordinal, and returns NULL when a valid positive ordinal selects no row in the current frame or a NULL value.",
          "sources": [
            "src.nth-value.18.6"
          ],
          "method": "Read the complete ordinal check, frame lookup, and NULL result path."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 22016 from 8.4.0 without proving an exact implementation introduction date.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue presence and history boundaries."
        }
      ],
      "messages": [
        {
          "id": "message.nonpositive-ordinal",
          "sqlstate": "22016",
          "primary_template": "argument of nth_value must be greater than zero",
          "severity_source": "ERROR",
          "sources": [
            "src.nth-value.18.6"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "resolved-path"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "resolved-path"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "22018",
      "condition_name": "invalid_character_value_for_cast",
      "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#L188",
          "lines": "188"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "22018 is invalid_character_value_for_cast in SQLSTATE Class 22.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes row and macro."
        },
        {
          "id": "bounded-source-scope",
          "statement": "The bounded PostgreSQL 18.6 source review does not bind 22018 to one native emitter, parser, primary template, or severity.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Keep the catalogue definition separate from an unresolved emitter search.",
          "limits": "A particular parser or wrapper must supply the complete diagnostic context."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 22018 from 7.4 without proving an exact implementation introduction date.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue presence and history boundaries."
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "emitting-path",
          "status": "unknown",
          "evidence_ids": [
            "bounded-source-scope"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "bounded-source-scope"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "22019",
      "condition_name": "invalid_escape_character",
      "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#L189",
          "lines": "189"
        },
        {
          "id": "src.docs-pattern-escape.18.6",
          "kind": "upstream_source",
          "source_role": "consumer_documentation",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "doc/src/sgml/func.sgml",
          "sha256": "05d03f505dc3c3b4fb2b3a6e8ed3275c425306a8ff20dd9548e838c26bbb968a",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/func.sgml#L5551-L5830",
          "lines": "5551-5662,5724-5830"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "22019 is invalid_escape_character in SQLSTATE Class 22.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes row and macro."
        },
        {
          "id": "consumer-rules",
          "statement": "Same-tag LIKE and SIMILAR documentation describes one-character escapes, the default backslash, and PostgreSQL's ESCAPE empty-string behavior; it does not identify a 22019 emitter.",
          "sources": [
            "src.docs-pattern-escape.18.6"
          ],
          "method": "Read the same-tag pattern-matching documentation.",
          "limits": "Other consumers may impose different escape rules."
        },
        {
          "id": "bounded-source-scope",
          "statement": "The bounded PostgreSQL 18.6 source scan found no resolved native occurrence of ERRCODE_INVALID_ESCAPE_CHARACTER, so no primary or severity is attached.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Keep consumer documentation separate from an unresolved emitter search.",
          "limits": "This is not a claim that no external wrapper can report the condition."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 22019 from 7.4 without proving an exact implementation introduction date.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue presence and history boundaries."
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "consumer-rules",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "consumer-rules"
          ]
        },
        {
          "scope": "emitting-path",
          "status": "unknown",
          "evidence_ids": [
            "bounded-source-scope"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "bounded-source-scope"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "2201B",
      "condition_name": "invalid_regular_expression",
      "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#L190",
          "lines": "190"
        },
        {
          "id": "src.regexp-compile.18.6",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/regexp.c",
          "sha256": "8c54fe9e937ce03111b39da7bca89b22d6cb2de6b9ce5f7caf90c76bc7218e0e",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/regexp.c#L204-224",
          "lines": "204-224"
        },
        {
          "id": "src.regexp-execute.18.6",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/regexp.c",
          "sha256": "8c54fe9e937ce03111b39da7bca89b22d6cb2de6b9ce5f7caf90c76bc7218e0e",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/regexp.c#L285-305",
          "lines": "285-305"
        },
        {
          "id": "src.regexp-match.18.6",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/regexp.c",
          "sha256": "8c54fe9e937ce03111b39da7bca89b22d6cb2de6b9ce5f7caf90c76bc7218e0e",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/regexp.c#L2050-2070",
          "lines": "2050-2070"
        },
        {
          "id": "src.hba-compile.18.6",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/libpq/hba.c",
          "sha256": "b31049f83ce504979493155e9f496ab26b5f642969acc1d5280c32a86e7d1db3",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/libpq/hba.c#L298-340",
          "lines": "298-340"
        },
        {
          "id": "src.hba-load.18.6",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/libpq/hba.c",
          "sha256": "b31049f83ce504979493155e9f496ab26b5f642969acc1d5280c32a86e7d1db3",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/libpq/hba.c#L2635-2683",
          "lines": "2635-2683"
        },
        {
          "id": "src.hba-ident-match.18.6",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/libpq/hba.c",
          "sha256": "b31049f83ce504979493155e9f496ab26b5f642969acc1d5280c32a86e7d1db3",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/libpq/hba.c#L2835-2864",
          "lines": "2835-2864"
        },
        {
          "id": "src.hba-ident-backref.18.6",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/libpq/hba.c",
          "sha256": "b31049f83ce504979493155e9f496ab26b5f642969acc1d5280c32a86e7d1db3",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/libpq/hba.c#L2880-2887",
          "lines": "2880-2887"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "2201B is invalid_regular_expression in SQLSTATE Class 22.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes row and macro."
        },
        {
          "id": "sql-regex-path",
          "statement": "SQL regex compilation reports invalid regular expression: %s; execution errors other than REG_NOMATCH report regular expression failed: %s.",
          "sources": [
            "src.regexp-compile.18.6",
            "src.regexp-execute.18.6",
            "src.regexp-match.18.6"
          ],
          "method": "Read the compile and execution branches.",
          "limits": "REG_NOMATCH is a normal no-match result."
        },
        {
          "id": "hba-config-path",
          "statement": "HBA regex compilation checks only the token leading slash and passes token->string + 1 to the regex compiler; it uses a caller-selected level and load_hba passes LOG, while ident-map regex match and missing-backreference cases use separate LOG messages.",
          "sources": [
            "src.hba-compile.18.6",
            "src.hba-load.18.6",
            "src.hba-ident-match.18.6",
            "src.hba-ident-backref.18.6"
          ],
          "method": "Read the HBA compiler, load_hba caller, and ident-map branches.",
          "limits": "Configuration diagnostics are distinct from SQL expression ERROR paths."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 2201B from 7.4 without proving an exact implementation introduction date.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue presence and history boundaries."
        }
      ],
      "messages": [
        {
          "id": "message.sql-compile",
          "sqlstate": "2201B",
          "primary_template": "invalid regular expression: %s",
          "severity_source": "ERROR",
          "sources": [
            "src.regexp-compile.18.6"
          ]
        },
        {
          "id": "message.sql-execute",
          "sqlstate": "2201B",
          "primary_template": "regular expression failed: %s",
          "severity_source": "ERROR",
          "sources": [
            "src.regexp-execute.18.6",
            "src.regexp-match.18.6"
          ],
          "limits": "Execution errors other than REG_NOMATCH."
        },
        {
          "id": "message.hba-compile",
          "sqlstate": "2201B",
          "primary_template": "invalid regular expression \"%s\": %s",
          "severity_source": "caller-selected (normal load_hba path passes LOG)",
          "sources": [
            "src.hba-compile.18.6",
            "src.hba-load.18.6"
          ],
          "context_template": "line %d of configuration file \"%s\""
        },
        {
          "id": "message.hba-ident-match",
          "sqlstate": "2201B",
          "primary_template": "regular expression match for \"%s\" failed: %s",
          "severity_source": "LOG",
          "sources": [
            "src.hba-ident-match.18.6"
          ]
        },
        {
          "id": "message.hba-ident-backref",
          "sqlstate": "2201B",
          "primary_template": "regular expression \"%s\" has no subexpressions as requested by backreference in \"%s\"",
          "severity_source": "LOG",
          "sources": [
            "src.hba-ident-backref.18.6"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "sql-regex-path",
            "hba-config-path"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "sql-regex-path",
            "hba-config-path"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "2201E",
      "condition_name": "invalid_argument_for_logarithm",
      "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#L173",
          "lines": "173"
        },
        {
          "id": "src.float.log",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/float.c",
          "sha256": "58914ae93c06c281e581a4bb2dcf2280e4ae1619f3ceb8f801f50beca87eecd8",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/float.c#L1687",
          "lines": "1687-1747"
        },
        {
          "id": "src.numeric.log",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/numeric.c",
          "sha256": "6cde7cd60b3330b83be35d1f014045f5fb5fe737f3c5db4c8ed4080b99f2b666",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/numeric.c#L3935",
          "lines": "3935-4020"
        },
        {
          "id": "src.numeric.ln.finite",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/numeric.c",
          "sha256": "6cde7cd60b3330b83be35d1f014045f5fb5fe737f3c5db4c8ed4080b99f2b666",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/numeric.c#L11156",
          "lines": "11156-11168"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "2201E is invalid_argument_for_logarithm in SQLSTATE Class 22",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes row and macro."
        },
        {
          "id": "resolved-path",
          "statement": "Fixed PostgreSQL 18.6 float and numeric logarithm paths bind zero/negative guards and distinct NaN/infinity handling for both ln and base-log operations.",
          "sources": [
            "src.float.log",
            "src.numeric.log",
            "src.numeric.ln.finite"
          ],
          "method": "Read complete source contexts for the representative guards.",
          "limits": "Source confirmation is not a natural runtime observation."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 2201E from 8.0.0 without proving an exact implementation introduction date.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue presence and history boundaries."
        }
      ],
      "messages": [
        {
          "id": "message.zero",
          "primary_template": "cannot take logarithm of zero",
          "severity_source": "ERROR",
          "sources": [
            "src.float.log",
            "src.numeric.log",
            "src.numeric.ln.finite"
          ],
          "sqlstate": "2201E"
        },
        {
          "id": "message.negative",
          "primary_template": "cannot take logarithm of a negative number",
          "severity_source": "ERROR",
          "sources": [
            "src.float.log",
            "src.numeric.log",
            "src.numeric.ln.finite"
          ],
          "sqlstate": "2201E"
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "resolved-path"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "resolved-path"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "2201F",
      "condition_name": "invalid_argument_for_power_function",
      "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#L176",
          "lines": "176"
        },
        {
          "id": "src.numeric.power.special",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/numeric.c",
          "sha256": "6cde7cd60b3330b83be35d1f014045f5fb5fe737f3c5db4c8ed4080b99f2b666",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/numeric.c#L4045",
          "lines": "4045-4111"
        },
        {
          "id": "src.numeric.power.finite",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/numeric.c",
          "sha256": "6cde7cd60b3330b83be35d1f014045f5fb5fe737f3c5db4c8ed4080b99f2b666",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/numeric.c#L4208",
          "lines": "4208-4220"
        },
        {
          "id": "src.numeric.power.negative",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/numeric.c",
          "sha256": "6cde7cd60b3330b83be35d1f014045f5fb5fe737f3c5db4c8ed4080b99f2b666",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/numeric.c#L11373",
          "lines": "11373-11384"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "2201F is invalid_argument_for_power_function in SQLSTATE Class 22",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes row and macro."
        },
        {
          "id": "resolved-path",
          "statement": "Fixed PostgreSQL 18.6 numeric power paths bind zero-negative-exponent and negative-base-non-integral guards, including finite and special-value branches.",
          "sources": [
            "src.numeric.power.special",
            "src.numeric.power.finite",
            "src.numeric.power.negative"
          ],
          "method": "Read complete source contexts for the representative guards.",
          "limits": "Source confirmation is not a natural runtime observation."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 2201F from 8.0.0 without proving an exact implementation introduction date.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue presence and history boundaries."
        }
      ],
      "messages": [
        {
          "id": "message.zero-negative-power",
          "primary_template": "zero raised to a negative power is undefined",
          "severity_source": "ERROR",
          "sources": [
            "src.numeric.power.special",
            "src.numeric.power.finite"
          ],
          "sqlstate": "2201F"
        },
        {
          "id": "message.negative-noninteger",
          "primary_template": "a negative number raised to a non-integer power yields a complex result",
          "severity_source": "ERROR",
          "sources": [
            "src.numeric.power.special",
            "src.numeric.power.negative"
          ],
          "sqlstate": "2201F"
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "resolved-path"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "resolved-path"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "2201G",
      "condition_name": "invalid_argument_for_width_bucket_function",
      "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#L177",
          "lines": "177"
        },
        {
          "id": "src.numeric.width_bucket",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/numeric.c",
          "sha256": "6cde7cd60b3330b83be35d1f014045f5fb5fe737f3c5db4c8ed4080b99f2b666",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/numeric.c#L1959",
          "lines": "1959-2045"
        },
        {
          "id": "src.float.width_bucket",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/float.c",
          "sha256": "58914ae93c06c281e581a4bb2dcf2280e4ae1619f3ceb8f801f50beca87eecd8",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/float.c#L4060",
          "lines": "4060-4180"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "2201G is invalid_argument_for_width_bucket_function in SQLSTATE Class 22",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes row and macro."
        },
        {
          "id": "resolved-path",
          "statement": "Fixed PostgreSQL 18.6 numeric and float8 width_bucket paths bind count, NaN, finite-bound, unequal-bound, ascending, descending, and operand-infinity behavior.",
          "sources": [
            "src.numeric.width_bucket",
            "src.float.width_bucket"
          ],
          "method": "Read complete source contexts for the representative guards.",
          "limits": "Source confirmation is not a natural runtime observation."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 2201G from 8.0.0 without proving an exact implementation introduction date.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue presence and history boundaries."
        },
        {
          "id": "neighbor-22003",
          "statement": "Valid endpoint arithmetic can raise the distinct 22003 integer-out-of-range condition when count plus one exceeds int4.",
          "sources": [
            "src.numeric.width_bucket",
            "src.float.width_bucket"
          ],
          "method": "Read the result conversion/overflow branch, not the 2201G guards."
        }
      ],
      "messages": [
        {
          "id": "message.count",
          "primary_template": "count must be greater than zero",
          "severity_source": "ERROR",
          "sources": [
            "src.numeric.width_bucket",
            "src.float.width_bucket"
          ],
          "sqlstate": "2201G"
        },
        {
          "id": "message.nan",
          "primary_template": "operand, lower bound, and upper bound cannot be NaN",
          "severity_source": "ERROR",
          "sources": [
            "src.numeric.width_bucket",
            "src.float.width_bucket"
          ],
          "sqlstate": "2201G"
        },
        {
          "id": "message.bounds-finite",
          "primary_template": "lower and upper bounds must be finite",
          "severity_source": "ERROR",
          "sources": [
            "src.numeric.width_bucket",
            "src.float.width_bucket"
          ],
          "sqlstate": "2201G"
        },
        {
          "id": "message.bounds-equal",
          "primary_template": "lower bound cannot equal upper bound",
          "severity_source": "ERROR",
          "sources": [
            "src.numeric.width_bucket",
            "src.float.width_bucket"
          ],
          "sqlstate": "2201G"
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "resolved-path"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "resolved-path"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "2201W",
      "condition_name": "invalid_row_count_in_limit_clause",
      "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#L188",
          "lines": "188"
        },
        {
          "id": "src.nodeLimit.limit",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/executor/nodeLimit.c",
          "sha256": "f4c202d7182d66c6bef222fa50439831691dd99bfa5fd6b4de7f9142635dc305",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/executor/nodeLimit.c#L347",
          "lines": "347-405"
        },
        {
          "id": "src.parse_clause.with_ties",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/parser/parse_clause.c",
          "sha256": "fd3fb69d6ea2ed0c220eba1d4479c0b79d8713b39a28c62cc4bf1428491e8ebd",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/parser/parse_clause.c#L1890",
          "lines": "1890-1907"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "2201W is invalid_row_count_in_limit_clause in SQLSTATE Class 22",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes row and macro."
        },
        {
          "id": "resolved-path",
          "statement": "Fixed PostgreSQL 18.6 executor and parser paths distinguish ordinary LIMIT NULL/zero/negative values from the narrow literal NULL WITH TIES guard.",
          "sources": [
            "src.nodeLimit.limit",
            "src.parse_clause.with_ties"
          ],
          "method": "Read complete source contexts for the representative guards.",
          "limits": "Source confirmation is not a natural runtime observation."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 2201W from 8.4.0 without proving an exact implementation introduction date.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue presence and history boundaries."
        }
      ],
      "messages": [
        {
          "id": "message.limit-negative",
          "primary_template": "LIMIT must not be negative",
          "severity_source": "ERROR",
          "sources": [
            "src.nodeLimit.limit"
          ],
          "sqlstate": "2201W"
        },
        {
          "id": "message.with-ties-null",
          "primary_template": "row count cannot be null in FETCH FIRST ... WITH TIES clause",
          "severity_source": "ERROR",
          "sources": [
            "src.parse_clause.with_ties"
          ],
          "sqlstate": "2201W"
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "resolved-path"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "resolved-path"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "2201X",
      "condition_name": "invalid_row_count_in_result_offset_clause",
      "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#L189",
          "lines": "189"
        },
        {
          "id": "src.nodeLimit.offset",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/executor/nodeLimit.c",
          "sha256": "f4c202d7182d66c6bef222fa50439831691dd99bfa5fd6b4de7f9142635dc305",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/executor/nodeLimit.c#L356",
          "lines": "356-375"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "2201X is invalid_row_count_in_result_offset_clause in SQLSTATE Class 22",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes row and macro."
        },
        {
          "id": "resolved-path",
          "statement": "Fixed PostgreSQL 18.6 executor recomputation maps NULL OFFSET to zero and emits 2201X only for a negative evaluated offset.",
          "sources": [
            "src.nodeLimit.offset"
          ],
          "method": "Read complete source contexts for the representative guards.",
          "limits": "Source confirmation is not a natural runtime observation."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 2201X from 8.4.0 without proving an exact implementation introduction date.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue presence and history boundaries."
        }
      ],
      "messages": [
        {
          "id": "message.offset-negative",
          "primary_template": "OFFSET must not be negative",
          "severity_source": "ERROR",
          "sources": [
            "src.nodeLimit.offset"
          ],
          "sqlstate": "2201X"
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "resolved-path"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "resolved-path"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "22021",
      "condition_name": "character_not_in_repertoire",
      "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#L165",
          "lines": "165"
        },
        {
          "id": "src.mbutils.invalid",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/mb/mbutils.c",
          "sha256": "2c034d792a3fbc402d673d6e08bd6a2198651bfd3c057176d4098f7e4a215dfb",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/mb/mbutils.c#L1818",
          "lines": "1818-1853"
        },
        {
          "id": "src.mbutils.untranslatable",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/mb/mbutils.c",
          "sha256": "2c034d792a3fbc402d673d6e08bd6a2198651bfd3c057176d4098f7e4a215dfb",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/mb/mbutils.c#L1861",
          "lines": "1861-1905"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "22021 is character_not_in_repertoire in SQLSTATE Class 22",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes row and macro."
        },
        {
          "id": "resolved-path",
          "statement": "Fixed PostgreSQL 18.6 encoding helpers distinguish invalid source bytes (22021) from a valid source character with no destination equivalent (22P05).",
          "sources": [
            "src.mbutils.invalid",
            "src.mbutils.untranslatable"
          ],
          "method": "Read complete source contexts for the representative guards.",
          "limits": "Source confirmation is not a natural runtime observation."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 22021 from 7.4 without proving an exact implementation introduction date.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue presence and history boundaries."
        }
      ],
      "messages": [
        {
          "id": "message.invalid-byte",
          "primary_template": "invalid byte sequence for encoding \"%s\": %s",
          "severity_source": "ERROR",
          "sources": [
            "src.mbutils.invalid"
          ],
          "sqlstate": "22021"
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "resolved-path"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "resolved-path"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "22022",
      "condition_name": "indicator_overflow",
      "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#L171",
          "lines": "171"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "22022 is indicator_overflow in SQLSTATE Class 22.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes row and macro."
        },
        {
          "id": "bounded-scan",
          "statement": "No fixed PostgreSQL 18.6 emitting report group was resolved for 22022 in the bounded source review.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Retain definition evidence without inventing an ECPG, SQL cast, or server-column emitter.",
          "limits": "A bounded scan does not prove that no extension, client, or historical path exists."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 22022 from 7.4 without proving an exact implementation introduction date.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue presence and history boundaries."
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "emitting-path",
          "status": "unknown",
          "evidence_ids": [
            "bounded-scan"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "bounded-scan"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "22023",
      "condition_name": "invalid_parameter_value",
      "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#L185",
          "lines": "185"
        },
        {
          "id": "src.amcheck",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "contrib/amcheck/verify_heapam.c",
          "sha256": "54f1452790c2f2ecca059f38221a422a91ef5d35a436e48b1b12ba393a5881eb",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/contrib/amcheck/verify_heapam.c#L271",
          "lines": "271-303"
        },
        {
          "id": "src.postgres_fdw",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "contrib/postgres_fdw/option.c",
          "sha256": "880fd16c3e5cbc56733d1292ffdcc9b0f6cb1e17e72c90e9afa4e359239dc314",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/contrib/postgres_fdw/option.c#L149",
          "lines": "149-185"
        },
        {
          "id": "src.regexp.options",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/regexp.c",
          "sha256": "8c54fe9e937ce03111b39da7bca89b22d6cb2de6b9ce5f7caf90c76bc7218e0e",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/regexp.c#L443",
          "lines": "443-446"
        },
        {
          "id": "src.guc.parse",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/misc/guc.c",
          "sha256": "3021d40bb4e920a56fbc5e9452e32903a7364d7ce0aece65be70aa3c34c1274e",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/misc/guc.c#L3129",
          "lines": "3129-3320"
        },
        {
          "id": "src.guc.hooks",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/misc/guc.c",
          "sha256": "3021d40bb4e920a56fbc5e9452e32903a7364d7ce0aece65be70aa3c34c1274e",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/misc/guc.c#L6804",
          "lines": "6804-6990"
        },
        {
          "id": "snippet-registry.22023",
          "kind": "local_artifact",
          "source_role": "runtime_input",
          "sha256": "b353a8e7365013a0c5bd27aea71353f81ad125465c825df557bb8e122ddf49ac"
        },
        {
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/misc/guc.c",
          "sha256": "3021d40bb4e920a56fbc5e9452e32903a7364d7ce0aece65be70aa3c34c1274e",
          "id": "src.guc.units",
          "lines": "87-181",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/misc/guc.c#L87"
        },
        {
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/misc/guc.c",
          "sha256": "3021d40bb4e920a56fbc5e9452e32903a7364d7ce0aece65be70aa3c34c1274e",
          "id": "src.guc.context",
          "lines": "3342-3430",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/misc/guc.c#L3342"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "22023 is invalid_parameter_value in SQLSTATE Class 22",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes row and macro."
        },
        {
          "id": "resolved-path",
          "statement": "Fixed PostgreSQL 18.6 representatives bind owner-specific NULL/option/range checks and built-in GUC parse/range/unit/context/check-hook paths.",
          "sources": [
            "src.amcheck",
            "src.postgres_fdw",
            "src.regexp.options",
            "src.guc.parse",
            "src.guc.hooks",
            "src.guc.units",
            "src.guc.context"
          ],
          "method": "Read complete source contexts for the representative guards.",
          "limits": "Source confirmation is not a natural runtime observation."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 22023 from 7.4 without proving an exact implementation introduction date.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue presence and history boundaries."
        },
        {
          "id": "runtime.observation",
          "statement": "The retained invalid_work_mem_parameter case passed on PostgreSQL 18.6 and 10.21 with the observed message and repair described on the page.",
          "sources": [
            "runtime.22023-work-mem-latest.latest",
            "runtime.22023-work-mem-pg10.pg10",
            "snippet-registry.22023"
          ],
          "method": "Read both retained summaries, raw digests, and the fixed snippet registry.",
          "limits": "The observation covers the named GUC case and does not generalize to every 22023 owner."
        }
      ],
      "messages": [
        {
          "id": "message.0",
          "sqlstate": "22023",
          "primary_template": "relation cannot be null",
          "severity_source": "ERROR",
          "sources": [
            "src.amcheck"
          ]
        },
        {
          "id": "message.1",
          "sqlstate": "22023",
          "primary_template": "on_error_stop cannot be null",
          "severity_source": "ERROR",
          "sources": [
            "src.amcheck"
          ]
        },
        {
          "id": "message.2",
          "sqlstate": "22023",
          "primary_template": "check_toast cannot be null",
          "severity_source": "ERROR",
          "sources": [
            "src.amcheck"
          ]
        },
        {
          "id": "message.3",
          "sqlstate": "22023",
          "primary_template": "skip cannot be null",
          "severity_source": "ERROR",
          "sources": [
            "src.amcheck"
          ]
        },
        {
          "id": "message.4",
          "sqlstate": "22023",
          "primary_template": "invalid skip option",
          "severity_source": "ERROR",
          "hint_template": "Valid skip options are \"all-visible\", \"all-frozen\", and \"none\".",
          "sources": [
            "src.amcheck"
          ]
        },
        {
          "id": "message.5",
          "sqlstate": "22023",
          "primary_template": "invalid value for floating point option \"%s\": %s",
          "severity_source": "ERROR",
          "sources": [
            "src.postgres_fdw"
          ]
        },
        {
          "id": "message.6",
          "sqlstate": "22023",
          "primary_template": "\"%s\" must be a floating point value greater than or equal to zero",
          "severity_source": "ERROR",
          "sources": [
            "src.postgres_fdw"
          ]
        },
        {
          "id": "message.7",
          "sqlstate": "22023",
          "primary_template": "invalid value for integer option \"%s\": %s",
          "severity_source": "ERROR",
          "sources": [
            "src.postgres_fdw"
          ]
        },
        {
          "id": "message.8",
          "sqlstate": "22023",
          "primary_template": "\"%s\" must be an integer value greater than zero",
          "severity_source": "ERROR",
          "sources": [
            "src.postgres_fdw"
          ]
        },
        {
          "id": "message.9",
          "sqlstate": "22023",
          "primary_template": "invalid regular expression option: \"%.*s\"",
          "severity_source": "ERROR",
          "sources": [
            "src.regexp.options"
          ]
        },
        {
          "id": "message.guc-bool",
          "primary_template": "parameter \"%s\" requires a Boolean value",
          "severity_source": "ERROR",
          "sources": [
            "src.guc.parse"
          ],
          "sqlstate": "22023"
        },
        {
          "id": "message.guc-invalid",
          "primary_template": "invalid value for parameter \"%s\": \"%s\"",
          "severity_source": "ERROR",
          "sources": [
            "src.guc.parse",
            "src.guc.hooks"
          ],
          "sqlstate": "22023"
        },
        {
          "id": "message.guc-range-int",
          "primary_template": "%d%s%s is outside the valid range for parameter \"%s\" (%d%s%s .. %d%s%s)",
          "severity_source": "ERROR",
          "sources": [
            "src.guc.parse"
          ],
          "sqlstate": "22023"
        },
        {
          "id": "message.guc-range-real",
          "primary_template": "%g%s%s is outside the valid range for parameter \"%s\" (%g%s%s .. %g%s%s)",
          "severity_source": "ERROR",
          "sources": [
            "src.guc.parse"
          ],
          "sqlstate": "22023"
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "resolved-path"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "observed_runtime",
          "evidence_ids": [
            "runtime.observation",
            "runtime.22023-work-mem-latest.latest",
            "runtime.22023-work-mem-pg10.pg10"
          ]
        }
      ],
      "runtime": [
        {
          "id": "runtime.22023-work-mem-latest.latest",
          "run_id": "22023-work-mem-latest",
          "target": "latest",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "status": "passed",
          "cases": [
            "invalid_work_mem_parameter"
          ],
          "summary_sha256": "1705bbe83c899a9ce9739bf627cbcc14a17d32c39bd5ca36d11102eabb92f56f",
          "raw_sha256": "932cb783e8a553f44f6edffe9668d36c82f970e200a15770f73c8447f12f7b21",
          "snippet_registry": {
            "sha256": "b353a8e7365013a0c5bd27aea71353f81ad125465c825df557bb8e122ddf49ac"
          },
          "observed": {
            "sqlstate": "22023",
            "status_after_repair": "IDLE"
          }
        },
        {
          "id": "runtime.22023-work-mem-pg10.pg10",
          "run_id": "22023-work-mem-pg10",
          "target": "pg10",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "status": "passed",
          "cases": [
            "invalid_work_mem_parameter"
          ],
          "summary_sha256": "9c817f503bad26ec87bd09cbb3b0bf701de02fb9c2dcb14b5472d8fcb1e85509",
          "raw_sha256": "f583cfbb6b8204ba5354d14e0b4808120f648668c17f1c2c2923223bdb21c313",
          "snippet_registry": {
            "sha256": "b353a8e7365013a0c5bd27aea71353f81ad125465c825df557bb8e122ddf49ac"
          },
          "observed": {
            "sqlstate": "22023",
            "status_after_repair": "IDLE"
          }
        }
      ]
    },
    {
      "sqlstate": "22024",
      "condition_name": "unterminated_c_string",
      "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#L203",
          "lines": "203"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "22024 is unterminated_c_string in SQLSTATE Class 22.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes row and macro."
        },
        {
          "id": "bounded-scan",
          "statement": "No fixed PostgreSQL 18.6 emitting report group was resolved for 22024 in the bounded source review.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Retain definition evidence without inventing an SQL, ECPG, client, or parser emitter.",
          "limits": "A bounded scan does not prove that no extension, client, or historical path exists."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 22024 from 7.4 without proving an exact implementation introduction date.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue presence and history boundaries."
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "emitting-path",
          "status": "unknown",
          "evidence_ids": [
            "bounded-scan"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "bounded-scan"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "22025",
      "condition_name": "invalid_escape_sequence",
      "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#L182",
          "lines": "182"
        },
        {
          "id": "src.like.pattern",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/like_match.c",
          "sha256": "7cc02d42bc11e87e13cc61ea32f066627f9f5632dac37774160ae809b606b789",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/like_match.c#L159",
          "lines": "159-165"
        },
        {
          "id": "src.like.escape",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/like_match.c",
          "sha256": "7cc02d42bc11e87e13cc61ea32f066627f9f5632dac37774160ae809b606b789",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/like_match.c#L439",
          "lines": "439-449"
        },
        {
          "id": "src.regexp.escape",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/regexp.c",
          "sha256": "8c54fe9e937ce03111b39da7bca89b22d6cb2de6b9ce5f7caf90c76bc7218e0e",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/regexp.c#L793",
          "lines": "793-805"
        },
        {
          "id": "src.scan.unicode",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/parser/scan.l",
          "sha256": "bf453f1ae3c22b84fea6f8e8bed4fda476b7cfa49b234efbf92ca228234d0293",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/parser/scan.l#L697",
          "lines": "697-704"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "22025 is invalid_escape_sequence in SQLSTATE Class 22",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes row and macro."
        },
        {
          "id": "resolved-path",
          "statement": "Fixed PostgreSQL 18.6 LIKE, SQL regular-expression translation, and core scanner paths bind distinct escape-length, trailing-pattern, and malformed-Unicode guards.",
          "sources": [
            "src.like.pattern",
            "src.like.escape",
            "src.regexp.escape",
            "src.scan.unicode"
          ],
          "method": "Read complete source contexts for the representative guards.",
          "limits": "Source confirmation is not a natural runtime observation."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 22025 from 7.4 without proving an exact implementation introduction date.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue presence and history boundaries."
        },
        {
          "id": "neighboring-codes",
          "statement": "SIMILAR separator overflow and regexp_replace parameter validation use different SQLSTATE paths (2200C/22023) and are not folded into 22025.",
          "sources": [
            "src.regexp.escape",
            "src.like.escape"
          ],
          "method": "Read the adjacent consumers and their explicit errcodes."
        }
      ],
      "messages": [
        {
          "id": "message.invalid-escape-like",
          "primary_template": "invalid escape string",
          "severity_source": "ERROR",
          "sources": [
            "src.like.escape"
          ],
          "sqlstate": "22025",
          "hint_template": "Escape string must be empty or one character."
        },
        {
          "id": "message.like-trailing",
          "primary_template": "LIKE pattern must not end with escape character",
          "severity_source": "ERROR",
          "sources": [
            "src.like.pattern"
          ],
          "sqlstate": "22025"
        },
        {
          "id": "message.invalid-escape-regexp",
          "primary_template": "invalid escape string",
          "severity_source": "ERROR",
          "sources": [
            "src.regexp.escape"
          ],
          "hint_template": "Escape string must be empty or one character.",
          "sqlstate": "22025"
        },
        {
          "id": "message.invalid-unicode",
          "primary_template": "invalid Unicode escape",
          "severity_source": "ERROR",
          "sources": [
            "src.scan.unicode"
          ],
          "hint_template": "Unicode escapes must be \\uXXXX or \\UXXXXXXXX.",
          "sqlstate": "22025"
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "resolved-path"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "resolved-path"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "22026",
      "condition_name": "string_data_length_mismatch",
      "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#L199",
          "lines": "199"
        },
        {
          "id": "src.path.0",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/varbit.c",
          "sha256": "f719afe56683db3714a41d2f49f454a6b65b38e310c00d5afe47cbc44fd9480d",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/varbit.c#L354",
          "lines": "354-357"
        },
        {
          "id": "src.varbit.bit-cast",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/varbit.c",
          "sha256": "f719afe56683db3714a41d2f49f454a6b65b38e310c00d5afe47cbc44fd9480d",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/varbit.c#L385",
          "lines": "385-414"
        },
        {
          "id": "src.varbit.varbit-cast",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/varbit.c",
          "sha256": "f719afe56683db3714a41d2f49f454a6b65b38e310c00d5afe47cbc44fd9480d",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/varbit.c#L736",
          "lines": "736-765"
        },
        {
          "id": "src.varbit.bitops",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/varbit.c",
          "sha256": "f719afe56683db3714a41d2f49f454a6b65b38e310c00d5afe47cbc44fd9480d",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/varbit.c#L1257",
          "lines": "1257-1343"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "22026 is string_data_length_mismatch in SQLSTATE Class 22.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read fixed definition."
        },
        {
          "id": "resolved-path",
          "statement": "The fixed varbit source separates exact bit typmod assignment from explicit bit(n) casts, and uses 22026 for unequal bitwise operand lengths; explicit bit(n) casts truncate or zero-pad, while implicit varbit(n) overlength uses 22001.",
          "sources": [
            "src.path.0",
            "src.varbit.bit-cast",
            "src.varbit.varbit-cast",
            "src.varbit.bitops"
          ],
          "method": "Read the complete bit/varbit cast and bitwise guard contexts.",
          "limits": "Source confirmation is not a natural runtime observation."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 22026 from 7.4 without proving exact implementation introduction.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue boundary."
        }
      ],
      "messages": [
        {
          "id": "message.0",
          "sqlstate": "22026",
          "primary_template": "bit string length %d does not match type bit(%d)",
          "severity_source": "ERROR",
          "sources": [
            "src.path.0"
          ]
        },
        {
          "id": "message.bit-and",
          "sqlstate": "22026",
          "primary_template": "cannot AND bit strings of different sizes",
          "severity_source": "ERROR",
          "sources": [
            "src.varbit.bitops"
          ]
        },
        {
          "id": "message.bit-or",
          "sqlstate": "22026",
          "primary_template": "cannot OR bit strings of different sizes",
          "severity_source": "ERROR",
          "sources": [
            "src.varbit.bitops"
          ]
        },
        {
          "id": "message.bit-xor",
          "sqlstate": "22026",
          "primary_template": "cannot XOR bit strings of different sizes",
          "severity_source": "ERROR",
          "sources": [
            "src.varbit.bitops"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "resolved-path"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "resolved-path"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "22027",
      "condition_name": "trim_error",
      "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#L202",
          "lines": "202"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "22027 is trim_error in SQLSTATE Class 22.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read fixed definition."
        },
        {
          "id": "bounded-source-scope",
          "statement": "No fixed PostgreSQL 18.6 emitting path was resolved for 22027 in the bounded scan.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Retain definition evidence without inventing an emitter.",
          "limits": "A bounded scan does not prove no extension or historical path exists."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 22027 from 7.4 without proving exact implementation introduction.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue boundary."
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "emitting-path",
          "status": "unknown",
          "evidence_ids": [
            "bounded-source-scope"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "bounded-source-scope"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "2202E",
      "condition_name": "array_subscript_error",
      "sources": [
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "src.errcodes.18.6",
          "location": "lines 159-164",
          "path": "src/backend/utils/errcodes.txt",
          "sha256": "6e8de346643ba84aa3c9c6a73360acfc7b2dfb89162c06c08ce9bf5bcd5bbcba",
          "tag": "REL_18_6",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/errcodes.txt"
        },
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "src.array-userfuncs.18.6",
          "location": "lines 443-450, array_cat dimension checks",
          "path": "src/backend/utils/adt/array_userfuncs.c",
          "sha256": "dc14f95e12c92360f8b10c7546d8af4a0b41a6a0431efc2a4f5b236155eadb50",
          "tag": "REL_18_6",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/array_userfuncs.c#L443-L450"
        },
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "src.arrayfuncs.18.6",
          "location": "lines 2644-2653, 2881-2888, 2976-2990, 3008-3017",
          "path": "src/backend/utils/adt/arrayfuncs.c",
          "sha256": "1f1c9dab1e5f8c936bbfe6c28a3011365b433367e1854166bbec9d2e97341177",
          "tag": "REL_18_6",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/arrayfuncs.c#L2644-L2653"
        },
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "src.exec-expr.18.6",
          "location": "lines 3549-3565, multidimensional constructor checks",
          "path": "src/backend/executor/execExprInterp.c",
          "sha256": "05cbc1cdfd1d091b02045ee55b37147f69be8f0fcb23274751820cc09db33564",
          "tag": "REL_18_6",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/executor/execExprInterp.c#L3549-L3565"
        },
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "doc.array.18",
          "location": "lines 302-321, 403-437, array subscript, slice, and assignment behavior",
          "path": "doc/src/sgml/array.sgml",
          "sha256": "a432afb453ba3e4fc99b3b8055794fbd1f1d2980a85b14933ea8bae285dc6ab4",
          "tag": "PG18-docs",
          "url": "https://www.postgresql.org/docs/18/arrays.html"
        },
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "doc.func.18",
          "location": "lines 20487-20586 and 20810-20842, array metadata functions",
          "path": "doc/src/sgml/func.sgml",
          "sha256": "05d03f505dc3c3b4fb2b3a6e8ed3275c425306a8ff20dd9548e838c26bbb968a",
          "tag": "PG18-docs",
          "url": "https://www.postgresql.org/docs/18/functions-array.html"
        },
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "doc.transactions.18",
          "location": "transaction rollback and savepoint behavior",
          "path": "doc/src/sgml/xact.sgml",
          "sha256": "b48fbe8bd02ce3d1181a350c88c8baa6e11c73edc90a936e77b180daef328c5c",
          "tag": "PG18-docs",
          "url": "https://www.postgresql.org/docs/18/tutorial-transactions.html"
        },
        {
          "commit": "313a720f95a3f41b59f853786b184f38f82172d9",
          "id": "doc.errcodes.8.1.4",
          "kind": "upstream_source",
          "location": "REL8_1_4 table rows 305-307",
          "path": "doc/src/sgml/errcodes.sgml",
          "release": "8.1.4",
          "sha256": "fdd6f5470b19970d3b60219a44e66b33193647975d346adfe2a98178f706b776",
          "url": "https://github.com/postgres/postgres/blob/313a720f95a3f41b59f853786b184f38f82172d9/doc/src/sgml/errcodes.sgml#L305-L307"
        },
        {
          "id": "manifest.2202E",
          "kind": "local_artifact",
          "location": "snapshots and definition_blobs entries for the 2202E definition",
          "sha256": "1727a275f336988ff96b4f9990a4ca253080f73fc5d316e7def165c8cf3708a8"
        },
        {
          "id": "case-manifest.2202E",
          "kind": "local_artifact",
          "location": "incompatible_array_dimensions",
          "sha256": "1d2e960bba60d3df05073ce8e34d185de91f991687256ba49c6840d5d196ff2a"
        },
        {
          "id": "snippet-registry.2202E.final",
          "kind": "local_artifact",
          "location": "incompatible_array_dimensions ordered trigger and followup",
          "sha256": "f32e131d29c29543cba59be6ac16cc8cdee8d6ac684ff60dec4f58063d0f6e77"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "limits": "The directory identifies the condition but does not imply that every array read outside bounds raises it.",
          "method": "Read the Class 22 section and the named 2202E row in the frozen errcodes.txt snapshot.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "statement": "2202E is the array_subscript_error condition in Class 22, Data Exception."
        },
        {
          "id": "identity.alias-macro",
          "limits": "The alias is a source-level name; the wire value remains the five-character SQLSTATE.",
          "method": "Read the adjacent alias and named macro rows and the SQL99 explanatory comment.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "statement": "ERRCODE_ARRAY_ELEMENT_ERROR is retained as an alias for the same 2202E SQLSTATE; ERRCODE_ARRAY_SUBSCRIPT_ERROR carries the array_subscript_error condition name."
        },
        {
          "id": "array.read-outside-bounds",
          "limits": "This claim applies to reads; assignment, slice validation, construction, and concatenation have separate rules.",
          "method": "Read the official array subscript expression rules and examples.",
          "sources": [
            "doc.array.18"
          ],
          "statement": "An array element read outside the current bounds, or a read with the wrong number of subscripts, returns NULL rather than raising an error."
        },
        {
          "id": "array.slice-rules",
          "limits": "The result also depends on NULL array or subscript expressions; it is not evidence of a 2202E error.",
          "method": "Read the documented slice behavior immediately following the element subscript rules.",
          "sources": [
            "doc.array.18"
          ],
          "statement": "A slice completely outside the current bounds can yield an empty zero-dimensional array, while a partially overlapping slice is reduced to the overlap."
        },
        {
          "id": "array.assignment-rules",
          "limits": "Whether a particular assignment raises 2202E depends on the array value, dimensions, and exact operation.",
          "method": "Read the official assignment rules and the fixed arrayfuncs validation branches.",
          "sources": [
            "doc.array.18",
            "src.arrayfuncs.18.6"
          ],
          "statement": "One-dimensional subscript assignment can enlarge an array and fill intervening positions with NULL; multidimensional enlargement is not supported, and empty-array slice assignment requires both boundaries."
        },
        {
          "id": "mechanism.concat-dimensions",
          "limits": "The primary and detail templates are specific to this concatenation path.",
          "method": "Trace the dimension and lower-bound comparison into the errcode and primary/detail construction in array_cat().",
          "sources": [
            "src.array-userfuncs.18.6"
          ],
          "statement": "array_cat raises 2202E when equal-rank arrays have differing non-concatenated dimensions or lower bounds."
        },
        {
          "id": "mechanism.multidimensional-construction",
          "limits": "This source path is separate from array_cat and has a different message template.",
          "method": "Read the multidimensional array constructor check and its ERRCODE_ARRAY_SUBSCRIPT_ERROR ereport.",
          "sources": [
            "src.exec-expr.18.6"
          ],
          "statement": "The expression evaluator raises 2202E when non-empty array expressions used to form a multidimensional array have incompatible dimensions."
        },
        {
          "id": "diagnosis.metadata-functions",
          "limits": "Inspection functions describe the value supplied to them; they do not predict every coercion or operator resolution step.",
          "method": "Read the PostgreSQL 18 array function table entries.",
          "sources": [
            "doc.func.18"
          ],
          "statement": "array_ndims, array_dims, array_lower, array_upper, and cardinality expose the rank, dimensions, bounds, and item count needed to inspect an array operation."
        },
        {
          "id": "runtime.concat-case",
          "limits": "The run is an autocommit concatenation case; it does not test every assignment, slice, constructor, or explicit-transaction path.",
          "method": "Read the stable case and ordered snippet registry, then compare the case_result diagnostics and status in both final target summaries and raw records.",
          "sources": [
            "case-manifest.2202E",
            "snippet-registry.2202E.final",
            "runtime.2202E-snippet-registry-final-20260909.latest",
            "runtime.2202E-snippet-registry-final-20260909.pg10"
          ],
          "statement": "The incompatible_array_dimensions case returned 2202E with the incompatible concatenation diagnostic and then successfully executed a valid concatenation on the same connection."
        },
        {
          "id": "runtime.transaction-boundary",
          "limits": "No explicit transaction or PL/pgSQL exception handler was executed in this 2202E case.",
          "method": "Read the transaction contract and the status/valid-array observations in both runner summaries.",
          "sources": [
            "doc.transactions.18",
            "runtime.2202E-snippet-registry-final-20260909.latest",
            "runtime.2202E-snippet-registry-final-20260909.pg10"
          ],
          "statement": "The representative 2202E ERROR left the autocommit connection IDLE and the follow-up valid statement succeeded; explicit transaction and PL/pgSQL handler outcomes must be handled at their own boundaries."
        },
        {
          "id": "versions.catalogue-boundary",
          "limits": "The pre-9.0 source set is locked through 8.4.22 but candidate source gaps remain for 7.0–7.3; observed presence is not an asserted introduction version.",
          "method": "Read the manifest snapshot and the same-tag REL8_1_4 errcodes.sgml row for the code; the generated data record is a derived view.",
          "sources": [
            "manifest.2202E",
            "doc.errcodes.8.1.4"
          ],
          "statement": "The locked catalogue records 2202E in the 7.4–8.4.22 pre-9.0 formal sources, every listed formal snapshot from 9.0.23 through 18.6, and 19beta3. The same-tag REL8_1_4 errcodes.sgml row already lists 2202E as array_subscript_error, confirming that condition-name observation by 8.1.4. Candidate source gaps remain for 7.0–7.3, so 7.4 is a presence boundary rather than an exact introduction version."
        }
      ],
      "messages": [
        {
          "detail_template": "Arrays with differing element dimensions are not compatible for concatenation.",
          "id": "message.concat",
          "limits": "The template belongs to array_cat; runtime source lines are 450 on 18.6 and 356 on 10.21.",
          "primary_template": "cannot concatenate incompatible arrays",
          "severity_source": "explicit ERROR with ERRCODE_ARRAY_SUBSCRIPT_ERROR",
          "sources": [
            "src.array-userfuncs.18.6",
            "runtime.2202E-snippet-registry-final-20260909.latest",
            "runtime.2202E-snippet-registry-final-20260909.pg10"
          ],
          "sqlstate": "2202E"
        },
        {
          "id": "message.subscript",
          "limits": "This template is emitted by validated assignment/slice paths; a plain out-of-bounds read is documented to return NULL.",
          "primary_template": "array subscript out of range",
          "severity_source": "explicit ERROR with ERRCODE_ARRAY_SUBSCRIPT_ERROR",
          "sources": [
            "src.arrayfuncs.18.6"
          ],
          "sqlstate": "2202E"
        },
        {
          "detail_template": "When assigning to a slice of an empty array value, slice boundaries must be fully specified.",
          "id": "message.slice-boundaries",
          "limits": "This is the empty-array slice assignment path and is not a general read diagnostic.",
          "primary_template": "array slice subscript must provide both boundaries",
          "severity_source": "explicit ERROR with ERRCODE_ARRAY_SUBSCRIPT_ERROR",
          "sources": [
            "src.arrayfuncs.18.6"
          ],
          "sqlstate": "2202E"
        },
        {
          "id": "message.bound-order",
          "limits": "This template is emitted by the slice boundary validation branch.",
          "primary_template": "upper bound cannot be less than lower bound",
          "severity_source": "explicit ERROR with ERRCODE_ARRAY_SUBSCRIPT_ERROR",
          "sources": [
            "src.arrayfuncs.18.6"
          ],
          "sqlstate": "2202E"
        }
      ],
      "usage_evidence": [
        {
          "evidence_ids": [
            "identity.class-and-condition",
            "identity.alias-macro",
            "src.errcodes.18.6"
          ],
          "scope": "directory_definition_and_alias",
          "status": "definition_only"
        },
        {
          "evidence_ids": [
            "array.read-outside-bounds",
            "array.slice-rules",
            "doc.array.18"
          ],
          "scope": "array_read_and_slice_semantics",
          "status": "source_path_confirmed"
        },
        {
          "evidence_ids": [
            "array.assignment-rules",
            "message.subscript",
            "message.slice-boundaries",
            "src.arrayfuncs.18.6"
          ],
          "scope": "assignment_validation",
          "status": "source_path_confirmed"
        },
        {
          "evidence_ids": [
            "mechanism.concat-dimensions",
            "mechanism.multidimensional-construction",
            "src.array-userfuncs.18.6",
            "src.exec-expr.18.6"
          ],
          "scope": "concatenation_and_constructor",
          "status": "source_path_confirmed"
        },
        {
          "evidence_ids": [
            "runtime.concat-case",
            "snippet-registry.2202E.final",
            "runtime.2202E-snippet-registry-final-20260909.latest",
            "runtime.2202E-snippet-registry-final-20260909.pg10"
          ],
          "scope": "representative_runtime",
          "status": "observed_runtime"
        },
        {
          "evidence_ids": [
            "versions.catalogue-boundary",
            "manifest.2202E",
            "doc.errcodes.8.1.4"
          ],
          "scope": "version_presence",
          "status": "definition_only"
        }
      ],
      "runtime": [
        {
          "cases": [
            "incompatible_array_dimensions"
          ],
          "id": "runtime.2202E-snippet-registry-final-20260909.latest",
          "observed": {
            "message_detail": "Arrays with differing element dimensions are not compatible for concatenation.",
            "message_primary": "cannot concatenate incompatible arrays",
            "severity": "ERROR",
            "source_file": "array_userfuncs.c",
            "source_function": "array_cat",
            "source_line": "450",
            "sqlstate": "2202E",
            "status_after_error": "IDLE",
            "valid_array": [
              1,
              2,
              3,
              4
            ]
          },
          "raw_sha256": "79794b2a9728ec77920b27613121b6697077f2d8820b3f1b0bc66c2d049bcb6f",
          "run_id": "2202E-snippet-registry-final-20260909",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "snippet_registry": {
            "sha256": "f32e131d29c29543cba59be6ac16cc8cdee8d6ac684ff60dec4f58063d0f6e77"
          },
          "status": "passed",
          "summary_sha256": "78a2515555554f99aadfd8586ad58949f2744323e13a71960143da42ee1cc5a3",
          "target": "latest"
        },
        {
          "cases": [
            "incompatible_array_dimensions"
          ],
          "id": "runtime.2202E-snippet-registry-final-20260909.pg10",
          "image": "postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
          "observed": {
            "message_detail": "Arrays with differing element dimensions are not compatible for concatenation.",
            "message_primary": "cannot concatenate incompatible arrays",
            "severity": "ERROR",
            "source_file": "array_userfuncs.c",
            "source_function": "array_cat",
            "source_line": "356",
            "sqlstate": "2202E",
            "status_after_error": "IDLE",
            "valid_array": [
              1,
              2,
              3,
              4
            ]
          },
          "raw_sha256": "1b6eeb7b7abffd57d9d470d3639df04e7b49affacd25a24cb35e423fcc8d037d",
          "run_id": "2202E-snippet-registry-final-20260909",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "snippet_registry": {
            "sha256": "f32e131d29c29543cba59be6ac16cc8cdee8d6ac684ff60dec4f58063d0f6e77"
          },
          "status": "passed",
          "summary_sha256": "db9c312891f485e36a017684ba802d9fa6c9ab1508c4b0be292165e3a24fb8d8",
          "target": "pg10"
        }
      ]
    },
    {
      "sqlstate": "2202G",
      "condition_name": "invalid_tablesample_repeat",
      "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#L191",
          "lines": "191"
        },
        {
          "id": "src.path.0",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/executor/nodeSamplescan.c",
          "sha256": "59ddce276a131990661664393bf645d62693a722f382bd040f6b1c2584e7b2a5",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/executor/nodeSamplescan.c#L254",
          "lines": "254-256"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "2202G is invalid_tablesample_repeat in SQLSTATE Class 22.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read fixed definition."
        },
        {
          "id": "resolved-path",
          "statement": "Fixed source supports the representative 2202G path described.",
          "sources": [
            "src.path.0"
          ],
          "method": "Read the complete fixed source context.",
          "limits": "Source confirmation is not natural runtime."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 2202G from 9.5.0 without proving exact implementation introduction.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue boundary."
        }
      ],
      "messages": [
        {
          "id": "message.0",
          "sqlstate": "2202G",
          "primary_template": "TABLESAMPLE REPEATABLE parameter cannot be null",
          "severity_source": "ERROR",
          "sources": [
            "src.path.0"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "resolved-path"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "resolved-path"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "2202H",
      "condition_name": "invalid_tablesample_argument",
      "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#L190",
          "lines": "190"
        },
        {
          "id": "src.path.0",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/access/tablesample/bernoulli.c",
          "sha256": "19ab17ceb139db5fbf8ae210b1933bd9632a11cf1307b21228228fa9578d5dce",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/tablesample/bernoulli.c#L146",
          "lines": "146-148"
        },
        {
          "id": "src.nodeSamplescan.argument",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/executor/nodeSamplescan.c",
          "sha256": "59ddce276a131990661664393bf645d62693a722f382bd040f6b1c2584e7b2a5",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/executor/nodeSamplescan.c#L232",
          "lines": "232-245"
        },
        {
          "id": "src.system.tablesample",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/access/tablesample/system.c",
          "sha256": "68775686cd9e9c9bc4bcb34bad5ff8fa3993aea3b7db56ecacd07251e42aada5",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/tablesample/system.c#L140",
          "lines": "140-152"
        },
        {
          "id": "src.system_rows.tablesample",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "contrib/tsm_system_rows/tsm_system_rows.c",
          "sha256": "192b921607c93979a09625f9d54d583d6f2e8ee8566aeb8cc09152271d04066c",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/contrib/tsm_system_rows/tsm_system_rows.c#L178",
          "lines": "178-187"
        },
        {
          "id": "src.system_time.tablesample",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "contrib/tsm_system_time/tsm_system_time.c",
          "sha256": "c3dc4faa00302e4bb993a468f7c62612da3db97cf85152c4cb3fe5b5d18d89c9",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/contrib/tsm_system_time/tsm_system_time.c#L193",
          "lines": "193-203"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "2202H is invalid_tablesample_argument in SQLSTATE Class 22.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read fixed definition."
        },
        {
          "id": "resolved-path",
          "statement": "Fixed core and contrib TABLESAMPLE methods share 2202H for method-argument validation: Bernoulli/system reject percentages outside 0..100 and NaN, the executor rejects a NULL method parameter, system_rows rejects negative size, and system_time rejects negative or NaN collection time. The shown system_time guard does not impose a finite upper bound, so positive Infinity is not rejected by that comparison itself.",
          "sources": [
            "src.path.0",
            "src.nodeSamplescan.argument",
            "src.system.tablesample",
            "src.system_rows.tablesample",
            "src.system_time.tablesample"
          ],
          "method": "Read the executor parameter loop and complete core/contrib BeginSampleScan guards.",
          "limits": "Source confirmation is not a natural runtime observation."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 2202H from 9.5.0 without proving exact implementation introduction.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue boundary."
        }
      ],
      "messages": [
        {
          "id": "message.0",
          "sqlstate": "2202H",
          "primary_template": "sample percentage must be between 0 and 100",
          "severity_source": "ERROR",
          "sources": [
            "src.path.0"
          ]
        },
        {
          "id": "message.parameter-null",
          "sqlstate": "2202H",
          "primary_template": "TABLESAMPLE parameter cannot be null",
          "severity_source": "ERROR",
          "sources": [
            "src.nodeSamplescan.argument"
          ]
        },
        {
          "id": "message.sample-percentage",
          "sqlstate": "2202H",
          "primary_template": "sample percentage must be between 0 and 100",
          "severity_source": "ERROR",
          "sources": [
            "src.path.0"
          ]
        },
        {
          "id": "message.sample-size",
          "sqlstate": "2202H",
          "primary_template": "sample size must not be negative",
          "severity_source": "ERROR",
          "sources": [
            "src.system_rows.tablesample"
          ]
        },
        {
          "id": "message.sample-time",
          "sqlstate": "2202H",
          "primary_template": "sample collection time must not be negative",
          "severity_source": "ERROR",
          "sources": [
            "src.system_time.tablesample"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "resolved-path"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "resolved-path"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "22030",
      "condition_name": "duplicate_json_object_key_value",
      "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#L215",
          "lines": "215"
        },
        {
          "id": "src.path.0",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/json.c",
          "sha256": "9d0ed0ee9d5bac07990f2b413b48ba7dac2bff3b24797233fd887926a704c102",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/json.c#L1124",
          "lines": "1124-1126"
        },
        {
          "id": "src.json.unique-builder",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/json.c",
          "sha256": "9d0ed0ee9d5bac07990f2b413b48ba7dac2bff3b24797233fd887926a704c102",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/json.c#L1002",
          "lines": "1002-1127"
        },
        {
          "id": "src.json.unique-constructor",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/json.c",
          "sha256": "9d0ed0ee9d5bac07990f2b413b48ba7dac2bff3b24797233fd887926a704c102",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/json.c#L1224",
          "lines": "1224-1295"
        },
        {
          "id": "src.json.unique-validate",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/json.c",
          "sha256": "9d0ed0ee9d5bac07990f2b413b48ba7dac2bff3b24797233fd887926a704c102",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/json.c#L1810",
          "lines": "1810-1853"
        },
        {
          "id": "src.jsonb.unique-builder",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/jsonb.c",
          "sha256": "b137e223a73a8a4287e9b3a4d7dedcb3a3a40bdd9d08c6e5c5fd998d4139ba3f",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/jsonb.c#L1125",
          "lines": "1125-1163"
        },
        {
          "id": "src.jsonb.input",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/jsonb.c",
          "sha256": "b137e223a73a8a4287e9b3a4d7dedcb3a3a40bdd9d08c6e5c5fd998d4139ba3f",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/jsonb.c#L74",
          "lines": "74-102"
        },
        {
          "id": "src.jsonb.uniqueify",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/jsonb_util.c",
          "sha256": "444230d5187605ae276d3197fab41033e530e2dcbd94721d900005c7a52eb7b0",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/jsonb_util.c#L1952",
          "lines": "1952-2005"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "22030 is duplicate_json_object_key_value in SQLSTATE Class 22.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read fixed definition."
        },
        {
          "id": "resolved-path",
          "statement": "Fixed JSON and JSONB builders/aggregates enable uniqueness checks only for their unique-key variants; duplicate keys then raise 22030, while ordinary json/jsonb input leaves unique_keys false and does not use this guard. Strict/absent-on-null variants skip NULL-valued entries from output but retain their key long enough to enforce uniqueness when unique_keys is true.",
          "sources": [
            "src.path.0",
            "src.json.unique-builder",
            "src.json.unique-constructor",
            "src.json.unique-validate",
            "src.jsonb.unique-builder",
            "src.jsonb.input",
            "src.jsonb.uniqueify"
          ],
          "method": "Read the complete unique-key builder, parser-validation, JSONB input, and final uniqueify paths.",
          "limits": "Source confirmation is not a natural runtime observation."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 22030 from 12.0 without proving exact implementation introduction.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue boundary."
        }
      ],
      "messages": [
        {
          "id": "message.0",
          "sqlstate": "22030",
          "primary_template": "duplicate JSON object key value: %s",
          "severity_source": "ERROR",
          "sources": [
            "src.path.0"
          ]
        },
        {
          "id": "message.jsonb",
          "sqlstate": "22030",
          "primary_template": "duplicate JSON object key value",
          "severity_source": "ERROR",
          "sources": [
            "src.jsonb.uniqueify"
          ]
        },
        {
          "id": "message.json-validate",
          "sqlstate": "22030",
          "primary_template": "duplicate JSON object key value",
          "severity_source": "ERROR",
          "sources": [
            "src.json.unique-validate"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "resolved-path"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "resolved-path"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "22031",
      "condition_name": "invalid_argument_for_sql_json_datetime_function",
      "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#L216",
          "lines": "216"
        },
        {
          "id": "src.path.0",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/jsonpath_exec.c",
          "sha256": "678cb8947f0b5e6ad14524f1863987ab99641cfb5f81121fc5c5006af0319d02",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/jsonpath_exec.c#L2469",
          "lines": "2469-2473"
        },
        {
          "id": "src.jsonpath.datetime",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/jsonpath_exec.c",
          "sha256": "678cb8947f0b5e6ad14524f1863987ab99641cfb5f81121fc5c5006af0319d02",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/jsonpath_exec.c#L2326",
          "lines": "2326-2780"
        },
        {
          "id": "src.jsonpath.context-flags",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/jsonpath_exec.c",
          "sha256": "678cb8947f0b5e6ad14524f1863987ab99641cfb5f81121fc5c5006af0319d02",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/jsonpath_exec.c#L235",
          "lines": "235-249"
        },
        {
          "id": "src.jsonpath.execute-context",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/jsonpath_exec.c",
          "sha256": "678cb8947f0b5e6ad14524f1863987ab99641cfb5f81121fc5c5006af0319d02",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/jsonpath_exec.c#L654",
          "lines": "654-727"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "22031 is invalid_argument_for_sql_json_datetime_function in SQLSTATE Class 22.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read fixed definition."
        },
        {
          "id": "resolved-path",
          "statement": "The fixed jsonpath datetime-method implementation first requires a string item. An explicit .datetime(template) call passes the template to parse_datetime with NULL ErrorSaveContext only when jspThrowErrors(cxt) is true; otherwise it saves the parse error and returns jperError. The no-template ISO candidate loop saves each candidate failure even on throwing execution, then the final RETURN_ERROR branch decides whether an unrecognized format throws 22031 or returns a path error. Lax controls structural auto-wrap/unwrap and structural errors; it does not generally suppress datetime parse/conversion errors. Precision, type conversion, and format guards remain 22031 paths.",
          "sources": [
            "src.path.0",
            "src.jsonpath.datetime",
            "src.jsonpath.context-flags",
            "src.jsonpath.execute-context"
          ],
          "method": "Read executeDateTimeMethod together with the jsonpath context flags and RETURN_ERROR macro.",
          "limits": "Source confirmation is not a natural runtime observation."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 22031 from 13.0 without proving exact implementation introduction.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue boundary."
        }
      ],
      "messages": [
        {
          "id": "message.0",
          "sqlstate": "22031",
          "primary_template": "%s format is not recognized: \"%s\"",
          "severity_source": "ERROR",
          "sources": [
            "src.path.0"
          ]
        },
        {
          "id": "message.string-only",
          "sqlstate": "22031",
          "primary_template": "jsonpath item method .%s() can only be applied to a string",
          "severity_source": "ERROR",
          "sources": [
            "src.jsonpath.datetime"
          ]
        },
        {
          "id": "message.format-unrecognized",
          "sqlstate": "22031",
          "primary_template": "%s format is not recognized: \"%s\"",
          "severity_source": "ERROR",
          "sources": [
            "src.jsonpath.datetime"
          ],
          "hint_template": "Use a datetime template argument to specify the input data format."
        },
        {
          "id": "message.precision-range",
          "sqlstate": "22031",
          "primary_template": "time precision of jsonpath item method .%s() is out of range for type integer",
          "severity_source": "ERROR",
          "sources": [
            "src.jsonpath.datetime"
          ]
        },
        {
          "id": "message.precision-invalid",
          "sqlstate": "22031",
          "primary_template": "time precision of jsonpath item method .%s() is invalid",
          "severity_source": "ERROR",
          "sources": [
            "src.jsonpath.datetime"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "resolved-path"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "resolved-path"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "22032",
      "condition_name": "invalid_json_text",
      "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#L217",
          "lines": "217"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "22032 is invalid_json_text in SQLSTATE Class 22.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read fixed definition."
        },
        {
          "id": "bounded-source-scope",
          "statement": "No fixed PostgreSQL 18.6 emitting path was resolved for 22032 in the bounded scan.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Retain definition evidence without inventing an emitter.",
          "limits": "A bounded scan does not prove no extension or historical path exists."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 22032 from 12.0 without proving exact implementation introduction.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue boundary."
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "emitting-path",
          "status": "unknown",
          "evidence_ids": [
            "bounded-source-scope"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "bounded-source-scope"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "22033",
      "condition_name": "invalid_sql_json_subscript",
      "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#L218",
          "lines": "218"
        },
        {
          "id": "src.path.0",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/jsonpath_exec.c",
          "sha256": "678cb8947f0b5e6ad14524f1863987ab99641cfb5f81121fc5c5006af0319d02",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/jsonpath_exec.c#L919",
          "lines": "919-921"
        },
        {
          "id": "src.jsonpath.subscript",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/jsonpath_exec.c",
          "sha256": "678cb8947f0b5e6ad14524f1863987ab99641cfb5f81121fc5c5006af0319d02",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/jsonpath_exec.c#L3442",
          "lines": "3442-3477"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "22033 is invalid_sql_json_subscript in SQLSTATE Class 22.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read fixed definition."
        },
        {
          "id": "resolved-path",
          "statement": "The fixed jsonpath executor evaluates each subscript to one numeric item, truncates it to int32, and raises 22033 for a non-single numeric result or integer-range overflow; strict mode also raises for invalid array bounds, while lax mode ignores structural out-of-bounds errors and clamps the range.",
          "sources": [
            "src.path.0",
            "src.jsonpath.subscript"
          ],
          "method": "Read the complete array-subscript execution and getArrayIndex conversion guards.",
          "limits": "Source confirmation is not a natural runtime observation."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 22033 from 12.0 without proving exact implementation introduction.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue boundary."
        }
      ],
      "messages": [
        {
          "id": "message.0",
          "sqlstate": "22033",
          "primary_template": "jsonpath array subscript is out of bounds",
          "severity_source": "ERROR",
          "sources": [
            "src.path.0"
          ]
        },
        {
          "id": "message.non-single-numeric",
          "sqlstate": "22033",
          "primary_template": "jsonpath array subscript is not a single numeric value",
          "severity_source": "ERROR",
          "sources": [
            "src.jsonpath.subscript"
          ]
        },
        {
          "id": "message.integer-range",
          "sqlstate": "22033",
          "primary_template": "jsonpath array subscript is out of integer range",
          "severity_source": "ERROR",
          "sources": [
            "src.jsonpath.subscript"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "resolved-path"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "resolved-path"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "22034",
      "condition_name": "more_than_one_sql_json_item",
      "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#L219",
          "lines": "219"
        },
        {
          "id": "src.path.0",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/jsonpath_exec.c",
          "sha256": "678cb8947f0b5e6ad14524f1863987ab99641cfb5f81121fc5c5006af0319d02",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/jsonpath_exec.c#L3966",
          "lines": "3966-3970"
        },
        {
          "id": "src.jsonpath.cardinality",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/jsonpath_exec.c",
          "sha256": "678cb8947f0b5e6ad14524f1863987ab99641cfb5f81121fc5c5006af0319d02",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/jsonpath_exec.c#L3880",
          "lines": "3880-4070"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "22034 is more_than_one_sql_json_item in SQLSTATE Class 22.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read fixed definition."
        },
        {
          "id": "resolved-path",
          "statement": "The fixed JSON_QUERY path collects the complete SQL/JSON result list, uses the wrapper mode to permit multiple items, and emits 22034 only when more than one item remains without a wrapper; JSON_VALUE uses the same code for more than one item, while a single non-scalar is the separate 2203F condition.",
          "sources": [
            "src.path.0",
            "src.jsonpath.cardinality"
          ],
          "method": "Read JsonPathQuery and JsonPathValue cardinality, wrapper, and scalar guards.",
          "limits": "Source confirmation is not a natural runtime observation."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 22034 from 12.0 without proving exact implementation introduction.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue boundary."
        }
      ],
      "messages": [
        {
          "id": "message.0",
          "sqlstate": "22034",
          "primary_template": "JSON path expression for column \"%s\" must return single item when no wrapper is requested",
          "severity_source": "ERROR",
          "sources": [
            "src.path.0"
          ],
          "hint_template": "Use the WITH WRAPPER clause to wrap SQL/JSON items into an array."
        },
        {
          "id": "message.json-query",
          "sqlstate": "22034",
          "primary_template": "JSON path expression in JSON_QUERY must return single item when no wrapper is requested",
          "severity_source": "ERROR",
          "hint_template": "Use the WITH WRAPPER clause to wrap SQL/JSON items into an array.",
          "sources": [
            "src.jsonpath.cardinality"
          ]
        },
        {
          "id": "message.json-value",
          "sqlstate": "22034",
          "primary_template": "JSON path expression in JSON_VALUE must return single scalar item",
          "severity_source": "ERROR",
          "sources": [
            "src.jsonpath.cardinality"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "resolved-path"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "resolved-path"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "22035",
      "condition_name": "no_sql_json_item",
      "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#L220",
          "lines": "220"
        },
        {
          "id": "src.path.0",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/executor/execExprInterp.c",
          "sha256": "05cbc1cdfd1d091b02045ee55b37147f69be8f0fcb23274751820cc09db33564",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/executor/execExprInterp.c#L5072",
          "lines": "5072-5075"
        },
        {
          "id": "src.execExpr.json-empty-error",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/executor/execExprInterp.c",
          "sha256": "05cbc1cdfd1d091b02045ee55b37147f69be8f0fcb23274751820cc09db33564",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/executor/execExprInterp.c#L4940",
          "lines": "4940-5080"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "22035 is no_sql_json_item in SQLSTATE Class 22.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read fixed definition."
        },
        {
          "id": "resolved-path",
          "statement": "The fixed SQL/JSON expression executor marks an empty path result and applies ON EMPTY or a non-ERROR ON ERROR behavior; only the ERROR behavior reaches the 22035 ereport, with column-aware and column-less primary variants. JSON path query helpers that return NULL/empty results directly are therefore not blanket 22035 emitters.",
          "sources": [
            "src.path.0",
            "src.execExpr.json-empty-error"
          ],
          "method": "Read JsonPathValue empty handling and ExecEvalJsonExprPath ON EMPTY/ON ERROR branches.",
          "limits": "Source confirmation is not a natural runtime observation."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 22035 from 12.0 without proving exact implementation introduction.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue boundary."
        }
      ],
      "messages": [
        {
          "id": "message.0",
          "sqlstate": "22035",
          "primary_template": "no SQL/JSON item found for specified path of column \"%s\"",
          "severity_source": "ERROR",
          "sources": [
            "src.path.0"
          ]
        },
        {
          "id": "message.no-column",
          "sqlstate": "22035",
          "primary_template": "no SQL/JSON item found for specified path",
          "severity_source": "ERROR",
          "sources": [
            "src.execExpr.json-empty-error"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "resolved-path"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "resolved-path"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "22036",
      "condition_name": "non_numeric_sql_json_item",
      "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#L221",
          "lines": "221"
        },
        {
          "id": "src.jsonpath.numeric-methods",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/jsonpath_exec.c",
          "sha256": "678cb8947f0b5e6ad14524f1863987ab99641cfb5f81121fc5c5006af0319d02",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/jsonpath_exec.c#L1129",
          "lines": "1129-1588"
        },
        {
          "id": "src.jsonpath.string-method",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/jsonpath_exec.c",
          "sha256": "678cb8947f0b5e6ad14524f1863987ab99641cfb5f81121fc5c5006af0319d02",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/jsonpath_exec.c#L1592",
          "lines": "1592-1647"
        },
        {
          "id": "src.jsonpath.numeric-unary-method",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/jsonpath_exec.c",
          "sha256": "678cb8947f0b5e6ad14524f1863987ab99641cfb5f81121fc5c5006af0319d02",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/jsonpath_exec.c#L2280",
          "lines": "2280-2310"
        },
        {
          "id": "src.jsonpath.context-flags",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/jsonpath_exec.c",
          "sha256": "678cb8947f0b5e6ad14524f1863987ab99641cfb5f81121fc5c5006af0319d02",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/jsonpath_exec.c#L235",
          "lines": "235-249"
        },
        {
          "id": "src.jsonpath.execute-context",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/jsonpath_exec.c",
          "sha256": "678cb8947f0b5e6ad14524f1863987ab99641cfb5f81121fc5c5006af0319d02",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/jsonpath_exec.c#L654",
          "lines": "654-727"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "22036 is non_numeric_sql_json_item in SQLSTATE Class 22.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read fixed definition."
        },
        {
          "id": "resolved-path",
          "statement": "The fixed jsonpath numeric item-method branches dispatch by input type. String inputs for .integer(), .bigint(), .double(), and the string side of .number()/.decimal() use target input or numeric parsing with ErrorSaveContext or an explicit error flag. Existing numeric items use method-specific paths: .number() can keep the numeric value, .integer() and .bigint() use numeric_int4_opt_error/numeric_int8_opt_error, and .decimal() applies its precision/scale typmod. .boolean() accepts a boolean directly, converts numeric input through int4in, and parses strings with parse_bool. Numeric-only methods reject nonnumeric items; .string() accepts boolean, string, numeric, or datetime items. Non-finite values are rejected by the shown numeric/double branches. Source confirmation is not a natural runtime observation.",
          "sources": [
            "src.jsonpath.numeric-methods",
            "src.jsonpath.string-method",
            "src.jsonpath.numeric-unary-method",
            "src.jsonpath.context-flags",
            "src.jsonpath.execute-context"
          ],
          "method": "Read the complete representative numeric, string, and unary numeric item-method guards.",
          "limits": "Source confirmation is not a natural runtime observation."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 22036 from 12.0 without proving exact implementation introduction.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue boundary."
        }
      ],
      "messages": [
        {
          "id": "message.numeric-only",
          "sqlstate": "22036",
          "primary_template": "jsonpath item method .%s() can only be applied to a numeric value",
          "severity_source": "ERROR",
          "sources": [
            "src.jsonpath.numeric-unary-method"
          ]
        },
        {
          "id": "message.string-or-numeric",
          "sqlstate": "22036",
          "primary_template": "jsonpath item method .%s() can only be applied to a string or numeric value",
          "severity_source": "ERROR",
          "sources": [
            "src.jsonpath.numeric-methods"
          ]
        },
        {
          "id": "message.boolean-method",
          "sqlstate": "22036",
          "primary_template": "jsonpath item method .%s() can only be applied to a boolean, string, or numeric value",
          "severity_source": "ERROR",
          "sources": [
            "src.jsonpath.numeric-methods"
          ]
        },
        {
          "id": "message.invalid-type",
          "sqlstate": "22036",
          "primary_template": "argument \"%s\" of jsonpath item method .%s() is invalid for type %s",
          "severity_source": "ERROR",
          "sources": [
            "src.jsonpath.numeric-methods"
          ]
        },
        {
          "id": "message.nan-infinity",
          "sqlstate": "22036",
          "primary_template": "NaN or Infinity is not allowed for jsonpath item method .%s()",
          "severity_source": "ERROR",
          "sources": [
            "src.jsonpath.numeric-methods"
          ]
        },
        {
          "id": "message.string-method",
          "sqlstate": "22036",
          "primary_template": "jsonpath item method .%s() can only be applied to a boolean, string, numeric, or datetime value",
          "severity_source": "ERROR",
          "sources": [
            "src.jsonpath.string-method"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "resolved-path"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "resolved-path"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "22037",
      "condition_name": "non_unique_keys_in_a_json_object",
      "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#L222",
          "lines": "222"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "22037 is non_unique_keys_in_a_json_object in SQLSTATE Class 22.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read fixed definition."
        },
        {
          "id": "bounded-source-scope",
          "statement": "No fixed PostgreSQL 18.6 emitting path was resolved for 22037 in the bounded scan.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Retain definition without inventing emitter.",
          "limits": "Bounded scan does not prove no extension or historical path exists."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 22037 from 12.0 without proving exact implementation introduction.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue boundary."
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "emitting-path",
          "status": "unknown",
          "evidence_ids": [
            "bounded-source-scope"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "bounded-source-scope"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "22038",
      "condition_name": "singleton_sql_json_item_required",
      "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#L223",
          "lines": "223"
        },
        {
          "id": "src.jsonpath.match-singleton",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/jsonpath_exec.c",
          "sha256": "678cb8947f0b5e6ad14524f1863987ab99641cfb5f81121fc5c5006af0319d02",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/jsonpath_exec.c#L453",
          "lines": "453-491"
        },
        {
          "id": "src.jsonpath.binary-arithmetic-singleton",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/jsonpath_exec.c",
          "sha256": "678cb8947f0b5e6ad14524f1863987ab99641cfb5f81121fc5c5006af0319d02",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/jsonpath_exec.c#L2087",
          "lines": "2087-2155"
        },
        {
          "id": "src.jsonpath.context-flags",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/jsonpath_exec.c",
          "sha256": "678cb8947f0b5e6ad14524f1863987ab99641cfb5f81121fc5c5006af0319d02",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/jsonpath_exec.c#L235",
          "lines": "235-249"
        },
        {
          "id": "src.jsonpath.execute-context",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/jsonpath_exec.c",
          "sha256": "678cb8947f0b5e6ad14524f1863987ab99641cfb5f81121fc5c5006af0319d02",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/jsonpath_exec.c#L654",
          "lines": "654-727"
        },
        {
          "id": "src.catalog.system-functions",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/catalog/system_functions.sql",
          "sha256": "e5b61e70663b9dd55e2e6397ecb1ff3084f4f9afbf12907529b6e565a75f254f",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/catalog/system_functions.sql#L539",
          "lines": "539-544"
        },
        {
          "id": "src.catalog.pg-proc-match",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/include/catalog/pg_proc.dat",
          "sha256": "1f934ce80d460159dda137714374a35f9896315ea2476709cbb4da13b38ef95a",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/include/catalog/pg_proc.dat#L10520",
          "lines": "10520-10522"
        },
        {
          "id": "src.catalog.pg-proc-match-opr",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/include/catalog/pg_proc.dat",
          "sha256": "1f934ce80d460159dda137714374a35f9896315ea2476709cbb4da13b38ef95a",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/include/catalog/pg_proc.dat#L10547",
          "lines": "10547-10549"
        },
        {
          "id": "src.catalog.pg-operator-match",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/include/catalog/pg_operator.dat",
          "sha256": "5d35b9b2ef5f9797cc815263927ef8a12367fedace53e828b4e8b320e2a7f703",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/include/catalog/pg_operator.dat#L3262",
          "lines": "3262-3264"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "22038 is singleton_sql_json_item_required in SQLSTATE Class 22.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read fixed definition."
        },
        {
          "id": "resolved-path",
          "statement": "The fixed jsonb_path_match_internal path treats exactly two C arguments as the @@ operator call: jsonb_path_match_opr leaves silent=true, so a non-singleton or non-boolean result is suppressed to NULL. The SQL function jsonb_path_match has vars DEFAULT '{}' and silent DEFAULT false; even a call written with two SQL arguments is expanded with both defaults, so it is non-silent unless silent=true is explicitly supplied. Binary jsonpath arithmetic independently requires each operand sequence to contain exactly one numeric item; lax unwrapping is performed by the shared evaluator.",
          "sources": [
            "src.jsonpath.match-singleton",
            "src.jsonpath.binary-arithmetic-singleton",
            "src.jsonpath.context-flags",
            "src.jsonpath.execute-context",
            "src.catalog.system-functions",
            "src.catalog.pg-proc-match",
            "src.catalog.pg-proc-match-opr",
            "src.catalog.pg-operator-match"
          ],
          "method": "Read jsonb_path_match_internal together with system function defaults, pg_proc signatures, the @@ operator binding, and the shared jsonpath evaluator.",
          "limits": "Source confirmation is not a natural runtime observation."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 22038 from 12.0 without proving exact implementation introduction.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue boundary."
        }
      ],
      "messages": [
        {
          "id": "message.boolean-singleton",
          "sqlstate": "22038",
          "primary_template": "single boolean result is expected",
          "severity_source": "ERROR",
          "sources": [
            "src.jsonpath.match-singleton"
          ]
        },
        {
          "id": "message.left-numeric-singleton",
          "sqlstate": "22038",
          "primary_template": "left operand of jsonpath operator %s is not a single numeric value",
          "severity_source": "ERROR",
          "sources": [
            "src.jsonpath.binary-arithmetic-singleton"
          ]
        },
        {
          "id": "message.right-numeric-singleton",
          "sqlstate": "22038",
          "primary_template": "right operand of jsonpath operator %s is not a single numeric value",
          "severity_source": "ERROR",
          "sources": [
            "src.jsonpath.binary-arithmetic-singleton"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "resolved-path"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "resolved-path"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "22039",
      "condition_name": "sql_json_array_not_found",
      "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#L224",
          "lines": "224"
        },
        {
          "id": "src.jsonpath.array-accessors",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/jsonpath_exec.c",
          "sha256": "678cb8947f0b5e6ad14524f1863987ab99641cfb5f81121fc5c5006af0319d02",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/jsonpath_exec.c#L836",
          "lines": "836-979"
        },
        {
          "id": "src.jsonpath.array-size",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/jsonpath_exec.c",
          "sha256": "678cb8947f0b5e6ad14524f1863987ab99641cfb5f81121fc5c5006af0319d02",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/jsonpath_exec.c#L1101",
          "lines": "1101-1117"
        },
        {
          "id": "src.jsonpath.context-flags",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/jsonpath_exec.c",
          "sha256": "678cb8947f0b5e6ad14524f1863987ab99641cfb5f81121fc5c5006af0319d02",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/jsonpath_exec.c#L235",
          "lines": "235-249"
        },
        {
          "id": "src.jsonpath.execute-context",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/jsonpath_exec.c",
          "sha256": "678cb8947f0b5e6ad14524f1863987ab99641cfb5f81121fc5c5006af0319d02",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/jsonpath_exec.c#L654",
          "lines": "654-727"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "22039 is sql_json_array_not_found in SQLSTATE Class 22.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read fixed definition."
        },
        {
          "id": "resolved-path",
          "statement": "The fixed jpiAnyArray wildcard, jpiIndexArray indexed accessor, and .size() item-method branches can each auto-wrap a non-array item when jspAutoWrap(cxt) is enabled by lax mode. If auto-wrap is not permitted, jspIgnoreStructuralErrors can suppress the structural mismatch; when neither applies, the corresponding array-only branch reports 22039. Array index out-of-bounds is a separate 22033 guard.",
          "sources": [
            "src.jsonpath.array-accessors",
            "src.jsonpath.array-size",
            "src.jsonpath.context-flags",
            "src.jsonpath.execute-context"
          ],
          "method": "Read the complete array wildcard/index and size-method guards, including structural-error suppression and the adjacent subscript boundary.",
          "limits": "Source confirmation is not a natural runtime observation."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 22039 from 12.0 without proving exact implementation introduction.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue boundary."
        }
      ],
      "messages": [
        {
          "id": "message.wildcard-array",
          "sqlstate": "22039",
          "primary_template": "jsonpath wildcard array accessor can only be applied to an array",
          "severity_source": "ERROR",
          "sources": [
            "src.jsonpath.array-accessors"
          ]
        },
        {
          "id": "message.index-array",
          "sqlstate": "22039",
          "primary_template": "jsonpath array accessor can only be applied to an array",
          "severity_source": "ERROR",
          "sources": [
            "src.jsonpath.array-accessors"
          ]
        },
        {
          "id": "message.size-array",
          "sqlstate": "22039",
          "primary_template": "jsonpath item method .%s() can only be applied to an array",
          "severity_source": "ERROR",
          "sources": [
            "src.jsonpath.array-size"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "resolved-path"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "resolved-path"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "2203A",
      "condition_name": "sql_json_member_not_found",
      "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#L225",
          "lines": "225"
        },
        {
          "id": "src.jsonpath.member-accessor",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/jsonpath_exec.c",
          "sha256": "678cb8947f0b5e6ad14524f1863987ab99641cfb5f81121fc5c5006af0319d02",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/jsonpath_exec.c#L1012",
          "lines": "1012-1055"
        },
        {
          "id": "src.jsonpath.context-flags",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/jsonpath_exec.c",
          "sha256": "678cb8947f0b5e6ad14524f1863987ab99641cfb5f81121fc5c5006af0319d02",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/jsonpath_exec.c#L235",
          "lines": "235-249"
        },
        {
          "id": "src.jsonpath.execute-context",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/jsonpath_exec.c",
          "sha256": "678cb8947f0b5e6ad14524f1863987ab99641cfb5f81121fc5c5006af0319d02",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/jsonpath_exec.c#L654",
          "lines": "654-727"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "2203A is sql_json_member_not_found in SQLSTATE Class 22.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read fixed definition."
        },
        {
          "id": "resolved-path",
          "statement": "The fixed named-member jsonpath accessor looks up a key on an object and reports 2203A when the key is absent or the accessor receives a non-object item, unless structural errors are being ignored. A non-throwing jsonpath context can return a path error result; the actual ERROR path carries either the missing-key primary or the object-type primary.",
          "sources": [
            "src.jsonpath.member-accessor",
            "src.jsonpath.context-flags",
            "src.jsonpath.execute-context"
          ],
          "method": "Read the complete jpiKey member lookup, missing-key branch, non-object branch, and structural-error suppression.",
          "limits": "Source confirmation is not a natural runtime observation."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 2203A from 12.0 without proving exact implementation introduction.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue boundary."
        }
      ],
      "messages": [
        {
          "id": "message.missing-key",
          "sqlstate": "2203A",
          "primary_template": "JSON object does not contain key \"%s\"",
          "severity_source": "ERROR",
          "sources": [
            "src.jsonpath.member-accessor"
          ]
        },
        {
          "id": "message.member-object",
          "sqlstate": "2203A",
          "primary_template": "jsonpath member accessor can only be applied to an object",
          "severity_source": "ERROR",
          "sources": [
            "src.jsonpath.member-accessor"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "resolved-path"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "resolved-path"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "2203B",
      "condition_name": "sql_json_number_not_found",
      "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#L226",
          "lines": "226"
        },
        {
          "id": "src.jsonpath.unary-arithmetic",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/jsonpath_exec.c",
          "sha256": "678cb8947f0b5e6ad14524f1863987ab99641cfb5f81121fc5c5006af0319d02",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/jsonpath_exec.c#L2158",
          "lines": "2158-2221"
        },
        {
          "id": "src.jsonpath.context-flags",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/jsonpath_exec.c",
          "sha256": "678cb8947f0b5e6ad14524f1863987ab99641cfb5f81121fc5c5006af0319d02",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/jsonpath_exec.c#L235",
          "lines": "235-249"
        },
        {
          "id": "src.jsonpath.execute-context",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/jsonpath_exec.c",
          "sha256": "678cb8947f0b5e6ad14524f1863987ab99641cfb5f81121fc5c5006af0319d02",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/jsonpath_exec.c#L654",
          "lines": "654-727"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "2203B is sql_json_number_not_found in SQLSTATE Class 22.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read fixed definition."
        },
        {
          "id": "resolved-path",
          "statement": "executeUnaryArithmExpr walks the operand sequence and accepts every numeric scalar item, applying the unary function to each. A nonnumeric item is skipped only when both !found and !hasNext hold, meaning terminal existence-style evaluation that is not collecting results; ordinary result collection still reaches 2203B for a nonnumeric item even at a terminal step. Lax mode may unwrap an array. This is distinct from 22036 numeric item-method conversion.",
          "sources": [
            "src.jsonpath.unary-arithmetic",
            "src.jsonpath.context-flags",
            "src.jsonpath.execute-context"
          ],
          "method": "Read the complete executeUnaryArithmExpr loop and its terminal/continued-result guard.",
          "limits": "Source confirmation is not a natural runtime observation."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 2203B from 12.0 without proving exact implementation introduction.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue boundary."
        }
      ],
      "messages": [
        {
          "id": "message.unary-numeric",
          "sqlstate": "2203B",
          "primary_template": "operand of unary jsonpath operator %s is not a numeric value",
          "severity_source": "ERROR",
          "sources": [
            "src.jsonpath.unary-arithmetic"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "resolved-path"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "resolved-path"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "2203C",
      "condition_name": "sql_json_object_not_found",
      "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#L227",
          "lines": "227"
        },
        {
          "id": "src.jsonpath.wildcard-member",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/jsonpath_exec.c",
          "sha256": "678cb8947f0b5e6ad14524f1863987ab99641cfb5f81121fc5c5006af0319d02",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/jsonpath_exec.c#L852",
          "lines": "852-874"
        },
        {
          "id": "src.jsonpath.keyvalue-object",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/jsonpath_exec.c",
          "sha256": "678cb8947f0b5e6ad14524f1863987ab99641cfb5f81121fc5c5006af0319d02",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/jsonpath_exec.c#L2806",
          "lines": "2806-2828"
        },
        {
          "id": "src.jsonpath.context-flags",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/jsonpath_exec.c",
          "sha256": "678cb8947f0b5e6ad14524f1863987ab99641cfb5f81121fc5c5006af0319d02",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/jsonpath_exec.c#L235",
          "lines": "235-249"
        },
        {
          "id": "src.jsonpath.execute-context",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/jsonpath_exec.c",
          "sha256": "678cb8947f0b5e6ad14524f1863987ab99641cfb5f81121fc5c5006af0319d02",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/jsonpath_exec.c#L654",
          "lines": "654-727"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "2203C is sql_json_object_not_found in SQLSTATE Class 22.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read fixed definition."
        },
        {
          "id": "resolved-path",
          "statement": "The wildcard member branch requires an object, can ignore a non-object structural mismatch when jspIgnoreStructuralErrors is true, and may auto-unwrap an array in lax mode. .keyvalue() may auto-unwrap an array first, but its direct non-object guard uses RETURN_ERROR; throwing versus returning jperError follows jspThrowErrors and the caller's silent or ON ERROR context. Lax mode itself does not suppress that direct .keyvalue() guard.",
          "sources": [
            "src.jsonpath.wildcard-member",
            "src.jsonpath.keyvalue-object",
            "src.jsonpath.context-flags",
            "src.jsonpath.execute-context"
          ],
          "method": "Read the complete wildcard-member and keyvalue object-type guards, including array unwrap and structural-error handling.",
          "limits": "Source confirmation is not a natural runtime observation."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 2203C from 12.0 without proving exact implementation introduction.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue boundary."
        }
      ],
      "messages": [
        {
          "id": "message.wildcard-member",
          "sqlstate": "2203C",
          "primary_template": "jsonpath wildcard member accessor can only be applied to an object",
          "severity_source": "ERROR",
          "sources": [
            "src.jsonpath.wildcard-member"
          ]
        },
        {
          "id": "message.keyvalue-object",
          "sqlstate": "2203C",
          "primary_template": "jsonpath item method .%s() can only be applied to an object",
          "severity_source": "ERROR",
          "sources": [
            "src.jsonpath.keyvalue-object"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "resolved-path"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "resolved-path"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "2203D",
      "condition_name": "too_many_json_array_elements",
      "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#L228",
          "lines": "228"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "2203D is too_many_json_array_elements in SQLSTATE Class 22.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read fixed definition."
        },
        {
          "id": "bounded-source-scope",
          "statement": "No fixed PostgreSQL 18.6 emitting path was resolved for 2203D in the bounded scan.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Retain definition without inventing emitter.",
          "limits": "Bounded scan does not prove no extension or historical path exists."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 2203D from 12.0 without proving exact implementation introduction.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue boundary."
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "emitting-path",
          "status": "unknown",
          "evidence_ids": [
            "bounded-source-scope"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "bounded-source-scope"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "2203E",
      "condition_name": "too_many_json_object_members",
      "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#L229",
          "lines": "229"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "2203E is too_many_json_object_members in SQLSTATE Class 22.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read fixed definition."
        },
        {
          "id": "bounded-source-scope",
          "statement": "No fixed PostgreSQL 18.6 emitting path was resolved for 2203E in the bounded scan.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Retain definition without inventing emitter.",
          "limits": "Bounded scan does not prove no extension or historical path exists."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 2203E from 12.0 without proving exact implementation introduction.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue boundary."
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "emitting-path",
          "status": "unknown",
          "evidence_ids": [
            "bounded-source-scope"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "bounded-source-scope"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "2203F",
      "condition_name": "sql_json_scalar_required",
      "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#L230",
          "lines": "230"
        },
        {
          "id": "src.jsonpath.value-cardinality",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/jsonpath_exec.c",
          "sha256": "678cb8947f0b5e6ad14524f1863987ab99641cfb5f81121fc5c5006af0319d02",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/jsonpath_exec.c#L3991",
          "lines": "3991-4067"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "2203F is sql_json_scalar_required in SQLSTATE Class 22.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read fixed definition."
        },
        {
          "id": "resolved-path",
          "statement": "The fixed JSON_VALUE executor marks an empty result before cardinality checks, reports 22034 for more than one item, and then requires the single remaining item to be a JSON scalar; a non-scalar item reaches 2203F. When an error pointer is supplied for ON ERROR handling, the function sets the error flag and returns NULL instead of throwing; the ordinary path emits the column-aware or column-less primary.",
          "sources": [
            "src.jsonpath.value-cardinality"
          ],
          "method": "Read the complete JsonPathValue empty, multiple-item, scalar-type, and error-pointer branches.",
          "limits": "Source confirmation is not a natural runtime observation."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 2203F from 12.0 without proving exact implementation introduction.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue boundary."
        }
      ],
      "messages": [
        {
          "id": "message.scalar-column",
          "sqlstate": "2203F",
          "primary_template": "JSON path expression for column \"%s\" must return single scalar item",
          "severity_source": "ERROR",
          "sources": [
            "src.jsonpath.value-cardinality"
          ]
        },
        {
          "id": "message.scalar-no-column",
          "sqlstate": "2203F",
          "primary_template": "JSON path expression in JSON_VALUE must return single scalar item",
          "severity_source": "ERROR",
          "sources": [
            "src.jsonpath.value-cardinality"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "resolved-path"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "resolved-path"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "2203G",
      "condition_name": "sql_json_item_cannot_be_cast_to_target_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#L231",
          "lines": "231"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "2203G is sql_json_item_cannot_be_cast_to_target_type in SQLSTATE Class 22.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read fixed definition."
        },
        {
          "id": "scan-boundary",
          "statement": "The fixed PostgreSQL 18.6 source tree contains the macro definition in errcodes.txt but no core or contrib call using ERRCODE_SQL_JSON_ITEM_CANNOT_BE_CAST_TO_TARGET_TYPE in the bounded scan.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Search fixed src and contrib trees for the macro and condition name.",
          "limits": "This is a bounded source result, not proof that an extension, user-defined RAISE, future code, or an unsearched generated path cannot emit 2203G."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 2203G from 15.0; that boundary does not prove exact implementation introduction.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue boundary."
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "identity",
            "scan-boundary"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "identity",
            "scan-boundary"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "22P01",
      "condition_name": "floating_point_exception",
      "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#L205",
          "lines": "205"
        },
        {
          "id": "src.path.handler",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/tcop/postgres.c",
          "sha256": "9fb62275b1badf94d01ab351337b60410cd9b3ab1fe63fa9f23d6d2185a21061",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/tcop/postgres.c#L3072",
          "lines": "3072-3082"
        },
        {
          "id": "src.path.registration",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/tcop/postgres.c",
          "sha256": "9fb62275b1badf94d01ab351337b60410cd9b3ab1fe63fa9f23d6d2185a21061",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/tcop/postgres.c#L4245",
          "lines": "4245-4249"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "22P01 is floating_point_exception in SQLSTATE Class 22.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read fixed definition."
        },
        {
          "id": "signal-handler",
          "statement": "FloatExceptionHandler is the backend SIGFPE handler. It emits ERROR 22P01 with primary floating-point exception and detail about an invalid floating-point operation, an out-of-range result, or an invalid operation such as division by zero.",
          "sources": [
            "src.path.handler",
            "src.path.registration"
          ],
          "method": "Read the complete handler and the PostgresMain SIGFPE registration.",
          "limits": "The source confirms the handler and message; it does not show a natural SIGFPE runtime in this review."
        },
        {
          "id": "numeric-boundary",
          "statement": "The handler is distinct from type-specific exact-numeric errors such as division-by-zero 22012 and numeric range 22003.",
          "sources": [
            "src.path.handler"
          ],
          "method": "Compare the fixed handler with the condition-specific source boundary named in the page.",
          "limits": "Related-code distinctions are diagnostic guidance, not a claim that every arithmetic operator chooses one code."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 22P01 from 7.4; that boundary does not prove exact implementation introduction.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue boundary."
        }
      ],
      "messages": [
        {
          "id": "message.handler",
          "sqlstate": "22P01",
          "primary_template": "floating-point exception",
          "severity_source": "ERROR",
          "sources": [
            "src.path.handler"
          ],
          "detail_template": "An invalid floating-point operation was signaled. This probably means an out-of-range result or an invalid operation, such as division by zero."
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "signal-handler"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "signal-handler"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "22P02",
      "condition_name": "invalid_text_representation",
      "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#L206",
          "lines": "206"
        },
        {
          "id": "src.path.0",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/copyfrom.c",
          "sha256": "2eacfb8e896414428a8d124921fdc38629afe55c391c0fc16bce99b2db8bd86f",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/copyfrom.c#L1169",
          "lines": "1169-1172"
        },
        {
          "id": "src.path.1",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "contrib/file_fdw/file_fdw.c",
          "sha256": "d79ec21c08be6a806b0710aab09698678ddb24103d3470702e66ee1523432125",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/contrib/file_fdw/file_fdw.c#L799",
          "lines": "799-802"
        },
        {
          "id": "src.path.2",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "contrib/isn/isn.c",
          "sha256": "5dcd8ac520146b708998b4d4d9284abc1759136ca9d2d6b6cc029096fb001c4d",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/contrib/isn/isn.c#L409",
          "lines": "409-419"
        },
        {
          "id": "src.path.3",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/extension.c",
          "sha256": "e31879ca59521eea978a04160050aed07185dc682e005a307a8d6f6aa53416fc",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/extension.c#L1366",
          "lines": "1366-1420"
        },
        {
          "id": "src.invalid-integer.18.6",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/numutils.c",
          "sha256": "9018d559d8a2b04f6d3fa8fedeb754fc5f1f8cd8594292e6adc5108e8f97f1bf",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/numutils.c#L614-L618"
        },
        {
          "id": "src.invalid-integer.10.23",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_10_23",
          "commit": "02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4",
          "path": "src/backend/utils/adt/numutils.c",
          "sha256": "6cb3fd7e4b38a66c16f2cc4a3de0c52ce44e01dd22edd3dd9340d2a8faea0d35",
          "url": "https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/utils/adt/numutils.c#L59-L62",
          "lines": "59-62"
        },
        {
          "id": "manifest.22P02",
          "kind": "local_artifact",
          "source_role": "case_manifest",
          "sha256": "00983166353d1b7677634984b78a5ad06ba1b7a3db5011d308573d071138e7d6"
        },
        {
          "id": "snippet-registry.22P02",
          "kind": "local_artifact",
          "source_role": "snippet_registry",
          "sha256": "887c8b0911b9b03f70d657e8dc3a6d3c07e323fd33f1b91259be44c2c9dc27c0"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "tag": "REL_18_6",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        },
        {
          "id": "src.calls.REL_10_23",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "tag": "REL_10_23",
          "sha256": "00d16d3eb01b71ccf1b245c8f3102f9d0ec9f36fb02777b8dd1b99fcb263040c"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "22P02 is invalid_text_representation in SQLSTATE Class 22.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read fixed definition."
        },
        {
          "id": "resolved-paths",
          "statement": "The cited PostgreSQL 18.6 source paths support the representative mechanisms and message boundaries described.",
          "sources": [
            "src.path.0",
            "src.path.1",
            "src.path.2",
            "src.path.3"
          ],
          "method": "Read complete fixed source contexts.",
          "limits": "Source confirmation is not natural runtime."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 22P02 from 7.4; that boundary does not prove exact implementation introduction.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue boundary."
        },
        {
          "id": "mechanism.integer-input",
          "statement": "The selected ordinary cast path reports invalid integer text through the numeric input routine; PostgreSQL 18 and 10 use different fixed wording around the type name.",
          "sources": [
            "src.invalid-integer.18.6",
            "src.invalid-integer.10.23"
          ],
          "method": "Read fixed numutils.c source-call records and compare selected runtime diagnostics.",
          "limits": "This is one integer-input path; COPY, enum, extension, and contrib callers can use different 22P02 messages."
        },
        {
          "id": "runtime.representative-case",
          "statement": "The invalid_integer_text case passed on isolated PostgreSQL 18.6 and 10.21 targets, with IDLE recovery and a same-session valid value of 42.",
          "sources": [
            "manifest.22P02",
            "snippet-registry.22P02"
          ],
          "method": "Execute the shared registry and inspect SQLSTATE, severity, IDLE state, repair, cleanup, and target stop.",
          "limits": "Scope is limited to the integer cast statements, psycopg, and the two selected versions.",
          "runtime": [
            "runtime.ops-22p02-latest-1.latest",
            "runtime.ops-22p02-pg10-1.pg10"
          ]
        }
      ],
      "messages": [
        {
          "id": "message.0",
          "sqlstate": "22P02",
          "primary_template": "skipped more than REJECT_LIMIT (%\" PRId64 \") rows due to data type incompatibility",
          "severity_source": "ERROR",
          "sources": [
            "src.path.0",
            "src.path.1"
          ]
        },
        {
          "id": "message.1",
          "sqlstate": "22P02",
          "primary_template": "cannot cast EAN13(%s) to %s for number: \"%s\"",
          "severity_source": "ERROR",
          "sources": [
            "src.path.2"
          ]
        },
        {
          "id": "message.2",
          "sqlstate": "22P02",
          "primary_template": "invalid character in extension owner: must not contain any of \"%s\"",
          "severity_source": "ERROR",
          "sources": [
            "src.path.3"
          ]
        },
        {
          "id": "message.integer-input.18.6",
          "sqlstate": "22P02",
          "primary_template": "invalid input syntax for type integer: \"%s\"",
          "severity_source": "ERROR",
          "sources": [
            "src.invalid-integer.18.6"
          ]
        },
        {
          "id": "message.integer-input.10.23",
          "sqlstate": "22P02",
          "primary_template": "invalid input syntax for integer: \"%s\"",
          "severity_source": "ERROR",
          "sources": [
            "src.invalid-integer.10.23"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "resolved-paths"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "selected-case-18.6-and-10.21",
          "status": "observed_runtime",
          "evidence_ids": [
            "runtime.ops-22p02-latest-1.latest",
            "runtime.ops-22p02-pg10-1.pg10",
            "runtime.representative-case"
          ]
        }
      ],
      "runtime": [
        {
          "id": "runtime.ops-22p02-latest-1.latest",
          "run_id": "ops-22p02-latest-1",
          "target": "latest",
          "status": "passed",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "summary_sha256": "87063ee0a6214c4680c1c769e43dc8470c2bfff2aa3822564275b123322fea0b",
          "raw_sha256": "5e618501c098a3f91b1949d0d800cfe85ffa5c674cc5ca276b4307aacac71d47",
          "case_manifest": {
            "id": "manifest.22P02",
            "kind": "local_artifact",
            "source_role": "case_manifest",
            "sha256": "00983166353d1b7677634984b78a5ad06ba1b7a3db5011d308573d071138e7d6"
          },
          "snippet_registry": {
            "id": "snippet-registry.22P02",
            "kind": "local_artifact",
            "source_role": "snippet_registry",
            "sha256": "887c8b0911b9b03f70d657e8dc3a6d3c07e323fd33f1b91259be44c2c9dc27c0"
          },
          "environment": {
            "TimeZone": "Asia/Shanghai",
            "backend_pid": 43518,
            "binary": {
              "bindir": "/opt/homebrew/Cellar/postgresql@18/18.6/bin",
              "pg_config": "/opt/homebrew/bin/pg_config",
              "pg_config_version": "PostgreSQL 18.6 (Homebrew)",
              "postgres": "/opt/homebrew/Cellar/postgresql@18/18.6/bin/postgres"
            },
            "connection_scope": "runner-owned localhost port",
            "current_user": "runner",
            "docker": {},
            "lc_messages": "C",
            "libpq_version": "18.6",
            "locale": "C.UTF-8",
            "log_destination": "csvlog,jsonlog",
            "log_error_verbosity": "verbose",
            "log_min_error_statement": "error",
            "log_min_messages": "error",
            "logging_collector": "on",
            "machine": "arm64",
            "max_connections": "100",
            "platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O",
            "psycopg_version": "3.3.5",
            "python_version": "3.14.6 (main, Jun 10 2026, 10:03:53) [Clang 21.0.0 (clang-2100.0.123.102)]",
            "server_encoding": "UTF8",
            "server_version": "18.6 (Homebrew)",
            "server_version_num": "180006",
            "target_kind": "latest",
            "wal_level": "logical"
          },
          "cases": [
            "invalid_integer_text"
          ],
          "observed": {
            "connection_autocommit": true,
            "diagnostic": {
              "column_name": null,
              "constraint_name": null,
              "context": null,
              "datatype_name": null,
              "exception_type": "InvalidTextRepresentation",
              "internal_position": null,
              "internal_query": null,
              "message_detail": null,
              "message_hint": null,
              "message_primary": "invalid input syntax for type integer: \"not-an-integer\"",
              "schema_name": null,
              "severity": "ERROR",
              "severity_nonlocalized": "ERROR",
              "source_file": "numutils.c",
              "source_function": "pg_strtoint32_safe",
              "source_line": "618",
              "sqlstate": "22P02",
              "statement_position": "8",
              "table_name": null,
              "text": "invalid input syntax for type integer: \"not-an-integer\"\nLINE 1: SELECT 'not-an-integer'::integer\n               ^"
            },
            "failed_status": "IDLE",
            "invalid_text": "not-an-integer",
            "repair_status": "IDLE",
            "repair_value": 42,
            "target_type": "integer"
          },
          "assertions": [
            {
              "expected": "22P02",
              "name": "22P02 SQLSTATE",
              "observed": "22P02",
              "passed": true
            },
            {
              "expected": "ERROR",
              "name": "22P02 ERROR severity",
              "observed": "ERROR",
              "passed": true
            },
            {
              "expected": "invalid input syntax ... integer ... not-an-integer",
              "name": "integer input diagnostic names the invalid text",
              "observed": "invalid input syntax for type integer: \"not-an-integer\"",
              "passed": true
            },
            {
              "expected": "IDLE",
              "name": "invalid text leaves autocommit session usable",
              "observed": "IDLE",
              "passed": true
            },
            {
              "expected": {
                "status": "IDLE",
                "value": 42
              },
              "name": "valid integer text repairs conversion",
              "observed": {
                "status": "IDLE",
                "value": 42
              },
              "passed": true
            }
          ],
          "cleanup": {
            "errors": [],
            "passed": true
          },
          "target_stop": {
            "argv": [
              "/opt/homebrew/Cellar/postgresql@18/18.6/bin/pg_ctl",
              "-D",
              "<local runtime artifact>",
              "-m",
              "fast",
              "-w",
              "stop"
            ],
            "elapsed_seconds": 0.115,
            "returncode": 0,
            "stderr": "",
            "stdout": "waiting for server to shut down.... done\nserver stopped\n"
          }
        },
        {
          "id": "runtime.ops-22p02-pg10-1.pg10",
          "run_id": "ops-22p02-pg10-1",
          "target": "pg10",
          "status": "passed",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "summary_sha256": "064999d95d45e80ef01dc634dbb7db052c63c8bde10e0b589143b609f0e7dbf6",
          "raw_sha256": "b7bbdabc455657dbbb2d12ba411c0e72fbaed32ed7e8aaa3f724fa9ba45c36ea",
          "case_manifest": {
            "id": "manifest.22P02",
            "kind": "local_artifact",
            "source_role": "case_manifest",
            "sha256": "00983166353d1b7677634984b78a5ad06ba1b7a3db5011d308573d071138e7d6"
          },
          "snippet_registry": {
            "id": "snippet-registry.22P02",
            "kind": "local_artifact",
            "source_role": "snippet_registry",
            "sha256": "887c8b0911b9b03f70d657e8dc3a6d3c07e323fd33f1b91259be44c2c9dc27c0"
          },
          "environment": {
            "TimeZone": "Etc/UTC",
            "backend_pid": 79,
            "binary": {},
            "connection_scope": "runner-owned localhost port",
            "current_user": "postgres",
            "docker": {
              "architecture": "arm64",
              "command": "/usr/local/bin/docker",
              "digest": "sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
              "id": "sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
              "image": "postgres:10",
              "image_created": "2022-06-23T09:11:18.374607054Z",
              "image_ref": "postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
              "log_destination": "csvlog",
              "os": "linux",
              "repo_digests": [
                "postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc"
              ]
            },
            "lc_messages": "en_US.utf8",
            "libpq_version": "18.6",
            "locale": "C.UTF-8",
            "log_destination": "csvlog",
            "log_error_verbosity": "verbose",
            "log_min_error_statement": "error",
            "log_min_messages": "error",
            "logging_collector": "on",
            "machine": "arm64",
            "max_connections": "100",
            "platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O",
            "psycopg_version": "3.3.5",
            "python_version": "3.14.6 (main, Jun 10 2026, 10:03:53) [Clang 21.0.0 (clang-2100.0.123.102)]",
            "server_encoding": "UTF8",
            "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
            "server_version_num": "100021",
            "target_kind": "pg10",
            "wal_level": "logical"
          },
          "cases": [
            "invalid_integer_text"
          ],
          "observed": {
            "connection_autocommit": true,
            "diagnostic": {
              "column_name": null,
              "constraint_name": null,
              "context": null,
              "datatype_name": null,
              "exception_type": "InvalidTextRepresentation",
              "internal_position": null,
              "internal_query": null,
              "message_detail": null,
              "message_hint": null,
              "message_primary": "invalid input syntax for integer: \"not-an-integer\"",
              "schema_name": null,
              "severity": "ERROR",
              "severity_nonlocalized": "ERROR",
              "source_file": "numutils.c",
              "source_function": "pg_atoi",
              "source_line": "62",
              "sqlstate": "22P02",
              "statement_position": "8",
              "table_name": null,
              "text": "invalid input syntax for integer: \"not-an-integer\"\nLINE 1: SELECT 'not-an-integer'::integer\n               ^"
            },
            "failed_status": "IDLE",
            "invalid_text": "not-an-integer",
            "repair_status": "IDLE",
            "repair_value": 42,
            "target_type": "integer"
          },
          "assertions": [
            {
              "expected": "22P02",
              "name": "22P02 SQLSTATE",
              "observed": "22P02",
              "passed": true
            },
            {
              "expected": "ERROR",
              "name": "22P02 ERROR severity",
              "observed": "ERROR",
              "passed": true
            },
            {
              "expected": "invalid input syntax ... integer ... not-an-integer",
              "name": "integer input diagnostic names the invalid text",
              "observed": "invalid input syntax for integer: \"not-an-integer\"",
              "passed": true
            },
            {
              "expected": "IDLE",
              "name": "invalid text leaves autocommit session usable",
              "observed": "IDLE",
              "passed": true
            },
            {
              "expected": {
                "status": "IDLE",
                "value": 42
              },
              "name": "valid integer text repairs conversion",
              "observed": {
                "status": "IDLE",
                "value": 42
              },
              "passed": true
            }
          ],
          "cleanup": {
            "errors": [],
            "passed": true
          },
          "target_stop": {
            "cleanup": {
              "argv": [
                "/usr/local/bin/docker",
                "rm",
                "-f",
                "-v",
                "sqlstate22p02_ops22p02pg101_pg10"
              ],
              "elapsed_seconds": 0.307,
              "returncode": 0,
              "stderr": "",
              "stdout": "sqlstate22p02_ops22p02pg101_pg10\n"
            },
            "inspect": {
              "argv": [
                "/usr/local/bin/docker",
                "inspect",
                "sqlstate22p02_ops22p02pg101_pg10"
              ],
              "elapsed_seconds": 0.018,
              "returncode": 0,
              "stderr": "",
              "stdout": "[\n    {\n        \"Id\": \"55ddbd871c1c269851c1e141841ab9970b7ef3c594e260aaccc38183acc5c810\",\n        \"Created\": \"2026-09-09T17:10:41.956604554Z\",\n        \"Path\": \"docker-entrypoint.sh\",\n        \"Args\": [\n            \"postgres\",\n            \"-c\",\n            \"listen_addresses=*\",\n            \"-c\",\n            \"log_destination=csvlog\",\n            \"-c\",\n            \"logging_collector=on\",\n            \"-c\",\n            \"log_directory=log\",\n            \"-c\",\n            \"log_filename=postgresql-%Y%m%d%H%M%S.log\",\n            \"-c\",\n            \"log_min_messages=error\",\n            \"-c\",\n            \"log_min_error_statement=error\",\n            \"-c\",\n            \"log_error_verbosity=verbose\",\n            \"-c\",\n            \"wal_level=logical\",\n            \"-c\",\n            \"max_wal_senders=10\",\n            \"-c\",\n            \"max_replication_slots=10\"\n        ],\n        \"State\": {\n            \"Status\": \"running\",\n            \"Running\": true,\n            \"Paused\": false,\n            \"Restarting\": false,\n            \"OOMKilled\": false,\n            \"Dead\": false,\n            \"Pid\": 64207,\n            \"ExitCode\": 0,\n            \"Error\": \"\",\n            \"StartedAt\": \"2026-09-09T17:10:42.085508346Z\",\n            \"FinishedAt\": \"0001-01-01T00:00:00Z\"\n        },\n        \"Image\": \"sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc\",\n        \"ResolvConfPath\": \"/var/lib/docker/containers/55ddbd871c1c269851c1e141841ab9970b7ef3c594e260aaccc38183acc5c810/resolv.conf\",\n        \"HostnamePath\": \"/var/lib/docker/containers/55ddbd871c1c269851c1e141841ab9970b7ef3c594e260aaccc38183acc5c810/hostname\",\n        \"HostsPath\": \"/var/lib/docker/containers/55ddbd871c1c269851c1e141841ab9970b7ef3c594e260aaccc38183acc5c810/hosts\",\n        \"LogPath\": \"/var/lib/docker/containers/55ddbd871c1c269851c1e141841ab9970b7ef3c594e260aaccc38183acc5c810/55ddbd871c1c269851c1e141841ab9970b7ef3c594e260aaccc38183acc5c810-json.log\",\n        \"Name\": \"/sqlstate22p02_ops22p02pg101_pg10\",\n        \"RestartCount\": 0,\n        \"Driver\": \"overlayfs\",\n        \"Platform\": \"linux\",\n        \"MountLabel\": \"\",\n        \"ProcessLabel\": \"\",\n        \"AppArmorProfile\": \"\",\n        \"ExecIDs\": null,\n        \"HostConfig\": {\n            \"Binds\": null,\n            \"ContainerIDFile\": \"\",\n            \"LogConfig\": {\n                \"Type\": \"json-file\",\n                \"Config\": {}\n            },\n            \"NetworkMode\": \"bridge\",\n            \"PortBindings\": {\n                \"5432/tcp\": [\n                    {\n                        \"HostIp\": \"127.0.0.1\",\n                        \"HostPort\": \"\"\n                    }\n                ]\n            },\n            \"RestartPolicy\": {\n                \"Name\": \"no\",\n                \"MaximumRetryCount\": 0\n            },\n            \"AutoRemove\": false,\n            \"VolumeDriver\": \"\",\n            \"VolumesFrom\": null,\n            \"ConsoleSize\": [\n                0,\n                0\n            ],\n            \"CapAdd\": null,\n            \"CapDrop\": null,\n            \"CgroupnsMode\": \"private\",\n            \"Dns\": null,\n            \"DnsOptions\": [],\n            \"DnsSearch\": [],\n            \"ExtraHosts\": null,\n            \"GroupAdd\": null,\n            \"IpcMode\": \"private\",\n            \"Cgroup\": \"\",\n            \"Links\": null,\n            \"OomScoreAdj\": 0,\n            \"PidMode\": \"\",\n            \"Privileged\": false,\n            \"PublishAllPorts\": false,\n            \"ReadonlyRootfs\": false,\n            \"SecurityOpt\": null,\n            \"UTSMode\": \"\",\n            \"UsernsMode\": \"\",\n            \"ShmSize\": 67108864,\n            \"Runtime\": \"runc\",\n            \"Isolation\": \"\",\n            \"CpuShares\": 0,\n            \"Memory\": 0,\n            \"NanoCpus\": 0,\n            \"CgroupParent\": \"\",\n            \"BlkioWeight\": 0,\n            \"BlkioWeightDevice\": [],\n            \"BlkioDeviceReadBps\": [],\n            \"BlkioDeviceWriteBps\": [],\n            \"BlkioDeviceReadIOps\": [],\n            \"BlkioDeviceWriteIOps\": [],\n            \"CpuPeriod\": 0,\n            \"CpuQuota\": 0,\n            \"CpuRealtimePeriod\": 0,\n            \"CpuRealtimeRuntime\": 0,\n            \"CpusetCpus\": \"\",\n            \"CpusetMems\": \"\",\n            \"Devices\": [],\n            \"DeviceCgroupRules\": null,\n            \"DeviceRequests\": null,\n            \"MemoryReservation\": 0,\n            \"MemorySwap\": 0,\n            \"MemorySwappiness\": null,\n            \"OomKillDisable\": null,\n            \"PidsLimit\": null,\n            \"Ulimits\": [],\n            \"CpuCount\": 0,\n            \"CpuPercent\": 0,\n            \"IOMaximumIOps\": 0,\n            \"IOMaximumBandwidth\": 0,\n            \"MaskedPaths\": [\n                \"/proc/acpi\",\n                \"/proc/asound\",\n                \"/proc/interrupts\",\n                \"/proc/kcore\",\n                \"/proc/keys\",\n                \"/proc/latency_stats\",\n                \"/proc/sched_debug\",\n                \"/proc/scsi\",\n                \"/proc/timer_list\",\n                \"/proc/timer_stats\",\n                \"/sys/devices/virtual/powercap\",\n                \"/sys/firmware\"\n            ],\n            \"ReadonlyPaths\": [\n                \"/proc/bus\",\n                \"/proc/fs\",\n                \"/proc/irq\",\n                \"/proc/sys\",\n                \"/proc/sysrq-trigger\"\n            ]\n        },\n        \"Storage\": {\n            \"RootFS\": {\n                \"Snapshot\": {\n                    \"Name\": \"overlayfs\"\n                }\n            }\n        },\n        \"Mounts\": [\n            {\n                \"Type\": \"volume\",\n                \"Name\": \"3a2fd8c1cb1a3e4433f770e288dadd45389d1fec1bee3f79fb9d1f9d8b99211c\",\n                \"Source\": \"/var/lib/docker/volumes/3a2fd8c1cb1a3e4433f770e288dadd45389d1fec1bee3f79fb9d1f9d8b99211c/_data\",\n                \"Destination\": \"/var/lib/postgresql/data\",\n                \"Driver\": \"local\",\n                \"Mode\": \"\",\n                \"RW\": true,\n                \"Propagation\": \"\"\n            }\n        ],\n        \"Config\": {\n            \"Hostname\": \"55ddbd871c1c\",\n            \"Domainname\": \"\",\n            \"User\": \"\",\n            \"AttachStdin\": false,\n            \"AttachStdout\": false,\n            \"AttachStderr\": false,\n            \"ExposedPorts\": {\n                \"5432/tcp\": {}\n            },\n            \"Tty\": false,\n            \"OpenStdin\": false,\n            \"StdinOnce\": false,\n            \"Env\": [\n                \"POSTGRES_HOST_AUTH_METHOD=trust\",\n                \"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/10/bin\",\n                \"GOSU_VERSION=1.14\",\n                \"LANG=en_US.utf8\",\n                \"PG_MAJOR=10\",\n                \"PG_VERSION=10.21-1.pgdg90+1\",\n                \"PGDATA=/var/lib/postgresql/data\"\n            ],\n            \"Cmd\": [\n                \"postgres\",\n                \"-c\",\n                \"listen_addresses=*\",\n                \"-c\",\n                \"log_destination=csvlog\",\n                \"-c\",\n                \"logging_collector=on\",\n                \"-c\",\n                \"log_directory=log\",\n                \"-c\",\n                \"log_filename=postgresql-%Y%m%d%H%M%S.log\",\n                \"-c\",\n                \"log_min_messages=error\",\n                \"-c\",\n                \"log_min_error_statement=error\",\n                \"-c\",\n                \"log_error_verbosity=verbose\",\n                \"-c\",\n                \"wal_level=logical\",\n                \"-c\",\n                \"max_wal_senders=10\",\n                \"-c\",\n                \"max_replication_slots=10\"\n            ],\n            \"Image\": \"postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc\",\n            \"Volumes\": {\n                \"/var/lib/postgresql/data\": {}\n            },\n            \"WorkingDir\": \"\",\n            \"Entrypoint\": [\n                \"docker-entrypoint.sh\"\n            ],\n            \"Labels\": {},\n            \"StopSignal\": \"SIGINT\",\n            \"StopTimeout\": 1\n        },\n        \"NetworkSettings\": {\n            \"SandboxID\": \"9f931ecde5ff7c0921e8adc95e0d2e95fc43edf09dc22f9333741e2bcb6d15c1\",\n            \"SandboxKey\": \"/var/run/docker/netns/9f931ecde5ff\",\n            \"Ports\": {\n                \"5432/tcp\": [\n                    {\n                        \"HostIp\": \"127.0.0.1\",\n                        \"HostPort\": \"57896\"\n                    }\n                ]\n            },\n            \"Networks\": {\n                \"bridge\": {\n                    \"IPAMConfig\": null,\n                    \"Links\": null,\n                    \"Aliases\": null,\n                    \"DriverOpts\": null,\n                    \"GwPriority\": 0,\n                    \"NetworkID\": \"aed51554f8cd8bac69ecd4f073e41e147fda7b458e9d95be2af472651f2e825c\",\n                    \"EndpointID\": \"ac7391609ed2394e797f1e534fbd75c5ef8329ea704411726a176a1e61da8af6\",\n                    \"Gateway\": \"172.17.0.1\",\n                    \"IPAddress\": \"172.17.0.53\",\n                    \"MacAddress\": \"fe:07:da:36:73:e2\",\n                    \"IPPrefixLen\": 16,\n                    \"IPv6Gateway\": \"\",\n                    \"GlobalIPv6Address\": \"\",\n                    \"GlobalIPv6PrefixLen\": 0,\n                    \"DNSNames\": null\n                }\n            }\n        },\n        \"ImageManifestDescriptor\": {\n            \"mediaType\": \"application/vnd.docker.distribution.manifest.v2+json\",\n            \"digest\": \"sha256:52aada7978f1eef3b6b52a51afb7a3defd69254d00c946cb90d2ceb32b8ffce7\",\n            \"size\": 3246,\n            \"platform\": {\n                \"architecture\": \"arm64\",\n                \"os\": \"linux\",\n                \"variant\": \"v8\"\n            }\n        }\n    }\n]\n"
            }
          }
        }
      ]
    },
    {
      "sqlstate": "22P03",
      "condition_name": "invalid_binary_representation",
      "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#L207",
          "lines": "207"
        },
        {
          "id": "src.path.copy-binary",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/copyfromparse.c",
          "sha256": "bc42754023579cd782a3cb3f144ad2c2c3d3aa46119eb7567fcdb05f2d445571",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/copyfromparse.c#L2047",
          "lines": "2047-2055"
        },
        {
          "id": "src.path.bind",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/tcop/postgres.c",
          "sha256": "9fb62275b1badf94d01ab351337b60410cd9b3ab1fe63fa9f23d6d2185a21061",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/tcop/postgres.c#L1922",
          "lines": "1922-1945"
        },
        {
          "id": "src.path.fastpath",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/tcop/fastpath.c",
          "sha256": "c42985c83293efe0bdf1c265930e0d4e13d6bb2eb23040815e638ad9244eab6c",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/tcop/fastpath.c#L426",
          "lines": "426-448"
        },
        {
          "id": "src.path.logicalrep",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/replication/logical/worker.c",
          "sha256": "096c5c46ffee6aab907ec5dad467100c5e3e8a4d398332d62dd302ab9c2ebf18",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/replication/logical/worker.c#L832",
          "lines": "832-853"
        },
        {
          "id": "src.path.array",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/arrayfuncs.c",
          "sha256": "1f1c9dab1e5f8c936bbfe6c28a3011365b433367e1854166bbec9d2e97341177",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/arrayfuncs.c#L1296",
          "lines": "1296-1312"
        },
        {
          "id": "src.path.array-elements",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/arrayfuncs.c",
          "sha256": "1f1c9dab1e5f8c936bbfe6c28a3011365b433367e1854166bbec9d2e97341177",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/arrayfuncs.c#L1476",
          "lines": "1476-1510"
        },
        {
          "id": "src.path.numeric",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/numeric.c",
          "sha256": "6cde7cd60b3330b83be35d1f014045f5fb5fe737f3c5db4c8ed4080b99f2b666",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/numeric.c#L1093",
          "lines": "1093-1123"
        },
        {
          "id": "src.path.protocol-recovery",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/tcop/postgres.c",
          "sha256": "9fb62275b1badf94d01ab351337b60410cd9b3ab1fe63fa9f23d6d2185a21061",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/tcop/postgres.c#L4483",
          "lines": "4483-4504"
        },
        {
          "id": "src.path.fastpath-dispatch",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/tcop/postgres.c",
          "sha256": "9fb62275b1badf94d01ab351337b60410cd9b3ab1fe63fa9f23d6d2185a21061",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/tcop/postgres.c#L4843",
          "lines": "4843-4875"
        },
        {
          "id": "src.path.protocol-flags",
          "kind": "upstream_source",
          "source_role": "protocol_flow",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/tcop/postgres.c",
          "sha256": "9fb62275b1badf94d01ab351337b60410cd9b3ab1fe63fa9f23d6d2185a21061",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/tcop/postgres.c#L416-L445",
          "lines": "416-445"
        },
        {
          "id": "doc.protocol.copy",
          "kind": "upstream_source",
          "source_role": "official_documentation",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "doc/src/sgml/protocol.sgml",
          "sha256": "745339e07ebbc2bb67d98b258e25772ada644ef26011e3cd6b3fcbb435235f89",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/protocol.sgml#L1287-L1318",
          "lines": "1287-1318",
          "docs_url": "https://www.postgresql.org/docs/18/protocol.html"
        },
        {
          "id": "doc.protocol.status",
          "kind": "upstream_source",
          "source_role": "official_documentation",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "doc/src/sgml/protocol.sgml",
          "sha256": "745339e07ebbc2bb67d98b258e25772ada644ef26011e3cd6b3fcbb435235f89",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/protocol.sgml#L7821-L7823",
          "lines": "7821-7823",
          "docs_url": "https://www.postgresql.org/docs/18/protocol.html"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "22P03 is invalid_binary_representation in SQLSTATE Class 22.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read fixed definition."
        },
        {
          "id": "protocol-and-copy",
          "statement": "Binary COPY and extended-protocol Bind call a type receive function and reject leftover bytes after the receiver returns; COPY uses the unqualified primary and Bind names the parameter number. The frontend loop marks Bind/Parse for skip-until-Sync recovery, while FunctionCall and COPY data are not marked by that extended-query flag. The protocol documentation distinguishes extended-query COPY (ErrorResponse, then Sync and ReadyForQuery) from simple Query COPY (discard the rest of the query and send ReadyForQuery without Sync); ReadyForQuery reports status but does not itself clear an aborted transaction. A separate protocol-synchronization loss path is FATAL.",
          "sources": [
            "src.path.copy-binary",
            "src.path.bind",
            "src.path.protocol-flags",
            "src.path.protocol-recovery",
            "src.path.fastpath-dispatch",
            "doc.protocol.copy",
            "doc.protocol.status"
          ],
          "method": "Read the complete receive-and-cursor guards."
        },
        {
          "id": "fastpath-and-replication",
          "statement": "Fast-path arguments and logical-replication binary columns use the same consume-the-whole-buffer guard, with argument or remote-column context in the primary. Logical replication resets the StringInfo cursor before receive because some paths reparse the tuple.",
          "sources": [
            "src.path.fastpath",
            "src.path.logicalrep"
          ],
          "method": "Read the complete binary branches and cursor reset/leftover checks."
        },
        {
          "id": "type-receivers",
          "statement": "Built-in binary receive functions can emit 22P03 for invalid internal layouts, including array dimensions/flags/element framing and numeric sign/scale/digit fields.",
          "sources": [
            "src.path.array",
            "src.path.array-elements",
            "src.path.numeric"
          ],
          "method": "Read representative type receive guards.",
          "limits": "The listed type paths are representative, not an exhaustive inventory of all receive functions."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 22P03 from 7.4; that boundary does not prove exact implementation introduction.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue boundary."
        }
      ],
      "messages": [
        {
          "id": "message.copy",
          "sqlstate": "22P03",
          "primary_template": "incorrect binary data format",
          "severity_source": "ERROR",
          "sources": [
            "src.path.copy-binary"
          ]
        },
        {
          "id": "message.bind",
          "sqlstate": "22P03",
          "primary_template": "incorrect binary data format in bind parameter %d",
          "severity_source": "ERROR",
          "sources": [
            "src.path.bind"
          ]
        },
        {
          "id": "message.fastpath",
          "sqlstate": "22P03",
          "primary_template": "incorrect binary data format in function argument %d",
          "severity_source": "ERROR",
          "sources": [
            "src.path.fastpath"
          ]
        },
        {
          "id": "message.logicalrep",
          "sqlstate": "22P03",
          "primary_template": "incorrect binary data format in logical replication column %d",
          "severity_source": "ERROR",
          "sources": [
            "src.path.logicalrep"
          ]
        },
        {
          "id": "message.array-dim",
          "sqlstate": "22P03",
          "primary_template": "invalid number of dimensions: %d",
          "severity_source": "ERROR",
          "sources": [
            "src.path.array"
          ]
        },
        {
          "id": "message.array-flags",
          "sqlstate": "22P03",
          "primary_template": "invalid array flags",
          "severity_source": "ERROR",
          "sources": [
            "src.path.array"
          ]
        },
        {
          "id": "message.array-data",
          "sqlstate": "22P03",
          "primary_template": "insufficient data left in message",
          "severity_source": "ERROR",
          "sources": [
            "src.path.array-elements"
          ]
        },
        {
          "id": "message.array-element",
          "sqlstate": "22P03",
          "primary_template": "improper binary format in array element %d",
          "severity_source": "ERROR",
          "sources": [
            "src.path.array-elements"
          ]
        },
        {
          "id": "message.numeric-sign",
          "sqlstate": "22P03",
          "primary_template": "invalid sign in external \"numeric\" value",
          "severity_source": "ERROR",
          "sources": [
            "src.path.numeric"
          ]
        },
        {
          "id": "message.numeric-scale",
          "sqlstate": "22P03",
          "primary_template": "invalid scale in external \"numeric\" value",
          "severity_source": "ERROR",
          "sources": [
            "src.path.numeric"
          ]
        },
        {
          "id": "message.numeric-digit",
          "sqlstate": "22P03",
          "primary_template": "invalid digit in external \"numeric\" value",
          "severity_source": "ERROR",
          "sources": [
            "src.path.numeric"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "protocol-and-copy",
            "fastpath-and-replication",
            "type-receivers"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "protocol-and-copy",
            "fastpath-and-replication",
            "type-receivers"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "22P04",
      "condition_name": "bad_copy_file_format",
      "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#L208",
          "lines": "208"
        },
        {
          "id": "src.path.binary-header",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/copyfromparse.c",
          "sha256": "bc42754023579cd782a3cb3f144ad2c2c3d3aa46119eb7567fcdb05f2d445571",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/copyfromparse.c#L190",
          "lines": "190-228"
        },
        {
          "id": "src.path.text-header",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/copyfromparse.c",
          "sha256": "bc42754023579cd782a3cb3f144ad2c2c3d3aa46119eb7567fcdb05f2d445571",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/copyfromparse.c#L779",
          "lines": "779-827"
        },
        {
          "id": "src.path.text-row",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/copyfromparse.c",
          "sha256": "bc42754023579cd782a3cb3f144ad2c2c3d3aa46119eb7567fcdb05f2d445571",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/copyfromparse.c#L937",
          "lines": "937-977"
        },
        {
          "id": "src.path.on-error",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/copyfromparse.c",
          "sha256": "bc42754023579cd782a3cb3f144ad2c2c3d3aa46119eb7567fcdb05f2d445571",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/copyfromparse.c#L1026",
          "lines": "1026-1073"
        },
        {
          "id": "src.path.binary-row",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/copyfromparse.c",
          "sha256": "bc42754023579cd782a3cb3f144ad2c2c3d3aa46119eb7567fcdb05f2d445571",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/copyfromparse.c#L1084",
          "lines": "1084-1130"
        },
        {
          "id": "src.path.line-framing",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/copyfromparse.c",
          "sha256": "bc42754023579cd782a3cb3f144ad2c2c3d3aa46119eb7567fcdb05f2d445571",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/copyfromparse.c#L1388",
          "lines": "1388-1432"
        },
        {
          "id": "src.path.copy-marker",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/copyfromparse.c",
          "sha256": "bc42754023579cd782a3cb3f144ad2c2c3d3aa46119eb7567fcdb05f2d445571",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/copyfromparse.c#L1465",
          "lines": "1465-1500"
        },
        {
          "id": "src.path.csv",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/copyfromparse.c",
          "sha256": "bc42754023579cd782a3cb3f144ad2c2c3d3aa46119eb7567fcdb05f2d445571",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/copyfromparse.c#L1818",
          "lines": "1818-1922"
        },
        {
          "id": "src.path.binary-field",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/copyfromparse.c",
          "sha256": "bc42754023579cd782a3cb3f144ad2c2c3d3aa46119eb7567fcdb05f2d445571",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/copyfromparse.c#L2012",
          "lines": "2012-2042"
        },
        {
          "id": "src.path.protocol-flags",
          "kind": "upstream_source",
          "source_role": "protocol_flow",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/tcop/postgres.c",
          "sha256": "9fb62275b1badf94d01ab351337b60410cd9b3ab1fe63fa9f23d6d2185a21061",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/tcop/postgres.c#L416-L445",
          "lines": "416-445"
        },
        {
          "id": "doc.protocol.copy",
          "kind": "upstream_source",
          "source_role": "official_documentation",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "doc/src/sgml/protocol.sgml",
          "sha256": "745339e07ebbc2bb67d98b258e25772ada644ef26011e3cd6b3fcbb435235f89",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/protocol.sgml#L1287-L1318",
          "lines": "1287-1318",
          "docs_url": "https://www.postgresql.org/docs/18/protocol.html"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "22P04 is bad_copy_file_format in SQLSTATE Class 22.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read fixed definition."
        },
        {
          "id": "headers-and-fields",
          "statement": "The fixed COPY parser uses 22P04 for binary signature/flags/extension length, text or CSV header field counts and names, extra or missing fields, and binary row/field framing.",
          "sources": [
            "src.path.binary-header",
            "src.path.text-header",
            "src.path.text-row",
            "src.path.binary-row",
            "src.path.binary-field"
          ],
          "method": "Read the complete header, row, and field guards."
        },
        {
          "id": "csv-and-line-framing",
          "statement": "Text and CSV line framing errors, end-of-copy marker placement, and unterminated quoted fields use 22P04; CSV quoting and text escape rules choose different primary/hint variants.",
          "sources": [
            "src.path.line-framing",
            "src.path.copy-marker",
            "src.path.csv"
          ],
          "method": "Read the complete line and CSV parsers."
        },
        {
          "id": "on-error-boundary",
          "statement": "ON_ERROR IGNORE is applied around safe text/CSV type-input conversion failures and emits a skip notice; it does not turn COPY header, row framing, CSV quoting, or binary field structure errors into skippable rows.",
          "sources": [
            "src.path.on-error",
            "src.path.csv",
            "src.path.binary-row"
          ],
          "method": "Read InputFunctionCallSafe handling separately from structural parser errors.",
          "limits": "This is source-backed; no ON_ERROR runtime was executed."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 22P04 from 7.4; that boundary does not prove exact implementation introduction.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue boundary."
        },
        {
          "id": "copy-protocol",
          "statement": "Frontend COPY-in errors follow the protocol that started COPY: extended-query COPY discards frontend messages until Sync and then sends ReadyForQuery, while simple Query COPY discards the rest of the query and sends ReadyForQuery without Sync. The frontend loop marks extended messages for skip-until-Sync recovery, and ReadyForQuery reports status rather than replacing transaction recovery.",
          "sources": [
            "src.path.protocol-flags",
            "doc.protocol.copy"
          ],
          "method": "Read the frontend message flags and the fixed COPY-in protocol documentation."
        }
      ],
      "messages": [
        {
          "id": "message.signature",
          "sqlstate": "22P04",
          "primary_template": "COPY file signature not recognized",
          "severity_source": "ERROR",
          "sources": [
            "src.path.binary-header"
          ]
        },
        {
          "id": "message.header-flags",
          "sqlstate": "22P04",
          "primary_template": "invalid COPY file header (missing flags)",
          "severity_source": "ERROR",
          "sources": [
            "src.path.binary-header"
          ]
        },
        {
          "id": "message.header-critical",
          "sqlstate": "22P04",
          "primary_template": "unrecognized critical flags in COPY file header",
          "severity_source": "ERROR",
          "sources": [
            "src.path.binary-header"
          ]
        },
        {
          "id": "message.header-length",
          "sqlstate": "22P04",
          "primary_template": "invalid COPY file header (missing length)",
          "severity_source": "ERROR",
          "sources": [
            "src.path.binary-header"
          ]
        },
        {
          "id": "message.header-wrong-length",
          "sqlstate": "22P04",
          "primary_template": "invalid COPY file header (wrong length)",
          "severity_source": "ERROR",
          "sources": [
            "src.path.binary-header"
          ]
        },
        {
          "id": "message.header-fields",
          "sqlstate": "22P04",
          "primary_template": "wrong number of fields in header line: got %d, expected %d",
          "severity_source": "ERROR",
          "sources": [
            "src.path.text-header"
          ]
        },
        {
          "id": "message.header-name",
          "sqlstate": "22P04",
          "primary_template": "column name mismatch in header line field %d: got \"%s\", expected \"%s\"",
          "severity_source": "ERROR",
          "sources": [
            "src.path.text-header"
          ]
        },
        {
          "id": "message.extra",
          "sqlstate": "22P04",
          "primary_template": "extra data after last expected column",
          "severity_source": "ERROR",
          "sources": [
            "src.path.text-row"
          ]
        },
        {
          "id": "message.missing",
          "sqlstate": "22P04",
          "primary_template": "missing data for column \"%s\"",
          "severity_source": "ERROR",
          "sources": [
            "src.path.text-row"
          ]
        },
        {
          "id": "message.row-count",
          "sqlstate": "22P04",
          "primary_template": "row field count is %d, expected %d",
          "severity_source": "ERROR",
          "sources": [
            "src.path.binary-row"
          ]
        },
        {
          "id": "message.field-size",
          "sqlstate": "22P04",
          "primary_template": "invalid field size",
          "severity_source": "ERROR",
          "sources": [
            "src.path.binary-field"
          ]
        },
        {
          "id": "message.eof",
          "sqlstate": "22P04",
          "primary_template": "unexpected EOF in COPY data",
          "severity_source": "ERROR",
          "sources": [
            "src.path.binary-field"
          ]
        },
        {
          "id": "message.csv-unterminated",
          "sqlstate": "22P04",
          "primary_template": "unterminated CSV quoted field",
          "severity_source": "ERROR",
          "sources": [
            "src.path.csv"
          ]
        },
        {
          "id": "message.literal-cr",
          "sqlstate": "22P04",
          "primary_template": "literal carriage return found in data",
          "severity_source": "ERROR",
          "sources": [
            "src.path.line-framing"
          ],
          "hint_template": "Use \"\\r\" to represent carriage return."
        },
        {
          "id": "message.csv-cr",
          "sqlstate": "22P04",
          "primary_template": "unquoted carriage return found in data",
          "severity_source": "ERROR",
          "sources": [
            "src.path.line-framing"
          ],
          "hint_template": "Use quoted CSV field to represent carriage return."
        },
        {
          "id": "message.literal-newline",
          "sqlstate": "22P04",
          "primary_template": "literal newline found in data",
          "severity_source": "ERROR",
          "sources": [
            "src.path.line-framing"
          ],
          "hint_template": "Use \"\\n\" to represent newline."
        },
        {
          "id": "message.csv-newline",
          "sqlstate": "22P04",
          "primary_template": "unquoted newline found in data",
          "severity_source": "ERROR",
          "sources": [
            "src.path.line-framing"
          ],
          "hint_template": "Use quoted CSV field to represent newline."
        },
        {
          "id": "message.marker-alone",
          "sqlstate": "22P04",
          "primary_template": "end-of-copy marker is not alone on its line",
          "severity_source": "ERROR",
          "sources": [
            "src.path.copy-marker"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "headers-and-fields",
            "csv-and-line-framing",
            "on-error-boundary",
            "copy-protocol"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "headers-and-fields",
            "csv-and-line-framing",
            "on-error-boundary",
            "copy-protocol"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "22P05",
      "condition_name": "untranslatable_character",
      "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#L209",
          "lines": "209"
        },
        {
          "id": "src.path.report",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/mb/mbutils.c",
          "sha256": "2c034d792a3fbc402d673d6e08bd6a2198651bfd3c057176d4098f7e4a215dfb",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/mb/mbutils.c#L1862",
          "lines": "1862-1902"
        },
        {
          "id": "src.path.convert",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/mb/conv.c",
          "sha256": "75d962d1178bbe5dd7781b6b65b1c1135a391ece21042b249876560103933e27",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/mb/conv.c#L674",
          "lines": "674-684"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "22P05 is untranslatable_character in SQLSTATE Class 22.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read fixed definition."
        },
        {
          "id": "conversion-path",
          "statement": "report_untranslatable_char computes source multibyte character bytes and reports source and destination encoding names when conversion has no equivalent destination character.",
          "sources": [
            "src.path.report"
          ],
          "method": "Read the complete reporting function."
        },
        {
          "id": "invalid-source-boundary",
          "statement": "The conversion loop calls report_untranslatable_char for a valid source character with no destination mapping, while malformed remaining UTF-8 bytes fall through to report_invalid_encoding and 22021.",
          "sources": [
            "src.path.convert",
            "src.path.report"
          ],
          "method": "Read the conversion failure and invalid-input branches.",
          "limits": "The cited loop is representative; other conversion procedures call the same reporting helper."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 22P05 from 7.4; that boundary does not prove exact implementation introduction.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue boundary."
        }
      ],
      "messages": [
        {
          "id": "message.convert",
          "sqlstate": "22P05",
          "primary_template": "character with byte sequence %s in encoding \"%s\" has no equivalent in encoding \"%s\"",
          "severity_source": "ERROR",
          "sources": [
            "src.path.report"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "conversion-path",
            "invalid-source-boundary"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "conversion-path",
            "invalid-source-boundary"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "22P06",
      "condition_name": "nonstandard_use_of_escape_character",
      "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#L183",
          "lines": "183"
        },
        {
          "id": "src.path.guc",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/parser/scan.l",
          "sha256": "bf453f1ae3c22b84fea6f8e8bed4fda476b7cfa49b234efbf92ca228234d0293",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/parser/scan.l#L62",
          "lines": "62-70"
        },
        {
          "id": "src.path.literal-mode",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/parser/scan.l",
          "sha256": "bf453f1ae3c22b84fea6f8e8bed4fda476b7cfa49b234efbf92ca228234d0293",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/parser/scan.l#L545-L560",
          "lines": "545-560"
        },
        {
          "id": "src.path.error-guard",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/parser/scan.l",
          "sha256": "bf453f1ae3c22b84fea6f8e8bed4fda476b7cfa49b234efbf92ca228234d0293",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/parser/scan.l#L706",
          "lines": "706-720"
        },
        {
          "id": "src.path.warning",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/parser/scan.l",
          "sha256": "bf453f1ae3c22b84fea6f8e8bed4fda476b7cfa49b234efbf92ca228234d0293",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/parser/scan.l#L1423",
          "lines": "1423-1448"
        },
        {
          "id": "src.path.escape-warning",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/parser/scan.l",
          "sha256": "bf453f1ae3c22b84fea6f8e8bed4fda476b7cfa49b234efbf92ca228234d0293",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/parser/scan.l#L1450",
          "lines": "1450-1460"
        },
        {
          "id": "src.path.scanner-copy",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/parser/scan.l",
          "sha256": "bf453f1ae3c22b84fea6f8e8bed4fda476b7cfa49b234efbf92ca228234d0293",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/parser/scan.l#L1262",
          "lines": "1262-1268"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "22P06 is nonstandard_use_of_escape_character in SQLSTATE Class 22.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read fixed definition."
        },
        {
          "id": "error-guard",
          "statement": "For an escape followed by a single quote, the scanner emits ERROR 22P06 when backslash_quote is off, or when safe-encoding mode is used with a client-only encoding. The primary and hint advise doubled quotes.",
          "sources": [
            "src.path.error-guard",
            "src.path.scanner-copy"
          ],
          "method": "Read the complete xe escape rule and scanner setting copy."
        },
        {
          "id": "warning-guards",
          "statement": "For ordinary non-E strings the scanner enters xe only when standard_conforming_strings is off and initializes warn_on_first_escape for warning checks. Explicit E strings enter xe with warn_on_first_escape false, so they avoid this legacy first-escape WARNING while remaining subject to the backslash_quote ERROR guard. With escape_string_warning enabled on the warning path, the scanner emits one WARNING per string for backslash-quote, backslash-backslash, or another escape.",
          "sources": [
            "src.path.literal-mode",
            "src.path.warning",
            "src.path.escape-warning"
          ],
          "method": "Read ordinary and explicit-E literal-mode selection and all three warning branches."
        },
        {
          "id": "severity-boundary",
          "statement": "The ERROR rejects the current statement; WARNING is a warning diagnostic and does not by itself abort the statement or explicit transaction.",
          "sources": [
            "src.path.error-guard",
            "src.path.warning",
            "src.path.escape-warning"
          ],
          "method": "Read ereport severity at each branch.",
          "limits": "No locale runtime was executed."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 22P06 from 8.1.0; that boundary does not prove exact implementation introduction.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue boundary."
        }
      ],
      "messages": [
        {
          "id": "message.error",
          "sqlstate": "22P06",
          "primary_template": "unsafe use of \\' in a string literal",
          "severity_source": "ERROR",
          "sources": [
            "src.path.error-guard"
          ],
          "hint_template": "Use '' to write quotes in strings. \\' is insecure in client-only encodings."
        },
        {
          "id": "message.quote-warning",
          "sqlstate": "22P06",
          "primary_template": "nonstandard use of \\' in a string literal",
          "severity_source": "WARNING",
          "sources": [
            "src.path.warning"
          ],
          "hint_template": "Use '' to write quotes in strings, or use the escape string syntax (E'...')."
        },
        {
          "id": "message.backslash-warning",
          "sqlstate": "22P06",
          "primary_template": "nonstandard use of \\\\ in a string literal",
          "severity_source": "WARNING",
          "sources": [
            "src.path.warning"
          ],
          "hint_template": "Use the escape string syntax for backslashes, e.g., E'\\\\'."
        },
        {
          "id": "message.escape-warning",
          "sqlstate": "22P06",
          "primary_template": "nonstandard use of escape in a string literal",
          "severity_source": "WARNING",
          "sources": [
            "src.path.escape-warning"
          ],
          "hint_template": "Use the escape string syntax for escapes, e.g., E'\\r\\n'."
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "error-guard",
            "warning-guards",
            "severity-boundary"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "error-guard",
            "warning-guards",
            "severity-boundary"
          ]
        }
      ],
      "runtime": []
    },
    {
      "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": []
    },
    {
      "sqlstate": "23001",
      "condition_name": "restrict_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"
        },
        {
          "id": "src.ri_triggers.18.6",
          "kind": "upstream_source",
          "source_role": "source_path",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/ri_triggers.c",
          "sha256": "a3fed49fbda88fe0fe5bcf35eb019fced28596ae4046233f2acb2eb9f90ab1da",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/ri_triggers.c#L2785-L2797"
        },
        {
          "id": "doc.ddl-constraints.18.6",
          "kind": "upstream_source",
          "source_role": "official_documentation",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "doc/src/sgml/ddl.sgml",
          "sha256": "ce1919d9236f2e71672660e1a347146472e966e4d19b77fde5ae345dd1db6ec7",
          "docs_url": "https://www.postgresql.org/docs/18/ddl-constraints.html#DDL-CONSTRAINTS-FK",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ddl.sgml"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "23001 is restrict_violation, a specific Class 23 condition.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the condition definition and macro.",
          "limits": "The code is narrower than the general foreign-key violation code 23503."
        },
        {
          "id": "restrict-path",
          "statement": "The RI trigger reports 23001 when an immediate ON DELETE or ON UPDATE RESTRICT action finds a referencing row.",
          "sources": [
            "src.ri_triggers.18.6",
            "src.calls.REL_18_6",
            "doc.ddl-constraints.18.6"
          ],
          "method": "Trace the fixed ri_ReportViolation call and compare the documented action timing.",
          "limits": "The exact DETAIL depends on privileges and key values; do not treat one rendered DETAIL as a static format string."
        },
        {
          "id": "no-action-boundary",
          "statement": "RESTRICT is checked immediately and is not deferrable; NO ACTION can be deferred when the constraint is declared DEFERRABLE, and PostgreSQL 10 uses the general 23503 path for the tested RESTRICT delete.",
          "sources": [
            "src.ri_triggers.18.6",
            "doc.ddl-constraints.18.6",
            "runtime.23001-batch1-pg10b-20260909.pg10"
          ],
          "method": "Read action semantics and the two selected runs.",
          "limits": "The PG10 result is a version/path boundary, not evidence that the user operation succeeded."
        },
        {
          "id": "runtime",
          "statement": "The selected PG18 run returned 23001, entered INERROR, recovered after ROLLBACK, and committed deletion after removing the dependent row; PG10 returned 23503 for the same mechanism.",
          "sources": [
            "runtime.23001-batch1-latest2-20260909.latest",
            "runtime.23001-batch1-pg10b-20260909.pg10"
          ],
          "method": "Compare summaries and raw diagnostics with the shared registry.",
          "limits": "Only the PG18 result is an observed runtime for code 23001; the PG10 case is explicitly not_applicable for that code."
        },
        {
          "id": "runtime.pg17-boundary",
          "statement": "On the fixed PG17.11 boundary case, the same referenced-parent ON DELETE RESTRICT operation returned the general foreign_key_violation 23503 rather than dedicated 23001; the failed transaction moved from INERROR to IDLE after ROLLBACK and cleanup assertions passed.",
          "sources": [
            "restrict-path",
            "runtime.23001-boundary-pg17-final-20260909.pg17"
          ],
          "method": "Read the PG17 boundary summary for the exact primary/detail, SQLSTATE, transaction statuses, and final counts.",
          "limits": "This is one PG17.11 comparison point and is not a universal claim for every PostgreSQL 11–17 minor release. It is not an observed 23001 runtime."
        }
      ],
      "messages": [
        {
          "id": "restrict",
          "sqlstate": "23001",
          "primary_template": "update or delete on table \"%s\" violates RESTRICT setting of foreign key constraint \"%s\" on table \"%s\"",
          "severity_source": "ERROR",
          "sources": [
            "src.ri_triggers.18.6"
          ],
          "limits": "The privilege-aware branch can instead emit the source detail template without key values.",
          "detail_template": "Key (%s)=(%s) is referenced from table \"%s\"."
        }
      ],
      "usage_evidence": [
        {
          "scope": "pg18-restrict-runtime",
          "status": "observed_runtime",
          "evidence_ids": [
            "runtime",
            "runtime.23001-batch1-latest2-20260909.latest"
          ]
        },
        {
          "scope": "pg10-version-boundary",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "no-action-boundary",
            "runtime.23001-batch1-pg10b-20260909.pg10"
          ]
        },
        {
          "scope": "identity-and-source",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "identity",
            "restrict-path"
          ]
        },
        {
          "scope": "pg17-version-boundary",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "runtime.pg17-boundary",
            "runtime.23001-boundary-pg17-final-20260909.pg17"
          ],
          "notes": "The PG17.11 case confirms the same RESTRICT operation reports 23503, preserves the INERROR-to-IDLE recovery boundary, and is not counted as 23001 coverage."
        }
      ],
      "runtime": [
        {
          "id": "runtime.23001-batch1-latest2-20260909.latest",
          "run_id": "23001-batch1-latest2-20260909",
          "target": "latest",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "status": "passed",
          "cases": [
            "restrict_delete_referenced_parent"
          ],
          "summary_sha256": "e38c907a737001707b5409de058e959f9da3711d7ab2c72c318d37f043351fc1",
          "raw_sha256": "4f5c32e84c543203a9ebb757c2a3567b2441bd2f7aaf6f0ec0daa3d187474ea9",
          "snippet_registry": {
            "sha256": "6086c1ce982afa5438bbcd29b86ec4cd0cbe0c76fa6152c1eb4a330a7706d5c8"
          },
          "case_manifest": {
            "sha256": "eca00a2f8f981d7f1ccf77e661b52690631bfedc399003f73ccc43de6a06a1bc"
          },
          "observed": {
            "sqlstate": "23001",
            "primary": "update or delete on table \"parents\" violates RESTRICT setting of foreign key constraint \"children_parent_id_fkey\" on table \"children\"",
            "detail": "Key (id)=(1) is referenced from table \"children\".",
            "after_error": "INERROR",
            "after_rollback": "IDLE",
            "final_counts": [
              0,
              0
            ]
          }
        },
        {
          "id": "runtime.23001-batch1-pg10b-20260909.pg10",
          "run_id": "23001-batch1-pg10b-20260909",
          "target": "pg10",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "status": "not_applicable",
          "cases": [
            "restrict_delete_referenced_parent"
          ],
          "summary_sha256": "ab114f4849fce773011f9069f644fd10d73abb66329ae931160fc8ecea295026",
          "raw_sha256": "92928af8522d2224aaaf21e8eb7a2d974e433a80d6f2b1bf33296588738d21b7",
          "snippet_registry": {
            "sha256": "6086c1ce982afa5438bbcd29b86ec4cd0cbe0c76fa6152c1eb4a330a7706d5c8"
          },
          "case_manifest": {
            "sha256": "eca00a2f8f981d7f1ccf77e661b52690631bfedc399003f73ccc43de6a06a1bc"
          },
          "observed": {
            "sqlstate": "23503",
            "primary": "update or delete on table \"parents\" violates foreign key constraint \"children_parent_id_fkey\" on table \"children\"",
            "detail": "Key (id)=(1) is still referenced from table \"children\".",
            "after_error": "INERROR",
            "after_rollback": "IDLE",
            "final_counts": [
              0,
              0
            ]
          },
          "reason": "PostgreSQL 10 reports this RESTRICT delete through the general foreign-key violation path 23503; the dedicated 23001 path is observed on PostgreSQL 18."
        },
        {
          "id": "runtime.23001-boundary-pg17-final-20260909.pg17",
          "run_id": "23001-boundary-pg17-final-20260909",
          "target": "pg17",
          "server_version": "17.11 (Debian 17.11-1.pgdg13+2)",
          "server_version_num": 170011,
          "status": "not_applicable",
          "case_status": "not_applicable",
          "target_status": "passed",
          "cases": [
            "restrict_delete_referenced_parent"
          ],
          "summary_sha256": "54174fb5450b9bade0e1788e288be5bf24792f161e71e9299b7095e1f40333e6",
          "raw_sha256": "2929c03723d90f76192e3d3ffc2f4f5a8a643f9a5f0eb898f7245f3cf6439c87",
          "snippet_registry": {
            "sha256": "6086c1ce982afa5438bbcd29b86ec4cd0cbe0c76fa6152c1eb4a330a7706d5c8"
          },
          "case_manifest": {
            "sha256": "eca00a2f8f981d7f1ccf77e661b52690631bfedc399003f73ccc43de6a06a1bc"
          },
          "observed": {
            "expected_sqlstate": "23503",
            "sqlstate": "23503",
            "severity": "ERROR",
            "primary": "update or delete on table \"parents\" violates foreign key constraint \"children_parent_id_fkey\" on table \"children\"",
            "detail": "Key (id)=(1) is still referenced from table \"children\".",
            "constraint_name": "children_parent_id_fkey",
            "after_error": "INERROR",
            "after_rollback": "IDLE",
            "final_counts": [
              0,
              0
            ],
            "natural_23001_observed": false
          },
          "selection_status": "selected_boundary_comparison",
          "reason": "The bounded PG17.11 RESTRICT delete uses the general 23503 path; the dedicated 23001 path is not applicable on this target."
        }
      ]
    },
    {
      "sqlstate": "23502",
      "condition_name": "not_null_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"
        },
        {
          "id": "src.execMain.18.6",
          "kind": "upstream_source",
          "source_role": "source_path",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/executor/execMain.c",
          "sha256": "33b97337fa23a649c5e7a092e1bd405a54e8503529236c62c9d5bb93a1774a8d",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/executor/execMain.c#L2213-L2219"
        },
        {
          "id": "src.tablecmds.18.6",
          "kind": "upstream_source",
          "source_role": "source_path",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/tablecmds.c",
          "sha256": "422dc8e833df4940755973c757e338295822ba3e4c7266c40669f49f96eb15a9",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/tablecmds.c#L6465-L6490"
        },
        {
          "id": "doc.ddl-constraints.18.6",
          "kind": "upstream_source",
          "source_role": "official_documentation",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "doc/src/sgml/ddl.sgml",
          "sha256": "ce1919d9236f2e71672660e1a347146472e966e4d19b77fde5ae345dd1db6ec7",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ddl.sgml",
          "docs_url": "https://www.postgresql.org/docs/18/ddl-constraints.html"
        },
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "src.typecmds.18.6",
          "kind": "upstream_source",
          "path": "src/backend/commands/typecmds.c",
          "sha256": "60d1e9754646e100f6b74aa367ad8c2c52386c400df721707423d329209c47eb",
          "source_role": "source_path",
          "tag": "REL_18_6",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/typecmds.c#L3199-L3204"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "23502 is not_null_violation in Class 23.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes row.",
          "limits": "The code says that a NOT NULL rule failed; it does not by itself distinguish DML from schema validation."
        },
        {
          "id": "dml-path",
          "statement": "The executor reports 23502 when a tuple has a NULL value for a NOT NULL column, with column/relation fields and an optional failing-row DETAIL.",
          "sources": [
            "src.execMain.18.6",
            "src.calls.REL_18_6"
          ],
          "method": "Trace ReportNotNullViolationError and its errtablecol metadata.",
          "limits": "The DETAIL can be omitted or vary with row-description settings; use structured column/table diagnostics."
        },
        {
          "id": "schema-path",
          "statement": "ALTER TABLE validation and domain NOT NULL validation use separate 23502 source templates; domain CHECK validation is a 23514 path.",
          "sources": [
            "src.tablecmds.18.6",
            "src.calls.REL_18_6",
            "src.typecmds.18.6"
          ],
          "method": "Compare the tablecmds and executor report groups.",
          "limits": "A repair must satisfy the actual schema rule; adding a default or relaxing NOT NULL is a migration decision, not a generic retry."
        },
        {
          "id": "runtime",
          "statement": "The selected insert case returned 23502 on PG18.6 and PG10.21, identified label/items, stayed IDLE in autocommit mode, and then inserted a valid row.",
          "sources": [
            "runtime.23502-batch1-latest-20260909.latest",
            "runtime.23502-batch1-pg10-20260909.pg10"
          ],
          "method": "Read the selected summaries and raw diagnostics.",
          "limits": "The case covers one INSERT path and not ALTER TABLE, domains, partitions, or trigger-generated NULLs."
        }
      ],
      "messages": [
        {
          "id": "insert",
          "sqlstate": "23502",
          "primary_template": "null value in column \"%s\" of relation \"%s\" violates not-null constraint",
          "severity_source": "ERROR",
          "sources": [
            "src.execMain.18.6"
          ],
          "limits": "The %s substitutions are the column, relation, and optional row description.",
          "detail_template": "Failing row contains %s."
        },
        {
          "id": "schema-not-null-validation",
          "limits": "This validation template reports existing rows while a relation schema is being validated.",
          "primary_template": "column \"%s\" of relation \"%s\" contains null values",
          "severity_source": "ERROR",
          "sources": [
            "src.tablecmds.18.6"
          ],
          "sqlstate": "23502"
        },
        {
          "id": "domain-not-null-validation",
          "limits": "This template is used while validating a domain NOT NULL rule against columns that use the domain.",
          "primary_template": "column \"%s\" of table \"%s\" contains null values",
          "severity_source": "ERROR",
          "sources": [
            "src.typecmds.18.6"
          ],
          "sqlstate": "23502"
        }
      ],
      "usage_evidence": [
        {
          "scope": "dml-runtime",
          "status": "observed_runtime",
          "evidence_ids": [
            "runtime",
            "runtime.23502-batch1-latest-20260909.latest",
            "runtime.23502-batch1-pg10-20260909.pg10"
          ]
        },
        {
          "scope": "source-paths",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "identity",
            "dml-path",
            "schema-path"
          ]
        }
      ],
      "runtime": [
        {
          "id": "runtime.23502-batch1-latest-20260909.latest",
          "run_id": "23502-batch1-latest-20260909",
          "target": "latest",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "status": "passed",
          "cases": [
            "not_null_insert"
          ],
          "summary_sha256": "a224ad3252f2d40d8f1685a490fe4efe6cd8deb95515b5533c9002323387576a",
          "raw_sha256": "52cde4d2906d14030040c5034ac22d1331109e60ddc32bc7331ab11666986787",
          "snippet_registry": {
            "sha256": "f701e32a0e9214d6c88deabcda99981c288cae0f176d1dcaf383863c3942f8e0"
          },
          "case_manifest": {
            "sha256": "2a097af0bb10072da2300cf9a5626d13027ed5773bad917fd333b489f4b4f109"
          },
          "observed": {
            "sqlstate": "23502",
            "primary": "null value in column \"label\" of relation \"items\" violates not-null constraint",
            "detail": "Failing row contains (2, null).",
            "column": "label",
            "table": "items",
            "status_after_error": "IDLE",
            "rows": [
              [
                1,
                "seed"
              ],
              [
                2,
                "valid"
              ]
            ]
          }
        },
        {
          "id": "runtime.23502-batch1-pg10-20260909.pg10",
          "run_id": "23502-batch1-pg10-20260909",
          "target": "pg10",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "status": "passed",
          "cases": [
            "not_null_insert"
          ],
          "summary_sha256": "1449b9682de2708ea83657d8356bf28b716f5a6f27c52f26e12b2eb9e63a6bbc",
          "raw_sha256": "c1c8501748a78a9e9553ff3c7887b9f60c7a78973efefc6cc952374ec19f007c",
          "snippet_registry": {
            "sha256": "f701e32a0e9214d6c88deabcda99981c288cae0f176d1dcaf383863c3942f8e0"
          },
          "case_manifest": {
            "sha256": "2a097af0bb10072da2300cf9a5626d13027ed5773bad917fd333b489f4b4f109"
          },
          "observed": {
            "sqlstate": "23502",
            "primary": "null value in column \"label\" violates not-null constraint",
            "detail": "Failing row contains (2, null).",
            "column": "label",
            "table": "items",
            "status_after_error": "IDLE",
            "rows": [
              [
                1,
                "seed"
              ],
              [
                2,
                "valid"
              ]
            ]
          }
        }
      ]
    },
    {
      "sqlstate": "23503",
      "condition_name": "foreign_key_violation",
      "sources": [
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "src.errcodes.18.6",
          "location": "lines 235-241",
          "path": "src/backend/utils/errcodes.txt",
          "sha256": "6e8de346643ba84aa3c9c6a73360acfc7b2dfb89162c06c08ce9bf5bcd5bbcba",
          "tag": "REL_18_6",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/errcodes.txt"
        },
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "src.ri-triggers.18.6",
          "location": "lines 2761-2809",
          "path": "src/backend/utils/adt/ri_triggers.c",
          "sha256": "a3fed49fbda88fe0fe5bcf35eb019fced28596ae4046233f2acb2eb9f90ab1da",
          "tag": "REL_18_6",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/ri_triggers.c#L2761-L2809"
        },
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "doc.ddl.18.6",
          "location": "foreign-key constraints",
          "path": "doc/src/sgml/ddl.sgml",
          "sha256": "ce1919d9236f2e71672660e1a347146472e966e4d19b77fde5ae345dd1db6ec7",
          "tag": "REL_18_6",
          "url": "https://www.postgresql.org/docs/18/ddl-constraints.html#DDL-CONSTRAINTS-FK"
        },
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "doc.protocol.18",
          "location": "ErrorResponse fields",
          "path": "doc/src/sgml/protocol.sgml",
          "sha256": "745339e07ebbc2bb67d98b258e25772ada644ef26011e3cd6b3fcbb435235f89",
          "tag": "REL_18_6",
          "url": "https://www.postgresql.org/docs/18/protocol-error-fields.html"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "limits": "This establishes directory identity; it does not enumerate every foreign-key trigger path.",
          "method": "Read the frozen errcodes.txt class and condition rows.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "statement": "23503 is the foreign_key_violation condition in Class 23 integrity_constraint_violation."
        },
        {
          "id": "runtime.ri-report",
          "limits": "DETAIL is conditional on diagnostic visibility and the operation; parent deletion and deferred checks use different message shapes or timing.",
          "method": "Trace ri_ReportViolation in the fixed source and compare the protocol diagnostics from fk_insert_missing_parent.",
          "sources": [
            "src.ri-triggers.18.6",
            "doc.protocol.18"
          ],
          "statement": "The ordinary missing-parent path reports insert or update on table \"%s\" violates foreign key constraint \"%s\", conditionally adds Key (%s)=(%s) is not present in table \"%s\"., and attaches the child table and constraint."
        },
        {
          "id": "mechanism.parent-actions",
          "limits": "This is a source boundary for parent-key operations, not runtime evidence for the missing-parent child insert case. SQLSTATE and primary text depend on the action branch and release.",
          "method": "Trace the fixed ri_ReportViolation branches for ordinary parent references and is_restrict, then compare the foreign-key action documentation.",
          "sources": [
            "src.ri-triggers.18.6",
            "doc.ddl.18.6"
          ],
          "statement": "NO ACTION parent checks use the ordinary foreign-key violation branch and can be deferred when the constraint is deferrable; the fixed PostgreSQL 18.6 RESTRICT branch uses ERRCODE_RESTRICT_VIOLATION (23001) with a RESTRICT-specific message and cannot be deferred."
        },
        {
          "id": "runtime.transaction-recovery",
          "limits": "The representative case uses an immediate foreign key and does not establish deferred timing, cascading actions, or concurrent parent creation.",
          "method": "Run the missing-parent case on isolated PostgreSQL 18.6 and 10.21 targets and assert status transitions and the post-commit row.",
          "sources": [
            "doc.ddl.18.6"
          ],
          "statement": "A failed child write leaves an explicit transaction INERROR until rollback; a valid parent and child can then be committed."
        }
      ],
      "messages": [
        {
          "detail_template": "Key (%s)=(%s) is not present in table \"%s\".",
          "id": "message.ri.insert-update",
          "limits": "The detail is conditional; parent delete/update paths use different primary and detail templates.",
          "primary_template": "insert or update on table \"%s\" violates foreign key constraint \"%s\"",
          "severity_source": "E",
          "sources": [
            "src.ri-triggers.18.6"
          ],
          "sqlstate": "23503"
        },
        {
          "id": "message.ri.parent",
          "limits": "This is the ordinary parent-key update/delete branch; the fixed RESTRICT branch uses SQLSTATE 23001 and different wording.",
          "primary_template": "update or delete on table \"%s\" violates foreign key constraint \"%s\" on table \"%s\"",
          "detail_template": "Key (%s)=(%s) is still referenced from table \"%s\".",
          "severity_source": "explicit ERROR with ERRCODE_FOREIGN_KEY_VIOLATION",
          "sources": [
            "src.ri-triggers.18.6"
          ],
          "sqlstate": "23503"
        }
      ],
      "usage_evidence": [
        {
          "evidence_ids": [
            "runtime.23503-final-20260909.latest",
            "runtime.23503-final-20260909.pg10",
            "runtime.23503-explicit-begin-final-20260909.latest",
            "runtime.23503-explicit-begin-final-20260909.pg10",
            "runtime.23503-registry-final-20260909.latest",
            "runtime.23503-registry-final-20260909.pg10",
            "runtime.23503-fk-manual-final-20260909.latest",
            "runtime.23503-fk-manual-final-20260909.pg10"
          ],
          "notes": "The selected manual-boundary rerun keeps the page's visible repair transaction boundary identical to the registry sequence and records autocommit=True on both targets.",
          "scope": "Missing-parent insert, transaction recovery, diagnostics, and post-commit repair",
          "status": "observed_runtime"
        },
        {
          "evidence_ids": [
            "identity.class-and-condition",
            "src.errcodes.18.6"
          ],
          "scope": "Foreign-key condition identity in the source directory",
          "status": "definition_only"
        },
        {
          "evidence_ids": [
            "runtime.ri-report",
            "mechanism.parent-actions",
            "message.ri.insert-update",
            "message.ri.parent",
            "src.ri-triggers.18.6",
            "doc.ddl.18.6",
            "doc.protocol.18"
          ],
          "scope": "Foreign-key child and parent action message branches",
          "status": "source_path_confirmed"
        }
      ],
      "runtime": [
        {
          "cases": [
            "fk_insert_missing_parent"
          ],
          "id": "runtime.23503-final-20260909.latest",
          "run_id": "23503-final-20260909",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "status": "passed",
          "target": "latest"
        },
        {
          "cases": [
            "fk_insert_missing_parent"
          ],
          "id": "runtime.23503-final-20260909.pg10",
          "image": "postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
          "run_id": "23503-final-20260909",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "status": "passed",
          "target": "pg10"
        },
        {
          "cases": [
            "fk_insert_missing_parent"
          ],
          "id": "runtime.23503-explicit-begin-final-20260909.latest",
          "limits": "This rerun proves the page's explicit BEGIN around the post-rollback repair; it does not test deferred or cascading foreign keys.",
          "observed": {
            "repair_transaction": "BEGIN; INSERT parent; INSERT child; COMMIT",
            "rows": [
              [
                1,
                99
              ]
            ],
            "sqlstate": "23503",
            "status_after_error": "INERROR",
            "status_after_rollback": "IDLE"
          },
          "raw_sha256": "448d0fb4e045829071281cbf3b41be2be070932288191012cc3b766a038f0f2d",
          "run_id": "23503-explicit-begin-final-20260909",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "status": "passed",
          "summary_sha256": "dcbbb3ede7e424622275a30b8e4ddee2e8e0dc71ea46a78aba1f9c40403626a0",
          "target": "latest"
        },
        {
          "cases": [
            "fk_insert_missing_parent"
          ],
          "id": "runtime.23503-explicit-begin-final-20260909.pg10",
          "image": "postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
          "limits": "This rerun proves the page's explicit BEGIN around the post-rollback repair; it does not test deferred or cascading foreign keys.",
          "observed": {
            "repair_transaction": "BEGIN; INSERT parent; INSERT child; COMMIT",
            "rows": [
              [
                1,
                99
              ]
            ],
            "sqlstate": "23503",
            "status_after_error": "INERROR",
            "status_after_rollback": "IDLE"
          },
          "raw_sha256": "0d3f8a56d5b50bb184ce791c5c88db1e1ddac4f43ba220829a773796c044f58e",
          "run_id": "23503-explicit-begin-final-20260909",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "status": "passed",
          "summary_sha256": "c92079153f22913d9a75ccf5dbbe19d4983c75f553572cdc10e755d3fc8b943e",
          "target": "pg10"
        },
        {
          "cases": [
            "fk_insert_missing_parent"
          ],
          "id": "runtime.23503-registry-final-20260909.latest",
          "observed": {
            "message_detail": "Key (parent_id)=(99) is not present in table \"parents\".",
            "message_primary": "insert or update on table \"children\" violates foreign key constraint \"children_parent_fk\"",
            "rows": [
              [
                1,
                99
              ]
            ],
            "source": "ri_triggers.c / ri_ReportViolation / line 2783",
            "sqlstate": "23503",
            "statuses": {
              "after_commit": "IDLE",
              "after_error": "INERROR",
              "after_rollback": "IDLE"
            }
          },
          "raw_sha256": "977b16fea3508fc6efef5a9d353500ae0036dfa28bab4e857eba86167a5b52af",
          "run_id": "23503-registry-final-20260909",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "snippet_registry": {
            "sha256": "63d0f78a47023e343cf8b38f4168021e68ccdd875bb64f35b5e42e68394779e3"
          },
          "status": "passed",
          "summary_sha256": "301bd9183ceb223bd5898315316ab5c666a89dc10c5b48333e54bcdafcab873a",
          "target": "latest"
        },
        {
          "cases": [
            "fk_insert_missing_parent"
          ],
          "id": "runtime.23503-registry-final-20260909.pg10",
          "image": "postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
          "observed": {
            "message_detail": "Key (parent_id)=(99) is not present in table \"parents\".",
            "message_primary": "insert or update on table \"children\" violates foreign key constraint \"children_parent_fk\"",
            "rows": [
              [
                1,
                99
              ]
            ],
            "source": "ri_triggers.c / ri_ReportViolation / line 3266",
            "sqlstate": "23503",
            "statuses": {
              "after_commit": "IDLE",
              "after_error": "INERROR",
              "after_rollback": "IDLE"
            }
          },
          "raw_sha256": "02bc2125919383ed4e9847d7cdf45e3ca235b325c5c36fa9d9e1984d27a45c5d",
          "run_id": "23503-registry-final-20260909",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "snippet_registry": {
            "sha256": "63d0f78a47023e343cf8b38f4168021e68ccdd875bb64f35b5e42e68394779e3"
          },
          "status": "passed",
          "summary_sha256": "0aba93166977cc979499f62acee75df0f0b86587e3b0309795da0de2476209de",
          "target": "pg10"
        },
        {
          "cases": [
            "fk_insert_missing_parent"
          ],
          "id": "runtime.23503-fk-manual-final-20260909.latest",
          "limits": "This run proves that the registry BEGIN/ROLLBACK/BEGIN/COMMIT sequence executes with autocommit=True; it covers the single-parent foreign-key case.",
          "observed": {
            "connection_autocommit": true,
            "diagnostic": {
              "message_detail": "Key (parent_id)=(99) is not present in table \"parents\".",
              "message_primary": "insert or update on table \"children\" violates foreign key constraint \"children_parent_fk\"",
              "sqlstate": "23503"
            },
            "rows": [
              [
                1,
                99
              ]
            ],
            "statuses": {
              "after_commit": "IDLE",
              "after_error": "INERROR",
              "after_rollback": "IDLE"
            },
            "transaction_control": [
              "BEGIN",
              "ROLLBACK",
              "BEGIN",
              "COMMIT"
            ]
          },
          "raw_sha256": "442dbfa57497ce15440689645d531f493890d35e8841308ade267514244b68e5",
          "run_id": "23503-fk-manual-final-20260909",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "snippet_registry": {
            "sha256": "63d0f78a47023e343cf8b38f4168021e68ccdd875bb64f35b5e42e68394779e3"
          },
          "status": "passed",
          "summary_sha256": "e3029aab946d6e097e1c741d918937583f4ae6c8f0af24e118667b50396bcddb",
          "target": "latest"
        },
        {
          "cases": [
            "fk_insert_missing_parent"
          ],
          "id": "runtime.23503-fk-manual-final-20260909.pg10",
          "image": "postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
          "limits": "This run proves that the registry BEGIN/ROLLBACK/BEGIN/COMMIT sequence executes with autocommit=True; it covers the single-parent foreign-key case.",
          "observed": {
            "connection_autocommit": true,
            "diagnostic": {
              "message_detail": "Key (parent_id)=(99) is not present in table \"parents\".",
              "message_primary": "insert or update on table \"children\" violates foreign key constraint \"children_parent_fk\"",
              "sqlstate": "23503"
            },
            "rows": [
              [
                1,
                99
              ]
            ],
            "statuses": {
              "after_commit": "IDLE",
              "after_error": "INERROR",
              "after_rollback": "IDLE"
            },
            "transaction_control": [
              "BEGIN",
              "ROLLBACK",
              "BEGIN",
              "COMMIT"
            ]
          },
          "raw_sha256": "05887d0f8e900ab9230ac677b112119303e6de9d2bde0da7f743e1649bd213be",
          "run_id": "23503-fk-manual-final-20260909",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "snippet_registry": {
            "sha256": "63d0f78a47023e343cf8b38f4168021e68ccdd875bb64f35b5e42e68394779e3"
          },
          "status": "passed",
          "summary_sha256": "433729dd2e043777d52910ceb7ca71c437a06d0a746b42385f5a7c5411893e68",
          "target": "pg10"
        }
      ]
    },
    {
      "sqlstate": "23505",
      "condition_name": "unique_violation",
      "sources": [
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "src.errcodes.18.6",
          "location": "lines 235-241",
          "path": "src/backend/utils/errcodes.txt",
          "sha256": "6e8de346643ba84aa3c9c6a73360acfc7b2dfb89162c06c08ce9bf5bcd5bbcba",
          "tag": "REL_18_6",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/errcodes.txt"
        },
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "src.nbtinsert.18.6",
          "location": "lines 640-674",
          "path": "src/backend/access/nbtree/nbtinsert.c",
          "sha256": "199671bec6b07b80100ea41632cef4b03a9525df75a2ede2b8fe155b637dcba7",
          "tag": "REL_18_6",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/nbtree/nbtinsert.c#L640-L674"
        },
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "src.genam.18.6",
          "location": "lines 155-275",
          "path": "src/backend/access/index/genam.c",
          "sha256": "11897b1d8b1ae1f4a1bef9a72e740da7aa83579abf84e4ca5ebacd6530874c28",
          "tag": "REL_18_6",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/index/genam.c#L155-L275"
        },
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "src.tuplesortvariants.18.6",
          "location": "lines 1670-1694",
          "path": "src/backend/utils/sort/tuplesortvariants.c",
          "sha256": "f160e11ec100be7e05db8abba7587e8fd0e092110d56f917d2d4dac0a58261ca",
          "tag": "REL_18_6",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/sort/tuplesortvariants.c#L1670-L1694"
        },
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "src.logical-conflict.18.6",
          "location": "lines 102-131, 168-180",
          "path": "src/backend/replication/logical/conflict.c",
          "sha256": "1dc6959872c84bc0d0b402ab48c4050dd961185574971633bd698eadc1a56347",
          "tag": "REL_18_6",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/replication/logical/conflict.c#L102-L180"
        },
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "doc.insert.18.6",
          "location": "lines 363-430, 564-577",
          "path": "doc/src/sgml/ref/insert.sgml",
          "sha256": "f93403779fb1d980cd5995a1e2741bbdae8404584407610f9aba33ec4724a39f",
          "tag": "REL_18_6",
          "url": "https://www.postgresql.org/docs/18/sql-insert.html"
        },
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "doc.create-index.18.6",
          "location": "lines 620-683",
          "path": "doc/src/sgml/ref/create_index.sgml",
          "sha256": "3698f11c6f447d127e4624a1a845dee4d5146b8337ddc6d895a7962e676717f8",
          "tag": "REL_18_6",
          "url": "https://www.postgresql.org/docs/18/sql-createindex.html"
        },
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "doc.protocol.18",
          "location": "ErrorResponse field reference",
          "path": "doc/src/sgml/protocol.sgml",
          "sha256": "2531c535a61c7d3bb15ea328aa249317a3d2cf069f5d0d945dce428af845ddfc",
          "tag": "PG18-docs",
          "url": "https://www.postgresql.org/docs/18/protocol-error-fields.html"
        },
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "doc.logging.18",
          "location": "CSV and JSON logging fields",
          "path": "doc/src/sgml/config.sgml",
          "sha256": "19c5d1126df83008f073ef52fcb45caf8ec511c6ac1ae231def833ea1711d0c9",
          "tag": "PG18-docs",
          "url": "https://www.postgresql.org/docs/18/runtime-config-logging.html"
        },
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "doc.mvcc.18",
          "location": "serialization and deadlock failure handling",
          "path": "doc/src/sgml/mvcc.sgml",
          "sha256": "4b7bf77ee0af4b86052330ff2421d567df3604b75fe7d4f522bec84fdea87340",
          "tag": "PG18-docs",
          "url": "https://www.postgresql.org/docs/18/mvcc-serialization-failure-handling.html"
        },
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "doc.plpgsql.18",
          "location": "EXCEPTION blocks and upsert example",
          "path": "doc/src/sgml/plpgsql.sgml",
          "sha256": "43d705adbded343336341fd3e34ea8940432e8a8211f737d36ba3041ad0a4a51",
          "tag": "PG18-docs",
          "url": "https://www.postgresql.org/docs/18/plpgsql-control-structures.html"
        },
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "doc.sequence.18",
          "location": "setval(regclass,bigint[,boolean])",
          "path": "doc/src/sgml/func.sgml",
          "sha256": "05d03f505dc3c3b4fb2b3a6e8ed3275c425306a8ff20dd9548e838c26bbb968a",
          "tag": "PG18-docs",
          "url": "https://www.postgresql.org/docs/18/functions-sequence.html"
        },
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "doc.transactions.18",
          "location": "savepoint and transaction recovery",
          "path": "doc/src/sgml/xact.sgml",
          "sha256": "b48fbe8bd02ce3d1181a350c88c8baa6e11c73edc90a936e77b180daef328c5c",
          "tag": "PG18-docs",
          "url": "https://www.postgresql.org/docs/18/tutorial-transactions.html"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "limits": "This establishes directory identity; it does not assert that every possible call site has been executed.",
          "method": "Read the frozen errcodes.txt row and section.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "statement": "23505 is the unique_violation condition in Class 23 integrity_constraint_violation."
        },
        {
          "id": "runtime.dml-template",
          "limits": "The key detail is conditional on permission/RLS and available key values.",
          "method": "Trace ereport and BuildIndexValueDescription in the fixed source snapshot; compare with dml_unique_conflict and diagnostic_visibility runs.",
          "sources": [
            "src.nbtinsert.18.6",
            "src.genam.18.6"
          ],
          "statement": "The nbtree unique-check path emits SQLSTATE 23505 with duplicate key value violates unique constraint and, when visible, Key ... already exists."
        },
        {
          "id": "runtime.protocol-fields",
          "limits": "Log formats can gain fields in later releases; constraint_name is not inferred as a standard CSV/JSON key from a protocol field. The earlier full run is retained as a historical audit record but its first-record log_fields selection is excluded from this claim.",
          "method": "Read the protocol field table and CSV/JSON logging field tables; inspect the records selected by the corrected log_fields run using backend PID, schema, table, constraint, message, and detail.",
          "sources": [
            "doc.protocol.18",
            "doc.logging.18"
          ],
          "statement": "schema_name, table_name, and constraint_name are ErrorResponse object fields, while standard CSV/JSON logs expose SQLSTATE, message, and detail under their logging schemas."
        },
        {
          "id": "runtime.index-build-template",
          "limits": "The invalid-state observation is limited to the duplicate scan failure in this run; other CIC failure stages require separate tests.",
          "method": "Read the index-build ereport and concurrent-build phases; inspect pg_class/pg_index after both real failures.",
          "sources": [
            "src.tuplesortvariants.18.6",
            "doc.create-index.18.6"
          ],
          "statement": "Unique index construction uses the separate could not create unique index template; a duplicate found in this CIC scan leaves an invalid index row, while this regular failed build leaves no row after rollback."
        },
        {
          "id": "runtime.logical-apply-sqlstate",
          "limits": "No publisher/subscriber topology was run in this batch, so this is source/documentation evidence rather than a runtime observation.",
          "method": "Read ReportApplyConflict and errcode_apply_conflict in the fixed source snapshot and compare the official conflict documentation.",
          "sources": [
            "src.logical-conflict.18.6"
          ],
          "statement": "PG18 logical apply classifies insert_exists, update_exists, and multiple_unique_conflicts and maps those conflict paths to SQLSTATE 23505."
        },
        {
          "id": "runtime.tx-contexts",
          "limits": "Connection status names are captured through psycopg 3; other clients may expose equivalent states differently.",
          "method": "Read transaction and PL/pgSQL contracts and assert status transitions in explicit_tx_abort_recovery, savepoint_recovery, deferred_commit_conflict, and plpgsql_exception_recovery.",
          "sources": [
            "doc.transactions.18",
            "doc.plpgsql.18"
          ],
          "statement": "A 23505 aborts an explicit transaction until rollback, can be isolated with ROLLBACK TO SAVEPOINT, can surface at COMMIT for a deferred unique constraint, and can be caught by a PL/pgSQL EXCEPTION subtransaction."
        },
        {
          "id": "runtime.retry-boundary",
          "limits": "The case demonstrates the conflict and lock ordering, not that a particular application transaction is safe to retry.",
          "method": "Read the official serialization-failure handling guidance and run an explicit lock-synchronized concurrent unique conflict.",
          "sources": [
            "doc.mvcc.18"
          ],
          "statement": "PostgreSQL documents cases where 23505 from concurrent key selection can be retried, but the retry must include the complete transaction and may remain a persistent conflict."
        },
        {
          "id": "runtime.on-conflict-scope",
          "limits": "Whether DO NOTHING or DO UPDATE is correct remains a business policy; idempotency requires request and existing-result validation.",
          "method": "Read conflict-target rules and execute the case with a pre-existing phone row.",
          "sources": [
            "doc.insert.18.6"
          ],
          "statement": "ON CONFLICT (email) only handles its inferred arbiter; a phone-only collision still raises 23505, while omitted-target DO NOTHING handles a usable unique conflict."
        },
        {
          "id": "runtime.sequence-repair-limit",
          "limits": "Empty tables, sequence identity, bounds, cache, non-default ownership and concurrent writers need separate checks.",
          "method": "Read setval semantics and execute START 100 INCREMENT 7 with a writer-free case schema.",
          "sources": [
            "doc.sequence.18"
          ],
          "statement": "setval(max(id), true) advances the next value in the controlled non-default increment case, but it is not a universal sequence repair."
        },
        {
          "id": "runtime.nulls-choice",
          "limits": "The case covers the DDL choice, not an upgrade of an existing catalog across every release.",
          "method": "Execute an explicit NULLS NOT DISTINCT constraint on PG18 and mark the PG10 syntax as not applicable.",
          "sources": [
            "doc.insert.18.6"
          ],
          "statement": "UNIQUE NULLS NOT DISTINCT is an explicit PG15+ declaration; the default remains NULLS DISTINCT and is not changed merely by upgrading."
        },
        {
          "id": "runtime.detail-visibility",
          "limits": "Other privileges, RLS policies, expression indexes, and server configuration can change which fields are visible.",
          "method": "Trace ACL/RLS checks and execute diagnostic_visibility with INSERT-only privilege.",
          "sources": [
            "src.genam.18.6"
          ],
          "statement": "A role without SELECT privilege on unique key columns can receive SQLSTATE and protocol object fields while the key DETAIL is omitted."
        },
        {
          "id": "runtime.version-boundary",
          "statement": "On the fixed version-boundary registry case, PostgreSQL 14.24 accepts two ordinary NULLs but rejects UNIQUE NULLS NOT DISTINCT with syntax error 42601 and no 23505; PostgreSQL 15.19 accepts the declaration and raises 23505 on the second NULL, then remains IDLE for the valid repair.",
          "sources": [
            "doc.insert.18.6",
            "runtime.23505-boundary-pg14-20260909.pg14",
            "runtime.23505-boundary-pg15-20260909.pg15"
          ],
          "method": "Compare the two fixed version-boundary summaries for the same registry case, including ordinary NULL behavior, explicit declaration result, transaction status, and repair count.",
          "limits": "This is a bounded PG14.24/PG15.19 comparison for the explicit NULLS NOT DISTINCT case. The PG14 syntax error is not 23505 coverage, and the result does not replace the selected base 18.6/10.21 case counts or establish every intermediate release."
        }
      ],
      "messages": [
        {
          "detail_template": "Key %s already exists.",
          "id": "message.dml.nbtree",
          "limits": "Template values and DETAIL depend on relation name and diagnostic visibility.",
          "primary_template": "duplicate key value violates unique constraint \"%s\"",
          "severity_source": "E",
          "sources": [
            "src.nbtinsert.18.6"
          ],
          "sqlstate": "23505"
        },
        {
          "detail_template": "Key %s is duplicated.",
          "id": "message.index-build",
          "limits": "This is the unique-index build path, not the ordinary DML template.",
          "primary_template": "could not create unique index \"%s\"",
          "severity_source": "E",
          "sources": [
            "src.tuplesortvariants.18.6"
          ],
          "sqlstate": "23505"
        },
        {
          "detail_template": "%s",
          "id": "message.logical-apply",
          "limits": "The detail is dynamically assembled in err_detail.data and passed through errdetail_internal(\"%s\", err_detail.data); this is not a fixed user-facing template. The PG18 conflict label is source-confirmed; this batch did not run logical replication.",
          "primary_template": "conflict detected on relation \"%s.%s\": conflict=%s",
          "sources": [
            "src.logical-conflict.18.6"
          ],
          "sqlstate": "23505"
        }
      ],
      "usage_evidence": [
        {
          "evidence_ids": [
            "runtime.23505-final-20260909.latest",
            "runtime.23505-final-20260909.pg10",
            "runtime.23505-snippet-contract-20260909.latest",
            "runtime.23505-snippet-contract-20260909.pg10",
            "runtime.23505-log-fields-final-20260909.latest",
            "runtime.23505-log-fields-final-20260909.pg10",
            "runtime.23505-diagnostic-snippet-20260909.latest",
            "runtime.23505-diagnostic-snippet-20260909.pg10",
            "runtime.23505-explicit-manual-final-20260909.latest",
            "runtime.23505-explicit-manual-final-20260909.pg10",
            "runtime.23505-savepoint-manual-final-20260909.latest",
            "runtime.23505-savepoint-manual-final-20260909.pg10"
          ],
          "notes": "The accepted full run covers all twelve case statuses; the earlier log_fields first-record selection is retained as historical audit data, while the targeted log-fields run proves exact backend/schema/table/constraint/message/detail correlation on both targets. The manual-boundary run proves the registry BEGIN/ROLLBACK/COMMIT sequence with autocommit=True on both targets.",
          "scope": "Selected ordinary DML, transaction recovery, and registry excerpts by case/target",
          "status": "observed_runtime"
        },
        {
          "evidence_ids": [
            "runtime.logical-apply-sqlstate",
            "src.logical-conflict.18.6"
          ],
          "notes": "No logical replication topology was started; the detail value is dynamic err_detail.data, not a fixed template.",
          "scope": "Logical apply conflict labels and SQLSTATE mapping",
          "status": "source_path_confirmed"
        },
        {
          "evidence_ids": [
            "identity.class-and-condition",
            "src.errcodes.18.6"
          ],
          "notes": "The directory row defines the condition and class; it does not exercise every emitting path.",
          "scope": "SQLSTATE directory identity",
          "status": "definition_only"
        },
        {
          "scope": "nulls-not-distinct-pg15-boundary",
          "status": "observed_runtime",
          "evidence_ids": [
            "runtime.version-boundary",
            "runtime.23505-boundary-pg15-20260909.pg15"
          ],
          "notes": "The separate PG15.19 boundary case observed a natural 23505 after explicit UNIQUE NULLS NOT DISTINCT; it is excluded from the base 18.6/10.21 counts."
        },
        {
          "scope": "nulls-not-distinct-pg14-availability",
          "status": "definition_only",
          "evidence_ids": [
            "runtime.version-boundary",
            "runtime.23505-boundary-pg14-20260909.pg14"
          ],
          "notes": "PG14.24 rejected the explicit syntax with 42601 after accepting ordinary duplicate NULLs; this establishes availability comparison only and is not 23505 runtime coverage."
        }
      ],
      "runtime": [
        {
          "cases": [
            "deferred_commit_conflict",
            "concurrent_unique_conflict",
            "nulls_not_distinct",
            "index_build_conflict",
            "diagnostic_visibility"
          ],
          "id": "runtime.23505-final-20260909.latest",
          "run_id": "23505-final-20260909",
          "selection_status": "selected_for_unreplaced_cases",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "status": "passed",
          "target": "latest",
          "limits": "The selected cases are the full run scenarios not replaced by a more targeted final record; its former log_fields selection is excluded because the targeted run provides the exact event correlation."
        },
        {
          "cases_not_applicable": [
            "nulls_not_distinct"
          ],
          "cases_passed": 11,
          "id": "runtime.23505-final-20260909.pg10",
          "image": "postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
          "run_id": "23505-final-20260909",
          "selection_status": "selected_for_unreplaced_cases",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "status": "passed",
          "target": "pg10",
          "cases": [
            "deferred_commit_conflict",
            "concurrent_unique_conflict",
            "index_build_conflict",
            "diagnostic_visibility"
          ],
          "limits": "The selected cases are the full run scenarios not replaced by a more targeted final record; its former log_fields selection is excluded because the targeted run provides the exact event correlation."
        },
        {
          "cases": [
            "plpgsql_exception_recovery",
            "on_conflict_target_scope",
            "sequence_lag_repair"
          ],
          "id": "runtime.23505-snippet-contract-20260909.latest",
          "run_id": "23505-snippet-contract-20260909",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "status": "passed",
          "target": "latest",
          "selection_status": "selected_for_registry_snippets",
          "limits": "The selected cases are the registry-backed PL/pgSQL, ON CONFLICT, and sequence excerpts; explicit transaction and savepoint cases use the manual-boundary runs below."
        },
        {
          "cases": [
            "plpgsql_exception_recovery",
            "on_conflict_target_scope",
            "sequence_lag_repair"
          ],
          "id": "runtime.23505-snippet-contract-20260909.pg10",
          "run_id": "23505-snippet-contract-20260909",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "status": "passed",
          "target": "pg10",
          "selection_status": "selected_for_registry_snippets",
          "limits": "The selected cases are the registry-backed PL/pgSQL, ON CONFLICT, and sequence excerpts; explicit transaction and savepoint cases use the manual-boundary runs below."
        },
        {
          "cases": [
            "log_fields"
          ],
          "id": "runtime.23505-log-fields-final-20260909.latest",
          "observed": {
            "backend_pid": 60638,
            "correlation": "Both collector records match this case backend PID, schema, table, constraint, SQLSTATE, primary message, and DETAIL.",
            "csv_record": {
              "detail": "Key (token)=(logged) already exists.",
              "message": "duplicate key value violates unique constraint \"logged_items_token_key\"",
              "process_id": "60638",
              "query": "INSERT INTO \"c23505_log_fields\".\"logged_items\" VALUES (2, 'logged')",
              "sql_state_code": "23505"
            },
            "json_record": {
              "detail": "Key (token)=(logged) already exists.",
              "message": "duplicate key value violates unique constraint \"logged_items_token_key\"",
              "pid": 60638,
              "state_code": "23505",
              "statement": "INSERT INTO \"c23505_log_fields\".\"logged_items\" VALUES (2, 'logged')"
            },
            "trigger": {
              "constraint_name": "logged_items_token_key",
              "message_detail": "Key (token)=(logged) already exists.",
              "message_primary": "duplicate key value violates unique constraint \"logged_items_token_key\"",
              "schema_name": "c23505_log_fields",
              "sqlstate": "23505",
              "table_name": "logged_items"
            }
          },
          "raw_sha256": "91945d2220cb85882275675810fb9b85382e99a6b25b2e81e6d06e7751b8553f",
          "run_id": "23505-log-fields-final-20260909",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "snippet_registry": {
            "sha256": "74d7d700331bc3d9c190bf807cca31999ddf45e8cbea153ec7c6b6d4f9702686"
          },
          "status": "passed",
          "summary_sha256": "4f398c31188efa509cc59f010e4cbac23751a48deac973a027ecb66903c8c817",
          "target": "latest",
          "selection_status": "selected_exact_log_correlation",
          "limits": "This targeted run is the sole selected log_fields record; its backend PID, schema, table, constraint, message, and detail match the trigger."
        },
        {
          "cases": [
            "log_fields"
          ],
          "id": "runtime.23505-log-fields-final-20260909.pg10",
          "image": "postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
          "observed": {
            "backend_pid": 81,
            "correlation": "The CSV collector record matches this case backend PID, schema, table, constraint, SQLSTATE, primary message, and DETAIL; PG10 has no JSON logging output in this target configuration.",
            "csv_record": {
              "detail": "Key (token)=(logged) already exists.",
              "message": "duplicate key value violates unique constraint \"logged_items_token_key\"",
              "process_id": "81",
              "query": "INSERT INTO \"c23505_log_fields\".\"logged_items\" VALUES (2, 'logged')",
              "sql_state_code": "23505"
            },
            "json_record": null,
            "trigger": {
              "constraint_name": "logged_items_token_key",
              "message_detail": "Key (token)=(logged) already exists.",
              "message_primary": "duplicate key value violates unique constraint \"logged_items_token_key\"",
              "schema_name": "c23505_log_fields",
              "sqlstate": "23505",
              "table_name": "logged_items"
            }
          },
          "raw_sha256": "fc52475937c24be583212464ff74a70603118680f5d39b7e2938118473223711",
          "run_id": "23505-log-fields-final-20260909",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "snippet_registry": {
            "sha256": "74d7d700331bc3d9c190bf807cca31999ddf45e8cbea153ec7c6b6d4f9702686"
          },
          "status": "passed",
          "summary_sha256": "d24ef7ce7c8a40cba28b0b5952b404df6feee8038a9e531062885a852b3f77e9",
          "target": "pg10",
          "selection_status": "selected_exact_log_correlation",
          "limits": "This targeted run is the sole selected log_fields record; its backend PID, schema, table, constraint, message, and detail match the trigger."
        },
        {
          "cases": [
            "dml_unique_conflict"
          ],
          "id": "runtime.23505-diagnostic-snippet-20260909.latest",
          "run_id": "23505-diagnostic-snippet-20260909",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "status": "passed",
          "target": "latest",
          "selection_status": "selected_for_dml_diagnostic",
          "limits": "The selected DML diagnostic case is the targeted registry run; the broad base-run copy is retained only as local audit data."
        },
        {
          "cases": [
            "dml_unique_conflict"
          ],
          "id": "runtime.23505-diagnostic-snippet-20260909.pg10",
          "run_id": "23505-diagnostic-snippet-20260909",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "status": "passed",
          "target": "pg10",
          "selection_status": "selected_for_dml_diagnostic",
          "limits": "The selected DML diagnostic case is the targeted registry run; the broad base-run copy is retained only as local audit data."
        },
        {
          "cases": [
            "explicit_tx_abort_recovery"
          ],
          "id": "runtime.23505-explicit-manual-final-20260909.latest",
          "limits": "This run proves that registry transaction statements execute with autocommit=True, so psycopg does not add an implicit BEGIN; it covers this explicit recovery case only.",
          "observed": {
            "connection_autocommit": true,
            "duplicate_sqlstate": "23505",
            "repair_transaction": "BEGIN; INSERT; COMMIT",
            "rows": [
              [
                1,
                "seed"
              ],
              [
                2,
                "after rollback"
              ]
            ],
            "status_after_25p02": "INERROR",
            "status_after_duplicate": "INERROR",
            "status_after_rollback": "IDLE",
            "transaction_control": [
              "BEGIN",
              "ROLLBACK",
              "BEGIN",
              "COMMIT"
            ]
          },
          "raw_sha256": "586bacd10d1e5d2a5a5ec58c2ed747d4b2b8618a051ce56b0d8307c7265e196d",
          "run_id": "23505-explicit-manual-final-20260909",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "snippet_registry": {
            "sha256": "74d7d700331bc3d9c190bf807cca31999ddf45e8cbea153ec7c6b6d4f9702686"
          },
          "status": "passed",
          "summary_sha256": "38cd0161a97fa35084f192a5aa60f6061955b60ec681c4800b575514dee6a6f3",
          "target": "latest",
          "selection_status": "selected_manual_boundary"
        },
        {
          "cases": [
            "explicit_tx_abort_recovery"
          ],
          "id": "runtime.23505-explicit-manual-final-20260909.pg10",
          "image": "postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
          "limits": "This run proves that registry transaction statements execute with autocommit=True, so psycopg does not add an implicit BEGIN; it covers this explicit recovery case only.",
          "observed": {
            "connection_autocommit": true,
            "duplicate_sqlstate": "23505",
            "repair_transaction": "BEGIN; INSERT; COMMIT",
            "rows": [
              [
                1,
                "seed"
              ],
              [
                2,
                "after rollback"
              ]
            ],
            "status_after_25p02": "INERROR",
            "status_after_duplicate": "INERROR",
            "status_after_rollback": "IDLE",
            "transaction_control": [
              "BEGIN",
              "ROLLBACK",
              "BEGIN",
              "COMMIT"
            ]
          },
          "raw_sha256": "ed1c4f5082a00b67297a9d01b8362f7d70c758a2fbd393e20def6c450a6f5739",
          "run_id": "23505-explicit-manual-final-20260909",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "snippet_registry": {
            "sha256": "74d7d700331bc3d9c190bf807cca31999ddf45e8cbea153ec7c6b6d4f9702686"
          },
          "status": "passed",
          "summary_sha256": "4a4243d367afd9c142991aba496336c972e4fe3cc959a724d3454773986ac30b",
          "target": "pg10",
          "selection_status": "selected_manual_boundary"
        },
        {
          "cases": [
            "savepoint_recovery"
          ],
          "id": "runtime.23505-savepoint-manual-final-20260909.latest",
          "limits": "This run proves the registry savepoint sequence executes with autocommit=True, so psycopg does not add an implicit BEGIN; it covers savepoint recovery only.",
          "observed": {
            "connection_autocommit": true,
            "statuses": {
              "after_duplicate": "INERROR",
              "after_rollback_to_savepoint": "INTRANS"
            },
            "transaction_control": [
              "BEGIN",
              "SAVEPOINT",
              "ROLLBACK TO SAVEPOINT",
              "RELEASE SAVEPOINT",
              "COMMIT"
            ],
            "rows": [
              [
                1,
                "seed"
              ],
              [
                2,
                "outer"
              ],
              [
                3,
                "after savepoint"
              ]
            ]
          },
          "raw_sha256": "3b3e7305df8d70309f3c632e9b19b43cd9f1411f0967e952bff7997e5c0c7cb7",
          "run_id": "23505-savepoint-manual-final-20260909",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "snippet_registry": {
            "sha256": "74d7d700331bc3d9c190bf807cca31999ddf45e8cbea153ec7c6b6d4f9702686"
          },
          "status": "passed",
          "summary_sha256": "e9ff818a677f577321fb2faccb8d48bb62b054d9f579531a5231029cb16162ef",
          "target": "latest",
          "selection_status": "selected_manual_boundary"
        },
        {
          "cases": [
            "savepoint_recovery"
          ],
          "id": "runtime.23505-savepoint-manual-final-20260909.pg10",
          "image": "postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
          "limits": "This run proves the registry savepoint sequence executes with autocommit=True, so psycopg does not add an implicit BEGIN; it covers savepoint recovery only.",
          "observed": {
            "connection_autocommit": true,
            "statuses": {
              "after_duplicate": "INERROR",
              "after_rollback_to_savepoint": "INTRANS"
            },
            "transaction_control": [
              "BEGIN",
              "SAVEPOINT",
              "ROLLBACK TO SAVEPOINT",
              "RELEASE SAVEPOINT",
              "COMMIT"
            ],
            "rows": [
              [
                1,
                "seed"
              ],
              [
                2,
                "outer"
              ],
              [
                3,
                "after savepoint"
              ]
            ]
          },
          "raw_sha256": "74fb5d36973e351dead8e49c02f2e272979c0dae5d40fc6b631a9ea6f25c5742",
          "run_id": "23505-savepoint-manual-final-20260909",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "snippet_registry": {
            "sha256": "74d7d700331bc3d9c190bf807cca31999ddf45e8cbea153ec7c6b6d4f9702686"
          },
          "status": "passed",
          "summary_sha256": "9f6dea66d73191045e35fe239ecff2c69fb046bdd90de5cc4351443f3bc0f4bf",
          "target": "pg10",
          "selection_status": "selected_manual_boundary"
        },
        {
          "id": "runtime.23505-boundary-pg14-20260909.pg14",
          "run_id": "23505-boundary-pg14-20260909",
          "target": "pg14",
          "server_version": "14.24 (Debian 14.24-1.pgdg13+2)",
          "server_version_num": 140024,
          "status": "not_applicable",
          "case_status": "passed",
          "target_status": "passed",
          "cases": [
            "nulls_not_distinct_version_boundary"
          ],
          "summary_sha256": "e757ffaea0ee44d8f5ee5f4187798809d0c63a40020ff575a763e4cabb960f75",
          "raw_sha256": "d21fcb5f18c65a8e941814b8c4046b84700c59ce14b73ced51d2f8ac574552fc",
          "snippet_registry": {
            "sha256": "2535a5a74138b3e7896f1d06e1109be42f62a49b4dac25e3f842d60c30b21a95"
          },
          "case_manifest": {
            "sha256": "e4d9376fa038675dcfd83c3fb3590b2bc43bb897dd5521be11474a7df0334776"
          },
          "observed": {
            "ordinary_unique_null_count": 2,
            "explicit_feature": "unsupported_syntax",
            "unsupported_sqlstate": "42601",
            "unsupported_severity": "ERROR",
            "unsupported_primary": "syntax error at or near \"NULLS\"",
            "status_after_syntax": "IDLE",
            "natural_23505_observed": false
          },
          "selection_status": "selected_boundary_comparison",
          "limits": "The same registry case passed its assertions, but this target cannot execute the explicit feature. Its 42601 result is retained as a version-availability comparison and is not counted as an observed 23505 runtime."
        },
        {
          "id": "runtime.23505-boundary-pg15-20260909.pg15",
          "run_id": "23505-boundary-pg15-20260909",
          "target": "pg15",
          "server_version": "15.19 (Debian 15.19-1.pgdg13+2)",
          "server_version_num": 150019,
          "status": "passed",
          "case_status": "passed",
          "target_status": "passed",
          "cases": [
            "nulls_not_distinct_version_boundary"
          ],
          "summary_sha256": "df4d1f90eaca2155359bc7b141734a1026d7e1893400e5e6352ac1e95461137d",
          "raw_sha256": "d2bd7a499b4c9355f209e0831b3dbba8bcc98c8149010dcc9f13135ae05ed97a",
          "snippet_registry": {
            "sha256": "2535a5a74138b3e7896f1d06e1109be42f62a49b4dac25e3f842d60c30b21a95"
          },
          "case_manifest": {
            "sha256": "e4d9376fa038675dcfd83c3fb3590b2bc43bb897dd5521be11474a7df0334776"
          },
          "observed": {
            "ordinary_unique_null_count": 2,
            "explicit_feature": "supported",
            "explicit_sqlstate": "23505",
            "explicit_severity": "ERROR",
            "explicit_constraint": "nulls_not_distinct_uq",
            "explicit_primary": "duplicate key value violates unique constraint \"nulls_not_distinct_uq\"",
            "explicit_detail": "Key (external_id)=(null) already exists.",
            "status_after_duplicate": "IDLE",
            "repaired_row_count": 2,
            "natural_23505_observed": true
          },
          "selection_status": "selected_boundary_comparison",
          "limits": "This is a separate PG15 boundary comparison for the explicit NULLS NOT DISTINCT case; it does not replace or inflate the selected base runtime cases."
        }
      ]
    },
    {
      "sqlstate": "23514",
      "condition_name": "check_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"
        },
        {
          "id": "src.execMain.18.6",
          "kind": "upstream_source",
          "source_role": "source_path",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/executor/execMain.c",
          "sha256": "33b97337fa23a649c5e7a092e1bd405a54e8503529236c62c9d5bb93a1774a8d",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/executor/execMain.c#L2076-L2081"
        },
        {
          "id": "src.tablecmds.18.6",
          "kind": "upstream_source",
          "source_role": "source_path",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/tablecmds.c",
          "sha256": "422dc8e833df4940755973c757e338295822ba3e4c7266c40669f49f96eb15a9",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/tablecmds.c#L6502-L6532"
        },
        {
          "id": "doc.ddl-constraints.18.6",
          "kind": "upstream_source",
          "source_role": "official_documentation",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "doc/src/sgml/ddl.sgml",
          "sha256": "ce1919d9236f2e71672660e1a347146472e966e4d19b77fde5ae345dd1db6ec7",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ddl.sgml",
          "docs_url": "https://www.postgresql.org/docs/18/ddl-constraints.html"
        },
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "src.execPartition.18.6",
          "kind": "upstream_source",
          "path": "src/backend/executor/execPartition.c",
          "sha256": "97951428f673d4eb6dd23141817874c29640aaac0d6dc74015c993cbd0636dd6",
          "source_role": "source_path",
          "tag": "REL_18_6",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/executor/execPartition.c#L328-L335"
        },
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "src.typecmds.18.6",
          "kind": "upstream_source",
          "path": "src/backend/commands/typecmds.c",
          "sha256": "60d1e9754646e100f6b74aa367ad8c2c52386c400df721707423d329209c47eb",
          "source_role": "source_path",
          "tag": "REL_18_6",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/typecmds.c#L3288-L3293"
        },
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "src.execIndexing.18.6",
          "kind": "upstream_source",
          "path": "src/backend/executor/execIndexing.c",
          "sha256": "24c80553ab4b28d7d2a288dd9196c8db9459c7f308853cd8c8c939485e15f199",
          "source_role": "source_path",
          "tag": "REL_18_6",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/executor/execIndexing.c#L1176-L1181"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "23514 is check_violation in Class 23.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes row.",
          "limits": "It denotes a failed CHECK or related partition/default constraint path, not only a named table CHECK."
        },
        {
          "id": "row-path",
          "statement": "The executor reports 23514 with the relation and failed CHECK name when a row evaluates to false.",
          "sources": [
            "src.execMain.18.6",
            "src.calls.REL_18_6"
          ],
          "method": "Trace the executor report group and errtableconstraint metadata.",
          "limits": "A CHECK expression that evaluates to NULL is accepted by PostgreSQL; use NOT NULL when NULL itself is invalid."
        },
        {
          "id": "schema-path",
          "statement": "Constraint validation, partition routing, and domain checks can produce different 23514 templates.",
          "sources": [
            "src.tablecmds.18.6",
            "src.calls.REL_18_6",
            "src.execPartition.18.6",
            "src.typecmds.18.6",
            "src.execIndexing.18.6"
          ],
          "method": "Compare the fixed source call groups.",
          "limits": "Repairing data may require a migration or a different partition route; do not assume every 23514 is a duplicate or syntax problem."
        },
        {
          "id": "runtime",
          "statement": "The selected named CHECK case returned 23514 on PG18.6 and PG10.21, identified amount_positive/items, stayed IDLE, and committed a valid row.",
          "sources": [
            "runtime.23514-batch1-latest-20260909.latest",
            "runtime.23514-batch1-pg10-20260909.pg10"
          ],
          "method": "Read the selected summaries and raw diagnostics.",
          "limits": "The case does not cover deferred checks, partition routing, domain checks, or validation-time errors."
        }
      ],
      "messages": [
        {
          "id": "row",
          "sqlstate": "23514",
          "primary_template": "new row for relation \"%s\" violates check constraint \"%s\"",
          "severity_source": "ERROR",
          "sources": [
            "src.execMain.18.6"
          ],
          "limits": "The failing-row detail is conditional and can be suppressed by context or configuration.",
          "detail_template": "Failing row contains %s."
        },
        {
          "id": "partition-no-route",
          "limits": "The partition-key substitution is dynamically built; the path is not the named CHECK template.",
          "primary_template": "no partition of relation \"%s\" found for row",
          "detail_template": "Partition key of the failing row contains %s.",
          "severity_source": "ERROR",
          "sources": [
            "src.execPartition.18.6"
          ],
          "sqlstate": "23514"
        },
        {
          "id": "partition-constraint",
          "limits": "The relation and failing-row description are dynamic.",
          "primary_template": "new row for relation \"%s\" violates partition constraint",
          "detail_template": "Failing row contains %s.",
          "severity_source": "ERROR",
          "sources": [
            "src.execMain.18.6"
          ],
          "sqlstate": "23514"
        },
        {
          "id": "domain-validation",
          "limits": "The column and table identify the existing domain use; this is validation of a new domain constraint.",
          "primary_template": "column \"%s\" of table \"%s\" contains values that violate the new constraint",
          "severity_source": "ERROR",
          "sources": [
            "src.typecmds.18.6"
          ],
          "sqlstate": "23514"
        },
        {
          "id": "without-overlaps-empty",
          "limits": "The column and relation are dynamic; this is the empty-value guard, distinct from a conflict with an existing key.",
          "primary_template": "empty WITHOUT OVERLAPS value found in column \"%s\" in relation \"%s\"",
          "severity_source": "ERROR",
          "sources": [
            "src.execIndexing.18.6"
          ],
          "sqlstate": "23514"
        }
      ],
      "usage_evidence": [
        {
          "scope": "named-check-runtime",
          "status": "observed_runtime",
          "evidence_ids": [
            "runtime",
            "runtime.23514-batch1-latest-20260909.latest",
            "runtime.23514-batch1-pg10-20260909.pg10"
          ]
        },
        {
          "scope": "source-paths",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "identity",
            "row-path",
            "schema-path"
          ]
        }
      ],
      "runtime": [
        {
          "id": "runtime.23514-batch1-latest-20260909.latest",
          "run_id": "23514-batch1-latest-20260909",
          "target": "latest",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "status": "passed",
          "cases": [
            "check_constraint_insert"
          ],
          "summary_sha256": "ea15d7fcfc868444fd08a27f5a428e75f5d129e53732fa0ac19449bcc0e589a4",
          "raw_sha256": "11302e6a32ae75c2f4938099bcbcfeeb774ad58e3f404574c56b0c81ea828012",
          "snippet_registry": {
            "sha256": "0dcd48b5f9b3c4264c7843f77edae204d2a37b55a2b41bb2570febfdf6391d83"
          },
          "case_manifest": {
            "sha256": "86b43f2a10da9ff67b7b53b05fe3d16121b922f713be9f02f7c8caf558f73012"
          },
          "observed": {
            "sqlstate": "23514",
            "primary": "new row for relation \"items\" violates check constraint \"amount_positive\"",
            "detail": "Failing row contains (2, -1).",
            "constraint": "amount_positive",
            "table": "items",
            "status_after_error": "IDLE",
            "rows": [
              [
                1,
                10
              ],
              [
                2,
                1
              ]
            ]
          }
        },
        {
          "id": "runtime.23514-batch1-pg10-20260909.pg10",
          "run_id": "23514-batch1-pg10-20260909",
          "target": "pg10",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "status": "passed",
          "cases": [
            "check_constraint_insert"
          ],
          "summary_sha256": "599d10014ead75a34e9a0f59a7485ba0cdbfc350fa01456201c8bda00b29aa10",
          "raw_sha256": "e0a09ba6b64cc6ba16b2038fb8fee8541d55b047369068ccca8b2406c5700699",
          "snippet_registry": {
            "sha256": "0dcd48b5f9b3c4264c7843f77edae204d2a37b55a2b41bb2570febfdf6391d83"
          },
          "case_manifest": {
            "sha256": "86b43f2a10da9ff67b7b53b05fe3d16121b922f713be9f02f7c8caf558f73012"
          },
          "observed": {
            "sqlstate": "23514",
            "primary": "new row for relation \"items\" violates check constraint \"amount_positive\"",
            "detail": "Failing row contains (2, -1).",
            "constraint": "amount_positive",
            "table": "items",
            "status_after_error": "IDLE",
            "rows": [
              [
                1,
                10
              ],
              [
                2,
                1
              ]
            ]
          }
        }
      ]
    },
    {
      "sqlstate": "23P01",
      "condition_name": "exclusion_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"
        },
        {
          "id": "src.execIndexing.18.6",
          "kind": "upstream_source",
          "source_role": "source_path",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/executor/execIndexing.c",
          "sha256": "24c80553ab4b28d7d2a288dd9196c8db9459c7f308853cd8c8c939485e15f199",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/executor/execIndexing.c#L917-L937"
        },
        {
          "id": "doc.rangetypes.18.6",
          "kind": "upstream_source",
          "source_role": "official_documentation",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "doc/src/sgml/rangetypes.sgml",
          "sha256": "cfeffb134d2acc2ec45141726583b041410665c4a2f8ecf66cd3f9484a7f0014",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/rangetypes.sgml#L540-L573",
          "docs_url": "https://www.postgresql.org/docs/18/rangetypes.html#RANGETYPES-CONSTRAINT"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "23P01 is exclusion_violation in Class 23.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes row.",
          "limits": "The exclusion operator may compare more than equality; the operator class and constraint definition determine the conflict."
        },
        {
          "id": "mechanism",
          "statement": "An exclusion constraint rejects a row when the configured operator comparisons are all true against an existing row; the range example uses && for overlap.",
          "sources": [
            "src.execIndexing.18.6",
            "doc.rangetypes.18.6",
            "src.calls.REL_18_6"
          ],
          "method": "Trace check_exclusion_or_unique_constraint and the range exclusion documentation.",
          "limits": "A half-open range [10,12) does not overlap [1,10); changing bounds is a business rule, not a blanket retry."
        },
        {
          "id": "runtime",
          "statement": "The selected immediate GiST range case returned 23P01 on PG18.6 and PG10.21, identified bookings_no_overlap, stayed IDLE, and committed a non-overlapping [10,12) range.",
          "sources": [
            "runtime.23P01-batch1-latest-20260909.latest",
            "runtime.23P01-batch1-pg10-20260909.pg10"
          ],
          "method": "Read the selected summaries and raw diagnostics.",
          "limits": "This case does not test DEFERRABLE exclusion constraints, concurrent waits, or every operator class."
        }
      ],
      "messages": [
        {
          "id": "conflict",
          "sqlstate": "23P01",
          "primary_template": "conflicting key value violates exclusion constraint \"%s\"",
          "severity_source": "ERROR",
          "sources": [
            "src.execIndexing.18.6"
          ],
          "limits": "The detail is dynamically built from the conflicting key values; the fallback is “Key conflicts with existing key.”",
          "detail_template": "Key %s conflicts with existing key %s."
        }
      ],
      "usage_evidence": [
        {
          "scope": "range-exclusion-runtime",
          "status": "observed_runtime",
          "evidence_ids": [
            "runtime",
            "runtime.23P01-batch1-latest-20260909.latest",
            "runtime.23P01-batch1-pg10-20260909.pg10"
          ]
        },
        {
          "scope": "source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "identity",
            "mechanism"
          ]
        }
      ],
      "runtime": [
        {
          "id": "runtime.23P01-batch1-latest-20260909.latest",
          "run_id": "23P01-batch1-latest-20260909",
          "target": "latest",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "status": "passed",
          "cases": [
            "overlapping_range_exclusion"
          ],
          "summary_sha256": "5e613eec8134801dfb3a603e7926418ee5d73b585546fd1aaa9004eeec553ef4",
          "raw_sha256": "b4e9ebe13743c12d84be1113ebdcec01c12ae79368e9b85b4ff1e01179dc7880",
          "snippet_registry": {
            "sha256": "475f58dda688a5864436d67e18f16abfbfae0b178acecaabe66ebaca7ab3c585"
          },
          "case_manifest": {
            "sha256": "6dcb833ed64435a75016520f520cbb1abffc7d8751eb9195dc8ad5ffa2a9680e"
          },
          "observed": {
            "sqlstate": "23P01",
            "primary": "conflicting key value violates exclusion constraint \"bookings_no_overlap\"",
            "detail": "Key (during)=([5,12)) conflicts with existing key (during)=([1,10)).",
            "constraint": "bookings_no_overlap",
            "status_after_error": "IDLE",
            "rows": [
              [
                1,
                "[1,10)"
              ],
              [
                2,
                "[10,12)"
              ]
            ]
          }
        },
        {
          "id": "runtime.23P01-batch1-pg10-20260909.pg10",
          "run_id": "23P01-batch1-pg10-20260909",
          "target": "pg10",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "status": "passed",
          "cases": [
            "overlapping_range_exclusion"
          ],
          "summary_sha256": "2b071d07ad5977b4fd9133f9815a92fc3fca27980659f26654b8dc3793abd767",
          "raw_sha256": "1975e9348838d73f3433c2da02a3f3972dc3670e24bc89d73d631cd35b219165",
          "snippet_registry": {
            "sha256": "475f58dda688a5864436d67e18f16abfbfae0b178acecaabe66ebaca7ab3c585"
          },
          "case_manifest": {
            "sha256": "6dcb833ed64435a75016520f520cbb1abffc7d8751eb9195dc8ad5ffa2a9680e"
          },
          "observed": {
            "sqlstate": "23P01",
            "primary": "conflicting key value violates exclusion constraint \"bookings_no_overlap\"",
            "detail": "Key (during)=([5,12)) conflicts with existing key (during)=([1,10)).",
            "constraint": "bookings_no_overlap",
            "status_after_error": "IDLE",
            "rows": [
              [
                1,
                "[1,10)"
              ],
              [
                2,
                "[10,12)"
              ]
            ]
          }
        }
      ]
    },
    {
      "sqlstate": "24000",
      "condition_name": "invalid_cursor_state",
      "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.execCurrent.18.6",
          "kind": "upstream_source",
          "source_role": "source_path",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/executor/execCurrent.c",
          "sha256": "45c8e48b3a5dc46f1014482dc88e0a26c25c3a4c403372112474d9171253d8a9",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/executor/execCurrent.c#L135-L138"
        },
        {
          "id": "doc.declare.18.6",
          "kind": "upstream_source",
          "source_role": "official_documentation",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "doc/src/sgml/ref/declare.sgml",
          "sha256": "f1d72befb9a989aa32123560aea784a8bccfcb3d3930804a101d8245e5a3cc95",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/declare.sgml#L275-L285",
          "docs_url": "https://www.postgresql.org/docs/18/sql-declare.html"
        },
        {
          "id": "doc.update.18.6",
          "kind": "upstream_source",
          "source_role": "official_documentation",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "doc/src/sgml/ref/update.sgml",
          "sha256": "47dd724cd724bd77478215a4853aa1f985996a0e5bba9b2451a1ad1ebb6e51fc",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/update.sgml#L203-L211",
          "docs_url": "https://www.postgresql.org/docs/18/sql-update.html"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "24000 is invalid_cursor_state in Class 24.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed condition row.",
          "limits": "The class has several cursor/portal states; the observed message is one path."
        },
        {
          "id": "current-of",
          "statement": "UPDATE or DELETE ... WHERE CURRENT OF requires a positioned, updatable cursor row; before FETCH the executor reports 24000.",
          "sources": [
            "src.execCurrent.18.6",
            "doc.declare.18.6",
            "doc.update.18.6",
            "src.calls.REL_18_6"
          ],
          "method": "Trace execCurrent and the documented DECLARE/CURRENT OF rules.",
          "limits": "A cursor can be validly declared yet still be unpositioned; declaration alone does not make CURRENT OF usable."
        },
        {
          "id": "runtime",
          "statement": "The selected explicit transaction case returned 24000 before FETCH, entered INERROR, recovered after ROLLBACK, and then directly repaired the row on PG18.6 and PG10.21.",
          "sources": [
            "runtime.24000-batch1-latest2-20260909.latest",
            "runtime.24000-batch1-pg10-20260909.pg10"
          ],
          "method": "Read the selected summaries and raw diagnostics.",
          "limits": "Only the before-FETCH CURRENT OF path was run; other cursor states use other source templates."
        }
      ],
      "messages": [
        {
          "id": "unpositioned",
          "sqlstate": "24000",
          "primary_template": "cursor \"%s\" is not positioned on a row",
          "severity_source": "ERROR",
          "sources": [
            "src.execCurrent.18.6"
          ],
          "limits": "The same template is also used by another CURRENT OF path; the cursor name is substituted at runtime."
        }
      ],
      "usage_evidence": [
        {
          "scope": "current-of-runtime",
          "status": "observed_runtime",
          "evidence_ids": [
            "runtime",
            "runtime.24000-batch1-latest2-20260909.latest",
            "runtime.24000-batch1-pg10-20260909.pg10"
          ]
        },
        {
          "scope": "cursor-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "identity",
            "current-of"
          ]
        }
      ],
      "runtime": [
        {
          "id": "runtime.24000-batch1-latest2-20260909.latest",
          "run_id": "24000-batch1-latest2-20260909",
          "target": "latest",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "status": "passed",
          "cases": [
            "current_of_before_fetch"
          ],
          "summary_sha256": "d14d912dad21157c8911b7ec6f16eb5b995b4efd387cca830b826a4ff17039d6",
          "raw_sha256": "567d6fb5a4c4f6e881050992aa833c79999d5018cba753b41021483f59e7069c",
          "snippet_registry": {
            "sha256": "cafca57825378362df0527384614bf658bf86cd3101e1eb520ea0641819f2789"
          },
          "case_manifest": {
            "sha256": "5a52a1c37d8702961515d9d32e7c5285ca3a9cebe0a16492858864ce933a1b1c"
          },
          "observed": {
            "sqlstate": "24000",
            "primary": "cursor \"item_cursor\" is not positioned on a row",
            "after_error": "INERROR",
            "after_rollback": "IDLE",
            "repaired_row": [
              1,
              "repaired"
            ]
          }
        },
        {
          "id": "runtime.24000-batch1-pg10-20260909.pg10",
          "run_id": "24000-batch1-pg10-20260909",
          "target": "pg10",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "status": "passed",
          "cases": [
            "current_of_before_fetch"
          ],
          "summary_sha256": "9a38d0b3ee7ffa8f3018ceb09045cc78ae4c2bccd004a6c369cf9cbc76089851",
          "raw_sha256": "cf77c7f96913d2a33315afa186be2fd51eb100f69da7d5540ed708f41b5bde3f",
          "snippet_registry": {
            "sha256": "cafca57825378362df0527384614bf658bf86cd3101e1eb520ea0641819f2789"
          },
          "case_manifest": {
            "sha256": "5a52a1c37d8702961515d9d32e7c5285ca3a9cebe0a16492858864ce933a1b1c"
          },
          "observed": {
            "sqlstate": "24000",
            "primary": "cursor \"item_cursor\" is not positioned on a row",
            "after_error": "INERROR",
            "after_rollback": "IDLE",
            "repaired_row": [
              1,
              "repaired"
            ]
          }
        }
      ]
    },
    {
      "sqlstate": "25000",
      "condition_name": "invalid_transaction_state",
      "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.xact.18.6",
          "kind": "upstream_source",
          "source_role": "source_path",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/access/transam/xact.c",
          "sha256": "75b012c0b047d1dc905a30975c244beec366e45eac0dbf109fd21bcd611a8e39",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/transam/xact.c#L4385-L4387"
        },
        {
          "id": "src.utility.18.6",
          "kind": "upstream_source",
          "source_role": "source_path",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/tcop/utility.c",
          "sha256": "7aae5d07628b6debf8456d1d4ea96f28912232192e56ea25773b4c4b61235a00",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/tcop/utility.c#L425-L429"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "25000 is invalid_transaction_state, the broad Class 25 condition.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed condition row and macro.",
          "limits": "It is a family-level state; active transactions, failed transactions, and parallel-operation restrictions have separate codes."
        },
        {
          "id": "core-paths",
          "statement": "The locked PostgreSQL 18.6 source uses 25000 for internal parallel-operation guards such as defining savepoints or executing a utility during parallel operation.",
          "sources": [
            "src.xact.18.6",
            "src.utility.18.6",
            "src.calls.REL_18_6"
          ],
          "method": "Trace the fixed report groups and exact messages.",
          "limits": "These guards depend on executor/parallel-worker state that a normal safe SQL session cannot establish directly."
        },
        {
          "id": "boundary",
          "statement": "The batch does not claim a natural SQL reproduction for 25000. Use 25001 for an active transaction blocking a utility and 25P02 for a failed transaction; do not replace this boundary with RAISE.",
          "sources": [
            "src.errcodes.18.6",
            "src.calls.REL_18_6"
          ],
          "method": "Compare the class mapping and exhaustive resolved-call scan.",
          "limits": "Extensions or future code can add paths; this is a core 18.6 source boundary, not a universal impossibility theorem."
        }
      ],
      "messages": [
        {
          "id": "parallel-savepoint",
          "sqlstate": "25000",
          "primary_template": "cannot define savepoints during a parallel operation",
          "severity_source": "ERROR",
          "sources": [
            "src.xact.18.6"
          ],
          "limits": "The template is guarded by internal parallel-operation state and is not a user-facing active-transaction diagnostic."
        },
        {
          "id": "parallel-utility",
          "sqlstate": "25000",
          "primary_template": "cannot execute %s during a parallel operation",
          "severity_source": "ERROR",
          "sources": [
            "src.utility.18.6"
          ],
          "limits": "The %s substitution is the utility command name."
        }
      ],
      "usage_evidence": [
        {
          "scope": "core-source-boundary",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "identity",
            "core-paths",
            "boundary"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "25001",
      "condition_name": "active_sql_transaction",
      "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.xact.18.6",
          "kind": "upstream_source",
          "source_role": "source_path",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/access/transam/xact.c",
          "sha256": "75b012c0b047d1dc905a30975c244beec366e45eac0dbf109fd21bcd611a8e39",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/transam/xact.c#L3654-L3677"
        },
        {
          "id": "doc.vacuum.18.6",
          "kind": "upstream_source",
          "source_role": "official_documentation",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "doc/src/sgml/ref/vacuum.sgml",
          "sha256": "80ca5592cda7b74938385f84f09faac33574374c1a05d605a2d55982e4cf1bbf",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/vacuum.sgml",
          "docs_url": "https://www.postgresql.org/docs/18/sql-vacuum.html"
        },
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "src.logical.18.6",
          "kind": "upstream_source",
          "path": "src/backend/replication/logical/logical.c",
          "sha256": "3f1bd4c3e627fe78522c4dc9bacf9fa8200e6c82c2d01f7670706eee102b76d1",
          "source_role": "source_path",
          "tag": "REL_18_6",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/replication/logical/logical.c#L444-L446"
        },
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "src.snapmgr-export.18.6",
          "kind": "upstream_source",
          "path": "src/backend/utils/time/snapmgr.c",
          "sha256": "b605b69e77a026c143f4cabca079de364b9a8732bfc40f7595be44fb0971ee8",
          "source_role": "source_path",
          "tag": "REL_18_6",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/time/snapmgr.c#L1152-L1154"
        },
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "src.snapmgr-set-snapshot.18.6",
          "kind": "upstream_source",
          "path": "src/backend/utils/time/snapmgr.c",
          "sha256": "b605b69e77a026c143f4cabca079de364b9a8732bfc40f7595be44fb0971ee8",
          "source_role": "source_path",
          "tag": "REL_18_6",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/time/snapmgr.c#L1409-L1411"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "25001 is active_sql_transaction in Class 25.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed condition row and macro.",
          "limits": "The code covers several operations that require a transaction boundary, including subtransactions and function execution."
        },
        {
          "id": "utility-path",
          "statement": "A utility such as VACUUM cannot run inside an explicit transaction block; xact.c formats the statement name into the 25001 primary message.",
          "sources": [
            "src.xact.18.6",
            "doc.vacuum.18.6",
            "src.calls.REL_18_6"
          ],
          "method": "Trace PreventInTransactionBlock and the VACUUM transaction restriction.",
          "limits": "Some commands are allowed inside transactions; inspect the command-specific contract rather than retrying blindly."
        },
        {
          "id": "other-paths",
          "statement": "The same SQLSTATE has distinct source templates for subtransactions, function execution, logical replication slots after writes, and snapshot operations; a WARNING “there is already a transaction in progress” is a separate severity path.",
          "sources": [
            "src.xact.18.6",
            "src.calls.REL_18_6",
            "src.logical.18.6",
            "src.snapmgr-export.18.6",
            "src.snapmgr-set-snapshot.18.6"
          ],
          "method": "Read all fixed 25001 report groups selected by the source call scan.",
          "limits": "Severity and recovery depend on the exact path; do not treat every 25001 as an ERROR."
        },
        {
          "id": "runtime",
          "statement": "The selected VACUUM case returned 25001 on PG18.6 and PG10.21, entered INERROR, recovered after ROLLBACK, accepted a follow-up query, and then completed VACUUM outside the transaction block with the connection IDLE.",
          "sources": [
            "runtime.25001-batch1-latest2-20260909.latest",
            "runtime.25001-batch1-pg10b-20260909.pg10"
          ],
          "method": "Read the selected summaries and raw diagnostics.",
          "limits": "The case covers VACUUM in a transaction, not logical replication slots, snapshot export, function calls, or warning handling."
        }
      ],
      "messages": [
        {
          "id": "transaction-block",
          "sqlstate": "25001",
          "primary_template": "%s cannot run inside a transaction block",
          "severity_source": "ERROR",
          "sources": [
            "src.xact.18.6"
          ],
          "limits": "The %s substitution is the command name; this is one ERROR path for 25001."
        },
        {
          "id": "subtransaction",
          "sqlstate": "25001",
          "primary_template": "%s cannot run inside a subtransaction",
          "severity_source": "ERROR",
          "sources": [
            "src.xact.18.6"
          ],
          "limits": "The format string is source-backed; substitutions are supplied by the executing path."
        },
        {
          "id": "already-in-progress",
          "sqlstate": "25001",
          "primary_template": "there is already a transaction in progress",
          "severity_source": "WARNING",
          "sources": [
            "src.xact.18.6"
          ],
          "limits": "This source path is explicitly WARNING and must not be presented as the VACUUM ERROR template."
        },
        {
          "id": "function",
          "limits": "The %s substitution is the command name; this branch is rejected because it is called from a function.",
          "primary_template": "%s cannot be executed from a function",
          "severity_source": "ERROR",
          "sources": [
            "src.xact.18.6"
          ],
          "sqlstate": "25001"
        },
        {
          "id": "logical-slot-after-write",
          "limits": "The source condition is a transaction that already has a top-level transaction ID from writes.",
          "primary_template": "cannot create logical replication slot in transaction that has performed writes",
          "severity_source": "ERROR",
          "sources": [
            "src.logical.18.6"
          ],
          "sqlstate": "25001"
        },
        {
          "id": "snapshot-subtransaction",
          "limits": "The branch rejects export from the current subtransaction; prior committed subtransactions are handled separately by the source.",
          "primary_template": "cannot export a snapshot from a subtransaction",
          "severity_source": "ERROR",
          "sources": [
            "src.snapmgr-export.18.6"
          ],
          "sqlstate": "25001"
        },
        {
          "id": "snapshot-after-query",
          "limits": "The command must be at the top level of a fresh transaction before a query establishes the snapshot.",
          "primary_template": "SET TRANSACTION SNAPSHOT must be called before any query",
          "severity_source": "ERROR",
          "sources": [
            "src.snapmgr-set-snapshot.18.6"
          ],
          "sqlstate": "25001"
        }
      ],
      "usage_evidence": [
        {
          "scope": "vacuum-runtime",
          "status": "observed_runtime",
          "evidence_ids": [
            "runtime",
            "runtime.25001-batch1-latest2-20260909.latest",
            "runtime.25001-batch1-pg10b-20260909.pg10"
          ]
        },
        {
          "scope": "source-paths",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "identity",
            "utility-path",
            "other-paths"
          ]
        }
      ],
      "runtime": [
        {
          "id": "runtime.25001-batch1-latest2-20260909.latest",
          "run_id": "25001-batch1-latest2-20260909",
          "target": "latest",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "status": "passed",
          "cases": [
            "vacuum_inside_transaction"
          ],
          "summary_sha256": "544bd0ec303a15036fe848468ed90f2674d5c2212e520bf6be2413bfdc91f200",
          "raw_sha256": "0b164ca0eab22ccc7ad5d18ed6201072049d2b7ba49e8cc99ba65aae172e1ec0",
          "snippet_registry": {
            "sha256": "0fc4277a4e2f59e78e54a1fed1ec0efef6bd0d3bd97180e03df596677e847f03"
          },
          "case_manifest": {
            "sha256": "2a5fad757733e23fd68df23270c4b0dfe108ff9ba0e1ab33c4a69e85c46c7ce1"
          },
          "observed": {
            "sqlstate": "25001",
            "primary": "VACUUM cannot run inside a transaction block",
            "after_error": "INERROR",
            "after_rollback": "IDLE",
            "usable": 1,
            "vacuum_outside_transaction": true,
            "status_after_vacuum": "IDLE"
          }
        },
        {
          "id": "runtime.25001-batch1-pg10b-20260909.pg10",
          "run_id": "25001-batch1-pg10b-20260909",
          "target": "pg10",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "status": "passed",
          "cases": [
            "vacuum_inside_transaction"
          ],
          "summary_sha256": "498a7229697ff6f46b6bbb135c3f79215cbb5442e9ce2400f651bb5efb91b151",
          "raw_sha256": "1efa43a93beca206fe048de038e4538694746fece446eb129a81fb8e36aa2740",
          "snippet_registry": {
            "sha256": "0fc4277a4e2f59e78e54a1fed1ec0efef6bd0d3bd97180e03df596677e847f03"
          },
          "case_manifest": {
            "sha256": "2a5fad757733e23fd68df23270c4b0dfe108ff9ba0e1ab33c4a69e85c46c7ce1"
          },
          "observed": {
            "sqlstate": "25001",
            "primary": "VACUUM cannot run inside a transaction block",
            "after_error": "INERROR",
            "after_rollback": "IDLE",
            "usable": 1,
            "vacuum_outside_transaction": true,
            "status_after_vacuum": "IDLE"
          }
        }
      ]
    },
    {
      "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": []
    },
    {
      "sqlstate": "25003",
      "condition_name": "inappropriate_access_mode_for_branch_transaction",
      "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": "25003 is inappropriate_access_mode_for_branch_transaction in Class 25.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed condition row and macro.",
          "limits": "The name describes a branch-transaction access-mode condition; it is not a proof that ordinary SQL can raise it."
        },
        {
          "id": "source-boundary",
          "statement": "The exhaustive resolved PostgreSQL 18.6 call scan contains no direct 25003 report group, so this batch does not claim a natural SQL trigger or message template.",
          "sources": [
            "src.calls.REL_18_6"
          ],
          "method": "Scan fixed source call records for SQLSTATE 25003.",
          "limits": "An extension or a branch-transaction API may have a separate path; this page does not invent one."
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "definition-and-call-scan",
          "status": "definition_only",
          "evidence_ids": [
            "identity",
            "source-boundary"
          ]
        }
      ],
      "runtime": [
        {
          "id": "runtime.25003-batch2-latest-20260909.latest",
          "run_id": "25003-batch2-latest-20260909",
          "target": "latest",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "status": "not_applicable",
          "case_status": "not_applicable",
          "target_status": "passed",
          "cases": [
            "branch_transaction_boundary"
          ],
          "summary_sha256": "603b6af5a7fde2bf4c7503816af9ec8e091cf9eb5125d6efa324eb08590aa00d",
          "raw_sha256": "5c00b2a0692b3a3c48b5465ae1db681bc3edcee9444e22ab515368775a6aab89",
          "case_manifest": {
            "sha256": "ab9486aa7775f7f7f49791e18adfa961e13759a247deb73819a9434ded03846d"
          },
          "observed": {
            "case_status": "not_applicable"
          }
        },
        {
          "id": "runtime.25003-batch2-pg10-20260909.pg10",
          "run_id": "25003-batch2-pg10-20260909",
          "target": "pg10",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "status": "not_applicable",
          "case_status": "not_applicable",
          "target_status": "passed",
          "cases": [
            "branch_transaction_boundary"
          ],
          "summary_sha256": "d335d9fd5997ab7dcc342f129beba862143021dd8daa2e39465606587a00f4c6",
          "raw_sha256": "a34c4d65a6b30ab85b31ca178d2a9bc17cc837d4396f8df4736ff3e4d7aa5c7b",
          "case_manifest": {
            "sha256": "ab9486aa7775f7f7f49791e18adfa961e13759a247deb73819a9434ded03846d"
          },
          "observed": {
            "case_status": "not_applicable"
          }
        }
      ]
    },
    {
      "sqlstate": "25004",
      "condition_name": "inappropriate_isolation_level_for_branch_transaction",
      "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": "25004 is inappropriate_isolation_level_for_branch_transaction in Class 25.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed condition row and macro.",
          "limits": "The condition name alone does not identify a supported ordinary-SQL trigger."
        },
        {
          "id": "source-boundary",
          "statement": "The exhaustive resolved PostgreSQL 18.6 call scan contains no direct 25004 report group; no natural SQL reproduction is claimed.",
          "sources": [
            "src.calls.REL_18_6"
          ],
          "method": "Scan fixed source call records for SQLSTATE 25004.",
          "limits": "Do not substitute a different isolation-level error or a hand-written RAISE example."
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "definition-and-call-scan",
          "status": "definition_only",
          "evidence_ids": [
            "identity",
            "source-boundary"
          ]
        }
      ],
      "runtime": [
        {
          "id": "runtime.25004-batch2-latest-20260909.latest",
          "run_id": "25004-batch2-latest-20260909",
          "target": "latest",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "status": "not_applicable",
          "case_status": "not_applicable",
          "target_status": "passed",
          "cases": [
            "branch_transaction_boundary"
          ],
          "summary_sha256": "6e892b767ad9feef596f0533e1b72620dd5c5e47cfef320c8ace0cfedffa3e7d",
          "raw_sha256": "f0d2933f7323aca4846fa9d962b2bff160db9f8c65cb430f6c4f41662203eafc",
          "case_manifest": {
            "sha256": "6e616ecb1ea8026eef7515be693af96fad4452d1a1ad804a504546491178e206"
          },
          "observed": {
            "case_status": "not_applicable"
          }
        },
        {
          "id": "runtime.25004-batch2-pg10-20260909.pg10",
          "run_id": "25004-batch2-pg10-20260909",
          "target": "pg10",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "status": "not_applicable",
          "case_status": "not_applicable",
          "target_status": "passed",
          "cases": [
            "branch_transaction_boundary"
          ],
          "summary_sha256": "aec6940d7ab31fd4a9e0fdd6639119dba287bada8c3195ab9e621e0a57bf8e1b",
          "raw_sha256": "f956881ba6ff4cc6f036e014e518813fffccb61a6044710a8d1a12d3fe44e8b2",
          "case_manifest": {
            "sha256": "6e616ecb1ea8026eef7515be693af96fad4452d1a1ad804a504546491178e206"
          },
          "observed": {
            "case_status": "not_applicable"
          }
        }
      ]
    },
    {
      "sqlstate": "25005",
      "condition_name": "no_active_sql_transaction_for_branch_transaction",
      "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": "25005 is no_active_sql_transaction_for_branch_transaction in Class 25.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed condition row and macro.",
          "limits": "It is distinct from 25P01 no_active_sql_transaction."
        },
        {
          "id": "source-boundary",
          "statement": "The exhaustive resolved PostgreSQL 18.6 call scan contains no direct 25005 report group; this batch records definition evidence only.",
          "sources": [
            "src.calls.REL_18_6"
          ],
          "method": "Scan fixed source call records for SQLSTATE 25005.",
          "limits": "No ordinary SQL trigger or format string is asserted."
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "definition-and-call-scan",
          "status": "definition_only",
          "evidence_ids": [
            "identity",
            "source-boundary"
          ]
        }
      ],
      "runtime": [
        {
          "id": "runtime.25005-batch2-latest-20260909.latest",
          "run_id": "25005-batch2-latest-20260909",
          "target": "latest",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "status": "not_applicable",
          "case_status": "not_applicable",
          "target_status": "passed",
          "cases": [
            "branch_transaction_boundary"
          ],
          "summary_sha256": "c6e53e9208d851535466317c6f559e4cedcb45bd9c8bd3d4318ab20c854944d3",
          "raw_sha256": "5fcd5aeae18c6f30610715133b631ef0da3b18fc69783b39aa239641a71a14bf",
          "case_manifest": {
            "sha256": "c231ee08c385544e970e4035dbd1ba239daab1baeb8f8c2f69bdc61f37e1453a"
          },
          "observed": {
            "case_status": "not_applicable"
          }
        },
        {
          "id": "runtime.25005-batch2-pg10-20260909.pg10",
          "run_id": "25005-batch2-pg10-20260909",
          "target": "pg10",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "status": "not_applicable",
          "case_status": "not_applicable",
          "target_status": "passed",
          "cases": [
            "branch_transaction_boundary"
          ],
          "summary_sha256": "3110b481d755a035443258247bd83acc2440a291b6ff257253454b6833f1b163",
          "raw_sha256": "9c3349caa7ecc2ae79a5043132f5f3a341139cf94e819341ae92aa1ec17b5f8f",
          "case_manifest": {
            "sha256": "c231ee08c385544e970e4035dbd1ba239daab1baeb8f8c2f69bdc61f37e1453a"
          },
          "observed": {
            "case_status": "not_applicable"
          }
        }
      ]
    },
    {
      "sqlstate": "25006",
      "condition_name": "read_only_sql_transaction",
      "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.utility.18.6",
          "kind": "upstream_source",
          "source_role": "source_path",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/tcop/utility.c",
          "sha256": "7aae5d07628b6debf8456d1d4ea96f28912232192e56ea25773b4c4b61235a00",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/tcop/utility.c#L397-L448"
        },
        {
          "id": "src.namespace.18.6",
          "kind": "upstream_source",
          "source_role": "source_path",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/catalog/namespace.c",
          "sha256": "8c9e6a99e84fa2cec8a9b1de2ecbe3966a13f4ad68c6ccfbfb8134a754d73e56",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/catalog/namespace.c#L4418-L4437"
        },
        {
          "id": "src.origin.18.6",
          "kind": "upstream_source",
          "source_role": "source_path",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/replication/logical/origin.c",
          "sha256": "81e5d5b4539b67bb372f0f0a05395af900c322cdbcec8a4b1f358333a16e6518",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/replication/logical/origin.c#L189-L200"
        },
        {
          "id": "doc.set-transaction.18.6",
          "kind": "upstream_source",
          "source_role": "official_documentation",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "doc/src/sgml/ref/set_transaction.sgml",
          "sha256": "33554463a2c9da1cf2c72cc27d4647d557204bb13a03cfeccb1b83f237a46589",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/set_transaction.sgml#L131-L145",
          "docs_url": "https://www.postgresql.org/docs/18/sql-set-transaction.html"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "25006 is read_only_sql_transaction in Class 25.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed condition row and macro.",
          "limits": "The same code covers more than one read-only/recovery guard."
        },
        {
          "id": "utility-path",
          "statement": "PreventCommandIfReadOnly formats the SQL command name into “cannot execute %s in a read-only transaction”; CREATE TABLE is one ordinary utility path.",
          "sources": [
            "src.utility.18.6",
            "src.calls.REL_18_6",
            "doc.set-transaction.18.6"
          ],
          "method": "Trace PreventCommandIfReadOnly and the documented read-only command restrictions.",
          "limits": "The %s substitution is command-specific; recovery and parallel-operation paths have their own conditions/messages."
        },
        {
          "id": "other-paths",
          "statement": "The fixed source also uses 25006 for temporary-table creation during recovery and replication-origin manipulation during recovery.",
          "sources": [
            "src.namespace.18.6",
            "src.origin.18.6"
          ],
          "method": "Read the additional fixed source report groups.",
          "limits": "Those recovery paths were not constructed by the selected ordinary read-only transaction case."
        },
        {
          "id": "runtime",
          "statement": "The selected read-only CREATE TABLE case returned 25006 on PostgreSQL 18.6 and 10.21, entered INERROR, recovered after ROLLBACK, and created the relation outside the read-only transaction.",
          "sources": [
            "runtime",
            "runtime.25006-batch2-latest-20260909.latest",
            "runtime.25006-batch2-pg10-20260909.pg10"
          ],
          "method": "Read the selected summaries and structured diagnostics.",
          "limits": "The case covers the ordinary explicit read-only utility path, not recovery-only temporary-table or replication-origin paths."
        },
        {
          "id": "recovery-utility",
          "statement": "The same fixed utility source uses 25006 during recovery with the command-specific message \"cannot execute %s during recovery\"; this is separate from the selected ordinary read-only transaction path.",
          "sources": [
            "src.utility.18.6",
            "src.calls.REL_18_6"
          ],
          "method": "Read the recovery guard and resolved report group in utility.c.",
          "limits": "The %s substitution is command-specific; the selected runtime did not run on a standby or recovery target."
        }
      ],
      "messages": [
        {
          "id": "utility",
          "sqlstate": "25006",
          "primary_template": "cannot execute %s in a read-only transaction",
          "severity_source": "ERROR",
          "sources": [
            "src.utility.18.6"
          ],
          "limits": "The %s substitution is the command name."
        },
        {
          "id": "utility-recovery",
          "sqlstate": "25006",
          "primary_template": "cannot execute %s during recovery",
          "severity_source": "ERROR",
          "sources": [
            "src.utility.18.6"
          ],
          "limits": "Recovery-only utility path; %s is the command name and this was not the selected ordinary read-only case."
        },
        {
          "id": "recovery-temp",
          "sqlstate": "25006",
          "primary_template": "cannot create temporary tables during recovery",
          "severity_source": "ERROR",
          "sources": [
            "src.namespace.18.6"
          ],
          "limits": "A recovery-only path; not the selected case."
        },
        {
          "id": "recovery-origin",
          "sqlstate": "25006",
          "primary_template": "cannot manipulate replication origins during recovery",
          "severity_source": "ERROR",
          "sources": [
            "src.origin.18.6"
          ],
          "limits": "A recovery-only path; not the selected case."
        }
      ],
      "usage_evidence": [
        {
          "scope": "runtime",
          "status": "observed_runtime",
          "evidence_ids": [
            "runtime",
            "runtime.25006-batch2-latest-20260909.latest",
            "runtime.25006-batch2-pg10-20260909.pg10"
          ]
        },
        {
          "scope": "source-paths",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "identity",
            "utility-path",
            "other-paths"
          ]
        }
      ],
      "runtime": [
        {
          "id": "runtime.25006-batch2-latest-20260909.latest",
          "run_id": "25006-batch2-latest-20260909",
          "target": "latest",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "status": "passed",
          "case_status": "passed",
          "target_status": "passed",
          "cases": [
            "read_only_transaction"
          ],
          "summary_sha256": "24fcf5d910c49c64eb3277bc4642190fe182f1ae2b731b2dffb0a5474c0189fe",
          "raw_sha256": "b506359510adfe87c3fb8dbf50ed863b7fcdaad5b6bbb7ebf910ecec38c80780",
          "case_manifest": {
            "sha256": "2009137faa2d1ebbbfa4dedfc1be073f9ea41b4bedd6c0acb34f3215ae37e25f"
          },
          "snippet_registry": {
            "sha256": "62db30e401b1f72fa50958d0ac612b2b1eb636299532dd1ad246c167e4f9fadf"
          },
          "observed": {
            "sqlstate": "25006",
            "primary": "cannot execute CREATE TABLE in a read-only transaction",
            "after_error": "INERROR",
            "after_rollback": "IDLE",
            "repair_relation": "\"c25006_read_only_transaction\".\"blocked\"",
            "final_status": "IDLE",
            "rows_after_repair": 0
          }
        },
        {
          "id": "runtime.25006-batch2-pg10-20260909.pg10",
          "run_id": "25006-batch2-pg10-20260909",
          "target": "pg10",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "status": "passed",
          "case_status": "passed",
          "target_status": "passed",
          "cases": [
            "read_only_transaction"
          ],
          "summary_sha256": "9de68a1e3ec84530fad088519fe71f009fde4dfefd02bd27e15096fb6c5b498a",
          "raw_sha256": "8aa0068ea4575ffc24bc86d329a039a63c80f5e218cad36e9e6bfa3075c8c731",
          "case_manifest": {
            "sha256": "2009137faa2d1ebbbfa4dedfc1be073f9ea41b4bedd6c0acb34f3215ae37e25f"
          },
          "snippet_registry": {
            "sha256": "62db30e401b1f72fa50958d0ac612b2b1eb636299532dd1ad246c167e4f9fadf"
          },
          "observed": {
            "sqlstate": "25006",
            "primary": "cannot execute CREATE TABLE in a read-only transaction",
            "after_error": "INERROR",
            "after_rollback": "IDLE",
            "repair_relation": "\"c25006_read_only_transaction\".\"blocked\"",
            "final_status": "IDLE",
            "rows_after_repair": 0
          }
        }
      ]
    },
    {
      "sqlstate": "25007",
      "condition_name": "schema_and_data_statement_mixing_not_supported",
      "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": "25007 is schema_and_data_statement_mixing_not_supported in Class 25.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed condition row and macro.",
          "limits": "The name points to a statement-composition boundary, not a generic DDL error."
        },
        {
          "id": "source-boundary",
          "statement": "The exhaustive resolved PostgreSQL 18.6 call scan contains no direct 25007 report group; no natural SQL reproduction or message template is published here.",
          "sources": [
            "src.calls.REL_18_6"
          ],
          "method": "Scan fixed source call records for SQLSTATE 25007.",
          "limits": "This batch does not turn SQL/MED or protocol-only assumptions into a backend case."
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "definition-and-call-scan",
          "status": "definition_only",
          "evidence_ids": [
            "identity",
            "source-boundary"
          ]
        }
      ],
      "runtime": [
        {
          "id": "runtime.25007-batch2-latest-20260909.latest",
          "run_id": "25007-batch2-latest-20260909",
          "target": "latest",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "status": "not_applicable",
          "case_status": "not_applicable",
          "target_status": "passed",
          "cases": [
            "schema_data_statement_boundary"
          ],
          "summary_sha256": "ec85372f3a83dd2b9de52641c1c453a42fdf5e70bc858036603cb43256986af2",
          "raw_sha256": "9d49d76e1cf0b453fb58c1555208f6067dfeee21354a6c72e2130925d80890ce",
          "case_manifest": {
            "sha256": "67528005b2b118f14485e2ae1985c95db2ebd71747e096284928827db74b708a"
          },
          "observed": {
            "case_status": "not_applicable"
          }
        },
        {
          "id": "runtime.25007-batch2-pg10-20260909.pg10",
          "run_id": "25007-batch2-pg10-20260909",
          "target": "pg10",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "status": "not_applicable",
          "case_status": "not_applicable",
          "target_status": "passed",
          "cases": [
            "schema_data_statement_boundary"
          ],
          "summary_sha256": "c98d845addf0188ae17a7182426ddf65dd4e4803df7554930d1c484d311dfccc",
          "raw_sha256": "f5b6ca10542fbb30d88cf5f0bb8cb6d386c1c7246f4d0ab3f0d60ffd180c5758",
          "case_manifest": {
            "sha256": "67528005b2b118f14485e2ae1985c95db2ebd71747e096284928827db74b708a"
          },
          "observed": {
            "case_status": "not_applicable"
          }
        }
      ]
    },
    {
      "sqlstate": "25008",
      "condition_name": "held_cursor_requires_same_isolation_level",
      "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": "25008 is held_cursor_requires_same_isolation_level in Class 25.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed condition row and macro.",
          "limits": "The condition is about a held cursor and transaction isolation, not every cursor-state error."
        },
        {
          "id": "source-boundary",
          "statement": "The exhaustive resolved PostgreSQL 18.6 call scan contains no direct 25008 report group; no natural SQL reproduction or message template is claimed.",
          "sources": [
            "src.calls.REL_18_6"
          ],
          "method": "Scan fixed source call records for SQLSTATE 25008.",
          "limits": "Do not replace this boundary with 24000 or a fabricated cursor error."
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "definition-and-call-scan",
          "status": "definition_only",
          "evidence_ids": [
            "identity",
            "source-boundary"
          ]
        }
      ],
      "runtime": [
        {
          "id": "runtime.25008-batch2-latest-20260909.latest",
          "run_id": "25008-batch2-latest-20260909",
          "target": "latest",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "status": "not_applicable",
          "case_status": "not_applicable",
          "target_status": "passed",
          "cases": [
            "held_cursor_isolation_boundary"
          ],
          "summary_sha256": "5414fdc3f348658002eb8f411bb9654983e2052d89611ab005702080615e37c7",
          "raw_sha256": "0889c37455fdb5ff5ebd30e4e4e3125b07e927bff2cdf85ff042fa45993c6bc1",
          "case_manifest": {
            "sha256": "623ed0ec9b97c61d9929e15882992efb4f1022f0a8efe344f5f478da23483101"
          },
          "observed": {
            "case_status": "not_applicable"
          }
        },
        {
          "id": "runtime.25008-batch2-pg10-20260909.pg10",
          "run_id": "25008-batch2-pg10-20260909",
          "target": "pg10",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "status": "not_applicable",
          "case_status": "not_applicable",
          "target_status": "passed",
          "cases": [
            "held_cursor_isolation_boundary"
          ],
          "summary_sha256": "6bcfef17630470c294b892e305ffc58315f3e7653189d5bfdfc670e1e8988950",
          "raw_sha256": "9ec5edb1763265af64f67283d68eeaa0afff4023dda4686ecaf04dc3e5178726",
          "case_manifest": {
            "sha256": "623ed0ec9b97c61d9929e15882992efb4f1022f0a8efe344f5f478da23483101"
          },
          "observed": {
            "case_status": "not_applicable"
          }
        }
      ]
    },
    {
      "sqlstate": "25P01",
      "condition_name": "no_active_sql_transaction",
      "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.xact.18.6",
          "kind": "upstream_source",
          "source_role": "source_path",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/access/transam/xact.c",
          "sha256": "75b012c0b047d1dc905a30975c244beec366e45eac0dbf109fd21bcd611a8e39",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/transam/xact.c#L3724-L3749"
        },
        {
          "id": "doc.savepoint.18.6",
          "kind": "upstream_source",
          "source_role": "official_documentation",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "doc/src/sgml/ref/savepoint.sgml",
          "sha256": "aa6e167d373da6118249c87404a7b2ff8be8c7df790449814f1d9dc433bbd428",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/savepoint.sgml#L68-L78",
          "docs_url": "https://www.postgresql.org/docs/18/sql-savepoint.html"
        },
        {
          "id": "src.xact.savepoint.18.6",
          "kind": "upstream_source",
          "source_role": "source_path",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/access/transam/xact.c",
          "sha256": "75b012c0b047d1dc905a30975c244beec366e45eac0dbf109fd21bcd611a8e39",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/transam/xact.c#L4418-L4424"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "25P01 is no_active_sql_transaction in Class 25.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed condition row and macro.",
          "limits": "It is distinct from the branch-transaction condition 25005."
        },
        {
          "id": "savepoint-path",
          "statement": "The fixed xact.c paths report 25P01 when SAVEPOINT, RELEASE SAVEPOINT, or ROLLBACK TO SAVEPOINT is issued without an explicit transaction block; the selected SAVEPOINT path is ERROR.",
          "sources": [
            "src.xact.savepoint.18.6",
            "doc.savepoint.18.6",
            "src.calls.REL_18_6"
          ],
          "method": "Trace the SAVEPOINT state branch and compare the official savepoint boundary.",
          "limits": "Other no-active paths may be WARNING or use a different statement name; this case uses the SAVEPOINT ERROR path."
        },
        {
          "id": "runtime",
          "statement": "The selected SAVEPOINT case returned 25P01 on PostgreSQL 18.6 and 10.21, stayed IDLE in autocommit mode, and completed the explicit-block repair.",
          "sources": [
            "runtime",
            "runtime.25P01-batch2-latest-20260909.latest",
            "runtime.25P01-batch2-pg10-20260909.pg10"
          ],
          "method": "Read the selected summaries and structured diagnostics.",
          "limits": "The case covers SAVEPOINT outside a transaction block, not every warning or no-active path."
        },
        {
          "id": "warning-path",
          "statement": "The fixed xact.c source also uses 25P01 for no-transaction COMMIT/ROLLBACK warnings with \"there is no transaction in progress\", while COMMIT AND CHAIN and ROLLBACK AND CHAIN use the transaction-block error form.",
          "sources": [
            "src.xact.18.6",
            "src.calls.REL_18_6"
          ],
          "method": "Read the resolved report groups at the no-transaction COMMIT/ROLLBACK and transaction-chain branches.",
          "limits": "These warning/error paths are source-backed context, not the selected SAVEPOINT runtime case."
        }
      ],
      "messages": [
        {
          "id": "savepoint",
          "sqlstate": "25P01",
          "primary_template": "%s can only be used in transaction blocks",
          "severity_source": "ERROR for the selected SAVEPOINT path; the shared dynamic form can be WARNING in other branches.",
          "sources": [
            "src.xact.savepoint.18.6"
          ],
          "limits": "The %s substitution is the statement name; the selected message is SAVEPOINT can only be used in transaction blocks."
        },
        {
          "id": "no-transaction-warning",
          "sqlstate": "25P01",
          "primary_template": "there is no transaction in progress",
          "severity_source": "WARNING",
          "sources": [
            "src.xact.18.6"
          ],
          "limits": "Used by no-transaction COMMIT/ROLLBACK branches; it is not the selected SAVEPOINT ERROR."
        }
      ],
      "usage_evidence": [
        {
          "scope": "runtime",
          "status": "observed_runtime",
          "evidence_ids": [
            "runtime",
            "runtime.25P01-batch2-latest-20260909.latest",
            "runtime.25P01-batch2-pg10-20260909.pg10"
          ]
        },
        {
          "scope": "source-paths",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "identity",
            "savepoint-path"
          ]
        }
      ],
      "runtime": [
        {
          "id": "runtime.25P01-batch2-latest-20260909.latest",
          "run_id": "25P01-batch2-latest-20260909",
          "target": "latest",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "status": "passed",
          "case_status": "passed",
          "target_status": "passed",
          "cases": [
            "savepoint_without_transaction"
          ],
          "summary_sha256": "aa6294daccf84497125a2e823231f2f7f7c3909d16064761ae4e8d4783376027",
          "raw_sha256": "4bd89117ee074c9e6d7bc8fb0023b2dbea6cc2389c3e6956a4074b161ef0887a",
          "case_manifest": {
            "sha256": "49bc7e60ade603e07255a3096b94803423aa3a2fbd058a3aca604d4edfaf0072"
          },
          "snippet_registry": {
            "sha256": "a1ffffc778f82789f1c1ac4027a109fc76e4b315ef2e3a5bdbfc47c8f84ce951"
          },
          "observed": {
            "sqlstate": "25P01",
            "primary": "SAVEPOINT can only be used in transaction blocks",
            "after_error": "IDLE",
            "after_begin": "INTRANS",
            "final_status": "IDLE"
          }
        },
        {
          "id": "runtime.25P01-batch2-pg10-20260909.pg10",
          "run_id": "25P01-batch2-pg10-20260909",
          "target": "pg10",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "status": "passed",
          "case_status": "passed",
          "target_status": "passed",
          "cases": [
            "savepoint_without_transaction"
          ],
          "summary_sha256": "daa3bbb7722b859f4b759e3a8421138b6e5a38cf9d3037d32629daf4c923eda4",
          "raw_sha256": "af9d34a18019d994852fe38933d1f000b0bd6f2536d63c41e6365ba8d8b26864",
          "case_manifest": {
            "sha256": "49bc7e60ade603e07255a3096b94803423aa3a2fbd058a3aca604d4edfaf0072"
          },
          "snippet_registry": {
            "sha256": "a1ffffc778f82789f1c1ac4027a109fc76e4b315ef2e3a5bdbfc47c8f84ce951"
          },
          "observed": {
            "sqlstate": "25P01",
            "primary": "SAVEPOINT can only be used in transaction blocks",
            "after_error": "IDLE",
            "after_begin": "INTRANS",
            "final_status": "IDLE"
          }
        }
      ]
    },
    {
      "sqlstate": "25P02",
      "condition_name": "in_failed_sql_transaction",
      "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.postgres.18.6",
          "kind": "upstream_source",
          "source_role": "source_path",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/tcop/postgres.c",
          "sha256": "9fb62275b1badf94d01ab351337b60410cd9b3ab1fe63fa9f23d6d2185a21061",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/tcop/postgres.c#L1127-L1140"
        },
        {
          "id": "doc.libpq.18.6",
          "kind": "upstream_source",
          "source_role": "official_documentation",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "doc/src/sgml/libpq.sgml",
          "sha256": "a91ce8f29dde162245d2f35f839e8b7192f62a57e01020b80564af65edd09440",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/libpq.sgml#L2818-L2835",
          "docs_url": "https://www.postgresql.org/docs/18/libpq-status.html"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "25P02 is in_failed_sql_transaction in Class 25.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed condition row and macro.",
          "limits": "It describes the transaction state after a prior error; it is often a secondary diagnostic."
        },
        {
          "id": "abort-state",
          "statement": "After an error aborts a transaction block, postgres.c rejects subsequent commands with 25P02 until COMMIT/ROLLBACK ends the block.",
          "sources": [
            "src.postgres.18.6",
            "src.calls.REL_18_6",
            "doc.libpq.18.6"
          ],
          "method": "Trace IsAbortedTransactionBlockState and the libpq PQTRANS_INERROR state.",
          "limits": "The first error remains the root cause; 25P02 tells the client to stop issuing ordinary work and end the transaction."
        },
        {
          "id": "runtime",
          "statement": "The selected case first raises 23505, then observes 25P02 while INERROR, rolls back to IDLE, and commits a valid row in a new explicit transaction on both targets.",
          "sources": [
            "runtime",
            "runtime.25P02-batch2-latest-20260909.latest",
            "runtime.25P02-batch2-pg10-20260909.pg10"
          ],
          "method": "Read the selected summaries and structured diagnostics.",
          "limits": "The repair demonstrates transaction-state recovery; it does not make the original duplicate valid."
        }
      ],
      "messages": [
        {
          "id": "aborted",
          "sqlstate": "25P02",
          "primary_template": "current transaction is aborted, commands ignored until end of transaction block",
          "severity_source": "ERROR",
          "sources": [
            "src.postgres.18.6"
          ],
          "limits": "The message is secondary to the earlier statement error; errdetail_abort may add context."
        }
      ],
      "usage_evidence": [
        {
          "scope": "runtime",
          "status": "observed_runtime",
          "evidence_ids": [
            "runtime",
            "runtime.25P02-batch2-latest-20260909.latest",
            "runtime.25P02-batch2-pg10-20260909.pg10"
          ]
        },
        {
          "scope": "source-paths",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "identity",
            "abort-state"
          ]
        }
      ],
      "runtime": [
        {
          "id": "runtime.25P02-batch2-latest-20260909.latest",
          "run_id": "25P02-batch2-latest-20260909",
          "target": "latest",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "status": "passed",
          "case_status": "passed",
          "target_status": "passed",
          "cases": [
            "failed_transaction_recovery"
          ],
          "summary_sha256": "6c06ba72ebf7ce12c171d8a45ceec233b03eedc0db98796221d00c8b0e34732d",
          "raw_sha256": "f03391117a5430c0611c72a1fa03ee6169f72575e69733a98023b0c9fb255788",
          "case_manifest": {
            "sha256": "dc6dea41ff7dc64f413c290151ee8200b11d66050eb5de499c64ef7aaf87f88c"
          },
          "snippet_registry": {
            "sha256": "04da3240dcf3c03fe60d13715f8187350fadf5b8d1f10e5b837acd45289759cd"
          },
          "observed": {
            "root_sqlstate": "23505",
            "root_primary": "duplicate key value violates unique constraint \"items_note_key\"",
            "sqlstate": "25P02",
            "primary": "current transaction is aborted, commands ignored until end of transaction block",
            "after_root_error": "INERROR",
            "after_25P02": "INERROR",
            "after_rollback": "IDLE",
            "final_status": "IDLE",
            "rows_after_retry": [
              [
                1,
                "seed"
              ],
              [
                2,
                "repaired"
              ]
            ]
          }
        },
        {
          "id": "runtime.25P02-batch2-pg10-20260909.pg10",
          "run_id": "25P02-batch2-pg10-20260909",
          "target": "pg10",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "status": "passed",
          "case_status": "passed",
          "target_status": "passed",
          "cases": [
            "failed_transaction_recovery"
          ],
          "summary_sha256": "722e8d8c8ddc1301c1c7acb98d9e6442dde6f3a2020246b30775dec8c98a3847",
          "raw_sha256": "97d4ce9f816c98c09408bd00921a97e33708ccf52ca10da0682ab7238ef377a6",
          "case_manifest": {
            "sha256": "dc6dea41ff7dc64f413c290151ee8200b11d66050eb5de499c64ef7aaf87f88c"
          },
          "snippet_registry": {
            "sha256": "04da3240dcf3c03fe60d13715f8187350fadf5b8d1f10e5b837acd45289759cd"
          },
          "observed": {
            "root_sqlstate": "23505",
            "root_primary": "duplicate key value violates unique constraint \"items_note_key\"",
            "sqlstate": "25P02",
            "primary": "current transaction is aborted, commands ignored until end of transaction block",
            "after_root_error": "INERROR",
            "after_25P02": "INERROR",
            "after_rollback": "IDLE",
            "final_status": "IDLE",
            "rows_after_retry": [
              [
                1,
                "seed"
              ],
              [
                2,
                "repaired"
              ]
            ]
          }
        }
      ]
    },
    {
      "sqlstate": "25P03",
      "condition_name": "idle_in_transaction_session_timeout",
      "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.postgres.18.6",
          "kind": "upstream_source",
          "source_role": "source_path",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/tcop/postgres.c",
          "sha256": "9fb62275b1badf94d01ab351337b60410cd9b3ab1fe63fa9f23d6d2185a21061",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/tcop/postgres.c#L3473-L3501"
        },
        {
          "id": "src.config.18.6",
          "kind": "upstream_source",
          "source_role": "official_documentation",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "doc/src/sgml/config.sgml",
          "sha256": "ffca322c15315ba670733d6b320f23cbba7374db0d18937298ffc07b58799ef6",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/config.sgml#L10252-L10347",
          "docs_url": "https://www.postgresql.org/docs/18/runtime-config-client.html"
        },
        {
          "id": "doc.monitoring.18.6",
          "kind": "upstream_source",
          "source_role": "official_documentation",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "doc/src/sgml/monitoring.sgml",
          "sha256": "06b147f8d966fe46821871703ffcee8a3449cc3f7de5b64b9177f48569fe96f6",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/monitoring.sgml#L706-L875",
          "docs_url": "https://www.postgresql.org/docs/18/monitoring-stats.html"
        },
        {
          "id": "src.system_views.18.6",
          "kind": "upstream_source",
          "source_role": "source_path",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/catalog/system_views.sql",
          "sha256": "418f4ae7472fe0742e6fbdc7a055581602c5131e082aa6f17e2c7269bf711972",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/catalog/system_views.sql#L604-L605",
          "docs_url": "https://www.postgresql.org/docs/18/view-pg-settings.html"
        },
        {
          "id": "doc.protocol.18.6",
          "kind": "upstream_source",
          "source_role": "official_documentation",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "doc/src/sgml/protocol.sgml",
          "sha256": "745339e07ebbc2bb67d98b258e25772ada644ef26011e3cd6b3fcbb435235f89",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/protocol.sgml#L61-L65",
          "docs_url": "https://www.postgresql.org/docs/18/protocol.html"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "25P03 is idle_in_transaction_session_timeout in Class 25.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed condition row and macro.",
          "limits": "The code is emitted at session termination severity FATAL in the selected path."
        },
        {
          "id": "timeout-path",
          "statement": "ProcessInterrupts emits FATAL 25P03 after the session has remained idle inside an open transaction longer than idle_in_transaction_session_timeout.",
          "sources": [
            "src.postgres.18.6",
            "src.config.18.6",
            "src.calls.REL_18_6"
          ],
          "method": "Trace the timeout interrupt and the fixed configuration documentation.",
          "limits": "The server terminates the connection; ROLLBACK cannot be sent through that dead session."
        },
        {
          "id": "runtime",
          "statement": "Both selected targets received FATAL 25P03 for the exact backend PID, and a fresh owner connection successfully ran SELECT 1 after termination.",
          "sources": [
            "runtime",
            "runtime.25P03-batch2c-latest-20260909.latest",
            "runtime.25P03-batch2c-pg10-20260909.pg10"
          ],
          "method": "Match collector records by PID, SQLSTATE, and message, then probe a fresh connection.",
          "limits": "The selected timeout is 300 ms in a runner-owned disposable target; production timeout policy is deployment-specific."
        },
        {
          "id": "diagnosis-observer-boundary",
          "statement": "The fixed monitoring documentation defines pg_stat_activity as one row per server process with current activity, including xact_start and state_change; pg_settings is defined over pg_show_all_settings for the current backend. Capture timeout settings on the timed session itself, because SHOW or pg_settings on an observer connection cannot establish another backend's effective SET value.",
          "sources": [
            "doc.monitoring.18.6",
            "src.system_views.18.6"
          ],
          "method": "Read the fixed monitoring view documentation and system-view definition before writing the observer/session diagnostic split.",
          "limits": "Visibility of pg_stat_activity fields depends on observer privileges; the selected runtime records establish PID/log correlation, not universal monitoring permissions."
        },
        {
          "id": "state-scope",
          "statement": "The fixed monitoring view distinguishes idle in transaction from idle in transaction (aborted); the timeout documentation's open-transaction scope covers idle waiting, while the selected runtime demonstrates only the non-aborted INTRANS path.",
          "sources": [
            "doc.monitoring.18.6",
            "src.config.18.6"
          ],
          "method": "Read the fixed pg_stat_activity state definitions alongside the timeout GUC description and compare them with the selected runtime status.",
          "limits": "No aborted-transaction timeout was run in this batch; preserve any earlier root error and 25P02 separately when diagnosing that state."
        },
        {
          "id": "termination-rollback",
          "statement": "The fixed protocol documentation states that when the backend closes a connection it rolls back any open incomplete transaction before exiting; the driver cannot send a later ROLLBACK on that closed session.",
          "sources": [
            "doc.protocol.18.6"
          ],
          "method": "Read the fixed protocol session-termination rule and align the recovery prose with the FATAL path.",
          "limits": "This establishes server-side rollback on forced connection close; it does not resolve a separate network failure after a client may have sent COMMIT."
        }
      ],
      "messages": [
        {
          "id": "fatal",
          "sqlstate": "25P03",
          "primary_template": "terminating connection due to idle-in-transaction timeout",
          "severity_source": "FATAL",
          "sources": [
            "src.postgres.18.6"
          ],
          "limits": "This is a static FATAL message; the driver may expose or omit SQLSTATE depending on client stack."
        }
      ],
      "usage_evidence": [
        {
          "scope": "runtime",
          "status": "observed_runtime",
          "evidence_ids": [
            "runtime",
            "runtime.25P03-batch2c-latest-20260909.latest",
            "runtime.25P03-batch2c-pg10-20260909.pg10"
          ]
        },
        {
          "scope": "source-paths",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "identity",
            "timeout-path"
          ]
        }
      ],
      "runtime": [
        {
          "id": "runtime.25P03-batch2c-latest-20260909.latest",
          "run_id": "25P03-batch2c-latest-20260909",
          "target": "latest",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "status": "passed",
          "case_status": "passed",
          "target_status": "passed",
          "cases": [
            "idle_in_transaction_timeout"
          ],
          "summary_sha256": "ec210989486eb92bda87e874942b5987d23f121f914c780e30851f3fe04e9379",
          "raw_sha256": "eeb467a1908730a03d6eb9cf1e1319a5d658dcb4a0bb42d0907f8045682778bf",
          "snippet_registry": {
            "sha256": "95fd079c8bca77c6e3ffc398e404a218e4f810e5fa36e30127cbc6470a6d6eb2"
          },
          "case_manifest": {
            "sha256": "e6c8d08f3b964c308d1a2c87f64919aa7d914db438456658afa230383c7f27eb"
          },
          "observed": {
            "sqlstate": "25P03",
            "severity": "FATAL",
            "primary": "terminating connection due to idle-in-transaction timeout",
            "backend_pid": 26447,
            "status_before_timeout": "INTRANS",
            "original_connection_closed": true,
            "collector_csv_sqlstate": "25P03",
            "collector_csv_error_severity": "FATAL",
            "collector_json_sqlstate": "25P03",
            "collector_json_error_severity": "FATAL",
            "fresh_connection_probe": 1,
            "fresh_connection_status": "IDLE",
            "recovery_requires_new_connection": true
          }
        },
        {
          "id": "runtime.25P03-batch2c-pg10-20260909.pg10",
          "run_id": "25P03-batch2c-pg10-20260909",
          "target": "pg10",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "status": "passed",
          "case_status": "passed",
          "target_status": "passed",
          "cases": [
            "idle_in_transaction_timeout"
          ],
          "summary_sha256": "a76cbc2408369f7baca614ed533cba18d8b7f105d7fd3319107be5c01143917d",
          "raw_sha256": "cc716ef184879dac6e0e6885922e940faa0bfed5ef22ef64e479403db499c7e8",
          "snippet_registry": {
            "sha256": "95fd079c8bca77c6e3ffc398e404a218e4f810e5fa36e30127cbc6470a6d6eb2"
          },
          "case_manifest": {
            "sha256": "e6c8d08f3b964c308d1a2c87f64919aa7d914db438456658afa230383c7f27eb"
          },
          "observed": {
            "sqlstate": "25P03",
            "severity": "FATAL",
            "primary": "terminating connection due to idle-in-transaction timeout",
            "backend_pid": 81,
            "status_before_timeout": "INTRANS",
            "original_connection_closed": true,
            "collector_csv_sqlstate": "25P03",
            "collector_csv_error_severity": "FATAL",
            "collector_json_sqlstate": null,
            "collector_json_error_severity": null,
            "fresh_connection_probe": 1,
            "fresh_connection_status": "IDLE",
            "recovery_requires_new_connection": true
          }
        }
      ]
    },
    {
      "sqlstate": "25P04",
      "condition_name": "transaction_timeout",
      "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.postgres.18.6",
          "kind": "upstream_source",
          "source_role": "source_path",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/tcop/postgres.c",
          "sha256": "9fb62275b1badf94d01ab351337b60410cd9b3ab1fe63fa9f23d6d2185a21061",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/tcop/postgres.c#L3473-L3501"
        },
        {
          "id": "src.config.18.6",
          "kind": "upstream_source",
          "source_role": "official_documentation",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "doc/src/sgml/config.sgml",
          "sha256": "ffca322c15315ba670733d6b320f23cbba7374db0d18937298ffc07b58799ef6",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/config.sgml#L10252-L10347",
          "docs_url": "https://www.postgresql.org/docs/18/runtime-config-client.html"
        },
        {
          "id": "doc.monitoring.18.6",
          "kind": "upstream_source",
          "source_role": "official_documentation",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "doc/src/sgml/monitoring.sgml",
          "sha256": "06b147f8d966fe46821871703ffcee8a3449cc3f7de5b64b9177f48569fe96f6",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/monitoring.sgml#L706-L875",
          "docs_url": "https://www.postgresql.org/docs/18/monitoring-stats.html"
        },
        {
          "id": "src.system_views.18.6",
          "kind": "upstream_source",
          "source_role": "source_path",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/catalog/system_views.sql",
          "sha256": "418f4ae7472fe0742e6fbdc7a055581602c5131e082aa6f17e2c7269bf711972",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/catalog/system_views.sql#L604-L605",
          "docs_url": "https://www.postgresql.org/docs/18/view-pg-settings.html"
        },
        {
          "id": "doc.protocol.18.6",
          "kind": "upstream_source",
          "source_role": "official_documentation",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "doc/src/sgml/protocol.sgml",
          "sha256": "745339e07ebbc2bb67d98b258e25772ada644ef26011e3cd6b3fcbb435235f89",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/protocol.sgml#L61-L65",
          "docs_url": "https://www.postgresql.org/docs/18/protocol.html"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "25P04 is transaction_timeout in Class 25.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed condition row and macro.",
          "limits": "The locked catalogue first observes this condition in PostgreSQL 17.0; no earlier runtime claim is made."
        },
        {
          "id": "timeout-path",
          "statement": "ProcessInterrupts emits FATAL 25P04 when an explicit or implicitly started transaction exceeds transaction_timeout.",
          "sources": [
            "src.postgres.18.6",
            "src.config.18.6",
            "src.calls.REL_18_6"
          ],
          "method": "Trace the timeout interrupt and the fixed configuration documentation.",
          "limits": "The selected PG10 target lacks this setting and is explicitly not applicable; the session is terminated when the path fires."
        },
        {
          "id": "runtime",
          "statement": "The selected PostgreSQL 18.6 case received FATAL 25P04 for the exact backend PID and recovered only by opening a fresh connection; the PG10 case is not applicable.",
          "sources": [
            "runtime",
            "runtime.25P04-batch2c-latest-20260909.latest",
            "runtime.25P04-batch2c-pg10-20260909.pg10"
          ],
          "method": "Match collector records by PID, SQLSTATE, and message, then probe a fresh connection.",
          "limits": "This verifies 18.6 and the PG10 applicability boundary only; it does not claim all intermediate releases without an adjacent source check."
        },
        {
          "id": "diagnosis-observer-boundary",
          "statement": "The fixed monitoring documentation defines pg_stat_activity as one row per server process with current activity, including xact_start and state_change; pg_settings is defined over pg_show_all_settings for the current backend. Capture timeout settings on the timed session itself, because SHOW or pg_settings on an observer connection cannot establish another backend's effective SET value.",
          "sources": [
            "doc.monitoring.18.6",
            "src.system_views.18.6"
          ],
          "method": "Read the fixed monitoring view documentation and system-view definition before writing the observer/session diagnostic split.",
          "limits": "Visibility of pg_stat_activity fields depends on observer privileges; the selected runtime records establish PID/log correlation, not universal monitoring permissions."
        },
        {
          "id": "termination-rollback",
          "statement": "The fixed protocol documentation states that when the backend closes a connection it rolls back any open incomplete transaction before exiting; the driver cannot send a later ROLLBACK on that closed session.",
          "sources": [
            "doc.protocol.18.6"
          ],
          "method": "Read the fixed protocol session-termination rule and align the recovery prose with the FATAL path.",
          "limits": "This establishes server-side rollback on forced connection close; it does not resolve a separate network failure after a client may have sent COMMIT."
        },
        {
          "id": "runtime.version-boundary",
          "statement": "On the fixed availability-boundary registry case, PostgreSQL 16.15 rejects SHOW transaction_timeout with 42704 and remains IDLE, while PostgreSQL 17.11 receives FATAL 25P04 after a 300 ms timeout in an idle-in-transaction session; the original session closes and a fresh connection is IDLE.",
          "sources": [
            "src.config.18.6",
            "doc.protocol.18.6",
            "runtime.25P04-boundary-pg16-20260909.pg16",
            "runtime.25P04-boundary-pg17-20260909.pg17"
          ],
          "method": "Compare the fixed PG16 availability probe and PG17 timeout summaries, including driver diagnostics, both collector severities, PID correlation, termination, and fresh-connection recovery.",
          "limits": "This is a bounded PG16.15/PG17.11 comparison for transaction_timeout. PG16 42704 is not 25P04 coverage; the records do not replace the selected 18.6 run or establish every intermediate minor release."
        }
      ],
      "messages": [
        {
          "id": "fatal",
          "sqlstate": "25P04",
          "primary_template": "terminating connection due to transaction timeout",
          "severity_source": "FATAL",
          "sources": [
            "src.postgres.18.6"
          ],
          "limits": "This is a static FATAL message; the driver may expose or omit SQLSTATE depending on client stack."
        }
      ],
      "usage_evidence": [
        {
          "scope": "transaction-timeout-latest",
          "status": "observed_runtime",
          "evidence_ids": [
            "runtime",
            "runtime.25P04-batch2c-latest-20260909.latest"
          ]
        },
        {
          "scope": "pg10-applicability",
          "status": "definition_only",
          "evidence_ids": [
            "runtime.25P04-batch2c-pg10-20260909.pg10"
          ]
        },
        {
          "scope": "source-paths",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "identity",
            "timeout-path"
          ]
        },
        {
          "scope": "transaction-timeout-pg17-boundary",
          "status": "observed_runtime",
          "evidence_ids": [
            "runtime.version-boundary",
            "runtime.25P04-boundary-pg17-20260909.pg17"
          ],
          "notes": "The separate PG17.11 boundary case observed FATAL 25P04 with CSV/JSON correlation and fresh-connection recovery; it remains outside the selected base case count."
        },
        {
          "scope": "transaction-timeout-pg16-availability",
          "status": "definition_only",
          "evidence_ids": [
            "runtime.version-boundary",
            "runtime.25P04-boundary-pg16-20260909.pg16"
          ],
          "notes": "PG16.15 returned 42704 for the unavailable setting and remained IDLE; this is availability evidence only, not a 25P04 observation."
        }
      ],
      "runtime": [
        {
          "id": "runtime.25P04-batch2c-latest-20260909.latest",
          "run_id": "25P04-batch2c-latest-20260909",
          "target": "latest",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "status": "passed",
          "case_status": "passed",
          "target_status": "passed",
          "cases": [
            "transaction_timeout"
          ],
          "summary_sha256": "a01d53576c6c15395d88f85039e10d792fbfc72042fd355c14aea06e779fc20f",
          "raw_sha256": "604f0195a1736b0e1cc25d5dc27daaa39647ecaf6dd4815284abe34c98cc3c1e",
          "snippet_registry": {
            "sha256": "d05a26e56716c5c8c178f741843e6b14be87423ec9d1eb1a026ff67a57ce4658"
          },
          "case_manifest": {
            "sha256": "7ec049ed04b847e80c6770278f3dca1b3ef5357d27bada2a2f3e1a98e955e950"
          },
          "observed": {
            "sqlstate": "25P04",
            "severity": "FATAL",
            "primary": "terminating connection due to transaction timeout",
            "backend_pid": 30576,
            "status_before_timeout": "INTRANS",
            "original_connection_closed": true,
            "collector_csv_sqlstate": "25P04",
            "collector_csv_error_severity": "FATAL",
            "collector_json_sqlstate": "25P04",
            "collector_json_error_severity": "FATAL",
            "fresh_connection_probe": 1,
            "fresh_connection_status": "IDLE",
            "recovery_requires_new_connection": true
          }
        },
        {
          "id": "runtime.25P04-batch2c-pg10-20260909.pg10",
          "run_id": "25P04-batch2c-pg10-20260909",
          "target": "pg10",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "status": "not_applicable",
          "case_status": "not_applicable",
          "target_status": "passed",
          "cases": [
            "transaction_timeout"
          ],
          "summary_sha256": "2031245d82e9963d70c7f1b969ebf7a3fc5fd308c646501e9e158a6723dafc05",
          "raw_sha256": "30249f5670f41a2381d3934a9ab40c9e4317e5831c5d3a1941e0a725d5454260",
          "snippet_registry": {
            "sha256": "d05a26e56716c5c8c178f741843e6b14be87423ec9d1eb1a026ff67a57ce4658"
          },
          "case_manifest": {
            "sha256": "7ec049ed04b847e80c6770278f3dca1b3ef5357d27bada2a2f3e1a98e955e950"
          },
          "observed": {
            "server_version_num": 100021,
            "setting": "transaction_timeout",
            "case_status": "not_applicable",
            "preflight": "minimum_version",
            "minimum_version": 170000,
            "setting_probe_skipped": true
          }
        },
        {
          "id": "runtime.25P04-boundary-pg16-20260909.pg16",
          "run_id": "25P04-boundary-pg16-20260909",
          "target": "pg16",
          "server_version": "16.15 (Debian 16.15-1.pgdg13+2)",
          "server_version_num": 160015,
          "status": "not_applicable",
          "case_status": "passed",
          "target_status": "passed",
          "cases": [
            "transaction_timeout_version_boundary"
          ],
          "summary_sha256": "96faef46bcf544732c797ef975add02a6b06684821a4df7e99448aa2355e08d1",
          "raw_sha256": "80fbaa2148e40c6c9239c68a44d4659f485e18aa8dfcdf4451a2496a609a4ff0",
          "snippet_registry": {
            "sha256": "b25b99aa679f058e02229dd8d4ecd1ae4af41d11b19f80199f013da118ef3112"
          },
          "case_manifest": {
            "sha256": "84064c260277d4051404d55d1e912d6f6ebafcea2ef681382cf854a0e79ec7ed"
          },
          "observed": {
            "setting": "transaction_timeout",
            "availability_sqlstate": "42704",
            "availability_severity": "ERROR",
            "availability_primary": "unrecognized configuration parameter \"transaction_timeout\"",
            "status_after_probe": "IDLE",
            "fresh_connection_probe": 1,
            "natural_25P04_observed": false
          },
          "selection_status": "selected_boundary_comparison",
          "limits": "The case passed its availability assertions, but this target does not have the setting. The 42704 probe is retained as a version comparison and is not counted as a 25P04 runtime."
        },
        {
          "id": "runtime.25P04-boundary-pg17-20260909.pg17",
          "run_id": "25P04-boundary-pg17-20260909",
          "target": "pg17",
          "server_version": "17.11 (Debian 17.11-1.pgdg13+2)",
          "server_version_num": 170011,
          "status": "passed",
          "case_status": "passed",
          "target_status": "passed",
          "cases": [
            "transaction_timeout_version_boundary"
          ],
          "summary_sha256": "3342eea9eb7a3ed2dc24f56a321bd648444e074f45f08ec5bc9adc3b2c2dd1f7",
          "raw_sha256": "61e5e0ff62adc6d1744c61a36167ca6e4f754ebbefd905ab1002bf10c2e4cb8f",
          "snippet_registry": {
            "sha256": "b25b99aa679f058e02229dd8d4ecd1ae4af41d11b19f80199f013da118ef3112"
          },
          "case_manifest": {
            "sha256": "84064c260277d4051404d55d1e912d6f6ebafcea2ef681382cf854a0e79ec7ed"
          },
          "observed": {
            "setting": "transaction_timeout",
            "timeout_ms": 300,
            "status_before_timeout": "INTRANS",
            "sqlstate": "25P04",
            "driver_severity": "FATAL",
            "primary": "terminating connection due to transaction timeout",
            "backend_pid": 73,
            "collector_csv_sqlstate": "25P04",
            "collector_csv_severity": "FATAL",
            "collector_json_sqlstate": "25P04",
            "collector_json_severity": "FATAL",
            "original_connection_closed": true,
            "fresh_connection_probe": 1,
            "fresh_connection_status": "IDLE",
            "natural_25P04_observed": true
          },
          "selection_status": "selected_boundary_comparison",
          "limits": "This separate PG17.11 boundary case demonstrates the natural FATAL path and fresh-session recovery; it does not replace or inflate the selected base 18.6 case."
        }
      ]
    },
    {
      "sqlstate": "26000",
      "condition_name": "invalid_sql_statement_name",
      "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.prepare.18.6",
          "kind": "upstream_source",
          "source_role": "source_path",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/prepare.c",
          "sha256": "e37fbd5f7618e5554561d9293d8c3af7cf3190c62c5c6bbceb3fe8b97be17956",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/prepare.c#L451-L454"
        },
        {
          "id": "src.postgres.18.6",
          "kind": "upstream_source",
          "source_role": "source_path",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/tcop/postgres.c",
          "sha256": "9fb62275b1badf94d01ab351337b60410cd9b3ab1fe63fa9f23d6d2185a21061",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/tcop/postgres.c#L1670-L1672"
        },
        {
          "id": "doc.prepare.18.6",
          "kind": "upstream_source",
          "source_role": "official_documentation",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "doc/src/sgml/ref/prepare.sgml",
          "sha256": "0980f4925bdc3df25eaf4ca302b0ec43822731023a646aacebd8b01f69b2be71",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/prepare.sgml",
          "docs_url": "https://www.postgresql.org/docs/18/sql-prepare.html"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "26000 is the invalid_sql_statement_name condition in Class 26.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes.txt row and macro mapping.",
          "limits": "The definition does not identify which SQL statement resource is missing."
        },
        {
          "id": "server-path",
          "statement": "FetchPreparedStatement emits the source template prepared statement \"%s\" does not exist when a named prepared statement is absent.",
          "sources": [
            "src.prepare.18.6",
            "src.calls.REL_18_6"
          ],
          "method": "Trace ERRCODE_UNDEFINED_PSTATEMENT and errmsg in prepare.c.",
          "limits": "The name is dynamic; this source path is from REL_18_6."
        },
        {
          "id": "unnamed-path",
          "statement": "The fixed postgres.c extended-query path emits unnamed prepared statement does not exist with SQLSTATE 26000 when the unnamed prepared statement is absent.",
          "sources": [
            "src.postgres.18.6",
            "src.calls.REL_18_6"
          ],
          "method": "Trace ERRCODE_UNDEFINED_PSTATEMENT and errmsg in the fixed unnamed-statement protocol path.",
          "limits": "This is a protocol/extended-query path and is not the selected named-statement runtime case; the message has no server-side name substitution."
        },
        {
          "id": "session-scope",
          "statement": "PREPARE creates a session-local named statement; DEALLOCATE removes it, so EXECUTE must run on the same backend where the statement was created.",
          "sources": [
            "doc.prepare.18.6"
          ],
          "method": "Use the fixed PREPARE/EXECUTE documentation and the runner case lifecycle.",
          "limits": "Connection pools can change backend sessions; this is a client/pool condition, not a promise about a particular driver."
        },
        {
          "id": "runtime",
          "statement": "The selected 26000 case passed on PostgreSQL 18.6 and 10.21 with the structured SQLSTATE, transaction-state, and repair assertions recorded in the runtime entries.",
          "sources": [
            "runtime.26000-batch34-latest-20260909.latest",
            "runtime.26000-batch34-pg10-20260909.pg10"
          ],
          "method": "Read the selected runner summaries and raw outputs tied to the shared snippet registry.",
          "limits": "This covers the selected mechanism only, not all source callers or all driver/pool behavior."
        }
      ],
      "messages": [
        {
          "id": "message.prepared-missing",
          "sqlstate": "26000",
          "primary_template": "prepared statement \"%s\" does not exist",
          "severity_source": "ERROR",
          "sources": [
            "src.prepare.18.6"
          ],
          "limits": "The unnamed prepared-statement path has a separate source template."
        },
        {
          "id": "message.unnamed-prepared-missing",
          "sqlstate": "26000",
          "primary_template": "unnamed prepared statement does not exist",
          "severity_source": "ERROR",
          "sources": [
            "src.postgres.18.6"
          ],
          "limits": "This fixed protocol path has no server-side statement-name substitution."
        }
      ],
      "usage_evidence": [
        {
          "scope": "26000-runtime",
          "status": "observed_runtime",
          "evidence_ids": [
            "runtime",
            "runtime.26000-batch34-latest-20260909.latest",
            "runtime.26000-batch34-pg10-20260909.pg10"
          ]
        },
        {
          "scope": "condition-and-source-paths",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "identity",
            "server-path",
            "session-scope",
            "unnamed-path"
          ]
        }
      ],
      "runtime": [
        {
          "id": "runtime.26000-batch34-latest-20260909.latest",
          "run_id": "26000-batch34-latest-20260909",
          "target": "latest",
          "server_version": "18.6 (Homebrew)",
          "status": "passed",
          "cases": [
            "prepared_statement_recovery"
          ],
          "summary_sha256": "e6392b850858519b83a78884e27ba0e18c3f024b262549c1a63bc45648bc3265",
          "raw_sha256": "abdac32a6667920c0106f2bbd141bf47bb2614a0477a4e6a4322de13242a44ef",
          "case_manifest": {
            "sha256": "8a93385404eaff2506cf2da0c35e4c079b0f2a5750445fd5f2bc42130b54a6ca"
          },
          "observed": {
            "sqlstate": "26000",
            "primary": "prepared statement \"prepared_recovery_a347d8\" does not exist",
            "severity": "ERROR",
            "statuses": {
              "after_missing": "IDLE",
              "after_recreate": "IDLE"
            },
            "repair": {
              "values": {
                "after_recreate": 2,
                "before_deallocate": 2
              }
            },
            "connection_autocommit": true
          },
          "snippet_registry": {
            "sha256": "b9fdbb48371e0d9902cb9e055ececc4878c38422773a8a1571651d9952809032"
          }
        },
        {
          "id": "runtime.26000-batch34-pg10-20260909.pg10",
          "run_id": "26000-batch34-pg10-20260909",
          "target": "pg10",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "status": "passed",
          "cases": [
            "prepared_statement_recovery"
          ],
          "summary_sha256": "ae189293998b2d4d288658165f9ee288a89baef4227910e5c9aaec09d3a42099",
          "raw_sha256": "7dd35033652b224890790b92dffbfb00dce8f51e4e479fbfcd1590473b508f83",
          "case_manifest": {
            "sha256": "8a93385404eaff2506cf2da0c35e4c079b0f2a5750445fd5f2bc42130b54a6ca"
          },
          "observed": {
            "sqlstate": "26000",
            "primary": "prepared statement \"prepared_recovery_8e5c66\" does not exist",
            "severity": "ERROR",
            "statuses": {
              "after_missing": "IDLE",
              "after_recreate": "IDLE"
            },
            "repair": {
              "values": {
                "after_recreate": 2,
                "before_deallocate": 2
              }
            },
            "connection_autocommit": true
          },
          "snippet_registry": {
            "sha256": "b9fdbb48371e0d9902cb9e055ececc4878c38422773a8a1571651d9952809032"
          }
        }
      ]
    },
    {
      "sqlstate": "27000",
      "condition_name": "triggered_data_change_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"
        },
        {
          "id": "src.trigger.18.6",
          "kind": "upstream_source",
          "source_role": "source_path",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/trigger.c",
          "sha256": "0a539af85b0de1a04779f92202e7bfc77d85ae6da1747ea32527c67f39084fbd",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/trigger.c#L3404-L3407"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "27000 is the triggered_data_change_violation condition in Class 27.",
          "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": "tuple to be updated was already modified by an operation triggered by the current command is a source-confirmed path for 27000.",
          "sources": [
            "src.trigger.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.triggered-data-change",
          "sqlstate": "27000",
          "primary_template": "tuple to be updated was already modified by an operation triggered by the current command",
          "severity_source": "ERROR",
          "sources": [
            "src.trigger.18.6"
          ],
          "limits": "The hint and any row identity are contextual; this is the fixed BEFORE-trigger same-tuple branch."
        },
        {
          "id": "message.triggered-data-change-hint",
          "sqlstate": "27000",
          "hint_template": "Consider using an AFTER trigger instead of a BEFORE trigger to propagate changes to other rows.",
          "severity_source": "ERROR",
          "sources": [
            "src.trigger.18.6"
          ],
          "limits": "The hint describes this source branch and is not a universal trigger migration rule."
        }
      ],
      "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": []
    },
    {
      "sqlstate": "28000",
      "condition_name": "invalid_authorization_specification",
      "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",
          "tag": "REL_18_6"
        },
        {
          "id": "src.calls.REL_10_23",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "00d16d3eb01b71ccf1b245c8f3102f9d0ec9f36fb02777b8dd1b99fcb263040c",
          "tag": "REL_10_23"
        },
        {
          "id": "src.miscinit-missing-role.18.6",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/init/miscinit.c",
          "sha256": "54bdb859c143a6c70d86067ccf2e124f59aa0852e5705bb653652e41a60af39a",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/init/miscinit.c#L802-L804"
        },
        {
          "id": "src.miscinit-missing-role.10.23",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_10_23",
          "commit": "02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4",
          "path": "src/backend/utils/init/miscinit.c",
          "sha256": "c4d2e234f96644d43aad9e9a6728df693e7f75175f05a550701413ceee70fb82",
          "url": "https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/utils/init/miscinit.c#L516-L518"
        },
        {
          "id": "manifest.28000",
          "kind": "local_artifact",
          "source_role": "case_manifest",
          "sha256": "188147e72a59764e242b45c406cccd69a56cd8101b210403ebf33cec273693cc",
          "tag": "workspace"
        },
        {
          "id": "snippet-registry.28000",
          "kind": "local_artifact",
          "source_role": "snippet_registry",
          "sha256": "30eca9ec77f1b393fb74d2c53a660a7e601da82c26919f453c6fb18bc418f43a",
          "tag": "workspace"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "statement": "28000 is the invalid_authorization_specification condition in Class 28.",
          "method": "Read the fixed errcodes.txt definition and the locked catalogue metadata.",
          "limits": "Directory identity does not identify every backend or client path.",
          "sources": [
            "src.errcodes.18.6"
          ]
        },
        {
          "id": "mechanism.backend-path",
          "statement": "The fixed source paths associated with 28000 report the condition in the mechanism selected for this page.",
          "method": "Trace the resolved source call records at the fixed release commits and compare their dynamic message fields.",
          "limits": "Other calls can retain the same SQLSTATE with different context or text.",
          "sources": [
            "src.miscinit-missing-role.18.6",
            "src.miscinit-missing-role.10.23"
          ]
        },
        {
          "id": "runtime.representative-case",
          "statement": "The selected invalid_authorization case passed with the expected structured diagnostics, recovery assertions, and cleanup on PostgreSQL 18.6 and 10.21.",
          "method": "Run the shared registry case on isolated runner-owned latest and PG10 targets; inspect the final summaries and raw results.",
          "limits": "This covers the selected case and versions only; it does not generalize to every driver, proxy, or intermediate release.",
          "sources": [
            "snippet-registry.28000",
            "manifest.28000"
          ],
          "runtime": [
            "runtime.28000-conn-contract-latest.latest",
            "runtime.28000-conn-contract-pg10.pg10"
          ]
        },
        {
          "id": "startup-phase-boundary",
          "statement": "The selected missing-role producer runs during startup, emits a FATAL ErrorResponse, and leaves no usable session or transaction; the server ErrorResponse is therefore authoritative over a client exception with SQLSTATE null.",
          "method": "Compare the fixed miscinit.c source path with the selected raw server ErrorResponse and independent driver/probe observations.",
          "limits": "This is the selected missing-role startup branch; other Class 28 producers can occur in different authentication phases and use different diagnostics.",
          "sources": [
            "src.miscinit-missing-role.18.6",
            "runtime.28000-conn-contract-latest.latest"
          ]
        },
        {
          "id": "versions.catalogue-boundary",
          "statement": "The locked catalogue records 28000 in the listed snapshots; the runtime comparison here is limited to PostgreSQL 18.6 and 10.21.",
          "method": "Read the generated facts block and locked manifest, then compare the selected target summaries.",
          "limits": "Presence in a definition file is not an exact behavioral introduction; the two runtime targets do not prove all middle versions.",
          "sources": [
            "src.errcodes.18.6",
            "src.calls.REL_18_6",
            "src.calls.REL_10_23"
          ]
        }
      ],
      "messages": [
        {
          "id": "message.missing-role",
          "sqlstate": "28000",
          "severity_source": "explicit FATAL",
          "sources": [
            "src.miscinit-missing-role.18.6",
            "src.miscinit-missing-role.10.23"
          ],
          "primary_template": "role \"%s\" does not exist"
        }
      ],
      "usage_evidence": [
        {
          "scope": "SQLSTATE directory identity",
          "status": "definition_only",
          "evidence_ids": [
            "identity.class-and-condition",
            "src.errcodes.18.6"
          ]
        },
        {
          "scope": "Selected backend mechanism",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "mechanism.backend-path",
            "src.miscinit-missing-role.18.6",
            "src.miscinit-missing-role.10.23",
            "startup-phase-boundary"
          ]
        },
        {
          "scope": "Observed invalid_authorization on isolated targets",
          "status": "observed_runtime",
          "evidence_ids": [
            "runtime.representative-case",
            "snippet-registry.28000",
            "runtime.28000-conn-contract-latest.latest",
            "runtime.28000-conn-contract-pg10.pg10"
          ]
        },
        {
          "scope": "Locked release presence and bounded version comparison",
          "status": "definition_only",
          "evidence_ids": [
            "versions.catalogue-boundary",
            "src.errcodes.18.6"
          ]
        }
      ],
      "runtime": [
        {
          "id": "runtime.28000-conn-contract-latest.latest",
          "kind": "runtime_observation",
          "run_id": "28000-conn-contract-latest",
          "target": "latest",
          "status": "passed",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "cases": [
            "invalid_authorization"
          ],
          "summary_sha256": "a75bb39570a63f6e34212585e0330cbca4429c82b886663c5a49f8d9af169e2a",
          "raw_sha256": "2389db15803d76e92f3964d387aa15085de2cc094cfefdd2d25aa7790665fb40",
          "case_manifest_sha256": "188147e72a59764e242b45c406cccd69a56cd8101b210403ebf33cec273693cc",
          "snippet_registry": {
            "sha256": "30eca9ec77f1b393fb74d2c53a660a7e601da82c26919f453c6fb18bc418f43a"
          },
          "environment": {
            "target_kind": "latest",
            "server_version": "18.6 (Homebrew)",
            "server_version_num": "180006",
            "machine": "arm64",
            "platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O",
            "libpq_version": "18.6",
            "psycopg_version": "3.3.5",
            "python_version": "3.14.6 (main, Jun 10 2026, 10:03:53) [Clang 21.0.0 (clang-2100.0.123.102)]",
            "locale": "en_US.UTF-8",
            "lc_messages": "C",
            "log_destination": "csvlog,jsonlog"
          },
          "observed": {
            "collector": {
              "primary": "role \"u28000_missing_fbc912bb7e6f\" does not exist",
              "severity": "FATAL",
              "sqlstate": "28000"
            },
            "diagnostic": {
              "column_name": null,
              "constraint_name": null,
              "context": null,
              "datatype_name": null,
              "exception_type": "OperationalError",
              "internal_position": null,
              "internal_query": null,
              "message_detail": null,
              "message_hint": null,
              "message_primary": null,
              "schema_name": null,
              "severity": null,
              "severity_nonlocalized": null,
              "source_file": null,
              "source_function": null,
              "source_line": null,
              "sqlstate": null,
              "statement_position": null,
              "table_name": null,
              "text": "connection failed: connection to server at \"127.0.0.1\", port 60047 failed: FATAL:  role \"u28000_missing_fbc912bb7e6f\" does not exist"
            },
            "failed_connection_has_no_transaction": true,
            "missing_role": "u28000_missing_fbc912bb7e6f",
            "probe": 1,
            "probe_status": "IDLE",
            "server_error": {
              "C": "28000",
              "F": "miscinit.c",
              "L": "804",
              "M": "role \"u28000_missing_fbc912bb7e6f\" does not exist",
              "R": "InitializeSessionUserId",
              "S": "FATAL",
              "V": "FATAL"
            }
          },
          "assertions": [
            {
              "expected": "28000",
              "name": "server authorization SQLSTATE",
              "observed": "28000",
              "passed": true
            },
            {
              "expected": "FATAL",
              "name": "server authorization failure is FATAL",
              "observed": "FATAL",
              "passed": true
            },
            {
              "expected": "role \"u28000_missing_fbc912bb7e6f\" does not exist",
              "name": "server missing-role diagnostic",
              "observed": "role \"u28000_missing_fbc912bb7e6f\" does not exist",
              "passed": true
            },
            {
              "expected": "null (startup exception)",
              "name": "driver startup SQLSTATE boundary",
              "observed": null,
              "passed": true
            },
            {
              "expected": "SELECT 1 and IDLE",
              "name": "known connection remains usable",
              "observed": {
                "probe": 1,
                "status": "IDLE"
              },
              "passed": true
            }
          ],
          "cleanup": {
            "case": {
              "errors": [],
              "passed": true
            },
            "target_stop": {
              "argv": [
                "/opt/homebrew/Cellar/postgresql@18/18.6/bin/pg_ctl",
                "-D",
                "<local runtime artifact>",
                "-m",
                "fast",
                "-w",
                "stop"
              ],
              "elapsed_seconds": 0.109,
              "returncode": 0,
              "stderr": "",
              "stdout": "waiting for server to shut down.... done\nserver stopped\n"
            }
          },
          "limits": "Disposable runner-owned target only; this is a bounded mechanism case, not a guarantee for every client or network path."
        },
        {
          "id": "runtime.28000-conn-contract-pg10.pg10",
          "kind": "runtime_observation",
          "run_id": "28000-conn-contract-pg10",
          "target": "pg10",
          "status": "passed",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "cases": [
            "invalid_authorization"
          ],
          "summary_sha256": "3ae410746390cde17fa2d4c883361bbd6dc21726458c771ccabf0b32d01b14f8",
          "raw_sha256": "7ffc6c2d3c25c491c36c39de6257045670980520cd1da2462a6adf124bc0abaa",
          "case_manifest_sha256": "188147e72a59764e242b45c406cccd69a56cd8101b210403ebf33cec273693cc",
          "snippet_registry": {
            "sha256": "30eca9ec77f1b393fb74d2c53a660a7e601da82c26919f453c6fb18bc418f43a"
          },
          "environment": {
            "target_kind": "pg10",
            "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
            "server_version_num": "100021",
            "machine": "arm64",
            "platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O",
            "libpq_version": "18.6",
            "psycopg_version": "3.3.5",
            "python_version": "3.14.6 (main, Jun 10 2026, 10:03:53) [Clang 21.0.0 (clang-2100.0.123.102)]",
            "locale": "en_US.UTF-8",
            "lc_messages": "en_US.utf8",
            "log_destination": "csvlog"
          },
          "observed": {
            "collector": {
              "primary": "role \"u28000_missing_25282cee130f\" does not exist",
              "severity": "FATAL",
              "sqlstate": "28000"
            },
            "diagnostic": {
              "column_name": null,
              "constraint_name": null,
              "context": null,
              "datatype_name": null,
              "exception_type": "OperationalError",
              "internal_position": null,
              "internal_query": null,
              "message_detail": null,
              "message_hint": null,
              "message_primary": null,
              "schema_name": null,
              "severity": null,
              "severity_nonlocalized": null,
              "source_file": null,
              "source_function": null,
              "source_line": null,
              "sqlstate": null,
              "statement_position": null,
              "table_name": null,
              "text": "connection failed: connection to server at \"127.0.0.1\", port 60052 failed: FATAL:  role \"u28000_missing_25282cee130f\" does not exist"
            },
            "failed_connection_has_no_transaction": true,
            "missing_role": "u28000_missing_25282cee130f",
            "probe": 1,
            "probe_status": "IDLE",
            "server_error": {
              "C": "28000",
              "F": "miscinit.c",
              "L": "518",
              "M": "role \"u28000_missing_25282cee130f\" does not exist",
              "R": "InitializeSessionUserId",
              "S": "FATAL",
              "V": "FATAL"
            }
          },
          "assertions": [
            {
              "expected": "28000",
              "name": "server authorization SQLSTATE",
              "observed": "28000",
              "passed": true
            },
            {
              "expected": "FATAL",
              "name": "server authorization failure is FATAL",
              "observed": "FATAL",
              "passed": true
            },
            {
              "expected": "role \"u28000_missing_25282cee130f\" does not exist",
              "name": "server missing-role diagnostic",
              "observed": "role \"u28000_missing_25282cee130f\" does not exist",
              "passed": true
            },
            {
              "expected": "null (startup exception)",
              "name": "driver startup SQLSTATE boundary",
              "observed": null,
              "passed": true
            },
            {
              "expected": "SELECT 1 and IDLE",
              "name": "known connection remains usable",
              "observed": {
                "probe": 1,
                "status": "IDLE"
              },
              "passed": true
            }
          ],
          "cleanup": {
            "case": {
              "errors": [],
              "passed": true
            },
            "target_stop": {
              "cleanup": {
                "argv": [
                  "/usr/local/bin/docker",
                  "rm",
                  "-f",
                  "-v",
                  "sqlstate28000_28000conncontractpg10_pg10"
                ],
                "elapsed_seconds": 0.277,
                "returncode": 0,
                "stderr": "",
                "stdout": "sqlstate28000_28000conncontractpg10_pg10\n"
              },
              "inspect": {
                "argv": [
                  "/usr/local/bin/docker",
                  "inspect",
                  "sqlstate28000_28000conncontractpg10_pg10"
                ],
                "elapsed_seconds": 0.016,
                "returncode": 0,
                "stderr": "",
                "stdout": "[\n    {\n        \"Id\": \"aa430e5ff01d2e1b794673348c933c151d4d805a23436c75a86dffb22023f97e\",\n        \"Created\": \"2026-09-09T15:18:41.059632805Z\",\n        \"Path\": \"docker-entrypoint.sh\",\n        \"Args\": [\n            \"postgres\",\n            \"-c\",\n            \"listen_addresses=*\",\n            \"-c\",\n            \"log_destination=csvlog\",\n            \"-c\",\n            \"logging_collector=on\",\n            \"-c\",\n            \"log_directory=log\",\n            \"-c\",\n            \"log_filename=postgresql-%Y%m%d%H%M%S.log\",\n            \"-c\",\n            \"log_min_messages=error\",\n            \"-c\",\n            \"log_min_error_statement=error\",\n            \"-c\",\n            \"log_error_verbosity=verbose\",\n            \"-c\",\n            \"wal_level=logical\",\n            \"-c\",\n            \"max_wal_senders=10\",\n            \"-c\",\n            \"max_replication_slots=10\"\n        ],\n        \"State\": {\n            \"Status\": \"running\",\n            \"Running\": true,\n            \"Paused\": false,\n            \"Restarting\": false,\n            \"OOMKilled\": false,\n            \"Dead\": false,\n            \"Pid\": 55888,\n            \"ExitCode\": 0,\n            \"Error\": \"\",\n            \"StartedAt\": \"2026-09-09T15:18:41.160417763Z\",\n            \"FinishedAt\": \"0001-01-01T00:00:00Z\"\n        },\n        \"Image\": \"sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc\",\n        \"ResolvConfPath\": \"/var/lib/docker/containers/aa430e5ff01d2e1b794673348c933c151d4d805a23436c75a86dffb22023f97e/resolv.conf\",\n        \"HostnamePath\": \"/var/lib/docker/containers/aa430e5ff01d2e1b794673348c933c151d4d805a23436c75a86dffb22023f97e/hostname\",\n        \"HostsPath\": \"/var/lib/docker/containers/aa430e5ff01d2e1b794673348c933c151d4d805a23436c75a86dffb22023f97e/hosts\",\n        \"LogPath\": \"/var/lib/docker/containers/aa430e5ff01d2e1b794673348c933c151d4d805a23436c75a86dffb22023f97e/aa430e5ff01d2e1b794673348c933c151d4d805a23436c75a86dffb22023f97e-json.log\",\n        \"Name\": \"/sqlstate28000_28000conncontractpg10_pg10\",\n        \"RestartCount\": 0,\n        \"Driver\": \"overlayfs\",\n        \"Platform\": \"linux\",\n        \"MountLabel\": \"\",\n        \"ProcessLabel\": \"\",\n        \"AppArmorProfile\": \"\",\n        \"ExecIDs\": null,\n        \"HostConfig\": {\n            \"Binds\": null,\n            \"ContainerIDFile\": \"\",\n            \"LogConfig\": {\n                \"Type\": \"json-file\",\n                \"Config\": {}\n            },\n            \"NetworkMode\": \"bridge\",\n            \"PortBindings\": {\n                \"5432/tcp\": [\n                    {\n                        \"HostIp\": \"127.0.0.1\",\n                        \"HostPort\": \"\"\n                    }\n                ]\n            },\n            \"RestartPolicy\": {\n                \"Name\": \"no\",\n                \"MaximumRetryCount\": 0\n            },\n            \"AutoRemove\": false,\n            \"VolumeDriver\": \"\",\n            \"VolumesFrom\": null,\n            \"ConsoleSize\": [\n                0,\n                0\n            ],\n            \"CapAdd\": null,\n            \"CapDrop\": null,\n            \"CgroupnsMode\": \"private\",\n            \"Dns\": null,\n            \"DnsOptions\": [],\n            \"DnsSearch\": [],\n            \"ExtraHosts\": null,\n            \"GroupAdd\": null,\n            \"IpcMode\": \"private\",\n            \"Cgroup\": \"\",\n            \"Links\": null,\n            \"OomScoreAdj\": 0,\n            \"PidMode\": \"\",\n            \"Privileged\": false,\n            \"PublishAllPorts\": false,\n            \"ReadonlyRootfs\": false,\n            \"SecurityOpt\": null,\n            \"UTSMode\": \"\",\n            \"UsernsMode\": \"\",\n            \"ShmSize\": 67108864,\n            \"Runtime\": \"runc\",\n            \"Isolation\": \"\",\n            \"CpuShares\": 0,\n            \"Memory\": 0,\n            \"NanoCpus\": 0,\n            \"CgroupParent\": \"\",\n            \"BlkioWeight\": 0,\n            \"BlkioWeightDevice\": [],\n            \"BlkioDeviceReadBps\": [],\n            \"BlkioDeviceWriteBps\": [],\n            \"BlkioDeviceReadIOps\": [],\n            \"BlkioDeviceWriteIOps\": [],\n            \"CpuPeriod\": 0,\n            \"CpuQuota\": 0,\n            \"CpuRealtimePeriod\": 0,\n            \"CpuRealtimeRuntime\": 0,\n            \"CpusetCpus\": \"\",\n            \"CpusetMems\": \"\",\n            \"Devices\": [],\n            \"DeviceCgroupRules\": null,\n            \"DeviceRequests\": null,\n            \"MemoryReservation\": 0,\n            \"MemorySwap\": 0,\n            \"MemorySwappiness\": null,\n            \"OomKillDisable\": null,\n            \"PidsLimit\": null,\n            \"Ulimits\": [],\n            \"CpuCount\": 0,\n            \"CpuPercent\": 0,\n            \"IOMaximumIOps\": 0,\n            \"IOMaximumBandwidth\": 0,\n            \"MaskedPaths\": [\n                \"/proc/acpi\",\n                \"/proc/asound\",\n                \"/proc/interrupts\",\n                \"/proc/kcore\",\n                \"/proc/keys\",\n                \"/proc/latency_stats\",\n                \"/proc/sched_debug\",\n                \"/proc/scsi\",\n                \"/proc/timer_list\",\n                \"/proc/timer_stats\",\n                \"/sys/devices/virtual/powercap\",\n                \"/sys/firmware\"\n            ],\n            \"ReadonlyPaths\": [\n                \"/proc/bus\",\n                \"/proc/fs\",\n                \"/proc/irq\",\n                \"/proc/sys\",\n                \"/proc/sysrq-trigger\"\n            ]\n        },\n        \"Storage\": {\n            \"RootFS\": {\n                \"Snapshot\": {\n                    \"Name\": \"overlayfs\"\n                }\n            }\n        },\n        \"Mounts\": [\n            {\n                \"Type\": \"volume\",\n                \"Name\": \"52ed878f656abb229c5bda9d6e70f0823722b3a9bdb946c68912b58e7972582d\",\n                \"Source\": \"/var/lib/docker/volumes/52ed878f656abb229c5bda9d6e70f0823722b3a9bdb946c68912b58e7972582d/_data\",\n                \"Destination\": \"/var/lib/postgresql/data\",\n                \"Driver\": \"local\",\n                \"Mode\": \"\",\n                \"RW\": true,\n                \"Propagation\": \"\"\n            }\n        ],\n        \"Config\": {\n            \"Hostname\": \"aa430e5ff01d\",\n            \"Domainname\": \"\",\n            \"User\": \"\",\n            \"AttachStdin\": false,\n            \"AttachStdout\": false,\n            \"AttachStderr\": false,\n            \"ExposedPorts\": {\n                \"5432/tcp\": {}\n            },\n            \"Tty\": false,\n            \"OpenStdin\": false,\n            \"StdinOnce\": false,\n            \"Env\": [\n                \"POSTGRES_HOST_AUTH_METHOD=trust\",\n                \"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/10/bin\",\n                \"GOSU_VERSION=1.14\",\n                \"LANG=en_US.utf8\",\n                \"PG_MAJOR=10\",\n                \"PG_VERSION=10.21-1.pgdg90+1\",\n                \"PGDATA=/var/lib/postgresql/data\"\n            ],\n            \"Cmd\": [\n                \"postgres\",\n                \"-c\",\n                \"listen_addresses=*\",\n                \"-c\",\n                \"log_destination=csvlog\",\n                \"-c\",\n                \"logging_collector=on\",\n                \"-c\",\n                \"log_directory=log\",\n                \"-c\",\n                \"log_filename=postgresql-%Y%m%d%H%M%S.log\",\n                \"-c\",\n                \"log_min_messages=error\",\n                \"-c\",\n                \"log_min_error_statement=error\",\n                \"-c\",\n                \"log_error_verbosity=verbose\",\n                \"-c\",\n                \"wal_level=logical\",\n                \"-c\",\n                \"max_wal_senders=10\",\n                \"-c\",\n                \"max_replication_slots=10\"\n            ],\n            \"Image\": \"postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc\",\n            \"Volumes\": {\n                \"/var/lib/postgresql/data\": {}\n            },\n            \"WorkingDir\": \"\",\n            \"Entrypoint\": [\n                \"docker-entrypoint.sh\"\n            ],\n            \"Labels\": {},\n            \"StopSignal\": \"SIGINT\",\n            \"StopTimeout\": 1\n        },\n        \"NetworkSettings\": {\n            \"SandboxID\": \"6ad1c1780da682448a4a31261a60105621d397a0f6902f1b917072cc7ecf54d4\",\n            \"SandboxKey\": \"/var/run/docker/netns/6ad1c1780da6\",\n            \"Ports\": {\n                \"5432/tcp\": [\n                    {\n                        \"HostIp\": \"127.0.0.1\",\n                        \"HostPort\": \"60052\"\n                    }\n                ]\n            },\n            \"Networks\": {\n                \"bridge\": {\n                    \"IPAMConfig\": null,\n                    \"Links\": null,\n                    \"Aliases\": null,\n                    \"DriverOpts\": null,\n                    \"GwPriority\": 0,\n                    \"NetworkID\": \"aed51554f8cd8bac69ecd4f073e41e147fda7b458e9d95be2af472651f2e825c\",\n                    \"EndpointID\": \"ac018d4288c519a04bbcbb6c7cc99a7b6ffe0254915dc64f57b56777db9f4bc7\",\n                    \"Gateway\": \"172.17.0.1\",\n                    \"IPAddress\": \"172.17.0.53\",\n                    \"MacAddress\": \"96:d0:ac:e7:8c:a3\",\n                    \"IPPrefixLen\": 16,\n                    \"IPv6Gateway\": \"\",\n                    \"GlobalIPv6Address\": \"\",\n                    \"GlobalIPv6PrefixLen\": 0,\n                    \"DNSNames\": null\n                }\n            }\n        },\n        \"ImageManifestDescriptor\": {\n            \"mediaType\": \"application/vnd.docker.distribution.manifest.v2+json\",\n            \"digest\": \"sha256:52aada7978f1eef3b6b52a51afb7a3defd69254d00c946cb90d2ceb32b8ffce7\",\n            \"size\": 3246,\n            \"platform\": {\n                \"architecture\": \"arm64\",\n                \"os\": \"linux\",\n                \"variant\": \"v8\"\n            }\n        }\n    }\n]\n"
              }
            }
          },
          "limits": "Disposable runner-owned target only; this is a bounded mechanism case, not a guarantee for every client or network path.",
          "image": "postgres:10"
        }
      ]
    },
    {
      "sqlstate": "28P01",
      "condition_name": "invalid_password",
      "sources": [
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "src.errcodes.18.6",
          "location": "lines 271-278",
          "path": "src/backend/utils/errcodes.txt",
          "sha256": "6e8de346643ba84aa3c9c6a73360acfc7b2dfb89162c06c08ce9bf5bcd5bbcba",
          "tag": "REL_18_6",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/errcodes.txt"
        },
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "src.auth.18.6",
          "location": "lines 270-332",
          "path": "src/backend/libpq/auth.c",
          "sha256": "94252cb1e2c49b0ddb15f6596d0abf8056c84493de07cc81439da4c5b07018f1",
          "tag": "REL_18_6",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/libpq/auth.c#L270-L332"
        },
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "doc.client-auth.18",
          "location": "pg_hba.conf and password authentication",
          "path": "doc/src/sgml/client-auth.sgml",
          "sha256": "3fb31769e212f5ff97ffca769fe4c72c5963b90d0165bd6147f089e310167326",
          "tag": "PG18-docs",
          "url": "https://www.postgresql.org/docs/18/auth-pg-hba-conf.html"
        },
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "doc.protocol.18",
          "location": "ErrorResponse fields",
          "path": "doc/src/sgml/protocol.sgml",
          "sha256": "745339e07ebbc2bb67d98b258e25772ada644ef26011e3cd6b3fcbb435235f89",
          "tag": "PG18-docs",
          "url": "https://www.postgresql.org/docs/18/protocol-error-fields.html"
        },
        {
          "id": "manifest.28P01",
          "kind": "local_artifact",
          "location": "snapshots and definition_blobs entries for the 28P01 definition",
          "sha256": "1727a275f336988ff96b4f9990a4ca253080f73fc5d316e7def165c8cf3708a8"
        },
        {
          "id": "case-manifest.28P01",
          "kind": "local_artifact",
          "location": "wrong_password_authentication",
          "sha256": "f6b0cfcd0752036c7d3368586fb86740b5ef9364da20800554be02e89d44149f"
        },
        {
          "id": "snippet-registry.28P01.final",
          "kind": "local_artifact",
          "location": "wrong_password_authentication ordered SQL",
          "sha256": "9b2ca3d14cb093415043cb1cb8291eee2020df052f8067c4952ce2cd4597d395"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "limits": "Directory identity does not identify the selected authentication method or the matched HBA rule.",
          "method": "Read the Class 28 section and 28P01 row in the frozen errcodes.txt snapshot.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "statement": "28P01 is the invalid_password condition in Class 28 invalid_authorization_specification."
        },
        {
          "id": "mechanism.auth-failure",
          "limits": "Other authentication methods and HBA configuration errors use separate branches and can report different SQLSTATEs or messages.",
          "method": "Trace auth_failed's password/MD5/SCRAM error selection and detail construction and compare the official HBA and password-authentication rules.",
          "sources": [
            "src.auth.18.6",
            "doc.client-auth.18"
          ],
          "statement": "The password authentication failure path in auth.c selects ERRCODE_INVALID_PASSWORD, reports password authentication failed for user \"%s\" at FATAL, and may add the matched pg_hba.conf line to log detail."
        },
        {
          "id": "runtime.driver-collector-boundary",
          "limits": "Driver exposure can vary by client and startup failure; the collector record is the server-side SQLSTATE evidence here.",
          "method": "Compare driver diagnostics and collector SQL state code, severity, message, HBA detail, and source location in both final summaries and raw records.",
          "sources": [
            "doc.protocol.18",
            "runtime.28P01-registry-final-20260909.latest",
            "runtime.28P01-registry-final-20260909.pg10"
          ],
          "statement": "For the rejected startup connection, psycopg exposed startup text with sqlstate null while the PostgreSQL collector recorded FATAL SQLSTATE 28P01 and the password-failure message on both targets."
        },
        {
          "id": "runtime.authentication-repair",
          "limits": "The run proves a password failure under the controlled md5 rule; it does not cover certificate, GSSAPI, PAM, LDAP, peer, or HBA syntax failures.",
          "method": "Use an owner connection to set the disposable role password, reload the temporary HBA rule, test wrong and known passwords through new connections, restore and reload the original rule, and assert a fresh owner probe.",
          "sources": [
            "case-manifest.28P01",
            "snippet-registry.28P01.final",
            "runtime.28P01-registry-final-20260909.latest",
            "runtime.28P01-registry-final-20260909.pg10"
          ],
          "statement": "After enabling the temporary md5 rule, the known password opened a new role connection and returned SELECT 1 = 1; after exact HBA restoration, a fresh management connection also returned 1 on both targets."
        },
        {
          "id": "versions.catalogue-boundary",
          "limits": "The first scanned release is a lower bound, not an asserted introduction version.",
          "method": "Read the manifest snapshots and definition references for the code.",
          "sources": [
            "manifest.28P01"
          ],
          "statement": "The locked catalogue records 28P01 in every listed formal snapshot from 9.0.23 through 18.6 and in 19beta3; pre-9.0 history is not scanned."
        }
      ],
      "messages": [
        {
          "detail_template": "Connection matched file \"%s\" line %d: \"%s\"",
          "detail_type": "collector log detail assembled at runtime",
          "id": "message.password-failure",
          "limits": "The fixed PG18.6 source passes logdetail through errdetail_log; a client ErrorResponse need not expose it. PG10 collector output uses a release-specific pg_hba.conf wording and may include an additional password-mismatch line.",
          "primary_template": "password authentication failed for user \"%s\"",
          "severity_source": "explicit FATAL",
          "sources": [
            "src.auth.18.6"
          ],
          "sqlstate": "28P01"
        }
      ],
      "usage_evidence": [
        {
          "evidence_ids": [
            "identity.class-and-condition",
            "src.errcodes.18.6"
          ],
          "scope": "SQLSTATE directory identity",
          "status": "definition_only"
        },
        {
          "evidence_ids": [
            "mechanism.auth-failure",
            "message.password-failure",
            "src.auth.18.6",
            "doc.client-auth.18"
          ],
          "scope": "Password authentication failure source path and templates",
          "status": "source_path_confirmed"
        },
        {
          "evidence_ids": [
            "runtime.driver-collector-boundary",
            "runtime.authentication-repair",
            "snippet-registry.28P01.final",
            "runtime.28P01-registry-final-20260909.latest",
            "runtime.28P01-registry-final-20260909.pg10"
          ],
          "scope": "Startup driver/collector SQLSTATE boundary and HBA/password repair",
          "status": "observed_runtime"
        },
        {
          "evidence_ids": [
            "versions.catalogue-boundary",
            "manifest.28P01"
          ],
          "scope": "Version presence",
          "status": "definition_only"
        }
      ],
      "runtime": [
        {
          "cases": [
            "wrong_password_authentication"
          ],
          "id": "runtime.28P01-registry-final-20260909.latest",
          "observed": {
            "collector_message": "password authentication failed for user <generated-role>",
            "collector_severity": "FATAL",
            "collector_source": "auth.c:320",
            "collector_sqlstate": "28P01",
            "driver_sqlstate": null,
            "driver_text": "FATAL: password authentication failed for user <generated-role>",
            "hba_reload": {
              "enabled": true,
              "restored": true
            },
            "known_password_probe": 1,
            "restored_management_probe": 1,
            "transaction": "none opened for rejected startup",
            "collector_detail": "Connection matched file \"<pg_hba.conf path>\" line 1: \"host all all 0.0.0.0/0 md5\""
          },
          "raw_sha256": "97bcf605a806511aff3f0f4eeaa3615c159bf54e7d6f35b7bfbb45940d3d86d2",
          "run_id": "28P01-registry-final-20260909",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "snippet_registry": {
            "sha256": "9b2ca3d14cb093415043cb1cb8291eee2020df052f8067c4952ce2cd4597d395"
          },
          "status": "passed",
          "summary_sha256": "0f58bf277fdd33be8d39ed8f05dc6de5555b8aa89db344b1a4cdfb3eb425bcbf",
          "target": "latest"
        },
        {
          "cases": [
            "wrong_password_authentication"
          ],
          "id": "runtime.28P01-registry-final-20260909.pg10",
          "image": "postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
          "observed": {
            "collector_message": "password authentication failed for user <generated-role>",
            "collector_severity": "FATAL",
            "collector_source": "auth.c:329",
            "collector_sqlstate": "28P01",
            "driver_sqlstate": null,
            "driver_text": "FATAL: password authentication failed for user <generated-role>",
            "hba_reload": {
              "enabled": true,
              "restored": true
            },
            "known_password_probe": 1,
            "restored_management_probe": 1,
            "transaction": "none opened for rejected startup",
            "collector_detail": "Password does not match for user <generated-role>.\\nConnection matched pg_hba.conf line 1: \"host all all 0.0.0.0/0 md5\""
          },
          "raw_sha256": "6d67921dfd66d347593d1b5c348cb60402eee0aa8dfc2cb9c2dbba7872caefb8",
          "run_id": "28P01-registry-final-20260909",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "snippet_registry": {
            "sha256": "9b2ca3d14cb093415043cb1cb8291eee2020df052f8067c4952ce2cd4597d395"
          },
          "status": "passed",
          "summary_sha256": "c8b82b3c42519fe121d27a815f224a25a12b8d14fdffd111dedd23f7a8a0a334",
          "target": "pg10"
        }
      ]
    },
    {
      "sqlstate": "2B000",
      "condition_name": "dependent_privilege_descriptors_still_exist",
      "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": "2B000 is the dependent_privilege_descriptors_still_exist condition in Class 2B.",
          "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": "no-safe-natural-case",
          "statement": "No distinct safe natural core runtime case for 2B000 was selected from the fixed call scan.",
          "sources": [
            "src.calls.REL_18_6"
          ],
          "method": "Review the fixed call scan for resolved 2B000 call groups and reject artificial RAISE or relabeling.",
          "limits": "This is a bounded source/definition result, not proof that every extension or injected fault cannot emit the code."
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "definition-and-source-boundary",
          "status": "definition_only",
          "evidence_ids": [
            "identity",
            "no-safe-natural-case"
          ],
          "notes": "No runtime SQLSTATE observation is selected for this code in batch constraints-transactions-3-4."
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "2BP01",
      "condition_name": "dependent_objects_still_exist",
      "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.dependency.18.6",
          "kind": "upstream_source",
          "source_role": "source_path",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/catalog/dependency.c",
          "sha256": "1878f848dae03e08424a47a09508f3443227ad67c4bc5e0aba3ec9655d015b74",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/catalog/dependency.c#L1148-L1154"
        },
        {
          "id": "doc.drop.18.6",
          "kind": "upstream_source",
          "source_role": "official_documentation",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "doc/src/sgml/ref/drop_table.sgml",
          "sha256": "0eddfa552ed02df4fda6409692198756e616afb805e52cc4caefa84f928354e8",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/drop_table.sgml",
          "docs_url": "https://www.postgresql.org/docs/18/sql-droptable.html"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "2BP01 is the dependent_objects_still_exist condition in Class 2B.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes.txt row and macro mapping.",
          "limits": "Other dependent-privilege and typed-object paths use the same condition with different dynamic messages."
        },
        {
          "id": "dependency-path",
          "statement": "The dependency walker reports that an object cannot be dropped while other objects depend on it and supplies a CASCADE hint.",
          "sources": [
            "src.dependency.18.6",
            "src.calls.REL_18_6"
          ],
          "method": "Trace reportDependentObjects and its dynamic DETAIL/HINT assembly.",
          "limits": "DETAIL names the dependency graph dynamically; it is not a fixed format for every object kind."
        },
        {
          "id": "repair-order",
          "statement": "A safe repair identifies the dependent view and drops it intentionally before dropping its base table; CASCADE is an explicit policy choice, not a universal repair.",
          "sources": [
            "doc.drop.18.6"
          ],
          "method": "Use a view-to-table dependency and the shared registry repair sequence.",
          "limits": "Other dependency types and ownership/privilege checks may require a different order or privileges."
        },
        {
          "id": "runtime",
          "statement": "The selected 2BP01 case passed on PostgreSQL 18.6 and 10.21 with the structured SQLSTATE, transaction-state, and repair assertions recorded in the runtime entries.",
          "sources": [
            "runtime.2BP01-batch34-final-20260909.latest",
            "runtime.2BP01-batch34-final-20260909.pg10"
          ],
          "method": "Read the selected runner summaries and raw outputs tied to the shared snippet registry.",
          "limits": "The INERROR then IDLE assertion belongs to the selected explicit BEGIN/ROLLBACK block; autocommit statements have no surrounding block to preserve."
        }
      ],
      "messages": [
        {
          "id": "message.dependent-object",
          "sqlstate": "2BP01",
          "primary_template": "cannot drop %s because other objects depend on it",
          "detail_template": "%s (dynamic internal detail)",
          "hint_template": "Use DROP ... CASCADE to drop the dependent objects too.",
          "severity_source": "ERROR",
          "sources": [
            "src.dependency.18.6"
          ],
          "limits": "Object descriptions and dependency detail are dynamically assembled."
        }
      ],
      "usage_evidence": [
        {
          "scope": "2BP01-runtime",
          "status": "observed_runtime",
          "evidence_ids": [
            "runtime",
            "runtime.2BP01-batch34-final-20260909.latest",
            "runtime.2BP01-batch34-final-20260909.pg10"
          ]
        },
        {
          "scope": "condition-and-source-paths",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "identity",
            "dependency-path",
            "repair-order"
          ]
        }
      ],
      "runtime": [
        {
          "id": "runtime.2BP01-batch34-final-20260909.latest",
          "run_id": "2BP01-batch34-final-20260909",
          "target": "latest",
          "server_version": "18.6 (Homebrew)",
          "status": "passed",
          "cases": [
            "dependent_object_drop_recovery"
          ],
          "summary_sha256": "5152619160085d99208030f2935dd2621449df65b7927c1a4fff9d2230577d85",
          "raw_sha256": "e4de5657bb564cb931134ce3bd149106f3c7f4df3287665e70ab6711a63d682d",
          "snippet_registry": {
            "sha256": "899e4fd9fb002fc293bd9efee0204e4f2622968c6d9460ad05eb9a0ebd3bac69"
          },
          "case_manifest": {
            "sha256": "4e428d2ab267974589385038a637b43d3493b60fd0dd5243fd71862b9a7e7ccc"
          },
          "observed": {
            "sqlstate": "2BP01",
            "primary": "cannot drop table c2bp01_dependent_object_drop_recovery.base_items because other objects depend on it",
            "severity": "ERROR",
            "statuses": {
              "after_error": "INERROR",
              "after_repair": "IDLE",
              "after_rollback": "IDLE"
            },
            "repair": {
              "remaining_relations": [
                null,
                null
              ]
            },
            "connection_autocommit": true
          }
        },
        {
          "id": "runtime.2BP01-batch34-final-20260909.pg10",
          "run_id": "2BP01-batch34-final-20260909",
          "target": "pg10",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "status": "passed",
          "cases": [
            "dependent_object_drop_recovery"
          ],
          "summary_sha256": "51adc1a279429396fad88b577f2b794ef29c4875d07d26e5b9cd2eddae5fd451",
          "raw_sha256": "660365c646eec69fceb84b6390329b96b18db870ca7e1b7c8d0d5da9989a631a",
          "snippet_registry": {
            "sha256": "899e4fd9fb002fc293bd9efee0204e4f2622968c6d9460ad05eb9a0ebd3bac69"
          },
          "case_manifest": {
            "sha256": "4e428d2ab267974589385038a637b43d3493b60fd0dd5243fd71862b9a7e7ccc"
          },
          "observed": {
            "sqlstate": "2BP01",
            "primary": "cannot drop table c2bp01_dependent_object_drop_recovery.base_items because other objects depend on it",
            "severity": "ERROR",
            "statuses": {
              "after_error": "INERROR",
              "after_repair": "IDLE",
              "after_rollback": "IDLE"
            },
            "repair": {
              "remaining_relations": [
                null,
                null
              ]
            },
            "connection_autocommit": true
          }
        }
      ]
    },
    {
      "sqlstate": "2D000",
      "condition_name": "invalid_transaction_termination",
      "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.spi.18.6",
          "kind": "upstream_source",
          "source_role": "source_path",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/executor/spi.c",
          "sha256": "7244b45f632583c72530832df901b788fe403c8857425dd13edb49d9f84b0c78",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/executor/spi.c#L239-L241"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "2D000 is the invalid_transaction_termination condition in Class 2D.",
          "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": "invalid transaction termination is a source-confirmed path for 2D000.",
          "sources": [
            "src.spi.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.invalid-transaction-termination",
          "sqlstate": "2D000",
          "primary_template": "invalid transaction termination",
          "severity_source": "ERROR",
          "sources": [
            "src.spi.18.6"
          ],
          "limits": "The same source path also emits more specific subtransaction messages."
        },
        {
          "id": "message.commit-subtransaction",
          "sqlstate": "2D000",
          "primary_template": "cannot commit while a subtransaction is active",
          "severity_source": "ERROR",
          "sources": [
            "src.spi.18.6"
          ],
          "limits": "Only the active-subtransaction branch uses this wording."
        },
        {
          "id": "message.rollback-subtransaction",
          "sqlstate": "2D000",
          "primary_template": "cannot roll back while a subtransaction is active",
          "severity_source": "ERROR",
          "sources": [
            "src.spi.18.6"
          ],
          "limits": "Only the active-subtransaction rollback branch uses this wording."
        }
      ],
      "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": []
    },
    {
      "sqlstate": "2F000",
      "condition_name": "sql_routine_exception",
      "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#L288"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "2F000 is sql_routine_exception in SQLSTATE Class 2F.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes definition row, severity, and macro."
        },
        {
          "id": "scan-boundary",
          "statement": "No resolved 2F000 report group was found in the locked PostgreSQL 18.6 core/contrib call scan.",
          "sources": [
            "src.calls.REL_18_6",
            "src.errcodes.18.6"
          ],
          "method": "Compare resolved report groups with the fixed macro mapping.",
          "limits": "The scan does not cover external wrappers, drivers, extensions, remote systems, or user code; absence from this scan is not an absolute absence claim."
        },
        {
          "id": "history-boundary",
          "statement": "The locked release definitions establish catalogue presence from the known 7.4 boundary; they do not establish a precise introducing release or runtime use.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Compare canonical release-definition facts with the available history boundary.",
          "limits": "Definition presence is not an emitting-path observation."
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "resolved-call-scan",
          "status": "definition_only",
          "evidence_ids": [
            "scan-boundary"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history-boundary"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "scan-boundary"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "2F002",
      "condition_name": "modifying_sql_data_not_permitted",
      "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#L290"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "2F002 is modifying_sql_data_not_permitted in SQLSTATE Class 2F.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes definition row, severity, and macro."
        },
        {
          "id": "scan-boundary",
          "statement": "No resolved 2F002 report group was found in the locked PostgreSQL 18.6 core/contrib call scan.",
          "sources": [
            "src.calls.REL_18_6",
            "src.errcodes.18.6"
          ],
          "method": "Compare resolved report groups with the fixed macro mapping.",
          "limits": "The scan does not cover external wrappers, drivers, extensions, remote systems, or user code; absence from this scan is not an absolute absence claim."
        },
        {
          "id": "history-boundary",
          "statement": "The locked release definitions establish catalogue presence from the known 7.4 boundary; they do not establish a precise introducing release or runtime use.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Compare canonical release-definition facts with the available history boundary.",
          "limits": "Definition presence is not an emitting-path observation."
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "resolved-call-scan",
          "status": "definition_only",
          "evidence_ids": [
            "scan-boundary"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history-boundary"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "scan-boundary"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "2F003",
      "condition_name": "prohibited_sql_statement_attempted",
      "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#L291",
          "lines": "291"
        },
        {
          "id": "src.path.0",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "contrib/dblink/dblink.c",
          "sha256": "e4cfaec3a0a1e5d23fded584725e0f6cf7a17321ad99e5fe046e8b7f97416f15",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/contrib/dblink/dblink.c#L1488",
          "lines": "1488-1490,2718-2788"
        },
        {
          "id": "src.path.1",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "contrib/postgres_fdw/connection.c",
          "sha256": "67fc002657f2c7df6d93cbf99c933cbc103907d1857ed77aedbb85099ea4dda0",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/contrib/postgres_fdw/connection.c#L756",
          "lines": "468-472,756-759"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "2F003 is prohibited_sql_statement_attempted in SQLSTATE Class 2F.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes definition row, severity, and macro."
        },
        {
          "id": "resolved-path",
          "statement": "The fixed PostgreSQL 18.6 source contains the report contexts and message variants described on the page.",
          "sources": [
            "src.path.0",
            "src.path.1"
          ],
          "method": "Read the complete source context around the resolved report groups.",
          "limits": "Source confirmation is not a runtime observation in this batch."
        },
        {
          "id": "history-boundary",
          "statement": "Locked release definitions establish catalogue presence from 7.4; they do not establish a precise introducing release or runtime use.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Compare canonical release facts with the available history boundary.",
          "limits": "Definition presence is not an emitting-path observation."
        }
      ],
      "messages": [
        {
          "id": "message.dblink-results-not-allowed",
          "sqlstate": "2F003",
          "primary_template": "statement returning results not allowed",
          "severity_source": "ERROR",
          "sources": [
            "src.path.0"
          ],
          "limits": "This is dblink no-result API enforcement."
        },
        {
          "id": "message.dblink-credentials-with-hint",
          "sqlstate": "2F003",
          "primary_template": "password or GSSAPI delegated credentials required",
          "detail_template": "Non-superusers may only connect using credentials they provide, eg: password in connection string or delegated GSSAPI credentials",
          "hint_template": "Ensure provided credentials match target server's authentication method.",
          "severity_source": "ERROR",
          "sources": [
            "src.path.0"
          ],
          "limits": "Credential wording and whether HINT is present vary by dblink connection path."
        },
        {
          "id": "message.dblink-credentials-no-hint",
          "sqlstate": "2F003",
          "primary_template": "password or GSSAPI delegated credentials required",
          "detail_template": "Non-superusers must provide a password in the connection string or send delegated GSSAPI credentials.",
          "severity_source": "ERROR",
          "sources": [
            "src.path.0"
          ],
          "limits": "This dblink credential branch has DETAIL but no HINT."
        },
        {
          "id": "message.postgres-fdw-password-required",
          "sqlstate": "2F003",
          "primary_template": "password or GSSAPI delegated credentials required",
          "detail_template": "Non-superuser cannot connect if the server does not request a password or use GSSAPI with delegated credentials.",
          "hint_template": "Target server's authentication method must be changed or password_required=false set in the user mapping attributes.",
          "severity_source": "ERROR",
          "sources": [
            "src.path.1"
          ],
          "limits": "User mapping, authentication method, and password_required setting are deployment-dependent."
        },
        {
          "id": "message.postgres-fdw-scram-pass-through",
          "sqlstate": "2F003",
          "primary_template": "password or GSSAPI delegated credentials required",
          "detail_template": "Non-superusers must delegate GSSAPI credentials, provide a password, or enable SCRAM pass-through in user mapping.",
          "severity_source": "ERROR",
          "sources": [
            "src.path.1"
          ],
          "limits": "This branch has DETAIL and no HINT."
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "resolved-path"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history-boundary"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "resolved-path"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "2F004",
      "condition_name": "reading_sql_data_not_permitted",
      "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#L292",
          "lines": "292"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "2F004 is reading_sql_data_not_permitted in SQLSTATE Class 2F.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes definition row, severity, and macro."
        },
        {
          "id": "scan-boundary",
          "statement": "No resolved 2F004 report group was found in the locked PostgreSQL 18.6 core/contrib call scan.",
          "sources": [
            "src.calls.REL_18_6",
            "src.errcodes.18.6"
          ],
          "method": "Compare resolved report groups with the fixed macro mapping.",
          "limits": "The scan does not cover external wrappers, drivers, extensions, remote systems, or user code; absence from this scan is not absolute."
        },
        {
          "id": "history-boundary",
          "statement": "Locked release definitions establish catalogue presence from 7.4; they do not establish a precise introducing release or runtime use.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Compare canonical release facts with the available history boundary.",
          "limits": "Definition presence is not an emitting-path observation."
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "resolved-call-scan",
          "status": "definition_only",
          "evidence_ids": [
            "scan-boundary"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history-boundary"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "scan-boundary"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "2F005",
      "condition_name": "function_executed_no_return_statement",
      "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#L289",
          "lines": "289"
        },
        {
          "id": "src.path.0",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/pl/plpgsql/src/pl_exec.c",
          "sha256": "0df3c70a6bccf6dddf443fb99e152a16a67009827c44a820597e98e585cb8b20",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/pl/plpgsql/src/pl_exec.c#L639",
          "lines": "639-641,1057-1059,1215-1217"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "2F005 is function_executed_no_return_statement in SQLSTATE Class 2F.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes definition row, severity, and macro."
        },
        {
          "id": "resolved-path",
          "statement": "The fixed PostgreSQL 18.6 source contains the report contexts and message variants described on the page.",
          "sources": [
            "src.path.0"
          ],
          "method": "Read the complete source context around the resolved report groups.",
          "limits": "Source confirmation is not a runtime observation in this batch."
        },
        {
          "id": "history-boundary",
          "statement": "Locked release definitions establish catalogue presence from 7.4; they do not establish a precise introducing release or runtime use.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Compare canonical release facts with the available history boundary.",
          "limits": "Definition presence is not an emitting-path observation."
        }
      ],
      "messages": [
        {
          "id": "message.plpgsql-function-no-return",
          "sqlstate": "2F005",
          "primary_template": "control reached end of function without RETURN",
          "severity_source": "ERROR",
          "sources": [
            "src.path.0"
          ]
        },
        {
          "id": "message.plpgsql-trigger-no-return",
          "sqlstate": "2F005",
          "primary_template": "control reached end of trigger procedure without RETURN",
          "severity_source": "ERROR",
          "sources": [
            "src.path.0"
          ],
          "limits": "The same trigger template appears at more than one fixed control-flow path."
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "resolved-path"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history-boundary"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "resolved-path"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "34000",
      "condition_name": "invalid_cursor_name",
      "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.portalcmds.18.6",
          "kind": "upstream_source",
          "source_role": "source_path",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/portalcmds.c",
          "sha256": "e71c5bdb2da67771fb5f42f18b823e8af3ee6c31d5314e97a47ad18f7788bf35",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/portalcmds.c#L197-L199"
        },
        {
          "id": "doc.declare.18.6",
          "kind": "upstream_source",
          "source_role": "official_documentation",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "doc/src/sgml/ref/declare.sgml",
          "sha256": "f1d72befb9a989aa32123560aea784a8bccfcb3d3930804a101d8245e5a3cc95",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/declare.sgml",
          "docs_url": "https://www.postgresql.org/docs/18/sql-declare.html"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "34000 is the invalid_cursor_name condition in Class 34 and shares the undefined-cursor alias.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes.txt row and macro mapping.",
          "limits": "The same SQLSTATE covers several cursor/portal-facing paths."
        },
        {
          "id": "portal-path",
          "statement": "PerformPortalFetch emits cursor \"%s\" does not exist when the named portal is absent.",
          "sources": [
            "src.portalcmds.18.6",
            "src.calls.REL_18_6"
          ],
          "method": "Trace ERRCODE_UNDEFINED_CURSOR in portalcmds.c.",
          "limits": "Other callers use portal or cursor wording; the name is dynamic."
        },
        {
          "id": "lifecycle",
          "statement": "A named cursor belongs to its backend session and transaction lifecycle; closing it or losing its transaction makes a later FETCH invalid.",
          "sources": [
            "doc.declare.18.6"
          ],
          "method": "Compare DECLARE cursor lifecycle with the explicit same-session registry case.",
          "limits": "Holdable cursors and client-side cursor abstractions have additional rules."
        },
        {
          "id": "runtime",
          "statement": "The selected 34000 case passed on PostgreSQL 18.6 and 10.21 with the structured SQLSTATE, transaction-state, and repair assertions recorded in the runtime entries.",
          "sources": [
            "runtime.34000-batch34-20260909.latest",
            "runtime.34000-batch34-20260909.pg10"
          ],
          "method": "Read the selected runner summaries and raw outputs tied to the shared snippet registry.",
          "limits": "This covers the selected mechanism only, not all source callers or all driver/pool behavior."
        }
      ],
      "messages": [
        {
          "id": "message.cursor-missing",
          "sqlstate": "34000",
          "primary_template": "cursor \"%s\" does not exist",
          "severity_source": "ERROR",
          "sources": [
            "src.portalcmds.18.6"
          ],
          "limits": "The portal protocol path uses portal \"%s\" does not exist."
        }
      ],
      "usage_evidence": [
        {
          "scope": "34000-runtime",
          "status": "observed_runtime",
          "evidence_ids": [
            "runtime",
            "runtime.34000-batch34-20260909.latest",
            "runtime.34000-batch34-20260909.pg10"
          ]
        },
        {
          "scope": "condition-and-source-paths",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "identity",
            "portal-path",
            "lifecycle"
          ]
        }
      ],
      "runtime": [
        {
          "id": "runtime.34000-batch34-20260909.latest",
          "run_id": "34000-batch34-20260909",
          "target": "latest",
          "server_version": "18.6 (Homebrew)",
          "status": "passed",
          "cases": [
            "cursor_lifecycle_recovery"
          ],
          "summary_sha256": "113822682213d49699a80ba97c2d3bad78a795790edfd32e7dbc362d16456e3e",
          "raw_sha256": "91c68dc423bfd301219891f250d584678c5300e1376c9fb6d75731b169d5f560",
          "case_manifest": {
            "sha256": "72347c5c8f1ccfaa18aced582e9ff5bf0f968eff0547c9a8f6521ed7fa3adb47"
          },
          "observed": {
            "sqlstate": "34000",
            "primary": "cursor \"case_cursor_aa951a82\" does not exist",
            "severity": "ERROR",
            "statuses": {
              "after_error": "INERROR",
              "after_repair": "IDLE",
              "after_rollback": "IDLE"
            },
            "repair": {
              "fetched_row": [
                1
              ]
            },
            "connection_autocommit": true
          },
          "snippet_registry": {
            "sha256": "ad5b519e8ca30fd2636b1d0bace32dc18558cccc7b9d360081c27b12a1405f08"
          }
        },
        {
          "id": "runtime.34000-batch34-20260909.pg10",
          "run_id": "34000-batch34-20260909",
          "target": "pg10",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "status": "passed",
          "cases": [
            "cursor_lifecycle_recovery"
          ],
          "summary_sha256": "5c73ff2695864619e3771294e896ec2704bb4fae8e2b16d72aedf220063c2c6a",
          "raw_sha256": "1089cf85363624dcf5430744047b9dfde4760d763ebe10d5ed148047f9bb7c5c",
          "case_manifest": {
            "sha256": "72347c5c8f1ccfaa18aced582e9ff5bf0f968eff0547c9a8f6521ed7fa3adb47"
          },
          "observed": {
            "sqlstate": "34000",
            "primary": "cursor \"case_cursor_d0bb43e5\" does not exist",
            "severity": "ERROR",
            "statuses": {
              "after_error": "INERROR",
              "after_repair": "IDLE",
              "after_rollback": "IDLE"
            },
            "repair": {
              "fetched_row": [
                1
              ]
            },
            "connection_autocommit": true
          },
          "snippet_registry": {
            "sha256": "ad5b519e8ca30fd2636b1d0bace32dc18558cccc7b9d360081c27b12a1405f08"
          }
        }
      ]
    },
    {
      "sqlstate": "38000",
      "condition_name": "external_routine_exception",
      "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#L300",
          "lines": "300"
        },
        {
          "id": "src.path.0",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "contrib/basebackup_to_shell/basebackup_to_shell.c",
          "sha256": "4f42cb76243182416e6c4ca50029ab82c794d297ae36759f57511f18ff110b43",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/contrib/basebackup_to_shell/basebackup_to_shell.c#L239",
          "lines": "239-243"
        },
        {
          "id": "src.path.1",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/copyfrom.c",
          "sha256": "2eacfb8e896414428a8d124921fdc38629afe55c391c0fc16bce99b2db8bd86f",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/copyfrom.c#L1966",
          "lines": "1966-1970"
        },
        {
          "id": "src.path.2",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "contrib/uuid-ossp/uuid-ossp.c",
          "sha256": "b09f5fb48b28df9c279780181d2f3410e34a29904eba298b93ab9166aaa8a8e4",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/contrib/uuid-ossp/uuid-ossp.c#L387",
          "lines": "130-136,297-318,387-390"
        },
        {
          "id": "src.path.3",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/pl/plpython/plpy_elog.c",
          "sha256": "707d4948e22451e4013abaf961e5dfd8b9573d709f5a47fb7e879587106cd8bf",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/pl/plpython/plpy_elog.c#L123",
          "lines": "123-140"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        },
        {
          "id": "src.path.4",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/copyto.c",
          "sha256": "f160930f5821d7320f3ac686f4edc4a7b341f84697ee5200eeff352f331c0bd5",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/copyto.c#L575",
          "lines": "575-579"
        },
        {
          "id": "src.path.5",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/pl/plperl/plperl.c",
          "sha256": "90789190fd0bf5b53773b57b8c3287c88c35fbebdfa8310acab3f2d89910e4ba",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/pl/plperl/plperl.c#L2250",
          "lines": "2250-2264,2318-2330,2361-2393"
        },
        {
          "id": "src.path.6",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/pl/tcl/pltcl.c",
          "sha256": "cd9c06395a4bb6125bda553a6ecdeebdcc7922e6a12ddb84c98c0c3d1d39a172",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/pl/tcl/pltcl.c#L1036",
          "lines": "1036-1039,1402-1406"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "38000 is external_routine_exception in SQLSTATE Class 38.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes definition row, severity, and macro."
        },
        {
          "id": "resolved-path",
          "statement": "The fixed PostgreSQL 18.6 source contains the external-command, UUID-library, and PL/Perl, PL/Python, PL/Tcl report contexts and message variants described on the page.",
          "sources": [
            "src.path.0",
            "src.path.1",
            "src.path.2",
            "src.path.3",
            "src.path.4",
            "src.path.5",
            "src.path.6"
          ],
          "method": "Read the complete source context around the resolved report groups.",
          "limits": "Source confirmation is not a runtime observation in this batch."
        },
        {
          "id": "history-boundary",
          "statement": "Locked release definitions establish catalogue presence from 7.4; they do not establish a precise introducing release or runtime use.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Compare canonical release facts with the available history boundary.",
          "limits": "Definition presence is not an emitting-path observation."
        }
      ],
      "messages": [
        {
          "id": "message.basebackup-shell-failed",
          "sqlstate": "38000",
          "primary_template": "shell command \"%s\" failed",
          "detail_template": "%s",
          "severity_source": "ERROR",
          "sources": [
            "src.path.0"
          ],
          "limits": "The command and internal wait-status detail are dynamic."
        },
        {
          "id": "message.copy-program-failed",
          "sqlstate": "38000",
          "primary_template": "program \"%s\" failed",
          "detail_template": "%s",
          "severity_source": "ERROR",
          "sources": [
            "src.path.1",
            "src.path.4"
          ],
          "limits": "The program path and internal wait-status detail are dynamic."
        },
        {
          "id": "message.uuid-library-text",
          "sqlstate": "38000",
          "primary_template": "OSSP uuid library failure: %s",
          "severity_source": "ERROR",
          "sources": [
            "src.path.2"
          ],
          "limits": "The external UUID library text is interpolated into the primary message."
        },
        {
          "id": "message.uuid-library-code",
          "sqlstate": "38000",
          "primary_template": "OSSP uuid library failure: error code %d",
          "severity_source": "ERROR",
          "sources": [
            "src.path.2"
          ],
          "limits": "The external UUID status code is dynamic."
        },
        {
          "id": "message.uuid-library-code-short",
          "sqlstate": "38000",
          "primary_template": "uuid library failure: %d",
          "severity_source": "ERROR",
          "sources": [
            "src.path.2"
          ],
          "limits": "The UUID library status value is dynamic; this branch is used by the uuid-ossp fallback path."
        },
        {
          "id": "message.uuid-version-mismatch",
          "sqlstate": "38000",
          "primary_template": "uuid_create() produced a version %c UUID instead of the expected version 1",
          "severity_source": "ERROR",
          "sources": [
            "src.path.2"
          ],
          "limits": "The UUID version character is dynamic."
        },
        {
          "id": "message.plperl-no-return-item",
          "sqlstate": "38000",
          "primary_template": "didn't get a return item from function",
          "severity_source": "ERROR",
          "sources": [
            "src.path.5"
          ]
        },
        {
          "id": "message.plpython-forwarded-diagnostics",
          "sqlstate": "38000",
          "primary_template": null,
          "dynamic_format": "errmsg_internal %s; errdetail_internal %s; errcontext %s; errhint %s",
          "severity_source": "caller-selected level",
          "sources": [
            "src.path.3"
          ],
          "limits": "PL/Python forwards the underlying dynamic message and optional DETAIL, CONTEXT, and HINT; no single static primary template is asserted."
        },
        {
          "id": "message.pltcl-return-parse",
          "sqlstate": "38000",
          "primary_template": "could not parse function return value: %s",
          "severity_source": "ERROR",
          "sources": [
            "src.path.6"
          ],
          "limits": "The parse error text is dynamic."
        },
        {
          "id": "message.pltcl-context",
          "sqlstate": "38000",
          "primary_template": "%s",
          "context_template": "%s\nin PL/Tcl function %s",
          "severity_source": "ERROR",
          "sources": [
            "src.path.6"
          ],
          "limits": "Both error text and function name are dynamic."
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "resolved-path"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history-boundary"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "resolved-path"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "38001",
      "condition_name": "containing_sql_not_permitted",
      "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#L301",
          "lines": "301"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "38001 is containing_sql_not_permitted in SQLSTATE Class 38.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes definition row, severity, and macro."
        },
        {
          "id": "scan-boundary",
          "statement": "No resolved 38001 report group was found in the locked PostgreSQL 18.6 core/contrib call scan.",
          "sources": [
            "src.calls.REL_18_6",
            "src.errcodes.18.6"
          ],
          "method": "Compare resolved report groups with the fixed macro mapping.",
          "limits": "The scan does not cover external wrappers, drivers, extensions, remote systems, or user code; absence from this scan is not absolute."
        },
        {
          "id": "history-boundary",
          "statement": "Locked release definitions establish catalogue presence from 7.4; they do not establish a precise introducing release or runtime use.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Compare canonical release facts with the available history boundary.",
          "limits": "Definition presence is not an emitting-path observation."
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "resolved-call-scan",
          "status": "definition_only",
          "evidence_ids": [
            "scan-boundary"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history-boundary"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "scan-boundary"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "38002",
      "condition_name": "modifying_sql_data_not_permitted",
      "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#L302",
          "lines": "302"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "38002 is modifying_sql_data_not_permitted in SQLSTATE Class 38.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes definition row, severity, and macro."
        },
        {
          "id": "scan-boundary",
          "statement": "No resolved 38002 report group was found in the locked PostgreSQL 18.6 core/contrib call scan.",
          "sources": [
            "src.calls.REL_18_6",
            "src.errcodes.18.6"
          ],
          "method": "Compare resolved report groups with the fixed macro mapping.",
          "limits": "The scan does not cover external wrappers, drivers, extensions, remote systems, or user code; absence from this scan is not absolute."
        },
        {
          "id": "history-boundary",
          "statement": "Locked release definitions establish catalogue presence from 7.4; they do not establish a precise introducing release or runtime use.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Compare canonical release facts with the available history boundary.",
          "limits": "Definition presence is not an emitting-path observation."
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "resolved-call-scan",
          "status": "definition_only",
          "evidence_ids": [
            "scan-boundary"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history-boundary"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "scan-boundary"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "38003",
      "condition_name": "prohibited_sql_statement_attempted",
      "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#L303",
          "lines": "303"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "38003 is prohibited_sql_statement_attempted in SQLSTATE Class 38.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes definition row, severity, and macro."
        },
        {
          "id": "scan-boundary",
          "statement": "No resolved 38003 report group was found in the locked PostgreSQL 18.6 core/contrib call scan.",
          "sources": [
            "src.calls.REL_18_6",
            "src.errcodes.18.6"
          ],
          "method": "Compare resolved report groups with the fixed macro mapping.",
          "limits": "The scan does not cover external wrappers, drivers, extensions, remote systems, or user code; absence from this scan is not absolute."
        },
        {
          "id": "history-boundary",
          "statement": "Locked release definitions establish catalogue presence from 7.4; they do not establish a precise introducing release or runtime use.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Compare canonical release facts with the available history boundary.",
          "limits": "Definition presence is not an emitting-path observation."
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "resolved-call-scan",
          "status": "definition_only",
          "evidence_ids": [
            "scan-boundary"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history-boundary"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "scan-boundary"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "38004",
      "condition_name": "reading_sql_data_not_permitted",
      "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#L304",
          "lines": "304"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "38004 is reading_sql_data_not_permitted in SQLSTATE Class 38.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes definition row, severity, and macro."
        },
        {
          "id": "scan-boundary",
          "statement": "No resolved 38004 report group was found in the locked PostgreSQL 18.6 core/contrib call scan.",
          "sources": [
            "src.calls.REL_18_6",
            "src.errcodes.18.6"
          ],
          "method": "Compare resolved report groups with the fixed macro mapping.",
          "limits": "The scan does not cover external wrappers, drivers, extensions, remote systems, or user code; absence from this scan is not absolute."
        },
        {
          "id": "history-boundary",
          "statement": "Locked release definitions establish catalogue presence from 7.4; they do not establish a precise introducing release or runtime use.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Compare canonical release facts with the available history boundary.",
          "limits": "Definition presence is not an emitting-path observation."
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "resolved-call-scan",
          "status": "definition_only",
          "evidence_ids": [
            "scan-boundary"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history-boundary"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "scan-boundary"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "39000",
      "condition_name": "external_routine_invocation_exception",
      "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#L308",
          "lines": "308"
        },
        {
          "id": "src.path.0",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "contrib/pgcrypto/pgcrypto.c",
          "sha256": "126e94f378eea1cbf5480ba54dd3deac8c6dd3fe69c43de23efd2f7697f8a932",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/contrib/pgcrypto/pgcrypto.c#L234",
          "lines": "234-465"
        },
        {
          "id": "src.path.1",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "contrib/pgcrypto/pgp-cfb.c",
          "sha256": "8484871c594a508f85d3f3de69f759e76eb01b7b08c48e72c379887ecf5bdd6a",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/contrib/pgcrypto/pgp-cfb.c#L237",
          "lines": "237-239"
        },
        {
          "id": "src.path.2",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "contrib/pgcrypto/px.c",
          "sha256": "0cb9fafb3174e8320f4205d58dea5563a4eb4456e85e8a9f7cf5819b8ea5f23e",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/contrib/pgcrypto/px.c#L105",
          "lines": "105-107"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "39000 is external_routine_invocation_exception in SQLSTATE Class 39.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes definition row, severity, and macro."
        },
        {
          "id": "resolved-path",
          "statement": "The fixed PostgreSQL 18.6 source contains the report contexts and message variants described on the page.",
          "sources": [
            "src.path.0",
            "src.path.1",
            "src.path.2"
          ],
          "method": "Read the complete source context around the resolved report groups.",
          "limits": "Source confirmation is not a runtime observation in this batch."
        },
        {
          "id": "history-boundary",
          "statement": "Locked release definitions establish catalogue presence from 7.4; they do not establish a precise introducing release or runtime use.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Compare canonical release facts with the available history boundary.",
          "limits": "Definition presence is not an emitting-path observation."
        }
      ],
      "messages": [
        {
          "id": "message.pgcrypto-crypt-null",
          "sqlstate": "39000",
          "primary_template": "crypt(3) returned NULL",
          "severity_source": "ERROR",
          "sources": [
            "src.path.0"
          ]
        },
        {
          "id": "message.pgcrypto-encrypt",
          "sqlstate": "39000",
          "primary_template": "encrypt error: %s",
          "severity_source": "ERROR",
          "sources": [
            "src.path.0",
            "src.path.1"
          ],
          "limits": "px_strerror(err) text is interpolated into the primary message."
        },
        {
          "id": "message.pgcrypto-decrypt",
          "sqlstate": "39000",
          "primary_template": "decrypt error: %s",
          "severity_source": "ERROR",
          "sources": [
            "src.path.0"
          ],
          "limits": "px_strerror(err) text is interpolated into the primary message."
        },
        {
          "id": "message.pgcrypto-encrypt-iv",
          "sqlstate": "39000",
          "primary_template": "encrypt_iv error: %s",
          "severity_source": "ERROR",
          "sources": [
            "src.path.0"
          ],
          "limits": "px_strerror(err) text is interpolated into the primary message."
        },
        {
          "id": "message.pgcrypto-decrypt-iv",
          "sqlstate": "39000",
          "primary_template": "decrypt_iv error: %s",
          "severity_source": "ERROR",
          "sources": [
            "src.path.0"
          ],
          "limits": "px_strerror(err) text is interpolated into the primary message."
        },
        {
          "id": "message.pgcrypto-length",
          "sqlstate": "39000",
          "primary_template": "Length not in range",
          "severity_source": "ERROR",
          "sources": [
            "src.path.0"
          ]
        },
        {
          "id": "message.pgcrypto-library-text",
          "sqlstate": "39000",
          "primary_template": "%s",
          "dynamic_format": "px_strerror(err)",
          "severity_source": "ERROR",
          "sources": [
            "src.path.2"
          ],
          "limits": "The dynamic library text is the primary message, not a separate DETAIL field."
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "resolved-path"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history-boundary"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "resolved-path"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "39001",
      "condition_name": "invalid_sqlstate_returned",
      "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#L309",
          "lines": "309"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "39001 is invalid_sqlstate_returned in SQLSTATE Class 39.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes definition row, severity, and macro."
        },
        {
          "id": "scan-boundary",
          "statement": "No resolved 39001 report group was found in the locked PostgreSQL 18.6 core/contrib call scan.",
          "sources": [
            "src.calls.REL_18_6",
            "src.errcodes.18.6"
          ],
          "method": "Compare resolved report groups with the fixed macro mapping.",
          "limits": "The scan does not cover external wrappers, drivers, extensions, remote systems, or user code; absence from this scan is not absolute."
        },
        {
          "id": "history-boundary",
          "statement": "Locked release definitions establish catalogue presence from 7.4; they do not establish a precise introducing release or runtime use.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Compare canonical release facts with the available history boundary.",
          "limits": "Definition presence is not an emitting-path observation."
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "resolved-call-scan",
          "status": "definition_only",
          "evidence_ids": [
            "scan-boundary"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history-boundary"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "scan-boundary"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "39004",
      "condition_name": "null_value_not_allowed",
      "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#L310",
          "lines": "310"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "39004 is null_value_not_allowed, a SQL Routine Exception condition defined in Class 39.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes row and macro."
        },
        {
          "id": "bounded-scan",
          "statement": "The fixed REL_18_6 call archive contains no resolved report group for 39004.",
          "sources": [
            "src.calls.REL_18_6"
          ],
          "method": "Filter the archive by code and inspect concrete report groups.",
          "limits": "This is a bounded archive result, not proof that no extension, wrapper, or older/newer source can emit it."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records the condition from 7.4 and in the listed release snapshots, without identifying an introducing implementation.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue presence and history boundaries.",
          "limits": "Definition presence does not identify the operation that rejected the NULL."
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "unknown",
          "evidence_ids": [
            "bounded-scan"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "bounded-scan"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "39P01",
      "condition_name": "trigger_protocol_violated",
      "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#L311",
          "lines": "311"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        },
        {
          "id": "src.path.trigger",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/trigger.c",
          "sha256": "0a539af85b0de1a04779f92202e7bfc77d85ae6da1747ea32527c67f39084fbd",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/trigger.c#L2388-L2394",
          "lines": "2388-2394,2448-2453,2677-2682,2949-2954"
        },
        {
          "id": "src.path.tcn",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "contrib/tcn/tcn.c",
          "sha256": "fd1b0dfa65a4b3f15bddc5ae6d4b71505e448a5febdaa20c5da8839d2b54350d",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/contrib/tcn/tcn.c#L77-L110",
          "lines": "77-110,178-180"
        },
        {
          "id": "src.path.plperl",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/pl/plperl/plperl.c",
          "sha256": "90789190fd0bf5b53773b57b8c3287c88c35fbebdfa8310acab3f2d89910e4ba",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/pl/plperl/plperl.c#L2607-L2618",
          "lines": "2607-2618"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "39P01 is trigger_protocol_violated in Class 39.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed definition row."
        },
        {
          "id": "core-trigger",
          "statement": "The core trigger manager reports this code when a trigger function sets the isnull flag, and for invalid BEFORE STATEMENT return values.",
          "sources": [
            "src.path.trigger"
          ],
          "method": "Read each fixed trigger-manager context and its message."
        },
        {
          "id": "tcn-contract",
          "statement": "contrib/tcn checks trigger invocation context, AFTER timing, row level, argument count, and primary-key setup with this code.",
          "sources": [
            "src.path.tcn"
          ],
          "method": "Read the complete tcn checks around each report."
        },
        {
          "id": "language-severity",
          "statement": "PL/Perl has a WARNING variant for an ignored DELETE-row modification and an ERROR variant for an invalid trigger return value.",
          "sources": [
            "src.path.plperl"
          ],
          "method": "Compare ereport levels and exact messages."
        }
      ],
      "messages": [
        {
          "id": "message.trigger-null",
          "sqlstate": "39P01",
          "primary_template": "trigger function %u returned null value",
          "severity_source": "ERROR",
          "sources": [
            "src.path.trigger"
          ]
        },
        {
          "id": "message.before-statement",
          "sqlstate": "39P01",
          "primary_template": "BEFORE STATEMENT trigger cannot return a value",
          "severity_source": "ERROR",
          "sources": [
            "src.path.trigger"
          ]
        },
        {
          "id": "message.tcn-called-as-trigger",
          "sqlstate": "39P01",
          "primary_template": "triggered_change_notification: must be called as trigger",
          "severity_source": "ERROR",
          "sources": [
            "src.path.tcn"
          ]
        },
        {
          "id": "message.tcn-after-change",
          "sqlstate": "39P01",
          "primary_template": "triggered_change_notification: must be called after the change",
          "severity_source": "ERROR",
          "sources": [
            "src.path.tcn"
          ]
        },
        {
          "id": "message.tcn-each-row",
          "sqlstate": "39P01",
          "primary_template": "triggered_change_notification: must be called for each row",
          "severity_source": "ERROR",
          "sources": [
            "src.path.tcn"
          ]
        },
        {
          "id": "message.tcn-one-parameter",
          "sqlstate": "39P01",
          "primary_template": "triggered_change_notification: must not be called with more than one parameter",
          "severity_source": "ERROR",
          "sources": [
            "src.path.tcn"
          ]
        },
        {
          "id": "message.tcn-primary-key",
          "sqlstate": "39P01",
          "primary_template": "triggered_change_notification: must be called on a table with a primary key",
          "severity_source": "ERROR",
          "sources": [
            "src.path.tcn"
          ]
        },
        {
          "id": "message.plperl-delete-warning",
          "sqlstate": "39P01",
          "primary_template": "ignoring modified row in DELETE trigger",
          "severity_source": "WARNING",
          "sources": [
            "src.path.plperl"
          ]
        },
        {
          "id": "message.plperl-invalid-return",
          "sqlstate": "39P01",
          "primary_template": "result of PL/Perl trigger function must be undef, \"SKIP\", or \"MODIFY\"",
          "severity_source": "ERROR",
          "sources": [
            "src.path.plperl"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "core-trigger",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "core-trigger"
          ]
        },
        {
          "scope": "tcn",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "tcn-contract"
          ]
        },
        {
          "scope": "language-handler",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "language-severity"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "core-trigger"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "39P02",
      "condition_name": "srf_protocol_violated",
      "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#L312",
          "lines": "312"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        },
        {
          "id": "src.path.srf",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/executor/execSRF.c",
          "sha256": "5c6038cbcc254113a39119af636331063b11d75ad7757b027620d78ed1ecdf2a",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/executor/execSRF.c#L363-L365",
          "lines": "363-365,371-381,665-686"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "39P02 is srf_protocol_violated in Class 39.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed definition row."
        },
        {
          "id": "return-modes",
          "statement": "The executor reports this code when a set-returning function violates value-per-call or materialize mode, or supplies an unrecognized returnMode.",
          "sources": [
            "src.path.srf"
          ],
          "method": "Read the rsinfo.returnMode, isDone, and returnsSet checks."
        },
        {
          "id": "boundary",
          "statement": "The fixed path is an executor-to-set-returning-function contract, not an ordinary query row-count condition.",
          "sources": [
            "src.path.srf"
          ],
          "method": "Interpret the source checks in their executor context."
        }
      ],
      "messages": [
        {
          "id": "message.srf-value-per-call",
          "sqlstate": "39P02",
          "primary_template": "table-function protocol for value-per-call mode was not followed",
          "severity_source": "ERROR",
          "sources": [
            "src.path.srf"
          ]
        },
        {
          "id": "message.srf-materialize",
          "sqlstate": "39P02",
          "primary_template": "table-function protocol for materialize mode was not followed",
          "severity_source": "ERROR",
          "sources": [
            "src.path.srf"
          ]
        },
        {
          "id": "message.srf-returnmode",
          "sqlstate": "39P02",
          "primary_template": "unrecognized table-function returnMode: %d",
          "severity_source": "ERROR",
          "sources": [
            "src.path.srf"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "executor-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "return-modes"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "return-modes"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "39P03",
      "condition_name": "event_trigger_protocol_violated",
      "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#L313",
          "lines": "313"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        },
        {
          "id": "src.path.event-trigger",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/event_trigger.c",
          "sha256": "0c9d6c5da18411f63110aea40635cd82d8e1d591db5931ff37f3a52f53ee69eb",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/event_trigger.c#L1542-L1545",
          "lines": "1542-1545,1635-1638,1656-1659,2072-2075"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "39P03 is event_trigger_protocol_violated in Class 39.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed definition row."
        },
        {
          "id": "event-context",
          "statement": "The core event-trigger functions reject calls outside their required sql_drop, table_rewrite, or event-trigger context with this code.",
          "sources": [
            "src.path.event-trigger"
          ],
          "method": "Read each currentEventTriggerState guard and its message."
        },
        {
          "id": "function-boundary",
          "statement": "The message names the required event-trigger function context, so the failing boundary is call context rather than object existence alone.",
          "sources": [
            "src.path.event-trigger"
          ],
          "method": "Compare the guard with the function named in the message."
        }
      ],
      "messages": [
        {
          "id": "message.sql-drop",
          "sqlstate": "39P03",
          "primary_template": "%s can only be called in a sql_drop event trigger function",
          "severity_source": "ERROR",
          "sources": [
            "src.path.event-trigger"
          ]
        },
        {
          "id": "message.table-rewrite",
          "sqlstate": "39P03",
          "primary_template": "%s can only be called in a table_rewrite event trigger function",
          "severity_source": "ERROR",
          "sources": [
            "src.path.event-trigger"
          ]
        },
        {
          "id": "message.event-trigger",
          "sqlstate": "39P03",
          "primary_template": "%s can only be called in an event trigger function",
          "severity_source": "ERROR",
          "sources": [
            "src.path.event-trigger"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "event-trigger-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "event-context"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "event-context"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "3B000",
      "condition_name": "savepoint_exception",
      "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": "3B000 is the savepoint_exception condition in Class 3B.",
          "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": "no-safe-natural-case",
          "statement": "No distinct safe natural core runtime case for 3B000 was selected from the fixed call scan.",
          "sources": [
            "src.calls.REL_18_6"
          ],
          "method": "Review the fixed call scan for resolved 3B000 call groups and reject artificial RAISE or relabeling.",
          "limits": "This is a bounded source/definition result, not proof that every extension or injected fault cannot emit the code."
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "definition-and-source-boundary",
          "status": "definition_only",
          "evidence_ids": [
            "identity",
            "no-safe-natural-case"
          ],
          "notes": "No runtime SQLSTATE observation is selected for this code in batch constraints-transactions-3-4."
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "3B001",
      "condition_name": "invalid_savepoint_specification",
      "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.xact.18.6",
          "kind": "upstream_source",
          "source_role": "source_path",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/access/transam/xact.c",
          "sha256": "75b012c0b047d1dc905a30975c244beec366e45eac0dbf109fd21bcd611a8e39",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/transam/xact.c#L4482-L4484"
        },
        {
          "id": "src.xact.10.23",
          "kind": "upstream_source",
          "source_role": "source_path",
          "tag": "REL_10_23",
          "commit": "02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4",
          "path": "src/backend/access/transam/xact.c",
          "sha256": "9120bd418bd0f18e3f1065a3772c92ff68f3be54e1a8c6d415043197f6daa47c",
          "url": "https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/access/transam/xact.c#L3914-L3916"
        },
        {
          "id": "doc.savepoint.18.6",
          "kind": "upstream_source",
          "source_role": "official_documentation",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "doc/src/sgml/ref/savepoint.sgml",
          "sha256": "aa6e167d373da6118249c87404a7b2ff8be8c7df790449814f1d9dc433bbd428",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/savepoint.sgml",
          "docs_url": "https://www.postgresql.org/docs/18/sql-savepoint.html"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "3B001 is the invalid_savepoint_specification condition in Class 3B.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes.txt row and macro mapping.",
          "limits": "The class-level 3B000 entry is separate from this specific condition."
        },
        {
          "id": "savepoint-path",
          "statement": "RollbackToSavepoint emits a missing-savepoint error when the named savepoint is not present at the current level.",
          "sources": [
            "src.xact.18.6",
            "src.calls.REL_18_6"
          ],
          "method": "Trace ERRCODE_S_E_INVALID_SPECIFICATION in xact.c.",
          "limits": "PG10 uses the older no such savepoint wording; the SQLSTATE and state transition are the stable facts here."
        },
        {
          "id": "recovery",
          "statement": "A failed ROLLBACK TO SAVEPOINT leaves the explicit transaction in error; ROLLBACK ends that block before a new savepoint sequence.",
          "sources": [
            "doc.savepoint.18.6"
          ],
          "method": "Run the shared explicit BEGIN/SAVEPOINT/ROLLBACK case and inspect transaction status.",
          "limits": "A valid savepoint at another nesting level is a different case."
        },
        {
          "id": "runtime",
          "statement": "The selected 3B001 case passed on PostgreSQL 18.6 and 10.21 with the structured SQLSTATE, transaction-state, and repair assertions recorded in the runtime entries.",
          "sources": [
            "runtime.3B001-batch34-20260909.latest",
            "runtime.3B001-batch34-20260909.pg10"
          ],
          "method": "Read the selected runner summaries and raw outputs tied to the shared snippet registry.",
          "limits": "This covers the selected mechanism only, not all source callers or all driver/pool behavior."
        }
      ],
      "messages": [
        {
          "id": "message.savepoint-modern",
          "sqlstate": "3B001",
          "primary_template": "savepoint \"%s\" does not exist",
          "severity_source": "ERROR",
          "sources": [
            "src.xact.18.6"
          ],
          "limits": "The name is dynamic."
        },
        {
          "id": "message.savepoint-pg10",
          "sqlstate": "3B001",
          "primary_template": "no such savepoint",
          "severity_source": "ERROR",
          "sources": [
            "src.xact.10.23"
          ],
          "limits": "PG10 wording omits the savepoint name."
        }
      ],
      "usage_evidence": [
        {
          "scope": "3B001-runtime",
          "status": "observed_runtime",
          "evidence_ids": [
            "runtime",
            "runtime.3B001-batch34-20260909.latest",
            "runtime.3B001-batch34-20260909.pg10"
          ]
        },
        {
          "scope": "condition-and-source-paths",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "identity",
            "savepoint-path",
            "recovery"
          ]
        }
      ],
      "runtime": [
        {
          "id": "runtime.3B001-batch34-20260909.latest",
          "run_id": "3B001-batch34-20260909",
          "target": "latest",
          "server_version": "18.6 (Homebrew)",
          "status": "passed",
          "cases": [
            "invalid_savepoint_recovery"
          ],
          "summary_sha256": "8299597b2f31d38a52997a7386c65d71a3dd433a8bf69583bc1f55f6c5e67b95",
          "raw_sha256": "f01798df2d267371cc2eca0422cf862edf0c30a58edefa138b5a8c2bd451dab5",
          "case_manifest": {
            "sha256": "084e2bb92c6ed5388c30ece2406512434e8134c17880a2c8b8cdecdaca5001bc"
          },
          "observed": {
            "sqlstate": "3B001",
            "primary": "savepoint \"missing\" does not exist",
            "severity": "ERROR",
            "statuses": {
              "after_error": "INERROR",
              "after_repair": "IDLE",
              "after_rollback": "IDLE"
            },
            "repair": {},
            "connection_autocommit": true
          },
          "snippet_registry": {
            "sha256": "595ce7692e34d36cc31df94c65c7040ee9bc4558fa887c23b56ba3187d235deb"
          }
        },
        {
          "id": "runtime.3B001-batch34-20260909.pg10",
          "run_id": "3B001-batch34-20260909",
          "target": "pg10",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "status": "passed",
          "cases": [
            "invalid_savepoint_recovery"
          ],
          "summary_sha256": "7e4de60ee83cc2e565050d93648c16006a266d3f584f8d1b096aef89b546ebe2",
          "raw_sha256": "66ae381dc1edbb309a234751738e015d5bd34b38777f7ae66e7b6eeee549ce91",
          "case_manifest": {
            "sha256": "084e2bb92c6ed5388c30ece2406512434e8134c17880a2c8b8cdecdaca5001bc"
          },
          "observed": {
            "sqlstate": "3B001",
            "primary": "no such savepoint",
            "severity": "ERROR",
            "statuses": {
              "after_error": "INERROR",
              "after_repair": "IDLE",
              "after_rollback": "IDLE"
            },
            "repair": {},
            "connection_autocommit": true
          },
          "snippet_registry": {
            "sha256": "595ce7692e34d36cc31df94c65c7040ee9bc4558fa887c23b56ba3187d235deb"
          }
        }
      ]
    },
    {
      "sqlstate": "3D000",
      "condition_name": "invalid_catalog_name",
      "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",
          "tag": "REL_18_6"
        },
        {
          "id": "src.calls.REL_10_23",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "00d16d3eb01b71ccf1b245c8f3102f9d0ec9f36fb02777b8dd1b99fcb263040c",
          "tag": "REL_10_23"
        },
        {
          "id": "src.postinit-missing-db.18.6",
          "kind": "upstream_source",
          "source_role": "source_path",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/init/postinit.c",
          "sha256": "abcf80637b153d3aa6f0d2b600943af0a2b4d9a393d05a844db91f8b6b66d0d7",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/init/postinit.c#L1014-L1017"
        },
        {
          "id": "src.postinit-missing-db.10.23",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_10_23",
          "commit": "02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4",
          "path": "src/backend/utils/init/postinit.c",
          "sha256": "be912628b29f34afc7b7fbc9d2f480c5ac9cb6ce013a1d992fc7415a311a95ed",
          "url": "https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/utils/init/postinit.c#L846-L848"
        },
        {
          "id": "src.dbcommands-missing-database.18.6",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/dbcommands.c",
          "sha256": "64b77d2197dce16eb1ad19d8168382459d621a03df0b00be157f7db39ca22acf",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/dbcommands.c#L1702-L1704"
        },
        {
          "id": "src.dbcommands-missing-database.10.23",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_10_23",
          "commit": "02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4",
          "path": "src/backend/commands/dbcommands.c",
          "sha256": "cf9e069415deb7d50ef931048616ae7f9a459d6db64e3d54a0062e8334970ce6",
          "url": "https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/commands/dbcommands.c#L806-L808"
        },
        {
          "id": "doc.transactions.18",
          "kind": "upstream_source",
          "source_role": "transaction_recovery_documentation",
          "tag": "PG18-docs",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "doc/src/sgml/xact.sgml",
          "sha256": "b48fbe8bd02ce3d1181a350c88c8baa6e11c73edc90a936e77b180daef328c5c",
          "url": "https://www.postgresql.org/docs/18/tutorial-transactions.html"
        },
        {
          "id": "manifest.3D000",
          "kind": "local_artifact",
          "source_role": "case_manifest",
          "sha256": "4ba3384ea04c9e8da120871cc8ab82ab3f19f7b7c2134a78aed63b6f2872cc19",
          "tag": "workspace"
        },
        {
          "id": "snippet-registry.3D000",
          "kind": "local_artifact",
          "source_role": "snippet_registry",
          "sha256": "30f24743d2311ceef0e542957f159bb7398d81672068f068b29fb35278fe718b",
          "tag": "workspace"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "statement": "3D000 is the invalid_catalog_name condition in Class 3D.",
          "method": "Read the fixed errcodes.txt definition and the locked catalogue metadata.",
          "limits": "Directory identity does not identify every backend or client path.",
          "sources": [
            "src.errcodes.18.6"
          ]
        },
        {
          "id": "mechanism.backend-path",
          "statement": "The fixed source paths associated with 3D000 report the condition in the mechanism selected for this page.",
          "method": "Trace the resolved source call records at the fixed release commits and compare their dynamic message fields.",
          "limits": "Other calls can retain the same SQLSTATE with different context or text.",
          "sources": [
            "src.postinit-missing-db.18.6",
            "src.postinit-missing-db.10.23",
            "src.dbcommands-missing-database.18.6",
            "src.dbcommands-missing-database.10.23"
          ]
        },
        {
          "id": "runtime.representative-case",
          "statement": "The selected invalid_database case passed with the expected structured diagnostics, recovery assertions, and cleanup on PostgreSQL 18.6 and 10.21.",
          "method": "Run the shared registry case on isolated runner-owned latest and PG10 targets; inspect the final summaries and raw results.",
          "limits": "This covers the selected case and versions only; it does not generalize to every driver, proxy, or intermediate release.",
          "sources": [
            "snippet-registry.3D000",
            "manifest.3D000"
          ],
          "runtime": [
            "runtime.3D000-conn-contract-latest.latest",
            "runtime.3D000-conn-contract-pg10.pg10"
          ]
        },
        {
          "id": "phase-boundary",
          "statement": "The selected postinit.c startup path emits 3D000 as FATAL before a session transaction exists, while fixed dbcommands.c paths use the same code in an already-connected SQL command where normal ERROR rollback or savepoint recovery applies.",
          "method": "Compare the fixed startup and SQL-command source paths with the official transaction recovery contract and the selected startup runtime.",
          "limits": "The selected runtime covers the startup missing-database path; the SQL-command phase is source-confirmed and has no selected natural runtime in this batch.",
          "sources": [
            "src.postinit-missing-db.18.6",
            "src.dbcommands-missing-database.18.6",
            "doc.transactions.18"
          ]
        },
        {
          "id": "versions.catalogue-boundary",
          "statement": "The locked catalogue records 3D000 in the listed snapshots; the runtime comparison here is limited to PostgreSQL 18.6 and 10.21.",
          "method": "Read the generated facts block and locked manifest, then compare the selected target summaries.",
          "limits": "Presence in a definition file is not an exact behavioral introduction; the two runtime targets do not prove all middle versions.",
          "sources": [
            "src.errcodes.18.6",
            "src.calls.REL_18_6",
            "src.calls.REL_10_23"
          ]
        }
      ],
      "messages": [
        {
          "id": "message.missing-database",
          "sqlstate": "3D000",
          "severity_source": "explicit FATAL",
          "sources": [
            "src.postinit-missing-db.18.6",
            "src.postinit-missing-db.10.23"
          ],
          "primary_template": "database \"%s\" does not exist"
        }
      ],
      "usage_evidence": [
        {
          "scope": "SQLSTATE directory identity",
          "status": "definition_only",
          "evidence_ids": [
            "identity.class-and-condition",
            "src.errcodes.18.6"
          ]
        },
        {
          "scope": "Selected backend mechanism",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "mechanism.backend-path",
            "src.postinit-missing-db.18.6",
            "src.postinit-missing-db.10.23",
            "src.dbcommands-missing-database.18.6",
            "src.dbcommands-missing-database.10.23",
            "phase-boundary",
            "doc.transactions.18"
          ]
        },
        {
          "scope": "Observed invalid_database on isolated targets",
          "status": "observed_runtime",
          "evidence_ids": [
            "runtime.representative-case",
            "snippet-registry.3D000",
            "runtime.3D000-conn-contract-latest.latest",
            "runtime.3D000-conn-contract-pg10.pg10"
          ]
        },
        {
          "scope": "Locked release presence and bounded version comparison",
          "status": "definition_only",
          "evidence_ids": [
            "versions.catalogue-boundary",
            "src.errcodes.18.6"
          ]
        }
      ],
      "runtime": [
        {
          "id": "runtime.3D000-conn-contract-latest.latest",
          "kind": "runtime_observation",
          "run_id": "3D000-conn-contract-latest",
          "target": "latest",
          "status": "passed",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "cases": [
            "invalid_database"
          ],
          "summary_sha256": "ab82d13112fb06fe92ba4a844d508b73fbab3837958d63cc12b2a2050847c412",
          "raw_sha256": "358e4f85f7d99903037b4c73dbf5d6bed1221055f6e7d18b499cc3e52a5a1a4e",
          "case_manifest_sha256": "4ba3384ea04c9e8da120871cc8ab82ab3f19f7b7c2134a78aed63b6f2872cc19",
          "snippet_registry": {
            "sha256": "30f24743d2311ceef0e542957f159bb7398d81672068f068b29fb35278fe718b"
          },
          "environment": {
            "target_kind": "latest",
            "server_version": "18.6 (Homebrew)",
            "server_version_num": "180006",
            "machine": "arm64",
            "platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O",
            "libpq_version": "18.6",
            "psycopg_version": "3.3.5",
            "python_version": "3.14.6 (main, Jun 10 2026, 10:03:53) [Clang 21.0.0 (clang-2100.0.123.102)]",
            "locale": "en_US.UTF-8",
            "lc_messages": "C",
            "log_destination": "csvlog,jsonlog"
          },
          "observed": {
            "collector": {
              "primary": "database \"c3d000_missing_cff0e8d38be4\" does not exist",
              "severity": "FATAL",
              "sqlstate": "3D000"
            },
            "diagnostic": {
              "column_name": null,
              "constraint_name": null,
              "context": null,
              "datatype_name": null,
              "exception_type": "OperationalError",
              "internal_position": null,
              "internal_query": null,
              "message_detail": null,
              "message_hint": null,
              "message_primary": null,
              "schema_name": null,
              "severity": null,
              "severity_nonlocalized": null,
              "source_file": null,
              "source_function": null,
              "source_line": null,
              "sqlstate": null,
              "statement_position": null,
              "table_name": null,
              "text": "connection failed: connection to server at \"127.0.0.1\", port 60025 failed: FATAL:  database \"c3d000_missing_cff0e8d38be4\" does not exist"
            },
            "failed_connection_has_no_transaction": true,
            "missing_database": "c3d000_missing_cff0e8d38be4",
            "probe": 1,
            "probe_status": "IDLE",
            "server_error": {
              "C": "3D000",
              "F": "postinit.c",
              "L": "1016",
              "M": "database \"c3d000_missing_cff0e8d38be4\" does not exist",
              "R": "InitPostgres",
              "S": "FATAL",
              "V": "FATAL"
            }
          },
          "assertions": [
            {
              "expected": "3D000",
              "name": "server database SQLSTATE",
              "observed": "3D000",
              "passed": true
            },
            {
              "expected": "FATAL",
              "name": "server database failure is FATAL",
              "observed": "FATAL",
              "passed": true
            },
            {
              "expected": "database \"c3d000_missing_cff0e8d38be4\" does not exist",
              "name": "server missing-database diagnostic",
              "observed": "database \"c3d000_missing_cff0e8d38be4\" does not exist",
              "passed": true
            },
            {
              "expected": "null (startup exception)",
              "name": "driver startup SQLSTATE boundary",
              "observed": null,
              "passed": true
            },
            {
              "expected": "SELECT 1 and IDLE",
              "name": "known database remains usable",
              "observed": {
                "probe": 1,
                "status": "IDLE"
              },
              "passed": true
            }
          ],
          "cleanup": {
            "case": {
              "errors": [],
              "passed": true
            },
            "target_stop": {
              "argv": [
                "/opt/homebrew/Cellar/postgresql@18/18.6/bin/pg_ctl",
                "-D",
                "<local runtime artifact>",
                "-m",
                "fast",
                "-w",
                "stop"
              ],
              "elapsed_seconds": 0.109,
              "returncode": 0,
              "stderr": "",
              "stdout": "waiting for server to shut down.... done\nserver stopped\n"
            }
          },
          "limits": "Disposable runner-owned target only; this is a bounded mechanism case, not a guarantee for every client or network path."
        },
        {
          "id": "runtime.3D000-conn-contract-pg10.pg10",
          "kind": "runtime_observation",
          "run_id": "3D000-conn-contract-pg10",
          "target": "pg10",
          "status": "passed",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "cases": [
            "invalid_database"
          ],
          "summary_sha256": "8b23ff808e37fff48a8617be25efbbb7a7074f06292ee06dcdf553fb26c34ccd",
          "raw_sha256": "80042acbc3e919a79dc5d841dc2a20db68569114af6b97a23a2e7f09f0213f4d",
          "case_manifest_sha256": "4ba3384ea04c9e8da120871cc8ab82ab3f19f7b7c2134a78aed63b6f2872cc19",
          "snippet_registry": {
            "sha256": "30f24743d2311ceef0e542957f159bb7398d81672068f068b29fb35278fe718b"
          },
          "environment": {
            "target_kind": "pg10",
            "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
            "server_version_num": "100021",
            "machine": "arm64",
            "platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O",
            "libpq_version": "18.6",
            "psycopg_version": "3.3.5",
            "python_version": "3.14.6 (main, Jun 10 2026, 10:03:53) [Clang 21.0.0 (clang-2100.0.123.102)]",
            "locale": "en_US.UTF-8",
            "lc_messages": "en_US.utf8",
            "log_destination": "csvlog"
          },
          "observed": {
            "collector": {
              "primary": "database \"c3d000_missing_9d55329d2676\" does not exist",
              "severity": "FATAL",
              "sqlstate": "3D000"
            },
            "diagnostic": {
              "column_name": null,
              "constraint_name": null,
              "context": null,
              "datatype_name": null,
              "exception_type": "OperationalError",
              "internal_position": null,
              "internal_query": null,
              "message_detail": null,
              "message_hint": null,
              "message_primary": null,
              "schema_name": null,
              "severity": null,
              "severity_nonlocalized": null,
              "source_file": null,
              "source_function": null,
              "source_line": null,
              "sqlstate": null,
              "statement_position": null,
              "table_name": null,
              "text": "connection failed: connection to server at \"127.0.0.1\", port 60027 failed: FATAL:  database \"c3d000_missing_9d55329d2676\" does not exist"
            },
            "failed_connection_has_no_transaction": true,
            "missing_database": "c3d000_missing_9d55329d2676",
            "probe": 1,
            "probe_status": "IDLE",
            "server_error": {
              "C": "3D000",
              "F": "postinit.c",
              "L": "848",
              "M": "database \"c3d000_missing_9d55329d2676\" does not exist",
              "R": "InitPostgres",
              "S": "FATAL",
              "V": "FATAL"
            }
          },
          "assertions": [
            {
              "expected": "3D000",
              "name": "server database SQLSTATE",
              "observed": "3D000",
              "passed": true
            },
            {
              "expected": "FATAL",
              "name": "server database failure is FATAL",
              "observed": "FATAL",
              "passed": true
            },
            {
              "expected": "database \"c3d000_missing_9d55329d2676\" does not exist",
              "name": "server missing-database diagnostic",
              "observed": "database \"c3d000_missing_9d55329d2676\" does not exist",
              "passed": true
            },
            {
              "expected": "null (startup exception)",
              "name": "driver startup SQLSTATE boundary",
              "observed": null,
              "passed": true
            },
            {
              "expected": "SELECT 1 and IDLE",
              "name": "known database remains usable",
              "observed": {
                "probe": 1,
                "status": "IDLE"
              },
              "passed": true
            }
          ],
          "cleanup": {
            "case": {
              "errors": [],
              "passed": true
            },
            "target_stop": {
              "cleanup": {
                "argv": [
                  "/usr/local/bin/docker",
                  "rm",
                  "-f",
                  "-v",
                  "sqlstate3d000_3D000conncontractpg10_pg10"
                ],
                "elapsed_seconds": 0.279,
                "returncode": 0,
                "stderr": "",
                "stdout": "sqlstate3d000_3D000conncontractpg10_pg10\n"
              },
              "inspect": {
                "argv": [
                  "/usr/local/bin/docker",
                  "inspect",
                  "sqlstate3d000_3D000conncontractpg10_pg10"
                ],
                "elapsed_seconds": 0.016,
                "returncode": 0,
                "stderr": "",
                "stdout": "[\n    {\n        \"Id\": \"cd81e584ea493a6a7753c8a40809b7a22f3b218d5385e84aaa12c1a15a9cb513\",\n        \"Created\": \"2026-09-09T15:18:38.056196637Z\",\n        \"Path\": \"docker-entrypoint.sh\",\n        \"Args\": [\n            \"postgres\",\n            \"-c\",\n            \"listen_addresses=*\",\n            \"-c\",\n            \"log_destination=csvlog\",\n            \"-c\",\n            \"logging_collector=on\",\n            \"-c\",\n            \"log_directory=log\",\n            \"-c\",\n            \"log_filename=postgresql-%Y%m%d%H%M%S.log\",\n            \"-c\",\n            \"log_min_messages=error\",\n            \"-c\",\n            \"log_min_error_statement=error\",\n            \"-c\",\n            \"log_error_verbosity=verbose\",\n            \"-c\",\n            \"wal_level=logical\",\n            \"-c\",\n            \"max_wal_senders=10\",\n            \"-c\",\n            \"max_replication_slots=10\"\n        ],\n        \"State\": {\n            \"Status\": \"running\",\n            \"Running\": true,\n            \"Paused\": false,\n            \"Restarting\": false,\n            \"OOMKilled\": false,\n            \"Dead\": false,\n            \"Pid\": 55713,\n            \"ExitCode\": 0,\n            \"Error\": \"\",\n            \"StartedAt\": \"2026-09-09T15:18:38.137853887Z\",\n            \"FinishedAt\": \"0001-01-01T00:00:00Z\"\n        },\n        \"Image\": \"sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc\",\n        \"ResolvConfPath\": \"/var/lib/docker/containers/cd81e584ea493a6a7753c8a40809b7a22f3b218d5385e84aaa12c1a15a9cb513/resolv.conf\",\n        \"HostnamePath\": \"/var/lib/docker/containers/cd81e584ea493a6a7753c8a40809b7a22f3b218d5385e84aaa12c1a15a9cb513/hostname\",\n        \"HostsPath\": \"/var/lib/docker/containers/cd81e584ea493a6a7753c8a40809b7a22f3b218d5385e84aaa12c1a15a9cb513/hosts\",\n        \"LogPath\": \"/var/lib/docker/containers/cd81e584ea493a6a7753c8a40809b7a22f3b218d5385e84aaa12c1a15a9cb513/cd81e584ea493a6a7753c8a40809b7a22f3b218d5385e84aaa12c1a15a9cb513-json.log\",\n        \"Name\": \"/sqlstate3d000_3D000conncontractpg10_pg10\",\n        \"RestartCount\": 0,\n        \"Driver\": \"overlayfs\",\n        \"Platform\": \"linux\",\n        \"MountLabel\": \"\",\n        \"ProcessLabel\": \"\",\n        \"AppArmorProfile\": \"\",\n        \"ExecIDs\": null,\n        \"HostConfig\": {\n            \"Binds\": null,\n            \"ContainerIDFile\": \"\",\n            \"LogConfig\": {\n                \"Type\": \"json-file\",\n                \"Config\": {}\n            },\n            \"NetworkMode\": \"bridge\",\n            \"PortBindings\": {\n                \"5432/tcp\": [\n                    {\n                        \"HostIp\": \"127.0.0.1\",\n                        \"HostPort\": \"\"\n                    }\n                ]\n            },\n            \"RestartPolicy\": {\n                \"Name\": \"no\",\n                \"MaximumRetryCount\": 0\n            },\n            \"AutoRemove\": false,\n            \"VolumeDriver\": \"\",\n            \"VolumesFrom\": null,\n            \"ConsoleSize\": [\n                0,\n                0\n            ],\n            \"CapAdd\": null,\n            \"CapDrop\": null,\n            \"CgroupnsMode\": \"private\",\n            \"Dns\": null,\n            \"DnsOptions\": [],\n            \"DnsSearch\": [],\n            \"ExtraHosts\": null,\n            \"GroupAdd\": null,\n            \"IpcMode\": \"private\",\n            \"Cgroup\": \"\",\n            \"Links\": null,\n            \"OomScoreAdj\": 0,\n            \"PidMode\": \"\",\n            \"Privileged\": false,\n            \"PublishAllPorts\": false,\n            \"ReadonlyRootfs\": false,\n            \"SecurityOpt\": null,\n            \"UTSMode\": \"\",\n            \"UsernsMode\": \"\",\n            \"ShmSize\": 67108864,\n            \"Runtime\": \"runc\",\n            \"Isolation\": \"\",\n            \"CpuShares\": 0,\n            \"Memory\": 0,\n            \"NanoCpus\": 0,\n            \"CgroupParent\": \"\",\n            \"BlkioWeight\": 0,\n            \"BlkioWeightDevice\": [],\n            \"BlkioDeviceReadBps\": [],\n            \"BlkioDeviceWriteBps\": [],\n            \"BlkioDeviceReadIOps\": [],\n            \"BlkioDeviceWriteIOps\": [],\n            \"CpuPeriod\": 0,\n            \"CpuQuota\": 0,\n            \"CpuRealtimePeriod\": 0,\n            \"CpuRealtimeRuntime\": 0,\n            \"CpusetCpus\": \"\",\n            \"CpusetMems\": \"\",\n            \"Devices\": [],\n            \"DeviceCgroupRules\": null,\n            \"DeviceRequests\": null,\n            \"MemoryReservation\": 0,\n            \"MemorySwap\": 0,\n            \"MemorySwappiness\": null,\n            \"OomKillDisable\": null,\n            \"PidsLimit\": null,\n            \"Ulimits\": [],\n            \"CpuCount\": 0,\n            \"CpuPercent\": 0,\n            \"IOMaximumIOps\": 0,\n            \"IOMaximumBandwidth\": 0,\n            \"MaskedPaths\": [\n                \"/proc/acpi\",\n                \"/proc/asound\",\n                \"/proc/interrupts\",\n                \"/proc/kcore\",\n                \"/proc/keys\",\n                \"/proc/latency_stats\",\n                \"/proc/sched_debug\",\n                \"/proc/scsi\",\n                \"/proc/timer_list\",\n                \"/proc/timer_stats\",\n                \"/sys/devices/virtual/powercap\",\n                \"/sys/firmware\"\n            ],\n            \"ReadonlyPaths\": [\n                \"/proc/bus\",\n                \"/proc/fs\",\n                \"/proc/irq\",\n                \"/proc/sys\",\n                \"/proc/sysrq-trigger\"\n            ]\n        },\n        \"Storage\": {\n            \"RootFS\": {\n                \"Snapshot\": {\n                    \"Name\": \"overlayfs\"\n                }\n            }\n        },\n        \"Mounts\": [\n            {\n                \"Type\": \"volume\",\n                \"Name\": \"18c59f68fec02f77148a04c983dfce7c943c9a425241770906e90536b63b81c5\",\n                \"Source\": \"/var/lib/docker/volumes/18c59f68fec02f77148a04c983dfce7c943c9a425241770906e90536b63b81c5/_data\",\n                \"Destination\": \"/var/lib/postgresql/data\",\n                \"Driver\": \"local\",\n                \"Mode\": \"\",\n                \"RW\": true,\n                \"Propagation\": \"\"\n            }\n        ],\n        \"Config\": {\n            \"Hostname\": \"cd81e584ea49\",\n            \"Domainname\": \"\",\n            \"User\": \"\",\n            \"AttachStdin\": false,\n            \"AttachStdout\": false,\n            \"AttachStderr\": false,\n            \"ExposedPorts\": {\n                \"5432/tcp\": {}\n            },\n            \"Tty\": false,\n            \"OpenStdin\": false,\n            \"StdinOnce\": false,\n            \"Env\": [\n                \"POSTGRES_HOST_AUTH_METHOD=trust\",\n                \"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/10/bin\",\n                \"GOSU_VERSION=1.14\",\n                \"LANG=en_US.utf8\",\n                \"PG_MAJOR=10\",\n                \"PG_VERSION=10.21-1.pgdg90+1\",\n                \"PGDATA=/var/lib/postgresql/data\"\n            ],\n            \"Cmd\": [\n                \"postgres\",\n                \"-c\",\n                \"listen_addresses=*\",\n                \"-c\",\n                \"log_destination=csvlog\",\n                \"-c\",\n                \"logging_collector=on\",\n                \"-c\",\n                \"log_directory=log\",\n                \"-c\",\n                \"log_filename=postgresql-%Y%m%d%H%M%S.log\",\n                \"-c\",\n                \"log_min_messages=error\",\n                \"-c\",\n                \"log_min_error_statement=error\",\n                \"-c\",\n                \"log_error_verbosity=verbose\",\n                \"-c\",\n                \"wal_level=logical\",\n                \"-c\",\n                \"max_wal_senders=10\",\n                \"-c\",\n                \"max_replication_slots=10\"\n            ],\n            \"Image\": \"postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc\",\n            \"Volumes\": {\n                \"/var/lib/postgresql/data\": {}\n            },\n            \"WorkingDir\": \"\",\n            \"Entrypoint\": [\n                \"docker-entrypoint.sh\"\n            ],\n            \"Labels\": {},\n            \"StopSignal\": \"SIGINT\",\n            \"StopTimeout\": 1\n        },\n        \"NetworkSettings\": {\n            \"SandboxID\": \"131e0612a04bf103c420e6b49b7f5efb3736a6a8d9fce40da6c12e43966cac6d\",\n            \"SandboxKey\": \"/var/run/docker/netns/131e0612a04b\",\n            \"Ports\": {\n                \"5432/tcp\": [\n                    {\n                        \"HostIp\": \"127.0.0.1\",\n                        \"HostPort\": \"60027\"\n                    }\n                ]\n            },\n            \"Networks\": {\n                \"bridge\": {\n                    \"IPAMConfig\": null,\n                    \"Links\": null,\n                    \"Aliases\": null,\n                    \"DriverOpts\": null,\n                    \"GwPriority\": 0,\n                    \"NetworkID\": \"aed51554f8cd8bac69ecd4f073e41e147fda7b458e9d95be2af472651f2e825c\",\n                    \"EndpointID\": \"480c2329e0e08ac65e95d8a36f45394a255d42fde3a4b6064a77d8a984b0caaa\",\n                    \"Gateway\": \"172.17.0.1\",\n                    \"IPAddress\": \"172.17.0.53\",\n                    \"MacAddress\": \"ca:28:7e:df:63:04\",\n                    \"IPPrefixLen\": 16,\n                    \"IPv6Gateway\": \"\",\n                    \"GlobalIPv6Address\": \"\",\n                    \"GlobalIPv6PrefixLen\": 0,\n                    \"DNSNames\": null\n                }\n            }\n        },\n        \"ImageManifestDescriptor\": {\n            \"mediaType\": \"application/vnd.docker.distribution.manifest.v2+json\",\n            \"digest\": \"sha256:52aada7978f1eef3b6b52a51afb7a3defd69254d00c946cb90d2ceb32b8ffce7\",\n            \"size\": 3246,\n            \"platform\": {\n                \"architecture\": \"arm64\",\n                \"os\": \"linux\",\n                \"variant\": \"v8\"\n            }\n        }\n    }\n]\n"
              }
            }
          },
          "limits": "Disposable runner-owned target only; this is a bounded mechanism case, not a guarantee for every client or network path.",
          "image": "postgres:10"
        }
      ]
    },
    {
      "sqlstate": "3F000",
      "condition_name": "invalid_schema_name",
      "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",
          "tag": "REL_18_6"
        },
        {
          "id": "src.calls.REL_10_23",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "00d16d3eb01b71ccf1b245c8f3102f9d0ec9f36fb02777b8dd1b99fcb263040c",
          "tag": "REL_10_23"
        },
        {
          "id": "src.namespace-missing-schema.18.6",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/catalog/namespace.c",
          "sha256": "8c9e6a99e84fa2cec8a9b1de2ecbe3966a13f4ad68c6ccfbfb8134a754d73e56",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/catalog/namespace.c#L3545-L3547"
        },
        {
          "id": "src.namespace-missing-schema.10.23",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_10_23",
          "commit": "02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4",
          "path": "src/backend/catalog/namespace.c",
          "sha256": "74833354740d0e5679507d07b3c6e41aea01c2cb30adcd1e238bed3ebf96ddc6",
          "url": "https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/catalog/namespace.c#L3022-L3024"
        },
        {
          "id": "src.namespace-creation-no-schema.10.23",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_10_23",
          "commit": "02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4",
          "path": "src/backend/catalog/namespace.c",
          "sha256": "74833354740d0e5679507d07b3c6e41aea01c2cb30adcd1e238bed3ebf96ddc6",
          "url": "https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/catalog/namespace.c#L2967-L3004"
        },
        {
          "id": "src.parse-relation-undefined-table.10.23",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_10_23",
          "commit": "02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4",
          "path": "src/backend/parser/parse_relation.c",
          "sha256": "a34f40fc93fa5df0015fe5af5ee7761ccba2d16a791cda69ae07848ed27616b5",
          "url": "https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/parser/parse_relation.c#L1147-L1184"
        },
        {
          "id": "doc.transactions.18",
          "kind": "upstream_source",
          "source_role": "transaction_recovery_documentation",
          "tag": "PG18-docs",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "doc/src/sgml/xact.sgml",
          "sha256": "b48fbe8bd02ce3d1181a350c88c8baa6e11c73edc90a936e77b180daef328c5c",
          "url": "https://www.postgresql.org/docs/18/tutorial-transactions.html"
        },
        {
          "id": "manifest.3F000",
          "kind": "local_artifact",
          "source_role": "case_manifest",
          "sha256": "24f38a529b6226fed2c5a75d5d25414c6be4616a8e27cb8a72021aca552d8baa",
          "tag": "workspace"
        },
        {
          "id": "snippet-registry.3F000",
          "kind": "local_artifact",
          "source_role": "snippet_registry",
          "sha256": "a51e3e0d667e45c1ef692589bbddb847d49df0689e12d14616eb23ee036d82ac",
          "tag": "workspace"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "statement": "3F000 is the invalid_schema_name condition in Class 3F.",
          "method": "Read the fixed errcodes.txt definition and the locked catalogue metadata.",
          "limits": "Directory identity does not identify every backend or client path.",
          "sources": [
            "src.errcodes.18.6"
          ]
        },
        {
          "id": "mechanism.backend-path",
          "statement": "The fixed source paths associated with 3F000 report the condition in the mechanism selected for this page.",
          "method": "Trace the resolved source call records at the fixed release commits and compare their dynamic message fields.",
          "limits": "Other calls can retain the same SQLSTATE with different context or text.",
          "sources": [
            "src.namespace-missing-schema.18.6",
            "src.namespace-missing-schema.10.23"
          ]
        },
        {
          "id": "runtime.representative-case",
          "statement": "The selected invalid_schema_name case passed with the expected structured diagnostics, recovery assertions, and cleanup on PostgreSQL 18.6 and 10.21.",
          "method": "Run the shared registry case on isolated runner-owned latest and PG10 targets; inspect the final summaries and raw results.",
          "limits": "This covers the selected case and versions only; it does not generalize to every driver, proxy, or intermediate release.",
          "sources": [
            "snippet-registry.3F000",
            "manifest.3F000"
          ],
          "runtime": [
            "runtime.3F000-conn-test-latest.latest",
            "runtime.3F000-conn-test-pg10.pg10"
          ]
        },
        {
          "id": "namespace-branch-boundary",
          "statement": "The fixed namespace branches distinguish an explicitly missing schema, which reports 3F000 with schema \"%s\" does not exist, from an unqualified CREATE with no active creation namespace, which reports 3F000 with no schema has been selected to create in. An unqualified relation miss is the parser's 42P01 relation \"%s\" does not exist path, and privilege denial is 42501; search_path does not turn those relation or privilege branches into 3F000.",
          "method": "Read the complete fixed namespace creation and explicit-lookup branches together with parserOpenTable, then compare the selected runtime diagnostics and transaction recovery contract.",
          "limits": "The selected runtime covers one qualified missing-schema reference; the creation-no-schema and 42P01 contrast branches are source-only and no new runtime was selected.",
          "sources": [
            "src.namespace-missing-schema.18.6",
            "src.namespace-missing-schema.10.23",
            "src.namespace-creation-no-schema.10.23",
            "src.parse-relation-undefined-table.10.23",
            "doc.transactions.18"
          ]
        },
        {
          "id": "versions.catalogue-boundary",
          "statement": "The locked catalogue records 3F000 in the listed snapshots; the runtime comparison here is limited to PostgreSQL 18.6 and 10.21.",
          "method": "Read the generated facts block and locked manifest, then compare the selected target summaries.",
          "limits": "Presence in a definition file is not an exact behavioral introduction; the two runtime targets do not prove all middle versions.",
          "sources": [
            "src.errcodes.18.6",
            "src.calls.REL_18_6",
            "src.calls.REL_10_23"
          ]
        }
      ],
      "messages": [
        {
          "id": "message.missing-schema",
          "sqlstate": "3F000",
          "severity_source": "explicit ERROR",
          "sources": [
            "src.namespace-missing-schema.18.6",
            "src.namespace-missing-schema.10.23"
          ],
          "primary_template": "schema \"%s\" does not exist"
        },
        {
          "id": "message.creation-no-schema",
          "sqlstate": "3F000",
          "severity_source": "explicit ERROR",
          "sources": [
            "src.namespace-creation-no-schema.10.23"
          ],
          "primary_template": "no schema has been selected to create in"
        }
      ],
      "usage_evidence": [
        {
          "scope": "SQLSTATE directory identity",
          "status": "definition_only",
          "evidence_ids": [
            "identity.class-and-condition",
            "src.errcodes.18.6"
          ]
        },
        {
          "scope": "Selected backend mechanism",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "mechanism.backend-path",
            "src.namespace-missing-schema.18.6",
            "src.namespace-missing-schema.10.23",
            "namespace-branch-boundary",
            "src.namespace-creation-no-schema.10.23",
            "src.parse-relation-undefined-table.10.23",
            "doc.transactions.18"
          ]
        },
        {
          "scope": "Observed invalid_schema_name on isolated targets",
          "status": "observed_runtime",
          "evidence_ids": [
            "runtime.representative-case",
            "snippet-registry.3F000",
            "runtime.3F000-conn-test-latest.latest",
            "runtime.3F000-conn-test-pg10.pg10"
          ]
        },
        {
          "scope": "Locked release presence and bounded version comparison",
          "status": "definition_only",
          "evidence_ids": [
            "versions.catalogue-boundary",
            "src.errcodes.18.6"
          ]
        }
      ],
      "runtime": [
        {
          "id": "runtime.3F000-conn-test-latest.latest",
          "kind": "runtime_observation",
          "run_id": "3F000-conn-test-latest",
          "target": "latest",
          "status": "passed",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "cases": [
            "invalid_schema_name"
          ],
          "summary_sha256": "9a561e0b5973596704fbffc8d1ac0fe9fdf28952bf8a6b99c7a389ddd4719ca3",
          "raw_sha256": "9dbd0f3c1d1567ba9285d398eb99ad12283459c859af49a905f1e592425eafad",
          "case_manifest_sha256": "24f38a529b6226fed2c5a75d5d25414c6be4616a8e27cb8a72021aca552d8baa",
          "snippet_registry": {
            "sha256": "a51e3e0d667e45c1ef692589bbddb847d49df0689e12d14616eb23ee036d82ac"
          },
          "environment": {
            "target_kind": "latest",
            "server_version": "18.6 (Homebrew)",
            "server_version_num": "180006",
            "machine": "arm64",
            "platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O",
            "libpq_version": "18.6",
            "psycopg_version": "3.3.5",
            "python_version": "3.14.6 (main, Jun 10 2026, 10:03:53) [Clang 21.0.0 (clang-2100.0.123.102)]",
            "locale": "en_US.UTF-8",
            "lc_messages": "C",
            "log_destination": "csvlog,jsonlog"
          },
          "observed": {
            "connection_autocommit": true,
            "diagnostic": {
              "column_name": null,
              "constraint_name": null,
              "context": null,
              "datatype_name": null,
              "exception_type": "InvalidSchemaName",
              "internal_position": null,
              "internal_query": null,
              "message_detail": null,
              "message_hint": null,
              "message_primary": "schema \"c3f000_invalid_schema_name_missing\" does not exist",
              "schema_name": null,
              "severity": "ERROR",
              "severity_nonlocalized": "ERROR",
              "source_file": "namespace.c",
              "source_function": "get_namespace_oid",
              "source_line": "3547",
              "sqlstate": "3F000",
              "statement_position": "14",
              "table_name": null,
              "text": "schema \"c3f000_invalid_schema_name_missing\" does not exist\nLINE 1: CREATE TABLE \"c3f000_invalid_schema_name_missing\".\"repaired_...\n                     ^"
            },
            "missing_schema": "c3f000_invalid_schema_name_missing",
            "repaired_table": "c3f000_invalid_schema_name_missing.repaired_table",
            "row_count": 1,
            "statuses": {
              "after_error": "IDLE",
              "final": "IDLE"
            }
          },
          "assertions": [
            {
              "expected": "3F000",
              "name": "schema SQLSTATE",
              "observed": "3F000",
              "passed": true
            },
            {
              "expected": "schema \"c3f000_invalid_schema_name_missing\" does not exist",
              "name": "schema diagnostic",
              "observed": "schema \"c3f000_invalid_schema_name_missing\" does not exist",
              "passed": true
            },
            {
              "expected": "IDLE, one row, IDLE",
              "name": "schema creation repairs path",
              "observed": {
                "after_error": "IDLE",
                "count": 1,
                "final": "IDLE"
              },
              "passed": true
            }
          ],
          "cleanup": {
            "case": {
              "errors": [],
              "passed": true
            },
            "target_stop": {
              "argv": [
                "/opt/homebrew/Cellar/postgresql@18/18.6/bin/pg_ctl",
                "-D",
                "<local runtime artifact>",
                "-m",
                "fast",
                "-w",
                "stop"
              ],
              "elapsed_seconds": 0.107,
              "returncode": 0,
              "stderr": "",
              "stdout": "waiting for server to shut down.... done\nserver stopped\n"
            }
          },
          "limits": "Disposable runner-owned target only; this is a bounded mechanism case, not a guarantee for every client or network path."
        },
        {
          "id": "runtime.3F000-conn-test-pg10.pg10",
          "kind": "runtime_observation",
          "run_id": "3F000-conn-test-pg10",
          "target": "pg10",
          "status": "passed",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "cases": [
            "invalid_schema_name"
          ],
          "summary_sha256": "34a08faf372e7b262ae783c0d50a291d75ee8eece30a72c513f3f65482d6bfaa",
          "raw_sha256": "7dc9d41be4105c27ab544456931505332018143becf021604cbd22e206fc537c",
          "case_manifest_sha256": "24f38a529b6226fed2c5a75d5d25414c6be4616a8e27cb8a72021aca552d8baa",
          "snippet_registry": {
            "sha256": "a51e3e0d667e45c1ef692589bbddb847d49df0689e12d14616eb23ee036d82ac"
          },
          "environment": {
            "target_kind": "pg10",
            "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
            "server_version_num": "100021",
            "machine": "arm64",
            "platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O",
            "libpq_version": "18.6",
            "psycopg_version": "3.3.5",
            "python_version": "3.14.6 (main, Jun 10 2026, 10:03:53) [Clang 21.0.0 (clang-2100.0.123.102)]",
            "locale": "en_US.UTF-8",
            "lc_messages": "en_US.utf8",
            "log_destination": "csvlog"
          },
          "observed": {
            "connection_autocommit": true,
            "diagnostic": {
              "column_name": null,
              "constraint_name": null,
              "context": null,
              "datatype_name": null,
              "exception_type": "InvalidSchemaName",
              "internal_position": null,
              "internal_query": null,
              "message_detail": null,
              "message_hint": null,
              "message_primary": "schema \"c3f000_invalid_schema_name_missing\" does not exist",
              "schema_name": null,
              "severity": "ERROR",
              "severity_nonlocalized": "ERROR",
              "source_file": "namespace.c",
              "source_function": "get_namespace_oid",
              "source_line": "3024",
              "sqlstate": "3F000",
              "statement_position": "14",
              "table_name": null,
              "text": "schema \"c3f000_invalid_schema_name_missing\" does not exist\nLINE 1: CREATE TABLE \"c3f000_invalid_schema_name_missing\".\"repaired_...\n                     ^"
            },
            "missing_schema": "c3f000_invalid_schema_name_missing",
            "repaired_table": "c3f000_invalid_schema_name_missing.repaired_table",
            "row_count": 1,
            "statuses": {
              "after_error": "IDLE",
              "final": "IDLE"
            }
          },
          "assertions": [
            {
              "expected": "3F000",
              "name": "schema SQLSTATE",
              "observed": "3F000",
              "passed": true
            },
            {
              "expected": "schema \"c3f000_invalid_schema_name_missing\" does not exist",
              "name": "schema diagnostic",
              "observed": "schema \"c3f000_invalid_schema_name_missing\" does not exist",
              "passed": true
            },
            {
              "expected": "IDLE, one row, IDLE",
              "name": "schema creation repairs path",
              "observed": {
                "after_error": "IDLE",
                "count": 1,
                "final": "IDLE"
              },
              "passed": true
            }
          ],
          "cleanup": {
            "case": {
              "errors": [],
              "passed": true
            },
            "target_stop": {
              "cleanup": {
                "argv": [
                  "/usr/local/bin/docker",
                  "rm",
                  "-f",
                  "-v",
                  "sqlstate3f000_3F000conntestpg10_pg10"
                ],
                "elapsed_seconds": 0.341,
                "returncode": 0,
                "stderr": "",
                "stdout": "sqlstate3f000_3F000conntestpg10_pg10\n"
              },
              "inspect": {
                "argv": [
                  "/usr/local/bin/docker",
                  "inspect",
                  "sqlstate3f000_3F000conntestpg10_pg10"
                ],
                "elapsed_seconds": 0.017,
                "returncode": 0,
                "stderr": "",
                "stdout": "[\n    {\n        \"Id\": \"b694ead735ee83bb7da85608cdfab90a0f507e23e9df10793cd29acb82a3ebad\",\n        \"Created\": \"2026-09-09T14:55:53.169487505Z\",\n        \"Path\": \"docker-entrypoint.sh\",\n        \"Args\": [\n            \"postgres\",\n            \"-c\",\n            \"listen_addresses=*\",\n            \"-c\",\n            \"log_destination=csvlog\",\n            \"-c\",\n            \"logging_collector=on\",\n            \"-c\",\n            \"log_directory=log\",\n            \"-c\",\n            \"log_filename=postgresql-%Y%m%d%H%M%S.log\",\n            \"-c\",\n            \"log_min_messages=error\",\n            \"-c\",\n            \"log_min_error_statement=error\",\n            \"-c\",\n            \"log_error_verbosity=verbose\",\n            \"-c\",\n            \"wal_level=logical\",\n            \"-c\",\n            \"max_wal_senders=10\",\n            \"-c\",\n            \"max_replication_slots=10\"\n        ],\n        \"State\": {\n            \"Status\": \"running\",\n            \"Running\": true,\n            \"Paused\": false,\n            \"Restarting\": false,\n            \"OOMKilled\": false,\n            \"Dead\": false,\n            \"Pid\": 55126,\n            \"ExitCode\": 0,\n            \"Error\": \"\",\n            \"StartedAt\": \"2026-09-09T14:55:53.249415463Z\",\n            \"FinishedAt\": \"0001-01-01T00:00:00Z\"\n        },\n        \"Image\": \"sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc\",\n        \"ResolvConfPath\": \"/var/lib/docker/containers/b694ead735ee83bb7da85608cdfab90a0f507e23e9df10793cd29acb82a3ebad/resolv.conf\",\n        \"HostnamePath\": \"/var/lib/docker/containers/b694ead735ee83bb7da85608cdfab90a0f507e23e9df10793cd29acb82a3ebad/hostname\",\n        \"HostsPath\": \"/var/lib/docker/containers/b694ead735ee83bb7da85608cdfab90a0f507e23e9df10793cd29acb82a3ebad/hosts\",\n        \"LogPath\": \"/var/lib/docker/containers/b694ead735ee83bb7da85608cdfab90a0f507e23e9df10793cd29acb82a3ebad/b694ead735ee83bb7da85608cdfab90a0f507e23e9df10793cd29acb82a3ebad-json.log\",\n        \"Name\": \"/sqlstate3f000_3F000conntestpg10_pg10\",\n        \"RestartCount\": 0,\n        \"Driver\": \"overlayfs\",\n        \"Platform\": \"linux\",\n        \"MountLabel\": \"\",\n        \"ProcessLabel\": \"\",\n        \"AppArmorProfile\": \"\",\n        \"ExecIDs\": null,\n        \"HostConfig\": {\n            \"Binds\": null,\n            \"ContainerIDFile\": \"\",\n            \"LogConfig\": {\n                \"Type\": \"json-file\",\n                \"Config\": {}\n            },\n            \"NetworkMode\": \"bridge\",\n            \"PortBindings\": {\n                \"5432/tcp\": [\n                    {\n                        \"HostIp\": \"127.0.0.1\",\n                        \"HostPort\": \"\"\n                    }\n                ]\n            },\n            \"RestartPolicy\": {\n                \"Name\": \"no\",\n                \"MaximumRetryCount\": 0\n            },\n            \"AutoRemove\": false,\n            \"VolumeDriver\": \"\",\n            \"VolumesFrom\": null,\n            \"ConsoleSize\": [\n                0,\n                0\n            ],\n            \"CapAdd\": null,\n            \"CapDrop\": null,\n            \"CgroupnsMode\": \"private\",\n            \"Dns\": null,\n            \"DnsOptions\": [],\n            \"DnsSearch\": [],\n            \"ExtraHosts\": null,\n            \"GroupAdd\": null,\n            \"IpcMode\": \"private\",\n            \"Cgroup\": \"\",\n            \"Links\": null,\n            \"OomScoreAdj\": 0,\n            \"PidMode\": \"\",\n            \"Privileged\": false,\n            \"PublishAllPorts\": false,\n            \"ReadonlyRootfs\": false,\n            \"SecurityOpt\": null,\n            \"UTSMode\": \"\",\n            \"UsernsMode\": \"\",\n            \"ShmSize\": 67108864,\n            \"Runtime\": \"runc\",\n            \"Isolation\": \"\",\n            \"CpuShares\": 0,\n            \"Memory\": 0,\n            \"NanoCpus\": 0,\n            \"CgroupParent\": \"\",\n            \"BlkioWeight\": 0,\n            \"BlkioWeightDevice\": [],\n            \"BlkioDeviceReadBps\": [],\n            \"BlkioDeviceWriteBps\": [],\n            \"BlkioDeviceReadIOps\": [],\n            \"BlkioDeviceWriteIOps\": [],\n            \"CpuPeriod\": 0,\n            \"CpuQuota\": 0,\n            \"CpuRealtimePeriod\": 0,\n            \"CpuRealtimeRuntime\": 0,\n            \"CpusetCpus\": \"\",\n            \"CpusetMems\": \"\",\n            \"Devices\": [],\n            \"DeviceCgroupRules\": null,\n            \"DeviceRequests\": null,\n            \"MemoryReservation\": 0,\n            \"MemorySwap\": 0,\n            \"MemorySwappiness\": null,\n            \"OomKillDisable\": null,\n            \"PidsLimit\": null,\n            \"Ulimits\": [],\n            \"CpuCount\": 0,\n            \"CpuPercent\": 0,\n            \"IOMaximumIOps\": 0,\n            \"IOMaximumBandwidth\": 0,\n            \"MaskedPaths\": [\n                \"/proc/acpi\",\n                \"/proc/asound\",\n                \"/proc/interrupts\",\n                \"/proc/kcore\",\n                \"/proc/keys\",\n                \"/proc/latency_stats\",\n                \"/proc/sched_debug\",\n                \"/proc/scsi\",\n                \"/proc/timer_list\",\n                \"/proc/timer_stats\",\n                \"/sys/devices/virtual/powercap\",\n                \"/sys/firmware\"\n            ],\n            \"ReadonlyPaths\": [\n                \"/proc/bus\",\n                \"/proc/fs\",\n                \"/proc/irq\",\n                \"/proc/sys\",\n                \"/proc/sysrq-trigger\"\n            ]\n        },\n        \"Storage\": {\n            \"RootFS\": {\n                \"Snapshot\": {\n                    \"Name\": \"overlayfs\"\n                }\n            }\n        },\n        \"Mounts\": [\n            {\n                \"Type\": \"volume\",\n                \"Name\": \"889e3f6b2813d8aa3a0b13ba521541bb63c280b63532256e95f89298278cd24f\",\n                \"Source\": \"/var/lib/docker/volumes/889e3f6b2813d8aa3a0b13ba521541bb63c280b63532256e95f89298278cd24f/_data\",\n                \"Destination\": \"/var/lib/postgresql/data\",\n                \"Driver\": \"local\",\n                \"Mode\": \"\",\n                \"RW\": true,\n                \"Propagation\": \"\"\n            }\n        ],\n        \"Config\": {\n            \"Hostname\": \"b694ead735ee\",\n            \"Domainname\": \"\",\n            \"User\": \"\",\n            \"AttachStdin\": false,\n            \"AttachStdout\": false,\n            \"AttachStderr\": false,\n            \"ExposedPorts\": {\n                \"5432/tcp\": {}\n            },\n            \"Tty\": false,\n            \"OpenStdin\": false,\n            \"StdinOnce\": false,\n            \"Env\": [\n                \"POSTGRES_HOST_AUTH_METHOD=trust\",\n                \"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/10/bin\",\n                \"GOSU_VERSION=1.14\",\n                \"LANG=en_US.utf8\",\n                \"PG_MAJOR=10\",\n                \"PG_VERSION=10.21-1.pgdg90+1\",\n                \"PGDATA=/var/lib/postgresql/data\"\n            ],\n            \"Cmd\": [\n                \"postgres\",\n                \"-c\",\n                \"listen_addresses=*\",\n                \"-c\",\n                \"log_destination=csvlog\",\n                \"-c\",\n                \"logging_collector=on\",\n                \"-c\",\n                \"log_directory=log\",\n                \"-c\",\n                \"log_filename=postgresql-%Y%m%d%H%M%S.log\",\n                \"-c\",\n                \"log_min_messages=error\",\n                \"-c\",\n                \"log_min_error_statement=error\",\n                \"-c\",\n                \"log_error_verbosity=verbose\",\n                \"-c\",\n                \"wal_level=logical\",\n                \"-c\",\n                \"max_wal_senders=10\",\n                \"-c\",\n                \"max_replication_slots=10\"\n            ],\n            \"Image\": \"postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc\",\n            \"Volumes\": {\n                \"/var/lib/postgresql/data\": {}\n            },\n            \"WorkingDir\": \"\",\n            \"Entrypoint\": [\n                \"docker-entrypoint.sh\"\n            ],\n            \"Labels\": {},\n            \"StopSignal\": \"SIGINT\",\n            \"StopTimeout\": 1\n        },\n        \"NetworkSettings\": {\n            \"SandboxID\": \"18c4a41f3d9dd37eaef70a5593e4f8016ceb96f5dc42e247d17bb543af9adc95\",\n            \"SandboxKey\": \"/var/run/docker/netns/18c4a41f3d9d\",\n            \"Ports\": {\n                \"5432/tcp\": [\n                    {\n                        \"HostIp\": \"127.0.0.1\",\n                        \"HostPort\": \"56789\"\n                    }\n                ]\n            },\n            \"Networks\": {\n                \"bridge\": {\n                    \"IPAMConfig\": null,\n                    \"Links\": null,\n                    \"Aliases\": null,\n                    \"DriverOpts\": null,\n                    \"GwPriority\": 0,\n                    \"NetworkID\": \"aed51554f8cd8bac69ecd4f073e41e147fda7b458e9d95be2af472651f2e825c\",\n                    \"EndpointID\": \"b903cc8d626b5131d3ac895aedd9d7972d8f9450cf5060eac07362f1f2e410de\",\n                    \"Gateway\": \"172.17.0.1\",\n                    \"IPAddress\": \"172.17.0.53\",\n                    \"MacAddress\": \"6a:1c:ba:fb:14:20\",\n                    \"IPPrefixLen\": 16,\n                    \"IPv6Gateway\": \"\",\n                    \"GlobalIPv6Address\": \"\",\n                    \"GlobalIPv6PrefixLen\": 0,\n                    \"DNSNames\": null\n                }\n            }\n        },\n        \"ImageManifestDescriptor\": {\n            \"mediaType\": \"application/vnd.docker.distribution.manifest.v2+json\",\n            \"digest\": \"sha256:52aada7978f1eef3b6b52a51afb7a3defd69254d00c946cb90d2ceb32b8ffce7\",\n            \"size\": 3246,\n            \"platform\": {\n                \"architecture\": \"arm64\",\n                \"os\": \"linux\",\n                \"variant\": \"v8\"\n            }\n        }\n    }\n]\n"
              }
            }
          },
          "limits": "Disposable runner-owned target only; this is a bounded mechanism case, not a guarantee for every client or network path.",
          "image": "postgres:10"
        }
      ]
    },
    {
      "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": []
    },
    {
      "sqlstate": "40001",
      "condition_name": "serialization_failure",
      "sources": [
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "src.errcodes.18.6",
          "location": "lines 329-333",
          "path": "src/backend/utils/errcodes.txt",
          "sha256": "6e8de346643ba84aa3c9c6a73360acfc7b2dfb89162c06c08ce9bf5bcd5bbcba",
          "tag": "REL_18_6",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/errcodes.txt"
        },
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "src.nodeModifyTable.18.6",
          "location": "lines 2595-2605",
          "path": "src/backend/executor/nodeModifyTable.c",
          "sha256": "0fc3cb180b3443f216142954e43d8ed5f84713d75094ce8cd2785ad8f604bd68",
          "tag": "REL_18_6",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/executor/nodeModifyTable.c#L2595-L2605"
        },
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "doc.mvcc.18",
          "location": "serialization failure handling",
          "path": "doc/src/sgml/mvcc.sgml",
          "sha256": "4b7bf77ee0af4b86052330ff2421d567df3604b75fe7d4f522bec84fdea87340",
          "tag": "PG18-docs",
          "url": "https://www.postgresql.org/docs/18/mvcc-serialization-failure-handling.html"
        },
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "doc.protocol.18",
          "location": "ErrorResponse fields",
          "path": "doc/src/sgml/protocol.sgml",
          "sha256": "745339e07ebbc2bb67d98b258e25772ada644ef26011e3cd6b3fcbb435235f89",
          "tag": "PG18-docs",
          "url": "https://www.postgresql.org/docs/18/protocol-error-fields.html"
        },
        {
          "id": "manifest.40001",
          "kind": "local_artifact",
          "location": "snapshots and definition_blobs entries for the 40001 definition",
          "sha256": "1727a275f336988ff96b4f9990a4ca253080f73fc5d316e7def165c8cf3708a8"
        },
        {
          "id": "case-manifest.40001",
          "kind": "local_artifact",
          "location": "serializable_stale_update",
          "sha256": "f763521e946921e560a2e2f769507be836cefae2ae2d0ca8d8d60a9c55c9e45b"
        },
        {
          "id": "snippet-registry.40001.final",
          "kind": "local_artifact",
          "location": "serializable_stale_update ordered SQL",
          "sha256": "7ed0b0bf4dc0bb2a2141a1cf9b223b61d80c9817ca041355d1f6527fbbb98007"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "limits": "Directory identity does not identify one serialization-conflict origin.",
          "method": "Read the Class 40 section and 40001 row in the frozen errcodes.txt snapshot.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "statement": "40001 is the serialization_failure condition in Class 40 transaction_rollback."
        },
        {
          "id": "mechanism.concurrent-update",
          "limits": "Other serialization conflicts can use different messages or source paths while retaining SQLSTATE 40001.",
          "method": "Trace the ExecUpdate concurrent-update branch and compare the diagnostic from the stale serializable writer.",
          "sources": [
            "src.nodeModifyTable.18.6"
          ],
          "statement": "The executor update path reports ERRCODE_T_R_SERIALIZATION_FAILURE with could not serialize access due to concurrent update."
        },
        {
          "id": "runtime.fresh-snapshot-retry",
          "limits": "The fixed assignment is a controlled retry proof; it does not establish that an arbitrary business calculation is safe to replay. The run reads 1 and sets value=2; it does not test a business calculation decision.",
          "method": "Open both initial serializable snapshots before the first commit, trigger the stale update, roll it back, and assert the complete fresh read/fixed assignment/write retry and final value with registry transaction boundaries executed under autocommit=True.",
          "sources": [
            "doc.mvcc.18",
            "case-manifest.40001",
            "runtime.40001-manual-boundary-final-20260909.latest",
            "runtime.40001-manual-boundary-final-20260909.pg10"
          ],
          "statement": "The stale serializable writer entered INERROR after 40001; after ROLLBACK, a fresh serializable transaction read 1, wrote 2, committed, and left final value 2 on both targets."
        },
        {
          "id": "versions.catalogue-boundary",
          "limits": "The first scanned release is a lower bound, not an asserted introduction version.",
          "method": "Read the manifest snapshots and definition references for the code.",
          "sources": [
            "manifest.40001"
          ],
          "statement": "The locked catalogue records 40001 in every listed formal snapshot from 9.0.23 through 18.6 and in 19beta3; pre-9.0 history is not scanned."
        }
      ],
      "messages": [
        {
          "id": "message.concurrent-update",
          "limits": "The template is the observed executor update path; other serialization failures may carry different text or detail.",
          "primary_template": "could not serialize access due to concurrent update",
          "severity_source": "explicit ERROR",
          "sources": [
            "src.nodeModifyTable.18.6"
          ],
          "sqlstate": "40001"
        }
      ],
      "usage_evidence": [
        {
          "evidence_ids": [
            "identity.class-and-condition",
            "src.errcodes.18.6"
          ],
          "scope": "SQLSTATE directory identity",
          "status": "definition_only"
        },
        {
          "evidence_ids": [
            "mechanism.concurrent-update",
            "src.nodeModifyTable.18.6"
          ],
          "scope": "Executor concurrent-update message",
          "status": "source_path_confirmed"
        },
        {
          "evidence_ids": [
            "runtime.fresh-snapshot-retry",
            "snippet-registry.40001.final",
            "runtime.40001-manual-boundary-final-20260909.latest",
            "runtime.40001-manual-boundary-final-20260909.pg10"
          ],
          "scope": "Stale serializable transaction and complete fresh-snapshot retry",
          "status": "observed_runtime"
        },
        {
          "evidence_ids": [
            "versions.catalogue-boundary",
            "manifest.40001"
          ],
          "scope": "Version presence",
          "status": "definition_only"
        }
      ],
      "runtime": [
        {
          "cases": [
            "serializable_stale_update"
          ],
          "id": "runtime.40001-registry-final-20260909.latest",
          "observed": {
            "diagnostic": {
              "message_primary": "could not serialize access due to concurrent update",
              "severity": "ERROR",
              "source_file": "nodeModifyTable.c",
              "source_function": "ExecUpdate",
              "source_line": "2604",
              "sqlstate": "40001"
            },
            "final_value": 2,
            "reads": {
              "first": 0,
              "retry": 1,
              "stale": 0
            },
            "statuses": {
              "first_after_commit": "IDLE",
              "retry": "IDLE",
              "stale_after_error": "INERROR",
              "stale_after_rollback": "IDLE"
            }
          },
          "raw_sha256": "6a0f6ba16f654c5a3513a19647a5ef3a3e6908802133414d1a8ccd09de6a39ac",
          "run_id": "40001-registry-final-20260909",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "snippet_registry": {
            "sha256": "7ed0b0bf4dc0bb2a2141a1cf9b223b61d80c9817ca041355d1f6527fbbb98007"
          },
          "status": "passed",
          "summary_sha256": "d4d8fdec585ef6fbe571940646d91cda6568befc64e12211ee17888a6c5b2433",
          "target": "latest"
        },
        {
          "cases": [
            "serializable_stale_update"
          ],
          "id": "runtime.40001-registry-final-20260909.pg10",
          "image": "postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
          "observed": {
            "diagnostic": {
              "message_primary": "could not serialize access due to concurrent update",
              "severity": "ERROR",
              "source_file": "nodeModifyTable.c",
              "source_function": "ExecUpdate",
              "source_line": "1012",
              "sqlstate": "40001"
            },
            "final_value": 2,
            "reads": {
              "first": 0,
              "retry": 1,
              "stale": 0
            },
            "statuses": {
              "first_after_commit": "IDLE",
              "retry": "IDLE",
              "stale_after_error": "INERROR",
              "stale_after_rollback": "IDLE"
            }
          },
          "raw_sha256": "85985ffb3f1599df3bc38d65651cb2a532b329e10ab2029481733b3e8a501867",
          "run_id": "40001-registry-final-20260909",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "snippet_registry": {
            "sha256": "7ed0b0bf4dc0bb2a2141a1cf9b223b61d80c9817ca041355d1f6527fbbb98007"
          },
          "status": "passed",
          "summary_sha256": "45e3f031aa5d5cb02adc714c3cbfcb27e9d166bf884c6d8405559a60b840ba45",
          "target": "pg10"
        },
        {
          "cases": [
            "serializable_stale_update"
          ],
          "id": "runtime.40001-manual-boundary-final-20260909.latest",
          "observed": {
            "connections_autocommit": {
              "first": true,
              "retry": true,
              "stale": true
            },
            "diagnostic": {
              "message_primary": "could not serialize access due to concurrent update",
              "severity": "ERROR",
              "source_file": "nodeModifyTable.c",
              "source_function": "ExecUpdate",
              "source_line": "2604",
              "sqlstate": "40001"
            },
            "final_value": 2,
            "reads": {
              "first": 0,
              "retry": 1,
              "stale": 0
            },
            "retry_semantics": "Fresh retry read 1, then fixed SET value=2; this case does not test a business calculation.",
            "statuses": {
              "first_after_commit": "IDLE",
              "retry": "IDLE",
              "stale_after_error": "INERROR",
              "stale_after_rollback": "IDLE"
            },
            "transaction_control": "Registry BEGIN/COMMIT/ROLLBACK statements run with autocommit=True; no driver implicit BEGIN participates."
          },
          "raw_sha256": "befdfdf94a5577983557d64cecdd013f3e63c4e439388d1fc54e218937378b4f",
          "run_id": "40001-manual-boundary-final-20260909",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "snippet_registry": {
            "sha256": "7ed0b0bf4dc0bb2a2141a1cf9b223b61d80c9817ca041355d1f6527fbbb98007"
          },
          "status": "passed",
          "summary_sha256": "6bbcb014add8ea24c8b6ba7663dade8b26a6ed6b2f95f544f9c8dc11a90cbcdf",
          "target": "latest"
        },
        {
          "cases": [
            "serializable_stale_update"
          ],
          "id": "runtime.40001-manual-boundary-final-20260909.pg10",
          "image": "postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
          "observed": {
            "connections_autocommit": {
              "first": true,
              "retry": true,
              "stale": true
            },
            "diagnostic": {
              "message_primary": "could not serialize access due to concurrent update",
              "severity": "ERROR",
              "source_file": "nodeModifyTable.c",
              "source_function": "ExecUpdate",
              "source_line": "1012",
              "sqlstate": "40001"
            },
            "final_value": 2,
            "reads": {
              "first": 0,
              "retry": 1,
              "stale": 0
            },
            "retry_semantics": "Fresh retry read 1, then fixed SET value=2; this case does not test a business calculation.",
            "statuses": {
              "first_after_commit": "IDLE",
              "retry": "IDLE",
              "stale_after_error": "INERROR",
              "stale_after_rollback": "IDLE"
            },
            "transaction_control": "Registry BEGIN/COMMIT/ROLLBACK statements run with autocommit=True; no driver implicit BEGIN participates."
          },
          "raw_sha256": "3d761eff0e571682ef5ea48bdd8ae8c355480f8775387e667c4db707f31d715f",
          "run_id": "40001-manual-boundary-final-20260909",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "snippet_registry": {
            "sha256": "7ed0b0bf4dc0bb2a2141a1cf9b223b61d80c9817ca041355d1f6527fbbb98007"
          },
          "status": "passed",
          "summary_sha256": "156c4129cf0b1b6a1108cf73353cca11425dbf353c4aa695261aeb7d8db1d992",
          "target": "pg10"
        }
      ]
    },
    {
      "sqlstate": "40002",
      "condition_name": "transaction_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": "40002 is the transaction_integrity_constraint_violation 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": "no-safe-natural-case",
          "statement": "No distinct safe natural core runtime case for 40002 was selected from the fixed call scan.",
          "sources": [
            "src.calls.REL_18_6"
          ],
          "method": "Review the fixed call scan for resolved 40002 call groups and reject artificial RAISE or relabeling.",
          "limits": "This is a bounded source/definition result, not proof that every extension or injected fault cannot emit the code."
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "definition-and-source-boundary",
          "status": "definition_only",
          "evidence_ids": [
            "identity",
            "no-safe-natural-case"
          ],
          "notes": "No runtime SQLSTATE observation is selected for this code in batch constraints-transactions-3-4."
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "40003",
      "condition_name": "statement_completion_unknown",
      "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": "40003 is the statement_completion_unknown 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": "no-safe-natural-case",
          "statement": "No distinct safe natural core runtime case for 40003 was selected from the fixed call scan.",
          "sources": [
            "src.calls.REL_18_6"
          ],
          "method": "Review the fixed call scan for resolved 40003 call groups and reject artificial RAISE or relabeling.",
          "limits": "This is a bounded source/definition result, not proof that every extension or injected fault cannot emit the code."
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "definition-and-source-boundary",
          "status": "definition_only",
          "evidence_ids": [
            "identity",
            "no-safe-natural-case"
          ],
          "notes": "No runtime SQLSTATE observation is selected for this code in batch constraints-transactions-3-4."
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "40P01",
      "condition_name": "deadlock_detected",
      "sources": [
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "src.errcodes.18.6",
          "location": "lines 329-334",
          "path": "src/backend/utils/errcodes.txt",
          "sha256": "6e8de346643ba84aa3c9c6a73360acfc7b2dfb89162c06c08ce9bf5bcd5bbcba",
          "tag": "REL_18_6",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/errcodes.txt"
        },
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "src.deadlock.18.6",
          "location": "lines 1071-1138",
          "path": "src/backend/storage/lmgr/deadlock.c",
          "sha256": "f9931d72369a752e5fff5df3b5bfe5ffd47a3f65651522d27cf62f75fac0075f",
          "tag": "REL_18_6",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/storage/lmgr/deadlock.c#L1071-L1138"
        },
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "doc.mvcc.18",
          "location": "serialization and deadlock failure handling",
          "path": "doc/src/sgml/mvcc.sgml",
          "sha256": "4b7bf77ee0af4b86052330ff2421d567df3604b75fe7d4f522bec84fdea87340",
          "tag": "PG18-docs",
          "url": "https://www.postgresql.org/docs/18/mvcc-serialization-failure-handling.html"
        },
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "doc.protocol.18",
          "location": "ErrorResponse fields",
          "path": "doc/src/sgml/protocol.sgml",
          "sha256": "745339e07ebbc2bb67d98b258e25772ada644ef26011e3cd6b3fcbb435235f89",
          "tag": "PG18-docs",
          "url": "https://www.postgresql.org/docs/18/protocol-error-fields.html"
        },
        {
          "id": "manifest.40P01",
          "kind": "local_artifact",
          "location": "snapshots and definition_blobs entries for the 40P01 definition",
          "sha256": "1727a275f336988ff96b4f9990a4ca253080f73fc5d316e7def165c8cf3708a8"
        },
        {
          "id": "case-manifest.40P01",
          "kind": "local_artifact",
          "location": "two_session_lock_cycle",
          "sha256": "85a8653680509a53f9d8fa9b08bafa3eeabe78553ef7d1f4e0aaf0ef7a1abe3d"
        },
        {
          "id": "snippet-registry.40P01.final",
          "kind": "local_artifact",
          "location": "two_session_lock_cycle ordered SQL",
          "sha256": "71a3377497dc2c1ba5b71c9ba81f71fc3cff975fcd245613ba2ddb82857c0591"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "limits": "Directory identity does not identify the lock graph or the selected victim.",
          "method": "Read the Class 40 section and 40P01 row in the frozen errcodes.txt snapshot.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "statement": "40P01 is the deadlock_detected condition in Class 40 transaction_rollback."
        },
        {
          "id": "mechanism.deadlock-report",
          "limits": "The detail contains live process and transaction identifiers and is not a fixed user-facing template.",
          "method": "Trace DeadLockReport and compare the primary message, dynamic detail, hint, and source location in the victim diagnostic.",
          "sources": [
            "src.deadlock.18.6",
            "doc.protocol.18"
          ],
          "statement": "The deadlock detector reports deadlock detected with a dynamically assembled wait-graph detail and the hint See server log for query details."
        },
        {
          "id": "runtime.cycle-and-recovery",
          "limits": "The survivor's winner can differ by timing; the run proves the controlled cycle and recovery, not a universal victim-selection rule.",
          "method": "Use an explicit barrier, observe transactionid Lock waits through pg_stat_activity, then inspect worker diagnostics, transaction states, and surviving rows.",
          "sources": [
            "doc.mvcc.18",
            "case-manifest.40P01",
            "runtime.40P01-manual-boundary-final-20260909.latest",
            "runtime.40P01-manual-boundary-final-20260909.pg10"
          ],
          "statement": "An explicit two-session lock cycle produced one 40P01 victim in INERROR, left one coherent survivor transaction, and allowed the victim to recover with ROLLBACK."
        },
        {
          "id": "runtime.complete-retry",
          "limits": "A fixed ordered update is a repair proof for this case; application retries still need complete business-operation and idempotency review.",
          "method": "Run the retry statements in primary-key order on a fresh transaction and assert IDLE plus both post-retry rows.",
          "sources": [
            "doc.mvcc.18",
            "snippet-registry.40P01.final",
            "runtime.40P01-registry-final-20260909.latest",
            "runtime.40P01-registry-final-20260909.pg10",
            "runtime.40P01-manual-boundary-final-20260909.latest",
            "runtime.40P01-manual-boundary-final-20260909.pg10"
          ],
          "statement": "After the deadlock cleanup, an ordered retry transaction updated both rows, committed, and produced retry-1 and retry-2."
        },
        {
          "id": "versions.catalogue-boundary",
          "limits": "The first scanned release is a lower bound, not an asserted introduction version.",
          "method": "Read the manifest snapshots and definition references for the code.",
          "sources": [
            "manifest.40P01"
          ],
          "statement": "The locked catalogue records 40P01 in every listed formal snapshot from 9.0.23 through 18.6 and in 19beta3; pre-9.0 history is not scanned."
        }
      ],
      "messages": [
        {
          "detail_template": "%s",
          "detail_type": "dynamic wait graph",
          "hint_template": "See server log for query details.",
          "id": "message.deadlock-report",
          "limits": "The source passes the assembled client wait graph through errdetail_internal(\"%s\", clientbuf.data); process, transaction, relation, and tuple values vary by run.",
          "primary_template": "deadlock detected",
          "severity_source": "explicit ERROR",
          "sources": [
            "src.deadlock.18.6"
          ],
          "sqlstate": "40P01"
        }
      ],
      "usage_evidence": [
        {
          "evidence_ids": [
            "identity.class-and-condition",
            "src.errcodes.18.6"
          ],
          "scope": "SQLSTATE directory identity",
          "status": "definition_only"
        },
        {
          "evidence_ids": [
            "mechanism.deadlock-report",
            "src.deadlock.18.6",
            "doc.protocol.18"
          ],
          "scope": "Deadlock report construction and dynamic detail",
          "status": "source_path_confirmed"
        },
        {
          "evidence_ids": [
            "runtime.cycle-and-recovery",
            "runtime.complete-retry",
            "snippet-registry.40P01.final",
            "runtime.40P01-registry-final-20260909.latest",
            "runtime.40P01-registry-final-20260909.pg10"
          ],
          "scope": "Two-session lock cycle, transaction recovery, and ordered retry",
          "status": "observed_runtime"
        },
        {
          "evidence_ids": [
            "versions.catalogue-boundary",
            "manifest.40P01"
          ],
          "scope": "Version presence",
          "status": "definition_only"
        }
      ],
      "runtime": [
        {
          "cases": [
            "two_session_lock_cycle"
          ],
          "id": "runtime.40P01-registry-final-20260909.latest",
          "observed": {
            "lock_wait": {
              "wait_event": "transactionid",
              "wait_event_type": "Lock"
            },
            "synchronization": "Both workers first held one row lock; a barrier then released the two cross-row requests, while an independent observer sampled the transactionid lock waits. The observer did not release the requests.",
            "retry": {
              "rows": [
                [
                  1,
                  "retry-1"
                ],
                [
                  2,
                  "retry-2"
                ]
              ],
              "status": "IDLE"
            },
            "rows_before_retry": [
              [
                1,
                "first-1"
              ],
              [
                2,
                "first-2"
              ]
            ],
            "statuses": {
              "survivor": "IDLE",
              "victim_after_error": "INERROR",
              "victim_after_rollback": "IDLE"
            },
            "victim": {
              "message_hint": "See server log for query details.",
              "message_primary": "deadlock detected",
              "severity": "ERROR",
              "source_file": "deadlock.c",
              "source_function": "DeadLockReport",
              "source_line": "1138",
              "sqlstate": "40P01",
              "worker": "second"
            }
          },
          "raw_sha256": "bdfda4fc40404195f34d3297cf71eebdd2146ea44bf91fc58484498455a5953d",
          "run_id": "40P01-registry-final-20260909",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "snippet_registry": {
            "sha256": "71a3377497dc2c1ba5b71c9ba81f71fc3cff975fcd245613ba2ddb82857c0591"
          },
          "status": "passed",
          "summary_sha256": "693bc9cc5696cbb892eb12808a2b15db875c52aad5961410f59679df63566c07",
          "target": "latest"
        },
        {
          "cases": [
            "two_session_lock_cycle"
          ],
          "id": "runtime.40P01-registry-final-20260909.pg10",
          "image": "postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
          "observed": {
            "lock_wait": {
              "wait_event": "transactionid",
              "wait_event_type": "Lock"
            },
            "synchronization": "Both workers first held one row lock; a barrier then released the two cross-row requests, while an independent observer sampled the transactionid lock waits. The observer did not release the requests.",
            "retry": {
              "rows": [
                [
                  1,
                  "retry-1"
                ],
                [
                  2,
                  "retry-2"
                ]
              ],
              "status": "IDLE"
            },
            "rows_before_retry": [
              [
                1,
                "second-1"
              ],
              [
                2,
                "second-2"
              ]
            ],
            "statuses": {
              "survivor": "IDLE",
              "victim_after_error": "INERROR",
              "victim_after_rollback": "IDLE"
            },
            "victim": {
              "message_hint": "See server log for query details.",
              "message_primary": "deadlock detected",
              "severity": "ERROR",
              "source_file": "deadlock.c",
              "source_function": "DeadLockReport",
              "source_line": "1146",
              "sqlstate": "40P01",
              "worker": "first"
            }
          },
          "raw_sha256": "33e4c878282a503d074da04aaceb11f0aa5d0a245cac601562a5ea847cd45f63",
          "run_id": "40P01-registry-final-20260909",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "snippet_registry": {
            "sha256": "71a3377497dc2c1ba5b71c9ba81f71fc3cff975fcd245613ba2ddb82857c0591"
          },
          "status": "passed",
          "summary_sha256": "ff489619acc2047333c05a4d565a0ad4c993a762b8c4abca3fe684cd8928cf0c",
          "target": "pg10"
        },
        {
          "cases": [
            "two_session_lock_cycle"
          ],
          "id": "runtime.40P01-manual-boundary-final-20260909.latest",
          "limits": "This run proves the registry BEGIN/COMMIT/ROLLBACK statements for both lock-cycle sessions and the ordered retry execute with autocommit=True; worker synchronization still uses barriers and observed lock waits.",
          "observed": {
            "connections_autocommit": {
              "first": true,
              "retry": true,
              "second": true
            },
            "retry": {
              "rows": [
                [
                  1,
                  "retry-1"
                ],
                [
                  2,
                  "retry-2"
                ]
              ],
              "status": "IDLE"
            },
            "transaction_control": "Registry BEGIN/COMMIT/ROLLBACK statements run with autocommit=True; no driver implicit BEGIN participates."
          },
          "raw_sha256": "562a80715a6dcaf4f14d99c54001799e05c3c52353d9e836ab88039f47ce2cb5",
          "run_id": "40P01-manual-boundary-final-20260909",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "snippet_registry": {
            "sha256": "71a3377497dc2c1ba5b71c9ba81f71fc3cff975fcd245613ba2ddb82857c0591"
          },
          "status": "passed",
          "summary_sha256": "4d5b1401badd66f6b1c33040d7bbbcfbc68ac611c3a7f508cb29a57bc2d95594",
          "target": "latest"
        },
        {
          "cases": [
            "two_session_lock_cycle"
          ],
          "id": "runtime.40P01-manual-boundary-final-20260909.pg10",
          "image": "postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
          "limits": "This run proves the registry BEGIN/COMMIT/ROLLBACK statements for both lock-cycle sessions and the ordered retry execute with autocommit=True; worker synchronization still uses barriers and observed lock waits.",
          "observed": {
            "connections_autocommit": {
              "first": true,
              "retry": true,
              "second": true
            },
            "retry": {
              "rows": [
                [
                  1,
                  "retry-1"
                ],
                [
                  2,
                  "retry-2"
                ]
              ],
              "status": "IDLE"
            },
            "transaction_control": "Registry BEGIN/COMMIT/ROLLBACK statements run with autocommit=True; no driver implicit BEGIN participates."
          },
          "raw_sha256": "c2789c19f9106cf34a49fbfa791fbe0e23706f87e8d8a133abfb360165aa8ee1",
          "run_id": "40P01-manual-boundary-final-20260909",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "snippet_registry": {
            "sha256": "71a3377497dc2c1ba5b71c9ba81f71fc3cff975fcd245613ba2ddb82857c0591"
          },
          "status": "passed",
          "summary_sha256": "1aca5e77935f4066898c72332cb16f06c16f56ccd00414349f21a746d46f6ed8",
          "target": "pg10"
        }
      ]
    },
    {
      "sqlstate": "42000",
      "condition_name": "syntax_error_or_access_rule_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"
        },
        {
          "id": "src.calls.REL_10_23",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "00d16d3eb01b71ccf1b245c8f3102f9d0ec9f36fb02777b8dd1b99fcb263040c"
        },
        {
          "id": "manifest.42000",
          "kind": "local_artifact",
          "source_role": "case_manifest",
          "sha256": "def2de2e8b6299498e2776fb6c6992a7aa44c147e2519413eb92ee780b7e094e"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "statement": "42000 is the syntax_error_or_access_rule_violation condition in Class 42.",
          "method": "Read fixed errcodes.txt and the locked catalogue metadata.",
          "limits": "Directory identity does not identify every backend path.",
          "sources": [
            "src.errcodes.18.6"
          ]
        },
        {
          "id": "mechanism.source-boundary",
          "statement": "The fixed scans do not provide a generic natural SQL trigger selected for 42000; the page records its concrete source/definition boundary.",
          "method": "Read fixed call scans and source notes.",
          "limits": "This is not observed natural SQLSTATE coverage.",
          "sources": [
            "src.errcodes.18.6",
            "src.calls.REL_18_6",
            "src.calls.REL_10_23"
          ]
        },
        {
          "id": "versions.catalogue-boundary",
          "statement": "The locked catalogue records 42000; runtime scope is limited to the selected targets.",
          "method": "Read generated facts and selected summaries.",
          "limits": "Definition presence is not an exact behavioral introduction.",
          "sources": [
            "src.errcodes.18.6",
            "src.calls.REL_18_6",
            "src.calls.REL_10_23"
          ]
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "SQLSTATE directory identity",
          "status": "definition_only",
          "evidence_ids": [
            "identity.class-and-condition",
            "src.errcodes.18.6"
          ]
        },
        {
          "scope": "Fixed source or definition boundary",
          "status": "definition_only",
          "evidence_ids": [
            "mechanism.source-boundary",
            "src.errcodes.18.6",
            "src.calls.REL_18_6",
            "src.calls.REL_10_23"
          ]
        },
        {
          "scope": "Locked release presence and bounded version comparison",
          "status": "definition_only",
          "evidence_ids": [
            "versions.catalogue-boundary",
            "src.errcodes.18.6"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "42501",
      "condition_name": "insufficient_privilege",
      "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.calls.REL_10_23",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "00d16d3eb01b71ccf1b245c8f3102f9d0ec9f36fb02777b8dd1b99fcb263040c"
        },
        {
          "id": "src.sequence-permission.18.6",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/sequence.c",
          "sha256": "3e5afe17d5a84862fae502a5481211220368f1d639e9d07ba6f96ee8be92a8d8",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/sequence.c#L652-L655"
        },
        {
          "id": "src.sequence-permission.10.23",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_10_23",
          "commit": "02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4",
          "path": "src/backend/commands/sequence.c",
          "sha256": "5510e1266e8d8c548a4318d753392e92e689d348f3353a2aa53d8dea871c44ab",
          "url": "https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/commands/sequence.c#L605-L608"
        },
        {
          "id": "src.aclcheck-errors.18.6",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/catalog/aclchk.c",
          "sha256": "9700258318959b47c42edb423418fb511dd3a008023e732f601eecf4c80868f8",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/catalog/aclchk.c#L2793-L2795"
        },
        {
          "id": "src.aclcheck-errors.10.23",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_10_23",
          "commit": "02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4",
          "path": "src/backend/catalog/aclchk.c",
          "sha256": "3a4330bd55ea8c0ec12324d7046ec31d64c920f99196235b84612d6cd1a4b26c",
          "url": "https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/catalog/aclchk.c#L3301-L3449"
        },
        {
          "id": "src.rls-errors.18.6",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/executor/execMain.c",
          "sha256": "33b97337fa23a649c5e7a092e1bd405a54e8503529236c62c9d5bb93a1774a8d",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/executor/execMain.c#L2332-L2365"
        },
        {
          "id": "src.rls-errors.10.23",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_10_23",
          "commit": "02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4",
          "path": "src/backend/executor/execMain.c",
          "sha256": "386d09f7e964ebc426a554cf51ac7cb505c67cc95b971ee7acad1a6e0a9d0c1a",
          "url": "https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/executor/execMain.c#L2188-L2208"
        },
        {
          "id": "manifest.42501",
          "kind": "local_artifact",
          "source_role": "case_manifest",
          "sha256": "63f32b62a86fc78ba7c882dd0f74d4c7f7b5c15fcdd33172520fcf4dfc1b4bc1"
        },
        {
          "id": "snippet-registry.42501",
          "kind": "local_artifact",
          "source_role": "snippet_registry",
          "sha256": "1c312de470921306bf563e8efc0ceafc2aed04f4096aeb28f7e471ec9b246a0d"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "statement": "42501 is the insufficient_privilege condition in Class 42.",
          "method": "Read fixed errcodes.txt and the locked catalogue metadata.",
          "limits": "Directory identity does not identify every backend path.",
          "sources": [
            "src.errcodes.18.6"
          ]
        },
        {
          "id": "mechanism.backend-path",
          "statement": "The fixed source calls for 42501 include the mechanism and message boundary selected for this page.",
          "method": "Trace the resolved REL_18_6 and REL_10_23 source call records at the locked commits.",
          "limits": "Other calls can use the same SQLSTATE with different context or dynamic fields.",
          "sources": [
            "src.sequence-permission.18.6",
            "src.sequence-permission.10.23",
            "src.aclcheck-errors.18.6",
            "src.aclcheck-errors.10.23",
            "src.rls-errors.18.6",
            "src.rls-errors.10.23"
          ]
        },
        {
          "id": "mechanism.object-privilege-branches",
          "statement": "Fixed 42501 branches also cover relation/schema/column ACL failures, owner-only checks, and row-level security WITH CHECK failures with different primaries.",
          "method": "Read the fixed aclcheck_error tables and executor row-security error branches at REL_18_6 and REL_10_23.",
          "limits": "These source paths are not additional runtime observations; the selected runtime remains the sequence ACL case.",
          "sources": [
            "src.aclcheck-errors.18.6",
            "src.aclcheck-errors.10.23",
            "src.rls-errors.18.6",
            "src.rls-errors.10.23"
          ]
        },
        {
          "id": "runtime.representative-case",
          "statement": "The selected permission_denied_sequence case passed on isolated PostgreSQL 18.6 and 10.21 targets.",
          "method": "Run the shared registry case and inspect structured diagnostics, state/recovery assertions, and cleanup.",
          "limits": "This covers the selected case and targets only; it does not generalize to all drivers or intermediate releases.",
          "sources": [
            "manifest.42501",
            "snippet-registry.42501"
          ],
          "runtime": [
            "runtime.42501-syntax-latest-test2.latest",
            "runtime.42501-syntax-pg10.pg10"
          ]
        },
        {
          "id": "versions.catalogue-boundary",
          "statement": "The locked catalogue records 42501; runtime scope is limited to the selected targets.",
          "method": "Read generated facts and selected summaries.",
          "limits": "Definition presence is not an exact behavioral introduction.",
          "sources": [
            "src.errcodes.18.6",
            "src.calls.REL_18_6",
            "src.calls.REL_10_23"
          ]
        }
      ],
      "messages": [
        {
          "id": "message.sequence-permission",
          "primary_template": "permission denied for sequence %s",
          "severity_source": "explicit ERROR",
          "sqlstate": "42501",
          "sources": [
            "src.sequence-permission.18.6",
            "src.sequence-permission.10.23"
          ]
        },
        {
          "id": "message.acl-relation-schema-owner",
          "primary_variants": [
            "permission denied for relation %s",
            "permission denied for schema %s",
            "permission denied for column \"%s\" of relation \"%s\"",
            "must be owner of relation %s",
            "must be owner of schema %s"
          ],
          "severity_source": "explicit ERROR",
          "sqlstate": "42501",
          "limits": "Generic ACL and owner-only source branches; no concrete runtime value is claimed.",
          "sources": [
            "src.aclcheck-errors.18.6",
            "src.aclcheck-errors.10.23"
          ]
        },
        {
          "id": "message.rls-with-check",
          "primary_variants": [
            "new row violates row-level security policy \"%s\" for table \"%s\"",
            "new row violates row-level security policy for table \"%s\"",
            "new row violates row-level security policy \"%s\" (USING expression) for table \"%s\"",
            "new row violates row-level security policy (USING expression) for table \"%s\""
          ],
          "severity_source": "explicit ERROR",
          "sqlstate": "42501",
          "limits": "Fixed executor WITH CHECK branches; no concrete RLS runtime is claimed.",
          "sources": [
            "src.rls-errors.18.6",
            "src.rls-errors.10.23"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "SQLSTATE directory identity",
          "status": "definition_only",
          "evidence_ids": [
            "identity.class-and-condition",
            "src.errcodes.18.6"
          ]
        },
        {
          "scope": "Fixed source message/mechanism",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "mechanism.backend-path",
            "src.sequence-permission.18.6",
            "src.sequence-permission.10.23"
          ]
        },
        {
          "scope": "Observed permission_denied_sequence on isolated targets",
          "status": "observed_runtime",
          "evidence_ids": [
            "runtime.representative-case",
            "snippet-registry.42501",
            "runtime.42501-syntax-latest-test2.latest",
            "runtime.42501-syntax-pg10.pg10"
          ]
        },
        {
          "scope": "Locked release presence and bounded version comparison",
          "status": "definition_only",
          "evidence_ids": [
            "versions.catalogue-boundary",
            "src.errcodes.18.6"
          ]
        }
      ],
      "runtime": [
        {
          "id": "runtime.42501-syntax-latest-test2.latest",
          "run_id": "42501-syntax-latest-test2",
          "target": "latest",
          "status": "passed",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "summary_sha256": "9b20c17b31dfdfa581355803aa96f061a5fa4ec674de7b7bdf246879879e26c4",
          "raw_sha256": "1f3a8a70f8b5788ea5c82f341c6cd55e8d84057a2905ae26c4c747dd14f0b280",
          "case_manifest": {
            "id": "manifest.42501",
            "kind": "local_artifact",
            "source_role": "case_manifest",
            "sha256": "63f32b62a86fc78ba7c882dd0f74d4c7f7b5c15fcdd33172520fcf4dfc1b4bc1"
          },
          "snippet_registry": {
            "id": "snippet-registry.42501",
            "kind": "local_artifact",
            "source_role": "snippet_registry",
            "sha256": "1c312de470921306bf563e8efc0ceafc2aed04f4096aeb28f7e471ec9b246a0d"
          },
          "environment": {
            "TimeZone": "Asia/Shanghai",
            "backend_pid": 966,
            "binary": {
              "bindir": "/opt/homebrew/Cellar/postgresql@18/18.6/bin",
              "pg_config": "/opt/homebrew/bin/pg_config",
              "pg_config_version": "PostgreSQL 18.6 (Homebrew)",
              "postgres": "/opt/homebrew/Cellar/postgresql@18/18.6/bin/postgres"
            },
            "connection_scope": "runner-owned localhost port",
            "current_user": "runner",
            "docker": {},
            "lc_messages": "C",
            "libpq_version": "18.6",
            "locale": "en_US.UTF-8",
            "log_destination": "csvlog,jsonlog",
            "log_error_verbosity": "verbose",
            "log_min_error_statement": "error",
            "log_min_messages": "error",
            "logging_collector": "on",
            "machine": "arm64",
            "max_connections": "100",
            "platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O",
            "psycopg_version": "3.3.5",
            "python_version": "3.14.6 (main, Jun 10 2026, 10:03:53) [Clang 21.0.0 (clang-2100.0.123.102)]",
            "server_encoding": "UTF8",
            "server_version": "18.6 (Homebrew)",
            "server_version_num": "180006",
            "target_kind": "latest",
            "wal_level": "logical"
          },
          "observed": {
            "connection_autocommit": true,
            "denied_status": "IDLE",
            "diagnostic": {
              "column_name": null,
              "constraint_name": null,
              "context": null,
              "datatype_name": null,
              "exception_type": "InsufficientPrivilege",
              "internal_position": null,
              "internal_query": null,
              "message_detail": null,
              "message_hint": null,
              "message_primary": "permission denied for sequence permission_sequence",
              "schema_name": null,
              "severity": "ERROR",
              "severity_nonlocalized": "ERROR",
              "source_file": "sequence.c",
              "source_function": "nextval_internal",
              "source_line": "655",
              "sqlstate": "42501",
              "statement_position": null,
              "table_name": null,
              "text": "permission denied for sequence permission_sequence"
            },
            "repair": {
              "granted_sequence_privilege": "USAGE",
              "status": "IDLE",
              "value": 1
            },
            "role": "u42501_d61b41bcce"
          },
          "assertions": [
            {
              "expected": "42501",
              "name": "42501 SQLSTATE",
              "observed": "42501",
              "passed": true
            },
            {
              "expected": "ERROR",
              "name": "42501 ERROR severity",
              "observed": "ERROR",
              "passed": true
            },
            {
              "expected": "permission denied for sequence permission_sequence",
              "name": "42501 primary diagnostic",
              "observed": "permission denied for sequence permission_sequence",
              "passed": true
            },
            {
              "expected": "IDLE",
              "name": "sequence privilege denial leaves session usable",
              "observed": "IDLE",
              "passed": true
            },
            {
              "expected": {
                "status": "IDLE",
                "value": 1
              },
              "name": "narrow grant repairs the same nextval",
              "observed": {
                "status": "IDLE",
                "value": 1
              },
              "passed": true
            }
          ],
          "cleanup": {
            "errors": [],
            "passed": true
          }
        },
        {
          "id": "runtime.42501-syntax-pg10.pg10",
          "run_id": "42501-syntax-pg10",
          "target": "pg10",
          "status": "passed",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "summary_sha256": "09348bf061a25fb7a37fa703206db34e0769ade791b6a46ae42c92e515a805c4",
          "raw_sha256": "eb589204bc3513ee29e02f02861a7ed77b0dcf1fe162a2fded332d5e3708f999",
          "case_manifest": {
            "id": "manifest.42501",
            "kind": "local_artifact",
            "source_role": "case_manifest",
            "sha256": "63f32b62a86fc78ba7c882dd0f74d4c7f7b5c15fcdd33172520fcf4dfc1b4bc1"
          },
          "snippet_registry": {
            "id": "snippet-registry.42501",
            "kind": "local_artifact",
            "source_role": "snippet_registry",
            "sha256": "1c312de470921306bf563e8efc0ceafc2aed04f4096aeb28f7e471ec9b246a0d"
          },
          "environment": {
            "TimeZone": "Etc/UTC",
            "backend_pid": 78,
            "binary": {},
            "connection_scope": "runner-owned localhost port",
            "current_user": "postgres",
            "docker": {
              "architecture": "arm64",
              "command": "/usr/local/bin/docker",
              "digest": "sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
              "id": "sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
              "image": "postgres:10",
              "image_created": "2022-06-23T09:11:18.374607054Z",
              "image_ref": "postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
              "log_destination": "csvlog",
              "os": "linux",
              "repo_digests": [
                "postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc"
              ]
            },
            "lc_messages": "en_US.utf8",
            "libpq_version": "18.6",
            "locale": "en_US.UTF-8",
            "log_destination": "csvlog",
            "log_error_verbosity": "verbose",
            "log_min_error_statement": "error",
            "log_min_messages": "error",
            "logging_collector": "on",
            "machine": "arm64",
            "max_connections": "100",
            "platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O",
            "psycopg_version": "3.3.5",
            "python_version": "3.14.6 (main, Jun 10 2026, 10:03:53) [Clang 21.0.0 (clang-2100.0.123.102)]",
            "server_encoding": "UTF8",
            "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
            "server_version_num": "100021",
            "target_kind": "pg10",
            "wal_level": "logical"
          },
          "observed": {
            "connection_autocommit": true,
            "denied_status": "IDLE",
            "diagnostic": {
              "column_name": null,
              "constraint_name": null,
              "context": null,
              "datatype_name": null,
              "exception_type": "InsufficientPrivilege",
              "internal_position": null,
              "internal_query": null,
              "message_detail": null,
              "message_hint": null,
              "message_primary": "permission denied for sequence permission_sequence",
              "schema_name": null,
              "severity": "ERROR",
              "severity_nonlocalized": "ERROR",
              "source_file": "sequence.c",
              "source_function": "nextval_internal",
              "source_line": "600",
              "sqlstate": "42501",
              "statement_position": null,
              "table_name": null,
              "text": "permission denied for sequence permission_sequence"
            },
            "repair": {
              "granted_sequence_privilege": "USAGE",
              "status": "IDLE",
              "value": 1
            },
            "role": "u42501_523bc1d1a0"
          },
          "assertions": [
            {
              "expected": "42501",
              "name": "42501 SQLSTATE",
              "observed": "42501",
              "passed": true
            },
            {
              "expected": "ERROR",
              "name": "42501 ERROR severity",
              "observed": "ERROR",
              "passed": true
            },
            {
              "expected": "permission denied for sequence permission_sequence",
              "name": "42501 primary diagnostic",
              "observed": "permission denied for sequence permission_sequence",
              "passed": true
            },
            {
              "expected": "IDLE",
              "name": "sequence privilege denial leaves session usable",
              "observed": "IDLE",
              "passed": true
            },
            {
              "expected": {
                "status": "IDLE",
                "value": 1
              },
              "name": "narrow grant repairs the same nextval",
              "observed": {
                "status": "IDLE",
                "value": 1
              },
              "passed": true
            }
          ],
          "cleanup": {
            "errors": [],
            "passed": true
          }
        }
      ]
    },
    {
      "sqlstate": "42601",
      "condition_name": "syntax_error",
      "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.calls.REL_10_23",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "00d16d3eb01b71ccf1b245c8f3102f9d0ec9f36fb02777b8dd1b99fcb263040c"
        },
        {
          "id": "src.limit-comma.18.6",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/parser/gram.y",
          "sha256": "7e548b673a1e03eb3a56c5eb9ad92d8e11095fac76e14cb258ca851f58274724",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/parser/gram.y#L13313-L13317"
        },
        {
          "id": "src.limit-comma.10.23",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_10_23",
          "commit": "02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4",
          "path": "src/backend/parser/gram.y",
          "sha256": "cebad6a5a2bdf68e9e5a4d2e04fa7f5dbf37efac99f5edb73cc661dae1536bad",
          "url": "https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/parser/gram.y#L11200-L11204"
        },
        {
          "id": "src.scanner-syntax.18.6",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/parser/scan.l",
          "sha256": "bf453f1ae3c22b84fea6f8e8bed4fda476b7cfa49b234efbf92ca228234d0293",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/parser/scan.l#L1228-L1240"
        },
        {
          "id": "src.scanner-syntax.10.23",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_10_23",
          "commit": "02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4",
          "path": "src/backend/parser/scan.l",
          "sha256": "a006581a25c659d59b29837010617503ff431f881e3cf0b54a99aa1cc445fe6c",
          "url": "https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/parser/scan.l#L1115-L1127"
        },
        {
          "id": "manifest.42601",
          "kind": "local_artifact",
          "source_role": "case_manifest",
          "sha256": "c6588aaa200ad4c3e553eb4f9cddc4d052ec68dbbe5018c8eb3966c4c3eb723c"
        },
        {
          "id": "snippet-registry.42601",
          "kind": "local_artifact",
          "source_role": "snippet_registry",
          "sha256": "b3558d4c9d87beb77b205a3e505e35f2371cdb38cb270b3dd2c4c8a446fe0bc2"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "statement": "42601 is the syntax_error condition in Class 42.",
          "method": "Read fixed errcodes.txt and the locked catalogue metadata.",
          "limits": "Directory identity does not identify every backend path.",
          "sources": [
            "src.errcodes.18.6"
          ]
        },
        {
          "id": "mechanism.backend-path",
          "statement": "The fixed source calls for 42601 include the mechanism and message boundary selected for this page.",
          "method": "Trace the resolved REL_18_6 and REL_10_23 source call records at the locked commits.",
          "limits": "Other calls can use the same SQLSTATE with different context or dynamic fields.",
          "sources": [
            "src.limit-comma.18.6",
            "src.limit-comma.10.23",
            "src.scanner-syntax.18.6",
            "src.scanner-syntax.10.23"
          ]
        },
        {
          "id": "mechanism.scanner-error",
          "statement": "The fixed scanner formats generic syntax errors as at-or-near-token or end-of-input errors and attaches a lexer position.",
          "method": "Read scanner_yyerror and scanner_errposition in the fixed REL_18_6 and REL_10_23 scan.l sources.",
          "limits": "This source branch is separate from the selected LIMIT runtime; grammar actions can supply more specific primary text.",
          "sources": [
            "src.scanner-syntax.18.6",
            "src.scanner-syntax.10.23"
          ]
        },
        {
          "id": "runtime.representative-case",
          "statement": "The selected syntax_limit_comma case passed on isolated PostgreSQL 18.6 and 10.21 targets.",
          "method": "Run the shared registry case and inspect structured diagnostics, state/recovery assertions, and cleanup.",
          "limits": "This covers the selected case and targets only; it does not generalize to all drivers or intermediate releases.",
          "sources": [
            "manifest.42601",
            "snippet-registry.42601"
          ],
          "runtime": [
            "runtime.42601-pagination-semantics-latest.latest",
            "runtime.42601-pagination-semantics-pg10.pg10"
          ]
        },
        {
          "id": "versions.catalogue-boundary",
          "statement": "The locked catalogue records 42601; runtime scope is limited to the selected targets.",
          "method": "Read generated facts and selected summaries.",
          "limits": "Definition presence is not an exact behavioral introduction.",
          "sources": [
            "src.errcodes.18.6",
            "src.calls.REL_18_6",
            "src.calls.REL_10_23"
          ]
        }
      ],
      "messages": [
        {
          "id": "message.limit-comma",
          "primary_template": "LIMIT #,# syntax is not supported",
          "hint_template": "Use separate LIMIT and OFFSET clauses.",
          "severity_source": "explicit ERROR",
          "sqlstate": "42601",
          "sources": [
            "src.limit-comma.18.6",
            "src.limit-comma.10.23"
          ]
        },
        {
          "id": "message.scanner-generic",
          "primary_variants": [
            "syntax error at or near \"%s\"",
            "syntax error at end of input"
          ],
          "severity_source": "explicit ERROR",
          "sqlstate": "42601",
          "limits": "The scanner inserts the grammar/lexer message and dynamic token; these variants are source-only in this batch.",
          "sources": [
            "src.scanner-syntax.18.6",
            "src.scanner-syntax.10.23"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "SQLSTATE directory identity",
          "status": "definition_only",
          "evidence_ids": [
            "identity.class-and-condition",
            "src.errcodes.18.6"
          ]
        },
        {
          "scope": "Fixed source message/mechanism",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "mechanism.backend-path",
            "src.limit-comma.18.6",
            "src.limit-comma.10.23"
          ]
        },
        {
          "scope": "Observed syntax_limit_comma on isolated targets",
          "status": "observed_runtime",
          "evidence_ids": [
            "runtime.representative-case",
            "snippet-registry.42601",
            "runtime.42601-pagination-semantics-latest.latest",
            "runtime.42601-pagination-semantics-pg10.pg10"
          ]
        },
        {
          "scope": "Locked release presence and bounded version comparison",
          "status": "definition_only",
          "evidence_ids": [
            "versions.catalogue-boundary",
            "src.errcodes.18.6"
          ]
        }
      ],
      "runtime": [
        {
          "id": "runtime.42601-pagination-semantics-latest.latest",
          "run_id": "42601-pagination-semantics-latest",
          "target": "latest",
          "status": "passed",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "summary_sha256": "d4b448d2e517a150ad0f7ced48ed48114bbb94e8fb2eaca389203555f6882b0d",
          "raw_sha256": "8a3fbabfae0f11a4a85d25c1dae94f0d602e072670492c0c6576d2270594f671",
          "case_manifest": {
            "id": "manifest.42601",
            "kind": "local_artifact",
            "source_role": "case_manifest",
            "sha256": "c6588aaa200ad4c3e553eb4f9cddc4d052ec68dbbe5018c8eb3966c4c3eb723c"
          },
          "snippet_registry": {
            "id": "snippet-registry.42601",
            "kind": "local_artifact",
            "source_role": "snippet_registry",
            "sha256": "b3558d4c9d87beb77b205a3e505e35f2371cdb38cb270b3dd2c4c8a446fe0bc2"
          },
          "environment": {
            "TimeZone": "Asia/Shanghai",
            "backend_pid": 21158,
            "binary": {
              "bindir": "/opt/homebrew/Cellar/postgresql@18/18.6/bin",
              "pg_config": "/opt/homebrew/bin/pg_config",
              "pg_config_version": "PostgreSQL 18.6 (Homebrew)",
              "postgres": "/opt/homebrew/Cellar/postgresql@18/18.6/bin/postgres"
            },
            "connection_scope": "runner-owned localhost port",
            "current_user": "runner",
            "docker": {},
            "lc_messages": "C",
            "libpq_version": "18.6",
            "locale": "en_US.UTF-8",
            "log_destination": "csvlog,jsonlog",
            "log_error_verbosity": "verbose",
            "log_min_error_statement": "error",
            "log_min_messages": "error",
            "logging_collector": "on",
            "machine": "arm64",
            "max_connections": "100",
            "platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O",
            "psycopg_version": "3.3.5",
            "python_version": "3.14.6 (main, Jun 10 2026, 10:03:53) [Clang 21.0.0 (clang-2100.0.123.102)]",
            "server_encoding": "UTF8",
            "server_version": "18.6 (Homebrew)",
            "server_version_num": "180006",
            "target_kind": "latest",
            "wal_level": "logical"
          },
          "observed": {
            "connection_autocommit": true,
            "diagnostic": {
              "column_name": null,
              "constraint_name": null,
              "context": null,
              "datatype_name": null,
              "exception_type": "SyntaxError",
              "internal_position": null,
              "internal_query": null,
              "message_detail": null,
              "message_hint": "Use separate LIMIT and OFFSET clauses.",
              "message_primary": "LIMIT #,# syntax is not supported",
              "schema_name": null,
              "severity": "ERROR",
              "severity_nonlocalized": "ERROR",
              "source_file": "gram.y",
              "source_function": "base_yyparse",
              "source_line": "13317",
              "sqlstate": "42601",
              "statement_position": "56",
              "table_name": null,
              "text": "LIMIT #,# syntax is not supported\nLINE 1: ...T n FROM generate_series(1, 3) AS s(n) ORDER BY n LIMIT 1, 2\n                                                             ^\nHINT:  Use separate LIMIT and OFFSET clauses."
            },
            "failed_status": "IDLE",
            "repair_status": "IDLE",
            "repair_rows": [
              2,
              3
            ]
          },
          "assertions": [
            {
              "expected": "42601",
              "name": "42601 SQLSTATE",
              "observed": "42601",
              "passed": true
            },
            {
              "expected": "ERROR",
              "name": "42601 ERROR severity",
              "observed": "ERROR",
              "passed": true
            },
            {
              "expected": "LIMIT #,# syntax is not supported",
              "name": "42601 primary diagnostic",
              "observed": "LIMIT #,# syntax is not supported",
              "passed": true
            },
            {
              "expected": "IDLE",
              "name": "syntax error leaves autocommit session usable",
              "observed": "IDLE",
              "passed": true
            },
            {
              "expected": {
                "rows": [
                  2,
                  3
                ],
                "status": "IDLE"
              },
              "name": "separate LIMIT/OFFSET preserves offset/count semantics",
              "observed": {
                "rows": [
                  2,
                  3
                ],
                "status": "IDLE"
              },
              "passed": true
            }
          ],
          "cleanup": {
            "errors": [],
            "passed": true
          }
        },
        {
          "id": "runtime.42601-pagination-semantics-pg10.pg10",
          "run_id": "42601-pagination-semantics-pg10",
          "target": "pg10",
          "status": "passed",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "summary_sha256": "bd30ee0ec5a9797ddeec5689cd4b511ca294bdcfe26dcfdaf8c0db3f6ea4c864",
          "raw_sha256": "65a78ef75fe67cd99fa8d10bdb32b3203d487153368178c98200220df41a8980",
          "case_manifest": {
            "id": "manifest.42601",
            "kind": "local_artifact",
            "source_role": "case_manifest",
            "sha256": "c6588aaa200ad4c3e553eb4f9cddc4d052ec68dbbe5018c8eb3966c4c3eb723c"
          },
          "snippet_registry": {
            "id": "snippet-registry.42601",
            "kind": "local_artifact",
            "source_role": "snippet_registry",
            "sha256": "b3558d4c9d87beb77b205a3e505e35f2371cdb38cb270b3dd2c4c8a446fe0bc2"
          },
          "environment": {
            "TimeZone": "Etc/UTC",
            "backend_pid": 79,
            "binary": {},
            "connection_scope": "runner-owned localhost port",
            "current_user": "postgres",
            "docker": {
              "architecture": "arm64",
              "command": "/usr/local/bin/docker",
              "digest": "sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
              "id": "sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
              "image": "postgres:10",
              "image_created": "2022-06-23T09:11:18.374607054Z",
              "image_ref": "postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
              "log_destination": "csvlog",
              "os": "linux",
              "repo_digests": [
                "postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc"
              ]
            },
            "lc_messages": "en_US.utf8",
            "libpq_version": "18.6",
            "locale": "en_US.UTF-8",
            "log_destination": "csvlog",
            "log_error_verbosity": "verbose",
            "log_min_error_statement": "error",
            "log_min_messages": "error",
            "logging_collector": "on",
            "machine": "arm64",
            "max_connections": "100",
            "platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O",
            "psycopg_version": "3.3.5",
            "python_version": "3.14.6 (main, Jun 10 2026, 10:03:53) [Clang 21.0.0 (clang-2100.0.123.102)]",
            "server_encoding": "UTF8",
            "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
            "server_version_num": "100021",
            "target_kind": "pg10",
            "wal_level": "logical"
          },
          "observed": {
            "connection_autocommit": true,
            "diagnostic": {
              "column_name": null,
              "constraint_name": null,
              "context": null,
              "datatype_name": null,
              "exception_type": "SyntaxError",
              "internal_position": null,
              "internal_query": null,
              "message_detail": null,
              "message_hint": "Use separate LIMIT and OFFSET clauses.",
              "message_primary": "LIMIT #,# syntax is not supported",
              "schema_name": null,
              "severity": "ERROR",
              "severity_nonlocalized": "ERROR",
              "source_file": "gram.y",
              "source_function": "base_yyparse",
              "source_line": "11203",
              "sqlstate": "42601",
              "statement_position": "56",
              "table_name": null,
              "text": "LIMIT #,# syntax is not supported\nLINE 1: ...T n FROM generate_series(1, 3) AS s(n) ORDER BY n LIMIT 1, 2\n                                                             ^\nHINT:  Use separate LIMIT and OFFSET clauses."
            },
            "failed_status": "IDLE",
            "repair_status": "IDLE",
            "repair_rows": [
              2,
              3
            ]
          },
          "assertions": [
            {
              "expected": "42601",
              "name": "42601 SQLSTATE",
              "observed": "42601",
              "passed": true
            },
            {
              "expected": "ERROR",
              "name": "42601 ERROR severity",
              "observed": "ERROR",
              "passed": true
            },
            {
              "expected": "LIMIT #,# syntax is not supported",
              "name": "42601 primary diagnostic",
              "observed": "LIMIT #,# syntax is not supported",
              "passed": true
            },
            {
              "expected": "IDLE",
              "name": "syntax error leaves autocommit session usable",
              "observed": "IDLE",
              "passed": true
            },
            {
              "expected": {
                "status": "IDLE",
                "value": 1
              },
              "name": "separate LIMIT/OFFSET syntax succeeds",
              "observed": {
                "status": "IDLE",
                "value": 1
              },
              "passed": true
            }
          ],
          "cleanup": {
            "errors": [],
            "passed": true
          }
        }
      ]
    },
    {
      "sqlstate": "42602",
      "condition_name": "invalid_name",
      "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.calls.REL_10_23",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "00d16d3eb01b71ccf1b245c8f3102f9d0ec9f36fb02777b8dd1b99fcb263040c"
        },
        {
          "id": "src.enum-invalid-label.18.6",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/catalog/pg_enum.c",
          "sha256": "849793e92baf9c0e4e8950f8472e2772289c22c58a4ea93997ef0218d7e4b3fc",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/catalog/pg_enum.c#L312-L316"
        },
        {
          "id": "src.enum-invalid-label.10.23",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_10_23",
          "commit": "02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4",
          "path": "src/backend/catalog/pg_enum.c",
          "sha256": "08076bbd661f4c400cf9741f4cfe89c5b0daf3383e4a3e6ac10f3f8f4bec16a6",
          "url": "https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/catalog/pg_enum.c#L199-L203"
        },
        {
          "id": "manifest.42602",
          "kind": "local_artifact",
          "source_role": "case_manifest",
          "sha256": "6fb98d3b2118d3e6d2787cfe9de305ade8f902f706600bcfd447c25377fc8b3f"
        },
        {
          "id": "snippet-registry.42602",
          "kind": "local_artifact",
          "source_role": "snippet_registry",
          "sha256": "1da638c492a37be480de277a2aa556293e3095c4060e2486435ee945bb0f5bf8"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "statement": "42602 is the invalid_name condition in Class 42.",
          "method": "Read fixed errcodes.txt and the locked catalogue metadata.",
          "limits": "Directory identity does not identify every backend path.",
          "sources": [
            "src.errcodes.18.6"
          ]
        },
        {
          "id": "mechanism.backend-path",
          "statement": "The fixed source calls for 42602 include the mechanism and message boundary selected for this page.",
          "method": "Trace the resolved REL_18_6 and REL_10_23 source call records at the locked commits.",
          "limits": "Other calls can use the same SQLSTATE with different context or dynamic fields.",
          "sources": [
            "src.enum-invalid-label.18.6",
            "src.enum-invalid-label.10.23"
          ]
        },
        {
          "id": "runtime.representative-case",
          "statement": "The selected invalid_enum_label case passed on isolated PostgreSQL 18.6 and 10.21 targets.",
          "method": "Run the shared registry case and inspect structured diagnostics, state/recovery assertions, and cleanup.",
          "limits": "This covers the selected case and targets only; it does not generalize to all drivers or intermediate releases.",
          "sources": [
            "manifest.42602",
            "snippet-registry.42602"
          ],
          "runtime": [
            "runtime.42602-syntax-latest1.latest",
            "runtime.42602-syntax-pg10.pg10"
          ]
        },
        {
          "id": "versions.catalogue-boundary",
          "statement": "The locked catalogue records 42602; runtime scope is limited to the selected targets.",
          "method": "Read generated facts and selected summaries.",
          "limits": "Definition presence is not an exact behavioral introduction.",
          "sources": [
            "src.errcodes.18.6",
            "src.calls.REL_18_6",
            "src.calls.REL_10_23"
          ]
        }
      ],
      "messages": [
        {
          "id": "message.enum-label",
          "primary_template": "invalid enum label \"%s\"",
          "detail_variants": [
            {
              "target": "REL_18_6",
              "template": "Labels must be %d bytes or less.",
              "source": "src.enum-invalid-label.18.6"
            },
            {
              "target": "REL_10_23",
              "template": "Labels must be %d characters or less.",
              "source": "src.enum-invalid-label.10.23"
            }
          ],
          "severity_source": "explicit ERROR",
          "sqlstate": "42602",
          "sources": [
            "src.enum-invalid-label.18.6",
            "src.enum-invalid-label.10.23"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "SQLSTATE directory identity",
          "status": "definition_only",
          "evidence_ids": [
            "identity.class-and-condition",
            "src.errcodes.18.6"
          ]
        },
        {
          "scope": "Fixed source message/mechanism",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "mechanism.backend-path",
            "src.enum-invalid-label.18.6",
            "src.enum-invalid-label.10.23"
          ]
        },
        {
          "scope": "Observed invalid_enum_label on isolated targets",
          "status": "observed_runtime",
          "evidence_ids": [
            "runtime.representative-case",
            "snippet-registry.42602",
            "runtime.42602-syntax-latest1.latest",
            "runtime.42602-syntax-pg10.pg10"
          ]
        },
        {
          "scope": "Locked release presence and bounded version comparison",
          "status": "definition_only",
          "evidence_ids": [
            "versions.catalogue-boundary",
            "src.errcodes.18.6"
          ]
        }
      ],
      "runtime": [
        {
          "id": "runtime.42602-syntax-latest1.latest",
          "run_id": "42602-syntax-latest1",
          "target": "latest",
          "status": "passed",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "summary_sha256": "b36df533d09a92bd9b7cc7b1cba4a566f32e8e91516f030bee1af5016ad35df2",
          "raw_sha256": "c988ffee9e336ad1d472c6caccc9b0620104d8e1cb595537695e43b0a02ee49e",
          "case_manifest": {
            "id": "manifest.42602",
            "kind": "local_artifact",
            "source_role": "case_manifest",
            "sha256": "6fb98d3b2118d3e6d2787cfe9de305ade8f902f706600bcfd447c25377fc8b3f"
          },
          "snippet_registry": {
            "id": "snippet-registry.42602",
            "kind": "local_artifact",
            "source_role": "snippet_registry",
            "sha256": "1da638c492a37be480de277a2aa556293e3095c4060e2486435ee945bb0f5bf8"
          },
          "environment": {
            "TimeZone": "Asia/Shanghai",
            "backend_pid": 1663,
            "binary": {
              "bindir": "/opt/homebrew/Cellar/postgresql@18/18.6/bin",
              "pg_config": "/opt/homebrew/bin/pg_config",
              "pg_config_version": "PostgreSQL 18.6 (Homebrew)",
              "postgres": "/opt/homebrew/Cellar/postgresql@18/18.6/bin/postgres"
            },
            "connection_scope": "runner-owned localhost port",
            "current_user": "runner",
            "docker": {},
            "lc_messages": "C",
            "libpq_version": "18.6",
            "locale": "en_US.UTF-8",
            "log_destination": "csvlog,jsonlog",
            "log_error_verbosity": "verbose",
            "log_min_error_statement": "error",
            "log_min_messages": "error",
            "logging_collector": "on",
            "machine": "arm64",
            "max_connections": "100",
            "platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O",
            "psycopg_version": "3.3.5",
            "python_version": "3.14.6 (main, Jun 10 2026, 10:03:53) [Clang 21.0.0 (clang-2100.0.123.102)]",
            "server_encoding": "UTF8",
            "server_version": "18.6 (Homebrew)",
            "server_version_num": "180006",
            "target_kind": "latest",
            "wal_level": "logical"
          },
          "observed": {
            "connection_autocommit": true,
            "diagnostic": {
              "column_name": null,
              "constraint_name": null,
              "context": null,
              "datatype_name": null,
              "exception_type": "InvalidName",
              "internal_position": null,
              "internal_query": null,
              "message_detail": "Labels must be 63 bytes or less.",
              "message_hint": null,
              "message_primary": "invalid enum label \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"",
              "schema_name": null,
              "severity": "ERROR",
              "severity_nonlocalized": "ERROR",
              "source_file": "pg_enum.c",
              "source_function": "AddEnumLabel",
              "source_line": "316",
              "sqlstate": "42602",
              "statement_position": null,
              "table_name": null,
              "text": "invalid enum label \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"\nDETAIL:  Labels must be 63 bytes or less."
            },
            "failed_status": "IDLE",
            "labels": [
              "ok",
              "short"
            ],
            "repair_status": "IDLE"
          },
          "assertions": [
            {
              "expected": "42602",
              "name": "42602 SQLSTATE",
              "observed": "42602",
              "passed": true
            },
            {
              "expected": "ERROR",
              "name": "42602 ERROR severity",
              "observed": "ERROR",
              "passed": true
            },
            {
              "expected": "invalid enum label",
              "name": "enum diagnostic identifies invalid label",
              "observed": "invalid enum label \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"",
              "passed": true
            },
            {
              "expected": "IDLE",
              "name": "invalid enum label leaves session usable",
              "observed": "IDLE",
              "passed": true
            },
            {
              "expected": {
                "labels": [
                  "ok",
                  "short"
                ],
                "status": "IDLE"
              },
              "name": "short enum label repairs the type",
              "observed": {
                "labels": [
                  "ok",
                  "short"
                ],
                "status": "IDLE"
              },
              "passed": true
            }
          ],
          "cleanup": {
            "errors": [],
            "passed": true
          }
        },
        {
          "id": "runtime.42602-syntax-pg10.pg10",
          "run_id": "42602-syntax-pg10",
          "target": "pg10",
          "status": "passed",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "summary_sha256": "993f4e2e601a9e1ced9db878a9de987cdef3e1b7f681bd3aa1f5519c7ec72f13",
          "raw_sha256": "94427b6b72743e97b1d19bbc159d8600ef94c88701bbc223fc032379f2542a24",
          "case_manifest": {
            "id": "manifest.42602",
            "kind": "local_artifact",
            "source_role": "case_manifest",
            "sha256": "6fb98d3b2118d3e6d2787cfe9de305ade8f902f706600bcfd447c25377fc8b3f"
          },
          "snippet_registry": {
            "id": "snippet-registry.42602",
            "kind": "local_artifact",
            "source_role": "snippet_registry",
            "sha256": "1da638c492a37be480de277a2aa556293e3095c4060e2486435ee945bb0f5bf8"
          },
          "environment": {
            "TimeZone": "Etc/UTC",
            "backend_pid": 79,
            "binary": {},
            "connection_scope": "runner-owned localhost port",
            "current_user": "postgres",
            "docker": {
              "architecture": "arm64",
              "command": "/usr/local/bin/docker",
              "digest": "sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
              "id": "sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
              "image": "postgres:10",
              "image_created": "2022-06-23T09:11:18.374607054Z",
              "image_ref": "postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
              "log_destination": "csvlog",
              "os": "linux",
              "repo_digests": [
                "postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc"
              ]
            },
            "lc_messages": "en_US.utf8",
            "libpq_version": "18.6",
            "locale": "en_US.UTF-8",
            "log_destination": "csvlog",
            "log_error_verbosity": "verbose",
            "log_min_error_statement": "error",
            "log_min_messages": "error",
            "logging_collector": "on",
            "machine": "arm64",
            "max_connections": "100",
            "platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O",
            "psycopg_version": "3.3.5",
            "python_version": "3.14.6 (main, Jun 10 2026, 10:03:53) [Clang 21.0.0 (clang-2100.0.123.102)]",
            "server_encoding": "UTF8",
            "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
            "server_version_num": "100021",
            "target_kind": "pg10",
            "wal_level": "logical"
          },
          "observed": {
            "connection_autocommit": true,
            "diagnostic": {
              "column_name": null,
              "constraint_name": null,
              "context": null,
              "datatype_name": null,
              "exception_type": "InvalidName",
              "internal_position": null,
              "internal_query": null,
              "message_detail": "Labels must be 63 characters or less.",
              "message_hint": null,
              "message_primary": "invalid enum label \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"",
              "schema_name": null,
              "severity": "ERROR",
              "severity_nonlocalized": "ERROR",
              "source_file": "pg_enum.c",
              "source_function": "AddEnumLabel",
              "source_line": "203",
              "sqlstate": "42602",
              "statement_position": null,
              "table_name": null,
              "text": "invalid enum label \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"\nDETAIL:  Labels must be 63 characters or less."
            },
            "failed_status": "IDLE",
            "labels": [
              "ok",
              "short"
            ],
            "repair_status": "IDLE"
          },
          "assertions": [
            {
              "expected": "42602",
              "name": "42602 SQLSTATE",
              "observed": "42602",
              "passed": true
            },
            {
              "expected": "ERROR",
              "name": "42602 ERROR severity",
              "observed": "ERROR",
              "passed": true
            },
            {
              "expected": "invalid enum label",
              "name": "enum diagnostic identifies invalid label",
              "observed": "invalid enum label \"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"",
              "passed": true
            },
            {
              "expected": "IDLE",
              "name": "invalid enum label leaves session usable",
              "observed": "IDLE",
              "passed": true
            },
            {
              "expected": {
                "labels": [
                  "ok",
                  "short"
                ],
                "status": "IDLE"
              },
              "name": "short enum label repairs the type",
              "observed": {
                "labels": [
                  "ok",
                  "short"
                ],
                "status": "IDLE"
              },
              "passed": true
            }
          ],
          "cleanup": {
            "errors": [],
            "passed": true
          }
        }
      ]
    },
    {
      "sqlstate": "42611",
      "condition_name": "invalid_column_definition",
      "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.calls.REL_10_23",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "00d16d3eb01b71ccf1b245c8f3102f9d0ec9f36fb02777b8dd1b99fcb263040c"
        },
        {
          "id": "src.inherited-conflicting-default.18.6",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/tablecmds.c",
          "sha256": "422dc8e833df4940755973c757e338295822ba3e4c7266c40669f49f96eb15a9",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/tablecmds.c#L3144-L3148"
        },
        {
          "id": "src.inherited-conflicting-default.10.23",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_10_23",
          "commit": "02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4",
          "path": "src/backend/commands/tablecmds.c",
          "sha256": "6de441c88496c6cf57a836898388085ec08bf69afd70d07acdafd6089b9b5f8c",
          "url": "https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/commands/tablecmds.c#L2288-L2292"
        },
        {
          "id": "manifest.42611",
          "kind": "local_artifact",
          "source_role": "case_manifest",
          "sha256": "f5e5e9e9ed3523b965a78dbce9f27b3e15a718780ee5b260286785279e54efb5"
        },
        {
          "id": "snippet-registry.42611",
          "kind": "local_artifact",
          "source_role": "snippet_registry",
          "sha256": "23614c2fa79a899cf2946d823ba17ec62a03e9c7ed4833db5a0422d889581569"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "statement": "42611 is the invalid_column_definition condition in Class 42.",
          "method": "Read fixed errcodes.txt and the locked catalogue metadata.",
          "limits": "Directory identity does not identify every backend path.",
          "sources": [
            "src.errcodes.18.6"
          ]
        },
        {
          "id": "mechanism.backend-path",
          "statement": "The fixed source calls for 42611 include the mechanism and message boundary selected for this page.",
          "method": "Trace the resolved REL_18_6 and REL_10_23 source call records at the locked commits.",
          "limits": "Other calls can use the same SQLSTATE with different context or dynamic fields.",
          "sources": [
            "src.inherited-conflicting-default.18.6",
            "src.inherited-conflicting-default.10.23"
          ]
        },
        {
          "id": "runtime.representative-case",
          "statement": "The selected conflicting_inherited_default case passed on isolated PostgreSQL 18.6 and 10.21 targets.",
          "method": "Run the shared registry case and inspect structured diagnostics, state/recovery assertions, and cleanup.",
          "limits": "This covers the selected case and targets only; it does not generalize to all drivers or intermediate releases.",
          "sources": [
            "manifest.42611",
            "snippet-registry.42611"
          ],
          "runtime": [
            "runtime.42611-syntax-latest1.latest",
            "runtime.42611-syntax-pg10.pg10"
          ]
        },
        {
          "id": "versions.catalogue-boundary",
          "statement": "The locked catalogue records 42611; runtime scope is limited to the selected targets.",
          "method": "Read generated facts and selected summaries.",
          "limits": "Definition presence is not an exact behavioral introduction.",
          "sources": [
            "src.errcodes.18.6",
            "src.calls.REL_18_6",
            "src.calls.REL_10_23"
          ]
        }
      ],
      "messages": [
        {
          "id": "message.inherited-default",
          "primary_template": "column \"%s\" inherits conflicting default values",
          "hint_template": "To resolve the conflict, specify a default explicitly.",
          "severity_source": "explicit ERROR",
          "sqlstate": "42611",
          "sources": [
            "src.inherited-conflicting-default.18.6",
            "src.inherited-conflicting-default.10.23"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "SQLSTATE directory identity",
          "status": "definition_only",
          "evidence_ids": [
            "identity.class-and-condition",
            "src.errcodes.18.6"
          ]
        },
        {
          "scope": "Fixed source message/mechanism",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "mechanism.backend-path",
            "src.inherited-conflicting-default.18.6",
            "src.inherited-conflicting-default.10.23"
          ]
        },
        {
          "scope": "Observed conflicting_inherited_default on isolated targets",
          "status": "observed_runtime",
          "evidence_ids": [
            "runtime.representative-case",
            "snippet-registry.42611",
            "runtime.42611-syntax-latest1.latest",
            "runtime.42611-syntax-pg10.pg10"
          ]
        },
        {
          "scope": "Locked release presence and bounded version comparison",
          "status": "definition_only",
          "evidence_ids": [
            "versions.catalogue-boundary",
            "src.errcodes.18.6"
          ]
        }
      ],
      "runtime": [
        {
          "id": "runtime.42611-syntax-latest1.latest",
          "run_id": "42611-syntax-latest1",
          "target": "latest",
          "status": "passed",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "summary_sha256": "b09e6edfd79545d85e38ecb14bddd49527cfcb1e304e881fd46f713277b40749",
          "raw_sha256": "914e3a6eaf7e7c885705addc898f313ae220899970223c505d331ce7bdeecdca",
          "case_manifest": {
            "id": "manifest.42611",
            "kind": "local_artifact",
            "source_role": "case_manifest",
            "sha256": "f5e5e9e9ed3523b965a78dbce9f27b3e15a718780ee5b260286785279e54efb5"
          },
          "snippet_registry": {
            "id": "snippet-registry.42611",
            "kind": "local_artifact",
            "source_role": "snippet_registry",
            "sha256": "23614c2fa79a899cf2946d823ba17ec62a03e9c7ed4833db5a0422d889581569"
          },
          "environment": {
            "TimeZone": "Asia/Shanghai",
            "backend_pid": 1674,
            "binary": {
              "bindir": "/opt/homebrew/Cellar/postgresql@18/18.6/bin",
              "pg_config": "/opt/homebrew/bin/pg_config",
              "pg_config_version": "PostgreSQL 18.6 (Homebrew)",
              "postgres": "/opt/homebrew/Cellar/postgresql@18/18.6/bin/postgres"
            },
            "connection_scope": "runner-owned localhost port",
            "current_user": "runner",
            "docker": {},
            "lc_messages": "C",
            "libpq_version": "18.6",
            "locale": "en_US.UTF-8",
            "log_destination": "csvlog,jsonlog",
            "log_error_verbosity": "verbose",
            "log_min_error_statement": "error",
            "log_min_messages": "error",
            "logging_collector": "on",
            "machine": "arm64",
            "max_connections": "100",
            "platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O",
            "psycopg_version": "3.3.5",
            "python_version": "3.14.6 (main, Jun 10 2026, 10:03:53) [Clang 21.0.0 (clang-2100.0.123.102)]",
            "server_encoding": "UTF8",
            "server_version": "18.6 (Homebrew)",
            "server_version_num": "180006",
            "target_kind": "latest",
            "wal_level": "logical"
          },
          "observed": {
            "connection_autocommit": true,
            "diagnostic": {
              "column_name": null,
              "constraint_name": null,
              "context": null,
              "datatype_name": null,
              "exception_type": "InvalidColumnDefinition",
              "internal_position": null,
              "internal_query": null,
              "message_detail": null,
              "message_hint": "To resolve the conflict, specify a default explicitly.",
              "message_primary": "column \"id\" inherits conflicting default values",
              "schema_name": null,
              "severity": "ERROR",
              "severity_nonlocalized": "ERROR",
              "source_file": "tablecmds.c",
              "source_function": "MergeAttributes",
              "source_line": "3148",
              "sqlstate": "42611",
              "statement_position": null,
              "table_name": null,
              "text": "column \"id\" inherits conflicting default values\nHINT:  To resolve the conflict, specify a default explicitly."
            },
            "failed_status": "IDLE",
            "repair_status": "IDLE",
            "repair_value": 1
          },
          "assertions": [
            {
              "expected": "42611",
              "name": "42611 SQLSTATE",
              "observed": "42611",
              "passed": true
            },
            {
              "expected": "ERROR",
              "name": "42611 ERROR severity",
              "observed": "ERROR",
              "passed": true
            },
            {
              "expected": "conflicting default values",
              "name": "diagnostic identifies conflicting inherited defaults",
              "observed": "column \"id\" inherits conflicting default values",
              "passed": true
            },
            {
              "expected": "IDLE",
              "name": "inheritance definition failure leaves session usable",
              "observed": "IDLE",
              "passed": true
            },
            {
              "expected": {
                "status": "IDLE",
                "value": 1
              },
              "name": "explicit default resolves inherited conflict",
              "observed": {
                "status": "IDLE",
                "value": 1
              },
              "passed": true
            }
          ],
          "cleanup": {
            "errors": [],
            "passed": true
          }
        },
        {
          "id": "runtime.42611-syntax-pg10.pg10",
          "run_id": "42611-syntax-pg10",
          "target": "pg10",
          "status": "passed",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "summary_sha256": "61ae83ec573f52f434a492cc21bacb3ba544dcaa3d505236d69f2d1cce364a03",
          "raw_sha256": "e89bdd693471c7175bb269a983da72edd45c03dc571db7e9b758408359b00346",
          "case_manifest": {
            "id": "manifest.42611",
            "kind": "local_artifact",
            "source_role": "case_manifest",
            "sha256": "f5e5e9e9ed3523b965a78dbce9f27b3e15a718780ee5b260286785279e54efb5"
          },
          "snippet_registry": {
            "id": "snippet-registry.42611",
            "kind": "local_artifact",
            "source_role": "snippet_registry",
            "sha256": "23614c2fa79a899cf2946d823ba17ec62a03e9c7ed4833db5a0422d889581569"
          },
          "environment": {
            "TimeZone": "Etc/UTC",
            "backend_pid": 79,
            "binary": {},
            "connection_scope": "runner-owned localhost port",
            "current_user": "postgres",
            "docker": {
              "architecture": "arm64",
              "command": "/usr/local/bin/docker",
              "digest": "sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
              "id": "sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
              "image": "postgres:10",
              "image_created": "2022-06-23T09:11:18.374607054Z",
              "image_ref": "postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
              "log_destination": "csvlog",
              "os": "linux",
              "repo_digests": [
                "postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc"
              ]
            },
            "lc_messages": "en_US.utf8",
            "libpq_version": "18.6",
            "locale": "en_US.UTF-8",
            "log_destination": "csvlog",
            "log_error_verbosity": "verbose",
            "log_min_error_statement": "error",
            "log_min_messages": "error",
            "logging_collector": "on",
            "machine": "arm64",
            "max_connections": "100",
            "platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O",
            "psycopg_version": "3.3.5",
            "python_version": "3.14.6 (main, Jun 10 2026, 10:03:53) [Clang 21.0.0 (clang-2100.0.123.102)]",
            "server_encoding": "UTF8",
            "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
            "server_version_num": "100021",
            "target_kind": "pg10",
            "wal_level": "logical"
          },
          "observed": {
            "connection_autocommit": true,
            "diagnostic": {
              "column_name": null,
              "constraint_name": null,
              "context": null,
              "datatype_name": null,
              "exception_type": "InvalidColumnDefinition",
              "internal_position": null,
              "internal_query": null,
              "message_detail": null,
              "message_hint": "To resolve the conflict, specify a default explicitly.",
              "message_primary": "column \"id\" inherits conflicting default values",
              "schema_name": null,
              "severity": "ERROR",
              "severity_nonlocalized": "ERROR",
              "source_file": "tablecmds.c",
              "source_function": "MergeAttributes",
              "source_line": "2292",
              "sqlstate": "42611",
              "statement_position": null,
              "table_name": null,
              "text": "column \"id\" inherits conflicting default values\nHINT:  To resolve the conflict, specify a default explicitly."
            },
            "failed_status": "IDLE",
            "repair_status": "IDLE",
            "repair_value": 1
          },
          "assertions": [
            {
              "expected": "42611",
              "name": "42611 SQLSTATE",
              "observed": "42611",
              "passed": true
            },
            {
              "expected": "ERROR",
              "name": "42611 ERROR severity",
              "observed": "ERROR",
              "passed": true
            },
            {
              "expected": "conflicting default values",
              "name": "diagnostic identifies conflicting inherited defaults",
              "observed": "column \"id\" inherits conflicting default values",
              "passed": true
            },
            {
              "expected": "IDLE",
              "name": "inheritance definition failure leaves session usable",
              "observed": "IDLE",
              "passed": true
            },
            {
              "expected": {
                "status": "IDLE",
                "value": 1
              },
              "name": "explicit default resolves inherited conflict",
              "observed": {
                "status": "IDLE",
                "value": 1
              },
              "passed": true
            }
          ],
          "cleanup": {
            "errors": [],
            "passed": true
          }
        }
      ]
    },
    {
      "sqlstate": "42622",
      "condition_name": "name_too_long",
      "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.calls.REL_10_23",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "00d16d3eb01b71ccf1b245c8f3102f9d0ec9f36fb02777b8dd1b99fcb263040c"
        },
        {
          "id": "src.name-recv-too-long.18.6",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/name.c",
          "sha256": "4c4b4dc71f55ba73dbc24dd94b3385986fdb3179702b3d100cbad7ab00db7762",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/name.c#L91-L95"
        },
        {
          "id": "src.name-recv-too-long.10.23",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_10_23",
          "commit": "02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4",
          "path": "src/backend/utils/adt/name.c",
          "sha256": "7c7da791e528aafdbf26930cd4bd34386806818c19d2ee4b78bbe138b93f4a84",
          "url": "https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/utils/adt/name.c#L89-L93"
        },
        {
          "id": "src.identifier-truncate.18.6",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/parser/scansup.c",
          "sha256": "99cc6839927c19a9f85a1e5fbc8e848b376a7073477a04a0bbfe106ecdb2273f",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/parser/scansup.c#L91-L102"
        },
        {
          "id": "src.identifier-truncate.10.23",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_10_23",
          "commit": "02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4",
          "path": "src/backend/parser/scansup.c",
          "sha256": "3c59a33f3cb5eaa0c3932859eb15e927f459a5feb5f40ca96fef5ef74495d67c",
          "url": "https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/parser/scansup.c#L187-L208"
        },
        {
          "id": "manifest.42622",
          "kind": "local_artifact",
          "source_role": "case_manifest",
          "sha256": "798c2ea09dacbb975c6ba84458e71f2f20fe4aeb7d790193f16425bce09d6abf"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "statement": "42622 is the name_too_long condition in Class 42.",
          "method": "Read fixed errcodes.txt and the locked catalogue metadata.",
          "limits": "Directory identity does not identify every backend path.",
          "sources": [
            "src.errcodes.18.6"
          ]
        },
        {
          "id": "mechanism.backend-path",
          "statement": "The fixed source calls for 42622 include the mechanism and message boundary selected for this page.",
          "method": "Trace the resolved REL_18_6 and REL_10_23 source call records at the locked commits.",
          "limits": "Other calls can use the same SQLSTATE with different context or dynamic fields.",
          "sources": [
            "src.name-recv-too-long.18.6",
            "src.name-recv-too-long.10.23",
            "src.identifier-truncate.18.6",
            "src.identifier-truncate.10.23"
          ]
        },
        {
          "id": "mechanism.identifier-truncation-notice",
          "statement": "The parser truncates an overlong SQL identifier and can emit a 42622 NOTICE when the scanner requests warning, while binary namerecv emits the separate 42622 ERROR path.",
          "method": "Read truncate_identifier and its scanner call guard in fixed scansup.c/scan.l call context.",
          "limits": "No natural runtime is selected for either branch in this batch; ordinary namein text input may be silent.",
          "sources": [
            "src.identifier-truncate.18.6",
            "src.identifier-truncate.10.23",
            "src.name-recv-too-long.18.6",
            "src.name-recv-too-long.10.23"
          ]
        },
        {
          "id": "versions.catalogue-boundary",
          "statement": "The locked catalogue records 42622; runtime scope is limited to the selected targets.",
          "method": "Read generated facts and selected summaries.",
          "limits": "Definition presence is not an exact behavioral introduction.",
          "sources": [
            "src.errcodes.18.6",
            "src.calls.REL_18_6",
            "src.calls.REL_10_23"
          ]
        }
      ],
      "messages": [
        {
          "id": "message.name-recv",
          "primary_template": "identifier too long",
          "detail_template": "Identifier must be less than %d characters.",
          "severity_source": "explicit ERROR",
          "limits": "Only the binary name receive path is source-confirmed here.",
          "sqlstate": "42622",
          "sources": [
            "src.name-recv-too-long.18.6",
            "src.name-recv-too-long.10.23"
          ]
        },
        {
          "id": "message.identifier-truncate-notice",
          "primary_variants": [
            {
              "target": "REL_18_6",
              "template": "identifier \"%s\" will be truncated to \"%.*s\"",
              "source": "src.identifier-truncate.18.6"
            },
            {
              "target": "REL_10_23",
              "template": "identifier \"%s\" will be truncated to \"%s\"",
              "source": "src.identifier-truncate.10.23"
            }
          ],
          "severity_source": "explicit NOTICE",
          "sqlstate": "42622",
          "limits": "Scanner identifier path only; 18.6 and 10.23 use different formatting for the clipped second value.",
          "sources": [
            "src.identifier-truncate.18.6",
            "src.identifier-truncate.10.23"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "SQLSTATE directory identity",
          "status": "definition_only",
          "evidence_ids": [
            "identity.class-and-condition",
            "src.errcodes.18.6"
          ]
        },
        {
          "scope": "Fixed source message/mechanism",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "mechanism.backend-path",
            "src.name-recv-too-long.18.6",
            "src.name-recv-too-long.10.23"
          ]
        },
        {
          "scope": "Locked release presence and bounded version comparison",
          "status": "definition_only",
          "evidence_ids": [
            "versions.catalogue-boundary",
            "src.errcodes.18.6"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "42701",
      "condition_name": "duplicate_column",
      "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.calls.REL_10_23",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "00d16d3eb01b71ccf1b245c8f3102f9d0ec9f36fb02777b8dd1b99fcb263040c"
        },
        {
          "id": "src.duplicate-column.18.6",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/tablecmds.c",
          "sha256": "422dc8e833df4940755973c757e338295822ba3e4c7266c40669f49f96eb15a9",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/tablecmds.c#L2636-L2639"
        },
        {
          "id": "src.duplicate-column.10.23",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_10_23",
          "commit": "02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4",
          "path": "src/backend/commands/tablecmds.c",
          "sha256": "6de441c88496c6cf57a836898388085ec08bf69afd70d07acdafd6089b9b5f8c",
          "url": "https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/commands/tablecmds.c#L1741-L1744"
        },
        {
          "id": "manifest.42701",
          "kind": "local_artifact",
          "source_role": "case_manifest",
          "sha256": "9f792ba437d56c9c8517dcc45582799d04c83a50180b5e290e8cc3b90c93fd7e"
        },
        {
          "id": "snippet-registry.42701",
          "kind": "local_artifact",
          "source_role": "snippet_registry",
          "sha256": "20767b2140a3242ce7450b1c3eaf0dc89b87f75fd18055d9220c8aeb2df5400f"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "statement": "42701 is the duplicate_column condition in Class 42.",
          "method": "Read fixed errcodes.txt and the locked catalogue metadata.",
          "limits": "Directory identity does not identify every backend path.",
          "sources": [
            "src.errcodes.18.6"
          ]
        },
        {
          "id": "mechanism.backend-path",
          "statement": "The fixed source calls for 42701 include the mechanism and message boundary selected for this page.",
          "method": "Trace the resolved REL_18_6 and REL_10_23 source call records at the locked commits.",
          "limits": "Other calls can use the same SQLSTATE with different context or dynamic fields.",
          "sources": [
            "src.duplicate-column.18.6",
            "src.duplicate-column.10.23"
          ]
        },
        {
          "id": "runtime.representative-case",
          "statement": "The selected duplicate_column case passed on isolated PostgreSQL 18.6 and 10.21 targets.",
          "method": "Run the shared registry case and inspect structured diagnostics, state/recovery assertions, and cleanup.",
          "limits": "This covers the selected case and targets only; it does not generalize to all drivers or intermediate releases.",
          "sources": [
            "manifest.42701",
            "snippet-registry.42701"
          ],
          "runtime": [
            "runtime.42701-syntax-latest2.latest",
            "runtime.42701-syntax-pg10.pg10"
          ]
        },
        {
          "id": "versions.catalogue-boundary",
          "statement": "The locked catalogue records 42701; runtime scope is limited to the selected targets.",
          "method": "Read generated facts and selected summaries.",
          "limits": "Definition presence is not an exact behavioral introduction.",
          "sources": [
            "src.errcodes.18.6",
            "src.calls.REL_18_6",
            "src.calls.REL_10_23"
          ]
        }
      ],
      "messages": [
        {
          "id": "message.duplicate-column",
          "primary_template": "column \"%s\" specified more than once",
          "severity_source": "explicit ERROR",
          "sqlstate": "42701",
          "sources": [
            "src.duplicate-column.18.6",
            "src.duplicate-column.10.23"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "SQLSTATE directory identity",
          "status": "definition_only",
          "evidence_ids": [
            "identity.class-and-condition",
            "src.errcodes.18.6"
          ]
        },
        {
          "scope": "Fixed source message/mechanism",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "mechanism.backend-path",
            "src.duplicate-column.18.6",
            "src.duplicate-column.10.23"
          ]
        },
        {
          "scope": "Observed duplicate_column on isolated targets",
          "status": "observed_runtime",
          "evidence_ids": [
            "runtime.representative-case",
            "snippet-registry.42701",
            "runtime.42701-syntax-latest2.latest",
            "runtime.42701-syntax-pg10.pg10"
          ]
        },
        {
          "scope": "Locked release presence and bounded version comparison",
          "status": "definition_only",
          "evidence_ids": [
            "versions.catalogue-boundary",
            "src.errcodes.18.6"
          ]
        }
      ],
      "runtime": [
        {
          "id": "runtime.42701-syntax-latest2.latest",
          "run_id": "42701-syntax-latest2",
          "target": "latest",
          "status": "passed",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "summary_sha256": "23dfe97f3c9373be57b80a6c2d86c3f8ba5467998a158fd5fb44dc4dbf6c1b73",
          "raw_sha256": "50b147ec604b0ebf828d1d31065262eb4a3dfba432b44b03a2bae2b54d02df3a",
          "case_manifest": {
            "id": "manifest.42701",
            "kind": "local_artifact",
            "source_role": "case_manifest",
            "sha256": "9f792ba437d56c9c8517dcc45582799d04c83a50180b5e290e8cc3b90c93fd7e"
          },
          "snippet_registry": {
            "id": "snippet-registry.42701",
            "kind": "local_artifact",
            "source_role": "snippet_registry",
            "sha256": "20767b2140a3242ce7450b1c3eaf0dc89b87f75fd18055d9220c8aeb2df5400f"
          },
          "environment": {
            "TimeZone": "Asia/Shanghai",
            "backend_pid": 2968,
            "binary": {
              "bindir": "/opt/homebrew/Cellar/postgresql@18/18.6/bin",
              "pg_config": "/opt/homebrew/bin/pg_config",
              "pg_config_version": "PostgreSQL 18.6 (Homebrew)",
              "postgres": "/opt/homebrew/Cellar/postgresql@18/18.6/bin/postgres"
            },
            "connection_scope": "runner-owned localhost port",
            "current_user": "runner",
            "docker": {},
            "lc_messages": "C",
            "libpq_version": "18.6",
            "locale": "en_US.UTF-8",
            "log_destination": "csvlog,jsonlog",
            "log_error_verbosity": "verbose",
            "log_min_error_statement": "error",
            "log_min_messages": "error",
            "logging_collector": "on",
            "machine": "arm64",
            "max_connections": "100",
            "platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O",
            "psycopg_version": "3.3.5",
            "python_version": "3.14.6 (main, Jun 10 2026, 10:03:53) [Clang 21.0.0 (clang-2100.0.123.102)]",
            "server_encoding": "UTF8",
            "server_version": "18.6 (Homebrew)",
            "server_version_num": "180006",
            "target_kind": "latest",
            "wal_level": "logical"
          },
          "observed": {
            "column_count": 2,
            "connection_autocommit": true,
            "diagnostic": {
              "column_name": null,
              "constraint_name": null,
              "context": null,
              "datatype_name": null,
              "exception_type": "DuplicateColumn",
              "internal_position": null,
              "internal_query": null,
              "message_detail": null,
              "message_hint": null,
              "message_primary": "column \"id\" specified more than once",
              "schema_name": null,
              "severity": "ERROR",
              "severity_nonlocalized": "ERROR",
              "source_file": "tablecmds.c",
              "source_function": "MergeAttributes",
              "source_line": "2639",
              "sqlstate": "42701",
              "statement_position": null,
              "table_name": null,
              "text": "column \"id\" specified more than once"
            },
            "failed_status": "IDLE",
            "repair_status": "IDLE"
          },
          "assertions": [
            {
              "expected": "42701",
              "name": "42701 SQLSTATE",
              "observed": "42701",
              "passed": true
            },
            {
              "expected": "ERROR",
              "name": "42701 ERROR severity",
              "observed": "ERROR",
              "passed": true
            },
            {
              "expected": "column \"id\" specified more than once",
              "name": "42701 primary diagnostic",
              "observed": "column \"id\" specified more than once",
              "passed": true
            },
            {
              "expected": "IDLE",
              "name": "duplicate-column error leaves session usable",
              "observed": "IDLE",
              "passed": true
            },
            {
              "expected": {
                "columns": 2,
                "status": "IDLE"
              },
              "name": "unique column definitions repair table",
              "observed": {
                "columns": 2,
                "status": "IDLE"
              },
              "passed": true
            }
          ],
          "cleanup": {
            "errors": [],
            "passed": true
          }
        },
        {
          "id": "runtime.42701-syntax-pg10.pg10",
          "run_id": "42701-syntax-pg10",
          "target": "pg10",
          "status": "passed",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "summary_sha256": "e8485e813c64d48c0a8aaabea9e3844e2aaa28b2817f1ee04362e4a85d48213b",
          "raw_sha256": "df7ce42bcd46bac5e7e750222372f9b45ea0da1b0e97da258828b484e0ba0856",
          "case_manifest": {
            "id": "manifest.42701",
            "kind": "local_artifact",
            "source_role": "case_manifest",
            "sha256": "9f792ba437d56c9c8517dcc45582799d04c83a50180b5e290e8cc3b90c93fd7e"
          },
          "snippet_registry": {
            "id": "snippet-registry.42701",
            "kind": "local_artifact",
            "source_role": "snippet_registry",
            "sha256": "20767b2140a3242ce7450b1c3eaf0dc89b87f75fd18055d9220c8aeb2df5400f"
          },
          "environment": {
            "TimeZone": "Etc/UTC",
            "backend_pid": 80,
            "binary": {},
            "connection_scope": "runner-owned localhost port",
            "current_user": "postgres",
            "docker": {
              "architecture": "arm64",
              "command": "/usr/local/bin/docker",
              "digest": "sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
              "id": "sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
              "image": "postgres:10",
              "image_created": "2022-06-23T09:11:18.374607054Z",
              "image_ref": "postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
              "log_destination": "csvlog",
              "os": "linux",
              "repo_digests": [
                "postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc"
              ]
            },
            "lc_messages": "en_US.utf8",
            "libpq_version": "18.6",
            "locale": "en_US.UTF-8",
            "log_destination": "csvlog",
            "log_error_verbosity": "verbose",
            "log_min_error_statement": "error",
            "log_min_messages": "error",
            "logging_collector": "on",
            "machine": "arm64",
            "max_connections": "100",
            "platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O",
            "psycopg_version": "3.3.5",
            "python_version": "3.14.6 (main, Jun 10 2026, 10:03:53) [Clang 21.0.0 (clang-2100.0.123.102)]",
            "server_encoding": "UTF8",
            "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
            "server_version_num": "100021",
            "target_kind": "pg10",
            "wal_level": "logical"
          },
          "observed": {
            "column_count": 2,
            "connection_autocommit": true,
            "diagnostic": {
              "column_name": null,
              "constraint_name": null,
              "context": null,
              "datatype_name": null,
              "exception_type": "DuplicateColumn",
              "internal_position": null,
              "internal_query": null,
              "message_detail": null,
              "message_hint": null,
              "message_primary": "column \"id\" specified more than once",
              "schema_name": null,
              "severity": "ERROR",
              "severity_nonlocalized": "ERROR",
              "source_file": "tablecmds.c",
              "source_function": "MergeAttributes",
              "source_line": "1744",
              "sqlstate": "42701",
              "statement_position": null,
              "table_name": null,
              "text": "column \"id\" specified more than once"
            },
            "failed_status": "IDLE",
            "repair_status": "IDLE"
          },
          "assertions": [
            {
              "expected": "42701",
              "name": "42701 SQLSTATE",
              "observed": "42701",
              "passed": true
            },
            {
              "expected": "ERROR",
              "name": "42701 ERROR severity",
              "observed": "ERROR",
              "passed": true
            },
            {
              "expected": "column \"id\" specified more than once",
              "name": "42701 primary diagnostic",
              "observed": "column \"id\" specified more than once",
              "passed": true
            },
            {
              "expected": "IDLE",
              "name": "duplicate-column error leaves session usable",
              "observed": "IDLE",
              "passed": true
            },
            {
              "expected": {
                "columns": 2,
                "status": "IDLE"
              },
              "name": "unique column definitions repair table",
              "observed": {
                "columns": 2,
                "status": "IDLE"
              },
              "passed": true
            }
          ],
          "cleanup": {
            "errors": [],
            "passed": true
          }
        }
      ]
    },
    {
      "sqlstate": "42702",
      "condition_name": "ambiguous_column",
      "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.calls.REL_10_23",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "00d16d3eb01b71ccf1b245c8f3102f9d0ec9f36fb02777b8dd1b99fcb263040c"
        },
        {
          "id": "src.ambiguous-column.18.6",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/parser/parse_relation.c",
          "sha256": "0d9c88f4a8def4c2d982c33f13208590e21ecf5e6f8cd9d7faa223dc771c9a9a",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/parser/parse_relation.c#L960-L964"
        },
        {
          "id": "src.ambiguous-column.10.23",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_10_23",
          "commit": "02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4",
          "path": "src/backend/parser/parse_relation.c",
          "sha256": "a34f40fc93fa5df0015fe5af5ee7761ccba2d16a791cda69ae07848ed27616b5",
          "url": "https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/parser/parse_relation.c#L787-L791"
        },
        {
          "id": "manifest.42702",
          "kind": "local_artifact",
          "source_role": "case_manifest",
          "sha256": "31c6d96bb62ae0e507e1a627429d53825a5ecf30942b6df342a6ec68aadec3de"
        },
        {
          "id": "snippet-registry.42702",
          "kind": "local_artifact",
          "source_role": "snippet_registry",
          "sha256": "b8d1edca0e090bda71ee447d0750e13f460c603a479818170bdfea34716bdf17"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "statement": "42702 is the ambiguous_column condition in Class 42.",
          "method": "Read fixed errcodes.txt and the locked catalogue metadata.",
          "limits": "Directory identity does not identify every backend path.",
          "sources": [
            "src.errcodes.18.6"
          ]
        },
        {
          "id": "mechanism.backend-path",
          "statement": "The fixed source calls for 42702 include the mechanism and message boundary selected for this page.",
          "method": "Trace the resolved REL_18_6 and REL_10_23 source call records at the locked commits.",
          "limits": "Other calls can use the same SQLSTATE with different context or dynamic fields.",
          "sources": [
            "src.ambiguous-column.18.6",
            "src.ambiguous-column.10.23"
          ]
        },
        {
          "id": "runtime.representative-case",
          "statement": "The selected ambiguous_column case passed on isolated PostgreSQL 18.6 and 10.21 targets.",
          "method": "Run the shared registry case and inspect structured diagnostics, state/recovery assertions, and cleanup.",
          "limits": "This covers the selected case and targets only; it does not generalize to all drivers or intermediate releases.",
          "sources": [
            "manifest.42702",
            "snippet-registry.42702"
          ],
          "runtime": [
            "runtime.42702-syntax-latest1.latest",
            "runtime.42702-syntax-pg10.pg10"
          ]
        },
        {
          "id": "versions.catalogue-boundary",
          "statement": "The locked catalogue records 42702; runtime scope is limited to the selected targets.",
          "method": "Read generated facts and selected summaries.",
          "limits": "Definition presence is not an exact behavioral introduction.",
          "sources": [
            "src.errcodes.18.6",
            "src.calls.REL_18_6",
            "src.calls.REL_10_23"
          ]
        }
      ],
      "messages": [
        {
          "id": "message.ambiguous-column",
          "primary_template": "column reference \"%s\" is ambiguous",
          "severity_source": "explicit ERROR",
          "sqlstate": "42702",
          "sources": [
            "src.ambiguous-column.18.6",
            "src.ambiguous-column.10.23"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "SQLSTATE directory identity",
          "status": "definition_only",
          "evidence_ids": [
            "identity.class-and-condition",
            "src.errcodes.18.6"
          ]
        },
        {
          "scope": "Fixed source message/mechanism",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "mechanism.backend-path",
            "src.ambiguous-column.18.6",
            "src.ambiguous-column.10.23"
          ]
        },
        {
          "scope": "Observed ambiguous_column on isolated targets",
          "status": "observed_runtime",
          "evidence_ids": [
            "runtime.representative-case",
            "snippet-registry.42702",
            "runtime.42702-syntax-latest1.latest",
            "runtime.42702-syntax-pg10.pg10"
          ]
        },
        {
          "scope": "Locked release presence and bounded version comparison",
          "status": "definition_only",
          "evidence_ids": [
            "versions.catalogue-boundary",
            "src.errcodes.18.6"
          ]
        }
      ],
      "runtime": [
        {
          "id": "runtime.42702-syntax-latest1.latest",
          "run_id": "42702-syntax-latest1",
          "target": "latest",
          "status": "passed",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "summary_sha256": "3f27e6d4e7ad01d6c4385f7b157caa93d96bf2d1f2e051794cfca7e7f0b3f0c8",
          "raw_sha256": "a02b48866b59e742a175f6f4149381d97944325a4ef95bb63c5f211c73978a6a",
          "case_manifest": {
            "id": "manifest.42702",
            "kind": "local_artifact",
            "source_role": "case_manifest",
            "sha256": "31c6d96bb62ae0e507e1a627429d53825a5ecf30942b6df342a6ec68aadec3de"
          },
          "snippet_registry": {
            "id": "snippet-registry.42702",
            "kind": "local_artifact",
            "source_role": "snippet_registry",
            "sha256": "b8d1edca0e090bda71ee447d0750e13f460c603a479818170bdfea34716bdf17"
          },
          "environment": {
            "TimeZone": "Asia/Shanghai",
            "backend_pid": 1700,
            "binary": {
              "bindir": "/opt/homebrew/Cellar/postgresql@18/18.6/bin",
              "pg_config": "/opt/homebrew/bin/pg_config",
              "pg_config_version": "PostgreSQL 18.6 (Homebrew)",
              "postgres": "/opt/homebrew/Cellar/postgresql@18/18.6/bin/postgres"
            },
            "connection_scope": "runner-owned localhost port",
            "current_user": "runner",
            "docker": {},
            "lc_messages": "C",
            "libpq_version": "18.6",
            "locale": "en_US.UTF-8",
            "log_destination": "csvlog,jsonlog",
            "log_error_verbosity": "verbose",
            "log_min_error_statement": "error",
            "log_min_messages": "error",
            "logging_collector": "on",
            "machine": "arm64",
            "max_connections": "100",
            "platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O",
            "psycopg_version": "3.3.5",
            "python_version": "3.14.6 (main, Jun 10 2026, 10:03:53) [Clang 21.0.0 (clang-2100.0.123.102)]",
            "server_encoding": "UTF8",
            "server_version": "18.6 (Homebrew)",
            "server_version_num": "180006",
            "target_kind": "latest",
            "wal_level": "logical"
          },
          "observed": {
            "connection_autocommit": true,
            "diagnostic": {
              "column_name": null,
              "constraint_name": null,
              "context": null,
              "datatype_name": null,
              "exception_type": "AmbiguousColumn",
              "internal_position": null,
              "internal_query": null,
              "message_detail": null,
              "message_hint": null,
              "message_primary": "column reference \"id\" is ambiguous",
              "schema_name": null,
              "severity": "ERROR",
              "severity_nonlocalized": "ERROR",
              "source_file": "parse_relation.c",
              "source_function": "colNameToVar",
              "source_line": "964",
              "sqlstate": "42702",
              "statement_position": "8",
              "table_name": null,
              "text": "column reference \"id\" is ambiguous\nLINE 1: SELECT id FROM \"c42702_ambiguous_column\".\"left_table\", \"c427...\n               ^"
            },
            "failed_status": "IDLE",
            "repair_status": "IDLE",
            "repair_value": 1
          },
          "assertions": [
            {
              "expected": "42702",
              "name": "42702 SQLSTATE",
              "observed": "42702",
              "passed": true
            },
            {
              "expected": "ERROR",
              "name": "42702 ERROR severity",
              "observed": "ERROR",
              "passed": true
            },
            {
              "expected": "column reference \"id\" is ambiguous",
              "name": "42702 primary diagnostic",
              "observed": "column reference \"id\" is ambiguous",
              "passed": true
            },
            {
              "expected": "IDLE",
              "name": "ambiguous reference leaves session usable",
              "observed": "IDLE",
              "passed": true
            },
            {
              "expected": {
                "status": "IDLE",
                "value": 1
              },
              "name": "qualified reference repairs query",
              "observed": {
                "status": "IDLE",
                "value": 1
              },
              "passed": true
            }
          ],
          "cleanup": {
            "errors": [],
            "passed": true
          }
        },
        {
          "id": "runtime.42702-syntax-pg10.pg10",
          "run_id": "42702-syntax-pg10",
          "target": "pg10",
          "status": "passed",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "summary_sha256": "7dd5ef10f868a10985e0b82ad33629f8af8ba11be2824f2e98b59da55cfe669e",
          "raw_sha256": "365d4cc4c578a87ba6584daf52957335434f92cf584bf8711a9346d4a5199008",
          "case_manifest": {
            "id": "manifest.42702",
            "kind": "local_artifact",
            "source_role": "case_manifest",
            "sha256": "31c6d96bb62ae0e507e1a627429d53825a5ecf30942b6df342a6ec68aadec3de"
          },
          "snippet_registry": {
            "id": "snippet-registry.42702",
            "kind": "local_artifact",
            "source_role": "snippet_registry",
            "sha256": "b8d1edca0e090bda71ee447d0750e13f460c603a479818170bdfea34716bdf17"
          },
          "environment": {
            "TimeZone": "Etc/UTC",
            "backend_pid": 79,
            "binary": {},
            "connection_scope": "runner-owned localhost port",
            "current_user": "postgres",
            "docker": {
              "architecture": "arm64",
              "command": "/usr/local/bin/docker",
              "digest": "sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
              "id": "sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
              "image": "postgres:10",
              "image_created": "2022-06-23T09:11:18.374607054Z",
              "image_ref": "postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
              "log_destination": "csvlog",
              "os": "linux",
              "repo_digests": [
                "postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc"
              ]
            },
            "lc_messages": "en_US.utf8",
            "libpq_version": "18.6",
            "locale": "en_US.UTF-8",
            "log_destination": "csvlog",
            "log_error_verbosity": "verbose",
            "log_min_error_statement": "error",
            "log_min_messages": "error",
            "logging_collector": "on",
            "machine": "arm64",
            "max_connections": "100",
            "platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O",
            "psycopg_version": "3.3.5",
            "python_version": "3.14.6 (main, Jun 10 2026, 10:03:53) [Clang 21.0.0 (clang-2100.0.123.102)]",
            "server_encoding": "UTF8",
            "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
            "server_version_num": "100021",
            "target_kind": "pg10",
            "wal_level": "logical"
          },
          "observed": {
            "connection_autocommit": true,
            "diagnostic": {
              "column_name": null,
              "constraint_name": null,
              "context": null,
              "datatype_name": null,
              "exception_type": "AmbiguousColumn",
              "internal_position": null,
              "internal_query": null,
              "message_detail": null,
              "message_hint": null,
              "message_primary": "column reference \"id\" is ambiguous",
              "schema_name": null,
              "severity": "ERROR",
              "severity_nonlocalized": "ERROR",
              "source_file": "parse_relation.c",
              "source_function": "colNameToVar",
              "source_line": "791",
              "sqlstate": "42702",
              "statement_position": "8",
              "table_name": null,
              "text": "column reference \"id\" is ambiguous\nLINE 1: SELECT id FROM \"c42702_ambiguous_column\".\"left_table\", \"c427...\n               ^"
            },
            "failed_status": "IDLE",
            "repair_status": "IDLE",
            "repair_value": 1
          },
          "assertions": [
            {
              "expected": "42702",
              "name": "42702 SQLSTATE",
              "observed": "42702",
              "passed": true
            },
            {
              "expected": "ERROR",
              "name": "42702 ERROR severity",
              "observed": "ERROR",
              "passed": true
            },
            {
              "expected": "column reference \"id\" is ambiguous",
              "name": "42702 primary diagnostic",
              "observed": "column reference \"id\" is ambiguous",
              "passed": true
            },
            {
              "expected": "IDLE",
              "name": "ambiguous reference leaves session usable",
              "observed": "IDLE",
              "passed": true
            },
            {
              "expected": {
                "status": "IDLE",
                "value": 1
              },
              "name": "qualified reference repairs query",
              "observed": {
                "status": "IDLE",
                "value": 1
              },
              "passed": true
            }
          ],
          "cleanup": {
            "errors": [],
            "passed": true
          }
        }
      ]
    },
    {
      "sqlstate": "42703",
      "condition_name": "undefined_column",
      "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.calls.REL_10_23",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "00d16d3eb01b71ccf1b245c8f3102f9d0ec9f36fb02777b8dd1b99fcb263040c"
        },
        {
          "id": "src.undefined-column.18.6",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/parser/parse_relation.c",
          "sha256": "0d9c88f4a8def4c2d982c33f13208590e21ecf5e6f8cd9d7faa223dc771c9a9a",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/parser/parse_relation.c#L3854-L3859"
        },
        {
          "id": "src.undefined-column.10.23",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_10_23",
          "commit": "02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4",
          "path": "src/backend/parser/parse_relation.c",
          "sha256": "a34f40fc93fa5df0015fe5af5ee7761ccba2d16a791cda69ae07848ed27616b5",
          "url": "https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/parser/parse_relation.c#L3327-L3331"
        },
        {
          "id": "manifest.42703",
          "kind": "local_artifact",
          "source_role": "case_manifest",
          "sha256": "8034d1005edbc6093102a8e634bea65d7382b9061841da6bf781943a240caabb"
        },
        {
          "id": "snippet-registry.42703",
          "kind": "local_artifact",
          "source_role": "snippet_registry",
          "sha256": "c272ed58f6f58ea22a8174108eb8c07a16283d10f356441c5981ce233679763a"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "statement": "42703 is the undefined_column condition in Class 42.",
          "method": "Read fixed errcodes.txt and the locked catalogue metadata.",
          "limits": "Directory identity does not identify every backend path.",
          "sources": [
            "src.errcodes.18.6"
          ]
        },
        {
          "id": "mechanism.backend-path",
          "statement": "The fixed source calls for 42703 include the mechanism and message boundary selected for this page.",
          "method": "Trace the resolved REL_18_6 and REL_10_23 source call records at the locked commits.",
          "limits": "Other calls can use the same SQLSTATE with different context or dynamic fields.",
          "sources": [
            "src.undefined-column.18.6",
            "src.undefined-column.10.23"
          ]
        },
        {
          "id": "runtime.representative-case",
          "statement": "The selected undefined_column case passed on isolated PostgreSQL 18.6 and 10.21 targets.",
          "method": "Run the shared registry case and inspect structured diagnostics, state/recovery assertions, and cleanup.",
          "limits": "This covers the selected case and targets only; it does not generalize to all drivers or intermediate releases.",
          "sources": [
            "manifest.42703",
            "snippet-registry.42703"
          ],
          "runtime": [
            "runtime.42703-syntax-latest2.latest",
            "runtime.42703-syntax-pg10.pg10"
          ]
        },
        {
          "id": "versions.catalogue-boundary",
          "statement": "The locked catalogue records 42703; runtime scope is limited to the selected targets.",
          "method": "Read generated facts and selected summaries.",
          "limits": "Definition presence is not an exact behavioral introduction.",
          "sources": [
            "src.errcodes.18.6",
            "src.calls.REL_18_6",
            "src.calls.REL_10_23"
          ]
        }
      ],
      "messages": [
        {
          "id": "message.undefined-column",
          "primary_template": "column \"%s\" does not exist",
          "severity_source": "explicit ERROR",
          "sqlstate": "42703",
          "sources": [
            "src.undefined-column.18.6",
            "src.undefined-column.10.23"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "SQLSTATE directory identity",
          "status": "definition_only",
          "evidence_ids": [
            "identity.class-and-condition",
            "src.errcodes.18.6"
          ]
        },
        {
          "scope": "Fixed source message/mechanism",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "mechanism.backend-path",
            "src.undefined-column.18.6",
            "src.undefined-column.10.23"
          ]
        },
        {
          "scope": "Observed undefined_column on isolated targets",
          "status": "observed_runtime",
          "evidence_ids": [
            "runtime.representative-case",
            "snippet-registry.42703",
            "runtime.42703-syntax-latest2.latest",
            "runtime.42703-syntax-pg10.pg10"
          ]
        },
        {
          "scope": "Locked release presence and bounded version comparison",
          "status": "definition_only",
          "evidence_ids": [
            "versions.catalogue-boundary",
            "src.errcodes.18.6"
          ]
        }
      ],
      "runtime": [
        {
          "id": "runtime.42703-syntax-latest2.latest",
          "run_id": "42703-syntax-latest2",
          "target": "latest",
          "status": "passed",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "summary_sha256": "8534498cc6ae9888cdbaca81b6f71cb0bab74ce7a1440a7a821a74d97ac64bcd",
          "raw_sha256": "c64d56280f98f44ba414619546ff95719770ddee316bf91bfe81f682499aee62",
          "case_manifest": {
            "id": "manifest.42703",
            "kind": "local_artifact",
            "source_role": "case_manifest",
            "sha256": "8034d1005edbc6093102a8e634bea65d7382b9061841da6bf781943a240caabb"
          },
          "snippet_registry": {
            "id": "snippet-registry.42703",
            "kind": "local_artifact",
            "source_role": "snippet_registry",
            "sha256": "c272ed58f6f58ea22a8174108eb8c07a16283d10f356441c5981ce233679763a"
          },
          "environment": {
            "TimeZone": "Asia/Shanghai",
            "backend_pid": 3011,
            "binary": {
              "bindir": "/opt/homebrew/Cellar/postgresql@18/18.6/bin",
              "pg_config": "/opt/homebrew/bin/pg_config",
              "pg_config_version": "PostgreSQL 18.6 (Homebrew)",
              "postgres": "/opt/homebrew/Cellar/postgresql@18/18.6/bin/postgres"
            },
            "connection_scope": "runner-owned localhost port",
            "current_user": "runner",
            "docker": {},
            "lc_messages": "C",
            "libpq_version": "18.6",
            "locale": "en_US.UTF-8",
            "log_destination": "csvlog,jsonlog",
            "log_error_verbosity": "verbose",
            "log_min_error_statement": "error",
            "log_min_messages": "error",
            "logging_collector": "on",
            "machine": "arm64",
            "max_connections": "100",
            "platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O",
            "psycopg_version": "3.3.5",
            "python_version": "3.14.6 (main, Jun 10 2026, 10:03:53) [Clang 21.0.0 (clang-2100.0.123.102)]",
            "server_encoding": "UTF8",
            "server_version": "18.6 (Homebrew)",
            "server_version_num": "180006",
            "target_kind": "latest",
            "wal_level": "logical"
          },
          "observed": {
            "connection_autocommit": true,
            "diagnostic": {
              "column_name": null,
              "constraint_name": null,
              "context": null,
              "datatype_name": null,
              "exception_type": "UndefinedColumn",
              "internal_position": null,
              "internal_query": null,
              "message_detail": null,
              "message_hint": null,
              "message_primary": "column \"missing_column\" does not exist",
              "schema_name": null,
              "severity": "ERROR",
              "severity_nonlocalized": "ERROR",
              "source_file": "parse_relation.c",
              "source_function": "errorMissingColumn",
              "source_line": "3859",
              "sqlstate": "42703",
              "statement_position": "8",
              "table_name": null,
              "text": "column \"missing_column\" does not exist\nLINE 1: SELECT missing_column FROM \"c42703_undefined_column\".\"column...\n               ^"
            },
            "failed_status": "IDLE",
            "repair_status": "IDLE",
            "repair_value": 1
          },
          "assertions": [
            {
              "expected": "42703",
              "name": "42703 SQLSTATE",
              "observed": "42703",
              "passed": true
            },
            {
              "expected": "ERROR",
              "name": "42703 ERROR severity",
              "observed": "ERROR",
              "passed": true
            },
            {
              "expected": "column \"missing_column\" does not exist",
              "name": "42703 primary diagnostic",
              "observed": "column \"missing_column\" does not exist",
              "passed": true
            },
            {
              "expected": "IDLE",
              "name": "undefined column leaves session usable",
              "observed": "IDLE",
              "passed": true
            },
            {
              "expected": {
                "status": "IDLE",
                "value": 1
              },
              "name": "existing column repairs query",
              "observed": {
                "status": "IDLE",
                "value": 1
              },
              "passed": true
            }
          ],
          "cleanup": {
            "errors": [],
            "passed": true
          }
        },
        {
          "id": "runtime.42703-syntax-pg10.pg10",
          "run_id": "42703-syntax-pg10",
          "target": "pg10",
          "status": "passed",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "summary_sha256": "6fa32e82ef9b461054a9b50ff4ddc65b132cc2a9b564222e02d969bf04c050fc",
          "raw_sha256": "302a7e6973433e8769cbd14d73fa3bdef9f8bb63b686b161cbeffb0df63d290e",
          "case_manifest": {
            "id": "manifest.42703",
            "kind": "local_artifact",
            "source_role": "case_manifest",
            "sha256": "8034d1005edbc6093102a8e634bea65d7382b9061841da6bf781943a240caabb"
          },
          "snippet_registry": {
            "id": "snippet-registry.42703",
            "kind": "local_artifact",
            "source_role": "snippet_registry",
            "sha256": "c272ed58f6f58ea22a8174108eb8c07a16283d10f356441c5981ce233679763a"
          },
          "environment": {
            "TimeZone": "Etc/UTC",
            "backend_pid": 79,
            "binary": {},
            "connection_scope": "runner-owned localhost port",
            "current_user": "postgres",
            "docker": {
              "architecture": "arm64",
              "command": "/usr/local/bin/docker",
              "digest": "sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
              "id": "sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
              "image": "postgres:10",
              "image_created": "2022-06-23T09:11:18.374607054Z",
              "image_ref": "postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
              "log_destination": "csvlog",
              "os": "linux",
              "repo_digests": [
                "postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc"
              ]
            },
            "lc_messages": "en_US.utf8",
            "libpq_version": "18.6",
            "locale": "en_US.UTF-8",
            "log_destination": "csvlog",
            "log_error_verbosity": "verbose",
            "log_min_error_statement": "error",
            "log_min_messages": "error",
            "logging_collector": "on",
            "machine": "arm64",
            "max_connections": "100",
            "platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O",
            "psycopg_version": "3.3.5",
            "python_version": "3.14.6 (main, Jun 10 2026, 10:03:53) [Clang 21.0.0 (clang-2100.0.123.102)]",
            "server_encoding": "UTF8",
            "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
            "server_version_num": "100021",
            "target_kind": "pg10",
            "wal_level": "logical"
          },
          "observed": {
            "connection_autocommit": true,
            "diagnostic": {
              "column_name": null,
              "constraint_name": null,
              "context": null,
              "datatype_name": null,
              "exception_type": "UndefinedColumn",
              "internal_position": null,
              "internal_query": null,
              "message_detail": null,
              "message_hint": null,
              "message_primary": "column \"missing_column\" does not exist",
              "schema_name": null,
              "severity": "ERROR",
              "severity_nonlocalized": "ERROR",
              "source_file": "parse_relation.c",
              "source_function": "errorMissingColumn",
              "source_line": "3293",
              "sqlstate": "42703",
              "statement_position": "8",
              "table_name": null,
              "text": "column \"missing_column\" does not exist\nLINE 1: SELECT missing_column FROM \"c42703_undefined_column\".\"column...\n               ^"
            },
            "failed_status": "IDLE",
            "repair_status": "IDLE",
            "repair_value": 1
          },
          "assertions": [
            {
              "expected": "42703",
              "name": "42703 SQLSTATE",
              "observed": "42703",
              "passed": true
            },
            {
              "expected": "ERROR",
              "name": "42703 ERROR severity",
              "observed": "ERROR",
              "passed": true
            },
            {
              "expected": "column \"missing_column\" does not exist",
              "name": "42703 primary diagnostic",
              "observed": "column \"missing_column\" does not exist",
              "passed": true
            },
            {
              "expected": "IDLE",
              "name": "undefined column leaves session usable",
              "observed": "IDLE",
              "passed": true
            },
            {
              "expected": {
                "status": "IDLE",
                "value": 1
              },
              "name": "existing column repairs query",
              "observed": {
                "status": "IDLE",
                "value": 1
              },
              "passed": true
            }
          ],
          "cleanup": {
            "errors": [],
            "passed": true
          }
        }
      ]
    },
    {
      "sqlstate": "42704",
      "condition_name": "undefined_object",
      "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.calls.REL_10_23",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "00d16d3eb01b71ccf1b245c8f3102f9d0ec9f36fb02777b8dd1b99fcb263040c"
        },
        {
          "id": "src.missing-trigger.18.6",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/trigger.c",
          "sha256": "0a539af85b0de1a04779f92202e7bfc77d85ae6da1747ea32527c67f39084fbd",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/trigger.c#L1406-L1409"
        },
        {
          "id": "src.missing-trigger.10.23",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_10_23",
          "commit": "02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4",
          "path": "src/backend/commands/trigger.c",
          "sha256": "dac7cdcbe2df1a1bbc77daa23e808b0c81ba8891c9895f10e8b270a15316e225",
          "url": "https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/commands/trigger.c#L1383-L1386"
        },
        {
          "id": "src.undefined-type.18.6",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/catalog/objectaddress.c",
          "sha256": "fe4670d2401141761096077c6495dd1b7d6a0baf33c9b903f25baee2f88ffd1e",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/catalog/objectaddress.c#L1618-L1624"
        },
        {
          "id": "src.undefined-type.10.23",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_10_23",
          "commit": "02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4",
          "path": "src/backend/catalog/objectaddress.c",
          "sha256": "729d30e50cea059ccfe13491fdc5f997ff98c227795693bf166a163925beb663",
          "url": "https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/catalog/objectaddress.c#L1493-L1509"
        },
        {
          "id": "src.undefined-role.18.6",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/user.c",
          "sha256": "aa8769a2577fff287301d6c82169262cca328515ae940d5a2be4b3e8c21617ed",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/user.c#L1129-L1135"
        },
        {
          "id": "src.undefined-role.10.23",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_10_23",
          "commit": "02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4",
          "path": "src/backend/commands/user.c",
          "sha256": "9fc68a5a18c4bb5388cc817d2f3f2fcdc64f2752eaa429f78f54b0b443fb59ec",
          "url": "https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/commands/user.c#L1017-L1023"
        },
        {
          "id": "src.undefined-constraint.18.6",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/catalog/pg_constraint.c",
          "sha256": "0aa324acd355da955f8eb6cec17f1a0138277a8bebd2c6e999cd2a603d3bfa01",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/catalog/pg_constraint.c#L1218-L1238"
        },
        {
          "id": "src.undefined-constraint.10.23",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_10_23",
          "commit": "02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4",
          "path": "src/backend/catalog/pg_constraint.c",
          "sha256": "c90dff2d1d863e6b43102d762cec6e08b6c4ba40458045b525a14b49865d8a65",
          "url": "https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/catalog/pg_constraint.c#L781-L801"
        },
        {
          "id": "src.undefined-opclass.18.6",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/opclasscmds.c",
          "sha256": "f28ac0580c805553724dc623dd4e20f32de1a84db637e6ac3c6e3d296bd2fae5",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/opclasscmds.c#L145-L207"
        },
        {
          "id": "src.undefined-opclass.10.23",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_10_23",
          "commit": "02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4",
          "path": "src/backend/commands/opclasscmds.c",
          "sha256": "85c646706908d13dc449bcffa6690d6ead8d326498051fef6b08f817347fa947",
          "url": "https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/commands/opclasscmds.c#L145-L207"
        },
        {
          "id": "manifest.42704",
          "kind": "local_artifact",
          "source_role": "case_manifest",
          "sha256": "ac45b2c35a40efef31fd9dbf6bf283723aec24fcf5ad58841b9684a3b3412b89"
        },
        {
          "id": "snippet-registry.42704",
          "kind": "local_artifact",
          "source_role": "snippet_registry",
          "sha256": "a75d3b1e067ecb419473d902d0eeae84591441a616b12fbfd796f6c4e3feb336"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "statement": "42704 is the undefined_object condition in Class 42.",
          "method": "Read fixed errcodes.txt and the locked catalogue metadata.",
          "limits": "Directory identity does not identify every backend path.",
          "sources": [
            "src.errcodes.18.6"
          ]
        },
        {
          "id": "mechanism.backend-path",
          "statement": "The fixed source calls for 42704 include the mechanism and message boundary selected for this page.",
          "method": "Trace the resolved REL_18_6 and REL_10_23 source call records at the locked commits.",
          "limits": "Other calls can use the same SQLSTATE with different context or dynamic fields.",
          "sources": [
            "src.missing-trigger.18.6",
            "src.missing-trigger.10.23",
            "src.undefined-type.18.6",
            "src.undefined-type.10.23",
            "src.undefined-role.18.6",
            "src.undefined-role.10.23",
            "src.undefined-constraint.18.6",
            "src.undefined-constraint.10.23",
            "src.undefined-opclass.18.6",
            "src.undefined-opclass.10.23"
          ]
        },
        {
          "id": "mechanism.object-resolution-branches",
          "statement": "Fixed 42704 producers resolve different object categories at different lookup points, including type, role, relation constraint, and access-method operator class; the selected runtime covers only the relation-scoped trigger branch.",
          "method": "Read the complete fixed lookup functions and their undefined-object error branches at REL_18_6 and REL_10_23.",
          "limits": "Only missing_trigger has an accepted natural runtime in this batch; the other messages are source-confirmed boundaries.",
          "sources": [
            "src.undefined-type.18.6",
            "src.undefined-type.10.23",
            "src.undefined-role.18.6",
            "src.undefined-role.10.23",
            "src.undefined-constraint.18.6",
            "src.undefined-constraint.10.23",
            "src.undefined-opclass.18.6",
            "src.undefined-opclass.10.23"
          ]
        },
        {
          "id": "runtime.representative-case",
          "statement": "The selected missing_trigger case passed on isolated PostgreSQL 18.6 and 10.21 targets.",
          "method": "Run the shared registry case and inspect structured diagnostics, state/recovery assertions, and cleanup.",
          "limits": "This covers the selected case and targets only; it does not generalize to all drivers or intermediate releases.",
          "sources": [
            "manifest.42704",
            "snippet-registry.42704"
          ],
          "runtime": [
            "runtime.42704-syntax-latest1.latest",
            "runtime.42704-syntax-pg10.pg10"
          ]
        },
        {
          "id": "versions.catalogue-boundary",
          "statement": "The locked catalogue records 42704; runtime scope is limited to the selected targets.",
          "method": "Read generated facts and selected summaries.",
          "limits": "Definition presence is not an exact behavioral introduction.",
          "sources": [
            "src.errcodes.18.6",
            "src.calls.REL_18_6",
            "src.calls.REL_10_23"
          ]
        }
      ],
      "messages": [
        {
          "id": "message.missing-trigger",
          "primary_template": "trigger \"%s\" for table \"%s\" does not exist",
          "severity_source": "explicit ERROR",
          "sqlstate": "42704",
          "sources": [
            "src.missing-trigger.18.6",
            "src.missing-trigger.10.23"
          ]
        },
        {
          "id": "message.undefined-type",
          "primary_template": "type \"%s\" does not exist",
          "severity_source": "explicit ERROR",
          "sqlstate": "42704",
          "limits": "Source-only type lookup branch; no natural runtime is claimed.",
          "sources": [
            "src.undefined-type.18.6",
            "src.undefined-type.10.23"
          ]
        },
        {
          "id": "message.undefined-role",
          "primary_template": "role \"%s\" does not exist",
          "severity_source": "explicit ERROR",
          "sqlstate": "42704",
          "limits": "Source-only DROP ROLE lookup branch; NOTICE missing_ok paths are not selected here.",
          "sources": [
            "src.undefined-role.18.6",
            "src.undefined-role.10.23"
          ]
        },
        {
          "id": "message.undefined-constraint",
          "primary_template": "constraint \"%s\" for table \"%s\" does not exist",
          "severity_source": "explicit ERROR",
          "sqlstate": "42704",
          "limits": "Source-only relation constraint lookup branch; no natural runtime is claimed.",
          "sources": [
            "src.undefined-constraint.18.6",
            "src.undefined-constraint.10.23"
          ]
        },
        {
          "id": "message.undefined-opclass",
          "primary_template": "operator class \"%s\" does not exist for access method \"%s\"",
          "severity_source": "explicit ERROR",
          "sqlstate": "42704",
          "limits": "Source-only access-method/operator-class lookup branch; no natural runtime is claimed.",
          "sources": [
            "src.undefined-opclass.18.6",
            "src.undefined-opclass.10.23"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "SQLSTATE directory identity",
          "status": "definition_only",
          "evidence_ids": [
            "identity.class-and-condition",
            "src.errcodes.18.6"
          ]
        },
        {
          "scope": "Fixed source message/mechanism",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "mechanism.backend-path",
            "src.missing-trigger.18.6",
            "src.missing-trigger.10.23"
          ]
        },
        {
          "scope": "Observed missing_trigger on isolated targets",
          "status": "observed_runtime",
          "evidence_ids": [
            "runtime.representative-case",
            "snippet-registry.42704",
            "runtime.42704-syntax-latest1.latest",
            "runtime.42704-syntax-pg10.pg10"
          ]
        },
        {
          "scope": "Locked release presence and bounded version comparison",
          "status": "definition_only",
          "evidence_ids": [
            "versions.catalogue-boundary",
            "src.errcodes.18.6"
          ]
        }
      ],
      "runtime": [
        {
          "id": "runtime.42704-syntax-latest1.latest",
          "run_id": "42704-syntax-latest1",
          "target": "latest",
          "status": "passed",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "summary_sha256": "e1789ad68db707a3ed5682ba37713a958186953de2dce5ade696f5120abace9e",
          "raw_sha256": "fba087ee2fedf564f2e7302b3c293bc31d4846b6a40a07872156c4dc9b0cdbba",
          "case_manifest": {
            "id": "manifest.42704",
            "kind": "local_artifact",
            "source_role": "case_manifest",
            "sha256": "ac45b2c35a40efef31fd9dbf6bf283723aec24fcf5ad58841b9684a3b3412b89"
          },
          "snippet_registry": {
            "id": "snippet-registry.42704",
            "kind": "local_artifact",
            "source_role": "snippet_registry",
            "sha256": "a75d3b1e067ecb419473d902d0eeae84591441a616b12fbfd796f6c4e3feb336"
          },
          "environment": {
            "TimeZone": "Asia/Shanghai",
            "backend_pid": 1721,
            "binary": {
              "bindir": "/opt/homebrew/Cellar/postgresql@18/18.6/bin",
              "pg_config": "/opt/homebrew/bin/pg_config",
              "pg_config_version": "PostgreSQL 18.6 (Homebrew)",
              "postgres": "/opt/homebrew/Cellar/postgresql@18/18.6/bin/postgres"
            },
            "connection_scope": "runner-owned localhost port",
            "current_user": "runner",
            "docker": {},
            "lc_messages": "C",
            "libpq_version": "18.6",
            "locale": "en_US.UTF-8",
            "log_destination": "csvlog,jsonlog",
            "log_error_verbosity": "verbose",
            "log_min_error_statement": "error",
            "log_min_messages": "error",
            "logging_collector": "on",
            "machine": "arm64",
            "max_connections": "100",
            "platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O",
            "psycopg_version": "3.3.5",
            "python_version": "3.14.6 (main, Jun 10 2026, 10:03:53) [Clang 21.0.0 (clang-2100.0.123.102)]",
            "server_encoding": "UTF8",
            "server_version": "18.6 (Homebrew)",
            "server_version_num": "180006",
            "target_kind": "latest",
            "wal_level": "logical"
          },
          "observed": {
            "connection_autocommit": true,
            "diagnostic": {
              "column_name": null,
              "constraint_name": null,
              "context": null,
              "datatype_name": null,
              "exception_type": "UndefinedObject",
              "internal_position": null,
              "internal_query": null,
              "message_detail": null,
              "message_hint": null,
              "message_primary": "trigger \"missing_trigger\" for table \"trigger_table\" does not exist",
              "schema_name": null,
              "severity": "ERROR",
              "severity_nonlocalized": "ERROR",
              "source_file": "trigger.c",
              "source_function": "get_trigger_oid",
              "source_line": "1409",
              "sqlstate": "42704",
              "statement_position": null,
              "table_name": null,
              "text": "trigger \"missing_trigger\" for table \"trigger_table\" does not exist"
            },
            "failed_status": "IDLE",
            "repair_status": "IDLE",
            "trigger_count": 0
          },
          "assertions": [
            {
              "expected": "42704",
              "name": "42704 SQLSTATE",
              "observed": "42704",
              "passed": true
            },
            {
              "expected": "ERROR",
              "name": "42704 ERROR severity",
              "observed": "ERROR",
              "passed": true
            },
            {
              "expected": "trigger ... does not exist",
              "name": "missing-trigger diagnostic names trigger",
              "observed": "trigger \"missing_trigger\" for table \"trigger_table\" does not exist",
              "passed": true
            },
            {
              "expected": "IDLE",
              "name": "missing trigger leaves session usable",
              "observed": "IDLE",
              "passed": true
            },
            {
              "expected": {
                "status": "IDLE",
                "triggers": 0
              },
              "name": "real trigger lifecycle repairs object path",
              "observed": {
                "status": "IDLE",
                "triggers": 0
              },
              "passed": true
            }
          ],
          "cleanup": {
            "errors": [],
            "passed": true
          }
        },
        {
          "id": "runtime.42704-syntax-pg10.pg10",
          "run_id": "42704-syntax-pg10",
          "target": "pg10",
          "status": "passed",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "summary_sha256": "03a259238ea17215a8bec2bee755e4389e863b75dcb0cd25474122c61e7241de",
          "raw_sha256": "509e72e6a18b1718654b791618f6b2f91f0aa2aed8800ecf797e6c4157846c80",
          "case_manifest": {
            "id": "manifest.42704",
            "kind": "local_artifact",
            "source_role": "case_manifest",
            "sha256": "ac45b2c35a40efef31fd9dbf6bf283723aec24fcf5ad58841b9684a3b3412b89"
          },
          "snippet_registry": {
            "id": "snippet-registry.42704",
            "kind": "local_artifact",
            "source_role": "snippet_registry",
            "sha256": "a75d3b1e067ecb419473d902d0eeae84591441a616b12fbfd796f6c4e3feb336"
          },
          "environment": {
            "TimeZone": "Etc/UTC",
            "backend_pid": 78,
            "binary": {},
            "connection_scope": "runner-owned localhost port",
            "current_user": "postgres",
            "docker": {
              "architecture": "arm64",
              "command": "/usr/local/bin/docker",
              "digest": "sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
              "id": "sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
              "image": "postgres:10",
              "image_created": "2022-06-23T09:11:18.374607054Z",
              "image_ref": "postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
              "log_destination": "csvlog",
              "os": "linux",
              "repo_digests": [
                "postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc"
              ]
            },
            "lc_messages": "en_US.utf8",
            "libpq_version": "18.6",
            "locale": "en_US.UTF-8",
            "log_destination": "csvlog",
            "log_error_verbosity": "verbose",
            "log_min_error_statement": "error",
            "log_min_messages": "error",
            "logging_collector": "on",
            "machine": "arm64",
            "max_connections": "100",
            "platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O",
            "psycopg_version": "3.3.5",
            "python_version": "3.14.6 (main, Jun 10 2026, 10:03:53) [Clang 21.0.0 (clang-2100.0.123.102)]",
            "server_encoding": "UTF8",
            "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
            "server_version_num": "100021",
            "target_kind": "pg10",
            "wal_level": "logical"
          },
          "observed": {
            "connection_autocommit": true,
            "diagnostic": {
              "column_name": null,
              "constraint_name": null,
              "context": null,
              "datatype_name": null,
              "exception_type": "UndefinedObject",
              "internal_position": null,
              "internal_query": null,
              "message_detail": null,
              "message_hint": null,
              "message_primary": "trigger \"missing_trigger\" for table \"trigger_table\" does not exist",
              "schema_name": null,
              "severity": "ERROR",
              "severity_nonlocalized": "ERROR",
              "source_file": "trigger.c",
              "source_function": "get_trigger_oid",
              "source_line": "1386",
              "sqlstate": "42704",
              "statement_position": null,
              "table_name": null,
              "text": "trigger \"missing_trigger\" for table \"trigger_table\" does not exist"
            },
            "failed_status": "IDLE",
            "repair_status": "IDLE",
            "trigger_count": 0
          },
          "assertions": [
            {
              "expected": "42704",
              "name": "42704 SQLSTATE",
              "observed": "42704",
              "passed": true
            },
            {
              "expected": "ERROR",
              "name": "42704 ERROR severity",
              "observed": "ERROR",
              "passed": true
            },
            {
              "expected": "trigger ... does not exist",
              "name": "missing-trigger diagnostic names trigger",
              "observed": "trigger \"missing_trigger\" for table \"trigger_table\" does not exist",
              "passed": true
            },
            {
              "expected": "IDLE",
              "name": "missing trigger leaves session usable",
              "observed": "IDLE",
              "passed": true
            },
            {
              "expected": {
                "status": "IDLE",
                "triggers": 0
              },
              "name": "real trigger lifecycle repairs object path",
              "observed": {
                "status": "IDLE",
                "triggers": 0
              },
              "passed": true
            }
          ],
          "cleanup": {
            "errors": [],
            "passed": true
          }
        }
      ]
    },
    {
      "sqlstate": "42710",
      "condition_name": "duplicate_object",
      "sources": [
        {
          "id": "src.errcodes.REL_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.calls.REL_10_23",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "00d16d3eb01b71ccf1b245c8f3102f9d0ec9f36fb02777b8dd1b99fcb263040c"
        },
        {
          "id": "src.duplicate-enum.18.6",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/typecmds.c",
          "sha256": "60d1e9754646e100f6b74aa367ad8c2c52386c400df721707423d329209c47eb",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/typecmds.c#L1219-L1221"
        },
        {
          "id": "src.duplicate-enum.10.23",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_10_23",
          "commit": "02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4",
          "path": "src/backend/commands/typecmds.c",
          "sha256": "fa1dfb766f7a3117eb677461ede774d5ba7c25324cbbd2a200435fa9c9c8e863",
          "url": "https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/commands/typecmds.c#L1139-L1141"
        },
        {
          "id": "manifest.42710",
          "kind": "local_artifact",
          "source_role": "case_manifest",
          "sha256": "e1a0995c62ad92498ded1bd168d5473c915f688f4e932ea5d1ead43323444ebb"
        },
        {
          "id": "snippet-registry.42710",
          "kind": "local_artifact",
          "source_role": "snippet_registry",
          "sha256": "4dbc1b9fe7efb15ec5ff4bcb2a31e9335c9e9df1fdd51ab494917007f52ce3c5"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "statement": "42710 is the duplicate_object condition in Class 42.",
          "method": "Read fixed errcodes.txt and locked catalogue metadata.",
          "limits": "Identity does not identify every backend call that can reuse this SQLSTATE.",
          "sources": [
            "src.errcodes.REL_18_6"
          ]
        },
        {
          "id": "mechanism.selected-source-path",
          "statement": "The selected duplicate_object_type follows a resolved PostgreSQL source-call group; other branches can use different dynamic fields.",
          "method": "Trace the REL_18_6 and REL_10_23 source-call records at the locked commits.",
          "limits": "This is one mechanism boundary, not an exhaustive inventory of the code.",
          "sources": [
            "src.duplicate-enum.18.6",
            "src.duplicate-enum.10.23"
          ]
        },
        {
          "id": "mechanism.reader-boundary",
          "statement": "ENUM type definitions collide by name; inspect pg_type/pg_namespace and use a deliberate distinct name.",
          "method": "Combine the selected source call, registry SQL, and passed structured assertions.",
          "limits": "The claim describes the selected path and does not generalize to every branch sharing this SQLSTATE.",
          "sources": [
            "src.duplicate-enum.18.6",
            "src.duplicate-enum.10.23",
            "snippet-registry.42710"
          ]
        },
        {
          "id": "runtime.representative-case",
          "statement": "The selected duplicate_object_type passed on isolated PostgreSQL 18.6 and 10.21 targets.",
          "method": "Run the shared SQL registry and inspect SQLSTATE, severity, state, repair, cleanup, and target stop.",
          "limits": "Scope is limited to these statements, psycopg, and two versions.",
          "sources": [
            "manifest.42710",
            "snippet-registry.42710"
          ],
          "runtime": [
            "runtime.syntax2-42710-latest2.latest",
            "runtime.syntax2-42710-pg10.pg10"
          ]
        },
        {
          "id": "versions.catalogue-boundary",
          "statement": "The locked catalogue records 42710 from the 7.4 presence bound through the listed snapshots; runtime scope is 18.6 and 10.21.",
          "method": "Read generated facts, fixed calls, and selected summaries.",
          "limits": "Definition presence is not an exact behavioral introduction; two runtime versions do not prove every intermediate behavior.",
          "sources": [
            "src.errcodes.REL_18_6",
            "src.calls.REL_18_6",
            "src.calls.REL_10_23"
          ]
        }
      ],
      "messages": [
        {
          "id": "message.duplicate_object_type",
          "primary_template": "type \"%s\" already exists",
          "severity_source": "explicit ERROR",
          "sqlstate": "42710",
          "sources": [
            "src.duplicate-enum.18.6",
            "src.duplicate-enum.10.23"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "selected-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "claim.mechanism.selected-source-path",
            "message.duplicate_object_type"
          ]
        },
        {
          "scope": "selected-case-18.6-and-10.21",
          "status": "observed_runtime",
          "evidence_ids": [
            "runtime.syntax2-42710-latest2.latest",
            "runtime.syntax2-42710-pg10.pg10",
            "claim.runtime.representative-case"
          ]
        }
      ],
      "runtime": [
        {
          "id": "runtime.syntax2-42710-latest2.latest",
          "run_id": "syntax2-42710-latest2",
          "target": "latest",
          "status": "passed",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "summary_sha256": "dba3c477be2c7d8c1c6e9256f75617cb8f300c761981c88f5905c9af53fb4a33",
          "raw_sha256": "8ea85c4db8480cc96261acfd58ac9ff67c0f95ea73d5ca59889c909883829782",
          "case_manifest": {
            "id": "manifest.42710",
            "kind": "local_artifact",
            "source_role": "case_manifest",
            "sha256": "e1a0995c62ad92498ded1bd168d5473c915f688f4e932ea5d1ead43323444ebb"
          },
          "snippet_registry": {
            "id": "snippet-registry.42710",
            "kind": "local_artifact",
            "source_role": "snippet_registry",
            "sha256": "4dbc1b9fe7efb15ec5ff4bcb2a31e9335c9e9df1fdd51ab494917007f52ce3c5"
          },
          "environment": {
            "TimeZone": "Asia/Shanghai",
            "backend_pid": 29705,
            "binary": {
              "bindir": "/opt/homebrew/Cellar/postgresql@18/18.6/bin",
              "pg_config": "/opt/homebrew/bin/pg_config",
              "pg_config_version": "PostgreSQL 18.6 (Homebrew)",
              "postgres": "/opt/homebrew/Cellar/postgresql@18/18.6/bin/postgres"
            },
            "connection_scope": "runner-owned localhost port",
            "current_user": "runner",
            "docker": {},
            "lc_messages": "C",
            "libpq_version": "18.6",
            "locale": "C.UTF-8",
            "log_destination": "csvlog,jsonlog",
            "log_error_verbosity": "verbose",
            "log_min_error_statement": "error",
            "log_min_messages": "error",
            "logging_collector": "on",
            "machine": "arm64",
            "max_connections": "100",
            "platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O",
            "psycopg_version": "3.3.5",
            "python_version": "3.14.6 (main, Jun 10 2026, 10:03:53) [Clang 21.0.0 (clang-2100.0.123.102)]",
            "server_encoding": "UTF8",
            "server_version": "18.6 (Homebrew)",
            "server_version_num": "180006",
            "target_kind": "latest",
            "wal_level": "logical"
          },
          "cases": [
            "duplicate_object_type"
          ],
          "observed": {
            "connection_autocommit": true,
            "diagnostic": {
              "column_name": null,
              "constraint_name": null,
              "context": null,
              "datatype_name": null,
              "exception_type": "DuplicateObject",
              "internal_position": null,
              "internal_query": null,
              "message_detail": null,
              "message_hint": null,
              "message_primary": "type \"duplicate_object_type\" already exists",
              "schema_name": null,
              "severity": "ERROR",
              "severity_nonlocalized": "ERROR",
              "source_file": "typecmds.c",
              "source_function": "DefineEnum",
              "source_line": "1221",
              "sqlstate": "42710",
              "statement_position": null,
              "table_name": null,
              "text": "type \"duplicate_object_type\" already exists"
            },
            "failed_status": "IDLE",
            "repair_status": "IDLE",
            "type_count": 2
          },
          "assertions": [
            {
              "expected": "42710",
              "name": "42710 SQLSTATE",
              "observed": "42710",
              "passed": true
            },
            {
              "expected": "ERROR",
              "name": "42710 ERROR severity",
              "observed": "ERROR",
              "passed": true
            },
            {
              "expected": "type \"duplicate_object_type\" already exists",
              "name": "42710 primary diagnostic",
              "observed": "type \"duplicate_object_type\" already exists",
              "passed": true
            },
            {
              "expected": "IDLE",
              "name": "duplicate type leaves autocommit session usable",
              "observed": "IDLE",
              "passed": true
            },
            {
              "expected": {
                "status": "IDLE",
                "types": 2
              },
              "name": "nonconflicting type name repairs definition",
              "observed": {
                "error": true,
                "status": "IDLE",
                "types": 2
              },
              "passed": true
            }
          ],
          "cleanup": {
            "errors": [],
            "passed": true
          },
          "target_stop": {
            "argv": [
              "/opt/homebrew/Cellar/postgresql@18/18.6/bin/pg_ctl",
              "-D",
              "<local runtime artifact>",
              "-m",
              "fast",
              "-w",
              "stop"
            ],
            "elapsed_seconds": 0.112,
            "returncode": 0,
            "stderr": "",
            "stdout": "waiting for server to shut down.... done\nserver stopped\n"
          }
        },
        {
          "id": "runtime.syntax2-42710-pg10.pg10",
          "run_id": "syntax2-42710-pg10",
          "target": "pg10",
          "status": "passed",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "summary_sha256": "f334cd92f6f8b68f32cf54c2f2c94733e9560d6c3a4a6a655ebcbda633e73ce5",
          "raw_sha256": "a66df6911c3b1985953a097e11cdd5015be79742b4baf3e295bc6cf5e194d2b4",
          "case_manifest": {
            "id": "manifest.42710",
            "kind": "local_artifact",
            "source_role": "case_manifest",
            "sha256": "e1a0995c62ad92498ded1bd168d5473c915f688f4e932ea5d1ead43323444ebb"
          },
          "snippet_registry": {
            "id": "snippet-registry.42710",
            "kind": "local_artifact",
            "source_role": "snippet_registry",
            "sha256": "4dbc1b9fe7efb15ec5ff4bcb2a31e9335c9e9df1fdd51ab494917007f52ce3c5"
          },
          "environment": {
            "TimeZone": "Etc/UTC",
            "backend_pid": 79,
            "binary": {},
            "connection_scope": "runner-owned localhost port",
            "current_user": "postgres",
            "docker": {
              "architecture": "arm64",
              "command": "/usr/local/bin/docker",
              "digest": "sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
              "id": "sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
              "image": "postgres:10",
              "image_created": "2022-06-23T09:11:18.374607054Z",
              "image_ref": "postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
              "log_destination": "csvlog",
              "os": "linux",
              "repo_digests": [
                "postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc"
              ]
            },
            "lc_messages": "en_US.utf8",
            "libpq_version": "18.6",
            "locale": "C.UTF-8",
            "log_destination": "csvlog",
            "log_error_verbosity": "verbose",
            "log_min_error_statement": "error",
            "log_min_messages": "error",
            "logging_collector": "on",
            "machine": "arm64",
            "max_connections": "100",
            "platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O",
            "psycopg_version": "3.3.5",
            "python_version": "3.14.6 (main, Jun 10 2026, 10:03:53) [Clang 21.0.0 (clang-2100.0.123.102)]",
            "server_encoding": "UTF8",
            "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
            "server_version_num": "100021",
            "target_kind": "pg10",
            "wal_level": "logical"
          },
          "cases": [
            "duplicate_object_type"
          ],
          "observed": {
            "connection_autocommit": true,
            "diagnostic": {
              "column_name": null,
              "constraint_name": null,
              "context": null,
              "datatype_name": null,
              "exception_type": "DuplicateObject",
              "internal_position": null,
              "internal_query": null,
              "message_detail": null,
              "message_hint": null,
              "message_primary": "type \"duplicate_object_type\" already exists",
              "schema_name": null,
              "severity": "ERROR",
              "severity_nonlocalized": "ERROR",
              "source_file": "typecmds.c",
              "source_function": "DefineEnum",
              "source_line": "1141",
              "sqlstate": "42710",
              "statement_position": null,
              "table_name": null,
              "text": "type \"duplicate_object_type\" already exists"
            },
            "failed_status": "IDLE",
            "repair_status": "IDLE",
            "type_count": 2
          },
          "assertions": [
            {
              "expected": "42710",
              "name": "42710 SQLSTATE",
              "observed": "42710",
              "passed": true
            },
            {
              "expected": "ERROR",
              "name": "42710 ERROR severity",
              "observed": "ERROR",
              "passed": true
            },
            {
              "expected": "type \"duplicate_object_type\" already exists",
              "name": "42710 primary diagnostic",
              "observed": "type \"duplicate_object_type\" already exists",
              "passed": true
            },
            {
              "expected": "IDLE",
              "name": "duplicate type leaves autocommit session usable",
              "observed": "IDLE",
              "passed": true
            },
            {
              "expected": {
                "status": "IDLE",
                "types": 2
              },
              "name": "nonconflicting type name repairs definition",
              "observed": {
                "error": true,
                "status": "IDLE",
                "types": 2
              },
              "passed": true
            }
          ],
          "cleanup": {
            "errors": [],
            "passed": true
          },
          "target_stop": {
            "cleanup": {
              "argv": [
                "/usr/local/bin/docker",
                "rm",
                "-f",
                "-v",
                "sqlstate42710_syntax242710pg10_pg10"
              ],
              "elapsed_seconds": 0.284,
              "returncode": 0,
              "stderr": "",
              "stdout": "sqlstate42710_syntax242710pg10_pg10\n"
            },
            "inspect": {
              "argv": [
                "/usr/local/bin/docker",
                "inspect",
                "sqlstate42710_syntax242710pg10_pg10"
              ],
              "elapsed_seconds": 0.019,
              "returncode": 0,
              "stderr": "",
              "stdout": "[\n    {\n        \"Id\": \"eae5e7ed2ee2a1ce3d4c7adc62ca55b40e46da008f5754aa3335cacf714ddc8c\",\n        \"Created\": \"2026-09-09T16:39:55.588704797Z\",\n        \"Path\": \"docker-entrypoint.sh\",\n        \"Args\": [\n            \"postgres\",\n            \"-c\",\n            \"listen_addresses=*\",\n            \"-c\",\n            \"log_destination=csvlog\",\n            \"-c\",\n            \"logging_collector=on\",\n            \"-c\",\n            \"log_directory=log\",\n            \"-c\",\n            \"log_filename=postgresql-%Y%m%d%H%M%S.log\",\n            \"-c\",\n            \"log_min_messages=error\",\n            \"-c\",\n            \"log_min_error_statement=error\",\n            \"-c\",\n            \"log_error_verbosity=verbose\",\n            \"-c\",\n            \"wal_level=logical\",\n            \"-c\",\n            \"max_wal_senders=10\",\n            \"-c\",\n            \"max_replication_slots=10\"\n        ],\n        \"State\": {\n            \"Status\": \"running\",\n            \"Running\": true,\n            \"Paused\": false,\n            \"Restarting\": false,\n            \"OOMKilled\": false,\n            \"Dead\": false,\n            \"Pid\": 61978,\n            \"ExitCode\": 0,\n            \"Error\": \"\",\n            \"StartedAt\": \"2026-09-09T16:39:55.676537255Z\",\n            \"FinishedAt\": \"0001-01-01T00:00:00Z\"\n        },\n        \"Image\": \"sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc\",\n        \"ResolvConfPath\": \"/var/lib/docker/containers/eae5e7ed2ee2a1ce3d4c7adc62ca55b40e46da008f5754aa3335cacf714ddc8c/resolv.conf\",\n        \"HostnamePath\": \"/var/lib/docker/containers/eae5e7ed2ee2a1ce3d4c7adc62ca55b40e46da008f5754aa3335cacf714ddc8c/hostname\",\n        \"HostsPath\": \"/var/lib/docker/containers/eae5e7ed2ee2a1ce3d4c7adc62ca55b40e46da008f5754aa3335cacf714ddc8c/hosts\",\n        \"LogPath\": \"/var/lib/docker/containers/eae5e7ed2ee2a1ce3d4c7adc62ca55b40e46da008f5754aa3335cacf714ddc8c/eae5e7ed2ee2a1ce3d4c7adc62ca55b40e46da008f5754aa3335cacf714ddc8c-json.log\",\n        \"Name\": \"/sqlstate42710_syntax242710pg10_pg10\",\n        \"RestartCount\": 0,\n        \"Driver\": \"overlayfs\",\n        \"Platform\": \"linux\",\n        \"MountLabel\": \"\",\n        \"ProcessLabel\": \"\",\n        \"AppArmorProfile\": \"\",\n        \"ExecIDs\": null,\n        \"HostConfig\": {\n            \"Binds\": null,\n            \"ContainerIDFile\": \"\",\n            \"LogConfig\": {\n                \"Type\": \"json-file\",\n                \"Config\": {}\n            },\n            \"NetworkMode\": \"bridge\",\n            \"PortBindings\": {\n                \"5432/tcp\": [\n                    {\n                        \"HostIp\": \"127.0.0.1\",\n                        \"HostPort\": \"\"\n                    }\n                ]\n            },\n            \"RestartPolicy\": {\n                \"Name\": \"no\",\n                \"MaximumRetryCount\": 0\n            },\n            \"AutoRemove\": false,\n            \"VolumeDriver\": \"\",\n            \"VolumesFrom\": null,\n            \"ConsoleSize\": [\n                0,\n                0\n            ],\n            \"CapAdd\": null,\n            \"CapDrop\": null,\n            \"CgroupnsMode\": \"private\",\n            \"Dns\": null,\n            \"DnsOptions\": [],\n            \"DnsSearch\": [],\n            \"ExtraHosts\": null,\n            \"GroupAdd\": null,\n            \"IpcMode\": \"private\",\n            \"Cgroup\": \"\",\n            \"Links\": null,\n            \"OomScoreAdj\": 0,\n            \"PidMode\": \"\",\n            \"Privileged\": false,\n            \"PublishAllPorts\": false,\n            \"ReadonlyRootfs\": false,\n            \"SecurityOpt\": null,\n            \"UTSMode\": \"\",\n            \"UsernsMode\": \"\",\n            \"ShmSize\": 67108864,\n            \"Runtime\": \"runc\",\n            \"Isolation\": \"\",\n            \"CpuShares\": 0,\n            \"Memory\": 0,\n            \"NanoCpus\": 0,\n            \"CgroupParent\": \"\",\n            \"BlkioWeight\": 0,\n            \"BlkioWeightDevice\": [],\n            \"BlkioDeviceReadBps\": [],\n            \"BlkioDeviceWriteBps\": [],\n            \"BlkioDeviceReadIOps\": [],\n            \"BlkioDeviceWriteIOps\": [],\n            \"CpuPeriod\": 0,\n            \"CpuQuota\": 0,\n            \"CpuRealtimePeriod\": 0,\n            \"CpuRealtimeRuntime\": 0,\n            \"CpusetCpus\": \"\",\n            \"CpusetMems\": \"\",\n            \"Devices\": [],\n            \"DeviceCgroupRules\": null,\n            \"DeviceRequests\": null,\n            \"MemoryReservation\": 0,\n            \"MemorySwap\": 0,\n            \"MemorySwappiness\": null,\n            \"OomKillDisable\": null,\n            \"PidsLimit\": null,\n            \"Ulimits\": [],\n            \"CpuCount\": 0,\n            \"CpuPercent\": 0,\n            \"IOMaximumIOps\": 0,\n            \"IOMaximumBandwidth\": 0,\n            \"MaskedPaths\": [\n                \"/proc/acpi\",\n                \"/proc/asound\",\n                \"/proc/interrupts\",\n                \"/proc/kcore\",\n                \"/proc/keys\",\n                \"/proc/latency_stats\",\n                \"/proc/sched_debug\",\n                \"/proc/scsi\",\n                \"/proc/timer_list\",\n                \"/proc/timer_stats\",\n                \"/sys/devices/virtual/powercap\",\n                \"/sys/firmware\"\n            ],\n            \"ReadonlyPaths\": [\n                \"/proc/bus\",\n                \"/proc/fs\",\n                \"/proc/irq\",\n                \"/proc/sys\",\n                \"/proc/sysrq-trigger\"\n            ]\n        },\n        \"Storage\": {\n            \"RootFS\": {\n                \"Snapshot\": {\n                    \"Name\": \"overlayfs\"\n                }\n            }\n        },\n        \"Mounts\": [\n            {\n                \"Type\": \"volume\",\n                \"Name\": \"8cd9cb696f498fac43da42375332185b9038ae516104c96989100fb922031fa5\",\n                \"Source\": \"/var/lib/docker/volumes/8cd9cb696f498fac43da42375332185b9038ae516104c96989100fb922031fa5/_data\",\n                \"Destination\": \"/var/lib/postgresql/data\",\n                \"Driver\": \"local\",\n                \"Mode\": \"\",\n                \"RW\": true,\n                \"Propagation\": \"\"\n            }\n        ],\n        \"Config\": {\n            \"Hostname\": \"eae5e7ed2ee2\",\n            \"Domainname\": \"\",\n            \"User\": \"\",\n            \"AttachStdin\": false,\n            \"AttachStdout\": false,\n            \"AttachStderr\": false,\n            \"ExposedPorts\": {\n                \"5432/tcp\": {}\n            },\n            \"Tty\": false,\n            \"OpenStdin\": false,\n            \"StdinOnce\": false,\n            \"Env\": [\n                \"POSTGRES_HOST_AUTH_METHOD=trust\",\n                \"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/10/bin\",\n                \"GOSU_VERSION=1.14\",\n                \"LANG=en_US.utf8\",\n                \"PG_MAJOR=10\",\n                \"PG_VERSION=10.21-1.pgdg90+1\",\n                \"PGDATA=/var/lib/postgresql/data\"\n            ],\n            \"Cmd\": [\n                \"postgres\",\n                \"-c\",\n                \"listen_addresses=*\",\n                \"-c\",\n                \"log_destination=csvlog\",\n                \"-c\",\n                \"logging_collector=on\",\n                \"-c\",\n                \"log_directory=log\",\n                \"-c\",\n                \"log_filename=postgresql-%Y%m%d%H%M%S.log\",\n                \"-c\",\n                \"log_min_messages=error\",\n                \"-c\",\n                \"log_min_error_statement=error\",\n                \"-c\",\n                \"log_error_verbosity=verbose\",\n                \"-c\",\n                \"wal_level=logical\",\n                \"-c\",\n                \"max_wal_senders=10\",\n                \"-c\",\n                \"max_replication_slots=10\"\n            ],\n            \"Image\": \"postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc\",\n            \"Volumes\": {\n                \"/var/lib/postgresql/data\": {}\n            },\n            \"WorkingDir\": \"\",\n            \"Entrypoint\": [\n                \"docker-entrypoint.sh\"\n            ],\n            \"Labels\": {},\n            \"StopSignal\": \"SIGINT\",\n            \"StopTimeout\": 1\n        },\n        \"NetworkSettings\": {\n            \"SandboxID\": \"a5c7381d8e61e8ecd17de61a57d1f8114d5528ee43b7c0e17e73fbc760b8c26f\",\n            \"SandboxKey\": \"/var/run/docker/netns/a5c7381d8e61\",\n            \"Ports\": {\n                \"5432/tcp\": [\n                    {\n                        \"HostIp\": \"127.0.0.1\",\n                        \"HostPort\": \"54033\"\n                    }\n                ]\n            },\n            \"Networks\": {\n                \"bridge\": {\n                    \"IPAMConfig\": null,\n                    \"Links\": null,\n                    \"Aliases\": null,\n                    \"DriverOpts\": null,\n                    \"GwPriority\": 0,\n                    \"NetworkID\": \"aed51554f8cd8bac69ecd4f073e41e147fda7b458e9d95be2af472651f2e825c\",\n                    \"EndpointID\": \"88c29bf9c4f23d1669823973e5c6ee202d3cfbbaf1bf4d55f643a8be318bedcc\",\n                    \"Gateway\": \"172.17.0.1\",\n                    \"IPAddress\": \"172.17.0.53\",\n                    \"MacAddress\": \"3a:8f:29:1f:77:54\",\n                    \"IPPrefixLen\": 16,\n                    \"IPv6Gateway\": \"\",\n                    \"GlobalIPv6Address\": \"\",\n                    \"GlobalIPv6PrefixLen\": 0,\n                    \"DNSNames\": null\n                }\n            }\n        },\n        \"ImageManifestDescriptor\": {\n            \"mediaType\": \"application/vnd.docker.distribution.manifest.v2+json\",\n            \"digest\": \"sha256:52aada7978f1eef3b6b52a51afb7a3defd69254d00c946cb90d2ceb32b8ffce7\",\n            \"size\": 3246,\n            \"platform\": {\n                \"architecture\": \"arm64\",\n                \"os\": \"linux\",\n                \"variant\": \"v8\"\n            }\n        }\n    }\n]\n"
            }
          }
        }
      ]
    },
    {
      "sqlstate": "42712",
      "condition_name": "duplicate_alias",
      "sources": [
        {
          "id": "src.errcodes.REL_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.calls.REL_10_23",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "00d16d3eb01b71ccf1b245c8f3102f9d0ec9f36fb02777b8dd1b99fcb263040c"
        },
        {
          "id": "src.duplicate-alias.18.6",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/parser/parse_relation.c",
          "sha256": "0d9c88f4a8def4c2d982c33f13208590e21ecf5e6f8cd9d7faa223dc771c9a9a",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/parser/parse_relation.c#L471-L474"
        },
        {
          "id": "src.duplicate-alias.10.23",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_10_23",
          "commit": "02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4",
          "path": "src/backend/parser/parse_relation.c",
          "sha256": "a34f40fc93fa5df0015fe5af5ee7761ccba2d16a791cda69ae07848ed27616b5",
          "url": "https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/parser/parse_relation.c#L417-L420"
        },
        {
          "id": "manifest.42712",
          "kind": "local_artifact",
          "source_role": "case_manifest",
          "sha256": "3d2d5d606d689b38e8a9080b2713b25c90be4b6640c3c7b06cf49e9517339f68"
        },
        {
          "id": "snippet-registry.42712",
          "kind": "local_artifact",
          "source_role": "snippet_registry",
          "sha256": "d4dc74128d213519064d9dc9664909040b8969c5824967e898160e7ac23883f1"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "statement": "42712 is the duplicate_alias condition in Class 42.",
          "method": "Read fixed errcodes.txt and locked catalogue metadata.",
          "limits": "Identity does not identify every backend call that can reuse this SQLSTATE.",
          "sources": [
            "src.errcodes.REL_18_6"
          ]
        },
        {
          "id": "mechanism.selected-source-path",
          "statement": "The selected duplicate_table_alias follows a resolved PostgreSQL source-call group; other branches can use different dynamic fields.",
          "method": "Trace the REL_18_6 and REL_10_23 source-call records at the locked commits.",
          "limits": "This is one mechanism boundary, not an exhaustive inventory of the code.",
          "sources": [
            "src.duplicate-alias.18.6",
            "src.duplicate-alias.10.23"
          ]
        },
        {
          "id": "runtime.representative-case",
          "statement": "The selected duplicate_table_alias passed on isolated PostgreSQL 18.6 and 10.21 targets.",
          "method": "Run the shared SQL registry and inspect SQLSTATE, severity, state, repair, cleanup, and target stop.",
          "limits": "Scope is limited to these statements, psycopg, and two versions.",
          "sources": [
            "manifest.42712",
            "snippet-registry.42712"
          ],
          "runtime": [
            "runtime.syntax2-42712-latest.latest",
            "runtime.syntax2-42712-pg10.pg10"
          ]
        },
        {
          "id": "versions.catalogue-boundary",
          "statement": "The locked catalogue records 42712 from the 7.4 presence bound through the listed snapshots; runtime scope is 18.6 and 10.21.",
          "method": "Read generated facts, fixed calls, and selected summaries.",
          "limits": "Definition presence is not an exact behavioral introduction; two runtime versions do not prove every intermediate behavior.",
          "sources": [
            "src.errcodes.REL_18_6",
            "src.calls.REL_18_6",
            "src.calls.REL_10_23"
          ]
        }
      ],
      "messages": [
        {
          "id": "message.duplicate_table_alias",
          "primary_template": "table name \"%s\" specified more than once",
          "severity_source": "explicit ERROR",
          "sqlstate": "42712",
          "sources": [
            "src.duplicate-alias.18.6",
            "src.duplicate-alias.10.23"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "selected-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "claim.mechanism.selected-source-path",
            "message.duplicate_table_alias"
          ]
        },
        {
          "scope": "selected-case-18.6-and-10.21",
          "status": "observed_runtime",
          "evidence_ids": [
            "runtime.syntax2-42712-latest.latest",
            "runtime.syntax2-42712-pg10.pg10",
            "claim.runtime.representative-case"
          ]
        }
      ],
      "runtime": [
        {
          "id": "runtime.syntax2-42712-latest.latest",
          "run_id": "syntax2-42712-latest",
          "target": "latest",
          "status": "passed",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "summary_sha256": "d8240f5c4a9d01a5f3af6a8d1cb37e41e95a4d8ffca251c35746fa564520b11a",
          "raw_sha256": "ac05886a7dc7ae2c117d4b1985ff5fc7cb487639875d56efa6d6444fc38efdca",
          "case_manifest": {
            "id": "manifest.42712",
            "kind": "local_artifact",
            "source_role": "case_manifest",
            "sha256": "3d2d5d606d689b38e8a9080b2713b25c90be4b6640c3c7b06cf49e9517339f68"
          },
          "snippet_registry": {
            "id": "snippet-registry.42712",
            "kind": "local_artifact",
            "source_role": "snippet_registry",
            "sha256": "d4dc74128d213519064d9dc9664909040b8969c5824967e898160e7ac23883f1"
          },
          "environment": {
            "TimeZone": "Asia/Shanghai",
            "backend_pid": 29974,
            "binary": {
              "bindir": "/opt/homebrew/Cellar/postgresql@18/18.6/bin",
              "pg_config": "/opt/homebrew/bin/pg_config",
              "pg_config_version": "PostgreSQL 18.6 (Homebrew)",
              "postgres": "/opt/homebrew/Cellar/postgresql@18/18.6/bin/postgres"
            },
            "connection_scope": "runner-owned localhost port",
            "current_user": "runner",
            "docker": {},
            "lc_messages": "C",
            "libpq_version": "18.6",
            "locale": "C.UTF-8",
            "log_destination": "csvlog,jsonlog",
            "log_error_verbosity": "verbose",
            "log_min_error_statement": "error",
            "log_min_messages": "error",
            "logging_collector": "on",
            "machine": "arm64",
            "max_connections": "100",
            "platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O",
            "psycopg_version": "3.3.5",
            "python_version": "3.14.6 (main, Jun 10 2026, 10:03:53) [Clang 21.0.0 (clang-2100.0.123.102)]",
            "server_encoding": "UTF8",
            "server_version": "18.6 (Homebrew)",
            "server_version_num": "180006",
            "target_kind": "latest",
            "wal_level": "logical"
          },
          "cases": [
            "duplicate_table_alias"
          ],
          "observed": {
            "connection_autocommit": true,
            "diagnostic": {
              "column_name": null,
              "constraint_name": null,
              "context": null,
              "datatype_name": null,
              "exception_type": "DuplicateAlias",
              "internal_position": null,
              "internal_query": null,
              "message_detail": null,
              "message_hint": null,
              "message_primary": "table name \"duplicate_alias\" specified more than once",
              "schema_name": null,
              "severity": "ERROR",
              "severity_nonlocalized": "ERROR",
              "source_file": "parse_relation.c",
              "source_function": "checkNameSpaceConflicts",
              "source_line": "474",
              "sqlstate": "42712",
              "statement_position": null,
              "table_name": null,
              "text": "table name \"duplicate_alias\" specified more than once"
            },
            "failed_status": "IDLE",
            "repair_rows": [
              [
                1,
                2
              ]
            ],
            "repair_status": "IDLE"
          },
          "assertions": [
            {
              "expected": "42712",
              "name": "42712 SQLSTATE",
              "observed": "42712",
              "passed": true
            },
            {
              "expected": "ERROR",
              "name": "42712 ERROR severity",
              "observed": "ERROR",
              "passed": true
            },
            {
              "expected": "table name \"duplicate_alias\" specified more than once",
              "name": "42712 primary diagnostic",
              "observed": "table name \"duplicate_alias\" specified more than once",
              "passed": true
            },
            {
              "expected": "IDLE",
              "name": "duplicate alias leaves autocommit session usable",
              "observed": "IDLE",
              "passed": true
            },
            {
              "expected": {
                "rows": [
                  [
                    1,
                    2
                  ]
                ],
                "status": "IDLE"
              },
              "name": "distinct aliases repair the query namespace",
              "observed": {
                "error": true,
                "rows": [
                  [
                    1,
                    2
                  ]
                ],
                "status": "IDLE"
              },
              "passed": true
            }
          ],
          "cleanup": {
            "errors": [],
            "passed": true
          },
          "target_stop": {
            "argv": [
              "/opt/homebrew/Cellar/postgresql@18/18.6/bin/pg_ctl",
              "-D",
              "<local runtime artifact>",
              "-m",
              "fast",
              "-w",
              "stop"
            ],
            "elapsed_seconds": 0.115,
            "returncode": 0,
            "stderr": "",
            "stdout": "waiting for server to shut down.... done\nserver stopped\n"
          }
        },
        {
          "id": "runtime.syntax2-42712-pg10.pg10",
          "run_id": "syntax2-42712-pg10",
          "target": "pg10",
          "status": "passed",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "summary_sha256": "86ab411aad329704d8b324bfd22accdb2d3954612ca4683209da64ca3c96fc7c",
          "raw_sha256": "922ebf233d8935a8cd64098dde83baea28966b48cc5de233c85357cc3affec75",
          "case_manifest": {
            "id": "manifest.42712",
            "kind": "local_artifact",
            "source_role": "case_manifest",
            "sha256": "3d2d5d606d689b38e8a9080b2713b25c90be4b6640c3c7b06cf49e9517339f68"
          },
          "snippet_registry": {
            "id": "snippet-registry.42712",
            "kind": "local_artifact",
            "source_role": "snippet_registry",
            "sha256": "d4dc74128d213519064d9dc9664909040b8969c5824967e898160e7ac23883f1"
          },
          "environment": {
            "TimeZone": "Etc/UTC",
            "backend_pid": 79,
            "binary": {},
            "connection_scope": "runner-owned localhost port",
            "current_user": "postgres",
            "docker": {
              "architecture": "arm64",
              "command": "/usr/local/bin/docker",
              "digest": "sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
              "id": "sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
              "image": "postgres:10",
              "image_created": "2022-06-23T09:11:18.374607054Z",
              "image_ref": "postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
              "log_destination": "csvlog",
              "os": "linux",
              "repo_digests": [
                "postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc"
              ]
            },
            "lc_messages": "en_US.utf8",
            "libpq_version": "18.6",
            "locale": "C.UTF-8",
            "log_destination": "csvlog",
            "log_error_verbosity": "verbose",
            "log_min_error_statement": "error",
            "log_min_messages": "error",
            "logging_collector": "on",
            "machine": "arm64",
            "max_connections": "100",
            "platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O",
            "psycopg_version": "3.3.5",
            "python_version": "3.14.6 (main, Jun 10 2026, 10:03:53) [Clang 21.0.0 (clang-2100.0.123.102)]",
            "server_encoding": "UTF8",
            "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
            "server_version_num": "100021",
            "target_kind": "pg10",
            "wal_level": "logical"
          },
          "cases": [
            "duplicate_table_alias"
          ],
          "observed": {
            "connection_autocommit": true,
            "diagnostic": {
              "column_name": null,
              "constraint_name": null,
              "context": null,
              "datatype_name": null,
              "exception_type": "DuplicateAlias",
              "internal_position": null,
              "internal_query": null,
              "message_detail": null,
              "message_hint": null,
              "message_primary": "table name \"duplicate_alias\" specified more than once",
              "schema_name": null,
              "severity": "ERROR",
              "severity_nonlocalized": "ERROR",
              "source_file": "parse_relation.c",
              "source_function": "checkNameSpaceConflicts",
              "source_line": "420",
              "sqlstate": "42712",
              "statement_position": null,
              "table_name": null,
              "text": "table name \"duplicate_alias\" specified more than once"
            },
            "failed_status": "IDLE",
            "repair_rows": [
              [
                1,
                2
              ]
            ],
            "repair_status": "IDLE"
          },
          "assertions": [
            {
              "expected": "42712",
              "name": "42712 SQLSTATE",
              "observed": "42712",
              "passed": true
            },
            {
              "expected": "ERROR",
              "name": "42712 ERROR severity",
              "observed": "ERROR",
              "passed": true
            },
            {
              "expected": "table name \"duplicate_alias\" specified more than once",
              "name": "42712 primary diagnostic",
              "observed": "table name \"duplicate_alias\" specified more than once",
              "passed": true
            },
            {
              "expected": "IDLE",
              "name": "duplicate alias leaves autocommit session usable",
              "observed": "IDLE",
              "passed": true
            },
            {
              "expected": {
                "rows": [
                  [
                    1,
                    2
                  ]
                ],
                "status": "IDLE"
              },
              "name": "distinct aliases repair the query namespace",
              "observed": {
                "error": true,
                "rows": [
                  [
                    1,
                    2
                  ]
                ],
                "status": "IDLE"
              },
              "passed": true
            }
          ],
          "cleanup": {
            "errors": [],
            "passed": true
          },
          "target_stop": {
            "cleanup": {
              "argv": [
                "/usr/local/bin/docker",
                "rm",
                "-f",
                "-v",
                "sqlstate42712_syntax242712pg10_pg10"
              ],
              "elapsed_seconds": 0.287,
              "returncode": 0,
              "stderr": "",
              "stdout": "sqlstate42712_syntax242712pg10_pg10\n"
            },
            "inspect": {
              "argv": [
                "/usr/local/bin/docker",
                "inspect",
                "sqlstate42712_syntax242712pg10_pg10"
              ],
              "elapsed_seconds": 0.018,
              "returncode": 0,
              "stderr": "",
              "stdout": "[\n    {\n        \"Id\": \"8df94d90c840e1779b8c039600173995b95492e84737fea06b95dc09d97d4643\",\n        \"Created\": \"2026-09-09T16:40:07.545678719Z\",\n        \"Path\": \"docker-entrypoint.sh\",\n        \"Args\": [\n            \"postgres\",\n            \"-c\",\n            \"listen_addresses=*\",\n            \"-c\",\n            \"log_destination=csvlog\",\n            \"-c\",\n            \"logging_collector=on\",\n            \"-c\",\n            \"log_directory=log\",\n            \"-c\",\n            \"log_filename=postgresql-%Y%m%d%H%M%S.log\",\n            \"-c\",\n            \"log_min_messages=error\",\n            \"-c\",\n            \"log_min_error_statement=error\",\n            \"-c\",\n            \"log_error_verbosity=verbose\",\n            \"-c\",\n            \"wal_level=logical\",\n            \"-c\",\n            \"max_wal_senders=10\",\n            \"-c\",\n            \"max_replication_slots=10\"\n        ],\n        \"State\": {\n            \"Status\": \"running\",\n            \"Running\": true,\n            \"Paused\": false,\n            \"Restarting\": false,\n            \"OOMKilled\": false,\n            \"Dead\": false,\n            \"Pid\": 62161,\n            \"ExitCode\": 0,\n            \"Error\": \"\",\n            \"StartedAt\": \"2026-09-09T16:40:07.679582052Z\",\n            \"FinishedAt\": \"0001-01-01T00:00:00Z\"\n        },\n        \"Image\": \"sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc\",\n        \"ResolvConfPath\": \"/var/lib/docker/containers/8df94d90c840e1779b8c039600173995b95492e84737fea06b95dc09d97d4643/resolv.conf\",\n        \"HostnamePath\": \"/var/lib/docker/containers/8df94d90c840e1779b8c039600173995b95492e84737fea06b95dc09d97d4643/hostname\",\n        \"HostsPath\": \"/var/lib/docker/containers/8df94d90c840e1779b8c039600173995b95492e84737fea06b95dc09d97d4643/hosts\",\n        \"LogPath\": \"/var/lib/docker/containers/8df94d90c840e1779b8c039600173995b95492e84737fea06b95dc09d97d4643/8df94d90c840e1779b8c039600173995b95492e84737fea06b95dc09d97d4643-json.log\",\n        \"Name\": \"/sqlstate42712_syntax242712pg10_pg10\",\n        \"RestartCount\": 0,\n        \"Driver\": \"overlayfs\",\n        \"Platform\": \"linux\",\n        \"MountLabel\": \"\",\n        \"ProcessLabel\": \"\",\n        \"AppArmorProfile\": \"\",\n        \"ExecIDs\": null,\n        \"HostConfig\": {\n            \"Binds\": null,\n            \"ContainerIDFile\": \"\",\n            \"LogConfig\": {\n                \"Type\": \"json-file\",\n                \"Config\": {}\n            },\n            \"NetworkMode\": \"bridge\",\n            \"PortBindings\": {\n                \"5432/tcp\": [\n                    {\n                        \"HostIp\": \"127.0.0.1\",\n                        \"HostPort\": \"\"\n                    }\n                ]\n            },\n            \"RestartPolicy\": {\n                \"Name\": \"no\",\n                \"MaximumRetryCount\": 0\n            },\n            \"AutoRemove\": false,\n            \"VolumeDriver\": \"\",\n            \"VolumesFrom\": null,\n            \"ConsoleSize\": [\n                0,\n                0\n            ],\n            \"CapAdd\": null,\n            \"CapDrop\": null,\n            \"CgroupnsMode\": \"private\",\n            \"Dns\": null,\n            \"DnsOptions\": [],\n            \"DnsSearch\": [],\n            \"ExtraHosts\": null,\n            \"GroupAdd\": null,\n            \"IpcMode\": \"private\",\n            \"Cgroup\": \"\",\n            \"Links\": null,\n            \"OomScoreAdj\": 0,\n            \"PidMode\": \"\",\n            \"Privileged\": false,\n            \"PublishAllPorts\": false,\n            \"ReadonlyRootfs\": false,\n            \"SecurityOpt\": null,\n            \"UTSMode\": \"\",\n            \"UsernsMode\": \"\",\n            \"ShmSize\": 67108864,\n            \"Runtime\": \"runc\",\n            \"Isolation\": \"\",\n            \"CpuShares\": 0,\n            \"Memory\": 0,\n            \"NanoCpus\": 0,\n            \"CgroupParent\": \"\",\n            \"BlkioWeight\": 0,\n            \"BlkioWeightDevice\": [],\n            \"BlkioDeviceReadBps\": [],\n            \"BlkioDeviceWriteBps\": [],\n            \"BlkioDeviceReadIOps\": [],\n            \"BlkioDeviceWriteIOps\": [],\n            \"CpuPeriod\": 0,\n            \"CpuQuota\": 0,\n            \"CpuRealtimePeriod\": 0,\n            \"CpuRealtimeRuntime\": 0,\n            \"CpusetCpus\": \"\",\n            \"CpusetMems\": \"\",\n            \"Devices\": [],\n            \"DeviceCgroupRules\": null,\n            \"DeviceRequests\": null,\n            \"MemoryReservation\": 0,\n            \"MemorySwap\": 0,\n            \"MemorySwappiness\": null,\n            \"OomKillDisable\": null,\n            \"PidsLimit\": null,\n            \"Ulimits\": [],\n            \"CpuCount\": 0,\n            \"CpuPercent\": 0,\n            \"IOMaximumIOps\": 0,\n            \"IOMaximumBandwidth\": 0,\n            \"MaskedPaths\": [\n                \"/proc/acpi\",\n                \"/proc/asound\",\n                \"/proc/interrupts\",\n                \"/proc/kcore\",\n                \"/proc/keys\",\n                \"/proc/latency_stats\",\n                \"/proc/sched_debug\",\n                \"/proc/scsi\",\n                \"/proc/timer_list\",\n                \"/proc/timer_stats\",\n                \"/sys/devices/virtual/powercap\",\n                \"/sys/firmware\"\n            ],\n            \"ReadonlyPaths\": [\n                \"/proc/bus\",\n                \"/proc/fs\",\n                \"/proc/irq\",\n                \"/proc/sys\",\n                \"/proc/sysrq-trigger\"\n            ]\n        },\n        \"Storage\": {\n            \"RootFS\": {\n                \"Snapshot\": {\n                    \"Name\": \"overlayfs\"\n                }\n            }\n        },\n        \"Mounts\": [\n            {\n                \"Type\": \"volume\",\n                \"Name\": \"3cc2da6bee15ac23da1563fccbf137f4e56c33b687255d2e33513cf271afb6f2\",\n                \"Source\": \"/var/lib/docker/volumes/3cc2da6bee15ac23da1563fccbf137f4e56c33b687255d2e33513cf271afb6f2/_data\",\n                \"Destination\": \"/var/lib/postgresql/data\",\n                \"Driver\": \"local\",\n                \"Mode\": \"\",\n                \"RW\": true,\n                \"Propagation\": \"\"\n            }\n        ],\n        \"Config\": {\n            \"Hostname\": \"8df94d90c840\",\n            \"Domainname\": \"\",\n            \"User\": \"\",\n            \"AttachStdin\": false,\n            \"AttachStdout\": false,\n            \"AttachStderr\": false,\n            \"ExposedPorts\": {\n                \"5432/tcp\": {}\n            },\n            \"Tty\": false,\n            \"OpenStdin\": false,\n            \"StdinOnce\": false,\n            \"Env\": [\n                \"POSTGRES_HOST_AUTH_METHOD=trust\",\n                \"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/10/bin\",\n                \"GOSU_VERSION=1.14\",\n                \"LANG=en_US.utf8\",\n                \"PG_MAJOR=10\",\n                \"PG_VERSION=10.21-1.pgdg90+1\",\n                \"PGDATA=/var/lib/postgresql/data\"\n            ],\n            \"Cmd\": [\n                \"postgres\",\n                \"-c\",\n                \"listen_addresses=*\",\n                \"-c\",\n                \"log_destination=csvlog\",\n                \"-c\",\n                \"logging_collector=on\",\n                \"-c\",\n                \"log_directory=log\",\n                \"-c\",\n                \"log_filename=postgresql-%Y%m%d%H%M%S.log\",\n                \"-c\",\n                \"log_min_messages=error\",\n                \"-c\",\n                \"log_min_error_statement=error\",\n                \"-c\",\n                \"log_error_verbosity=verbose\",\n                \"-c\",\n                \"wal_level=logical\",\n                \"-c\",\n                \"max_wal_senders=10\",\n                \"-c\",\n                \"max_replication_slots=10\"\n            ],\n            \"Image\": \"postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc\",\n            \"Volumes\": {\n                \"/var/lib/postgresql/data\": {}\n            },\n            \"WorkingDir\": \"\",\n            \"Entrypoint\": [\n                \"docker-entrypoint.sh\"\n            ],\n            \"Labels\": {},\n            \"StopSignal\": \"SIGINT\",\n            \"StopTimeout\": 1\n        },\n        \"NetworkSettings\": {\n            \"SandboxID\": \"3d8f6eb122b83f1245fe5aa39b603c8391768387dd3c4d1ebbc372f6e4205a1a\",\n            \"SandboxKey\": \"/var/run/docker/netns/3d8f6eb122b8\",\n            \"Ports\": {\n                \"5432/tcp\": [\n                    {\n                        \"HostIp\": \"127.0.0.1\",\n                        \"HostPort\": \"54059\"\n                    }\n                ]\n            },\n            \"Networks\": {\n                \"bridge\": {\n                    \"IPAMConfig\": null,\n                    \"Links\": null,\n                    \"Aliases\": null,\n                    \"DriverOpts\": null,\n                    \"GwPriority\": 0,\n                    \"NetworkID\": \"aed51554f8cd8bac69ecd4f073e41e147fda7b458e9d95be2af472651f2e825c\",\n                    \"EndpointID\": \"deac6084d3617286eec0b19bb057c6d8082c811f139398bb923eb6a5cf12f027\",\n                    \"Gateway\": \"172.17.0.1\",\n                    \"IPAddress\": \"172.17.0.53\",\n                    \"MacAddress\": \"7e:b9:c4:d0:e7:40\",\n                    \"IPPrefixLen\": 16,\n                    \"IPv6Gateway\": \"\",\n                    \"GlobalIPv6Address\": \"\",\n                    \"GlobalIPv6PrefixLen\": 0,\n                    \"DNSNames\": null\n                }\n            }\n        },\n        \"ImageManifestDescriptor\": {\n            \"mediaType\": \"application/vnd.docker.distribution.manifest.v2+json\",\n            \"digest\": \"sha256:52aada7978f1eef3b6b52a51afb7a3defd69254d00c946cb90d2ceb32b8ffce7\",\n            \"size\": 3246,\n            \"platform\": {\n                \"architecture\": \"arm64\",\n                \"os\": \"linux\",\n                \"variant\": \"v8\"\n            }\n        }\n    }\n]\n"
            }
          }
        }
      ]
    },
    {
      "sqlstate": "42723",
      "condition_name": "duplicate_function",
      "sources": [
        {
          "id": "src.errcodes.REL_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.calls.REL_10_23",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "00d16d3eb01b71ccf1b245c8f3102f9d0ec9f36fb02777b8dd1b99fcb263040c"
        },
        {
          "id": "src.duplicate-function.18.6",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/catalog/pg_proc.c",
          "sha256": "77a883995e5fadf17fae68722043beb43115e685e8082b2b7256d92312528a5a",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/catalog/pg_proc.c#L400-L403"
        },
        {
          "id": "src.duplicate-function.10.23",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_10_23",
          "commit": "02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4",
          "path": "src/backend/catalog/pg_proc.c",
          "sha256": "96ddd186536c24018d3e29fd7e8f7384543c89ede83c81f673dc013fdd23b0fe",
          "url": "https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/catalog/pg_proc.c#L398-L401"
        },
        {
          "id": "manifest.42723",
          "kind": "local_artifact",
          "source_role": "case_manifest",
          "sha256": "471edc7e2643bd2acbba687dacca1bb43c1cd0c88b38f4f1dc3cfc6f874c955b"
        },
        {
          "id": "snippet-registry.42723",
          "kind": "local_artifact",
          "source_role": "snippet_registry",
          "sha256": "72806aaccc6a475009c12f9618ebf097b3304e0d8aa990c4a28193846600d7f4"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "statement": "42723 is the duplicate_function condition in Class 42.",
          "method": "Read fixed errcodes.txt and locked catalogue metadata.",
          "limits": "Identity does not identify every backend call that can reuse this SQLSTATE.",
          "sources": [
            "src.errcodes.REL_18_6"
          ]
        },
        {
          "id": "mechanism.selected-source-path",
          "statement": "The selected duplicate_function_signature follows a resolved PostgreSQL source-call group; other branches can use different dynamic fields.",
          "method": "Trace the REL_18_6 and REL_10_23 source-call records at the locked commits.",
          "limits": "This is one mechanism boundary, not an exhaustive inventory of the code.",
          "sources": [
            "src.duplicate-function.18.6",
            "src.duplicate-function.10.23"
          ]
        },
        {
          "id": "runtime.representative-case",
          "statement": "The selected duplicate_function_signature passed on isolated PostgreSQL 18.6 and 10.21 targets.",
          "method": "Run the shared SQL registry and inspect SQLSTATE, severity, state, repair, cleanup, and target stop.",
          "limits": "Scope is limited to these statements, psycopg, and two versions.",
          "sources": [
            "manifest.42723",
            "snippet-registry.42723"
          ],
          "runtime": [
            "runtime.syntax2-42723-latest.latest",
            "runtime.syntax2-42723-pg10.pg10"
          ]
        },
        {
          "id": "versions.catalogue-boundary",
          "statement": "The locked catalogue records 42723 from the 7.4 presence bound through the listed snapshots; runtime scope is 18.6 and 10.21.",
          "method": "Read generated facts, fixed calls, and selected summaries.",
          "limits": "Definition presence is not an exact behavioral introduction; two runtime versions do not prove every intermediate behavior.",
          "sources": [
            "src.errcodes.REL_18_6",
            "src.calls.REL_18_6",
            "src.calls.REL_10_23"
          ]
        }
      ],
      "messages": [
        {
          "id": "message.duplicate_function_signature",
          "primary_template": "function \"%s\" already exists with same argument types",
          "severity_source": "explicit ERROR",
          "sqlstate": "42723",
          "sources": [
            "src.duplicate-function.18.6",
            "src.duplicate-function.10.23"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "selected-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "claim.mechanism.selected-source-path",
            "message.duplicate_function_signature"
          ]
        },
        {
          "scope": "selected-case-18.6-and-10.21",
          "status": "observed_runtime",
          "evidence_ids": [
            "runtime.syntax2-42723-latest.latest",
            "runtime.syntax2-42723-pg10.pg10",
            "claim.runtime.representative-case"
          ]
        }
      ],
      "runtime": [
        {
          "id": "runtime.syntax2-42723-latest.latest",
          "run_id": "syntax2-42723-latest",
          "target": "latest",
          "status": "passed",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "summary_sha256": "b0d0246767ba1f0ef3ac9c35b16e908cd13627567eb1f3ac2e2c4bdf0ea0eda9",
          "raw_sha256": "cb8cc88353fd5c3eec51177ac9d4e9cab389dc4fcb47fda8429a3bb9218374a0",
          "case_manifest": {
            "id": "manifest.42723",
            "kind": "local_artifact",
            "source_role": "case_manifest",
            "sha256": "471edc7e2643bd2acbba687dacca1bb43c1cd0c88b38f4f1dc3cfc6f874c955b"
          },
          "snippet_registry": {
            "id": "snippet-registry.42723",
            "kind": "local_artifact",
            "source_role": "snippet_registry",
            "sha256": "72806aaccc6a475009c12f9618ebf097b3304e0d8aa990c4a28193846600d7f4"
          },
          "environment": {
            "TimeZone": "Asia/Shanghai",
            "backend_pid": 30019,
            "binary": {
              "bindir": "/opt/homebrew/Cellar/postgresql@18/18.6/bin",
              "pg_config": "/opt/homebrew/bin/pg_config",
              "pg_config_version": "PostgreSQL 18.6 (Homebrew)",
              "postgres": "/opt/homebrew/Cellar/postgresql@18/18.6/bin/postgres"
            },
            "connection_scope": "runner-owned localhost port",
            "current_user": "runner",
            "docker": {},
            "lc_messages": "C",
            "libpq_version": "18.6",
            "locale": "C.UTF-8",
            "log_destination": "csvlog,jsonlog",
            "log_error_verbosity": "verbose",
            "log_min_error_statement": "error",
            "log_min_messages": "error",
            "logging_collector": "on",
            "machine": "arm64",
            "max_connections": "100",
            "platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O",
            "psycopg_version": "3.3.5",
            "python_version": "3.14.6 (main, Jun 10 2026, 10:03:53) [Clang 21.0.0 (clang-2100.0.123.102)]",
            "server_encoding": "UTF8",
            "server_version": "18.6 (Homebrew)",
            "server_version_num": "180006",
            "target_kind": "latest",
            "wal_level": "logical"
          },
          "cases": [
            "duplicate_function_signature"
          ],
          "observed": {
            "connection_autocommit": true,
            "diagnostic": {
              "column_name": null,
              "constraint_name": null,
              "context": null,
              "datatype_name": null,
              "exception_type": "DuplicateFunction",
              "internal_position": null,
              "internal_query": null,
              "message_detail": null,
              "message_hint": null,
              "message_primary": "function \"duplicate_function\" already exists with same argument types",
              "schema_name": null,
              "severity": "ERROR",
              "severity_nonlocalized": "ERROR",
              "source_file": "pg_proc.c",
              "source_function": "ProcedureCreate",
              "source_line": "403",
              "sqlstate": "42723",
              "statement_position": null,
              "table_name": null,
              "text": "function \"duplicate_function\" already exists with same argument types"
            },
            "failed_status": "IDLE",
            "repair_status": "IDLE",
            "repair_value": 2
          },
          "assertions": [
            {
              "expected": "42723",
              "name": "42723 SQLSTATE",
              "observed": "42723",
              "passed": true
            },
            {
              "expected": "ERROR",
              "name": "42723 ERROR severity",
              "observed": "ERROR",
              "passed": true
            },
            {
              "expected": "function \"duplicate_function\" already exists with same argument types",
              "name": "42723 primary diagnostic",
              "observed": "function \"duplicate_function\" already exists with same argument types",
              "passed": true
            },
            {
              "expected": "IDLE",
              "name": "duplicate function leaves autocommit session usable",
              "observed": "IDLE",
              "passed": true
            },
            {
              "expected": {
                "status": "IDLE",
                "value": 2
              },
              "name": "same signature can be intentionally replaced",
              "observed": {
                "error": true,
                "status": "IDLE",
                "value": 2
              },
              "passed": true
            }
          ],
          "cleanup": {
            "errors": [],
            "passed": true
          },
          "target_stop": {
            "argv": [
              "/opt/homebrew/Cellar/postgresql@18/18.6/bin/pg_ctl",
              "-D",
              "<local runtime artifact>",
              "-m",
              "fast",
              "-w",
              "stop"
            ],
            "elapsed_seconds": 0.115,
            "returncode": 0,
            "stderr": "",
            "stdout": "waiting for server to shut down.... done\nserver stopped\n"
          }
        },
        {
          "id": "runtime.syntax2-42723-pg10.pg10",
          "run_id": "syntax2-42723-pg10",
          "target": "pg10",
          "status": "passed",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "summary_sha256": "e1c96a32180dda5bcbabd08aa2dca35d2d0b1d74e235c4d1ef9497f7963bbd13",
          "raw_sha256": "22ac7673c3fb470961fac05bd26312eb4ab1f348dcbff351889b199f2ee42e17",
          "case_manifest": {
            "id": "manifest.42723",
            "kind": "local_artifact",
            "source_role": "case_manifest",
            "sha256": "471edc7e2643bd2acbba687dacca1bb43c1cd0c88b38f4f1dc3cfc6f874c955b"
          },
          "snippet_registry": {
            "id": "snippet-registry.42723",
            "kind": "local_artifact",
            "source_role": "snippet_registry",
            "sha256": "72806aaccc6a475009c12f9618ebf097b3304e0d8aa990c4a28193846600d7f4"
          },
          "environment": {
            "TimeZone": "Etc/UTC",
            "backend_pid": 79,
            "binary": {},
            "connection_scope": "runner-owned localhost port",
            "current_user": "postgres",
            "docker": {
              "architecture": "arm64",
              "command": "/usr/local/bin/docker",
              "digest": "sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
              "id": "sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
              "image": "postgres:10",
              "image_created": "2022-06-23T09:11:18.374607054Z",
              "image_ref": "postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
              "log_destination": "csvlog",
              "os": "linux",
              "repo_digests": [
                "postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc"
              ]
            },
            "lc_messages": "en_US.utf8",
            "libpq_version": "18.6",
            "locale": "C.UTF-8",
            "log_destination": "csvlog",
            "log_error_verbosity": "verbose",
            "log_min_error_statement": "error",
            "log_min_messages": "error",
            "logging_collector": "on",
            "machine": "arm64",
            "max_connections": "100",
            "platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O",
            "psycopg_version": "3.3.5",
            "python_version": "3.14.6 (main, Jun 10 2026, 10:03:53) [Clang 21.0.0 (clang-2100.0.123.102)]",
            "server_encoding": "UTF8",
            "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
            "server_version_num": "100021",
            "target_kind": "pg10",
            "wal_level": "logical"
          },
          "cases": [
            "duplicate_function_signature"
          ],
          "observed": {
            "connection_autocommit": true,
            "diagnostic": {
              "column_name": null,
              "constraint_name": null,
              "context": null,
              "datatype_name": null,
              "exception_type": "DuplicateFunction",
              "internal_position": null,
              "internal_query": null,
              "message_detail": null,
              "message_hint": null,
              "message_primary": "function \"duplicate_function\" already exists with same argument types",
              "schema_name": null,
              "severity": "ERROR",
              "severity_nonlocalized": "ERROR",
              "source_file": "pg_proc.c",
              "source_function": "ProcedureCreate",
              "source_line": "401",
              "sqlstate": "42723",
              "statement_position": null,
              "table_name": null,
              "text": "function \"duplicate_function\" already exists with same argument types"
            },
            "failed_status": "IDLE",
            "repair_status": "IDLE",
            "repair_value": 2
          },
          "assertions": [
            {
              "expected": "42723",
              "name": "42723 SQLSTATE",
              "observed": "42723",
              "passed": true
            },
            {
              "expected": "ERROR",
              "name": "42723 ERROR severity",
              "observed": "ERROR",
              "passed": true
            },
            {
              "expected": "function \"duplicate_function\" already exists with same argument types",
              "name": "42723 primary diagnostic",
              "observed": "function \"duplicate_function\" already exists with same argument types",
              "passed": true
            },
            {
              "expected": "IDLE",
              "name": "duplicate function leaves autocommit session usable",
              "observed": "IDLE",
              "passed": true
            },
            {
              "expected": {
                "status": "IDLE",
                "value": 2
              },
              "name": "same signature can be intentionally replaced",
              "observed": {
                "error": true,
                "status": "IDLE",
                "value": 2
              },
              "passed": true
            }
          ],
          "cleanup": {
            "errors": [],
            "passed": true
          },
          "target_stop": {
            "cleanup": {
              "argv": [
                "/usr/local/bin/docker",
                "rm",
                "-f",
                "-v",
                "sqlstate42723_syntax242723pg10_pg10"
              ],
              "elapsed_seconds": 0.272,
              "returncode": 0,
              "stderr": "",
              "stdout": "sqlstate42723_syntax242723pg10_pg10\n"
            },
            "inspect": {
              "argv": [
                "/usr/local/bin/docker",
                "inspect",
                "sqlstate42723_syntax242723pg10_pg10"
              ],
              "elapsed_seconds": 0.018,
              "returncode": 0,
              "stderr": "",
              "stdout": "[\n    {\n        \"Id\": \"834f76dd12307a18cc5b2c50c8276ec3917db756fefe13081d12a9e0f9bb8b5f\",\n        \"Created\": \"2026-09-09T16:40:09.036408095Z\",\n        \"Path\": \"docker-entrypoint.sh\",\n        \"Args\": [\n            \"postgres\",\n            \"-c\",\n            \"listen_addresses=*\",\n            \"-c\",\n            \"log_destination=csvlog\",\n            \"-c\",\n            \"logging_collector=on\",\n            \"-c\",\n            \"log_directory=log\",\n            \"-c\",\n            \"log_filename=postgresql-%Y%m%d%H%M%S.log\",\n            \"-c\",\n            \"log_min_messages=error\",\n            \"-c\",\n            \"log_min_error_statement=error\",\n            \"-c\",\n            \"log_error_verbosity=verbose\",\n            \"-c\",\n            \"wal_level=logical\",\n            \"-c\",\n            \"max_wal_senders=10\",\n            \"-c\",\n            \"max_replication_slots=10\"\n        ],\n        \"State\": {\n            \"Status\": \"running\",\n            \"Running\": true,\n            \"Paused\": false,\n            \"Restarting\": false,\n            \"OOMKilled\": false,\n            \"Dead\": false,\n            \"Pid\": 62335,\n            \"ExitCode\": 0,\n            \"Error\": \"\",\n            \"StartedAt\": \"2026-09-09T16:40:09.116419303Z\",\n            \"FinishedAt\": \"0001-01-01T00:00:00Z\"\n        },\n        \"Image\": \"sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc\",\n        \"ResolvConfPath\": \"/var/lib/docker/containers/834f76dd12307a18cc5b2c50c8276ec3917db756fefe13081d12a9e0f9bb8b5f/resolv.conf\",\n        \"HostnamePath\": \"/var/lib/docker/containers/834f76dd12307a18cc5b2c50c8276ec3917db756fefe13081d12a9e0f9bb8b5f/hostname\",\n        \"HostsPath\": \"/var/lib/docker/containers/834f76dd12307a18cc5b2c50c8276ec3917db756fefe13081d12a9e0f9bb8b5f/hosts\",\n        \"LogPath\": \"/var/lib/docker/containers/834f76dd12307a18cc5b2c50c8276ec3917db756fefe13081d12a9e0f9bb8b5f/834f76dd12307a18cc5b2c50c8276ec3917db756fefe13081d12a9e0f9bb8b5f-json.log\",\n        \"Name\": \"/sqlstate42723_syntax242723pg10_pg10\",\n        \"RestartCount\": 0,\n        \"Driver\": \"overlayfs\",\n        \"Platform\": \"linux\",\n        \"MountLabel\": \"\",\n        \"ProcessLabel\": \"\",\n        \"AppArmorProfile\": \"\",\n        \"ExecIDs\": null,\n        \"HostConfig\": {\n            \"Binds\": null,\n            \"ContainerIDFile\": \"\",\n            \"LogConfig\": {\n                \"Type\": \"json-file\",\n                \"Config\": {}\n            },\n            \"NetworkMode\": \"bridge\",\n            \"PortBindings\": {\n                \"5432/tcp\": [\n                    {\n                        \"HostIp\": \"127.0.0.1\",\n                        \"HostPort\": \"\"\n                    }\n                ]\n            },\n            \"RestartPolicy\": {\n                \"Name\": \"no\",\n                \"MaximumRetryCount\": 0\n            },\n            \"AutoRemove\": false,\n            \"VolumeDriver\": \"\",\n            \"VolumesFrom\": null,\n            \"ConsoleSize\": [\n                0,\n                0\n            ],\n            \"CapAdd\": null,\n            \"CapDrop\": null,\n            \"CgroupnsMode\": \"private\",\n            \"Dns\": null,\n            \"DnsOptions\": [],\n            \"DnsSearch\": [],\n            \"ExtraHosts\": null,\n            \"GroupAdd\": null,\n            \"IpcMode\": \"private\",\n            \"Cgroup\": \"\",\n            \"Links\": null,\n            \"OomScoreAdj\": 0,\n            \"PidMode\": \"\",\n            \"Privileged\": false,\n            \"PublishAllPorts\": false,\n            \"ReadonlyRootfs\": false,\n            \"SecurityOpt\": null,\n            \"UTSMode\": \"\",\n            \"UsernsMode\": \"\",\n            \"ShmSize\": 67108864,\n            \"Runtime\": \"runc\",\n            \"Isolation\": \"\",\n            \"CpuShares\": 0,\n            \"Memory\": 0,\n            \"NanoCpus\": 0,\n            \"CgroupParent\": \"\",\n            \"BlkioWeight\": 0,\n            \"BlkioWeightDevice\": [],\n            \"BlkioDeviceReadBps\": [],\n            \"BlkioDeviceWriteBps\": [],\n            \"BlkioDeviceReadIOps\": [],\n            \"BlkioDeviceWriteIOps\": [],\n            \"CpuPeriod\": 0,\n            \"CpuQuota\": 0,\n            \"CpuRealtimePeriod\": 0,\n            \"CpuRealtimeRuntime\": 0,\n            \"CpusetCpus\": \"\",\n            \"CpusetMems\": \"\",\n            \"Devices\": [],\n            \"DeviceCgroupRules\": null,\n            \"DeviceRequests\": null,\n            \"MemoryReservation\": 0,\n            \"MemorySwap\": 0,\n            \"MemorySwappiness\": null,\n            \"OomKillDisable\": null,\n            \"PidsLimit\": null,\n            \"Ulimits\": [],\n            \"CpuCount\": 0,\n            \"CpuPercent\": 0,\n            \"IOMaximumIOps\": 0,\n            \"IOMaximumBandwidth\": 0,\n            \"MaskedPaths\": [\n                \"/proc/acpi\",\n                \"/proc/asound\",\n                \"/proc/interrupts\",\n                \"/proc/kcore\",\n                \"/proc/keys\",\n                \"/proc/latency_stats\",\n                \"/proc/sched_debug\",\n                \"/proc/scsi\",\n                \"/proc/timer_list\",\n                \"/proc/timer_stats\",\n                \"/sys/devices/virtual/powercap\",\n                \"/sys/firmware\"\n            ],\n            \"ReadonlyPaths\": [\n                \"/proc/bus\",\n                \"/proc/fs\",\n                \"/proc/irq\",\n                \"/proc/sys\",\n                \"/proc/sysrq-trigger\"\n            ]\n        },\n        \"Storage\": {\n            \"RootFS\": {\n                \"Snapshot\": {\n                    \"Name\": \"overlayfs\"\n                }\n            }\n        },\n        \"Mounts\": [\n            {\n                \"Type\": \"volume\",\n                \"Name\": \"c770d11bb424d930f6bc212debedce742cadeb7efa9e271a68b05d47cbba06f6\",\n                \"Source\": \"/var/lib/docker/volumes/c770d11bb424d930f6bc212debedce742cadeb7efa9e271a68b05d47cbba06f6/_data\",\n                \"Destination\": \"/var/lib/postgresql/data\",\n                \"Driver\": \"local\",\n                \"Mode\": \"\",\n                \"RW\": true,\n                \"Propagation\": \"\"\n            }\n        ],\n        \"Config\": {\n            \"Hostname\": \"834f76dd1230\",\n            \"Domainname\": \"\",\n            \"User\": \"\",\n            \"AttachStdin\": false,\n            \"AttachStdout\": false,\n            \"AttachStderr\": false,\n            \"ExposedPorts\": {\n                \"5432/tcp\": {}\n            },\n            \"Tty\": false,\n            \"OpenStdin\": false,\n            \"StdinOnce\": false,\n            \"Env\": [\n                \"POSTGRES_HOST_AUTH_METHOD=trust\",\n                \"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/10/bin\",\n                \"GOSU_VERSION=1.14\",\n                \"LANG=en_US.utf8\",\n                \"PG_MAJOR=10\",\n                \"PG_VERSION=10.21-1.pgdg90+1\",\n                \"PGDATA=/var/lib/postgresql/data\"\n            ],\n            \"Cmd\": [\n                \"postgres\",\n                \"-c\",\n                \"listen_addresses=*\",\n                \"-c\",\n                \"log_destination=csvlog\",\n                \"-c\",\n                \"logging_collector=on\",\n                \"-c\",\n                \"log_directory=log\",\n                \"-c\",\n                \"log_filename=postgresql-%Y%m%d%H%M%S.log\",\n                \"-c\",\n                \"log_min_messages=error\",\n                \"-c\",\n                \"log_min_error_statement=error\",\n                \"-c\",\n                \"log_error_verbosity=verbose\",\n                \"-c\",\n                \"wal_level=logical\",\n                \"-c\",\n                \"max_wal_senders=10\",\n                \"-c\",\n                \"max_replication_slots=10\"\n            ],\n            \"Image\": \"postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc\",\n            \"Volumes\": {\n                \"/var/lib/postgresql/data\": {}\n            },\n            \"WorkingDir\": \"\",\n            \"Entrypoint\": [\n                \"docker-entrypoint.sh\"\n            ],\n            \"Labels\": {},\n            \"StopSignal\": \"SIGINT\",\n            \"StopTimeout\": 1\n        },\n        \"NetworkSettings\": {\n            \"SandboxID\": \"a826e6c9178fedfb74d6e7b15d8e3768ba576ec31393db621bb2e58fafd3806b\",\n            \"SandboxKey\": \"/var/run/docker/netns/a826e6c9178f\",\n            \"Ports\": {\n                \"5432/tcp\": [\n                    {\n                        \"HostIp\": \"127.0.0.1\",\n                        \"HostPort\": \"54086\"\n                    }\n                ]\n            },\n            \"Networks\": {\n                \"bridge\": {\n                    \"IPAMConfig\": null,\n                    \"Links\": null,\n                    \"Aliases\": null,\n                    \"DriverOpts\": null,\n                    \"GwPriority\": 0,\n                    \"NetworkID\": \"aed51554f8cd8bac69ecd4f073e41e147fda7b458e9d95be2af472651f2e825c\",\n                    \"EndpointID\": \"c8b9569360858a425636ec76623e54074f200bf5ed756ec03b289b03ab6661ee\",\n                    \"Gateway\": \"172.17.0.1\",\n                    \"IPAddress\": \"172.17.0.53\",\n                    \"MacAddress\": \"62:95:93:75:ad:9d\",\n                    \"IPPrefixLen\": 16,\n                    \"IPv6Gateway\": \"\",\n                    \"GlobalIPv6Address\": \"\",\n                    \"GlobalIPv6PrefixLen\": 0,\n                    \"DNSNames\": null\n                }\n            }\n        },\n        \"ImageManifestDescriptor\": {\n            \"mediaType\": \"application/vnd.docker.distribution.manifest.v2+json\",\n            \"digest\": \"sha256:52aada7978f1eef3b6b52a51afb7a3defd69254d00c946cb90d2ceb32b8ffce7\",\n            \"size\": 3246,\n            \"platform\": {\n                \"architecture\": \"arm64\",\n                \"os\": \"linux\",\n                \"variant\": \"v8\"\n            }\n        }\n    }\n]\n"
            }
          }
        }
      ]
    },
    {
      "sqlstate": "42725",
      "condition_name": "ambiguous_function",
      "sources": [
        {
          "id": "src.errcodes.REL_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.calls.REL_10_23",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "00d16d3eb01b71ccf1b245c8f3102f9d0ec9f36fb02777b8dd1b99fcb263040c"
        },
        {
          "id": "src.ambiguous-function.18.6",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/parser/parse_func.c",
          "sha256": "48314eab022297478ac4e49786afaff2621ab7b1d7b50e156668cf477961384f",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/parser/parse_func.c#L570-L577"
        },
        {
          "id": "src.ambiguous-function.10.23",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_10_23",
          "commit": "02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4",
          "path": "src/backend/parser/parse_func.c",
          "sha256": "f1b4af88565ca01dbad2b244cd26b42f34764b3f1343b22a9231e271fb0742f2",
          "url": "https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/parser/parse_func.c#L499-L506"
        },
        {
          "id": "manifest.42725",
          "kind": "local_artifact",
          "source_role": "case_manifest",
          "sha256": "f30aa7905019f99f891ca5dfd53a4c5439f5d363ac7ba6f21cca51decfa78608"
        },
        {
          "id": "snippet-registry.42725",
          "kind": "local_artifact",
          "source_role": "snippet_registry",
          "sha256": "12b590e1d121cc121cf707657e48cbf4a07cbe63cce30780fc3c05043c3a892d"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "statement": "42725 is the ambiguous_function condition in Class 42.",
          "method": "Read fixed errcodes.txt and locked catalogue metadata.",
          "limits": "Identity does not identify every backend call that can reuse this SQLSTATE.",
          "sources": [
            "src.errcodes.REL_18_6"
          ]
        },
        {
          "id": "mechanism.selected-source-path",
          "statement": "The selected ambiguous_function_call follows a resolved PostgreSQL source-call group; other branches can use different dynamic fields.",
          "method": "Trace the REL_18_6 and REL_10_23 source-call records at the locked commits.",
          "limits": "This is one mechanism boundary, not an exhaustive inventory of the code.",
          "sources": [
            "src.ambiguous-function.18.6",
            "src.ambiguous-function.10.23"
          ]
        },
        {
          "id": "runtime.representative-case",
          "statement": "The selected ambiguous_function_call passed on isolated PostgreSQL 18.6 and 10.21 targets.",
          "method": "Run the shared SQL registry and inspect SQLSTATE, severity, state, repair, cleanup, and target stop.",
          "limits": "Scope is limited to these statements, psycopg, and two versions.",
          "sources": [
            "manifest.42725",
            "snippet-registry.42725"
          ],
          "runtime": [
            "runtime.syntax2-42725-latest.latest",
            "runtime.syntax2-42725-pg10.pg10"
          ]
        },
        {
          "id": "versions.catalogue-boundary",
          "statement": "The locked catalogue records 42725 from the 7.4 presence bound through the listed snapshots; runtime scope is 18.6 and 10.21.",
          "method": "Read generated facts, fixed calls, and selected summaries.",
          "limits": "Definition presence is not an exact behavioral introduction; two runtime versions do not prove every intermediate behavior.",
          "sources": [
            "src.errcodes.REL_18_6",
            "src.calls.REL_18_6",
            "src.calls.REL_10_23"
          ]
        }
      ],
      "messages": [
        {
          "id": "message.ambiguous_function_call",
          "primary_template": "function %s is not unique",
          "severity_source": "explicit ERROR",
          "sqlstate": "42725",
          "sources": [
            "src.ambiguous-function.18.6",
            "src.ambiguous-function.10.23"
          ],
          "hint_template": "Could not choose a best candidate function. You might need to add explicit type casts."
        }
      ],
      "usage_evidence": [
        {
          "scope": "selected-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "claim.mechanism.selected-source-path",
            "message.ambiguous_function_call"
          ]
        },
        {
          "scope": "selected-case-18.6-and-10.21",
          "status": "observed_runtime",
          "evidence_ids": [
            "runtime.syntax2-42725-latest.latest",
            "runtime.syntax2-42725-pg10.pg10",
            "claim.runtime.representative-case"
          ]
        }
      ],
      "runtime": [
        {
          "id": "runtime.syntax2-42725-latest.latest",
          "run_id": "syntax2-42725-latest",
          "target": "latest",
          "status": "passed",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "summary_sha256": "7eb983d101b26523ccf85e3f7522493a616cefa46476754f66cd9286b503bc83",
          "raw_sha256": "aae6af67eb1179d5ff825e266a25ff9fbed2d984150a88761130d6519d3e25d9",
          "case_manifest": {
            "id": "manifest.42725",
            "kind": "local_artifact",
            "source_role": "case_manifest",
            "sha256": "f30aa7905019f99f891ca5dfd53a4c5439f5d363ac7ba6f21cca51decfa78608"
          },
          "snippet_registry": {
            "id": "snippet-registry.42725",
            "kind": "local_artifact",
            "source_role": "snippet_registry",
            "sha256": "12b590e1d121cc121cf707657e48cbf4a07cbe63cce30780fc3c05043c3a892d"
          },
          "environment": {
            "TimeZone": "Asia/Shanghai",
            "backend_pid": 30059,
            "binary": {
              "bindir": "/opt/homebrew/Cellar/postgresql@18/18.6/bin",
              "pg_config": "/opt/homebrew/bin/pg_config",
              "pg_config_version": "PostgreSQL 18.6 (Homebrew)",
              "postgres": "/opt/homebrew/Cellar/postgresql@18/18.6/bin/postgres"
            },
            "connection_scope": "runner-owned localhost port",
            "current_user": "runner",
            "docker": {},
            "lc_messages": "C",
            "libpq_version": "18.6",
            "locale": "C.UTF-8",
            "log_destination": "csvlog,jsonlog",
            "log_error_verbosity": "verbose",
            "log_min_error_statement": "error",
            "log_min_messages": "error",
            "logging_collector": "on",
            "machine": "arm64",
            "max_connections": "100",
            "platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O",
            "psycopg_version": "3.3.5",
            "python_version": "3.14.6 (main, Jun 10 2026, 10:03:53) [Clang 21.0.0 (clang-2100.0.123.102)]",
            "server_encoding": "UTF8",
            "server_version": "18.6 (Homebrew)",
            "server_version_num": "180006",
            "target_kind": "latest",
            "wal_level": "logical"
          },
          "cases": [
            "ambiguous_function_call"
          ],
          "observed": {
            "connection_autocommit": true,
            "diagnostic": {
              "column_name": null,
              "constraint_name": null,
              "context": null,
              "datatype_name": null,
              "exception_type": "AmbiguousFunction",
              "internal_position": null,
              "internal_query": null,
              "message_detail": null,
              "message_hint": "Could not choose a best candidate function. You might need to add explicit type casts.",
              "message_primary": "function c42725_ambiguous_function_call.ambiguous_function(unknown) is not unique",
              "schema_name": null,
              "severity": "ERROR",
              "severity_nonlocalized": "ERROR",
              "source_file": "parse_func.c",
              "source_function": "ParseFuncOrColumn",
              "source_line": "577",
              "sqlstate": "42725",
              "statement_position": "8",
              "table_name": null,
              "text": "function c42725_ambiguous_function_call.ambiguous_function(unknown) is not unique\nLINE 1: SELECT \"c42725_ambiguous_function_call\".ambiguous_function('...\n               ^\nHINT:  Could not choose a best candidate function. You might need to add explicit type casts."
            },
            "failed_status": "IDLE",
            "repair_status": "IDLE",
            "repair_value": "uuid"
          },
          "assertions": [
            {
              "expected": "42725",
              "name": "42725 SQLSTATE",
              "observed": "42725",
              "passed": true
            },
            {
              "expected": "ERROR",
              "name": "42725 ERROR severity",
              "observed": "ERROR",
              "passed": true
            },
            {
              "expected": "ambiguous_function(unknown) is not unique",
              "name": "ambiguous function diagnostic names the unresolved signature",
              "observed": "function c42725_ambiguous_function_call.ambiguous_function(unknown) is not unique",
              "passed": true
            },
            {
              "expected": "IDLE",
              "name": "ambiguous function leaves autocommit session usable",
              "observed": "IDLE",
              "passed": true
            },
            {
              "expected": "Could not choose a best candidate function. You might need to add explicit type casts.",
              "name": "parser hint recommends explicit type casts",
              "observed": "Could not choose a best candidate function. You might need to add explicit type casts.",
              "passed": true
            },
            {
              "expected": {
                "status": "IDLE",
                "value": "uuid"
              },
              "name": "explicit uuid cast selects one overload",
              "observed": {
                "error": true,
                "status": "IDLE",
                "value": "uuid"
              },
              "passed": true
            }
          ],
          "cleanup": {
            "errors": [],
            "passed": true
          },
          "target_stop": {
            "argv": [
              "/opt/homebrew/Cellar/postgresql@18/18.6/bin/pg_ctl",
              "-D",
              "<local runtime artifact>",
              "-m",
              "fast",
              "-w",
              "stop"
            ],
            "elapsed_seconds": 0.115,
            "returncode": 0,
            "stderr": "",
            "stdout": "waiting for server to shut down.... done\nserver stopped\n"
          }
        },
        {
          "id": "runtime.syntax2-42725-pg10.pg10",
          "run_id": "syntax2-42725-pg10",
          "target": "pg10",
          "status": "passed",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "summary_sha256": "fd06bb75895662d5ff912d53d42ece8e73a183c5722d9aaf74a48c69d2fe1482",
          "raw_sha256": "3c040a2678f73c59608904f5ec16e4e4724eabb2d889d95771399e66d97d5dcc",
          "case_manifest": {
            "id": "manifest.42725",
            "kind": "local_artifact",
            "source_role": "case_manifest",
            "sha256": "f30aa7905019f99f891ca5dfd53a4c5439f5d363ac7ba6f21cca51decfa78608"
          },
          "snippet_registry": {
            "id": "snippet-registry.42725",
            "kind": "local_artifact",
            "source_role": "snippet_registry",
            "sha256": "12b590e1d121cc121cf707657e48cbf4a07cbe63cce30780fc3c05043c3a892d"
          },
          "environment": {
            "TimeZone": "Etc/UTC",
            "backend_pid": 80,
            "binary": {},
            "connection_scope": "runner-owned localhost port",
            "current_user": "postgres",
            "docker": {
              "architecture": "arm64",
              "command": "/usr/local/bin/docker",
              "digest": "sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
              "id": "sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
              "image": "postgres:10",
              "image_created": "2022-06-23T09:11:18.374607054Z",
              "image_ref": "postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
              "log_destination": "csvlog",
              "os": "linux",
              "repo_digests": [
                "postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc"
              ]
            },
            "lc_messages": "en_US.utf8",
            "libpq_version": "18.6",
            "locale": "C.UTF-8",
            "log_destination": "csvlog",
            "log_error_verbosity": "verbose",
            "log_min_error_statement": "error",
            "log_min_messages": "error",
            "logging_collector": "on",
            "machine": "arm64",
            "max_connections": "100",
            "platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O",
            "psycopg_version": "3.3.5",
            "python_version": "3.14.6 (main, Jun 10 2026, 10:03:53) [Clang 21.0.0 (clang-2100.0.123.102)]",
            "server_encoding": "UTF8",
            "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
            "server_version_num": "100021",
            "target_kind": "pg10",
            "wal_level": "logical"
          },
          "cases": [
            "ambiguous_function_call"
          ],
          "observed": {
            "connection_autocommit": true,
            "diagnostic": {
              "column_name": null,
              "constraint_name": null,
              "context": null,
              "datatype_name": null,
              "exception_type": "AmbiguousFunction",
              "internal_position": null,
              "internal_query": null,
              "message_detail": null,
              "message_hint": "Could not choose a best candidate function. You might need to add explicit type casts.",
              "message_primary": "function c42725_ambiguous_function_call.ambiguous_function(unknown) is not unique",
              "schema_name": null,
              "severity": "ERROR",
              "severity_nonlocalized": "ERROR",
              "source_file": "parse_func.c",
              "source_function": "ParseFuncOrColumn",
              "source_line": "506",
              "sqlstate": "42725",
              "statement_position": "8",
              "table_name": null,
              "text": "function c42725_ambiguous_function_call.ambiguous_function(unknown) is not unique\nLINE 1: SELECT \"c42725_ambiguous_function_call\".ambiguous_function('...\n               ^\nHINT:  Could not choose a best candidate function. You might need to add explicit type casts."
            },
            "failed_status": "IDLE",
            "repair_status": "IDLE",
            "repair_value": "uuid"
          },
          "assertions": [
            {
              "expected": "42725",
              "name": "42725 SQLSTATE",
              "observed": "42725",
              "passed": true
            },
            {
              "expected": "ERROR",
              "name": "42725 ERROR severity",
              "observed": "ERROR",
              "passed": true
            },
            {
              "expected": "ambiguous_function(unknown) is not unique",
              "name": "ambiguous function diagnostic names the unresolved signature",
              "observed": "function c42725_ambiguous_function_call.ambiguous_function(unknown) is not unique",
              "passed": true
            },
            {
              "expected": "IDLE",
              "name": "ambiguous function leaves autocommit session usable",
              "observed": "IDLE",
              "passed": true
            },
            {
              "expected": "Could not choose a best candidate function. You might need to add explicit type casts.",
              "name": "parser hint recommends explicit type casts",
              "observed": "Could not choose a best candidate function. You might need to add explicit type casts.",
              "passed": true
            },
            {
              "expected": {
                "status": "IDLE",
                "value": "uuid"
              },
              "name": "explicit uuid cast selects one overload",
              "observed": {
                "error": true,
                "status": "IDLE",
                "value": "uuid"
              },
              "passed": true
            }
          ],
          "cleanup": {
            "errors": [],
            "passed": true
          },
          "target_stop": {
            "cleanup": {
              "argv": [
                "/usr/local/bin/docker",
                "rm",
                "-f",
                "-v",
                "sqlstate42725_syntax242725pg10_pg10"
              ],
              "elapsed_seconds": 0.293,
              "returncode": 0,
              "stderr": "",
              "stdout": "sqlstate42725_syntax242725pg10_pg10\n"
            },
            "inspect": {
              "argv": [
                "/usr/local/bin/docker",
                "inspect",
                "sqlstate42725_syntax242725pg10_pg10"
              ],
              "elapsed_seconds": 0.02,
              "returncode": 0,
              "stderr": "",
              "stdout": "[\n    {\n        \"Id\": \"01110787e5884e2b18c482d733adcb3c96e553afbf0d036c132972b664a257e8\",\n        \"Created\": \"2026-09-09T16:40:10.42927297Z\",\n        \"Path\": \"docker-entrypoint.sh\",\n        \"Args\": [\n            \"postgres\",\n            \"-c\",\n            \"listen_addresses=*\",\n            \"-c\",\n            \"log_destination=csvlog\",\n            \"-c\",\n            \"logging_collector=on\",\n            \"-c\",\n            \"log_directory=log\",\n            \"-c\",\n            \"log_filename=postgresql-%Y%m%d%H%M%S.log\",\n            \"-c\",\n            \"log_min_messages=error\",\n            \"-c\",\n            \"log_min_error_statement=error\",\n            \"-c\",\n            \"log_error_verbosity=verbose\",\n            \"-c\",\n            \"wal_level=logical\",\n            \"-c\",\n            \"max_wal_senders=10\",\n            \"-c\",\n            \"max_replication_slots=10\"\n        ],\n        \"State\": {\n            \"Status\": \"running\",\n            \"Running\": true,\n            \"Paused\": false,\n            \"Restarting\": false,\n            \"OOMKilled\": false,\n            \"Dead\": false,\n            \"Pid\": 62517,\n            \"ExitCode\": 0,\n            \"Error\": \"\",\n            \"StartedAt\": \"2026-09-09T16:40:10.511758095Z\",\n            \"FinishedAt\": \"0001-01-01T00:00:00Z\"\n        },\n        \"Image\": \"sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc\",\n        \"ResolvConfPath\": \"/var/lib/docker/containers/01110787e5884e2b18c482d733adcb3c96e553afbf0d036c132972b664a257e8/resolv.conf\",\n        \"HostnamePath\": \"/var/lib/docker/containers/01110787e5884e2b18c482d733adcb3c96e553afbf0d036c132972b664a257e8/hostname\",\n        \"HostsPath\": \"/var/lib/docker/containers/01110787e5884e2b18c482d733adcb3c96e553afbf0d036c132972b664a257e8/hosts\",\n        \"LogPath\": \"/var/lib/docker/containers/01110787e5884e2b18c482d733adcb3c96e553afbf0d036c132972b664a257e8/01110787e5884e2b18c482d733adcb3c96e553afbf0d036c132972b664a257e8-json.log\",\n        \"Name\": \"/sqlstate42725_syntax242725pg10_pg10\",\n        \"RestartCount\": 0,\n        \"Driver\": \"overlayfs\",\n        \"Platform\": \"linux\",\n        \"MountLabel\": \"\",\n        \"ProcessLabel\": \"\",\n        \"AppArmorProfile\": \"\",\n        \"ExecIDs\": null,\n        \"HostConfig\": {\n            \"Binds\": null,\n            \"ContainerIDFile\": \"\",\n            \"LogConfig\": {\n                \"Type\": \"json-file\",\n                \"Config\": {}\n            },\n            \"NetworkMode\": \"bridge\",\n            \"PortBindings\": {\n                \"5432/tcp\": [\n                    {\n                        \"HostIp\": \"127.0.0.1\",\n                        \"HostPort\": \"\"\n                    }\n                ]\n            },\n            \"RestartPolicy\": {\n                \"Name\": \"no\",\n                \"MaximumRetryCount\": 0\n            },\n            \"AutoRemove\": false,\n            \"VolumeDriver\": \"\",\n            \"VolumesFrom\": null,\n            \"ConsoleSize\": [\n                0,\n                0\n            ],\n            \"CapAdd\": null,\n            \"CapDrop\": null,\n            \"CgroupnsMode\": \"private\",\n            \"Dns\": null,\n            \"DnsOptions\": [],\n            \"DnsSearch\": [],\n            \"ExtraHosts\": null,\n            \"GroupAdd\": null,\n            \"IpcMode\": \"private\",\n            \"Cgroup\": \"\",\n            \"Links\": null,\n            \"OomScoreAdj\": 0,\n            \"PidMode\": \"\",\n            \"Privileged\": false,\n            \"PublishAllPorts\": false,\n            \"ReadonlyRootfs\": false,\n            \"SecurityOpt\": null,\n            \"UTSMode\": \"\",\n            \"UsernsMode\": \"\",\n            \"ShmSize\": 67108864,\n            \"Runtime\": \"runc\",\n            \"Isolation\": \"\",\n            \"CpuShares\": 0,\n            \"Memory\": 0,\n            \"NanoCpus\": 0,\n            \"CgroupParent\": \"\",\n            \"BlkioWeight\": 0,\n            \"BlkioWeightDevice\": [],\n            \"BlkioDeviceReadBps\": [],\n            \"BlkioDeviceWriteBps\": [],\n            \"BlkioDeviceReadIOps\": [],\n            \"BlkioDeviceWriteIOps\": [],\n            \"CpuPeriod\": 0,\n            \"CpuQuota\": 0,\n            \"CpuRealtimePeriod\": 0,\n            \"CpuRealtimeRuntime\": 0,\n            \"CpusetCpus\": \"\",\n            \"CpusetMems\": \"\",\n            \"Devices\": [],\n            \"DeviceCgroupRules\": null,\n            \"DeviceRequests\": null,\n            \"MemoryReservation\": 0,\n            \"MemorySwap\": 0,\n            \"MemorySwappiness\": null,\n            \"OomKillDisable\": null,\n            \"PidsLimit\": null,\n            \"Ulimits\": [],\n            \"CpuCount\": 0,\n            \"CpuPercent\": 0,\n            \"IOMaximumIOps\": 0,\n            \"IOMaximumBandwidth\": 0,\n            \"MaskedPaths\": [\n                \"/proc/acpi\",\n                \"/proc/asound\",\n                \"/proc/interrupts\",\n                \"/proc/kcore\",\n                \"/proc/keys\",\n                \"/proc/latency_stats\",\n                \"/proc/sched_debug\",\n                \"/proc/scsi\",\n                \"/proc/timer_list\",\n                \"/proc/timer_stats\",\n                \"/sys/devices/virtual/powercap\",\n                \"/sys/firmware\"\n            ],\n            \"ReadonlyPaths\": [\n                \"/proc/bus\",\n                \"/proc/fs\",\n                \"/proc/irq\",\n                \"/proc/sys\",\n                \"/proc/sysrq-trigger\"\n            ]\n        },\n        \"Storage\": {\n            \"RootFS\": {\n                \"Snapshot\": {\n                    \"Name\": \"overlayfs\"\n                }\n            }\n        },\n        \"Mounts\": [\n            {\n                \"Type\": \"volume\",\n                \"Name\": \"7238542b25d3e385d3e7875ab70e6bb80260071fd0848429efbf68b36a41dd1d\",\n                \"Source\": \"/var/lib/docker/volumes/7238542b25d3e385d3e7875ab70e6bb80260071fd0848429efbf68b36a41dd1d/_data\",\n                \"Destination\": \"/var/lib/postgresql/data\",\n                \"Driver\": \"local\",\n                \"Mode\": \"\",\n                \"RW\": true,\n                \"Propagation\": \"\"\n            }\n        ],\n        \"Config\": {\n            \"Hostname\": \"01110787e588\",\n            \"Domainname\": \"\",\n            \"User\": \"\",\n            \"AttachStdin\": false,\n            \"AttachStdout\": false,\n            \"AttachStderr\": false,\n            \"ExposedPorts\": {\n                \"5432/tcp\": {}\n            },\n            \"Tty\": false,\n            \"OpenStdin\": false,\n            \"StdinOnce\": false,\n            \"Env\": [\n                \"POSTGRES_HOST_AUTH_METHOD=trust\",\n                \"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/10/bin\",\n                \"GOSU_VERSION=1.14\",\n                \"LANG=en_US.utf8\",\n                \"PG_MAJOR=10\",\n                \"PG_VERSION=10.21-1.pgdg90+1\",\n                \"PGDATA=/var/lib/postgresql/data\"\n            ],\n            \"Cmd\": [\n                \"postgres\",\n                \"-c\",\n                \"listen_addresses=*\",\n                \"-c\",\n                \"log_destination=csvlog\",\n                \"-c\",\n                \"logging_collector=on\",\n                \"-c\",\n                \"log_directory=log\",\n                \"-c\",\n                \"log_filename=postgresql-%Y%m%d%H%M%S.log\",\n                \"-c\",\n                \"log_min_messages=error\",\n                \"-c\",\n                \"log_min_error_statement=error\",\n                \"-c\",\n                \"log_error_verbosity=verbose\",\n                \"-c\",\n                \"wal_level=logical\",\n                \"-c\",\n                \"max_wal_senders=10\",\n                \"-c\",\n                \"max_replication_slots=10\"\n            ],\n            \"Image\": \"postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc\",\n            \"Volumes\": {\n                \"/var/lib/postgresql/data\": {}\n            },\n            \"WorkingDir\": \"\",\n            \"Entrypoint\": [\n                \"docker-entrypoint.sh\"\n            ],\n            \"Labels\": {},\n            \"StopSignal\": \"SIGINT\",\n            \"StopTimeout\": 1\n        },\n        \"NetworkSettings\": {\n            \"SandboxID\": \"d97f3dbc19c79a93a1db057aaf25068f4425d0ce593a3bf063766baeacf15b40\",\n            \"SandboxKey\": \"/var/run/docker/netns/d97f3dbc19c7\",\n            \"Ports\": {\n                \"5432/tcp\": [\n                    {\n                        \"HostIp\": \"127.0.0.1\",\n                        \"HostPort\": \"54104\"\n                    }\n                ]\n            },\n            \"Networks\": {\n                \"bridge\": {\n                    \"IPAMConfig\": null,\n                    \"Links\": null,\n                    \"Aliases\": null,\n                    \"DriverOpts\": null,\n                    \"GwPriority\": 0,\n                    \"NetworkID\": \"aed51554f8cd8bac69ecd4f073e41e147fda7b458e9d95be2af472651f2e825c\",\n                    \"EndpointID\": \"7e5fd61fc16aebe977f36db2aa43ae3fb45c86ee0dbf53ddd20306c0df7b6af5\",\n                    \"Gateway\": \"172.17.0.1\",\n                    \"IPAddress\": \"172.17.0.53\",\n                    \"MacAddress\": \"9a:33:d5:78:24:c9\",\n                    \"IPPrefixLen\": 16,\n                    \"IPv6Gateway\": \"\",\n                    \"GlobalIPv6Address\": \"\",\n                    \"GlobalIPv6PrefixLen\": 0,\n                    \"DNSNames\": null\n                }\n            }\n        },\n        \"ImageManifestDescriptor\": {\n            \"mediaType\": \"application/vnd.docker.distribution.manifest.v2+json\",\n            \"digest\": \"sha256:52aada7978f1eef3b6b52a51afb7a3defd69254d00c946cb90d2ceb32b8ffce7\",\n            \"size\": 3246,\n            \"platform\": {\n                \"architecture\": \"arm64\",\n                \"os\": \"linux\",\n                \"variant\": \"v8\"\n            }\n        }\n    }\n]\n"
            }
          }
        }
      ]
    },
    {
      "sqlstate": "42803",
      "condition_name": "grouping_error",
      "sources": [
        {
          "id": "src.errcodes.REL_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.calls.REL_10_23",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "00d16d3eb01b71ccf1b245c8f3102f9d0ec9f36fb02777b8dd1b99fcb263040c"
        },
        {
          "id": "src.grouping-error.18.6",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/parser/parse_agg.c",
          "sha256": "6e80a805fddbfc9c7e0f3047b348bf992a20c99f16ce7fee89c7067753027f72",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/parser/parse_agg.c#L1552-L1558"
        },
        {
          "id": "src.grouping-error.10.23",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_10_23",
          "commit": "02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4",
          "path": "src/backend/parser/parse_agg.c",
          "sha256": "4c7e12bba2ffd465eb55d22c2adc593afa97e5a5f9a93045a882afab1401cb28",
          "url": "https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/parser/parse_agg.c#L1356-L1362"
        },
        {
          "id": "src.grouping-functional-dependency.18.6",
          "kind": "upstream_source",
          "source_role": "source_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/catalog/pg_constraint.c",
          "sha256": "0aa324acd355da955f8eb6cec17f1a0138277a8bebd2c6e999cd2a603d3bfa01",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/catalog/pg_constraint.c#L1728-L1778"
        },
        {
          "id": "src.grouping-functional-dependency.10.23",
          "kind": "upstream_source",
          "source_role": "source_context",
          "tag": "REL_10_23",
          "commit": "02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4",
          "path": "src/backend/catalog/pg_constraint.c",
          "sha256": "c90dff2d1d863e6b43102d762cec6e08b6c4ba40458045b525a14b49865d8a65",
          "url": "https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/catalog/pg_constraint.c#L1057-L1107"
        },
        {
          "id": "manifest.42803",
          "kind": "local_artifact",
          "source_role": "case_manifest",
          "sha256": "e34cb132807bb039dc5464b64812e72d2062480867206ca9cdb2fee25c7accc0"
        },
        {
          "id": "snippet-registry.42803",
          "kind": "local_artifact",
          "source_role": "snippet_registry",
          "sha256": "90fe9aa4bccfd8dca5c4b5a1a2e9e792a62a73bc1ef49fe99430fea80e58b5df"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "statement": "42803 is the grouping_error condition in Class 42.",
          "method": "Read fixed errcodes.txt and locked catalogue metadata.",
          "limits": "Identity does not identify every backend call that can reuse this SQLSTATE.",
          "sources": [
            "src.errcodes.REL_18_6"
          ]
        },
        {
          "id": "mechanism.selected-source-path",
          "statement": "The selected grouping_non_grouped_column follows a resolved PostgreSQL source-call group; other branches can use different dynamic fields.",
          "method": "Trace the REL_18_6 and REL_10_23 source-call records at the locked commits.",
          "limits": "This is one mechanism boundary, not an exhaustive inventory of the code.",
          "sources": [
            "src.grouping-error.18.6",
            "src.grouping-error.10.23"
          ]
        },
        {
          "id": "mechanism.reader-boundary",
          "statement": "Grouped output must define one value per group; the inspected functional-dependency exception is proven only when the GROUP BY columns contain every column of the table primary key, while adding label in the selected unconstrained VALUES relation changes report cardinality.",
          "method": "Combine the selected source call, registry SQL, and passed structured assertions.",
          "limits": "The claim describes the selected path and does not generalize to every branch sharing this SQLSTATE.",
          "sources": [
            "src.grouping-error.18.6",
            "src.grouping-error.10.23",
            "src.grouping-functional-dependency.18.6",
            "src.grouping-functional-dependency.10.23",
            "snippet-registry.42803"
          ]
        },
        {
          "id": "mechanism.ordered-set-detail",
          "statement": "The grouping walker adds the DETAIL Direct arguments of an ordered-set aggregate must use only grouped columns only when context->in_agg_direct_args is true; that branch is source-only for this review.",
          "method": "Read the complete fixed parse_agg.c error branch around the selected primary.",
          "limits": "The selected ordinary grouped query did not exercise ordered-set direct arguments.",
          "sources": [
            "src.grouping-error.18.6",
            "src.grouping-error.10.23"
          ]
        },
        {
          "id": "runtime.representative-case",
          "statement": "The selected grouping_non_grouped_column passed on isolated PostgreSQL 18.6 and 10.21 targets.",
          "method": "Run the shared SQL registry and inspect SQLSTATE, severity, state, repair, cleanup, and target stop.",
          "limits": "Scope is limited to these statements, psycopg, and two versions.",
          "sources": [
            "manifest.42803",
            "snippet-registry.42803"
          ],
          "runtime": [
            "runtime.syntax2-42803-latest.latest",
            "runtime.syntax2-42803-pg10.pg10"
          ]
        },
        {
          "id": "versions.catalogue-boundary",
          "statement": "The locked catalogue records 42803 from the 7.4 presence bound through the listed snapshots; runtime scope is 18.6 and 10.21.",
          "method": "Read generated facts, fixed calls, and selected summaries.",
          "limits": "Definition presence is not an exact behavioral introduction; two runtime versions do not prove every intermediate behavior.",
          "sources": [
            "src.errcodes.REL_18_6",
            "src.calls.REL_18_6",
            "src.calls.REL_10_23"
          ]
        }
      ],
      "messages": [
        {
          "id": "message.grouping_non_grouped_column",
          "primary_template": "column \"%s.%s\" must appear in the GROUP BY clause or be used in an aggregate function",
          "severity_source": "explicit ERROR",
          "sqlstate": "42803",
          "detail_variants": [
            {
              "template": "Direct arguments of an ordered-set aggregate must use only grouped columns.",
              "condition": "context->in_agg_direct_args",
              "scope": "source-only ordered-set direct-argument branch",
              "sources": [
                "src.grouping-error.18.6",
                "src.grouping-error.10.23"
              ]
            }
          ],
          "sources": [
            "src.grouping-error.18.6",
            "src.grouping-error.10.23"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "selected-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "claim.mechanism.selected-source-path",
            "message.grouping_non_grouped_column"
          ]
        },
        {
          "scope": "selected-case-18.6-and-10.21",
          "status": "observed_runtime",
          "evidence_ids": [
            "runtime.syntax2-42803-latest.latest",
            "runtime.syntax2-42803-pg10.pg10",
            "claim.runtime.representative-case"
          ]
        }
      ],
      "runtime": [
        {
          "id": "runtime.syntax2-42803-latest.latest",
          "run_id": "syntax2-42803-latest",
          "target": "latest",
          "status": "passed",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "summary_sha256": "3869b8a34fba037b9d4b9c2da39b9ab2bbfd8ad77ffeb6c5b4ea5e7884b4284e",
          "raw_sha256": "3665e3efd3e238030d493a54e012a3c08198f149697f49035a1e9e08a385f3e1",
          "case_manifest": {
            "id": "manifest.42803",
            "kind": "local_artifact",
            "source_role": "case_manifest",
            "sha256": "e34cb132807bb039dc5464b64812e72d2062480867206ca9cdb2fee25c7accc0"
          },
          "snippet_registry": {
            "id": "snippet-registry.42803",
            "kind": "local_artifact",
            "source_role": "snippet_registry",
            "sha256": "90fe9aa4bccfd8dca5c4b5a1a2e9e792a62a73bc1ef49fe99430fea80e58b5df"
          },
          "environment": {
            "TimeZone": "Asia/Shanghai",
            "backend_pid": 29762,
            "binary": {
              "bindir": "/opt/homebrew/Cellar/postgresql@18/18.6/bin",
              "pg_config": "/opt/homebrew/bin/pg_config",
              "pg_config_version": "PostgreSQL 18.6 (Homebrew)",
              "postgres": "/opt/homebrew/Cellar/postgresql@18/18.6/bin/postgres"
            },
            "connection_scope": "runner-owned localhost port",
            "current_user": "runner",
            "docker": {},
            "lc_messages": "C",
            "libpq_version": "18.6",
            "locale": "C.UTF-8",
            "log_destination": "csvlog,jsonlog",
            "log_error_verbosity": "verbose",
            "log_min_error_statement": "error",
            "log_min_messages": "error",
            "logging_collector": "on",
            "machine": "arm64",
            "max_connections": "100",
            "platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O",
            "psycopg_version": "3.3.5",
            "python_version": "3.14.6 (main, Jun 10 2026, 10:03:53) [Clang 21.0.0 (clang-2100.0.123.102)]",
            "server_encoding": "UTF8",
            "server_version": "18.6 (Homebrew)",
            "server_version_num": "180006",
            "target_kind": "latest",
            "wal_level": "logical"
          },
          "cases": [
            "grouping_non_grouped_column"
          ],
          "observed": {
            "connection_autocommit": true,
            "diagnostic": {
              "column_name": null,
              "constraint_name": null,
              "context": null,
              "datatype_name": null,
              "exception_type": "GroupingError",
              "internal_position": null,
              "internal_query": null,
              "message_detail": null,
              "message_hint": null,
              "message_primary": "column \"grouping_rows.label\" must appear in the GROUP BY clause or be used in an aggregate function",
              "schema_name": null,
              "severity": "ERROR",
              "severity_nonlocalized": "ERROR",
              "source_file": "parse_agg.c",
              "source_function": "substitute_grouped_columns_mutator",
              "source_line": "1558",
              "sqlstate": "42803",
              "statement_position": "18",
              "table_name": null,
              "text": "column \"grouping_rows.label\" must appear in the GROUP BY clause or be used in an aggregate function\nLINE 1: SELECT category, label, count(*) FROM (VALUES (1, 'a'), (1, ...\n                         ^"
            },
            "failed_status": "IDLE",
            "repair_rows": [
              [
                1,
                "a",
                1
              ],
              [
                1,
                "b",
                1
              ]
            ],
            "repair_status": "IDLE"
          },
          "assertions": [
            {
              "expected": "42803",
              "name": "42803 SQLSTATE",
              "observed": "42803",
              "passed": true
            },
            {
              "expected": "ERROR",
              "name": "42803 ERROR severity",
              "observed": "ERROR",
              "passed": true
            },
            {
              "expected": "grouping_rows.label must appear...",
              "name": "grouping diagnostic names the ungrouped column",
              "observed": "column \"grouping_rows.label\" must appear in the GROUP BY clause or be used in an aggregate function",
              "passed": true
            },
            {
              "expected": "IDLE",
              "name": "grouping error leaves autocommit session usable",
              "observed": "IDLE",
              "passed": true
            },
            {
              "expected": {
                "rows": [
                  [
                    1,
                    "a",
                    1
                  ],
                  [
                    1,
                    "b",
                    1
                  ]
                ],
                "status": "IDLE"
              },
              "name": "grouping every selected nonaggregate repairs the query",
              "observed": {
                "error": true,
                "rows": [
                  [
                    1,
                    "a",
                    1
                  ],
                  [
                    1,
                    "b",
                    1
                  ]
                ],
                "status": "IDLE"
              },
              "passed": true
            }
          ],
          "cleanup": {
            "errors": [],
            "passed": true
          },
          "target_stop": {
            "argv": [
              "/opt/homebrew/Cellar/postgresql@18/18.6/bin/pg_ctl",
              "-D",
              "<local runtime artifact>",
              "-m",
              "fast",
              "-w",
              "stop"
            ],
            "elapsed_seconds": 0.106,
            "returncode": 0,
            "stderr": "",
            "stdout": "waiting for server to shut down.... done\nserver stopped\n"
          }
        },
        {
          "id": "runtime.syntax2-42803-pg10.pg10",
          "run_id": "syntax2-42803-pg10",
          "target": "pg10",
          "status": "passed",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "summary_sha256": "986f9a1306927403b911f43fc9763d426ab747641908883bd9b6cf33956a6f1f",
          "raw_sha256": "67b9f9426fd251f16c63c5878b602cc91ced819d0aa29d6de572a78e7d2d5301",
          "case_manifest": {
            "id": "manifest.42803",
            "kind": "local_artifact",
            "source_role": "case_manifest",
            "sha256": "e34cb132807bb039dc5464b64812e72d2062480867206ca9cdb2fee25c7accc0"
          },
          "snippet_registry": {
            "id": "snippet-registry.42803",
            "kind": "local_artifact",
            "source_role": "snippet_registry",
            "sha256": "90fe9aa4bccfd8dca5c4b5a1a2e9e792a62a73bc1ef49fe99430fea80e58b5df"
          },
          "environment": {
            "TimeZone": "Etc/UTC",
            "backend_pid": 79,
            "binary": {},
            "connection_scope": "runner-owned localhost port",
            "current_user": "postgres",
            "docker": {
              "architecture": "arm64",
              "command": "/usr/local/bin/docker",
              "digest": "sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
              "id": "sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
              "image": "postgres:10",
              "image_created": "2022-06-23T09:11:18.374607054Z",
              "image_ref": "postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
              "log_destination": "csvlog",
              "os": "linux",
              "repo_digests": [
                "postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc"
              ]
            },
            "lc_messages": "en_US.utf8",
            "libpq_version": "18.6",
            "locale": "C.UTF-8",
            "log_destination": "csvlog",
            "log_error_verbosity": "verbose",
            "log_min_error_statement": "error",
            "log_min_messages": "error",
            "logging_collector": "on",
            "machine": "arm64",
            "max_connections": "100",
            "platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O",
            "psycopg_version": "3.3.5",
            "python_version": "3.14.6 (main, Jun 10 2026, 10:03:53) [Clang 21.0.0 (clang-2100.0.123.102)]",
            "server_encoding": "UTF8",
            "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
            "server_version_num": "100021",
            "target_kind": "pg10",
            "wal_level": "logical"
          },
          "cases": [
            "grouping_non_grouped_column"
          ],
          "observed": {
            "connection_autocommit": true,
            "diagnostic": {
              "column_name": null,
              "constraint_name": null,
              "context": null,
              "datatype_name": null,
              "exception_type": "GroupingError",
              "internal_position": null,
              "internal_query": null,
              "message_detail": null,
              "message_hint": null,
              "message_primary": "column \"grouping_rows.label\" must appear in the GROUP BY clause or be used in an aggregate function",
              "schema_name": null,
              "severity": "ERROR",
              "severity_nonlocalized": "ERROR",
              "source_file": "parse_agg.c",
              "source_function": "check_ungrouped_columns_walker",
              "source_line": "1362",
              "sqlstate": "42803",
              "statement_position": "18",
              "table_name": null,
              "text": "column \"grouping_rows.label\" must appear in the GROUP BY clause or be used in an aggregate function\nLINE 1: SELECT category, label, count(*) FROM (VALUES (1, 'a'), (1, ...\n                         ^"
            },
            "failed_status": "IDLE",
            "repair_rows": [
              [
                1,
                "a",
                1
              ],
              [
                1,
                "b",
                1
              ]
            ],
            "repair_status": "IDLE"
          },
          "assertions": [
            {
              "expected": "42803",
              "name": "42803 SQLSTATE",
              "observed": "42803",
              "passed": true
            },
            {
              "expected": "ERROR",
              "name": "42803 ERROR severity",
              "observed": "ERROR",
              "passed": true
            },
            {
              "expected": "grouping_rows.label must appear...",
              "name": "grouping diagnostic names the ungrouped column",
              "observed": "column \"grouping_rows.label\" must appear in the GROUP BY clause or be used in an aggregate function",
              "passed": true
            },
            {
              "expected": "IDLE",
              "name": "grouping error leaves autocommit session usable",
              "observed": "IDLE",
              "passed": true
            },
            {
              "expected": {
                "rows": [
                  [
                    1,
                    "a",
                    1
                  ],
                  [
                    1,
                    "b",
                    1
                  ]
                ],
                "status": "IDLE"
              },
              "name": "grouping every selected nonaggregate repairs the query",
              "observed": {
                "error": true,
                "rows": [
                  [
                    1,
                    "a",
                    1
                  ],
                  [
                    1,
                    "b",
                    1
                  ]
                ],
                "status": "IDLE"
              },
              "passed": true
            }
          ],
          "cleanup": {
            "errors": [],
            "passed": true
          },
          "target_stop": {
            "cleanup": {
              "argv": [
                "/usr/local/bin/docker",
                "rm",
                "-f",
                "-v",
                "sqlstate42803_syntax242803pg10_pg10"
              ],
              "elapsed_seconds": 0.277,
              "returncode": 0,
              "stderr": "",
              "stdout": "sqlstate42803_syntax242803pg10_pg10\n"
            },
            "inspect": {
              "argv": [
                "/usr/local/bin/docker",
                "inspect",
                "sqlstate42803_syntax242803pg10_pg10"
              ],
              "elapsed_seconds": 0.02,
              "returncode": 0,
              "stderr": "",
              "stdout": "[\n    {\n        \"Id\": \"2e7ca2753c4946740c949e3cc83073a89239fee7de639fbb84f281559645683d\",\n        \"Created\": \"2026-09-09T16:40:11.885674096Z\",\n        \"Path\": \"docker-entrypoint.sh\",\n        \"Args\": [\n            \"postgres\",\n            \"-c\",\n            \"listen_addresses=*\",\n            \"-c\",\n            \"log_destination=csvlog\",\n            \"-c\",\n            \"logging_collector=on\",\n            \"-c\",\n            \"log_directory=log\",\n            \"-c\",\n            \"log_filename=postgresql-%Y%m%d%H%M%S.log\",\n            \"-c\",\n            \"log_min_messages=error\",\n            \"-c\",\n            \"log_min_error_statement=error\",\n            \"-c\",\n            \"log_error_verbosity=verbose\",\n            \"-c\",\n            \"wal_level=logical\",\n            \"-c\",\n            \"max_wal_senders=10\",\n            \"-c\",\n            \"max_replication_slots=10\"\n        ],\n        \"State\": {\n            \"Status\": \"running\",\n            \"Running\": true,\n            \"Paused\": false,\n            \"Restarting\": false,\n            \"OOMKilled\": false,\n            \"Dead\": false,\n            \"Pid\": 62691,\n            \"ExitCode\": 0,\n            \"Error\": \"\",\n            \"StartedAt\": \"2026-09-09T16:40:11.961642638Z\",\n            \"FinishedAt\": \"0001-01-01T00:00:00Z\"\n        },\n        \"Image\": \"sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc\",\n        \"ResolvConfPath\": \"/var/lib/docker/containers/2e7ca2753c4946740c949e3cc83073a89239fee7de639fbb84f281559645683d/resolv.conf\",\n        \"HostnamePath\": \"/var/lib/docker/containers/2e7ca2753c4946740c949e3cc83073a89239fee7de639fbb84f281559645683d/hostname\",\n        \"HostsPath\": \"/var/lib/docker/containers/2e7ca2753c4946740c949e3cc83073a89239fee7de639fbb84f281559645683d/hosts\",\n        \"LogPath\": \"/var/lib/docker/containers/2e7ca2753c4946740c949e3cc83073a89239fee7de639fbb84f281559645683d/2e7ca2753c4946740c949e3cc83073a89239fee7de639fbb84f281559645683d-json.log\",\n        \"Name\": \"/sqlstate42803_syntax242803pg10_pg10\",\n        \"RestartCount\": 0,\n        \"Driver\": \"overlayfs\",\n        \"Platform\": \"linux\",\n        \"MountLabel\": \"\",\n        \"ProcessLabel\": \"\",\n        \"AppArmorProfile\": \"\",\n        \"ExecIDs\": null,\n        \"HostConfig\": {\n            \"Binds\": null,\n            \"ContainerIDFile\": \"\",\n            \"LogConfig\": {\n                \"Type\": \"json-file\",\n                \"Config\": {}\n            },\n            \"NetworkMode\": \"bridge\",\n            \"PortBindings\": {\n                \"5432/tcp\": [\n                    {\n                        \"HostIp\": \"127.0.0.1\",\n                        \"HostPort\": \"\"\n                    }\n                ]\n            },\n            \"RestartPolicy\": {\n                \"Name\": \"no\",\n                \"MaximumRetryCount\": 0\n            },\n            \"AutoRemove\": false,\n            \"VolumeDriver\": \"\",\n            \"VolumesFrom\": null,\n            \"ConsoleSize\": [\n                0,\n                0\n            ],\n            \"CapAdd\": null,\n            \"CapDrop\": null,\n            \"CgroupnsMode\": \"private\",\n            \"Dns\": null,\n            \"DnsOptions\": [],\n            \"DnsSearch\": [],\n            \"ExtraHosts\": null,\n            \"GroupAdd\": null,\n            \"IpcMode\": \"private\",\n            \"Cgroup\": \"\",\n            \"Links\": null,\n            \"OomScoreAdj\": 0,\n            \"PidMode\": \"\",\n            \"Privileged\": false,\n            \"PublishAllPorts\": false,\n            \"ReadonlyRootfs\": false,\n            \"SecurityOpt\": null,\n            \"UTSMode\": \"\",\n            \"UsernsMode\": \"\",\n            \"ShmSize\": 67108864,\n            \"Runtime\": \"runc\",\n            \"Isolation\": \"\",\n            \"CpuShares\": 0,\n            \"Memory\": 0,\n            \"NanoCpus\": 0,\n            \"CgroupParent\": \"\",\n            \"BlkioWeight\": 0,\n            \"BlkioWeightDevice\": [],\n            \"BlkioDeviceReadBps\": [],\n            \"BlkioDeviceWriteBps\": [],\n            \"BlkioDeviceReadIOps\": [],\n            \"BlkioDeviceWriteIOps\": [],\n            \"CpuPeriod\": 0,\n            \"CpuQuota\": 0,\n            \"CpuRealtimePeriod\": 0,\n            \"CpuRealtimeRuntime\": 0,\n            \"CpusetCpus\": \"\",\n            \"CpusetMems\": \"\",\n            \"Devices\": [],\n            \"DeviceCgroupRules\": null,\n            \"DeviceRequests\": null,\n            \"MemoryReservation\": 0,\n            \"MemorySwap\": 0,\n            \"MemorySwappiness\": null,\n            \"OomKillDisable\": null,\n            \"PidsLimit\": null,\n            \"Ulimits\": [],\n            \"CpuCount\": 0,\n            \"CpuPercent\": 0,\n            \"IOMaximumIOps\": 0,\n            \"IOMaximumBandwidth\": 0,\n            \"MaskedPaths\": [\n                \"/proc/acpi\",\n                \"/proc/asound\",\n                \"/proc/interrupts\",\n                \"/proc/kcore\",\n                \"/proc/keys\",\n                \"/proc/latency_stats\",\n                \"/proc/sched_debug\",\n                \"/proc/scsi\",\n                \"/proc/timer_list\",\n                \"/proc/timer_stats\",\n                \"/sys/devices/virtual/powercap\",\n                \"/sys/firmware\"\n            ],\n            \"ReadonlyPaths\": [\n                \"/proc/bus\",\n                \"/proc/fs\",\n                \"/proc/irq\",\n                \"/proc/sys\",\n                \"/proc/sysrq-trigger\"\n            ]\n        },\n        \"Storage\": {\n            \"RootFS\": {\n                \"Snapshot\": {\n                    \"Name\": \"overlayfs\"\n                }\n            }\n        },\n        \"Mounts\": [\n            {\n                \"Type\": \"volume\",\n                \"Name\": \"86e7d9a024c8320d8ebe1851f2b6deac30d179b626747b0f98e4a84babe7c041\",\n                \"Source\": \"/var/lib/docker/volumes/86e7d9a024c8320d8ebe1851f2b6deac30d179b626747b0f98e4a84babe7c041/_data\",\n                \"Destination\": \"/var/lib/postgresql/data\",\n                \"Driver\": \"local\",\n                \"Mode\": \"\",\n                \"RW\": true,\n                \"Propagation\": \"\"\n            }\n        ],\n        \"Config\": {\n            \"Hostname\": \"2e7ca2753c49\",\n            \"Domainname\": \"\",\n            \"User\": \"\",\n            \"AttachStdin\": false,\n            \"AttachStdout\": false,\n            \"AttachStderr\": false,\n            \"ExposedPorts\": {\n                \"5432/tcp\": {}\n            },\n            \"Tty\": false,\n            \"OpenStdin\": false,\n            \"StdinOnce\": false,\n            \"Env\": [\n                \"POSTGRES_HOST_AUTH_METHOD=trust\",\n                \"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/10/bin\",\n                \"GOSU_VERSION=1.14\",\n                \"LANG=en_US.utf8\",\n                \"PG_MAJOR=10\",\n                \"PG_VERSION=10.21-1.pgdg90+1\",\n                \"PGDATA=/var/lib/postgresql/data\"\n            ],\n            \"Cmd\": [\n                \"postgres\",\n                \"-c\",\n                \"listen_addresses=*\",\n                \"-c\",\n                \"log_destination=csvlog\",\n                \"-c\",\n                \"logging_collector=on\",\n                \"-c\",\n                \"log_directory=log\",\n                \"-c\",\n                \"log_filename=postgresql-%Y%m%d%H%M%S.log\",\n                \"-c\",\n                \"log_min_messages=error\",\n                \"-c\",\n                \"log_min_error_statement=error\",\n                \"-c\",\n                \"log_error_verbosity=verbose\",\n                \"-c\",\n                \"wal_level=logical\",\n                \"-c\",\n                \"max_wal_senders=10\",\n                \"-c\",\n                \"max_replication_slots=10\"\n            ],\n            \"Image\": \"postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc\",\n            \"Volumes\": {\n                \"/var/lib/postgresql/data\": {}\n            },\n            \"WorkingDir\": \"\",\n            \"Entrypoint\": [\n                \"docker-entrypoint.sh\"\n            ],\n            \"Labels\": {},\n            \"StopSignal\": \"SIGINT\",\n            \"StopTimeout\": 1\n        },\n        \"NetworkSettings\": {\n            \"SandboxID\": \"c3330f4c643b29dfcff0825c620ae0f96c499fef4421d454f3aa00f536588dc5\",\n            \"SandboxKey\": \"/var/run/docker/netns/c3330f4c643b\",\n            \"Ports\": {\n                \"5432/tcp\": [\n                    {\n                        \"HostIp\": \"127.0.0.1\",\n                        \"HostPort\": \"54119\"\n                    }\n                ]\n            },\n            \"Networks\": {\n                \"bridge\": {\n                    \"IPAMConfig\": null,\n                    \"Links\": null,\n                    \"Aliases\": null,\n                    \"DriverOpts\": null,\n                    \"GwPriority\": 0,\n                    \"NetworkID\": \"aed51554f8cd8bac69ecd4f073e41e147fda7b458e9d95be2af472651f2e825c\",\n                    \"EndpointID\": \"941ead733488a9fb8ca31ba38104063a88a07f3de48f2aecc230ccfe33851ddc\",\n                    \"Gateway\": \"172.17.0.1\",\n                    \"IPAddress\": \"172.17.0.53\",\n                    \"MacAddress\": \"3e:fa:97:94:30:46\",\n                    \"IPPrefixLen\": 16,\n                    \"IPv6Gateway\": \"\",\n                    \"GlobalIPv6Address\": \"\",\n                    \"GlobalIPv6PrefixLen\": 0,\n                    \"DNSNames\": null\n                }\n            }\n        },\n        \"ImageManifestDescriptor\": {\n            \"mediaType\": \"application/vnd.docker.distribution.manifest.v2+json\",\n            \"digest\": \"sha256:52aada7978f1eef3b6b52a51afb7a3defd69254d00c946cb90d2ceb32b8ffce7\",\n            \"size\": 3246,\n            \"platform\": {\n                \"architecture\": \"arm64\",\n                \"os\": \"linux\",\n                \"variant\": \"v8\"\n            }\n        }\n    }\n]\n"
            }
          }
        }
      ]
    },
    {
      "sqlstate": "42804",
      "condition_name": "datatype_mismatch",
      "sources": [
        {
          "id": "src.errcodes.REL_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.calls.REL_10_23",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "00d16d3eb01b71ccf1b245c8f3102f9d0ec9f36fb02777b8dd1b99fcb263040c"
        },
        {
          "id": "src.datatype-default.18.6",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/catalog/heap.c",
          "sha256": "e720ee58279590793edd0985b3c910970ef56e7361b8ef92e245370587e02a0e",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/catalog/heap.c#L3413-L3420"
        },
        {
          "id": "src.datatype-default.10.23",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_10_23",
          "commit": "02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4",
          "path": "src/backend/catalog/heap.c",
          "sha256": "285e1e2f8024acb58497735bcbd8e605e7cfdd224e442becdee6a5b0e7ac7cf6",
          "url": "https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/catalog/heap.c#L2679-L2686"
        },
        {
          "id": "src.assignment-target.18.6",
          "kind": "upstream_source",
          "source_role": "source_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/parser/parse_target.c",
          "sha256": "4f0cda351acc3e2854bf55514e69cf8b7de6ad82e1535045e4523581ca0d943c",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/parser/parse_target.c#L575-L596"
        },
        {
          "id": "src.assignment-target.10.23",
          "kind": "upstream_source",
          "source_role": "source_context",
          "tag": "REL_10_23",
          "commit": "02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4",
          "path": "src/backend/parser/parse_target.c",
          "sha256": "808bfadd7717d711bc71eb85b7ecd343c742ccc8f6f3087164ed20da098b6d7d",
          "url": "https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/parser/parse_target.c#L570-L596"
        },
        {
          "id": "src.common-type.18.6",
          "kind": "upstream_source",
          "source_role": "source_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/parser/parse_coerce.c",
          "sha256": "6ac3ddab06edff28e9a694c64fb7f559315cf488bfa4392bc14c24e559f6bd2e",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/parser/parse_coerce.c#L1327-L1425"
        },
        {
          "id": "src.common-type.10.23",
          "kind": "upstream_source",
          "source_role": "source_context",
          "tag": "REL_10_23",
          "commit": "02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4",
          "path": "src/backend/parser/parse_coerce.c",
          "sha256": "ed778c872fe4f2b8742828795566c3eaa24e7af3ce747fbf844c374d673593d3",
          "url": "https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/parser/parse_coerce.c#L1217-L1311"
        },
        {
          "id": "src.common-coerce.18.6",
          "kind": "upstream_source",
          "source_role": "source_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/parser/parse_coerce.c",
          "sha256": "6ac3ddab06edff28e9a694c64fb7f559315cf488bfa4392bc14c24e559f6bd2e",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/parser/parse_coerce.c#L1564-L1593"
        },
        {
          "id": "src.common-coerce.10.23",
          "kind": "upstream_source",
          "source_role": "source_context",
          "tag": "REL_10_23",
          "commit": "02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4",
          "path": "src/backend/parser/parse_coerce.c",
          "sha256": "ed778c872fe4f2b8742828795566c3eaa24e7af3ce747fbf844c374d673593d3",
          "url": "https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/parser/parse_coerce.c#L1349-L1378"
        },
        {
          "id": "manifest.42804",
          "kind": "local_artifact",
          "source_role": "case_manifest",
          "sha256": "05413a4b7a2096ddd8755efc43e853413838383fc32d89f73c769917ebada6f9"
        },
        {
          "id": "snippet-registry.42804",
          "kind": "local_artifact",
          "source_role": "snippet_registry",
          "sha256": "614d9ba401e016a67127a3daf08dd1b70139fa54ef26037c32ad668a5c40873b"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "statement": "42804 is the datatype_mismatch condition in Class 42.",
          "method": "Read fixed errcodes.txt and locked catalogue metadata.",
          "limits": "Identity does not identify every backend call that can reuse this SQLSTATE.",
          "sources": [
            "src.errcodes.REL_18_6"
          ]
        },
        {
          "id": "mechanism.selected-source-path",
          "statement": "The selected default_type_mismatch follows a resolved PostgreSQL source-call group; other branches can use different dynamic fields.",
          "method": "Trace the REL_18_6 and REL_10_23 source-call records at the locked commits.",
          "limits": "This is one mechanism boundary, not an exhaustive inventory of the code.",
          "sources": [
            "src.datatype-default.18.6",
            "src.datatype-default.10.23"
          ]
        },
        {
          "id": "mechanism.reader-boundary",
          "statement": "Definition, target-column assignment, and CASE/UNION common-type contexts must agree on types; the fixed assignment and common-type branches are distinct from 22P02 input rejection and 42846 inability to coerce.",
          "method": "Combine the selected source call, registry SQL, and passed structured assertions.",
          "limits": "The claim describes the selected path and does not generalize to every branch sharing this SQLSTATE.",
          "sources": [
            "src.datatype-default.18.6",
            "src.datatype-default.10.23",
            "src.assignment-target.18.6",
            "src.assignment-target.10.23",
            "src.common-type.18.6",
            "src.common-type.10.23",
            "src.common-coerce.18.6",
            "src.common-coerce.10.23",
            "snippet-registry.42804"
          ]
        },
        {
          "id": "mechanism.assignment-and-common-type",
          "statement": "transformAssignedExpr raises 42804 when target-column coercion fails, while select_common_type raises 42804 when CASE/UNION inputs have incompatible type categories; a later failed coercion to an already selected common type is 42846.",
          "method": "Read the complete fixed parse_target.c and parse_coerce.c branches in both locked source snapshots.",
          "limits": "These are source-backed variants; the selected runtime exercised only the default-expression branch.",
          "sources": [
            "src.assignment-target.18.6",
            "src.assignment-target.10.23",
            "src.common-type.18.6",
            "src.common-type.10.23",
            "src.common-coerce.18.6",
            "src.common-coerce.10.23"
          ]
        },
        {
          "id": "runtime.representative-case",
          "statement": "The selected default_type_mismatch passed on isolated PostgreSQL 18.6 and 10.21 targets.",
          "method": "Run the shared SQL registry and inspect SQLSTATE, severity, state, repair, cleanup, and target stop.",
          "limits": "Scope is limited to these statements, psycopg, and two versions.",
          "sources": [
            "manifest.42804",
            "snippet-registry.42804"
          ],
          "runtime": [
            "runtime.syntax2-42804-latest.latest",
            "runtime.syntax2-42804-pg10.pg10"
          ]
        },
        {
          "id": "versions.catalogue-boundary",
          "statement": "The locked catalogue records 42804 from the 7.4 presence bound through the listed snapshots; runtime scope is 18.6 and 10.21.",
          "method": "Read generated facts, fixed calls, and selected summaries.",
          "limits": "Definition presence is not an exact behavioral introduction; two runtime versions do not prove every intermediate behavior.",
          "sources": [
            "src.errcodes.REL_18_6",
            "src.calls.REL_18_6",
            "src.calls.REL_10_23"
          ]
        }
      ],
      "messages": [
        {
          "id": "message.default_type_mismatch",
          "primary_template": "column \"%s\" is of type %s but default expression is of type %s",
          "severity_source": "explicit ERROR",
          "sqlstate": "42804",
          "sources": [
            "src.datatype-default.18.6",
            "src.datatype-default.10.23"
          ],
          "hint_template": "You will need to rewrite or cast the expression."
        },
        {
          "id": "message.assignment_type_mismatch",
          "primary_template": "column \"%s\" is of type %s but expression is of type %s",
          "severity_source": "explicit ERROR",
          "sqlstate": "42804",
          "sources": [
            "src.assignment-target.18.6",
            "src.assignment-target.10.23"
          ],
          "hint_template": "You will need to rewrite or cast the expression."
        },
        {
          "id": "message.common_type_mismatch",
          "primary_template": "%s types %s and %s cannot be matched",
          "severity_source": "explicit ERROR",
          "sqlstate": "42804",
          "scope": "CASE/UNION and similar common-type selection contexts",
          "sources": [
            "src.common-type.18.6",
            "src.common-type.10.23"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "selected-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "claim.mechanism.selected-source-path",
            "message.default_type_mismatch"
          ]
        },
        {
          "scope": "selected-case-18.6-and-10.21",
          "status": "observed_runtime",
          "evidence_ids": [
            "runtime.syntax2-42804-latest.latest",
            "runtime.syntax2-42804-pg10.pg10",
            "claim.runtime.representative-case"
          ]
        }
      ],
      "runtime": [
        {
          "id": "runtime.syntax2-42804-latest.latest",
          "run_id": "syntax2-42804-latest",
          "target": "latest",
          "status": "passed",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "summary_sha256": "fcb8c1ffc71d0018c42bdc6cae3aa4cfcbf7b0783a058c899ff5c7e1d3f7ca6a",
          "raw_sha256": "80e9dbafb1a45c96b8a6e104b704a9536fef7c7e93e208b7e47663df03846c12",
          "case_manifest": {
            "id": "manifest.42804",
            "kind": "local_artifact",
            "source_role": "case_manifest",
            "sha256": "05413a4b7a2096ddd8755efc43e853413838383fc32d89f73c769917ebada6f9"
          },
          "snippet_registry": {
            "id": "snippet-registry.42804",
            "kind": "local_artifact",
            "source_role": "snippet_registry",
            "sha256": "614d9ba401e016a67127a3daf08dd1b70139fa54ef26037c32ad668a5c40873b"
          },
          "environment": {
            "TimeZone": "Asia/Shanghai",
            "backend_pid": 29825,
            "binary": {
              "bindir": "/opt/homebrew/Cellar/postgresql@18/18.6/bin",
              "pg_config": "/opt/homebrew/bin/pg_config",
              "pg_config_version": "PostgreSQL 18.6 (Homebrew)",
              "postgres": "/opt/homebrew/Cellar/postgresql@18/18.6/bin/postgres"
            },
            "connection_scope": "runner-owned localhost port",
            "current_user": "runner",
            "docker": {},
            "lc_messages": "C",
            "libpq_version": "18.6",
            "locale": "C.UTF-8",
            "log_destination": "csvlog,jsonlog",
            "log_error_verbosity": "verbose",
            "log_min_error_statement": "error",
            "log_min_messages": "error",
            "logging_collector": "on",
            "machine": "arm64",
            "max_connections": "100",
            "platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O",
            "psycopg_version": "3.3.5",
            "python_version": "3.14.6 (main, Jun 10 2026, 10:03:53) [Clang 21.0.0 (clang-2100.0.123.102)]",
            "server_encoding": "UTF8",
            "server_version": "18.6 (Homebrew)",
            "server_version_num": "180006",
            "target_kind": "latest",
            "wal_level": "logical"
          },
          "cases": [
            "default_type_mismatch"
          ],
          "observed": {
            "connection_autocommit": true,
            "diagnostic": {
              "column_name": null,
              "constraint_name": null,
              "context": null,
              "datatype_name": null,
              "exception_type": "DatatypeMismatch",
              "internal_position": null,
              "internal_query": null,
              "message_detail": null,
              "message_hint": "You will need to rewrite or cast the expression.",
              "message_primary": "column \"value\" is of type integer but default expression is of type text",
              "schema_name": null,
              "severity": "ERROR",
              "severity_nonlocalized": "ERROR",
              "source_file": "heap.c",
              "source_function": "cookDefault",
              "source_line": "3420",
              "sqlstate": "42804",
              "statement_position": null,
              "table_name": null,
              "text": "column \"value\" is of type integer but default expression is of type text\nHINT:  You will need to rewrite or cast the expression."
            },
            "failed_status": "IDLE",
            "repair_status": "IDLE",
            "repair_value": 1
          },
          "assertions": [
            {
              "expected": "42804",
              "name": "42804 SQLSTATE",
              "observed": "42804",
              "passed": true
            },
            {
              "expected": "ERROR",
              "name": "42804 ERROR severity",
              "observed": "ERROR",
              "passed": true
            },
            {
              "expected": "column \"value\" is of type integer but default expression is of type text",
              "name": "42804 primary diagnostic",
              "observed": "column \"value\" is of type integer but default expression is of type text",
              "passed": true
            },
            {
              "expected": "You will need to rewrite or cast the expression.",
              "name": "datatype mismatch preserves the cast/rewrite hint",
              "observed": "You will need to rewrite or cast the expression.",
              "passed": true
            },
            {
              "expected": "IDLE",
              "name": "datatype mismatch leaves autocommit session usable",
              "observed": "IDLE",
              "passed": true
            },
            {
              "expected": {
                "status": "IDLE",
                "value": 1
              },
              "name": "matching default expression repairs table definition",
              "observed": {
                "error": true,
                "status": "IDLE",
                "value": 1
              },
              "passed": true
            }
          ],
          "cleanup": {
            "errors": [],
            "passed": true
          },
          "target_stop": {
            "argv": [
              "/opt/homebrew/Cellar/postgresql@18/18.6/bin/pg_ctl",
              "-D",
              "<local runtime artifact>",
              "-m",
              "fast",
              "-w",
              "stop"
            ],
            "elapsed_seconds": 0.116,
            "returncode": 0,
            "stderr": "",
            "stdout": "waiting for server to shut down.... done\nserver stopped\n"
          }
        },
        {
          "id": "runtime.syntax2-42804-pg10.pg10",
          "run_id": "syntax2-42804-pg10",
          "target": "pg10",
          "status": "passed",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "summary_sha256": "43c38fc6ac8845bc5b72d1897be9d20f82528f70a495a25debdab32152c90783",
          "raw_sha256": "a04f19ae59de9d4656844f1fbebe08820ab41fb6a6f0ed512f6ea3a712410d47",
          "case_manifest": {
            "id": "manifest.42804",
            "kind": "local_artifact",
            "source_role": "case_manifest",
            "sha256": "05413a4b7a2096ddd8755efc43e853413838383fc32d89f73c769917ebada6f9"
          },
          "snippet_registry": {
            "id": "snippet-registry.42804",
            "kind": "local_artifact",
            "source_role": "snippet_registry",
            "sha256": "614d9ba401e016a67127a3daf08dd1b70139fa54ef26037c32ad668a5c40873b"
          },
          "environment": {
            "TimeZone": "Etc/UTC",
            "backend_pid": 79,
            "binary": {},
            "connection_scope": "runner-owned localhost port",
            "current_user": "postgres",
            "docker": {
              "architecture": "arm64",
              "command": "/usr/local/bin/docker",
              "digest": "sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
              "id": "sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
              "image": "postgres:10",
              "image_created": "2022-06-23T09:11:18.374607054Z",
              "image_ref": "postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
              "log_destination": "csvlog",
              "os": "linux",
              "repo_digests": [
                "postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc"
              ]
            },
            "lc_messages": "en_US.utf8",
            "libpq_version": "18.6",
            "locale": "C.UTF-8",
            "log_destination": "csvlog",
            "log_error_verbosity": "verbose",
            "log_min_error_statement": "error",
            "log_min_messages": "error",
            "logging_collector": "on",
            "machine": "arm64",
            "max_connections": "100",
            "platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O",
            "psycopg_version": "3.3.5",
            "python_version": "3.14.6 (main, Jun 10 2026, 10:03:53) [Clang 21.0.0 (clang-2100.0.123.102)]",
            "server_encoding": "UTF8",
            "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
            "server_version_num": "100021",
            "target_kind": "pg10",
            "wal_level": "logical"
          },
          "cases": [
            "default_type_mismatch"
          ],
          "observed": {
            "connection_autocommit": true,
            "diagnostic": {
              "column_name": null,
              "constraint_name": null,
              "context": null,
              "datatype_name": null,
              "exception_type": "DatatypeMismatch",
              "internal_position": null,
              "internal_query": null,
              "message_detail": null,
              "message_hint": "You will need to rewrite or cast the expression.",
              "message_primary": "column \"value\" is of type integer but default expression is of type text",
              "schema_name": null,
              "severity": "ERROR",
              "severity_nonlocalized": "ERROR",
              "source_file": "heap.c",
              "source_function": "cookDefault",
              "source_line": "2686",
              "sqlstate": "42804",
              "statement_position": null,
              "table_name": null,
              "text": "column \"value\" is of type integer but default expression is of type text\nHINT:  You will need to rewrite or cast the expression."
            },
            "failed_status": "IDLE",
            "repair_status": "IDLE",
            "repair_value": 1
          },
          "assertions": [
            {
              "expected": "42804",
              "name": "42804 SQLSTATE",
              "observed": "42804",
              "passed": true
            },
            {
              "expected": "ERROR",
              "name": "42804 ERROR severity",
              "observed": "ERROR",
              "passed": true
            },
            {
              "expected": "column \"value\" is of type integer but default expression is of type text",
              "name": "42804 primary diagnostic",
              "observed": "column \"value\" is of type integer but default expression is of type text",
              "passed": true
            },
            {
              "expected": "You will need to rewrite or cast the expression.",
              "name": "datatype mismatch preserves the cast/rewrite hint",
              "observed": "You will need to rewrite or cast the expression.",
              "passed": true
            },
            {
              "expected": "IDLE",
              "name": "datatype mismatch leaves autocommit session usable",
              "observed": "IDLE",
              "passed": true
            },
            {
              "expected": {
                "status": "IDLE",
                "value": 1
              },
              "name": "matching default expression repairs table definition",
              "observed": {
                "error": true,
                "status": "IDLE",
                "value": 1
              },
              "passed": true
            }
          ],
          "cleanup": {
            "errors": [],
            "passed": true
          },
          "target_stop": {
            "cleanup": {
              "argv": [
                "/usr/local/bin/docker",
                "rm",
                "-f",
                "-v",
                "sqlstate42804_syntax242804pg10_pg10"
              ],
              "elapsed_seconds": 0.278,
              "returncode": 0,
              "stderr": "",
              "stdout": "sqlstate42804_syntax242804pg10_pg10\n"
            },
            "inspect": {
              "argv": [
                "/usr/local/bin/docker",
                "inspect",
                "sqlstate42804_syntax242804pg10_pg10"
              ],
              "elapsed_seconds": 0.018,
              "returncode": 0,
              "stderr": "",
              "stdout": "[\n    {\n        \"Id\": \"73b22bf7cbe8fb5a3c464fa122686204007ea766c0cf473ba4939c55e440ee1f\",\n        \"Created\": \"2026-09-09T16:40:13.189494763Z\",\n        \"Path\": \"docker-entrypoint.sh\",\n        \"Args\": [\n            \"postgres\",\n            \"-c\",\n            \"listen_addresses=*\",\n            \"-c\",\n            \"log_destination=csvlog\",\n            \"-c\",\n            \"logging_collector=on\",\n            \"-c\",\n            \"log_directory=log\",\n            \"-c\",\n            \"log_filename=postgresql-%Y%m%d%H%M%S.log\",\n            \"-c\",\n            \"log_min_messages=error\",\n            \"-c\",\n            \"log_min_error_statement=error\",\n            \"-c\",\n            \"log_error_verbosity=verbose\",\n            \"-c\",\n            \"wal_level=logical\",\n            \"-c\",\n            \"max_wal_senders=10\",\n            \"-c\",\n            \"max_replication_slots=10\"\n        ],\n        \"State\": {\n            \"Status\": \"running\",\n            \"Running\": true,\n            \"Paused\": false,\n            \"Restarting\": false,\n            \"OOMKilled\": false,\n            \"Dead\": false,\n            \"Pid\": 62865,\n            \"ExitCode\": 0,\n            \"Error\": \"\",\n            \"StartedAt\": \"2026-09-09T16:40:13.265462847Z\",\n            \"FinishedAt\": \"0001-01-01T00:00:00Z\"\n        },\n        \"Image\": \"sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc\",\n        \"ResolvConfPath\": \"/var/lib/docker/containers/73b22bf7cbe8fb5a3c464fa122686204007ea766c0cf473ba4939c55e440ee1f/resolv.conf\",\n        \"HostnamePath\": \"/var/lib/docker/containers/73b22bf7cbe8fb5a3c464fa122686204007ea766c0cf473ba4939c55e440ee1f/hostname\",\n        \"HostsPath\": \"/var/lib/docker/containers/73b22bf7cbe8fb5a3c464fa122686204007ea766c0cf473ba4939c55e440ee1f/hosts\",\n        \"LogPath\": \"/var/lib/docker/containers/73b22bf7cbe8fb5a3c464fa122686204007ea766c0cf473ba4939c55e440ee1f/73b22bf7cbe8fb5a3c464fa122686204007ea766c0cf473ba4939c55e440ee1f-json.log\",\n        \"Name\": \"/sqlstate42804_syntax242804pg10_pg10\",\n        \"RestartCount\": 0,\n        \"Driver\": \"overlayfs\",\n        \"Platform\": \"linux\",\n        \"MountLabel\": \"\",\n        \"ProcessLabel\": \"\",\n        \"AppArmorProfile\": \"\",\n        \"ExecIDs\": null,\n        \"HostConfig\": {\n            \"Binds\": null,\n            \"ContainerIDFile\": \"\",\n            \"LogConfig\": {\n                \"Type\": \"json-file\",\n                \"Config\": {}\n            },\n            \"NetworkMode\": \"bridge\",\n            \"PortBindings\": {\n                \"5432/tcp\": [\n                    {\n                        \"HostIp\": \"127.0.0.1\",\n                        \"HostPort\": \"\"\n                    }\n                ]\n            },\n            \"RestartPolicy\": {\n                \"Name\": \"no\",\n                \"MaximumRetryCount\": 0\n            },\n            \"AutoRemove\": false,\n            \"VolumeDriver\": \"\",\n            \"VolumesFrom\": null,\n            \"ConsoleSize\": [\n                0,\n                0\n            ],\n            \"CapAdd\": null,\n            \"CapDrop\": null,\n            \"CgroupnsMode\": \"private\",\n            \"Dns\": null,\n            \"DnsOptions\": [],\n            \"DnsSearch\": [],\n            \"ExtraHosts\": null,\n            \"GroupAdd\": null,\n            \"IpcMode\": \"private\",\n            \"Cgroup\": \"\",\n            \"Links\": null,\n            \"OomScoreAdj\": 0,\n            \"PidMode\": \"\",\n            \"Privileged\": false,\n            \"PublishAllPorts\": false,\n            \"ReadonlyRootfs\": false,\n            \"SecurityOpt\": null,\n            \"UTSMode\": \"\",\n            \"UsernsMode\": \"\",\n            \"ShmSize\": 67108864,\n            \"Runtime\": \"runc\",\n            \"Isolation\": \"\",\n            \"CpuShares\": 0,\n            \"Memory\": 0,\n            \"NanoCpus\": 0,\n            \"CgroupParent\": \"\",\n            \"BlkioWeight\": 0,\n            \"BlkioWeightDevice\": [],\n            \"BlkioDeviceReadBps\": [],\n            \"BlkioDeviceWriteBps\": [],\n            \"BlkioDeviceReadIOps\": [],\n            \"BlkioDeviceWriteIOps\": [],\n            \"CpuPeriod\": 0,\n            \"CpuQuota\": 0,\n            \"CpuRealtimePeriod\": 0,\n            \"CpuRealtimeRuntime\": 0,\n            \"CpusetCpus\": \"\",\n            \"CpusetMems\": \"\",\n            \"Devices\": [],\n            \"DeviceCgroupRules\": null,\n            \"DeviceRequests\": null,\n            \"MemoryReservation\": 0,\n            \"MemorySwap\": 0,\n            \"MemorySwappiness\": null,\n            \"OomKillDisable\": null,\n            \"PidsLimit\": null,\n            \"Ulimits\": [],\n            \"CpuCount\": 0,\n            \"CpuPercent\": 0,\n            \"IOMaximumIOps\": 0,\n            \"IOMaximumBandwidth\": 0,\n            \"MaskedPaths\": [\n                \"/proc/acpi\",\n                \"/proc/asound\",\n                \"/proc/interrupts\",\n                \"/proc/kcore\",\n                \"/proc/keys\",\n                \"/proc/latency_stats\",\n                \"/proc/sched_debug\",\n                \"/proc/scsi\",\n                \"/proc/timer_list\",\n                \"/proc/timer_stats\",\n                \"/sys/devices/virtual/powercap\",\n                \"/sys/firmware\"\n            ],\n            \"ReadonlyPaths\": [\n                \"/proc/bus\",\n                \"/proc/fs\",\n                \"/proc/irq\",\n                \"/proc/sys\",\n                \"/proc/sysrq-trigger\"\n            ]\n        },\n        \"Storage\": {\n            \"RootFS\": {\n                \"Snapshot\": {\n                    \"Name\": \"overlayfs\"\n                }\n            }\n        },\n        \"Mounts\": [\n            {\n                \"Type\": \"volume\",\n                \"Name\": \"48a9d8a320a5203fd1ba518ad09474d1a122f81cdad218fd02cd4c2357759339\",\n                \"Source\": \"/var/lib/docker/volumes/48a9d8a320a5203fd1ba518ad09474d1a122f81cdad218fd02cd4c2357759339/_data\",\n                \"Destination\": \"/var/lib/postgresql/data\",\n                \"Driver\": \"local\",\n                \"Mode\": \"\",\n                \"RW\": true,\n                \"Propagation\": \"\"\n            }\n        ],\n        \"Config\": {\n            \"Hostname\": \"73b22bf7cbe8\",\n            \"Domainname\": \"\",\n            \"User\": \"\",\n            \"AttachStdin\": false,\n            \"AttachStdout\": false,\n            \"AttachStderr\": false,\n            \"ExposedPorts\": {\n                \"5432/tcp\": {}\n            },\n            \"Tty\": false,\n            \"OpenStdin\": false,\n            \"StdinOnce\": false,\n            \"Env\": [\n                \"POSTGRES_HOST_AUTH_METHOD=trust\",\n                \"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/10/bin\",\n                \"GOSU_VERSION=1.14\",\n                \"LANG=en_US.utf8\",\n                \"PG_MAJOR=10\",\n                \"PG_VERSION=10.21-1.pgdg90+1\",\n                \"PGDATA=/var/lib/postgresql/data\"\n            ],\n            \"Cmd\": [\n                \"postgres\",\n                \"-c\",\n                \"listen_addresses=*\",\n                \"-c\",\n                \"log_destination=csvlog\",\n                \"-c\",\n                \"logging_collector=on\",\n                \"-c\",\n                \"log_directory=log\",\n                \"-c\",\n                \"log_filename=postgresql-%Y%m%d%H%M%S.log\",\n                \"-c\",\n                \"log_min_messages=error\",\n                \"-c\",\n                \"log_min_error_statement=error\",\n                \"-c\",\n                \"log_error_verbosity=verbose\",\n                \"-c\",\n                \"wal_level=logical\",\n                \"-c\",\n                \"max_wal_senders=10\",\n                \"-c\",\n                \"max_replication_slots=10\"\n            ],\n            \"Image\": \"postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc\",\n            \"Volumes\": {\n                \"/var/lib/postgresql/data\": {}\n            },\n            \"WorkingDir\": \"\",\n            \"Entrypoint\": [\n                \"docker-entrypoint.sh\"\n            ],\n            \"Labels\": {},\n            \"StopSignal\": \"SIGINT\",\n            \"StopTimeout\": 1\n        },\n        \"NetworkSettings\": {\n            \"SandboxID\": \"e87c5c9660e1ccc2feb37fae2bdee16faac990a4a75cb2eaf46570e7c35b6f2b\",\n            \"SandboxKey\": \"/var/run/docker/netns/e87c5c9660e1\",\n            \"Ports\": {\n                \"5432/tcp\": [\n                    {\n                        \"HostIp\": \"127.0.0.1\",\n                        \"HostPort\": \"54135\"\n                    }\n                ]\n            },\n            \"Networks\": {\n                \"bridge\": {\n                    \"IPAMConfig\": null,\n                    \"Links\": null,\n                    \"Aliases\": null,\n                    \"DriverOpts\": null,\n                    \"GwPriority\": 0,\n                    \"NetworkID\": \"aed51554f8cd8bac69ecd4f073e41e147fda7b458e9d95be2af472651f2e825c\",\n                    \"EndpointID\": \"01fdc935e8823db6ac6b2ec88f8c31e06e2101b0bf0cd7acb9e3221a604129bc\",\n                    \"Gateway\": \"172.17.0.1\",\n                    \"IPAddress\": \"172.17.0.53\",\n                    \"MacAddress\": \"4a:47:4d:fe:6b:b8\",\n                    \"IPPrefixLen\": 16,\n                    \"IPv6Gateway\": \"\",\n                    \"GlobalIPv6Address\": \"\",\n                    \"GlobalIPv6PrefixLen\": 0,\n                    \"DNSNames\": null\n                }\n            }\n        },\n        \"ImageManifestDescriptor\": {\n            \"mediaType\": \"application/vnd.docker.distribution.manifest.v2+json\",\n            \"digest\": \"sha256:52aada7978f1eef3b6b52a51afb7a3defd69254d00c946cb90d2ceb32b8ffce7\",\n            \"size\": 3246,\n            \"platform\": {\n                \"architecture\": \"arm64\",\n                \"os\": \"linux\",\n                \"variant\": \"v8\"\n            }\n        }\n    }\n]\n"
            }
          }
        }
      ]
    },
    {
      "sqlstate": "42809",
      "condition_name": "wrong_object_type",
      "sources": [
        {
          "id": "src.errcodes.REL_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.calls.REL_10_23",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "00d16d3eb01b71ccf1b245c8f3102f9d0ec9f36fb02777b8dd1b99fcb263040c"
        },
        {
          "id": "src.view-row-trigger.18.6",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/trigger.c",
          "sha256": "0a539af85b0de1a04779f92202e7bfc77d85ae6da1747ea32527c67f39084fbd",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/trigger.c#L274-L278"
        },
        {
          "id": "src.view-row-trigger.10.23",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_10_23",
          "commit": "02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4",
          "path": "src/backend/commands/trigger.c",
          "sha256": "dac7cdcbe2df1a1bbc77daa23e808b0c81ba8891c9895f10e8b270a15316e225",
          "url": "https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/commands/trigger.c#L208-L212"
        },
        {
          "id": "manifest.42809",
          "kind": "local_artifact",
          "source_role": "case_manifest",
          "sha256": "edf6846e4ef76d29b6979c16c57a597a7e98a7c074dfd44eb55dbea33d7ac3de"
        },
        {
          "id": "snippet-registry.42809",
          "kind": "local_artifact",
          "source_role": "snippet_registry",
          "sha256": "a8245b8cb581cb5e605a9583d70f023261c179bd8bf3d76d197c53b8b85cbd2c"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "statement": "42809 is the wrong_object_type condition in Class 42.",
          "method": "Read fixed errcodes.txt and locked catalogue metadata.",
          "limits": "Identity does not identify every backend call that can reuse this SQLSTATE.",
          "sources": [
            "src.errcodes.REL_18_6"
          ]
        },
        {
          "id": "mechanism.selected-source-path",
          "statement": "The selected view_row_trigger_type follows a resolved PostgreSQL source-call group; other branches can use different dynamic fields.",
          "method": "Trace the REL_18_6 and REL_10_23 source-call records at the locked commits.",
          "limits": "This is one mechanism boundary, not an exhaustive inventory of the code.",
          "sources": [
            "src.view-row-trigger.18.6",
            "src.view-row-trigger.10.23"
          ]
        },
        {
          "id": "runtime.representative-case",
          "statement": "The selected view_row_trigger_type passed on isolated PostgreSQL 18.6 and 10.21 targets.",
          "method": "Run the shared SQL registry and inspect SQLSTATE, severity, state, repair, cleanup, and target stop.",
          "limits": "Scope is limited to these statements, psycopg, and two versions.",
          "sources": [
            "manifest.42809",
            "snippet-registry.42809"
          ],
          "runtime": [
            "runtime.syntax2-42809-latest2.latest",
            "runtime.syntax2-42809-pg10.pg10"
          ]
        },
        {
          "id": "versions.catalogue-boundary",
          "statement": "The locked catalogue records 42809 from the 7.4 presence bound through the listed snapshots; runtime scope is 18.6 and 10.21.",
          "method": "Read generated facts, fixed calls, and selected summaries.",
          "limits": "Definition presence is not an exact behavioral introduction; two runtime versions do not prove every intermediate behavior.",
          "sources": [
            "src.errcodes.REL_18_6",
            "src.calls.REL_18_6",
            "src.calls.REL_10_23"
          ]
        }
      ],
      "messages": [
        {
          "id": "message.view_row_trigger_type",
          "primary_template": "\"%s\" is a view",
          "severity_source": "explicit ERROR",
          "sqlstate": "42809",
          "sources": [
            "src.view-row-trigger.18.6",
            "src.view-row-trigger.10.23"
          ],
          "detail_template": "Views cannot have row-level BEFORE or AFTER triggers."
        }
      ],
      "usage_evidence": [
        {
          "scope": "selected-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "claim.mechanism.selected-source-path",
            "message.view_row_trigger_type"
          ]
        },
        {
          "scope": "selected-case-18.6-and-10.21",
          "status": "observed_runtime",
          "evidence_ids": [
            "runtime.syntax2-42809-latest2.latest",
            "runtime.syntax2-42809-pg10.pg10",
            "claim.runtime.representative-case"
          ]
        }
      ],
      "runtime": [
        {
          "id": "runtime.syntax2-42809-latest2.latest",
          "run_id": "syntax2-42809-latest2",
          "target": "latest",
          "status": "passed",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "summary_sha256": "1bf8aeec4fe81c652c406c5a9f5c0c0d573835dd3bf8fc8af814ce8462e67acd",
          "raw_sha256": "c139ef48d6c91e6f76b70521d8b31f484487cd5790f2d3522204eebd1835bee1",
          "case_manifest": {
            "id": "manifest.42809",
            "kind": "local_artifact",
            "source_role": "case_manifest",
            "sha256": "edf6846e4ef76d29b6979c16c57a597a7e98a7c074dfd44eb55dbea33d7ac3de"
          },
          "snippet_registry": {
            "id": "snippet-registry.42809",
            "kind": "local_artifact",
            "source_role": "snippet_registry",
            "sha256": "a8245b8cb581cb5e605a9583d70f023261c179bd8bf3d76d197c53b8b85cbd2c"
          },
          "environment": {
            "TimeZone": "Asia/Shanghai",
            "backend_pid": 30437,
            "binary": {
              "bindir": "/opt/homebrew/Cellar/postgresql@18/18.6/bin",
              "pg_config": "/opt/homebrew/bin/pg_config",
              "pg_config_version": "PostgreSQL 18.6 (Homebrew)",
              "postgres": "/opt/homebrew/Cellar/postgresql@18/18.6/bin/postgres"
            },
            "connection_scope": "runner-owned localhost port",
            "current_user": "runner",
            "docker": {},
            "lc_messages": "C",
            "libpq_version": "18.6",
            "locale": "C.UTF-8",
            "log_destination": "csvlog,jsonlog",
            "log_error_verbosity": "verbose",
            "log_min_error_statement": "error",
            "log_min_messages": "error",
            "logging_collector": "on",
            "machine": "arm64",
            "max_connections": "100",
            "platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O",
            "psycopg_version": "3.3.5",
            "python_version": "3.14.6 (main, Jun 10 2026, 10:03:53) [Clang 21.0.0 (clang-2100.0.123.102)]",
            "server_encoding": "UTF8",
            "server_version": "18.6 (Homebrew)",
            "server_version_num": "180006",
            "target_kind": "latest",
            "wal_level": "logical"
          },
          "cases": [
            "view_row_trigger_type"
          ],
          "observed": {
            "connection_autocommit": true,
            "diagnostic": {
              "column_name": null,
              "constraint_name": null,
              "context": null,
              "datatype_name": null,
              "exception_type": "WrongObjectType",
              "internal_position": null,
              "internal_query": null,
              "message_detail": "Views cannot have row-level BEFORE or AFTER triggers.",
              "message_hint": null,
              "message_primary": "\"trigger_view\" is a view",
              "schema_name": null,
              "severity": "ERROR",
              "severity_nonlocalized": "ERROR",
              "source_file": "trigger.c",
              "source_function": "CreateTriggerFiringOn",
              "source_line": "278",
              "sqlstate": "42809",
              "statement_position": null,
              "table_name": null,
              "text": "\"trigger_view\" is a view\nDETAIL:  Views cannot have row-level BEFORE or AFTER triggers."
            },
            "failed_status": "IDLE",
            "repair_status": "IDLE",
            "trigger_count": 1
          },
          "assertions": [
            {
              "expected": "42809",
              "name": "42809 SQLSTATE",
              "observed": "42809",
              "passed": true
            },
            {
              "expected": "ERROR",
              "name": "42809 ERROR severity",
              "observed": "ERROR",
              "passed": true
            },
            {
              "expected": "\"trigger_view\" is a view",
              "name": "42809 primary diagnostic",
              "observed": "\"trigger_view\" is a view",
              "passed": true
            },
            {
              "expected": "Views cannot have row-level BEFORE or AFTER triggers.",
              "name": "view trigger diagnostic explains the forbidden kind",
              "observed": "Views cannot have row-level BEFORE or AFTER triggers.",
              "passed": true
            },
            {
              "expected": "IDLE",
              "name": "wrong object type leaves autocommit session usable",
              "observed": "IDLE",
              "passed": true
            },
            {
              "expected": {
                "status": "IDLE",
                "triggers": 1
              },
              "name": "INSTEAD OF trigger repairs the view operation",
              "observed": {
                "error": true,
                "status": "IDLE",
                "triggers": 1
              },
              "passed": true
            }
          ],
          "cleanup": {
            "errors": [],
            "passed": true
          },
          "target_stop": {
            "argv": [
              "/opt/homebrew/Cellar/postgresql@18/18.6/bin/pg_ctl",
              "-D",
              "<local runtime artifact>",
              "-m",
              "fast",
              "-w",
              "stop"
            ],
            "elapsed_seconds": 0.112,
            "returncode": 0,
            "stderr": "",
            "stdout": "waiting for server to shut down.... done\nserver stopped\n"
          }
        },
        {
          "id": "runtime.syntax2-42809-pg10.pg10",
          "run_id": "syntax2-42809-pg10",
          "target": "pg10",
          "status": "passed",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "summary_sha256": "993c2fea65249f127075ff4d58386b12a844ac17c1534028ab71f89b70eb45e8",
          "raw_sha256": "0a843d2c4085028577911afcda4c7224793503f07a677a6e049a57303c95462e",
          "case_manifest": {
            "id": "manifest.42809",
            "kind": "local_artifact",
            "source_role": "case_manifest",
            "sha256": "edf6846e4ef76d29b6979c16c57a597a7e98a7c074dfd44eb55dbea33d7ac3de"
          },
          "snippet_registry": {
            "id": "snippet-registry.42809",
            "kind": "local_artifact",
            "source_role": "snippet_registry",
            "sha256": "a8245b8cb581cb5e605a9583d70f023261c179bd8bf3d76d197c53b8b85cbd2c"
          },
          "environment": {
            "TimeZone": "Etc/UTC",
            "backend_pid": 79,
            "binary": {},
            "connection_scope": "runner-owned localhost port",
            "current_user": "postgres",
            "docker": {
              "architecture": "arm64",
              "command": "/usr/local/bin/docker",
              "digest": "sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
              "id": "sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
              "image": "postgres:10",
              "image_created": "2022-06-23T09:11:18.374607054Z",
              "image_ref": "postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
              "log_destination": "csvlog",
              "os": "linux",
              "repo_digests": [
                "postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc"
              ]
            },
            "lc_messages": "en_US.utf8",
            "libpq_version": "18.6",
            "locale": "C.UTF-8",
            "log_destination": "csvlog",
            "log_error_verbosity": "verbose",
            "log_min_error_statement": "error",
            "log_min_messages": "error",
            "logging_collector": "on",
            "machine": "arm64",
            "max_connections": "100",
            "platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O",
            "psycopg_version": "3.3.5",
            "python_version": "3.14.6 (main, Jun 10 2026, 10:03:53) [Clang 21.0.0 (clang-2100.0.123.102)]",
            "server_encoding": "UTF8",
            "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
            "server_version_num": "100021",
            "target_kind": "pg10",
            "wal_level": "logical"
          },
          "cases": [
            "view_row_trigger_type"
          ],
          "observed": {
            "connection_autocommit": true,
            "diagnostic": {
              "column_name": null,
              "constraint_name": null,
              "context": null,
              "datatype_name": null,
              "exception_type": "WrongObjectType",
              "internal_position": null,
              "internal_query": null,
              "message_detail": "Views cannot have row-level BEFORE or AFTER triggers.",
              "message_hint": null,
              "message_primary": "\"trigger_view\" is a view",
              "schema_name": null,
              "severity": "ERROR",
              "severity_nonlocalized": "ERROR",
              "source_file": "trigger.c",
              "source_function": "CreateTrigger",
              "source_line": "212",
              "sqlstate": "42809",
              "statement_position": null,
              "table_name": null,
              "text": "\"trigger_view\" is a view\nDETAIL:  Views cannot have row-level BEFORE or AFTER triggers."
            },
            "failed_status": "IDLE",
            "repair_status": "IDLE",
            "trigger_count": 1
          },
          "assertions": [
            {
              "expected": "42809",
              "name": "42809 SQLSTATE",
              "observed": "42809",
              "passed": true
            },
            {
              "expected": "ERROR",
              "name": "42809 ERROR severity",
              "observed": "ERROR",
              "passed": true
            },
            {
              "expected": "\"trigger_view\" is a view",
              "name": "42809 primary diagnostic",
              "observed": "\"trigger_view\" is a view",
              "passed": true
            },
            {
              "expected": "Views cannot have row-level BEFORE or AFTER triggers.",
              "name": "view trigger diagnostic explains the forbidden kind",
              "observed": "Views cannot have row-level BEFORE or AFTER triggers.",
              "passed": true
            },
            {
              "expected": "IDLE",
              "name": "wrong object type leaves autocommit session usable",
              "observed": "IDLE",
              "passed": true
            },
            {
              "expected": {
                "status": "IDLE",
                "triggers": 1
              },
              "name": "INSTEAD OF trigger repairs the view operation",
              "observed": {
                "error": true,
                "status": "IDLE",
                "triggers": 1
              },
              "passed": true
            }
          ],
          "cleanup": {
            "errors": [],
            "passed": true
          },
          "target_stop": {
            "cleanup": {
              "argv": [
                "/usr/local/bin/docker",
                "rm",
                "-f",
                "-v",
                "sqlstate42809_syntax242809pg10_pg10"
              ],
              "elapsed_seconds": 0.274,
              "returncode": 0,
              "stderr": "",
              "stdout": "sqlstate42809_syntax242809pg10_pg10\n"
            },
            "inspect": {
              "argv": [
                "/usr/local/bin/docker",
                "inspect",
                "sqlstate42809_syntax242809pg10_pg10"
              ],
              "elapsed_seconds": 0.02,
              "returncode": 0,
              "stderr": "",
              "stdout": "[\n    {\n        \"Id\": \"382f29821599ed9cb1bb920da1a0fd5d2c6f4337950d761dc90878eca7475c82\",\n        \"Created\": \"2026-09-09T16:40:14.599939333Z\",\n        \"Path\": \"docker-entrypoint.sh\",\n        \"Args\": [\n            \"postgres\",\n            \"-c\",\n            \"listen_addresses=*\",\n            \"-c\",\n            \"log_destination=csvlog\",\n            \"-c\",\n            \"logging_collector=on\",\n            \"-c\",\n            \"log_directory=log\",\n            \"-c\",\n            \"log_filename=postgresql-%Y%m%d%H%M%S.log\",\n            \"-c\",\n            \"log_min_messages=error\",\n            \"-c\",\n            \"log_min_error_statement=error\",\n            \"-c\",\n            \"log_error_verbosity=verbose\",\n            \"-c\",\n            \"wal_level=logical\",\n            \"-c\",\n            \"max_wal_senders=10\",\n            \"-c\",\n            \"max_replication_slots=10\"\n        ],\n        \"State\": {\n            \"Status\": \"running\",\n            \"Running\": true,\n            \"Paused\": false,\n            \"Restarting\": false,\n            \"OOMKilled\": false,\n            \"Dead\": false,\n            \"Pid\": 63037,\n            \"ExitCode\": 0,\n            \"Error\": \"\",\n            \"StartedAt\": \"2026-09-09T16:40:14.670476166Z\",\n            \"FinishedAt\": \"0001-01-01T00:00:00Z\"\n        },\n        \"Image\": \"sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc\",\n        \"ResolvConfPath\": \"/var/lib/docker/containers/382f29821599ed9cb1bb920da1a0fd5d2c6f4337950d761dc90878eca7475c82/resolv.conf\",\n        \"HostnamePath\": \"/var/lib/docker/containers/382f29821599ed9cb1bb920da1a0fd5d2c6f4337950d761dc90878eca7475c82/hostname\",\n        \"HostsPath\": \"/var/lib/docker/containers/382f29821599ed9cb1bb920da1a0fd5d2c6f4337950d761dc90878eca7475c82/hosts\",\n        \"LogPath\": \"/var/lib/docker/containers/382f29821599ed9cb1bb920da1a0fd5d2c6f4337950d761dc90878eca7475c82/382f29821599ed9cb1bb920da1a0fd5d2c6f4337950d761dc90878eca7475c82-json.log\",\n        \"Name\": \"/sqlstate42809_syntax242809pg10_pg10\",\n        \"RestartCount\": 0,\n        \"Driver\": \"overlayfs\",\n        \"Platform\": \"linux\",\n        \"MountLabel\": \"\",\n        \"ProcessLabel\": \"\",\n        \"AppArmorProfile\": \"\",\n        \"ExecIDs\": null,\n        \"HostConfig\": {\n            \"Binds\": null,\n            \"ContainerIDFile\": \"\",\n            \"LogConfig\": {\n                \"Type\": \"json-file\",\n                \"Config\": {}\n            },\n            \"NetworkMode\": \"bridge\",\n            \"PortBindings\": {\n                \"5432/tcp\": [\n                    {\n                        \"HostIp\": \"127.0.0.1\",\n                        \"HostPort\": \"\"\n                    }\n                ]\n            },\n            \"RestartPolicy\": {\n                \"Name\": \"no\",\n                \"MaximumRetryCount\": 0\n            },\n            \"AutoRemove\": false,\n            \"VolumeDriver\": \"\",\n            \"VolumesFrom\": null,\n            \"ConsoleSize\": [\n                0,\n                0\n            ],\n            \"CapAdd\": null,\n            \"CapDrop\": null,\n            \"CgroupnsMode\": \"private\",\n            \"Dns\": null,\n            \"DnsOptions\": [],\n            \"DnsSearch\": [],\n            \"ExtraHosts\": null,\n            \"GroupAdd\": null,\n            \"IpcMode\": \"private\",\n            \"Cgroup\": \"\",\n            \"Links\": null,\n            \"OomScoreAdj\": 0,\n            \"PidMode\": \"\",\n            \"Privileged\": false,\n            \"PublishAllPorts\": false,\n            \"ReadonlyRootfs\": false,\n            \"SecurityOpt\": null,\n            \"UTSMode\": \"\",\n            \"UsernsMode\": \"\",\n            \"ShmSize\": 67108864,\n            \"Runtime\": \"runc\",\n            \"Isolation\": \"\",\n            \"CpuShares\": 0,\n            \"Memory\": 0,\n            \"NanoCpus\": 0,\n            \"CgroupParent\": \"\",\n            \"BlkioWeight\": 0,\n            \"BlkioWeightDevice\": [],\n            \"BlkioDeviceReadBps\": [],\n            \"BlkioDeviceWriteBps\": [],\n            \"BlkioDeviceReadIOps\": [],\n            \"BlkioDeviceWriteIOps\": [],\n            \"CpuPeriod\": 0,\n            \"CpuQuota\": 0,\n            \"CpuRealtimePeriod\": 0,\n            \"CpuRealtimeRuntime\": 0,\n            \"CpusetCpus\": \"\",\n            \"CpusetMems\": \"\",\n            \"Devices\": [],\n            \"DeviceCgroupRules\": null,\n            \"DeviceRequests\": null,\n            \"MemoryReservation\": 0,\n            \"MemorySwap\": 0,\n            \"MemorySwappiness\": null,\n            \"OomKillDisable\": null,\n            \"PidsLimit\": null,\n            \"Ulimits\": [],\n            \"CpuCount\": 0,\n            \"CpuPercent\": 0,\n            \"IOMaximumIOps\": 0,\n            \"IOMaximumBandwidth\": 0,\n            \"MaskedPaths\": [\n                \"/proc/acpi\",\n                \"/proc/asound\",\n                \"/proc/interrupts\",\n                \"/proc/kcore\",\n                \"/proc/keys\",\n                \"/proc/latency_stats\",\n                \"/proc/sched_debug\",\n                \"/proc/scsi\",\n                \"/proc/timer_list\",\n                \"/proc/timer_stats\",\n                \"/sys/devices/virtual/powercap\",\n                \"/sys/firmware\"\n            ],\n            \"ReadonlyPaths\": [\n                \"/proc/bus\",\n                \"/proc/fs\",\n                \"/proc/irq\",\n                \"/proc/sys\",\n                \"/proc/sysrq-trigger\"\n            ]\n        },\n        \"Storage\": {\n            \"RootFS\": {\n                \"Snapshot\": {\n                    \"Name\": \"overlayfs\"\n                }\n            }\n        },\n        \"Mounts\": [\n            {\n                \"Type\": \"volume\",\n                \"Name\": \"f3ea1770b8f4d203f3a76ca335106d1b7587be19610f22332f875b1fb7344214\",\n                \"Source\": \"/var/lib/docker/volumes/f3ea1770b8f4d203f3a76ca335106d1b7587be19610f22332f875b1fb7344214/_data\",\n                \"Destination\": \"/var/lib/postgresql/data\",\n                \"Driver\": \"local\",\n                \"Mode\": \"\",\n                \"RW\": true,\n                \"Propagation\": \"\"\n            }\n        ],\n        \"Config\": {\n            \"Hostname\": \"382f29821599\",\n            \"Domainname\": \"\",\n            \"User\": \"\",\n            \"AttachStdin\": false,\n            \"AttachStdout\": false,\n            \"AttachStderr\": false,\n            \"ExposedPorts\": {\n                \"5432/tcp\": {}\n            },\n            \"Tty\": false,\n            \"OpenStdin\": false,\n            \"StdinOnce\": false,\n            \"Env\": [\n                \"POSTGRES_HOST_AUTH_METHOD=trust\",\n                \"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/10/bin\",\n                \"GOSU_VERSION=1.14\",\n                \"LANG=en_US.utf8\",\n                \"PG_MAJOR=10\",\n                \"PG_VERSION=10.21-1.pgdg90+1\",\n                \"PGDATA=/var/lib/postgresql/data\"\n            ],\n            \"Cmd\": [\n                \"postgres\",\n                \"-c\",\n                \"listen_addresses=*\",\n                \"-c\",\n                \"log_destination=csvlog\",\n                \"-c\",\n                \"logging_collector=on\",\n                \"-c\",\n                \"log_directory=log\",\n                \"-c\",\n                \"log_filename=postgresql-%Y%m%d%H%M%S.log\",\n                \"-c\",\n                \"log_min_messages=error\",\n                \"-c\",\n                \"log_min_error_statement=error\",\n                \"-c\",\n                \"log_error_verbosity=verbose\",\n                \"-c\",\n                \"wal_level=logical\",\n                \"-c\",\n                \"max_wal_senders=10\",\n                \"-c\",\n                \"max_replication_slots=10\"\n            ],\n            \"Image\": \"postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc\",\n            \"Volumes\": {\n                \"/var/lib/postgresql/data\": {}\n            },\n            \"WorkingDir\": \"\",\n            \"Entrypoint\": [\n                \"docker-entrypoint.sh\"\n            ],\n            \"Labels\": {},\n            \"StopSignal\": \"SIGINT\",\n            \"StopTimeout\": 1\n        },\n        \"NetworkSettings\": {\n            \"SandboxID\": \"b641c239538956dbb2a9bb52f22cd0aa3250f1a0d42b3fe6cc9ca33b8455c30c\",\n            \"SandboxKey\": \"/var/run/docker/netns/b641c2395389\",\n            \"Ports\": {\n                \"5432/tcp\": [\n                    {\n                        \"HostIp\": \"127.0.0.1\",\n                        \"HostPort\": \"54152\"\n                    }\n                ]\n            },\n            \"Networks\": {\n                \"bridge\": {\n                    \"IPAMConfig\": null,\n                    \"Links\": null,\n                    \"Aliases\": null,\n                    \"DriverOpts\": null,\n                    \"GwPriority\": 0,\n                    \"NetworkID\": \"aed51554f8cd8bac69ecd4f073e41e147fda7b458e9d95be2af472651f2e825c\",\n                    \"EndpointID\": \"cf1b117ce5911203d2b2c35ff0b8daf63cf85217f64d3bffc7052fc5993b546d\",\n                    \"Gateway\": \"172.17.0.1\",\n                    \"IPAddress\": \"172.17.0.53\",\n                    \"MacAddress\": \"56:89:d2:8f:66:a8\",\n                    \"IPPrefixLen\": 16,\n                    \"IPv6Gateway\": \"\",\n                    \"GlobalIPv6Address\": \"\",\n                    \"GlobalIPv6PrefixLen\": 0,\n                    \"DNSNames\": null\n                }\n            }\n        },\n        \"ImageManifestDescriptor\": {\n            \"mediaType\": \"application/vnd.docker.distribution.manifest.v2+json\",\n            \"digest\": \"sha256:52aada7978f1eef3b6b52a51afb7a3defd69254d00c946cb90d2ceb32b8ffce7\",\n            \"size\": 3246,\n            \"platform\": {\n                \"architecture\": \"arm64\",\n                \"os\": \"linux\",\n                \"variant\": \"v8\"\n            }\n        }\n    }\n]\n"
            }
          }
        }
      ]
    },
    {
      "sqlstate": "42830",
      "condition_name": "invalid_foreign_key",
      "sources": [
        {
          "id": "src.errcodes.REL_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.calls.REL_10_23",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "00d16d3eb01b71ccf1b245c8f3102f9d0ec9f36fb02777b8dd1b99fcb263040c"
        },
        {
          "id": "src.invalid-fk.18.6",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/tablecmds.c",
          "sha256": "422dc8e833df4940755973c757e338295822ba3e4c7266c40669f49f96eb15a9",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/tablecmds.c#L13639-L13642"
        },
        {
          "id": "src.invalid-fk.10.23",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_10_23",
          "commit": "02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4",
          "path": "src/backend/commands/tablecmds.c",
          "sha256": "6de441c88496c6cf57a836898388085ec08bf69afd70d07acdafd6089b9b5f8c",
          "url": "https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/commands/tablecmds.c#L8133-L8136"
        },
        {
          "id": "src.invalid-fk-guards.18.6",
          "kind": "upstream_source",
          "source_role": "source_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/tablecmds.c",
          "sha256": "422dc8e833df4940755973c757e338295822ba3e4c7266c40669f49f96eb15a9",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/tablecmds.c#L13505-L13642"
        },
        {
          "id": "src.invalid-fk-guards.10.23",
          "kind": "upstream_source",
          "source_role": "source_context",
          "tag": "REL_10_23",
          "commit": "02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4",
          "path": "src/backend/commands/tablecmds.c",
          "sha256": "6de441c88496c6cf57a836898388085ec08bf69afd70d07acdafd6089b9b5f8c",
          "url": "https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/commands/tablecmds.c#L8002-L8136"
        },
        {
          "id": "manifest.42830",
          "kind": "local_artifact",
          "source_role": "case_manifest",
          "sha256": "d9ac3703aac83c78dd0565bb928ef2a4e6f28e5e6138d588191f39a3cbd72297"
        },
        {
          "id": "snippet-registry.42830",
          "kind": "local_artifact",
          "source_role": "snippet_registry",
          "sha256": "9133c8bee8f6cb7f908c33a6bf53d4eceea58565293e839a90143ba27e25ca25"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "statement": "42830 is the invalid_foreign_key condition in Class 42.",
          "method": "Read fixed errcodes.txt and locked catalogue metadata.",
          "limits": "Identity does not identify every backend call that can reuse this SQLSTATE.",
          "sources": [
            "src.errcodes.REL_18_6"
          ]
        },
        {
          "id": "mechanism.selected-source-path",
          "statement": "The selected fk_missing_unique_key follows a resolved PostgreSQL source-call group; the complete matcher accepts a duplicate-free referenced column set in any physical order only when the candidate index has the required count, uniqueness, validity, and no predicate or expressions.",
          "method": "Trace the REL_18_6 and REL_10_23 source-call records at the locked commits.",
          "limits": "This is one mechanism boundary, not an exhaustive inventory of the code.",
          "sources": [
            "src.invalid-fk.18.6",
            "src.invalid-fk.10.23",
            "src.invalid-fk-guards.18.6",
            "src.invalid-fk-guards.10.23"
          ]
        },
        {
          "id": "mechanism.fk-index-guards",
          "statement": "The same matcher rejects a duplicate referenced-column list with 42830 and rejects an otherwise matching deferrable unique or primary index with OBJECT_NOT_IN_PREREQUISITE_STATE (55000); the latter is source-only in this review.",
          "method": "Read the complete transformFkeyCheckAttrs function in both locked tablecmds.c snapshots.",
          "limits": "The selected runtime covers only the missing-key 42830 case and does not observe the duplicate-list or deferrable branches.",
          "sources": [
            "src.invalid-fk-guards.18.6",
            "src.invalid-fk-guards.10.23"
          ]
        },
        {
          "id": "runtime.representative-case",
          "statement": "The selected fk_missing_unique_key passed on isolated PostgreSQL 18.6 and 10.21 targets.",
          "method": "Run the shared SQL registry and inspect SQLSTATE, severity, state, repair, cleanup, and target stop.",
          "limits": "Scope is limited to these statements, psycopg, and two versions.",
          "sources": [
            "manifest.42830",
            "snippet-registry.42830"
          ],
          "runtime": [
            "runtime.syntax2-42830-latest.latest",
            "runtime.syntax2-42830-pg10.pg10"
          ]
        },
        {
          "id": "versions.catalogue-boundary",
          "statement": "The locked catalogue records 42830 from the 7.4 presence bound through the listed snapshots; runtime scope is 18.6 and 10.21.",
          "method": "Read generated facts, fixed calls, and selected summaries.",
          "limits": "Definition presence is not an exact behavioral introduction; two runtime versions do not prove every intermediate behavior.",
          "sources": [
            "src.errcodes.REL_18_6",
            "src.calls.REL_18_6",
            "src.calls.REL_10_23"
          ]
        }
      ],
      "messages": [
        {
          "id": "message.fk_missing_unique_key",
          "primary_template": "there is no unique constraint matching given keys for referenced table \"%s\"",
          "severity_source": "explicit ERROR",
          "sqlstate": "42830",
          "sources": [
            "src.invalid-fk.18.6",
            "src.invalid-fk.10.23"
          ]
        },
        {
          "id": "message.deferrable-unique",
          "primary_template": "cannot use a deferrable unique constraint for referenced table \"%s\"",
          "severity_source": "explicit ERROR",
          "sqlstate": "55000",
          "condition_name": "object_not_in_prerequisite_state",
          "scope": "source-only deferrable-key branch",
          "sources": [
            "src.invalid-fk-guards.18.6",
            "src.invalid-fk-guards.10.23"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "selected-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "claim.mechanism.selected-source-path",
            "message.fk_missing_unique_key"
          ]
        },
        {
          "scope": "selected-case-18.6-and-10.21",
          "status": "observed_runtime",
          "evidence_ids": [
            "runtime.syntax2-42830-latest.latest",
            "runtime.syntax2-42830-pg10.pg10",
            "claim.runtime.representative-case"
          ]
        }
      ],
      "runtime": [
        {
          "id": "runtime.syntax2-42830-latest.latest",
          "run_id": "syntax2-42830-latest",
          "target": "latest",
          "status": "passed",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "summary_sha256": "00ff7903bc8bbe0a909c3176cf42dc1c9c50524dcbb55ef89188772c49353e29",
          "raw_sha256": "77881dcf880972f5fe0595fbea0388acea661d315e5cc7db322ca8b8302450b5",
          "case_manifest": {
            "id": "manifest.42830",
            "kind": "local_artifact",
            "source_role": "case_manifest",
            "sha256": "d9ac3703aac83c78dd0565bb928ef2a4e6f28e5e6138d588191f39a3cbd72297"
          },
          "snippet_registry": {
            "id": "snippet-registry.42830",
            "kind": "local_artifact",
            "source_role": "snippet_registry",
            "sha256": "9133c8bee8f6cb7f908c33a6bf53d4eceea58565293e839a90143ba27e25ca25"
          },
          "environment": {
            "TimeZone": "Asia/Shanghai",
            "backend_pid": 30133,
            "binary": {
              "bindir": "/opt/homebrew/Cellar/postgresql@18/18.6/bin",
              "pg_config": "/opt/homebrew/bin/pg_config",
              "pg_config_version": "PostgreSQL 18.6 (Homebrew)",
              "postgres": "/opt/homebrew/Cellar/postgresql@18/18.6/bin/postgres"
            },
            "connection_scope": "runner-owned localhost port",
            "current_user": "runner",
            "docker": {},
            "lc_messages": "C",
            "libpq_version": "18.6",
            "locale": "C.UTF-8",
            "log_destination": "csvlog,jsonlog",
            "log_error_verbosity": "verbose",
            "log_min_error_statement": "error",
            "log_min_messages": "error",
            "logging_collector": "on",
            "machine": "arm64",
            "max_connections": "100",
            "platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O",
            "psycopg_version": "3.3.5",
            "python_version": "3.14.6 (main, Jun 10 2026, 10:03:53) [Clang 21.0.0 (clang-2100.0.123.102)]",
            "server_encoding": "UTF8",
            "server_version": "18.6 (Homebrew)",
            "server_version_num": "180006",
            "target_kind": "latest",
            "wal_level": "logical"
          },
          "cases": [
            "fk_missing_unique_key"
          ],
          "observed": {
            "connection_autocommit": true,
            "diagnostic": {
              "column_name": null,
              "constraint_name": null,
              "context": null,
              "datatype_name": null,
              "exception_type": "InvalidForeignKey",
              "internal_position": null,
              "internal_query": null,
              "message_detail": null,
              "message_hint": null,
              "message_primary": "there is no unique constraint matching given keys for referenced table \"fk_parent\"",
              "schema_name": null,
              "severity": "ERROR",
              "severity_nonlocalized": "ERROR",
              "source_file": "tablecmds.c",
              "source_function": "transformFkeyCheckAttrs",
              "source_line": "13642",
              "sqlstate": "42830",
              "statement_position": null,
              "table_name": null,
              "text": "there is no unique constraint matching given keys for referenced table \"fk_parent\""
            },
            "failed_status": "IDLE",
            "foreign_key_count": 1,
            "repair_status": "IDLE"
          },
          "assertions": [
            {
              "expected": "42830",
              "name": "42830 SQLSTATE",
              "observed": "42830",
              "passed": true
            },
            {
              "expected": "ERROR",
              "name": "42830 ERROR severity",
              "observed": "ERROR",
              "passed": true
            },
            {
              "expected": "there is no unique constraint matching given keys for referenced table \"fk_parent\"",
              "name": "42830 primary diagnostic",
              "observed": "there is no unique constraint matching given keys for referenced table \"fk_parent\"",
              "passed": true
            },
            {
              "expected": "IDLE",
              "name": "invalid foreign key leaves autocommit session usable",
              "observed": "IDLE",
              "passed": true
            },
            {
              "expected": {
                "foreign_keys": 1,
                "status": "IDLE"
              },
              "name": "referenced unique key repairs foreign-key definition",
              "observed": {
                "error": true,
                "foreign_keys": 1,
                "status": "IDLE"
              },
              "passed": true
            }
          ],
          "cleanup": {
            "errors": [],
            "passed": true
          },
          "target_stop": {
            "argv": [
              "/opt/homebrew/Cellar/postgresql@18/18.6/bin/pg_ctl",
              "-D",
              "<local runtime artifact>",
              "-m",
              "fast",
              "-w",
              "stop"
            ],
            "elapsed_seconds": 0.116,
            "returncode": 0,
            "stderr": "",
            "stdout": "waiting for server to shut down.... done\nserver stopped\n"
          }
        },
        {
          "id": "runtime.syntax2-42830-pg10.pg10",
          "run_id": "syntax2-42830-pg10",
          "target": "pg10",
          "status": "passed",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "summary_sha256": "ad665b5cc446930d400a60975debedf388d1f0e9dfb4888b0e1e1b38138f46f1",
          "raw_sha256": "78ac72e825bd2c12c8861c36573fb0bf919f815c6a71c45b7974207c90228a39",
          "case_manifest": {
            "id": "manifest.42830",
            "kind": "local_artifact",
            "source_role": "case_manifest",
            "sha256": "d9ac3703aac83c78dd0565bb928ef2a4e6f28e5e6138d588191f39a3cbd72297"
          },
          "snippet_registry": {
            "id": "snippet-registry.42830",
            "kind": "local_artifact",
            "source_role": "snippet_registry",
            "sha256": "9133c8bee8f6cb7f908c33a6bf53d4eceea58565293e839a90143ba27e25ca25"
          },
          "environment": {
            "TimeZone": "Etc/UTC",
            "backend_pid": 80,
            "binary": {},
            "connection_scope": "runner-owned localhost port",
            "current_user": "postgres",
            "docker": {
              "architecture": "arm64",
              "command": "/usr/local/bin/docker",
              "digest": "sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
              "id": "sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
              "image": "postgres:10",
              "image_created": "2022-06-23T09:11:18.374607054Z",
              "image_ref": "postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
              "log_destination": "csvlog",
              "os": "linux",
              "repo_digests": [
                "postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc"
              ]
            },
            "lc_messages": "en_US.utf8",
            "libpq_version": "18.6",
            "locale": "C.UTF-8",
            "log_destination": "csvlog",
            "log_error_verbosity": "verbose",
            "log_min_error_statement": "error",
            "log_min_messages": "error",
            "logging_collector": "on",
            "machine": "arm64",
            "max_connections": "100",
            "platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O",
            "psycopg_version": "3.3.5",
            "python_version": "3.14.6 (main, Jun 10 2026, 10:03:53) [Clang 21.0.0 (clang-2100.0.123.102)]",
            "server_encoding": "UTF8",
            "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
            "server_version_num": "100021",
            "target_kind": "pg10",
            "wal_level": "logical"
          },
          "cases": [
            "fk_missing_unique_key"
          ],
          "observed": {
            "connection_autocommit": true,
            "diagnostic": {
              "column_name": null,
              "constraint_name": null,
              "context": null,
              "datatype_name": null,
              "exception_type": "InvalidForeignKey",
              "internal_position": null,
              "internal_query": null,
              "message_detail": null,
              "message_hint": null,
              "message_primary": "there is no unique constraint matching given keys for referenced table \"fk_parent\"",
              "schema_name": null,
              "severity": "ERROR",
              "severity_nonlocalized": "ERROR",
              "source_file": "tablecmds.c",
              "source_function": "transformFkeyCheckAttrs",
              "source_line": "8136",
              "sqlstate": "42830",
              "statement_position": null,
              "table_name": null,
              "text": "there is no unique constraint matching given keys for referenced table \"fk_parent\""
            },
            "failed_status": "IDLE",
            "foreign_key_count": 1,
            "repair_status": "IDLE"
          },
          "assertions": [
            {
              "expected": "42830",
              "name": "42830 SQLSTATE",
              "observed": "42830",
              "passed": true
            },
            {
              "expected": "ERROR",
              "name": "42830 ERROR severity",
              "observed": "ERROR",
              "passed": true
            },
            {
              "expected": "there is no unique constraint matching given keys for referenced table \"fk_parent\"",
              "name": "42830 primary diagnostic",
              "observed": "there is no unique constraint matching given keys for referenced table \"fk_parent\"",
              "passed": true
            },
            {
              "expected": "IDLE",
              "name": "invalid foreign key leaves autocommit session usable",
              "observed": "IDLE",
              "passed": true
            },
            {
              "expected": {
                "foreign_keys": 1,
                "status": "IDLE"
              },
              "name": "referenced unique key repairs foreign-key definition",
              "observed": {
                "error": true,
                "foreign_keys": 1,
                "status": "IDLE"
              },
              "passed": true
            }
          ],
          "cleanup": {
            "errors": [],
            "passed": true
          },
          "target_stop": {
            "cleanup": {
              "argv": [
                "/usr/local/bin/docker",
                "rm",
                "-f",
                "-v",
                "sqlstate42830_syntax242830pg10_pg10"
              ],
              "elapsed_seconds": 0.277,
              "returncode": 0,
              "stderr": "",
              "stdout": "sqlstate42830_syntax242830pg10_pg10\n"
            },
            "inspect": {
              "argv": [
                "/usr/local/bin/docker",
                "inspect",
                "sqlstate42830_syntax242830pg10_pg10"
              ],
              "elapsed_seconds": 0.022,
              "returncode": 0,
              "stderr": "",
              "stdout": "[\n    {\n        \"Id\": \"6594cbedd55e6c28e1dd19f9528db9dbc8131d7301c871f3107aba4427a23570\",\n        \"Created\": \"2026-09-09T16:40:16.019812084Z\",\n        \"Path\": \"docker-entrypoint.sh\",\n        \"Args\": [\n            \"postgres\",\n            \"-c\",\n            \"listen_addresses=*\",\n            \"-c\",\n            \"log_destination=csvlog\",\n            \"-c\",\n            \"logging_collector=on\",\n            \"-c\",\n            \"log_directory=log\",\n            \"-c\",\n            \"log_filename=postgresql-%Y%m%d%H%M%S.log\",\n            \"-c\",\n            \"log_min_messages=error\",\n            \"-c\",\n            \"log_min_error_statement=error\",\n            \"-c\",\n            \"log_error_verbosity=verbose\",\n            \"-c\",\n            \"wal_level=logical\",\n            \"-c\",\n            \"max_wal_senders=10\",\n            \"-c\",\n            \"max_replication_slots=10\"\n        ],\n        \"State\": {\n            \"Status\": \"running\",\n            \"Running\": true,\n            \"Paused\": false,\n            \"Restarting\": false,\n            \"OOMKilled\": false,\n            \"Dead\": false,\n            \"Pid\": 63219,\n            \"ExitCode\": 0,\n            \"Error\": \"\",\n            \"StartedAt\": \"2026-09-09T16:40:16.094014417Z\",\n            \"FinishedAt\": \"0001-01-01T00:00:00Z\"\n        },\n        \"Image\": \"sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc\",\n        \"ResolvConfPath\": \"/var/lib/docker/containers/6594cbedd55e6c28e1dd19f9528db9dbc8131d7301c871f3107aba4427a23570/resolv.conf\",\n        \"HostnamePath\": \"/var/lib/docker/containers/6594cbedd55e6c28e1dd19f9528db9dbc8131d7301c871f3107aba4427a23570/hostname\",\n        \"HostsPath\": \"/var/lib/docker/containers/6594cbedd55e6c28e1dd19f9528db9dbc8131d7301c871f3107aba4427a23570/hosts\",\n        \"LogPath\": \"/var/lib/docker/containers/6594cbedd55e6c28e1dd19f9528db9dbc8131d7301c871f3107aba4427a23570/6594cbedd55e6c28e1dd19f9528db9dbc8131d7301c871f3107aba4427a23570-json.log\",\n        \"Name\": \"/sqlstate42830_syntax242830pg10_pg10\",\n        \"RestartCount\": 0,\n        \"Driver\": \"overlayfs\",\n        \"Platform\": \"linux\",\n        \"MountLabel\": \"\",\n        \"ProcessLabel\": \"\",\n        \"AppArmorProfile\": \"\",\n        \"ExecIDs\": null,\n        \"HostConfig\": {\n            \"Binds\": null,\n            \"ContainerIDFile\": \"\",\n            \"LogConfig\": {\n                \"Type\": \"json-file\",\n                \"Config\": {}\n            },\n            \"NetworkMode\": \"bridge\",\n            \"PortBindings\": {\n                \"5432/tcp\": [\n                    {\n                        \"HostIp\": \"127.0.0.1\",\n                        \"HostPort\": \"\"\n                    }\n                ]\n            },\n            \"RestartPolicy\": {\n                \"Name\": \"no\",\n                \"MaximumRetryCount\": 0\n            },\n            \"AutoRemove\": false,\n            \"VolumeDriver\": \"\",\n            \"VolumesFrom\": null,\n            \"ConsoleSize\": [\n                0,\n                0\n            ],\n            \"CapAdd\": null,\n            \"CapDrop\": null,\n            \"CgroupnsMode\": \"private\",\n            \"Dns\": null,\n            \"DnsOptions\": [],\n            \"DnsSearch\": [],\n            \"ExtraHosts\": null,\n            \"GroupAdd\": null,\n            \"IpcMode\": \"private\",\n            \"Cgroup\": \"\",\n            \"Links\": null,\n            \"OomScoreAdj\": 0,\n            \"PidMode\": \"\",\n            \"Privileged\": false,\n            \"PublishAllPorts\": false,\n            \"ReadonlyRootfs\": false,\n            \"SecurityOpt\": null,\n            \"UTSMode\": \"\",\n            \"UsernsMode\": \"\",\n            \"ShmSize\": 67108864,\n            \"Runtime\": \"runc\",\n            \"Isolation\": \"\",\n            \"CpuShares\": 0,\n            \"Memory\": 0,\n            \"NanoCpus\": 0,\n            \"CgroupParent\": \"\",\n            \"BlkioWeight\": 0,\n            \"BlkioWeightDevice\": [],\n            \"BlkioDeviceReadBps\": [],\n            \"BlkioDeviceWriteBps\": [],\n            \"BlkioDeviceReadIOps\": [],\n            \"BlkioDeviceWriteIOps\": [],\n            \"CpuPeriod\": 0,\n            \"CpuQuota\": 0,\n            \"CpuRealtimePeriod\": 0,\n            \"CpuRealtimeRuntime\": 0,\n            \"CpusetCpus\": \"\",\n            \"CpusetMems\": \"\",\n            \"Devices\": [],\n            \"DeviceCgroupRules\": null,\n            \"DeviceRequests\": null,\n            \"MemoryReservation\": 0,\n            \"MemorySwap\": 0,\n            \"MemorySwappiness\": null,\n            \"OomKillDisable\": null,\n            \"PidsLimit\": null,\n            \"Ulimits\": [],\n            \"CpuCount\": 0,\n            \"CpuPercent\": 0,\n            \"IOMaximumIOps\": 0,\n            \"IOMaximumBandwidth\": 0,\n            \"MaskedPaths\": [\n                \"/proc/acpi\",\n                \"/proc/asound\",\n                \"/proc/interrupts\",\n                \"/proc/kcore\",\n                \"/proc/keys\",\n                \"/proc/latency_stats\",\n                \"/proc/sched_debug\",\n                \"/proc/scsi\",\n                \"/proc/timer_list\",\n                \"/proc/timer_stats\",\n                \"/sys/devices/virtual/powercap\",\n                \"/sys/firmware\"\n            ],\n            \"ReadonlyPaths\": [\n                \"/proc/bus\",\n                \"/proc/fs\",\n                \"/proc/irq\",\n                \"/proc/sys\",\n                \"/proc/sysrq-trigger\"\n            ]\n        },\n        \"Storage\": {\n            \"RootFS\": {\n                \"Snapshot\": {\n                    \"Name\": \"overlayfs\"\n                }\n            }\n        },\n        \"Mounts\": [\n            {\n                \"Type\": \"volume\",\n                \"Name\": \"a0017ea5e9f8d89a5487121b928e6d2881ec921dddd499c224111f76eb058e1f\",\n                \"Source\": \"/var/lib/docker/volumes/a0017ea5e9f8d89a5487121b928e6d2881ec921dddd499c224111f76eb058e1f/_data\",\n                \"Destination\": \"/var/lib/postgresql/data\",\n                \"Driver\": \"local\",\n                \"Mode\": \"\",\n                \"RW\": true,\n                \"Propagation\": \"\"\n            }\n        ],\n        \"Config\": {\n            \"Hostname\": \"6594cbedd55e\",\n            \"Domainname\": \"\",\n            \"User\": \"\",\n            \"AttachStdin\": false,\n            \"AttachStdout\": false,\n            \"AttachStderr\": false,\n            \"ExposedPorts\": {\n                \"5432/tcp\": {}\n            },\n            \"Tty\": false,\n            \"OpenStdin\": false,\n            \"StdinOnce\": false,\n            \"Env\": [\n                \"POSTGRES_HOST_AUTH_METHOD=trust\",\n                \"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/10/bin\",\n                \"GOSU_VERSION=1.14\",\n                \"LANG=en_US.utf8\",\n                \"PG_MAJOR=10\",\n                \"PG_VERSION=10.21-1.pgdg90+1\",\n                \"PGDATA=/var/lib/postgresql/data\"\n            ],\n            \"Cmd\": [\n                \"postgres\",\n                \"-c\",\n                \"listen_addresses=*\",\n                \"-c\",\n                \"log_destination=csvlog\",\n                \"-c\",\n                \"logging_collector=on\",\n                \"-c\",\n                \"log_directory=log\",\n                \"-c\",\n                \"log_filename=postgresql-%Y%m%d%H%M%S.log\",\n                \"-c\",\n                \"log_min_messages=error\",\n                \"-c\",\n                \"log_min_error_statement=error\",\n                \"-c\",\n                \"log_error_verbosity=verbose\",\n                \"-c\",\n                \"wal_level=logical\",\n                \"-c\",\n                \"max_wal_senders=10\",\n                \"-c\",\n                \"max_replication_slots=10\"\n            ],\n            \"Image\": \"postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc\",\n            \"Volumes\": {\n                \"/var/lib/postgresql/data\": {}\n            },\n            \"WorkingDir\": \"\",\n            \"Entrypoint\": [\n                \"docker-entrypoint.sh\"\n            ],\n            \"Labels\": {},\n            \"StopSignal\": \"SIGINT\",\n            \"StopTimeout\": 1\n        },\n        \"NetworkSettings\": {\n            \"SandboxID\": \"ab4408da0330eff85a5f4436aebdf2fcf5772e444c9dde5732cc95d216caf292\",\n            \"SandboxKey\": \"/var/run/docker/netns/ab4408da0330\",\n            \"Ports\": {\n                \"5432/tcp\": [\n                    {\n                        \"HostIp\": \"127.0.0.1\",\n                        \"HostPort\": \"54169\"\n                    }\n                ]\n            },\n            \"Networks\": {\n                \"bridge\": {\n                    \"IPAMConfig\": null,\n                    \"Links\": null,\n                    \"Aliases\": null,\n                    \"DriverOpts\": null,\n                    \"GwPriority\": 0,\n                    \"NetworkID\": \"aed51554f8cd8bac69ecd4f073e41e147fda7b458e9d95be2af472651f2e825c\",\n                    \"EndpointID\": \"8b2660bcd8c005543d2e0f748c3861ab2a33766d4d3f24309f1cc276d1fe7cb0\",\n                    \"Gateway\": \"172.17.0.1\",\n                    \"IPAddress\": \"172.17.0.53\",\n                    \"MacAddress\": \"5e:6d:a3:aa:b8:f7\",\n                    \"IPPrefixLen\": 16,\n                    \"IPv6Gateway\": \"\",\n                    \"GlobalIPv6Address\": \"\",\n                    \"GlobalIPv6PrefixLen\": 0,\n                    \"DNSNames\": null\n                }\n            }\n        },\n        \"ImageManifestDescriptor\": {\n            \"mediaType\": \"application/vnd.docker.distribution.manifest.v2+json\",\n            \"digest\": \"sha256:52aada7978f1eef3b6b52a51afb7a3defd69254d00c946cb90d2ceb32b8ffce7\",\n            \"size\": 3246,\n            \"platform\": {\n                \"architecture\": \"arm64\",\n                \"os\": \"linux\",\n                \"variant\": \"v8\"\n            }\n        }\n    }\n]\n"
            }
          }
        }
      ]
    },
    {
      "sqlstate": "42846",
      "condition_name": "cannot_coerce",
      "sources": [
        {
          "id": "src.errcodes.REL_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.calls.REL_10_23",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "00d16d3eb01b71ccf1b245c8f3102f9d0ec9f36fb02777b8dd1b99fcb263040c"
        },
        {
          "id": "src.cannot-coerce.18.6",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/parser/parse_expr.c",
          "sha256": "63c37770872a08978f931c31f801666a08e3bc8e51c2c65ff60151a1d139d55b",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/parser/parse_expr.c#L2782-L2787"
        },
        {
          "id": "src.cannot-coerce.10.23",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_10_23",
          "commit": "02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4",
          "path": "src/backend/parser/parse_expr.c",
          "sha256": "2700ba4a37d0715b66be76c900c7da7cf6a4d818eb71178e7b9a51e48e59e136",
          "url": "https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/parser/parse_expr.c#L2739-L2744"
        },
        {
          "id": "manifest.42846",
          "kind": "local_artifact",
          "source_role": "case_manifest",
          "sha256": "a73e8b18ce3528c5b74b6770883b20751d98545f358e3fcd64094017f704834d"
        },
        {
          "id": "snippet-registry.42846",
          "kind": "local_artifact",
          "source_role": "snippet_registry",
          "sha256": "8c6c979d843ec594c5a9f0a4cc6660713b468a48814f71bd5a4eb8c539aa4c11"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "statement": "42846 is the cannot_coerce condition in Class 42.",
          "method": "Read fixed errcodes.txt and locked catalogue metadata.",
          "limits": "Identity does not identify every backend call that can reuse this SQLSTATE.",
          "sources": [
            "src.errcodes.REL_18_6"
          ]
        },
        {
          "id": "mechanism.selected-source-path",
          "statement": "The selected impossible_cast follows a resolved PostgreSQL source-call group; other branches can use different dynamic fields.",
          "method": "Trace the REL_18_6 and REL_10_23 source-call records at the locked commits.",
          "limits": "This is one mechanism boundary, not an exhaustive inventory of the code.",
          "sources": [
            "src.cannot-coerce.18.6",
            "src.cannot-coerce.10.23"
          ]
        },
        {
          "id": "runtime.representative-case",
          "statement": "The selected impossible_cast passed on isolated PostgreSQL 18.6 and 10.21 targets.",
          "method": "Run the shared SQL registry and inspect SQLSTATE, severity, state, repair, cleanup, and target stop.",
          "limits": "Scope is limited to these statements, psycopg, and two versions.",
          "sources": [
            "manifest.42846",
            "snippet-registry.42846"
          ],
          "runtime": [
            "runtime.syntax2-42846-latest.latest",
            "runtime.syntax2-42846-pg10.pg10"
          ]
        },
        {
          "id": "versions.catalogue-boundary",
          "statement": "The locked catalogue records 42846 from the 7.4 presence bound through the listed snapshots; runtime scope is 18.6 and 10.21.",
          "method": "Read generated facts, fixed calls, and selected summaries.",
          "limits": "Definition presence is not an exact behavioral introduction; two runtime versions do not prove every intermediate behavior.",
          "sources": [
            "src.errcodes.REL_18_6",
            "src.calls.REL_18_6",
            "src.calls.REL_10_23"
          ]
        }
      ],
      "messages": [
        {
          "id": "message.impossible_cast",
          "primary_template": "cannot cast type %s to %s",
          "severity_source": "explicit ERROR",
          "sqlstate": "42846",
          "sources": [
            "src.cannot-coerce.18.6",
            "src.cannot-coerce.10.23"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "selected-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "claim.mechanism.selected-source-path",
            "message.impossible_cast"
          ]
        },
        {
          "scope": "selected-case-18.6-and-10.21",
          "status": "observed_runtime",
          "evidence_ids": [
            "runtime.syntax2-42846-latest.latest",
            "runtime.syntax2-42846-pg10.pg10",
            "claim.runtime.representative-case"
          ]
        }
      ],
      "runtime": [
        {
          "id": "runtime.syntax2-42846-latest.latest",
          "run_id": "syntax2-42846-latest",
          "target": "latest",
          "status": "passed",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "summary_sha256": "8cf837715d9427be31279c7369844643aa7a0c7fb9a06d1cda21dc864910ad9c",
          "raw_sha256": "af5badedd6f7288418b8d1458b0f50c1fbf8c8a4e1ebe0320df63427071dcff2",
          "case_manifest": {
            "id": "manifest.42846",
            "kind": "local_artifact",
            "source_role": "case_manifest",
            "sha256": "a73e8b18ce3528c5b74b6770883b20751d98545f358e3fcd64094017f704834d"
          },
          "snippet_registry": {
            "id": "snippet-registry.42846",
            "kind": "local_artifact",
            "source_role": "snippet_registry",
            "sha256": "8c6c979d843ec594c5a9f0a4cc6660713b468a48814f71bd5a4eb8c539aa4c11"
          },
          "environment": {
            "TimeZone": "Asia/Shanghai",
            "backend_pid": 30179,
            "binary": {
              "bindir": "/opt/homebrew/Cellar/postgresql@18/18.6/bin",
              "pg_config": "/opt/homebrew/bin/pg_config",
              "pg_config_version": "PostgreSQL 18.6 (Homebrew)",
              "postgres": "/opt/homebrew/Cellar/postgresql@18/18.6/bin/postgres"
            },
            "connection_scope": "runner-owned localhost port",
            "current_user": "runner",
            "docker": {},
            "lc_messages": "C",
            "libpq_version": "18.6",
            "locale": "C.UTF-8",
            "log_destination": "csvlog,jsonlog",
            "log_error_verbosity": "verbose",
            "log_min_error_statement": "error",
            "log_min_messages": "error",
            "logging_collector": "on",
            "machine": "arm64",
            "max_connections": "100",
            "platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O",
            "psycopg_version": "3.3.5",
            "python_version": "3.14.6 (main, Jun 10 2026, 10:03:53) [Clang 21.0.0 (clang-2100.0.123.102)]",
            "server_encoding": "UTF8",
            "server_version": "18.6 (Homebrew)",
            "server_version_num": "180006",
            "target_kind": "latest",
            "wal_level": "logical"
          },
          "cases": [
            "impossible_cast"
          ],
          "observed": {
            "connection_autocommit": true,
            "diagnostic": {
              "column_name": null,
              "constraint_name": null,
              "context": null,
              "datatype_name": null,
              "exception_type": "CannotCoerce",
              "internal_position": null,
              "internal_query": null,
              "message_detail": null,
              "message_hint": null,
              "message_primary": "cannot cast type integer to date",
              "schema_name": null,
              "severity": "ERROR",
              "severity_nonlocalized": "ERROR",
              "source_file": "parse_expr.c",
              "source_function": "transformTypeCast",
              "source_line": "2787",
              "sqlstate": "42846",
              "statement_position": "18",
              "table_name": null,
              "text": "cannot cast type integer to date\nLINE 1: SELECT 1::integer::date\n                         ^"
            },
            "failed_status": "IDLE",
            "repair_status": "IDLE",
            "repair_value": "2026-01-01"
          },
          "assertions": [
            {
              "expected": "42846",
              "name": "42846 SQLSTATE",
              "observed": "42846",
              "passed": true
            },
            {
              "expected": "ERROR",
              "name": "42846 ERROR severity",
              "observed": "ERROR",
              "passed": true
            },
            {
              "expected": "cannot cast type integer to date",
              "name": "42846 primary diagnostic",
              "observed": "cannot cast type integer to date",
              "passed": true
            },
            {
              "expected": "IDLE",
              "name": "cannot-coerce error leaves autocommit session usable",
              "observed": "IDLE",
              "passed": true
            },
            {
              "expected": {
                "status": "IDLE",
                "value": "2026-01-01"
              },
              "name": "a date-typed literal repairs the expression",
              "observed": {
                "error": true,
                "status": "IDLE",
                "value": "2026-01-01"
              },
              "passed": true
            }
          ],
          "cleanup": {
            "errors": [],
            "passed": true
          },
          "target_stop": {
            "argv": [
              "/opt/homebrew/Cellar/postgresql@18/18.6/bin/pg_ctl",
              "-D",
              "<local runtime artifact>",
              "-m",
              "fast",
              "-w",
              "stop"
            ],
            "elapsed_seconds": 0.115,
            "returncode": 0,
            "stderr": "",
            "stdout": "waiting for server to shut down.... done\nserver stopped\n"
          }
        },
        {
          "id": "runtime.syntax2-42846-pg10.pg10",
          "run_id": "syntax2-42846-pg10",
          "target": "pg10",
          "status": "passed",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "summary_sha256": "008de923b32d0df980d398c51d793a1d422be893b830f3728af333a5889bad9b",
          "raw_sha256": "d13f9e7e174d96b9c470b3520adcbe008e9b6a4b3abf755700e80c3f6d32705f",
          "case_manifest": {
            "id": "manifest.42846",
            "kind": "local_artifact",
            "source_role": "case_manifest",
            "sha256": "a73e8b18ce3528c5b74b6770883b20751d98545f358e3fcd64094017f704834d"
          },
          "snippet_registry": {
            "id": "snippet-registry.42846",
            "kind": "local_artifact",
            "source_role": "snippet_registry",
            "sha256": "8c6c979d843ec594c5a9f0a4cc6660713b468a48814f71bd5a4eb8c539aa4c11"
          },
          "environment": {
            "TimeZone": "Etc/UTC",
            "backend_pid": 80,
            "binary": {},
            "connection_scope": "runner-owned localhost port",
            "current_user": "postgres",
            "docker": {
              "architecture": "arm64",
              "command": "/usr/local/bin/docker",
              "digest": "sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
              "id": "sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
              "image": "postgres:10",
              "image_created": "2022-06-23T09:11:18.374607054Z",
              "image_ref": "postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
              "log_destination": "csvlog",
              "os": "linux",
              "repo_digests": [
                "postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc"
              ]
            },
            "lc_messages": "en_US.utf8",
            "libpq_version": "18.6",
            "locale": "C.UTF-8",
            "log_destination": "csvlog",
            "log_error_verbosity": "verbose",
            "log_min_error_statement": "error",
            "log_min_messages": "error",
            "logging_collector": "on",
            "machine": "arm64",
            "max_connections": "100",
            "platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O",
            "psycopg_version": "3.3.5",
            "python_version": "3.14.6 (main, Jun 10 2026, 10:03:53) [Clang 21.0.0 (clang-2100.0.123.102)]",
            "server_encoding": "UTF8",
            "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
            "server_version_num": "100021",
            "target_kind": "pg10",
            "wal_level": "logical"
          },
          "cases": [
            "impossible_cast"
          ],
          "observed": {
            "connection_autocommit": true,
            "diagnostic": {
              "column_name": null,
              "constraint_name": null,
              "context": null,
              "datatype_name": null,
              "exception_type": "CannotCoerce",
              "internal_position": null,
              "internal_query": null,
              "message_detail": null,
              "message_hint": null,
              "message_primary": "cannot cast type integer to date",
              "schema_name": null,
              "severity": "ERROR",
              "severity_nonlocalized": "ERROR",
              "source_file": "parse_expr.c",
              "source_function": "transformTypeCast",
              "source_line": "2735",
              "sqlstate": "42846",
              "statement_position": "18",
              "table_name": null,
              "text": "cannot cast type integer to date\nLINE 1: SELECT 1::integer::date\n                         ^"
            },
            "failed_status": "IDLE",
            "repair_status": "IDLE",
            "repair_value": "2026-01-01"
          },
          "assertions": [
            {
              "expected": "42846",
              "name": "42846 SQLSTATE",
              "observed": "42846",
              "passed": true
            },
            {
              "expected": "ERROR",
              "name": "42846 ERROR severity",
              "observed": "ERROR",
              "passed": true
            },
            {
              "expected": "cannot cast type integer to date",
              "name": "42846 primary diagnostic",
              "observed": "cannot cast type integer to date",
              "passed": true
            },
            {
              "expected": "IDLE",
              "name": "cannot-coerce error leaves autocommit session usable",
              "observed": "IDLE",
              "passed": true
            },
            {
              "expected": {
                "status": "IDLE",
                "value": "2026-01-01"
              },
              "name": "a date-typed literal repairs the expression",
              "observed": {
                "error": true,
                "status": "IDLE",
                "value": "2026-01-01"
              },
              "passed": true
            }
          ],
          "cleanup": {
            "errors": [],
            "passed": true
          },
          "target_stop": {
            "cleanup": {
              "argv": [
                "/usr/local/bin/docker",
                "rm",
                "-f",
                "-v",
                "sqlstate42846_syntax242846pg10_pg10"
              ],
              "elapsed_seconds": 0.303,
              "returncode": 0,
              "stderr": "",
              "stdout": "sqlstate42846_syntax242846pg10_pg10\n"
            },
            "inspect": {
              "argv": [
                "/usr/local/bin/docker",
                "inspect",
                "sqlstate42846_syntax242846pg10_pg10"
              ],
              "elapsed_seconds": 0.029,
              "returncode": 0,
              "stderr": "",
              "stdout": "[\n    {\n        \"Id\": \"5309521c77165a404061c4f8d4c4b3c4d579e895134aaac3d859743df43ac48d\",\n        \"Created\": \"2026-09-09T16:40:17.461559001Z\",\n        \"Path\": \"docker-entrypoint.sh\",\n        \"Args\": [\n            \"postgres\",\n            \"-c\",\n            \"listen_addresses=*\",\n            \"-c\",\n            \"log_destination=csvlog\",\n            \"-c\",\n            \"logging_collector=on\",\n            \"-c\",\n            \"log_directory=log\",\n            \"-c\",\n            \"log_filename=postgresql-%Y%m%d%H%M%S.log\",\n            \"-c\",\n            \"log_min_messages=error\",\n            \"-c\",\n            \"log_min_error_statement=error\",\n            \"-c\",\n            \"log_error_verbosity=verbose\",\n            \"-c\",\n            \"wal_level=logical\",\n            \"-c\",\n            \"max_wal_senders=10\",\n            \"-c\",\n            \"max_replication_slots=10\"\n        ],\n        \"State\": {\n            \"Status\": \"running\",\n            \"Running\": true,\n            \"Paused\": false,\n            \"Restarting\": false,\n            \"OOMKilled\": false,\n            \"Dead\": false,\n            \"Pid\": 63391,\n            \"ExitCode\": 0,\n            \"Error\": \"\",\n            \"StartedAt\": \"2026-09-09T16:40:17.529231335Z\",\n            \"FinishedAt\": \"0001-01-01T00:00:00Z\"\n        },\n        \"Image\": \"sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc\",\n        \"ResolvConfPath\": \"/var/lib/docker/containers/5309521c77165a404061c4f8d4c4b3c4d579e895134aaac3d859743df43ac48d/resolv.conf\",\n        \"HostnamePath\": \"/var/lib/docker/containers/5309521c77165a404061c4f8d4c4b3c4d579e895134aaac3d859743df43ac48d/hostname\",\n        \"HostsPath\": \"/var/lib/docker/containers/5309521c77165a404061c4f8d4c4b3c4d579e895134aaac3d859743df43ac48d/hosts\",\n        \"LogPath\": \"/var/lib/docker/containers/5309521c77165a404061c4f8d4c4b3c4d579e895134aaac3d859743df43ac48d/5309521c77165a404061c4f8d4c4b3c4d579e895134aaac3d859743df43ac48d-json.log\",\n        \"Name\": \"/sqlstate42846_syntax242846pg10_pg10\",\n        \"RestartCount\": 0,\n        \"Driver\": \"overlayfs\",\n        \"Platform\": \"linux\",\n        \"MountLabel\": \"\",\n        \"ProcessLabel\": \"\",\n        \"AppArmorProfile\": \"\",\n        \"ExecIDs\": null,\n        \"HostConfig\": {\n            \"Binds\": null,\n            \"ContainerIDFile\": \"\",\n            \"LogConfig\": {\n                \"Type\": \"json-file\",\n                \"Config\": {}\n            },\n            \"NetworkMode\": \"bridge\",\n            \"PortBindings\": {\n                \"5432/tcp\": [\n                    {\n                        \"HostIp\": \"127.0.0.1\",\n                        \"HostPort\": \"\"\n                    }\n                ]\n            },\n            \"RestartPolicy\": {\n                \"Name\": \"no\",\n                \"MaximumRetryCount\": 0\n            },\n            \"AutoRemove\": false,\n            \"VolumeDriver\": \"\",\n            \"VolumesFrom\": null,\n            \"ConsoleSize\": [\n                0,\n                0\n            ],\n            \"CapAdd\": null,\n            \"CapDrop\": null,\n            \"CgroupnsMode\": \"private\",\n            \"Dns\": null,\n            \"DnsOptions\": [],\n            \"DnsSearch\": [],\n            \"ExtraHosts\": null,\n            \"GroupAdd\": null,\n            \"IpcMode\": \"private\",\n            \"Cgroup\": \"\",\n            \"Links\": null,\n            \"OomScoreAdj\": 0,\n            \"PidMode\": \"\",\n            \"Privileged\": false,\n            \"PublishAllPorts\": false,\n            \"ReadonlyRootfs\": false,\n            \"SecurityOpt\": null,\n            \"UTSMode\": \"\",\n            \"UsernsMode\": \"\",\n            \"ShmSize\": 67108864,\n            \"Runtime\": \"runc\",\n            \"Isolation\": \"\",\n            \"CpuShares\": 0,\n            \"Memory\": 0,\n            \"NanoCpus\": 0,\n            \"CgroupParent\": \"\",\n            \"BlkioWeight\": 0,\n            \"BlkioWeightDevice\": [],\n            \"BlkioDeviceReadBps\": [],\n            \"BlkioDeviceWriteBps\": [],\n            \"BlkioDeviceReadIOps\": [],\n            \"BlkioDeviceWriteIOps\": [],\n            \"CpuPeriod\": 0,\n            \"CpuQuota\": 0,\n            \"CpuRealtimePeriod\": 0,\n            \"CpuRealtimeRuntime\": 0,\n            \"CpusetCpus\": \"\",\n            \"CpusetMems\": \"\",\n            \"Devices\": [],\n            \"DeviceCgroupRules\": null,\n            \"DeviceRequests\": null,\n            \"MemoryReservation\": 0,\n            \"MemorySwap\": 0,\n            \"MemorySwappiness\": null,\n            \"OomKillDisable\": null,\n            \"PidsLimit\": null,\n            \"Ulimits\": [],\n            \"CpuCount\": 0,\n            \"CpuPercent\": 0,\n            \"IOMaximumIOps\": 0,\n            \"IOMaximumBandwidth\": 0,\n            \"MaskedPaths\": [\n                \"/proc/acpi\",\n                \"/proc/asound\",\n                \"/proc/interrupts\",\n                \"/proc/kcore\",\n                \"/proc/keys\",\n                \"/proc/latency_stats\",\n                \"/proc/sched_debug\",\n                \"/proc/scsi\",\n                \"/proc/timer_list\",\n                \"/proc/timer_stats\",\n                \"/sys/devices/virtual/powercap\",\n                \"/sys/firmware\"\n            ],\n            \"ReadonlyPaths\": [\n                \"/proc/bus\",\n                \"/proc/fs\",\n                \"/proc/irq\",\n                \"/proc/sys\",\n                \"/proc/sysrq-trigger\"\n            ]\n        },\n        \"Storage\": {\n            \"RootFS\": {\n                \"Snapshot\": {\n                    \"Name\": \"overlayfs\"\n                }\n            }\n        },\n        \"Mounts\": [\n            {\n                \"Type\": \"volume\",\n                \"Name\": \"d69a6c7b6d23752f23ed2bb89fddab02714f95f47ac1c369f1176201f3976c25\",\n                \"Source\": \"/var/lib/docker/volumes/d69a6c7b6d23752f23ed2bb89fddab02714f95f47ac1c369f1176201f3976c25/_data\",\n                \"Destination\": \"/var/lib/postgresql/data\",\n                \"Driver\": \"local\",\n                \"Mode\": \"\",\n                \"RW\": true,\n                \"Propagation\": \"\"\n            }\n        ],\n        \"Config\": {\n            \"Hostname\": \"5309521c7716\",\n            \"Domainname\": \"\",\n            \"User\": \"\",\n            \"AttachStdin\": false,\n            \"AttachStdout\": false,\n            \"AttachStderr\": false,\n            \"ExposedPorts\": {\n                \"5432/tcp\": {}\n            },\n            \"Tty\": false,\n            \"OpenStdin\": false,\n            \"StdinOnce\": false,\n            \"Env\": [\n                \"POSTGRES_HOST_AUTH_METHOD=trust\",\n                \"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/10/bin\",\n                \"GOSU_VERSION=1.14\",\n                \"LANG=en_US.utf8\",\n                \"PG_MAJOR=10\",\n                \"PG_VERSION=10.21-1.pgdg90+1\",\n                \"PGDATA=/var/lib/postgresql/data\"\n            ],\n            \"Cmd\": [\n                \"postgres\",\n                \"-c\",\n                \"listen_addresses=*\",\n                \"-c\",\n                \"log_destination=csvlog\",\n                \"-c\",\n                \"logging_collector=on\",\n                \"-c\",\n                \"log_directory=log\",\n                \"-c\",\n                \"log_filename=postgresql-%Y%m%d%H%M%S.log\",\n                \"-c\",\n                \"log_min_messages=error\",\n                \"-c\",\n                \"log_min_error_statement=error\",\n                \"-c\",\n                \"log_error_verbosity=verbose\",\n                \"-c\",\n                \"wal_level=logical\",\n                \"-c\",\n                \"max_wal_senders=10\",\n                \"-c\",\n                \"max_replication_slots=10\"\n            ],\n            \"Image\": \"postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc\",\n            \"Volumes\": {\n                \"/var/lib/postgresql/data\": {}\n            },\n            \"WorkingDir\": \"\",\n            \"Entrypoint\": [\n                \"docker-entrypoint.sh\"\n            ],\n            \"Labels\": {},\n            \"StopSignal\": \"SIGINT\",\n            \"StopTimeout\": 1\n        },\n        \"NetworkSettings\": {\n            \"SandboxID\": \"2ed350aa8337298416aba18d1d57336a15b1b744d2397b2cccb5f847eb9364ce\",\n            \"SandboxKey\": \"/var/run/docker/netns/2ed350aa8337\",\n            \"Ports\": {\n                \"5432/tcp\": [\n                    {\n                        \"HostIp\": \"127.0.0.1\",\n                        \"HostPort\": \"54192\"\n                    }\n                ]\n            },\n            \"Networks\": {\n                \"bridge\": {\n                    \"IPAMConfig\": null,\n                    \"Links\": null,\n                    \"Aliases\": null,\n                    \"DriverOpts\": null,\n                    \"GwPriority\": 0,\n                    \"NetworkID\": \"aed51554f8cd8bac69ecd4f073e41e147fda7b458e9d95be2af472651f2e825c\",\n                    \"EndpointID\": \"f510f611c5594d34cc4e82c31453e19635f53980adc78f541d19252ac5b41bf7\",\n                    \"Gateway\": \"172.17.0.1\",\n                    \"IPAddress\": \"172.17.0.53\",\n                    \"MacAddress\": \"5e:f3:db:79:e7:fb\",\n                    \"IPPrefixLen\": 16,\n                    \"IPv6Gateway\": \"\",\n                    \"GlobalIPv6Address\": \"\",\n                    \"GlobalIPv6PrefixLen\": 0,\n                    \"DNSNames\": null\n                }\n            }\n        },\n        \"ImageManifestDescriptor\": {\n            \"mediaType\": \"application/vnd.docker.distribution.manifest.v2+json\",\n            \"digest\": \"sha256:52aada7978f1eef3b6b52a51afb7a3defd69254d00c946cb90d2ceb32b8ffce7\",\n            \"size\": 3246,\n            \"platform\": {\n                \"architecture\": \"arm64\",\n                \"os\": \"linux\",\n                \"variant\": \"v8\"\n            }\n        }\n    }\n]\n"
            }
          }
        }
      ]
    },
    {
      "sqlstate": "42883",
      "condition_name": "undefined_function",
      "sources": [
        {
          "id": "src.errcodes.REL_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.calls.REL_10_23",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "00d16d3eb01b71ccf1b245c8f3102f9d0ec9f36fb02777b8dd1b99fcb263040c"
        },
        {
          "id": "src.undefined-function.18.6",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/parser/parse_func.c",
          "sha256": "48314eab022297478ac4e49786afaff2621ab7b1d7b50e156668cf477961384f",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/parser/parse_func.c#L629-L636"
        },
        {
          "id": "src.undefined-function.10.23",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_10_23",
          "commit": "02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4",
          "path": "src/backend/parser/parse_func.c",
          "sha256": "f1b4af88565ca01dbad2b244cd26b42f34764b3f1343b22a9231e271fb0742f2",
          "url": "https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/parser/parse_func.c#L521-L528"
        },
        {
          "id": "src.undefined-operator.18.6",
          "kind": "upstream_source",
          "source_role": "source_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/parser/parse_oper.c",
          "sha256": "3866ce3302c2a4bd22d0f1d113a4bbc627278a618d5e7b83660e36240cbdd0a8",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/parser/parse_oper.c#L619-L644"
        },
        {
          "id": "src.undefined-operator.10.23",
          "kind": "upstream_source",
          "source_role": "source_context",
          "tag": "REL_10_23",
          "commit": "02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4",
          "path": "src/backend/parser/parse_oper.c",
          "sha256": "5802db6d55bdb41f9cad4957384fa2c2ddbb4dc902c33f5f57e8a07760761d10",
          "url": "https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/parser/parse_oper.c#L706-L728"
        },
        {
          "id": "manifest.42883",
          "kind": "local_artifact",
          "source_role": "case_manifest",
          "sha256": "93525c5a0711f2feb9107b0b42d678bcb93ea48221f10894788c3b27568f3178"
        },
        {
          "id": "snippet-registry.42883",
          "kind": "local_artifact",
          "source_role": "snippet_registry",
          "sha256": "9b85f7d06d85ecf0a5389f6f507c1b62bbd9c94ab183cb26c0f29d015f90cecc"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "statement": "42883 is the undefined_function condition in Class 42.",
          "method": "Read fixed errcodes.txt and locked catalogue metadata.",
          "limits": "Identity does not identify every backend call that can reuse this SQLSTATE.",
          "sources": [
            "src.errcodes.REL_18_6"
          ]
        },
        {
          "id": "mechanism.selected-source-path",
          "statement": "The selected missing_function_resolution follows a resolved PostgreSQL source-call group; other branches can use different dynamic fields.",
          "method": "Trace the REL_18_6 and REL_10_23 source-call records at the locked commits.",
          "limits": "This is one mechanism boundary, not an exhaustive inventory of the code.",
          "sources": [
            "src.undefined-function.18.6",
            "src.undefined-function.10.23"
          ]
        },
        {
          "id": "mechanism.reader-boundary",
          "statement": "Resolve function or operator name, schema visibility, exact argument types, overloads, and extension/server feature availability before changing search_path or casts.",
          "method": "Combine the selected source call, registry SQL, and passed structured assertions.",
          "limits": "The claim describes the selected path and does not generalize to every branch sharing this SQLSTATE.",
          "sources": [
            "src.undefined-function.18.6",
            "src.undefined-function.10.23",
            "src.undefined-operator.18.6",
            "src.undefined-operator.10.23",
            "snippet-registry.42883"
          ]
        },
        {
          "id": "mechanism.operator-resolution",
          "statement": "parse_oper.c reuses 42883 for an unresolved operator and formats the operator signature with a plural or singular operand-type hint depending on which argument types are known.",
          "method": "Read the complete fixed op_error branch in both locked parse_oper.c snapshots.",
          "limits": "The selected runtime exercises the function producer; operator resolution and extension/version availability remain source-only here.",
          "sources": [
            "src.undefined-operator.18.6",
            "src.undefined-operator.10.23"
          ]
        },
        {
          "id": "runtime.representative-case",
          "statement": "The selected missing_function_resolution passed on isolated PostgreSQL 18.6 and 10.21 targets.",
          "method": "Run the shared SQL registry and inspect SQLSTATE, severity, state, repair, cleanup, and target stop.",
          "limits": "Scope is limited to these statements, psycopg, and two versions.",
          "sources": [
            "manifest.42883",
            "snippet-registry.42883"
          ],
          "runtime": [
            "runtime.syntax2-42883-latest.latest",
            "runtime.syntax2-42883-pg10.pg10"
          ]
        },
        {
          "id": "versions.catalogue-boundary",
          "statement": "The locked catalogue records 42883 from the 7.4 presence bound through the listed snapshots; runtime scope is 18.6 and 10.21.",
          "method": "Read generated facts, fixed calls, and selected summaries.",
          "limits": "Definition presence is not an exact behavioral introduction; two runtime versions do not prove every intermediate behavior.",
          "sources": [
            "src.errcodes.REL_18_6",
            "src.calls.REL_18_6",
            "src.calls.REL_10_23"
          ]
        }
      ],
      "messages": [
        {
          "id": "message.missing_function_resolution",
          "primary_template": "function %s does not exist",
          "severity_source": "explicit ERROR",
          "sqlstate": "42883",
          "sources": [
            "src.undefined-function.18.6",
            "src.undefined-function.10.23"
          ],
          "hint_template": "No function matches the given name and argument types. You might need to add explicit type casts."
        },
        {
          "id": "message.missing_operator_resolution",
          "primary_template": "operator does not exist: %s",
          "severity_source": "explicit ERROR",
          "sqlstate": "42883",
          "hint_variants": [
            {
              "template": "No operator matches the given name and argument types. You might need to add explicit type casts.",
              "condition": "both operand types are known"
            },
            {
              "template": "No operator matches the given name and argument type. You might need to add an explicit type cast.",
              "condition": "one operand type is unknown"
            }
          ],
          "sources": [
            "src.undefined-operator.18.6",
            "src.undefined-operator.10.23"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "selected-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "claim.mechanism.selected-source-path",
            "message.missing_function_resolution"
          ]
        },
        {
          "scope": "selected-case-18.6-and-10.21",
          "status": "observed_runtime",
          "evidence_ids": [
            "runtime.syntax2-42883-latest.latest",
            "runtime.syntax2-42883-pg10.pg10",
            "claim.runtime.representative-case"
          ]
        }
      ],
      "runtime": [
        {
          "id": "runtime.syntax2-42883-latest.latest",
          "run_id": "syntax2-42883-latest",
          "target": "latest",
          "status": "passed",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "summary_sha256": "cf925fb0bb74077a48829156d677b2da804f9f12307524991e293765ea70da1e",
          "raw_sha256": "05d9c68eedf0bf0cbdce86869d7037172b39f1e671883b6e1d69d95ddd882b32",
          "case_manifest": {
            "id": "manifest.42883",
            "kind": "local_artifact",
            "source_role": "case_manifest",
            "sha256": "93525c5a0711f2feb9107b0b42d678bcb93ea48221f10894788c3b27568f3178"
          },
          "snippet_registry": {
            "id": "snippet-registry.42883",
            "kind": "local_artifact",
            "source_role": "snippet_registry",
            "sha256": "9b85f7d06d85ecf0a5389f6f507c1b62bbd9c94ab183cb26c0f29d015f90cecc"
          },
          "environment": {
            "TimeZone": "Asia/Shanghai",
            "backend_pid": 29899,
            "binary": {
              "bindir": "/opt/homebrew/Cellar/postgresql@18/18.6/bin",
              "pg_config": "/opt/homebrew/bin/pg_config",
              "pg_config_version": "PostgreSQL 18.6 (Homebrew)",
              "postgres": "/opt/homebrew/Cellar/postgresql@18/18.6/bin/postgres"
            },
            "connection_scope": "runner-owned localhost port",
            "current_user": "runner",
            "docker": {},
            "lc_messages": "C",
            "libpq_version": "18.6",
            "locale": "C.UTF-8",
            "log_destination": "csvlog,jsonlog",
            "log_error_verbosity": "verbose",
            "log_min_error_statement": "error",
            "log_min_messages": "error",
            "logging_collector": "on",
            "machine": "arm64",
            "max_connections": "100",
            "platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O",
            "psycopg_version": "3.3.5",
            "python_version": "3.14.6 (main, Jun 10 2026, 10:03:53) [Clang 21.0.0 (clang-2100.0.123.102)]",
            "server_encoding": "UTF8",
            "server_version": "18.6 (Homebrew)",
            "server_version_num": "180006",
            "target_kind": "latest",
            "wal_level": "logical"
          },
          "cases": [
            "missing_function_resolution"
          ],
          "observed": {
            "connection_autocommit": true,
            "diagnostic": {
              "column_name": null,
              "constraint_name": null,
              "context": null,
              "datatype_name": null,
              "exception_type": "UndefinedFunction",
              "internal_position": null,
              "internal_query": null,
              "message_detail": null,
              "message_hint": "No function matches the given name and argument types. You might need to add explicit type casts.",
              "message_primary": "function c42883_missing_function_resolution.missing_function(integer) does not exist",
              "schema_name": null,
              "severity": "ERROR",
              "severity_nonlocalized": "ERROR",
              "source_file": "parse_func.c",
              "source_function": "ParseFuncOrColumn",
              "source_line": "636",
              "sqlstate": "42883",
              "statement_position": "8",
              "table_name": null,
              "text": "function c42883_missing_function_resolution.missing_function(integer) does not exist\nLINE 1: SELECT \"c42883_missing_function_resolution\".missing_function...\n               ^\nHINT:  No function matches the given name and argument types. You might need to add explicit type casts."
            },
            "failed_status": "IDLE",
            "repair_status": "IDLE",
            "repair_value": 42
          },
          "assertions": [
            {
              "expected": "42883",
              "name": "42883 SQLSTATE",
              "observed": "42883",
              "passed": true
            },
            {
              "expected": "ERROR",
              "name": "42883 ERROR severity",
              "observed": "ERROR",
              "passed": true
            },
            {
              "expected": "missing_function(integer) does not exist",
              "name": "undefined function diagnostic includes name and signature",
              "observed": "function c42883_missing_function_resolution.missing_function(integer) does not exist",
              "passed": true
            },
            {
              "expected": "IDLE",
              "name": "undefined function leaves autocommit session usable",
              "observed": "IDLE",
              "passed": true
            },
            {
              "expected": {
                "status": "IDLE",
                "value": 42
              },
              "name": "creating the exact integer signature repairs lookup",
              "observed": {
                "error": true,
                "status": "IDLE",
                "value": 42
              },
              "passed": true
            }
          ],
          "cleanup": {
            "errors": [],
            "passed": true
          },
          "target_stop": {
            "argv": [
              "/opt/homebrew/Cellar/postgresql@18/18.6/bin/pg_ctl",
              "-D",
              "<local runtime artifact>",
              "-m",
              "fast",
              "-w",
              "stop"
            ],
            "elapsed_seconds": 0.111,
            "returncode": 0,
            "stderr": "",
            "stdout": "waiting for server to shut down.... done\nserver stopped\n"
          }
        },
        {
          "id": "runtime.syntax2-42883-pg10.pg10",
          "run_id": "syntax2-42883-pg10",
          "target": "pg10",
          "status": "passed",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "summary_sha256": "9bbf9a4f3ea09105a2419552ea3d117bf5c87bd255e82b5851c60d0256b6fbcf",
          "raw_sha256": "25a6a146fe2e7f8817e7de1146163ad2a3160930ff323b2ec73c09c91ba792e3",
          "case_manifest": {
            "id": "manifest.42883",
            "kind": "local_artifact",
            "source_role": "case_manifest",
            "sha256": "93525c5a0711f2feb9107b0b42d678bcb93ea48221f10894788c3b27568f3178"
          },
          "snippet_registry": {
            "id": "snippet-registry.42883",
            "kind": "local_artifact",
            "source_role": "snippet_registry",
            "sha256": "9b85f7d06d85ecf0a5389f6f507c1b62bbd9c94ab183cb26c0f29d015f90cecc"
          },
          "environment": {
            "TimeZone": "Etc/UTC",
            "backend_pid": 79,
            "binary": {},
            "connection_scope": "runner-owned localhost port",
            "current_user": "postgres",
            "docker": {
              "architecture": "arm64",
              "command": "/usr/local/bin/docker",
              "digest": "sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
              "id": "sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
              "image": "postgres:10",
              "image_created": "2022-06-23T09:11:18.374607054Z",
              "image_ref": "postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
              "log_destination": "csvlog",
              "os": "linux",
              "repo_digests": [
                "postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc"
              ]
            },
            "lc_messages": "en_US.utf8",
            "libpq_version": "18.6",
            "locale": "C.UTF-8",
            "log_destination": "csvlog",
            "log_error_verbosity": "verbose",
            "log_min_error_statement": "error",
            "log_min_messages": "error",
            "logging_collector": "on",
            "machine": "arm64",
            "max_connections": "100",
            "platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O",
            "psycopg_version": "3.3.5",
            "python_version": "3.14.6 (main, Jun 10 2026, 10:03:53) [Clang 21.0.0 (clang-2100.0.123.102)]",
            "server_encoding": "UTF8",
            "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
            "server_version_num": "100021",
            "target_kind": "pg10",
            "wal_level": "logical"
          },
          "cases": [
            "missing_function_resolution"
          ],
          "observed": {
            "connection_autocommit": true,
            "diagnostic": {
              "column_name": null,
              "constraint_name": null,
              "context": null,
              "datatype_name": null,
              "exception_type": "UndefinedFunction",
              "internal_position": null,
              "internal_query": null,
              "message_detail": null,
              "message_hint": "No function matches the given name and argument types. You might need to add explicit type casts.",
              "message_primary": "function c42883_missing_function_resolution.missing_function(integer) does not exist",
              "schema_name": null,
              "severity": "ERROR",
              "severity_nonlocalized": "ERROR",
              "source_file": "parse_func.c",
              "source_function": "ParseFuncOrColumn",
              "source_line": "528",
              "sqlstate": "42883",
              "statement_position": "8",
              "table_name": null,
              "text": "function c42883_missing_function_resolution.missing_function(integer) does not exist\nLINE 1: SELECT \"c42883_missing_function_resolution\".missing_function...\n               ^\nHINT:  No function matches the given name and argument types. You might need to add explicit type casts."
            },
            "failed_status": "IDLE",
            "repair_status": "IDLE",
            "repair_value": 42
          },
          "assertions": [
            {
              "expected": "42883",
              "name": "42883 SQLSTATE",
              "observed": "42883",
              "passed": true
            },
            {
              "expected": "ERROR",
              "name": "42883 ERROR severity",
              "observed": "ERROR",
              "passed": true
            },
            {
              "expected": "missing_function(integer) does not exist",
              "name": "undefined function diagnostic includes name and signature",
              "observed": "function c42883_missing_function_resolution.missing_function(integer) does not exist",
              "passed": true
            },
            {
              "expected": "IDLE",
              "name": "undefined function leaves autocommit session usable",
              "observed": "IDLE",
              "passed": true
            },
            {
              "expected": {
                "status": "IDLE",
                "value": 42
              },
              "name": "creating the exact integer signature repairs lookup",
              "observed": {
                "error": true,
                "status": "IDLE",
                "value": 42
              },
              "passed": true
            }
          ],
          "cleanup": {
            "errors": [],
            "passed": true
          },
          "target_stop": {
            "cleanup": {
              "argv": [
                "/usr/local/bin/docker",
                "rm",
                "-f",
                "-v",
                "sqlstate42883_syntax242883pg10_pg10"
              ],
              "elapsed_seconds": 0.306,
              "returncode": 0,
              "stderr": "",
              "stdout": "sqlstate42883_syntax242883pg10_pg10\n"
            },
            "inspect": {
              "argv": [
                "/usr/local/bin/docker",
                "inspect",
                "sqlstate42883_syntax242883pg10_pg10"
              ],
              "elapsed_seconds": 0.027,
              "returncode": 0,
              "stderr": "",
              "stdout": "[\n    {\n        \"Id\": \"15ffa60d9f5a929d02b4f4abf0cce5477969d5a3f18109046e30a3a2a4654f7c\",\n        \"Created\": \"2026-09-09T16:40:18.918149127Z\",\n        \"Path\": \"docker-entrypoint.sh\",\n        \"Args\": [\n            \"postgres\",\n            \"-c\",\n            \"listen_addresses=*\",\n            \"-c\",\n            \"log_destination=csvlog\",\n            \"-c\",\n            \"logging_collector=on\",\n            \"-c\",\n            \"log_directory=log\",\n            \"-c\",\n            \"log_filename=postgresql-%Y%m%d%H%M%S.log\",\n            \"-c\",\n            \"log_min_messages=error\",\n            \"-c\",\n            \"log_min_error_statement=error\",\n            \"-c\",\n            \"log_error_verbosity=verbose\",\n            \"-c\",\n            \"wal_level=logical\",\n            \"-c\",\n            \"max_wal_senders=10\",\n            \"-c\",\n            \"max_replication_slots=10\"\n        ],\n        \"State\": {\n            \"Status\": \"running\",\n            \"Running\": true,\n            \"Paused\": false,\n            \"Restarting\": false,\n            \"OOMKilled\": false,\n            \"Dead\": false,\n            \"Pid\": 63564,\n            \"ExitCode\": 0,\n            \"Error\": \"\",\n            \"StartedAt\": \"2026-09-09T16:40:18.98895921Z\",\n            \"FinishedAt\": \"0001-01-01T00:00:00Z\"\n        },\n        \"Image\": \"sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc\",\n        \"ResolvConfPath\": \"/var/lib/docker/containers/15ffa60d9f5a929d02b4f4abf0cce5477969d5a3f18109046e30a3a2a4654f7c/resolv.conf\",\n        \"HostnamePath\": \"/var/lib/docker/containers/15ffa60d9f5a929d02b4f4abf0cce5477969d5a3f18109046e30a3a2a4654f7c/hostname\",\n        \"HostsPath\": \"/var/lib/docker/containers/15ffa60d9f5a929d02b4f4abf0cce5477969d5a3f18109046e30a3a2a4654f7c/hosts\",\n        \"LogPath\": \"/var/lib/docker/containers/15ffa60d9f5a929d02b4f4abf0cce5477969d5a3f18109046e30a3a2a4654f7c/15ffa60d9f5a929d02b4f4abf0cce5477969d5a3f18109046e30a3a2a4654f7c-json.log\",\n        \"Name\": \"/sqlstate42883_syntax242883pg10_pg10\",\n        \"RestartCount\": 0,\n        \"Driver\": \"overlayfs\",\n        \"Platform\": \"linux\",\n        \"MountLabel\": \"\",\n        \"ProcessLabel\": \"\",\n        \"AppArmorProfile\": \"\",\n        \"ExecIDs\": null,\n        \"HostConfig\": {\n            \"Binds\": null,\n            \"ContainerIDFile\": \"\",\n            \"LogConfig\": {\n                \"Type\": \"json-file\",\n                \"Config\": {}\n            },\n            \"NetworkMode\": \"bridge\",\n            \"PortBindings\": {\n                \"5432/tcp\": [\n                    {\n                        \"HostIp\": \"127.0.0.1\",\n                        \"HostPort\": \"\"\n                    }\n                ]\n            },\n            \"RestartPolicy\": {\n                \"Name\": \"no\",\n                \"MaximumRetryCount\": 0\n            },\n            \"AutoRemove\": false,\n            \"VolumeDriver\": \"\",\n            \"VolumesFrom\": null,\n            \"ConsoleSize\": [\n                0,\n                0\n            ],\n            \"CapAdd\": null,\n            \"CapDrop\": null,\n            \"CgroupnsMode\": \"private\",\n            \"Dns\": null,\n            \"DnsOptions\": [],\n            \"DnsSearch\": [],\n            \"ExtraHosts\": null,\n            \"GroupAdd\": null,\n            \"IpcMode\": \"private\",\n            \"Cgroup\": \"\",\n            \"Links\": null,\n            \"OomScoreAdj\": 0,\n            \"PidMode\": \"\",\n            \"Privileged\": false,\n            \"PublishAllPorts\": false,\n            \"ReadonlyRootfs\": false,\n            \"SecurityOpt\": null,\n            \"UTSMode\": \"\",\n            \"UsernsMode\": \"\",\n            \"ShmSize\": 67108864,\n            \"Runtime\": \"runc\",\n            \"Isolation\": \"\",\n            \"CpuShares\": 0,\n            \"Memory\": 0,\n            \"NanoCpus\": 0,\n            \"CgroupParent\": \"\",\n            \"BlkioWeight\": 0,\n            \"BlkioWeightDevice\": [],\n            \"BlkioDeviceReadBps\": [],\n            \"BlkioDeviceWriteBps\": [],\n            \"BlkioDeviceReadIOps\": [],\n            \"BlkioDeviceWriteIOps\": [],\n            \"CpuPeriod\": 0,\n            \"CpuQuota\": 0,\n            \"CpuRealtimePeriod\": 0,\n            \"CpuRealtimeRuntime\": 0,\n            \"CpusetCpus\": \"\",\n            \"CpusetMems\": \"\",\n            \"Devices\": [],\n            \"DeviceCgroupRules\": null,\n            \"DeviceRequests\": null,\n            \"MemoryReservation\": 0,\n            \"MemorySwap\": 0,\n            \"MemorySwappiness\": null,\n            \"OomKillDisable\": null,\n            \"PidsLimit\": null,\n            \"Ulimits\": [],\n            \"CpuCount\": 0,\n            \"CpuPercent\": 0,\n            \"IOMaximumIOps\": 0,\n            \"IOMaximumBandwidth\": 0,\n            \"MaskedPaths\": [\n                \"/proc/acpi\",\n                \"/proc/asound\",\n                \"/proc/interrupts\",\n                \"/proc/kcore\",\n                \"/proc/keys\",\n                \"/proc/latency_stats\",\n                \"/proc/sched_debug\",\n                \"/proc/scsi\",\n                \"/proc/timer_list\",\n                \"/proc/timer_stats\",\n                \"/sys/devices/virtual/powercap\",\n                \"/sys/firmware\"\n            ],\n            \"ReadonlyPaths\": [\n                \"/proc/bus\",\n                \"/proc/fs\",\n                \"/proc/irq\",\n                \"/proc/sys\",\n                \"/proc/sysrq-trigger\"\n            ]\n        },\n        \"Storage\": {\n            \"RootFS\": {\n                \"Snapshot\": {\n                    \"Name\": \"overlayfs\"\n                }\n            }\n        },\n        \"Mounts\": [\n            {\n                \"Type\": \"volume\",\n                \"Name\": \"42ef8ca21d1480e7df35b45cd92dc9c343255f5017d77574afbbb8ab321e1cc7\",\n                \"Source\": \"/var/lib/docker/volumes/42ef8ca21d1480e7df35b45cd92dc9c343255f5017d77574afbbb8ab321e1cc7/_data\",\n                \"Destination\": \"/var/lib/postgresql/data\",\n                \"Driver\": \"local\",\n                \"Mode\": \"\",\n                \"RW\": true,\n                \"Propagation\": \"\"\n            }\n        ],\n        \"Config\": {\n            \"Hostname\": \"15ffa60d9f5a\",\n            \"Domainname\": \"\",\n            \"User\": \"\",\n            \"AttachStdin\": false,\n            \"AttachStdout\": false,\n            \"AttachStderr\": false,\n            \"ExposedPorts\": {\n                \"5432/tcp\": {}\n            },\n            \"Tty\": false,\n            \"OpenStdin\": false,\n            \"StdinOnce\": false,\n            \"Env\": [\n                \"POSTGRES_HOST_AUTH_METHOD=trust\",\n                \"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/10/bin\",\n                \"GOSU_VERSION=1.14\",\n                \"LANG=en_US.utf8\",\n                \"PG_MAJOR=10\",\n                \"PG_VERSION=10.21-1.pgdg90+1\",\n                \"PGDATA=/var/lib/postgresql/data\"\n            ],\n            \"Cmd\": [\n                \"postgres\",\n                \"-c\",\n                \"listen_addresses=*\",\n                \"-c\",\n                \"log_destination=csvlog\",\n                \"-c\",\n                \"logging_collector=on\",\n                \"-c\",\n                \"log_directory=log\",\n                \"-c\",\n                \"log_filename=postgresql-%Y%m%d%H%M%S.log\",\n                \"-c\",\n                \"log_min_messages=error\",\n                \"-c\",\n                \"log_min_error_statement=error\",\n                \"-c\",\n                \"log_error_verbosity=verbose\",\n                \"-c\",\n                \"wal_level=logical\",\n                \"-c\",\n                \"max_wal_senders=10\",\n                \"-c\",\n                \"max_replication_slots=10\"\n            ],\n            \"Image\": \"postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc\",\n            \"Volumes\": {\n                \"/var/lib/postgresql/data\": {}\n            },\n            \"WorkingDir\": \"\",\n            \"Entrypoint\": [\n                \"docker-entrypoint.sh\"\n            ],\n            \"Labels\": {},\n            \"StopSignal\": \"SIGINT\",\n            \"StopTimeout\": 1\n        },\n        \"NetworkSettings\": {\n            \"SandboxID\": \"1218f9a4d8d184d51175e7e16a981cddf8ec1a3b19c2381fe8bb261b5974ea56\",\n            \"SandboxKey\": \"/var/run/docker/netns/1218f9a4d8d1\",\n            \"Ports\": {\n                \"5432/tcp\": [\n                    {\n                        \"HostIp\": \"127.0.0.1\",\n                        \"HostPort\": \"54206\"\n                    }\n                ]\n            },\n            \"Networks\": {\n                \"bridge\": {\n                    \"IPAMConfig\": null,\n                    \"Links\": null,\n                    \"Aliases\": null,\n                    \"DriverOpts\": null,\n                    \"GwPriority\": 0,\n                    \"NetworkID\": \"aed51554f8cd8bac69ecd4f073e41e147fda7b458e9d95be2af472651f2e825c\",\n                    \"EndpointID\": \"725ba9a6e763e9f9497e03d31936819fbde0ec034bad0708e951bd54715a2bd8\",\n                    \"Gateway\": \"172.17.0.1\",\n                    \"IPAddress\": \"172.17.0.53\",\n                    \"MacAddress\": \"86:92:85:2b:c9:88\",\n                    \"IPPrefixLen\": 16,\n                    \"IPv6Gateway\": \"\",\n                    \"GlobalIPv6Address\": \"\",\n                    \"GlobalIPv6PrefixLen\": 0,\n                    \"DNSNames\": null\n                }\n            }\n        },\n        \"ImageManifestDescriptor\": {\n            \"mediaType\": \"application/vnd.docker.distribution.manifest.v2+json\",\n            \"digest\": \"sha256:52aada7978f1eef3b6b52a51afb7a3defd69254d00c946cb90d2ceb32b8ffce7\",\n            \"size\": 3246,\n            \"platform\": {\n                \"architecture\": \"arm64\",\n                \"os\": \"linux\",\n                \"variant\": \"v8\"\n            }\n        }\n    }\n]\n"
            }
          }
        }
      ]
    },
    {
      "sqlstate": "428C9",
      "condition_name": "generated_always",
      "sources": [
        {
          "id": "src.errcodes.428C9.18.6",
          "kind": "upstream_source",
          "source_role": "condition_definition",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/errcodes.txt",
          "location": "line 355",
          "sha256": "6e8de346643ba84aa3c9c6a73360acfc7b2dfb89162c06c08ce9bf5bcd5bbcba",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/errcodes.txt#L355"
        },
        {
          "id": "src.call.428C9.353c4cc772b5ae9adad09c67",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/rewrite/rewriteHandler.c",
          "location": "lines 942-948",
          "sha256": "5a34bf31f424abbf46cd926da1fefcd9360c4d527a87d8a0ac9f653d67c2206a",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/rewrite/rewriteHandler.c#L942-L948"
        },
        {
          "id": "src.call.428C9.47aaa60ecb1566d462ffaa86",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/rewrite/rewriteHandler.c",
          "location": "lines 981-986",
          "sha256": "5a34bf31f424abbf46cd926da1fefcd9360c4d527a87d8a0ac9f653d67c2206a",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/rewrite/rewriteHandler.c#L981-L986"
        },
        {
          "id": "src.call.428C9.8585d423db2446a6222cbf57",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/rewrite/rewriteHandler.c",
          "location": "lines 1008-1013",
          "sha256": "5a34bf31f424abbf46cd926da1fefcd9360c4d527a87d8a0ac9f653d67c2206a",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/rewrite/rewriteHandler.c#L1008-L1013"
        },
        {
          "id": "src.call.428C9.generated-update",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/rewrite/rewriteHandler.c",
          "location": "lines 1015-1030",
          "sha256": "5a34bf31f424abbf46cd926da1fefcd9360c4d527a87d8a0ac9f653d67c2206a",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/rewrite/rewriteHandler.c#L1015-L1030"
        },
        {
          "id": "src.calls.REL_18_6.428C9",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "statement": "428C9 is the generated_always condition in Class 42.",
          "method": "Read fixed REL_18_6 errcodes.txt and locked facts.",
          "limits": "Identity does not enumerate all source branches or client failures.",
          "sources": [
            "src.errcodes.428C9.18.6"
          ]
        },
        {
          "id": "mechanism.selected-source-path",
          "statement": "The fixed rewrite branches compute apply_default for omitted INSERT targets and DEFAULT nodes. GENERATED ALWAYS identity INSERTs reject non-default values unless OVERRIDING SYSTEM VALUE is present; OVERRIDING USER VALUE forces the default, while BY DEFAULT identity accepts a supplied value unless USER VALUE is requested. Generated columns accept only DEFAULT. UPDATE guards reject non-default assignments to GENERATED ALWAYS identity and generated columns; virtual generated columns receive a null target entry and stored generated columns are filled by the executor.",
          "method": "Read complete resolved REL_18_6 report groups and message roles.",
          "limits": "Representative confirmed core paths only; not exhaustive historical or extension coverage.",
          "sources": [
            "src.call.428C9.353c4cc772b5ae9adad09c67",
            "src.call.428C9.47aaa60ecb1566d462ffaa86",
            "src.call.428C9.8585d423db2446a6222cbf57",
            "src.call.428C9.generated-update"
          ]
        },
        {
          "id": "versions.catalogue-boundary",
          "statement": "The catalogue records the condition by 10.0 and locks snapshots through 18.6 and 19beta3; this is a definition lower bound, not a shared introduction point for identity, stored-generated, and virtual-generated features. The selected mechanism is fixed 18.6 source and runtime was not run.",
          "method": "Read locked catalogue facts and definition snapshots.",
          "limits": "First observed release is a lower bound, not precise behavioral introduction.",
          "sources": [
            "src.errcodes.428C9.18.6"
          ]
        }
      ],
      "messages": [
        {
          "id": "message.variant-1",
          "sqlstate": "428C9",
          "severity_source": "explicit ERROR",
          "primary_template": "cannot insert a non-DEFAULT value into column \"%s\"",
          "detail_templates": [
            "Column \"%s\" is an identity column defined as GENERATED ALWAYS."
          ],
          "hint_templates": [
            "Use OVERRIDING SYSTEM VALUE to override."
          ],
          "roles": [
            {
              "role": "errmsg",
              "template": "cannot insert a non-DEFAULT value into column \"%s\""
            },
            {
              "role": "errdetail",
              "template": "Column \"%s\" is an identity column defined as GENERATED ALWAYS."
            },
            {
              "role": "errhint",
              "template": "Use OVERRIDING SYSTEM VALUE to override."
            }
          ],
          "sources": [
            "src.call.428C9.353c4cc772b5ae9adad09c67"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        },
        {
          "id": "message.variant-2",
          "sqlstate": "428C9",
          "severity_source": "explicit ERROR",
          "primary_template": "cannot insert a non-DEFAULT value into column \"%s\"",
          "detail_templates": [
            "Column \"%s\" is a generated column."
          ],
          "hint_templates": [],
          "roles": [
            {
              "role": "errmsg",
              "template": "cannot insert a non-DEFAULT value into column \"%s\""
            },
            {
              "role": "errdetail",
              "template": "Column \"%s\" is a generated column."
            }
          ],
          "sources": [
            "src.call.428C9.47aaa60ecb1566d462ffaa86"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        },
        {
          "id": "message.variant-3",
          "sqlstate": "428C9",
          "severity_source": "explicit ERROR",
          "primary_template": "column \"%s\" can only be updated to DEFAULT",
          "detail_templates": [
            "Column \"%s\" is an identity column defined as GENERATED ALWAYS."
          ],
          "hint_templates": [],
          "roles": [
            {
              "role": "errmsg",
              "template": "column \"%s\" can only be updated to DEFAULT"
            },
            {
              "role": "errdetail",
              "template": "Column \"%s\" is an identity column defined as GENERATED ALWAYS."
            }
          ],
          "sources": [
            "src.call.428C9.8585d423db2446a6222cbf57"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        },
        {
          "id": "message.variant-4",
          "sqlstate": "428C9",
          "severity_source": "explicit ERROR",
          "primary_template": "column \"%s\" can only be updated to DEFAULT",
          "detail_templates": [
            "Column \"%s\" is a generated column."
          ],
          "hint_templates": [],
          "roles": [
            {
              "role": "errmsg",
              "template": "column \"%s\" can only be updated to DEFAULT"
            },
            {
              "role": "errdetail",
              "template": "Column \"%s\" is a generated column."
            }
          ],
          "sources": [
            "src.call.428C9.generated-update"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        }
      ],
      "usage_evidence": [
        {
          "scope": "SQLSTATE definition and release identity",
          "status": "definition_only",
          "evidence_ids": [
            "identity.class-and-condition",
            "src.errcodes.428C9.18.6"
          ]
        },
        {
          "scope": "Selected PostgreSQL 18.6 source emitters and message roles",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "mechanism.selected-source-path"
          ]
        },
        {
          "scope": "Natural runtime execution for this batch",
          "status": "unknown",
          "evidence_ids": []
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "42939",
      "condition_name": "reserved_name",
      "sources": [
        {
          "id": "src.errcodes.42939.18.6",
          "kind": "upstream_source",
          "source_role": "condition_definition",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/errcodes.txt",
          "location": "line 349",
          "sha256": "6e8de346643ba84aa3c9c6a73360acfc7b2dfb89162c06c08ce9bf5bcd5bbcba",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/errcodes.txt#L349"
        },
        {
          "id": "src.call.42939.baa3c4599e167695f281cfe8",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/schemacmds.c",
          "location": "lines 107-110",
          "sha256": "5fd5f43dce5f36f06ed390014c06f244564072227d25a22735f594d2170626b1",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/schemacmds.c#L107-L110"
        },
        {
          "id": "src.call.42939.aed179efd45a7ca409d59fd6",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/tablespace.c",
          "location": "lines 281-285",
          "sha256": "f0369bece6339d18cd7d4a29b5fa3010447c3b8ece235c64b0d4fbf5f96a5317",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/tablespace.c#L281-L285"
        },
        {
          "id": "src.call.42939.419595a34cae2a69b2e21624",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/user.c",
          "location": "lines 352-356",
          "sha256": "aa8769a2577fff287301d6c82169262cca328515ae940d5a2be4b3e8c21617ed",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/user.c#L352-L356"
        },
        {
          "id": "src.call.42939.role-grammar",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/parser/gram.y",
          "location": "lines 17460-17542",
          "sha256": "7e548b673a1e03eb3a56c5eb9ad92d8e11095fac76e14cb258ca851f58274724",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/parser/gram.y#L17460-L17542"
        },
        {
          "id": "src.calls.REL_18_6.42939",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "statement": "42939 is the reserved_name condition in Class 42.",
          "method": "Read fixed REL_18_6 errcodes.txt and locked facts.",
          "limits": "Identity does not enumerate all source branches or client failures.",
          "sources": [
            "src.errcodes.42939.18.6"
          ]
        },
        {
          "id": "mechanism.selected-source-path",
          "statement": "Schema and tablespace paths reject reserved `pg_` names with object-specific DETAIL. CREATE ROLE reports the reserved `pg_` role path. RoleId grammar rejects `public`, `none`, SESSION_USER, CURRENT_USER, and CURRENT_ROLE in role-name positions, with a reserved-role-name primary for public/none and a `%s cannot be used as a role name here` primary for the current/session tokens.",
          "method": "Read complete resolved REL_18_6 report groups and message roles.",
          "limits": "Representative confirmed core paths only; not exhaustive historical or extension coverage.",
          "sources": [
            "src.call.42939.baa3c4599e167695f281cfe8",
            "src.call.42939.aed179efd45a7ca409d59fd6",
            "src.call.42939.419595a34cae2a69b2e21624",
            "src.call.42939.role-grammar"
          ]
        },
        {
          "id": "versions.catalogue-boundary",
          "statement": "From the locked 7.4 lower bound through 18.6 and 19beta3; multiple branches do not imply one introduction point.",
          "method": "Read locked catalogue facts and definition snapshots.",
          "limits": "First observed release is a lower bound, not precise behavioral introduction.",
          "sources": [
            "src.errcodes.42939.18.6"
          ]
        }
      ],
      "messages": [
        {
          "id": "message.variant-1",
          "sqlstate": "42939",
          "severity_source": "explicit ERROR",
          "primary_template": "unacceptable schema name \"%s\"",
          "detail_templates": [
            "The prefix \"pg_\" is reserved for system schemas."
          ],
          "hint_templates": [],
          "roles": [
            {
              "role": "errmsg",
              "template": "unacceptable schema name \"%s\""
            },
            {
              "role": "errdetail",
              "template": "The prefix \"pg_\" is reserved for system schemas."
            }
          ],
          "sources": [
            "src.call.42939.baa3c4599e167695f281cfe8"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        },
        {
          "id": "message.variant-2",
          "sqlstate": "42939",
          "severity_source": "explicit ERROR",
          "primary_template": "unacceptable tablespace name \"%s\"",
          "detail_templates": [
            "The prefix \"pg_\" is reserved for system tablespaces."
          ],
          "hint_templates": [],
          "roles": [
            {
              "role": "errmsg",
              "template": "unacceptable tablespace name \"%s\""
            },
            {
              "role": "errdetail",
              "template": "The prefix \"pg_\" is reserved for system tablespaces."
            }
          ],
          "sources": [
            "src.call.42939.aed179efd45a7ca409d59fd6"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        },
        {
          "id": "message.variant-3",
          "sqlstate": "42939",
          "severity_source": "explicit ERROR",
          "primary_template": "role name \"%s\" is reserved",
          "detail_templates": [
            "Role names starting with \"pg_\" are reserved."
          ],
          "hint_templates": [],
          "roles": [
            {
              "role": "errmsg",
              "template": "role name \"%s\" is reserved"
            },
            {
              "role": "errdetail",
              "template": "Role names starting with \"pg_\" are reserved."
            }
          ],
          "sources": [
            "src.call.42939.419595a34cae2a69b2e21624"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        },
        {
          "id": "message.variant-4",
          "sqlstate": "42939",
          "severity_source": "explicit ERROR",
          "primary_template": "role name \"%s\" is reserved",
          "detail_templates": [],
          "hint_templates": [],
          "roles": [
            {
              "role": "errmsg",
              "template": "role name \"%s\" is reserved"
            }
          ],
          "sources": [
            "src.call.42939.role-grammar"
          ],
          "limits": "The grammar supplies public or none as the dynamic role-name value; no concrete command is claimed."
        },
        {
          "id": "message.variant-5",
          "sqlstate": "42939",
          "severity_source": "explicit ERROR",
          "primary_template": "%s cannot be used as a role name here",
          "detail_templates": [],
          "hint_templates": [],
          "roles": [
            {
              "role": "errmsg",
              "template": "%s cannot be used as a role name here"
            }
          ],
          "sources": [
            "src.call.42939.role-grammar"
          ],
          "limits": "The grammar supplies SESSION_USER, CURRENT_USER, or CURRENT_ROLE as the dynamic token; no concrete command is claimed."
        }
      ],
      "usage_evidence": [
        {
          "scope": "SQLSTATE definition and release identity",
          "status": "definition_only",
          "evidence_ids": [
            "identity.class-and-condition",
            "src.errcodes.42939.18.6"
          ]
        },
        {
          "scope": "Selected PostgreSQL 18.6 source emitters and message roles",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "mechanism.selected-source-path"
          ]
        },
        {
          "scope": "Natural runtime execution for this batch",
          "status": "unknown",
          "evidence_ids": []
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "42P01",
      "condition_name": "undefined_table",
      "sources": [
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "src.errcodes.18.6",
          "location": "lines 372-378",
          "path": "src/backend/utils/errcodes.txt",
          "sha256": "6e8de346643ba84aa3c9c6a73360acfc7b2dfb89162c06c08ce9bf5bcd5bbcba",
          "tag": "REL_18_6",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/errcodes.txt"
        },
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "src.parse-relation.18.6",
          "location": "lines 1473-1501",
          "path": "src/backend/parser/parse_relation.c",
          "sha256": "0d9c88f4a8def4c2d982c33f13208590e21ecf5e6f8cd9d7faa223dc771c9a9a",
          "tag": "REL_18_6",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/parser/parse_relation.c#L1473-L1501"
        },
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "src.namespace.18.6",
          "location": "lines 626-640",
          "path": "src/backend/catalog/namespace.c",
          "sha256": "8c9e6a99e84fa2cec8a9b1de2ecbe3966a13f4ad68c6ccfbfb8134a754d73e56",
          "tag": "REL_18_6",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/catalog/namespace.c#L626-L640"
        },
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "doc.ddl.18.6",
          "location": "schemas, search_path, and namespace resolution",
          "path": "doc/src/sgml/ddl.sgml",
          "sha256": "ce1919d9236f2e71672660e1a347146472e966e4d19b77fde5ae345dd1db6ec7",
          "tag": "PG18-docs",
          "url": "https://www.postgresql.org/docs/18/ddl-schemas.html"
        },
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "doc.protocol.18",
          "location": "ErrorResponse fields",
          "path": "doc/src/sgml/protocol.sgml",
          "sha256": "745339e07ebbc2bb67d98b258e25772ada644ef26011e3cd6b3fcbb435235f89",
          "tag": "PG18-docs",
          "url": "https://www.postgresql.org/docs/18/protocol-error-fields.html"
        },
        {
          "id": "manifest.42P01",
          "kind": "local_artifact",
          "location": "snapshots and definition_blobs entries for the 42P01 definition",
          "sha256": "1727a275f336988ff96b4f9990a4ca253080f73fc5d316e7def165c8cf3708a8"
        },
        {
          "id": "case-manifest.42P01",
          "kind": "local_artifact",
          "location": "missing_relation",
          "sha256": "d0bd0702654b03dce66b733f5e4660b643db270682616c5927c9b10a12327088"
        },
        {
          "id": "snippet-registry.42P01.final",
          "kind": "local_artifact",
          "location": "missing_relation ordered SQL",
          "sha256": "f4eb28d6bc0d0d250d5dc548ed83a0783538eb73a07ab8b3670f218bcc21aba5"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "limits": "The historical condition name covers relation lookup failures beyond a literal table.",
          "method": "Read the Class 42 section and 42P01 row in the frozen errcodes.txt snapshot.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "statement": "42P01 is the undefined_table condition in Class 42 syntax_error_or_access_rule_violation."
        },
        {
          "id": "mechanism.relation-lookup",
          "limits": "The displayed relation name depends on qualification, search_path, quoting, and the parse context.",
          "method": "Trace namespace.c lookup and parserOpenTable qualified and unqualified error branches in the fixed source, then check the protocol field reference.",
          "sources": [
            "src.namespace.18.6",
            "src.parse-relation.18.6",
            "doc.ddl.18.6",
            "doc.protocol.18"
          ],
          "statement": "The parser reports ERRCODE_UNDEFINED_TABLE with relation \"%s.%s\" does not exist for a qualified relation and relation \"%s\" does not exist for an unqualified relation."
        },
        {
          "id": "runtime.missing-relation-recovery",
          "limits": "This case does not distinguish migration races, search_path changes, permissions, or all relation kinds.",
          "method": "Execute the missing query, inspect diagnostics and status, create the schema-qualified relation, and assert a valid follow-up query.",
          "sources": [
            "case-manifest.42P01",
            "snippet-registry.42P01.final",
            "runtime.42P01-registry-final-20260909.latest",
            "runtime.42P01-registry-final-20260909.pg10"
          ],
          "statement": "A missing relation query returned SQLSTATE 42P01 while autocommit remained IDLE; creating the intended relation and querying it returned count 0 on both targets."
        },
        {
          "id": "versions.catalogue-boundary",
          "limits": "The first scanned release is a lower bound, not an asserted introduction version.",
          "method": "Read the manifest snapshots and definition references for the code.",
          "sources": [
            "manifest.42P01"
          ],
          "statement": "The locked catalogue records 42P01 in every listed formal snapshot from 9.0.23 through 18.6 and in 19beta3; pre-9.0 history is not scanned."
        }
      ],
      "messages": [
        {
          "id": "message.qualified-relation",
          "limits": "The qualified form is selected when the parser has a schema-qualified relation reference.",
          "primary_template": "relation \"%s.%s\" does not exist",
          "severity_source": "explicit ERROR",
          "sources": [
            "src.parse-relation.18.6"
          ],
          "sqlstate": "42P01"
        },
        {
          "id": "message.unqualified-relation",
          "limits": "The unqualified form is selected when lookup through the active namespace fails.",
          "primary_template": "relation \"%s\" does not exist",
          "severity_source": "explicit ERROR",
          "sources": [
            "src.parse-relation.18.6"
          ],
          "sqlstate": "42P01"
        }
      ],
      "usage_evidence": [
        {
          "evidence_ids": [
            "identity.class-and-condition",
            "src.errcodes.18.6"
          ],
          "scope": "SQLSTATE directory identity",
          "status": "definition_only"
        },
        {
          "evidence_ids": [
            "mechanism.relation-lookup",
            "message.qualified-relation",
            "message.unqualified-relation",
            "src.namespace.18.6",
            "src.parse-relation.18.6",
            "doc.ddl.18.6",
            "doc.protocol.18"
          ],
          "scope": "Qualified and unqualified parser relation messages",
          "status": "source_path_confirmed"
        },
        {
          "evidence_ids": [
            "runtime.missing-relation-recovery",
            "snippet-registry.42P01.final",
            "runtime.42P01-registry-final-20260909.latest",
            "runtime.42P01-registry-final-20260909.pg10"
          ],
          "scope": "Missing relation diagnostic and corrected follow-up",
          "status": "observed_runtime"
        },
        {
          "evidence_ids": [
            "versions.catalogue-boundary",
            "manifest.42P01"
          ],
          "scope": "Version presence",
          "status": "definition_only"
        }
      ],
      "runtime": [
        {
          "cases": [
            "missing_relation"
          ],
          "id": "runtime.42P01-registry-final-20260909.latest",
          "observed": {
            "diagnostic": {
              "message_primary": "relation \"c42p01_missing_relation.does_not_exist\" does not exist",
              "severity": "ERROR",
              "source_file": "parse_relation.c",
              "source_function": "parserOpenTable",
              "source_line": "1480",
              "sqlstate": "42P01"
            },
            "statuses": {
              "after_error": "IDLE",
              "after_valid_query": "IDLE"
            },
            "valid_count": 0
          },
          "raw_sha256": "c65e0596cb51d32791448e493b01de0bfda519bb35ed5d1153f07c156bd617ac",
          "run_id": "42P01-registry-final-20260909",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "snippet_registry": {
            "sha256": "f4eb28d6bc0d0d250d5dc548ed83a0783538eb73a07ab8b3670f218bcc21aba5"
          },
          "status": "passed",
          "summary_sha256": "2b61950cb5a1a8f42fe130f2ad8407cb7cbaf4dfb396481fdf88d0d5769e3e37",
          "target": "latest"
        },
        {
          "cases": [
            "missing_relation"
          ],
          "id": "runtime.42P01-registry-final-20260909.pg10",
          "image": "postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
          "observed": {
            "diagnostic": {
              "message_primary": "relation \"c42p01_missing_relation.does_not_exist\" does not exist",
              "severity": "ERROR",
              "source_file": "parse_relation.c",
              "source_function": "parserOpenTable",
              "source_line": "1159",
              "sqlstate": "42P01"
            },
            "statuses": {
              "after_error": "IDLE",
              "after_valid_query": "IDLE"
            },
            "valid_count": 0
          },
          "raw_sha256": "da4b4fcbbff2d04b8a03d0b7718cfe8b1954439f3bf3125cd8b79eaa88eeed79",
          "run_id": "42P01-registry-final-20260909",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "snippet_registry": {
            "sha256": "f4eb28d6bc0d0d250d5dc548ed83a0783538eb73a07ab8b3670f218bcc21aba5"
          },
          "status": "passed",
          "summary_sha256": "3049254a6a818ed4401abdaee428fee0f17c4d6e299a4353e880ad6fe37a38d9",
          "target": "pg10"
        }
      ]
    },
    {
      "sqlstate": "42P02",
      "condition_name": "undefined_parameter",
      "sources": [
        {
          "id": "src.errcodes.42P02.18.6",
          "kind": "upstream_source",
          "source_role": "condition_definition",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/errcodes.txt",
          "location": "line 375",
          "sha256": "6e8de346643ba84aa3c9c6a73360acfc7b2dfb89162c06c08ce9bf5bcd5bbcba",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/errcodes.txt#L375"
        },
        {
          "id": "src.call.42P02.81f0048a16f439569ce3a4ba",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/parser/parse_expr.c",
          "location": "lines 899-902",
          "sha256": "63c37770872a08978f931c31f801666a08e3bc8e51c2c65ff60151a1d139d55b",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/parser/parse_expr.c#L899-L902"
        },
        {
          "id": "src.call.42P02.73515542f469d69893fd5fb8",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/parser/parse_param.c",
          "location": "lines 109-112",
          "sha256": "4aab2ecc770fcda619b26ac12beaf7e527542b56f55eb45879b72e92442e8a28",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/parser/parse_param.c#L109-L112"
        },
        {
          "id": "src.call.42P02.671f865f9d428e0ab2a78347",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/parser/parse_param.c",
          "location": "lines 203-206",
          "sha256": "4aab2ecc770fcda619b26ac12beaf7e527542b56f55eb45879b72e92442e8a28",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/parser/parse_param.c#L203-L206"
        },
        {
          "id": "src.call.42P02.bind-contract",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/tcop/postgres.c",
          "location": "lines 1718-1731",
          "sha256": "9fb62275b1badf94d01ab351337b60410cd9b3ab1fe63fa9f23d6d2185a21061",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/tcop/postgres.c#L1718-L1731"
        },
        {
          "id": "src.calls.REL_18_6.42P02",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "statement": "42P02 is the undefined_parameter condition in Class 42.",
          "method": "Read fixed REL_18_6 errcodes.txt and locked facts.",
          "limits": "Identity does not enumerate all source branches or client failures.",
          "sources": [
            "src.errcodes.42P02.18.6"
          ]
        },
        {
          "id": "mechanism.selected-source-path",
          "statement": "Fixed and variable parser parameter hooks report `there is no parameter $%d` with parser position when a marker is outside the known parameter set. The separate extended-query Bind guards report protocol violation 08P01 for parameter format/value counts that do not match the prepared statement, so a Bind count mismatch is not 42P02.",
          "method": "Read complete resolved REL_18_6 report groups and message roles.",
          "limits": "Representative confirmed core paths only; not exhaustive historical or extension coverage.",
          "sources": [
            "src.call.42P02.81f0048a16f439569ce3a4ba",
            "src.call.42P02.73515542f469d69893fd5fb8",
            "src.call.42P02.671f865f9d428e0ab2a78347",
            "src.call.42P02.bind-contract"
          ]
        },
        {
          "id": "versions.catalogue-boundary",
          "statement": "From the locked 7.4 lower bound through 18.6 and 19beta3; this is a catalogue range. The selected parser and Bind branches are fixed 18.6 source paths and no client bind case was run.",
          "method": "Read locked catalogue facts and definition snapshots.",
          "limits": "First observed release is a lower bound, not precise behavioral introduction.",
          "sources": [
            "src.errcodes.42P02.18.6"
          ]
        }
      ],
      "messages": [
        {
          "id": "message.variant-1",
          "sqlstate": "42P02",
          "severity_source": "explicit ERROR",
          "primary_template": "there is no parameter $%d",
          "detail_templates": [],
          "hint_templates": [],
          "roles": [
            {
              "role": "errmsg",
              "template": "there is no parameter $%d"
            }
          ],
          "sources": [
            "src.call.42P02.81f0048a16f439569ce3a4ba"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        },
        {
          "id": "message.variant-2",
          "sqlstate": "42P02",
          "severity_source": "explicit ERROR",
          "primary_template": "there is no parameter $%d",
          "detail_templates": [],
          "hint_templates": [],
          "roles": [
            {
              "role": "errmsg",
              "template": "there is no parameter $%d"
            }
          ],
          "sources": [
            "src.call.42P02.73515542f469d69893fd5fb8"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        },
        {
          "id": "message.variant-3",
          "sqlstate": "42P02",
          "severity_source": "explicit ERROR",
          "primary_template": "there is no parameter $%d",
          "detail_templates": [],
          "hint_templates": [],
          "roles": [
            {
              "role": "errmsg",
              "template": "there is no parameter $%d"
            }
          ],
          "sources": [
            "src.call.42P02.671f865f9d428e0ab2a78347"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        }
      ],
      "usage_evidence": [
        {
          "scope": "SQLSTATE definition and release identity",
          "status": "definition_only",
          "evidence_ids": [
            "identity.class-and-condition",
            "src.errcodes.42P02.18.6"
          ]
        },
        {
          "scope": "Selected PostgreSQL 18.6 source emitters and message roles",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "mechanism.selected-source-path"
          ]
        },
        {
          "scope": "Natural runtime execution for this batch",
          "status": "unknown",
          "evidence_ids": []
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "42P03",
      "condition_name": "duplicate_cursor",
      "sources": [
        {
          "id": "src.errcodes.42P03.18.6",
          "kind": "upstream_source",
          "source_role": "condition_definition",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/errcodes.txt",
          "location": "line 378",
          "sha256": "6e8de346643ba84aa3c9c6a73360acfc7b2dfb89162c06c08ce9bf5bcd5bbcba",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/errcodes.txt#L378"
        },
        {
          "id": "src.call.42P03.800a8278cf453417f5af6d6e",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/mmgr/portalmem.c",
          "location": "lines 185-187",
          "sha256": "8e29a302a7837316765acc798f9ff6eb22a330e8098a02794cd4d683601d3b04",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/mmgr/portalmem.c#L185-L187"
        },
        {
          "id": "src.call.42P03.208bdd3b576b5021fb35916d",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/mmgr/portalmem.c",
          "location": "lines 189-192",
          "sha256": "8e29a302a7837316765acc798f9ff6eb22a330e8098a02794cd4d683601d3b04",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/mmgr/portalmem.c#L189-L192"
        },
        {
          "id": "src.call.42P03.06c0580b43488eece2de1973",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/pl/plpgsql/src/pl_exec.c",
          "location": "lines 2895-2897",
          "sha256": "0df3c70a6bccf6dddf443fb99e152a16a67009827c44a820597e98e585cb8b20",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/pl/plpgsql/src/pl_exec.c#L2895-L2897"
        },
        {
          "id": "src.calls.REL_18_6.42P03",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "statement": "42P03 is the duplicate_cursor condition in Class 42.",
          "method": "Read fixed REL_18_6 errcodes.txt and locked facts.",
          "limits": "Identity does not enumerate all source branches or client failures.",
          "sources": [
            "src.errcodes.42P03.18.6"
          ]
        },
        {
          "id": "mechanism.selected-source-path",
          "statement": "CreatePortal(name, allowDup, dupSilent) reports ERROR `cursor \"%s\" already exists` when allowDup is false, can report WARNING `closing existing cursor \"%s\"` before dropping a duplicate when allowDup is true and dupSilent is false, and PL/pgSQL separately reports ERROR `cursor \"%s\" already in use` when SPI_cursor_find finds an active named cursor.",
          "method": "Read complete resolved REL_18_6 report groups and message roles.",
          "limits": "Representative confirmed core paths only; not exhaustive historical or extension coverage.",
          "sources": [
            "src.call.42P03.800a8278cf453417f5af6d6e",
            "src.call.42P03.208bdd3b576b5021fb35916d",
            "src.call.42P03.06c0580b43488eece2de1973"
          ]
        },
        {
          "id": "versions.catalogue-boundary",
          "statement": "From 7.4 through 18.6 and 19beta3; the selected portal-manager and PL/pgSQL branches are fixed 18.6 source paths and runtime was not run.",
          "method": "Read locked catalogue facts and definition snapshots.",
          "limits": "First observed release is a lower bound, not precise behavioral introduction.",
          "sources": [
            "src.errcodes.42P03.18.6"
          ]
        }
      ],
      "messages": [
        {
          "id": "message.variant-1",
          "sqlstate": "42P03",
          "severity_source": "explicit ERROR",
          "primary_template": "cursor \"%s\" already exists",
          "detail_templates": [],
          "hint_templates": [],
          "roles": [
            {
              "role": "errmsg",
              "template": "cursor \"%s\" already exists"
            }
          ],
          "sources": [
            "src.call.42P03.800a8278cf453417f5af6d6e"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        },
        {
          "id": "message.variant-2",
          "sqlstate": "42P03",
          "severity_source": "explicit WARNING",
          "primary_template": "closing existing cursor \"%s\"",
          "detail_templates": [],
          "hint_templates": [],
          "roles": [
            {
              "role": "errmsg",
              "template": "closing existing cursor \"%s\""
            }
          ],
          "sources": [
            "src.call.42P03.208bdd3b576b5021fb35916d"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        },
        {
          "id": "message.variant-3",
          "sqlstate": "42P03",
          "severity_source": "explicit ERROR",
          "primary_template": "cursor \"%s\" already in use",
          "detail_templates": [],
          "hint_templates": [],
          "roles": [
            {
              "role": "errmsg",
              "template": "cursor \"%s\" already in use"
            }
          ],
          "sources": [
            "src.call.42P03.06c0580b43488eece2de1973"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        }
      ],
      "usage_evidence": [
        {
          "scope": "SQLSTATE definition and release identity",
          "status": "definition_only",
          "evidence_ids": [
            "identity.class-and-condition",
            "src.errcodes.42P03.18.6"
          ]
        },
        {
          "scope": "Selected PostgreSQL 18.6 source emitters and message roles",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "mechanism.selected-source-path"
          ]
        },
        {
          "scope": "Natural runtime execution for this batch",
          "status": "unknown",
          "evidence_ids": []
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "42P04",
      "condition_name": "duplicate_database",
      "sources": [
        {
          "id": "src.errcodes.42P04.18.6",
          "kind": "upstream_source",
          "source_role": "condition_definition",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/errcodes.txt",
          "location": "line 379",
          "sha256": "6e8de346643ba84aa3c9c6a73360acfc7b2dfb89162c06c08ce9bf5bcd5bbcba",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/errcodes.txt#L379"
        },
        {
          "id": "src.call.42P04.465a77b5605c341bc91f6990",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/dbcommands.c",
          "location": "lines 1393-1395",
          "sha256": "64b77d2197dce16eb1ad19d8168382459d621a03df0b00be157f7db39ca22acf",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/dbcommands.c#L1393-L1395"
        },
        {
          "id": "src.call.42P04.b0d1644def83c14a7504fec4",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/dbcommands.c",
          "location": "lines 1949-1951",
          "sha256": "64b77d2197dce16eb1ad19d8168382459d621a03df0b00be157f7db39ca22acf",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/dbcommands.c#L1949-L1951"
        },
        {
          "id": "src.call.42P04.create-tx-guard",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/tcop/utility.c",
          "location": "lines 769-773",
          "sha256": "7aae5d07628b6debf8456d1d4ea96f28912232192e56ea25773b4c4b61235a00",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/tcop/utility.c#L769-L773"
        },
        {
          "id": "src.calls.REL_18_6.42P04",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "statement": "42P04 is the duplicate_database condition in Class 42.",
          "method": "Read fixed REL_18_6 errcodes.txt and locked facts.",
          "limits": "Identity does not enumerate all source branches or client failures.",
          "sources": [
            "src.errcodes.42P04.18.6"
          ]
        },
        {
          "id": "mechanism.selected-source-path",
          "statement": "createdb checks the requested database name and RenameDatabase checks newname after old-database ownership and CREATEDB checks; both report ERROR `database \"%s\" already exists`. The utility dispatcher separately calls PreventInTransactionBlock for CREATE DATABASE before createdb, so an explicit transaction-block failure is not 42P04.",
          "method": "Read complete resolved REL_18_6 report groups and message roles.",
          "limits": "Representative confirmed core paths only; not exhaustive historical or extension coverage.",
          "sources": [
            "src.call.42P04.465a77b5605c341bc91f6990",
            "src.call.42P04.b0d1644def83c14a7504fec4",
            "src.call.42P04.create-tx-guard"
          ]
        },
        {
          "id": "versions.catalogue-boundary",
          "statement": "From 7.4 through 18.6 and 19beta3; this catalogue range is not a precise introduction claim. The selected CREATE, RENAME, and dispatcher guards are fixed 18.6 source paths and no runtime case was run.",
          "method": "Read locked catalogue facts and definition snapshots.",
          "limits": "First observed release is a lower bound, not precise behavioral introduction.",
          "sources": [
            "src.errcodes.42P04.18.6"
          ]
        }
      ],
      "messages": [
        {
          "id": "message.variant-1",
          "sqlstate": "42P04",
          "severity_source": "explicit ERROR",
          "primary_template": "database \"%s\" already exists",
          "detail_templates": [],
          "hint_templates": [],
          "roles": [
            {
              "role": "errmsg",
              "template": "database \"%s\" already exists"
            }
          ],
          "sources": [
            "src.call.42P04.465a77b5605c341bc91f6990"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        },
        {
          "id": "message.variant-2",
          "sqlstate": "42P04",
          "severity_source": "explicit ERROR",
          "primary_template": "database \"%s\" already exists",
          "detail_templates": [],
          "hint_templates": [],
          "roles": [
            {
              "role": "errmsg",
              "template": "database \"%s\" already exists"
            }
          ],
          "sources": [
            "src.call.42P04.b0d1644def83c14a7504fec4"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        }
      ],
      "usage_evidence": [
        {
          "scope": "SQLSTATE definition and release identity",
          "status": "definition_only",
          "evidence_ids": [
            "identity.class-and-condition",
            "src.errcodes.42P04.18.6"
          ]
        },
        {
          "scope": "Selected PostgreSQL 18.6 source emitters and message roles",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "mechanism.selected-source-path"
          ]
        },
        {
          "scope": "Natural runtime execution for this batch",
          "status": "unknown",
          "evidence_ids": []
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "42P05",
      "condition_name": "duplicate_prepared_statement",
      "sources": [
        {
          "id": "src.errcodes.42P05.18.6",
          "kind": "upstream_source",
          "source_role": "condition_definition",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/errcodes.txt",
          "location": "line 381",
          "sha256": "6e8de346643ba84aa3c9c6a73360acfc7b2dfb89162c06c08ce9bf5bcd5bbcba",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/errcodes.txt#L381"
        },
        {
          "id": "src.call.42P05.b490336894ec11628c1766f2",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/prepare.c",
          "location": "lines 412-415",
          "sha256": "e37fbd5f7618e5554561d9293d8c3af7cf3190c62c5c6bbceb3fe8b97be17956",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/prepare.c#L412-L415"
        },
        {
          "id": "src.call.42P05.lifecycle",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/prepare.c",
          "location": "lines 401-423 and 504-511",
          "sha256": "e37fbd5f7618e5554561d9293d8c3af7cf3190c62c5c6bbceb3fe8b97be17956",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/prepare.c#L401-L423"
        },
        {
          "id": "src.calls.REL_18_6.42P05",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "statement": "42P05 is the duplicate_prepared_statement condition in Class 42.",
          "method": "Read fixed REL_18_6 errcodes.txt and locked facts.",
          "limits": "Identity does not enumerate all source branches or client failures.",
          "sources": [
            "src.errcodes.42P05.18.6"
          ]
        },
        {
          "id": "mechanism.selected-source-path",
          "statement": "StorePreparedStatement inserts named statements into the current backend's prepared_queries hash and reports ERROR `prepared statement \"%s\" already exists` when HASH_ENTER finds the name. DEALLOCATE removes entries from that backend's hash; another connection has independent state.",
          "method": "Read complete resolved REL_18_6 report groups and message roles.",
          "limits": "Representative confirmed core paths only; not exhaustive historical or extension coverage.",
          "sources": [
            "src.call.42P05.b490336894ec11628c1766f2",
            "src.call.42P05.lifecycle"
          ]
        },
        {
          "id": "versions.catalogue-boundary",
          "statement": "From 7.4 through 18.6 and 19beta3; this catalogue range is not a precise introduction claim. The selected 18.6 source covers insertion and current-backend deallocation, and runtime was not run.",
          "method": "Read locked catalogue facts and definition snapshots.",
          "limits": "First observed release is a lower bound, not precise behavioral introduction.",
          "sources": [
            "src.errcodes.42P05.18.6"
          ]
        }
      ],
      "messages": [
        {
          "id": "message.variant-1",
          "sqlstate": "42P05",
          "severity_source": "explicit ERROR",
          "primary_template": "prepared statement \"%s\" already exists",
          "detail_templates": [],
          "hint_templates": [],
          "roles": [
            {
              "role": "errmsg",
              "template": "prepared statement \"%s\" already exists"
            }
          ],
          "sources": [
            "src.call.42P05.b490336894ec11628c1766f2"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        }
      ],
      "usage_evidence": [
        {
          "scope": "SQLSTATE definition and release identity",
          "status": "definition_only",
          "evidence_ids": [
            "identity.class-and-condition",
            "src.errcodes.42P05.18.6"
          ]
        },
        {
          "scope": "Selected PostgreSQL 18.6 source emitters and message roles",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "mechanism.selected-source-path"
          ]
        },
        {
          "scope": "Natural runtime execution for this batch",
          "status": "unknown",
          "evidence_ids": []
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "42P06",
      "condition_name": "duplicate_schema",
      "sources": [
        {
          "id": "src.errcodes.42P06.18.6",
          "kind": "upstream_source",
          "source_role": "condition_definition",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/errcodes.txt",
          "location": "line 382",
          "sha256": "6e8de346643ba84aa3c9c6a73360acfc7b2dfb89162c06c08ce9bf5bcd5bbcba",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/errcodes.txt#L382"
        },
        {
          "id": "src.call.42P06.4d5505b63e38ef1b25836623",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/catalog/pg_namespace.c",
          "location": "lines 62-64",
          "sha256": "89675ba1bb9c531ab4f43db8a6f7cac00956561b342e42ea6eaae6b8d0b50d78",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/catalog/pg_namespace.c#L62-L64"
        },
        {
          "id": "src.call.42P06.373538bec86ad8eedfce8d7a",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/schemacmds.c",
          "location": "lines 132-135",
          "sha256": "5fd5f43dce5f36f06ed390014c06f244564072227d25a22735f594d2170626b1",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/schemacmds.c#L132-L135"
        },
        {
          "id": "src.calls.REL_18_6.42P06",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "statement": "42P06 is the duplicate_schema condition in Class 42.",
          "method": "Read fixed REL_18_6 errcodes.txt and locked facts.",
          "limits": "Identity does not enumerate all source branches or client failures.",
          "sources": [
            "src.errcodes.42P06.18.6"
          ]
        },
        {
          "id": "mechanism.selected-source-path",
          "statement": "NamespaceCreate reports ERROR `schema \"%s\" already exists` when pg_namespace already contains the name. CREATE SCHEMA IF NOT EXISTS checks the namespace and reports NOTICE `schema \"%s\" already exists, skipping` before creation; the conditional path does not compare or reconcile owner, ACL, or contents.",
          "method": "Read complete resolved REL_18_6 report groups and message roles.",
          "limits": "Representative confirmed core paths only; not exhaustive historical or extension coverage.",
          "sources": [
            "src.call.42P06.4d5505b63e38ef1b25836623",
            "src.call.42P06.373538bec86ad8eedfce8d7a"
          ]
        },
        {
          "id": "versions.catalogue-boundary",
          "statement": "From 7.4 through 18.6 and 19beta3; this catalogue range is not a precise introduction claim. The selected ERROR and NOTICE branches are fixed 18.6 source paths and runtime was not run.",
          "method": "Read locked catalogue facts and definition snapshots.",
          "limits": "First observed release is a lower bound, not precise behavioral introduction.",
          "sources": [
            "src.errcodes.42P06.18.6"
          ]
        }
      ],
      "messages": [
        {
          "id": "message.variant-1",
          "sqlstate": "42P06",
          "severity_source": "explicit ERROR",
          "primary_template": "schema \"%s\" already exists",
          "detail_templates": [],
          "hint_templates": [],
          "roles": [
            {
              "role": "errmsg",
              "template": "schema \"%s\" already exists"
            }
          ],
          "sources": [
            "src.call.42P06.4d5505b63e38ef1b25836623"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        },
        {
          "id": "message.variant-2",
          "sqlstate": "42P06",
          "severity_source": "explicit NOTICE",
          "primary_template": "schema \"%s\" already exists, skipping",
          "detail_templates": [],
          "hint_templates": [],
          "roles": [
            {
              "role": "errmsg",
              "template": "schema \"%s\" already exists, skipping"
            }
          ],
          "sources": [
            "src.call.42P06.373538bec86ad8eedfce8d7a"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        }
      ],
      "usage_evidence": [
        {
          "scope": "SQLSTATE definition and release identity",
          "status": "definition_only",
          "evidence_ids": [
            "identity.class-and-condition",
            "src.errcodes.42P06.18.6"
          ]
        },
        {
          "scope": "Selected PostgreSQL 18.6 source emitters and message roles",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "mechanism.selected-source-path"
          ]
        },
        {
          "scope": "Natural runtime execution for this batch",
          "status": "unknown",
          "evidence_ids": []
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "42P07",
      "condition_name": "duplicate_table",
      "sources": [
        {
          "id": "src.errcodes.42P07.18.6",
          "kind": "upstream_source",
          "source_role": "condition_definition",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/errcodes.txt",
          "location": "line 383",
          "sha256": "6e8de346643ba84aa3c9c6a73360acfc7b2dfb89162c06c08ce9bf5bcd5bbcba",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/errcodes.txt#L383"
        },
        {
          "id": "src.call.42P07.694fcfd426e95ce13263fb9a",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/catalog/heap.c",
          "location": "lines 1194-1196",
          "sha256": "e720ee58279590793edd0985b3c910970ef56e7361b8ef92e245370587e02a0e",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/catalog/heap.c#L1194-L1196"
        },
        {
          "id": "src.call.42P07.38d8697cf62c00c05657a6d4",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/catalog/index.c",
          "location": "lines 898-901",
          "sha256": "98a4156a5c21ae856a3b583b633cdeb578a5b69910386c9f166d69fcb04ba2d0",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/catalog/index.c#L898-L901"
        },
        {
          "id": "src.call.42P07.index-if-not-exists-guard",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/catalog/index.c",
          "location": "lines 894-903",
          "sha256": "98a4156a5c21ae856a3b583b633cdeb578a5b69910386c9f166d69fcb04ba2d0",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/catalog/index.c#L894-L903"
        },
        {
          "id": "src.call.42P07.30cb2a5359e1ec4bea60a466",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/tablecmds.c",
          "location": "lines 875-878",
          "sha256": "422dc8e833df4940755973c757e338295822ba3e4c7266c40669f49f96eb15a9",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/tablecmds.c#L875-L878"
        },
        {
          "id": "src.call.42P07.19ee2522385544dc7ceb62bb",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/tablecmds.c",
          "location": "lines 17376-17381",
          "sha256": "422dc8e833df4940755973c757e338295822ba3e4c7266c40669f49f96eb15a9",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/tablecmds.c#L17376-L17381"
        },
        {
          "id": "src.calls.REL_18_6.42P07",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "statement": "42P07 is the duplicate_table condition in Class 42.",
          "method": "Read fixed REL_18_6 errcodes.txt and locked facts.",
          "limits": "Identity does not enumerate all source branches or client failures.",
          "sources": [
            "src.errcodes.42P07.18.6"
          ]
        },
        {
          "id": "mechanism.selected-source-path",
          "statement": "Core 18.6 paths use the shared pg_class relation namespace for table, sequence, index, and CREATE TABLE AS name collisions. The index IF NOT EXISTS guard reports NOTICE `relation \"%s\" already exists, skipping` and returns on a name hit without definition comparison. Inheritance uses the code for repeated parents and for `circular inheritance not allowed` with DETAIL `\"%s\" is already a child of \"%s\".`",
          "method": "Read complete resolved REL_18_6 report groups and message roles.",
          "limits": "Representative confirmed core paths only; not exhaustive historical or extension coverage.",
          "sources": [
            "src.call.42P07.694fcfd426e95ce13263fb9a",
            "src.call.42P07.38d8697cf62c00c05657a6d4",
            "src.call.42P07.index-if-not-exists-guard",
            "src.call.42P07.30cb2a5359e1ec4bea60a466",
            "src.call.42P07.19ee2522385544dc7ceb62bb"
          ]
        },
        {
          "id": "versions.catalogue-boundary",
          "statement": "From 7.4 through 18.6 and 19beta3; this catalogue range is not a precise introduction claim. The selected source covers relation lookup, index IF NOT EXISTS, repeated inheritance parents, and circularity; runtime was not run.",
          "method": "Read locked catalogue facts and definition snapshots.",
          "limits": "First observed release is a lower bound, not precise behavioral introduction.",
          "sources": [
            "src.errcodes.42P07.18.6"
          ]
        }
      ],
      "messages": [
        {
          "id": "message.variant-1",
          "sqlstate": "42P07",
          "severity_source": "explicit ERROR",
          "primary_template": "relation \"%s\" already exists",
          "detail_templates": [],
          "hint_templates": [],
          "roles": [
            {
              "role": "errmsg",
              "template": "relation \"%s\" already exists"
            }
          ],
          "sources": [
            "src.call.42P07.694fcfd426e95ce13263fb9a"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        },
        {
          "id": "message.variant-2",
          "sqlstate": "42P07",
          "severity_source": "explicit NOTICE",
          "primary_template": "relation \"%s\" already exists, skipping",
          "detail_templates": [],
          "hint_templates": [],
          "roles": [
            {
              "role": "errmsg",
              "template": "relation \"%s\" already exists, skipping"
            }
          ],
          "sources": [
            "src.call.42P07.38d8697cf62c00c05657a6d4"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        },
        {
          "id": "message.variant-3",
          "sqlstate": "42P07",
          "severity_source": "explicit ERROR",
          "primary_template": "relation \"%s\" would be inherited from more than once",
          "detail_templates": [],
          "hint_templates": [],
          "roles": [
            {
              "role": "errmsg",
              "template": "relation \"%s\" would be inherited from more than once"
            }
          ],
          "sources": [
            "src.call.42P07.30cb2a5359e1ec4bea60a466"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        },
        {
          "id": "message.variant-4",
          "sqlstate": "42P07",
          "severity_source": "explicit ERROR",
          "primary_template": "circular inheritance not allowed",
          "detail_templates": [
            "\"%s\" is already a child of \"%s\"."
          ],
          "hint_templates": [],
          "roles": [
            {
              "role": "errmsg",
              "template": "circular inheritance not allowed"
            },
            {
              "role": "errdetail",
              "template": "\"%s\" is already a child of \"%s\"."
            }
          ],
          "sources": [
            "src.call.42P07.19ee2522385544dc7ceb62bb"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        }
      ],
      "usage_evidence": [
        {
          "scope": "SQLSTATE definition and release identity",
          "status": "definition_only",
          "evidence_ids": [
            "identity.class-and-condition",
            "src.errcodes.42P07.18.6"
          ]
        },
        {
          "scope": "Selected PostgreSQL 18.6 source emitters and message roles",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "mechanism.selected-source-path"
          ]
        },
        {
          "scope": "Natural runtime execution for this batch",
          "status": "unknown",
          "evidence_ids": []
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "42P08",
      "condition_name": "ambiguous_parameter",
      "sources": [
        {
          "id": "src.errcodes.42P08.18.6",
          "kind": "upstream_source",
          "source_role": "condition_definition",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/errcodes.txt",
          "location": "line 388",
          "sha256": "6e8de346643ba84aa3c9c6a73360acfc7b2dfb89162c06c08ce9bf5bcd5bbcba",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/errcodes.txt#L388"
        },
        {
          "id": "src.call.42P08.c2cfa81ed9389a1bddf8ec41",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/parser/parse_param.c",
          "location": "lines 220-227",
          "sha256": "4aab2ecc770fcda619b26ac12beaf7e527542b56f55eb45879b72e92442e8a28",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/parser/parse_param.c#L220-L227"
        },
        {
          "id": "src.call.42P08.18ba6576d169dfdf614df72d",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/parser/parse_param.c",
          "location": "lines 308-312",
          "sha256": "4aab2ecc770fcda619b26ac12beaf7e527542b56f55eb45879b72e92442e8a28",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/parser/parse_param.c#L308-L312"
        },
        {
          "id": "src.call.42P08.unresolved-boundary",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/tcop/postgres.c",
          "location": "lines 725-736",
          "sha256": "9fb62275b1badf94d01ab351337b60410cd9b3ab1fe63fa9f23d6d2185a21061",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/tcop/postgres.c#L725-L736"
        },
        {
          "id": "src.calls.REL_18_6.42P08",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "statement": "42P08 is the ambiguous_parameter condition in Class 42.",
          "method": "Read fixed REL_18_6 errcodes.txt and locked facts.",
          "limits": "Identity does not enumerate all source branches or client failures.",
          "sources": [
            "src.errcodes.42P08.18.6"
          ]
        },
        {
          "id": "mechanism.selected-source-path",
          "statement": "The selected 42P08 guards are conflicting inferred types, reporting `inconsistent types deduced for parameter $%d` with DETAIL `%s versus %s`, and a later parameter-resolution mismatch, reporting `could not determine data type of parameter $%d`; both are ERRORs. The same second primary is emitted with 42P18 by the separate var-parameter completion guard when a type remains unknown after analysis, while an out-of-range marker is 42P02.",
          "method": "Read complete resolved REL_18_6 report groups and message roles.",
          "limits": "Representative confirmed core paths only; not exhaustive historical or extension coverage.",
          "sources": [
            "src.call.42P08.c2cfa81ed9389a1bddf8ec41",
            "src.call.42P08.18ba6576d169dfdf614df72d",
            "src.call.42P08.unresolved-boundary"
          ]
        },
        {
          "id": "versions.catalogue-boundary",
          "statement": "From 7.4 through 18.6 and 19beta3; this catalogue range is not a precise introduction claim. The selected two 42P08 guards and nearby 42P18 boundary are fixed 18.6 source paths and no runtime parameter case was run.",
          "method": "Read locked catalogue facts and definition snapshots.",
          "limits": "First observed release is a lower bound, not precise behavioral introduction.",
          "sources": [
            "src.errcodes.42P08.18.6"
          ]
        }
      ],
      "messages": [
        {
          "id": "message.variant-1",
          "sqlstate": "42P08",
          "severity_source": "explicit ERROR",
          "primary_template": "inconsistent types deduced for parameter $%d",
          "detail_templates": [
            "%s versus %s"
          ],
          "hint_templates": [],
          "roles": [
            {
              "role": "errmsg",
              "template": "inconsistent types deduced for parameter $%d"
            },
            {
              "role": "errdetail",
              "template": "%s versus %s"
            }
          ],
          "sources": [
            "src.call.42P08.c2cfa81ed9389a1bddf8ec41"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        },
        {
          "id": "message.variant-2",
          "sqlstate": "42P08",
          "severity_source": "explicit ERROR",
          "primary_template": "could not determine data type of parameter $%d",
          "detail_templates": [],
          "hint_templates": [],
          "roles": [
            {
              "role": "errmsg",
              "template": "could not determine data type of parameter $%d"
            }
          ],
          "sources": [
            "src.call.42P08.18ba6576d169dfdf614df72d"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        }
      ],
      "usage_evidence": [
        {
          "scope": "SQLSTATE definition and release identity",
          "status": "definition_only",
          "evidence_ids": [
            "identity.class-and-condition",
            "src.errcodes.42P08.18.6"
          ]
        },
        {
          "scope": "Selected PostgreSQL 18.6 source emitters and message roles",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "mechanism.selected-source-path"
          ]
        },
        {
          "scope": "Natural runtime execution for this batch",
          "status": "unknown",
          "evidence_ids": []
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "42P09",
      "condition_name": "ambiguous_alias",
      "sources": [
        {
          "id": "src.errcodes.42P09.18.6",
          "kind": "upstream_source",
          "source_role": "condition_definition",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/errcodes.txt",
          "location": "line 389",
          "sha256": "6e8de346643ba84aa3c9c6a73360acfc7b2dfb89162c06c08ce9bf5bcd5bbcba",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/errcodes.txt#L389"
        },
        {
          "id": "src.call.42P09.ed0c1b7f7e4bd90cb2068e17",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/parser/parse_relation.c",
          "location": "lines 224-228",
          "sha256": "0d9c88f4a8def4c2d982c33f13208590e21ecf5e6f8cd9d7faa223dc771c9a9a",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/parser/parse_relation.c#L224-L228"
        },
        {
          "id": "src.call.42P09.171afa1503a4e198e620e1b5",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/parser/parse_relation.c",
          "location": "lines 271-275",
          "sha256": "0d9c88f4a8def4c2d982c33f13208590e21ecf5e6f8cd9d7faa223dc771c9a9a",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/parser/parse_relation.c#L271-L275"
        },
        {
          "id": "src.calls.REL_18_6.42P09",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "statement": "42P09 is the ambiguous_alias condition in Class 42.",
          "method": "Read fixed REL_18_6 errcodes.txt and locked facts.",
          "limits": "Identity does not enumerate all source branches or client failures.",
          "sources": [
            "src.errcodes.42P09.18.6"
          ]
        },
        {
          "id": "mechanism.selected-source-path",
          "statement": "scanNameSpaceForRefname compares visible aliases and reports `table reference \"%s\" is ambiguous` on a duplicate visible alias; scanNameSpaceForRelid reports `table reference %u is ambiguous` when an unaliased relation RTE with the same OID appears more than once. Lateral-only and column-only visibility guards are applied, and both paths are separate from column ambiguity.",
          "method": "Read complete resolved REL_18_6 report groups and message roles.",
          "limits": "Representative confirmed core paths only; not exhaustive historical or extension coverage.",
          "sources": [
            "src.call.42P09.ed0c1b7f7e4bd90cb2068e17",
            "src.call.42P09.171afa1503a4e198e620e1b5"
          ]
        },
        {
          "id": "versions.catalogue-boundary",
          "statement": "From 7.4 through 18.6 and 19beta3; this catalogue range is not a precise introduction claim. The selected named-alias and internal-OID branches are fixed 18.6 source paths and runtime was not run.",
          "method": "Read locked catalogue facts and definition snapshots.",
          "limits": "First observed release is a lower bound, not precise behavioral introduction.",
          "sources": [
            "src.errcodes.42P09.18.6"
          ]
        }
      ],
      "messages": [
        {
          "id": "message.variant-1",
          "sqlstate": "42P09",
          "severity_source": "explicit ERROR",
          "primary_template": "table reference \"%s\" is ambiguous",
          "detail_templates": [],
          "hint_templates": [],
          "roles": [
            {
              "role": "errmsg",
              "template": "table reference \"%s\" is ambiguous"
            }
          ],
          "sources": [
            "src.call.42P09.ed0c1b7f7e4bd90cb2068e17"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        },
        {
          "id": "message.variant-2",
          "sqlstate": "42P09",
          "severity_source": "explicit ERROR",
          "primary_template": "table reference %u is ambiguous",
          "detail_templates": [],
          "hint_templates": [],
          "roles": [
            {
              "role": "errmsg",
              "template": "table reference %u is ambiguous"
            }
          ],
          "sources": [
            "src.call.42P09.171afa1503a4e198e620e1b5"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        }
      ],
      "usage_evidence": [
        {
          "scope": "SQLSTATE definition and release identity",
          "status": "definition_only",
          "evidence_ids": [
            "identity.class-and-condition",
            "src.errcodes.42P09.18.6"
          ]
        },
        {
          "scope": "Selected PostgreSQL 18.6 source emitters and message roles",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "mechanism.selected-source-path"
          ]
        },
        {
          "scope": "Natural runtime execution for this batch",
          "status": "unknown",
          "evidence_ids": []
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "42P10",
      "condition_name": "invalid_column_reference",
      "sources": [
        {
          "id": "src.errcodes.42P10.18.6",
          "kind": "upstream_source",
          "source_role": "condition_definition",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/errcodes.txt",
          "location": "line 390",
          "sha256": "6e8de346643ba84aa3c9c6a73360acfc7b2dfb89162c06c08ce9bf5bcd5bbcba",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/errcodes.txt#L390"
        },
        {
          "id": "src.call.42P10.2fe5eef548819ba1cf9ab7c2",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/catalog/heap.c",
          "location": "lines 3465-3468",
          "sha256": "e720ee58279590793edd0985b3c910970ef56e7361b8ef92e245370587e02a0e",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/catalog/heap.c#L3465-L3468"
        },
        {
          "id": "src.call.42P10.4cc3c771f6b98871572af1b5",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/copy.c",
          "location": "lines 1026-1030",
          "sha256": "f50ecc1531109fc172d841d461e209cef611f3d017ef4184034c39e128deabbe",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/copy.c#L1026-L1030"
        },
        {
          "id": "src.call.42P10.9fb7b007472c34d677de2888",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/optimizer/util/plancat.c",
          "location": "lines 958-960",
          "sha256": "b953af14cb2539fbb32e4d1e8eea30f3eaa1b6336091369c03531fb9dcd5a6ff",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/optimizer/util/plancat.c#L958-L960"
        },
        {
          "id": "src.calls.REL_18_6.42P10",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "statement": "42P10 is the invalid_column_reference condition in Class 42.",
          "method": "Read fixed REL_18_6 errcodes.txt and locked facts.",
          "limits": "Identity does not enumerate all source branches or client failures.",
          "sources": [
            "src.errcodes.42P10.18.6"
          ]
        },
        {
          "id": "mechanism.selected-source-path",
          "statement": "Selected 18.6 paths use 42P10 for different column-reference contracts: cookConstraint permits only the table owning a CHECK constraint, CopyGetAttnums rejects a generated column named in an explicit COPY list while the default list skips generated columns, and ON CONFLICT inference reports this code when no suitable arbiter index matches. The ON CONFLICT message is an inference failure, not a generic missing-column error.",
          "method": "Read selected resolved REL_18_6 report groups and message roles.",
          "limits": "Representative confirmed core paths only; ON CONFLICT action-specific arbiter rules and historical/extension coverage are not exhaustive.",
          "sources": [
            "src.call.42P10.2fe5eef548819ba1cf9ab7c2",
            "src.call.42P10.4cc3c771f6b98871572af1b5",
            "src.call.42P10.9fb7b007472c34d677de2888"
          ]
        },
        {
          "id": "versions.catalogue-boundary",
          "statement": "Locked catalogue snapshots show this condition by PostgreSQL 7.4; source behavior here is fixed at PostgreSQL 18.6.",
          "method": "Read locked catalogue facts and definition snapshot.",
          "limits": "First observed release is a lower bound, not precise behavioral introduction.",
          "sources": [
            "src.errcodes.42P10.18.6"
          ]
        }
      ],
      "messages": [
        {
          "id": "message.variant-1",
          "sqlstate": "42P10",
          "severity_source": "ERROR",
          "primary_template": "only table \"%s\" can be referenced in check constraint",
          "detail_templates": [],
          "hint_templates": [],
          "roles": [
            {
              "role": "errmsg",
              "template": "only table \"%s\" can be referenced in check constraint"
            }
          ],
          "sources": [
            "src.call.42P10.2fe5eef548819ba1cf9ab7c2"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        },
        {
          "id": "message.variant-2",
          "sqlstate": "42P10",
          "severity_source": "ERROR",
          "primary_template": "column \"%s\" is a generated column",
          "detail_templates": [
            "Generated columns cannot be used in COPY."
          ],
          "hint_templates": [],
          "roles": [
            {
              "role": "errmsg",
              "template": "column \"%s\" is a generated column"
            },
            {
              "role": "errdetail",
              "template": "Generated columns cannot be used in COPY."
            }
          ],
          "sources": [
            "src.call.42P10.4cc3c771f6b98871572af1b5"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        },
        {
          "id": "message.variant-3",
          "sqlstate": "42P10",
          "severity_source": "ERROR",
          "primary_template": "there is no unique or exclusion constraint matching the ON CONFLICT specification",
          "detail_templates": [],
          "hint_templates": [],
          "roles": [
            {
              "role": "errmsg",
              "template": "there is no unique or exclusion constraint matching the ON CONFLICT specification"
            }
          ],
          "sources": [
            "src.call.42P10.9fb7b007472c34d677de2888"
          ],
          "limits": "The primary is source-exact; DO UPDATE needs a matching unique arbiter, while an exclusion constraint is not a general substitute for that action. No concrete runtime value is claimed."
        }
      ],
      "usage_evidence": [
        {
          "scope": "SQLSTATE definition and release identity",
          "status": "definition_only",
          "evidence_ids": [
            "identity.class-and-condition",
            "src.errcodes.42P10.18.6"
          ]
        },
        {
          "scope": "Selected PostgreSQL 18.6 source emitters and message roles",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "mechanism.selected-source-path"
          ]
        },
        {
          "scope": "Natural runtime execution for this batch",
          "status": "unknown",
          "evidence_ids": []
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "42P11",
      "condition_name": "invalid_cursor_definition",
      "sources": [
        {
          "id": "src.errcodes.42P11.18.6",
          "kind": "upstream_source",
          "source_role": "condition_definition",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/errcodes.txt",
          "location": "line 392",
          "sha256": "6e8de346643ba84aa3c9c6a73360acfc7b2dfb89162c06c08ce9bf5bcd5bbcba",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/errcodes.txt#L392"
        },
        {
          "id": "src.call.42P11.f167a76e45b0b00652025a79",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/executor/spi.c",
          "location": "lines 1600-1602",
          "sha256": "7244b45f632583c72530832df901b788fe403c8857425dd13edb49d9f84b0c78",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/executor/spi.c#L1600-L1602"
        },
        {
          "id": "src.call.42P11.5f65e5c8b9b4ec55a8f821f9",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/parser/analyze.c",
          "location": "lines 3097-3104",
          "sha256": "98a23a176bbf95155d780b6512118999bc9fa68be8d88f0d013daf2a7512466a",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/parser/analyze.c#L3097-L3104"
        },
        {
          "id": "src.call.42P11.8742e1b79b2e47e0cf489b90",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/parser/analyze.c",
          "location": "lines 3040-3044",
          "sha256": "98a23a176bbf95155d780b6512118999bc9fa68be8d88f0d013daf2a7512466a",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/parser/analyze.c#L3040-L3044"
        },
        {
          "id": "src.call.42P11.option-pair-asensitive",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/parser/analyze.c",
          "location": "lines 3048-3052",
          "sha256": "98a23a176bbf95155d780b6512118999bc9fa68be8d88f0d013daf2a7512466a",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/parser/analyze.c#L3048-L3052"
        },
        {
          "id": "src.calls.REL_18_6.42P11",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "statement": "42P11 is the invalid_cursor_definition condition in Class 42.",
          "method": "Read fixed REL_18_6 errcodes.txt and locked facts.",
          "limits": "Identity does not enumerate all source branches or client failures.",
          "sources": [
            "src.errcodes.42P11.18.6"
          ]
        },
        {
          "id": "mechanism.selected-source-path",
          "statement": "Selected 18.6 paths separate an SPI plan with more than one query, conflicting SCROLL/NO SCROLL or ASENSITIVE/INSENSITIVE options, and an INSENSITIVE cursor combined with a row-locking clause; the latter reports that insensitive cursors must be READ ONLY.",
          "method": "Read selected resolved REL_18_6 report groups and message roles.",
          "limits": "Representative confirmed core paths only; not exhaustive historical or extension coverage.",
          "sources": [
            "src.call.42P11.f167a76e45b0b00652025a79",
            "src.call.42P11.5f65e5c8b9b4ec55a8f821f9",
            "src.call.42P11.8742e1b79b2e47e0cf489b90"
          ]
        },
        {
          "id": "versions.catalogue-boundary",
          "statement": "Locked catalogue snapshots show this condition by PostgreSQL 7.4; source behavior here is fixed at PostgreSQL 18.6.",
          "method": "Read locked catalogue facts and definition snapshot.",
          "limits": "First observed release is a lower bound, not precise behavioral introduction.",
          "sources": [
            "src.errcodes.42P11.18.6"
          ]
        }
      ],
      "messages": [
        {
          "id": "message.variant-1",
          "sqlstate": "42P11",
          "severity_source": "ERROR",
          "primary_template": "cannot open multi-query plan as cursor",
          "detail_templates": [],
          "hint_templates": [],
          "roles": [
            {
              "role": "errmsg",
              "template": "cannot open multi-query plan as cursor"
            }
          ],
          "sources": [
            "src.call.42P11.f167a76e45b0b00652025a79"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        },
        {
          "id": "message.variant-2",
          "sqlstate": "42P11",
          "severity_source": "ERROR",
          "primary_template": "DECLARE INSENSITIVE CURSOR ... %s is not valid",
          "detail_templates": [
            "Insensitive cursors must be READ ONLY."
          ],
          "hint_templates": [],
          "roles": [
            {
              "role": "errmsg",
              "template": "DECLARE INSENSITIVE CURSOR ... %s is not valid"
            },
            {
              "role": "errdetail",
              "template": "Insensitive cursors must be READ ONLY."
            }
          ],
          "sources": [
            "src.call.42P11.5f65e5c8b9b4ec55a8f821f9"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        },
        {
          "id": "message.variant-3",
          "sqlstate": "42P11",
          "severity_source": "ERROR",
          "primary_template": "cannot specify both %s and %s",
          "detail_templates": [],
          "hint_templates": [],
          "roles": [
            {
              "role": "errmsg",
              "template": "cannot specify both %s and %s"
            }
          ],
          "sources": [
            "src.call.42P11.8742e1b79b2e47e0cf489b90",
            "src.call.42P11.option-pair-asensitive"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        }
      ],
      "usage_evidence": [
        {
          "scope": "SQLSTATE definition and release identity",
          "status": "definition_only",
          "evidence_ids": [
            "identity.class-and-condition",
            "src.errcodes.42P11.18.6"
          ]
        },
        {
          "scope": "Selected PostgreSQL 18.6 source emitters and message roles",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "mechanism.selected-source-path"
          ]
        },
        {
          "scope": "Natural runtime execution for this batch",
          "status": "unknown",
          "evidence_ids": []
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "42P12",
      "condition_name": "invalid_database_definition",
      "sources": [
        {
          "id": "src.errcodes.42P12.18.6",
          "kind": "upstream_source",
          "source_role": "condition_definition",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/errcodes.txt",
          "location": "line 393",
          "sha256": "6e8de346643ba84aa3c9c6a73360acfc7b2dfb89162c06c08ce9bf5bcd5bbcba",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/errcodes.txt#L393"
        },
        {
          "id": "src.calls.REL_18_6.42P12",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "statement": "42P12 is the invalid_database_definition condition in Class 42.",
          "method": "Read fixed REL_18_6 errcodes.txt and locked facts.",
          "limits": "Identity does not enumerate all source branches or client failures.",
          "sources": [
            "src.errcodes.42P12.18.6"
          ]
        },
        {
          "id": "bounded-scan",
          "statement": "The bounded REL_18_6 call scan did not resolve a core emitting group for this condition.",
          "method": "Read all candidate records for this code in raw/calls/REL_18_6.jsonl.",
          "limits": "This is a scan boundary, not proof that the condition is never emitted.",
          "sources": [
            "src.calls.REL_18_6.42P12"
          ]
        },
        {
          "id": "versions.catalogue-boundary",
          "statement": "Locked catalogue snapshots show this condition by PostgreSQL 7.4; source behavior here is fixed at PostgreSQL 18.6.",
          "method": "Read locked catalogue facts and definition snapshot.",
          "limits": "First observed release is a lower bound, not precise behavioral introduction.",
          "sources": [
            "src.errcodes.42P12.18.6"
          ]
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "SQLSTATE definition and release identity",
          "status": "definition_only",
          "evidence_ids": [
            "identity.class-and-condition",
            "src.errcodes.42P12.18.6"
          ]
        },
        {
          "scope": "Selected PostgreSQL 18.6 source emitters and message roles",
          "status": "unknown",
          "evidence_ids": []
        },
        {
          "scope": "Natural runtime execution for this batch",
          "status": "unknown",
          "evidence_ids": []
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "42P13",
      "condition_name": "invalid_function_definition",
      "sources": [
        {
          "id": "src.errcodes.42P13.18.6",
          "kind": "upstream_source",
          "source_role": "condition_definition",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/errcodes.txt",
          "location": "line 394",
          "sha256": "6e8de346643ba84aa3c9c6a73360acfc7b2dfb89162c06c08ce9bf5bcd5bbcba",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/errcodes.txt#L394"
        },
        {
          "id": "src.call.42P13.59b4e33cdd3e899e2a030829",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/catalog/pg_aggregate.c",
          "location": "lines 142-145",
          "sha256": "75c08cdd82917e45647f7c523c9ad8fb49423c89f13e26754be1e37e4c6a49b4",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/catalog/pg_aggregate.c#L142-L145"
        },
        {
          "id": "src.call.42P13.2ffff7c5778d60ac8f47ff67",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/executor/functions.c",
          "location": "lines 2222-2226",
          "sha256": "ea37a18fab0f741445874b63e239027ff3901273a9d8e2046be321d3c021a604",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/executor/functions.c#L2222-L2226"
        },
        {
          "id": "src.call.42P13.1f3147b83dd1ece95cf5aaf0",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/pl/plpgsql/src/pl_comp.c",
          "location": "lines 493-496",
          "sha256": "1da6339c6a538df3045d02326c96d9afe3447c68173ebee0aefee0bca3a2ae09",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/pl/plpgsql/src/pl_comp.c#L493-L496"
        },
        {
          "id": "src.calls.REL_18_6.42P13",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "statement": "42P13 is the invalid_function_definition condition in Class 42.",
          "method": "Read fixed REL_18_6 errcodes.txt and locked facts.",
          "limits": "Identity does not enumerate all source branches or client failures.",
          "sources": [
            "src.errcodes.42P13.18.6"
          ]
        },
        {
          "id": "mechanism.selected-source-path",
          "statement": "Selected core paths cover a polymorphic aggregate transition type that cannot be determined with a caller-generated internal DETAIL, a function return-type mismatch when the final statement is not a compatible SELECT or DML RETURNING, and trigger functions declaring arguments.",
          "method": "Read selected resolved REL_18_6 report groups and message roles.",
          "limits": "Representative confirmed core paths only; not exhaustive historical or extension coverage.",
          "sources": [
            "src.call.42P13.59b4e33cdd3e899e2a030829",
            "src.call.42P13.2ffff7c5778d60ac8f47ff67",
            "src.call.42P13.1f3147b83dd1ece95cf5aaf0"
          ]
        },
        {
          "id": "versions.catalogue-boundary",
          "statement": "Locked catalogue snapshots show this condition by PostgreSQL 7.4; source behavior here is fixed at PostgreSQL 18.6.",
          "method": "Read locked catalogue facts and definition snapshot.",
          "limits": "First observed release is a lower bound, not precise behavioral introduction.",
          "sources": [
            "src.errcodes.42P13.18.6"
          ]
        }
      ],
      "messages": [
        {
          "id": "message.variant-1",
          "sqlstate": "42P13",
          "severity_source": "ERROR",
          "primary_template": "cannot determine transition data type",
          "detail_templates": [
            "%s"
          ],
          "hint_templates": [],
          "roles": [
            {
              "role": "errmsg",
              "template": "cannot determine transition data type"
            },
            {
              "role": "errdetail_internal",
              "template": "%s"
            }
          ],
          "sources": [
            "src.call.42P13.59b4e33cdd3e899e2a030829"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        },
        {
          "id": "message.variant-2",
          "sqlstate": "42P13",
          "severity_source": "ERROR",
          "primary_template": "return type mismatch in function declared to return %s",
          "detail_templates": [
            "Function's final statement must be SELECT or INSERT/UPDATE/DELETE/MERGE RETURNING."
          ],
          "hint_templates": [],
          "roles": [
            {
              "role": "errmsg",
              "template": "return type mismatch in function declared to return %s"
            },
            {
              "role": "errdetail",
              "template": "Function's final statement must be SELECT or INSERT/UPDATE/DELETE/MERGE RETURNING."
            }
          ],
          "sources": [
            "src.call.42P13.2ffff7c5778d60ac8f47ff67"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        },
        {
          "id": "message.variant-3",
          "sqlstate": "42P13",
          "severity_source": "ERROR",
          "primary_template": "trigger functions cannot have declared arguments",
          "detail_templates": [],
          "hint_templates": [
            "The arguments of the trigger can be accessed through TG_NARGS and TG_ARGV instead."
          ],
          "roles": [
            {
              "role": "errmsg",
              "template": "trigger functions cannot have declared arguments"
            },
            {
              "role": "errhint",
              "template": "The arguments of the trigger can be accessed through TG_NARGS and TG_ARGV instead."
            }
          ],
          "sources": [
            "src.call.42P13.1f3147b83dd1ece95cf5aaf0"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        }
      ],
      "usage_evidence": [
        {
          "scope": "SQLSTATE definition and release identity",
          "status": "definition_only",
          "evidence_ids": [
            "identity.class-and-condition",
            "src.errcodes.42P13.18.6"
          ]
        },
        {
          "scope": "Selected PostgreSQL 18.6 source emitters and message roles",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "mechanism.selected-source-path"
          ]
        },
        {
          "scope": "Natural runtime execution for this batch",
          "status": "unknown",
          "evidence_ids": []
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "42P14",
      "condition_name": "invalid_prepared_statement_definition",
      "sources": [
        {
          "id": "src.errcodes.42P14.18.6",
          "kind": "upstream_source",
          "source_role": "condition_definition",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/errcodes.txt",
          "location": "line 395",
          "sha256": "6e8de346643ba84aa3c9c6a73360acfc7b2dfb89162c06c08ce9bf5bcd5bbcba",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/errcodes.txt#L395"
        },
        {
          "id": "src.call.42P14.d04baad66169863a1a388152",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/prepare.c",
          "location": "lines 73-75",
          "sha256": "e37fbd5f7618e5554561d9293d8c3af7cf3190c62c5c6bbceb3fe8b97be17956",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/prepare.c#L73-L75"
        },
        {
          "id": "src.call.42P14.protocol-unnamed",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/tcop/postgres.c",
          "location": "lines 1433-1459",
          "sha256": "9fb62275b1badf94d01ab351337b60410cd9b3ab1fe63fa9f23d6d2185a21061",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/tcop/postgres.c#L1433-L1459"
        },
        {
          "id": "src.calls.REL_18_6.42P14",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "statement": "42P14 is the invalid_prepared_statement_definition condition in Class 42.",
          "method": "Read fixed REL_18_6 errcodes.txt and locked facts.",
          "limits": "Identity does not enumerate all source branches or client failures.",
          "sources": [
            "src.errcodes.42P14.18.6"
          ]
        },
        {
          "id": "mechanism.selected-source-path",
          "statement": "PrepareQuery rejects a null or empty name for SQL PREPARE before a named statement is registered; its source comment identifies the separate extended-protocol unnamed statement slot. An empty name in a protocol Parse message is therefore not automatically 42P14.",
          "method": "Read selected resolved REL_18_6 report groups and message roles.",
          "limits": "Representative confirmed core paths only; not exhaustive historical or extension coverage.",
          "sources": [
            "src.call.42P14.d04baad66169863a1a388152",
            "src.call.42P14.protocol-unnamed"
          ]
        },
        {
          "id": "versions.catalogue-boundary",
          "statement": "Locked catalogue snapshots show this condition by PostgreSQL 7.4; source behavior here is fixed at PostgreSQL 18.6.",
          "method": "Read locked catalogue facts and definition snapshot.",
          "limits": "First observed release is a lower bound, not precise behavioral introduction.",
          "sources": [
            "src.errcodes.42P14.18.6"
          ]
        }
      ],
      "messages": [
        {
          "id": "message.variant-1",
          "sqlstate": "42P14",
          "severity_source": "ERROR",
          "primary_template": "invalid statement name: must not be empty",
          "detail_templates": [],
          "hint_templates": [],
          "roles": [
            {
              "role": "errmsg",
              "template": "invalid statement name: must not be empty"
            }
          ],
          "sources": [
            "src.call.42P14.d04baad66169863a1a388152"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        }
      ],
      "usage_evidence": [
        {
          "scope": "SQLSTATE definition and release identity",
          "status": "definition_only",
          "evidence_ids": [
            "identity.class-and-condition",
            "src.errcodes.42P14.18.6"
          ]
        },
        {
          "scope": "Selected PostgreSQL 18.6 source emitters and message roles",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "mechanism.selected-source-path"
          ]
        },
        {
          "scope": "Natural runtime execution for this batch",
          "status": "unknown",
          "evidence_ids": []
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "42P15",
      "condition_name": "invalid_schema_definition",
      "sources": [
        {
          "id": "src.errcodes.42P15.18.6",
          "kind": "upstream_source",
          "source_role": "condition_definition",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/errcodes.txt",
          "location": "line 396",
          "sha256": "6e8de346643ba84aa3c9c6a73360acfc7b2dfb89162c06c08ce9bf5bcd5bbcba",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/errcodes.txt#L396"
        },
        {
          "id": "src.call.42P15.2db5c33b3c90c42ac6dd7a34",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/parser/parse_utilcmd.c",
          "location": "lines 4229-4233",
          "sha256": "6758a539fdd493127dfd98e58b995ffcfc3068194bdacdf168ba495caa6cacbf",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/parser/parse_utilcmd.c#L4229-L4233"
        },
        {
          "id": "src.calls.REL_18_6.42P15",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "statement": "42P15 is the invalid_schema_definition condition in Class 42.",
          "method": "Read fixed REL_18_6 errcodes.txt and locked facts.",
          "limits": "Identity does not enumerate all source branches or client failures.",
          "sources": [
            "src.errcodes.42P15.18.6"
          ]
        },
        {
          "id": "mechanism.selected-source-path",
          "statement": "The setSchemaName helper runs while transforming CREATE SCHEMA contents and rejects a contained object whose explicit schema differs from the schema being created. This is a contained-object declaration mismatch, not two top-level schemas or a missing-schema lookup.",
          "method": "Read selected resolved REL_18_6 report groups and message roles.",
          "limits": "Representative confirmed core paths only; not exhaustive historical or extension coverage.",
          "sources": [
            "src.call.42P15.2db5c33b3c90c42ac6dd7a34"
          ]
        },
        {
          "id": "versions.catalogue-boundary",
          "statement": "Locked catalogue snapshots show this condition by PostgreSQL 7.4; source behavior here is fixed at PostgreSQL 18.6.",
          "method": "Read locked catalogue facts and definition snapshot.",
          "limits": "First observed release is a lower bound, not precise behavioral introduction.",
          "sources": [
            "src.errcodes.42P15.18.6"
          ]
        }
      ],
      "messages": [
        {
          "id": "message.variant-1",
          "sqlstate": "42P15",
          "severity_source": "ERROR",
          "primary_template": "CREATE specifies a schema (%s) different from the one being created (%s)",
          "detail_templates": [],
          "hint_templates": [],
          "roles": [
            {
              "role": "errmsg",
              "template": "CREATE specifies a schema (%s) different from the one being created (%s)"
            }
          ],
          "sources": [
            "src.call.42P15.2db5c33b3c90c42ac6dd7a34"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        }
      ],
      "usage_evidence": [
        {
          "scope": "SQLSTATE definition and release identity",
          "status": "definition_only",
          "evidence_ids": [
            "identity.class-and-condition",
            "src.errcodes.42P15.18.6"
          ]
        },
        {
          "scope": "Selected PostgreSQL 18.6 source emitters and message roles",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "mechanism.selected-source-path"
          ]
        },
        {
          "scope": "Natural runtime execution for this batch",
          "status": "unknown",
          "evidence_ids": []
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "42P16",
      "condition_name": "invalid_table_definition",
      "sources": [
        {
          "id": "src.errcodes.42P16.18.6",
          "kind": "upstream_source",
          "source_role": "condition_definition",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/errcodes.txt",
          "location": "line 397",
          "sha256": "6e8de346643ba84aa3c9c6a73360acfc7b2dfb89162c06c08ce9bf5bcd5bbcba",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/errcodes.txt#L397"
        },
        {
          "id": "src.call.42P16.af3eab51674420e4a935dec6",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/catalog/heap.c",
          "location": "lines 576-580",
          "sha256": "e720ee58279590793edd0985b3c910970ef56e7361b8ef92e245370587e02a0e",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/catalog/heap.c#L576-L580"
        },
        {
          "id": "src.call.42P16.ba3688fe3791594da97fde08",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/catalog/heap.c",
          "location": "lines 697-702",
          "sha256": "e720ee58279590793edd0985b3c910970ef56e7361b8ef92e245370587e02a0e",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/catalog/heap.c#L697-L702"
        },
        {
          "id": "src.call.42P16.ca2b8fc15fc050d4a6cd2d3b",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/catalog/index.c",
          "location": "lines 218-221",
          "sha256": "98a4156a5c21ae856a3b583b633cdeb578a5b69910386c9f166d69fcb04ba2d0",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/catalog/index.c#L218-L221"
        },
        {
          "id": "src.calls.REL_18_6.42P16",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "statement": "42P16 is the invalid_table_definition condition in Class 42.",
          "method": "Read fixed REL_18_6 errcodes.txt and locked facts.",
          "limits": "Identity does not enumerate all source branches or client failures.",
          "sources": [
            "src.errcodes.42P16.18.6"
          ]
        },
        {
          "id": "mechanism.selected-source-path",
          "statement": "Table-definition checks use this condition for several relation-shape violations. Core 18.6 examples reject pseudo-types in partition keys, missing collation for a collatable partition key, and multiple primary keys.",
          "method": "Read selected resolved REL_18_6 report groups and message roles.",
          "limits": "Representative confirmed core paths only; not exhaustive historical or extension coverage.",
          "sources": [
            "src.call.42P16.af3eab51674420e4a935dec6",
            "src.call.42P16.ba3688fe3791594da97fde08",
            "src.call.42P16.ca2b8fc15fc050d4a6cd2d3b"
          ]
        },
        {
          "id": "versions.catalogue-boundary",
          "statement": "Locked catalogue snapshots show this condition by PostgreSQL 7.4; source behavior here is fixed at PostgreSQL 18.6.",
          "method": "Read locked catalogue facts and definition snapshot.",
          "limits": "First observed release is a lower bound, not precise behavioral introduction.",
          "sources": [
            "src.errcodes.42P16.18.6"
          ]
        }
      ],
      "messages": [
        {
          "id": "message.variant-1",
          "sqlstate": "42P16",
          "severity_source": "ERROR",
          "primary_template": "partition key column %s has pseudo-type %s",
          "detail_templates": [],
          "hint_templates": [],
          "roles": [
            {
              "role": "errmsg",
              "template": "partition key column %s has pseudo-type %s"
            }
          ],
          "sources": [
            "src.call.42P16.af3eab51674420e4a935dec6"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        },
        {
          "id": "message.variant-2",
          "sqlstate": "42P16",
          "severity_source": "ERROR",
          "primary_template": "no collation was derived for partition key column %s with collatable type %s",
          "detail_templates": [],
          "hint_templates": [
            "Use the COLLATE clause to set the collation explicitly."
          ],
          "roles": [
            {
              "role": "errmsg",
              "template": "no collation was derived for partition key column %s with collatable type %s"
            },
            {
              "role": "errhint",
              "template": "Use the COLLATE clause to set the collation explicitly."
            }
          ],
          "sources": [
            "src.call.42P16.ba3688fe3791594da97fde08"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        },
        {
          "id": "message.variant-3",
          "sqlstate": "42P16",
          "severity_source": "ERROR",
          "primary_template": "multiple primary keys for table \"%s\" are not allowed",
          "detail_templates": [],
          "hint_templates": [],
          "roles": [
            {
              "role": "errmsg",
              "template": "multiple primary keys for table \"%s\" are not allowed"
            }
          ],
          "sources": [
            "src.call.42P16.ca2b8fc15fc050d4a6cd2d3b"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        }
      ],
      "usage_evidence": [
        {
          "scope": "SQLSTATE definition and release identity",
          "status": "definition_only",
          "evidence_ids": [
            "identity.class-and-condition",
            "src.errcodes.42P16.18.6"
          ]
        },
        {
          "scope": "Selected PostgreSQL 18.6 source emitters and message roles",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "mechanism.selected-source-path"
          ]
        },
        {
          "scope": "Natural runtime execution for this batch",
          "status": "unknown",
          "evidence_ids": []
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "42P17",
      "condition_name": "invalid_object_definition",
      "sources": [
        {
          "id": "src.errcodes.42P17.18.6",
          "kind": "upstream_source",
          "source_role": "condition_definition",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/errcodes.txt",
          "location": "line 398",
          "sha256": "6e8de346643ba84aa3c9c6a73360acfc7b2dfb89162c06c08ce9bf5bcd5bbcba",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/errcodes.txt#L398"
        },
        {
          "id": "src.call.42P17.7a6be8fbd1213811e253e016",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/catalog/heap.c",
          "location": "lines 2820-2823",
          "sha256": "e720ee58279590793edd0985b3c910970ef56e7361b8ef92e245370587e02a0e",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/catalog/heap.c#L2820-L2823"
        },
        {
          "id": "src.call.42P17.09eb0354822f0636e23d3677",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/catalog/heap.c",
          "location": "lines 3237-3242",
          "sha256": "e720ee58279590793edd0985b3c910970ef56e7361b8ef92e245370587e02a0e",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/catalog/heap.c#L3237-L3242"
        },
        {
          "id": "src.call.42P17.79a0f8a4009c621f6b3254f8",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/rewrite/rewriteHandler.c",
          "location": "lines 2164-2167",
          "sha256": "5a34bf31f424abbf46cd926da1fefcd9360c4d527a87d8a0ac9f653d67c2206a",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/rewrite/rewriteHandler.c#L2164-L2167"
        },
        {
          "id": "src.calls.REL_18_6.42P17",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "statement": "42P17 is the invalid_object_definition condition in Class 42.",
          "method": "Read fixed REL_18_6 errcodes.txt and locked facts.",
          "limits": "Identity does not enumerate all source branches or client failures.",
          "sources": [
            "src.errcodes.42P17.18.6"
          ]
        },
        {
          "id": "mechanism.selected-source-path",
          "statement": "Selected paths reject an inherited-constraint conflict whose parent/child inheritance flags do not permit the requested merge, a generated column referencing another generated column, and recursive rewrite rules. These object graphs require different repairs; the source does not support a universal remove-inherited-constraint rule.",
          "method": "Read selected resolved REL_18_6 report groups and message roles.",
          "limits": "Representative confirmed core paths only; not exhaustive historical or extension coverage.",
          "sources": [
            "src.call.42P17.7a6be8fbd1213811e253e016",
            "src.call.42P17.09eb0354822f0636e23d3677",
            "src.call.42P17.79a0f8a4009c621f6b3254f8"
          ]
        },
        {
          "id": "versions.catalogue-boundary",
          "statement": "Locked catalogue snapshots show this condition by PostgreSQL 7.4; source behavior here is fixed at PostgreSQL 18.6.",
          "method": "Read locked catalogue facts and definition snapshot.",
          "limits": "First observed release is a lower bound, not precise behavioral introduction.",
          "sources": [
            "src.errcodes.42P17.18.6"
          ]
        }
      ],
      "messages": [
        {
          "id": "message.variant-1",
          "sqlstate": "42P17",
          "severity_source": "ERROR",
          "primary_template": "constraint \"%s\" conflicts with non-inherited constraint on relation \"%s\"",
          "detail_templates": [],
          "hint_templates": [],
          "roles": [
            {
              "role": "errmsg",
              "template": "constraint \"%s\" conflicts with non-inherited constraint on relation \"%s\""
            }
          ],
          "sources": [
            "src.call.42P17.7a6be8fbd1213811e253e016"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        },
        {
          "id": "message.variant-2",
          "sqlstate": "42P17",
          "severity_source": "ERROR",
          "primary_template": "cannot use generated column \"%s\" in column generation expression",
          "detail_templates": [
            "A generated column cannot reference another generated column."
          ],
          "hint_templates": [],
          "roles": [
            {
              "role": "errmsg",
              "template": "cannot use generated column \"%s\" in column generation expression"
            },
            {
              "role": "errdetail",
              "template": "A generated column cannot reference another generated column."
            }
          ],
          "sources": [
            "src.call.42P17.09eb0354822f0636e23d3677"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        },
        {
          "id": "message.variant-3",
          "sqlstate": "42P17",
          "severity_source": "ERROR",
          "primary_template": "infinite recursion detected in rules for relation \"%s\"",
          "detail_templates": [],
          "hint_templates": [],
          "roles": [
            {
              "role": "errmsg",
              "template": "infinite recursion detected in rules for relation \"%s\""
            }
          ],
          "sources": [
            "src.call.42P17.79a0f8a4009c621f6b3254f8"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        }
      ],
      "usage_evidence": [
        {
          "scope": "SQLSTATE definition and release identity",
          "status": "definition_only",
          "evidence_ids": [
            "identity.class-and-condition",
            "src.errcodes.42P17.18.6"
          ]
        },
        {
          "scope": "Selected PostgreSQL 18.6 source emitters and message roles",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "mechanism.selected-source-path"
          ]
        },
        {
          "scope": "Natural runtime execution for this batch",
          "status": "unknown",
          "evidence_ids": []
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "42P18",
      "condition_name": "indeterminate_datatype",
      "sources": [
        {
          "id": "src.errcodes.42P18.18.6",
          "kind": "upstream_source",
          "source_role": "condition_definition",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/errcodes.txt",
          "location": "line 351",
          "sha256": "6e8de346643ba84aa3c9c6a73360acfc7b2dfb89162c06c08ce9bf5bcd5bbcba",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/errcodes.txt#L351"
        },
        {
          "id": "src.call.42P18.24454306029f6c5a510a8800",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/parser/parse_expr.c",
          "location": "lines 2102-2107",
          "sha256": "63c37770872a08978f931c31f801666a08e3bc8e51c2c65ff60151a1d139d55b",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/parser/parse_expr.c#L2102-L2107"
        },
        {
          "id": "src.call.42P18.8fe85a04bb8a03d1fe617f46",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/tcop/postgres.c",
          "location": "lines 733-736",
          "sha256": "9fb62275b1badf94d01ab351337b60410cd9b3ab1fe63fa9f23d6d2185a21061",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/tcop/postgres.c#L733-L736"
        },
        {
          "id": "src.calls.REL_18_6.42P18",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "statement": "42P18 is the indeterminate_datatype condition in Class 42.",
          "method": "Read fixed REL_18_6 errcodes.txt and locked facts.",
          "limits": "Identity does not enumerate all source branches or client failures.",
          "sources": [
            "src.errcodes.42P18.18.6"
          ]
        },
        {
          "id": "mechanism.selected-source-path",
          "statement": "Core 18.6 reports empty ARRAY[] and, in pg_analyze_and_rewrite_varparams, rejects every parameter left InvalidOid or UNKNOWNOID after parse analysis, such as $1 with no constraining context. This is distinct from 42P08 conflicting deductions and 42P02 missing parameter references.",
          "method": "Read selected resolved REL_18_6 report groups and message roles.",
          "limits": "Representative confirmed core paths only; not exhaustive historical or extension coverage.",
          "sources": [
            "src.call.42P18.24454306029f6c5a510a8800",
            "src.call.42P18.8fe85a04bb8a03d1fe617f46"
          ]
        },
        {
          "id": "versions.catalogue-boundary",
          "statement": "Locked catalogue snapshots show this condition by PostgreSQL 7.4; source behavior here is fixed at PostgreSQL 18.6.",
          "method": "Read locked catalogue facts and definition snapshot.",
          "limits": "First observed release is a lower bound, not precise behavioral introduction.",
          "sources": [
            "src.errcodes.42P18.18.6"
          ]
        }
      ],
      "messages": [
        {
          "id": "message.variant-1",
          "sqlstate": "42P18",
          "severity_source": "ERROR",
          "primary_template": "cannot determine type of empty array",
          "detail_templates": [],
          "hint_templates": [
            "Explicitly cast to the desired type, for example ARRAY[]::integer[]."
          ],
          "roles": [
            {
              "role": "errmsg",
              "template": "cannot determine type of empty array"
            },
            {
              "role": "errhint",
              "template": "Explicitly cast to the desired type, for example ARRAY[]::integer[]."
            }
          ],
          "sources": [
            "src.call.42P18.24454306029f6c5a510a8800"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        },
        {
          "id": "message.variant-2",
          "sqlstate": "42P18",
          "severity_source": "ERROR",
          "primary_template": "could not determine data type of parameter $%d",
          "detail_templates": [],
          "hint_templates": [],
          "roles": [
            {
              "role": "errmsg",
              "template": "could not determine data type of parameter $%d"
            }
          ],
          "sources": [
            "src.call.42P18.8fe85a04bb8a03d1fe617f46"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        }
      ],
      "usage_evidence": [
        {
          "scope": "SQLSTATE definition and release identity",
          "status": "definition_only",
          "evidence_ids": [
            "identity.class-and-condition",
            "src.errcodes.42P18.18.6"
          ]
        },
        {
          "scope": "Selected PostgreSQL 18.6 source emitters and message roles",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "mechanism.selected-source-path"
          ]
        },
        {
          "scope": "Natural runtime execution for this batch",
          "status": "unknown",
          "evidence_ids": []
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "42P19",
      "condition_name": "invalid_recursion",
      "sources": [
        {
          "id": "src.errcodes.42P19.18.6",
          "kind": "upstream_source",
          "source_role": "condition_definition",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/errcodes.txt",
          "location": "line 345",
          "sha256": "6e8de346643ba84aa3c9c6a73360acfc7b2dfb89162c06c08ce9bf5bcd5bbcba",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/errcodes.txt#L345"
        },
        {
          "id": "src.call.42P19.e59c077eba1a4a52a69a6d97",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/parser/parse_agg.c",
          "location": "lines 1329-1333",
          "sha256": "6e80a805fddbfc9c7e0f3047b348bf992a20c99f16ce7fee89c7067753027f72",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/parser/parse_agg.c#L1329-L1333"
        },
        {
          "id": "src.call.42P19.e6e0586856ee8989b006f7ae",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/parser/parse_cte.c",
          "location": "lines 940-944",
          "sha256": "908eef14ac26654fe0b9c176ef50e56ba710b7fcd8e1239b944d7c2152fc2d6b",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/parser/parse_cte.c#L940-L944"
        },
        {
          "id": "src.call.42P19.3b25492c51b06d773f237993",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/parser/parse_cte.c",
          "location": "lines 1072-1077",
          "sha256": "908eef14ac26654fe0b9c176ef50e56ba710b7fcd8e1239b944d7c2152fc2d6b",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/parser/parse_cte.c#L1072-L1077"
        },
        {
          "id": "src.call.42P19.recursion-context",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/parser/parse_cte.c",
          "location": "lines 1056-1069",
          "sha256": "908eef14ac26654fe0b9c176ef50e56ba710b7fcd8e1239b944d7c2152fc2d6b",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/parser/parse_cte.c#L1056-L1069"
        },
        {
          "id": "src.calls.REL_18_6.42P19",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "statement": "42P19 is the invalid_recursion condition in Class 42.",
          "method": "Read fixed REL_18_6 errcodes.txt and locked facts.",
          "limits": "Identity does not enumerate all source branches or client failures.",
          "sources": [
            "src.errcodes.42P19.18.6"
          ]
        },
        {
          "id": "mechanism.selected-source-path",
          "statement": "Core 18.6 checks aggregate use in the recursive term, the required non-recursive UNION [ALL] recursive form, and recursive-reference context and multiplicity. The selected aggregate guard is p_hasAggs; it does not establish that every window function is forbidden. Outer-join context applies to the nullable side (LEFT right, RIGHT left, FULL both), while the preserved side of a one-sided join is not covered by that guard.",
          "method": "Read selected resolved REL_18_6 report groups and message roles.",
          "limits": "Representative confirmed core paths only; not exhaustive historical or extension coverage.",
          "sources": [
            "src.call.42P19.e59c077eba1a4a52a69a6d97",
            "src.call.42P19.e6e0586856ee8989b006f7ae",
            "src.call.42P19.3b25492c51b06d773f237993",
            "src.call.42P19.recursion-context"
          ]
        },
        {
          "id": "versions.catalogue-boundary",
          "statement": "Locked catalogue snapshots show this condition by PostgreSQL 8.4.0; source behavior here is fixed at PostgreSQL 18.6.",
          "method": "Read locked catalogue facts and definition snapshot.",
          "limits": "First observed release is a lower bound, not precise behavioral introduction.",
          "sources": [
            "src.errcodes.42P19.18.6"
          ]
        }
      ],
      "messages": [
        {
          "id": "message.variant-1",
          "sqlstate": "42P19",
          "severity_source": "ERROR",
          "primary_template": "aggregate functions are not allowed in a recursive query's recursive term",
          "detail_templates": [],
          "hint_templates": [],
          "roles": [
            {
              "role": "errmsg",
              "template": "aggregate functions are not allowed in a recursive query's recursive term"
            }
          ],
          "sources": [
            "src.call.42P19.e59c077eba1a4a52a69a6d97"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        },
        {
          "id": "message.variant-2",
          "sqlstate": "42P19",
          "severity_source": "ERROR",
          "primary_template": "recursive query \"%s\" does not have the form non-recursive-term UNION [ALL] recursive-term",
          "detail_templates": [],
          "hint_templates": [],
          "roles": [
            {
              "role": "errmsg",
              "template": "recursive query \"%s\" does not have the form non-recursive-term UNION [ALL] recursive-term"
            }
          ],
          "sources": [
            "src.call.42P19.e6e0586856ee8989b006f7ae"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        },
        {
          "id": "message.variant-3",
          "sqlstate": "42P19",
          "severity_source": "ERROR",
          "primary_template": "recursive reference to query \"%s\" must not appear more than once",
          "detail_templates": [],
          "hint_templates": [],
          "roles": [
            {
              "role": "errmsg",
              "template": "recursive reference to query \"%s\" must not appear more than once"
            }
          ],
          "sources": [
            "src.call.42P19.3b25492c51b06d773f237993"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        }
      ],
      "usage_evidence": [
        {
          "scope": "SQLSTATE definition and release identity",
          "status": "definition_only",
          "evidence_ids": [
            "identity.class-and-condition",
            "src.errcodes.42P19.18.6"
          ]
        },
        {
          "scope": "Selected PostgreSQL 18.6 source emitters and message roles",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "mechanism.selected-source-path"
          ]
        },
        {
          "scope": "Natural runtime execution for this batch",
          "status": "unknown",
          "evidence_ids": []
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "42P20",
      "condition_name": "windowing_error",
      "sources": [
        {
          "id": "src.errcodes.42P20.18.6",
          "kind": "upstream_source",
          "source_role": "condition_definition",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/errcodes.txt",
          "location": "line 344",
          "sha256": "6e8de346643ba84aa3c9c6a73360acfc7b2dfb89162c06c08ce9bf5bcd5bbcba",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/errcodes.txt#L344"
        },
        {
          "id": "src.call.42P20.17809e6b7f525d4ed41961ed",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/executor/execExpr.c",
          "location": "lines 1155-1157",
          "sha256": "9bc3aa2562686b1860005137de9611e56ff6b41eaf9b3eefd9c3f058dc057431",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/executor/execExpr.c#L1155-L1157"
        },
        {
          "id": "src.call.42P20.5670c88a2f3e05b693257e49",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/parser/gram.y",
          "location": "lines 16499-16502",
          "sha256": "7e548b673a1e03eb3a56c5eb9ad92d8e11095fac76e14cb258ca851f58274724",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/parser/gram.y#L16499-L16502"
        },
        {
          "id": "src.call.42P20.ed2f8bce483ee7cc9c9ff7e0",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/parser/gram.y",
          "location": "lines 16504-16507",
          "sha256": "7e548b673a1e03eb3a56c5eb9ad92d8e11095fac76e14cb258ca851f58274724",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/parser/gram.y#L16504-L16507"
        },
        {
          "id": "src.call.42P20.af44057d6b02e78ceb659ea3",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/parser/gram.y",
          "location": "lines 16528-16531",
          "sha256": "7e548b673a1e03eb3a56c5eb9ad92d8e11095fac76e14cb258ca851f58274724",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/parser/gram.y#L16528-L16531"
        },
        {
          "id": "src.call.42P20.05acd1c626dd243023930f4b",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/parser/gram.y",
          "location": "lines 16534-16537",
          "sha256": "7e548b673a1e03eb3a56c5eb9ad92d8e11095fac76e14cb258ca851f58274724",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/parser/gram.y#L16534-L16537"
        },
        {
          "id": "src.call.42P20.2b557a2b5c702ff1eeb57eaa",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/parser/gram.y",
          "location": "lines 16541-16544",
          "sha256": "7e548b673a1e03eb3a56c5eb9ad92d8e11095fac76e14cb258ca851f58274724",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/parser/gram.y#L16541-L16544"
        },
        {
          "id": "src.call.42P20.fde5045d9190c4d041b74444",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/parser/parse_agg.c",
          "location": "lines 1041-1046",
          "sha256": "6e80a805fddbfc9c7e0f3047b348bf992a20c99f16ce7fee89c7067753027f72",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/parser/parse_agg.c#L1041-L1046"
        },
        {
          "id": "src.call.42P20.4d72e034c551705933ff1342",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/parser/parse_clause.c",
          "location": "lines 2790-2793",
          "sha256": "fd3fb69d6ea2ed0c220eba1d4479c0b79d8713b39a28c62cc4bf1428491e8ebd",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/parser/parse_clause.c#L2790-L2793"
        },
        {
          "id": "src.call.42P20.0221c1569253594c6c3f8117",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/parser/parse_clause.c",
          "location": "lines 2851-2855",
          "sha256": "fd3fb69d6ea2ed0c220eba1d4479c0b79d8713b39a28c62cc4bf1428491e8ebd",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/parser/parse_clause.c#L2851-L2855"
        },
        {
          "id": "src.call.42P20.ae80656ed795057fab150a08",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/parser/parse_clause.c",
          "location": "lines 2863-2867",
          "sha256": "fd3fb69d6ea2ed0c220eba1d4479c0b79d8713b39a28c62cc4bf1428491e8ebd",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/parser/parse_clause.c#L2863-L2867"
        },
        {
          "id": "src.call.42P20.51b9fa13c98768648a42bec3",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/parser/parse_clause.c",
          "location": "lines 2893-2897",
          "sha256": "fd3fb69d6ea2ed0c220eba1d4479c0b79d8713b39a28c62cc4bf1428491e8ebd",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/parser/parse_clause.c#L2893-L2897"
        },
        {
          "id": "src.call.42P20.879f1f1e1a0b390154b2b059",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/parser/parse_clause.c",
          "location": "lines 2899-2904",
          "sha256": "fd3fb69d6ea2ed0c220eba1d4479c0b79d8713b39a28c62cc4bf1428491e8ebd",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/parser/parse_clause.c#L2899-L2904"
        },
        {
          "id": "src.call.42P20.faf4767dd0e2b75c0c2f5763",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/parser/parse_clause.c",
          "location": "lines 2921-2924",
          "sha256": "fd3fb69d6ea2ed0c220eba1d4479c0b79d8713b39a28c62cc4bf1428491e8ebd",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/parser/parse_clause.c#L2921-L2924"
        },
        {
          "id": "src.call.42P20.745a6ce52598aa006a4c0b9d",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/parser/parse_clause.c",
          "location": "lines 2944-2947",
          "sha256": "fd3fb69d6ea2ed0c220eba1d4479c0b79d8713b39a28c62cc4bf1428491e8ebd",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/parser/parse_clause.c#L2944-L2947"
        },
        {
          "id": "src.context.42P20.nodeWindowAgg",
          "kind": "upstream_source",
          "source_role": "source_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/executor/nodeWindowAgg.c",
          "location": "lines 2139-2210",
          "sha256": "c365e6750bc77a89562254903d099c3e5914e001d3aae418322ccffc1d535d17",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/executor/nodeWindowAgg.c#L2139"
        },
        {
          "id": "src.calls.REL_18_6.42P20",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "statement": "42P20 is the windowing_error condition in Class 42.",
          "method": "Read fixed REL_18_6 errcodes.txt and locked facts.",
          "limits": "Identity does not enumerate all source branches or client failures.",
          "sources": [
            "src.errcodes.42P20.18.6"
          ]
        },
        {
          "id": "mechanism.selected-source-path",
          "statement": "Selected fixed 18.6 parser, parse-analysis, named-window, and executor paths reject invalid frame bounds, forbidden window placement or nesting, and illegal window inheritance. The parser also guards RANGE offset and GROUPS structural requirements.",
          "method": "Read complete fixed-source contexts around the selected report groups and the frame-offset executor guard.",
          "limits": "Representative confirmed core paths only; not exhaustive historical or extension coverage. A legal frame can still evaluate to no rows for a particular row.",
          "sources": [
            "src.call.42P20.17809e6b7f525d4ed41961ed",
            "src.call.42P20.5670c88a2f3e05b693257e49",
            "src.call.42P20.ed2f8bce483ee7cc9c9ff7e0",
            "src.call.42P20.af44057d6b02e78ceb659ea3",
            "src.call.42P20.05acd1c626dd243023930f4b",
            "src.call.42P20.2b557a2b5c702ff1eeb57eaa",
            "src.call.42P20.fde5045d9190c4d041b74444",
            "src.call.42P20.4d72e034c551705933ff1342",
            "src.call.42P20.0221c1569253594c6c3f8117",
            "src.call.42P20.ae80656ed795057fab150a08",
            "src.call.42P20.51b9fa13c98768648a42bec3",
            "src.call.42P20.879f1f1e1a0b390154b2b059",
            "src.call.42P20.faf4767dd0e2b75c0c2f5763",
            "src.call.42P20.745a6ce52598aa006a4c0b9d",
            "src.context.42P20.nodeWindowAgg"
          ]
        },
        {
          "id": "boundary.negative-offset-code",
          "statement": "The 18.6 executor assigns negative ROWS or GROUPS frame offsets to 22013 invalid_preceding_or_following_size and NULL frame offsets to 22004 null_value_not_allowed; these boundaries are separate from 42P20.",
          "method": "Read nodeWindowAgg.c calculate_frame_offsets and the fixed error-code catalogue.",
          "limits": "Boundary only; no natural runtime execution is claimed.",
          "sources": [
            "src.context.42P20.nodeWindowAgg"
          ]
        },
        {
          "id": "versions.catalogue-boundary",
          "statement": "Locked catalogue snapshots show this condition by PostgreSQL 8.4.0; source behavior here is fixed at PostgreSQL 18.6.",
          "method": "Read locked catalogue facts and definition snapshot.",
          "limits": "First observed release is a lower bound, not precise behavioral introduction.",
          "sources": [
            "src.errcodes.42P20.18.6"
          ]
        }
      ],
      "messages": [
        {
          "id": "message.variant-1",
          "sqlstate": "42P20",
          "severity_source": "ERROR",
          "primary_template": "window function calls cannot be nested",
          "detail_templates": [],
          "hint_templates": [],
          "roles": [
            {
              "role": "errmsg",
              "template": "window function calls cannot be nested"
            }
          ],
          "sources": [
            "src.call.42P20.17809e6b7f525d4ed41961ed"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        },
        {
          "id": "message.variant-2",
          "sqlstate": "42P20",
          "severity_source": "ERROR",
          "primary_template": "frame start cannot be UNBOUNDED FOLLOWING",
          "detail_templates": [],
          "hint_templates": [],
          "roles": [
            {
              "role": "errmsg",
              "template": "frame start cannot be UNBOUNDED FOLLOWING"
            }
          ],
          "sources": [
            "src.call.42P20.5670c88a2f3e05b693257e49"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        },
        {
          "id": "message.variant-3",
          "sqlstate": "42P20",
          "severity_source": "ERROR",
          "primary_template": "frame starting from following row cannot end with current row",
          "detail_templates": [],
          "hint_templates": [],
          "roles": [
            {
              "role": "errmsg",
              "template": "frame starting from following row cannot end with current row"
            }
          ],
          "sources": [
            "src.call.42P20.ed2f8bce483ee7cc9c9ff7e0"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        },
        {
          "id": "message.variant-4",
          "sqlstate": "42P20",
          "severity_source": "ERROR",
          "primary_template": "frame end cannot be UNBOUNDED PRECEDING",
          "detail_templates": [],
          "hint_templates": [],
          "roles": [
            {
              "role": "errmsg",
              "template": "frame end cannot be UNBOUNDED PRECEDING"
            }
          ],
          "sources": [
            "src.call.42P20.af44057d6b02e78ceb659ea3"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        },
        {
          "id": "message.variant-5",
          "sqlstate": "42P20",
          "severity_source": "ERROR",
          "primary_template": "frame starting from current row cannot have preceding rows",
          "detail_templates": [],
          "hint_templates": [],
          "roles": [
            {
              "role": "errmsg",
              "template": "frame starting from current row cannot have preceding rows"
            }
          ],
          "sources": [
            "src.call.42P20.05acd1c626dd243023930f4b"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        },
        {
          "id": "message.variant-6",
          "sqlstate": "42P20",
          "severity_source": "ERROR",
          "primary_template": "frame starting from following row cannot have preceding rows",
          "detail_templates": [],
          "hint_templates": [],
          "roles": [
            {
              "role": "errmsg",
              "template": "frame starting from following row cannot have preceding rows"
            }
          ],
          "sources": [
            "src.call.42P20.2b557a2b5c702ff1eeb57eaa"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        },
        {
          "id": "message.variant-7",
          "sqlstate": "42P20",
          "severity_source": "ERROR",
          "primary_template": "window functions are not allowed in %s",
          "detail_templates": [],
          "hint_templates": [],
          "roles": [
            {
              "role": "errmsg",
              "template": "window functions are not allowed in %s"
            }
          ],
          "sources": [
            "src.call.42P20.fde5045d9190c4d041b74444"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        },
        {
          "id": "message.variant-8",
          "sqlstate": "42P20",
          "severity_source": "ERROR",
          "primary_template": "window \"%s\" is already defined",
          "detail_templates": [],
          "hint_templates": [],
          "roles": [
            {
              "role": "errmsg",
              "template": "window \"%s\" is already defined"
            }
          ],
          "sources": [
            "src.call.42P20.4d72e034c551705933ff1342"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        },
        {
          "id": "message.variant-9",
          "sqlstate": "42P20",
          "severity_source": "ERROR",
          "primary_template": "cannot override PARTITION BY clause of window \"%s\"",
          "detail_templates": [],
          "hint_templates": [],
          "roles": [
            {
              "role": "errmsg",
              "template": "cannot override PARTITION BY clause of window \"%s\""
            }
          ],
          "sources": [
            "src.call.42P20.0221c1569253594c6c3f8117"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        },
        {
          "id": "message.variant-10",
          "sqlstate": "42P20",
          "severity_source": "ERROR",
          "primary_template": "cannot override ORDER BY clause of window \"%s\"",
          "detail_templates": [],
          "hint_templates": [],
          "roles": [
            {
              "role": "errmsg",
              "template": "cannot override ORDER BY clause of window \"%s\""
            }
          ],
          "sources": [
            "src.call.42P20.ae80656ed795057fab150a08"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        },
        {
          "id": "message.variant-11",
          "sqlstate": "42P20",
          "severity_source": "ERROR",
          "primary_template": "cannot copy window \"%s\" because it has a frame clause",
          "detail_templates": [],
          "hint_templates": [],
          "roles": [
            {
              "role": "errmsg",
              "template": "cannot copy window \"%s\" because it has a frame clause"
            }
          ],
          "sources": [
            "src.call.42P20.51b9fa13c98768648a42bec3"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        },
        {
          "id": "message.variant-12",
          "sqlstate": "42P20",
          "severity_source": "ERROR",
          "primary_template": "cannot copy window \"%s\" because it has a frame clause",
          "detail_templates": [],
          "hint_templates": [
            "Omit the parentheses in this OVER clause."
          ],
          "roles": [
            {
              "role": "errmsg",
              "template": "cannot copy window \"%s\" because it has a frame clause"
            },
            {
              "role": "errhint",
              "template": "Omit the parentheses in this OVER clause."
            }
          ],
          "sources": [
            "src.call.42P20.879f1f1e1a0b390154b2b059"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        },
        {
          "id": "message.variant-13",
          "sqlstate": "42P20",
          "severity_source": "ERROR",
          "primary_template": "RANGE with offset PRECEDING/FOLLOWING requires exactly one ORDER BY column",
          "detail_templates": [],
          "hint_templates": [],
          "roles": [
            {
              "role": "errmsg",
              "template": "RANGE with offset PRECEDING/FOLLOWING requires exactly one ORDER BY column"
            }
          ],
          "sources": [
            "src.call.42P20.faf4767dd0e2b75c0c2f5763"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        },
        {
          "id": "message.variant-14",
          "sqlstate": "42P20",
          "severity_source": "ERROR",
          "primary_template": "GROUPS mode requires an ORDER BY clause",
          "detail_templates": [],
          "hint_templates": [],
          "roles": [
            {
              "role": "errmsg",
              "template": "GROUPS mode requires an ORDER BY clause"
            }
          ],
          "sources": [
            "src.call.42P20.745a6ce52598aa006a4c0b9d"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        }
      ],
      "usage_evidence": [
        {
          "scope": "SQLSTATE definition and release identity",
          "status": "definition_only",
          "evidence_ids": [
            "identity.class-and-condition",
            "src.errcodes.42P20.18.6"
          ]
        },
        {
          "scope": "Selected PostgreSQL 18.6 source emitters and message roles",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "mechanism.selected-source-path"
          ]
        },
        {
          "scope": "Natural runtime execution for this batch",
          "status": "unknown",
          "evidence_ids": []
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "42P21",
      "condition_name": "collation_mismatch",
      "sources": [
        {
          "id": "src.errcodes.42P21.18.6",
          "kind": "upstream_source",
          "source_role": "condition_definition",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/errcodes.txt",
          "location": "line 352",
          "sha256": "6e8de346643ba84aa3c9c6a73360acfc7b2dfb89162c06c08ce9bf5bcd5bbcba",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/errcodes.txt#L352"
        },
        {
          "id": "src.call.42P21.69245d264e1d0e386e33036f",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/parser/parse_collate.c",
          "location": "lines 226-232",
          "sha256": "e92a01d1a7279f108ddfac1f0324f6d142b1496360ddac3dfb778564c4226940",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/parser/parse_collate.c#L226-L232"
        },
        {
          "id": "src.call.42P21.0ba27778e76c3d44b1cc79f6",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/parser/parse_collate.c",
          "location": "lines 853-858",
          "sha256": "e92a01d1a7279f108ddfac1f0324f6d142b1496360ddac3dfb778564c4226940",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/parser/parse_collate.c#L853-L858"
        },
        {
          "id": "src.call.42P21.93a028fdb350e0d054f123d8",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/parser/parse_cte.c",
          "location": "lines 394-401",
          "sha256": "908eef14ac26654fe0b9c176ef50e56ba710b7fcd8e1239b944d7c2152fc2d6b",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/parser/parse_cte.c#L394-L401"
        },
        {
          "id": "src.call.42P21.16107e45585553ed56b18241",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/tablecmds.c",
          "location": "lines 3297-3303",
          "sha256": "422dc8e833df4940755973c757e338295822ba3e4c7266c40669f49f96eb15a9",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/tablecmds.c#L3297-L3303"
        },
        {
          "id": "src.call.42P21.5fcad21fbefb1ae15acf4c73",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/tablecmds.c",
          "location": "lines 3463-3469",
          "sha256": "422dc8e833df4940755973c757e338295822ba3e4c7266c40669f49f96eb15a9",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/tablecmds.c#L3463-L3469"
        },
        {
          "id": "src.call.42P21.ef5edd918af762963c8e072c",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/tablecmds.c",
          "location": "lines 7292-7298",
          "sha256": "422dc8e833df4940755973c757e338295822ba3e4c7266c40669f49f96eb15a9",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/tablecmds.c#L7292-L7298"
        },
        {
          "id": "src.call.42P21.04a0360be247ab8ca050e826",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/tablecmds.c",
          "location": "lines 10474-10483",
          "sha256": "422dc8e833df4940755973c757e338295822ba3e4c7266c40669f49f96eb15a9",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/tablecmds.c#L10474-L10483"
        },
        {
          "id": "src.context.42P21.parse_collate.common",
          "kind": "upstream_source",
          "source_role": "source_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/parser/parse_collate.c",
          "location": "lines 208-234 and 804-835",
          "sha256": "e92a01d1a7279f108ddfac1f0324f6d142b1496360ddac3dfb778564c4226940",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/parser/parse_collate.c#L208"
        },
        {
          "id": "src.calls.REL_18_6.42P21",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "statement": "42P21 is the collation_mismatch condition in Class 42.",
          "method": "Read fixed REL_18_6 errcodes.txt and locked facts.",
          "limits": "Identity does not enumerate all source branches or client failures.",
          "sources": [
            "src.errcodes.42P21.18.6"
          ]
        },
        {
          "id": "mechanism.selected-source-path",
          "statement": "Selected fixed 18.6 paths reject explicit collation conflicts immediately, emit implicit conflicts only when a caller requires one common collation, and check recursive output, inherited or child columns, and foreign-key collation compatibility.",
          "method": "Read complete parse_collate.c derivation context and the selected resolved report groups in parse_cte.c and tablecmds.c.",
          "limits": "Representative confirmed core paths only; not exhaustive historical or extension coverage.",
          "sources": [
            "src.call.42P21.69245d264e1d0e386e33036f",
            "src.call.42P21.0ba27778e76c3d44b1cc79f6",
            "src.call.42P21.93a028fdb350e0d054f123d8",
            "src.call.42P21.16107e45585553ed56b18241",
            "src.call.42P21.5fcad21fbefb1ae15acf4c73",
            "src.call.42P21.ef5edd918af762963c8e072c",
            "src.call.42P21.04a0360be247ab8ca050e826",
            "src.context.42P21.parse_collate.common"
          ]
        },
        {
          "id": "boundary.implicit-none-ok",
          "statement": "select_common_collation(..., none_ok=true) may return InvalidOid while retaining an implicit COLLATE_CONFLICT; a later caller that requires a collation can then report a separate indeterminate-collation condition.",
          "method": "Read select_common_collation and the COLLATE_CONFLICT/COLLATE_EXPLICIT branches in fixed parse_collate.c.",
          "limits": "This is source control-flow evidence, not a natural runtime observation.",
          "sources": [
            "src.context.42P21.parse_collate.common"
          ]
        },
        {
          "id": "versions.catalogue-boundary",
          "statement": "Locked catalogue snapshots show this condition by PostgreSQL 9.1.0; source behavior here is fixed at PostgreSQL 18.6.",
          "method": "Read locked catalogue facts and definition snapshot.",
          "limits": "First observed release is a lower bound, not precise behavioral introduction.",
          "sources": [
            "src.errcodes.42P21.18.6"
          ]
        }
      ],
      "messages": [
        {
          "id": "message.variant-1",
          "sqlstate": "42P21",
          "severity_source": "ERROR",
          "primary_template": "collation mismatch between implicit collations \"%s\" and \"%s\"",
          "detail_templates": [],
          "hint_templates": [
            "You can choose the collation by applying the COLLATE clause to one or both expressions."
          ],
          "roles": [
            {
              "role": "errmsg",
              "template": "collation mismatch between implicit collations \"%s\" and \"%s\""
            },
            {
              "role": "errhint",
              "template": "You can choose the collation by applying the COLLATE clause to one or both expressions."
            }
          ],
          "sources": [
            "src.call.42P21.69245d264e1d0e386e33036f"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        },
        {
          "id": "message.variant-2",
          "sqlstate": "42P21",
          "severity_source": "ERROR",
          "primary_template": "collation mismatch between explicit collations \"%s\" and \"%s\"",
          "detail_templates": [],
          "hint_templates": [],
          "roles": [
            {
              "role": "errmsg",
              "template": "collation mismatch between explicit collations \"%s\" and \"%s\""
            }
          ],
          "sources": [
            "src.call.42P21.0ba27778e76c3d44b1cc79f6"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        },
        {
          "id": "message.variant-3",
          "sqlstate": "42P21",
          "severity_source": "ERROR",
          "primary_template": "recursive query \"%s\" column %d has collation \"%s\" in non-recursive term but collation \"%s\" overall",
          "detail_templates": [],
          "hint_templates": [
            "Use the COLLATE clause to set the collation of the non-recursive term."
          ],
          "roles": [
            {
              "role": "errmsg",
              "template": "recursive query \"%s\" column %d has collation \"%s\" in non-recursive term but collation \"%s\" overall"
            },
            {
              "role": "errhint",
              "template": "Use the COLLATE clause to set the collation of the non-recursive term."
            }
          ],
          "sources": [
            "src.call.42P21.93a028fdb350e0d054f123d8"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        },
        {
          "id": "message.variant-4",
          "sqlstate": "42P21",
          "severity_source": "ERROR",
          "primary_template": "column \"%s\" has a collation conflict",
          "detail_templates": [
            "\"%s\" versus \"%s\""
          ],
          "hint_templates": [],
          "roles": [
            {
              "role": "errmsg",
              "template": "column \"%s\" has a collation conflict"
            },
            {
              "role": "errdetail",
              "template": "\"%s\" versus \"%s\""
            }
          ],
          "sources": [
            "src.call.42P21.16107e45585553ed56b18241"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        },
        {
          "id": "message.variant-5",
          "sqlstate": "42P21",
          "severity_source": "ERROR",
          "primary_template": "inherited column \"%s\" has a collation conflict",
          "detail_templates": [
            "\"%s\" versus \"%s\""
          ],
          "hint_templates": [],
          "roles": [
            {
              "role": "errmsg",
              "template": "inherited column \"%s\" has a collation conflict"
            },
            {
              "role": "errdetail",
              "template": "\"%s\" versus \"%s\""
            }
          ],
          "sources": [
            "src.call.42P21.5fcad21fbefb1ae15acf4c73"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        },
        {
          "id": "message.variant-6",
          "sqlstate": "42P21",
          "severity_source": "ERROR",
          "primary_template": "child table \"%s\" has different collation for column \"%s\"",
          "detail_templates": [
            "\"%s\" versus \"%s\""
          ],
          "hint_templates": [],
          "roles": [
            {
              "role": "errmsg",
              "template": "child table \"%s\" has different collation for column \"%s\""
            },
            {
              "role": "errdetail",
              "template": "\"%s\" versus \"%s\""
            }
          ],
          "sources": [
            "src.call.42P21.ef5edd918af762963c8e072c"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        },
        {
          "id": "message.variant-7",
          "sqlstate": "42P21",
          "severity_source": "ERROR",
          "primary_template": "foreign key constraint \"%s\" cannot be implemented",
          "detail_templates": [
            "Key columns \"%s\" of the referencing table and \"%s\" of the referenced table have incompatible collations: \"%s\" and \"%s\".  If either collation is nondeterministic, then both collations have to be the same."
          ],
          "hint_templates": [],
          "roles": [
            {
              "role": "errmsg",
              "template": "foreign key constraint \"%s\" cannot be implemented"
            },
            {
              "role": "errdetail",
              "template": "Key columns \"%s\" of the referencing table and \"%s\" of the referenced table have incompatible collations: \"%s\" and \"%s\".  If either collation is nondeterministic, then both collations have to be the same."
            }
          ],
          "sources": [
            "src.call.42P21.04a0360be247ab8ca050e826"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        }
      ],
      "usage_evidence": [
        {
          "scope": "SQLSTATE definition and release identity",
          "status": "definition_only",
          "evidence_ids": [
            "identity.class-and-condition",
            "src.errcodes.42P21.18.6"
          ]
        },
        {
          "scope": "Selected PostgreSQL 18.6 source emitters and message roles",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "mechanism.selected-source-path"
          ]
        },
        {
          "scope": "Natural runtime execution for this batch",
          "status": "unknown",
          "evidence_ids": []
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "42P22",
      "condition_name": "indeterminate_collation",
      "sources": [
        {
          "id": "src.errcodes.42P22.18.6",
          "kind": "upstream_source",
          "source_role": "condition_definition",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/errcodes.txt",
          "location": "line 353",
          "sha256": "6e8de346643ba84aa3c9c6a73360acfc7b2dfb89162c06c08ce9bf5bcd5bbcba",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/errcodes.txt#L353"
        },
        {
          "id": "src.call.42P22.9663977b60d9074ca1246b2e",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/access/hash/hashfunc.c",
          "location": "lines 278-281",
          "sha256": "ada1fcc9863e6f9c91b4aed90c37cbc50717a74a1ebdd050c3eb33db46f24f22",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/hash/hashfunc.c#L278-L281"
        },
        {
          "id": "src.call.42P22.de5cfc36b17b669d27e71821",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/createas.c",
          "location": "lines 198-203",
          "sha256": "f484080c0ec3d303040d94c15817d7dd86aed8e716afd81b45718d4b4443e9c7",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/createas.c#L198-L203"
        },
        {
          "id": "src.call.42P22.9001b972a28a8028eebe7eae",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/indexcmds.c",
          "location": "lines 2105-2108",
          "sha256": "0bdae365f207ab82865806c5983cac94c5c062e7a61ab7c883ccb7e2015fad36",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/indexcmds.c#L2105-L2108"
        },
        {
          "id": "src.call.42P22.b8ebf0f4bd61f9bcbbfdb513",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/tablecmds.c",
          "location": "lines 20041-20044",
          "sha256": "422dc8e833df4940755973c757e338295822ba3e4c7266c40669f49f96eb15a9",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/tablecmds.c#L20041-L20044"
        },
        {
          "id": "src.call.42P22.fcf0f384dd027c687389c530",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/view.c",
          "location": "lines 76-80",
          "sha256": "53c9efccdefa62fa522cd16315ad925779da1bd76a92324df3ba340c967d953c",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/view.c#L76-L80"
        },
        {
          "id": "src.call.42P22.b60a368090edbb3ad28c2b74",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/regex/regc_pg_locale.c",
          "location": "lines 239-242",
          "sha256": "3dab816f911f623d39966e5b3a8f1d82d4f2ff8b697496d754aba52848c54c4e",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/regex/regc_pg_locale.c#L239-L242"
        },
        {
          "id": "src.call.42P22.584d77b09f81511c429fd3bc",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/formatting.c",
          "location": "lines 1654-1658",
          "sha256": "a22651cc223e93c1879420004027325579fc79a3ba8684408496149164a2220c",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/formatting.c#L1654-L1658"
        },
        {
          "id": "src.call.42P22.c024a0dd3694f6694d2b94fc",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/like.c",
          "location": "lines 160-163",
          "sha256": "7665cf5399a9090f2bd864c7442ae22af68d2bc9368bf06b8ebef48613a1ed08",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/like.c#L160-L163"
        },
        {
          "id": "src.call.42P22.3baebb248e633d9c8e75f53f",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/like.c",
          "location": "lines 191-194",
          "sha256": "7665cf5399a9090f2bd864c7442ae22af68d2bc9368bf06b8ebef48613a1ed08",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/like.c#L191-L194"
        },
        {
          "id": "src.call.42P22.0c130e4570c3138a788409e1",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/varchar.c",
          "location": "lines 735-738",
          "sha256": "aee29b2c745b34a7299d158b8e8c60b2c6c4900a5e3751fd211acea81b431f42",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/varchar.c#L735-L738"
        },
        {
          "id": "src.calls.REL_18_6.42P22",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "statement": "42P22 is the indeterminate_collation condition in Class 42.",
          "method": "Read fixed REL_18_6 errcodes.txt and locked facts.",
          "limits": "Identity does not enumerate all source branches or client failures.",
          "sources": [
            "src.errcodes.42P22.18.6"
          ]
        },
        {
          "id": "mechanism.selected-source-path",
          "statement": "Selected fixed 18.6 callers raise 42P22 when a required operation has no determinate collation: string hashing or comparison, index or partition expressions, CTAS or view output columns, regular expressions, LIKE or ILIKE, and formatting functions.",
          "method": "Read selected resolved report groups and the surrounding fixed caller guards, preserving each caller-specific primary and COLLATE hint.",
          "limits": "Representative confirmed core paths only; not exhaustive historical or extension coverage.",
          "sources": [
            "src.call.42P22.9663977b60d9074ca1246b2e",
            "src.call.42P22.de5cfc36b17b669d27e71821",
            "src.call.42P22.9001b972a28a8028eebe7eae",
            "src.call.42P22.b8ebf0f4bd61f9bcbbfdb513",
            "src.call.42P22.fcf0f384dd027c687389c530",
            "src.call.42P22.b60a368090edbb3ad28c2b74",
            "src.call.42P22.584d77b09f81511c429fd3bc",
            "src.call.42P22.c024a0dd3694f6694d2b94fc",
            "src.call.42P22.3baebb248e633d9c8e75f53f",
            "src.call.42P22.0c130e4570c3138a788409e1"
          ]
        },
        {
          "id": "boundary.caller-specific-hint",
          "statement": "The fixed callers attach the same explicit-COLLATE hint while naming the operation that lacks a usable collation; the primary message determines which expression or definition boundary to inspect.",
          "method": "Compare the message roles across the selected hash, DDL, regex, pattern, comparison, and formatting report groups.",
          "limits": "Selected message-role comparison only; no runtime execution is claimed.",
          "sources": [
            "src.call.42P22.9663977b60d9074ca1246b2e",
            "src.call.42P22.de5cfc36b17b669d27e71821",
            "src.call.42P22.9001b972a28a8028eebe7eae",
            "src.call.42P22.b8ebf0f4bd61f9bcbbfdb513",
            "src.call.42P22.fcf0f384dd027c687389c530",
            "src.call.42P22.b60a368090edbb3ad28c2b74",
            "src.call.42P22.584d77b09f81511c429fd3bc",
            "src.call.42P22.c024a0dd3694f6694d2b94fc",
            "src.call.42P22.3baebb248e633d9c8e75f53f",
            "src.call.42P22.0c130e4570c3138a788409e1"
          ]
        },
        {
          "id": "versions.catalogue-boundary",
          "statement": "Locked catalogue snapshots show this condition by PostgreSQL 9.1.0; source behavior here is fixed at PostgreSQL 18.6.",
          "method": "Read locked catalogue facts and definition snapshot.",
          "limits": "First observed release is a lower bound, not precise behavioral introduction.",
          "sources": [
            "src.errcodes.42P22.18.6"
          ]
        }
      ],
      "messages": [
        {
          "id": "message.variant-1",
          "sqlstate": "42P22",
          "severity_source": "ERROR",
          "primary_template": "could not determine which collation to use for string hashing",
          "detail_templates": [],
          "hint_templates": [
            "Use the COLLATE clause to set the collation explicitly."
          ],
          "roles": [
            {
              "role": "errmsg",
              "template": "could not determine which collation to use for string hashing"
            },
            {
              "role": "errhint",
              "template": "Use the COLLATE clause to set the collation explicitly."
            }
          ],
          "sources": [
            "src.call.42P22.9663977b60d9074ca1246b2e"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        },
        {
          "id": "message.variant-2",
          "sqlstate": "42P22",
          "severity_source": "ERROR",
          "primary_template": "no collation was derived for column \"%s\" with collatable type %s",
          "detail_templates": [],
          "hint_templates": [
            "Use the COLLATE clause to set the collation explicitly."
          ],
          "roles": [
            {
              "role": "errmsg",
              "template": "no collation was derived for column \"%s\" with collatable type %s"
            },
            {
              "role": "errhint",
              "template": "Use the COLLATE clause to set the collation explicitly."
            }
          ],
          "sources": [
            "src.call.42P22.de5cfc36b17b669d27e71821"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        },
        {
          "id": "message.variant-3",
          "sqlstate": "42P22",
          "severity_source": "ERROR",
          "primary_template": "could not determine which collation to use for index expression",
          "detail_templates": [],
          "hint_templates": [
            "Use the COLLATE clause to set the collation explicitly."
          ],
          "roles": [
            {
              "role": "errmsg",
              "template": "could not determine which collation to use for index expression"
            },
            {
              "role": "errhint",
              "template": "Use the COLLATE clause to set the collation explicitly."
            }
          ],
          "sources": [
            "src.call.42P22.9001b972a28a8028eebe7eae"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        },
        {
          "id": "message.variant-4",
          "sqlstate": "42P22",
          "severity_source": "ERROR",
          "primary_template": "could not determine which collation to use for partition expression",
          "detail_templates": [],
          "hint_templates": [
            "Use the COLLATE clause to set the collation explicitly."
          ],
          "roles": [
            {
              "role": "errmsg",
              "template": "could not determine which collation to use for partition expression"
            },
            {
              "role": "errhint",
              "template": "Use the COLLATE clause to set the collation explicitly."
            }
          ],
          "sources": [
            "src.call.42P22.b8ebf0f4bd61f9bcbbfdb513"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        },
        {
          "id": "message.variant-5",
          "sqlstate": "42P22",
          "severity_source": "ERROR",
          "primary_template": "could not determine which collation to use for view column \"%s\"",
          "detail_templates": [],
          "hint_templates": [
            "Use the COLLATE clause to set the collation explicitly."
          ],
          "roles": [
            {
              "role": "errmsg",
              "template": "could not determine which collation to use for view column \"%s\""
            },
            {
              "role": "errhint",
              "template": "Use the COLLATE clause to set the collation explicitly."
            }
          ],
          "sources": [
            "src.call.42P22.fcf0f384dd027c687389c530"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        },
        {
          "id": "message.variant-6",
          "sqlstate": "42P22",
          "severity_source": "ERROR",
          "primary_template": "could not determine which collation to use for regular expression",
          "detail_templates": [],
          "hint_templates": [
            "Use the COLLATE clause to set the collation explicitly."
          ],
          "roles": [
            {
              "role": "errmsg",
              "template": "could not determine which collation to use for regular expression"
            },
            {
              "role": "errhint",
              "template": "Use the COLLATE clause to set the collation explicitly."
            }
          ],
          "sources": [
            "src.call.42P22.b60a368090edbb3ad28c2b74"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        },
        {
          "id": "message.variant-7",
          "sqlstate": "42P22",
          "severity_source": "ERROR",
          "primary_template": "could not determine which collation to use for %s function",
          "detail_templates": [],
          "hint_templates": [
            "Use the COLLATE clause to set the collation explicitly."
          ],
          "roles": [
            {
              "role": "errmsg",
              "template": "could not determine which collation to use for %s function"
            },
            {
              "role": "errhint",
              "template": "Use the COLLATE clause to set the collation explicitly."
            }
          ],
          "sources": [
            "src.call.42P22.584d77b09f81511c429fd3bc"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        },
        {
          "id": "message.variant-8",
          "sqlstate": "42P22",
          "severity_source": "ERROR",
          "primary_template": "could not determine which collation to use for LIKE",
          "detail_templates": [],
          "hint_templates": [
            "Use the COLLATE clause to set the collation explicitly."
          ],
          "roles": [
            {
              "role": "errmsg",
              "template": "could not determine which collation to use for LIKE"
            },
            {
              "role": "errhint",
              "template": "Use the COLLATE clause to set the collation explicitly."
            }
          ],
          "sources": [
            "src.call.42P22.c024a0dd3694f6694d2b94fc"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        },
        {
          "id": "message.variant-9",
          "sqlstate": "42P22",
          "severity_source": "ERROR",
          "primary_template": "could not determine which collation to use for ILIKE",
          "detail_templates": [],
          "hint_templates": [
            "Use the COLLATE clause to set the collation explicitly."
          ],
          "roles": [
            {
              "role": "errmsg",
              "template": "could not determine which collation to use for ILIKE"
            },
            {
              "role": "errhint",
              "template": "Use the COLLATE clause to set the collation explicitly."
            }
          ],
          "sources": [
            "src.call.42P22.3baebb248e633d9c8e75f53f"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        },
        {
          "id": "message.variant-10",
          "sqlstate": "42P22",
          "severity_source": "ERROR",
          "primary_template": "could not determine which collation to use for string comparison",
          "detail_templates": [],
          "hint_templates": [
            "Use the COLLATE clause to set the collation explicitly."
          ],
          "roles": [
            {
              "role": "errmsg",
              "template": "could not determine which collation to use for string comparison"
            },
            {
              "role": "errhint",
              "template": "Use the COLLATE clause to set the collation explicitly."
            }
          ],
          "sources": [
            "src.call.42P22.0c130e4570c3138a788409e1"
          ],
          "limits": "Placeholders remain dynamic source fields; no concrete runtime value is claimed."
        }
      ],
      "usage_evidence": [
        {
          "scope": "SQLSTATE definition and release identity",
          "status": "definition_only",
          "evidence_ids": [
            "identity.class-and-condition",
            "src.errcodes.42P22.18.6"
          ]
        },
        {
          "scope": "Selected PostgreSQL 18.6 source emitters and message roles",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "mechanism.selected-source-path"
          ]
        },
        {
          "scope": "Natural runtime execution for this batch",
          "status": "unknown",
          "evidence_ids": []
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "44000",
      "condition_name": "with_check_option_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"
        },
        {
          "id": "src.execMain.18.6",
          "kind": "upstream_source",
          "source_role": "source_path",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/executor/execMain.c",
          "sha256": "33b97337fa23a649c5e7a092e1bd405a54e8503529236c62c9d5bb93a1774a8d",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/executor/execMain.c#L2322-L2327"
        },
        {
          "id": "src.execMain.10.23",
          "kind": "upstream_source",
          "source_role": "source_path",
          "tag": "REL_10_23",
          "commit": "02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4",
          "path": "src/backend/executor/execMain.c",
          "sha256": "386d09f7e964ebc426a554cf51ac7cb505c67cc95b971ee7acad1a6e0a9d0c1a",
          "url": "https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/executor/execMain.c#L2178-L2183"
        },
        {
          "id": "doc.create-view.18.6",
          "kind": "upstream_source",
          "source_role": "official_documentation",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "doc/src/sgml/ref/create_view.sgml",
          "sha256": "d2c2aae6e102594deaa2f5aabc7910cdaada11d714e49e818511a57bb21fec57",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/doc/src/sgml/ref/create_view.sgml",
          "docs_url": "https://www.postgresql.org/docs/18/sql-createview.html"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "44000 is the with_check_option_violation condition in Class 44.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes.txt row and macro mapping.",
          "limits": "This is a view write invariant, not a table CHECK constraint code."
        },
        {
          "id": "view-path",
          "statement": "ExecWithCheckOptions emits new row violates check option for view \"%s\" with a dynamic failing-row DETAIL.",
          "sources": [
            "src.execMain.18.6",
            "src.calls.REL_18_6"
          ],
          "method": "Trace ERRCODE_WITH_CHECK_OPTION_VIOLATION in execMain.c.",
          "limits": "The row representation and view name are dynamic."
        },
        {
          "id": "three-valued-check",
          "statement": "ExecWithCheckOptions treats a view check qual that evaluates to NULL or FALSE as a violation because the new tuple would not be visible through the view.",
          "sources": [
            "src.execMain.18.6"
          ],
          "method": "Read the fixed ExecWithCheckOptions comment and branch before the ERRCODE_WITH_CHECK_OPTION_VIOLATION report.",
          "limits": "This describes the executor check; the selected case uses a directly updatable view."
        },
        {
          "id": "detail-permission",
          "statement": "The failing-row DETAIL for a view check option is conditional on permissions that allow the row description.",
          "sources": [
            "src.execMain.18.6"
          ],
          "method": "Trace the WCO_VIEW_CHECK permission guard before ExecBuildSlotValueDescription.",
          "limits": "DETAIL may be absent even when the check ran."
        },
        {
          "id": "scope-and-trigger-boundary",
          "statement": "LOCAL checks only conditions defined directly in the current view; ordinary underlying-view conditions are not checked unless those base views also specify CHECK OPTION. CASCADED checks the current view and all underlying base-view conditions. CHECK OPTION is supported only on automatically updatable views without an INSTEAD OF trigger or rule; a trigger-updatable base view stops a cascade, and an INSTEAD rule rewrite can cause all checks to be ignored.",
          "sources": [
            "doc.create-view.18.6"
          ],
          "method": "Read the fixed CREATE VIEW documentation and compare the selected case definition.",
          "limits": "The selected runtime case is a direct automatically updatable view; it does not exercise nested views, a trigger-updatable base, or an INSTEAD rewrite."
        },
        {
          "id": "repair",
          "statement": "A write through a view with WITH CHECK OPTION must satisfy the view predicate; correcting the row preserves the invariant.",
          "sources": [
            "doc.create-view.18.6"
          ],
          "method": "Use the shared visible=true/false view case.",
          "limits": "LOCAL/CASCADED view composition and UPDATE paths can add further predicates."
        },
        {
          "id": "runtime",
          "statement": "The selected 44000 case passed on PostgreSQL 18.6 and 10.21 with the structured SQLSTATE, transaction-state, and repair assertions recorded in the runtime entries.",
          "sources": [
            "runtime.44000-batch34-20260909.latest",
            "runtime.44000-batch34-20260909.pg10"
          ],
          "method": "Read the selected runner summaries and raw outputs tied to the shared snippet registry.",
          "limits": "This covers the selected directly updatable view path; it does not test nested LOCAL/CASCADED views or INSTEAD OF triggers."
        }
      ],
      "messages": [
        {
          "id": "message.view-check",
          "sqlstate": "44000",
          "primary_template": "new row violates check option for view \"%s\"",
          "detail_template": "Failing row contains %s.",
          "severity_source": "ERROR",
          "sources": [
            "src.execMain.18.6"
          ],
          "limits": "Both the view identifier and row rendering are dynamic."
        }
      ],
      "usage_evidence": [
        {
          "scope": "44000-runtime",
          "status": "observed_runtime",
          "evidence_ids": [
            "runtime",
            "runtime.44000-batch34-20260909.latest",
            "runtime.44000-batch34-20260909.pg10"
          ]
        },
        {
          "scope": "condition-and-source-paths",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "identity",
            "view-path",
            "repair"
          ]
        }
      ],
      "runtime": [
        {
          "id": "runtime.44000-batch34-20260909.latest",
          "run_id": "44000-batch34-20260909",
          "target": "latest",
          "server_version": "18.6 (Homebrew)",
          "status": "passed",
          "cases": [
            "view_check_option_recovery"
          ],
          "summary_sha256": "3d674692d53f36522eb3c818be06c41fc9b4386bb7dd37e65f8410a88629162f",
          "raw_sha256": "5b79b8c867bb95b70d22cff85bc3893ea16034731fb8a207c19b2910276efaa0",
          "case_manifest": {
            "sha256": "5512b051ff6459a4e3e6b5c35dcd1f30b1fff6f96d2513634382573954224f5a"
          },
          "observed": {
            "sqlstate": "44000",
            "primary": "new row violates check option for view \"visible_items\"",
            "severity": "ERROR",
            "statuses": {
              "after_error": "IDLE",
              "after_valid": "IDLE"
            },
            "repair": {
              "rows": [
                [
                  1,
                  true,
                  "visible"
                ]
              ]
            },
            "connection_autocommit": true
          },
          "snippet_registry": {
            "sha256": "7b227bca904c860388c6cf1f5b7f551412b4d67832fb91aaa682f4126072e41c"
          }
        },
        {
          "id": "runtime.44000-batch34-20260909.pg10",
          "run_id": "44000-batch34-20260909",
          "target": "pg10",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "status": "passed",
          "cases": [
            "view_check_option_recovery"
          ],
          "summary_sha256": "24148b05266cf9fe1cda71058dd89ac856f1c4020c886b3a5ab33a51186377e8",
          "raw_sha256": "baf0278700f3e0f15b3b12de0f97bdf31173c6e9470a12b198ee7e696568998a",
          "case_manifest": {
            "sha256": "5512b051ff6459a4e3e6b5c35dcd1f30b1fff6f96d2513634382573954224f5a"
          },
          "observed": {
            "sqlstate": "44000",
            "primary": "new row violates check option for view \"visible_items\"",
            "severity": "ERROR",
            "statuses": {
              "after_error": "IDLE",
              "after_valid": "IDLE"
            },
            "repair": {
              "rows": [
                [
                  1,
                  true,
                  "visible"
                ]
              ]
            },
            "connection_autocommit": true
          },
          "snippet_registry": {
            "sha256": "7b227bca904c860388c6cf1f5b7f551412b4d67832fb91aaa682f4126072e41c"
          }
        }
      ]
    },
    {
      "sqlstate": "53000",
      "condition_name": "insufficient_resources",
      "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#L407",
          "lines": "407"
        },
        {
          "id": "src.path.0",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "contrib/pg_prewarm/autoprewarm.c",
          "sha256": "cd1e194620b6150afe1f014d8acb7126cffbd0a821b97eb493862574ef44518d",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/contrib/pg_prewarm/autoprewarm.c#L943",
          "lines": "943-981"
        },
        {
          "id": "src.path.1",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/storage/buffer/localbuf.c",
          "sha256": "aa2214374b99c7f7cf43cd10541a9e9bbccd87a2699f3c9f086d9c895548dbc5",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/storage/buffer/localbuf.c#L270",
          "lines": "270-272"
        },
        {
          "id": "src.path.2",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/storage/file/fd.c",
          "sha256": "2555a359cc0c98650beb5acb69de49412b15fa1c29944fbc69c158464db78447",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/storage/file/fd.c#L1072",
          "lines": "1072-1078"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "53000 is insufficient_resources in SQLSTATE Class 53.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read fixed definition."
        },
        {
          "id": "resolved-paths",
          "statement": "The cited PostgreSQL 18.6 source paths support the representative resource and object-state mechanisms described.",
          "sources": [
            "src.path.0",
            "src.path.1",
            "src.path.2"
          ],
          "method": "Read complete fixed source contexts.",
          "limits": "Source confirmation is not natural runtime."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 53000 from 7.4; that boundary does not prove exact implementation introduction.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue boundary."
        }
      ],
      "messages": [
        {
          "id": "message.0",
          "sqlstate": "53000",
          "primary_template": "could not register background process",
          "severity_source": "ERROR",
          "sources": [
            "src.path.0"
          ]
        },
        {
          "id": "message.1",
          "sqlstate": "53000",
          "primary_template": "no empty local buffer available",
          "severity_source": "ERROR",
          "sources": [
            "src.path.1"
          ]
        },
        {
          "id": "message.2",
          "sqlstate": "53000",
          "primary_template": "insufficient file descriptors available to start server process",
          "severity_source": "FATAL",
          "sources": [
            "src.path.2"
          ],
          "detail_template": "System allows %d, server needs at least %d, %d files are already open."
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "resolved-paths"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "resolved-paths"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "53100",
      "condition_name": "disk_full",
      "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#L408",
          "lines": "408"
        },
        {
          "id": "src.path.0",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/backup/basebackup_server.c",
          "sha256": "1447d7223926f903d27744605f9caec8a610d78a9f7a7864bb3afb6b3073ac19",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/backup/basebackup_server.c#L177",
          "lines": "177-182"
        },
        {
          "id": "src.path.1",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/storage/smgr/md.c",
          "sha256": "c7e885c50b381337b8b8624bfc8effbd3abba7aa95a290083996354926ec9f69",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/storage/smgr/md.c#L521",
          "lines": "521-526"
        },
        {
          "id": "src.path.2",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/storage/smgr/md.c",
          "sha256": "c7e885c50b381337b8b8624bfc8effbd3abba7aa95a290083996354926ec9f69",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/storage/smgr/md.c#L512",
          "lines": "512-526"
        },
        {
          "id": "src.path.3",
          "kind": "upstream_source",
          "source_role": "errno_helper",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/error/elog.c",
          "sha256": "766d30a426ba1d9597657bd46fb890da3e37e4ae53a83d1245bf082ed9433c33",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/error/elog.c#L868",
          "lines": "868-938"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "53100 is disk_full in SQLSTATE Class 53.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read fixed definition."
        },
        {
          "id": "resolved-paths",
          "statement": "The cited PostgreSQL 18.6 source paths support the representative resource and object-state mechanisms described.",
          "sources": [
            "src.path.0",
            "src.path.1",
            "src.path.2",
            "src.path.3"
          ],
          "method": "Read complete fixed source contexts.",
          "limits": "Source confirmation is not natural runtime."
        },
        {
          "id": "errno-boundary",
          "statement": "The relation write path sends a negative FileWrite result through errcode_for_file_access(), while a short write explicitly uses ERRCODE_DISK_FULL; these are separate source branches.",
          "sources": [
            "src.path.2"
          ],
          "method": "Read the complete mdextend error branch."
        },
        {
          "id": "errno-map",
          "statement": "In the fixed errno helper, ENOSPC maps to ERRCODE_DISK_FULL; EFBIG and EDQUOT are not listed and therefore use the helper's default internal-error mapping.",
          "sources": [
            "src.path.3"
          ],
          "method": "Read the complete saved-errno switch, including its default branch.",
          "limits": "This records the PostgreSQL helper mapping; it does not claim that every operating-system write failure presents this SQLSTATE."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 53100 from 7.4; that boundary does not prove exact implementation introduction.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue boundary."
        }
      ],
      "messages": [
        {
          "id": "message.0",
          "sqlstate": "53100",
          "primary_template": "could not write file \"%s\": wrote only %d of %d bytes at offset %lld",
          "severity_source": "ERROR",
          "sources": [
            "src.path.0"
          ],
          "hint_template": "Check free disk space."
        },
        {
          "id": "message.1",
          "sqlstate": "53100",
          "primary_template": "could not extend file \"%s\": wrote only %d of %d bytes at block %u",
          "severity_source": "ERROR",
          "sources": [
            "src.path.1"
          ],
          "hint_template": "Check free disk space."
        },
        {
          "id": "message.2",
          "primary_template": "could not extend file \"%s\": %m",
          "severity_source": "ERROR",
          "sources": [
            "src.path.2",
            "src.path.3"
          ],
          "limits": "The source selects errcode_for_file_access() from errno; this template is not itself proof that the resulting SQLSTATE is 53100."
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "resolved-paths",
            "errno-map"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "resolved-paths"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "53200",
      "condition_name": "out_of_memory",
      "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#L409",
          "lines": "409"
        },
        {
          "id": "src.path.0",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "contrib/pg_stat_statements/pg_stat_statements.c",
          "sha256": "5a732a7c5b124ba98f2e3939c2458b85757c49fdb7846276f6b96ceeb833e74b",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/contrib/pg_stat_statements/pg_stat_statements.c#L2346",
          "lines": "2346-2350"
        },
        {
          "id": "src.path.1",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "contrib/pg_walinspect/pg_walinspect.c",
          "sha256": "bd6adbfd21eb9287d9e2d18ca19028d75ad00f8543256c80071e0c357e703b9e",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/contrib/pg_walinspect/pg_walinspect.c#L121",
          "lines": "121-124"
        },
        {
          "id": "src.path.2",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/access/transam/twophase.c",
          "sha256": "52e4fc67a5c3555ca8c1f75f5e12306a93bae17ecb49fd6ef6c5136ddc0db96a",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/transam/twophase.c#L1417",
          "lines": "1417-1420"
        },
        {
          "id": "src.path.3",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/mmgr/aset.c",
          "sha256": "ae1f091f78f913a224c3659abc0e7798603dff348fe21d23d44a8789c5fd3098",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/mmgr/aset.c#L444",
          "lines": "444-453"
        },
        {
          "id": "src.path.4",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/mmgr/mcxt.c",
          "sha256": "19824d40a1b2b7f533fd7863c91117a33c0879bf776fc7fbe495f603e032344e",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/mmgr/mcxt.c#L1157",
          "lines": "1157-1167"
        },
        {
          "id": "src.path.5",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/storage/ipc/shmem.c",
          "sha256": "27ee1cdd55975fbe57607d2236d117ab50d8135cca5622af6f03ccd768bb5680",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/storage/ipc/shmem.c#L151",
          "lines": "151-162"
        },
        {
          "id": "src.path.6",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/storage/lmgr/lock.c",
          "sha256": "e7f43560bf6a8417ff46991238084b6edeb44a995b87670ed1f7fa6f1515276b",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/storage/lmgr/lock.c#L2957",
          "lines": "2957-2969"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "tag": "REL_18_6",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "53200 is out_of_memory in SQLSTATE Class 53.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read fixed definition."
        },
        {
          "id": "resolved-paths",
          "statement": "The cited PostgreSQL 18.6 source paths support the representative resource and object-state mechanisms described.",
          "sources": [
            "src.path.0",
            "src.path.1",
            "src.path.2",
            "src.path.3",
            "src.path.4",
            "src.path.5",
            "src.path.6"
          ],
          "method": "Read complete fixed source contexts.",
          "limits": "Source confirmation is not natural runtime."
        },
        {
          "id": "allocator-and-capacity",
          "statement": "Core memory-context allocation uses 53200 for allocator failure, shared-memory allocation uses an out-of-shared-memory primary, and lock-table exhaustion can add a max_locks_per_transaction hint; these contexts are distinct from extension file/WAL allocation details.",
          "sources": [
            "src.path.3",
            "src.path.4",
            "src.path.5",
            "src.path.6"
          ],
          "method": "Read the complete fixed allocator, shared-memory, and lock-table guards."
        },
        {
          "id": "message-roles",
          "statement": "The source report groups keep out of memory as the primary and the operation-specific allocation text as DETAIL; the pg_stat_statements group is LOG while the WAL reader groups are ERROR.",
          "sources": [
            "src.calls.REL_18_6"
          ],
          "method": "Read fixed report groups and complete source contexts."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 53200 from 7.4; that boundary does not prove exact implementation introduction.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue boundary."
        }
      ],
      "messages": [
        {
          "id": "message.0",
          "sqlstate": "53200",
          "primary_template": "out of memory",
          "severity_source": "LOG",
          "detail_template": "Could not allocate enough memory to read file \"%s\".",
          "sources": [
            "src.path.0"
          ]
        },
        {
          "id": "message.1",
          "sqlstate": "53200",
          "primary_template": "out of memory",
          "severity_source": "ERROR",
          "detail_template": "Failed while allocating a WAL reading processor.",
          "sources": [
            "src.path.1"
          ]
        },
        {
          "id": "message.2",
          "sqlstate": "53200",
          "primary_template": "out of memory",
          "severity_source": "ERROR",
          "detail_template": "Failed while allocating a WAL reading processor.",
          "sources": [
            "src.path.2"
          ]
        },
        {
          "id": "message.3",
          "sqlstate": "53200",
          "primary_template": "out of memory",
          "severity_source": "ERROR",
          "detail_template": "Failed while creating memory context \"%s\".",
          "sources": [
            "src.path.3"
          ]
        },
        {
          "id": "message.4",
          "sqlstate": "53200",
          "primary_template": "out of memory",
          "severity_source": "ERROR",
          "detail_template": "Failed on request of size %zu in memory context \"%s\".",
          "sources": [
            "src.path.4"
          ]
        },
        {
          "id": "message.5",
          "sqlstate": "53200",
          "primary_template": "out of shared memory (%zu bytes requested)",
          "severity_source": "ERROR",
          "sources": [
            "src.path.5"
          ]
        },
        {
          "id": "message.6",
          "sqlstate": "53200",
          "primary_template": "out of shared memory",
          "severity_source": "ERROR",
          "hint_template": "You might need to increase \"max_locks_per_transaction\".",
          "sources": [
            "src.path.6"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "resolved-paths",
            "allocator-and-capacity",
            "message-roles"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "resolved-paths"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "53300",
      "condition_name": "too_many_connections",
      "sources": [
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "src.errcodes.18.6",
          "location": "lines 407-414",
          "path": "src/backend/utils/errcodes.txt",
          "sha256": "6e8de346643ba84aa3c9c6a73360acfc7b2dfb89162c06c08ce9bf5bcd5bbcba",
          "tag": "REL_18_6",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/errcodes.txt"
        },
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "src.backend-startup.18.6",
          "location": "lines 340-344",
          "path": "src/backend/tcop/backend_startup.c",
          "sha256": "5516f3d6d83ae6fc66ca6bad9a7cea3cd2f8de53f0597c26baa2bd224ac270bb",
          "tag": "REL_18_6",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/tcop/backend_startup.c#L340-L344"
        },
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "src.miscinit.18.6",
          "location": "lines 868-880",
          "path": "src/backend/utils/init/miscinit.c",
          "sha256": "54bdb859c143a6c70d86067ccf2e124f59aa0852e5705bb653652e41a60af39a",
          "tag": "REL_18_6",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/init/miscinit.c#L868-L880"
        },
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "doc.protocol.18",
          "location": "ErrorResponse fields",
          "path": "doc/src/sgml/protocol.sgml",
          "sha256": "745339e07ebbc2bb67d98b258e25772ada644ef26011e3cd6b3fcbb435235f89",
          "tag": "PG18-docs",
          "url": "https://www.postgresql.org/docs/18/protocol-error-fields.html"
        },
        {
          "id": "manifest.53300",
          "kind": "local_artifact",
          "location": "snapshots and definition_blobs entries for the 53300 definition",
          "sha256": "1727a275f336988ff96b4f9990a4ca253080f73fc5d316e7def165c8cf3708a8"
        },
        {
          "id": "case-manifest.53300",
          "kind": "local_artifact",
          "location": "role_connection_limit",
          "sha256": "631e5ca3a0056fe00b6d1495ddbe4a7880a5d4c09b1520c2ee972859d9174d4d"
        },
        {
          "id": "snippet-registry.53300.final",
          "kind": "local_artifact",
          "location": "role_connection_limit ordered SQL",
          "sha256": "a83d740917ef53c3bf24494c12fe87f4c9cbb38f1e23c17991f2431ba13fa243"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "limits": "Directory identity does not identify whether a role, database, or server-wide capacity limit caused an occurrence.",
          "method": "Read the Class 53 section and 53300 row in the frozen errcodes.txt snapshot.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "statement": "53300 is the too_many_connections condition in Class 53 insufficient_resources."
        },
        {
          "id": "mechanism.role-connection-limit",
          "limits": "This source path is role-specific; other capacity paths can use 53300 with different messages.",
          "method": "Read the role connection-limit branch, explicit ERRCODE_TOO_MANY_CONNECTIONS, message construction, and concurrency comment.",
          "sources": [
            "src.miscinit.18.6"
          ],
          "statement": "During backend startup, a non-superuser role whose CountUserBackends result exceeds rolconnlimit receives FATAL SQLSTATE 53300 with too many connections for role \"%s\"; the source documents the count check as approximate under a race."
        },
        {
          "id": "mechanism.server-capacity",
          "limits": "This is a source-confirmed server-wide startup gate; it is not covered by the role-limit runtime case and does not classify database or operating-system resource failures.",
          "method": "Read the CAC_TOOMANY backend-startup branch in the fixed source.",
          "sources": [
            "src.backend-startup.18.6"
          ],
          "statement": "The server-wide startup capacity gate also reports SQLSTATE 53300 at FATAL with sorry, too many clients already."
        },
        {
          "id": "runtime.driver-collector-boundary",
          "limits": "Driver exposure can vary by client and startup failure; the collector record is the server-side SQLSTATE evidence here.",
          "method": "Compare the driver diagnostic, CSV collector state_code, message, severity, and source location in both final summaries and raw records.",
          "sources": [
            "doc.protocol.18",
            "runtime.53300-registry-final-20260909.latest",
            "runtime.53300-registry-final-20260909.pg10"
          ],
          "statement": "For the rejected startup connection, psycopg exposed startup text with sqlstate null while the PostgreSQL collector recorded FATAL SQLSTATE 53300 and the role-limit message on both targets."
        },
        {
          "id": "runtime.capacity-repair",
          "limits": "The repair proves the role-limit path only; it does not prove recovery of another global capacity limit.",
          "method": "Keep one holder session, trigger the second startup, restore the limit through an owner connection, and assert a new role session and query.",
          "sources": [
            "case-manifest.53300",
            "snippet-registry.53300.final",
            "runtime.53300-registry-final-20260909.latest",
            "runtime.53300-registry-final-20260909.pg10"
          ],
          "statement": "After resetting the disposable role's connection limit, a fresh connection for that role executed SELECT 1 and returned 1 on PostgreSQL 18.6 and 10.21."
        },
        {
          "id": "versions.catalogue-boundary",
          "limits": "The first scanned release is a lower bound, not an asserted introduction version.",
          "method": "Read the manifest snapshots and definition references for the code.",
          "sources": [
            "manifest.53300"
          ],
          "statement": "The locked catalogue records 53300 in every listed formal snapshot from 9.0.23 through 18.6 and in 19beta3; pre-9.0 history is not scanned."
        }
      ],
      "messages": [
        {
          "id": "message.server-capacity",
          "limits": "This template belongs to the server-wide startup gate and is distinct from the role-limit template.",
          "primary_template": "sorry, too many clients already",
          "severity_source": "explicit FATAL",
          "sources": [
            "src.backend-startup.18.6"
          ],
          "sqlstate": "53300"
        },
        {
          "id": "message.role-limit",
          "limits": "The role name is dynamically inserted; database-wide and server-wide capacity branches may use another primary template.",
          "primary_template": "too many connections for role \"%s\"",
          "severity_source": "explicit FATAL",
          "sources": [
            "src.miscinit.18.6"
          ],
          "sqlstate": "53300"
        }
      ],
      "usage_evidence": [
        {
          "evidence_ids": [
            "identity.class-and-condition",
            "src.errcodes.18.6"
          ],
          "scope": "SQLSTATE directory identity",
          "status": "definition_only"
        },
        {
          "evidence_ids": [
            "mechanism.role-connection-limit",
            "mechanism.server-capacity",
            "message.role-limit",
            "message.server-capacity",
            "src.miscinit.18.6",
            "src.backend-startup.18.6"
          ],
          "scope": "Role-limit and server-wide capacity source paths and messages",
          "status": "source_path_confirmed"
        },
        {
          "evidence_ids": [
            "runtime.driver-collector-boundary",
            "runtime.capacity-repair",
            "snippet-registry.53300.final",
            "runtime.53300-registry-final-20260909.latest",
            "runtime.53300-registry-final-20260909.pg10"
          ],
          "scope": "Startup driver/collector SQLSTATE boundary and role-limit repair",
          "status": "observed_runtime"
        },
        {
          "evidence_ids": [
            "versions.catalogue-boundary",
            "manifest.53300"
          ],
          "scope": "Version presence",
          "status": "definition_only"
        }
      ],
      "runtime": [
        {
          "cases": [
            "role_connection_limit"
          ],
          "id": "runtime.53300-registry-final-20260909.latest",
          "observed": {
            "collector_message": "too many connections for role <generated-role>",
            "collector_severity": "FATAL",
            "collector_source": "miscinit.c:880",
            "collector_sqlstate": "53300",
            "driver_sqlstate": null,
            "driver_text": "FATAL: too many connections for role <generated-role>",
            "restored_query": 1,
            "transaction": "none opened for rejected startup"
          },
          "raw_sha256": "5fbcf85150b62d596ca4b2356639fdcd89ca2a910447e2be9029b90de108a635",
          "run_id": "53300-registry-final-20260909",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "snippet_registry": {
            "sha256": "a83d740917ef53c3bf24494c12fe87f4c9cbb38f1e23c17991f2431ba13fa243"
          },
          "status": "passed",
          "summary_sha256": "e5505e6d644d9f68ba723c9af63fe069e69d030d1f554b8e8d37316b441f55a9",
          "target": "latest"
        },
        {
          "cases": [
            "role_connection_limit"
          ],
          "id": "runtime.53300-registry-final-20260909.pg10",
          "image": "postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
          "observed": {
            "collector_message": "too many connections for role <generated-role>",
            "collector_severity": "FATAL",
            "collector_source": "miscinit.c:575",
            "collector_sqlstate": "53300",
            "driver_sqlstate": null,
            "driver_text": "FATAL: too many connections for role <generated-role>",
            "restored_query": 1,
            "transaction": "none opened for rejected startup"
          },
          "raw_sha256": "b03ea276f638c91efadd0791a9818993fc21620ec27ef643c60b7a9904fac6c3",
          "run_id": "53300-registry-final-20260909",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "snippet_registry": {
            "sha256": "a83d740917ef53c3bf24494c12fe87f4c9cbb38f1e23c17991f2431ba13fa243"
          },
          "status": "passed",
          "summary_sha256": "2ed0896c1548c0a3115e55381e03b0ccd392abe241552b574c64e88cca052f59",
          "target": "pg10"
        }
      ]
    },
    {
      "sqlstate": "53400",
      "condition_name": "configuration_limit_exceeded",
      "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#L411",
          "lines": "411"
        },
        {
          "id": "src.path.0",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/postmaster/bgworker.c",
          "sha256": "b254fc4e39694a56ac511c4c9246b9b1c8b9b5c7fc86d2808c13edd9b7e21750",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/postmaster/bgworker.c#L1002",
          "lines": "1002-1009"
        },
        {
          "id": "src.path.1",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/replication/logical/launcher.c",
          "sha256": "a38722170de7ef37cd6e45e921d7f025575636d25e892f52f15e251edd4dc450",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/replication/logical/launcher.c#L435",
          "lines": "435-438"
        },
        {
          "id": "src.path.2",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/replication/logical/origin.c",
          "sha256": "81e5d5b4539b67bb372f0f0a05395af900c322cdbcec8a4b1f358333a16e6518",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/replication/logical/origin.c#L976",
          "lines": "976-980"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "53400 is configuration_limit_exceeded in SQLSTATE Class 53.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read fixed definition."
        },
        {
          "id": "resolved-paths",
          "statement": "The cited PostgreSQL 18.6 source paths support the representative resource and object-state mechanisms described.",
          "sources": [
            "src.path.0",
            "src.path.1",
            "src.path.2"
          ],
          "method": "Read complete fixed source contexts.",
          "limits": "Source confirmation is not natural runtime."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 53400 from 9.2.0; that boundary does not prove exact implementation introduction.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue boundary."
        }
      ],
      "messages": [
        {
          "id": "message.0",
          "sqlstate": "53400",
          "primary_template": "too many background workers",
          "severity_source": "ERROR",
          "sources": [
            "src.path.0"
          ],
          "hint_template": "Consider increasing the configuration parameter \"%s\"."
        },
        {
          "id": "message.1",
          "sqlstate": "53400",
          "primary_template": "out of logical replication worker slots",
          "severity_source": "ERROR",
          "sources": [
            "src.path.1"
          ],
          "hint_template": "You might need to increase \"%s\"."
        },
        {
          "id": "message.2",
          "sqlstate": "53400",
          "primary_template": "could not find free replication state slot for replication origin with ID %d",
          "severity_source": "ERROR",
          "sources": [
            "src.path.2"
          ],
          "hint_template": "Increase \"max_active_replication_origins\" and try again."
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "resolved-paths"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "resolved-paths"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "54000",
      "condition_name": "program_limit_exceeded",
      "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#L416",
          "lines": "416"
        },
        {
          "id": "src.path.0",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "contrib/cube/cube.c",
          "sha256": "6094de3208056ddc0a9756ed63a9b9d776be81e555d8240e69c864d7f0e6a9d2",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/contrib/cube/cube.c#L162",
          "lines": "162-166"
        },
        {
          "id": "src.path.1",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "contrib/hstore/hstore_io.c",
          "sha256": "4f9e853ca79e1412d989e937749eeb2a251f7e8173d2732098e4c8a67a96b3d4",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/contrib/hstore/hstore_io.c#L522",
          "lines": "522-525"
        },
        {
          "id": "src.path.2",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/mmgr/mcxt.c",
          "sha256": "19824d40a1b2b7f533fd7863c91117a33c0879bf776fc7fbe495f603e032344e",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/mmgr/mcxt.c#L1683",
          "lines": "1683-1718"
        },
        {
          "id": "src.path.3",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/storage/smgr/md.c",
          "sha256": "c7e885c50b381337b8b8624bfc8effbd3abba7aa95a290083996354926ec9f69",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/storage/smgr/md.c#L493",
          "lines": "493-504"
        },
        {
          "id": "src.path.4",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/arraysubs.c",
          "sha256": "59b00fb9b770f84eb97948e1e2dd339b25f4fbc331fdf972d0f1b13fd2a7e4ad",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/arraysubs.c#L147",
          "lines": "147-152"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "54000 is program_limit_exceeded in SQLSTATE Class 54.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read fixed definition."
        },
        {
          "id": "resolved-paths",
          "statement": "The cited PostgreSQL 18.6 source paths support the representative resource and object-state mechanisms described.",
          "sources": [
            "src.path.0",
            "src.path.1",
            "src.path.2",
            "src.path.3",
            "src.path.4"
          ],
          "method": "Read complete fixed source contexts.",
          "limits": "Source confirmation is not natural runtime."
        },
        {
          "id": "core-limit-mechanisms",
          "statement": "Core safe allocation-size arithmetic, relation block growth, and array subscript dimensions use 54000 independently of cube and hstore extension limits.",
          "sources": [
            "src.path.2",
            "src.path.3",
            "src.path.4"
          ],
          "method": "Read complete fixed guards and their ereport groups."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 54000 from 7.4; that boundary does not prove exact implementation introduction.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue boundary."
        }
      ],
      "messages": [
        {
          "id": "message.0",
          "sqlstate": "54000",
          "primary_template": "cube dimension limit",
          "severity_source": "ERROR",
          "sources": [
            "src.path.0"
          ],
          "hint_template": "A cube cannot have more than %d dimensions."
        },
        {
          "id": "message.1",
          "sqlstate": "54000",
          "primary_template": "number of pairs (%d) exceeds the maximum allowed (%d)",
          "severity_source": "ERROR",
          "sources": [
            "src.path.1"
          ]
        },
        {
          "id": "message.2",
          "sqlstate": "54000",
          "primary_template": "invalid memory allocation request size %zu + %zu",
          "severity_source": "ERROR",
          "sources": [
            "src.path.2"
          ]
        },
        {
          "id": "message.3",
          "sqlstate": "54000",
          "primary_template": "cannot extend file \"%s\" beyond %u blocks",
          "severity_source": "ERROR",
          "sources": [
            "src.path.3"
          ]
        },
        {
          "id": "message.4",
          "sqlstate": "54000",
          "primary_template": "number of array dimensions (%d) exceeds the maximum allowed (%d)",
          "severity_source": "ERROR",
          "sources": [
            "src.path.4"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "resolved-paths",
            "core-limit-mechanisms"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "resolved-paths"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "54001",
      "condition_name": "statement_too_complex",
      "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#L417",
          "lines": "417"
        },
        {
          "id": "src.path.0",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/parser/parse_agg.c",
          "sha256": "6e80a805fddbfc9c7e0f3047b348bf992a20c99f16ce7fee89c7067753027f72",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/parser/parse_agg.c#L1166",
          "lines": "1166-1172"
        },
        {
          "id": "src.path.1",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/misc/stack_depth.c",
          "sha256": "ed87e94a4f73600983230aca3a4c1869d3b9cbb7c83ec36a6bbd7e403925e920",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/misc/stack_depth.c#L100",
          "lines": "100-105"
        },
        {
          "id": "src.path.2",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/misc/stack_depth.c",
          "sha256": "ed87e94a4f73600983230aca3a4c1869d3b9cbb7c83ec36a6bbd7e403925e920",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/misc/stack_depth.c#L156",
          "lines": "156-168"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "54001 is statement_too_complex in SQLSTATE Class 54.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read fixed definition."
        },
        {
          "id": "resolved-paths",
          "statement": "The cited PostgreSQL 18.6 source paths support the representative resource and object-state mechanisms described.",
          "sources": [
            "src.path.0",
            "src.path.1",
            "src.path.2"
          ],
          "method": "Read complete fixed source contexts.",
          "limits": "Source confirmation is not natural runtime."
        },
        {
          "id": "stack-platform-guard",
          "statement": "The max_stack_depth GUC check rejects a value above the platform stack rlimit and points to increasing the platform limit, while recursive checks emit 54001 before stack overflow.",
          "sources": [
            "src.path.1",
            "src.path.2"
          ],
          "method": "Read the complete stack-depth error and GUC check hooks."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 54001 from 7.4; that boundary does not prove exact implementation introduction.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue boundary."
        }
      ],
      "messages": [
        {
          "id": "message.0",
          "sqlstate": "54001",
          "primary_template": "too many grouping sets present (maximum 4096)",
          "severity_source": "ERROR",
          "sources": [
            "src.path.0"
          ]
        },
        {
          "id": "message.1",
          "sqlstate": "54001",
          "primary_template": "stack depth limit exceeded",
          "severity_source": "ERROR",
          "sources": [
            "src.path.1"
          ],
          "hint_template": "Increase the configuration parameter \"max_stack_depth\" (currently %dkB), after ensuring the platform stack depth limit is adequate."
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "resolved-paths",
            "stack-platform-guard"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "resolved-paths"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "54011",
      "condition_name": "too_many_columns",
      "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#L418",
          "lines": "418"
        },
        {
          "id": "src.path.0",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/access/common/heaptuple.c",
          "sha256": "3553582c4af3631b8b901c514fe3fed828daa376c374634e5773b1b177befd0b",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/common/heaptuple.c#L1131",
          "lines": "1131-1134"
        },
        {
          "id": "src.path.1",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/access/common/indextuple.c",
          "sha256": "47ce16ef7099b6d1de759f9605bcc50d128e1b342d8b70625553f29bca4ade00",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/common/indextuple.c#L87",
          "lines": "87-90"
        },
        {
          "id": "src.path.2",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/catalog/heap.c",
          "sha256": "e720ee58279590793edd0985b3c910970ef56e7361b8ef92e245370587e02a0e",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/catalog/heap.c#L461",
          "lines": "461-464"
        },
        {
          "id": "src.path.3",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/tablecmds.c",
          "sha256": "422dc8e833df4940755973c757e338295822ba3e4c7266c40669f49f96eb15a9",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/tablecmds.c#L2567",
          "lines": "2567-2582"
        },
        {
          "id": "src.path.4",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/indexcmds.c",
          "sha256": "0bdae365f207ab82865806c5983cac94c5c062e7a61ab7c883ccb7e2015fad36",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/indexcmds.c#L640",
          "lines": "640-664"
        },
        {
          "id": "src.path.5",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/statscmds.c",
          "sha256": "3cbdc9bfd55c98d0c7543af9d366b8e76d5d3b49661f5634ee5f71bedd2aacdb",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/statscmds.c#L215",
          "lines": "215-224"
        },
        {
          "id": "src.path.6",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/parser/parse_relation.c",
          "sha256": "0d9c88f4a8def4c2d982c33f13208590e21ecf5e6f8cd9d7faa223dc771c9a9a",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/parser/parse_relation.c#L1935",
          "lines": "1935-1946"
        },
        {
          "id": "src.path.7",
          "kind": "upstream_source",
          "source_role": "limit_definition",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/include/access/htup_details.h",
          "sha256": "175dad20a31eea61d724bf2954457dc09d4635e552ba63b2ac1cf1c9508c0626",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/include/access/htup_details.h#L34",
          "lines": "34-48"
        },
        {
          "id": "src.path.8",
          "kind": "upstream_source",
          "source_role": "limit_definition",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/include/pg_config_manual.h",
          "sha256": "3b513dda5408337ef7c31bca491844650b4ea2cdb1b688d6b99ab74ba3f06700",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/include/pg_config_manual.h#L63",
          "lines": "63-74"
        },
        {
          "id": "src.path.9",
          "kind": "upstream_source",
          "source_role": "limit_definition",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/include/statistics/statistics.h",
          "sha256": "6106a336fc725ca5a984e78b1c2e54aa5ee7aed130f3b005bebff35c07eadc5b",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/include/statistics/statistics.h#L19",
          "lines": "19"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "54011 is too_many_columns in SQLSTATE Class 54.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read fixed definition."
        },
        {
          "id": "resolved-paths",
          "statement": "The cited PostgreSQL 18.6 source paths support the representative resource and object-state mechanisms described.",
          "sources": [
            "src.path.0",
            "src.path.1",
            "src.path.2",
            "src.path.3",
            "src.path.4",
            "src.path.5",
            "src.path.6",
            "src.path.7",
            "src.path.8",
            "src.path.9"
          ],
          "method": "Read complete fixed source contexts.",
          "limits": "Source confirmation is not natural runtime."
        },
        {
          "id": "physical-and-object-limits",
          "statement": "The table guard counts physical attributes including inherited columns, while index, partition, statistics, and function-row definitions use separate fixed arrays or dimensions.",
          "sources": [
            "src.path.3",
            "src.path.4",
            "src.path.5",
            "src.path.6"
          ],
          "method": "Read the complete DDL and parser guards."
        },
        {
          "id": "fixed-numeric-limits",
          "statement": "The fixed 18.6 limit definitions are 1600 user table attributes, 1664 tuple attributes, 32 index keys, 32 partition-key columns, and 8 extended-statistics dimensions; these values belong to different object paths.",
          "sources": [
            "src.path.7",
            "src.path.8",
            "src.path.9"
          ],
          "method": "Read the fixed macro definitions used by the guards.",
          "limits": "The numeric values are for the locked 18.6 source and do not replace the actual count and limit fields in a future server's diagnostic."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 54011 from 7.4; that boundary does not prove exact implementation introduction.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue boundary."
        }
      ],
      "messages": [
        {
          "id": "message.0",
          "sqlstate": "54011",
          "primary_template": "number of columns (%d) exceeds limit (%d)",
          "severity_source": "ERROR",
          "sources": [
            "src.path.0"
          ]
        },
        {
          "id": "message.1",
          "sqlstate": "54011",
          "primary_template": "number of index columns (%d) exceeds limit (%d)",
          "severity_source": "ERROR",
          "sources": [
            "src.path.1"
          ]
        },
        {
          "id": "message.2",
          "sqlstate": "54011",
          "primary_template": "tables can have at most %d columns",
          "severity_source": "ERROR",
          "sources": [
            "src.path.2"
          ]
        },
        {
          "id": "message.3",
          "sqlstate": "54011",
          "primary_template": "cannot partition using more than %d columns",
          "severity_source": "ERROR",
          "sources": [
            "src.path.3"
          ]
        },
        {
          "id": "message.4",
          "sqlstate": "54011",
          "primary_template": "cannot use more than %d columns in an index",
          "severity_source": "ERROR",
          "sources": [
            "src.path.4"
          ]
        },
        {
          "id": "message.5",
          "sqlstate": "54011",
          "primary_template": "cannot have more than %d columns in statistics",
          "severity_source": "ERROR",
          "sources": [
            "src.path.5"
          ]
        },
        {
          "id": "message.6",
          "sqlstate": "54011",
          "primary_template": "column definition lists can have at most %d entries",
          "severity_source": "ERROR",
          "sources": [
            "src.path.6"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "resolved-paths",
            "physical-and-object-limits",
            "fixed-numeric-limits"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "resolved-paths"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "54023",
      "condition_name": "too_many_arguments",
      "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#L419",
          "lines": "419"
        },
        {
          "id": "src.path.0",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/catalog/pg_proc.c",
          "sha256": "77a883995e5fadf17fae68722043beb43115e685e8082b2b7256d92312528a5a",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/catalog/pg_proc.c#L156",
          "lines": "156-161"
        },
        {
          "id": "src.path.1",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/functioncmds.c",
          "sha256": "33de4dd569d9b8b93ca3efbba4b31726af79f2864110454a7d7cdf286b3647aa",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/functioncmds.c#L2261",
          "lines": "2261-2266"
        },
        {
          "id": "src.path.2",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/executor/execExpr.c",
          "sha256": "9bc3aa2562686b1860005137de9611e56ff6b41eaf9b3eefd9c3f058dc057431",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/executor/execExpr.c#L2727",
          "lines": "2727-2732"
        },
        {
          "id": "src.path.3",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/executor/execSRF.c",
          "sha256": "5c6038cbcc254113a39119af636331063b11d75ad7757b027620d78ed1ecdf2a",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/executor/execSRF.c#L716",
          "lines": "716-721"
        },
        {
          "id": "src.path.4",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/include/pg_config_manual.h",
          "sha256": "3b513dda5408337ef7c31bca491844650b4ea2cdb1b688d6b99ab74ba3f06700",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/include/pg_config_manual.h#L31",
          "lines": "31-43"
        },
        {
          "id": "src.path.5",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/catalog/pg_aggregate.c",
          "sha256": "75c08cdd82917e45647f7c523c9ad8fb49423c89f13e26754be1e37e4c6a49b4",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/catalog/pg_aggregate.c#L121",
          "lines": "121-132"
        },
        {
          "id": "src.path.6",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/parser/parse_func.c",
          "sha256": "48314eab022297478ac4e49786afaff2621ab7b1d7b50e156668cf477961384f",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/parser/parse_func.c#L129",
          "lines": "129-142"
        },
        {
          "id": "src.path.7",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/executor/nodeWindowAgg.c",
          "sha256": "c365e6750bc77a89562254903d099c3e5914e001d3aae418322ccffc1d535d17",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/executor/nodeWindowAgg.c#L1042",
          "lines": "1042-1054"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "tag": "REL_18_6",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "54023 is too_many_arguments in SQLSTATE Class 54.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read fixed definition."
        },
        {
          "id": "resolved-paths",
          "statement": "The cited PostgreSQL 18.6 source paths support the representative resource and object-state mechanisms described.",
          "sources": [
            "src.path.0",
            "src.path.1",
            "src.path.2",
            "src.path.3",
            "src.path.4",
            "src.path.5",
            "src.path.6",
            "src.path.7"
          ],
          "method": "Read complete fixed source contexts.",
          "limits": "Source confirmation is not natural runtime."
        },
        {
          "id": "compile-time-limit",
          "statement": "FUNC_MAX_ARGS is a compile-time constant of 100 in the fixed PG18.6 header; aggregate definitions/calls use one fewer argument, and parser/executor guards protect calls including stored expressions.",
          "sources": [
            "src.path.4",
            "src.path.5",
            "src.path.6",
            "src.path.7"
          ],
          "method": "Read the fixed macro, aggregate, parser, and executor guards."
        },
        {
          "id": "raw-message-roles",
          "statement": "The fixed report groups use errmsg_plural with singular and plural format_raw strings and pass FUNC_MAX_ARGS (or FUNC_MAX_ARGS - 1 for aggregates); the scan preserves the macro call rather than only a flattened message.",
          "sources": [
            "src.calls.REL_18_6"
          ],
          "method": "Read source-call report groups alongside complete fixed files."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 54023 from 7.4; that boundary does not prove exact implementation introduction.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue boundary."
        }
      ],
      "messages": [
        {
          "id": "message.0",
          "sqlstate": "54023",
          "primary_template_singular": "functions cannot have more than %d argument",
          "primary_template_plural": "functions cannot have more than %d arguments",
          "severity_source": "ERROR",
          "template_type": "plural",
          "sources": [
            "src.path.0"
          ]
        },
        {
          "id": "message.1",
          "sqlstate": "54023",
          "primary_template_singular": "cannot pass more than %d argument to a procedure",
          "primary_template_plural": "cannot pass more than %d arguments to a procedure",
          "severity_source": "ERROR",
          "template_type": "plural",
          "sources": [
            "src.path.1"
          ]
        },
        {
          "id": "message.2",
          "sqlstate": "54023",
          "primary_template_singular": "cannot pass more than %d argument to a function",
          "primary_template_plural": "cannot pass more than %d arguments to a function",
          "severity_source": "ERROR",
          "template_type": "plural",
          "sources": [
            "src.path.2"
          ]
        },
        {
          "id": "message.3",
          "sqlstate": "54023",
          "primary_template_singular": "cannot pass more than %d argument to a function",
          "primary_template_plural": "cannot pass more than %d arguments to a function",
          "severity_source": "ERROR",
          "template_type": "plural",
          "sources": [
            "src.path.3"
          ]
        },
        {
          "id": "message.4",
          "sqlstate": "54023",
          "primary_template_singular": "aggregates cannot have more than %d argument",
          "primary_template_plural": "aggregates cannot have more than %d arguments",
          "severity_source": "ERROR",
          "template_type": "plural",
          "sources": [
            "src.path.5"
          ]
        },
        {
          "id": "message.5",
          "sqlstate": "54023",
          "primary_template_singular": "cannot pass more than %d argument to a function",
          "primary_template_plural": "cannot pass more than %d arguments to a function",
          "severity_source": "ERROR",
          "template_type": "plural",
          "sources": [
            "src.path.7"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "resolved-paths",
            "compile-time-limit",
            "raw-message-roles"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "resolved-paths"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "55000",
      "condition_name": "object_not_in_prerequisite_state",
      "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#L424",
          "lines": "424"
        },
        {
          "id": "src.path.0",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "contrib/pg_stat_statements/pg_stat_statements.c",
          "sha256": "5a732a7c5b124ba98f2e3939c2458b85757c49fdb7846276f6b96ceeb833e74b",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/contrib/pg_stat_statements/pg_stat_statements.c#L1685",
          "lines": "1685-1687"
        },
        {
          "id": "src.path.1",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "contrib/pg_surgery/heap_surgery.c",
          "sha256": "561c7bf6579ec62f3931ea9ccbd31694c53661e1e09b55f92d29a6472e1b6a1d",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/contrib/pg_surgery/heap_surgery.c#L99",
          "lines": "99-102"
        },
        {
          "id": "src.path.2",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "contrib/pgstattuple/pgstatindex.c",
          "sha256": "87857af9f79eddf4986f5aaf9eb1a69f7040038aee89c9944d8dac1342edd4f9",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/contrib/pgstattuple/pgstatindex.c#L244",
          "lines": "244-247"
        },
        {
          "id": "src.currval.18.6",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/sequence.c",
          "sha256": "3e5afe17d5a84862fae502a5481211220368f1d639e9d07ba6f96ee8be92a8d8",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/sequence.c#L884-L887"
        },
        {
          "id": "src.currval.10.23",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_10_23",
          "commit": "02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4",
          "path": "src/backend/commands/sequence.c",
          "sha256": "5510e1266e8d8c548a4318d753392e92e689d348f3353a2aa53d8dea871c44ab",
          "url": "https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/commands/sequence.c#L845-L848"
        },
        {
          "id": "manifest.55000",
          "kind": "local_artifact",
          "source_role": "case_manifest",
          "sha256": "25edfc0a289a49187779b25fba339dead0ffad950c1cbaba6eccb517dc7000a9"
        },
        {
          "id": "snippet-registry.55000",
          "kind": "local_artifact",
          "source_role": "snippet_registry",
          "sha256": "bef69304c57466de39bcdbc198b0a0042095b77f1d3c45bef45b829084b32ccb"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "tag": "REL_18_6",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        },
        {
          "id": "src.calls.REL_10_23",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "tag": "REL_10_23",
          "sha256": "00d16d3eb01b71ccf1b245c8f3102f9d0ec9f36fb02777b8dd1b99fcb263040c"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "55000 is object_not_in_prerequisite_state in SQLSTATE Class 55.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read fixed definition."
        },
        {
          "id": "resolved-paths",
          "statement": "The cited PostgreSQL 18.6 source paths support the representative resource and object-state mechanisms described.",
          "sources": [
            "src.path.0",
            "src.path.1",
            "src.path.2"
          ],
          "method": "Read complete fixed source contexts.",
          "limits": "Source confirmation is not natural runtime."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 55000 from 7.4; that boundary does not prove exact implementation introduction.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue boundary."
        },
        {
          "id": "mechanism.currval-session",
          "statement": "The sequence currval path requires a prior nextval call in the same backend session and reports 55000 before that prerequisite exists; creating the sequence does not initialize the session-local last-value state.",
          "sources": [
            "src.currval.18.6",
            "src.currval.10.23"
          ],
          "method": "Read fixed sequence.c source-call records and compare same-session registry assertions.",
          "limits": "Other 55000 paths represent different object or server states."
        },
        {
          "id": "runtime.representative-case",
          "statement": "The currval_before_nextval case passed on isolated PostgreSQL 18.6 and 10.21 targets; nextval initialized currval on the same session and returned 10.",
          "sources": [
            "manifest.55000",
            "snippet-registry.55000"
          ],
          "method": "Execute the shared registry and inspect SQLSTATE, severity, session state, repair, cleanup, and target stop.",
          "limits": "Scope is limited to sequence session state and does not cover recovery, preload, or invalid-index branches.",
          "runtime": [
            "runtime.ops-55000-latest-1.latest",
            "runtime.ops-55000-pg10-1.pg10"
          ]
        }
      ],
      "messages": [
        {
          "id": "message.0",
          "sqlstate": "55000",
          "primary_template": "pg_stat_statements must be loaded via \"shared_preload_libraries\"",
          "severity_source": "ERROR",
          "sources": [
            "src.path.0"
          ]
        },
        {
          "id": "message.1",
          "sqlstate": "55000",
          "primary_template": "recovery is in progress",
          "severity_source": "ERROR",
          "sources": [
            "src.path.1"
          ],
          "detail_template": "Heap surgery functions cannot be executed during recovery."
        },
        {
          "id": "message.2",
          "sqlstate": "55000",
          "primary_template": "index \"%s\" is not valid",
          "severity_source": "ERROR",
          "sources": [
            "src.path.2"
          ]
        },
        {
          "id": "message.currval.18.6",
          "sqlstate": "55000",
          "primary_template": "currval of sequence \"%s\" is not yet defined in this session",
          "severity_source": "ERROR",
          "sources": [
            "src.currval.18.6"
          ]
        },
        {
          "id": "message.currval.10.23",
          "sqlstate": "55000",
          "primary_template": "currval of sequence \"%s\" is not yet defined in this session",
          "severity_source": "ERROR",
          "sources": [
            "src.currval.10.23"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "resolved-paths"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "selected-case-18.6-and-10.21",
          "status": "observed_runtime",
          "evidence_ids": [
            "runtime.ops-55000-latest-1.latest",
            "runtime.ops-55000-pg10-1.pg10",
            "runtime.representative-case"
          ]
        }
      ],
      "runtime": [
        {
          "id": "runtime.ops-55000-latest-1.latest",
          "run_id": "ops-55000-latest-1",
          "target": "latest",
          "status": "passed",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "summary_sha256": "74a401cf3c5923c127ffdabd8310679fee09d18da3b7df93a696faca7884df5f",
          "raw_sha256": "9bf2c7a30cef4b96d2203f81b22b9a06f6745120d0ba545168ae0038dce10ae3",
          "case_manifest": {
            "id": "manifest.55000",
            "kind": "local_artifact",
            "source_role": "case_manifest",
            "sha256": "25edfc0a289a49187779b25fba339dead0ffad950c1cbaba6eccb517dc7000a9"
          },
          "snippet_registry": {
            "id": "snippet-registry.55000",
            "kind": "local_artifact",
            "source_role": "snippet_registry",
            "sha256": "bef69304c57466de39bcdbc198b0a0042095b77f1d3c45bef45b829084b32ccb"
          },
          "environment": {
            "TimeZone": "Asia/Shanghai",
            "backend_pid": 43655,
            "binary": {
              "bindir": "/opt/homebrew/Cellar/postgresql@18/18.6/bin",
              "pg_config": "/opt/homebrew/bin/pg_config",
              "pg_config_version": "PostgreSQL 18.6 (Homebrew)",
              "postgres": "/opt/homebrew/Cellar/postgresql@18/18.6/bin/postgres"
            },
            "connection_scope": "runner-owned localhost port",
            "current_user": "runner",
            "docker": {},
            "lc_messages": "C",
            "libpq_version": "18.6",
            "locale": "C.UTF-8",
            "log_destination": "csvlog,jsonlog",
            "log_error_verbosity": "verbose",
            "log_min_error_statement": "error",
            "log_min_messages": "error",
            "logging_collector": "on",
            "machine": "arm64",
            "max_connections": "100",
            "platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O",
            "psycopg_version": "3.3.5",
            "python_version": "3.14.6 (main, Jun 10 2026, 10:03:53) [Clang 21.0.0 (clang-2100.0.123.102)]",
            "server_encoding": "UTF8",
            "server_version": "18.6 (Homebrew)",
            "server_version_num": "180006",
            "target_kind": "latest",
            "wal_level": "logical"
          },
          "cases": [
            "currval_before_nextval"
          ],
          "observed": {
            "connection_autocommit": true,
            "currval_after_nextval": 10,
            "diagnostic": {
              "column_name": null,
              "constraint_name": null,
              "context": null,
              "datatype_name": null,
              "exception_type": "ObjectNotInPrerequisiteState",
              "internal_position": null,
              "internal_query": null,
              "message_detail": null,
              "message_hint": null,
              "message_primary": "currval of sequence \"currval_sequence\" is not yet defined in this session",
              "schema_name": null,
              "severity": "ERROR",
              "severity_nonlocalized": "ERROR",
              "source_file": "sequence.c",
              "source_function": "currval_oid",
              "source_line": "887",
              "sqlstate": "55000",
              "statement_position": null,
              "table_name": null,
              "text": "currval of sequence \"currval_sequence\" is not yet defined in this session"
            },
            "failed_status": "IDLE",
            "nextval": 10,
            "repair_status": "IDLE",
            "sequence": "\"c55000_currval_before_nextval\".\"currval_sequence\"",
            "session_scope": "CREATE SEQUENCE, the failing currval, nextval, and repaired currval all ran on one autocommit backend session."
          },
          "assertions": [
            {
              "expected": "55000",
              "name": "55000 SQLSTATE",
              "observed": "55000",
              "passed": true
            },
            {
              "expected": "ERROR",
              "name": "55000 ERROR severity",
              "observed": "ERROR",
              "passed": true
            },
            {
              "expected": "currval of sequence ... is not yet defined in this session",
              "name": "currval diagnostic identifies missing session sequence state",
              "observed": "currval of sequence \"currval_sequence\" is not yet defined in this session",
              "passed": true
            },
            {
              "expected": "IDLE",
              "name": "currval prerequisite error leaves session usable",
              "observed": "IDLE",
              "passed": true
            },
            {
              "expected": {
                "currval": 10,
                "nextval": 10,
                "status": "IDLE"
              },
              "name": "nextval initializes currval in the same session",
              "observed": {
                "currval": 10,
                "nextval": 10,
                "status": "IDLE"
              },
              "passed": true
            }
          ],
          "cleanup": {
            "errors": [],
            "passed": true
          },
          "target_stop": {
            "argv": [
              "/opt/homebrew/Cellar/postgresql@18/18.6/bin/pg_ctl",
              "-D",
              "<local runtime artifact>",
              "-m",
              "fast",
              "-w",
              "stop"
            ],
            "elapsed_seconds": 0.111,
            "returncode": 0,
            "stderr": "",
            "stdout": "waiting for server to shut down.... done\nserver stopped\n"
          }
        },
        {
          "id": "runtime.ops-55000-pg10-1.pg10",
          "run_id": "ops-55000-pg10-1",
          "target": "pg10",
          "status": "passed",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "summary_sha256": "12c1a769e979b44f214ef9741fe2774c401d5e8871112cbc350ec501dd2f282f",
          "raw_sha256": "5d6d1b4d1ee72b5088e9d1d83383b071c0883ddea65477e35807a80553131458",
          "case_manifest": {
            "id": "manifest.55000",
            "kind": "local_artifact",
            "source_role": "case_manifest",
            "sha256": "25edfc0a289a49187779b25fba339dead0ffad950c1cbaba6eccb517dc7000a9"
          },
          "snippet_registry": {
            "id": "snippet-registry.55000",
            "kind": "local_artifact",
            "source_role": "snippet_registry",
            "sha256": "bef69304c57466de39bcdbc198b0a0042095b77f1d3c45bef45b829084b32ccb"
          },
          "environment": {
            "TimeZone": "Etc/UTC",
            "backend_pid": 79,
            "binary": {},
            "connection_scope": "runner-owned localhost port",
            "current_user": "postgres",
            "docker": {
              "architecture": "arm64",
              "command": "/usr/local/bin/docker",
              "digest": "sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
              "id": "sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
              "image": "postgres:10",
              "image_created": "2022-06-23T09:11:18.374607054Z",
              "image_ref": "postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
              "log_destination": "csvlog",
              "os": "linux",
              "repo_digests": [
                "postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc"
              ]
            },
            "lc_messages": "en_US.utf8",
            "libpq_version": "18.6",
            "locale": "C.UTF-8",
            "log_destination": "csvlog",
            "log_error_verbosity": "verbose",
            "log_min_error_statement": "error",
            "log_min_messages": "error",
            "logging_collector": "on",
            "machine": "arm64",
            "max_connections": "100",
            "platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O",
            "psycopg_version": "3.3.5",
            "python_version": "3.14.6 (main, Jun 10 2026, 10:03:53) [Clang 21.0.0 (clang-2100.0.123.102)]",
            "server_encoding": "UTF8",
            "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
            "server_version_num": "100021",
            "target_kind": "pg10",
            "wal_level": "logical"
          },
          "cases": [
            "currval_before_nextval"
          ],
          "observed": {
            "connection_autocommit": true,
            "currval_after_nextval": 10,
            "diagnostic": {
              "column_name": null,
              "constraint_name": null,
              "context": null,
              "datatype_name": null,
              "exception_type": "ObjectNotInPrerequisiteState",
              "internal_position": null,
              "internal_query": null,
              "message_detail": null,
              "message_hint": null,
              "message_primary": "currval of sequence \"currval_sequence\" is not yet defined in this session",
              "schema_name": null,
              "severity": "ERROR",
              "severity_nonlocalized": "ERROR",
              "source_file": "sequence.c",
              "source_function": "currval_oid",
              "source_line": "840",
              "sqlstate": "55000",
              "statement_position": null,
              "table_name": null,
              "text": "currval of sequence \"currval_sequence\" is not yet defined in this session"
            },
            "failed_status": "IDLE",
            "nextval": 10,
            "repair_status": "IDLE",
            "sequence": "\"c55000_currval_before_nextval\".\"currval_sequence\"",
            "session_scope": "CREATE SEQUENCE, the failing currval, nextval, and repaired currval all ran on one autocommit backend session."
          },
          "assertions": [
            {
              "expected": "55000",
              "name": "55000 SQLSTATE",
              "observed": "55000",
              "passed": true
            },
            {
              "expected": "ERROR",
              "name": "55000 ERROR severity",
              "observed": "ERROR",
              "passed": true
            },
            {
              "expected": "currval of sequence ... is not yet defined in this session",
              "name": "currval diagnostic identifies missing session sequence state",
              "observed": "currval of sequence \"currval_sequence\" is not yet defined in this session",
              "passed": true
            },
            {
              "expected": "IDLE",
              "name": "currval prerequisite error leaves session usable",
              "observed": "IDLE",
              "passed": true
            },
            {
              "expected": {
                "currval": 10,
                "nextval": 10,
                "status": "IDLE"
              },
              "name": "nextval initializes currval in the same session",
              "observed": {
                "currval": 10,
                "nextval": 10,
                "status": "IDLE"
              },
              "passed": true
            }
          ],
          "cleanup": {
            "errors": [],
            "passed": true
          },
          "target_stop": {
            "cleanup": {
              "argv": [
                "/usr/local/bin/docker",
                "rm",
                "-f",
                "-v",
                "sqlstate55000_ops55000pg101_pg10"
              ],
              "elapsed_seconds": 0.297,
              "returncode": 0,
              "stderr": "",
              "stdout": "sqlstate55000_ops55000pg101_pg10\n"
            },
            "inspect": {
              "argv": [
                "/usr/local/bin/docker",
                "inspect",
                "sqlstate55000_ops55000pg101_pg10"
              ],
              "elapsed_seconds": 0.027,
              "returncode": 0,
              "stderr": "",
              "stdout": "[\n    {\n        \"Id\": \"5947a11f0be0c5882298918f5d9176581faaed03f9537a3bc5a2747bbeb51fc2\",\n        \"Created\": \"2026-09-09T17:10:54.898257629Z\",\n        \"Path\": \"docker-entrypoint.sh\",\n        \"Args\": [\n            \"postgres\",\n            \"-c\",\n            \"listen_addresses=*\",\n            \"-c\",\n            \"log_destination=csvlog\",\n            \"-c\",\n            \"logging_collector=on\",\n            \"-c\",\n            \"log_directory=log\",\n            \"-c\",\n            \"log_filename=postgresql-%Y%m%d%H%M%S.log\",\n            \"-c\",\n            \"log_min_messages=error\",\n            \"-c\",\n            \"log_min_error_statement=error\",\n            \"-c\",\n            \"log_error_verbosity=verbose\",\n            \"-c\",\n            \"wal_level=logical\",\n            \"-c\",\n            \"max_wal_senders=10\",\n            \"-c\",\n            \"max_replication_slots=10\"\n        ],\n        \"State\": {\n            \"Status\": \"running\",\n            \"Running\": true,\n            \"Paused\": false,\n            \"Restarting\": false,\n            \"OOMKilled\": false,\n            \"Dead\": false,\n            \"Pid\": 64384,\n            \"ExitCode\": 0,\n            \"Error\": \"\",\n            \"StartedAt\": \"2026-09-09T17:10:54.967511504Z\",\n            \"FinishedAt\": \"0001-01-01T00:00:00Z\"\n        },\n        \"Image\": \"sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc\",\n        \"ResolvConfPath\": \"/var/lib/docker/containers/5947a11f0be0c5882298918f5d9176581faaed03f9537a3bc5a2747bbeb51fc2/resolv.conf\",\n        \"HostnamePath\": \"/var/lib/docker/containers/5947a11f0be0c5882298918f5d9176581faaed03f9537a3bc5a2747bbeb51fc2/hostname\",\n        \"HostsPath\": \"/var/lib/docker/containers/5947a11f0be0c5882298918f5d9176581faaed03f9537a3bc5a2747bbeb51fc2/hosts\",\n        \"LogPath\": \"/var/lib/docker/containers/5947a11f0be0c5882298918f5d9176581faaed03f9537a3bc5a2747bbeb51fc2/5947a11f0be0c5882298918f5d9176581faaed03f9537a3bc5a2747bbeb51fc2-json.log\",\n        \"Name\": \"/sqlstate55000_ops55000pg101_pg10\",\n        \"RestartCount\": 0,\n        \"Driver\": \"overlayfs\",\n        \"Platform\": \"linux\",\n        \"MountLabel\": \"\",\n        \"ProcessLabel\": \"\",\n        \"AppArmorProfile\": \"\",\n        \"ExecIDs\": null,\n        \"HostConfig\": {\n            \"Binds\": null,\n            \"ContainerIDFile\": \"\",\n            \"LogConfig\": {\n                \"Type\": \"json-file\",\n                \"Config\": {}\n            },\n            \"NetworkMode\": \"bridge\",\n            \"PortBindings\": {\n                \"5432/tcp\": [\n                    {\n                        \"HostIp\": \"127.0.0.1\",\n                        \"HostPort\": \"\"\n                    }\n                ]\n            },\n            \"RestartPolicy\": {\n                \"Name\": \"no\",\n                \"MaximumRetryCount\": 0\n            },\n            \"AutoRemove\": false,\n            \"VolumeDriver\": \"\",\n            \"VolumesFrom\": null,\n            \"ConsoleSize\": [\n                0,\n                0\n            ],\n            \"CapAdd\": null,\n            \"CapDrop\": null,\n            \"CgroupnsMode\": \"private\",\n            \"Dns\": null,\n            \"DnsOptions\": [],\n            \"DnsSearch\": [],\n            \"ExtraHosts\": null,\n            \"GroupAdd\": null,\n            \"IpcMode\": \"private\",\n            \"Cgroup\": \"\",\n            \"Links\": null,\n            \"OomScoreAdj\": 0,\n            \"PidMode\": \"\",\n            \"Privileged\": false,\n            \"PublishAllPorts\": false,\n            \"ReadonlyRootfs\": false,\n            \"SecurityOpt\": null,\n            \"UTSMode\": \"\",\n            \"UsernsMode\": \"\",\n            \"ShmSize\": 67108864,\n            \"Runtime\": \"runc\",\n            \"Isolation\": \"\",\n            \"CpuShares\": 0,\n            \"Memory\": 0,\n            \"NanoCpus\": 0,\n            \"CgroupParent\": \"\",\n            \"BlkioWeight\": 0,\n            \"BlkioWeightDevice\": [],\n            \"BlkioDeviceReadBps\": [],\n            \"BlkioDeviceWriteBps\": [],\n            \"BlkioDeviceReadIOps\": [],\n            \"BlkioDeviceWriteIOps\": [],\n            \"CpuPeriod\": 0,\n            \"CpuQuota\": 0,\n            \"CpuRealtimePeriod\": 0,\n            \"CpuRealtimeRuntime\": 0,\n            \"CpusetCpus\": \"\",\n            \"CpusetMems\": \"\",\n            \"Devices\": [],\n            \"DeviceCgroupRules\": null,\n            \"DeviceRequests\": null,\n            \"MemoryReservation\": 0,\n            \"MemorySwap\": 0,\n            \"MemorySwappiness\": null,\n            \"OomKillDisable\": null,\n            \"PidsLimit\": null,\n            \"Ulimits\": [],\n            \"CpuCount\": 0,\n            \"CpuPercent\": 0,\n            \"IOMaximumIOps\": 0,\n            \"IOMaximumBandwidth\": 0,\n            \"MaskedPaths\": [\n                \"/proc/acpi\",\n                \"/proc/asound\",\n                \"/proc/interrupts\",\n                \"/proc/kcore\",\n                \"/proc/keys\",\n                \"/proc/latency_stats\",\n                \"/proc/sched_debug\",\n                \"/proc/scsi\",\n                \"/proc/timer_list\",\n                \"/proc/timer_stats\",\n                \"/sys/devices/virtual/powercap\",\n                \"/sys/firmware\"\n            ],\n            \"ReadonlyPaths\": [\n                \"/proc/bus\",\n                \"/proc/fs\",\n                \"/proc/irq\",\n                \"/proc/sys\",\n                \"/proc/sysrq-trigger\"\n            ]\n        },\n        \"Storage\": {\n            \"RootFS\": {\n                \"Snapshot\": {\n                    \"Name\": \"overlayfs\"\n                }\n            }\n        },\n        \"Mounts\": [\n            {\n                \"Type\": \"volume\",\n                \"Name\": \"18148e70b4d9a2d7565e0d0ee2d609310628107f03007fac32acc343936d300d\",\n                \"Source\": \"/var/lib/docker/volumes/18148e70b4d9a2d7565e0d0ee2d609310628107f03007fac32acc343936d300d/_data\",\n                \"Destination\": \"/var/lib/postgresql/data\",\n                \"Driver\": \"local\",\n                \"Mode\": \"\",\n                \"RW\": true,\n                \"Propagation\": \"\"\n            }\n        ],\n        \"Config\": {\n            \"Hostname\": \"5947a11f0be0\",\n            \"Domainname\": \"\",\n            \"User\": \"\",\n            \"AttachStdin\": false,\n            \"AttachStdout\": false,\n            \"AttachStderr\": false,\n            \"ExposedPorts\": {\n                \"5432/tcp\": {}\n            },\n            \"Tty\": false,\n            \"OpenStdin\": false,\n            \"StdinOnce\": false,\n            \"Env\": [\n                \"POSTGRES_HOST_AUTH_METHOD=trust\",\n                \"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/10/bin\",\n                \"GOSU_VERSION=1.14\",\n                \"LANG=en_US.utf8\",\n                \"PG_MAJOR=10\",\n                \"PG_VERSION=10.21-1.pgdg90+1\",\n                \"PGDATA=/var/lib/postgresql/data\"\n            ],\n            \"Cmd\": [\n                \"postgres\",\n                \"-c\",\n                \"listen_addresses=*\",\n                \"-c\",\n                \"log_destination=csvlog\",\n                \"-c\",\n                \"logging_collector=on\",\n                \"-c\",\n                \"log_directory=log\",\n                \"-c\",\n                \"log_filename=postgresql-%Y%m%d%H%M%S.log\",\n                \"-c\",\n                \"log_min_messages=error\",\n                \"-c\",\n                \"log_min_error_statement=error\",\n                \"-c\",\n                \"log_error_verbosity=verbose\",\n                \"-c\",\n                \"wal_level=logical\",\n                \"-c\",\n                \"max_wal_senders=10\",\n                \"-c\",\n                \"max_replication_slots=10\"\n            ],\n            \"Image\": \"postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc\",\n            \"Volumes\": {\n                \"/var/lib/postgresql/data\": {}\n            },\n            \"WorkingDir\": \"\",\n            \"Entrypoint\": [\n                \"docker-entrypoint.sh\"\n            ],\n            \"Labels\": {},\n            \"StopSignal\": \"SIGINT\",\n            \"StopTimeout\": 1\n        },\n        \"NetworkSettings\": {\n            \"SandboxID\": \"ffc9c28ffe9c2a369693a78df5f2a02e509ab6b428cdc33b84421bae58128404\",\n            \"SandboxKey\": \"/var/run/docker/netns/ffc9c28ffe9c\",\n            \"Ports\": {\n                \"5432/tcp\": [\n                    {\n                        \"HostIp\": \"127.0.0.1\",\n                        \"HostPort\": \"57917\"\n                    }\n                ]\n            },\n            \"Networks\": {\n                \"bridge\": {\n                    \"IPAMConfig\": null,\n                    \"Links\": null,\n                    \"Aliases\": null,\n                    \"DriverOpts\": null,\n                    \"GwPriority\": 0,\n                    \"NetworkID\": \"aed51554f8cd8bac69ecd4f073e41e147fda7b458e9d95be2af472651f2e825c\",\n                    \"EndpointID\": \"269393effcd12fd755212621c6caa6c263dd5315ca0a93ffc22c936e6ffe4567\",\n                    \"Gateway\": \"172.17.0.1\",\n                    \"IPAddress\": \"172.17.0.53\",\n                    \"MacAddress\": \"46:dd:fa:a8:3c:dc\",\n                    \"IPPrefixLen\": 16,\n                    \"IPv6Gateway\": \"\",\n                    \"GlobalIPv6Address\": \"\",\n                    \"GlobalIPv6PrefixLen\": 0,\n                    \"DNSNames\": null\n                }\n            }\n        },\n        \"ImageManifestDescriptor\": {\n            \"mediaType\": \"application/vnd.docker.distribution.manifest.v2+json\",\n            \"digest\": \"sha256:52aada7978f1eef3b6b52a51afb7a3defd69254d00c946cb90d2ceb32b8ffce7\",\n            \"size\": 3246,\n            \"platform\": {\n                \"architecture\": \"arm64\",\n                \"os\": \"linux\",\n                \"variant\": \"v8\"\n            }\n        }\n    }\n]\n"
            }
          }
        }
      ]
    },
    {
      "sqlstate": "55006",
      "condition_name": "object_in_use",
      "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#L425",
          "lines": "425"
        },
        {
          "id": "src.path.0",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/dbcommands.c",
          "sha256": "64b77d2197dce16eb1ad19d8168382459d621a03df0b00be157f7db39ca22acf",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/dbcommands.c#L1407",
          "lines": "1407-1411"
        },
        {
          "id": "src.path.1",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/dbcommands.c",
          "sha256": "64b77d2197dce16eb1ad19d8168382459d621a03df0b00be157f7db39ca22acf",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/dbcommands.c#L1752",
          "lines": "1752-1774"
        },
        {
          "id": "src.path.2",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/tablecmds.c",
          "sha256": "422dc8e833df4940755973c757e338295822ba3e4c7266c40669f49f96eb15a9",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/tablecmds.c#L4431",
          "lines": "4431-4444"
        },
        {
          "id": "src.active-cursor.18.6",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/tablecmds.c",
          "sha256": "422dc8e833df4940755973c757e338295822ba3e4c7266c40669f49f96eb15a9",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/tablecmds.c#L4431-L4435"
        },
        {
          "id": "src.active-cursor.10.23",
          "kind": "upstream_source",
          "source_role": "source_call",
          "tag": "REL_10_23",
          "commit": "02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4",
          "path": "src/backend/commands/tablecmds.c",
          "sha256": "6de441c88496c6cf57a836898388085ec08bf69afd70d07acdafd6089b9b5f8c",
          "url": "https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/commands/tablecmds.c#L3072-L3077"
        },
        {
          "id": "manifest.55006",
          "kind": "local_artifact",
          "source_role": "case_manifest",
          "sha256": "ba1f597f1250488a70187cce54fb5ee3b5271cc59c8bf14ccb89fc2580155577"
        },
        {
          "id": "snippet-registry.55006",
          "kind": "local_artifact",
          "source_role": "snippet_registry",
          "sha256": "7df91ab045a8fe307bc2f025c17f53d6e107fa392afe2b45dbb457c42fbcd74e"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "tag": "REL_18_6",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        },
        {
          "id": "src.calls.REL_10_23",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "tag": "REL_10_23",
          "sha256": "00d16d3eb01b71ccf1b245c8f3102f9d0ec9f36fb02777b8dd1b99fcb263040c"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "55006 is object_in_use in SQLSTATE Class 55.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read fixed definition."
        },
        {
          "id": "resolved-paths",
          "statement": "The cited PostgreSQL 18.6 source paths support the representative resource and object-state mechanisms described.",
          "sources": [
            "src.path.0",
            "src.path.1",
            "src.path.2"
          ],
          "method": "Read complete fixed source contexts.",
          "limits": "Source confirmation is not natural runtime."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 55006 from 7.4; that boundary does not prove exact implementation introduction.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue boundary."
        },
        {
          "id": "mechanism.active-cursor",
          "statement": "The selected table-command path reports 55006 when the same session attempts DROP while its transaction-owned cursor still uses the table.",
          "sources": [
            "src.active-cursor.18.6",
            "src.active-cursor.10.23"
          ],
          "method": "Read fixed tablecmds.c source-call records and compare the explicit transaction/cursor case.",
          "limits": "Other 55006 branches cover databases, logical replication, and pending trigger events."
        },
        {
          "id": "runtime.representative-case",
          "statement": "The active_cursor_drop case passed on isolated PostgreSQL 18.6 and 10.21; rollback released the cursor transaction and the same session then dropped the table.",
          "sources": [
            "manifest.55006",
            "snippet-registry.55006"
          ],
          "method": "Execute the shared registry and inspect SQLSTATE, severity, INERROR to IDLE recovery, DDL repair, cleanup, and target stop.",
          "limits": "Scope is one same-session cursor/table path; it does not establish behavior for unrelated database or replication blockers.",
          "runtime": [
            "runtime.ops-55006-latest-2.latest",
            "runtime.ops-55006-pg10-1.pg10"
          ]
        }
      ],
      "messages": [
        {
          "id": "message.0",
          "sqlstate": "55006",
          "primary_template": "source database \"%s\" is being accessed by other users",
          "severity_source": "ERROR",
          "sources": [
            "src.path.0"
          ]
        },
        {
          "id": "message.1",
          "sqlstate": "55006",
          "primary_template": "database \"%s\" is used by an active logical replication slot",
          "severity_source": "ERROR",
          "sources": [
            "src.path.1"
          ]
        },
        {
          "id": "message.2",
          "sqlstate": "55006",
          "primary_template": "cannot %s \"%s\" because it is being used by active queries in this session",
          "severity_source": "ERROR",
          "sources": [
            "src.path.2"
          ]
        },
        {
          "id": "message.3",
          "sqlstate": "55006",
          "primary_template": "cannot %s \"%s\" because it has pending trigger events",
          "severity_source": "ERROR",
          "sources": [
            "src.path.2"
          ],
          "limits": "This is a separate current-transaction branch from the active-query reference-count branch."
        },
        {
          "id": "message.active-cursor.18.6",
          "sqlstate": "55006",
          "primary_template": "cannot %s \"%s\" because it is being used by active queries in this session",
          "severity_source": "ERROR",
          "sources": [
            "src.active-cursor.18.6"
          ]
        },
        {
          "id": "message.active-cursor.10.23",
          "sqlstate": "55006",
          "primary_template": "cannot %s \"%s\" because it is being used by active queries in this session",
          "severity_source": "ERROR",
          "sources": [
            "src.active-cursor.10.23"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "resolved-paths"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "selected-case-18.6-and-10.21",
          "status": "observed_runtime",
          "evidence_ids": [
            "runtime.ops-55006-latest-2.latest",
            "runtime.ops-55006-pg10-1.pg10",
            "runtime.representative-case"
          ]
        }
      ],
      "runtime": [
        {
          "id": "runtime.ops-55006-latest-2.latest",
          "run_id": "ops-55006-latest-2",
          "target": "latest",
          "status": "passed",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "summary_sha256": "877c2f2da43a65ff859b4ee888da5a19d357c8ee0341216c0359c65b1997cb74",
          "raw_sha256": "1338c25d5b5349269a08a72f37669e6dce5801bbd4864c135586a10c0c836a0b",
          "case_manifest": {
            "id": "manifest.55006",
            "kind": "local_artifact",
            "source_role": "case_manifest",
            "sha256": "ba1f597f1250488a70187cce54fb5ee3b5271cc59c8bf14ccb89fc2580155577"
          },
          "snippet_registry": {
            "id": "snippet-registry.55006",
            "kind": "local_artifact",
            "source_role": "snippet_registry",
            "sha256": "7df91ab045a8fe307bc2f025c17f53d6e107fa392afe2b45dbb457c42fbcd74e"
          },
          "environment": {
            "TimeZone": "Asia/Shanghai",
            "backend_pid": 43851,
            "binary": {
              "bindir": "/opt/homebrew/Cellar/postgresql@18/18.6/bin",
              "pg_config": "/opt/homebrew/bin/pg_config",
              "pg_config_version": "PostgreSQL 18.6 (Homebrew)",
              "postgres": "/opt/homebrew/Cellar/postgresql@18/18.6/bin/postgres"
            },
            "connection_scope": "runner-owned localhost port",
            "current_user": "runner",
            "docker": {},
            "lc_messages": "C",
            "libpq_version": "18.6",
            "locale": "C.UTF-8",
            "log_destination": "csvlog,jsonlog",
            "log_error_verbosity": "verbose",
            "log_min_error_statement": "error",
            "log_min_messages": "error",
            "logging_collector": "on",
            "machine": "arm64",
            "max_connections": "100",
            "platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O",
            "psycopg_version": "3.3.5",
            "python_version": "3.14.6 (main, Jun 10 2026, 10:03:53) [Clang 21.0.0 (clang-2100.0.123.102)]",
            "server_encoding": "UTF8",
            "server_version": "18.6 (Homebrew)",
            "server_version_num": "180006",
            "target_kind": "latest",
            "wal_level": "logical"
          },
          "cases": [
            "active_cursor_drop"
          ],
          "observed": {
            "connection_autocommit": true,
            "cursor": "active_cursor_9a6f4bbd",
            "diagnostic": {
              "column_name": null,
              "constraint_name": null,
              "context": null,
              "datatype_name": null,
              "exception_type": "ObjectInUse",
              "internal_position": null,
              "internal_query": null,
              "message_detail": null,
              "message_hint": null,
              "message_primary": "cannot DROP TABLE \"cursor_drop_table\" because it is being used by active queries in this session",
              "schema_name": null,
              "severity": "ERROR",
              "severity_nonlocalized": "ERROR",
              "source_file": "tablecmds.c",
              "source_function": "CheckTableNotInUse",
              "source_line": "4435",
              "sqlstate": "55006",
              "statement_position": null,
              "table_name": null,
              "text": "cannot DROP TABLE \"cursor_drop_table\" because it is being used by active queries in this session"
            },
            "repair": "ROLLBACK releases the transaction-owned cursor, then DROP TABLE succeeds on the same connection.",
            "statuses": {
              "after_error": "INERROR",
              "after_repair": "IDLE",
              "after_rollback": "IDLE",
              "before_drop": "INTRANS"
            },
            "table": "\"c55006_active_cursor_drop\".\"cursor_drop_table\""
          },
          "assertions": [
            {
              "expected": "55006",
              "name": "55006 SQLSTATE",
              "observed": "55006",
              "passed": true
            },
            {
              "expected": "ERROR",
              "name": "55006 ERROR severity",
              "observed": "ERROR",
              "passed": true
            },
            {
              "expected": "cannot drop ... because it is being used by active queries in this session",
              "name": "active cursor blocks table drop",
              "observed": "cannot DROP TABLE \"cursor_drop_table\" because it is being used by active queries in this session",
              "passed": true
            },
            {
              "expected": "INTRANS",
              "name": "cursor transaction is active before DDL",
              "observed": "INTRANS",
              "passed": true
            },
            {
              "expected": "INERROR",
              "name": "failed DROP aborts transaction",
              "observed": "INERROR",
              "passed": true
            },
            {
              "expected": "IDLE",
              "name": "rollback releases cursor and transaction",
              "observed": "IDLE",
              "passed": true
            },
            {
              "expected": {
                "remaining": null,
                "status": "IDLE"
              },
              "name": "released cursor permits same-session DROP",
              "observed": {
                "remaining": null,
                "status": "IDLE"
              },
              "passed": true
            }
          ],
          "cleanup": {
            "errors": [],
            "passed": true
          },
          "target_stop": {
            "argv": [
              "/opt/homebrew/Cellar/postgresql@18/18.6/bin/pg_ctl",
              "-D",
              "<local runtime artifact>",
              "-m",
              "fast",
              "-w",
              "stop"
            ],
            "elapsed_seconds": 0.11,
            "returncode": 0,
            "stderr": "",
            "stdout": "waiting for server to shut down.... done\nserver stopped\n"
          }
        },
        {
          "id": "runtime.ops-55006-pg10-1.pg10",
          "run_id": "ops-55006-pg10-1",
          "target": "pg10",
          "status": "passed",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "summary_sha256": "c92d34e3a4796ec4d721660566424ebcffd0dd19ab4381e22eef089267142a38",
          "raw_sha256": "e35d02729b81bf70d7f20c812d12e6049c5613254cf291dacee97f0b13c50dc5",
          "case_manifest": {
            "id": "manifest.55006",
            "kind": "local_artifact",
            "source_role": "case_manifest",
            "sha256": "ba1f597f1250488a70187cce54fb5ee3b5271cc59c8bf14ccb89fc2580155577"
          },
          "snippet_registry": {
            "id": "snippet-registry.55006",
            "kind": "local_artifact",
            "source_role": "snippet_registry",
            "sha256": "7df91ab045a8fe307bc2f025c17f53d6e107fa392afe2b45dbb457c42fbcd74e"
          },
          "environment": {
            "TimeZone": "Etc/UTC",
            "backend_pid": 79,
            "binary": {},
            "connection_scope": "runner-owned localhost port",
            "current_user": "postgres",
            "docker": {
              "architecture": "arm64",
              "command": "/usr/local/bin/docker",
              "digest": "sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
              "id": "sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
              "image": "postgres:10",
              "image_created": "2022-06-23T09:11:18.374607054Z",
              "image_ref": "postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
              "log_destination": "csvlog",
              "os": "linux",
              "repo_digests": [
                "postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc"
              ]
            },
            "lc_messages": "en_US.utf8",
            "libpq_version": "18.6",
            "locale": "C.UTF-8",
            "log_destination": "csvlog",
            "log_error_verbosity": "verbose",
            "log_min_error_statement": "error",
            "log_min_messages": "error",
            "logging_collector": "on",
            "machine": "arm64",
            "max_connections": "100",
            "platform": "macOS-26.6.2-arm64-arm-64bit-Mach-O",
            "psycopg_version": "3.3.5",
            "python_version": "3.14.6 (main, Jun 10 2026, 10:03:53) [Clang 21.0.0 (clang-2100.0.123.102)]",
            "server_encoding": "UTF8",
            "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
            "server_version_num": "100021",
            "target_kind": "pg10",
            "wal_level": "logical"
          },
          "cases": [
            "active_cursor_drop"
          ],
          "observed": {
            "connection_autocommit": true,
            "cursor": "active_cursor_cfa19ef4",
            "diagnostic": {
              "column_name": null,
              "constraint_name": null,
              "context": null,
              "datatype_name": null,
              "exception_type": "ObjectInUse",
              "internal_position": null,
              "internal_query": null,
              "message_detail": null,
              "message_hint": null,
              "message_primary": "cannot DROP TABLE \"cursor_drop_table\" because it is being used by active queries in this session",
              "schema_name": null,
              "severity": "ERROR",
              "severity_nonlocalized": "ERROR",
              "source_file": "tablecmds.c",
              "source_function": "CheckTableNotInUse",
              "source_line": "3077",
              "sqlstate": "55006",
              "statement_position": null,
              "table_name": null,
              "text": "cannot DROP TABLE \"cursor_drop_table\" because it is being used by active queries in this session"
            },
            "repair": "ROLLBACK releases the transaction-owned cursor, then DROP TABLE succeeds on the same connection.",
            "statuses": {
              "after_error": "INERROR",
              "after_repair": "IDLE",
              "after_rollback": "IDLE",
              "before_drop": "INTRANS"
            },
            "table": "\"c55006_active_cursor_drop\".\"cursor_drop_table\""
          },
          "assertions": [
            {
              "expected": "55006",
              "name": "55006 SQLSTATE",
              "observed": "55006",
              "passed": true
            },
            {
              "expected": "ERROR",
              "name": "55006 ERROR severity",
              "observed": "ERROR",
              "passed": true
            },
            {
              "expected": "cannot drop ... because it is being used by active queries in this session",
              "name": "active cursor blocks table drop",
              "observed": "cannot DROP TABLE \"cursor_drop_table\" because it is being used by active queries in this session",
              "passed": true
            },
            {
              "expected": "INTRANS",
              "name": "cursor transaction is active before DDL",
              "observed": "INTRANS",
              "passed": true
            },
            {
              "expected": "INERROR",
              "name": "failed DROP aborts transaction",
              "observed": "INERROR",
              "passed": true
            },
            {
              "expected": "IDLE",
              "name": "rollback releases cursor and transaction",
              "observed": "IDLE",
              "passed": true
            },
            {
              "expected": {
                "remaining": null,
                "status": "IDLE"
              },
              "name": "released cursor permits same-session DROP",
              "observed": {
                "remaining": null,
                "status": "IDLE"
              },
              "passed": true
            }
          ],
          "cleanup": {
            "errors": [],
            "passed": true
          },
          "target_stop": {
            "cleanup": {
              "argv": [
                "/usr/local/bin/docker",
                "rm",
                "-f",
                "-v",
                "sqlstate55006_ops55006pg101_pg10"
              ],
              "elapsed_seconds": 0.29,
              "returncode": 0,
              "stderr": "",
              "stdout": "sqlstate55006_ops55006pg101_pg10\n"
            },
            "inspect": {
              "argv": [
                "/usr/local/bin/docker",
                "inspect",
                "sqlstate55006_ops55006pg101_pg10"
              ],
              "elapsed_seconds": 0.017,
              "returncode": 0,
              "stderr": "",
              "stdout": "[\n    {\n        \"Id\": \"839d8d08b076745b3253bd79457d70b3acf5fc5aded8e1c76cabf404473e70d0\",\n        \"Created\": \"2026-09-09T17:11:05.029829009Z\",\n        \"Path\": \"docker-entrypoint.sh\",\n        \"Args\": [\n            \"postgres\",\n            \"-c\",\n            \"listen_addresses=*\",\n            \"-c\",\n            \"log_destination=csvlog\",\n            \"-c\",\n            \"logging_collector=on\",\n            \"-c\",\n            \"log_directory=log\",\n            \"-c\",\n            \"log_filename=postgresql-%Y%m%d%H%M%S.log\",\n            \"-c\",\n            \"log_min_messages=error\",\n            \"-c\",\n            \"log_min_error_statement=error\",\n            \"-c\",\n            \"log_error_verbosity=verbose\",\n            \"-c\",\n            \"wal_level=logical\",\n            \"-c\",\n            \"max_wal_senders=10\",\n            \"-c\",\n            \"max_replication_slots=10\"\n        ],\n        \"State\": {\n            \"Status\": \"running\",\n            \"Running\": true,\n            \"Paused\": false,\n            \"Restarting\": false,\n            \"OOMKilled\": false,\n            \"Dead\": false,\n            \"Pid\": 64557,\n            \"ExitCode\": 0,\n            \"Error\": \"\",\n            \"StartedAt\": \"2026-09-09T17:11:05.096534051Z\",\n            \"FinishedAt\": \"0001-01-01T00:00:00Z\"\n        },\n        \"Image\": \"sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc\",\n        \"ResolvConfPath\": \"/var/lib/docker/containers/839d8d08b076745b3253bd79457d70b3acf5fc5aded8e1c76cabf404473e70d0/resolv.conf\",\n        \"HostnamePath\": \"/var/lib/docker/containers/839d8d08b076745b3253bd79457d70b3acf5fc5aded8e1c76cabf404473e70d0/hostname\",\n        \"HostsPath\": \"/var/lib/docker/containers/839d8d08b076745b3253bd79457d70b3acf5fc5aded8e1c76cabf404473e70d0/hosts\",\n        \"LogPath\": \"/var/lib/docker/containers/839d8d08b076745b3253bd79457d70b3acf5fc5aded8e1c76cabf404473e70d0/839d8d08b076745b3253bd79457d70b3acf5fc5aded8e1c76cabf404473e70d0-json.log\",\n        \"Name\": \"/sqlstate55006_ops55006pg101_pg10\",\n        \"RestartCount\": 0,\n        \"Driver\": \"overlayfs\",\n        \"Platform\": \"linux\",\n        \"MountLabel\": \"\",\n        \"ProcessLabel\": \"\",\n        \"AppArmorProfile\": \"\",\n        \"ExecIDs\": null,\n        \"HostConfig\": {\n            \"Binds\": null,\n            \"ContainerIDFile\": \"\",\n            \"LogConfig\": {\n                \"Type\": \"json-file\",\n                \"Config\": {}\n            },\n            \"NetworkMode\": \"bridge\",\n            \"PortBindings\": {\n                \"5432/tcp\": [\n                    {\n                        \"HostIp\": \"127.0.0.1\",\n                        \"HostPort\": \"\"\n                    }\n                ]\n            },\n            \"RestartPolicy\": {\n                \"Name\": \"no\",\n                \"MaximumRetryCount\": 0\n            },\n            \"AutoRemove\": false,\n            \"VolumeDriver\": \"\",\n            \"VolumesFrom\": null,\n            \"ConsoleSize\": [\n                0,\n                0\n            ],\n            \"CapAdd\": null,\n            \"CapDrop\": null,\n            \"CgroupnsMode\": \"private\",\n            \"Dns\": null,\n            \"DnsOptions\": [],\n            \"DnsSearch\": [],\n            \"ExtraHosts\": null,\n            \"GroupAdd\": null,\n            \"IpcMode\": \"private\",\n            \"Cgroup\": \"\",\n            \"Links\": null,\n            \"OomScoreAdj\": 0,\n            \"PidMode\": \"\",\n            \"Privileged\": false,\n            \"PublishAllPorts\": false,\n            \"ReadonlyRootfs\": false,\n            \"SecurityOpt\": null,\n            \"UTSMode\": \"\",\n            \"UsernsMode\": \"\",\n            \"ShmSize\": 67108864,\n            \"Runtime\": \"runc\",\n            \"Isolation\": \"\",\n            \"CpuShares\": 0,\n            \"Memory\": 0,\n            \"NanoCpus\": 0,\n            \"CgroupParent\": \"\",\n            \"BlkioWeight\": 0,\n            \"BlkioWeightDevice\": [],\n            \"BlkioDeviceReadBps\": [],\n            \"BlkioDeviceWriteBps\": [],\n            \"BlkioDeviceReadIOps\": [],\n            \"BlkioDeviceWriteIOps\": [],\n            \"CpuPeriod\": 0,\n            \"CpuQuota\": 0,\n            \"CpuRealtimePeriod\": 0,\n            \"CpuRealtimeRuntime\": 0,\n            \"CpusetCpus\": \"\",\n            \"CpusetMems\": \"\",\n            \"Devices\": [],\n            \"DeviceCgroupRules\": null,\n            \"DeviceRequests\": null,\n            \"MemoryReservation\": 0,\n            \"MemorySwap\": 0,\n            \"MemorySwappiness\": null,\n            \"OomKillDisable\": null,\n            \"PidsLimit\": null,\n            \"Ulimits\": [],\n            \"CpuCount\": 0,\n            \"CpuPercent\": 0,\n            \"IOMaximumIOps\": 0,\n            \"IOMaximumBandwidth\": 0,\n            \"MaskedPaths\": [\n                \"/proc/acpi\",\n                \"/proc/asound\",\n                \"/proc/interrupts\",\n                \"/proc/kcore\",\n                \"/proc/keys\",\n                \"/proc/latency_stats\",\n                \"/proc/sched_debug\",\n                \"/proc/scsi\",\n                \"/proc/timer_list\",\n                \"/proc/timer_stats\",\n                \"/sys/devices/virtual/powercap\",\n                \"/sys/firmware\"\n            ],\n            \"ReadonlyPaths\": [\n                \"/proc/bus\",\n                \"/proc/fs\",\n                \"/proc/irq\",\n                \"/proc/sys\",\n                \"/proc/sysrq-trigger\"\n            ]\n        },\n        \"Storage\": {\n            \"RootFS\": {\n                \"Snapshot\": {\n                    \"Name\": \"overlayfs\"\n                }\n            }\n        },\n        \"Mounts\": [\n            {\n                \"Type\": \"volume\",\n                \"Name\": \"01ab825d5cecdce48ba964a52f36043a0f441e32e41aa4ebcbdf85573b43e9cc\",\n                \"Source\": \"/var/lib/docker/volumes/01ab825d5cecdce48ba964a52f36043a0f441e32e41aa4ebcbdf85573b43e9cc/_data\",\n                \"Destination\": \"/var/lib/postgresql/data\",\n                \"Driver\": \"local\",\n                \"Mode\": \"\",\n                \"RW\": true,\n                \"Propagation\": \"\"\n            }\n        ],\n        \"Config\": {\n            \"Hostname\": \"839d8d08b076\",\n            \"Domainname\": \"\",\n            \"User\": \"\",\n            \"AttachStdin\": false,\n            \"AttachStdout\": false,\n            \"AttachStderr\": false,\n            \"ExposedPorts\": {\n                \"5432/tcp\": {}\n            },\n            \"Tty\": false,\n            \"OpenStdin\": false,\n            \"StdinOnce\": false,\n            \"Env\": [\n                \"POSTGRES_HOST_AUTH_METHOD=trust\",\n                \"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/10/bin\",\n                \"GOSU_VERSION=1.14\",\n                \"LANG=en_US.utf8\",\n                \"PG_MAJOR=10\",\n                \"PG_VERSION=10.21-1.pgdg90+1\",\n                \"PGDATA=/var/lib/postgresql/data\"\n            ],\n            \"Cmd\": [\n                \"postgres\",\n                \"-c\",\n                \"listen_addresses=*\",\n                \"-c\",\n                \"log_destination=csvlog\",\n                \"-c\",\n                \"logging_collector=on\",\n                \"-c\",\n                \"log_directory=log\",\n                \"-c\",\n                \"log_filename=postgresql-%Y%m%d%H%M%S.log\",\n                \"-c\",\n                \"log_min_messages=error\",\n                \"-c\",\n                \"log_min_error_statement=error\",\n                \"-c\",\n                \"log_error_verbosity=verbose\",\n                \"-c\",\n                \"wal_level=logical\",\n                \"-c\",\n                \"max_wal_senders=10\",\n                \"-c\",\n                \"max_replication_slots=10\"\n            ],\n            \"Image\": \"postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc\",\n            \"Volumes\": {\n                \"/var/lib/postgresql/data\": {}\n            },\n            \"WorkingDir\": \"\",\n            \"Entrypoint\": [\n                \"docker-entrypoint.sh\"\n            ],\n            \"Labels\": {},\n            \"StopSignal\": \"SIGINT\",\n            \"StopTimeout\": 1\n        },\n        \"NetworkSettings\": {\n            \"SandboxID\": \"bbf6b564334edf67af6427d14467ba63430612f08485b07cf13f60a2ae19a15e\",\n            \"SandboxKey\": \"/var/run/docker/netns/bbf6b564334e\",\n            \"Ports\": {\n                \"5432/tcp\": [\n                    {\n                        \"HostIp\": \"127.0.0.1\",\n                        \"HostPort\": \"57946\"\n                    }\n                ]\n            },\n            \"Networks\": {\n                \"bridge\": {\n                    \"IPAMConfig\": null,\n                    \"Links\": null,\n                    \"Aliases\": null,\n                    \"DriverOpts\": null,\n                    \"GwPriority\": 0,\n                    \"NetworkID\": \"aed51554f8cd8bac69ecd4f073e41e147fda7b458e9d95be2af472651f2e825c\",\n                    \"EndpointID\": \"b3a144adc411c0ed3bab17eeae957a54ef048406de3dab6042b142802019646b\",\n                    \"Gateway\": \"172.17.0.1\",\n                    \"IPAddress\": \"172.17.0.53\",\n                    \"MacAddress\": \"12:d2:e3:dc:02:23\",\n                    \"IPPrefixLen\": 16,\n                    \"IPv6Gateway\": \"\",\n                    \"GlobalIPv6Address\": \"\",\n                    \"GlobalIPv6PrefixLen\": 0,\n                    \"DNSNames\": null\n                }\n            }\n        },\n        \"ImageManifestDescriptor\": {\n            \"mediaType\": \"application/vnd.docker.distribution.manifest.v2+json\",\n            \"digest\": \"sha256:52aada7978f1eef3b6b52a51afb7a3defd69254d00c946cb90d2ceb32b8ffce7\",\n            \"size\": 3246,\n            \"platform\": {\n                \"architecture\": \"arm64\",\n                \"os\": \"linux\",\n                \"variant\": \"v8\"\n            }\n        }\n    }\n]\n"
            }
          }
        }
      ]
    },
    {
      "sqlstate": "55P02",
      "condition_name": "cant_change_runtime_param",
      "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#L426",
          "lines": "426"
        },
        {
          "id": "src.path.0",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/misc/guc.c",
          "sha256": "3021d40bb4e920a56fbc5e9452e32903a7364d7ce0aece65be70aa3c34c1274e",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/misc/guc.c#L3407",
          "lines": "3407-3428"
        },
        {
          "id": "src.path.1",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/misc/guc.c",
          "sha256": "3021d40bb4e920a56fbc5e9452e32903a7364d7ce0aece65be70aa3c34c1274e",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/misc/guc.c#L3477",
          "lines": "3477-3512"
        },
        {
          "id": "src.path.2",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/misc/guc.c",
          "sha256": "3021d40bb4e920a56fbc5e9452e32903a7364d7ce0aece65be70aa3c34c1274e",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/misc/guc.c#L3550",
          "lines": "3550-3581"
        },
        {
          "id": "src.path.3",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/pg_upgrade_support.c",
          "sha256": "c9b9bfb233db85f0b8029f791d6cf39f6c479c3f7274dc2d7af0b79fbfbbd4ad",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/pg_upgrade_support.c#L32",
          "lines": "32-39"
        },
        {
          "id": "src.path.4",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/misc/guc.c",
          "sha256": "3021d40bb4e920a56fbc5e9452e32903a7364d7ce0aece65be70aa3c34c1274e",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/misc/guc.c#L4691",
          "lines": "4691-4694"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "55P02 is cant_change_runtime_param in SQLSTATE Class 55.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read fixed definition."
        },
        {
          "id": "resolved-paths",
          "statement": "The fixed GUC context guards, caller severity selection, ALTER SYSTEM guard, and binary-upgrade guard support the mechanisms described.",
          "sources": [
            "src.path.0",
            "src.path.1",
            "src.path.2",
            "src.path.3",
            "src.path.4"
          ],
          "method": "Read complete fixed source contexts.",
          "limits": "Source confirmation is not natural runtime."
        },
        {
          "id": "severity-boundary",
          "statement": "The same report group uses caller-supplied elevel: SQL settings normally reach ERROR, while file/database/role sources can use LOG or WARNING.",
          "sources": [
            "src.path.0"
          ],
          "method": "Read set_config_with_handle severity selection."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 55P02 from 7.4; that boundary does not prove exact implementation introduction.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue boundary."
        }
      ],
      "messages": [
        {
          "id": "message.0",
          "sqlstate": "55P02",
          "primary_template": "parameter \"%s\" cannot be changed without restarting the server",
          "severity_source": "caller-supplied elevel (normally ERROR for SQL SET; LOG/WARNING possible for configuration sources)",
          "sources": [
            "src.path.1",
            "src.path.4"
          ]
        },
        {
          "id": "message.1",
          "sqlstate": "55P02",
          "primary_template": "parameter \"%s\" cannot be changed now",
          "severity_source": "caller-supplied elevel",
          "sources": [
            "src.path.1"
          ]
        },
        {
          "id": "message.2",
          "sqlstate": "55P02",
          "primary_template": "parameter \"%s\" cannot be set after connection start",
          "severity_source": "caller-supplied elevel",
          "sources": [
            "src.path.2"
          ]
        },
        {
          "id": "message.3",
          "sqlstate": "55P02",
          "primary_template": "parameter \"%s\" cannot be changed",
          "severity_source": "ERROR",
          "sources": [
            "src.path.3",
            "src.path.4"
          ]
        },
        {
          "id": "message.4",
          "sqlstate": "55P02",
          "primary_template": "function can only be called when server is in binary upgrade mode",
          "severity_source": "ERROR",
          "sources": [
            "src.path.3"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "resolved-paths",
            "severity-boundary"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "resolved-paths"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "55P03",
      "condition_name": "lock_not_available",
      "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#L427",
          "lines": "427"
        },
        {
          "id": "src.path.0",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/access/heap/heapam.c",
          "sha256": "57e3396476fc5d269bd2944b549a671f2699bf8ed43668e661090548ca206a16",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/heap/heapam.c#L5178",
          "lines": "5178-5210"
        },
        {
          "id": "src.path.1",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/catalog/namespace.c",
          "sha256": "8c9e6a99e84fa2cec8a9b1de2ecbe3966a13f4ad68c6ccfbfb8134a754d73e56",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/catalog/namespace.c#L585",
          "lines": "585-610"
        },
        {
          "id": "src.path.2",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/tcop/postgres.c",
          "sha256": "9fb62275b1badf94d01ab351337b60410cd9b3ab1fe63fa9f23d6d2185a21061",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/tcop/postgres.c#L3420",
          "lines": "3420-3444"
        },
        {
          "id": "src.path.3",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/lockcmds.c",
          "sha256": "60aba2c1ed1ee527fa1e3c065ee43cff40be3916c7252c95531fd7af5f8c713c",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/lockcmds.c#L130",
          "lines": "130-145"
        },
        {
          "id": "src.path.4",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/vacuum.c",
          "sha256": "bb9071c3813d8dc92b67364a5886aa6139c9ac27e3dc5952e1cb3032b16a0106",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/vacuum.c#L835",
          "lines": "835-880"
        },
        {
          "id": "manifest.55P03",
          "kind": "local_artifact",
          "source_role": "case_manifest",
          "sha256": "66dca33d6dad88ae709af19161d3d1bd6f7cd7f46fa4e549e40845dce7ca830f"
        },
        {
          "id": "snippet-registry.55P03",
          "kind": "local_artifact",
          "source_role": "snippet_registry",
          "sha256": "b38eb524cc6b4080a80b9ea231fe06bd87b27061c810b0b94992bbb18a172f91"
        },
        {
          "id": "runtime.ops-55p03-latest-1.latest",
          "kind": "local_artifact",
          "source_role": "runtime_result",
          "sha256": "576dcff7c4675c49e88c193bcf8c82e833c8c2003896aed9920ffe8b4fb539b2"
        },
        {
          "id": "runtime-raw.ops-55p03-latest-1.latest",
          "kind": "local_artifact",
          "source_role": "runtime_raw",
          "sha256": "a12c4e0f493890f79eb7640b62bf7529fd105106a999383d444992a091ddfb99"
        },
        {
          "id": "runtime.ops-55p03-pg10-1.pg10",
          "kind": "local_artifact",
          "source_role": "runtime_result",
          "sha256": "1b9030d8f33edeff84d946df3d347805e7d41f54048d2eed7f1ebc01fe075d8b"
        },
        {
          "id": "runtime-raw.ops-55p03-pg10-1.pg10",
          "kind": "local_artifact",
          "source_role": "runtime_raw",
          "sha256": "4e45d18e453e859fa01887db2097443e6cdc7bcc83830d14cd97db023ce2817e"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "55P03 is lock_not_available in SQLSTATE Class 55.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read fixed definition."
        },
        {
          "id": "resolved-paths",
          "statement": "The fixed row-lock, relation-lock, LOCK TABLE, lock_timeout, and maintenance paths support the concrete mechanisms and messages described.",
          "sources": [
            "src.path.0",
            "src.path.1",
            "src.path.2",
            "src.path.3",
            "src.path.4"
          ],
          "method": "Read complete fixed source contexts.",
          "limits": "Source confirmation is not natural runtime."
        },
        {
          "id": "maintenance-severity",
          "statement": "VACUUM/ANALYZE emits this SQLSTATE at WARNING for normal maintenance or LOG for verbose autovacuum, while lock and timeout paths use ERROR.",
          "sources": [
            "src.path.4",
            "src.path.2"
          ],
          "method": "Read the selected elevel branches."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 55P03 from 8.0.0; that boundary does not prove exact implementation introduction.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue boundary."
        },
        {
          "id": "runtime.representative-case",
          "statement": "The nowait_row_lock case passed on PostgreSQL 18.6 and 10.21 with SQLSTATE, severity or disconnect outcome, recovery/repair, cleanup, and isolated-target stop assertions.",
          "sources": [
            "runtime.ops-55p03-latest-1.latest",
            "runtime.ops-55p03-pg10-1.pg10",
            "manifest.55P03",
            "snippet-registry.55P03"
          ],
          "method": "Execute the shared registry and inspect the selected summaries.",
          "limits": "This is one bounded mechanism; it does not establish every source branch or business outcome.",
          "runtime": [
            "runtime.ops-55p03-latest-1.latest",
            "runtime.ops-55p03-pg10-1.pg10"
          ]
        }
      ],
      "messages": [
        {
          "id": "message.0",
          "sqlstate": "55P03",
          "primary_template": "could not obtain lock on row in relation \"%s\"",
          "severity_source": "ERROR",
          "sources": [
            "src.path.0"
          ]
        },
        {
          "id": "message.1",
          "sqlstate": "55P03",
          "primary_template": "could not obtain lock on relation \"%s.%s\"",
          "severity_source": "ERROR or DEBUG1 for skip-locked relation lookup",
          "sources": [
            "src.path.1"
          ]
        },
        {
          "id": "message.2",
          "sqlstate": "55P03",
          "primary_template": "canceling statement due to lock timeout",
          "severity_source": "ERROR",
          "sources": [
            "src.path.2"
          ]
        },
        {
          "id": "message.3",
          "sqlstate": "55P03",
          "primary_template": "could not obtain lock on relation \"%s\"",
          "severity_source": "ERROR",
          "sources": [
            "src.path.3"
          ]
        },
        {
          "id": "message.4",
          "sqlstate": "55P03",
          "primary_template": "skipping vacuum of \"%s\" --- lock not available",
          "severity_source": "WARNING for ordinary maintenance or LOG for verbose autovacuum",
          "sources": [
            "src.path.4"
          ]
        },
        {
          "id": "message.5",
          "sqlstate": "55P03",
          "primary_template": "skipping analyze of \"%s\" --- lock not available",
          "severity_source": "WARNING for ordinary maintenance or LOG for verbose autovacuum",
          "sources": [
            "src.path.4"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "resolved-paths"
          ]
        },
        {
          "scope": "selected natural runtime case",
          "status": "observed_runtime",
          "evidence_ids": [
            "runtime.representative-case",
            "runtime.ops-55p03-latest-1.latest",
            "runtime.ops-55p03-pg10-1.pg10"
          ]
        }
      ],
      "runtime": [
        {
          "id": "runtime.ops-55p03-latest-1.latest",
          "run_id": "ops-55p03-latest-1",
          "target": "latest",
          "status": "passed",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "summary_sha256": "576dcff7c4675c49e88c193bcf8c82e833c8c2003896aed9920ffe8b4fb539b2",
          "raw_sha256": "a12c4e0f493890f79eb7640b62bf7529fd105106a999383d444992a091ddfb99",
          "case_manifest": {
            "id": "manifest.55P03",
            "kind": "local_artifact",
            "source_role": "case_manifest"
          },
          "snippet_registry": {
            "id": "snippet-registry.55P03",
            "kind": "local_artifact",
            "source_role": "snippet_registry",
            "sha256": "b38eb524cc6b4080a80b9ea231fe06bd87b27061c810b0b94992bbb18a172f91"
          },
          "environment": {
            "server_version": "18.6 (Homebrew)",
            "server_version_num": "180006",
            "current_user": "runner",
            "connection_scope": "runner-owned localhost port",
            "log_destination": "csvlog,jsonlog",
            "log_error_verbosity": "verbose",
            "psycopg_version": "3.3.5",
            "libpq_version": "18.6",
            "target_kind": "latest"
          },
          "cases": [
            "nowait_row_lock"
          ],
          "observed": {
            "connections_autocommit": {
              "blocker": true,
              "contender": true
            },
            "diagnostic": {
              "column_name": null,
              "constraint_name": null,
              "context": null,
              "datatype_name": null,
              "exception_type": "LockNotAvailable",
              "internal_position": null,
              "internal_query": null,
              "message_detail": null,
              "message_hint": null,
              "message_primary": "could not obtain lock on row in relation \"nowait_rows\"",
              "schema_name": null,
              "severity": "ERROR",
              "severity_nonlocalized": "ERROR",
              "source_file": "heapam.c",
              "source_function": "heap_lock_tuple",
              "source_line": "5235",
              "sqlstate": "55P03",
              "statement_position": null,
              "table_name": null,
              "text": "could not obtain lock on row in relation \"nowait_rows\""
            },
            "repair_marker": "repaired",
            "statuses": {
              "blocker_after_lock": "INTRANS",
              "blocker_after_release": "IDLE",
              "contender_after_nowait": "IDLE",
              "contender_after_repair": "IDLE"
            },
            "synchronization": "The blocker acquired SELECT FOR UPDATE before the contender issued SELECT FOR UPDATE NOWAIT; no timing sleep is used.",
            "table": "\"c55p03_nowait_row_lock\".\"nowait_rows\""
          },
          "assertions": [
            {
              "expected": "55P03",
              "name": "55P03 SQLSTATE",
              "observed": "55P03",
              "passed": true
            },
            {
              "expected": "ERROR",
              "name": "55P03 ERROR severity",
              "observed": "ERROR",
              "passed": true
            },
            {
              "expected": "could not obtain lock ... in relation nowait_rows",
              "name": "NOWAIT reports lock-not-available",
              "observed": "could not obtain lock on row in relation \"nowait_rows\"",
              "passed": true
            },
            {
              "expected": "INTRANS",
              "name": "blocker holds the explicit transaction",
              "observed": "INTRANS",
              "passed": true
            },
            {
              "expected": "IDLE",
              "name": "NOWAIT failure leaves contender usable",
              "observed": "IDLE",
              "passed": true
            },
            {
              "expected": "IDLE",
              "name": "rollback releases blocker",
              "observed": "IDLE",
              "passed": true
            },
            {
              "expected": {
                "marker": "repaired",
                "status": "IDLE"
              },
              "name": "same contender retries after release",
              "observed": {
                "status": "IDLE",
                "updated": "repaired",
                "verified": "repaired"
              },
              "passed": true
            }
          ],
          "cleanup": {
            "errors": [],
            "passed": true
          }
        },
        {
          "id": "runtime.ops-55p03-pg10-1.pg10",
          "run_id": "ops-55p03-pg10-1",
          "target": "pg10",
          "status": "passed",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "summary_sha256": "1b9030d8f33edeff84d946df3d347805e7d41f54048d2eed7f1ebc01fe075d8b",
          "raw_sha256": "4e45d18e453e859fa01887db2097443e6cdc7bcc83830d14cd97db023ce2817e",
          "case_manifest": {
            "id": "manifest.55P03",
            "kind": "local_artifact",
            "source_role": "case_manifest"
          },
          "snippet_registry": {
            "id": "snippet-registry.55P03",
            "kind": "local_artifact",
            "source_role": "snippet_registry",
            "sha256": "b38eb524cc6b4080a80b9ea231fe06bd87b27061c810b0b94992bbb18a172f91"
          },
          "environment": {
            "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
            "server_version_num": "100021",
            "current_user": "postgres",
            "connection_scope": "runner-owned localhost port",
            "log_destination": "csvlog",
            "log_error_verbosity": "verbose",
            "psycopg_version": "3.3.5",
            "libpq_version": "18.6",
            "target_kind": "pg10"
          },
          "cases": [
            "nowait_row_lock"
          ],
          "observed": {
            "connections_autocommit": {
              "blocker": true,
              "contender": true
            },
            "diagnostic": {
              "column_name": null,
              "constraint_name": null,
              "context": null,
              "datatype_name": null,
              "exception_type": "LockNotAvailable",
              "internal_position": null,
              "internal_query": null,
              "message_detail": null,
              "message_hint": null,
              "message_primary": "could not obtain lock on row in relation \"nowait_rows\"",
              "schema_name": null,
              "severity": "ERROR",
              "severity_nonlocalized": "ERROR",
              "source_file": "heapam.c",
              "source_function": "heap_lock_tuple",
              "source_line": "5074",
              "sqlstate": "55P03",
              "statement_position": null,
              "table_name": null,
              "text": "could not obtain lock on row in relation \"nowait_rows\""
            },
            "repair_marker": "repaired",
            "statuses": {
              "blocker_after_lock": "INTRANS",
              "blocker_after_release": "IDLE",
              "contender_after_nowait": "IDLE",
              "contender_after_repair": "IDLE"
            },
            "synchronization": "The blocker acquired SELECT FOR UPDATE before the contender issued SELECT FOR UPDATE NOWAIT; no timing sleep is used.",
            "table": "\"c55p03_nowait_row_lock\".\"nowait_rows\""
          },
          "assertions": [
            {
              "expected": "55P03",
              "name": "55P03 SQLSTATE",
              "observed": "55P03",
              "passed": true
            },
            {
              "expected": "ERROR",
              "name": "55P03 ERROR severity",
              "observed": "ERROR",
              "passed": true
            },
            {
              "expected": "could not obtain lock ... in relation nowait_rows",
              "name": "NOWAIT reports lock-not-available",
              "observed": "could not obtain lock on row in relation \"nowait_rows\"",
              "passed": true
            },
            {
              "expected": "INTRANS",
              "name": "blocker holds the explicit transaction",
              "observed": "INTRANS",
              "passed": true
            },
            {
              "expected": "IDLE",
              "name": "NOWAIT failure leaves contender usable",
              "observed": "IDLE",
              "passed": true
            },
            {
              "expected": "IDLE",
              "name": "rollback releases blocker",
              "observed": "IDLE",
              "passed": true
            },
            {
              "expected": {
                "marker": "repaired",
                "status": "IDLE"
              },
              "name": "same contender retries after release",
              "observed": {
                "status": "IDLE",
                "updated": "repaired",
                "verified": "repaired"
              },
              "passed": true
            }
          ],
          "cleanup": {
            "errors": [],
            "passed": true
          }
        }
      ]
    },
    {
      "sqlstate": "55P04",
      "condition_name": "unsafe_new_enum_value_usage",
      "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#L428",
          "lines": "428"
        },
        {
          "id": "src.path.0",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/adt/enum.c",
          "sha256": "35c0f1f5376a5c2ef3d7ea52fa26faad84b493b485ed3a9ad5bb5b5eb45928b2",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/enum.c#L68",
          "lines": "68-102"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "55P04 is unsafe_new_enum_value_usage in SQLSTATE Class 55.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read fixed definition."
        },
        {
          "id": "resolved-paths",
          "statement": "The fixed enum tuple commit and EnumUncommitted guards support the stated commit-before-use mechanism and message.",
          "sources": [
            "src.path.0"
          ],
          "method": "Read complete fixed source context.",
          "limits": "Source confirmation is not natural runtime."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 55P04 from 12.0; that boundary does not prove exact implementation introduction.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue boundary."
        }
      ],
      "messages": [
        {
          "id": "message.0",
          "sqlstate": "55P04",
          "primary_template": "unsafe use of new value \"%s\" of enum type %s",
          "severity_source": "ERROR",
          "sources": [
            "src.path.0"
          ],
          "hint_template": "New enum values must be committed before they can be used."
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "resolved-paths"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "resolved-paths"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "57000",
      "condition_name": "operator_intervention",
      "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#L433",
          "lines": "433"
        },
        {
          "id": "scan.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "bounded_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "57000 is operator_intervention in SQLSTATE Class 57.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read fixed definition."
        },
        {
          "id": "scan-boundary",
          "statement": "The bounded PostgreSQL 18.6 source scan did not resolve a fixed core emitting path for this condition.",
          "sources": [
            "src.errcodes.18.6",
            "scan.calls.REL_18_6"
          ],
          "method": "Read the fixed definition and the bounded REL_18_6 report/call scan.",
          "limits": "This does not prove that no extension, future path, or unresolved call can emit the condition."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 57000 from 7.4; that boundary does not prove exact implementation introduction.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue boundary."
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "unknown",
          "evidence_ids": [
            "scan-boundary"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "scan-boundary"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "57014",
      "condition_name": "query_canceled",
      "sources": [
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "src.errcodes.18.6",
          "location": "lines 432-438",
          "path": "src/backend/utils/errcodes.txt",
          "sha256": "6e8de346643ba84aa3c9c6a73360acfc7b2dfb89162c06c08ce9bf5bcd5bbcba",
          "tag": "REL_18_6",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/errcodes.txt"
        },
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "src.postgres.18.6",
          "location": "lines 3441-3446",
          "path": "src/backend/tcop/postgres.c",
          "sha256": "9fb62275b1badf94d01ab351337b60410cd9b3ab1fe63fa9f23d6d2185a21061",
          "tag": "REL_18_6",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/tcop/postgres.c#L3441-L3446"
        },
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "doc.config.18",
          "location": "statement_timeout configuration",
          "path": "doc/src/sgml/config.sgml",
          "sha256": "ffca322c15315ba670733d6b320f23cbba7374db0d18937298ffc07b58799ef6",
          "tag": "PG18-docs",
          "url": "https://www.postgresql.org/docs/18/runtime-config-client.html#GUC-STATEMENT-TIMEOUT"
        },
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "doc.protocol.18",
          "location": "ErrorResponse fields",
          "path": "doc/src/sgml/protocol.sgml",
          "sha256": "745339e07ebbc2bb67d98b258e25772ada644ef26011e3cd6b3fcbb435235f89",
          "tag": "PG18-docs",
          "url": "https://www.postgresql.org/docs/18/protocol-error-fields.html"
        },
        {
          "id": "manifest.57014",
          "kind": "local_artifact",
          "location": "snapshots and definition_blobs entries for the 57014 definition",
          "sha256": "1727a275f336988ff96b4f9990a4ca253080f73fc5d316e7def165c8cf3708a8"
        },
        {
          "id": "case-manifest.57014",
          "kind": "local_artifact",
          "location": "statement_timeout_cancel",
          "sha256": "af2f28389fba25445dae975fda3a035ef9d69d7210f8f414585801aaf8c0282d"
        },
        {
          "id": "snippet-registry.57014.final",
          "kind": "local_artifact",
          "location": "statement_timeout_cancel ordered SQL",
          "sha256": "f6cf9d26837aae084280538fc4283418b23f160838b581c67eaf0e22d8c6715d"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "limits": "The directory condition covers several cancellation sources.",
          "method": "Read the Class 57 section and 57014 row in the frozen errcodes.txt snapshot.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "statement": "57014 is the query_canceled condition in Class 57 operator_intervention."
        },
        {
          "id": "mechanism.statement-timeout",
          "limits": "User cancel, lock timeout, recovery conflict, and administrative cancel paths can use the same SQLSTATE with different messages or effects.",
          "method": "Read the ProcessInterrupts timeout branch and the official statement_timeout behavior documentation.",
          "sources": [
            "src.postgres.18.6",
            "doc.config.18"
          ],
          "statement": "The statement-timeout interrupt path reports ERRCODE_QUERY_CANCELED with canceling statement due to statement timeout."
        },
        {
          "id": "runtime.autocommit-followup",
          "limits": "The run covers statement timeout on an autocommit connection and does not establish transaction effects for canceled writes or explicit transactions.",
          "method": "Set statement_timeout, execute the long sleep, capture diagnostics and status, and assert the follow-up query and final status.",
          "sources": [
            "case-manifest.57014",
            "snippet-registry.57014.final",
            "runtime.57014-registry-final-20260909.latest",
            "runtime.57014-registry-final-20260909.pg10"
          ],
          "statement": "A 100 ms statement_timeout canceled pg_sleep(1) with SQLSTATE 57014 and left the autocommit connection IDLE; SELECT 1 then returned 1 on both targets."
        },
        {
          "id": "versions.catalogue-boundary",
          "limits": "The first scanned release is a lower bound, not an asserted introduction version.",
          "method": "Read the manifest snapshots and definition references for the code.",
          "sources": [
            "manifest.57014"
          ],
          "statement": "The locked catalogue records 57014 in every listed formal snapshot from 9.0.23 through 18.6 and in 19beta3; pre-9.0 history is not scanned."
        }
      ],
      "messages": [
        {
          "id": "message.statement-timeout",
          "limits": "This template identifies the statement_timeout path; other query-canceled paths have their own messages.",
          "primary_template": "canceling statement due to statement timeout",
          "severity_source": "explicit ERROR",
          "sources": [
            "src.postgres.18.6"
          ],
          "sqlstate": "57014"
        }
      ],
      "usage_evidence": [
        {
          "evidence_ids": [
            "identity.class-and-condition",
            "src.errcodes.18.6"
          ],
          "scope": "SQLSTATE directory identity",
          "status": "definition_only"
        },
        {
          "evidence_ids": [
            "mechanism.statement-timeout",
            "message.statement-timeout",
            "src.postgres.18.6",
            "doc.config.18"
          ],
          "scope": "Statement-timeout mechanism and message",
          "status": "source_path_confirmed"
        },
        {
          "evidence_ids": [
            "runtime.autocommit-followup",
            "snippet-registry.57014.final",
            "runtime.57014-registry-final-20260909.latest",
            "runtime.57014-registry-final-20260909.pg10"
          ],
          "scope": "Autocommit cancellation and follow-up query",
          "status": "observed_runtime"
        },
        {
          "evidence_ids": [
            "versions.catalogue-boundary",
            "manifest.57014"
          ],
          "scope": "Version presence",
          "status": "definition_only"
        }
      ],
      "runtime": [
        {
          "cases": [
            "statement_timeout_cancel"
          ],
          "id": "runtime.57014-registry-final-20260909.latest",
          "observed": {
            "diagnostic": {
              "message_primary": "canceling statement due to statement timeout",
              "severity": "ERROR",
              "source_file": "postgres.c",
              "source_function": "ProcessInterrupts",
              "source_line": "3446",
              "sqlstate": "57014"
            },
            "followup": 1,
            "statuses": {
              "after_cancel": "IDLE",
              "after_followup": "IDLE"
            }
          },
          "raw_sha256": "dabaaf0b01d0c45133ea2d3e85ba3272e436cf75b95c7681b608b1b96cb9a99f",
          "run_id": "57014-registry-final-20260909",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "snippet_registry": {
            "sha256": "f6cf9d26837aae084280538fc4283418b23f160838b581c67eaf0e22d8c6715d"
          },
          "status": "passed",
          "summary_sha256": "8e310974fb6160095bd37df9c259419289e44a2c62ab42d72218e906a2ef8bbc",
          "target": "latest"
        },
        {
          "cases": [
            "statement_timeout_cancel"
          ],
          "id": "runtime.57014-registry-final-20260909.pg10",
          "image": "postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
          "observed": {
            "diagnostic": {
              "message_primary": "canceling statement due to statement timeout",
              "severity": "ERROR",
              "source_file": "postgres.c",
              "source_function": "ProcessInterrupts",
              "source_line": "3018",
              "sqlstate": "57014"
            },
            "followup": 1,
            "statuses": {
              "after_cancel": "IDLE",
              "after_followup": "IDLE"
            }
          },
          "raw_sha256": "85c6bb64d7e6178c4b2300d5f24d15c356339662f40573180dd230b2c65a3b80",
          "run_id": "57014-registry-final-20260909",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "snippet_registry": {
            "sha256": "f6cf9d26837aae084280538fc4283418b23f160838b581c67eaf0e22d8c6715d"
          },
          "status": "passed",
          "summary_sha256": "fa02b6c80d94c75f63912def8ffd13dd794792d403749f57de45dd6f860d2dbb",
          "target": "pg10"
        }
      ]
    },
    {
      "sqlstate": "57P01",
      "condition_name": "admin_shutdown",
      "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#L435",
          "lines": "435"
        },
        {
          "id": "src.path.0",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/tcop/postgres.c",
          "sha256": "9fb62275b1badf94d01ab351337b60410cd9b3ab1fe63fa9f23d6d2185a21061",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/tcop/postgres.c#L2999",
          "lines": "2999-3001"
        },
        {
          "id": "src.path.1",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/tcop/postgres.c",
          "sha256": "9fb62275b1badf94d01ab351337b60410cd9b3ab1fe63fa9f23d6d2185a21061",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/tcop/postgres.c#L3354",
          "lines": "3354-3356"
        },
        {
          "id": "src.path.2",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/replication/syncrep.c",
          "sha256": "ecf3c6bbc44ca69943aad0a16ec9f7eff17b86c8eed635fc5f1bd489e4780493",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/replication/syncrep.c#L302",
          "lines": "302-305"
        },
        {
          "id": "src.path.3",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/access/transam/parallel.c",
          "sha256": "0b0c419c93545aa8abb99e4f36b2a42563c3dfa97ed48b1d6b34b0e53d89e5fe",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/transam/parallel.c#L938",
          "lines": "938-940"
        },
        {
          "id": "manifest.57P01",
          "kind": "local_artifact",
          "source_role": "case_manifest",
          "sha256": "48d4cedc4c42033638f48cc57bde06dfdf82adeedafa2ba2d5be25713c5e3705"
        },
        {
          "id": "snippet-registry.57P01",
          "kind": "local_artifact",
          "source_role": "snippet_registry",
          "sha256": "114acc382b3918b4151994d137f245e0de3a7ea8cc194bf053eff4926626f3d1"
        },
        {
          "id": "runtime.ops-57p01-latest-2.latest",
          "kind": "local_artifact",
          "source_role": "runtime_result",
          "sha256": "3bb14b5b69013d2eae2eff3288abce3c8a03ebe37eb91f2cc1102b9554236ec0"
        },
        {
          "id": "runtime-raw.ops-57p01-latest-2.latest",
          "kind": "local_artifact",
          "source_role": "runtime_raw",
          "sha256": "af36e671c47c60a79b375f939a35abd8fcc1c1276362ca6c1f344ee90f18ab61"
        },
        {
          "id": "runtime.ops-57p01-pg10-1.pg10",
          "kind": "local_artifact",
          "source_role": "runtime_result",
          "sha256": "de98dafdcac66227274122faace891de1444dbfc75e14b92ba42c036a7373f0e"
        },
        {
          "id": "runtime-raw.ops-57p01-pg10-1.pg10",
          "kind": "local_artifact",
          "source_role": "runtime_raw",
          "sha256": "d48f7bfdbedd98370ac1c10a36ae95bff1cec34b740baf258508e3c4fdd4ec6f"
        },
        {
          "id": "src.path.4",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/access/transam/xlogfuncs.c",
          "sha256": "6373dff222519c8544541eb120eb6e1f3c921d0b7bb2293689c4e5f98b9d41d0",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/transam/xlogfuncs.c#L737",
          "lines": "737-741"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "57P01 is admin_shutdown in SQLSTATE Class 57.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read fixed definition."
        },
        {
          "id": "resolved-paths",
          "statement": "The cited PostgreSQL 18.6 source paths support the concrete phase, message, and lifecycle boundary described.",
          "sources": [
            "src.path.0",
            "src.path.1",
            "src.path.2",
            "src.path.3",
            "src.path.4"
          ],
          "method": "Read complete fixed source contexts.",
          "limits": "Source confirmation is not natural runtime."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 57P01 from 7.4; that boundary does not prove exact implementation introduction.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue boundary."
        },
        {
          "id": "runtime.representative-case",
          "statement": "The admin_terminate_backend case passed on PostgreSQL 18.6 and 10.21 with SQLSTATE, severity or disconnect outcome, recovery/repair, cleanup, and isolated-target stop assertions.",
          "sources": [
            "runtime.ops-57p01-latest-2.latest",
            "runtime.ops-57p01-pg10-1.pg10",
            "manifest.57P01",
            "snippet-registry.57P01"
          ],
          "method": "Execute the shared registry and inspect the selected summaries.",
          "limits": "This is one bounded mechanism; it does not establish every source branch or business outcome.",
          "runtime": [
            "runtime.ops-57p01-latest-2.latest",
            "runtime.ops-57p01-pg10-1.pg10"
          ]
        }
      ],
      "messages": [
        {
          "id": "message.0",
          "sqlstate": "57P01",
          "primary_template": "terminating connection due to immediate shutdown command",
          "severity_source": "WARNING_CLIENT_ONLY (client-visible warning; process exits after reporting)",
          "sources": [
            "src.path.0"
          ]
        },
        {
          "id": "message.1",
          "sqlstate": "57P01",
          "primary_template": "terminating connection due to administrator command",
          "severity_source": "FATAL",
          "sources": [
            "src.path.1"
          ]
        },
        {
          "id": "message.2",
          "sqlstate": "57P01",
          "primary_template": "canceling the wait for synchronous replication and terminating connection due to administrator command",
          "severity_source": "WARNING",
          "sources": [
            "src.path.2"
          ],
          "detail_template": "The transaction has already committed locally, but might not have been replicated to the standby."
        },
        {
          "id": "message.3",
          "sqlstate": "57P01",
          "primary_template": "postmaster exited during a parallel transaction",
          "severity_source": "FATAL",
          "sources": [
            "src.path.3"
          ]
        },
        {
          "id": "message.4",
          "sqlstate": "57P01",
          "primary_template": "terminating connection due to unexpected postmaster exit",
          "severity_source": "FATAL",
          "sources": [
            "src.path.4"
          ],
          "context_template": "while waiting on promotion"
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "resolved-paths"
          ]
        },
        {
          "scope": "selected natural runtime case",
          "status": "observed_runtime",
          "evidence_ids": [
            "runtime.representative-case",
            "runtime.ops-57p01-latest-2.latest",
            "runtime.ops-57p01-pg10-1.pg10"
          ]
        }
      ],
      "runtime": [
        {
          "id": "runtime.ops-57p01-latest-2.latest",
          "run_id": "ops-57p01-latest-2",
          "target": "latest",
          "status": "passed",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "summary_sha256": "3bb14b5b69013d2eae2eff3288abce3c8a03ebe37eb91f2cc1102b9554236ec0",
          "raw_sha256": "af36e671c47c60a79b375f939a35abd8fcc1c1276362ca6c1f344ee90f18ab61",
          "case_manifest": {
            "id": "manifest.57P01",
            "kind": "local_artifact",
            "source_role": "case_manifest"
          },
          "snippet_registry": {
            "id": "snippet-registry.57P01",
            "kind": "local_artifact",
            "source_role": "snippet_registry",
            "sha256": "114acc382b3918b4151994d137f245e0de3a7ea8cc194bf053eff4926626f3d1"
          },
          "environment": {
            "server_version": "18.6 (Homebrew)",
            "server_version_num": "180006",
            "current_user": "runner",
            "connection_scope": "runner-owned localhost port",
            "log_destination": "csvlog,jsonlog",
            "log_error_verbosity": "verbose",
            "psycopg_version": "3.3.5",
            "libpq_version": "18.6",
            "target_kind": "latest"
          },
          "cases": [
            "admin_terminate_backend"
          ],
          "observed": {
            "admin_pid": "distinct admin PID",
            "admin_status": "IDLE",
            "backend_identity": [
              "runner-created victim",
              "client backend"
            ],
            "driver_diagnostic": {
              "column_name": null,
              "constraint_name": null,
              "context": null,
              "datatype_name": null,
              "exception_type": "AdminShutdown",
              "internal_position": null,
              "internal_query": null,
              "message_detail": null,
              "message_hint": null,
              "message_primary": "terminating connection due to administrator command",
              "schema_name": null,
              "severity": "FATAL",
              "severity_nonlocalized": "FATAL",
              "source_file": "postgres.c",
              "source_function": "ProcessInterrupts",
              "source_line": "3356",
              "sqlstate": "57P01",
              "statement_position": null,
              "table_name": null,
              "text": "terminating connection due to administrator command"
            },
            "fresh_probe": 1,
            "fresh_status": "IDLE",
            "terminate_result": true,
            "termination_scope": "Only the runner-created client backend PID was targeted; the target postmaster and unrelated sessions were not targeted.",
            "victim_connection_closed": true,
            "victim_pid": "runner-created victim PID",
            "victim_probe_before": 1
          },
          "assertions": [
            {
              "expected": "57P01",
              "name": "57P01 SQLSTATE",
              "observed": "57P01",
              "passed": true
            },
            {
              "expected": "FATAL",
              "name": "57P01 FATAL severity",
              "observed": "FATAL",
              "passed": true
            },
            {
              "expected": {
                "admin_pid_distinct": true,
                "backend_type": "client backend",
                "pid": 44110
              },
              "name": "victim was a runner client backend",
              "observed": {
                "admin_pid": 44111,
                "identity": [
                  44110,
                  "client backend"
                ],
                "victim_pid": 44110
              },
              "passed": true
            },
            {
              "expected": true,
              "name": "pg_terminate_backend confirms termination",
              "observed": true,
              "passed": true
            },
            {
              "expected": {
                "message": "terminating connection due to administrator command",
                "severity": "FATAL"
              },
              "name": "terminated driver reports FATAL admin shutdown",
              "observed": {
                "driver": {
                  "column_name": null,
                  "constraint_name": null,
                  "context": null,
                  "datatype_name": null,
                  "exception_type": "AdminShutdown",
                  "internal_position": null,
                  "internal_query": null,
                  "message_detail": null,
                  "message_hint": null,
                  "message_primary": "terminating connection due to administrator command",
                  "schema_name": null,
                  "severity": "FATAL",
                  "severity_nonlocalized": "FATAL",
                  "source_file": "postgres.c",
                  "source_function": "ProcessInterrupts",
                  "source_line": "3356",
                  "sqlstate": "57P01",
                  "statement_position": null,
                  "table_name": null,
                  "text": "terminating connection due to administrator command"
                },
                "message": "terminating connection due to administrator command",
                "severity": "FATAL"
              },
              "passed": true
            },
            {
              "expected": true,
              "name": "terminated victim connection is closed",
              "observed": true,
              "passed": true
            },
            {
              "expected": {
                "admin_status": "IDLE",
                "fresh": 1,
                "fresh_status": "IDLE",
                "victim_before": 1
              },
              "name": "fresh connection recovers after targeted termination",
              "observed": {
                "admin_status": "IDLE",
                "fresh": 1,
                "fresh_status": "IDLE",
                "victim_before": 1
              },
              "passed": true
            }
          ],
          "cleanup": {
            "errors": [],
            "passed": true
          }
        },
        {
          "id": "runtime.ops-57p01-pg10-1.pg10",
          "run_id": "ops-57p01-pg10-1",
          "target": "pg10",
          "status": "passed",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "summary_sha256": "de98dafdcac66227274122faace891de1444dbfc75e14b92ba42c036a7373f0e",
          "raw_sha256": "d48f7bfdbedd98370ac1c10a36ae95bff1cec34b740baf258508e3c4fdd4ec6f",
          "case_manifest": {
            "id": "manifest.57P01",
            "kind": "local_artifact",
            "source_role": "case_manifest"
          },
          "snippet_registry": {
            "id": "snippet-registry.57P01",
            "kind": "local_artifact",
            "source_role": "snippet_registry",
            "sha256": "114acc382b3918b4151994d137f245e0de3a7ea8cc194bf053eff4926626f3d1"
          },
          "environment": {
            "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
            "server_version_num": "100021",
            "current_user": "postgres",
            "connection_scope": "runner-owned localhost port",
            "log_destination": "csvlog",
            "log_error_verbosity": "verbose",
            "psycopg_version": "3.3.5",
            "libpq_version": "18.6",
            "target_kind": "pg10"
          },
          "cases": [
            "admin_terminate_backend"
          ],
          "observed": {
            "admin_pid": "distinct admin PID",
            "admin_status": "IDLE",
            "backend_identity": [
              "runner-created victim",
              "client backend"
            ],
            "driver_diagnostic": {
              "column_name": null,
              "constraint_name": null,
              "context": null,
              "datatype_name": null,
              "exception_type": "AdminShutdown",
              "internal_position": null,
              "internal_query": null,
              "message_detail": null,
              "message_hint": null,
              "message_primary": "terminating connection due to administrator command",
              "schema_name": null,
              "severity": "FATAL",
              "severity_nonlocalized": "FATAL",
              "source_file": "postgres.c",
              "source_function": "ProcessInterrupts",
              "source_line": "2931",
              "sqlstate": "57P01",
              "statement_position": null,
              "table_name": null,
              "text": "terminating connection due to administrator command"
            },
            "fresh_probe": 1,
            "fresh_status": "IDLE",
            "terminate_result": true,
            "termination_scope": "Only the runner-created client backend PID was targeted; the target postmaster and unrelated sessions were not targeted.",
            "victim_connection_closed": true,
            "victim_pid": "runner-created victim PID",
            "victim_probe_before": 1
          },
          "assertions": [
            {
              "expected": "57P01",
              "name": "57P01 SQLSTATE",
              "observed": "57P01",
              "passed": true
            },
            {
              "expected": "FATAL",
              "name": "57P01 FATAL severity",
              "observed": "FATAL",
              "passed": true
            },
            {
              "expected": {
                "admin_pid_distinct": true,
                "backend_type": "client backend",
                "pid": 81
              },
              "name": "victim was a runner client backend",
              "observed": {
                "admin_pid": 82,
                "identity": [
                  81,
                  "client backend"
                ],
                "victim_pid": 81
              },
              "passed": true
            },
            {
              "expected": true,
              "name": "pg_terminate_backend confirms termination",
              "observed": true,
              "passed": true
            },
            {
              "expected": {
                "message": "terminating connection due to administrator command",
                "severity": "FATAL"
              },
              "name": "terminated driver reports FATAL admin shutdown",
              "observed": {
                "driver": {
                  "column_name": null,
                  "constraint_name": null,
                  "context": null,
                  "datatype_name": null,
                  "exception_type": "AdminShutdown",
                  "internal_position": null,
                  "internal_query": null,
                  "message_detail": null,
                  "message_hint": null,
                  "message_primary": "terminating connection due to administrator command",
                  "schema_name": null,
                  "severity": "FATAL",
                  "severity_nonlocalized": "FATAL",
                  "source_file": "postgres.c",
                  "source_function": "ProcessInterrupts",
                  "source_line": "2931",
                  "sqlstate": "57P01",
                  "statement_position": null,
                  "table_name": null,
                  "text": "terminating connection due to administrator command"
                },
                "message": "terminating connection due to administrator command",
                "severity": "FATAL"
              },
              "passed": true
            },
            {
              "expected": true,
              "name": "terminated victim connection is closed",
              "observed": true,
              "passed": true
            },
            {
              "expected": {
                "admin_status": "IDLE",
                "fresh": 1,
                "fresh_status": "IDLE",
                "victim_before": 1
              },
              "name": "fresh connection recovers after targeted termination",
              "observed": {
                "admin_status": "IDLE",
                "fresh": 1,
                "fresh_status": "IDLE",
                "victim_before": 1
              },
              "passed": true
            }
          ],
          "cleanup": {
            "errors": [],
            "passed": true
          }
        }
      ]
    },
    {
      "sqlstate": "57P02",
      "condition_name": "crash_shutdown",
      "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#L436",
          "lines": "436"
        },
        {
          "id": "src.path.0",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/tcop/postgres.c",
          "sha256": "9fb62275b1badf94d01ab351337b60410cd9b3ab1fe63fa9f23d6d2185a21061",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/tcop/postgres.c#L2987",
          "lines": "2987-2995"
        },
        {
          "id": "src.path.1",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/include/utils/elog.h",
          "sha256": "3485d4a046bd4fcc5f5887f7ea9badc3f430f1bd67c4b103d3e3a6fa54b38bc0",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/include/utils/elog.h#L46",
          "lines": "46-55"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "57P02 is crash_shutdown in SQLSTATE Class 57.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read fixed definition."
        },
        {
          "id": "resolved-paths",
          "statement": "The cited PostgreSQL 18.6 source paths support the concrete phase, message, and lifecycle boundary described.",
          "sources": [
            "src.path.0",
            "src.path.1"
          ],
          "method": "Read complete fixed source contexts.",
          "limits": "Source confirmation is not natural runtime."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 57P02 from 7.4; that boundary does not prove exact implementation introduction.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue boundary."
        }
      ],
      "messages": [
        {
          "id": "message.0",
          "sqlstate": "57P02",
          "primary_template": "terminating connection because of crash of another server process",
          "severity_source": "WARNING_CLIENT_ONLY (client-visible warning; process exits after reporting)",
          "sources": [
            "src.path.0",
            "src.path.1"
          ],
          "detail_template": "The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corrupted shared memory.",
          "hint_template": "In a moment you should be able to reconnect to the database and repeat your command."
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "resolved-paths"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "resolved-paths"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "57P03",
      "condition_name": "cannot_connect_now",
      "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#L437",
          "lines": "437"
        },
        {
          "id": "src.path.0",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/tcop/backend_startup.c",
          "sha256": "5516f3d6d83ae6fc66ca6bad9a7cea3cd2f8de53f0597c26baa2bd224ac270bb",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/tcop/backend_startup.c#L307",
          "lines": "307-338"
        },
        {
          "id": "src.path.1",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/misc/guc_tables.c",
          "sha256": "7b3b81dcfd95f6543b01b2dd4262e93d03113065e18ed8f780b7125a4976e8df",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/misc/guc_tables.c#L1895",
          "lines": "1895-1903"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "57P03 is cannot_connect_now in SQLSTATE Class 57.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read fixed definition."
        },
        {
          "id": "resolved-paths",
          "statement": "The fixed startup guards support all listed startup/recovery messages, and guc_tables.c defines hot_standby as PGC_POSTMASTER, so enabling it requires a server restart rather than a reload.",
          "sources": [
            "src.path.0",
            "src.path.1"
          ],
          "method": "Read the complete startup guard and hot_standby GUC definition.",
          "limits": "Source confirmation is not natural runtime."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 57P03 from 7.4; that boundary does not prove exact implementation introduction.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue boundary."
        },
        {
          "id": "hot-standby-context",
          "statement": "hot_standby has GUC context PGC_POSTMASTER; a SIGHUP/reload cannot activate a changed value for the running server.",
          "sources": [
            "src.path.1"
          ],
          "method": "Read the fixed guc_tables.c entry."
        }
      ],
      "messages": [
        {
          "id": "message.0",
          "sqlstate": "57P03",
          "primary_template": "the database system is starting up",
          "severity_source": "FATAL",
          "sources": [
            "src.path.0"
          ]
        },
        {
          "id": "message.1",
          "sqlstate": "57P03",
          "primary_template": "the database system is not accepting connections",
          "severity_source": "FATAL",
          "sources": [
            "src.path.0"
          ],
          "detail_template": "Hot standby mode is disabled."
        },
        {
          "id": "message.2",
          "sqlstate": "57P03",
          "primary_template": "the database system is not yet accepting connections",
          "severity_source": "FATAL",
          "sources": [
            "src.path.0"
          ],
          "detail_template": "Recovery snapshot is not yet ready for hot standby.",
          "hint_template": "To enable hot standby, close write transactions with more than %d subtransactions on the primary server."
        },
        {
          "id": "message.3",
          "sqlstate": "57P03",
          "primary_template": "the database system is not yet accepting connections",
          "severity_source": "FATAL",
          "sources": [
            "src.path.0"
          ],
          "detail_template": "Consistent recovery state has not been yet reached."
        },
        {
          "id": "message.4",
          "sqlstate": "57P03",
          "primary_template": "the database system is shutting down",
          "severity_source": "FATAL",
          "sources": [
            "src.path.0"
          ]
        },
        {
          "id": "message.5",
          "sqlstate": "57P03",
          "primary_template": "the database system is in recovery mode",
          "severity_source": "FATAL",
          "sources": [
            "src.path.0"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "resolved-paths"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "resolved-paths"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "57P04",
      "condition_name": "database_dropped",
      "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#L438",
          "lines": "438"
        },
        {
          "id": "src.path.0",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/tcop/postgres.c",
          "sha256": "9fb62275b1badf94d01ab351337b60410cd9b3ab1fe63fa9f23d6d2185a21061",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/tcop/postgres.c#L3241",
          "lines": "3241-3248"
        },
        {
          "id": "src.path.1",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/tcop/postgres.c",
          "sha256": "9fb62275b1badf94d01ab351337b60410cd9b3ab1fe63fa9f23d6d2185a21061",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/tcop/postgres.c#L2549",
          "lines": "2549-2578"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "57P04 is database_dropped in SQLSTATE Class 57.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read fixed definition."
        },
        {
          "id": "resolved-paths",
          "statement": "The cited PostgreSQL 18.6 source paths support the concrete phase, message, and lifecycle boundary described.",
          "sources": [
            "src.path.0",
            "src.path.1"
          ],
          "method": "Read complete fixed source contexts.",
          "limits": "Source confirmation is not natural runtime."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 57P04 from 9.0.4; that boundary does not prove exact implementation introduction.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue boundary."
        },
        {
          "id": "database-guard",
          "statement": "The terminating recovery-conflict call selects ERRCODE_DATABASE_DROPPED only for PROCSIG_RECOVERY_CONFLICT_DATABASE; other reasons select ERRCODE_T_R_SERIALIZATION_FAILURE and use a different detail.",
          "sources": [
            "src.path.0",
            "src.path.1"
          ],
          "method": "Read the complete guard and errdetail_recovery_conflict helper."
        }
      ],
      "messages": [
        {
          "id": "message.0",
          "sqlstate": "57P04",
          "primary_template": "terminating connection due to conflict with recovery",
          "severity_source": "FATAL",
          "sources": [
            "src.path.0",
            "src.path.1"
          ],
          "hint_template": "In a moment you should be able to reconnect to the database and repeat your command.",
          "detail_template": "User was connected to a database that must be dropped."
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "resolved-paths"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "resolved-paths"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "57P05",
      "condition_name": "idle_session_timeout",
      "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#L439",
          "lines": "439"
        },
        {
          "id": "src.path.0",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/tcop/postgres.c",
          "sha256": "9fb62275b1badf94d01ab351337b60410cd9b3ab1fe63fa9f23d6d2185a21061",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/tcop/postgres.c#L3511",
          "lines": "3511-3513"
        },
        {
          "id": "src.path.1",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/tcop/postgres.c",
          "sha256": "9fb62275b1badf94d01ab351337b60410cd9b3ab1fe63fa9f23d6d2185a21061",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/tcop/postgres.c#L4585",
          "lines": "4585-4650"
        },
        {
          "id": "src.path.2",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/tcop/postgres.c",
          "sha256": "9fb62275b1badf94d01ab351337b60410cd9b3ab1fe63fa9f23d6d2185a21061",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/tcop/postgres.c#L4704",
          "lines": "4704-4721"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "57P05 is idle_session_timeout in SQLSTATE Class 57.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read fixed definition."
        },
        {
          "id": "resolved-paths",
          "statement": "The cited PostgreSQL 18.6 source paths support the concrete phase, message, and lifecycle boundary described.",
          "sources": [
            "src.path.0",
            "src.path.1",
            "src.path.2"
          ],
          "method": "Read complete fixed source contexts.",
          "limits": "Source confirmation is not natural runtime."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 57P05 from 14.0; that boundary does not prove exact implementation introduction.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue boundary."
        },
        {
          "id": "idle-boundary",
          "statement": "The idle-session timer starts only in the no-transaction STATE_IDLE branch and is disabled when input arrives; idle-in-transaction uses a separate timer and condition.",
          "sources": [
            "src.path.1",
            "src.path.2"
          ],
          "method": "Read the complete PostgresMain state branches and timeout disable path."
        }
      ],
      "messages": [
        {
          "id": "message.0",
          "sqlstate": "57P05",
          "primary_template": "terminating connection due to idle-session timeout",
          "severity_source": "FATAL",
          "sources": [
            "src.path.0"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "resolved-paths"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "resolved-paths"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "58000",
      "condition_name": "system_error",
      "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#L444",
          "lines": "444"
        },
        {
          "id": "src.path.0",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/access/transam/xlogfuncs.c",
          "sha256": "6373dff222519c8544541eb120eb6e1f3c921d0b7bb2293689c4e5f98b9d41d0",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/transam/xlogfuncs.c#L706",
          "lines": "706-708"
        },
        {
          "id": "src.path.1",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/common/exec.c",
          "sha256": "b39dfdb5574510a25441da87c413ea4c4df90188e5666c2d218345e05cc70831",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/common/exec.c#L391",
          "lines": "391-412"
        },
        {
          "id": "src.path.2",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/include/common/logging.h",
          "sha256": "ca990bba3381d3810e5e031eb33658e1d48a3654f2cbae3ae5e3c9d4c727b787",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/include/common/logging.h#L106",
          "lines": "106-110"
        },
        {
          "id": "src.path.3",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/common/exec.c",
          "sha256": "b39dfdb5574510a25441da87c413ea4c4df90188e5666c2d218345e05cc70831",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/common/exec.c#L52",
          "lines": "52-70"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "58000 is system_error in SQLSTATE Class 58.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read fixed definition."
        },
        {
          "id": "resolved-paths",
          "statement": "The fixed backend pg_promote path reports ERROR with ERRCODE_SYSTEM_ERROR; the shared pclose_check source has separate non-FRONTEND ereport(LOG) and FRONTEND stderr macro branches, so frontend output is not asserted as a client-protocol 58000 response.",
          "sources": [
            "src.path.0",
            "src.path.1",
            "src.path.2",
            "src.path.3"
          ],
          "method": "Read the complete backend call site, common exec macro definition/call site, and logging macro definitions.",
          "limits": "Source confirmation is not natural runtime."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 58000 from 9.2.0; that boundary does not prove exact implementation introduction.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use catalogue boundary."
        }
      ],
      "messages": [
        {
          "id": "message.0",
          "sqlstate": "58000",
          "primary_template": "failed to send signal to postmaster: %m",
          "severity_source": "ERROR",
          "sources": [
            "src.path.0"
          ]
        },
        {
          "id": "message.1",
          "sqlstate": "58000",
          "primary_template": "%s() failed: %m",
          "severity_source": "non-FRONTEND: ereport(LOG) with ERRCODE_SYSTEM_ERROR; FRONTEND: log_error ignores errcodefn and prints to stderr (no backend SQLSTATE protocol)",
          "sources": [
            "src.path.1",
            "src.path.3"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "resolved-paths"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "resolved-paths"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "58030",
      "condition_name": "io_error",
      "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#L445",
          "lines": "445"
        },
        {
          "id": "src.path.0",
          "kind": "upstream_source",
          "source_role": "buffer_write_path",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/storage/buffer/bufmgr.c",
          "sha256": "453528ad5ab1bf8b7190ed9f866b934646278e06d802de9e5c25b6b807fcda23",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/storage/buffer/bufmgr.c#L4307",
          "lines": "4307-4436"
        },
        {
          "id": "src.path.1",
          "kind": "upstream_source",
          "source_role": "buffer_error_unwind",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/storage/buffer/bufmgr.c",
          "sha256": "453528ad5ab1bf8b7190ed9f866b934646278e06d802de9e5c25b6b807fcda23",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/storage/buffer/bufmgr.c#L6164",
          "lines": "6164-6225"
        },
        {
          "id": "src.path.2",
          "kind": "upstream_source",
          "source_role": "relation_extension_write_error",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/storage/smgr/md.c",
          "sha256": "c7e885c50b381337b8b8624bfc8effbd3abba7aa95a290083996354926ec9f69",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/storage/smgr/md.c#L512",
          "lines": "512-519"
        },
        {
          "id": "src.path.3",
          "kind": "upstream_source",
          "source_role": "file_access_errno_mapping",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/error/elog.c",
          "sha256": "766d30a426ba1d9597657bd46fb890da3e37e4ae53a83d1245bf082ed9433c33",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/error/elog.c#L867",
          "lines": "867-942"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "58030 is io_error in SQLSTATE Class 58.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read locked definition snapshot."
        },
        {
          "id": "resolved-paths",
          "statement": "FlushBuffer writes a shared buffer through smgrwrite, and AbortBufferIO emits the fixed 58030 warning only after a prior I/O error is present on a valid dirty buffer.",
          "sources": [
            "src.path.0",
            "src.path.1"
          ],
          "method": "Read the complete fixed write and error-unwind contexts.",
          "limits": "Source confirmation is not natural runtime."
        },
        {
          "id": "relation-extension-errno",
          "statement": "The relation-extension FileWrite path emits ERROR with a %m primary and errcode_for_file_access(); saved EIO maps to 58030 and saved ENOSPC maps to 53100.",
          "sources": [
            "src.path.2",
            "src.path.3"
          ],
          "method": "Read the complete negative-write branch and the saved-errno switch.",
          "limits": "The source establishes message roles and code mapping, not a natural I/O failure on a host."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 58030 from 7.4; it does not prove the exact introduction or every historical emitter.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use locked catalogue boundary."
        }
      ],
      "messages": [
        {
          "id": "message.0",
          "sqlstate": "58030",
          "primary_template": "could not write block %u of %s",
          "severity_source": "WARNING",
          "sources": [
            "src.path.0",
            "src.path.1"
          ],
          "detail_template": "Multiple failures --- write error might be permanent.",
          "context_template": "writing block %u of relation \"%s\""
        },
        {
          "id": "message.1",
          "sqlstate": "58030",
          "primary_template": "could not extend file \"%s\": %m",
          "severity_source": "ERROR",
          "sources": [
            "src.path.2"
          ],
          "code_selection": "errcode_for_file_access()",
          "errno_condition": "saved errno EIO",
          "hint_template": "Check free disk space."
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "resolved-paths",
            "relation-extension-errno"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "resolved-paths",
            "relation-extension-errno"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "58P01",
      "condition_name": "undefined_file",
      "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#L446",
          "lines": "446"
        },
        {
          "id": "src.path.0",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/tablespace.c",
          "sha256": "f0369bece6339d18cd7d4a29b5fa3010447c3b8ece235c64b0d4fbf5f96a5317",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/tablespace.c#L347",
          "lines": "347-359,565-625,1515-1525"
        },
        {
          "id": "src.path.1",
          "kind": "upstream_source",
          "source_role": "utility_transaction_guard",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/tcop/utility.c",
          "sha256": "7aae5d07628b6debf8456d1d4ea96f28912232192e56ea25773b4c4b61235a00",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/tcop/utility.c#L713",
          "lines": "713-717"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "58P01 is undefined_file in SQLSTATE Class 58.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read locked definition snapshot."
        },
        {
          "id": "resolved-paths",
          "statement": "The utility dispatcher rejects CREATE TABLESPACE inside a transaction block before entering CreateTableSpace; the tablespace directory helper uses explicit 58P01 for ENOENT from chmod, conditionally adds its recovery hint, and uses errno-selected file-access codes for other directory failures.",
          "sources": [
            "src.path.0",
            "src.path.1"
          ],
          "method": "Read the utility transaction guard, SQL caller, complete directory helper, and WAL-replay caller.",
          "limits": "Source confirmation is not natural runtime."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 58P01 from 7.4; it does not prove the exact introduction or every historical caller.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use locked catalogue boundary."
        }
      ],
      "messages": [
        {
          "id": "message.0",
          "sqlstate": "58P01",
          "primary_template": "directory \"%s\" does not exist",
          "severity_source": "ERROR",
          "sources": [
            "src.path.0"
          ],
          "hint_template": "Create this directory for the tablespace before restarting the server.",
          "hint_condition": "InRecovery"
        },
        {
          "id": "message.1",
          "sqlstate": "58P01",
          "primary_template": "could not set permissions on directory \"%s\": %m",
          "severity_source": "ERROR",
          "sources": [
            "src.path.0"
          ],
          "code_selection": "errcode_for_file_access()"
        },
        {
          "id": "message.2",
          "sqlstate": "58P01",
          "primary_template": "could not create directory \"%s\": %m",
          "severity_source": "ERROR",
          "sources": [
            "src.path.0"
          ],
          "code_selection": "errcode_for_file_access()"
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "resolved-paths"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "resolved-paths"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "58P02",
      "condition_name": "duplicate_file",
      "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#L447",
          "lines": "447"
        },
        {
          "id": "src.path.0",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/backup/basebackup_server.c",
          "sha256": "1447d7223926f903d27744605f9caec8a610d78a9f7a7864bb3afb6b3073ac19",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/backup/basebackup_server.c#L59",
          "lines": "59-125"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "58P02 is duplicate_file in SQLSTATE Class 58.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read locked definition snapshot."
        },
        {
          "id": "resolved-paths",
          "statement": "The server-side base-backup sink commits its privilege-check transaction before checking the output directory, accepts empty targets, and emits 58P02 only for an existing non-empty target; other branches use errno-selected codes.",
          "sources": [
            "src.path.0"
          ],
          "method": "Read the complete sink constructor and directory-state switch.",
          "limits": "Source confirmation is not natural runtime."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 58P02 from 7.4; it does not prove every historical duplicate-file caller.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use locked catalogue boundary."
        }
      ],
      "messages": [
        {
          "id": "message.0",
          "sqlstate": "58P02",
          "primary_template": "directory \"%s\" exists but is not empty",
          "severity_source": "ERROR",
          "sources": [
            "src.path.0"
          ]
        },
        {
          "id": "message.1",
          "sqlstate": "58P02",
          "primary_template": "could not access directory \"%s\": %m",
          "severity_source": "ERROR",
          "sources": [
            "src.path.0"
          ],
          "code_selection": "errcode_for_file_access()"
        },
        {
          "id": "message.2",
          "sqlstate": "58P02",
          "primary_template": "could not create directory \"%s\": %m",
          "severity_source": "ERROR",
          "sources": [
            "src.path.0"
          ],
          "code_selection": "errcode_for_file_access()"
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "resolved-paths"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "resolved-paths"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "58P03",
      "condition_name": "file_name_too_long",
      "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#L448",
          "lines": "448"
        },
        {
          "id": "src.path.0",
          "kind": "upstream_source",
          "source_role": "file_access_errno_helper",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/error/elog.c",
          "sha256": "766d30a426ba1d9597657bd46fb890da3e37e4ae53a83d1245bf082ed9433c33",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/error/elog.c#L867",
          "lines": "867-942"
        },
        {
          "id": "src.path.1",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/backup/basebackup_server.c",
          "sha256": "1447d7223926f903d27744605f9caec8a610d78a9f7a7864bb3afb6b3073ac19",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/backup/basebackup_server.c#L119",
          "lines": "119-124"
        },
        {
          "id": "src.path.2",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/tablespace.c",
          "sha256": "f0369bece6339d18cd7d4a29b5fa3010447c3b8ece235c64b0d4fbf5f96a5317",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/tablespace.c#L606",
          "lines": "606-618"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "58P03 is file_name_too_long in SQLSTATE Class 58.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read locked definition snapshot."
        },
        {
          "id": "resolved-paths",
          "statement": "errcode_for_file_access maps ENAMETOOLONG to ERRCODE_FILE_NAME_TOO_LONG and representative backend callers retain %m while emitting ERROR.",
          "sources": [
            "src.path.0",
            "src.path.1",
            "src.path.2"
          ],
          "method": "Read the complete errno switch and representative caller guards.",
          "limits": "The helper establishes the code mapping; it does not fix one primary message for every caller or prove a natural host reproduction."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records 58P03 from 18.0; it does not prove the exact introduction rationale.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use locked catalogue boundary."
        }
      ],
      "messages": [
        {
          "id": "message.0",
          "sqlstate": "58P03",
          "primary_template": "could not access directory \"%s\": %m",
          "severity_source": "ERROR",
          "sources": [
            "src.path.1"
          ],
          "code_selection": "errcode_for_file_access()"
        },
        {
          "id": "message.1",
          "sqlstate": "58P03",
          "primary_template": "could not set permissions on directory \"%s\": %m",
          "severity_source": "ERROR",
          "sources": [
            "src.path.2"
          ],
          "code_selection": "errcode_for_file_access()"
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "resolved-paths"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "resolved-paths"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "72000",
      "condition_name": "snapshot_too_old",
      "sources": [
        {
          "id": "src.definition.rel16.artifact",
          "kind": "local_artifact",
          "source_role": "historical_definition",
          "tag": "REL_16_15",
          "sha256": "1d1d741b7b7c6dfd8275287e31c79befed75f3b9349e1a42ef0ca147c429ff88",
          "lines": "444"
        },
        {
          "id": "src.path.0",
          "kind": "upstream_source",
          "source_role": "historical_report_context",
          "tag": "REL_16_15",
          "commit": "7d3e000c5961a544302072058a1184e9a588837b",
          "path": "src/backend/storage/buffer/bufmgr.c",
          "sha256": "dd070e7dfee25fa7beabd63abf35d3116105f0517e83dd0743a9c73d8f50cfec",
          "url": "https://github.com/postgres/postgres/blob/7d3e000c5961a544302072058a1184e9a588837b/src/backend/storage/buffer/bufmgr.c#L5663",
          "lines": "5663-5675"
        },
        {
          "id": "src.path.1",
          "kind": "upstream_source",
          "source_role": "historical_guard",
          "tag": "REL_16_15",
          "commit": "7d3e000c5961a544302072058a1184e9a588837b",
          "path": "src/include/storage/bufmgr.h",
          "sha256": "9068c40143d84d3827bae5275bf13f6890d6b232a08922088187b0019ea94587",
          "url": "https://github.com/postgres/postgres/blob/7d3e000c5961a544302072058a1184e9a588837b/src/include/storage/bufmgr.h#L363",
          "lines": "363-392"
        },
        {
          "id": "src.path.2",
          "kind": "upstream_source",
          "source_role": "historical_threshold",
          "tag": "REL_16_15",
          "commit": "7d3e000c5961a544302072058a1184e9a588837b",
          "path": "src/backend/utils/time/snapmgr.c",
          "sha256": "7d87a04c85bd146f639bc4280bbb643f1000af231737f6055cbd4c35984f502c",
          "url": "https://github.com/postgres/postgres/blob/7d3e000c5961a544302072058a1184e9a588837b/src/backend/utils/time/snapmgr.c#L1697",
          "lines": "1697-1714,1782-1897"
        },
        {
          "id": "src.path.3",
          "kind": "upstream_source",
          "source_role": "historical_guc",
          "tag": "REL_16_15",
          "commit": "7d3e000c5961a544302072058a1184e9a588837b",
          "path": "src/backend/utils/misc/guc_tables.c",
          "sha256": "2e3efa81095d9fbc77afe7c3c0960f3440f33be768a1ac02461596161cf95468",
          "url": "https://github.com/postgres/postgres/blob/7d3e000c5961a544302072058a1184e9a588837b/src/backend/utils/misc/guc_tables.c#L3295",
          "lines": "3295-3302"
        },
        {
          "id": "src.path.4",
          "kind": "upstream_source",
          "source_role": "historical_documentation",
          "tag": "REL_16_15",
          "commit": "7d3e000c5961a544302072058a1184e9a588837b",
          "path": "doc/src/sgml/config.sgml",
          "sha256": "b256738f2425571a921f176e6e6d4b936a8164a0c79381c4c216d26c9749514c",
          "url": "https://github.com/postgres/postgres/blob/7d3e000c5961a544302072058a1184e9a588837b/doc/src/sgml/config.sgml#L2827",
          "lines": "2827-2884"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "72000 is snapshot_too_old in SQLSTATE Class 72 in the locked REL_16_15 definition artifact.",
          "sources": [
            "src.definition.rel16.artifact"
          ],
          "method": "Read locked historical definition snapshot."
        },
        {
          "id": "resolved-paths",
          "statement": "The PG16.15 guard checks snapshot type, LSN/page ordering, relation eligibility, and threshold timestamp before raising ERROR 72000 with snapshot too old.",
          "sources": [
            "src.path.0",
            "src.path.1",
            "src.path.2"
          ],
          "method": "Read the inline guard, implementation, and threshold mapping contexts.",
          "limits": "Source confirmation is not natural runtime."
        },
        {
          "id": "configuration-and-history",
          "statement": "old_snapshot_threshold is a PGC_POSTMASTER setting, disabled by -1, and the PG16.15 documentation describes the vacuum/read conditions; the catalogue boundary places removal in the PG17 major line.",
          "sources": [
            "src.path.3",
            "src.path.4",
            "src.definition.rel16.artifact"
          ],
          "method": "Read fixed GUC and documentation plus locked version membership."
        },
        {
          "id": "history",
          "statement": "The locked definition artifact records 72000 through 16.15 and absent from PG17/18 snapshots; it does not assert a replacement SQLSTATE.",
          "sources": [
            "src.definition.rel16.artifact"
          ],
          "method": "Compare locked version snapshots."
        }
      ],
      "messages": [
        {
          "id": "message.0",
          "sqlstate": "72000",
          "primary_template": "snapshot too old",
          "severity_source": "ERROR",
          "sources": [
            "src.path.0"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "resolved-paths"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "resolved-paths"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "F0000",
      "condition_name": "config_file_error",
      "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#L453",
          "lines": "453"
        },
        {
          "id": "src.path.0",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/access/transam/xlogrecovery.c",
          "sha256": "5757d413a6bf3b285fa60ddbbe54b2cdaffde1011ffe51220dfacb8fd9754c5d",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/transam/xlogrecovery.c#L1921",
          "lines": "1921-1931"
        },
        {
          "id": "src.path.1",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/libpq/auth-oauth.c",
          "sha256": "a62e6d17fc7117be3ce536544216a1fa86c527fdbb0ce15841c4b199c6bb04d5",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/libpq/auth-oauth.c#L813",
          "lines": "813-870"
        },
        {
          "id": "src.path.2",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/libpq/hba.c",
          "sha256": "b31049f83ce504979493155e9f496ab26b5f642969acc1d5280c32a86e7d1db3",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/libpq/hba.c#L2635",
          "lines": "2635-2692"
        },
        {
          "id": "src.path.3",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/postmaster/postmaster.c",
          "sha256": "467a6d6deb8f31d1fa599b854511207923a252f02b7d5cbcc878caece577eefb",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/postmaster/postmaster.c#L1327",
          "lines": "1327-1338,1998-2013"
        },
        {
          "id": "src.path.4",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "contrib/unaccent/unaccent.c",
          "sha256": "4daa6c5972ad9741aa2bb90ceb5e2483738d65bc166b690d41f814dbddb4df9e",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/contrib/unaccent/unaccent.c#L65",
          "lines": "65-109,260-271"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "F0000 is config_file_error in SQLSTATE Class F0.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read locked definition snapshot."
        },
        {
          "id": "resolved-paths",
          "statement": "F0000 has distinct recovery FATAL, caller-selected OAuth HBA, unaccent ERROR, and unaccent WARNING paths; HBA reload keeps old rules while initial startup fails closed.",
          "sources": [
            "src.path.0",
            "src.path.1",
            "src.path.2",
            "src.path.3",
            "src.path.4"
          ],
          "method": "Read complete source contexts and startup/reload guards.",
          "limits": "Source confirmation is not natural runtime."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records F0000 from 7.4; it does not prove the exact introduction rationale.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use locked catalogue boundary."
        }
      ],
      "messages": [
        {
          "id": "message.0",
          "sqlstate": "F0000",
          "primary_template": "recovery ended before configured recovery target was reached",
          "severity_source": "FATAL",
          "sources": [
            "src.path.0"
          ]
        },
        {
          "id": "message.1",
          "sqlstate": "F0000",
          "primary_template": "oauth_validator_libraries must be set for authentication method %s",
          "severity_source": "caller-selected elevel",
          "sources": [
            "src.path.1"
          ],
          "context_template": "line %d of configuration file \"%s\""
        },
        {
          "id": "message.2",
          "sqlstate": "F0000",
          "primary_template": "invalid list syntax in parameter \"%s\"",
          "severity_source": "caller-selected elevel",
          "sources": [
            "src.path.1"
          ]
        },
        {
          "id": "message.3",
          "sqlstate": "F0000",
          "primary_template": "authentication method \"oauth\" requires argument \"validator\" to be set when oauth_validator_libraries contains multiple options",
          "severity_source": "caller-selected elevel",
          "sources": [
            "src.path.1"
          ],
          "context_template": "line %d of configuration file \"%s\""
        },
        {
          "id": "message.4",
          "sqlstate": "F0000",
          "primary_template": "could not open unaccent file \"%s\": %m",
          "severity_source": "ERROR",
          "sources": [
            "src.path.4"
          ]
        },
        {
          "id": "message.5",
          "sqlstate": "F0000",
          "primary_template": "duplicate source strings, first one will be used",
          "severity_source": "WARNING",
          "sources": [
            "src.path.4"
          ]
        },
        {
          "id": "message.6",
          "sqlstate": "F0000",
          "primary_template": "invalid syntax: more than two strings in unaccent rule",
          "severity_source": "WARNING",
          "sources": [
            "src.path.4"
          ]
        },
        {
          "id": "message.7",
          "sqlstate": "F0000",
          "primary_template": "invalid syntax: unfinished quoted string in unaccent rule",
          "severity_source": "WARNING",
          "sources": [
            "src.path.4"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "resolved-paths"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "resolved-paths"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "F0001",
      "condition_name": "lock_file_exists",
      "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#L454",
          "lines": "454"
        },
        {
          "id": "src.path.0",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/utils/init/miscinit.c",
          "sha256": "54bdb859c143a6c70d86067ccf2e124f59aa0852e5705bb653652e41a60af39a",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/init/miscinit.c#L1262",
          "lines": "1262-1427"
        },
        {
          "id": "src.path.1",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/port/sysv_shmem.c",
          "sha256": "150a1143ebffbc726243cb1925109b3237173100814633ee3822f4470ca488de",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/port/sysv_shmem.c#L306",
          "lines": "306-335,765-835"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "F0001 is lock_file_exists in SQLSTATE Class F0.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read locked definition snapshot."
        },
        {
          "id": "resolved-paths",
          "statement": "Startup distinguishes a live lock owner, an empty or stale lock, and shared memory associated with the intended data directory; only the live/in-use branches emit the fixed F0001 FATAL messages.",
          "sources": [
            "src.path.0",
            "src.path.1"
          ],
          "method": "Read complete PID, shared-memory identity, and startup cleanup guards.",
          "limits": "Source confirmation is not natural runtime."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records F0001 from 7.4; it does not prove the exact introduction rationale.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use locked catalogue boundary."
        }
      ],
      "messages": [
        {
          "id": "message.0",
          "sqlstate": "F0001",
          "primary_template": "lock file \"%s\" already exists",
          "severity_source": "FATAL",
          "sources": [
            "src.path.0"
          ],
          "hint_template": "Is another postgres (PID %d) running in data directory \"%s\"?",
          "hint_variants": [
            "Is another postmaster (PID %d) running in data directory \"%s\"?",
            "Is another postgres (PID %d) using socket file \"%s\"?",
            "Is another postmaster (PID %d) using socket file \"%s\"?"
          ]
        },
        {
          "id": "message.1",
          "sqlstate": "F0001",
          "primary_template": "lock file \"%s\" is empty",
          "severity_source": "FATAL",
          "sources": [
            "src.path.0"
          ],
          "hint_template": "Either another server is starting, or the lock file is the remnant of a previous server startup crash."
        },
        {
          "id": "message.2",
          "sqlstate": "F0001",
          "primary_template": "pre-existing shared memory block (key %lu, ID %lu) is still in use",
          "severity_source": "FATAL",
          "sources": [
            "src.path.0",
            "src.path.1"
          ],
          "hint_template": "Terminate any old server processes associated with data directory \"%s\"."
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "resolved-paths"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "resolved-paths"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "HV000",
      "condition_name": "fdw_error",
      "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.nodeforeignscan.18.6",
          "kind": "upstream_source",
          "source_role": "executor_callback_dispatch",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/executor/nodeForeignscan.c",
          "sha256": "37b85b68b6fc26d94e40d9173dbfed8b69c70877c54ee72ffc761e2f7b876a0c",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/executor/nodeForeignscan.c"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "HV000 is fdw_error in SQL/MED Class HV.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes row and macro.",
          "limits": "The condition is a generic FDW boundary and does not identify a remote error or retry outcome."
        },
        {
          "id": "api-boundary",
          "statement": "The core FDW API dispatches installed wrapper callbacks; dblink is a separate contrib client API.",
          "sources": [
            "src.fdwapi.18.6",
            "src.nodeforeignscan.18.6"
          ],
          "method": "Read callback signatures and executor dispatch.",
          "limits": "This does not identify behavior of external wrappers. Generic API context and the absent resolved report group do not establish a source path emitting this SQLSTATE."
        },
        {
          "id": "scan-boundary",
          "statement": "The locked 18.6 resolved core/contrib call scan contains no direct HV000 report group.",
          "sources": [
            "src.calls.REL_18_6",
            "src.errcodes.18.6"
          ],
          "method": "Compare resolved report groups with the fixed macro mapping.",
          "limits": "The scan does not cover all external FDWs, drivers, remote systems, or user callbacks. Generic API context and the absent resolved report group do not establish a source path emitting this SQLSTATE."
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "definition-and-api",
          "status": "definition_only",
          "evidence_ids": [
            "identity",
            "api-boundary",
            "src.fdwapi.18.6",
            "src.nodeforeignscan.18.6"
          ]
        },
        {
          "scope": "direct-core-report",
          "status": "definition_only",
          "evidence_ids": [
            "scan-boundary",
            "src.calls.REL_18_6"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "scan-boundary"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "HV001",
      "condition_name": "fdw_out_of_memory",
      "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.postgres_fdw.option.18.6",
          "kind": "upstream_source",
          "source_role": "wrapper_implementation",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "contrib/postgres_fdw/option.c",
          "sha256": "880fd16c3e5cbc56733d1292ffdcc9b0f6cb1e17e72c90e9afa4e359239dc314",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/contrib/postgres_fdw/option.c"
        },
        {
          "id": "src.dblink.18.6",
          "kind": "upstream_source",
          "source_role": "contrib_client_implementation",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "contrib/dblink/dblink.c",
          "sha256": "e4cfaec3a0a1e5d23fded584725e0f6cf7a17321ad99e5fe046e8b7f97416f15",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/contrib/dblink/dblink.c"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "HV001 is fdw_out_of_memory in SQL/MED Class HV.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes row and macro."
        },
        {
          "id": "postgres-fdw-options",
          "statement": "postgres_fdw reports HV001 when PQconndefaults returns null and when allocation of its copied option array fails.",
          "sources": [
            "src.postgres_fdw.option.18.6"
          ],
          "method": "Read option.c lines 313-341 and its adjacent failure comments.",
          "limits": "The source assumes allocation failure for PQconndefaults; it does not prove global backend memory exhaustion."
        },
        {
          "id": "dblink-options",
          "statement": "dblink reports HV001 when PQconndefaults returns null in two connection-option paths.",
          "sources": [
            "src.dblink.18.6"
          ],
          "method": "Read dblink.c lines 1968-1974 and 2904-2910.",
          "limits": "dblink is a separate contrib client API, not an FDW callback implementation."
        }
      ],
      "messages": [
        {
          "id": "postgres_fdw_pqconndefaults",
          "sqlstate": "HV001",
          "severity": "ERROR",
          "source_ids": [
            "src.postgres_fdw.option.18.6"
          ],
          "path": "contrib/postgres_fdw/option.c:317-319",
          "message": "out of memory",
          "detail": "Could not get libpq's default connection options."
        },
        {
          "id": "postgres_fdw_malloc",
          "sqlstate": "HV001",
          "severity": "ERROR",
          "source_ids": [
            "src.postgres_fdw.option.18.6"
          ],
          "path": "contrib/postgres_fdw/option.c:340-341",
          "message": "out of memory"
        },
        {
          "id": "dblink_pqconndefaults",
          "sqlstate": "HV001",
          "severity": "ERROR",
          "source_ids": [
            "src.dblink.18.6"
          ],
          "path": "contrib/dblink/dblink.c:1972-1974; 2908-2910",
          "message": "out of memory",
          "detail": "Could not get libpq's default connection options."
        }
      ],
      "usage_evidence": [
        {
          "scope": "postgres_fdw-and-dblink-source-paths",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "postgres-fdw-options",
            "dblink-options",
            "postgres_fdw_pqconndefaults",
            "postgres_fdw_malloc",
            "dblink_pqconndefaults"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "postgres-fdw-options",
            "dblink-options"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "HV002",
      "condition_name": "fdw_dynamic_parameter_value_needed",
      "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.file_fdw.18.6",
          "kind": "upstream_source",
          "source_role": "wrapper_validator",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "contrib/file_fdw/file_fdw.c",
          "sha256": "d79ec21c08be6a806b0710aab09698678ddb24103d3470702e66ee1523432125",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/contrib/file_fdw/file_fdw.c"
        },
        {
          "id": "src.file_fdw.9.1.24",
          "kind": "upstream_source",
          "source_role": "historical_wrapper_source",
          "tag": "REL9_1_24",
          "commit": "e85493559c4678f54d30b6b4e04b17c03a3192d7",
          "path": "contrib/file_fdw/file_fdw.c",
          "sha256": "6f948ed8f9ffa6d1077b289f23c53eff02c5182492f0827b908c2be86026dad8",
          "url": "https://github.com/postgres/postgres/blob/e85493559c4678f54d30b6b4e04b17c03a3192d7/contrib/file_fdw/file_fdw.c"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "HV002 is fdw_dynamic_parameter_value_needed in Class HV.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed definition row."
        },
        {
          "id": "file-fdw-validator",
          "statement": "file_fdw raises HV002 when neither filename nor program is supplied for a foreign table.",
          "sources": [
            "src.file_fdw.18.6"
          ],
          "method": "Read file_fdw.c:345-350.",
          "limits": "This is one bundled implementation; other wrappers can use the condition for different required parameters."
        },
        {
          "id": "historical-message",
          "statement": "The fixed 18.6 file_fdw source uses the filename-or-program message, while the fixed 9.1.24 source uses the filename-only wording.",
          "sources": [
            "src.file_fdw.18.6",
            "src.file_fdw.9.1.24"
          ],
          "method": "Read both fixed wrapper source files and compare the validator report templates.",
          "limits": "These are two fixed wrapper snapshots; this does not claim the exact transition release or behavior of other wrappers."
        }
      ],
      "messages": [
        {
          "id": "file-fdw-required-source",
          "sqlstate": "HV002",
          "severity": "ERROR",
          "source_ids": [
            "src.file_fdw.18.6"
          ],
          "path": "contrib/file_fdw/file_fdw.c:349-350",
          "message": "either filename or program is required for file_fdw foreign tables"
        },
        {
          "id": "file-fdw-required-source-9.1.24",
          "sqlstate": "HV002",
          "severity": "ERROR",
          "source_ids": [
            "src.file_fdw.9.1.24"
          ],
          "path": "contrib/file_fdw/file_fdw.c:222-224",
          "message": "filename is required for file_fdw foreign tables"
        }
      ],
      "usage_evidence": [
        {
          "scope": "file_fdw-option-validation",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "file-fdw-validator",
            "file-fdw-required-source"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "file-fdw-validator"
          ]
        }
      ],
      "runtime": []
    },
    {
      "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": []
    },
    {
      "sqlstate": "HV005",
      "condition_name": "fdw_column_name_not_found",
      "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": "HV005 is fdw_column_name_not_found in Class HV.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed definition row."
        },
        {
          "id": "scan-boundary",
          "statement": "No direct HV005 report group was resolved in the locked PostgreSQL 18.6 core/contrib call scan.",
          "sources": [
            "src.calls.REL_18_6",
            "src.fdwapi.18.6"
          ],
          "method": "Compare resolved report groups with the macro mapping.",
          "limits": "External wrappers and remote systems are outside the scan. Generic API context and the absent resolved report group do not establish a source path emitting this SQLSTATE."
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "fdw-descriptor-boundary",
          "status": "definition_only",
          "evidence_ids": [
            "identity",
            "scan-boundary"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "scan-boundary"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "HV006",
      "condition_name": "fdw_invalid_data_type_descriptors",
      "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": "HV006 is fdw_invalid_data_type_descriptors in Class HV.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed definition row."
        },
        {
          "id": "scan-boundary",
          "statement": "The locked 18.6 core/contrib scan has no direct HV006 report group; the API boundary is the available implementation context.",
          "sources": [
            "src.fdwapi.18.6",
            "src.calls.REL_18_6"
          ],
          "method": "Compare callback contract and resolved report groups.",
          "limits": "Concrete descriptor fields 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": "fdw-descriptor-boundary",
          "status": "definition_only",
          "evidence_ids": [
            "identity",
            "scan-boundary"
          ]
        },
        {
          "scope": "direct-core-report",
          "status": "definition_only",
          "evidence_ids": [
            "scan-boundary"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "scan-boundary"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "HV007",
      "condition_name": "fdw_invalid_column_name",
      "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": "HV007 is fdw_invalid_column_name in Class HV.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed definition row."
        },
        {
          "id": "scan-boundary",
          "statement": "No direct HV007 report group was resolved in the locked PostgreSQL 18.6 core/contrib call scan.",
          "sources": [
            "src.calls.REL_18_6",
            "src.fdwapi.18.6"
          ],
          "method": "Compare resolved report groups with the macro mapping.",
          "limits": "Name rules are wrapper-specific. Generic API context and the absent resolved report group do not establish a source path emitting this SQLSTATE."
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "fdw-name-boundary",
          "status": "definition_only",
          "evidence_ids": [
            "identity",
            "scan-boundary"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "scan-boundary"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "HV008",
      "condition_name": "fdw_invalid_column_number",
      "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": "HV008 is fdw_invalid_column_number in Class HV.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed definition row."
        },
        {
          "id": "scan-boundary",
          "statement": "No direct HV008 report group was resolved in the locked PostgreSQL 18.6 core/contrib call scan.",
          "sources": [
            "src.calls.REL_18_6",
            "src.fdwapi.18.6"
          ],
          "method": "Compare resolved report groups with the macro mapping.",
          "limits": "Ordinal semantics are wrapper-specific. Generic API context and the absent resolved report group do not establish a source path emitting this SQLSTATE."
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "fdw-ordinal-boundary",
          "status": "definition_only",
          "evidence_ids": [
            "identity",
            "scan-boundary"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "scan-boundary"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "HV009",
      "condition_name": "fdw_invalid_use_of_null_pointer",
      "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": "HV009 is fdw_invalid_use_of_null_pointer in Class HV.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed definition row."
        },
        {
          "id": "scan-boundary",
          "statement": "No direct HV009 report group was resolved in the locked PostgreSQL 18.6 core/contrib call scan.",
          "sources": [
            "src.calls.REL_18_6",
            "src.fdwapi.18.6"
          ],
          "method": "Compare resolved report groups with the macro mapping.",
          "limits": "A wrapper may terminate the connection or process instead of returning this code. Generic API context and the absent resolved report group do not establish a source path emitting this SQLSTATE."
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "fdw-pointer-boundary",
          "status": "definition_only",
          "evidence_ids": [
            "identity",
            "scan-boundary"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "scan-boundary"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "HV00A",
      "condition_name": "fdw_invalid_string_format",
      "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": "HV00A is fdw_invalid_string_format in Class HV.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed definition row."
        },
        {
          "id": "scan-boundary",
          "statement": "No direct HV00A report group was resolved in the locked PostgreSQL 18.6 core/contrib call scan.",
          "sources": [
            "src.calls.REL_18_6",
            "src.fdwapi.18.6"
          ],
          "method": "Compare resolved report groups with the macro mapping.",
          "limits": "The rejected string field and grammar belong to the installed wrapper or remote driver. Generic API context and the absent resolved report group do not establish a source path emitting this SQLSTATE."
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "fdw-string-boundary",
          "status": "definition_only",
          "evidence_ids": [
            "identity",
            "scan-boundary"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "scan-boundary"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "HV00B",
      "condition_name": "fdw_invalid_handle",
      "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": "HV00B is fdw_invalid_handle in SQL/MED Class HV.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed definition row and macro."
        },
        {
          "id": "scan-boundary",
          "statement": "No direct HV00B report group was resolved in the locked PostgreSQL 18.6 core/contrib call scan.",
          "sources": [
            "src.calls.REL_18_6",
            "src.fdwapi.18.6"
          ],
          "method": "Compare resolved report groups with the macro mapping.",
          "limits": "The generic FDW API boundary does not identify an emitter for this SQLSTATE. The scan does not cover external wrappers, drivers, remote systems, or user callbacks."
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "definition-and-api",
          "status": "definition_only",
          "evidence_ids": [
            "identity",
            "scan-boundary",
            "src.fdwapi.18.6"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "scan-boundary"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "HV00C",
      "condition_name": "fdw_invalid_option_index",
      "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": "HV00C is fdw_invalid_option_index in SQL/MED Class HV.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed definition row and macro."
        },
        {
          "id": "scan-boundary",
          "statement": "No direct HV00C report group was resolved in the locked PostgreSQL 18.6 core/contrib call scan.",
          "sources": [
            "src.calls.REL_18_6",
            "src.fdwapi.18.6"
          ],
          "method": "Compare resolved report groups with the macro mapping.",
          "limits": "The generic FDW API boundary does not identify an emitter for this SQLSTATE. The scan does not cover external wrappers, drivers, remote systems, or user callbacks."
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "definition-and-api",
          "status": "definition_only",
          "evidence_ids": [
            "identity",
            "scan-boundary",
            "src.fdwapi.18.6"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "scan-boundary"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "HV00D",
      "condition_name": "fdw_invalid_option_name",
      "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.file_fdw.18.6",
          "kind": "upstream_source",
          "source_role": "wrapper_implementation",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "contrib/file_fdw/file_fdw.c",
          "sha256": "d79ec21c08be6a806b0710aab09698678ddb24103d3470702e66ee1523432125",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/contrib/file_fdw/file_fdw.c"
        },
        {
          "id": "src.postgres_fdw.option.18.6",
          "kind": "upstream_source",
          "source_role": "wrapper_implementation",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "contrib/postgres_fdw/option.c",
          "sha256": "880fd16c3e5cbc56733d1292ffdcc9b0f6cb1e17e72c90e9afa4e359239dc314",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/contrib/postgres_fdw/option.c"
        },
        {
          "id": "src.postgres_fdw.main.18.6",
          "kind": "upstream_source",
          "source_role": "wrapper_implementation",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "contrib/postgres_fdw/postgres_fdw.c",
          "sha256": "5f61f89fc1f9d67a204c47fd993db575b2d619449e5238b536b9fb1877037db6",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/contrib/postgres_fdw/postgres_fdw.c"
        },
        {
          "id": "src.file_fdw.9.6.24",
          "kind": "upstream_source",
          "source_role": "historical_wrapper_source",
          "tag": "REL9_6_24",
          "commit": "a4116b8d5a4f68803452d8f1aa3f74f302049a90",
          "path": "contrib/file_fdw/file_fdw.c",
          "sha256": "1745225d449f44e9b384e372e8e13d5f5fe141e53d49526760fc1df8a1bf6211",
          "url": "https://github.com/postgres/postgres/blob/a4116b8d5a4f68803452d8f1aa3f74f302049a90/contrib/file_fdw/file_fdw.c#L240-L246"
        },
        {
          "id": "src.postgres_fdw.option.9.6.24",
          "kind": "upstream_source",
          "source_role": "historical_wrapper_source",
          "tag": "REL9_6_24",
          "commit": "a4116b8d5a4f68803452d8f1aa3f74f302049a90",
          "path": "contrib/postgres_fdw/option.c",
          "sha256": "d7da1cf22cd61619ef2f0cb7ce1a741d4ecb9a03636766e097e2183acdf21d48",
          "url": "https://github.com/postgres/postgres/blob/a4116b8d5a4f68803452d8f1aa3f74f302049a90/contrib/postgres_fdw/option.c#L99-L103"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "HV00D is fdw_invalid_option_name in SQL/MED Class HV.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed definition row and macro."
        },
        {
          "id": "option-validators",
          "statement": "file_fdw and postgres_fdw validate option names in their object-specific contexts; the postgres_fdw import parser uses the same condition for an invalid import option.",
          "sources": [
            "src.file_fdw.18.6",
            "src.postgres_fdw.option.18.6",
            "src.postgres_fdw.main.18.6"
          ],
          "method": "Read each fixed error branch and its option context."
        },
        {
          "id": "historical-hint-boundary",
          "statement": "Fixed REL9_6_24 snapshots of file_fdw and postgres_fdw/option.c use the older dynamic hint 'Valid options in this context are: %s' with the same invalid-option ERROR; this is a bounded snapshot comparison, not an exact transition release.",
          "sources": [
            "src.file_fdw.9.6.24",
            "src.postgres_fdw.option.9.6.24"
          ],
          "method": "Read the fixed REL9_6_24 error branches at file_fdw.c:240-246 and postgres_fdw/option.c:99-103.",
          "limits": "The two fixed wrapper snapshots establish their own wording only; they do not date the transition or describe every wrapper."
        }
      ],
      "messages": [
        {
          "id": "hv00d_invalid_option",
          "sqlstate": "HV00D",
          "severity": "ERROR",
          "source_ids": [
            "src.file_fdw.18.6"
          ],
          "path": "contrib/file_fdw/file_fdw.c:247-253",
          "message": "invalid option \"%s\"",
          "hint_variants": [
            "Perhaps you meant the option \"%s\".",
            "There are no valid options in this context."
          ],
          "limits": "When valid options exist but no close match is found, the source emits no hint; the no-valid-options hint is only used when no valid option exists."
        },
        {
          "id": "hv00d_postgres_option",
          "sqlstate": "HV00D",
          "severity": "ERROR",
          "source_ids": [
            "src.postgres_fdw.option.18.6"
          ],
          "path": "contrib/postgres_fdw/option.c:110-116",
          "message": "invalid option \"%s\"",
          "hint_variants": [
            "Perhaps you meant the option \"%s\".",
            "There are no valid options in this context."
          ],
          "limits": "When valid options exist but no close match is found, the source emits no hint; the no-valid-options hint is only used when no valid option exists."
        },
        {
          "id": "hv00d_import_option",
          "sqlstate": "HV00D",
          "severity": "ERROR",
          "source_ids": [
            "src.postgres_fdw.main.18.6"
          ],
          "path": "contrib/postgres_fdw/postgres_fdw.c:5491-5493",
          "message": "invalid option \"%s\"",
          "limits": "This import-option parser has only the primary message in the fixed 18.6 path; it does not use the validator close-match or no-valid-options hint branches."
        },
        {
          "id": "hv00d_file_fdw_historical_hint",
          "sqlstate": "HV00D",
          "severity": "ERROR",
          "source_ids": [
            "src.file_fdw.9.6.24"
          ],
          "path": "contrib/file_fdw/file_fdw.c:240-246",
          "message": "invalid option \"%s\"",
          "hint_variants": [
            "Valid options in this context are: %s"
          ]
        },
        {
          "id": "hv00d_postgres_option_historical_hint",
          "sqlstate": "HV00D",
          "severity": "ERROR",
          "source_ids": [
            "src.postgres_fdw.option.9.6.24"
          ],
          "path": "contrib/postgres_fdw/option.c:99-103",
          "message": "invalid option \"%s\"",
          "hint_variants": [
            "Valid options in this context are: %s"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "confirmed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "option-validators",
            "hv00d_invalid_option"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "option-validators"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "HV00J",
      "condition_name": "fdw_option_name_not_found",
      "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.dblink.18.6",
          "kind": "upstream_source",
          "source_role": "contrib_client_implementation",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "contrib/dblink/dblink.c",
          "sha256": "e4cfaec3a0a1e5d23fded584725e0f6cf7a17321ad99e5fe046e8b7f97416f15",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/contrib/dblink/dblink.c"
        },
        {
          "id": "src.dblink.9.6.24",
          "kind": "upstream_source",
          "source_role": "historical_wrapper_source",
          "tag": "REL9_6_24",
          "commit": "a4116b8d5a4f68803452d8f1aa3f74f302049a90",
          "path": "contrib/dblink/dblink.c",
          "sha256": "ff331aac2153e21aa88cc6c4e656ab00b0593744062270849f27281434db3b55",
          "url": "https://github.com/postgres/postgres/blob/a4116b8d5a4f68803452d8f1aa3f74f302049a90/contrib/dblink/dblink.c#L2017-L2021"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "HV00J is fdw_option_name_not_found in SQL/MED Class HV.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed definition row and macro."
        },
        {
          "id": "dblink-option",
          "statement": "dblink uses HV00J in its own connection-option parser; dblink is a separate contrib client API rather than an FDW callback implementation.",
          "sources": [
            "src.dblink.18.6"
          ],
          "method": "Read the fixed option-validation branch."
        },
        {
          "id": "historical-hint-boundary",
          "statement": "The fixed REL9_6_24 dblink option parser uses the older dynamic hint 'Valid options in this context are: %s' with the same invalid-option ERROR; this is a bounded snapshot comparison, not an exact transition release.",
          "sources": [
            "src.dblink.9.6.24"
          ],
          "method": "Read the fixed REL9_6_24 dblink.c error branch at lines 2017-2021.",
          "limits": "This fixed snapshot establishes dblink's wording there; it does not date the transition or generalize to other clients."
        }
      ],
      "messages": [
        {
          "id": "dblink-invalid-option",
          "sqlstate": "HV00J",
          "severity": "ERROR",
          "source_ids": [
            "src.dblink.18.6"
          ],
          "path": "contrib/dblink/dblink.c:2005-2011",
          "message": "invalid option \"%s\"",
          "hint_variants": [
            "Perhaps you meant the option \"%s\".",
            "There are no valid options in this context."
          ],
          "limits": "When valid options exist but no close match is found, the source emits no hint; the no-valid-options hint is only used when no valid option exists."
        },
        {
          "id": "dblink-invalid-option-historical-hint",
          "sqlstate": "HV00J",
          "severity": "ERROR",
          "source_ids": [
            "src.dblink.9.6.24"
          ],
          "path": "contrib/dblink/dblink.c:2017-2021",
          "message": "invalid option \"%s\"",
          "hint_variants": [
            "Valid options in this context are: %s"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "confirmed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "dblink-option",
            "dblink-invalid-option"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "dblink-option"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "HV00K",
      "condition_name": "fdw_reply_handle",
      "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": "HV00K is fdw_reply_handle in SQL/MED Class HV.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed definition row and macro."
        },
        {
          "id": "scan-boundary",
          "statement": "No direct HV00K report group was resolved in the locked PostgreSQL 18.6 core/contrib call scan.",
          "sources": [
            "src.calls.REL_18_6",
            "src.fdwapi.18.6"
          ],
          "method": "Compare resolved report groups with the macro mapping.",
          "limits": "The generic FDW API boundary does not identify an emitter for this SQLSTATE. The scan does not cover external wrappers, drivers, remote systems, or user callbacks."
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "definition-and-api",
          "status": "definition_only",
          "evidence_ids": [
            "identity",
            "scan-boundary",
            "src.fdwapi.18.6"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "scan-boundary"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "HV00L",
      "condition_name": "fdw_unable_to_create_execution",
      "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": "HV00L is fdw_unable_to_create_execution in SQL/MED Class HV.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed definition row and macro."
        },
        {
          "id": "scan-boundary",
          "statement": "No direct HV00L report group was resolved in the locked PostgreSQL 18.6 core/contrib call scan.",
          "sources": [
            "src.calls.REL_18_6",
            "src.fdwapi.18.6"
          ],
          "method": "Compare resolved report groups with the macro mapping.",
          "limits": "The generic FDW API boundary does not identify an emitter for this SQLSTATE. The scan does not cover external wrappers, drivers, remote systems, or user callbacks."
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "definition-and-api",
          "status": "definition_only",
          "evidence_ids": [
            "identity",
            "scan-boundary",
            "src.fdwapi.18.6"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "scan-boundary"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "HV00M",
      "condition_name": "fdw_unable_to_create_reply",
      "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": "HV00M is fdw_unable_to_create_reply in SQL/MED Class HV.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed definition row and macro."
        },
        {
          "id": "scan-boundary",
          "statement": "No direct HV00M report group was resolved in the locked PostgreSQL 18.6 core/contrib call scan.",
          "sources": [
            "src.calls.REL_18_6",
            "src.fdwapi.18.6"
          ],
          "method": "Compare resolved report groups with the macro mapping.",
          "limits": "The generic FDW API boundary does not identify an emitter for this SQLSTATE. The scan does not cover external wrappers, drivers, remote systems, or user callbacks."
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "definition-and-api",
          "status": "definition_only",
          "evidence_ids": [
            "identity",
            "scan-boundary",
            "src.fdwapi.18.6"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "scan-boundary"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "HV00N",
      "condition_name": "fdw_unable_to_establish_connection",
      "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": "HV00N is fdw_unable_to_establish_connection in SQL/MED Class HV.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed definition row and macro."
        },
        {
          "id": "scan-boundary",
          "statement": "No direct HV00N report group was resolved in the locked PostgreSQL 18.6 core/contrib call scan.",
          "sources": [
            "src.calls.REL_18_6",
            "src.fdwapi.18.6"
          ],
          "method": "Compare resolved report groups with the macro mapping.",
          "limits": "The generic FDW API boundary does not identify an emitter for this SQLSTATE. The scan does not cover external wrappers, drivers, remote systems, or user callbacks."
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "definition-and-api",
          "status": "definition_only",
          "evidence_ids": [
            "identity",
            "scan-boundary",
            "src.fdwapi.18.6"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "scan-boundary"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "HV00P",
      "condition_name": "fdw_no_schemas",
      "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.foreigncmds.18.6",
          "kind": "upstream_source",
          "source_role": "core_command_path",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/foreigncmds.c",
          "sha256": "292d28c5589bbef8974af9355495431e9295a7c295a9cbdc5d7da1c5362471cd",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/foreigncmds.c"
        },
        {
          "id": "src.fdwapi.18.6",
          "kind": "upstream_source",
          "source_role": "fdw_api_definition",
          "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#L259-L260"
        },
        {
          "id": "src.foreigncmds.9.5.0",
          "kind": "upstream_source",
          "source_role": "historical_feature_source",
          "tag": "REL9_5_0",
          "commit": "cdd4ed5449bf317cc71b45a8deee0173822e7592",
          "path": "src/backend/commands/foreigncmds.c",
          "sha256": "d2ab3a8883ed1e27c38a0a7ff83f0fc9d493c488d7e30f56eef7d1ae449f9a16",
          "url": "https://github.com/postgres/postgres/blob/cdd4ed5449bf317cc71b45a8deee0173822e7592/src/backend/commands/foreigncmds.c#L1509-L1542"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "HV00P is fdw_no_schemas in SQL/MED Class HV.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed definition row and macro."
        },
        {
          "id": "handler-capability",
          "statement": "The core IMPORT FOREIGN SCHEMA command emits HV00P when the selected FDW handler has no ImportForeignSchema callback.",
          "sources": [
            "src.foreigncmds.18.6",
            "src.fdwapi.18.6"
          ],
          "method": "Read the callback-null branch and handler definition."
        },
        {
          "id": "import-feature-boundary",
          "statement": "The IMPORT FOREIGN SCHEMA command and its ImportForeignSchema handler callback are present in the fixed PostgreSQL 9.5.0 source snapshot; the 9.1.0 directory observation for HV00P is a condition-definition boundary, not evidence that this command existed in 9.1.",
          "sources": [
            "src.foreigncmds.9.5.0"
          ],
          "method": "Read the fixed REL9_5_0 foreigncmds.c command path and callback invocation.",
          "limits": "This establishes presence in the REL9_5_0 source snapshot; it does not claim the exact development commit or behavior of every wrapper before or after that snapshot."
        }
      ],
      "messages": [
        {
          "id": "no-import-schema-callback",
          "sqlstate": "HV00P",
          "severity": "ERROR",
          "source_ids": [
            "src.foreigncmds.18.6"
          ],
          "path": "src/backend/commands/foreigncmds.c:1527-1530",
          "message": "foreign-data wrapper \"%s\" does not support IMPORT FOREIGN SCHEMA"
        }
      ],
      "usage_evidence": [
        {
          "scope": "confirmed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "handler-capability",
            "no-import-schema-callback"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "handler-capability"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "HV00Q",
      "condition_name": "fdw_schema_not_found",
      "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.postgres_fdw.main.18.6",
          "kind": "upstream_source",
          "source_role": "wrapper_implementation",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "contrib/postgres_fdw/postgres_fdw.c",
          "sha256": "5f61f89fc1f9d67a204c47fd993db575b2d619449e5238b536b9fb1877037db6",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/contrib/postgres_fdw/postgres_fdw.c"
        },
        {
          "id": "doc.transactions.18",
          "kind": "upstream_source",
          "source_role": "transaction_recovery_documentation",
          "tag": "PG18-docs",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "doc/src/sgml/xact.sgml",
          "sha256": "b48fbe8bd02ce3d1181a350c88c8baa6e11c73edc90a936e77b180daef328c5c",
          "url": "https://www.postgresql.org/docs/18/tutorial-transactions.html"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "HV00Q is fdw_schema_not_found in SQL/MED Class HV.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed definition row and macro."
        },
        {
          "id": "remote-schema-check",
          "statement": "postgres_fdw runs SELECT 1 FROM pg_catalog.pg_namespace WHERE nspname = <remote_schema> on the remote connection and emits HV00Q when that query does not return exactly one row.",
          "sources": [
            "src.postgres_fdw.main.18.6"
          ],
          "method": "Read the fixed remote pg_namespace query and PQntuples result check.",
          "limits": "The check uses the mapped remote connection and an exact nspname comparison; local search_path does not choose the schema. Connection or remote query errors are reported by an earlier path, and later schema/table privileges are separate from this existence check."
        },
        {
          "id": "transaction-boundary",
          "statement": "This source path reports ERROR; in an explicit local transaction, the caller must roll back the failed transaction or roll back to a deliberately established savepoint before sending another command.",
          "sources": [
            "src.postgres_fdw.main.18.6",
            "doc.transactions.18"
          ],
          "method": "Combine the fixed ERROR severity with the PostgreSQL transaction and savepoint recovery documentation.",
          "limits": "No natural postgres_fdw runtime was run in this batch; the transaction guidance is the general ERROR boundary, not a claim about a selected remote topology."
        }
      ],
      "messages": [
        {
          "id": "remote-schema-not-found",
          "sqlstate": "HV00Q",
          "severity": "ERROR",
          "source_ids": [
            "src.postgres_fdw.main.18.6"
          ],
          "path": "contrib/postgres_fdw/postgres_fdw.c:5523-5526",
          "message": "schema \"%s\" is not present on foreign server \"%s\""
        }
      ],
      "usage_evidence": [
        {
          "scope": "confirmed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "remote-schema-check",
            "remote-schema-not-found"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "remote-schema-check"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "HV00R",
      "condition_name": "fdw_table_not_found",
      "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": "HV00R is fdw_table_not_found in SQL/MED Class HV.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes definition row and macro."
        },
        {
          "id": "api-boundary",
          "statement": "The condition name identifies an FDW table-not-found state, but the fixed scan does not identify whether the table name is remote, mapped, or wrapper-owned.",
          "sources": [
            "src.fdwapi.18.6"
          ],
          "method": "Read the fixed FDW callback signatures and FdwRoutine structure.",
          "limits": "Generic API context is background only and does not prove an emitting path for this SQLSTATE."
        },
        {
          "id": "scan-boundary",
          "statement": "No resolved HV00R report group was found in the locked PostgreSQL 18.6 core/contrib call scan.",
          "sources": [
            "src.calls.REL_18_6",
            "src.errcodes.18.6"
          ],
          "method": "Compare resolved report groups with the fixed macro mapping.",
          "limits": "This scan does not cover external wrappers, drivers, remote systems, or user callbacks; absence from the scan is not an absolute absence claim."
        },
        {
          "id": "history-boundary",
          "statement": "The locked release definition snapshots establish presence from the known 9.1.0 boundary; the available pre-9 material does not establish an exact introduction release.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Compare the canonical release-definition facts with the available pre-9 source boundary.",
          "limits": "Definition presence does not prove runtime use."
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "definition-and-api",
          "status": "definition_only",
          "evidence_ids": [
            "identity",
            "api-boundary"
          ]
        },
        {
          "scope": "resolved-call-scan",
          "status": "definition_only",
          "evidence_ids": [
            "scan-boundary"
          ]
        },
        {
          "scope": "pre9-history",
          "status": "unknown",
          "evidence_ids": [
            "history-boundary"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "scan-boundary"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "HV010",
      "condition_name": "fdw_function_sequence_error",
      "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": "HV010 is fdw_function_sequence_error in SQL/MED Class HV.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes definition row and macro."
        },
        {
          "id": "api-boundary",
          "statement": "The condition name identifies an FDW function-sequence state. The generic callback API provides phase boundaries only; it does not establish a source path that emits HV010.",
          "sources": [
            "src.fdwapi.18.6"
          ],
          "method": "Read the fixed FDW callback signatures and FdwRoutine structure.",
          "limits": "Generic API context is background only and does not prove an emitting path for this SQLSTATE."
        },
        {
          "id": "scan-boundary",
          "statement": "No resolved HV010 report group was found in the locked PostgreSQL 18.6 core/contrib call scan.",
          "sources": [
            "src.calls.REL_18_6",
            "src.errcodes.18.6"
          ],
          "method": "Compare resolved report groups with the fixed macro mapping.",
          "limits": "This scan does not cover external wrappers, drivers, remote systems, or user callbacks; absence from the scan is not an absolute absence claim."
        },
        {
          "id": "history-boundary",
          "statement": "The locked release definition snapshots establish presence from the known 9.1.0 boundary; the available pre-9 material does not establish an exact introduction release.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Compare the canonical release-definition facts with the available pre-9 source boundary.",
          "limits": "Definition presence does not prove runtime use."
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "definition-and-api",
          "status": "definition_only",
          "evidence_ids": [
            "identity",
            "api-boundary"
          ]
        },
        {
          "scope": "resolved-call-scan",
          "status": "definition_only",
          "evidence_ids": [
            "scan-boundary"
          ]
        },
        {
          "scope": "pre9-history",
          "status": "unknown",
          "evidence_ids": [
            "history-boundary"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "scan-boundary"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "HV014",
      "condition_name": "fdw_too_many_handles",
      "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": "HV014 is fdw_too_many_handles in SQL/MED Class HV.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes definition row and macro."
        },
        {
          "id": "api-boundary",
          "statement": "The condition name identifies an FDW handle-limit state. The handle kind, count scope, and owner remain implementation-specific because no emitting path was resolved.",
          "sources": [
            "src.fdwapi.18.6"
          ],
          "method": "Read the fixed FDW callback signatures and FdwRoutine structure.",
          "limits": "Generic API context is background only and does not prove an emitting path for this SQLSTATE."
        },
        {
          "id": "scan-boundary",
          "statement": "No resolved HV014 report group was found in the locked PostgreSQL 18.6 core/contrib call scan.",
          "sources": [
            "src.calls.REL_18_6",
            "src.errcodes.18.6"
          ],
          "method": "Compare resolved report groups with the fixed macro mapping.",
          "limits": "This scan does not cover external wrappers, drivers, remote systems, or user callbacks; absence from the scan is not an absolute absence claim."
        },
        {
          "id": "history-boundary",
          "statement": "The locked release definition snapshots establish presence from the known 9.1.0 boundary; the available pre-9 material does not establish an exact introduction release.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Compare the canonical release-definition facts with the available pre-9 source boundary.",
          "limits": "Definition presence does not prove runtime use."
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "definition-and-api",
          "status": "definition_only",
          "evidence_ids": [
            "identity",
            "api-boundary"
          ]
        },
        {
          "scope": "resolved-call-scan",
          "status": "definition_only",
          "evidence_ids": [
            "scan-boundary"
          ]
        },
        {
          "scope": "pre9-history",
          "status": "unknown",
          "evidence_ids": [
            "history-boundary"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "scan-boundary"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "HV021",
      "condition_name": "fdw_inconsistent_descriptor_information",
      "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": "HV021 is fdw_inconsistent_descriptor_information in SQL/MED Class HV.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes definition row and macro."
        },
        {
          "id": "api-boundary",
          "statement": "The condition name identifies inconsistent descriptor information at an FDW boundary. The descriptor fields and producer/consumer contract remain implementation-specific.",
          "sources": [
            "src.fdwapi.18.6"
          ],
          "method": "Read the fixed FDW callback signatures and FdwRoutine structure.",
          "limits": "Generic API context is background only and does not prove an emitting path for this SQLSTATE."
        },
        {
          "id": "scan-boundary",
          "statement": "No resolved HV021 report group was found in the locked PostgreSQL 18.6 core/contrib call scan.",
          "sources": [
            "src.calls.REL_18_6",
            "src.errcodes.18.6"
          ],
          "method": "Compare resolved report groups with the fixed macro mapping.",
          "limits": "This scan does not cover external wrappers, drivers, remote systems, or user callbacks; absence from the scan is not an absolute absence claim."
        },
        {
          "id": "history-boundary",
          "statement": "The locked release definition snapshots establish presence from the known 9.1.0 boundary; the available pre-9 material does not establish an exact introduction release.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Compare the canonical release-definition facts with the available pre-9 source boundary.",
          "limits": "Definition presence does not prove runtime use."
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "definition-and-api",
          "status": "definition_only",
          "evidence_ids": [
            "identity",
            "api-boundary"
          ]
        },
        {
          "scope": "resolved-call-scan",
          "status": "definition_only",
          "evidence_ids": [
            "scan-boundary"
          ]
        },
        {
          "scope": "pre9-history",
          "status": "unknown",
          "evidence_ids": [
            "history-boundary"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "scan-boundary"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "HV024",
      "condition_name": "fdw_invalid_attribute_value",
      "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": "HV024 is fdw_invalid_attribute_value in SQL/MED Class HV.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes definition row and macro."
        },
        {
          "id": "api-boundary",
          "statement": "The condition name identifies an invalid attribute value at an FDW boundary. The attribute domain and validator remain implementation-specific.",
          "sources": [
            "src.fdwapi.18.6"
          ],
          "method": "Read the fixed FDW callback signatures and FdwRoutine structure.",
          "limits": "Generic API context is background only and does not prove an emitting path for this SQLSTATE."
        },
        {
          "id": "scan-boundary",
          "statement": "No resolved HV024 report group was found in the locked PostgreSQL 18.6 core/contrib call scan.",
          "sources": [
            "src.calls.REL_18_6",
            "src.errcodes.18.6"
          ],
          "method": "Compare resolved report groups with the fixed macro mapping.",
          "limits": "This scan does not cover external wrappers, drivers, remote systems, or user callbacks; absence from the scan is not an absolute absence claim."
        },
        {
          "id": "history-boundary",
          "statement": "The locked release definition snapshots establish presence from the known 9.1.0 boundary; the available pre-9 material does not establish an exact introduction release.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Compare the canonical release-definition facts with the available pre-9 source boundary.",
          "limits": "Definition presence does not prove runtime use."
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "definition-and-api",
          "status": "definition_only",
          "evidence_ids": [
            "identity",
            "api-boundary"
          ]
        },
        {
          "scope": "resolved-call-scan",
          "status": "definition_only",
          "evidence_ids": [
            "scan-boundary"
          ]
        },
        {
          "scope": "pre9-history",
          "status": "unknown",
          "evidence_ids": [
            "history-boundary"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "scan-boundary"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "HV090",
      "condition_name": "fdw_invalid_string_length_or_buffer_length",
      "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": "HV090 is fdw_invalid_string_length_or_buffer_length in SQL/MED Class HV.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes definition row and macro."
        },
        {
          "id": "api-boundary",
          "statement": "The condition name identifies an invalid FDW string or buffer length. The length units, buffer owner, and validation path remain implementation-specific.",
          "sources": [
            "src.fdwapi.18.6"
          ],
          "method": "Read the fixed FDW callback signatures and FdwRoutine structure.",
          "limits": "Generic API context is background only and does not prove an emitting path for this SQLSTATE."
        },
        {
          "id": "scan-boundary",
          "statement": "No resolved HV090 report group was found in the locked PostgreSQL 18.6 core/contrib call scan.",
          "sources": [
            "src.calls.REL_18_6",
            "src.errcodes.18.6"
          ],
          "method": "Compare resolved report groups with the fixed macro mapping.",
          "limits": "This scan does not cover external wrappers, drivers, remote systems, or user callbacks; absence from the scan is not an absolute absence claim."
        },
        {
          "id": "history-boundary",
          "statement": "The locked release definition snapshots establish presence from the known 9.1.0 boundary; the available pre-9 material does not establish an exact introduction release.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Compare the canonical release-definition facts with the available pre-9 source boundary.",
          "limits": "Definition presence does not prove runtime use."
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "definition-and-api",
          "status": "definition_only",
          "evidence_ids": [
            "identity",
            "api-boundary"
          ]
        },
        {
          "scope": "resolved-call-scan",
          "status": "definition_only",
          "evidence_ids": [
            "scan-boundary"
          ]
        },
        {
          "scope": "pre9-history",
          "status": "unknown",
          "evidence_ids": [
            "history-boundary"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "scan-boundary"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "HV091",
      "condition_name": "fdw_invalid_descriptor_field_identifier",
      "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": "HV091 is fdw_invalid_descriptor_field_identifier in SQL/MED Class HV.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed errcodes definition row and macro."
        },
        {
          "id": "api-boundary",
          "statement": "The condition name identifies an invalid FDW descriptor field identifier. The field namespace and descriptor interface remain implementation-specific.",
          "sources": [
            "src.fdwapi.18.6"
          ],
          "method": "Read the fixed FDW callback signatures and FdwRoutine structure.",
          "limits": "Generic API context is background only and does not prove an emitting path for this SQLSTATE."
        },
        {
          "id": "scan-boundary",
          "statement": "No resolved HV091 report group was found in the locked PostgreSQL 18.6 core/contrib call scan.",
          "sources": [
            "src.calls.REL_18_6",
            "src.errcodes.18.6"
          ],
          "method": "Compare resolved report groups with the fixed macro mapping.",
          "limits": "This scan does not cover external wrappers, drivers, remote systems, or user callbacks; absence from the scan is not an absolute absence claim."
        },
        {
          "id": "history-boundary",
          "statement": "The locked release definition snapshots establish presence from the known 9.1.0 boundary; the available pre-9 material does not establish an exact introduction release.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Compare the canonical release-definition facts with the available pre-9 source boundary.",
          "limits": "Definition presence does not prove runtime use."
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "definition-and-api",
          "status": "definition_only",
          "evidence_ids": [
            "identity",
            "api-boundary"
          ]
        },
        {
          "scope": "resolved-call-scan",
          "status": "definition_only",
          "evidence_ids": [
            "scan-boundary"
          ]
        },
        {
          "scope": "pre9-history",
          "status": "unknown",
          "evidence_ids": [
            "history-boundary"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "scan-boundary"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "P0000",
      "condition_name": "plpgsql_error",
      "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#L490",
          "lines": "490"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "P0000 is plpgsql_error, the PostgreSQL-specific PL/pgSQL Error category entry.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed category row and macro."
        },
        {
          "id": "bounded-scan",
          "statement": "The fixed REL_18_6 call archive has no resolved report group for the P0000 category code.",
          "sources": [
            "src.calls.REL_18_6"
          ],
          "method": "Filter the archive by exact code and do not promote member-code reports to a category emitter.",
          "limits": "A category definition does not imply that executor paths emit the category code itself."
        },
        {
          "id": "member-boundary",
          "statement": "Specific PL/pgSQL conditions such as P0002, P0003, and P0004 have their own report paths and should be diagnosed by their actual SQLSTATE.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Compare the category row with member definitions."
        }
      ],
      "messages": [],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "category-emitter",
          "status": "unknown",
          "evidence_ids": [
            "bounded-scan",
            "member-boundary"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "bounded-scan"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "P0001",
      "condition_name": "raise_exception",
      "sources": [
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "src.errcodes.18.6",
          "location": "lines 487-494",
          "path": "src/backend/utils/errcodes.txt",
          "sha256": "6e8de346643ba84aa3c9c6a73360acfc7b2dfb89162c06c08ce9bf5bcd5bbcba",
          "tag": "REL_18_6",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/errcodes.txt"
        },
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "src.pl-exec.18.6",
          "location": "lines 3889-3923, exec_stmt_raise default and ereport",
          "path": "src/pl/plpgsql/src/pl_exec.c",
          "sha256": "0df3c70a6bccf6dddf443fb99e152a16a67009827c44a820597e98e585cb8b20",
          "tag": "REL_18_6",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/pl/plpgsql/src/pl_exec.c#L3889-L3923"
        },
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "doc.plpgsql.18",
          "location": "lines 2815-2860, 2957-2968, 3768-3775, 3836-3858, 4008-4013",
          "path": "doc/src/sgml/plpgsql.sgml",
          "sha256": "43d705adbded343336341fd3e34ea8940432e8a8211f737d36ba3041ad0a4a51",
          "tag": "PG18-docs",
          "url": "https://www.postgresql.org/docs/18/plpgsql-errors-and-messages.html"
        },
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "doc.protocol.18",
          "location": "lines 6254-6290, severity and diagnostic fields",
          "path": "doc/src/sgml/protocol.sgml",
          "sha256": "745339e07ebbc2bb67d98b258e25772ada644ef26011e3cd6b3fcbb435235f89",
          "tag": "PG18-docs",
          "url": "https://www.postgresql.org/docs/18/protocol-error-fields.html"
        },
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "doc.transactions.18",
          "location": "transaction rollback and savepoint behavior",
          "path": "doc/src/sgml/xact.sgml",
          "sha256": "b48fbe8bd02ce3d1181a350c88c8baa6e11c73edc90a936e77b180daef328c5c",
          "tag": "PG18-docs",
          "url": "https://www.postgresql.org/docs/18/tutorial-transactions.html"
        },
        {
          "commit": "313a720f95a3f41b59f853786b184f38f82172d9",
          "id": "doc.errcodes.8.1.4",
          "kind": "upstream_source",
          "location": "REL8_1_4 table rows 1303-1308",
          "path": "doc/src/sgml/errcodes.sgml",
          "release": "8.1.4",
          "sha256": "fdd6f5470b19970d3b60219a44e66b33193647975d346adfe2a98178f706b776",
          "url": "https://github.com/postgres/postgres/blob/313a720f95a3f41b59f853786b184f38f82172d9/doc/src/sgml/errcodes.sgml#L1303-L1308"
        },
        {
          "id": "manifest.P0001",
          "kind": "local_artifact",
          "location": "snapshots and definition_blobs entries for the P0001 definition",
          "sha256": "1727a275f336988ff96b4f9990a4ca253080f73fc5d316e7def165c8cf3708a8"
        },
        {
          "id": "case-manifest.P0001",
          "kind": "local_artifact",
          "location": "plpgsql_raise_exception",
          "sha256": "0976d6bce923e005cd20d0b74ffb82b98793c2136497e4f9b281c9168f3fc2f9"
        },
        {
          "id": "snippet-registry.P0001.final",
          "kind": "local_artifact",
          "location": "plpgsql_raise_exception ordered function, call, and followup",
          "sha256": "1728525c9f6f073807ce34df0d9a4ee60f1c8bce5179c8bca91c92ca79aa795a"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "limits": "The directory identifies the condition; it does not say that every application error should use P0001.",
          "method": "Read the Class P0 section and P0001 row in the frozen errcodes.txt snapshot.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "statement": "P0001 is the raise_exception condition in PostgreSQL-specific Class P0, PL/pgSQL Error."
        },
        {
          "id": "raise.default-code",
          "limits": "An explicit condition, SQLSTATE, or ERRCODE selects another code; the default applies to an EXCEPTION-level raise.",
          "method": "Read the executor's default err_code branch and the official RAISE documentation.",
          "sources": [
            "src.pl-exec.18.6",
            "doc.plpgsql.18"
          ],
          "statement": "A RAISE EXCEPTION with no condition name and no SQLSTATE defaults to raise_exception, P0001."
        },
        {
          "id": "raise.levels-and-fields",
          "limits": "Client and server visibility also depends on message configuration; an explicit SQLSTATE can accompany a lower level.",
          "method": "Read the RAISE syntax, level behavior, USING options, and ereport construction.",
          "sources": [
            "doc.plpgsql.18",
            "src.pl-exec.18.6"
          ],
          "statement": "RAISE supports DEBUG, LOG, INFO, NOTICE, WARNING, and EXCEPTION levels; EXCEPTION normally aborts the current transaction, while lower levels generate messages, and USING can supply structured fields."
        },
        {
          "id": "raise.handler-subtransaction",
          "limits": "The handler's own errors propagate outward, and local variables follow PL/pgSQL's documented handler rules.",
          "method": "Read the official error-trapping and subtransaction descriptions.",
          "sources": [
            "doc.plpgsql.18"
          ],
          "statement": "A PL/pgSQL block with an EXCEPTION clause runs its protected body in a subtransaction; persistent changes made by the body are rolled back before the matching handler runs."
        },
        {
          "id": "raise.others-boundary",
          "limits": "OTHERS is a broad handler; this claim does not recommend swallowing all errors.",
          "method": "Read the condition matching and handler propagation paragraphs.",
          "sources": [
            "doc.plpgsql.18"
          ],
          "statement": "OTHERS matches every error type except QUERY_CANCELED and ASSERT_FAILURE, and a new error raised by the selected handler is not caught by that same clause."
        },
        {
          "id": "raise.diagnostics",
          "limits": "The exact fields present depend on the raised condition and the client interface.",
          "method": "Read the PL/pgSQL exception diagnostics section and the protocol field reference.",
          "sources": [
            "doc.plpgsql.18",
            "doc.protocol.18"
          ],
          "statement": "Inside an exception handler, SQLSTATE and SQLERRM identify the active exception and GET STACKED DIAGNOSTICS can retrieve its fields."
        },
        {
          "id": "runtime.raise-case",
          "limits": "This is an intentional PL/pgSQL exception case; it does not test custom SQLSTATEs, explicit transactions, or handler recovery.",
          "method": "Read the stable case and ordered snippet registry, then compare the case_result diagnostics and follow-up status in both final target summaries and raw records.",
          "sources": [
            "case-manifest.P0001",
            "snippet-registry.P0001.final",
            "runtime.P0001-snippet-registry-final-20260909.latest",
            "runtime.P0001-snippet-registry-final-20260909.pg10"
          ],
          "statement": "plpgsql_raise_exception returned P0001 with the caller-supplied calibration exception message on PostgreSQL 18.6 and 10.21; both autocommit connections remained IDLE and accepted SELECT 1."
        },
        {
          "id": "runtime.transaction-context",
          "limits": "No explicit transaction was run in this P0001 case; handler blocks have the separate subtransaction contract above.",
          "method": "Read the transaction contract and compare it with the observed IDLE/follow-up result.",
          "sources": [
            "doc.transactions.18",
            "runtime.P0001-snippet-registry-final-20260909.latest",
            "runtime.P0001-snippet-registry-final-20260909.pg10"
          ],
          "statement": "An unhandled EXCEPTION in an explicit transaction normally requires rollback before unrelated commands, while the representative autocommit call leaves the connection usable."
        },
        {
          "id": "versions.catalogue-boundary",
          "limits": "The pre-9.0 source set is locked through 8.4.22 but candidate source gaps remain for 7.0–7.3; the observed condition-name and class-title changes are not exact implementation introduction dates.",
          "method": "Read the manifest snapshot and the same-tag REL8_1_4 errcodes.sgml row for the code; the generated per-code history is a derived view.",
          "sources": [
            "manifest.P0001",
            "doc.errcodes.8.1.4"
          ],
          "statement": "The locked catalogue records P0001 in the 8.0.0–8.4.22 pre-9.0 formal sources, every listed formal snapshot from 9.0.23 through 18.6, and 19beta3. The same-tag REL8_1_4 errcodes.sgml row already lists P0001 as raise_exception, confirming that condition-name observation by 8.1.4. The class title changes between the 9.0 header and 9.1 text definitions; candidate source gaps remain for 7.0–7.3. These are presence boundaries, not asserted implementation introduction dates."
        }
      ],
      "messages": [
        {
          "id": "message.raise-user",
          "limits": "There is no universal P0001 primary text; the default message when no text is supplied is the condition name or SQLSTATE.",
          "primary_template": "caller-supplied RAISE format, condition, or MESSAGE expression",
          "severity_source": "default EXCEPTION level",
          "sources": [
            "src.pl-exec.18.6",
            "doc.plpgsql.18"
          ],
          "sqlstate": "P0001"
        },
        {
          "id": "message.runtime-calibration",
          "limits": "This literal is specific to the representative function and is not a built-in P0001 message template.",
          "primary_template": "calibration exception",
          "severity_source": "EXCEPTION",
          "sources": [
            "runtime.P0001-snippet-registry-final-20260909.latest",
            "runtime.P0001-snippet-registry-final-20260909.pg10"
          ],
          "sqlstate": "P0001"
        }
      ],
      "usage_evidence": [
        {
          "evidence_ids": [
            "identity.class-and-condition",
            "src.errcodes.18.6"
          ],
          "scope": "directory_definition",
          "status": "definition_only"
        },
        {
          "evidence_ids": [
            "raise.default-code",
            "raise.levels-and-fields",
            "src.pl-exec.18.6",
            "doc.plpgsql.18"
          ],
          "scope": "raise_default_and_levels",
          "status": "source_path_confirmed"
        },
        {
          "evidence_ids": [
            "raise.handler-subtransaction",
            "raise.others-boundary",
            "doc.plpgsql.18"
          ],
          "scope": "handler_transaction_and_others",
          "status": "source_path_confirmed"
        },
        {
          "evidence_ids": [
            "runtime.raise-case",
            "snippet-registry.P0001.final",
            "runtime.P0001-snippet-registry-final-20260909.latest",
            "runtime.P0001-snippet-registry-final-20260909.pg10"
          ],
          "scope": "representative_runtime",
          "status": "observed_runtime"
        },
        {
          "evidence_ids": [
            "versions.catalogue-boundary",
            "manifest.P0001",
            "doc.errcodes.8.1.4"
          ],
          "scope": "version_presence",
          "status": "definition_only"
        }
      ],
      "runtime": [
        {
          "cases": [
            "plpgsql_raise_exception"
          ],
          "id": "runtime.P0001-snippet-registry-final-20260909.latest",
          "observed": {
            "followup": 1,
            "message_primary": "calibration exception",
            "severity": "ERROR",
            "source_file": "pl_exec.c",
            "source_function": "exec_stmt_raise",
            "source_line": "3923",
            "sqlstate": "P0001",
            "status_after_error": "IDLE"
          },
          "raw_sha256": "f0ce5f0fcbeaeba978fbb959a418c24eac2ec1db2b0393b9bc15f24d3936ed1b",
          "run_id": "P0001-snippet-registry-final-20260909",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "snippet_registry": {
            "sha256": "1728525c9f6f073807ce34df0d9a4ee60f1c8bce5179c8bca91c92ca79aa795a"
          },
          "status": "passed",
          "summary_sha256": "6c298799062a8c47fd2eee07194afc0a6e53d7e1ef87639c9f996951f4de3c9b",
          "target": "latest"
        },
        {
          "cases": [
            "plpgsql_raise_exception"
          ],
          "id": "runtime.P0001-snippet-registry-final-20260909.pg10",
          "image": "postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
          "observed": {
            "followup": 1,
            "message_primary": "calibration exception",
            "severity": "ERROR",
            "source_file": "pl_exec.c",
            "source_function": "exec_stmt_raise",
            "source_line": "3337",
            "sqlstate": "P0001",
            "status_after_error": "IDLE"
          },
          "raw_sha256": "4308e016521aed455b575094b061162077e06f83884e53e96074db1d7b144dac",
          "run_id": "P0001-snippet-registry-final-20260909",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "snippet_registry": {
            "sha256": "1728525c9f6f073807ce34df0d9a4ee60f1c8bce5179c8bca91c92ca79aa795a"
          },
          "status": "passed",
          "summary_sha256": "5fe9b2e2a9147aebe3bd43af67cd60ff768dddbbe10ae92bb0a5a6d9dcad230c",
          "target": "pg10"
        }
      ]
    },
    {
      "sqlstate": "P0002",
      "condition_name": "no_data_found",
      "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#L492",
          "lines": "492"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        },
        {
          "id": "src.path.plpgsql",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/pl/plpgsql/src/pl_exec.c",
          "sha256": "0df3c70a6bccf6dddf443fb99e152a16a67009827c44a820597e98e585cb8b20",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/pl/plpgsql/src/pl_exec.c#L4384-L4387",
          "lines": "4384-4387,4574-4577"
        },
        {
          "id": "src.path.tablespace",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/commands/tablecmds.c",
          "sha256": "422dc8e833df4940755973c757e338295822ba3e4c7266c40669f49f96eb15a9",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/commands/tablecmds.c#L17162-L17166",
          "lines": "17162-17166"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "P0002 is no_data_found in PostgreSQL-specific Class P0.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed definition row."
        },
        {
          "id": "strict-query",
          "statement": "PL/pgSQL fixed paths report P0002 with `query returned no rows` when the checked query produced no row; optional detail is `parameters: %s` when strict-parameter printing is enabled.",
          "sources": [
            "src.path.plpgsql"
          ],
          "method": "Read both pl_exec report groups and their conditional errdetail."
        },
        {
          "id": "notice-path",
          "statement": "A core tablespace path also uses P0002 at NOTICE level for no matching relations in a tablespace.",
          "sources": [
            "src.path.tablespace"
          ],
          "method": "Compare the literal NOTICE level with the PL/pgSQL ERROR paths."
        },
        {
          "id": "scope",
          "statement": "P0002 is not a synonym for every SELECT that happens to return zero rows; the operation and enforcing path determine whether it is raised.",
          "sources": [
            "src.path.plpgsql"
          ],
          "method": "Read the surrounding target-row and strict checks.",
          "limits": "No runtime case was executed in this batch."
        }
      ],
      "messages": [
        {
          "id": "message.no-rows",
          "sqlstate": "P0002",
          "primary_template": "query returned no rows",
          "detail_template": "parameters: %s",
          "severity_source": "ERROR",
          "sources": [
            "src.path.plpgsql"
          ]
        },
        {
          "id": "message.no-tablespace-relations",
          "sqlstate": "P0002",
          "primary_template": "no matching relations in tablespace \"%s\" found",
          "severity_source": "NOTICE",
          "sources": [
            "src.path.tablespace"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "plpgsql-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "strict-query"
          ]
        },
        {
          "scope": "tablespace-notice",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "notice-path"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "scope"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "P0003",
      "condition_name": "too_many_rows",
      "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#L493",
          "lines": "493"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        },
        {
          "id": "src.path.plpgsql",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/pl/plpgsql/src/pl_exec.c",
          "sha256": "0df3c70a6bccf6dddf443fb99e152a16a67009827c44a820597e98e585cb8b20",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/pl/plpgsql/src/pl_exec.c#L4215-L4220",
          "lines": "4215-4220,4394-4410,4590-4596"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "P0003 is too_many_rows in PostgreSQL-specific Class P0.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed definition row."
        },
        {
          "id": "strict-query",
          "statement": "PL/pgSQL fixed paths report `query returned more than one row`; the strict path may include `parameters: %s` and the source provides the hint `Make sure the query returns a single row, or use LIMIT 1.`.",
          "sources": [
            "src.path.plpgsql"
          ],
          "method": "Read both report groups, their conditional detail, hint, and errlevel."
        },
        {
          "id": "severity-boundary",
          "statement": "For SELECT INTO-style checked queries, plpgsql.extra_errors selecting too_many_rows takes precedence and sets the extra check to ERROR; if it is not selected, plpgsql.extra_warnings selecting too_many_rows sets WARNING. Strict or modifying-statement paths use ERROR regardless, and print_strict_params controls the optional parameters detail.",
          "sources": [
            "src.path.plpgsql"
          ],
          "method": "Read the fixed too_many_rows_level assignment, row-count branch, errlevel selection, and detail condition.",
          "limits": "The hint is present on the SELECT INTO-style branch; the dynamic-execute path has the same primary/detail but no hint in the cited report group."
        }
      ],
      "messages": [
        {
          "id": "message.too-many-rows",
          "sqlstate": "P0003",
          "primary_template": "query returned more than one row",
          "detail_template": "parameters: %s",
          "hint_template": "Make sure the query returns a single row, or use LIMIT 1.",
          "severity_source": "ERROR or source-selected errlevel",
          "sources": [
            "src.path.plpgsql"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "plpgsql-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "strict-query"
          ]
        },
        {
          "scope": "severity",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "severity-boundary"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "strict-query"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "P0004",
      "condition_name": "assert_failure",
      "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#L494",
          "lines": "494"
        },
        {
          "id": "src.calls.REL_18_6",
          "kind": "local_artifact",
          "source_role": "source_call_scan",
          "sha256": "9ee8a0e81d8f0825c5c1ae45583439859a26e602bdd4ce2f2a62aa278867ccbf"
        },
        {
          "id": "src.path.plpgsql",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/pl/plpgsql/src/pl_exec.c",
          "sha256": "0df3c70a6bccf6dddf443fb99e152a16a67009827c44a820597e98e585cb8b20",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/pl/plpgsql/src/pl_exec.c#L3965-L3968",
          "lines": "3965-3968"
        },
        {
          "id": "runtime.P0004-same-session-latest-final.latest",
          "kind": "local_artifact",
          "source_role": "runtime_result",
          "sha256": "5246ae67ee8dd29e769c3a03db7bfb6cde2f201c9f45993201fb269cc53988ad"
        },
        {
          "id": "runtime.P0004-same-session-latest-final.latest.raw",
          "kind": "local_artifact",
          "source_role": "runtime_raw",
          "sha256": "2b03b5469ea34a0e49ad4a71e93cef4b19df0d01d86fc1156e478d88bc93168c"
        },
        {
          "id": "runtime.P0004-same-session-pg10-final.pg10",
          "kind": "local_artifact",
          "source_role": "runtime_result",
          "sha256": "50819f9620584f17766ffb62e2bb1c14e5aaa9162f91ec6cd26795cced3e6d30"
        },
        {
          "id": "runtime.P0004-same-session-pg10-final.pg10.raw",
          "kind": "local_artifact",
          "source_role": "runtime_raw",
          "sha256": "2369b62eb7c22d99122c9929134a878f2f3c0fe828887ae657f87b7b95e07ac8"
        },
        {
          "id": "snippet-registry.P0004",
          "kind": "local_artifact",
          "source_role": "runtime_input",
          "sha256": "ef124f75ec61be666abc87ff431ebfb496dfa3352f78a3bee4432430dd68c229"
        },
        {
          "id": "doc.plpgsql.18",
          "kind": "upstream_source",
          "source_role": "official_documentation",
          "tag": "PG18-docs",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "doc/src/sgml/plpgsql.sgml",
          "sha256": "43d705adbded343336341fd3e34ea8940432e8a8211f737d36ba3041ad0a4a51",
          "url": "https://www.postgresql.org/docs/18/plpgsql-errors-and-messages.html",
          "lines": "2815-2860,2957-2968,3768-3775,3836-3858,4008-4013"
        },
        {
          "id": "doc.plpgsql-control.18",
          "kind": "upstream_source",
          "source_role": "exception_trapping_documentation",
          "tag": "PG18-docs",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "doc/src/sgml/plpgsql.sgml",
          "sha256": "43d705adbded343336341fd3e34ea8940432e8a8211f737d36ba3041ad0a4a51",
          "url": "https://www.postgresql.org/docs/18/plpgsql-control-structures.html#PLPGSQL-ERROR-TRAPPING",
          "lines": "2783-2860"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "P0004 is assert_failure in PostgreSQL-specific Class P0.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read the fixed definition row."
        },
        {
          "id": "assert-path",
          "statement": "PL/pgSQL assertion execution reports P0004 at ERROR level, using the evaluated message when present and `assertion failed` when no message is supplied.",
          "sources": [
            "src.path.plpgsql"
          ],
          "method": "Read the fixed `ASSERT` execution path and both errmsg branches."
        },
        {
          "id": "runtime.assertion-case",
          "statement": "The shared assertion_failure_recovery case passed on PostgreSQL 18.6 and PostgreSQL 10.21: the false ASSERT returned P0004 with value must be positive, the explicit transaction was INERROR until ROLLBACK, a valid input succeeded, and the disabled-assert control returned zero.",
          "sources": [
            "runtime.P0004-same-session-latest-final.latest",
            "runtime.P0004-same-session-pg10-final.pg10",
            "snippet-registry.P0004"
          ],
          "method": "Read both target summaries and the fixed snippet registry.",
          "limits": "This is a bounded case for the shared function and ASSERT setting; it does not establish behavior for arbitrary assertion messages or non-PL/pgSQL code."
        },
        {
          "id": "runtime.diagnostics",
          "statement": "The latest target recorded ERROR/P0004 from exec_stmt_assert at pl_exec.c:3968 with context at ASSERT; the PG10 target recorded the same SQLSTATE and diagnostic with its version-specific source line.",
          "sources": [
            "runtime.P0004-same-session-latest-final.latest",
            "runtime.P0004-same-session-pg10-final.pg10"
          ],
          "method": "Compare structured diagnostics in both target summaries."
        },
        {
          "id": "assert-semantics",
          "statement": "The fixed PL/pgSQL ASSERT path reports P0004 when its Boolean condition evaluates false or NULL; the supplied message expression is used as primary text, otherwise the executor uses assertion failed.",
          "sources": [
            "src.path.plpgsql",
            "doc.plpgsql.18"
          ],
          "method": "Read the fixed executor branch and the official PL/pgSQL ASSERT documentation."
        },
        {
          "id": "settings-and-handler-boundary",
          "statement": "plpgsql.check_asserts controls assertion checking for the session, and the PL/pgSQL handler rules exclude ASSERT_FAILURE from WHEN OTHERS while allowing a named ASSERT_FAILURE condition.",
          "sources": [
            "doc.plpgsql-control.18",
            "src.path.plpgsql"
          ],
          "method": "Read the PL/pgSQL control-structures error-trapping section for EXCEPTION subtransactions and condition matching; read the fixed executor for the session setting boundary.",
          "limits": "The setting is session-scoped; this claim does not make a connection-level setting change global."
        },
        {
          "id": "transaction-recovery",
          "statement": "The observed case entered INERROR after P0004, returned to IDLE after ROLLBACK, and then accepted a valid call; disabling check_asserts suppressed the false assertion in the control branch.",
          "sources": [
            "runtime.P0004-same-session-latest-final.latest",
            "runtime.P0004-same-session-pg10-final.pg10",
            "snippet-registry.P0004"
          ],
          "method": "Read both passed target summaries and the ordered shared registry."
        }
      ],
      "messages": [
        {
          "id": "message.assert",
          "sqlstate": "P0004",
          "primary_template": "assertion failed",
          "alternate_template": "%s",
          "severity_source": "ERROR",
          "sources": [
            "src.path.plpgsql"
          ]
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "plpgsql-assert-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "assert-path",
            "assert-semantics",
            "settings-and-handler-boundary"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "observed_runtime",
          "evidence_ids": [
            "runtime.P0004-same-session-latest-final.latest",
            "runtime.P0004-same-session-pg10-final.pg10",
            "transaction-recovery"
          ]
        }
      ],
      "runtime": [
        {
          "id": "runtime.P0004-same-session-latest-final.latest",
          "run_id": "P0004-same-session-latest-final",
          "target": "latest",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "status": "passed",
          "summary_sha256": "5246ae67ee8dd29e769c3a03db7bfb6cde2f201c9f45993201fb269cc53988ad",
          "raw_sha256": "2b03b5469ea34a0e49ad4a71e93cef4b19df0d01d86fc1156e478d88bc93168c",
          "cases": [
            "assertion_failure_recovery"
          ],
          "observed": {
            "sqlstate": "P0004",
            "severity": "ERROR",
            "message_primary": "value must be positive",
            "after_error": "INERROR",
            "after_rollback": "IDLE",
            "repair_result": 1,
            "disabled_control_result": 0
          }
        },
        {
          "id": "runtime.P0004-same-session-pg10-final.pg10",
          "run_id": "P0004-same-session-pg10-final",
          "target": "pg10",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "status": "passed",
          "summary_sha256": "50819f9620584f17766ffb62e2bb1c14e5aaa9162f91ec6cd26795cced3e6d30",
          "raw_sha256": "2369b62eb7c22d99122c9929134a878f2f3c0fe828887ae657f87b7b95e07ac8",
          "cases": [
            "assertion_failure_recovery"
          ],
          "observed": {
            "sqlstate": "P0004",
            "severity": "ERROR",
            "message_primary": "value must be positive",
            "after_error": "INERROR",
            "after_rollback": "IDLE",
            "repair_result": 1,
            "disabled_control_result": 0
          }
        }
      ]
    },
    {
      "sqlstate": "XX000",
      "condition_name": "internal_error",
      "sources": [
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "src.errcodes.18.6",
          "location": "lines 496-502",
          "path": "src/backend/utils/errcodes.txt",
          "sha256": "6e8de346643ba84aa3c9c6a73360acfc7b2dfb89162c06c08ce9bf5bcd5bbcba",
          "tag": "REL_18_6",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/errcodes.txt"
        },
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "src.elog.18.6",
          "location": "lines 442-454",
          "path": "src/backend/utils/error/elog.c",
          "sha256": "766d30a426ba1d9597657bd46fb890da3e37e4ae53a83d1245bf082ed9433c33",
          "tag": "REL_18_6",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/error/elog.c#L442-L454"
        },
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "src.nbtinsert.18.6",
          "location": "lines 754-766",
          "path": "src/backend/access/nbtree/nbtinsert.c",
          "sha256": "199671bec6b07b80100ea41632cef4b03a9525df75a2ede2b8fe155b637dcba7",
          "tag": "REL_18_6",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/nbtree/nbtinsert.c#L754-L766"
        },
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "src.dsm.18.6",
          "location": "lines 436-445",
          "path": "src/backend/storage/ipc/dsm.c",
          "sha256": "3ff99695b25e65764b6d0d2d5ddd8865984af6a434f9e903bcc33f0b7fc1dde8",
          "tag": "REL_18_6",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/storage/ipc/dsm.c#L436-L445"
        },
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "src.guc.18.6",
          "location": "lines 4964-4970",
          "path": "src/backend/utils/misc/guc.c",
          "sha256": "3021d40bb4e920a56fbc5e9452e32903a7364d7ce0aece65be70aa3c34c1274e",
          "tag": "REL_18_6",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/misc/guc.c#L4964-L4970"
        },
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "src.uuid.18.6",
          "location": "lines 544-552",
          "path": "src/backend/utils/adt/uuid.c",
          "sha256": "64d3e8d22a87375b2b2b339bc9aec74f14f9b4996727c306ba1a0418e3fe0ffc",
          "tag": "REL_18_6",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/adt/uuid.c#L544-L552"
        },
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "src.bufmask.18.6",
          "location": "lines 70-85",
          "path": "src/backend/access/common/bufmask.c",
          "sha256": "174b9f096b1c4b8f0cb75f45640b8c5cc94f101b21450e647e83e02f8e78d23d",
          "tag": "REL_18_6",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/common/bufmask.c#L70-L85"
        },
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "src.oat-hooks.18.6",
          "location": "lines 238-248",
          "path": "src/test/modules/test_oat_hooks/test_oat_hooks.c",
          "sha256": "8ee72c7930931969a7f447f55432f58b710f0949d6cfb2c1514f68fcdfb88438",
          "tag": "REL_18_6",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/test/modules/test_oat_hooks/test_oat_hooks.c#L238-L248"
        },
        {
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "id": "doc.protocol.18",
          "location": "lines 6254-6290, severity fields",
          "path": "doc/src/sgml/protocol.sgml",
          "sha256": "745339e07ebbc2bb67d98b258e25772ada644ef26011e3cd6b3fcbb435235f89",
          "tag": "PG18-docs",
          "url": "https://www.postgresql.org/docs/18/protocol-error-fields.html"
        },
        {
          "commit": "313a720f95a3f41b59f853786b184f38f82172d9",
          "id": "doc.errcodes.8.1.4",
          "kind": "upstream_source",
          "location": "REL8_1_4 table rows 1313-1318",
          "path": "doc/src/sgml/errcodes.sgml",
          "release": "8.1.4",
          "sha256": "fdd6f5470b19970d3b60219a44e66b33193647975d346adfe2a98178f706b776",
          "url": "https://github.com/postgres/postgres/blob/313a720f95a3f41b59f853786b184f38f82172d9/doc/src/sgml/errcodes.sgml#L1313-L1318"
        },
        {
          "id": "manifest.XX000",
          "kind": "local_artifact",
          "location": "snapshots and definition_blobs entries for the XX000 definition",
          "sha256": "1727a275f336988ff96b4f9990a4ca253080f73fc5d316e7def165c8cf3708a8"
        },
        {
          "id": "case-manifest.XX000",
          "kind": "local_artifact",
          "location": "internal_error_safety_boundary",
          "sha256": "a3de1ad0d567c50db83967e9756adfb4b7dcdefb3a54efc2a9248191886fb325"
        },
        {
          "id": "runtime-raw.XX000.latest",
          "kind": "local_artifact",
          "location": "case_result for internal_error_safety_boundary",
          "sha256": "e7515f758483b38a16ce01952f7a09c978008d380d1ba93d7ecb63ea212caede"
        }
      ],
      "claims": [
        {
          "id": "identity.class-and-condition",
          "limits": "The generic class identity does not prove corruption or identify the subsystem.",
          "method": "Read the Class XX section, comment, and XX000 row in the frozen errcodes.txt snapshot.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "statement": "XX000 is the internal_error condition in Class XX, Internal Error, whose source comment covers can't-happen conditions and software bugs."
        },
        {
          "id": "dispatch.default-internal",
          "limits": "Later errcode() construction can replace the initial value; the mapping is not a diagnosis of corruption.",
          "method": "Read the default sqlerrcode selection in errstart() in the fixed source.",
          "sources": [
            "src.elog.18.6"
          ],
          "statement": "Without a later explicit code, an ERROR or higher level is initialized with ERRCODE_INTERNAL_ERROR, while WARNING starts with ERRCODE_WARNING and lower levels with ERRCODE_SUCCESSFUL_COMPLETION."
        },
        {
          "id": "paths.explicit-internal",
          "limits": "These are distinct source paths with different preconditions and severities; they do not establish that a generic XX000 occurrence came from any one of them.",
          "method": "Read each errcode(ERRCODE_INTERNAL_ERROR) branch and its surrounding invariant or service diagnostic.",
          "sources": [
            "src.nbtinsert.18.6",
            "src.dsm.18.6",
            "src.guc.18.6",
            "src.uuid.18.6"
          ],
          "statement": "The fixed 18.6 source contains explicit XX000 paths for btree tuple rechecking, invalid dynamic shared-memory control state, configuration parameter redefinition, and strong-random UUID generation failure."
        },
        {
          "id": "paths.default-elog",
          "limits": "The source example is a diagnostic invariant check; a real occurrence requires the exact runtime path and environment.",
          "method": "Read the bufmask elog call and the error-stack default mapping.",
          "sources": [
            "src.bufmask.18.6",
            "src.elog.18.6"
          ],
          "statement": "A default elog(ERROR, ...) path such as the invalid-page check starts with XX000 through the generic severity mapping when it supplies no explicit SQLSTATE."
        },
        {
          "id": "paths.severity-separation",
          "limits": "The OAT hook is test-module code and does not represent normal production internal-error behavior.",
          "method": "Read each ereport level alongside its explicit errcode and compare the protocol severity contract.",
          "sources": [
            "src.dsm.18.6",
            "src.nbtinsert.18.6",
            "src.guc.18.6",
            "src.uuid.18.6",
            "src.oat-hooks.18.6"
          ],
          "statement": "An explicit XX000 does not force one wire severity: the shared-memory path is FATAL, several paths are ERROR, and the access-control hook can carry XX000 at NOTICE."
        },
        {
          "id": "protocol.severity-fields",
          "limits": "Severity is a wire property and must be interpreted with transaction and connection state.",
          "method": "Read the official PostgreSQL 18 Error and Notice Message Fields table.",
          "sources": [
            "doc.protocol.18"
          ],
          "statement": "The protocol distinguishes ERROR/FATAL/PANIC severities in error messages from WARNING/NOTICE/DEBUG/INFO/LOG severities in notice messages, with localized S and nonlocalized V fields."
        },
        {
          "id": "diagnosis.no-corruption-inference",
          "limits": "This is an evidence boundary, not a claim that corruption is impossible when XX000 occurs.",
          "method": "Compare the broad Class XX comment and the distinct source paths and messages.",
          "sources": [
            "src.errcodes.18.6",
            "src.nbtinsert.18.6",
            "src.bufmask.18.6",
            "src.dsm.18.6"
          ],
          "statement": "XX000 alone is insufficient to diagnose data or index corruption; the exact message, source path, severity, and surrounding evidence are required."
        },
        {
          "id": "runtime.safety-boundary",
          "limits": "This is not runtime proof of an XX000 occurrence; it records that fault or corruption injection was outside the accepted test boundary.",
          "method": "Read the stable case contract and both target summaries/raw records, retaining source_confirmed_only and not_applicable.",
          "sources": [
            "case-manifest.XX000",
            "runtime-raw.XX000.latest",
            "runtime.XX000-debug-latest.latest",
            "runtime.XX000-debug-pg10.pg10"
          ],
          "statement": "The internal_error_safety_boundary case is recorded as not_applicable on PostgreSQL 18.6 and 10.21 because no safe deterministic SQL trigger was used."
        },
        {
          "id": "versions.catalogue-boundary",
          "limits": "The pre-9.0 source set is locked through 8.4.22 but candidate source gaps remain for 7.0–7.3; the observed condition-name and class-title changes are not exact implementation introduction dates.",
          "method": "Read the manifest snapshot and the same-tag REL8_1_4 errcodes.sgml row for the code; the generated per-code record is derived from those entries.",
          "sources": [
            "manifest.XX000",
            "doc.errcodes.8.1.4"
          ],
          "statement": "The locked catalogue records XX000 in the 7.4–8.4.22 pre-9.0 formal sources, every listed formal snapshot from 9.0.23 through 18.6, and 19beta3. The same-tag REL8_1_4 errcodes.sgml row already lists XX000 as internal_error, confirming that condition-name observation by 8.1.4. The class title changes between the 9.0 header and 9.1 text definitions; candidate source gaps remain for 7.0–7.3. These are presence boundaries, not exact implementation introduction dates."
        }
      ],
      "messages": [
        {
          "hint_template": "This may be because of a non-immutable index expression.",
          "id": "message.index-refind",
          "limits": "The message belongs to the UNIQUE_CHECK_EXISTING btree path and carries a relation/constraint context.",
          "primary_template": "failed to re-find tuple within index \"%s\"",
          "severity_source": "explicit ERROR",
          "sources": [
            "src.nbtinsert.18.6"
          ],
          "sqlstate": "XX000"
        },
        {
          "id": "message.dsm-fatal",
          "limits": "This path terminates the backend session; it is not a generic client-side error template.",
          "primary_template": "dynamic shared memory control segment is not valid",
          "severity_source": "explicit FATAL",
          "sources": [
            "src.dsm.18.6"
          ],
          "sqlstate": "XX000"
        },
        {
          "id": "message.guc",
          "limits": "The template belongs to the custom GUC placeholder invariant path.",
          "primary_template": "attempt to redefine parameter \"%s\"",
          "severity_source": "explicit ERROR",
          "sources": [
            "src.guc.18.6"
          ],
          "sqlstate": "XX000"
        },
        {
          "id": "message.uuid",
          "limits": "The message reports failure of the strong-random provider in the UUID path.",
          "primary_template": "could not generate random values",
          "severity_source": "explicit ERROR",
          "sources": [
            "src.uuid.18.6"
          ],
          "sqlstate": "XX000"
        },
        {
          "id": "message.bufmask-default",
          "limits": "The XX000 code is supplied by the default mapping because this elog call has no explicit errcode.",
          "primary_template": "invalid page pd_lower %u pd_upper %u pd_special %u",
          "severity_source": "default elog(ERROR)",
          "sources": [
            "src.bufmask.18.6",
            "src.elog.18.6"
          ],
          "sqlstate": "XX000"
        },
        {
          "id": "message.oat-notice",
          "limits": "This is a test-module hook diagnostic demonstrating severity/code separation, not a production internal-error occurrence.",
          "primary_template": "in %s: %s %s %s [%s]",
          "severity_source": "explicit NOTICE",
          "sources": [
            "src.oat-hooks.18.6"
          ],
          "sqlstate": "XX000"
        }
      ],
      "usage_evidence": [
        {
          "evidence_ids": [
            "identity.class-and-condition",
            "src.errcodes.18.6"
          ],
          "scope": "directory_definition",
          "status": "definition_only"
        },
        {
          "evidence_ids": [
            "dispatch.default-internal",
            "paths.default-elog",
            "src.elog.18.6",
            "src.bufmask.18.6"
          ],
          "scope": "default_internal_mapping",
          "status": "source_path_confirmed"
        },
        {
          "evidence_ids": [
            "paths.explicit-internal",
            "paths.severity-separation",
            "src.nbtinsert.18.6",
            "src.dsm.18.6",
            "src.guc.18.6",
            "src.uuid.18.6",
            "src.oat-hooks.18.6"
          ],
          "scope": "explicit_internal_paths",
          "status": "source_path_confirmed"
        },
        {
          "evidence_ids": [
            "protocol.severity-fields",
            "diagnosis.no-corruption-inference",
            "doc.protocol.18"
          ],
          "scope": "severity_and_diagnosis",
          "status": "source_path_confirmed"
        },
        {
          "evidence_ids": [
            "runtime.safety-boundary",
            "runtime.XX000-debug-latest.latest",
            "runtime.XX000-debug-pg10.pg10"
          ],
          "notes": "The records intentionally mark the natural trigger not_applicable; no XX000 occurrence was observed.",
          "scope": "representative_runtime",
          "status": "unknown"
        },
        {
          "evidence_ids": [
            "versions.catalogue-boundary",
            "manifest.XX000",
            "doc.errcodes.8.1.4"
          ],
          "scope": "version_presence",
          "status": "definition_only"
        }
      ],
      "runtime": [
        {
          "cases": [
            "internal_error_safety_boundary"
          ],
          "id": "runtime.XX000-debug-latest.latest",
          "limits": "No internal-error path was executed.",
          "reason": "source_confirmed_only",
          "run_id": "XX000-debug-latest",
          "server_version": "18.6 (Homebrew)",
          "server_version_num": 180006,
          "status": "not_applicable",
          "target": "latest"
        },
        {
          "cases": [
            "internal_error_safety_boundary"
          ],
          "id": "runtime.XX000-debug-pg10.pg10",
          "image": "postgres@sha256:b2baf8998630663d21370da06387c950e587071bdd307ee34e661cdcc7442bcc",
          "limits": "No internal-error path was executed.",
          "reason": "source_confirmed_only",
          "run_id": "XX000-debug-pg10",
          "server_version": "10.21 (Debian 10.21-1.pgdg90+1)",
          "server_version_num": 100021,
          "status": "not_applicable",
          "target": "pg10"
        }
      ]
    },
    {
      "sqlstate": "XX001",
      "condition_name": "data_corrupted",
      "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#L500",
          "lines": "500"
        },
        {
          "id": "src.path.0",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/access/common/toast_compression.c",
          "sha256": "87d3c4337f09c991f5baefdbed6247fb93095c99f346ebb3622b8f5ee10e0064",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/common/toast_compression.c#L90",
          "lines": "90-100"
        },
        {
          "id": "src.path.1",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/access/heap/heapam.c",
          "sha256": "57e3396476fc5d269bd2944b549a671f2699bf8ed43668e661090548ca206a16",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/heap/heapam.c#L6983",
          "lines": "6983-7042"
        },
        {
          "id": "src.path.2",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "contrib/amcheck/verify_nbtree.c",
          "sha256": "a59ae7540a990e5a70e8eb9cedbcad7c62e3e86b1ad426142c8931ee188b752d",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/contrib/amcheck/verify_nbtree.c#L2760",
          "lines": "2760-2818"
        },
        {
          "id": "src.path.3",
          "kind": "upstream_source",
          "source_role": "amcheck_entry_points",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "contrib/amcheck/verify_nbtree.c",
          "sha256": "a59ae7540a990e5a70e8eb9cedbcad7c62e3e86b1ad426142c8931ee188b752d",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/contrib/amcheck/verify_nbtree.c#L252",
          "lines": "252-305"
        },
        {
          "id": "src.path.4",
          "kind": "upstream_source",
          "source_role": "amcheck_lock_mode_mapping",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "contrib/amcheck/verify_common.c",
          "sha256": "8e591fc7b73760af0bea05987093064087b26f6b80856228d95f7c0d8e2d266a",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/contrib/amcheck/verify_common.c#L60",
          "lines": "60-149"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "XX001 is data_corrupted in SQLSTATE Class XX.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read locked definition snapshot."
        },
        {
          "id": "resolved-paths",
          "statement": "Fixed source paths cover PGLZ decompression corruption, MultiXact/XID freeze invariants, and the amcheck heapallindexed mismatch; bt_index_check uses AccessShareLock, while bt_index_parent_check uses ShareLock and causes the callback readonly flag that suppresses the parent-check hint.",
          "sources": [
            "src.path.0",
            "src.path.1",
            "src.path.2",
            "src.path.3",
            "src.path.4"
          ],
          "method": "Read complete fixed integrity-check contexts, amcheck entry points, and the lock-mode-to-readonly mapping.",
          "limits": "Source confirmation is not natural runtime and does not identify a particular incident root cause."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records XX001 from 7.4; it does not prove the exact introduction rationale.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use locked catalogue boundary."
        }
      ],
      "messages": [
        {
          "id": "message.0",
          "sqlstate": "XX001",
          "primary_template": "compressed pglz data is corrupt",
          "severity_source": "ERROR",
          "sources": [
            "src.path.0"
          ]
        },
        {
          "id": "message.1",
          "sqlstate": "XX001",
          "primary_template": "found multixact %u from before relminmxid %u",
          "severity_source": "ERROR",
          "sources": [
            "src.path.1"
          ]
        },
        {
          "id": "message.2",
          "sqlstate": "XX001",
          "primary_template": "multixact %u from before multi freeze cutoff %u found to be still running",
          "severity_source": "ERROR",
          "sources": [
            "src.path.1"
          ]
        },
        {
          "id": "message.3",
          "sqlstate": "XX001",
          "primary_template": "multixact %u contains update XID %u from before relfrozenxid %u",
          "severity_source": "ERROR",
          "sources": [
            "src.path.1"
          ]
        },
        {
          "id": "message.4",
          "sqlstate": "XX001",
          "primary_template": "multixact %u contains committed update XID %u from before removable cutoff %u",
          "severity_source": "ERROR",
          "sources": [
            "src.path.1"
          ]
        },
        {
          "id": "message.5",
          "sqlstate": "XX001",
          "primary_template": "heap tuple (%u,%u) from table \"%s\" lacks matching index tuple within index \"%s\"",
          "severity_source": "ERROR",
          "sources": [
            "src.path.2",
            "src.path.3",
            "src.path.4"
          ],
          "hint_template": "Retrying verification using the function bt_index_parent_check() might provide a more specific error.",
          "hint_condition": "bt_index_check (AccessShareLock; callback readonly=false)",
          "context": "bt_index_parent_check uses ShareLock and callback readonly=true, so this hint is not appended there."
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "resolved-paths"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "resolved-paths"
          ]
        }
      ],
      "runtime": []
    },
    {
      "sqlstate": "XX002",
      "condition_name": "index_corrupted",
      "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#L501",
          "lines": "501"
        },
        {
          "id": "src.path.0",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/access/brin/brin_revmap.c",
          "sha256": "365bf30dcebf5923b8098206f303b05532dd3a0526f9316369b3465cd9d2a5da",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/brin/brin_revmap.c#L381",
          "lines": "381-389"
        },
        {
          "id": "src.path.1",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/access/gist/gistutil.c",
          "sha256": "90fd8be8c4f101a1f4621026c1a452c13b82940c44e6172589e9421fbc87a243",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/gist/gistutil.c#L796",
          "lines": "796-812"
        },
        {
          "id": "src.path.2",
          "kind": "upstream_source",
          "source_role": "resolved_report_context",
          "tag": "REL_18_6",
          "commit": "724edf9bde9d356724ad384a2e196edc3c9f80f7",
          "path": "src/backend/access/hash/hashutil.c",
          "sha256": "25c4945d8f26a3403968d19be8fc7870ec3ed504d4ade5bcddf73e5104542b19",
          "url": "https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/access/hash/hashutil.c#L221",
          "lines": "221-270"
        }
      ],
      "claims": [
        {
          "id": "identity",
          "statement": "XX002 is index_corrupted in SQLSTATE Class XX.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Read locked definition snapshot."
        },
        {
          "id": "resolved-paths",
          "statement": "Fixed source paths cover BRIN range-map validation, GiST page checks, and hash page/type/version checks with method-specific REINDEX hints.",
          "sources": [
            "src.path.0",
            "src.path.1",
            "src.path.2"
          ],
          "method": "Read complete fixed access-method guards.",
          "limits": "Source confirmation is not natural runtime and does not establish that corruption is index-local in an incident."
        },
        {
          "id": "history",
          "statement": "The locked catalogue records XX002 from 7.4; it does not prove the exact introduction rationale.",
          "sources": [
            "src.errcodes.18.6"
          ],
          "method": "Use locked catalogue boundary."
        }
      ],
      "messages": [
        {
          "id": "message.0",
          "sqlstate": "XX002",
          "primary_template": "corrupted BRIN index: inconsistent range map",
          "severity_source": "ERROR",
          "sources": [
            "src.path.0"
          ]
        },
        {
          "id": "message.1",
          "sqlstate": "XX002",
          "primary_template": "index \"%s\" contains unexpected zero page at block %u",
          "severity_source": "ERROR",
          "sources": [
            "src.path.1"
          ],
          "hint_template": "Please REINDEX it."
        },
        {
          "id": "message.2",
          "sqlstate": "XX002",
          "primary_template": "index \"%s\" contains corrupted page at block %u",
          "severity_source": "ERROR",
          "sources": [
            "src.path.1",
            "src.path.2"
          ],
          "hint_template": "Please REINDEX it."
        },
        {
          "id": "message.3",
          "sqlstate": "XX002",
          "primary_template": "index \"%s\" is not a hash index",
          "severity_source": "ERROR",
          "sources": [
            "src.path.2"
          ]
        },
        {
          "id": "message.4",
          "sqlstate": "XX002",
          "primary_template": "index \"%s\" has wrong hash version",
          "severity_source": "ERROR",
          "sources": [
            "src.path.2"
          ],
          "hint_template": "Please REINDEX it."
        }
      ],
      "usage_evidence": [
        {
          "scope": "definition",
          "status": "definition_only",
          "evidence_ids": [
            "identity"
          ]
        },
        {
          "scope": "fixed-source-path",
          "status": "source_path_confirmed",
          "evidence_ids": [
            "resolved-paths"
          ]
        },
        {
          "scope": "history",
          "status": "unknown",
          "evidence_ids": [
            "history"
          ]
        },
        {
          "scope": "natural-runtime",
          "status": "unknown",
          "evidence_ids": [
            "resolved-paths"
          ]
        }
      ],
      "runtime": []
    }
  ]
}
