Skip to content

Uprate Philadelphia taxable wages with employment income - #10779

Merged
MaxGhenis merged 3 commits into
mainfrom
fix/uprate-philadelphia-taxable-wages
Nov 11, 2026
Merged

MaxGhenis merged 3 commits into
mainfrom
fix/uprate-philadelphia-taxable-wages

Conversation

@MaxGhenis

@MaxGhenis MaxGhenis commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

What and why

pa_philadelphia_wage_tax_taxable_wages now uprates by calibration.gov.irs.soi.employment_income, the series that employment_income_before_lsr and the other pay inputs follow. Taxable wages that a dataset derives from wages now grow with those wages in every later year.

The variable declared no uprating, so CountryTaxBenefitSystem gave it the default for dollar inputs, CBO's adjusted gross income projection per capita (add_default_uprating in policyengine_us/tools/default_uprating.py, then add_per_capita_uprating in policyengine_us/tools/per_capita_uprating.py). When Microsimulation loads a single-year dataset, extend_single_year_dataset in policyengine_us/data/economic_assumptions.py multiplies each column by the year-over-year ratio of its uprating series. So taxable wages grew with AGI per capita, and wages with IRS employment income per capita.

From a 2024 base, CBO's AGI per capita stays ahead of IRS employment income per capita through 2036. On main, taxable wages set equal to wages in 2024 exceed them by 1.9% in 2025, 3.1% in 2026 and 0.1% to 2.5% in each year from 2027 to 2036. PolicyEngine/microcosm#1462, an open draft, sets a Philadelphia resident's taxable wages to max(employment_income_before_lsr, 0). With that data, we would compute the wage tax on more than a resident's wages in every projected year.

We also move these wages on the SPM methodology page from the inputs on the default to the pay inputs that follow the IRS employment income series. We leave the other local earnings tax inputs on the default: Kansas City and St. Louis taxable earnings, the St. Louis earnings tax credit, and Yonkers and Wilmington nonresident earnings. Neither the default dataset nor PolicyEngine/microcosm#1462 fills them.

Invariant

A wage-derived input grows with the wage series. Taxable wages and employment_income_before_lsr now resolve to the same uprating parameter, so extend_single_year_dataset multiplies both by the same factor each year. When a dataset sets taxable wages to wages floored at zero, the two keep that relation in every extended year.

Test plan

  • test_uprating_series.py lists pa_philadelphia_wage_tax_taxable_wages with the pay inputs in EXPECTED, so it fails if the variable leaves the employment income series.
  • test_per_capita_uprating.py::test_extension_grows_philadelphia_taxable_wages_with_wages extends a four-person 2024 dataset to 2035 and checks that taxable wages equal wages floored at zero in every year, with one negative and one zero wage. It runs no microsimulation and loads no dataset.
  • test_extension_keeps_philadelphia_taxable_wages_at_floored_wages, a Hypothesis property test, draws four wages between −$10 million and $10 million and checks the same relation through 2036. On main it fails, and Hypothesis shrinks to wages of 0, 0, 0 and 1.
  • For policy changes: not applicable (input uprating; no rule changes).
  • Source conflicts: not applicable.
  • ruff format --check / ruff check on the changed files (ruff 0.15.5, the locked version)
  • Changelog fragment in changelog.d/
  • Pull request run 42963485969 at 7e92d4256a passed all 36 jobs on GitHub's merge with main f2f0747472.

test_uprating_series.py and both new tests pass on this branch merged with main at 3f6e604b14. On main the two series differ in every year from 2025 to 2036; on this branch the variable and employment_income_before_lsr resolve to the same per-capita parameter.

Microsimulation impact

This PR changes no result on the default dataset (populace-us-2024-spm-20260909). That dataset has no pa_philadelphia_wage_tax_taxable_wages column, so the input stays at 0 in every year. When a user enters taxable wages for one year and computes a later year, the model now grows them with wages. For example, a Philadelphia resident with $50,000 of wages and taxable wages in 2024 now has $53,779 of taxable wages in 2026, where main gives $55,452, and owes $2,011 of wage tax, where main gives $2,074.

