{
 "$schema": "https://qisfund.com/api/governed-quantity.examples.json",
 "description": "Conformance fixtures for governed-quantity.schema.json, version 1.0.0. `valid` instances must pass validation; `invalid` instances must fail, each for the reason its `expectFailure` names. These are the exact instances verify.py's build gate runs on every deploy -- not illustrative, not hand-picked for a demo.",
 "schemaVersion": "1.0.0",
 "schema": "https://qisfund.com/api/governed-quantity.schema.json",
 "valid": [
  {
   "label": "S-01-A Permitted actions (enumerated value, no unit)",
   "instance": {
    "scheduleId": "S-01-A",
    "version": "1",
    "effectiveDate": "2026-01-01",
    "attachesTo": {
     "instrumentId": "QIS-CL-001",
     "instrumentVersion": "1.0"
    },
    "kind": "governance",
    "rows": [
     {
      "setBy": "Jane Doe",
      "dateSet": "2026-01-01",
      "basis": "initial deployment scope",
      "reviewDate": "2026-07-01",
      "identifier": "PA-1",
      "quantity": "permitted actions",
      "value": [
       "place order",
       "cancel order"
      ],
      "dataSource": "system manifest",
      "enforcementPoint": "order gateway",
      "measurementWindow": "continuous",
      "consequence": "reject action outside enumerated set"
     }
    ]
   }
  },
  {
   "label": "S-01-B Quantitative limits (numeric value, unit required)",
   "instance": {
    "scheduleId": "S-01-B",
    "version": "1",
    "effectiveDate": "2026-01-01",
    "attachesTo": {
     "instrumentId": "QIS-CL-001",
     "instrumentVersion": "1.0"
    },
    "kind": "governance",
    "rows": [
     {
      "setBy": "Jane Doe",
      "dateSet": "2026-01-01",
      "basis": "initial deployment scope",
      "reviewDate": "2026-07-01",
      "identifier": "L-1",
      "quantity": "max position size",
      "value": 1000000,
      "unit": "USD",
      "dataSource": "OMS",
      "enforcementPoint": "pre-trade risk gate",
      "measurementWindow": "intraday",
      "consequence": "reject order"
     }
    ]
   }
  },
  {
   "label": "S-01-C Reserved actions (enumerated value)",
   "instance": {
    "scheduleId": "S-01-C",
    "version": "1",
    "effectiveDate": "2026-01-01",
    "attachesTo": {
     "instrumentId": "QIS-CL-001",
     "instrumentVersion": "1.0"
    },
    "kind": "governance",
    "rows": [
     {
      "setBy": "Jane Doe",
      "dateSet": "2026-01-01",
      "basis": "initial deployment scope",
      "reviewDate": "2026-07-01",
      "identifier": "RA-1",
      "quantity": "reserved actions",
      "value": [
       "amend grant",
       "new counterparty"
      ],
      "dataSource": "policy register",
      "enforcementPoint": "action gateway",
      "measurementWindow": "continuous",
      "consequence": "block; escalate to accountable individual"
     }
    ]
   }
  },
  {
   "label": "S-01-D Termination triggers (numeric, plus schedule-specific extra fields)",
   "instance": {
    "scheduleId": "S-01-D",
    "version": "1",
    "effectiveDate": "2026-01-01",
    "attachesTo": {
     "instrumentId": "QIS-CL-001",
     "instrumentVersion": "1.0"
    },
    "kind": "governance",
    "rows": [
     {
      "setBy": "Jane Doe",
      "dateSet": "2026-01-01",
      "basis": "initial deployment scope",
      "reviewDate": "2026-07-01",
      "identifier": "TT-1",
      "quantity": "intraday loss",
      "value": 50000,
      "unit": "USD",
      "dataSource": "PnL engine",
      "enforcementPoint": "kill switch",
      "measurementWindow": "intraday",
      "consequence": "halt",
      "testInterval": "weekly",
      "lastTested": "2026-06-01"
     }
    ]
   }
  },
  {
   "label": "S-01-E Identity and credentials (enumerated reach)",
   "instance": {
    "scheduleId": "S-01-E",
    "version": "1",
    "effectiveDate": "2026-01-01",
    "attachesTo": {
     "instrumentId": "QIS-CL-001",
     "instrumentVersion": "1.0"
    },
    "kind": "governance",
    "rows": [
     {
      "setBy": "Jane Doe",
      "dateSet": "2026-01-01",
      "basis": "initial deployment scope",
      "reviewDate": "2026-07-01",
      "identifier": "CR-1",
      "quantity": "systems reachable by credential",
      "value": [
       "OMS",
       "risk engine"
      ],
      "dataSource": "IAM registry",
      "enforcementPoint": "credential issuance",
      "measurementWindow": "continuous",
      "consequence": "revoke credential"
     }
    ]
   }
  },
  {
   "label": "S-01-F Accountable individual chain (single-member enumerated value)",
   "instance": {
    "scheduleId": "S-01-F",
    "version": "1",
    "effectiveDate": "2026-01-01",
    "attachesTo": {
     "instrumentId": "QIS-CL-001",
     "instrumentVersion": "1.0"
    },
    "kind": "governance",
    "rows": [
     {
      "setBy": "Jane Doe",
      "dateSet": "2026-01-01",
      "basis": "initial deployment scope",
      "reviewDate": "2026-07-01",
      "identifier": "AI-1",
      "quantity": "accountable individual",
      "value": [
       "Jane Doe"
      ],
      "dataSource": "designation record",
      "enforcementPoint": "halt authorization gate",
      "measurementWindow": "continuous",
      "consequence": "designation lapses"
     }
    ]
   }
  },
  {
   "label": "S-01-G Records specification (enumerated record classes)",
   "instance": {
    "scheduleId": "S-01-G",
    "version": "1",
    "effectiveDate": "2026-01-01",
    "attachesTo": {
     "instrumentId": "QIS-CL-001",
     "instrumentVersion": "1.0"
    },
    "kind": "governance",
    "rows": [
     {
      "setBy": "Jane Doe",
      "dateSet": "2026-01-01",
      "basis": "initial deployment scope",
      "reviewDate": "2026-07-01",
      "identifier": "RS-1",
      "quantity": "record classes required for reconstruction",
      "value": [
       "inputs",
       "model version",
       "output"
      ],
      "dataSource": "records policy",
      "enforcementPoint": "logging pipeline",
      "measurementWindow": "continuous",
      "consequence": "reconstruction request cannot be satisfied"
     }
    ]
   }
  },
  {
   "label": "S-02-A Trigger schedule (numeric)",
   "instance": {
    "scheduleId": "S-02-A",
    "version": "1",
    "effectiveDate": "2026-01-01",
    "attachesTo": {
     "instrumentId": "QIS-CL-002",
     "instrumentVersion": "1.0"
    },
    "kind": "governance",
    "rows": [
     {
      "setBy": "Jane Doe",
      "dateSet": "2026-01-01",
      "basis": "initial deployment scope",
      "reviewDate": "2026-07-01",
      "identifier": "T-1",
      "quantity": "intraday drawdown",
      "value": 5.0,
      "unit": "pct",
      "dataSource": "PnL engine",
      "enforcementPoint": "kill switch",
      "measurementWindow": "intraday",
      "consequence": "halt"
     }
    ]
   }
  },
  {
   "label": "S-02-B Persons able to halt (enumerated)",
   "instance": {
    "scheduleId": "S-02-B",
    "version": "1",
    "effectiveDate": "2026-01-01",
    "attachesTo": {
     "instrumentId": "QIS-CL-002",
     "instrumentVersion": "1.0"
    },
    "kind": "governance",
    "rows": [
     {
      "setBy": "Jane Doe",
      "dateSet": "2026-01-01",
      "basis": "initial deployment scope",
      "reviewDate": "2026-07-01",
      "identifier": "P-1",
      "quantity": "persons able to halt",
      "value": [
       "Jane Doe",
       "John Smith"
      ],
      "dataSource": "operator roster",
      "enforcementPoint": "halt console access",
      "measurementWindow": "continuous",
      "consequence": "access revoked on removal"
     }
    ]
   }
  },
  {
   "label": "S-02-C Test record (append-only, enumerated outcome)",
   "instance": {
    "scheduleId": "S-02-C",
    "version": "1",
    "effectiveDate": "2026-01-01",
    "attachesTo": {
     "instrumentId": "QIS-CL-002",
     "instrumentVersion": "1.0"
    },
    "kind": "governance",
    "rows": [
     {
      "setBy": "Jane Doe",
      "dateSet": "2026-01-01",
      "basis": "initial deployment scope",
      "reviewDate": "2026-07-01",
      "identifier": "TR-1",
      "quantity": "halt capability test outcome",
      "value": [
       "no-halt-required"
      ],
      "dataSource": "test log",
      "enforcementPoint": "halt console",
      "measurementWindow": "2026-06-01",
      "consequence": "none; retained as evidence of exercise"
     }
    ]
   }
  },
  {
   "label": "Instrument 03 Schedule A (disclosure -- value/unit/window/enforcement N/A)",
   "instance": {
    "scheduleId": "A",
    "version": "1",
    "effectiveDate": "2026-01-01",
    "attachesTo": {
     "instrumentId": "QIS-CL-003",
     "instrumentVersion": "1.0"
    },
    "kind": "disclosure",
    "rows": [
     {
      "setBy": "Jane Doe",
      "dateSet": "2026-01-01",
      "basis": "initial deployment scope",
      "reviewDate": "2026-07-01",
      "identifier": "A-1",
      "quantity": "model in production use",
      "value": [
       "gpt-x"
      ],
      "dataSource": "vendor contract"
     }
    ]
   }
  },
  {
   "label": "S-04-A Stressed conditions (numeric threshold)",
   "instance": {
    "scheduleId": "S-04-A",
    "version": "1",
    "effectiveDate": "2026-01-01",
    "attachesTo": {
     "instrumentId": "QIS-CL-004",
     "instrumentVersion": "1.0"
    },
    "kind": "governance",
    "rows": [
     {
      "setBy": "Jane Doe",
      "dateSet": "2026-01-01",
      "basis": "initial deployment scope",
      "reviewDate": "2026-07-01",
      "identifier": "SC-1",
      "quantity": "VIX level",
      "value": 40.0,
      "unit": "index points",
      "dataSource": "CBOE",
      "enforcementPoint": "stress declaration engine",
      "measurementWindow": "daily close",
      "consequence": "stressed conditions take effect"
     }
    ]
   }
  },
  {
   "label": "S-04-B Stressed limits (numeric, keyed to an ordinary limit)",
   "instance": {
    "scheduleId": "S-04-B",
    "version": "1",
    "effectiveDate": "2026-01-01",
    "attachesTo": {
     "instrumentId": "QIS-CL-004",
     "instrumentVersion": "1.0"
    },
    "kind": "governance",
    "rows": [
     {
      "setBy": "Jane Doe",
      "dateSet": "2026-01-01",
      "basis": "initial deployment scope",
      "reviewDate": "2026-07-01",
      "identifier": "L-1",
      "quantity": "max position size (stressed)",
      "value": 200000,
      "unit": "USD",
      "dataSource": "OMS",
      "enforcementPoint": "pre-trade risk gate",
      "measurementWindow": "intraday",
      "consequence": "reject order"
     }
    ]
   }
  },
  {
   "label": "S-04-C Stressed triggers (numeric, keyed to an ordinary trigger)",
   "instance": {
    "scheduleId": "S-04-C",
    "version": "1",
    "effectiveDate": "2026-01-01",
    "attachesTo": {
     "instrumentId": "QIS-CL-004",
     "instrumentVersion": "1.0"
    },
    "kind": "governance",
    "rows": [
     {
      "setBy": "Jane Doe",
      "dateSet": "2026-01-01",
      "basis": "initial deployment scope",
      "reviewDate": "2026-07-01",
      "identifier": "T-1",
      "quantity": "intraday drawdown (stressed)",
      "value": 3.0,
      "unit": "pct",
      "dataSource": "PnL engine",
      "enforcementPoint": "kill switch",
      "measurementWindow": "intraday",
      "consequence": "halt"
     }
    ]
   }
  }
 ],
 "invalid": [
  {
   "label": "numeric governance row missing unit",
   "expectFailure": "unit",
   "instance": {
    "scheduleId": "S-01-B",
    "version": "1",
    "effectiveDate": "2026-01-01",
    "attachesTo": {
     "instrumentId": "QIS-CL-001",
     "instrumentVersion": "1.0"
    },
    "kind": "governance",
    "rows": [
     {
      "setBy": "Jane Doe",
      "dateSet": "2026-01-01",
      "basis": "initial deployment scope",
      "reviewDate": "2026-07-01",
      "identifier": "L-1",
      "quantity": "max position size",
      "value": 1000000,
      "dataSource": "OMS",
      "enforcementPoint": "pre-trade risk gate",
      "measurementWindow": "intraday",
      "consequence": "reject order"
     }
    ]
   }
  },
  {
   "label": "governance row missing enforcementPoint",
   "expectFailure": "enforcementPoint",
   "instance": {
    "scheduleId": "S-01-A",
    "version": "1",
    "effectiveDate": "2026-01-01",
    "attachesTo": {
     "instrumentId": "QIS-CL-001",
     "instrumentVersion": "1.0"
    },
    "kind": "governance",
    "rows": [
     {
      "setBy": "Jane Doe",
      "dateSet": "2026-01-01",
      "basis": "initial deployment scope",
      "reviewDate": "2026-07-01",
      "identifier": "PA-1",
      "quantity": "permitted actions",
      "value": [
       "place order"
      ],
      "dataSource": "system manifest",
      "measurementWindow": "continuous",
      "consequence": "reject"
     }
    ]
   }
  },
  {
   "label": "row missing a universally required field (basis)",
   "expectFailure": "basis",
   "instance": {
    "scheduleId": "A",
    "version": "1",
    "effectiveDate": "2026-01-01",
    "attachesTo": {
     "instrumentId": "QIS-CL-003",
     "instrumentVersion": "1.0"
    },
    "kind": "disclosure",
    "rows": [
     {
      "identifier": "A-1",
      "quantity": "model in production use",
      "value": [
       "gpt-x"
      ],
      "dataSource": "vendor contract",
      "setBy": "Jane Doe",
      "dateSet": "2026-01-01",
      "reviewDate": "2026-07-01"
     }
    ]
   }
  },
  {
   "label": "schedule missing kind",
   "expectFailure": "kind",
   "instance": {
    "scheduleId": "S-01-B",
    "version": "1",
    "effectiveDate": "2026-01-01",
    "attachesTo": {
     "instrumentId": "QIS-CL-001",
     "instrumentVersion": "1.0"
    },
    "rows": [
     {
      "setBy": "Jane Doe",
      "dateSet": "2026-01-01",
      "basis": "initial deployment scope",
      "reviewDate": "2026-07-01",
      "identifier": "L-1",
      "quantity": "x",
      "value": 1,
      "unit": "USD",
      "dataSource": "OMS",
      "enforcementPoint": "gate",
      "measurementWindow": "intraday",
      "consequence": "reject"
     }
    ]
   }
  },
  {
   "label": "supersedes present without a version",
   "expectFailure": "version",
   "instance": {
    "scheduleId": "S-01-B",
    "version": "1",
    "effectiveDate": "2026-01-01",
    "attachesTo": {
     "instrumentId": "QIS-CL-001",
     "instrumentVersion": "1.0"
    },
    "kind": "governance",
    "rows": [
     {
      "setBy": "Jane Doe",
      "dateSet": "2026-01-01",
      "basis": "initial deployment scope",
      "reviewDate": "2026-07-01",
      "identifier": "L-2",
      "quantity": "max position size",
      "value": 900000,
      "unit": "USD",
      "dataSource": "OMS",
      "enforcementPoint": "pre-trade risk gate",
      "measurementWindow": "intraday",
      "consequence": "reject order",
      "supersedes": {
       "identifier": "L-1"
      }
     }
    ]
   }
  }
 ]
}
