and yet the structure of the federal code is generally designed to be read as a recipe. judges are instructed to be as objective as possible. disbursers of funds are expected to justify decisions in as mechanical a fashion possible (this maximizes accountability) perfection is impossible, but the idea of running government like code is a quasi-ideal, or else you cant go back to the taxpayer and say "hey we did good by you".
Your discourse screams delusion or next-to-none experience in any mid-sized life and collective/team work.
Maybe try first to spend some time and speak with the actual people (judges, administrators, clerks, etc.) that do this daily, to understand how it works in reality.