Skip to content

Count alimony once, gross wages and cash public assistance in Pennsylvania rebate income - #11691

Open
DTrim99 wants to merge 6 commits into
mainfrom
pa-rent-rebate-income
Open

DTrim99 wants to merge 6 commits into
mainfrom
pa-rent-rebate-income

Conversation

@DTrim99

@DTrim99 DTrim99 commented Dec 3, 2026 •

Copy link
Copy Markdown
Collaborator

Part of #10812 (state credit income audit).

What was wrong

pa_property_tax_or_rent_rebate_income (PA-1000 line 13) starts from federal adjusted gross income and adds the PA-1000 amounts that AGI leaves out. Household income is defined in section 1303 of the Taxpayer Relief Act (53 P.S. 6926.1303), "Income": "All income from whatever source derived, including, but not limited to: (1) Salaries, wages, bonuses, commissions, income from self-employment, alimony, support money, cash public assistance and relief." Three items in that paragraph were off:

  • Alimony counted twice. The formula added alimony_income on top of AGI. Federal AGI already holds alimony under a divorce instrument executed before 2019 (divorce_year defaults to 2010), so that alimony counted twice. The 2025 PA-1000 booklet, line 11c asks for "alimony, and spousal support money" once.
  • Wages net of elective deferrals. Federal AGI holds wages after traditional 401(k) and 403(b) deferrals. Line 11a asks for "Gross salaries, wages, bonuses, commissions".
  • No cash public assistance. Line 11d asks for "Cash public assistance/relief". The model counted neither general assistance nor TANF.

What changes

All changes are in the line 11 list of pa_property_tax_or_rent_rebate_income, plus one new variable:

Entry Section 1303 "Income" (1) 2025 PA-1000 line (booklet page 8)
pa_property_tax_or_rent_rebate_nontaxable_alimony (new), replacing alimony_income "alimony" 11c
traditional_401k_contributions, traditional_403b_contributions "Salaries, wages" 11a: "Gross salaries, wages"
general_assistance, tanf_person "cash public assistance and relief" 11d: "Cash public assistance/relief"
  • Alimony: the new person-level variable is alimony_income − taxable_alimony_income, the pattern the Rhode Island and Utah property tax credits use. Alimony from a divorce before 2019 now counts once, through AGI; alimony from a later divorce still counts in full on line 11c.
  • Deferrals: only the 401(k) and 403(b) elective deferrals are added back, not all of pre_tax_contributions. That variable also holds pre-tax health premiums, HSA payroll contributions and dependent care benefits, and the booklet does not say whether those salary reductions belong in "gross salaries". Count all of Wisconsin's listed income in homestead credit household income #11176 (Wisconsin) made the same choice.
  • Children's assistance: the booklet (page 9) leaves out "Public Assistance benefits received by children in the household, even though the check is issued in claimant's name". The formula already sums the head and spouse only, so it takes their per capita shares from tanf_person (the unit's TANF divided by the unit's size), as the New York and Missouri credits do. Pennsylvania does not split a TANF grant by person, so the per capita share is an approximation.

Who is affected

The rebate falls as household income rises, and ends above $48,110 (2025).

  • Household income falls for claimants with alimony from a divorce before 2019, by the amount of the alimony. A 65-year-old with 6,000 of such alimony and no other income now has 6,000 of household income instead of 12,000, which moves the maximum rebate from $770 to $1,000.
  • Household income rises for claimants or spouses with 401(k) or 403(b) deferrals, general assistance, or TANF. Working claimants under 65 (widows and widowers 50 and over, and disabled claimants) are the most likely to have deferrals. TANF reaches disabled claimants who care for children.
  • Partner tests read none of the changed variables.

