Skip to content

Gate US fiscal refresh base population scale#93

Open
daphnehanse11 wants to merge 1 commit into
mainfrom
codex/investigate-us-base-mass
Open

Gate US fiscal refresh base population scale#93
daphnehanse11 wants to merge 1 commit into
mainfrom
codex/investigate-us-base-mass

Conversation

@daphnehanse11

@daphnehanse11 daphnehanse11 commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add a pre-calibration base-population gate for the US fiscal refresh builder.
  • Fail early when the base H5's resolved person-weight mass is far from the Census benchmark while the release calibration uses mass='conserve'.
  • Record the passing base-population gate in release manifests and calibration build metadata.

Validation

  • uv run ruff check tools/build_us_fiscal_refresh_release.py packages/populace-build/tests/test_us_fiscal_refresh_builder.py
  • uv run pytest packages/populace-build/tests/test_us_source_coverage.py packages/populace-build/tests/test_us_fiscal_refresh_builder.py -q
  • Local cached current H5 gate check fails as expected: 56,918,517 weighted people vs 334,200,000 benchmark (-83.0%).

Refs #67
Refs #94

@daphnehanse11 daphnehanse11 force-pushed the codex/investigate-us-base-mass branch from 9060204 to 8140c9c Compare June 17, 2026 17:17
@daphnehanse11

Copy link
Copy Markdown
Collaborator Author

Updated this PR for the review finding:

Verification:

  • uv run pytest packages/populace-build/tests/test_us_fiscal_refresh_builder.py
  • uv run ruff check tools/build_us_fiscal_refresh_release.py packages/populace-build/tests/test_us_fiscal_refresh_builder.py
  • GitHub test/wheel checks are green for Python 3.13 and 3.14

@daphnehanse11 daphnehanse11 requested a review from MaxGhenis June 17, 2026 17:40
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.

1 participant