asyncapi: 2.6.0 info: title: Network Fulfillment Events version: "2.0.0" description: | 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....`. 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:::v`) 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. contact: name: Network Fulfillment — IQVO url: https://github.com/IQVO/network-fulfillment email: claudioed.oliveira@gmail.com license: name: MIT url: https://opensource.org/licenses/MIT tags: - name: network-fulfillment description: | The Network Fulfillment bounded context (WES subdomain) — the ACL between the fleet and the external retail fulfillment network. - name: networkorder description: Events raised by the `NetworkOrder` aggregate. - name: analytics description: | The internal analytics stream consumed by this service's own acknowledgement-report projector. servers: production: url: kafka.warehouse-systems.internal:9092 protocol: kafka description: Shared warehouse-systems Kafka cluster. defaultContentType: application/cloudevents+json channels: warehouse.network-fulfillment.events: description: | 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::v` (v1, except `NetworkOrderAcknowledged` which is v2 — ADR 0016). subscribe: operationId: consumeNetworkFulfillmentEvents summary: Consume Network Fulfillment integration events. description: | Every message is a CloudEvents 1.0 structured-mode event; route on the full `type` attribute. tags: - name: network-fulfillment message: oneOf: - $ref: "#/components/messages/NetworkOrderReceived" - $ref: "#/components/messages/NetworkOrderSubmitted" - $ref: "#/components/messages/NetworkOrderAcknowledged" - $ref: "#/components/messages/NetworkOrderRejected" - $ref: "#/components/messages/NetworkOrderShipmentConfirmed" - $ref: "#/components/messages/AcknowledgementDeadlineAtRisk" - $ref: "#/components/messages/OrphanedHoldCancelled" warehouse.network-fulfillment.analytics: description: | 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::v` (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. subscribe: operationId: consumeNetworkFulfillmentAnalytics summary: Consume Network Fulfillment analytics events. description: | Every message is a CloudEvents 1.0 structured-mode event; route on the full `type` attribute. tags: - name: analytics message: oneOf: - $ref: "#/components/messages/NetworkOrderReceivedAnalytics" - $ref: "#/components/messages/NetworkOrderSubmittedAnalytics" - $ref: "#/components/messages/NetworkOrderAcknowledgedAnalytics" - $ref: "#/components/messages/NetworkOrderRejectedAnalytics" - $ref: "#/components/messages/NetworkOrderShipmentConfirmedAnalytics" - $ref: "#/components/messages/AcknowledgementDeadlineAtRiskAnalytics" - $ref: "#/components/messages/OrphanedHoldCancelledAnalytics" warehouse.process-path-management.events: description: | 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. subscribe: operationId: consumeProcessPathEvents summary: Keep the local process-path and CPT-schedule capability cache current. message: oneOf: - $ref: "#/components/messages/ProcessPathCreated" - $ref: "#/components/messages/ProcessPathUpdated" - $ref: "#/components/messages/ProcessPathDeactivated" - $ref: "#/components/messages/CPTScheduleChanged" warehouse.work-planning.events: description: | 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). subscribe: operationId: consumeWorkPlanningEvents summary: Keep the local remaining-admission-capacity read model current. message: $ref: "#/components/messages/PathCapacityChanged" warehouse.inbound-receiving.events: description: | 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. subscribe: operationId: consumeInboundReceiptEvents summary: Apply the receipt handover of the inbound loop (ADR 0028). message: oneOf: - $ref: "#/components/messages/ReceiptCartonReceived" - $ref: "#/components/messages/CartonDiscrepancyRaised" - $ref: "#/components/messages/ReceiptClosed" warehouse.outbound-shipping.events: description: | 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`). subscribe: operationId: consumeOutboundShippingEvents summary: Confirm network orders from the fleet's shipment facts (ADR 0014 addendum). message: oneOf: - $ref: "#/components/messages/ShipmentConfirmed" components: messages: NetworkOrderReceived: x-no-consumer-reason: "facts of the external-network channel, no consumer by decision (K19)" name: NetworkOrderReceived title: Network order received summary: "Demand from the external retail network was turned into a NetworkOrder; the 24h acknowledgement clock is running." description: | 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`. contentType: application/cloudevents+json headers: $ref: "#/components/schemas/KafkaHeaders" bindings: kafka: key: type: string description: Network order reference (networkRef), identical to `subject`. tags: - name: networkorder - name: network-fulfillment payload: $ref: "#/components/schemas/NetworkOrderReceivedEvent" examples: - name: networkOrderReceived summary: "Network order received for network order po-1." headers: content-type: "application/cloudevents+json; charset=UTF-8" payload: specversion: "1.0" id: "9f1c2b7e-4c3a-4a1d-9f0b-6c2b8a7d1e33" source: "/warehouse/network-fulfillment" type: "com.warehouse.wes.network-fulfillment.networkorder.NetworkOrderReceived" subject: "po-1" time: "2026-09-23T08:00:00Z" datacontenttype: "application/json" dataschema: "urn:warehouse:network-fulfillment:events:NetworkOrderReceived:v1" data: networkRef: "po-1" siteId: "site-1" requiredShipBy: "2026-09-25T08:00:00Z" acknowledgeBy: "2026-09-24T08:00:00Z" lineCount: 2 at: "2026-09-23T08:00:00Z" NetworkOrderSubmitted: x-no-consumer-reason: "facts of the external-network channel, no consumer by decision (K19)" name: NetworkOrderSubmitted title: Network order submitted summary: "We told the network yes (the order is SUBMITTED) and a held order exists in order-management; the submission is not yet reconciled." description: | 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`. contentType: application/cloudevents+json headers: $ref: "#/components/schemas/KafkaHeaders" bindings: kafka: key: type: string description: Network order reference (networkRef), identical to `subject`. tags: - name: networkorder - name: network-fulfillment payload: $ref: "#/components/schemas/NetworkOrderSubmittedEvent" examples: - name: networkOrderSubmitted summary: "Network order submitted for network order po-1." headers: content-type: "application/cloudevents+json; charset=UTF-8" payload: specversion: "1.0" id: "9f1c2b7e-4c3a-4a1d-9f0b-6c2b8a7d1e34" source: "/warehouse/network-fulfillment" type: "com.warehouse.wes.network-fulfillment.networkorder.NetworkOrderSubmitted" subject: "po-1" time: "2026-09-23T08:00:00Z" datacontenttype: "application/json" dataschema: "urn:warehouse:network-fulfillment:events:NetworkOrderSubmitted:v1" data: networkRef: "po-1" siteId: "site-1" localOrderId: "ord-1" receivedAt: "2026-09-23T07:59:00Z" at: "2026-09-23T08:00:00Z" NetworkOrderAcknowledged: name: NetworkOrderAcknowledged title: Network order acknowledged (v2) summary: "The order settled ACKNOWLEDGED: the network's transaction status confirmed the submission." description: | 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`. contentType: application/cloudevents+json headers: $ref: "#/components/schemas/KafkaHeaders" bindings: kafka: key: type: string description: Network order reference (networkRef), identical to `subject`. tags: - name: networkorder - name: network-fulfillment payload: $ref: "#/components/schemas/NetworkOrderAcknowledgedEvent" examples: - name: networkOrderAcknowledged summary: "Network order acknowledged for network order po-1." headers: content-type: "application/cloudevents+json; charset=UTF-8" payload: specversion: "1.0" id: "9f1c2b7e-4c3a-4a1d-9f0b-6c2b8a7d1e33" source: "/warehouse/network-fulfillment" type: "com.warehouse.wes.network-fulfillment.networkorder.NetworkOrderAcknowledged.v2" subject: "po-1" time: "2026-09-23T08:05:00Z" datacontenttype: "application/json" dataschema: "urn:warehouse:network-fulfillment:events:NetworkOrderAcknowledged:v2" data: networkRef: "po-1" siteId: "site-1" localOrderId: "ord-1" receivedAt: "2026-09-23T07:59:00Z" at: "2026-09-23T08:05:00Z" NetworkOrderRejected: x-no-consumer-reason: "facts of the external-network channel, no consumer by decision (K19)" name: NetworkOrderRejected title: Network order rejected summary: "We told the network no \u2014 or the acknowledgement window closed unanswered." description: | 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`. contentType: application/cloudevents+json headers: $ref: "#/components/schemas/KafkaHeaders" bindings: kafka: key: type: string description: Network order reference (networkRef), identical to `subject`. tags: - name: networkorder - name: network-fulfillment payload: $ref: "#/components/schemas/NetworkOrderRejectedEvent" examples: - name: networkOrderRejected summary: "Network order rejected for network order po-1." headers: content-type: "application/cloudevents+json; charset=UTF-8" payload: specversion: "1.0" id: "9f1c2b7e-4c3a-4a1d-9f0b-6c2b8a7d1e33" source: "/warehouse/network-fulfillment" type: "com.warehouse.wes.network-fulfillment.networkorder.NetworkOrderRejected" subject: "po-1" time: "2026-09-23T08:00:00Z" datacontenttype: "application/json" dataschema: "urn:warehouse:network-fulfillment:events:NetworkOrderRejected:v1" data: networkRef: "po-1" siteId: "site-1" reason: "UNTRANSLATABLE_SKU" at: "2026-09-23T08:00:00Z" NetworkOrderShipmentConfirmed: x-no-consumer-reason: "facts of the external-network channel, no consumer by decision (K19)" name: NetworkOrderShipmentConfirmed title: Network order shipment confirmed summary: "A shipment was confirmed back to the network, closing the order." description: | 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`. contentType: application/cloudevents+json headers: $ref: "#/components/schemas/KafkaHeaders" bindings: kafka: key: type: string description: Network order reference (networkRef), identical to `subject`. tags: - name: networkorder - name: network-fulfillment payload: $ref: "#/components/schemas/NetworkOrderShipmentConfirmedEvent" examples: - name: networkOrderShipmentConfirmed summary: "Network order shipment confirmed for network order po-1." headers: content-type: "application/cloudevents+json; charset=UTF-8" payload: specversion: "1.0" id: "9f1c2b7e-4c3a-4a1d-9f0b-6c2b8a7d1e33" source: "/warehouse/network-fulfillment" type: "com.warehouse.wes.network-fulfillment.networkorder.NetworkOrderShipmentConfirmed" subject: "po-1" time: "2026-09-23T08:00:00Z" datacontenttype: "application/json" dataschema: "urn:warehouse:network-fulfillment:events:NetworkOrderShipmentConfirmed:v1" data: networkRef: "po-1" siteId: "site-1" localOrderId: "ord-1" at: "2026-09-23T08:00:00Z" AcknowledgementDeadlineAtRisk: name: AcknowledgementDeadlineAtRisk title: Acknowledgement deadline at risk summary: "An order's 24h acknowledgement window has closed with no answer — a reported fact, not a state transition." description: | 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`. contentType: application/cloudevents+json headers: $ref: "#/components/schemas/KafkaHeaders" bindings: kafka: key: type: string description: Network order reference (networkRef), identical to `subject`. tags: - name: networkorder - name: network-fulfillment payload: $ref: "#/components/schemas/AcknowledgementDeadlineAtRiskEvent" examples: - name: acknowledgementDeadlineAtRisk summary: "Network order po-1's acknowledgement window has closed unanswered." headers: content-type: "application/cloudevents+json; charset=UTF-8" payload: specversion: "1.0" id: "1a2b3c4d-5e6f-4788-9900-aabbccddeeff" source: "/warehouse/network-fulfillment" type: "com.warehouse.wes.network-fulfillment.networkorder.AcknowledgementDeadlineAtRisk" subject: "po-1" time: "2026-09-24T08:00:00Z" datacontenttype: "application/json" dataschema: "urn:warehouse:network-fulfillment:events:AcknowledgementDeadlineAtRisk:v1" data: networkRef: "po-1" siteId: "site-1" acknowledgeBy: "2026-09-24T08:00:00Z" at: "2026-09-24T08:00:00Z" OrphanedHoldCancelled: name: OrphanedHoldCancelled title: Orphaned order-management hold cancelled summary: "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." description: | 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`. contentType: application/cloudevents+json headers: $ref: "#/components/schemas/KafkaHeaders" bindings: kafka: key: type: string description: Network order reference (networkRef), identical to `subject`. tags: - name: networkorder - name: network-fulfillment payload: $ref: "#/components/schemas/OrphanedHoldCancelledEvent" examples: - name: orphanedHoldCancelled summary: "The hold order-management made for network order po-1 was cancelled two hours after its window closed." headers: content-type: "application/cloudevents+json; charset=UTF-8" payload: specversion: "1.0" id: "2b3c4d5e-6f70-4899-8011-bbccddeeff00" source: "/warehouse/network-fulfillment" type: "com.warehouse.wes.network-fulfillment.networkorder.OrphanedHoldCancelled" subject: "po-1" time: "2026-09-23T08:00:00Z" datacontenttype: "application/json" dataschema: "urn:warehouse:network-fulfillment:events:OrphanedHoldCancelled:v1" data: networkRef: "po-1" siteId: "site-1" localOrderId: "ord-1" acknowledgeBy: "2026-09-22T06:00:00Z" answer: "CANCELLED" at: "2026-09-23T08:00:00Z" NetworkOrderReceivedAnalytics: name: NetworkOrderReceivedAnalytics title: Network order received (analytics) summary: "Demand from the external retail network was turned into a NetworkOrder; the 24h acknowledgement clock is running." description: | 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`. contentType: application/cloudevents+json headers: $ref: "#/components/schemas/KafkaHeaders" bindings: kafka: key: type: string description: Network order reference (networkRef), identical to `subject`. tags: - name: networkorder - name: analytics payload: $ref: "#/components/schemas/NetworkOrderReceivedAnalyticsEvent" examples: - name: networkOrderReceivedAnalytics summary: "Network order received for network order po-1." headers: content-type: "application/cloudevents+json; charset=UTF-8" payload: specversion: "1.0" id: "3d4a1f60-2b8e-4c17-8a55-0c6f9d2b41aa" source: "/warehouse/network-fulfillment" type: "com.warehouse.wes.network-fulfillment.networkorder.NetworkOrderReceived" subject: "po-1" time: "2026-09-23T08:00:00Z" datacontenttype: "application/json" dataschema: "urn:warehouse:network-fulfillment:analytics:NetworkOrderReceived:v1" data: networkRef: "po-1" siteId: "site-1" requiredShipBy: "2026-09-25T08:00:00Z" acknowledgeBy: "2026-09-24T08:00:00Z" lineCount: 2 at: "2026-09-23T08:00:00Z" NetworkOrderSubmittedAnalytics: name: NetworkOrderSubmittedAnalytics title: Network order submitted (analytics) summary: "We told the network yes (the order is SUBMITTED) and a held order exists in order-management; not yet reconciled." description: | 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`. contentType: application/cloudevents+json headers: $ref: "#/components/schemas/KafkaHeaders" bindings: kafka: key: type: string description: Network order reference (networkRef), identical to `subject`. tags: - name: networkorder - name: analytics payload: $ref: "#/components/schemas/NetworkOrderSubmittedAnalyticsEvent" examples: - name: networkOrderSubmittedAnalytics summary: "Network order submitted for network order po-1." headers: content-type: "application/cloudevents+json; charset=UTF-8" payload: specversion: "1.0" id: "3d4a1f60-2b8e-4c17-8a55-0c6f9d2b41ab" source: "/warehouse/network-fulfillment" type: "com.warehouse.wes.network-fulfillment.networkorder.NetworkOrderSubmitted" subject: "po-1" time: "2026-09-23T08:00:00Z" datacontenttype: "application/json" dataschema: "urn:warehouse:network-fulfillment:analytics:NetworkOrderSubmitted:v1" data: networkRef: "po-1" siteId: "site-1" localOrderId: "ord-1" receivedAt: "2026-09-23T07:59:00Z" at: "2026-09-23T08:00:00Z" NetworkOrderAcknowledgedAnalytics: name: NetworkOrderAcknowledgedAnalytics title: Network order acknowledged (analytics, v2) summary: "The order settled ACKNOWLEDGED: the network's transaction status confirmed the submission." description: | 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`. contentType: application/cloudevents+json headers: $ref: "#/components/schemas/KafkaHeaders" bindings: kafka: key: type: string description: Network order reference (networkRef), identical to `subject`. tags: - name: networkorder - name: analytics payload: $ref: "#/components/schemas/NetworkOrderAcknowledgedAnalyticsEvent" examples: - name: networkOrderAcknowledgedAnalytics summary: "Network order acknowledged for network order po-1." headers: content-type: "application/cloudevents+json; charset=UTF-8" payload: specversion: "1.0" id: "3d4a1f60-2b8e-4c17-8a55-0c6f9d2b41aa" source: "/warehouse/network-fulfillment" type: "com.warehouse.wes.network-fulfillment.networkorder.NetworkOrderAcknowledged.v2" subject: "po-1" time: "2026-09-23T08:05:00Z" datacontenttype: "application/json" dataschema: "urn:warehouse:network-fulfillment:analytics:NetworkOrderAcknowledged:v2" data: networkRef: "po-1" siteId: "site-1" localOrderId: "ord-1" receivedAt: "2026-09-23T07:59:00Z" at: "2026-09-23T08:05:00Z" NetworkOrderRejectedAnalytics: name: NetworkOrderRejectedAnalytics title: Network order rejected (analytics) summary: "We told the network no \u2014 or the acknowledgement window closed unanswered." description: | 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`. contentType: application/cloudevents+json headers: $ref: "#/components/schemas/KafkaHeaders" bindings: kafka: key: type: string description: Network order reference (networkRef), identical to `subject`. tags: - name: networkorder - name: analytics payload: $ref: "#/components/schemas/NetworkOrderRejectedAnalyticsEvent" examples: - name: networkOrderRejectedAnalytics summary: "Network order rejected for network order po-1." headers: content-type: "application/cloudevents+json; charset=UTF-8" payload: specversion: "1.0" id: "3d4a1f60-2b8e-4c17-8a55-0c6f9d2b41aa" source: "/warehouse/network-fulfillment" type: "com.warehouse.wes.network-fulfillment.networkorder.NetworkOrderRejected" subject: "po-1" time: "2026-09-23T08:00:00Z" datacontenttype: "application/json" dataschema: "urn:warehouse:network-fulfillment:analytics:NetworkOrderRejected:v1" data: networkRef: "po-1" siteId: "site-1" reason: "UNTRANSLATABLE_SKU" at: "2026-09-23T08:00:00Z" NetworkOrderShipmentConfirmedAnalytics: name: NetworkOrderShipmentConfirmedAnalytics title: Network order shipment confirmed (analytics) summary: "A shipment was confirmed back to the network, closing the order." description: | 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`. contentType: application/cloudevents+json headers: $ref: "#/components/schemas/KafkaHeaders" bindings: kafka: key: type: string description: Network order reference (networkRef), identical to `subject`. tags: - name: networkorder - name: analytics payload: $ref: "#/components/schemas/NetworkOrderShipmentConfirmedAnalyticsEvent" examples: - name: networkOrderShipmentConfirmedAnalytics summary: "Network order shipment confirmed for network order po-1." headers: content-type: "application/cloudevents+json; charset=UTF-8" payload: specversion: "1.0" id: "3d4a1f60-2b8e-4c17-8a55-0c6f9d2b41aa" source: "/warehouse/network-fulfillment" type: "com.warehouse.wes.network-fulfillment.networkorder.NetworkOrderShipmentConfirmed" subject: "po-1" time: "2026-09-23T08:00:00Z" datacontenttype: "application/json" dataschema: "urn:warehouse:network-fulfillment:analytics:NetworkOrderShipmentConfirmed:v1" data: networkRef: "po-1" siteId: "site-1" localOrderId: "ord-1" at: "2026-09-23T08:00:00Z" AcknowledgementDeadlineAtRiskAnalytics: name: AcknowledgementDeadlineAtRiskAnalytics title: Acknowledgement deadline at risk (analytics) summary: "An order's 24h acknowledgement window has closed with no answer — a reported fact, not a state transition." description: | 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`. contentType: application/cloudevents+json headers: $ref: "#/components/schemas/KafkaHeaders" bindings: kafka: key: type: string description: Network order reference (networkRef), identical to `subject`. tags: - name: networkorder - name: analytics payload: $ref: "#/components/schemas/AcknowledgementDeadlineAtRiskAnalyticsEvent" examples: - name: acknowledgementDeadlineAtRiskAnalytics summary: "Network order po-1's acknowledgement window has closed unanswered." headers: content-type: "application/cloudevents+json; charset=UTF-8" payload: specversion: "1.0" id: "5b6c7d8e-9f0a-4b1c-8d2e-3f4a5b6c7d8e" source: "/warehouse/network-fulfillment" type: "com.warehouse.wes.network-fulfillment.networkorder.AcknowledgementDeadlineAtRisk" subject: "po-1" time: "2026-09-24T08:00:00Z" datacontenttype: "application/json" dataschema: "urn:warehouse:network-fulfillment:analytics:AcknowledgementDeadlineAtRisk:v1" data: networkRef: "po-1" siteId: "site-1" acknowledgeBy: "2026-09-24T08:00:00Z" at: "2026-09-24T08:00:00Z" OrphanedHoldCancelledAnalytics: name: OrphanedHoldCancelledAnalytics title: Orphaned order-management hold cancelled (analytics) summary: "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." description: | 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`. contentType: application/cloudevents+json headers: $ref: "#/components/schemas/KafkaHeaders" bindings: kafka: key: type: string description: Network order reference (networkRef), identical to `subject`. tags: - name: networkorder - name: analytics payload: $ref: "#/components/schemas/OrphanedHoldCancelledAnalyticsEvent" examples: - name: orphanedHoldCancelledAnalytics summary: "The hold order-management made for network order po-1 was cancelled two hours after its window closed." headers: content-type: "application/cloudevents+json; charset=UTF-8" payload: specversion: "1.0" id: "3c4d5e6f-7081-4900-9122-ccddeeff0011" source: "/warehouse/network-fulfillment" type: "com.warehouse.wes.network-fulfillment.networkorder.OrphanedHoldCancelled" subject: "po-1" time: "2026-09-23T08:00:00Z" datacontenttype: "application/json" dataschema: "urn:warehouse:network-fulfillment:analytics:OrphanedHoldCancelled:v1" data: networkRef: "po-1" siteId: "site-1" localOrderId: "ord-1" acknowledgeBy: "2026-09-22T06:00:00Z" answer: "CANCELLED" at: "2026-09-23T08:00:00Z" ProcessPathCreated: name: ProcessPathCreated title: Process path created (consumed from process-path-management) summary: A process path was defined. description: | 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`. contentType: application/cloudevents+json payload: $ref: "#/components/schemas/ProcessPathCreatedEvent" ProcessPathUpdated: name: ProcessPathUpdated title: Process path updated (consumed from process-path-management) summary: A process path definition changed. description: | 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`. contentType: application/cloudevents+json payload: $ref: "#/components/schemas/ProcessPathUpdatedEvent" ProcessPathDeactivated: name: ProcessPathDeactivated title: Process path deactivated (consumed from process-path-management) summary: A process path was deactivated. description: | 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`. contentType: application/cloudevents+json payload: $ref: "#/components/schemas/ProcessPathDeactivatedEvent" CPTScheduleChanged: name: CPTScheduleChanged title: CPT schedule changed (consumed from process-path-management) summary: The CPT cutoff schedule of a path changed. description: | 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`. contentType: application/cloudevents+json payload: $ref: "#/components/schemas/CPTScheduleChangedEvent" PathCapacityChanged: name: PathCapacityChanged title: Path capacity changed (consumed from wes-work-planning) summary: The remaining admission capacity of a process path changed. description: | 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`. contentType: application/cloudevents+json payload: $ref: "#/components/schemas/PathCapacityChangedEvent" ReceiptCartonReceived: name: ReceiptCartonReceived title: Receipt carton received (consumed from inbound-receiving) summary: One carton of a receipt was received (identity-only handover to this service; the carton contents stay in inbound-receiving). description: | CONSUMED, not produced. Pinned by inbound-receiving's `apis/asyncapi.yaml`: `source=/warehouse/inbound-receiving`, type `com.warehouse.wms.inbound-receiving.receipt.ReceiptCartonReceived`. contentType: application/cloudevents+json payload: $ref: "#/components/schemas/ReceiptCartonReceivedEvent" CartonDiscrepancyRaised: name: CartonDiscrepancyRaised title: Carton discrepancy raised (consumed from inbound-receiving) summary: A carton-level finding was raised during receipt. description: | CONSUMED, not produced. Pinned by inbound-receiving's `apis/asyncapi.yaml`: `source=/warehouse/inbound-receiving`, type `com.warehouse.wms.inbound-receiving.receipt.CartonDiscrepancyRaised`. contentType: application/cloudevents+json payload: $ref: "#/components/schemas/CartonDiscrepancyRaisedEvent" ReceiptClosed: name: ReceiptClosed title: Receipt closed (consumed from inbound-receiving) summary: A receipt was closed. description: | CONSUMED, not produced. Pinned by inbound-receiving's `apis/asyncapi.yaml`: `source=/warehouse/inbound-receiving`, type `com.warehouse.wms.inbound-receiving.receipt.ReceiptClosed`. contentType: application/cloudevents+json payload: $ref: "#/components/schemas/ReceiptClosedEvent" ShipmentConfirmed: name: ShipmentConfirmed title: Shipment confirmed (consumed from outbound-shipping) summary: The trailer left with a closed load; the shipment is a fact. description: | 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. contentType: application/cloudevents+json payload: $ref: "#/components/schemas/ShipmentConfirmedEvent" schemas: KafkaHeaders: type: object required: - content-type properties: content-type: type: string description: Structured content mode media type. enum: ["application/cloudevents+json; charset=UTF-8"] traceparent: type: string description: | W3C trace context of the span that wrote the event (outbox mode, ADR 0022), when there was one. Optional. tracestate: type: string description: W3C trace state, when present. Optional. baggage: type: string description: W3C baggage, when the writing request carried any. Optional. CloudEvent: type: object title: CloudEvents 1.0 envelope (structured mode) description: | 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. required: - specversion - id - source - type - subject - time - datacontenttype - dataschema - data properties: specversion: type: string enum: ["1.0"] description: CloudEvents specification version. id: type: string format: uuid description: | UUID v4 minted once per occurrence and persisted with the outbox row, so a redelivery carries the same id. `(source, id)` is the consumer idempotency key. source: type: string format: uri-reference enum: ["/warehouse/network-fulfillment"] description: The producing service. type: type: string pattern: "^com\\.warehouse\\.wes\\.network-fulfillment\\.networkorder\\.[A-Z][A-Za-z]+(\\.v[0-9]+)?$" description: "`com.warehouse.wes.network-fulfillment.networkorder.`, with a `.v` suffix for a breaking version (e.g. `NetworkOrderAcknowledged.v2`, ADR 0016)." subject: type: string minLength: 1 description: The network order reference (networkRef) the event is about. time: type: string format: date-time description: The domain event's occurred-at instant, UTC, RFC 3339. datacontenttype: type: string enum: ["application/json"] dataschema: type: string format: uri pattern: "^urn:warehouse:network-fulfillment:(events|analytics):[A-Z][A-Za-z]+:v[0-9]+$" description: Names the payload shape and stream. data: type: object description: The domain event payload. NetworkOrderReceivedData: type: object title: NetworkOrderReceived payload required: - networkRef - siteId - requiredShipBy - acknowledgeBy - lineCount - at properties: networkRef: type: string description: "Network order reference (this context's NetworkRef). Also the CloudEvents `subject` and the Kafka key." siteId: type: string description: "Fulfilling site." requiredShipBy: type: string format: date-time description: "Ship-by deadline the network demands." acknowledgeBy: type: string format: date-time description: "End of the acknowledgement window." lineCount: type: integer description: "Number of lines translated into our vocabulary." at: type: string format: date-time description: "Domain occurred-at (same instant as the CloudEvents `time`)." NetworkOrderSubmittedData: type: object title: NetworkOrderSubmitted payload required: - networkRef - siteId - localOrderId - receivedAt - at properties: networkRef: type: string description: "Network order reference; also the `subject`." siteId: type: string description: "Fulfilling site." localOrderId: type: string description: "order-management held order id correlated to this network order." receivedAt: type: string format: date-time description: "When the order was received." at: type: string format: date-time description: "When the order moved to SUBMITTED (same instant as `time`)." NetworkOrderAcknowledgedData: type: object title: NetworkOrderAcknowledged payload (v2) description: "Field set identical to the v1 payload; the MEANING changed (ADR 0016): `at` is the instant the order settled ACKNOWLEDGED." required: - networkRef - siteId - localOrderId - receivedAt - at properties: networkRef: type: string description: "Network order reference; also the `subject`." siteId: type: string description: "Fulfilling site." localOrderId: type: string description: "order-management order id correlated to this network order." receivedAt: type: string format: date-time description: "When the order was received." at: type: string format: date-time description: "When the order settled ACKNOWLEDGED (same instant as `time`)." NetworkOrderRejectedData: type: object title: NetworkOrderRejected payload required: - networkRef - siteId - reason - at properties: networkRef: type: string description: "Network order reference; also the `subject`." siteId: type: string description: "Fulfilling site." reason: type: string enum: ["UNTRANSLATABLE_SKU", "INFEASIBLE_DEADLINE", "ACKNOWLEDGEMENT_DEADLINE_MISSED", "SUBMISSION_FAILED"] description: "Why the order was rejected." at: type: string format: date-time description: "Domain occurred-at (same instant as `time`)." NetworkOrderShipmentConfirmedData: type: object title: NetworkOrderShipmentConfirmed payload required: - networkRef - siteId - localOrderId - at properties: networkRef: type: string description: "Network order reference; also the `subject`." siteId: type: string description: "Fulfilling site." localOrderId: type: string description: "order-management order id." at: type: string format: date-time description: "Domain occurred-at (same instant as `time`)." AcknowledgementDeadlineAtRiskData: type: object title: AcknowledgementDeadlineAtRisk payload required: - networkRef - siteId - acknowledgeBy - at properties: networkRef: type: string description: "Network order reference; also the `subject`." siteId: type: string description: "Fulfilling site." acknowledgeBy: type: string format: date-time description: "The SLA instant this order has missed (or is at risk of missing)." at: type: string format: date-time description: "When this sweep pass observed the risk (same instant as `time`). Re-fires on every pass for as long as the order stays unanswered — not edge-triggered." OrphanedHoldCancelledData: type: object title: OrphanedHoldCancelled payload required: - networkRef - siteId - localOrderId - acknowledgeBy - answer - at properties: networkRef: type: string description: "Network order reference; also the `subject`." siteId: type: string description: "Fulfilling site." localOrderId: type: string description: "The order-management order that was held for this demand and is now freed." acknowledgeBy: type: string format: date-time description: "The order's acknowledgement deadline. The hold was freed after this instant plus `ORPHAN_HOLD_GRACE`." answer: type: string enum: [CANCELLED, NOT_FOUND] description: "What order-management answered to the cancel: `CANCELLED` (2xx) or `NOT_FOUND` (404, the hold no longer existed). A hold already released (409/422) raises no event." at: type: string format: date-time description: "When the sweep freed the hold (same instant as `time`)." NetworkOrderReceivedEvent: title: NetworkOrderReceived CloudEvent (events) allOf: - $ref: "#/components/schemas/CloudEvent" - type: object properties: type: type: string const: "com.warehouse.wes.network-fulfillment.networkorder.NetworkOrderReceived" dataschema: type: string const: "urn:warehouse:network-fulfillment:events:NetworkOrderReceived:v1" data: $ref: "#/components/schemas/NetworkOrderReceivedData" NetworkOrderSubmittedEvent: title: NetworkOrderSubmitted CloudEvent (events) allOf: - $ref: "#/components/schemas/CloudEvent" - type: object properties: type: type: string const: "com.warehouse.wes.network-fulfillment.networkorder.NetworkOrderSubmitted" dataschema: type: string const: "urn:warehouse:network-fulfillment:events:NetworkOrderSubmitted:v1" data: $ref: "#/components/schemas/NetworkOrderSubmittedData" NetworkOrderAcknowledgedEvent: title: NetworkOrderAcknowledged CloudEvent v2 (events) allOf: - $ref: "#/components/schemas/CloudEvent" - type: object properties: type: type: string const: "com.warehouse.wes.network-fulfillment.networkorder.NetworkOrderAcknowledged.v2" dataschema: type: string const: "urn:warehouse:network-fulfillment:events:NetworkOrderAcknowledged:v2" data: $ref: "#/components/schemas/NetworkOrderAcknowledgedData" NetworkOrderRejectedEvent: title: NetworkOrderRejected CloudEvent (events) allOf: - $ref: "#/components/schemas/CloudEvent" - type: object properties: type: type: string const: "com.warehouse.wes.network-fulfillment.networkorder.NetworkOrderRejected" dataschema: type: string const: "urn:warehouse:network-fulfillment:events:NetworkOrderRejected:v1" data: $ref: "#/components/schemas/NetworkOrderRejectedData" NetworkOrderShipmentConfirmedEvent: title: NetworkOrderShipmentConfirmed CloudEvent (events) allOf: - $ref: "#/components/schemas/CloudEvent" - type: object properties: type: type: string const: "com.warehouse.wes.network-fulfillment.networkorder.NetworkOrderShipmentConfirmed" dataschema: type: string const: "urn:warehouse:network-fulfillment:events:NetworkOrderShipmentConfirmed:v1" data: $ref: "#/components/schemas/NetworkOrderShipmentConfirmedData" AcknowledgementDeadlineAtRiskEvent: title: AcknowledgementDeadlineAtRisk CloudEvent (events) allOf: - $ref: "#/components/schemas/CloudEvent" - type: object properties: type: type: string const: "com.warehouse.wes.network-fulfillment.networkorder.AcknowledgementDeadlineAtRisk" dataschema: type: string const: "urn:warehouse:network-fulfillment:events:AcknowledgementDeadlineAtRisk:v1" data: $ref: "#/components/schemas/AcknowledgementDeadlineAtRiskData" OrphanedHoldCancelledEvent: title: OrphanedHoldCancelled CloudEvent (events) allOf: - $ref: "#/components/schemas/CloudEvent" - type: object properties: type: type: string const: "com.warehouse.wes.network-fulfillment.networkorder.OrphanedHoldCancelled" dataschema: type: string const: "urn:warehouse:network-fulfillment:events:OrphanedHoldCancelled:v1" data: $ref: "#/components/schemas/OrphanedHoldCancelledData" NetworkOrderReceivedAnalyticsEvent: title: NetworkOrderReceived CloudEvent (analytics) allOf: - $ref: "#/components/schemas/CloudEvent" - type: object properties: type: type: string const: "com.warehouse.wes.network-fulfillment.networkorder.NetworkOrderReceived" dataschema: type: string const: "urn:warehouse:network-fulfillment:analytics:NetworkOrderReceived:v1" data: $ref: "#/components/schemas/NetworkOrderReceivedData" NetworkOrderSubmittedAnalyticsEvent: title: NetworkOrderSubmitted CloudEvent (analytics) allOf: - $ref: "#/components/schemas/CloudEvent" - type: object properties: type: type: string const: "com.warehouse.wes.network-fulfillment.networkorder.NetworkOrderSubmitted" dataschema: type: string const: "urn:warehouse:network-fulfillment:analytics:NetworkOrderSubmitted:v1" data: $ref: "#/components/schemas/NetworkOrderSubmittedData" NetworkOrderAcknowledgedAnalyticsEvent: title: NetworkOrderAcknowledged CloudEvent v2 (analytics) allOf: - $ref: "#/components/schemas/CloudEvent" - type: object properties: type: type: string const: "com.warehouse.wes.network-fulfillment.networkorder.NetworkOrderAcknowledged.v2" dataschema: type: string const: "urn:warehouse:network-fulfillment:analytics:NetworkOrderAcknowledged:v2" data: $ref: "#/components/schemas/NetworkOrderAcknowledgedData" NetworkOrderRejectedAnalyticsEvent: title: NetworkOrderRejected CloudEvent (analytics) allOf: - $ref: "#/components/schemas/CloudEvent" - type: object properties: type: type: string const: "com.warehouse.wes.network-fulfillment.networkorder.NetworkOrderRejected" dataschema: type: string const: "urn:warehouse:network-fulfillment:analytics:NetworkOrderRejected:v1" data: $ref: "#/components/schemas/NetworkOrderRejectedData" NetworkOrderShipmentConfirmedAnalyticsEvent: title: NetworkOrderShipmentConfirmed CloudEvent (analytics) allOf: - $ref: "#/components/schemas/CloudEvent" - type: object properties: type: type: string const: "com.warehouse.wes.network-fulfillment.networkorder.NetworkOrderShipmentConfirmed" dataschema: type: string const: "urn:warehouse:network-fulfillment:analytics:NetworkOrderShipmentConfirmed:v1" data: $ref: "#/components/schemas/NetworkOrderShipmentConfirmedData" AcknowledgementDeadlineAtRiskAnalyticsEvent: title: AcknowledgementDeadlineAtRisk CloudEvent (analytics) allOf: - $ref: "#/components/schemas/CloudEvent" - type: object properties: type: type: string const: "com.warehouse.wes.network-fulfillment.networkorder.AcknowledgementDeadlineAtRisk" dataschema: type: string const: "urn:warehouse:network-fulfillment:analytics:AcknowledgementDeadlineAtRisk:v1" data: $ref: "#/components/schemas/AcknowledgementDeadlineAtRiskData" OrphanedHoldCancelledAnalyticsEvent: title: OrphanedHoldCancelled CloudEvent (analytics) allOf: - $ref: "#/components/schemas/CloudEvent" - type: object properties: type: type: string const: "com.warehouse.wes.network-fulfillment.networkorder.OrphanedHoldCancelled" dataschema: type: string const: "urn:warehouse:network-fulfillment:analytics:OrphanedHoldCancelled:v1" data: $ref: "#/components/schemas/OrphanedHoldCancelledData" ProcessPathCreatedEvent: type: object description: | CloudEvents 1.0 envelope of process-path-management's ProcessPathCreated, the integration payload, as consumed here. required: [specversion, id, source, type, time, datacontenttype, dataschema, data] properties: specversion: type: string enum: ["1.0"] id: type: string source: type: string enum: ["/warehouse/process-path-management"] type: type: string const: "com.warehouse.wes.process-path-management.processpath.ProcessPathCreated" subject: type: string time: type: string format: date-time datacontenttype: type: string enum: ["application/json"] dataschema: type: string const: "urn:warehouse:process-path-management:events:ProcessPathCreated:v1" data: type: object description: The fields this service reads; the producer's payload carries more (required_capabilities, eligibility, intake), ignored here. required: [path_id] properties: path_id: type: string cycle_time_p95: type: string description: Go duration string, e.g. "24h0m0s". match_prefix: type: string destination_location_role: type: string enum: [Drop, WorkCenter, Shipping] ProcessPathUpdatedEvent: type: object description: | CloudEvents 1.0 envelope of process-path-management's ProcessPathUpdated, the integration payload, as consumed here. required: [specversion, id, source, type, time, datacontenttype, dataschema, data] properties: specversion: type: string enum: ["1.0"] id: type: string source: type: string enum: ["/warehouse/process-path-management"] type: type: string const: "com.warehouse.wes.process-path-management.processpath.ProcessPathUpdated" subject: type: string time: type: string format: date-time datacontenttype: type: string enum: ["application/json"] dataschema: type: string const: "urn:warehouse:process-path-management:events:ProcessPathUpdated:v1" data: type: object description: The fields this service reads; the producer's payload carries more (required_capabilities, eligibility, intake), ignored here. required: [path_id] properties: path_id: type: string cycle_time_p95: type: string description: Go duration string, e.g. "24h0m0s". match_prefix: type: string destination_location_role: type: string enum: [Drop, WorkCenter, Shipping] ProcessPathDeactivatedEvent: type: object description: | CloudEvents 1.0 envelope of process-path-management's ProcessPathDeactivated, the integration payload, as consumed here. required: [specversion, id, source, type, time, datacontenttype, dataschema, data] properties: specversion: type: string enum: ["1.0"] id: type: string source: type: string enum: ["/warehouse/process-path-management"] type: type: string const: "com.warehouse.wes.process-path-management.processpath.ProcessPathDeactivated" subject: type: string time: type: string format: date-time datacontenttype: type: string enum: ["application/json"] dataschema: type: string const: "urn:warehouse:process-path-management:events:ProcessPathDeactivated:v1" data: type: object required: [path_id] properties: path_id: type: string CPTScheduleChangedEvent: type: object description: | CloudEvents 1.0 envelope of process-path-management's CPTScheduleChanged, the integration payload, as consumed here. required: [specversion, id, source, type, time, datacontenttype, dataschema, data] properties: specversion: type: string enum: ["1.0"] id: type: string source: type: string enum: ["/warehouse/process-path-management"] type: type: string const: "com.warehouse.wes.process-path-management.cptschedule.CPTScheduleChanged" subject: type: string time: type: string format: date-time datacontenttype: type: string enum: ["application/json"] dataschema: type: string const: "urn:warehouse:process-path-management:events:CPTScheduleChanged:v1" data: type: object description: A full snapshot of the site's cutoff schedule, not a diff; the cache keeps path id -> next cutoff. required: [site_id, timezone, cutoffs] properties: site_id: type: string timezone: type: string description: IANA zone. cutoffs: type: array items: type: object required: [cpt_id, local_time, days_of_week, ship_method, eligible_path_ids] properties: cpt_id: type: string local_time: type: string description: Recurring daily cutoff, HH:MM. days_of_week: type: array items: type: string ship_method: type: string eligible_path_ids: type: array items: type: string PathCapacityChangedEvent: type: object description: | CloudEvents 1.0 envelope of wes-work-planning's PathCapacityChanged, the integration payload, as consumed here. required: [specversion, id, source, type, time, datacontenttype, dataschema, data] properties: specversion: type: string enum: ["1.0"] id: type: string source: type: string enum: ["/warehouse/wes-work-planning"] type: type: string const: "com.warehouse.wes.work-planning.workpool.PathCapacityChanged" subject: type: string time: type: string format: date-time datacontenttype: type: string enum: ["application/json"] dataschema: type: string const: "urn:warehouse:wes-work-planning:events:PathCapacityChanged:v1" data: type: object required: [path_id, cutoff_at, remaining_units, known] properties: path_id: type: string cutoff_at: type: string remaining_units: type: integer known: type: boolean ReceiptCartonReceivedEvent: type: object description: | CloudEvents 1.0 envelope of inbound-receiving's ReceiptCartonReceived, the integration payload, as consumed here. required: [specversion, id, source, type, time, datacontenttype, dataschema, data] properties: specversion: type: string enum: ["1.0"] id: type: string source: type: string enum: ["/warehouse/inbound-receiving"] type: type: string const: "com.warehouse.wms.inbound-receiving.receipt.ReceiptCartonReceived" subject: type: string time: type: string format: date-time datacontenttype: type: string enum: ["application/json"] dataschema: type: string const: "urn:warehouse:inbound-receiving:events:ReceiptCartonReceived:v1" data: type: object description: The fields this service reads (receipt, ASN, carton identity); the full contents stay with inbound-receiving. required: [receipt_id, received_at] properties: receipt_id: type: string asn_number: type: string description: Falls back to the Kafka key when empty; the event is rejected when both are empty. sscc: type: string description: At least one of `sscc` and `lpn` must be non-empty, else the event is rejected. lpn: type: string contents: type: array items: type: object properties: gtin: type: string qty: type: integer format: int64 condition: type: string received_at: type: string format: date-time CartonDiscrepancyRaisedEvent: type: object description: | CloudEvents 1.0 envelope of inbound-receiving's CartonDiscrepancyRaised, the integration payload, as consumed here. required: [specversion, id, source, type, time, datacontenttype, dataschema, data] properties: specversion: type: string enum: ["1.0"] id: type: string source: type: string enum: ["/warehouse/inbound-receiving"] type: type: string const: "com.warehouse.wms.inbound-receiving.receipt.CartonDiscrepancyRaised" subject: type: string time: type: string format: date-time datacontenttype: type: string enum: ["application/json"] dataschema: type: string const: "urn:warehouse:inbound-receiving:events:CartonDiscrepancyRaised:v1" data: type: object required: [receipt_id, kind, at] properties: receipt_id: type: string sscc: type: string kind: type: string expected: type: string actual: type: string at: type: string format: date-time ReceiptClosedEvent: type: object description: | CloudEvents 1.0 envelope of inbound-receiving's ReceiptClosed, the integration payload, as consumed here. required: [specversion, id, source, type, time, datacontenttype, dataschema, data] properties: specversion: type: string enum: ["1.0"] id: type: string source: type: string enum: ["/warehouse/inbound-receiving"] type: type: string const: "com.warehouse.wms.inbound-receiving.receipt.ReceiptClosed" subject: type: string time: type: string format: date-time datacontenttype: type: string enum: ["application/json"] dataschema: type: string const: "urn:warehouse:inbound-receiving:events:ReceiptClosed:v1" data: type: object required: [receipt_id, asn_number, closed_at, discrepancies] properties: receipt_id: type: string asn_number: type: string closed_at: type: string format: date-time discrepancies: type: array items: type: object CloudEventEnvelope: type: object required: - specversion - id - source - type - subject - time - datacontenttype - dataschema - data properties: specversion: type: string const: '1.0' id: type: string description: UUID minted once per occurrence and persisted with the outbox row; consumers dedupe on it. source: type: string const: /warehouse/outbound-shipping type: type: string description: com.warehouse.wms.outbound-shipping... subject: type: string description: Aggregate root id; also the Kafka partition key. time: type: string format: date-time datacontenttype: type: string const: application/json dataschema: type: string description: urn:warehouse:outbound-shipping:::v1. ShipmentConfirmedEvent: allOf: - $ref: "#/components/schemas/CloudEventEnvelope" - type: object properties: type: type: string const: "com.warehouse.wms.outbound-shipping.outboundload.ShipmentConfirmed" subject: type: string description: The load id. time: type: string format: date-time datacontenttype: type: string enum: ["application/json"] dataschema: type: string const: "urn:warehouse:outbound-shipping:events:ShipmentConfirmed:v1" data: type: object description: | Pinned per outbound-shipping's merged contract; every field below is required there. `orders[].package_count` is NOT in the contract yet (additive, pending) — listed here as the optional field this consumer already tolerates. required: [load_id, site_id, cpt_id, carrier, trailer_id, seal_number, departed_at, orders, version] properties: load_id: type: string description: The shipment reference of the idempotency key; falls back to the Kafka key when empty — an event naming neither is dead-lettered. site_id: type: string cpt_id: type: string carrier: type: string trailer_id: type: string seal_number: type: string departed_at: type: string format: date-time orders: type: array description: Distinct source_order_id (order-management OrderId) of the shipped packages; a package manifested without one is excluded by the producer. items: type: object required: [order_id] properties: order_id: type: string description: The join key on NetworkOrder.localOrderId; no match means a customer-demand order — skipped and logged. package_count: type: integer minimum: 1 description: ADDITIVE, NOT in the merged contract yet. The real per-order package count; until it lands the network is told 1 (ADR 0026, gap recorded in ADR 0014's addendum). version: type: integer minimum: 1