Skip to content

Decide ConnectorCare's ceiling and Plan Type bands on the exact FPL ratio - #10321

Merged
DTrim99 merged 3 commits into
mainfrom
ma-connectorcare-exact-fpl-ratio
Nov 19, 2026
Merged

DTrim99 merged 3 commits into
mainfrom
ma-connectorcare-exact-fpl-ratio

Conversation

@MaxGhenis

@MaxGhenis MaxGhenis commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Still pending: full impact run, Axiom parity line, GPT-6.1 Sol review. Done: the fix and YAML cases, on current main.

Update onto current main (2026-11-18)

  • Merged upstream/main. Max's commit stays; nothing was rebased or force-pushed. One file conflicted: ma_connector_care.yaml, where both sides added cases at the end. The merge keeps this PR's Cases 24-32 and main's four joint-return cases.
  • The ceiling, floor and Plan Type bands now divide by aca_fpg, the poverty line aca_magi_fraction and the federal credit have used since Keep a filer who can be claimed as a dependent out of the premium tax credit family, and apply each state premium program's rule #10041: the prior-year guideline for the section 36B tax family. The division runs in float64.
  • The 38 fixtures that pinned tax_unit_fpg for the prior year now pin aca_fpg for the coverage year. No expected value changed.
  • New cases cover a joint return with one claimable spouse, where the tax family of one is smaller than the tax unit of two:
    • Eligibility Case 13: $62,600 is eligible (400% of $15,650).
    • Eligibility Case 14: $70,000 is ineligible (447% of $15,650, though 331% of the whole unit's $21,150).
    • Eligibility Case 15: $15,650 is eligible (100% of $15,650, though 74% of $21,150).
    • Amount Case 33: $31,300 is Plan Type 2B at 200% of $15,650, though 148% of $21,150 would be 2A. The subsidy is $1,429.80.
  • The sources settle the guideline year. They leave one family-size point open.
    • Guideline year: 956 CMR 12.03 defines the FPL as the most recently published guideline "as of the first day of the annual open enrollment period". The Health Connector uses the 2025 guidelines for plan year 2026 and the 2026 guidelines for plan year 2027. That matches aca_fpg.
    • Family size: 956 CMR 12.03 defines Household as "the tax filer and the individuals for whom a tax filer properly expects to claim a personal exemption", which parallels the section 36B tax family. It doesn't define "tax filer" or say whether a filer who can be claimed on another return counts. Leaving that filer out, as aca_fpg does, is a modeling choice on that point. Eligibility Cases 13 to 15 and amount Case 33 pin that choice, not a Massachusetts rule.
  • Modal run pa-10321-a: all 107 cases pass across the four ConnectorCare YAML files (66), healthcare_benefit_value.yaml (22) and household_health_benefits.yaml (19), and all 14 tests in test_claimable_filer_ptc_invariants.py pass.
  • Mutation checks on Modal:
    • Restoring the old denominator (pa-10321-b) fails 30 cases: integration Scenarios 1-5 and 8; amount Cases 1-16, 21, 22, 23 and 33; eligibility Cases 2, 4, 14 and 15.
    • Restoring main's truncated gate, band lookup and thresholds (pa-10321-c) fails 8 cases: amount Cases 25, 26, 28, 30 and 32; eligibility Cases 10, 11 and 12.
  • Massachusetts' 2027 enrollee premiums, the 2028 fpl_limit change and any filing gate are left for later changes. No case here expects a 2027 premium amount; the only 2027 case is eligibility Case 8. The 2027 amounts must go on this PR's thresholds (1.5, 2, 2.5 and 3), not the earlier 1.5001-style edges.
  • Not rerun: the differential sweep below.

Bug

ConnectorCare compared the truncated aca_magi_fraction (np.floor(100 * magi / fpg) / 100) with income edges in two places:

  1. Plan Type bands (ma_connector_care): enrollee_premium.calc(aca_magi_fraction) with thresholds 1.5001, 2.0001, 2.5001 and 3.0001. 956 CMR 12.04(3)(b) puts persons "at or below 150% of FPL" in Plan Type 2A and "those over 150% and not over 200%" in 2B; 3A, 3B and 3C follow the same "above X% ... and not over Y%" form. Truncation maps 150.00%-150.99% to 1.50, so all of it priced as 2A ($0 a month) instead of 2B ($53); likewise above 200%, 250% and 300%.
  2. The 400% ceiling (ma_connector_care_eligible, <= 4.0): 3C is "not over 400% of the FPL", and truncation admitted up to 400.99%. Members must be is_aca_ptc_eligible, whose income test ends at 400% from 2026, so this ceiling decides alone only under a reform that extends the federal credit.

No source prescribes truncating the percentage; the Overview's "150.1%" labels describe the bands, not a rounding rule. The 100% floor ("at least 100%") is unaffected by truncation.

Executed on main (645fcd3; the files are unchanged at 740e1eb), single member in Massachusetts, 2026, 2025 one-person guideline $15,650:

Income Exact % of FPL aca_magi_fraction Main Here
$23,475 150.000% 1.50 2A, $0/mo 2A, $0/mo
$23,475.47 150.003% 1.50 2A, $0/mo 2B, $53/mo
$23,630.56 150.994% 1.50 2A, $0/mo 2B, $53/mo
$31,300.47 200.003% 2.00 2B 3A
$39,125.47 250.003% 2.50 3A 3B
$46,950.47 300.003% 3.00 3B 3C
$62,600.47 400.003% 4.00 eligible (gate alone) ineligible

Fix

  • Both read the exact ratio max(aca_magi, 0) / aca_fpg, divided in float64, the pattern of Decide CA Premium Subsidy eligibility on the exact FPL ratio and adopt the Final 2027 design #10305 as it stands on main.
  • enrollee_premium thresholds become the band edges (1.5, 2, 2.5, 3), and ma_connector_care evaluates the scale right-closed, so income exactly at an edge stays in the band below (as 956 CMR's "not over" requires) and any income above it moves up. The parameter comments describe the new convention.

Invariants

For every input, with the program in effect and an APTC-eligible member, r = max(MAGI, 0) / aca_fpg:

  1. Eligibility = regulation. Eligible if and only if 1 <= r <= 4.
  2. Bands = regulation. Plan Type 2A for r <= 1.5, 2B for 1.5 < r <= 2, 3A for 2 < r <= 2.5, 3B for 2.5 < r <= 3, 3C for 3 < r <= 4.
  3. Monotone in income. The per-person premium never falls as r rises (each band's amount exceeds the one below).
  4. Only slivers change. Relative to main, results differ only for r in (1.5, 1.51), (2, 2.01), (2.5, 2.51), (3, 3.01) and (4, 4.01). In the first four the enrollee premium rises a band, so ma_connector_care can only fall. The last is federally ineligible under current law.

No Hypothesis test is added: the YAML cases hit every band edge exactly and 0.003 points above it with the real guideline, and the existing cases cover each band's interior. The repo's test-design rules keep such cases in YAML.

Tests

  • Every case in the three ConnectorCare YAML files that supplied aca_magi_fraction now supplies aca_magi against an aca_fpg of $10,000, so it still drives the gate and the band.
  • ma_connector_care.yaml Cases 24-32: the real guideline at 150%, 150.003%, 150.994%, 200%, 200.003%, 250%, 250.003%, 300% and 300.003%, with the expected Plan Type and subsidy. The existing exactly-at-edge cases (6, 8, 10, 12) still land in the lower band. Case 33 is the joint return described in the update section.
  • ma_connector_care_eligible.yaml Cases 9-12: $62,600 eligible; $62,600.47 and $62,755.56 ineligible; Case 12 sets gov.aca.ptc_income_eligibility[2].amount: true, so at $62,600.47 the member is federally eligible and the ConnectorCare ceiling decides. Cases 13-15 are the joint returns described in the update section.
  • Mutation check: main's variables and parameter fail exactly the eight new above-edge cases.
  • Local differential sweep, run before the move to aca_fpg (a script, not committed, per the repo's test-design rules): 256 tax units per year, 60% with income in cents within $2 of an edge and the rest uniform, guidelines $10,000-$80,000 including $20 multiples, comparing the eligibility gate with an exact-rational reading of the source on the float32 values the model receives. 0 mismatches here; on main the same draws give 44 mismatches, all in the truncation sliver.
  • Local run before the move to aca_fpg: the ConnectorCare YAML folder, 56 passed. Current results are in the update section above.

Impact

Pending: full-file microsimulation via the US hub impact queue, 2026 and 2027.

Coordination

#10041, merged 11/13, moved aca_magi_fraction's denominator to aca_fpg, and these exact ratios now use the same denominator. Part of the aca_magi_fraction audit (table: #10329) begun with #10305; federal edge in #10312.

axiom: pending

🤖 Generated with Claude Code

…atio

956 CMR 12.04(3)(b) assigns Plan Types by household income: "at or below
150%" (2A), "over 150% and not over 200%" (2B), "above 300% ... and not
over 400%" (3C). ConnectorCare compared the truncated aca_magi_fraction
with these edges, so incomes from 150.00% to 150.99% landed in 2A (and the
same slivers above 200%, 250% and 300% in the band below), and the 400%
gate admitted up to 400.99%. Use the exact ratio of nonnegative ACA MAGI
to the prior-year guideline for both, and evaluate the enrollee-premium
scale right-closed with thresholds at the band edges, so income exactly at
an edge stays in the lower band.

Tests that supplied aca_magi_fraction now supply aca_magi against a
prior-year guideline of $10,000; new cases use the real 2025 guideline at
each band edge and at 400%.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
DTrim99 and others added 2 commits November 18, 2026 14:35
ma_connector_care.yaml conflicted because both sides added cases at the end
of the file. Keep the PR's Cases 24-32 and main's four joint-return cases.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Divide ACA MAGI by aca_fpg, the prior-year guideline for the section 36B
tax family that the federal credit has used since #10041, instead of the
whole tax unit's guideline. Divide in float64 so a ratio just above a limit
can't round down onto it. 956 CMR 12.03 and the Health Connector's subsidy
guides support the guideline year. The regulation's Household doesn't say
whether a filer who can be claimed on another return counts, so the comment
calls that point a modeling choice. Pin the test fixtures to aca_fpg and add
joint returns with a claimable spouse, whose limits and Plan Type follow the
one-person tax family.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@DTrim99
DTrim99 marked this pull request as ready for review November 18, 2026 19:52
@DTrim99
DTrim99 requested a review from hua7450 November 18, 2026 19:52

@hua7450 hua7450 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.

Thanks, David. The bands check out: 956 CMR 12.04(3)(b) makes each band top inclusive ("at or below 150%", "over 150% and not over 200%"), and the 2026 Guide to Subsidies puts $23,476 for one person (150.006%) in 2B, which only an exact comparison reproduces; truncating, or rounding to a tenth, would put it in 2A. The new thresholds with right=True, the 100% floor and the 400% ceiling match for 2026 and 2027. Approving, with two small fixes before merge.

Before merge

  1. First threshold of the premium scale. In enrollee_premium.yaml (lines 30-35), the first threshold is still 1. With right=True, income at exactly 100% falls below the scale and gets 0 instead of the 2A premium. It has no effect today because 2A is $0, but it would in any year with a nonzero 2A amount. Please use -.inf; fpl_floor already enforces the 100% floor.
  2. The ratio is computed twice in ConnectorCare. ma_connector_care.py lines 59-64 and ma_connector_care_eligible.py lines 51-55 repeat the same four lines and comment. Sharing one variable between the two formulas would keep them from drifting.

Optional

  • Comments. Ten test comments still cite the removed 1.5001 and 2.0001 thresholds.
  • References. The new amended-956CMR12.00.pdf#page=4 entry repeats a URL already cited for pages 5 and 6; one entry with a title ending "#page 4-6".
  • Tests. Several new edge cases repeat existing ones.
  • 2027 premiums (separate PR). The published 2027 amounts ($0, $55, $107, $158, $242) aren't in the model yet.

Series-wide (follow-up, not for this PR). The exact ratio max_(aca_magi, 0) / aca_fpg is now computed inline in each PR of this series, plus two California copies on main, and only 10312 guards a zero poverty line (territories, where aca_fpg is 0; the formula runs before the state mask, so a mixed simulation emits NumPy warnings, though outputs are unaffected). One guarded tax-unit variable for the untruncated ratio, read by every gate, would be a good follow-up PR once these merge.

@DTrim99
DTrim99 merged commit 57f3198 into main Nov 19, 2026
45 checks passed
@DTrim99
DTrim99 deleted the ma-connectorcare-exact-fpl-ratio branch November 19, 2026 03:58
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.

3 participants