Repository navigation
Conversation
… 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>
…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>
Contributor
Author
|
Status (owner session resumed 2026-10-11 ~16:00Z; not for adoption):
|
1 of 4 tasks
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A return on which the filer (or, if joint, either spouse) can be claimed as a dependent on another return has no dependents (IRC 152(b)(1); Publication 501: "you and your spouse can't claim any dependents on your joint return"), unless the would-be claimant is not required to file and files only for a refund (Publication 501's exception). New Jersey, North Dakota, Ohio, Oklahoma and Pennsylvania count only federal dependents, and several of their provisions also bar the claimable or claimed filer directly. The model applied none of these state rules. This PR applies them, reading the federal branch's three inputs as each rule's wording requires and never reading only the head:
claimable_as_dependent_on_another_return;head_or_spouse_is_dependent_elsewhere_without_filing_exception;claimed_as_dependent_on_another_return.Stacked on #10087 (
claimable-filer-federal, head 35a2cbc: federal CTC/ODC, child care qualifying child,exemptions_count, education credits, student loan interest and the input split) and #10024. Retarget tomainonce both have merged.repeal_state_dependent_exemptions.pyis also changed by #10045 and #10053; the hub's landing order is #10045, then this PR, then #10053.nj_dependents_exemptionnj_dependents_attending_college_exemptionnj_ctcnj_childless_eitc_age_eligiblend_stillborn_subtractionoh_non_public_school_credits_potentialok_count_exemptions(andok_exemptions)ok_stcexemptions_count(filers who cannot be claimed, plus dependents unless a filer can be claimed outside the exception); the $50,000 limit needs a dependent the return can claimok_federal_eitc_demographic_eligiblepa_tax_forgiveness_ratepa_tax_forgiveness_amount, newpa_tax_forgiveness_eligible,pa_tax_forgiveness_eligible_share, inputpa_tax_forgiveness_parent_qualifiesThe contributed reforms that copy these formulas follow suit:
nj_dependent_exemption_reform,ok_dependent_exemption_reform, the Oklahoma count inrepeal_state_dependent_exemptions(own exemption reads claimability), and TAXSIM's PA forgiveness rate.Audit rows already fixed upstream (checked against the code on #10087)
These state formulas read a federal output that the base branches correct, so this PR changes no code for them; it adds YAML cases that pin the inherited result (S / J1 / J2 / J0, 2025, hand-computed).
ctc_qualifying_childrenctc_qualifying_childnc_child_deduction$0 / $0 / $0 / $3,000eitc_eligible,eitcnj_eitc$0 / $0 / $0 / $91.80eitceitcpa_eitc$0 / $0 / $0 / $22.95cdcc,cdcc_potentialis_cdcc_eligibleordinary-child branch andcdcc_qualifying_childcare_expensespa_cdcc$0 / $0 / $0 / $320ok_federal_ctc(federal CTC)ok_child_care_child_tax_credit$0 / $0 / $0 / $56.25oh_personal_exemptions_eligible_person,exemptions_countReadings for Max (for the US + core hub to batch)
pa_tax_forgiveness_parent_qualifies(default false), the answer to that form line. Alternative: no input, always deny. (The Axiom report notes 301(c.2) on its face excludes any dependent from being a claimant; the route rests on Schedule SP and the PIT guide.)The earlier reading on actual claim vs claimability is no longer a reading: with the federal branch's split inputs, the actual-claim wording (NJ line 58, PA Schedule SP) reads
claimed_as_dependent_on_another_return, and the "can be claimed" and dependent rules read claimability.Not implemented (audit P2/P3 and unmodeled programs)
pell_grant; the error is not claimability-specific (needs a qualifying-grant input).health_savings_account_aldis an input with no eligibility formula, so there is nothing to gate (audit P2, model scope).is_qualifying_child_dependentis the existing proxy.Changes not gated on the claimability inputs
Three fixes sit in lines this PR touches and apply even when nobody can be claimed: Ohio's tuition credit no longer counts tuition recorded on a filer (the existing cases now record it on a dependent child), and the NJ and Oklahoma childless-EITC age tests look only at filers, as the federal formula does, so a dependent's age no longer qualifies a filer. MICROSIM_UNGATED_PLACEHOLDER
Invariants
pa_tax_forgiveness_eligible_shareis in [0, 1] and equals 1 when no filer is claimed; forgiveness never exceeds tax before forgiveness.Tests
policyengine_us/tests/core/test_claimable_filer_nj_pa_invariants.pyreusescheck_swapandcheck_monotoneon Hypothesis batches (tuition on dependents, the PA parent input, and claimability, claim and exception drawn per adult) and a seeded population in the six states, 2022, 2025 and 2026. PROPERTY_RESULTS_PLACEHOLDERMicrosimulation impact
MICROSIM_PLACEHOLDER
Axiom parity
AXIOM_PLACEHOLDER
🤖 Generated with Claude Code