{
  "tool_id": "art-536-reg-w-affiliate-transaction-tester",
  "tool_version": "1.0.0",
  "display_name": "Reg W Affiliate Transaction Tester",
  "mcp_name": "test_reg_w_affiliate_transactions",
  "mandate_type": "compliance_control",
  "wave": 82,
  "gpu": false,
  "url": "https://ainumbers.co/chaingraph/art-536-reg-w-affiliate-transaction-tester.html",
  "description": "Tests each caller-declared covered transaction with an affiliate against the Regulation W (12 CFR 223) quantitative limits: the 10% single-affiliate and 20% aggregate-affiliate capital limits, and a collateral-coverage percentage requirement on covered credit transactions. Capital base, both limit percentages, and the collateral-coverage percentage all arrive as caller-declared policy_parameters, cited with a required policy_vintage -- never hardcoded, since 12 CFR 223 figures version on their own schedule. A market-terms flag (the qualitative 12 CFR 223.51 'on terms substantially the same' test) is a caller-declared boolean the node records for the artifact only; it is never a judgment this node makes. Either quantitative limit breached escalates; a collateral shortfall with no capital breach routes to review_required; both limits satisfied and full collateral coverage auto-passes. No policy_parameters or no declared transactions yields a did-not-run execution state rather than a guessed decision. Two further parts of Regulation W sit outside the input space and are not evaluated. First, the exemption inventory: covered-transaction status is caller-declared, and the subpart E exemptions of 12 CFR 223.41 and 223.42, the collateral-requirement exemptions of 223.14(f), and the exclusions of 223.16(c) have no inputs, so a transaction within any of them is still tested against the quantitative limits; the 223.15 prohibition on purchasing a low-quality asset from an affiliate is not evaluated either. Second, the collateral ladder: 223.14(b)(1)(i)-(iv) sets 100, 110, 120, or 130 percent according to collateral class (obligations of the United States or its agencies; obligations of a state or political subdivision; other debt instruments; and stock, leases, or other real or personal property), and collateral class is not an input, so the fact that selects the rung reaches this node already resolved into the caller's collateral-coverage percentage.",
  "input_schema_ref": "chaingraph/art-536-reg-w-affiliate-transaction-tester.html#manifest",
  "consumes": [],
  "feeds": [],
  "status": "live",
  "conformance_fixtures": true,
  "compute_capability": "server",
  "compute_images": [
    {
      "system": "sha256-source",
      "image_id": "sha256:97f5aa7c56c8afd1021f3e175b556a66dfbbf632cee7c0f9f88cf0752eae17a4",
      "valid_from": "2026-07-10"
    },
    {
      "system": "risc0",
      "image_id": "sha256:a1a0bc89b5b1febaeda3519f6dbade0fa5ac16beeb143c4e1b01689573567bc6",
      "valid_from": "2026-08-04"
    }
  ],
  "compute_proof_ready": "ready",
  "deferred_reason": "New shard; awaiting the async GPU proving queue (S18 steady-state).",
  "export_capability": [
    "json"
  ],
  "standards_basis": "implements_standard",
  "cited_clause_digest": [
    {
      "digest": "sha256:a3cf2246a016eff040a53cfeec80ea34742b8bc9ecd6bdc17f195ec35e477096",
      "source_url": "https://www.ecfr.gov/api/versioner/v1/full/2026-08-20/title-12.xml?part=223&section=223.14",
      "retrieved_at": "2026-08-22",
      "clause_path": "223.14(b)(1)(i)-(iv), (c), (d)",
      "scheme": "cfr",
      "id": "12 CFR 223.14"
    },
    {
      "digest": "sha256:3c46d7df5c5d9e4e5d97212218051610543e9d52fbaa2dc618aa46656947cbf2",
      "source_url": "https://www.ecfr.gov/api/versioner/v1/full/2026-08-20/title-12.xml?part=223&section=223.14",
      "retrieved_at": "2026-08-22",
      "clause_path": "223.14(f)(1)-(3)",
      "scheme": "cfr",
      "id": "12 CFR 223.14"
    },
    {
      "digest": "sha256:ad5d91318b31c688ac6b805e2c649c0546ae1a84a6a7e13a2954e088ad836651",
      "source_url": "https://www.ecfr.gov/api/versioner/v1/full/2026-08-20/title-12.xml?part=223&section=223.15",
      "retrieved_at": "2026-08-22",
      "clause_path": "223.15(a)-(b)",
      "scheme": "cfr",
      "id": "12 CFR 223.15"
    },
    {
      "digest": "sha256:c9527ebf137eca82b261f92212e6e2468127b276be963c3f9d74e9fcc7d9818d",
      "source_url": "https://www.ecfr.gov/api/versioner/v1/full/2026-08-20/title-12.xml?part=223&section=223.16",
      "retrieved_at": "2026-08-22",
      "clause_path": "223.16(c)",
      "scheme": "cfr",
      "id": "12 CFR 223.16"
    },
    {
      "digest": "sha256:e66b72f9d391214a87925ca5dbc2a2c4ed3b6431c917705518285dd78debc5c9",
      "source_url": "https://www.ecfr.gov/api/versioner/v1/full/2026-08-20/title-12.xml?part=223&section=223.41",
      "retrieved_at": "2026-08-22",
      "clause_path": "223.41",
      "scheme": "cfr",
      "id": "12 CFR 223.41"
    },
    {
      "digest": "sha256:17beda64e1d58cb65e59b03136a1651e8f625bd1309a134b583db48cf993fca4",
      "source_url": "https://www.ecfr.gov/api/versioner/v1/full/2026-08-20/title-12.xml?part=223&section=223.42",
      "retrieved_at": "2026-08-22",
      "clause_path": "223.42",
      "scheme": "cfr",
      "id": "12 CFR 223.42"
    }
  ],
  "compute_proof": {
    "type": "ZkVmReceipt",
    "system": "risc0",
    "receiptFormat": "groth16-bn254",
    "imageId": "sha256:a1a0bc89b5b1febaeda3519f6dbade0fa5ac16beeb143c4e1b01689573567bc6",
    "seal": "B2QNcaq8DVYzQKpn72t45SHcZCiqlJNIfmu0KvtWTP8OoGJPFt8LhpguvLCfO+hJX0E7YWjSx6/8Wo4JvSCCFQMriTCDEtR1P/eEQGa3DVnxgfXbYcn+nE0bWSzPvNTqETf885yELufcqBHAvQWn8BmX0QkZEl7FFBP3HlhxN9YCTpSJ3NfB5mjkle745ukyKC+NfbZcyfdFbc+0f1lNXgiIbi8H1kduvmU8vsLEN16q9Az5WuR2hBTEfv+Xl92oDSfKwWPLAE8uIJFd79Z49c5Nm/h/Om89mmGURgjZAdcfCGLMB+fcYhYQX3MtYVkXzynDLChhAa2SJEr+42fCMw==",
    "journal": {
      "chaingraph_version": "0.4.0",
      "kernel_digest": "sha256:97f5aa7c56c8afd1021f3e175b556a66dfbbf632cee7c0f9f88cf0752eae17a4",
      "output": {
        "aggregate_test": {
          "breach": false,
          "exposure": 500000,
          "limit_amount": 2000000
        },
        "collateral_tests": [
          {
            "affiliate_id": "affiliate-alpha-holdings",
            "amount": 300000,
            "collateral_value": 400000,
            "required_collateral": 390000,
            "required_collateral_pct": 130,
            "shortfall": false,
            "transaction_id": "txn-0001"
          }
        ],
        "decision": "auto_pass",
        "execution_state": "ran",
        "market_terms_declarations": [
          {
            "affiliate_id": "affiliate-alpha-holdings",
            "market_terms_substantially_same": true,
            "transaction_id": "txn-0001"
          },
          {
            "affiliate_id": "affiliate-alpha-holdings",
            "market_terms_substantially_same": true,
            "transaction_id": "txn-0002"
          }
        ],
        "policy_vintage": "12 CFR 223, eCFR as of 2026-01-01",
        "reason": null,
        "single_affiliate_tests": [
          {
            "affiliate_id": "affiliate-alpha-holdings",
            "breach": false,
            "exposure": 500000,
            "limit_amount": 1000000
          }
        ]
      }
    }
  }
}
