Event contract for the outbound-shipping bounded context (WMS subdomain): staging, the outbound load, ship-confirm on the trailer's physical departure, and the bill of lading (ADR 0001, ADR 0002, ADR 0005).
Published. Three aggregates raise thirteen events, published to
warehouse.outbound-shipping.events through a transactional outbox:
the aggregate row and its already-encoded events are written in ONE
database transaction and a relay drains them to Kafka (at-least-once; the
CloudEvents id is stored with the outbox row, so a retry republishes
the same id). Every payload carries the aggregate version AFTER the
change, so consumers can reject out-of-order deliveries.
Analytics. Every published event is ALSO written, in the same
transaction and under the same id, to
warehouse.outbound-shipping.analytics with
dataschema urn:warehouse:outbound-shipping:analytics:<EventName>:v1.
That stream is not an integration contract: only this service's own
projector consumes it. Other contexts keep reading
warehouse.outbound-shipping.events.
Consumed (ADR 0003, ADR 0005). PackageManifested and
PackageDiverted from fulfillment-execution; CPTScheduleChanged from
process-path-management; ZoneRegistered and LocationSlotRegistered
from facility-layout; DockAppointmentBooked from dock-scheduling
(pinned from its origin/feature/service until that contract merges);
TrailerDocked, DoorWorkCompleted and TrailerDeparted from
yard-management (pinned to its merged contract,
contracts/yard-management.asyncapi.yaml, ADR 0010 there). Each feeds a durable local copy. The consumed
messages below are the producers' own contracts, decoded independently
here and never imported.
Envelope (mandatory). CloudEvents 1.0, structured content mode, Kafka
header content-type: application/cloudevents+json; charset=UTF-8.
type = com.warehouse.wms.outbound-shipping.<entity>.<EventName>
where <entity> is the raising aggregate lowercase with no separators:
outboundload, shippingpackage, billoflading. Kafka key = aggregate
id. Dispatch on the full type, ignore unknown types, dedupe on id.
Fleet-shared Kafka broker (host supplied by the deployment environment).
This service's integration topic. Written by the outbox relay; key =
aggregate id, so all events of one load (or package, or BOL) stay
ordered on one partition. Every message carries the CloudEvents
content-type header. Dispatch on the full type, ignore unknown
types, dedupe on id.
Receive outbound-shipping events.
Subscribe to the outbound shipping facts. Route on the full type
(com.warehouse.wms.outbound-shipping.<entity>.<EventName>).
ShipmentConfirmed is the fleet's "this actually shipped" fact
(ADR 0002, ADR 0004); PackageMissedLoad drives exception cases and
re-promising.
Available only on servers:
Accepts one of the following messages:
A load was planned for one cutoff and ship method.
type = com.warehouse.wms.outbound-shipping.outboundload.LoadPlanned;
subject and key = the load id. Raised automatically when the first
package of a (site, cpt, date, ship method) manifests and no open
load exists for that key (PlanLoadFromCutoff policy).
The first package of the 16:00 ground cutoff plans load load-7f3a.
{
"specversion": "1.0",
"id": "3f1d2c3b-4a5e-4b7c-8d9e-0a1b2c3d4e01",
"source": "/warehouse/outbound-shipping",
"type": "com.warehouse.wms.outbound-shipping.outboundload.LoadPlanned",
"subject": "load-7f3a",
"time": "2026-11-06T13:02:11Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:outbound-shipping:events:LoadPlanned:v1",
"data": {
"load_id": "load-7f3a",
"site_id": "SITE-1",
"cpt_id": "cpt-1600",
"operating_date": "2026-11-06",
"ship_method": "STDOUT-2DAY",
"cutoff": "2026-11-06T16:00:00Z",
"version": 1
}
}
An outbound dock appointment assigned the load's door.
type =
com.warehouse.wms.outbound-shipping.outboundload.LoadDoorAssigned;
subject and key = the load id. DoorFromAppointment policy: the
appointment names the cpt; appointment_id is that appointment.
Appointment appt-2211 assigns door D04 to load-7f3a.
{
"specversion": "1.0",
"id": "3f1d2c3b-4a5e-4b7c-8d9e-0a1b2c3d4e02",
"source": "/warehouse/outbound-shipping",
"type": "com.warehouse.wms.outbound-shipping.outboundload.LoadDoorAssigned",
"subject": "load-7f3a",
"time": "2026-11-06T13:20:00Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:outbound-shipping:events:LoadDoorAssigned:v1",
"data": {
"load_id": "load-7f3a",
"site_id": "SITE-1",
"door_code": "D04",
"appointment_id": "appt-2211",
"version": 2
}
}
Loading began at the assigned door with the docked trailer.
type =
com.warehouse.wms.outbound-shipping.outboundload.LoadingStarted;
subject and key = the load id. Requires a door AND a docked trailer
(ErrTrailerNotDocked). yard-management starts its outbound door
work on it (wave 6.4, deferred until the yard contract merges).
Trailer trl-91 docks at D04 and loading starts.
{
"specversion": "1.0",
"id": "3f1d2c3b-4a5e-4b7c-8d9e-0a1b2c3d4e03",
"source": "/warehouse/outbound-shipping",
"type": "com.warehouse.wms.outbound-shipping.outboundload.LoadingStarted",
"subject": "load-7f3a",
"time": "2026-11-06T14:05:00Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:outbound-shipping:events:LoadingStarted:v1",
"data": {
"load_id": "load-7f3a",
"site_id": "SITE-1",
"door_code": "D04",
"trailer_id": "trl-91",
"started_at": "2026-11-06T14:05:00Z",
"version": 3
}
}
Every package is loaded or short-shipped; the load is closed.
type =
com.warehouse.wms.outbound-shipping.outboundload.LoadClosed;
subject and key = the load id. package_count is the loaded count,
short_shipped_count the deliberate left-offs with reasons.
yard-management completes its outbound door work on it.
Load-7f3a closes with 40 loaded packages and one short-ship.
{
"specversion": "1.0",
"id": "3f1d2c3b-4a5e-4b7c-8d9e-0a1b2c3d4e04",
"source": "/warehouse/outbound-shipping",
"type": "com.warehouse.wms.outbound-shipping.outboundload.LoadClosed",
"subject": "load-7f3a",
"time": "2026-11-06T15:41:00Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:outbound-shipping:events:LoadClosed:v1",
"data": {
"load_id": "load-7f3a",
"site_id": "SITE-1",
"door_code": "D04",
"trailer_id": "trl-91",
"package_count": 40,
"short_shipped_count": 1,
"closed_at": "2026-11-06T15:41:00Z",
"version": 4
}
}
A supervisor reopened a closed load for more loading.
type =
com.warehouse.wms.outbound-shipping.outboundload.LoadReopened;
subject and key = the load id. A SHIP_CONFIRMED load is never
reopened (ErrLoadConfirmed). yard-management reopens the door work
on it.
Load-7f3a reopens for a late package.
{
"specversion": "1.0",
"id": "3f1d2c3b-4a5e-4b7c-8d9e-0a1b2c3d4e05",
"source": "/warehouse/outbound-shipping",
"type": "com.warehouse.wms.outbound-shipping.outboundload.LoadReopened",
"subject": "load-7f3a",
"time": "2026-11-06T15:44:00Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:outbound-shipping:events:LoadReopened:v1",
"data": {
"load_id": "load-7f3a",
"site_id": "SITE-1",
"reopened_at": "2026-11-06T15:44:00Z",
"version": 5
}
}
A planned load was cancelled before loading.
type =
com.warehouse.wms.outbound-shipping.outboundload.LoadCancelled;
subject and key = the load id. Only a PLANNED load can be cancelled.
The cutoff was withdrawn before any package loaded.
{
"specversion": "1.0",
"id": "3f1d2c3b-4a5e-4b7c-8d9e-0a1b2c3d4e06",
"source": "/warehouse/outbound-shipping",
"type": "com.warehouse.wms.outbound-shipping.outboundload.LoadCancelled",
"subject": "load-9c2b",
"time": "2026-11-06T12:10:00Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:outbound-shipping:events:LoadCancelled:v1",
"data": {
"load_id": "load-9c2b",
"site_id": "SITE-1",
"cancelled_at": "2026-11-06T12:10:00Z",
"version": 2
}
}
The trailer left with a closed load; the shipment is a fact.
type =
com.warehouse.wms.outbound-shipping.outboundload.ShipmentConfirmed;
subject and key = the load id. Raised on TrailerDeparted for a
CLOSED load (ADR 0002): the goods physically left. orders lists
every distinct source_order_id of the shipped packages (ADR 0003);
a package manifested without one is excluded. order-management marks
orders Shipped/PartiallyShipped (D7) and network-fulfillment joins
localOrderId (ADR 0004).
Trailer trl-91 departs with load-7f3a, seal SL-4471, two orders.
{
"specversion": "1.0",
"id": "3f1d2c3b-4a5e-4b7c-8d9e-0a1b2c3d4e07",
"source": "/warehouse/outbound-shipping",
"type": "com.warehouse.wms.outbound-shipping.outboundload.ShipmentConfirmed",
"subject": "load-7f3a",
"time": "2026-11-06T16:02:00Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:outbound-shipping:events:ShipmentConfirmed:v1",
"data": {
"load_id": "load-7f3a",
"site_id": "SITE-1",
"cpt_id": "cpt-1600",
"carrier": "STDOUT",
"trailer_id": "trl-91",
"seal_number": "SL-4471",
"departed_at": "2026-11-06T16:01:30Z",
"orders": [
{
"order_id": "order-88421"
},
{
"order_id": "order-88422"
}
],
"version": 6
}
}
A manifested package was staged at a Staging location.
type =
com.warehouse.wms.outbound-shipping.shippingpackage.PackageStaged;
subject and key = the package id. The location is a facility-layout
Staging location of the package's site.
pkg-1029 stages at STG-D04-A.
{
"specversion": "1.0",
"id": "3f1d2c3b-4a5e-4b7c-8d9e-0a1b2c3d4e08",
"source": "/warehouse/outbound-shipping",
"type": "com.warehouse.wms.outbound-shipping.shippingpackage.PackageStaged",
"subject": "pkg-1029",
"time": "2026-11-06T14:20:00Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:outbound-shipping:events:PackageStaged:v1",
"data": {
"package_id": "pkg-1029",
"load_id": "load-7f3a",
"site_id": "SITE-1",
"staging_location": "STG-D04-A",
"staged_at": "2026-11-06T14:20:00Z",
"version": 2
}
}
A package was loaded onto its load through the load's door.
type =
com.warehouse.wms.outbound-shipping.shippingpackage.PackageLoaded;
subject and key = the package id.
pkg-1029 loads through door D04 onto load-7f3a.
{
"specversion": "1.0",
"id": "3f1d2c3b-4a5e-4b7c-8d9e-0a1b2c3d4e09",
"source": "/warehouse/outbound-shipping",
"type": "com.warehouse.wms.outbound-shipping.shippingpackage.PackageLoaded",
"subject": "pkg-1029",
"time": "2026-11-06T14:48:00Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:outbound-shipping:events:PackageLoaded:v1",
"data": {
"package_id": "pkg-1029",
"load_id": "load-7f3a",
"site_id": "SITE-1",
"loaded_at": "2026-11-06T14:48:00Z",
"version": 3
}
}
A loaded package came back off the load before ship-confirm.
type =
com.warehouse.wms.outbound-shipping.shippingpackage.PackageUnloaded;
subject and key = the package id. reason is the operator's reason,
omitted when none was given. Impossible after ship-confirm
(ErrAlreadyShipped).
pkg-1029 comes back off with a damaged carton.
{
"specversion": "1.0",
"id": "3f1d2c3b-4a5e-4b7c-8d9e-0a1b2c3d4e0a",
"source": "/warehouse/outbound-shipping",
"type": "com.warehouse.wms.outbound-shipping.shippingpackage.PackageUnloaded",
"subject": "pkg-1029",
"time": "2026-11-06T15:00:00Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:outbound-shipping:events:PackageUnloaded:v1",
"data": {
"package_id": "pkg-1029",
"load_id": "load-7f3a",
"site_id": "SITE-1",
"unloaded_at": "2026-11-06T15:00:00Z",
"reason": "damaged-carton",
"version": 4
}
}
A package was not loaded by its cutoff or by departure.
type =
com.warehouse.wms.outbound-shipping.shippingpackage.PackageMissedLoad;
subject and key = the package id. Raised at most ONCE per package and
load (the flagged fact is remembered: a re-run sweep or a repeated
departure publishes nothing new). source_order_id is omitted when
the manifest carried none (ADR 0003). exception-management opens a
case; order-management re-promises.
The 16:00 cutoff passes with pkg-2055 still staged.
{
"specversion": "1.0",
"id": "3f1d2c3b-4a5e-4b7c-8d9e-0a1b2c3d4e0b",
"source": "/warehouse/outbound-shipping",
"type": "com.warehouse.wms.outbound-shipping.shippingpackage.PackageMissedLoad",
"subject": "pkg-2055",
"time": "2026-11-06T16:00:00Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:outbound-shipping:events:PackageMissedLoad:v1",
"data": {
"package_id": "pkg-2055",
"load_id": "load-7f3a",
"site_id": "SITE-1",
"source_order_id": "order-88423",
"cutoff": "2026-11-06T16:00:00Z",
"detected_at": "2026-11-06T16:00:00Z",
"version": 2
}
}
The shipping document of one confirmed load was issued.
type =
com.warehouse.wms.outbound-shipping.billoflading.BillOfLadingIssued;
subject and key = the BOL number. Issued exactly once per
SHIP_CONFIRMED load (ErrBolAlreadyIssued) with the seal the
departure carried (ErrSealMissing without one).
BOL for load-7f3a, 40 packages, 412.5 kg.
{
"specversion": "1.0",
"id": "3f1d2c3b-4a5e-4b7c-8d9e-0a1b2c3d4e0c",
"source": "/warehouse/outbound-shipping",
"type": "com.warehouse.wms.outbound-shipping.billoflading.BillOfLadingIssued",
"subject": "BOL-2026-11-06-0042",
"time": "2026-11-06T16:02:01Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:outbound-shipping:events:BillOfLadingIssued:v1",
"data": {
"bol_number": "BOL-2026-11-06-0042",
"load_id": "load-7f3a",
"site_id": "SITE-1",
"carrier": "STDOUT",
"trailer_id": "trl-91",
"seal_number": "SL-4471",
"package_count": 40,
"total_weight_g": 412500,
"issued_at": "2026-11-06T16:02:01Z",
"version": 1
}
}
An issued bill of lading was voided.
type =
com.warehouse.wms.outbound-shipping.billoflading.BillOfLadingVoided;
subject and key = the BOL number. A supervisor decision (e.g. a
re-issued document); the shipment itself is not undone.
The carrier rejected the print; the document is voided for re-issue.
{
"specversion": "1.0",
"id": "3f1d2c3b-4a5e-4b7c-8d9e-0a1b2c3d4e0d",
"source": "/warehouse/outbound-shipping",
"type": "com.warehouse.wms.outbound-shipping.billoflading.BillOfLadingVoided",
"subject": "BOL-2026-11-06-0042",
"time": "2026-11-06T16:30:00Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:outbound-shipping:events:BillOfLadingVoided:v1",
"data": {
"bol_number": "BOL-2026-11-06-0042",
"load_id": "load-7f3a",
"site_id": "SITE-1",
"reason": "reprint-for-carrier",
"voided_at": "2026-11-06T16:30:00Z",
"version": 2
}
}
This service's own analytics stream, written by the SAME transactional
outbox as the integration topic: every published event appears here
too, under the SAME CloudEvents id and type, with only the
dataschema stream segment different
(urn:warehouse:outbound-shipping:analytics:<EventName>:v1). It is
NOT an integration contract: the only consumer is this service's own
projector. Other contexts keep reading
warehouse.outbound-shipping.events.
Receive the analytics twin of every outbound-shipping event.
Payloads are byte-for-byte the integration payloads; only the
dataschema stream segment differs. Consumed by this service's
projector (fixed consumer group) to fold the load funnel and
adherence read models.
Available only on servers:
Accepts one of the following messages:
A load was planned for one cutoff and ship method.
type = com.warehouse.wms.outbound-shipping.outboundload.LoadPlanned;
subject and key = the load id. Raised automatically when the first
package of a (site, cpt, date, ship method) manifests and no open
load exists for that key (PlanLoadFromCutoff policy).
The first package of the 16:00 ground cutoff plans load load-7f3a.
{
"specversion": "1.0",
"id": "3f1d2c3b-4a5e-4b7c-8d9e-0a1b2c3d4e01",
"source": "/warehouse/outbound-shipping",
"type": "com.warehouse.wms.outbound-shipping.outboundload.LoadPlanned",
"subject": "load-7f3a",
"time": "2026-11-06T13:02:11Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:outbound-shipping:events:LoadPlanned:v1",
"data": {
"load_id": "load-7f3a",
"site_id": "SITE-1",
"cpt_id": "cpt-1600",
"operating_date": "2026-11-06",
"ship_method": "STDOUT-2DAY",
"cutoff": "2026-11-06T16:00:00Z",
"version": 1
}
}
An outbound dock appointment assigned the load's door.
type =
com.warehouse.wms.outbound-shipping.outboundload.LoadDoorAssigned;
subject and key = the load id. DoorFromAppointment policy: the
appointment names the cpt; appointment_id is that appointment.
Appointment appt-2211 assigns door D04 to load-7f3a.
{
"specversion": "1.0",
"id": "3f1d2c3b-4a5e-4b7c-8d9e-0a1b2c3d4e02",
"source": "/warehouse/outbound-shipping",
"type": "com.warehouse.wms.outbound-shipping.outboundload.LoadDoorAssigned",
"subject": "load-7f3a",
"time": "2026-11-06T13:20:00Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:outbound-shipping:events:LoadDoorAssigned:v1",
"data": {
"load_id": "load-7f3a",
"site_id": "SITE-1",
"door_code": "D04",
"appointment_id": "appt-2211",
"version": 2
}
}
Loading began at the assigned door with the docked trailer.
type =
com.warehouse.wms.outbound-shipping.outboundload.LoadingStarted;
subject and key = the load id. Requires a door AND a docked trailer
(ErrTrailerNotDocked). yard-management starts its outbound door
work on it (wave 6.4, deferred until the yard contract merges).
Trailer trl-91 docks at D04 and loading starts.
{
"specversion": "1.0",
"id": "3f1d2c3b-4a5e-4b7c-8d9e-0a1b2c3d4e03",
"source": "/warehouse/outbound-shipping",
"type": "com.warehouse.wms.outbound-shipping.outboundload.LoadingStarted",
"subject": "load-7f3a",
"time": "2026-11-06T14:05:00Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:outbound-shipping:events:LoadingStarted:v1",
"data": {
"load_id": "load-7f3a",
"site_id": "SITE-1",
"door_code": "D04",
"trailer_id": "trl-91",
"started_at": "2026-11-06T14:05:00Z",
"version": 3
}
}
Every package is loaded or short-shipped; the load is closed.
type =
com.warehouse.wms.outbound-shipping.outboundload.LoadClosed;
subject and key = the load id. package_count is the loaded count,
short_shipped_count the deliberate left-offs with reasons.
yard-management completes its outbound door work on it.
Load-7f3a closes with 40 loaded packages and one short-ship.
{
"specversion": "1.0",
"id": "3f1d2c3b-4a5e-4b7c-8d9e-0a1b2c3d4e04",
"source": "/warehouse/outbound-shipping",
"type": "com.warehouse.wms.outbound-shipping.outboundload.LoadClosed",
"subject": "load-7f3a",
"time": "2026-11-06T15:41:00Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:outbound-shipping:events:LoadClosed:v1",
"data": {
"load_id": "load-7f3a",
"site_id": "SITE-1",
"door_code": "D04",
"trailer_id": "trl-91",
"package_count": 40,
"short_shipped_count": 1,
"closed_at": "2026-11-06T15:41:00Z",
"version": 4
}
}
A supervisor reopened a closed load for more loading.
type =
com.warehouse.wms.outbound-shipping.outboundload.LoadReopened;
subject and key = the load id. A SHIP_CONFIRMED load is never
reopened (ErrLoadConfirmed). yard-management reopens the door work
on it.
Load-7f3a reopens for a late package.
{
"specversion": "1.0",
"id": "3f1d2c3b-4a5e-4b7c-8d9e-0a1b2c3d4e05",
"source": "/warehouse/outbound-shipping",
"type": "com.warehouse.wms.outbound-shipping.outboundload.LoadReopened",
"subject": "load-7f3a",
"time": "2026-11-06T15:44:00Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:outbound-shipping:events:LoadReopened:v1",
"data": {
"load_id": "load-7f3a",
"site_id": "SITE-1",
"reopened_at": "2026-11-06T15:44:00Z",
"version": 5
}
}
A planned load was cancelled before loading.
type =
com.warehouse.wms.outbound-shipping.outboundload.LoadCancelled;
subject and key = the load id. Only a PLANNED load can be cancelled.
The cutoff was withdrawn before any package loaded.
{
"specversion": "1.0",
"id": "3f1d2c3b-4a5e-4b7c-8d9e-0a1b2c3d4e06",
"source": "/warehouse/outbound-shipping",
"type": "com.warehouse.wms.outbound-shipping.outboundload.LoadCancelled",
"subject": "load-9c2b",
"time": "2026-11-06T12:10:00Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:outbound-shipping:events:LoadCancelled:v1",
"data": {
"load_id": "load-9c2b",
"site_id": "SITE-1",
"cancelled_at": "2026-11-06T12:10:00Z",
"version": 2
}
}
The trailer left with a closed load; the shipment is a fact.
type =
com.warehouse.wms.outbound-shipping.outboundload.ShipmentConfirmed;
subject and key = the load id. Raised on TrailerDeparted for a
CLOSED load (ADR 0002): the goods physically left. orders lists
every distinct source_order_id of the shipped packages (ADR 0003);
a package manifested without one is excluded. order-management marks
orders Shipped/PartiallyShipped (D7) and network-fulfillment joins
localOrderId (ADR 0004).
Trailer trl-91 departs with load-7f3a, seal SL-4471, two orders.
{
"specversion": "1.0",
"id": "3f1d2c3b-4a5e-4b7c-8d9e-0a1b2c3d4e07",
"source": "/warehouse/outbound-shipping",
"type": "com.warehouse.wms.outbound-shipping.outboundload.ShipmentConfirmed",
"subject": "load-7f3a",
"time": "2026-11-06T16:02:00Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:outbound-shipping:events:ShipmentConfirmed:v1",
"data": {
"load_id": "load-7f3a",
"site_id": "SITE-1",
"cpt_id": "cpt-1600",
"carrier": "STDOUT",
"trailer_id": "trl-91",
"seal_number": "SL-4471",
"departed_at": "2026-11-06T16:01:30Z",
"orders": [
{
"order_id": "order-88421"
},
{
"order_id": "order-88422"
}
],
"version": 6
}
}
A manifested package was staged at a Staging location.
type =
com.warehouse.wms.outbound-shipping.shippingpackage.PackageStaged;
subject and key = the package id. The location is a facility-layout
Staging location of the package's site.
pkg-1029 stages at STG-D04-A.
{
"specversion": "1.0",
"id": "3f1d2c3b-4a5e-4b7c-8d9e-0a1b2c3d4e08",
"source": "/warehouse/outbound-shipping",
"type": "com.warehouse.wms.outbound-shipping.shippingpackage.PackageStaged",
"subject": "pkg-1029",
"time": "2026-11-06T14:20:00Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:outbound-shipping:events:PackageStaged:v1",
"data": {
"package_id": "pkg-1029",
"load_id": "load-7f3a",
"site_id": "SITE-1",
"staging_location": "STG-D04-A",
"staged_at": "2026-11-06T14:20:00Z",
"version": 2
}
}
A package was loaded onto its load through the load's door.
type =
com.warehouse.wms.outbound-shipping.shippingpackage.PackageLoaded;
subject and key = the package id.
pkg-1029 loads through door D04 onto load-7f3a.
{
"specversion": "1.0",
"id": "3f1d2c3b-4a5e-4b7c-8d9e-0a1b2c3d4e09",
"source": "/warehouse/outbound-shipping",
"type": "com.warehouse.wms.outbound-shipping.shippingpackage.PackageLoaded",
"subject": "pkg-1029",
"time": "2026-11-06T14:48:00Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:outbound-shipping:events:PackageLoaded:v1",
"data": {
"package_id": "pkg-1029",
"load_id": "load-7f3a",
"site_id": "SITE-1",
"loaded_at": "2026-11-06T14:48:00Z",
"version": 3
}
}
A loaded package came back off the load before ship-confirm.
type =
com.warehouse.wms.outbound-shipping.shippingpackage.PackageUnloaded;
subject and key = the package id. reason is the operator's reason,
omitted when none was given. Impossible after ship-confirm
(ErrAlreadyShipped).
pkg-1029 comes back off with a damaged carton.
{
"specversion": "1.0",
"id": "3f1d2c3b-4a5e-4b7c-8d9e-0a1b2c3d4e0a",
"source": "/warehouse/outbound-shipping",
"type": "com.warehouse.wms.outbound-shipping.shippingpackage.PackageUnloaded",
"subject": "pkg-1029",
"time": "2026-11-06T15:00:00Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:outbound-shipping:events:PackageUnloaded:v1",
"data": {
"package_id": "pkg-1029",
"load_id": "load-7f3a",
"site_id": "SITE-1",
"unloaded_at": "2026-11-06T15:00:00Z",
"reason": "damaged-carton",
"version": 4
}
}
A package was not loaded by its cutoff or by departure.
type =
com.warehouse.wms.outbound-shipping.shippingpackage.PackageMissedLoad;
subject and key = the package id. Raised at most ONCE per package and
load (the flagged fact is remembered: a re-run sweep or a repeated
departure publishes nothing new). source_order_id is omitted when
the manifest carried none (ADR 0003). exception-management opens a
case; order-management re-promises.
The 16:00 cutoff passes with pkg-2055 still staged.
{
"specversion": "1.0",
"id": "3f1d2c3b-4a5e-4b7c-8d9e-0a1b2c3d4e0b",
"source": "/warehouse/outbound-shipping",
"type": "com.warehouse.wms.outbound-shipping.shippingpackage.PackageMissedLoad",
"subject": "pkg-2055",
"time": "2026-11-06T16:00:00Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:outbound-shipping:events:PackageMissedLoad:v1",
"data": {
"package_id": "pkg-2055",
"load_id": "load-7f3a",
"site_id": "SITE-1",
"source_order_id": "order-88423",
"cutoff": "2026-11-06T16:00:00Z",
"detected_at": "2026-11-06T16:00:00Z",
"version": 2
}
}
The shipping document of one confirmed load was issued.
type =
com.warehouse.wms.outbound-shipping.billoflading.BillOfLadingIssued;
subject and key = the BOL number. Issued exactly once per
SHIP_CONFIRMED load (ErrBolAlreadyIssued) with the seal the
departure carried (ErrSealMissing without one).
BOL for load-7f3a, 40 packages, 412.5 kg.
{
"specversion": "1.0",
"id": "3f1d2c3b-4a5e-4b7c-8d9e-0a1b2c3d4e0c",
"source": "/warehouse/outbound-shipping",
"type": "com.warehouse.wms.outbound-shipping.billoflading.BillOfLadingIssued",
"subject": "BOL-2026-11-06-0042",
"time": "2026-11-06T16:02:01Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:outbound-shipping:events:BillOfLadingIssued:v1",
"data": {
"bol_number": "BOL-2026-11-06-0042",
"load_id": "load-7f3a",
"site_id": "SITE-1",
"carrier": "STDOUT",
"trailer_id": "trl-91",
"seal_number": "SL-4471",
"package_count": 40,
"total_weight_g": 412500,
"issued_at": "2026-11-06T16:02:01Z",
"version": 1
}
}
An issued bill of lading was voided.
type =
com.warehouse.wms.outbound-shipping.billoflading.BillOfLadingVoided;
subject and key = the BOL number. A supervisor decision (e.g. a
re-issued document); the shipment itself is not undone.
The carrier rejected the print; the document is voided for re-issue.
{
"specversion": "1.0",
"id": "3f1d2c3b-4a5e-4b7c-8d9e-0a1b2c3d4e0d",
"source": "/warehouse/outbound-shipping",
"type": "com.warehouse.wms.outbound-shipping.billoflading.BillOfLadingVoided",
"subject": "BOL-2026-11-06-0042",
"time": "2026-11-06T16:30:00Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:outbound-shipping:events:BillOfLadingVoided:v1",
"data": {
"bol_number": "BOL-2026-11-06-0042",
"load_id": "load-7f3a",
"site_id": "SITE-1",
"reason": "reprint-for-carrier",
"voided_at": "2026-11-06T16:30:00Z",
"version": 2
}
}
fulfillment-execution's integration topic. This service consumes ONLY
PackageManifested and PackageDiverted (keyed by package id, so one
package's stream is totally ordered), under a stable consumer group.
Every other type on the topic is ignored.
Consume package manifestation and diversion.
PackageManifested plans the load (PlanLoadFromCutoff policy) and
records the package as EXPECTED on it (AssignPackageToLoad). The
additive correlation fields site_id, source_order_id, cpt,
weight_g (ADR 0003) are optional and omitted by the producer when
unknown — this consumer tolerates both shapes. PackageDiverted
short-ships an EXPECTED package with reason DIVERTED (DropDiverted
policy). The CloudEvents id claim and the effect commit in one
transaction; the offset is committed afterwards.
Available only on servers:
Accepts one of the following messages:
fulfillment-execution's package manifestation; plans the load and expects the package.
Producer contract (fulfillment-execution, origin/develop). The four
ship-correlation fields are ADDITIVE per ADR 0003, pinned from the
producer's wave-2 branch and optional (omitempty): site_id is
omitted today (no source in the chain yet), source_order_id,
cpt and weight_g flow once the producer stamps them. This
consumer tolerates both shapes and never parses order_ref.
pkg-1029 manifests with its order correlation.
{
"specversion": "1.0",
"id": "6f1c2a3b-4d5e-4f60-8a7b-9c0d1e2f3a4b",
"source": "/warehouse/fulfillment-execution",
"type": "com.warehouse.wes.fulfillment-execution.package.PackageManifested",
"subject": "pkg-1029",
"time": "2026-11-06T13:02:10Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:fulfillment-execution:events:PackageManifested:v1",
"data": {
"package_id": "pkg-1029",
"order_ref": "order-88421-line-1",
"source_order_id": "order-88421",
"cpt": "2026-11-06T16:00:00Z",
"weight_g": 10300
}
}
fulfillment-execution diverted a package; an EXPECTED package becomes SHORT_SHIPPED (DIVERTED).
Producer contract (fulfillment-execution, origin/develop). The
DropDiverted policy: an EXPECTED package of an open load is
short-shipped with reason DIVERTED so the load can still close.
pkg-2077 fails its weigh-check and is diverted.
{
"specversion": "1.0",
"id": "6f1c2a3b-4d5e-4f60-8a7b-9c0d1e2f3a4c",
"source": "/warehouse/fulfillment-execution",
"type": "com.warehouse.wes.fulfillment-execution.package.PackageDiverted",
"subject": "pkg-2077",
"time": "2026-11-06T13:40:00Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:fulfillment-execution:events:PackageDiverted:v1",
"data": {
"package_id": "pkg-2077"
}
}
process-path-management's integration topic. This service consumes
ONLY CPTScheduleChanged (keyed by site id), which feeds the local
CPT copy the load planner reads. Every other type on the topic is
ignored.
Consume the cutoff (CPT) schedule.
Last writer wins per site: the local copy keeps each cutoff's id, local time, days of week and ship method — the (site, cpt, date, ship method) key a load is planned for. A cutoff that disappears from the schedule leaves the local copy stale until the next change; that is recorded, not guessed.
Available only on servers:
Accepts the following message:
process-path-management's cutoff schedule; feeds the local CPT copy.
Producer contract (process-path-management, origin/develop). The
local copy keeps each cutoff's id, local time, days of week and ship
method — the (site, cpt, date, ship method) key a load is planned
for. Last writer wins per site.
SITE-1's schedule with one 16:00 ground cutoff.
{
"specversion": "1.0",
"id": "1d2e3f4a-5b6c-4d7e-8f9a-0b1c2d3e4f5a",
"source": "/warehouse/process-path-management",
"type": "com.warehouse.wes.process-path-management.cptschedule.CPTScheduleChanged",
"subject": "SITE-1",
"time": "2026-11-01T00:00:00Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:process-path-management:events:CPTScheduleChanged:v1",
"data": {
"site_id": "SITE-1",
"timezone": "America/Sao_Paulo",
"cutoffs": [
{
"cpt_id": "cpt-1600",
"local_time": "13:00",
"days_of_week": [
"Mon",
"Tue",
"Wed",
"Thu",
"Fri"
],
"ship_method": "STDOUT-2DAY",
"eligible_path_ids": [
"PICK",
"PACK"
]
}
]
}
}
facility-layout's integration topic. This service consumes ONLY
ZoneRegistered (zone to site mapping) and LocationSlotRegistered
(staging locations). Every other type on the topic is ignored.
Consume zones and staging locations.
Feeds the staging-location local copy: a package stages only at a
location whose role is Staging in a zone of its site
(ErrNotStagingLocation). A location maps to a site through its
zoneId, never by parsing its code. role is absent on events
emitted before the field existed (treated as Storage, so never
Staging).
Available only on servers:
Accepts one of the following messages:
facility-layout zone registration; feeds the zone-to-site mapping.
Producer contract (facility-layout, origin/develop). A location
maps to a site via its zoneId through this copy — never by parsing
a location code (the site_key convention).
Zone Z-D04 of site SITE-1.
{
"specversion": "1.0",
"id": "2a3b4c5d-6e7f-4a8b-9c0d-1e2f3a4b5c6d",
"source": "/warehouse/facility-layout",
"type": "com.warehouse.wms.facility-layout.zone.ZoneRegistered",
"subject": "Z-D04",
"time": "2026-10-01T00:00:00Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:facility-layout:events:ZoneRegistered:v1",
"data": {
"zoneId": "Z-D04",
"siteCode": "SITE-1",
"areaCode": "A-OUT",
"zoneCode": "D04",
"temperatureClass": "Ambient",
"hazmat": false
}
}
facility-layout location registration; feeds the staging-location copy.
Producer contract (facility-layout, origin/develop). Only locations
whose role is Staging can hold a staged package
(ErrNotStagingLocation); role is absent on pre-role events and
treated as Storage. zoneId joins the zone-to-site copy.
Staging location STG-D04-A in zone Z-D04.
{
"specversion": "1.0",
"id": "2a3b4c5d-6e7f-4a8b-9c0d-1e2f3a4b5c6e",
"source": "/warehouse/facility-layout",
"type": "com.warehouse.wms.facility-layout.locationslot.LocationSlotRegistered",
"subject": "STG-D04-A",
"time": "2026-10-01T00:00:00Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:facility-layout:events:LocationSlotRegistered:v1",
"data": {
"locationCode": "STG-D04-A",
"aisleId": "A-07",
"zoneId": "Z-D04",
"locationType": "FLOOR",
"role": "Staging"
}
}
dock-scheduling's integration topic. This service consumes ONLY
DockAppointmentBooked with direction=OUTBOUND (DoorFromAppointment
policy: an appointment naming the load's cpt assigns the door).
cpt_id and carrier_scac are nullable — an appointment without a
cpt names no load. PINNED from the producer's
origin/feature/service (campaign spike Q5): re-verify against the
producer's origin/develop AsyncAPI before fleet wiring lands.
Consume outbound dock appointments.
INBOUND appointments are ignored. An OUTBOUND appointment carrying a
cpt_id assigns the door to the open load of that (site, cpt,
date, ship method), if one exists when the event arrives; a later
appointment for the same cpt re-assigns and the change is published
as LoadDoorAssigned again.
Available only on servers:
Accepts the following message:
dock-scheduling's appointment booking; an OUTBOUND appointment names the cpt and assigns the door.
PINNED from dock-scheduling's origin/feature/service (campaign
spike Q5) — its develop contract does not exist yet; re-pin before
fleet wiring. Only direction=OUTBOUND is acted on. cpt_id and
carrier_scac are nullable: an appointment without a cpt names no
load. expected_seal_number is nullable.
An OUTBOUND appointment at door D04 for the 16:00 cutoff.
{
"specversion": "1.0",
"id": "4b5c6d7e-8f9a-4b0c-1d2e-3f4a5b6c7d8e",
"source": "/warehouse/dock-scheduling",
"type": "com.warehouse.wms.dock-scheduling.dockappointment.DockAppointmentBooked",
"subject": "appt-2211",
"time": "2026-11-06T09:00:00Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:dock-scheduling:events:DockAppointmentBooked:v1",
"data": {
"appointment_id": "appt-2211",
"site_id": "SITE-1",
"direction": "OUTBOUND",
"door_code": "D04",
"carrier": "STDOUT",
"carrier_scac": "STDOUT",
"cpt_id": "cpt-1600",
"window_start": "2026-11-06T14:00:00Z",
"window_end": "2026-11-06T16:00:00Z",
"asn_numbers": [],
"shipment_refs": [],
"expected_seal_number": null,
"arrival_tolerance_minutes": 30,
"provenance": "native",
"version": 1
}
}
yard-management's integration topic. This service consumes ONLY
TrailerDocked, DoorWorkCompleted and TrailerDeparted
(StartOnDock, ConfirmOnDeparture and FlagDepartureWithoutClose
policies, ADR 0002). The three messages are validated against the
producer's merged AsyncAPI, pinned in contracts/yard-management.asyncapi.yaml
(kept equal to its develop by scripts/harness/pinned_contract_gate.py);
TestConsumedYardTypesMatchTheProducersIntegrationContract fails when a
consumed type is not on the producer's integration channel.
Consume trailer dock, door-work and departure facts.
TrailerDocked at the load's door attaches the trailer (loading may
then start). TrailerDeparted for a CLOSED load confirms the
shipment with the event's seal number and issues the BOL; for a
LOADING load it never confirms — every package not loaded raises
PackageMissedLoad and the load is left for a supervisor. time
and subject are read from the envelope attributes, the payload via
DataAs, and the consumer dedupes on id: a re-delivered departure
confirms nothing twice.
Available only on servers:
Accepts one of the following messages:
yard-management docked a trailer at the load's door; the trailer attaches to the load.
Pinned from yard-management's merged AsyncAPI
(contracts/). StartOnDock
policy: a docking at the load's assigned door attaches the trailer,
after which loading may start.
Trailer trl-91 docks at door D04.
{
"specversion": "1.0",
"id": "5c6d7e8f-9a0b-4c1d-2e3f-4a5b6c7d8e9f",
"source": "/warehouse/yard-management",
"type": "com.warehouse.wms.yard-management.trailer.TrailerDocked",
"subject": "trl-91",
"time": "2026-11-06T14:00:00Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:yard-management:events:TrailerDocked:v1",
"data": {
"trailer_id": "trl-91",
"site_id": "SITE-1",
"door_code": "D04",
"appointment_id": "appt-2211",
"asn_numbers": [],
"visit_id": "visit-551",
"docked_at": "2026-11-06T14:00:00Z",
"version": 4
}
}
yard-management completed the door work; recorded, no state change in v1.
Pinned from yard-management's merged AsyncAPI. Consumed for the
load-adherence read model (door work finish vs cutoff). A CLOSED
load's door work completes on LoadClosed (wave 6.4, deferred).
Door work at D04 completes with a full trailer.
{
"specversion": "1.0",
"id": "6d7e8f9a-0b1c-4d2e-3f4a-5b6c7d8e9f0a",
"source": "/warehouse/yard-management",
"type": "com.warehouse.wms.yard-management.trailer.DoorWorkCompleted",
"subject": "trl-91",
"time": "2026-11-06T15:50:00Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:yard-management:events:DoorWorkCompleted:v1",
"data": {
"trailer_id": "trl-91",
"site_id": "SITE-1",
"door_code": "D04",
"appointment_id": "appt-2211",
"completed_at": "2026-11-06T15:50:00Z",
"load_state": "FULL",
"version": 7
}
}
The trailer physically left; the seal number and departure trigger ship-confirm (ADR 0002).
Pinned from yard-management's merged AsyncAPI. ConfirmOnDeparture
policy: a departure for a CLOSED load confirms the shipment (seal
from this event) and issues the BOL. FlagDepartureWithoutClose: a
departure for a LOADING load NEVER confirms — every package not
loaded raises PackageMissedLoad once and the load is left for a
supervisor. A re-delivered departure confirms nothing twice.
Trailer trl-91 departs sealed.
{
"specversion": "1.0",
"id": "7e8f9a0b-1c2d-4e3f-4a5b-6c7d8e9f0a1b",
"source": "/warehouse/yard-management",
"type": "com.warehouse.wms.yard-management.trailer.TrailerDeparted",
"subject": "trl-91",
"time": "2026-11-06T16:01:30Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:yard-management:events:TrailerDeparted:v1",
"data": {
"trailer_id": "trl-91",
"site_id": "SITE-1",
"visit_id": "visit-551",
"departed_at": "2026-11-06T16:01:30Z",
"dwell_minutes": 121,
"load_state": "FULL",
"seal_number": "SL-4471",
"version": 9
}
}
A load was planned for one cutoff and ship method.
type = com.warehouse.wms.outbound-shipping.outboundload.LoadPlanned;
subject and key = the load id. Raised automatically when the first
package of a (site, cpt, date, ship method) manifests and no open
load exists for that key (PlanLoadFromCutoff policy).
An outbound dock appointment assigned the load's door.
type =
com.warehouse.wms.outbound-shipping.outboundload.LoadDoorAssigned;
subject and key = the load id. DoorFromAppointment policy: the
appointment names the cpt; appointment_id is that appointment.
Loading began at the assigned door with the docked trailer.
type =
com.warehouse.wms.outbound-shipping.outboundload.LoadingStarted;
subject and key = the load id. Requires a door AND a docked trailer
(ErrTrailerNotDocked). yard-management starts its outbound door
work on it (wave 6.4, deferred until the yard contract merges).
Every package is loaded or short-shipped; the load is closed.
type =
com.warehouse.wms.outbound-shipping.outboundload.LoadClosed;
subject and key = the load id. package_count is the loaded count,
short_shipped_count the deliberate left-offs with reasons.
yard-management completes its outbound door work on it.
A supervisor reopened a closed load for more loading.
type =
com.warehouse.wms.outbound-shipping.outboundload.LoadReopened;
subject and key = the load id. A SHIP_CONFIRMED load is never
reopened (ErrLoadConfirmed). yard-management reopens the door work
on it.
A planned load was cancelled before loading.
type =
com.warehouse.wms.outbound-shipping.outboundload.LoadCancelled;
subject and key = the load id. Only a PLANNED load can be cancelled.
The trailer left with a closed load; the shipment is a fact.
type =
com.warehouse.wms.outbound-shipping.outboundload.ShipmentConfirmed;
subject and key = the load id. Raised on TrailerDeparted for a
CLOSED load (ADR 0002): the goods physically left. orders lists
every distinct source_order_id of the shipped packages (ADR 0003);
a package manifested without one is excluded. order-management marks
orders Shipped/PartiallyShipped (D7) and network-fulfillment joins
localOrderId (ADR 0004).
A manifested package was staged at a Staging location.
type =
com.warehouse.wms.outbound-shipping.shippingpackage.PackageStaged;
subject and key = the package id. The location is a facility-layout
Staging location of the package's site.
A package was loaded onto its load through the load's door.
type =
com.warehouse.wms.outbound-shipping.shippingpackage.PackageLoaded;
subject and key = the package id.
A loaded package came back off the load before ship-confirm.
type =
com.warehouse.wms.outbound-shipping.shippingpackage.PackageUnloaded;
subject and key = the package id. reason is the operator's reason,
omitted when none was given. Impossible after ship-confirm
(ErrAlreadyShipped).
A package was not loaded by its cutoff or by departure.
type =
com.warehouse.wms.outbound-shipping.shippingpackage.PackageMissedLoad;
subject and key = the package id. Raised at most ONCE per package and
load (the flagged fact is remembered: a re-run sweep or a repeated
departure publishes nothing new). source_order_id is omitted when
the manifest carried none (ADR 0003). exception-management opens a
case; order-management re-promises.
The shipping document of one confirmed load was issued.
type =
com.warehouse.wms.outbound-shipping.billoflading.BillOfLadingIssued;
subject and key = the BOL number. Issued exactly once per
SHIP_CONFIRMED load (ErrBolAlreadyIssued) with the seal the
departure carried (ErrSealMissing without one).
An issued bill of lading was voided.
type =
com.warehouse.wms.outbound-shipping.billoflading.BillOfLadingVoided;
subject and key = the BOL number. A supervisor decision (e.g. a
re-issued document); the shipment itself is not undone.
fulfillment-execution's package manifestation; plans the load and expects the package.
Producer contract (fulfillment-execution, origin/develop). The four
ship-correlation fields are ADDITIVE per ADR 0003, pinned from the
producer's wave-2 branch and optional (omitempty): site_id is
omitted today (no source in the chain yet), source_order_id,
cpt and weight_g flow once the producer stamps them. This
consumer tolerates both shapes and never parses order_ref.
fulfillment-execution diverted a package; an EXPECTED package becomes SHORT_SHIPPED (DIVERTED).
Producer contract (fulfillment-execution, origin/develop). The
DropDiverted policy: an EXPECTED package of an open load is
short-shipped with reason DIVERTED so the load can still close.
process-path-management's cutoff schedule; feeds the local CPT copy.
Producer contract (process-path-management, origin/develop). The
local copy keeps each cutoff's id, local time, days of week and ship
method — the (site, cpt, date, ship method) key a load is planned
for. Last writer wins per site.
facility-layout zone registration; feeds the zone-to-site mapping.
Producer contract (facility-layout, origin/develop). A location
maps to a site via its zoneId through this copy — never by parsing
a location code (the site_key convention).
facility-layout location registration; feeds the staging-location copy.
Producer contract (facility-layout, origin/develop). Only locations
whose role is Staging can hold a staged package
(ErrNotStagingLocation); role is absent on pre-role events and
treated as Storage. zoneId joins the zone-to-site copy.
dock-scheduling's appointment booking; an OUTBOUND appointment names the cpt and assigns the door.
PINNED from dock-scheduling's origin/feature/service (campaign
spike Q5) — its develop contract does not exist yet; re-pin before
fleet wiring. Only direction=OUTBOUND is acted on. cpt_id and
carrier_scac are nullable: an appointment without a cpt names no
load. expected_seal_number is nullable.
yard-management docked a trailer at the load's door; the trailer attaches to the load.
Pinned from yard-management's merged AsyncAPI
(contracts/). StartOnDock
policy: a docking at the load's assigned door attaches the trailer,
after which loading may start.
yard-management completed the door work; recorded, no state change in v1.
Pinned from yard-management's merged AsyncAPI. Consumed for the
load-adherence read model (door work finish vs cutoff). A CLOSED
load's door work completes on LoadClosed (wave 6.4, deferred).
The trailer physically left; the seal number and departure trigger ship-confirm (ADR 0002).
Pinned from yard-management's merged AsyncAPI. ConfirmOnDeparture
policy: a departure for a CLOSED load confirms the shipment (seal
from this event) and issues the BOL. FlagDepartureWithoutClose: a
departure for a LOADING load NEVER confirms — every package not
loaded raises PackageMissedLoad once and the load is left for a
supervisor. A re-delivered departure confirms nothing twice.