Repository navigation
Conversation
…ismatch certify-data refuses a regional release that neither was built with nor claims the pinned policyengine-uk. The only Microcosm local-area cut is on 2.132.6, a new one takes 2-13 hours plus a two-build sign-off, and area receipts are uncertified anyway (the certificate covers the national dataset only, #685). So each national re-cut on a newer policyengine-uk had to drop area regions or wait for a dense rebuild. --accept-regional-model-mismatch REASON (UK only) keeps the regional release routed and records regional_certification in the bundle: basis accepted_model_mismatch, both model versions, the reason and area_receipts: uncertified. It refuses an empty reason, a regional release that already covers the version, and a run without a regional release; the core must still be covered. The national certificate is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Draft, hold. Which regional route the Budget-week UK pairs take is María's call (microcosm cut runbook Q13). This change is ready in case she picks the accepted-mismatch route.
Why
microcosm-uk-2024-25-dense-20261019T000432Z-ee5c2dbe, was built on 2.132.6 and claims==2.132.6. Socertify-datarefuses to keep routing constituency and local-authority regions to it.What
bundle.py certify-data --accept-regional-model-mismatch "<who accepted it and why>":data_releases.uk:CountryReleaseManifest, so consumers see it rather than Pydantic silently dropping it.compatibility_basisare unchanged.The cost, stated in the docs
simulation.py, "column(s) that do not match any variable … were ignored").Tests
tests/test_certify_data_release.py(66 pass locally on Python 3.13):bundle.pyforwarding the flag.Companion: PolicyEngine/microcosm#1348 adds
tools/certify_uk_cut_in_policyengine_py.py, which passes this flag only when asked.axiom: n/a: certification tooling, no policy encoding
🤖 Generated with Claude Code