https://en.wikipedia.org/wiki/Goodhart%27s_law
I'm also reminded of a similar Chinese saying: 上有政策下有对策。 Loosely translated as "the higher-ups have policies, the lower-downs have antipolicies." The other analogy is squeezing a bag of water: if you push one place, another place pops out to compensate, and if you squeeze everywhere and too hard, it pops.
It's the same as measuring a programmers output by Lines of Code, you're just going to get a heaping mass of code that could be done in 1/10th of the lines.
Result: You would see huge bloobs of autogenerated code getting shipped that could have been done with about 5% of that code, and then later get discarded by security as a security risk.
Even after my consulting(I was hired to fine our how mouch of there code is rly a security risk like there industry partners claim) they did not change there practice for 3 Years.
Im surprised the Company even survived, but it did and after 3 Years a big restructering basicly fired all of IT management.
What we know about human behavior definitively indicates that having a sense of autonomy and control is essential to motivation/performance. It's also obvious that stress increases under the knowledge that someone is monitoring you. Hell even the ancient Greeks probably understood the perils of micromanagement...
In the case of readily measurable output in blue-collar work, it seems obvious that a component of compensation should scale proportionate to productivity, so that you're rewarding high performers instead of implicitly penalizing everyone uniformly. And then you just fire (obvious) chronic underperformers, so that you still gain the advantages from there being a fear of repercussions.
One of the common themes is the unintended consequences. For example, UPS drivers who get scolded because the truck records that it was sometimes in motion without them wearing their seat belt. Regardless of the circumstances before the scolding (there are lots of situations where it would be reasonable to make such a judgment call, esp on private property like a parking lot), afterward they would simply clip the seatbelt empty and sit on top of it. Then the truck registers 100% seatbelt compliance and they are far less safe since they're never wearing it.