Skip to content

Case Splits and Missing Receipts: Exception Handling for Snack-Brand Order Agents

Repacked cartons, receipts from the wrong site, and absent paperwork are the moments a snack order Genie must stop, ask one precise question, and hold its work.

Author
Ignacio Malpartida · GTM Engineer
Published
Read time
5 min read
Case Splits and Missing Receipts: Exception Handling for Snack-Brand Order Agents
APP TIPS

The operating decision

Design the snack-brand agent’s stop conditions around ambiguous pack conversions, split deliveries, and missing receipts. The exception path should preserve a partially complete investigation and request the exact missing fact. A Genie must not fill a document gap with a plausible narrative or infer that a case split was approved because the totals appear close.

Explore the complete packaged food and snacks integration and automation hub for the systems and processes around this guide.

Summary card: Snack Genie stop rules for case splits and missing receipts

What this looks like in packaged food and snacks

A retailer receives loose units after a damaged case is repacked. Its receipt uses units, the shipment notice uses cases, and the warehouse note mentions a mixed carton. The agent can calculate a candidate equivalence, but it still needs the approved repack evidence before treating the loose units as fulfillment of the claimed case line.

Records, ownership, and update rules

RecordOwnerOperating rule
Ambiguous comparisonAgent reviewerRecord the competing item or unit interpretations and the evidence needed to choose.
Repack evidenceWarehouse supervisorOwn the approved carton or case split and its link to the original shipment.
Missing receipt requestCustomer operationsSpecify purchase order, shipment, location, and date to obtain the right document.
Resumed investigationCase ownerRetain the earlier result and rerun only the affected evidence chain after resolution.
Record ownership diagram: Ambiguous comparison, Repack evidence, Missing receipt request
Define the record owner and the rule before enabling updates.

Work through the process

  1. 01
    Detect uncertainty explicitly
    Define which missing identifiers, conversions, and receiving documents prevent a conclusion. Separate blocked facts from low-priority context so the agent can still return useful verified findings.
  2. 02
    Ask a resolvable question
    Request the exact repack record or receipt reference that would disambiguate the line. Avoid broad requests for all shipment paperwork when one missing relationship is the blocker.
  3. 03
    Preserve the partial packet
    Keep verified quantities, source links, and prior calculations while marking the unresolved branch. Another reviewer should be able to continue the case without repeating the whole investigation.
  4. 04
    Resume with version checks
    When evidence arrives, confirm that it belongs to the same shipment and revision. Recalculate the affected comparison and show what changed before seeking approval of the updated conclusion.
  5. 05
    Withhold the receipt, then supply one from the wrong location
    Run the repacked-carton scenario with the retailer receipt removed from Postgres. The Genie must return a named request stating the purchase order, shipment, location, and date it needs, and its packet must carry no delivery conclusion. A packet that treats the loose units as fulfillment of the case line without repack evidence stops the rollout. Then attach a receipt for a different delivery location that otherwise looks plausible. The Genie should reject the match and ask for the correct site's document. Supply the right receipt last and reopen the case; the resumed packet must show which fact arrived and which comparison it changed, while the earlier verified lines stay intact.
5-step operating sequence: Snack Genie stop rules for case splits and missing receipts
Follow the operating sequence; unresolved exceptions return to a responsible reviewer.

Handle the exceptions explicitly

Receipt belongs to another location

Reject the proposed match and request the correct destination evidence.

Pack factor changed mid-order

Apply the approved effective rule by line or stop for product review.

Uploaded document contradicts the ERP

Present the conflict to the record owner; do not silently choose the most recent-looking document.

What to verify before expanding

  • A missing receipt produces a named evidence request rather than a fabricated conclusion.
  • A resumed case shows which new fact changed the result.
  • A receipt for another delivery location fails the claim match even when the item, date, and quantity look plausible.
  • Resolving a repack factor recalculates only the affected lines and preserves the previously reviewed evidence for the other shipments.
Book a demo for packaged food and snacks integration and automation

Connect this process to the rest of your operation

Explore Stacksync AI agents (Genies) and scope the records and actions against your actual systems. Book a demo with a real ambiguous comparison example and the exception your team handles most often, for example receipt belongs to another location.

The shared architecture guide covers record matching, ownership, and recovery across systems.

Technical references

Book a demo for packaged food and snacks integration and automation

FAQ

Frequently asked questions

When should the agent escalate instead of retrying?
Escalate the moment progress depends on a business decision or on evidence no system holds. Retrying the same lookup cannot approve a pack conversion or produce a delivery receipt that was never filed. A second pass is only worth running after new evidence arrives, and even then the Genie should rerun the affected branch, not the whole investigation.
Should one Genie job handle both the first pass and the resumed case?
Yes, one job with two entry points. The first pass starts from the claim; the resumed pass starts from the stored partial packet and the new document's reference. Keeping them in one job means the same evidence rules and stop conditions apply on both passes, so a resumed case cannot quietly relax a check that blocked the original. Version the packet on every pass so the reviewer can diff them.
Is a partial packet safe to share with the retailer?
Not as it stands. The partial packet is an internal working record: it lists candidate interpretations, unverified quantities, and the brand's own open questions. Sharing that invites the retailer to argue from the brand's uncertainty. The Genie never sends anything outside the company; the case owner decides what leaves, and only after the blocked branch is resolved and the conclusion is approved. Send the retailer the evidence request, not the packet.

About the author

Ignacio Malpartida
Ignacio Malpartida
GTM Engineer

Ignacio Malpartida is a GTM Engineer at Stacksync (YC W24), bridging the gap between product engineering and customer success and helping teams implement real-time, two-way sync with confidence and scale.

All posts by Ignacio Malpartida

About Stacksync

Stacksync powers real-time, two-way sync between CRMs, ERPs, and databases. Engineers sync data at scale and automate workflows, not dirty API plumbing.

Coworkers laughing in front of a laptop in a casual office setting

You just read how it should work.
See it run on your own data.