Regarding your apparent primary concern about the unavailability of the original manuscripts, rigorous and skeptical testing of the consistency of
the extant earliest copies of those originals has not jeopardized their accuracy.
And while the code of Ur - Nammu happens to be the oldest of which there's an
extant copy, the existence of older codes is suggested both by specific references and by the expectation that
earlier kings similarly laid down formal rules.