Skip to content

Fix MSP spouse deeming and resource scoping#7893

Open
daphnehanse11 wants to merge 4 commits intoPolicyEngine:mainfrom
daphnehanse11:codex/msp-ssi-deeming-assets
Open

Fix MSP spouse deeming and resource scoping#7893
daphnehanse11 wants to merge 4 commits intoPolicyEngine:mainfrom
daphnehanse11:codex/msp-ssi-deeming-assets

Conversation

@daphnehanse11
Copy link
Copy Markdown
Collaborator

Summary

  • apply spouse deeming in MSP countable income and compare married applicants using spouse-aware income
  • scope MSP resources to the applicant and spouse instead of the full SPM unit, and align MSP eligibility with the resolved MSP category
  • tighten MSP category boundary tests and backfill Medicare premium history used by MSP benefit coverage

Testing

  • uv run --extra dev ruff format .
  • uv run --extra dev ruff check policyengine_us/variables/gov/hhs/medicare/savings_programs policyengine_us/parameters/gov/hhs/medicare/savings_programs policyengine_us/tests/policy/baseline/gov/hhs/medicare/savings_programs
  • uv run policyengine-core test policyengine_us/tests/policy/baseline/gov/hhs/medicare/savings_programs -c policyengine_us
  • uv run --extra dev ruff check policyengine_us/parameters/gov/hhs/medicare policyengine_us/tests/policy/baseline/gov/hhs/medicare changelog.d/codex-msp-ssi-deeming-assets.fixed.md
  • uv run policyengine-core test policyengine_us/tests/policy/baseline/gov/hhs/medicare/eligibility/base_part_a_premium.yaml policyengine_us/tests/policy/baseline/gov/hhs/medicare/eligibility/base_part_b_premium.yaml policyengine_us/tests/policy/baseline/gov/hhs/medicare/savings_programs/msp_benefit_value.yaml -c policyengine_us

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 6, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (b527c7e) to head (5c1030f).
⚠️ Report is 19 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##              main     #7893    +/-   ##
==========================================
  Coverage   100.00%   100.00%            
==========================================
  Files            3         9     +6     
  Lines           43       159   +116     
==========================================
+ Hits            43       159   +116     
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.

- Remove cross-variable MSPCategory import; use .possible_values.NONE
- Break nested where() in msp_countable_income into named variables
- Fix trailing zeros in Part B premiums (170.10→170.1, etc.)
- Add 2021 CMS reference to Part A full_premium.yaml
- Remove duplicate reference URLs in asset limit YAMLs
- Add deeming happy-path test proving the code path executes
- Add 2026 Part A full premium test ($565)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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