Skip to content

Exclude people otherwise eligible for Medicaid from Illinois HBWD and use Illinois's income rules for its disability pathway - #10631

Open
hua7450 wants to merge 11 commits into
PolicyEngine:mainfrom
hua7450:il-hbwd-premium-other-coverage
Open

hua7450 wants to merge 11 commits into
PolicyEngine:mainfrom
hua7450:il-hbwd-premium-other-coverage

Conversation

@hua7450

@hua7450 hua7450 commented Nov 2, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes #10626

What and why

il_hbwd_eligible didn't check whether a person already qualifies for Medicaid another way. Someone in ADULT or SSI_RECIPIENT could also pass it, and then paid the Health Benefits for Workers with Disabilities (HBWD) premium through medicaid_premium and spm_unit_health_insurance_premiums.

89 Ill. Adm. Code 120.510(b) says an individual shall not be determined eligible "if the individual is otherwise eligible for medical assistance without a spenddown." Subsection (c) lets a person eligible only with a spenddown choose between that coverage and HBWD. il_hbwd_eligible now excludes people in any category in covered other than medically needy and the buy-in itself, if they also pass the Medicaid immigration test. An SSI recipient counts only when is_optional_senior_or_disabled_income_eligible is true, because 42 CFR 435.121(e)(5) lets some recipients qualify only after a spenddown.

A person aged 40 in Illinois in 2026, with is_disabled: true:

Income Category Premium before Premium after
$18,000 wages ADULT $372 $0
$18,000 wages, meets_ssi_disability_criteria SSI_RECIPIENT $372 $0
$40,000 wages WORKING_DISABLED_BUY_IN $828 $828

Ruling on what the bar reaches. 120.510(b) bars a person eligible for any "medical assistance without a spenddown". The first requirement on the HFS eligibility page opens more narrowly: "Not be eligible for the state's regular medical program for those with disabilities". Ruled by the project lead, 2026-11-02 (recorded with the 2026-11-13 ruling, comment): 120.510(b) governs over that clause, so the adult group also bars HBWD. Candidate us-il:hbwd-regular-medical-card-scope records this. Read alone, the clause would keep the $18,000 worker above in HBWD at $31 a month.

Illinois's income count. Illinois's optional senior or disabled pathway decides who qualifies "without a spenddown" through medicaid_optional_senior_or_disabled_countable_income. This PR replaces SSI's exclusions in that variable with Illinois's rules for aged, blind and disabled Medical Assistance No Grant coverage. Other states keep their path.

  • Unearned income. 120.330(a) considers "All currently available, unearned income which is not specified as exempt", and 120.335 doesn't exempt pensions. The count sums the unearned list of Illinois's cash program, Aid to the Aged, Blind or Disabled (AABD), and the sources on SSI's list that neither AABD list names, such as pensions and VA benefits.
  • Rent. 120.360(b) limits earned income to wages and self-employment profits, so rent counts as unearned. No input marks a person who runs a rental as a business, so a self-employed landlord's rent also counts as unearned.
  • Losses. The count floors each unearned source and total earnings at zero, so a capital, rental or farm loss doesn't reduce other income. A self-employment loss still offsets wages within earnings.
  • In-kind income and SSI. 120.340(b) says "Unearned income in-kind shall be exempt". 42 CFR 435.121(f)(1)(i) deducts "SSI payments".
  • The $25. 120.335(a)(1) gives a client "only one $25.00 exemption", on income other than SSI. The count takes it from unearned income first, then earnings. Each spouse of a couple gets one.
  • Earnings. 120.362(b) exempts "the first $20.00 of gross earned income and one-half of the next $60.00" or, for blind people, "The first $85.00 of the gross earned income and one-half of the amount in excess of $85.00". 120.370(a) exempts employment expenses, which the count reads from il_aabd_expense_exemption_person.

Effects beyond HBWD. is_optional_senior_or_disabled_income_eligible and Illinois's 209(b) SSI test, is_209b_ssi_recipient_income_eligible_for_medicaid, both read this count. medicaid_category therefore moves in both directions for some Illinois workers, and eligibility changes for some households. Monthly amounts, 2026 unless noted:

Household Count on main Count now Limit Category on main Category now Other outputs
Age 40, disabled, SSI criteria, SSDI $800 for 30 months, wages $1,100 $1,292.50 $1,714.42 $1,330 SENIOR_OR_DISABLED WORKING_DISABLED_BUY_IN il_hbwd_eligible true, il_hbwd_premium $75, medicaid_premium $900 a year
Age 70, Social Security $800, wages $1,100 $1,292.50 $1,714.42 $1,330 SENIOR_OR_DISABLED MEDICALLY_NEEDY is_medicaid_eligible stays true
Age 45, blind, wages $3,000 (2025) $1,455 $1,109.76 $1,304.17 WORKING_DISABLED_BUY_IN SENIOR_OR_DISABLED il_hbwd_eligible true to false
Couple, both 70, Social Security $920 each, counted together $1,815 $1,790 $1,803.33 NONE SENIOR_OR_DISABLED is_medicaid_eligible false to true

