Repository navigation
Bump to policyengine-uk 2.90.2 and revert the UK certified default to enhanced FRS 2024-25 - #491
Conversation
Brings Universal Credit deductions into the certified bundle: the Fair Repayment Rate cap history, latent deduction demand calibrated to DWP deductions statistics, and reform levers (cap changes, per-type abolition, protected minimum floor). Core moves to 3.30.1 to satisfy policyengine-uk 2.90.x. Regenerates the trace TRO sidecars and the UK model version surface snapshot to match. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
CI failure is the certification gate working as designed: the UK data release ( Remaining sequence:
Ordering note for future bumps: certify before moving pins — the import-time guard makes the post-bump environment unable to run the certifier. |
|
Data point for the certification decision here (not a hold request — sequencing is yours): The release this PR certifies ( Implication: UC-touching aggregates through this bundle (including the new deductions module's counts and costs) run at less than half of administrative levels, while per-household statistics remain valid. Options are to certify as-is and note the caveat (unblocks the WPI beat; per-household UC deductions results are unaffected), or hold for a data-side fix per microcosm#701. Either way the caveat belongs in the bundle notes. |
…-25 (1.56.16) Per the UC caseload postmortem (policyengine-uk-data discussion #464): populace_uk_2023 carries 3.26m UC benefit units / GBP36.9bn against ~6.7m / GBP75.8bn admin-OBR truth, because its calibration surface has no benefit targets (microcosm#701). enhanced_frs_2024_25 @1.56.16 measures 6.35m / GBP75.3bn with deductions within ~5-8% of DWP. Certified on the publisher's compatibility claim (manifest commit 2966541f); full suite green (783 passed) as the arbiter. Also fixes the publisher-claim basis vocabulary so claims-certified bundles pass the offline import fallback, and keeps populace_uk_2023 plus the 2023-24 FRS names resolvable via dataset overlays at pinned revisions. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Resolves the generated-file conflicts (bundle manifest + TRO sidecars) by taking main's manifest, re-running UK certification against the 1.56.16 release, re-adding the dataset overlays, and regenerating both sidecars.
The merge took main's policyengine-core==3.30.0 pins while policyengine-uk 2.90.2 requires 3.30.1; synced via bundle.py update-packages, regenerated derived artifacts and the lock, and stamped the UK bundle id at the current package version (the editable install's stale dist-info had pinned it at 5.0.1). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Addresses the second reviewer's findings: the certification docs taught the retired compatibility_basis value, and countries.md still named the previous UK default. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Ship the 650 constituencies (2024) and 361 local authorities (April 2023, with Ards and North Down and real hexes for the 2023 unitaries) with the package. Area regions and geography output labels read them instead of GCS; the opt-in registry previously came back empty because its GCS helper no longer exists in policyengine-core. Extend --regional-manifest-uri to the UK: a Microcosm local-area release routes constituency and local-authority regions to its file, and --regional-release-kind area_coded_national routes them to the enhanced FRS with its weight matrices at their own revision, for a national-first switch. Certification records regional_release_kind, checks the regional release's own model compatibility, HEAD-checks carried and Microcosm UK artifacts, refuses re-certification that would drop regional routing, and names a build by its cut tag. Area regions take the routed dataset and join the default registry only for a local-area release. Add the Universal Credit coverage floor check from #491. Refs #553 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Ship the 650 constituencies (2024) and 361 local authorities (April 2023, with Ards and North Down and real hexes for the 2023 unitaries) with the package. Area regions and geography output labels read them instead of GCS; the opt-in registry previously came back empty because its GCS helper no longer exists in policyengine-core. Extend --regional-manifest-uri to the UK: a Microcosm local-area release routes constituency and local-authority regions to its file, and --regional-release-kind area_coded_national routes them to the enhanced FRS with its weight matrices at their own revision, for a national-first switch. Certification records regional_release_kind, checks the regional release's own model compatibility, HEAD-checks carried and Microcosm UK artifacts, refuses re-certification that would drop regional routing, and names a build by its cut tag. Area regions take the routed dataset and join the default registry only for a local-area release. Add the Universal Credit coverage floor check from #491. Refs #553 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Summary
Bumps the bundle to policyengine-uk 2.90.2 + policyengine-core 3.30.1, and — per the UC caseload postmortem (policyengine-uk-data discussion #464) — reverts the UK certified default from Microcosm's
populace_uk_2023to policyengine-uk-data'senhanced_frs_2024_25(release 1.56.16).Why the revert
Measured at 2025 (annual basis, weighted benefit units with
universal_credit > 0):populace_uk_2023@ dd68c73 (what this PR previously certified)enhanced_frs_2024_25@ 1.56.16 (this PR)populace_uk_2023won its June certification rotation on a 148-target surface containing no benefit targets (PolicyEngine/microcosm#701); the certified default should not ship the least accurate artifact on the second-largest working-age benefit.Re-flip condition (coverage floor):
populace_ukreturns as the certified default when the microcosm UC chain (PolicyEngine/chronicle#184, PolicyEngine/microcosm#727, PolicyEngine/microcosm#729) lands, the rebuild passes a benefits-inclusive surface, and the rotation is scored with UC caseload and spend within 10% of the OBR/DWP counterparts. Proposal: make that floor a standing certification requirement, so no future default can be selected on a surface missing a major program.Certification provenance
policyengine-uk==2.90.2appended to the 1.56.16 release manifest (HF commit2966541f), with the measurement evidence recorded in the commit message and policyengine-uk-data#452.compatible_model_packages(the data was built with 2.89.2 — disclosed in the bundle certification block; per the certifier's own warning, the test suite is the arbiter, and the full battery runs in this PR).data_producer: "populace"in the bundle block names that verification contract (mandatory per-dataset sha256), not the producing repo — thelegacycertification path is an unimplemented stub (certification.py), a follow-up candidate.populace-uk-2023-dd68c73remains published on HF for explicit-URI consumers; it is no longer the certified default and needs no publisher claim.Also in this PR (unchanged from the original bump)
🤖 Generated with Claude Code