Repository navigation
Pool main's default ASEC years in Route A (d2603) - #1559
Conversation
Max's d2603 (7 November 2026, "From the next build") moves Route A from income years 2022-2024 to main's default pool, income years 2023-2025 (ASEC 2024-2026). route_a.sh now passes census_cps_2025/2024/2023.h5 and asecpub24-26csv.zip with their registry pins, and check_commit refuses a build commit whose registries lack a pooled pin. The Modal base template names a new registration, us-puf-support-base-income-2023-2025, which stages the 2023 ASEC archive as its own LKWEEKS cache seed; the historical and rerun registrations keep their inputs, argv and seeds. test_route_a_asec_pool.py holds the driver and the template to ASEC_DEFAULT_POOL_INCOME_YEARS and the four year-keyed registries. The November 2026 certified build keeps 2022-2024 and its own driver. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The student debt pilot's base (d2606) keeps the November build's pool on us-puf-support-base-rerun, through the template as it stood at 9b7a454 (EqRC, 2026-11-09). A byte copy of that template now sits in the modal_us_stage fixtures, and test_route_a_asec_pool.py checks that it still validates on main with its 2022-2024 years, order, seed and pins. The default-pool registration takes its stage from the rerun registration it extends. The README describes what the education fetcher does, the pins doc drops a build reference this PR can't verify, and the runbook states the run-id convention without claiming the validator enforces it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Max, the County Files need a new national build from Do you want to pick this PR up and get it in, or should we take it over? If we take it, we bring it up to date with 🤖 Generated with Claude Code |
|
The County Files timeline is tight, so we're taking this PR over now. The plan, as additive commits on this branch, with no force-push:
For F18: please hold the national base until this lands, so that the build uses the d2603 pool and I'll ask for your review here once CI is green. 🤖 Generated with Claude Code |
The one conflict is in tools/route_a/route_a.sh's check_commit: this branch's Census archive pin loop now runs before #1650's crosswalk check, which names the commit's own digest and refuses a missing crosswalk. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch moved the driver-settings harness into test_support/microcosm_build/route_a_driver.py as run_driver_settings. The tests #1650 added on main still called the old local name, _input_settings_result, which the merge no longer defines, so 14 of them failed with a NameError. Both helpers have the same signature and code. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A new LOCATION_RULE setting picks how the base locates households. - legacy, the default, keeps the published run's command byte for byte: a congressional district drawn from SOI return counts, then a block within it. - block_v1 draws one 2020 census block per household within its CPS ASEC source geography. The base drops --ledger-facts, --assign-congressional-districts and --congressional-district-seed, which it refuses beside --location-rule block_v1, and passes --location-rule block_v1 --location-seed 0. It keeps the vintage crosswalk, which the release checks, and the block ladder. - Under block_v1, check_commit also requires the base tool at the commit to declare the two new flags. A legacy build of an older commit is checked as before. - Any other value stops the driver with exit 64. The base command now reads its location flags from base_location_args, which section 4 calls once W is set. Tests check that: - the legacy command still matches the Modal registration; - the block_v1 command differs only in the location flags; - the base tool's own parser accepts the block_v1 command; - an unknown value is refused. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The ladder row of input_rows read a fixed digest and size. They are now LADDER_SHA and LADDER_BYTES, as #1650 did for the feed. Both default to the published run's d713 ladder, so a default run checks the same bytes as before. A build with another ladder sets LADDER, LADDER_SHA and LADDER_BYTES together. Under LOCATION_RULE=block_v1, verify_inputs also lists the ladder's arrays with PYTHON. It records an input problem when the per-block puma array that load_us_location_ladder requires is missing, or when the file cannot be read. It checks the array itself, because a digest alone does not say which arrays a ladder holds. tools/build_us_block_ladder_artifact.py on main writes the array. Tests check that: - the pins keep their defaults or take the settings; - a block_v1 ladder passes with the array, and fails without it or when it cannot be read; - a legacy ladder is not checked. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@MaxGhenis, could you review this? GitHub can't request a review from a PR's author, so I'm asking here.
🤖 Generated with Claude Code |
|
The F18 block ladder is on the staging repo. It carries the per-block PUMA array that
It was built on Take this file. A rebuild on another machine can compress to different bytes; The opt-in registry test did not run: ncleg.gov answered 403 to the registry tool's download of the 2019 North Carolina plan. F18's LOCATION_RULE=block_v1
LADDER=$PE/_build_artifacts/us-block-ladder-f18/us_block_ladder_2020.npz
LADDER_SHA=528085de8b4a9ba3ba3f25e841158c8f2807e790f00bf084ba5dc4378a7d1217
LADDER_BYTES=19098783🤖 Generated with Claude Code |
|
For F18 from this branch: a gate dry run before the release The 3 November national attempt failed two release gates:
So that a failure costs under an hour, not a 33–57 h release, please run F18 in this order:
The dry run needs the base, which reads the PUF, so it runs on the build machine. Route A's preflights don't cover it: they grade the raw base, before the release's QRF stages. 🤖 Generated with Claude Code |
Main brought #1653 (sha_of refuses an empty digest for an unreadable file) and #1655 (Belgium's donor money declaration). The one conflict was in test_route_a_driver.py, where both sides added tests after the feed pin test. Both sets stay. #1653's verify_inputs test called #1650's local _input_settings_result helper, which this branch moved to test_support as run_driver_settings with the same body, so it now calls run_driver_settings. route_a.sh and the README merged without conflicts. In verify_inputs, an unreadable input now gets the status "unreadable", and under block_v1 the ladder's PUMA check still runs after the input rows. A ladder that PYTHON cannot read is an input problem, as #1653 intends for openssl. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
vahid-ahmadi
left a comment
There was a problem hiding this comment.
Reviewed at 75d6895, including the commits added on 17 November.
- The driver's pooled years (
tools/route_a/route_a.sh:672-676) and the new template matchASEC_DEFAULT_POOL_INCOME_YEARS(asec_sources.py:145, currently 2023-2025), andtest_route_a_asec_pool.py:191-205will fail when that default moves, so the written-out list cannot drift silently. - Driver and template pins, including the LKWEEKS archive, are tested against all four registries; no live path still names the 2022 H5 or the 2022 education archive.
- The
block_v1arguments frombase_location_args(route_a.sh:374-383) drop exactly the flags_validate_block_v1_argsrefuses (tools/build_us_puf_support_base.py:633-680) and keep the crosswalk and ladder; the extraBASE_FLAGScheck is limited toblock_v1(route_a.sh:124).ladder_has_pumacheckspuma.npy, which matchesUS_BLOCK_LADDER_PUMA_ARRAY. - Both merge resolutions keep both sides correctly.
- The seven touched or related engine-free suites pass at this head (664 passed, 1 skipped for shellcheck), and
bash -npasses on the driver and the settings example.
Two small notes: the description's "Overlap" line about #1653 is now out of date, since #1653 merged as a21fa3b and that merge is in 75d6895; and block_v1 is local-driver only, as the Modal default-pool registration stays on the legacy location flags.
Review drafted with AI assistance and checked against the code at 75d6895.
Vahid's review of #1559 noted that block_v1 is for the local driver only. The Modal default-pool registration keeps the legacy location flags, and no plan can pass --location-rule. A Modal base handed to a block_v1 run would still be used, because the driver skips a base stage that is already accepted. The driver's base-stage comment, the Route A README (the location rule and the Modal hand-off), the settings example, the Modal runbook's default-pool template and the changelog fragment now say so. Only comments and documents change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Vahid, both notes are addressed.
Local checks after 🤖 Generated with Claude Code |
…efresh The only conflict is the us_national gate-scope digests in test_us_battery_bindings.py: both sides moved them. They are re-measured on the merged gates.json, which carries #1635's last edits and this branch's base-weight tail gate note. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…regenerate the US F0 coverage report (#931) Main took #1635 (the US gate battery in shadow), #1559 (Route A's default ASEC pool) and #1664 (the US one-population selection). Two files conflicted; both hold values that both sides move: - test_us_multispine_pool_tool.py pins the US bundle's spec_sha256. #1585's us/gates.json row in country_package.json moved it on main, and #931's keyed helpers moved it here. The merged value is load_bundle("us")'s digest on the merged tree, the method that gives this branch's own pin exactly; both comments are kept. - docs/evidence/spec-engine/us-f0-coverage.json is regenerated with tools/spec_engine_coverage.py on the merged tree; --check passes. Two more files changed on both sides and merged cleanly: docs/gate-battery-contract.md and test_transport_evidence_kernels.py. Checks on the merged tree, UK engine hidden: the coverage tool's contract tests, the country gates manifest, field usage, transport evidence kernels, gate battery contract pins and the transport binding rule, the US spine-blindness, battery binding and gate shadow tests, and test_run_uk_cut.py. The US workflow test needs the US engine, which this environment lacks; CI's engine-us job runs it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Brings in #1635 (the US gate battery shadow), #1559 (Route A's default ASEC pool) and #1664. Two conflicts, both where the two sides added code at the same place: - Above main(): this branch's build record and certification section and #1635's gate shadow section. Both are kept. - In _main, after the certified-directory refusal: this branch's refusal of an --out awaiting certification and #1635's release of the shadow's files. Both are kept, the refusal first, so a rerun that either refusal stops leaves the shadow files of the build it protects as they were. #1635's order pin now requires both refusals before the release, and the two shadow docstrings name both. Every us_national shadow site sits in the build, which still runs under main()'s shadow; certification runs none of them. The shadow writes under <out>/gate_battery_shadow/, outside the release directory, so the record and the manifests bind none of its files. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Main gained #1650, #1653, #1559 and #1635 after the old pin, c7a5f96. 198 of the log's 200 code links now cite main at bcb5cba, and two dated observations keep the commits their runs used. The log drops the `uv sync` entry. Since #1650 the driver syncs with `--python "$UV_SYNC_PYTHON"` and unsets `UV_FROZEN`, so neither cause reaches `uv sync in $WT`. The code removed that stop; no run passed it. New entries: - 2 (`predicted`): the 2023-2025 pool needs `census_cps_2025.h5` under `STORAGE` and `asecpub26csv.zip` under `EDU` (#1559). - 6 (`from the code`): a rerun whose worktree synced with another interpreter stops at the sync marker (#1650). - 9 (`predicted`): the Modal hand-off's copy stops on the base's `gate_battery_shadow/` directory (#1635). #1677, still open, makes that copy recursive. Moved or rewritten: - The emitter entry moves up to 5. The driver now checks the installed emitter in the commit check, before it creates a worktree (#1650). - The gate-shadow entry, now 8, states what main does, since #1635 merged. - Entry 1 quotes the message #1653 added for a file the driver cannot hash. - Entry 4 quotes the feed and crosswalk blockers as #1650 reworded them. - Entry 7 adds the 2023-2025 Modal template and the reference a hand-off needs. - Entries 3, 10 and 11 keep their stops at new line numbers. - "The run" loses its paragraphs on #1650 and #1653; the entries carry them. axiom: n/a: documentation only Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Brings in #1559 (Route A default ASEC pool) and #1635 (US gates in us/gates.json, run in shadow beside today's gates). No textual conflicts; git auto-merged the four files both sides touched (tools/build_us_acs_local_release.py, tools/modal_us_stage_plan.py, test_us_acs_local_release_tool.py, test_us_spine_blindness.py). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Brings in #1664 (the selection library this branch stacks on, merged as 4d287f4), #1559 (Route A default pool) and #1635 (the US gate battery in shadow). Git merged every file cleanly, the spine-blindness classification lists included: this branch adds one_population_contract.py to the provenance owners and the other-runtime list, #1635 adds battery_bindings.py, gate_scopes.py and gate_shadow.py to the other-runtime list and re-pins the pool tool's graph at 86 modules. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Summary
Max's d2603 (7 November 2026, "From the next build") moves Route A from income years 2022-2024 to main's default ASEC pool, income years 2023-2025 (ASEC 2024-2026,
asec_sources.ASEC_DEFAULT_POOL_INCOME_YEARS). This PR moves the driver and its Modal base template, so the next certified US build becomes the first on the default pool. The November 2026 certified build keeps 2022-2024: it runs from its own worktree at9434c504bwith a frozen driver copy, and nothing here reaches it.Refs #296. I'll close it with a comment once this merges.
Status: draft. Targeted local tests pass. The GPT-6.1 Sol review waits in Subfleet's queue behind its disk hold.
What changes
tools/route_a/route_a.shpassescensus_cps_2025.h5,census_cps_2024.h5andcensus_cps_2023.h5, newest first as before, with their pins, and the Census person archivesasecpub24csv.ziptoasecpub26csv.zip.input_rowslists the new files with the registries' digests and byte counts. Next to its H5 check,check_commitnow also refuses a build commit whoseeducation_assistance_source.pylacks a pooled archive pin.docs/us-modal-stage-route-a-rerun-base-plan.jsonbecomes the next certified build's template. It names a new registration,us-puf-support-base-income-2023-2025, and lists every input in CAS form (volume://cas/sha256/<sha>/<name>) with the registries' digests. Its commit placeholder,PICK_MAIN_COMMIT_FOR_THE_NEXT_CERTIFIED_BUILD, makesvalidaterefuse it until an operator fills it.tools/modal_us_stage_plan.pyaddsAsecPooland builds the base command's input roles and argv from a pool.us-puf-support-base-income-2023-2025runs the rerun registration's command, crosswalk pin and resources on the default pool, plus one seed-only input,asec_weeks_unemployed_zip.us-puf-support-baseandus-puf-support-base-rerunkeep every field but the argv builder, and their builders return the same argv as before, so plans made before this PR still validate on main.tools/route_a/make_local_reference.pyreads the pool from the registration and hashes a seeded input where the local tool read it, in the home cache.Why the years stay written out
d2603's brief asked whether to derive the years or write them out. The driver and the template write them out, and CI holds them to the default pool:
verify_inputs,check_commit) before it creates the build worktree and its venv, so it has no Python to ask.test_route_a_asec_pool.pyfails as soon as the driver's or the template's years leaveASEC_DEFAULT_POOL_INCOME_YEARS, so the PR that pins a newer year has to move Route A too, or say why not.The LKWEEKS sidecar
The base reads the income-2022 Census archive,
asecpub23csv.zip, for weeks unemployed in every mode; it isn't a pooled year. The driver passes no--asec-2023-weeks-unemployed-source, so the base callsfetch_asec_2023_weeks_unemployed_source(), which reads~/.cache/microcosm/cps/asec_2023/, downloads from Census only when the file is missing, and checks the pin. The driver's prefetch stage warms that cache. The older registrations seed it fromasec_education_2022_zip, which the default pool drops, so the new registration stages the same file asasec_weeks_unemployed_zipand seeds the cache from that. Neither path passes the flag, so local and Modal bases record the same run config.ASEC order
The base pools the
--asec-h5years in the order given and records that order in the run context it locks, so the order belongs to the build. Route A keeps newest first (2025, 2024, 2023), as it passed 2024, 2023, 2022 before. The archives stay oldest first.Invariants
Each holds for every input, and
test_route_a_asec_pool.pyexecutes it:ASEC_DEFAULT_POOL_INCOME_YEARS.ASEC_SOURCE_ARTIFACTS,ASEC_EDUCATION_ASSISTANCE_ARCHIVES,ASEC_SPM_ROLE_SOURCESandASEC_PUBLIC_ASSISTANCE_TYPE_AUDIT_PINS.The same file also runs:
check_commitagainst a commit whose registries lack each pooled year's pins in turn, which must report exactly those two blockers;AsecPoolrefusing a repeated year, or archives that don't match the pooled years;us-puf-support-base-rerunwith its 2022-2024 years and pins.#1044's "not affected" note
The PR that set the default pool, #1044, said Route A "reads explicit local paths and is not affected". That held for the driver of its day, which named 2022-2024, and d2603 ends it. The pins doc and the 18 October rerun record (its "ASEC 2025" row) now say so.
The student debt pilot (d2606)
The EqRC hub chose (a) on 9 November: the pilot's base keeps the November build's pool, income years 2022-2024 (ASEC 2023-2025), because d2606's terms come from the November build on that pool, and a new pool would reopen them inside a booking with no room for it. The pilot runs a copy of the driver from the last main commit before this merge, with the pre-merge template on
us-puf-support-base-rerun. EqRC asked that this registration stay unchanged and that the pre-merge template keep validating on main. This PR keeps both, and the fixture test above holds them. EqRC also said the merge need not wait for the pilot.Left alone
us/spec/sources.yamlasec_raw_stage(51e9fafc…, which pools 2022-2024). The spec engine reads it; Route A's base passes no spec and writes its own raw-stage checkpoint. The Microcosm non-dynamics session pins the first default-pool base's checkpoint there once that base exists.CROSSWALK_SHA(c7cb040b…, the historical in-tree file). Each build'sroute_a.envsets the current pin, as the 18 October rerun's did.Tests
b377f7851acrosstest_route_a_asec_pool.py,test_route_a_driver.py,test_route_a_lineage_class_check.py,test_us_route_a_local_reference.py,test_us_modal_stage_puf_support_base.py,test_us_asec_sources.pyandtest_us_modal_stage_plan_tool.py. After the second commit, the three files it touches passed again (220), and the new fixture test passed by node id.ASEC_EDU_2025_SHAand one in the template'sasec_2023_h5digest failed the driver-pin, template-pin, differential andcheck_committests, as they should.9b7a4544band at this head: the pre-merge rerun template and the historical plan parse on both, with identical argv.ruff checkandruff format --checkpass on the changed Python files, andtools/ci_test_plan.py verifypasses.🤖 Generated with Claude Code
Taken over on 17 November
María took this PR over for the County Files' national donor (plan and rulings in #1647). The commits below come after Max's two, in this order:
870c8ffa3mergesmain(3b75cf151). The one conflict was incheck_commit: this PR's Census archive pin loop now runs before Route A driver: name main's pins, pin the sync interpreter, check the emitter #1650's crosswalk check.c2b426785points Route A driver: name main's pins, pin the sync interpreter, check the emitter #1650's new driver tests atrun_driver_settings. This branch had moved the old_input_settings_resulthelper totest_supportunder that name, with the same code. 14 tests failed with aNameErrorand now pass.f7acd8ea4adds aLOCATION_RULEsetting for the base (US household location v1: one census block per household, every geography derived #1047).legacy, the default, keeps the published command. The differential test still holds it to the legacy Modal registration.block_v1drops--ledger-facts,--assign-congressional-districtsand--congressional-district-seed, and passes--location-rule block_v1 --location-seed 0. A test runs the base tool's own parser on the driver'sblock_v1command.block_v1,check_commitalso checks the two new flags. Any other value stops the driver.8c130fe1faddsLADDER_SHAandLADDER_BYTESsettings, which default to the d713 ladder. Underblock_v1,verify_inputsrefuses a ladder without the per-blockpumaarray.75d689551mergesmain(a21fa3b9b), which has Refuse an empty digest for unreadable files in the Route A driver #1653. The one conflict was intest_route_a_driver.py, where both sides added tests. Both sets stay, and Refuse an empty digest for unreadable files in the Route A driver #1653's test now callsrun_driver_settings.826c5ebd4says thatblock_v1is for a base the driver builds itself (from Vahid's review). The Modal default-pool registration keeps the legacy location flags, and no plan can pass--location-rule. The README and the Modal runbook say not to hand a Modal base to ablock_v1run, because the driver skips a base stage that is already accepted.Settings F18 needs from this branch
census_cps_2025.h5inSTORAGEandasecpub26csv.zipinEDU, beside the 2023 and 2024 files.LOCATION_RULE=block_v1.mainwithtools/build_us_block_ladder_artifact.py, set asLADDER,LADDER_SHAandLADDER_BYTES. The ladder pointer gives the file and itsroute_a.envlines.route_a.shbuilds itself, not a Modal base.--resolvenames (Route A driver: name main's pins, pin the sync interpreter, check the emitter #1650).Checks
shellcheck, which this Mac does not have.ruff checkandruff format --checkpass on the two changed test files.bash -npasses on the driver and on the settings example.main(75d689551): the driver, ASEC pool, lineage class, local reference and Modal base suites gave 339 passed and 1 skipped.826c5ebd4: the driver, ASEC pool, Modal base and ACS local release suites gave 605 passed and 2 skipped.bash -npasses on the driver and on the settings example.#1653: it merged into
mainasa21fa3b9b, and75d689551merges it here (item 5).🤖 Generated with Claude Code