Skip to content

Limit SSI ineligible-child allocations to co-resident children and compute SSI and Medicaid deeming by month - #10146

Merged
MaxGhenis merged 62 commits into
mainfrom
ssi-ineligible-child-allocation-scope
Nov 17, 2026
Merged

MaxGhenis merged 62 commits into
mainfrom
ssi-ineligible-child-allocation-scope

Conversation

@MaxGhenis

@MaxGhenis MaxGhenis commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

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

  • Parent links name each child's parents. Without links, the code keeps the tax-unit fallback and its household safeguards.
  • Spousal deeming allocates for the claimant's co-resident siblings, half-siblings and step-siblings, and gives nothing for the spouse's siblings. 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 a $497 allocation for the brother ($1,491 - $994), which leaves $503. That exceeds $497, so SSA deems $503 - $20 = $483 and pays the lesser of $1,491 - $483 = $1,008 and $994: $994 a month. Without the allocation, SSA would pay $1,491 - ($1,000 - $20) = $511.
  • ssi_countable_income returns the annual sum of the monthly budgets, and ssi_countable_income_monthly returns the month's budget. The annual interfaces keep supplied annual inputs, abolition (dated switches included) and neutralization.
  • The monthly spousal budget applies one $20 general exclusion, as Apply SSI's general exclusion once under spousal deeming #10837 does: ssi_income_deemed_from_ineligible_spouse_monthly counts 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.
  • The monthly helpers keep main's cross-unit rules from Deem income from a disabled parent who is not eligible for SSI #10630. A deeming spouse who files in another tax unit joins the parental pool, and the pool divides among both units' eligible children. Missouri Medicaid drops a stepparent from deeming and allows the SSI rate for the number of deeming parents.
  • Restore the part-year facility-stay test cases now that SSI follows each month's facility status #10856's facility-stay cases stay, with the July case recomputed by month (below).
  • Maryland PAA and California's supplement for a couple with one SSI and one CAPI spouse count each month's in-kind support, as Read monthly SSI support in Maryland and California benefits #10809 does. Both read it from ssi_in_kind_support_and_maintenance_monthly, since ssi_in_kind_support_and_maintenance returns 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).
  • CAPI computes parental deeming over its own recipient set, including children who qualify for CAPI but fail SSI's immigration test. One CAPI child takes no allocation from another CAPI child's budget.
  • Oklahoma leaves blind or disabled children out of parental and spousal allocations, whatever their citizenship (OAC 340:15-1-2, as OKDHS proposed it in circulation WF 22-15).
  • New Hampshire allocates for siblings under 18, or under 20 while in full-time secondary school (He-W 652.03(h)(1)), from April 4, 2012.
  • Missouri (under 18) and Virginia (under 21, not blind or disabled) keep their Medicaid child definitions through state parameters. Every other state uses SSI's child scope.
  • The SSI ineligible-parent test and the parent supplement level test the year: they take a supplied is_ssi_spousal_deeming_applies or 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

File Case Main This PR Arithmetic
medicaid_optional_senior_or_disabled_uses_couple_standard.yaml Case 12, a facility stay that ends within the year 14,880 each 11,320 and 18,320 January-June, separate: (8,000 / 12 - 20) x 6 = 3,880 and (22,000 / 12 - 20) x 6 = 10,880. July-December, combined: (30,000 / 12 - 20) / 2 x 6 = 7,440 each.
medicaid_optional_senior_or_disabled_countable_income.yaml A spouse's facility stay from July 17,370 and 5,760 14,527.50 and 8,722.50 January-June, combined: (1,500 - 20) + (1,000 - 65) / 2 = 1,947.50, or 973.75 each x 6 = 5,842.50. July-December: person1 1,447.50 x 6 = 8,685; person2 (500 - 20) x 6 = 2,880.
Same file California 20-dollar deduction, then the 230-dollar disregard, 2020 9,000 9,085.40 (1,000 - 20 - 230) x 11 = 8,250; December under ACWDL 20-24: 1,000 - 20 - 144.60 = 835.40.
Same file California 230-dollar disregard after the earned income deductions, 2020 2,730 2,960 ((1,000 - 65 - 20) / 2 - 230) x 11 = 2,502.50; December: 457.50.
Same file California 310-dollar couple disregard, 2020 9,720 each 9,875 each (1,950 - 20 - 310) x 11 = 17,820; December: 1,930; (17,820 + 1,930) / 2 = 9,875.

