Repository navigation
Open
Description
Summary
The County Files proof of concept (#1647) runs with a temporary setup, so that it can finish in one laptop window on 17 November. None of that setup belongs in the final County Files build. This issue tracks removing each piece, and the real fix that replaces it, so that every county is supported well.
Temporary pieces
--county-drop-empty-soi-rowson every R2 run (County Files PoC: donor patch, R1 allowance, R2 pre-checks and fixes #1660; ruling in County Files: a proof-of-concept county-calibrated dataset by 23 November #1647, comment 6950739270).- The flag drops a county's IRS SOI AGI row when no supporting household in the county can carry nonzero AGI. R2 records a receipt, and does not refuse the run.
- A dropped row means that county's AGI is not calibrated.
- For the final build, do not pass the flag. Give every county's SOI rows real support instead. Two options:
- extend minimum support so that it also fills counties whose SOI rows would be empty. Today it fills only counties with no household at all (Make the county rung a production county calibration for the County Files #1630 review, finding 1);
- a declared SOI cell with its own ruling, as Kalawao has.
- Then decide whether to remove the flag, or to refuse it on release builds.
- The patched donor (
tools/patch_us_acs_donor_columns.py, County Files PoC: donor patch, R1 allowance, R2 pre-checks and fixes #1660).- It adds a zero
passive_partnership_s_corp_incomecolumn. R1 then accepts that column and the all-zeros_corp_incomeonly through--allow-default-donor-column. On every row, the partnership and S-corp income stays one combined amount inpartnership_income. - It restores the three Carry industry and worked-last-year on every US person record (ASEC restore + ACS crosswalk) #1039 work columns from the ASEC person files, and adds a zero
strike_benefitscolumn. - For the final build, use the new national donor from
main(F18, with Pool main's default ASEC years in Route A (d2603) #1559 andblock_v1). That donor carries the real split (US frame partnership/S-corp income is nonpassive-only: the donor builds it from E25980-E25960 + E26190-E26180, not line 32 (E26270) #1239, US PUF donor carries Schedule E line 32 as one number: s_corp_income is an exact-zero universe, so Table 1.4's partnership and S-corp legs cannot bind by entity #1258), the work columns (Carry industry and worked-last-year on every US person record (ASEC restore + ACS crosswalk) #1039) andstrike_benefits. R1 then runs on the unpatched donor without--allow-default-donor-column.
- It adds a zero
- Files only. The PoC's R1 runs without
--donor-release-manifest, so R2 recordsdonor_release: null, and the publisher refuses the release. For the final build, run R1 with the published donor's manifest, so the build is publishable.
Not temporary: the strike_benefits reviewed fill on ACS rows (77f5fa163 in #1660). Nothing copies strike_benefits to ACS rows, whatever the donor, so the fill is general and correct. Keep it.
Done when
- The final County Files build runs R1 on the new national donor, unpatched, with its
--donor-release-manifestand without--allow-default-donor-column. - R2 runs without
--county-drop-empty-soi-rows, andtools/check_us_acs_county_agi_support.pylists no county on the staging file. - The help texts and docs no longer describe a proof-of-concept setup as current, or the temporary flags are removed or refused on release builds.
Related
#922 (parent), #1647, #1660, #1630, #1559, #1039, #1239, #1258
🤖 Generated with Claude Code
Metadata
Metadata
Assignees
Labels
No labels
Activity
Point the proof-of-concept notes at the removal issue, #1661
Describe policyengine-us 2.145.3 in the lane's texts; require the lin…
Keep first-pass county support at its PUMA's AGI mix (#1661)