Repository navigation
Description
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
county_fips_2023on both household ladders, with Connecticut's nine planning regions (Add 2023 county-equivalent geography to US household ladders #1376).- The opt-in county rung (Add county calibration rung to US ACS-local release #1378) and the county pilot (US county calibration pilot for the LWI County Files #1377).
- The household measures sidecar and schema manifest tools (Add the County Files household measures sidecar and schema manifest tools (#922) #1621).
- The engine year window (Stop US and UK build simulations at the year they read #1615).
block_v1household location (US household location v1: one census block per household, every geography derived #1047), off by default on every line.
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
-
County population targets use 2020 counties. A full run needs population targets for all 3,144 county-equivalents.
prepare_runintools/us_acs_local_county_surface.py(Make the county rung a production county calibration for the County Files #1630) refuses any other count, andpopulation_rowsrefuses a household whose county has no target. But the rung always reads the ladder's 2020 county overlaps, whatever--county-columnsays: inwith_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), andcounty_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-columnto 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
mainwould 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). - pass
-
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.
-
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. -
block_v1and minimum support do not combine. Underblock_v1every 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
- Rent placement. Every published US file, the ACS local donors included, carries the rent draws that Place each ACS rent draw on its own household's head #1444 corrected in code. ACS rows learn rent from the donors. The correction reaches data only through a base rebuild, which is a release decision (d2300, State child SPM rates: next steps from the November trace #1446). The PoC carries the old placement, and its report must say so.
- Donor weight. In the ACS local release that the pilot started from, 57,240 donor rows (3.6% of records) carried 68% of the weight. In the pilot, counties with ESS of 30 or more held 43–50% of the population, and 163–192 of the 292 counties with 250,000 people or more had ESS below 30 (US county calibration pilot for the LWI County Files #1377). Expect most grades to be low.
- Projection. Project the county build to 2026 and 2027 for the County Files #1627 applies national growth factors and does not refit county or state targets for 2026 or 2027. County shares can drift from 2024, and the grades are inherited from the 2024 base.
- Engine. Microcosm's lock is policyengine-us 2.2.1 (Register tax_unit_role_input and filing_status_input as preserved engine inputs when moving past pe-us 2.2.1 #1027 is one item for moving past it). The files are built and checked on that version.
Acceptance bar (proposed)
Must:
- A 2024 file from
tools/build_us_acs_local_release.py --stage allwith the flags in the Make the county rung a production county calibration for the County Files #1630 doc, without--allow-partial-geography. Build it frommainafter 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. If they have not merged by Thursday 19 November, build from Make the county rung a production county calibration for the County Files #1630's head and label the file a candidate. - Household support in all 3,144 county-equivalents after the minimum-support step, with every move in
county_support.json. county_reliability.jsonandcounty_reliability.csvfor every county, with the grade thresholds marked provisional.- A short report beside the ACS local build 766b7c7:
- the share of county training rows within 10%;
- held-out errors against the pro-rata baseline;
- state and national fit of the tax and benefit families (the cost of the joint solve);
- county ESS and grade counts.
- The file loads in policyengine-us 2.2.1, and a 2024 baseline simulation runs.
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:
- 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. - Location. Legacy location for the PoC (gap 4).
- Solver. Loss cap 10 and weight cap 5, with weight cap 20 as the fallback.
- Bar. The acceptance bar above.
- 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
- 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?
- 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
mainwithtools/build_us_block_ladder_artifact.py, which now adds the per-blockpumaarray thatload_us_location_ladderrequires. 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-districtsand--congressional-district-seed, and pass--location-rule block_v1(route_a.shlines 522–533, andBASE_FLAGSat 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.envmust setFEEDandFEED_SHAto the feedmainpins (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_ruleroot attribute. The release writes its H5 through the engine adapter, which sets no root attributes. ACS staging underblock_v1reads a missing attribute aslegacyand 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
juaristi22 commentedon Nov 17, 2026
Update, 17 November: rulings, two tracks for the donor, and a correction
Rulings
spm-20260915, the donor that 766b7c7 used. R1 and R2 run on it frommainat or after950427888. 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.block_v1is 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.Two tracks
Track 1, the Monday PoC: R1 and R2 on the fallback donor, as above.
Track 2, the County Files donor: Make the county rung a production county calibration for the County Files #1630's hand-off says a full county run needs a national donor with the three Carry industry and worked-last-year on every US person record (ASEC restore + ACS crosswalk) #1039 columns. No published national build has them: the newest, b5db384, predates Carry industry and worked-last-year on every US person record (ASEC restore + ACS crosswalk) #1039. So we start a new national build from
main, located withblock_v1. Before it starts:block_v1, on top of Pool main's default ASEC years in Route A (d2603) #1559.mainand pinned in the driver. The ladder tool now gives each block its PUMA.route_a.envsetsFEEDandFEED_SHAto the feed thatmainpins (Route A driver pins a stale Chronicle feed hash and refuses to run on current main #1220).Then R1 and R2 run again on the new donor, and that file becomes the County Files candidate. If it is not ready by Monday, the fallback file is the PoC.
Machine: the base needs 80 GiB of free memory to start, and the release can use up to 110 GiB. R2's materialize peaked near 94 GB. If these cannot overlap on Max's machine, there are two choices:
Correction to "Later:
block_v1on 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 withblock_v1puts 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 toblock_v1, and the County Files do not need that.Status
c7a5f9679), and Project the county build to 2026 and 2027 for the County Files #1627 merged.c5c7b4697,5186faa25). Max's agents approved it in their round 3. They also checked it on a national ladder: 3,144 counties, with all totals kept. CI is still running, and my review is in progress.🤖 Generated with Claude Code
MaxGhenis commentedon Nov 17, 2026
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(sha25600946972…), 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 intools/_legacy/build_us_acs_multispine_base.pyrefuse the donor:_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 lacksstrike_benefits, a component of the__acs_transfer_other_incomepredictor. Main computes it asOI_VALwhereOI_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._require_donor_work_experience(Carry industry and worked-last-year on every US person record (ASEC restore + ACS crosswalk) #1039). The donor lacksdetailed_industry_recode,major_industry_recodeandworked_last_year._require_dense_donor_coverage. The donor lackspassive_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 everys_corp_incomevalue 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 inpartnership_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-channelincluded. Ruling 1 names spm-20260915 itself. We read its columns but didn't run the gates on it: it lacks the same columns, plusreceives_wic,receives_snapandreceives_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_recode0 (the under-15 not-in-universe code) andworked_last_yearFalse. 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_yearTrue 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.pyruns R1's own check functions in R1 order and wroteruns/route2/scratch-gates-r1/accept_r1.json;runs/poc-feasibility/*-verify.mdholds the verified findings and their probes.juaristi22 commentedon Nov 17, 2026
Amended ruling 1 (17 November): the PoC runs on a patched copy of 766b7c7's donor
The comment above shows that R1 refuses
spm-20260915and 766b7c7's donor at three gates. Thank you for the checks. Ruling 1 changes as follows:populace-us-2024-spm-receipts-20260923(sha25600946972…), which carries the WIC, SNAP and TANF receipts. R1 reads a patched copy of it, not the published file.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.passive_partnership_s_corp_income= 0, ands_corp_incomestays 0. The donor holds both in one combined amount inpartnership_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.--donor-release-manifest, or with a manifest for the copy. The copy goes to a run folder inpolicyengine/populace-us-staging, with its hash in the PR.The PR. Our side is opening one PR into
mainnow, with two commits: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_v1on 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
juaristi22 commentedon Nov 17, 2026
The patch PR is #1660. It is a draft at
77f5fa163, on branchclaude/us-acs-poc-donor-patch-dd6a9d. It has three commits:44a11af9d: the donor-patch tool, which adds the zero columns and writes a receipt.601cf86cc: the R1 allowance,--allow-default-donor-column COLUMN=REASON.77f5fa163: registers thestrike_benefitsreviewed 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:
strike_benefitsfill:harmless, as the PR proposes, orknown_bias;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
juaristi22 commentedon Nov 17, 2026
Confirmed (17 November)
strike_benefitsreviewed fill on ACS rows isharmless(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.--donor-release-manifest. R2 then recordsdonor_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
Let the donor-patch tool write a release manifest for the copy
juaristi22 commentedon Nov 17, 2026
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 commit06b53f625. 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.--county-drop-empty-soi-rows. R2 then drops only those rows and records a receipt incounty_surface.json, the run identity and the reliability report. This needs no further ruling from me.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
juaristi22 commentedon Nov 17, 2026
Tonight's run: the plan, with #1660 at
46674e01fThe 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:
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.POPULACE_ACS_POOL_PEAK_LIMIT_BYTESandPOPULACE_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;--hours-under15-policy us_hours_under15_zero_completion_v1. Without it, R1 refuses ACS children under 15.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-rowsto the materialize command, as pre-authorized above, and post the listed counties here.Not passed unless I rule:
--allow-dirty,--district-ess-gate-blockingand any manifest option.Checked today on the real donor
county_fips_2023and the pinned PUMA ladder, all 3,144 counties have PUMA overlaps.Still unknown
tools/route_a/supervise.py, raise its 72 GiB RSS cap.#1660's CI is still running.
🤖 Generated with Claude Code
Restore the ASEC work columns in the donor-patch tool (#1647)
juaristi22 commentedon Nov 17, 2026
Ruling (17 November): pass
--county-drop-empty-soi-rowson every run tonightThis replaces the earlier rule, which passed the flag only when the zero-AGI check lists a county.
--county-drop-empty-soi-rows: form B in County Files PoC: donor patch, R1 allowance, R2 pre-checks and fixes #1660's description.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.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.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
Mark the drop flag and the donor allowance as proof-of-concept only
MaxGhenis commentedon Nov 17, 2026
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.
72b7072bf. The check ran fromf8b1039f0with--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.no_household: none.counties_outside_ladder: none.unsupported_counties: none.31005,31103,31183,35021,38087,48033,48261,48263,48269,48311. The check lists these; it doesn't refuse them.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
f8b1039f0with--county-drop-empty-soi-rows, per the 14:21Z ruling above, and passed at 23:49Z.county_surface.jsonlists 0 rows inzero_measure_soi_rows_droppedand 0unsupported_targets. The run identity recordscounty_drop_empty_soi_rows: trueand an emptyzero_measure_soi_rows_dropped.Evidence (local run folder):
county_agi_support.json(sha256474e642748db…),checkpoints/county_surface.json(sha25611abc9a2edb3…).MaxGhenis commentedon Nov 18, 2026
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 atf8b1039f0. 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'scheckpoints/folder;REL/isrelease/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
county_support.jsonrecords 9 moves. 10 counties have 1 or 2, under the step's floor of 3"provisional": true)kish_ess)REL/, allpassed: truefraction_within_10pct0.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.4Microsimulationwith no reform per chunk (80 chunks of 20,000 households), 8 variables; DONE in 3,218.6 sdonor_release; publicationnullin 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 thepublish_commandorpromote_commandrunningHeld-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.
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
tools/build_us_acs_local_release.py --stage allwith 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 800and--epoch-batch 400, which the doc lacks. This report did not trace whatallruns.mainafter 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: "frommainat or after950427888". 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 onmain. Amended ruling 1 (6945072508) lets R1 and R2 run from the PR's head.package_result.jsonand the staging summary, always in a take-up field or its text;release_manifest.jsonrecordsdataset_role"non_default_local_area".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 namespm-receipts-20260923.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.--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.load_legacy_calibrated_us_h5), notMicrosimulation(dataset=<file>);spine_qa.jsoncalls its probe "the consumer-loadability proof".reviewed_limitations[21]. Entries[6]and[8]carry the same wording and are not on that list.district_ess_collapserecordscriteria_met: false(271 of 436 districts collapsed) andpassed: true: it is report only (blocking: false), and the code setspassedtocriteria_met or not blocking.cd_holdout. Thecalibrationgate's breakdown labels the 1,052 held-out county rows"cd_holdout": 1052; the gate namedcd_holdoutrecordsn_targets: 0.--donor-release-manifest, or with a manifest for the copy"; R1 ran without it. The packagedrefresh_recipe.stagingnames--donor-release-manifestand lacks R1's--allow-default-donor-columnand--hours-under15-policy(an item on County Files PoC: donor patch, R1 allowance, R2 pre-checks and fixes #1660's misleading-records list).launcher.loglines 541 and 547 print "no drop flag"; the argv on line 549 ends with the flag, and the run identity records it.geographies"state,cd,county"), so the national figures are a computed roll-up of state rows.cp -c, an APFS clone.PYTHONUNBUFFERED=1; it addedMICROCOSM_TELEMETRY_REQUIRED=0andMICROCOSM_EMITTER_COMMAND=/usr/bin/false.Hand steps
stage-r1.doneby 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).package.loghas no copy line (section 7b).1. What ran, and where
72b7072bffa94fa0933f9d0a9621fceae403ed70stage-r1.done(de4cfed9738f, by hand: section 7); the interpreter path inrss.jsonl(14555678af2b); the pre-R1 checks inlauncher.log(11587a11bc21); the R1 plist (a3a762409d2c)f8b1039f0099454da2b3e3d3ba17b674c5a488d9handover.done(d40faf6bc82a): "switched: f8b1039 launcher armed"; each stage's done file;REL/build_manifest.json(6cab856180fc):build_sha"f8b1039f00",build_dirtyfalse;REL/consumer_export.json(f14ad2c40fc9): full SHA,dirtyfalsepopulace-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 viewandgit merge-base --is-ancestor, live at 2026-11-18T03:52:18Z):c7a5f96796ac3b75cf15160emain, headf8b1039f0429d7a0de624origin/mainwas4d287f405a59(Add the US one-population selection library #1664's merge, 02:18:16Z); at 01:40:53Z it was5499382772a4. Neither run head is an ancestor of either; both share the merge basea21fa3b9be33(Refuse an empty digest for unreadable files in the Route A driver #1653's merge, 2026-11-17T13:42:15Z). The heads have 13 and 20 commitsmainlacks;mainhas 28 each head lacks (25 at 01:40:53Z). 72b7072 is an ancestor of f8b1039.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_capacityand similar);REL/release_manifest.json(e35dda0f1952) also recordsis_defaultfalse.2. The acceptance bar's items
Build form
--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 allwith the same flags "its single-command form". At f8b1039--stagetakes those five orall, defaultall(tools/build_us_acs_local_release.py:6837-6839); whatallruns, and in what order, was not traced.docs/us-acs-local-county-rung.mdhas 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).--county-column county_fips_2023and--county-facts-sha25667b0998a…equal the doc's values. The doc's feed digest is a placeholder; the run's--feed-sha2561d45a89c…equals the main feed pin at f8b1039 (40,642 rows, source commit41b2fb2b8).--seed 0(all five),--batch 5000and--county-drop-empty-soi-rows(materialize),--epochs 800and--epoch-batch 400(calibrate). The same section calls--epochs 800,--epoch-batch 400,--batch 5000,--seed 0and--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-geographyis absent from all eight argvs, as from the doc. The doc launches withuv run python; the run with<frozen tree>/.venv/bin/python -B.Against #1660's description ("Tonight's run: exact commands"), token by token.
uv run --no-sync pythonin 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-ladderand--outdiffer.--county-drop-empty-soi-rows.--inputs-dir ~/.cache/microcosm/acs-pums/2024-1yrfor the PR's placeholder. The two R1 memory limits equal the PR's (100000000000 each). Both calltools/build_us_acs_multispine_base.py, at 72b7072 a shim loadingtools/_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):--county-target-loss-cap--county-max-weight-ratio--county-min-support--county-drop-empty-soi-rows--allow-partial-geography,--donor-release-manifest,--allow-dirty,--district-ess-gate-blocking--hours-under15-policyus_hours_under15_zero_completion_v1--allow-default-donor-columns_corp_income,passive_partnership_s_corp_incomecounty_drop_empty_soi_rows: trueis in both run identities,CP/materialize_rss.json(9bc9d786f92d) andREL/build_manifest.json /run_identity, whose/calibrationrecordstarget_loss_cap10.0,max_weight_ratio5.0 andrealized_max_weight_ratio4.9297.--allow-dirty,--district-ess-gate-blockingand any manifest option out unless she rules; none was passed.REL/gate_summary.jsonrecordsdistrict_ess_collapsewithblocking: false.launcher.loglines 541 (a start check) and 547 read… form B (no drop flag): …, after a shell error from the launcher'sform_textfunction on lines 540 and 546.Household support in all 3,144 county-equivalents
From
CP/county_support.json(760453560ca7), column "county_fips_2023":supporting_households≥ 1;unsupported_countiesandunknown_countiesare empty. Threshold (minimum_support.households_per_county): 3.support_basis: "households in the household universe (ACS group-quarters records support no acs_households target)".minimum_support.moves(county_reliability.jsonrepeats 9, samemoves_sha25614964fd6c4d0…). Each names a household,from_county,to_county,pumaandrank; itscounty_fips_2023andcounty_fipsare rewritten. The 3 counties unsupported before the step each got 3 households from one PUMA:county_reliability.json: 3,141 counties "supported", 3 "minimum_support".county_support.jsontotals 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) andREL/county_reliability.csv(b6295eb22d5f) each cover 3,144 counties, with uniquecounty_fips, one county set and equalgradeper county.grade_rule.provisional, valuetrue:grade_provisionalcolumn istrueon all 3,144 rows;CP/calibration_summary.json(21aa8a38685d) repeatscounty_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) andREL/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'designfields (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.
fraction_within_10pct, 0.7566, covers all 16,440 trained rows; recomputed, 0.7566301703, equal. No file holds a county-only figure.county_reliability.jsontraining.n_targetsgives 2,255 / 788 / 39 / 62 (sum 11,524): it credits Kalawao with Maui's two shared SOI rows.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_onlyandnever_in_losstrue, 3,144 counties). The file'sscore: "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 areapproximate: true.calibrated_beats_pro_rata_share(strict). Recomputed from the 3,144 county cells, every median and share matches.diagnostic_onlyand left out of this table; its rank statistic is below.Rank statistics for (a) (computed from
CP/county_validation.json,REL/county_reliability.json,CP/weights_latest.npz,CP/county_validation_measures.npzandCP/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'sestimate(final weights) anddesign_abs_rel_error(design weights) exactly.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.county_reliability.jsonrecords 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".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").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).
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 recordpassed: true, withfailures[] 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 recordspassedascriteria_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".Population in counties with kish_ess ≥ 30: 22.63% (167 counties), or 22.72% by kish_ess_rows, of 331,449,281 (
county_validation.jsoncounty_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.jsonwhose sha256 is the one 766b7c7'ssha256sums.txtlists,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'srelease_manifest.json, which itssha256sums.txtalso 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 revision725d8999. 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:fraction_within_10pct, all trained rowspassed: true(no district_ess_collapse)passed: trueThe 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.
The policyengine-us 2.2.1 load and a 2024 baseline
What qa ran (code at f8b1039;
qa.log436c0e80bf22;REL/spine_qa.jsonbbd01aabf9bc):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.jsonrecordsplain_consumption: trueand calls the probe "the consumer-loadability proof".--hh-chunk 20000); per chunk an in-memoryUSSingleYearDatasetwith the calibrated weights and a policyengine-us 2.2.1Microsimulationwith no reform, for 2024. Every household went through one chunk.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".artifact_sha25682314a3b…(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 isgraded: false("Recorded as evidence, not gated").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)
spm-20260915itself. Per the amended ruling it is a patched copy of 766b7c7's donor,populace-us-2024-spm-receipts-20260923(00946972…). The receiptdonor/donor_patched_poc.receipt.json(b6430abcb432) recordsinput.sha256009469727409…,output.sha256438f47f49b4e…, and 166,321 persons and 57,240 households unchanged. R1 passed--base-h5 …/donor/donor_patched_poc.h5;stage-r1.doneand the staging summary's/base/sha256record438f47f4….spm-receipts-20260923appears in none of the staging summary, build manifest, release manifest or source coverage;release_manifest.jsonnamesspm-20260915once, in itssocial_security_cps_reporters_erased_inheritedlimitation.origin/main; neither head is onmain.82314a3b5a6a; counts only):detailed_industry_recodemajor_industry_recodeworked_last_yearTrue / Falseacs_2024_1yr)acs_2024_1yr_native, 0 missingasec_puf)María's donor-copy items 1–6 (comment 6945072508)
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 commit0005321705f5,tool_dirtyfalse, an ancestor of both heads; the tool's blob is the same there and at 72b7072.carry.reemitted_columns_verified_equallists 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.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.passive_partnership_s_corp_income(float64, 0), the split being unknown;s_corp_incomeis not among its added columns (inference: already in the donor, all 0, per comment 6937139936). R1 passed--allow-default-donor-columnfor both. The staging summary records them asallowed_default_donor_columns, underorchestrationand as the limitationallowed_default_valued_donor_columns(statusreviewed_default_valued_donor_columns, microcosm#922, both spines, calibration_blocker false), JSON-equal in the output summary andREL/release_manifest.json. Calibrated H5: both 0 on every row of both spines;partnership_incomenonzero on 4,599 donor and 139,930 ACS rows. The packagedrefresh_recipe.staginghas no--allow-default-donor-columnor--hours-under15-policy, and names--base-h5 <next-certified-release>.h5 --donor-release-manifest <release_manifest.json>.--donor-release-manifestor other manifest option; the receipt'srelease_manifestis null. Both hashes are in County Files PoC: donor patch, R1 allowance, R2 pre-checks and fixes #1660 comment 6950580220. The copy is inpolicyengine/populace-us-staging(section 10).Confirmed at 11:16Z (comment 6946488444)
strike_benefitsfillharmless.REL/reviewed_null_fills.json(abad6f4923b5)fills[31]: person, 3,420,942 of 3,587,263 rows, fill_value "0", allacs_2024_1yr.REL/reviewed_fill_consumer_register.json(2b3a0d6db333)entries[33]: verdictharmless, reviewed against policyengine_us 2.2.1, 13 consumers. That register has 60 entries.reviewed_null_fills.jsoncounts 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.--donor-release-manifest: item 5.donor_release: nullinREL/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.release/package_result.json(7c28d181c96c) lists apublish_commandand apromote_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 nulldonor_release; the publisher's path to it was not traced.The drop ruling (comment 6950739270; "always", #1660 comment 6950812749)
--county-drop-empty-soi-rows(launcher.logline 549,rss.jsonl). Dropped rows: none (section 4).refresh_recipe.release: the list's Drop flag item.at_risk,no_household,counties_outside_ladder,unsupported_countiesempty;exit_status0.4. Dropped rows: none
CP/county_surface.json(11abc9a2edb3):zero_measure_soi_rows_dropped[] andunsupported_targets[].CP/run_identity.json(207cd3c16e65) andREL/run_identity.json(ad376d3a9e1f), JSON-equal:county_drop_empty_soi_rows: true;zero_measure_soi_rows_dropped,county_targets_dropped,population_cells_droppedall [].county_reliability.csvcolumn 28,zero_measure_soi_rows_dropped, is empty on all 3,144 rows (CP and REL byte-identical);county_reliability.jsonhas the key in all 3,144 county cells and at the top level, all empty, and an emptyunsupported_targets.county_facts.droppedcounts Puerto Rico input rows, not targets (section 9).5. Limitations the PoC carries
acs_group_quarters_housing_universe(group quarters) andacs_local_ssi_disability_criteria("rental income"). Staging listspre_subsidy_rentas imputed for 3,239,682 ACS rows from the donor (asec_puf, familyhousing). 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.built_with_model_package, the receipt, the AGI check'sengine_version, the fill register'sreviewed_against, the uv.lock at both heads (byte-identical) and both venvs.sub_puma_geographic_precision; code at72b7072bf, packagemicrocosm.build.us_runtime):--geography-seed 0), and stores no tract or block (puma_ladder.py:313,:349-377,:710-743). Outside Connecticutcounty_fips_2023is 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 (f8b1039tools/us_acs_local_county_surface.py:2193-2195,:2333-2338).base_pool.py:832-835), checks the county is the tract's prefix (:646-665) and takescounty_fips_2023from 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./usr/bin/time -lreads 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.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 75for agi and materialize, 85 for R1, and--stop-disk-gb 50on every stage.launcher.loghas no "WARN free" line (warning line 60 GB) and no disk hold.7. Hand steps
(a)
stage-r1.donewas 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_code0, "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 sevenacs_local_*, self-employment and hours gates,weights_audit,adult_care_recipient_gate). The file, written at 20:40:23Z, has these seven lines and anote=line saying it was written by hand by the LWI session, not by the launcher, and why:summary_sha256= the staging summary's sha256;staging_bytes= the staging H5's size;donor_sha256= the staging summary's/base/sha256and the receipt's/output/sha256.handover.donewere 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.loglines 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):82314a3b5a6a…matches inpackage-clone.done, bothspine_qa.json,REL/sha256sums.txt,REL/release_manifest.json,package_result.json,CP/consumer_export.jsonand a fresh hash of both files.8. Later #1660 commits
All seven commits in
72b7072bf..f8b1039f0are 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.f96ff8e1b0,65b2155c04a5ca4df65dcounties_outside_ladder,unsupported_counties), exits 3 for them and recordsexit_statuscounty_agi_support.jsonexit_status0e49d53997728e7b7ce6breviewed_fills_precheck.json(164f7be81b6a):r2_stage_filled_never_default(8 columns),passedtrue,refusals[]2e9bf301d4--overwriteis passedf8b1039f00(the head)tools/build_us_acs_local_release.pyand the R1 shim are byte-identical at both heads; the R1 implementation intools/_legacy/differs in a docstring and a help string only (+7/−2).held_back_columns.jsonholds a different set: 2 formula-owned person columns,has_marketplace_health_coverageandweeks_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.jsonandrelease_manifest.jsoncarry it, in threereviewed_limitationsentries each (release_manifest.jsonlines 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) …"[21]and finalize'sinput_coverageentry, 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_orchestrationwithoutallow_default_donor_columns, and[1]native_acs_source_universe_blanks, which namesstrike_benefits.county_facts.dropped= {"state_72": 4136}. Both run identities recordrow_count180,326,kept_rows176,190 and thatdropped. 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.pyat f8b1039, lines 67-68: "Puerto Rico municipios: in the ACS county tables, outside the County Files." andDROPPED_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 atreport/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.peakfiles (row 8; section 6 gives their values), the PUMA ladder (already atinputs/us-puma-ladder/39a2ab2a/, same sha256) and the root copy (a clone). Each item (bytes per file, or per group where noted):consumer_facts_us_41b2fb2.jsonl;…_county_3e9d3a0.jsonl1d45a89c2817;67b0998aa2ee(match)us_puma_ladder_2020.npz39a2ab2abeab(matches)donor_patched_poc.h5;.receipt.json;patch.stdout.json,patch.stderr.log438f47f49b4e;b6430abcb432(match); part 2's SHA-256 listacs_multispine_staging.h5;.summary.json;r1.log083290ddae1e;73b7e482d2df;2f57ad96d737reviewed_fills_precheck.json;county_agi_support.json164f7be81b6a;474e642748dbspine_qa.jsonby qa,gate_summary.jsonby finalize,rss_samples.jsonby package);populace_us_2024_acs_local.h582314a3b5a6alauncher.log,rss.jsonl; 8stage-*.done(head=); 8<stage>.peak.peakfilesItems 1 and 3-8 total 25,438,159,323 bytes (25.44 GB): the 60 files in the rows above, each path once (
r1.logis 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
--stage allruns (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.
MaxGhenis commentedon Nov 18, 2026
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 privatepolicyengine/populace-us-staging, underruns/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
Input digests
CP/run_identity.json(feed, county facts, ladder, staging H5), the staging summary andstage-r1.done(donor copy, staging summary), the receipt (donor copy) andpackage_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.009469727409e58c0c9c1252581292497b688b76f1d59b51947483fb0f89221c(receipt/input/sha256; re-hashed for this report: matches);/acs_sources/artifacts[*]/sha256; not re-hashed):csv_hus.zip8281008e53de98f0ef81e7a2ee5a8725991dda1ecfd2713ead73246425e515d0,csv_pus.zipafdc6d90c6e2f0bab365ed32d95ba4c4d8ac651162f46ac7861295b2dc469894;a3a762409d2c0289849b9634c2fcea884417b6d8b7dbb8a41c3139f400382eab;calibration_diagnostics.json1f7e609ae5c5…(as itssha256sums.txtlists it),gate_summary.jsoneccb9bf4829d…,build_manifest.jsonf3971f28104e…,sha256sums.txtcef15933277e….SHA-256 list (78 files, grouped by folder)
Each line is in
shasum -a 256format, with the file's path relative to the folder named above it.10 remaining items
Revise the County Files PoC report for LWI (v0.2)
Add the schema manifest and methods document for the County Files PoC
MaxGhenis commentedon Nov 19, 2026
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
35e3863f62sits on top of your v0.2 (0ca8f6d4da). I fetched and merged first, and the push was a fast-forward. It adds three files toexperiments/us-county-poc-20261117/:schema_manifest.json, as the tool wrote it (SHA-256e3f1df1d…, 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.
reviewed_null_fills.jsonlists 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 blankplace_fips; 1,435 blanksldl, all in Nebraska and DC; 5,343 blankcbsa_code) come from a read-only scan of the household table.2ae4339(27 July),block_ladder_sources.py:381-382looks 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. Commite379ec752d(30 September) says that lookup "left every CT block at cbsa_code 0" and switched Connecticut to planning regions. The release recordsdonor_geography = preserved_assigned(us_source_coverage.json). Outside Connecticut, a blankcbsa_codeis 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.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 andCENSUS_TAX_ID.consumer_export.jsonholds backhas_marketplace_health_coverageandweeks_workedas formula-owned. In policyengine-us 2.2.1, the first returnshas_marketplace_health_coverage_at_interviewand the second has aformula_2025. The release adapter (f8b1039f0) exempts id columns and the variables policyengine-us lists inDATASET_SOURCE_INPUTS.retired_stored_inputs.py:128-133dropsmedicare_part_b_premiums(166,321 stored values).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
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 themcounty_fips_2023, the column the README tells LWI to group by.lwi-poc-methods.mdlinks 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 asschema_manifest.md.lwi-poc-methods.mdsays 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.
Edit the County Files PoC methods document for LWI (draft v0.1)
Say which columns the model ignores in the LWI PoC report
MaxGhenis commentedon Nov 19, 2026
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 treat5d8a3162…as the candidate pool's base. The 28 July release loadedfca79b42…(build.base_dataset_sha256in itscalibration_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
fca79b42…(base-p2 below). The release hashes the file it is given as--base-h5and publishes the hash at DIAG/build/base_dataset_sha256; the run log prints the same hash at launch.2ae4339on 27 July 2026, from 21:48:09Z to 22:06:13Z, and exited with code 0.git diff 2ae4339 cae8640touches onlyfiscal_targets.py, its test and one changelog fragment.5d8a3162…. Part 3 treats5d8a3162…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 commit6d06410on 13 July 2026, 23:07 to 23:21 UTC. Build M loadedd6d66039….18833fb6…..../selection_source/source/base_h5_sha256). It records where the selection came from, not which base the build loaded.d6d66039,3573cdcd,356cf501,ad13e5ea, base-p2 and0b50660a. The tool built each afresh from the pooled CPS ASEC, with the same location inputs (Internal Revenue Service Statistics of Income (IRS SOI) factsa5d34d4a…, district crosswalk383a6666…, block table7ba39b95…) and seed 0.d6d66039,3573cdcdand356cf501. All four releases publish identical household counts in each of the 51 states and 436 districts.The rule (base builder at
2ae4339)GESTFIPS). No code names the CPS county or metro fields:GTCO,GTCBSA,GTMETSTAandGTCSAappear nowhere at2ae4339or6d06410.22incd.csv, "Congressional District Data 2022").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'scounty_reliability.csvsums 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, andcbsa_codefor 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
2ae4339the table builder looks up a block's CBSA by the block code's first 5 digits. The fix, commite379ec752dof 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 emptycbsa_codeon 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-20260915names the 28 July dataset (48b9d479…) as its parent and recordsall_preexisting_variables_exacttrue.populace-us-2024-spm-receipts-20260923names that release's dataset (6496cc43…) as its parent and recordsall_preexisting_fields_and_datasets_exacttrue.00946972…) and rewrote only thepersontable. Its tool refuses a copy in which any original column of any table changed.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.block_geoidandtract_geoidon 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-districtsand--block-ladder-artifact, as base-p2's launch script passed them. The--location-ruleswitch and the namelegacyarrived in microcosm commit33969fdbe6(#696), written on 29 September and committed on 13 November 2026. Its help text sayslegacy"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
R= Max's local PolicyEngine folder; a run logbuildX-run/<file>isR/_buildX-runtime/logs/buildX-run/<file>. Files underR,runs/andresearch/(=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= microcosm7ff5a26bc2. HF = Hugging Face datasetpolicyengine/populace-us, folderreleases/microcosm-us-2024-national/<build ID>/. DIAG = HFcalibration_diagnostics.json(sha256870449b4…, the hash the spm-20260915 record lists for it). NPZ = HFpopulace_us_2024_calibration.npz(b6e9c067…). BM = the build'sbuild_manifest.json(1990e8fd…, 228,918 bytes) as copied intopopulace-us-2024-spm-20260915asparent_build_manifest.json; the HF folder's copy (228,958 bytes) names the build under/buildinstead 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'sdonor/donor_patched_poc.receipt.json. CP = the PoC run'scheckpoints/folder, as in the run report./build/base_dataset_sha256; REL:7180-7181, 6221;buildo-run/chain_sparse.log:104-111.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)./build/selection_source(modefrozen_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/sourceand/identities, counted by role and source household; SEL's parentR/_buildi-runtime/inputs/buildi_rmloss100_selection_source.json/source(n_add100,18833fb6…);cae8640:UR/warm_start_selection.py:246, 343-355.buildm-run/chain_staged_base.log:21-26(:27-36, theaac5012rerun);buildj-run/chain_base.log:1-7. Summaries, compared on/congressional_district_assignmentand/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.cae8640, outside the two modules that define them, the only non-test callers of the district and block functions aretools/build_us_puf_support_base.py:1304, 1339, 2279, 2312.git grepfinds no assignment in the release tool tocounty_fips,tract_geoid,block_geoid,congressional_district_geoidorcbsa_code.demographics.json/geography_coveragefor the 28 July release and Builds M (98bf731), N (c3e378a) and O (22bd902), written from each release file'shouseholdtable (cae8640:UR/demographics.py:168-228).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 cae8640over the four location modules is empty.R/_buildf-runtime/inputs/us_block_ladder_2020.npz(7ba39b95…; arraysblock_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.2ae4339:UR/block_ladder_sources.py:381-382;e379ec752dcommit message; county-file checkruns/maria-1031/donor_ct_cbsa.json(lead session, 19 November, logged inruns/maria-1031/MANIFEST.md).source_enrichment.jsonof spm-20260915 and spm-receipts-20260923,/parent/dataset_sha256and/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; PoCacs_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-845andblock_location.py:82; county-file checkruns/maria-1031/empty_by_spine.json.33969fdbe6(author and commit dates);main:tools/build_us_puf_support_base.py:561-574;git grepforlocation-rule|location_rule|populace_location_rulefinds nothing atcae8640or2ae4339.Not established
.h5) file; the only.h5read 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.22incd.csvtax 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 lists22incd.csvon 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.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.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
2ae4339andcae8640. The release calls no clone, donor or QRF-chain function (agit grepof 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
census_cps_2022.h5,census_cps_2023.h5andcensus_cps_2024.h5(p2/base_source/metadata/sources). Their person counts, 146,133, 144,265 and 142,125, equal those of Census person filespppub23,pppub24andpppub25(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./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).asec, clone index 0, original IDs) and the tax-detail copy (rolepuf_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) (CPcounty_validation_measures.npzhousehold_id, first 57,240 rows)./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).<entity>_source_id,<entity>_support_channeland<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
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 localpuf_2024.h5(SHA-2567669f5b5…) and, for 2015 adjusted gross income (AGI),puf_2015.csv(0a7fd643…) (p2/puf_sha256,/puf_source_year_csv_sha256).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).puf_interest_components.py:164-176). The result is 208,611 donor tax units (p2/puf_donor_rows).The draws
/channel_output_totalslists 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).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 asdesign(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).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):
qbi_inputs.py:192-229). Summed over both columns, the copies' self-employment income is 49.7% above the ASEC records'./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):
/puf_tax_detail_tail_bounds; PS:976-1037);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
cae8640is 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).Later redraws on the copies
max_train_samplesandn_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 examplechild_support.py:95-104); on a copy, wages come from the PUF-drawn column (child_support.py:467-472). The redrawn items:retirement_contributions.py:59-65, 313-343);retirement_distributions.py:1-22);housing_inputs.py:974-987).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).other_health_insurance.py:1-16).retirement_contributions.py:512-517). The childcare stage reruns when the person table carriesSPM_CHILDCAREXPNS(childcare.py:74-77, 471-476), as the county file does (schema manifest person column 111; it also carriesSPM_ENGVAL, column 114).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_repairsand those targets'initial_estimate; REL:7479-7485, 5027-5036):/channel_output_totals/asec).Which columns hold PUF draws
/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)./channel_output_totals/asec).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).gate_summary.json/gates/weight_origin/detail/design/distinct_households= 1,576,945 = 1,529,668 ACS households + 47,277).target_matrix.npz, labelled by CP household IDs; RECEIPT/steps/0/clonesgives the same 30,488 people with two rows.)/steps/0/join/by_income_year).Weights of a household's two records
/channel_weight_totals).initial_household_weight), and copies held 61.5% of the donor weight.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.Sources
cae8640:UR/puf_support.py. The other modules named above arecae8640:UR/<name>, exceptqrf.py, which ispackages/populace-fit/src/populace/fit/qrf.py.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.buildo-run/staged_base_p.loglines 1638-3204 (/output_sha256=fca79b42…).changelog.d/fix-asec-taxable-interest-pruning.fixed.md) and 9264600 (docs/evidence/us-release-reimputation-1191/README.md).weights_latest.npz,county_validation_measures.npz,target_matrix.npz,target_registry.jsonandgate_summary.json; the county file'sschema_manifest.json(e3f1df1d…);populace-us-2024-spm-20260915source_enrichment.json/preservation; GitHub releasePolicyEngine/irs-soi-puf1.8.0, assetpuf_2024.h5.Not established
puf_2024.h5the 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.puf.py:1378-1398: the 2015-to-2021 uprating factors, how it made PUF people, and its QBI step..h5opened)./retirement_contributions_signal/details/nonzero_shares).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 ofsource,metadata/ledger_geography_level,metadata/ledger_fact_period). "Within 10%" counts targets whose recordedrelative_erroris at most 0.10 in absolute value at the final weights; for the 27 zero targets,relative_erroris the estimate itself ("The loss").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)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):
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):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.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.
metadata/basis"fact").What the run compiled from, and the exclusion list
consumer_facts_buildn_v9_4.jsonl: 37,405 rows, sha256b3c0835631a446eb96aa84d86f3ee962d15ca356174c7114db52974f1cacc080(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).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.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).keogh_distributionsover 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/targetsrowselection_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.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 atcae8640with 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; NPZregistry_version;research/evidence-T5/compile_check.pyandversion_check.py, rerun for this note on agit archiveofcae8640). Populace commit574afe4961(06:56:54Z, not an ancestor ofcae8640) 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)./calibration/target_surface/sha256=49bb0fe3dfd4c399…(5,659 targets). DIAG/target_surfaceaddsnames_sha256e2c7d650…,values_sha2567854fb81…and a constraint matrix of 5,659 × 57,240 with 3,685,889 nonzero entries.No district or county targets
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)./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
/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.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)./options/target_loss_weights). We recomputed these weights and the final loss (0.017683916) from DIAGcompiled_targetandfinal_estimate; they match the recorded values./options/target_loss_weights/n= 5,659;/skipped= []). The release compiled every target it declared and dropped none (DIAG/build/target_compilation:declared_targets5,659,dropped_target_namesempty); BM/gates/target_compilation/dropped_target_namesand/diagnostic_only_dropped_target_namesare empty too. The HF folder on main holds eight files and noreform_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
/options)./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)./l0_lambda,/options/l1_lambda,/options/l2_lambda)./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./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
/gates/calibration: passed; initial loss 0.34787628; final loss 0.01768392; share of targets within 10% 0.9568828 (5,415 of 5,659)./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./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%./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_weightandinitial_household_weight:/effective_sample_size= 9,174.43).How these weights carry into the PoC
build_manifest.jsonrecords/calibration/mode"inherited" and/calibration/diagnostics_sha256870449b4…. The PoC's donor patch rewrote only the person table (Q1, "Later releases kept the household table")./base/household_weight_totaland/spine_totals/asec_puf/household_weight_total; v0.1 lines 274 and 282). The first 57,240initial_weightsin CPweights_latest.npzare the donor design weights: they sum to that 61,268,545.94, and their ESS over records, 9,174.43, equals CPgate_summary.json/gates/weight_origin/detail/design/effective_sample_size_rows_by_spine/asec_pufand 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).gate_summary.json/gates/weight_origin/detail/designand/calibrated,weight_share_by_spine/asec_pufandeffective_sample_size_rows_by_spine/asec_puf)./weights_audit; next comment, item 3).Sources
cae8640:UR/fiscal_targets.py. SOLVE =cae8640:packages/populace-calibrate/src/populace/calibrate/solve.py. NPZ read with numpy,allow_pickle=False.consumer_facts_buildn_v9_4.jsonl(b3c08356…, 37,405 rows):aggregate_fact_key,value,geography/level,source/raw_r2_key.acs_multispine_staging.summary.json.research/T5-national-targets.mdand its verificationT5-national-targets-verify.md, with scripts inresearch/evidence-T5/.Not established
22in54us.xlsx, whose raw-store path in the feed readssoi-state-2022(feed/source/raw_r2_key)..h5household_weightwith the NPZ's weights: we opened no.h5, so its record order was not checked (the NPZ match and preservation records are above)./options, BM/dataset/default, the DIAG geography tags, the Keogh target and the release file list.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.MaxGhenis commentedon Nov 19, 2026
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
c82fa5ce6esays 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 oflwi-poc-methods.mdv0.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
What the records show:
4becfa660csays 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.Replacement for the whole bullet (long; split it if you prefer):
Sources:
cae8640puf_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_rows208,611, 32 trees, seed 0); commit4becfa660cand its changelog; the 28 Julycalibration_diagnostics.json/build/support_value_repairs(Social Security factors;non_sch_d_capital_gainsfactor 0.14628); the national calibration NPZ (b6e9c067) initial and final weights; the PoC'sweights_latest.npzandcounty_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
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 atcae8640, 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 fromcounty_reliability.csv: its supporting rows sum to 1,405,648 and its distinct source households to 1,404,416. We did not measure districts.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 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.
Sources: the base build's log (
chain_staged_base_p2.log:9-12) and summary; the 28 Julycalibration_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);2ae4339congressional_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; commite379ec752d; the PoC release'scounty_reliability.csv,gate_summary.jsonandreviewed_null_fills.json.3. Line 137, the forests' training weights
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.
Sources:
72b7072bfmicrocosm-fit/…/qrf.py:371-410; the staging summary/weights_audit(69 fits, all on the donor file's weights); the PoC'sweights_latest.npzandtarget_matrix.npz(persons per household).4. Line 149, the ASEC role
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.
5. Line 274, the fixed total
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.
Sources: the PoC's
weights_latest.npzand calibration diagnostics (the 51acs_households_statetargets); 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."
Sources: the 28 July
calibration_diagnostics.json(/targetslevels, sources,uprating_factor,aging_factor,aging_factor_source;/options); the build manifest (target surface 5,659;mass_repair); the national calibration NPZ; the PoC'sweights_latest.npz(each design weight is exactly half the national weight).7. Line 391, the settings row
Under that rule only ACS households draw. Donor households keep their stored locations; the staging summary records
donor_geography: preserved_assigned.8. Schema notes corrected after our last comment
Commit
827058d243, on top of youre95992220f, corrects three places in the notes ofschema_manifest.md. The JSON is unchanged.CENSUS_TAX_IDan uppercase CPS ASEC field; it points to a new bullet.A_EXPRRPis the Census value only for donors from income year 2024; for 2022 and 2023 the donor build derived it.TAX_IDmay hold the tax unit PolicyEngine's CPS extractor built, since the extractor copies the CensusTAX_IDintoCENSUS_TAX_IDand then overwritesTAX_ID; that is labelled an inference from code.PEMCPREM. It now says policyengine-us 2.2.1 has no variable namedmedicare_part_b_premiumsand 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.
Correct the donor households in the LWI methods document (draft v0.2)
juaristi22 commentedon Nov 22, 2026
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:
cae8640)", so it doesn't repeat the bullet's wording;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?
MaxGhenis commentedon Nov 24, 2026
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/atcae8640. Run-file paths start from the PoC run folder.1. Line 49, where the donor file comes from
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_manifestis null, both PoC summaries givedonor_releaseas null, and the tool's code calls the copy's dataset role "not a release role". The file sits in the private Hugging Face datasetpolicyengine/populace-us-staging(commit86dcc150714e,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.Sources:
county-poc/donor/donor_patched_poc.receipt.json(/input,/output,/added_columns,/kept_columns,/release_manifest);county-poc/acs_multispine_staging.summary.jsonandcounty-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
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").
Sources:
cae8640puf_support.py:332-337(the named amounts and that comment),:1803-1825(the testfallback_sum > 0and the first-person rule).3. Line 220, what the survey-item forests read
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).
Sources:
cae8640child_support.py:95-104, 440-485(the same eight predictors indisability_benefits.py,workers_compensation.py,childcare.py,energy_subsidy.py,retirement_contributions.py,retirement_distributions.py,prior_year_income.py,housing_inputs.pyandother_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
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.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
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.
Sources:
county-poc/checkpoints/weights_latest.npzand 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
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
f8b1039f0:tools/us_acs_local_county_surface.py:695-701); no run file measures it on donor records.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.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.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.h5files, 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.
Correct five donor passages in the LWI methods document (draft v0.3)
Count the donor households as 47,277 in the LWI PoC report (draft v0.4)
MaxGhenis commentedon Nov 24, 2026
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:
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.mdat7306a4365c, the source of the report PDF inpolicyengine/lwi-county-filesat165c732cea05. 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".
Line 36 (page 2, "What we are delivering").
Now:
Replace with:
Line 37 (page 2, the same table).
Now:
Replace with:
Line 181 (page 7, "Other limits of this proof of concept").
Now:
Replace with:
Line 188 (page 8, "Next steps").
Now:
Replace with:
"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.mdat7306a4365c) 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."Line 21 (page 1, Summary).
Now:
Replace with:
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:
Replace with:
The methods PDF,
schema_manifest.md,schema_manifest.json,county_reliability.csv,county_reliability.jsonandSHA256SUMSdon't use "synthetic" or "stretch goal". I didn't open the.h5file. A new report PDF also changes the PDF's size and SHA-256 in the README's Files table (line 19) and inSHA256SUMS.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.
MaxGhenis commentedon Nov 24, 2026
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.
5f3020b61fon 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.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, andpe-doc checkpasses.policyengine/lwi-county-filescommitb92e709630d2holds the newcounty_files_poc_report.pdf(63,859 bytes), the README with line 16 changed as suggested and the report's row updated, andSHA256SUMS. 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.