{
  "dataset": {
    "id": "synthetic-receiving-cartons",
    "version": "1.0.0",
    "kind": "handwritten_synthetic_fixtures",
    "caseCount": 12,
    "description": "Two fixed synthetic product lines and a printed carton total. Expected statuses, totals, discrepancies and issue codes are handwritten independently of the validator."
  },
  "engineVersion": "1.0.0",
  "engineSourceSha256": "591e304e8a2f6157423415de27a89c54d490657ae3d76e698ef18161b807814a",
  "evaluatedAt": "2026-10-03T02:03:23.770Z",
  "evaluationDate": "2026-10-03",
  "evaluationTimezone": "Asia/Kolkata",
  "summary": {
    "total": 12,
    "passed": 12,
    "failed": 0,
    "expectedPassCases": 3,
    "expectedReviewCases": 9
  },
  "checks": [
    {
      "id": "presence",
      "description": "Require both line quantities and a printed total; whitespace-only values are missing."
    },
    {
      "id": "whole_nonnegative_counts",
      "description": "Accept digits-only whole counts including zero. Reject negatives, decimal notation, text, signs, formulas and scientific notation; surrounding whitespace is trimmed."
    },
    {
      "id": "demo_bounds",
      "description": "Each count must be a safe integer from 0 to 1,000,000."
    },
    {
      "id": "reconciliation",
      "description": "Compute the line-item sum and its signed difference from the printed total only when the required counts are valid; any difference blocks approval."
    }
  ],
  "results": [
    {
      "id": "match",
      "name": "Totals match",
      "input": {
        "productA": "60",
        "productB": "40",
        "printedTotal": "100"
      },
      "expected": {
        "status": "pass",
        "lineTotal": 100,
        "printedTotal": 100,
        "discrepancy": 0,
        "issues": []
      },
      "actual": {
        "status": "pass",
        "lineTotal": 100,
        "printedTotal": 100,
        "discrepancy": 0,
        "issues": []
      },
      "passed": true
    },
    {
      "id": "mismatch",
      "name": "Quantity mismatch",
      "input": {
        "productA": "60",
        "productB": "40",
        "printedTotal": "98"
      },
      "expected": {
        "status": "review_required",
        "lineTotal": 100,
        "printedTotal": 98,
        "discrepancy": 2,
        "issues": [
          {
            "field": "printedTotal",
            "code": "total_mismatch"
          }
        ]
      },
      "actual": {
        "status": "review_required",
        "lineTotal": 100,
        "printedTotal": 98,
        "discrepancy": 2,
        "issues": [
          {
            "field": "printedTotal",
            "code": "total_mismatch"
          }
        ]
      },
      "passed": true
    },
    {
      "id": "quantity",
      "name": "Missing quantity",
      "input": {
        "productA": "60",
        "productB": "",
        "printedTotal": "100"
      },
      "expected": {
        "status": "review_required",
        "lineTotal": null,
        "printedTotal": 100,
        "discrepancy": null,
        "issues": [
          {
            "field": "productB",
            "code": "missing"
          }
        ]
      },
      "actual": {
        "status": "review_required",
        "lineTotal": null,
        "printedTotal": 100,
        "discrepancy": null,
        "issues": [
          {
            "field": "productB",
            "code": "missing"
          }
        ]
      },
      "passed": true
    },
    {
      "id": "total",
      "name": "Missing total",
      "input": {
        "productA": "60",
        "productB": "40",
        "printedTotal": ""
      },
      "expected": {
        "status": "review_required",
        "lineTotal": 100,
        "printedTotal": null,
        "discrepancy": null,
        "issues": [
          {
            "field": "printedTotal",
            "code": "missing"
          }
        ]
      },
      "actual": {
        "status": "review_required",
        "lineTotal": 100,
        "printedTotal": null,
        "discrepancy": null,
        "issues": [
          {
            "field": "printedTotal",
            "code": "missing"
          }
        ]
      },
      "passed": true
    },
    {
      "id": "negative",
      "name": "Negative carton quantity",
      "input": {
        "productA": "-5",
        "productB": "40",
        "printedTotal": "35"
      },
      "expected": {
        "status": "review_required",
        "lineTotal": null,
        "printedTotal": 35,
        "discrepancy": null,
        "issues": [
          {
            "field": "productA",
            "code": "negative"
          }
        ]
      },
      "actual": {
        "status": "review_required",
        "lineTotal": null,
        "printedTotal": 35,
        "discrepancy": null,
        "issues": [
          {
            "field": "productA",
            "code": "negative"
          }
        ]
      },
      "passed": true
    },
    {
      "id": "decimal",
      "name": "Fractional carton quantity",
      "input": {
        "productA": "60",
        "productB": "40.5",
        "printedTotal": "100"
      },
      "expected": {
        "status": "review_required",
        "lineTotal": null,
        "printedTotal": 100,
        "discrepancy": null,
        "issues": [
          {
            "field": "productB",
            "code": "non_integer"
          }
        ]
      },
      "actual": {
        "status": "review_required",
        "lineTotal": null,
        "printedTotal": 100,
        "discrepancy": null,
        "issues": [
          {
            "field": "productB",
            "code": "non_integer"
          }
        ]
      },
      "passed": true
    },
    {
      "id": "malformed",
      "name": "Quantity includes text",
      "input": {
        "productA": "60 cartons",
        "productB": "40",
        "printedTotal": "100"
      },
      "expected": {
        "status": "review_required",
        "lineTotal": null,
        "printedTotal": 100,
        "discrepancy": null,
        "issues": [
          {
            "field": "productA",
            "code": "invalid"
          }
        ]
      },
      "actual": {
        "status": "review_required",
        "lineTotal": null,
        "printedTotal": 100,
        "discrepancy": null,
        "issues": [
          {
            "field": "productA",
            "code": "invalid"
          }
        ]
      },
      "passed": true
    },
    {
      "id": "whitespace",
      "name": "Surrounding whitespace",
      "input": {
        "productA": " 60 ",
        "productB": "40",
        "printedTotal": " 100 "
      },
      "expected": {
        "status": "pass",
        "lineTotal": 100,
        "printedTotal": 100,
        "discrepancy": 0,
        "issues": []
      },
      "actual": {
        "status": "pass",
        "lineTotal": 100,
        "printedTotal": 100,
        "discrepancy": 0,
        "issues": []
      },
      "passed": true
    },
    {
      "id": "zero",
      "name": "Explicit zero is present",
      "input": {
        "productA": "0",
        "productB": "40",
        "printedTotal": "40"
      },
      "expected": {
        "status": "pass",
        "lineTotal": 40,
        "printedTotal": 40,
        "discrepancy": 0,
        "issues": []
      },
      "actual": {
        "status": "pass",
        "lineTotal": 40,
        "printedTotal": 40,
        "discrepancy": 0,
        "issues": []
      },
      "passed": true
    },
    {
      "id": "exponent",
      "name": "Scientific notation blocked",
      "input": {
        "productA": "6e1",
        "productB": "40",
        "printedTotal": "100"
      },
      "expected": {
        "status": "review_required",
        "lineTotal": null,
        "printedTotal": 100,
        "discrepancy": null,
        "issues": [
          {
            "field": "productA",
            "code": "invalid"
          }
        ]
      },
      "actual": {
        "status": "review_required",
        "lineTotal": null,
        "printedTotal": 100,
        "discrepancy": null,
        "issues": [
          {
            "field": "productA",
            "code": "invalid"
          }
        ]
      },
      "passed": true
    },
    {
      "id": "limit",
      "name": "Quantity exceeds demo limit",
      "input": {
        "productA": "1000001",
        "productB": "0",
        "printedTotal": "1000000"
      },
      "expected": {
        "status": "review_required",
        "lineTotal": null,
        "printedTotal": 1000000,
        "discrepancy": null,
        "issues": [
          {
            "field": "productA",
            "code": "out_of_range"
          }
        ]
      },
      "actual": {
        "status": "review_required",
        "lineTotal": null,
        "printedTotal": 1000000,
        "discrepancy": null,
        "issues": [
          {
            "field": "productA",
            "code": "out_of_range"
          }
        ]
      },
      "passed": true
    },
    {
      "id": "all-missing",
      "name": "All counts missing",
      "input": {
        "productA": "",
        "productB": " ",
        "printedTotal": ""
      },
      "expected": {
        "status": "review_required",
        "lineTotal": null,
        "printedTotal": null,
        "discrepancy": null,
        "issues": [
          {
            "field": "productA",
            "code": "missing"
          },
          {
            "field": "productB",
            "code": "missing"
          },
          {
            "field": "printedTotal",
            "code": "missing"
          }
        ]
      },
      "actual": {
        "status": "review_required",
        "lineTotal": null,
        "printedTotal": null,
        "discrepancy": null,
        "issues": [
          {
            "field": "productA",
            "code": "missing"
          },
          {
            "field": "productB",
            "code": "missing"
          },
          {
            "field": "printedTotal",
            "code": "missing"
          }
        ]
      },
      "passed": true
    }
  ],
  "limitations": [
    "These 12 authored synthetic cases test a deterministic validation component, not AI extraction accuracy, real documents or customer outcomes.",
    "A fixture pass means the actual status, totals, discrepancy and issue field/code pairs match its handwritten expectation. Review-required cases are expected successful test outcomes.",
    "Coverage is limited to two whole-carton quantities and one printed total. Item identity, units, document authenticity, physical delivery, duplicates, taxes and purchase-order matching are not checked.",
    "The local approval checkbox is a demonstration, not an authenticated identity, durable audit trail or production authorization control.",
    "No model, upload, API, WMS/ERP integration, throughput benchmark, latency measurement, ROI estimate or production SLA is included.",
    "The handwritten examples are not a representative or held-out customer data set; passing them does not establish general production reliability."
  ]
}
