Well, you are copying identical slugs around and of course they are “ambiguous” because “link1” in latest is the same as “link1” in 1.0.0.
I think I would try to do the ref-links as “1.0.0/prerequisites” and symlinking “latest” somehow to the highest number of revisions.
You might want to have a look at how Bootstrap does their documentation. They use Hugo and they have a versioned documentation… so somehow they got it running