Skip to content

Bump policyengine-core to >=3.25.0#1633

Merged
MaxGhenis merged 1 commit intomainfrom
bump-pe-core-3.25
Apr 18, 2026
Merged

Bump policyengine-core to >=3.25.0#1633
MaxGhenis merged 1 commit intomainfrom
bump-pe-core-3.25

Conversation

@MaxGhenis
Copy link
Copy Markdown
Collaborator

Summary

Bumps `policyengine-core` minimum to `>=3.25.0` to pick up the cache-invalidation and `set_input` preservation fixes from PolicyEngine/policyengine-core#475.

Why

PE-core 3.24.0–3.24.3 introduced a cascade where `_invalidate_all_caches` wiped every variable's memory storage including user-provided `set_input` values — so any reform applied during simulation construction (the country-package pattern) silently dropped its dataset inputs. Surfaced as widespread test-suite failures where formula-driven variables (income_tax, UC, child_benefit, state_pension) returned zero. 3.25.0 preserves user inputs while still invalidating formula-output caches.

Test plan

  • `test_latest_data_smoke` passes
  • `test_lha_freeze` passes
  • `test_parametric_reform_impacts` passes (was 49 failing on main)
  • `test_uc_rebalancing` passes

Generated with Claude Code

PE-core 3.24.0-3.24.3 introduced a cache-invalidation cascade that
wiped set_input values whenever a reform was applied during simulation
construction. Test suite was green on 3.23.6 and broken on 3.24.x;
3.25.0 (PolicyEngine/policyengine-core#475) preserves user-provided
inputs across apply_reform while still invalidating formula-output
caches.

Verified locally: test_latest_data_smoke, test_lha_freeze,
test_parametric_reform_impacts, and test_uc_rebalancing all pass after
the bump.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@MaxGhenis MaxGhenis merged commit 24c9fe0 into main Apr 18, 2026
8 checks passed
@MaxGhenis MaxGhenis deleted the bump-pe-core-3.25 branch April 18, 2026 11:01
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