Backfill NY TANF parameters to 1997 with pre-2022 and post-2022 reform rules#7178
Merged
PavelMakarchuk merged 11 commits intoPolicyEngine:mainfrom Feb 2, 2026
Merged
Conversation
Fixes PolicyEngine#7177 - Resource limits: backfill $2,000/$3,000 to 1997, add $2,500/$3,750 at 2022-10-01 - Work expense disregard: backfill $90 to 1997, fix $150 effective date to 2022-10-01 - Income sources: backfill to 1997, fix references from SNAP to TANF regulations Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7178 +/- ##
==========================================
Coverage 100.00% 100.00%
==========================================
Files 1 8 +7
Lines 10 117 +107
Branches 0 1 +1
==========================================
+ Hits 10 117 +107
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
- Descriptions: Use full program name "Temporary Assistance for Needy Families" - Add missing period field to metadata - Add missing label field to income source files - Reference titles: Include section numbers Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Use employment_income_before_lsr and self_employment_income_before_lsr instead of post-LSR variables to avoid circular dependency issues. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
…into issue-7177-ny-tanf-historical-backfill
…into issue-7177-ny-tanf-historical-backfill
PavelMakarchuk
approved these changes
Feb 2, 2026
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
Fixes #7177
Fixes #6993
Implements complete NY TANF modeling with both pre-October 2022 and post-October 2022 reform rules. The October 2022 reforms (22-ADM-11) significantly changed the earned income calculation methodology and eliminated the gross income test.
Regulatory Authority
Income Eligibility Tests
Gross Income Test (Pre-October 2022 Only)
Source: 22-ADM-11 Section IV(B)
Needs Test (Always Applies)
Countable income < Need Standard
Income Deductions & Exemptions
Earned Income Disregard (EID) Rate
Source: 97-ADM-23, 22-ADM-11 Section IV(B)
Work Expense Disregard
Source: 97-ADM-23, 22-ADM-11 Section IV(B)
Calculation Order Change (Critical)
max(gross - $90, 0) × (1 - 42%)max(gross × (1 - 50%) - $150, 0)Source: 22-ADM-11 Section II
Resource Limits
Source: 97-ADM-23, 22-ADM-11 Section IV(A)
Need Standard (Monthly)
Source: NY TANF State Plan 2024-2026
Benefit Calculation
Where:
Implementation Structure
Parameters
Variables
Key Implementation Details
reform_2022.in_effectparameter controls which rule set appliesny_tanf_income_eligibleuseswhere()for vectorized reform logicny_tanf_resources_eligiblechecks disability only when reform is in effectny_tanf_eligibleincludes immigration check via federalis_citizen_or_legal_immigrantny_tanf_countable_incomeusesaddsto aggregate income (no formula needed)Test Plan
🤖 Generated with Claude Code