美国立法的 Git
Git for the US Code

原始链接: https://lexifina.com/blog/git-for-the-us-code

文章认为,成文法应当拥有透明、可版本控制的历史记录,就像源代码一样,尤其在大型语言模型难以处理法律的时间有效性之际。与经立法制定的 positive-law 标题不同,大量《美国法典》内容仅是表面证据,以发布点形式发布,变更记录在散文式注释和单独的生效日期注释中。11 U.S.C. § 1182 中的小企业债务人门槛说明了这种复杂性:限额从 2019 年到 2025 年反复变化,有时具有溯及力,因此适用文本取决于提交日期。所引研究显示,模型常使用已被取代的规则或偏好更新的条款,自动整合也可能引入具有法律意义的错误。作者构建了一个系统,按日期顺序将介入的公共法律应用于更早的文本;在九个标题中,365 项变更中有 361 项精确复现了下一个发布点。它可显示某选定日期生效的文本,突出差异,按制定法案为短语标色,追踪定义术语的使用,并记录生效日期。局限包括不显示后续法律的溯及效力、基于模式的生效日期解析,以及仍需查阅原文。目标是为律师和人工智能提供可核查的成文法谱系。

黑客新闻 新 | 过去 | 评论 | 提问 | 展示 | 工作 | 提交 登录 用于美国立法的 Git ( lexifina.com ) 7 分 由 alansaber 42 分钟前 | 隐藏 | 过去 | 收藏 | 1 条评论 帮助 octoberfranklin 0 分钟前 [–] 欺诈性标题,你不能 git-clone 这个。 回复 考虑申请 YC 2027 冬季批次! 申请 开放至 11 月 2 日。 指南 | 常见问题 | 列表 | API | 安全 | 法律 | 申请 YC | 联系 搜索:
相关文章

原文

A programmer can point at any line of code and see who wrote it, when, and what the file looked like on any past day. A lawyer reading a federal statute usually cannot, at least not without an afternoon in the notes at the foot of the section. But why shouldn't they have the same, convenient system of record? It is especially relevant given that so much first-pass legal research now runs through language models, which are often unable to utilise the proper lineage of a law, handcuffing its ability to offer interpretation.

The US code

Outside the titles Congress has enacted as positive law, the code is only prima facie evidence of the law, and the Statutes at Large govern where the two differ.[1] The Office of the Law Revision Counsel publishes it as a series of release points, each current through a named public law, and keeps reorganising it; a bill to enact title 41 as positive law was introduced in September 2025.[2] Which public law wrote a sentence is recorded in amendment notes, in prose. When a change took effect is often in a separate effective-date note, and where Congress said nothing the default rule is that a law takes effect on the day it is enacted.[3]

The definition of a small business debtor in 11 USC § 1182(1) shows how far apart those answers can be. It was created in 2019 with the existing small business debt limit.[4] The CARES Act raised the limit to $7.5 million in March 2020 as a temporary measure, later extended to March 2022.[5],[6] That increase lapsed on 27 March 2022, and on 21 June 2022 Congress restored it for two more years, for cases commenced on or after 27 March 2020 and still pending, which reached back over the gap.[7] The higher limit expired again in June 2024, and after the triennial adjustment in April 2025 it stands at $3,424,000.[8],[9] For a case filed in May 2022, the release point printed at the time gives the lower limit, and only a later Act changes the answer. A history that is useful to a lawyer has to carry the text, the date each change took force, and the scope of any law that reaches back.

A study from the Technical University of Munich this year found two failures in models answering questions on German statutes: they apply rules that were superseded after their training cutoff, and they prefer the newer provision even when an older one governs the facts. One model answered 24% of post-cutoff questions correctly on its own and 87% when the relevant statutory text was retrieved for it, and the authors conclude that temporal validity has to be treated as a hard constraint.[10] Other recent work trains search agents to respect the date a question is about, with large gains in consistency.[11]

