Skip to main content

Context map

This context's slice of the network map, following Context Mapping. Relationship patterns come from ADR 0001 and ADR 0003. The Status column says, per edge, what the code on develop of each side does (checked on 2026-10-31); the network-wide map is on the retail-network pages of warehouse-docs.

Source: docs/adr/0001-linehaul-transportation-bounded-context.md, docs/adr/0003-consumed-contracts-and-local-read-models.md (relationship column), internal/adapters/inbound/kafka/handlers.go, apis/asyncapi.yaml, and the consumers in the sibling repositories: delivery-promise/internal/adapters/inbound/kafka/dispatch.go, order-sourcing/internal/adapters/inbound/kafka/handlers.go, shipping-and-tracking/internal/adapters/inbound/kafka/handlers.go, last-mile-delivery/internal/adapters/inbound/kafka/consumers.go. Solid arrows are Kafka topics with code on both sides; the dotted arrow is the request/response surface.

Edges​

EdgeRelationshipStatus
node-topology -> linehaul-transportationPublished Language (retailnetwork.node-topology.events); this context is a Conformist and keeps local node and lane viewsConsumer built (always on; group NODE_TOPOLOGY_CONSUMER_GROUP)
order-sourcing -> linehaul-transportationPublished Language (FulfillmentReleasedToNode, FulfillmentReassigned, FulfillmentLocked, FulfillmentCancelled); Customer/Supplier: order-sourcing names the pickup departure, this context books itConsumer built (group ORDER_SOURCING_CONSUMER_GROUP)
shipping-and-tracking -> linehaul-transportationPublished Language (LabelIssued, LabelVoided); ConformistConsumer built (group SHIPPING_AND_TRACKING_CONSUMER_GROUP)
linehaul-transportation -> order-sourcingPublished Language on retailnetwork.linehaul-transportation.events; order-sourcing reads departures, capacity and cancellations and receives BookingMovedProducer built; order-sourcing consumer built (LINEHAUL_TRANSPORTATION_CONSUMER_GROUP); BookingFailed is received and changes no state there
linehaul-transportation -> delivery-promisePublished Language (DepartureScheduled, DepartureCapacityChanged, DepartureCancelled, BookingMoved, BookingFailed, LoadDeparted, LoadArrived); delivery-promise builds witness paths from the departure events, flags a promise AT_RISK on a moved or failed booking and pairs the two load events into measured transitProducer built; consumer built
linehaul-transportation -> shipping-and-trackingPublished Language (LoadDeparted, LoadArrived)Producer built; consumer built
linehaul-transportation -> last-mile-deliveryPublished Language (LoadArrived)Producer built; consumer built
linehaul-transportation -> analytics readersPublished Language on retailnetwork.linehaul-transportation.analyticsProducer built; no consumer found in the sibling repositories
linehaul-transportation -> agents and operatorsOpen Host Service: REST (GET /departures for any context), MCP and A2A reads, the linehaul_mfe console remoteBuilt; no sibling context is a REST client

Deliberate non-edges​

  • No outbound REST, MCP or A2A call to any context: the service "calls no sibling at runtime" (CLAUDE.md, ADR 0003).
  • No edge to vendor-connectivity, node-performance, seller-inbound, offer-availability or customer-ordering.
  • No edge to the warehouse-systems fleet: the fleet reaches the network only through the Vendor API of vendor-connectivity.
  • No cross-context database access: this context owns its database and holds only event-fed copies of node, lane and assignment facts.