Skip to content

Glide the Medicare Part B premium and spending per enrollee upraters to the Trustees' long-range rates - #10657

Merged
MaxGhenis merged 5 commits into
mainfrom
medicare-long-range-glide
Dec 1, 2026
Merged

MaxGhenis merged 5 commits into
mainfrom
medicare-long-range-glide

Conversation

@MaxGhenis

@MaxGhenis MaxGhenis commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

The Medicare Part B premium and Medicare spending per enrollee upraters now glide to the 2026 Medicare Trustees' long-range rates through #10119's long_range_growth=. On main, each repeats a single projected year's growth through 2100.

Main includes #10111's Part D premiums per enrollee series, which #10656 also covers. Its long-range glide remains follow-up work.

Changes

  • calibration.gov.hhs.cms.medicare_part_b_premium_per_enrollee glides after 2035 from its 2034–2035 growth of 6.529% to MEDICARE_PART_B_PER_ENROLLEE_LONG_RANGE_GROWTH. The Secretary of Health and Human Services sets the standard premium to cover about 25 percent of average expenditures for beneficiaries aged 65 and over (42 U.S.C. 1395r(a); 2026 Medicare Trustees Report, file page 97). So the premium grows with Part B spending per enrollee.
  • calibration.gov.hhs.medicare.per_capita_cost keeps growth_years=(2031, 2032) and glides after 2034 from that 5.428% rate to MEDICARE_PER_ENROLLEE_LONG_RANGE_GROWTH.
  • long_range_growth_rate rejects non-finite rates and rates at or below −1. Before updating the parameter, extend_parameter_values rejects nonconsecutive measurement years, a pair ending after the last projected year, and a zero starting value, which used to raise ZeroDivisionError. MappingProxyType keeps the knots immutable. No current caller trips a check, so no value moves.
  • The per capita comment quotes the Trustees' expectation that "the drivers of health spending will be similar for the overall health sector and for the Medicare program" (file page 176). Each glide places its measured starting rate at the last published projection. Medicare spending places its 2031–2032 rate at 2034, one year before the Part B series places its 2034–2035 rate at 2035.
  • YAML comments, the SPM methodology page and the tests that asserted the constant rule describe the glide.
  • Tests: the 2036 medicare_cost.yaml case now expects $33,385.41 gross and $29,752.61 net, since spending growth glides from 5.428% toward 3.6962% in 2050 instead of holding constant. New cases cover reported Part B premiums uprated per person, QMB cost sharing at 20% of one twelfth of each year's spending, the 2050 net cost floor with main's weighted Part D deduction ($59,992.62 net), and the modeled standard Part B premium of $751.30 a month in 2050 and $4,612.50 in 2100 and 2101.
Series 2050 2100 2050 at the constant rate 2100 at the constant rate
Part B monthly uprating index before rounding $751.26 $4,612.46 $931.18 $21,998.04
Medicare spending per enrollee $60,994.64 $365,393.86 $70,189 $986,356

The Part B premium keeps every value through 2035 and Medicare spending per enrollee every value through 2034. Years after 2100 hold the new 2100 value.

Readers

medicare_part_b_premiums_reported uses the Part B index to uprate supplied annual amounts. On main, #10103 also uses it for the modeled Part B base premium and income-related adjustments. After monthly rounding, the glide lowers the standard premium from $931.20 to $751.30 in 2050 and from $21,998.00 to $4,612.50 in 2100. Before #10103 merged, a trial merge of its head 7cc881c with this branch conflicted in two hunks in uprating_extensions.py and in medicare_part_b_premium.yaml. With main merged in, this branch keeps all 22 Part B premium YAML cases, and all 165 premium projection tests and all 22 premium YAML cases pass. medicare_gross_cost, medicare_cost and qmb_cost_sharing read the spending series.

Open PRs that change the same files: #10126 and #10726 (medicare_cost.yaml and test_medicare_per_capita_cost.py), #10123 and #10126 (qmb_cost_sharing.yaml), and #10127, #10327 and #11294 (uprating_extensions.py).

Long-run microsimulation

We age Microcosm's 2024 dataset a year at a time to 2050 and 2100 and estimate these nominal totals. The table records the historical comparison of main at 67d4dde with this branch at 189dde2, before it merged main:

Total 2050 at 67d4dde 2050 at 189dde2 2100 at 67d4dde 2100 at 189dde2
Medicare spending (medicare_gross_cost) $4.33T $3.76T $60.90T $22.56T
Medicare Savings Program costs (msp_cost) $28.9B $25.9B $225.8B $86.0B
CBO household income $56.64T $56.07T $400.73T $362.39T
Household net income $39.13T $39.13T $231.98T $231.98T

The table's dollar changes refer to that comparison. On main, gross Medicare cost follows the spending series and enters CBO household income. Net Medicare cost subtracts Part A, gross Part B, the weighted average Part D premium and individual Part D IRMAA, then applies a zero floor. With other inputs fixed and the floor inactive, its change equals the gross spending change minus the modeled Part B premium change. Medicare Savings Program costs can respond to both the spending glide, through QMB cost sharing, and the Part B glide, through premium coverage. healthcare_benefit_value and household_net_income_including_health_benefits include MSP costs. The default household net income measure excludes direct health-benefit terms.

