That's really important I think. Tangentially, https://ecfr.gov/ is bizarrely one of the most impressive websites I have encountered. It's regulations not laws but it has so many ways to discover and link and learn and trace back to law. I'm not a lawyer but it's been a great resource for understanding and surprisingly pleasant to read. I found learning about the whole law and regulation machinery and provenance via eCFR pretty fascinating.

Dunno if other governments are this Byzantine in practice (our system seems to be like... manual integration of diff patches) but it's pretty interesting and I really appreciate the work that goes into these types of things.

This is surprisingly close to what I have in mind!