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)
| ADR | Decision |
|---|---|
| YD-0001 | Two bounded contexts: dock-scheduling and yard-management |
| YD-0002 | DockAppointment moves from inbound-receiving to dock-scheduling |
| YD-0003 | Every location change of a trailer is a YardMove |
| YD-0004 | Physical facts win: arrival, docking and door release are recorded only by yard-management |
| YD-0005 | Outbound pickups come from the fleet CPT schedule, never from the retail network |
dock-scheduling
| ADR | Title | Status |
|---|---|---|
| 0001 | Dock Scheduling is a bounded context of the yard domain | Accepted (bootstrap). |
| 0002 | Aggregates, invariants, error names and assumptions | Accepted; amended in part by 0011 (the legacy importer). |
| 0003 | Consumed contracts and local copies | Accepted; amended in part by 0011 (the legacy importer's consumed row and group). |
| 0004 | CloudEvents catalogue | Accepted. |
| 0005 | Postgres persistence and the transactional outbox | Accepted. |
| 0006 | Analytics read side: an analytics stream, a projector and a schedule-adherence report over a separate analytical database | Accepted (2026-11-06). |
| 0007 | MCP server | Accepted. |
| 0008 | REST adapter and the API composition root | Accepted. |
| 0009 | Kafka consumers | Accepted; amended in part by 0011 (the legacy import consumer). |
| 0010 | DockAppointmentDoorReassigned is an integration event | Accepted (2026-11-09). |
| 0011 | The legacy appointment importer is removed (ADR 0019 stage E, dock-scheduling side) | Accepted (2026-11-10). |
| 0012 | The carrier registry: carriers keyed by SCAC, an opt-in booking rule and three carrier events | Accepted (2026-11-10). |
| 0013 | Standard vocabulary on published facts: X12 214 status, CBV business step and read-point GLN | Accepted (2026-11-10). |
| 0014 | Every problem type has a replay class; a retryable refusal is not stored under the Idempotency-Key | Accepted (2026-11-21). |
| 0015 | A2A inbound adapter: two goal-shaped skills over the MCP use cases | Accepted (2026-12-02). |
| 0016 | Agent planning: attributed appointment facts, a stored reschedule plan, a late-arrival policy and a dock briefing | Accepted (2026-12-02). |
yard-management
| ADR | Title | Status |
|---|---|---|
| 0001 | Yard Management is a bounded context of the yard domain | Accepted (bootstrap). |
| 0002 | Aggregates, invariants and assumptions | Accepted (2026-11-05). |
| 0003 | Consumed contracts and local copies | Accepted (2026-11-05). |
| 0004 | CloudEvents envelope and type catalogue | Accepted (2026-11-05); stream split refined by ADR 0010 (DoorWorkCompleted and TrailerDeparted also on the integration topic). |
| 0005 | Postgres persistence and the transactional outbox | Accepted (2026-11-06). |
| 0006 | Analytics read side: an analytics stream, a projector and yard reports over a separate analytical schema | Accepted (2026-11-06); refined by 0011 (the projector folds twelve kinds, not seven; new reports). |
| 0007 | MCP server | Accepted (2026-11-06). |
| 0008 | The REST adapter and the API process | Accepted (2026-11-06). |
| 0009 | Kafka consumers | Accepted (2026-11-06). |
| 0010 | DoorWorkCompleted and TrailerDeparted on the integration topic | Accepted (2026-11-09). |
| 0011 | Yard KPI standard v1: turn time, detention exposure and exception rates | Accepted (2026-11-09). |
| 0012 | Standard identifiers at the gate: ISO 6346 unit numbers, ISO 17712 seal class and a seal state vocabulary | Accepted (2026-11-10). |
| 0013 | Dock safety interlock: a trailer is secured before door work starts and released before it leaves its door | Accepted (2026-11-10). |
| 0014 | Hazmat and reefer placement: a trailer is parked on a spot whose kind its contents allow | Accepted (2026-11-10). |
| 0015 | Compliance inspections: versioned checklist templates, an Inspection record and a site-policy gate on dock, load and departure | Accepted (2026-11-11). |
| 0016 | Carrier registry copy and the suspended-carrier rule at the gate | Accepted (2026-11-12). |
| 0017 | Adopt the fleet observability standard: OpenTelemetry on every binary, trace-correlated logs and one business counter | Accepted (2026-11-13). |
| 0018 | Standard vocabulary on published facts: X12 214 status, CBV business step and CBV disposition | Accepted (2026-11-17). |
| 0019 | Every problem type has a replay class; a retryable refusal is not stored under the Idempotency-Key | Accepted (2026-11-18). |
| 0020 | A2A inbound adapter | Accepted (2026-12-02). |
| 0021 | Agent features: next-door recommendation, pickup preparation plan, gate-record gaps and time-on-site check | Accepted (2026-12-02). |