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
| Property | Value |
|---|---|
| Subdomain classification | Supporting (ADR 0001) |
| Tier | wms (CloudEvents type prefix com.warehouse.wms.product-master.*; with facility-layout, inventory-storage, inbound-receiving, slotting-optimization and pick-face-replenishment) |
| Language / style | Go backend, hexagonal architecture (ports and adapters) |
| Inbound adapters | REST (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 side | Analytics stream, cmd/product-projector and cmd/product-reports (master data quality report, ADR 0006) |
| UI | productmaster_mfe Module Federation remote (web/), hosted by the warehouse-console shell |
| Deployed | kind 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) |
| Integration | Kafka CloudEvents 1.0 (structured mode), transactional outbox for publishing; nine sibling contexts consume warehouse.product-master.events |
| Auth | None 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
TemperatureClassrequired if and only if the product isTemperatureSensitive, and an optionalDOTHazardClass(1..9) allowed only withHazmat. Each classification records its ClassificationSource:native(authored here; every write since the migration ended) orlegacy-import(imported frominventory-storagebefore 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,
maketargets and CI jobs. - MCP tools: the six read-only tools and the two pack level write tools of
cmd/mcp.
The domain:
- Bounded context: purpose, context map, the no-live-lookup rule.
- Aggregates: the
Productaggregate and its invariants. - Physical profile: declared versus measured, effective values and discrepancy.
- Use cases and subdomain classification.
- DDD artifacts: the ddd-crew pack (core domain chart, canvases, context map, EventStorming, class, ER and sequence diagrams).
- Downstream consumers and upstream contracts (none since stage E; the retired legacy contract is kept as a record).
- API reference: REST (generated from
apis/openapi.yaml) and the event catalogue. - Architecture decision records: the index of every ADR with its status.
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.