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
Departures come from lane schedules and vendor cutoffs, so the middle mile is planned ahead.
Each departure tracks remaining seats, and a full one moves or fails bookings in the open.
It reads siblings' events and calls no one, so it never waits on their uptime.
Add alerts for dispatch outcomes, outbox backlog, consumer lag and dead letters the dashboards already show.
Runs the middle mile of the retail network: it turns lanes into scheduled departures — including a pickup departure at every cutoff of an ACTIVE vendor fulfillment center — keeps each departure's remaining capacity, builds loads of packages onto departures, and reports when loads depart and arrive…
Lane schedules roll into a 14-day horizon of departures; locked orders book pickup seats, and loads report departing and arriving.
Nothing alerts on the business metric, outbox backlog, consumer lag or dead letters, and the analytics stream has no consumer here.
Planners set each lane's weekly slots: cutoff, departure, arrival and capacity.
A rolling 14-day horizon of truck, air and vendor pickup departures, ready to book.
Every departure knows how many packages are booked and how many seats remain.
A locked order gets a pickup seat, or moves to the next pickup when one is full.
Loads open, fill, close, dispatch and arrive, recording real trip times.
Node, lane, order and label facts are copied locally, so it never calls a service.
Follows the fleet observability standard (ADR 0010): all three binaries push OTLP/gRPC metrics and traces to the OpenTelemetry Collector (Jaeger, Prometheus), logs are JSON shipped by Alloy to Loki…
Ranked against all 45 briefed repositories (dot = one repository, highest on the left).
The booking model is consumer-sensitive: a full pickup departure moves locked bookings (BookingMoved) or fails them (BookingFailed)…
Moves and failures are published events, so downstream capacity views can follow them.
Nothing alerts on the business metric, outbox backlog, consumer lag or DLQ topics…
Add alerts on dispatch outcomes, outbox backlog, consumer lag and dead-letter topics.
Hard runtime coupling on a single-broker platform: DATABASE_URL and KAFKA_BROKERS are mandatory with no degraded mode (CLAUDE.md:21)…
Readiness names the failing dependency; the README marks it study-only.
Every REST, MCP and A2A endpoint is unauthenticated by decision (fleet-wide auth revert; CLAUDE.md:23,43)
No mitigation on the roadmap yet: this one needs an owner.
Linehaul runs the middle mile: scheduled departures with live capacity, so every package rides a real seat
| Style | Hexagonal / Ports & Adapters; Supporting subdomain, logistics tier of the retail network (network-level design lives in warehouse-docs' retail-network pages)… |
| Layout | cmd/{api,mcp,a2a} — three binaries: api :8080 (REST composition root: HTTP, the three Kafka consumers — node-topology, order-sourcing, shipping-and-tracking… |
| Storage | Single Postgres instance (2 embedded golang-migrate migrations: linehaul_schema, idempotency_global_key) applied at boot… |
| Testing | table-driven -race unit tests; 90% coverage gate on internal/domain + internal/application; 11 godog BDD feature files over the real HTTP API… |
| REST | 11 operations over 11 paths on :8080 (HTTP_ADDR): POST /lane-schedules, POST /lane-schedules/{laneId}/retirements, GET /departures… |