Add Marketplace premiums to SPM MOOP#8178
Add Marketplace premiums to SPM MOOP#8178daphnehanse11 wants to merge 2 commits intoPolicyEngine:mainfrom
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8178 +/- ##
============================================
+ Coverage 85.36% 100.00% +14.63%
============================================
Files 3 1 -2
Lines 41 16 -25
Branches 2 0 -2
============================================
- Hits 35 16 -19
+ Misses 6 0 -6
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Read-only review pass before patching: The failing
I did not see a hardcoded-value, parameter metadata, or period-handling issue in the small formula diff itself. The focused fix is to isolate those existing non-Marketplace tests by explicitly setting Marketplace net premium/take-up to zero where the fixture is testing CHIP/cliff behavior, while leaving the new Marketplace SPM MOOP coverage intact. Patching this now in a fresh detached worktree under |
|
This doublecounts marketplace premiums in MOOP and doesn't connect it to other MOOP use cases like SNAP and IMD. Fixing |
Summary
marketplace_net_premiumtospm_unit_medical_out_of_pocket_expenses.Addresses #8095 and part of #8168.
Notes
This should be reviewed alongside the us-data residualization path in PolicyEngine/policyengine-us-data#844 so baseline imputed MOOP does not double-count computed Marketplace premiums.
Tests
uv run python -m policyengine_core.scripts.policyengine_command test policyengine_us/tests/policy/baseline/household/income/spm_unit/spm_unit_medical_out_of_pocket_expenses.yaml policyengine_us/tests/policy/baseline/household/income/spm_unit/spm_unit_medical_out_of_pocket_expenses_medicare_part_b.yaml policyengine_us/tests/policy/baseline/gov/aca/ptc/marketplace_net_premium.yaml -c policyengine_usuv run --extra dev ruff format policyengine_us/variables/household/income/spm_unit/spm_unit_medical_out_of_pocket_expenses.pyuv run --extra dev ruff check policyengine_us/variables/household/income/spm_unit/spm_unit_medical_out_of_pocket_expenses.py