Cap all state TANF benefit formulas to prevent negative income inflation#7434
Merged
MaxGhenis merged 1 commit intoPolicyEngine:mainfrom Feb 19, 2026
Merged
Conversation
…ome from inflating benefits Fix NC TANF household size bare .sum() bug and add min_() caps to 38 state programs (AL, AK, AR, AZ, CA, CO, CT, DC, FL, HI, IA, IL, IN, KS, LA, MA, MD, MI, MN, MO, MS, MT, NC, ND, NE, NH, NJ, NM, NV, NY, OH, OK, OR, PA, RI, SC, SD, TX, UT, VT, WV, WY). Previously, negative countable income could produce benefits exceeding $1M per household, inflating total TANF microsimulation from ~$9B target to $17.9T. With this fix, max benefit per household is $25,084 (CA CalWORKs) and total TANF is ~$32B pre-takeup. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
hua7450
added a commit
to hua7450/policyengine-us
that referenced
this pull request
Feb 20, 2026
The upstream merge (d34300d) accidentally dropped the Work Expense Reimbursement (WER) logic while picking up the min_ cap from PolicyEngine#7434. This restores the $50/month WER bonus for pre-2020 families with earned income and keeps the negative-income cap. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
nc_tanf_household_sizebare.sum()bug (summed across entire population instead of within SPM unit)min_(benefit, payment_standard)caps to 38 state TANF programs to prevent negative countable income from inflating benefits above the maximum paymentImpact
States fixed
Standard naming (28): AL, AZ, CA, CO, DC, HI, IL, IN, KS, MO, MS, MT, NC, ND, NV, NY, OK, OR, PA, SC, SD, TX, VT, WV, WY
Non-standard naming (13): AK (ATAP), AR (TEA), CT (TFA), FL (TCA), IA (FIP), LA (FITAP), MA (TAFDC), MD (TCA), MI (FIP), MN (MFIP), NE (ADC), NH (FANF), NJ (WFNJ), NM (Works), OH (OWF), RI (Works), UT (FEP), VT (Reach Up), WV (Works), WY (POWER)
Already safe (no fix needed): GA, WA, VA, DE, ME, ID, KY, TN, WI
Test plan
🤖 Generated with Claude Code