Skip to content

Use bronze premiums for selected Marketplace plans#8256

Open
daphnehanse11 wants to merge 1 commit into
PolicyEngine:mainfrom
daphnehanse11:codex/issue-8211-lcbp-plan-choice
Open

Use bronze premiums for selected Marketplace plans#8256
daphnehanse11 wants to merge 1 commit into
PolicyEngine:mainfrom
daphnehanse11:codex/issue-8211-lcbp-plan-choice

Conversation

@daphnehanse11
Copy link
Copy Markdown
Collaborator

Summary

  • Add a selected Marketplace plan category variable defaulting to Silver.
  • Use actual lcbp when Bronze is selected, while retaining SLCSP/benchmark-ratio behavior for Silver.
  • Add tests for selected premium proxy, used PTC, and Marketplace net premium behavior.

Tests

  • uv run python -m policyengine_core.scripts.policyengine_command test policyengine_us/tests/policy/baseline/gov/aca/ptc/selected_marketplace_plan_premium_proxy.yaml policyengine_us/tests/policy/baseline/gov/aca/ptc/used_aca_ptc.yaml policyengine_us/tests/policy/baseline/gov/aca/ptc/marketplace_net_premium.yaml -c policyengine_us
  • uv run --extra dev ruff format --check policyengine_us/variables/gov/aca/ptc/selected_marketplace_plan_category.py policyengine_us/variables/gov/aca/ptc/selected_marketplace_plan_premium_proxy.py
  • uv run --extra dev ruff check policyengine_us/variables/gov/aca/ptc/selected_marketplace_plan_category.py policyengine_us/variables/gov/aca/ptc/selected_marketplace_plan_premium_proxy.py

Closes #8211.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 11, 2026

Codecov Report

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

Additional details and impacted files
@@            Coverage Diff             @@
##              main     #8256    +/-   ##
==========================================
  Coverage   100.00%   100.00%            
==========================================
  Files           12         2    -10     
  Lines          173        26   -147     
  Branches         4         0     -4     
==========================================
- Hits           173        26   -147     
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.

@daphnehanse11 daphnehanse11 requested a review from MaxGhenis May 12, 2026 18: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.

Use actual bronze premiums for selected Marketplace plan choice

1 participant