Yard management · executive briefings · counted 29 Nov 2026

Yard management executive briefings

Between the gate and the dock door.

The yard program: everything that happens to a trailer after it reaches the fence and before the dock door takes over. Appointments, gates, yard moves, the exceptions that surface when a load goes missing — and the linehaul leg that carries it away. Young, honest, and growing in public.

bounded contexts
4
briefing decks
4
event routes drawn
4+25 crossing
commits
522
median eng. score
91

How the pieces talk

Every arrow is a real event route.

Counted from the context registry, not drawn by hand: solid arrows are Kafka routes inside the program; ▲ is the routes a context consumes and ▼ the routes it publishes. 25 more routes cross the program boundary.

ScheduleGate & yardExceptionsLinehauldock-scheduling → yard-managementdock-scheduling → exception-managementyard-management → dock-schedulingyard-management → exception-managementdock-scheduling▲4 ▼5dock-scheduling: consumes 4 route(s), publishes to 5yard-management▲3 ▼4yard-management: consumes 3 route(s), publishes to 4exception-management▲10 ▼0exception-management: consumes 10 route(s), publishes to 0linehaul-transportation▲3 ▼4linehaul-transportation: consumes 3 route(s), publishes to 4

The briefings

4 projects, briefed like a business.

Mission, capabilities, events, risks and next steps — quoted from each repository's committed executive deck; every number beside them is counted from git and the GitHub API.

dock-scheduling · supporting

Dock scheduling is the one door calendar per site, so no two trucks get booked into the same window

Owns the door calendar of every site: every booked time window on every dock door, inbound and outbound, from booking through arrival to door release, enforcing no-double-booking, door opening hours and closures, ETA-driven risk and terminal no-shows. It feeds on facts, not calls: trailer dockings and gate arrivals from yard-management, t…

  • Door calendar ownership per site: operating hours (open 24x7 until declared), scheduled closures with lifts, calendar settings and slot granularity (GET /sites/{siteId}/dock-calendar family)
  • Appointment lifecycle: book, reschedule, cancel carrier windows per door and direction under the no-double-booking invariant; version-checked transitions (expectedVersion); window and door m…
  • ETA-driven risk: report_eta / eta-reports flag BOOKED appointments at risk (LATE_ETA, DOOR_REASSIGNED_OVERLAP, surfaced by list_at_risk_appointments) — advisory only, nothing reschedules aut…

publishes

  • com.warehouse.wms.dock-scheduling.carrier.CarrierRegistered
  • com.warehouse.wms.dock-scheduling.carrier.CarrierReinstated
  • com.warehouse.wms.dock-scheduling.carrier.CarrierSuspended
  • com.warehouse.wms.dock-scheduling.dockappointment.DockAppointmentBooked
  • com.warehouse.wms.dock-scheduling.dockappointment.DockAppointmentCancelled
  • com.warehouse.wms.dock-scheduling.dockappointment.DockAppointmentDoorReassigned

consumes

  • com.warehouse.wes.process-path-management.cptschedule.CPTScheduleChanged
  • com.warehouse.wms.facility-layout.locationslot.LocationSlotDecommissioned
  • com.warehouse.wms.facility-layout.locationslot.LocationSlotRegistered
  • com.warehouse.wms.facility-layout.zone.ZoneRegistered

Named risks. Observability is half-wired: no OTel SDK (the chart renders OTEL_* into pods that nothing reads) and the dashboard's OTel-style service panels may stay empty — its own docs say not to expect OTLP outp…

Next: Turn the built-but-disabled components on in warehouse-infra: MCP, projector, reports, the dedicated relay and the no-show sweep CronJob are all switched off — only cmd/a…

yard-management · supporting

Yard management turns everything outside the four walls into shared facts, but its best parts are still dark

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 is the source of the yard's dwell, door-occupancy and yard-truck productivity…

  • Gate visits: check a tractor, driver and trailers in (ISO 6346 unit numbers, ISO 17712 seal classes, ADR 0012), reject a visit with typed reasons, check out; visit facts published for dock-s…
  • Carrier gate (ADR 0016): an event-fed copy of dock-scheduling's carrier registry; a visit from a suspended carrier is rejected at check-in (reason carrier-suspended), a carrier not yet publi…
  • Trailer placement and state: spot or door position, load state, hazmat and reefer classification with placement rules (a trailer parks only where its contents allow, ADR 0014), holds and hol…

publishes

  • com.warehouse.wms.yard-management.inspection.InspectionCompleted
  • com.warehouse.wms.yard-management.inspection.InspectionFailed
  • com.warehouse.wms.yard-management.trailer.DoorWorkCompleted
  • com.warehouse.wms.yard-management.trailer.SealExceptionRaised
  • com.warehouse.wms.yard-management.trailer.TrailerDeparted
  • com.warehouse.wms.yard-management.trailer.TrailerDocked

