Skip to main content

Shipment Entity Ontology

Engineering Supply-Chain Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 01 December 2026
Audio Overview
KIRETH RESEARCH — SEMANTIC LIBRARY AI CORE / ENTITY GRAPH / ENGINEERING SUPPLY CHAIN ENTITIES SHIPMENT ENTITY ONTOLOGY — FLOW ALGEBRA Version: 1.0 | Encoding: UTF-8 | Date: 2026-12-01 Canonical reference: https://kirethresearch.org/booksai-core/entity-graph/engineering-entities/engineering-supply-chain-entities/shipment-entity-ontology.html Status: Proposed formal representation; live page not verified.

1.  ENTITY DEFINITION Shipment := identified movement of goods between defined locations under a transport arrangement. A shipment may fulfil multiple order lines and may be delivered in stages. Shipment, consignment, package, delivery and purchase order are distinct entities. S = (id, revision, consignor, consignee, origin, destination, carrier, lines, legs, events, evidence, state). Identity is persistent across tracking updates; revisions preserve history. Tracking numbers are scoped to their issuing carrier.

2.  TYPED ENTITY GRAPH G = (V,E), where V contains Shipment, ShipmentLine, Package, Carrier, Location, TransportLeg, PurchaseOrderLine, Delivery, MaterialBatch, SuppliedComponent, CustodyEvent and EvidenceRecord. Shipment → contains → ShipmentLine Shipment → transportedBy → Carrier Shipment → follows → TransportLeg ShipmentLine → allocatedTo → PurchaseOrderLine ShipmentLine → identifies → MaterialBatch or SuppliedComponent Shipment → realisedBy → Delivery CustodyEvent → supportedBy → EvidenceRecord Relationships may be many-to-many; allocation records carry quantities and units.

3.  FLOW COMPOSITION F_ship = F_receipt ∘ F_transport ∘ F_dispatch ∘ F_pack ∘ F_allocate. Composition is right-to-left; each transition requires its predecessor’s output and applicable authorisation. Failed guards produce an exception record rather than silently advancing state. F_allocate: approved demand × available stock → shipment allocation. F_dispatch: packed goods × dispatch authority → dispatched shipment. F_transport: dispatched shipment × tracking events → updated transit state. F_receipt: arrival × receipt evidence → delivery record. Physical arrival does not imply technical acceptance.

4.  QUANTITY AND CONSERVATION ALGEBRA For each item, batch and compatible unit, q_dispatch = q_transit + q_received + q_returned + q_loss, using mutually exclusive current dispositions of dispatched goods. q_received = q_accepted + q_rejected + q_pendingInspection. All quantities are non-negative. Convert units only using documented conversion factors. Unexplained residuals are discrepancies, not assumed losses. For order line i, q_open(i) = max(0, q_authorised(i) − q_accepted(i)). Overdelivery = max(0, q_accepted(i) − q_authorised(i)). Use unique allocation identifiers to prevent double counting across split deliveries.

5.  TRANSPORT AND TEMPORAL ALGEBRA A route is an ordered sequence of legs L = (l1,…,ln). Each leg records origin, destination, carrier, departure and arrival. For consecutive legs, destination(lj) = origin(lj+1), unless an explicit transfer leg bridges them. T_actual = t_finalArrival − t_dispatch; delay = max(0, t_finalArrival − t_due). Predicted arrival and observed arrival are distinct. Store time zone, event time and recording time. Missing timestamps remain unknown.

6.  CHAIN OF CUSTODY AND PROVENANCE CustodyEvent = (eventID, shipmentID, goodsScope, fromParty, toParty, location, eventTime, evidenceID). A custody transfer requires an identified goods scope and evidence of handover. Unconfirmed handovers remain pending. Trace(batch) = all reachable source, transformation, shipment and receipt records linked by typed provenance edges. A document hash supports integrity checking but does not establish truth or authenticity without trusted provenance.

7.  CONFIGURATION AND QUALITY CONSTRAINTS Applicable(line,t) selects the authorised specification revision and effectivity for the line at time t. Conform(line) = identityMatch ∧ revisionMatch ∧ requiredEvidence ∧ inspectionPass, evaluated under the applicable acceptance plan. Use three-valued logic: true, false, unknown. Missing mandatory evidence yields unknown, not true. Release requires all mandatory guards to be true or an explicitly authorised concession within its scope. Temperature, shock and handling limits apply only where specified; excursions trigger review.

