Repository navigation
Give Idaho standard-deduction filers the federal non-itemizer charitable deduction - #11703
Conversation
Co-Authored-By: GPT-6 <noreply@openai.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #11703 +/- ##
===========================================
+ Coverage 95.34% 100.00% +4.65%
===========================================
Files 1 3 +2
Lines 86 75 -11
Branches 2 5 +3
===========================================
- Hits 82 75 -7
+ Misses 4 0 -4
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:
|
|
Agent review for Max, written by Codex and posted by Antigravity for Max Ghenis (exact reviewed head VERDICT: REQUEST_CHANGES at b913024 Merge base and main Findings
Seven-case recomputation
The pinned CPI windows sum to 2,125.365 and 2,077.121, giving modeled cutoffs of $4,922.7421 single and $9,845.4842 joint. The separate joint reproduction uses taxable income of $117,800 and $115,800, one $10 building tax and two $155 food credits. That gives $5,421.59 twice on main and $5,421.59 / $5,315.59 on head. All seven cases have wages, eligible modeled donors and enough AGI to preserve their expectations under #11313. Idaho Code § 63-3082 · Idaho Code § 63-3024A Sources and integration
The caller search found The changelog fragment at Proposed YAMLThe two disputed source readings are labeled in the fixtures. The 2026 split-election case assumes Idaho applies § 170(p) using its own election. - name: Idaho excludes a dependent's own cash gift
period: 2026
input:
people:
filer: {age: 40, employment_income: 75_000, is_tax_unit_head: true}
child: {age: 17, is_tax_unit_dependent: true, charitable_cash_donations: 1_000}
tax_units:
return: {members: [filer, child], filing_status: SINGLE}
households:
household: {members: [filer, child], state_code: ID}
output: {id_deductions: 16_100}
- name: Idaho applies the federal contribution-base ceiling before Idaho additions
period: 2026
input: {state_code: ID, age: 40, filing_status: SINGLE, employment_income: 1_000, charitable_cash_donations: 1_000, id_other_additions: 30_000}
output: {id_deductions: 16_700, id_taxable_income: 14_300}
- name: Idaho standard election retains qualifying health premiums
period: 2026
input:
state_code: ID
age: 40
filing_status: SINGLE
employment_income: 75_000
charitable_cash_donations: 1_000
tax_unit_itemizes: false
health_insurance_premiums: 6_000
medical_expense_deduction: 2_000
id_itemized_deductions: 19_000
output: {id_itemizes: false, id_deductions: 17_100, id_health_insurance_premiums_subtraction: 6_000, id_taxable_income: 51_900}
- name: Idaho 2021 standard worksheet accepts a federal itemizer's qualifying gift
period: 2021
input: {state_code: ID, age: 40, filing_status: SINGLE, employment_income: 75_000, charitable_cash_donations: 400, itemized_taxable_income_deductions: 13_500, id_salt_deduction: 2_000}
output: {tax_unit_itemizes: true, id_itemizes: false, id_deductions: 12_850}
# Worksheet reading pending the TY2021 source decision. The recipient filter gives 12_550.
- name: Idaho 2021 standard worksheet uses Schedule A line 11
period: 2021
input: {state_code: ID, age: 40, filing_status: SINGLE, employment_income: 75_000, charitable_cash_donations: 400, charitable_cash_donations_non_50_pct_orgs: 400, itemized_taxable_income_deductions: 13_000, id_salt_deduction: 500}
output: {tax_unit_itemizes: true, id_itemizes: false, id_deductions: 12_850}
# Expected under the independent Idaho election. Federal-election reading gives 16_100.
- name: Idaho 2026 standard election after federal itemization
period: 2026
input: {state_code: ID, age: 40, filing_status: SINGLE, employment_income: 75_000, charitable_cash_donations: 1_000, itemized_taxable_income_deductions: 18_000, id_salt_deduction: 2_000}
output: {tax_unit_itemizes: true, id_itemizes: false, id_deductions: 17_100}
- name: Idaho uses the non-joint cap for MFS, HOH and qualifying surviving spouse
period: 2026
input:
state_code: [ID, ID, ID]
age: [40, 40, 40]
filing_status: [SEPARATE, HEAD_OF_HOUSEHOLD, SURVIVING_SPOUSE]
employment_income: [75_000, 75_000, 75_000]
charitable_cash_donations: [1_500, 1_500, 1_500]
output: {id_deductions: [17_100, 25_150, 33_200]}
- name: Idaho separate filer itemizes when their spouse itemizes
period: 2026
input: {state_code: ID, age: 40, filing_status: SEPARATE, employment_income: 75_000, charitable_cash_donations: 1_000, separate_filer_itemizes: true, id_itemized_deductions: 1_000}
output: {id_itemizes: true, id_deductions: 1_000}
- name: Idaho cash gift eligibility uses AGI when the filer has no wages
period: 2026
input: {state_code: ID, age: 40, filing_status: SINGLE, taxable_interest_income: 75_000, charitable_cash_donations: 400}
output: {id_deductions: 16_500}
- name: Idaho floors negative wages and cash gift inputs
period: 2026
input:
state_code: [ID, ID, ID]
age: [40, 40, 40]
filing_status: [SINGLE, SINGLE, SINGLE]
employment_income: [-1_000, 75_000, 75_000]
charitable_cash_donations: [1_000, -1_000, 0]
charitable_cash_donations_non_50_pct_orgs: [0, 0, -100]
output: {id_deductions: [16_100, 16_100, 16_100]}Owed — lane disk line: no runs — seven-case YAML on main and head, existing Idaho |
…duplication in Idaho tests
|
Sol r2/r3/r4 independent review ledger on
|
|
US + core hub merge audit for #11703 at exact head
|
Agent-written for Max, updated after independent review to fix dependent-gift, AGI-ceiling, negative-input, source-conflict, and test-coverage findings.
What and why
Idaho starts with federal taxable income, applies its resident adjustments, and lets taxpayers elect between the Idaho standard deduction and Idaho itemized deductions under Idaho Code § 63-3022(j). H0559 conformed Idaho law to the Internal Revenue Code in effect on January 1, 2026, retroactive to January 1, 2025. § 63-3011B § 63-3026 § 63-3022(j) § 63-3004 H0559 history H0559, PDF p. 5
Under IRC § 63(b)(4) and § 170(p), non-itemizing filers deduct qualifying cash gifts to IRC § 170(b)(1)(A) 50%-limit organizations in TY2021 (up to $300 non-joint / $600 joint) and again from TY2026 under P.L. 119-21 § 70424 (up to $1,000 for a non-joint return and $2,000 for a joint return), subject to § 170(b)(1)(G)’s percentage-of-AGI limit (
100%in 2021,60%in 2026+) and excluding dependent gifts. 26 U.S.C. § 170(p), PDF pp. 19–20 26 U.S.C. § 63(b)(4), PDF p. 1 P.L. 119-21 § 70424, PDF p. 165Both
id_deductions.pyandid_itemizes.pynow shareid_non_itemizer_charitable_deduction(_id_non_itemizer_charity.py), which:deductions_if_not_itemizingperiod membership,is_neutralized, andnon_itemizers_amount[filing_status] > 0before honoring directcharitable_deduction_for_non_itemizersoverrides (so TY2020 and TY2022–2025$0-cap years ignore direct overrides cleanly), flooring active-year overrides at zero;filing_status == JOINT, excluding explicitDEPENDENTtax_unit_role_inputmembers from both joint spouse eligibility and the missing-head fallback, and filtering input dependents in the fallback, matching and hardening Fix federal, Oregon, and Hawaii non-itemizer charitable deductions #11313’s role filter without editing federal files);gov.irs.deductions.itemized.charity.ceiling.all * positive_agilimit (60%in 2026+,100%in 2021);return mandatory | (itemized > standard + overlap)inid_itemizes.py(clean alongside Add joint federal and state itemization and correct deduction worksheets #11157).Source-conflict rulings recorded
Recorded two ruled entries in
source_conflicts/candidates.yaml(without# Source conflictcode markers yet untilknown-source-conflicts.yamlregisters them):us-id:standard-charitable-2021-schedule-a-line-11(follows: statute): Under Idaho Code § 63-3022(j)(1) -> IRC § 170(p) and Idaho’s January 27, 2022 press release (“qualifying organizations”), TY2021 standard-side gifts remain limited to 50%-limit cash contributions rather than importing non-50% Schedule A line 11 cash gifts from the TY2021 Standard Deduction Worksheet line 6 shorthand.us-id:non-itemizer-charity-federal-itemizer-split(follows: statute): Under Idaho Code § 63-3022(j)’s independent Idaho election (and 2021 Form 40 Worksheet line 6 importing Schedule A line 11), Idaho evaluates the § 170(p) allowance under Idaho’s ownid_itemizeselection even when the taxpayer itemizes federally. TY2026 Form 40 instructions remain unpublished and should be re-checked when released. 2021 worksheet, line 6, PDF p. 10 2021 Idaho guidance Current formsTest plan
31 cases in
policyengine_us/tests/policy/baseline/gov/states/id/tax/income/deductions/id_deductions.yamland 5 unit tests inpolicyengine_us/tests/core/test_id_non_itemizer_charity.pyverify:2026 single (
$17,100), joint ($34,200), capped single ($17,100), itemization election switch (False, $17,100),HEAD_OF_HOUSEHOLD($25,150),SURVIVING_SPOUSE($33,200),SEPARATEwhen spouse does not itemize ($17,100), and mandatory separate itemization (True, $10,000);Dependent gift exclusion with explicit
is_tax_unit_head($400head +$600dependent ->$16,500), withoutis_tax_unit_headfallback ($16,500), and under forced-falseis_tax_unit_headwithtax_unit_role_input(HEAD/SPOUSE/DEPENDENTincluding conflictingis_tax_unit_spouse->$32,200), explicitresolved_charitable_cash_donations_50_pctoverride ($16,600), explicitcharitable_cash_donations_50_pct_orgsinput ($16,400),60% * positive_agilimit alongside state addition ($16,700deduction,$14,300taxable income), unearnedtaxable_interest_incomeAGI ($17,100), and fullid_health_insurance_premiums_subtractionretention ($18,500itemized <$16,100 + $1,000 + $2,000,$6,000subtraction);2020 CARES non-duplication, ignored TY2020 & TY2025 direct overrides (
id_agi: $74,700,id_deductions: $12,400/$15,750), reform neutralization guard (both parameter removal &neutralize_variable,$16,100), 2025 non-applicability ($15,750), 2021 federal itemizer electing Idaho standard ($12,850), 2021 non-50%-organization exclusion ($12,550), 2026 federal itemizer electing Idaho standard ($17,100), and separate 2026 simulations for negative AGI / negative raw cash / negative resolved cash / negative direct override guards ($16,100);Model projection note: TY2026
id_income_taxvalues ($2,715.79 -> $2,662.79single;$5,421.59 -> $5,315.59joint) use C-CPI-U uprated projections ofmain/{single,joint}.yaml(whose published statutory table ends at TY2025); the$53single and$106joint reductions reflect Idaho Code § 63-3024’s statutory 5.3% marginal rate. Idaho Code § 63-3024 Model rateFull
policyengine_us/tests/policy/baseline/gov/states/id/tax/incomeYAML suite (including all 31 cases indeductions/id_deductions.yaml,id_deductions.yaml,id_itemized_deductions.yaml,id_taxable_income.yaml, andid_health_insurance_premiums_subtraction.yaml): 332 passed.test_id_non_itemizer_charity.py(5 passed),test_id_health_insurance_premiums.py,test_source_conflicts.py,test_no_group_variables_in_person_adds.py,test_no_in_place_writes_to_cached_arrays.py,test_no_engine_time_randomness.py, andtest_reference_urls.pypass (325 passed);ruff checkandruff format --checkpass.Both
us-id:standard-charitable-2021-schedule-a-line-11andus-id:non-itemizer-charity-federal-itemizer-splitrecorded insource_conflicts/candidates.yaml; one changelog fragment inchangelog.d/.Fixes #11267
Follow-ups: #11717
axiom: TheAxiomFoundation/rulespec-us#2939 queued