This dual-citizenship debacle in the Australian parliament demonstrates how hard it can be to maintain a true rule of law, as formulating a set of rules that is both complete and consistent is impossible.
You might have a rule saying “members of parliament must renounce citizenship of any other countries” or words to that effect, but then you also need to have rules for what happens when they don’t renounce it, or think they’ve renounced it but actually haven’t, or it turns out that they have been dual-citizens and never realised and they’ve been in parliament for decades and passed tons of laws.
If it was a database you might try rolling back to a previously valid state, but a real world organisation faces the problem that there probably is no previous state that was ever truly valid, and that maintaining stable governance and predictable outcomes is considered more important than technical adherence to rules which can generate unpredictable behaviour.
This is why every practical organisational ecosystem needs to have a system like the courts for interpretation, mediation, and finding ad hoc fixes to problems that can’t be resolved any other way, while always doing their best to maintain adherence to precedent and being careful when establishing new precedent.
There are obvious ramifications to this for decentralised systems and those that attempt to make rule of law absolute, by baking it into (hopefully perfect) code.