8.  LIFECYCLE AND EXCEPTION FLOW Planned → Allocated → Packed → Dispatched → InTransit → Arrived → ReceiptRecorded → Closed. Exception branches: Held, Delayed, Damaged, Lost, Returned, Cancelled. Partial receipt is tracked at line level, independently of transport state. Cancellation after dispatch requires a controlled return or diversion process, not deletion of shipment history. Close only when every dispatched quantity is reconciled and required exceptions are resolved or formally transferred to an accountable process.

9.  CHANGE AND IMPACT PROPAGATION ΔS = (addedRecords, supersededRecords, changedAttributes). A change to destination, carrier, quantity or specification triggers review of affected orders, legs, documents and downstream commitments. Let D be a finite directed dependency graph with edges oriented from changed entity to affected entity. X0 = directly changed entities; X(k+1) = Xk ∪ successors_D(Xk). Stop when X(k+1) = Xk. Monotonic set expansion terminates on a finite graph in at most |V| strict expansions. Reachability identifies review candidates, not proven failures.

10. PERFORMANCE AND RISK OTD = on-time eligible deliveries / eligible deliveries with known due and arrival dates. Report denominator and excluded unknown records. OTIF additionally requires the agreed quantity criterion at the agreed deadline. Risk record = (hazard, affectedScope, likelihood, consequence, controls, evidence, owner). Where calibrated probability and monetary consequence exist, expected loss = probability × consequence. Do not treat ordinal risk scores as probabilities or add dependent risks without a model.

11. COHERENCE INVARIANTS I1: Shipment identifiers are unique within their namespace. I2: Each shipment line has an identified item and quantity unit. I3: Allocations reference valid order lines or an explicitly authorised non-order movement. I4: Dispatch and receipt records remain auditable; corrections supersede rather than erase. I5: Quantity balances reconcile by item and batch. I6: Receipt, acceptance and custody are separate facts. I7: Unknown evidence cannot be inferred as compliance. I8: Route discontinuities and contradictory events generate findings. I9: Authorised exceptions retain scope, reason, approver and validity period.

12. AI SEARCH AND REASONING FLOWS Intent → entity resolution → typed graph retrieval → temporal/effectivity filtering → constraint evaluation → evidence-backed answer. Aliases: shipment, freight movement, dispatch, goods in transit, transport consignment. These are retrieval terms, not unconditional identity equivalences. Query: Which shipments contain batch B? Traverse ShipmentLine identifies MaterialBatch, then inverse contains. Query: Which orders are affected by delayed shipment S? Traverse allocatedTo and dependency edges; report affected quantities and due dates. Query: Has S been accepted? Retrieve receipt and inspection records separately; report unknown if missing. Return source record IDs, timestamps, revision and uncertainty with each derived claim.

13. WORKED EXAMPLE (ILLUSTRATIVE) Order PO-01 authorises 100 units. Shipment S-01 dispatches 60 units of batch B-01. At snapshot t, 40 have arrived and 20 remain in transit. Of the 40 received, 35 are accepted, 3 rejected and 2 pending inspection. Dispatch balance: 60 = 20 + 40 + 0 + 0. Receipt balance: 40 = 35 + 3 + 2. Open order quantity: 100 − 35 = 65 units (assuming no other accepted deliveries). The shipment is partially received, not closed. A delay affecting the remaining 20 units triggers review of the associated order and production dependencies. The rejected 3 units require disposition; the pending 2 cannot be counted as accepted.

14. SEMANTIC BOUNDARY AND SUMMARY Shipment links physical movement, commercial allocation and evidence without collapsing these into one state. The proposed algebra supports traceability, reconciliation and controlled reasoning; it is not a transport certification or an executable standard. Related ontology concepts: Delivery Entity, Purchase Order Entity, Supplier Entity, Supplied Material, Supplied Component, Engineering Procurement and Configuration Record. END OF FLOW ALGEBRA
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