Repository navigation
Certify the Microcosm UK pair built on policyengine-uk 2.179.2 - #766
Merged
Merged
Conversation
The national build uk-frs-calibration-attempt-20261122T100732Z-b891aa69 and the local-area build uk-local-candidate-f100-s42-20261123T075147Z-7081d968, both from PolicyEngine/microcosm#1687 and each pinned in its build folder at the hub commit that published it, certified by one certify-data run with --model-version 2.179.2. The lock moves policyengine-uk alone; the TROs, the certified test constants and the changelog fragment move with it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Only the UK model surface's count buckets move: parameters 50 to 51 hundreds, variables 14 to 15. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
vahid-ahmadi
left a comment
Contributor
There was a problem hiding this comment.
Thanks. I checked the pins against the hub and PyPI and found nothing blocking.
Checked:
- Hub files: all ten files the manifest pins match at their revisions. The two H5s match by LFS oid (national
ae116bc3…ata80a4bf7, local areacf1c98ac…at9da09946). The calibration npz,calibration_diagnostics.json,release_cut_gates.json,release_certification.json,spine_gates.json,terminal_gates.jsonandscore_vs_reference.jsonmatch too. So do the two release manifests (nationalb856e61a…, as inuk.trace.tro.jsonld; local areab6e77842…, asregional_source_manifest_sha256). - Certification:
release_certification.jsonsaysshippable: truewith 58 spine, 7 seam and 21 release-cut gates passed, as the description says. Both build IDs are listed inreleases.json. - Wheel: the policyengine-uk 2.179.2 wheel sha256 (
a1da93b5…) and sdist hash inmanifest.json, the TRO anduv.lockmatch PyPI. - Consistency: the version and build-ID swaps are consistent across
pyproject.toml,uv.lock, the manifest, both TROs and the three test files. - CI: all checks pass at
5a0ced3.
One wording point:
- PolicyEngine/microcosm#1687 merged on 23 Nov (
527ad49). The description still says "it is still open". - The commits it cites (
41053d980,a26cefbde,640f25222,5674bc997) are now all ancestors of microcosm main. - That line could now just say both builds come from #1687's commits, which are in main's history.
Not an issue:
- policyengine-uk 2.179.3 is out, but it only changes tests (for policyengine-core#570), so staying on 2.179.2 is fine.
- The 3.34.10 core against
QUALIFIED_CORE_VERSIONSnaming 3.34.9 is disclosed. A follow-up in policyengine-uk adding 3.34.10 to that list would remove the caveat.
Review drafted with AI assistance and checked against the code at 5a0ced3.
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 pair built on PolicyEngine/microcosm#1687, on policyengine-uk 2.179.2 and policyengine-core 3.34.10, so each build certifies on its own build. Both builds come from that PR's commits, not main's: it is still open, and it lands with a merge commit, so those commits stay in main's history. Both builds are published on
policyengine/populace-uk-privateand listed, not current, in itsreleases.json; a certificate pins its build, so neither needs to be current.The national
uk-frs-calibration-attempt-20261122T100732Z-b891aa69(microcosm_uk_2024_25, releasemicrocosm-uk-2024-25-national):41053d980, on main after Bind England's PIP at 16–19 and 20–24, and impute UC limited capability for claims without a linked DWP record microcosm#1663, with Chronicle feed15040ea5, policyengine-uk 2.179.2 and policyengine-core 3.34.10.built_with_model_package).core_binding: bundle_pin), as on main.5674bc997, which signs the degenerate-surface exclusions of the fourteen UK totals below; no build figure moves with it.a80a4bf70ab4ffeac77357fe0633d3cee4ce7401, listed, not current. Its build staged locally only, so it was published with--allow-missing-staging.ae116bc3cff798fe68df253083f0b26d779e02a0a818ee68df7d29fbc557165a.The local area
uk-local-candidate-f100-s42-20261123T075147Z-7081d968(microcosm_uk_2024_25_dense, releasemicrocosm-uk-2024-25-dense). Constituency and local-authority regions route to it (regional_release_kind: local_area).a26cefbde. Its gate-only target-fit failures are signed in640f25222, and build 2 ran there.9da099465da06f020d9125f60e49c88180a9e607, listed, not current, with--allow-missing-staging: its staging uploads failed while the build machine slept.cf1c98acd76467cd8421df67820e49c9e8bfc4b4f64eb0af27adf88994d63a15.Both files carry the stored new-claimant draw and the fourteen UK totals described below.
What the data carries
Young people and NEET
Since PolicyEngine/microcosm#1663, which the Microcosm PR is based on, the build closes the gaps that the benchmarks check of the Milburn review dashboard (PolicyEngine/uk-milburn-review-dashboard#1) found behind its young people figures:
On the national above, for 2025, against each publisher's figure:
fcfac709).The gaps Vahid raised: a dependent child's pay
Vahid's final review of PolicyEngine/microcosm#1663 found two Microcosm stages that misread the dependent child's pay that PR brought into
employment_income. PolicyEngine/microcosm#1687 fixes both:CHILD.CHEARNS) now counts as HMRC employment income, so children with pay above the personal allowance count in HMRC's employment-income rows, in their own income band.The new-claimant health element by claim date
policyengine-uk pays the lower new-claimant health element to a share of the UC claims with the health element each year. policyengine-uk 2.179.0 lets a dataset store the draw it compares with that share, and the build stores it ordered by claim recency (the FRS's
UCSTART) and then age, uniform overall. The most recent claims take the new-claimant rate first, and the engine keeps DWP's share each year. In 2027-28, 19% of Great Britain's units with an LCWRA claimant aged 16 to 24 are on the new-claimant rate, against 11% when the engine draws at random.The UK totals
The release writes policyengine-uk's fourteen
uk_total_*UK totals (2.178.0) on every household, each the sum of its component at the file's weights. A simulation of part of the file (a region, an extract or a household subset) then gives each household its share of the national totals: business rates, corporate Stamp Duty Land Tax and land, consumer-incident tax changes and the carbon tax's corporate part. A simulation of the whole file reads the same shares as before.Impact
QUALIFIED_CORE_VERSIONSnames only 3.34.9, and policyengine-uk doesn't enforce it at runtime. On 3.34.10, two of its stored-draw tests fail; both cover data that supplies no draw, and both files here supply one (Lock policyengine-uk 2.179.2 and store UC's new-claimant draw by claim recency microcosm#1687 has the detail).==3.32.5claim, predates this PR.fcfac709ande2745e59to the builds above. UK results change with both.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.909 of DWP's figure and Universal Credit spend at 0.940 of the OBR's, against 0.912 and 0.942 for
fcfac709on 2.177.7. The floor asks for each within 10%. The receipt holds weighted national totals only.Commits
47e1d4e4: the pair, certified by onecertify-datarun. It also carries the lock, in which only policyengine-uk moves; both TROs; the certified test constants; and the changelog fragment.5a0ced3e: the household calculator snapshots, regenerated on 2.179.2.Tests
Local, at
5a0ced3e, counted by--junitxml: the whole suite, 4,911 tests over 152 files, in five processes run one at a time. 4,890 passed, 21 were skipped and none failed:bundle.py check, the strict TRO check, the release lock,uv lock --checkand ruff 0.17.6 (format and lint) pass.Disclosure
National figures only: Great Britain, England and Wales, and England. Each rests on 30 or more survey households. No record-level value, maximum or minimum, and no sub-national figure.
🤖 Generated with Claude Code