Skip to content

Name the Basic Health Program and fix the explanations' wording - #45

Merged
PavelMakarchuk merged 3 commits into
mainfrom
bhp-note-wording
Nov 25, 2026
Merged

PavelMakarchuk merged 3 commits into
mainfrom
bhp-note-wording

Conversation

@DTrim99

@DTrim99 DTrim99 commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Since Pavel's review (b784359):

  • Should address 1 (the charts). The note shows on every tab, so it now says which part shows what: "These results don't include MinnesotaCare yet: at those incomes, the "Your household" cards show what a Marketplace plan would cost, and the charts show $0."
  • Should address 2 (New York). The limit reads "200% FPL (250% FPL until June 30, 2026)", in the note, the code comment and the changelog fragment. policyengine-us's expanded_income_limit_states.yaml gives the same date (CMS approved ending the section 1332 waiver from July 1, 2026), and keeps 250% for all of 2026 only because the variable is annual.
  • Suggestion 1 (the reason for no credit). Above 100% FPL, where a state with a program has no plan priced for the members left, the explanation names the program: "In 2027, at 187% FPL, MinnesotaCare would cover you, so the model gives no credit." Under H.R. 1834 it adds "H.R. 1834 wouldn't change this."
  • Suggestion 2 (lawfully present immigrants below 138% FPL) is left out, as the review allows. The calculator doesn't ask about immigration status.

Why

Max's review of #37 after the merge (details) found that in Minnesota, New York, Oregon and DC, the "Your household" cards show a Marketplace premium to adults their state's Basic Health Program covers. Those adults can't enroll in a Marketplace plan up to the program's income limit (42 U.S.C. 18051(e)). He asked for a note pointing people to the program until the cards are fixed.

This PR is that note, plus the review's wording items. It changes only the frontend, so it needs no API deploy. A second PR will report Basic Health Program coverage from the API and fix the cards.

What

  • Basic Health Program note. For a household in DC, Minnesota, New York or Oregon, the results show the state's program under the tabs, with a link to it.
    • The programs are the Healthy DC Plan, MinnesotaCare, the Essential Plan and OHP Bridge.
    • The text says the program covers adults aged 19 to 64 with incomes above Medicaid's limit and up to 200% FPL (New York: 250% until June 30, 2026). It says people it covers can't enroll in a Marketplace plan or get a premium tax credit. It also says these results don't include it yet: the "Your household" cards show a Marketplace plan's cost, and the charts show $0.
    • The limits are policyengine-us 2.138.2's (gov.hhs.basic_health_program). DC's October 2025 overview gives the same range: over 138% FPL to 200%, under age 65.
    • The links are the program pages the model's parameters cite. Minnesota's now redirects to mn.gov/dhs/health-care/minnesotacare, which this PR links directly.
  • Work requirement. Following Pavel's suggestion 4, the text says the requirement applies to "most adults in the expansion group, aged 19 to 64". Following Max, it adds "The 2027 estimate assumes no qualifying activity beyond these earnings and no exemption." Max's version ("assumes you fall short…") is reworded so that it reads correctly when the members named include a spouse.
  • Explanation in a program state. Where the model gives no credit because the program covers the household, the explanation names the program instead of saying the benchmark plan costs less than the household's share of income.
  • Years. The three explanations that named no year now do: "At this income in 2027, …", "In 2027, at 98% FPL, …" and "In 2027, at 187% FPL, …". Beside a 2026 card with a credit, they no longer read as describing 2026.
  • Changelog. Update the calculator for 2027: compare 2026 and 2027 current law with H.R. 1834 in the API, calculator and Overview #37's aca-2027-overview.fixed.md no longer credits an Idaho fix to the AI explanation, which Update the calculator for 2027: compare 2026 and 2027 current law with H.R. 1834 in the API, calculator and Overview #37 removed. The calculator's text gets Idaho from medicaidExpansion.js, and the fragment's later sentence already covers that.
  • changelog.d/bhp-note-wording.fixed.md.

Checks

bun run build passes. In Chrome at b784359, against the production API (X-ACA-API-Commit 012dac4), with households opened by link on the "Your household" tab:

Household (age 40) Note 2026 card 2027 card Explanation
Hennepin County, MN, $30,000 MinnesotaCare, link to mn.gov $442 full premium $527 full premium "In 2027, at 187% FPL, MinnesotaCare would cover you, so the model gives no credit."
New York County, NY, $35,000 the Essential Plan, "200% FPL (250% FPL until June 30, 2026)" $867 full premium $219 after credit names 2027 and 2026 already
Multnomah County, OR, $30,000 OHP Bridge $509 $608 "In 2027, at 187% FPL, OHP Bridge would cover you, …"
DC, $30,000 the Healthy DC Plan $610 $678 "In 2027, at 187% FPL, the Healthy DC Plan would cover you, …"
Lebanon County, PA, $5,000 none Medicaid $1,094 full premium expansion-group work requirement text, with the assumption sentence
Harris County, TX, $15,800 none $28 after credit $770 full premium "In 2027, at 98% FPL, you fall into the coverage gap…"

