Model Alaska borough-level SNAP ABAWD waivers#8860
Draft
daphnehanse11 wants to merge 3 commits into
Draft
Conversation
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>
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 5 2 -3
Lines 62 44 -18
=========================================
- Hits 62 44 -18
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:
|
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.
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