Repository navigation
Conversation
The federal standard deduction and 17 state formulas read only whether the tax-unit head is claimed elsewhere, so a joint return where one spouse can be claimed was taxed differently depending on which spouse was labelled head. Each formula now applies its jurisdiction's rule for that case (either spouse, single filers only, per spouse, or only when every filer is claimed), using two new label-independent helpers. Adds swap-pair YAML cases and a Hypothesis property test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… barred The New Mexico, Maine and Hawaii renters gates counted filers who are not claimed elsewhere, so a tax unit with neither a head nor a spouse (252 in the default dataset) looked like one whose every filer was claimed. A new helper, every_filer_is_dependent_elsewhere, requires a claimed filer and no unclaimed one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ss EITC - Hawaii's dependent standard deduction uses earned income net of the deductible part of self-employment tax, as the N-11 worksheet does. - New Mexico's medical care credit needs a filer who is both 65 or older and not a dependent when a filer is a dependent elsewhere (NMSA 7-2-18.13). - The federal EITC without a qualifying child requires that no filer can be claimed as a dependent (IRC 32(c)(1)(A)(ii)(III), Publication 596), so Missouri's working family credit no longer reaches such a couple. - Hawaii's food/excise credit keeps minor children receiving public support (HRS 235-55.85(c)) on a joint return where one spouse can be claimed. - Comments label the readings the law does not settle, and the property test covers the EITC and the food/excise exemption amount. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… meaning - The federal and Oregon dependent worksheets use earned income net of the deductible part of self-employment tax, as Hawaii's now does. - Hawaii's food/excise minor-child count excludes children who can be claimed by another taxpayer and the filers themselves (Form N-311 line 3). - claimed_as_dependent_on_another_return documents what it stands for: a §151 deduction for the person is allowable to another taxpayer, so a person whose would-be claimer files only for a refund is not one (Publications 501 and 596); rules on actually being claimed read it too. - Hawaii's renters comment labels the mixed joint reading as an inference; the Hawaii dependent threshold cites HRS 235-2.4(a)(3) on its page. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A filer who can be claimed on another return is treated as having no dependents (IRC 152(b)(1); on a joint return either spouse counts) and has no personal exemption (IRC 151(d)(2)); one who is claimed gets no education credits (25A(g)(3)), student loan interest deduction (221(c)) or recovery rebate (6428(d)(2), 6428A(d)(2), 6428B(c)(2)). The model read none of these. Now the child tax credit and credit for other dependents, the under-13 child and dependent care qualifying person, exemptions_count and its RI, DE, OH, OR, WI, HI and NM readers, the recovery rebates, the education credits and the student loan interest deduction apply them symmetrically for joint returns. Georgia keeps its own counts; the HI, WI and Treasury exemption reforms follow the corrected count. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ho can be claimed as a dependent A return on which the filer, or on a joint return either spouse, can be claimed as a dependent has no dependents (IRC 152(b)(1)), and a childless filer who can be claimed gets no EITC (IRC 32(c)(1)(A)(ii)(III)). - Colorado: the ITIN and under-25 EITC routes pay the credit the filer "would have been allowed" (C.R.S. 39-22-123.5(2.5), (2.7)), so they keep the bar; the child tax credit (both regimes), the family affordability credit and the low-income child care credit count no child on such a return. - Connecticut: the 2017-2021 property tax credit's dependent route and the 2022 child tax rebate need a validly claimed dependent. - Illinois: the dependent exemption, the ITIN and age-18 EITC extension, the child tax credit and the 2022 rebate (P.A. 102-0700 sec. 212.1) apply the bar. - Indiana: each filer keeps the $1,000 exemption; dependent, additional, adoption exemptions and the nonpublic school deduction do not apply. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…operty test Section 212.1(a) (P.A. 102-0700) makes a taxpayer "who is claimed as a dependent on another individual's return for that year" ineligible. The exclusion is per taxpayer, so a joint return keeps the $100 joint amount while one spouse is not claimed; such a return claims no dependents (IRC 152(b)(1)), so it gets no per-dependent amount. The property test checks swap invariance and monotonicity of the changed Colorado, Connecticut, Illinois and Indiana outputs on Hypothesis and seeded couples, and that Indiana keeps $1,000 per filer on a claimable return. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The flag is a tax-unit array and ages are per person; one-return YAML cases broadcast, but a vectorized simulation with several returns does not. Adds a two-return YAML case. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…L CTC follows the IRC 152 qualifying child; CO low-income care credit keeps the IRC 21 disability exception - The Illinois and Indiana dependent exemption reforms replace the fixed formulas; at their defaults they now match the baseline for a claimable filer (Indiana's older-dependent count no longer moves a barred child into the personal portion). Default-reform cases cover both joint labellings. - Illinois child tax credit: 35 ILCS 5/244(d) gives "qualifying child" its IRC 152 meaning, and the 2026 draft instructions say "at least one qualifying child", so a claimable filer keeps the credit for their own qualifying child (the 2024-2025 instructions said "child that is your dependent"). - Colorado low-income child care credit: C.R.S. 39-22-119.5(3)(a)(III)-(IV) need a dependent under 13 for whom the federal IRC 21 credit would be allowed, so the child test is now the federal qualifying-person test, which keeps a child incapable of self-care (IRC 21(b)(1)(B)). - One IRC 32 reference per document; Colorado's child definition anchor is HB23-1112 page 4; the property test also checks the rebate eligibility. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Child and dependent care: childcare expenses do not count on a return with a claimable filer unless a child under 13 still qualifies (IRC 21(b)(2)(A)(ii)). - Tuition and fees deduction: not allowed to a filer who can be claimed (IRC 222(c)(3)), so the education credit bar no longer makes such a filer eligible. - Recovery rebates: the Armed Forces exception waives the identification rule only, not the exclusion of a spouse who is another taxpayer's dependent. - Georgia: the contributed refundable credit and SB 520 reforms count the same children as ga_ctc_potential through a new ga_ctc_eligible_child. - Education credits and student loan interest read the claimed input directly, since IRC 25A(g)(3) and 221(c) turn on an actual claim. - One reference per source document; quote IRC 24(h)(4)(A) exactly. - Tests: mixed-recipient care, tuition deduction, military rebates, Georgia refund cap, and the swapped New Mexico rebate case; the property test now covers the state readers of the exemption count. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # policyengine_us/tests/policy/baseline/gov/states/oh/tax/income/exemptions/personal/oh_personal_exemptions_eligible.yaml
#10024 now separates three facts: is claimed, can be claimed, and the would-be claimant's filing exception. - IRC 152(b)(1) gates (child tax credit, credit for other dependents, under-13 care child and its expenses, dependents in exemptions_count, ARPA dependents, Ohio dependents, the Hawaii and Wisconsin reforms) read head_or_spouse_is_dependent_elsewhere_without_filing_exception, so a filer within the Publication 501 exception keeps their dependents. - Own exemptions, recovery rebates and the tuition deduction read claimability. - Education credits and student loan interest keep reading the claimed input. - Tests: the filing exception and a filer who can be claimed but is not. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#10024's food/excise credit, Act 115 rebate and renters credit took claimable filers off exemptions_count themselves. exemptions_count now leaves them out (and, outside the filing exception, the return's dependents), so those credits read it as it is; the filing-exception cases were one exemption short. The renters credit also leaves out a dependent who can be claimed by another taxpayer (Schedule X counts only people who cannot be), as the food/excise credit already did. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Education credits: a dependent student is not eligible on a return whose filer can be claimed outside the filing exception (IRC 25A(f)(1)(A)(iii), 152(b)(1)); the filer's own eligibility still turns on an actual claim. - Recovery rebates: no credit when every filer is a dependent of another taxpayer (IRC 6428B(a)); the CARES and CAA child prerequisite is a spouse with a valid SSN, whether or not that spouse is an eligible individual. - Child and dependent care: cdcc_qualifying_childcare_expenses holds the expense rule, and the single-parent work requirement reform and California's expenses read it. - References: Georgia HB 136 page 3; one entry per recovery rebate statute; quote IRC 24(h)(4)(A) exactly in the test comment. - Tests: dependent students, the two rebate cases, the reform and California expenses, and the Hawaii, Wisconsin and Treasury reforms with a claimable filer under both labellings. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Education credits: is_barred_from_education_credits_by_dependency holds the claimed-filer and dependent-student rules; both eligibility formulas and the reconciliation SSN reform's Lifetime Learning Credit read it, so the reform no longer turns a barred student's tuition into that credit. - Child and dependent care: childcare counts when any child under 18 is still a qualifying individual, so an incapacitated child aged 13 to 17 keeps it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Setting meets_eitc_identification_requirements on one person made it an input for every person, so the other spouse lost their SSN too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…claimable-filer-co-ct-il-in
…anch The federal branch (#10087) now separates whether another taxpayer can claim a filer (`claimable_as_dependent_on_another_return`) from an actual claim (`claimed_as_dependent_on_another_return`), and adds the Publication 501 filing exception for the Dependent Taxpayer Test (`head_or_spouse_is_dependent_elsewhere_without_filing_exception`). - Rules that a return has no dependents (IRC 152(b)(1)) and the childless EITC bar read the filing-exception helper, as the federal formulas do. - Rules that turn on an actual claim read the claim input: Illinois' 2022 rebate (sec. 212.1, "who is claimed") and Georgia's HB 162 refund ("who was claimed"). - Rules that turn on being claimable read claimability: Georgia's low income credit ("claimed or ... eligible to be claimed") and Idaho's food tax credit ("can claim you"). DC Schedule H's "was a dependent" reads the person-level filing-exception helper. - New cases for a filer who can be claimed but is not, and for the filing exception. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 11, 2026
4 of 5 tasks
This branch has not been deployed
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
Absent the filing exception described below, a return on which the filer, or on a joint return either spouse, can be claimed as a dependent on another return has no dependents (IRC 152(b)(1); Publication 501, Dependent Taxpayer Test), and a childless filer who can be claimed gets no EITC (IRC 32(c)(1)(A)(ii)(III)). Colorado, Connecticut, Illinois and Indiana build credits, exemptions and deductions on those rules, but several formulas omitted the required filer-dependency checks.
The federal claimable-filer changes in #10087 merged on 2026-10-16, and this PR now targets
main. The rules read the merged federal inputs the way their formulas do: "no dependents" (IRC 152(b)(1)) and the childless EITC bar readhead_or_spouse_is_dependent_elsewhere_without_filing_exception, so the Publication 501 exception (the would-be claimant is not required to file and files at most for a refund) restores the dependents; rules that turn on an actual claim readclaimed_as_dependent_on_another_return. A companion PR applies the same rules in DC, Georgia and Idaho: #10050.co_eitc(ITIN and under-25 routes)co_ctc_qualifying_child(2022-2023)co_ctc_eligible_child(2024+)co_family_affordability_creditco_low_income_cdccct_property_tax_credit_eligiblect_child_tax_rebateil_dependent_exemptionil_personal_exemption_eligibility_status,il_personal_exemptionil_eitc(ITIN and age-18 extension)il_ctcil_income_tax_rebate_eligible,il_income_tax_rebate(2022 rebate on 2021 returns)in_base_exemptionsin_is_qualifying_dependent_child(additional and adoption exemptions)in_nonpublic_school_deductionThe contributed Illinois and Indiana dependent exemption reforms replace two of these formulas; at their default parameters they now match the baseline for a claimable filer (Indiana's reform also stops moving a barred child into its personal portion), with regression cases under both joint labellings.
Rows from the audit that need no change here:
co_cdcc); the federal incapacity exception remains available. Connecticut's and Indiana's EITCs match federaleitc, gated in Make rules for a filer claimed elsewhere independent of which spouse is labelled head #10024. The federal student loan interest deduction that all four states start from also already applies its bar. YAML regression cases cover the Colorado credit and Connecticut and Indiana EITCs.age_thresholddrops to 0 in 2022, so every filer qualifies, which matches 12-704c(b)(2)'s "2017, to January 1, 2021, inclusive". No bug.Not modeled (no new programs here): Colorado's property tax, rent and heat rebate (separate application, "Were you claimed as a dependent"), and Indiana's $200 fallback automatic refund (IC 4-10-22-4.5, actually claimed for 2022).
Readings
These readings apply Max's statute-first ruling of 2026-10-19: the statute controls when forms or instructions conflict; forms fill gaps where the statute is silent. The three Colorado and Illinois items in the statute-backlog spec are resolved below. The remaining readings keep their existing behavior. No in-scope item is tied to d1741, d1742 or d1744, and this PR leaves the provisions protected by those decisions unchanged.
Colorado paired reading.
us-co:claimable-filer-child-and-family-creditsChanged: Removed the draft's filer-claimability exclusions from
co_ctc_eligible_childfor 2024+ andco_family_affordability_credit, restoring main's statutory treatment. A claimable filer with $10,000 AGI and an eligible age-four child retains $1,200 CTC and $3,273 family credit in 2025 ($1,200 and $3,200 respectively in 2024).Kept: The 2022-2023 Colorado CTC dependent-taxpayer gate and the existing child-credit amounts and income thresholds.
Why: C.R.S. 39-22-129(2)(a)(II), (4.5) and 39-22-130(2)(a), (3) incorporate IRC 152(c) qualifying-child status (HB23-1112, p.4, HB24-1311, p.3); IRC 152(b)(1) removes dependent status without erasing qualifying-child status. The 2025 booklet, p.7's federal-child-credit exclusion therefore does not control these statutory child definitions. The 2022-2023 CTC remains tied to the federal credit actually claimed.
us-co:claimable-filer-disabled-child-care-creditChanged: Added an independent state dependency condition to
co_low_income_cdcc, alongside age under 13 andis_cdcc_eligible; the tax-unit filer exclusion is broadcast to members. A claimable filer with an incapable age-ten child and $1,000 care expenses receives $0; the otherwise identical nonclaimable filer keeps $250.Kept: The federal disability exception in
is_cdcc_eligibleand the low-income credit's expense allocation, earned-income limit, rates and caps. The filing exception continues to restore allowable dependency.Why: C.R.S. 39-22-119.5(2)(b), (3)(a)(III)-(IV) independently requires an IRC 152(a)(1) dependent under 13 and hypothetical IRC 21 eligibility. Those cumulative conditions mean IRC 21's disability relaxation cannot waive Colorado's separate dependency requirement. The 2025 DR 0347 instructions, p.1 define qualifying expenses through Section 21 without expressly waiving the state's independent dependency condition.
Illinois child tax credit. Changed: No eligibility change; the PR keeps its corrected section 244 references and comment. Kept: A claimable filer can receive the credit for their own IRC 152 qualifying child: $27.20 in the 2025 witness household ($13.60 in the 2024 probe). Why: 35 ILCS 5/244(d) defines a qualifying child through IRC 152 rather than requiring allowable dependent status. The 2024-2025 instructions, p.1's dependent-child wording does not override that definition. The 2026 draft instructions, p.2 also use qualifying-child wording. This matches the statutory reading used for Colorado's 2024+ child and family credits. Section 244 has not changed substantively since P.A. 103-592; P.A. 104-417 corrected a typo.
Illinois personal exemption: actual claim versus claimability. Changed:
il_personal_exemption_eligibility_statuscounts zero, one or two actual dependent claims among the tax-unit head/spouse members usingclaimed_as_dependent_on_another_return. This count distinguishes both spouses being claimed, which the previous Boolean addition collapsed to one. A claimable but unclaimed single filer with $10,000 Illinois base income keeps $2,850 in 2025 and $2,375 in 2021; an actually claimed 2025 filer above the basic amount gets $0. The single-filer branch now also includes equality at the basic-amount boundary: an actually claimed filer with exactly $2,850 Illinois base income receives one $2,850 basic amount, correcting the previous fallthrough to the two-amount status and $5,700. Kept: The prerequisite that Illinois base income exceed the basic amount, the separate exemption income-limit gate, all annual amounts, and the shared claimability helpers used by other rules. Why: 35 ILCS 5/204(b) requires an actual claim as well as base income above the basic amount (P.A. 103-9, p.357). The operative clause is unchanged across 2021-2025. IL-1040 Line C instead asks about claimability (2021, p.6, 2025, p.6); the statute controls. This also aligns the input distinction with the existing Illinois rebate rule below.Illinois 2022 rebate, one claimed spouse. Changed: No change in this revision. Kept: The exclusion reads actual claims; a claimable but unclaimed filer retains eligibility. A joint return with only one spouse actually claimed retains the existing $100 joint amount and no dependent amount. Why: P.A. 102-0700 sec. 212.1(a), p.131-132 excludes a taxpayer actually claimed on another individual's return. The current implementation applies that exclusion per taxpayer and retains the joint amount while one spouse remains eligible. The claimability wording on the 2021 return does not displace the statutory actual-claim condition. Under IRC 152(b)(2), a joint filer ordinarily can be claimed only for a refund-only return, so the one-claimed-spouse case is narrow.
Childless EITC on a joint return: Colorado and Illinois. Changed: No change to the draft's filer-dependency gates. Kept: Either spouse being claimable without the filing exception bars the childless EITC, consistently with the federal rule in Make rules for a filer claimed elsewhere independent of which spouse is labelled head #10024. Why: The states' expanded eligibility routes do not waive the federal dependent-taxpayer bar, and Publication 596, p.18 requires that neither spouse be claimable when claiming the EIC jointly. Illinois' expanded worksheet omits its dependency question for joint filers; that omission does not establish a statutory waiver. The filing exception remains available through
head_or_spouse_is_dependent_elsewhere_without_filing_exception.Connecticut's 2022 child rebate. Changed: No change to the draft's dependency input. Kept: The child must be properly claimable on the taxpayer's 2021 federal return; filer claimability prevents that dependent claim unless the filing exception applies. Why: Section 411(b)(1)'s valid-claim condition and TSSB 2022-5, p.1's proper-claim condition concern the child on that return. IRC 152(b)(1) and Publication 501, p.11 make allowable dependent status turn on filer claimability with the filing exception.
Invariants
head_or_spouse_is_dependent_elsewhere_without_filing_exceptionis true, the return has no Illinois dependent exemption, Colorado low-income child care credit, or Indiana additional exemption, and Indiana base exemptions are $1,000 per filer. The refund-only filing exception can restore dependent-based benefits. Colorado's 2024+ CTC and family credit instead retain eligible qualifying children; Illinois' own basic exemption depends on actual claims and its income conditions.Tests
OMP_WAIT_POLICY=PASSIVE. Severe host contention made the first completed YAML files take about 33–34 minutes each. Validation was stopped before the six-hour job limit; every test process was reaped. No microsimulation files were identified or excluded. Only completed per-file passes are counted. Added regression cases cover the Colorado claimable/nonclaimable incapable-child witnesses, 2024-2025 Colorado CTC and family-credit statutory amounts, and Illinois actual-claim versus claimability cases for 2021 and 2025. Illinois cases also cover zero/one/two head/spouse claims, the claimed-child member mask, single-filer base incomes of $2,849/$2,850/$2,851, and the separate AGI gate. The existing swap and filing-exception controls remain.Incomplete attempts at the end of validation:
policyengine_us/tests/policy/baseline/gov/states/il/tax/income/exemptions/il_personal_exemption_eligibility_status.yaml: stopped at the test deadline; no completed pass counted.policyengine_us/tests/core/test_claimable_filer_co_ct_il_in_invariants.py. These reuse the federalcheck_swap/check_monotonehelpers across Colorado, Connecticut, Illinois and Indiana for 2021, 2023, 2025 and 2026. Claimability, actual claims and the filing exception are drawn separately; deterministic cases guarantee coverage of their distinctions.il_personal_exemptionnow joins the outputs checked for head/spouse swap invariance and monotonicity when another filer is actually claimed. The Colorado CTC zero identity remains only before 2024. The person-level family credit is covered throughco_refundable_creditsfor swaps, and nonpublic-school attendance is covered by YAML.make format(Ruff formatting and lint) passed before each of the six new commits.git diff --check gh/main...HEADpassed; the checkout is clean.il_dependent_exemptionfailed the 2025 filing-exception restoration identity ($0 instead of $2,850); restoring the production helper returned the property file to 5 passing tests. Those results describe the prior head and are not validation of this revision.Microsimulation impact
Pending: the US + core hub adds its impact run here.
Follow-ups
axiom: TheAxiomFoundation/rulespec-us#1698 queued (CO1: EITC routes, child tax credit, family affordability credit, low-income child care) | TheAxiomFoundation/rulespec-us#1699 queued (IL1: dependent exemption, EITC, child tax credit) | TheAxiomFoundation/rulespec-us#1700 queued (IN1: exemptions, nonpublic school deduction) | CT 12-704c(b)(2) 2017-2021 gate n/a: expired and unencoded | CT P.A. 22-118 sec. 411 rebate n/a: expired and unencoded | IL sec. 212.1 rebate n/a: expired and unencoded; none encoded-correct
Merge with main
Merge commit
feca5b20949dacc49a4aac78099355ae7100da82incorporates upstream/main461f78e1eed35f90019eb46d8ac8dc7cdcc78b61without conflicts, preserving both parents and the existing PR history. Three statute-first implementation commits and two fixture-only corrections follow that merge; current head is196c7c7206c2812842fed3472163abae8572266f. The Illinois boundary and AGI controls use independent single-filer cases. The fixture corrections change no production formula.Historical integration: merge
29a702c5f546338a6c350ec335aafee9d479d70aincorporated main after #10087 squash-merged as2daebf2ca8, with main at1ef55c1197c6b466912e2f081d548d277e04e360. Conflicts innm_medical_expense_credit.py,nm_medical_expense_credit.yaml, andca_cdcc_relevant_expenses.yamltook main's reviewed versions because this PR had left them unchanged from its federal base. The obsolete federal changelog fragments were removed. The replay check at that earlier head preserved the original 37-path patch byte for byte. Subsequent merge034486c14cincorporated main at5ec60b209a4647be9daaf4f8a1500eb1bcdf8a94without conflicts. These statements record earlier integration checks, not the current revision's result.