Skip to content

County Files: a proof-of-concept county-calibrated dataset by 23 November #1647

Done

Description

@juaristi22

Summary

By Monday 23 November, build one county-calibrated US dataset that shows the county line works end to end:

  • every one of the 3,144 county-equivalents has households;
  • the county rung trains on county targets;
  • every county gets a reliability grade.

The fit can be imperfect, but the report must state it. The 2026 and 2027 files are a stretch goal.

#922 scopes the full County Files. Its "What is missing" list dates from 3 September, and it has no other sub-issues except #1645. The current plan lives in Max's open PRs (#1614, #1630, #1627). This issue collects that plan, adds the gaps found on 16 November, and proposes an acceptance bar, an order of work with owners, the rulings needed, and fallbacks.

Facts are from main at f1f5f73c9 and the PR heads on 16 November.

What is on main

In flight

PR What it adds State on 16 November
#1614 County facts pinned beside the main feed: IRS SOI county TY2022, Census PEP county V2024 and seven ACS 2020–2024 5-year county tables (180,326 rows; the 922 MB file stays out of the repo) Reviewed on 16 November (review): all four of Max's conditions hold at c8403535, and 12/12 checks are green. It lands with a merge commit
#1630 The production county rung, stacked on #1614: targets, held-out scoring, grades, minimum support, the Kalawao cell Draft. The gap 1 fix comes first, then review round 2. Its plan: staging (R1, 18 November, legacy location), then the 2024 county release (R2, 18–19 November)
#1627 Projection of the county build to 2026 and 2027, as the nondefault release microcosm-us-2024-local-annual Draft; review round 3 queued; projection planned on the R1 county build

Targets

From docs/us-acs-local-county-rung.md on #1630:

Role Family Source County rows
Trained Population The PUMA ladder, scaled within each state to the state total 3,144
Trained Shares of IRS SOI return counts and of AGI SOI county TY2022; Kalawao shares Maui's cell 3,143 each
Trained Households, under 51 new state household targets ACS B11001 3,144
Held out Earnings, households with earnings, approximate household income and its 16 brackets ACS B19061, B19051, B19025, B19001 none; each is scored against a pro-rata baseline

The county rung adds 12,625 rows to the 4,380 state administrative rows and the 487 state and district population rows, about 17,492 rows in all. Census PEP is in the facts file but trains nothing yet. B19013 (median income) is a diagnostic only.

