Skip to content

Add Indiana's, Massachusetts's and West Virginia's claim of right repayment deductions - #10196

Merged
MaxGhenis merged 76 commits into
mainfrom
in-ma-wv-claim-of-right
Nov 9, 2026
Merged

MaxGhenis merged 76 commits into
mainfrom
in-ma-wv-claim-of-right

Conversation

@MaxGhenis

@MaxGhenis MaxGhenis commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Indiana, Massachusetts and West Virginia each take a repayment of income held under a claim of right off the state base, whichever federal method applies. PolicyEngine had none of the three, so a repayment changed nothing in these states. This PR adds them.

  • in_claim_of_right_deduction (tax unit), with the person input in_claim_of_right_repayment_excluded_from_income. It joins every year block of gov.states.in.tax.income.deductions.deductions (IT-40 Schedule 2, code 630).
  • ma_claim_of_right_deduction (tax unit), with the person input ma_claim_of_right_repayment_excluded_from_income. It joins ma_part_b_taxable_income_deductions (Schedule Y line 14).
  • wv_claim_of_right_subtraction (person), with gov.states.wv.tax.income.subtractions.claim_of_right.threshold ($3,000). It joins gov.states.wv.tax.income.subtractions.subtractions (Schedule M, "IRC 1341 Repayments", line 42 in 2025).

The law

Indiana. IC 6-3-1-3.5(a)(22), as set out in HEA 1001-2021 section 71 (PDF p. 117), subtracts "an amount as described in Section 1341(a)(2) of the Internal Revenue Code" to the extent it "was previously included in the taxpayer's adjusted gross income for a prior taxable year".

The 2025 IT-40 instructions, deduction 630 (PDF p. 23) state a general rule that asks whether the filer could itemize the repayment or claim the credit federally. The footnote to Example 1 then allows a $345 repayment of unemployment compensation although "he cannot claim miscellaneous itemized deductions for federal purposes". The example takes off $15 because the earlier year's unemployment compensation deduction, refigured, falls by that much, giving $330. Example 2 deducts $3,400 repaid by a filer who claimed the federal credit. Repaid Social Security gets nothing, "since Indiana has not previously taxed this income". The 2018 instructions (PDF p. 23) carry the same rule and examples, and their footnote says only that the filer may have taken the standard deduction.

Massachusetts. M.G.L. c. 62, s. 3(B)(a)(14) deducts the amount described in section 1341(a)(2) to the extent it "(i) was previously included in Massachusetts taxable income and (ii) is not otherwise deductible under section 2(d)(1) of this chapter". The 2025 Form 1 instructions (PDF p. 21) list "Repayment of unemployment compensation and supplemental unemployment benefits in a subsequent year" among the cases and send the amount to Schedule Y, line 14. Neither text has a $3,000 threshold or refers to the federal method.

West Virginia. The 2025 IT-140 instructions, Schedule M line 42 (PDF p. 29) say: "Enter the amount of money paid back under IRC 1341. ... The amount of income repaid MUST be more than $3,000.00 to qualify." The line decreases income (PDF p. 5) and doesn't depend on the federal method. From 2020 it has its own line with the $3,000 text and points to federal Publication 525 (2020 line 40, PDF p. 24). In 2017–2019 it shared a check-one line with long-term care insurance, and the instructions said only "money paid back under IRC 1341" (2017 line 50, PDF p. 23).

The January 2026 tax expenditure study (PDF p. 49) lists the modification with the same condition and cites W. Va. Code 11-21-12(c)(4), whose current text covers income tax refunds. We found no statutory paragraph that names repayments, so the model follows the instructions.

