Skip to content

Add SSI disability criteria variable#8364

Merged
MaxGhenis merged 1 commit into
mainfrom
codex/ssi-disability-status-variable
May 21, 2026
Merged

Add SSI disability criteria variable#8364
MaxGhenis merged 1 commit into
mainfrom
codex/ssi-disability-status-variable

Conversation

@MaxGhenis
Copy link
Copy Markdown
Contributor

Summary

  • Add meets_ssi_disability_criteria as a data-overridable person variable for SSI disability status.
  • Keep the current fallback behavior: broad is_disabled and not ssi_engaged_in_sga.
  • Make is_ssi_disabled delegate to the new variable so US-data can later provide calibrated latent SSI disability status.

Why

Asset-limit reforms need a data-backed way to distinguish broad CPS disability from likely SSI disability criteria. Without this, reforms can overstate new SSI participation and downstream Medicaid effects. This is the PolicyEngine-US contract needed before policyengine-us-data can impute the variable from SIPP/CPS predictors and publish it in enhanced CPS.

Related: #1043, PolicyEngine/policyengine-us-data#1094.

Tests

  • uv run policyengine-core test policyengine_us/tests/policy/baseline/gov/ssa/ssi/meets_ssi_disability_criteria.yaml policyengine_us/tests/policy/baseline/gov/ssa/ssi/is_ssi_disabled.yaml -c policyengine_us
  • uv run python policyengine_us/tests/test_batched.py policyengine_us/tests/policy/baseline/gov/ssa/ssi --mode per-subdir
  • uv run ruff format --check policyengine_us/variables/gov/ssa/ssi/eligibility/status/meets_ssi_disability_criteria.py policyengine_us/variables/gov/ssa/ssi/eligibility/status/is_ssi_disabled.py
  • uv run ruff check policyengine_us/variables/gov/ssa/ssi/eligibility/status/meets_ssi_disability_criteria.py policyengine_us/variables/gov/ssa/ssi/eligibility/status/is_ssi_disabled.py

@codecov
Copy link
Copy Markdown

codecov Bot commented May 21, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (289712f) to head (018d95d).
⚠️ Report is 7 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##             main     #8364       +/-   ##
============================================
+ Coverage   70.38%   100.00%   +29.61%     
============================================
  Files        4791         2     -4789     
  Lines       69837        22    -69815     
  Branches      345         0      -345     
============================================
- Hits        49153        22    -49131     
+ Misses      20684         0    -20684     
Flag Coverage Δ
unittests 100.00% <100.00%> (+29.61%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@MaxGhenis MaxGhenis marked this pull request as ready for review May 21, 2026 11:36
@MaxGhenis MaxGhenis merged commit 10aeee9 into main May 21, 2026
26 checks passed
@MaxGhenis MaxGhenis deleted the codex/ssi-disability-status-variable branch May 21, 2026 11:36
hua7450 added a commit to hua7450/policyengine-us that referenced this pull request Jun 1, 2026
Upstream PRs PolicyEngine#8364/PolicyEngine#8365 changed is_ssi_disabled to read the new
canonical input meets_ssi_disability_criteria (default False) instead of
deriving from is_disabled. The two housing-assistance MSA test cases used
non-aged disabled adults set only via is_disabled, so they stopped
qualifying as SSI-disabled and mn_msa_eligible_person dropped to 0.

Add meets_ssi_disability_criteria: true to those persons, matching the
new SSI test convention.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.

1 participant