In author’s own words, “Accepting rather brain-jarring head-snaps, I decided on a solenoid to turn the head to the forward-peering attitude at the start of forward motion with spring-return..”
Something he did not have ~20 years ago are tiny vibrator or so-called pager motors from cell phones. These motors have enough torque to directly drive a rotating object like a pivoting head and need less space than a geared solenoid-driven linear-to-rotary mechanism. In this O-gauge animated school bus such a motor, about $1 surplus, directly drives the pivoting stop sign.
The short-video shows the open and close “snap” motion. Friction holds the sign in place between actions so power is only required when moving. Depending on what other electronics you have in the engine, I don't think it a stretch to add a simple timer circuit to activate it every 15 sec. Or maybe activate it when the whistle is blowing or, as the author did, turn the head when the engine switches direction.