Repository navigation
Conversation
C.G.S. 19a-754c(b)(1)(C)(iv) covers "household income up to one hundred seventy-five per cent of the federal poverty level", which DSS applies "up to an[d] including 175%". The gate compared the truncated aca_magi_fraction with 1.75, so every income from 175.00% to 175.99% passed. Test the exact ratio of nonnegative ACA MAGI to the prior-year guideline instead. 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. 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
ct_covered_connecticut_eligiblecompared the truncatedaca_magi_fraction(np.floor(100 * magi / fpg) / 100) with<= 1.75. Truncation maps every income from 175.00% to 175.99% of the poverty line to 1.75, so all of them passed. C.G.S. § 19a-754c(b)(1)(C)(iv) (from June Sp. Sess. P.A. 21-2, § 16) covers adults who "have household income up to one hundred seventy-five per cent of the federal poverty level", and DSS applies it to "household income up to an including 175% of the Federal Poverty Level". No source prescribes truncating the percentage.Executed on
main(645fcd3; the file is unchanged at 740e1eb), single filer in Connecticut, 2026, 2025 one-person guideline $15,650, wages only (nothing supplied):aca_magi_fractionFix
Decide eligibility on the exact ratio
max(aca_magi, 0) / tax_unit_fpg(period.last_year), the pattern of #10305. Nothing else in Covered Connecticut reads the fraction. The variable now also cites the codified statute.Invariants
For every input, with the program in effect and an APTC-eligible member:
r <= 1.75,r = max(MAGI, 0) / FPG(prior year).rin (1.75, 1.76), soct_covered_connecticutcan only fall. Deduced:floor(100r)/100 <= 1.75holds exactly whenr < 1.76.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. 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. Case 10, which supplied 1.7501 (a value truncation never produces), now supplies $17,501 against $10,000 and exercises the fix.main's gate fails exactly Cases 10, 10c and 10d.mainthe same draws give 76 mismatches, all in the truncation sliver.Impact
Pending: full-file microsimulation via the US hub impact queue, 2026 and 2027.
Coordination
#10041 (draft) edits
ct_covered_connecticut.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