Repository navigation
Conversation
….L. 119-21 s.10103) California only, from a 2025-11-01 proxy date: the end of the federal 120-day QC variance exclusion named in CDSS ACL 25-68. California applies the change on completion of CalSAWS automation at certification and recertification, a date it has not published. always_standard is unchanged. Refs PolicyEngine#9374 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ACL 25-68 (PDF page 7) applies the SUAS change to applicants at initial certification, while ongoing households keep the SUA until their next recertification. The model has no certification date, so the parameter now says it approximates both an unpublished automation date and new certifications only, and applies the limitation to ongoing households earlier than it reaches them.
MaxGhenis
left a comment
There was a problem hiding this comment.
Agent review for Max, written by Claude Code for Max Ghenis.
At 299824d this draft should not merge as it stands: #10033, merged in October, generalized your change to every state, and this branch would now undo it outside California.
This is a read of your head, current main and a trial merge. The model was not run here. usda.gov blocked our request for the USDA memo, so nothing below relies on it.
What this PR adds
P1. Merging would switch off the federal rule in 14 other jurisdictions. The trial merge of snap_utility_allowance_type.py conflicts only in the reference tuple. The rest merges cleanly and keeps both gates. Main sets deemed_sua = always_sua & elderly_disabled. Your lines 75-77 run later and replace it with always_sua & (~hr1 | elderly_disabled), and hr1 is false outside California.
- Pennsylvania adult, age 40, no utility costs, January 2026. Main:
NONE, $0. Merged:SUA, $857. Main's test of this result (heat_and_eat/snap_utility_allowance_type.yaml:16) would fail. - Your New York case (
snap_utility_allowance_type_hr1.yaml:84) expectsSUAin January 2026. Main givesNONE.
P1. The November 2025 date starts three model months late. hr1_in_effect.yaml:5 starts on 2025-11-01, and is_snap_sua_hr1_in_effect.py:16-17 says each state sets its own date. P.L. 119-21 section 10103(a) states no later date, so it applies from enactment. ACL 25-68, PDF page 8 calls July 4, 2025 the implementation date. November 1 only ends the quality-control exclusion. Main uses 2025-07-04, so August is the first full month.
- California adult, age 40, no elderly or disabled member, no utility costs, August 2025. Expected:
NONE. This head:SUA.
This answers your date question: where a statute and agency practice conflict, this repository follows the statute (CLAUDE.md:141 on main). source_conflicts/candidates.yaml:1718 on main lists the conflict, still unreviewed, and names this PR. Your October 2025 cases (snap_utility_allowance_type_hr1.yaml:4 and :154) and the New York case need new expected values.
P2. A test describes Colorado as a non-deeming state. snap_utility_allowance_type_hr1.yaml:69-82 forces the flag to false, but always_standard.yaml:12-14 is true for Colorado from October 2024. Main's Texas case covers a real non-deeming state.
P2. Smaller items. hr1_in_effect.yaml:12-15 cites one PDF twice. The repository wants one entry per document. Five new files have the executable bit set. The guide asks for a test-plan checklist and an axiom: line. That line tracks each policy change in a second rules codebase. You can write axiom: needed, and a maintainer will follow up.
Also wrong on main
Main has these without this PR, and none is required of you.
P1. California counts an excluded elderly or disabled member. ACL 25-68, PDF page 6 says a member who is excluded or ineligible for CalFresh still qualifies the household for the SUAS payment, if it is otherwise eligible. Your line 76 and main both use has_snap_elderly_disabled_member, which drops such members (line 26).
- California, January 2026: adult, age 40, with $12,000 of wages and $9,600 of rent, an undocumented member, age 65, and no utility bills. Expected under the letter:
SUA, $663. Both giveNONE. (A run is reported, not rerun here.)
Main pins the opposite for Pennsylvania, reading 7 CFR 271.2, so a California exception needs a source-conflict entry and a maintainer's decision.
P2. California's FY 2027 amounts are missing. For October 2026, ACIN I-40-26, PDF pages 3-4 sets an SUA of $686, an LUA of $176 and a telephone allowance of $21. Main and this head carry $663, $170 and $20 (standard/main.yaml:112, limited/main.yaml:111 and single/phone.yaml:137 at this head).
P2. A water-only California household gets type IUA (snap_utility_allowance_type.py:82). Take an adult, age 40, whose only utility bill is water, in November 2026. The only single-utility allowance in that notice is for telephone or equivalent communication (page 4), so the type should be NONE. Both are worth $0.
Your point that ongoing households keep the SUA until recertification stands. Main has the same gap.
Next step
Two routes work. Close this in favor of #10033, or rebase onto main's formula, drop the new parameter, variable and their tests, and keep the California household cases with main's dates. CI has never run on this head: the September 25 run expired while waiting for a maintainer's approval.
On your maximum-allotment argument, the formulas support it. The contribution is zero only at zero net income, and the shelter deduction never falls as the allowance rises.
|
Thanks, Max, and thanks for the careful review. You're right: #10033 already applies the restriction in every state, so this branch would undo it outside California. I'm closing this in favor of #10033. On the items you found on main: next week I'd like to send a small PR with California's FY 2027 amounts from ACIN I-40-26, plus the water-only case if you agree it should be NONE. The excluded-member point needs a source-conflict entry and a maintainer's decision, so I'll open an issue for it with the ACL 25-68 page reference rather than change code. |
Refs #9374.
What this changes
P.L. 119-21 section 10103(a) (PDF page 13) amends 7 U.S.C. 2014(e)(6)(C)(iv)(I) so that receipt of energy assistance confers the Standard Utility Allowance only on households "with an elderly or disabled member". In California that route is the State Utility Assistance Subsidy, which PolicyEngine models through
always_standard[CA].This PR adds a gate,
is_snap_sua_hr1_in_effect, and conditions the deemed SUA leg ofsnap_utility_allowance_typeon it: once the change is in effect, a California household without an elderly or disabled member no longer receives the deemed SUA. An actual heating or cooling expense still qualifies on its own, andalways_standardis unchanged, since it records the state's option rather than who may use it.Scope
always_standardis true for 15 states, but SNAP: H.R. 1 restriction of the LIHEAP-triggered SUA to elderly or disabled households is not implemented for California #9374 only measured California, and each state sets its own implementation date. Other states return false, so their behaviour is unchanged. They can be added to the gate with their own parameter, as for the ABAWD gate, once their dates are sourced.always_standard.The date is a proxy, and it only approximates new certifications
ACL 25-68 (PDF page 7) ties California's implementation to completion of CalSAWS automation without naming a date, and it applies the change on two different clocks. New applicants get it at initial certification. Ongoing households keep the SUA until their next recertification: the same page says the county "must not remove an ongoing household's eligibility for SUA during the certification period based solely on the information that the household does not contain an elderly or disabled member", and that the new guidance "must be applied at the household's next recertification".
The one date the letter does name is November 1, 2025, the end of the federal 120-day QC variance exclusion for section 10103 (PDF page 8). The parameter uses 2025-11-01 as a labelled proxy for the automation date. That proxy approximates new certifications only. PolicyEngine has no input for when a household was certified or is due to recertify, so it cannot represent the recertification timing: from 2025-11-01 this PR applies the restriction to every California household, including ongoing households that in practice keep the SUA until they recertify. For those households the model will show the restriction earlier than it reaches them, by up to the length of their certification period. The parameter's description says so. With a monthly parameter, 2025-10-31 would give the same result from November 2025, so the choice of day is about the citation rather than the numbers. Happy to change it if you'd prefer another convention.
Tests
is_snap_sua_hr1_in_effect.yaml: false before 2025-11 and before enactment, true from 2025-11 in California, false for an unmodelled state.snap_utility_allowance_type_hr1.yaml: the deemed SUA before and after the date; kept with an elderly or disabled member; kept with an actual heating or cooling expense; fall-through to the LUA with two bills; non-deeming and unmodelled deeming states unchanged;always_standard[CA]unchanged; and three cases through a real household (age 65 vs 30), including the 663-dollar allowance.