Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
499bdc6
Read the ACS ACA take-up tables from the SSI/Medicaid compile (#1720)
juaristi22 Nov 25, 2026
6f7d34a
Map ACS rows' marital, military and occupation status from ACS items …
juaristi22 Nov 25, 2026
d7fb41e
Attribute ACS rows' self-employed health premiums with the donor's ru…
juaristi22 Nov 25, 2026
9dff7c5
Draw ACS rows' weeks unemployed and three deferrals from the ASEC rol…
juaristi22 Nov 25, 2026
21f14af
Run the donor's SIPP voluntary-filing model on ACS tax units (#1720)
juaristi22 Nov 25, 2026
5305c10
Set ACS group-quarters units' housing take-up flag False (#975, #1720)
juaristi22 Nov 25, 2026
58edfbb
Draw ACA take-up and the plan ratio on ACS tax units at donor residua…
juaristi22 Nov 25, 2026
58acd12
Run the ACS ACA take-up stage in R2's materialize, report-only (#1720)
juaristi22 Nov 25, 2026
60f41a4
Never default-fill ACA take-up or the plan ratio; drop their entries …
juaristi22 Nov 25, 2026
07b3e1e
Document the ACS ACA take-up stage and add its changelog fragment (#1…
juaristi22 Nov 25, 2026
01b029b
Write ACS rows' employer and direct-purchase coverage from HINS1/HINS…
juaristi22 Nov 25, 2026
bc745c3
Merge PR A (ACS rows' own inputs in R1, A1-A5) at 5305c1043 (#1720)
juaristi22 Nov 25, 2026
e0f1a20
Isolate the direct-purchase type choice in one function (#1720)
juaristi22 Nov 25, 2026
af2b57b
Merge PR A's A6 (coverage from HINS1/HINS2) at 01b029b01 (#1720)
juaristi22 Nov 25, 2026
657d4e6
Restate the ACA stage's anchor and eligible-pool texts after A6 (#1720)
juaristi22 Nov 25, 2026
efd5ae8
Merge PR A's A6 refactor at e0f1a20cf (#1720)
juaristi22 Nov 25, 2026
cf65a13
Read the ACA stage's anchor from the manifest's own column (#1720)
juaristi22 Nov 25, 2026
f862dec
Split ACS direct-purchase coverage with HIMRKS code 1 (#1720)
juaristi22 Nov 25, 2026
40fcf36
Write the ACA stage's subsidized-Marketplace anchor on ACS rows (#1720)
juaristi22 Nov 25, 2026
b0fedaf
Complete the ACA anchor's receipt and pin its staging path (#1720)
juaristi22 Nov 25, 2026
7726a08
Share the Medicaid stage's keyed anchor thinning in one helper (#1720)
juaristi22 Nov 25, 2026
1b11e02
Thin ACS ACA anchors above a state's residual return count (#1720)
juaristi22 Nov 25, 2026
b78f1d9
Merge PR A's HIMRKS split and anchor at 40fcf36fb (#1720)
juaristi22 Nov 25, 2026
99355b3
Merge PR A's anchor receipt completion at b0fedaf42 (#1720)
juaristi22 Nov 25, 2026
e6f1c0d
Re-pin the US seed protocol and map digests after the weeks pass (#1720)
juaristi22 Nov 25, 2026
1e76cf8
Name the surviving-spouse and taker-selection effects in the limitati…
juaristi22 Nov 26, 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
1 change: 1 addition & 0 deletions changelog.d/1720-acs-local-aca-take-up.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Assign ACA take-up and the Marketplace plan ratio on the ACS tax units of the ACS local-area release instead of shipping the engine defaults, universal take-up of the premium tax credit at the benchmark plan (#1720). Materialize runs one more household-batched engine pre-pass, over the donor households and then the ACS households, after the SSI and Medicaid assignment, and runs the fiscal lane's own `aca_marketplace_inputs` manifest stage on the ACS tax units against what the donor rows leave of each state count: CMS APTC recipients and the IRS SOI premium tax credit returns and amounts, the last two being the 102 state PTC rows of R2's default surface. Where both SOI tables exist the stage's joint step decides the takers, as on the donor; the CMS people are reported (#168). The stage reads the manifest's own anchor column (`reported_has_subsidized_marketplace_health_coverage_at_interview`), which staging writes on ACS persons from the PUMS subsidy item `HIMRKS`. Where a state's anchors weigh more than its residual return count, each stays anchored with probability residual / anchored weight on its own keyed draw: the Medicaid stage's `HINS4` rule, now one shared helper (`microcosm.build.anchor_thinning`) that both stages call, the Medicaid stage's draws unchanged. Without a bronze count the plan ratio is the clipped (premium + credit) / SLCSP of each taker. The feed is compiled once for the SSI, Medicaid and ACA counts. The assignment is recorded in the checkpoint (`acs_local_aca_take_up.npz`), calibrate requires it and the consumer export must reproduce its digest. Both columns join `NEVER_DEFAULT_FILLED` and the pre-check's stage-filled list, and leave the reviewed-fill register; the SSI and Medicaid pre-pass, which runs first, reads them at the engine defaults. The new `acs_local_aca_take_up_signal` grade is report-only: it is recorded in `run_identity.json` and as the diagnostic shadow entry `us_local_aca_take_up_materialize`, and never stops a stage.
7 changes: 7 additions & 0 deletions changelog.d/1720-acs-local-coverage-anchors.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
The ACS local lane's staging writes ACS rows' employer coverage and direct-purchase coverage from the ACS items instead of the shared transfer's draws (microcosm#1720, A6; `acs_local_coverage_anchors`, `build_optional_acs_multispine(coverage_anchors=True)`).

- The loader reads four more optional person items: HINS1 (insurance through a current or former employer or union), HINS2 (insurance purchased directly from an insurance company), HIMRKS (Subsidized Marketplace Coverage: 0 categorically ineligible for a subsidy, 1 direct purchase with a premium subsidy, 2 direct purchase without one) and its allocation flag FHIMRKSP. HIMRKS and FHIMRKSP stay on the staged ACS person rows as raw source items, under the names `ACS_HIMRKS` and `ACS_FHIMRKSP` (as `ACS_MIL`).
- `has_esi` is HINS1 == 1, the counterpart of the donor's ASEC `NOW_GRP`. `has_esi` bars the premium tax credit, CHIP and the self-employed health insurance deduction, so those pools are now measured on ACS rows.
- The two direct-purchase flags follow HINS2. Where it is 2, both are False, whatever HIMRKS says (such conflicts are counted). Where it is 1, HIMRKS code 1 sets the Marketplace flag True and keeps the drawn non-Marketplace flag (ruled 25 Nov 2026); under codes 0 and 2 and a blank, the transfer's draws stand unless both are False, and then one draw, keyed on SERIALNO and SPORDER, picks the type at the donor ASEC role's shares among direct purchasers by age band (under 65, 65 and over). Code 2 cannot tell Marketplace coverage at full price from other direct purchase, and code 0's universe is not documented, so no rule reads either. The choice among direct purchasers is one function, `choose_acs_direct_purchase_types`.
- The step runs on the ACS-only frame after every transfer, so the shared plan, its chain and every other draw are unchanged (a test proves it), and before the self-employed premium attribution, which now reads the native `has_esi`. Its receipt (`acs_local_coverage_anchors` in the staging summary) records the agreement of each native value with the draw it replaces, the donor's type shares, the HIMRKS codes among HINS2 = 1 rows (row counts and weighted shares), the allocated count, the agreement of code 1 with the drawn Marketplace flag, and the HINS2 = 2 conflicts; it grades nothing. No register entry changes: the three columns had none.
- The step also writes the ACA manifest stage's own anchor column, `reported_has_subsidized_marketplace_health_coverage_at_interview` (its name is read from the manifest's `reported_true_anchor`), on ACS rows: True where HINS2 == 1 and HIMRKS == 1, Census-allocated values included; False on every other ACS row (ruled 25 Nov 2026, "Yes, with thinning"; the release's ACA stage does the thinning). Donor rows get no value: the donor reads no subsidized-coverage item (`NOW_MRKS` is unread). After pooling, in the staging H5 and in the release's load, the column is present with donor rows missing (never False); the release's ACA stage reads it on ACS persons only, a missing value as False. It is a source column, not an engine input, so the input-null audit, the reviewed-null register, its pre-check and the release's reviewed-null fill do not read it, and it is not a transfer target, so no draw moves. The receipt's `aca_anchor` gives the anchored rows and their weighted share, the allocated anchored rows and their weighted share of the anchor, and the conflicts (HIMRKS 1 with HINS2 2, rows and weighted share; with HINS2 blank, rows). It thins, draws and grades nothing.
6 changes: 6 additions & 0 deletions changelog.d/1720-acs-local-se-health-premiums.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
The ACS local lane's staging runs the donor's self-employed premium attribution (`attribute_us_se_health_premiums`, unchanged) on ACS rows, so they carry `is_self_employed` and `health_insurance_premiums` instead of the engine defaults, `False` and 0, under which no ACS person got the self-employed health insurance deduction (microcosm#1720; `acs_local_se_health_premiums`, `build_optional_acs_multispine(se_health_premiums=True)`).

- The flag is the donor's rule, positive Schedule C income (native SEMP plus the transferred SSTB leaf), not ACS COW 6 or 7; the premium is the transferred non-Part-B premium of a flagged person under 65 with no Social Security disability and no employer coverage. SEMP's blank under 15 reads as 0, the reviewed fill's value.
- The stage runs on the ACS-only frame after the shared transfer, whose post-transfer structure settles the self-employment components it reads, and before pooling. It fills only missing cells. Its receipt (`acs_local_se_health_premiums` in the staging summary) records the rule, the flagged rows, the attributed premiums, the premiums the Medicare proxy and employer coverage withheld, and the flag's agreement with COW 6 or 7; it grades nothing.
- The ACS rows' MAGI is then final before the release tool assigns Medicaid take-up; the national build applies the attribution in another order (microcosm#1689).
- The two columns leave the reviewed-fill register and join the release tool's `NEVER_DEFAULT_FILLED`.
7 changes: 7 additions & 0 deletions changelog.d/1720-acs-local-status-inputs.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
The ACS local lane's staging maps seven person inputs on ACS rows from ACS items instead of leaving the engine default, `False` (microcosm#1720; `acs_local_status_inputs`, `build_optional_acs_multispine(status_inputs=True)`).

- `is_separated` and `is_surviving_spouse` follow the donor's `relationship_inputs` rule on the ACS rows' `A_MARITL`, which the loader maps from MAR (MAR 4 is code 6, MAR 2 is code 4). The rule is now one shared function, `us_marital_status_inputs`, which the donor stage calls too; donor values are unchanged.
- `is_military` is ACS MIL == 1 (now on active duty); MIL is blank under 17, which reads as False. The donor's rule is a military occupation (`POCCU2` 52); the receipt records how often the two rules, and ESR 4 or 5, agree on ACS rows.
- `has_never_worked`, `is_computer_scientist`, `is_farmer_fisher` and `is_executive_administrative_professional` follow the donor's `org_wages` rule (now the shared `us_flsa_occupation_flags`) on the ACS rows' native `detailed_occupation_recode`.
- The stage runs on the ACS-only frame before any transfer and fills only missing cells. Its receipt (`acs_local_status_inputs` in the staging summary) records each rule, its source columns, the filled and true rows and the weighted shares; it grades nothing.
- The seven columns leave the reviewed-fill register and join the release tool's `NEVER_DEFAULT_FILLED`: a null there now means a staging run from before this change.
7 changes: 7 additions & 0 deletions changelog.d/1720-acs-local-voluntary-filing.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
The ACS local lane's staging runs the donor release's SIPP voluntary-filing model on ACS tax units, so they carry `would_file_taxes_voluntarily` instead of the engine default, `False`, under which no ACS unit was a voluntary filer and Medicaid's non-filer rules applied to more of them (microcosm#1720; `acs_local_voluntary_filing`).

- The model is the donor's own (`voluntary_filing`): the weighted QRF on the pinned full SIPP 2023 file's December filing answers, its five predictors and forest size, and the build seed. It runs through a new table-level entry point, `impute_us_voluntary_filing_from_tables`, which `impute_us_voluntary_filing` now calls too; donor values are unchanged.
- The predictors come from a view of the ACS tax units: tax-unit wages (native WAGP; the blank under 15 reads as no wages), the head's age and sex, `JOINT` filing status and the household's persons under 18.
- Staging reads the SIPP file it already resolves for the SSI disability model, so nothing is downloaded twice; the loader checks the file's length and sha-256 again.
- The stage runs on the pooled frame after the SSI disability stage and before the input-null audit, and fills only missing ACS cells. Its receipt (`acs_local_voluntary_filing` in the staging summary) records the SIPP identity, the fill counts and the ACS and donor weighted true shares; it grades nothing.
- The column leaves the reviewed-fill register, with its EITC and PTC notes, and joins the release tool's `NEVER_DEFAULT_FILLED`.
7 changes: 7 additions & 0 deletions changelog.d/1720-acs-local-weeks-deferrals.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
The ACS local lane's staging draws `weeks_unemployed` and three retirement deferrals (`traditional_401k_contributions_desired`, `roth_401k_contributions_desired`, `roth_ira_contributions_desired`) on ACS rows instead of leaving the engine default, 0 (microcosm#1720; `acs_local_weeks_deferrals`, `build_optional_acs_multispine(weeks_deferrals=True)`).

- A separate, local-lane-only QRF pass on the donor's ASEC observation role (measured ASEC `LKWEEKS`, and the measured `RETCB_VAL` split by the archived shares), the pattern of the local income pass. The shared declared transfer plan is unchanged; the pass refuses any column the shared plan or the income pass draws (the shared plan keeps `traditional_ira_contributions_desired` and `self_employed_pension_contributions_desired`).
- It runs after the shared transfer, so the weeks family can read the transferred `unemployment_compensation`, through one predictor extension of this call alone. Every earlier fit draws before it and each family seeds from its own name; a test proves that every other column, the earlier provenance and the earlier fits are unchanged with and without the pass.
- The donor's own post-processing, now shared functions its PUF-half stages call too: weeks are clipped to 0-52, rounded and 0 without UC (`postprocess_us_weeks_unemployed_predictions`); deferrals are clipped at 0 and the 401(k) deferrals 0 without wages (`postprocess_us_retirement_contribution_predictions`). Donor values are unchanged.
- Its receipt (`acs_local_weeks_deferrals` in the staging summary) records the donor's ASEC coverage, the predictors, the fill and post-processing counts and the ACS shares; it grades nothing. The four columns leave the reviewed-fill register and join the release tool's `NEVER_DEFAULT_FILLED`.
- Deferrals lower AGI on ACS rows. The pooled file already starts below the AGI targets, so the starting fit can move away from them while the records get closer to the donor's.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
The ACS local lane's staging sets `takes_up_housing_assistance_if_eligible` False on every ACS SPM unit in group quarters (household TYPEHUGQ 2 or 3), which has no housing unit; the shared transfer had drawn the flag for them from housing-unit donors (microcosm#975, microcosm#1720; `acs_local_group_quarters_housing`, `build_optional_acs_multispine(group_quarters_housing=True)`).

- A lane-own step on the ACS-only frame after the shared transfer and before pooling, the place of the native receipt anchors. It differs from microcosm#975's proposed design, a structural policy inside the shared transfer, which would move the shared execution contract, the attested `imputation.yaml` entry and the pool lane's pins; the shared plan is unchanged, so housing-unit SPM units keep their draw.
- Its receipt (`acs_local_group_quarters_housing` in the staging summary) counts the group-quarters units by TYPEHUGQ and how many it turned from True to False. It refuses nothing beyond a frame without the columns it reads; an SPM unit without TYPEHUGQ 1, 2 or 3 keeps its draw and is counted.
- The `spm_unit_tenure_type` register entry stays (the RENTER fill stays). Its housing-assistance note is now harmless: the engine pays `hud_hap` times the take-up flag, which is False there. The release tool's and the take-up module's texts that called the flag the open transfer-side fix now describe the step.
7 changes: 7 additions & 0 deletions docs/us-county-files-final-build.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,13 @@ clean && $R2 --stage package $C --out "$RUN/release"
minutes. It then computes each household's AGI (minutes) and runs minimum
support, SOI support included (`county_support.json`). The engine pass
takes about 3 hours.
- Before the AGI, after the SSI and Medicaid take-up, materialize draws the
ACS tax units' ACA take-up and plan ratio after one more engine pre-pass
(time not measured yet) and writes `acs_local_aca_take_up.npz` to the
checkpoint (microcosm#1720). Reported subsidized coverage (HIMRKS)
anchors take-up, thinned by a keyed draw where a state's anchors exceed
its remaining SOI return count. Its grade in `run_identity.json` is
report-only: it never stops the run.
- If the register or the donor's lineage entry is not in the checkout yet,
commit it after materialize and before calibrate (section 3). The `clean`
check before calibrate then holds, and calibrate refuses a donor without
Expand Down
8 changes: 7 additions & 1 deletion docs/us-esi-employer-premiums.md
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,13 @@ file.
self-employment income, Social Security, retirement and investment income,
household head and tenure where both sources observe them. It does not use
ACS's own employer-coverage (`HINS1`), class-of-worker (`COW`) or
employment-status (`ESR`) items.
employment-status (`ESR`) items. Staging does load `HINS1` and writes
`has_esi` from it on ACS rows (microcosm#1720,
`acs_local_coverage_anchors`), but only after every transfer, so the
premium is still drawn without it: an ACS person can carry a premium
without `has_esi`, or `has_esi` without a premium, as with the drawn flag
before. Conditioning the premium on `HINS1` would change the premium pass's
draws.
- **A second verdict on the transferred rows' cells.** The gates recompute the
MEPS-IC assignment on the rows that carry the raw coverage columns. They
compare the transferred rows with those rows and cannot check them against
Expand Down
Loading