Facility Layout Domain Events 1.0.0

Domain-event catalog for the facility-layout bounded context, the system of record for where things physically are in the building: the site's structural hierarchy (Site, Area, Zone, Aisle) and the coded storage slots inside it. This context is a Generic Subdomain and an Open Host Service — these events ARE its Published Language, and every downstream service is a Conformist to them. Unlike a service that forwards a curated subset, this context's Kafka publisher (internal/adapters/outbound/kafka/publisher.go) emits every domain event to the integration topic — the whole Published Language.

Envelope: CloudEvents 1.0 (mandatory, ADR-0024). Every message on this channel is a CloudEvents 1.0 event in structured content mode (CloudEvents Kafka protocol binding): the Kafka message value is the JSON event format and every message carries the Kafka header content-type: application/cloudevents+json; charset=UTF-8. All of specversion (1.0), id (UUID, minted once per domain event and stable across outbox redelivery), source (/warehouse/facility-layout), type, subject (the aggregate instance id), time (the domain occurred-at, UTC), datacontenttype (application/json) and dataschema (urn:warehouse:facility-layout:events:<EventName>:v1) are required. data carries the domain event's own JSON verbatim — note it also carries eventName, eventType and occurredAt fields, because the domain event's struct tags are the wire shape. There is no other envelope: consumers must reject (DLQ/skip) anything that fails CloudEvents validation.

The type attribute follows the platform-wide reverse-DNS convention com.warehouse.<subdomain>.<bounded-context>.<entity>.<EventName> — all lowercase except the final PascalCase event name, and the entity segment carries no hyphen even for multi-word aggregate names. This service's subdomain segment is wms: bin-accurate location is WMS-tier in the domain reference. Consumers dispatch on the FULL type string. Example: com.warehouse.wms.facility-layout.locationslot.LocationSlotRegistered. A breaking payload change is published as a new .v2 type with a :v2 dataschema, never by mutating an existing one.

