Read the Michigan home heating credit from the canonical heating inputs - #9398
Draft
hua7450 wants to merge 2 commits into
Draft
Read the Michigan home heating credit from the canonical heating inputs#9398hua7450 wants to merge 2 commits into
hua7450 wants to merge 2 commits into
Conversation
heating_expenses splits the SPM unit's heating_expense evenly across the tax units sharing the home, keeping the heating_expense_person sum for UNSPECIFIED households. The standard credit's heat-in-rent reduction and the alternate credit's heat-in-rent bar read a new mi_home_heating_credit_heat_included_in_rent derived from heat_expense_included_in_rent, treating utilities_included_in_rent as implying heat is included. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #9398 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 2 6 +4
Lines 20 85 +65
=========================================
+ Hits 20 85 +65
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…into mi-home-heating-canonical-heating-inputs
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.
Stage 2b of the heating-input consolidation (#9284, under #9275), following #9360 and the SNAP half in #9397. Moves the Michigan home heating credit onto the canonical heating inputs. Refs #8964.
What the statute and form say
Changes
heating_expenses(tax unit)adds = ["heating_expense_person"]heating_expensesplit evenly across the tax units in that SPM unit (one head per tax unit).UNSPECIFIEDhouseholds keep the person-level sum as the deprecated adapter.mi_home_heating_credit_heat_included_in_rentdefined_for MI:heat_expense_included_in_rent(SPM unit) orutilities_included_in_rent. Rent covering all utilities necessarily covers heat, so the second term is an implication, not a fallback.mi_standard_home_heating_creditutilities_included_in_rentmi_alternate_home_heating_credit_eligible~utilities_included_in_rent~the new variableutilities_included_in_rent,heating_expense_personBehavior preservation
state_code: MIbecause the new variable is state-scoped (its flat inputs had no state before).utilities_included_in_rent: truestill get the halved standard credit and no alternate credit, through the implication.heating_expense_personand noheating_typeget the sameheating_expensesas before.utilities_included_in_rentorheating_expenses, so no partner value moves.Deliberately not in this PR
tenant_pays_utilitiesFalse → True) and derivingutilities_included_in_rentfrom it. Michigan's statutory fact is heat in rent, whichheat_expense_included_in_rentalready carries, so the credit migrates without touching that pair. The flip itself would move ~30 baseline tests plus partner signature and edge-case fixtures that request HUD outputs without setting the flag, so it needs the partner notification gate and its own PR. This satisfies the "MI migrates once" sequencing note on Atomic inputs: consolidate the heating/utility expense input family (LIHEAP, SNAP SUA, CA utility programs) #9284: MI no longer depends on that reconciliation.UNSPECIFIED-gated branches and deprecated inputs) after partner migration.Tests
heating_expenses.yaml(6 cases): legacy person sum, known type reads the fuel bill, two tax units split the bill, known type ignores the legacy input, NONE is zero, per-fuel bill alone is not read.mi_home_heating_credit_heat_included_in_rent.yaml(4 cases) including the implication and the out-of-state case.🤖 Generated with Claude Code