Apply CT C4K activity test to tax-unit head/spouse only#8067
Merged
MaxGhenis merged 1 commit intoPolicyEngine:mainfrom Apr 18, 2026
Merged
Conversation
Follow-up to PolicyEngine#7778. Connecticut Care 4 Kids (C4K) requires the applicant / caretaker to meet an activity test: working, self-employed, receiving TFA, or a teen parent in school (RCSA 17b-749-04). The initial implementation in PolicyEngine#7778 checked whether *any* SPM-unit member had employment or self-employment income, which incorrectly treated a working dependent (e.g., a teen with a summer job) as satisfying the test for the whole family. This filters the earnings check by `is_tax_unit_head_or_spouse` so only the applicant's / spouse's activity counts. TFA eligibility and the teen-parent-in-school branches already reference the correct person, so they are left unchanged. Regression tests: * Case 7: working teen dependent (head has only pension income) now returns false. * Case 8: self-employed teen dependent also excluded. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8067 +/- ##
==========================================
Coverage 100.00% 100.00%
==========================================
Files 18 1 -17
Lines 353 17 -336
Branches 4 0 -4
==========================================
- Hits 353 17 -336
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:
|
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
Follow-up to #7778. The Connecticut Care 4 Kids activity test (RCSA 17b-749-04) requires the applicant or caretaker to be employed, self-employed, receiving TFA, or a teen parent in school. The initial implementation checked whether any SPM-unit member had employment or self-employment income, so a working dependent (for example, a teen with a part-time or summer job) would make the whole family appear to meet the activity test.
Gating the earnings check on
is_tax_unit_head_or_spouserestricts the activity test to the applicant/spouse, matching the statute. TFA eligibility and the teen-parent-in-school branches already reference the correct person, so they are unchanged.Regulatory authority
Regression tests
Added two cases to
ct_c4k_meets_activity_test.yaml:false.false.Both tests fail on
mainand pass after this change. All 135 CT C4K tests and all 456 CT-state tests pass.Test plan