Guide Rails and Guard Rails

A guide rail is the thing that keeps a tram or roller coaster on the right path. It limits the carriage to a single correct course of action. If the tram or roller coaster is not following the guide rail, something has gone wrong.
A guard rail is the thing along highways and other roads. It keeps you from going into danger. It doesn’t dictate your path, but it blocks off dangerous paths.