-
Notifications
You must be signed in to change notification settings - Fork 201
Implement Alabama Family Assistance program #7151
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
Implement Alabama Family Assistance program #7151
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7151 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 2 6 +4
Lines 22 77 +55
=========================================
+ Hits 22 77 +55
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:
|
…into 4012-alabama-family-assistance-fa-tanf-program
PR Review - Alabama Family Assistance (TANF) Implementation🔴 Critical Issues (Must Fix Before Merge)None identified. The implementation correctly follows Alabama DHR regulations. 🟡 Should Address1. Missing Family Size Cap Boundary Tests
2. Missing Historical Parameter Tests (Pre-October 2023)
3. Missing Unit Test File for
|
| Component | Verification |
|---|---|
| 20% work expense deduction | ✓ Matches Section 3215.B |
| Child care expense deduction | ✓ Actual costs, no cap |
| Payment standards (sizes 1-16) | ✓ All 16 values present |
| 60% benefit increase (Oct 2023) | ✓ Mathematically verified ($165→$264 = 1.6×) |
| Family size cap at 16 | ✓ Correctly parameterized |
| No asset test | ✓ Correctly omitted per Alabama rules |
| Single net income test | ✓ Countable ≤ payment standard |
| Benefit formula | ✓ max(payment_standard - countable, 0) |
| No hard-coded values | ✓ All values from parameters |
| Variable naming | ✓ All use al_tanf_* prefix |
| Pattern usage | ✓ Correct adds, add(), max_(), min_() |
| Federal eligibility reuse | ✓ Uses is_demographic_tanf_eligible |
Validation Summary
| Check | Result |
|---|---|
| Regulatory Accuracy | ✅ Implementation matches DHR regulations |
| Reference Quality | ✅ All references present with page anchors |
| Code Patterns | ✅ All patterns correct |
| Test Coverage | |
| CI Status | ✅ All checks passing |
60% Benefit Increase Verification
The October 2023 benefit increase was mathematically verified:
| Size | Pre-Oct 2023 | Post-Oct 2023 | Ratio |
|---|---|---|---|
| 1 | $165 | $264 | 1.600 |
| 2 | $190 | $304 | 1.600 |
| 3 | $215 | $344 | 1.600 |
| 16 | $605 | $968 | 1.600 |
All 16 values show exactly 60% increase ✓
Documented Simplifications (Acknowledged)
The PR correctly documents these as NOT modeled:
- Self-employment 40% operating expense deduction
- $10 minimum benefit rule
- 100% earnings disregard for new employment (12 months)
- Full-time student earnings disregard
- Income deeming rules
- Incapacitated adult care expense deduction
These are appropriate simplifications.
Test Coverage: 55 Tests Passing
| File | Tests |
|---|---|
| al_tanf.yaml | 12 |
| al_tanf_countable_earned_income.yaml | 9 |
| al_tanf_eligible.yaml | 11 |
| al_tanf_income_eligible.yaml | 9 |
| al_tanf_payment_standard.yaml | 5 |
| integration.yaml | 9 |
Manual Calculation Verification
Scenario 3 ($400 earnings, family of 3):
- Gross earned: $400
- Work expense (20%): $400 × 0.2 = $80
- Countable earned: $400 - $80 = $320
- Payment standard (size 3): $344
- Benefit: $344 - $320 = $24 ✓
Scenario 6 ($600 earnings - $200 childcare, family of 5):
- Gross earned: $600
- Work expense: $600 × 0.2 = $120
- After work expense: $480
- After childcare: $480 - $200 = $280
- Payment standard (size 5): $440
- Benefit: $440 - $280 = $160 ✓
Next Steps
To auto-fix issues: /fix-pr 7151
Or address manually:
- Add tests for sizes 16 and 17 (cap boundary)
- Add tests with
period: 2023-01for pre-increase values - Add simple unit test for
al_tanf_countable_income
🤖 Generated with Claude Code - Complete Review Plugin
Summary
Implements Alabama Family Assistance (TANF) program.
Fixes #4012
Alabama TANF Income Rules
Regulatory Authority
1. INCOME ELIGIBILITY TESTS
Income Test
Source: Alabama DHR Family Assistance Eligibility Requirements
2. INCOME DEDUCTIONS & EXEMPTIONS (IMPLEMENTED)
A. Work-Related Expense Deduction
Source: Alabama DHR Public Assistance Payment Manual - Section 3215.B Work Expenses
B. Child Care Expense Deduction
Source: Alabama DHR Public Assistance Payment Manual - Section 3215.B Dependent Care Expenses
3. INCOME STANDARDS BY FAMILY SIZE
Note: 60% increase effective October 2023.
Sources:
4. BENEFIT CALCULATION
Formula:
Where Countable Income =
And Countable Earned Income =
Calculation Steps:
Family Size Cap
Source: Alabama 2024 TANF State Plan - Payment Standards
5. NOT IMPLEMENTED IN THIS PR
The following Alabama TANF rules are not implemented in this PR:
🤖 Generated with Claude Code