Looking to switch from an old Honeywell CT87A thermostat to a smart thermostat, probably something requiring a common wire. There are 2 thermostats (one on each floor) in a 2 zone forced hot water oil burner system, heat only.

I want to make sure I have the right wires before buying a new thermostat, and was worried with an old system like this I'd have just 2 wires. But looking at the existing wiring, there are 4: red, black green and yellow.
- Red and Black wires are on the thermostat's R terminal,
- Green and Yellow on the W terminal
- nothing on the Y terminal

Looking up thermostat wire color charts, I am now very confused as I have no White wire which is pretty much always shown as being for heat.

Can I assume either my Green or my Yellow is actually for heat, since they are both connected to the W terminal?

Assuming my Red is for power (since that's consistent with 99% of color guides, and it is connected to the R terminal), is my black wire a common?

Can the wire roles be deduced in this situation just from the terminals they're connected to? Is there a way to find out for sure?[![thermostat][1]][1]

Edit: wiring on the 2 taco relays, and aquastat, below

taco1, runs circulator for 1st floor:

[![taco1][2]][2]

taco2, runs circulator for 2nd floor (with a zone valve to divert to water tank):

[![taco2][3]][3]

aquastat:

[![aquastat][4]][4]


  [1]: https://i.sstatic.net/AKFfb.jpg
  [2]: https://i.sstatic.net/RcYCN.jpg
  [3]: https://i.sstatic.net/qGk0u.jpg
  [4]: https://i.sstatic.net/G5lVy.jpg