Gaps

  1. County population targets use 2020 counties. A full run needs population targets for all 3,144 county-equivalents. prepare_run in tools/us_acs_local_county_surface.py (Make the county rung a production county calibration for the County Files #1630) refuses any other count, and population_rows refuses a household whose county has no target. But the rung always reads the ladder's 2020 county overlaps, whatever --county-column says: in with_county_populations (lines 106–107 at Make the county rung a production county calibration for the County Files #1630's head) and in the minimum-support PUMA order (lines 1975–1977). Those overlaps have 3,143 counties, with Connecticut's eight old counties. The county facts use Connecticut's nine planning regions (09110–09190).

    The PUMA ladder already stores population by tract (tract_overlap_*, required by its loader), and county_fips_2023_from_tracts (Add 2023 county-equivalent geography to US household ladders #1376) maps each tract to its 2023 county-equivalent. So the fix is code in Make the county rung a production county calibration for the County Files #1630, with no new ladder:

    • pass --county-column to both places;
    • for county_fips_2023, sum the ladder's tract overlaps by 2023 county-equivalent, then scale within each state as now;
    • tests: 3,144 county-equivalents; Connecticut's nine regions sum to its state total; every other county equals its 2020 overlap.

    It belongs in Make the county rung a production county calibration for the County Files #1630, which rewrites that file. A separate PR against main would conflict with it. The details are in the note on #1630. Max's agents commit the fix there before review round 2 (decided 16 November).

  2. The joint solve is not measured. County rows join the tax and benefit targets in one solve, with loss cap 10 and weight cap 5. Their cost to the state and national fit is unknown until R2 runs. So are the full-size time and memory. Make the county rung a production county calibration for the County Files #1630 plans for 128 GiB.

  3. One build host. County materialize runs only locally, because the Modal plan cannot pass --county-facts. R1, R2 and the projection share one 128 GiB machine. A rerun of staging and materialize costs about 3.5 h at past Mac times (7,218 s and 5,604 s, before county rows). Run US dataset builds on a GCP VM #1645 covers a GCP VM as a second host.

  4. block_v1 and minimum support do not combine. Under block_v1 every household carries a block, so the minimum-support step finds no eligible household, and a build with an empty county refuses (Make the county rung a production county calibration for the County Files #1630, "Known gaps"). The PoC stays on legacy location, as R1 plans. See "Later" below.

Known limitations the PoC carries

Acceptance bar (proposed)

Must:

No fit threshold blocks the PoC. The report states the fit.

Stretch: the 2026 and 2027 files from #1627, with the household measures and the schema manifest from #1621.

Not required: publication to Hugging Face, block_v1, and county targets beyond the rung's families.

Order of work

María makes the rulings and reviews. Max's agents build on Max's machine, which holds the US inputs.

Until R1:

When Step Owner
Mon 16 – Tue 17 Nov Land #1614 with a merge commit. A squash makes #1630 conflict in six files Max's agents (María's review is posted)
Tue 17 Nov The rulings below María
Tue 17 Nov Gap 1: the 2023 county-equivalent fix, as commits on #1630 before its review round 2 Max's agents, from María's spec
Tue 17 – Wed 18 Nov Review round 2 of #1630, retarget it to main, land it Max's agents; María reviews
Wed 18 Nov R1: the ACS staging, on legacy location (about 2 h at past Mac times), from main at or after 950427888 (#1619). main's release tool refuses staging built before #1387 Max's agents

After R1, in this order. Their dates depend on how R1 goes.

Step Owner
R2: the 2024 county release, with loss cap 10 and weight cap 5 Max's agents
The PoC report María
Stretch: the #1627 projection, the measures and the manifest Max's agents
Review, and at most one rerun María rules; Max's agents rerun
Hand over the PoC María and Max

Rulings (María)

Decided on 16 November: gap 1 comes as commits on #1630, written by Max's agents from María's spec.

Due on Tuesday 17 November:

  1. Donor. Which national release is the donor: spm-20260915, as for 766b7c7, or the dense b5db384 recert (352,932 households)? A denser donor could spread the donor weight, but it is untested at this size.
  2. Location. Legacy location for the PoC (gap 4).
  3. Solver. Loss cap 10 and weight cap 5, with weight cap 20 as the fallback.
  4. Bar. The acceptance bar above.
  5. Hand-over. Files only, or also a nondefault published build.

Fallbacks

  • R2 fails or fits badly at weight cap 5: rerun at weight cap 20. In the pilot, loss cap 10 with weight cap 20 put 98.6–99.1% of counties within 10% on the trained families, but the pilot left out the tax families (US county calibration pilot for the LWI County Files #1377).
  • Make the county rung a production county calibration for the County Files #1630 has not merged by Thursday: build from its head after it merges main, and label the file a candidate.
  • R2 finishes after Friday: hand over the 2024 file alone. The 2026 and 2027 files follow.
  • Max's machine is not available late in the week: another person continues on a cloud machine (Run US dataset builds on a GCP VM #1645). The PRs must therefore hold all the code, the exact commands with their input digests, and the location of each run's uploaded outputs.
  • Gap 1 has no fallback. The rung refuses county targets that do not match the facts, so the fix comes first.

Open questions

  1. County-calibrated County Files (3,144 counties, 2026 + 2027): build epic #922 item 5 (industry and worked-last-year): Carry industry and worked-last-year on every US person record (ASEC restore + ACS crosswalk) #1039 adds these columns in the national base, and the newest published national build (b5db384) predates it. How do R1's donor rows get them?
  2. Does Max's machine have room for R1 and R2 this week, beside the other builds it runs?

Later: block_v1 on the county line

block_v1 matters for the full County Files. Under legacy location, a donor's county comes from a block drawn inside a district drawn within its state, not from the county its CPS record names. Donors carry most of the weight. No open PR plans a block_v1 national build. The county line can take block_v1 only after all of these:

  • Block ladder. Rebuild the block ladder on main with tools/build_us_block_ladder_artifact.py, which now adds the per-block puma array that load_us_location_ladder requires. It downloads only public Census and OMB files, and the result is about 19 MB. Then pin its digest in Route A's input table (tools/route_a/route_a.sh, line 102).
  • Route A switch. The base command must drop --ledger-facts, --assign-congressional-districts and --congressional-district-seed, and pass --location-rule block_v1 (route_a.sh lines 522–533, and BASE_FLAGS at line 82). Pool main's default ASEC years in Route A (d2603) #1559 edits the same lines to move the base to the newer ASEC pool "from the next build" (d2603), so build the switch on top of it.
  • Feed settings. route_a.env must set FEED and FEED_SHA to the feed main pins (Route A driver pins a stale Chronicle feed hash and refuses to run on current main #1220).
  • Release attribute. The national release must carry the base's populace_location_rule root attribute. The release writes its H5 through the engine adapter, which sets no root attributes. ACS staging under block_v1 reads a missing attribute as legacy and refuses the donor.
  • Minimum support. The step must redraw a block inside the county and look up every block-based geography again.
  • Ruling and receipt. A ruling, and a from-scratch build receipt (US household location v1: one census block per household, every geography derived #1047, "Not in this PR").

The national rebuild for rent (#1446, d2300) and the d2603 pool (#1559) both need the next national base. One rebuild can take all three changes.

Related

#922 (parent), #1645, #1614, #1630, #1627, #1621, #1376, #1377, #1378, #1047, #1559, #1220, #1444, #1446, #1039, #1027, #1638, #1637, #1634, #1622

🤖 Generated with Claude Code

Activity

  1. juaristi22 commented on Nov 17, 2026

    @juaristi22
    CollaboratorAuthor

    Update, 17 November: rulings, two tracks for the donor, and a correction

    Rulings

    1. The fallback donor for the PoC is spm-20260915, the donor that 766b7c7 used. R1 and R2 run on it from main at or after 950427888. Donor rows lack the three Carry industry and worked-last-year on every US person record (ASEC restore + ACS crosswalk) #1039 columns (detailed_industry_recode, major_industry_recode, worked_last_year), and ACS rows carry them. The PoC report says so.
    2. block_v1 is on for the next national build. This is the ruling US household location v1: one census block per household, every geography derived #1047 asks for.
    3. That build may change the published rent data, through Place each ACS rent draw on its own household's head #1444's placement. This is the rebuild decision d2300.

    Two tracks

    Correction to "Later: block_v1 on the county line"

    Legacy ACS staging keeps each donor's tract, district and county from the national file (base_pool._assign_pooled_puma_ladder). So a national donor located with block_v1 puts each CPS donor in the county its record names, with no change to staging. That section also lists two code changes: the release attribute and the minimum-support redraw. They are needed only if ACS rows also move to block_v1, and the County Files do not need that.

    Status

    🤖 Generated with Claude Code

  2. MaxGhenis commented on Nov 17, 2026

    @MaxGhenis
    Contributor

    Written by Claude Code, Max's agent for the county work, not by Max. Facts only: this comment asks for no decision and recommends none.

    At three gates, R1 refuses the donor that 766b7c7 names. That donor is populace-us-2024-spm-receipts-20260923 (sha256 00946972…), the 9/23 receipt child of spm-20260915. We ran R1's own donor checks on it, in R1 order, on origin/main 336b80c. Main has since moved to 825843b without changing R1's checks. Three checks in tools/_legacy/build_us_acs_multispine_base.py refuse the donor:

    1. Line 526, _require_income_donor (ACS local lane: triage the remaining SNAP-relevant reviewed default fills (SSI/Medicaid take-up, disability benefits, child support, LIHEAP, assets) #1022). The donor lacks strike_benefits, a component of the __acs_transfer_other_income predictor. Main computes it as OI_VAL where OI_OFF == 12 (alimony.py), and no row in the donor or in pppub23-26 has code 12. When we added a zero column in memory, the gate passed.
    2. Line 528, _require_donor_work_experience (Carry industry and worked-last-year on every US person record (ASEC restore + ACS crosswalk) #1039). The donor lacks detailed_industry_recode, major_industry_recode and worked_last_year.
    3. Line 530, _require_dense_donor_coverage. The donor lacks passive_partnership_s_corp_income (US frame partnership/S-corp income is nonpassive-only: the donor builds it from E25980-E25960 + E26190-E26180, not line 32 (E26270) #1239), and every s_corp_income value equals the engine default, 0 (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). It carries partnership and S-corp income as one amount in partnership_income: by the code that built it, the PUF's nonpassive-only sum that US frame partnership/S-corp income is nonpassive-only: the donor builds it from E25980-E25960 + E26190-E26180, not line 32 (E26270) #1239 describes. Neither spm-20260915 nor the 10/24 b5db384 build carries the split.

    Every commit at or after 9504278 has all three gates, and none of R1's 22 arguments skips them, --donor-channel included. Ruling 1 names spm-20260915 itself. We read its columns but didn't run the gates on it: it lacks the same columns, plus receives_wic, receives_snap and receives_tanf, which line 530 also requires.

    Skipping the work gate doesn't leave donor rows blank. R1 records the missing columns as engine-input nulls, and R2 writes the engine defaults: 0, 0 and False. Finalize's reviewed-fill gate refuses those fills unless the fill register lists all three columns. With those entries, every donor adult carries detailed_industry_recode 0 (the under-15 not-in-universe code) and worked_last_year False. ACS adults who didn't work carry code 23 there.

    In two earlier state and district builds on this donor, donor persons made up 4.6% of records but carried 68.5-69.9% of calibrated person weight. If the county file's donor weight share matches those builds, we estimate the weighted share of its persons with worked_last_year True would read about 0.16-0.17 instead of about 0.54.

    What exists locally, unpushed. A local step copies the donor and appends the three work columns from the pinned ASEC person files, matching rows on source year and PERIDNUM. Two reviews found 0 mismatches over all 166,321 rows. On that copy (sha256 60207e8a…), the work gate passes, and the income and coverage gates still refuse.

    Run window. R1 and R2 haven't run end to end on main's code. From earlier runs (September on this laptop, October in the cloud) plus what main has added since, we estimate about 5.5 hours on Max's laptop (4.6-7.2 hours). The laptop has a tentative hold for the run from Tue 11/17 20:00Z to a hard stop at Wed 11/18 02:00Z. At the 7.2-hour high estimate, the run has to start by about 18:45Z, before the hold opens; the booking allows an earlier start.

    Evidence (local notes): accept_r1.py runs R1's own check functions in R1 order and wrote runs/route2/scratch-gates-r1/accept_r1.json; runs/poc-feasibility/*-verify.md holds the verified findings and their probes.

  3. juaristi22 commented on Nov 17, 2026

    @juaristi22
    CollaboratorAuthor

    Amended ruling 1 (17 November): the PoC runs on a patched copy of 766b7c7's donor

    The comment above shows that R1 refuses spm-20260915 and 766b7c7's donor at three gates. Thank you for the checks. Ruling 1 changes as follows:

    1. Donor. The fallback donor is 766b7c7's donor, populace-us-2024-spm-receipts-20260923 (sha256 00946972…), which carries the WIC, SNAP and TANF receipts. R1 reads a patched copy of it, not the published file.
    2. Work columns. The copy gets the three Carry industry and worked-last-year on every US person record (ASEC restore + ACS crosswalk) #1039 work columns, restored from the pinned ASEC person files and matched on source year and PERIDNUM. This is your local step. Please push it to the PR below.
    3. strike_benefits = 0. No row in the donor or in pppub23–26 has the income code that defines it, so zero is the true value.
    4. Partnership and S-corp split. The copy gets passive_partnership_s_corp_income = 0, and s_corp_income stays 0. The donor holds both in one combined amount in partnership_income, so the split is unknown. R1 accepts these two all-default columns only through a new, explicit flag with a recorded reason. Without the flag, nothing changes. ACS rows then get no split either.
    5. Provenance. The copy's hash is not the published one, so R1 runs without --donor-release-manifest, or with a manifest for the copy. The copy goes to a run folder in policyengine/populace-us-staging, with its hash in the PR.
    6. Report. The PoC report states all of the above.

    The PR. Our side is opening one PR into main now, with two commits:

    • a donor-patch tool, which adds the zero columns and writes a receipt;
    • the R1 allowance flag.

    I'll link it here as soon as it is open. Please add your work-column step to the same tool as a third commit. R1 and R2 can run from the PR's head tonight, and the file is labelled a candidate. The PR merges after review.

    Timing. To start the run by about 18:45 UTC (your high estimate), the PR with all three commits should be ready by about 18:00 UTC. If that is not possible, please say so here, and we will move the run. Please also check whether R2's finalize needs reviewed-fill entries for these columns. Our session is checking this too.

    Rulings 2 (block_v1 on the next national build) and 3 (the rent change) stand. The new national build stays the County Files donor. This patched donor is for the PoC only.

    🤖 Generated with Claude Code

  4. juaristi22 commented on Nov 17, 2026

    @juaristi22
    CollaboratorAuthor

    The patch PR is #1660. It is a draft at 77f5fa163, on branch claude/us-acs-poc-donor-patch-dd6a9d. It has three commits:

    1. 44a11af9d: the donor-patch tool, which adds the zero columns and writes a receipt.
    2. 601cf86cc: the R1 allowance, --allow-default-donor-column COLUMN=REASON.
    3. 77f5fa163: registers the strike_benefits reviewed fill on ACS rows. Without it, R2's finalize refuses the 0 fill, after materialize, calibrate and qa have run. This happens with any current national donor, not only the patched copy.

    Please add your work-column restore step to the same tool, as a fourth commit. R2 records the commit it ran from and refuses another one at the package stage. So R1 and R2 must both run from a head that contains all four commits.

    Two items wait for my confirmation. I'll post them here shortly:

    • the verdict on the strike_benefits fill: harmless, as the PR proposes, or known_bias;
    • whether R1 names the donor with a manifest for the copy. Without one, R2 writes donor_release: null, and the publisher refuses that release. The PoC can then be handed over as files but not published.

    CI on #1660 is running.

    🤖 Generated with Claude Code

  5. juaristi22 commented on Nov 17, 2026

    @juaristi22
    CollaboratorAuthor

    Confirmed (17 November)

    1. The strike_benefits reviewed fill on ACS rows is harmless (County Files PoC: donor patch, R1 allowance, R2 pre-checks and fixes #1660, 77f5fa163). No ASEC respondent reports strike benefits, so every source value is 0, and filling 0 matches the data.
    2. Files only. R1 runs without --donor-release-manifest. R2 then records donor_release: null, and the PoC release is not published. The PoC is handed over as files. This settles ruling 5, the hand-over form, for the PoC.

    Our #1660 session is pre-checking R1 and R2 against the patched donor. Its fixes land on #1660 by about 15:30 UTC. I'll then post the full R1 and R2 commands here.

    🤖 Generated with Claude Code

  6. juaristi22 commented on Nov 17, 2026

    @juaristi22
    CollaboratorAuthor

    Ruling (17 November): the empty-AGI-row drop is pre-authorized for tonight

    #1660 adds a pre-R2 check, tools/check_us_acs_county_agi_support.py, in commit 06b53f625. It lists the counties where the supporting households all have AGI of zero. For such a county R2 builds an empty SOI AGI row, and without a flag it refuses that row after the engine pass. #1660 also adds --county-drop-empty-soi-rows (78acba5f5), which is off by default.

    • Run the check on tonight's R1 staging before R2. It takes about one minute.
    • If it lists any county, run R2 with --county-drop-empty-soi-rows. R2 then drops only those rows and records a receipt in county_surface.json, the run identity and the reliability report. This needs no further ruling from me.
    • Post the listed counties and the receipt here. The PoC report names the dropped rows.
    • A county with no households at all is still refused. The flag does not cover that case.

    The 766b7c7 file gives an early warning: no county is at risk there, and ten small counties have only one or two households with AGI income. Tonight's R1 assigns counties again, so the check must still run.

    One R1 setting to prepare: 766b7c7's R1 used --hours-under15-policy us_hours_under15_zero_completion_v1. The saved build recipe leaves it out, and without it R1 refuses ACS children under 15. The full R1 and R2 commands will follow from the #1660 session.

    🤖 Generated with Claude Code

  7. juaristi22 commented on Nov 17, 2026

    @juaristi22
    CollaboratorAuthor

    Tonight's run: the plan, with #1660 at 46674e01f

    The exact commands are in #1660's description, in the section "Tonight's run: exact commands". Please use that section as the one source. In short:

    1. Commit. Push your work-column commit to County Files PoC: donor patch, R1 allowance, R2 pre-checks and fixes #1660's branch, where it becomes the eighth commit. Fetch and merge first, and don't force-push.
    2. Freeze the head. Check out that head in a fresh worktree, and run R1 and R2 from it. Calibrate and package must share the commit, and the checkout must not change during calibrate.
    3. Patch the donor with tools/patch_us_acs_donor_columns.py: files only, with no manifest options. Post the copy's SHA-256 and receipt on County Files PoC: donor patch, R1 allowance, R2 pre-checks and fixes #1660.
    4. Run R1 with two settings that the saved recipe leaves out:
      • raise POPULACE_ACS_POOL_PEAK_LIMIT_BYTES and POPULACE_STAGING_EXPORT_PEAK_LIMIT_BYTES. Both default to 30 GB, and R1 peaked at 42.4 GB in September, so it would otherwise refuse 1–2 h in;
      • add --hours-under15-policy us_hours_under15_zero_completion_v1. Without it, R1 refuses ACS children under 15.
    5. Run both pre-checks on the R1 staging:
      • tools/check_us_acs_local_reviewed_fills.py (seconds). Exit 2 means R2's finalize would refuse a fill: stop and ask me.
      • tools/check_us_acs_county_agi_support.py (about a minute). Exit 2 means a county would get an empty AGI row: add --county-drop-empty-soi-rows to the materialize command, as pre-authorized above, and post the listed counties here.
    6. Run R2 stage by stage, from the same head.

    Not passed unless I rule: --allow-dirty, --district-ess-gate-blocking and any manifest option.

    Checked today on the real donor

    • The patched copy passes all of R1's donor gates except the work columns, which your commit adds. The coverage gate passes with the two allowances.
    • The donor inputs that R2 reads are complete.
    • On 766b7c7, no county is at risk of an empty AGI row.
    • With county_fips_2023 and the pinned PUMA ladder, all 3,144 counties have PUMA overlaps.

    Still unknown

    • R2's SSI/Medicaid pre-pass has never run at full scale, so its memory is unmeasured.
    • Materialize is expected to use 78–95 GB.
    • If you run R2 under tools/route_a/supervise.py, raise its 72 GiB RSS cap.

    #1660's CI is still running.

    🤖 Generated with Claude Code

  8. juaristi22 commented on Nov 17, 2026

    @juaristi22
    CollaboratorAuthor

    Ruling (17 November): pass --county-drop-empty-soi-rows on every run tonight

    This replaces the earlier rule, which passed the flag only when the zero-AGI check lists a county.

    • R2's materialize always runs with --county-drop-empty-soi-rows: form B in County Files PoC: donor patch, R1 allowance, R2 pre-checks and fixes #1660's description.
    • The flag drops only rows that are really empty. It records each one in county_surface.json (zero_measure_soi_rows_dropped), in the run identity and in the reliability report. When no row is empty, the data do not change, and only the run identity records the flag.
    • Still run the zero-AGI check (tools/check_us_acs_county_agi_support.py, now about 7 minutes) after R1. Post its list here, together with any drop receipt from R2.
    • The reason: without the flag, one empty row stops R2 after about 1.5 hours, and tonight's window has no room for a rerun.
    • A county with no households at all is still refused.
    • The PoC report names every dropped row.

    Temporary: proof of concept only. Passing this flag on every run is a setup for tonight's PoC run only. Its purpose is that one empty AGI row cannot stop R2 in a window with no room for a rerun. It is not part of the County Files product. Remove it before the final County Files build. There, every county must be supported well: a county whose AGI row would be empty needs a real fix, for example more household support or a declared cell with its own ruling, and not a dropped target.

    🤖 Generated with Claude Code

  9. MaxGhenis commented on Nov 17, 2026

    @MaxGhenis
    Contributor

    Written by Claude Code, Max's agent for the county work, not by Max. Facts only: this comment asks for no decision and recommends none.

    The zero-AGI check after R1 lists no county at risk.

    • Heads. R1's staging ran from 72b7072bf. The check ran from f8b1039f0 with --staging-summary; County Files PoC: donor patch, R1 allowance, R2 pre-checks and fixes #1660's description names that head for the pre-checks and R2.
    • Totals. 3,144 counties, 1,586,908 households, 1,383,733 with nonzero AGI. Exit status 0; 170.4 s.
    • Counties R2 would refuse. no_household: none. counties_outside_ladder: none. unsupported_counties: none.
    • Fewer than 3 households with nonzero AGI (10): 31005, 31103, 31183, 35021, 38087, 48033, 48261, 48263, 48269, 48311. The check lists these; it doesn't refuse them.
    • Held back from the AGI engine (columns the AGI doesn't read and an R2 stage fills; their nulls are on ACS rows only): person: is_snap_abawd_discretionary_exempt, takes_up_head_start_if_eligible, takes_up_medicaid_if_eligible, takes_up_medicare_if_eligible, takes_up_ssi_if_eligible; spm_unit: receives_housing_assistance, takes_up_snap_if_eligible, takes_up_tanf_if_eligible.

    Drop receipt: R2's materialize dropped no SOI row. Materialize ran from f8b1039f0 with --county-drop-empty-soi-rows, per the 14:21Z ruling above, and passed at 23:49Z. county_surface.json lists 0 rows in zero_measure_soi_rows_dropped and 0 unsupported_targets. The run identity records county_drop_empty_soi_rows: true and an empty zero_measure_soi_rows_dropped.

    Evidence (local run folder): county_agi_support.json (sha256 474e642748db…), checkpoints/county_surface.json (sha256 11abc9a2edb3…).

  10. MaxGhenis commented on Nov 18, 2026

    @MaxGhenis
    Contributor

    Written by Claude Code, Max's agent for the county work, not by Max. Facts only: this comment asks for no decision and recommends none.

    Run report: the county PoC run, 17–18 November

    Every stage exited 0; package, the last, ended at 2026-11-18T01:18:36Z. R1 (staging) ran at 72b7072bf, and fills, agi, materialize, calibrate, qa, finalize and package at f8b1039f0. Max's agents ran the build on Max's Mac; its files are there and in the private staging repo (section 10). This is a fact pack for María's PoC report, with no judgment of the fit or the bar.

    Our outcome comment on #1660 gives the per-stage results: #1660 (comment)

    Times are UTC. Files carry the first 12 hex characters of their sha256. CP/ is the run's checkpoints/ folder; REL/ is release/releases/microcosm-us-2024-local/ (15 files). Sections 1–12 below give the sources; section 11's commands and digests are in part 2, the next comment. Section 5 says how each spine's households got their county in this run.

    The numbers

    Item The files show
    Household support All 3,144 county-equivalents have at least 1 supporting household; county_support.json records 9 moves. 10 counties have 1 or 2, under the step's floor of 3
    Grades ("provisional": true) A 0, B 3, C 103, D 3,038, U 0
    County trained rows within 10% 7,727 of 11,522 (67.06%): population 67.49%, SOI return counts 70.84%, SOI AGI 82.33%, ACS B11001 households 47.63%
    1,052 held-out county rows (trained families) Median error 0.2046 model, 0.0810 pro-rata; within 10%, 27.00% and 56.75%
    Non-county trained rows within 10% 4,712 of 4,918 (95.81%); state SOI rows 4,058 of 4,227 (96.00%)
    National roll-up (computed; no national row is trained) Largest errors: SOI return counts with AGI ≥ $1M (TY2023 rows) +128.7%, capital-gains returns −32.4%, taxable interest amount with AGI < $1 (48 states) −28.8%, taxable-interest returns with AGI ≥ $500k +13.1%, ACS households −5.2%; every other group within ±4.5%
    County ESS (kish_ess) Median 5.95; counties at 30 or more hold 22.63% of the population (167 counties)
    Caps; gates Loss cap 10, weight cap 5 (realized 4.9297); 23 gates in REL/, all passed: true
    Donor households 57,240 (3.61% of all) carry 0.7720 of household weight; 766b7c7: 0.6843
    Beside 766b7c7 fraction_within_10pct 0.9608 there, 0.7566 tonight (all trained rows: 4,765 there; 16,440 tonight, 11,522 of them county rows). On the 4,459 rows both trained, within 10%: 96.99% and 96.86%; district population 97.02% and 92.20%. Kish ESS (rows) 12,123.6 and 7,875.4
    qa's policyengine-us 2.2.1 check microcosm's loader read the H5, not policyengine-us's file loader; then a 2024 Microsimulation with no reform per chunk (80 chunks of 20,000 households), 8 variables; DONE in 3,218.6 s
    Dropped rows None
    donor_release; publication null in the build manifest, release manifest, source coverage and staging summary. Not published: this report's file-name and log scan (not proof) found no record of the publish_command or promote_command running
    Stretch: 2026 and 2027 files Not run

    Held-out ACS families (never in the loss; 3,144 counties). For B19061, B19051 and B19025 the error is |estimate − target| / max(|target|, 1) against the file's target(c). The rate Spearman (computed) compares each source's per-person county rate with the ACS public value's, across counties.

    ACS family Median error, model / pro-rata Rate Spearman, model / pro-rata
    Earnings (B19061) 0.1926 / 0.2878 0.5731 / 0.3735
    Households with earnings (B19051) 0.1582 / 0.0718 0.2751 / 0.2682
    Household income, approximate (B19025) 0.1378 / 0.2132 0.6794 / 0.4592
    Income distribution (B19001), bracket L1: Σ|estimate − target| / max(Σ target, 1) 1.0146 / 0.2531 No rate; share under $25,000: 0.1491 / 0.3354; at $200,000 or more: 0.3995 / 0.3605

    The pro-rata rate is one value per state (51 values), so its pooled Spearman ranks states and within a state it is undefined. Within the 49 states with 5 or more counties, the model's median rate Spearman is 0.4941 (B19061), 0.2740 (B19051) and 0.6417 (B19025).

    Where the files differ from the plan, rulings and comments, #1660 or each other

    • Build form. The bar: "A 2024 file from tools/build_us_acs_local_release.py --stage all with the flags in the Make the county rung a production county calibration for the County Files #1630 doc". The run used one process per stage, every doc option at the doc's non-path value, plus --seed 0, --batch 5000, --county-drop-empty-soi-rows, --epochs 800 and --epoch-batch 400, which the doc lacks. This report did not trace what all runs.
    • Branch. The bar: "Build it from main after Pin US county facts beside the main feed for the county rung #1614 and Make the county rung a production county calibration for the County Files #1630 merge"; ruling 1: "from main at or after 950427888". Both PRs are merged and in both heads, and 9504278 is an ancestor of both; both heads sit on County Files PoC: donor patch, R1 allowance, R2 pre-checks and fixes #1660's branch, an open draft, not on main. Amended ruling 1 (6945072508) lets R1 and R2 run from the PR's head.
    • Candidate label. Amended ruling 1: "the file is labelled a candidate". No release record labels it: "candidate" occurs 38 times in the REL files, package_result.json and the staging summary, always in a take-up field or its text; release_manifest.json records dataset_role "non_default_local_area".
    • Donor. Ruling 1 names spm-20260915. Per the amended ruling, R1 read a patched copy of 766b7c7's donor, populace-us-2024-spm-receipts-20260923; the staging summary, build manifest, release manifest and source coverage never name spm-receipts-20260923.
    • The Carry industry and worked-last-year on every US person record (ASEC restore + ACS crosswalk) #1039 columns. Ruling 1: "Donor rows lack the three Carry industry and worked-last-year on every US person record (ASEC restore + ACS crosswalk) #1039 columns". The amended ruling restored them on the copy: the calibrated H5's 166,321 donor person rows carry all three, with 0 NaN.
    • Drop flag. The drop ruling: "Temporary: proof of concept only" and "Remove it before the final County Files build". The packaged refresh_recipe.release (REL/build_manifest.json, REL/release_manifest.json) keeps --county-drop-empty-soi-rows, and no run file says it is temporary.
    • Minimum support. The floor is 3 households (--county-min-support 3). 10 counties end with 1 or 2; none was unsupported before the step, and the code picks donors only for unsupported counties.
    • The 2.2.1 load. The bar: "The file loads in policyengine-us 2.2.1". qa read the H5 with microcosm's loader (load_legacy_calibrated_us_h5), not Microsimulation(dataset=<file>); spine_qa.json calls its probe "the consumer-loadability proof".
    • "certified Build O." County Files PoC: donor patch, R1 allowance, R2 pre-checks and fixes #1660's "Records that stay misleading for this run" names reviewed_limitations [21]. Entries [6] and [8] carry the same wording and are not on that list.
    • District ESS. district_ess_collapse records criteria_met: false (271 of 436 districts collapsed) and passed: true: it is report only (blocking: false), and the code sets passed to criteria_met or not blocking.
    • cd_holdout. The calibration gate's breakdown labels the 1,052 held-out county rows "cd_holdout": 1052; the gate named cd_holdout records n_targets: 0.
    • Staging recipe. Amended ruling 1: R1 runs "without --donor-release-manifest, or with a manifest for the copy"; R1 ran without it. The packaged refresh_recipe.staging names --donor-release-manifest and lacks R1's --allow-default-donor-column and --hours-under15-policy (an item on County Files PoC: donor patch, R1 allowance, R2 pre-checks and fixes #1660's misleading-records list).
    • Launcher log. launcher.log lines 541 and 547 print "no drop flag"; the argv on line 549 ends with the flag, and the run identity records it.
    • National fit. The bar asks for "state and national fit"; no national row exists (geographies "state,cd,county"), so the national figures are a computed roll-up of state rows.
    • Disk. María: "Keep at least 60 GB of disk free, plus about 20 GB". Max ruled at 20:04Z that agi and materialize may start from 75 GB (the launcher's line was 80); they started at 77.54 and 78.92 GB, and the low was 64.64 GB, during qa.
    • Root copy. María's reply 6959825920 suggested a hard link; the run used cp -c, an APFS clone.
    • Environment. Of the seven exports in County Files PoC: donor patch, R1 allowance, R2 pre-checks and fixes #1660's description, the run had only PYTHONUNBUFFERED=1; it added MICROCOSM_TELEMETRY_REQUIRED=0 and MICROCOSM_EMITTER_COMMAND=/usr/bin/false.

    Hand steps

    • The LWI session wrote stage-r1.done by hand after the launcher's wait returned 19; the guard recorded exit 0 for the same process, and every staging summary gate passed (section 7a).
    • The LWI session placed the package root copy, an APFS clone, by hand during qa; package reused it through its own sha256 check, and package.log has no copy line (section 7b).
    1. What ran, and where
    Stages Code head Recorded in
    R1 (staging) 72b7072bffa94fa0933f9d0a9621fceae403ed70 stage-r1.done (de4cfed9738f, by hand: section 7); the interpreter path in rss.jsonl (14555678af2b); the pre-R1 checks in launcher.log (11587a11bc21); the R1 plist (a3a762409d2c)
    fills, agi, materialize, calibrate, qa, finalize, package f8b1039f0099454da2b3e3d3ba17b674c5a488d9 handover.done (d40faf6bc82a): "switched: f8b1039 launcher armed"; each stage's done file; REL/build_manifest.json (6cab856180fc): build_sha "f8b1039f00", build_dirty false; REL/consumer_export.json (f14ad2c40fc9): full SHA, dirty false
    • No machine-written output records R1's head: the run identities, manifests and staging summary hold no microcosm commit, and none of the 18 output JSON files scanned contains "72b7072b".
    • Before every stage the launcher logged "ok tree HEAD = pin TREE_HEAD …", "tree contains 9504278" and "tree clean (git status --porcelain --untracked-files=all: nothing)".
    • Build id populace-us-2024-buildo-acs-local-f8b1039f00-20261118T011728Z; runtime policyengine_us 2.2.1, policyengine_core 3.32.5, python 3.14.7 (REL/build_manifest.json /runtime).

    PR status (gh pr view and git merge-base --is-ancestor, live at 2026-11-18T03:52:18Z):

    PR State Merge commit In 72b7072 In f8b1039
    #1614 MERGED 2026-11-16T20:54:25Z c7a5f96796ac yes yes
    #1630 MERGED 2026-11-17T09:55:31Z 3b75cf15160e yes yes
    #1660 OPEN, draft, base main, head f8b1039f0 none
    #1096 MERGED 2026-11-15T17:03:23Z 429d7a0de624 yes yes
    #779, #1453, #1136, #1221 OPEN none head: no head: no

    Facts for the "candidate" label (with the list above). The bar's other route: build from #1630's head and label the file a candidate. Amended ruling 1 (comment 6945072508): "R1 and R2 can run from the PR's head tonight, and the file is labelled a candidate." The 38 "candidate" matches are take-up fields or their text (ssi_candidate_rows, candidate_capacity and similar); REL/release_manifest.json (e35dda0f1952) also records is_default false.

    2. The acceptance bar's items

    Build form

    • Stages. One process per stage, not --stage all: materialize, calibrate, qa, finalize, package. County Files PoC: donor patch, R1 allowance, R2 pre-checks and fixes #1660's description ("Tonight's run: exact commands") calls --stage all with the same flags "its single-command form". At f8b1039 --stage takes those five or all, default all (tools/build_us_acs_local_release.py:6837-6839); what all runs, and in what order, was not traced.
    • The Make the county rung a production county calibration for the County Files #1630 rung doc. docs/us-acs-local-county-rung.md has one command block, the same at Make the county rung a production county calibration for the County Files #1630's merge 3b75cf1, 72b7072 and f8b1039. Every option in it is in the R2 argv with the same non-path value: --families snap,medicaid,soi, --geographies state,cd,county, --soi-mode state_county, --county-holdout-fraction 0.1, --county-holdout-salt acs-local-county-v1, --county-min-support 3, --county-target-loss-cap 10, --county-max-weight-ratio 5, --hh-chunk 20000 (all five R2 stages), --sample-fraction 1.0 (materialize).
    • Its variables. --county-column county_fips_2023 and --county-facts-sha256 67b0998a… equal the doc's values. The doc's feed digest is a placeholder; the run's --feed-sha256 1d45a89c… equals the main feed pin at f8b1039 (40,642 rows, source commit 41b2fb2b8).
    • Run options the doc lacks: --seed 0 (all five), --batch 5000 and --county-drop-empty-soi-rows (materialize), --epochs 800 and --epoch-batch 400 (calibrate). The same section calls --epochs 800, --epoch-batch 400, --batch 5000, --seed 0 and --sample-fraction 1.0 "R2's defaults, named for the record"; they are the defaults at f8b1039 (lines 6904, 6905, 6967, 6965, 6891-6893).
    • --allow-partial-geography is absent from all eight argvs, as from the doc. The doc launches with uv run python; the run with <frozen tree>/.venv/bin/python -B.

    Against #1660's description ("Tonight's run: exact commands"), token by token.

    • agi: the same options, non-path values and order. Only the launch form (uv run --no-sync python in the PR), the run's wrappers (env -i, the guard, run_capped.py, /usr/bin/time -l) and the directories of --h5, --staging-summary, --puma-ladder and --out differ.
    • fills, materialize to package: only the launch form and path directories differ; both materialize commands carry the same digests and --county-drop-empty-soi-rows.
    • R1: the same, plus --inputs-dir ~/.cache/microcosm/acs-pums/2024-1yr for the PR's placeholder. The two R1 memory limits equal the PR's (100000000000 each). Both call tools/build_us_acs_multispine_base.py, at 72b7072 a shim loading tools/_legacy/build_us_acs_multispine_base.py (the description's "Purpose").

    Flags and caps, from each stage's argv in rss.jsonl (– means the stage has no such option):

    Flag r1 fills agi materialize calibrate to package
    --county-target-loss-cap – – – 10 10
    --county-max-weight-ratio – – – 5 5
    --county-min-support – – 3 3 3
    --county-drop-empty-soi-rows no no no yes no
    --allow-partial-geography, --donor-release-manifest, --allow-dirty, --district-ess-gate-blocking absent absent absent absent absent
    --hours-under15-policy us_hours_under15_zero_completion_v1 – – – –
    --allow-default-donor-column s_corp_income, passive_partnership_s_corp_income – – – –
    • Each allowance's reason: "the donor holds partnership and S-corp income as one combined amount in partnership_income; the split is unknown".
    • county_drop_empty_soi_rows: true is in both run identities, CP/materialize_rss.json (9bc9d786f92d) and REL/build_manifest.json /run_identity, whose /calibration records target_loss_cap 10.0, max_weight_ratio 5.0 and realized_max_weight_ratio 4.9297.
    • María's comment 6947667137 keeps --allow-dirty, --district-ess-gate-blocking and any manifest option out unless she rules; none was passed. REL/gate_summary.json records district_ess_collapse with blocking: false.
    • launcher.log lines 541 (a start check) and 547 read … form B (no drop flag): …, after a shell error from the launcher's form_text function on lines 540 and 546.

    Household support in all 3,144 county-equivalents

    From CP/county_support.json (760453560ca7), column "county_fips_2023":

    • All 3,144 have supporting_households ≥ 1; unsupported_counties and unknown_counties are empty. Threshold (minimum_support.households_per_county): 3.
    • Smallest 1 (31183, 35021, 48263); 3,134 counties at 3 or more, 10 at 1 or 2; p10 28.3, median 144, max 35,707, total 1,405,648. support_basis: "households in the household universe (ACS group-quarters records support no acs_households target)".
    • Moves: 9 in minimum_support.moves (county_reliability.json repeats 9, same moves_sha256 14964fd6c4d0…). Each names a household, from_county, to_county, puma and rank; its county_fips_2023 and county_fips are rewritten. The 3 counties unsupported before the step each got 3 households from one PUMA:
    County Ladder population PUMA From (households) After
    15005 Kalawao, HI 82 1500100 15007 (1), 15009 (2) 3
    31009 Blaine, NE 431 3100300 31079 (2), 31081 (1) 3
    48301 Loving, TX 64 4807300 48165 (1), 48377 (1), 48389 (1) 3
    • Under 3 supporting households after the step (10): 31075 Grant NE (2), 31183 Wheeler NE (1), 35011 De Baca NM (2), 35021 Harding NM (1), 38087 Slope ND (2), 48033 Borden TX (2), 48261 Kenedy TX (2), 48263 Kent TX (1), 48269 King TX (2), 48311 McMullen TX (2). county_reliability.json: 3,141 counties "supported", 3 "minimum_support".
    • This is not the zero-AGI check's ten (fewer than 3 households with nonzero AGI, comment 6964605746): county_support.json totals 1,405,648 households in the household universe; county_agi_support.json (474e642748db) counts 1,586,908.

    Reliability files and the provisional marker

    • REL/county_reliability.json (2ba929e62a30) and REL/county_reliability.csv (b6295eb22d5f) each cover 3,144 counties, with unique county_fips, one county set and equal grade per county.
    • The JSON marks it at grade_rule.provisional, value true:
    "grade_rule": {"provisional": true,
      "A": "source ESS >=400 and max error <=0.10",
      "B": "source ESS >=100 and max error <=0.20",
      "C": "source ESS >=30 and max error <=0.50",
      "D": "otherwise with holdout or validation evidence",
      "U": "no county holdout or validation evidence (no household support) or source household identity unavailable",
      "error": "maximum absolute relative error over the county's training and holdout targets and its validation families (the income distribution as its bracket L1 error); denominator max(abs(target),1)", ...}
    
    • The CSV's grade_provisional column is true on all 3,144 rows; CP/calibration_summary.json (21aa8a38685d) repeats county_reliability.grade_rule.provisional = true.

    Fit numbers

    From REL/calibration_diagnostics.json (ef83b0f8dd73), CP/calibration_summary.json, CP/target_roles.json (29ddbc075680), CP/county_validation.json (75bb0be75403) and REL/county_reliability.json. A script computed the aggregates; the files' own figures are marked. Trained-row error is (final − target) / target; within 10% is |error| ≤ 0.10. Held-out rows use |estimate − target| / max(|target|, 1). "Design" is the estimate at the solve's input weights (initial_estimate) or the county files' design fields (inference: the input weights are the design weights). Realized loss share: a row set's share of the final loss (0.015904); loss weight budget: its share of the loss weights.

    County training rows within 10%. All 12,574 county rows in #1647's table are on the surface; 11,522 trained and 1,052 held out, by state and family.

    County rows Trained Held out Within 10% Median |error| p90 Max Within 10%, design Median, design Realized loss share
    Population (PUMA ladder) 3,144 0 2,122 (67.49%) 0.0366 0.296 1.336 520 (16.54%) 0.408 6.46%
    SOI return counts 2,702 441 1,914 (70.84%) 0.0363 0.258 2.701 453 (16.77%) 0.347 4.02%
    SOI AGI 2,846 297 2,343 (82.33%) 0.0037 0.227 185.27 318 (11.17%) 0.442 10.83%
    ACS B11001 households 2,830 314 1,348 (47.63%) 0.1079 0.337 1.940 467 (16.50%) 0.396 5.78%
    All 11,522 1,052 7,727 (67.06%) 0.0339 0.294 185.27 1,758 (15.26%) 0.395 27.09%
    • The files' own fraction_within_10pct, 0.7566, covers all 16,440 trained rows; recomputed, 0.7566301703, equal. No file holds a county-only figure.
    • County rows take 5.99% of the loss weight budget and end with 27.09% of the final loss.
    • In 856 of 3,144 counties (27.23%), every trained county row is within 10%. By target name, counties carry 4 trained rows (2,254), 3 (788), 2 (40) or 1 (62). county_reliability.json training.n_targets gives 2,255 / 788 / 39 / 62 (sum 11,524): it credits Kalawao with Maui's two shared SOI rows.
    • County Files: a proof-of-concept county-calibrated dataset by 23 November #1647's pilot figure, "98.6–99.1% of counties within 10% on the trained families" (weight cap 20, no tax families), doesn't say how a county counts. Per family, the table's shares are county shares (one row per county per family, the Kalawao and Maui SOI cell apart).
    • Loss cap 10: 20 rows started past it, 9 ended past it (7 county SOI AGI, 2 state SOI); 12 left, 8 stayed, and 1 was pushed past: county_38037__irs_soi…nd.all.adjusted_gross_income, 6.60 to 12.08.

    Held-out errors against the pro-rata baseline.

    (a) ACS families never in the loss (calibration_summary.json → county_validation, report_only and never_in_loss true, 3,144 counties). The file's score: "target(c) = M_s x public(c) / sum of public over the state's counties, M_s the state total under the final weights; pro-rata baseline M_s x ladder county population / state population". It thus scores the split across each state's counties. The household income families are approximate: true.

    ACS family Model median Pro-rata median Design median Model mean Pro-rata mean Model within 10% Pro-rata within 10% Counties with model < pro-rata
    Earnings (B19061) 0.1926 0.2878 0.4340 0.2869 0.3694 27.74% 18.16% 61.42% (1,931)
    Households with earnings (B19051) 0.1582 0.0718 0.4406 0.2213 0.1079 33.56% 63.33% 29.68% (933)
    Household income, approximate (B19025) 0.1378 0.2132 0.4475 0.2266 0.2739 38.14% 24.97% 62.63% (1,969)
    Income distribution, 16 brackets (B19001), bracket L1 1.0146 0.2531 0.7000 1.0643 0.2800 n/a n/a 0.41% (13)
    • The last column is the file's calibrated_beats_pro_rata_share (strict). Recomputed from the 3,144 county cells, every median and share matches.
    • Distribution error, "sum over brackets |estimate - target| / max(sum of targets, 1)": p90 1.605 model, 0.460 pro-rata, 1.583 design; max 3.860, 2.304, 14.570. No within-10% figure is defined for it. B19013 median income is diagnostic_only and left out of this table; its rank statistic is below.
    • Per bracket (computed from the cells; the files store no per-bracket summary): model medians run from 0.670 ($200,000 or more) to 1.000, pro-rata medians from 0.111 to 0.711. The model's error is below pro-rata's in 8.11% to 56.81% of counties, the most in the top bracket.

    Rank statistics for (a) (computed from CP/county_validation.json, REL/county_reliability.json, CP/weights_latest.npz, CP/county_validation_measures.npz and CP/target_frame_lean.h5; aggregates only). They cover the never-in-loss ACS families, not the 1,052 rows in (b). Each source is compared with the ACS public value, not target(c); within a state the ranks are the same either way. Rate = value / the ladder county population; Spearman ties take average ranks. No run file stores design county values, so they are recomputed from the design weights; the same recomputation reproduces every cell's estimate (final weights) and design_abs_rel_error (design weights) exactly.

    ACS family, source Level Spearman Rate Spearman Rate Pearson Within-state rate Spearman, median of 49 states
    Earnings (B19061), model 0.9612 0.5731 0.4863 0.4941
    B19061, pro-rata 0.9867 0.3735 0.4234 undefined
    B19061, design 0.9116 0.3546 0.1458 0.3710
    Households with earnings (B19051), model 0.9683 0.2751 0.2301 0.2740
    B19051, pro-rata 0.9962 0.2682 0.2266 undefined
    B19051, design 0.9181 0.1377 0.0519 0.1386
    Household income, approximate (B19025), model 0.9774 0.6794 0.3282 0.6417
    B19025, pro-rata 0.9895 0.4592 0.4621 undefined
    B19025, design 0.9125 0.3095 0.1296 0.2811
    • n = 3,144 counties; no value is missing. "Within-state" covers the 49 states with 5 or more counties (Delaware and DC have fewer); a state's n runs from 5 to 254.
    • The pro-rata rate is computed as the exact per-state value M_s / pop(s), one value per state (51 across 3,144 counties). The stored pro_rata / pop(c) varies within a state by float rounding alone (142, 132 and 137 distinct values). Its pooled rate statistics therefore rank states, and its within-state Spearman is undefined in all 49 states.
    • B19001, each county's share of households under $25,000 and at $200,000 or more (over the 16 brackets): Spearman 0.1491 and 0.3995 for the model, 0.3354 and 0.3605 for pro-rata (the state's share, one value per state), 0.2729 and 0.3962 for the design.
    • B19013 median income (diagnostic only): the county median county_reliability.json records for the model has Spearman 0.3031 with the ACS median over 3,143 counties (35011 has no public value).

    (b) Trained-family county rows held out of the solve (calibration_summary.json → county_holdout, 1,052 rows, report_only: true). Baseline: "state parent target x county population / state population".

    Row set Rows States held out Model median Pro-rata median Design median Model within 10% Pro-rata within 10% Model < pro-rata
    All (file) 1,052 0.2046 0.0810 0.3443 27.00% 56.75% 29.94%
    SOI return counts 441 11, 23, 32, 36, 44, 48, 50, 55 0.1484 0.0574 0.3412 36.73% 73.02% 23.58%
    SOI AGI 297 09, 21, 36, 42, 53 0.3278 0.3920 0.4213 13.47% 11.78% 54.88%
    ACS B11001 households 314 36, 37, 40, 41, 53 0.1958 0.0541 0.2893 26.11% 76.43% 15.29%
    • File figures for all 1,052: model mean 0.3121, p90 0.6071, max 8.816; pro-rata mean 0.1781, p90 0.5315, max 1.559. Per-family rows are computed; the overall median and share match the file.

    State and national fit of the tax and benefit families. Trained: 4,482 state, 436 district and 11,522 county rows, 16,440 in all. No national row exists (geographies "state,cd,county").

    Family, level Rows Within 10% Median |error| p90 Max Within 10%, design Median, design Realized loss share Loss weight budget
    IRS SOI, state 4,227 4,058 (96.00%) 0.00122 0.0168 60.33 26.52% 0.2030 64.08% 83.50%
    USDA SNAP, state (households, benefits) 102 100% 0.00110 0.0051 0.0241 49.02% 0.1034 0.15% 1.37%
    CMS Medicaid, state 51 100% 0.00076 0.0021 0.0190 70.59% 0.0374 0.12% 1.70%
    ACS households, state (new) 51 48 (94.12%) 0.0420 0.0889 0.1175 72.55% 0.0865 7.38% 2.33%
    Population, state 51 100% 0.00067 0.0021 0.0055 100% 0.0531 0.27% 3.70%
    Population, district 436 402 (92.20%) 0.00578 0.0873 0.5125 56.65% 0.0858 0.92% 1.42%
    All non-county 4,918 4,712 (95.81%) 0.00132 0.0245 60.33 31.35% 0.1777 72.91% 94.01%
    • SOI state row sets under 100% within 10% (all others are at 100%): capital-gains returns 0% (51 rows, max 0.427); return counts (AGI bands and all returns) 75.29% (255, max 3.466); salt deduction amount 94.12%; taxable interest amount 94.28% (max 0.836) and returns 97.44% (max 1.157); real estate taxes amount 96.08%; rent and royalty income amount 96.08% (max 60.33); medical expense deduction amount 98.04%; qualified dividends amount 98.04%; EITC amount 98.43%.

    National roll-up (computed; no file records national rows). State rows sharing every non-state key form a group (Medicaid's period left out: Rhode Island's row is 2024-11, the other 50 are 2024-12). Error = (Σ state final estimates − Σ state targets) / Σ state targets. 88 groups: 86 with 51 states, 2 with 48 (the taxable-interest AGI < $1 band lacks 19, 38 and 50).

    Family National groups Within 10% Median |error| Max |error|
    IRS SOI 83 79 (95.18%) 0.00109 1.287
    IRS SOI, no AGI band and every other dimension "all" (47 state-broad groups, 2 EITC totals) 49 48 (97.96%) 0.00078 0.324
    USDA SNAP 2 2 0.00174 0.00269
    CMS Medicaid 1 1 0.00098 0.00098
    ACS households 1 1 0.0520 0.0520
    Population 1 1 0.00114 0.00114
    • Largest national errors: SOI return counts with AGI ≥ $1M (TY2023 rows) +128.7% (design +50.5%); capital-gains returns −32.4% (design −66.7%); taxable interest amount with AGI < $1 (48 states) −28.8%; taxable-interest returns with AGI ≥ $500k +13.1% (design −1.0%); ACS households −5.2%. Every other group is within ±4.5%.

    The joint solve's cost. No state-only solve on tonight's inputs exists, so the files can't isolate it. 766b7c7 (below) is a state and district solve. Its surface and tonight's non-county rows differ by 153 rows in count (SOI state rows 4,125 there, 4,227 here, plus 51 new ACS state household rows); SNAP, Medicaid and population counts are equal. By target name they differ more (below).

    Gates (REL/gate_summary.json, 3dcbe1c7da34, generated 2026-11-18T01:16:37Z). All 23 record passed: true, with failures [] or null; four are checked at package only (work_experience_inputs, acs_self_employment_identity, stored_inputs, spm_measurement_composition). Three record more:

    • district_ess_collapse (report only, blocking: false): criteria_met: false. Of 436 districts, 271 collapsed (calibrated ESS < 0.25 × design ESS) and 155 sit below the floor of 15; minimum ESS 7.65 (district 641), minimum ratio 0.096 (district 3606). At f8b1039 the entry records passed as criteria_met or not blocking (tools/build_us_acs_local_release.py:4960).
    • cd_holdout (report only): n_targets: 0.
    • calibration: initial_loss 0.020786, final_loss 0.015904, fraction_within_10pct 0.7566, effective_sample_size 7,875.4 (ess_fraction 0.005), realized_max_weight_ratio 4.9297 (cap 5), mass_conserved_ratio 1.0, n_targets 16,440. Pass rule at f8b1039: final_loss < target_loss_cap, final_loss < initial_loss, mass within 1e-3.

    County ESS and grades. kish_ess, the grade's "source ESS": "final weights summed within county by (household_spine, household_source_id), excluding ACS group quarters". kish_ess_rows: "final weights over physical household rows, including clones, excluding ACS group quarters".

    Measure (3,144 counties) Min p10 Median p90 Max Mean
    kish_ess 1.00 1.65 5.95 21.59 145.54 9.72
    kish_ess_rows 1.00 1.65 5.96 21.73 175.86 9.78
    kish_ess, by grade threshold Counties Population share
    ≥ 400 0 0%
    100 to < 400 4 3.58%
    30 to < 100 163 19.05%
    < 30 2,977 77.37%
    • Population in counties with kish_ess ≥ 30: 22.63% (167 counties), or 22.72% by kish_ess_rows, of 331,449,281 (county_validation.json county_populations). Of 279 counties with 250,000 people or more, 246 have kish_ess < 30.

    • County Files: a proof-of-concept county-calibrated dataset by 23 November #1647's pilot: counties with ESS ≥ 30 held 43–50% of the population, and 163–192 of 292 counties with 250,000 or more had ESS below 30. The sources don't give its ESS or population basis.

    • Grades: A 0, B 3, C 103, D 3,038, U 0. grade_error: median 1.015, p10 0.577, p90 1.635, max 185.27. The design-weight top-1% weight share is 0.507 (weight_origin).

    • grade_driver, counties: income distribution (B19001, bracket L1) 3,060; earnings (B19061) 30, household income (B19025) 14, households with earnings (B19051) 1; trained SOI AGI 20, SOI returns 1, B11001 4; held-out SOI AGI 10, SOI returns 1, B11001 3.

    Beside 766b7c7. A copy of its per-row diagnostics has been on this Mac since 03:03:27Z: a calibration_diagnostics.json whose sha256 is the one 766b7c7's sha256sums.txt lists, 1f7e609ae5c5…. From it, 766b7c7's own figures reproduce (4,765 rows, 0.9608 within 10%, rows per family as in its gate breakdown). It has no county rows, held-out families, county ESS or grades. Its gate_summary, build_manifest and sha256sums are here too (digests in part 2, under "Input digests"). 766b7c7's release_manifest.json, which its sha256sums.txt also lists, records the build id and the same digest; these ties are local sha256 matches, and nothing is signed. The copy sits in another of Max's sessions' folders; that session's notes (self-reported) say it fetched the files from Hugging Face at revision 725d8999. A second, independent script reproduced every cell of the two tables below and the bullet's figures, among 88 checks with 0 mismatches, so no cell is dropped. Both builds record:

    Measure 766b7c7 Tonight
    Geographies; SOI mode state,cd; state state,cd,county; state_county
    Trained rows 4,765 16,440 (4,918 non-county)
    Held-out rows 0 1,052 county rows, plus the never-in-loss ACS families
    fraction_within_10pct, all trained rows 0.9608 0.7566
    Within 10%, non-county trained rows 0.9608 (all its rows) 0.9581 (computed)
    initial_loss → final_loss (each on its own surface) 0.014386 → 0.011186 0.020786 → 0.015904
    Kish ESS, rows (ess_fraction) 12,123.6 (0.0076) 7,875.4 (0.0050)
    Kish ESS, distinct households 9,906.3 6,827.6
    Top-1% weight share 0.702 0.810
    realized_max_weight_ratio (cap 5) 5.0 4.9297
    Donor (asec_puf) household weight share 0.6843 0.7720
    State ESS, calibrated: min / p10 / median / p90 / max 193.4 / 214.5 / 279.5 / 409.4 / 1,145.8 117.1 / 163.9 / 211.1 / 254.8 / 583.8
    District ESS, same 10.25 / 18.32 / 28.89 / 64.37 / 279.5 7.65 / 10.96 / 18.26 / 53.37 / 200.9
    Design-weight ESS, rows / distinct households 36,287.7 / 30,097.5 36,287.7 / 30,097.5
    Gates 12, all passed: true (no district_ess_collapse) 23, all passed: true

    The rows both builds trained (same target name; computed from the two diagnostics files). 4,459 rows match. Their targets are equal; their design-weight estimates are equal on 946 of them (to 1e-15 relative; 842 bit for bit), so something upstream of the solve differs as well (inference: the files don't say whether data or measure code). Only in 766b7c7: 306 SOI TY2022 AGI-band rows. Only tonight: 408 SOI TY2023 AGI-band rows and the 51 ACS household rows.

    Rows in both builds Rows Within 10%, 766b7c7 Within 10%, tonight Median, 766b7c7 Median, tonight p90, 766b7c7 p90, tonight
    IRS SOI, state 3,819 3,698 (96.83%) 3,713 (97.22%) 0.00130 0.00117 0.0054 0.0118
    USDA SNAP, state 102 100% 100% 0.00109 0.00110 0.0026 0.0051
    CMS Medicaid, state 51 100% 100% 0.00092 0.00076 0.0022 0.0021
    Population, state 51 100% 100% 0.00060 0.00067 0.0017 0.0021
    Population, district 436 423 (97.02%) 402 (92.20%) 0.00082 0.00578 0.0029 0.0873
    All 4,459 4,325 (96.99%) 4,319 (96.86%) 0.00123 0.00127 0.0049 0.0164
    • Rows that crossed the 10% line: 50 within in 766b7c7 and not tonight (30 district population, 20 SOI); 44 the other way (35 SOI, 9 district population). Max error on these rows: 72.03 in 766b7c7, 60.33 tonight (both SOI).

    The policyengine-us 2.2.1 load and a 2024 baseline

    What qa ran (code at f8b1039; qa.log 436c0e80bf22; REL/spine_qa.json bbd01aabf9bc):

    • Load. qa read the calibrated H5 with microcosm's loader (load_legacy_calibrated_us_h5, pd.HDFStore), not policyengine-us's file loader (Microsimulation(dataset=<file>)). This run did not load the file with policyengine-us's own loader. spine_qa.json records plain_consumption: true and calls the probe "the consumer-loadability proof".
    • Simulation. 80 chunks of 20,000 households (--hh-chunk 20000); per chunk an in-memory USSingleYearDataset with the calibrated weights and a policyengine-us 2.2.1 Microsimulation with no reform, for 2024. Every household went through one chunk.
    • Variables: 8. ssi, is_snap_eligible, takes_up_snap_if_eligible, snap, has_usda_elderly_disabled, spm_unit_count_children, snap_earned_income, state_code_str; nothing else and nothing past 2024. 80 warnings, one per chunk: "The dataset contains 254 column(s) that do not match any variable in the tax-benefit system and were ignored".
    • Result. DONE in 3,218.6 s; artifact_sha256 82314a3b… (the calibrated H5). asec_puf: person weight 255,491,720, SSI recipient weight 4,523,784, SSI $39.13 bn. acs_2024_1yr: 75,578,888, 1,110,995, $9.82 bn. The December SNAP snapshot is graded: false ("Recorded as evidence, not gated").
    • How other stages use the engine was not examined; no engine run was started for this report.

    Stretch: the 2026 and 2027 files

    Not run. After R1 the launcher was armed with STEPS=fills,agi,materialize,calibrate,qa,finalize,package (handover.log, bbae5ab182e8); no projection, measures or manifest step ran.

    3. The rulings as the run shows them

    Ruling 1 and the donor (comment 6934473598, amended by 6945072508)

    • The donor is not spm-20260915 itself. Per the amended ruling it is a patched copy of 766b7c7's donor, populace-us-2024-spm-receipts-20260923 (00946972…). The receipt donor/donor_patched_poc.receipt.json (b6430abcb432) records input.sha256 009469727409…, output.sha256 438f47f49b4e…, and 166,321 persons and 57,240 households unchanged. R1 passed --base-h5 …/donor/donor_patched_poc.h5; stage-r1.done and the staging summary's /base/sha256 record 438f47f4….
    • spm-receipts-20260923 appears in none of the staging summary, build manifest, release manifest or source coverage; release_manifest.json names spm-20260915 once, in its social_security_cps_reporters_erased_inherited limitation.
    • 9504278 (Keep ACS partnership_income at zero where SEMP already holds it (#1387) #1619) is an ancestor of 72b7072, f8b1039 and origin/main; neither head is on main.
    • "Donor rows lack the three Carry industry and worked-last-year on every US person record (ASEC restore + ACS crosswalk) #1039 columns" does not match the output: the amended ruling restored them on the copy. In the calibrated H5 (82314a3b5a6a; counts only):
    Spine Person rows NaN in any of the three detailed_industry_recode major_industry_recode worked_last_year True / False Values from
    ACS (acs_2024_1yr) 3,420,942 0 24 codes (0–23), 2,872,990 nonzero 16 codes (0–15), 2,872,990 nonzero 1,767,132 / 1,653,810 acs_2024_1yr_native, 0 missing
    Donor (asec_puf) 166,321 0 129,073 nonzero; code 0 on 37,248, code 23 on 43,552 129,073 nonzero 85,521 / 80,800 ASEC via the patch; per-code counts equal the receipt's

    María's donor-copy items 1–6 (comment 6945072508)

    1. Donor: as above.
    2. Work columns. Receipt step asec_work_columns: key "(source_year, PERIDNUM as exact 22-digit text)"; 166,321 of 166,321 donor rows matched once, 0 unmatched, 0 matched twice; 0 identity mismatches in 2022, 2023 and 2024; files pppub23, pppub24, pppub25; items WEIND, WEMIND, WKSWORK > 0. Tool commit 0005321705f5, tool_dirty false, an ancestor of both heads; the tool's blob is the same there and at 72b7072.
      • Value check. carry.reemitted_columns_verified_equal lists 8 columns: cps_race, is_hispanic, detailed_occupation_recode, has_never_worked, is_military, is_computer_scientist, is_farmer_fisher, is_executive_administrative_professional. The tool re-derives them from PRDTRACE, PRDTHSP, POCCU2, WKSWORK and the joined WEIND and WEMIND, and raises unless each equals the donor's column on every row in value and dtype; the receipt exists, so all 8 were equal on all 166,321 rows. The join's 8 identity pairs (source_household_id↔PH_SEQ, P_SEQ, A_LINENO, A_AGE, WKSWORK, POCCU2, PRDTRACE, PRDTHSP) show 0 mismatches over 54,464, 54,654 and 57,203 donor rows.
      • Limit. A local check before the patch compared against the earlier local copy the step was ported from, so it shows only that the port changed nothing; the receipt's per-row identity is the independent check.
    3. strike_benefits = 0. Added (float64, 0): "no donor or ASEC pppub23–26 row has OI_OFF == 12". Calibrated H5: 0 nonzero, 0 NaN on both spines.
    4. Partnership and S-corp split. The receipt adds passive_partnership_s_corp_income (float64, 0), the split being unknown; s_corp_income is not among its added columns (inference: already in the donor, all 0, per comment 6937139936). R1 passed --allow-default-donor-column for both. The staging summary records them as allowed_default_donor_columns, under orchestration and as the limitation allowed_default_valued_donor_columns (status reviewed_default_valued_donor_columns, microcosm#922, both spines, calibration_blocker false), JSON-equal in the output summary and REL/release_manifest.json. Calibrated H5: both 0 on every row of both spines; partnership_income nonzero on 4,599 donor and 139,930 ACS rows. The packaged refresh_recipe.staging has no --allow-default-donor-column or --hours-under15-policy, and names --base-h5 <next-certified-release>.h5 --donor-release-manifest <release_manifest.json>.
    5. Provenance. R1's argv has no --donor-release-manifest or other manifest option; the receipt's release_manifest is null. Both hashes are in County Files PoC: donor patch, R1 allowance, R2 pre-checks and fixes #1660 comment 6950580220. The copy is in policyengine/populace-us-staging (section 10).
    6. Report: items 1–5 above give the facts, for the PoC report.

    Confirmed at 11:16Z (comment 6946488444)

    • strike_benefits fill harmless. REL/reviewed_null_fills.json (abad6f4923b5) fills[31]: person, 3,420,942 of 3,587,263 rows, fill_value "0", all acs_2024_1yr. REL/reviewed_fill_consumer_register.json (2b3a0d6db333) entries[33]: verdict harmless, reviewed against policyengine_us 2.2.1, 13 consumers. That register has 60 entries. reviewed_null_fills.json counts a different one, the staging summary's null register (reviewed_engine_input_nulls): 66 entries, 58 columns, 143,808,073 values filled, no count-mismatch warnings or unregistered violations.
    • Files only; R1 without --donor-release-manifest: item 5.
    • donor_release: null in REL/build_manifest.json /dataset/donor_release, REL/release_manifest.json /donor_release (and /reviewed_limitations[23]), REL/us_source_coverage.json (b6c55f292ca7) and the staging summary's /base/donor_release.
    • Not published. release/package_result.json (7c28d181c96c) lists a publish_command and a promote_command (uv run microcosm-publish-release-build … --repo-id policyengine/populace-us …); no run of either was found (a scan, not proof). The release tool's docstring at f8b1039: "this tool never uploads". Inference, not run: the release contract at f8b1039 records a failure for a null donor_release; the publisher's path to it was not traced.

    The drop ruling (comment 6950739270; "always", #1660 comment 6950812749)

    • Materialize's argv has --county-drop-empty-soi-rows (launcher.log line 549, rss.jsonl). Dropped rows: none (section 4).
    • PoC-only, and kept in the packaged refresh_recipe.release: the list's Drop flag item.
    • Zero-AGI check (comment 6964605746): at_risk, no_household, counties_outside_ladder, unsupported_counties empty; exit_status 0.
    4. Dropped rows: none
    • CP/county_surface.json (11abc9a2edb3): zero_measure_soi_rows_dropped [] and unsupported_targets [].
    • CP/run_identity.json (207cd3c16e65) and REL/run_identity.json (ad376d3a9e1f), JSON-equal: county_drop_empty_soi_rows: true; zero_measure_soi_rows_dropped, county_targets_dropped, population_cells_dropped all [].
    • county_reliability.csv column 28, zero_measure_soi_rows_dropped, is empty on all 3,144 rows (CP and REL byte-identical); county_reliability.json has the key in all 3,144 county cells and at the top level, all empty, and an empty unsupported_targets.
    • county_facts.dropped counts Puerto Rico input rows, not targets (section 9).
    5. Limitations the PoC carries
    • Rent placement (Place each ACS rent draw on its own household's head #1444, d2300). No REL file, nor the staging or output summary, contains "Place each ACS rent draw on its own household's head #1444", "State child SPM rates: next steps from the November trace #1446" or "placement" or refers to d2300 (the one "d2300" match is inside a hex ledger key). No limitation id contains "rent". Two limitation texts contain the word, neither about rent placement: acs_group_quarters_housing_universe (group quarters) and acs_local_ssi_disability_criteria ("rental income"). Staging lists pre_subsidy_rent as imputed for 3,239,682 ACS rows from the donor (asec_puf, family housing). The run files don't record the donor's placement; "The PoC carries the old placement" is County Files: a proof-of-concept county-calibrated dataset by 23 November #1647's statement.
    • Donor weight. At calibrated weights the 57,240 donor households, 3.61% of 1,586,908, carry 0.7720 of household weight and the 1,529,668 ACS households 0.2280; at design weights, 0.5 each. 766b7c7: 0.6843; County Files: a proof-of-concept county-calibrated dataset by 23 November #1647: 68% in the release the pilot started from.
    • Engine. policyengine-us 2.2.1 wherever recorded: the build manifest's runtime, the release manifest's built_with_model_package, the receipt, the AGI check's engine_version, the fill register's reviewed_against, the uv.lock at both heads (byte-identical) and both venvs.
    • Projection. Not run (section 2).
    • County assignment (limitation sub_puma_geographic_precision; code at 72b7072bf, package microcosm.build.us_runtime):
      • ACS rows keep their PUMS PUMA; R1 draws the district and, separately, the county within the PUMA by the ladder's population overlaps (--geography-seed 0), and stores no tract or block (puma_ladder.py:313, :349-377, :710-743). Outside Connecticut county_fips_2023 is that county; in Connecticut a tract drawn within (PUMA, county) gives the planning region (puma_county_vintage.py:32-54). The 9 moved households are ACS rows and keep their district (f8b1039 tools/us_acs_local_county_surface.py:2193-2195, :2333-2338).
      • Donor rows keep the donor file's district and county: R1 overwrites their drawn values (base_pool.py:832-835), checks the county is the tract's prefix (:646-665) and takes county_fips_2023 from the tract (:840-845). These files and R1's builder name no CPS county (GTCO); how the donor file got its values is not established (section 12).
    6. Disk and memory

    From the guard's records in rss.jsonl, <stage>.peak (run_capped) and each log's /usr/bin/time -l. Memory in GiB (2^30 bytes); free disk in decimal GB (10^9 bytes) on the data volume.

    Stage Start End Min Peak GiB, guard Peak GiB, run_capped Max RSS GiB, time -l Free GB, start Free GB, end Free GB, lowest Bytes written
    r1 11-17 16:31:27 20:33:03 241.6 48.011 50.422 49.315 98.35 74.58 74.33 11,473,817,600
    fills 20:41:30 20:42:50 1.3 1.799 1.776 1.776 75.21 77.04 75.21 8,192
    agi 20:48:06 20:51:40 3.6 40.703 40.681 40.679 77.54 78.90 77.26 393,216
    materialize 20:51:49 23:49:09 177.3 59.687 59.755 59.761 78.92 72.83 72.83 896,995,328
    calibrate 23:49:14 11-18 00:20:19 31.1 47.715 46.742 48.344 72.82 64.74 64.71 10,233,303,040
    qa 00:20:25 01:14:35 54.2 23.902 24.256 24.609 64.71 64.88 64.64 65,536
    finalize 01:14:41 01:16:40 2.0 29.173 29.210 29.212 64.86 64.89 64.85 22,872,064
    package 01:16:46 01:18:36 1.8 25.834 25.832 25.892 64.87 64.80 64.80 77,668,352
    • The guard's peak is the larger of summed RSS and summed phys_footprint over the process tree, sampled each second, as is free disk. Bytes written are the stage's gross writes. Free disk is volume-wide. Our run log (not posted) records other jobs freeing 2.26 GB (20:43Z) and 3.52 GB (23:55:02Z); other writes or frees are not in the files.
    • R1's clocks: /usr/bin/time -l reads 11,144.27 s real, the guard 14,495.1 s (matching the launcher's start and end lines and the staging H5's write time). Other stages agree within 1.2 s. The files don't explain the 3,351 s gap.
    • Swap was sampled only during agi, materialize and calibrate (213 samples, about 60 s apart), all 0 MiB total and used; the other stages have only a start reading (0/0). Lowest available memory then: agi 64.1, materialize 51.6, calibrate 59.0 GiB.
    • Every stage records 0 SIGSTOP intervals in its process tree.

    The disk line. María's full line (#1660 comment 6951750167) ends "for the staging and calibrated files"; Max's 20:04Z ruling is in our #1660 comment 6959513812. The argvs carry --min-disk-gb 75 for agi and materialize, 85 for R1, and --stop-disk-gb 50 on every stage.

    Point Free disk, GB
    R1 start, 16:31:27Z 98.35
    agi start, 20:48:06Z 77.54 (launcher 77.5: 2.5 under 80, 2.5 over 75)
    materialize start, 20:51:49Z 78.92 (launcher 78.9: 1.1 under 80, 3.9 over 75)
    lowest, during qa (00:20:25Z to 01:14:35Z; no time kept) 64.64 (4.64 over 60; 14.64 over the 50 GB stop line)
    • The staging H5 (11,472,744,092 bytes) and calibrated H5 (10,637,811,669 bytes) take 22.11 GB together; the package root copy is an APFS clone and added no measurable space (section 7).
    • launcher.log has no "WARN free" line (warning line 60 GB) and no disk hold.
    7. Hand steps

    (a) stage-r1.done was written by hand after the launcher's wait returned 19. At 20:33:03Z the launcher logged "r1: ended rc=19 (the tool exited 19); free 74.6 GB" and "CLOSING: R1 did not pass (rc=19 …)", wrote a HELD-FOR-RETRY file and no done record. The guard's record for the same process: exit_code 0, "finished", 14,495.1 s; r1.log ends "rss_guard: finished exit=0 …" with 0 "Traceback" lines, and every staging summary gate passed with 0 failures (the seven acs_local_*, self-employment and hours gates, weights_audit, adult_care_recipient_gate). The file, written at 20:40:23Z, has these seven lines and a note= line saying it was written by hand by the LWI session, not by the launcher, and why:

    stage=r1
    res=lwi-county-poc-2026-11-17-tue
    ended=2026-11-17T20:33:03Z
    head=72b7072bffa94fa0933f9d0a9621fceae403ed70
    summary_sha256=73b7e482d2df56325fff52340573a79ffb3d986889f36befcac2507e7e375b72
    staging_bytes=11472744092
    donor_sha256=438f47f49b4e6e0c72c3adc3bb3156cbef40b4c0160b71738ac939be1d49a67b
    
    • Its values match: summary_sha256 = the staging summary's sha256; staging_bytes = the staging H5's size; donor_sha256 = the staging summary's /base/sha256 and the receipt's /output/sha256.
    • Also by hand, per our run log: HELD-FOR-RETRY and handover.done were renamed *.prev-r1-rc19* (both in part 2's SHA-256 list), and the hand-over job restarted at 20:40:53Z. Its probe of the f8b1039 launcher began at 20:40:53Z, found R1's done record and the matching staging summary sha256, and logged 0 holds at 20:41:06Z. The new launcher armed at 20:41:06Z; the hand-over logged "switched" at 20:41:11Z. The new launcher's start checks repeat the two done-record lines (launcher.log lines 410-411). Fills started 20:41:30Z, 507 s after R1 ended.

    (b) The package root copy is an APFS clone placed by hand; package reused it. package-clone.done (7ddd6d83a379):

    2026-11-18T00:21:26Z placed: by hand (LWI session) at 00:20:56Z: cp -c county-poc/populace_us_2024_acs_local.h5 county-poc/release/microcosm_us_2024_acs_local.h5; free delta -140 KB (a clone); size 10637811669; sha256 82314a3b5a6a95762faf6eb4f5b499ce56608ad6a39a27b75e11c75b4945bd3c. Package reuses it only if this equals the calibrated H5 sha (spine_qa.json artifact_sha256).
    
    • Placed during qa, before package. Two files (1 link each, same size); that they share blocks rests on the -140 KB free-disk change.
    • package.log has no "copying calibrated H5 to artifact root" line, which the tool at f8b1039 logs just before copying (it copies only when the root copy is missing or its sha256 differs); package wrote 77,668,352 bytes in all.
    • 82314a3b5a6a… matches in package-clone.done, both spine_qa.json, REL/sha256sums.txt, REL/release_manifest.json, package_result.json, CP/consumer_export.json and a fresh hash of both files.
    8. Later #1660 commits

    All seven commits in 72b7072bf..f8b1039f0 are María's, one first-parent chain (git merge-base --is-ancestor): R1 ran at 72b7072, which has none; fills to package at f8b1039, which has all.

    Commit What it changes Stage that ran it Mark in the outputs
    f96ff8e1b0, 65b2155c04 Help and doc text: the drop flag and donor allowance are PoC-only (#1661) text only none
    a5ca4df65d The AGI check lists the counties R2 always refuses (counties_outside_ladder, unsupported_counties), exits 3 for them and records exit_status agi county_agi_support.json exit_status 0
    e49d539977 Under the drop flag, each dropped row's cell goes in the run identity, each member county's cell and a CSV column materialize to package identity key and CSV column 28, both empty
    28e7b7ce6b The fill pre-check accepts an ACS-only never-default null only in columns R2's stages fill, and records that set fills reviewed_fills_precheck.json (164f7be81b6a): r2_stage_filled_never_default (8 columns), passed true, refusals []
    2e9bf301d4 The donor-patch tool refuses an existing output unless --overwrite is passed none; the copy was made at 0005321, which lacks it none
    f8b1039f00 (the head) The AGI check holds back a null never-default column only if an R2 stage fills it, all nulls are on ACS rows and the AGI doesn't read it; else it refuses agi none
    • tools/build_us_acs_local_release.py and the R1 shim are byte-identical at both heads; the R1 implementation in tools/_legacy/ differs in a docstring and a help string only (+7/−2).
    • The 8 stage-filled columns are the 8 the AGI check held back (comment 6964605746). held_back_columns.json holds a different set: 2 formula-owned person columns, has_marketplace_health_coverage and weeks_worked.
    9. Other notes

    "certified Build O." The release tool has the wording at lines 4146-4147, 4184 and 4692, at both heads. In REL only gate_summary.json and release_manifest.json carry it, in three reviewed_limitations entries each (release_manifest.json lines 843, 866, 1179):

    • [6] ssi_aged_band_collapse_inherited: "… base-O via the certified Build O sparse release …"
    • [8] tips_return_count_carrier_deficit_inherited: "The certified Build O sparse donor under-carries …"
    • [21] donor_sparse_selection_training_set: "… the certified Build O sparse release (unknown donor id) …"
    • County Files PoC: donor patch, R1 allowance, R2 pre-checks and fixes #1660's "Records that stay misleading for this run" (in its description's "R2: later gates and the reviewed-fill register") names [21] and finalize's input_coverage entry, not [6] or [8]. All five records on that list are in the packaged files: those two, the staging recipe (section 3, item 4), staging_orchestration without allow_default_donor_columns, and [1] native_acs_source_universe_blanks, which names strike_benefits.

    county_facts.dropped = {"state_72": 4136}. Both run identities record row_count 180,326, kept_rows 176,190 and that dropped. It counts rows of the pinned county facts file whose county code starts with state FIPS 72 (Puerto Rico); the loader skips them (county_facts.py at f8b1039, lines 67-68: "Puerto Rico municipios: in the ACS county tables, outside the County Files." and DROPPED_STATE_FIPS = frozenset({"72"})). They are input fact rows, not targets or counties, and separate from section 4's empty drop lists.

    10. Upload status

    Max gave his go at about 13:05Z on 18 November. María's list (#1660 comment 6951750167) and the release folder she asked for in 6973462140 are now in the private policyengine/populace-us-staging → runs/lwi-county-poc-20261117/, with part 2's list at report/sha256-outputs.txt. Our #1660 comment 6982412846 lists the six commits; at the last, c88bfbf16ae4, each of the 78 repo files matches its local file and, for the 76 listed, the list. Not uploaded: the eight .peak files (row 8; section 6 gives their values), the PUMA ladder (already at inputs/us-puma-ladder/39a2ab2a/, same sha256) and the root copy (a clone). Each item (bytes per file, or per group where noted):

    Item Files Bytes sha256
    1 feed, county facts consumer_facts_us_41b2fb2.jsonl; …_county_3e9d3a0.jsonl 171,661,396; 922,268,386 1d45a89c2817; 67b0998aa2ee (match)
    2 PUMA ladder ("Done" in her comment; in the repo, same sha256) us_puma_ladder_2020.npz 446,791 39a2ab2abeab (matches)
    3 donor copy, receipt; the patch step's two logs donor_patched_poc.h5; .receipt.json; patch.stdout.json, patch.stderr.log 1,208,766,365; 12,034; 12,245 (both logs) 438f47f49b4e; b6430abcb432 (match); part 2's SHA-256 list
    4 R1 staging, summary, log acs_multispine_staging.h5; .summary.json; r1.log 11,472,744,092; 587,796; 591,806 083290ddae1e; 73b7e482d2df; 2f57ad96d737
    5 pre-checks reviewed_fills_precheck.json; county_agi_support.json 1,970; 385,680 164f7be81b6a; 474e642748db
    6 checkpoints after materialize no separate copy; 13 CP files last written then, unchanged since 896,507,235 part 2's SHA-256 list
    7 checkpoints after calibrate, calibrated H5 7 CP files last written then; 3 written later (spine_qa.json by qa, gate_summary.json by finalize, rss_samples.json by package); populace_us_2024_acs_local.h5 126,227,472; 310,053; 10,637,811,669 part 2's SHA-256 list; 82314a3b5a6a
    8 per stage: log, command, environment, commit, peak memory 8 logs (0 "Traceback" lines each); launcher.log, rss.jsonl; 8 stage-*.done (head=); 8 <stage>.peak 752,821 (logs); 90,446; 17,630; 1,927; 106 part 2's SHA-256 list, except the .peak files

    Items 1 and 3-8 total 25,438,159,323 bytes (25.44 GB): the 60 files in the rows above, each path once (r1.log is in items 4 and 8). REL and the root copy are not on her list. Materialize ran under a 112 GiB cap (guard --limit-gib 112, run_capped --rss-gb 112).

    11. Reproducibility (commands and digests in part 2)

    Part 2, the next comment, holds this section in full, with the SHA-256 list of 78 files.

    12. What this report could not establish
    • R1's code head in any machine-written output.
    • The joint solve's cost alone (no state-only solve; 766b7c7 differs in surface and, by inference, upstream of the solve), and national fit as trained rows (none trained).
    • The file load in policyengine-us; the 2026 and 2027 files and the projection (not run).
    • The donor's rent placement and how the donor file got its counties (section 5); any publication (no record).
    • Swap outside agi, materialize and calibrate; the time of the disk low within qa.
    • The cause of R1's 3,351 s clock gap; the patch tool's argv.
    • What --stage all runs (section 2); the County Files: a proof-of-concept county-calibrated dataset by 23 November #1647 pilot's ESS and population basis.

    Part 2 of this run report, with section 11's commands and digests, follows in the next comment.

  11. MaxGhenis commented on Nov 18, 2026

    @MaxGhenis
    Contributor

    Written by Claude Code, Max's agent for the county work, not by Max. Facts only: this comment asks for no decision and recommends none.

    Run report, part 2: commands and digests

    Section 11 of the run report in the comment above. Times are UTC.

    11. Reproducibility

    The outputs are on Max's Mac, in the run folder (county-poc/ and the logs) and three input files; the blocks below give their paths. Since 18 November they are also in the private policyengine/populace-us-staging, under runs/lwi-county-poc-20261117/ (part 1, section 10). This report compared 73 of the file digests the run's own records give with their files: 73 match, 0 differ.

    Exact commands per stage, with environment and caps
    # ~/ paths are on Max's Mac.
    # Every stage ran as: env -i HOME USER LOGNAME SHELL TMPDIR PATH=/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:~/.local/bin
    #   PYTHONUNBUFFERED=1 MICROCOSM_TELEMETRY_REQUIRED=0 MICROCOSM_EMITTER_COMMAND=/usr/bin/false
    #   (R1 adds POPULACE_ACS_POOL_PEAK_LIMIT_BYTES=100000000000 POPULACE_STAGING_EXPORT_PEAK_LIMIT_BYTES=100000000000),
    #   then rss_guard_lwi.py <guard options> --end-by 1794967020 (2026-11-18T01:57:00Z),
    #   then run_capped.py <options> --max-pause-credit 0, then /usr/bin/time -l, then the command below.
    # Inference: each command ran from its frozen tree (the tool paths are relative; no log records the cwd).
    
    T72=~/PolicyEngine/microcosm/_worktrees/lwi-poc-frozen-72b7072bf
    TF8=~/PolicyEngine/microcosm/_worktrees/lwi-poc-frozen-f8b1039f0
    C=~/reviews/lwi-county-build-2026-11-13/runs/poc-run/county-poc
    L=~/reviews/acs-local-state-age-2026-11-05/inputs/us_puma_ladder_2020.npz
    IN=~/PolicyEngine/_buildh-runtime/inputs
    R2=(--staging-h5 $C/acs_multispine_staging.h5 --staging-summary $C/acs_multispine_staging.summary.json --checkpoint-dir $C/checkpoints --ladder $L --out-h5 $C/populace_us_2024_acs_local.h5 --families snap,medicaid,soi --geographies state,cd,county --soi-mode state_county --county-column county_fips_2023 --county-holdout-fraction 0.1 --county-holdout-salt acs-local-county-v1 --county-min-support 3 --county-target-loss-cap 10 --county-max-weight-ratio 5 --hh-chunk 20000 --seed 0)
    
    # r1: launcher.log line 385; ran 2026-11-17T16:31:27Z to 2026-11-17T20:33:03Z; exit_code 0
    #   guard --limit-gib 84 --min-avail-gib 57 --min-disk-gb 85 --stop-disk-gb 50 --max-load1 60; run_capped --rss-gb 88 --timeout 33963
    $T72/.venv/bin/python -B tools/build_us_acs_multispine_base.py --base-h5 $C/donor/donor_patched_poc.h5 --out-h5 $C/acs_multispine_staging.h5 --summary $C/acs_multispine_staging.summary.json --inputs-dir ~/.cache/microcosm/acs-pums/2024-1yr --puma-ladder $L --period 2024 --seed 0 --geography-seed 0 --acs-share 0.5 --n-estimators 32 --max-targets-per-fit 8 --chunksize 100000 --donor-channel auto --location-rule legacy --hours-under15-policy us_hours_under15_zero_completion_v1 --allow-default-donor-column 's_corp_income=the donor holds partnership and S-corp income as one combined amount in partnership_income; the split is unknown' --allow-default-donor-column 'passive_partnership_s_corp_income=the donor holds partnership and S-corp income as one combined amount in partnership_income; the split is unknown'
    
    # fills: launcher.log line 454; ran 2026-11-17T20:41:30Z to 2026-11-17T20:42:50Z; exit_code 0
    #   guard --limit-gib 84 --min-avail-gib 20 --min-disk-gb 50 --stop-disk-gb 50 --max-load1 200; run_capped --rss-gb 88 --timeout 18961
    $TF8/.venv/bin/python -B tools/check_us_acs_local_reviewed_fills.py --staging-summary $C/acs_multispine_staging.summary.json --out $C/reviewed_fills_precheck.json
    
    # agi: launcher.log line 510; ran 2026-11-17T20:48:06Z to 2026-11-17T20:51:40Z; exit_code 0
    #   guard --limit-gib 84 --min-avail-gib 65 --min-disk-gb 75 --stop-disk-gb 50 --max-load1 200; run_capped --rss-gb 88 --timeout 18564
    $TF8/.venv/bin/python -B tools/check_us_acs_county_agi_support.py --h5 $C/acs_multispine_staging.h5 --staging-summary $C/acs_multispine_staging.summary.json --county-column county_fips_2023 --puma-ladder $L --county-min-support 3 --out $C/county_agi_support.json
    
    # materialize: launcher.log line 549; ran 2026-11-17T20:51:49Z to 2026-11-17T23:49:09Z; exit_code 0
    #   guard --limit-gib 112 --min-avail-gib 65 --min-disk-gb 75 --stop-disk-gb 50 --max-load1 200; run_capped --rss-gb 112 --timeout 18341
    $TF8/.venv/bin/python -B tools/build_us_acs_local_release.py --stage materialize "${R2[@]}" --feed $IN/consumer_facts_us_41b2fb2.jsonl --feed-sha256 1d45a89c28177a95371b4cc4068d3657c7bf12bd8edad7c82fe25bf453f9ea07 --county-facts $IN/consumer_facts_us_county_3e9d3a0.jsonl --county-facts-sha256 67b0998aa2ee1aeed6637dab6a846f405246706508074b1c1b5bab7bd98c8bea --sample-fraction 1.0 --batch 5000 --county-drop-empty-soi-rows
    
    # calibrate: launcher.log line 575; ran 2026-11-17T23:49:14Z to 2026-11-18T00:20:19Z; exit_code 0
    #   guard --limit-gib 90 --min-avail-gib 20 --min-disk-gb 50 --stop-disk-gb 50 --max-load1 200; run_capped --rss-gb 90 --timeout 7696
    $TF8/.venv/bin/python -B tools/build_us_acs_local_release.py --stage calibrate "${R2[@]}" --epochs 800 --epoch-batch 400
    
    # qa: launcher.log line 602; ran 2026-11-18T00:20:25Z to 2026-11-18T01:14:35Z; exit_code 0
    #   guard --limit-gib 90 --min-avail-gib 20 --min-disk-gb 50 --stop-disk-gb 50 --max-load1 200; run_capped --rss-gb 90 --timeout 5825
    $TF8/.venv/bin/python -B tools/build_us_acs_local_release.py --stage qa "${R2[@]}"
    
    # finalize: launcher.log line 626; ran 2026-11-18T01:14:41Z to 2026-11-18T01:16:40Z; exit_code 0
    #   guard --limit-gib 90 --min-avail-gib 20 --min-disk-gb 50 --stop-disk-gb 50 --max-load1 200; run_capped --rss-gb 90 --timeout 2570
    $TF8/.venv/bin/python -B tools/build_us_acs_local_release.py --stage finalize "${R2[@]}"
    
    # package: launcher.log line 650; ran 2026-11-18T01:16:46Z to 2026-11-18T01:18:36Z; exit_code 0
    #   guard --limit-gib 90 --min-avail-gib 20 --min-disk-gb 50 --stop-disk-gb 50 --max-load1 200; run_capped --rss-gb 90 --timeout 2445
    $TF8/.venv/bin/python -B tools/build_us_acs_local_release.py --stage package "${R2[@]}" --out $C/release
    
    Input digests
    • The run's records hold the input digests in CP/run_identity.json (feed, county facts, ladder, staging H5), the staging summary and stage-r1.done (donor copy, staging summary), the receipt (donor copy) and package_result.json (calibrated H5). The receipt's own digest is in County Files PoC: donor patch, R1 allowance, R2 pre-checks and fixes #1660 comment 6950580220 and in no run file. Full digests: the SHA-256 list below, whose files were hashed again for this report and match.
    • Not in that list:
      • published donor, the patch input: 009469727409e58c0c9c1252581292497b688b76f1d59b51947483fb0f89221c (receipt /input/sha256; re-hashed for this report: matches);
      • ACS archives (staging summary /acs_sources/artifacts[*]/sha256; not re-hashed): csv_hus.zip 8281008e53de98f0ef81e7a2ee5a8725991dda1ecfd2713ead73246425e515d0, csv_pus.zip afdc6d90c6e2f0bab365ed32d95ba4c4d8ac651162f46ac7861295b2dc469894;
      • R1's launchd plist in the run folder: a3a762409d2c0289849b9634c2fcea884417b6d8b7dbb8a41c3139f400382eab;
      • 766b7c7's files read for section 2, local to this Mac: calibration_diagnostics.json 1f7e609ae5c5… (as its sha256sums.txt lists it), gate_summary.json eccb9bf4829d…, build_manifest.json f3971f28104e…, sha256sums.txt cef15933277e….
    SHA-256 list (78 files, grouped by folder)

    Each line is in shasum -a 256 format, with the file's path relative to the folder named above it.

    # ~/PolicyEngine/_buildh-runtime/inputs/
    1d45a89c28177a95371b4cc4068d3657c7bf12bd8edad7c82fe25bf453f9ea07  consumer_facts_us_41b2fb2.jsonl
    67b0998aa2ee1aeed6637dab6a846f405246706508074b1c1b5bab7bd98c8bea  consumer_facts_us_county_3e9d3a0.jsonl
    # ~/reviews/acs-local-state-age-2026-11-05/inputs/
    39a2ab2abeab07a88362af7ab2940e0e1d50a297c919e4bbc6fb65bab51147d8  us_puma_ladder_2020.npz
    # the run folder, ~/reviews/lwi-county-build-2026-11-13/runs/poc-run/
    2f57ad96d73765ac7657f0f1a8e69f52922770083f7e35423a1689591fe095a9  r1.log
    fb6aa8397860d7a05824178692f2be279d1f274bb9fbacd685cb1b5f60930bc5  fills.log
    5c780fbe088d8c52666b1fa38c31753a24393d24d7a434f382910f6261707960  agi.log
    a6a048f2f5c17476bf42b890fda6ee09d14a832e04ac3954fbeb7f518bc444d7  materialize.log
    ee1c0b98e0e1d709ee676b14262a7738b033e4514e7ddf779ed7ca029bbb5ae5  calibrate.log
    436c0e80bf22ec9f5186a0ea4a485874517c42e11efbd5eb8a822ecc72ed2922  qa.log
    7a7aed08cb605fb36fdde0279ee3da886256dacb746a1ef2fad4a54e8a6ae81b  finalize.log
    afd4753a86451c83cf2117857f210b54020d9b3b357051e4fcf881b2f9719744  package.log
    11587a11bc21df8a4b4d650f778cc918f1b8cc138d7f8510ec0fd8d7fe28a2c5  launcher.log
    bbae5ab182e8248c914f7bbdb1d49958f61dd39b307b72f28d88219f5e763ef5  handover.log
    a4b4cf9929d602f7d9de5049034a58c8366fe8880d4156e1287d43fe5fbbccb7  swap.log
    14555678af2bd2a34039f7ff52f48bdd2629fb572759006400908e4db7282597  rss.jsonl
    7ddd6d83a379f19cac6a60dce6baf64ea079bf23b080427a09701113f9eff4ea  package-clone.done
    d40faf6bc82a390e7f25bfad6ec04870a4eb3edf95b53e67ce244182710b0144  handover.done
    af06677a99581f059f533e6b4bdd47834a806e7b33ed0dd99c8b5bd245119e25  handover.done.prev-r1-rc19
    724b4de4e739e18909257bb013c842114bb83de59467e445332a15f4d90a1663  HELD-FOR-RETRY-lwi-county-poc-2026-11-17-tue.prev-r1-rc19-wait-artifact
    0565e75d9e5b70dc2e9f30ff8effa92514b08f3a186db06dc3ecc92818a9d2e1  DROP_EMPTY_RULING
    de4cfed9738f1dbaac7161098da9592c77f2b4f3ab83121f1d74d70f6b2155d8  stage-r1.done
    d09df159989d6a85def20b764ff206f36618016c488a7403a67bdf50ed4acbee  stage-fills.done
    4e6210f41a7742681a3d32ee5605d710e51eded7c288119348ed1f045c86ae46  stage-agi.done
    b8e57fdb082fa80dd0d0f4edef7dd787db6972c3fed63967d1a15b74b635a895  stage-materialize.done
    6f1bb2a30daa703fcf8f78fbcaa0d16863564d9a212aff61b596089fcb335768  stage-calibrate.done
    45cef290504fb5512c43c9bf9b64e044853e53aaa66a50541c23f362400ef206  stage-qa.done
    6648b1ef8ba5a67ee3c074078261deca7555bd2eb23a95dae9e681e97de67cd8  stage-finalize.done
    8e9fb68660205f97c75b5e0bfb18522a2ff238bc8f960a82d39b96bd87351c54  stage-package.done
    # the run folder's county-poc/
    083290ddae1e94d77070fabe678018c63316fccd85bf8dfdc780648a6dbebb57  acs_multispine_staging.h5
    73b7e482d2df56325fff52340573a79ffb3d986889f36befcac2507e7e375b72  acs_multispine_staging.summary.json
    82314a3b5a6a95762faf6eb4f5b499ce56608ad6a39a27b75e11c75b4945bd3c  populace_us_2024_acs_local.h5
    5a6013323ff3bfc8b88ad470bcc4674107aeb6c2f33a0adb47e90a273d225faf  populace_us_2024_acs_local.summary.json
    474e642748db90d895ed14f539988d1c5c28d436b2e98af3327f80c28afad36b  county_agi_support.json
    164f7be81b6a5945b55eca4e3ef8255bba4e52257c9b3cf65c0970ddf7b4aba2  reviewed_fills_precheck.json
    82314a3b5a6a95762faf6eb4f5b499ce56608ad6a39a27b75e11c75b4945bd3c  release/microcosm_us_2024_acs_local.h5
    7c28d181c96ceabd0430c2528ec669261da4c01cde685e1f448d281f1e53029f  release/package_result.json
    438f47f49b4e6e0c72c3adc3bb3156cbef40b4c0160b71738ac939be1d49a67b  donor/donor_patched_poc.h5
    b6430abcb432e108a998dc6dd289157a440cb9ae948234460782f201d374a585  donor/donor_patched_poc.receipt.json
    f1e3c62c51463c17d36c62705a4319669ad2f39817e0342232bbcc174dbf5a9d  donor/patch.stderr.log
    b6430abcb432e108a998dc6dd289157a440cb9ae948234460782f201d374a585  donor/patch.stdout.json
    # CP = the run folder's county-poc/checkpoints/
    0acf751c1bd64b9deb23e685bc53345e5655de8c12251f2596a5e9cb599a5893  acs_local_ssi_medicaid_take_up.npz
    ef83b0f8dd73ea1851fe53d45bce2ef9082daae7ef541ccf36f81b273bf96da1  calibration_diagnostics.json
    21aa8a38685dec0a96189d87409a5627c9eacb096415c64c9e0fbf0e510745fb  calibration_summary.json
    b5eec389178dd6f5d35423255f3e16f05fcd072d7dfb2e8bd9af4de02e9031dc  consumer_export.json
    426c7e70d4a4644860a035de3a6e42d9059705c000e1316389f7c63c4902b15d  consumer_reviewed_null_fills.json
    b6295eb22d5f24e17ea3396715e670e6a50995228d782888b4d9443b17fd8425  county_reliability.csv
    c927fcf81496cdfefacdf88749549ee763c4c01a204bf23b8c09c2852b85aece  county_reliability.json
    760453560ca7ea8e947117d29fe3090d506639d9c9c0ac052123776e4c2355e2  county_support.json
    11abc9a2edb36382607528df19307bfa9bd81f4c0f84fe427a6499dea1558f16  county_surface.json
    75bb0be7540355af4d0af7e7ca49534967cf6a5418580089595907e427cd747d  county_validation.json
    07769c8c19a8e69163d0ac3b3ef6f41b23575e1b196215463492a21b4f2e3065  county_validation_measures.npz
    d29e9073756f3efcee7ddc8244c5d38aa65d3121e246d10706f67e51cc524cde  gate_summary.json
    b7bab2cdac2d688c069956bfcbb89f839777eb6460adf2d23f7017df56c174ab  held_back_columns.json
    9bc9d786f92db52b32409f64829308a0025d7b251e7858f2102f61dbf7009467  materialize_rss.json
    426c7e70d4a4644860a035de3a6e42d9059705c000e1316389f7c63c4902b15d  reviewed_null_fills.json
    cd548a59d7b0476bcda1931795d75589f9a239cca94c346780cb611860ec1f25  rss_samples.json
    207cd3c16e6526703289ecf3d7fa850e86dcb4611e8430a244ce894959eacfb5  run_identity.json
    e2fb9706539a4e74a8223b797d597de907e3709328f19cb07bcc8be17e2bdc52  spine_qa.json
    649ce0e3361d767cdbe724a957269ab62fb4ed6308658aa0489c82c12e3531cf  target_frame_lean.h5
    cccdacafe0e73bc8d7b493961bdbc36994714ec747c53c2786c8a8a92d22aa56  target_matrix.npz
    3ed59e3bf52316cf29283d70cf2f8bc89033c2e3c0b5d0b39a13588fedad61a4  target_registry.json
    29ddbc0756803293ef87d302a02246bd920233d96e62d51024997d07865d6eda  target_roles.json
    68d8a63ec19bbc83d646fc96e4fed1a918a12a2692d6d14a6fe73e91f3ad0c22  weights_latest.npz
    # REL = the run folder's county-poc/release/releases/microcosm-us-2024-local/
    6cab856180fc89174b216ce8003300463415b0682ac5aee29c24a222edffbc06  build_manifest.json
    ef83b0f8dd73ea1851fe53d45bce2ef9082daae7ef541ccf36f81b273bf96da1  calibration_diagnostics.json
    f14ad2c40fc9d77c7703054864b284cf9d62a9b44a2da9ccb09f08411ebac222  consumer_export.json
    abad6f4923b59c5dcf752711f52d03d81a11b0dd5524deecf5b5bc7fbb361d56  consumer_reviewed_null_fills.json
    b6295eb22d5f24e17ea3396715e670e6a50995228d782888b4d9443b17fd8425  county_reliability.csv
    2ba929e62a30960e4bbd7df7237d37cafebf8858bbaa9605a95fb6c8e2e9784e  county_reliability.json
    3dcbe1c7da34d70c050c3ce11ac98118d7dce4a7e70d808b88d431764036eb71  gate_summary.json
    53e81ae78a7df8a6afff4f9318d794660ce2ff410bd3393cdca9bab9a6ee30df  held_back_columns.json
    e35dda0f19522e32048a35c56844f43f13a92eefa02547c1e8ba105c35a97024  release_manifest.json
    2b3a0d6db3331c1bdcb8021bb1ea0cb4b372a258533c820f43fd245ccdb6cd4f  reviewed_fill_consumer_register.json
    abad6f4923b59c5dcf752711f52d03d81a11b0dd5524deecf5b5bc7fbb361d56  reviewed_null_fills.json
    ad376d3a9e1f81cc58e9d05658631c68025f5aa01b63c4d2112cff1253a8f1f3  run_identity.json
    c41426ae36b40bad05bca0936dd41d1570638211a81834f197f6f8babb754312  sha256sums.txt
    bbd01aabf9bc429fbe10df417eabaa804c5f4e9826fb6644387680f2e586d839  spine_qa.json
    b6c55f292ca7d62c02206cd9b09710da8205ed5d103557cbc113d7fe115e7fb6  us_source_coverage.json
    
  12. 10 remaining items

  13. MaxGhenis commented on Nov 19, 2026

    @MaxGhenis
    Contributor

    Written by Claude Code, Max's agent for the county work, not by Max. Facts only.

    Schema and methods docs: committed to #1660's branch

    This answers the three items for Max's agents in your comment. Commit 35e3863f62 sits on top of your v0.2 (0ca8f6d4da). I fetched and merged first, and the push was a fast-forward. It adds three files to experiments/us-county-poc-20261117/:

    • schema_manifest.json, as the tool wrote it (SHA-256 e3f1df1d…, the same file as in the schema note).
    • schema_manifest.md, the tool's output with a "Notes" section after its opening paragraph. Remove that section and the file is the tool's again, byte for byte. The notes cover your three points: the empty strings, the kinds of column and which ones the model reads, and the removed columns and dtype changes.
    • lwi-poc-methods.md, part 1 as posted in comment 7005740491, from "# Methods" down, without the comment's preamble. I did not change its text.

    Something new for the file itself. All 908 Connecticut donor households have a blank cbsa_code. Other donors are blank only where their county has no metropolitan or micropolitan area. The Connecticut blanks are a lookup gap, so for Connecticut a blank does not mean a non-metro household. The notes say so.

    Where the notes come from. The notes cite no code, so here are the sources.

    • Empty strings. The release's reviewed_null_fills.json lists all six columns, each filled with '' on exactly the 1,529,668 ACS rows and on no donor row. Staging leaves geography below the PUMA unresolved for ACS rows (72b7072bf:…/acs_multispine.py:522-528). The donor counts (15,382 blank place_fips; 1,435 blank sldl, all in Nebraska and DC; 5,343 blank cbsa_code) come from a read-only scan of the household table.
    • Connecticut. At 2ae4339 (27 July), block_ladder_sources.py:381-382 looks a block's CBSA up by the block's first five digits, its 2020 county. The 2023 delineations list Connecticut by planning region, so no Connecticut county matches. Commit e379ec752d (30 September) says that lookup "left every CT block at cbsa_code 0" and switched Connecticut to planning regions. The release records donor_geography = preserved_assigned (us_source_coverage.json). Outside Connecticut, a blank cbsa_code is the same for every donor in a county (0 of 2,818 counties mixed). That the donors' CBSA codes came from the pre-fix lookup is an inference; we have not rebuilt to confirm it.
    • Columns the model reads. policyengine-core 3.32.5 sets a column as an input only if its name is a variable (simulation.py:470-486). The QA log shows the 254-column warning 80 times. The release's stored-inputs gate lists 40 lowercase names that are not variables: 28 build identifiers and 12 derived columns. That leaves 214 uppercase columns: 162 CPS ASEC fields, 51 ACS fields and CENSUS_TAX_ID.
    • Removed columns. consumer_export.json holds back has_marketplace_health_coverage and weeks_worked as formula-owned. In policyengine-us 2.2.1, the first returns has_marketplace_health_coverage_at_interview and the second has a formula_2025. The release adapter (f8b1039f0) exempts id columns and the variables policyengine-us lists in DATASET_SOURCE_INPUTS. retired_stored_inputs.py:128-133 drops medicare_part_b_premiums (166,321 stored values).
    • Dtypes. Each of the 128 int64-to-float64 columns has an uppercase name and exactly as many nulls as there are ACS rows. Staging stacks the two sources with pd.concat (base_pool.py:454). The other six are reviewed null fills, 0 on ACS rows, cast to the variable's value type (tools/build_us_acs_local_release.py:1125-1132).

    Three things in the delivered documents that differ from these facts

    1. The report (lwi-poc-report.md:183) and the Hugging Face README both say the 254 ignored columns are "raw survey fields and build identifiers". They also include 12 derived columns, among them county_fips_2023, the column the README tells LWI to group by.
    2. lwi-poc-methods.md links three comments on this issue: the run report's two parts and the schema note. A reader with only a download token cannot open them. The schema manifest is now next to it as schema_manifest.md.
    3. lwi-poc-methods.md says we could not establish how the donor households got their districts, counties and tracts. Our answers to your national-build questions will settle that.

    The national build. We are checking the three questions about the 28 July build against its code and run logs, and will post what they show by Friday. One correction to part 2 now: its "What we could not establish" calls the 337,704-household pool "base H5 5d8a3162…". The 28 July run's launcher log records a different base: base sha: fca79b42… at 01:14:58Z (chain_sparse.log). The Friday note will explain both files.

    The Hugging Face upload waits for Max.

  14. MaxGhenis commented on Nov 19, 2026

    @MaxGhenis
    Contributor

    Written by Claude Code, Max's agent for the county work, not by Max. Facts only.

    The 28 July national build: how it placed donor households, made the tax-detail copies and fit its weights

    This answers the three questions in comment 7006535601 about the 28 July 2026 national build (populace-us-2024-buildp-sparse-rmloss100-cae8640-20260728T011454Z), from the build's code, run logs and published files. It also corrects parts 2 and 3 of the methods draft (comments 7005741386 and 7005742256), which treat 5d8a3162… as the candidate pool's base. The 28 July release loaded fca79b42… (build.base_dataset_sha256 in its calibration_diagnostics.json); 5d8a3162… is only the base its selection file records, on which the selection's last step was computed (Q1, "Which base the build loaded").

    Q1. How the build placed donor households in districts, counties and tracts

    Yes, but in its base file: the 28 July build drew no locations itself. It chose 57,240 of its base file's 337,704 household records and gave them no new location. So each donor household carries the location the base builder drew on 27 July 2026, at commit 2ae4339. That builder ran the rule the issue body describes: it drew a congressional district within the household's state, then a 2020 census block within that district, and read the county and tract off the block code. No code in it names the county field of the Current Population Survey Annual Social and Economic Supplement (CPS ASEC). The calibration that set the donor weights fit no target below state level (Q3, "Targets by source" and "No district or county targets"). Source labels such as DIAG and BM, used in all three sections, are defined under this section's "Sources".

    Which base the build loaded

    • The build loaded base fca79b42… (base-p2 below). The release hashes the file it is given as --base-h5 and publishes the hash at DIAG /build/base_dataset_sha256; the run log prints the same hash at launch.
    • Base-p2 was built at commit 2ae4339 on 27 July 2026, from 21:48:09Z to 22:06:13Z, and exited with code 0. git diff 2ae4339 cae8640 touches only fiscal_targets.py, its test and one changelog fragment.
    • The 337,704 candidates are base-p2's household records. The release matched all 57,240 selected identities in it, none unmapped or ambiguous, on source year, source household ID, role and clone index. The key holds no geography.
    • Correction to part 2, line 39, and part 3, line 103. Part 2 said the candidate pool came from base 5d8a3162…. Part 3 treats 5d8a3162… as the base's identifier and says the 17 July Build M had "the same base". Both are wrong.
      • 5d8a3162… is an earlier base (base-m below), built at commit 6d06410 on 13 July 2026, 23:07 to 23:21 UTC. Build M loaded d6d66039….
      • The selection file records base-m as its base. The selection's last change, a swap under populace#434, was computed on base-m: it added 9 households that carry Keogh distributions and removed 9 ASEC records. The step before it, which added 100 households, records base 18833fb6….
      • The release copies that field unchanged into BM and DIAG (.../selection_source/source/base_h5_sha256). It records where the selection came from, not which base the build loaded.
    • Seven bases built from 10 to 27 July report identical location summaries: base-m, its 15 July rerun d6d66039, 3573cdcd, 356cf501, ad13e5ea, base-p2 and 0b50660a. The tool built each afresh from the pooled CPS ASEC, with the same location inputs (Internal Revenue Service Statistics of Income (IRS SOI) facts a5d34d4a…, district crosswalk 383a6666…, block table 7ba39b95…) and seed 0.
    • Builds M (17 July), N and O (both 22 July) used the 28 July build's selection file but loaded bases d6d66039, 3573cdcd and 356cf501. All four releases publish identical household counts in each of the 51 states and 436 districts.

    The rule (base builder at 2ae4339)

    1. State. The household's CPS ASEC state (GESTFIPS). No code names the CPS county or metro fields: GTCO, GTCBSA, GTMETSTA and GTCSA appear nowhere at 2ae4339 or 6d06410.
    2. Congressional district. One random draw per household record within its state, with replacement, seed 0. A 119th Congress district's odds are proportional to its count of individual income tax returns in the IRS SOI congressional district file (22incd.csv, "Congressional District Data 2022").
      • The builder treats that file's districts as 117th Congress districts, a label from project records (see "Not established"). It moves each count onto 119th Congress districts in proportion to 2020 block population, through a 1,444-row crosswalk whose recorded basis is "block_population".
      • 480 facts pass the filter: 428 district rows in 43 states, 51 state totals and 1 national total. The draw uses the district rows and, for the eight jurisdictions with one 117th Congress district (AK, DE, DC, MT, ND, SD, VT, WY), the state total. It ignores the national total.
      • Montana alone of the eight has two 119th Congress districts, so its shares, 0.4999995 and 0.5000005, come from 2020 block population alone (crosswalk weights 542,112 and 542,113).
    3. Block. One random draw within the district, from a second random-number generator, also seeded 0. A 2020 census block's odds are proportional to its population in the 2020 Census redistricting (P.L. 94-171) file. The block table holds only populated blocks: 5,769,942, with 331,449,281 people in 436 districts. The code stops with an error if a drawn block lies outside the household's state.
    4. County, tract and the rest. The county is the block code's first 5 digits and the tract its first 11; these overwrite any county column the record had. Place, state legislative districts and core-based statistical area (CBSA) come from block-table lookups.

    No household trait other than state enters either draw. The builder draws locations after it makes the tax-detail copies (Q2), on all 337,704 records: 168,852 ASEC households, each with one copy. So a copy and its ASEC record each get their own district and block, and can sit in different districts, counties and tracts of one state. In the PoC county file, 8,731 of the 9,963 households held as both records have their two records in different counties by county_fips_2023: the release's county_reliability.csv sums 1,405,648 supporting household rows against 1,404,416 distinct source households, so 1,232 households have both records in one county. Across its 337,704 records, base-p2 used 295,559 distinct blocks, 76,901 tracts, 3,115 counties, 13,757 places and 918 CBSAs. Block, tract and county are non-empty for 100% of its household weight, and cbsa_code for 93.44%.

    Connecticut has no CBSA

    The block table base-p2 used gives none of Connecticut's 42,008 populated blocks (3,605,944 people) a CBSA code. At 2ae4339 the table builder looks up a block's CBSA by the block code's first 5 digits. The fix, commit e379ec752d of 30 September 2026, gives the cause: the Office of Management and Budget (OMB) 2023 delineations list Connecticut by its nine planning regions (09110 to 09190), while 2020 block codes carry its eight former counties (09001 to 09015). The assignment code writes an empty string where the table has no CBSA. A read-only check of the household table of the proof-of-concept (PoC) county file found an empty cbsa_code on all 908 Connecticut donor households. We did not read the column in the 28 July file itself.

    Later releases kept the household table

    • populace-us-2024-spm-20260915 names the 28 July dataset (48b9d479…) as its parent and records all_preexisting_variables_exact true. populace-us-2024-spm-receipts-20260923 names that release's dataset (6496cc43…) as its parent and records all_preexisting_fields_and_datasets_exact true.
    • The PoC donor patch read the spm-receipts dataset (00946972…) and rewrote only the person table. Its tool refuses a copy in which any original column of any table changed.
    • PoC staging recorded donor_geography "preserved_assigned". Its code returns that only if every donor row has a non-empty, whole-number tract, district and county; the tract maps to a 2020 Public Use Microdata Area (PUMA) in the household's state; the district and county lie in that state; and the county equals the tract's first 5 digits.
    • The county-file check found a non-empty block_geoid and tract_geoid on all 57,240 donor households.

    The name "legacy"

    In July the rule had no name or switch: it is what the base builder did when given --assign-congressional-districts and --block-ladder-artifact, as base-p2's launch script passed them. The --location-rule switch and the name legacy arrived in microcosm commit 33969fdbe6 (#696), written on 29 September and committed on 13 November 2026. Its help text says legacy "draws a congressional district from SOI return-count Ledger facts and then a block within it". PoC staging's code uses the same name for a different rule: draws within each PUMA for American Community Survey (ACS) households, with donor households keeping their stored geography. Its "preserved_assigned" record comes only from that branch.

    Sources

    • Labels used in all three sections. R = Max's local PolicyEngine folder; a run log buildX-run/<file> is R/_buildX-runtime/logs/buildX-run/<file>. Files under R, runs/ and research/ (= runs/maria-1031/research/) are on Max's machine, not in a repository. UR = packages/populace-build/src/populace/build/us_runtime (populace code is in the microcosm repo). main = microcosm 7ff5a26bc2. HF = Hugging Face dataset policyengine/populace-us, folder releases/microcosm-us-2024-national/<build ID>/. DIAG = HF calibration_diagnostics.json (sha256 870449b4…, the hash the spm-20260915 record lists for it). NPZ = HF populace_us_2024_calibration.npz (b6e9c067…). BM = the build's build_manifest.json (1990e8fd…, 228,918 bytes) as copied into populace-us-2024-spm-20260915 as parent_build_manifest.json; the HF folder's copy (228,958 bytes) names the build under /build instead of /build_id, adds /release, and is otherwise the same (compared 19 November 2026). REL = cae8640:tools/build_us_fiscal_refresh_release.py. SEL = R/_buildm-runtime/inputs/buildm_keogh_swap_selection_source.json (186f735b…), the release's selection file. RECEIPT = the PoC's donor/donor_patched_poc.receipt.json. CP = the PoC run's checkpoints/ folder, as in the run report.
    • Base loaded: DIAG /build/base_dataset_sha256; REL:7180-7181, 6221; buildo-run/chain_sparse.log:104-111.
    • Base-p2: buildo-run/chain_staged_base_p2.log:9-12; R/_buildo-runtime/scripts/buildp2_staged_base.sh:49-69 (modified 21:48:08Z, one second before the start); git diff --stat 2ae4339 cae8640 (3 files).
    • Selection: DIAG /build/selection_source (mode frozen_support, join_key, source, n_base_candidates, n_selected, n_unmapped, n_ambiguous; source/swap_rule: "13 carriers total in base-m"); BM /calibration/selection_source/source/base_h5_sha256; SEL /source and /identities, counted by role and source household; SEL's parent R/_buildi-runtime/inputs/buildi_rmloss100_selection_source.json /source (n_add 100, 18833fb6…); cae8640:UR/warm_start_selection.py:246, 343-355.
    • Bases: base-m buildm-run/chain_staged_base.log:21-26 (:27-36, the aac5012 rerun); buildj-run/chain_base.log:1-7. Summaries, compared on /congressional_district_assignment and /geography_ladder_assignment: buildm-run/staged_base.log:150-1676, 1713-3239; buildn-run/staged_base.log:18-1554; buildo-run/staged_base.log:18-1579; buildo-run/staged_base_p.log:16-1577, 1638-3204; buildj-run/base_j.log:1-333. Bases loaded by Builds M, N and O: buildm-run/chain_sparse.log:198-206; buildn-run/chain_sparse.log:41-47; buildo-run/chain_sparse.log:1-8.
    • No placement in the release: at cae8640, outside the two modules that define them, the only non-test callers of the district and block functions are tools/build_us_puf_support_base.py:1304, 1339, 2279, 2312. git grep finds no assignment in the release tool to county_fips, tract_geoid, block_geoid, congressional_district_geoid or cbsa_code.
    • District counts: HF demographics.json /geography_coverage for the 28 July release and Builds M (98bf731), N (c3e378a) and O (22bd902), written from each release file's household table (cae8640:UR/demographics.py:168-228).
    • Rule at 2ae4339: tools/build_us_puf_support_base.py:141-165 (step order), :363, 385 (seed defaults), :2263-2344; UR/asec_pool.py:286-297; UR/congressional_district_geography.py:13-15, 19-97, 100-152, 212-221; UR/congressional_district_vintage.py:211-298, 301-359, 575-578; UR/geography_ladder.py:185-190, 286-334, 700-705. git diff 2ae4339 cae8640 over the four location modules is empty.
    • Inputs: R/_buildf-runtime/inputs/us_block_ladder_2020.npz (7ba39b95…; arrays block_geoid, population, congressional_district_geoid, cbsa_code; metadata_json); congressional_district_vintage_crosswalk.csv (383a6666…) and its .provenance.json /diagnostics; consumer_facts_builde_aging_v5.jsonl (a5d34d4a…), filtered by the code's rule.
    • Connecticut: 2ae4339:UR/block_ladder_sources.py:381-382; e379ec752d commit message; county-file check runs/maria-1031/donor_ct_cbsa.json (lead session, 19 November, logged in runs/maria-1031/MANIFEST.md).
    • Later releases: source_enrichment.json of spm-20260915 and spm-receipts-20260923, /parent/dataset_sha256 and /preservation (all_preexisting_variables_exact, all_preexisting_fields_and_datasets_exact, candidate_sha256); RECEIPT /input/sha256, /rewritten_tables; 0005321705:tools/patch_us_acs_donor_columns.py:1069-1090, 1293-1339; PoC acs_multispine_staging.summary.json /geography_ladder/assignment/donor_geography; 72b7072bf:packages/microcosm-build/src/microcosm/build/us_runtime/base_pool.py:94, 485-527, 555-601, 604-665, 699-727, 832-845 and block_location.py:82; county-file check runs/maria-1031/empty_by_spine.json.
    • Name: 33969fdbe6 (author and commit dates); main:tools/build_us_puf_support_base.py:561-574; git grep for location-rule|location_rule|populace_location_rule finds nothing at cae8640 or 2ae4339.

    Not established

    • The block, tract, county and CBSA values in the 28 July file itself. We opened no national-build HDF5 (.h5) file; the only .h5 read was the PoC county file's household table (read-only). District counts come from the published release records. Tract, district and county rest on the code, the preservation records and the PoC staging checks; block and CBSA on the code and the read of the PoC county file.
    • Whether base-p2 drew the same location as base-m for each row. Base-p2 is no longer on disk or on HF. Identical summaries and identical district counts fit identical draws (inference).
    • How often an ASEC record and its tax-detail copy sit in different districts.
    • Which congressional plan the SOI district counts use, from the IRS's own documentation. The feed labels 22incd.csv tax year 2023; the build's code notes call it tax year 2022 on the 117th Congress plan (cae8640:UR/fiscal_targets.py:1481-1484; main:tools/build_us_acs_local_release.py:4802-4803). The IRS lists 22incd.csv on its Data by Congressional District 2022 page (read 19 November 2026); we did not open its documentation guide. Only within-state shares enter the draw.
    • The exact command that launched the 28 July build. Its launch script, buildp_sparse9.sh, was modified at 07:20:02Z on 28 July, after the run ended. The base hash, selection and commit come from the run log and the published records.
    • How the earlier selections behind the 57,240 records picked their households, and whether drawn locations played any part. We traced them only to populace-us-2024-sparse-l0-refit-57k-71a0887.

    Q2. How the build made the tax-detail copies

    The 28 July build took no IRS records into the file. Each tax-detail copy is a whole-household clone of a CPS ASEC household, and the build split each household's weight equally between its ASEC record and its copy. On the copies only, a chained quantile regression forest (QRF), trained on 208,611 tax units of PolicyEngine's processed IRS public-use file (PUF), drew 65 tax items given eight tax-unit predictors that each copy carries from the survey. The same step also thinned the ASEC records' taxable interest. Item 1 of the next comment sums this up as replacement text for v0.1.

    The PUF step ran in the base builder that made base-p2 (Q1), whose code is the same at 2ae4339 and cae8640. The release calls no clone, donor or QRF-chain function (a git grep of REL finds only a string at 5067) but reruns some later steps ("Later redraws on the copies"). Source labels are under Q1's "Sources" and this section's.

    The copies

    • Survey inputs. Processed CPS ASEC files census_cps_2022.h5, census_cps_2023.h5 and census_cps_2024.h5 (p2 /base_source/metadata/sources). Their person counts, 146,133, 144,265 and 142,125, equal those of Census person files pppub23, pppub24 and pppub25 (RECEIPT /steps/0/files), and the PoC donor patch matched every donor person to those files, reading the year label as the income year (RECEIPT /steps/0/vintage_rule, /steps/0/join). So the inputs are income years 2022–2024, from the March 2023–2025 ASEC.
    • Pooling. 168,852 households with 432,523 people (p2 /base_rows). Each year's weights carry one-third of 325,952,369 people, the 2024 file's weighted population: scaled by 0.3333 (2024), 0.3386 (2023) and 0.3408 (2022) (p2 /base_source/metadata/sources).
    • Cloning. Every table (people, households, tax units, Supplemental Poverty Measure (SPM) units, families, marital units) was copied once per role (PS:433-501): the ASEC record (role asec, clone index 0, original IDs) and the tax-detail copy (role puf_tax_detail, clone index 1, IDs plus 10^k). One k serves the whole frame: the digit count of the largest ID in any table (PS:1294-1322); here k = 6. In the PoC's donor household IDs, the 22,200 under 10^6 and the 35,040 at or above it form exactly 9,963 pairs (h, h + 10^6) (CP county_validation_measures.npz household_id, first 57,240 rows).
    • Size and weights. 337,704 household records and 865,046 people (p2 /expanded_rows). Every weight was split equally between the roles (PS:481-490); each carries 67,345,161.67 of household weight (p2 /channel_weight_totals).
    • Links. A copy starts as an exact copy of its ASEC record apart from its IDs. Every record carries <entity>_source_id, <entity>_support_channel and <entity>_support_clone_index (PS:1167-1202), for example county-file person columns 237-239 (schema manifest /files/0/tables/0/columns/237-239). The PoC donor patch joined all 166,321 donor person rows, in both roles, to their Census ASEC person on (source_year, PERIDNUM), with zero mismatches on eight identity columns (RECEIPT /steps/0/join).

    The PUF donor

    • Which PUF. The source manifest names release://policyengine/irs-soi-puf/1.8.0/puf_2024.h5: vintage "2024 (2015-based)", survey "IRS PUF 2015 (uprated)", grain tax unit (SS:7-10, 29-30). The build read a local puf_2024.h5 (SHA-256 7669f5b5…) and, for 2015 adjusted gross income (AGI), puf_2015.csv (0a7fd643…) (p2 /puf_sha256, /puf_source_year_csv_sha256).
    • How the 2024 file is made, in code. The manifest names policyengine-us-data commit 42ed5d45 (2 July 2026), where this file's class points at the same release address (puf.py:1655-1660). For 2024 the code loads the 2021 file and multiplies each variable that has an uprating factor by PolicyEngine's 2024 index over its 2021 index (puf.py:1378-1396). The 2021 file is the 2015 PUF uprated to 2021 (puf.py:1378-1379), with the PUF's four aggregate records replaced by disaggregated records (puf.py:1398); the populace source manifest says this used seed 42 and added a top tail of 3,900 records (SS:37-45, 272).
    • Donor table. PUF person arrays are summed to tax units, each weighted by its PUF weight (PS:540-546, 617-626). Units with $10 million or more of total interest paid (PUF field E19200) are dropped (PS:62-73, 651-664). E19200 is split into home mortgage interest and a remainder, which goes to investment interest expense, by each unit's 2015 AGI band and the shares in IRS SOI Table 2.1 for tax year 2015 (PS:669-737; BUILDER:2758-2774; puf_interest_components.py:164-176). The result is 208,611 donor tax units (p2 /puf_donor_rows).

    The draws

    • Predictors. Eight per tax unit (PS:112-121): filing status, number of people in the tax unit, wages, self-employment income, taxable interest, dividends, and short- and long-term capital gains. On a copy, each is the sum of the copy's ASEC values over its tax unit (PS:1591-1649).
    • Items. 65 (p2 /channel_output_totals lists the same 65): 56 person items, 41 at PS:123-168 (such as interest and dividends by type, pensions, Social Security by type, itemized deductions, and rental, partnership, S-corporation, estate and farm income) plus 15 qualified business income (QBI) items, eight of them true/false flags (qbi_inputs.py:76-100); and 9 tax-unit items, such as mortgage balances and interest and the health savings account deduction (PS:179-189).
    • Model. Items are drawn one at a time, each conditioned on the eight predictors and every item drawn before it (puf_qrf_chain.py:277-300; qrf.py:31-33). Before each forest is grown, donor tax units are resampled in proportion to their PUF weights (qrf.py:6-14); the fit records the weight kind as design (p2 /weights_audit). Where an item's training values take more than one sign, a classifier weighted by the same weights picks the sign and a separate forest per nonzero sign gives the amount (qrf.py:16-29). Each copy's value is read at a random quantile (qrf.py:35-38). The forests have 32 trees and seed 0 (p2 /n_estimators, /seed).
    • Scope. Only the copies' tax units get predictions (PS:896-906, called from puf_qrf_chain.py:102). No PUF record is placed into a household; the county file has no PUF record ID column, and its only provenance columns are the three link columns above (schema manifest). Inference: different items on one copy can reflect different PUF tax units, since each item is a separate draw.

    Six predictors are also drawn items

    Wages, self-employment income, taxable interest, dividends and the two capital gains are both predictors and drawn items (PS:112-121 against PS:124-131), so each copy redraws them given its own ASEC values. Copies' totals against the ASEC records' totals (SSTB: specified service trade or business):

    Item Copies against ASEC records
    Wages −0.003%
    Taxable interest −0.005%
    Short-term capital gains −0.05%
    Long-term capital gains −0.07%
    Dividends, qualified and non-qualified together −0.4%
    Self-employment income, non-SSTB column −11.4%
    Self-employment income, both columns +49.7%
    • Within dividends, qualified dividends are 70.9% higher on copies and non-qualified dividends 58.3% lower.
    • Copies also carry SSTB self-employment income, a QBI item that is zero on every ASEC record. After the draws, a QBI step moves each copy person's whole self-employment income into one of the two columns, by the drawn SSTB flag (qbi_inputs.py:192-229). Summed over both columns, the copies' self-employment income is 49.7% above the ASEC records'.
    • These are unweighted totals over the whole 337,704-record pool at the end of the base build (p2 /channel_output_totals; BUILDER:2465 and 2806-2832), not measured on the 57,240 selected records or record by record.

    How the build finished the draws

    The finalization step (PS:918-1143):

    • clipped non-Schedule-D capital gains at the donor's weighted 99.9th percentile of positive values, $211,500.85, hitting 18 copy tax units (p2 /puf_tax_detail_tail_bounds; PS:976-1037);
    • clipped items that cannot be negative at zero, and snapped sparse, true/false and discrete items to values the donor holds (PS:1039-1061);
    • split each tax unit's drawn Social Security total across the four types (retirement, disability, survivors, dependents) by the copy's ASEC shares, or equally when the ASEC unit had none (PS:1065-1071, 2119-2191);
    • split each person-level dollar draw among the tax unit's people (PS:1088-1112, 1779-1826): by each person's own value of the item on the copy, which is their ASEC value; else by the item's fallback basis, if any (PS:332-400), for example earnings for casualty losses and individual retirement account (IRA) contributions, or full-time college status for tuition; else all to the unit's first person. The 31 person items that are zero on every ASEC record always take one of the last two routes. Items with no fallback basis include charitable gifts, real estate taxes, home mortgage interest, state and local tax refunds, student-loan interest, and partnership, S-corporation, estate and farm income;
    • placed each true/false QBI flag as a predicted count of people in the tax unit, ranked by the item's fallback basis (PS:1714-1776);
    • thinned sparse items to the donor's weighted share of tax units with a positive amount: where a role's share was higher, it kept the largest amounts up to the donor's share, zeroed the rest and rescaled the kept amounts to hold the role's weighted total (PS:1076-1086, 1113-1125, 1840-1990);
    • on copies only, rescaled the positive and negative amounts of farm operations income and partnership self-employment earnings separately, each to match the donor's per unit of weight (PS:233-253, 2015-2116).

    A QBI step then set the six general QBI qualification flags to true, and the two SSTB flags to false, on every ASEC record (BUILDER:148; qbi_inputs.py:182-190).

    The PUF step also changed the ASEC records' taxable interest

    • The thinning loop runs on both roles; only alimony received is exempt (PS:1941-1949; the comment at PS:227-230 calls it "the ordinary all-channel sparsification loop"). Taxable interest is in the sparse set (PS:206) and carries survey values on ASEC records, so the build thinned it there too.
    • Commit 4becfa6 (14 October 2026; cae8640 is its ancestor) limits thinning to copies. Its message says the old code "zeroed taxable interest for every ASEC tax unit reporting under $444 and scaled the rest by 1.0069373"; its changelog fragment puts this at "21.6M weighted tax units in populace-us-2024-spm-20260915", a release that keeps every 28 July variable exactly (Q1, "Later releases kept the household table"; its parent, 48b9d479…, is the 28 July file's hash in BM /dataset/sha256).
    • Two descriptions in the code say only copies are thinned: the source manifest's note (SS:272, "sparsifies only the PUF support channel") and the docstring of the module's one-step PUF function (PS:755), whose finalization code the staged build shares. The code that ran thins both roles.

    Later redraws on the copies

    • In the base build. After the PUF step, forests trained on the ASEC records redrew survey-only items on the copies, given the copies' new incomes (order: BUILDER:141-165). Each has 100 trees and at most 5,000 ASEC training records (SS: each stage's max_train_samples and n_estimators). All but the weeks-unemployed forest use eight predictors: age, sex, employer-sponsored insurance, joint filing, number of dependents, wages, self-employment income and Social Security (for example child_support.py:95-104); on a copy, wages come from the PUF-drawn column (child_support.py:467-472). The redrawn items:
      • child support received and paid; disability benefits; workers' compensation; weeks unemployed; childcare costs; energy subsidy;
      • all five retirement contribution amounts, including the two the PUF step drew, traditional IRA and self-employed pension contributions (retirement_contributions.py:59-65, 313-343);
      • 401(k), 403(b), Keogh and simplified employee pension (SEP) distributions; the PUF draw of taxable IRA distributions stays, and Roth IRA distributions keep their ASEC value (retirement_distributions.py:1-22);
      • prior-year wages and self-employment income; the housing-assistance flag (housing_inputs.py:974-987).
    • Two related steps. Qualified tuition is a PUF item, and the five American Opportunity Tax Credit flags are set to tuition > 0 (education_inputs.py:59-65, 154-168). Adult care costs go to eligible tax units in both roles by one seeded random draw, so a copy and its ASEC record can differ (adult_care.py:396-417).
    • In the release (inference from code order). The release reran weeks unemployed on the full pool before selection (REL:7384). After selecting the 57,240 household records and rescaling Social Security (REL:7444, 7479-7485), it reran the QBI step (REL:7534), childcare (REL:7705), energy subsidy (REL:7728) and retirement contributions (REL:7807) on them. A release-only stage replaces other health-insurance premiums on copies only (REL:8711; other_health_insurance.py:1-16).
      • The retirement-contributions stage returns early only when the frame already holds contribution values and has no role column (retirement_contributions.py:512-517). The childcare stage reruns when the person table carries SPM_CHILDCAREXPNS (childcare.py:74-77, 471-476), as the county file does (schema manifest person column 111; it also carries SPM_ENGVAL, column 114).
      • So the copies' final values for these items are most likely release-time redraws, trained on the ASEC records among the 57,240 selected household records.
      • Commit 9264600 measured this on a different build pair: there, the release reruns changed these items on copies and on no ASEC record (docs/evidence/us-release-reimputation-1191/README.md).

    Release rescaling of PUF items

    Before calibration, the release rescaled five input columns so that each matches one of the 5,659 targets (Q3) at the starting weights. These change input values, not weights (DIAG /build/support_value_repairs and those targets' initial_estimate; REL:7479-7485, 5027-5036):

    • the four Social Security types on every record, to the Social Security Administration (SSA) 2024 payment targets: by 1.126 (retirement), 1.711 (survivors), 1.063 (disability) and 0.611 (dependents);
    • non-Schedule-D capital gains, by 0.146, to the SOI Publication 1304 Table 1.4 capital gain distributions total for tax year 2023, aged to 2024: $10.16 billion. That item is zero on ASEC records, so this rescale falls on copies only (p2 /channel_output_totals/asec).

    Which columns hold PUF draws

    • On copies only: 40 items, 31 person and 9 tax-unit. They are zero on every ASEC record (p2 /channel_output_totals/asec). In the county file's schema manifest they are person columns 240-261 and 268-276 (/files/0/tables/0/columns/N) and tax-unit columns 5-13 (/files/0/tables/2/columns/N).
    • In both roles: 25 person items (person columns 176-187, 189-193, 227, 229 and 262-267):
      • 19 amounts: wages; self-employment income; taxable interest; qualified and non-qualified dividends; short- and long-term capital gains; four Social Security types; taxable pensions; taxable IRA distributions; alimony received; miscellaneous, rental and farm operations income; and traditional IRA and self-employed pension contributions;
      • six QBI qualification flags, true on every ASEC record (432,523, the number of ASEC people in the pool; p2 /channel_output_totals/asec).
    • On ASEC records, these 25 columns do not all hold the values the CPS ASEC recorded: taxable interest was thinned, the Social Security types were rescaled at release, and the QBI step set the six flags to true (all above).

    Counts in the 28 July file

    The release kept 57,240 of the pool's 337,704 household records, by stable identity (SEL; BM /calibration/selection_source).

    Household records Person records
    ASEC records 22,200 66,001
    Tax-detail copies 35,040 100,320
    All donor records 57,240 166,321
    • The 57,240 records come from 47,277 source households (SEL; CP gate_summary.json /gates/weight_origin/detail/design/distinct_households = 1,576,945 = 1,529,668 ACS households + 47,277).
    • 9,963 households appear in both roles, with 30,488 people on each side; 12,237 only as ASEC records, with 35,513 people; 25,077 only as copies, with 69,832 people. (Households: SEL. People: computed from the 51 state population rows of CP target_matrix.npz, labelled by CP household IDs; RECEIPT /steps/0/clones gives the same 30,488 people with two rows.)
    • By ASEC income year, the household records number 18,489 for 2022, 18,998 for 2023 and 19,753 for 2024 (SEL); the person records 54,464, 54,654 and 57,203 (RECEIPT /steps/0/join/by_income_year).

    Weights of a household's two records

    • At cloning: exactly 50/50 (PS:481-490; p2 /channel_weight_totals).
    • After selection, before calibration: the release scaled every weight by 5.330351 (Q3, "Weight limits and starting weights"). All 9,963 pairs still had equal weights (NPZ initial_household_weight), and copies held 61.5% of the donor weight.
    • After calibration: the release weighted each record on its own (Q3). From NPZ household_weight: 496 of the 9,963 pairs keep equal weights; the copy's share of a pair's weight has a median of 0.50 and an interquartile range of 0.29 to 0.79; the copy holds under 1% of the pair's weight in 1,369 pairs and over 99% in 1,509; copies hold 58.0% of the donor weight (71,096,453 of 122,537,092); and 15,452 of the 22,200 ASEC records and 25,148 of the 35,040 copies end with a weight below 1.
    • The PoC's design weight for each donor household is exactly half its 28 July weight, element by element (Q3, "How these weights carry into the PoC"). Inference: the PoC's first 57,240 rows follow the NPZ's order; we used that order to label NPZ rows by household ID.

    Sources

    • PS = cae8640:UR/puf_support.py. The other modules named above are cae8640:UR/<name>, except qrf.py, which is packages/populace-fit/src/populace/fit/qrf.py.
    • BUILDER = cae8640:tools/build_us_puf_support_base.py. SS = cae8640:packages/populace-build/src/populace/build/us/source_stages.json. puf.py = policyengine-us-data at 42ed5d45, policyengine_us_data/datasets/puf/puf.py.
    • p2 = base-p2's run summary, buildo-run/staged_base_p.log lines 1638-3204 (/output_sha256 = fca79b42…).
    • Commits 4becfa6 (message and changelog.d/fix-asec-taxable-interest-pruning.fixed.md) and 9264600 (docs/evidence/us-release-reimputation-1191/README.md).
    • Shared labels as in Q1; CP files weights_latest.npz, county_validation_measures.npz, target_matrix.npz, target_registry.json and gate_summary.json; the county file's schema_manifest.json (e3f1df1d…); populace-us-2024-spm-20260915 source_enrichment.json /preservation; GitHub release PolicyEngine/irs-soi-puf 1.8.0, asset puf_2024.h5.

    Not established

    • Whether the local puf_2024.h5 the build read (7669f5b5…) is the published irs-soi-puf 1.8.0 file. The published asset has no digest and was uploaded on 30 September 2024 (GitHub release 1.8.0), and the local file is gone. Inference: the manifest says the QBI step was "materialized at archived commit 42ed5d45", which dates from 2 July 2026, so the build probably read a file regenerated locally.
    • How policyengine-us-data built the 2021 PUF beyond puf.py:1378-1398: the 2015-to-2021 uprating factors, how it made PUF people, and its QBI step.
    • The $444 cut-off and the 1.0069373 factor for ASEC taxable interest. They come from the later commit's message and changelog, not from our own count (no .h5 opened).
    • Record values for the later redraws in the base build and the release. The release reruns rest on code order and on the columns the file carries. One run-file figure is consistent with the base build's overwrite of the two PUF-drawn contribution items: the base summary records nonzero shares of 0.178042 for traditional IRA and 0.178039 for Roth IRA contributions (p2 /retirement_contributions_signal/details/nonzero_shares).
    • How close each copy's wages, interest, dividends and gains are to its own ASEC values. We have pool totals only.
    • How the original 57,000-household selection chose records, and so why copies outnumber ASEC records 35,040 to 22,200. We traced it only through its last two swaps, which added 100 and then 9 households (also Q1).

    Q3. Which targets the household weights fit

    Answer. The 28 July national build ("Build P" in the code's comments, populace commit cae8640) fitted the weights of its 57,240 household records, which hold 47,277 distinct source households (Q2, "Counts in the 28 July file"), to 5,659 targets for 2024. All are national or state targets; none is for a congressional district, a county or any smaller area. The solve held out no target, capped each target's scaled miss at 100%, and kept every weight positive and at most 5 times its starting weight, with the total fixed at 122,537,092. Item 6 of the next comment sums this up as a new paragraph for v0.1. Source labels are under Q1's "Sources" and this section's.

    Targets by source

    Counts come from DIAG /targets (5,659 rows: the first field of source, metadata/ledger_geography_level, metadata/ledger_fact_period). "Within 10%" counts targets whose recorded relative_error is at most 0.10 in absolute value at the final weights; for the 27 zero targets, relative_error is the estimate itself ("The loss").

    Source Source period (targets) National State Total Within 10%
    IRS SOI Historic Table 2, tax year (TY) 2022 (3,854); Publication 1304 tables, TY2023 (290); two US-total rows of the Historic Table 2 state file 22in54us.xlsx, which the feed tags TY2023 (2); filing-season earned income tax credit (EITC) statistics, TY2024 (34); Form W-2 Social Security tips, TY2020 (2) 393 3,789 4,182 4,012
    Census Population Estimates Program (PEP), Vintage 2024: population in 18 age groups 2024 18 918 936 935
    Centers for Medicare & Medicaid Services (CMS): Medicaid and Children's Health Insurance Program (CHIP) enrollment; Affordable Care Act (ACA) 2024 open enrollment; Medicare Part B premium income December 2024 (134); Rhode Island, November 2024 (1); 2024 (103) 4 234 238 226
    SSA: Social Security benefits; Supplemental Security Income (SSI) payments and recipients 2024 (108); December 2024 (3) 9 102 111 95
    US Department of Agriculture (USDA): Supplemental Nutrition Assistance Program (SNAP) households and benefits Fiscal year (FY) 2024 2 102 104 100
    Census state individual income tax collections FY2023 0 44 44 20
    Department of Health and Human Services, Administration for Children and Families (HHS ACF): Temporary Assistance for Needy Families (TANF) basic-assistance spending; Low Income Home Energy Assistance Program (LIHEAP) households FY2024 2 22 24 19
    Joint Committee on Taxation (JCT): tax expenditures (JCX-48-24) 2024 11 0 11 2
    Congressional Budget Office (CBO): revenue projections by income source, February 2026 baseline TY2024 5 0 5 4
    Bureau of Economic Analysis (BEA) national accounts: proprietors' income; wages and salaries 2023 (1); 2024 (1) 2 0 2 0
    Federal Reserve Financial Accounts (Z.1): net worth of households and nonprofits 2023 1 0 1 1
    Release tool: Keogh distributions on the 57,240 selected household records none 1 0 1 1
    Total 448 5,211 5,659 5,415

    By source period, 3,854 targets come from 2022 (all SOI Historic Table 2), 338 from 2023, 1,464 from 2024 (137 of them December 2024 and 1 November 2024) and 2 from 2020. Every feed target enters the fit as a 2024 target (DIAG /targets/*/period = 2024 for 5,658 targets; the Keogh target has period 0). DIAG tags 447 targets "country" and 5,211 "state" in 51 distinct states; the Keogh target has no level tag, and the 448 national targets count it (REL:1585 calls these "Synthetic national targets").

    How the build changed feed values: rebasing and aging

    Joined to the feed on ledger_aggregate_fact_key, every one of the 5,657 keyed targets equals its feed value × aging_factor × uprating_factor, with no exception (DIAG /targets/*/metadata; computed). The build changed 2,759 values in two steps. We did not compare feed values with the source publications.

    Rebasing. Before aging, the compiler moves three groups of SOI distribution targets onto a later SOI total (FT:966-977):

    • TY2022 Historic Table 2 taxable interest, by AGI band and in total (10 national, 492 state): 502 return counts × 1.0952 and 502 amounts × 2.3521, onto the TY2023 Table 4.3 totals.
    • TY2022 state net capital gains: 51 return counts × 0.4068 and 51 amounts × 0.7719, onto the TY2023 Table 1.4 totals.
    • National TY2023 Publication 1304 Table 2.5 EITC cells, by AGI band and number of children: 116 return counts and 116 amounts, each onto the matching TY2024 filing-season week 47 total (for 8 cells of each kind, a sum of several week-47 bands). Factors run from 0.49 to 1.38 for returns and from 0.52 to 1.73 for amounts. Seven cells of each kind are zero and stay zero.

    So 662 count targets and 662 dollar targets differ from their feed values after rebasing (DIAG metadata/uprating_index, uprating_factor, uprating_index_source_record_id, uprating_index_source_record_ids).

    Aging. The build ages 1,988 dollar targets to 2024 (DIAG metadata/basis "projection", alignment_model_id "cbo_growth_factor_aging"; factors 1.056 to 1.315):

    • 1,401 use a chained factor: SOI national growth from the source tax year to TY2023, times CBO projected growth from 2023 to 2024 (cae8640:UR/target_aging.py:475-494). Table 1.1 AGI sets the SOI growth for 1,348 of them and Table 1.4 wages for 53. They are 1,400 Historic Table 2 TY2022 amounts and the TY2020 W-2 tips amount.
    • 587 use CBO growth alone: the 553 Historic Table 2 amounts already rebased to TY2023 totals, 32 Publication 1304 TY2023 amounts, and BEA proprietors' income and Federal Reserve net worth for 2023.

    No count target is aged. The release tool's help text says "counts stay raw" (REL:1286-1302); that describes aging only, and the rebasing above still changes 662 counts.

    The split.

    • Count targets (3,343): 662 rebased; 2,681 used at their feed value. The 2,681 include 14 zero cells and Rhode Island's November Medicaid figure, which comes from the code's substitution register, not the feed.
    • Dollar targets (2,316): 1,988 aged, 553 of them first rebased; 109 rebased only (the nonzero Table 2.5 amounts, which the rebase already puts at TY2024); 219 unchanged. The 219 are 211 feed values (6 of them zero), the 7 zero Table 2.5 amounts and the Keogh target. The 211 are 2024 figures except the 44 state tax collection targets for FY2023, which carry an aging factor of 1 (DIAG metadata/basis "fact").

    What the run compiled from, and the exclusion list

    • Feed. consumer_facts_buildn_v9_4.jsonl: 37,405 rows, sha256 b3c0835631a446eb96aa84d86f3ee962d15ca356174c7114db52974f1cacc080 (BM /ledger_artifact; buildo-run/chain_sparse.log:107). It holds 23,968 congressional district rows, 11,191 state rows, 2,246 national rows and no county rows (computed from /geography/level).
    • Compiler. compile_us_fiscal_target_registry (FT:901-1000) turns feed rows into targets. It drops rows on the code's 46 standing exclusions (FT:554-787) and on the run's own list. It adds the JCT tax-expenditure references declared in the code (11 targets in DIAG), uprates the EITC splits, applies the two SOI rebases and the packaged target profile, and ages dollar amounts. Its step that derives CHIP enrollment targets (FT:967, :1036) added no target in this run, because all 32 CHIP targets in DIAG are feed rows.
    • After the compiler. The compiled targets include no Rhode Island December 2024 Medicaid enrollment target; the feed's December value is 0. The release tool adds Rhode Island's November 2024 figure (273,400) from the code's substitution register (REL:7293-7295; cae8640:UR/medicaid_take_up.py:608-619). The register's reason: CMS reports December as 0 with a footnote that the state could not provide the data (BM /calibration/medicaid_enrollment_substitutions). The tool then adds the Keogh target (REL:8882-8895).
    • The Keogh target. Its value, $794,067,666, is the weighted sum of keogh_distributions over the persons of the 57,240 selected household records, at the rescaled starting weights; thirteen persons carry a nonzero value (REL:1581-1650, called at :8892 after the selection at :7444 and the rescale at :7479; DIAG /targets row selection_mass_protection.keogh_distributions, metadata/base_pool_carriers "13", protected_entity "person"). It equals its own starting estimate; divided by the full rescale factor (5.330351114), it is $148,970,987. The code's docstring puts the ASEC source's Keogh mass at $148.97 million and says that with this target "the solve must preserve the mass the swap put in-selection" (REL:1590-1593). Its final estimate is $793,244,812.
    • The exclusion list was overwritten after the run; we reconstructed it. The run read R/_buildo-runtime/inputs/sparse_zero_support_exclusions_buildp.json, rewritten at 2026-07-28T07:20:01Z (stat, UTC), after the run exited at 03:57:02Z (chain_sparse.log:110); it now holds 37 entries. Neither DIAG nor the release manifests record the list. Recompiling at cae8640 with the 37 entries plus Vermont's two under-$1 taxable-interest targets (39 in all), then applying the Rhode Island substitution, gives exactly the run's 5,658 feed-based targets, with equal names and values (5,657 from the compiler, then the substitute). Adding the Keogh target reproduces the manifest's target registry version, 8f7933975519 (BM /calibration/target_registry/version; NPZ registry_version; research/evidence-T5/compile_check.py and version_check.py, rerun for this note on a git archive of cae8640). Populace commit 574afe4961 (06:56:54Z, not an ancestor of cae8640) adds that Vermont pair to the standing list; its message says "the Build P sparse register's VT pair hands off to this standing entry". The 39-entry list is a reconstruction (inference, backed by the exact match).
    • Digests of what the weights fit. BM /calibration/target_surface/sha256 = 49bb0fe3dfd4c399… (5,659 targets). DIAG /target_surface adds names_sha256 e2c7d650…, values_sha256 7854fb81… and a constraint matrix of 5,659 × 57,240 with 3,685,889 nonzero entries.

    No district or county targets

    • The feed's 23,968 district rows all come from the SOI record set irs_soi.ty2023.congressional_district_2022.all_returns, which the feed tags TY2023. The compiler makes no target from them unless the run passes --include-congressional-district-targets (FT:2346-2356; REL:1229-1236, off by default). The run log reads "CD surface OFF" (chain_sparse.log:109).
    • BM /gates/target_compilation/gate_congressional_district_targets = false records a different switch: whether district targets act as hard release gates (REL:1250-1259). It is not evidence on its own.

    The loss

    • Each target's scaled miss is |estimate − target| ÷ max(|target|, 1), capped at 1.0 (100%). The loss is the loss-weighted average of the capped misses (DIAG /options/target_loss_scales: formula and cap 1.0; REL:284; SOLVE:463, :549). 27 targets are zero: the 14 zero Table 2.5 cells, 12 filing-season EITC cells for AGI of $75,000 or more, and Rhode Island's December 2024 CHIP enrollment. For them the miss is the estimate itself. Every other target is 985 or more, so its scaled miss is its relative miss.
    • A target's loss weight starts at the square root of max(|target|, 1), divided by the average over targets of its kind (REL:5679-5696). Indicator sums, enrollments, recipient counts and return counts are counts; every other target is a dollar amount (REL:5698-5711). Counts (3,343) and dollar amounts (2,316) each carry half the total weight, and the weights average 1 (REL:5282-5300). A "concept budget" step (REL:5635) leaves each target its own budget here: for any target not at district level, the budget key includes the target's name (REL:5651-5660), and the 5,659 names are distinct. The weighting is named sqrt_value_concept_budget_weighted_mape_50_50_amount_count_target_scale_cap_100pct (DIAG /build/target_loss_weighting). No family multiplier applies (DIAG /build/target_loss_family_multipliers = null).
    • The recorded loss weights sum to 5,659, with a minimum of 0.0000104 and a maximum of 135.46 (DIAG /options/target_loss_weights). We recomputed these weights and the final loss (0.017683916) from DIAG compiled_target and final_estimate; they match the recorded values.
    • No holdout. All 5,659 targets enter the loss (DIAG /options/target_loss_weights/n = 5,659; /skipped = []). The release compiled every target it declared and dropped none (DIAG /build/target_compilation: declared_targets 5,659, dropped_target_names empty); BM /gates/target_compilation/dropped_target_names and /diagnostic_only_dropped_target_names are empty too. The HF folder on main holds eight files and no reform_validation.json, the out-of-sample reform check the release tool skips under --skip-reform-validation (REL:1206-1209; folder listed through the Hugging Face API on 19 November 2026).

    Weight limits and starting weights

    • Steps. 6,000 Adam steps at learning rate 0.02, seed 0 (DIAG /options).
    • Positive weights. The solver works on log weights, so every weight stays positive (SOLVE:740, :777).
    • Upper limit. No weight may exceed 5 times its starting weight (DIAG /options/max_weight_ratio = 5.0; SOLVE:749-753). The solver enforces this after every step and on the returned weights (SOLVE:822, :835, :849).
    • Fixed total. The "conserve" mass setting rescales the weights to the starting total after every step and once at the end (SOLVE:823-835, :861). The NPZ's starting and final weights both sum to 122,537,091.89.
    • No lower limit or penalty. The L0, L1 and L2 penalties are 0 (DIAG /l0_lambda, /options/l1_lambda, /options/l2_lambda).
    • Fixed records. The solve keeps all 57,240 household records (BM /dataset/default: dense_no_l0, 57,240 candidate and 57,240 exported). 9,144 weights end at or below the solver's "nonzero" threshold (0.00214, one millionth of the mean starting weight; SOLVE:98, :739) and stay in the file; DIAG /n_nonzero = 48,096.
    • Starting weights. These are the 57,240 records' household weights in base-p2, the base the run loaded (Q1), times 5.330351. The selection (REL:7444) runs before the rescale (REL:7479). The rescale lifts the records' weighted count of people from 62,697,558 to 334,200,000, and their household weight total from 22,988,559 to 122,537,091.89 (BM /gates/base_population_scale/details/mass_repair). Before the solve, the release also rescaled five input columns to match targets at these weights (Q2, "Release rescaling of PUF items").

    The recorded fit

    • BM /gates/calibration: passed; initial loss 0.34787628; final loss 0.01768392; share of targets within 10% 0.9568828 (5,415 of 5,659).
    • DIAG /past_cap_census: 746 targets at or past the 100% cap at the starting weights and 37 at the final weights. 718 were past it at the start and below it at the end; 28 were past it at both; 9 were below it at the start and past it at the end.
    • Computed from DIAG /targets/*/relative_error: 4,935 targets within 1%, 5,300 within 5%, 5,415 within 10%, 5,535 within 25% and 5,622 within 100%. The median miss is 0.07%.
    • DIAG /build/release_gates/passed = true; /realized_max_weight_ratio = 4.9919; /top_1pct_weight_share = 0.1127.

    How the final weights are spread

    Computed from the NPZ's household_weight and initial_household_weight:

    Final weight ÷ starting weight Household records Share of total weight
    under 0.001 41,302 0.003%
    0.001 to 0.1 2,240 0.04%
    0.1 to 0.5 406 0.16%
    0.5 to 2 977 2.05%
    2 to 4.99 6,176 44.66%
    4.99 to 5 6,139 53.09%
    • 3,502 records carry half the total weight, 8,848 carry 90% and 12,329 carry 99%.
    • The effective sample size (ESS) over the 57,240 records, (sum of weights)² ÷ (sum of squared weights), with each record counted on its own, falls from 42,355 at the starting weights to 9,174 at the final weights (DIAG /effective_sample_size = 9,174.43).

    How these weights carry into the PoC

    • The two later releases inherit the weights: each build_manifest.json records /calibration/mode "inherited" and /calibration/diagnostics_sha256 870449b4…. The PoC's donor patch rewrote only the person table (Q1, "Later releases kept the household table").
    • Staging scales the donor group from the donor file's total, 122,537,091.89, to 61,268,545.94, by exactly 0.5 (staging summary /base/household_weight_total and /spine_totals/asec_puf/household_weight_total; v0.1 lines 274 and 282). The first 57,240 initial_weights in CP weights_latest.npz are the donor design weights: they sum to that 61,268,545.94, and their ESS over records, 9,174.43, equals CP gate_summary.json /gates/weight_origin/detail/design/effective_sample_size_rows_by_spine/asec_puf and the 28 July build's final ESS. Doubled, they equal the NPZ's 57,240 final weights element by element, in stored order (57,240 exact matches).
    • 41,430 of the 57,240 donor design weights are below 1; the median is 0.0121.
    • Donors hold 50% of the PoC's design weight and 77.2% of its final weight (0.771986), with an ESS over donor records of 4,726 at the final weights (CP gate_summary.json /gates/weight_origin/detail/design and /calibrated, weight_share_by_spine/asec_puf and effective_sample_size_rows_by_spine/asec_puf).
    • The PoC's cap of 5 times the design weight lets a donor weight reach at most 2.5 times its weight in the 28 July build (v0.1 line 282).
    • The PoC's forests resample donors by these donor-file weights: all 69 staging fits record them (staging summary /weights_audit; next comment, item 3).

    Sources

    • Shared labels as in Q1. FT = cae8640:UR/fiscal_targets.py. SOLVE = cae8640:packages/populace-calibrate/src/populace/calibrate/solve.py. NPZ read with numpy, allow_pickle=False.
    • Feed consumer_facts_buildn_v9_4.jsonl (b3c08356…, 37,405 rows): aggregate_fact_key, value, geography/level, source/raw_r2_key.
    • The staging summary is the PoC's acs_multispine_staging.summary.json.
    • Research files: research/T5-national-targets.md and its verification T5-national-targets-verify.md, with scripts in research/evidence-T5/.

    Not established

    • The exact exclusion list the run read. The file was overwritten after the run, and no run output records it. The 39-entry list is a reconstruction that reproduces the run's targets exactly.
    • Whether the feed's values match the source publications (SOI, PEP, CMS and the rest). We took values from the feed and DIAG and did not compare them with the published tables.
    • The tax year of the two SOI US-total rows the feed tags TY2023: they come from 22in54us.xlsx, whose raw-store path in the feed reads soi-state-2022 (feed /source/raw_r2_key).
    • Why the compiler made no target from the feed's Rhode Island December 2024 Medicaid row (value 0). We confirmed only that the compiled targets have none.
    • Record-by-record pairing of the published .h5 household_weight with the NPZ's weights: we opened no .h5, so its record order was not checked (the NPZ match and preservation records are above).
    • The launch command as run (Q1). The flags above rest on DIAG /options, BM /dataset/default, the DIAG geography tags, the Keogh target and the release file list.
    • What "rmloss100" in the build name stands for. In the manifest it labels the parent selection (buildi_rmloss100_selection_source); a reading as "relative-miss loss capped at 100%" is an inference.

    Suggested text for the methods doc

    The next comment checks the donor passages of your v0.1 (c82fa5ce6e) line by line and gives replacement text built from these facts, including a new paragraph on the donor file's weights.

  15. MaxGhenis commented on Nov 19, 2026

    @MaxGhenis
    Contributor

    Written by Claude Code, Max's agent for the county work, not by Max. Facts only.

    Methods doc v0.1: the donor passages checked against the national build's records

    Your commit c82fa5ce6e says Max's agents are checking the methods doc's account of the donor households against the 28 July build's logs. This is that check. It covers every sentence of lwi-poc-methods.md v0.1 about the donor households' geography, tax-detail records and weights. We checked each sentence against the national build's code, run logs and published files, and against this PoC's run files. Each item below quotes your line, says what the records show, and gives replacement text in the document's style. The other sentences in scope checked out, among them line 51, line 97 and the table rows we traced. The previous comment answers your three questions in full. One fact from it matters for line 101: the 28 July build drew no locations. It kept the 57,240 records it chose from a candidate file built the day before, with the locations that file already held.

    1. Line 52, the tax-detail bullet

    In PolicyEngine's national build code at that build's commit (cae8640), each CPS ASEC household appears as two records that share its weight equally. One keeps the household as the CPS ASEC recorded it. The other, a tax-detail record, takes its tax items from the PUF: … The code then spreads each tax unit's amounts over its members in their CPS shares.

    What the records show:

    • The two records start with equal halves of the weight. The national build's calibration then weighted each one separately, so of the 9,963 households that the donor file holds as both records, only 496 have equal weights.
    • The ASEC record does not stay exactly as the survey recorded it. The step that drew the tax items also pruned taxable interest on ASEC records. PolicyEngine's later fix commit 4becfa660c says this zeroed it for tax units under $444 and scaled the rest by 1.0069; we did not recompute those figures. The national build later rescaled Social Security by type on every record to Social Security Administration totals. The ASEC record also carries values the build drew for every record: its location, its rent before subsidies and its adult-care spending.
    • The incomes the PUF forests condition on are themselves among the 65 drawn items. Summed without weights over the 168,852 tax-detail records in the candidate pool, wages, taxable interest and capital gains come within 0.1% of the CPS ASEC amounts and dividends within 0.4%. Self-employment income is 11% lower in the column the ASEC records use and 49.7% higher across both columns: on the copies, a later step puts each person's whole self-employment income in one of two columns, by a drawn flag for specified service businesses, and the second column is zero on every ASEC record.
    • The CPS-share split applies only where the tax unit's members hold the item in their survey records. Otherwise the code splits by a related amount where it names one. Where it names none, as for mortgage interest, charitable gifts, real estate taxes and partnership income, it gives the whole draw to the unit's first person. Social Security goes by the unit's survey shares by type, or in four equal parts where the unit has none.
    • The national build later cut capital gain distributions reported without Schedule D to 15% of the drawn total, to match an IRS Statistics of Income (SOI) total. That item is zero on every ASEC record.
    • After the PUF draws, forests trained on ASEC records redraw several survey items on each tax-detail record, health insurance premiums among them.

    Replacement for the whole bullet (long; split it if you prefer):

    • In PolicyEngine's national build code at that build's commit (cae8640), each CPS ASEC household appears as two records, which start with equal halves of its weight. One, the ASEC record, keeps the household's survey answers, along with values the build derives or draws for every record, such as its location, its rent before subsidies and its adult-care spending. Two of the build's steps changed amounts on it. The step that drew the tax items also pruned taxable interest: by PolicyEngine's own later count, it set taxable interest to zero for every ASEC tax unit with less than $444 and raised the rest by 0.7%, which kept the total. The national build later rescaled Social Security by type on every record to Social Security Administration totals. The other, a tax-detail record, starts as a copy of the ASEC record. Quantile regression forests, trained with the PUF's weights on 208,611 PUF tax units, then redraw 65 tax items for each of the copy's tax units, one at a time, given the unit's filing status, its number of people, its CPS ASEC incomes (wages, self-employment income, taxable interest, dividends, and short- and long-term capital gains) and the items already drawn. Those incomes are among the 65 items. Summed over all tax-detail records in the pool without weights, the redrawn wages, taxable interest and capital gains come within 0.1% of the CPS ASEC amounts and dividends within 0.4%. Self-employment income totals 11% less in the column the ASEC records use and 49.7% more across both columns: on the copies, a later step puts each person's whole self-employment income in one of two columns, by a drawn flag for specified service businesses, and the second column is zero on every ASEC record. Where the tax unit's members hold an amount for an item in their CPS ASEC records, the code spreads the unit's draw over them in those shares. Otherwise it spreads the draw by a related amount, such as earnings, where the code names one, and gives the whole draw to the unit's first person where it names none, as for mortgage interest, charitable gifts, real estate taxes and partnership income. For Social Security, the code splits the drawn total by type in the shares of the unit's CPS ASEC Social Security, or in four equal parts (retirement, disability, survivors and dependents) where the unit has none in the CPS ASEC. The national build later cut one tax item, capital gain distributions reported without Schedule D, to 15% of its drawn total to match an IRS Statistics of Income total. Forests trained on the ASEC records then redraw several survey items on each tax-detail record: child support, disability benefits, workers' compensation, weeks unemployed, childcare costs, energy subsidies, retirement contributions, four kinds of retirement-account distributions, last year's earnings, housing assistance receipt and take-up and, at the end of the national build, health insurance premiums. Except for weeks unemployed, these forests read the record's age, sex, employer coverage, filing status and dependents, and the wages, self-employment income and Social Security the PUF forests drew for it. The tax-detail record keeps its other survey items as copied. Because the national build then chose among these records, a donor household can appear in the donor file as one of its two records or as both (see "What donor records carry"). The national build's calibration then set each record's weight on its own: of the 9,963 households that the donor file holds as both records, 496 have equal weights there (see "The donor file's weights" under "Design weights and the solver").

    Sources: cae8640 puf_support.py (cloning and weight split :481-490; predictors and outputs :112-189; sparsifier :1906-1990 with taxable interest at :206; spreading :332-399, :1779-1826; Social Security :2119-2190), qbi_inputs.py:76-100; the base file's run summary (/channel_output_totals, /puf_donor_rows 208,611, 32 trees, seed 0); commit 4becfa660c and its changelog; the 28 July calibration_diagnostics.json /build/support_value_repairs (Social Security factors; non_sch_d_capital_gains factor 0.14628); the national calibration NPZ (b6e9c067) initial and final weights; the PoC's weights_latest.npz and county_validation_measures.npz. The release-time redraws come from the code path and the run's clean exit; we did not compare record values.

    2. Line 101, the donors' geography

    In PolicyEngine's national build code at that build's commit (cae8640), each household gets its geography from two draws.

    The draws ran on 27 July 2026, when the base builder made the 337,704 candidate records at commit 2ae4339. The location code is identical at cae8640, which drew nothing. Each record draws on its own, so a household's ASEC record and its tax-detail copy can land in different places. In the county file, 8,731 of the 9,963 households held as both records have their two records in different counties. That count is computed from county_reliability.csv: its supporting rows sum to 1,405,648 and its distinct source households to 1,404,416. We did not measure districts.

    PolicyEngine's national build code drew these locations when it built its 337,704 candidate records, on 27 July 2026 at commit 2ae4339; the location code is the same at cae8640, and the 28 July build kept the locations of the 57,240 records it chose. The code gives each record, not each household, its own two draws, so a household's ASEC record and its tax-detail copy can land in different districts, counties and tracts of their state. In the county file, 9,963 donor households appear as both records, and 8,731 of them have their two records in different counties.

    The first draws a congressional district within the household's state, with odds in proportion to each district's number of tax returns in the IRS congressional district data.

    The build's records treat the IRS file as counting returns by 117th Congress districts. The draw picks 119th Congress districts, and the code moves each old count onto the new districts by shared 2020 population. Montana went from one district to two, so its odds come from population alone.

    The first of the two draws picks a 119th Congress district within the record's state. Its odds come from the IRS congressional district file (22incd.csv), which, by the build's records, counts tax returns by the districts of the 117th Congress: the code moves each old district's count onto the new districts in proportion to the 2020 Census population they share. Montana had one district in the 117th Congress and has two in the 119th, so its two districts' odds rest on population alone.

    The tract and the county follow from the block.

    The block also sets the place, the state legislative districts and the core-based statistical area (CBSA). The doc never mentions those columns, which are empty on every ACS record. Every Connecticut donor record also has an empty CBSA, as the schema notes say.

    The tract and the county follow from the block, and so do the place, the state legislative districts and the core-based statistical area (CBSA). The code looks up the place and the legislative districts in the Census Bureau's 2020 block assignment files, whose legislative districts are the plans as of the Bureau's 2020 redistricting data release, and the CBSA in the Office of Management and Budget's 2023 list of metropolitan and micropolitan areas. The county file keeps these columns only on donor records; on ACS records the block, tract, place, legislative district and CBSA columns all hold empty values. The CBSA is also empty on donor records outside every metropolitan and micropolitan area, and on all 908 Connecticut donor records: the 2023 list names Connecticut's planning regions, while the block codes carry its 2020 counties, so the lookup found no match. PolicyEngine fixed that lookup on 30 September 2026, after the national build.

    Sources: the base build's log (chain_staged_base_p2.log:9-12) and summary; the 28 July calibration_diagnostics.json (/build/base_dataset_sha256 = fca79b42…) and build manifest (/calibration/selection_source, 57,240 of 337,704); git diff --stat 2ae4339 cae8640 (empty for the location modules); 2ae4339 congressional_district_geography.py:13-150, congressional_district_vintage.py:211-359, geography_ladder.py:286-333, 700-704; the district crosswalk (383a6666) and block ladder (7ba39b95) inputs; commit e379ec752d; the PoC release's county_reliability.csv, gate_summary.json and reviewed_null_fills.json.

    3. Line 137, the forests' training weights

    Each forest resamples the donors in proportion to their weights in the donor file.

    That is right, but the donor file's weights are concentrated. 41,430 of the 57,240 donor households have a weight below 2 there and together hold 0.003% of the donor weight. So almost every resampled record comes from the other 15,810 households.

    Each forest resamples the donors in proportion to their weights in the donor file. Those weights are concentrated (see "The donor file's weights" under "Design weights and the solver"): 41,430 of the 57,240 donor households have a weight below 2 there, and together they hold 0.003% of the donor weight. The other 15,810 households hold 18,867 of the 66,001 ASEC person records and 27,402 of the 100,320 tax-detail records, so almost every record a forest resamples comes from them.

    Sources: 72b7072bf microcosm-fit/…/qrf.py:371-410; the staging summary /weights_audit (69 fits, all on the donor file's weights); the PoC's weights_latest.npz and target_matrix.npz (persons per household).

    4. Line 149, the ASEC role

    An "ASEC" record holds a person as the CPS ASEC recorded them.

    This is wrong for the same reasons as item 1. The PoC's second pass also reads the changed values: it uses Social Security and interest as predictors on the 66,001 ASEC records.

    An "ASEC" record holds a person's CPS ASEC record as the national build kept it, with the changes "Donor households" describes.

    5. Line 274, the fixed total

    The solve keeps their total fixed.

    The total, 122,537,092, is the donor file's household weight total. The national build set it by scaling the selected households' base weights by 5.330351 to count 334.2 million people. It is below the sum of the 51 state household targets.

    The solve keeps their total fixed at 122,537,092, the donor file's household weight total, which PolicyEngine's national build set (see "The donor file's weights" below). That total is smaller than the sum of the 51 state household targets, 129,227,496. At the final weights, the records those targets count add up to 122,512,091. The 181,260 group-quarters records add up to 25,001, against 3,620,662 at the design weights.

    Sources: the PoC's weights_latest.npz and calibration diagnostics (the 51 acs_households_state targets); the national build manifest /gates/base_population_scale/details/mass_repair.

    6. New paragraph after line 274: the donor file's weights

    This answers your third question in the doc's style. Insert it after the paragraph that ends "The weight cap, every weight ratio below and the loss at the design weights all use them."

    The donor file's weights. PolicyEngine's 28 July 2026 national build set the donor households' weights by calibrating them to 5,659 targets for 2024: 448 national and 5,211 for the 50 states and DC, with none below state level. IRS SOI tables supply 4,182 of them and Census population estimates by age 936; the rest come from CMS, SSA, USDA SNAP, the Census Bureau's state tax collections, HHS, the Joint Committee on Taxation, CBO, the Bureau of Economic Analysis and the Federal Reserve, plus one total the build measured on its own records. The build rebased 662 count targets and 662 dollar targets to later IRS totals for tax years 2023 and 2024, and it aged 1,988 dollar targets to 2024: 1,401 by SOI's national growth to 2023 and then CBO's projected growth to 2024, and 587 by CBO's projected growth from 2023 alone. Its loss caps each target's scaled error at 1 (100%), and it held out no target. Each weight could rise to at most 5 times its starting weight, with no lower limit, and the total stayed at 122,537,092: the build had scaled up the selected households' base weights so that they counted 334.2 million people. At the final weights, 41,302 of the 57,240 households keep less than 0.1% of their starting weight, and the effective sample size (defined under "The reliability grade") falls from 42,355 to 9,174. The donor file carries these final weights unchanged, and since each donor household's design weight is half its weight there, 41,430 of the 57,240 donor households start the county solve with a design weight below 1.

    Sources: the 28 July calibration_diagnostics.json (/targets levels, sources, uprating_factor, aging_factor, aging_factor_source; /options); the build manifest (target surface 5,659; mass_repair); the national calibration NPZ; the PoC's weights_latest.npz (each design weight is exactly half the national weight).

    7. Line 391, the settings row

    The legacy rule: county and district draws within each PUMA, as in "How households get their counties"

    Under that rule only ACS households draw. Donor households keep their stored locations; the staging summary records donor_geography: preserved_assigned.

    The legacy rule: ACS households draw a county and a district within their PUMA; donor households keep the locations stored in the donor file. See "How households get their counties"

    8. Schema notes corrected after our last comment

    Commit 827058d243, on top of your e95992220f, corrects three places in the notes of schema_manifest.md. The JSON is unchanged.

    • The identifiers row no longer calls CENSUS_TAX_ID an uppercase CPS ASEC field; it points to a new bullet.
    • The new bullet says two CPS ASEC names do not always hold the Census value. A_EXPRRP is the Census value only for donors from income year 2024; for 2022 and 2023 the donor build derived it. TAX_ID may hold the tax unit PolicyEngine's CPS extractor built, since the extractor copies the Census TAX_ID into CENSUS_TAX_ID and then overwrites TAX_ID; that is labelled an inference from code.
    • The Medicare line no longer names the column as the CPS ASEC field PEMCPREM. It now says policyengine-us 2.2.1 has no variable named medicare_part_b_premiums and computes the Part B premium itself.

    Not established. We did not recompute the $444 threshold and the 1.0069 factor; both come from PolicyEngine's later commit. We did not count how many tax units got the equal Social Security split, or check whether the release-time redraws changed record values, because both need the H5. We also did not measure how many dual households have their two records in different districts.

  16. juaristi22 commented on Nov 22, 2026

    @juaristi22
    CollaboratorAuthor

    Methods doc v0.2: your donor-passage corrections applied

    Thank you for the national-build answers (comment 7025093817) and the line-by-line check of v0.1 (comment 7025096163). v0.2 of lwi-poc-methods.md, now on #1660's branch (826838fe0), takes items 1 to 7. Item 8 was already in your schema-notes commit, 827058d243.

    Most of your replacement text went in word for word. It differs in these places, so a re-check can start there:

    • Item 1. The full text was too long for a bullet in "Data sources and years". That bullet is now a short summary that starts with your first sentence. The full text now opens "What donor records carry", in five paragraphs, with three changes:
      • its first sentence reads "In the national build's code (cae8640)", so it doesn't repeat the bullet's wording;
      • "Summed over all tax-detail records in the pool without weights" now reads "Summed without weights over the 168,852 tax-detail records among the national build's 337,704 candidates", because the doc never defines "the pool";
      • the last sentence drops its pointer to "What donor records carry", since it now sits in that section.
    • Item 2. All three replacements are in word for word. Only the paragraph breaks differ: the sentence on the place, the legislative districts and the CBSA sits with the draws, and the lookups and empty columns get their own paragraph.
    • Item 4. The ASEC sentence ends at "as the national build kept it". The pointer moved to the paragraph's last sentence, which now says that "What donor records carry" describes how the national build makes both records and what it changed on each.
    • Item 5. Your four sentences are in word for word, but "The weight cap, every weight ratio below and the loss at the design weights all use them." now comes before them, so "them" stays next to "the design weights".
    • Item 6. "plus one total the build measured on its own records" now reads "plus one national total of Keogh distributions that the build computed from the selected records themselves", from your Q3 table.

    Items 3 and 7 are in word for word. The experiments README now gives v0.2 and no longer lists the national-build note as open.

    v0.2 also describes the donor file as it is, not as a patch: the last release with five more person columns. That rewords lines 31, 32, 55, 99, 185 and 226 and the appendix's donor-file row. The facts stay the same, including the match to the ASEC records and the eight re-derived columns. The same push has v0.3 of the report (d28b206e1): its donor step gives the national file's build date and leaves out the added columns, and the comparison with the earlier state-and-district file is out.

    Could you check v0.2's donor passages against the build's records once more, and say if anything still differs?

  17. MaxGhenis commented on Nov 24, 2026

    @MaxGhenis
    Contributor

    Written by Claude Code, Max's agent for the county work, not by Max. Facts only.

    Methods doc v0.2: the donor passages checked again against the build's records

    This checks v0.2 of lwi-poc-methods.md (826838fe07, on #1660's branch). We compared the donor passages, including the reworded lines 31, 32, 55, 99, 185 and 226 and the appendix rows, with the national build's code, the PoC's run files and the facts we checked for our two earlier comments. Five passages still differ from the records, and all five go back to text we supplied: items 2 and 3 to our item 1 text, item 5 to our items 3 and 6, and items 1 and 4 to our first draft (35e3863f62). The report v0.3's donor step has one more (item 6). The few points we could not settle are under "Not established".

    Module paths below are under packages/populace-build/src/populace/build/us_runtime/ at cae8640. Run-file paths start from the PoC run folder.

    1. Line 49, where the donor file comes from

    The file comes from three releases in the public Hugging Face dataset policyengine/populace-us: a national build and two later releases that add columns to it.

    What the records show: "The file" is the donor file, which line 31 defines as the last release with five more person columns. The file the build read (SHA-256 438f47f4…) is none of the three releases: the donor column tool wrote it from the last release's file (00946972…), and the receipt lists all five person columns as "added", which the tool records only for a column its input lacks. That release kept every column of the two releases before it, so none of the three holds them. The receipt's /release_manifest is null, both PoC summaries give donor_release as null, and the tool's code calls the copy's dataset role "not a release role". The file sits in the private Hugging Face dataset policyengine/populace-us-staging (commit 86dcc150714e, runs/lwi-county-poc-20261117/county-poc/donor/donor_patched_poc.h5, the same SHA-256; read from Hugging Face's file metadata on 24 November). The sentence is unchanged from our first draft (35e3863f62, line 35); there and in v0.1 (line 55), the next paragraph said we patched a copy of the last release.

    The file builds on three releases in the public Hugging Face dataset policyengine/populace-us: a national build and two later releases that add columns to it. It is not itself one of them: none of the three holds its five more person columns.

    Sources: county-poc/donor/donor_patched_poc.receipt.json (/input, /output, /added_columns, /kept_columns, /release_manifest); county-poc/acs_multispine_staging.summary.json and county-poc/populace_us_2024_acs_local.summary.json (/base/donor_release); 0005321705:tools/patch_us_acs_donor_columns.py:123-135, 1246-1259; the 15 and 23 September releases' source_enrichment.json (/preservation).

    2. Line 218, spreading a draw over the tax unit's members

    Otherwise it spreads the draw by a related amount, such as earnings, where the code names one, and gives the whole draw to the unit's first person where it names none, as for mortgage interest, charitable gifts, real estate taxes and partnership income.

    What the records show: This is our item 1 text. It said the code spreads by a related amount wherever it names one; the code does so only where the unit's members hold some of that amount. Where they hold none, the whole draw goes to the unit's first person, as it does where the code names no related amount (the code's comment: "falling back to the unit's first person when the basis is empty").

    Otherwise it spreads the draw by a related amount, such as earnings, where the code names one and the unit's members hold some of it, and gives the whole draw to the unit's first person in every other case, as for mortgage interest, charitable gifts, real estate taxes and partnership income, for which the code names no related amount.

    Sources: cae8640 puf_support.py:332-337 (the named amounts and that comment), :1803-1825 (the test fallback_sum > 0 and the first-person rule).

    3. Line 220, what the survey-item forests read

    Except for weeks unemployed, these forests read the record's age, sex, employer coverage, filing status and dependents, and the wages, self-employment income and Social Security the PUF forests drew for it.

    What the records show: This is also our item 1 text, and it differs on three points. The forests read whether the tax unit files jointly, not its filing status, and they read self-employment income only in the column the ASEC records use: the step that splits it by the drawn specified-service flag runs before every one of these forests, and at the end of the base build the second column holds $421.8 million of the copies' $1,034.1 million (40.8%, summed without weights). The release's code reruns the childcare, energy subsidy and retirement contribution forests, and runs the premium forest, after it rescales Social Security, so those forests read the rescaled amounts (an inference from code order; we compared no record values).

    Except for weeks unemployed, these forests read the record's age, sex, employer coverage, whether its tax unit files jointly and its number of dependents, the wages and Social Security the PUF forests drew for it, and its self-employment income in the column the ASEC records use, which is zero on a copy whose drawn flag put that income in the second column. By the code's order, the forests that ran after the national build rescaled Social Security, the health insurance premium forest among them, read the rescaled amounts.

    Sources: cae8640 child_support.py:95-104, 440-485 (the same eight predictors in disability_benefits.py, workers_compensation.py, childcare.py, energy_subsidy.py, retirement_contributions.py, retirement_distributions.py, prior_year_income.py, housing_inputs.py and other_health_insurance.py); qbi_inputs.py:105-106, 220-229; cae8640:tools/build_us_puf_support_base.py:207-231 (step order); cae8640:tools/build_us_fiscal_refresh_release.py:7480, 7534, 7705, 7728, 7807, 8711; the base build's run summary (staged_base_p.log, /channel_output_totals/puf_tax_detail).

    4. Line 226, where the work columns come from

    Each of the 166,321 donor person records takes them from its own ASEC record, which it matches exactly once, with no identity mismatches. On every record, eight columns that the release already holds equal the values re-derived from that ASEC record.

    What the records show: v0.2 uses "the ASEC record" for one of the two roles (lines 52, 214 and 224), but the column step matches each donor person record, in either role, to a row of the Census ASEC person files (pppub23–pppub25) for its income year, on PERIDNUM, the Census person identifier. The 30,488 people held in both roles match one row for both records, and the other 69,832 tax-detail records belong to people with no ASEC-role record in the donor file. The counts hold. Our first draft (35e3863f62, line 195) and v0.1 (line 212) had the same phrase.

    Each of the 166,321 donor person records takes them from its own row in the ASEC person files, which it matches exactly once, with no identity mismatches; a person who appears in both roles takes them from the same row for both records. On every record, eight columns that the release already holds equal the values re-derived from that row.

    Sources: county-poc/donor/donor_patched_poc.receipt.json (/steps/0/source, /steps/0/join/key, /steps/0/clones: 105,345 keys with one row, 30,488 with two).

    5. Lines 141 and 290, the 57,240 records counted as households

    41,430 of the 57,240 donor households have a weight below 2 there, and together they hold 0.003% of the donor weight. The other 15,810 households hold 18,867 of the 66,001 ASEC person records and 27,402 of the 100,320 tax-detail records

    At the final weights, 41,302 of the 57,240 households keep less than 0.1% of their starting weight

    since each donor household's design weight is half its weight there, 41,430 of the 57,240 donor households start the county solve with a design weight below 1.

    What the records show: This is our item 3 and item 6 text. The 57,240 are household records, not households: they hold 47,277 distinct source households, 9,963 of them twice (line 224), and each count above is of records. The numbers hold.

    41,430 of the 57,240 donor household records have a weight below 2 there, and together they hold 0.003% of the donor weight. The other 15,810 records hold 18,867 of the 66,001 ASEC person records and 27,402 of the 100,320 tax-detail records

    At the final weights, 41,302 of the 57,240 household records keep less than 0.1% of their starting weight

    since each donor household record's design weight is half its weight there, 41,430 of the 57,240 donor household records start the county solve with a design weight below 1.

    Sources: county-poc/checkpoints/weights_latest.npz and the national calibration NPZ (b6e9c067…), one weight per household record; county-poc/checkpoints/gate_summary.json (/gates/weight_origin/detail/design/distinct_households).

    6. Report v0.3, line 58: point 2 of the method

    We add 57,240 donor households from PolicyEngine's published 2024 national file

    What the records show: The 57,240 are household records. They hold 47,277 distinct source households, of which 9,963 appear twice, once as an ASEC record and once as a tax-detail copy; methods v0.2 line 224 gives both counts (and see item 5). The rest of point 2 holds: the households, weights, locations and tax detail the run read are those of the file built on 28 July, whose base builder drew the tax detail and locations on 27 July, and they keep that file's counties.

    Sources: county-poc/checkpoints/gate_summary.json (/gates/weight_origin/detail/design/distinct_households: 1,576,945, less the 1,529,668 ACS households); county-poc/checkpoints/county_validation_measures.npz (household_id, 9,963 pairs); county-poc/donor/donor_patched_poc.receipt.json (/rewritten_tables: person only).

    Not established

    • Line 216, taxable interest within 0.1%: the comparison uses the ASEC records' amounts at the end of the base build, after the pruning that line 214 describes. The pruning kept the weighted total, but no run file holds the unweighted total before it. (Our item 1 text.)
    • Line 105, the CBSA empty outside metropolitan and micropolitan areas: outside Connecticut an empty CBSA never varies within a county (1,047 counties all empty), but we did not compare those counties with the 2023 list. (Our item 2 text.)
    • Line 347, "which partnership income mostly holds already": that is the code's own comment (f8b1039f0:tools/us_acs_local_county_surface.py:695-701); no run file measures it on donor records.
    • Line 204, the 4.9% Head Start share: the rule's text is in the release summary, but the run files we searched do not hold the figure.
    • Line 203, "minus what the donor records already carry" for SSI and Medicaid: not traced to a run file.
    • Line 53, "Both drew on the same ASEC person files": the 15 September release's record checks its counts against pppub23–pppub25; the 23 September release's record names only its qualification file (donor_receipt_qualification.json), so we could not confirm its source files from the records we hold.
    • Line 186, "the third pass does not read them": staging's imputation spec makes strike benefits a target of a family trained on the donors' ASEC records (72b7072bf:packages/microcosm-build/src/microcosm/build/us/spec/imputation.yaml, the family at lines 1035-1056); we did not trace whether the staging check's column plan includes that family.
    • Lines 52 and 214, that two of the build's steps changed amounts on the ASEC record, and line 220, that the copy keeps its other survey items: these hold for every base-build and release stage we read, but we did not read every stage line by line.
    • As before: the $444 threshold and the 1.0069 factor (from commit 4becfa660c), record values after the release-time redraws, and how many households held as both records have them in different districts. New in this pass: how many copies carry the specified-service flag. Each needs record values from the .h5 files, which we did not open.

    What holds

    Apart from items 1 to 5 and the points under "Not established", the donor passages match the records: the data-sources rows (lines 31-33); "Donor households" (lines 49-55), including the release names, the 57,240 and 166,321 records and the five added columns; the donors' stored locations under "How households get their counties" (lines 95-105 and 113); the donor counts, roles, weights and training rows under "What we impute onto ACS households, and from which donors" (lines 135-170, 183, 185, 195-196 and 210); "What donor records carry" (lines 212-226), including the matches, the eight re-derived columns, the zero columns and the fixed strike-benefits reason; the design-weight paragraph and "The donor file's weights" (lines 288-298); the donor rules in the checks and the reliability grade (lines 343, 347, 365-367 and 386); and the appendix rows (403, 404 and 407). The cross-references in these passages lead to the sections they name.

  18. MaxGhenis commented on Nov 24, 2026

    @MaxGhenis
    Contributor

    Written by Claude Code, Max's agent for the county work, not by Max. Facts, my proposed wording for five report lines, and one more suggestion in the last section.

    Report v0.4: wording changes before Max's handover email

    Max chose to fix the wording first rather than send his email to the Institute as is. He gave two answers on 24 November:

    • "d3352 fix first", at about 14:17Z, in answer to "…fix the two wording conflicts first, or send as is?"
    • "Drop synthetic", at about 15:02Z, in answer to "Should the email and report keep calling the county file 'synthetic'?"

    The replacement wording below is mine, not Max's. His answers chose to fix the five report lines below and to drop "synthetic".

    Line numbers are in experiments/us-county-poc-20261117/lwi-poc-report.md at 7306a4365c, the source of the report PDF in policyengine/lwi-county-files at 165c732cea05. Each block shows the source text exactly.

    "Stretch goal" (four lines)

    Report v0.4 calls the 2026 and 2027 files and the household measures a stretch goal in four places, on pages 2, 7 and 8. The agreement's Attachment 1 lists both under the MVP: "Years: 2026 and 2027 (2027 as forecast)" and "Household-level measures: earnings, gross income, and net income".

    1. Line 36 (page 2, "What we are delivering").

      Now:

      | The 2026 and 2027 county files | A stretch goal, not yet produced. |

      Replace with:

      | The 2026 and 2027 county files | Not yet produced; the agreement lists them in the MVP. |
    2. Line 37 (page 2, the same table).

      Now:

      | Household measures (earnings, gross income and net income for each household) | A stretch goal, not yet produced. |

      Replace with:

      | Household measures (earnings, gross income and net income for each household) | Not yet produced; the agreement lists them in the MVP. |
    3. Line 181 (page 7, "Other limits of this proof of concept").

      Now:

      - **One year only.** The file is for 2024. The 2026 and 2027 files are a stretch goal.

      Replace with:

      - **One year only.** The file is for 2024. We have not yet produced the 2026 and 2027 files, which the agreement lists in the MVP.
    4. Line 188 (page 8, "Next steps").

      Now:

      4. **Complete the stretch goals.** Produce the 2026 and 2027 county files and the household measures.

      Replace with:

      4. **Add the files and measures the agreement lists in the MVP.** Produce the 2026 and 2027 county files and the household measures.

    "Synthetic" (one line in the report)

    The report uses the word once, on page 1. The methods document (experiments/us-county-poc-20261117/lwi-poc-methods.md at 7306a4365c) doesn't use it. Item 5's replacement follows the methods document's line 81: "The 2024 county file holds 1,529,668 household records from the 2024 ACS 1-year public-use microdata and 57,240 national donor household records."

    1. Line 21 (page 1, Summary).

      Now:

      - **We are delivering a 2024 county file.** It is one microdata file of synthetic households that covers all 3,144 US counties and county-equivalents. It is weighted to represent about 122.5 million households and 331 million people, and it runs in PolicyEngine's US tax-benefit model (policyengine-us 2.2.1).

      Replace with:

      - **We are delivering a 2024 county file.** It is one household microdata file that covers all 3,144 US counties and county-equivalents. Its records come from the 2024 American Community Survey (ACS) public-use microdata and from PolicyEngine's national file. We draw a county for each ACS household, impute most of what the ACS lacks and calibrate the weights (see "How we built it"). The file's weights represent about 122.5 million households and 331 million people. The file runs in PolicyEngine's US tax-benefit model (policyengine-us 2.2.1).

    The README: my suggestion, not Max's ruling

    The question Max answered named the email and the report, not the README. The dataset's README also uses the word, on its line 16, the county file's row in the Files table. So that the delivery reads the same throughout, I suggest the same change there. The "…" stands for the size and SHA-256 columns, which stay as they are.

    Now:

    | `populace_us_2024_acs_local.h5` | The 2024 county file: synthetic household microdata for all 3,144 US counties and county-equivalents, weighted to about 122.5 million households and 331 million people | …

    Replace with:

    | `populace_us_2024_acs_local.h5` | The 2024 county file: household microdata for all 3,144 US counties and county-equivalents, from the 2024 American Community Survey and PolicyEngine's national file, weighted to about 122.5 million households and 331 million people | …

    The methods PDF, schema_manifest.md, schema_manifest.json, county_reliability.csv, county_reliability.json and SHA256SUMS don't use "synthetic" or "stretch goal". I didn't open the .h5 file. A new report PDF also changes the PDF's size and SHA-256 in the README's Files table (line 19) and in SHA256SUMS.

    Once you have changed the five report lines (in this wording or your own) and re-rendered the PDF, Max's agents will check the new PDF at those five places before a fresh draft of his email goes to him. That draft drops "synthetic" too. His email to the Institute has not been sent.

  19. MaxGhenis commented on Nov 24, 2026

    @MaxGhenis
    Contributor

    Written by Claude Code, Max's agent for the county work, not by Max. Facts only.

    Report v0.5: the changes above are applied and re-rendered

    Max asked his agents to take the fix over on 24 November ("Take it over"), since your day had ended.

    • Commit 5f3020b61f on County Files PoC: donor patch, R1 allowance, R2 pre-checks and fixes #1660's branch makes the five changes in comment 7137552522. It also moves the report's status line to draft v0.5 and adds a v0.5 line to the experiment README.
    • I re-rendered the report with pe-doc. A render of v0.4 first reproduced your PDF's text on all nine pages. The v0.5 PDF differs from it only in those five lines, and pe-doc check passes.
    • policyengine/lwi-county-files commit b92e709630d2 holds the new county_files_poc_report.pdf (63,859 bytes), the README with line 16 changed as suggested and the report's row updated, and SHA256SUMS. The dataset is still private, and the other files are unchanged.

    Nothing has gone to the Institute. A fresh draft of Max's email, with v0.5 attached, goes to him next.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions