Skip to content

Give Michigan's qualified disabled veteran exemption to every veteran with a service-connected disability - #10714

Merged
MaxGhenis merged 3 commits into
mainfrom
fix-mi-disabled-veteran-exemption
Nov 21, 2026
Merged

MaxGhenis merged 3 commits into
mainfrom
fix-mi-disabled-veteran-exemption

Conversation

@MaxGhenis

@MaxGhenis MaxGhenis commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

What was wrong

PolicyEngine-US gave Michigan's qualified disabled veteran exemption only to veterans marked is_fully_disabled_service_connected_veteran, a 100% VA rating. Michigan law gives it to every veteran with a service-connected disability, at any rating, so a veteran rated 30% or 70% got no exemption, and the home heating credit's exemption count left them out too.

The law

  • MCL 206.30(3)(b) allows "$250.00 for each taxpayer and every dependent of the taxpayer who is a qualified disabled veteran", and defines:
    • (i) "Qualified disabled veteran" means a veteran with a service-connected disability.
    • (ii) "Service-connected disability" means a disability incurred or aggravated in the line of duty in the active military, naval, or air service as described in 38 USC 101(16).
    • (iii) "Veteran" means an individual who served in the active military, naval, marine, coast guard, or air service and who was discharged or released with an honorable or general discharge.
  • MCL 206.30(7) adjusts the subsection (3) exemptions by the ratio of the CPI to its 1998-1999 state fiscal year level, rounded to the nearest $100. The 2025 MI-1040 instructions (line 9c) give $500 and repeat the definition: a veteran "who received an honorable or general discharge and has a disability incurred or aggravated in the line of duty as described in 38 USC 101(16)". No rating threshold appears in either.
  • The home heating credit counts the same exemption: the MI-1040CR-7 instructions (line 15c) list "an additional exemption … for qualified disabled veterans" among the exemptions a claimant counts.
  • A VA rating of 0% still marks a service-connected disability: 38 CFR 4.31 assigns "a zero percent evaluation ... when the requirements for a compensable evaluation are not met".