Design notes

  • None of the three reads the federal method. Neither claim_of_right_credit_applies nor federal itemizing enters them. Under the federal credit method, section 1341(b)(3) keeps the federal deduction out of everything else, and these states give their own relief anyway, so the repayment lowers state tax under either method.
  • Indiana and Massachusetts deduct any amount. Both texts refer to the deduction described in section 1341(a)(2), and neither states the $3,000 test in (a)(3). IC 6-3-1-11(b) could import federal allowability through Indiana's cross-reference, and the IT-40 general rule asks for federal eligibility. But the paragraph states its own limit, income previously included in AGI, and the Example 1 footnote allows a repayment the federal return can't deduct, so we follow the paragraph. Massachusetts DOR's differences from federal tax law allows this deduction regardless of the repayment amount, provided Massachusetts previously taxed it and it isn't otherwise deductible in computing Massachusetts income. TIR 06-4 explains the deduction and dates it to tax years beginning on or after January 1, 2005.
  • West Virginia's $3,000 has its own parameter, because its instructions state the amount. The model tests the head's and spouse's total, as IRS Publication 525 (which the instructions cite) does for section 1341.
  • Indiana and Massachusetts deduct only income they taxed when received. Each gets a person-level leaf input for the part they didn't tax, and both default to zero. For Indiana, that covers repaid Social Security or the part of the earlier unemployment compensation deduction attributable to the repaid amount (Example 1: $73 originally claimed minus $58 refigured = $15). For Massachusetts, it covers income that Massachusetts taxable income left out.
  • West Virginia's senior modification keeps its base. Line 47's box (c) counts "all income ... not reported on lines 35 through 48" (2025 instructions, PDF p. 29), and W. Va. Code 11-21-12(c)(9) allows $8,000 of income included in federal AGI. A repayment adds no income, so it doesn't reduce that base: a 70-year-old with $9,000 of wages who repays $4,000 gets the full $8,000 senior modification plus the $4,000 repayment modification.
  • Indiana and Massachusetts sum the head's and spouse's amounts. West Virginia keeps each spouse's own repayment in their Schedule M column. A dependent's repayment belongs on the dependent's own return.
  • Indiana's repayments move out of the catch-all input. in_other_subtractions now lists code 630 among the deductions PolicyEngine computes. An Indiana user who entered a repayment there should move it to claim_of_right_repayment, or it counts twice. The comment on Massachusetts's 529 deduction now cites (B)(a)(19), since (14) holds this deduction.
  • The Indiana and West Virginia relief also reaches 2015–2020. Each state's list starts in 2021, and the model extends the list's first entry back to 2015 (policyengine_us/system.py). We haven't checked those years against each year's law.

