Skip to content

Populate eCPS-supported export inputs#196

Merged
MaxGhenis merged 1 commit into
mainfrom
codex/populate-ecps-supported-exports-20260603
Jun 3, 2026
Merged

Populate eCPS-supported export inputs#196
MaxGhenis merged 1 commit into
mainfrom
codex/populate-ecps-supported-exports-20260603

Conversation

@MaxGhenis
Copy link
Copy Markdown
Contributor

@MaxGhenis MaxGhenis commented Jun 3, 2026

Summary

  • populate CPS-backed export-support fields for current health coverage, hourly/tipped work, occupation flags, pensions/retirement distributions, veterans/workers comp, SSN/TIN, immigration status, pregnancy, and prior-year income fields from actual prior-year ASEC joins
  • add PUF-backed QBI/199A, mortgage-interest, investment-interest, and health-premium support, with joint-filer conservation for new QBI fields
  • expose SIPP vehicle count/value donor fields and carry vehicle exports onto household tables

Tests

  • uv run --python 3.13 --extra dev ruff check src/microplex_us/data_sources/cps.py src/microplex_us/data_sources/puf.py src/microplex_us/pipelines/us.py src/microplex_us/variables.py tests/data_sources/test_cps_export_support_fields.py tests/test_cps_source_provider.py tests/pipelines/test_us.py tests/test_donor_survey_source_providers.py tests/test_pe_source_impute_specs.py tests/test_puf_source_provider.py && uv run --python 3.13 --extra dev ruff format --check src/microplex_us/data_sources/cps.py src/microplex_us/data_sources/puf.py src/microplex_us/pipelines/us.py src/microplex_us/variables.py tests/data_sources/test_cps_export_support_fields.py tests/test_cps_source_provider.py tests/pipelines/test_us.py tests/test_donor_survey_source_providers.py tests/test_pe_source_impute_specs.py tests/test_puf_source_provider.py
  • uv run --python 3.13 --extra dev python -m pytest tests/data_sources/test_cps_export_support_fields.py tests/test_cps_source_provider.py::test_load_cps_asec_attaches_previous_year_income_from_prior_asec tests/test_cps_source_provider.py::test_load_cps_asec_caches_household_geography_on_persons tests/test_cps_source_provider.py::test_load_cps_asec_derives_policyengine_value_inputs tests/test_puf_source_provider.py tests/test_pe_source_impute_specs.py tests/test_donor_survey_source_providers.py tests/pipelines/test_us.py::TestUSMicroplexPipeline::test_augment_policyengine_person_inputs_materializes_export_support_aliases tests/pipelines/test_us.py::TestUSMicroplexPipeline::test_attach_policyengine_tax_unit_source_inputs_derives_mortgage_structure tests/pipelines/test_us.py::TestUSMicroplexPipeline::test_build_policyengine_households_preserves_vehicle_exports tests/pipelines/test_us.py::TestUSMicroplexPipeline::test_build_policyengine_entity_tables_adds_ecps_stochastic_takeup_inputs tests/pipelines/test_us.py::TestUSMicroplexPipeline::test_attach_policyengine_pregnancy_inputs_assigns_eligible_females tests/pipelines/test_us.py::TestUSMicroplexPipeline::test_attach_policyengine_pregnancy_inputs_preserves_explicit_column tests/pipelines/test_us.py::TestUSMicroplexPipeline::test_build_policyengine_entity_tables_adds_wic_takeup_inputs tests/pipelines/test_us.py::TestUSMicroplexPipeline::test_build_policyengine_entity_tables_preserves_explicit_stochastic_takeup_inputs tests/pipelines/test_check_export_columns.py tests/pipelines/test_mp300k_artifact_gates.py
  • uv run --python 3.13 --extra dev python -m json.tool src/microplex_us/manifests/pe_source_impute_blocks.json >/tmp/pe_source_impute_blocks.json.validated

Notes

This is source-backed support population, not calibration/L0 and not manual filler values. The prior-year fields use the eCPS-style PERIDNUM join to the previous CPS ASEC when that raw zip is available; otherwise they fall back to explicit unavailable values so support parity still fails rather than pretending coverage.

@MaxGhenis MaxGhenis force-pushed the codex/populate-ecps-supported-exports-20260603 branch from 609f4a7 to 059d418 Compare June 3, 2026 11:57
@MaxGhenis MaxGhenis force-pushed the codex/populate-ecps-supported-exports-20260603 branch from 059d418 to e5e4fbd Compare June 3, 2026 12:06
@MaxGhenis MaxGhenis merged commit cdb31e5 into main Jun 3, 2026
5 checks passed
@MaxGhenis MaxGhenis deleted the codex/populate-ecps-supported-exports-20260603 branch June 3, 2026 12:09
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