Kafka events produced and consumed by the Fulfillment Execution bounded context (WES subdomain).
Every message — integration topic and analytics topic alike — is a CloudEvents 1.0 event in the Kafka protocol binding's structured content mode (ADR-0032): the Kafka message value is the JSON event, and every message carries the Kafka header content-type: application/cloudevents+json; charset=UTF-8 plus W3C traceparent/tracestate. There is no other envelope.
Required attributes: specversion (1.0), id (UUID v4, stable across outbox redelivery; the consumer idempotency key), source (/warehouse/fulfillment-execution for this service), type (com.warehouse.<subdomain>.<bounded-context>.<entity>.<EventName>), subject (aggregate id, equal to the Kafka key), time (occurred-at, UTC), datacontenttype (application/json) and dataschema (urn:warehouse:<repo>:<events|analytics>:<EventName>:v<N>). data uses snake_case keys.
An event that is published on both the integration and analytics topics carries the same CloudEvents type attribute on each; dataschema names the payload shape. The Analytics prefix on the analytics message components below (for example AnalyticsTaskCompleted) is only the AsyncAPI component name (the title is the plain event name); the CloudEvents type const never carries it. A breaking payload change ships as a new .v2 type with a new dataschema version.
Shared Kafka broker for warehouse-systems. Configured per service via KAFKA_BROKERS.
Integration events published by Fulfillment Execution, keyed by aggregate id. Consumers dispatch on the full CloudEvents type.
Consume Fulfillment Execution integration events.
Receive the TaskAvailable, TaskClaimed, TaskCompleted, TaskCPTMissed, PackageManifested, PackageDiverted, WeightDiscrepancyDetected, TransferPicked, TransferDispatched and TransferArrived CloudEvents this bounded context publishes — plus the pick-batching WorkBatchFormed, WorkBatchCompleted and WorkBatchAbandoned (ADR 0063, published only with PICK_BATCH_MODE on).
Available only on servers:
Accepts one of the following messages:
A task entered or re-entered the open-task pool and is claimable.
Raised in the same transaction as the state change, through the transactional outbox (ADR-0020), whenever a task ENTERS the pool (released from WorkReleased, or created through the API) or RE-ENTERS it (the lease-expiry sweep returned a claimed task to Pending, with a new available_at). Never raised on an idempotent replay or a rejected command. Published on warehouse.fulfillment.events, keyed by task id. Consumed by task-interleaving (its local copy of the open-task pool). A task whose location this service cannot determine is NOT announced (the consumer rejects an event without site_id and from_location): RELOCATE and REPLENISH tasks carry bins, so they are announced (ADR-0049, ADR-0050), and a PICK task whose plan carries both the site and the pick face (WorkReleased.data.pick.site_id + from_bin, the producer's additive omit-when-unknown contract) is announced too (ADR-0062): a pick missing either is NOT announced, exactly like a move whose bins carry no site. A REPLENISH task knows both bins, so it is announced with the source bin first and the destination (pick face) bin last. A PICK task is announced with the pick face as both ends of the trip (the station it ends at is not known at announce time). A PACK / SLAM / REBIN / transfer task has no location in this service.
Kafka message headers carried by every message.
A RELOCATE task released with a CPT and two required capabilities.
{
"specversion": "1.0",
"id": "6f1c2a3b-4d5e-4f60-8a7b-9c0d1e2f3a4b",
"source": "/warehouse/fulfillment-execution",
"type": "com.warehouse.wes.fulfillment-execution.task.TaskAvailable",
"subject": "task-rel-1",
"time": "2026-09-30T15:00:00Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:fulfillment-execution:events:TaskAvailable:v1",
"data": {
"task_id": "task-rel-1",
"task_type": "RELOCATE",
"site_id": "WH1",
"from_location": "WH1-RSV-AMB-B02-03-02-C",
"to_location": "WH1-FWD-AMB-A01-01-01-A",
"required_capabilities": [
"forklift",
"relocate"
],
"cpt": "2026-09-30T16:00:00Z",
"priority_band": "RELOCATE:2026-09-30T16:00:00Z",
"available_at": "2026-09-30T15:00:00Z"
}
}
A REPLENISH task (ADR-0050) - both bins are known, so source bin first and pick face last.
{
"specversion": "1.0",
"id": "6f1c2a3b-4d5e-4f60-8a7b-9c0d1e2f3a4b",
"source": "/warehouse/fulfillment-execution",
"type": "com.warehouse.wes.fulfillment-execution.task.TaskAvailable",
"subject": "task-rep-1",
"time": "2026-09-30T15:00:00Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:fulfillment-execution:events:TaskAvailable:v1",
"data": {
"task_id": "task-rep-1",
"task_type": "REPLENISH",
"site_id": "WH1",
"from_location": "WH1-RSV-AMB-B02-03-02-C",
"to_location": "WH1-FWD-AMB-A01-01-01-A",
"required_capabilities": [
"forklift",
"replenish"
],
"cpt": "2026-09-30T16:00:00Z",
"priority_band": "REPLENISH:2026-09-30T16:00:00Z",
"available_at": "2026-09-30T15:00:00Z"
}
}
A RELOCATE task released with a CPT and two required capabilities.
{
"content-type": "application/cloudevents+json; charset=UTF-8",
"traceparent": "00-8812c36621d214139a08949823716b93-14ddf02dbd8913ba-01"
}
A REPLENISH task (ADR-0050) - both bins are known, so source bin first and pick face last.
{
"content-type": "application/cloudevents+json; charset=UTF-8",
"traceparent": "00-8812c36621d214139a08949823716b93-14ddf02dbd8913ba-01"
}
A station claimed a task; it left the open-task pool.
Raised in the same transaction as the claim, through the transactional outbox (ADR-0020), for every task type. Never raised when the claim is rejected or loses the at-most-once race. Published on warehouse.fulfillment.events (the richer integration row), keyed by task id; the analytics-topic TaskClaimed {task_id, task_type, station_id} is unchanged. Consumed by task-interleaving (removes the task from its pool copy and learns the station's next position).
Kafka message headers carried by every message.
{
"specversion": "1.0",
"id": "6f1c2a3b-4d5e-4f60-8a7b-9c0d1e2f3a4b",
"source": "/warehouse/fulfillment-execution",
"type": "com.warehouse.wes.fulfillment-execution.task.TaskClaimed",
"subject": "task-rel-1",
"time": "2026-09-30T15:00:00Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:fulfillment-execution:events:TaskClaimed:v1",
"data": {
"task_id": "task-rel-1",
"task_type": "RELOCATE",
"station_id": "station-07",
"claimed_at": "2026-09-30T15:00:00Z"
}
}
{
"content-type": "application/cloudevents+json; charset=UTF-8",
"traceparent": "00-8812c36621d214139a08949823716b93-14ddf02dbd8913ba-01"
}
A station finished a claimed task.
Raised when the station holding the active claim completes the task. Published on warehouse.fulfillment.events, keyed (and subject-ed) by task id, enriched at publish time with work_unit_id (the task's order reference, so Work Planning can call RecordCompletion), and associate_id, duration_seconds, task_type for labor-performance (ADR-0014, ADR-0023), and the optional order_ref (the order key inventory-storage uses to confirm picks, ADR-0040) and line_no (the order line, so it can confirm that line's reservation, ADR-0041). A RELOCATE task's TaskCompleted also carries the executed slot-plan move in the additive fields sku, from_bin, to_bin, quantity and relocation_ref (ADR-0047), which inventory-storage applies to its ledger as a RelocateStock (its ADR 0039); they are omitted on every other task type. A REPLENISH task's TaskCompleted (ADR-0050) carries the same sku, from_bin, to_bin and quantity plus the additive request_ref (the replenishment request id) instead of relocation_ref; inventory-storage applies it as a RelocateStock with reason REPLENISHMENT (its ADR 0041), source_ref = request_ref. Consumed by wes-work-planning, labor-performance and inventory-storage.
Kafka message headers carried by every message.
{
"specversion": "1.0",
"id": "6f1c2a3b-4d5e-4f60-8a7b-9c0d1e2f3a4b",
"source": "/warehouse/fulfillment-execution",
"type": "com.warehouse.wes.fulfillment-execution.task.TaskCompleted",
"subject": "task-8a1f",
"time": "2026-09-30T15:00:00Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:fulfillment-execution:events:TaskCompleted:v1",
"data": {
"task_id": "task-8a1f",
"station_id": "station-03",
"work_unit_id": "wu-8a1f",
"associate_id": "worker-42",
"duration_seconds": 245,
"task_type": "PICK",
"order_ref": "order-8a1f",
"line_no": 2
}
}
A RELOCATE task (a Vacate move, destination scanned) - the additive relocation fields are present and order_ref / line_no are absent (ADR-0047).
{
"specversion": "1.0",
"id": "6f1c2a3b-4d5e-4f60-8a7b-9c0d1e2f3a4b",
"source": "/warehouse/fulfillment-execution",
"type": "com.warehouse.wes.fulfillment-execution.task.TaskCompleted",
"subject": "task-rel-1",
"time": "2026-09-30T15:00:00Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:fulfillment-execution:events:TaskCompleted:v1",
"data": {
"task_id": "task-rel-1",
"station_id": "station-07",
"work_unit_id": "slot-plan-7-move-3",
"duration_seconds": 90,
"task_type": "RELOCATE",
"sku": "SKU-1",
"from_bin": "FWD-A",
"to_bin": "RSV-2",
"quantity": 12,
"relocation_ref": "plan-7:3"
}
}
A REPLENISH task (ADR-0050) - the operator confirmed 20 of the 24 planned units; the additive fields are present with request_ref (no relocation_ref) and order_ref / line_no are absent.
{
"specversion": "1.0",
"id": "6f1c2a3b-4d5e-4f60-8a7b-9c0d1e2f3a4b",
"source": "/warehouse/fulfillment-execution",
"type": "com.warehouse.wes.fulfillment-execution.task.TaskCompleted",
"subject": "task-rep-1",
"time": "2026-09-30T15:00:00Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:fulfillment-execution:events:TaskCompleted:v1",
"data": {
"task_id": "task-rep-1",
"station_id": "station-07",
"work_unit_id": "replenish-req-9",
"duration_seconds": 90,
"task_type": "REPLENISH",
"sku": "SKU-1",
"from_bin": "WH1-RSV-AMB-B02-03-02-C",
"to_bin": "WH1-FWD-AMB-A01-01-01-A",
"quantity": 20,
"request_ref": "req-9"
}
}
{
"content-type": "application/cloudevents+json; charset=UTF-8",
"traceparent": "00-8812c36621d214139a08949823716b93-14ddf02dbd8913ba-01"
}
A RELOCATE task (a Vacate move, destination scanned) - the additive relocation fields are present and order_ref / line_no are absent (ADR-0047).
{
"content-type": "application/cloudevents+json; charset=UTF-8",
"traceparent": "00-8812c36621d214139a08949823716b93-14ddf02dbd8913ba-01"
}
A REPLENISH task (ADR-0050) - the operator confirmed 20 of the 24 planned units; the additive fields are present with request_ref (no relocation_ref) and order_ref / line_no are absent.
{
"content-type": "application/cloudevents+json; charset=UTF-8",
"traceparent": "00-8812c36621d214139a08949823716b93-14ddf02dbd8913ba-01"
}
A task is still open (Pending or Claimed) past its CPT deadline.
Raised by the CPT-missed sweep (POST /cpt-miss-sweeps, ADR-0025). Re-fires on every sweep pass while the task stays open past its CPT, so consumers must dedupe on their own (order-management's RepromiseOrder is idempotent by design). Published on warehouse.fulfillment.events, keyed by task id. Consumed by order-management.
Kafka message headers carried by every message.
{
"specversion": "1.0",
"id": "6f1c2a3b-4d5e-4f60-8a7b-9c0d1e2f3a4b",
"source": "/warehouse/fulfillment-execution",
"type": "com.warehouse.wes.fulfillment-execution.task.TaskCPTMissed",
"subject": "task-8a1f",
"time": "2026-09-30T15:00:00Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:fulfillment-execution:events:TaskCPTMissed:v1",
"data": {
"task_id": "task-8a1f",
"order_ref": "wu-8a1f",
"task_type": "PICK",
"cpt": "2026-09-30T14:55:00Z"
}
}
{
"content-type": "application/cloudevents+json; charset=UTF-8",
"traceparent": "00-8812c36621d214139a08949823716b93-14ddf02dbd8913ba-01"
}
A package passed its SLAM weigh-check (the "SLAM pass").
Raised alongside LabelApplied when the SLAM weigh-check passes (ADR-0025); a diverted package does not raise it. Published on warehouse.fulfillment.events, keyed by package id. Consumed by order-management and outbound-shipping (which needs site_id and cpt to place the package on a load, ADR-0065).
Kafka message headers carried by every message.
{
"specversion": "1.0",
"id": "6f1c2a3b-4d5e-4f60-8a7b-9c0d1e2f3a4b",
"source": "/warehouse/fulfillment-execution",
"type": "com.warehouse.wes.fulfillment-execution.package.PackageManifested",
"subject": "pkg-1029",
"time": "2026-09-30T15:00:00Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:fulfillment-execution:events:PackageManifested:v1",
"data": {
"package_id": "pkg-1029",
"order_ref": "wu-8a1f"
}
}
{
"specversion": "1.0",
"id": "6f1c2a3b-4d5e-4f60-8a7b-9c0d1e2f3a4b",
"source": "/warehouse/fulfillment-execution",
"type": "com.warehouse.wes.fulfillment-execution.package.PackageManifested",
"subject": "pkg-1030",
"time": "2026-09-30T15:00:00Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:fulfillment-execution:events:PackageManifested:v1",
"data": {
"package_id": "pkg-1030",
"order_ref": "order-88421",
"source_order_id": "order-88421",
"cpt": "2026-09-30T15:30:00Z",
"weight_g": 1240.5
}
}
A rebin package of an order that named a fulfillment site; no SLAM task exists, so cpt is the PACK task's.
{
"specversion": "1.0",
"id": "6f1c2a3b-4d5e-4f60-8a7b-9c0d1e2f3a4b",
"source": "/warehouse/fulfillment-execution",
"type": "com.warehouse.wes.fulfillment-execution.package.PackageManifested",
"subject": "pkg-1031",
"time": "2026-09-30T15:00:00Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:fulfillment-execution:events:PackageManifested:v1",
"data": {
"package_id": "pkg-1031",
"order_ref": "order-88422",
"site_id": "WH1",
"source_order_id": "order-88422",
"cpt": "2026-09-30T18:00:00Z",
"weight_g": 980
}
}
{
"content-type": "application/cloudevents+json; charset=UTF-8",
"traceparent": "00-8812c36621d214139a08949823716b93-14ddf02dbd8913ba-01"
}
{
"content-type": "application/cloudevents+json; charset=UTF-8",
"traceparent": "00-8812c36621d214139a08949823716b93-14ddf02dbd8913ba-01"
}
A rebin package of an order that named a fulfillment site; no SLAM task exists, so cpt is the PACK task's.
{
"content-type": "application/cloudevents+json; charset=UTF-8",
"traceparent": "00-8812c36621d214139a08949823716b93-14ddf02dbd8913ba-01"
}
A package was diverted off the standard path to the problem-solve area.
A package failed its SLAM weigh-check and was routed to the problem-solve area instead of being labelled. Published on warehouse.fulfillment.events (keyed by package id) with the same type, subject and data as the analytics occurrence (ADR-0053); also published on warehouse.fulfillment.analytics. Consumed by exception-management, which opens its problem-solve case on it.
Kafka message headers carried by every message.
{
"specversion": "1.0",
"id": "6f1c2a3b-4d5e-4f60-8a7b-9c0d1e2f3a4b",
"source": "/warehouse/fulfillment-execution",
"type": "com.warehouse.wes.fulfillment-execution.package.PackageDiverted",
"subject": "p1",
"time": "2026-09-30T15:00:00Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:fulfillment-execution:events:PackageDiverted:v1",
"data": {
"package_id": "p1"
}
}
{
"content-type": "application/cloudevents+json; charset=UTF-8",
"traceparent": "00-8812c36621d214139a08949823716b93-14ddf02dbd8913ba-01"
}
SLAM found a package weight out of tolerance.
The SLAM weigh-check measured a weight outside tolerance — the fact that causes a divert. Published on warehouse.fulfillment.events (keyed by package id) with the same type, subject and data as the analytics occurrence (ADR-0053); also published on warehouse.fulfillment.analytics. Consumed by exception-management.
Kafka message headers carried by every message.
{
"specversion": "1.0",
"id": "6f1c2a3b-4d5e-4f60-8a7b-9c0d1e2f3a4b",
"source": "/warehouse/fulfillment-execution",
"type": "com.warehouse.wes.fulfillment-execution.package.WeightDiscrepancyDetected",
"subject": "p1",
"time": "2026-09-30T15:00:00Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:fulfillment-execution:events:WeightDiscrepancyDetected:v1",
"data": {
"package_id": "p1",
"expected_g": 1000,
"actual_g": 1200
}
}
{
"content-type": "application/cloudevents+json; charset=UTF-8",
"traceparent": "00-8812c36621d214139a08949823716b93-14ddf02dbd8913ba-01"
}
A TRANSFER_PICK task completed — transfer stock was picked at the origin site.
Published on warehouse.fulfillment.events when a task carrying an inter-warehouse-transfer correlation block with work_kind TRANSFER_PICK completes. Exactly one transfer fact is selected by work_kind at completion (see the transfer-task-facts ADR); non-transfer tasks never publish one. Keyed (and subject-ed) by task id, time is the completion time. Consumed by the transfer saga (network-inventory-planning) and destination receipt correlation.
Kafka message headers carried by every message.
{
"specversion": "1.0",
"id": "3f5e1a2c-4b6d-4c7e-8d9f-0a1b2c3d4e5f",
"source": "/warehouse/fulfillment-execution",
"type": "com.warehouse.wes.fulfillment-execution.transfer.TransferPicked",
"subject": "task-tr-8a1f",
"time": "2026-10-06T15:04:05Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:fulfillment-execution:events:TransferPicked:v1",
"data": {
"transfer_ref": "tr-9f2a",
"demand_id": "demand-77",
"work_unit_id": "wu-tr-8a1f",
"task_id": "task-tr-8a1f",
"work_kind": "TRANSFER_PICK",
"site_id": "site-north",
"sku": "SKU-0042",
"quantity": 12
}
}
{
"content-type": "application/cloudevents+json; charset=UTF-8",
"traceparent": "00-8812c36621d214139a08949823716b93-14ddf02dbd8913ba-01"
}
A TRANSFER_DISPATCH task completed — the transfer left the origin site.
Published on warehouse.fulfillment.events when a task carrying an inter-warehouse-transfer correlation block with work_kind TRANSFER_DISPATCH completes. Same envelope and selection rules as TransferPicked.
Kafka message headers carried by every message.
{
"specversion": "1.0",
"id": "4a6f2b3d-5c7e-4d8f-9e0a-1b2c3d4e5f60",
"source": "/warehouse/fulfillment-execution",
"type": "com.warehouse.wes.fulfillment-execution.transfer.TransferDispatched",
"subject": "task-tr-8a1f-dsp",
"time": "2026-10-06T18:42:10Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:fulfillment-execution:events:TransferDispatched:v1",
"data": {
"transfer_ref": "tr-9f2a",
"demand_id": "demand-77",
"work_unit_id": "wu-tr-8a1f",
"task_id": "task-tr-8a1f-dsp",
"work_kind": "TRANSFER_DISPATCH",
"site_id": "site-north",
"sku": "SKU-0042",
"quantity": 12
}
}
{
"content-type": "application/cloudevents+json; charset=UTF-8",
"traceparent": "00-8812c36621d214139a08949823716b93-14ddf02dbd8913ba-01"
}
A TRANSFER_ARRIVAL task completed — the transfer reached the destination site.
Published on warehouse.fulfillment.events when a task carrying an inter-warehouse-transfer correlation block with work_kind TRANSFER_ARRIVAL completes. Same envelope and selection rules as TransferPicked; destination receipt/stow correlates on transfer_ref.
Kafka message headers carried by every message.
{
"specversion": "1.0",
"id": "5b703c4e-6d8f-4e90-af1b-2c3d4e5f6071",
"source": "/warehouse/fulfillment-execution",
"type": "com.warehouse.wes.fulfillment-execution.transfer.TransferArrived",
"subject": "task-tr-8a1f-arv",
"time": "2026-10-07T08:15:30Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:fulfillment-execution:events:TransferArrived:v1",
"data": {
"transfer_ref": "tr-9f2a",
"demand_id": "demand-77",
"work_unit_id": "wu-tr-8a1f",
"task_id": "task-tr-8a1f-arv",
"work_kind": "TRANSFER_ARRIVAL",
"site_id": "site-south",
"sku": "SKU-0042",
"quantity": 12
}
}
{
"content-type": "application/cloudevents+json; charset=UTF-8",
"traceparent": "00-8812c36621d214139a08949823716b93-14ddf02dbd8913ba-01"
}
A station's pick walk formed (ADR 0063).
Raised when POST /stations/{stationId}/work-batches forms a walk, inside the same transaction that persists the batch. Published on warehouse.fulfillment.events, keyed (and subject-ed) by batch id. The anchor is exactly the task ClaimNext would have returned, so a consumer can treat the first member as today's dispatch and the rest as additions. Published only with PICK_BATCH_MODE on; with the fleet default off nothing is published. The intended consumer is labor-performance (batch_size reporting; no handler for it on its develop yet); also available to the warehouse console.
Kafka message headers carried by every message.
{
"specversion": "1.0",
"id": "7a2d3e4f-5a6b-7c80-9d0e-1f2a3b4c5d6e",
"source": "/warehouse/fulfillment-execution",
"type": "com.warehouse.wes.fulfillment-execution.workbatch.WorkBatchFormed",
"subject": "wb-20260930T150000.000000000",
"time": "2026-09-30T15:00:00Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:fulfillment-execution:events:WorkBatchFormed:v1",
"data": {
"batch_id": "wb-20260930T150000.000000000",
"station_id": "STN-07",
"cpt": "2026-09-30T18:00:00Z",
"formed_at": "2026-09-30T15:00:00Z",
"version": 1,
"members": [
{
"task_id": "task-8a1f",
"stop_seq": 1,
"compartment": 1
},
{
"task_id": "task-9c2e",
"stop_seq": 2,
"compartment": 2
}
]
}
}
{
"content-type": "application/cloudevents+json; charset=UTF-8",
"traceparent": "00-8812c36621d214139a08949823716b93-14ddf02dbd8913ba-01"
}
The walk's last open stop completed (ADR 0063).
Raised when the last still-open member completes, in the same transaction that flips the batch to COMPLETED. Published on warehouse.fulfillment.events, keyed (and subject-ed) by batch id. walk_seconds is completion minus formation — the whole walk, not per-stop labor (per-stop durations stay on each member's own TaskCompleted, ADR 0064). Published only with PICK_BATCH_MODE on.
Kafka message headers carried by every message.
{
"specversion": "1.0",
"id": "8b3e4f5a-6b7c-8d90-0e1f-2a3b4c5d6e7f",
"source": "/warehouse/fulfillment-execution",
"type": "com.warehouse.wes.fulfillment-execution.workbatch.WorkBatchCompleted",
"subject": "wb-20260930T150000.000000000",
"time": "2026-09-30T15:07:30Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:fulfillment-execution:events:WorkBatchCompleted:v1",
"data": {
"batch_id": "wb-20260930T150000.000000000",
"station_id": "STN-07",
"member_count": 2,
"walk_seconds": 450,
"completed_at": "2026-09-30T15:07:30Z",
"version": 3
}
}
{
"content-type": "application/cloudevents+json; charset=UTF-8",
"traceparent": "00-8812c36621d214139a08949823716b93-14ddf02dbd8913ba-01"
}
Every member left the walk without completing (ADR 0063).
Raised when the last still-open member detaches — its lease expired and the task returned to the pool through the existing sweep — in the same transaction that flips the batch to ABANDONED. The tasks themselves are NOT lost — each detaches through the ordinary lease-expiry path and stays claimable. Published on warehouse.fulfillment.events, keyed (and subject-ed) by batch id. Published only with PICK_BATCH_MODE on.
Kafka message headers carried by every message.
{
"specversion": "1.0",
"id": "9c4f5a6b-7c8d-9e01-1f2a-3b4c5d6e7f8a",
"source": "/warehouse/fulfillment-execution",
"type": "com.warehouse.wes.fulfillment-execution.workbatch.WorkBatchAbandoned",
"subject": "wb-20260930T150000.000000000",
"time": "2026-09-30T15:10:00Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:fulfillment-execution:events:WorkBatchAbandoned:v1",
"data": {
"batch_id": "wb-20260930T150000.000000000",
"station_id": "STN-07",
"member_count": 2,
"abandoned_at": "2026-09-30T15:10:00Z",
"version": 3
}
}
{
"content-type": "application/cloudevents+json; charset=UTF-8",
"traceparent": "00-8812c36621d214139a08949823716b93-14ddf02dbd8913ba-01"
}
Internal analytics stream (ADR-0012), keyed by aggregate id; read by this service's own analytics projector.
Consume Fulfillment Execution analytics events.
Receive every analytics CloudEvent (dataschema urn:warehouse:fulfillment-execution:analytics:*).
Available only on servers:
Accepts one of the following messages:
Analytics occurrence of TaskCreated for the throughput data product.
A task entered the pool. Published on the internal warehouse.fulfillment.analytics topic (ADR-0012) and consumed only by this service's own analytics projector (cmd/fulfillment-projector).
Kafka message headers carried by every message.
{
"specversion": "1.0",
"id": "6f1c2a3b-4d5e-4f60-8a7b-9c0d1e2f3a4b",
"source": "/warehouse/fulfillment-execution",
"type": "com.warehouse.wes.fulfillment-execution.task.TaskCreated",
"subject": "t1",
"time": "2026-09-30T15:00:00Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:fulfillment-execution:analytics:TaskCreated:v1",
"data": {
"task_id": "t1",
"task_type": "PICK"
}
}
{
"content-type": "application/cloudevents+json; charset=UTF-8",
"traceparent": "00-8812c36621d214139a08949823716b93-14ddf02dbd8913ba-01"
}
Analytics occurrence of TaskClaimed for the throughput data product.
A station claimed a task (projects into claims). Published on the internal warehouse.fulfillment.analytics topic (ADR-0012) and consumed only by this service's own analytics projector (cmd/fulfillment-projector).
Kafka message headers carried by every message.
{
"specversion": "1.0",
"id": "6f1c2a3b-4d5e-4f60-8a7b-9c0d1e2f3a4b",
"source": "/warehouse/fulfillment-execution",
"type": "com.warehouse.wes.fulfillment-execution.task.TaskClaimed",
"subject": "t1",
"time": "2026-09-30T15:00:00Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:fulfillment-execution:analytics:TaskClaimed:v1",
"data": {
"task_id": "t1",
"task_type": "PICK",
"station_id": "s1"
}
}
{
"content-type": "application/cloudevents+json; charset=UTF-8",
"traceparent": "00-8812c36621d214139a08949823716b93-14ddf02dbd8913ba-01"
}
Analytics occurrence of LeaseExpired for the throughput data product.
A claim lease expired (projects into lease expiries). Published on the internal warehouse.fulfillment.analytics topic (ADR-0012) and consumed only by this service's own analytics projector (cmd/fulfillment-projector).
Kafka message headers carried by every message.
{
"specversion": "1.0",
"id": "6f1c2a3b-4d5e-4f60-8a7b-9c0d1e2f3a4b",
"source": "/warehouse/fulfillment-execution",
"type": "com.warehouse.wes.fulfillment-execution.task.LeaseExpired",
"subject": "t1",
"time": "2026-09-30T15:00:00Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:fulfillment-execution:analytics:LeaseExpired:v1",
"data": {
"task_id": "t1",
"task_type": "PICK"
}
}
{
"content-type": "application/cloudevents+json; charset=UTF-8",
"traceparent": "00-8812c36621d214139a08949823716b93-14ddf02dbd8913ba-01"
}
Analytics occurrence of TaskCompleted for the throughput data product.
A task was completed (projects into completions). Published on the internal warehouse.fulfillment.analytics topic (ADR-0012) and consumed only by this service's own analytics projector (cmd/fulfillment-projector).
Kafka message headers carried by every message.
{
"specversion": "1.0",
"id": "6f1c2a3b-4d5e-4f60-8a7b-9c0d1e2f3a4b",
"source": "/warehouse/fulfillment-execution",
"type": "com.warehouse.wes.fulfillment-execution.task.TaskCompleted",
"subject": "t1",
"time": "2026-09-30T15:00:00Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:fulfillment-execution:analytics:TaskCompleted:v1",
"data": {
"task_id": "t1",
"task_type": "PICK",
"station_id": "s1",
"order_ref": "order-1",
"line_no": 2
}
}
{
"content-type": "application/cloudevents+json; charset=UTF-8",
"traceparent": "00-8812c36621d214139a08949823716b93-14ddf02dbd8913ba-01"
}
Analytics occurrence of ItemPicked for the throughput data product.
A Pick task recorded an item retrieval. Published on the internal warehouse.fulfillment.analytics topic (ADR-0012) and consumed only by this service's own analytics projector (cmd/fulfillment-projector).
Kafka message headers carried by every message.
{
"specversion": "1.0",
"id": "6f1c2a3b-4d5e-4f60-8a7b-9c0d1e2f3a4b",
"source": "/warehouse/fulfillment-execution",
"type": "com.warehouse.wes.fulfillment-execution.task.ItemPicked",
"subject": "t1",
"time": "2026-09-30T15:00:00Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:fulfillment-execution:analytics:ItemPicked:v1",
"data": {
"task_id": "t1",
"task_type": "PICK"
}
}
{
"content-type": "application/cloudevents+json; charset=UTF-8",
"traceparent": "00-8812c36621d214139a08949823716b93-14ddf02dbd8913ba-01"
}
Analytics occurrence of PackageSealed for the throughput data product.
A package was sealed. Published on the internal warehouse.fulfillment.analytics topic (ADR-0012) and consumed only by this service's own analytics projector (cmd/fulfillment-projector).
Kafka message headers carried by every message.
{
"specversion": "1.0",
"id": "6f1c2a3b-4d5e-4f60-8a7b-9c0d1e2f3a4b",
"source": "/warehouse/fulfillment-execution",
"type": "com.warehouse.wes.fulfillment-execution.package.PackageSealed",
"subject": "p1",
"time": "2026-09-30T15:00:00Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:fulfillment-execution:analytics:PackageSealed:v1",
"data": {
"package_id": "p1"
}
}
The package shipped in its own CASE (ship-in-own-container, ADR-0056).
{
"specversion": "1.0",
"id": "0d3b5a7c-91e2-4c48-b6f0-7a2e9c1d4b86",
"source": "/warehouse/fulfillment-execution",
"type": "com.warehouse.wes.fulfillment-execution.package.PackageSealed",
"subject": "p2",
"time": "2026-09-30T15:05:00Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:fulfillment-execution:analytics:PackageSealed:v1",
"data": {
"package_id": "p2",
"ship_in_own_container": true,
"container_source": "CASE",
"container_gtin": "24006381333935",
"container_dims": {
"length_mm": 400,
"width_mm": 300,
"height_mm": 200,
"weight_g": 6500
}
}
}
{
"content-type": "application/cloudevents+json; charset=UTF-8",
"traceparent": "00-8812c36621d214139a08949823716b93-14ddf02dbd8913ba-01"
}
The package shipped in its own CASE (ship-in-own-container, ADR-0056).
{
"content-type": "application/cloudevents+json; charset=UTF-8",
"traceparent": "00-8812c36621d214139a08949823716b93-14ddf02dbd8913ba-01"
}
Analytics occurrence of WeightDiscrepancyDetected for the throughput data product.
SLAM found the weight out of tolerance (projects into SLAM diverts). Published on the internal warehouse.fulfillment.analytics topic (ADR-0012) and consumed only by this service's own analytics projector (cmd/fulfillment-projector).
Kafka message headers carried by every message.
{
"specversion": "1.0",
"id": "6f1c2a3b-4d5e-4f60-8a7b-9c0d1e2f3a4b",
"source": "/warehouse/fulfillment-execution",
"type": "com.warehouse.wes.fulfillment-execution.package.WeightDiscrepancyDetected",
"subject": "p1",
"time": "2026-09-30T15:00:00Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:fulfillment-execution:analytics:WeightDiscrepancyDetected:v1",
"data": {
"package_id": "p1",
"expected_g": 1000,
"actual_g": 1200
}
}
{
"content-type": "application/cloudevents+json; charset=UTF-8",
"traceparent": "00-8812c36621d214139a08949823716b93-14ddf02dbd8913ba-01"
}
Analytics occurrence of LabelApplied for the throughput data product.
SLAM applied the shipping label. Published on the internal warehouse.fulfillment.analytics topic (ADR-0012) and consumed only by this service's own analytics projector (cmd/fulfillment-projector).
Kafka message headers carried by every message.
{
"specversion": "1.0",
"id": "6f1c2a3b-4d5e-4f60-8a7b-9c0d1e2f3a4b",
"source": "/warehouse/fulfillment-execution",
"type": "com.warehouse.wes.fulfillment-execution.package.LabelApplied",
"subject": "p1",
"time": "2026-09-30T15:00:00Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:fulfillment-execution:analytics:LabelApplied:v1",
"data": {
"package_id": "p1"
}
}
{
"content-type": "application/cloudevents+json; charset=UTF-8",
"traceparent": "00-8812c36621d214139a08949823716b93-14ddf02dbd8913ba-01"
}
Analytics occurrence of PackageDiverted for the throughput data product.
A package was diverted off the standard path. Published on the internal warehouse.fulfillment.analytics topic (ADR-0012) and consumed only by this service's own analytics projector (cmd/fulfillment-projector).
Kafka message headers carried by every message.
{
"specversion": "1.0",
"id": "6f1c2a3b-4d5e-4f60-8a7b-9c0d1e2f3a4b",
"source": "/warehouse/fulfillment-execution",
"type": "com.warehouse.wes.fulfillment-execution.package.PackageDiverted",
"subject": "p1",
"time": "2026-09-30T15:00:00Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:fulfillment-execution:analytics:PackageDiverted:v1",
"data": {
"package_id": "p1"
}
}
{
"content-type": "application/cloudevents+json; charset=UTF-8",
"traceparent": "00-8812c36621d214139a08949823716b93-14ddf02dbd8913ba-01"
}
Analytics occurrence of PackageManifested for the throughput data product.
A package passed SLAM (projects into the on-time-to-CPT KPI). Published on the internal warehouse.fulfillment.analytics topic (ADR-0012) and consumed only by this service's own analytics projector (cmd/fulfillment-projector).
Kafka message headers carried by every message.
{
"specversion": "1.0",
"id": "6f1c2a3b-4d5e-4f60-8a7b-9c0d1e2f3a4b",
"source": "/warehouse/fulfillment-execution",
"type": "com.warehouse.wes.fulfillment-execution.package.PackageManifested",
"subject": "p1",
"time": "2026-09-30T15:00:00Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:fulfillment-execution:analytics:PackageManifested:v1",
"data": {
"package_id": "p1",
"order_ref": "wu-8a1f",
"task_type": "SLAM",
"station_id": "station-09",
"on_time": true,
"resolved": true
}
}
{
"content-type": "application/cloudevents+json; charset=UTF-8",
"traceparent": "00-8812c36621d214139a08949823716b93-14ddf02dbd8913ba-01"
}
Analytics occurrence of WorkBatchFormed for the batching data product.
A walk formed (ADR 0063). Published on the internal warehouse.fulfillment.analytics topic (ADR-0012) and consumed only by this service's own analytics projector (cmd/fulfillment-projector); the data bytes are identical to the integration occurrence. Wave 4's batch-effectiveness report reads these to measure would-be batch sizes and detour against the anchor-only walk.
Kafka message headers carried by every message.
{
"specversion": "1.0",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"source": "/warehouse/fulfillment-execution",
"type": "com.warehouse.wes.fulfillment-execution.workbatch.WorkBatchFormed",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:fulfillment-execution:analytics:WorkBatchFormed:v1",
"data": {
"batch_id": "string",
"station_id": "string",
"cpt": "2019-08-24T14:15:22Z",
"formed_at": "2019-08-24T14:15:22Z",
"version": 0,
"members": [
{
"task_id": "string",
"stop_seq": 0,
"compartment": 0
}
]
}
}
{
"content-type": "application/cloudevents+json; charset=UTF-8",
"traceparent": "string",
"tracestate": "string"
}
Analytics occurrence of WorkBatchCompleted for the batching data product.
A walk completed (ADR 0063) — member_count and walk_seconds (completion minus formation) per batch. Published on the internal warehouse.fulfillment.analytics topic (ADR-0012) and consumed only by this service's own analytics projector (cmd/fulfillment-projector); the data bytes are identical to the integration occurrence.
Kafka message headers carried by every message.
{
"specversion": "1.0",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"source": "/warehouse/fulfillment-execution",
"type": "com.warehouse.wes.fulfillment-execution.workbatch.WorkBatchCompleted",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:fulfillment-execution:analytics:WorkBatchCompleted:v1",
"data": {
"batch_id": "string",
"station_id": "string",
"member_count": 0,
"walk_seconds": 0,
"completed_at": "2019-08-24T14:15:22Z",
"version": 0
}
}
{
"content-type": "application/cloudevents+json; charset=UTF-8",
"traceparent": "string",
"tracestate": "string"
}
Analytics occurrence of WorkBatchAbandoned for the batching data product.
A walk abandoned (ADR 0063) — every member left without completing. Published on the internal warehouse.fulfillment.analytics topic (ADR-0012) and consumed only by this service's own analytics projector (cmd/fulfillment-projector); the data bytes are identical to the integration occurrence.
Kafka message headers carried by every message.
{
"specversion": "1.0",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"source": "/warehouse/fulfillment-execution",
"type": "com.warehouse.wes.fulfillment-execution.workbatch.WorkBatchAbandoned",
"subject": "string",
"time": "2019-08-24T14:15:22Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:fulfillment-execution:analytics:WorkBatchAbandoned:v1",
"data": {
"batch_id": "string",
"station_id": "string",
"member_count": 0,
"abandoned_at": "2019-08-24T14:15:22Z",
"version": 0
}
}
{
"content-type": "application/cloudevents+json; charset=UTF-8",
"traceparent": "string",
"tracestate": "string"
}
wes-work-planning's integration topic; this service consumes WorkReleased from it (consumer group WORK_RELEASED_CONSUMER_GROUP, default fulfillment-execution).
Receive WorkReleased from wes-work-planning.
wes-work-planning publishes WorkReleased here; this service creates a Task for each new CloudEvents id.
Available only on servers:
Accepts the following message:
Work Planning released a work unit (consumed).
Published by wes-work-planning on warehouse.work-planning.events; consumed here to create a Task via CreateTask. Dispatch is on the full type; dedupe is on the CloudEvents id. A message that is not a valid CloudEvents 1.0 event is dead-lettered to warehouse.work-planning.events.dlq.
Kafka message headers carried by every message.
{
"specversion": "1.0",
"id": "6f1c2a3b-4d5e-4f60-8a7b-9c0d1e2f3a4b",
"source": "/warehouse/wes-work-planning",
"type": "com.warehouse.wes.work-planning.workunit.WorkReleased",
"subject": "wu-8a1f",
"time": "2026-09-30T15:00:00Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:wes-work-planning:events:WorkReleased:v1",
"data": {
"path_id": "pick-zone-a",
"work_unit_id": "wu-8a1f",
"cpt": "2026-09-30T18:00:00Z",
"ref": "release-1",
"line_no": 2
}
}
RELOCATE work (ADR-0047) - one move of an approved slot plan; ref is the plan id and the relocation object carries the move (an Assign, so from_bin is omitted and scanned at completion).
{
"specversion": "1.0",
"id": "0b6d9a52-3c1e-4f7a-9d2b-5e8f7a6c4d31",
"source": "/warehouse/wes-work-planning",
"type": "com.warehouse.wes.work-planning.workunit.WorkReleased",
"subject": "slot-plan-7-move-3",
"time": "2026-09-30T15:00:00Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:wes-work-planning:events:WorkReleased:v1",
"data": {
"path_id": "RELOCATE",
"work_unit_id": "slot-plan-7-move-3",
"cpt": "2026-09-30T23:00:00Z",
"ref": "plan-7",
"relocation": {
"plan_id": "plan-7",
"move_seq": 3,
"kind": "Assign",
"sku": "SKU-1",
"to_bin": "WH1-FWD-A01-01-01-A"
}
}
}
REPLENISH work (ADR-0050) - one pick-face replenishment request; ref is the request id and the replenishment object carries the move.
{
"specversion": "1.0",
"id": "3c8e1f47-9a2d-4b6e-8f10-7d5a2c9e4b68",
"source": "/warehouse/wes-work-planning",
"type": "com.warehouse.wes.work-planning.workunit.WorkReleased",
"subject": "replenish-req-9",
"time": "2026-09-30T15:00:00Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:wes-work-planning:events:WorkReleased:v1",
"data": {
"path_id": "REPLENISH",
"work_unit_id": "replenish-req-9",
"cpt": "2026-09-30T16:00:00Z",
"ref": "req-9",
"replenishment": {
"request_id": "req-9",
"sku": "SKU-1",
"from_bin": "WH1-RSV-AMB-B02-03-02-C",
"to_bin": "WH1-FWD-AMB-A01-01-01-A",
"quantity": 24,
"priority": "URGENT"
}
}
}
{
"content-type": "application/cloudevents+json; charset=UTF-8",
"traceparent": "00-8812c36621d214139a08949823716b93-14ddf02dbd8913ba-01"
}
RELOCATE work (ADR-0047) - one move of an approved slot plan; ref is the plan id and the relocation object carries the move (an Assign, so from_bin is omitted and scanned at completion).
{
"content-type": "application/cloudevents+json; charset=UTF-8",
"traceparent": "00-8812c36621d214139a08949823716b93-14ddf02dbd8913ba-01"
}
REPLENISH work (ADR-0050) - one pick-face replenishment request; ref is the request id and the replenishment object carries the move.
{
"content-type": "application/cloudevents+json; charset=UTF-8",
"traceparent": "00-8812c36621d214139a08949823716b93-14ddf02dbd8913ba-01"
}
process-path-management's integration topic; this service replays ProcessPath* events into its local catalogue only when PATH_CATALOGUE_SOURCE=kafka (default file). The consumer is group-less (it reads the whole topic from the earliest offset on every start to rebuild an in-memory cache), so it declares no consumer group.
Receive process-path catalogue events.
process-path-management publishes ProcessPath* CloudEvents here; this service applies them to its in-memory catalogue.
Available only on servers:
Accepts one of the following messages:
Process-path catalogue event ProcessPathCreated (consumed).
Published by process-path-management on warehouse.process-path-management.events; replayed from FirstOffset into the in-memory process-path catalogue when PATH_CATALOGUE_SOURCE=kafka. A message that is not a valid CloudEvents 1.0 event is logged at WARN and skipped.
Kafka message headers carried by every message.
{
"specversion": "1.0",
"id": "6f1c2a3b-4d5e-4f60-8a7b-9c0d1e2f3a4b",
"source": "/warehouse/process-path-management",
"type": "com.warehouse.wes.process-path-management.processpath.ProcessPathCreated",
"subject": "PICK",
"time": "2026-09-30T15:00:00Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:process-path-management:events:ProcessPathCreated:v1",
"data": {
"path_id": "PICK",
"match_prefix": "pick",
"direct": true,
"required_capabilities": [
"pick"
]
}
}
{
"content-type": "application/cloudevents+json; charset=UTF-8",
"traceparent": "00-8812c36621d214139a08949823716b93-14ddf02dbd8913ba-01"
}
Process-path catalogue event ProcessPathUpdated (consumed).
Published by process-path-management on warehouse.process-path-management.events; replayed from FirstOffset into the in-memory process-path catalogue when PATH_CATALOGUE_SOURCE=kafka. A message that is not a valid CloudEvents 1.0 event is logged at WARN and skipped.
Kafka message headers carried by every message.
{
"specversion": "1.0",
"id": "6f1c2a3b-4d5e-4f60-8a7b-9c0d1e2f3a4b",
"source": "/warehouse/process-path-management",
"type": "com.warehouse.wes.process-path-management.processpath.ProcessPathUpdated",
"subject": "PICK",
"time": "2026-09-30T15:00:00Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:process-path-management:events:ProcessPathUpdated:v1",
"data": {
"path_id": "PICK",
"match_prefix": "pick",
"direct": true,
"required_capabilities": [
"pick",
"hazmat"
]
}
}
{
"content-type": "application/cloudevents+json; charset=UTF-8",
"traceparent": "00-8812c36621d214139a08949823716b93-14ddf02dbd8913ba-01"
}
Process-path catalogue event ProcessPathDeactivated (consumed).
Published by process-path-management on warehouse.process-path-management.events; replayed from FirstOffset into the in-memory process-path catalogue when PATH_CATALOGUE_SOURCE=kafka. A message that is not a valid CloudEvents 1.0 event is logged at WARN and skipped.
Kafka message headers carried by every message.
{
"specversion": "1.0",
"id": "6f1c2a3b-4d5e-4f60-8a7b-9c0d1e2f3a4b",
"source": "/warehouse/process-path-management",
"type": "com.warehouse.wes.process-path-management.processpath.ProcessPathDeactivated",
"subject": "PICK",
"time": "2026-09-30T15:00:00Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:process-path-management:events:ProcessPathDeactivated:v1",
"data": {
"path_id": "PICK"
}
}
{
"content-type": "application/cloudevents+json; charset=UTF-8",
"traceparent": "00-8812c36621d214139a08949823716b93-14ddf02dbd8913ba-01"
}
product-master's integration topic (key and subject = SKU). This service runs two independent consumers on it, each under its own consumer group (the two must differ). ProductClassified feeds the local classification copy (ADR-0039) under PRODUCT_CLASSIFICATION_CONSUMER_GROUP, only when PRODUCT_CLASSIFICATION_MODE=kafka. ProductPackLevelDeclared and ProductPackLevelRetired feed the local PackView (ADR 0054) under the required PACK_VIEW_CONSUMER_GROUP, always on. Every other type on the topic (ProductRegistered, ProductDescriptionChanged, ProductDimensionsDeclared, ProductMeasured) is ignored.
Receive ProductClassified, ProductPackLevelDeclared and ProductPackLevelRetired from product-master.
product-master publishes the full classification of a SKU here. The CloudEvents id claim and the version-guarded upsert of product_classification_copy commit in one transaction; the offset is committed afterwards. A message is applied only when its version is greater than the stored one. A message that is not a valid CloudEvent, or whose payload breaks the contract, is logged at WARN and skipped. SealPackage reads the copy for its DOT hazard segregation check. The pack-level events follow the same delivery contract (CloudEvents id claim and version-guarded write in one transaction, offset committed afterwards; invalid payloads are logged at WARN and skipped).
Available only on servers:
Accepts one of the following messages:
product-master set or replaced a SKU's handling classification (consumed).
Published by product-master on warehouse.product-master.events (its AsyncAPI is the source of truth); consumed here into the local classification copy (ADR-0039). Full-state replacement of the classification; optional fields are omitted when unset. Applied only when version is greater than the stored version; dedupe on the CloudEvents id.
Kafka message headers carried by every message.
{
"specversion": "1.0",
"id": "0f6d8a2b-3c4e-4d5f-8a9b-7c6d5e4f3a2b",
"source": "/warehouse/product-master",
"type": "com.warehouse.wms.product-master.product.ProductClassified",
"subject": "SKU-1",
"time": "2026-10-06T21:02:00Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:product-master:events:ProductClassified:v1",
"data": {
"sku": "SKU-1",
"handling_tags": [
"Hazmat",
"TemperatureSensitive"
],
"temperature_class": "Frozen",
"dot_hazard_class": 3,
"classification_source": "native",
"version": 3
}
}
{
"content-type": "application/cloudevents+json; charset=UTF-8"
}
product-master declared or revised a pack level of a SKU (consumed).
Published by product-master on warehouse.product-master.events (its AsyncAPI is the source of truth); consumed here into the local PackView read per scanned GTIN at scan time (ADR 0054), by the always-on consumer under the required PACK_VIEW_CONSUMER_GROUP.
Kafka message headers carried by every message.
{
"specversion": "1.0",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"source": "/warehouse/product-master",
"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": "EACH",
"gtin": "string",
"child_gtin": "string",
"qty_of_child": 2,
"units_per_pack": 1,
"is_orderable": true,
"is_despatch_unit": true,
"dims": {
"length_mm": 0,
"width_mm": 0,
"height_mm": 0,
"weight_g": 0
},
"effective_from": "2019-08-24T14:15:22Z",
"version": 1
}
}
{
"content-type": "application/cloudevents+json; charset=UTF-8",
"traceparent": "string",
"tracestate": "string"
}
product-master retired a pack level of a SKU (consumed).
Published by product-master on warehouse.product-master.events (its AsyncAPI is the source of truth); consumed here into the local PackView read per scanned GTIN at scan time (ADR 0054), by the always-on consumer under the required PACK_VIEW_CONSUMER_GROUP.
Kafka message headers carried by every message.
{
"specversion": "1.0",
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"source": "/warehouse/product-master",
"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
}
}
{
"content-type": "application/cloudevents+json; charset=UTF-8",
"traceparent": "string",
"tracestate": "string"
}
task-interleaving's integration topic (key and subject = the station id). This service consumes only InterleavingHintIssued from it, into its local hint copy interleaving_hints (ADR-0051), under the consumer group from TASK_INTERLEAVING_CONSUMER_GROUP, only when TASK_INTERLEAVING_MODE=kafka. Every other type on the topic is ignored.
Receive InterleavingHintIssued from task-interleaving.
task-interleaving publishes an advisory hint (never an assignment) of which open tasks a station could work next. The CloudEvents id claim and the per-station superseding upsert of interleaving_hints commit in one transaction; the offset is committed afterwards. One ACTIVE hint per station — a newer hint supersedes the previous one. claimNext uses the station's active, unexpired hint only as a tie-break inside one priority band (never across a CPT boundary) and fails open when no hint applies. A message that is not a valid CloudEvent, or whose payload breaks the contract, is logged at WARN and skipped.
Available only on servers:
Accepts the following message:
task-interleaving recommended which open tasks a station could work next (consumed).
Published by task-interleaving on warehouse.task-interleaving.events (its AsyncAPI is the source of truth); consumed here into the local hint copy (ADR-0051). Kafka key and subject = the station id. candidates is non-empty and ranked from 1 by detour_m ascending then task_id. The hint is advisory and valid until expires_at; one ACTIVE hint per station, a newer hint supersedes; dedupe on the CloudEvents id.
Kafka message headers carried by every message.
{
"specversion": "1.0",
"id": "6f1d2c3b-4a5e-4b7c-8d9e-0a1b2c3d4e5f",
"source": "/warehouse/task-interleaving",
"type": "com.warehouse.wes.task-interleaving.stationtrip.InterleavingHintIssued",
"subject": "STN-07",
"time": "2026-10-17T12:00:00Z",
"datacontenttype": "application/json",
"dataschema": "urn:warehouse:task-interleaving:events:InterleavingHintIssued:v1",
"data": {
"hint_id": "hint-3b0e8d2a-7c41-4f6a-9d15-2a8b6c4e1f07",
"station_id": "STN-07",
"site_id": "SITE-1",
"after_task_id": "task-8a1f",
"origin_location": "WH1-FWD-A01-01-01-A",
"expires_at": "2026-10-17T12:01:30Z",
"policy_version": 2,
"candidates": [
{
"rank": 1,
"task_id": "task-9c2e",
"task_type": "PICK",
"location": "WH1-FWD-A01-02-01-A",
"detour_m": 4.5
},
{
"rank": 2,
"task_id": "task-9d10",
"task_type": "REPLENISH",
"location": "WH1-FWD-A02-01-01-A",
"detour_m": 12
}
]
}
}
{
"content-type": "application/cloudevents+json; charset=UTF-8"
}
A station finished a claimed task.
Raised when the station holding the active claim completes the task. Published on warehouse.fulfillment.events, keyed (and subject-ed) by task id, enriched at publish time with work_unit_id (the task's order reference, so Work Planning can call RecordCompletion), and associate_id, duration_seconds, task_type for labor-performance (ADR-0014, ADR-0023), and the optional order_ref (the order key inventory-storage uses to confirm picks, ADR-0040) and line_no (the order line, so it can confirm that line's reservation, ADR-0041). A RELOCATE task's TaskCompleted also carries the executed slot-plan move in the additive fields sku, from_bin, to_bin, quantity and relocation_ref (ADR-0047), which inventory-storage applies to its ledger as a RelocateStock (its ADR 0039); they are omitted on every other task type. A REPLENISH task's TaskCompleted (ADR-0050) carries the same sku, from_bin, to_bin and quantity plus the additive request_ref (the replenishment request id) instead of relocation_ref; inventory-storage applies it as a RelocateStock with reason REPLENISHMENT (its ADR 0041), source_ref = request_ref. Consumed by wes-work-planning, labor-performance and inventory-storage.
Kafka message headers carried by every message.
A task is still open (Pending or Claimed) past its CPT deadline.
Raised by the CPT-missed sweep (POST /cpt-miss-sweeps, ADR-0025). Re-fires on every sweep pass while the task stays open past its CPT, so consumers must dedupe on their own (order-management's RepromiseOrder is idempotent by design). Published on warehouse.fulfillment.events, keyed by task id. Consumed by order-management.
Kafka message headers carried by every message.
A task entered or re-entered the open-task pool and is claimable.
Raised in the same transaction as the state change, through the transactional outbox (ADR-0020), whenever a task ENTERS the pool (released from WorkReleased, or created through the API) or RE-ENTERS it (the lease-expiry sweep returned a claimed task to Pending, with a new available_at). Never raised on an idempotent replay or a rejected command. Published on warehouse.fulfillment.events, keyed by task id. Consumed by task-interleaving (its local copy of the open-task pool). A task whose location this service cannot determine is NOT announced (the consumer rejects an event without site_id and from_location): RELOCATE and REPLENISH tasks carry bins, so they are announced (ADR-0049, ADR-0050), and a PICK task whose plan carries both the site and the pick face (WorkReleased.data.pick.site_id + from_bin, the producer's additive omit-when-unknown contract) is announced too (ADR-0062): a pick missing either is NOT announced, exactly like a move whose bins carry no site. A REPLENISH task knows both bins, so it is announced with the source bin first and the destination (pick face) bin last. A PICK task is announced with the pick face as both ends of the trip (the station it ends at is not known at announce time). A PACK / SLAM / REBIN / transfer task has no location in this service.
Kafka message headers carried by every message.
A station claimed a task; it left the open-task pool.
Raised in the same transaction as the claim, through the transactional outbox (ADR-0020), for every task type. Never raised when the claim is rejected or loses the at-most-once race. Published on warehouse.fulfillment.events (the richer integration row), keyed by task id; the analytics-topic TaskClaimed {task_id, task_type, station_id} is unchanged. Consumed by task-interleaving (removes the task from its pool copy and learns the station's next position).
Kafka message headers carried by every message.
A package passed its SLAM weigh-check (the "SLAM pass").
Raised alongside LabelApplied when the SLAM weigh-check passes (ADR-0025); a diverted package does not raise it. Published on warehouse.fulfillment.events, keyed by package id. Consumed by order-management and outbound-shipping (which needs site_id and cpt to place the package on a load, ADR-0065).
Kafka message headers carried by every message.
A package was diverted off the standard path to the problem-solve area.
A package failed its SLAM weigh-check and was routed to the problem-solve area instead of being labelled. Published on warehouse.fulfillment.events (keyed by package id) with the same type, subject and data as the analytics occurrence (ADR-0053); also published on warehouse.fulfillment.analytics. Consumed by exception-management, which opens its problem-solve case on it.
Kafka message headers carried by every message.
SLAM found a package weight out of tolerance.
The SLAM weigh-check measured a weight outside tolerance — the fact that causes a divert. Published on warehouse.fulfillment.events (keyed by package id) with the same type, subject and data as the analytics occurrence (ADR-0053); also published on warehouse.fulfillment.analytics. Consumed by exception-management.
Kafka message headers carried by every message.
Analytics occurrence of TaskCreated for the throughput data product.
A task entered the pool. Published on the internal warehouse.fulfillment.analytics topic (ADR-0012) and consumed only by this service's own analytics projector (cmd/fulfillment-projector).
Kafka message headers carried by every message.
Analytics occurrence of TaskClaimed for the throughput data product.
A station claimed a task (projects into claims). Published on the internal warehouse.fulfillment.analytics topic (ADR-0012) and consumed only by this service's own analytics projector (cmd/fulfillment-projector).
Kafka message headers carried by every message.
Analytics occurrence of LeaseExpired for the throughput data product.
A claim lease expired (projects into lease expiries). Published on the internal warehouse.fulfillment.analytics topic (ADR-0012) and consumed only by this service's own analytics projector (cmd/fulfillment-projector).
Kafka message headers carried by every message.
Analytics occurrence of TaskCompleted for the throughput data product.
A task was completed (projects into completions). Published on the internal warehouse.fulfillment.analytics topic (ADR-0012) and consumed only by this service's own analytics projector (cmd/fulfillment-projector).
Kafka message headers carried by every message.
Analytics occurrence of ItemPicked for the throughput data product.
A Pick task recorded an item retrieval. Published on the internal warehouse.fulfillment.analytics topic (ADR-0012) and consumed only by this service's own analytics projector (cmd/fulfillment-projector).
Kafka message headers carried by every message.
Analytics occurrence of PackageSealed for the throughput data product.
A package was sealed. Published on the internal warehouse.fulfillment.analytics topic (ADR-0012) and consumed only by this service's own analytics projector (cmd/fulfillment-projector).
Kafka message headers carried by every message.
Analytics occurrence of WeightDiscrepancyDetected for the throughput data product.
SLAM found the weight out of tolerance (projects into SLAM diverts). Published on the internal warehouse.fulfillment.analytics topic (ADR-0012) and consumed only by this service's own analytics projector (cmd/fulfillment-projector).
Kafka message headers carried by every message.
Analytics occurrence of LabelApplied for the throughput data product.
SLAM applied the shipping label. Published on the internal warehouse.fulfillment.analytics topic (ADR-0012) and consumed only by this service's own analytics projector (cmd/fulfillment-projector).
Kafka message headers carried by every message.
Analytics occurrence of PackageDiverted for the throughput data product.
A package was diverted off the standard path. Published on the internal warehouse.fulfillment.analytics topic (ADR-0012) and consumed only by this service's own analytics projector (cmd/fulfillment-projector).
Kafka message headers carried by every message.
Analytics occurrence of PackageManifested for the throughput data product.
A package passed SLAM (projects into the on-time-to-CPT KPI). Published on the internal warehouse.fulfillment.analytics topic (ADR-0012) and consumed only by this service's own analytics projector (cmd/fulfillment-projector).
Kafka message headers carried by every message.
Work Planning released a work unit (consumed).
Published by wes-work-planning on warehouse.work-planning.events; consumed here to create a Task via CreateTask. Dispatch is on the full type; dedupe is on the CloudEvents id. A message that is not a valid CloudEvents 1.0 event is dead-lettered to warehouse.work-planning.events.dlq.
Kafka message headers carried by every message.
A TRANSFER_PICK task completed — transfer stock was picked at the origin site.
Published on warehouse.fulfillment.events when a task carrying an inter-warehouse-transfer correlation block with work_kind TRANSFER_PICK completes. Exactly one transfer fact is selected by work_kind at completion (see the transfer-task-facts ADR); non-transfer tasks never publish one. Keyed (and subject-ed) by task id, time is the completion time. Consumed by the transfer saga (network-inventory-planning) and destination receipt correlation.
Kafka message headers carried by every message.
A TRANSFER_DISPATCH task completed — the transfer left the origin site.
Published on warehouse.fulfillment.events when a task carrying an inter-warehouse-transfer correlation block with work_kind TRANSFER_DISPATCH completes. Same envelope and selection rules as TransferPicked.
Kafka message headers carried by every message.
A TRANSFER_ARRIVAL task completed — the transfer reached the destination site.
Published on warehouse.fulfillment.events when a task carrying an inter-warehouse-transfer correlation block with work_kind TRANSFER_ARRIVAL completes. Same envelope and selection rules as TransferPicked; destination receipt/stow correlates on transfer_ref.
Kafka message headers carried by every message.
Process-path catalogue event ProcessPathCreated (consumed).
Published by process-path-management on warehouse.process-path-management.events; replayed from FirstOffset into the in-memory process-path catalogue when PATH_CATALOGUE_SOURCE=kafka. A message that is not a valid CloudEvents 1.0 event is logged at WARN and skipped.
Kafka message headers carried by every message.
Process-path catalogue event ProcessPathUpdated (consumed).
Published by process-path-management on warehouse.process-path-management.events; replayed from FirstOffset into the in-memory process-path catalogue when PATH_CATALOGUE_SOURCE=kafka. A message that is not a valid CloudEvents 1.0 event is logged at WARN and skipped.
Kafka message headers carried by every message.
Process-path catalogue event ProcessPathDeactivated (consumed).
Published by process-path-management on warehouse.process-path-management.events; replayed from FirstOffset into the in-memory process-path catalogue when PATH_CATALOGUE_SOURCE=kafka. A message that is not a valid CloudEvents 1.0 event is logged at WARN and skipped.
Kafka message headers carried by every message.
product-master declared or revised a pack level of a SKU (consumed).
Published by product-master on warehouse.product-master.events (its AsyncAPI is the source of truth); consumed here into the local PackView read per scanned GTIN at scan time (ADR 0054), by the always-on consumer under the required PACK_VIEW_CONSUMER_GROUP.
Kafka message headers carried by every message.
product-master retired a pack level of a SKU (consumed).
Published by product-master on warehouse.product-master.events (its AsyncAPI is the source of truth); consumed here into the local PackView read per scanned GTIN at scan time (ADR 0054), by the always-on consumer under the required PACK_VIEW_CONSUMER_GROUP.
Kafka message headers carried by every message.
product-master set or replaced a SKU's handling classification (consumed).
Published by product-master on warehouse.product-master.events (its AsyncAPI is the source of truth); consumed here into the local classification copy (ADR-0039). Full-state replacement of the classification; optional fields are omitted when unset. Applied only when version is greater than the stored version; dedupe on the CloudEvents id.
Kafka message headers carried by every message.
task-interleaving recommended which open tasks a station could work next (consumed).
Published by task-interleaving on warehouse.task-interleaving.events (its AsyncAPI is the source of truth); consumed here into the local hint copy (ADR-0051). Kafka key and subject = the station id. candidates is non-empty and ranked from 1 by detour_m ascending then task_id. The hint is advisory and valid until expires_at; one ACTIVE hint per station, a newer hint supersedes; dedupe on the CloudEvents id.
Kafka message headers carried by every message.
A station's pick walk formed (ADR 0063).
Raised when POST /stations/{stationId}/work-batches forms a walk, inside the same transaction that persists the batch. Published on warehouse.fulfillment.events, keyed (and subject-ed) by batch id. The anchor is exactly the task ClaimNext would have returned, so a consumer can treat the first member as today's dispatch and the rest as additions. Published only with PICK_BATCH_MODE on; with the fleet default off nothing is published. The intended consumer is labor-performance (batch_size reporting; no handler for it on its develop yet); also available to the warehouse console.
Kafka message headers carried by every message.
The walk's last open stop completed (ADR 0063).
Raised when the last still-open member completes, in the same transaction that flips the batch to COMPLETED. Published on warehouse.fulfillment.events, keyed (and subject-ed) by batch id. walk_seconds is completion minus formation — the whole walk, not per-stop labor (per-stop durations stay on each member's own TaskCompleted, ADR 0064). Published only with PICK_BATCH_MODE on.
Kafka message headers carried by every message.
Every member left the walk without completing (ADR 0063).
Raised when the last still-open member detaches — its lease expired and the task returned to the pool through the existing sweep — in the same transaction that flips the batch to ABANDONED. The tasks themselves are NOT lost — each detaches through the ordinary lease-expiry path and stays claimable. Published on warehouse.fulfillment.events, keyed (and subject-ed) by batch id. Published only with PICK_BATCH_MODE on.
Kafka message headers carried by every message.
Analytics occurrence of WorkBatchFormed for the batching data product.
A walk formed (ADR 0063). Published on the internal warehouse.fulfillment.analytics topic (ADR-0012) and consumed only by this service's own analytics projector (cmd/fulfillment-projector); the data bytes are identical to the integration occurrence. Wave 4's batch-effectiveness report reads these to measure would-be batch sizes and detour against the anchor-only walk.
Kafka message headers carried by every message.
Analytics occurrence of WorkBatchCompleted for the batching data product.
A walk completed (ADR 0063) — member_count and walk_seconds (completion minus formation) per batch. Published on the internal warehouse.fulfillment.analytics topic (ADR-0012) and consumed only by this service's own analytics projector (cmd/fulfillment-projector); the data bytes are identical to the integration occurrence.
Kafka message headers carried by every message.
Analytics occurrence of WorkBatchAbandoned for the batching data product.
A walk abandoned (ADR 0063) — every member left without completing. Published on the internal warehouse.fulfillment.analytics topic (ADR-0012) and consumed only by this service's own analytics projector (cmd/fulfillment-projector); the data bytes are identical to the integration occurrence.
Kafka message headers carried by every message.
The payload every transfer fact (TransferPicked / TransferDispatched / TransferArrived) carries — the transfer correlation block the completed Task carried, stamped at release time.
Kafka message headers carried by every message.
CloudEvents 1.0 context attributes; every attribute is required in this fleet.