Skip to main content

1. outbound-shipping is a bounded context of the warehouse fleet

Status: Accepted (bootstrap, 2026-11-05). Finalizes design draft OS-0001 (decisions D1 and D2 are FINAL, campaign decision log).

Context​

fulfillment-execution stops at PackageManifested. yard-management owns the trailer, the door work, the seal and the departure (YD-0004: the yard is the only recorder of physical facts). Nothing owns staging, what is on a load, the bill of lading, or the fact that goods left; an order's last state is Released.

Decision​

Create outbound-shipping, Supporting, subdomain wms, owning the OutboundLoad, ShippingPackage and BillOfLading aggregates.

Context map (every edge is event-fed; no synchronous sibling call):

NeighbourRelationshipEdge
fulfillment-executionCustomer/Supplierconsumes PackageManifested, PackageDiverted (warehouse.fulfillment.events); local copies only
process-path-managementConformistconsumes CPTScheduleChanged (the cutoff schedule copy)
facility-layoutConformistconsumes ZoneRegistered, LocationSlotRegistered (staging locations, zone to site)
dock-schedulingCustomer/Supplierconsumes DockAppointmentBooked, outbound direction only, cpt_id nullable
yard-managementCustomer/Supplierconsumes TrailerDocked, DoorWorkCompleted, TrailerDeparted (seal, departure); yard consumes LoadingStarted, LoadClosed, LoadReopened (deferred until the yard contract merges)
order-managementCustomer/Supplierconsumes ShipmentConfirmed, PackageMissedLoad (re-promise)
network-fulfillmentCustomer/Supplierconsumes ShipmentConfirmed, joins localOrderId; replaces the manual POST (OS-0004)
exception-managementCustomer/Supplierconsumes PackageMissedLoad, one case each

Explicitly excluded and why: transportation management (rating, tendering — a TMS concern, the network and carriers own it); pallets, load sequencing and master BOL (deferred, D4); sortation equipment and automated loading (automation out of scope, user decision 2026-11-05); anything before PackageManifested (fulfillment-execution) and the trailer/door/seal facts themselves (yard-management).

No live cross-context REST or MCP lookup: sibling data reaches this service only as event-fed local copies. No retailnetwork.* topic is consumed or produced; network-fulfillment stays the only channel to the network.

Consequences​

  • The fleet gets one owner for "what left on which truck".
  • Another service to run; it depends on yard-management for docking and departure facts (consumed per the yard contract, pinned in ADR 0006).
  • fulfillment-execution stays focused on task execution.