consumes

  • com.warehouse.wms.dock-scheduling.carrier.CarrierRegistered
  • com.warehouse.wms.dock-scheduling.carrier.CarrierReinstated
  • com.warehouse.wms.dock-scheduling.carrier.CarrierSuspended
  • com.warehouse.wms.dock-scheduling.dockappointment.DockAppointmentBooked

Named risks. Telemetry covers HTTP requests and one gate check-in counter only: a wedged consumer, a stuck relay or a growing outbox shows up only in slog lines and SQL, so no shipped alert sees it

Next: Find consumers for the published-but-unconsumed safety facts — TrailerSecured, TrailerSecuringReleased (ADR 0013) and InspectionCompleted (ADR 0015) have no consumer yet;…

exception-management · supporting

Exception management turns scattered anomaly facts into owned cases, each with an owner and a deadline

The warehouse's Problem Solve: it turns the anomaly facts other contexts already publish into owned cases with triage, assignment, an SLA clock, resolution and root cause. It owns the ExceptionCase aggregate and the versioned ExceptionPolicy per source type (severity, queue, SLA, declarative auto-resolve rules); it never owns the source f…

  • Case intake: exactly one case per dedup key (source type, subject, site) from a consumed fact; a repeated fact touches the open case instead of opening another — 20 consumed anomaly types ac…
  • Held-stock cases (ADR 0012): one case per held unit from StockHeld, auto-resolved when StockReleased or StockDispositioned ends the hold, on a second inventory consumer group
  • Operator workflow over REST: triage decisions, assignments and resolutions (/exceptions/{caseId}/triage-decisions|assignments|resolutions); every transition records its actor

publishes

  • com.warehouse.wes.exception-management.exceptioncase.ExceptionAssigned
  • com.warehouse.wes.exception-management.exceptioncase.ExceptionAutoResolved
  • com.warehouse.wes.exception-management.exceptioncase.ExceptionEscalated
  • com.warehouse.wes.exception-management.exceptioncase.ExceptionOpened
  • com.warehouse.wes.exception-management.exceptioncase.ExceptionResolved
  • com.warehouse.wes.exception-management.exceptioncase.ExceptionTriaged

consumes

  • com.warehouse.wes.fulfillment-execution.package.PackageDiverted
  • com.warehouse.wes.fulfillment-execution.package.WeightDiscrepancyDetected
  • com.warehouse.wes.fulfillment-execution.task.TaskCPTMissed
  • com.warehouse.wes.network-fulfillment.networkorder.AcknowledgementDeadlineAtRisk

Named risks. Instrumentation stops at the request histogram and one intake counter: no shipped alert or counter sees case backlog, escalations or a stuck relay, so operational truth lives in get_sla_report and the…

Next: Extend the metrics past the one exception.cases.opened counter — case counts by status/queue, escalation counts, outbox depth and consumer lag are not evidenced (README,…

linehaul-transportation · supporting

Linehaul runs the middle mile: scheduled departures with live capacity, so every package rides a real seat

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. It does not own nodes or lanes (node-top…

  • Lane schedules: define the weekly slots of a lane (day, local cutoff, departs, arrives, capacity); a redefinition replaces the slots from the next horizon roll; retire a schedule
  • Departure generation: a 14-day horizon of LINEHAUL and AIR departures from the lane schedules plus a PICKUP departure at every cutoff of an ACTIVE vendor fulfillment center (background horiz…
  • Capacity accounting: every departure keeps booked and remaining packages (full state on DepartureCapacityChanged, not a delta); pickup bookings are locked assignments from order-sourcing

publishes

  • com.retailnetwork.logistics.linehaul-transportation.departure.BookingFailed
  • com.retailnetwork.logistics.linehaul-transportation.departure.BookingMoved
  • com.retailnetwork.logistics.linehaul-transportation.departure.DepartureCancelled
  • com.retailnetwork.logistics.linehaul-transportation.departure.DepartureCapacityChanged
  • com.retailnetwork.logistics.linehaul-transportation.departure.DepartureScheduled
  • com.retailnetwork.logistics.linehaul-transportation.load.LoadArrived

consumes

  • com.retailnetwork.commerce.order-sourcing.assignment.FulfillmentCancelled
  • com.retailnetwork.commerce.order-sourcing.assignment.FulfillmentLocked
  • com.retailnetwork.commerce.order-sourcing.assignment.FulfillmentReassigned
  • com.retailnetwork.commerce.order-sourcing.assignment.FulfillmentReleasedToNode

Named risks. The booking model is consumer-sensitive: a full pickup departure moves locked bookings (BookingMoved) or fails them (BookingFailed), and the consolidated-follower-lock semantics changed as recently as…

Next: Add alerts on what the dashboards already show: linehaul_loads_dispatched_total outcome shifts, outbox backlog, consumer lag and dead-letter topics — all explicitly liste…