Draft: Integrate modeled state unemployment insurance into income flows - #8303
Draft: Integrate modeled state unemployment insurance into income flows#8303daphnehanse11 wants to merge 2 commits into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8303 +/- ##
==========================================
Coverage 100.00% 100.00%
==========================================
Files 12 1 -11
Lines 161 10 -151
==========================================
- Hits 161 10 -151
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:
|
|
Converted this to a draft umbrella PR for modeled state UI income-flow integration. The PA UC wiring is a useful first candidate, but we should not merge it into baseline |
Remove the adds wiring into unemployment_compensation (newer core rejects adds combined with uprating, and the integration is deferred to PolicyEngine#8303 pending policyengine-us-data support) and the coupled integration assertion. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
(cherry picked from commit 6198da9)
Builds on the PA UC integration: unemployment_compensation now adds the modeled state UI benefits for all currently-merged programs (al_ui, ny_ui, ok_ui, pa_uc, ut_ui). Adds a 'feeds unemployment compensation income flows' integration case to each state's UI suite (mirroring PA Case 8), asserting the benefit flows to unemployment_compensation / tax_unit_unemployment_compensation and the taxable_* pair. Rebased onto current main. State UI suites 47/47; taxable-UC + my_friend_ben and analytics-coverage partner signature tests unaffected (adds is inert where unemployment_compensation is a set input). See PR comment re: the baseline double-count / microsim question. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
6198da9 to
926a7f2
Compare
|
@PavelMakarchuk — picking this draft up now that the AL/NY/OK/PA/UT UI programs are all merged. I've rebased onto current main and extended the wiring to every merged state UI program: But before this comes out of draft I want your call on two things — you lead US encoding so this is your decision, not something to escalate. 1. Should modeled state UI feed baseline
|
Tracks #8301.
Purpose
This is the draft umbrella PR for wiring modeled state unemployment insurance benefits into
unemployment_compensationand downstream income flows.Keep this PR as a draft until the relevant state rules and
policyengine-us-datapipelines are ready. State UI rule implementations can still merge separately when they are calculator-safe; this PR is for the baseline microsimulation integration step.Why draft
The current PA wiring is conceptually right for household calculations, but it should not enter baseline aggregation until enhanced CPS can populate or impute the required wage-history and unemployment inputs. Otherwise, the integration would be partial: modeled UI would depend on inputs that are not yet available in the microsim data pipeline, and could mix calculator-only logic into baseline income flows prematurely.
Scope
unemployment_compensationonly after each state has usable data inputs.policyengine-us-datafor extraction/imputation of required variables.Current contents
Checklist
policyengine-us-data.policyengine-us-dataminimumpolicyengine-usversion after any new model variables are released.unemployment_compensationdoes not drop relative to the reported baseline.unemployment_compensation.addsonce data-backed.Tests so far
These passed for the current PA-only wiring, but they are not sufficient to merge this PR:
uv run python -m policyengine_core.scripts.policyengine_command test policyengine_us/tests/policy/baseline/gov/states/pa/dli/unemployment_compensation -c policyengine_usuv run python -m policyengine_core.scripts.policyengine_command test policyengine_us/tests/policy/contrib/taxsim/taxsim_v11.yaml -c policyengine_usuv run python -m policyengine_core.scripts.policyengine_command test policyengine_us/tests/policy/baseline/household/income/spm_unit/spm_unit_benefits.yaml -c policyengine_usuv run --extra dev ruff check policyengine_us/variables/gov/states/unemployment_compensation.pyuv run --extra dev ruff format --check policyengine_us/variables/gov/states/unemployment_compensation.py