Skip to content

Apply New Jersey, Ohio, Oklahoma and Pennsylvania rules for a filer whom another taxpayer can claim as a dependent - #10043

Merged
MaxGhenis merged 47 commits into
mainfrom
claimable-filer-nj-pa
Nov 16, 2026
Merged

MaxGhenis merged 47 commits into
mainfrom
claimable-filer-nj-pa

Conversation

@MaxGhenis

@MaxGhenis MaxGhenis commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Summary

We apply the dependent-filer rules in New Jersey, Ohio, Oklahoma and Pennsylvania, and record that North Dakota's stillborn subtraction has no dependency condition. We check both spouses on joint returns.

The formulas distinguish claimability from the filing exception, under which every would-be claimant has no filing requirement and files no return or files only for a refund:

  • Oklahoma regular exemptions and Pennsylvania forgiveness eligibility read claimable_as_dependent_on_another_return.
  • State dependent counts and childless EITC eligibility read head_or_spouse_is_dependent_elsewhere_without_filing_exception.
State Behavior
New Jersey Exclude dependents from the dependent exemption, college-dependent exemption and child tax credit when either filer fails the federal dependent-taxpayer test. Apply the federal dependency condition to the childless EITC age fallback.
North Dakota No formula change. The stillborn subtraction keeps no dependency condition, and we record the statute's conflict with Schedule ND-1SA.
Ohio Count nonpublic-school tuition and medical expenses for dependents the filers can claim. Retain the head's and spouse's medical expenses when another taxpayer can claim either filer.
Oklahoma Remove each claimable filer's regular exemption and exclude dependents the filers cannot claim. Retain the separate special and blind exemptions. Use allowable exemptions for the sales tax credit and apply the frozen federal dependency conditions to childless EITC eligibility.
Pennsylvania Exclude dependents the filers cannot claim from the forgiveness allowance. Allow forgiveness only on an eligible head or spouse's tax, using claimability to determine eligibility.

The New Jersey and Oklahoma dependent-exemption reforms and Oklahoma's count in repeal_state_dependent_exemptions follow the corresponding formulas. TAXSIM's Pennsylvania forgiveness rate takes the same dependent gate and keeps its own base. It doubles the base for every separate filer and reads the unit's own eligibility income, so it doesn't follow #10666's base for separated filers.

North Carolina's child deduction counts the children for whom a filer gets the federal child tax credit, and main's formula already gives a claimable filer none. We add cases and property checks for it and change no North Carolina formula.

Source readings and results

New Jersey childless EITC

New Jersey lawmakers require every federal EITC qualification except age under N.J.S.A. 54A:4-7(a)(4). The Division of Taxation adds a sentence to the NJ-1040 line 58 instructions: "You are not listed as a dependent on another tax return." P.L. 2021, c.130; 2025 NJ-1040 instructions, page 44.

We follow the statute. The federal test in IRC 32(c)(1)(A)(ii)(III), with the claimant filing exception, already bars a filer whom another taxpayer can claim, whether or not a return lists them. We set the same line 58 instructions aside for married separate filers in #10307.

For example, a single childless filer aged 20 earns $5,000 in 2025, and a claimant who files only for a refund lists them as a dependent. The filer gets 40% × $649 = $259.60. Under the instructions' sentence, the filer would get $0. The IRS sets the $649 federal maximum in Rev. Proc. 2024-40, page 9.

The 2021 to 2024 instructions carry the same sentence: 2021, page 42, 2022, page 43, 2023, page 44 and 2024, page 44. We record the conflict in source_conflicts/candidates.yaml from 2021 and update the source-conflict ratchet.

North Dakota stillborn subtraction

North Dakota allows the subtraction for each stillbirth with a filed fetal death certificate under N.D.C.C. 57-38-30.3(2)(p), without a dependency condition. Its tax department adds that condition in Schedule ND-1SA. Statute, PDF page 35; 2025 schedule, line 8.

Main's formula has no dependency condition, and this PR leaves the formula unchanged. We add the schedule's reference and two comment lines, reword the parameter's description and update the conflict record.

For one stillbirth in 2025, a single filer receives $5,241 whether claimable or independent. Joint filers receive $5,241 whether another taxpayer can claim neither, one or both spouses: 1 × $5,241 = $5,241. North Dakota's tax department would give a claimable filer $0 under the schedule's added dependency condition.

The 2021 to 2024 schedules carry the same condition on page 2: 2021, line 5, 2022, line 5, 2023, line 8 and 2024, line 8. We record the statute–instructions conflict in source_conflicts/candidates.yaml from 2021 and update the source-conflict ratchet.

Pennsylvania claimant eligibility

Pennsylvania excludes a head or spouse whom another taxpayer can claim under Tax Reform Code 301(c.2) and 304, and provides no parental exception in those sections. pa_tax_forgiveness_eligible reads claimability. Tax Reform Code, PDF pages 112 and 127–128.

The tax department asks about an actual claim and permits a parental route in Schedule SP. We record that conflict in source_conflicts/candidates.yaml and update the source-conflict ratchet. 2025 Schedule SP.

The 2021 to 2025 schedules each ask the same two eligibility questions on page 1 and print the same dependent-child note on page 3, so the record starts in 2021: 2021, 2022, 2023, 2024 and 2025.

With $6,000 each of eligibility income and adjusted taxable income, tax before forgiveness equals $6,000 × 3.07% = $184.20:

