Repository navigation
Add premium tax credit rules for 2014–2017 - #10846
Merged
Merged
Conversation
Date the annual applicable percentages and estimate historical benchmark premiums from the existing 2018 rating-area data. Add historical CMS age curves and poverty guidelines, and retain the filing condition. Floor supplied negative MAGI for the historical years and preserve the calculations used from 2018 onward. Cover the tables, premiums, eligibility ceiling, filing behavior and compatibility with YAML and property tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Set the state input for the coverage year in December cases. This lets the New Jersey case exercise its historical curve. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Compare credits with the calculated annual benchmark after monthly input conversion. Release simulations and dated parameter caches between checks to bound memory use. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 13, 2026
Preserve coverage-family pricing and all historical cases while combining the family-tier helpers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Retain verification from 2024 and clarify that the IRS negative-MAGI instruction continues after 2017. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Read the 2013 and 2014 guideline parameters with coverage-year household inputs. Preserve coverage-family tests and the original 2017 input cases alongside the pre-coverage guards. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Remove the unsupported small-group curve from historical individual premiums. Identify the Default column in the Alabama, Mississippi and Oregon references. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Use the coverage family benchmark in 2014–2017 and its allocated premium for the minimum-premium cap from 2015. Cover claimable spouses in each historical formula. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Avoid enrollment and premium calculations when every potential enrollee belongs to the tax family. Retain allocation for families with excluded enrollees. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Read the existing applicability flags before deriving eligibility categories. Return false when both flags are inactive so historical ACA enrollment does not require later Medicaid categories. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The IRS instructs 2016 and 2017 filers to enter the Form 8962 line 4 amount for their state of residence in the coverage year, using the prior year's poverty lines. Read the state for the coverage year for every coverage year before 2018, so an Alaska or Hawaii household that supplies only its coverage-year state receives its own poverty line. Keep the existing guideline-year lookup from 2018. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The factor's first value dates from 2023, and the model backdates it to 2015. State in the family-tier documentation that calculations for 2015 through 2022 apply that value by choice. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Drop a 2013 case identical to a later one and a 2017 case whose input and assertion the next case repeats. Supply Marketplace enrollment to the property tests only for 2014, which precedes the model's 2015 parameter floor. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
MaxGhenis
marked this pull request as ready for review
November 15, 2026 23:21
DTrim99
added a commit
that referenced
this pull request
Nov 16, 2026
Main added 2017 coverage cases to aca_magi_fraction.yaml (the 2016 HHS table, #10847/#10846 line); keep both sides' cases. Main's fpg helper now reads the 2016 table but keeps its signature and the territory placeholders, so aca_fpg and the zero-guideline guard are unaffected. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Since #10860, main reads the coverage year's state for the poverty line in every year. Resolve the conflict in aca_fpg.py: take that rule, drop this branch's 2018 residence boundary, and keep the 2013 guideline floor, so 2014 and 2015 coverage use the 2013 and 2014 guidelines. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
For 2014 and 2015 coverage, aca_fpg reads the poverty guideline at 2013 and 2014 dates. The Guam, Puerto Rico and Virgin Islands placeholders started in 2024, and the model backdates parameters to 2015 only, so the lookup found no value for a household there in those two years. Main reads the backdated zero for 2015. Start the six placeholders in 2013 and keep their 2024 entries, where uprating begins. No value changes from 2015 on. Add a 2015 Guam case and a 2014 Puerto Rico case. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Remove the 2013 zero placeholders for Guam, Puerto Rico and the Virgin Islands from gov.hhs.fpg, so the parameter's territory entries equal main's again. Other formulas read that parameter. For example, with those zeros tanf_non_cash_fpg returned a monthly guideline of zero for a Guam or Virgin Islands unit in 2015, where main raises an error. aca_fpg looks a household in those areas up under the contiguous geography, which has a value at every guideline date, and returns zero for it. A lookup on the area's own geography raises an error at the 2013 and 2014 dates that 2014 and 2015 coverage reads. For coverage from 2016, main's placeholder gives the same zero. Add a 2015 Virgin Islands case and a 2017 Puerto Rico case, and restate the comments on the 2015 Guam and 2014 Puerto Rico cases. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Contributor
Author
|
US + core hub merge audit, us#10846 at
🤖 Generated with Claude Code |
This was referenced Nov 17, 2026
Contributor
Author
|
The follow-ups from the merge audit now have issues:
🤖 Generated with Claude Code |
This was referenced Nov 17, 2026
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.
Calculate premium tax credits for 2014–2017 using annual applicable percentages, prior-year poverty guidelines, and estimates of historical benchmark premiums.
Congress supplied the original percentages in 26 U.S.C. 36B(b)(3)(A).
The IRS indexed them for 2015, Rev. Proc. 2014-37 §5.01, 2016, Rev. Proc. 2014-62 §2.01, and 2017, Rev. Proc. 2016-24 §2.01.
For example, the unit tests supply $30,000 MAGI, 250% FPL and a $12,000 benchmark.
Subtract $30,000 times 8.05%, 8.10%, 8.18% or 8.21%: credits equal $9,585, $9,570, $9,546 and $9,537.
Estimate historical benchmarks from 2018 rating-area premiums and the existing national premium index parameter.
Apply the CMS 2013 age curves, retaining the 2018 premium normalization.
Use the federal curve for historical New Jersey estimates.
In CMS's 2014 individual-market plan file, every New Jersey plan with adult rates follows the federal age ratios at each listed age from 21 to 60.
CMS's 2017 table labels the separate New Jersey column Small Group.
Use 2013 and 2014 HHS guidelines for coverage in 2014 and 2015.
Read the guideline HHS had most recently published when open enrollment began, under 36B(d)(3)(B), with the coverage year's tax-family size under 36B(d)(1).
For example, an Alaska couple with $49,150 wages in 2015 uses $14,580 + $5,080 = $19,660, so income equals 250% FPL (2015 instructions, Table 1-2).
Read the poverty-line state for the coverage year in every year, as the IRS instructs for Form 8962 line 4 (2016, 2017).
Main has read it that way since #10860 merged.
For example, an Alaska adult with $37,100 MAGI in 2017 who supplies only 2017 residence uses $14,840, so income equals 250% FPL (2017 instructions, Table 1-2).
Subtract $37,100 times 8.21% from the estimated $6,344.08 benchmark: the credit equals $3,298.17.
HHS defines no guideline for Puerto Rico or other outlying jurisdictions (2013, 2014).
aca_fpgreturns a poverty line of zero for a household in Guam, Puerto Rico or the Virgin Islands in every coverage year, as it does on main for coverage from 2015.It looks those households up under the contiguous guideline, because the shared guideline parameter holds no value for the three areas at the 2013 and 2014 dates.
That parameter keeps main's entries for the three areas, so every other formula that reads them gets main's result.
Preserve main's coverage-family pricing in the baseline and minimum-premium reform (#10041).
Read supplied benchmarks directly when every person belongs to the tax family.
Skip Medicaid category calculations when neither the federal nor the Arkansas work requirement applies.
Floor supplied negative MAGI at zero in 2014–2017, following 2014 Form 8962 line 3.
The IRS continues that instruction in 2018; correcting the existing 2018+ calculation needs a follow-up.
Retain the filing condition and coverage-family benchmark limits, 26 CFR 1.36B-3(d)–(f), including in the minimum-premium reform.
Keep main's allocation of a shared policy's premium in proportion to each taxpayer's benchmark under §1.36B-3(h)(1).
Historical benchmark changes also affect Medicaid cost indices, Basic Health Program costs and state premium programs.
The 2013 and 2014 guidelines also change other 2013 and 2014 results, and 2015 results that read a lagged guideline.
SNAP income standards read the guideline at each October 1, so they change from October 2013 through September 2015.
For one person in the 48 states, that guideline rises from $10,890, the 2011 amount, to $11,490 for fiscal year 2014 and $11,670 for fiscal year 2015.
Invariants and validation
slcspfor any enrollment.aca_fpgreturns zero in every coverage year.The YAML tests comprise 249 cases in 11 files.
is_medicaid_ineligible_due_to_work_requirement.yamlaca_ptc.yamlaca_required_contribution_percentage.yamlfamily_tier_applies.yamlfamily_tier_multiplier.yamlslcsp_age_0.yamlslcsp_age_curve_multiplier.yamltax_unit_fpg.yamlaca_fpg.yamlaca_magi_fraction.yamlptc_minimum_premium.yamlFour residence cases supply Alaska residence for 2016 or 2017 coverage with no state, or another state, for the year before.
Four cases check the zero poverty line: a 2015 Guam return, a 2014 Puerto Rico return, a 2015 Virgin Islands return and a 2017 Puerto Rico return.
The three committed property tests check table boundaries, contribution monotonicity, credit bounds and compatibility across 2018–2027.
The compatibility test uses frozen 2018–2027 percentage tables and supplied benchmark premiums.
Pull request run 43910644935 at
f5cb72ef24passed all 37 jobs on GitHub's merge with main8e1837790b.Methodology choices
verified_start_year: 2024.Microsimulation impact
None from 2018 on, by a code read. This PR changes results only for 2013 through 2017: every changed parameter keeps its values from January 1, 2018, and
test_post_2017_credit_matches_existing_rulesholds later credits to the existing rules. The default dataset holds 2024 records, so we report no aggregate for 2013 to 2017.Axiom parity
axiom: TheAxiomFoundation/rulespec-us#2291 queued (the 2014–2017 applicable percentage tables, 2013–2015 HHS guidelines and 2014–2016 Form 8962 lines 3–5; the corpus lacks the revenue procedures, HHS notices and instructions, so the signed encoder can't run yet)
🤖 Generated with Claude Code