Repository navigation
Correct countable income for school meals - #10873
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Floor estate and trust pass-through income before adding it to household income. Check that ancillary income measures retain their original sums with generated households. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Use earnings before labor supply responses and explicit household groups in the issue cases. Check Oregon exclusions through the annual income sum and reuse one simulation for ancillary income assertions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Build generated households with Core's entity builder and canonical earnings inputs. Set independent school meal inputs in the CSFP and CVRP fixtures. Match Oregon's state vector to nine recipients. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Resolve source_conflicts/candidates.yaml: keep main's new South Dakota child care entry (#10815) and append the school meal entry after it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… meal floor USDA's income definition lists net income from nonfarm self-employment and net rental income as single items, and its Manual credits the self-employed with net income. PolicyEngine now floors each person's Schedule C and SSTB income once, through total_self_employment_income, and nets rental income with farm rent in school_meal_net_rental_income before the floor. Two new cases cover a same-person SSTB loss and a same-person rental loss, and the property test groups its expectation the same way. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…n the supplement candidate USDA names no state supplement, so the source list now says PolicyEngine counts these totals as regular cash assistance from State or local governments. The state SSI supplement candidate returns to open, and its note states what the code counts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MaxGhenis
marked this pull request as ready for review
November 14, 2026 21:39
The formula bound `income` to the array `add()` returns and then wrote into it with `+=` twice. `add()` returns its first variable's array unchanged when a source list holds one variable on the same entity, and the code-health guard `test_no_in_place_writes_to_cached_arrays` fails on both lines. Sum the two source lists in one expression and rebind `income` in the loop, so the formula builds new arrays. No expected value changes. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Main added source-conflict candidates beside this branch's entries. Keep main's entries in main's order and put this branch's entries after main's last entry for the same jurisdiction. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This was referenced Nov 16, 2026
Contributor
Author
|
US + core hub merge audit, us#10873 at
🤖 Generated with Claude Code |
This was referenced Nov 16, 2026
MaxGhenis
added a commit
that referenced
this pull request
Nov 16, 2026
Resolve the conflict with #10873 in commodity_supplemental_food_program.yaml. Each of the six cases keeps this branch's take-up flag and main's csfp_countable_income and spm_unit_fpg inputs, with its name, period, age and expected payment. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MaxGhenis
added a commit
that referenced
this pull request
Nov 16, 2026
After #10873, CSFP eligibility divides csfp_countable_income by spm_unit_fpg, and an input of school_meal_fpg_ratio no longer reaches it. Two take-up cases and the property test still set that ratio. The property test's third anchor, a 70-year-old with a ratio of 100, then qualifies on computed income, which fails the test's check that the anchor stays ineligible. Set csfp_countable_income and spm_unit_fpg in place of the ratio. In the property test, each person's income equals the drawn ratio times a 10,000 guideline, so each person stays on the same side of the limit. The two YAML cases set 15,000 against 10,000, the 2025 limit of 1.5, and keep their expected outputs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 16, 2026
This was referenced Nov 17, 2026
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.
Correct school meal countable income under 7 CFR 245.6(a)(5) and USDA's 2026–27 income notice.
Exclude educational assistance, net each person's business, rental and estate income within its category before flooring it at zero, and count omitted cash income. Count state supplemental cash assistance once per recipient or assistance unit.
USDA instructs administrators through its Eligibility Manual to account for cash, business losses, educational aid and noncash payments on printed pages 26, 28, 30–31 and 33. Administrators of federally funded benefits must disregard Title IV aid under 20 USC 1087uu.
Estate income can include business and rental losses passed through estates and trusts. The IRS describes those amounts in boxes 6–8 of its Schedule K-1 instructions.
We give federal CSFP, Texas CSFP and California CVRP separate income measures. We retain their previous source sums and existing approximations, and defer substantive corrections under each program's income definition:
Closes #10801
School meal income now counts estate and trust income, which #10063 raises for other federal benefit lists. The Manual's printed page 26 counts railroad retirement with retirement Social Security, and the school meal list still leaves out
railroad_benefits, which #10551 tracks.Draft #10766, "Count Head Start and school meal values from the first qualifying month," changes school meal tiers.
Invariants
test_school_meal_countable_income.pychecks the first five invariants with Hypothesis, on six generated examples per property. Its loss-floor property draws one to four SPM units of one to three people, each with signed amounts in every business source. Its cash property raises one of the five newly counted cash inputs: alimony, workers' compensation, disability benefits, military retirement pay and military survivor payments. The school income YAML state vector checks assistance-unit supplements counted once.Compared with main, school meal income falls for households with educational assistance, and for a person whose farm rent loss offsets their rental income. It rises for households with other business losses, newly counted cash or state supplements.
Microsimulation impact
We estimate that this branch lowers free and reduced-price school meal subsidies (
school_meal_net_subsidy) by $303.1m in 2026 on the default dataset, and household benefits and net income by the same amount. The subsidy changes for 160 sampled SPM units (242,418 weighted): it falls for 126 and rises for 34. The value of free meals falls by $309.7m across 100 changed SPM units (138,949 weighted), and the value of reduced-price meals rises by $6.6m across 78 (134,042 weighted). The income the model tests against the meal limits,school_meal_countable_income, rises by $1,321.2bn across 10,985 changed SPM units (28,307,346 weighted): it rises for 8,143 and falls for 2,842. We sum that income over every SPM unit, with or without a child in school. CSFP, Texas CSFP and CVRP eligibility and federal and state income tax don't change. We comparedmainat0ae3d78441with this branch at72c30a762a.school_meal_countable_incomefree_school_mealsreduced_price_school_mealsschool_meal_net_subsidycommodity_supplemental_food_program_eligibleis_ca_cvrp_increased_rebate_eligibletx_dta_csfp_income_eligiblestate_income_taxincome_taxhousehold_benefitshousehold_net_incomeValidation
Pull request run 43891208201 at
72c30a762apassed all 37 jobs on GitHub's merge with mainfd0a748698.school_meal_countable_income.yamlor_ssp_countable_for_school_meals.yamlcsfp_countable_income.yamlcommodity_supplemental_food_program_eligible.yamlandcommodity_supplemental_food_program.yamltx_dta_csfp_income_eligible.yamlis_ca_cvrp_increased_rebate_eligible.yamlintegration.yamlandks_dcf_csfp_categorically_eligible.yamltest_school_meal_countable_income.pyThe property file runs in the Rest Python
coregroup. In Rest shard 7 of CI run 43655281957, atc19c796174, each of the five properties took 0.6 to 1.1 seconds.Methodology choices
total_self_employment_income. USDA's notice lists "(2) net income from nonfarm self-employment" as one item, and the Manual's printed page 27 credits the self-employed "with net income rather than gross income."farm_rent_incomewithrental_incomeinschool_meal_net_rental_income, rather than with farm operations. USDA's notice lists "(6) net rental income" apart from "(3) net income from farm self-employment."farm_rent_incomeholds Form 4835 rent that a landowner receives from a farm they don't materially participate in. The Manual names no farm rent, so we treat it as rental income.estate_incomeas entered, so both variables keep their meaning.partnership_s_corp_incomecombines both.us:school-meal-state-ssi-supplementsrecords both readings with stateopen.school_meal_countable_incomeorschool_meal_fpg_rationo longer changes federal CSFP, Texas CSFP or CVRP results.*_before_lsrearnings inputs and singleton marital units in YAML to match the issue households and US Simulation's input normalization. Set school meal income separately in ancillary routing fixtures to check each program's own measure. Use Core's entity builder and canonical earnings for generated income checks.axiom: TheAxiomFoundation/rulespec-us#2293 queued (7 CFR 245.6(a)(5) and the income definition at 91 FR 17933; the corpus lacks 7 CFR part 245, that notice and the Eligibility Manual, so the signed encoder can't run yet)
🤖 Generated with Claude Code