Had the same problem yesterday, was driving me nuts
Expecially because Phaere specifically recommend you to use a stealthy approach and not kill anyone.
To me it does seem like a mistake that everyone goes hostile, though none actually sees you stealth in and swap the eggs.