Treat Medicaid spending as validation-only target#87
Merged
Conversation
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.
Summary
Root Cause
PolicyEngine-US computes
medicaidspending from state spending parameters throughperson_weight-dependent Medicaid SLCSP denominators. Reweighting changes each enrolled person's assigned Medicaid cost, so the row is not a linear calibration target. The post-export audit caught this: calibration reported about $519B under frozen pre-calibration costs, while the exported H5 recomputed Medicaid at about $880B.Validation
env -u UV_FROZEN uv run --package populace-build --extra us python -m pytest packages/populace-build/tests/test_us_fiscal_targets.py packages/populace-build/tests/test_us_source_coverage.py packages/populace-build/tests/test_us_fiscal_refresh_builder.py -qenv -u UV_FROZEN uv run --all-packages ruff check .env -u UV_FROZEN uv run --all-packages python -m pytest -qtools/build_us_fiscal_refresh_release.py --audit-export-targetscompleted:populace-us-2024-f0d2ef6-45b320b7cee5-20260617T030430Zvalidate_release_dir(...)passed for that releaseincome_tax,social_security,ssi,medicaid,medicaid_enrolled, andaca_ptcNotes
The new audited build has 5,097 active hard targets: one fewer than before, exactly the invalid Medicaid spending row. CMS Medicaid enrollment and Medicaid+CHIP enrollment remain active (104 CMS Medicaid target rows). The CMS NHE source package is recorded in reviewed exclusions rather than claimed as active hard-target coverage.