Repository navigation
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
hua7450
left a comment
There was a problem hiding this comment.
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
- Case 17's TANF grant can't happen. It pins
tanf: 6_000for 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), sotanf_personis 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 frompa_tanfinto the rebate. - 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_assistancein 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_personcomment 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_incomelogic; Utah, Rhode Island, Montana and Minnesota have the others. One shared variable could replace them in a separate PR.
…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>
d7812b6 to
440f15c
Compare
|
Thanks for the review. All four requested and optional changes are in 440f15c, rebased on current Before merge (fixed)
Optional (fixed)
Deferred to follow-up PRs
Verification
|
hua7450
left a comment
There was a problem hiding this comment.
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
-
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_000andgeneral_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.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks for catching this. Both changes are in d26a243, and 823923a merges current Before merge
Optional
Verification
|
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_incomeon top of AGI. Federal AGI already holds alimony under a divorce instrument executed before 2019 (divorce_yeardefaults to 2010), so that alimony counted twice. The 2025 PA-1000 booklet, line 11c asks for "alimony, and spousal support money" once.What changes
All changes are in the line 11 list of
pa_property_tax_or_rent_rebate_income, plus one new variable:pa_property_tax_or_rent_rebate_nontaxable_alimony(new), replacingalimony_incometraditional_401k_contributions,traditional_403b_contributionsgeneral_assistance,tanf_personalimony_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.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.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).
Tests
pa_property_tax_or_rent_rebate_income.yaml:is_blind: true, 3,000 of private pension andgeneral_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).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.divorce_year: 2019to keep the alimony outside AGI. Its expected value (19,000) is unchanged.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) andtest_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_incomelist, so whichever merges second has one conflict hunk there. Resolve it by keeping #11051's per-personadd(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 itsperson_adjustment, so they also reach a spouse on a separate return.Not in this PR
financial_assistanceexists, but the sources read two ways. The statute counts gifts "in excess of a total value of $300", which can mean only the amount above $300; the booklet counts gifts "totaling more than $300", which reads as the whole amount once the total passes $300. 61 Pa. Code 401.1 repeats the statute. Left out until the reading is settled.axiom: TheAxiomFoundation/rulespec-us#2931 queued
🤖 Generated with Claude Code