Partitioning and ordering. The Kafka message key is the identity of the aggregate that raised the event (site code, zone id, aisle id, location code, rule id, location type name, structure id, or a cross-aisle's composite identity), so all events for one aggregate land on the same partition and per-aggregate order is preserved (ADR-0032 extended this to the ADR-0017 geometry / structure / cross-aisle events, which were previously keyed by their event type and so shared one partition per type). The single exception is FacilityLayoutImported, a batch outcome with no aggregate: it is keyed by its CloudEvents id and carries no ordering guarantee. The CloudEvents subject is the aggregate instance (layout-import for FacilityLayoutImported).

Live consumer. inventory-storage maintains a local read model of location classifications fed by this topic (internal/adapters/outbound/facilitycache/, selected with LOCATION_LOOKUP_MODE=kafka), replacing its per-stow synchronous GET /locations/{locationCode}/classification call. It consumes ZoneRegistered, LocationSlotRegistered and LocationSlotDecommissioned, replaying the topic from the first offset on every process start under a per-instance-unique consumer group, and gates its readiness on that replay completing. warehouse-planning also consumes this topic (own fixed consumer group, at-least-once): LocationSlotRegistered and LocationSlotDecommissioned feed its storage-position / work-center-station tally. Every other event is published but has no wired consumer today — they are Published Language available for future Conformists, stated so a downstream team cannot mistake an available event for a consumed one. See facility-layout ADR-0009 (integration publishing) and inventory-storage ADR-0013 (the location-classification cache).

  • #facility-layout
  • #site
  • #zone
  • #aisle
  • #locationtype
  • #placementrule
  • #locationslot
  • #structure
  • #crossaisle

Servers

  • kafka.warehouse-systems.internal:9092kafkaproduction

    The shared warehouse-systems Kafka broker (the in-cluster release, reachable from the host at localhost:9092), addressed via the KAFKA_BROKERS environment variable. The Kafka publisher is selected with EVENT_PUBLISHER=kafka; the default (unset) keeps the Postgres outbox / log publisher, so tests and local runs never need a broker.

    Security:
    security.protocol:PLAINTEXT

Operations

  • SUB warehouse.facility.events

    The single outbound integration topic for this bounded context, named after the Topic constant in internal/adapters/outbound/kafka/publisher.go (warehouse.facility.events). Every domain event this context raises is published here when EVENT_PUBLISHER=kafka — the whole Published Language, not a subset. The one live consumer today is inventory-storage's location-classification cache (ZoneRegistered, LocationSlotRegistered, LocationSlotDecommissioned); everything else is available, unconsumed Published Language.

    Consume facility-layout's Published Language.

    Subscribe to every structural fact about the warehouse map. At-least- once delivery is the consumer's problem: deduplicate on the CloudEvents id, and expect to see the full history on a from-first-offset replay. A consumer building a local read model should follow the inventory-storage precedent: per-process-unique consumer group, FirstOffset replay, readiness gated on catching up to the high watermark observed at start.

    Operation IDonFacilityEvent

    Available only on servers:

    Accepts one of the following messages:

    • #0Site registered

      A physical facility/building was added to the warehouse map.

      Raised by RegisterSite. Kafka key: siteCode. No consumer wired today. siteRole is additive (ADR-0037): the site's role in the fulfilment network, UNSPECIFIED when the registration stated none (a consumer decoding the older payload simply ignores it). gln is additive and optional (ADR-0045): the site's GS1 Global Location Number, omitted when none was recorded.

      allOf
      • #site

      Examples

    • #1Site capability changed

      A site's transfer capability state changed.

      A complete, PII-free last-write-wins snapshot of site transfer capability. Kafka key and CloudEvents subject: site_code. Consumers compare capability_revision and retain the latest complete snapshot; they must not infer either capability from facility topology. Raised by PUT /sites/{siteCode}/transfer-capability through the transactional outbox, once per real change (ADR-0035), AND re-emitted periodically as a freshness HEARTBEAT (ADR-0041). A heartbeat is this same event type: the CURRENT values, a new CloudEvents id, the same key and subject, a fresh time, and capability_revision advanced by one. It is raised every SITE_CAPABILITY_HEARTBEAT_INTERVAL (chart config.siteCapabilityHeartbeatInterval, default 5m; 0 disables it) for every ACTIVE site that has declared a capability, so a consumer with a freshness window (network-inventory-planning treats a fact older than 10 minutes as stale) keeps a fact it has no reason to change. The CloudEvents time is the as_of watermark: it is the moment of emission, for a change and for a heartbeat alike. capability_revision starts at 1 and increases by exactly one per event of the same site, change or heartbeat, so consumers must not read a revision step as a capability change: compare the values. A PUT of the value a site already holds is still a no-op and raises nothing (ADR-0035). The payload stays snake_case although every other facility-layout payload is camelCase: recasing it would be a breaking .v2 for network-inventory-planning (ADR-0035, decision D2).

      allOf
      • #site

      Examples

    • #2Site role changed

      An operator changed a site's role in the fulfilment network.

      Raised by PUT /sites/{siteCode}/role through the transactional outbox, once per real change (repeating the current role publishes nothing) (ADR-0037). Kafka key and CloudEvents subject: siteCode, so the changes of one site stay ordered. Carries the new and the replaced role. It never implies a transfer-capability change: that is only ever SiteCapabilityChanged (ADR-0035). The one-time backfill of migration 0009 publishes no SiteRoleChanged; read the role of existing sites on GET /sites.

      allOf
      • #site

      Examples

    • #3Zone registered

      A behavioral zone was added inside a Site's area.

      Raised by RegisterZone. Kafka key: zoneId. Consumed live by inventory-storage's location-classification cache — the zone's hazmat and temperatureClass attributes are exactly what its StowStock placement check reads. gln is additive and optional (ADR-0045): the zone's GS1 Global Location Number, omitted when none was recorded.

      allOf
      • #zone

      Examples

    • #4Zone traffic mode declared

      A zone's traffic mode (PEDESTRIAN, ROBOT_ONLY or SHARED) was declared or changed.

      Raised by DeclareZoneTrafficMode (ADR-0049), i.e. PUT /zones/{zoneId}/traffic-mode, whenever the declared mode differs from the zone's current one; declaring the current mode publishes nothing. The zone is identified by zoneId, exactly as in ZoneRegistered, which never carries the mode (a zone is always registered PEDESTRIAN and its mode is declared after). CloudEvents subject and Kafka key: zoneId (same partition as that zone's ZoneRegistered). A consumer keeping a per-zone copy applies last-write-wins per zoneId: PEDESTRIAN from ZoneRegistered implicitly, and every ZoneTrafficModeDeclared thereafter. This is a structural fact about the building, not a safety function and not a reservation: the fleet controller decides who goes where.

      allOf
      • #zone

      Examples

    • #5Aisle registered

      A physical corridor was added inside a Zone.

      Raised by RegisterAisle. Kafka key: aisleId. No consumer wired today.

      allOf
      • #aisle

      Examples

    • #6Location type registered

      A reusable slot shape/kind was defined.

      Raised by RegisterLocationType. Kafka key: locationType. No consumer wired today.

      allOf
      • #locationtype

      Examples

    • #7Placement rule defined

      A rule constraining which LocationTypes are legal in which Zones was declared.

      Raised by DefinePlacementRule. Kafka key: ruleId. No consumer wired today.

      allOf
      • #placementrule

      Examples

    • #8Location slot registered

      A coded leaf slot now exists on the warehouse map.

      Raised by RegisterLocationSlot, and once per successful row of ImportFacilityLayout. Kafka key: locationCode. Consumed live by inventory-storage's location-classification cache, which joins the slot to its parent zone's attributes via zoneId. gln and spotKind are additive and optional (ADR-0045): the slot's GS1 Global Location Number and, on a Yard slot only, what the spot is for; both are omitted when none was recorded, so the payload of every existing slot is byte-identical to before. They are set at registration only; there is no update event for them yet.

      allOf
      • #locationslot

      Examples

    • #9Location slot decommissioned

      A coded slot was permanently retired.

      Raised by DecommissionLocationSlot. Kafka key: locationCode. Consumed live by inventory-storage's location-classification cache, which evicts the slot (its stow placement check then fails open for that location, by design). Decommissioning is irreversible — there is no compensating event.

      allOf
      • #locationslot

      Examples

    • #10Facility layout imported

      A bulk layout import completed.

      Raised once per ImportFacilityLayout call, summarising rows submitted/imported/rejected — in addition to, not instead of, the per-slot LocationSlotRegistered events for each successful row. Kafka key: the event's CloudEvents id (no single aggregate identity — a batch outcome — so batches spread across partitions; ordering against other events is not guaranteed); CloudEvents subject: the fixed batch identity layout-import. No consumer wired today.

      allOf
      • #locationslot

      Examples

    • #11Location slot handling unit declared

      A slot's handling unit (EACH, CASE or PALLET) was set or changed.

      Raised by DeclareLocationHandlingUnit (ADR-0040), i.e. PUT /locations/{locationCode}/handling-unit. The slot is identified by locationCode, exactly as in LocationSlotRegistered. CloudEvents subject and Kafka key: locationCode (same partition as that location's LocationSlotRegistered). Consumed live by inventory-storage's facility cache, which uses the handling unit to decide whether a sealed case may be stowed in the bin. Last write wins per locationCode (same partition, so ordered).

      allOf
      • #locationslot

      Examples

    • #12Location geometry updated

      A coded slot's physical position/footprint was set or changed.

      Raised by SetLocationGeometry (ADR-0017). CloudEvents subject: locationCode. Kafka key: locationCode (same partition as that location's LocationSlotRegistered). No consumer wired today.

      allOf
      • #locationslot

      Examples

    • #13Aisle geometry updated

      An aisle's travel centreline was set or changed.

      Raised by SetAisleGeometry (ADR-0017): the straight-line path the travel graph uses as this aisle's walkable route. CloudEvents subject: aisleId. Kafka key: aisleId (same partition as that aisle's AisleRegistered). No consumer wired today.

      allOf
      • #aisle

      Examples

    • #14Fixed structure registered

      A site-scoped physical obstacle was added to the warehouse map.

      Raised by RegisterFixedStructure (ADR-0017): a wall, column, office, conveyor, or other fixed object. Not a location — nothing can be stowed at it. CloudEvents subject: structureId. Kafka key: structureId. No consumer wired today.

      allOf
      • #structure

      Examples

    • #15Cross-aisle registered

      A connection between two aisles was added to the travel graph.

      Raised by RegisterCrossAisle (ADR-0017): a zone-scoped connection between two of its aisles at a bay ordinal, letting the travel graph route between aisles without walking to either end. CloudEvents subject: <zoneId>/<fromAisle>-<toAisle>@<atBay> (the cross-aisle's composite identity), which is also its Kafka key. No consumer wired today.

      allOf
      • #crossaisle

      Examples

  • SUB warehouse.facility.analytics

    The analytics topic of this bounded context (ADR-0010), named after the AnalyticsTopic constant in internal/adapters/outbound/kafka/analytics_publisher.go (warehouse.facility.analytics). The composition root fans EVERY domain event out to it alongside the integration topic when EVENT_PUBLISHER=kafka and analytics.enabled — same CloudEvent type and id per occurrence, with dataschema=urn:warehouse:facility-layout:analytics:<EventName>:v1. It is NOT part of the cross-context integration contract: it exists so this service's own analytical read model (the "Layout Catalog Growth & Change" data product) can evolve independently of the OLTP Published Language. Cross-context consumers should subscribe to warehouse.facility.events, not here.

    Consume facility-layout's analytics stream (internal data product).

    The only supported consumer is this service's own cmd/facility-projector (single writer of the analytical database, ADR-0010). It follows the same at-least-once discipline: per-process-unique consumer group, FirstOffset replay, idempotent projection keyed on the CloudEvent id, readiness gated on catching up to the high watermark observed at start. The topic carries every event type; the projector derives its report from SiteRegistered, ZoneRegistered, AisleRegistered, LocationTypeRegistered, PlacementRuleDefined, LocationSlotRegistered, LocationSlotDecommissioned and FacilityLayoutImported, and ignores the other types. A message that fails CloudEvents validation goes to the .dlq topic (warehouse.facility.analytics.dlq).

    Operation IDonFacilityAnalyticsEvent

    Available only on servers:

    Accepts one of the following messages:

    • #0Site registered

      A physical facility/building was added to the warehouse map.

      Raised by RegisterSite. Kafka key: siteCode. No consumer wired today. siteRole is additive (ADR-0037): the site's role in the fulfilment network, UNSPECIFIED when the registration stated none (a consumer decoding the older payload simply ignores it). gln is additive and optional (ADR-0045): the site's GS1 Global Location Number, omitted when none was recorded.

      allOf
      • #site

      Examples

    • #1Site capability changed

      A site's transfer capability state changed.

      A complete, PII-free last-write-wins snapshot of site transfer capability. Kafka key and CloudEvents subject: site_code. Consumers compare capability_revision and retain the latest complete snapshot; they must not infer either capability from facility topology. Raised by PUT /sites/{siteCode}/transfer-capability through the transactional outbox, once per real change (ADR-0035), AND re-emitted periodically as a freshness HEARTBEAT (ADR-0041). A heartbeat is this same event type: the CURRENT values, a new CloudEvents id, the same key and subject, a fresh time, and capability_revision advanced by one. It is raised every SITE_CAPABILITY_HEARTBEAT_INTERVAL (chart config.siteCapabilityHeartbeatInterval, default 5m; 0 disables it) for every ACTIVE site that has declared a capability, so a consumer with a freshness window (network-inventory-planning treats a fact older than 10 minutes as stale) keeps a fact it has no reason to change. The CloudEvents time is the as_of watermark: it is the moment of emission, for a change and for a heartbeat alike. capability_revision starts at 1 and increases by exactly one per event of the same site, change or heartbeat, so consumers must not read a revision step as a capability change: compare the values. A PUT of the value a site already holds is still a no-op and raises nothing (ADR-0035). The payload stays snake_case although every other facility-layout payload is camelCase: recasing it would be a breaking .v2 for network-inventory-planning (ADR-0035, decision D2).

      allOf
      • #site

      Examples

    • #2Site role changed

      An operator changed a site's role in the fulfilment network.

      Raised by PUT /sites/{siteCode}/role through the transactional outbox, once per real change (repeating the current role publishes nothing) (ADR-0037). Kafka key and CloudEvents subject: siteCode, so the changes of one site stay ordered. Carries the new and the replaced role. It never implies a transfer-capability change: that is only ever SiteCapabilityChanged (ADR-0035). The one-time backfill of migration 0009 publishes no SiteRoleChanged; read the role of existing sites on GET /sites.

      allOf
      • #site

      Examples

    • #3Zone registered

      A behavioral zone was added inside a Site's area.

      Raised by RegisterZone. Kafka key: zoneId. Consumed live by inventory-storage's location-classification cache — the zone's hazmat and temperatureClass attributes are exactly what its StowStock placement check reads. gln is additive and optional (ADR-0045): the zone's GS1 Global Location Number, omitted when none was recorded.

      allOf
      • #zone

      Examples

    • #4Zone traffic mode declared

      A zone's traffic mode (PEDESTRIAN, ROBOT_ONLY or SHARED) was declared or changed.

      Raised by DeclareZoneTrafficMode (ADR-0049), i.e. PUT /zones/{zoneId}/traffic-mode, whenever the declared mode differs from the zone's current one; declaring the current mode publishes nothing. The zone is identified by zoneId, exactly as in ZoneRegistered, which never carries the mode (a zone is always registered PEDESTRIAN and its mode is declared after). CloudEvents subject and Kafka key: zoneId (same partition as that zone's ZoneRegistered). A consumer keeping a per-zone copy applies last-write-wins per zoneId: PEDESTRIAN from ZoneRegistered implicitly, and every ZoneTrafficModeDeclared thereafter. This is a structural fact about the building, not a safety function and not a reservation: the fleet controller decides who goes where.

      allOf
      • #zone

      Examples

    • #5Aisle registered

      A physical corridor was added inside a Zone.

      Raised by RegisterAisle. Kafka key: aisleId. No consumer wired today.

      allOf
      • #aisle

      Examples

    • #6Location type registered

      A reusable slot shape/kind was defined.

      Raised by RegisterLocationType. Kafka key: locationType. No consumer wired today.

      allOf
      • #locationtype

      Examples

    • #7Placement rule defined

      A rule constraining which LocationTypes are legal in which Zones was declared.

      Raised by DefinePlacementRule. Kafka key: ruleId. No consumer wired today.

      allOf
      • #placementrule

      Examples

    • #8Location slot registered

      A coded leaf slot now exists on the warehouse map.

      Raised by RegisterLocationSlot, and once per successful row of ImportFacilityLayout. Kafka key: locationCode. Consumed live by inventory-storage's location-classification cache, which joins the slot to its parent zone's attributes via zoneId. gln and spotKind are additive and optional (ADR-0045): the slot's GS1 Global Location Number and, on a Yard slot only, what the spot is for; both are omitted when none was recorded, so the payload of every existing slot is byte-identical to before. They are set at registration only; there is no update event for them yet.

      allOf
      • #locationslot

      Examples

    • #9Location slot decommissioned

      A coded slot was permanently retired.

      Raised by DecommissionLocationSlot. Kafka key: locationCode. Consumed live by inventory-storage's location-classification cache, which evicts the slot (its stow placement check then fails open for that location, by design). Decommissioning is irreversible — there is no compensating event.

      allOf
      • #locationslot

      Examples

    • #10Facility layout imported

      A bulk layout import completed.

      Raised once per ImportFacilityLayout call, summarising rows submitted/imported/rejected — in addition to, not instead of, the per-slot LocationSlotRegistered events for each successful row. Kafka key: the event's CloudEvents id (no single aggregate identity — a batch outcome — so batches spread across partitions; ordering against other events is not guaranteed); CloudEvents subject: the fixed batch identity layout-import. No consumer wired today.

      allOf
      • #locationslot

      Examples

    • #11Location slot handling unit declared

      A slot's handling unit (EACH, CASE or PALLET) was set or changed.

      Raised by DeclareLocationHandlingUnit (ADR-0040), i.e. PUT /locations/{locationCode}/handling-unit. The slot is identified by locationCode, exactly as in LocationSlotRegistered. CloudEvents subject and Kafka key: locationCode (same partition as that location's LocationSlotRegistered). Consumed live by inventory-storage's facility cache, which uses the handling unit to decide whether a sealed case may be stowed in the bin. Last write wins per locationCode (same partition, so ordered).

      allOf
      • #locationslot

      Examples

    • #12Location geometry updated

      A coded slot's physical position/footprint was set or changed.

      Raised by SetLocationGeometry (ADR-0017). CloudEvents subject: locationCode. Kafka key: locationCode (same partition as that location's LocationSlotRegistered). No consumer wired today.

      allOf
      • #locationslot

      Examples

    • #13Aisle geometry updated

      An aisle's travel centreline was set or changed.

      Raised by SetAisleGeometry (ADR-0017): the straight-line path the travel graph uses as this aisle's walkable route. CloudEvents subject: aisleId. Kafka key: aisleId (same partition as that aisle's AisleRegistered). No consumer wired today.

      allOf
      • #aisle

      Examples

    • #14Fixed structure registered

      A site-scoped physical obstacle was added to the warehouse map.

      Raised by RegisterFixedStructure (ADR-0017): a wall, column, office, conveyor, or other fixed object. Not a location — nothing can be stowed at it. CloudEvents subject: structureId. Kafka key: structureId. No consumer wired today.

      allOf
      • #structure

      Examples

    • #15Cross-aisle registered

      A connection between two aisles was added to the travel graph.

      Raised by RegisterCrossAisle (ADR-0017): a zone-scoped connection between two of its aisles at a bay ordinal, letting the travel graph route between aisles without walking to either end. CloudEvents subject: <zoneId>/<fromAisle>-<toAisle>@<atBay> (the cross-aisle's composite identity), which is also its Kafka key. No consumer wired today.

      allOf
      • #crossaisle

      Examples

Messages

  • #1Site registered

    A physical facility/building was added to the warehouse map.

    Message IDsiteRegistered

    Raised by RegisterSite. Kafka key: siteCode. No consumer wired today. siteRole is additive (ADR-0037): the site's role in the fulfilment network, UNSPECIFIED when the registration stated none (a consumer decoding the older payload simply ignores it). gln is additive and optional (ADR-0045): the site's GS1 Global Location Number, omitted when none was recorded.

    allOf
    • #site
  • #2Site role changed

    An operator changed a site's role in the fulfilment network.

    Message IDsiteRoleChanged

    Raised by PUT /sites/{siteCode}/role through the transactional outbox, once per real change (repeating the current role publishes nothing) (ADR-0037). Kafka key and CloudEvents subject: siteCode, so the changes of one site stay ordered. Carries the new and the replaced role. It never implies a transfer-capability change: that is only ever SiteCapabilityChanged (ADR-0035). The one-time backfill of migration 0009 publishes no SiteRoleChanged; read the role of existing sites on GET /sites.

    allOf
    • #site
  • #3Site capability changed

    A site's transfer capability state changed.

    Message IDsiteCapabilityChanged

    A complete, PII-free last-write-wins snapshot of site transfer capability. Kafka key and CloudEvents subject: site_code. Consumers compare capability_revision and retain the latest complete snapshot; they must not infer either capability from facility topology. Raised by PUT /sites/{siteCode}/transfer-capability through the transactional outbox, once per real change (ADR-0035), AND re-emitted periodically as a freshness HEARTBEAT (ADR-0041). A heartbeat is this same event type: the CURRENT values, a new CloudEvents id, the same key and subject, a fresh time, and capability_revision advanced by one. It is raised every SITE_CAPABILITY_HEARTBEAT_INTERVAL (chart config.siteCapabilityHeartbeatInterval, default 5m; 0 disables it) for every ACTIVE site that has declared a capability, so a consumer with a freshness window (network-inventory-planning treats a fact older than 10 minutes as stale) keeps a fact it has no reason to change. The CloudEvents time is the as_of watermark: it is the moment of emission, for a change and for a heartbeat alike. capability_revision starts at 1 and increases by exactly one per event of the same site, change or heartbeat, so consumers must not read a revision step as a capability change: compare the values. A PUT of the value a site already holds is still a no-op and raises nothing (ADR-0035). The payload stays snake_case although every other facility-layout payload is camelCase: recasing it would be a breaking .v2 for network-inventory-planning (ADR-0035, decision D2).

    allOf
    • #site
  • #4Zone registered

    A behavioral zone was added inside a Site's area.

    Message IDzoneRegistered

    Raised by RegisterZone. Kafka key: zoneId. Consumed live by inventory-storage's location-classification cache — the zone's hazmat and temperatureClass attributes are exactly what its StowStock placement check reads. gln is additive and optional (ADR-0045): the zone's GS1 Global Location Number, omitted when none was recorded.

    allOf
    • #zone
  • #5Zone traffic mode declared

    A zone's traffic mode (PEDESTRIAN, ROBOT_ONLY or SHARED) was declared or changed.

    Message IDzoneTrafficModeDeclared

    Raised by DeclareZoneTrafficMode (ADR-0049), i.e. PUT /zones/{zoneId}/traffic-mode, whenever the declared mode differs from the zone's current one; declaring the current mode publishes nothing. The zone is identified by zoneId, exactly as in ZoneRegistered, which never carries the mode (a zone is always registered PEDESTRIAN and its mode is declared after). CloudEvents subject and Kafka key: zoneId (same partition as that zone's ZoneRegistered). A consumer keeping a per-zone copy applies last-write-wins per zoneId: PEDESTRIAN from ZoneRegistered implicitly, and every ZoneTrafficModeDeclared thereafter. This is a structural fact about the building, not a safety function and not a reservation: the fleet controller decides who goes where.

    allOf
    • #zone
  • #6Aisle registered

    A physical corridor was added inside a Zone.

    Message IDaisleRegistered

    Raised by RegisterAisle. Kafka key: aisleId. No consumer wired today.

    allOf
    • #aisle
  • #7Location type registered

    A reusable slot shape/kind was defined.

    Message IDlocationTypeRegistered

    Raised by RegisterLocationType. Kafka key: locationType. No consumer wired today.

    allOf
    • #locationtype
  • #8Placement rule defined

    A rule constraining which LocationTypes are legal in which Zones was declared.

    Message IDplacementRuleDefined

    Raised by DefinePlacementRule. Kafka key: ruleId. No consumer wired today.

    allOf
    • #placementrule
  • #9Location slot registered

    A coded leaf slot now exists on the warehouse map.

    Message IDlocationSlotRegistered

    Raised by RegisterLocationSlot, and once per successful row of ImportFacilityLayout. Kafka key: locationCode. Consumed live by inventory-storage's location-classification cache, which joins the slot to its parent zone's attributes via zoneId. gln and spotKind are additive and optional (ADR-0045): the slot's GS1 Global Location Number and, on a Yard slot only, what the spot is for; both are omitted when none was recorded, so the payload of every existing slot is byte-identical to before. They are set at registration only; there is no update event for them yet.

    allOf
    • #locationslot
  • #10Location slot handling unit declared

    A slot's handling unit (EACH, CASE or PALLET) was set or changed.

    Message IDlocationSlotHandlingUnitDeclared

    Raised by DeclareLocationHandlingUnit (ADR-0040), i.e. PUT /locations/{locationCode}/handling-unit. The slot is identified by locationCode, exactly as in LocationSlotRegistered. CloudEvents subject and Kafka key: locationCode (same partition as that location's LocationSlotRegistered). Consumed live by inventory-storage's facility cache, which uses the handling unit to decide whether a sealed case may be stowed in the bin. Last write wins per locationCode (same partition, so ordered).

    allOf
    • #locationslot
  • #11Location slot decommissioned

    A coded slot was permanently retired.

    Message IDlocationSlotDecommissioned

    Raised by DecommissionLocationSlot. Kafka key: locationCode. Consumed live by inventory-storage's location-classification cache, which evicts the slot (its stow placement check then fails open for that location, by design). Decommissioning is irreversible — there is no compensating event.

    allOf
    • #locationslot
  • #12Facility layout imported

    A bulk layout import completed.

    Message IDfacilityLayoutImported

    Raised once per ImportFacilityLayout call, summarising rows submitted/imported/rejected — in addition to, not instead of, the per-slot LocationSlotRegistered events for each successful row. Kafka key: the event's CloudEvents id (no single aggregate identity — a batch outcome — so batches spread across partitions; ordering against other events is not guaranteed); CloudEvents subject: the fixed batch identity layout-import. No consumer wired today.

    allOf
    • #locationslot
  • #13Location geometry updated

    A coded slot's physical position/footprint was set or changed.

    Message IDlocationGeometryUpdated

    Raised by SetLocationGeometry (ADR-0017). CloudEvents subject: locationCode. Kafka key: locationCode (same partition as that location's LocationSlotRegistered). No consumer wired today.

    allOf
    • #locationslot
  • #14Aisle geometry updated

    An aisle's travel centreline was set or changed.

    Message IDaisleGeometryUpdated

    Raised by SetAisleGeometry (ADR-0017): the straight-line path the travel graph uses as this aisle's walkable route. CloudEvents subject: aisleId. Kafka key: aisleId (same partition as that aisle's AisleRegistered). No consumer wired today.

    allOf
    • #aisle
  • #15Fixed structure registered

    A site-scoped physical obstacle was added to the warehouse map.

    Message IDfixedStructureRegistered

    Raised by RegisterFixedStructure (ADR-0017): a wall, column, office, conveyor, or other fixed object. Not a location — nothing can be stowed at it. CloudEvents subject: structureId. Kafka key: structureId. No consumer wired today.

    allOf
    • #structure
  • #16Cross-aisle registered

    A connection between two aisles was added to the travel graph.

    Message IDcrossAisleRegistered

    Raised by RegisterCrossAisle (ADR-0017): a zone-scoped connection between two of its aisles at a bay ordinal, letting the travel graph route between aisles without walking to either end. CloudEvents subject: <zoneId>/<fromAisle>-<toAisle>@<atBay> (the cross-aisle's composite identity), which is also its Kafka key. No consumer wired today.

    allOf
    • #crossaisle

Schemas

  • object

    CloudEvents 1.0 structured-mode envelope (ADR-0024). Every attribute below is REQUIRED in this fleet. data carries the domain event's own JSON verbatim.

  • object

    Fields present in every event's data payload — the domain event base struct's own serialization.

  • string

    What a physical zone can hold, thermally.

  • string

    How an aisle may be traversed.

  • string

    A site's role in the fulfilment network (ADR-0037). UNSPECIFIED means not classified yet.