Main's other changed cases keep their values: the in-kind support, PMV and countable-income cases assert them on the _monthly twins, 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 as ssi_countable_income_monthly and 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 _monthly twins, and its generated households supply January's in-kind support as ssi_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

  • With parent ids, a claimant's budget takes an allocation only for a co-resident child of the claimant, their spouse, their parent or that parent's spouse. Without ids, the guarded tax-unit fallback assigns allocations by tax-unit membership.
  • With parent ids, a claimant's sibling adds to their total alone in spousal deeming, while their spouse's sibling adds nothing. Apart from their own siblings, both spouses see the same total.
  • No child takes an allocation from a pool that also deems income to that child: SSI recipients, and CAPI recipients in CAPI's budget, get none.
  • Each month's allocation for a child lies between zero and the couple rate minus the individual rate.
  • With no supplied annual value, each annual deemed or countable amount equals the sum of its twelve monthly budgets. Constant monthly inputs produce matching monthly budgets when no annual exclusion cap changes the calculation.
  • A supplied annual monetary input reaches every month as one twelfth of it, and a supplied eligibility flag applies unchanged.
  • The general exclusion lowers a deeming couple's combined countable income by at most $20 a month, with or without in-kind support.
  • Pooled parental income divides equally among the eligible children of both tax units when a deeming spouse files in another unit.

test_ssi_spousal_deeming_child_allocations.py checks 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.py checks that months match when nothing changes within the year, and test_ssi_annual_income_inputs.py checks 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 2ed34b1b63 passed all 37 jobs on GitHub's merge with main 4a96a899da.

Source-conflict readings

source_conflicts/candidates.yaml records 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

  • Full-time attendance stands in for regular school attendance.
  • Without parent links, the guarded tax-unit fallback assigns children to parents. It cannot find a claimant's sibling who files in another tax unit.
  • A step-sibling counts when the claimant's parent and that parent's spouse both live in the household.
  • Recipient classification omits income and resource eligibility, which would otherwise create a deemed-income dependency cycle.
  • Each month reads the June 16, 2008 student age change from the parameter value at the month's start.
  • Parental and spousal deemed income come from the current month. Main's separate ISM payment timing stays.
  • California WDP keeps its annual deeming comparison.
  • Medicaid compares the sum of its monthly income budgets with its annual limit.
  • The computed annual is_ssi_spousal_deeming_applies reports December's status. The Medicaid annual screens, the SSI ineligible-parent test and the parent supplement level call ssi_budget_spousal_deeming_applies instead. 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.
  • In a year when spousal deeming applies in some months only, the ineligible-parent test follows the year's comparison. When the year's remaining spouse income stays within 12 times the rate difference, the test deems nothing and uses the individual rate.
  • The ineligible-parent test leaves in-kind support out of the parent's own income and out of the spouse's deemed amount, as main does.
  • Monthly float32 sums can exceed an exact annual limit by less than a cent, and Mississippi HMW Case 4 carries a one-cent margin for it.
  • We read ssi_receives_public_income_maintenance as an input that defaults to false, so we allocate for a child who receives SNAP or TANF unless the user sets it.
  • Virginia ends the allocation the month after the child turns 18, or 21 for a student (M0530.002), and the model tests age by year.

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 main at 6c2f347ceb with this branch at 2ed34b1b63.

