Skip to content

Generate complete ACS WIC participation and reject missing release inputs - #1156

Draft
anth-volk wants to merge 7 commits into
mainfrom
fix/acs-local-wic-generation
Draft

anth-volk wants to merge 7 commits into
mainfrom
fix/acs-local-wic-generation

Conversation

@anth-volk

@anth-volk anth-volk commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #1155

Summary

  • Generate ACS-only takes_up_wic_if_eligible after demographic transfer and before combining ACS with donors. Reuse the existing seeded/category-specific WIC generator; preserve donor decisions exactly.
  • Require complete current-name boolean participation before calculation/export and validate the actual H5 values before packaging. A reviewed-null entry cannot fill missing WIC from the country engine's True default.
  • Record generator provenance and hash-bound checked row counts in existing build/release reports.
  • Add unit tests, H5 round-trip tests, country-model consumption tests, and separate dataset-owner rebuild instructions.

Related changes and remaining work

The existing published dataset is not modified. A separate owner must perform the full rebuild, rebuild dependent calculations/calibration, satisfy all existing release checks, and publish a new immutable non-default local-area release. National default/latest remains unchanged.

Validation

  • Focused ACS-generation, orchestration, legacy-entry-point, release-tool, sparse-materialization, and source-independence tests passed. Existing tests requiring the optional pinned 164 MB aggregate feed were skipped because that local fixture is unavailable.
  • 11 H5/country-engine workflow tests passed, including complete flag consumption and multi-batch reads.
  • 8 focused packaging/default-fill/export regression tests passed.
  • Repository-wide CI Ruff check, changed-file formatting, test-directory registration, and the existing graph-acceptance verification passed.
  • Repository-wide optional formatting check reports existing unrelated files; these were not rewritten. Current CI runs Ruff lint, not that format check.
  • No full simulation-executor test suite, real dataset rebuild/publication, paid compute, deployment, environment-variable provisioning, or database changes.

Fixed-format H5 row reads may still unpickle entire object blocks; the documentation does not promise a strict memory bound for that historical format.

@juaristi22

Copy link
Copy Markdown
Collaborator

The County Files readiness branch (#1719, stacked on #1676) carries this PR's design onto today's code, in 68cf15a:

  • R1's pool builder draws the ACS rows' takes_up_wic_if_eligible with the wic_claim_input generator, unchanged, after the shared transfer and before pooling. It keeps the donor's decisions and requires the donor and the pooled frame to be complete.
  • R2 refuses a null WIC cell before any reviewed fill. Its take-up stage refuses an incomplete column, and the take-up gate grades the flag on both spines.

It differs from this PR in three places:

  • The step lives in a new ACS-lane module, us_runtime/acs_local_wic_take_up.py. So wic_claim.py, and with it the seed protocol's digests, do not move.
  • The pool builder takes it as an opt-in flag, wic_take_up, which R1 sets, like the lane's other steps.
  • The packaged bytes are checked through the take-up gate that package already binds, not a separate H5 reader.

If you agree, this PR can close as superseded by #1719. #1155 can close when #1719 reaches main. #1154 stays open, as its checklist says: the rebuild, publication, certification and the policyengine.py removal (PolicyEngine/policyengine.py#563) are still to do.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Generate complete WIC participation in the ACS local-area build

2 participants