A software bug, leaked files and a former hardware chief sit at the centre of Apple's trade secrets suit against OpenAI.