Output Main total Change Records changed (weighted)
ssi $56.68bn +$12.1m 3 (12,165)
ssi_countable_income $4,304.1bn -$926.2m 106 (338,165)
ssi_unearned_income_deemed_from_ineligible_parent $6.25bn -$12.1m 26 (46,028)
ssi_income_deemed_from_ineligible_spouse $402.5bn -$914.2m 90 (315,088)
ca_capi $0 $0 0 (0)
ca_state_supplement $2.52bn +$34.8m 1 (26,133)
ok_ssp $35.9m $0 0 (0)
nh_ssp $19.5m $0 0 (0)
md_paa $0 $0 0 (0)
medicaid $880.0bn +$187 1 (1)
medicaid_cost $880.0bn +$187 1 (1)
spm_unit_benefits $2,056.6bn +$46.9m 4 (38,299)
state_income_tax $576.6bn $0 0 (0)
income_tax $2,594.9bn $0 0 (0)
household_benefits $2,060.1bn +$46.9m 4 (38,299)
household_net_income $17,246.4bn +$46.9m 4 (38,299)

axiom: 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

MaxGhenis and others added 2 commits October 12, 2026 06:30
…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>
MaxGhenis and others added 2 commits October 12, 2026 08:10
…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>
MaxGhenis and others added 23 commits October 19, 2026 01:42
#10288 sets North Carolina's 2027 Special Assistance rates to the approved COLA, and #10279 already updated main's Case 37. This PR is about SSI child allocations, so the North Carolina change belongs there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Brings in main through 1661d71, including #10279's update to North Carolina SA Case 37.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MaxGhenis and others added 3 commits November 14, 2026 14:46
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>
@MaxGhenis MaxGhenis changed the title Limit SSI spousal-deeming child allocations to the couple's co-resident children Limit SSI ineligible-child allocations to co-resident children and compute SSI and Medicaid deeming by month Nov 14, 2026
MaxGhenis and others added 9 commits November 14, 2026 16:59
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>
@MaxGhenis

Copy link
Copy Markdown
Contributor Author

