Co-installability generally kinda comes along “for free” if you get Goal: Path-agnosticism right.
If you’re into video content, this talk from All Systems Go 2018 covers the concepts of path-agnosticism, co-installability, why they’re useful, and how we can get them:
Path-agnostic binaries, co-installable libraries, and How To Have Nice Things