Network Fulfillment Events 2.0.0

Domain-event catalog for Network Fulfillment, a Supporting bounded context in the WES (Warehouse Execution Systems) subdomain: the anti-corruption layer between the warehouse-systems fleet and an external retail fulfillment network. One aggregate raises every event documented here:

  • NetworkOrder (package internal/domain/networkorder) — one network purchase order and its acknowledgement lifecycle. Raises NetworkOrderReceived, NetworkOrderSubmitted, NetworkOrderAcknowledged (v2: raised when the order settles ACKNOWLEDGED, ADR 0016), NetworkOrderRejected, NetworkOrderShipmentConfirmed and (from the acknowledgement sweep, without a state transition) AcknowledgementDeadlineAtRisk; and (from the orphaned-hold sweep, ADR 0024, also without a state transition) OrphanedHoldCancelled.

Envelope (mandatory, ADR 0008). Every message on every channel of this service is a CloudEvents 1.0 event in structured content mode (Kafka protocol binding): the Kafka message value is the JSON event format, content type application/cloudevents+json, and every message carries the Kafka header content-type: application/cloudevents+json; charset=UTF-8. There is no other envelope. All of specversion, id, source, type, subject, time, datacontenttype and dataschema are REQUIRED. W3C trace context, when present, travels in Kafka headers, never as extension attributes: an event written through the transactional outbox inside a span carries that span's traceparent (and tracestate / baggage when present), stored with the outbox row and sent by the relay (ADR 0022). Consumers may extract these headers and must not require them. The Kafka message key is the network order reference (networkRef, identical to subject), so every event for one order lands on the same partition.

Type naming. type is com.warehouse.<subdomain>.<bounded-context>.<entity>.<EventName>. For this context the subdomain is wes, the bounded context is network-fulfillment and the entity is networkorder, e.g. com.warehouse.wes.network-fulfillment.networkorder.NetworkOrderReceived. The SAME type is used for the occurrence on the integration and on the analytics channel; dataschema (urn:warehouse:network-fulfillment:<events|analytics>:<EventName>:v<N>) names the payload shape. A breaking change gets a new .v2 type and a new dataschema version, never a mutation of these: NetworkOrderAcknowledged changed meaning in ADR 0016 and is published as ...networkorder.NetworkOrderAcknowledged.v2 / ...:NetworkOrderAcknowledged:v2.

Consumers must dispatch on the full type, ignore unknown types, dedupe on id (stable across outbox redelivery), and dead-letter or skip — never parse as a legacy shape — anything that fails CloudEvents validation.

  • #network-fulfillment
  • #networkorder
  • #analytics

Servers

  • kafka.warehouse-systems.internal:9092kafkaproduction

    Shared warehouse-systems Kafka cluster.

    Security:
    security.protocol:PLAINTEXT

