Repository navigation
Conversation
… benefit Idaho Code 63-3022A(2) caps the deduction at the maximum Social Security benefit for a worker reaching full retirement age in the tax year. SSA's 2026 fact sheet gives $4,152 a month, so the cap is $49,824 for unmarried filers and unremarried survivors and $74,736 (1.5 times, adding the spouse's benefit on the worker's record) on a joint return. PolicyEngine-US had extrapolated $49,309 and $73,963 from 2025 with IRS uprating. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
David, until the Idaho Tax Commission publishes its 2026 cap for the retirement benefits deduction, the PR sets it the way the Commission set 2025's. It takes 12 times SSA's maximum monthly benefit at full retirement age, $49,824, and 1.5 times as much, $74,736, on a joint return. Have you seen the Commission's figure, or another method? If you can look by Tuesday afternoon, we can merge it before the Veterans Day post (PolicyEngine/policyengine-app-v2#1523). |
PR Review: Set Idaho's 2026 retirement benefits deduction cap from SSA's maximum benefitSummaryThe 2026 values are right. Idaho Code § 63-3022A(2) ties the cap to the maximum Social Security benefit for a worker reaching full retirement age (FRA). SSA's 2026 figure is $4,152 a month, and the Tax Commission's method for 2021-2025 (12 times the monthly amount, and 1.5 times that on a joint return) gives $49,824 and $74,736. The filing-status mapping matches (2)(a)-(c) and (e), every new value has a test, and the static guards pass on the tree merged with main. Two things are left. First, SSA's 2027 fact sheet is already out. By the PR's own numbers, setting 2026 moves the extrapolated 2027 cap further from what the same method gives. Second, the axiom line has no status word. Critical (must fix)None. Should address
Suggestions
Verified correct
Hand-checked expectations (formula: min(qualifying benefits, max(cap − head and spouse SS retirement, 0))):
Axiom line assessment
CI statusAt head
Branch status
Verdict: REQUEST_CHANGES |
DTrim99
left a comment
There was a problem hiding this comment.
Requesting changes per the review above: 0 critical, 2 should (add the 2027 cap from SSA's published $4,188 maximum — uprating from the new 2026 value doubles main's 2027 error; the axiom line needs a status word and #2079 needs its blocker and verbatim text), 4 suggestions. The 2026 values are correct.
…ximum SSA's 2027 COLA fact sheet puts the maximum benefit for a worker retiring at full retirement age at $4,188 a month, so Idaho Code 63-3022A(2) gives $50,256 for single filers, heads of household and surviving spouses and $75,384 on a joint return. IRS uprating from the 2026 values overshot those by $1,053 and $1,579. Cite 42 U.S.C. 402(b)(2), (c)(2) and 415(g) for the joint factor, use the SSA fact sheets' page titles, and mark the 2026 and 2027 values as derived pending the Tax Commission's own. Add 2027 single, joint, head of household, surviving spouse and separate cases. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On the suggestions, the joint comment cites 42 U.S.C. 402(b)(2), (c)(2) and 415(g) with your 2022 example, both fact sheets carry their page titles, and every block marks 2026 and 2027 as derived. #10814 covers the Railroad Retirement offset. |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
DTrim99
left a comment
There was a problem hiding this comment.
Program review
Base repository: PolicyEngine/policyengine-us
PR number: 10717
Reviewed head SHA: 73de016
Merge base SHA: 3386304
Mode: full, with a recheck of David's earlier review (head fdb1998)
Scope: changed behavior and affected dependencies
Source manifest: /private/tmp/policyengine-command-runs/ea33c0bb2b64/pr-10717-review-sources.json
Review status: COMPLETE
Source Documents
- id-63-3022A.html — cached original.
- wb-ssa-cola-2026.html — cached original.
- wb-ssa-cola-2027.html — cached original.
- id-ein00046-2025.pdf — cached original.
- usc-42-402.html — cached original.
- usc-42-415.html — cached original.
- istc-retirement.html — cached original.
- rulespec-us-2079.json — cached original.
- rulespec-us-worklist.yaml — cached original.
- pe-github-CONTRIBUTING.md — cached original.
Critical
None.
Should Address
None.
Suggestions
S1 — Sibling PR #10715 now conflicts textually in the shared test file; the PR body says the two merge cleanly (OPEN)
- Severity: SUGGESTION (merge coordination; no value conflict, does not block this PR's own merge into main)
- File:
policyengine_us/tests/policy/baseline/gov/states/id/tax/income/deductions/retirement_benefits/id_retirement_benefits_deduction.yaml:136onward (both PRs append after the last existing case at line 135) - Trigger:
git merge-tree --write-tree --name-only 2b058657cd (#10715 head) 73de01665c (this head)-> exit 1,CONFLICT (content)in this file only (conflict block lines 288-564 of the merged blob). - Expected vs observed: the PR body says "Both PRs edit
id_retirement_benefits_deduction.yaml, in separate hunks, and merge cleanly"; that was true when this head was pushed (2026-11-21 12:38Z), but #10715's later commits d9394e1 and e4d0ecf (2026-11-21 15:58 and 20:51 +01:00) appended their own block at the same end-of-file position, so the two now conflict. - Evidence of no semantic clash: every case #10715 adds to this file is at period 2024 or 2025 (pins $48,216 / $28,216 / $42,324, the unchanged 2025 cap); its 2026 cases elsewhere (
id_retirement_benefits_deduction_military_employment_eligible.yaml) expect 30,000 or 0 with no Social Security input, below both main's uprated $49,308.72 and this PR's $49,824; its invariant test checks the cap only for 2025 (CAP_2025).id_retirement_benefits_deduction.pyis not touched by #10715. - Fix: whichever PR merges second keeps both appended blocks; update the PR body sentence.
S2 — Test counts in the PR body and the axiom issue lag the last commit (OPEN)
- Severity: SUGGESTION
- Location: PR body lines 48 and 53 ("adds eleven cases", "all 19 cases in the file", "two for the 2026 single value"); rulespec-us#2079 ("head
0551328c07", companion tests A-K). - Trigger: commit 73de016 added "Idaho 2027 retirement benefits cap less Social Security retirement benefits" (id_retirement_benefits_deduction.yaml:271).
- Expected vs observed: the diff now adds 12 cases and the file holds 20, and the 2027 single value is also used by two cases; the body still says eleven / 19 and only the 2026 single value having two. #2079 pins the pre-73de01665c head and lacks the matching 2027 offset companion (TY2027, 4,188, single, $60,000, $20,000 SS → 30,256).
- Impact: documentation only. The shared Axiom guide (PolicyEngine/.github CONTRIBUTING.md, "Mirror policy changes in Axiom") requires companion tests from the same external source, not a 1:1 mirror, so #2079 still meets the
queuedcontract. - Fix: update the body's counts; optionally refresh #2079's head and add the 2027 offset companion.
Evidence Gaps
No material gaps reported.
Notes
- Earlier review: both should-address items are resolved.
- (1) The 2027 cap from SSA's $4,188 is in: 50,256 for single, head of household and surviving spouse, and 75,384 joint. It comes with the 2027 fact-sheet reference and 2027 cases for each status, the Social Security offset (30,256) and separate (0).
- (2) The axiom line now reads
axiom: TheAxiomFoundation/rulespec-us#2079 queued. #2079 records the encoder blocker (skip-encoder-limitationin rulespec-us's worklist) and quotes 63-3022A(2) intro, (a), (b), (c), (e) and (3) word for word. - The four earlier suggestions are addressed. The Railroad Retirement offset is tracked in #10814.
- The values are right. Under Idaho Code 63-3022A(2) and the Commission's 12x / 1.5x method (its 2025 instructions p. 45: $48,216 / $72,324 = 12 x $4,018), SSA's FRA maximum ($4,152 in 2026, $4,188 in 2027) gives 49,824 / 74,736 for 2026 and 50,256 / 75,384 for 2027. Separate stays 0. 2028+ uprate from 2027 (51,392.80 / 77,089.20 on the snapshot; 51,425.43 / 77,138.15 once merged, because main re-based
gov.irs.uprating). Each of the eight new values has a case that pins it. - The branch is 473 commits behind main, but it merges cleanly, main hasn't touched its files, and all 496 Idaho cases pass on the merged tree.
Validation Summary
Local tests at the reviewed head pass (the changed tests plus the Idaho retirement benefits deduction tests; review venv, imports from the snapshot). On a merged-with-main tree all 496 Idaho cases pass. Sources: Idaho Code 63-3022A, SSA 2026 and 2027 COLA fact sheets (Wayback captures; ssa.gov returns 403 to scripts), Idaho 2025 Form 39R instructions, 42 U.S.C. 402 and 415, checksums validated. CI on the head: 38/38 succeeded.
Timing
policy role seconds: 274.00s; code role seconds: 428.00s; parallel review seconds: 428.00s; elapsed seconds: 540.00s
Review Severity
APPROVE. Open findings: 0 critical, 0 should address, 2 suggestions.
What was wrong
PolicyEngine-US had no Idaho retirement benefits deduction cap after 2025, so IRS uprating carried the 2025 amounts forward: $49,309 for unmarried filers and $73,963 on a joint return in 2026, and $50,778 and $76,167 in 2027. Idaho Code § 63-3022A(2) ties the cap to the Social Security Administration's maximum benefit, and SSA has published that benefit for both years. Its maximum rises only 0.87% from 2026 to 2027 ($4,152 to $4,188 a month), while IRS uprating rises 2.98%, so uprating can't track it.
The law
Idaho Code § 63-3022A(2) limits the deduction to "an amount not in excess of maximum retirement benefits under the social security act" and has the State Tax Commission "publish the appropriate deduction amounts ... annually." It defines those benefits by filing status:
The amounts
Change
cap.yaml: 2026 and 2027 values for every filing status from the table above. Separate returns stay at $0. 2028 and later years extrapolate with IRS uprating from the 2027 values.Readings taken
Invariants
For every input:
id_retirement_benefits_deductionkeeps its formula: min(qualifying benefits, max(cap − head and spouse Social Security retirement benefits, 0)). So against main, a 2026 deduction never falls and rises by at most the cap's increase ($515.29 single, $772.93 joint), and a deduction in 2027 or later never rises and falls by at most the cap's decrease (2027: $522.24 single, $783.36 joint; 2028: $534.05 and $801.08).The change edits nothing but parameter values, so the example cases below test it.
Tests
id_retirement_benefits_deduction.yamladds eleven cases:Removing any one of the eight new 2026 and 2027 values makes it revert to the uprated amount and fails that status's case for that year: one case each, and two for the 2026 single value, which the Social Security offset case also uses. On main, the nine 2026 and 2027 cap cases fail (the 2027 separate case passes at $0). With the change, all 19 cases in the file and all 462 cases under
tests/policy/baseline/gov/states/idpass, and so do 270 code-health and parameter-file tests, among themtest_military_retirement_readers.py,test_source_conflicts.pyandtest_parameter_files.py.Before and after
Idaho income tax, single filer aged 67 with $90,000 of taxable public pension income:
The 2026 tax falls by $27.31, or 5.3% of the $515.29 rise in the cap, and the 2027 tax rises by $27.68, or 5.3% of the $522.24 drop. A joint couple aged 67 with $120,000 of public pension income deducts $74,736 instead of $73,963 in 2026 and $75,384 instead of $76,167 in 2027, and owes the same Idaho tax (−$300) either way. From 2028 the cap uprates from the 2027 values, so it sits 1.03% below main's: $51,393 against $51,927 single, and $77,089 against $77,890 joint, in 2028.
Not in this PR
id_retirement_benefits_deductionsubtractssocial_security_retirementfrom the cap but not the federal Railroad Retirement Act benefits that § 63-3022A(3) and Form 39R line 8b also subtract. That gap predates this PR, and #10814 tracks its fix.Related
#10715, which applies Idaho's 2025 tests to military retired pay, left the 2026 cap at the uprated estimate; this PR sets it. Both PRs edit
id_retirement_benefits_deduction.yaml, in separate hunks, and merge cleanly.axiom: TheAxiomFoundation/rulespec-us#2079 queued
🤖 Generated with Claude Code