Repository navigation
Decide Maryland Premium Assistance's 400% ceiling on the exact FPL ratio - #10320
Conversation
MHBE's adopted PY2026 design provides "No state subsidy above 400% FPL" and the PY2027 design "Eligibility: 400% FPL or below". The gate compared the truncated aca_magi_fraction with 4.0, so every income from 400.00% to 400.99% passed. The federal PTC gate ends at 400% under current law, so the error showed only when a reform extends the federal credit; test the exact ratio of nonnegative ACA MAGI to the prior-year guideline anyway. Seven amount cases supplied a fraction that disagreed with their own aca_magi (for example "225% FPL" with $35,000, which is 223.6% of $15,650). With the gate now reading MAGI, each case would have judged eligibility and the target percentage on different incomes; their incomes and expected amounts are recomputed so both agree. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ce-exact-fpl-ratio
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 the limit can't round down onto it. COMAR 14.35.21.02B(3) and MHBE's income thresholds support the guideline year; Maryland's rules don't define the family counted, so the comment calls that part a modeling choice. Pin the test fixtures to aca_fpg and add a joint return with a claimable spouse, whose ceiling follows 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. Maryland's ceiling checks out: the MHBE Board's PY2026 motion ("No state subsidy above 400% FPL") and PY2027 motion ("400% FPL or below") set an inclusive 400% limit, and MHBE's tables put it at exactly four times the guideline ($62,600 for one person in PY2026), which truncation would contradict. COMAR 14.35.21.02B(3) uses the same guideline year as aca_fpg. Approving, with one reference fix before merge.
Before merge
Each MHBE deck is listed twice. In md_premium_assistance_eligible.py lines 20-25, the PY2026 deck appears at #page=30 and #page=16, and the PY2027 deck at #page=25 and #page=12. Please keep one href per deck on the first cited page with a pages comment: # PDF pages 16,30 above the PY2026 href (#page=16) and # PDF pages 12,25 above the PY2027 href (#page=12). The pages themselves are right.
Optional
- Comments. The comments on Cases 12 and 13 still say the gate reads
aca_magi_fractionagainst the "2026 FPL". - Family size. The comment calling the federal tax family "a modeling choice" could cite COMAR 14.35.07.08. Cases 19 and 20 rest on a joint filer who can be claimed as a dependent, which 26 U.S.C. 152(b)(2) rarely allows.
- Zero guard (see below).
- 2027 rates (separate PR). The 2027 contribution schedule still uses the 2026 rates.
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/mainwith no conflicts. Max's commit stays; nothing was rebased or force-pushed.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's guideline year. Those tables list "Household Size" without defining it, and COMAR 14.35.21.03A(1) refers to the "tax filer's tax household" without defining it. Insurance Article §31-125, which authorizes this program, and §31-122, which authorizes the Young Adult Subsidy, define neither the poverty level nor family size. Counting the section 36B tax family is a modeling choice:aca_fpgis the line of the federal credit this gate already requires. Cases 19 and 20 pin that choice, not a Maryland rule.pa-10320-a: all 149 cases pass across the five Maryland YAML files (108),healthcare_benefit_value.yaml(22) andhousehold_health_benefits.yaml(19), and all 14 tests intest_claimable_filer_ptc_invariants.pypass.pa-10320-b) fails eligibility Cases 2 and 20. Restoringmain's truncated gate (pa-10320-c) fails eligibility Cases 16, 17 and 18.md_premium_assistance.yaml: it expects $18.22 at the 6.22% target, and at the adopted 6.33% the result falls to $0 ($2,500 less $2,525.67 on $39,900).Bug
md_premium_assistance_eligiblecompared the truncatedaca_magi_fraction(np.floor(100 * magi / fpg) / 100) with<= 4.0. Truncation maps every income from 400.00% to 400.99% of the poverty line to 4.00, so all of them passed. MHBE's adopted PY2026 parameters say "No state subsidy above 400% FPL", and the PY2027 parameters say "Eligibility: 400% FPL or below, eligible for APTC, and ineligible for Medicaid". No source I found prescribes truncating the percentage.Under current law the gate also requires
is_aca_ptc_eligible, whose income test ends at 400% from 2026, so incomes above 400% already failed end to end. The Maryland ceiling decides alone when a reform keeps the federal credit above 400%.Executed on
main(645fcd3; the file is unchanged at 740e1eb), single filer in Maryland, 2026, 2025 one-person guideline $15,650:aca_magi_fractionis_aca_ptc_eligiblesupplied)Fix
Decide the ceiling on the exact ratio
max(aca_magi, 0) / aca_fpg, divided in float64, the pattern of #10305 as it stands onmain. The target-contribution schedule still interpolates onaca_magi_fraction; only the eligibility edge moves.Invariants
For every input, with the program in effect and an APTC-eligible member:
r <= 4,r = max(MAGI, 0) / aca_fpg.rin (4.00, 4.01). Under current law that set is already federally ineligible, so baseline results should not move; the impact run is the check.No Hypothesis test is added: the gate is one comparison on a ratio, and the YAML cases hit the limit, 0.003 and 0.994 points above it, plus a reform case. The repo's test-design rules keep such cases in YAML.
Tests
md_premium_assistance_eligible.yaml: cases that suppliedaca_magi_fractionnow supplyaca_magiagainst anaca_fpgof $10,000. New income-derived cases: $62,599 (399.994%) and $62,600 (400%) eligible; $62,600.47 (400.003%) and $62,755.56 (400.994%) ineligible. Case 18 setsgov.aca.ptc_income_eligibility[2].amount: true(federal credit above 400%): at $62,600.47 the household is federally eligible and Maryland-ineligible.md_premium_assistance.yaml: seven cases supplied a fraction that disagreed with their ownaca_magi, checked by re-deriving each fraction from its MAGI. With the gate reading MAGI, each would have judged eligibility and the target percentage on different incomes. None crossed 400%, so none changed result here; the inputs now agree, with expected values recomputed by hand:main's gate fails exactly the three new above-limit cases (16, 17, 18); the recomputed amount cases pass onmaintoo.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 93 mismatches, all in the truncation sliver.aca_fpg: the Maryland Premium Assistance YAML folder, 102 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 this gate's exact ratio now uses the same denominator. Part of theaca_magi_fractionaudit (table: #10329) begun with #10305; federal edge in #10312.axiom: pending
🤖 Generated with Claude Code