The reported-premium uprater applies when medicare_part_b_premiums_reported is supplied. The modeled Part B premium uses the same index independently.

#10119's review items

Numbers refer to the hand-off table and the round-1 review.

Item Change
Hand-off 1, P3-3: each series starts its glide at its own last projected year The knot comment says so.
Hand-off 2: file page 176 supports the per capita rate more closely than 177 The per capita comment quotes page 176.
Hand-off 3, P3-4: the extend_parameter_values docstring #10119's last commit fixed the summary on main, and the argument docs now give the growth_years limits.
Hand-off 4, P3-5: the V.B5 tolerance comment counts two roundings The comment counts one: Table V.B3 gives enrollment in thousands.
Hand-off 5, P3-1: no test combines growth_years= with long_range_growth= test_growth_years_set_the_rate_the_glide_starts_from and test_growth_years_extension_matches_an_independent_implementation.
Hand-off 6: unchecked rates and mutable knots The tests cover invalid growth rates, immutable knots, the measurement-year limits, and a zero starting value.
Hand-off 7: the II.D1 tolerance comment credits rounding for Part D's gap The comment now says the knots apply 2051–2100's demographic mix of −0.1 to 2036–2050, where Table II.D1 gives Part D −0.2.

P3-2 and P3-6 asked for edits to #10119's PR body.

Invariants

tests/core/test_long_range_health_growth.py checks these with Hypothesis and an independent np.interp/np.prod implementation:

  1. A knot year's rate equals that knot's rate.
  2. Every rate lies between the two knots around it, and the last knot's rate holds after it.
  3. The value in year y equals the last projected value times the product of (1 + rate), for synthetic series and every wired series, with and without growth_years.
  4. Raising any knot never lowers any extended value, and scaling the projected values by c scales every extended value by c.
  5. Projected years keep their values, and years after 2100 hold the 2100 value.
  6. With growth_years, the glide starts from the measured rate at the last projected year, whatever the growth after the measured pair.
  7. Every series that set_all_uprating_parameters glides appears in WIRED_SERIES.
  8. long_range_growth_rate rejects non-finite rates and rates at or below −1. Before updating the parameter, extend_parameter_values rejects nonconsecutive measurement years, a pair ending after the last projected year, and a zero starting value. MappingProxyType keeps the knots immutable.

Plan

axiom: n/a: uprating extension of calibration series only (no policy rule)

🤖 Generated with Claude Code

MaxGhenis and others added 2 commits November 7, 2026 13:22
The Secretary of Health and Human Services sets the Part B standard
premium to cover about 25 percent of average expenditures for
beneficiaries aged 65 and over (42 U.S.C. 1395r(a); 2026 Medicare
Trustees Report, file page 97), so the premium uprater glides from its
2034-2035 growth to the Trustees' long-range growth in Part B spending
per enrollee. CMS Medicare spending per enrollee keeps its 2031-2032
growth rate, which skips the end of sequestration in 2033, and glides
from 2034 to the Trustees' long-range growth in Medicare spending per
enrollee.

Tests check growth_years with long_range_growth in closed form and
against an independent implementation, start the Trustees-consistency
test from the 2034 anchor, compare the Part B premium with Table II.D1,
and scan set_all_uprating_parameters so every glided series appears in
WIRED_SERIES.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
long_range_growth_rate rejects NaN, infinite and at-or-below -1 rates,
extend_parameter_values rejects growth_years other than consecutive years
ending by the last projected year, and MappingProxyType keeps importers
from changing the knots. The per capita comment now quotes the Trustees'
file page 176 reason for applying that rate to non-Medicare series.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MaxGhenis and others added 3 commits November 30, 2026 11:39
docs-quarto/methodology/spm-poverty.qmd: Keep the Part B premium glide and Philadelphia wage-tax uprating.

Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Reject zero starting values in the growth measurement. Update the 2036 cost expectations for the spending glide and cover the projections through the modeled and reported premiums, Medicare cost, and QMB cost sharing.

Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
The merge dropped the explicit import, and the annotations then depended
on a name exported by policyengine-core. The comment on the glide's start
also says which growth rate each series uses.

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

Copy link
Copy Markdown
Contributor Author

Agent-written for Max, by Claude Code for Max Ghenis.

Review records for this PR, restated here so each stays on the page.

  • Round 1 of independent review: a Codex cloud task (GPT-6.2 Sol) reviewed 189dde2 and requested changes.
  • A fix commit answered it, and main was merged in.
  • Round 2, scoped to the fix: a Codex cloud task (GPT-6.2 Sol) reviewed e8724f4 and approved.
  • c84b234 then changed only a type import and comment wording.
  • Round 3, scoped: an independent Claude Opus 5.5 review of c84b234 approved. It found all four round 1 findings closed and every new expectation matching a hand trace. Two P3 nits remain: one test row cannot detect the floor, and the description's microsimulation section predates the latest changes.
  • The hub read the diff at c84b234: the change extends the existing Trustees glide to the Part B premium and Medicare spending per enrollee series and adds input checks to the glide helper.
  • All 35 checks passed at c84b234. Merged by admin because only the required review blocked it.

@MaxGhenis
MaxGhenis merged commit 34447c9 into main Dec 1, 2026
35 checks passed
@MaxGhenis
MaxGhenis deleted the medicare-long-range-glide branch December 1, 2026 04:42
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.

1 participant