{
  "tool_id": "art-600-lei-relationship-consistency",
  "tool_version": "1.0.0",
  "display_name": "LEI Relationship Consistency Checker",
  "mcp_name": "check_lei_relationship_consistency",
  "mandate_type": "compliance_control",
  "wave": 99,
  "gpu": false,
  "url": "https://ainumbers.co/chaingraph/art-600-lei-relationship-consistency.html",
  "description": "Checks four structural invariants over a pasted set of GLEIF Level-2 relationship records for one subject LEI: every startNode and endNode is a syntactically valid LEI (ISO 17442 mod-97, the same check art-246 carries), walking IS_DIRECTLY_CONSOLIDATED_BY edges never revisits a node already on the current path, every reporting-exception code is a published GLEIF category held as a versioned constant rather than inferred, and no two active records share a startNode, endNode and relationshipType triple with overlapping validity periods. A violation flags a possible inconsistency in GLEIF's published Level-2 data for this LEI. It is not an assertion about the entity's actual corporate structure and not a finding about the entity itself; golden-copy data is periodically corrected, so recheck against a fresh pull before treating any violation as durable. An empty record set returns consistent as null rather than a clean pass. Zero network: this never queries GLEIF and is not a re-implementation of GLEIF's own reconciliation service.",
  "input_schema_ref": "chaingraph/art-600-lei-relationship-consistency.html#manifest",
  "consumes": [],
  "feeds": [],
  "status": "live",
  "conformance_fixtures": true,
  "compute_capability": "server",
  "compute_images": [
    {
      "system": "sha256-source",
      "image_id": "sha256:5f6da9c921850504efa9bfc5e8e7f0e2bd92ee4271a81a8eb7d71e7a4dd60b96",
      "valid_from": "2026-07-10"
    },
    {
      "system": "risc0",
      "image_id": "sha256:a1a0bc89b5b1febaeda3519f6dbade0fa5ac16beeb143c4e1b01689573567bc6",
      "valid_from": "2026-08-13"
    }
  ],
  "export_capability": [
    "json"
  ],
  "compute_proof": {
    "type": "ZkVmReceipt",
    "system": "risc0",
    "receiptFormat": "groth16-bn254",
    "imageId": "sha256:a1a0bc89b5b1febaeda3519f6dbade0fa5ac16beeb143c4e1b01689573567bc6",
    "seal": "CWZ5Y0+uzAr+lciDa/L61vYocjaDcJoI7XlSS+GGBgsdBU52AfcwBogZ662gkbPfkCPZDjgABW8pSzsFe7C4EgL0uaT1DbM/7cxDgy47YE2SPe0yBVbiIUcMxhg4lXjrDYtyi54f8woltM+p8FZBQxW4128xbFB1XxIpCt42htkMwnYStUWVUgt/acxRBAzqkIi0NBwET1ZChmlXLV17lRuNZ07SJJyRoRUmBCfBxF3PHE6/x/AtaIWNJrZoNE0WCs/5Qis3l7qXEBvRvY/aeNYieG9W+X8JG6tFVmj+euoVMXDA/cD2IXe/mM+WNCMXj1g2KiHmvlYcDZheqw1F0Q==",
    "journal": {
      "chaingraph_version": "0.4.0",
      "kernel_digest": "sha256:5f6da9c921850504efa9bfc5e8e7f0e2bd92ee4271a81a8eb7d71e7a4dd60b96",
      "output": {
        "consistent": true,
        "cycle_path": null,
        "deprecated_exception_codes": [],
        "duplicate_active_triples": [],
        "exception_table_source": "GLEIF Level 2 Data: Reporting Exceptions CDF format 2.1 (gleif.org/en/lei-data/access-and-use-lei-data/level-2-data-reporting-exceptions-2-1-format)",
        "exception_table_version": "GLEIF-REPORTING-EXCEPTIONS-CDF-2.1",
        "invalid_node_leis": [],
        "invariant_results": [
          {
            "code": "INVALID_NODE_LEI",
            "detail": "Every startNode/endNode LEI passes the ISO 17442 mod-97 check.",
            "invariant": "node_lei_validity",
            "pass": true
          },
          {
            "code": "PARENT_CYCLE_DETECTED",
            "detail": "Walking IS_DIRECTLY_CONSOLIDATED_BY edges never revisits a node on the current path.",
            "invariant": "no_direct_parent_cycle",
            "pass": true
          },
          {
            "code": "UNRECOGNIZED_EXCEPTION_CODE",
            "detail": "Every exception code is a published GLEIF category in GLEIF-REPORTING-EXCEPTIONS-CDF-2.1.",
            "invariant": "exception_code_well_formed",
            "pass": true
          },
          {
            "code": "DUPLICATE_ACTIVE_RELATIONSHIP",
            "detail": "No (startNode, endNode, relationshipType) triple has two ACTIVE records with overlapping validity periods.",
            "invariant": "no_overlapping_active_duplicates",
            "pass": true
          }
        ],
        "pii_note": "LEI reference data is PUBLIC registry data (GLEIF, gleif.org). Relationship records are processed structurally only. No PII processed -- use synthetic or public registry data only.",
        "recognized_exception_codes_current": [
          "NO_LEI",
          "NATURAL_PERSONS",
          "NON_CONSOLIDATING",
          "NO_KNOWN_PERSON",
          "NON_PUBLIC"
        ],
        "recognized_exception_codes_deprecated": [
          "BINDING_LEGAL_COMMITMENTS",
          "LEGAL_OBSTACLES",
          "DISCLOSURE_DETRIMENTAL",
          "DETRIMENT_NOT_EXCLUDED",
          "CONSENT_NOT_OBTAINED"
        ],
        "record_count": 2,
        "records_assessed": true,
        "scope_note": "This flags a possible inconsistency in GLEIF's published Level-2 relationship data for this LEI. It is not an assertion about the entity's actual corporate structure, and not a finding about the entity itself. GLEIF golden-copy data is periodically corrected; recheck against a fresh golden-copy pull before treating this as durable.",
        "subject_lei": "5493001KJTIIGC8Y1R12",
        "subject_lei_valid": true,
        "unrecognized_exception_codes": [],
        "violation_count": 0,
        "violations": []
      }
    }
  }
}
