Repository navigation
Certify the Microcosm UK national build with Scottish property income targets - #795
Merged
Merged
Conversation
…Z-6608c43f Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
Comparison with b891aa69Both files were scored on the same frozen register of 1,544 targets, and run on policyengine-uk 2.179.2 for 2025 and 2027-28.
Two side effects, both inside the gates:
🤖 Generated with Claude Code |
juaristi22
marked this pull request as ready for review
December 4, 2026 00:04
juaristi22
added a commit
to PolicyEngine/uk-scottish-budget-2027-28
that referenced
this pull request
Dec 4, 2026
policyengine 6.22.0 certifies the national build that binds Scottish taxpayers' property income (PolicyEngine/policyengine.py#795, PolicyEngine/microcosm#1868) on the same policyengine-uk 2.179.2 and policyengine-core 3.34.10. The local-area file does not change. The current-law outlook and every population run are made again on it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
This certifies the Microcosm UK national build
uk-frs-calibration-attempt-20261203T195135Z-6608c43f, which binds Scottish taxpayers' property income (PolicyEngine/microcosm#1868). Constituency and local-authority regions stay onuk-local-candidate-f100-s42-20261123T075147Z-7081d968, the local-area build in 6.20.3 and on main. Both certify on policyengine-uk 2.179.2, on which they were built (built_with_model_package), and the core stays at the bundle's pin, 3.34.10 (core_binding: bundle_pin).The build is published on
policyengine/populace-uk-privateand listed, not current, in itsreleases.json. A certificate pins its build, so it does not need to be current.Mechanical handoff; wrapper qualification pending unless reviewed receipts cover this exact candidate pair, commit and bundle. Microcosm's release-cut gates and passing tests do not establish wrapper qualification.
The national
uk-frs-calibration-attempt-20261203T195135Z-6608c43f(microcosm_uk_2024_25, releasemicrocosm-uk-2024-25-national):uk-frs-calibration-attempt-20261122T100732Z-b891aa69. It ran at that build's Microcosm commit41053d980plus the two target rows below (8563b2235, branchuk-scottish-property-1868-on-b891aa69, not for merge), with the same Chronicle feed (15040ea5), policyengine-uk 2.179.2 and policyengine-core 3.34.10.c00582df6, which carries5674bc997(the signed degenerate-surface exclusions of the fourteen UK totals), as b891aa69 was.80834866d45da9965518c4dc5561a0dd523549d3, listed, not current.96b1c955105721d3db75b0796bb441bfe39bfd9fe52cca295fb7e0ec033581a7.The local area
Unchanged:
uk-local-candidate-f100-s42-20261123T075147Z-7081d968(microcosm_uk_2024_25_dense) at hub commit9da099465da06f020d9125f60e49c88180a9e607, as in 6.20.3 and on main. It was built on b891aa69's spine and does not have the two Scottish rows, so constituency and local-authority runs in Scotland do not get this fix. Runs for Scotland as a whole (country/scotland) filter the national file, so they do.What changes in the data
No target bound Scotland's share of the UK property rows. The solve scaled Scottish landlord households to 1.84 times their prior weight, against 1.19 times elsewhere, and Scotland ended with about 7.5% of UK property income.
The build adds two rows, as their own loss family: the count of Scottish taxpayers with property income, and their net property income. The Scottish Government's technical factsheet (3 December, 2023-24 outturn) says about 4.5% of Scottish taxpayers have property income, and that it is about 1.2% of their total income. The rows apply these shares to SPI 2023-24 Table 3.11's Scottish taxpayers and total income, uprated to 2025: about 144,000 taxpayers and £1.52bn.
On this build:
The remaining gap is the distribution: 94% of this income is taxable after allowances, against about 83% in the Commission's costing.
Impact
UC coverage floor (#491)
The national passes for Great Britain in 2025 on policyengine-uk 2.179.2: benefit units with Universal Credit are at 0.908 of DWP's figure, and Universal Credit spend at 0.938 of the OBR's, against 0.909 and 0.940 for b891aa69. The floor asks for each within 10%. The receipt holds weighted national totals only.
How it was made
tools/certify_uk_cut_in_policyengine_py.pyin PolicyEngine/microcosm at7bd3960e2(the tool and its imports are identical to Microcosm's main), with--keep-regional-release:b7ae55dd: the national, certified by onecertify-datarun, with both TROs, the certified test constants (tests/test_models.py,tests/test_release_manifests.py,tests/test_uk_regions.py) and the changelog fragment.Tests
Local, at
b7ae55dd, with the private data token: the bundle, release, TRO, model, compatibility, dataset, region and UK test files (56). All 1,915 tests passed, and none was skipped. The full suite runs in this PR's CI (make teston four Pythons).bundle.py check --published-spm --include-tros --strict-trosand the release lock pass. The strict check's warning, that the US core is outside the US release's==3.32.5claim, predates this PR.Needs a person before this leaves draft
Disclosure
UK, Great Britain and Scotland-wide weighted totals and shares only. Each Scottish figure rests on 30 or more source households. No record-level value, maximum or minimum.
🤖 Generated with Claude Code