Skip to content

MSSP ACO Explorer

Problem

Medicare's Shared Savings Program publishes a results file every year: one row for each ACO, up to 200 columns. Most of what an ACO would want to know is in there. Who leads? Who is a fair comparison? What would catching up be worth, after the program's payment rules take their share?

The usual answer is a benchmark report. It compares you with a group nobody defined, calls you red or green, and stops before the money. I wanted a tool that lets you pick the peers, shows where you rank, prices the gap in net savings to the ACO, and says when the answer isn't trustworthy.

Data

All of it is CMS public, aggregate files. There is no PHI, and nothing beneficiary-level.

  • 14 results files, PY2013 to PY2025, about 5,900 ACO-years. PY2019 has two overlapping files that are never added together.
  • The ID crosswalk and the ACO roster. The roster lists people's names and contact details, so the pipeline drops those columns from everything it publishes.

The files are harder than they look. Savings rate is a percent in some years and a fraction in others. Quality score flips too. A blank, a dash, an asterisk and "P4R" mean different things. So units are declared per file instead of guessed from the values, every missing value keeps its reason, and each file is pinned by hash, because CMS reissues them.

Architecture

  • Pipeline. Python with polars. It downloads, verifies, parses, checks and writes clean Parquet and JSON, which are committed. The app has no database.
  • Payment engine. A pure TypeScript package with no framework in it. Given a benchmark, spend, track and quality result, it returns what the ACO keeps and which rule decided it. It replays 1,883 published ACO-years and matches CMS on 1,877 of them within 0.5% or $100. The other six are named in the test.
  • Statistics. statsmodels, with errors grouped by ACO, PY2025 held out, and results written to a file that the app reads. A test refits the models and fails if the file is stale.
  • App. Next.js. A test fails if a published payment and the engine disagree where they shouldn't.

Decisions

Risk scores are for cost, so they had to earn their way into utilization. My first version adjusted admissions and SNF use with HCC scores, because they correlated. That isn't good enough: HCC predicts cost, coding raises it, and admissions create the diagnoses that feed next year's score. I threw that out and wrote the rules first. A model has to beat the mean on ACOs it never saw, travel to a later year, be calibrated, be fair to ACOs serving more dual-eligible or older people, and, for the risk score, move with sickness and not only with coding.

The risk score earned a place in none of the five use measures. ED visits can be adjusted for who the ACO serves; the rest are shown as published. Every failure is on the case mix page.

Fair peers instead of a black box. You can compare an ACO with similar contracts, or with the 30 ACOs whose people are most alike on age, sex, disability, dual status and nursing-home share. If the answers disagree, the page says so. 42 of 472 ACOs in PY2025 have no fair match, so they get none.

Local context, kept out of the score. Some of a gap may belong to the area an ACO works in. With rules set first, I tested whether the rate for everyone in Original Medicare in its counties says anything beyond who the ACO serves. All five measures passed. But an ACO's own people are a median 14% of its counties, so I added three stricter checks after that run, and two measures failed: ED visits at 0.736 and total spend at 0.749 of the slope that had to survive, where 0.75 was needed. Those two stay off the page. The other three sit beside the ACO's own rate. Nothing is adjusted, and no share of a gap is put down to the area.

Net savings, not gross. Two million dollars of avoided spend is not two million dollars. The sharing rate, minimum savings rate, quality standard, caps and sequestration all apply, so every number runs through the engine. The upside on the front page is the smaller of two estimates, on purpose, next to a reality check that lets the benchmark fall when use does, as benchmarks tend to. For the median ACO that takes $3.7M down to $1.5M.

Test the assumption everything rests on. The upside takes 25% of avoided hospital and SNF spend to come back as other care, and that number had no source. I set rules, then tried 8,734 year-to-year county changes and the studies I could read. The county estimate failed a rule for each lever. The SNF studies disagree, from nothing coming back to about half, and none prices what replaces a hospital stay. I added a rule after reading the first two, and it decides the SNF answer. With it one study counts, which isn't enough to set a number. Without it three do, SNF's share drops to about zero, and every upside rises. I kept the rule that gives the smaller upside and published what it costs. So the assumption stays, named as one, and the reader can move it.

Ask whether anyone gets there. The upside prices an ACO reaching its peers' top quarter on every use measure it's behind on. I set rules, then followed every ACO behind in PY2022–24 for up to three years, and ran the same count with the years reversed, which is what luck alone looks like. A year on, 8 of 1,208 were at the top quarter on everything they'd been behind on, fewer than luck puts there. One measure at a time, 5% to 14% get there, again about what luck gives. Each gap on an ACO's page now says how many ACOs that far behind caught up. No dollar changed.

Show the nulls. Better-scoring ACOs differ from others in 38 of 212 quality tests. One link survives comparing an ACO with itself a year earlier. It isn't about savings, and it's partly arithmetic.

Check what the extremes are doing. The first analysis said admissions had nothing to do with savings. That was a straight line pulled flat by a few ACO-years with several times the usual admissions. Without the top and bottom 1%, or using ranks, ACOs with fewer admissions save more. Nursing-home ACOs explain part of that, not all. Every driver is now fit four ways, then again with all ten in one model. Four hold up every way: share dually eligible, risk score growth, being low revenue and primary care visits. Together the ten explain 9% of the differences between ACOs in the usual range in PY2025, and 3% across all of them. The page says so.

Put it in front of people. Two testers were blunt. The headings were questions, the copy was dense with jargon, nothing said what an ACO is, a phone got a table it couldn't fit, and the front page drew all 472 ACOs at once. Now each page opens with its finding in a sentence and folds the method away for whoever wants it. The front page explains ACOs first, then leads with the chart and with what catching up is worth to the typical ACO at three targets. It draws 25 rows at a time, phones get cards, and its HTML fell from 1.1 MB to about a third of that.

How the agent is evaluated

The agent is built but hasn't been run with a model yet, so there are no scores. The product spec says what it does: it answers through read-only queries over the clean data, cites the file, year and field behind each number, runs scenarios only through the payment engine, and declines forecasts, causal claims, upcoding advice and questions about individuals. Code withholds any answer with a figure no tool returned.

75 questions with answers computed outside the model grade it on exact numbers, citations, caveats and refusals. Nothing grades the writing yet.

What is tested today is everything underneath. The engine replays CMS's own results, and the statistics run against synthetic data with known answers, including cases built to fool them. The findings written on this page and on the app's are checked against the data too, so a refresh that changes one fails the build.

What I'd do next

  • Record the agent's answers and publish its scores.
  • Read PY2026 rules before adding that year.
  • Replace ACO-level associations with something closer to cause. These files can't do it alone.