Repository navigation
Conversation
Apply the federal charitable deduction to the Oregon standard deduction when the filer takes the federal standard deduction. Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #11313 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 1 1
Lines 24 13 -11
=========================================
- Hits 24 13 -11
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Count the federal non-itemizer charitable deduction for the filer and a joint spouse only, apply the 60% contribution-base ceiling from 2026, give linked separate Oregon returns one election, add the deduction only with a positive Oregon standard deduction, and floor a negative override at zero. Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Apply the 2021 cash ceiling and use Hawaii adjusted gross income for Hawaii's deduction. Count minor filers' own gifts and apply Oregon's 2021 deduction comparison and statutory years. Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
policyengine_us/variables/gov/states/hi/tax/income/deductions/hi_deductions.py uses the effective Hawaii election and applies the Hawaii AGI charity limit. Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
4 of 5 tasks
This was referenced Dec 3, 2026
…e charity, and enforce linked-spouse rule Round 3 review fix on #11313: - Replace hard-coded 2021/2026+ year gate in or_deductions.py with membership of charitable_deduction_for_non_itemizers in gov.irs.deductions.deductions_if_not_itemizing. - Compare Oregon standard and itemized deductions before adding federal 170(p) charity in every year (itemized wins on exact ties per OR-17). - Apply Oregon's zero-standard-deduction spouse restriction (ORS 316.695(1)(c)(F)(i)) to linked separate filers in all years instead of combined-dollar elections outside 2021. - Update F4, 2025 override, PFA threshold, and Hawaii binding-ceiling regressions; update changelog fragment. Co-Authored-By: Gemini 4 Neon <noreply@google.com>
MaxGhenis
marked this pull request as ready for review
December 4, 2026 14:07
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.
Agent-written for Max, by a Codex cloud task and Claude Code for Max Ghenis; no person has reviewed it yet.
What and why
Oregon uses the federal section 170(p) amount for eligible federal non-itemizers who take Oregon’s standard deduction in any year where
charitable_deduction_for_non_itemizersis listed ongov.irs.deductions.deductions_if_not_itemizing(from 2021 onward; excluded in 2020 when the deduction sat above the line). In every year, Oregon compares its standard deduction and itemized deduction lines alone before adding eligible federal charity, and applies the statutory spouse restriction for linked separate filers: if either spouse itemizes (or cannot take the standard deduction), both spouses must itemize (or_deductions.py). Oregon itemizers claim their eligible gifts through Schedule OR-A. ORS §§ 316.012, 316.048, 316.695(1)(c)(A), (F)(i) · 2021 Publication OR-17, pages 17, 70 and 95 · 2025 Form OR-40 instructions, page 16missing_headfallback for headless units; the general minor-head role inference fix is in a companion PR and the two no-flag minor-filer cases land after it). The model also limits the deduction to 100% of the nonnegative federal contribution base in 2021 under the temporary election and 60% from 2026. Section 170(p) excludes the itemized floor and carryovers. 26 U.S.C. 170, 2024 edition · P.L. 119-21hi_deductions.pyandhi_itemizes.py.Oregon reads
tax_unit_itemizes. The joint election in #11157 sets that input in each branch. Oregon uses the federal charity calculation for gift eligibility. Its inputs cannot distinguish gifts to supporting organizations and donor-advised funds, which taxpayers exclude under section 170(p).A caller can set
tax_unit_itemizesorcharitable_deduction_for_non_itemizersdirectly. Whenevercharitable_deduction_for_non_itemizersis listed ongov.irs.deductions.deductions_if_not_itemizing(from 2021 onward), Oregon treats a negative charity override as zero and adds a positive override when a federal non-itemizer takes Oregon’s standard deduction. A reform ofgov.irs.deductions.itemized.charity.non_itemizers_amountreaches Oregon in any year from 2021 onward (including a 2025 cap reform); in 2020 the deduction is above the line so a below-the-line override is ignored. Multnomah County’s Preschool for All tax reads Oregon taxable income, so the change reaches residents above the county tax’s thresholds.Test plan
f0fa23a2b0(434 passed, 0 failed):or_deductions.yaml(36),or_itemized_deductions.yaml(22),or_taxable_income.yaml(1),integration.yaml(9),or_multnomah_pfa_tax.yaml(12),charitable_deduction_for_non_itemizers.yaml(20),tax_unit_itemizes.yaml(12),hi_deductions.yaml(28),hi_standard_deduction.yaml(19),core/test_override_branches.py(24),code_health/test_source_conflicts.py(251).or_deductions.py: reverting the federal-list year gate failed 2 cases (2025 override and 2025 cap reform), reverting pre-charity comparison failed 4 cases (F4, 2021 compare, 2021 tie, 2026 tie), and reverting the linked-spouse restriction failed 3 cases (2021, 2025, and 2026 linked pairs).ruff check,ruff format --check, andgit diff --check; updated changelog fragment to document the linked-spouse restriction outside 2021.The H5 and H6 federal itemized totals include the gift and model-estimated Oregon withholding. They total $4,412.375 and $9,287.375, below the respective federal standard deductions plus charity of $12,850 and $25,700. 2021 Form 1040 · 2021 Publication OR-17, page 142
H3 and H4 check model integration with the existing withholding-based Oregon amounts. They use the existing federal standard deductions of $16,100 and $32,200. The 12% brackets run to $50,400 and $100,800, followed by 22%. The checks use the existing Oregon standard deductions, rates and brackets, $8,750 federal-tax subtraction cap, and $263 exemption credit. Final annual-return amounts remain open (#11772). IRS Rev. Proc. 2025-32 · Oregon 2026 withholding formulas, page 6
Follow-ups
minorheadbuild): general minor-head role inference fix, after which the two no-flag minor-filer cases land.axiom: TheAxiomFoundation/rulespec-us#2977 queued