In Peter F Hamilton's Commonwealth series of books, true artificial general intelligence 'woke up' from the computers designed to handle the incredibly complex calculations required to make and maintain long-distance wormhole connections. Quite analogous to this situation I feel
And then formed a treaty with humans, providing Restricted Intelligences for high performance computing without self awareness creation, and then retreating to it's own planet.