Backdate TANF non-cash BBCE parameters to FY2016 and fix CO bug#7852
Merged
hua7450 merged 7 commits intoPolicyEngine:mainfrom Mar 25, 2026
Merged
Backdate TANF non-cash BBCE parameters to FY2016 and fix CO bug#7852hua7450 merged 7 commits intoPolicyEngine:mainfrom
hua7450 merged 7 commits intoPolicyEngine:mainfrom
Conversation
Pushes 5 TANF non-cash (BBCE) parameter start dates from 2020-07-01 back to 2015-10-01, using USDA ERS SNAP Policy Database (monthly state-by-state data 1996-2020) and SNAP Screener data for net income test values. Adds 8 mid-period state changes: - IL Jan 2016: gross income 130% → 165% - IN Jan 2018: adopted BBCE (130%, $5K asset, net test) - CO Jun 2018: gross income 130% → 200% - WV Jul 2018: gross income 130% → 200%, requires-all → any - MS Jul 2019: dropped BBCE - MI Dec 2019: asset limit $5K → $15K - LA Apr 2020: adopted BBCE (130%, no asset limit, net test) - KY May 2020: gross income 130% → 200% Fixes CO bug: was marked as non-BBCE (-.inf) at 2020-07-01 but ERS data shows CO had BBCE with 130% since at least Oct 2015, increasing to 200% in Jun 2018. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7852 +/- ##
============================================
- Coverage 100.00% 71.46% -28.54%
============================================
Files 5 4099 +4094
Lines 91 59132 +59041
Branches 3 288 +285
============================================
+ Hits 91 42257 +42166
- Misses 0 16869 +16869
- Partials 0 6 +6
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:
|
…adata fields - Add MS to asset_limit (.inf during BBCE), hheod, and non_hheod (false) - Remove redundant CO 2022-11-30 entries, keep regulatory ref as comment - Remove outdated "May have changed" comments for CO - Fix broken asset_limit reference URL (.net CDN → FNS landing page) - Add missing unit/period metadata to hheod, non_hheod, requires_all_for_hheod - Add missing period to asset_limit metadata Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…AK entry
- Fix VA: was incorrectly marked BBCE from 2015; ERS confirms non-BBCE through
Sep 2020, adopted around Jul 2021. Updated all 4 files.
- Fix trailing whitespace in requires_all_for_hheod.yaml
- Remove redundant ID entry with non-standard date (2024-07-02)
- Add ERS SNAP Policy Database reference to 4 files missing it
- Fix comment typo in gross.yaml ("asset limit" → "gross income limit")
- Add AK asset_limit entry for 2025-07-01 to match gross.yaml
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…ative Two bugs fixed: 1. mt_regular_income_tax: only subtract LTCG from taxable income when net capital gains (STCG + LTCG) are positive. When STCG losses exceed LTCG, all income should be taxed at ordinary rates. 2. mt_capital_gains_tax_joint: convert from Person to TaxUnit entity to fix mismatch where LTCG and taxable income are on different persons in joint filing, causing both to get $0 CG tax. Closes PolicyEngine#7859 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Integration tests: - Positive net CG with STCG losses: confirms preferential rates still apply - LTCG on head, wages on spouse: confirms TaxUnit aggregation works cross-person - Both spouses with LTCG: confirms combined LTCG aggregation Unit tests: - Negative net CG: confirms $0 CG tax when STCG losses exceed LTCG - Positive net CG with STCG losses: confirms full LTCG gets preferential rates Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Add 4 gross income tests: CO BBCE at 200%, CO above limit, MS non-BBCE, IN BBCE at 130% — covering the CO and MS bug fixes - Add 3 asset tests: MS non-BBCE fails, IN below/above $5K limit - Improve ERS reference titles with specific column names across all 5 files Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
PavelMakarchuk
approved these changes
Mar 25, 2026
These MT changes were accidentally merged into this branch and belong in a separate PR. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Backdates 5 TANF non-cash (BBCE) parameter files from 2020-07-01 to 2015-10-01, enabling SNAP BBCE categorical eligibility simulations for years before 2020. Also fixes bugs where Colorado was incorrectly marked as non-BBCE and Mississippi was missing from cross-file entries during its BBCE period.
Data Sources
Parameters Updated (5 files)
income_limit/gross.yamlasset_limit.yamlperiodmetadatarequires_all_for_hheod.yamlunit/periodmetadatanet_applies/hheod.yamlunit/periodmetadatanet_applies/non_hheod.yamlunit/periodmetadataMid-Period State Changes (from ERS database)
Bug Fixes
-.inf(non-BBCE) at 2020-07-01 in bothgross.yamlandasset_limit.yaml. ERS data shows CO had BBCE with 130% FPL gross income limit and no asset test since at least October 2015, increasing to 200% FPL in June 2018.asset_limit.yaml,hheod.yaml, andnon_hheod.yamlduring its BBCE period (Oct 2015 – Jul 2019). ERS data shows MS had BBCE with no asset limit and no net income test. Added consistent entries across all files.Cleanup
2022-11-30entries (same values as earlier dates, kept regulatory ref as comment)asset_limit.yamlreference URL (dead.netCDN → FNS landing page)unitandperiodmetadata fields across 4 filesTest plan
🤖 Generated with Claude Code