outbound-shipping Domain Events 1.0.0

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.

  • #outbound-shipping
  • #outboundload
  • #shippingpackage
  • #billoflading
  • #consumed
  • #analytics

Servers

  • {brokers}kafkaproduction

    Fleet-shared Kafka broker (host supplied by the deployment environment).

    object
    string
    required
    Security:
    security.protocol:PLAINTEXT

Operations

  • SUB warehouse.outbound-shipping.events

    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.

    Operation IDreceiveOutboundShippingEvents

    Available only on servers:

    • #outbound-shipping

    Accepts one of the following messages:

    • #0Load planned

      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).

      allOf
      • #outboundload

      Examples

    • #1Load door assigned

      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.

      allOf
      • #outboundload

      Examples

    • #2Loading started

      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).

      allOf
      • #outboundload

      Examples

    • #3Load closed

      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.

      allOf
      • #outboundload

      Examples

    • #4Load reopened

      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.

      allOf
      • #outboundload

      Examples

    • #5Load cancelled

      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.

      allOf
      • #outboundload

      Examples

    • #6Shipment confirmed

      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).

      allOf
      • #outboundload

      Examples

    • #7Package staged

      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.

      allOf
      • #shippingpackage

      Examples

    • #8Package loaded

      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.

      allOf
      • #shippingpackage

      Examples

    • #9Package unloaded

      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).

      allOf
      • #shippingpackage

      Examples

    • #10Package missed its load

      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.

      allOf
      • #shippingpackage

      Examples

    • #11Bill of lading issued

      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).

      allOf
      • #billoflading

      Examples

    • #12Bill of lading voided

      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.

      allOf
      • #billoflading

      Examples

  • SUB warehouse.outbound-shipping.analytics

    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.

    Operation IDreceiveOutboundShippingAnalytics

    Available only on servers:

    • #analytics

    Accepts one of the following messages:

    • #0Load planned

      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).

      allOf
      • #outboundload

      Examples

    • #1Load door assigned

      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.

      allOf
      • #outboundload

      Examples

    • #2Loading started

      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).

      allOf
      • #outboundload

      Examples

    • #3Load closed

      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.

      allOf
      • #outboundload

      Examples

    • #4Load reopened

      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.

      allOf
      • #outboundload

      Examples

    • #5Load cancelled

      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.

      allOf
      • #outboundload

      Examples

    • #6Shipment confirmed

      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).

      allOf
      • #outboundload

      Examples

    • #7Package staged

      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.

      allOf
      • #shippingpackage

      Examples

    • #8Package loaded

      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.

      allOf
      • #shippingpackage

      Examples

    • #9Package unloaded

      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).

      allOf
      • #shippingpackage

      Examples

    • #10Package missed its load

      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.

      allOf
      • #shippingpackage

      Examples

    • #11Bill of lading issued

      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).

      allOf
      • #billoflading

      Examples

    • #12Bill of lading voided

      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.

      allOf
      • #billoflading

      Examples

  • PUB warehouse.fulfillment.events

    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.

    Operation IDconsumeFulfillmentPackageEvents

    Available only on servers:

    • #consumed

    Accepts one of the following messages:

    • #0PackageManifested (consumed)

      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.

      object
      • #consumed

      Examples

    • #1PackageDiverted (consumed)

      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.

      object
      • #consumed

      Examples

  • PUB warehouse.process-path-management.events

    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.

    Operation IDconsumeCptSchedule

    Available only on servers:

    • #consumed

    Accepts the following message:

    CPTScheduleChanged (consumed)

    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.

    object
    • #consumed

    Examples

  • PUB warehouse.facility.events

    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).

    Operation IDconsumeFacilityLayout

    Available only on servers:

    • #consumed

    Accepts one of the following messages:

    • #0ZoneRegistered (consumed)

      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).

      object
      • #consumed

      Examples

    • #1LocationSlotRegistered (consumed)

      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.

      object
      • #consumed

      Examples

  • PUB warehouse.dock-scheduling.events

    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.

    Operation IDconsumeDockAppointments

    Available only on servers:

    • #consumed

    Accepts the following message:

    DockAppointmentBooked (consumed)

    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.

    object
    • #consumed

    Examples

  • PUB warehouse.yard-management.events

    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.

    Operation IDconsumeYardTrailerEvents

    Available only on servers:

    • #consumed

    Accepts one of the following messages:

    • #0TrailerDocked (consumed, pinned)

      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.

      object
      • #consumed

      Examples

    • #1DoorWorkCompleted (consumed, pinned)

      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).

      object
      • #consumed

      Examples

    • #2TrailerDeparted (consumed, pinned)

      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.

      object
      • #consumed

      Examples

