CPU sometimes fails to repair buildings. In a r2178 test game I played today, a Magic Ultra CPUgot attacked and almost had its main building destroyed. It had only 63 of 8000 HP left, but even ~10 minutes after the building was last attacked, not a single initiate was sent to repair it. New initiates were produced and sent to harvest, or to scout/attack, or mutated to battle mages.
In the same game, an Egyptian Ultra CPU failed to repair its sphinxes. This was after they already lost their only pyramid, but they still had food + workers + some other buildings, though.