mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-27 00:52:50 +00:00
Intercity cargo rides a passing train and is handled at the booking's own yards, so those yards need the equipment to do it — a train stopping somewhere is not the same as somewhere being able to load it. Loading at an origin or unloading at a destination without has_facility is now refused, naming the yard. The check sits inside loadBooking/unloadBooking rather than the intercity controller wrapper, because recording a checkpoint auto-unloads every booking destined at that yard (autoUnloadAtYard) and would otherwise route around it. Import/export are untouched: their cargo is handled at the route's terminal ports, not at an arbitrary mid-corridor yard, so the gate returns early for anything that isn't DOMESTIC. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>