A 209(b) SSI recipient who needs a spenddown stays in HBWD. A person with SSDI of $500 and wages of $1,060 gets SSI of $16.50 and counts $1,378.88. With $100 a month of medical expenses, that person is SSI_RECIPIENT only after the spenddown, so il_hbwd_eligible stays true and the model charges a $38 monthly premium.

Runs of four household shapes in each state for 2026 show no difference outside Illinois.

Earned income exemption order: ruled. 120.362(b) applies the earned income exemption to gross earned income. IDHS PM 08-02-03 says "Allow these deductions after deducting the $25 AABD income disregard and self-employment expenses." The count follows the regulation, and the project lead confirmed it on 2026-11-13 (comment). Candidate us-il:mang-earned-exemption-order records this with state: ruled. Wages of $100 count $18.80 under the regulation and $21.30 with the $25 first. A blind worker with wages of $2,500 counts $915.82 and $928.32. Both stay within $1,330.

Other changes and limits:

  • Existing tests. il_hbwd_countable_earned_income.yaml Case 6 (blind, wages of $36,000, 2025) changes il_hbwd_eligible from true to false: ($3,000 - $85) / 2 = $1,457.50, less $322.74 of employment expenses and the $25, is $1,109.76, within the $1,304.17 limit. integration.yaml Case 3's self-employed parent has MAGI of about $27,880, within 138% of the two-person guideline ($28,207), so that case now expects them to be excluded. integration.yaml Case 6 no longer sets the months input and matches main: its income of $30,000 is 199% of the guideline, so the adult group doesn't apply with or without Medicare.
  • Partner tests. This PR edits five Illinois partner cases. The table under "Partner tests" below lists every changed value.
  • Child care before subsidies. In this count, Illinois's child care exemption (89 Ill. Adm. Code 113.125(b), which 120.370(a) applies) comes from the cost before subsidies, through a helper shared with il_aabd_child_care_expense_exemption, whose results don't change. childcare_expenses nets out child care subsidies. Pennsylvania's subsidy reads medical premiums, which read the Medicare Part B premium and, since Charge the Medicare Part B premium only to people who pay it #10634, Medicaid's buy-in, so reading it here made this variable depend on itself: that circular definition failed six CI jobs at 9eee98af6d. A family with a child care subsidy also has the subsidized part exempted. A worker aged 70 with $12,000 of wages, a grandchild and $200 a month of child care counts $7,986.79 (medicaid_optional_senior_or_disabled_countable_income.yaml, "Illinois takes the child care exemption from the cost before any subsidy").
  • Mississippi. ms_wd_premium has a similar gate on ms_wd_eligible. This PR doesn't change it, because Mississippi's rule hasn't been checked.
  • Medically needy. is_medically_needy_for_medicaid still reads ssi_countable_income, so an aged person can pass there with no spenddown. The 70-year-old above counts $384.42 over the limit under Illinois's rules and still gets MEDICALLY_NEEDY.
  • Limits of the count. The model doesn't deduct federal withholding under 120.370(a)(1): about $115.83 a month for the blind worker with wages of $2,500 and $15.83 in il_hbwd_eligible.yaml Case 14, with no asserted eligibility answer changing. il_withheld_income_tax estimates Illinois withholding on all of a person's AGI, so rent and taxable pensions raise the deduction from wages. The $25 also comes off contributions such as alimony, which 120.335(a)(1) leaves out. The first $50 of child support (120.335(c)(7)) isn't exempted, and cents aren't dropped (120.330(c), 120.360(e)).
  • HBWD and cash AABD. Both keep their shared rules. HBWD's unearned list omits pensions and VA benefits, so il_hbwd_eligible.yaml Case 10's $1,250 pension adds nothing to its $19 premium. il_aabd_earned_income_after_exemption_person takes expenses and the $25 before the blind exemption, and AABD's earned list treats rent as earned. 120.510(i) names only 120.362(a) and (b)(1), which bears on any fix to HBWD's blind exemption. 120.510(n)(1) bases premiums on "gross unearned" income, and HBWD's list leaves out SSI, so that file's Case 17 doesn't assert its premium ($38 in the model, $56 if SSI counts).
  • Deeming. Illinois spouse and parent deeming use SSI's exclusions, and disregard.couple[IL] stays $25.
  • The 120.510(c) choice. No input records the person's choice, so the model always picks the buy-in over medically needy.
  • Premium without coverage. il_hfs_immigration_status_eligible has no five-year test, though 120.310(b)(2) has one. A permanent resident of 2 years with $18,000 of wages gets il_hbwd_eligible true and a medicaid_premium of $372 with is_medicaid_eligible false. A refugee in 2027, a status the federal list drops, gets the same result.
  • Premium without enrollment. il_hbwd_premium has no enrollment gate. A person with $40,000 of wages and takes_up_medicaid_if_eligible: false still has a medicaid_premium of $828.
  • Related. Illinois HBWD premium: encode the 21 x 21 premium table instead of adding earned and unearned components #10471 covers the premium amounts, including the 120.510(n)(3) cell for earned income of $1,251-$1,500 and unearned income of $501-$750, which prints $79 where the model gives $69 (candidate us-il:hbwd-premium-earned-1251-unearned-501-cell). CA WDP and IL HBWD buy-ins omit meets_ssi_disability_criteria; IL worker income test inconsistent #9336 covers the disability input.

