Skip to main content

Product Master

product-master is a Supporting bounded context in the warehouse-systems fleet (GitHub org IQVO). It answers one question:

What is this SKU, for handling purposes and physically?

It is the single source of truth for SKU-level product master data: the handling classification of a SKU (hazmat, fragile, temperature-sensitive, oversized, high value, DOT hazard class) and its physical profile (declared and measured unit dimensions and weight). It answers no "where" or "how many" question: stock lives in inventory-storage.

Where it sits​

PropertyValue
Subdomain classificationSupporting (ADR 0001)
Tierwms (CloudEvents type prefix com.warehouse.wms.product-master.*; with facility-layout, inventory-storage, inbound-receiving, slotting-optimization and pick-face-replenishment)
Language / styleGo backend, hexagonal architecture (ports and adapters)
Inbound adaptersREST (cmd/api, :8080) and an MCP server (cmd/mcp, :8090, read-only but for two pack level tools, ADR 0005 as amended by ADR 0011); no Kafka consumer of another context (the ADR 0003 legacy importer was removed at stage E, 2026-10-17)
Read sideAnalytics stream, cmd/product-projector and cmd/product-reports (master data quality report, ADR 0006)
UIproductmaster_mfe Module Federation remote (web/), hosted by the warehouse-console shell
Deployedkind cluster via warehouse-infra: Kong /api/product-master, /api/product-master/reports and /api/mcp/product-master, web gateway /mfes/product-master/ (see Runtime surface)
IntegrationKafka CloudEvents 1.0 (structured mode), transactional outbox for publishing; nine sibling contexts consume warehouse.product-master.events
AuthNone on REST or MCP (fleet-wide revert of 2026-09-11)

:::note Study project Like the rest of the warehouse-systems fleet, this is a personal study project exploring Domain-Driven Design, hexagonal architecture and AI-agent harness engineering. It is not production software and carries no support guarantee. :::

What this context owns​

One aggregate, Product, identified by SKU:

  • Description: optional operator text (0..200 characters).
  • Classification (optional value object): a non-empty set of handling tags from a closed list, a TemperatureClass required if and only if the product is TemperatureSensitive, and an optional DOTHazardClass (1..9) allowed only with Hazmat. Each classification records its ClassificationSource: native (authored here; every write since the migration ended) or legacy-import (imported from inventory-storage before stage E and not re-classified since).
  • PhysicalProfile: declared unit dimensions, the latest measurement, and the derived effective values and discrepancy flag (ADR 0002).
  • Version: starts at 1 and increases by one on every accepted change; it guards the repository write and rides on every published event.

A product must be registered (PUT /products/{sku}) before it can be classified or dimensioned; attributes of an unknown SKU are a 404, never an implicit registration.

It does not own stock or placement (inventory-storage), segregation rules (inventory-storage per bin, fulfillment-execution per package), pack hierarchy, units of measure, lot/serial/expiry policy, lifecycle states, barcodes, or any commercial attribute (ADR 0001, "Explicitly out of scope").

Where to go next​

Getting started and operating it:

  • Quickstart: build, run, seed and call it locally.
  • Architecture and runtime: hexagonal layers, the four binaries and their ports, the container diagram, data stores, outbox and consumers.
  • Configuration: every environment variable of every binary.
  • Runbook: deployment, migrations, topics, relay, DLQ, scaling and routine procedures.
  • Observability: metrics, traces, logs and suggested alerts.
  • Troubleshooting: symptom, cause, check, fix.
  • Testing: the test pyramid, make targets and CI jobs.
  • MCP tools: the six read-only tools and the two pack level write tools of cmd/mcp.

The domain:

Disclaimer

This project is a domain-driven design study. It is not associated with, endorsed by or affiliated with any company, and it uses no company's code, data, logos or trademarks. All names, figures and examples are illustrative or synthetic.