﻿# How a logistics agent reconciles partial shipments and late receiving events

Build a logistics reconciliation worker that distinguishes shipment and receiving records, accounts for event timing, and routes quantity discrepancies.

Author: Retrivium team
Updated: 2026-11-08
Canonical URL: https://retrivium.ai/journal/startup-worker-shipment-quantity-reconciliation/
Language: en

A logistics startup can start with a worker that reconciles one shipment lane between a supplier and a warehouse. The job combines dispatch, carrier and receiving records so operators can find missing quantities. Give each unresolved difference a traceable case rather than inferring a single final status for the whole purchase order.

## Read business step and event timing

The GS1 EPCIS standard distinguishes when an event occurred from when a repository recorded it. The GS1 vocabulary identifies shipping and receiving as distinct steps. Preserve the business step, event time, record time where available and location. Receiving confirmation may reach the system after other events with a later occurrence time. [GS1 EPCIS standard](https://ref.gs1.org/standards/epcis/2.0.0/) · [GS1 shipping vocabulary](https://ref.gs1.org/cbv/BizStep-shipping) · [GS1 receiving vocabulary](https://ref.gs1.org/cbv/BizStep-receiving).

## Reconcile the specific part of the order

Suppose a supplier ships 60 units in one load and 40 in another. The warehouse records 58 from the first load. Record the discrepancy of 2 against that shipment and leave the second load in its actual state. Match units and package identifiers before suggesting an adjustment. A carrier scan and item count are different observations.

## Distinguish evidence from responsibility

Ask the warehouse to verify the receiving count, the carrier for missing package information, and the supplier for dispatch records. Preserve each statement with its source and time. Avoid assigning liability based on an incomplete timeline. An authorized logistics owner reviews the evidence and decides how to pursue or resolve the case.

## Reopen on corrections and duplicate scans

A late count may correct a previous entry or represent an additional delivery. Link corrections to the original record where the system supports it, and keep the event ID to avoid processing an identical observation twice. If the new event changes an approved adjustment, reopen the case for the designated warehouse operator.

## Measure unresolved shortages and incorrect adjustments

Compare time to a review-ready discrepancy, incorrect adjustments, unresolved shortages and operator minutes. Use test events with duplicate scans, late receipts and split shipments. Limit the pilot to one lane and retain manual reconciliation access. The owner should be able to confirm which quantity is uncertain and why for every unresolved case.

## Related reading

- [Historical backfills and live features: define which writer owns the handoff](/journal/dq-backfill-live-stream-handoff/)
- [Shopify webhook delivery order differs from trigger time](/journal/guide-shopify-webhook-trigger-time-order/)