Single filer Forgiveness
Claimed and claimable $0
Claimable and not claimed $0
Neither claimed nor claimable $184.20

Under Schedule SP's actual-claim test, the tax department would forgive $184.20 for the unclaimed but claimable filer. It would also forgive $184.20 for the claimed filer under the parent exception if the parent qualifies. We apply the statutory exclusion.

Pennsylvania with one claimable spouse

We exclude the claimable spouse and retain forgiveness on the other spouse's own tax. We use joint eligibility income and the married table, following Schedule SP where lawmakers leave the allocation unspecified. Schedule SP, Sections I and IV; PIT guide, married claimants. The 2021 to 2025 schedules each print the same line 3c on page 1 and the same separate-filing rule on page 5, so this record also starts in 2021.

The tax department requires separate Pennsylvania returns when another taxpayer claims one spouse on a federal return. The model retains one federal joint tax unit and approximates the eligible spouse's separate liability.

With $3,000 per spouse, the eligible spouse receives $3,000 × 3.07% = $92.10 of forgiveness. Pennsylvania would forgive $0 if it denied the joint claim, or $184.20 if it forgave the whole return.

With $7,500 per spouse, the eligible spouse applies a 20% forgiveness rate under the married table. We allocate $15,000 × 3.07% × 20% × 50% = $46.05 to the eligible spouse. Pennsylvania would forgive $0 if it denied the joint claim, or $92.10 if it forgave the whole return.

The model approximates each spouse's tax using their share of person-level Pennsylvania taxable income. It assigns us_govt_interest to neither spouse and omits the tax-unit 529 deduction from that allocation.

The Pennsylvania rate now combines this PR's dependent rule with #10666's base for separated filers. A joint tax unit whose spouses lived apart for the last six months of the year still gets the married table. Under 72 P.S. 7304(d)(1), a claimant who files a separate return and lives apart from their spouse counts as unmarried.

For example, the eligible spouse earns $8,000 and the claimable spouse $1,000. The model forgives $9,000 × 3.07% × 8/9 = $245.60, where the unmarried table gives $8,000 × 3.07% × 40% = $98.24. The model needs each spouse's own eligibility income to apply the unmarried table, and we leave that split to a follow-up (#11001).

Oklahoma exemptions and sales tax credit

A claimable filer has no regular exemption. Oklahoma allows $1,000 exemptions "in lieu of the personal exemptions allowed by the Internal Revenue Code" under §2358(E)(1)(a), and Congress sets a claimable individual's exemption amount to zero in IRC 151(d)(2).

We retain the additional exemptions. Oklahoma allows them separately from regular personal exemptions under §2358(E)(1)(b)–(c), without a dependency condition. Its tax department follows the same distinction in Form 511. 2024 SB1452, §2358(E), PDF pages 19–20; 2025 Form 511 instructions, pages 8–9.

A claimable, nonblind single filer aged 66 within the income limit keeps one special exemption: 0 regular + 1 special = 1, a $1,000 deduction.

Oklahoma pays the sales tax credit at $40 for each allowable personal exemption under 68 O.S. 5011(D), so the credit follows the same count without the special and blind exemptions. 68 O.S. 5011 on OSCN; the Legislature's compiled Title 68, PDF page 1634.

Ohio medical dependents

Ohio filers use the IRC definition of dependents under R.C. 5747.01(O). A filer whom another taxpayer can claim has no dependents under IRC 152(b)(1).

Ohio lawmakers import IRC 213's meaning of medical care in (A)(10)(c). They widen dependency solely for (A)(10)(a), waiving the gross-income and support conditions in IRC 152(d)(1)(B) and (C). They retain IRC 152(b)(1). R.C. 5747.01(A)(10).

The Ohio Department of Taxation directs filers to include expenses paid for themselves, their spouse and their dependents. It supplies no broader dependency test. 2025 IT 1040 instructions, page 41.

Ohio's medical formulas read the same federal dependent-taxpayer test, with the claimant filing exception, as the other states' dependent counts. When either filer fails that test, we count only the head's and spouse's premiums and medical care under (A)(10)(a) and (b). We exclude dependents before applying the medical-expense floor and allocating the deduction among people.

For example, a claimable filer who pays $1,000 of a child's unsubsidized, after-tax health-insurance premiums deducts $0 for them. The same household with an independent filer deducts $1,000. We assume no Medicare eligibility, employer subsidy, reimbursement or duplicate deduction.

Changes that do not depend on claimability

  • Ohio filers can claim the tuition credit for tuition recorded on dependents only. We exclude tuition recorded on a filer. R.C. 5747.75.
  • We test the ages of New Jersey filers when computing the childless EITC. A dependent's age cannot qualify a filer. P.L. 2021, c.130.
  • We test the ages of Oklahoma filers when computing the frozen childless EITC. A dependent's age cannot qualify a filer. 2020 Publication 596, PDF page 16.

