Skip to content

Add MO $1,400 head of household additional exemption (Line 15)#7824

Merged
PavelMakarchuk merged 4 commits intomainfrom
fix-mo-hoh-additional-exemption
Mar 24, 2026
Merged

Add MO $1,400 head of household additional exemption (Line 15)#7824
PavelMakarchuk merged 4 commits intomainfrom
fix-mo-hoh-additional-exemption

Conversation

@PavelMakarchuk
Copy link
Collaborator

Summary

  • Add the $1,400 Missouri additional exemption for Head of Household and Qualifying Surviving Spouse filers (MO-1040 Line 15)
  • This is a separate MO-specific provision, not tied to the suspended federal personal/dependent exemptions

Closes #7793.

Change

  • New parameter: gov.states.mo.tax.income.exemptions.head_of_household = $1,400
  • New variable: mo_head_of_household_exemption — returns $1,400 for HoH/QW filers, $0 otherwise
  • Updated mo_taxable_income formula to subtract the exemption alongside other deductions
  • Updated existing TAXSIM integration test (HoH taxable income now $1,400 lower, closer to TAXSIM reference)

Test plan

  • 5 unit tests for mo_head_of_household_exemption (HoH, QW, Single, Joint, Separate)
  • 2 integration tests for mo_taxable_income (HoH with exemption vs Single without)
  • Updated TAXSIM integration test reflects corrected values
  • All 251 MO tests pass
  • make format clean

🤖 Generated with Claude Code

PavelMakarchuk and others added 3 commits March 22, 2026 19:40
Missouri provides a $1,400 additional exemption for Head of Household
and Qualifying Surviving Spouse filers. This is a separate MO-specific
provision, not tied to the suspended federal personal exemptions.

Closes #7793.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Correct statute reference from 143.151 to 143.161(2)
- Add MO-1040 instruction references for 2021-2024
- Start parameter at 2021 (statute in effect since 1999; no TCJA
  suspension unlike dependent exemption in 143.161(1))
- Add 2021 and 2022 period tests
- Update TAXSIM integration test for 2021 HoH

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Shorten parameter description to single sentence per standards
- Trim redundant year-by-year instruction references to statute + one form
- Fix pre-existing missing commas in mo_taxable_income.py reference tuple

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@codecov
Copy link

codecov bot commented Mar 23, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (6e42726) to head (1602ecb).
⚠️ Report is 123 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##              main     #7824    +/-   ##
==========================================
  Coverage   100.00%   100.00%            
==========================================
  Files           64         2    -62     
  Lines          707        38   -669     
  Branches         1         0     -1     
==========================================
- Hits           707        38   -669     
Flag Coverage Δ
unittests 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Correct #page=9 to #page=8 in parameter and variable reference URLs
(Line 15 is on page 8, confirmed by cross-referencing other MO params).
Add 2024 MO-1040 Instructions reference to mo_taxable_income.py.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@PavelMakarchuk PavelMakarchuk marked this pull request as ready for review March 24, 2026 15:17
@PavelMakarchuk PavelMakarchuk requested a review from DTrim99 March 24, 2026 15:42
@DTrim99
Copy link
Collaborator

DTrim99 commented Mar 24, 2026

PR Review: Add MO $1,400 Head of Household Additional Exemption

🟢 No Critical Issues Found

This PR is well-implemented and ready to merge.


Validation Summary

Check Result
Regulatory Accuracy ✅ $1,400 matches RSMo 143.161(2)
Reference Quality ✅ Statute explicitly states "one thousand four hundred dollars"
Code Patterns ✅ No hard-coded values, proper parameter usage
Test Coverage ✅ All 5 filing statuses + integration tests
CI Status ✅ All checks passing

What Was Verified

Regulatory Research:

  • RSMo 143.161(2) confirms: "a resident who qualifies as an unmarried head of household or as a surviving spouse for federal income tax purposes may deduct an additional one thousand four hundred dollars"
  • Amount: $1,400 ✅
  • Eligibility: HoH and Surviving Spouse ✅
  • Effective: Since January 1, 1999 (parameter starts 2021 - conservative but correct)

Code Quality:

  • Uses parameter (p.head_of_household) not hard-coded value
  • Correct entity level (TaxUnit)
  • Proper defined_for = StateCode.MO
  • Reference tuple format is correct

Test Coverage:

  • HEAD_OF_HOUSEHOLD: $1,400 ✅
  • SURVIVING_SPOUSE: $1,400 ✅
  • SINGLE: $0 ✅
  • JOINT: $0 ✅
  • SEPARATE: $0 ✅
  • Historical years (2021, 2022, 2024) ✅
  • Integration tests with mo_taxable_income ✅

🟡 Minor Suggestion (Optional)

YAML section ordering: The parameter file has values: after metadata:. The standard pattern places values: before metadata:. This works correctly but could be reordered for consistency:

description: ...
values:
  2021-01-01: 1_400
metadata:
  ...

This is cosmetic and not blocking.


Recommendation

APPROVE - Clean implementation that correctly reflects Missouri law.

🤖 Generated with Claude Code

@PavelMakarchuk PavelMakarchuk merged commit a4dea53 into main Mar 24, 2026
9 checks passed
@PavelMakarchuk PavelMakarchuk deleted the fix-mo-hoh-additional-exemption branch March 24, 2026 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MO missing $1,400 Head of Household additional exemption (Line 15)

2 participants