Repository navigation
Apply the federal TIN tests to the Maine dependent exemption credit - #10286
PavelMakarchuk wants to merge 1 commit into
Conversation
36 MRSA 5219-SS allows the credit for each qualifying child and dependent for whom the taxpayer was eligible to claim the federal credit under section 24, and the 2025 worksheet counts the dependents on Form 1040ME line 13a (Child Tax Credit or credit for other dependents). Count each dependent with a positive section 24 amount (ctc_individual_maximum), so a dependent without an SSN, ITIN or ATIN, or a return with a filer without an SSN or ITIN, gets no credit. The section 24 amount already applies IRC 152(b)(1), so the separate claimable-filer check is removed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
hua7450
left a comment
There was a problem hiding this comment.
Approving this PR's own change. It is stacked on 10284 and 10280, and 10280 still has changes requested.
I checked it against 36 MRSA 5219-SS, which allows the credit "for each qualifying child and dependent of the taxpayer for whom the taxpayer was eligible to claim the federal child tax credit pursuant to the Code, Section 24". I also checked Form 1040ME line 13a and the 2025 Dependent Exemption Tax Credit Worksheet, and I recomputed every case in both dependent exemption test files by hand.
- Law. P.L. 2025, c. 650, Part K, §25 did repeal the 2026 subsections (1-A, 2-A, 3-A), so the section 24 basis continues.
- Years. The credit and the federal credit for other dependents both start in 2018, so
ctc_individual_maximum > 0gives the line 13a count in every year the credit exists. - Dropped check. Removing the explicit claimable-filer check from 10089 is safe. Both federal amounts already apply 152(b)(1), and the 10089 cases still recompute.
- Other tests. The three Maine credits integration cases still pass.
Nits:
- Duplicate logic. This adds a second copy of the line 13a test, with its own legal comment, next to
me_fairness_credit_qualifying_childrenfrom 10284. Both credits use the same form line, so one Maine person-level flag would keep them from drifting. For example,me_section_24_dependentwould hold the comment and references once. The fairness count would then becomeadds = ["me_section_24_dependent"], and this variable would use it asdefined_for. That flag is also the natural place to test eligibility rather than the federal amount (see the next point). It could land here or in 10284. - AFA reform. Because the test reads a federal amount, the
afa_other_dependent_creditreform drops every non-CTC dependent from this credit: it setsctc.amount.adult_dependentto 0 from 2025 and moves the credit for other dependents to its own variable. Your body notes the coupling; please name AFA there. Baseline results are exact. - Reference. The
i1040s8.pdfhref is the rolling current-year file, labelled as the 2025 instructions. Usehttps://www.irs.gov/pub/irs-prior/i1040s8--2025.pdf#page=1. - Filerless test cases. The edited "Non CTC eligible child" case and the two cases before it are one-person units with no head. The filer tests therefore pass vacuously, and the new comment describes a filer who is not there. Adding a head (age 30, default IDs) would make these cases exercise the filer rule.
- Optional cases:
- a 2024 joint return where one spouse has
has_tin: falseand a child aged 8: $0 at head, $300 before. This is the only pre-2025 change in this PR. - a 2025 child aged 4 with
ssn_card_type: NONEandhas_tin: true: $610. - one 2026 case.
- a 2024 joint return where one spouse has
Follow-ups, separate PRs:
has_tinis labelled "Has TIN (ITIN or SSN)", but for dependents an ATIN also qualifies. This PR now relies on that input for a state credit.- The three cases in
credits/integration.yamluseabsolute_error_margin: 1on whole-dollar outputs of this credit. - One case name in
me_dependent_exemption_credit.yamlsays "$300" but asserts the 2025 amount of 305.
Accepted limitations, already noted in your body: the 24(h)(4)(B) exclusion for dependents who are not U.S. citizens, nationals or residents, TIN issuance dates, and 24(g) disallowance periods have no model inputs.
Summary
The Maine dependent exemption credit (36 MRSA 5219-SS) counted every tax-unit dependent. It did not apply the federal identification tests, so it gave the credit for a dependent without an SSN, ITIN or ATIN, and for the children of a filer without any TIN.
This PR allows the credit only for a dependent with a positive section 24 amount (
ctc_individual_maximum > 0), which is the rule that #10284 uses forme_fairness_credit_qualifying_children.Stacked PR. This branch is cut from
me-fairness-credit-odc-dependents(#10284), which is stacked onctc-qualifying-children-filer-id(#10280). Neither is merged yet. The diff against #10284 is one formula, one YAML file and one changelog fragment. Retarget tomainafter #10280 and #10284 merge.Law and forms
P.L. 2025, c. 650, Part K, §25 repealed the scheduled 2026 subsections (1-A, 2-A, 3-A), so the section 24 basis continues after 2025.
Change
me_dependent_exemption_credit_amount_personnow readsctc_individual_maximum(the child CTC or ODC amount for the person, before the phase-out). A dependent counts when either federal credit is allowed for that person:The explicit claimable-filer check from #10089 is removed, because
ctc_individual_maximumalready applies IRC 152(b)(1) to both the CTC and the ODC. The #10089 YAML cases inme_dependent_exemption_credit.yamlstill pass.Notes:
ctc_adult_individual_maximum, so the Maine count inherits that gap.Tests
New cases in
me_dependent_exemption_credit_amount_person.yaml(2025):The three $0 cases fail on the old formula; the two positive cases guard the ODC path. The existing "Non CTC eligible child" case keeps its $610 result and its comment now names the ODC path.
Local runs (macOS, Python 3.14):
test_batched.py policyengine_us/tests/policy/baseline/gov/states/me --mode per-subdir --workers 1: 657 passed, 0 failed (Count dependents for the credit for other dependents in the Maine fairness credits #10284 had 652; this PR adds 5).policyengine_us/tests/policy/contrib/states/meandedaa_end_child_poverty_act.yaml: 13 passed.policyengine_us/tests/core/test_claimable_filer_or_me_hi_invariants.py(readsme_dependent_exemption_credit): 4 passed.No partner test uses a Maine household, so no partner contract changes.
axiom: TheAxiomFoundation/rulespec-us#1686 queued (5219-SS lawful section 24 dependents; blocked on the Maine corpus re-pin in TheAxiomFoundation/rulespec-us#1651). The 5219-SS TIN companions from this PR are posted at TheAxiomFoundation/rulespec-us#1686 (comment).
🤖 Generated with Claude Code