Just started Foundation season 2 and....wait a second....Hari (being an upload of a person's consciousness) getting stuck for 138 years in a small space....while being conscious this entire time.....and then sees the main character as a 'tormentor'......
and Vault!Hari being an AI.....building a library of history and humanity while doing 5D Chess with the rulers of the world....clad in purple....and has the standing of a God....sounds familiar....
Yep, Angela. Hari Seldon is Angela from Lobotomy Corporation and Library of Ruina......
Bonus (Hari basically has two Rolands -- Gaal and Salvor):


















