Skip to main content

ADRs

The design decisions of the yard domain (YD), then the implementation ADRs of the two built services. Each service ADR lives in its own repo; the tables below (dock-scheduling 16, yard-management 21) copy the Status from the ADR body (first sentence) and link the file on develop. ADR bodies are immutable; read them in their repo.

Yard design decisions (YD)​

ADRDecision
YD-0001Two bounded contexts: dock-scheduling and yard-management
YD-0002DockAppointment moves from inbound-receiving to dock-scheduling
YD-0003Every location change of a trailer is a YardMove
YD-0004Physical facts win: arrival, docking and door release are recorded only by yard-management
YD-0005Outbound pickups come from the fleet CPT schedule, never from the retail network

dock-scheduling​

ADRTitleStatus
0001Dock Scheduling is a bounded context of the yard domainAccepted (bootstrap).
0002Aggregates, invariants, error names and assumptionsAccepted; amended in part by 0011 (the legacy importer).
0003Consumed contracts and local copiesAccepted; amended in part by 0011 (the legacy importer's consumed row and group).
0004CloudEvents catalogueAccepted.
0005Postgres persistence and the transactional outboxAccepted.
0006Analytics read side: an analytics stream, a projector and a schedule-adherence report over a separate analytical databaseAccepted (2026-11-06).
0007MCP serverAccepted.
0008REST adapter and the API composition rootAccepted.
0009Kafka consumersAccepted; amended in part by 0011 (the legacy import consumer).
0010DockAppointmentDoorReassigned is an integration eventAccepted (2026-11-09).
0011The legacy appointment importer is removed (ADR 0019 stage E, dock-scheduling side)Accepted (2026-11-10).
0012The carrier registry: carriers keyed by SCAC, an opt-in booking rule and three carrier eventsAccepted (2026-11-10).
0013Standard vocabulary on published facts: X12 214 status, CBV business step and read-point GLNAccepted (2026-11-10).
0014Every problem type has a replay class; a retryable refusal is not stored under the Idempotency-KeyAccepted (2026-11-21).
0015A2A inbound adapter: two goal-shaped skills over the MCP use casesAccepted (2026-12-02).
0016Agent planning: attributed appointment facts, a stored reschedule plan, a late-arrival policy and a dock briefingAccepted (2026-12-02).

yard-management​

ADRTitleStatus
0001Yard Management is a bounded context of the yard domainAccepted (bootstrap).
0002Aggregates, invariants and assumptionsAccepted (2026-11-05).
0003Consumed contracts and local copiesAccepted (2026-11-05).
0004CloudEvents envelope and type catalogueAccepted (2026-11-05); stream split refined by ADR 0010 (DoorWorkCompleted and TrailerDeparted also on the integration topic).
0005Postgres persistence and the transactional outboxAccepted (2026-11-06).
0006Analytics read side: an analytics stream, a projector and yard reports over a separate analytical schemaAccepted (2026-11-06); refined by 0011 (the projector folds twelve kinds, not seven; new reports).
0007MCP serverAccepted (2026-11-06).
0008The REST adapter and the API processAccepted (2026-11-06).
0009Kafka consumersAccepted (2026-11-06).
0010DoorWorkCompleted and TrailerDeparted on the integration topicAccepted (2026-11-09).
0011Yard KPI standard v1: turn time, detention exposure and exception ratesAccepted (2026-11-09).
0012Standard identifiers at the gate: ISO 6346 unit numbers, ISO 17712 seal class and a seal state vocabularyAccepted (2026-11-10).
0013Dock safety interlock: a trailer is secured before door work starts and released before it leaves its doorAccepted (2026-11-10).
0014Hazmat and reefer placement: a trailer is parked on a spot whose kind its contents allowAccepted (2026-11-10).
0015Compliance inspections: versioned checklist templates, an Inspection record and a site-policy gate on dock, load and departureAccepted (2026-11-11).
0016Carrier registry copy and the suspended-carrier rule at the gateAccepted (2026-11-12).
0017Adopt the fleet observability standard: OpenTelemetry on every binary, trace-correlated logs and one business counterAccepted (2026-11-13).
0018Standard vocabulary on published facts: X12 214 status, CBV business step and CBV dispositionAccepted (2026-11-17).
0019Every problem type has a replay class; a retryable refusal is not stored under the Idempotency-KeyAccepted (2026-11-18).
0020A2A inbound adapterAccepted (2026-12-02).
0021Agent features: next-door recommendation, pickup preparation plan, gate-record gaps and time-on-site checkAccepted (2026-12-02).