Give the military-connection variable a program-neutral name and fix its marital-unit note
Maintainers usually reply within 2 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
Research direction
Start with the definition of is_snap_alien_military_connected and its age parameters under gov.usda.snap.eligibility.waiting_period.exceptions.military, then find its readers in the Medicaid, Medicare Savings Program and Nevada LIHEAP eligibility variables. Rename it to a program-neutral name, move the age parameters to a shared path, and fix the marital-unit note to match infer_missing_marital_units. Done when the existing SNAP, Medicaid, Medicare Savings Program, LIHEAP and Oklahoma LIHEAP tests pass under the new name with unchanged outputs.
Written by the indexing model from the issue text.
Description
After PolicyEngine/policyengine-us#10950, is_snap_alien_military_connected decides the military exemption of 8 U.S.C. 1612 and 1613, or Nevada's version of it, for four programs:
- SNAP's waiting period;
- Medicaid and the Medicare Savings Programs, through
is_federal_medicaid_immigration_status_eligible; - Nevada LIHEAP, through
nv_liheap_immigration_eligible. Nevada's Division of Social Services exempts veterans, active duty members, and their spouses and unmarried dependent children from the program's five-year bar in Section 302 C VII of its manual.
Its name and its parameters, under gov.usda.snap.eligibility.waiting_period.exceptions.military, still say SNAP. A reform aimed at SNAP's dependent-child ages therefore changes all four programs. #10950 notes the sharing in the documentation, but the name hides it.
Its documentation also says a household that omits marital units "gets a single marital unit holding every member". Since #10000, infer_missing_marital_units gives each person their own unit unless it pairs a likely couple, so one member's service no longer marks every member.
Possible fix
- Rename the variable for the exemption itself, for example
is_alien_military_connected, and update its readers. - Move its two age parameters to a shared path, and keep the note that the ages come from 7 CFR 273.4(a)(6)(ii)(G)(3), since Congress set no ages for the exemption in 8 U.S.C. 1612 and 1613.
- Rewrite the marital-unit sentence to match
infer_missing_marital_units.
No result changes. The test files that name the variable need the new name, Oklahoma LIHEAP's among them, since that program reads SNAP's immigration test. The existing SNAP, Medicaid, Medicare Savings Program and LIHEAP cases should then pass with the same outputs.
🤖 Generated with Claude Code
- Dominant language
- Python
- Stars
- 178
- Forks
- 224
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 309
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from PolicyEngine/policyengine-us
-
Secondary earnings threshold description names a stale 2035 capPossibly taken @Prabh022 claimed this 1 day ago. Open
Difficulty 1/5 Under an hour Newbie friendliness 85/100
PolicyEngine/policyengine-us#11252 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
PolicyEngine/policyengine-us#11201 ·
Maintainers usually reply within 2 days
-
Idaho BBCE households without an elderly or disabled member should face the SNAP net income testPossibly taken @DTrim99 claimed this 4 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
PolicyEngine/policyengine-us#11199 ·
Maintainers usually reply within 2 days
-
California's Medi-Cal immigration test passes pregnant people but not those in the postpartum periodOpen
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
PolicyEngine/policyengine-us#11192 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
PolicyEngine/policyengine-us#11084 ·
Maintainers usually reply within 2 days
All issues in PolicyEngine/policyengine-us
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
bad-antics/lateralus-lang#1140 ·
Maintainers usually reply within 4 days
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 3 days
-
fixture good first issue help wanted vendor:cisco
Difficulty 1/5 1-3 hours Newbie friendliness 85/100