The console shows no errors.

🤖 Generated with Claude Code

Max's post-merge review of #37: in Minnesota, New York, Oregon and DC the
cards show a Marketplace premium to adults their Basic Health Program
covers. Until the API reports that coverage, the results name each
state's program, its income limit as policyengine-us 2.138.2 models it,
and a link to it.

- The work requirement explanation says it applies to the expansion
  group (Pavel's suggestion 4) and that the estimate assumes no
  exemption (Max's wording).
- The three explanations without a year now name it, so they don't read
  as describing a 2026 card that shows a credit.
- #37's changelog fragment no longer credits an Idaho fix to the AI
  explanation it removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
aca-calc Ready Ready Preview Nov 25, 2026 8:05pm UTC

Request Review

@DTrim99
DTrim99 requested a review from MaxGhenis November 24, 2026 19:00
DTrim99 added a commit that referenced this pull request Nov 25, 2026
…note

From Max's review of #46:

- The smoke-test steps pass --no-config, so uv skips .python-version's 3.11,
  which it won't download under only-system on a runner that lacks it.
- A cent below 400% FPL keeps the credit where the model's float32 income
  reads it as exactly at the limit.
- Answers without basic_health_program (a stale cache or a rolled-back API)
  keep #45's note in states with a Basic Health Program.
- #45's changelog fragment drops the sentence #46 makes untrue.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@PavelMakarchuk PavelMakarchuk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Review at 4bdb4d1

The PR adds a Basic Health Program note for DC, Minnesota, New York and Oregon, and it fixes the wording items from the post-merge review of #37. The four states, the program names and the 200% FPL limits are correct, and DC does run a federally approved BHP. Two sentences in the note are not correct: one is wrong on the chart tabs, and one is wrong for New York after June 30, 2026.

Verdict: REQUEST_CHANGES

Should address

  1. The note says the results show a Marketplace price, but the charts show $0 at those incomes. src/components/CalculatorResults.jsx:102-103 says "at those incomes they show what a Marketplace plan would cost". The note renders above all three tabs (:348). On the "What you'd pay" tab, PremiumChart.jsx:96 plots slcsp_by_income − ptc_baseline. The API returns slcsp_by_income = 0 for a BHP-eligible adult, so the chart plots $0 a month.
    • Failure case: a single adult, age 40, Hennepin County, MN, 2027. At $25,000 and $30,000 (156% and 187% FPL), the API returns a benchmark of $0 and a credit of $0, so the chart shows $0/month. At $35,000 (219% FPL) it shows a benchmark of $527 and a payment of $308. Oregon (Multnomah), DC and New York (New York County) give the same result. In New York in 2026 the chart shows $0 up to $38,000 (243% FPL).
    • Expected: the sentence is true on every tab where it shows. Actual: it is true only on the "Your household" cards, which price a plan through full_premium.
    • Fix: show the sentence only on the "Your household" tab. Or change it, for example: "These results don't include MinnesotaCare yet. At those incomes the 'Your household' cards show what a Marketplace plan would cost, and the charts show $0."
  2. New York's 250% FPL limit stopped on July 1, 2026. src/components/CalculatorResults.jsx:84 says "200% FPL, or 250% FPL in 2026". CMS approved the termination of New York's section 1332 waiver effective July 1, 2026. From that date, adults from 200% to 250% FPL lost the Essential Plan and moved to Marketplace plans. policyengine-us keeps 250% for all of 2026 only because its eligibility variable is annual (expanded_income_limit_states.yaml says this). The note states it as a fact about the program, so a reader at 230% FPL reads that they can't enroll in a Marketplace plan in 2026. That is wrong for July to December 2026. The changelog fragment has the same text.
    • Fix: "200% FPL (250% FPL until June 30, 2026)". If you want the note to match the cards, add that the 2026 results use 250% for the full year.

Suggestions

  1. The explanation below the note still gives the wrong reason in BHP states. src/components/CalculatorResults.jsx:253-254 now reads "In 2027, at 187% FPL, the benchmark plan costs less than the share of income current law asks your household to pay, so it receives no credit." For the Hennepin adult at $30,000, the benchmark is $527 a month, which is more than that share. The adult gets no credit because MinnesotaCare covers them. The note above it gives the correct reason, so the two texts contradict each other. #46 removes this case. If #45 ships alone for some time, you can skip this sentence when BASIC_HEALTH_PROGRAMS[state] is set and the income is at or below the limit.
  2. The note says "adults aged 19 to 64 with incomes above Medicaid's limit". The program also covers lawfully present adults below 138% FPL whom Medicaid excludes by immigration status (42 U.S.C. 18051(e)(1)(B)(ii)). The model has this case. This detail is optional for a short note.

What I checked

  • Max's items that the PR claims to fix.
    • Basic Health Program note: added for DC, MN, NY and OR, the four states in gov.hhs.basic_health_program.eligibility.active_states for 2026. See Should address 1 and 2.
    • Work requirement: the text now says "most adults in the expansion group, aged 19 to 64" (suggestion 4 on #37). It adds "The {year} estimate assumes no qualifying activity beyond these earnings and no exemption." This is Max's point, reworded so that it also reads correctly for a spouse. Fixed.
    • Years: the three explanations that Max linked now name the year: "At this income in {year}" (:170), "In {year}, at {fpl}% FPL" (:219 and :253). The other two branches already named it. Fixed.
    • Changelog: aca-2027-overview.fixed.md no longer gives the Idaho fix to the removed AI explanation. Fixed. The new fragment changelog.d/bhp-note-wording.fixed.md is at the top level with a valid type.
    • The PR does not claim the other items (the card wording, the chart in the Texas example, $0 earnings, FPL rounding, float32, the build check). #46 covers them.
  • Limits against the sources.
    • Minnesota, MinnesotaCare: 200% FPL. Correct.
    • Oregon, OHP Bridge: 138% to 200% FPL, ages 19 to 64. Correct.
    • DC, Healthy DC Plan: the HBX overview of October 2025 says CMS approved DC's BHP under ACA section 1331 in September 2025. It covers residents under 65 from over 138% FPL to 200% FPL, from January 1, 2026. DC's adult Medicaid limit dropped to 138% FPL on that date. So DC does run a BHP, and 200% is correct.
    • New York, Essential Plan: 250% FPL under the 1332 waiver from April 2024 to June 30, 2026, then 200% FPL under section 1331 (CMS termination approval letter; NY DOH press release of March 23, 2026). See Should address 2.
    • The note agrees with policyengine-us 2.138.2's parameters (income floor 133% plus the 5% disregard, limit 200%, NY 250% in 2025 and 2026, ages 19 to 64).
  • API values. I ran the PR's /api/calculate code on policyengine-us 2.138.2 for a single adult, age 40, in each of the four states, for 2026 and 2027. All four states return a benchmark of $0 and a credit of $0 from 138% to 200% FPL (NY 2026: to 250%). This is the source of Should address 1.
  • Links. The MinnesotaCare page and the DC PDF return HTTP 200. The NY State of Health and Oregon pages refuse automated requests (403 and 401). These are the pages the model's parameters cite.
  • Build and tests. bun run build passes: the data check passes (policyengine-us 2.138.2, 2027, 4 examples), and Next.js 16.2.6 compiles. The repo has no JS tests or lint script. The PR changes no Python, so I did not run pytest again.
  • CI and merge state. Vercel passed (Nov 24, 2026, 1:48pm EST). GitHub reports the PR as mergeable and clean against main. Open PR #41 also changes CalculatorResults.jsx and aca-2027-overview.fixed.md, but it already conflicts with main, so this PR does not cause new work there. #46 is stacked on this PR and removes the note.

From Pavel's review of #45:

- The note says the "Your household" cards show a Marketplace plan's cost
  and the charts show $0, since the note shows on every tab.
- New York's 250% FPL limit ended on June 30, 2026, when its section 1332
  waiver did.
- Where a state with a Basic Health Program has no plan priced above 100%
  FPL, the explanation names the program as the reason for no credit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The explanation named the state's Basic Health Program whenever the model
priced no plan above 100% FPL. The model also prices no plan for members
aged 65 or older, whom Medicare rules out of the credit, so a 66-year-old
in Minnesota at 313% FPL read that MinnesotaCare would cover them. Those
members now read that Medicare rules out the credit, in every state.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@PavelMakarchuk

Copy link
Copy Markdown
Contributor

I pushed a9bd288 to finish this PR while David is out.

b784359 fixed both items from my review. It also added the explanation branch that names the Basic Health Program when the model prices no plan above 100% FPL. The model also prices no plan for members aged 65 or older, because Medicare rules out the credit. So a single adult aged 66 in Hennepin County, MN, at $50,000 in 2027 read "MinnesotaCare would cover you".

a9bd288 changes two things in CalculatorResults.jsx:

  • When every member without coverage is aged 65 or older and the model prices no plan, the explanation says that Medicare rules out the credit (26 U.S.C. 36B(c)(2)(B)). This also fixes the same households in states without a Basic Health Program, which got "the benchmark plan costs less than the share of income".
  • The program branch runs only when every member without coverage is aged 19 to 64.

The changelog fragment has one more sentence for this. bun run build passes, with the data check. I checked the text for a single adult aged 66 and a couple aged 66 and 66 in MN, a single adult aged 66 in TX, and a single adult aged 40 at $25,000 in MN, with real API answers.

@PavelMakarchuk PavelMakarchuk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Review at a9bd288

Verdict: APPROVE

b784359 fixed both Should address items from my review: the note now says only the "Your household" cards show a Marketplace price and the charts show $0, and New York's limit reads "200% FPL (250% FPL until June 30, 2026)". a9bd288 (see the comment above) limits the program explanation to members aged 19 to 64 and tells members aged 65 or older that Medicare rules out the credit. bun run build passes, with the data check, and Vercel passes.

@PavelMakarchuk
PavelMakarchuk merged commit c466187 into main Nov 25, 2026
2 checks passed
PavelMakarchuk added a commit that referenced this pull request Nov 25, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PavelMakarchuk added a commit that referenced this pull request Nov 25, 2026
…smaller items (#46)

* Name the Basic Health Program and fix the explanations' wording

Max's post-merge review of #37: in Minnesota, New York, Oregon and DC the
cards show a Marketplace premium to adults their Basic Health Program
covers. Until the API reports that coverage, the results name each
state's program, its income limit as policyengine-us 2.138.2 models it,
and a link to it.

- The work requirement explanation says it applies to the expansion
  group (Pavel's suggestion 4) and that the estimate assumes no
  exemption (Max's wording).
- The three explanations without a year now name it, so they don't read
  as describing a 2026 card that shows a credit.
- #37's changelog fragment no longer credits an Idaho fix to the AI
  explanation it removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Show Basic Health Program coverage on the cards and fix the review's smaller items

Max's post-merge review of #37. policyengine-us 2.138.2 models the Basic
Health Program (is_basic_health_program_eligible) and already gives its
enrollees no credit, but the API didn't report it, so the cards priced a
Marketplace plan those adults can't buy (42 U.S.C. 18051(e)).

API:
- PersonCoverage gains basic_health_program; full_premium prices only
  members no program covers.
- The 400% FPL check and the reported magi use the earnings as asked:
  float32 read $0.01 over the limit as exactly at it.
- ANSWER_VERSION 3, so the caches drop the old answers.

Page:
- Cards and explanations name the program ("MinnesotaCare", "Covers you";
  Max's wording), with a link; #45's interim note goes.
- $0 of earnings gets cards.
- The payment chart breaks where the model prices no plan; its credit is
  the rounded premium less the rounded payment, as on the cards; its % FPL
  rounds down as the cards' does (fpl.js).

Also: check_data compares each example's benchmark and credit, not only
the payment, and requires every Overview household; Pavel's suggestions 1,
3 and 5 (policyengine-us and core locked at the image's versions on
Python 3.11, a Methodology note on the $1 rounding differences, the
exploratory test marked xfail).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Fix the deploy's smoke tests, a cent below 400% FPL and the fallback note

From Max's review of #46:

- The smoke-test steps pass --no-config, so uv skips .python-version's 3.11,
  which it won't download under only-system on a runner that lacks it.
- A cent below 400% FPL keeps the credit where the model's float32 income
  reads it as exactly at the limit.
- Answers without basic_health_program (a stale cache or a rolled-back API)
  keep #45's note in states with a Basic Health Program.
- #45's changelog fragment drops the sentence #46 makes untrue.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Correct the note's charts sentence and New York's limit

From Pavel's review of #45:

- The note says the "Your household" cards show a Marketplace plan's cost
  and the charts show $0, since the note shows on every tab.
- New York's 250% FPL limit ended on June 30, 2026, when its section 1332
  waiver did.
- Where a state with a Basic Health Program has no plan priced above 100%
  FPL, the explanation names the program as the reason for no credit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Say New York's 2026 card applies the Essential Plan's 250% limit all year

New York's Essential Plan limit fell from 250% to 200% FPL on July 1, 2026,
when its section 1332 waiver ended, but the model's eligibility is annual.
Where the 2026 card has the program and the 2027 card none, the explanation
says so and that from July those members could enroll in a Marketplace plan.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Name the Basic Health Program only for members aged 19 to 64

The explanation named the state's Basic Health Program whenever the model
priced no plan above 100% FPL. The model also prices no plan for members
aged 65 or older, whom Medicare rules out of the credit, so a 66-year-old
in Minnesota at 313% FPL read that MinnesotaCare would cover them. Those
members now read that Medicare rules out the credit, in every state.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: David Trimmer <178813244+DTrim99@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: PavelMakarchuk <pavel.ma99@gmail.com>

This branch was successfully deployed

1 active deployment
Preview — a9bd288a Deployed Nov 25, 2026 by vercel[bot]
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.

2 participants