Skip to content

Add Massachusetts CSFP county filtering#8625

Merged
hua7450 merged 2 commits into
PolicyEngine:mainfrom
hua7450:ma-csfp-county-filtering
Jun 10, 2026
Merged

Add Massachusetts CSFP county filtering#8625
hua7450 merged 2 commits into
PolicyEngine:mainfrom
hua7450:ma-csfp-county-filtering

Conversation

@hua7450

@hua7450 hua7450 commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Adds ma_dese_csfp_county_eligible gating the Commodity Supplemental Food Program by Massachusetts county, following the Kansas ([codex] Add Kansas CSFP county filtering #8585) and Missouri precedents.
  • Adds gov/states/ma/dese/csfp/counties.yaml listing the six covered counties.
  • Gates federal CSFP eligibility by the Massachusetts county variable when state_code is MA.

Program research

Massachusetts CSFP is administered by the Department of Elementary and Secondary Education (DESE), Office for Food and Nutrition Programs — not MDAR (which runs MEFAP/SFMNP) — hence the gov/states/ma/dese/csfp/ path. The MA CSFP State Plan names DESE as the distributing agency and The Greater Boston Food Bank as the sole local agency; the DESE food distribution page confirms this.

No government document enumerates counties directly, so the covered counties are derived from GBFB's 35+ CSFP distribution sites, each mapped to its county (same derivation approach as the KS site list and MO site map):

County Example CSFP site towns
Bristol New Bedford, Taunton, Attleboro, Fairhaven, Acushnet
Essex Lawrence, Lynn, Peabody, Danvers, Marblehead
Middlesex Lowell, Somerville, Medford, Newton, Waltham, Billerica
Norfolk Quincy, Randolph, Brookline, Milton
Plymouth Wareham, Rochester
Suffolk Boston, Chelsea, Revere

Counties verified as not served:

  • Barnstable, Dukes, Nantucket — inside GBFB's general nine-county territory but have no CSFP sites
  • Worcester — Worcester County Food Bank has no CSFP program
  • Hampden, Hampshire, Franklin, Berkshire — Food Bank of Western Massachusetts runs the state-funded "Brown Bag: Food for Elders" program, not federal CSFP

Changes

  • parameters/gov/states/ma/dese/csfp/counties.yaml — six covered counties, effective 2025-01-01
  • variables/gov/states/ma/dese/csfp/ma_dese_csfp_county_eligible.py — household-level county check (mirrors ks_dcf_csfp_county_eligible)
  • variables/gov/usda/csfp/commodity_supplemental_food_program_eligible.py — adds the MA county gate alongside KS and MO
  • tests/policy/baseline/gov/states/ma/dese/csfp/ma_dese_csfp_county_eligible.yaml — covered counties (Suffolk, Plymouth) and uncovered counties (Barnstable, Worcester)
  • tests/policy/baseline/gov/usda/csfp/commodity_supplemental_food_program_eligible.yaml — integrated MA cases

Testing

  • Direct county tests plus integrated federal CSFP eligibility tests (validated in CI)
  • make format run before commit

🤖 Generated with Claude Code

Gates federal CSFP eligibility for Massachusetts households by the
counties served by The Greater Boston Food Bank, the sole local agency
under the Massachusetts CSFP State Plan (DESE).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@codecov

codecov Bot commented Jun 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (0797323) to head (7857608).
⚠️ Report is 7 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #8625   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            2         2           
  Lines           29        36    +7     
=========================================
+ Hits            29        36    +7     
Flag Coverage Δ
unittests 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@hua7450 hua7450 marked this pull request as ready for review June 10, 2026 22:54
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@hua7450 hua7450 merged commit 1782b97 into PolicyEngine:main Jun 10, 2026
25 of 26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant