{
  "synthetic": true,
  "mode": "calculate",
  "modelCalls": 0,
  "inputDigest": "90010012acf267a0d9ee485f2d45333ae480ecfc90196502819164f5253571e2",
  "analysis": {
    "rows": [
      {
        "invoiceId": "INV-01",
        "status": "candidate",
        "reason": null,
        "expectedCents": 10000,
        "creditCents": 0,
        "remainingNetCents": 12000,
        "priceDeviationCents": 2000,
        "candidateCents": 2000,
        "category": "price_deviation",
        "suppressedPriceCents": 0,
        "baseQuantity": 100,
        "sourceIds": [
          "INV-01",
          "each",
          "PO-A",
          "CON-OLD",
          "box10"
        ]
      },
      {
        "invoiceId": "INV-02",
        "status": "candidate",
        "reason": null,
        "expectedCents": 10000,
        "creditCents": 0,
        "remainingNetCents": 12000,
        "priceDeviationCents": 2000,
        "candidateCents": 12000,
        "category": "possible_duplicate",
        "suppressedPriceCents": 2000,
        "baseQuantity": 100,
        "sourceIds": [
          "INV-01",
          "each",
          "PO-A",
          "CON-OLD",
          "box10",
          "INV-02"
        ],
        "retainedInvoiceId": "INV-01"
      },
      {
        "invoiceId": "INV-03",
        "status": "matched",
        "reason": null,
        "expectedCents": 10000,
        "creditCents": 0,
        "remainingNetCents": 10000,
        "priceDeviationCents": 0,
        "candidateCents": 0,
        "category": null,
        "suppressedPriceCents": 0,
        "baseQuantity": 100,
        "sourceIds": [
          "INV-03",
          "box10",
          "PO-A",
          "each",
          "CON-OLD"
        ]
      },
      {
        "invoiceId": "INV-04",
        "status": "matched",
        "reason": null,
        "expectedCents": 8000,
        "creditCents": 0,
        "remainingNetCents": 8000,
        "priceDeviationCents": 0,
        "candidateCents": 0,
        "category": null,
        "suppressedPriceCents": 0,
        "baseQuantity": 100,
        "sourceIds": [
          "INV-04",
          "each",
          "PO-A",
          "CON-NEW"
        ]
      },
      {
        "invoiceId": "INV-05",
        "status": "candidate",
        "reason": null,
        "expectedCents": 10000,
        "creditCents": 1500,
        "remainingNetCents": 10500,
        "priceDeviationCents": 500,
        "candidateCents": 500,
        "category": "price_deviation",
        "suppressedPriceCents": 0,
        "baseQuantity": 100,
        "sourceIds": [
          "INV-05",
          "CR-PART",
          "each",
          "PO-A",
          "CON-OLD",
          "box10"
        ]
      },
      {
        "invoiceId": "INV-06",
        "status": "excluded",
        "reason": "fully_credited",
        "expectedCents": null,
        "creditCents": 12000,
        "remainingNetCents": 0,
        "priceDeviationCents": null,
        "candidateCents": 0,
        "category": null,
        "suppressedPriceCents": 0,
        "baseQuantity": null,
        "sourceIds": [
          "INV-06",
          "CR-FULL"
        ]
      },
      {
        "invoiceId": "INV-07",
        "status": "excluded",
        "reason": "cancelled",
        "expectedCents": null,
        "creditCents": 0,
        "remainingNetCents": 12000,
        "priceDeviationCents": null,
        "candidateCents": 0,
        "category": null,
        "suppressedPriceCents": 0,
        "baseQuantity": null,
        "sourceIds": [
          "INV-07"
        ]
      },
      {
        "invoiceId": "INV-08",
        "status": "needs_review",
        "reason": "missing_contract",
        "expectedCents": null,
        "creditCents": 0,
        "remainingNetCents": 10000,
        "priceDeviationCents": null,
        "candidateCents": null,
        "category": null,
        "suppressedPriceCents": 0,
        "baseQuantity": 100,
        "sourceIds": [
          "INV-08",
          "each",
          "PO-NO-CON"
        ]
      },
      {
        "invoiceId": "INV-09",
        "status": "needs_review",
        "reason": "ambiguous_duplicate_group",
        "expectedCents": 10000,
        "creditCents": 0,
        "remainingNetCents": 10000,
        "priceDeviationCents": 0,
        "candidateCents": null,
        "category": null,
        "suppressedPriceCents": 0,
        "baseQuantity": 100,
        "sourceIds": [
          "INV-09",
          "each",
          "PO-A",
          "CON-OLD",
          "box10",
          "INV-10"
        ]
      },
      {
        "invoiceId": "INV-10",
        "status": "needs_review",
        "reason": "ambiguous_duplicate_group",
        "expectedCents": 10000,
        "creditCents": 0,
        "remainingNetCents": 11000,
        "priceDeviationCents": 1000,
        "candidateCents": null,
        "category": null,
        "suppressedPriceCents": 0,
        "baseQuantity": 100,
        "sourceIds": [
          "INV-09",
          "each",
          "PO-A",
          "CON-OLD",
          "box10",
          "INV-10"
        ]
      },
      {
        "invoiceId": "INV-11",
        "status": "needs_review",
        "reason": "unsupported_currency",
        "expectedCents": null,
        "creditCents": 0,
        "remainingNetCents": 10000,
        "priceDeviationCents": null,
        "candidateCents": null,
        "category": null,
        "suppressedPriceCents": 0,
        "baseQuantity": null,
        "sourceIds": [
          "INV-11"
        ]
      },
      {
        "invoiceId": "INV-12",
        "status": "needs_review",
        "reason": "unsupported_tax_basis",
        "expectedCents": null,
        "creditCents": 0,
        "remainingNetCents": 12000,
        "priceDeviationCents": null,
        "candidateCents": null,
        "category": null,
        "suppressedPriceCents": 0,
        "baseQuantity": null,
        "sourceIds": [
          "INV-12"
        ]
      },
      {
        "invoiceId": "INV-13",
        "status": "needs_review",
        "reason": "missing_purchase_order",
        "expectedCents": null,
        "creditCents": 0,
        "remainingNetCents": 12000,
        "priceDeviationCents": null,
        "candidateCents": null,
        "category": null,
        "suppressedPriceCents": 0,
        "baseQuantity": 100,
        "sourceIds": [
          "INV-13",
          "each"
        ]
      },
      {
        "invoiceId": "INV-14",
        "status": "needs_review",
        "reason": "fractional_cent_price",
        "expectedCents": null,
        "creditCents": 0,
        "remainingNetCents": 50,
        "priceDeviationCents": null,
        "candidateCents": null,
        "category": null,
        "suppressedPriceCents": 0,
        "baseQuantity": 1,
        "sourceIds": [
          "INV-14",
          "each",
          "PO-F",
          "CON-FRACTION",
          "pack3"
        ]
      },
      {
        "invoiceId": "INV-15",
        "status": "candidate",
        "reason": null,
        "expectedCents": 10000,
        "creditCents": 0,
        "remainingNetCents": 11000,
        "priceDeviationCents": 1000,
        "candidateCents": 1000,
        "category": "price_deviation",
        "suppressedPriceCents": 0,
        "baseQuantity": 100,
        "sourceIds": [
          "INV-15",
          "each",
          "PO-A",
          "CON-OLD",
          "box10"
        ]
      },
      {
        "invoiceId": "INV-16",
        "status": "needs_review",
        "reason": "quantity_exceeds_purchase_order",
        "expectedCents": null,
        "creditCents": 0,
        "remainingNetCents": 20000,
        "priceDeviationCents": null,
        "candidateCents": null,
        "category": null,
        "suppressedPriceCents": 0,
        "baseQuantity": 200,
        "sourceIds": [
          "INV-16",
          "each",
          "PO-A"
        ]
      }
    ],
    "findings": [
      {
        "id": "finding-INV-02",
        "invoiceId": "INV-02",
        "category": "possible_duplicate",
        "candidateCents": 12000,
        "sourceIds": [
          "INV-01",
          "each",
          "PO-A",
          "CON-OLD",
          "box10",
          "INV-02"
        ],
        "uncertainty": "Same business fields do not prove a duplicate payment. The retained ID is an allocation convention, not the legitimate invoice."
      },
      {
        "id": "finding-INV-01",
        "invoiceId": "INV-01",
        "category": "price_deviation",
        "candidateCents": 2000,
        "sourceIds": [
          "INV-01",
          "each",
          "PO-A",
          "CON-OLD",
          "box10"
        ],
        "uncertainty": "Contract applicability and credit allocation require human confirmation; this is not recovered money."
      },
      {
        "id": "finding-INV-15",
        "invoiceId": "INV-15",
        "category": "price_deviation",
        "candidateCents": 1000,
        "sourceIds": [
          "INV-15",
          "each",
          "PO-A",
          "CON-OLD",
          "box10"
        ],
        "uncertainty": "Contract applicability and credit allocation require human confirmation; this is not recovered money."
      },
      {
        "id": "finding-INV-05",
        "invoiceId": "INV-05",
        "category": "price_deviation",
        "candidateCents": 500,
        "sourceIds": [
          "INV-05",
          "CR-PART",
          "each",
          "PO-A",
          "CON-OLD",
          "box10"
        ],
        "uncertainty": "Contract applicability and credit allocation require human confirmation; this is not recovered money."
      }
    ],
    "sources": {
      "each": "input.json#/units/0",
      "box10": "input.json#/units/1",
      "pack3": "input.json#/units/2",
      "CON-OLD": "input.json#/contracts/0",
      "CON-NEW": "input.json#/contracts/1",
      "CON-FRACTION": "input.json#/contracts/2",
      "PO-A": "input.json#/purchaseOrders/0",
      "PO-NO-CON": "input.json#/purchaseOrders/1",
      "PO-F": "input.json#/purchaseOrders/2",
      "INV-01": "input.json#/invoices/0",
      "INV-02": "input.json#/invoices/1",
      "INV-03": "input.json#/invoices/2",
      "INV-04": "input.json#/invoices/3",
      "INV-05": "input.json#/invoices/4",
      "INV-06": "input.json#/invoices/5",
      "INV-07": "input.json#/invoices/6",
      "INV-08": "input.json#/invoices/7",
      "INV-09": "input.json#/invoices/8",
      "INV-10": "input.json#/invoices/9",
      "INV-11": "input.json#/invoices/10",
      "INV-12": "input.json#/invoices/11",
      "INV-13": "input.json#/invoices/12",
      "INV-14": "input.json#/invoices/13",
      "INV-15": "input.json#/invoices/14",
      "INV-16": "input.json#/invoices/15",
      "CR-PART": "input.json#/credits/0",
      "CR-FULL": "input.json#/credits/1"
    },
    "summary": {
      "invoiceCount": 16,
      "findingCount": 4,
      "reviewCount": 8,
      "excludedCount": 2,
      "priceCents": 3500,
      "duplicateCents": 12000,
      "candidateCents": 15500,
      "scope": "EUR net amounts; unknown cases excluded; candidate exposure is not loss or savings"
    }
  },
  "verification": {
    "sampleCount": 16,
    "truePositives": 4,
    "falsePositives": 0,
    "falseNegatives": 0,
    "precision": 1,
    "recall": 1,
    "classificationErrors": [],
    "amountErrors": [],
    "totalMatches": true,
    "boundary": "Controlled synthetic classification only; model meaning, human acceptance, manual effort and production accuracy are unmeasured."
  },
  "humanReview": "pending"
}