Partner tests

This PR edits five partner cases, and the project lead approved each edit. Two are boundary cases that this PR's Illinois rules defeat. In three more, the 120.510(b) bar alone now gives the asserted false, so each gets an output that pins the test its name describes. Their existing expected values don't change.

File Case Variable Old New Source
federal/healthcare/medicaid/il.yaml medicaid_senior_age_65_medicare_handoff_to_optional_pathway employment_income_before_lsr (input) 22,000 18,000 Under 89 Ill. Adm. Code 120.362 and 120.370(a), $22,000 of wages counts as $18,791.79 a year, over the 1.00 FPL standard of 120.20 ($15,960), so at 65 the senior pathway would need a spenddown. At $18,000 the count is $15,237.79 and the case again shows the handoff.
same same every expected output unchanged unchanged At $18,000: no SSI (resources $5,000 > $2,000), QMB pays Part A and B premiums ($9,214.80), medicaid_category 8 (SENIOR_OR_DISABLED), Medicaid $9,953.33, no CHIP or premium tax credit.
state/il/hbwd.yaml il_hbwd_age_16_minimum_age_eligible il_hbwd_eligible true false A 16-year-old with $10,000 of wages is eligible for medical assistance as a child under 120.11(b) (income at or below 313% FPL), and 120.510(b) bars anyone "otherwise eligible for medical assistance without a spenddown."
same same il_hbwd_person -156 0 No HBWD, so no premium.
same same il_hbwd_age_eligible (added) (not asserted) true Keeps the case's age-16 lower bound (120.510(a)(7)) tested.
same il_hbwd_age_65_age_out il_hbwd_age_eligible (added) (not asserted) false 65 is outside 16-64 (120.510(a)(7)). The person also receives SSI with income within Illinois's standard, so 120.510(b) alone would make il_hbwd_eligible false; the added output keeps the upper age bound tested.
same il_hbwd_assets_above_limit_ineligible il_hbwd_asset_eligible (added) (not asserted) false $30,000 exceeds the $25,000 limit (120.510(a)(9)). The person is also in the ACA adult group (120.10(h)), which 120.510(b) counts, so the added output keeps the asset test tested.
same il_hbwd_not_disabled_ineligible il_hbwd_disability_eligible (added) (not asserted) false No disability (120.510(a)(4)). The person is also in the ACA adult group, so the added output keeps the disability test tested.

Partner-facing impact.

  • Age-65 case: none at the case's new inputs. At the old $22,000, the model would show medicaid_category 10 (MEDICALLY_NEEDY) with the same $9,953.33, because is_medically_needy_for_medicaid reads SSI's count. Under Illinois law that person needs a $236 monthly spenddown (see "Medically needy" above).
  • Age-16 case: the model already placed this person in child Medicaid (category 2, $9,953.33) on main and also charged an HBWD premium of $156 a year. Now the premium is $0.

Boundary check.

  • All 47 cases in the 17 partner files with an Illinois household were computed at main (59ab85c066) and at this PR's code, covering every asserted output plus Medicaid category, eligibility, amount, the Illinois count and HBWD.
  • Only these two cases change an asserted output.
  • state/il/bcc.yaml il_bcc_age_65_age_out and state/il/hbwd.yaml il_hbwd_age_65_age_out change only the Illinois count ($6,960 to $12,572.29 and $4,460 to $8,129.79), which they don't assert. Both stay under $15,960 and keep their categories.

