Skip to content

Roll back PolicyEngine 4.4 schema change#486

Merged
anth-volk merged 13 commits into
mainfrom
rollback-policyengine-443
May 12, 2026
Merged

Roll back PolicyEngine 4.4 schema change#486
anth-volk merged 13 commits into
mainfrom
rollback-policyengine-443

Conversation

@anth-volk
Copy link
Copy Markdown
Contributor

Fixes #485

Summary

  • Revert the policyengine==4.4.3 simulation worker migration and related follow-up runtime changes so macro simulations use the pre-1 calculate_economy_comparison() output shape again.
  • Reapply the budget-window output contract from PR Return full outputs for budget-window runs #482 so completed multi-year runs return years, full outputsByYear, and fiscal totals.
  • Keep country package upgrades on the pre-1 .py path: policyengine-us==1.690.7 and policyengine-uk==2.88.14.
  • Remove the unused changelog metadata restored by the revert stack.

Verification

  • uv lock
  • uv run ruff check src/modal/simulation.py src/modal/app.py src/modal/budget_window_results.py src/modal/budget_window_scheduler.py src/modal/budget_window_state.py src/modal/gateway/models.py tests/test_budget_window_results.py tests/test_budget_window_batch.py tests/test_budget_window_scheduler.py tests/gateway/test_models.py tests/gateway/test_budget_window_state.py tests/gateway/test_endpoints.py tests/test_modal_scripts.py
  • git diff --check

Full test suite not run.

@anth-volk anth-volk marked this pull request as ready for review May 12, 2026 21:23
@anth-volk anth-volk merged commit 2f059ab into main May 12, 2026
4 checks passed
@anth-volk anth-volk deleted the rollback-policyengine-443 branch May 12, 2026 21:24
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.

Roll back PolicyEngine 4.4 simulation schema change while preserving budget-window outputs

1 participant