Add CPS-derived income copies: survivor/educational/financial assistance (G7)#125
Merged
Conversation
This was referenced Jun 1, 2026
…nce (G7) Three person-level income leaves the Enhanced CPS exports as direct copies of raw ASEC fields, which Microplex produced none of (raw fields unmapped + leaves not allow-listed, so they never reached the H5): - survivor_benefits <- SRVS_VAL - educational_assistance <- ED_VAL - financial_assistance <- FIN_VAL Mirror eCPS policyengine_us_data/datasets/cps/cps.py:1493-1495 exactly (direct copies). Map the three raw fields in PERSON_VARIABLES so _process_persons renames them onto the pe-us input leaves, and add the leaves to SAFE_POLICYENGINE_US_EXPORT_VARIABLES. All three are confirmed storable INPUTS (no formula) in the pinned policyengine-us, so this exports real source-data values, never fakes. Closes 3 of the 47 missing required export-contract columns. Co-Authored-By: Claude Opus 4.8 (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.
Closes 3 of the 47 missing required export-contract columns.
Three person-level income leaves the Enhanced CPS exports as direct copies of raw ASEC fields, which Microplex produced none of:
survivor_benefits<-SRVS_VALeducational_assistance<-ED_VALfinancial_assistance<-FIN_VALMirrors eCPS
policyengine_us_data/datasets/cps/cps.py:1493-1495(direct copies). Maps the raw fields inPERSON_VARIABLESso_process_personsrenames them onto the pe-us input leaves, and adds the leaves toSAFE_POLICYENGINE_US_EXPORT_VARIABLES. All three confirmed storable INPUTS (no formula) in the pinned policyengine-us — real source-data values, no fakes.Tests:
tests/data_sources/test_cps_derived_income_copies.py(4 tests) exercise the real_process_personscopy + non-degeneracy + allowlist/alias. Full data_sources suite: 13 passed.🤖 Generated with Claude Code