Operations

  • SUB warehouse.network-fulfillment.events

    The integration topic (the Topic constant in internal/adapters/outbound/kafka/publisher.go). Every domain event the NetworkOrder aggregate raises is published here, via the transactional outbox when DATABASE_URL is configured (ADR 0003). dataschema: urn:warehouse:network-fulfillment:events:<EventName>:v<N> (v1, except NetworkOrderAcknowledged which is v2 — ADR 0016).

    Consume Network Fulfillment integration events.

    Every message is a CloudEvents 1.0 structured-mode event; route on the full type attribute.

    Operation IDconsumeNetworkFulfillmentEvents

    Available only on servers:

    • #network-fulfillment

    Accepts one of the following messages:

    • #0Network order received

      Demand from the external retail network was turned into a NetworkOrder; the 24h acknowledgement clock is running.

      Raised by the NetworkOrder aggregate the moment network demand is received — whether or not every line could be translated into our SKU vocabulary. lineCount is the number of successfully translated lines (0 for demand rejected as untranslatable).

      type: com.warehouse.wes.network-fulfillment.networkorder.NetworkOrderReceived — dataschema: urn:warehouse:network-fulfillment:events:NetworkOrderReceived:v1.

      allOf
      object
      object
      • #networkorder
      • #network-fulfillment

      Examples

    • #1Network order submitted

      We told the network yes (the order is SUBMITTED) and a held order exists in order-management; the submission is not yet reconciled.

      Raised by the NetworkOrder aggregate in the same atomic scope that moves the order to SUBMITTED (ADR 0016): the decision to accept in full has been taken, the network has been told yes and a held order exists in order-management (localOrderId), but the submission is only accepted-for-processing and NOT yet reconciled against the network's transaction-status record (ADR 0001 §5). It is exactly what NetworkOrderAcknowledged v1 used to announce. A consumer must not treat it as a settled commitment: the settle is NetworkOrderAcknowledged (v2); a refused submission is NetworkOrderRejected with reason=SUBMISSION_FAILED.

      type: com.warehouse.wes.network-fulfillment.networkorder.NetworkOrderSubmitted — dataschema: urn:warehouse:network-fulfillment:events:NetworkOrderSubmitted:v1.

      allOf
      object
      object
      • #networkorder
      • #network-fulfillment

      Examples

    • #2Network order acknowledged (v2)

      The order settled ACKNOWLEDGED: the network's transaction status confirmed the submission.

      Raised by the NetworkOrder aggregate when ReconcileSubmittedOrders settles the order SUBMITTED -> ACKNOWLEDGED (ADR 0016), in the same atomic scope as the state save and before the held order is released. It is a settled commitment. receivedAt is carried so consumers can compute acknowledgement latency (at - receivedAt) without a second lookup — the analytics projection does exactly that. A pending submission raises nothing; a failed one raises NetworkOrderRejected with reason=SUBMISSION_FAILED and never this event.

      Versioning (breaking change). Until ADR 0016 this event was published when the order moved to SUBMITTED. Because its meaning changed, it is published as a NEW .v2 type and :v2 dataschema (fleet CloudEvents standard §4); the v1 type com.warehouse.wes.network-fulfillment.networkorder.NetworkOrderAcknowledged is no longer published. The payload field set is unchanged. The earlier fact is now NetworkOrderSubmitted.

      type: com.warehouse.wes.network-fulfillment.networkorder.NetworkOrderAcknowledged.v2 — dataschema: urn:warehouse:network-fulfillment:events:NetworkOrderAcknowledged:v2.

      allOf
      object
      object
      • #networkorder
      • #network-fulfillment

      Examples

    • #3Network order rejected

      We told the network no — or the acknowledgement window closed unanswered.

      Raised by the NetworkOrder aggregate whenever the order is refused. reason distinguishes a catalogue gap, a capacity signal and an operational failure.

      type: com.warehouse.wes.network-fulfillment.networkorder.NetworkOrderRejected — dataschema: urn:warehouse:network-fulfillment:events:NetworkOrderRejected:v1.

      allOf
      object
      object
      • #networkorder
      • #network-fulfillment

      Examples

    • #4Network order shipment confirmed

      A shipment was confirmed back to the network, closing the order.

      Raised by the NetworkOrder aggregate when its shipment is confirmed to the network, by ConfirmNetworkOrderShipment (POST /network-orders/{networkRef}/shipment-confirmation, ADR 0014). The use case saves the order as CONFIRMED and publishes this event in one atomic scope, then submits the confirmation to the network.

      type: com.warehouse.wes.network-fulfillment.networkorder.NetworkOrderShipmentConfirmed — dataschema: urn:warehouse:network-fulfillment:events:NetworkOrderShipmentConfirmed:v1.

      allOf
      object
      object
      • #networkorder
      • #network-fulfillment

      Examples

    • #5Acknowledgement deadline at risk

      An order's 24h acknowledgement window has closed with no answer — a reported fact, not a state transition.

      Raised by SweepAcknowledgementDeadlines for every order found still NEW past its acknowledgeBy instant (ADR 0001 §6). The sweep itself NEVER mutates the aggregate — this event re-fires on every pass for as long as the condition holds true, and a consumer must not treat it as edge-triggered. RejectOverdueOrders is the separate use case (its own code path, its own audit trail) that performs the actual rejection, publishing NetworkOrderRejected with reason=ACKNOWLEDGEMENT_DEADLINE_MISSED.

      type: com.warehouse.wes.network-fulfillment.networkorder.AcknowledgementDeadlineAtRisk — dataschema: urn:warehouse:network-fulfillment:events:AcknowledgementDeadlineAtRisk:v1.

      allOf
      object
      object
      • #networkorder
      • #network-fulfillment

      Examples

    • #6Orphaned order-management hold cancelled

      A hold order-management made for demand nobody decided was found past the acknowledgement window plus the grace and cancelled — a reported fact, not a state transition.

      Raised by SweepOrphanedHolds (ADR 0024) once per hold it frees: the order-management order raised for this demand was still held after acknowledgeBy plus ORPHAN_HOLD_GRACE, the NetworkOrder was never committed to (still NEW, or REJECTED with the cancel never confirmed), and order-management confirmed the hold is gone. The sweep NEVER changes the order's state — RejectOverdueOrders owns that and publishes NetworkOrderRejected — and it raises this event only when the hold was actually freed: a hold order-management reports as already released (409/422) was not an orphan and raises nothing. The outcome is recorded in the same transaction as the event, so it fires once per hold and is not re-raised on later passes.

      answer is what order-management said to the cancel: CANCELLED (2xx) or NOT_FOUND (404, the hold no longer existed — still done). localOrderId is the order-management order that was held; it is published here and nowhere else for an order that was never submitted, because GET /network-orders/{networkRef} exposes localOrderId only from SUBMITTED on.

      type: com.warehouse.wes.network-fulfillment.networkorder.OrphanedHoldCancelled — dataschema: urn:warehouse:network-fulfillment:events:OrphanedHoldCancelled:v1.

      allOf
      object
      object
      • #networkorder
      • #network-fulfillment

      Examples

  • SUB warehouse.network-fulfillment.analytics

    The internal analytics topic (the AnalyticsTopic constant in internal/adapters/outbound/kafka/analytics_publisher.go). Carries the same seven occurrences with the same type and payload, but a distinct id per occurrence and dataschema urn:warehouse:network-fulfillment:analytics:<EventName>:v<N> (v1, except NetworkOrderAcknowledged which is v2). There is no schema_version field. Consumed by this service's own analytics projector (internal/adapters/inbound/kafka/analytics_consumer.go), which handles NetworkOrderReceived, NetworkOrderSubmitted (claimed, no report effect), NetworkOrderAcknowledged v2, the HISTORIC NetworkOrderAcknowledged v1 still on the topic (unsuffixed type, published before ADR 0016, counted as before so a replay keeps the report numbers) and NetworkOrderRejected, ignores other types (NetworkOrderShipmentConfirmed, AcknowledgementDeadlineAtRisk and OrphanedHoldCancelled today), and dead-letters to warehouse.network-fulfillment.analytics.dlq anything that is not a valid CloudEvent.

    Consume Network Fulfillment analytics events.

    Every message is a CloudEvents 1.0 structured-mode event; route on the full type attribute.

    Operation IDconsumeNetworkFulfillmentAnalytics

    Available only on servers:

    • #analytics

    Accepts one of the following messages:

    • #0Network order received (analytics)

      Demand from the external retail network was turned into a NetworkOrder; the 24h acknowledgement clock is running.

      Raised by the NetworkOrder aggregate the moment network demand is received — whether or not every line could be translated into our SKU vocabulary. lineCount is the number of successfully translated lines (0 for demand rejected as untranslatable). Consumed by the analytics projector.

      type: com.warehouse.wes.network-fulfillment.networkorder.NetworkOrderReceived — dataschema: urn:warehouse:network-fulfillment:analytics:NetworkOrderReceived:v1.

      allOf
      object
      object
      • #networkorder
      • #analytics

      Examples

    • #1Network order submitted (analytics)

      We told the network yes (the order is SUBMITTED) and a held order exists in order-management; not yet reconciled.

      Raised when the order moves to SUBMITTED; what NetworkOrderAcknowledged v1 used to announce (ADR 0016). Recognised and claimed by the analytics projector, with no effect on the acknowledgement report.

      type: com.warehouse.wes.network-fulfillment.networkorder.NetworkOrderSubmitted — dataschema: urn:warehouse:network-fulfillment:analytics:NetworkOrderSubmitted:v1.

      allOf
      object
      object
      • #networkorder
      • #analytics

      Examples

    • #2Network order acknowledged (analytics, v2)

      The order settled ACKNOWLEDGED: the network's transaction status confirmed the submission.

      Raised when ReconcileSubmittedOrders settles the order SUBMITTED -> ACKNOWLEDGED (ADR 0016). receivedAt is carried so consumers can compute acknowledgement latency (at - receivedAt) without a second lookup — the analytics projection does exactly that. Consumed by the analytics projector.

      Versioning. This is the v2 type; the meaning of the unsuffixed v1 type changed (it was published at SUBMITTED, before reconciliation), which the fleet CloudEvents standard treats as breaking. The v1 type com.warehouse.wes.network-fulfillment.networkorder.NetworkOrderAcknowledged (dataschema ...:analytics:NetworkOrderAcknowledged:v1) is no longer published but messages already on the topic stay, and the projector still handles them as before (v1 counted once, with the same latency).

      type: com.warehouse.wes.network-fulfillment.networkorder.NetworkOrderAcknowledged.v2 — dataschema: urn:warehouse:network-fulfillment:analytics:NetworkOrderAcknowledged:v2.

      allOf
      object
      object
      • #networkorder
      • #analytics

      Examples

    • #3Network order rejected (analytics)

      We told the network no — or the acknowledgement window closed unanswered.

      Raised by the NetworkOrder aggregate whenever the order is refused. reason distinguishes a catalogue gap, a capacity signal and an operational failure. Consumed by the analytics projector.

      type: com.warehouse.wes.network-fulfillment.networkorder.NetworkOrderRejected — dataschema: urn:warehouse:network-fulfillment:analytics:NetworkOrderRejected:v1.

      allOf
      object
      object
      • #networkorder
      • #analytics

      Examples

    • #4Network order shipment confirmed (analytics)

      A shipment was confirmed back to the network, closing the order.

      Raised by the NetworkOrder aggregate when its shipment is confirmed to the network, by ConfirmNetworkOrderShipment (POST /network-orders/{networkRef}/shipment-confirmation, ADR 0014). Not used by the analytics projector today (ignored as an unknown type).

      type: com.warehouse.wes.network-fulfillment.networkorder.NetworkOrderShipmentConfirmed — dataschema: urn:warehouse:network-fulfillment:analytics:NetworkOrderShipmentConfirmed:v1.

      allOf
      object
      object
      • #networkorder
      • #analytics

      Examples

    • #5Acknowledgement deadline at risk (analytics)

      An order's 24h acknowledgement window has closed with no answer — a reported fact, not a state transition.

      Raised by SweepAcknowledgementDeadlines for every order found still NEW past its acknowledgeBy instant (ADR 0001 §6), and published on the analytics topic like every other event (the composition root's fan-out publishes each event to both topics). Re-fires on every sweep pass while the condition holds — not edge-triggered. Not used by the analytics projector today (ignored as an unknown type).

      type: com.warehouse.wes.network-fulfillment.networkorder.AcknowledgementDeadlineAtRisk — dataschema: urn:warehouse:network-fulfillment:analytics:AcknowledgementDeadlineAtRisk:v1.

      allOf
      object
      object
      • #networkorder
      • #analytics

      Examples

    • #6Orphaned order-management hold cancelled (analytics)

      A hold order-management made for demand nobody decided was found past the acknowledgement window plus the grace and cancelled — a reported fact, not a state transition.

      Raised by SweepOrphanedHolds (ADR 0024) once per hold it frees: the order-management order raised for this demand was still held after acknowledgeBy plus ORPHAN_HOLD_GRACE, the NetworkOrder was never committed to (still NEW, or REJECTED with the cancel never confirmed), and order-management confirmed the hold is gone. The sweep NEVER changes the order's state — RejectOverdueOrders owns that and publishes NetworkOrderRejected — and it raises this event only when the hold was actually freed: a hold order-management reports as already released (409/422) was not an orphan and raises nothing. The outcome is recorded in the same transaction as the event, so it fires once per hold and is not re-raised on later passes.

      answer is what order-management said to the cancel: CANCELLED (2xx) or NOT_FOUND (404, the hold no longer existed — still done). localOrderId is the order-management order that was held; it is published here and nowhere else for an order that was never submitted, because GET /network-orders/{networkRef} exposes localOrderId only from SUBMITTED on.

      Published on the analytics topic like every other event (the composition root's fan-out publishes each event to both topics). Not used by the analytics projector today (ignored as an unknown type).

      type: com.warehouse.wes.network-fulfillment.networkorder.OrphanedHoldCancelled — dataschema: urn:warehouse:network-fulfillment:analytics:OrphanedHoldCancelled:v1.

      allOf
      object
      object
      • #networkorder
      • #analytics

      Examples

  • SUB warehouse.process-path-management.events

    process-path-management's integration topic, CONSUMED by this service, not published (the Topic constant in internal/adapters/outbound/processpathcache/consumer.go). The process-path capability cache replays it from the earliest offset under a per-process unique group (group id prefix network-fulfillment-process-path-capability-cache, suffixed with hostname, PID and a timestamp), always started (ADR 0025; CAPABILITY_OFFER_ENABLED=false is refused at boot). A message that is not a valid CloudEvent is logged and skipped (no DLQ). It acts on ProcessPathCreated, ProcessPathUpdated, ProcessPathDeactivated and CPTScheduleChanged and ignores every other type.

    Keep the local process-path and CPT-schedule capability cache current.

    Operation IDconsumeProcessPathEvents

    Available only on servers:

    Accepts one of the following messages:

    • #0Process path created (consumed from process-path-management)

      A process path was defined.

      CONSUMED, not produced. Pinned by process-path-management's apis/asyncapi.yaml: source=/warehouse/process-path-management, type com.warehouse.wes.process-path-management.processpath.ProcessPathCreated.

      object

      CloudEvents 1.0 envelope of process-path-management's ProcessPathCreated, the integration payload, as consumed here.

      Examples

    • #1Process path updated (consumed from process-path-management)

      A process path definition changed.

      CONSUMED, not produced. Pinned by process-path-management's apis/asyncapi.yaml: source=/warehouse/process-path-management, type com.warehouse.wes.process-path-management.processpath.ProcessPathUpdated.

      object

      CloudEvents 1.0 envelope of process-path-management's ProcessPathUpdated, the integration payload, as consumed here.

      Examples

    • #2Process path deactivated (consumed from process-path-management)

      A process path was deactivated.

      CONSUMED, not produced. Pinned by process-path-management's apis/asyncapi.yaml: source=/warehouse/process-path-management, type com.warehouse.wes.process-path-management.processpath.ProcessPathDeactivated.

      object

      CloudEvents 1.0 envelope of process-path-management's ProcessPathDeactivated, the integration payload, as consumed here.

      Examples

    • #3CPT schedule changed (consumed from process-path-management)

      The CPT cutoff schedule of a path changed.

      CONSUMED, not produced. Pinned by process-path-management's apis/asyncapi.yaml: source=/warehouse/process-path-management, type com.warehouse.wes.process-path-management.cptschedule.CPTScheduleChanged.

      object

      CloudEvents 1.0 envelope of process-path-management's CPTScheduleChanged, the integration payload, as consumed here.

      Examples

  • SUB warehouse.work-planning.events

    wes-work-planning's integration topic, CONSUMED by this service, not published (the Topic constant in internal/adapters/outbound/pathcapacitycache/consumer.go). The path capacity cache replays it under a per-process unique group (prefix network-fulfillment-path-capacity-cache, suffixed with hostname, PID and a timestamp), always started (ADR 0025; CAPABILITY_OFFER_ENABLED=false is refused at boot), and acts only on PathCapacityChanged. A message that is not a valid CloudEvent is logged and skipped (no DLQ).

    Keep the local remaining-admission-capacity read model current.

    Operation IDconsumeWorkPlanningEvents

    Available only on servers:

    Accepts the following message:

    Path capacity changed (consumed from wes-work-planning)

    The remaining admission capacity of a process path changed.

    CONSUMED, not produced. Pinned by wes-work-planning's apis/asyncapi.yaml: source=/warehouse/wes-work-planning, type com.warehouse.wes.work-planning.workpool.PathCapacityChanged.

    object

    CloudEvents 1.0 envelope of wes-work-planning's PathCapacityChanged, the integration payload, as consumed here.

    Examples

  • SUB warehouse.inbound-receiving.events

    inbound-receiving's integration topic, CONSUMED by this service, not published (the inbound loop of ADR 0028: TypeReceiptCartonReceived, TypeCartonDiscrepancyRaised, TypeReceiptClosed in internal/adapters/inbound/kafka/receipt_consumer.go). The consumer books the vendor's seller-shipment cartons onto inbound-receiving's ASNs and reports the receipts back to the network, under the stable group INBOUND_RECEIPT_CONSUMER_GROUP (set in warehouse-infra develop as network-fulfillment-inbound-receiving), reading from the first offset when the group is new. The Kafka key is the ASN number (used when the payload carries no asn_number). A message that is not a valid CloudEvent, or whose data breaks inbound-receiving's contract, is dead-lettered to warehouse.inbound-receiving.events.dlq (headers x-dlq-source-topic, x-dlq-error, x-dlq-failed-at) and committed past; other failures are retried with backoff first and dead-lettered when exhausted. Unknown types are skipped.

    Apply the receipt handover of the inbound loop (ADR 0028).

    Operation IDconsumeInboundReceiptEvents

    Available only on servers:

    Accepts one of the following messages:

    • #0Receipt carton received (consumed from inbound-receiving)

      One carton of a receipt was received (identity-only handover to this service; the carton contents stay in inbound-receiving).

      CONSUMED, not produced. Pinned by inbound-receiving's apis/asyncapi.yaml: source=/warehouse/inbound-receiving, type com.warehouse.wms.inbound-receiving.receipt.ReceiptCartonReceived.

      object

      CloudEvents 1.0 envelope of inbound-receiving's ReceiptCartonReceived, the integration payload, as consumed here.

      Examples

    • #1Carton discrepancy raised (consumed from inbound-receiving)

      A carton-level finding was raised during receipt.

      CONSUMED, not produced. Pinned by inbound-receiving's apis/asyncapi.yaml: source=/warehouse/inbound-receiving, type com.warehouse.wms.inbound-receiving.receipt.CartonDiscrepancyRaised.

      object

      CloudEvents 1.0 envelope of inbound-receiving's CartonDiscrepancyRaised, the integration payload, as consumed here.

      Examples

    • #2Receipt closed (consumed from inbound-receiving)

      A receipt was closed.

      CONSUMED, not produced. Pinned by inbound-receiving's apis/asyncapi.yaml: source=/warehouse/inbound-receiving, type com.warehouse.wms.inbound-receiving.receipt.ReceiptClosed.

      object

      CloudEvents 1.0 envelope of inbound-receiving's ReceiptClosed, the integration payload, as consumed here.

      Examples

  • SUB warehouse.outbound-shipping.events

    outbound-shipping's integration topic, CONSUMED by this service, not published (the event path of ADR 0014's 2026-11-06 addendum: TypeShipmentConfirmed in internal/adapters/inbound/kafka/shipment_confirmed_consumer.go). The consumer joins each ShipmentConfirmed.orders[].order_id on NetworkOrder.localOrderId — the persisted mapping ADR 0014 named as the missing correlation — and confirms the mapped network orders through the ONE ConfirmNetworkOrderShipment use case the manual POST /network-orders/{networkRef}/shipment-confirmation also uses (kept one release as the operator fallback, D6). Delivery is at-least-once under the stable group OUTBOUND_SHIPPING_CONSUMER_GROUP (default network-fulfillment-outbound-shipping), reading from the first offset when the group is new; dedupe is the use case's (load_id, order_id) confirmation key, which subsumes the CloudEvents id — a redelivered or re-published ShipmentConfirmed confirms nothing new, and the manual endpoint racing the event double-submits nothing. An order_id no NetworkOrder carries (a local order raised from customer demand sharing the load) is skipped and logged. Unknown types are skipped. A message that is not a valid CloudEvent, or whose data breaks outbound-shipping's contract, is dead-lettered to warehouse.outbound-shipping.events.dlq (headers x-dlq-source-topic, x-dlq-error, x-dlq-failed-at) and committed past. The Kafka key is the load id (used when the payload carries no load_id).

    Confirm network orders from the fleet's shipment facts (ADR 0014 addendum).

    Operation IDconsumeOutboundShippingEvents

    Available only on servers:

    Accepts the following message:

    Shipment confirmed (consumed from outbound-shipping)

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

    CONSUMED, not produced. Pinned by outbound-shipping's merged apis/asyncapi.yaml (IQVO/outbound-shipping PR #2): source=/warehouse/outbound-shipping, type com.warehouse.wms.outbound-shipping.outboundload.ShipmentConfirmed, subject and Kafka key = the load id, dataschema urn:warehouse:outbound-shipping:events:ShipmentConfirmed:v1. orders[].order_id is order-management's OrderId — the join key on NetworkOrder.localOrderId (ADR 0014 addendum). A per-order package_count is an additive producer change that has NOT landed; this consumer's decode tolerates it and reports the real count the day it ships, keeping ADR 0026's single-package placeholder until then.

    allOf

    Examples

Messages

  • #1Network order received

    Demand from the external retail network was turned into a NetworkOrder; the 24h acknowledgement clock is running.

    Message IDNetworkOrderReceived

    Raised by the NetworkOrder aggregate the moment network demand is received — whether or not every line could be translated into our SKU vocabulary. lineCount is the number of successfully translated lines (0 for demand rejected as untranslatable).

    type: com.warehouse.wes.network-fulfillment.networkorder.NetworkOrderReceived — dataschema: urn:warehouse:network-fulfillment:events:NetworkOrderReceived:v1.

    allOf
    object
    object
    • #networkorder
    • #network-fulfillment
  • #2Network order submitted

    We told the network yes (the order is SUBMITTED) and a held order exists in order-management; the submission is not yet reconciled.

    Message IDNetworkOrderSubmitted

    Raised by the NetworkOrder aggregate in the same atomic scope that moves the order to SUBMITTED (ADR 0016): the decision to accept in full has been taken, the network has been told yes and a held order exists in order-management (localOrderId), but the submission is only accepted-for-processing and NOT yet reconciled against the network's transaction-status record (ADR 0001 §5). It is exactly what NetworkOrderAcknowledged v1 used to announce. A consumer must not treat it as a settled commitment: the settle is NetworkOrderAcknowledged (v2); a refused submission is NetworkOrderRejected with reason=SUBMISSION_FAILED.

    type: com.warehouse.wes.network-fulfillment.networkorder.NetworkOrderSubmitted — dataschema: urn:warehouse:network-fulfillment:events:NetworkOrderSubmitted:v1.

    allOf
    object
    object
    • #networkorder
    • #network-fulfillment
  • #3Network order acknowledged (v2)

    The order settled ACKNOWLEDGED: the network's transaction status confirmed the submission.

    Message IDNetworkOrderAcknowledged

    Raised by the NetworkOrder aggregate when ReconcileSubmittedOrders settles the order SUBMITTED -> ACKNOWLEDGED (ADR 0016), in the same atomic scope as the state save and before the held order is released. It is a settled commitment. receivedAt is carried so consumers can compute acknowledgement latency (at - receivedAt) without a second lookup — the analytics projection does exactly that. A pending submission raises nothing; a failed one raises NetworkOrderRejected with reason=SUBMISSION_FAILED and never this event.

    Versioning (breaking change). Until ADR 0016 this event was published when the order moved to SUBMITTED. Because its meaning changed, it is published as a NEW .v2 type and :v2 dataschema (fleet CloudEvents standard §4); the v1 type com.warehouse.wes.network-fulfillment.networkorder.NetworkOrderAcknowledged is no longer published. The payload field set is unchanged. The earlier fact is now NetworkOrderSubmitted.

    type: com.warehouse.wes.network-fulfillment.networkorder.NetworkOrderAcknowledged.v2 — dataschema: urn:warehouse:network-fulfillment:events:NetworkOrderAcknowledged:v2.

    allOf
    object
    object
    • #networkorder
    • #network-fulfillment
  • #4Network order rejected

    We told the network no — or the acknowledgement window closed unanswered.

    Message IDNetworkOrderRejected

    Raised by the NetworkOrder aggregate whenever the order is refused. reason distinguishes a catalogue gap, a capacity signal and an operational failure.

    type: com.warehouse.wes.network-fulfillment.networkorder.NetworkOrderRejected — dataschema: urn:warehouse:network-fulfillment:events:NetworkOrderRejected:v1.

    allOf
    object
    object
    • #networkorder
    • #network-fulfillment
  • #5Network order shipment confirmed

    A shipment was confirmed back to the network, closing the order.

    Message IDNetworkOrderShipmentConfirmed

    Raised by the NetworkOrder aggregate when its shipment is confirmed to the network, by ConfirmNetworkOrderShipment (POST /network-orders/{networkRef}/shipment-confirmation, ADR 0014). The use case saves the order as CONFIRMED and publishes this event in one atomic scope, then submits the confirmation to the network.

    type: com.warehouse.wes.network-fulfillment.networkorder.NetworkOrderShipmentConfirmed — dataschema: urn:warehouse:network-fulfillment:events:NetworkOrderShipmentConfirmed:v1.

    allOf
    object
    object
    • #networkorder
    • #network-fulfillment
  • #6Acknowledgement deadline at risk

    An order's 24h acknowledgement window has closed with no answer — a reported fact, not a state transition.

    Message IDAcknowledgementDeadlineAtRisk

    Raised by SweepAcknowledgementDeadlines for every order found still NEW past its acknowledgeBy instant (ADR 0001 §6). The sweep itself NEVER mutates the aggregate — this event re-fires on every pass for as long as the condition holds true, and a consumer must not treat it as edge-triggered. RejectOverdueOrders is the separate use case (its own code path, its own audit trail) that performs the actual rejection, publishing NetworkOrderRejected with reason=ACKNOWLEDGEMENT_DEADLINE_MISSED.

    type: com.warehouse.wes.network-fulfillment.networkorder.AcknowledgementDeadlineAtRisk — dataschema: urn:warehouse:network-fulfillment:events:AcknowledgementDeadlineAtRisk:v1.

    allOf
    object
    object
    • #networkorder
    • #network-fulfillment
  • #7Orphaned order-management hold cancelled

    A hold order-management made for demand nobody decided was found past the acknowledgement window plus the grace and cancelled — a reported fact, not a state transition.

    Message IDOrphanedHoldCancelled

    Raised by SweepOrphanedHolds (ADR 0024) once per hold it frees: the order-management order raised for this demand was still held after acknowledgeBy plus ORPHAN_HOLD_GRACE, the NetworkOrder was never committed to (still NEW, or REJECTED with the cancel never confirmed), and order-management confirmed the hold is gone. The sweep NEVER changes the order's state — RejectOverdueOrders owns that and publishes NetworkOrderRejected — and it raises this event only when the hold was actually freed: a hold order-management reports as already released (409/422) was not an orphan and raises nothing. The outcome is recorded in the same transaction as the event, so it fires once per hold and is not re-raised on later passes.

    answer is what order-management said to the cancel: CANCELLED (2xx) or NOT_FOUND (404, the hold no longer existed — still done). localOrderId is the order-management order that was held; it is published here and nowhere else for an order that was never submitted, because GET /network-orders/{networkRef} exposes localOrderId only from SUBMITTED on.

    type: com.warehouse.wes.network-fulfillment.networkorder.OrphanedHoldCancelled — dataschema: urn:warehouse:network-fulfillment:events:OrphanedHoldCancelled:v1.

    allOf
    object
    object
    • #networkorder
    • #network-fulfillment
  • #8Network order received (analytics)

    Demand from the external retail network was turned into a NetworkOrder; the 24h acknowledgement clock is running.

    Message IDNetworkOrderReceivedAnalytics

    Raised by the NetworkOrder aggregate the moment network demand is received — whether or not every line could be translated into our SKU vocabulary. lineCount is the number of successfully translated lines (0 for demand rejected as untranslatable). Consumed by the analytics projector.

    type: com.warehouse.wes.network-fulfillment.networkorder.NetworkOrderReceived — dataschema: urn:warehouse:network-fulfillment:analytics:NetworkOrderReceived:v1.

    allOf
    object
    object
    • #networkorder
    • #analytics
  • #9Network order submitted (analytics)

    We told the network yes (the order is SUBMITTED) and a held order exists in order-management; not yet reconciled.

    Message IDNetworkOrderSubmittedAnalytics

    Raised when the order moves to SUBMITTED; what NetworkOrderAcknowledged v1 used to announce (ADR 0016). Recognised and claimed by the analytics projector, with no effect on the acknowledgement report.

    type: com.warehouse.wes.network-fulfillment.networkorder.NetworkOrderSubmitted — dataschema: urn:warehouse:network-fulfillment:analytics:NetworkOrderSubmitted:v1.

    allOf
    object
    object
    • #networkorder
    • #analytics
  • #10Network order acknowledged (analytics, v2)

    The order settled ACKNOWLEDGED: the network's transaction status confirmed the submission.

    Message IDNetworkOrderAcknowledgedAnalytics

    Raised when ReconcileSubmittedOrders settles the order SUBMITTED -> ACKNOWLEDGED (ADR 0016). receivedAt is carried so consumers can compute acknowledgement latency (at - receivedAt) without a second lookup — the analytics projection does exactly that. Consumed by the analytics projector.

    Versioning. This is the v2 type; the meaning of the unsuffixed v1 type changed (it was published at SUBMITTED, before reconciliation), which the fleet CloudEvents standard treats as breaking. The v1 type com.warehouse.wes.network-fulfillment.networkorder.NetworkOrderAcknowledged (dataschema ...:analytics:NetworkOrderAcknowledged:v1) is no longer published but messages already on the topic stay, and the projector still handles them as before (v1 counted once, with the same latency).

    type: com.warehouse.wes.network-fulfillment.networkorder.NetworkOrderAcknowledged.v2 — dataschema: urn:warehouse:network-fulfillment:analytics:NetworkOrderAcknowledged:v2.

    allOf
    object
    object
    • #networkorder
    • #analytics
  • #11Network order rejected (analytics)

    We told the network no — or the acknowledgement window closed unanswered.

    Message IDNetworkOrderRejectedAnalytics

    Raised by the NetworkOrder aggregate whenever the order is refused. reason distinguishes a catalogue gap, a capacity signal and an operational failure. Consumed by the analytics projector.

    type: com.warehouse.wes.network-fulfillment.networkorder.NetworkOrderRejected — dataschema: urn:warehouse:network-fulfillment:analytics:NetworkOrderRejected:v1.

    allOf
    object
    object
    • #networkorder
    • #analytics
  • #12Network order shipment confirmed (analytics)

    A shipment was confirmed back to the network, closing the order.

    Message IDNetworkOrderShipmentConfirmedAnalytics

    Raised by the NetworkOrder aggregate when its shipment is confirmed to the network, by ConfirmNetworkOrderShipment (POST /network-orders/{networkRef}/shipment-confirmation, ADR 0014). Not used by the analytics projector today (ignored as an unknown type).

    type: com.warehouse.wes.network-fulfillment.networkorder.NetworkOrderShipmentConfirmed — dataschema: urn:warehouse:network-fulfillment:analytics:NetworkOrderShipmentConfirmed:v1.

    allOf
    object
    object
    • #networkorder
    • #analytics
  • #13Acknowledgement deadline at risk (analytics)

    An order's 24h acknowledgement window has closed with no answer — a reported fact, not a state transition.

    Message IDAcknowledgementDeadlineAtRiskAnalytics

    Raised by SweepAcknowledgementDeadlines for every order found still NEW past its acknowledgeBy instant (ADR 0001 §6), and published on the analytics topic like every other event (the composition root's fan-out publishes each event to both topics). Re-fires on every sweep pass while the condition holds — not edge-triggered. Not used by the analytics projector today (ignored as an unknown type).

    type: com.warehouse.wes.network-fulfillment.networkorder.AcknowledgementDeadlineAtRisk — dataschema: urn:warehouse:network-fulfillment:analytics:AcknowledgementDeadlineAtRisk:v1.

    allOf
    object
    object
    • #networkorder
    • #analytics
  • #14Orphaned order-management hold cancelled (analytics)

    A hold order-management made for demand nobody decided was found past the acknowledgement window plus the grace and cancelled — a reported fact, not a state transition.

    Message IDOrphanedHoldCancelledAnalytics

    Raised by SweepOrphanedHolds (ADR 0024) once per hold it frees: the order-management order raised for this demand was still held after acknowledgeBy plus ORPHAN_HOLD_GRACE, the NetworkOrder was never committed to (still NEW, or REJECTED with the cancel never confirmed), and order-management confirmed the hold is gone. The sweep NEVER changes the order's state — RejectOverdueOrders owns that and publishes NetworkOrderRejected — and it raises this event only when the hold was actually freed: a hold order-management reports as already released (409/422) was not an orphan and raises nothing. The outcome is recorded in the same transaction as the event, so it fires once per hold and is not re-raised on later passes.

    answer is what order-management said to the cancel: CANCELLED (2xx) or NOT_FOUND (404, the hold no longer existed — still done). localOrderId is the order-management order that was held; it is published here and nowhere else for an order that was never submitted, because GET /network-orders/{networkRef} exposes localOrderId only from SUBMITTED on.

    Published on the analytics topic like every other event (the composition root's fan-out publishes each event to both topics). Not used by the analytics projector today (ignored as an unknown type).

    type: com.warehouse.wes.network-fulfillment.networkorder.OrphanedHoldCancelled — dataschema: urn:warehouse:network-fulfillment:analytics:OrphanedHoldCancelled:v1.

    allOf
    object
    object
    • #networkorder
    • #analytics
  • #15Process path created (consumed from process-path-management)

    A process path was defined.

    Message IDProcessPathCreated

    CONSUMED, not produced. Pinned by process-path-management's apis/asyncapi.yaml: source=/warehouse/process-path-management, type com.warehouse.wes.process-path-management.processpath.ProcessPathCreated.

    object

    CloudEvents 1.0 envelope of process-path-management's ProcessPathCreated, the integration payload, as consumed here.

  • #16Process path updated (consumed from process-path-management)

    A process path definition changed.

    Message IDProcessPathUpdated

    CONSUMED, not produced. Pinned by process-path-management's apis/asyncapi.yaml: source=/warehouse/process-path-management, type com.warehouse.wes.process-path-management.processpath.ProcessPathUpdated.

    object

    CloudEvents 1.0 envelope of process-path-management's ProcessPathUpdated, the integration payload, as consumed here.

  • #17Process path deactivated (consumed from process-path-management)

    A process path was deactivated.

    Message IDProcessPathDeactivated

    CONSUMED, not produced. Pinned by process-path-management's apis/asyncapi.yaml: source=/warehouse/process-path-management, type com.warehouse.wes.process-path-management.processpath.ProcessPathDeactivated.

    object

    CloudEvents 1.0 envelope of process-path-management's ProcessPathDeactivated, the integration payload, as consumed here.

  • #18CPT schedule changed (consumed from process-path-management)

    The CPT cutoff schedule of a path changed.

    Message IDCPTScheduleChanged

    CONSUMED, not produced. Pinned by process-path-management's apis/asyncapi.yaml: source=/warehouse/process-path-management, type com.warehouse.wes.process-path-management.cptschedule.CPTScheduleChanged.

    object

    CloudEvents 1.0 envelope of process-path-management's CPTScheduleChanged, the integration payload, as consumed here.

  • #19Path capacity changed (consumed from wes-work-planning)

    The remaining admission capacity of a process path changed.

    Message IDPathCapacityChanged

    CONSUMED, not produced. Pinned by wes-work-planning's apis/asyncapi.yaml: source=/warehouse/wes-work-planning, type com.warehouse.wes.work-planning.workpool.PathCapacityChanged.

    object

    CloudEvents 1.0 envelope of wes-work-planning's PathCapacityChanged, the integration payload, as consumed here.

  • #20Receipt carton received (consumed from inbound-receiving)

    One carton of a receipt was received (identity-only handover to this service; the carton contents stay in inbound-receiving).

    Message IDReceiptCartonReceived

    CONSUMED, not produced. Pinned by inbound-receiving's apis/asyncapi.yaml: source=/warehouse/inbound-receiving, type com.warehouse.wms.inbound-receiving.receipt.ReceiptCartonReceived.

    object

    CloudEvents 1.0 envelope of inbound-receiving's ReceiptCartonReceived, the integration payload, as consumed here.

  • #21Carton discrepancy raised (consumed from inbound-receiving)

    A carton-level finding was raised during receipt.

    Message IDCartonDiscrepancyRaised

    CONSUMED, not produced. Pinned by inbound-receiving's apis/asyncapi.yaml: source=/warehouse/inbound-receiving, type com.warehouse.wms.inbound-receiving.receipt.CartonDiscrepancyRaised.

    object

    CloudEvents 1.0 envelope of inbound-receiving's CartonDiscrepancyRaised, the integration payload, as consumed here.

  • #22Receipt closed (consumed from inbound-receiving)

    A receipt was closed.

    Message IDReceiptClosed

    CONSUMED, not produced. Pinned by inbound-receiving's apis/asyncapi.yaml: source=/warehouse/inbound-receiving, type com.warehouse.wms.inbound-receiving.receipt.ReceiptClosed.

    object

    CloudEvents 1.0 envelope of inbound-receiving's ReceiptClosed, the integration payload, as consumed here.

  • #23Shipment confirmed (consumed from outbound-shipping)

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

    Message IDShipmentConfirmed

    CONSUMED, not produced. Pinned by outbound-shipping's merged apis/asyncapi.yaml (IQVO/outbound-shipping PR #2): source=/warehouse/outbound-shipping, type com.warehouse.wms.outbound-shipping.outboundload.ShipmentConfirmed, subject and Kafka key = the load id, dataschema urn:warehouse:outbound-shipping:events:ShipmentConfirmed:v1. orders[].order_id is order-management's OrderId — the join key on NetworkOrder.localOrderId (ADR 0014 addendum). A per-order package_count is an additive producer change that has NOT landed; this consumer's decode tolerates it and reports the real count the day it ships, keeping ADR 0026's single-package placeholder until then.

    allOf

Schemas

  • object
  • object [CloudEvents 1.0 envelope (structured mode)]

    The single envelope every message of this service uses. Each event schema below composes it with allOf and pins type, dataschema and the data shape. No other envelope exists.

  • object [NetworkOrderReceived payload]
  • object [NetworkOrderSubmitted payload]
  • object [NetworkOrderAcknowledged payload (v2)]

    Field set identical to the v1 payload; the MEANING changed (ADR 0016): at is the instant the order settled ACKNOWLEDGED.

  • object [NetworkOrderRejected payload]
  • object [NetworkOrderShipmentConfirmed payload]
  • object [AcknowledgementDeadlineAtRisk payload]
  • object [OrphanedHoldCancelled payload]
  • allOf
  • allOf
  • allOf
  • allOf
  • allOf
  • allOf
  • allOf
  • allOf
  • allOf
  • allOf
  • allOf
  • allOf
  • allOf
  • allOf
  • object

    CloudEvents 1.0 envelope of process-path-management's ProcessPathCreated, the integration payload, as consumed here.

  • object

    CloudEvents 1.0 envelope of process-path-management's ProcessPathUpdated, the integration payload, as consumed here.

  • object

    CloudEvents 1.0 envelope of process-path-management's ProcessPathDeactivated, the integration payload, as consumed here.

  • object

    CloudEvents 1.0 envelope of process-path-management's CPTScheduleChanged, the integration payload, as consumed here.

  • object

    CloudEvents 1.0 envelope of wes-work-planning's PathCapacityChanged, the integration payload, as consumed here.

  • object

    CloudEvents 1.0 envelope of inbound-receiving's ReceiptCartonReceived, the integration payload, as consumed here.

  • object

    CloudEvents 1.0 envelope of inbound-receiving's CartonDiscrepancyRaised, the integration payload, as consumed here.

  • object

    CloudEvents 1.0 envelope of inbound-receiving's ReceiptClosed, the integration payload, as consumed here.

  • object
  • allOf