Revert #8911: restore OK retirement subtraction for IRC 401 pensions pre-2022 (#9009)#9016
Conversation
…pre-2022 (#9009) The 2021 Form 511 Packet (page 17) lists 'An employee pension benefit plan under IRC Section 401' as the first qualifying Schedule 511-A line 6 source, and the 2022 packet's line-6 text is word-for-word identical. #8911's premise that section 401 plans were added in 2022 was false, so it overstated pre-2022 OK income tax by 5% x $20,000 = $1,000 for MFJ records with >=$10k/person private pension. Reverts the private_pension_qualifies gate and restores min_(p.pension_limit, pensions) per person. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #9016 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 1 1
Lines 18 14 -4
=========================================
- Hits 18 14 -4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
hua7450
left a comment
There was a problem hiding this comment.
Verified against both the statute and the form instructions — approving.
The revert's premise is confirmed at two levels:
- Instructions: the 2021 Form 511 Packet, page 17, Schedule 511-A line 6 lists as its first qualifying source "An employee pension benefit plan under IRC Section 401" — and the 2022 packet's line-6 text is word-for-word identical. Nothing was added in 2022.
- Statute: 68 O.S. § 2358(A)(13)(c) defines "retirement benefits" as distributions from "(1) an employee pension benefit plan which satisfies the requirements of Section 401 of the Internal Revenue Code" (first in the statutory list, unchanged since the mid-2000s amendments); (13)(d) sets the $10,000-per-individual limit for 2006+; (13)(b)(5) removes any income cap from 2010 onward. So #8911's gate was wrong under the primary source as well as the operational one.
Model correctness note: min_($10,000, taxable_pension_income) per person correctly reproduces the combined effect of ¶8 (line 5, government pensions) and ¶13 (line 6, other retirement) because (13)(d) caps the combined total at $10,000 per individual — the merged single-cap model is exact, not a simplification.
Revert hygiene: no residual references to private_pension_qualifies; the deleted parameter cited only form packets with reference titles asserting "§401 not listed" about the page that lists it, so the revert also removes misinformation from reference metadata.
Tests: taxsim #1083 arithmetic verified independently — federal AGI 2×(19,228.76+21,716.92) + 85%×24,944.88 SS = 103,094.51; OK AGI = 103,095 − 21,203 SS exclusion − 20,000 pension subtraction = 61,891.36 (matches TAXSIM-35 to the cent); OK tax ≈ 2,004.6 (matches TaxAct to the dollar).
CI fully green (35/35).
…into revert-ok-401-pension-9009
Fixes #9009. Reverts #8911 (which addressed #8830).
Problem
#8911 excluded private (IRC §401) employer pensions from
ok_pension_subtractionbefore 2022, on the premise that the 2021 Schedule 511-A line 6 instructions did not list §401 plans. That premise is false. The 2021 Form 511 Packet, page 17 — the same document cited byprivate_pension_qualifies.yaml— lists as the first qualifying source "An employee pension benefit plan under IRC Section 401". The 2022 packet's line-6 text is word-for-word identical; §401 was not added in 2022.Effect on the originating taxsim record (2021 MFJ, pensions $38,458): PolicyEngine returned
ok_pension_subtraction= $0 (should be 2 × $10,000 = $20,000) and overstatedok_income_taxby a flat $1,000 (5% × $20,000) for any pre-2022 MFJ record with ≥$10k/person private pension.Fix
Reverts #8911: drops the
private_pension_qualifiesgate and restoresmin_(p.pension_limit, pensions)per person.Tests
ok_pension_subtraction$20,000,ok_agi$61,891,ok_income_tax$2,005 (matches TaxAct and TAXSIM-35 to the dollar).🤖 Generated with Claude Code