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>
|
Picking this up for the US hub. I'll post a hand-off comment here when it's ready. Generated by Claude Code |
Resolve appended-case conflicts in CO, IL and IN test files by keeping both sides, and keep this PR's dependent gate in il_eitc on top of main's hoisted parameter lookup. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LwQq6FjKTA223kkKGWSie6
Core's entity-scoped output drops enum metadata and compared the integer 1 with PARTIALLY_ELIGIBLE, failing the joint case. A top-level output vector keeps the enum comparison and the same expected statuses. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LwQq6FjKTA223kkKGWSie6
|
Ready for hub review Head: Main mergeMain didn't merge cleanly (seven conflicts), so
P2: the Illinois fixture
Tests (local, one file per process, at
|
| File | Result |
|---|---|
il_personal_exemption_eligibility_status.yaml |
38 passed |
co_cdcc.yaml |
13 passed |
co_eitc.yaml |
27 passed |
ct_eitc.yaml |
17 passed |
ct_property_tax_credit_eligible.yaml |
13 passed |
ct_child_tax_rebate.yaml |
35 passed |
il_ctc.yaml |
11 passed |
il_eitc.yaml |
20 passed |
il_income_tax_rebate.yaml |
16 passed |
il_dependent_exemption.yaml |
9 passed |
il_personal_exemption.yaml |
13 passed |
in_additional_exemptions.yaml |
7 passed |
in_base_exemptions.yaml |
8 passed |
in_eitc.yaml |
21 passed |
in_nonpublic_school_deduction.yaml |
7 passed |
contrib/states/il/dependent_exemption_reform_test.yaml |
9 passed |
contrib/states/in/dependent_exemption_reform_test.yaml |
13 passed |
tests/core/test_claimable_filer_co_ct_il_in_invariants.py |
5 passed |
tests/code_health/test_source_conflicts.py |
103 passed |
277 YAML cases and 108 Python tests, 0 failed.
CI: the Pull request run at this head was skipped because the PR is a draft; CI hasn't run.
Judgment calls
- The merge needed a newer policyengine-core than the PR's old lockfile, so the tests ran in a fresh
uv syncenvironment of the merged tree. - No behaviour changed in this round beyond the merge; nothing else in the statute review needed a fix.
Generated by Claude Code
|
Hub review in progress Superseded by the final review: #10049 (comment) Generated by Claude Code |
|
Ready for hub review Round 3 independent review. The head has not moved past METHODOLOGY_CHOICE is yes because the PR picks readings where the text allows more than one. It reads Colorado's 2024+ child credits through the statutory IRC 152(c) definition rather than the booklet. It reads Illinois' basic exemption as turning on an actual claim rather than claimability (Line C). It keeps the Illinois CTC for a claimable filer's own qualifying child. The body records each reading and its source. No finding affects the model. The two findings below are PR-body edits for the hub to make before landing. FindingsP2: The body's "Merge with main" and "Tests" sections describe
|
| File | base | main | PR | merged | PR added | main added | PR removed | main rewrote |
|---|---|---|---|---|---|---|---|---|
| co_cdcc | 7 | 8 | 12 | 13 | 5 | 1 | 0 | 0 |
| co_eitc | 19 | 20 | 26 | 27 | 7 | 1 | 0 | 0 |
| co_family_affordability_credit | 4 | 6 | 10 | 12 | 6 | 2 | 0 | 0 |
| il_eitc | 9 | 14 | 15 | 20 | 6 | 7 | 0 | 2 |
| il_income_tax_rebate | 8 | 10 | 14 | 16 | 6 | 2 | 0 | 0 |
| in_eitc | 7 | 16 | 12 | 21 | 5 | 10 | 0 | 1 |
In all six files, the PR side's text begins with the base file byte for byte, so the PR only appended. That includes in_eitc.yaml, as the hand-off says. Where main rewrote a base case (2 in il_eitc, 1 in in_eitc), the merge keeps main's version. Three more Python files changed on both sides and merged without conflict: ct_child_tax_rebate.py, il_income_tax_rebate.py and il_income_tax_rebate_eligible.py. In each, the merge keeps main's added documentation block and adds only the PR's gate (git diff 6145ad4513 ab044c71f9 -- <file>). The head also merges cleanly with current main 25c4253483 (git merge-tree --write-tree, exit 0). Main's six newer commits touch none of the dependency gates; the one shared file, state_eitc_helpers.py, changes the separate-filer rule.
il_eitc.py. The merged formula keeps main's early return: if not p.expansion_in_effect: return tax_unit("eitc", period) * p.match. The PR's head_or_spouse_is_dependent_elsewhere_without_filing_exception gate sits after that return, so it applies only while expansion_in_effect is true. That parameter is false from 2000 and true from 2023-01-01, so the gate applies from 2023 on. It doesn't need to reach the earlier branch. Before 2023, il_eitc is federal eitc times the match rate, and federal eitc_demographic_eligible already gates childless filers on the same helper (childless_eligible = … & ~dependent_elsewhere). Pre-2023 claimable childless filers therefore already get $0 through the federal credit. The parameter's own reference names 35 ILCS 5/212(b-5), (b-10), (b-15) "for taxable years beginning on or after January 1, 2023". I could not fetch the statute itself (see below). The reference change from IRC 32(c)(3)(A) to 32(c)(1)(A)(ii) happened on the PR side before the merge (git diff 461f78e1ee 196c7c7206), so the merge dropped nothing from main.
The Illinois fixture (statute review P2). In policyengine-core's test_runner.py, a top-level output key calls check_variable with no entity_index. It compares the whole EnumArray from simulation.calculate with assert_enum_equals, in population order, which is the order the tax_units mapping is written. An entity-scoped output indexes actual_value[entity_index], which returns a bare element and loses the enum type; that caused round 2's failure. By hand, with the 2025 basic amount of $2,850 (joint threshold $5,700) and $10,000 base income for every unit:
head_claimed:claimed_count == 1, and the base income exceeds $5,700, so thepartner_ineligiblebranch fires: PARTIALLY_ELIGIBLE.spouse_claimed: the same, PARTIALLY_ELIGIBLE.neither_claimed: on a joint return withclaimed_count == 0, neither branch fires: BOTH_ELIGIBLE.
When I swapped entries 2 and 3 on a scratch copy, the file failed 1 and passed 37: il_personal_exemption_eligibility_status@2025: ['PARTIALLY_ELIGIBLE' 'PARTIALLY_ELIGIBLE' 'BOTH_ELIGIBLE'] differs from ['PARTIALLY_ELIGIBLE', 'BOTH_ELIGIBLE', 'PARTIALLY_ELIGIBLE'].
The defect reproduces at main. I ran the same witness script on main 25c4253483 and on the head. Each witness has one filer with $8,000 wages, either claimable without the filing exception or not claimable.
| Witness | main, claimable | head, claimable | head, not claimable |
|---|---|---|---|
| IL dependent exemption, 2025, child 5 | 2,850 | 0 | 2,850 |
| IL EITC, 2024, childless, age 20 | 122.40 | 0 | 122.40 |
| IL personal exemption, 2025, claimable but not claimed | 0 | 2,850 | 2,850 |
| IN base exemptions, 2025, child 5 | 2,000 | 1,000 | 2,000 |
| CO EITC, 2024, childless, age 20 | 306 | 0 | 306 |
| CO low-income CDCC, 2025, incapable child 10, $1,000 care | 250 | 0 | 250 |
| CT property-tax credit eligible, 2020, age 30, child 5 | true | false | true |
The hand values use the repo's parameters, because I couldn't reach the sources:
- IL 2024: childless phase-in 7.65% × $8,000 = $612, × 20% = $122.40.
- CO 2024: $612 × 50% = $306.
- CO low-income CDCC: 25% × $1,000 = $250.
- IN: $1,000 per exemption.
The CO CDCC result matches the body's "$250 … $0" witness.
Existing expectations the PR changes. In il_personal_exemption_eligibility_status.yaml, two existing cases change their expected status. "2024 Joint household, both claimable elsewhere, base income greater than $5,550" ($6,000) and the un-yeared "Joint household, both claimable elsewhere, base income greater than $4,750" ($5,000) move from PARTIALLY_ELIGIBLE to NOT_ELIGIBLE. On main, add(tax_unit, period, ["head_is_dependent_elsewhere", "spouse_is_dependent_elsewhere"]) gave a count that never reached 2 for these cases. The PR's tax_unit.sum reaches 2. Reading 3 in the body discloses this. The other 30 rewritten cases change only their input structure: the two inputs head_is_dependent_elsewhere and spouse_is_dependent_elsewhere become per-person claimable_as_dependent_on_another_return and claimed_as_dependent_on_another_return, and the outputs stay the same. The redundant third ineligibility term (claimed_count == 2 and income above twice the joint amount) was already on main.
Tests: each changed file in its own process, at the head, using uv sync --locked --extra dev as CI does, with thread caps of 4:
| File | Result | Hand-off |
|---|---|---|
| co_cdcc | 13 passed | 13 |
| co_low_income_cdcc | 19 passed | not run |
| co_ctc | 40 passed | not run |
| co_eitc | 27 passed | 27 |
| co_family_affordability_credit | 12 passed | not run |
| ct_eitc | 17 passed | 17 |
| ct_property_tax_credit_eligible | 13 passed | 13 |
| ct_child_tax_rebate | 35 passed | 35 |
| il_ctc | 11 passed | 11 |
| il_eitc | 20 passed | 20 |
| il_income_tax_rebate | 16 passed | 16 |
| il_dependent_exemption | 9 passed | 9 |
| il_personal_exemption | 13 passed | 13 |
| il_personal_exemption_eligibility_status | 38 passed | 38 |
| in_additional_exemptions | 7 passed | 7 |
| in_base_exemptions | 8 passed | 8 |
| in_eitc | 21 passed | 21 |
| in_nonpublic_school_deduction | 7 passed | 7 |
| contrib il dependent_exemption_reform_test | 9 passed | 9 |
| contrib in dependent_exemption_reform_test | 13 passed | 13 |
| test_claimable_filer_co_ct_il_in_invariants.py | 5 passed | 5 |
| code_health/test_source_conflicts.py | 103 passed | 103 |
That is 348 YAML cases across 20 files, plus 108 Python tests. Every count matches the hand-off where the hand-off reported one: its 17 YAML files total 277 cases, the same as here. The property file needs hypothesis, which comes from the dev extra; a plain uv sync fails at collection.
Mutants, each in its own process on a scratch copy, restored afterwards (git status --porcelain empty):
| Mutant | Killed by |
|---|---|
M1 (the body's): il_dependent_exemption reads head_or_spouse_is_dependent_elsewhere instead of the _without_filing_exception helper |
il_dependent_exemption.yaml, 1 failed of 9 ("2025 single filer who can be claimed keeps the dependent exemption when the would-be claimant meets the filing exception": 0 vs 2,850). Also the property test: "Illinois must restore dependents under the filing exception", 2 of 24 mismatched, 0 vs 2,375 |
| M2: swap vector entries 2 and 3 in the Illinois joint fixture | il_personal_exemption_eligibility_status.yaml, 1 failed of 38 (the joint symmetric case) |
M3 (mine): drop & ~filer_is_dependent from il_eitc |
il_eitc.yaml, 5 failed of 20 |
M4 (mine): joint ineligibility fires on claimed_count > 0 instead of > 1 |
il_personal_exemption_eligibility_status.yaml, 3 failed of 38 |
Readers of the changed variables. I searched non-test code under policyengine_us/ for each changed variable:
co_ctc_eligible_childis read byco_ctcandco_ctc_eligible_children_count.co_ctc_qualifying_childis read byco_federal_ctc_child_individual_maximumand theeligible_childparameter.ct_property_tax_credit_eligibleis read byct_property_tax_credit,ct_property_tax_credit_potentialand thect_hb5009reform. HB 5009 is a 2026 reform, and from 2022 the age threshold is 0, so its result is unchanged.il_eitcis read byil_ctcand theil_sb3567reform'sil_ctc. The gate bars only the childless route, so a filer with a qualifying child keeps the sameil_eitc, and the CTC built on it is unchanged. That matches reading 2.il_dependent_exemptionis read byil_total_exemptions;repeal_state_dependent_exemptionsneutralizes it.in_base_exemptionsis read byin_exemptions. The repeal reform's override (head_spouse_count × $1,000) gives the same $1,000 per filer as the new baseline.in_is_qualifying_dependent_childis read byin_qualifying_child_countandin_adoption_exemption.- The rest are read only by state credit and deduction lists.
No reader this PR makes reachable gets a worse result. The body's follow-up on SB3567's pre-2025 Illinois CTC is a defect that already exists on main.
Scope. git diff --name-only origin/main...pr-10049 lists nothing under .github/ or policyengine_us/tests/policy/baseline/partners/. git diff --check origin/main...pr-10049 is clean. The changelog fragment changelog.d/claimable-filer-co-ct-il-in.fixed.md is a top-level file. Open-PR searches by changed file name return #10583 (EITC without a child's SSN) and #10134 (repeal-reform claimable-filer rules), and neither changes any file in this PR. #10134 edits the repeal reform, which reads il_dependent_exemption and overrides in_base_exemptions; this PR leaves that reform unchanged.
CI. At 29ebbdbbce, Pull request run 41740935260 completed with success: 36 jobs, all success, including "Household API Partners", every Baseline shard and Full Suite - Microsimulation. The earlier run 41736058087 was skipped while the PR was a draft.
Baseline impact. The diff moves baseline outputs for every claimable head or spouse in CO, CT, IL and IN (witnesses above), and for Illinois joint returns where both spouses are actually claimed. The population check needs, per state, the count and weight of tax units with head_or_spouse_is_dependent_elsewhere_without_filing_exception true, and of Illinois units with a claimed head or spouse. It also needs the change in each changed credit, exemption and deduction, and in state income tax.
What I couldn't check
- Sources. This session's network reaches only GitHub and the package indexes. Requests to ilga.gov, leg.colorado.gov, olls.info, cga.ct.gov, portal.ct.gov, tax.colorado.gov, tax.illinois.gov, in.gov, iga.in.gov, irs.gov, govinfo.gov, uscode.house.gov, ecfr.gov, law.cornell.edu and taxsim.nber.org were all refused at the proxy. I confirmed no statute, form or bulletin text, and I don't confirm or dispute the body's statutory readings. The hand values above come from the repo's parameter files.
- Population impact. I ran no microsimulation; that needs the hub's data.
- The property test's runtime and memory on the hub's machine. Here it took 125 s wall-clock (41.9 s inside pytest), unloaded on 4 vCPU.
Generated by Claude Code
PR Review: Apply Colorado, Connecticut, Illinois and Indiana rules for a filer who can be claimed as a dependentSummaryI read the statutes first, then the code. The PR gates the dependent-based state rules for a return whose filer (or, on a joint return, either spouse) can be claimed elsewhere. It uses the existing federal helpers: Three things should be fixed before merge:
Critical (must fix)None. Should addressS1. Illinois joint return with one actually claimed spouse: the threshold is twice the basic amount, but the statute and IDOR use the basic amount (
S2. Update the existing CONTRIBUTING.md#source-conflicts, step 1: "If the backlog already lists the conflict, it updates that item instead." Six items on main already name this PR, but their
Fix: set S3. The
Fix:
Suggestions
Verified correctThe law, read first, for each claimed year.
The code.
Axiom line assessmentThe line lists three queued issues and three
CI status
Branch statusThe branch is 35 commits ahead of main and 35 behind.
Verdict: REQUEST_CHANGES |
DTrim99
left a comment
There was a problem hiding this comment.
Requesting changes per the review above: 0 critical, 3 should (IL joint return with one claimed spouse still gets 2x the basic amount; six stale candidates.yaml entries naming this PR; axiom issues pin an old head and miss the IL 204(b) change), 5 suggestions.
…asic amount Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
DTrim99
left a comment
There was a problem hiding this comment.
Program review
Base repository: PolicyEngine/policyengine-us
PR number: 10049
Reviewed head SHA: b399dc7
Merge base SHA: 094934a
Mode: incremental from 29ebbdb
Scope: changed behavior and affected dependencies
Source manifest: /private/tmp/policyengine-command-runs/ea33c0bb2b64/pr-10049-review-sources.json
Review status: COMPLETE
Source Documents
- il1040-2025-instr.pdf — cached original.
- co-hb23-1112.pdf — cached original.
- co-hb21-1311.pdf — cached original.
- co-hb20-1420.pdf — cached original.
- il-212.htm — cached original.
- ct-legsum-2022.htm — cached original.
- in-ib117.pdf — cached original.
- il-e-eitc-2025-instr.pdf — cached original.
- rulespec-1698.md — cached original.
- rulespec-1699.md — cached original.
- rulespec-1700.md — cached original.
Critical
None.
Should Address
A1 — The Indiana reform's separate-spouse exclusion from the dependent count has no test that would fail without it (OPEN)
- Location. policyengine_us/reforms/states/in/dependent_exemption/in_dependent_exemption_reform.py, the two
& ~person("in_is_exempt_separate_spouse", period)terms (in the dependents-count andtotal_dependentsformulas, about lines 24-28 and 67-71). These come from 07c3ed1. - Trigger. Reform on with a non-zero dependent amount and a separate filer who is not claimable, with a listed spouse who has zero AGI. Only then does the term bind. For a claimable filer,
~filer_is_dependentalready zeroesis_dependent. - Observed. The only new reform case ("keeps the exemption for a spouse with no federal AGI") uses a claimable filer and
amount: 0, so it exercises only thepersonal_countchange. Deleting either exclusion term passes every test. Executed (diag3.log), 2025, reform with amount $1,500, non-claimable separate filer and listed spouse with zero AGI:in_is_exempt_separate_spouseis [False, True], and reformin_base_exemptionsis $2,000 (no double count), which is correct at the head. - Expected. A reform case with a non-claimable filer and a non-zero amount, asserting $2,000. Without the term, the listed spouse would be counted both as a personal allowance and as a dependent.
- Impact. Coverage only. Current results are correct.
- Proposed severity. Should-address (a missing test for a new branch). It is a contributed-reform path, so the coordinator may treat it as low.
Suggestions
S1 — The new Rule 10 input bars only the CO and IL credits; federal eitc ignores it (OPEN)
- Location. policyengine_us/variables/household/demographic/person/is_eitc_qualifying_child_elsewhere.py (new input) and policyengine_us/tools/state_eitc_helpers.py
eitc_filer_is_qualifying_child_elsewhere. The only readers are co_eitc.py and il_eitc.py. - Trigger. 2025, a 20-year-old HoH filer with $4,000 wages, a 5-year-old child and
is_eitc_qualifying_child_elsewhere: true. - Observed (diag.log). Federal
eitcis $1,360, whileco_eitcandil_eitcare $0. Witheitc_qualifying_child_claimant_filing_exception: true, they become $680 and $272. - Expected. IRC 32(c)(1)(B) is a federal rule, so the same input should also zero the federal credit. CO's pre-expansion route (
federal_eitc * match) and IL's pre-2023 branch now pay $0 on a federal credit that the model still pays. - Impact. No default change, because the input defaults to false and no dataset sets it. It is a consistency gap for users who set the input.
- Proposed severity. Suggestion. Federal EITC is outside the PR's stated scope. Either apply it in the federal
eitceligibility in a follow-up, or say in the variable documentation that it affects only the CO and IL credits.
S2 — The new person variables use documentation rather than only reference (OPEN)
- Location.
is_eitc_qualifying_child_elsewhere.py,eitc_qualifying_child_claimant_filing_exception.pyandin_is_exempt_separate_spouse.py. - Observed. These variables set a
documentationstring. The model-development skill says to usereferenceand not adocumentationfield. Each also has areference. - Proposed severity. Suggestion (style). It is common elsewhere in the repo.
Evidence Gaps
No material gaps reported.
Notes
- This round covers the four author commits since the 11-05 review and two merges of main.
- Should 1 (an Illinois joint return with one claimed spouse got twice the basic amount): The formula now compares against one basic amount, matching 35 ILCS 5/204(b) and the 2025 IL-1040 Line 10a chart. Executed for 2025: $2,850 gives the $5,700 exemption, $2,851 gives $2,850, and $4,000 gives $56.925 of tax. The 2021 boundary also holds.
- Should 2 (six stale candidates.yaml entries): All six now say
follows: statuteand point at code that exists at the head.test_source_conflicts.pypasses 251 of 251. - Should 3 (axiom line) is still open and still needs fixing. rulespec-us#1698, #1699 and #1700 are open and labelled
pe-parity, but they still pin3ebbde68404cand lack the IL 204(b) actual-claim and one-claimed-spouse cases and the CO incapable-child $0 case. The PR body now readsaxiom: needed, which CLAUDE.md reserves for external contributors. Please repin the three issues to b399dc7 with those cases and restore aqueuedline. - Suggestions 1–3 are resolved. Suggestion 4 is resolved except that "CI: pending at this head" is now stale (35/35 pass). Suggestion 5 is still open: there are no CI time or memory figures for the property file.
- New behavior verified against sources:
-
- Colorado EITC. The ITIN waiver starts in 2020, under C.R.S. 39-22-123.5(2.5)(a)(I) as codified (HB23-1112). HB20-1420 as enacted said 2021, so the 2020 start rests on the later codified text. The under-25 route starts in 2022, under (2.7)(a).
-
- Illinois EITC. The 2023 expansion matches 212(b-5) to (b-15), and the match rates are unchanged.
-
- Rule 10 bar and claimant filing exception. These match IRC 32(c)(1)(B) and Schedule IL-E/EITC question 5.
-
- Completed ages. CO 24.5 → 24 and 64.5 → 64, CT ≤ 18, IN < 19 and < 24.
-
- CT property-tax credit. The age-65 window is 2017–2021 only, under 12-704c(b)(2) and the DRS 2022 summary.
-
- Indiana. The separate-filer spouse exemption matches IB 117. The nonpublic school deduction counts dependent enrollees only, under IC 6-3-2-22.
- Executed boundaries: Colorado's ITIN waiver gives $0 in 2019 and $7.65 in 2020. Illinois's extension gives $0 in 2022 and $15.30 in 2023. Both merges of main are clean, with no main change lost.
Validation Summary
Local tests at the reviewed head (review venv, policyengine-core 3.37.2, matching uv.lock; imports resolved to the snapshot), split into three bounded runs because the machine was contended: 1,027 YAML cases (all 131 CO, CT, IL and IN income tax files plus the IN and IL dependent-exemption reform tests) passed with 0 failures, and test_source_conflicts.py passed 251 of 251. test_claimable_filer_co_ct_il_in_invariants.py was not run locally; no author commit touches it, and it passes in CI. Sources: 11 retrieved (C.R.S. 39-22-123.5 via HB20-1420, HB21-1311 and HB23-1112; 35 ILCS 5/204 and 5/212; the 2025 IL-1040 and Schedule IL-E/EITC instructions; the CT DRS 2022 summary; IN IB 117); the Colorado DR 0104TN page was blocked by a bot challenge, and the behavior it supports rests on IRC 32(c)(1)(B). Manifest check passed. CI: 35/35 checks pass at b399dc7.
Timing
setup seconds: 6.00s; scope seconds: 60.00s; parallel review seconds: 1393.70s; policy role seconds: 394.00s; code role seconds: 1393.70s; adjudication seconds: 120.00s; consolidation cleanup seconds: 41.40s; elapsed seconds: 1604.00s
Review Severity
COMMENT. Open findings: 0 critical, 1 should address, 2 suggestions.
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 dependent-taxpayer and childless EITC rules use
head_or_spouse_is_dependent_elsewhere_without_filing_exception, added in #10087. Illinois's basic exemption and rebate eligibility read actual dependent claims. Colorado and Illinois EITC readis_eitc_qualifying_child_elsewhereandeitc_qualifying_child_claimant_filing_exceptionindependently of the dependency claimant's filing exception. The two exceptions can differ when different people meet the claimant tests. Each exception applies when its claimant is exempt from filing and files at most for a withheld-tax or estimated-payment refund. #10050 applies the dependent-filer rules in DC, Georgia and Idaho.co_eitcco_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_eitcil_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.
Rules 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.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
When a statute conflicts with a form, instructions, a manual or stated agency practice, PolicyEngine follows the statute. Forms and instructions fill gaps where the statute is silent. Source conflicts
Colorado paired reading.
us-co:claimable-filer-child-and-family-creditsKept:
co_ctc_eligible_childfor 2024+ andco_family_affordability_creditkeep main's statutory treatment, with no filer-claimability exclusion. 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).Changed: The 2022-2023 Colorado CTC gains the dependent-taxpayer gate. The existing child-credit amounts and income thresholds stay.
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: The section 244 references and comment. Kept: Section 244 supplies the qualifying-child test. Payment follows the allowed Illinois EITC and equals 40% of it in 2025, so a claimable filer can meet the child criterion while receiving $0 because the EITC is $0. A claimable filer can receive the credit for their own IRC 152 qualifying child: $27.20 in 2025 and $13.60 in 2024 on a $68 Illinois EITC. 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. On a joint return with one actually claimed spouse, PolicyEngine now compares base income with one basic amount. With $4,000 of Illinois base income in 2025, the exemption falls from $5,700 to $2,850 and tax rises from $0 to $56.93 (2025 IL-1040 Line 10a chart). Kept: 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, and its operative clause is unchanged across 2021-2025. IL-1040 Line C instead asks about claimability (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. Rule: 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. Rule: 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. The qualifying-child-of-another-taxpayer bar (Rule 10) applies to every Colorado route. Rule 10 applies before and after Illinois's 2023 EITC expansion and reads the filing exception for the qualifying-child claimant. The expanded childless routes apply the dependency claimant's filing exception. 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 dependent-taxpayer bar reads the filing exception through
head_or_spouse_is_dependent_elsewhere_without_filing_exception.Connecticut's 2022 child rebate. Rule: The 2022 rebate counts children properly claimed on the 2021 federal return who were 18 or younger in completed years on December 31, 2021. Filer claimability prevents that dependent claim. The claimant filing exception can restore dependent eligibility. 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. IRS Bulletin 2017-7, printed pp. 928 and 933, expressly provides the proposed dependent-taxpayer filing exception and permits taxpayers to apply it in open years. This supports the treatment of Connecticut's 2021 return. Applying the interpretation to Indiana's 2017 federal-law reference is inferred from the unchanged operative federal text.
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. Indiana keeps the $1,000 personal exemption for each filer and the $1,000 allowance for a separate filer's spouse with zero federal AGI; a claimable filer outside the filing exception gets no allowance for other dependents. 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
The branch, alone and merged with main, passed 376 cases across 35 selected YAML files. The source-conflict guard passed 251 checks and the household invariant file passed five. Two existing Illinois eligibility cases with both joint filers actually claimed (2024 with $6,000 of base income, 2021 with $5,000) change from PARTIALLY_ELIGIBLE to NOT_ELIGIBLE. Indiana's existing school cases now identify the filer and dependent children and keep $1,000 and $2,000. Cases include:
CI: pending at this head.
impact: pending a population comparison at the final head.
Follow-ups
eitc_demographic_eligible) has no qualifying-child-of-another-taxpayer bar. A 2025 single 20-year-old full-time student with $10,000 wages and a five-year-old child, claimed as a qualifying child by a parent required to file, gets $3,400 from the model and should get $0 (IRC 32(c)(1)(B); Publication 596, p.16). Connecticut's and Indiana's EITCs build on that amount. This predates the PR and needs its own issue.Overlap: open #10527 also edits
policyengine_us/tools/state_eitc_helpers.py.axiom: needed
Parity issues TheAxiomFoundation/rulespec-us#1698 (Colorado EITC routes, child tax credit, family affordability credit and low-income child care), TheAxiomFoundation/rulespec-us#1699 (Illinois dependent exemption and EITC) and TheAxiomFoundation/rulespec-us#1700 (Indiana exemptions and nonpublic school deduction) need repinning to the final head. They also need Colorado's EITC effective-date controls and the $0 incapable-child case; Illinois's §204(b) $2,850 exemption at $4,000 of base income and the distinct-claimant EITC and CTC results; and Indiana's separate-spouse controls. Coverage remains pending for Connecticut's 2017–2021 property-credit gate and 2022 child rebate, and Illinois's 2022 income tax rebate.
🤖 Generated with Claude Code