Fix federal disability gates disconnected from their legal definitions - #9345
Draft
hua7450 wants to merge 2 commits into
Draft
Fix federal disability gates disconnected from their legal definitions#9345hua7450 wants to merge 2 commits into
hua7450 wants to merge 2 commits into
Conversation
Aligns six federal disability gates with the definitions their statutes actually reference (part of the #9330 disconnected-disability-inputs audit): - SNAP disabled_programs (7 CFR 271.2): qualify by SSI receipt (receives_ssi | ssi) instead of the is_ssi_disabled criteria flag, which has no receipt test and drops blind SSI recipients. - SNAP ABAWD, work registration, general work requirements, and student rules (7 CFR 273.7(b)(1)(ii), 273.24(c)(2)): disability benefit receipt (is_usda_disabled) establishes unfitness for employment. - SSI student earned income exclusion (20 CFR 416.1112(c)(3)): gate on is_ssi_disabled rather than the generic is_disabled flag. - Medicaid work requirement and home equity family exception (42 U.S.C. 1396p(f)(2)): recognize the Section 1614 SSI definition. - HUD person with disabilities (42 U.S.C. 1437a(b)(3)(E)): recognize the SSA Section 223 path via is_ssi_disabled and SSDI receipt; drop the stray unit = USD on the boolean. Fixes #9329 Fixes #9331 Fixes #9332 Fixes #9333 Fixes #9334 Fixes #9337 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The gate now computes is_ssi_disabled, whose SGA parameter (gov.ssa.sga.non_blind) has no values before 1975-01-01, so the 1974-period cases crashed on an undefined parameter. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #9345 +/- ##
============================================
- Coverage 100.00% 42.20% -57.80%
============================================
Files 1 10 +9
Lines 37 218 +181
Branches 2 0 -2
============================================
+ Hits 37 92 +55
- Misses 0 126 +126
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
hua7450
marked this pull request as ready for review
August 25, 2026 05:15
hua7450
marked this pull request as draft
August 25, 2026 15:07
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Part of the disconnected-disability-inputs audit (#9330). Fixes the six federal findings: gates whose statutes define disability by SSI/SSDI receipt or by cross-reference to the Social Security Act, but which read only the generic
is_disabledflag (or, inversely, an SSI-criteria flag where the law requires receipt).Fixes #9329
Fixes #9331
Fixes #9332
Fixes #9333
Fixes #9334
Fixes #9337
Changes
disabled_programs.yaml→is_usda_disabledis_ssi_disabled(criteria flag, no receipt test, drops blind SSI recipients) withreceives_ssi+ssi(reported or modeled receipt)is_usda_disabledinto each disability legis_disabled→is_ssi_disabledis_ssi_disabledto the resident-child disability legsis_ssi_disabledtoeligible_disabledis_ssi_disabledand SSDI receipt paths; drop strayunit = USDon the booleanAlso clarifies the
disabled_programsdescription andis_usda_disableddocumentation: per 271.2 item (2) any SSI receipt qualifies (including aged-category recipients, who are 65+ and always also qualify under the elderly test, so no consumer's outcome changes through the aged path).Not in this PR
Impact channels
Checklist
make format)changelog.d/fix-disability-input-disconnects.fixed.md)🤖 Generated with Claude Code