Skip to content

Bump UK bundle to policyengine-uk 2.89.2 / data 1.56.5 (bus variables)#428

Open
vahid-ahmadi wants to merge 1 commit into
mainfrom
bump-uk-bundle-2.89.2
Open

Bump UK bundle to policyengine-uk 2.89.2 / data 1.56.5 (bus variables)#428
vahid-ahmadi wants to merge 1 commit into
mainfrom
bump-uk-bundle-2.89.2

Conversation

@vahid-ahmadi

Copy link
Copy Markdown
Contributor

Why

Latest policyengine.py bundles policyengine-uk==2.88.20, which does not contain the bus_fare_spending / bus_subsidy_spending variables (added in the 2.89.x line). Resolving them through the bundle raises ValueError: Variable bus_fare_spending does not exist, blocking any analysis of UK bus fares/subsidy via managed_microsimulation.

What

Refreshes the certified UK release bundle:

before after
policyengine-uk 2.88.20 2.89.2
policyengine-uk-data 1.55.10 1.56.5
dataset enhanced_frs_2023_24 enhanced_frs_2024_25

Data release 1.56.5 was built with model 2.89.2 and carries the calibrated bus columns, so the certification remains a true exact_build_model_version (built-with == certified-for == 2.89.2), not a compatibility override. Managed simulations now resolve the bus variables and return real figures (2027: fares ~£4.2bn, subsidy ~£3.6bn).

How

Generated with the repo's own tool — no hand-edited content-addressed pins:

python scripts/refresh_release_bundle.py --country uk --model-version 2.89.2 --data-version 1.56.5

which rewrote uk.json, regenerated the TRACE TRO sidecar, and bumped the pyproject.toml pins; uv.lock regenerated separately.

Verification

  • managed_microsimulation() certifies cleanly and bus_fare_spending / bus_subsidy_spending resolve on enhanced_frs_2024_25 (verified end-to-end).
  • tests/test_bundle_refresh.py + tests/test_certify_data_release.py pass (44 tests).

🤖 Generated with Claude Code

Refreshes the certified UK release bundle from policyengine-uk 2.88.20 /
policyengine-uk-data 1.55.10 (enhanced_frs_2023_24) to policyengine-uk
2.89.2 / policyengine-uk-data 1.56.5 (enhanced_frs_2024_25).

The 2.89.x line adds the `bus_fare_spending` and `bus_subsidy_spending`
variables; on 2.88.20 they raise `Variable ... does not exist`, so
downstream analyses can't resolve them through the policyengine.py
bundle. Data release 1.56.5 was built with model 2.89.2 and carries the
calibrated bus columns, so the certification stays a true
`exact_build_model_version` and managed simulations return real bus
figures (2027: fares ~£4.2bn, subsidy ~£3.6bn).

Generated with scripts/refresh_release_bundle.py (manifest, TRO and
pyproject pin); uv.lock regenerated.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vahid-ahmadi vahid-ahmadi requested a review from anth-volk June 19, 2026 13:10
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