Repository navigation
Conversation
…ests New Mexico's modified gross income (NMSA 1978 § 7-2-2(L)(9), (11)) and Oklahoma's gross household income (OAC 710:50-15-96(c); Form 538-S line 6) count pensions and annuities whether or not they are taxed, but both lists counted only pension_income, which leaves out military retired pay. Add military_retirement_income, which also carries military survivor annuities, with a test for each. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LqCGPgxDukji8Bhs57c5rH
This was referenced Nov 9, 2026
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.
New Mexico and Oklahoma count pensions and annuities in the income tests for their low-income credits, whether or not the state taxes them. PolicyEngine-US counted only
pension_income, which leaves out military retired pay. A military retiree's credit income was therefore understated, and some retirees kept credits they don't qualify for.Changes
gov.states.nm.tax.income.modified_gross_income)gov.states.ok.tax.income.credits.gross_income_sources)Both lists now include
military_retirement_income, which adds the retiree's pay (military_retirement_pay) and military Survivor Benefit Plan annuities (military_retirement_pay_survivors). Both lists sit undertax/, so the military retirement readers guard (#10317) allows either input. The total is used because a survivor annuity is an annuity under both rules.These are income tests only. New Mexico still exempts up to $30,000 of military retired pay from its income tax (NMSA 1978 § 7-2-5.13), and Oklahoma exempts all of it (68 O.S. § 2358(E)(17)).
Effect
The state-law check of the Veterans Day post (PolicyEngine/policyengine-app-v2#1523) found this gap. A retired couple, both 67, with $45,000 of military retired pay and $30,000 of Social Security has $30,000 of New Mexico modified gross income and Oklahoma gross household income on main. With the pay counted, it's $75,000:
The same couple with a civilian pension already got these results.
Tests
nm_modified_gross_income.yaml: wages $20,000, military retired pay $30,000 and a $6,000 survivor annuity give $56,000.ok_gross_income.yaml: wages $10,000, military retired pay $15,000 and a $2,000 survivor annuity give $27,000.Locally, the NM modified gross income, NM rebate and NM child day care files, and the OK gross income, sales tax credit and property tax credit files, all pass.
Not included
The Kansas disabled veteran exemption fix the same check recommended is in Ziming's #10768.
axiom: TheAxiomFoundation/rulespec-us#2146 queued (New Mexico § 7-2-2(L)(9), (11)); TheAxiomFoundation/rulespec-us#2147 queued (Oklahoma OAC 710:50-15-96(c))
🤖 Generated with Claude Code
https://claude.ai/code/session_01LqCGPgxDukji8Bhs57c5rH