Illinois and Ohio (#10195), New Jersey (#10198), Hawaii (#10200) and Arkansas (#10203) use the same federal input in their own PRs.

Household examples (2025, single, age 40)

Household No repayment With the repayment
Indiana: wages $40,000, repays $3,400 (Example 2), federal decrease $400 Federal $2,671.50; IN $1,170 Federal $2,271.50 (credit); IN $1,068 ($102 less: 3% of $3,400)
Indiana: wages $40,000, repays $2,000 IN $1,170 IN $1,110
Massachusetts: wages $60,000, repays $2,000 MA $2,680 MA $2,580
Massachusetts: wages $60,000, repays $10,000, federal decrease $2,200 Federal $5,071.50; MA $2,680 Federal $2,871.50 (credit); MA $2,180
West Virginia: wages $40,000, repays $10,000, federal decrease $2,200 Federal $2,671.50; WV $1,098.90 Federal $471.50; WV $765.90

Tests

Each YAML case takes its expected values from the cited form:

  • gov/states/in/tax/income/deductions/in_claim_of_right_deduction.yaml, 11 cases. They cover Indiana's Examples 1 ($330) and 2 ($3,400), repaid Social Security, the standard-deduction filer under the federal deduction method, a joint return with a dependent, and another state. They also cover Indiana AGI and tax at 3%, the same $870 tax under each of three fixed federal methods, and the same $870 from the existing in_other_subtractions input.
  • gov/states/ma/tax/income/deductions/ma_claim_of_right_deduction.yaml, 10 cases, including a $2,000 repayment and Part B taxable income ($2,000 FICA cap plus the deduction, $4,400 exemption). Others give the same $43,600 under each of three fixed federal methods and take Part B income to zero with a $60,000 repayment.
  • gov/states/wv/tax/income/subtractions/wv_claim_of_right_subtraction.yaml, 11 cases, including repayments of $3,000 and $3,001, two spouses at $2,000 each, and WV AGI and taxable income. Others leave the senior modification at $8,000 (WV AGI then -$3,000, taxable income $0) and give the same $28,000 taxable income under each of three fixed federal methods.

Invariants the YAML asserts

  1. Method independence. Each state's result stays the same with the federal credit method fixed, the deduction method fixed with itemizing, and the deduction method fixed with the standard deduction.
  2. Amounts. Indiana's and Massachusetts's deductions equal the whole repayment at every amount, less what the state didn't tax. West Virginia's equals the whole repayment when the return's total exceeds $3,000, and zero otherwise.
  3. Dollar for dollar. Indiana and West Virginia AGI fall by the deduction, and Massachusetts Part B income falls by the deduction until it reaches zero.
  4. Differential. Indiana's tax with a repayment equals its tax with the same amount entered through the existing in_other_subtractions input.

Making West Virginia's threshold inclusive, raising it to $3,999, gating West Virginia on the federal method, dropping Massachusetts's deduction from Part B, or limiting Indiana's to repayments over $3,000 each fails the YAML.

test_claim_of_right_section_1341_properties.py now holds an explicit, sourced map of the states whose own relief applies under the federal credit method. Each listed state whose variable exists must lower the household's tax by more than $1, and every other state stays unchanged, apart from the three that deduct federal tax. #10195, #10198, #10200 and #10203 carry the identical file, so they merge in any order.

Microsimulation impact

We estimate no change in 2025. No record in the default dataset carries claim_of_right_repayment, and each new amount needs a repayment, so no record changes in in_agi, ma_part_b_taxable_income, wv_agi, state_income_tax, income_tax or household_net_income.

Axiom

axiom: TheAxiomFoundation/rulespec-us#1794 queued

No rulespec-us module encodes any of the three, and us-ma/statutes/62/3.yaml encodes the exemptions without (B)(a)(14). The corpus holds (a)(22) at us-in/statute/6-3-1-3.5 and (B)(a)(14) at us-ma/statute/62/3/block-2. The active rulespec-us corpus pin lacks West Virginia form scopes, so the IT-140 instruction row needs admission first.

impact: none in 2025; no record in the default dataset carries claim_of_right_repayment

🤖 Generated with Claude Code

MaxGhenis and others added 17 commits October 9, 2026 08:50
G.S. 105-153.5(a)(2)d, added by S.L. 2016-5 for 2014 and later, lets North
Carolina itemizers deduct repayments of income included in AGI in an earlier
year under a claim of right (Form D-400 Schedule A line 8). Repayments above
$3,000 are deductible in full; smaller ones are reduced by 2% of federal AGI
less other miscellaneous itemized deductions, which the 2016 and 2025 NCDOR
worksheets both reproduce. PE had no input for these repayments, so it adds
claim_of_right_repayment (person level; only the head's and spouse's count)
and moves North Carolina's uncapped itemized items into a parameter list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…C taxed

Review r1 (subfleet 20261009-090558-nc-itemized-review):
- S.L. 2026-31 section 1.8 rewrites G.S. 105-153.5(a)(2)d for taxable years
  beginning on or after January 1, 2026: the repaid amount must have been
  included in AGI "as modified in G.S. 105-153.5 and G.S. 105-153.6" in the
  earlier year. New person input
  nc_claim_of_right_repayment_excluded_from_income (the part NC deducted when
  received, such as repaid Social Security) and a dated parameter apply it.
- Count only the head's and spouse's other miscellaneous expenses against
  the pre-2018 floor; a dependent's are on the dependent's return.
- The property grid now varies property taxes (so the $20,000 cap binds) and
  adds a 2026 grid for the excluded part.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…h Carolina's 1341(a)(5) bar and G.S. 105-266.2 payment (WIP)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…es that exclude them (AZ, KS, WI, MO, OR, VA); property tests

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…fragment

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…to keep it at two seconds

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…urn-level prior-year inputs, California and Montana flows

- The branches that fix the claim of right method start from inputs only, and
  the itemization branches settle the method in the parent first, so a tax
  liability calculated before the method is known cannot leak into them.
- Ties are compared to the cent, so a one-cent difference picks the credit.
- The prior-year federal decrease and NC increase are return-level inputs
  defined on chapter 1 and Article 4 tax.
- California leaves out the federal deduction (Schedule CA Part II line 16);
  Montana deducts it through 2023 (Form 2 itemized line 18).
- Section 67(g) is now 67(h); document the Arizona and NC coverage limits.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review r2 found that with itemization branching off, tax_liability_if_not_itemizing
used the parent's method when calculated first but chose its own after
income_tax. The itemizing branches now take the method as an input. A branch
keeps its parent's cache when an override equals the value the parent already
holds, so ordinary simulations still share it. Adds the review's Texas
household as an order test under both itemization settings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… branches only when someone qualifies

Review r3 showed that keeping a parent's cache when an override equals the
parent's current value can reuse tax calculated before another input
changed. Branches again drop inherited values whenever the parent knows an
overridden variable. The itemizing branches add the claim of right method as
an override only when some tax unit repays more than $3,000, so simulations
without a qualifying repayment keep sharing the parent's cache. Adds the
review's stale-parent sequence as a test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…th use tax

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ate property test

Under the federal credit method, section 1341(b)(3) keeps the repayment out of
every state that only follows the federal deduction, so their tax must not
change. States with their own claim of right relief may lower tax under either
method. The test now reads which states have their own rule from the model's
variable names (<state>_claim_of_right_...), so a state PR adds its variables
without editing this list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…epayment relief

These three take a repayment of income held under a claim of right off the
state base whichever federal method applies:

- Indiana (IC 6-3-1-3.5(a)(22), IT-40 Schedule 2 code 630): any amount, less
  what Indiana did not include in Indiana AGI when received.
- Massachusetts (M.G.L. c. 62, s. 3(B)(a)(14), Schedule Y line 14): any
  amount, less what Massachusetts did not tax when received.
- West Virginia (Schedule M, IRC 1341 Repayments): repayments over $3,000.
  The line sits inside the senior citizen modification's excluded range, so
  it is excluded from that base too.

Also corrects the Massachusetts 529 deduction's paragraph to (B)(a)(19).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…im of right relief

Over a grid with independent simulations: each state's tax is the same under
every federal method and itemizing choice; the deduction lowers Indiana and
West Virginia AGI and Massachusetts Part B income dollar for dollar (West
Virginia only above $3,000); Indiana tax equals a simulation using the
existing in_other_deductions input; and no state's tax rises.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…eral credit

Reviews of #10195, #10196 and #10198 found that reading own-rule states from
variable names weakened the cross-state test: North Carolina and Montana lost
their exact check, nothing asserted that a state's own relief actually lowered
its tax, and any future <state>_claim_of_right_ input would exempt a state.

Now an explicit, sourced map names each state whose relief applies under the
federal credit method and the variable that carries it. Under that method each
listed state whose variable is in the model must lower the household's tax by
more than $1, and every other state's tax must not change. The same commit is
on every state branch, so they still merge in any order.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MaxGhenis added a commit that referenced this pull request Oct 13, 2026
…eral credit

Reviews of #10195, #10196 and #10198 found that reading own-rule states from
variable names weakened the cross-state test: North Carolina and Montana lost
their exact check, nothing asserted that a state's own relief actually lowered
its tax, and any future <state>_claim_of_right_ input would exempt a state.

Now an explicit, sourced map names each state whose relief applies under the
federal credit method and the variable that carries it. Under that method each
listed state whose variable is in the model must lower the household's tax by
more than $1, and every other state's tax must not change. The same commit is
on every state branch, so they still merge in any order.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…old, YAML in place of Python

- The IRC 1341 repayments modification no longer reduces the senior citizen
  modification's base. Line 47 box (c) is "all income ... not reported on
  lines 35 through 48" and W. Va. Code 11-21-12(c)(9) counts $8,000 of income
  included in federal AGI; a repayment is not income. YAML case 7 now gives
  an $8,000 senior modification.
- West Virginia gets its own $3,000 threshold parameter (the instructions
  state it), applied to the head's and spouse's total as IRS Publication 525,
  which the instructions cite, does.
- The Python property file is replaced by YAML: each state's tax under the
  federal credit method, the deduction method with itemizing and the
  deduction method with the standard deduction (same hand-computed value
  three times), and Indiana's existing in_other_deductions path. Four
  single-line mutants each fail the YAML.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MaxGhenis added a commit that referenced this pull request Oct 13, 2026
…eral credit

Reviews of #10195, #10196 and #10198 found that reading own-rule states from
variable names weakened the cross-state test: North Carolina and Montana lost
their exact check, nothing asserted that a state's own relief actually lowered
its tax, and any future <state>_claim_of_right_ input would exempt a state.

Now an explicit, sourced map names each state whose relief applies under the
federal credit method and the variable that carries it. Under that method each
listed state whose variable is in the model must lower the household's tax by
more than $1, and every other state's tax must not change. The same commit is
on every state branch, so they still merge in any order.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MaxGhenis added a commit that referenced this pull request Oct 13, 2026
…eral credit

Reviews of #10195, #10196 and #10198 found that reading own-rule states from
variable names weakened the cross-state test: North Carolina and Montana lost
their exact check, nothing asserted that a state's own relief actually lowered
its tax, and any future <state>_claim_of_right_ input would exempt a state.

Now an explicit, sourced map names each state whose relief applies under the
federal credit method and the variable that carries it. Under that method each
listed state whose variable is in the model must lower the household's tax by
more than $1, and every other state's tax must not change. The same commit is
on every state branch, so they still merge in any order.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MaxGhenis and others added 2 commits October 13, 2026 02:34
- Massachusetts: a YAML case where the deduction exceeds Part B income
  (wages $60,000, repayment $60,000) shows Part B income stops at zero.
- West Virginia case 7 also asserts West Virginia AGI (-$3,000) and taxable
  income ($0).
- The changelog tells Indiana users to move a repayment from
  in_other_deductions to claim_of_right_repayment so it is not counted twice.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… comments

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Resolves the add/add conflicts with #10028's squash (557b539) by
keeping this branch's 26 U.S.C. 1341(a)(5) bar on the North Carolina
deduction, its added NC cases and the method fixture in the NC property
grid, and keeps both sides' Arizona itemized deduction cases.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MaxGhenis and others added 9 commits October 22, 2026 23:14
Conflicts resolved:
- Wisconsin itemized deduction credit: keep main's explicit Schedule 1
  component list (#10311) and add claim_of_right_deduction to it, so the
  section 1341 repayment stays in the credit base as this PR intends
  under Wis. Stat. 71.07(5)(a)6-7.
- Alabama and Wisconsin YAML tests: keep both sides' cases.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… 2025

The 2024 Form 2 Worksheet A reduces the federal deduction by the capped
state-income-tax addback before line 3's zero floor. The 2025 form stops
adjusting line 2 and reports the addback on Schedule I line 4, a Montana
addition after the floor, as MCA 15-30-2120(1) treats the (2)(j) item
alongside the other additions. A new boolean parameter is true in 2024 and
false from 2025 (2026 follows the 2025 form by convention), and both
mt_taxable_income_joint and mt_federal_deductions read it.

Adds 2025 and 2026 YAML witnesses (the review's AGI 10,000 / itemized
20,000 household gives 4,250 in 2025), keeps the 2024 pre-floor witnesses,
limits the property test to 2024, and points the misc_deductions comment at
mt_taxable_income_joint, which is what reads the federal base.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Ala. Admin. Code r. 810-3-15-.20(1)(d)2 subtracts all credits shown as
payments on the federal return, and its current text dates from a 2010
amendment, so it governs every year the parameter covers, not only 2021 on.
The legacy pre-2021 list (total AOC, no section 1341 credit or net PTC) is
dropped, and the 2020 case that pinned it now expects
5,000 - 1,000 - 1,500 - 1,000 - 750 = 750.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
main's backlog still described the code before this PR: AL, MO and WI as
following the worksheets and OR as unknown. The head follows the statute or
regulation in all four, so set pe_us.follows to statute and state to ruled,
replace the notes that said a model change was still needed, start AL's
years in 2015 (the corrected credit list now applies from the parameter's
first year), and cite ORS 316.685(1)(b), the EITC-only disregard the OR
code follows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The 2017 Montana Form 2 with Legal References now 404s at its original
address; cite the Wayback Machine copy of 2024-01-07, whose PDF p. 6
Schedule III lines 25, 26 and 28 the reviewer confirmed. Drop the "2023 HB
109" reference: its URL mixes HB0199 and HB0109, returns 404, and what it
was meant to support could not be confirmed; MCA 15-30-2120 is already
cited for the deduction.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Both cases set claim_of_right_credit as an input that neither formula reads,
so they only checked that income_tax passes through. They now use the
federal integration case 4 household (2025, $40,000 wages, $10,000
repayment, $2,200 prior-year decrease), where the credit method wins and
flows through income_tax: 2,671.50 - 2,200 = 471.50. Missouri deducts
25% x 471.50 = 117.875 and Oregon subtracts 471.50. Adding the credit back
in either formula fails its case.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
main's #10186 made the 2020 itemization choice compare two branches with
different AGI (the 2020 above-the-line charitable deduction), and no
invariant in this file ran on that path. Add 2020 to YEARS (last, so the
tests that read YEARS[0] and YEARS[1] keep 2025 and 2026) and run the
calculation-order test in 2020 as well. Every existing assertion is kept;
all 58 tests pass. Locally the file went from 182 s to 220 s and its peak
RSS from 3.2 GB to 3.5 GB.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The claim-of-right fragment described the Montana work as repayment
treatment, but from 2024 every Montana filer's taxable income now starts
from the federal base (all six mt_taxable_income_joint cases changed), and
every Alabama AOC claimant now subtracts only the refundable part.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…6 case

The old 2025 case supplied a positive QBI deduction at a binding floor, which
the model can't produce before 2026. From 2026 the 199A(i) $400 minimum can
exceed taxable income, so a derived household now pins the order: MCA
15-30-2101(22) and 15-30-2120(2)(i) add the deduction back to federal
taxable income before Form 2's line 7 floor, giving 0, not 400.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LwQq6JfLQkf8A2aNSw51a4
Once #10093 nets the premium tax credit in Oregon's subtraction, this
household's modeled credit would zero the subtraction. Pinning it keeps the
case isolating the section 1341 credit at 471.50.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LwQq6JfLQkf8A2aNSw51a4
YEARS is (2024,), so the Schedule 1-A draw and the year >= 2025 branches
never ran; YAML cases cover 2025 and 2026.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LwQq6JfLQkf8A2aNSw51a4
mt_taxable_income_joint computes its own deduction term from
taxable_income_deductions, which also holds the QBI deduction and the
Schedule 1-A deductions, so the two differ (e.g. 15,750 against 21,750 in
the 2025 tip case) and the formula can't read this variable.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LwQq6JfLQkf8A2aNSw51a4
The code applies the regulation's list from 2015, but worksheets before 2018
went unchecked, so the item can't claim a conflict for 2015-2017.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LwQq6JfLQkf8A2aNSw51a4
The comment argued from federal taxable income having no floor, which
would also remove the line 3 floor the code keeps for Montana's other
additions. The order follows the form: line 2 leaves the QBI deduction
out, and line 3 floors line 1 minus line 2 at zero.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LwQq6K4hbmpvP2YevFmELw
MaxGhenis and others added 7 commits November 6, 2026 14:16
Main removed gov.household.household_refundable_credits and
gov.household.household_tax_before_refundable_credits, which no formula
read after it dropped the abolish-tax structural reforms. This branch had
added North Carolina to both. The merge keeps the removal; this branch's
North Carolina entries stay in gov.household.household_refundable_state_credits
and the gov.states.household lists.

Main's new North Carolina use tax case under the payroll tax repeal enters
nc_income_tax, which this branch's state list no longer reads: the list now
counts North Carolina tax before refundable credits. The case now enters
nc_income_tax_before_refundable_credits, and its totals stay at 1,020.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#10094 also adds an entry to
source_conflicts/candidates.yaml. Git merges the two cleanly, and the
merged register keeps unique ids.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…usetts and West Virginia branch

The shared property test keeps main's two-state deduction list and its
Alabama, Missouri and Oregon case, and this branch's relief-state map.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… right branch

Main carries the federal section 1341 work, so its changelog fragments
leave this branch. The Oregon files and the candidate list follow main.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The changelog pointed Indiana users at an input that main renamed. Indiana's
documentation now states the instructions' general rule next to the example
that departs from it. The backlog items for Indiana, Massachusetts and West
Virginia now give the code and the reading this PR takes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@MaxGhenis
MaxGhenis dismissed DTrim99’s stale review November 9, 2026 08:58

David, 447056b resolves each item:

  • Should 1: the description's Axiom section carries the queued line for rulespec-us#1794.
  • Should 2: in_claim_of_right_repayment_excluded_from_income now gives the adjustment as the deduction claimed minus the deduction refigured ($73 − $58 = $15).
  • Should 3: case 11 of wv_claim_of_right_subtraction.yaml expects $3,001 for a $3,001 repayment.
  • Suggestion 1: ma_claim_of_right_deduction.py cites DOR's any-amount statement and TIR 06-4, and the design notes state both.
  • The California item from #10038: main carries that fix, and this branch includes it.
@MaxGhenis
MaxGhenis merged commit 717564f into main Nov 9, 2026
36 checks passed
@MaxGhenis

Copy link
Copy Markdown
Contributor Author

Merging at 447056bcd0 as an admin squash with --match-head-commit, past the required-review gate.

  • Checks: gh pr checks passes all 36 checks at this head, including pull request run 42582291485 (36 of 36 jobs). GitHub reports the PR MERGEABLE, and no change request stands: we dismissed DTrim99's review 5525181646 on 2026-11-09 with a mapping of each point to its fix.
  • An independent review at 54b4984725, after the merges of Model the claim of right repayment deduction and credit (26 U.S.C. 1341) and North Carolina's rules that depend on it #10038 and main, asked for one changelog fix: it sent users to a variable main had removed.
  • An independent delta review approved 447056bcd0. The commits after 54b4984725 change the changelog, documentation in in_claim_of_right_deduction.py and source_conflicts/candidates.yaml, and no formula or expected value moved.
  • On a tree that composes all five claim-of-right PRs on main at fc521b4f6c, the source-conflict guard (103 of 103) and the shared section 1341 property file (58 of 58) pass. So do the Indiana (11 of 11), Massachusetts (10 of 10) and West Virginia (11 of 11) cases.
  • The review ran each mutation the description lists, and each household figure in the description matches a simulation to the cent.

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.

3 participants