Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
a602ccd
Grade frames that mix CPS and ACS rows in the ESI gates (PR 0, d2283)
MaxGhenis Nov 17, 2026
8770b90
Keep main's diagnostics in the default ESI refusal (PR 0 review)
MaxGhenis Nov 18, 2026
8d291c9
Word the ESI refusal hint as the code behaves (PR 0 verify)
MaxGhenis Nov 18, 2026
9658d65
Carry the ESI premium on the ACS local lane (PR 0, d2283)
MaxGhenis Nov 18, 2026
b83b8bf
Grade the ESI premium in ACS staging and local releases (PR 0, d2283)
MaxGhenis Nov 18, 2026
85c282d
Document ESI premiums on mixed frames and ACS local releases (PR 0, d…
MaxGhenis Nov 18, 2026
1dc4952
Merge main bcb5cba9d into us-esi-acs-lane-pr0
MaxGhenis Nov 18, 2026
c5d11e3
Shadow the ACS local lane's ESI premium gates in the gate battery
MaxGhenis Nov 18, 2026
fab4f4f
Answer the PR 0 lane review (d2283)
MaxGhenis Nov 18, 2026
4e882d3
Merge main 402c3587d into us-esi-acs-lane-pr0
MaxGhenis Nov 18, 2026
24a417c
Answer the independent review of the ESI lane (PR 0, d2283)
MaxGhenis Nov 20, 2026
58ea1b5
Register the strike_benefits reviewed fill on ACS rows
juaristi22 Nov 17, 2026
e7b22c4
Add a pre-R2 check for counties with an empty SOI AGI row
juaristi22 Nov 17, 2026
75b5676
Add a post-staging check of R2's reviewed-fill rules
juaristi22 Nov 17, 2026
7a37db2
Compute the county AGI pre-check with the engine, as R2 stores it
juaristi22 Nov 17, 2026
165ce75
Give the counties R2 always refuses their own exit status in the AGI …
juaristi22 Nov 17, 2026
811af72
Accept an ACS-only never-default null only where an R2 stage fills it
juaristi22 Nov 17, 2026
6f1d526
Hold back a null never-default column only where an R2 stage fills it
juaristi22 Nov 17, 2026
d740047
Describe the pre-R2 checks without the proof of concept's drop flag
juaristi22 Nov 20, 2026
499d31f
Read AGI's dependencies in the AGI check's own year
juaristi22 Nov 20, 2026
c0b792a
Record the staging's engine and donor location; refuse another engine…
juaristi22 Nov 20, 2026
ae091ce
Test that a certified national build is a donor staging can name
juaristi22 Nov 20, 2026
ac3d4ca
Give every county's SOI rows support in minimum support (#1661)
juaristi22 Nov 20, 2026
26c36d5
Keep the Build O donor limitations to the donors they describe
juaristi22 Nov 20, 2026
8db234e
Add the County Files final build runbook (#1661)
juaristi22 Nov 20, 2026
b6cf0ba
Say where the rehearsal ends before the register re-review
juaristi22 Nov 20, 2026
1d865e7
Merge #1676's head (ba410438e) into the County Files line
juaristi22 Nov 20, 2026
134afc6
Follow reads inside the engine's helper functions, as an opt-in view …
juaristi22 Nov 20, 2026
5cee14f
Read AGI's closure through helpers in the AGI check (#1675)
juaristi22 Nov 20, 2026
42f59df
Answer the second independent review of the ESI lane (PR 0, d2283)
MaxGhenis Nov 20, 2026
fde2383
Answer the third independent review of the ESI lane (PR 0, d2283)
MaxGhenis Nov 21, 2026
68cf15a
Draw WIC and EITC take-up for the ACS local lane's ACS rows (#1154, #…
juaristi22 Nov 24, 2026
3a699e9
Merge #1670 (the ESI employer premium on the ACS local lane) at fde23…
juaristi22 Nov 24, 2026
3daa520
Describe policyengine-us 2.145.3 in the lane's texts; require the lin…
juaristi22 Nov 24, 2026
38524a2
Re-review the ACS local reviewed-fill register on policyengine-us 2.1…
juaristi22 Nov 24, 2026
1f83338
Keep first-pass county support at its PUMA's AGI mix (#1661)
juaristi22 Nov 24, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,11 @@ for what each mode contains and where the build records it. Its
`--l2-basis chi_square` and `--mass-parametrization softmax` options (defaults:
the historical `record` and `projection`) penalize distance from the design
weights; see [penalized calibration toward the design weights](docs/calibration-l2-basis.md)
for the algebra, the evidence and the measured frontier.
for the algebra, the evidence and the measured frontier. The chain needs a
donor release that carries `employer_sponsored_insurance_premiums`: its
staging build transfers the column onto the ACS spine, and finalize grades it
on the calibrated artifact with both ESI premium gates. See
[ACS local releases](docs/us-esi-employer-premiums.md#acs-local-releases).

National and ACS local-area builds now use the same typed calibration
diagnostics writer, which publishes schema 9: the schema-8 document builders
Expand Down
4 changes: 4 additions & 0 deletions changelog.d/1154-acs-local-wic-eitc-take-up.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
The ACS local lane draws WIC and EITC take-up for its ACS rows instead of leaving the engine default, `True`, under which every eligible ACS person took WIC up and every eligible ACS tax unit claimed the EITC (microcosm#1154, microcosm#1675).

- WIC: staging runs the national `wic_claim_input` generator, unchanged, on the ACS-only frame after the shared transfer has completed `is_pregnant` and `own_children_in_household`, and before pooling (`acs_local_wic_take_up`, `build_optional_acs_multispine(wic_take_up=True)`, the design of microcosm#1156). The donor's decisions are kept, and must be complete before the ACS spine is loaded. The release tool refuses a null `takes_up_wic_if_eligible` before any reviewed fill (`NEVER_DEFAULT_FILLED`), the take-up stage refuses an incomplete column, and the take-up gate grades it on both spines.
- EITC: the release tool's take-up stage fills the ACS tax units' `takes_up_eitc` with the take-up contract's seeded draw at the National Taxpayer Advocate's rates by number of qualifying children, as it already draws TANF. At the default, the state SOI EITC targets shrank the weights of eligible ACS units instead of choosing claimants among them. The receipt records the ACS share by number of children, the assignment digest covers the cells, and the take-up gate grades the flag on both spines and the ACS share against the contract's band.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
The ACS local lane's published limitation texts and staging receipts now describe policyengine-us 2.145.3, and the release tool requires a new national donor's reviewed lineage from calibrate on (microcosm#1661, microcosm#1675).

- `weeks_worked` is an input on 2.145.3 (policyengine-us#9660), so the consumer export carries it: the work and disability receipt records it as exported (`input_since`), and the limitation texts no longer say it is held back.
- The entry-clock texts name the 2.145.3 readers of `years_since_us_entry`, SNAP's qualified-alien waiting period among them, instead of 2.2.1's.
- The vehicle, CHIP and take-up texts cite 2.145.3; the take-up text says that EITC and WIC take-up are now drawn on ACS rows.
- `_require_reviewed_donor_lineage` runs at the start of calibrate instead of materialize, and finalize checks again. Materialize writes nothing the entry decides, so R1 and materialize can run while the donor's evidence is reviewed; calibrate fixes the commit that package accepts.
- The County Files runbook covers the ESI donor checks, the WIC and EITC draws, the lineage review and when to commit it, and the projection steps that are not automated.
5 changes: 5 additions & 0 deletions changelog.d/1675-acs-local-register-2145.changed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
The ACS local lane's reviewed-fill register is re-reviewed on policyengine-us 2.145.3 (microcosm#1675). `reviewed_against` is 2.145.3, and each entry lists every means-tested program the engine's dependency walk reaches, through the engine's helper functions as well (`follow_helpers`), with one note per program; pairs reached only through paths that do nothing in a release pass are listed as harmless.

- `second_home_mortgage_interest` leaves the register (no longer an engine input, PolicyEngine/policyengine-us#9605), and so does `takes_up_eitc`: R2 now draws it, and it joins `NEVER_DEFAULT_FILLED` and the pre-check's stage-filled list.
- Five entries are added for the next national donor: the four SCF student-debt inputs, which reach no program, and `weeks_worked`, blank on ACS persons under 16.
- Notes that counted California CARE, FERA or CVRP, or Missouri SSP, effects say that those programs pay nothing on these files, and two state-benefit verdicts that rested on them alone are harmless. The PTC's Medicaid bar is named where it sits on 2.145.3, `is_aca_marketplace_enrollee`.
1 change: 1 addition & 0 deletions changelog.d/454-us-acs-local-esi-premiums.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The US ACS local release lane transfers `employer_sponsored_insurance_premiums` onto its ACS spine (microcosm#454). Before, those rows were null, and the release tool's `fill_reviewed_nulls` refused the staging frame of any donor that carries the column. The staging build now qualifies the donor before the ACS fetch, transfers the column in a lane-only pass fitted on the donor's ASEC observations, which carry measured wages, and runs that pass after the hours and income passes and immediately before the shared transfer; on the test fixture every other value is byte-equal with and without it. A new kernel in `esi_premiums`, `with_us_esi_premium_pool_anchor`, then clears the premium for ACS people without wages and scales the rest so both spines carry the same weighted premium per unit of household mass, which keeps the lane-wide column at the donor release's own. The declared ACS transfer plan does not change. The ESI summary and both ESI gates take a new keyword, `allow_transferred_rows`, so they can grade a frame that mixes CPS rows with transferred rows: with `True`, which only the lane passes, the CPS rows get the MEPS-IC recomputation and the gates compare the transferred rows with them, and a row the CPS record id and raw coverage fields cannot classify fails both gates. The default, `False`, keeps the rule the base build and the fiscal-refresh release tool already applied: every row must carry the raw ASEC coverage fields, and the CPS record id is not read. The lane runs both gates on the staging frame and, in finalize, on the calibrated artifact; the gate report records `esi_premiums_signal` and `esi_premiums_anchor` bound to the artifact bytes, its `input_coverage` entry passes only if both do, and package by default refuses a report without passing verdicts for the bytes it packages. `us/gates.json` also declares the two finalize gates as `us_local_esi_premiums_signal` and `us_local_esi_premiums_anchor`, bound to the lane's own row-kind gates, so the gate battery's shadow compares them like the release's other gates and records `--allow-esi-premium-gaps` as their waiver. `--allow-esi-premium-gaps`, on the staging tool and the release tool, records a refused donor or a red verdict for a diagnostic build instead of failing; with it, package also takes a red verdict bound to the packaged bytes that finalize recorded as waived (`enforced: false`), and no other; the shadow keeps each entry's waiver as finalize had it and shows it only on the gate report bytes that finalize run wrote, or, when that run wrote none, on a package run with no gate report at the selected path, which package refuses; otherwise, or when it cannot read the record, it records the waiver as unknown, with the reason; a Modal plan can pass it to the release tool only. The staging tool refuses a donor with any row that lacks a raw coverage field or a CPS record id, and the ESI gates turn a mixed frame whose CPS rows carry no weighted anchor evidence, or whose household mass, employer premium or MEPS-IC share sums past the largest float, or whose anchor-universe total does, into a red verdict.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
`tools/check_us_acs_county_agi_support.py` reads AGI's dependency closure through the engine's helper functions (`follow_helpers`), so it now sees the AGI inputs read only inside a helper, such as the two Form 7206 inputs of the self-employed health insurance deduction (microcosm#1675). Through the `get_behavioral_response_measurements` helper, the behavioral responses read `household_net_income`, and through it every benefit and the take-up flags R2's stages fill. An engine pass without a reform, as R2's and the check's are, never reads through them: `labor_supply_behavioral_response` and `capital_gains_behavioral_response` return 0 while the simulation has no baseline, and the labor supply elasticity effects are computed only where the labor supply response is nonzero. So the walk stops at those four variables too (`NO_REFORM_UNREAD`), and the report lists them in `agi_closure_stops_at`.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
`tools/check_us_acs_county_agi_support.py` decides which never-default nulls it may hold back from the AGI computation with AGI's dependency closure in its own year (R2's, 2024): the walk stops at an above-the-line deduction that year's `gov.irs.ald.deductions` does not list, whose formula then reads nothing. On policyengine-us 2.145.3 the 2020-only charitable deduction for non-itemizers reads the itemization choice, so the static closure reached four take-up flags R2's stages fill (SSI, Medicare, TANF and housing assistance), and the check would have refused every staging file R2 accepts. The report records where the walk stopped (`agi_closure_stops_at`).
1 change: 1 addition & 0 deletions changelog.d/us-acs-county-agi-support-check-922.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
`tools/check_us_acs_county_agi_support.py` lists, before the ACS local release (R2) runs, the counties whose county IRS SOI AGI row R2 would build empty: counties with households but none with a nonzero AGI (microcosm#922; microcosm#1630 review, finding 1). The state AGI row stores no zero, so such a county makes `attach_surface` refuse the run after the materialize engine pass. The check computes the value R2 stores: it loads the staging frame and its summary as R2 does, holds back the formula-owned columns, fills the reviewed nulls with R2's own functions, and runs policyengine-us for the household sum of `adjusted_gross_income` in household chunks. That sum is the production SOI materializer's AGI measure (an engine-tier test compares them), so income held by a dependent, or by a tax unit without an adult, counts as the engine counts it: not at all. A null in a never-default column that one of R2's own stages fills (the set the reviewed-fill pre-check uses) is held back only while its nulls are on ACS rows and the AGI does not read it; every other never-default null is refused, as R2's fill step refuses it: a null on a donor row, in a column no R2 stage fills, or in one the AGI reads. An engine-tier test checks that no stage-filled column is an AGI input. With `--puma-ladder` it applies R2's own minimum-support moves first, and lists the counties that R2's `check_support` refuses before its engine pass: a county outside the ladder, and a ladder county without a household-universe record after the moves (as R2 does, it moves no household when a county is outside the ladder). It exits 2 when a county is at risk, and 3 when R2 would refuse the run (3 takes precedence).
1 change: 1 addition & 0 deletions changelog.d/us-acs-county-soi-support-1661.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
On a county SOI surface, minimum county support in the ACS local release also gives every county's SOI rows support (microcosm#1661). Materialize computes each household's AGI as the state SOI AGI row stores it, one 100,000-household chunk at a time, before the support step. The step then moves `--county-min-support` same-PUMA households with a positive AGI into any county whose households all store an AGI of 0, whose county AGI row would otherwise be empty and refused after the engine pass. A county it fills because it has no household gets one with a positive AGI: when none of its K picks in rank order has one, the K-th gives way to the next household in rank order that has one (`"reason": "positive_agi"`), so the other picks keep their PUMA's AGI mix, and `minimum_support.soi_support.first_pass` reports the movers' share with a positive AGI beside their PUMAs' share. No donor county is left without a household with a nonzero AGI. A county that still has none is refused before the engine pass. The moves are recorded in `county_support.json` (`minimum_support.soi_support`, moves with `"reason": "soi_support"`) and replay as before. `tools/check_us_acs_county_agi_support.py` applies the same moves.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The ACS local release keeps its five inherited Build O donor limitations (the SSI aged-band collapse, the miscellaneous income loss side, the tip-return count, the 57,240-household selection and the Social Security erasure) for the donors they describe. It refuses, at the start of materialize and in finalize, a staging whose donor is a US national build of `microcosm-us-2024-national` or `microcosm-us-2024-evidence` that has no entry in `REVIEWED_DONOR_LINEAGES`, so a release on a new national donor cannot publish the Build O lineage's limitations as its own (microcosm#1661). An entry lists the inherited limitations that a review of the donor's own evidence found to hold; the others leave its releases' register.
1 change: 1 addition & 0 deletions changelog.d/us-acs-reviewed-fills-precheck-922.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
`tools/check_us_acs_local_reviewed_fills.py` grades a staging summary's reviewed engine-input nulls against the ACS local release's fill rules in seconds, before the release runs (microcosm#922). It refuses what materialize would refuse (a null in a never-default-filled column, unless the null is on the ACS spine alone and in a column that one of the release's own stages fills there first: the take-up stage's SPM-unit take-up flags and engine-free fills, or the SSI and Medicaid take-up flags; a null ESI premium), builds the fill records the release would write with the engine defaults the release resolves, and runs the release's own finalize gate (`acs_local_reviewed_fill_consumer_gate`) on them, which otherwise refuses an unregistered fill hours into the run. It exits 2 when the release would refuse.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ACS staging (`tools/_legacy/build_us_acs_multispine_base.py`) records the policyengine-us and policyengine-core it ran on (`engine_versions`) and, under either location rule, the donor base's recorded location rule (`base.location`). The ACS local release refuses at the start of materialize a staging summary that records another policyengine-us, or none, since staging audits only its own engine's input nulls (microcosm#922). `tools/check_us_acs_local_reviewed_fills.py` reports the same refusal. A test checks that the legacy rule keeps a `block_v1` donor's block and the geography derived from it, as the County Files staging on a `block_v1` national donor relies on.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The ACS local lane's reviewed-fill register (`acs_local_reviewed_fill_consumers.yaml`) lists `person.strike_benefits` (microcosm#922). Since the local income pass's OIP predictor took strike benefits as a component, every ACS staging donor carries the column, but nothing transfers it, so the release fills 0 on every ACS person, and finalize's reviewed-fill gate refused that fill as unregistered. The entry names its 13 means-tested consumers with the verdict harmless: no pinned ASEC respondent reports strike benefits, so every donor value is 0 as well.
1 change: 1 addition & 0 deletions changelog.d/us-index-follows-helper-reads-1675.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
`PolicyEngineUSVariableMetadataIndex(follow_helpers=True)` reads through the engine's module-level helper functions in `variables/` (microcosm#1675). The static consumer index interprets such a helper once per distinct call context and records its reads under the helper's own name, which `variable_dependency_closure` does not follow, so a variable's graph stopped where its formula called one. On policyengine-us 2.145.3 that hid, among others, free and reduced-price school meals' reads through `school_meal_daily_rate` and the self-employed health insurance deduction's Form 7206 inputs. The index now also records each helper read under every variable whose formula reaches that call context, directly or through other helpers (`helper_consumers`), and the `follow_helpers` view walks them. The default view is unchanged, receipt for receipt, so the pool's pinned SSI dependency contract and the US engine ABI lock stay as they are. The reviewed-fill register's engine-tier walk uses the new view.
15 changes: 15 additions & 0 deletions docs/agent-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,21 @@ A source-enrichment publisher claim widens the range
consumers accept, not what was checked: the bundle's
`compatibility.claim_measurement` names the one version the probe measured.

The ACS local-area chain produces `employer_sponsored_insurance_premiums` on
its ACS spine itself (microcosm#454): the staging build
(`tools/build_us_acs_multispine_base.py`) transfers it from the donor
release's ASEC observations and holds it to the donor rows' premium per unit
of household mass, and both ESI premium gates run on the staging frame and
again in finalize on the calibrated artifact. A donor built before the
`meps_esi_premiums` stage is refused. `--allow-esi-premium-gaps`, on the
staging tool and the release tool, is for diagnostic builds only: it records a
red verdict in the staging summary and the gate report instead of failing.
Modal staging plans cannot pass it. The lane's calls to the ESI gates pass
`allow_transferred_rows=True`; the base build and the fiscal-refresh release
tool keep the default, which refuses any row without the raw ASEC coverage
fields, so do not pass it on those paths. See
[the ESI premium note](us-esi-employer-premiums.md#acs-local-releases).

A US release or release-gate preflight that receives a multispine pool through
`--base-h5` must authenticate its sibling terminal manifest. A current stacked
pool whose terminal battery is red remains fail-closed unless the operator
Expand Down
4 changes: 2 additions & 2 deletions docs/gate-battery-contract.md
Original file line number Diff line number Diff line change
Expand Up @@ -327,10 +327,10 @@ local publication work in #146; they are evaluated in their own signed
accounting.

US adoption is in progress (microcosm#1585 item 11), in four steps, and
`us/gates.json` now declares 143 entries, each US build tool's share of
`us/gates.json` now declares 145 entries, each US build tool's share of
them a scope of its own (`us_runtime/gate_scopes.py`): `us_base` (Route
A's base, 37), `us_pool` (the multispine pool's stacked path, 6),
`us_national` (the national release, 76) and `us_local` (ACS local, 24). A
`us_national` (the national release, 76) and `us_local` (ACS local, 26). A
scope owns the entries whose id starts with its name, checked
closed-world. In this step the battery runs **in shadow**: each tool still
gates as it did, and beside each gate it evaluates the declared entry
Expand Down
Loading