What happens when benefit rules change after the fact?
Paper: Rewriting the Past: How an AI-Assisted Benefits Model Handles Dated Rules
Preprint. It has not yet been peer reviewed.
The short version
Benefit rules change on set dates, but hearings, corrections and reviews ask about earlier months, so software that encodes the rules must still answer correctly for the past. I studied every change made from January to mid-November 2026 to the dated SNAP rules in an open-source benefits model, where most changes were made with an AI coding tool. Changing the rules for months that had already passed was routine. In a controlled test, an AI coding agent did not damage any earlier month, but code that ignored the dated rules did give wrong answers.
What I found
- From January to mid-November 2026, 89 of the 101 changes to dated SNAP values in the open-source benefits model named an AI tool as co-author.
- 72 of those 101 changes altered a period that had already taken effect.
- 616 of 736 new periods were entered after they took effect, a median of 157 days late.
- 29 of 33 fixes repaired entries written earlier the same year.
- 2 changes altered entries that were correct: one by accident, and one by trusting an official table that was wrong.
- In 20 runs, an AI coding agent putting 10 real rule changes into the model damaged no result for earlier months and made both required corrections to the past. Its 3 errors were about fitting the existing code, and 2 of them were caught only by the maintainers' tests.
- One formula reads the rules at a fixed date instead of the date asked about, which denied an exemption to adults aged 51 to 54 in months when the law granted it.
Why it matters
Questions about past months come up when someone asks for a hearing, when benefits that were wrongly withheld are restored, or when an old overpayment is collected. If the software has the wrong rule for that month, the answer for that month can be wrong even though nothing looks wrong today. In this study the risk came from late entries, repeated corrections and code that ignores the dated rules, not from an AI tool overwriting history. The model studied is an independent calculator, not a system that state agencies use to decide benefits.
How the study was done
I compared every dated SNAP value in the model before and after each of the year's 101 changes, and recorded every change to an earlier month. I then asked an AI coding agent to put 10 real rule changes back into the model from short notices, 20 runs in all, and checked every earlier month. The study covers one codebase, one program and one year.
How to cite
Thapa, S. J. (2026). Rewriting the Past: How an AI-Assisted Benefits Model Handles Dated Rules [Preprint]. Zenodo. https://doi.org/10.5281/zenodo.24406653
This site's own accuracy testing is described on the About page.