Repository navigation
Limit New York and Massachusetts Medicaid for undocumented residents - #11130
Merged
Merged
Conversation
… it in Massachusetts undocumented_immigrant.yaml gave undocumented residents of New York and Massachusetts Medicaid at every age from 2021, and backdating carried that to 2015. - New York and Massachusetts read false in the all-ages flag. - New York covers undocumented residents during pregnancy and the postpartum period, and at age 65 or older from January 1, 2024, through two parameters under gov.hhs.medicaid.eligibility.undocumented. - New York covers undocumented children through the Children's Health Insurance Program alone, through gov.hhs.chip.undocumented.child. - The District of Columbia and Oregon keep their values. Fixes #11127 Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
- pregnant.yaml: say whom Social Services Law section 366(4)(b)(1) covers, cite part CCC of chapter 56 of the Laws of 2022 for the March 1, 2023 start, and say the notice supports sixty days only. - aged.yaml: note that part H of chapter 57 of the Laws of 2023 is deemed in force from January 1, 2023. - undocumented_immigrant.yaml and child_age_limit.yaml: name the CHIP folder, and date Oregon's flag. - CHIP immigration test: drop a funding claim from a comment, and give each new case its arithmetic. - chip.qmd and the changelog: date New Jersey's route and describe the Massachusetts change as the immigration test it is. No parameter value, formula or expected test value changes. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
MaxGhenis
marked this pull request as ready for review
November 19, 2026 01:15
130 CMR 504.006(D)(1) gives undocumented residents MassHealth Standard if they are pregnant, so Massachusetts reads true in gov.hhs.medicaid.eligibility.undocumented.pregnant. The first commit left them to the CHIP unborn-child route, which has no postpartum term. - pregnant.yaml: Massachusetts true from the 2021 key, citing 130 CMR 504.006(D), 130 CMR 505.002(D) and Eligibility Letter 213. - Tests: a pregnant undocumented Massachusetts resident passes the Medicaid immigration test in 2025 and is Medicaid eligible at 150% of the poverty line, and a new case covers the 60-day postpartum period in 2017. - New York: cite Department of Health documents 04 OMM/ADM-7, 23 OHIP/INF-2 and GIS 08 MA/009, and the section 1332 waiver application. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This was referenced Nov 19, 2026
- Four new cases in the Medicaid immigration test: an undocumented resident between 60 days and 12 months after delivery in Massachusetts in 2022 (fails) and 2023 (passes) and in New York in 2024 (passes), and a pregnant 17-year-old in New York who passes both immigration tests. - The CHIP variable and child.yaml said these children do not pass the Medicaid immigration test. They pass it only through the pregnancy term. - The New York comment in undocumented_immigrant.yaml names the postpartum period and the 2024 start at age 65. - child.yaml says why the New York route reads the national CHIP age. No parameter value or formula changes, and no existing expected test value changes. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
New York covers undocumented children under Child Health Plus with its own funds, and the model gave those enrollees the 65% enhanced federal match. The federal CHIP immigration test now has its own variable, and chip_federal_share returns 0 for a child who is enrolled through a state undocumented-child route and fails that test. CHIP eligibility, the benefit amount and the match on the unborn-child route stay the same, and no result outside New York changes. A new case follows a New York family to the share and both cost components. Eight cases pin the postpartum period at 59 and 60 days and at 364 and 365 days. The comments, the CHIP documentation page and the changelog say that Child Health Plus is the separate route for children, that the Medicaid pregnancy route also applies to them, and that Public Health Law 2511(2) sets the subsidy criteria. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
chip_federal_share's documentation and comment read as a rule for every state's undocumented-child route. The formula applies it where gov.hhs.chip.undocumented.child is true, which is New York alone, and an undocumented child whom New Jersey admits keeps the match. A test comment now says the model applies the Child Health Plus route to undocumented children only. Documentation and comments only: no formula, parameter value or expected test value changes. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Merged
7 tasks done
Three New York comments stated what Department of Health documents say, and those documents are cited without having been read. The comments now give the verified basis and mark each document as unverified. The undocumented-immigrant comment says that the model applies New York's general postpartum period to undocumented residents. The Child Health Plus comment says that the model applies its full-premium schedule between the 400% premium threshold and the 405% limit. A comment where the pregnancy term is built says that the term and the Medicaid pregnancy category end on the same day, before the month-end continuation in 130 CMR 505.002(D)(4). chip_federal_share drops an undated "so far" and names CHIP's child category, and the changelog says who carries the zero federal share. Twenty-six test cases that assert the immigration variable alone are renamed to say "passes" or "fails the Medicaid immigration test". Comments, documentation, case names and the changelog only: no formula, parameter value, test input or expected value changes. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…idate M.G.L. c. 118E, section 16D(2) bars benefits other than emergency services to undocumented residents unless federal law requires them, and 130 CMR 504.006(D)(1) gives pregnant undocumented residents MassHealth Standard. The model follows the regulation. This adds the question to source_conflicts/candidates.yaml as an open candidate for the project lead to rule on. No marker is added, and no model file changes. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…candidate The example said the regulation covers the resident through day 364 after delivery. That is the model's day count. 130 CMR 505.002(D)(4), in the text revised February 13, 2026, continues eligibility for 12 months and then to the end of that month. The example now states the model's result, the regulation's period and the result under the statute's reading separately. One line of one file changes. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This was referenced Nov 21, 2026
Contributor
Author
|
US + core hub merge audit, us#11130 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.
What and why
undocumented_immigrant.yamlpassed undocumented residents of New York and Massachusetts through the Medicaid immigration test at every age from 2021, and backdating carried that to 2015. Both states cover them by group. This PR sets both states to false in that flag and adds each state's groups.Both immigration tests keep their results for everyone other than an undocumented resident and for every other state. The District of Columbia and Oregon keep their values.
is_medicaid_immigration_status_eligiblegains two terms for undocumented residents: pregnancy through the state's postpartum period, and age 65 or older. Two state parameters undergov.hhs.medicaid.eligibility.undocumentedswitch them on. New York and Massachusetts read true inpregnant, and New York reads true inagedfrom 2024-01-01.is_chip_immigration_status_eligiblegains a route for undocumented children under the CHIP age limit, whichgov.hhs.chip.undocumented.childswitches on. New York reads true.is_federal_chip_immigration_status_eligible, holds the federal part of the CHIP immigration test.is_chip_immigration_status_eligiblepasses a person who passes that test, a child below a state's age limit for covering every child, or a child on the undocumented-child route.chip_federal_sharegives a federal share of 0 to an undocumented enrollee in CHIP's child category who fails the federal CHIP immigration test, in a state that reads true ingov.hhs.chip.undocumented.child. Only New York reads true there.What follows from the two tests
is_medicaid_eligibleunless pregnant or in the postpartum period, and so does an undocumented Massachusetts resident of any age. An undocumented New York child under 19 in the same position fails the Medicaid immigration test and passes the CHIP one. The child then passesis_chip_eligible_childat a family income up to the model's New York limit of 405% of the poverty line, unless the child has coverage that bars CHIP. On take-up, the child enrolls in CHIP. On main the same child passedis_medicaid_eligibleup to a Medicaid category's income limit, if they met its other tests, and passed neither program above it.medicaid_slcsp_state_denominatorsums the weighted cost index of the people the model enrolls in each state's Medicaid.medicaid_cost_if_enrolledgives each enrollee the state's Medicaid spending times their own index, divided by that sum. In New York the model sets each enrollee's index from the family tier of the enrolled members of their tax unit. For example, take one parent and one child of 10 in a tax unit, both enrolled on main. If an undocumented child leaves Medicaid, the citizen parent's index rises from 0.85 to 1.0 times the base rate. If an undocumented parent leaves, the citizen child's index falls from 0.85 to 0.412. The sum thus depends on weighted enrollment and on family tiers. It can fall or rise when other household members' enrollment also changes, as in the adult-group example below. Where the sum stays positive, each state's Medicaid total stays the same. A single-household calculation sets the sum to calibrated state enrollment times the state-average index instead, and a reform simulation reuses its baseline's sum.chip_federal_sharegives them a federal share of 0, andchip_state_costassigns the whole $1,806.55 to New York.meets_wic_categorical_eligibilitypasses a person enrolled in Medicaid, a person whose SPM unit receives SNAP or TANF, and a person whose SPM unit has a pregnant woman or an infant enrolled in Medicaid. An undocumented person in either state who leaves Medicaid loses their own Medicaid route. When an undocumented infant leaves Medicaid, the rest of the SPM unit loses the infant route too, unless another pregnant woman or infant there keeps Medicaid. Their own Medicaid enrollment, SNAP or TANF, or WIC's income test still qualifies them.medicaid_enrolledamong their qualifying programs. Lifeline counts any member of the SPM unit and also passes a unit on income alone. The simplified formula counts any member of the tax unit, requires an income under $50,000 and applies through 2023. The MBTA fare in Massachusetts counts the person's own enrollment and covers ages 18 to 64. A unit or person that qualified only through an undocumented person's Medicaid loses that route. The Affordable Connectivity Program, through model year 2024, and the Emergency Broadband Benefit also qualify a unit through Lifeline, so they lose the same route. The household health-benefit and CBO transfer totals add Medicaid and CHIP.ny_chip_premiumcounts every child who passesis_chip_eligible_child, enrolled or not, so it counts an eligible undocumented child who declines CHIP too. The bill rises with that child only when the family's income sets a per-child rate above zero and the family's bill sits below its cap. From October 2022 the rate reads zero below 222% of the poverty line, and below 400% the cap equals three children's premiums. From 2024, once the tax unit's modified adjusted gross income reaches 400% of its poverty guideline, the model charges the full premium for each such child with no cap: $272.35 a child a month in 2025. CHIP eligibility tests a different measure, the child's Medicaid household income, against the 405% limit.meets_medicaid_adult_group_child_coverage_requirementadmits a parent of a child under 19 to the adult group only when each such child has coverage, such as Medicaid or CHIP enrollment. For example, take a citizen parent at 135% of the poverty line with one dependent child, an undocumented 18-year-old. The parent meets that requirement on main if the child takes up Medicaid, and with this PR if the child takes up CHIP. Each program has its own take-up input, so a child who takes up Medicaid on main but not CHIP here leaves the parent outside the adult group. From 2016 that parent can then passis_basic_health_program_eligible, New York's Essential Plan in the model, if they meet its other tests. In 2015, before the model opens the Essential Plan, the same parent can instead get a premium tax credit for a Marketplace plan. A child who takes up CHIP here but not Medicaid on main lets an otherwise eligible parent into the adult group.is_emergency_medicaid_eligiblenow turns true for an undocumented resident of either state who fails the Medicaid immigration test, has an emergency condition and meets a Medicaid category's tests. That category test asks for amedicaid_categoryother thanNONE, and the program switch must also read true, as it does from 1987. No variable reads it.The default dataset holds 2024 records, so default population runs change for New York and Massachusetts.
Sources
New York
The Department's site, www.health.ny.gov, refuses scripted requests, so this PR cites the Department's documents there by number, date and address, quotes none of them and has not checked what it says of them. nyc.gov refuses them too, and #11127 quotes New York City's pages on the same rules. The parameter files keep 23 OHIP/INF-2, 04 OMM/ADM-7 and GIS 08 MA/009 in their reference lists. Their comments give the verified basis first and mark each document's reading as unverified.
Massachusetts
Methodology choices
A maintainer can change any of these defaults.
1. Massachusetts pregnancy coverage runs through Medicaid. M.G.L. c. 118E, section 16D(2) bars benefits other than emergency services to undocumented residents unless federal law requires them. 130 CMR 504.006(D)(1) gives pregnant other noncitizens MassHealth Standard. The statute and the regulation differ here, and this PR follows the regulation: Massachusetts reads true in the pregnancy term. No source read for this PR names a federal law that requires the coverage. These residents keep main's pass on the Medicaid immigration test, except 60 to 364 days after delivery through 2022. The other choice sets the term to false and leaves them to the model's CHIP unborn-child route, which tests no immigration status and has the same 205% income limit. That route tests
is_pregnantalone, so their coverage would end at delivery. The choice also decides the federal share. #10950 sets the share to 0 for a Medicaid enrollee who fails the federal immigration test, and the unborn-child route carries CHIP's match. Under #10950 the model gives this coverage a federal share of 0; no source read for this PR says whether Massachusetts claims CHIP's match for it.2. New York's three terms apply to undocumented residents only. The texts reach further. Section 366(1)(g)(4) covers anyone aged 65 or older who fails on immigration status alone, the 2014 notice covers pregnancy for anyone without satisfactory status, and Child Health Plus tests no status. This PR keeps the terms to the status #11127 covers. The other choice drops the status condition from the three terms. The 2014 notice lists people granted deferred action or Temporary Protected Status among those with satisfactory status, as PRUCOL, and #11128 covers New York's rules for DACA holders.
3. New York's age-65 term starts in 2024. Part H makes January 1, 2024 the latest start and deems that change in force from January 1, 2023; it starts no coverage on the earlier date. The model starts the term on that latest date. 23 OHIP/INF-2 and the New York City page give January 1, 2024 as the start, and both stay unverified.
4. The pregnancy term runs through each state's Medicaid postpartum period. The formula reuses
is_pregnant_for_medicaid_nfc, the test the Medicaid pregnancy category uses in every state, so the term ends on the same day as the category's postpartum period. That test passes a person during pregnancy and while fewer days have passed since delivery than the state's period. The model reads that period on January 1 of each year. New York's 365-day period starts March 1, 2023, so the model reads 60 days through 2023 and 365 days from 2024. Massachusetts's starts April 1, 2022, so the model reads 60 days through 2022 and 365 days from 2023.The model holds a count of days since delivery and no date on which the pregnancy ended, so it ends the term at day 60 or 365. Massachusetts runs coverage on to the end of the month in which the period ends: its 2014 text does so for the 60-day period, and its text revised February 13, 2026 for the 12-month period. For example, take an undocumented Massachusetts resident who qualified under 130 CMR 505.002(D) while pregnant and whose pregnancy ended May 16, 2025. On May 25, 2026, 374 days later, the term no longer passes them, while the 2026 text covers them through May 31. #10463 tracks the month-end endpoint for every state.
Applying these periods to undocumented residents rests on a deduction in two places:
The other choice holds undocumented residents at 60 days.
5. The pregnancy and child terms hold from 2015. They carry the 2021-01-01 key of the flag they replace, so backdating gives them every model year, as it gave the flag. New York's October 2014 notice and Massachusetts's text effective January 1, 2014 show each state's pregnancy rule before 2015. Section 2511(2) dates the Child Health Plus income criteria from 1999 to 2008 and tests no immigration status. The Department's 2004 directive and 2008 guide would date New York's rules earlier, and both stay unverified. #11127 asks for dated starts; this PR keeps the backdated value.
6. The aged term reads a state flag and
is_ssi_aged. That variable holds the age-65 test the Medicaid aged group already uses. The other choice sets a per-state age threshold, with infinity for no coverage, asineligible_child_age_limit.yamldoes. It would also serve a state that covers another age range.Questions this PR leaves open:
medicaid. DC's flag keeps its value, as The model gives undocumented residents of New York and Massachusetts full Medicaid at every age, back to 2015 #11127 asks, and Decide whether the District's Health Care Alliance belongs inmedicaid#11218 tracks the question.medicaid_enrolled, so an undocumented adult aged 18 to 64 who qualified through their own Medicaid alone and leaves it loses the fare in the model. Model MassHealth Limited and the Children's Medical Security Plan for undocumented Massachusetts residents #11219 tracks both programs and the fare.Proposed follow-ups
chip.qmdand in the new federal CHIP variable's references (Fix comments and references from #11130 in the undocumented coverage files #11214).Invariants
For
is_medicaid_immigration_status_eligibleandis_chip_immigration_status_eligible:YAML cases pin each one at single points, and the grid run in the test plan checks all five. The section above traces what follows from the two tests, and other variables that read Medicaid or CHIP eligibility or enrollment can change too.
Test plan
is_chip_eligible_child, and one follows a pregnant Massachusetts resident at 150% of the poverty line tois_medicaid_eligible. Commit 81d1a02 adds four: three postpartum cases and a pregnant 17-year-old in New York. Commit d979176 adds 13. Paired cases pin the postpartum edges at 59 and 60 days and at 364 and 365 days. A New York family case asserts a CHIP federal share of 0 for the enrolled undocumented child, 0.65 for the citizen sibling, and both cost components. Four cases test the new federal CHIP immigration variable.policyengine-core teston a clean export of the first commit, 50efc6e: its 128 cases passed. That run loaded the three new parameter files through the package's own load path. Besides comments and reference entries, the later commits change one value in those files, Massachusetts's pregnancy term.is_chip_immigration_status_eligiblereads its federal part from the new variable, which holds the expression the test computed in place before. A second run of the grid at 56471c5 matches the one saved at 822177f in all 33,792 cells. Commit faa4b9a changes comments, documentation, test case names and the changelog, and no formula, parameter value, test input or expected value.us-ma:undocumented-pregnancy-masshealth-standardinsource_conflicts/candidates.yaml, for the project lead to decide. The register records places where a jurisdiction's sources disagree, conflicts between agency sources included. The New York questions add no entry. Section 2511(2)'s subsidy ceiling and section 2511(5)'s full-cost enrollment can both hold. The Department of Health guidance this PR could not read gives it no agency rule to weigh against the sources it did read on age 65 or postpartum coverage.ruff formatandruff check(0.15.5) pass on the two variables changed before commit d979176.changelog.d/.Pull request run 44921515229 at
735542eb87passed all 37 jobs on GitHub's merge with maine32ea13801.Related
chip_federal_sharegives CHIP enrollees the enhanced federal match, and a share of 0 to an undocumented child whom CHIP enrolls in its child category through New York's undocumented-child route. Medicaid and CHIP federal share counts state-funded coverage as federally matched #10986 covers the federal share of other state-funded coverage.6151323f55without a conflict. Since this branch started, Date California Medi-Cal expansions for undocumented residents at their effective dates #11125 and Zero Medicaid federal share for state-funded immigrant coverage #10950 added cases tois_medicaid_immigration_status_eligible.yaml, and other PRs added entries tosource_conflicts/candidates.yaml. The merge keeps both sides' entries in each file. Zero Medicaid federal share for state-funded immigrant coverage #10950 also added the military exemption of 8 U.S.C. 1613(b)(2) tois_federal_medicaid_immigration_status_eligible, which this PR's Medicaid test reads. The newis_federal_chip_immigration_status_eligibleholds the federal expression CHIP's test used before, with no military exemption, as on main (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).Microsimulation impact
We compared this head with main at its branch point,
a070f2e458, on the default dataset for 2024 and 2025. That base predates #10950, and the run sums national totals only, so it gives no split by state or between federal and state Medicaid spending.axiom: TheAxiomFoundation/rulespec-us#2332 queued (New York Social Services Law 122(1) and 366(1)(g)(4) and (4)(b)(1), Public Health Law 2510(4) and 2511(2), M.G.L. c. 118E, § 16D(2) and 130 CMR 504.006(D) and 505.002(D); the pinned corpus release holds none of them, so the signed encoder can't run yet). The CHIP federal share stays microsim-only.
Fixes #11127
🤖 Generated with Claude Code