X’s director of engineering, Haofei Wang, has suddenly left the company, according to sources with knowledge of the matter.