Repository navigation
Add estate and trust income to state-built gross income lists - #10060
Conversation
Alabama, Iowa, Mississippi, New Jersey, New Mexico and Oklahoma build their own income source lists, so they missed estate_income when federal gross income gained it (#9633). Each state's law counts a beneficiary's estate or trust income in the concept. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
YAML cases per state with hand-computed values, and a property test of the pass-through identities. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review finding: a beneficiary's Schedule E Part III loss comes from depreciation, depletion and amortization apportioned by the estate or trust (Schedule K-1 box 9), not from the section 642(h) items that Code of Ala. 40-18-25(b)(4) switches off. Alabama's Schedule K-1 (Form 41) carries the same apportioned deductions, and r. 810-3-25-.11 follows Subchapter J, so the amount enters Alabama AGI signed. Drops the floored variable and moves the cases to al_agi.yaml. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Hand-off to the US + core hubHead: Independent review: GPT-6.1 Sol via Subfleet. First pass at Passed locally at this head: the 40 YAML cases in the six touched test files; Pending: all 25 CI jobs for this head were still queued when I handed off; PR validation has passed. No conflicts ( Before landing:
Depends on: nothing. Hold or decision: none on this PR. d1266 (the Massachusetts default) concerns follow-up #10061 only. Follow-ups owed, all filed: #10061 (Massachusetts, waits on d1266), #10062 (Iowa and Mississippi farm rent; New Mexico partnership and farm income; Georgia retirement exclusion), #10063 (federal benefit income lists). Axiom parity issues TheAxiomFoundation/rulespec-us#1632 to #1637 are queued and labelled Still to add when CI finishes: the Rest job's |
|
Reopened by the US + core hub to start a fresh CI run at the same head. The previous run failed on |
|
US + core hub merge audit, us#10060 at
|
What changes
#9633 added
estate_income(a beneficiary's estate or trust income, Schedule E Part III) to federal gross income. States that start from federal AGI picked that up. Six state income concepts are built from their own source lists and did not. This PR adds estate and trust income to each, following that state's loss rule.gov.states.al.tax.income.agi.gross_income_sources)gov.states.ia.tax.income.gross_income.sources)gov.states.ms.tax.income.income_sources)gov.states.nj.tax.income.gross_income.loss_eligible_categories.category_h)gov.states.nm.tax.income.modified_gross_income)gov.states.ok.tax.income.credits.gross_income_sources)Iowa's income tax and child care credit read this list only through tax year 2022 (
ia_net_income; the parameter itself has no end date). From 2023 the model starts Iowa from federal taxable income, which already carries the amount.Alabama losses. A beneficiary's Schedule E Part III loss comes from depreciation, depletion and amortization the estate or trust apportions to them (federal Schedule K-1 box 9), which the Form 1041 instructions say "may be allocated to the beneficiary(ies) in amounts greater than their income". The § 642(h) final-year items that Alabama switches off go to other federal lines (box 11), not Schedule E. One source points the other way: the 2025 booklet (p. 24) says "A loss from an irrevocable trust cannot be claimed on Schedule E part II", citing r. 810-3-25-.05(8)(b), a rule titled "For Taxable Years Beginning Prior To January 1, 2005".
estate_incomedoes not separate trusts from estates, so the model follows the statute and the current rule. The first version of this PR floored Alabama at zero; the independent review caught it.Lists reviewed and left unchanged
Found with
grep -rn "gross_income_sources\|gross_income.sources"plus a sweep of every state tax parameter list that names a federal income component.gross_income.sources.individualand.joint): already fixed in Count estate and Schedule F income in Arkansas gross income #9794.estate_income(Net Michigan business and rental losses in household resources (MI-1040CR lines 16, 17 and 30) #9790).gross_income_sources): the list starts fromadjusted_gross_income_person, which is built fromirs_gross_income, so it now carries estate income. No change.pa_total_taxable_incomestarts fromirs_gross_income. No change.business_income.sources): the file already documents that trust income counts as business income only when it arises in a trade or business, which the model cannot observe. No change.credits.joint_filing.agi_subtractions): not changed, and uncertain. R.C. 5747.05(E)(1) measures each spouse's income "exclusive of interest, dividends and distributions, royalties, rent, and capital gains". Estate income now reaches Ohio AGI and counts as qualifying income.estate_incomemixes rents and royalties (excluded) with business income (counted), and the statute does not name estate or trust income, so I left it as inherited rather than guess.One inherited flow looks wrong and is not fixed here: Massachusetts.
ma_gross_incomestarts fromirs_gross_income, so it now includes estate income. M.G.L. c. 62 § 10(a) says "No person shall be taxed under this chapter for income received from any trustee or other fiduciary, which income has itself been taxed under this section", and Form 1 taxes only "Income from any estate or trust not taxed directly". Whether a trust is taxed at the fiduciary level depends on facts the model does not have (§ 10(c)). That needs its own change.Invariants
For a filer whose other income is wages, interest and partnership income, in every state above:
max(estate amount, 0). A loss never lowers it and never offsets other income.policyengine_us/tests/core/test_state_estate_income_invariants.pychecks all three with Hypothesis batches and a seeded population of 64 filers, three copies of each filer in each of the six states in one vectorized simulation.Tests
al_agi.yaml,ia_gross_income.yaml,ms_agi.yaml,nj_gross_income.yaml,nm_modified_gross_income.yamlandok_gross_income.yaml. The Oklahoma cases also check the sales tax credit: $18,000 of wages plus $3,000 of estate income is $21,000, over the $20,000 limit, so the $40 credit goes to zero./usr/bin/time -l, load average about 36). The file is new, so the figure before this PR is zero. It builds no extra tax-benefit system and lands in the Rest job'scoregroup; I have no CI measurement for that group yet.test_batched.py --mode per-subdir --workers 1: all 1,134 passed (Alabama 84, Iowa 182, Mississippi 160, New Jersey 327, New Mexico 239, Oklahoma 142).test_reference_urls.py,test_known_dead_reference_urls.py,test_no_concatenated_reference_urls.pyandtest_parameter_yaml_keys.py: 153 passed.ruff formatandruff checkclean on the changed Python files.Check across all states
~/reviews/state-estate-income-2026-10-10/scripts/state_diff.pygives one household per state $5,000 of estate income and, separately, $5,000 of rental income, and compares the change instate_income_tax(2022, 2024, 2025; a $30,000 earner, an $80,000 earner and a 70-year-old renter with $12,000 of Social Security).Before this PR, estate income left state tax unchanged, or lowered it through the deduction for federal tax, in Alabama, Iowa (2022), Mississippi and New Jersey, and left New Mexico's rebates unchanged for the renter. Every other difference between the two came from the federal qualified business income deduction, which applies to rental income and not to estate income.
After this PR, Mississippi, New Jersey and New Mexico move identically for the two income types in every scenario. Alabama and Iowa (2022) now rise with estate income, and what separates them from rental income is the same federal deduction:
The script records only rows where the two differ by more than $0.50, so the after values for Mississippi, New Jersey and New Mexico are the rental values it found equal.
Alabama deducts federal income tax, and the federal tax on $5,000 of estate income is $120 (12% bracket) or $220 (22% bracket) higher than on rental income that takes the 20% deduction; 5% of that is the $6 and $11 gap. Iowa in 2022 deducts 75% of the federal qualified business income deduction (
ia_qbi_deduction). Colorado, Idaho, Missouri, North Dakota and Oregon show the same gaps before and after this PR; I did not trace those.The hub's microsimulation impact is in the section above.
al_agi.yamlis also edited by #9943, so whichever merges second needs a small rebase.Review
An independent GPT-6.1 Sol review (Subfleet, at
81a53c8700) verified the five other states' rules, the page cites and all twelve cases, and requested changes on Alabama, fixed in23c09348de. It also asked for the Iowa wording and the test timing above, and reported a Georgia retirement-exclusion gap that I added to #10062.Axiom parity
axiom: TheAxiomFoundation/rulespec-us#1632 (Alabama § 40-18-25(b)), TheAxiomFoundation/rulespec-us#1633 (Iowa IA 1040 line 10, tax years 2021 and 2022), TheAxiomFoundation/rulespec-us#1634 (Mississippi Form 80-105 line 41), TheAxiomFoundation/rulespec-us#1635 (N.J.S. 54A:5-1(h)), TheAxiomFoundation/rulespec-us#1636 (NMSA § 7-2-2(L)(15)), TheAxiomFoundation/rulespec-us#1637 (Okla. Admin. Code 710:50-15-96(c)) queued
Each issue is labelled
pe-parityand carries the module path, corpus rows, verbatim law, required outputs, areview_findingand the same hand-computed cases as the YAML tests here. The encoder is blocked because rulespec-us pins a corpus release that predates the cited rows; Iowa's 2021 and 2022 forms are not in the corpus at all. The federal side is already encoded:us:statutes/26/61#enumerated_gross_income_itemsincludesincome_from_an_interest_in_an_estate_or_trust.Follow-ups
🤖 Generated with Claude Code
Hub microsimulation impact (current head)
A real microsimulation on the default dataset, main at the merge base
75cdd8019eagainst this PR's head23c09348de, for 2026. The runs went one at a time under the shared heavy-job lock. Sums are weighted.al_agiia_gross_incomems_aginj_gross_incomenm_modified_gross_incomeok_gross_incomestate_income_taxincome_taxhousehold_net_incomehousehold_benefitsMeasured at the exact head against its merge base. New Jersey and Oklahoma gross income rise where estate and trust income now counts, and state income tax rises $158M across 32 records (57,093 weighted). The Alabama, Iowa, Mississippi and New Mexico changes fall only on records with zero weight in this dataset, so they don't move weighted totals.
Comparison files are in
fixes/10060-impact/on the hub host.