Skip to content

Backdate Montana TANF parameters#7503

Draft
hua7450 wants to merge 4 commits intoPolicyEngine:mainfrom
hua7450:mt-tanf-backdate
Draft

Backdate Montana TANF parameters#7503
hua7450 wants to merge 4 commits intoPolicyEngine:mainfrom
hua7450:mt-tanf-backdate

Conversation

@hua7450
Copy link
Collaborator

@hua7450 hua7450 commented Feb 27, 2026

Summary

Backdates Montana TANF parameters to 2016+, fixes FPL year pinning bug, and improves code quality.
Closes #7502

Changes

  • Parameters backdated: payment_fpg_rate.yaml -- added 2017-07-01 entry (0.35)
  • New parameters: benefit_fpg_year.yaml and payment_fpg_year.yaml -- pins benefit/payment standards to specific FPL year instead of using current-year FPL
  • Formula fixes: mt_tanf_benefit_standard.py and mt_tanf_payment_standard.py rewritten to use pinned FPL year from new parameters. Fixes incorrect dollar amounts when current-year FPL differs from pinned year (~$24-28/mo overstatement for family of 3)
  • Bug fix: Benefit standard eligibility test changed from <= to strict < per State Plan Developer meeting agenda 2021-08-14 #25 p.10
  • Reference fixes: ARM 37.78.402 for unearned income (was 37.78.416), added ARM 37.78.420 citations
  • Tests: 40 new test cases (10 historical/boundary + 30 edge cases), 158 total passing

Regulatory Sources

Review Summary

  • Review-fix loop: 1 round, 0 critical issues remaining
  • 80 dollar amounts verified against TANF 001 tables (4 standards x 20 family sizes)
  • 10 core parameters confirmed correct against State Plan and ARM
  • Validation checkpoint: PASS (no hardcoded values, no year-check conditionals, clean parameter-driven formulas)

Should Address (Future PRs)

  • Interest income blanket inclusion (ARM says interest on countable resources should be excluded)
  • Child support disregard for obligated amounts
  • 60-month time limit implementation
  • Pre-2015 FPL data backfill (needed for 2011/2002 FPL year pinning to work historically)

Test Plan

  • All 158 existing tests pass
  • 10 new historical/boundary tests pass
  • 30 new edge case tests pass
  • Microsimulation check (if applicable)

hua7450 and others added 4 commits February 26, 2026 20:21
Starting backdating of Montana TANF parameters to program inception.
Documentation and parallel development will follow.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Backdate payment_fpg_rate to 2017-07-01 (0.35, previously only had 2023 entry)
- Create benefit_fpg_year and payment_fpg_year parameters for FPL year pinning
- Fix mt_tanf_benefit_standard and mt_tanf_payment_standard to use pinned FPL years
- Fix reference citations (ARM 37.78.402 for unearned income, add ARM 37.78.420)
- Add 10 historical/boundary tests and 30 edge case tests (158 total pass)

Ref PolicyEngine#7502

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
State Plan #25 p.10: "if income equals or exceeds either standard,
the family is not eligible." Changed benefit_standard_eligible from
<= to strict < to match. Payment standard already used strict <.

Ref PolicyEngine#7502

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@codecov
Copy link

codecov bot commented Feb 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (55a0045) to head (d841c17).
⚠️ Report is 15 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main     #7503      +/-   ##
===========================================
+ Coverage   97.82%   100.00%   +2.17%     
===========================================
  Files           3         4       +1     
  Lines          92        71      -21     
  Branches        2         0       -2     
===========================================
- Hits           90        71      -19     
+ Misses          1         0       -1     
+ Partials        1         0       -1     
Flag Coverage Δ
unittests 100.00% <100.00%> (+2.17%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Backdate Montana TANF parameters to program inception

1 participant