Add Pennsylvania unemployment insurance#8124
Draft
daphnehanse11 wants to merge 4 commits intoPolicyEngine:mainfrom
Draft
Add Pennsylvania unemployment insurance#8124daphnehanse11 wants to merge 4 commits intoPolicyEngine:mainfrom
daphnehanse11 wants to merge 4 commits intoPolicyEngine:mainfrom
Conversation
Starting implementation of PA UI. Documentation and parallel development will follow.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8124 +/- ##
============================================
+ Coverage 71.23% 100.00% +28.76%
============================================
Files 4528 21 -4507
Lines 65767 285 -65482
Branches 333 0 -333
============================================
- Hits 46852 285 -46567
+ Misses 18906 0 -18906
+ Partials 9 0 -9
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
- Gate dependent allowance on is_unemployed (earnings < WBR+PBC) per § 4(u) - Correct MBA formula: WBR × min(credit_weeks, 26), not (WBR+dep) × ... - Register PA UC in programs.yaml - Fix #page=132 → #page=136 citations for § 404(e)(1) rate table - Gate dependent count/spouse flag on is_tax_unit_head to avoid broadcast - Document credit_week_minimum_earnings as intentionally informational Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.
Summary
Implements Pennsylvania Unemployment Compensation (PA UC) for PolicyEngine-US, covering monetary eligibility, weekly benefit rate from the 2025 statutory rate table, dependent allowance, partial benefits, benefit duration, and annual benefit calculation.
Closes #8117.
Regulatory Authority
Monetary Eligibility (4 tests, § 401(a) / § 404(c))
A claimant must satisfy ALL four tests. These are implemented as separate boolean variables combined via AND in
pa_uc_monetarily_eligible:pa_uc_meets_high_quarter_test— rate table Part A floor (§ 404(e)(1))pa_uc_meets_wages_outside_high_quarter_test(§ 401(a)(2))pa_uc_meets_qualifying_wages_test(§ 401(a)(2))pa_uc_meets_credit_weeks_test— where a credit week is any calendar week with ≥ $116 in earnings (§ 4(g.1), § 404(c))Weekly Benefit Rate (§ 404(a)(1) / § 404(e)(1))
WBR is determined by a statutory table lookup on the claimant's highest quarterly wages in the base year. The 2025 table has 549 bracket rows in $25 bands, mapping $1,688–$15,387 to WBRs of $68–$604, with an open-ended top row ($15,388+) at $605.
Stored as a single-amount bracket parameter (
rate_table.yaml) generated programmatically from the Pa. Bulletin source.Dependent Allowance (§ 404(e)(3))
Flat-dollar weekly allowance, paid on top of WBR when the claimant has qualifying dependents:
Partial Benefits (§ 4(m.3) / § 404(d)(1))
When a claimant works part of the week:
Benefit Duration (§ 404(c))
pa_uc= weekly_payable × min(weeks_unemployed, maximum_weeks)Payment Standards (2025)
Requirements Coverage
Not Modeled
Historical Notes
sources/working_references.md § Historical rate tables.Files Added
Counts: 14 parameter YAMLs (incl. index), 21 variable Python files (6 bare inputs + 15 derived), 13 test YAMLs.
Testing
make formatruns cleanFollow-up work
pa_ucintopolicyengine_us/parameters/gov/household/household_state_benefits.yaml(manual)policyengine_us/programs.yaml