Skip to content

Revert #8911: restore OK retirement exclusion for IRC 401 employer pensions in 2021#9014

Closed
PavelMakarchuk wants to merge 2 commits into
mainfrom
fix/ok-401-pension-exclusion-2021
Closed

Revert #8911: restore OK retirement exclusion for IRC 401 employer pensions in 2021#9014
PavelMakarchuk wants to merge 2 commits into
mainfrom
fix/ok-401-pension-exclusion-2021

Conversation

@PavelMakarchuk

Copy link
Copy Markdown
Collaborator

Fixes #9009. Corrects #8830. Originating issue: PolicyEngine/policyengine-taxsim#1083. Related: #9005.

#8911 excluded private (IRC §401) employer pensions from ok_pension_subtraction before 2022 on the premise that the 2021 Schedule 511-A line 6 instructions did not list §401 plans. The premise is false: the 2021 Form 511 Packet, page 17 (the same document cited by private_pension_qualifies.yaml), lists as the first qualifying source "An employee pension benefit plan under IRC Section 401" — word-for-word identical to the 2022 packet.

Change: clean git revert of 1f61736 (drops the private_pension_qualifies gate and its tests, restores min_(p.pension_limit, pensions) per person).

Test: integration test from the taxsim #1083 record (2021 OK MFJ, ages 65/68, $19,229/person private pension) — TaxAct and the TAXSIM-35 binary agree to the cent: subtraction 2 × $10,000 = $20,000, ok_agi $61,891, ok_income_tax $2,005 (PE previously $0 / $81,891 / $3,004.57). All 16 OK income tests pass.

🤖 Generated with Claude Code

PavelMakarchuk and others added 2 commits July 13, 2026 09:58
…sions in 2021

The 2021 Form 511 Packet, page 17 — the document cited by the
private_pension_qualifies parameter — lists 'An employee pension
benefit plan under IRC Section 401' as the first qualifying source
for Schedule 511-A line 6, word-for-word identical to the 2022
packet. The pre-2022 restriction was based on a false premise and
over-taxed affected filers by $500/person x 5%. Adds a taxsim #1083
integration test verified against TaxAct and the TAXSIM-35 binary.

Fixes #9009

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@codecov

codecov Bot commented Jul 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (ff39625) to head (f17c883).
⚠️ Report is 12 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #9014   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines           18        14    -4     
=========================================
- Hits            18        14    -4     
Flag Coverage Δ
unittests 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@PavelMakarchuk

Copy link
Copy Markdown
Collaborator Author

Closing as duplicate of #9016, which Pavel is carrying forward (same revert + taxsim #1083 integration test).

@PavelMakarchuk PavelMakarchuk deleted the fix/ok-401-pension-exclusion-2021 branch July 13, 2026 14:57
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.

Revert #8911: 2021 OK Schedule 511-A line 6 instructions DO list IRC §401 employer pensions as qualifying for the $10,000 retirement exclusion

1 participant