Repository navigation
Zero Medicaid federal share for state-funded immigrant coverage - #10950
Merged
Merged
Conversation
medicaid_federal_share treated anyone who passed is_medicaid_immigration_status_eligible as federally matched. That variable also counts state-funded coverage (California's state-funded Medi-Cal, states flagged in the undocumented immigrant parameter), and is_medicaid_eligible adds California FFYP and Illinois HBI without any immigration test. So undocumented, DACA and five-year-bar enrollees got the 90% expansion FMAP or the regular FMAP. 42 U.S.C. 1396b(v)(1) bars Title XIX payment for anyone who fails the federal immigration test, apart from emergency services ((v)(2)) and the lawfully residing option ((v)(4), already in the federal test). The formula now uses is_federal_medicaid_immigration_status_eligible and gives no federal share to any enrollee without a federally matched route, which generalizes the existing Rhode Island postpartum case. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
For generated enrollees across states, immigration statuses, categories and years, the federal share is 0 whenever the federal immigration test fails or the category is NONE, is the regular FMAP for other categories, and federal plus state cost equals medicaid_cost. The test fails on the previous formula, which matched state-funded enrollees. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MaxGhenis
marked this pull request as ready for review
November 15, 2026 00:43
The federal Medicaid immigration test now gates the federal share, so it needs the 8 U.S.C. 1613(b)(2) exemption for qualified noncitizens who are veterans, on active duty, or their spouses or dependent children. It reuses is_snap_alien_military_connected, which implements the same exemption. Also cite 42 U.S.C. 1396b(v)(1), (4) and (5) and 8 U.S.C. 1611 and 1613 for their separate limits instead of attributing all of them to (v)(1). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…children Adds 2027 cases (a permanent resident on active duty passes, a refugee on active duty fails) and an Alabama dependent-child case. Notes in the SNAP military variable and parameters that Medicaid, the Medicare Savings Programs and Nevada LIHEAP share them, and says the dependent-child ages are borrowed from SNAP since federal Medicaid law sets none. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
Hand-off to the US + core hub.
|
Keep main's New Jersey Cover All Kids cases 19 to 22 in is_medicaid_immigration_status_eligible.yaml and renumber this branch's six military-exemption cases to 23 to 28. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 18, 2026
Merged
This was referenced Nov 21, 2026
Open
Contributor
Author
|
US + core hub merge audit, us#10950 at
🤖 Generated with Claude Code |
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
medicaid_federal_sharegave a Title XIX match to enrollees who reach Medicaid only through state-funded coverage. An undocumented adult in California, an adult Illinois Health Benefits for Immigrants (HBI) enrollee or an undocumented adult in DC got the 90% expansion FMAP. Children in those routes and in New Jersey's Cover All Kids got the regular FMAP. Their federal share now falls to 0, which generalizes the existing Rhode Island postpartum case.What went wrong
The formula gave the category-based FMAP to every enrollee in a Medicaid category, whatever their immigration status, except Rhode Island postpartum enrollees who failed
is_medicaid_immigration_status_eligible. That immigration variable also counts state-funded coverage: theundocumented_immigrantparameter (DC, MA, NY, and OR from 2023-07),is_ca_medicaid_immigration_status_eligible(California's undocumented, DACA and TPS residents) andregardless_of_immigration_status.child_age_limit. That last parameter holds the age limit for New Jersey's Cover All Kids, which has covered children under 19 of any status since January 1, 2023. Separately,is_medicaid_eligibleORs inca_ffyp_eligibleandil_hbi_eligiblewith no immigration test, andmedicaid_categoryignores immigration status.Fix
The formula now uses
is_federal_medicaid_immigration_status_eligible. Every enrollee outside a federally matched route (category NONE, or failing the federal immigration test) gets 0. Everyone else keeps the existing category-based FMAP. That condition replaces the Rhode Island term, and its four existing cases inmedicaid_federal_share.yamlkeep their expected values.Several provisions together limit Title XIX payment for noncitizens:
Military exemption added to the federal test
Once the federal test decides the match on its own, a gap in it matters, and the round-1 review found one. 8 U.S.C. 1613(b)(2) exempts from the five-year bar a veteran or active duty member who holds a qualified status, and their spouse or unmarried dependent child, and § 1612(b)(2)(C) protects their Medicaid eligibility. The helper left them out, so an Illinois permanent resident on active duty, three years after entry, would have enrolled through HBI and gotten share 0 instead of 0.9.
is_federal_medicaid_immigration_status_eligiblenow counts that exemption throughis_snap_alien_military_connected, which already implements 1613(b)(2) for SNAP fromis_veteran,is_military, the marital unit and tax-unit dependency. Its documentation lists those proxies and how they over-grant. Neither 1613(b)(2) nor 1612(b)(2)(C) sets ages for a dependent child, so the model borrows SNAP's (7 CFR 273.4(a)(6)(ii)(G)(3): under 18, a full-time student under 22, or disabled), without testing when a disability began. Medicaid, the Medicare Savings Programs and Nevada LIHEAP now share that variable and its parameters, and their documentation says so: an override or reform aimed at SNAP changes those programs too. The exemption still requires a qualified status, so from October 2026 it applies only to the (v)(5) statuses.State-funded routes into
medicaid_enrolledis_ca_medicaid_immigration_status_eligibleinside the immigration testca_ffyp_eligibleOR'd into eligibilityil_hbi_eligibleOR'd into eligibilityundocumented_immigrantparameter: DC, MA, NY, ORregardless_of_immigration_status.child_age_limitinside the immigration testchild_age_limit.yaml)ri_medicaid_state_funded_postpartum_eligibleFederally matched routes for people who fail the immigration test
is_federal_medicaid_immigration_status_eligible, so they keep the regular FMAP. The new California test checks a TPS child at 0.5. The model records New Jersey as electing the lawfully residing option for children under 21. Its permanent resident, TPS and other lawfully residing children pass the federal test and keep the regular FMAP, while undocumented and DACA children who reach Medicaid only through Cover All Kids get 0.medicaid_enrolled.is_emergency_medicaid_eligiblehas no consumer in the model, and it requires failing the combined immigration test. California directs DHCS to claim federal participation where available (§ 14007.8(f)(1)), and Illinois HFS calls emergency services for these residents "federally matchable".medicaid_costholds one cost per enrollee with no split by service, so this PR attributes none of it to the federal government. The variable's documentation says so. Since 1396d(kk) (Pub. L. 119-21 § 71110), that match can't exceed the regular FMAP from October 1, 2026.I didn't add the work-requirement result to the federally matched test. The only people the model can enroll after a work-requirement failure come through FFYP or Rhode Island postpartum. 42 U.S.C. 1396a(xx)(9)(A)(ii) exempts former foster youth (subclause (I)) and pregnant or postpartum people (subclause (IX)), so requiring compliance would wrongly zero matched enrollees.
Tests
Four new YAML cases in
medicaid_federal_share.yaml:The CA, IL and DC cases fail on
main's formula, and the 17 existing cases pass both before and after the change.Six cases in
is_medicaid_immigration_status_eligible.yaml, numbered 23 to 28 after Cover New Jersey children under 19 in Medicaid and CHIP regardless of immigration status (Cover All Kids) #10987's four New Jersey cases:test_medicaid_federal_share_invariants.py(Hypothesis, 8 derandomized examples of up to 40 people across 10 states, 11 statuses, 13 categories and 2024–2027) checks every person. The share lies in [0, 1], and it equals 0 for category NONE or a failed federal test. Categories other than ADULT and NONE get the regular FMAP, an ADULT gets the regular or the expansion FMAP, and federal plus state cost equalsmedicaid_cost. It fails onmain's formula. Locally it takes 16–36 s with 2.3 GB peak RSS. As a root-level test file it falls into theremainingRest group.Local runs at 6f21b53 used policyengine-core 3.34.2, which
uv.lockpinned before the merge withmain, and at most four processes.uv.locknow pins 3.36.0.tests/policy/baseline/gov/hhs/medicaid: 1,277 passed.hhs/medicare/savings_programs, IL HBI, CA FFYP,is_aca_ptc_eligible, Healthier Oregon, Mississippi working disabled): 311 passed.is_militaryoris_veteranwith an immigration status (SNAP immigration and unit size, MO SSP, Utah HEAT, and the NH, ND, NV, SC, WA and WY energy programs): 926 passed.is_medicaid_immigration_status_eligible.yaml,hhs/medicaid/costsandhhs/medicare/savings_programs, 209 passed; SNAP immigration and the Nevada and Oklahoma LIHEAP tests, 326 passed.No partner test names these variables, and this PR edits none.
Pull request run 44908242039 at
11336aa108passed all 38 jobs on GitHub's merge with maina5f0f07c98.Interaction with #10891
#10891 edits the same docstring, reference list and formula, so whichever merges second has a small conflict in both files. To resolve it, keep #10891's docstring up to its Rhode Island sentence (through "so the expansion FMAP stops at 133 percent of the poverty line there."). Then append this PR's text from "Title XIX pays only…", which restates the Rhode Island rule in general form. Keep both reference sets. Keep #10891's
expansion_adultblock, thenno_federal_medicaid_match = ~federally_matched_route. For the YAML, take #10891's file plus this PR's appended cases. The new tests setmedicaid_income_level: 1and household size 1, so they hold under #10891's income test. Before the merge withmain, on a tree merged with #10891 at edc1f51, the resolution matched the one at 42ec388 except for line offsets. The Medicaid costs tests andis_medicaid_immigration_status_eligible.yamlpassed 91/91, and the property test and #10891'stest_medicaid_expansion_fmap_income_limit.py(17) passed.Impact
For enrollees in state-funded coverage, federal cost falls to 0 and state cost rises by the same amount, and total
medicaid_coststays the same. The military exemption changes eligibility. Veterans, active duty members and their spouses and dependent children who hold a qualified status inside the five-year bar now pass the federal test in every state. That holds for Medicaid and for the Medicare Savings Programs, which use the same test. In Illinois such a person moves from HBI to regular Medicaid.Known biases in the federal test
These come from
is_federal_medicaid_immigration_status_eligibleas it stands onmain, and this PR now leans on it as the funding gate.is_snap_alien_military_connected), which overstates Medicaid and MSP eligibility and federal cost. They also miss unremarried surviving spouses (1613(b)(2)(C)) and the children of deceased veterans that SNAP's rule names.Invariants
medicaid_federal_cost + medicaid_state_cost == medicaid_costfor every enrollee.0 <= medicaid_federal_share <= 1.medicaid_federal_share == 0whenevernot is_federal_medicaid_immigration_status_eligible or medicaid_category == NONE.Follow-ups (not in this PR)
medicaid_categoryandmedicaid_federal_share, and Give federally eligible former foster youth the regular FMAP at every income #11209 tracks it.undocumented_immigrantflags MA and NY as covering undocumented immigrants of every age, though its own comment leaves out states that cover only some ages. New York enrolls undocumented residents in Medicaid at 65 and older from 2024 and through pregnancy and one year after delivery, and gives other undocumented adults under 65 emergency Medicaid only (NYC OCHIA). It also offers Child Health Plus to children under 19 regardless of immigration status (NYC OCHIA). So the flag over-enrolls other New York adults. The fix changes eligibility and should keep the pregnancy and postpartum coverage. Massachusetts carries the same all-ages flag, and its law limits undocumented residents to emergency services (M.G.L. c. 118E, § 16D(2)). MassHealth's rules add MassHealth Standard during pregnancy and the Children's Medical Security Plan for children under 19 (130 CMR 504.006(D)). The model gives undocumented residents of New York and Massachusetts full Medicaid at every age, back to 2015 #11127 tracks both states.is_chip_immigration_status_eligiblecopies the federal test without the 1613(b)(2) exemption, though the five-year bar and its exemptions apply to CHIP too. In a state that hasn't elected the lawfully residing child option in both programs, a military-connected permanent-resident child inside the bar passes the Medicaid test but fails the CHIP test. Federal noncitizen eligibility rules omit the veteran and active-duty exception (8 USC 1612(a)(2)(C), 1612(b)(2)(C), 1613(b)(2)) #9389 tracks the missing exemption in every program, CHIP included.chip_federal_sharestill gives the enhanced FMAP to every CHIP enrollee, so a New Jersey Cover All Kids child in CHIP gets 0.65. Medicaid and CHIP federal share counts state-funded coverage as federally matched #10986 tracks that CHIP half, and this PR fixes its Medicaid half.is_snap_alien_military_connectednow serves Medicaid, MSP and Nevada LIHEAP as well as SNAP. A program-neutral name would make that sharing explicit, and Give the military-connection variable a program-neutral name and fix its marital-unit note #11210 tracks it.undocumented_immigrant, true from 2023-07) and Healthier Oregon, sinceor_healthier_oregon_immigration_status_eligiblelists UNDOCUMENTED explicitly.healthcare_benefit_valueadds both costs. I haven't verified this with a run, and The model counts Healthier Oregon on top of Medicaid or CHIP for the same person and has no take-up input for it #10795 tracks it.ImmigrationStatushas no Compact of Free Association value, so the federal test can't pass a COFA migrant under (v)(5). Add COFA immigration status for OBBBA SNAP, Medicaid, and ACA eligibility #8296 tracks COFA status.Microsimulation impact
We estimate that this change moves $4.85bn of Medicaid spending from the federal government to the states in 2025, and $1.82bn in 2026, on the default dataset. Total Medicaid spending, enrollment and household net income stay the same. We compared this branch at
11336aa108withmainat2574529521, its merge base.medicaid_federal_costmedicaid_state_costmedicaid_costmedicaid_enrolledis_medicaid_eligiblehousehold_net_incomeThe shift comes from 291 sampled people in 2025 (466,836 weighted) and 200 in 2026 (147,199 weighted), whose
medicaid_federal_sharefalls to 0. No record'sis_medicaid_eligibleoris_medicaid_immigration_status_eligiblechanges in either year.axiom: us/statute/42/1396b/v encoded-correct (
alien_described_in_payment_bar; companion testauto_positive_alien_described_in_payment_barinus/statutes/42/1396b/v.test.yaml); TheAxiomFoundation/rulespec-us#2331 queued (8 U.S.C. 1613(b)(2) and 1612(b)(2)(C), the military exemption from the five-year bar and its Medicaid protection). The FMAP cost split itself stays microsim-only.🤖 Generated with Claude Code