Skip to content
1 change: 1 addition & 0 deletions changelog.d/us-input-batch-aggregate-refusal.changed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The US release's five input-stage passes over household batches (ACA source inputs, Medicaid eligibility, December SSI amounts, SNAP eligibility and the other-health-insurance premiums) now refuse a batch engine that computed a population-aggregate variable, a policyengine-us formula that sums or ranks over everyone in its engine, as target compilation already did. The refusal is on when a pass splits its households into more than one batch, or when a caller passes `refuse_population_aggregates=True`; a pass that runs the whole pool in one batch keeps it off. Before building any engine, a pass with more than one batch or the refusal on also refuses a frame whose groups span households, and a pass with the refusal on refuses a positive Medicaid claiming tax unit ID that names no tax unit in the person's own household. Every batch engine is released before the next one is built, also when a batch fails. In policyengine-us 2.2.1 none of these passes reaches a population-aggregate variable, so their outputs are byte-identical to before. The other-health-insurance premiums now release their engines too: the PolicyEngine-US adapter gains `build_microsimulation` and `calculate_variables`, which `materialize` calls, so a caller can check and release the engine it computes on. That pass runs a youngest-generation garbage collection after each batch and a full one when it ends, instead of a full collection after every batch. The local-area build switches the refusal on for its donor and ACS views even when a view fits in one chunk, because neither view is the whole population. The household partition, the selection, the frame checks, the refusal and the garbage-collection helpers move from the release tool into `microcosm.build.us_runtime.household_batches`.
16 changes: 8 additions & 8 deletions docs/evidence/spec-engine/us-f0-coverage.json
Original file line number Diff line number Diff line change
Expand Up @@ -1642,13 +1642,13 @@
"compiler_ir.node_slices"
],
"expected": {
"map_sha256": "9c809470367a211c88ba047211ad9461850ca56100af41d56d807312ee8ccd5f",
"protocol_sha256": "eea4cf01a4924295e760edbe74e368dc6a48d66334ffe9a04d2fa13beebee2c5"
"map_sha256": "44e5d87c927a800aa5f232e61896e70c949e1d5607722691e0c8b732284a70c4",
"protocol_sha256": "5a1264820d12f7e448126f56a65feaba96d6d2fbb30540b2dc84d8485f141ba1"
},
"failures": [],
"observed": {
"map_sha256": "9c809470367a211c88ba047211ad9461850ca56100af41d56d807312ee8ccd5f",
"protocol_sha256": "eea4cf01a4924295e760edbe74e368dc6a48d66334ffe9a04d2fa13beebee2c5"
"map_sha256": "44e5d87c927a800aa5f232e61896e70c949e1d5607722691e0c8b732284a70c4",
"protocol_sha256": "5a1264820d12f7e448126f56a65feaba96d6d2fbb30540b2dc84d8485f141ba1"
},
"status": "covered"
},
Expand All @@ -1663,7 +1663,7 @@
"compiler_ir.seed_stream_map"
],
"expected": {
"implementation_sha256": "eea4cf01a4924295e760edbe74e368dc6a48d66334ffe9a04d2fa13beebee2c5",
"implementation_sha256": "5a1264820d12f7e448126f56a65feaba96d6d2fbb30540b2dc84d8485f141ba1",
"protocol": "legacy-v1",
"streams": [
"build_model",
Expand All @@ -1684,7 +1684,7 @@
},
"failures": [],
"observed": {
"implementation_sha256": "eea4cf01a4924295e760edbe74e368dc6a48d66334ffe9a04d2fa13beebee2c5",
"implementation_sha256": "5a1264820d12f7e448126f56a65feaba96d6d2fbb30540b2dc84d8485f141ba1",
"protocol": "legacy-v1",
"streams": [
"build_model",
Expand Down Expand Up @@ -2585,7 +2585,7 @@
"country": "us",
"schema_id": "country_spec",
"schema_version": 1,
"spec_sha256": "4c3c3beab01e381aadfea510f61ca28117670d35c6bed1e4bb0df2fa1be07b2e"
"spec_sha256": "7e282f7fd459c63a25f1ad8b57fc88cb118088c353e81dce26080ad87f266375"
}
},
"report_schema_version": 3,
Expand All @@ -2595,7 +2595,7 @@
"country": "us",
"schema_id": "country_spec",
"schema_version": 1,
"spec_sha256": "4c3c3beab01e381aadfea510f61ca28117670d35c6bed1e4bb0df2fa1be07b2e"
"spec_sha256": "7e282f7fd459c63a25f1ad8b57fc88cb118088c353e81dce26080ad87f266375"
},
"status": "pass"
}
Original file line number Diff line number Diff line change
Expand Up @@ -418,8 +418,8 @@
# Importing torch inside the solve functions that use it, and the QRF chain
# handing each worker a record of its caller's lock-file check, move both
# again: solve's and puf_qrf_chain's attested bytes change; no draw does.
"seed_map": "9c809470367a211c88ba047211ad9461850ca56100af41d56d807312ee8ccd5f",
"seed_protocol": "eea4cf01a4924295e760edbe74e368dc6a48d66334ffe9a04d2fa13beebee2c5",
"seed_map": '44e5d87c927a800aa5f232e61896e70c949e1d5607722691e0c8b732284a70c4',
"seed_protocol": '5a1264820d12f7e448126f56a65feaba96d6d2fbb30540b2dc84d8485f141ba1',
"source_manifest": "dc3879886d2a69f20fb982a675d7fb322c0e4017afef6471be54b0ee3cbd2af6",
"take_up": "9522ce40f7dea569312dd7a7beb474e5a5afadd2f1e10cb5876534c3ef623d35",
"tail": "565f0ceeadab69d3e96a886a00dd0305f7425fa3acde24d12ba48db2b37d5fc0",
Expand Down
Loading
Loading