I've been playing around with watching AIs by setting myself as a spectator manually (using the /specator command), after loading a couple AI teams in using script.txt. (there is plenty of odd behaviour here too; even if I set myself as a spectator in script.txt, it doesn't work).
The trouble is that AIs (actually, I've only tried RAI, I'm not sure if it's specific to that AI) aren't getting the right information back -- calls to GetUnitHealth always return 0, and this is probably related to problems in allyTeams.
One thing I don't quite understand is why an AI is classified as a Team -- surely it should be a Player?
Nevertheless, I'm pretty certain these problems aren't in previous versions of spring. Does anybody know if the startscripts / ai allyteam calculations have been modified recently?
I've placed a bug report in mantis, but I'm hoping that saying something on forums too might mean people will notice

edit: see viewtopic.php?f=11&t=15194 for more details.