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
It fills the gap between a manifested package and a departed trailer.
Tying ship-confirm to the physical departure replaces a manual network confirmation.
It runs and is well tested, but the deployed image shows us almost nothing.
Roll an image with the OpenTelemetry setup to the cluster and have infra load its dashboard and alert rules.
outbound-shipping is the WMS-tier Supporting bounded context that gets every manifested package onto the right load before its cutoff, proves what left on which trailer, and tells the fleet an order actually shipped. It fills the gap between fulfillment-execution (which stops at PackageManifested) and yard-management (which owns the trailer and departure) with three aggregates: OutboundLoad…
It plans loads from manifested packages, stages and loads them, and confirms on the trailer's departure with a bill of lading.
One pod runs, but its image predates the OpenTelemetry setup, so dashboards are empty and lag, outbox and DLQ go unmeasured.
Opens one load per cutoff and ship method when a package is manifested.
Takes the door from dock appointments and starts loading when the trailer docks.
Stages packages only in the site's staging locations, then loads them.
Closes, reopens or cancels loads and short-ships missing packages with reasons.
Confirms on departure with the seal number and issues one bill of lading per load.
Flags packages left behind at departure so they can be re-promised.
Fleet observability standard (ADR 0008): both binaries push OTLP/gRPC traces and metrics (off when OTEL_EXPORTER_OTLP_ENDPOINT is empty…
Ranked against all 45 briefed repositories (dot = one repository, highest on the left).
Consumers (six groups) and the relay have no lag, depth or DLQ metric: operational truth is slog lines and SQL…
Instrument consumer lag, outbox depth and DLQ rate, and deploy the new image.
One api pod runs v0.1.0 (since 2026-11-12); MCP is off by default and consumer policies…
Observe consumer, relay and DLQ behaviour under load before relying on it.
The fulfillment-execution, process-path-management and facility-layout inputs are consumed without a pinned contract: a producer…
Pin the remaining contracts so a producer rename fails CI, not runtime.
REST and MCP are unauthenticated BY DECISION (fleet-wide)
A decision, not a gap: fleet-wide.
Outbound Shipping confirms a shipment only when the trailer leaves, so 'shipped' finally means shipped
| Style | Hexagonal (ports and adapters) with DDD aggregates and an event-driven transactional outbox; dependencies point inward, enforced by architecture fitness tests |
| Layout | Two binaries: cmd/api (REST :8080 + six Kafka consumers — fulfillment, dock, yard, cpt, layout and the own analytics consumer… |
| Storage | PostgreSQL only (pgx; unit of work; 1 embedded golang-migrate migration; transactional outbox table with a headers column for trace context… |
| Testing | Unit tests per layer (domain, use-case, adapter); 10 godog BDD feature files; testcontainers integration; consumer contract tests against pinned producer AsyncAPIs (yard-management… |
| REST | 15 operations over 15 paths on :8080: POST /packages/{packageId}/stagings | loadings | unloadings… |