It's not so much a matter of relying on AIS (which is never sufficient by itself), but the International Regulations for Preventing Collisions at Sea (IRPCS or Colregs) require every vessel maintain a proper lookout (Rule 5) and it must be done using all available means, including sight, hearing, radar, GPS, and other electronic aids like AIS.
This is the most fundamental requirement for safe navigation and it is table stakes for everyone on the bridge, OOW or not.
So AIS is not enough, and sure enough the tanker identified the frigate even though it was not broadcasting AIS and even communicated the need for the frigate to manoeuvrer, as the tanker was constrained in its ability to do so.
> However, what it did show that it was surrounded by three tugs - which I hadn't noticed at first. I concluded that it was being towed by the tugs and wasn't powered up (or whatever the nautical term is) and therefore didn't show in AIS? No idea if that is correct or not.
AIS is a broadcast system using VHF transceivers, and services like MarineTraffic rely on shore stations or satellites (S-AIS) which receive AIS signals and forward them via the internet where the central server then pushes them out to the app/web users.
This means that depending on local VHF conditions, you may not see all vessels broadcasting AIS via online services, even though any vessel close enough to be a collision risk would have no issue receiving the signal.
In this specific case, had the OOW consulted either their eyes and compass (ie taken repeated bearings to the lights which would have shown they weren't static/ashore) or radar (which did clearly show the tanker on a collision course - constant bearing, decreasing range), the collision would have been avoided. AIS should have been used only to augment radar and visual data only (ie to identify the vessel, class, draught, etc). Even without broadcasting on AIS, they were receiving this data from other vessels like the tanker.
In addition, had the warship been broadcasting on AIS, VTS (maritime analogue to air traffic control) would most likely have identified the collision risk and also directed the frigate to manoeuvre to avoid the collision. As it was, without broadcasting AIS, the frigate was invisible to VTS (in particular as the VTS had failed to manually plot the warship's route when the warship called in to enter their area of responsibility).