Skip to content

Update US release bundle#356

Merged
MaxGhenis merged 2 commits into
mainfrom
codex/update-us-ss-spm-release
May 13, 2026
Merged

Update US release bundle#356
MaxGhenis merged 2 commits into
mainfrom
codex/update-us-ss-spm-release

Conversation

@MaxGhenis
Copy link
Copy Markdown
Contributor

@MaxGhenis MaxGhenis commented May 13, 2026

Summary

  • updates the bundled US release to policyengine-us==1.691.3 and policyengine-us-data==1.113.1
  • pins US dataset, region dataset, and bundled TRO locations to immutable HF commit 99e0ec7e784cdba43dd21ff1d80a081599a7a537 because the eCPS-only release does not have a 1.113.1 HF tag
  • rewrites same-repo data artifact revisions from package-version tags to the resolved release-manifest commit for runtime dataset resolution
  • preserves the raw fetched data release manifest hash in the TRO while still using the rewritten immutable commit for dataset artifact locations

Validation

  • uv run --extra dev --extra us ruff format --check .
  • uv run --extra dev --extra us ruff check src/policyengine/provenance/bundle.py src/policyengine/provenance/manifest.py src/policyengine/provenance/trace.py tests/test_bundle_refresh.py tests/test_release_manifests.py tests/test_trace_tro.py tests/test_us_regions.py
  • uv run --extra dev --extra us pytest tests/test_release_manifests.py tests/test_bundle_refresh.py tests/test_manifest_version_mismatch.py tests/test_trace_tro.py tests/test_us_regions.py -q (105 passed)
  • verified us.trace.tro.jsonld data_release_manifest hash equals the bytes served from the immutable HF URL
  • managed .py microsimulation smoke from published artifact:
    • dataset: hf://policyengine/policyengine-us-data/enhanced_cps_2024.h5@99e0ec7e784cdba43dd21ff1d80a081599a7a537
    • social_security: $1.550T
    • social_security_retirement: $1.179T
    • SSI: $57.3B
    • SNAP: $93.0B
    • WIC: $12.2B
    • EITC: $67.3B
    • SPM poverty: 22.68%
    • senior SPM poverty: 18.50%

Notes

The published policyengine-us-data==1.113.1 release manifest initially declares the eCPS artifact revision as 1.113.1, but HF has no 1.113.1 git tag for this eCPS-only release. This PR avoids the resulting 404 by pinning to the immutable HF commit that contains the manifest and artifacts.

@MaxGhenis MaxGhenis force-pushed the codex/update-us-ss-spm-release branch from 025c345 to a14b2a3 Compare May 13, 2026 11:51
@MaxGhenis MaxGhenis force-pushed the codex/update-us-ss-spm-release branch from c8a1511 to 51f8137 Compare May 13, 2026 12:15
@MaxGhenis MaxGhenis merged commit eb81739 into main May 13, 2026
11 checks passed
@MaxGhenis MaxGhenis deleted the codex/update-us-ss-spm-release branch May 13, 2026 12:36
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