Change

  • New Person input is_service_connected_disabled_veteran (variables/household/demographic/person/): a veteran with a disability incurred or aggravated in the line of duty (38 U.S.C. 101(16)), at any VA rating, 0% included. It has no formula, so it defaults to false and the web app's household builder, which lists only input variables, offers it. Its documentation says that it does not set is_veteran (which follows veterans_benefits), that the 100% input does not set it, and that the model has no discharge input.
  • New mi_qualified_disabled_veteran (Person, defined for Michigan): true when is_service_connected_disabled_veteran or is_fully_disabled_service_connected_veteran is. A veteran marked only with the 100% input keeps the exemption, and a person marked with both counts once.
  • mi_exemptions and mi_exemptions_count (the home heating credit's count) add mi_qualified_disabled_veteran across the head, the spouse and every dependent, in place of is_fully_disabled_service_connected_veteran. The comment in mi_exemptions and the helper's comment record the discharge assumption below.
  • disabled/amount/veteran.yaml:
    • The description reads "for each qualified disabled veteran on the return under the qualified disabled veteran exemption", since a household member outside the return doesn't count.
    • It cites the 2025 MI-1040 instructions (line 9c), and it drops the 2025 Withholding Guide (Form 446), which shows no veteran amount.
    • The Taxpayer's Guide and 2021 manual titles lose their page text; the hrefs keep #page=. The Taxpayer's Guide title names the edition its live link serves, the 2025 tax year, which shows $500 on file page 12.
  • test_state_tax_head_spouse_swap_invariance.py draws the new input, and test_input_variable_definitions.py asserts that it is an input variable with a false default.

This PR leaves the other readers of is_fully_disabled_service_connected_veteran as they are: Missouri's property tax credit, Illinois's CTA military service pass, Virginia's energy assistance, military_disabled_head and military_disabled_spouse. Washington's property tax exemption reads its own inputs, wa_pte_va_service_connected_rating and wa_pte_receives_va_disability_compensation. A rating doesn't fit Michigan's test, which names none, so this PR doesn't read them.

Readings

  • Any rating, 0% included. The definition in (3)(b)(i)-(ii) names no rating, and the MI-1040 and MI-1040CR-7 instructions repeat it without one. The statute and the instructions agree, so this PR records no source conflict.
  • Discharge. PolicyEngine-US records no discharge status, so either input stands for a veteran with an honorable or general discharge, as (3)(b)(iii) requires. 38 U.S.C. 101(2) admits any discharge "other than dishonorable", so a veteran with another discharge type who sets either input gets an exemption Michigan doesn't allow.
  • Taxpayer or dependent, not both. (3)(b) lets a dependent who files claim the exemption only if the taxpayer doesn't. A PolicyEngine-US dependent sits only in the claimer's tax unit, so the model can't count one person twice.

Invariants

For every input:

  • mi_qualified_disabled_veteran equals is_service_connected_disabled_veteran or is_fully_disabled_service_connected_veteran for a Michigan resident and is false elsewhere. The tests cover the whole truth table.
  • Each tax-unit member adds at most one veteran exemption, so mi_exemptions exceeds its value without veterans by at most $500 (2024 on) times the unit's size, and mi_exemptions_count by at most the unit's size.
  • Setting either input to true never lowers mi_exemptions or mi_exemptions_count.
  • A unit in which nobody sets is_service_connected_disabled_veteran gets the same mi_exemptions and mi_exemptions_count as main.
  • Swapping head and spouse leaves Michigan income tax unchanged (test_state_tax_head_spouse_swap_invariance.py, now drawing the new input).

Tests

  • mi_qualified_disabled_veteran.yaml, 7 cases: a partial rating, the 100% input alone, the 100% input with the any-rating input set false, neither input, a VA beneficiary without a service-connected disability, an Ohio resident, and four Michigan residents covering every combination of the two inputs.
  • mi_exemptions.yaml, 6 new 2026 cases: a partial rating ($5,900 + $500 = $6,400), the 100% input alone ($6,400), both inputs on one person (counted once, $6,400), a joint return with two veterans ($11,800 + $1,000 = $12,800), a head and an adult dependent who are both veterans (3 x $5,900 + 2 x $500 = $18,700), and a VA beneficiary without a service-connected disability ($5,900).
  • mi_exemptions_count.yaml, 3 new cases: two people, one with a partial rating (3); one person with both inputs (2); and four single filers covering every combination of the inputs (1, 2, 2, 2).
  • test_input_variable_definitions.py: the new input is an input variable with a false default. YAML can't check this, and a formula would hide the input from the web app.
  • Mutation check: each new term fails at least one test when removed or replaced. Dropping either side of the helper's or, reading either input alone (or both added) in mi_exemptions or mi_exemptions_count, dropping the veteran term, dropping the helper's defined_for, and giving the input back a default formula each fail.

Locally, all 736 cases under tests/policy/baseline/gov/states/mi pass, as do tests/core/test_input_variable_definitions.py, tests/core/test_state_tax_head_spouse_swap_invariance.py and tests/code_health/test_military_retirement_readers.py.

Before and after

A single Michigan filer in 2026, aged 40, with $40,000 of wages, computed on main (3386304) and on this branch:

Veteran's rating mi_exemptions before after mi_income_tax before after
Partial (is_service_connected_disabled_veteran) $5,900 $6,400 $1,449.25 $1,428.00
100% (is_fully_disabled_service_connected_veteran) $6,400 $6,400 $1,428.00 $1,428.00

The new input defaults to false, so microsimulation results don't change until a dataset sets it.

axiom: us-mi/statute/206.30/3 queued (TheAxiomFoundation/rulespec-us#2076)

🤖 Generated with Claude Code

… with a service-connected disability

MCL 206.30(3)(b) allows the exemption for each qualified disabled veteran,
defined as a veteran with a service-connected disability (38 U.S.C. 101(16)),
with no rating threshold. PolicyEngine-US read is_fully_disabled_service_connected_veteran,
so veterans with partial ratings got nothing. Add a has_service_connected_disability
input that defaults to the fully disabled flag, and read it in mi_exemptions and
mi_exemptions_count (the home heating credit's count).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@MaxGhenis

Copy link
Copy Markdown
Contributor Author

David, can you check the Michigan exemption here? MCL 206.30(3)(b) and the 2025 MI-1040 instructions give a $500 exemption for each veteran on the return with a service-connected disability, at any rating. So the PR adds a person input, has_service_connected_disability, which defaults to is_fully_disabled_service_connected_veteran and lets a user flag a veteran with a partial rating. Would you model it another way? If you can look by Tuesday afternoon, we can merge it before the Veterans Day post (PolicyEngine/policyengine-app-v2#1523).

@codecov

codecov Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (aae7f98) to head (8976ec0).
⚠️ Report is 151 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main    #10714   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         3    +2     
  Lines           37        48   +11     
=========================================
+ Hits            37        48   +11     
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 Harness.
📢 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.

@DTrim99

DTrim99 commented Nov 9, 2026

Copy link
Copy Markdown
Collaborator

PR Review: Give Michigan's qualified disabled veteran exemption to every veteran with a service-connected disability

Summary

The law supports the fix. MCL 206.30(3)(b) gives an additional exemption "for each taxpayer and every dependent of the taxpayer who is a qualified disabled veteran". It defines that as "a veteran with a service-connected disability": a disability "incurred or aggravated in the line of duty ... as described in 38 USC 101(16)", held by a veteran with an honorable or general discharge. Neither the statute nor the 2023-2025 MI-1040 or MI-1040CR-7 instructions set a VA rating threshold. Before this PR, the model gave the exemption only to is_fully_disabled_service_connected_veteran, which is wrong for a veteran rated below 100% in every year.

The model now counts the exemption per person, across the head, the spouse and each dependent. It uses the right amounts ($400 for 2023, $500 for 2024-2026) and feeds both readers: mi_taxable_income and the home heating credit's exemption count. No existing variable records a service-connected disability at any rating, so adding a person variable doesn't duplicate one. The tests pass locally (33/33 in the three YAML files), and 15 hand-checks match.

One issue remains. The new variable has a default formula, so PolicyEngine treats it as computed, not as an input, and the web calculator's household builder won't offer it. That leaves the fix out of reach for calculator users, including readers of the Veterans Day post that cites this PR. Making it a plain input fixes this.

Critical (must fix)

None.

Should address

  1. has_service_connected_disability is not an input variable, so the web calculator can't set it (policyengine_us/variables/household/demographic/person/has_service_connected_disability.py:19-20).
    • policyengine-core's Variable.is_input_variable() returns true only when a variable has no formula and no adds/subtracts (no_specified_formulas = len(self.formulas) == 0). The API sends that value as isInputVariable.
    • policyengine-app-v2's household builder builds its picker from getInputVariables(metadata). That function keeps only variables with v.isInputVariable && !v.hiddenInput (app/src/utils/VariableResolver.ts, used by HouseholdBuilderForm.tsx).
    • Because of the formula that defaults to is_fully_disabled_service_connected_veteran, the new variable will not appear there. Calculator users will still see only the 100%-rating input, which already gave the exemption, so the partial-rating fix is reachable only through the API or Python.
    • The PR body calls it a "new Person input" that "lets a user flag a veteran with a partial rating". The Veterans Day post (policyengine-app-v2#1523) waits on this PR and plans a calculator link.
    • Fix: drop the formula so the variable is a plain bool input (default False), and have Michigan count a person who is has_service_connected_disability | is_fully_disabled_service_connected_veteran. That can be an inline OR in mi_exemptions plus a person-level helper for mi_exemptions_count (which uses adds), such as mi_qualified_disabled_veteran.
    • This keeps the invariant that every existing fully-disabled input still gets the exemption, and it keeps "counted once". Move the default case in has_service_connected_disability.yaml to the Michigan tests: mi_exemptions case 2 already pins that a 100%-rated veteran is counted once.
    • The same consideration applies to the "defaults to X; set to override" inputs in Follow the statute for the NYC school tax rate reduction, IN supplemental homestead, VA 529 and WA senior/disabled property tax exemption #10330 (see Suggestions).

Suggestions

  1. Record the discharge assumption in the code, not just the PR body. (3)(b)(iii) requires "an honorable or general discharge". The new variable's documentation says only "a veteran", and a general-purpose variable would naturally be read with the 38 USC 101(2) meaning ("other than dishonorable"). That meaning admits some veterans Michigan excludes. Add one line to the mi_exemptions comment: the model has no discharge input, so the variable stands for a veteran with an honorable or general discharge.
  2. Name or label clarity. has_service_connected_disability doesn't say "veteran", but the label and Michigan's test require veteran status. An active-duty member with a line-of-duty disability is not yet a veteran. A name like is_service_connected_disabled_veteran would match is_fully_disabled_service_connected_veteran and prevent misuse.
    • Also note in the documentation that the variable doesn't set is_veteran. That variable derives from veterans_benefits > 0, so programs that read it won't see a veteran flagged only through this input.
  3. Coordinate with Follow the statute for the NYC school tax rate reduction, IN supplemental homestead, VA 529 and WA senior/disabled property tax exemption #10330. That open PR adds Washington-scoped VA inputs: wa_pte_va_service_connected_rating (a combined rating as a fraction) and wa_pte_receives_va_disability_compensation, which defaults to the 100% input. If both merge, a rated veteran in Washington would need two unrelated inputs.
    • A bool fits Michigan better than a rating. A 0%-rated service-connected condition is still "a disability incurred or aggravated in the line of duty", and a "rating > 0" test would miss it.
    • A later shared federal rating input could still feed both states.
  4. Clean up the veteran.yaml reference list while you're editing it (pre-existing problems, not introduced here):
    • The "Michigan 2025 Income Tax Withholding Guide (Form 446)" entry (#page=2) doesn't show the $500 veteran amount. The whole guide only says Michigan "has additional special exemptions that are claimed on a taxpayer's Michigan income tax return". Drop it; the new 2025 MI-1040 line 9c entry corroborates 2025.
    • "Michigan Taxpayer's Guide 2022 - page 12" and "2021 Michigan Taxpayer Assistance Manual - page 10" put page text in the title. CLAUDE.md wants the page only in the href.
  5. Description wording. "for each qualified disabled veteran in the household" would be more accurate as "on the return" (taxpayer, spouse and dependents), since a non-dependent household member doesn't count. The house template ("Michigan provides this amount ... under the ... exemption") could also be used.

Verified correct

  • Statute (MCL 206.30(3)(b), per the official text and rulespec-us#2076's verbatim quote).
    • "$250.00 for each taxpayer and every dependent of the taxpayer who is a qualified disabled veteran".
    • (i) "a veteran with a service-connected disability".
    • (ii) "a disability incurred or aggravated in the line of duty in the active military, naval, or air service as described in 38 USC 101(16)".
    • (iii) "an honorable or general discharge".
    • No rating threshold appears.
    • (3)(a) and (3)(b) are separate exemptions, so one person can take both. The model adds both (probe E).
    • The "taxpayer or dependent, but not both" rule can't double count here, because a PolicyEngine dependent sits only in the claimer's unit.
  • Instructions.
    • 2025 MI-1040 book p. 3 ("The exemption allowance for qualified disabled veterans is $500") and line 9c, p. 10. The same definition and "veteran of the active military, naval, marine, coast guard, or air service who received an honorable or general discharge" also appear in the 2023 book (line 9c, $400).
    • Schedule NR Worksheet 6 (2025 book, file p. 35) uses "Number of ... qualified disabled veteran exemption from MI-1040, line 9c ___ x $500", confirming a per-person count.
    • 2025 MI-1040CR-7 line 15c (file p. 7) uses the same definition and counts it as a home heating credit exemption ("An additional exemption is available for qualified disabled veterans").
  • Amounts.
    • 2023 $400 (2023 MI-1040 book p. 3), 2024 $500 (2024 instructions p. 3), 2025 $500 (2025 book pp. 3 and 10).
    • 2026 $500 follows from (7): $250 times the CPI ratio to SFY 1998-99, about 1.9-2.0, gives roughly $480-$495, which rounds to $500. A $600 amount would need a ratio of 2.2.
  • Per-person counting. add(tax_unit, period, ["has_service_connected_disability"]) counts the head, the spouse and every dependent, matching "each taxpayer and every dependent".
  • Readers.
    • mi_exemptions feeds mi_taxable_income.
    • mi_exemptions_count feeds mi_standard_home_heating_credit (Table A allowance) and mi_alternate_home_heating_credit_eligible (resource cap). Both changes are correct per CR-7 line 15c.
    • The other readers of is_fully_disabled_service_connected_veteran correctly stay on the 100% input: MO PTC exclusion and military_disabled_head/spouse, IL CTA pass, VA EAP.
  • Reuse. No variable at the merge base or on current main records a service-connected disability below 100%. is_permanently_disabled_veteran (NC medical retirement) and is_veteran (from veterans_benefits) are different concepts.
  • Mutation rule. Every changed term fails a test if reverted or deleted:
    • mi_exemptions case 1 pins the new reader (5,900 without it).
    • The count case pins mi_exemptions_count (2 without it).
    • has_service_connected_disability case 1 and mi_exemptions case 2 pin the default and the no-double-count behavior (6,900 if both were added).
  • Other checks.
  • Hand-checks (hand arithmetic, confirmed on the head tree):
    1. mi_exemptions case 1 (2026, partial rating): 5,900 + 1 x 500 = 6,400.
    2. Case 2 (100% rating via the default): 5,900 + 500 = 6,400, counted once.
    3. Case 3 (joint, both veterans): 11,800 + 2 x 500 = 12,800.
    4. Case 4 (VA beneficiary, no service-connected disability): 5,900.
    5. mi_exemptions_count case: 2 + 0 + 1 = 3.
    6. Single 2026 filer, $40,000 wages: (40,000 - 6,400) x 4.25% = $1,428.00 vs (40,000 - 5,900) x 4.25% = $1,449.25. The $21.25 drop matches the PR body.
    7. Same filer, 2023: exemptions 5,400 + 400 = 5,800; (40,000 - 5,800) x 4.05% = $1,385.10.
    8. Same filer, 2025: 5,800 + 500 = 6,300; 33,700 x 4.25% = $1,432.25.
    9. 2026 couple plus a qualifying adult dependent, with the head and the dependent both veterans: 3 x 5,900 + 2 x 500 = 18,700; count 3 + 2 = 5; 41,300 x 4.25% = $1,755.25.
    10. Blind veteran: 5,900 + 3,400 + 500 = 9,800; count 3.
    11. Claimable filer (MCL 206.30(4)) who is a veteran: 1,500 + 500 = 2,000. MI-1040 line 9 adds lines 9a-9e, and (4) bars only the subsection (2) exemption.
    12. Home heating credit, single 70-year-old: the count goes from 1 to 2, the standard allowance rises by (815 - 604) x 2026 uprating ≈ $215.78, and the credit goes from $115.09 to $244.55.
    13. A 100% veteran whose new input is set false: 5,900.
    14. A veteran in OH: all MI variables are 0.
    15. 2026 amount from (7): $500 (see Amounts above).

Axiom line assessment

axiom: us-mi/statute/206.30/3 queued (TheAxiomFoundation/rulespec-us#2076) is a valid queued line: it has a status word and links the issue.

rulespec-us#2076 is OPEN and labelled pe-parity, and it is dispatch-ready:

  • module us-mi/statutes/206.30/3.yaml;
  • corpus path with sha256;
  • verbatim (3)(b)(i)-(iii) and (7);
  • the encoding gap (the undefined ..._claimable_by_tax_unit relation);
  • required outputs, including the person-level qualified_disabled_veteran and the "not both" rule;
  • companion tests drawn from the statute and instructions (a 30% rating counts, a non-service-connected veteran doesn't, a 100% rating counts once, a dependent veteran counts, $500 for 2025 and 2026).

It matches the head's behavior. The line's legal id says statute, while the issue's module path says statutes; that difference is cosmetic.

If the "Should address" item changes the variable to a plain input, the issue body's description of has_service_connected_disability "(defaulting to is_fully_disabled_service_connected_veteran)" should be updated to match. The legal encoding asks are unaffected.

CI status

At the current head 4a67d2b, most checks pass, including:

  • PR validation (lock, guard tests, lint, changelog);
  • Quick Feedback (selective tests and coverage);
  • Package and compatibility;
  • Household API Partners;
  • Baseline household, irs, reform, rest-a, rest-b, contrib-hhs, ssa-usda and states-shards 2-4;
  • Python Rest shards 1-9;
  • codecov patch and project.

Pending at the last check: Microsimulation and Baseline states-shard-1. No failures so far.

Locally on the head tree, the three changed YAML files pass 33/33.

On the tree merged with main:

Branch status

The branch is 1 commit ahead and 46 behind main. git merge-tree --write-tree with main is clean.

Main has changed none of this PR's files since the merge base. #10398 (Michigan military survivor exemptions and mi_military_retirement_subtraction) is already in the merge base and touches different files, and the PR doesn't read military retirement income.

The PR shares no files with the sibling military retirement PRs (#10702 UT, #10713 MT, #10715 ID, #10716 DE, #10717 ID). #10330 (open, not in this batch) adds Washington-scoped VA rating inputs: a design overlap with no file conflict (Suggestion 3).

Verdict: REQUEST_CHANGES

@DTrim99 DTrim99 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Requesting changes per the review above: 0 critical, 1 should (has_service_connected_disability has a default formula, so it isn't an input variable and the web calculator can't set a partial rating; make it a plain bool input and OR it with is_fully_disabled_service_connected_veteran in Michigan), 5 suggestions. The law supports the fix and the amounts check out.

MaxGhenis and others added 2 commits November 11, 2026 12:01
… Michigan helper

has_service_connected_disability had a default formula, so policyengine-core
did not treat it as an input and the web app's household builder could not
offer it. Rename it is_service_connected_disabled_veteran, drop the formula
(default false), and add mi_qualified_disabled_veteran, which ORs it with
is_fully_disabled_service_connected_veteran; mi_exemptions and
mi_exemptions_count read the helper, so a person counts once.

Record the discharge assumption in the helper, mi_exemptions and the input's
documentation, note that the input does not set is_veteran, reword the
parameter description ("on the return"), drop the Form 446 reference and the
page text in two reference titles, and add tests: the helper's truth table,
both inputs on one person, a veteran dependent, and an is_input_variable check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@MaxGhenis

Copy link
Copy Markdown
Contributor Author

David, thanks for the review. 8976ec0 takes your should item and suggestions 1, 2, 4 and 5:

  1. The input is now is_service_connected_disabled_veteran, a plain bool with no formula and false by default, and a new test in test_input_variable_definitions.py checks that is_input_variable() returns true for it. A Michigan helper, mi_qualified_disabled_veteran, holds when that input or is_fully_disabled_service_connected_veteran holds, and mi_exemptions and mi_exemptions_count read the helper, so a person counts once.
  2. The helper, mi_exemptions and the input's documentation record the discharge assumption: the model has no discharge input, so a flagged veteran stands for one with an honorable or general discharge. The documentation also says the input doesn't set is_veteran.
  3. veteran.yaml drops the Form 446 entry and the page text in the two titles, and its description now reads "on the return".
  4. New cases cover the helper's truth table, both inputs on one person and a veteran dependent.
  5. rulespec-us#2076 now describes the plain input and the helper.

#10330 has merged with its Washington rating inputs. I kept Michigan on a bool, since a 0%-rated condition still qualifies, as you noted, and a rating test would miss it. A shared federal rating input could feed both states later.

A Sol review approved this head, with 41 YAML cases, 13 Python checks and 60 edge-case and year probes passing. Could you take another look?

@MaxGhenis
MaxGhenis requested a review from DTrim99 November 13, 2026 14:07
@DTrim99

DTrim99 commented Nov 13, 2026

Copy link
Copy Markdown
Collaborator

PR Review (round 2): Give Michigan's qualified disabled veteran exemption to every veteran with a service-connected disability

Summary

8976ec0 fixes the round-1 should item. The any-rating flag is now is_service_connected_disabled_veteran, a plain bool input with no formula. A new Michigan helper, mi_qualified_disabled_veteran, ORs it with is_fully_disabled_service_connected_veteran, and both mi_exemptions and mi_exemptions_count read the helper. A veteran marked only with the 100% flag keeps the exemption, and a person marked with both flags counts once. A new Python check pins is_input_variable(), so the web calculator's household builder can offer the flag.

The commit also takes suggestions 1, 2, 4 and 5. Max declined suggestion 3 (a rating input shared with Washington) for a reason that holds: Michigan's definition names no rating, and a 0% rating still counts.

I re-read MCL 206.30(3)(b) and the 2023-2025 MI-1040 instructions, and they support the head:

  • Every veteran with a line-of-duty disability qualifies, at any rating, if discharged honorably or generally.
  • The taxpayer, the spouse and every dependent can each count.
  • The amounts are $400 for 2023 and $500 for 2024-2026.

Every new or changed expectation matches my hand trace. All 38 CI checks pass at the head, and the branch merges cleanly with current main. #10768 and #10811 changed only the VA flags' labels and documentation, so main creates no conflict and no double count.

Two optional suggestions remain. Align the new input's label and documentation with the VA flag conventions #10811 set (Suggestion 1), and pin the edition-specific Taxpayer's Guide reference (Suggestion 2).

No Python ran locally for this round. Each claim below rests on reading the head and main, hand traces, or the CI logs at the head, and says which.

Prior findings

Finding Status Evidence
Should 1: has_service_connected_disability had a default formula, so it wasn't an input and the web calculator couldn't offer it Fixed is_service_connected_disabled_veteran.py has no formula, adds or subtracts (reading). test_service_connected_disabled_veteran_is_an_input_variable asserts is_input_variable() and default_value is False. CI's Quick Feedback job ran test_input_variable_definitions.py at the head: 5 passed, which covers the new test (CI log). By my reading, giving the input a formula again would make that test fail, so the mutation rule holds. The helper keeps the invariant that the 100% flag alone still qualifies (mi_exemptions case "only the 100% rating input" and helper cases 2-3), and that a person is counted once (the both-inputs cases in mi_exemptions and mi_exemptions_count).
Suggestion 1: record the discharge assumption in code Fixed The helper's comment quotes (3)(b)(iii) and says each input "stands for a veteran with an honorable or general discharge". mi_exemptions repeats it. The input's documentation says each program reading it "takes the veteran to have the discharge it requires" (reading).
Suggestion 2: name should say "veteran"; note that the input doesn't set is_veteran Fixed The input is renamed is_service_connected_disabled_veteran. Its documentation says "Setting this input does not set is_veteran, which follows veterans_benefits", which matches is_veteran's formula on main, veterans_benefits > 0 (reading).
Suggestion 3: coordinate with #10330's Washington rating inputs Declined, reason accepted Max kept a bool because a 0%-rated condition still qualifies. That reading is right: (3)(b)(i)-(ii) name no rating, 38 CFR 4.31 assigns a 0% evaluation to a service-connected condition, and a "rating > 0" test would miss it. #10330 has merged. Its inputs are Washington-scoped (wa_pte_va_service_connected_rating, wa_pte_receives_va_disability_compensation), share no files with this PR, and no single household needs both states' inputs.
Suggestion 4: veteran.yaml references (Form 446 entry; page text in titles) Fixed The Form 446 entry is gone, and no title carries page text. The Taxpayer's Guide title now names the 2025 tax year: the live PDF is that edition ("for the 2025 tax year"), and file page 12 reads "$500 for each disabled veteran in the household" (fetched). The 2021 manual entry's file page 10 shows $400 for 2017-2020 (Wayback copy, fetched).
Suggestion 5: description wording Fixed The description now reads "Michigan provides this amount for each qualified disabled veteran on the return under the qualified disabled veteran exemption", which follows the house template and the "on the return" scope.
Axiom note: update rulespec-us#2076 if the variable became a plain input Fixed The issue was updated 2026-11-11 17:46 UTC and now describes the plain input and the helper (see Axiom).

New findings

Critical

None.

Should address

None.

Suggestions

  1. Align the new input's label and documentation with the VA flag conventions on main (policyengine_us/variables/household/demographic/person/is_service_connected_disabled_veteran.py:7-19).
    • Document the VA disability rating flags and tighten veteran rule notes #10811 relabelled the two VA flags "Veteran with a VA service-connected disability rated or paid at 100%" and "Veteran with a VA permanent and total disability rating". Each flag's documentation names the other by its label and says when to set both.
    • The new label, "Is a veteran with a service-connected disability, at any VA rating", uses the older "Is a ..." style. The documentation names the 100% flag only as is_fully_disabled_service_connected_veteran, but a calculator user sees labels, not variable names.
    • The documentation also never tells a veteran with a 100% rating to set the 100% flag too. A user who ticks only the any-rating box gets the Michigan exemption, because the helper ORs both flags. They lose everything that reads only the 100% flag: the Missouri property tax credit exclusion, the Illinois CTA pass, Virginia energy assistance, the Kansas disabled veteran exemption, the Medicaid work requirement exemption, Hawaii LIHEAP's disabled-member point and USDA disabled status (git grep on main).
    • "A 100% rating also has its own input" is narrower than that flag's definition on main: "rated or paid at 100%", including individual unemployability.
    • Suggested label: "Veteran with a VA service-connected disability at any rating, including 0%".
    • Suggested documentation sentence: "For a disability rated or paid at 100%, also set 'Veteran with a VA service-connected disability rated or paid at 100%' (is_fully_disabled_service_connected_veteran); other programs read only that flag."
    • Optionally, add a pointer to the any-rating flag in the 100% flag's documentation. None of this changes a Michigan result.
  2. Pin the edition the Taxpayer's Guide reference names (policyengine_us/parameters/gov/states/mi/tax/income/exemptions/disabled/amount/veteran.yaml:16-17).
    • The title now says "for the 2025 tax year", but the href is the legislature's rolling TaxpayerGuide.pdf. When the next edition replaces it, the reference will no longer show what its title claims.
    • A Wayback snapshot, as the 2021 manual entry already uses, or a title without the edition, would keep it accurate.
    • The link itself predates this PR, so this is low priority.

Verified

  • Statute. MCL 206.30(3)(b) (official page, 2026-07-17 Wayback snapshot; the live site returned 502 when fetched):
    • "For tax years beginning after 2007, $250.00 for each taxpayer and every dependent of the taxpayer who is a qualified disabled veteran. When a dependent of a taxpayer files an annual return under this part, the taxpayer or dependent of the taxpayer, but not both, may claim the additional exemption".
    • (i) "a veteran with a service-connected disability".
    • (ii) "a disability incurred or aggravated in the line of duty in the active military, naval, or air service as described in 38 USC 101(16)".
    • (iii) "discharged or released ... with an honorable or general discharge".
    • No rating threshold appears. (7) indexes the subsection (3) exemptions by the CPI ratio to the 1998-1999 state fiscal year, "rounded to the nearest $100.00 increment".
  • Instructions (fetched):
    • 2023 MI-1040 book p. 3 ("allowance for qualified disabled veterans is $400") and line 9c, p. 10 ($400).
    • 2024 instructions p. 3 ($500) and line 9c, file p. 10 ($500).
    • 2025 book p. 3 ($500) and line 9c, p. 10: "if (a) the taxpayer or spouse is a qualified disabled veteran, or (b) a dependent of the taxpayer is a qualified disabled veteran ... a veteran ... who received an honorable or general discharge and has a disability incurred or aggravated in the line of duty as described in 38 USC 101(16). This additional exemption may not be claimed on more than one tax return."
    • No rating appears in any year.
  • Amounts in the parameter. veteran.yaml has 400 from 2017 and 500 from 2024 (2025 and 2026 carry forward), with no uprating block (reading).
    • Under (7), using CPI-U state-fiscal-year averages I estimated by hand (approximate), $250 times the ratio gives:
      • 2023: about 1.74, or $435, which rounds to $400.
      • 2024: about 1.83, or $458, which rounds to $500.
      • 2025: about 1.89, or $472, which rounds to $500.
      • 2026: about 1.94, or $484, which rounds to $500.
    • A $600 amount would need a ratio near 2.2, so the 2026 carry-forward is safe. The instructions confirm 2023-2025.
  • Helper logic.
    • mi_qualified_disabled_veteran returns any_rating | full_rating, is defined for Michigan and is a bool. It's not an int or enum key, so the NH Add New Hampshire state supplementation for 2026 #10156 pattern doesn't apply.
    • Both readers sum it per person (add and adds), so each tax-unit member adds at most one exemption.
    • It correctly doesn't read is_permanently_disabled_veteran. On main that flag also covers a non-service-connected disability pension under 38 U.S.C. 1521(a), which Michigan's test excludes (reading).
  • Dependent case against the statute. "Every dependent of the taxpayer who is a qualified disabled veteran" and line 9c(b) put a veteran dependent on the claimer's return. A PolicyEngine dependent sits only in the claimer's unit, so the "not both" rule can't double count.
  • Reuse. I grepped main for veteran, service-connected and rating variables. The only person-level VA inputs are the 100% flag, the permanent-and-total flag, is_veteran (derived from veterans_benefits), the surviving spouse and child flags, and Washington's wa_pte_* inputs.
    • Washington's rating is a property-tax-scoped fraction whose default of 0 can't tell "no rating" from "0%".
    • No existing variable records a service-connected disability at any rating, so the new input is justified and isn't reinvention.
  • Mutation rule (all by my reading of the formulas against the YAML):
    • Dropping either side of the helper's OR fails helper case 1 or 2 and the matching mi_exemptions case.
    • Swapping | for & fails helper case 1.
    • Removing defined_for fails helper case 6 (Ohio).
    • Having mi_exemptions add both inputs fails the both-inputs case (6,900, not 6,400).
    • Having mi_exemptions_count read either input alone, or both, fails its truth-table case.
  • Python test cost. The new test reuses the module-level system that the file already builds (reading). It checks Core integration (is_input_variable()), which YAML can't reach. It ran in 0.81s with the rest of the file in CI's Quick Feedback job.
  • Other checks.
  • Hand-checks of every new or changed expectation (hand arithmetic; all ran green in CI at the head):
    1. Helper case 1 (any rating only): true | false = true.
    2. Helper case 2 (100% flag only, any-rating flag at its default false): true.
    3. Helper case 3 (any-rating flag false, 100% flag true): true.
    4. Helper case 4 (neither flag): false.
    5. Helper case 5 (veterans_benefits 1,000, is_veteran true, neither flag): false.
    6. Helper case 6 (Ohio, both flags true): the Michigan gate returns false.
    7. Helper case 7 (four Michigan residents): [false, true, true, true].
    8. mi_exemptions, partial rating (2026): 5,900 + 1 x 500 = 6,400.
    9. mi_exemptions, 100% flag only: 5,900 + 500 = 6,400.
    10. mi_exemptions, both flags on one person: 5,900 + 1 x 500 = 6,400 (6,900 if each flag counted).
    11. mi_exemptions, joint return with two any-rating veterans: 11,800 + 2 x 500 = 12,800.
    12. mi_exemptions, head and adult dependent both veterans (joint, 2026). mi_personal_exemptions = tax_unit_size 3 x $5,900 (2026 personal.yaml) = 17,700. Nobody is claimable elsewhere, so dependent_filers = 2 - 2 = 0 and the formula takes mi_personal_exemptions. The disabled exemption is 0 (no blind, deaf or permanently and totally disabled member). Veterans add 2 x 500. Total 18,700, the same value my round-1 probe gave for this household.
    13. mi_exemptions, VA beneficiary without a service-connected disability: 5,900.
    14. mi_exemptions_count, two people, one partial rating: 2 + 0 + 1 = 3.
    15. mi_exemptions_count, one person with both flags: 1 + 0 + 1 = 2.
    16. mi_exemptions_count, four single filers covering the truth table: [1, 2, 2, 2].
    17. Python: is_input_variable() is True and default_value is False (no formula; a bool's default).

Axiom

The line axiom: us-mi/statute/206.30/3 queued (TheAxiomFoundation/rulespec-us#2076) is still valid.

rulespec-us#2076 is OPEN and labelled pe-parity. It was updated 2026-11-11 17:46 UTC, a minute after the head commit. It describes the head's design by name: is_service_connected_disabled_veteran as "a plain input, false by default", and mi_qualified_disabled_veteran holding when either flag holds, "so a person counts once", read by mi_exemptions and mi_exemptions_count. It doesn't cite the head SHA, and nothing requires that.

It stays dispatch-ready:

  • module us-mi/statutes/206.30/3.yaml;
  • corpus path and sha256;
  • verbatim (3)(b)(i)-(iii);
  • (7) and the 2025 line 9c amount;
  • the encoding gap (the undefined ..._claimable_by_tax_unit relation);
  • required outputs (person-level qualified_disabled_veteran and the "not both" rule);
  • companion tests from the statute and instructions (30% counts; no service-connected disability doesn't; 100% counts once; a dependent veteran counts; $500 for 2025 and 2026).

The cosmetic statute/statutes difference between the legal id and the module path remains.

CI

gh pr checks 10714 at 8976ec0: all 38 checks pass. They include:

  • PR validation;
  • Quick Feedback;
  • Package and compatibility;
  • Household API Partners;
  • Microsimulation (49m);
  • Rest Python shards 1-9;
  • all Baseline and Contrib shards;
  • codecov patch and project.

The Quick Feedback log shows the three changed YAML files passing:

  • mi_exemptions.yaml: 29 cases;
  • mi_exemptions_count.yaml: 5 cases;
  • mi_qualified_disabled_veteran.yaml: 7 cases.

That is 41 cases, within 736 passing under tests/policy/baseline/gov/states/mi. The same log shows test_input_variable_definitions.py (5 passed) and test_state_tax_head_spouse_swap_invariance.py (8 passed). Nothing is pending.

Branch

The branch is 3 commits ahead (the original fix, a merge of main and 8976ec0) and 52 behind main (47c4e87).

Verdict: APPROVE

@DTrim99 DTrim99 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving. The round-1 should is fixed: is_service_connected_disabled_veteran is now a plain input, mi_qualified_disabled_veteran ORs it with the 100% flag so a person counts once, and a Python test pins that it is an input. Four of the five suggestions are taken, and the decline on a shared rating input holds, since MCL 206.30(3)(b) names no rating and a 0% rating qualifies. All 17 new or changed expectations hand-check, including the dependent case (3 × 5,900 + 2 × 500 = 18,700). Two optional suggestions are in the report above. CI is green at 8976ec04f1, and the branch merges cleanly with main with no double count against #10768 or #10811.

@MaxGhenis
MaxGhenis merged commit f2b6108 into main Nov 21, 2026
38 checks passed
@MaxGhenis
MaxGhenis deleted the fix-mi-disabled-veteran-exemption branch November 21, 2026 12:02
@MaxGhenis

Copy link
Copy Markdown
Contributor Author

Merged at reviewed head 8976ec0 (squash f2b6108).

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.

2 participants