Fix NY ESCC post-2024 to allow ITIN holders in baseline#7323
Fix NY ESCC post-2024 to allow ITIN holders in baseline#7323DTrim99 merged 1 commit intoPolicyEngine:mainfrom
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7323 +/- ##
============================================
+ Coverage 72.11% 100.00% +27.88%
============================================
Files 3794 3 -3791
Lines 54662 54 -54608
Branches 275 1 -274
============================================
- Hits 39418 54 -39364
+ Misses 15228 0 -15228
+ Partials 16 0 -16
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:
|
|
Legal code from New York: (D) For the purposes of this paragraph, a qualifying child shall be an |
The NY enhanced Empire State Child Credit (2025-2028) already allows children with ITINs to qualify under the statute. PR PolicyEngine#7287 incorrectly created a structural reform (S.9077) to add this functionality starting in 2027, when it should have been in the baseline all along. This PR: - Reverts the S.9077 reform files added in PR PolicyEngine#7287 - Creates ny_escc_qualifying_child variable for NY-specific eligibility - Updates ny_ctc_post_2024_eligible.py to use the new variable - Updates ny_ctc_post_2024_base.py to use the new variable - Updates tests to verify ITIN eligibility in baseline The key issue was that the baseline code tied NY ESCC eligibility to ctc_qualifying_child, which requires SSN per federal CTC rules (IRC 24(h)(7)). But NY law decouples from this requirement for 2025-2028. Closes PolicyEngine#7322 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
b993703 to
901599b
Compare
Summary
This PR fixes a mistake in PR #7287 which incorrectly created a structural reform (S.9077) to add ITIN eligibility to the NY Empire State Child Credit starting in 2027.
The actual NY statute for the enhanced ESCC (2025-2028) already allows children with ITINs to qualify - this should have been in the baseline implementation, not a future reform.
Problem with PR #7287
PR #7287 made two errors:
ny_ctc_post_2024_eligible.pyandny_ctc_post_2024_base.pyusedctc_qualifying_childwhich ties to federal SSN requirements (IRC 24(h)(7)), incorrectly excluding ITIN childrenWhat This PR Does
Reverts S.9077 reform files - Removes the incorrectly created structural reform:
policyengine_us/parameters/gov/contrib/states/ny/s9077/policyengine_us/reforms/states/ny/s9077/policyengine_us/tests/policy/contrib/states/ny/s9077/Fixes baseline NY ESCC logic - Updates eligibility to use
has_itin(which covers both SSN and ITIN holders) instead ofctc_qualifying_child(SSN only):ny_ctc_post_2024_eligible.pyny_ctc_post_2024_base.pyUpdates tests - Adds tests verifying ITIN children qualify in the baseline (not just with a reform)
Code Change
Before (broken):
After (fixed):
Test Plan
Closes #7322
🤖 Generated with Claude Code