Skip to content

Backdate Colorado TANF parameters to 1997#7507

Draft
hua7450 wants to merge 2 commits intoPolicyEngine:mainfrom
hua7450:backdate-co-tanf
Draft

Backdate Colorado TANF parameters to 1997#7507
hua7450 wants to merge 2 commits intoPolicyEngine:mainfrom
hua7450:backdate-co-tanf

Conversation

@hua7450
Copy link
Collaborator

@hua7450 hua7450 commented Feb 27, 2026

Summary

Backdates Colorado TANF (Colorado Works) parameters to 2013 and improves code quality.
Closes #7506

Changes

  • Parameters backdated: 9 files, ~71 date entries added (2013-07-01 values from 9 CCR 2503-6)
  • New values added: 2024-07-01 grant standard additional child ($86)
  • Bug fix: Grant standard additional child corrected from $82 to $86 (confirmed by 2 CCR versions + Cornell Law)
  • Reference fixes: All 9 parameter files -- added specific CCR section numbers, descriptive titles
  • Formula improvements: Removed redundant min_() in co_tanf.py, added defined_for guard
  • Tests added: 104 tests across 10 files (historical eras, boundary conditions, edge cases)

Regulatory Sources

Review Summary

  • Review: 1 round, COMMENT severity (no request-changes issues from this PR)
  • PDF audit: 147 parameter values verified against source PDFs, 0 mismatches
  • Items verified correct: Grant/need standard tables (all 3 eras), additional child amounts, pregnancy allowance, earned income disregards, child support handling, income eligibility operator, benefit formula, entity assignments, naming conventions, no hardcoded values

Needs Human Decision

  • SSI in unearned income list: Regulations exempt SSI recipients (Sections 3.604.2.C.3.a, 3.605.3.D.27). This is pre-existing and should be addressed in a separate PR.
  • 2013 grant standard values: 34 values sourced from an older CCR PDF (~2015 version) that may not be the exact 2013 regulation. Values are consistent with secondary sources but no 2013-era CCR PDF was found.
  • 100% first certification period earned income disregard (eff. 6/1/2023): Not modeled due to PolicyEngine's single-period architecture.

Test Plan

  • All existing tests pass (104 tests)
  • New historical tests pass (2014 era)
  • New 2024 era tests pass
  • Edge case tests pass
  • Microsimulation check (if applicable)

hua7450 and others added 2 commits February 26, 2026 23:05
Add changelog fragment for backdating Colorado TANF parameters to 1997.
Documentation and parallel development will follow.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
PolicyEngine#7506)

- Backdate 9 parameter files to 2013-07-01 with values from 9 CCR 2503-6
- Add missing 2024-07-01 grant standard additional child ($86)
- Fix all reference titles with specific CCR section numbers
- Remove redundant min_() in co_tanf.py
- Add defined_for = StateCode.CO to co_tanf_countable_gross_earned_income.py
- Add 42 new test cases (historical + boundary + edge cases)
- Backdate unearned.yaml start date from 2021 to 2010

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 (33a7306).
⚠️ Report is 15 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main     #7507      +/-   ##
===========================================
+ Coverage   97.82%   100.00%   +2.17%     
===========================================
  Files           3         2       -1     
  Lines          92        21      -71     
  Branches        2         0       -2     
===========================================
- Hits           90        21      -69     
+ 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 Colorado TANF parameters to 1997

1 participant