Repository navigation
Decide ConnectorCare's ceiling and Plan Type bands on the exact FPL ratio - #10321
Conversation
…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>
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>
hua7450
left a comment
There was a problem hiding this comment.
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
- First threshold of the premium scale. In
enrollee_premium.yaml(lines 30-35), the first threshold is still1. Withright=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_flooralready enforces the 100% floor. - The ratio is computed twice in ConnectorCare.
ma_connector_care.pylines 59-64 andma_connector_care_eligible.pylines 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=4entry 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.
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)
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 andmain's four joint-return cases.aca_fpg, the poverty lineaca_magi_fractionand 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.tax_unit_fpgfor the prior year now pinaca_fpgfor the coverage year. No expected value changed.aca_fpg.aca_fpgdoes, is a modeling choice on that point. Eligibility Cases 13 to 15 and amount Case 33 pin that choice, not a Massachusetts rule.pa-10321-a: all 107 cases pass across the four ConnectorCare YAML files (66),healthcare_benefit_value.yaml(22) andhousehold_health_benefits.yaml(19), and all 14 tests intest_claimable_filer_ptc_invariants.pypass.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.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.fpl_limitchange 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.Bug
ConnectorCare compared the truncated
aca_magi_fraction(np.floor(100 * magi / fpg) / 100) with income edges in two places: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%.ma_connector_care_eligible,<= 4.0): 3C is "not over 400% of the FPL", and truncation admitted up to 400.99%. Members must beis_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:aca_magi_fractionFix
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 onmain.enrollee_premiumthresholds become the band edges (1.5, 2, 2.5, 3), andma_connector_careevaluates 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 <= r <= 4.r <= 1.5, 2B for1.5 < r <= 2, 3A for2 < r <= 2.5, 3B for2.5 < r <= 3, 3C for3 < r <= 4.rrises (each band's amount exceeds the one below).rin (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, soma_connector_carecan 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
aca_magi_fractionnow suppliesaca_magiagainst anaca_fpgof $10,000, so it still drives the gate and the band.ma_connector_care.yamlCases 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.yamlCases 9-12: $62,600 eligible; $62,600.47 and $62,755.56 ineligible; Case 12 setsgov.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.main's variables and parameter fail exactly the eight new above-edge cases.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; onmainthe same draws give 44 mismatches, all in the truncation sliver.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 toaca_fpg, and these exact ratios now use the same denominator. Part of theaca_magi_fractionaudit (table: #10329) begun with #10305; federal edge in #10312.axiom: pending
🤖 Generated with Claude Code