Repository navigation
Conversation
NMSA chapter 7 article 2 bars "a dependent of another individual" from several credits and exemptions that the model gave anyway, and counts as dependents only those allowed under IRC 152, which leaves a return with a claimable filer none (IRC 152(b)(1)). Now: - the child income tax credit (7-2-18.34) needs a filer who cannot be claimed; - the 65+ medical care credit (7-2-18.13) needs a filer who is both 65+ and not claimable, and it and the 65+ medical exemption (7-2-5.9) no longer count a dependent's age; - the elderly property tax rebate (7-2-18) and the 100+ exemption (7-2-5.7) apply per filer; - the working families credit (7-2-18.15) applies the federal childless-filer dependent test and the filer-only age test; - the child day care credit (7-2-18.1) and the deduction for certain dependents (7-2-39) count no dependents when a filer can be claimed. On a joint return, a spouse who cannot be claimed keeps the credits that TRD's PIT-RC instructions say "your spouse may still qualify to claim". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- EITC: the child route counts qualifying children under IRC 32(c)(3) (a dependent under 19, a student under 24, or permanently and totally disabled) instead of members under 18, so the filer-only age test and the dependent test no longer deny a return with an older qualifying child. - Property tax rebate reference opens the page with the qualifications. - Tests: older qualifying children, swapped unclaimed controls, and centenarian cases in the property test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ing children The child route still counts members under 18 (so abstract fixtures and head-less units behave as before) and adds qualifying children under IRC 32(c)(3) aged 18 or over. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # policyengine_us/variables/gov/states/nm/tax/income/credits/nm_medical_expense_credit.py
Dependent rules (child care credit child, certain-dependents deduction) and the childless EITC read the claimable-and-not-within-the-filing-exception helper; the "not a dependent of another individual" rules read claimability. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A spouse or head under 18 made a childless joint return look as if it had a child, which bypassed the dependent test. The child route now needs a member under 18 who is not a filer, or an older qualifying child. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A member under 18 who is not a qualifying child under IRC 32(c)(3) no longer makes the return look as if it had a child, which bypassed the dependent test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
Hand-off to the US + core hub
Pending (not mine to do):
Follow-ups: listed in #10087 under "Follow-ups"; the hub holds the regional state PRs stacked on the federal branch. Session |
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
New Mexico bars "a dependent of another individual" from several credits and exemptions, and counts as dependents only those allowed under IRC 152, which leaves a return with a claimable filer none (IRC 152(b)(1)). The model applied none of these, and two 65+ provisions counted a dependent's age as if it were a filer's. On a joint return, TRD's PIT-RC instructions say a spouse who is not a dependent "may still qualify to claim rebates or credits" (2025 PIT-RC p.2), so those credits stay for that spouse.
Which fact each rule reads (#10024 separates them): the "not a dependent of another individual" rules (child income tax credit, medical care credit, property tax rebate, centenarian exemption) read whether a filer can be claimed; the rules that need dependents (child care credit child, certain-dependents deduction) and the childless EITC read whether a filer can be claimed and the filing exception does not apply (Pub. 501, Pub. 596).
Stacked on the federal claimable-filer PR (which corrects
exemptions_countand with it the low-income comprehensive tax rebate and the low- and middle-income exemption) and on #10024.nm_ctceitc_child_count, which #10047 replaces with a 152(c) count)nm_medical_expense_creditnm_medical_expense_exemptionnm_eitc_demographic_eligiblenm_property_tax_rebate_eligiblenm_hundred_year_exemptionnm_cdcc_eligible_childnm_deduction_for_certain_dependentsReadings for Max (queue via the US + core hub)
Not changed: the centenarian exemption still treats all of a couple's income as community income (half each), which predates this PR; an independent centenarian with $10,000 of separate income and a younger spouse gets $5,000 exempted, not $10,000. Also not changed: the medical expense exemption's threshold. The code and the PIT-ADJ instructions use "$28,000 or more"; NMSA 7-2-5.9(A) says expenses that "exceed" $28,000. #10047 documents that conflict.
Invariants
Tests
81f0f97d1b: the changed YAML files and the test folders next to every changed variable (18 files): 164 passed, 0 failed.policyengine_us/tests/core/test_claimable_filer_nm_invariants.pyfor 2023, 2025 and 2026. Hypothesis batches check invariant 1; a seeded New Mexico population and crafted centenarian couples check 1 and 2. 4 tests passed, 0 failed, in 35 s with a peak memory footprint of 1.8 GB (/usr/bin/time -l).Microsimulation impact
Real microsimulations on the default dataset (
hf://datasets/policyengine/populace-us/populace_us_2024.h5@populace-us-2024-spm-20260909) for 2025 and 2026, compared record by record. In that dataset no person can be claimed as a dependent on another return (claimable_as_dependent_on_another_returnis true for 0 of 166,321 people), so every rule gated on it is inactive there; the runs check that nothing else moves.This stack's federal branch (
35a2cbcbb9) against a local merge of the four state branches onto it (13d24ac157). Each state branch changes only its own state's variables, so the comparison is split by state.household_net_income (New Mexico households)nm_eitc_demographic_eligiblenm_eitchousehold_net_income (New Mexico households)nm_eitc_demographic_eligiblenm_eitcWhat changes (22 records each year, all with federal EITC $0): 16 are one-person tax units of a filer aged 3 to 17. Before,
tax_unit_childrencounted that filer as the return's own child, which opened the child route; four of them got a New Mexico EITC of $11 to $62. Now the child route needs a qualifying child, and they are below New Mexico's minimum childless age. The other six are returns whose filers are all 67 or older, where only an adult dependent met the age range; their New Mexico EITC was already $0. Household net income changes in the three households that hold the four tax units.Axiom parity
axiom: us-nm/statutes/7-2-18/34 queued (NM1: TheAxiomFoundation/rulespec-us#1687) | us-nm/statutes/7-2-18/13 queued (NM1: TheAxiomFoundation/rulespec-us#1687) | us-nm/statutes/7-2-5/9 queued (NM1: TheAxiomFoundation/rulespec-us#1687) | us-nm/statutes/7-2-18/15 queued (NM1: TheAxiomFoundation/rulespec-us#1687) | us-nm/statutes/7-2-39 queued (NM1: TheAxiomFoundation/rulespec-us#1687) | us-nm/statutes/7-2-18 queued (NM1: TheAxiomFoundation/rulespec-us#1687) | us-nm/statutes/7-2-18/1 queued (NM1: TheAxiomFoundation/rulespec-us#1687) | us-nm/statutes/7-2-5/7 queued (NM1: TheAxiomFoundation/rulespec-us#1687)
Every
queueditem is ape-parityissue filed in TheAxiomFoundation/rulespec-us on 2026-10-12 (verbatim law, required outputs, review finding, companion tests).🤖 Generated with Claude Code