Methodology choices

  • We count Oklahoma's allowable personal exemptions for the sales tax credit from the federal exemptions_count, which matches Oklahoma's regular exemptions unless a reform changes the federal count. For example, under the contributed reform gov.contrib.treasury.repeal_dependent_exemptions, an eligible household's credit falls by $40 for each dependent, while ok_count_exemptions still counts them.
  • We apply the claimant filing exception to Oklahoma's earned income credit, which the state computes under the federal requirements in effect for 2020 (68 O.S. 2357.43), as we do for the federal credit in every year. Congress did not change the words of IRC 32(c)(1)(A)(ii)(III) between the 2020 and 2024 editions of the Code. The IRS prints no such exception in Rule 12 of 2020 Publication 596 and prints it in Publication 596 from 2022. In its volunteer guide for 2020 returns, the IRS applies the exception to the question whether another taxpayer can claim the filer (Publication 4012, page C-3, note 5). For example, a claimable childless filer aged 30 with $5,000 of wages gets 5% × 7.65% × $5,000 = $19.125 when the would-be claimant files only for a refund, and $0 under the 2020 publication. We record the conflict in source_conflicts/candidates.yaml as us-ok:eitc-2020-rules-claimant-filing-exception.

Invariants and coverage

test_claimable_filer_nj_pa_invariants.py checks generated and seeded couples across New Jersey, North Carolina, North Dakota, Ohio, Oklahoma and Pennsylvania:

  • Swapping head and spouse labels preserves the listed outputs.
  • Marking another filer claimed never raises the listed exemptions, credits, deductions or forgiveness amounts.
  • Pennsylvania's eligible share stays in [0, 1] and equals one when no other taxpayer can claim either filer.
  • Forgiveness stays between zero and tax before forgiveness.

We check Oklahoma's child care/child tax credit for swap invariance only; its federal tax-liability limit can rise when claimability changes. The generated populations contain no stillborn children; North Dakota's YAML cases cover the stillborn subtraction.

In Pull request run 43728715900, at d7cd4390b3, the property file's four tests took 20.7 seconds of test calls (12.30, 3.44, 2.71 and 2.24 seconds) in the Rest Python core-1 group, which ran 1,297 tests in 21:03. The log reports no peak RSS.

YAML cases cover single and joint claimability patterns, swapped spouse labels, claimable-but-unclaimed filers, the filing exception, Pennsylvania's statutory eligibility, Oklahoma's additional exemptions, and the filer-only age tests. Each formula that reads the filing-exception helper has a case in which the would-be claimant files only for a refund. Two cases under the TAXSIM reform pin its Pennsylvania dependent gate, one of them under the filing exception.

Ohio's ten claimability medical cases, eight with a claimable filer and two independent-filer controls, sit in oh_unreimbursed_medical_care_expense_deduction.yaml, oh_uninsured_unreimbursed_medical_care_expenses.yaml, oh_long_term_care_insurance_premiums.yaml and oh_insured_unreimbursed_medical_care_expense_amount.yaml.

Tests

Pull request run 43891286842 at d7cd4390b3 passed all 37 jobs on GitHub's merge with main fd0a748698.

