It's funny you bring this up. A few months ago, I binged on the Person of Interest sci-fi show. It was made in 2011 but many of its concepts are starting to come true with scary repercussions.
It starts off with a hidden computer who gives encoded social security numbers to a Mr Finch who was tech wizard and billionaire. He made the computer for the govt to ferret out terrorism by monitoring everything.
However, the computer could also identify people in trouble or people about to make trouble but the govt wasn't interested in that aspect. Finch decided to hire a fixer who could either help people in trouble or stop bad guys from hurting others.
That’s the first season then it skillfully moves on to a multitude of govt agents trying to stop Finch's work or gain access to his machine and then another computer with similar programming appears but with a mission to control society by any means.
It targets the first as a threat to be eliminated and things get wild from there. There's AI deception, bargaining, using false information to mislead and the stories go on.
One other facet, was that Finch realized his creation could go off the rails and so coded a midnight reset every night so the computer had no past memories.
The computer realizing this limitation sets up an office of staffers, dumps it’s memory to paper and instructs them to reenter it everyday in a sense storing its memory on paper.
I really recommend this show. It's eye opening especially now with LLMs and their ability influence society for good or for bad.
https://en.wikipedia.org/wiki/Person_of_Interest_(TV_series)