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.
If you cannot make the distinction between computer code and law/regulation, that get applied by humans in humans time and humans circles…?
« Refactoring » an org or a government like you project to, like Elon and his boys is doing, it is going to cost actual lives. People killed.
we're already past that. the NIH funded EcoHealth alliance which partnered with WIV, and advocated for GOF research, so, the NIH is (if indirectly) responsible for millions of COVID deaths. That's like two holocausts. ok, lets discount it by 50% since it was indirect. the NIH is responsible for one Holocaust.
Government is mostly individuals deciding goals and attempting to convince others. Then rules are added to prevent harm to others or using corrupt methods of convincing. That "code" part is more like a moderated forum: necessary for the huge task, but it's just the framework for the actual content.
>Historical governments often needed little beyond an army and a tax collection system.
And historical computers used vacuum tubes. What's your point?
>The tech way of thinking has proven extremely successful in many industries already.
Even in tech companies, the richest people are almost always the smooth talkers. Because the best, and really only, way to get money is convincing somebody else to give it to you. You can do it by offering a better product or charming them.
Most government goals aren't technically difficult and certainly don't require advanced algorithms or fast computers. The real work is aligning people.