[codex] Add SNAP local proxy diagnostics scaffold#241
Draft
daphnehanse11 wants to merge 3 commits into
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Refs #240.
This starts the SNAP congressional-district validation path without changing calibration policy. It adds a validation-only
snap_local_proxydiagnostics helper that can compare household-level Populace SNAP receipt/support against ACS S2201 district SNAP household estimates, including support and quality flags.The release builder now recognizes an optional
snap_local_proxy.jsonartifact in the release manifest when one is present, matching the optional diagnostics pattern used fordemographics.jsonandreform_validation.json.Notes
This PR intentionally does not promote ACS S2201 to a hard target and does not run formula SNAP by congressional district. It provides the testable payload builder and manifest hook so the next slice can wire the actual source/runtime inputs once we choose the cheapest build-time path.
Validation
uv run pytest packages/populace-build/tests/test_us_snap_local_proxy.py packages/populace-build/tests/test_us_fiscal_refresh_builder.py -quv run ruff check packages/populace-build/src/populace/build/us_runtime/snap_local_proxy.py packages/populace-build/src/populace/build/us_runtime/__init__.py tools/build_us_fiscal_refresh_release.py packages/populace-build/tests/test_us_snap_local_proxy.py packages/populace-build/tests/test_us_fiscal_refresh_builder.py