Repository navigation
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…gets Net excess losses between co-resident spouses before SSI, MSP and Medicaid exclusions. Keep Connecticut and Minnesota own/deemed budgets consistent, prevent negative child/student exclusions, and isolate New Hampshire self-employment losses from wages. Add vectorized property and differential coverage. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Use Kentucky's own business-source floors and preserve Minnesota gross-income premium restoration without resurrecting losses. Add SD and WY source-presence regressions and complete direct reader coverage across 23 states, including loss-to-profit monotonicity. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ings POMS SI 00820.210 B.2.c binds SSI, not Connecticut's or Maryland's own programs. UPM 5020.05 A, 5020.70 C.3 and 5030.10 A count each person's own earnings and reduce self-employment earnings only by self-employment expenses; COMAR 07.03.07.08 sets deductions for an individual, and Maryland DHS states that "The assistance unit is always one person." Connecticut's three budget readers now read ct_ssp_own_earned_income, the person's signed SSI earnings floored at zero; spouse-deemed earnings still net an own loss through the spouse's after-loss SSI earnings. Maryland PAA reads ssi_marital_earned_income only under the couple computation and the applicant's own ssi_earned_income otherwise. SSI and its spouse-deemed amounts keep the POMS treatment. Tests: re-derive the Connecticut spouse-loss cases and pin the hub's probe couple; add Maryland own-earnings and reverse-direction cases, a California supplement case with farm profit, farm and partnership SGA cases, a couple whose farm profit ends the couple computation, the issue #10558 parent-deeming case, and a generated property that a spouse's loss never changes the applicant's CT or MD figures. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Extend the CT/MD property so that, where SSI deems no spouse income, the applicant's Connecticut gross earned income, earned disregard and countable earned income stay the same when only the spouse's business loss changes, and the gross earned income equals the applicant's own earnings. SSI itself, which Connecticut counts as unearned income, may still change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every Connecticut spouse in the generated property has a business loss. Check that ct_ssp_own_earned_income stays at or above zero for all of them, so an own residual loss cannot be deducted again from earnings that SSI already nets through the spouse's after-loss amount. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
POMS DI 10505.015 D.3 says a self-employment loss does not reduce total earnings when the individual also has wages. Counting farm and partnership earnings widened the defect main already had for Schedule C losses, so SGA earnings are now wages plus the business net floored at zero. Losses still net between businesses (20 CFR 404.1081(c), POMS DI 10510.012 B). ssi_earned_income keeps the signed amount its other readers need. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Picking this up for the US hub. I'll post a hand-off comment here when it's ready. Generated by Claude Code |
Properties check that SGA earnings never fall below wages, rise with wages, net losses between businesses, and match the signed sum when no business source is negative. The backlog records us:ssi-sga-self-employment-loss: the regulations do not settle it, so the agency's POMS DI 10505.015 D.3 reading governs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Ready for hub review Head: What the item asked and how it's resolved
The old-head and new-head columns were run; the main column follows from main's formula, which matches the old head apart from the source list (read, not run).
Tests (one file per process)
CIThe latest Pull request run at this head, 41402652626, concluded success. It was pushed 06:52 UTC and checked every 5 minutes or more. Judgment calls
Proposed follow-up
Generated by Claude Code |
|
Ready for hub review Round 2, range The SGA change does what the hub's ruling says. I proved its algebra, ran all seven cases at current main and at this head, and four mutants are each killed. All of round 1's findings are closed except the Kentucky #10141 gap, which is a merge-time task. Two things block it:
FindingsP1: Idaho AABD and Indiana SAPN now let a farm or partnership loss reduce wages
P2: The PR conflicts with main in five files
P2: After #10141, Kentucky still counts a third adult's earnings as the couple's
P3 notes
MutantsEach mutant ran in its own scratch tree, one process per file, with networking disabled (
The unmutated control passes 3 of 3 SGA properties. Checked and sound
What I couldn't check
Generated by Claude Code |
|
Picking this up for the US hub. I'll post a hand-off comment here when it's ready. Generated by Claude Code |
… SAPN SSI now nets farm and partnership losses against wages, and Idaho AABD and Indiana SAPN read SSI countable income, so those losses reached both programs. IDAPA 16.03.05.403.06 bars only a farm loss from reducing other income; IHCPPM 3410.15.00 bars any net self-employment loss. A shared helper restores the barred net loss and reapplies the SSI exclusions. Also pin the spouse farm-loss SSI payment, note the SGA loss add-back's assumption, and complete the SGA source-conflict register entry. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Conflicts: msp_countable_income.yaml, ssi.yaml and ca_state_supplement.yaml keep both sides' appended cases (the PR's CA farm case moves to Case 17 after main's Cases 10-16; ssi.yaml's header names both full-calculation groups). ky_ssp_countable_income.py keeps the PR's body plus main's NOTE. md_paa_countable_income.py takes main's immigration-gated spousal_deemed block without its duplicate both_eligible line. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Main now zeroes ssi_countable_income only for people who are not aged, blind or disabled, so the helper uses the same gate. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Ready for hub review Head: Commits this round:
Finding 1 (P1): Idaho AABD and Indiana SAPN
Witnesses (2026-01; both runs use the same inputs as the brief)
The reviewer's figures reproduced from the brief's inputs. For Indiana the facility inputs are Hand computations
Tests added: Finding 2 (P2): merge of mainI merged
Finding 3 (P2): KentuckyNot touched, as instructed. Finding 4 (P3 notes)
PR body:
Changelog
Tests (one file per process, at this head after the merge)
Mutants (each in its own process, code restored after each)
CIPull request run 41530441235 at Judgment calls
Follow-ups proposed (not opened)
Generated by Claude Code |
|
Hub review in progress Round 3 at
Generated by Claude Code |
|
Ready for hub review Round 3 covers The Idaho and Indiana fix does what the hub ruled for one person. All eight witnesses reproduce. The four listed mutants are each killed by the case the hand-off names. The merge resolutions are correct, the PR still merges cleanly with current main, and CI is green. Two things block it:
One r2 path stays open by design: a deemed ineligible spouse's farm loss still reaches Idaho AABD (P2 below). The docstring and body disclose it, and the hub's brief accepted the per-person approximation. I list it with a witness so the hub can decide whether it blocks. FindingsP1: The loss-offset helper ignores the working student exclusion, so a student's restored loss is counted in full
P2: The #10141 merge now conflicts in four files, and the body lists two
P2: A deemed ineligible spouse's farm loss still reaches Idaho AABD (r2 P1, deeming path)
P3 notes
MutantsEach mutant ran in its own process in a scratch worktree, and the tree was restored afterward (
Checked and sound
What I couldn't check
Generated by Claude Code |
|
Picking this up for the US hub. I'll post a hand-off comment here when it's ready. Generated by Claude Code |
Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Set is_in_k12_school to false in Case 13 so SSI counts the child's $250 a month in net earnings against the allocation. Register ssi_earned_income_after_spousal_loss in the small test system so the monthly spouse deeming helper can read it. Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Let Maryland and California compute countable income in the December shelter support fixture, and add a case for each household. Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Resolve the end-of-file conflict in source_conflicts/candidates.yaml by keeping both sides' entries. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
DTrim99
left a comment
There was a problem hiding this comment.
Program review
Base repository: PolicyEngine/policyengine-us
PR number: 10532
Reviewed head SHA: 449ed8c
Merge base SHA: 094934a
Mode: incremental from 4cab6b3
Scope: changed behavior and affected dependencies
Source manifest: /private/tmp/policyengine-command-runs/ea33c0bb2b64/pr-10532-review-sources.json
Review status: PARTIAL
Source Documents
- poms-si-00820-210.html — cached original.
- poms-si-00820-510.html — cached original.
- usc26-1401-2012.html — cached original.
- idapa-160305.pdf — cached original.
- usc42-1382a.html — cached original.
- ky-omvoliva.pdf — cached original.
- comar-07.03.07.07.html — cached original.
- comar-07.03.07.08.html — cached original.
- poms-di-10510-012.html — cached original.
- poms-di-10505-015.html — cached original.
- md-paa-900.docx — cached original.
- usc42-1396r-5.html — cached original.
Critical
None.
Should Address
A1 — PR-caused red CI check — built-in sum() over entity calls in _ssi_earnings_precision.py (OPEN)
- Location:
policyengine_us/variables/gov/ssa/ssi/eligibility/income/_ssi_earnings_precision.py:16-19(exact_earned_sources), added in 9978882. - Trigger:
policyengine_us/tests/code_health/test_no_builtin_sum_over_entity_calls.py::test_builtin_sum_does_not_wrap_entity_variable_calls(on main since #8426, May 2026). CI run 46590390750, job 142447977841 ("Full Suite - Rest (Python shard 2)"):assert not ['variables/gov/ssa/ssi/eligibility/income/_ssi_earnings_precision.py:16'], 1 failed / 2,951 passed. The gate check fails with it. - Expected vs observed: the guard rejects
sum((exact_dollar_amounts(person(name, period)) for name in sources), start=...). Reproduced locally at the snapshot (see Validation). This is not round 1's predicted NH Hypothesis flake. - Cause: the PR. The file exists only on this branch, and main's latest code-health run passes.
- Fix: build the arrays first, e.g.
amounts = [exact_dollar_amounts(person(name, period)) for name in sources], then add them in a loop or withsum(amounts, start=...). No behavior change. - Severity: should-address (PR-caused red required check).
A2 — Kentucky MS 2450 citations are marked "unverified", but the official manual verifies them (OPEN)
- Location:
policyengine_us/variables/gov/states/ky/dcbs/ssp/ky_ssp_earned_income.py, lines 13, 21 and 33 (from commit cfe6636). - Trigger: none; this is a citation and documentation problem.
- Expected: a page comment such as
# PDF pages 187-188and no "unverified" wording. - Observed: the comment and documentation say "text and page numbers unverified against the current PDF" and "(unverified)".
- Evidence: the official
OMVOLIVA.pdffrom chfs.ky.gov (fetched 2026-12-02, sha256 in the manifest) has MS 2450 (OMTL-383, R. 4/1/11) starting on physical page 187.- Page 187 has B.4: "To determine profit, deduct work expenses directly related to producing the goods or services".
- Page 188 has C.7, the list of allowable deductions, and C.8(b): "DO NOT ALLOW ... Amounts claimed for depreciation, prior losses or loss from one business to another".
- So
#page=187is correct and the rule as encoded is verified. C.8(a) also bars deducting "FICA", which supports Kentucky's raw-profit base now that SSI uses 92.35%.
- Impact: the citation wrongly signals that the rule rests on unverified text and invites rework. Results are unaffected.
- Proposed severity: SHOULD ADDRESS (misleading citation).
Suggestions
S1 — changelog omits two national SSI changes that alter results for households outside the farm/partnership scope (OPEN)
- Location:
changelog.d/ssi-earned-farm-partnership.fixed.md;ssi_earned_income.py(ssi_nese_deduction);ssi_blind_or_disabled_working_student_exclusion_monthly.py. - Trigger 1, working students with no business income: TX, age 19, disabled, full-time student, wages $19,200, Social Security $1,200 (2026). Main: SSI $551.92 every month, $6,623 a year (cap spread evenly). Head: $914 Jan–Jun, $211.50 Jul, $146.50 Aug–Dec, $6,428 a year (exclusion used from January until the $9,730 cap runs out). Head's sequencing matches POMS SI 00820.510 and the consecutive-month logic main already used for child allocations, and the YAML case "The working student uses the annual cap in consecutive months" covers it.
- Trigger 2, the NESE deduction: every SSI or state-supplement recipient with positive Schedule C, farm or partnership profit now has countable earnings reduced by 7.65% (6.65% in 2011-2012). This flows into the roughly 20 state readers of
ssi_earned_income(CO OAP, CA SSP/CAPI, IA, OH RSS, NC SA, VA AG, OK, SD, Medicaid medically needy). - Observed: the changelog says only "carried student exclusions across facility budget changes" and does not mention the 7.65% deduction.
- Impact: disclosure only. The code is plausibly correct and tested. Households with no business income and no student exclusion match main exactly: single aged person, ineligible-spouse deeming, eligible couple, parent-to-child deeming, and SGA at $20,280 / $20,281, monthly and annual.
- Severity: suggestion. Add both changes to the changelog and PR body; the policy reviewer confirms the POMS reading.
S2 — The 2011-2012 NESE rate of 6.65% is a second statute-versus-POMS choice that is recorded only in a note (OPEN)
- Location:
policyengine_us/parameters/gov/ssa/ssi/income/historical_nese_deduction_rate.yaml(2011-01-01: 0.0665);source_conflicts/candidates.yamlus:ssi-nese-tax-paid, note. - Trigger: any SSI self-employment case in 2011 or 2012. NESE = 93.35% of profit instead of 92.35%.
- The statute. Pub. L. 111-312 §601(a) sets the 1401(a) rate at 10.40% "Notwithstanding any other provision of law". §601(b)(1) restores the full rate only "For purposes of applying section 1402(a)(12)" of the IRC. 42 USC 411(a)(11) uses the 1401 rates "for such year". Read literally, that gives 6.65% for Title XVI, so the PR's value follows the statute-first rule.
- The manual. POMS SI 00820.210 A.3 applies 7.65% (.9235) to all "taxable years beginning after 1989" and says Schedule SE "already reflect[s] the .9235 adjustment". The 2011-2012 Schedule SE used .9235 because of §601(b)(1).
- Observed: the candidate's
questionandreadingscover only the tax-paid condition. The 2011-2012 divergence appears in a single sentence of thenote, with no readings, example or test. - Impact: small (1% of NESE in two historical years), but CONTRIBUTING.md "Source conflicts" asks for each choice to be recorded with its readings.
- Fix: add a separate candidate, or extend this one's question, readings and example. Add a 2011 test.
- Proposed severity: SUGGESTION.
Evidence Gaps
- The policy reviewer did not fetch OAR 461-150-0095(2) and CT UPM 5020.70 C.3 within the source budget, so two changes are UNVERIFIED: Oregon applying a co-resident spouse's business loss against the person's own earnings, and Connecticut deeming the spouse's raw earnings. Both move toward the rule text the code comments quote. The missing texts are https://ch461rules.odhs.oregon.gov/rules/461-150-0095.pdf and the UPM 5020.70 document cited in the code.
Notes
- This round covers the 11 author commits since the 11-05 review and three merges of main.
- Round-1 critical (the Idaho AABD / Indiana SAPN helper restored only the applicant's loss): RESOLVED.
-
- The helper now restores every household member's barred loss, and the state adjustments, only when the household is in that state. It reruns SSI countable income on an override branch, so couple pooling and spousal and parental deeming use the restored earnings.
-
- Executed: the Idaho spouse-loss and leftover-loss households give AABD 0, the couple gets 10 each and the parent-deeming child 33, all matching round 1's expected values and pinned by YAML. The same couple in Idaho, Washington and Indiana gets identical federal SSI, and only Idaho pays AABD.
-
- The Indiana row now gives $22, not round 1's $0. Federal SSI now applies the community spouse's farm loss, and SAPN leaves the community spouse out under 42 U.S.C. 1396r-5(b)(1). The policy review verified that rule, so round 1's $0 is withdrawn.
- Should 1 (flaky NH test): All 13
@settingsare derandomized and the comparison uses a tolerance. - Should 2 (unpinned terms): Idaho AABD Case 17 pins the student cap (July drops to $0 once $9,730 is used). Kentucky Cases 19 and 20 pin the $5,964 threshold (20 CFR 416.1163(d), "more than") and the eligibility term.
- Should 3 (rulespec-us#1970 misses the Idaho and Indiana rules) is still open, and wider than before. #1970 was last updated 11-02. It doesn't mention IDAPA 16.03.05 or IHCPPM 3410.15, and it still calls the 7.65% NESE deduction a separate follow-up although this PR implements it. Also uncovered: the IDAPA 401.04 deduction, the 1396r-5(b)(1) SAPN exclusion, Maryland PAA's own-income budget and the OR, MN and CT budget changes. Please update #1970 or open a companion
pe-parityissue. - Suggestions 1–4 are resolved:
-
- The 7.65% NESE deduction from 1990, statute-first. POMS's tax-paid condition is recorded as
us:ssi-nese-tax-paid.
- The 7.65% NESE deduction from 1990, statute-first. POMS's tax-paid condition is recorded as
-
- The Indiana page comment.
-
- The test file naming.
-
- One shared
self_employmentsource list.
- One shared
- Suggestion 5 (Kentucky pretax premiums) is still open.
- New behavior verified against sources:
-
- Student exclusion. It runs month by month from January until the cap and applies once to a couple's combined earnings (POMS SI 00820.510 B.5, E.2). Starting in January is a modeling simplification.
-
- SGA loss rule. Losses net across businesses and never reduce wages (DI 10505.015 D.3, DI 10510.012 B).
-
- Idaho 401.04 deduction. Over $400, 7.65%, only when SE tax is paid.
-
- Indiana. Raw profit, with the community spouse excluded.
-
- Kentucky. Raw profit, with no cross-business loss (MS 2450 C.8).
-
- Maryland PAA. The person's own income only (COMAR 07.03.07.07–.08; PAA 900).
- Households with no business income mostly match main: single aged, spousal deeming, an eligible couple, parental deeming and both sides of SGA. Working students differ ($6,428 vs $6,623 a year for the executed student), and every positive business profit gets the 7.65% deduction. Both are correct, but undisclosed (code-2).
- No main code was lost in the merges. Main's spousal-deeming logic moved into a shared helper, and main's SSI tests pass at the head.
Validation Summary
Local tests at the reviewed head (review venv, policyengine-core 3.37.2, matching uv.lock; imports resolved to the snapshot): the combined run hit its 540 s deadline under machine load after 109 YAML files (1,257 cases, 0 failures), stopping inside the Medicaid long-term care folder; CI passed all YAML shards at the head. A split pytest run gave 190 passed and 1 failed, the code-health test that reproduces code-1. Diagnostics executed the round-1 households, the cross-state couple and households with no business income on main and the head. Sources: 12 retrieved (20 CFR 416.1110–416.1112 and 416.1163, POMS SI 00820.210 and .510, DI 10505.015 and 10510.012, IDAPA 16.03.05, IHCPPM 3410.15, KY OMVOLIVA MS 2450, COMAR 07.03.07, 42 USC 1382a and 411, Pub. L. 111-312); manifest check passed. CI at 449ed8c: 34 checks pass, 2 fail (Python Rest shard 2 and its gate; see code-1).
Timing
setup seconds: 22.00s; scope seconds: 60.00s; parallel review seconds: 968.20s; policy role seconds: 512.00s; code role seconds: 968.20s; adjudication seconds: 150.00s; consolidation cleanup seconds: 74.30s; elapsed seconds: 1716.00s
Review Severity
COMMENT. Open findings: 0 critical, 2 should address, 2 suggestions.
Fixes #10531
Fixes #10558
What and why
Count active farm profit and qualifying partnership self-employment earnings in SSI alongside Schedule C income. The earned-income list adds
farm_operations_incomeandpartnership_self_employment_net_earningsonce. It excludes passive farm rent and partnership income outside the self-employment base.SSI nets an individual’s business results before applying the statutory deduction to positive profit. Eligible spouses use their own earnings in a month with separate facility budgets. SSI applies the working student exclusion in consecutive months and carries prior use of the annual cap across separate and joint budgets. A joint budget applies one exclusion to eligible student earnings. Parent deeming uses identified spouse pairs for the parents’ means test.
Idaho restores barred farm losses before deeming, applies its tax-paid self-employment deduction from March 17, 2022, preserves supplied SSI earnings, and rounds payments up under IDAPA §§401.04, 403.06 and 514. Indiana floors each person’s net business losses and counts the resident’s actual federal SSI. The SAPN post-eligibility budget excludes a community spouse’s income under Social Security Act §1924(b)(1).
Kentucky combines the applicant’s and ineligible spouse’s earnings before the $65 and half-earnings disregard. Both deeming budgets exclude the federal $20 general disregard. The existing threshold and child-allocation rules remain the budget inputs pending a separate §8(3) conservation correction.
Connecticut calculates an ineligible spouse’s applied earnings from the deemor’s own income. Maryland budgets each person separately. Its prospective SSI uses federal countable earnings and monthly shelter support, with SSDI-only and reported-SSI fallbacks. A separate facility budget uses the applicant’s own earnings. Minnesota measures own gross earnings before the federal deduction. Oregon applies documented losses to earnings within the financial group. New Hampshire floors combined business income before counting wages.
Governing text
Invariants and intentional exceptions
Reader audit
The raw earned-income list feeds SSI, California’s Working Disabled Program and Wisconsin’s Caretaker Supplement. Monthly SSI budgets apply spousal loss offsets where the budget permits them. Federal SSI, MSP and applicable Medicaid paths use the adjusted federal earnings input. The Medicaid LTSS annual-source default sums own earnings before the federal self-employment deduction and monthly conversion. Reported monthly earnings take precedence.
Connecticut calculates an ineligible spouse’s applied earnings from the deemor’s own income, and Maryland budgets each person separately. Minnesota uses SSI’s loss-adjusted earnings for spouse pooling and deeming, and measures own gross earnings before the federal deduction. Oregon applies documented losses to earnings within the financial group. Kentucky and New Hampshire use their state-specific business calculations. SGA, Kentucky, New Hampshire and Indiana share the list of four modeled business sources.
Readers of
ssi_countable_incomeFive production files reference the annual variable directly. The two Medicaid formula readers are
is_medically_needy_for_medicaidandis_optional_senior_or_disabled_for_medicaid. The input adaptersssi_countable_income_monthlyandca_capi_countable_incomealso accept the annual input._ssi_countable_income_without_loss_offsetchecks for a supplied annual budget before applying state adjustments.Readers of
ssi_countable_income_monthlyTwenty production files reference the monthly variable directly.
uncapped_ssi,uncapped_ssi_without_spousal_deeming,ssi_countable_incomessi_resources_deemed_from_ineligible_parent_ssi_state_supplement,_ssi_countable_income_without_loss_offsetca_state_supplement_person,fl_oss,fl_oss_eligible,ia_ssa_federal,ia_ssa_smme_countable_income,in_ssp_rcap,la_oss,nc_sa_eligible,ny_ssp,sc_ssi_state_supplement,sc_ssi_state_supplement_eligible,sc_ssi_state_supplement_pna,tx_ssi_state_supplement_eligible,va_ag_countable_incomeSNAP unearned income counts
ssiand most state supplement payments, including seven of the eight whose income calculations this PR edits:ct_ssp_person,id_aabd,in_ssp,ky_ssp,md_paa,mn_msa_personandnh_ssp. Oregon’sor_sspis not listed there. Indiana’s SAPN payment reaches SNAP throughin_ssp. SNAP income sourcesSGA, disability and the couple computation
SSA keeps wages in the SGA earnings test when business costs exceed receipts. PolicyEngine adds gross wages to combined net business earnings floored at zero. It compares the exact annual sum with twelve times the monthly limit. When SSI earnings are supplied, the formula uses that input and restores wage-limited pretax health premiums. The candidate
us:ssi-sga-self-employment-lossrecords the business-loss rule. POMS DI 10505.015 D.3 · POMS DI 10510.012 B · POMS DI 10505.010 A · 20 CFR 416.975When a spouse’s farm profit lifts earnings over the SGA threshold, the disability finding can change. SSI then uses the ineligible-spouse deeming budget instead of the disability-based couple budget. The disability and payment files contain cases for that transition and for wages that remain over the threshold despite a business loss.
Main and open pull requests
#10141 and #10146 are in main. This PR retains their identified-spouse and identified-couple calculations, monthly SSI budgets and 20 CFR 416.1163(e)(2) cap. It also retains the main-side benefit, eligibility and input handling in Medicaid, MSP and the state readers.
PR #11316 edits
_ssi_parental_deemed_income.pyandis_ssi_ineligible_parent.py. PR #10224 shares the Indiana SAPN YAML, and PR #10382 shares the South Dakota independent-living YAML. Forty-one other open PRs share onlysource_conflicts/candidates.yaml.Register overlaps are #10049, #10116, #10127, #10131, #10527, #10631, #10654, #10655, #10664, #10669, #10670, #10673, #10674, #10678, #10696, #10700, #10713, #10715, #10720, #10722, #10770, #10771, #10772, #10806, #10909, #10927, #10943, #11003, #11041, #11086, #11095, #11098, #11107, #11108, #11145, #11229, #11289, #11292, #11296, #11301, #11320.
Validation
Regression cases (monthly unless annual):
Existing expectations that change, each from the 0.9235 factor on positive business profit or the corrected budgets:
ssi_earned_income.yaml: $100,000 → $92,350; $60,000 → $55,410; $750 → $692.625; $300 → $277.05; $2 → $1.9235.ssi_engaged_in_sga.yaml: $24,000 → $22,164 (three cases); $18,000 → $16,623.ssi.yaml: profit cases use $55,410 and $27,195 = ($55,410 − 12 × $85) ÷ 2; the mixed-wage case pays $6,631.50 instead of $6,402.is_ssi_disabled.yaml: farm-profit payment $6,402 → $7,320 ($1,491 − ($1,847 − $85) ÷ 2 = $610 a month).ssi_blind_or_disabled_working_student_exclusion.yaml: 2025 annual countable $2,560 → $2,857.50.id_aabd.yaml: Cases 7 and 8 $22.50 → $23; Case 17 January $22.92 → $53.in_ssp_sapn.yaml: Case 14 $0 → $22.ct_ssp_countable_income.yaml: partnership-loss claimant countable $592.50 → $800.83.ky_ssp_countable_income.yaml: each case rises by $10, from removing the $20 general exclusion before halving (for example $790.83 → $800.83).md_paa_countable_income.yaml: each person’s own income only (for example Case 12 claimant $4,490 → $0).A Linux run passed 677 cases across 31 YAML files on the branch and on a merge with main. The spousal-deeming fixture now uses net self-employment earnings, and the December shelter-support fixture lets Maryland and California compute countable income. Each household has a new YAML case, traced by hand. CI runs the changed files at this head.
Child-allocation Case 13 sets
is_in_k12_school: false, which turns off main’s default school attendance, so no student exclusion applies and the case tests the farm-loss offset. The SSI annual-input test registers the loss-adjusted earnings variable in its small system.Not changed here: Kentucky’s ineligible-spouse income conservation under 921 KAR 2:015 §8(3), which predates this PR.
impact: pending
axiom: TheAxiomFoundation/rulespec-us#1970 queued
🤖 Generated with Claude Code