{
  "tool_id": "art-246-lei-payment-binding-linter",
  "note": "ISO 17442 LEI mod-97 check-digit validation + Wolfsberg transparency scoring. Vector 1: both LEIs valid (00...01). Vector 2: originator LEI check-digit fail (00...02, remainder 2). Vector 3: empty-input finite.",
  "vectors": [
    {
      "name": "both_leis_valid",
      "description": "Both originator and beneficiary LEIs pass ISO 17442 mod-97 check (synthetic 00000000000000000001, remainder=1). Full Wolfsberg transparency score.",
      "policy_parameters": {
        "originator_lei": "00000000000000000001",
        "beneficiary_lei": "00000000000000000001",
        "originator_name": "Synthetic Bank AG",
        "originator_account": "DE89370400440532013000",
        "beneficiary_name": "Test Recipient Corp",
        "beneficiary_account": "GB82WEST12345698765432"
      },
      "output_payload": {
        "lei_valid": true,
        "error_count": 0,
        "lei_results": {
          "originator": {
            "lei": "00000000000000000001",
            "valid": true,
            "error": null
          },
          "beneficiary": {
            "lei": "00000000000000000001",
            "valid": true,
            "error": null
          }
        },
        "wolfsberg_transparency_score": 100,
        "wolfsberg_transparency_tier": "HIGH",
        "wolfsberg_field_results": [
          {
            "label": "Originator name",
            "present": true,
            "weight": 20
          },
          {
            "label": "Originator account",
            "present": true,
            "weight": 15
          },
          {
            "label": "Originator LEI",
            "present": true,
            "weight": 20
          },
          {
            "label": "Beneficiary name",
            "present": true,
            "weight": 20
          },
          {
            "label": "Beneficiary account",
            "present": true,
            "weight": 15
          },
          {
            "label": "Beneficiary LEI",
            "present": true,
            "weight": 20
          }
        ],
        "issues": [],
        "pii_note": "LEIs are PUBLIC registry data (GLEIF global LEI database, gleif.org). Party names and account identifiers are processed structurally for presence/format only. No real PII processed -- use synthetic data for testing.",
        "table_version": "ISO17442-LEI-CHECK-2024 + WOLFSBERG-PAYMENT-TRANSPARENCY-2023",
        "table_source": "ISO 17442:2020 Legal Entity Identifier (iso.org/standard/78829.html); ISO 7064:2003 Mod 97-10 check digit algorithm; Wolfsberg Payment Transparency Standards 2023 (wolfsberg-principles.com/documents/wolfsberg-payment-transparency-standards)",
        "regulatory_basis": "ISO 17442:2020 Legal Entity Identifier; ISO 7064:2003 Mod 97-10; Wolfsberg Payment Transparency Standards 2023; CPMI d218 LEI mandate guidance"
      },
      "golden_hash": "f0928343c0d7ca8ee7707a2e10b7dae4f72f06c10281f6fb2928203cfc37d9de"
    },
    {
      "name": "originator_lei_check_digit_fail",
      "description": "Originator LEI 00000000000000000002 fails mod-97 check (remainder=2, expected 1). Known-vector assert for ISO 17442 mod-97 algorithm.",
      "policy_parameters": {
        "originator_lei": "00000000000000000002",
        "beneficiary_lei": "00000000000000000001",
        "originator_name": "Synthetic Bank AG",
        "originator_account": "DE89370400440532013000",
        "beneficiary_name": "Test Recipient Corp",
        "beneficiary_account": "GB82WEST12345698765432"
      },
      "output_payload": {
        "lei_valid": false,
        "error_count": 1,
        "lei_results": {
          "originator": {
            "lei": "00000000000000000002",
            "valid": false,
            "error": "ISO 17442 mod-97 check failed (remainder 2, expected 1). LEI has invalid check digits."
          },
          "beneficiary": {
            "lei": "00000000000000000001",
            "valid": true,
            "error": null
          }
        },
        "wolfsberg_transparency_score": 100,
        "wolfsberg_transparency_tier": "HIGH",
        "wolfsberg_field_results": [
          {
            "label": "Originator name",
            "present": true,
            "weight": 20
          },
          {
            "label": "Originator account",
            "present": true,
            "weight": 15
          },
          {
            "label": "Originator LEI",
            "present": true,
            "weight": 20
          },
          {
            "label": "Beneficiary name",
            "present": true,
            "weight": 20
          },
          {
            "label": "Beneficiary account",
            "present": true,
            "weight": 15
          },
          {
            "label": "Beneficiary LEI",
            "present": true,
            "weight": 20
          }
        ],
        "issues": [
          {
            "code": "ORIGINATOR_LEI_INVALID",
            "severity": "ERROR",
            "field": "Dbtr/Id/LEI",
            "message": "ISO 17442 mod-97 check failed (remainder 2, expected 1). LEI has invalid check digits."
          }
        ],
        "pii_note": "LEIs are PUBLIC registry data (GLEIF global LEI database, gleif.org). Party names and account identifiers are processed structurally for presence/format only. No real PII processed -- use synthetic data for testing.",
        "table_version": "ISO17442-LEI-CHECK-2024 + WOLFSBERG-PAYMENT-TRANSPARENCY-2023",
        "table_source": "ISO 17442:2020 Legal Entity Identifier (iso.org/standard/78829.html); ISO 7064:2003 Mod 97-10 check digit algorithm; Wolfsberg Payment Transparency Standards 2023 (wolfsberg-principles.com/documents/wolfsberg-payment-transparency-standards)",
        "regulatory_basis": "ISO 17442:2020 Legal Entity Identifier; ISO 7064:2003 Mod 97-10; Wolfsberg Payment Transparency Standards 2023; CPMI d218 LEI mandate guidance"
      },
      "golden_hash": "786e272a52237c996e5a125890bcc07b0e0a98b9149a9790d487604f628e6df4"
    },
    {
      "name": "empty_input_finite",
      "description": "All fields absent. Verifies finite output. No LEI errors (not provided), Wolfsberg score 0 -> LOW tier.",
      "policy_parameters": {},
      "output_payload": {
        "lei_valid": true,
        "error_count": 0,
        "lei_results": {
          "originator": {
            "lei": null,
            "valid": null,
            "error": "Not provided"
          },
          "beneficiary": {
            "lei": null,
            "valid": null,
            "error": "Not provided"
          }
        },
        "wolfsberg_transparency_score": 0,
        "wolfsberg_transparency_tier": "LOW",
        "wolfsberg_field_results": [
          {
            "label": "Originator name",
            "present": false,
            "weight": 20
          },
          {
            "label": "Originator account",
            "present": false,
            "weight": 15
          },
          {
            "label": "Originator LEI",
            "present": false,
            "weight": 20
          },
          {
            "label": "Beneficiary name",
            "present": false,
            "weight": 20
          },
          {
            "label": "Beneficiary account",
            "present": false,
            "weight": 15
          },
          {
            "label": "Beneficiary LEI",
            "present": false,
            "weight": 20
          }
        ],
        "issues": [],
        "pii_note": "LEIs are PUBLIC registry data (GLEIF global LEI database, gleif.org). Party names and account identifiers are processed structurally for presence/format only. No real PII processed -- use synthetic data for testing.",
        "table_version": "ISO17442-LEI-CHECK-2024 + WOLFSBERG-PAYMENT-TRANSPARENCY-2023",
        "table_source": "ISO 17442:2020 Legal Entity Identifier (iso.org/standard/78829.html); ISO 7064:2003 Mod 97-10 check digit algorithm; Wolfsberg Payment Transparency Standards 2023 (wolfsberg-principles.com/documents/wolfsberg-payment-transparency-standards)",
        "regulatory_basis": "ISO 17442:2020 Legal Entity Identifier; ISO 7064:2003 Mod 97-10; Wolfsberg Payment Transparency Standards 2023; CPMI d218 LEI mandate guidance"
      },
      "golden_hash": "1342bd31d58024fa95687f7b134f4168fe7a9ecb497ca4f6acac050c805cbd06"
    }
  ]
}
