Skip to content

Model IRS tip transition relief with business limits and separate Georgia eligibility - #11145

Open
MaxGhenis wants to merge 3 commits into
mainfrom
model-tip-sstb-transition-relief
Open

MaxGhenis wants to merge 3 commits into
mainfrom
model-tip-sstb-transition-relief

Conversation

@MaxGhenis

@MaxGhenis MaxGhenis commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Change

Expose IRS Notice 2025-69 transition relief for federal tip deduction scenarios. The statutory baseline applies the specified service trade or business exclusion under 26 U.S.C. §224(d)(2)(B). For tax years 2025–2028, enable gov.irs.deductions.tip_income.sstb_transition_relief when the assumed filing dates are within the IRS transition. Both settings validate Treasury occupation codes against the final list. During relief, tips from a self-employed SSTB remain limited to the business’s positive net income. For mixed jobs or several businesses, tip_income_after_sstb_net_income_limit takes the sum after each SSTB's limit. Georgia applies its SSTB exclusion in either federal setting. The claimant, SSN, filing-status, return cap, modified AGI, and sunset rules continue to apply.

Record the source difference in the candidate register and update the occupation input reference to the final Treasury list. Treasury Decision 10044 reserves the paragraph on specified service trade or business determinations. It does not end the transition.

The statutory path still passes a non-SSTB nonemployee's tips to the return cap without the business net-income limit. That gap predates this PR. Open #11306 proposes that limit and also edits tip_income_deduction.py and its tests.

Verification

All 56 federal tip deduction cases, 5 Georgia cash-tip exclusion cases, and 251 source-conflict checks pass. The 22 YAML files that reference the changed rules pass. New cases, all 2025 single filers with $5,000 of code-102 tips unless noted: a self-employed SSTB with a $10,000 loss gets $0; a partial profit gets $1,400; mixed employment with a break-even SSTB gets $2,000; unlisted code 999999 gets $0; 2024 and 2029 with relief forced on get $0; a 2026 Georgia SSTB employee gets a $0 Georgia exclusion and a $5,000 federal deduction.

axiom: TheAxiomFoundation/rulespec-us#2310 queued

🤖 Generated with Claude Code

Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
@MaxGhenis MaxGhenis changed the title Model IRS transition relief for the tip deduction Model IRS tip transition relief with business limits and separate Georgia eligibility Nov 30, 2026

@DTrim99 DTrim99 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Program review

Base repository: PolicyEngine/policyengine-us
PR number: 11145
Reviewed head SHA: 6b563ed
Merge base SHA: a070f2e
Mode: full
Scope: changed behavior and affected dependencies
Source manifest: /private/tmp/policyengine-command-runs/ea33c0bb2b64/pr-11145-review-sources.json
Review status: COMPLETE

Source Documents

Critical

None.

Should Address

A1 — A loss-making SSTB counts as an SSTB in the relief path but not in the statutory path, so enabling relief lowers the deduction (OPEN)

  • Severity: SHOULD ADDRESS. This is a pre-existing defect in the statutory path, and the diff exposes it. The coordinator may reconcile the severity.
  • Location:
    • policyengine_us/variables/gov/irs/income/taxable_income/deductions/tip_income/tip_income_deduction_occupation_requirement_met.py:4-7 uses sstb_self_employment_income > 0.
    • .../tip_income_after_sstb_net_income_limit.py:32-34 uses sstb_income != 0.
  • Trigger: 2025, single filer, valid SSN, $5,000 of code-102 tips, sstb_self_employment_income: -10_000, no business_is_sstb flag, no wages.
  • Observed (pr-11145-review-code-diag.jsonl):
    • Relief off (statutory default): occupation requirement met = true, tip_income_deduction = $5,000 (case D).
    • Relief on: $0 (case B2).
  • Expected: The statutory path should apply the §224(d)(2)(B) SSTB exclusion, giving $0. The PR body and the new candidate entry say the model does this by default ("The model applies the statutory exclusion by default"). Relief only removes that exclusion, so it should never lower the deduction below the statutory result.
  • Why it is in scope:
    • The > 0 predicate dates from #8062 and gives the same result on main.
    • This PR moves it into the new shared helper is_sstb_for_tip_income_deduction and now applies it on Georgia's changed line.
    • The PR adds a second, inconsistent SSTB test (!= 0) in the new variable.
    • The PR's own loss test sets business_is_sstb: true (yaml:981), which hides the gap.
  • Fix options: Use != 0 in the helper, which matches the conservative "any SSTB taint" fallback described in #8062. Alternatively, record the gap explicitly next to #11306 and add a relief-off test with a negative sstb_self_employment_income.
  • Impact: A household in a listed occupation with an SSTB loss and no legacy flag gets up to the full $25,000 cap in the default baseline. We did not quantify how many such households exist.

