So cosmopolitan? https://github.com/jart/cosmopolitan
I agree with your idealism, but I think the best we're going to get is more or less what we have now, otherwise we end up in the space where program x works with o/s y version z subsystem q, but not the other combinations you'd hope for.
I'm still annoyed that we don't design enough for the future that when a new O/S version/architecture gets released there isn't more effort to save the past. We have a perfectly serviceable relatively recent printer (4-5 years old?) that my wife now can't use because her new Mac which replaced her 12 year old mac, now doesn't have a driver for it, because there are no Sonoma versions of it.
I think we err on the wrong side of creating waste at the expense of not doing (admittedly annoying) work.
To get back on topic, this was the point of subsytems - you managed to hold onto and get access to the past you liked from within your walled garden.
Just about everything now is it's own garden with a tiny API gate to allow you access to the minor features of the whole collection.
I am aware of WSL and the likes but, it's taken many years to get that far.