Evidence.

  • CI at f784cc5742 recorded the age-65 failure (medicaid_category 10 vs 8). The age-16 case never ran in CI: the partner job's make target stops after the federal step fails.
  • A local run of the whole partner folder before these edits recorded both failures (554 passed, 2 failed).
  • Independent review: a fresh reviewer that made neither the model change nor these edits recomputed every edited value from 89 Ill. Adm. Code 120.10, 120.11, 120.20, 120.362, 120.370 and 120.510. It agreed with each. The age-65 result holds whether or not Medicare tax, federal withholding or the IL-W-4 age allowance is counted (Illinois's count ranges from $14,976.79 to $15,287.29, all under $15,960). That review was at 30536de972, before the latest merge of main. On 2026-11-16 a second fresh reviewer repeated the review at the current head (94697c4ada). It recomputed each value from Part 120 and the 2026 poverty guideline and agreed with all five cases. The two edited files passed (7 of 7) in one run at that head. The partner diff contains only these five cases, and nothing merged from main reaches the Illinois Medicaid or HBWD rules they read. The reviewer found no critical or medium issues.

Test plan

  • For policy changes: 23 new cases, with expected values worked by hand from the rules above: 11 in il_hbwd_eligible.yaml (Cases 7-17) and 12 in medicaid_optional_senior_or_disabled_countable_income.yaml. They cover the adult group, SSI, the buy-in alone, a person eligible only with a spenddown, Medicare closing the adult group, the immigration clause, both sides of the $1,330 limit, an SSI recipient who needs a spenddown, wages, pensions, SSI, one $25 per client, a couple on both sides of the limit, rent, a capital loss, the blind exemption and child care.
  • If this PR takes a reading where sources disagree: 120.510(b) over the HFS lead clause, ruled by the project lead on 2026-11-02 (us-il:hbwd-regular-medical-card-scope); 120.362(b) over IDHS PM 08-02-03, ruled by the project lead on 2026-11-13 (us-il:mang-earned-exemption-order). Both rulings are recorded in this comment.
  • make format (ruff format on the changed variables)
  • Changelog fragment in changelog.d/

Values were checked by hand and in one process per case. On 2026-11-13 the branch merged main at 47c4e8720b (032b9e3ab3; the ruling is 9eee98af6d), resolving two conflicts: both sides' new candidates are kept, and this PR's 11 cases follow main's in medicaid_optional_senior_or_disabled_countable_income.yaml. On the merged code the PR's four test files pass locally, 100 cases, one process; with the child care change (f784cc5742), 101. Other suites were not run locally; CI validates. On 2026-11-16 the five partner edits were committed (981960ba21) and the branch merged main at fd0a748698 (94697c4ada) with no conflicts; no tests were run locally after that merge.

axiom: TheAxiomFoundation/rulespec-us#2008 queued

🤖 Generated with Claude Code

hua7450 and others added 3 commits November 2, 2026 17:47
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Illinois's optional senior or disabled count now follows 89 Ill. Adm. Code
120.330, 120.335, 120.362 and 120.370, so a worker who needs a spenddown keeps
the buy-in under 120.510(c). An SSI recipient who needs a spenddown doesn't bar
the program. Removes a Medicare input that changed nothing in Case 6.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@hua7450 hua7450 changed the title Exclude people otherwise eligible for Medicaid from Illinois HBWD and its premium Exclude people otherwise eligible for Medicaid from Illinois HBWD and use Illinois's income rules for its disability pathway Nov 3, 2026
# Conflicts:
#	policyengine_us/tests/policy/baseline/gov/hhs/medicaid/income/medicaid_optional_senior_or_disabled_countable_income.yaml
#	source_conflicts/candidates.yaml
@hua7450

hua7450 commented Nov 13, 2026

Copy link
Copy Markdown
Collaborator Author

Rulings by the project lead on the two source-conflict candidates in this PR.

2026-11-13: order of Illinois's MANG earned income exemption (us-il:mang-earned-exemption-order).

  • Question. Does Illinois take its earned income exemption from gross earned income, as 89 Ill. Adm. Code 120.362(b) reads, or after the $25 AABD exemption and self-employment expenses, as IDHS PM 08-02-03 sets out?
  • The texts. 120.362(b) exempts "the first $20.00 of gross earned income and one-half of the next $60.00" or, for blind people, "The first $85.00 of the gross earned income and one-half of the amount in excess of $85.00". PM 08-02-03 says "Allow these deductions after deducting the $25 AABD income disregard and self-employment expenses."
  • Ruling. Follow the regulation, as this PR already does: the exemption comes off gross earned income.
  • Example. Wages of $100 a month count $18.80 under the regulation and $21.30 with the $25 first. A blind worker with wages of $2,500 counts $915.82 and $928.32. Both stay within $1,330.
  • Not changed here. Illinois's shared AABD variable (il_aabd_earned_income_after_exemption_person) still takes the exemption after expenses and the $25, as the description's limits say.

2026-11-02: what the HBWD bar reaches (us-il:hbwd-regular-medical-card-scope).

  • Question. Does Health Benefits for Workers with Disabilities bar a person otherwise eligible for any medical assistance without a spenddown, as 89 Ill. Adm. Code 120.510(b) says? Or does it bar only a person eligible for the regular medical program for people with disabilities, as the lead clause of the HFS eligibility page reads?
  • Ruling. Follow 120.510(b): "An individual shall not be determined eligible if the individual is otherwise eligible for medical assistance without a spenddown." Any coverage without a spenddown bars the program, including the ACA adult group, which 120.10(h) places under medical assistance.
  • Example. A disabled worker aged 40 with wages of $18,000 in 2026 qualifies for the adult group, so 120.510(b) bars HBWD. Read alone, the page's lead clause would keep this person in it at $31 a month.

hua7450 and others added 5 commits November 13, 2026 08:58
Mark us-il:mang-earned-exemption-order ruled for 89 Ill. Adm. Code
120.362(b), which takes the exemption from gross earned income, and point
both Illinois candidates' notes at the dated comment that records the
project lead's rulings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…dies

childcare_expenses nets out child care subsidies, Pennsylvania's subsidy
reads medical premiums, and since PR 10634 the Medicare Part B premium reads
Medicaid's buy-in, so the Illinois block of
medicaid_optional_senior_or_disabled_countable_income depended on itself.
Move the 89 Ill. Adm. Code 113.125(b) child care calculation into a helper
that cash AABD calls with net expenses, unchanged, and that the Medicaid
block calls with pre_subsidy_childcare_expenses, alongside the other
employment expense sources. Add a case for a worker raising a grandchild.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…count

- medicaid/il.yaml, age-65 Medicare handoff case: wages 22,000 -> 18,000 so
  the case still reaches the optional senior or disabled pathway under
  Illinois's own income count; asserted outputs unchanged.
- state/il/hbwd.yaml, age-16 case: il_hbwd_eligible false and
  il_hbwd_person 0, because the person is otherwise eligible as an older
  child (89 Ill. Adm. Code 120.510(b)); adds il_hbwd_age_eligible true so
  the case still proves the minimum age.
- state/il/hbwd.yaml, age-65, assets and not-disabled cases: add the
  il_hbwd_age_eligible, il_hbwd_asset_eligible and
  il_hbwd_disability_eligible false outputs, since the 120.510(b) bar now
  turns HBWD off on its own.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@DTrim99

DTrim99 commented Nov 16, 2026

Copy link
Copy Markdown
Collaborator

PR Review: Exclude people otherwise eligible for Medicaid from Illinois HBWD and use Illinois's income rules for its disability pathway

Summary

The core fix is right. 89 Ill. Adm. Code 120.510(b) says "An individual shall not be determined eligible if the individual is otherwise eligible for medical assistance without a spenddown", and 120.510(c) gives a person eligible only with a spenddown the choice of HBWD. il_hbwd_eligible now applies both: medically needy and the buy-in itself are left out of the bar, and an SSI recipient bars the program only with income within the limit before any spenddown. The bar reads year-level categories and leaves out the buy-in category, so it can't feed back into itself. The new Illinois branch in medicaid_optional_senior_or_disabled_countable_income follows 120.330, 120.335(a)(1), 120.340(b), 120.360(b) and 120.362. It is gated on state == "IL", so other states keep their path. Every hand-checked expectation reproduces (14 below), and all 37 checks pass at 94697c4ada.

One problem is blocking. The Illinois count deducts a child care exemption that 120.370(a) doesn't allow for MANG(AABD). Four should-fix items are open: one new term isn't pinned by any test, one candidate entry is incomplete, the partner-test gate isn't recorded, and the Axiom issue is stale.

Critical (must fix)

1. Child care is not a MANG(AABD) employment expense under 120.370(a) (medicaid_optional_senior_or_disabled_countable_income.py:138-164; test "Illinois takes the child care exemption from the cost before any subsidy", medicaid_optional_senior_or_disabled_countable_income.yaml:1247-1251)

  • What the code does. The Illinois branch adds il_child_care (up to $160 a child a month, through the new _child_care_exemption.py helper) to the employment expenses. The test comment says "89 Ill. Adm. Code 113.125(b), which 120.370(a) applies, exempts up to 160 a month".
  • What 120.370(a) says. It doesn't apply 113.125 at all. Its MANG(AABD) list is closed, and child care isn't on it: "The following recognized expenses of employment shall be exempt from consideration for MANG(AABD): 1) Withholding taxes (Federal and State); 2) Social Security Tax; 3) Transportation ...; 4) Lunch supplementation ...; 5) Special tools and uniforms ...; 6) Union dues; 7) Group life insurance premiums; 8) Group health insurance premiums; 9) Retirement plan withholding; and 10) The reasonable cost of items and services which are needed and used to enable a disabled person to work." (120.370)
  • Where child care does appear. The same section gives a child care deduction only to MANG(C), in 120.370(b)(4)(A): "Expenses of child care shall be deducted from income up to a maximum of $200 per child for each child under the age of two (2) and $175 for each child age two (2) and over." 113.125(b), with its $160/$128 amounts, is in Part 113, which covers cash AABD.
  • Where the PR's reading comes from. IDHS PM 08-02-03-c, filed under "Deductions from Earned Income (Cash, Medical)", allows day care costs of $160 or $128 a child "for employed parents" (PM 08-02-03-c). That makes this a regulation-versus-manual conflict, and the PR takes the manual's side under a citation to the regulation. It records no candidate. CONTRIBUTING.md#source-conflicts treats the regulation as binding over a manual.
  • Effect. The asserted count of $7,986.79 should be $9,906.79 under 120.370(a). Here both are under the limit, but they won't always be. A working aged, blind or disabled parent whose count is up to $160 a child above $1,330 a month now passes is_optional_senior_or_disabled_income_eligible. That moves medicaid_category to SENIOR_OR_DISABLED, changes the 209(b) SSI test, and wrongly bars the person from HBWD under 120.510(b). Main had no child care deduction on this path.
  • Fix.
    • Drop il_child_care from the Illinois count, keep the other expense sources, and change the test to expect $9,906.79 (or remove it).
    • That also removes the need for the pre-subsidy workaround and its NOTE.
    • If the project lead instead wants to follow PM 08-02-03-c, record a source_conflicts/candidates.yaml entry with a dated ruling (regulation against manual, follows: conflicting-source), and cite the manual rather than 120.370(a) in the code and test.

Should address

1. ssi_recipient_without_spenddown is not pinned by any test (il_hbwd_eligible.py:43-49)

  • Illinois is classified 209(b), so is_ssi_recipient_for_medicaid already requires is_optional_senior_or_disabled_asset_eligible. An SSI recipient who also passes is_optional_senior_or_disabled_income_eligible is then nearly always in is_optional_senior_or_disabled_for_medicaid, which is already in without_spenddown.
  • Every case that exercises the term is decided by another category: Case 8 is also ADULT, and the partner age-65 case fails the age test anyway. Deleting the term fails no test.
  • It differs only for a reported receives_ssi without SSI aged/blind/disabled status, or at the pre-2024 $2,000 limit, which Illinois tests with < while SSI tests with <=.
  • Fix: add a case where the term alone bars HBWD, or drop it with a comment that the senior-or-disabled category covers SSI recipients within the limit.
  • The other new guards are pinned: medically needy by Case 10, the SSI spenddown exclusion by Case 17, the immigration gate by Case 12, and the Illinois branch's parent-deeming term by is_medically_needy_for_medicaid.yaml Case 40, which asserts is_optional_senior_or_disabled_for_medicaid: [false, false].

2. Candidate us-il:mang-earned-exemption-order is incomplete and dated wrongly (source_conflicts/candidates.yaml:4524)

  • Missing fields. CONTRIBUTING.md#source-conflicts step 1 requires readings and pe_us.prs. This entry has neither, and no example. It is the only one of the 485 candidates without readings.
  • Years. years is from: 2026, to: 2026, type: program, with the note "program year as the program defines it", which says nothing. The formula is undated, and il_hbwd_countable_earned_income.yaml Case 6 (2025) depends on the same order.
  • Fix. Add readings (the 120.362(b) gross-earnings text and the PM 08-02-03 "after deducting the $25" text), the PR URL under prs, and the example from the ruling ($100 of wages counts $18.80 against $21.30). Use calendar years covering the years the code applies.
  • What is in order. The ruled state is fine for both new entries. Each is a regulation-over-guidance or regulation-over-manual reading, and each links a dated record (comment 6855055391, the author's post of the 2026-11-02 and 2026-11-13 rulings). us-il:hbwd-regular-medical-card-scope is complete.

3. Partner contract tests changed without a recorded partner gate

  • What changed in edge_cases/federal/healthcare/medicaid/il.yaml (case medicaid_senior_age_65_medicare_handoff_to_optional_pathway):
    • The input employment_income_before_lsr changes from 22,000 to 18,000.
    • The header and inline comments are rewritten.
    • No expected output changes.
  • What changed in edge_cases/state/il/hbwd.yaml:
    • il_hbwd_age_16_minimum_age_eligible changes expected values: il_hbwd_eligible goes from true to false and il_hbwd_person from -156 to 0. The output il_hbwd_age_eligible: true is added.
    • il_hbwd_age_65_age_out adds il_hbwd_age_eligible: false.
    • il_hbwd_assets_above_limit_ineligible adds il_hbwd_asset_eligible: false.
    • il_hbwd_not_disabled_ineligible adds il_hbwd_disability_eligible: false.
    • In these last three cases the existing expectations are unchanged. Comments are rewritten in all four.
  • The values check out.
    • A 16-year-old with $10,000 of wages is in Illinois's child group: Illinois's older-child limit is 3.18 FPL, and 120.11(b) says "Eligibility for medical assistance exists for children under age 19". 120.510(b) therefore bars HBWD.
    • The age-65 arithmetic is in the hand checks below.
    • The PR body tables every changed value and describes a fresh-reviewer recheck at this head.
  • The gate is not recorded. The body says "the project lead approved each edit", but links no record. The only PR comment (2026-11-13) predates the partner commit (981960ba21, 2026-11-16) and covers only the two source-conflict rulings. The PR author is also the partner-gate holder, so the gate needs a record from the gate holder that is separate from the author's description. This review flags the gate and does not treat it as resolved.

4. The Axiom line points at an issue that doesn't match the head

  • axiom: TheAxiomFoundation/rulespec-us#2008 queued: the issue is OPEN and labelled pe-parity. It was last updated 2026-11-03 and records head 58583e85a6.
  • Since then:
    • It doesn't describe the child care exemption or its pre-subsidy cost (added at f784cc5742).
    • It still lists the earned-exemption order as "open" (state: open), though the PR now records it as ruled.
    • It counts 11 new cases in the count file, against 12 now.
    • It doesn't mention the partner edits.
  • Its corpus table leaves 120.340, 120.360, 120.362 and 120.370 as "Not checked", so it isn't yet dispatch-ready on the rulespec-us#1467 model.
  • Fix: update the issue to the current head, reflecting the resolution of Critical 1, and settle the corpus status of each source.

Suggestions

  1. References and source lists for MANG.
    • The Illinois branch reuses cash-AABD parameters (exemption.flat, .elderly_or_disabled, .blind, sources.unearned, sources.earned), whose references cite only Part 113. Add the 120.362(a)/(b) references to the three exemption files, as the PR series already did for exemption/sources.yaml with 120.370(a).
    • The derived list (SSI's sources less AABD's two lists, plus a hard-coded "rental_income") silently picks up any source later added to SSI's list. A dedicated MANG unearned-source parameter citing 120.330/120.335 would be clearer.
  2. Case 12 (il_hbwd_eligible.yaml:151). It asserts il_hbwd_eligible: true for a permanent resident of 2 years. 120.310(b)(2) says such persons "shall not be eligible for five years", and the body notes il_hfs_immigration_status_eligible lacks that bar. That variable is shared with BCC and family planning, so a fix belongs elsewhere. Say in the test comment that the true reflects that gap, and link an issue.
  3. Structure. The ~100-line Illinois block runs for every person nationwide inside a federal variable. An Illinois-only variable (defined_for = StateCode.IL) selected by the federal one would be easier to test and cheaper in microsimulation.
  4. Follow-up outside this PR. HBWD's own count (on main) takes il_aabd_expense_exemption_person, which includes the child care exemption. 120.510(i) allows only "work related expenses that are allowed as deductions for AABD MANG", which is 120.370(a). Worth an issue alongside Critical 1.

Verified correct

  • The bar. 120.510(b)/(c) as encoded: medically needy and the buy-in are excluded from the bar, a 209(b) SSI recipient bars it only without a spenddown (42 CFR 435.121(e)(5)), and the bar requires the Medicaid immigration test.
  • No circularity. il_hbwd_eligible reads year-level categories without is_working_disabled_buy_in_for_medicaid. medicaid_medically_needy_medical_expenses reads medicaid_eligibility_health_insurance_premiums and other_medical_expenses, not medicaid_premium, so the 209(b) spenddown path doesn't loop through il_hbwd_premium. Illinois's older-child limit (3.18 FPL from 2023) means CHIP-only children don't escape the bar.
  • Other states unchanged. The edit is gated by where(state == "IL", il_countable, personal_countable). No new state-gated int or enum key, so the NH Add New Hampshire state supplementation for 2026 #10156 pattern doesn't apply. The new code is vectorized (per-source floors, where, list comprehensions over parameter lists). Illinois's additional_disregard is 0 and deducts_health_insurance_premiums is false, so the $25 isn't taken twice.
  • Regulation texts checked. 120.330(a)-(b), 120.335(a)(1) (one $25, not on SSI), 120.340(b) (in-kind exempt), 120.360(b) (earned is only wages and self-employment profit, so rent is unearned) and 120.362(b)(1) and (b)(2)(A) (both "gross earned income"). The parameters match: $25 flat, $20 then 50% to $80, $85 then 50%.
  • Refactor. il_aabd_child_care_expense_exemption's refactor is behaviour-preserving: the same childcare_expenses input is passed to the helper.
  • Housekeeping. Changelog changelog.d/il-hbwd-premium-other-coverage.fixed.md is present. Tests are in variable-named files. Main-side guards Integrate modeled state unemployment insurance into income flows #9558, Count military SBP annuities in state benefit income lists #10317, Count each Social Security benefit once in Pennsylvania CCW countable income #10408 and Tie source-conflict markers to the register shared with Axiom #10287 are satisfied, with no new conflict-sounding comments.
  • Hand checks (2026 unless noted; FPL $15,960, so $1,330 a month; couple $21,640, so $1,803.33; SSI $994; Illinois exemption $2,925, rate 4.95%):
    1. Age 70, wages $12,000: 1,000 − 50 − 62 − 37.43 ((12,000 − 2,925) × 4.95% / 12) − 25 = 825.5656 × 12 = 9,906.79 ✓
    2. Pension $16,080: 1,340 − 25 = 1,315 × 12 = 15,780, within 1,330 ✓
    3. Pension $7,200: SSI 994 − (600 − 20) = 414; 600 − 25 = 575 × 12 = 6,900 ✓
    4. Pension $16,080 + interest $240: 1,360 − 25 = 1,335 × 12 = 16,020, above 1,330 ✓
    5. Couple, Social Security $11,040 each: 920 − 25 = 895 → 10,740 each; 1,790 ≤ 1,803.33 ✓. At $11,184: 907 → 10,884; 1,814 > 1,803.33 ✓
    6. Rent $16,800: unearned 1,400 − 25 = 1,375 → 16,500; earnings 16,800 − 16,800 = 0 ✓
    7. Blind, wages $30,000: 2,500 − (85 + 1,207.50) = 1,207.50 − 155 − 111.68 − 25 = 915.8156 × 12 = 10,989.79 ✓
    8. Wages $1,200: 100 − 50 − 6.20 − 25 = 18.80 × 12 = 225.60; SSI 994 − (100 − 85) / 2 = 986.50 ✓
    9. HBWD Case 13: 1,100 − 68.20 − 42.38 − 50 = 939.42; 800 − 25 = 775; 1,714.4156 × 12 = 20,572.99; 22,800 / 15,960 = 142.9% > 138% ✓
    10. Cases 15/16: 800 − 49.60 − 27.53 − 50 = 672.87; + 657 = 1,329.87 → 15,958.39 (barred) ✓; + 658 = 1,330.87 → 15,970.39 (buy-in) ✓
    11. Case 17: SSI 994 − (480 + 497.50) = 16.50; 903.88 + 475 = 1,378.88 → 16,546.51; less 100 = 1,278.88 ≤ 1,330 → SSI_RECIPIENT, HBWD kept ✓
    12. il_hbwd_countable_earned_income.yaml Case 6 (2025): (3,000 − 85) / 2 = 1,457.50 − (186 + 136.74) − 25 = 1,109.76 ≤ 15,650 / 12 = 1,304.17 ✓
    13. Partner age-65 case: 18,000 − 300 − 600 − 1,116 − 746.21 = 15,237.79 ≤ 15,960 ✓; at 22,000: 18,791.79 > 15,960 ✓
    14. Child care test: 9,906.79 − 160 × 12 = 7,986.79 (the arithmetic holds; the legal basis is Critical 1)

Axiom line assessment

axiom: TheAxiomFoundation/rulespec-us#2008 queued. The issue is OPEN and labelled pe-parity, with module paths, verbatim text and hand-derived companion cases. It was written for head 58583e85a6 (last updated 2026-11-03) and doesn't match 94697c4ada, as Should 4 explains. Not valid until updated.

CI status

All 37 checks pass at 94697c4ada (re-checked at the end of this review), including Household API Partners and PR validation. Nothing is pending.

Branch status

Verdict: REQUEST_CHANGES

@DTrim99 DTrim99 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Requesting changes: 1 critical, 4 should address, 4 suggestions. Full report in the comment above.

Critical: the Illinois count deducts child care, but 89 Ill. Adm. Code 120.370(a)'s MANG(AABD) expense list is closed and has no child care (child care is MANG(C)-only, 120.370(b)(4)), and 120.370 does not apply 113.125. Only IDHS PM 08-02-03-c allows it. Drop it, or record a regulation-vs-manual candidate with a dated ruling.

Should: unpinned ssi_recipient_without_spenddown term; incomplete us-il:mang-earned-exemption-order candidate; partner test edits without a recorded gate; rulespec-us#2008 stale against this head.

This branch has not been deployed

No deployments
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.

Illinois HBWD: stop charging the premium to people covered by another Medicaid category

2 participants