Hello,

Thanks for this.
According to the wiki, signals are tagged as a point on the track. So it is clear which track they belong to.

You might want to bind them to the nearest track and use the following tag: railway:signal:direction=forward (or backward)
https://wiki.openstreetmap.org/wiki/Tag:railway=signal?uselang=en

Hope this helps.