Skip to content

Deploy Modal worker for API v4 migration#466

Merged
MaxGhenis merged 1 commit intomainfrom
modal-worker-policyengine-1653
Apr 26, 2026
Merged

Deploy Modal worker for API v4 migration#466
MaxGhenis merged 1 commit intomainfrom
modal-worker-policyengine-1653

Conversation

@MaxGhenis
Copy link
Copy Markdown
Contributor

Summary

  • Pin the Modal simulation worker to policyengine-us==1.653.3 and policyengine-uk==2.88.0, matching Migrate to policyengine v4 and resolve runtime bundles policyengine-api#3487.
  • Allow the gateway to accept the API v4 _runtime_bundle provenance field while preserving strict validation for unknown caller fields.
  • Include submitted data_version in the gateway policyengine_bundle response metadata.

Why

PolicyEngine/policyengine-api#3487 resolves Modal worker apps by exact country package version before creating economy jobs. Production currently does not have a registered worker for these versions, so this PR prepares the worker/gateway side needed to unblock that migration.

Testing

  • env -u UV_FROZEN uv run pytest -q
  • env -u UV_FROZEN uv run --with ruff ruff format --check src
  • env -u UV_FROZEN uv sync --frozen --no-dev
  • Direct SimulationOptions validation with data_version, _metadata, _runtime_bundle, _telemetry, and policyengine_bundle

@MaxGhenis MaxGhenis merged commit 4fb9977 into main Apr 26, 2026
4 checks passed
@MaxGhenis MaxGhenis deleted the modal-worker-policyengine-1653 branch April 26, 2026 14:29
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