Event contract of the network-inventory-planning bounded context.
Phase 1 declares the three CONSUMED facts (projected into local read models):
com.warehouse.wms.facility-layout.site.SiteCapabilityChanged
(facility-layout, warehouse.facility.events) → local
site_capability read model (keyed site_id, LWW on
capability_revision).com.warehouse.wes.order-management.siteskudemand.SiteSkuDemandChanged
(order-management, warehouse.order-management.events) → local
site_sku_demand read model (keyed source_order_id+line_no, state
ACTIVE/REMOVED).com.warehouse.wes.warehouse-planning.capacityplan.CapacityPlanPublished
(warehouse-planning, warehouse.warehouse-planning.events) → local
published_capacity_plan read model (keyed plan_id, LWW on the
CloudEvents time. The payload is warehouse-planning's existing v1
payload plus the additive site_id; a legacy event WITHOUT site_id
is EXCLUDED (the site is never inferred from warehouse_id).Phase 2 (ADR 0003, the transfer saga) adds the PUBLISHED stream on
warehouse.network-inventory-planning.events — emitted through the
transactional outbox in the same transaction as the saga state change —
and the two CONSUMED inventory-storage replies on
warehouse.inventory.events:
com.warehouse.wes.network-inventory-planning.transfer.TransferPlanApproved
(published, subject/key transfer_id): an operator approved an
advisory proposal into a transfer plan.com.warehouse.wes.network-inventory-planning.transfer.TransferAllocationRequested
(published COMMAND, subject/key transfer_line_id = <transfer_id>:1
for the v1 single-line saga): inventory-storage allocates origin
stock against transfer_line_id and replies on
warehouse.inventory.events.com.warehouse.wms.inventory-storage.reservation.TransferStockAllocated
(consumed reply, subject/key reservation_id): the saga moves
ALLOCATING → ALLOCATED, persisting reservation_id, allocations[] and
expires_at.com.warehouse.wms.inventory-storage.reservation.TransferStockAllocationRejected
(consumed reply, subject/key transfer_line_id): the saga moves
ALLOCATING → UNFULFILLABLE with the closed reason
ORIGIN_SITE_UNKNOWN|INSUFFICIENT_USABLE|IDEMPOTENCY_CONFLICT.Phase 4 (ADR 0007, observability + scheduled runs) adds this
context's analytics stream on
warehouse.network-inventory-planning.analytics: the saga-health
occurrences TransferStateAdvanced (every state transition, same
outbox transaction), TransferStuckDetected (a bounded observe-only
ticker; NIP_HEALTH_CHECK_INTERVAL / NIP_STUCK_THRESHOLDS) and
RebalanceRunCompleted (each scheduled rebalance pass; observe-only
— no approval, no allocation command). W3C trace context
(traceparent) propagates on every produced and consumed message.
Cancel-after-allocation (ADR 0022, the compensation leg) closes ADR 0003's documented gap — a transfer cancelled AFTER allocation gets its origin hold resolved instead of stranding the reservation until lazy expiry:
com.warehouse.wes.network-inventory-planning.transfer.TransferAllocationReleaseRequested
(published COMMAND, subject/key transfer_line_id): an ALLOCATED
transfer's operator cancel; inventory-storage resolves the origin
reservation and replies on warehouse.inventory.events.com.warehouse.wms.inventory-storage.reservation.TransferStockAllocationReleased
(consumed reply, subject/key transfer_line_id, outcome RELEASED |
ALREADY_RESOLVED — both settle): the saga moves RELEASING →
CANCELLED.Phase 3 (ADR 0005, work-demand release + fact-driven transitions)
adds the released work demands on the PUBLISHED stream, the three
CONSUMED fulfillment-execution transfer facts on
warehouse.fulfillment.events, and the two CONSUMED
inventory-storage destination facts on warehouse.inventory.events:
com.warehouse.wes.network-inventory-planning.workdemand.WorkDemandReleased
(published COMMAND, subject/key demand_id): one leg of an approved
transfer released for warehouse work. WES (wes-work-planning) is the
consumer; the payload below mirrors ITS consumed contract exactly.com.warehouse.wes.fulfillment-execution.transfer.TransferPicked
(consumed fact, subject/key task_id): ALLOCATED → PICKED, the
picked quantity recorded (a short pick is recorded, not refused),
and the dispatch WorkDemandReleased released with the PICKED
quantity.com.warehouse.wes.fulfillment-execution.transfer.TransferDispatched
(consumed fact, subject/key task_id): PICKED → IN_TRANSIT.com.warehouse.wes.fulfillment-execution.transfer.TransferArrived
(consumed fact, RESERVED — scan-driven receiving may bypass it):
IN_TRANSIT → ARRIVED; inventory-storage's TransferReceiptStaged
drives the same transition.com.warehouse.wms.inventory-storage.stock.TransferReceiptStaged
(consumed fact, subject/key transfer_line_id): IN_TRANSIT → ARRIVED
(the scan-driven receiving path).com.warehouse.wms.inventory-storage.stock.TransferStockStowed
(consumed fact, subject/key transfer_line_id): ARRIVED → RECEIVED
(terminal), the destination stow allocations persisted.Consumers decode CloudEvents 1.0 structured mode only, dispatch on the
FULL type, ignore unknown types, dedupe on id in-transaction
(processed_events), and commit offsets only after the read-model
transaction commits. Consumer group ids are environment-configured
(SITE_CAPABILITY_CONSUMER_GROUP, SITE_SKU_DEMAND_CONSUMER_GROUP,
CAPACITY_PLAN_CONSUMER_GROUP, TRANSFER_REPLY_CONSUMER_GROUP,
TRANSFER_FACT_CONSUMER_GROUP, PACK_LEVEL_CONSUMER_GROUP); an empty
value means the consumer does not exist. A message that can never be
applied (not a valid CloudEvent, an undecodable payload) is published
raw, with x-dlq-* headers, to <source topic>.dlq and committed past;
only infrastructure failures are retried. A fact whose transfer_ref
names no known transfer is WARN-logged and committed past, never
retried.
Every produced message uses source /warehouse/network-inventory-planning,
the Kafka header content-type: application/cloudevents+json; charset=UTF-8, the W3C trace headers when a span is active, and the
Kafka key shown per event (hash-partitioned).
The analytics stream is also CONSUMED by this context's own
nip-projector binary (group ANALYTICS_CONSUMER_GROUP, default
network-inventory-planning-analytics; dead letters go to
warehouse.network-inventory-planning.analytics.dlq), which builds the
analytical database behind the nip-reports API.
The consumed payload schemas below are the producers' own contract shapes mirrored read-only (each producer's apis/asyncapi.yaml on origin/develop is authoritative).
Fleet-shared Kafka broker.
facility-layout's integration stream. network-inventory-planning consumes only SiteCapabilityChanged and ignores every other type.
Keep the local site_capability read model current.
Consume facility-layout's SiteCapabilityChanged, dedupe on CloudEvents id inside the read-model transaction, and upsert site_capability keyed by site_id with last-writer-wins on capability_revision.
Available only on servers:
Accepts the following message:
A site's transfer capability state changed (consumed).
CloudEvents 1.0 envelope of facility-layout's SiteCapabilityChanged.
{
"specversion": "1.0",
"id": "string",
"source": "string",
"type": "com.warehouse.wms.facility-layout.site.SiteCapabilityChanged",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:facility-layout:events:SiteCapabilityChanged:v1",
"data": {
"site_code": "string",
"transfer_origin_enabled": true,
"transfer_destination_enabled": true,
"capability_revision": 0
}
}
order-management's integration stream. network-inventory-planning consumes only SiteSkuDemandChanged and ignores every other type.
Keep the local site_sku_demand read model current.
Consume order-management's SiteSkuDemandChanged, dedupe on CloudEvents id inside the read-model transaction, and upsert/tombstone site_sku_demand keyed by source_order_id+line_no (ACTIVE/REMOVED).
Available only on servers:
Accepts the following message:
One source order line's site demand changed (consumed).
CloudEvents 1.0 envelope of order-management's SiteSkuDemandChanged.
{
"specversion": "1.0",
"id": "string",
"source": "string",
"type": "com.warehouse.wes.order-management.siteskudemand.SiteSkuDemandChanged",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:order-management:events:SiteSkuDemandChanged:v1",
"data": {
"source_order_id": "string",
"line_no": 0,
"site_id": "string",
"sku": "string",
"demanded_units": 0,
"due_at": "2019-08-24T14:15:22Z",
"state": "ACTIVE",
"assignment_version": "string"
}
}
warehouse-planning's integration stream. network-inventory-planning consumes only CapacityPlanPublished and ignores every other type.
Keep the local published_capacity_plan read model current.
Consume warehouse-planning's CapacityPlanPublished, dedupe on CloudEvents id inside the read-model transaction, and upsert published_capacity_plan keyed by plan_id with last-writer-wins on the CloudEvents time. Legacy payloads without site_id are excluded, never inferred.
Available only on servers:
Accepts the following message:
A capacity plan was published (consumed).
CloudEvents 1.0 envelope of warehouse-planning's CapacityPlanPublished (v1 payload + additive site_id).
{
"specversion": "1.0",
"id": "string",
"source": "string",
"type": "com.warehouse.wes.warehouse-planning.capacityplan.CapacityPlanPublished",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:warehouse-planning:events:CapacityPlanPublished:v1",
"data": {
"plan_id": "string",
"site_id": "string",
"warehouse_id": "string",
"location": "string",
"path_id": "string",
"window_start": "2019-08-24T14:15:22Z",
"window_end": "2019-08-24T14:15:22Z",
"assigned_demand": 0.1,
"path_capacity": 0.1,
"capacity_over_window": 0.1,
"shortage": 0.1,
"bottleneck_step": "string",
"published_at": "2019-08-24T14:15:22Z"
}
}
This context's OWN integration stream (Phase 2). Everything on it is emitted through the transactional outbox: the saga state change and the outbox row commit in one transaction, and a background relay publishes afterwards — a request handler never sends directly.
Announce an operator-approved transfer plan.
Published through the transactional outbox in the same transaction that persists the saga's APPROVED transition (POST /v1/transfer-approvals). Subject and Kafka key are the transfer id.
Available only on servers:
Accepts one of the following messages:
An operator approved an advisory proposal into a transfer plan (published).
CloudEvents 1.0 envelope of this context's TransferPlanApproved (published via the transactional outbox).
{
"specversion": "1.0",
"id": "string",
"source": "/warehouse/network-inventory-planning",
"type": "com.warehouse.wes.network-inventory-planning.transfer.TransferPlanApproved",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:network-inventory-planning:events:TransferPlanApproved:v1",
"data": {
"transfer_id": "string",
"origin_site_id": "string",
"destination_site_id": "string",
"sku": "string",
"quantity": 1,
"case_multiple": 2,
"cases": 1,
"requested_qty_eaches": 1,
"rounded_qty_eaches": 1,
"remainder_eaches": 0,
"policy_version": "string",
"operator_reason": "string",
"proposal_as_of": "2019-08-24T14:15:22Z"
}
}
Command inventory-storage to allocate origin stock for a transfer line (published).
CloudEvents 1.0 envelope of this context's TransferAllocationRequested COMMAND (published via the transactional outbox). The data payload is EXACTLY inventory-storage's consumed contract — five fields, no more.
{
"specversion": "1.0",
"id": "string",
"source": "/warehouse/network-inventory-planning",
"type": "com.warehouse.wes.network-inventory-planning.transfer.TransferAllocationRequested",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:network-inventory-planning:events:TransferAllocationRequested:v1",
"data": {
"transfer_id": "string",
"transfer_line_id": "string",
"origin_site_id": "string",
"sku": "string",
"quantity": 1
}
}
Command inventory-storage to resolve the origin hold of a cancelled transfer (published).
CloudEvents 1.0 envelope of this context's TransferAllocationReleaseRequested COMMAND (published via the transactional outbox, ADR 0022). The data payload is EXACTLY inventory-storage's consumed contract.
{
"specversion": "1.0",
"id": "string",
"source": "/warehouse/network-inventory-planning",
"type": "com.warehouse.wes.network-inventory-planning.transfer.TransferAllocationReleaseRequested",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:network-inventory-planning:events:TransferAllocationReleaseRequested:v1",
"data": {
"transfer_id": "string",
"transfer_line_id": "string",
"reservation_id": "string",
"origin_site_id": "string",
"sku": "string",
"quantity": 1,
"reason": "string"
}
}
One leg of an approved transfer released for warehouse work (published).
CloudEvents 1.0 envelope of this context's WorkDemandReleased COMMAND (published via the transactional outbox, ADR 0005). The data payload is EXACTLY WES's (wes-work-planning) consumed contract, mirrored read-only from its apis/asyncapi.yaml — every data field is required by the producer.
{
"specversion": "1.0",
"id": "string",
"source": "/warehouse/network-inventory-planning",
"type": "com.warehouse.wes.network-inventory-planning.workdemand.WorkDemandReleased",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:network-inventory-planning:events:WorkDemandReleased:v1",
"data": {
"demand_id": "string",
"work_kind": "TRANSFER_PICK",
"transfer_ref": "string",
"path_id": "string",
"site_id": "string",
"cpt": "2019-08-24T14:15:22Z",
"sku": "string",
"quantity": 1
}
}
This context's OWN integration stream (Phase 2). Everything on it is emitted through the transactional outbox: the saga state change and the outbox row commit in one transaction, and a background relay publishes afterwards — a request handler never sends directly.
Command inventory-storage to allocate origin stock.
The saga's COMMAND event, published right after TransferPlanApproved through the same outbox transaction (the APPROVED → ALLOCATING transition). Subject and Kafka key are the transfer_line_id (":1" in v1's single-line saga) — inventory-storage's transfer_allocations ledger key, so its reply and any replay correlate on exactly it.
Available only on servers:
Accepts one of the following messages:
An operator approved an advisory proposal into a transfer plan (published).
CloudEvents 1.0 envelope of this context's TransferPlanApproved (published via the transactional outbox).
{
"specversion": "1.0",
"id": "string",
"source": "/warehouse/network-inventory-planning",
"type": "com.warehouse.wes.network-inventory-planning.transfer.TransferPlanApproved",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:network-inventory-planning:events:TransferPlanApproved:v1",
"data": {
"transfer_id": "string",
"origin_site_id": "string",
"destination_site_id": "string",
"sku": "string",
"quantity": 1,
"case_multiple": 2,
"cases": 1,
"requested_qty_eaches": 1,
"rounded_qty_eaches": 1,
"remainder_eaches": 0,
"policy_version": "string",
"operator_reason": "string",
"proposal_as_of": "2019-08-24T14:15:22Z"
}
}
Command inventory-storage to allocate origin stock for a transfer line (published).
CloudEvents 1.0 envelope of this context's TransferAllocationRequested COMMAND (published via the transactional outbox). The data payload is EXACTLY inventory-storage's consumed contract — five fields, no more.
{
"specversion": "1.0",
"id": "string",
"source": "/warehouse/network-inventory-planning",
"type": "com.warehouse.wes.network-inventory-planning.transfer.TransferAllocationRequested",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:network-inventory-planning:events:TransferAllocationRequested:v1",
"data": {
"transfer_id": "string",
"transfer_line_id": "string",
"origin_site_id": "string",
"sku": "string",
"quantity": 1
}
}
Command inventory-storage to resolve the origin hold of a cancelled transfer (published).
CloudEvents 1.0 envelope of this context's TransferAllocationReleaseRequested COMMAND (published via the transactional outbox, ADR 0022). The data payload is EXACTLY inventory-storage's consumed contract.
{
"specversion": "1.0",
"id": "string",
"source": "/warehouse/network-inventory-planning",
"type": "com.warehouse.wes.network-inventory-planning.transfer.TransferAllocationReleaseRequested",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:network-inventory-planning:events:TransferAllocationReleaseRequested:v1",
"data": {
"transfer_id": "string",
"transfer_line_id": "string",
"reservation_id": "string",
"origin_site_id": "string",
"sku": "string",
"quantity": 1,
"reason": "string"
}
}
One leg of an approved transfer released for warehouse work (published).
CloudEvents 1.0 envelope of this context's WorkDemandReleased COMMAND (published via the transactional outbox, ADR 0005). The data payload is EXACTLY WES's (wes-work-planning) consumed contract, mirrored read-only from its apis/asyncapi.yaml — every data field is required by the producer.
{
"specversion": "1.0",
"id": "string",
"source": "/warehouse/network-inventory-planning",
"type": "com.warehouse.wes.network-inventory-planning.workdemand.WorkDemandReleased",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:network-inventory-planning:events:WorkDemandReleased:v1",
"data": {
"demand_id": "string",
"work_kind": "TRANSFER_PICK",
"transfer_ref": "string",
"path_id": "string",
"site_id": "string",
"cpt": "2019-08-24T14:15:22Z",
"sku": "string",
"quantity": 1
}
}
This context's OWN integration stream (Phase 2). Everything on it is emitted through the transactional outbox: the saga state change and the outbox row commit in one transaction, and a background relay publishes afterwards — a request handler never sends directly.
Command inventory-storage to resolve the origin hold of a cancelled transfer.
The saga's compensation COMMAND (ADR 0022), published through the outbox in the SAME transaction as the ALLOCATED → RELEASING transition (POST /v1/transfers/{transferId}/cancellation). Subject and Kafka key are the transfer_line_id, mirroring TransferAllocationRequested; the payload additionally carries the reservation_id being resolved and the operator's cancellation reason. inventory-storage's TransferStockAllocationReleased reply settles the saga to CANCELLED.
Available only on servers:
Accepts one of the following messages:
An operator approved an advisory proposal into a transfer plan (published).
CloudEvents 1.0 envelope of this context's TransferPlanApproved (published via the transactional outbox).
{
"specversion": "1.0",
"id": "string",
"source": "/warehouse/network-inventory-planning",
"type": "com.warehouse.wes.network-inventory-planning.transfer.TransferPlanApproved",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:network-inventory-planning:events:TransferPlanApproved:v1",
"data": {
"transfer_id": "string",
"origin_site_id": "string",
"destination_site_id": "string",
"sku": "string",
"quantity": 1,
"case_multiple": 2,
"cases": 1,
"requested_qty_eaches": 1,
"rounded_qty_eaches": 1,
"remainder_eaches": 0,
"policy_version": "string",
"operator_reason": "string",
"proposal_as_of": "2019-08-24T14:15:22Z"
}
}
Command inventory-storage to allocate origin stock for a transfer line (published).
CloudEvents 1.0 envelope of this context's TransferAllocationRequested COMMAND (published via the transactional outbox). The data payload is EXACTLY inventory-storage's consumed contract — five fields, no more.
{
"specversion": "1.0",
"id": "string",
"source": "/warehouse/network-inventory-planning",
"type": "com.warehouse.wes.network-inventory-planning.transfer.TransferAllocationRequested",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:network-inventory-planning:events:TransferAllocationRequested:v1",
"data": {
"transfer_id": "string",
"transfer_line_id": "string",
"origin_site_id": "string",
"sku": "string",
"quantity": 1
}
}
Command inventory-storage to resolve the origin hold of a cancelled transfer (published).
CloudEvents 1.0 envelope of this context's TransferAllocationReleaseRequested COMMAND (published via the transactional outbox, ADR 0022). The data payload is EXACTLY inventory-storage's consumed contract.
{
"specversion": "1.0",
"id": "string",
"source": "/warehouse/network-inventory-planning",
"type": "com.warehouse.wes.network-inventory-planning.transfer.TransferAllocationReleaseRequested",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:network-inventory-planning:events:TransferAllocationReleaseRequested:v1",
"data": {
"transfer_id": "string",
"transfer_line_id": "string",
"reservation_id": "string",
"origin_site_id": "string",
"sku": "string",
"quantity": 1,
"reason": "string"
}
}
One leg of an approved transfer released for warehouse work (published).
CloudEvents 1.0 envelope of this context's WorkDemandReleased COMMAND (published via the transactional outbox, ADR 0005). The data payload is EXACTLY WES's (wes-work-planning) consumed contract, mirrored read-only from its apis/asyncapi.yaml — every data field is required by the producer.
{
"specversion": "1.0",
"id": "string",
"source": "/warehouse/network-inventory-planning",
"type": "com.warehouse.wes.network-inventory-planning.workdemand.WorkDemandReleased",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:network-inventory-planning:events:WorkDemandReleased:v1",
"data": {
"demand_id": "string",
"work_kind": "TRANSFER_PICK",
"transfer_ref": "string",
"path_id": "string",
"site_id": "string",
"cpt": "2019-08-24T14:15:22Z",
"sku": "string",
"quantity": 1
}
}
inventory-storage's integration stream. network-inventory-planning consumes only the two transfer-allocation replies, the allocation release fact (ADR 0022) and the two destination facts; every other type is ignored.
Drive the saga ALLOCATING → ALLOCATED.
inventory-storage's success reply. The consumer dedupes on the CloudEvents id, validates the reply against the transfer (line, origin, SKU, quantity sum, reservation completeness) and, in ONE transaction with the processed-event claim, persists state ALLOCATED with reservation_id, allocations[] and expires_at. Consumer group TRANSFER_REPLY_CONSUMER_GROUP (env-configured).
Available only on servers:
Accepts one of the following messages:
inventory-storage allocated origin stock for a transfer line (consumed reply).
CloudEvents 1.0 envelope of inventory-storage's TransferStockAllocated reply (consumed).
{
"specversion": "1.0",
"id": "string",
"source": "string",
"type": "com.warehouse.wms.inventory-storage.reservation.TransferStockAllocated",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:inventory-storage:events:TransferStockAllocated:v1",
"data": {
"transfer_id": "string",
"transfer_line_id": "string",
"origin_site_id": "string",
"reservation_id": "string",
"sku": "string",
"quantity": 1,
"allocations": [
{
"stock_unit_id": "string",
"bin_id": "string",
"quantity": 1
}
],
"expires_at": "2019-08-24T14:15:22Z"
}
}
inventory-storage refused a transfer-line allocation (consumed reply).
CloudEvents 1.0 envelope of inventory-storage's TransferStockAllocationRejected reply (consumed).
{
"specversion": "1.0",
"id": "string",
"source": "string",
"type": "com.warehouse.wms.inventory-storage.reservation.TransferStockAllocationRejected",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:inventory-storage:events:TransferStockAllocationRejected:v1",
"data": {
"transfer_id": "string",
"transfer_line_id": "string",
"origin_site_id": "string",
"sku": "string",
"requested_quantity": 1,
"reason": "ORIGIN_SITE_UNKNOWN"
}
}
inventory-storage resolved the origin hold of a cancelled transfer (consumed reply).
CloudEvents 1.0 envelope of inventory-storage's TransferStockAllocationReleased reply (consumed).
{
"specversion": "1.0",
"id": "string",
"source": "string",
"type": "com.warehouse.wms.inventory-storage.reservation.TransferStockAllocationReleased",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:inventory-storage:events:TransferStockAllocationReleased:v1",
"data": {
"transfer_id": "string",
"transfer_line_id": "string",
"reservation_id": "string",
"origin_site_id": "string",
"sku": "string",
"quantity": 1,
"outcome": "RELEASED",
"reason": "string"
}
}
inventory-storage staged a transfer receipt at the destination (consumed fact).
CloudEvents 1.0 envelope of inventory-storage's TransferReceiptStaged destination fact (consumed).
{
"specversion": "1.0",
"id": "string",
"source": "string",
"type": "com.warehouse.wms.inventory-storage.stock.TransferReceiptStaged",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:inventory-storage:events:TransferReceiptStaged:v1",
"data": {
"transfer_id": "string",
"transfer_line_id": "string",
"destination_site_id": "string",
"sku": "string",
"expected_quantity": 0,
"received_quantity": 0,
"variance": 0
}
}
inventory-storage stowed transferred stock at the destination (consumed fact).
CloudEvents 1.0 envelope of inventory-storage's TransferStockStowed destination fact (consumed).
{
"specversion": "1.0",
"id": "string",
"source": "string",
"type": "com.warehouse.wms.inventory-storage.stock.TransferStockStowed",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:inventory-storage:events:TransferStockStowed:v1",
"data": {
"transfer_id": "string",
"transfer_line_id": "string",
"destination_site_id": "string",
"sku": "string",
"received_quantity": 0,
"stowed_quantity": 0,
"allocations": [
{
"stock_unit_id": "string",
"bin_id": "string",
"quantity": 1
}
]
}
}
inventory-storage's integration stream. network-inventory-planning consumes only the two transfer-allocation replies, the allocation release fact (ADR 0022) and the two destination facts; every other type is ignored.
Drive the saga ALLOCATING → UNFULFILLABLE.
inventory-storage's rejection reply with one of the closed reasons ORIGIN_SITE_UNKNOWN|INSUFFICIENT_USABLE|IDEMPOTENCY_CONFLICT. The consumer applies it in ONE transaction with the processed-event claim; an unknown reason is a deterministic skip. Consumer group TRANSFER_REPLY_CONSUMER_GROUP (env-configured).
Available only on servers:
Accepts one of the following messages:
inventory-storage allocated origin stock for a transfer line (consumed reply).
CloudEvents 1.0 envelope of inventory-storage's TransferStockAllocated reply (consumed).
{
"specversion": "1.0",
"id": "string",
"source": "string",
"type": "com.warehouse.wms.inventory-storage.reservation.TransferStockAllocated",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:inventory-storage:events:TransferStockAllocated:v1",
"data": {
"transfer_id": "string",
"transfer_line_id": "string",
"origin_site_id": "string",
"reservation_id": "string",
"sku": "string",
"quantity": 1,
"allocations": [
{
"stock_unit_id": "string",
"bin_id": "string",
"quantity": 1
}
],
"expires_at": "2019-08-24T14:15:22Z"
}
}
inventory-storage refused a transfer-line allocation (consumed reply).
CloudEvents 1.0 envelope of inventory-storage's TransferStockAllocationRejected reply (consumed).
{
"specversion": "1.0",
"id": "string",
"source": "string",
"type": "com.warehouse.wms.inventory-storage.reservation.TransferStockAllocationRejected",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:inventory-storage:events:TransferStockAllocationRejected:v1",
"data": {
"transfer_id": "string",
"transfer_line_id": "string",
"origin_site_id": "string",
"sku": "string",
"requested_quantity": 1,
"reason": "ORIGIN_SITE_UNKNOWN"
}
}
inventory-storage resolved the origin hold of a cancelled transfer (consumed reply).
CloudEvents 1.0 envelope of inventory-storage's TransferStockAllocationReleased reply (consumed).
{
"specversion": "1.0",
"id": "string",
"source": "string",
"type": "com.warehouse.wms.inventory-storage.reservation.TransferStockAllocationReleased",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:inventory-storage:events:TransferStockAllocationReleased:v1",
"data": {
"transfer_id": "string",
"transfer_line_id": "string",
"reservation_id": "string",
"origin_site_id": "string",
"sku": "string",
"quantity": 1,
"outcome": "RELEASED",
"reason": "string"
}
}
inventory-storage staged a transfer receipt at the destination (consumed fact).
CloudEvents 1.0 envelope of inventory-storage's TransferReceiptStaged destination fact (consumed).
{
"specversion": "1.0",
"id": "string",
"source": "string",
"type": "com.warehouse.wms.inventory-storage.stock.TransferReceiptStaged",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:inventory-storage:events:TransferReceiptStaged:v1",
"data": {
"transfer_id": "string",
"transfer_line_id": "string",
"destination_site_id": "string",
"sku": "string",
"expected_quantity": 0,
"received_quantity": 0,
"variance": 0
}
}
inventory-storage stowed transferred stock at the destination (consumed fact).
CloudEvents 1.0 envelope of inventory-storage's TransferStockStowed destination fact (consumed).
{
"specversion": "1.0",
"id": "string",
"source": "string",
"type": "com.warehouse.wms.inventory-storage.stock.TransferStockStowed",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:inventory-storage:events:TransferStockStowed:v1",
"data": {
"transfer_id": "string",
"transfer_line_id": "string",
"destination_site_id": "string",
"sku": "string",
"received_quantity": 0,
"stowed_quantity": 0,
"allocations": [
{
"stock_unit_id": "string",
"bin_id": "string",
"quantity": 1
}
]
}
}
inventory-storage's integration stream. network-inventory-planning consumes only the two transfer-allocation replies, the allocation release fact (ADR 0022) and the two destination facts; every other type is ignored.
Drive the saga RELEASING → CANCELLED.
inventory-storage's release fact (ADR 0022): the origin hold of a transfer cancelled after allocation is resolved. outcome is the closed set RELEASED (the reservation still held the stock; it was revoked) | ALREADY_RESOLVED (it had already expired or been confirmed) — both settle the saga to CANCELLED. The consumer validates the fact against the transfer (line, reservation, origin, SKU, quantity) exactly like the allocation reply; a mismatch is a deterministic dead-letter, never a retry. Consumer group TRANSFER_REPLY_CONSUMER_GROUP (env-configured).
Available only on servers:
Accepts one of the following messages:
inventory-storage allocated origin stock for a transfer line (consumed reply).
CloudEvents 1.0 envelope of inventory-storage's TransferStockAllocated reply (consumed).
{
"specversion": "1.0",
"id": "string",
"source": "string",
"type": "com.warehouse.wms.inventory-storage.reservation.TransferStockAllocated",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:inventory-storage:events:TransferStockAllocated:v1",
"data": {
"transfer_id": "string",
"transfer_line_id": "string",
"origin_site_id": "string",
"reservation_id": "string",
"sku": "string",
"quantity": 1,
"allocations": [
{
"stock_unit_id": "string",
"bin_id": "string",
"quantity": 1
}
],
"expires_at": "2019-08-24T14:15:22Z"
}
}
inventory-storage refused a transfer-line allocation (consumed reply).
CloudEvents 1.0 envelope of inventory-storage's TransferStockAllocationRejected reply (consumed).
{
"specversion": "1.0",
"id": "string",
"source": "string",
"type": "com.warehouse.wms.inventory-storage.reservation.TransferStockAllocationRejected",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:inventory-storage:events:TransferStockAllocationRejected:v1",
"data": {
"transfer_id": "string",
"transfer_line_id": "string",
"origin_site_id": "string",
"sku": "string",
"requested_quantity": 1,
"reason": "ORIGIN_SITE_UNKNOWN"
}
}
inventory-storage resolved the origin hold of a cancelled transfer (consumed reply).
CloudEvents 1.0 envelope of inventory-storage's TransferStockAllocationReleased reply (consumed).
{
"specversion": "1.0",
"id": "string",
"source": "string",
"type": "com.warehouse.wms.inventory-storage.reservation.TransferStockAllocationReleased",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:inventory-storage:events:TransferStockAllocationReleased:v1",
"data": {
"transfer_id": "string",
"transfer_line_id": "string",
"reservation_id": "string",
"origin_site_id": "string",
"sku": "string",
"quantity": 1,
"outcome": "RELEASED",
"reason": "string"
}
}
inventory-storage staged a transfer receipt at the destination (consumed fact).
CloudEvents 1.0 envelope of inventory-storage's TransferReceiptStaged destination fact (consumed).
{
"specversion": "1.0",
"id": "string",
"source": "string",
"type": "com.warehouse.wms.inventory-storage.stock.TransferReceiptStaged",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:inventory-storage:events:TransferReceiptStaged:v1",
"data": {
"transfer_id": "string",
"transfer_line_id": "string",
"destination_site_id": "string",
"sku": "string",
"expected_quantity": 0,
"received_quantity": 0,
"variance": 0
}
}
inventory-storage stowed transferred stock at the destination (consumed fact).
CloudEvents 1.0 envelope of inventory-storage's TransferStockStowed destination fact (consumed).
{
"specversion": "1.0",
"id": "string",
"source": "string",
"type": "com.warehouse.wms.inventory-storage.stock.TransferStockStowed",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:inventory-storage:events:TransferStockStowed:v1",
"data": {
"transfer_id": "string",
"transfer_line_id": "string",
"destination_site_id": "string",
"sku": "string",
"received_quantity": 0,
"stowed_quantity": 0,
"allocations": [
{
"stock_unit_id": "string",
"bin_id": "string",
"quantity": 1
}
]
}
}
This context's OWN integration stream (Phase 2). Everything on it is emitted through the transactional outbox: the saga state change and the outbox row commit in one transaction, and a background relay publishes afterwards — a request handler never sends directly.
Release one transfer leg as warehouse work.
The WorkDemandReleased COMMAND (ADR 0005), published through the
transactional outbox in the SAME transaction as the state change
that justifies it: the ALLOCATED transition releases the pick leg
(demand_id <transfer_id>:pick, quantity = allocated), the PICKED
transition releases the dispatch leg (demand_id
<transfer_id>:dispatch, quantity = PICKED, so a short pick
dispatches only what was picked). Subject and Kafka key are the
demand_id. WES validates path_id against its PathCatalogue and
enqueues one work unit under the deterministic demand_id.
Available only on servers:
Accepts one of the following messages:
An operator approved an advisory proposal into a transfer plan (published).
CloudEvents 1.0 envelope of this context's TransferPlanApproved (published via the transactional outbox).
{
"specversion": "1.0",
"id": "string",
"source": "/warehouse/network-inventory-planning",
"type": "com.warehouse.wes.network-inventory-planning.transfer.TransferPlanApproved",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:network-inventory-planning:events:TransferPlanApproved:v1",
"data": {
"transfer_id": "string",
"origin_site_id": "string",
"destination_site_id": "string",
"sku": "string",
"quantity": 1,
"case_multiple": 2,
"cases": 1,
"requested_qty_eaches": 1,
"rounded_qty_eaches": 1,
"remainder_eaches": 0,
"policy_version": "string",
"operator_reason": "string",
"proposal_as_of": "2019-08-24T14:15:22Z"
}
}
Command inventory-storage to allocate origin stock for a transfer line (published).
CloudEvents 1.0 envelope of this context's TransferAllocationRequested COMMAND (published via the transactional outbox). The data payload is EXACTLY inventory-storage's consumed contract — five fields, no more.
{
"specversion": "1.0",
"id": "string",
"source": "/warehouse/network-inventory-planning",
"type": "com.warehouse.wes.network-inventory-planning.transfer.TransferAllocationRequested",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:network-inventory-planning:events:TransferAllocationRequested:v1",
"data": {
"transfer_id": "string",
"transfer_line_id": "string",
"origin_site_id": "string",
"sku": "string",
"quantity": 1
}
}
Command inventory-storage to resolve the origin hold of a cancelled transfer (published).
CloudEvents 1.0 envelope of this context's TransferAllocationReleaseRequested COMMAND (published via the transactional outbox, ADR 0022). The data payload is EXACTLY inventory-storage's consumed contract.
{
"specversion": "1.0",
"id": "string",
"source": "/warehouse/network-inventory-planning",
"type": "com.warehouse.wes.network-inventory-planning.transfer.TransferAllocationReleaseRequested",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:network-inventory-planning:events:TransferAllocationReleaseRequested:v1",
"data": {
"transfer_id": "string",
"transfer_line_id": "string",
"reservation_id": "string",
"origin_site_id": "string",
"sku": "string",
"quantity": 1,
"reason": "string"
}
}
One leg of an approved transfer released for warehouse work (published).
CloudEvents 1.0 envelope of this context's WorkDemandReleased COMMAND (published via the transactional outbox, ADR 0005). The data payload is EXACTLY WES's (wes-work-planning) consumed contract, mirrored read-only from its apis/asyncapi.yaml — every data field is required by the producer.
{
"specversion": "1.0",
"id": "string",
"source": "/warehouse/network-inventory-planning",
"type": "com.warehouse.wes.network-inventory-planning.workdemand.WorkDemandReleased",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:network-inventory-planning:events:WorkDemandReleased:v1",
"data": {
"demand_id": "string",
"work_kind": "TRANSFER_PICK",
"transfer_ref": "string",
"path_id": "string",
"site_id": "string",
"cpt": "2019-08-24T14:15:22Z",
"sku": "string",
"quantity": 1
}
}
This context's dedicated analytics stream (ADR 0007): saga-health occurrences only, never OLTP commands. Consumed by this context's own nip-projector. Published through the same transactional outbox as the integration events, on separate rows with their own topic, so the integration contract and the health signal evolve independently.
Announce one saga state transition for health analytics.
Published through the transactional outbox in the SAME transaction as the transition it describes (ADR 0007): data {transfer_id, from, to, age_seconds}, subject/key transfer_id. An occurrence exists for every step of every transfer.
Available only on servers:
Accepts one of the following messages:
One saga state transition, as a health-analytics occurrence (published).
CloudEvents 1.0 envelope of this context's TransferStateAdvanced analytics occurrence (ADR 0007, published via the transactional outbox in the same transaction as the transition).
{
"specversion": "1.0",
"id": "string",
"source": "/warehouse/network-inventory-planning",
"type": "com.warehouse.wes.network-inventory-planning.saga.TransferStateAdvanced",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:network-inventory-planning:analytics:TransferStateAdvanced:v1",
"data": {
"transfer_id": "string",
"from": "string",
"to": "DRAFT",
"age_seconds": 0
}
}
A non-terminal transfer aged past its per-state threshold (published, observe-only).
CloudEvents 1.0 envelope of this context's TransferStuckDetected analytics occurrence (ADR 0007, published by the bounded observe-only health ticker).
{
"specversion": "1.0",
"id": "string",
"source": "/warehouse/network-inventory-planning",
"type": "com.warehouse.wes.network-inventory-planning.saga.TransferStuckDetected",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:network-inventory-planning:analytics:TransferStuckDetected:v1",
"data": {
"transfer_id": "string",
"state": "string",
"age_seconds": 0,
"threshold_seconds": 0
}
}
One scheduled (observe-only) rebalance pass (published).
CloudEvents 1.0 envelope of this context's RebalanceRunCompleted analytics occurrence (ADR 0007, one per scheduled observe-only rebalance pass).
{
"specversion": "1.0",
"id": "string",
"source": "/warehouse/network-inventory-planning",
"type": "com.warehouse.wes.network-inventory-planning.saga.RebalanceRunCompleted",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:network-inventory-planning:analytics:RebalanceRunCompleted:v1",
"data": {
"run_id": "string",
"proposal_count": 0,
"rejected_count": 0,
"stale_facts": 0
}
}
This context's dedicated analytics stream (ADR 0007): saga-health occurrences only, never OLTP commands. Consumed by this context's own nip-projector. Published through the same transactional outbox as the integration events, on separate rows with their own topic, so the integration contract and the health signal evolve independently.
Announce a non-terminal transfer aged past its per-state threshold.
Emitted by a bounded in-process ticker (NIP_HEALTH_CHECK_INTERVAL, default 5m, 0=off) using per-state thresholds from NIP_STUCK_THRESHOLDS (defaults ALLOCATING=1h, PICKED=24h, IN_TRANSIT=72h, flat 24h otherwise). OBSERVE-ONLY: the check reads and publishes, it never mutates saga state. Data {transfer_id, state, age_seconds, threshold_seconds}, subject/key transfer_id.
Available only on servers:
Accepts one of the following messages:
One saga state transition, as a health-analytics occurrence (published).
CloudEvents 1.0 envelope of this context's TransferStateAdvanced analytics occurrence (ADR 0007, published via the transactional outbox in the same transaction as the transition).
{
"specversion": "1.0",
"id": "string",
"source": "/warehouse/network-inventory-planning",
"type": "com.warehouse.wes.network-inventory-planning.saga.TransferStateAdvanced",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:network-inventory-planning:analytics:TransferStateAdvanced:v1",
"data": {
"transfer_id": "string",
"from": "string",
"to": "DRAFT",
"age_seconds": 0
}
}
A non-terminal transfer aged past its per-state threshold (published, observe-only).
CloudEvents 1.0 envelope of this context's TransferStuckDetected analytics occurrence (ADR 0007, published by the bounded observe-only health ticker).
{
"specversion": "1.0",
"id": "string",
"source": "/warehouse/network-inventory-planning",
"type": "com.warehouse.wes.network-inventory-planning.saga.TransferStuckDetected",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:network-inventory-planning:analytics:TransferStuckDetected:v1",
"data": {
"transfer_id": "string",
"state": "string",
"age_seconds": 0,
"threshold_seconds": 0
}
}
One scheduled (observe-only) rebalance pass (published).
CloudEvents 1.0 envelope of this context's RebalanceRunCompleted analytics occurrence (ADR 0007, one per scheduled observe-only rebalance pass).
{
"specversion": "1.0",
"id": "string",
"source": "/warehouse/network-inventory-planning",
"type": "com.warehouse.wes.network-inventory-planning.saga.RebalanceRunCompleted",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:network-inventory-planning:analytics:RebalanceRunCompleted:v1",
"data": {
"run_id": "string",
"proposal_count": 0,
"rejected_count": 0,
"stale_facts": 0
}
}
This context's dedicated analytics stream (ADR 0007): saga-health occurrences only, never OLTP commands. Consumed by this context's own nip-projector. Published through the same transactional outbox as the integration events, on separate rows with their own topic, so the integration contract and the health signal evolve independently.
Announce one scheduled rebalance pass (observe-only).
One occurrence per NIP_REBALANCE_SCHEDULE tick (no default: unset means the loop is off). The pass runs the same fail-closed snapshot build + planner as the simulation and records a rebalance_runs row (served by GET /v1/rebalance-runs); it NEVER approves anything and NEVER emits an allocation command. Data {run_id, proposal_count, rejected_count, stale_facts}, subject/key run_id.
Available only on servers:
Accepts one of the following messages:
One saga state transition, as a health-analytics occurrence (published).
CloudEvents 1.0 envelope of this context's TransferStateAdvanced analytics occurrence (ADR 0007, published via the transactional outbox in the same transaction as the transition).
{
"specversion": "1.0",
"id": "string",
"source": "/warehouse/network-inventory-planning",
"type": "com.warehouse.wes.network-inventory-planning.saga.TransferStateAdvanced",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:network-inventory-planning:analytics:TransferStateAdvanced:v1",
"data": {
"transfer_id": "string",
"from": "string",
"to": "DRAFT",
"age_seconds": 0
}
}
A non-terminal transfer aged past its per-state threshold (published, observe-only).
CloudEvents 1.0 envelope of this context's TransferStuckDetected analytics occurrence (ADR 0007, published by the bounded observe-only health ticker).
{
"specversion": "1.0",
"id": "string",
"source": "/warehouse/network-inventory-planning",
"type": "com.warehouse.wes.network-inventory-planning.saga.TransferStuckDetected",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:network-inventory-planning:analytics:TransferStuckDetected:v1",
"data": {
"transfer_id": "string",
"state": "string",
"age_seconds": 0,
"threshold_seconds": 0
}
}
One scheduled (observe-only) rebalance pass (published).
CloudEvents 1.0 envelope of this context's RebalanceRunCompleted analytics occurrence (ADR 0007, one per scheduled observe-only rebalance pass).
{
"specversion": "1.0",
"id": "string",
"source": "/warehouse/network-inventory-planning",
"type": "com.warehouse.wes.network-inventory-planning.saga.RebalanceRunCompleted",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:network-inventory-planning:analytics:RebalanceRunCompleted:v1",
"data": {
"run_id": "string",
"proposal_count": 0,
"rejected_count": 0,
"stale_facts": 0
}
}
fulfillment-execution's integration stream. network-inventory- planning consumes only the three transfer facts and ignores every other type.
Drive the saga ALLOCATED → PICKED and release the dispatch leg.
fulfillment-execution's pick-completion fact. The consumer applies it in ONE transaction with the processed-event claim: PICKED state, picked_quantity recorded (a SHORT pick is recorded, not refused), and the dispatch WorkDemandReleased outboxed with the picked quantity. A fact whose transfer_ref names no known transfer is WARN-logged and committed past. Consumer group TRANSFER_FACT_CONSUMER_GROUP (env-configured).
Available only on servers:
Accepts one of the following messages:
fulfillment-execution completed a TRANSFER_PICK task (consumed fact).
CloudEvents 1.0 envelope of fulfillment-execution's TransferPicked fact (consumed).
{
"specversion": "1.0",
"id": "string",
"source": "string",
"type": "com.warehouse.wes.fulfillment-execution.transfer.TransferPicked",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:fulfillment-execution:events:TransferPicked:v1",
"data": {
"transfer_ref": "string",
"demand_id": "string",
"work_unit_id": "string",
"task_id": "string",
"work_kind": "TRANSFER_PICK",
"site_id": "string",
"sku": "string",
"quantity": 0
}
}
fulfillment-execution completed a TRANSFER_DISPATCH task (consumed fact).
CloudEvents 1.0 envelope of fulfillment-execution's TransferDispatched fact (consumed).
{
"specversion": "1.0",
"id": "string",
"source": "string",
"type": "com.warehouse.wes.fulfillment-execution.transfer.TransferDispatched",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:fulfillment-execution:events:TransferDispatched:v1",
"data": {
"transfer_ref": "string",
"demand_id": "string",
"work_unit_id": "string",
"task_id": "string",
"work_kind": "TRANSFER_PICK",
"site_id": "string",
"sku": "string",
"quantity": 0
}
}
fulfillment-execution completed a TRANSFER_ARRIVAL task (consumed fact, reserved).
CloudEvents 1.0 envelope of fulfillment-execution's TransferArrived fact (consumed, RESERVED — scan-driven receiving may bypass it; TransferReceiptStaged drives the same transition).
{
"specversion": "1.0",
"id": "string",
"source": "string",
"type": "com.warehouse.wes.fulfillment-execution.transfer.TransferArrived",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:fulfillment-execution:events:TransferArrived:v1",
"data": {
"transfer_ref": "string",
"demand_id": "string",
"work_unit_id": "string",
"task_id": "string",
"work_kind": "TRANSFER_PICK",
"site_id": "string",
"sku": "string",
"quantity": 0
}
}
fulfillment-execution's integration stream. network-inventory- planning consumes only the three transfer facts and ignores every other type.
Drive the saga PICKED → IN_TRANSIT.
fulfillment-execution's dispatch-completion fact. No demand is released (the arrival leg is triggered by the receiving scan). Consumer group TRANSFER_FACT_CONSUMER_GROUP (env-configured).
Available only on servers:
Accepts one of the following messages:
fulfillment-execution completed a TRANSFER_PICK task (consumed fact).
CloudEvents 1.0 envelope of fulfillment-execution's TransferPicked fact (consumed).
{
"specversion": "1.0",
"id": "string",
"source": "string",
"type": "com.warehouse.wes.fulfillment-execution.transfer.TransferPicked",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:fulfillment-execution:events:TransferPicked:v1",
"data": {
"transfer_ref": "string",
"demand_id": "string",
"work_unit_id": "string",
"task_id": "string",
"work_kind": "TRANSFER_PICK",
"site_id": "string",
"sku": "string",
"quantity": 0
}
}
fulfillment-execution completed a TRANSFER_DISPATCH task (consumed fact).
CloudEvents 1.0 envelope of fulfillment-execution's TransferDispatched fact (consumed).
{
"specversion": "1.0",
"id": "string",
"source": "string",
"type": "com.warehouse.wes.fulfillment-execution.transfer.TransferDispatched",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:fulfillment-execution:events:TransferDispatched:v1",
"data": {
"transfer_ref": "string",
"demand_id": "string",
"work_unit_id": "string",
"task_id": "string",
"work_kind": "TRANSFER_PICK",
"site_id": "string",
"sku": "string",
"quantity": 0
}
}
fulfillment-execution completed a TRANSFER_ARRIVAL task (consumed fact, reserved).
CloudEvents 1.0 envelope of fulfillment-execution's TransferArrived fact (consumed, RESERVED — scan-driven receiving may bypass it; TransferReceiptStaged drives the same transition).
{
"specversion": "1.0",
"id": "string",
"source": "string",
"type": "com.warehouse.wes.fulfillment-execution.transfer.TransferArrived",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:fulfillment-execution:events:TransferArrived:v1",
"data": {
"transfer_ref": "string",
"demand_id": "string",
"work_unit_id": "string",
"task_id": "string",
"work_kind": "TRANSFER_PICK",
"site_id": "string",
"sku": "string",
"quantity": 0
}
}
fulfillment-execution's integration stream. network-inventory- planning consumes only the three transfer facts and ignores every other type.
Drive the saga IN_TRANSIT → ARRIVED (reserved kind).
fulfillment-execution's arrival-completion fact. RESERVED: scan-driven receiving may bypass it entirely — inventory-storage's TransferReceiptStaged drives the same transition, and whichever arrives first wins (the other is a deterministic out-of-order skip). Consumer group TRANSFER_FACT_CONSUMER_GROUP (env-configured).
Available only on servers:
Accepts one of the following messages:
fulfillment-execution completed a TRANSFER_PICK task (consumed fact).
CloudEvents 1.0 envelope of fulfillment-execution's TransferPicked fact (consumed).
{
"specversion": "1.0",
"id": "string",
"source": "string",
"type": "com.warehouse.wes.fulfillment-execution.transfer.TransferPicked",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:fulfillment-execution:events:TransferPicked:v1",
"data": {
"transfer_ref": "string",
"demand_id": "string",
"work_unit_id": "string",
"task_id": "string",
"work_kind": "TRANSFER_PICK",
"site_id": "string",
"sku": "string",
"quantity": 0
}
}
fulfillment-execution completed a TRANSFER_DISPATCH task (consumed fact).
CloudEvents 1.0 envelope of fulfillment-execution's TransferDispatched fact (consumed).
{
"specversion": "1.0",
"id": "string",
"source": "string",
"type": "com.warehouse.wes.fulfillment-execution.transfer.TransferDispatched",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:fulfillment-execution:events:TransferDispatched:v1",
"data": {
"transfer_ref": "string",
"demand_id": "string",
"work_unit_id": "string",
"task_id": "string",
"work_kind": "TRANSFER_PICK",
"site_id": "string",
"sku": "string",
"quantity": 0
}
}
fulfillment-execution completed a TRANSFER_ARRIVAL task (consumed fact, reserved).
CloudEvents 1.0 envelope of fulfillment-execution's TransferArrived fact (consumed, RESERVED — scan-driven receiving may bypass it; TransferReceiptStaged drives the same transition).
{
"specversion": "1.0",
"id": "string",
"source": "string",
"type": "com.warehouse.wes.fulfillment-execution.transfer.TransferArrived",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:fulfillment-execution:events:TransferArrived:v1",
"data": {
"transfer_ref": "string",
"demand_id": "string",
"work_unit_id": "string",
"task_id": "string",
"work_kind": "TRANSFER_PICK",
"site_id": "string",
"sku": "string",
"quantity": 0
}
}
inventory-storage's integration stream. network-inventory-planning consumes only the two transfer-allocation replies, the allocation release fact (ADR 0022) and the two destination facts; every other type is ignored.
Drive the saga IN_TRANSIT → ARRIVED (scan-driven receiving).
inventory-storage's destination receipt fact: the received stock was staged at the destination. Same transition as the reserved TransferArrived fact. The variance is informational. Consumer group TRANSFER_REPLY_CONSUMER_GROUP (env-configured).
Available only on servers:
Accepts one of the following messages:
inventory-storage allocated origin stock for a transfer line (consumed reply).
CloudEvents 1.0 envelope of inventory-storage's TransferStockAllocated reply (consumed).
{
"specversion": "1.0",
"id": "string",
"source": "string",
"type": "com.warehouse.wms.inventory-storage.reservation.TransferStockAllocated",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:inventory-storage:events:TransferStockAllocated:v1",
"data": {
"transfer_id": "string",
"transfer_line_id": "string",
"origin_site_id": "string",
"reservation_id": "string",
"sku": "string",
"quantity": 1,
"allocations": [
{
"stock_unit_id": "string",
"bin_id": "string",
"quantity": 1
}
],
"expires_at": "2019-08-24T14:15:22Z"
}
}
inventory-storage refused a transfer-line allocation (consumed reply).
CloudEvents 1.0 envelope of inventory-storage's TransferStockAllocationRejected reply (consumed).
{
"specversion": "1.0",
"id": "string",
"source": "string",
"type": "com.warehouse.wms.inventory-storage.reservation.TransferStockAllocationRejected",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:inventory-storage:events:TransferStockAllocationRejected:v1",
"data": {
"transfer_id": "string",
"transfer_line_id": "string",
"origin_site_id": "string",
"sku": "string",
"requested_quantity": 1,
"reason": "ORIGIN_SITE_UNKNOWN"
}
}
inventory-storage resolved the origin hold of a cancelled transfer (consumed reply).
CloudEvents 1.0 envelope of inventory-storage's TransferStockAllocationReleased reply (consumed).
{
"specversion": "1.0",
"id": "string",
"source": "string",
"type": "com.warehouse.wms.inventory-storage.reservation.TransferStockAllocationReleased",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:inventory-storage:events:TransferStockAllocationReleased:v1",
"data": {
"transfer_id": "string",
"transfer_line_id": "string",
"reservation_id": "string",
"origin_site_id": "string",
"sku": "string",
"quantity": 1,
"outcome": "RELEASED",
"reason": "string"
}
}
inventory-storage staged a transfer receipt at the destination (consumed fact).
CloudEvents 1.0 envelope of inventory-storage's TransferReceiptStaged destination fact (consumed).
{
"specversion": "1.0",
"id": "string",
"source": "string",
"type": "com.warehouse.wms.inventory-storage.stock.TransferReceiptStaged",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:inventory-storage:events:TransferReceiptStaged:v1",
"data": {
"transfer_id": "string",
"transfer_line_id": "string",
"destination_site_id": "string",
"sku": "string",
"expected_quantity": 0,
"received_quantity": 0,
"variance": 0
}
}
inventory-storage stowed transferred stock at the destination (consumed fact).
CloudEvents 1.0 envelope of inventory-storage's TransferStockStowed destination fact (consumed).
{
"specversion": "1.0",
"id": "string",
"source": "string",
"type": "com.warehouse.wms.inventory-storage.stock.TransferStockStowed",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:inventory-storage:events:TransferStockStowed:v1",
"data": {
"transfer_id": "string",
"transfer_line_id": "string",
"destination_site_id": "string",
"sku": "string",
"received_quantity": 0,
"stowed_quantity": 0,
"allocations": [
{
"stock_unit_id": "string",
"bin_id": "string",
"quantity": 1
}
]
}
}
inventory-storage's integration stream. network-inventory-planning consumes only the two transfer-allocation replies, the allocation release fact (ADR 0022) and the two destination facts; every other type is ignored.
Drive the saga ARRIVED → RECEIVED (terminal).
inventory-storage's destination stow fact: the received stock was stowed into destination bins. RECEIVED is terminal; the stow allocations are persisted on the aggregate. Consumer group TRANSFER_REPLY_CONSUMER_GROUP (env-configured).
Available only on servers:
Accepts one of the following messages:
inventory-storage allocated origin stock for a transfer line (consumed reply).
CloudEvents 1.0 envelope of inventory-storage's TransferStockAllocated reply (consumed).
{
"specversion": "1.0",
"id": "string",
"source": "string",
"type": "com.warehouse.wms.inventory-storage.reservation.TransferStockAllocated",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:inventory-storage:events:TransferStockAllocated:v1",
"data": {
"transfer_id": "string",
"transfer_line_id": "string",
"origin_site_id": "string",
"reservation_id": "string",
"sku": "string",
"quantity": 1,
"allocations": [
{
"stock_unit_id": "string",
"bin_id": "string",
"quantity": 1
}
],
"expires_at": "2019-08-24T14:15:22Z"
}
}
inventory-storage refused a transfer-line allocation (consumed reply).
CloudEvents 1.0 envelope of inventory-storage's TransferStockAllocationRejected reply (consumed).
{
"specversion": "1.0",
"id": "string",
"source": "string",
"type": "com.warehouse.wms.inventory-storage.reservation.TransferStockAllocationRejected",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:inventory-storage:events:TransferStockAllocationRejected:v1",
"data": {
"transfer_id": "string",
"transfer_line_id": "string",
"origin_site_id": "string",
"sku": "string",
"requested_quantity": 1,
"reason": "ORIGIN_SITE_UNKNOWN"
}
}
inventory-storage resolved the origin hold of a cancelled transfer (consumed reply).
CloudEvents 1.0 envelope of inventory-storage's TransferStockAllocationReleased reply (consumed).
{
"specversion": "1.0",
"id": "string",
"source": "string",
"type": "com.warehouse.wms.inventory-storage.reservation.TransferStockAllocationReleased",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:inventory-storage:events:TransferStockAllocationReleased:v1",
"data": {
"transfer_id": "string",
"transfer_line_id": "string",
"reservation_id": "string",
"origin_site_id": "string",
"sku": "string",
"quantity": 1,
"outcome": "RELEASED",
"reason": "string"
}
}
inventory-storage staged a transfer receipt at the destination (consumed fact).
CloudEvents 1.0 envelope of inventory-storage's TransferReceiptStaged destination fact (consumed).
{
"specversion": "1.0",
"id": "string",
"source": "string",
"type": "com.warehouse.wms.inventory-storage.stock.TransferReceiptStaged",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:inventory-storage:events:TransferReceiptStaged:v1",
"data": {
"transfer_id": "string",
"transfer_line_id": "string",
"destination_site_id": "string",
"sku": "string",
"expected_quantity": 0,
"received_quantity": 0,
"variance": 0
}
}
inventory-storage stowed transferred stock at the destination (consumed fact).
CloudEvents 1.0 envelope of inventory-storage's TransferStockStowed destination fact (consumed).
{
"specversion": "1.0",
"id": "string",
"source": "string",
"type": "com.warehouse.wms.inventory-storage.stock.TransferStockStowed",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:inventory-storage:events:TransferStockStowed:v1",
"data": {
"transfer_id": "string",
"transfer_line_id": "string",
"destination_site_id": "string",
"sku": "string",
"received_quantity": 0,
"stowed_quantity": 0,
"allocations": [
{
"stock_unit_id": "string",
"bin_id": "string",
"quantity": 1
}
]
}
}
This context's dedicated analytics stream (ADR 0007): saga-health occurrences only, never OLTP commands. Consumed by this context's own nip-projector. Published through the same transactional outbox as the integration events, on separate rows with their own topic, so the integration contract and the health signal evolve independently.
Project a saga transition into the analytical database (nip-projector).
Consumed by cmd/nip-projector (group ANALYTICS_CONSUMER_GROUP). The
payload is validated (transfer_id must equal the subject, to is
required, age_seconds is required and not negative); a violation or a
database constraint rejection is dead-lettered to
warehouse.network-inventory-planning.analytics.dlq, an unknown type is
skipped, anything else is retried.
Available only on servers:
Accepts the following message:
One saga state transition, as a health-analytics occurrence (published).
CloudEvents 1.0 envelope of this context's TransferStateAdvanced analytics occurrence (ADR 0007, published via the transactional outbox in the same transaction as the transition).
{
"specversion": "1.0",
"id": "string",
"source": "/warehouse/network-inventory-planning",
"type": "com.warehouse.wes.network-inventory-planning.saga.TransferStateAdvanced",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:network-inventory-planning:analytics:TransferStateAdvanced:v1",
"data": {
"transfer_id": "string",
"from": "string",
"to": "DRAFT",
"age_seconds": 0
}
}
This context's dedicated analytics stream (ADR 0007): saga-health occurrences only, never OLTP commands. Consumed by this context's own nip-projector. Published through the same transactional outbox as the integration events, on separate rows with their own topic, so the integration contract and the health signal evolve independently.
Project a stuck-transfer detection into the analytical database (nip-projector).
Consumed by cmd/nip-projector, same rules as receiveTransferStateAdvanced.
Available only on servers:
Accepts the following message:
A non-terminal transfer aged past its per-state threshold (published, observe-only).
CloudEvents 1.0 envelope of this context's TransferStuckDetected analytics occurrence (ADR 0007, published by the bounded observe-only health ticker).
{
"specversion": "1.0",
"id": "string",
"source": "/warehouse/network-inventory-planning",
"type": "com.warehouse.wes.network-inventory-planning.saga.TransferStuckDetected",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:network-inventory-planning:analytics:TransferStuckDetected:v1",
"data": {
"transfer_id": "string",
"state": "string",
"age_seconds": 0,
"threshold_seconds": 0
}
}
This context's dedicated analytics stream (ADR 0007): saga-health occurrences only, never OLTP commands. Consumed by this context's own nip-projector. Published through the same transactional outbox as the integration events, on separate rows with their own topic, so the integration contract and the health signal evolve independently.
Project a rebalance run into the analytical database (nip-projector).
Consumed by cmd/nip-projector, same rules as receiveTransferStateAdvanced.
Available only on servers:
Accepts the following message:
One scheduled (observe-only) rebalance pass (published).
CloudEvents 1.0 envelope of this context's RebalanceRunCompleted analytics occurrence (ADR 0007, one per scheduled observe-only rebalance pass).
{
"specversion": "1.0",
"id": "string",
"source": "/warehouse/network-inventory-planning",
"type": "com.warehouse.wes.network-inventory-planning.saga.RebalanceRunCompleted",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:network-inventory-planning:analytics:RebalanceRunCompleted:v1",
"data": {
"run_id": "string",
"proposal_count": 0,
"rejected_count": 0,
"stale_facts": 0
}
}
product-master's integration stream (the ProductMasterTopic constant in internal/adapters/inbound/kafka/pack_level_consumer.go). network-inventory-planning consumes only ProductPackLevelDeclared and ProductPackLevelRetired into its local pack_levels view (ADR 0017, case-multiple transfers) and ignores every other type.
Keep the local pack_levels view current (a pack level declared).
Upsert the (sku, level) pack level with its GTIN, units_per_pack and effective_from, last writer wins on version, in ONE transaction with the processed-event claim (consumer pack-level-consumer). A malformed payload or an unparsable effective_from is dead-lettered to warehouse.product-master.events.dlq; only infrastructure failures are retried. Consumer group PACK_LEVEL_CONSUMER_GROUP (env-configured; unset = the consumer does not start).
Available only on servers:
Accepts the following message:
product-master declared or revised a pack level of a SKU (consumed).
CloudEvents 1.0 envelope of product-master's ProductPackLevelDeclared (fields as product-master's apis/asyncapi.yaml; this service reads sku, level, gtin, units_per_pack, effective_from, version).
{
"specversion": "1.0",
"id": "string",
"source": "string",
"type": "com.warehouse.wms.product-master.product.ProductPackLevelDeclared",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:product-master:events:ProductPackLevelDeclared:v1",
"data": {
"sku": "string",
"level": "string",
"gtin": "string",
"child_gtin": "string",
"qty_of_child": 2,
"units_per_pack": 1,
"is_orderable": true,
"is_despatch_unit": true,
"effective_from": "2019-08-24T14:15:22Z",
"version": 1
}
}
product-master's integration stream (the ProductMasterTopic constant in internal/adapters/inbound/kafka/pack_level_consumer.go). network-inventory-planning consumes only ProductPackLevelDeclared and ProductPackLevelRetired into its local pack_levels view (ADR 0017, case-multiple transfers) and ignores every other type.
Keep the local pack_levels view current (a pack level retired).
Mark the (sku, level) pack level retired as of effective_to, last writer wins on version, in the same transaction shape as the declared handler. Consumer group PACK_LEVEL_CONSUMER_GROUP.
Available only on servers:
Accepts the following message:
product-master retired a pack level of a SKU (consumed).
CloudEvents 1.0 envelope of product-master's ProductPackLevelRetired (this service reads sku, level, gtin, effective_to, version).
{
"specversion": "1.0",
"id": "string",
"source": "string",
"type": "com.warehouse.wms.product-master.product.ProductPackLevelRetired",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:product-master:events:ProductPackLevelRetired:v1",
"data": {
"sku": "string",
"level": "string",
"gtin": "string",
"effective_to": "2019-08-24T14:15:22Z",
"reason": "string",
"version": 1
}
}
product-master declared or revised a pack level of a SKU (consumed).
CloudEvents 1.0 envelope of product-master's ProductPackLevelDeclared (fields as product-master's apis/asyncapi.yaml; this service reads sku, level, gtin, units_per_pack, effective_from, version).
product-master retired a pack level of a SKU (consumed).
CloudEvents 1.0 envelope of product-master's ProductPackLevelRetired (this service reads sku, level, gtin, effective_to, version).
A site's transfer capability state changed (consumed).
CloudEvents 1.0 envelope of facility-layout's SiteCapabilityChanged.
One source order line's site demand changed (consumed).
CloudEvents 1.0 envelope of order-management's SiteSkuDemandChanged.
A capacity plan was published (consumed).
CloudEvents 1.0 envelope of warehouse-planning's CapacityPlanPublished (v1 payload + additive site_id).
An operator approved an advisory proposal into a transfer plan (published).
CloudEvents 1.0 envelope of this context's TransferPlanApproved (published via the transactional outbox).
Command inventory-storage to allocate origin stock for a transfer line (published).
CloudEvents 1.0 envelope of this context's TransferAllocationRequested COMMAND (published via the transactional outbox). The data payload is EXACTLY inventory-storage's consumed contract — five fields, no more.
Command inventory-storage to resolve the origin hold of a cancelled transfer (published).
CloudEvents 1.0 envelope of this context's TransferAllocationReleaseRequested COMMAND (published via the transactional outbox, ADR 0022). The data payload is EXACTLY inventory-storage's consumed contract.
inventory-storage allocated origin stock for a transfer line (consumed reply).
CloudEvents 1.0 envelope of inventory-storage's TransferStockAllocated reply (consumed).
inventory-storage refused a transfer-line allocation (consumed reply).
CloudEvents 1.0 envelope of inventory-storage's TransferStockAllocationRejected reply (consumed).
inventory-storage resolved the origin hold of a cancelled transfer (consumed reply).
CloudEvents 1.0 envelope of inventory-storage's TransferStockAllocationReleased reply (consumed).
One leg of an approved transfer released for warehouse work (published).
CloudEvents 1.0 envelope of this context's WorkDemandReleased COMMAND (published via the transactional outbox, ADR 0005). The data payload is EXACTLY WES's (wes-work-planning) consumed contract, mirrored read-only from its apis/asyncapi.yaml — every data field is required by the producer.
fulfillment-execution completed a TRANSFER_PICK task (consumed fact).
CloudEvents 1.0 envelope of fulfillment-execution's TransferPicked fact (consumed).
fulfillment-execution completed a TRANSFER_DISPATCH task (consumed fact).
CloudEvents 1.0 envelope of fulfillment-execution's TransferDispatched fact (consumed).
fulfillment-execution completed a TRANSFER_ARRIVAL task (consumed fact, reserved).
CloudEvents 1.0 envelope of fulfillment-execution's TransferArrived fact (consumed, RESERVED — scan-driven receiving may bypass it; TransferReceiptStaged drives the same transition).
inventory-storage staged a transfer receipt at the destination (consumed fact).
CloudEvents 1.0 envelope of inventory-storage's TransferReceiptStaged destination fact (consumed).
inventory-storage stowed transferred stock at the destination (consumed fact).
CloudEvents 1.0 envelope of inventory-storage's TransferStockStowed destination fact (consumed).
One saga state transition, as a health-analytics occurrence (published).
CloudEvents 1.0 envelope of this context's TransferStateAdvanced analytics occurrence (ADR 0007, published via the transactional outbox in the same transaction as the transition).
A non-terminal transfer aged past its per-state threshold (published, observe-only).
CloudEvents 1.0 envelope of this context's TransferStuckDetected analytics occurrence (ADR 0007, published by the bounded observe-only health ticker).
One scheduled (observe-only) rebalance pass (published).
CloudEvents 1.0 envelope of this context's RebalanceRunCompleted analytics occurrence (ADR 0007, one per scheduled observe-only rebalance pass).
CloudEvents 1.0 envelope of product-master's ProductPackLevelDeclared (fields as product-master's apis/asyncapi.yaml; this service reads sku, level, gtin, units_per_pack, effective_from, version).
CloudEvents 1.0 envelope of product-master's ProductPackLevelRetired (this service reads sku, level, gtin, effective_to, version).
CloudEvents 1.0 envelope of facility-layout's SiteCapabilityChanged.
CloudEvents 1.0 envelope of order-management's SiteSkuDemandChanged.
CloudEvents 1.0 envelope of warehouse-planning's CapacityPlanPublished (v1 payload + additive site_id).
CloudEvents 1.0 envelope of this context's TransferPlanApproved (published via the transactional outbox).
CloudEvents 1.0 envelope of this context's TransferAllocationRequested COMMAND (published via the transactional outbox). The data payload is EXACTLY inventory-storage's consumed contract — five fields, no more.
CloudEvents 1.0 envelope of inventory-storage's TransferStockAllocated reply (consumed).
CloudEvents 1.0 envelope of inventory-storage's TransferStockAllocationRejected reply (consumed).
CloudEvents 1.0 envelope of this context's TransferAllocationReleaseRequested COMMAND (published via the transactional outbox, ADR 0022). The data payload is EXACTLY inventory-storage's consumed contract.
CloudEvents 1.0 envelope of inventory-storage's TransferStockAllocationReleased reply (consumed).
CloudEvents 1.0 envelope of this context's WorkDemandReleased COMMAND (published via the transactional outbox, ADR 0005). The data payload is EXACTLY WES's (wes-work-planning) consumed contract, mirrored read-only from its apis/asyncapi.yaml — every data field is required by the producer.
The payload every fulfillment-execution transfer fact carries, mirrored read-only from fulfillment-execution's TransferFactData. The optional fields are omitted when the release carried none.
CloudEvents 1.0 envelope of fulfillment-execution's TransferPicked fact (consumed).
CloudEvents 1.0 envelope of fulfillment-execution's TransferDispatched fact (consumed).
CloudEvents 1.0 envelope of fulfillment-execution's TransferArrived fact (consumed, RESERVED — scan-driven receiving may bypass it; TransferReceiptStaged drives the same transition).
CloudEvents 1.0 envelope of inventory-storage's TransferReceiptStaged destination fact (consumed).
CloudEvents 1.0 envelope of inventory-storage's TransferStockStowed destination fact (consumed).
CloudEvents 1.0 envelope of this context's TransferStateAdvanced analytics occurrence (ADR 0007, published via the transactional outbox in the same transaction as the transition).
CloudEvents 1.0 envelope of this context's TransferStuckDetected analytics occurrence (ADR 0007, published by the bounded observe-only health ticker).
CloudEvents 1.0 envelope of this context's RebalanceRunCompleted analytics occurrence (ADR 0007, one per scheduled observe-only rebalance pass).