Skip to content

Conversation

@hua7450
Copy link
Collaborator

@hua7450 hua7450 commented Jan 22, 2026

Summary

Fixes #7225

Backdates North Carolina TANF parameters from 2024 to 1997 and reorganizes the parameter folder structure.

Justification for Backdating

North Carolina's Work First (TANF) benefit amounts have remained unchanged since 1996:

"North Carolina's Work First program benefit has stayed the same since 1996" — NC Budget & Tax Center

This is also confirmed by NCCP's TANF Profile, which notes NC ranks 48th in benefit amounts nationally.

Changes

Parameters Backdated to 1997-01-01

  • payment_percentage: 50%
  • age_limit: 18 years
  • average_reduced_need_standard_threshold: $25
  • earned income sources
  • unearned income sources
  • additional_person: $50
  • need_standard/main table (sizes 1-14)

Folder Reorganization

File Old Location New Location
payment_percentage.yaml need_standard/ benefit/
age_limit.yaml need_standard/ eligibility/
average_reduced_need_standard_threshold.yaml need_standard/ eligibility/

New Parameter

  • need_standard/max_table_size.yaml (value: 14)

Code Changes

  • Updated variable files to reference new parameter paths
  • Simplified nc_tanf_need_standard.py using clip() instead of manual min/max logic
  • Minor code style cleanup

Test Plan

  • Added tests for 2017 and 2018 periods to verify backdating
  • Existing tests pass

🤖 Generated with Claude Code

@codecov
Copy link

codecov bot commented Jan 22, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (d08239b) to head (767ec5f).
⚠️ Report is 10 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #7227   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         5    +4     
  Lines           10        69   +59     
=========================================
+ Hits            10        69   +59     
Flag Coverage Δ
unittests 100.00% <100.00%> (ø)

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.

@hua7450 hua7450 marked this pull request as ready for review January 26, 2026 23:47
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.

North Carolina TANF backdating

1 participant