Repository navigation
Add UK household pipeline methodology page - #85
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Automated review pass (Claude Code, high effort) — round 1 at
|
…utton The walkthrough under "How a release is built" follows the US build. Say so in its first sentence and replace the inline UK link with an accent-outlined button that leads to the UK methodology. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
….58.0 Check each claim against Microcosm e3e3d881 and the current Enhanced FRS release: - compare with Enhanced FRS 1.58.0, PolicyEngine's certified UK dataset, rather than a November 2025 commit, and restate the differences that remain; - add the regional tier to the reconciliation order and cite the code, since the reconciliation doc predates it; - say which finer inputs (Broad Rental Market Area, council tax) stay with the source household rather than following the assigned area; - describe the weight limit as a hard upper bound on the weight at the start of calibration; - correct the national-route caption, source roles, additional-stage pairings, National Travel Survey proxies and target coverage by nation; - link each core survey's UK Data Service study, re-pin references and drop the US releases link from the footer. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks María, re-reviewed at Round 1, point by point
Findings
What I checked
|
Replace the five stage cards with a diagram of the sources, the household records, the national and local routes, area assignment, calibration against official statistics and each route's checks. Record today's corrections as version 0.2, date the Enhanced FRS release "at the time of writing", and let the sources table's row headers shrink on phones (review findings 2, 4 and 5). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merging should not publish a page that calls itself a draft. Mark the UK page noindex and drop its homepage links (navigation, release walkthrough button and footer), keeping the sentence that the walkthrough uses US data. EDITING.md records what to restore at publication (review finding 1). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Ask for review from the UK data maintainer and a technical reviewer on /methodology/ and on the ownership file, as methodology/EDITING.md requires (review finding 3). Enforcement still needs code-owner review turned on in master's branch protection. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks @vahid-ahmadi. Round 2 is addressed in
|
Restore the homepage links to the UK page (release walkthrough button, navigation and footer) and say in the walkthrough that the page is currently a draft for editorial review. The page keeps noindex until review, and EDITING.md now says to remove the draft wording and noindex at publication. This replaces unlinking as the answer to review finding 1. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@vahid-ahmadi, a follow-up on finding 1: I've changed approach in |
|
Thanks María, read it as an SG analyst would (someone on the SFC, OCEA or Social Security Scotland analysis side) at This is separate from the accuracy review earlier today; nothing below changes those findings. Rendered locally at 1400px and 390px (the preview still needs a Vercel login). Suggestions, most important first
What works well
|
Address the round-3 review, read from a Scottish Government analyst's view: - open the status box with which dataset to use today; - say that tax and benefit rules, including Scotland's, live in PolicyEngine-UK; - give the published FRS 2024-25 sample for the UK and for Scotland; - add what is fitted for Scotland and a Scotland entry in the limits; - add guidance on reading local results, data access, a contact route and key terms; - turn the additional stages and the reconciliation rule into lists; - clarify Scottish and Northern Irish small areas and add a scrolling hint to the diagram on phones; - record the changes as version 0.3. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks @vahid-ahmadi, this was a useful read from the SG side. All ten suggestions are in
|
Move every Microcosm link and claim from e3e3d881 to 866fee4e and record the result as version 0.4: - the LCFS vintage, now 2024-25 (UK Data Service SN 9603); - Survey of Personal Incomes draws at the copied adult's rank and only for taxable incomes, landlords' rental receipts and mortgage interest, and the split of high-value homes; - area-based home values and council-tax bands for owner-occupiers in England and Wales; - the higher-rate taxpayer, domestic energy and high-value home local targets, and the small-cell rule; - the four-group, family-equal target weighting, reconciliation in both builds and the 100,000-household release file; - the Scotland entries, including the fitted salary-sacrifice rate bands; - Enhanced FRS 1.58.1 and PolicyEngine-UK 2.132.6. Also correct two version 0.3 statements: OBR's Scottish council-tax receipts are not fitted separately, and Microcosm has certified national datasets from this pipeline. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@vahid-ahmadi, an update since your last round:
Two corrections to version 0.3, both recorded in the document history:
|
|
@juaristi22 thanks, this is a new pass at On content: fine to merge as a draft once 1 and 2 are worded. Every changed claim I checked holds at SG read (
Findings
Already changed on main since
Publication checklist
Disclosure, neutrality and wording
What I checked
🤖 Generated with Claude Code |
Address the review of 113ec9e: - say that the four-group, family-equal, square-root weighting is the local build's, and that the national build gives each family an equal share; - note the penalty that keeps refitted weights close to equal in an exact-size local release, and name the release size once; - describe the home-value source (each home's latest Land Registry sale since 1995, uprated with the UK House Price Index) and the LSOA band mix; - add the higher-rate taxpayer small-cell rule; - name the other published statistics behind the high-value home estimates; - record the changes as version 0.5. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks @vahid-ahmadi.
The changes you listed on main since |
Move every Microcosm link from 866fee4e to 90ff43f95, the merge of PolicyEngine/microcosm#1373, which locks policyengine-uk 2.162.8. The benefit-cap test moved in policyengine-uk, so reference [9] now points at the annual-limit helper in policyengine_uk/utils/benefit_cap.py at the 2.162.8 tag. The text changes that follow from the re-pin come in the next commits. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
policyengine.py 6.10.0 made Microcosm UK the certified UK default in place of Enhanced FRS, and 6.11.1 serves the pair built at 67ee2ddf3 on policyengine-uk 2.151.0. Rewrite the summary and release status around that: - the national file serves UK and country results, and a separate local-area file serves constituency and local-authority analyses, outside the certificate; - this page describes 90ff43f95, whose release is being built and certified, and marks changes that reach users with it "from the next release". Add a short "Which file PolicyEngine uses" note: the two files are calibrated separately, so constituency results add up to the local-area file's national total, not the national file's. Rework the Enhanced FRS section as the predecessor that the national release must still fit better than, with the input-mass parity check both builds keep against it, and say policyengine.py no longer loads its area weight matrices. Reference [1] now cites policyengine.py's release notes and UK region routing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ecks Bring the local route up to 90ff43f95: - in Great Britain each placed copy takes its area's Broad Rental Market Area, and private renters a rent from that BRMA's published list at their regional rank (PolicyEngine/microcosm#1305); Northern Ireland keeps the spine's draw; - the exact-size local release holds 150,000 households, not 100,000; - rotated holdouts and the Enhanced FRS comparison are optional for a local release, which then records that it makes no such claim, while the national release must still fit shared targets better than Enhanced FRS; - list what blocks a release: national targets within 25% in both builds and, for a local release, the per-area support floors, the per-target and per-family fit limits, the weight-ratio and effective sample size limits, and consistent geography and BRMAs. The diagram's local boxes and its text description say the same, and its caption names both Microcosm-derived local families, with constituency energy marked as arriving with the next release. Reference [2] links the localisation steps. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sources and stages: - say that 49 ordered stages build the shared household records, and describe the stages added since 866fee4: annual income for HMRC targets, regional Land Registry home values, property purchases against HMRC's stamp-tax statistics, Universal Credit take-up by family type and award, Move to Universal Credit, Carer's Allowance take-up and childcare take-up for added copies; - mark as arriving with the next release the DfE apprentice flags and the alcohol, tobacco and gambling duty inputs levelled to HMRC, with OBR's duty forecasts measured as checks. Targets: - Universal Credit area cells count households with a payment; - add Scotland's 18 BRMA private-rent rows, the England band H exclusion and, from the next release, single-adult discounts and constituency energy split from DESNZ small-area data; - high-value homes are fitted for local authorities only, with region controls, and cells under 400 homes join the small-cell rule. The Scotland text no longer says there are no Scottish private-rent targets, and reference [5] links the small-cell rule. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bump the UK methodology to version 0.6, prepared 27 October 2026, and add a history entry listing what changed with the re-pin to 90ff43f95: Microcosm as the certified UK dataset and Enhanced FRS as its predecessor, which file PolicyEngine uses, the stages since 866fee4, area-based BRMAs and rents, Scotland's BRMA rent targets, the 150,000-household release, the optional local holdouts and Enhanced FRS comparison, the local release criteria, the items that arrive with the next release and the moved benefit-cap reference. The page stays a noindex draft pending review. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PolicyEngine certifies the national and local-area files of a Microcosm UK release together, so drop the statements that the certificate covers the national file only and that constituency and local-authority results are not certified. The local-area file is still not the default dataset. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Draw the calibration targets as a labelled group, like the sources at the top: UK, country and regional statistics, which both routes fit, and the constituency and local-authority statistics only the local route fits. Drop the caption below the diagram, which repeated the text around it; the figure now takes its name from the diagram's title. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Drop the Scottish examples from the sentence on where tax and benefit rules are modelled. - Say in the overview that imputation gives records their characteristics and calibration only changes how many households each represents, and retitle the imputation subsection so it no longer mentions calibration. - Support diagnostics count records, not only records with positive weights. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Point readers to the papers behind the method choices instead of describing them in depth: - the imputation working paper, beside the weighted quantile regression forests; - the calibration working paper, in preparation, beside the gradient-based optimiser; - the L0 working paper, beside the exact-size selection, which now says it uses an L0 penalty. Record these changes, the certification wording and the diagram grouping in the version 0.6 history entry. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@juaristi22 round 5, at Verdict: not ready to merge yet. The method text holds against Microcosm at Round 4 (
New findings
Claims I checked against Microcosm
Neutrality and disclosure
Links, accessibility and layout
What I ran and didn't read
🤖 Generated with Claude Code |
The status no longer says a release is being built from 90ff43f95 itself. It now says the next release is being built on this revision with policyengine-uk 2.162.12 and one unreleased engine change, without changing the method described, and that no release has yet been certified from this revision or later. Changes not yet in a certified release are now "planned for the next release" and reach users only if that release passes its checks (Vahid's round 5, finding 2). The page stays pinned to 90ff43f95. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The page presents Microcosm UK as a certified dataset, so a reader may expect to download it. Add that the released files derive from the licensed surveys and are not publicly downloadable (Vahid's round 5, finding 3). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks @vahid-ahmadi. Round 5 is addressed in
The earlier open items are unchanged: code-owner enforcement needs an admin, and the contact is still the issues page. 🤖 Generated with Claude Code |
|
@juaristi22 round 6, at Verdict: not ready to merge yet. One must stays open (the local-area file's certification), and there is one new should. Not approving or merging; that stays with Vahid. Round 5 items
New findings
What I ranFresh clone at 🤖 Generated with Claude Code |
External users need a cohesive explanation of the UK household pipeline alongside Microcosm's implementation runbooks. Add
/methodology/ukcovering sources and imputation, small-area household assignment, joint national/constituency/local-authority calibration, changes from Enhanced FRS, and validation limits.The page reuses the homepage's fonts, colour tokens, animated household field, navigation and footer, hero buttons, diagram styles and scroll reveals. It opens with a short summary of which dataset PolicyEngine certifies for UK analysis today and which file serves national and local results. It adds a responsive contents list, source and target tables, a pipeline diagram (sources, household records, the national and local routes, area assignment, calibration against official statistics and each route's checks), key terms, what is fitted for Scotland, what a release must pass, nation-specific limits, version history and pinned implementation references. Navigation wraps on narrower desktop and tablet screens so the page's extra navigation link stays visible.
The page is version 0.6, a draft describing Microcosm revision
90ff43f9575fb5ae5c0c4389ba4790ab4ade5722, which locks policyengine-uk 2.162.8. The next release is being built on that revision with policyengine-uk 2.162.12 and one unreleased engine change, without changing the method. The page names the release policyengine.py 6.11.1 serves today (built at67ee2ddf3with policyengine-uk 2.151.0) and marks the changes planned for the next release. Enhanced FRS 1.58.1 appears as the predecessor: the last Enhanced FRS release PolicyEngine certified before policyengine.py 6.10.0 made Microcosm the UK default, and the benchmark a national Microcosm release must still beat. The page does not certify a dataset release or publish validation figures. Until editorial and technical review are complete it carriesnoindex, and the homepage links to it as a draft: the release walkthrough says it uses US data and that the UK page is currently a draft for editorial review, followed by a button to the page. The navigation and footer link to it too.Add editorial and contributor instructions (
methodology/EDITING.md,methodology/AGENTS.md) that keep the public narrative focused, require human editorial and technical review before publication, and list what to change at publication..github/CODEOWNERSnames the UK data maintainer and a technical reviewer for/methodology/.What version 0.6 changes
866fee4(annual income for HMRC targets, regional Land Registry home values, property purchases, Universal Credit take-up by family type and award, Move to Universal Credit, Carer's Allowance take-up, childcare take-up for added copies).90ff43f95. The benefit-cap reference moves topolicyengine_uk/utils/benefit_cap.pyat the 2.162.8 tag. New links cover policyengine.py's release notes and UK region routing, the localisation steps and the small-cell rule.Validation
90ff43f95, policyengine-uk 2.162.8 (the version Microcosm locks at that revision), policyengine.py 6.11.1 (its changelog, region routing and bundle manifest) and Enhanced FRS 1.58.1 (daad71c). The FRS sample sizes come from DWP's background note and the Scottish Government's poverty statistics, not from the build. Every number on the page is a published figure, a code parameter, a version, or a count of stages, targets or areas. None comes from a release's diagnostics.git diff --checkpasses. The site is static HTML on the existing Vercel configuration, with no build step or general site test suite.Before publication
noindexand the homepage's draft wording, update the status line and record the review date, asmethodology/EDITING.mddescribes.master. It is a repository setting and needs an admin.Refs #83. The issue remains open until the reviewed page is published and the Microcosm README links to it.
🤖 Generated with Claude Code