Many thanks to those of you who sent in bug reports over the weekend -- you've helped to uncover a couple rare and troublesome glitches in the new AI scripts.
I've just pushed a patch to stable that I believe should fix all the outstanding issues (r12578).