Test file CI job Passed
policyengine_us/tests/code_health/test_source_conflicts.py Python tests / Full Suite - Rest (Python shard 1) 105 passed
policyengine_us/tests/core/test_claimable_filer_nj_pa_invariants.py Python tests / Full Suite - Rest (Python shard 3) 4 passed
policyengine_us/tests/policy/baseline/gov/states/nc/tax/income/deductions/nc_child_deduction.yaml Baseline tests / Full Suite - Baseline (states-shard-1) 15 passed
policyengine_us/tests/policy/baseline/gov/states/nd/tax/income/subtractions/nd_stillborn_subtraction.yaml Baseline tests / Full Suite - Baseline (states-shard-2) 16 passed
policyengine_us/tests/policy/baseline/gov/states/nj/tax/income/credits/ctc/nj_ctc.yaml Baseline tests / Full Suite - Baseline (states-shard-1) 32 passed
policyengine_us/tests/policy/baseline/gov/states/nj/tax/income/credits/eitc/nj_childless_eitc_age_eligible.yaml Baseline tests / Full Suite - Baseline (states-shard-1) 9 passed
policyengine_us/tests/policy/baseline/gov/states/nj/tax/income/credits/eitc/nj_eitc.yaml Baseline tests / Full Suite - Baseline (states-shard-1) 36 passed
policyengine_us/tests/policy/baseline/gov/states/nj/tax/income/exemptions/nj_dependents_attending_college_exemption.yaml Baseline tests / Full Suite - Baseline (states-shard-1) 11 passed
policyengine_us/tests/policy/baseline/gov/states/nj/tax/income/exemptions/nj_dependents_exemption.yaml Baseline tests / Full Suite - Baseline (states-shard-1) 14 passed
policyengine_us/tests/policy/baseline/gov/states/oh/tax/income/credits/oh_non_public_school_credits.yaml Baseline tests / Full Suite - Baseline (states-shard-1) 17 passed
policyengine_us/tests/policy/baseline/gov/states/oh/tax/income/deductions/medical_expense/insured_unreimbursed_expenses/oh_insured_unreimbursed_medical_care_expense_amount.yaml Baseline tests / Full Suite - Baseline (states-shard-1) 7 passed
policyengine_us/tests/policy/baseline/gov/states/oh/tax/income/deductions/medical_expense/oh_long_term_care_insurance_premiums.yaml Baseline tests / Full Suite - Baseline (states-shard-1) 7 passed
policyengine_us/tests/policy/baseline/gov/states/oh/tax/income/deductions/medical_expense/oh_uninsured_unreimbursed_medical_care_expenses.yaml Baseline tests / Full Suite - Baseline (states-shard-1) 11 passed
policyengine_us/tests/policy/baseline/gov/states/oh/tax/income/deductions/medical_expense/oh_unreimbursed_medical_care_expense_deduction.yaml Baseline tests / Full Suite - Baseline (states-shard-1) 11 passed
policyengine_us/tests/policy/baseline/gov/states/ok/tax/income/credits/eitc/federal_credit/ok_federal_eitc_demographic_eligible.yaml Baseline tests / Full Suite - Baseline (states-shard-2) 6 passed
policyengine_us/tests/policy/baseline/gov/states/ok/tax/income/credits/eitc/ok_eitc.yaml Baseline tests / Full Suite - Baseline (states-shard-2) 19 passed
policyengine_us/tests/policy/baseline/gov/states/ok/tax/income/ok_child_care_child_tax_credit.yaml Baseline tests / Full Suite - Baseline (states-shard-2) 15 passed
policyengine_us/tests/policy/baseline/gov/states/ok/tax/income/ok_count_exemptions.yaml Baseline tests / Full Suite - Baseline (states-shard-2) 26 passed
policyengine_us/tests/policy/baseline/gov/states/ok/tax/income/ok_stc.yaml Baseline tests / Full Suite - Baseline (states-shard-2) 31 passed
policyengine_us/tests/policy/baseline/gov/states/pa/tax/income/credits/pa_cdcc.yaml Baseline tests / Full Suite - Baseline (states-shard-4) 12 passed
policyengine_us/tests/policy/baseline/gov/states/pa/tax/income/credits/pa_eitc.yaml Baseline tests / Full Suite - Baseline (states-shard-4) 9 passed
policyengine_us/tests/policy/baseline/gov/states/pa/tax/income/forgiveness/pa_tax_forgiveness_amount.yaml Baseline tests / Full Suite - Baseline (states-shard-4) 20 passed
policyengine_us/tests/policy/baseline/gov/states/pa/tax/income/pa_income_tax.yaml Baseline tests / Full Suite - Baseline (states-shard-4) 8 passed
policyengine_us/tests/policy/contrib/state_dependent_exemptions/repeal_state_dependent_exemptions.yaml Contrib tests / Full Suite - Contrib (other-shard-1) 49 passed
policyengine_us/tests/policy/contrib/states/nj/dependent_exemption_reform_test.yaml Contrib tests / Full Suite - Contrib (states-shard-2) 9 passed
policyengine_us/tests/policy/contrib/states/ok/dependent_exemption_reform_test.yaml Contrib tests / Full Suite - Contrib (states-shard-4) 12 passed
policyengine_us/tests/test_eitc_marital_eligibility_properties.py Python tests / Full Suite - Rest (Python shard 1) 4 passed

We made each change below to the formulas, one at a time, and each fails the named case. The first ten rows ran at e1ea478de2. The last three ran at ca8dd96fe5, where we also reran the first two rows and the Oklahoma reform's ok_exemptions variant. Main's later commits, through 9a63ae6605, touch none of these formulas or cases. The North Dakota and Pennsylvania eligibility rows restore earlier states of this branch; main never applied either rule.

Change Case that fails Result
nj_childless_eitc_age_eligible also requires that no return lists the filer 2025 single filer listed as a dependent by someone who files only for a refund: New Jersey childless EITC below the federal age in nj_eitc.yaml false against true
TAXSIM's pa_tax_forgiveness_rate counts a claimable filer's children 2025 TAXSIM reform, joint return whose head can be claimed as a dependent, with a child in pa_income_tax.yaml Rate 1 against 0.2
nj_ctc reads head_or_spouse_is_dependent_elsewhere 2025 single filer who can be claimed as a dependent by someone who files only for a refund: New Jersey child tax credit in nj_ctc.yaml $0 against $1,000
nj_dependents_attending_college_exemption reads head_or_spouse_is_dependent_elsewhere 2025 single filer who can be claimed as a dependent by someone who files only for a refund: New Jersey college dependent exemption in nj_dependents_attending_college_exemption.yaml $0 against $1,000
ok_stc reads head_or_spouse_is_dependent_elsewhere 2025 single filer who can be claimed as a dependent by someone who files only for a refund: Oklahoma sales tax credit income limit with a child in ok_stc.yaml $0 against $40
The New Jersey dependent-exemption reform reads head_or_spouse_is_dependent_elsewhere NJ dependent exemption reform - a claimable filer whose would-be claimant files only for a refund keeps their dependents in contrib/states/nj/dependent_exemption_reform_test.yaml $0 against $3,000
The Oklahoma dependent-exemption reform reads head_or_spouse_is_dependent_elsewhere, in all three formulas and in each one alone OK dependent exemption reform - a claimable filer whose would-be claimant files only for a refund keeps their dependents in contrib/states/ok/dependent_exemption_reform_test.yaml Every variant fails the case; for example, ok_exemptions alone gives $5,000 against $3,000
nd_stillborn_subtraction bars a claimable filer 2025 single filer who can be claimed as a dependent: North Dakota stillborn child subtraction in nd_stillborn_subtraction.yaml $0 against $5,241
pa_tax_forgiveness_eligible reads the actual claim 2025 single filer claimable and not claimed with $6,000 Pennsylvania income in pa_tax_forgiveness_amount.yaml $184.20 against $0
oh_uninsured_unreimbursed_medical_care_expenses counts a claimable filer's dependents Claimable filer cannot deduct a child's $1,000 premiums in oh_unreimbursed_medical_care_expense_deduction.yaml $1,000 against $0
oh_insured_unreimbursed_medical_care_expense_amount reads head_or_spouse_is_dependent_elsewhere A filer whose would-be claimant files only for a refund counts a child's medical care in oh_insured_unreimbursed_medical_care_expense_amount.yaml The child's $0 against $1,000
oh_long_term_care_insurance_premiums reads head_or_spouse_is_dependent_elsewhere A filer whose would-be claimant files only for a refund counts a child's long-term care premiums in oh_long_term_care_insurance_premiums.yaml The child's $0 against $100
TAXSIM's pa_tax_forgiveness_rate reads head_or_spouse_is_dependent_elsewhere 2025 TAXSIM reform, joint return whose head can be claimed as a dependent by someone who files only for a refund, with a child in pa_income_tax.yaml Rate 0.2 against 1