Coordinator assessment: This is should-address rather than critical because relief is off by default, so baseline results don't change. Under the opt-in setting, though, the two SSTB tests disagree. The shared helper uses > 0 and the new net-income limit uses != 0, so a filer with $5,000 of listed-occupation tips and a $10,000 SSTB loss gets $5,000 with relief off and $0 with relief on. Using one SSTB test in both places, and adding a loss case that doesn't set the legacy business_is_sstb flag, would resolve it.

A2 — Untested branches in the new net-income limit formula (OPEN)

  • Severity: SHOULD ADDRESS (missing coverage on changed behavior).
  • Location: .../tip_income_after_sstb_net_income_limit.py:28-40.
  • What is untested:
    • Legacy clause. Nothing tests (sstb_income == 0) & (legacy_sstb_income != 0) (business_is_sstb set together with a nonzero self_employment_income), nor the legacy_sstb_income term in net_income. No relief-on test sets self_employment_income. Removing either piece would not fail any test.
    • Mixed-income exclusions. The employment_income == 0, farm_operations_income == 0 and partnership_self_employment_net_earnings == 0 conditions are also untested. The "Transition uses separately limited tips for mixed employment" case (yaml:1019-1036) supplies tip_income_after_sstb_net_income_limit as an input, so the formula's mixed-income branch never runs. The Georgia case has wages but no SE income, so it never reaches these conditions.
  • Current behavior (diagnostics, as documented):
    • Legacy flag with a $10,000 SE loss: $0 (case A).
    • Legacy flag with a $3,000 profit: $2,788.06, which is $3,000 minus the $211.94 SE-tax ALD (case A2).
    • Wages, farm income or partnership SE earnings alongside an SSTB loss: the full $5,000 (cases B, B3, B4).
  • Suggested fix: Add relief-on YAML cases that compute the variable rather than input it:
    • legacy flag with a self_employment_income loss, expecting 0;
    • wages of $40,000 with sstb_self_employment_income of -$10,000, expecting the unlimited $5,000 under the documented fallback;
    • optionally, one farm or partnership case.

Suggestions

S1 — Parameter description asserts a filing-date test the sources do not state (OPEN)

  • Severity: SUGGESTION.
  • Location: policyengine_us/parameters/gov/irs/deductions/tip_income/sstb_transition_relief.yaml:1; the PR body has the same wording.
  • Trigger: A user choosing years for the option, for example tax year 2027 when SSTB final regulations issue in 2027 and the transition ends January 1, 2028.
  • Expected vs observed: The Notice and the TD 10044 preamble end the transition "until January 1 of the first calendar year following the issuance of final regulations". They do not say whether that date bounds the tax year of receipt or the IRS's filing and enforcement timing. The description says to enable the option "when the assumed return filing dates fall in the IRS transition", which adopts one reading as if the source settled it.
  • Impact: Documentation only. The option defaults to off and there is no computed difference. It could steer a scenario away from relief for a tax year whose return is filed after the end date.
  • Source: n-25-69.pdf pp. 15–16; IRB 2026-18 preamble ("Specified Service Trade or Business Exclusion"); extracts in /tmp/policyengine-command-runs/ea33c0bb2b64/pr-11145-policy-sources.
  • Remedy: Describe the end date as the sources do, and leave the year choice to the scenario.

