Skip to content

Remove orphaned IRS premium tax credit parameter files - #11756

Merged
DTrim99 merged 1 commit into
mainfrom
remove-orphan-irs-ptc-yamls
Dec 4, 2026
Merged

DTrim99 merged 1 commit into
mainfrom
remove-orphan-irs-ptc-yamls

Conversation

@DTrim99

@DTrim99 DTrim99 commented Dec 4, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes #4211

What was wrong

#5480 deleted the IRS-section premium tax credit variables (is_ptc_eligible, premium_tax_credit and ptc_phase_out_rate under variables/gov/irs/credits/premium_tax_credit/), which answered the concern raised on this issue. Their three parameter files stayed behind:

  • parameters/gov/irs/credits/premium_tax_credit/eligibility.yaml
  • parameters/gov/irs/credits/premium_tax_credit/phase_out/starting_rate.yaml
  • parameters/gov/irs/credits/premium_tax_credit/phase_out/ending_rate.yaml

Nothing in the model reads them. The premium tax credit is computed in variables/gov/aca/ptc/ from the gov.aca parameters (ptc_income_eligibility.yaml, required_contribution_percentage/). These orphans still show up in the parameter catalog, though, so users can edit parameters that have no effect.

The fix

Delete the three files and add a removed changelog fragment.

Checks that nothing reads them, on current main:

  • No variable, reform, contrib module, tool or test refers to credits.premium_tax_credit, premium_tax_credit.phase_out, premium_tax_credit.eligibility or the folder path. The remaining premium_tax_credit hits are the ACA variable of that name, net_premium_tax_credit and premium_tax_credit_in_force, none of which reads these parameters.
  • No code walks parameters.gov.irs.credits into this subtree; tools/pinned_tbs.py only walks the EITC, CTC and CDCC subtrees.

Who is affected

No household or microsimulation result changes. The parameter paths gov.irs.credits.premium_tax_credit.eligibility and gov.irs.credits.premium_tax_credit.phase_out.{starting,ending}_rate disappear from the app's parameter catalog, so a saved reform that still sets one of them would fail to load the parameter.

Downstream:

Tests

  • policyengine_us/tests/code_health/: 1,155 passed, 1 skipped.
  • policyengine_us/tests/policy/baseline/gov/aca/ptc/: 177 passed (this also builds the full parameter tree without the folder).

No new tests: the change only deletes unused parameters.

axiom: n/a: removes unused parameter files

🤖 Generated with Claude Code

#5480 deleted the IRS-section premium tax credit variables, but their
parameters under gov.irs.credits.premium_tax_credit (eligibility and the
phase-out starting and ending rates) stayed behind. Nothing in the model
reads them; the premium tax credit uses the gov.aca parameters.

Fixes #4211

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@hua7450 hua7450 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checked:

  • Nothing reads the three files. After merging with current main, no reference remains to gov.irs.credits.premium_tax_credit, its folder path, is_ptc_eligible or ptc_phase_out_rate, and the folder is gone entirely.
  • The premium tax credit runs on the gov.aca parameters, so no result changes.
  • The branch merges cleanly with current main.

One thing for after merge: PolicyEngine/policyengine-api#4406 is still open. It should merge before the API's next bundle update, since the API's installed-folders test names this folder.

@DTrim99
DTrim99 merged commit 30928fa into main Dec 4, 2026
36 checks passed
@DTrim99
DTrim99 deleted the remove-orphan-irs-ptc-yamls branch December 4, 2026 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove premium tax credit code from IRS section

2 participants