Repository navigation
Conversation
26 CFR 1.36B-1(e)(1)(ii) and 42 CFR 435.603(d)(2) count another family member's modified AGI in household income only if that member is required to file. medicaid_magi (which aca_magi adds) added every member's tax-exempt interest and all of a dependent's Social Security, and none of a dependent's AGI. It now adds the filers' MAGI plus the whole MAGI of each dependent who is required to file. The MAGI additions now take each person's own tax-exempt Social Security (tax_exempt_social_security_person), so medicaid_magi_person no longer gives a child's benefits to the parent. medicaid_irs_gross_income counts a dependent's taxable benefits, figured on their own return, toward the filing threshold. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Property-based and seeded-population checks: a Form 8962 differential for medicaid_magi, the exclusion of dependents who need not file, the Social Security identities, the unchanged formula without dependents, and agreement with the person-level Medicaid household income on the tax-filer route. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 11, 2026
4 tasks done
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Net allowable capital and business losses on a dependent's return. Test filing with positive capital gains. Apply the ACA tax-family mask before summing household income and floor the Social Security add-back on the return. Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Linux household YAML checks and Python invariant tests pass on the branch. The household YAML checks also pass on a merge with main. Axiom parity and the 2025 and 2026 microsimulations are pending.
What's wrong on main
The premium tax credit counts the taxpayer's return and the MAGI of other tax-family members required to file. Medicaid uses each applicant's Medicaid household, with the child and specified tax-dependent exclusions in 42 CFR 435.603(d)(2).
On main:
medicaid_magi(whichaca_magiadds) is tax-unit AGI plusadd(tax_unit, modification). That adds every member'stax_exempt_interest_incomeandtax_exempt_social_security, and the latter includes all of a dependent's Social Security. It never adds a dependent's AGI. So a child's survivor benefits or tax-exempt interest raise household income, and a teen who must file because of wages adds nothing.medicaid_magi_persongives the tax unit'stax_exempt_social_security, the child's benefits included, to the head and spouse. So Medicaid household income (medicaid_household_income) puts a child's benefits in the parent's MAGI even when 435.603(d)(2)(i) excludes the child's income.Fix
tax_exempt_social_security_person(new) adds each filer's untaxed benefits from the return that reports them. If a tax-unit total contains benefits without person amounts, the filers share the unallocated amount equally. Dependents' benefits use their own returns (Pub. 915 (2025), "Who is taxed").medicaid_magicombines the return's MAGI with the MAGI of dependents required to file and floors the sum at zero. For incomplete joint-return roles, both tax-unit MAGI formulas (aca_magiandmedicaid_magi) use the same inferred filers for AGI and the Social Security add-back. The shared helpermagi_household_incometakes both a filer mask and a counted-dependent mask. ACA uses its tax-family gate when choosing dependents.medicaid_magi_personalready classifies additions by entity. The modification parameter (gov.hhs.medicaid.income.modification) now supplies person-level Social Security so the household calculation can attribute benefits to their recipients.medicaid_irs_gross_incomecounts dependent Social Security toward the filing threshold to the extent it is taxable (Pub. 501 (2025), Table 2). The $5 rule inmedicaid_person_is_required_to_fileuses the dependent's separately filing spouse's itemization status. Dependent MAGI (medicaid_adjusted_gross_income_personanddependent_taxable_ss_magi) applies the passive loss limit before the excess business loss limit and applies the separate-return capital loss cap when spouses lived apart.Examples (2025, parent with $40,000 of wages)
medicaid_magion mainCoordination
axiom: needed
🤖 Generated with Claude Code