Repository navigation
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>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Draft. Done: the fix and YAML cases. Pending: full-file impact, Axiom parity line, GPT-6.1 Sol review.
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) / tax_unit_fpg(period.last_year), the pattern of #10305. 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) / FPG(prior year).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 a prior-yeartax_unit_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.mainthe same draws give 93 mismatches, all in the truncation sliver.Impact
Pending: full-file microsimulation via the US hub impact queue, 2026 and 2027.
Coordination
#10041 (draft) edits
md_premium_assistance.yamland changesaca_magi_fraction's denominator to a newaca_fpg; if it lands, this gate's exact ratio should use the same denominator. Part of theaca_magi_fractionaudit (table: #10329) begun with #10305; federal edge in #10312.axiom: pending
🤖 Generated with Claude Code