-
Notifications
You must be signed in to change notification settings - Fork 201
Implement North Dakota TANF program #7074
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Starting implementation of North Dakota TANF program. Documentation and parallel development will follow. Related to PolicyEngine#7073
Implements the North Dakota Department of Health and Human Services TANF program including: - Income eligibility (50% FPL standard of need) - Earned income deductions (Standard Employment Expense, TLP) - Resource limits ($3k/1 person, $6k/2+) - Benefit calculation (standard of need - countable income) - Comprehensive test coverage (75 tests) Closes PolicyEngine#7073 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7074 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 3 9 +6
Lines 39 127 +88
=========================================
+ Hits 39 127 +88
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:
|
- Rename nd_tanf_resource_eligible.py to nd_tanf_resources_eligible.py to match the class name nd_tanf_resources_eligible - Remove orphaned parameters not used by any variable: - housing_supplement.yaml ($50) - out_of_home_allowance.yaml ($45) - self_employment/rate.yaml (25%) - Update resource limit references from NCCP (nonprofit source) to official North Dakota Policy Manual 400-19-55-05-05 Asset Limits - Add nd_tanf_time_limited_percentage_deduction.yaml unit tests (7 tests) covering zero income, low income, SEE crossover, and multiple earners All 87 ND TANF tests pass. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Update standard employment expense and time limited percentage parameter references to use Policy Manual 400-19-105-25 Employment Disregards, which explicitly defines both deductions. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
PolicyEngine cannot simulate lifetime limits due to single-period architecture, so this parameter is not used by any variable. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Document that TLP is actually a declining 12-month disregard cycle (50%/35%/25%/0%) and that we use 50% as a simplification since PolicyEngine cannot track months on TANF across periods. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
The $10 minimum benefit threshold is not modeled. Update nd_tanf variable to use simple benefit formula and update tests accordingly. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
PR Review - North Dakota TANFOverall Assessment: ✅ APPROVEThis is an excellent, well-documented implementation of North Dakota's TANF program that follows PolicyEngine patterns correctly. 🟢 StrengthsCode Patterns - All Checks Pass:
Parameters - Complete and Well-Documented:
Test Coverage - Excellent:
Documentation - Exceptional:
CI Status:
🟡 Minor Observations (Non-Blocking)
Validation Summary
Regulatory CoverageBased on PR description and code review:
Documented as Out of Scope:
Recommendation: Ready to merge ✅ This is a high-quality implementation with excellent documentation, comprehensive test coverage, and proper PolicyEngine patterns. 🤖 Generated with Claude Code |
Summary
Implements North Dakota's Temporary Assistance for Needy Families (TANF) program.
Closes #7073
Regulatory Authority
Income Eligibility Tests
Net Income Test
Countable income must be less than the Standard of Need.
Source: Policy Manual 400-19-110-15
Income Deductions & Exemptions
1. Standard Employment Expense Allowance
Formula: Greater of 27% of gross earned income OR $180
Applied first to gross earned income before other deductions.
Source: Policy Manual 400-19-105-25
2. Time Limited Percentage (TLP) Disregard
Declining Rate by Calendar Month:
Applied to earnings after the Standard Employment Expense deduction.
Source: Policy Manual 400-19-105-25
Income Standards
Standard of Need (Effective 2025-10-01)
North Dakota uses a 2D lookup table based on the number of caretakers (0, 1, or 2) and children (0-10) in the household.
Historical Values: Parameters include values effective 2015-10-01, 2023-08-01, 2024-10-01, and 2025-10-01.
Sources:
Resource Limits
Source: Policy Manual 400-19-55-05-05 Asset Limits
Benefit Calculation
Formula
Where
TLP_Rate(month)= 50% for months 1-6, 35% for months 7-9, 25% for months 10-12.Source: Policy Manual 400-19-110-20 Benefit Calculation
Example Calculation
Family of 3 (1 caretaker, 2 children) with $1,500/month earned income in January:
Out of Scope
The following are not modeled in this implementation:
Benefit Rules
Income Deductions
Special Allowances
Time Limits
Files Added
Parameters (7 files)
Variables (9 files)
Tests (8 files, 82 tests)
Test Coverage
🤖 Generated with Claude Code