Slavery? Restricted Suffrage? Genocide? Witch trials? Heroin?
Or stuff that's been illegal before
Inter-racial marriage? Hemp? Gay marriage?
Due process isn't enough for a legal system to work - the law has to change & revocable Axioms aren't exactly a thing.
In fact, my sister goes on and on about Jurisprudence in such discussions - letter of the law and the spirit of it.
Aren't revocable axioms why there are different geometries?
For the future the answer is obvious. You consider the edge case, decide what to do what it happens, publish the decision and follow it from now on.
The real question is, what do you do for the person who fell into the edge case before it was decided?
And the problem with the existing criminal justice system is that the judge decides how that edge case should be handled and then imposes it on the defendant's behavior ex post facto. Which the courts don't allow Congress to do but seem to have no problem doing themselves.
There is a fair argument to be made that we should let the first defendant who does it get away with it, but then publish the decision saying that it was wrong and imposing that on the next one.
It's kind of like the exclusionary rule: Somebody getting away with something that one time would be the punishment Congress gets for not considering more of the edge cases from the outset (or passing simpler laws that are easier to reason about).
A fundamental question here is - do you want the law to be a completely trustless system? Sticking to the letter of the law and enumerating all imaginable corner cases are examples of going into that direction.
I'm not totally convinced trustless systems are a good idea for society, because of inefficiencies they introduce as a cost of not having to trust anyone.
It's like arguing that the developers of Windows or MacOS or Linux or whatever should just start over and do everything right this time. Or Intel and AMD should create a new CPU architecture and do it right this time. What you'll quickly find are a million reasons why things are done the way they are, and that this whole restarting project was a terrible idea.
Yeah it sounds great, but anyone who knows what that actually means realizes it's a retarded idea.
Which would create an incentive for finding imperfections and therefore fix more of them faster.