S2 — Unversioned Form 1040 instructions URL will drift from the cited page (OPEN)

  • Severity: SUGGESTION.
  • Location: policyengine_us/variables/gov/irs/income/taxable_income/deductions/tip_income/tip_income_after_sstb_net_income_limit.py:12.
  • Trigger: The IRS replaces /pub/irs-pdf/i1040gi.pdf with the 2026 edition.
  • Expected vs observed: The rule this variable encodes ("Net income limitation") is on p. 104 of the 2025 edition served today. The unversioned path will later serve a different edition with different pagination.
  • Impact: Reference stability only.
  • Source: i1040gi.pdf (2025 edition, sha256 in the manifest), p. 104.
  • Remedy: Cite https://www.irs.gov/pub/irs-prior/i1040gi--2025.pdf#page=104.

S3 — Georgia comment drops the statutory text that grounds the SSTB proxy and its independence (OPEN)

  • Severity: SUGGESTION.
  • Location: policyengine_us/variables/gov/states/ga/tax/income/ga_cash_tip_exclusion.py:32-34.
  • Trigger: A reader checking why Georgia ignores the federal option.
  • Expected vs observed: The removed comment quoted (17)(D)(ii)'s "Occupations excluded under Section 63" clause and explained the SSTB proxy. The new comment says only "Georgia's SSTB proxy under § 48-7-27(a)(17)(D)(ii)". It gives neither the statutory words nor the reason the federal IRS enforcement transition does not carry over: Georgia references the Code and, per DOR, does not conform to §224.
  • Impact: Documentation only. The behavior matches the PR's supported reading.
  • Source: HB 463 p. 8, lines 175–179; DOR Important Tax Updates ("Overtime and Tipped Wage Taxation").

Evidence Gaps

No material gaps reported.

Notes

  • The policy side checks out. All 71 codes in listed_occupation_codes.yaml exactly match Table 1 to 26 CFR 1.224-1(h). Notice 2025-69's relief covers employees and non-employees in a listed occupation, and TD 10044 reserves the SSTB paragraph, so the transition continues. The business net-income limit matches the 2025 Form 1040 instructions: net profit less the deductible part of SE tax, SE health insurance and retirement contributions, floored at zero. Georgia's statute refers to the IRC, and DOR says Georgia did not adopt the federal exemption, so applying Georgia's SSTB exclusion in either federal setting is supported.
  • With relief off (the default), federal and Georgia results match main. The one intended exception: positive occupation codes that aren't on the Treasury list now get $0. That drops no one in modelled data, because all 41 codes the microcosm build assigns are on the 71-code list.
  • The candidate entry and the Notice capture are accurate, and the capture is byte-identical to the copy pinned in rulespec-us #2310. The axiom line is in the required queued form, and #2310 meets the CLAUDE.md rule.
  • Main has gained 215 commits since this branch but hasn't touched the tip or Georgia files. candidates.yaml merges cleanly, with no duplicate IDs.

Validation Summary

Local tests at the reviewed head (review venv, policyengine-core 3.37.2; imports resolved to the snapshot): 783 passed and 0 failed. They cover the federal tip folder, Georgia income tax, the source-conflict test, three tip and Georgia Python tests and 19 downstream YAML files. A diagnostic run reproduced the relief-on loss case. Sources: 6; the manifest check passed with none rejected. CI: 36/36 checks pass at 6b563ed.

Timing

setup seconds: 4.00s; scope seconds: 60.00s; parallel review seconds: 536.90s; policy role seconds: 420.90s; code role seconds: 536.90s; adjudication seconds: 90.00s; consolidation cleanup seconds: 66.50s; elapsed seconds: 5029.00s

Review Severity

COMMENT. Open findings: 0 critical, 2 should address, 3 suggestions.

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