I expected the vertex to go to the skeleton origin + joint offset + offset of vertex compared to the joint pos. (NOTE: the mesh origin is at the same spot as the skeleton origin!) Then I expect it to rotate by the globalrot. Instead its as if the vertex rotates around another origin that isn't correct.

Could someone help me with this?

And yes... I am aware of the seperated vertexes but that is not the problem.