Repository navigation
Conversation
…edit Forms 140 and 301 apply the dependent tax credit (line 49) and family income tax credit (line 50) before the Form 301 credits, and Form 301 caps those credits at the tax left after the two (Part 2, line 33). Reorder the 2021+ non-refundable list to dependent, family, charitable. Totals and az_income_tax are unchanged in baseline; the per-credit split and the refundable dependent credit contrib's refund change. Fixes #9559. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Fixes #9559
What was wrong
gov.states.az.tax.income.credits.non_refundablelisted Arizona's 2021+ nonrefundable credits as charitable contributions, dependent, family. Since #7984, each credit is capped at the tax left after the credits listed before it, so the list order sets each credit's applied amount. Arizona applies them the other way round:A.R.S. 43-1073, 43-1073.01 and 43-1088 set no order among the credits, so the forms fill the gap and there is no source conflict to record.
On $100 of tax with a $40 dependent credit, a $30 family credit and an $80 charitable credit, main applied charitable $80, dependent $20 and family $0. The forms give dependent $40, family $30 and charitable $30. Total nonrefundable credits ($100) and
az_income_taxwere the same either way. With the refundable dependent credit contrib on, the wrong order stranded the dependent credit and refunded it: in the issue's example, main pays a $125 refund that the forms don't.What changes
parameters/gov/states/az/tax/income/credits/non_refundable.yaml: the 2021+ block is now dependent, family, charitable. The 2019-2020 block (dependent, family) has no charitable entry and is unchanged. Adds the 2025 Form 140 booklet and Form 301 instructions as references.reforms/states/az/dependent_credit/az_dependent_credit_reform.py: removes the comment that described the old order and pointed at AZ baseline non-refundable credit ordering applies charitable before dependent/family credits, contrary to Forms 140/301 #9559. It keeps a shorter note that the refund inherits the baseline order. No code changes; the refund already reads the list.tests/code_health/test_source_conflicts.py: deletes the reform file'sKNOWN_UNMARKEDline (count 1). The removed comment ("contrary to AZ Forms 140/301") was the file's only conflict-sounding comment, and the ratchet fails on a leftover line once the count drops to 0.changelog.d/az-nonrefundable-credit-order.fixed.md.Who is affected
Arizona filers who claim the charitable contributions credit together with the dependent or family credit, and whose tax before credits is less than the sum. Their total nonrefundable credits and Arizona income tax don't change in baseline; the split among the three credits does (more dependent and family credit, less charitable credit). Under the refundable dependent credit contrib, their refund falls by the dependent credit the charitable credit used to absorb, up to the full refund.
Tests
tests/policy/baseline/gov/states/az/tax/income/credits/az_non_refundable_credit_order.yamlaz_income_tax_before_refundable_credits0,az_income_tax−25tests/policy/contrib/states/az/dependent_credit/az_refundable_dependent_credit.yamlaz_income_tax−125: failsaz_income_tax0: passesChanged expected values (Case 1):
az_charitable_contributions_credit80 → 30,az_dependent_tax_credit20 → 40,az_family_tax_credit0 → 30, from Form 140 lines 49-51 and Form 301 line 33 ($100 − $40 − $30 = $30 left for the charitable credit). The −25 inaz_income_taxis the $25 increased excise tax credit for one person.Runs (policyengine-core 3.37.2, locally):
50af7fba69): 3 failed (Case 1, Case 2 and the new contrib case), 4 passed (the existing contrib cases).tests/policy/baseline/gov/states/az/taxandtests/policy/contrib/states/az: 630 passed, 0 failed.test_source_conflicts.py,parameters.py,test_parameter_yaml_keys.py,test_reference_urls.py,test_no_concatenated_reference_urls.py,test_non_refundable_credit_downstream_consumers.py,test_known_dead_reference_urls.py): 407 passed, 0 failed, after theKNOWN_UNMARKEDchange.grep -rl az_ policyengine_us/tests/policy/baseline/partnersfinds nothing).ruff formatandruff checkpass on the two changed Python files.Not in this PR
az_dependent_tax_credit_potential(lines 15-40); this PR edits only the comment inaz_refundable_dependent_tax_credit(about lines 96-108), so the two diffs don't overlap.axiom: TheAxiomFoundation/rulespec-us#2936 queued
🤖 Generated with Claude Code