{
  "periods": {
    "baseline": {
      "from": "2026-01-01",
      "to": "2026-01-31"
    },
    "current": {
      "from": "2026-02-01",
      "to": "2026-02-28"
    }
  },
  "generatedAt": "2026-10-29T12:00:00Z",
  "scenarios": [
    {
      "name": "invalid and non-comparable inputs stay visible",
      "expected": {
        "currency": "GBP",
        "matched": [
          {
            "productKey": "[\"Fable Foods\",\"CUP\",\"each\"]",
            "supplier": "Fable Foods",
            "itemCode": "CUP",
            "unit": "each",
            "q0": "20.00",
            "c0": "240.00",
            "p0": "12.00",
            "q1": "20.00",
            "c1": "264.00",
            "p1": "13.20",
            "pctChange": "10.00",
            "priceEffect": "24.00",
            "quantityEffect": "0.00",
            "evidence": {
              "baselineRows": [
                "b"
              ],
              "currentRows": [
                "c"
              ]
            }
          }
        ],
        "added": [],
        "removed": [],
        "agreedVariances": [],
        "exclusions": [
          {
            "rowId": "zero-b",
            "reason": "zero or negative baseline price"
          },
          {
            "rowId": "zero-c",
            "reason": "zero or negative baseline price"
          },
          {
            "rowId": "unknown",
            "reason": "missing or unknown unit"
          },
          {
            "rowId": "missing",
            "reason": "missing or invalid currency"
          },
          {
            "rowId": "zero-q",
            "reason": "zero quantity"
          }
        ],
        "reconciliation": {
          "totalBaseline": "240.00",
          "totalCurrent": "264.00",
          "totalChange": "24.00",
          "matchedPriceEffect": "24.00",
          "matchedQuantityEffect": "0.00",
          "addedSpend": "0.00",
          "removedSpend": "0.00",
          "excludedSpend": "80.00",
          "residual": "0.00"
        },
        "coverage": {
          "rowsTotal": 7,
          "rowsIncluded": 2,
          "rowsExcluded": 5,
          "spendIncludedPct": "86.30"
        }
      }
    }
  ]
}
