Shipping & Tracking
Derived from network/model/model.yaml. This context's service is built; the model carries its as-built contracts, and identifiers (Err... names, routes, CloudEvents types) are the names the service uses. It also has an analytics read side (shipping-and-tracking ADR 0012): cmd/st-projector projects this context's own topics into a separate analytical database, and cmd/st-reports serves the read-only /reports/... routes on :8092.
Shipping & Tracking (shipping-and-tracking, code ST, tier
logistics) issues the shipping label for every package and owns the
package's journey. A label is issued in-organization when
vendor-connectivity asks for one on behalf of a vendor node (POST /labels).
At that moment this context reads the ship-to address from
customer-ordering (GET /orders/{orderId}/ship-to, restricted) and keeps
only an encrypted snapshot needed to print it. It is the only context outside
customer-ordering that ever sees an address, and it never publishes one.
After the label, it folds facts from three other contexts into one
customer-visible, forward-only timeline: the vendor's
VendorShipmentConfirmed and the first pickup scan, linehaul LoadDeparted
and LoadArrived, and last-mile PackageOutForDelivery,
DeliveryAttempted, the stop ETA windows and the delivery-point flags. The
timeline ends in delivered, returned or lost. The day-of ETA window and the
delivery-point flag are stored on the journey but are not scans: they never
move the state, and each is republished per package with its orderId so
customer-ordering can show it to the shopper. PackageHandedOver feeds
node-performance. PackageDelivered feeds the promise judgement in
delivery-promise. A package that goes silent is raised as an exception
(ExceptionOnSilence).
- Inbound:
IssueLabelfromvendor-connectivity(REST, in-org); events fromvendor-connectivity,linehaul-transportation,last-mile-deliveryandoffer-availability;GetJourneyfrom shoppers andcustomer-ordering. - Outbound: one synchronous query,
GetShipTo, tocustomer-ordering; ten CloudEvents types onretailnetwork.shipping-and-tracking.events. - Aggregates:
ShippingLabel(labelRef) andPackageJourney(trackingNumber).
This context's pages
| Page | What it holds | ddd-crew tool it follows |
|---|---|---|
| Business Context | The business problem, actors, decisions, out of scope | DDD Starter Modelling Process (Understand, Discover) |
| Ubiquitous Language | Every term, its code identifier and its false friends | Bounded Context Canvas (Ubiquitous Language section) |
| Core Domain Chart | Why this context is Generic | Core Domain Charts |
| Bounded Context Canvas | Purpose, roles, every inbound and outbound message | Bounded Context Canvas v5 |
| Context Map | Every neighbour, direction and pattern | Context Mapping |
| Aggregate Design Canvas | ShippingLabel and PackageJourney: states, invariants, commands, events | Aggregate Design Canvas v1.1 |
| Domain Events | Ten published and eight consumed events, with full CloudEvents types | EventStorming glossary (domain event) |
| Domain Message Flow | Label issue, journey to delivery, failure paths | Domain Message Flow Modelling |
| EventStorming | Process-level boards with hotspots | EventStorming glossary & cheat sheet |
| Use Cases | One section per command, errors mapped to HTTP | none (application layer) |
| Class Diagram | Proposed domain types and the hexagonal layout | none (UML) |
| Entity Relationship | Proposed Postgres schema | none |
| Sequence Diagrams | Adapter to Kafka for every command use case | none (UML) |
Service and operations
- Service:
IQVO/shipping-and-trackingondevelop(fc7e530, 2026-10-26): binariescmd/api(REST) andcmd/mcp(read-only MCP), and the console remote inweb/. - Deployment: wired in warehouse-infra develop: a
terraform/apps.yamlentry (database: true,frontend_remote: shipping_mfe) andhelm-values/shipping-and-tracking.yaml(MCP enabled, gateway path/api/mcp/shipping-and-tracking). The cluster itself was not checked in this refresh. - Observability: service ADR 0008,
Adopt the fleet observability standard, Accepted 2026-10-26. Logs, metrics and traces leave
over OTLP to the otel-collector (
OTEL_EXPORTER_OTLP_ENDPOINT, chart defaultotel-collector.observability.svc.cluster.local:4317;OTEL_SERVICE_NAME). The Tier-2 business counter isshipping.labels.issued(unit{label}, ininternal/adapters/outbound/telemetry/label_metrics.go), with attributeoutcome=issuedorrejectedandreasonon the outcomes that are not a success. The dashboard queries it asshipping_labels_issued_totalin warehouse-infra'sterraform/dashboards/contexts/shipping-and-tracking.json, byoutcome.
Elsewhere
- Read-only MCP server (service ADR 0006):
cmd/mcp, a second binary serving Streamable HTTP on:8090with no auth; it sources this context's own reads and nothing that writes. One tool:get_journey. The gateway (Kong) exposes it at/api/mcp/shipping-and-tracking, rewritten to the server's/mcpmount. - Console remote (service ADR 0007):
web/, a Vite + React Module Federation remote — federation containershipping_mfe, gateway mount/mfes/shipping-and-tracking/, dev/preview port4020— read-only screens over the existing REST reads, calling only this context's API. - REST contract (as built, from the service repository):
apis/shipping-and-tracking/openapi.yaml, rendered under the API reference. - ADR 0006: PII confinement: why the ship-to
address lives only in
customer-orderingand here. - ADR 0007: CloudEvents namespace and the event standard.
- The domain-wide Context Map and Subdomain Classification.