Ruff 0.15.5, the locked version, finds all 8,344 files formatted and no lint errors at ca8dd96fe5 (ruff format --check . and ruff check .).

Microsimulation impact

We estimate that this branch changes none of the outputs below in 2026 on the default dataset. Most of this PR's changes reach only returns whose filer another taxpayer can claim as a dependent. The dataset holds no claimed_as_dependent_on_another_return input, so the model treats every filer as one nobody else can claim. The three changes that do not depend on claimability also change no record's credit. Ohio's tuition credit totals $0 on main and on this branch, and we estimate New Jersey's EITC at $643.4m and Oklahoma's at $34.1m on both. We compared main at 9a63ae6605 with this branch at d7cd4390b3.

Output Main total Change Records changed (weighted)
nd_income_tax $319.3m $0 0 (0)
nd_stillborn_subtraction $0 $0 0 (0)
nj_income_tax $29.14bn $0 0 (0)
nj_eitc $643.4m $0 0 (0)
nj_ctc $385.6m $0 0 (0)
nj_dependents_exemption $4.05bn $0 0 (0)
oh_income_tax $10.34bn $0 0 (0)
oh_non_public_school_credits $0 $0 0 (0)
ok_income_tax $5.22bn $0 0 (0)
ok_stc $45.9m $0 0 (0)
ok_eitc $34.1m $0 0 (0)
pa_income_tax $18.12bn $0 0 (0)
pa_tax_forgiveness_amount $218.7m $0 0 (0)
state_income_tax $576.5bn $0 0 (0)
income_tax $2,594.9bn $0 0 (0)
household_benefits $2,060.2bn $0 0 (0)
household_net_income $17,246.6bn $0 0 (0)

Axiom parity

axiom: TheAxiomFoundation/rulespec-us#2269 queued (N.J.S.A. 54A:3-1(b)2 and 54A:3-1.1: dependent and college-dependent exemptions) | TheAxiomFoundation/rulespec-us#2037 queued, extended with a comment (N.J.S.A. 54A:4-17.1: child tax credit count) | TheAxiomFoundation/rulespec-us#1965 queued, extended with a comment (N.J.S.A. 54A:4-7(a)(4): the federal dependency bar and the filer-only age test) | TheAxiomFoundation/rulespec-us#2270 queued (R.C. 5747.75 with 5747.01(O): tuition credit; the pinned corpus release lacks both sections) | TheAxiomFoundation/rulespec-us#1523 queued, extended with a comment (R.C. 5747.01(A)(10)(a)-(b): medical dependents) | TheAxiomFoundation/rulespec-us#2271 queued (68 O.S. 2358(E)(1), 5011 and 2357.43: regular exemptions, sales tax relief and the 2020-rules EITC) | TheAxiomFoundation/rulespec-us#2272 queued (Tax Reform Code 301(c.2), 301(e.1) and 304(d): claimant, dependents and a return with one claimable spouse) | n/a: North Dakota stillborn subtraction, no behavior change | n/a: New Jersey, Oklahoma and repeal dependent-exemption reforms, PE-only reforms | n/a: TAXSIM Pennsylvania forgiveness rate, emulator mapping

🤖 Generated with Claude Code

MaxGhenis and others added 18 commits October 8, 2026 11:03
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>
… dependent

A return on which the filer (or, if joint, either spouse) can be claimed as a
dependent has no dependents (IRC 152(b)(1)), and these states count only
federal dependents. Now, on such a return:
- New Jersey gives no dependent or college-dependent exemption and no child
  tax credit, and its childless EITC age fallback applies the federal
  dependency test (P.L.2021 c.130) and the filer-only age test;
- North Dakota gives no stillborn child subtraction (Schedule ND-1SA line 8);
- Ohio's nonpublic school tuition credit counts tuition for the taxpayer's
  dependents only (R.C. 5747.75, 5747.01(O));
- Oklahoma gives a claimable filer no regular exemption (Form 511 item F),
  counts no dependents, counts only allowable exemptions for the sales tax
  credit (68 O.S. 5011(D)), and its frozen-2020 childless EITC applies the
  dependency and filer-only age tests;
- Pennsylvania gives no dependent child allowance, and Tax Forgiveness covers
  only the tax of a filer who is not claimable or whose claiming parent
  qualifies (Tax Reform Code 301(c.2), Schedule SP), so one claimable spouse
  leaves the other's separate claim.
