There are a couple of legal devices that people use for just this type of "strategic commitment" in regards to divorce
the first is called a "spendthrift trust" or a domestic asset protection trust. Prior to marriage you put all of your assets into a trust that benefits you, but that you do not "control." the legal conceit here is that, since you do not really control these assets, but rather they are held in trust for your benefit, you could not have contributed these to communal property when you got married. so unlike the post, your assets are "confiscated" even before you get married.
There are a couple of legal devices that people use for just this type of "strategic commitment" in regards to divorce
... (read more)the first is called a "spendthrift trust" or a domestic asset protection trust. Prior to marriage you put all of your assets into a trust that benefits you, but that you do not "control." the legal conceit here is that, since you do not really control these assets, but rather they are held in trust for your benefit, you could not have contributed these to communal property when you got married. so unlike the post, your assets are "confiscated" even before you get married.
the second place I've seen is