Skip to content

Apply Rhode Island LIHEAP provider exclusions and FY2027 enhancement - #11053

Open
hua7450 wants to merge 9 commits into
PolicyEngine:mainfrom
hua7450:ri-liheap-utility-providers
Open

hua7450 wants to merge 9 commits into
PolicyEngine:mainfrom
hua7450:ri-liheap-utility-providers

Conversation

@hua7450

@hua7450 hua7450 commented Nov 16, 2026 •

Copy link
Copy Markdown
Collaborator

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 and UNSPECIFIED (the default). These are the state's three electric distribution companies, so the input has no OTHER choice.
  • ri_liheap_base_payment pays 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.
  • UNSPECIFIED is treated as a qualifying account, so a household that reports no company keeps its current result.
  • ri_liheap_base_payment drops its documentation attribute; 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:

Electric company Federal grant Enhancement Payment
Rhode Island Energy, or not reported $393 $350 $743
Block Island Utility District $393 $0 $393
Clear River Electric and Water District $393 $0 $393

Limitations

  • The model does not know which account receives the federal grant; it keeps its existing route (the primary fuel's account, or a separate electric account for heat in rent).
  • DHS has published no FY2027 base-grant matrix, so 2027 base grants reuse the FY2026 amounts and verified_years stays "2026".

Tests

  • payment/ri_liheap_base_payment.yaml Cases 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.yaml Case 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

@hua7450 hua7450 changed the title Apply Rhode Island LIHEAP utility-provider enhancement exclusions Apply Rhode Island LIHEAP provider exclusions and FY2027 enhancement Nov 17, 2026
hua7450 and others added 2 commits November 20, 2026 15:12
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

codecov Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Codecov Report

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

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     
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 and others added 3 commits November 20, 2026 15:26
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>
@hua7450
hua7450 marked this pull request as ready for review November 23, 2026 20:19

@PavelMakarchuk PavelMakarchuk left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#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

  1. The PR title is out of date. The title says "and FY2027 enhancement". The $400 FY2027 amount is already on main from #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-10 changes only a comment. A squash merge puts the title in the main history. 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.
  2. 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.
  3. The documentation attribute is removed. ri_liheap_base_payment.py loses its documentation text, and the notes move to code comments. API and app users see documentation, 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 merges main at b3edc0446b (the current tip), so it contains #11141. A merge with main is clean. GitHub reports MERGEABLE, BLOCKED (review needed).

  • Duplication with #11141. #11141 changed utility_enhancement.yaml, programs.yaml, a changelog fragment and ri_liheap_base_payment.yaml (Case 11, the $400 FY2027 amount). This PR keeps the values 2025-10-01: 350 and 2026-10-01: 400. It adds Cases 12-14 after Case 11 and rewrites the programs.yaml note, 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_grant selects the electric route: electric heat, or heat in rent with a separate electric bill. qualifying_provider is 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.py passes (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 --check and ruff check pass on the two changed Python files. The fragment changelog.d/ri-liheap-utility-providers.added.md is 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 main and do not change here.
  • Microsimulation impact. The default is UNSPECIFIED, so I expect no change. CI Microsimulation passes.

This branch has not been deployed

No deployments
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.

Implement Rhode Island LIHEAP enhancement exclusion for Block Island and Clear River electric accounts

2 participants