Skip to content

chore(deps): update policyengine to 4.18.9#601

Merged
anth-volk merged 1 commit into
mainfrom
update-policyengine-4.18.9
Jul 2, 2026
Merged

chore(deps): update policyengine to 4.18.9#601
anth-volk merged 1 commit into
mainfrom
update-policyengine-4.18.9

Conversation

@anth-volk

Copy link
Copy Markdown
Contributor

Fixes #600

What

Bumps the simulation worker's policyengine pin from 4.18.8 to 4.18.9 and relocks uv.lock.

Why

policyengine 4.18.9 ships the dataset-autosave-corruption fix (policyengine.py #450, issue #449). In 4.18.8, constructing a region-scoped dataset copy auto-saved over the shared single-year file baked into the Modal image, corrupting it inside reused containers — crashing subsequent state runs (No households found matching state_fips=N) and silently computing national results on one state's data. 4.18.9 removes the construction-time autosave and builds scoped copies with filepath=None.

Changes

  • projects/policyengine-api-simulation/pyproject.toml: policyengine==4.18.84.18.9 (one line).
  • projects/policyengine-api-simulation/uv.lock: relocked (policyengine v4.18.8 -> v4.18.9; no other packages changed).

No worker code change is required — the corruption occurred entirely inside policyengine.py's run().

Verification

  • uv lock resolved cleanly with companion pins (policyengine-core, policyengine-us, policyengine-uk) unchanged.
  • Confirmed the published 4.18.9 wheel contains the fix: model_post_init no longer calls self.save(), and the US/UK region-scoped copies use filepath=None.
  • ruff format --check clean (no Python changed). No changelog mechanism in this repo.

Not run locally: Modal deploy — the merge triggers the deploy pipeline, which rebuilds the image on the new policyengine version (the single-year prebuild layers rerun on the version bump, ~1 min). CI on this PR is the source of truth.

Pulls in the dataset-autosave-corruption fix (policyengine.py #450): the
region-scoped dataset copy no longer overwrites the shared single-year
file baked into the Modal image, which was crashing state runs and
silently corrupting national results in reused containers. No worker code
change needed. Companion model pins unchanged; uv lock resolves cleanly.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@anth-volk anth-volk marked this pull request as ready for review July 2, 2026 23:44
@anth-volk anth-volk merged commit edb82db into main Jul 2, 2026
4 checks passed
@anth-volk anth-volk deleted the update-policyengine-4.18.9 branch July 2, 2026 23:47
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.

Bump policyengine to 4.18.9 to fix region-scope dataset corruption in the simulation worker

1 participant