Help with relative offsets using vectors and/or transforms.

Currently I am unable to get the meshes to align correctly based on their socket positions.
As for what is considered “correctly aligned” that depends on the transform of both the parent & child sockets

A super basic example would be to have two cubes with a socket on one face of each of the cubes, what I would like to be able to do is align both cubes to each other with the sockets being used as the point of contact between the two meshes

What I want to be able to do is effectively chain meshes together using the sockets as the “attach points” or “anchors”