Repository navigation
Conversation
…laimed as a dependent A return on which the filer (or, if joint, either spouse) can be claimed as a dependent has no IRC 152 dependents (IRC 152(b)(1)). Arizona's dependent credit, family credit count and income limit, and 2021 families rebate; Arkansas's dependent credit, generic disabled-dependent credit and low-income table; and California's dependent exemption credit now follow that. A claimable filer also loses California's personal, senior and blind credits (RTC 17054, Form 540 lines 7-9), the childless CalEITC and so the foster youth credit (RTC 17052, FTB 3514), and is not counted for Arizona's excise credit (A.R.S. 43-1072.01; Form 140 line 56). California's standard deduction follows its dependent worksheet (RTC 17073.5(c)(2)). California's renter credit excludes a claimable filer who lived in the claimer's home (RTC 17053.5(d)(2)), read from a new input, and its 2025 joint income limit is $107,988. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…joint Arizona rebate at three dependents Arkansas's and California's care credits and Arizona's 2026 care subtraction read the federal qualifying-person count, which the base branch fixes; YAML cases now pin the claimable-filer and disabled-child cases. The excise credit cites 43-1072.02, its operative section for 2021-2041. The 2021 families rebate counts at most three dependents on any return (Laws 2023, ch. 147, sec. 3(E)); ADOR's $1,500 joint maximum describes two 2021 families who married later. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… dependent in the Arkansas cases California's senior and blind credits now subtract the claimable filers' own aged and blind credits from aged_blind_count, so cases that supply that count keep working. The Arkansas disabled-dependent cases used a dependent older than the filers, whom the model made the head; the dependent is now 15. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…edit and rebate Both formulas combined a tax-unit array with a person array, which only broadcasts when the simulation has one tax unit. The property test's vectorized population caught it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-dependent relationship fallback, farm income - The Arizona, Arkansas and California dependent credit reforms, the California entry of the state dependent exemption repeal and AB 2591 replaced the changed formulas with the old ones; they now apply the same rules (California through shared helpers in ca_exemptions and ca_standard_deduction), with default-parity cases. - Arizona's family and excise credits count the filers directly on a claimable return, so a tax_unit_size input cannot carry dependents in. - Arkansas's disabled-dependent credit decides an unknown relationship from the dependent's own parent ids, not the household's; the comment records that parent ids also name step-parents. - The California dependent worksheet reads the new dependent_standard_deduction_earned_income, which counts farm income (Schedule 1 line 6) like the federal worksheet. - The property test adds renters who lived with the claimer and disabled dependents with and without parent ids. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…claimable-filer-az-ar-ca
claimable-filer-federal (35a2cbc) split the input: the plain helpers mean claimability, `claimed_as_dependent_on_another_return` means actually claimed, and `..._without_filing_exception` applies IRC 152(b)(1) with the refund-only exception (Publication 501). So: - Dependent counts (AZ dependent and family credits and 2021 rebate, AR dependent and generic disabled-dependent credits and low-income tables, CA dependent exemption credits, the three dependent credit reforms) and the childless CalEITC read the filing-exception helper. - California's own personal, senior and blind credits and its standard deduction read claimability. - Arizona's excise credit counts only filers who are not actually claimed (A.R.S. 43-1072.01/.02: "not claimed"); California's renter exclusion reads the actual claim (RTC 17053.5(d)(2): "claimed"). - Arkansas's care credit reads cdcc_qualifying_childcare_expenses, so a claimable return without a qualifying child counts no childcare. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…he property test's excise identity Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ild input for Arkansas, joint AB 2591 cases - dependent_standard_deduction_earned_income uses irs_employment_income (after elective deferrals, Form 1040 line 1z) plus self-employment and farm income, less the deductible part of self-employment tax. - ar_personal_credit_disabled_child_of_filer (new, overridable) carries the credit's birth-or-adoption child route, defaulting from parent ids (or true without ids); an input marks a stepchild. - Joint AB 2591 cases under both labellings, election off and on; 401(k) and stepchild cases; changelog matches the split inputs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
Arizona, Arkansas and California each have rules for a filer who can be claimed as a dependent on another return that the model never applied. A return on which the filer (or, if joint, either spouse) can be claimed has no dependents (IRC 152(b)(1); Publication 501: "you and your spouse can't claim any dependents on your joint return"), and these states also have their own rules for the claimable filer. This PR applies the ones the federal fixes do not already cover, each symmetric between head and spouse, and fixes one related error found in the same formula (last row).
Stacked on #10087 (
claimable-filer-federal, merged in at 35a2cbc) and #10024. The 2026-10-09 audit (Subfleet research,sweep_s1) was written before those changes; rows they already fix are listed below with the YAML cases that now pin them.Inputs. #10024 split the input. This PR reads, as the federal branch does:
head_or_spouse_is_dependent_elsewhere_without_filing_exceptionfor every "no dependents" rule (IRC 152(b)(1), and the childless CalEITC), so the would-be claimant's refund-only filing exception (Publication 501) restores the dependents;claimable_as_dependent_on_another_returnand its helpers) for a claimable filer's own credits and California's standard deduction;claimed_as_dependent_on_another_return) where the statute says "claimed": Arizona's excise credit and California's renter exclusion.az_dependent_tax_credit_potentialaz_family_tax_credit_potential,az_family_tax_credit_eligibleaz_increased_excise_tax_credit,..._eligibleaz_families_tax_rebate(2021 return)ar_personal_credit_dependentar_personal_credit_disabled_dependent(+ newar_personal_credit_disabled_child_of_filer)ar_low_income_tax_jointca_standard_deductionca_exemptionsca_eitc_eligible(and through itca_eitc,ca_foster_youth_tax_credit,ca_sf_wftc)ca_renter_credit(+ new inputlives_with_claiming_taxpayer)ar_federal_cdcccdcc_qualifying_childcare_expenses(new on the federal branch), so a claimable return with no qualifying child counts no childcare even when a disabled adult is a qualifying persondependent_standard_deduction_earned_income(new)earned_incomeleaves outaz_dependent_credit_reform,ar_dependent_credit_reform,ca_dependent_credit_reform,repeal_state_dependent_exemptions(California entry),ca_ab2591az_families_tax_rebatecap (related fix)ca_renter_creditincome limit (related fix)Audit rows already fixed by #10024 or the federal branch (not changed here)
az_dependent_care_expense_subtractionreadscdcc_relevant_expensesandcdcc). Pinned inaz_dependent_care_expense_subtraction.yaml(ordinary child barred, disabled child kept).ar_federal_cdccreadscount_cdcc_eligible). Pinned inar_cdcc_potential.yaml; its childcare expenses are changed here (table above).ca_cdccfromcdcc/ca_federal_capped_cdcc, oncount_cdcc_eligibleand, on the federal branch,cdcc_qualifying_childcare_expenses). Pinned inca_cdcc.yaml.az_agi,ca_agireadadjusted_gross_income).Verified by reading each formula on this branch. Rows the audit marked "verify only" or "no change" were checked: Arizona's standard deduction (43-1041) has no dependent limitation and
az_standard_deductiondoes not read the federal one; the Arizona aged exemption already excludes a person who is claimed (it reads the claim input, as Form 140 Box 8 does); Arkansas's own personal, aged, blind and deaf credits and California's young child tax credit (which needs a qualifying child, so the childless gate does not reach it) are unchanged.Readings for Max (queue via the US + core hub)
lives_with_claiming_taxpayerdefaults to false, so claimability alone does not bar the credit (17053.5(d)(2) bars only a filer living with the claimer). Alternative: default it to true for a claimable filer.ar_personal_credit_disabled_child_of_filerdefaults to true when a parent id names a filer, and an input sets it to false for a stepchild (YAML case: $0). Alternative default: false unless the input says otherwise, which would deny the credit for every claimable filer's own child without that input.Not readings: California's AB 2591 reform applies the 63(c)(5) limit to whichever deduction is taken; review r2b reports that AB 2591 sec. 2 keeps 17073.5(c)(2) (bill text not fetched here: leginfo refuses automated requests). Settled by the input split: Arizona's excise credit and California's renter credit now read the actual claim, as their statutes say "claimed".
Not modeled (listed, not implemented)
From the audit (
sweep_s1), unmodeled provisions that turn on a filer being claimable or claimed:Other findings (not fixed here)
basic_standard_deduction(from Make rules for a filer claimed elsewhere independent of which spouse is labelled head #10024) computes the dependent worksheet's earned income fromtax_unit_earned_income, which leaves out farm income; it could read the newdependent_standard_deduction_earned_income. Not changed here (federal branch).az_families_tax_rebateis computed in every year (defined for Arizona), though only 2021's value is inaz_refundable_credits; outside 2021 it should be zero.Invariants
head_or_spouse_is_dependent_elsewhere_without_filing_exception): no Arizona dependent credit or 2021 rebate and no Arkansas dependent credit. When every filer is claimed (the claim input): no Arizona excise credit. A claimable but unclaimed filer still counts for the excise credit, and the filing exception restores dependents (both pinned in YAML).Tests
policyengine_us/tests/core/test_claimable_filer_az_ar_ca_invariants.py(Hypothesis plus a seeded population and crafted renter and disabled-dependent cases in the three states, 2021, 2023, 2025, 2026; reusescheck_swapandcheck_monotone). The cases vary the claim input, so claimability follows it and the filing exception is off; the filing exception and claimable-but-unclaimed rules are pinned in YAML instead. Outputs: the credits and deductions listed under invariant 2,ar_income_tax_before_non_refundable_credits_unitandstate_income_tax. Results at the current head: pending. CI group:test-other-python-rest-core. It caught a vectorization bug the single-household YAML cases could not (a tax-unit array combined with a person array in two Arizona formulas), fixed before the microsimulations.Microsimulation impact
Real microsimulations on the default dataset,
claimable-filer-federal(23c6229) vs this branch (97ca53c; to be refreshed against 35a2cbc at the new head), record by record (run.py/compare.pyunder the shared lock): 2025 and 2026, four full runs. The dataset setsclaimed_as_dependent_on_another_returnfor nobody (weighted sum 0 in both years).az_income_taxar_income_taxca_income_taxstate_income_taxaz_dependent_tax_credit,az_family_tax_credit,az_increased_excise_tax_credit,ar_personal_credits,ar_low_income_tax_joint,ca_standard_deduction,ca_exemptions,ca_eitc,ca_foster_youth_tax_credit,ca_renter_creditaz_families_tax_rebateThe rebate change is the joint cap fix. The variable is computed in every year, but only 2021's counts in Arizona's refundable credits, so it moves no tax in 2025 or 2026. 2021: the default dataset returns zero for every tax variable in 2021 (
state_income_taxsums to $0 in the base run), so the cap fix's 2021 effect cannot be measured on it and is not estimated here.axiom: A.R.S. 43-1073.01, 43-1073, 43-1072.01 and 43-1072.02, Laws 2023 ch. 147 sec. 3 queued (draft AZ1) | Ark. Code 26-51-501(a)(3)(B), 26-51-503 (Act 417 of 1999), 26-51-301 queued (draft AR1) | Cal. RTC 17054, 17073.5(c)(2), 17052, 17052.2, 17053.5 queued (draft CA1); dispatch-ready rulespec-us issue drafts (
pe-parity) held for Max's go and not yet filed, so this line stays pending until they are filed and linked. On rulespec-us origin/main (16a6677190),us-az/statutes/43-1073/01,us-az/statutes/43-1073andus-az/statutes/43-1072/01defer their credit outputs (the first two have empty companions; the excise companion tests only custody and identification),us-ca/statutes/rtc/17054defers the final credits, and no module covers 43-1072.02, the Arizona rebate, Arkansas's credits or tables, or RTC 17053.5 and 17073.5. The care-credit pins have no Axiom state consumer to follow the federal fix (draft F1).🤖 Generated with Claude Code