[codex] Model Virginia Medicaid LIFC regional limits#8524
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8524 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 1 4 +3
Lines 19 67 +48
Branches 0 1 +1
=========================================
+ Hits 19 67 +48
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:
|
daphnehanse11
left a comment
There was a problem hiding this comment.
Blocking: medicaid_parent_income_limit now routes every Virginia year through va_medicaid_lifc_income_limit, but the new LIFC dollar tables only start at 2025-07-01. That means historical Virginia parent eligibility no longer uses the existing 0.54 FPL parent limit for pre-effective years; it is recomputed from the 2025 LIFC table instead. Repro on this branch: a VA household of 3 in Arlington returns medicaid_parent_income_limit = 0.4870643 for 2024, while the existing VA parent parameter is 0.54. Please either backfill historical LIFC tables/effective dates or gate the Virginia override so years before the modeled table keep the existing statewide parent limit.
Program Review — PR #8524: Virginia Medicaid LIFC Regional LimitsModels Virginia's Low Income Families with Children (LIFC) regional parent income limits (Group I/II/III by locality and household size), gated behind an effective-date Source Documents
(Note: M07 Group I/II/III tables are MEDICALLY NEEDY limits — a different program. Verified the PR did not leak M07 values into the LIFC params.) Branch StatusThe PR is 6 commits ahead, 201 commits behind main. Informational only — not a finding. The review was scoped to the PR's actual changes via merge-base diff, so staleness did not affect findings. CI is green on the PR branch. Critical (Must Fix)None. Income-limit values are all correct (28/28 confirmed against Appendix 3), no hard-coded values in formulas, no reinvented variables ( Should Address1. City of Fairfax misclassified into Group III (not supported by Appendix 4) M04 Appendix 4 (#page=52) lists Group III as Counties (Arlington, Fairfax, Montgomery, Prince William) and Cities (Alexandria, Charlottesville, Colonial Heights, Falls Church, Fredericksburg, Hampton, Manassas, Manassas Park, Waynesboro). "Fairfax" appears exactly once, under Counties — the independent City of Fairfax is listed in no group. Virginia had 38 independent cities in 2017; the appendix enumerates 37, and Fairfax City is the single omission, so by the appendix's default rule it belongs to Group I. This was flagged independently by the regulatory, reference, code, and PDF-locality reviewers, and the code-path reviewer confirmed it is live: the Impact (microsim): over-generous for City of Fairfax residents (~24k people) — Group III HH1 limit ~$642/mo vs the Group I ~$329/mo the appendix supports, raising the LIFC income standard above source for that locality. Direction = over-counts eligibility; magnitude = one independent city. Remedy: either (a) remove 2. County-enum coverage gap: 7 VA independent cities silently resolve to Group I
Root cause is the upstream Impact (microsim): under-generous for those 7 cities — residents who should be Group II/III get the Group I standard. Remedy: extend Related upstream robustness note (pre-existing, NOT introduced by this PR): for these cities the FIPS dataset ( 3. Federal The change from
Remedy: add a non-VA federal boundary test (CA, 4. No test exercises the locality default-fallback path
5. The federal selector test covers CA (national table), VA Group II (Henrico), and VA pre-LIFC (2024 fallback), but not VA Group I or Group III through Suggestions1. Income-limit group titles could name the specific sub-table 2. Add size-1 and size-8 household boundary tests 3. Add a Group II city locality test 4. PDF Audit Summary
Validation Summary
Review Severity: COMMENTReal should-address items (one source deviation fixable in this PR, an upstream enum gap to document, and several test gaps), but nothing blocking: income values are all correct, no hard-coded logic, no reinvented variables, references corroborate, and CI is green. Next StepsTo auto-fix: |
…into pr/daphnehanse11/8524
|
Addressed the review in 5c607f0:
Local verification:
The new GitHub Actions run is pending: https://github.com/PolicyEngine/policyengine-us/actions/runs/26846627471 |
Fixes #5798.
Summary
This models Virginia's Medicaid Low Income Families With Children (LIFC) regional income limits for parent/caretaker eligibility. Virginia's parent Medicaid limit is not a single statewide FPL percentage; DMAS publishes annual dollar limits by LIFC locality Group I, Group II, and Group III.
Changes
va_medicaid_lifc_locality_groupandva_medicaid_lifc_income_limit.medicaid_parent_income_limit, so Virginia uses its regional LIFC limit while other states continue using the existing national parent Medicaid income-limit table.Sources
Not Modeled
Validation
make format.venv/bin/policyengine-core test policyengine_us/tests/policy/baseline/gov/states/va/dmas/medicaid/lifc -c policyengine_us.venv/bin/policyengine-core test policyengine_us/tests/policy/baseline/gov/hhs/medicaid/eligibility/categories/parent/medicaid_parent_income_limit.yaml -c policyengine_us.venv/bin/policyengine-core test policyengine_us/tests/policy/baseline/gov/hhs/medicaid/eligibility/categories/is_parent_for_medicaid.yaml -c policyengine_us