Tests

  • Moved from Audit state credit income definitions against the law (CI run, do not merge) #10812, with the "audit" and "Main:" framing dropped and the arithmetic and citations kept, into pa_property_tax_or_rent_rebate_income.yaml:
    • Case 11: alimony from a 2010 divorce counts once (6,000; main 12,000).
    • Case 13: wages count before a 401(k) deferral (20,000; main 18,000).
    • Case 16: cash relief on line 11d, now a State Blind Pension claimant: is_blind: true, 3,000 of private pension and general_assistance: 1_200, which stands for the pension. 55 Pa. Code 451.4(b) pays $100 a month when annual net income is $3,060 or less, and nothing once income plus the pension passes $4,260 a year, so 12 x $100 = 1,200 fits. Household income is 3,000 + 1,200 = 4,200 (main 3,000).
  • Added:
    • Case 12: alimony from a 2019 divorce, the first year outside AGI, counts on line 11c (6,000).
    • Case 14: a 403(b) deferral (30,000; main 27,000).
    • Case 15: a Roth 401(k) contribution is already in AGI and is not added again (20,000).
    • Case 17: a disabled parent with two children gets computed TANF of $4,836 (Pennsylvania's Group 2 family size allowance for three, $403 a month). The claimant's per capita share, 4,836 / 3 = 1,612, counts; the children's 3,224 stays out (main 0).
    • Case 18: a married couple and a 17-year-old dependent with computed TANF of $4,836. Both spouses' shares count (1,612 + 1,612 = 3,224) and the dependent's 1,612 does not (main 0).
    • Case 19: the deferral cap. Federal AGI floors wages less deferrals at zero, so the formula adds back min(deferrals, wages) for each head or spouse, using that person's own wages. A 5,000 401(k) deferral on 3,000 of wages adds back 3,000, not 5,000 (main 0). The inputs are deliberately inconsistent, since a deferral comes out of pay, and the case's comment says so.
  • Changed: Case 7 pins AGI at 10,000, which held none of its 2,000 of alimony, so it now sets divorce_year: 2019 to keep the alimony outside AGI. Its expected value (19,000) is unchanged.
  • Main vs this branch (the test file run against main at d16c0d4, without the two assertions on the new variable): Cases 11, 13, 14, 16, 17, 18 and 19 fail on main and pass here. The other 14 cases, including 7, 12 and 15, pass on both.
  • Local runs (policyengine-core 3.40.0): the Pennsylvania rebate test folder, 37/37, before and after merging main at 4e3e905; policyengine_us/tests/code_health/, 1155 passed and 1 skipped, before the merge. Earlier rounds also ran the three other YAML files that read the rebate (state_property_tax_refunds.yaml, pa_total_taxable_income.yaml, pa_property_tax_or_rent_rebate_in_aggregate.yaml) and test_household_spm_resource_parity.py; this round changes only test inputs, so those were not rerun.

Overlap with #11051

#11051 ("Update Pennsylvania's 2026 property tax and rent rebate bands and count cohabiting spouses") rewrites this formula. The two PRs touch the same pa_1000_line_11_income list, so whichever merges second has one conflict hunk there. Resolve it by keeping #11051's per-person add(person, period, [...]) form and this PR's list entries. The test files merge cleanly: #11051 edits only Case 9 of the income test file, and this PR edits Case 7 and appends Cases 11 to 18. With #11051's structure the new entries flow into its person_adjustment, so they also reach a spouse on a separate return.

Not in this PR

axiom: TheAxiomFoundation/rulespec-us#2931 queued

🤖 Generated with Claude Code

@codecov

codecov Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Codecov Report

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

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #11691      +/-   ##
===========================================
+ Coverage   95.34%   100.00%   +4.65%     
===========================================
  Files           1         2       +1     
  Lines          86        45      -41     
  Branches        2         0       -2     
===========================================
- Hits           82        45      -37     
+ Misses          4         0       -4     
Flag Coverage Δ
unittests 100.00% <100.00%> (+4.65%) ⬆️

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

☔ View full report in Codecov by Harness.
📢 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.

@DTrim99
DTrim99 marked this pull request as ready for review December 3, 2026 15:06
@DTrim99
DTrim99 requested a review from hua7450 December 3, 2026 15:06

@hua7450 hua7450 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.

Thanks, David. The three line 11 changes match section 1303 and the 2025 booklet. Alimony now counts once: alimony from a pre-2019 divorce stays in AGI, and the new variable adds only what AGI leaves out. Adding back 401(k) and 403(b) deferrals gives line 11a's gross wages. Stopping at those two is a fair choice, since the other salary-reduction inputs mix in employer-paid amounts. Cash public assistance counts for the claimant and spouse only. That matches 61 Pa. Code 401.1 and the booklet, which excludes children's assistance "even though the check is issued in claimant's name". No source says how to split a family grant, so the per capita tanf_person share is a reasonable approximation. There's no cycle through TANF, and the new expected values check by hand. The formula is fine; two test inputs need changing before I approve.

Before merge

  1. Case 17's TANF grant can't happen. It pins tanf: 6_000 for a parent and two children in 2025. Pennsylvania's largest family-size allowance for three people is $421 a month, or 5,052 a year (family_size_allowance/amount.yaml). Without the pin, the model pays this household 4,836 (403 × 12), so tanf_person is 1,612 each and rebate income is 1,612; the rebate is still $1,000. Please drop the pin and expect 1,612. That also tests the computed path from pa_tanf into the rebate.
  2. Cases 16 and 18 use General Assistance, which Pennsylvania ended in 2019. Act 12 of 2019 (section 2, Human Services Code 403.2(a)) says "the general assistance cash assistance program shall cease August 1, 2019", so a 2025 household can't receive it. Keeping general_assistance in the list is fine, since it's a generic input for reported cash relief. Please change the two cases in one of these ways:
    • use TANF for the spouse and dependent case;
    • say in the comment that the input stands for other reported cash relief, such as State Blind Pension or Refugee Cash Assistance; or
    • set them in a year before August 2019.

Optional

  • Cap the deferral add-back at wages. AGI floors wages less deferrals at zero, but the add-back is the full deferral. So $3,000 of wages with a $5,000 deferral gives rebate income of 5,000 instead of 3,000. Only inconsistent inputs reach this; adding back min_(deferrals, employment_income) per person would close it.
  • Cite section 1303 in the income variable. The new line 11 entries rest on it, but only the new alimony variable cites it. The tanf_person comment could also say that the per capita split approximates the children's share, which is left out.
  • Renters on cash assistance (follow-up). Section 1304(c)(2) says a claimant who receives public assistance "shall not be eligible for rent rebate in lieu of property taxes during those months" (booklet Schedule D). The model still pays it. That's older than this PR, but the PR now brings TANF into this path, so it's worth a separate PR.
  • Shared alimony variable (follow-up). This is the fifth copy of the alimony_income − taxable_alimony_income logic; Utah, Rhode Island, Montana and Minnesota have the others. One shared variable could replace them in a separate PR.

DTrim99 and others added 3 commits December 3, 2026 14:15
…vania rebate income

Household income for the Property Tax/Rent Rebate (53 P.S. 6926.1303,
"Income" paragraph (1); 2025 PA-1000 lines 11a, 11c and 11d):

- Alimony under a pre-2019 divorce is already in federal AGI; only the
  part outside AGI is added on line 11c.
- 401(k) and 403(b) elective deferrals are added back so wages count at
  their gross amount.
- The claimant's and spouse's general assistance and per capita TANF
  count as cash public assistance; children's shares stay out.

Part of #10812.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The fallback for a reform that drops taxable_alimony_income from federal
gross income now multiplies by a scalar flag instead of branching, so the
same results come out and every line runs in the baseline tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ped at wages

- Case 17 drops the TANF pin and expects the computed pa_tanf share (1,612).
- Case 18 uses computed TANF instead of General Assistance, which ended in
  2019; Case 16 notes that general_assistance stands for other cash relief.
- Cap the 401(k)/403(b) add-back at each person's wages, with a new test.
- Cite 53 P.S. 6926.1303 in the income variable and clarify the tanf_person
  per capita comment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@DTrim99
DTrim99 force-pushed the pa-rent-rebate-income branch from d7812b6 to 440f15c Compare December 3, 2026 19:16
@DTrim99

DTrim99 commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator Author

Thanks for the review. All four requested and optional changes are in 440f15c, rebased on current main.

Before merge (fixed)

  1. Case 17's TANF grant. I dropped the tanf: 6_000 pin, so pa_tanf now computes the grant. For three people in the default county group (Group 2) the family size allowance is $403 a month, or 4,836 a year. The case now expects pa_tanf: 4_836, tanf_person: 1_612 for each member and rebate income of 1,612. That tests the computed path from pa_tanf into the rebate. The rebate bracket for 1,612 is the same as the one for 2,000.
  2. General Assistance in Cases 16 and 18.
    • Case 18 (the spouse and dependent case) now uses computed TANF instead of general_assistance, and I removed its tanf: 0 pin. TANF is 4,836, or 1,612 per person. Household income is the claimant's and spouse's shares, 1,612 + 1,612 = 3,224; the dependent's 1,612 stays out.
    • Case 16 keeps general_assistance: 2_400, with a comment that General Assistance cash ended on August 1, 2019 (Act 12 of 2019, Human Services Code 403.2(a)). The input stands in for other reported cash relief, such as State Blind Pension or Refugee Cash Assistance.

Optional (fixed)

  • Deferral add-back capped at wages. The 401(k) and 403(b) add-back is now min_(deferrals, employment_income) per person, summed over the claimant and spouse. New Case 19 has $3,000 of wages and a $5,000 deferral: AGI is 0, and rebate income is 3,000, not 5,000.
  • Section 1303 citation. pa_property_tax_or_rent_rebate_income now cites 53 P.S. 6926.1303 (the "Income" definition in Act 1 of 2006) as its first reference. The tanf_person comment now says the per capita split approximates leaving out the children's share, since no source says how to split a family grant.

Deferred to follow-up PRs

  • Renters on cash assistance (sec. 1304(c)(2)). That behavior predates this PR, so I'll fix it separately rather than widen this one.
  • Shared alimony-outside-AGI variable. Merging the Utah, Rhode Island, Montana, Minnesota and Pennsylvania copies touches four other states' programs, so it belongs in its own PR.

Verification

  • 89 of 89 targeted YAML cases pass. They cover the rebate folder and the files that read the rebate, tanf_person or the deferrals: state property tax refunds, PA total taxable income, the PA rebate aggregate and PA tax forgiveness. I reran them after the rebase.
  • 167 of 167 code-health tests on parameters, references and variable names pass.
  • ruff format and ruff check are clean.

@DTrim99
DTrim99 requested a review from hua7450 December 3, 2026 19:16

@hua7450 hua7450 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.

Thanks, David. The fixes check out at 1250d36:

  • Computed TANF. Case 17 now gets $4,836 from Pennsylvania's schedule ($403 a month for a family of three), and the rebate counts the claimant's 1,612 share. Case 18 counts both spouses' shares (3,224) and leaves out the 17-year-old's.
  • Deferral cap. The add-back is capped at each spouse's own wages, so a joint return gives 23,000 where a combined cap would give 25,000.
  • Section 1303 reference. It points to the current text of the "Income" definition.

One thing before I approve, and it comes from my own suggestion last round.

Before merge

  1. Case 16's cash relief can't come from the programs its comment names. I offered the wording "other reported cash relief, such as State Blind Pension or Refugee Cash Assistance" without saying the amount had to fit, and the case pairs $2,400 with a $10,000 pension:

    • State Blind Pension pays at most $100 a month, and nothing once income plus the pension passes $4,260 a year (55 Pa. Code 451.4(b)).
    • Refugee Cash Assistance follows Pennsylvania's TANF income rules and payment levels (45 CFR 400.66(a)), so one person gets at most $205 a month, and an $833 monthly pension leaves nothing.

    The smallest fix is a State Blind Pension claimant: is_blind: true, taxable_private_pension_income: 3_000 and general_assistance: 1_200 (12 x $100). Expected rebate income is 4,200. Dropping the program names and using an amount the comment can source works too.

Optional

  • Case 19's inputs. A $5,000 deferral on $3,000 of wages can't happen, since deferrals come out of pay. Testing the cap this way is fine, but a comment saying the inputs are deliberately inconsistent would help.
  • PR body. The Tests section still describes the pinned TANF in Case 17 and General Assistance in Case 18, and it doesn't mention the deferral cap or Case 19.
  • Follow-ups, separate PRs (as before). Consolidating the nontaxable-alimony logic, and section 1304(c)(2)'s bar on the rent rebate for months a renter gets cash public assistance.

@DTrim99

DTrim99 commented Dec 4, 2026

Copy link
Copy Markdown
Collaborator Author

Thanks for catching this. Both changes are in d26a243, and 823923a merges current main.

Before merge

  1. Case 16 is now a State Blind Pension claimant. It uses your inputs: is_blind: true, taxable_private_pension_income: 3_000 and general_assistance: 1_200. The comment cites 55 Pa. Code 451.4(b): $100 a month when annual net income is $3,060 or less, and nothing once income plus the pension passes $4,260 a year. With 3,000 of private pension income the pension is 12 x $100 = 1,200, and 3,000 + 1,200 = 4,200 stays under the limit. Rebate income is the line 6 pension (3,000) plus line 11d cash relief (1,200) = 4,200, against 3,000 on main. The comment still says general_assistance stands for that cash relief, since Pennsylvania's General Assistance cash ended in 2019. Refugee Cash Assistance is no longer named.

Optional

  • Case 19's inputs. Done. A comment says the inputs are deliberately inconsistent: a deferral comes out of pay, so it can't exceed wages, and the 5,000 deferral on 3,000 of wages is there to test the cap.
  • PR body. Done. The Tests section now describes computed TANF in Case 17 ($4,836, a 1,612 share) and Case 18 (both spouses' shares, 3,224), the per-person deferral cap with Case 19, and Case 16 as a State Blind Pension claimant. The main-vs-branch and local-run counts are refreshed too.
  • Follow-ups, separate PRs. Both stay out of this PR:
    • consolidating the nontaxable-alimony logic, which this PR's new variable shares with the Rhode Island and Utah property tax credits;
    • section 1304(c)(2)'s bar on the rent rebate for months a renter gets cash public assistance.

Verification

  • Pennsylvania rebate test folder: 37/37, before and after the merge from main.
  • policyengine_us/tests/code_health/: 1155 passed, 1 skipped.
  • The updated income test file against main (d16c0d4), without the two assertions on the new variable: Cases 11, 13, 14, 16, 17, 18 and 19 fail there and pass here.
  • Only the test file changed this round; the formula is unchanged.

@DTrim99
DTrim99 requested a review from hua7450 December 4, 2026 02:36

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