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>
… 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>
…only Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…claimable-filer-nj-pa
… 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>
|
Status (owner session resumed 2026-10-11 ~16:00Z; not for adoption):
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The NJ childless EITC formula now reads is_tax_unit_dependent, claimed_as_dependent_on_another_return and head_or_spouse_is_dependent_elsewhere_without_filing_exception. Main's property test stubs the formula's inputs and lacked these three, so it raised KeyError on the merge with main. The stub's one-person units file their own returns, so the stub sets each input to False. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Exclude dependents' premiums and care when either filer fails the dependent taxpayer test. Keep both filers' expenses and add regression cases for the medical floor and allocation. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Main and this branch each added cases to the end of the state dependent exemption repeal test: main for California's personal credits, this branch for Oklahoma's regular exemptions. The merge keeps both sets. Main's change to the repeal reform edits California's exemptions and this branch's edits Oklahoma's, so the two reform edits merge cleanly. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Main's separated-filer change (#10666) and this branch both edited pa_tax_forgiveness_rate. The merge keeps both: this branch's rule that a claimable filer's return counts no dependent children, and main's 72 P.S. 7304(d)(1) base, which gives a separated separate filer the single base and adds a spouse's eligibility income when the spouse files in another tax unit. The reference list takes both sides' sources. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PR Review: Apply New Jersey, North Dakota, Ohio, Oklahoma and Pennsylvania rules for a filer who can be claimed as a dependentSummaryI read each state's statute and the claimed years' instructions first, then the code. The PR uses only existing dependency variables:
The two new PA variables ( These changes match the governing text for the claimed years:
CI is 35/35 green at head Nothing critical is open. Four should items are open:
Critical (must fix)None. Should addressS1. NJ childless EITC: the "not listed as a dependent" term follows the worksheet, not the statute, and isn't recorded (
S2. The three
S3. The TAXSIM reform's new PA dependent gate is unpinned (
S4. The
Suggestions
Verified correctThe law, read first.
The code.
Axiom line assessmentThere is no line: the section reads CI status
Branch status
Verdict: REQUEST_CHANGES |
DTrim99
left a comment
There was a problem hiding this comment.
Requesting changes per the review above: 0 critical, 4 should (NJ childless EITC 'listed as a dependent' term follows the worksheet over 54A:4-7(a)(4) without a record; candidates understate their years; unpinned TAXSIM PA gate; axiom section still a placeholder with no queued issue), 6 suggestions.
Summary
We apply the dependent-filer rules in New Jersey, Ohio, Oklahoma and Pennsylvania, and retain North Dakota's stillborn subtraction when a filer can be claimed elsewhere. We check both spouses on joint returns.
The formulas distinguish claimability, an actual claim, and the would-be claimant's refund-only filing exception:
claimable_as_dependent_on_another_return.head_or_spouse_is_dependent_elsewhere_without_filing_exception.claimed_as_dependent_on_another_returnfor either filer.pa_tax_forgiveness_parent_qualifies.The New Jersey and Oklahoma dependent-exemption reforms, Oklahoma's count in
repeal_state_dependent_exemptions, and TAXSIM's Pennsylvania forgiveness rate follow the corresponding formulas.Source readings and results
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.
For one stillbirth in 2025, a single filer receives $5,241 whether claimable or independent. Joint filers receive $5,241 whether neither, one or both spouses can be claimed:
1 × $5,241 = $5,241. North Dakota’s tax department would give a claimable filer $0 under the schedule’s added dependency condition.We record the statute–instructions conflict in
source_conflicts/candidates.yamland update the source-conflict ratchet.Pennsylvania claimant eligibility
Pennsylvania excludes a head or spouse who can be claimed elsewhere under Tax Reform Code 301(c.2) and 304. We remove the parent-qualification input and actual-claim test; Pennsylvania provides no parental exception in those sections. 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.yamland update the source-conflict ratchet. 2025 Schedule SP.With $6,000 each of eligibility income and adjusted taxable income, tax before forgiveness equals
$6,000 × 3.07% = $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 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.10of 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, each eligible spouse applies a 20% forgiveness rate under the married table. We allocate
$15,000 × 3.07% × 20% × 50% = $46.05to 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_interestto neither spouse and omits the tax-unit 529 deduction from that allocation.Oklahoma special and blind exemptions
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.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.
We apply the PR's existing dependent-taxpayer test and claimant filing exception. 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
Invariants and coverage
test_claimable_filer_nj_pa_invariants.pychecks generated and seeded couples across New Jersey, North Carolina, North Dakota, Ohio, Oklahoma and Pennsylvania:[0, 1]and equals one when neither filer can be claimed.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.
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. Regression cases cover North Dakota’s dependency bar, Pennsylvania’s actual-claim test and parent route, and Ohio’s dependent medical expenses.
Tests
The latest Pull request run at
aa18655572concluded success, with all 36 jobs passing. It passed all 450 cases in the 23 test files this PR changes:policyengine_us/tests/code_health/test_source_conflicts.pypolicyengine_us/tests/core/test_claimable_filer_nj_pa_invariants.pypolicyengine_us/tests/policy/baseline/gov/states/nc/tax/income/deductions/nc_child_deduction.yamlpolicyengine_us/tests/policy/baseline/gov/states/nd/tax/income/subtractions/nd_stillborn_subtraction.yamlpolicyengine_us/tests/policy/baseline/gov/states/nj/tax/income/credits/ctc/nj_ctc.yamlpolicyengine_us/tests/policy/baseline/gov/states/nj/tax/income/credits/eitc/nj_childless_eitc_age_eligible.yamlpolicyengine_us/tests/policy/baseline/gov/states/nj/tax/income/credits/eitc/nj_eitc.yamlpolicyengine_us/tests/policy/baseline/gov/states/nj/tax/income/exemptions/nj_dependents_attending_college_exemption.yamlpolicyengine_us/tests/policy/baseline/gov/states/nj/tax/income/exemptions/nj_dependents_exemption.yamlpolicyengine_us/tests/policy/baseline/gov/states/oh/tax/income/credits/oh_non_public_school_credits.yamlpolicyengine_us/tests/policy/baseline/gov/states/oh/tax/income/deductions/medical_expense/oh_claimable_filer_medical_expenses.yamlpolicyengine_us/tests/policy/baseline/gov/states/ok/tax/income/credits/eitc/federal_credit/ok_federal_eitc_demographic_eligible.yamlpolicyengine_us/tests/policy/baseline/gov/states/ok/tax/income/credits/eitc/ok_eitc.yamlpolicyengine_us/tests/policy/baseline/gov/states/ok/tax/income/ok_child_care_child_tax_credit.yamlpolicyengine_us/tests/policy/baseline/gov/states/ok/tax/income/ok_count_exemptions.yamlpolicyengine_us/tests/policy/baseline/gov/states/ok/tax/income/ok_stc.yamlpolicyengine_us/tests/policy/baseline/gov/states/pa/tax/income/credits/pa_cdcc.yamlpolicyengine_us/tests/policy/baseline/gov/states/pa/tax/income/credits/pa_eitc.yamlpolicyengine_us/tests/policy/baseline/gov/states/pa/tax/income/forgiveness/pa_tax_forgiveness_amount.yamlpolicyengine_us/tests/policy/contrib/state_dependent_exemptions/repeal_state_dependent_exemptions.yamlpolicyengine_us/tests/policy/contrib/states/nj/dependent_exemption_reform_test.yamlpolicyengine_us/tests/policy/contrib/states/ok/dependent_exemption_reform_test.yamlpolicyengine_us/tests/test_eitc_marital_eligibility_properties.pyThe new Ohio premium regression failed at
27ead422bb8269723dba05537437c73a5ed8a3a8: it deducted $1,000 against the expected $0. That run reported one failed case.We verified the three earlier mutant logs and ran the new Ohio mutant at
5f363a010d. Each mutant failed its selected regression:2025 single filer who can be claimed as a dependent: North Dakota stillborn child subtractioninnd_stillborn_subtraction.yaml2025 single filer claimable and not claimed with $6,000 Pennsylvania incomeinpa_tax_forgiveness_amount.yamltest_pa_tax_forgiveness_has_no_parent_qualification_inputClaimable filer cannot deduct a child's $1,000 premiumsinoh_claimable_filer_medical_expenses.yamlThe three earlier runs used
547ab47c024f44f16f6ab0a6e635861f82157edd, 2 GB caps and 2,400-second timeouts. We verified their logs, drivers and unchanged formulas without repeating those runs. The parent-route check rejects the restored input; it does not compute a forgiveness award.The Ohio mutant changed one eligibility line in a scratch worktree at
5f363a010d. We unset GitHub tokens, set loopback proxies, and used a 6 GB cap and a 2,400-second timeout. A Python audit hook denied sockets, subprocesses and writes outside the worktree. Every restore returned zero fromgit diff --exit-code.Formatting and lint passed through
make formatwith the locked Ruff version.Microsimulation impact
We estimate that this branch changes none of the outputs we measured in 2026 on the default dataset. We compared main at the merge base
cc8f4c9d90with this branch at5f363a010d. The later merge of main didn't change this branch's own diff.Every claimability rule here reads
claimed_as_dependent_on_another_return, directly or throughclaimable_as_dependent_on_another_return, which defaults to it. That input has no formula, and the default dataset doesn't carry it, so no record counts as claimable. The dataset also carries no stillbirths and no nonpublic-school tuition, so North Dakota's subtraction and Ohio's tuition credit stay at $0 on both sides. The New Jersey and Oklahoma filer-only age tests changed no record.nd_stillborn_subtractionnd_income_taxnj_dependents_exemptionnj_ctcnj_eitcnj_income_taxoh_non_public_school_creditsoh_income_taxok_stcok_eitcok_income_taxpa_tax_forgiveness_amountpa_income_taxstate_income_taxincome_taxhousehold_benefitshousehold_net_incomeimpact: no change in 2026 on the default dataset to these states' exemptions, credits, forgiveness or income taxes, or to federal income tax, benefits or household net income.
Axiom parity
AXIOM_PLACEHOLDER
🤖 Generated with Claude Code