Repository navigation
Conversation
The RI-1040 worksheet has Primary and Spouse columns, and only the retirement income of a taxpayer born on or before the threshold date qualifies. The model applied the test to the older spouse for the whole unit, so a younger spouse's pension was subtracted. Tests that set eligibility directly now give the person an age. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LwQq6JsNU6DABYsMBe3cgA
The military retirement inputs cover all uniformed services, but the North Dakota, New Mexico, Rhode Island and South Carolina exclusions, and Indiana's before 2025, cover the armed forces only. NOAA and Public Health Service commissioned corps retirees are uniformed services but not armed forces. Add military_retirement_pay_is_armed_forces (default true, so no current result changes) and armed-forces amounts, and gate those states on them. South Carolina's retirement worksheet line 2 now subtracts the military deduction claimed, so pay that does not qualify for it no longer reduces the general retirement cap. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LwQq6JsNU6DABYsMBe3cgA
|
Ready for hub review Head: Items
Tests (one file per process)
Hand computations
Mutants
CIDraft PR, so CI hasn't run. Judgment calls
Proposed follow-ups
Generated by Claude Code |
12-6-1170 gives the survivor deduction to the original owner's surviving spouse (RR21-13 denies it to other beneficiaries); once the military gate zeroed the 2021 offset, a non-spouse with survivor pension got up to $3,000. The 2021 worksheet's reduction by the military deduction is dropped because 12-6-1170(C)(1) and RR22-11 exclude a military retiree's surviving spouse from it, and the unused toggle parameter goes with it. The maximum follows the deceased spouse's would-be age (2021-2022 worksheet line p-3, line 1) through a new deceased_spouse_age input that defaults to the person's own age. The SC and RI conflicts go to the candidate backlog. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LwQq6FjKTA223kkKGWSie6
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LwQq6FjKTA223kkKGWSie6 # Conflicts: # source_conflicts/candidates.yaml
|
Hub review in progress Head reviewed: Findings so far:
Still to do: mutants, the remaining test files, readers and overlap. Generated by Claude Code |
|
Ready for hub review The head is the one the brief named, so nothing has changed since FindingsP1. CI is red: the merge with main fails a code-health test on main
P1. The body's CI line is now falseThe hand-off says "Draft PR, so CI hasn't run". The run above has since failed. Replace the line with the CI result once the P1 fix lands. P2. SC: pay from a non-armed-forces service now gets neither SC deduction
P2. IN: the 2025 start of
|
…23+ surviving spouse's ITR 11-3 puts SBP benefits under 43-1022(2)'s $2,500 subtraction for federal plans. From 2023 the Form 140 instructions move a deceased veteran's surviving spouse's payments to line 29b. The previous head put every surviving spouse's payments on line 29b in every year and gave other recipients nothing, below what (2) allows. A new parameter dates the line 29b move, az_public_pension_exclusion now counts every other SBP payment, and the reading is recorded as a source-conflict candidate. Also cite 12-6-1170(A)(3) for South Carolina's deceased-spouse age rule and pin its 65 boundary with a case. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LwQq6FM4VSMYJYahmqhhBo
|
Picking this up for the US hub. I'll post a hand-off comment here when it's ready. Generated by Claude Code |
…olicyengine-us-10655-q1j93g
…unt NOAA and PHS pay toward SC's general retirement deduction main's code-health test bans the military_retirement_pay constant outside tax folders, and armed_forces_retirement_pay lives under household/. South Carolina counts all federal public employee retirement plans toward 12-6-1170, and NOAA and PHS retired pay gets no 12-6-1171 deduction, so it now counts on line 4 of the individual worksheet and on the survivor income line. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ral deduction for NOAA and PHS pay, and read RI birth year P.L.58-2025 added the space force and the PHS and NOAA corps to IC 6-3-2-4(a)(2) for taxable years after 2024, which settles the parameter's 2025 start. The old uscode.house.gov granule link returns 404. RI now reads birth_year so a birth_year input is respected; the changelog describes the per-person bool input rather than a share. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Ready for hub review Round 2 fix round for the round 1 review (#10655 (comment)). The head was Commits
Items
New cases, worked outputs (2022 SC values: cap 3,000 under 65 and 10,000 at 65+, senior exemption 15,000)
Tests at
|
|
Hub review in progress Head reviewed: Firm so far:
Still running: the remaining YAML files. Generated by Claude Code |
|
Ready for hub review The head is
I couldn't read the law behind any of them (see "What I couldn't check"). Round 1's two P1s and its first two P2s are fixed. No finding below changes a result at default inputs. The one P2 is a false sentence in the body, which the hub owns. FindingsP2. The body's first invariant is false: the RI fix moves existing results
P3. RI: the gate ignores a
|
| file | before | after |
|---|---|---|
| IN | 5 | 7 |
| ND | 5 | 7 |
| NM | 10 | 11 |
| RI military | 5 | 6 |
| RI retirement | 15 | 18 |
| SC military individual | 2 | 3 |
| SC military survivors | 6 | 7 |
| SC retirement individual | 6 | 9 |
| SC retirement survivors | 12 | 13 |
| new variables | 0 | 4 (2 + 2) |
That is 19 new cases, as the body says. Replace "SC individual (5), SC survivors (1)" with "SC retirement deduction (3), SC military deduction (1), SC military survivor deduction (1), SC survivor retirement deduction (1)".
Delta checks
The merges
- Net change unchanged. I ran
git diff db7b2a1501 660424bbd9 > old.diff, thenT=$(git merge-tree --write-tree 36d6029ce5 0315452583 | head -1)andgit diff "$T" 9881c3d9d3 > new.diff. Each diff is 587 lines, anddiff old.diff new.diffprints nothing, not evenindexlines. The two merges add nothing to the PR's own change. - Restrict military survivor tax exemptions to eligible spouses #10398 at
e74e561be8.git merge-tree --write-tree --name-only e74e561be8 b8b3e6c860exits 0 and lists no conflicted file. Since36d6029ce5, Restrict military survivor tax exemptions to eligible spouses #10398 has changedaz_military_retirement_subtraction.yaml,az_public_pension_exclusion.yamlandsource_conflicts/candidates.yaml. None of them is in this PR's own diff.
Round 1's P1s: the code-health test and the CI line
- The entry.
test_military_retirement_readers.py:47-50adds the brief's entry, aftermilitary_retirement_income.py. - The test. At the head:
4 passed. With the entry removed it fails onvariables/household/income/person/retirement/armed_forces_retirement_pay.py:19. - The scope. The allowlist exempts that one file.
armed_forces_retirement_pay_survivors.pyreads only the survivors string, which the test allows. - CI. Pull request run 41961438128 at the head shows
completed / success, with 36 of 36 jobssuccess. The body's CI sentence is true.
Round 1's P2-1: SC
Hand values, worked from the 2022 parameters before I read the YAML. The 2022 parameters are: cap 3,000 under 65 and 10,000 at 65 or older; senior exemption 15,000 at 65 or older, reduced by sc_retirement_deduction_indv + sc_military_deduction_indv.
| case | military | line 3 | line 4 | retirement | senior |
|---|---|---|---|---|---|
| (1) age 70, NOAA/PHS pay 11,000, pension 1,000 | 0 | 10,000 | 1,000 + 11,000 − 0 = 12,000 | 10,000 | 15,000 − 10,000 = 5,000 |
| (2) age 60, armed forces pay 2,000, pension 750 | 2,000 | 3,000 − 2,000 = 1,000 | 750 + 2,000 − 2,000 = 750 | 750 | — |
| (3) age 70, armed forces pay 5,000, pension 1,000 | 5,000 | 5,000 | 1,000 | 1,000 | 9,000 |
(4) survivor: deceased spouse 72, NOAA/PHS annuity 4,000, pension_survivors 1,000 |
0 | 10,000 (line 1) | 1,000 + 4,000 = 5,000 | 5,000 | — |
The YAML matches all four.
No double count. taxable_pension_income adds only taxable_public_pension_income and taxable_private_pension_income. Military pay enters gross income through military_retirement_income in gov.irs.gross_income.sources, so line 4 doesn't count it twice. pension_survivors is a plain input.
The invariant holds. Each dollar reaches one line, never both. With the flag true, armed_forces_retirement_pay equals military_retirement_pay, so line 4's new term is 0 and the 12-6-1171 deduction takes the pay. With the flag false, the 12-6-1171 deduction is 0 and line 4 takes the pay. sc_military_deduction_indv reads only armed_forces_retirement_pay. The flag is one bool per person, so a person can't split pay between the two.
Round 1's witness at the head. 2022, age 70, military_retirement_pay 11,000, taxable_pension_income 1,000:
| flag false | flag true | |
|---|---|---|
sc_military_deduction |
0 | 11,000 |
sc_retirement_deduction |
10,000 | 0 |
sc_senior_exemption_person |
5,000 | 4,000 |
| total subtracted | 15,000 | 15,000 |
sc_taxable_income, no wages |
0 | 0 |
sc_taxable_income, 40,000 wages |
22,300 | 22,300 |
sc_income_tax, 40,000 wages |
792.10 | 792.10 |
The flag changes the result when the pay is large. With 30,000 of pay and 40,000 of wages:
| flag false | flag true | |
|---|---|---|
| age 70: taxable income | 41,300 | 26,300 |
| age 70: tax | 2,027.10 | 1,052.10 |
| age 60: taxable income | 55,050 | 28,050 |
The senior exemption. sc_senior_exemption_person subtracts sc_retirement_deduction_indv + sc_military_deduction_indv from 15,000. With the flag true, line 4's new term is 0, so no flag-true result moves. Six SC households at default inputs (2022, 40,000 of wages) give identical sc_military_deduction, sc_retirement_deduction, sc_senior_exemption_person, sc_taxable_income and sc_income_tax at the head and at #10398 merged with main. One of them is a surviving spouse. I couldn't read the 2022 SC1040 line w worksheet, so I can't say whether its order holds for NOAA and PHS retirees.
Round 1's P2-2: Indiana
- The file.
uniformed_services_eligible.yamlis false from 2021 and true from 2025. The "Unverified" lines are gone, and the 2021 Code reference stays. - Its one reader.
in_military_retirement_deductionreads rawmilitary_retirement_payand survivor pay when the parameter is true, and the armed-forces amounts when it is false. It is the parameter's only reader. - Not reached. I couldn't reach iga.in.gov, so I have no file pages and no confirmation of the 2025 date (see the P3 above).
Round 1's P3s
- The changelog now says "an input that marks", which matches the per-person bool.
- The survivors justification. "as the survivors variant already does" is gone from the body. The body's survivors sentence matches
sc_retirement_deduction_survivors.py:39-49. - RI
birth_year. I ran the three cases in the P3 above.
Mutants
Each ran on a scratch worktree at the head, one process each, and git status was clean after each.
| mutant | result | killed by |
|---|---|---|
(a) line 4 without + military_retirement_pay - armed_forces_retirement_pay |
1 failed, 8 passed |
"South Carolina counts NOAA or PHS retired pay…", the only flag-false case in the file |
| (b) the survivor line without the two terms | 1 failed, 12 passed |
"A surviving spouse deducts a NOAA or PHS survivor annuity…", the only flag-false survivor case |
(c) line 4 without - armed_forces_retirement_pay |
3 failed, 6 passed |
"Case 4, below age threshold, military retirement deduction lower than cap"; "A filer under 65 deducts the entire $750…"; "South Carolina keeps armed forces retired pay… off line 4" |
(d), mine: * head_or_spouse on p.sources only |
9 passed |
survives (see the P3 above); the proposed dependent case kills it |
(e), mine: drop the new ALLOWED_PYTHON_FILES entry |
1 failed, 3 passed in test_military_retirement_readers.py |
test_benefit_python_does_not_read_raw_military_retirement_pay |
(f), round 1's line 2 mutant rerun at this head: line 2 reads military_retirement_pay |
1 failed, 8 passed |
the renamed NOAA/PHS case, as the body says |
The body: statements the new commits made stale
- "With the default input, every existing result is unchanged…" (see the P2 for the replacement).
- "…so a
birth_yearinput is respected." (see the RI P3 for the replacement). - "SC individual (5), SC survivors (1)" (see the last P3 for the replacement).
- Everything else I checked holds:
- the stacking note;
- the line 2 and line 4 justifications, which rest on sources I couldn't read;
- the Follow-ups list (Idaho H0479, Michigan MCL 206.30 2024–2025, Indiana 2019–2020 at 25% and 50%);
- the mutant list;
- the counts: 25 YAML files,
test_military_retirement_readers.py4,test_source_conflicts.py103,test_mi_military_survivor_income_invariants.py3; - the CI sentence.
- The
impact:andaxiom:lines exist. I left them alone as the brief asks; theaxiom:line is still a placeholder.
What the brief asked for that the PR doesn't do
- Indiana's title. The brief's own title gives printed pages, which the repository's rule doesn't allow (see the P3).
- Everything else. Items 1 to 11 are done as the brief wrote them. I checked each in the diff
9881c3d9d3..b8b3e6c860.
Checked and sound
- The defect. The RI defect reproduces at main and is fixed at the head (see the P2 table). The hand values match.
- YAML tests. 25 files in the branch's diff against main, one process each, all pass:
- 220 passed, 0 failed: az_military_retirement_subtraction 12, az_public_pension_exclusion 7, id_retirement_benefits_deduction 8, id_military_retirement_deduction 9, in_military_retirement_deduction 7, mi_interest_dividends_capital_gains_deduction 6, mi_expanded_retirement_benefits_deduction 11, mi_retirement_benefits_deduction_tier_one_amount 20, mi_retirement_benefits_deduction_tier_three_ss_exempt_not_retired 12, mi_retirement_benefits_deduction_tier_three_ss_exempt_retired 7, mi_standard_deduction_tier_three 8, mi_standard_deduction_tier_two 4, mi_military_retirement_subtraction 8, mi_taxable_income 5, nd_military_retirement_subtraction 7, nm_armed_forces_retirement_pay_exemption_person 11, ri_military_retirement_subtraction 6, ri_retirement_income_subtraction 18, sc_military_deduction_indv 3, sc_military_deduction_survivors 7, sc_retirement_deduction_indv 9, sc_retirement_deduction_survivors 13, va_military_benefit_subtraction 18, armed_forces_retirement_pay 2, armed_forces_retirement_pay_survivors 2. The CI run's YAML shards cover the rest.
- Python tests, one process each:
test_military_retirement_readers.py: 4 passed;test_source_conflicts.py: 103 passed;test_mi_military_survivor_income_invariants.py: 3 passed.
- Readers.
armed_forces_retirement_pay:sc_retirement_deduction_indv,sc_military_deduction_indv,ri_military_retirement_subtraction,nm_armed_forces_retirement_pay_exemption_person,nd_military_retirement_subtractionandin_military_retirement_deduction.armed_forces_retirement_pay_survivors: the same, with the two SC survivors variables in place of the individual ones.military_retirement_pay_is_armed_forces: only the twoarmed_forces_*variables.uniformed_services_eligible: onlyin_military_retirement_deduction.sc_retirement_deduction_indv:sc_retirement_deductionandsc_senior_exemption_person.sc_retirement_deduction_survivors:sc_retirement_deduction.ri_retirement_income_subtraction: RI'ssubtractions.yaml.- No reader gets worse at the default.
- Baseline. At baseline, item 5 can't move any output: the flag defaults to true, and the microdata has no source for it. The RI change moves results, so the population check should be RI only. Count the joint filers below the AGI limit where only one spouse meets the birth-year threshold, and the change in
ri_agiand RI tax. - Scope. None of the 66 files is under
.github/orpolicyengine_us/tests/policy/baseline/partners/. - Overlap. Open-PR searches on each changed variable name return only Apply Rhode Island’s retirement age test per spouse and add separate armed forces pay inputs #10655 and Restrict military survivor tax exemptions to eligible spouses #10398. Restrict military survivor tax exemptions to eligible spouses #10398 is the known base and merges without conflict.
What I couldn't check
- All legal text.
- Hosts refused (proxy 403 on CONNECT, and DNS refused through the fetch tool): scstatehouse.gov, dor.sc.gov, uscode.house.gov, govinfo.gov, ecfr.gov, iga.in.gov and web.archive.org.
- Readings unconfirmed: 10 U.S.C. 101(a)(4)–(5); S.C. Code 12-6-1170(A)(2), (B) and (C)(1); Revenue Rulings 21-13 and 22-11 (including Example 1); the 2022 SC1040 line w worksheet; and P.L.58-2025's text, date and file pages.
- The new
uscode.house.gov/us/usc/t10/s101/link may not resolve. The PR's legal readings rest on the hub's reading alone.
- Population impact of the RI change: this needs data I can't reach.
Generated by Claude Code
…on line 4 and cite Indiana DOR pages Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PR Review: Apply Rhode Island's retirement age test to each spouse and add an armed forces pay inputSummaryThis PR makes two changes.
I read the governing law before the code: R.I. Gen. Laws 44-30-12(c)(9) and (c)(11), 20 C.F.R. 212.2, the 2021–2025 RI-1040 instructions, the 2026 RI retirement income guide, S.C. Code 12-6-1170 and 12-6-1171, SC Revenue Ruling 22-11, NM 2022 HB 163, N.D.C.C. 57-38-30.3(2)(r) and the Tax Commissioner's guideline, Indiana HEA 1280 (via the DOR's 2025 synopsis and IB 27), and 10 U.S.C. 101(a). The code matches the law, or the agency's gap-filling reading of it, in every claimed year I checked. The new input is not a duplicate. The nearest existing variables are:
None of them separates NOAA and PHS retired pay from armed forces retired pay. Tests and guards. Every new branch and term is pinned. CI is 36/36 green at the head, and the merged tree passes the military retirement readers guard. Two items remain open:
CriticalNone. Should addressS1. The Space Force readings for Indiana before 2025 and for North Dakota differ from the agencies' stated coverage, and neither is recorded per CONTRIBUTING.md#source-conflicts.
S2. Two new reference titles put a single page number in the title.
Suggestions
Verified correct
Axiom line assessmentThe line reads: rulespec-us #1875, #1877, #1878, #1879 and #1880 queued, extended with comments. I checked all five, and the line is valid.
CI status
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 (Space Force treated as armed forces for IN 2021-2024 and ND against DOR/Commissioner guidance without a source-conflict record; single-page titles in two references), 7 suggestions.
Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
…fication Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
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: 10655
Reviewed head SHA: 8568030
Merge base SHA: 094934a
Mode: incremental from c37d915
Scope: changed behavior and affected dependencies
Source manifest: /private/tmp/policyengine-command-runs/ea33c0bb2b64/pr-10655-review-sources.json
Review status: COMPLETE
Source Documents
- in-synopsis-2025.pdf — cached original.
- in-ib27.pdf — cached original.
- nd-military-guideline.pdf — cached original.
- nd-t57c38.pdf — cached original.
- ri-44-30-12.htm — cached original.
- ri-1040-instr-2025.pdf — cached original.
- ri-guide-2026.pdf — cached original.
- sc-rr22-11.pdf — cached original.
- sc-12-6-1170.htm — cached original.
Critical
None.
Should Address
A1 — The queued rulespec-us issues describe the superseded single-flag design (OPEN)
- Location: PR body
axiom:line; rulespec-us #1875, #1877, #1878, #1879 and #1880. - Trigger: this head splits the classification into two inputs. It also changes RI (entered birth years, gate reads birth year), SC (zero floors, survivor caps) and the IN/ND Space Force readings.
- Expected: CLAUDE.md "Axiom Parity" says a queued issue must be dispatch-ready, with required outputs and companion tests matching the PR's YAML.
- Observed: each issue is OPEN and labelled pe-parity. Its only comment (2026-11-05 14:02 UTC) extends it for head
c37d915385and describes one shared flag,military_retirement_pay_is_armed_forces. The PR body concedes this: "Their existing extension comments describe one shared classification for both payments. Companion cases for this PR need separate own-pay and survivor-annuity classifications." - Impact: an encoder dispatched from these issues would encode the superseded design and miss the new companion cases. The prior review's "line is valid" finding no longer holds.
- Source:
gh issue viewon the five issues, run read-only on 2026-12-02. - Proposed severity: should-address.
- Fix: post a refreshed extension comment on each issue for head 8568030, covering the two flags, the new YAML cases and the Space Force candidates (#1875, #1877), plus the RI entered-birth-year cases (#1879).
Coordinator assessment: This is the only blocking item. The code is ready: the code review found nothing new, and every changed branch has a case that fails without it. Refreshed extension comments on #1875, #1877, #1878, #1879 and #1880 for 8568030 clear it.
Suggestions
S1 — The Indiana candidate's statute reading is conditional, and the earlier statute text is not captured (OPEN)
-
Location:
source_conflicts/candidates.yaml, itemus-in:military-retirement-space-force-before-2025. -
Observed:
readings.statutereads "If the earlier statute used an inclusive list, filers can rely on the general armed forces category…".- The note says "The General Assembly pages did not expose the earlier code or enrolled act for verification."
- No capture of the pre-2025 IC 6-3-2-4 or the HEA 1280 text was added. CONTRIBUTING.md step 1 asks for a capture when the corpus lacks the text, because step 2 pins it under
pending_texts.
-
Expected: a reading stated against the actual text. The prior review quoted it as "armed forces of the United States, including the army, navy, air force, coast guard, marine corps, merchant marine, Indiana army national guard, or Indiana air national guard". Sources should also be captured or available in the corpus before step 2.
-
Ruling question: the ruling should also weigh CONTRIBUTING.md's "The agency breaks true ties". Three things point that way:
- HEA 1280 adds the Space Force expressly;
- Sec. 3 makes the change apply only to taxable years after 2024;
- IB 27 dates coverage to 2025.
Together these may make this a tie the agency breaks, not a statute-first case.
-
Impact: for 2021–2024 the model's result for a Space Force retiree rests on an open, unverified reading. The record itself is disclosed and complete for step 1.
-
Proposed severity: suggestion.
Evidence Gaps
No material gaps reported.
Notes
- This round covers the eight author commits since the 11-06 review and two merges of main.
- Should 1 (Space Force for IN before 2025 and for ND, with no conflict record): Two candidates,
us-in:military-retirement-space-force-before-2025andus-nd:military-retirement-space-force, now carry every field CONTRIBUTING.md step 1 requires, with legend values. YAML cases pin them, andtest_source_conflicts.pypasses. - Should 2 (page numbers in reference titles): RESOLVED.
- Suggestions 2, 4, 5 and 6 are resolved.
-
- Survivor reads are pinned. Each case fails when the state reads the raw survivor amount.
-
- The RI gate now uses an entered birth year.
-
- RI now cites 44-30-12(c)(9)(i)(B), the 2025 RI-1040 instructions p. 10 and the 2026 guide p. 12.
-
- A separate
military_retirement_pay_survivors_is_armed_forcesinput now classifies survivor annuities. That lets a NOAA or PHS retiree with an armed forces SBP annuity be represented.
- A separate
- Still open (optional): Suggestion 1 (RI exact cutoff dates, listed as a follow-up), Suggestion 3 (which failures only the Python test catches) and Suggestion 7 (the
impact:line is still pending). - New behavior verified:
-
- RI. The per-spouse test with entered birth years follows the statute's per-individual age and the forms' per-column "born on or before" test.
-
- SC. The survivor split follows 12-6-1170(A)(3), (B) and (C)(1): separate own and survivor caps, and survivor deductions left out of the senior reduction.
-
- IN. 2024 counts only the armed forces survivor annuity, giving $8,000. 2025 counts all uniformed services pay under HEA 1280, giving $20,000.
-
- ND, NM and RI. These exclude NOAA and PHS survivor annuities.
- Both merges of main keep main's entries.
Validation Summary
Local tests at the reviewed head (review venv, policyengine-core 3.37.2, matching uv.lock; imports resolved to the snapshot): the RI, IN, ND, SC, NM and other touched income tax folders (159 files, 1,170 cases) passed with 0 failures before the runner stopped at its deadline after the last file. 291 pytest tests passed, including test_source_conflicts.py and the invariant test. Mutants reading the raw survivor amount, or applying the own-pay flag to survivors, fail the new cases. Sources: R.I. Gen. Laws 44-30-12 and the 2025 RI-1040 instructions and 2026 guide; S.C. Code 12-6-1170 and 12-6-1171; HEA 1280 and IN IB 27; N.D.C.C. 57-38-30.3; manifest check passed. CI: 35/35 checks pass at 8568030.
Timing
setup seconds: 6.00s; scope seconds: 60.00s; parallel review seconds: 1267.80s; policy role seconds: 353.50s; code role seconds: 1267.80s; adjudication seconds: 90.00s; consolidation cleanup seconds: 37.80s; elapsed seconds: 1790.00s
Review Severity
COMMENT. Open findings: 0 critical, 1 should address, 1 suggestions.
Applies Rhode Island’s pension and annuity age test to each spouse. Adds separate armed forces classifications for own military retirement pay and survivor annuities.
Rhode Island's age test
The Division of Taxation limits the modification to "retirement income received by the taxpayer born on or before March 1, 1959" in its 2025 RI-1040 instructions. Its 2026 retirement income guide adds that, when one spouse has reached full retirement age, the modification "applies only to that spouse's taxable pension and annuity income."
The tax-unit gate honors a birth year supplied for either filer and keeps the older-spouse test when neither filer supplies one. The subtraction tests each spouse separately and uses the unrounded age-based year for anyone who supplies only age.
For example, a 2025 joint return with a 70-year-old's $10,000 pension and a 60-year-old's $30,000 pension now subtracts $10,000, down from $40,000. For 2024, the same couple subtracts $10,000, down from $30,000.
The input represents birth year. An entered 1959 meets the 2025 cutoff at year precision. The exact 2025 and 2026 cutoff dates are left for a follow-up.
Armed forces pay
Congress defines the two groups in 10 U.S.C. 101(a):
Paragraph (5) defines the uniformed services as the armed forces plus the commissioned corps of the National Oceanic and Atmospheric Administration and of the Public Health Service.
military_retirement_pay_is_armed_forcesclassifies own pay.military_retirement_pay_survivors_is_armed_forcesclassifies survivor annuities. Both are Person booleans and default to true. Set the flag for the relevant payment to false for NOAA or PHS pay. The two derived armed forces amounts,armed_forces_retirement_payandarmed_forces_retirement_pay_survivors, feed these state rules:in_military_retirement_deductionnm_armed_forces_retirement_pay_exemption_personnd_military_retirement_subtractionnd_military_retirement_subtractionfollows the statutory armed forces category, which includes the Space Force under federal law. The Tax Commissioner’s guideline lists five services. N.D.C.C., p. 35 · Tax Commissioner guideline, p. 2ri_military_retirement_subtractionri_military_retirement_subtractionuses the military service definition incorporated in § 44-30-12(c)(11)(ii). Rhode Island statute · 20 C.F.R. § 212.2sc_military_deduction_indv,sc_military_deduction_survivorsRhode Island's general pension modification keeps pay that misses the military subtraction, because its sources include
military_retirement_income. In Indiana, the new parametergov.states.in.tax.income.deductions.military_retirement.uniformed_services_eligibleturns true in 2025 and sends all military pay through the deduction.The source-conflict candidates record the different Space Force readings for North Dakota and pre-2025 Indiana. North Dakota follows the statute. Indiana’s interpretation remains provisional pending verification of the historical law and a ruling.
South Carolina's general retirement deduction
South Carolina’s general retirement deduction includes eligible NOAA and PHS own pay and survivor annuities. Both general deductions have a zero floor. Both calculations subtract the armed-forces amount from gross pay before adding civilian pension income. A $750.01 civilian survivor pension remains $750.01 when paid alongside a $167,000 armed-forces survivor annuity. S.C. Code § 12-6-1170
Section 12-6-1170(C)(1) reduces the deduction "by the amount the taxpayer deducts pursuant to Section 12-6-1171", and line 2 of the Department's 2022 worksheet reads "Taxpayer's military retirement deduction (line p-4)". Line 2 of
sc_retirement_deduction_indvnow subtractssc_military_deduction_indvin place of gross military pay.Invariants
policyengine_us/tests/core/test_military_retirement_armed_forces_invariants.pychecks these on seeded tax units for 2022, 2024, 2025 and 2026:Synthetic Rhode Island cases show the effect for joint filers with one eligible spouse and for an age-only filer just below the threshold. Entered birth years govern when supplied. The South Carolina mixed-payment case produces a $3,000 general deduction and a $12,000 military deduction.
Tests
New YAML cases (42): Indiana (6), North Dakota (3), New Mexico (2), Rhode Island (12), South Carolina (15), and the derived variables (4). Existing expected outputs are unchanged. Eight existing Rhode Island cases now supply an age. The readers guard in
test_military_retirement_readers.pyallowsarmed_forces_retirement_pay.pyto read gross own pay. Open #10726 also edits that guard.YAML covers the state calculations, including South Carolina’s own and survivor precision and Indiana’s mixed own-pay and survivor classifications across 2025. The Python suite compares 24 matched tax units per state and year across five states and four years. Pytest reported 36 passes in 0.49 seconds on Linux. The full command took 35 seconds. Peak memory was not measured.
Not in this PR
birth_yearinput represents the year.impact: Synthetic households confirm the Rhode Island per-filer result, the South Carolina survivor cap results, and the $750.01 civilian survivor deduction. The 2026 default-dataset comparison with main remains pending.
axiom: TheAxiomFoundation/rulespec-us#1875, TheAxiomFoundation/rulespec-us#1877, TheAxiomFoundation/rulespec-us#1878, TheAxiomFoundation/rulespec-us#1879 and TheAxiomFoundation/rulespec-us#1880 queued. Their existing extension comments describe one shared classification for both payments. Companion cases for this PR need separate own-pay and survivor-annuity classifications.
🤖 Generated with Claude Code