Repository navigation
Conversation
|
Overlap with #9898, which fixes the Maryland capital gains surtax base. It changes
|
7e433ee to
b195db5
Compare
…turn A tax unit dependent's interest, dividends and capital gains are on the dependent's own return, and federal adjusted gross income (irs_gross_income) leaves them out. State lines that adjust the filers' federal AGI or taxable income summed them over every member, so a child's dividends, gains or interest moved the parents' state tax. Count only the head and spouse (tax_unit_non_dep_add, or a dependent mask on per-person lines) in AZ, DC, DE, IA, IL, MA, MD, ME, MN, MT, ND, NH, OH, PA, SC, UT, VA, VT, WA, WI and WV, and in us_govt_interest, which most states subtract. In formulas edited anyway: North Dakota's net long-term capital gain exclusion is floored at zero and includes capital gain distributions (Form ND-1 line 6 worksheet); Utah's retirement credit counts only the head and spouse as claimants; the West Virginia low-income family credit cites W. Va. Code 11-21-22a(d). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…UT cases The Montana and Utah Social Security credit cases now carry the exact half-cent amounts (1,765.725, 1,847.725 and 259.475) instead of values rounded past the 0.001 margin. In two existing Utah retirement credit cases person2 (age 64) is a tax unit dependent, so their tax-exempt interest is on their own return and no longer enters the modified AGI: 750 instead of 737.5, and 675 instead of 662.5. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… Missouri lines From the independent review of the first commit: - Alabama AGI sums every member's interest, so it now also subtracts dependents_us_govt_interest (new, next to us_govt_interest, for state income definitions that count dependents' income). Without it the filer-only us_govt_interest left a dependent's U.S. government interest taxed (parent wages 100,000, child 5,000 of Treasury interest: AL AGI 105,000 instead of 100,000). - Virginia's National Guard subtraction leaves a dependent's pay out of both the cap and the per-person shares, so the filer keeps the full amount. - Michigan's senior interest, dividends and capital gains deduction counts only the head's and spouse's income (MCL 206.30(1)(p): "included in adjusted gross income"). - Missouri's capital gains subtraction takes a dependent's gains out of net_capital_gains, and its per-person split allocates among the head and spouse only. The Utah retirement credit case with SINGLE status now names its roles (one head, two dependents), and the property test drops the Vermont restriction now that #9855 is on main. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e lines From the second independent review: - Iowa's reportable Social Security worksheet adds one-half of the benefits (line 2) before the base amount, as both the 2021 and 2022 IA 1040 worksheets do. The first test's 4,000 came from the formula; the worksheet gives 14,000. - Missouri subtracts the filers' positive Form 1040 line 7a (filer_loss_limited_net_capital_gains), so capital gain distributions count, a loss nets against them, and a supplied tax unit amount less the dependents' gains is kept and goes to the head. - Vermont's percentage exclusion limits eligible gains to the filers' net gain (Schedule IN-153 line 15 starts from Part I line 4). The eligible gains input is now documented as part of long_term_capital_gains, and two cases that set it alone now set both. - California's young child tax credit measures the filers' own net loss, so a child's capital loss no longer takes the parent's credit. - Virginia caps National Guard pay per person (Va. Code 58.1-322.02(8), "received by any person"), so two qualifying spouses subtract up to $5,500 each. 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>
…E and MT lines From the third independent review: - Vermont's percentage exclusion nets eligible gains against Schedule IN-153 Part I line 4 built from the filers' Schedule D lines 15, 16, 18 and 19, before the Form 4952 election, then takes off the election's share on gains (lines 5-7 and 16: line 4g x 4e / (4b + 4e)). A 100,000 eligible gain with 100,000 of qualified dividends and a 100,000 election now gives 20,000, as the form does. - Virginia's Guard subtraction defaults to each filer's capped pay summed, and the per-person split shares the unit amount by capped pay, so a supplied unit amount (such as the 39-day limit) is allocated again. - New filer_loss_limited_net_capital_gains_person allocates the filers' loss-limited gains among the head and spouse only. Georgia's retirement exclusion and Delaware's pension exclusion use it, so a dependent's loss no longer reduces an eligible filer's gains (IT-511: "Income or losses should be allocated to the person who owns the item"). - Montana's separate-return AGI no longer adds a dependent's Montana amounts to the head's, as the joint branch already leaves them out; the two cases that expected that allocation now expect the head's own amounts. - The Montana Social Security worksheet cases use wages instead of a pension, whose Montana exemption the worksheet does not apply. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
a0c05af to
fa64576
Compare
…gelog - ca_agi_subtractions: tax-unit-level items such as us_govt_interest are added as they are (#9894 makes that one filer-only). - WI Schedule SB worksheet is on file page 3 in 2021 and page 2 in 2022; the RI reference is the individual 2022 Schedule M, not the RI-1041's. - The changelog also names California's state tax refund subtraction. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Mississippi AGI read loss_limited_net_capital_gains_person, which nets and limits capital gains and losses over every tax unit member. With the dependent's column zeroed, a dependent's gains changed the parent's Mississippi AGI and could lift the parent's loss above the 26 USC 1211(b) limit. Mississippi now reads filer_loss_limited_net_capital_gains_person (copied byte for byte from #9894), which limits only the head's and spouse's own net loss and gives a dependent nothing. - Add ms_agi cases for a child's gain smaller and larger than the parent's loss, a child's loss against the parent's gain, and spouses sharing a limited loss. - Add a Worksheet D case with an age-eligible dependent who has income. - Merge same-document references (AR, IA, NJ, MS) into one href each. - Point the Worksheet D reference at PDF page 23 of the 2025 booklet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PR Review: Leave dependents' capital income out of state lines on the filers' returnSummaryThe core change is sound. A tax unit dependent's interest, dividends and capital gains are already left out of federal AGI ( I checked the new person variable that the #10667 review recommended:
Every state line that treats long-term gain separately nets the filers' own short- and long-term amounts in the order its form uses: AZ, MT, ND, SC, VT and WI. No changed state brings a dependent's income onto the parents' return except through the federal Form 8814 election, which the model doesn't implement. The four corrections that don't need a dependent are each right against the source:
CI is 36/36 green. I found no critical issue. Four should-fix items remain:
Critical (must fix)None. Should addressS1. Several new dependent masks are unpinned (mutation rule). Reverting each of these lines to
Fix: add one case per row, in the variable-named YAML files. The first two are one-household additions to the existing SC and WI files, and the probe values above are hand-checked. S2. A dependent's Social Security still reaches Maine's fairness-credit income.
Fix: compute the Social Security term from the filers' own benefits, for example S3. Two references break the CLAUDE.md reference rules.
S4. The axiom line is invalid and doesn't match the head.
Fix: write the line in the required form, e.g. Suggestions
Verified correctThe federal person variable.
Probe at this head (TY2025, head of household, head aged 63, child aged 10). Each case also ran a twin with the child's amounts set to zero.
Hand-checked expectations from the PR's YAML (arithmetic shown):
Law, per state. I read these this session:
The rest start from the filer's own federal AGI, taxable income or Schedule D:
None of these states taxes the family unit or has its own analogue of Form 8814. Code checks.
Tests and guards.
Axiom line assessmentInvalid; see S4. The body's line 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, 4 should (unpinned dependent masks in several states; Maine's fairness-credit income still counts a dependent's Social Security; two references split or incomplete; axiom line not in a valid form and #1424 doesn't cover the four no-dependent corrections), 5 suggestions. The core filer-only loss limitation is sound.
Restore every file outside the DC, Delaware and Ohio change to its version on main, and drop the capital-income changelog fragment. The branch held an older copy of #9894's first two commits, plus Massachusetts, Iowa and Montana follow-ups to them, and #9894 carries the current version of that work. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Main already counts the Ohio medical deduction once per return, and the Massachusetts change now lives in #9894, so the fragment names the DC, Delaware and Ohio subtractions, Ohio's 529 deduction and the DC disability income exclusion. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Resolve the conflicts with main from the cloud build of this branch. Co-Authored-By: GPT-6.2 Sol <noreply@openai.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Use the filers' tax-exempt Social Security for both credits. Test that state lines use the filers' own amounts. Document how the joint loss limit scales gains and losses. Update the North Dakota and Vermont references and the changelog. Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
…ions Apply the federal return amount to Arizona's gain limit and the sole-filer allocation. Include Vermont's section 1202 addition and limit Washington's loss add-back to the amount used federally. Correct the Iowa and Minnesota worksheets and restrict Virginia's per-person cap to qualifying Guard wages. Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Keep other Vermont additions in the existing return input. Use military service income and the Virginia tax-unit cap on filers' pay. Exercise the Minnesota worksheet with a supplied deduction for a dependent. Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Apply Virginia’s cap per eligible filer. Use return gains and distributions in North Dakota, Washington, Montana and Wisconsin. Include section 1202 gains in Vermont’s exclusion base and use Form 4952 investment gains for its election allocation. 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: 9894
Reviewed head SHA: 01cbff3
Merge base SHA: 094934a
Mode: incremental from be20e6f
Scope: changed behavior and affected dependencies
Source manifest: /private/tmp/policyengine-command-runs/ea33c0bb2b64/pr-9894-review-sources.json
Review status: PARTIAL
Source Documents
- va-58.1-322.02.html — cached original.
- vt-5811.html — cached original.
- wa-6346-sl.pdf — cached original.
- mt-form2-instr-2025.pdf — cached original.
- az-140i-2025.pdf — cached original.
- az-43-1022.html — cached original.
- ia-2650.pdf — cached original.
- mn-m1m-22.pdf — cached original.
- wi-wd-2022.pdf — cached original.
Critical
C1 — Arizona's long-term gain subtraction now nets a filer's short-term loss, which the Form 140 worksheet excludes (OPEN)
- Location:
policyengine_us/variables/gov/states/az/tax/income/subtractions/capital_gains/az_long_term_capital_gains_subtraction.py, formula:federal_net_gain = tax_unit("filer_loss_limited_net_capital_gains", period)andltcg_in_agi = max_(0, min_(long_term_capital_gains, federal_net_gain)). Introduced in 46e4a44. Before that commit, the subtraction was the full long-term gain whenever the filers' net was positive (where(net_capital_gains > 0, max_(0, long_term_capital_gains), 0)), which the prior review approved. - Trigger: any filer with a long-term gain and a short-term loss. No dependent is needed. The PR's own tests assert the new values:
- TY2025, single, wages 60,000, LT +10,000, ST -8,000: the code (and the new YAML case) gives 25% x 2,000 = 500. The form gives 25% x 10,000 = 2,500.
- TY2024, LT +50,000, ST -10,000: the YAML expectation changed from 12,500 to 10,000. The form gives 12,500.
integration_2025.yaml(MCTCP senior case):az_subtractionschanged from 31,000 to 24,750 andaz_income_taxfrom 653.75 to 810. The old figures follow the form.
- Source: 2025 Arizona Form 140 instructions (azdor.gov
FORMS_INDIVIDUAL_2025_140i.pdf). On PDF page 13, line 22 is "the total amount of net long-term capital gain or (loss) reported on federal Schedule D", separate from line 21, the net short-term amount. Line 24 is 25% of line 23. The "Worksheet for Net Long-Term Capital Gain Subtraction" says: "Do not include any short-term capital gains or (losses) in this worksheet". Its line 1 is the "total net long-term capital gain or (loss) from assets acquired after December 31, 2011 and included in federal adjusted gross income". A.R.S. 43-1022(2)(c) says "twenty-five percent of the net long-term capital gain included in federal adjusted gross income". The department's form reads that as the Schedule D long-term net, not reduced by short-term losses. The code's comment ("Federal Form 1040 line 7a nets short- and long-term gains") is the reading the worksheet rules out. - Impact: Arizona tax rises by 2.5% x 25% x min(short-term loss, long-term gain) in every claimed year from 2015 on (+$50 in the TY2025 case above, +$156.25 in the integration case). This is a regression from the prior head, not a dependent-pooling fix.
- Fix: restore the prior-head rule: the filers' Schedule D long-term net, floored at zero, when the filers' net is positive. Revert the three test expectations (12,500, 2,500, 653.75 with 31,000). Drop the changelog line "Limit Arizona's long-term capital gain subtraction to gain in federal adjusted gross income." Note: the prior head's zero result when the overall federal net is a loss is pre-existing. The worksheet arguably still allows a subtraction there, but that is not part of this finding.
- Proposed severity: CRITICAL. This is an executed wrong state tax in claimed years, asserted by the PR's tests, against the official form.
Coordinator assessment: I've kept this critical. It is an executed wrong Arizona tax in every claimed year from 2015, asserted by the PR's own updated expectations, and a regression from the head the prior review approved. The 2025 Form 140 worksheet says "Do not include any short-term capital gains or (losses)", and A.R.S. 43-1022(2)(c) is the department's basis for that. Restoring the prior-head rule and the three expectations (12,500; 2,500; 31,000 / 653.75) fixes it.
Should Address
A1 — Virginia Guard subtraction silently stops reading military_service_income (OPEN)
- Location:
policyengine_us/variables/gov/states/va/tax/income/subtractions/va_national_guard_subtraction.py:4-9(capped_va_national_guard_payreads onlyva_qualified_national_guard_pay); new inputva_qualified_national_guard_pay.py(no formula, default 0). Changelog line: "Apply Virginia's National Guard pay subtraction cap to each filer with qualifying Virginia Guard wages." - Trigger (executed,
pr-9894-code-diag/va_military.py): TY2025 VA single, wages 50,000,military_service_income3,000 (the only Guard input before this PR). Main:va_national_guard_subtraction3,000,va_income_tax1,888.40. Head: 0 and 2,060.90 (+172.50). - Expected: a narrowing to Virginia Guard pay is defensible (the statute covers Virginia Guard pay only, and
military_service_incomealso covers active duty and reserve), and the YAML pins it ("Ordinary active-duty pay does not qualify"). But the input switch is not stated anywhere a user or data pipeline would see it. The changelog doesn't say thatmilitary_service_incomeno longer feeds the subtraction, and 3fb9b01's message ("Use military service income") is reversed by ab0c7d8. - Impact: every existing VA household or dataset row that carries Guard pay in
military_service_incomeloses up to $5,500 per filer of subtraction with no notice. - Fix: name the new input and the dropped one in the changelog fragment (or keep a documented fallback). Proposed severity: should-address.
Coordinator assessment: The policy review found the narrower base legally right. Va. Code 58.1-322.02(8) covers only Virginia National Guard pay, so the old base overstated the subtraction for other military pay. What remains is disclosure. A household entering Guard pay the old way loses up to $5,500 of subtraction ($1,888.40 vs $2,060.90 of VA tax in the executed case), and no dataset fills the new input. Please say so in the changelog, and consider a note in military_service_income.
A2 — Washington's base treats short-term gains and losses differently when long-term amounts offset them (OPEN)
- Location:
policyengine_us/variables/gov/states/wa/tax/income/millionaires_tax/wa_millionaires_tax_base_income.py. It deductsfederal_long_term_gain = max_(0, min_(lines.line_15, lines.line_16)), so only the long-term gain left after short-term losses comes out. But it adds backlong_term_loss_addback, which includes the long-term loss that offsets short-term gain. Introduced in 46e4a44 and ab0c7d8. - Trigger (TY2028 on, when
millionaires_tax.in_effect): the PR's YAML pins both sides.- "Washington removes the long-term gain remaining after a short-term loss": LT +10,000, ST -5,000 gives 1,205,000 - 5,000 = 1,200,000. The short-term loss drops out of the base.
- "A long-term loss can offset short-term gains in federal AGI": ST +10,000, LT -60,000 gives 1,510,000. The short-term gain stays in the base.
- Read symmetrically (take every long-term item out, keep every short-term item), the first case is 1,205,000 - 10,000 = 1,195,000.
- Source: ESSB 6346 session law, sec. 302 (PDF page 9). Subsection (1) deducts "any long-term capital gains that have been included in computing federal adjusted gross income". Subsection (2) adds "any long-term capital losses that have been included in computing federal adjusted gross income". The text uses parallel wording for gains and losses. The cited Schedule D instructions (
i1040sd--2025.pdf#page=10) support the loss-deduction ordering only, not netting a short-term loss against the long-term gain being deducted. Washington has issued no guidance (the tax starts in 2028), so the legally correct value is UNVERIFIED. The Arizona form in policy-1 rejects the same netting for similar "included in federal adjusted gross income" wording. That is evidence by analogy only. - Impact: for filers with a short-term loss and a long-term gain, the millionaires tax base rises by up to min(short-term loss, long-term gain).
- Fix: deduct the long-term gain that went into federal AGI including the part that absorbed short-term losses, which makes the treatment match the loss add-back. Or add a source or comment that justifies the asymmetry.
- Proposed severity: SHOULD ADDRESS. This is an unsupported interpretation in enacted future-year law; the legal outcome is unverified.
Suggestions
S1 — Arizona's long-term gain leaves out capital gain distributions (OPEN)
- Location:
az_long_term_capital_gains_subtraction.pyformula:long_term_capital_gains(tax_unit_non_dep_add, nonon_sch_d_capital_gains) is capped byfiler_loss_limited_net_capital_gains, which includes distributions. - Trigger (executed,
pr-9894-code-diag/az_dist.py): TY2025 AZ single, wages 60,000,non_sch_d_capital_gains1,000. AGI 61,000,filer_loss_limited_net_capital_gains1,000, butaz_long_term_capital_gains_subtraction0 (min(0, 1,000) x 25%), where 250 would follow if distributions count as long-term gain in AGI. Meanwhile ND, MT, WA and VT now take Schedule D line 15 with distributions throughfiler_schedule_d_lines. - This is pre-existing on main and not a regression. Proposed severity: suggestion (use
filer_schedule_d_lines(...).line_15, or document the exclusion).
Evidence Gaps
- The S1 mask-revert mutation run was still going when this review was assembled. At that point it had executed 16 of 22 mutants: 15 were killed (SC, WI, MA Part A/B/C and both dividend-loss files, MN Social Security, three MT taxable Social Security lines). One survived:
wa_millionaires_tax_base_income.py:24(tax_unit_non_dep_add→addonlong_term_capital_gains). That mask feedswashington_capital_gains, which only counts when the filer owes the Washington capital gains tax, and no case gives a dependent long-term gains in that situation. Please add one. The remaining 6 mutants (WA line 27, two VT lines, CA YCTC and others) had not run. Log: /tmp/policyengine-command-runs/ea33c0bb2b64/pr-9894-code-diag/mutants.log.
Notes
- This round covers the six author commits since the 11-07 review and three merges of main.
- Should 2 (Maine fairness income counted a dependent's Social Security): A child with $9,000 of survivor benefits gives 81,050 on main and 71,800 at the head, and the new case expects 26,500, under 36 M.R.S. 5213-A(1)(B)(3) and 5219-KK(1)(D).
- Should 3 (references): RESOLVED.
- Should 1 (unpinned dependent masks): every row in the prior table now has a dependent YAML case. See the gap above for the mutation results so far, including one unpinned mask.
- Should 4 (axiom line) is still open. The body now says
axiom: needed, which CLAUDE.md reserves for external contributors. rulespec-us#1424 still has no companion cases for the corrections that need no dependent, and that set has grown: AZ, MT, WI, WA, the VT section 1202 change, and the IA and MN student loan interest changes. Please extend #1424 or file a dispatch-readype-parityissue, and restore aqueuedline. - Suggestions 1–3 are resolved, and suggestion 4 is withdrawn (the Vermont flat path already reflects a Form 4952 election). Suggestion 5 (core-group CI timing) is still open.
- New behavior verified against sources:
-
- Vermont. The section 1202 addition under 32 V.S.A. 5811(21)(A)(v) from 2026.
-
- Montana. The lesser of Schedule D lines 15 and 16 (2025 Form 2 p. 17).
-
- North Dakota. Distributions now sit inside line 15.
-
- Wisconsin. Schedule WD line 18.
-
- Iowa. The Social Security worksheet adds back student loan interest and zeroes the base for separate filers who lived together.
-
- Minnesota. The M1M worksheet uses student loan interest deducted, not paid.
-
- Virginia. The per-filer Guard cap (3,000 and 5,500).
- Executed in 15 states: a dependent with capital gains, Social Security and Guard pay gives the same result as the household with that income set to zero.
- Households without dependents match main in IA, MN, WI, ME, GA, DE, MS, SC and MA. They differ on purpose in AZ (policy-1), MT, ND, WA, VA (code-1) and joint VT.
- All three merges keep every main file, and the PR merges cleanly with main.
Validation Summary
Local tests at the reviewed head (review venv, policyengine-core 3.37.2, matching uv.lock; imports resolved to the snapshot), split into two bounded runs because the machine was shared: 1,706 YAML checks passed and 0 failed across the 16 touched state folders, CA young child, and the federal AGI, capital gains and Social Security folders. The two Python invariant files were not reached locally; CI passes them. Diagnostics executed the dependent and no-dependent households on main and the head in 15 states, plus the VA and AZ distribution cases. Sources: the 2025 Arizona Form 140 instructions and A.R.S. 43-1022, ESSB 6346, Va. Code 58.1-322.02, 36 M.R.S. 5213-A and 5219-KK, 32 V.S.A. 5811, and the MT, ND, WI, IA and MN forms; manifest check passed. CI: 36/36 checks pass at 01cbff3.
Timing
setup seconds: 6.00s; scope seconds: 60.00s; parallel review seconds: 1197.30s; policy role seconds: 369.60s; code role seconds: 1197.30s; adjudication seconds: 240.00s; consolidation cleanup seconds: 718.90s; elapsed seconds: 2073.00s
Review Severity
REQUEST_CHANGES. Open findings: 1 critical, 2 should address, 1 suggestions.
What was wrong
Federal AGI and taxable income use the filers' own amounts. A dependent reports their interest, dividends and capital gains on their own return. Form 8814 lets a parent elect to report certain amounts instead. PolicyEngine omits that election. IRS Form 8814
Some state adjustments summed capital income across everyone in the tax unit. A dependent's dividends could raise North Dakota's subtraction, and a dependent's eligible gains could raise Vermont's exclusion.
A North Dakota filer with $1,000 of qualified dividends keeps a $400 subtraction when their child has $5,000 of dividends. A Vermont filer with $10,000 of gains keeps a $5,000 flat exclusion when their child has $100,000 of eligible gains.
How the leaks were found
The state formulas that pooled these amounts used direct tax-unit sums or lists of income sources. A person-level mask can leave a dependent's amounts out of those sums. A tax-unit input still needs to exclude dependents when it calculates its own value.
What changes
us_govt_interestcounts the head's and spouse's interest.nd_qdiv_subtractionandnd_ltcg_subtractioncount the filers' own amounts.The capital gain, Social Security and Guard pay corrections also affect returns without dependents.
va_qualified_national_guard_pay. Include that pay in wages. A 2025 couple with $40,000 of wages each, inclusive of $6,000 and $2,000 of qualifying Guard pay, subtracts $5,500 and $2,000.vt_other_additionstovt_federally_excluded_section_1202_gain. Include qualifying stock gains in the eligible asset input for the percentage option. Enter Form 4952 line 4e invt_form_4952_net_capital_gain, including zero if the filers have no investment-property gains.West Virginia's low-income family tax credit now cites the income definition in section 11-21-22a(d). West Virginia Code
Legal basis
Not in this PR
nm_net_capital_gains_deduction. The separate-return rule also combines amounts across spouses' tax units.Tests
88519eea, 673 checks passed across 57 files, and the Hypothesis file took 37 seconds.88519eea: all 36 checks passed.Microsim impact
impact: not yet compared with main.
Invariants
Axiom note. Issue #1424 covers the federal election and dependent-pooling examples. The filer-only worksheet, Guard pay, section 1202, Form 4952 and capital gain distribution corrections need companion cases. rulespec-us#1424
Merge with main (2026-11-29)
Eleven files conflicted.
test_state_tax_head_spouse_swap_invariance.pyca_yctc.yamldc_income_subtractions.yamlde_subtractions.yamlde_pension_exclusion.yamlmd_capital_gains_surtax.yamldc_income_subtractions.pyde_subtractions.pymd_capital_gains_surtax.pyoh_deductions.pyut_ctc_potential.pyOhio, Michigan, Pennsylvania and Massachusetts kept both sides where their changes came together. The Maine cases share the
fairnesstest file on main. The PR'smt_agi_indivkeeps dependents' amounts off both spouses' columns while preserving the spouse-label checks.axiom: needed
🤖 Generated with Claude Code