Add comprehensive SNAP utility allowance data (FY2019-FY2026, sub-regions, household size)#7726
Add comprehensive SNAP utility allowance data (FY2019-FY2026, sub-regions, household size)#7726
Conversation
Adds Standard Utility Allowance (HCSUA) values from USDA FNS xlsx files: - FY2019 (2018-10-01): 53 state/territory entries - FY2023 (2022-10-01): 52 entries (CO already existed) Fills the FY2023 gap and extends coverage back to FY2019. Closes #7721 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7726 +/- ##
==========================================
Coverage 100.00% 100.00%
==========================================
Files 1 7 +6
Lines 23 215 +192
Branches 1 6 +5
==========================================
+ Hits 23 215 +192
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Test 2 (2021, CA): Jan-Sep now uses FY2019 value (415) instead of 0 Test 3 (2020, CA): Now uses FY2019 value (415*12=4980) instead of 0 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Adds HCSUA values effective 2025-10-01 for all 50 states + DC. Data sourced from snapscreener.com/data which compiles state-published SUA values. HI/GU/VI remain 0 (use individual utility allowances). Closes #7030 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add 2025-10-01 (FY2026) entries from snapscreener.com for: - BUA (limited/main.yaml) - all 53 states/territories - Electricity, gas, water, sewage, trash, phone - all 53 states/territories - NC household-size SUA (by_household_size/amount.yaml) - sizes 1-10 Update NC SUA test expectations for FY2026 values taking effect Oct 2025. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Simpler, clearer parameter name for the list of states that vary SUA/LUA by household size. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add FY2024-FY2026 household-size-based values for: - AZ: 2 tiers (HH1-3, HH4+) for both SUA and BUA - TN: 10 tiers (HH1 through HH10+) for SUA and BUA - VA: 2 tiers (HH1-3, HH4+) for SUA only (VA has no BUA) Also adds FY2026 values for NC BUA by household size. Source: USDA FNS SUA Table FY2024/FY2025, snapscreener.com FY2026 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…owances - Split AK into 6 SNAP utility sub-regions (Central, Northern, Northwest, Southcentral, Southeast, Southwest) per 7 AAC 45.531 - Split NY into 3 sub-regions (Nassau/Suffolk, NYC, Other NY) - Add county-to-region mapping in snap_utility_region formula - Add HI and GU individual utility allowances (electricity, gas, water) that vary by household size - Update snap_individual_utility_allowance to handle by-household-size lookups for HI/GU Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The breakdown metadata referenced state_code which caused AK/NY sub-region keys to be silently dropped during parameter loading. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Microsim impact analysisRan household-level examples comparing 2024 vs 2026 values — all features working correctly: SUA examples:
IUA examples:
Aggregate microsim (Enhanced CPS): Utility expense variables ( |
Program Review: PR #7726 -- Add comprehensive SNAP utility allowance dataSource Documents
Critical (Must Fix)
Should Address
Suggestions
PDF Audit Summary
Breakdown of confirmed correct values:
Breakdown of 7 confirmed mismatches:
Validation Summary
Review Severity: REQUEST_CHANGESRationale: 6 critical issues require code changes:
These are not edge cases or informational notes. The Indiana and Alaska issues produce materially incorrect SNAP benefit calculations for affected households. Next StepsTo auto-fix issues: Priority order for fixes:
|
hua7450
left a comment
There was a problem hiding this comment.
See detailed review comment above. 6 critical issues require fixes before merge: WY YAML structural error, 2 Indiana value mismatches (confirmed at 600 DPI), 5 Alaska county mapping errors (confirmed against FSP-77), and zero test coverage for the county mapping formula.
…, formatting - Fix WY FY2026 SUA ($510) orphaned after metadata block - Remove wrong IN SUA ($502) and LUA ($274) values per FSSA Manual Section 3020 - Fix IN effective dates from October to May per FSSA transmittals - Add comment documenting IN's May 1 cycle and FY2026 federal alignment - Fix AK county mappings per FSP-77: Bristol Bay, Dillingham, Lake & Peninsula to Southwest; Copper River to Northern - Add 11 tests for snap_utility_region covering all AK/NY sub-regions - Format values >= 1000 with underscore separators Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…into add-snap-sua-data
…ameter references - Remove incorrect `unit = USD` from snap_standard_utility_allowance_by_household_size and snap_limited_utility_allowance_by_household_size (both are boolean variables) - Fix `name:` to `title:` in reference metadata across standard/main.yaml, limited/main.yaml, and all 6 single utility YAML files Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Maryland SUA fixes (per MD DHS Action Transmittals): - Fix effective dates from October to January (MD uses Jan 1 cycle) - Fix wrong value: 2023-01-01 was 551, should be 505 (AT #23-03) - Add missing entries: 2020-01-01: 392, 2025-01-01: 557 - Add FY2026 alignment comment across all 10 affected YAML files - Fix limited/active.yaml date to match MD's LUA data start Bug fix — household size floor: - Add max_(1, ...) to capped_size in snap_standard_utility_allowance, snap_limited_utility_allowance, and snap_individual_utility_allowance to prevent ParameterNotFoundError when spm_unit_size is 0 New tests: - Integration: AK Anchorage county → AK_C region → $609 SUA - Wrong type returns zero: SUA returns 0 for IUA type, LUA returns 0 for SUA type - Size=0 edge case: confirms floor guard works Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The PR claimed FY2019 data was added for all states, but only HCSUA (standard/main.yaml) had entries for most states. LUA (limited/main.yaml) and all 6 individual utility files had zero FY2019 entries. HCSUA was also missing 10 regions (6 AK sub-regions, 3 NY sub-regions, MD). Added 430 FY2019 entries across 8 files from the official USDA FY2019 SUA spreadsheet (SNAP-SUA-Table-FY2019.xlsx). Indiana uses 2018-05-01 and Maryland uses 2019-01-01 per their non-standard effective dates. Updated LUA test expectation for CA 2021: 432 → 1602 (130*9 + 144*3) since CA LUA is now correctly 130 from FY2019, not 0. Ref #7741 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…yaml Add USDA FY2019 SUA spreadsheet reference to all 8 parameter files (standard/main, limited/main, and 6 single utility files). Add missing reference section to limited/active.yaml with USDA FNS and spreadsheet sources. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The FY2026 data ingestion swapped BUA/LUA values into IUA fields for AR, IA, LA, MA, OK, TX, UT, NY_NAS, NY_NYC, NY_ONY. These states do not have individual utility allowances — their LUA values were incorrectly placed in the 5 single utility files (electricity, gas_and_fuel, sewage, trash, water). Fix: zero out bogus IUA entries and restore correct LUA values in limited/main.yaml for all 10 affected states/regions. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…023-10-01 AZ, TN (and NC, VA) have had household-size-varying SUA/LUA since at least FY2019 per USDA SUA spreadsheets. The states.yaml boolean gate used 2024-01-01 while amount.yaml data starts 2023-10-01, creating a 3-month gap (Oct-Dec 2023) where these states would incorrectly fall back to flat main.yaml values. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Summary
Ref #7741
New data
participating_states→statesparameter files for clarityBug fixes
max_(1, min_(10, size))) insnap_standard_utility_allowance,snap_limited_utility_allowance, andsnap_individual_utility_allowanceto preventParameterNotFoundErrorwhenspm_unit_sizeis 0by_household_size/states.yamleffective date from 2024-01-01 to 2023-10-01 to match amount data (AZ/TN had household-size-varying SUA since at least FY2019 per USDA spreadsheets)SNAPUttilityAllowanceTypetypo →SNAPUtilityAllowanceTypeCleanup
unit: USDfrom boolean parameter files (states.yaml,active.yaml, etc.)name:→title:in parameter reference metadatareference:section tolimited/active.yamlRelated issues
county_enum.pyData sourced from USDA SNAP utility allowance spreadsheets (including SNAP-SUA-Table-FY2019.xlsx via Wayback Machine) and snapscreener.com.
Test plan
🤖 Generated with Claude Code