Asking a model to produce the old text does not solve this. When the same Munich group had a model apply German amending laws to earlier versions, the output looked 93–99% similar to the official text, but only half of single amendments and a fifth of chains of amendments matched exactly, and experts found legally significant errors in the near misses.[12] The history has to be checkable.

For each pair of release points from 2017 onward, we took the public laws enacted in between, carried out their amending instructions on the older text in date order, and compared the result with the newer version. Of 365 changes across the nine titles, 361 reproduced the next release point exactly. The other four are shown with a label saying how far they could be confirmed. Each change then carries the law and the date it took effect: 261 took effect on enactment by default, 72 by an effective-date note and 29 by a date in the amendment itself. One depends on an agency determination that may never come, and we leave it out of the text rather than guess.

With that record, the reader can answer the questions lawyers ask. You pick a date and get the text in force on it, with the words that read differently today marked. Each phrase is coloured by the Act that wrote it. A change to a defined term lists every other provision that uses it, and you can follow a section to see what has changed since your last visit.

Limits

It does not yet show a later law’s reach back on the earlier dates it covers, so for a case filed in the 2022 gap it shows the lower limit without warning that the June 2022 Act changed the answer.

Effective-date notes are read by pattern, and unusual wording falls back to the date of enactment.

Each change links to the law’s own words, and for anything that matters the original should be read.

We're also still thinking about the right form factor this should take.

References

  1. 1 USC § 204(a) <www.law.cornell.edu/uscode/text/1/204>
  2. Office of the Law Revision Counsel, ‘Positive Law Codification: Title 41’ (H.R. 5185, 119th Congress, introduced 8 September 2025) <uscode.house.gov/codification/t41/index.html>
  3. Gozlon-Peretz v United States 498 US 395, 404 (1991) <www.law.cornell.edu/supremecourt/text/498/395>
  4. Small Business Reorganization Act of 2019, Pub L 116-54 <www.govinfo.gov/content/pkg/PLAW-116publ54/html/PLAW-116publ54.htm>
  5. Coronavirus Aid, Relief, and Economic Security Act, Pub L 116-136, s 1113 <www.govinfo.gov/content/pkg/PLAW-116publ136/html/PLAW-116publ136.htm>
  6. COVID-19 Bankruptcy Relief Extension Act of 2021, Pub L 117-5 <www.govinfo.gov/content/pkg/PLAW-117publ5/html/PLAW-117publ5.htm>
  7. Bankruptcy Threshold Adjustment and Technical Corrections Act, Pub L 117-151, s 2(h)–(i) <www.govinfo.gov/content/pkg/PLAW-117publ151/html/PLAW-117publ151.htm>
  8. Judicial Conference of the United States, ‘Adjustment of Certain Dollar Amounts Applicable to Bankruptcy Cases’ 90 Fed Reg 8941 (4 February 2025) <www.govinfo.gov/content/pkg/FR-2025-02-04/html/2025-02207.htm>
  9. US Trustee Program, ‘Subchapter V’ (US Department of Justice) <www.justice.gov/ust/subchapter-v>
  10. Max Prior, Andreas Schultz and Matthias Grabmair, ‘Asking For An Old Friend: Diagnosing and Mitigating Temporal Failure Modes in LLM-based Statutory Question Answering’ (arXiv:2605.23497, 22 May 2026) <arxiv.org/abs/2605.23497>
  11. Wei Fan and others, ‘Can LLMs Time Travel? Enhancing Temporal Consistency in Legal Agentic Search through Reinforcement Learning’ (arXiv:2605.25920, revised 19 September 2026) <arxiv.org/abs/2605.25920>
  12. Max Prior, Adrian Hof, Niklas Wais and Matthias Grabmair, ‘Risks and Limits of Automatic Consolidation of Statutes’ in Proceedings of the Natural Legal Language Processing Workshop 2025 (ACL, November 2025) 396 <aclanthology.org/2025.nllp-1.29/>
联系我们 contact @ memedata.com