{
  "tool_id": "art-427-discount-window-capacity",
  "note": "golden_hash filled by golden-parity.test.mjs --update. Vector 1: seeded defaults, diversified collateral pool, coverage above 100% target, compliant. Vector 2: thin collateral pool against a large uninsured-deposit base, coverage far below target, deficient. Vector 3: zero-input edge (finite gate, coverage_pct returns null not Infinity/NaN, vacuously compliant).",
  "vectors": [
    {
      "name": "seeded_default_compliant",
      "description": "Diversified pledged-collateral pool (Treasuries 100% margin, agency MBS 96%, municipal bonds 90%, consumer loans 80%) against uninsured deposits + wholesale funding runnable-liability base. Margin table effective 2026-07-01. Lendable value $4690M vs $3000M runnable, coverage 156.33% clears the 100% target.",
      "policy_parameters": {
        "margin_table_version": "2026-07-01",
        "collateral_positions": [
          {
            "category": "U.S. Treasury securities",
            "par_value_musd": 2000,
            "margin_pct": 100
          },
          {
            "category": "Agency MBS",
            "par_value_musd": 1500,
            "margin_pct": 96
          },
          {
            "category": "Municipal bonds",
            "par_value_musd": 500,
            "margin_pct": 90
          },
          {
            "category": "Consumer loans",
            "par_value_musd": 1000,
            "margin_pct": 80
          }
        ],
        "runnable_liabilities": [
          {
            "label": "Uninsured deposits",
            "balance_musd": 2500
          },
          {
            "label": "Wholesale funding",
            "balance_musd": 500
          }
        ],
        "coverage_target_pct": 100
      },
      "output_payload": {
        "margin_table_version": "2026-07-01",
        "collateral_par_value_musd": 5000,
        "lendable_value_musd": 4690,
        "runnable_liabilities_musd": 3000,
        "coverage_target_pct": 100,
        "coverage_pct": 156.33,
        "capacity_surplus_shortfall_musd": 1690,
        "capacity_compliant": true,
        "note": "Lendable value = sum(collateral par value x published Fed margin, policy-input margin table). Compared against caller-supplied runnable-liability / uninsured-deposit balance. Not a claim of actual Fed collateral eligibility or advance approval."
      },
      "compliance_flags": [
        "DW_CAPACITY_COVERAGE_ADEQUATE"
      ],
      "golden_hash": "2ccb8f35dadfdde1e3637244ba5be458dea2909f0e522d8dbf91727b2fc33208"
    },
    {
      "name": "thin_collateral_deficient",
      "description": "Small Treasury + CRE-loan collateral pool ($380M lendable) against a $5000M uninsured-deposit base: 7.6% coverage, far below the 100% target -- deficient.",
      "policy_parameters": {
        "margin_table_version": "2026-07-01",
        "collateral_positions": [
          {
            "category": "U.S. Treasury securities",
            "par_value_musd": 200,
            "margin_pct": 100
          },
          {
            "category": "CRE loans",
            "par_value_musd": 300,
            "margin_pct": 60
          }
        ],
        "runnable_liabilities": [
          {
            "label": "Uninsured deposits",
            "balance_musd": 5000
          }
        ],
        "coverage_target_pct": 100
      },
      "output_payload": {
        "margin_table_version": "2026-07-01",
        "collateral_par_value_musd": 500,
        "lendable_value_musd": 380,
        "runnable_liabilities_musd": 5000,
        "coverage_target_pct": 100,
        "coverage_pct": 7.6,
        "capacity_surplus_shortfall_musd": -4620,
        "capacity_compliant": false,
        "note": "Lendable value = sum(collateral par value x published Fed margin, policy-input margin table). Compared against caller-supplied runnable-liability / uninsured-deposit balance. Not a claim of actual Fed collateral eligibility or advance approval."
      },
      "compliance_flags": [
        "DW_CAPACITY_COVERAGE_BELOW_TARGET_DEFICIENT"
      ],
      "golden_hash": "58349a9562a1cc0f3ab31372ba83cdd6baee8359468a8b6a6c04134595e7bd1a"
    },
    {
      "name": "zero_input_edge",
      "description": "No collateral positions and no runnable liabilities supplied at all. Finite gate: coverage_pct resolves to null (not Infinity/NaN), treated as vacuously compliant (no runnable-liability denominator to breach).",
      "policy_parameters": {
        "margin_table_version": "2026-07-01",
        "collateral_positions": [],
        "runnable_liabilities": [],
        "coverage_target_pct": 100
      },
      "output_payload": {
        "margin_table_version": "2026-07-01",
        "collateral_par_value_musd": 0,
        "lendable_value_musd": 0,
        "runnable_liabilities_musd": 0,
        "coverage_target_pct": 100,
        "coverage_pct": null,
        "capacity_surplus_shortfall_musd": 0,
        "capacity_compliant": true,
        "note": "Lendable value = sum(collateral par value x published Fed margin, policy-input margin table). Compared against caller-supplied runnable-liability / uninsured-deposit balance. Not a claim of actual Fed collateral eligibility or advance approval."
      },
      "compliance_flags": [
        "DW_CAPACITY_COVERAGE_ADEQUATE"
      ],
      "golden_hash": "55e34603fbc29d585b6e1724731cff7d7272332c0131533a83be4f226becf76c"
    }
  ]
}
