Maybe I'm too software-engineer-brained now, but to me it seems like lawmakers should just be using a tool like git directly. The legal code is a codebase, every bill is a PR, the arguments and proposed changes are captured in review comments, and the PR is accepted/rejected on a vote.
Aside from "lawmakers don't/won't understand the tool", why not do it this way?
I think they pretty much do, it’s just not recorded as such in an easily retrievable format.