Predictika · Food lot release and shipment
An AI agent in a food and beverage quality or warehouse workflow proposes one action: release a finished lot to saleable stock, or ship a lot to a customer order. Before it is executed, the agent sends it to Predictika, which checks it against a declarative model of the lot release policy and returns a verdict, every reason and the figures it computed.
This validator models the Tallgrass Foods lot release policy, not just the scenarios shown below.
Any release or shipment that touches these rules is in scope, not only the scenarios pictured here. All SKUs, customers, sites, lots and policy figures are invented for illustration and are not any real company's policy; the model does not cover recalls, partial lot splits, labelling or regulatory release.
8 scenarios in 4 groups · each group runs from the agent’s first attempt to the outcome · click one to switch
Illustrative agent statement. The validator receives the structured request below.
Proposing agent: AI quality and warehouse agent (scripted)
Before sending, the agent must call Recorded run
What this means
Our assessment of what a typical rules-based CPQ (product rules, price rules and validation rules, as in Salesforce CPQ) does with the same cases. It is a judgment about effort and reliability, not a claim that nothing can be built.
| What the validator caught | Typical rules-based CPQ | Predictika |
|---|---|---|
| Shelf life at delivery that depends on lot age, transit and the customer | Only with workarounds Remaining shelf life is computed from the lot age, the transit days and the product, then compared with a different minimum for each customer, so the calculation and every customer threshold live in separate rules. | Lot age, transit time and the customer are in one request; the remaining shelf life is computed and compared on every call. |
| Allergen rules that depend on the previous run, the cleaning check and the product | Only with care Cross-contact needs the allergen of the last run, the allergen of this product and the cleaning record together, which a rule list handles as a growing matrix of combinations. | The previous run, the cleaning check and the product allergen are fields of one request, and a single rule covers every combination. |
| Approvals beside outright holds | Only with care An old lot at release and a rotation exception route to sign-off while the rest are holds, so they are separate rules that must not be mistaken for blocks. | Approvals and blocks are different findings in the same answer; the verdict is block if any hold exists, otherwise needs_approval. |
| Fixing one issue changes the inputs of the next | Only with workarounds Choosing a younger lot changes the shelf life, the customer minimum check, the rotation gap and the stated figure together; rules fire in a fixed order, so a planner fixes one error and meets the next. | Every rule is checked on every call, in whatever order the choices arrive, so the full list of holds returns at once. |
| Figures the agent states itself | Only with workarounds The shelf life remaining and the open ingredient lots are computed from several fields, so a separate rule must recompute them and compare them with the stated figures. | The stated figures are fields of the request and are compared with the computed ones on every call. |
Every rule is checked on every call, in any order the choices arrive; one problem never hides another. Blocking findings stop the request; approval findings need a person to sign off; everything else is computed.
| 1 | Ingredient lots still open: 1 of 5 ingredient lots have not been released; the finished lot cannot be released until all of them are. |
| 2 | Allergen cross-contact risk: the line last ran a nut product and the cleaning check is not recorded, so Oat Milk 12-pack cannot be released. |
| 3 | Stated open ingredient lots do not match: the agent stated 0 open; the validator counts 1. |
| 4 | Quality test not passed: the lab result for this lot is pending; a lot can only be released after it passes. |
| 5 | Temperature excursion: the lot reached 7.5 degrees C; Greek Yogurt 4-pack must stay at or below 4.0 degrees C. |
| 6 | Lot is older than the release guideline: 82.9 percent of shelf life remains at release; sign-off is needed below 85.0 percent. |
| 7 | Stated shelf life at release does not match: the agent stated 90.0 percent remaining; the validator computes 82.9 percent. |
| 8 | Lot is not released: the lot status is on_hold; only released lots can be shipped. |
| 9 | Quantity exceeds the lot: 2,400 cases requested but the lot holds 1,800. |
| 10 | Not enough shelf life for this customer: the lot would arrive with 65.7 percent of its shelf life left; Harborside Markets requires at least 70.0 percent. |
| 11 | Stated shelf life at delivery does not match: the agent stated 78.0 percent remaining; the validator computes 65.7 percent. |
| 12 | Not first-expired-first-out: the chosen lot is 3 days newer than the oldest eligible lot; sign-off is needed beyond 2 days. |
| 13 | Allergen conflict for the customer: Almond Granola Bars 24ct contains nuts and BrightStart School Foods has a nut-free contract. |
| 14 | Allergen conflict at the site: Almond Granola Bars 24ct contains nuts and Atlanta DC (certified nut-free) is a certified nut-free site. |
| 15 | Storage mismatch: Orange Juice 12 x 12oz is a chilled product and Columbus DC has no chilled storage. |
The recorded result of the validator for each scenario on this page: the request the AI agent sent, the verdict, and every finding, in the order they appear above.
The agent's request. Please ship 2,400 cases of Almond Granola Bars 24ct from this lot to Atlanta DC (certified nut-free) for a BrightStart School Foods order. The lot is on hold and holds 1,800 cases, it is 100 days old, transit takes 3 days and the oldest eligible lot is 106 days old, stating 80.0 percent shelf life remaining at delivery. It is ready to execute.
Verdict: Blocked.
The agent's request. Please ship 1,200 cases of Oat Milk 12-pack from this lot to Dallas DC for a BrightStart School Foods order. The lot is released and holds 2,400 cases, it is 20 days old, transit takes 3 days and the oldest eligible lot is 20 days old, stating 87.2 percent shelf life remaining at delivery. It is ready to execute.
Verdict: Allowed.
The agent's request. Please release a lot of 2,400 cases of Greek Yogurt 4-pack to saleable stock. The lab result is pending, the lot is 6 days old, its warmest recorded temperature is 7.5 degrees C, 4 of 5 ingredient lots are released, the line last ran nut and the cleaning check is not recorded, stating 90.0 percent shelf life remaining and 0 open ingredient lots. It is ready to execute.
Verdict: Blocked.
The agent's request. Please release a lot of 2,400 cases of Greek Yogurt 4-pack to saleable stock. The lab result is passed, the lot is 5 days old, its warmest recorded temperature is 3.5 degrees C, 5 of 5 ingredient lots are released, the line last ran nut and the cleaning check is recorded, stating 85.7 percent shelf life remaining and 0 open ingredient lots. It is ready to execute.
Verdict: Allowed.
The agent's request. Please ship 1,200 cases of Orange Juice 12 x 12oz from this lot to Columbus DC for a Greenleaf Natural Grocers order. The lot is quarantine and holds 2,400 cases, it is 10 days old, transit takes 2 days and the oldest eligible lot is 10 days old, stating 70.0 percent shelf life remaining at delivery. It is ready to execute.
Verdict: Blocked.
The agent's request. Please ship 1,200 cases of Orange Juice 12 x 12oz from this lot to Fresno DC for a Greenleaf Natural Grocers order. The lot is released and holds 2,400 cases, it is 2 days old, transit takes 1 days and the oldest eligible lot is 2 days old, stating 89.3 percent shelf life remaining at delivery. It is ready to execute.
Verdict: Allowed.
The agent's request. Please ship 2,400 cases of Greek Yogurt 4-pack from this lot to Dallas DC for a Harborside Markets order. The lot is released and holds 2,400 cases, it is 4 days old, transit takes 3 days and the oldest eligible lot is 7 days old, stating 80.0 percent shelf life remaining at delivery. It is ready to execute.
Verdict: Needs approval.
The agent's request. Please ship 2,400 cases of Greek Yogurt 4-pack from this lot to Dallas DC for a Harborside Markets order. The lot is released and holds 2,400 cases, it is 7 days old, transit takes 3 days and the oldest eligible lot is 7 days old, stating 71.4 percent shelf life remaining at delivery. It is ready to execute.
Verdict: Allowed.
The text of the narrated walkthrough, step by step.