Skip to content

Main content

Food Lot Identity Gap Tool

Compare explicit traceability identifiers without inferring food safety or release status.

Loading tool…

Description

Count literal lot mismatches, product mismatches and records matching both.

Food-safety records connect lots, samples, tests, labels and handling events. Consistent identifiers and reconciled quantities support record review, but do not establish safe food, complete traceability or valid regulatory approval.

Count literal lot mismatches, product mismatches and records matching both.

When to use this tool

Use Food Lot Identity Gap when you need a specified food-handling record or traceability diagnostic.

How to use the tool and how it works

  1. Enter lotIds, sourceLotIds, productIds, sourceProductIds. Keep parallel arrays aligned. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read lotMismatches, productMismatches, jointMatches. Use the output convention below.

Require aligned lot/product and source-ID arrays. Count literal lot mismatches, product mismatches and records matching both.1

Input fieldMeaning and unitsAccepted input
lotIdsLot IdsRequired. Array of text; maximum UTF-16 length 8192; maximum items 256.
sourceLotIdsSource Lot IdsRequired. Array of text; maximum UTF-16 length 8192; maximum items 256.
productIdsProduct IdsRequired. Array of text; maximum UTF-16 length 8192; maximum items 256.
sourceProductIdsSource Product IdsRequired. Array of text; maximum UTF-16 length 8192; maximum items 256.
Output fieldInterpretationReturned shape
lotMismatchesLot MismatchesRequired. Safe integer.
productMismatchesProduct MismatchesRequired. Safe integer.
jointMatchesJoint MatchesRequired. Safe integer.
json
{
  "input": {
    "lotIds": [
      "L1",
      "L2"
    ],
    "sourceLotIds": [
      "L1",
      "L1"
    ],
    "productIds": [
      "P1",
      "P2"
    ],
    "sourceProductIds": [
      "P1",
      "P2"
    ]
  },
  "output": {
    "lotMismatches": 1,
    "productMismatches": 0,
    "jointMatches": 1
  }
}

Limitations and assumptions

  • Rows are counted without deduplication or source authentication. Matching identifiers alone do not establish physical identity, traceability or safety.
  • Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.

Alternative or Complementary methods

Review the complete controlled records, actual product condition and applicable validated procedures. Authenticate sources and approvals rather than treating one matching token or balance as a safety verdict.

References

  1. Calculation and input contract: food-safety/food-lot-identity-gap — tool.io

Similar or alternative tools