impact: none on the default dataset, which has no pa_philadelphia_wage_tax_taxable_wages column; household calculations that enter taxable wages for an earlier year now grow them with wages

axiom: n/a: changes how an input grows across years, in datasets and in household calculations; no provision changes

Related: PolicyEngine/microcosm#1462

🤖 Generated with Claude Code

MaxGhenis and others added 2 commits November 3, 2026 09:14
pa_philadelphia_wage_tax_taxable_wages declared no uprating, so
default_uprating.py gave it the default dollar-input series, CBO adjusted
gross income per capita. Wages (employment_income_before_lsr) follow IRS
employment income per capita, so a dataset that derives taxable wages from
wages saw the two drift apart in every extended year.

The variable now names calibration.gov.irs.soi.employment_income, as the
other pay inputs do. test_uprating_series.py pins the series, and a new test
in test_per_capita_uprating.py checks that dataset extension keeps taxable
wages equal to wages floored at zero in every year from 2025 to 2035. The
SPM methodology page moves the input from the default list to the pay inputs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Both sides edited the uprating paragraph of the SPM methodology page. This
keeps main's paragraph and reapplies the branch's two changes to it: wages
subject to Philadelphia's wage tax join the pay inputs, and the default
list's "local earnings and wage tax inputs" become "local earnings tax
inputs".

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@codecov

codecov Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

Codecov Report

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

Additional details and impacted files
@@            Coverage Diff            @@
##              main    #10779   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines           37        10   -27     
=========================================
- Hits            37        10   -27     
Flag Coverage Δ
unittests 100.00% <100.00%> (ø)

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.

…nsion

For any four wages, taxable wages set to wages floored at zero keep that
relation in every extended year through 2036. On main the test fails:
Hypothesis shrinks to wages of 0, 0, 0 and 1.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@MaxGhenis
MaxGhenis merged commit c730a0d into main Nov 11, 2026
38 checks passed
@MaxGhenis

Copy link
Copy Markdown
Contributor Author

US + core hub merge audit, us#10779 at 7e92d4256ad6f8ecd42e6f27c77dc07ee3c8e496 (squash): Uprate Philadelphia taxable wages with employment income.

  • Reviews:
    • 18e55d0d2c merges main at 3f6e604b14. Both sides had edited the uprating paragraph of the SPM methodology page; the merge keeps main's paragraph and reapplies this PR's two phrase changes to it.
    • An independent review at 18e55d0d2c found the code, the tests, the docs change and every figure right. It asked for one description change: core also applies an input's uprating in household calculations, so the change isn't limited to datasets. The description now says so, with a worked household.
    • 7e92d4256a adds the property test that review proposed: for any four wages, taxable wages set to wages floored at zero keep that relation through 2036. On main it fails.
    • The same reviewer agreed at 7e92d4256a: the commit adds only that test, and the description carries each change it asked for.
    • No change request stands.
  • Gates checked live at merge:
    • gh pr checks exits 0;
    • the latest Pull request run at the head, 42963485969, passed and tested this head merged into main at f2f0747472;
    • MERGEABLE;
    • not a draft;
    • no reviewer's latest review requests changes;
    • the semantic-overlap guard: since f2f0747472, main has changed no area this PR touches;
    • the merge pins the head.
  • Impact: none on the default dataset, which has no pa_philadelphia_wage_tax_taxable_wages column, so the input stays at 0 in every year.
  • Next: PolicyEngine/microcosm#1462, an open draft, derives this input from wages. The other local earnings tax inputs stay on the default uprating.
  • Axiom: n/a. The PR changes how a dataset input grows across years and no provision.

🤖 Generated with Claude Code

@MaxGhenis
MaxGhenis deleted the fix/uprate-philadelphia-taxable-wages branch November 11, 2026 06:22
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.

1 participant