Repository navigation
Limit SSI ineligible-child allocations to co-resident children and compute SSI and Medicaid deeming by month - #10146
Conversation
…nt children 20 CFR 416.1163(b) deducts an allocation for each ineligible child, which 416.1160(d) defines as the claimant's or the spouse's child who lives in the same household and is not eligible for SSI. The allocations were summed over the claimant's tax unit, so grandchildren and other relatives filed there counted, the couple's children filed elsewhere did not, and tax-unit members living in another household did. - New ssi_spousal_deeming_child_allocations sums allocations over co-resident children whose parent ids name the claimant or the spouse. Without ids it keeps the tax-unit grouping (extended to a separately filing spouse), restricted to co-residents and, in households with links, to unlinked parents, as the parent-link contract requires. - is_ssi_ineligible_child applies 416.1856 (under 18, or under 22 and a student; unmarried; not a household head) and treats aged, blind or disabled children without qualifying immigration status as ineligible. - ssi_ineligible_child_allocation makes no allocation for a child receiving public income-maintenance payments (new input) and excludes a student child's wages up to the 416.1112(c)(3) amounts (416.1161(c)). - Earned and unearned deeming now read the same allocation total; the earned side no longer multiplies it by the person's ABD flag. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
….400 Jack case POMS SI 01310.115 A.3 and SI 01310.140 A limit spouse-to-spouse allocations to children of either member of the couple; SI 01320.141 adds SNAP to the public income-maintenance payments from 30 Sept 2024 and SI 01320.410 keeps the allocation for a TANF family-cap child; SI 01320.185 applies the student earned income exclusion to any student child. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…clusion monthly 416.1163(b)(2) reduces each month's allocation by that month's income, and the 416.1112(c)(3) student exclusion runs month by month until its yearly limit is used up (POMS SI 00820.510). The annual computation let income left over in months after the yearly limit ran out reduce the allocation for earlier months. Add a month-by-month differential test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
416.1163(b)(1)-(2) caps the allocation at the couple rate less the individual rate, reduced by the child's income. On main a child with a $20,000 business loss got a $25,964 allocation, and negative unearned income raised it or offset wages. Floor earned and unearned income at zero separately. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The WDP screens take a supplied is_ssi_spousal_deeming_applies before the annual comparison, as they did when they read the variable. - A WDP case supplies the flag for a couple whose computed comparison gives no deeming, in both the SSI/SSP screen and the income test. - A CAPI case with two CAPI children shows that neither takes an ineligible-child allocation from the other's budget: 618.27 each. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The changelog fragment now describes the change against main. - us:medicaid-parental-child-allocation-ssi-floor cites POMS SI 01715.020 for Missouri's and Virginia's 209(b) status, and its note describes the code. - us:ssi-spousal-deeming-child-scope cites 416.1160(d), 416.1163(b) and POMS SI 01310.115 and 01310.140 by URL, covers every year from 1974, and records that the code follows POMS's couple household against the regulation's wider definition. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Resolve ten conflicts with #10837, which applies SSI's $20 general exclusion once when a claimant with in-kind support has income deemed from an ineligible spouse: - Compute each month's deemed amount from that month's deeming status and the spouse's income after that month's child allocations, and count the claimant's in-kind support in both budgets, as #10837 does. - Keep ssi_countable_income as the annual sum. Read the month's budget in the individual-only limit, the state supplement helper and Texas supplement eligibility. - Take main's annual-input adapter, which honors dated abolition switches. - Compute the ineligible-parent test's deemed amount without in-kind support, as main does, and apply the year's deeming comparison to that amount and to the benefit rate. - Return the annual deeming flag as an array when a reform abolishes it. - Keep every is_ssi_ineligible_parent case from both sides, main's first, and add Cases 32 and 33. - Assert main's new month cases on the monthly variables. - Recompute Oklahoma Case 22 with one exclusion: 52.50 of SSI, 1,491 of combined countable income and a 40 supplement. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The annual-input adapter returns a scalar zero for an abolished name. ssi_budget_spousal_deeming_applies turns it into a boolean array, since the annual screens negate the flag and pass it to select. Test that in test_ssi_annual_income_inputs.py with a Core system that holds only the abolition flag. Drop Case 33 of is_ssi_ineligible_parent.yaml, which built a second tax-benefit system to check the same thing. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Resolve one conflict with #10809, which counts each month's SSI in-kind support in Maryland PAA income and in California's supplement for a couple with one SSI and one CAPI spouse: - In ca_state_supplement_person, apply main's monthly exclusions to the month's earned and unearned income and to that month's in-kind support, read from ssi_in_kind_support_and_maintenance_monthly. - Read the same monthly variable in md_paa_countable_income, since ssi_in_kind_support_and_maintenance holds the annual sum here. - Assert main's new January, November and December cases on the monthly variable, and supply it in main's property tests. Every expected value is main's. - Keep every source-conflict candidate from both sides. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
In 20 CFR 416.1160(d), SSA defines an ineligible child as a co-resident child, not eligible for SSI, of the claimant, of the claimant's spouse, or "of your parent or of your parent's spouse". 416.1160(c)(2) and 416.1163(b) apply that definition to spouse deemors, "you" names the claimant (416.1101) and a household means a place of residence (416.1132(a)). POMS SI 01310.140 A lists only the couple's children. ssi_spousal_deeming_child_allocations followed the POMS list. For a person with a co-resident spouse, count a child whose parent ids share an id with that person's: a sibling or half-sibling, wherever the parent lives. Count a child whose id names the co-resident spouse of that person's co-resident parent: a step-sibling. The spouse's siblings add nothing to the claimant's total. For example, in 2026 a claimant with no income lives with a spouse who has $1,000 of monthly unearned income and with the claimant's 15-year-old brother. SSA deducts $497 for the brother, deems $503 - $20 = $483 and pays $994 a month. The model paid $1,491 - $980 = $511 before. Add four cases to ssi_spousal_deeming_child_allocations.yaml: a brother whose mother lives elsewhere, a sister who lives with their mother, a stepbrother, and the husband's sister, who gets no allocation. Give the property test each spouse's siblings, five fixed sibling households and an oracle for the regulation's scope. Record the reading in source_conflicts/candidates.yaml, with the 1987 final rule (52 FR 8883) as the earliest text checked. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
In states that do not use 209(b) rules, Medicaid's parental allocations reach every child SSI's do. 42 USC 1396a(r)(2)(B) and 42 CFR 435.601(d)(3) bar a method that makes ineligible anyone whom SSI's method finds eligible, and a narrower child definition only removes allocations. So the model does not apply New York's under-18 limit or Wisconsin's minor-or-dependent-18 limit, and it can show eligibility those manuals would deny. Missouri and Virginia, which POMS SI 01715.020 lists as 209(b) states, keep their manual definitions under 42 USC 1396a(f). Add 42 CFR 435.602(b), 20 CFR 416.1160(d) with 416.1856 and CMS State Medicaid Manual 3240.4 to the candidate's sources. The code stays as built. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Link OAC 340:15-1-2 to OKDHS's proposed-rule circulation WF 22-15 on oklahoma.gov, where page 7 defines an ineligible child as "a child younger than 18 years of age who is not blind or disabled", and say in the parameter's reference title that the text comes from that circulation. Restore main's note that the model leaves out 20 CFR 416.1163(f)(5), which the monthly deeming status dropped when it took over the annual formula. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Resolve one conflict in source_conflicts/candidates.yaml, where main added candidates from #10874 after the last entry this branch adds. Keep every candidate from both sides. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Every sibling case named the shared or linking parent in parent_1_id. Add a case with a half-brother who shares the mother in the claimant's second slot and a stepbrother who names the mother's husband in his own second slot, so a comparison of matching slots alone fails it. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
DTrim99, here's where each item of your review stands at
One change reverses an item you verified. An independent AI review raised no blocking finding at 🤖 Generated with Claude Code |
The commits since this review answer each of its items. My reply above maps each item to its commit, file and line, and names the two follow-ups that remain.
|
US + core hub merge audit, us#10146 at
🤖 Generated with Claude Code |
Summary
Limit SSI ineligible-child allocations to the co-resident children 20 CFR 416.1160(d) names. In spousal deeming (416.1163(b)), those children belong to the claimant, the spouse, the claimant's parent or that parent's spouse. In parental deeming (416.1165(b)), they belong to the deeming parents.
The child test counts unmarried students under 22 (21 before June 16, 2008) and leaves out household heads. Allocations skip public income-maintenance recipients, apply the student earned-income exclusion month by month, and never fall below zero. SSI and Medicaid deeming budgets run month by month, so a facility stay, a change in deeming status or an exhausted student exclusion changes that month's income before the annual total.
Behavior
ssi_countable_incomereturns the annual sum of the monthly budgets, andssi_countable_income_monthlyreturns the month's budget. The annual interfaces keep supplied annual inputs, abolition (dated switches included) and neutralization.ssi_income_deemed_from_ineligible_spouse_monthlycounts the claimant's in-kind support in both budgets. This PR supplies that budget's other inputs by month: the month's deeming status and the spouse's income after that month's child allocations.ssi_in_kind_support_and_maintenance_monthly, sincessi_in_kind_support_and_maintenancereturns the annual sum here. California's supplement counts income as SSI does (20 CFR 416.2025). It treats a spouse who fails SSI's noncitizen test as an ineligible spouse (416.1160) but deems no income of a spouse who receives CAPI (416.1161).is_ssi_spousal_deeming_appliesor the year's deeming comparison. The test computes the spouse's deemed amount without in-kind support, as Apply SSI's general exclusion once under spousal deeming #10837 does, from the year's remaining spouse income. California WDP's screens also take a supplied flag first.Changes to main's test expectations
medicaid_optional_senior_or_disabled_uses_couple_standard.yamlmedicaid_optional_senior_or_disabled_countable_income.yamlMain's other changed cases keep their values: the in-kind support, PMV and countable-income cases assert them on the
_monthlytwins, and other cases gain inputs such as parent ids. Main's resource case "Each month's countable income decides which children share the deemed resources" supplies its month-keyed income asssi_countable_income_monthlyand keeps main's 4,000 and 2,000.#10809's Maryland and California cases keep main's values. Its January, November and December cases assert in-kind support on
ssi_in_kind_support_and_maintenance_monthly, and its generated households supply that variable.#10837's cases keep main's values. Its month cases assert countable income and in-kind support on the
_monthlytwins, and its generated households supply January's in-kind support asssi_in_kind_support_and_maintenance_monthly. Oklahoma Case 22, which this PR adds, follows #10837's single exclusion: a claimant with shelter support and a spouse with a $1,200 pension gets 1,491 - (258.50 + 1,200 - 20) = $52.50 of SSI in June. Oklahoma's test then counts $1,491 of couple income, and the supplement reaches its $40 cap.Invariants
test_ssi_spousal_deeming_child_allocations.pychecks the first two invariants for spousal deeming against an oracle over random households and five fixed sibling households, and checks the fixed households against hand-set totals too. The fixed households add 15 people to each of the first test's nine simulations, and we did not measure the change in its run time.test_ssi_monthly_ism_properties.pychecks that months match when nothing changes within the year, andtest_ssi_annual_income_inputs.pychecks that annual inputs reach every month. On a Mac, the property file's 64 tests took 25 seconds of pytest time and 51 seconds with setup, and the process peaked at 2.3 GiB; we did not measure main's version.Pull request run 44025821945 at
2ed34b1b63passed all 37 jobs on GitHub's merge with main4a96a899da.Source-conflict readings
source_conflicts/candidates.yamlrecords both readings.us:ssi-spousal-deeming-child-scope: SSI spousal deeming allocates for every co-resident ineligible child that 20 CFR 416.1160(d) names from the claimant's side. That covers the couple's children and the claimant's siblings and half-siblings, whether or not their parent lives there. Step-siblings also count when the claimant's parent and that parent's spouse share the household. POMS SI 01310.140 A lists only the couple's children; the model follows the regulation. A sibling needs parent ids that share an id with the claimant, or that name the spouse of the claimant's co-resident parent.us:medicaid-parental-child-allocation-ssi-floor: outside 209(b) states, Medicaid parental allocations reach every child SSI's do, because 42 USC 1396a(r)(2) and 42 CFR 435.601(d)(2)-(3) bar a method that makes ineligible for Medicaid anyone SSI's method would make eligible. The model does not apply New York's under-18 limit or Wisconsin's minor-or-dependent-18 limit, so it can show eligibility those states' manuals would deny. Missouri and Virginia, which POMS SI 01715.020 lists as 209(b) states, keep their own definitions.Methodology choices
is_ssi_spousal_deeming_appliesreports December's status. The Medicaid annual screens, the SSI ineligible-parent test and the parent supplement level callssi_budget_spousal_deeming_appliesinstead. That helper takes a supplied flag or compares the year's remaining spouse income with 12 times the rate difference, and the ineligible-parent test applies it to the deemed amount and to the benefit rate. California WDP's screens take a supplied flag first and otherwise compare the year's remaining spouse income.ssi_receives_public_income_maintenanceas an input that defaults to false, so we allocate for a child who receives SNAP or TANF unless the user sets it.Microsimulation impact
We estimate that this branch raises household benefits and net income by $46.9m in 2026 on the default dataset, through California's state supplement and SSI. The change rests on four sampled households (38,299 weighted), too few for a population estimate: three gain, and one with a weight below 0.1 loses. One California SPM unit accounts for $34.8m: its state supplement rises by $1,333 for the year, and the record stands for 26,133 SPM units. SSI rises by $12.1m for three sampled people: two gain up to $994 each for the year (12,165 weighted together), and one with a weight below 0.1 loses $225. Medicaid falls for one person with a weight of 0.55, and differences below half a cent on other records leave its net change at +$187. CAPI and Maryland's PAA total $0 on both sides, the Oklahoma and New Hampshire supplements don't change, and neither does federal or state income tax.
SSI countable income falls by $926.2m across 106 people (338,165 weighted). Income deemed from an ineligible spouse falls by $914.2m (90 people, 315,088 weighted), and income deemed from an ineligible parent by $12.1m (26 people, 46,028 weighted). We compute these amounts for aged, blind or disabled people, whether or not their income lets them qualify for SSI, so they move far more than the payments. We compared
mainat6c2f347cebwith this branch at2ed34b1b63.ssissi_countable_incomessi_unearned_income_deemed_from_ineligible_parentssi_income_deemed_from_ineligible_spouseca_capica_state_supplementok_sspnh_sspmd_paamedicaidmedicaid_costspm_unit_benefitsstate_income_taxincome_taxhousehold_benefitshousehold_net_incomeaxiom: TheAxiomFoundation/rulespec-us#1706 queued, extended with a comment (SSI spousal deeming's child allocations); TheAxiomFoundation/rulespec-us#2276 queued (Medicaid, New Hampshire, Oklahoma and CAPI allocations); TheAxiomFoundation/rulespec-us#1714 queued (parental deeming); TheAxiomFoundation/rulespec-us#2240 queued (the single $20 exclusion). The code follows 20 CFR 416.1160(d), 416.1163(b), 416.1165(b) and 416.1856; POMS SI 01310.115 A.3; and 42 USC 1396a(r)(2) with Missouri DSS Manual 0805.020.15 and Virginia M0530.002. It also follows 42 USC 1396b(v) for the Medicaid recipient set, NH He-W 652.03(h), OAC 340:15-1-2 and CDSS CAPI MPP 49-035. The signed encoder can't run yet. The pinned corpus release carries no 20 CFR part 416 scope and none of the Missouri, Virginia or Oklahoma sources, and the corpus holds no copy of New Hampshire's He-W 600.
🤖 Generated with Claude Code