DTrim99, here's where each item of your review stands at 2ed34b1b63:

  • Critical 1: in c2af0387c2, ssi_parental_deemed_income takes a recipients argument (_ssi_parental_deemed_income.py:16-38), and SSI keeps its own set when a caller passes none. ca_capi_countable_income.py:37-50 passes CAPI's set: children who qualify for CAPI or for SSI. Your household runs as ca_capi_person.yaml:897 and gives $125.27. The case at :936 puts a CAPI child beside an SSI child ($618.27, with SSI at $525), and 1cb6423a68 adds two CAPI children at :985 ($618.27 each).
  • Critical 2: in 268a0c5831, ok_ssp_ineligible_child.py:21-30 adds & ~is_ssi_aged_blind_disabled, and its comment now says OAC 340:15-1-2 excludes blind and disabled children whatever their immigration status. Your household runs as ok_ssp.yaml:291: Oklahoma deems $986 and pays $0. The case at :346 checks the spousal allocation, which is $0 for a disabled undocumented child. 755d0a2682 cites the definition from OKDHS's WF 22-15 circulation on oklahoma.gov.
  • Should address 1: in db658d2ec5, every state except Missouri and Virginia keeps SSI's allocation scope (formula :91-100). ineligible_child_age_limit.yaml sets 18 for Missouri, 21 for Virginia and .inf elsewhere, and ineligible_child_requires_nonblind_nondisabled.yaml is true for Virginia alone. candidates.yaml:16400 records us:medicaid-parental-child-allocation-ssi-floor with follows: statute, and 4c0e180554 set it to state: ruled. The New York 18-year-old student (medicaid_optional_senior_or_disabled_unearned_income_deemed_from_ineligible_parent.yaml:1902) now gets $5,868, as SSI does. Both Medicaid budgets now use SSI's scope.
  • Should address 2: db658d2ec5 moved the state rules into those two state-keyed parameters, and dc57e66181 casts the nonblind flag to boolean. The np.isin list, the Wisconsin literals and the _children loop are gone. The state == "MO" check at :57 is main's code from Deem income from a disabled parent who is not eligible for SSI #10630, for Missouri's stepparent rule.
  • Should address 3: 48b7278816 deleted student_age_limit.yaml and the is_ssi_ineligible_child.yaml comment that named it. c2af0387c2 added "Abolishing annual SSI countable income reaches monthly program budgets" (ca_capi_countable_income.yaml:65). The merge 4eab71bb66 added test_disabled_annual_interface_reaches_monthly_budget (test_ssi_annual_income_inputs.py:178-203), which abolishes or neutralizes ssi_earned_income_deemed_from_ineligible_spouse and expects 0 from its _monthly twin. e2ba45fa0c adds the abolished deeming flag at :206.
  • Should address 4: in db658d2ec5, ineligible_child_age_limit.yaml cites 42 USC 1396a(r)(2), 42 CFR 435.601(d)(2)-(3), Missouri DSS 0805.020.15 and Virginia M0530.002 at #page=57, under a one-sentence description. The California, New York and Montana references went with their values.
  • Should address 5: a comment on Encode the SSI spousal-deeming benefit limit (20 CFR 416.1163(d)-(f)) and SSI couple definitions (416.1801(c), 416.1806, 416.1160(d)) (PE-US #10138 parity) TheAxiomFoundation/rulespec-us#1706 re-pins its extension to 2ed34b1b63. Encode who takes deeming allocations in ABD Medicaid, New Hampshire ANB, Oklahoma SSP and California CAPI (42 USC 1396a(r)(2); Virginia M0530.002; He-W 652.03(h); OAC 340:15-1-2; MPP 49-005, 49-035) (PE-US #10146) TheAxiomFoundation/rulespec-us#2276 queues the Medicaid, New Hampshire, Oklahoma and CAPI producers with their text and companion cases. Both reflect C1, C2 and S1.
  • SNAP: unchanged. The description's methodology choices say a child who receives SNAP or TANF still takes an allocation unless the user sets ssi_receives_public_income_maintenance. It stays a follow-up.
  • 73 FR 28033: 48b7278816 cites it at deeming_student_age_limit.yaml:13-14.
  • New Hampshire dates: 48b7278816 starts both parameters on 2012-04-04, and nh_ssp_countable_income.yaml:174 checks May 2012.
  • CI cost: the description gives 25 seconds, 51 seconds with setup and 2.3 GiB for test_ssi_monthly_ism_properties.py, measured at 342e654759. I haven't measured test_ssi_spousal_deeming_child_allocations.py, the file you named, and it stays a follow-up.
  • PR body: the description now covers this head only and names no local path.
  • Branch: the merges of main resolved all three conflicts. At the head, ca_state_supplement_person.py:90 and :96 read ssi_in_kind_support_and_maintenance_monthly and ssi_countable_income_monthly.

One change reverses an item you verified. e745d87569 allocates for the claimant's co-resident siblings, half-siblings and step-siblings in spousal deeming, as 20 CFR 416.1160(d) reads, over POMS SI 01310.140 A. candidates.yaml:15887 records it as us:ssi-spousal-deeming-child-scope, and cases 14-18 of ssi_spousal_deeming_child_allocations.yaml pin it.

An independent AI review raised no blocking finding at 2ed34b1b63.

🤖 Generated with Claude Code

@MaxGhenis
MaxGhenis dismissed DTrim99’s stale review November 17, 2026 07:00

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.

@MaxGhenis
MaxGhenis merged commit 51cf605 into main Nov 17, 2026
77 of 81 checks passed
@MaxGhenis

Copy link
Copy Markdown
Contributor Author

US + core hub merge audit, us#10146 at 2ed34b1b63a7dfb908f9e5f31505cfed74d14c8f (squash): Limit SSI ineligible-child allocations to co-resident children and compute SSI and Medicaid deeming by month.

  • Reviews:
    • DTrim99 requested changes at 0b6e566ff4 on November 5. They found two regressions against main: California CAPI children lost parental deeming, and Oklahoma allocated for a blind or disabled noncitizen sibling.
    • They also found state Medicaid age ceilings that 42 USC 1396a(r)(2) bars outside 209(b) states, state rules hard-coded in the formula, two untested additions, references off the house rules and a stale axiom extension. Five suggestions followed.
    • Commits from c2af0387c2 to c1ac59c97a answered those items. CAPI runs SSI's parental steps over its own recipients, Oklahoma drops blind and disabled children, and only Missouri and Virginia keep narrower Medicaid child definitions, through state-keyed parameters.
    • Four independent review rounds followed, with two fix rounds between them. A later commit added one test, and the fourth round raised no blocking finding at the head.
    • The first round, at c1ac59c97a, read 20 CFR 416.1101, 416.1142(a), 416.1160(d), 416.1161(c), 416.1163(b) and 416.1856, 42 USC 1396a(r)(2), 42 CFR 435.601(d), three POMS sections and the Missouri, Virginia and New Hampshire rules. It ran five households on the head and on the merge base, and each matched its hand figures.
    • It found DTrim99's two critical items and four of five should items resolved in code. Main had since merged Deem income from a disabled parent who is not eligible for SSI #10630 and Restore the part-year facility-stay test cases now that SSI follows each month's facility status #10856, and the branch conflicted in five files. Taking the branch's side would have dropped Deem income from a disabled parent who is not eligible for SSI #10630's cross-unit parental pool and Missouri's stepparent rule.
    • It also found the rulespec-us#1706 extension stale and both source-conflict candidates awaiting a ruling. Its minor points covered California WDP ignoring a supplied deeming flag, the changelog, the title, the SNAP and TANF gap, Virginia's month cutoff, a missing two-CAPI-children case and the Microsimulation job's runtime.
    • The first fix round, from d95aa21341 to e2ba45fa0c, merged main four times. e755818fa5 ported Deem income from a disabled parent who is not eligible for SSI #10630's cross-unit pool and Missouri rules into the monthly helpers. The merge of Apply SSI's general exclusion once under spousal deeming #10837 resolved ten conflicts, so each month's spousal budget applies Apply SSI's general exclusion once under spousal deeming #10837's single $20 exclusion with this PR's monthly inputs.
    • That round made WDP honor a supplied flag and added the two-CAPI-children case (1cb6423a68). It rewrote the changelog and both candidates (342e654759) and replaced a YAML case with a small Core test of the abolished deeming flag (e2ba45fa0c). Twelve mutants each failed a case.
    • The second round, at e2ba45fa0c, read every commit and each merge with git show --remerge-diff. A script found every main case at the head, and only the five main expectations in the description's table move. CI passed 38 of 38 jobs.
    • It found no blocking defect in the code. The axiom line still read needed, and both candidates still awaited a ruling. Its minor points covered a law.cornell.edu link in the description, a misnamed WDP helper and a dropped note on 416.1163(f)(5).
    • Two reading reports then weighed the source conflicts against the regulation, the statute, POMS and the state manuals. The description's "Source-conflict readings" section states both readings and their sources, and the candidates record both with follows: statute and state: ruled.
    • The second fix round, from e7102ce1e7 to 1f55b213a0, merged main twice. The first merge kept this branch's month reads in ca_state_supplement_person.py beside Read monthly SSI support in Maryland and California benefits #10809's monthly in-kind support. It moved one Maryland PAA read and Read monthly SSI support in Maryland and California benefits #10809's in-kind support assertions to the _monthly twins.
    • e745d87569 extended spousal allocations to the claimant's co-resident siblings, half-siblings and step-siblings under 416.1160(d), with four YAML cases and five fixed households in the property test. 4c0e180554 recorded the Medicaid reading, and 755d0a2682 cited OAC 340:15-1-2 from oklahoma.gov.
    • The third round, at 1f55b213a0, read both merges, recomputed California's month cases and audited 199 YAML files at four commits. It ran eleven probes of the sibling scope against 416.1160(d), and each came out right.
    • It found no test that reached the cross-slot sibling match or the second-slot step-sibling path, so a mutant could delete either. It asked for one case and gave its hand values. Its minor points covered the invariants without parent ids, the step-sibling wording and law.cornell.edu links in code.
    • 2ed34b1b63 appends that case, Case 18 of ssi_spousal_deeming_child_allocations.yaml, and changes nothing else.
    • The fourth round, at 2ed34b1b63, raised no blocking finding. It recomputed Case 18's six outputs from the formulas at the head. Without the second-slot step-sibling match, four of the case's assertions would fail. CI passed 37 of 37 jobs at that head.
    • The reviews listed corrections to the description's invariants, its SSI scope sentence, California's federal links and the axiom line, and I made them before merge.
    • I dismissed DTrim99's change request with a reply that maps each item to its commit, file and line.
  • Methodology choices for maintainers:
    • Spousal deeming follows 416.1160(d): with parent ids, a claimant's siblings and half-siblings take allocations wherever their parent lives. Step-siblings take them when the claimant's parent and that parent's spouse share the household. POMS SI 01310.140 A lists only the couple's children.
    • Without parent ids, the tax-unit fallback finds no sibling who files in another tax unit. The sibling change's population effect therefore depends on the parent ids in the microdata.
    • Outside 209(b) states, Medicaid parental allocations reach every child SSI's do (1396a(r)(2); 435.601(d)(2)-(3)). The model skips New York's under-18 and Wisconsin's minor-or-dependent-18 manual limits, so it can show eligibility those manuals would deny.
    • Missouri and Virginia keep their own child definitions. Virginia ends an allocation the month after the 18th or 21st birthday, and the model tests age by year. For New York, the model allows SSI's parent allocation, where the reference guide's page 236 names the Medicaid standard.
    • A blind or disabled child who passes Medicaid's immigration test shares Medicaid's deemed amount and takes no allocation in Medicaid's budget, even when SSI's noncitizen test makes that child an ineligible child for SSI.
    • The computed annual is_ssi_spousal_deeming_applies reports December's status. The Medicaid annual screens, the ineligible-parent test and the parent supplement level take a supplied flag or compare the year's remaining spouse income instead. California WDP's screens do the same.
    • Monthly budgets move five of main's expectations, listed in the description's table: two facility stays and three California 2020 disregard cases. Main's other cases keep their values.
    • ssi_receives_public_income_maintenance stays an input that defaults to false, so a child on SNAP or TANF still takes an allocation, as on main. Full-time attendance stands in for regular school attendance.
    • Oklahoma follows OAC 340:15-1-2 as OKDHS proposed it in 2022, from January 1, 2026. New Hampshire's limits start on April 4, 2012. Monthly float32 sums can pass an exact annual limit by under a cent, and Mississippi HMW Case 4 carries a one-cent margin.
  • Gates checked live at merge:
  • 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 ($34.8m; one SPM unit, 26,133 weighted) and SSI ($12.1m; three people, 12,165 weighted). The change rests on four sampled households, too few for a population estimate. SSI countable income, which we compute for every aged, blind or disabled person, falls by $926.2m across 106 people (338,165 weighted). Main 6c2f347ceb against 2ed34b1b63.
  • Next:
  • Axiom: Encode the SSI spousal-deeming benefit limit (20 CFR 416.1163(d)-(f)) and SSI couple definitions (416.1801(c), 416.1806, 416.1160(d)) (PE-US #10138 parity) TheAxiomFoundation/rulespec-us#1706 queued, with a comment that re-pins its Limit SSI ineligible-child allocations to co-resident children and compute SSI and Medicaid deeming by month #10146 extension to this head and adds the sibling rows. Encode who takes deeming allocations in ABD Medicaid, New Hampshire ANB, Oklahoma SSP and California CAPI (42 USC 1396a(r)(2); Virginia M0530.002; He-W 652.03(h); OAC 340:15-1-2; MPP 49-005, 49-035) (PE-US #10146) TheAxiomFoundation/rulespec-us#2276 queued, a new pe-parity issue for the allocation children in ABD Medicaid (42 USC 1396a(r)(2); Virginia M0530.002), New Hampshire ANB (He-W 652.03(h)), Oklahoma SSP (OAC 340:15-1-2) and CAPI (MPP 49-005 and 49-035). Encode SSI parent-to-child income deeming (20 CFR 416.1165) with the 416.1160(d) ineligible parent and child definitions (PE-US #10159 parity) TheAxiomFoundation/rulespec-us#1714 and Virginia Military Benefit Subtraction #2240 stay queued. The signed encoder can't run yet: the pinned 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

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.

3 participants