Repository navigation
Conversation
- Compare taxable_uc_agi, which already leaves out unemployment compensation, with the $150,000 cutoff instead of subtracting the compensation from it a second time. - Exclude up to $10,200 of each person's own compensation, so each spouse on a joint return excludes up to $10,200 (worksheet lines 8 and 9). - Keep a dependent's compensation on the dependent's own return: the tax unit's taxable compensation sums only members who are not dependents, and a dependent's exclusion is tested on a new dependent_taxable_uc_agi. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Hypothesis batches of single, joint, joint-with-dependent and single-parent tax units near the $150,000 cutoff check: per-person bounds, the cutoff on the filers' and each dependent's own return, a differential between taxable_uc_agi and AGI less the taxable compensation, that dependents' compensation never moves the filers' return, and spouse symmetry; and that nothing is excluded in 2021. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The tax unit's taxable unemployment compensation now sums only the head and spouse, in every year, so Indiana's deduction (IC 6-3-2-10) no longer deducts a dependent's compensation that is not in the filers' federal AGI. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ment_compensation_addback; supply Case 7's taxable allocation as an input Both review rounds noted that the helper adds more than nontaxable compensation for a person recorded as both a dependent and the head. Case 7 no longer pins the federal exclusion's allocation, which #10175 changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ts' estate losses Address the independent review of #10175: - California's Schedule CA subtraction and Wisconsin's unemployment compensation subtraction now read tax_unit_taxable_unemployment_compensation, and Rhode Island adds back the new tax_unit_tax_exempt_unemployment_compensation, so a dependent's own-return amount no longer lands on the filers' return. - Add estate_income to the dependent helper's loss sources: limited_business_loss deducts estate and trust losses for filers, and the helper's own comment says it lists the sources loss_ald deducts. This reaches the dependent's IRC 86 and 85(c) modified AGIs and the dependent's IRA deduction. - Fix two form-line citations (Form 1040 line 5b, Schedule 1 line 17) and state that the differential invariant covers compensation that is not negative. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#10187 fixes the same three state lines (ca_agi_subtractions, ri_additions, wi_unemployment_compensation_subtraction) more broadly and has its own review, impact run and Axiom issues. Restore them to main here and drop tax_unit_tax_exempt_unemployment_compensation, which only Rhode Island used. #10175 should land after #10187, so the dependent routing never meets the old pooled state lines. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…egative Address round 2 of the independent review of #10175: - dependent_income_and_deductions now limits a dependent's business losses (self-employment, farm, rental, partnership/S corporation and, since the last commit, estate and trust) to business income plus the IRC 461(l) threshold, as limited_business_loss does for the filers. The threshold is infinite while the limit is suspended (2018-2020), so the 2020 exclusion test keeps the whole loss. - taxable_unemployment_compensation is floored at zero. irs_gross_income counts positive amounts only, so a net repayment never reduced gross income; a negative taxable amount let CA, PA and MA subtract it anyway. The exempt part carries the repayment, as before this PR, which Wisconsin's homestead income reads. - The property test now draws net repayments, and the differential invariant holds for every input. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Hand-off to the US + core hub. Session bebaaf35, head
|
… in Montana's elderly homeowner/renter credit income (#10163) * Count SSI, TANF and workers' compensation in Montana's elderly credit income MCA 15-30-2337(9)(a) counts all nontaxable income, including (vi) cash public assistance and relief. Schedule 2EC line 16 (2024, 2025) names SSI and workers' compensation, and the 2014-2023 instructions list SSI payments and workers' compensation as disability benefits. Add ssi, tanf_person (the SPM unit's TANF per capita, so the household sum counts it once) and workers_compensation to every period of the gross income sources, with worked Schedule 2EC / Form 2EC cases for 2016-2025. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Add property tests for government assistance in Montana's elderly credit For a claimant, another adult and a child in four arrangements (one return or two, one SPM unit or two, and more assistance), gross household income adds every member's SSI and workers' compensation and the TANF once; the credit matches an independent reading of Schedule 2EC lines 18 to 30, does not depend on the arrangement, stays within the cap and never rises with more assistance. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Format the Montana government assistance property tests Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Pin SSI to zero in Montana elderly credit cases that test other income Gross household income now counts SSI, and the model computes SSI for a claimant aged 65 or older with little income (take-up defaults to true). Three gross household income cases and three property-test builders are about other items, so they now input no SSI; SSI has its own cases in the government assistance tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Count guaranteed income payments; move the cases to variable-named files Review follow-ups: gi_cash_assistance is outside federal AGI and 15-30-2337(9)(a) counts all nontaxable income (a government-funded pilot is also "any other government assistance" on Schedule 2EC line 16), so it joins every period of the sources. The worked cases move into mt_elderly_homeowner_or_renter_credit.yaml (and the SNAP guard into the gross household income file), with a guaranteed income case, the 2016 worksheet total corrected to line 10 and the references consolidated to one per document, with the 2009 MCA text for the 2009 period. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Count disability benefits and unemployment compensation outside federal AGI in Montana's elderly credit income (WIP) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Test the 2020 cutoff above the band the federal test double subtracts; add changelog Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Add a grid invariant test: disability benefits and unemployment compensation count once in every arrangement and year Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Pin SSI in the one-claimant property test; format reference titles #9900's one-claimant property test (now on main) builds claimants aged 65 or older with little income, for whom the model computes SSI, which gross household income now counts; its reference leaves SSI out, so the builder inputs none. Reference titles follow the repo format: no page in a single-page title, and quoted titles ending in "#page N-M" for several. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Name line 5 for disability pensions, describe the add-back's role edge, and test each list period's wiring Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Rename the add-back to mt_elderly_homeowner_or_renter_credit_unemployment_compensation_addback; supply Case 7's taxable allocation as an input Both review rounds noted that the helper adds more than nontaxable compensation for a person recorded as both a dependent and the head. Case 7 no longer pins the federal exclusion's allocation, which #10175 changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
PR Review: Fix the 2020 unemployment compensation exclusion: cutoff test, per-spouse cap, dependentsSummaryI checked the law before reading the code. The statute and form.
The PR matches the law on all three fixes:
Code and tests.
Open items.
CriticalNone. Should addressS1. Two new terms are unpinned: deleting either fails no test. (a) The business income term in the dependent's IRC 461(l) limit.
(b) The floor on the compensation removed in
SuggestionsG1. Extend the axiom line to the dependent-loss change.
G2. Refresh the PR body before squash. The squash commit will carry it.
G3. Follow-up issue:
G4. Invariant 2 restates the formula.
Verified correctLaw and form.
Code.
Hand checks (each person's own exclusion = min(own compensation, 10,200) if their return's line 6 < 150,000):
Other checks.
Axiom line assessmentLine: rulespec-us#1719 is valid.
The encoded-correct claim holds.
Coverage: see G1 for the § 461(l) part. CI statusAll 27 checks pass at That run predates several main-side guards: #10287 (source-conflict ratchet), #10317, #10408 and the #10439 Rest sharding. I checked them on the merged tree instead (see Branch status). Branch statusPosition: 7 commits ahead and 479 behind main, merge base
On the merged tree (one small run at a time), these pass:
Siblings (note only):
0 critical, 1 should and 4 suggestions are open at this head. Verdict: REQUEST_CHANGES |
DTrim99
left a comment
There was a problem hiding this comment.
Requesting changes: 0 critical, 1 should (two new terms are unpinned: business_income in the dependent's 461(l) limit, and the max_(0, ...) removed on UC in dependent_taxable_uc_agi; the report gives a case for each). All three fixes match § 85(c) and the 2020 worksheet, and on a tree merged with current main the #9558/#10317/#10408 guards, the ratchet and the PR's 45 cases pass. Full report in the comment above.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pin business income in the dependent loss limit and preserve exclusion AGI after a dependent's net repayment. Add California and Rhode Island cases for dependents' separate returns, and remove the property assertion that repeats the exclusion formula. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fix the 2020 unemployment compensation exclusion, including the strict income cutoff, each spouse's cap and dependents' separate returns. Also net dependents' estate and trust losses and apply their own excess business loss limit.
Law and calculation
Under IRC 85(c), taxpayers with exclusion AGI below $150,000 exclude up to $10,200 of their own 2020 compensation. Each spouse receives a separate cap on a joint return. The IRS leaves compensation out when calculating that AGI and applies a strict cutoff in its 2020 exclusion worksheet, lines 1–9.
For example, spouses who receive $20,000 and $5,000 exclude $10,200 and $5,000 when eligible, leaving $9,800 taxable. A taxpayer whose exclusion AGI reaches $150,000 receives no exclusion.
Changes
taxable_unemployment_compensationfor each person fromtotal_unemployment_compensation. Compare the filers'taxable_uc_agidirectly with the cutoff and test dependents against their owndependent_taxable_uc_agi.tax_unit_taxable_unemployment_compensation, matching the filers' federal gross income. Indiana's unemployment deduction and the TAXSIM output receive that return total.tax_exempt_unemployment_compensation.Outside 2020, the exclusion amount remains zero. We still exclude dependents from the tax unit total and apply their own business loss limits.
Consumers and related work
As checked on 2026-11-13, #10187 merged on 2026-10-18, #10191 merged on 2026-11-10, and #10331 merged on 2026-11-09. We merged their California, Rhode Island, Wisconsin and Montana changes from main.
We now count gross compensation in South Carolina TANF through
total_unemployment_compensation, so we removed its outdated grid and proposed follow-up.We still count a dependent's full compensation in the qualifying relative gross income test. Directly substituting taxable compensation would create a cycle through filing status and head of household eligibility. The hub will review follow-up drafts for that calculation and § 461(l) parity.
Validation
Final head: d3f91be.
Local checks passed both property tests and all nine dependent Social Security YAML cases. The dependent unemployment API run timed out before assertions. Its isolated YAML retry remains incomplete.
We did not complete unmodified local California or Rhode Island file runs before cleanup. CI passed both files. The required local file matrix remains incomplete.
The final local source-conflict run reached its 180-second cap after two completed cases, without a file result. CI passed all 103 guard cases.
Each of four semantic mutants failed its new YAML regression case: business-income allowance, repayment floor, California return boundary and Rhode Island return boundary.
CI passed all 411 cases across the 28 requested files in Pull request run 43471044578, with no failures, errors or skips. All 36 jobs succeeded, with no whole jobs skipped or cancelled.
GitHub skipped 25 conditional steps. Quick Feedback deferred nine changed test files because its limit allows eight. Later CI jobs ran their cases in shards and batches. We verified case counts against JUnit records and exact-path test logs.
Impact
impact: pending a comparison at the final head.
axiom: TheAxiomFoundation/rulespec-us#1719 queued.
us:statutes/26/85already encodes § 85(c)(1) correctly: per-recipient $10,200 cap, joint return summed per spouse, strict<, with teststemporary_2020_exclusion_applies_per_spouse_on_joint_returnandtemporary_2020_exclusion_denied_at_threshold. But the § 85(c)(2) AGI and the recipient relation are free inputs. #1719 queues encoding both, with companion tests from the same worksheet cases.🤖 Generated with Claude Code