But when your 'product' is violence on behalf of the state (in the anarcho-libertarian sense of 'violence' being any non-voluntary interaction with a person or power structure, sometimes involving actual violence) then the ability of humans to mediate, alter and affect that system becomes a feature as well as a bug. This necessarily limits the speed of the law and the degree to which it can be optimized, and remain humane, because removing humans from that system tends to merely concentrate power in the hands of the few humans necessary for it to function.
And then the questions become if humans can write the laws, and humans can update the laws, and humans are enforcing the laws, and have discretion in doing so, then what really is being automated, or optimized, other than recordkeeping? And for that matter, what does law as a programming language actually improve?
Other than record keeping? Why does it need to go beyond that? You don't want transparency in your laws? You don't want the ability to format and translate them as needed? You don't want the ability to do queries and comparisons? You don't want machines to be able to update their own behavior when the law changes?
I'm not talking about automating anything other than record keeping.
But if that line of reasoning were good enough, then the US made a mistake by rejecting the rule of a monarch. Democracy is rife with managerial issues.