PolicyEngine / PolicyEngine/policyengine-scorecard
UK compute campaign, run 1: execute the mode-1 counterpart pipeline on the certified bundle
Open
@vahid-ahmadi is already working on this.
Since Aug 20, 2026.
- Dominant language
- Python
- Stars
- 0
- Forks
- 0
- Avg merge
- 6d 12h
- Merged PRs (30d)
- 32
Description
The mode-1 pipeline (#51, approved) has never executed — its own docstring says so. This issue is the first managed run and the gap-closure loop that follows.
Steps
- On the managed machine:
simlock -- .venv-pe/bin/python pipeline/compute_uk_counterparts.py 2025against the certified populace-uk bundle (populace-uk-2023-dd68c73-…, the #56-verified world) at pinned policyengine/pe-uk versions. - Publish the resolution report from
pe_uk_meta.json: which CANDIDATES names resolved, which concepts landedpe_gap, whetherpe.uk.managed_microsimulation()is the real accessor spelling, whichwould_claim_*overrides applied and read back on, and the per-benefit fullpart movement table. - Close the gaps the run exposes: CANDIDATES renames (one-line fixes by design), band-flag concepts (
pays_basic/higher/additional_rateare name-candidates), the benunit/household country anchors, the SP-age anchor forhousing_benefit_pensioners. - Run 2 with gaps closed; ingest
pe_uk_metrics.jsoninto the DB against the #48 external rows (rates derived downstream, per the contract) and surface in the app's UK view. - Record engine pins + bundle id per run for #65's UK release map.
Success = every dwp_takeup / hbai / uk_hmrc / obr / ukmod external family has either a joined PE counterpart or a labelled pe_gap on the page. Closes #40 when done.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.