Skip to content

Make CHIP health benefit value respect enrollment#8679

Draft
daphnehanse11 wants to merge 1 commit into
PolicyEngine:mainfrom
daphnehanse11:codex/issue-8673-chip-benefit-enrollment
Draft

Make CHIP health benefit value respect enrollment#8679
daphnehanse11 wants to merge 1 commit into
PolicyEngine:mainfrom
daphnehanse11:codex/issue-8673-chip-benefit-enrollment

Conversation

@daphnehanse11

Copy link
Copy Markdown
Collaborator

Fixes #8673.

Summary

  • Change healthcare_benefit_value to include CHIP through chip, which is gated by chip_enrolled.
  • Document CHIP net/gross and eligibility/enrollment semantics on the existing CHIP value and cost variables.
  • Add healthcare benefit value tests for CHIP enrolled, CHIP eligible but not enrolled, and CHIP ineligible cases.

CHIP Semantics

  • chip: enrolled, take-up-aware, net CHIP benefit value.
  • per_capita_chip: eligibility-gated per-capita net CHIP payment; not a household resource accounting output by itself.
  • chip_gross and per_capita_chip_gross: eligibility-gated gross value concepts, kept separate from household health benefit value.
  • chip_federal_cost and chip_state_cost: enrollment-gated budget cost variables through chip.

Validation

  • uv run policyengine-core test policyengine_us/tests/policy/baseline/household/healthcare_benefit_value.yaml -c policyengine_us: 5 passed, 1 warning.
  • uv run policyengine-core test policyengine_us/tests/policy/baseline/gov/hhs/chip -c policyengine_us: 70 passed, 1 warning.
  • uv run policyengine-core test policyengine_us/tests/policy/baseline/household/household_health_benefits.yaml -c policyengine_us: 3 passed, 1 warning.
  • make format: passed.
  • git diff --check: passed.

Known Failing Tests

None.

@daphnehanse11 daphnehanse11 force-pushed the codex/issue-8673-chip-benefit-enrollment branch from 4110fca to dc5ce0b Compare June 17, 2026 19:43
@codecov

codecov Bot commented Jun 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (206b9e7) to head (dc5ce0b).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #8679   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            8         7    -1     
  Lines          127        97   -30     
=========================================
- Hits           127        97   -30     
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.

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.

Make CHIP health benefit value respect enrollment and take-up

1 participant