Git for the US Code(lexifina.com)
324 points by alansaber 11 hours ago | 173 comments
tl;dr: The author built a Git-like version control system for the US Code, replaying public laws' amending instructions between release points from 2017 onward to reconstruct the text in force on any given date, with each phrase attributed to the Act that wrote it. Of 365 changes across nine titles, 361 reproduced the next release point exactly. The motivation is partly that LLMs struggle with temporal validity in statutory interpretation—applying superseded rules or preferring newer provisions when older ones govern—and a checkable history of statutory text is needed to ground legal research.
HN Discussion:
  • ~Version control for legislation is critical but Git may not be the right tool
  • ↑Government bodies should be legally required to maintain such a repository
  • ↑Similar projects exist elsewhere (French law, other jurisdictions) validating the approach
  • ~Great concept but the AI-generated writing style of the article is off-putting
  • ~Idea is promising but practical limits exist due to secretive legislative drafting