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. · November 2026
Labels are issued only after a deliverability check, with ship-to data encrypted at rest.
One journey per tracking number merges handover, load, carrier and pickup facts.
A read-only MCP tool and A2A skill expose the journey, but both ship switched off.
Approve journey search for support desks and the reverse-label route that is accepted but not built.
Generic subdomain in the logistics tier. It is the only place outside customer-ordering that ever sees a ship-to address, and it owns each package's journey: one customer-visible timeline consolidated from vendor handover, load and delivery facts, ending in delivered, returned or lost…
It issues labels after a deliverability check and merges vendor, linehaul and last-mile facts into one journey per package.
It holds ship-to addresses, needs customer-ordering up to print labels, and its silence rule can call a late package lost.
Labels print only after the address is checked as deliverable.
Labels can be voided, and retention rules limit how long ship-to data stays.
Handover, linehaul and last-mile facts merge into one timeline.
Packages that go quiet raise one exception, then are marked lost 48 hours later.
Each journey carries a day-of delivery window.
Last-mile delivery-point flags are relayed downstream by order id.
OpenTelemetry OTLP/gRPC to in-cluster Collector -> Jaeger (traces) + Prometheus (metrics); JSON slog logs on stdout collected by Alloy into Loki (fleet standard, ADR 0008)
Ranked against all 45 briefed repositories (dot = one repository, highest on the left).
Custody of PII: it is the only service outside customer-ordering holding ship-to addresses…
Ship-to is encrypted at rest and purged 30 days after the journey closes; key rotation is not built.
Label issuance synchronously depends on customer-ordering's GetShipTo; that service's outage halts shipping
No mitigation on the roadmap yet: this one needs an owner.
Silence heuristics (NO_SCAN then lost after 48h) can misclassify merely delayed packages as lost…
No mitigation on the roadmap yet: this one needs an owner.
Every REST, MCP and A2A endpoint is unauthenticated by decision (fleet-wide auth revert…
No mitigation on the roadmap yet: this one needs an owner.
Shipping and Tracking turns scattered handover, load and delivery facts into one timeline a customer can trust
| Style | Hexagonal (ports & adapters), event-driven DDD, transactional outbox |
| Layout | cmd/{api,mcp,a2a,st-projector,st-reports} composition roots; internal/domain {label, journey, shared}; internal/application {ports, usecases, repository, views, shipto, outbox}… |
| Storage | PostgreSQL (pgx v5): labels, journeys, processed_events inbox, transactional outbox, global idempotency keys, 6 schema migrations incl… |
| Testing | Unit + 90% coverage gate; integration on real PostgreSQL and Kafka via testcontainers (incl. a real-wiring test of cmd/api)… |
| REST | 8 operations over 8 paths on :8080: /labels, /labels/{labelRef}/voids, /journeys/{trackingNumber}, /journeys/{trackingNumber}/scans, /carrier-events… |