Fix Vermont retirement-income exemption eligibility gate for Social Security filers#8853
Open
PavelMakarchuk wants to merge 1 commit into
Open
Fix Vermont retirement-income exemption eligibility gate for Social Security filers#8853PavelMakarchuk wants to merge 1 commit into
PavelMakarchuk wants to merge 1 commit into
Conversation
The eligibility variable vt_retirement_income_exemption_eligible tested AGI against the CSRS reduction-end threshold for all filers, while the main formula vt_retirement_income_exemption branches on use_ss to pick the Social Security phase-out endpoint. After S.51 (2025) raised the Social Security thresholds by $5,000 (single $60k->$65k, joint $75k->$80k end) but left the CSRS thresholds unchanged, Social Security filers with AGI in the new partial band were gated out and received a $0 exemption. Mirror the use_ss branch in the eligibility gate so it uses the matching Social Security reduction-end threshold, keeping the gate and formula consistent. Adds integration tests for taxsim #999 (single) and #1000 (joint). Fixes #8837 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This was referenced Jul 2, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8853 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 3 1 -2
Lines 55 24 -31
=========================================
- Hits 55 24 -31
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:
|
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.
Summary
The Vermont retirement-income exemption eligibility variable
vt_retirement_income_exemption_eligibletested AGI against the CSRS reduction-end threshold for all filers, whereas the main exemption formulavt_retirement_income_exemptioncorrectly branches onuse_ssto select the Social Security phase-out endpoint. The two were consistent only while the CSRS and Social Security thresholds were identical.S.51 (2025) (32 V.S.A. § 5830e) raised the Social Security thresholds by $5,000 (single: $60k → $65k eligibility end; joint: $75k → $80k), but the CSRS thresholds were left unchanged. As a result, a Social Security filer with AGI between the stale CSRS end and the true Social Security end was gated out of eligibility and received a $0 exemption, even though the phase-out formula would have granted a partial exemption.
Fix
Mirror the
use_ssbranch used by the main formula inside the eligibility gate, so both use the same Social Security reduction-end threshold for Social Security electors. This keeps the gate and the formula consistent and preserves the code's existing model of the two elections' thresholds as independent parameter paths (no YAML changes needed).Evidence
Reproduction (taxsim #999, single, age 74, TY2025)
AGI $60,942 sits in the 2025 single partial band ($55k–$65k). Correct SS end = $65,000 → ratio 0.41 → exemption = $20,725.08 × 0.41 = $8,497.28 (matches filled IN-112 Line 12 = $8,497). Before this fix PE used the stale CSRS end ($60,000), gated the filer out, and returned $0. After the fix PE produces exemption $8,497.28, VT income tax $1,281.20 — matching TaxAct and the worksheet.
Tests
Adds two integration tests to
vt_retirement_income_exemption.yamlcovering the single (taxsim #999) and joint (taxsim #1000) records. Both pass; neighboring VT tests still pass.Resolves policyengine-taxsim #999 and #1000.
Fixes #8837
🤖 Generated with Claude Code