Repository navigation
Apply the employer-plan bar to self-employed health insurance - #10122
Conversation
… insurance deduction 26 U.S.C. 162(l)(2)(B) disallows the deduction for any month the taxpayer is eligible for a subsidized plan of their own or their spouse's employer (Form 7206 line 1). The premium base now leaves out the premiums of a person who has or is offered employer coverage, whose employer pays part of the premiums, or whose spouse on a joint return does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…oyer-plan bar Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…issue (#10124) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Correction to this PR's body, from the session that wrote it. The US + core hub now owns this PR. Head Local runs: don't rely on the 28-file and 9-file results.
Impact: nothing ran. The pair (base Review: no verdict at any head. Subfleet run
None of them wrote findings. Their progress notes are unaccepted evidence, not a review. Stale lines in the body.
Still current. The law and form citations, the five barred cases failing on main at the time, the not-modeled list, #10124 (open) and the |
|
Picking this up for the US hub. I'll post a hand-off comment here when it's ready. Generated by Claude Code |
The only conflict is the documentation of self_employed_health_insurance_premiums, which #10046 rewrote to say pretax payroll payments belong only in pre_tax_health_insurance_premiums and that the pretax and non-pretax sets are disjoint. Keep this PR's formula and documentation and add those statements: the formula still reads health_insurance_premiums, the non-pretax input, and returns 0 when self_employed_health_insurance_employer_plan_eligible holds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Picking this up for the US hub, continuing an earlier session's work on this brief (that session pushed nothing here). I'll post a hand-off comment here when it's ready. Generated by Claude Code |
Brings in #10554 (California state supplement for disabled dependent children) and the version bump; no file overlaps this PR. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Ready for hub review Head: 1. Merge main. Two merge commits, no rebase:
2. Re-verified on the merged tree.
3. Tests at this head, one file per process, with nothing editing the checkout: 109 passed, 0 failed, in 13 files (the body has the table). All but one ran at
Mutants, run at
All three are killed. The old body had 3 property failures for M3; I got 4. Hypothesis draws vary, and the test still kills the mutant either way. 4. Body, posted and read back. It matches my file except for one line. I removed the 28-file/314-case and 9-file/51-case claims and the lane-folder log, and added what I ran at this head. Not done / judgment calls
Generated by Claude Code |
PR Review: Exclude employer-plan-eligible premiums from the self-employed health insurance deductionSummaryThe PR adds I checked the law first. The approach follows it:
The PR applies the bar per person, before the earned income limit (Form 7206 line 1, then line 14). It handles the spouse's plan and leaves out a dependent's own coverage. It documents what annual inputs can't show: the months, a spouse filing separately, and a dependent's or child's plan that the taxpayer can join. Long-term care premiums are not in this base, so the separate long-term care test doesn't arise. Open finding. One should-address item. The coverage flags don't record whose employer maintains the plan, so a person covered by or offered a parent's employer plan is barred, though the statute doesn't list a parent's employer. The code comment and test docstring claim the opposite. There are no critical findings. CI is 35/35 green, with 3 jobs skipped by an earlier run. CriticalNone. Should address1. The own-coverage test treats any ESI enrollment or offer as the person's own employer's plan, but the inputs don't say whose employer it is. A parent's plan therefore bars the deduction, against the statute and against the PR's own comment (
Suggestions
Verified correct
Axiom line assessment
CI status35 checks pass at Branch status
Verdict: REQUEST_CHANGES |
DTrim99
left a comment
There was a problem hiding this comment.
Requesting changes: 0 critical, 1 should. The § 162(l)(2)(B) bar is applied correctly, and the axiom line is valid. Open: has_esi and the offer and contribution flags don't record whose employer maintains the plan, so a dependent on a parent's plan is barred though (l)(2)(B) doesn't list a parent's employer, and the code comment and test docstring claim the opposite. Document the approximation and correct both. Full report in the comment above.
|
Hub review in progress Head reviewed:
Generated by Claude Code |
|
Ready for hub review Independent review of the head above. It is unchanged since the hand-off. Main has since moved to The bar works for the case it targets: a spouse's employer plan on a joint return. It reproduces at main and is fixed here. I'm requesting changes for three reasons: the code says it protects dependents from a parent's plan, but it doesn't; main's #10265 has made the body's reader list and its long-term care statement untrue; and the documentation carries an unverified data claim. FindingsP11. A parent's employer plan bars a dependent (and a young filer) whose own coverage flags come from that plan. The code comment, the test docstring and the body all say the opposite.
P22. Main has moved under the PR. Since #10265, the body's reader list and its long-term care statement are false, and the green CI predates that merge.
3. The variable documentation states an unverified data fact. At
P3
Follow-up (identical on main; not this PR's defect)
Defect, rule and hand values
Checks on the brief's points
Readers (merged tree)
Tests run (one file per process)
CI at MutantsI ran these at
Checked and sound
What I couldn't check
Generated by Claude Code |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PR Review (round 2): Exclude employer-plan-eligible premiums from the self-employed health insurance deductionSummarySince our round 1 review (2026-11-04, head Round 1 findings. The should-address item is fixed, through a behavior change rather than only a documentation change. A tax unit dependent is now barred only when their own employer pays SOME or ALL of the premiums. Their New in the fix commits. An Two new should-address items. Neither is a formula error at the head.
CI: 36/36 pass at Prior findings
New findingsCriticalNone. Should address1. #10120 has merged, so this PR now lands second. It must add the input distinction its own body names. On the merged tree, flagging the payment of a plan the person's own partnership or S corporation establishes bars the deduction (
2. The queued rulespec-us issue no longer matches the head after the dependent fix (rulespec-us#1676, addendum comment).
Suggestions
Verified
Axiom
CI36/36 checks pass at Branch
Verdict: REQUEST_CHANGES |
DTrim99
left a comment
There was a problem hiding this comment.
Round 2: the round 1 should-address item and suggestions 1-5 are fixed. Two new should-address items: #10120 has merged, so this PR lands second and needs the own-business plan documentation the body describes, and rulespec-us#1676 needs an update for the new dependent rule. Details in the review comment above.
Bring in the plan-business and shareholder wage inputs used by the S corporation regression cases. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Distinguish partnership and shareholder premiums from unrelated employer support. Cover the S corporation inputs, retain the employer-plan bar, and describe the dependent and ACA input limits. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Congress bars the deduction for any month the taxpayer can join a subsidized plan of an employer of the taxpayer, their spouse, a dependent or a child under 27 (26 U.S.C. 162(l)(2)(B)), and the IRS repeats that list on Form 7206 line 1. The YAML header and the property-test docstring give the full list and say that the model covers the taxpayer's and spouse's employers. The own-business sentences cited S corporation sources for partners. They cite sections 162(l)(5) and 1372(a) and Notice 2008-1 for S corporations and the Form 7206 instructions for partners, and each reference tuple links page 1 of those instructions. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Main changed none of this branch's files, so the merge needed no conflict resolution. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
DTrim99, here's where each item of your two reviews stands at Your review of November 4:
Your review of November 9:
An independent AI review of 🤖 Generated with Claude Code |
|
US + core hub merge audit, us#10122 at
🤖 Generated with Claude Code |
We exclude Form 7206 line 1 medical premiums when the taxpayer can join a subsidized employer plan. We apply the existing earned-income limit after this exclusion and retain eligible long-term care premiums on line 2.
Congress applies the employer-plan test by month and separately for medical and long-term care coverage under 26 U.S.C. 162(l)(2)(B). The IRS applies that test before the deduction's income limit on the 2025 Form 7206 and in its instructions.
Methodology choices
health_insurance_premiums, without marking that business's payment as employer contributions of SOME or ALL. The IRS permits the shareholder deduction in Notice 2008-1 when the corporation establishes the plan and meets the reporting conditions. For partners, the Form 7206 instructions let the partnership pay the premiums and report them as guaranteed payments.PARTNERSHIPorS_CORPORATIONdoes not waive the employer-plan test. Settinghas_esior the offer flag for the qualifying own-business plan still bars a filer's deduction in the model. The inputs cannot distinguish that plan from another employer's plan. Keep coverage flags accurate for ACA calculations; the current inputs cannot represent every own-business plan for both calculations.We avoid
filing_statusbecause its calculation reaches dependents' incomes and this deduction. The eligibility formula uses the existing head and spouse roles.For example, a shareholder has $66,000 of box 1 wages, including $6,000 of corporation-paid premiums, and $60,000 of box 5 Medicare wages. With coverage flags clear, line 1 equals $6,000, the income limit equals $60,000, and the deduction equals $6,000. AGI equals $60,000. An unrelated employer's subsidized plan reduces the deduction to zero and leaves AGI at $66,000.
Invariants and tests
The property tests compare generated tax units with copies whose coverage flags we clear across 2024–2026. For units without long-term care premiums, the deduction stays nonnegative and cannot exceed the premium base or paid medical premiums. Clearing flags cannot lower the premium base or deduction. With wages and self-employment income only, the AGI difference equals the opposite change in filer deductions.
A deterministic grid covers every combination of each filer's enrollment, offer and contribution category, with the dependent's ESI flag clear or set. YAML cases cover joint filers, housemates, dependent enrollment and contributions, ALL contributions, separate medical and long-term care amounts, and the S corporation input distinction.
Pull request run 43986459118 at
01124f2823passed all 37 jobs on GitHub's merge with main5f6f35e8df.The Python file's tests check relationships across generated copies that fixed YAML cases cannot express. In CI run 43770807322, at the head, the job log lists 5.66 seconds of setup and call time for that file's seven tests in Rest (Python shard 8), group
remaining-3. The log reports no peak memory for the file.Related work and follow-ups
#10120 has merged. The premium, plan-business, contribution and eligibility documentation now distinguish qualifying own-business payments from another employer's subsidized plan. #10124 covers coordination with the premium tax credit.
The correction on rulespec-us#1676 describes the rule this PR applies: filers use the three flags, dependents use only their own employer's contributions of SOME or ALL, and the exclusion covers Form 7206 line 1. The companion tests retain their statutory outputs.
We leave five follow-ups for separate issues:
Microsimulation impact
We estimate that this branch raises federal income tax by $119.9m and state income tax by $26.9m in 2026 on the default dataset. It lowers household net income by $150.0m, and net income changes for 71 sampled households (231,551 weighted). The branch takes $1.05bn of medical premiums off Form 7206 line 1 for 75 sampled people whose coverage flags, or their spouse's, mark a subsidized employer plan. The self-employed health insurance deduction falls by $1.00bn for 74 sampled tax units (231,551 weighted), and their AGI rises by $1.00bn. The qualified business income deduction rises by $199.0m, and the Schedule A medical expense deduction rises by $405.1m, since Schedule A counts the premiums the self-employed deduction no longer takes. We compared
mainatc47412510cwith this branch at01124f2823.self_employed_health_insurance_aldself_employed_health_insurance_premiumsadjusted_gross_incomeitemized_medical_expensesmedical_expense_deductionaca_ptcqualified_business_income_deductional_agiid_qualified_health_insurance_premiumsmi_household_resourcesmo_qualified_health_insurance_premiumsms_self_employed_health_insurance_adjustmentmt_premium_deduction_jointnj_medical_expense_deductionoh_medical_care_insurance_premiumssc_gross_earned_incomestate_income_taxincome_taxhousehold_benefitshousehold_net_incomeAxiom parity
axiom: TheAxiomFoundation/rulespec-us#1676 queued (26 U.S.C. 162(l)(2)(B); addendum with monthly companion tests: TheAxiomFoundation/rulespec-us#1676 (comment); correction: TheAxiomFoundation/rulespec-us#1676 (comment); the pinned corpus release lacks section 162(l), so the signed encoder can't run yet)
🤖 Generated with Claude Code