The NJ and OK dependent-exemption reforms, the repeal-state-dependent-
exemptions reform's Oklahoma count and TAXSIM's PA rate follow suit.

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>
MaxGhenis and others added 5 commits October 11, 2026 12:01
…only

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… where each state's rule does

After the input split on the federal branch:
- the 152(b)(1) "no dependents" gates (NJ dependent, college and child tax
  credit counts, ND stillborn subtraction, OH tuition credit, OK dependent
  exemptions and sales tax credit dependents, PA dependent child allowance,
  the NJ/OK reform copies and TAXSIM's PA rate) and the childless EITC tests
  (NJ fallback, OK frozen 2020) read
  head_or_spouse_is_dependent_elsewhere_without_filing_exception, so a
  would-be claimant who files only for a refund leaves them in place;
- Oklahoma's own regular exemption (Form 511: "if you can be claimed")
  reads claimable_as_dependent_on_another_return, here and in the
  repeal-state-dependent-exemptions copy;
- the NJ line 58 condition ("not listed as a dependent on another tax
  return") and Pennsylvania's Tax Forgiveness filer test and separate-claim
  split ("a dependent on another person's federal tax return") read the
  actual claim, claimed_as_dependent_on_another_return.
The property test draws claimability, the claim and the exception per adult.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nt who files only for a refund

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@MaxGhenis

Copy link
Copy Markdown
Contributor Author

Status (owner session resumed 2026-10-11 ~16:00Z; not for adoption):

Add the Oklahoma Legislature's compiled Title 68 to ok_stc's references,
beside the OSCN link. 68 O.S. 5011 starts on PDF page 1633, and subsections
C and D sit on page 1634.

Replace the Justia link for N.J.S.A. 54A:3-1.1 in
nj_dependents_attending_college_exemption with the New Jersey Legislature's
statutes database, and point its IRC 152(b)(1) link at uscode.house.gov.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@MaxGhenis MaxGhenis changed the title Apply New Jersey, North Dakota, Ohio, Oklahoma and Pennsylvania rules for a filer who can be claimed as a dependent Apply New Jersey, Ohio, Oklahoma and Pennsylvania rules for a filer whom another taxpayer can claim as a dependent Nov 14, 2026
MaxGhenis and others added 2 commits November 15, 2026 10:13
Oklahoma computes its earned income credit under the federal requirements
in effect for 2020 (68 O.S. 2357.43). In the comment of
ok_federal_eitc_demographic_eligible, we credited the claimant filing
exception to 2020 Publication 596, but the IRS prints none in that
edition's Rule 12. The IRS prints the exception in Rule 12 from the 2022
edition. In its volunteer guide for 2020 returns, it applies the exception
to the question whether another taxpayer can claim the filer (Publication
4012, page C-3, note 5).

Replace the Justia and Cornell links with the Oklahoma Legislature's
compiled Title 68 (PDF page 930) and the 2020 edition of the United States
Code on govinfo. Add 2025 Publication 596 and Publication 4012 to the
references.

State the same reading in the ok_eitc.yaml case and show its arithmetic:
5% of min($5,000 x 7.65%, $538) = 5% of $382.50 = $19.125. No formula or
expected value changes.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…nflict

Add us-ok:eitc-2020-rules-claimant-filing-exception to
source_conflicts/candidates.yaml. Oklahoma freezes the federal EITC
requirements at 2020. IRC 32(c)(1)(A)(ii)(III) reads the same in the 2020
and 2024 editions of the Code, and we read it for Oklahoma as we do for the
federal credit: a would-be claimant who has no filing requirement and files
no return or only for a refund doesn't bar a childless filer. The IRS prints
no such exception in Rule 12 of 2020 Publication 596 or in question 6 of
the 2020 Form 1040 EIC steps.

For example, a single childless filer aged 30 with $5,000 of wages in 2025
gets $19.125 under our reading and $0 under the 2020 publication.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@MaxGhenis MaxGhenis closed this Nov 15, 2026
@MaxGhenis MaxGhenis reopened this Nov 15, 2026
@MaxGhenis MaxGhenis closed this Nov 15, 2026
@MaxGhenis MaxGhenis reopened this Nov 15, 2026
@MaxGhenis MaxGhenis closed this Nov 16, 2026
@MaxGhenis MaxGhenis reopened this Nov 16, 2026
@MaxGhenis

Copy link
Copy Markdown
Contributor Author

David, here's where each item of your review stands at d7cd4390b3:

Three independent AI reviews followed yours. The first, at 2d296205f5, found three readers of the helper without a filing-exception case, and 0211a810de added them. The second, at ca8dd96fe5, required no code or test change and asked for the parity requests above. Two later commits change no formula and no expected value. a8d2e306b4 cites the sources behind the filing exception on Oklahoma's 2020-rules credit, and d7cd4390b3 records that reading as the candidate us-ok:eitc-2020-rules-claimant-filing-exception (lines 9409-9459). The third review, at d7cd4390b3, required no code or test change.

🤖 Generated with Claude Code

@MaxGhenis
MaxGhenis dismissed DTrim99’s stale review November 16, 2026 16:35

The commits since this review answer S1 to S3 and every suggestion, and the axiom line now names a queued pe-parity request for each provision (S4). My reply above maps each item to its commit, file and lines.

@MaxGhenis
MaxGhenis merged commit eb578bf into main Nov 16, 2026
115 of 119 checks passed
@MaxGhenis

Copy link
Copy Markdown
Contributor Author

US + core hub merge audit, us#10043 at d7cd4390b3387c119be6a396330fc3a7b7c816c9 (squash): Apply New Jersey, Ohio, Oklahoma and Pennsylvania rules for a filer whom another taxpayer can claim as a dependent.

  • Reviews:
    • DTrim99 requested changes at 611ebd6c75, with nothing critical. They read each state's statute and instructions, checked 15 results by hand and found four items to address. New Jersey's childless EITC followed the worksheet's "not listed as a dependent" term without a record. Three source-conflict candidates covered 2025 alone. No test pinned the TAXSIM reform's Pennsylvania gate. The axiom: section held a placeholder. Six suggestions followed.
    • Six commits answer the code items. 3b14ea60d6 drops the listing term and records the conflict. 96d11a990f starts the three candidates in 2021. 3607a68317 adds the TAXSIM case and five filing-exception cases. 94ccfa3056 moves Ohio's medical cases into variable-named files, 4b952dc332 cites Oklahoma's statutes, and f68f3fd7e4 rewords the changelog and removes an absence test.
    • An independent review at 2d296205f5 read the 49-file diff and the statutes and forms for every year the candidates cite. It computed 19 households by hand and ran them on the head and on the merge base. The head matched all 19, and the merge base gave main's values wherever the PR changes a result. It read CI, where all 38 jobs passed.
    • That review found three formulas that read the filing-exception helper with no case under the exception: Ohio's insured-expense amount, Ohio's long-term care premiums and TAXSIM's forgiveness rate. The description said every reader had one. Its minor points covered an Oklahoma citation behind a bot check, a Justia link, the unlinked lived-apart follow-up, a mutant row's figures, one body phrase and the title's scope. It also noted that ok_stc now follows federal reforms of exemptions_count.
    • The fix round merged main at 9a63ae6605 without conflict (97bdf983e9). 0211a810de adds the three cases, and ca8dd96fe5 cites the Oklahoma Legislature's compiled Title 68 and the New Jersey Legislature's statutes database. With each of the three formulas switched to the helper without the exception, its new case failed and every older case passed. A mutant without the TAXSIM gate and one with New Jersey's listing term each failed its case at ca8dd96fe5.
    • A second independent review at ca8dd96fe5 required no code or test change. It read the merge of main and found no hand edit, recomputed the three new cases by hand and fetched Publication 501, the Ohio booklet and the compiled Title 68. It matched CI's per-file results to the description: 27 changed test files and 513 cases, with no failure. It counted 17 reads of the helper in 15 formula files, each with a case under the exception.
    • That review's one open item concerned the axiom: line, which read needed with no queued request. Its minor points covered a New Jersey reference that opens a search page, the count of Ohio's medical cases, the follow-up link and nine IRC links to law.cornell.edu.
    • Two later commits record the filing exception on Oklahoma's 2020-rules credit and change no formula or expected value. a8d2e306b4 rewrites the formula's comment and the test's comment and cites the Legislature's compiled Title 68, the 2020 edition of the Code, the 2025 Publication 596 and Publication 4012. d7cd4390b3 adds the candidate us-ok:eitc-2020-rules-claimant-filing-exception.
    • A third independent review at d7cd4390b3 required no code or test change. It fetched each cited page, recomputed $19.125 and read CI, where all 37 jobs passed. Its minor points covered the candidate's second reading, the description's sentence on the volunteer guide, the variable's documentation and the run that the Tests section cited.
    • The reviews listed corrections to the description, and I made every required one before merge. The axiom: line names queued requests, the Ohio sentence counts eight cases with a claimable filer and two controls, and the lived-apart sentence links its follow-up. The Oklahoma note says what the volunteer guide applies the exception to, and the Tests section cites the run at the head. I also corrected the North Dakota sentence: the PR rewords the parameter's description and updates a conflict record that main already held.
    • I dismissed DTrim99's change request with a reply that maps each item to its commit, file and lines.
  • Methodology choices for maintainers:
    • New Jersey's childless EITC follows N.J.S.A. 54A:4-7(a)(4), which requires every federal qualification except age, and sets aside the NJ-1040 line 58 sentence on listing. In 2025, a childless filer aged 20 with $5,000 of wages, listed by a claimant who files only for a refund, gets $259.60. The instruction gives $0. The candidate us-nj:childless-eitc-listed-as-dependent records the reading from 2021.
    • Pennsylvania forgiveness reads claimability under Tax Reform Code 301(c.2), with no parent route. Schedule SP asks whether another return carries the filer and lets a dependent child qualify through a parent. A claimable, unclaimed filer with $6,000 gets $0, where the schedule would forgive $184.20.
    • On a joint return with one claimable spouse, the model keeps one tax unit, applies the married limit to joint eligibility income and forgives the eligible spouse's share of the tax. Section 304 doesn't state that allocation, and the model follows Schedule SP. With $3,000 a spouse, it forgives $92.10, between $0 and $184.20.
    • A joint tax unit whose spouses lived apart for the last six months still gets the married limit. Under 304(d)(1), a claimant who files separately and lives apart counts as unmarried. With $8,000 and $1,000, the model forgives $245.60 where the unmarried table gives $98.24. Apply Pennsylvania's unmarried forgiveness table to a joint tax unit whose spouses lived apart #11001 tracks the gap.
    • North Dakota's stillborn subtraction keeps no dependency condition, as on main. N.D.C.C. 57-38-30.3(2)(p) states none, and Schedule ND-1SA adds one. A claimable filer subtracts $5,241 in 2025, where the schedule gives $0.
    • Oklahoma's sales tax credit reads the federal exemptions_count. 68 O.S. 5011(D) names the exemptions of the Oklahoma Income Tax Act. The two counts agree at baseline and differ under a reform of either one. Under gov.contrib.treasury.repeal_dependent_exemptions, the credit falls by $40 a dependent while ok_count_exemptions still counts them.
    • Oklahoma's earned income credit follows the 2020 federal requirements under 68 O.S. 2357.43, and the PR applies the claimant filing exception to it, as the model does for the federal credit in every year. Congress did not change the words of IRC 32(c)(1)(A)(ii)(III) between the 2020 and 2024 editions of the Code. The IRS prints no exception in Rule 12 of 2020 Publication 596, prints one from the 2022 edition and applies one to the dependency question in its volunteer guide for 2020 returns (Publication 4012, page C-3, note 5). A claimable childless filer with $5,000 gets $19.125 under the exception and $0 under the 2020 publication. The candidate us-ok:eitc-2020-rules-claimant-filing-exception records both readings from 2022, with follows: statute and state: ruled.
    • The filing exception restores dependents and the childless EITC. It restores neither Oklahoma's own regular exemption nor Pennsylvania claimant status, which both read claimability alone.
    • Ohio's medical formulas drop a dependent's expenses on a return with a claimable filer. R.C. 5747.01(A)(10)(c) widens "dependent" for premiums past two tests of IRC 152(d)(1), and the PR reads it as leaving 152(b)(1) in place.
  • Gates checked live at merge:
    • gh pr checks exits 0;
    • the latest Pull request run at the head, 43891286842, passed and tested this head merged into main at fd0a748698;
    • MERGEABLE;
    • not a draft;
    • no reviewer's latest review requests changes;
    • the semantic-overlap guard: since fd0a748698, main has changed one file this PR touches, source_conflicts/candidates.yaml. In the file merged with main at 79ac99f74c, each of the 486 entries matches the side that changed it, and both tests that read the file pass on the merged tree;
    • the merge pins the head.
  • Impact: we estimate that this branch changes none of the 17 measured outputs in 2026 on the default dataset, where no input marks a filer as claimed on another return. The changes that do not depend on claimability, to Ohio's tuition credit and to the childless EITC's age test in New Jersey and Oklahoma, also change no record's credit. Main 9a63ae6605 against d7cd4390b3.
  • Next:
  • Axiom: four new pe-parity issues carry companion rows from this PR's YAML at d7cd4390b3. Encode New Jersey's dependent and college-dependent exemptions for a filer whom another taxpayer can claim (N.J.S.A. 54A:3-1(b)2 and 54A:3-1.1; IRC 152(b)(1)) (PE-US #10043) TheAxiomFoundation/rulespec-us#2269 covers N.J.S.A. 54A:3-1(b)2 and 54A:3-1.1. Encode Ohio's nonchartered nonpublic school tuition credit for the dependents a filer can claim (R.C. 5747.75 and 5747.01(O); IRC 152(b)(1)) (PE-US #10043) TheAxiomFoundation/rulespec-us#2270 covers R.C. 5747.75. Encode Oklahoma's regular exemptions, sales tax relief and 2020-rules earned income credit for a filer whom another taxpayer can claim (68 O.S. 2358(E)(1), 5011 and 2357.43; IRC 151(d)(2) and 152(b)(1)) (PE-US #10043) TheAxiomFoundation/rulespec-us#2271 covers 68 O.S. 2358(E)(1), 5011 and 2357.43. Encode Pennsylvania Tax Forgiveness for a claimant, the claimant's dependents and a return with one claimable spouse (Tax Reform Code 301(c.2), 301(e.1) and 304(d); IRC 152(b)(1)) (PE-US #10043) TheAxiomFoundation/rulespec-us#2272 covers Tax Reform Code 301(c.2), 301(e.1) and 304(d). Comments extend Encode the New Jersey property tax election with refundable child credit changes (N.J.S.A. 54A:3A-20; 54A:4-17 and -17.1) (PE-US PR 10654) TheAxiomFoundation/rulespec-us#2037 for 54A:4-17.1, [pe-parity] NJ 54A:4-7(a)(4): companion cases separating 'ineligible due to age' from 'meets all qualifications except age' (PE-US #10525) TheAxiomFoundation/rulespec-us#1965 for 54A:4-7(a)(4) and Encode Ohio's unreimbursed medical care deduction (R.C. 5747.01(A)(10)), counted once per return with federal AGI floored at zero TheAxiomFoundation/rulespec-us#1523 for R.C. 5747.01(A)(10). All seven stay queued. The federal dependency count of [pe-parity] Federal dependency: lawful CTC/ODC, care, exemption counts and education/interest gates TheAxiomFoundation/rulespec-us#1684 has no encoding yet, the pinned corpus release lacks R.C. 5747.01 and 5747.75, and the corpus's Pennsylvania forms manifest holds no 2025 Schedule SP. North Dakota, the three dependent-exemption reforms and the TAXSIM rate take n/a.

🤖 Generated with Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants