Model Alaska borough-level SNAP ABAWD waivers#8860
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8860 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 3 2 -1
Lines 55 45 -10
=========================================
- Hits 55 45 -10
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:
|
Add a dated list parameter of county FIPS codes with an approved FNS waiver of the SNAP ABAWD time limit under 7 U.S.C. 2015(o)(4) and 7 CFR 273.24(f), covering the 29 Alaska boroughs and census areas (all except the Municipality of Anchorage) waived from 2024-11-01. Add is_in_snap_abawd_waived_area and wire it into meets_snap_abawd_work_requirements as an additional exemption. Fixes PolicyEngine#8822 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Rebased onto current Verification on the rebased branch:
Note: #8872 is stacked on this branch and remains draft pending a source question on its litigation-reinstated statewide-waiver table (see comment there). Ready for review. |
5817cba to
577f177
Compare
MaxGhenis
left a comment
There was a problem hiding this comment.
Fable review + agent verification: Alaska borough-level ABAWD waiver geography with the 29-borough all-except-Anchorage enumeration verified exactly against the source; the shared-formula union with the merged discretionary exemption resolved and 84 tests green.
Fixes #8822
Summary
Models SNAP ABAWD time limit area waivers (7 U.S.C. 2015(o)(4), 7 CFR 273.24(f)) at borough/census-area geography for Alaska:
gov.usda.snap.work_requirements.abawd.waived_county_fips— a dated, list-valued parameter of county FIPS codes with an approved FNS waiver of the ABAWD time limit. Effective 2024-11-01, it contains the 29 Alaska boroughs and census areas (every Alaska county-equivalent except the Municipality of Anchorage, FIPS 02020).is_in_snap_abawd_waived_area— person-level boolean that reads householdcounty_fipsand checks membership in the parameter list withnp.isin(vectorized).meets_snap_abawd_work_requirements: the waiver joins the sharedbase_conditions, so it exempts residents of waived areas under both the pre-HR1 and post-HR1 branches. No existing lines of the formula were modified, keeping the change surface disjoint from the parallel HI/AK delayed-HR1-adoption PR (this PR does not touchexempt_states.yamloris_snap_abawd_hr1_in_effect.py).Data provenance
Waived-area list verified against primary sources:
county_fips, so it is documented in the parameter header but not modeled.Caveats:
county_fips_2020dataset (5-digit zero-padded strings, 30 AK county-equivalents).Fallback behavior without county geography
county_fipsis a string household variable with no default (empty string""). When a dataset lacks county geography,np.isin("", waived_list)isFalse, so no area waiver applies and ABAWD exposure is computed as before this PR. This is documented in the variable'sdocumentationand covered by test Case 4. Microsimulation use requires the H5 to carrycounty_fips(companion data issue: PolicyEngine/populace#250).Tests
New
is_in_snap_abawd_waived_area.yamlcovers:county_fips— falls back to no waiver🤖 Generated with Claude Code