Exclusive: A secret workplace relationship, a sidelined cofounder and a surprise power play that ended in a firing from one of AI’s hottest startups.