I don't think this was an instance of institutionalized sexism. Rather, the founder's wife seems like an unbalanced individual, and nobody effectively set any boundaries. The other founders and HR seemed unaware or unable to set the situation to right. As for her romantically inclined co-worker -- I don't see how his behavior qualifies as sexist or hostile. Merely a bit clueless, but isn't it to be expected that empl…
the dude going back and deleting her code after the rejection seems pretty hostile to me.
What probably needed to happen was whoever was in charge of that project should have recognized these two employees now didn't get along, and reassigned one or both of them away from the project.