In reality, most larger projects are already like that - except with no logic spelled out. It's completely ad hoc. Instead you have to hunt in commit logs and compare with old versions of open source projects they based their source on. Sometimes the upstream changed their license too at some point in the past, and if you are lucky, you can still find a reference on some web page. The upstream project can have the same situation itself, in a sort of fractal way. It's turtles
almost all the way down, until you end up with an early transcription of the Fortran BLAS routines to C by way of Pascal, with the intermediate Pascal routines lost somehow in the mists of time. Our historians now believe it all started after the moon landing in what they called Jan 1 1970 00:00 or "0" or origin. After seeing for themselves how inhospitable Space is, the humans decided to stay on Earth and focus their efforts on the study of source code. Some argued that it would eventually lead to the encompassing of all human thought and thus to Enlightment for all. Yet others feared a world where human thought has no consequence. Most are too busy with work to worry either way. After all, at the end of the month another name of God in the markets is what pays the bills¹ and who has time to worry about whether the Monad⁰ comes² or even exists.
0: https://en.wikipedia.org/wiki/Monad_(Gnosticism)
1: https://cyclonedx.org/
2: https://stackoverflow.com/ a / 1732454