Skip to content

Include partnership/S-corp losses in loss_ald#7463

Open
PavelMakarchuk wants to merge 3 commits intomainfrom
fix/loss-ald-partnership-s-corp
Open

Include partnership/S-corp losses in loss_ald#7463
PavelMakarchuk wants to merge 3 commits intomainfrom
fix/loss-ald-partnership-s-corp

Conversation

@PavelMakarchuk
Copy link
Collaborator

Summary

  • Add partnership_s_corp_income losses to the loss_ald business loss above-the-line deduction, alongside existing self-employment and capital losses
  • Previously, negative partnership_s_corp_income was clipped to zero in irs_gross_income but never recovered via loss_ald, silently inflating AGI
  • Per 26 USC §1366(a), S-Corp/partnership losses pass through to shareholders and should reduce AGI (Schedule E Part II → Schedule 1 line 5)

Test plan

  • Added 5 YAML test cases for loss_ald: S-Corp loss only, combined SE+S-Corp losses, losses exceeding §461(l) cap, positive S-Corp income, and no losses
  • CI passes all existing tests (no regressions)

Closes #7461

🤖 Generated with Claude Code

PavelMakarchuk and others added 3 commits February 23, 2026 12:31
Partnership and S-corp losses (negative partnership_s_corp_income) were not
being recovered via the business loss above-the-line deduction, silently
inflating AGI. Add these losses alongside existing self-employment losses,
subject to the same §461(l) excess business loss cap.

Closes #7461

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…prove tests

- Fix dc_self_employment_loss_addition to subtract partnership/S-corp losses
  when isolating the SE portion of loss_ald (prevents overstating DC addition)
- Update loss_ald reference from §165 to §461(l) and §461(l)(4)
- Rename tests to Case N convention with person1 naming
- Add tests: joint filing cap, mixed positive/negative across people,
  capital loss interaction

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The test has large negative partnership_s_corp_income. Now that
loss_ald correctly recovers these losses (capped at $610K joint),
the expected AGI changes from -$3K to -$610K. Credit output unchanged.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@PavelMakarchuk PavelMakarchuk marked this pull request as ready for review February 23, 2026 18:19
@codecov
Copy link

codecov bot commented Feb 23, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (fe9f829) to head (d4f6170).
⚠️ Report is 21 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##             main     #7463       +/-   ##
============================================
+ Coverage   70.60%   100.00%   +29.39%     
============================================
  Files        3896         2     -3894     
  Lines       56278        48    -56230     
  Branches      277         0      -277     
============================================
- Hits        39735        48    -39687     
+ Misses      16542         0    -16542     
+ Partials        1         0        -1     
Flag Coverage Δ
unittests 100.00% <100.00%> (+29.39%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

S-Corp/partnership losses excluded from AGI due to max(0,...) in irs_gross_income

1 participant