Repository navigation
Conversation
…p-utility-providers
Replace the shared electricity and natural gas provider inputs with ri_liheap_electricity_provider, an enum in the Rhode Island LIHEAP folder that lists the state's three electric distribution companies. The enhancement exclusion for Block Island and Clear River accounts reads it. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #11053 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 1 2 +1
Lines 24 53 +29
=========================================
+ Hits 24 53 +29
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Conflicts: take main's utility_enhancement.yaml and Rhode Island registry note (PR 11141 already ships the $400 FY2027 enhancement); keep main's Case 11 and this branch's test cases after it. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…lusion - Keep main's utility enhancement values, references and registry note; change only the sentence and clause that describe the Block Island and Clear River electric exclusion. - Remove the `documentation` attribute from ri_liheap_base_payment and keep its still-true notes as formula comments; simplify the electric-grant route. - Cite the Division's November 12, 2026 position memo (Docket 26-34-GE) on ri_liheap_electricity_provider. - Tests: number the base-payment cases 12-14, drop a duplicate FY2027 case, use Clear River for the gas-heat row and fuel oil on Block Island, and add ri_liheap Case 18 for the final benefit on a Clear River account. - Changelog fragment is now `added`. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
PavelMakarchuk
left a comment
There was a problem hiding this comment.
#11053: Apply Rhode Island LIHEAP provider exclusions and FY2027 enhancement
Verdict: APPROVE (head 6f0449bfe6)
The head did not move during the review. The head commit is a merge of main, from 2026-11-23, 3:15pm EST.
Summary
The PR adds ri_liheap_electricity_provider (Rhode Island Energy, Block Island Utility District, Clear River Electric and Water District, UNSPECIFIED). ri_liheap_base_payment now pays no state utility enhancement when the regular grant goes to a Block Island or Clear River electric account. A grant to a gas account keeps the enhancement. UNSPECIFIED keeps the current result. The rule matches R.I. Gen. Laws 39-1-27.12(f) and the Division's November 12, 2026 memo. The PR does not change the FY2026 ($350) or FY2027 ($400) enhancement amounts, so it does not duplicate or conflict with #11141. Tests pass and CI is green.
Findings
CRITICAL
None.
SHOULD ADDRESS
None.
SUGGESTION
- The PR title is out of date. The title says "and FY2027 enhancement". The $400 FY2027 amount is already on
mainfrom #11141, which merged on 2026-11-20, 8:34pm EST. In this PR,policyengine_us/parameters/gov/states/ri/dhs/liheap/payment/utility_enhancement.yaml:7-10changes only a comment. A squash merge puts the title in themainhistory. Change the title to, for example, "Exclude Block Island and Clear River electric accounts from the Rhode Island LIHEAP enhancement". The changelog fragment is already correct. - A reference URL is not reachable by a script.
policyengine_us/variables/gov/states/ri/dhs/liheap/ri_liheap_electricity_provider.py:26(ripuc.ri.gov/utility-information/regulated-utilities) returns a bot-check page (403). The statute and the Division memo on the same variable already support the three choices. Optional: remove the URL, or keep it as is. - The
documentationattribute is removed.ri_liheap_base_payment.pyloses itsdocumentationtext, and the notes move to code comments. API and app users seedocumentation, but not comments. This is a style choice, and the formula comments are complete.
What I checked
-
Head and state. The head is
6f0449bfe6. It mergesmainatb3edc0446b(the current tip), so it contains #11141. A merge withmainis clean. GitHub reports MERGEABLE, BLOCKED (review needed). -
Duplication with #11141. #11141 changed
utility_enhancement.yaml,programs.yaml, a changelog fragment andri_liheap_base_payment.yaml(Case 11, the $400 FY2027 amount). This PR keeps the values2025-10-01: 350and2026-10-01: 400. It adds Cases 12-14 after Case 11 and rewrites theprograms.yamlnote, which keeps the $350/$400 text. No value is set twice. -
Statute. I fetched R.I. Gen. Laws 39-1-27.12. Subsection (e) credits the enhancement to the accounts of customers that receive federal LIHEAP payments. Subsection (f) defines "electric and natural gas distribution company" as "not including the Block Island Power Company or the Pascoag Utility District". This supports the exclusion.
-
Division memo, November 12, 2026 (PDF page 1). The memo says the charge applies only to Rhode Island Energy customers, and that the grants are "available only to eligible RIE customers". Rhode Island Energy is also the only gas distribution company. So the rule "a gas account always qualifies" is correct.
-
Other sources. I fetched PUC Order 25579 and the FFY2027 filing (Docket 26-34-GE, page 2). Both exclude Clear River (formerly Pascoag) and Block Island customers. The filing states the $350 FY2026 amount.
-
Formula,
ri_liheap_base_payment.py:84-111, line by line.utility_grant(gas or electric fuel, or heat in rent with a separate electric bill) is the same as before.electric_grantselects the electric route: electric heat, or heat in rent with a separate electric bill.qualifying_provideris false only for an electric route with an excluded company. The masks are vectorized and use the SPM unit and the YEAR period. UNSPECIFIED and Rhode Island Energy qualify. A direct heat-in-rent grant never gets the enhancement. -
Tests. At the head, the Rhode Island LIHEAP folder passes (79 tests). On
main, it passes (75 tests).test_aggregate_list_integrity.pypasses (38). -
Hand-computed cases (2027, one person, band 1):
- Electric heat, Clear River: $393 (FY2026 row A, no enhancement).
- Gas heat, Block Island electric: $232 + $400 = $632.
- Heat in rent, fuel oil, no electric bill, Block Island: $400 (row G direct grant; no enhancement, so not $800).
- Electric heat, Block Island, no bill reported: $393.
- Heat in rent, gas, no electric bill, Clear River: $400 (row G).
All five results match.
-
Format and changelog.
ruff format --checkandruff checkpass on the two changed Python files. The fragmentchangelog.d/ri-liheap-utility-providers.added.mdis top level and the type is valid. -
CI. All 42 checks pass, including codecov patch and project.
-
Overlap. Open PR #11235 (Hawaii LIHEAP) also changes
programs.yaml. A test merge shows no conflict. -
Partner tests. No file under
tests/policy/baseline/partners/changes.
Not verified
- The PUC regulated-utilities page (bot check).
- The DHS response to data request 1-1 (the $400 source). This PR does not change that value, and #11141 already reviewed it.
- The FY2026 grant matrix cells ($393, $232, rows G to I). They are on
mainand do not change here. - Microsimulation impact. The default is UNSPECIFIED, so I expect no change. CI Microsimulation passes.
Rhode Island adds a utility enhancement to a regular heating grant credited to a gas or electric distribution-company account. R.I. Gen. Laws 39-1-27.12(f) leaves two electric companies out of that definition: "not including the Block Island Power Company or the Pascoag Utility District" (now Block Island Utility District and Clear River Electric and Water District). This PR adds an input for the household's electric company and pays no enhancement when the regular grant goes to one of those two electric accounts. The household keeps its federal grant.
Fixes #11223
Changes
ri_liheap_electricity_provider: Rhode Island Energy, Block Island Utility District, Clear River Electric and Water District andUNSPECIFIED(the default). These are the state's three electric distribution companies, so the input has noOTHERchoice.ri_liheap_base_paymentpays no enhancement when the regular grant reaches a Block Island or Clear River electric account. That covers electric heat and a heat-in-rent grant sent to a separate electric account. A grant on a gas account keeps the enhancement whatever the electric company.UNSPECIFIEDis treated as a qualifying account, so a household that reports no company keeps its current result.ri_liheap_base_paymentdrops itsdocumentationattribute; the same notes are comments in the formula.The enhancement amounts ($350 for FY2026, $400 for FY2027) are on main already (PR #11141) and do not change here.
Example
One person in income band 1 with electric heat in 2026:
Limitations
verified_yearsstays"2026".Tests
payment/ri_liheap_base_payment.yamlCases 12-14: each company on the electric-heat route, a gas-account grant with an excluded electric company, the heat-in-rent route with and without an excluded company, and the FY2027 amount on the heat-in-rent route.ri_liheap.yamlCase 18: the final benefit for an electric-heat household on a Clear River account ($393).The cases were not run locally after these changes; CI runs them.
Sources
axiom: needed
🤖 Generated with Claude Code