{
  "$comment": "DERIVED OUTPUT-CONTRACT SIDECAR — a WITNESS domain from fixtures, never a declaration. May decide L2G-pass; may NEVER produce a dead-branch L2G-fail. Generated by scripts/gen-output-schema.mjs (CHAIN-FV-L2-G-RESCOPE-3). ⛔ Do not hand-edit — run the generator.",
  "kernel_digest": "sha256:c7d0608caf559ede9bf75c63cee44bcc4cda97cc043ea6c689707e0e956709b9",
  "output_schema": {
    "properties": {
      "as_of_date": {
        "enum": [
          "2026-06-30"
        ],
        "type": "string",
        "x-source": {
          "from": "conformance_fixtures",
          "generator": "scripts/gen-output-schema.mjs",
          "kind": "derived",
          "note": "derived from 4 fixtures @ sha256:c7d0608caf559ede9bf75c63cee44bcc4cda97cc043ea6c689707e0e956709b9",
          "vectors": 4
        }
      },
      "boundary": {
        "enum": [
          "This validates the shape of a supplied 12 CFR part 371 qualified-financial-contract recordkeeping file against the appendix's published record layout and ties the file's declared totals to a supplied control-total summary. It is not a filing, it does not produce the part 371 appendix submission format, it carries no claim that the FDIC or the institution's primary regulator would accept the file, and it offers no advice on whether a particular contract is a covered QFC. That determination is made under 12 CFR part 371 by the institution and its counsel, never here."
        ],
        "type": "string",
        "x-source": {
          "from": "conformance_fixtures",
          "generator": "scripts/gen-output-schema.mjs",
          "kind": "derived",
          "note": "derived from 4 fixtures @ sha256:c7d0608caf559ede9bf75c63cee44bcc4cda97cc043ea6c689707e0e956709b9",
          "vectors": 4
        }
      },
      "conforming_row_count": {
        "maximum": 2,
        "minimum": 1,
        "type": "number",
        "x-observed-values": [
          1,
          2
        ],
        "x-source": {
          "from": "conformance_fixtures",
          "generator": "scripts/gen-output-schema.mjs",
          "kind": "derived",
          "note": "derived from 4 fixtures @ sha256:c7d0608caf559ede9bf75c63cee44bcc4cda97cc043ea6c689707e0e956709b9",
          "vectors": 4
        }
      },
      "control_totals": {
        "type": [
          "null",
          "object"
        ],
        "x-source": {
          "from": "conformance_fixtures",
          "generator": "scripts/gen-output-schema.mjs",
          "kind": "derived",
          "note": "derived from 4 fixtures @ sha256:c7d0608caf559ede9bf75c63cee44bcc4cda97cc043ea6c689707e0e956709b9",
          "vectors": 4
        }
      },
      "control_totals_supplied": {
        "enum": [
          false,
          true
        ],
        "type": "boolean",
        "x-source": {
          "from": "conformance_fixtures",
          "generator": "scripts/gen-output-schema.mjs",
          "kind": "derived",
          "note": "derived from 4 fixtures @ sha256:c7d0608caf559ede9bf75c63cee44bcc4cda97cc043ea6c689707e0e956709b9",
          "vectors": 4
        }
      },
      "decision": {
        "properties": {
          "execution_state": {
            "enum": [
              "did_not_run",
              "ran"
            ],
            "type": "string",
            "x-source": {
              "from": "conformance_fixtures",
              "generator": "scripts/gen-output-schema.mjs",
              "kind": "derived",
              "note": "derived from 4 fixtures @ sha256:c7d0608caf559ede9bf75c63cee44bcc4cda97cc043ea6c689707e0e956709b9",
              "vectors": 4
            }
          },
          "gate_policy": {
            "enum": [
              "auto_pass",
              "escalate",
              "review_required",
              null
            ],
            "type": [
              "null",
              "string"
            ],
            "x-source": {
              "from": "conformance_fixtures",
              "generator": "scripts/gen-output-schema.mjs",
              "kind": "derived",
              "note": "derived from 4 fixtures @ sha256:c7d0608caf559ede9bf75c63cee44bcc4cda97cc043ea6c689707e0e956709b9",
              "vectors": 4
            }
          },
          "reason": {
            "enum": [
              "no_control_totals_supplied: the file's totals cannot be reconciled without a tied control-total summary.",
              null
            ],
            "type": [
              "null",
              "string"
            ],
            "x-source": {
              "from": "conformance_fixtures",
              "generator": "scripts/gen-output-schema.mjs",
              "kind": "derived",
              "note": "derived from 4 fixtures @ sha256:c7d0608caf559ede9bf75c63cee44bcc4cda97cc043ea6c689707e0e956709b9",
              "vectors": 4
            }
          }
        },
        "type": "object",
        "x-source": {
          "from": "conformance_fixtures",
          "generator": "scripts/gen-output-schema.mjs",
          "kind": "derived",
          "note": "derived from 4 fixtures @ sha256:c7d0608caf559ede9bf75c63cee44bcc4cda97cc043ea6c689707e0e956709b9",
          "vectors": 4
        }
      },
      "file_structure_errors": {
        "type": "array",
        "x-source": {
          "from": "conformance_fixtures",
          "generator": "scripts/gen-output-schema.mjs",
          "kind": "derived",
          "note": "derived from 4 fixtures @ sha256:c7d0608caf559ede9bf75c63cee44bcc4cda97cc043ea6c689707e0e956709b9",
          "vectors": 4
        }
      },
      "file_totals": {
        "properties": {
          "collateral_minor_units": {
            "maximum": 46000000,
            "minimum": 21000000,
            "type": "number",
            "x-observed-values": [
              21000000,
              25000000,
              46000000
            ],
            "x-source": {
              "from": "conformance_fixtures",
              "generator": "scripts/gen-output-schema.mjs",
              "kind": "derived",
              "note": "derived from 4 fixtures @ sha256:c7d0608caf559ede9bf75c63cee44bcc4cda97cc043ea6c689707e0e956709b9",
              "vectors": 4
            }
          },
          "distinct_counterparty_count": {
            "maximum": 2,
            "minimum": 1,
            "type": "number",
            "x-observed-values": [
              1,
              2
            ],
            "x-source": {
              "from": "conformance_fixtures",
              "generator": "scripts/gen-output-schema.mjs",
              "kind": "derived",
              "note": "derived from 4 fixtures @ sha256:c7d0608caf559ede9bf75c63cee44bcc4cda97cc043ea6c689707e0e956709b9",
              "vectors": 4
            }
          },
          "notional_minor_units": {
            "maximum": 700000000,
            "minimum": 200000000,
            "type": "number",
            "x-observed-values": [
              200000000,
              500000000,
              700000000
            ],
            "x-source": {
              "from": "conformance_fixtures",
              "generator": "scripts/gen-output-schema.mjs",
              "kind": "derived",
              "note": "derived from 4 fixtures @ sha256:c7d0608caf559ede9bf75c63cee44bcc4cda97cc043ea6c689707e0e956709b9",
              "vectors": 4
            }
          },
          "position_count": {
            "maximum": 2,
            "minimum": 1,
            "type": "number",
            "x-observed-values": [
              1,
              2
            ],
            "x-source": {
              "from": "conformance_fixtures",
              "generator": "scripts/gen-output-schema.mjs",
              "kind": "derived",
              "note": "derived from 4 fixtures @ sha256:c7d0608caf559ede9bf75c63cee44bcc4cda97cc043ea6c689707e0e956709b9",
              "vectors": 4
            }
          }
        },
        "type": "object",
        "x-source": {
          "from": "conformance_fixtures",
          "generator": "scripts/gen-output-schema.mjs",
          "kind": "derived",
          "note": "derived from 4 fixtures @ sha256:c7d0608caf559ede9bf75c63cee44bcc4cda97cc043ea6c689707e0e956709b9",
          "vectors": 4
        }
      },
      "identifier_salting": {
        "enum": [
          "Position identifier and counterparty identifier are enumerable low-entropy identifiers within the meaning of SPEC.md section 25.1. Both arrive at this kernel already salted (sha256-salted@1); the kernel uses each only to detect a repeated position or count distinct counterparties, and no raw identifier or salt ever enters this computation."
        ],
        "type": "string",
        "x-source": {
          "from": "conformance_fixtures",
          "generator": "scripts/gen-output-schema.mjs",
          "kind": "derived",
          "note": "derived from 4 fixtures @ sha256:c7d0608caf559ede9bf75c63cee44bcc4cda97cc043ea6c689707e0e956709b9",
          "vectors": 4
        }
      },
      "institution_ref": {
        "enum": [
          "IDI-SYNTH-0001",
          "IDI-SYNTH-0002",
          "IDI-SYNTH-0003",
          "IDI-SYNTH-0004"
        ],
        "type": "string",
        "x-source": {
          "from": "conformance_fixtures",
          "generator": "scripts/gen-output-schema.mjs",
          "kind": "derived",
          "note": "derived from 4 fixtures @ sha256:c7d0608caf559ede9bf75c63cee44bcc4cda97cc043ea6c689707e0e956709b9",
          "vectors": 4
        }
      },
      "mismatches": {
        "type": "array",
        "x-source": {
          "from": "conformance_fixtures",
          "generator": "scripts/gen-output-schema.mjs",
          "kind": "derived",
          "note": "derived from 4 fixtures @ sha256:c7d0608caf559ede9bf75c63cee44bcc4cda97cc043ea6c689707e0e956709b9",
          "vectors": 4
        }
      },
      "note": {
        "enum": [
          "Deterministic 12 CFR part 371 recordkeeping-file shape validator and totals reconciler. Single-run and stateless: it holds no records, runs on no schedule, and retains nothing. It validates the file's own declared rows against the part 371 appendix record layout and ties the file's totals to a supplied control-total summary, reporting a shape defect and a totals mismatch as two separate, never-merged findings. It holds no QFC-type or currency-code rule table and is not a filing."
        ],
        "type": "string",
        "x-source": {
          "from": "conformance_fixtures",
          "generator": "scripts/gen-output-schema.mjs",
          "kind": "derived",
          "note": "derived from 4 fixtures @ sha256:c7d0608caf559ede9bf75c63cee44bcc4cda97cc043ea6c689707e0e956709b9",
          "vectors": 4
        }
      },
      "qfc_code_handling": {
        "enum": [
          "QFC type and currency code on each file row are opaque strings. Nothing in this computation branches on the text of either, and no table of part 371 QFC contract-type codes or currency codes is held here."
        ],
        "type": "string",
        "x-source": {
          "from": "conformance_fixtures",
          "generator": "scripts/gen-output-schema.mjs",
          "kind": "derived",
          "note": "derived from 4 fixtures @ sha256:c7d0608caf559ede9bf75c63cee44bcc4cda97cc043ea6c689707e0e956709b9",
          "vectors": 4
        }
      },
      "rationale": {
        "type": "array",
        "x-source": {
          "from": "conformance_fixtures",
          "generator": "scripts/gen-output-schema.mjs",
          "kind": "derived",
          "note": "derived from 4 fixtures @ sha256:c7d0608caf559ede9bf75c63cee44bcc4cda97cc043ea6c689707e0e956709b9",
          "vectors": 4
        }
      },
      "supplied_row_count": {
        "maximum": 2,
        "minimum": 1,
        "type": "number",
        "x-observed-values": [
          1,
          2
        ],
        "x-source": {
          "from": "conformance_fixtures",
          "generator": "scripts/gen-output-schema.mjs",
          "kind": "derived",
          "note": "derived from 4 fixtures @ sha256:c7d0608caf559ede9bf75c63cee44bcc4cda97cc043ea6c689707e0e956709b9",
          "vectors": 4
        }
      },
      "totals_mismatch": {
        "enum": [
          false,
          true
        ],
        "type": "boolean",
        "x-source": {
          "from": "conformance_fixtures",
          "generator": "scripts/gen-output-schema.mjs",
          "kind": "derived",
          "note": "derived from 4 fixtures @ sha256:c7d0608caf559ede9bf75c63cee44bcc4cda97cc043ea6c689707e0e956709b9",
          "vectors": 4
        }
      }
    },
    "type": "object"
  },
  "producer": "art-537-qfc-recordkeeping-file-validator",
  "x-derivation": {
    "from": "conformance_fixtures",
    "generator": "scripts/gen-output-schema.mjs",
    "vectors": 4
  }
}
