Last May, Sandra Rivera, a top executive at the chip giant Intel, got some alarming news. Engineers had worked for…