If computer code == what-we-agreed-here isn't what you want, then you don't want smart contracts.
The court will intervene and that will be the end of the idea that the code is the final authority.
The law often sees itself as onnipotent, but it stands no chance against cryptography and unnamed contract authors.
That is one thing that both skeptics and the most zealous of smart-contract proponents agree on.
Many of Ethereum's key players thought that was what they wanted until they found themselves in a contract containing a 'clause' they had not anticipated.