Repository navigation
Apply resource and immigration eligibility rules to South Carolina’s Optional State Supplementation - #11514
Draft
MaxGhenis wants to merge 4 commits into
Draft
Apply resource and immigration eligibility rules to South Carolina’s Optional State Supplementation#11514MaxGhenis wants to merge 4 commits into
MaxGhenis wants to merge 4 commits into
Conversation
Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #11514 +/- ##
===========================================
- Coverage 100.00% 97.45% -2.55%
===========================================
Files 1 10 +9
Lines 24 157 +133
Branches 0 2 +2
===========================================
+ Hits 24 153 +129
- Misses 0 2 +2
- Partials 0 2 +2
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:
|
Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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.
Agent-written for Max, by a Codex cloud task and Claude Code for Max Ghenis; no person has reviewed it yet.
What and why
South Carolina’s Optional State Supplementation program tests countable resources at the first moment of each month and applies SSI citizenship and immigration rules. The individual ceiling is $2,000. When a co-resident spouse does not apply, that spouse’s countable resources count toward the applicant’s, and the $3,000 couple ceiling applies. Two spouses who live in the facility and both apply are each held to the individual ceiling. Apply these tests in
sc_ssi_state_supplement_eligible.py:31–:55. Reg. 126-920(A)(3) and (5) adopt the SSI resource limits and other SSI eligibility criteria, and Reg. 126-920(B) treats two resident applicants as individuals. MPPM §403.06 gives the individual ceiling, and §402.27.02 counts unrestricted bank balances. South Carolina regulation, PDF pp. 28–29 · MPPM Chapter 403 · MPPM Chapter 402 · 20 CFR §416.1205sc_ssi_state_supplement_countable_resources.pycounts each person’s bank accounts, stocks, bonds and second home equity at the start of the month. A monthly balance carries forward within its calendar year. Before the first monthly balance, the model uses the annual balance, or zero when none is reported. A negative balance counts as $0 and does not offset other assets. Secured debt reduces second home equity. A suppliedssi_countable_resourcesvalue replaces this estimate, so adjudicated exclusions and ownership rules can be entered directly. The eligibility test rounds the resource total to cents before comparing it with the ceiling. Deeming leaves out the spouse’s excluded military resources. Facility residents count as applicants unlesssc_ssi_state_supplement_appliesis false.sc_ssi_state_supplement_spousal_deeming_exempttakes the institutional deeming exception as an input. The model does not encode that exception’s criteria. MPPM Chapter 402 · 20 CFR §§416.1201, 416.1202 and 416.1207Core keeps one value per year for annual asset inputs such as
bank_account_assets, and the situation builder fills omitted quarters with 40.sc_oss_inputs.pycopies dated asset balances and supplied quarters into separate OSS inputs, andsocial_security_inputs.pycalls it when it builds a situation from household inputs.sc_ssi_state_supplement_immigration_eligible.pyrequires a noncitizen to hold a qualified status and an SSI eligibility pathway. A lawful permanent resident passes with at least five years in qualified status and at least 40 credited quarters. Refugees, asylees, people granted withholding of deportation and Cuban or Haitian entrants pass within seven years of the status grant. A qualified noncitizen with an explicitis_veteraninput of true passes under the military exception. Other qualified statuses, such as one-year parole, pass only through that exception. Undocumented, DACA and TPS statuses fail. Omitted status defaults to citizen atimmigration_status_str.py:10. Omitted quarters count as zero for OSS. Time in status comes fromyears_since_us_entry, which defaults to five. Exact grant dates, status histories the inputs do not describe, and other military or grandfathering pathways need the adjudicated result supplied assc_ssi_state_supplement_immigration_eligible. SCDHHS OSS program eligibility · MPPM §102.04 · S.C. Code §8-29-10 · SSA POMS SI 00502.100 · SI 00502.106 · SI 00502.135 · SI 00502.140#10639 and #10532 change zero OSS files. #10639 rounds the federal resource test, and #10532 changes federal SSI income calculations. #11432 changes OSS income and payment. It overlaps this PR in the eligibility formula and its citations, and it adds its own
policyengine_us/tools/sc_oss_inputs.pywith income-input helpers. Combining the two should keep #11432’s state countable income in eligibility and payment alongside these resource and immigration tests, and should keep both PRs’ helpers in that file.Test plan
The January 2026 cases use the $20 general income disregard in MPPM §403.05.03A, and the $1,804 net income limit and $105 other-income personal needs allowance in bulletin 26-001. MPPM Chapter 403 · SCDHHS 2026 COLA bulletin, CRCFs
test_social_security_input_state_machine.pyfails with a NameError. Its test backend loads the definitions insocial_security_inputs.pybut not that file's imports, so the call topreserve_sc_oss_inputshas no definition there. All other Python tests pass.make formatandruff checkpass.axiom: needed
🤖 Generated with Claude Code