I’ve employed people before who eroded my trust in them. I either fired them or nudged them to find a new job, depending on the severity of the thing they did to make me not trust them.
Sometimes the unions/courts require a company to document incompetence for a certain number of months before being able to let a person go.
I don't agree with these requirements, but can see how they could incentivize surveillance apps.
https://tvtropes.org/pmwiki/pmwiki.php/Main/ThePowerOfFriend...
Your one employee betraying your trust does not justify treating the rest of your employees this way
With programmers in particular it's painfully obvious if they work or not. You are expending tons of unnecessary (human) energy to maybe scoop 5-10% more productivity. It's not worth it.
There are also a lot of people who work better (and more!) when they feel free.
I mean, you do you of course, but consider that you're only surrounding yourself with one kind of people and are missing out on everybody else -- and no, they are not slackers.