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
Safety rules secure a trailer before door work and park it only where its load allows.
13 published facts keep dock, receiving, shipping and exception teams in sync.
Six yard KPIs, from dwell to detention exposure, are built and waiting to be switched on.
Approve switching on MCP, KPI reports and the sweeps in warehouse-infra, and instrumenting the consumers and relay.
Owns everything physically on site outside the four walls: who passed the gate (visits), which trailer is where (spot, door or an open move), its load, seal and hold state, the moves hostlers and visiting drivers make, door work at the door, and yard checks…
It checks trucks in at the gate, places trailers, runs hostler moves and door work, and publishes 13 yard facts.
Only api and relay run on the cluster; MCP, KPI reports and sweeps are built but off, and its consumers have no telemetry.
Checks tractors, drivers and trailers in and out, with typed rejection reasons.
A visit from a suspended carrier is rejected at check-in.
Tracks where each trailer sits, its load, seal and holds, and where it may park.
Hostlers claim and complete moves, with leases that expire if work stalls.
A trailer is secured before door work starts and released before it leaves.
Compares expected and actual trailer positions and raises dwell breaches.
Fleet observability standard (ADR 0017): all five binaries export traces and metrics over OTLP/gRPC (lazy, non-blocking) plus Go runtime metrics…
Ranked against all 45 briefed repositories (dot = one repository, highest on the left).
Telemetry covers HTTP requests and one gate check-in counter only: a wedged consumer…
Readiness names the failing dependency; outbox SQL, DLQ topics and freshness are the signals today.
Only api and relay run on the cluster; the KPI/reports surface and the 21-tool MCP server are switched off in infra…
Switch on MCP, the projector, reports and the sweeps in warehouse-infra.
REST and the MCP surface (11 write tools) are unauthenticated BY DECISION (fleet-wide, README study-project disclaimer)
No mitigation on the roadmap yet: this one needs an owner.
Yard management turns everything outside the four walls into shared facts, but its best parts are still dark
| Style | Hexagonal / Ports & Adapters; WMS-tier Supporting bounded context of the yard domain (yard instance of warehouse-docs holds the single-source model)… |
| Layout | cmd/{api,mcp,relay,yard-projector,yard-reports} — five binaries in one image (entrypoint ./api): api :8080 (REST + the three Kafka consumers: dock-scheduling, facility-layout… |
| Storage | Postgres OLTP (7 root migrations: yard-management, idempotency_keys, standard_identifiers, dock_safety_interlock, hazmat_and_reefer_placement… |
| Testing | table-driven -race unit tests; 90% coverage gate on domain+application (make check-all); 15 godog BDD feature files… |
| REST | 46 operations over 41 paths on :8080: /visits (+/{id}, /check-outs), /visit-rejections, /trailers (+/{id}, /classifications, /holds, /hold-releases… |