Repository navigation
Conversation
Amended Regulation 4-2-78 Section 4.C defines an eligible enrollee by household income "no greater than 400% of the Federal Poverty Level". 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, so the state ceiling holds on its own. 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 the edge and a reform that extends the federal credit. 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
co_premium_assistance_eligiblecompared the truncatedaca_magi_fraction(np.floor(100 * magi / fpg) / 100) with<= fpl_limit.upper(4.0). Truncation maps every income from 400.00% to 400.99% of the poverty line to 4.00, so all of them passed. Amended Regulation 4-2-78 (3 CCR 702-4), Section 4.C defines an "eligible enrollee" as one "whose household income is no greater than 400% of the Federal Poverty Level". (Section 5.B's heading reads "Households Below 400% FPL"; the definition, not the heading, sets the test.) No source prescribes truncating the percentage.Under current law the gate also requires
is_aca_ptc_eligible, whose income test ends at 400% (2026 onward), so incomes above 400% already failed end to end. The Colorado ceiling decides alone when a reform keeps the federal credit above 400%, such as extending the enhanced credit.Executed on
main(645fcd3; the file is unchanged at 740e1eb), single filer in Colorado, 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. Nothing else in Colorado Premium Assistance reads the fraction.Invariants
For every input, with the program in effect and an APTC-eligible member:
r <= 4,r = max(MAGI, 0) / FPG(prior year); no floor.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
aca_magi_fractionnow suppliesaca_magiagainst a prior-yeartax_unit_fpgof $10,000, so it still drives the gate.gov.aca.ptc_income_eligibility[2].amount: true(federal credit above 400%) and computesis_aca_ptc_eligible: at $62,600.47 the household is federally eligible and Colorado-ineligible.main's gate fails exactly Cases 15, 16 and 17.mainthe same draws give 83 mismatches, all in the truncation sliver.Impact
Pending: full-file microsimulation via the US hub impact queue, 2026 and 2027.
Coordination
#10041 (draft) edits
co_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. #10312 makes exactly 400% federally eligible; the two are independent (the new cases here supplyis_aca_ptc_eligibleor sit above 400%). Part of theaca_magi_fractionaudit (table: #10329) begun with #10305.axiom: pending
🤖 Generated with Claude Code