Skip to main content

Context map

Synced from product-master

This page is a copy of docs/docs/ddd/context-map.md on develop, derived from that repository's code. Edit it there, then re-sync.

This context's slice of the fleet map, following ddd-crew Context Mapping. Every edge is labelled U (upstream) / D (downstream) with the pattern on each side and the technology. Every edge is live: built in both repositories on develop and wired in the kind cluster (warehouse-infra terraform/apps.yaml and helm-values/). There is no upstream context any more: the migration-only edge from inventory-storage (ADR 0003 legacy importer) was removed at stage E. Neighbour classifications come from the warehouse-docs subdomain classification table.

Source: docs/adr/0001-product-master-bounded-context.md (Context map), docs/adr/0003-migration-from-inventory-storage.md (stage E), docs/adr/0005-mcp-server-adoption.md, internal/adapters/outbound/kafka/encoder.go, cmd/api/main.go, cmd/mcp/main.go, web/vite.config.ts; on the consumer side (all on develop) inventory-storage internal/adapters/inbound/kafka/product_master_consumer.go, order-management and wes-work-planning internal/adapters/inbound/kafka/product_classification_consumer.go, fulfillment-execution internal/adapters/inbound/kafka/product_classified_consumer.go, slotting-optimization and inbound-receiving internal/adapters/inbound/kafka/product_consumer.go, warehouse-ops-agent internal/adapters/outbound/mcpclient/product_master.go, warehouse-console src/App.tsx and vite.config.ts (productmaster_mfe). Omits: the Kafka broker, Kong, the web gateway and the operators who call the REST API directly.

Relationships​

#UpstreamDownstreamPatterns (U / D)TechnologyStatusEvidence
1product-masterinventory-storageOHS + Published Language / local copy behind its own consumer (its existing product_classifications table, version-guarded)Kafka warehouse.product-master.events, com.warehouse.wms.product-master.product.ProductClassifiedLive: the consumer starts only when PRODUCT_MASTER_CONSUMER_GROUP is set; warehouse-infra sets it (productMasterConsumerGroup: inventory-storage-product-master)inventory-storage ADR 0034, product_master_consumer.go, cmd/inventory/productmaster.go
2product-masterorder-managementOHS + PL / local copy behind the ProductClassificationLookup portsame typeLive with PRODUCT_CLASSIFICATION_MODE=kafka (binary default permissive; warehouse-infra sets kafka)order-management ADR 0036, cmd/order/product_classification.go
3product-masterwes-work-planningOHS + PL / local copysame typeLive with PRODUCT_CLASSIFICATION_MODE=kafka (binary default permissive; warehouse-infra sets kafka for cmd/wes and cmd/mcp)wes-work-planning ADR 0035, cmd/wes/classification.go
4product-masterfulfillment-executionOHS + PL / local copysame typeLive: kafka is the only mode (permissive, off and http are boot errors) and PRODUCT_CLASSIFICATION_CONSUMER_GROUP is requiredfulfillment-execution ADR 0039, cmd/execution/classification.go
5product-masterslotting-optimizationOHS + PL / local copy of the handling class and the effective unit sizeProductClassified, ProductDimensionsDeclared, ProductMeasured on the same topicLive: PRODUCT_MODE=kafka is the only mode and PRODUCT_CONSUMER_GROUP is requiredslotting-optimization ADR 0003, cmd/api/main.go (consumerSpecs)
6product-masterinbound-receivingOHS + PL / known_skus local copy (an ASN line for an unknown SKU is rejected)ProductRegistered on the same topicLive: PRODUCT_MODE=kafka is the only mode and PRODUCT_CONSUMER_GROUP is requiredinbound-receiving ADR 0003, cmd/api/main.go
7product-masterwarehouse-ops-agentOpen Host Service (read-only MCP, ADR 0005) / Conformist: a schema-pinned client of the four read tools (get_product, list_products, get_product_classification, get_physical_profile); its find_master_data_gaps tool and GET /master-data-gaps page through list_productsMCP Streamable HTTP, product-master-mcp:8090/mcp (PRODUCT_MASTER_MCP_ENDPOINT)Live and deployed; unset endpoint = feature offwarehouse-ops-agent ADR 0020, cmd/mcp/main.go
8product-masterwarehouse-consolethis context ships its own UI, the productmaster_mfe Module Federation remote (web/); the console shell hosts it on /product-master/* behind a Product Master tileModule Federation (/mfes/product-master/); the remote calls this context's REST API through Kong (/api/product-master)Live and deployedwarehouse-console #66, web/vite.config.ts, web/src/config.ts

ProductDescriptionChanged is the only published type with no consumer: every consumer above ignores it by type.

There is no Shared Kernel and no Partnership: no sibling Go package is imported, and the published payloads are the only shared contract. product-master calls no sibling at request time, and no domain context calls it at request time (ADR 0001); only the read-side Customers do (rows 7 and 8: the ops-agent over MCP, the console remote over REST).