Repository navigation
Use the 48-state guideline and published reimbursement rates for school meals in Guam, Puerto Rico and the Virgin Islands - #11699
Merged
Conversation
…e territories Guam, Puerto Rico and the Virgin Islands have a $0 spm_unit_fpg, so the school meal poverty ratio divided by zero, and the NSLP and SBP rate parameters had no keys for them, so every tier was worth $0. USDA's income eligibility guidelines apply the 48-state guideline to Guam and the territories (91 FR 17934), and its payment notices give them Hawaii's rate column from SY 2020-21 (Puerto Rico from SY 2016-17) and the contiguous column before. Add school_meal_fpg, use it in school_meal_fpg_ratio and school_meal_tier, and add GU, PR and VI keys to the NSLP and SBP rates. Fixes #10245 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
hua7450
approved these changes
Dec 3, 2026
hua7450
left a comment
Collaborator
There was a problem hiding this comment.
Thanks, David. The territory treatment matches USDA's notices:
- Income guideline. The income eligibility tables cover the "48 Contiguous States, District of Columbia, Guam and Territories" (2015 notice, same header in 2026 at 91 FR 17934), so all three territories get the 48-state guideline in every modeled year.
- Rate columns. All three used the contiguous figures in SY 2015-16. Puerto Rico shared Hawaii's column from SY 2016-17, and one Guam, Hawaii, Puerto Rico and Virgin Islands column applies from SY 2020-21. The values come from the same lunch "less than 60%" and breakfast non-severe-need columns as the existing keys, and projections match Hawaii through 2035.
- New variable.
school_meal_fpgdoesn't duplicate anything:aca_fpggives $0 for the territories and lags a year.
Approving.
Optional:
- Copied rates (worth doing). All 216 territory values are exact copies of the existing contiguous-state or Hawaii values. Every July update now needs 18 extra entries, and a missed one would quietly fall back to a CPI-U projection.
- A dated boolean per territory (for example
uses_hawaii_rates: Guam and the Virgin Islands true from 2020-07-01, Puerto Rico from 2016-07-01) read at the same instant as the rates stays correct at every date, including the January and July reads in draft PR 10766. It costs a few lines inschool_meal_daily_subsidy.pyandschool_meal_paid_daily_subsidy.py. - If you keep the copies, a test checking each territory leaf against its source column would catch a missed update.
- A dated boolean per territory (for example
- Earlier guideline notice.
school_meal_fpg.py(lines 21-24) cites only the 2026 notice, but the rule runs from 2015. Adding the SY 2015-16 notice and the HHS notice thataca_fpgalready cites (78 FR 5183) would back the earlier years. - Repeated cases. The three territory cases in
school_meal_tier.yamluse the same incomes and expect the same tiers through the same branch, so one would do. The Guam and Virgin Islands columns in the 2026 and 2027school_meal_daily_subsidy.yamlcases repeat each other the same way. - PR body page numbers. 80 FR 42470 should be 42471, and 84 FR 38590 should be 38591. The code references are right.
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 #10245
What was wrong
HHS publishes no poverty guideline for Guam, Puerto Rico or the U.S. Virgin Islands, so
spm_unit_fpgis $0 there. On main (50af7fba69):school_meal_fpg_ratiodivided countable income by that $0, giving NaN at zero income andinfabove it. With no categorical eligibility, every territory household was PAID, including those with no income.gov.usda.school_meals.amount.nslpand.sbphad keys only forCONTIGUOUS_US,AKandHI, so the territories' rates read as $0. For a parent and a 10-year-old in Guam or the Virgin Islands in 2026,school_meal_daily_subsidyandfree_school_mealswere $0 even when the tier was FREE through SNAP. The same household in Hawaii gets $9.16 a day and $1,454.40 a year.USDA treats the territories differently:
What changes
New variable
school_meal_fpg:spm_unit_fpg, except that SPM units in Guam, Puerto Rico and the Virgin Islands get the 48-state guideline for their size. It reusesSTATE_GROUPS_WITHOUT_GUIDELINEandCONTIGUOUS_STATE_GROUPfromaca_fpg. Everywhere else it equalsspm_unit_fpg, so anspm_unit_fpginput still flows through.school_meal_fpg_ratiodivides byschool_meal_fpg, andschool_meal_tierrounds the 130% and 185% limits to whole dollars onschool_meal_fpg(both usedspm_unit_fpg).amount/nslp.yamlandamount/sbp.yamlgainGU,PRandVIkeys with the values of the column each notice assigns them:The keys inherit the parent's CPI-U uprating, so projected years stay equal to Hawaii's.
I put the territory values in the rate parameters instead of adding a rate-group helper for two reasons. Which column a territory used changed by school year, so a fixed mapping would be wrong for 2015-2019. Draft #10766 also reads these parameters at January and July dates, and a parameter-only change stays correct at every date without touching its Python.
Who is affected
Only SPM units with
state_codeGU, PR or VI. Example, 2026, a parent and a 10-year-old with no categorical-eligibility input:free_school_meals$1,454.40reduced_price_school_meals$1,328.40Puerto Rico now gets the same values when categorical eligibility is supplied as an input. Without that input, Puerto Rico still raises in
snap_regionon main and on this branch (see "Not in this PR"). No state outside the three territories changes.Tests
16 cases added and 1 changed, all in
policyengine_us/tests/policy/baseline/gov/usda/school_meals/. Expected values come from the USDA notices, and the arithmetic is in each case's comment:school_meal_fpg.yaml(new)spm_unit_fpgand $15,960, $19,950 and $18,360 for NC, AK and HI. Parent and child in Guam: $21,640.school_meal_fpg_ratio.yamlschool_meal_tier.yamlschool_meal_daily_subsidy.yamlschool_meal_paid_daily_subsidy.yamlfree_school_meals.yamlreduced_price_school_meals.yamlThe changed existing case is in
school_meal_tier.yaml: "Puerto Rico's zero guideline keeps the unrounded federal ratio limits in 2026" is now "Puerto Rico's federal ratio limits use the 48-state guideline in 2026".school_meal_fpg: [15_960, 15_960, 15_960].Puerto Rico cases supply
meets_school_meal_categorical_eligibility: false, or a tier input, so they test school meals without reaching the SNAP crash below.Main versus branch (local, policyengine-core 3.37.2):
50af7fba69tests/policy/baseline/gov/usda/school_meals/tests/core/test_school_meal_*.pytest_source_conflicts,test_parameter_yaml_keys,test_uprating_placement,test_reference_urls,test_no_concatenated_reference_urls,test_known_dead_reference_urlsOn main the new cases fail with
school_meal_fpg_ratio[nan inf inf], every territory tier PAID, every daily and paid subsidy 0, andschool_meal_fpgmissing.ruff formatandruff checkare clean on the three changed Python files.Not in this PR
ValueError: Invalid value(s) ['nan'] for enum SNAPRegion, atsnap_region.py:35viasnap_net_incomeandsnap_excess_shelter_expense_deduction. This hitssnapandhousehold_net_incomefor a Puerto Rico adult with no children, school meals or not. Thesnap_regionmap has noPRkey, and Puerto Rico runs the Nutrition Assistance Program instead of SNAP (Model Puerto Rico's Nutrition Assistance Program #46). I found no open issue for it, and a separate issue will cover it.school_meal_tier.pyandschool_meal_daily_subsidy.py. This PR changes one line ofschool_meal_tier.py(spm_unit_fpgtoschool_meal_fpg) and one line of its docstring, and doesn't touchschool_meal_daily_subsidy.py. Whichever PR merges second carries that one-line change into Prorate Head Start and apply effective rates to part-year school meals #10766'sschool_meal_tier_from. Model Georgia reduced-price school meal copay waivers by student and meal #10845 (Georgia copays) touches neither file.axiom: TheAxiomFoundation/rulespec-us#2937 queued
🤖 Generated with Claude Code