Messages

  • #1Load planned

    A load was planned for one cutoff and ship method.

    Message IDLoadPlanned

    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).

    allOf
    • #outboundload
  • #2Load door assigned

    An outbound dock appointment assigned the load's door.

    Message IDLoadDoorAssigned

    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.

    allOf
    • #outboundload
  • #3Loading started

    Loading began at the assigned door with the docked trailer.

    Message IDLoadingStarted

    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).

    allOf
    • #outboundload
  • #4Load closed

    Every package is loaded or short-shipped; the load is closed.

    Message IDLoadClosed

    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.

    allOf
    • #outboundload
  • #5Load reopened

    A supervisor reopened a closed load for more loading.

    Message IDLoadReopened

    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.

    allOf
    • #outboundload
  • #6Load cancelled

    A planned load was cancelled before loading.

    Message IDLoadCancelled

    type = com.warehouse.wms.outbound-shipping.outboundload.LoadCancelled; subject and key = the load id. Only a PLANNED load can be cancelled.

    allOf
    • #outboundload
  • #7Shipment confirmed

    The trailer left with a closed load; the shipment is a fact.

    Message IDShipmentConfirmed

    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).

    allOf
    • #outboundload
  • #8Package staged

    A manifested package was staged at a Staging location.

    Message IDPackageStaged

    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.

    allOf
    • #shippingpackage
  • #9Package loaded

    A package was loaded onto its load through the load's door.

    Message IDPackageLoaded

    type = com.warehouse.wms.outbound-shipping.shippingpackage.PackageLoaded; subject and key = the package id.

    allOf
    • #shippingpackage
  • #10Package unloaded

    A loaded package came back off the load before ship-confirm.

    Message IDPackageUnloaded

    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).

    allOf
    • #shippingpackage
  • #11Package missed its load

    A package was not loaded by its cutoff or by departure.

    Message IDPackageMissedLoad

    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.

    allOf
    • #shippingpackage
  • #12Bill of lading issued

    The shipping document of one confirmed load was issued.

    Message IDBillOfLadingIssued

    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).

    allOf
    • #billoflading
  • #13Bill of lading voided

    An issued bill of lading was voided.

    Message IDBillOfLadingVoided

    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.

    allOf
    • #billoflading
  • #14PackageManifested (consumed)

    fulfillment-execution's package manifestation; plans the load and expects the package.

    Message IDPackageManifested

    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.

    object
    • #consumed
  • #15PackageDiverted (consumed)

    fulfillment-execution diverted a package; an EXPECTED package becomes SHORT_SHIPPED (DIVERTED).

    Message IDPackageDiverted

    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.

    object
    • #consumed
  • #16CPTScheduleChanged (consumed)

    process-path-management's cutoff schedule; feeds the local CPT copy.

    Message IDCPTScheduleChanged

    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.

    object
    • #consumed
  • #17ZoneRegistered (consumed)

    facility-layout zone registration; feeds the zone-to-site mapping.

    Message IDZoneRegistered

    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).

    object
    • #consumed
  • #18LocationSlotRegistered (consumed)

    facility-layout location registration; feeds the staging-location copy.

    Message IDLocationSlotRegistered

    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.

    object
    • #consumed
  • #19DockAppointmentBooked (consumed)

    dock-scheduling's appointment booking; an OUTBOUND appointment names the cpt and assigns the door.

    Message IDDockAppointmentBooked

    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.

    object
    • #consumed
  • #20TrailerDocked (consumed, pinned)

    yard-management docked a trailer at the load's door; the trailer attaches to the load.

    Message IDTrailerDocked

    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.

    object
    • #consumed
  • #21DoorWorkCompleted (consumed, pinned)

    yard-management completed the door work; recorded, no state change in v1.

    Message IDDoorWorkCompleted

    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).

    object
    • #consumed
  • #22TrailerDeparted (consumed, pinned)

    The trailer physically left; the seal number and departure trigger ship-confirm (ADR 0002).

    Message IDTrailerDeparted

    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.

    object
    • #consumed

Schemas

  • object
  • allOf
  • allOf
  • allOf
  • allOf
  • allOf
  • allOf
  • allOf
  • allOf
  • allOf
  • allOf
  • allOf
  • allOf
  • allOf
  • object
  • object
  • object
  • object
  • object
  • object
  • object
  • object
  • object