This is kind of the point I am trying to make that sovereignty is somewhat of a spectrum and there are a lot of options for preserving parts of it.
I think the Westphalia thing is somewhat overblown there were lots of sovereignty analogs throughout human history all over the world before that.