Repository navigation
Start Massachusetts circuit breaker total income from Massachusetts AGI and add the missing add-backs - #11177
Conversation
hua7450
left a comment
There was a problem hiding this comment.
Thanks, David. Starting from Massachusetts AGI and adding back the listed exclusions follows MGL c.62 s.6(k) and Schedule CB. U.S. government interest, the 2021 unemployment deduction, tax-exempt retirement distributions, workers' compensation, tax-exempt disability pay and EAEDC are each counted once, and EAEDC adds no cycle. One fix before I approve.
Before merge
-
A dependent's dividends and capital gains now count.
ma_agibrings inma_part_a_gross_incomeandma_long_term_capital_gains. Both add up every tax-unit member, while Part B leaves dependents out. The statute sums "the taxpayer's" Part A, B and C income (c.62 s.6(k)), and the 2025 Schedule CB worksheet reads the claimant's own Form 1, Schedule B and U.S. Schedule D.Hand trace (not run), 2025: a head of household aged 70 with 94,000 of wages and 12,000 of real estate tax, plus a dependent grandchild with 2,000 of dividends. On main, total income is 92,300 and the credit is 2,770. On this PR, total income is 94,300, over the 94,000 limit, so the credit is 0.
The PR body names this and defers it, but this diff is what moves the dependent's income into the credit. There are two ways to fix it:
- Make
ma_part_a_gross_incomeandma_long_term_capital_gainscount the head and spouse only (tax_unit_non_dep_add, asma_part_b_gross_incomedoes). Since that also corrects Massachusetts income tax, it could go in a small PR merged first. - Remove the dependents' Part A and Part C amounts inside
ma_scb_total_incomehere.
Either way, please add a case with a dependent who has dividends, and correct the comment at lines 45-47, which says dependents' income is never in that AGI.
- Make
Optional
- Effect missing from the PR body. A business or rental loss larger than Part B income no longer offsets dividends or capital gains. That matches Schedule CB (worksheet lines 1 and 3, "Not less than 0"), so main was the one in error. But the "Who is affected" list and the changelog don't mention it, and no case covers it.
M.G.L. c.62 s.6(k)(1) starts total income from Part A, B and C AGI, so the deductions allowed in reaching AGI now reduce it. It adds back the capital losses and collectibles deduction taken in reaching Part A and Part C AGI, interest on U.S. obligations, the 2021 unemployment deduction, tax-exempt retirement account distributions, EAEDC, workers' compensation and tax-exempt disability pay, following the statute and the Schedule CB line 3 worksheet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…t of circuit breaker total income ma_scb_total_income now subtracts dependents' Part A gross income and long-term capital gains, which Massachusetts AGI pools across all tax unit members, so only head and spouse income counts toward the senior circuit breaker. Adds the reviewer's dependent case and a cross-member capital loss netting case. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
f3f6fc7 to
a946537
Compare
|
Thanks, Ziming. Fixed in a946537, rebased on main. Fixed (your "Before merge" item)
Skipped (optional, not in this round): the PR-body line, changelog line and test case for business or rental losses no longer offsetting dividends. Verification:
|
hua7450
left a comment
There was a problem hiding this comment.
Thanks, David. The fix works. Subtracting the dependents' share makes the pooled Part A and Part C terms cancel exactly, so total income comes out to ma_part_b_agi plus the head's and spouse's own dividends and floored gains. That matches s.6(k)(1) and Schedule CB Parts 1-3. A plain-Python copy of the formulas matched that form in 200,000 random cases, and the subtraction is exactly zero when there are no dependents. Case 19 (92,300 and a 2,770 credit, as on main) and the netting case (26,300) both check by hand. Approving.
Optional:
- PR body. It still says dependents' dividends and capital gains are "now in total income too", and its test list describes the earlier head. Please update it before merging so the squash commit doesn't carry that.
- PR 9894. Once it makes
ma_part_a_gross_incomeandma_long_term_capital_gainshead-and-spouse only, the dependent subtraction here is always zero and can go. Either merge order gives the same results. - Part B losses (from the first round): the "Who is affected" list and the changelog still don't mention that a business or rental loss no longer offsets dividends and gains.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Part of #10812 (state credit income audit).
What was wrong
ma_scb_total_incomestarted fromma_gross_income. Its comment called that "an equivalent path" to the statute's AGI start, but it isn't one:ma_part_b_agiallows) never reduced total income.irs_gross_incomenets a long-term loss against a short-term gain (and the reverse) before Massachusetts sees it, so that loss was never added back.M.G.L. c.62 s.6(k)(1) (statute) defines "taxpayer's total income" as "the sum of the taxpayer's Part A adjusted gross income, Part B adjusted gross income and Part C adjusted gross income, as defined in section 2, increased by, to the extent they are excluded or subtracted from adjusted gross income, the following: the total amount of income and receipts from social security, retirement, pension, or annuities, cash, but not in-kind, public assistance, tax-exempt interest and dividends, net capital losses deducted pursuant to paragraph (2) of subsection (c) of section 2, net losses in any class of Part C adjusted gross income ... and gross receipts from any other source", less the age 65, blindness and dependent exemptions.
What changes
Total income now starts from
ma_agiand adds back:ma_agi(Part A + B + C AGI), so the s.2(d) deductions come offus_govt_interest(subtracted inma_part_b_agi)ma_qualified_unemployment_deduction(2021 Schedule Y line 9c; zero in other years)tax_exempt_retirement_distributionsma_eaedc(SPM unit, liketanf)workers_compensation,tax_exempt_disability_benefitsThe list items go into
gov.states.ma.tax.income.credits.senior_circuit_breaker.income.disallowed_deductions, each with its reference; the capital add-back is in the formula.Schedule Y lines the worksheet leaves out (the review asked). The 2025 Schedule Y, page 1 has line 1 "Reserved for future use" and line 9c "Charitable contributions deduction". Line 9c and lines 11 to 18 are deductions from AGI under s.3, and
ma_agitakes none of them (charitable_contributions_aldis on the Massachusetts disallowed list), so for 2025 nothing needs adding back. In 2021, line 9c was the qualified unemployment deduction, whichma_part_b_agidoes subtract; the 2021 worksheet note above says to keep it in, so it is now added back.Collectibles. Starting from
ma_agiwould newly take the 50% collectibles deduction (s.2(c)(3)) off total income. The worksheet doesn't: line 10 takes Schedule B line 15, before the line 27 deduction, and the statute's "gross receipts from any other source" covers the deducted half. The formula adds it back, so collectibles count in full, as they did before.Two capital-loss points that only come up with gross figures: PolicyEngine has net short-term and net long-term inputs, so losses netted within a holding period can't be separated, and an unused Part C net loss (carried forward) was never subtracted from AGI, so it is not added back.
Who is affected
Massachusetts residents 65 or older claiming the Senior Circuit Breaker credit (refundable, Form 1 line 44):
ma_gross_income.ma_part_a_gross_incomeandma_long_term_capital_gainssum over every tax unit member, soma_agiincludes a dependent's dividends and capital gains. Total income subtracts that share, so it counts only the head's and spouse's own Part A and Part C income (s.6(k) "the taxpayer's"; Schedule CB reads the claimant's own Form 1, Schedule B and U.S. Schedule D).Tests
Moved from #10812 (
ma_scb_total_income_audit.yaml) intoma_scb_total_income.yaml, comments kept apart from the audit framing: the HSA deduction (27,300), the long-term loss against a short-term gain (29,300), tax-exempt IRA distributions (30,300), EAEDC (26,700), workers' compensation (29,300) and tax-exempt disability pay (28,300). The review lists no rewrites for these cases.Added, with arithmetic in each comment:
ma_scb_total_income.yaml: U.S. obligation interest added back (ma_agi6,000, total 9,300), a short-term loss against long-term gains (ma_agi26,000, total 29,300), a short-term loss against dividends (ma_agi21,500, total 22,300), the collectibles deduction added back (ma_agi31,000, total 32,300) and the 2021 unemployment deduction added back (ma_agi10,000, total 17,300).ma_senior_circuit_breaker.yamlCases 17 and 18: a single filer whose HSA deduction brings total income to exactly the 75,000 limit gets 2,500; one dollar more of wages gives 75,001 and no credit.ma_senior_circuit_breaker.yamlCase 19 (2025): a head of household aged 70 with 94,000 of wages and 12,000 of real estate tax, plus a dependent grandchild with 2,000 of dividends. Total income is 92,300 (94,000 - 700 - 1,000) and the credit is 2,770, the same as main; the grandchild's dividends stay out.ma_scb_total_income.yaml: the head and a dependent with offsetting gains and losses give 26,300, the same as with no dependent income.Existing tests changed: none.
Not in this PR
ma_part_a_gross_incomeandma_long_term_capital_gainsstill count dependents' dividends and capital gains in the filer's Massachusetts AGI for the income tax. Leave dependents' capital income out of state lines on the filers' return #9894 makes them head-and-spouse only; after that, this PR's dependent subtraction is always zero and can go. Either merge order gives the same credit.axiom: needed (rulespec-us
us-ma/statutes/62/6.yamlencodes s.6(e) and (h) only, not the s.6(k) circuit breaker; no encoder run was authorized for this PR)After the review fix, tested locally: the senior circuit breaker directory (37) and the Massachusetts income tax directory (234) pass. Before it, tested on Modal: run
w1-ma-b, 274/274 passed (273 YAML files: the Massachusetts folder, every partner file,ma_commonwealth_credit.yamlandstate_income_tax_before_one_time_rebates.yaml, which read the credit; plustest_source_conflicts.py). Runw1-ma-anever started: its launch timed out before spawning.🤖 Generated with Claude Code