Skip to content

Keep dependents’ Social Security out of filer income and count Colorado bond interest - #10647

Draft
MaxGhenis wants to merge 8 commits into
mainfrom
per-return-tax-exempt-ss
Draft

MaxGhenis wants to merge 8 commits into
mainfrom
per-return-tax-exempt-ss

Conversation

@MaxGhenis

@MaxGhenis MaxGhenis commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Agent-written for Max, by a Codex cloud task and Claude Code for Max Ghenis; no person has reviewed it yet.

What and why

tax_exempt_social_security adds every tax unit member's benefit, so it carries a dependent's whole benefit. Readers whose law measures the filers' own return should use the filers' amount instead.

Schedule A, WATCA alternative tax MAGI, Colorado sales tax refund MAGI and Maine fairness credit income now use the filers' nontaxable Social Security. The Social Security calculation sums filer benefits directly, so a large dependent benefit cannot move the filers into another Schedule A income row. Schedule A also leaves out other person-level nontaxable income that belongs to dependents. It counts the tax unit's allocated TANF share, which is the full grant when the SPM unit and tax unit have the same members.

Colorado includes qualifying net state and local bond interest in refund MAGI from 2001. The bond component defaults to line 9 other additions and can be reported alongside an explicit line 9 total. Maine keeps the federal loss adjustments and filer SSI. Washington counts the claimant, the spouse or domestic partner, and resident co-owners.

Some readers stay on the household amount because their law measures the household:

  • Missouri's MO-PTS includes minor children.
  • Rhode Island measures the household and keeps dependents' benefits.
  • West Virginia's worksheet counts other household members, including separate filers.
  • Vermont already limits its 75% add-back to claimant benefits on main.

Medicaid's MAGI modification is in #10108 and stays outside this PR. The Wisconsin homestead credit change is already on main (#10191). Railroad PR #10722 overlaps the Colorado and Maine source lists, their household fixtures and the Washington fixture.

Test plan

  • Five new Schedule A cases and three WATCA cases, plus the Colorado, Maine, Rhode Island, Washington and Vermont household checks.
  • A seeded per-return invariant: changing a dependent's benefit leaves each per-return reader unchanged.
  • test_state_sales_tax_table.py: 89 passed.
  • Ruff formatting and lint, reference and source guards, and the changelog fragment.

axiom: TheAxiomFoundation/rulespec-us#1402 queued (Schedule A; Colorado's post-2000 MAGI is deferred in RuleSpec, and the other provisions here still need a parity record)

🤖 Generated with Claude Code

…A MAGI

The Optional State Sales Tax Table row is read at "the amount shown on
your Form 1040 or 1040-SR, line 11b, plus any nontaxable items" (2025
Schedule A instructions), and WATCA's section 1A(d)(2) adds "the portion
of the taxpayer's social security benefits" that section 86 leaves out.
Both measure the filers' own return. Both read tax_exempt_social_security,
which carries a tax unit dependent's whole benefit, and the table income
also summed every member's person-level nontaxable items with add(). A
dependent's benefits are income of "the person who has the legal right
to receive the benefits" (IRS Pub. 915, 2025).

- state_sales_tax_income_bracket sums its sources with
  tax_unit_non_dep_add, and its source list uses
  filer_tax_exempt_social_security. TANF is an SPM-unit amount, which
  tax_unit_non_dep_add adds as add() does, as every tax unit member's
  per-person share, so a family grant paid to the caretaker still counts
  in full.
- watca_alternative_tax_magi adds filer_tax_exempt_social_security.

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

Colorado's sales tax refund adds to federal AGI the "Social security
benefits excluded from federal adjusted gross income" (C.R.S.
39-22-2003(1.5)(b)), measured as "the qualified individual's adjusted
gross income" ((3)(c)); DR 0104 line 35 is the filers' Form 1040 line 6a
less 6b. Maine's fairness credits add the interest and Social Security
left out of federal AGI (36 M.R.S. 5213-A(1)(B), 5219-KK(1)(D)), and
Rule 813 .03 makes it "the taxpayer's". Both read
tax_exempt_social_security, which carries a dependent's whole benefit,
and Maine also summed every member's tax-exempt interest.

- co magi_sources and me income_sources use
  filer_tax_exempt_social_security; Maine's income sums its sources
  with tax_unit_non_dep_add.
- Colorado's 2025 Book 104 reference pointed at page 23 (military
  subtraction text); the MAGI lines are on pages 13 and 42.
- A property test draws filers and one to three dependents, children or
  aged parents, with benefits from $1 to $1,000,000, and checks that the
  per-return readers are unchanged when the dependents' amounts are zero,
  as drawn or doubled. The table amount, the refund and the credits are
  checked for units with child dependents only: an aged parent's own
  income can decide whether the filer heads a household for them.
- WATCA gets the same property as a YAML grid over the child's benefit,
  so CI builds no extra reformed system.
- The grandchild bracket case now fails under each half of the sales tax
  fix alone, not only both together.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
RCW 84.36.383(2) combines the disposable income of the claimant, the
spouse or domestic partner, and each cotenant (a resident with an
ownership interest, (3)). WAC 458-16A-120(2)(b) adds nontaxable Social
Security to the AGI of "the person receiving these benefits", and
pensions, excluded military pay and tax-exempt interest to the
recipient's. The model read tax_exempt_social_security, which carries a
dependent's whole benefit, and summed every member's person-level
add-backs with add().

- sources use filer_tax_exempt_social_security, summed with
  tax_unit_non_dep_add. A dependent who owns part of the residence is a
  cotenant and comes in once, through wa_pte_cotenant_disposable_income.
- The medical deductions keep summing every member: the statute counts
  amounts the claimant or spouse paid, and expense inputs don't record
  the payer.
- Rhode Island's property tax credit counts "all income received by all
  persons of a household" (R.I. Gen. Laws 44-33-3(6)), so it keeps the
  household amount; a new case pins a dependent's benefits there.
- The property test adds Washington. It zeroes Medicare premiums, which
  the measure subtracts and which can turn on another member's income
  through Medicare Savings Program deeming.

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

Copy link
Copy Markdown
Contributor Author

Picking this up for the US hub. I'm continuing an earlier session's work on this PR: its three commits (f2561e8da9, 16718d329e, a658ba9924) stopped when that session ran out of usage, and it left no hand-off. I'll re-check each of those commits, finish the remaining readers and the property test, and post a hand-off comment here when it's ready.


Generated by Claude Code

MaxGhenis and others added 3 commits November 30, 2026 12:08
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Default Colorado other additions to qualifying bond interest and include that component in refund modified AGI from 2001. Sum filer benefits directly when inputs are at the person level and honor supplied tax unit totals.

Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@MaxGhenis MaxGhenis changed the title Leave dependents' Social Security out of per-return readers of nontaxable benefits Keep dependents’ Social Security out of filer income and count Colorado bond interest Nov 30, 2026
MaxGhenis and others added 2 commits December 1, 2026 04:50
…income

Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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.

2 participants