policyengine-uk 2.102.4+ needs policyengine-core 3.32.9+, which the certified US default refuses
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- python
- Ambito
- backend, build-system, testing
Direzione di ricerca
Start from the incomplete conflict trial at main commit 3598c38de and reproduce the listed uv lock and sync paths, then inspect the package extras and compatibility checks around microcosm-data, microcosm-frame, and us_runtime/worker_identity.py. Done means the US install paths resolve the certified policyengine-core and policyengine-us trio, UK resolves separately, and lock-level tests reject every incompatible US × UK combination.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Problem
From policyengine-uk 2.102.4 (2026-09-30), policyengine-uk requires policyengine-core>=3.32.9; 2.102.3 and earlier accept >=3.30.1. microcosm's workspace resolves one policyengine-core for both country extras, so uv lock --upgrade-package policyengine-uk==2.104.2 moves core 3.32.5 → 3.32.12 for the US environment too.
The certified US default that latest.json points to, populace-us-2024-spm-20260915, declares compatible_core_packages: policyengine-core ==3.32.5. With core 3.32.12 installed, microcosm.data.loader._enforce_package_compatibility on that release manifest raises:
_CertifiedPackageCompatibilityError: Certified release 'populace-us-2024-spm-20260915' is incompatible with installed policyengine-core 3.32.12; release certification requires ==3.32.5.
That is the failure #936 fixed for policyengine-us. Until it is resolved, microcosm cannot lock any policyengine-uk release from 2.102.4 on without breaking US loading.
The certified UK default, populace-uk-2023-dd68c73-4aa4b14-20260619T023711Z, already fails the same check on main. It pins policyengine-uk ==2.89.2 and policyengine-core ==3.27.1, while main locks 2.100.0 and 3.32.5.
Options
-
A. Resolve each country's core separately with
[tool.uv] conflictsbetween the US-side and UK-side extras. A first trial on main 3598c38de (nine pairwise sets, microcosm-build/data/frameus×uk, with policyengine-uk 2.104.2) is incomplete. These parts work:uv lockforks core into 3.32.5 and 3.32.12.uv sync --all-packages --locked --extra uskeeps core 3.32.5, policyengine-us 2.2.1 and spm-calculator 1.0.0.--extra ukgets core 3.32.12.
These do not:
--package microcosm-data --extra us,--package microcosm-frame --extra policyengineand--all-packages --extra policyenginestill draw core 3.32.12 with policyengine-us 2.2.1.--extra policyengine --extra ukinstalls both engines together.
A complete version needs three more things:
- conflict sets that cover microcosm-frame's
policyengineextra; - a core pin on the US-side extras;
- a lock-level test that every US install path resolves the certified trio and that every US × UK combination is refused.
CI already installs one extra per job.
-
B. Hold policyengine-uk at 2.100.0 until a certified US release moves core.
-
C. Re-certify the US default under the newer core.
What the next policyengine-uk bump touches
This was rehearsed against policyengine-uk 2.104.2 plus PolicyEngine/policyengine-uk#2021, with the engine-uk suite run under each.
- Uprating pins.
tools/pin_uk_uprating_engine_values.pymoves only the version stamp; the values are unchanged. - Concept mapping. Review the mapping, set
engine_version, then runtools/refresh_concept_coverage.py --engine policyengine-uk.- 28 inputs were added since 2.100.0: alcohol and tobacco quantities, car attributes,
lifetime_isa_balance,mortgage_debtandconsumer_debt. - None matches an existing concept.
fact:household.mortgage_principalis the repayment flow, already bound tomortgage_capital_repayment. brmaleaves the input list once PolicyEngine/policyengine-uk#2021 is in.
- 28 inputs were added since 2.100.0: alcohol and tobacco quantities, car attributes,
- UK spine graph.
tools/graph_uk_spine_fixture.pyrewrites onlyuk_spine.json, and only thenumerical_dependenciesversion strings change. - Lock hash.
APPROVED_UV_LOCK_SHA256inus_runtime/worker_identity.pyfollows the new lock hash.
These four are the only engine-uk failures at 2.104.2. Adding PolicyEngine/policyengine-uk#2021 does not change that list.
The eFRS parity reference (optional, and deliberately fenced)
uk/efrs_parity_reference.json still records policyengine-uk 2.89.0. Regenerating it with any later engine changes the surface: 2.89.1 adds bus_fare_spending, and 2.89.2 adds employment_sector and sic_industry_division. With 2.89.2 or later it does three things:
- It adds
bus_fare_spending,employment_sectorandsic_industry_division, taking the reference from 145 to 148 populated layers. This already happens at the lock's 2.100.0. - It makes
build_uk_release_input_coverage_manifest.pyrequire a--candidate-h5evidence refresh. - With PolicyEngine/policyengine-uk#2021, it adds
brmatoformula_owned_persisted_overrides_included, taking that list from 13 to 14.
The refresh is purely additive. All three new columns carry signal in the certified candidate, which gives 148 required columns and 0 exclusions, and the spine produces all three. The engine-free tests still pin the frozen candidate at 2.89.0 and 145 columns (test_frozen_candidate_retains_its_original_engine_provenance and three siblings), so the re-pin should be a deliberate step, not a side effect of a bump. experiments/791-household-composition-receipts.md says it belongs with #749.
PolicyEngine/policyengine-uk#2021 needs nothing here
brma computed from the pinned enhanced FRS for 2024, 2025, 2026, 2027, 2030 and 2032 is byte-identical with and without PolicyEngine/policyengine-uk#2021. The same holds on microcosm's certified candidate for 2023, 2024, 2025, 2026, 2028 and 2030; see the comment below. microcosm's frs_brma stage sets brma for every household, so an explicit input always beats the new region default. The only brma change is the reference bookkeeping above.
- Lingua principale
- Python
- Stelle
- 0
- Fork
- 4
- Merge medio
- 1g 13h
- PR unite (30g)
- 105
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di PolicyEngine/microcosm
-
Update two stale comments about the export-mass reviewed-exclusion registerForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
PolicyEngine/microcosm#1108 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
PolicyEngine/microcosm#475 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
PolicyEngine/microcosm#1117 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
PolicyEngine/microcosm#1116 ·
I maintainer di solito rispondono entro 1 giorno
-
UK local-area exports: add the `constituency_code_oa`, `la_code_oa` and `region_code_oa` columns that policyengine.py and the simulation API read, and record the area-code frames in the release manifestForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 65/100
PolicyEngine/microcosm#1114 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di PolicyEngine/microcosm
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
Clean up dependabot noiseApertaTask
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
war-and-code/dircue#200 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 87/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno