Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
d943405
Add country-neutral modules for the stock cell builder (microcosm#1524)
juaristi22 Nov 12, 2026
b61eb99
Move the home-stock library onto the neutral modules (microcosm#1524)
juaristi22 Nov 12, 2026
58192b6
Add the UK stock cell readers and declarations (microcosm#1524)
juaristi22 Nov 12, 2026
7295175
Add the UK stock cell builder and its synthetic end-to-end test (micr…
juaristi22 Nov 12, 2026
f1166d8
Group VOA's build periods with the EPC's age bands (microcosm#1524)
juaristi22 Nov 12, 2026
9ff95b4
Count merged councils' certificates and quarters towards their succes…
juaristi22 Nov 12, 2026
d794635
Read UCL's bundles as ReShare packs them (microcosm#1524)
juaristi22 Nov 12, 2026
e0f1be9
Move the home-stock tool onto the shared code, byte-checked (microcos…
juaristi22 Nov 12, 2026
154172e
Count social certificates without a UPRN once each (microcosm#1524)
juaristi22 Nov 12, 2026
33f0902
State the licences the older manifests leave out (microcosm#1524)
juaristi22 Nov 12, 2026
50be085
Read ONS's capital stocks of dwellings from the feed once it has them…
juaristi22 Nov 12, 2026
22b1871
Commit the stock cells, their loaders and the post-solve scope (micro…
juaristi22 Nov 12, 2026
0c7e68b
Describe the stock cells and their first results (microcosm#1524)
juaristi22 Nov 12, 2026
1153cd7
Merge origin/main into the #1524 stock cells branch
juaristi22 Nov 12, 2026
4baabb2
Sum TS054's repeated tenure rows in the census tenure shares (microco…
juaristi22 Nov 12, 2026
497f4a6
Weight the survey's tenure means in the stock-value check (microcosm#…
juaristi22 Nov 12, 2026
1fe2c74
Re-pin the UK Chronicle feed to 4ce631f5 and rebuild the high-value h…
juaristi22 Nov 13, 2026
41ff893
Rebuild the stock cells on the 4ce631f5 feed (microcosm#1524)
juaristi22 Nov 13, 2026
29a14b2
Count the ten authority cells the tenure fix defers (microcosm#1524)
juaristi22 Nov 13, 2026
645119f
Keep scale_cap_rescale and convex_mean exact for tiny masses (microco…
juaristi22 Nov 13, 2026
00d1f12
Measure the grain test between the patterns and set the land beside O…
juaristi22 Nov 13, 2026
ee5adbe
Anchor the committed stock cells to TS054 and VOA (microcosm#1524)
juaristi22 Nov 13, 2026
326b47d
Name the level inputs' fact keys aggregate_fact_key (microcosm#1524)
juaristi22 Nov 13, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions changelog.d/1524-tenure-social-rent-rows.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
The census tenure shares (`uk_runtime.high_value_home_stock.tenure_shares`) now sum every row of a category (microcosm#1524). Census 2021 TS054 prints social renting from the council and other social renting as two rows under one spec id, told apart by their labels; the shares kept only the last, since the high-value home stock's first build (microcosm#1240). England's social share read 8.8% instead of 17.1% (Wales 7.8% instead of 16.5%), and the owner-occupied share of the private stock 0.672 instead of 0.740 (Wales 0.717 instead of 0.791). The same row twice is now refused, and an area that carries every category must add up to its households, within 0.1% (Scotland's census perturbs its cells).

The high-value home stock is rebuilt on the `4ce631f5` feed (PolicyEngine/chronicle#439). Its coverage weights fall with the private share: England's private-sector homes over £2 million fall from 193,201 to 169,605 (−12.2%), over £1.5 million from 391,430 to 345,885 (−11.6%) and over £1 million from 1,049,214 to 938,587 (−10.5%); owner-occupied homes over £2 million from 115,921 to 101,763. Wales's counts fall by 8.5% to 12.2%. The national and local references that read the stock, the local census, both compile-parity receipts and the charter-H2 fixture are regenerated with it. Ten more authority cells fall under the 400-home floor of microcosm#1301 and are deferred: 608, not 598. Figures already published from the old stock are not updated here.
7 changes: 7 additions & 0 deletions changelog.d/1524-uk-stock-cells.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
A stock table of homes in England and Wales, and the land under them (microcosm#1524, workstream 1 of microcosm#1521). `tools/build_uk_stock_cells.py` pools every home VOA counts into cells of an MSOA × a council tax band. Each cell holds VOA's count at 31 March 2026, the private and social counts, homes seen sold, the owner-occupied share, the mean value and 13 value knots at calendar-2024 prices, and its building cost after depreciation. Land is value less building, never below zero, at one national cost level κ. Authority and constituency figures are sums of cells. MHCLG's land value estimates stay as the comparison. The builder reads public administrative data only (HM Land Registry Price Paid and the UK HPI, the ONS NSPL, VOA's CTSOP 1.1, 3.1 and 4.1, UCL's Price Paid–EPC linked file, Tax Policy Associates' model constants and facts of the Chronicle feed), each checked against its Chronicle registration; addresses never leave its caches.

Five resources under `uk/`: `stock_cells_value.json`, `stock_cells_structure.json`, `la_land_shares.json`, `constituency_land_totals.json` and `stock_cells.provenance.json`, read through `uk_runtime.stock_cells`. The provenance records every input and licence, the level and its status, the variants, the decision rule and the measurements. Price Paid, the UK HPI and the NSPL, whose Chronicle manifests state no licence, carry the licence the home-stock builder states, marked `license_source: declared`. The committed build reads E46Y, ONS's net and gross capital stock of dwellings and Census 2021 TS054 by MSOA from the pinned feed (`4ce631f5`, PolicyEngine/chronicle#439); the builder refuses a feed that carries a level input in a shape it does not select. At κ = 0.807 the decision rule passes, and the stock-value check passes (England +1.3% against the Market Value Survey's private-sector mean, weighted by the private stock's owner-occupied share). The grain test reads "cells are needed": an authority share × cell value places 3.26 points of a balancing land tax on other cells than cell land does, against a threshold of 3. The provenance sets the land under owner-occupied, privately rented and social homes beside ONS's E44N, E44R and land under dwellings: under the central target, owner-occupied land alone is 99.1% of E44N. It also counts the homes that take a pooled floor area by region, sale year and pool. The method and the results are in `docs/uk-stock-cells-land-1524.md`.

The land side (`stock_cells_structure.json`, the two rollups and the provenance) leaves the solve fingerprint as `solve_scope.UK_POST_SOLVE_RESOURCES`, so a land rebuild re-keys no solve kernel; the value block stays in, since the frame's home values will be read from it.

New country-neutral modules under `microcosm.build`: `pinned_inputs`, `weighted_quantiles`, `cell_pooling`, `residual_land` and `derived_resource`. The UK high-value home stock library delegates its knots, digests and pins to them, with no committed byte changed; its dwelling cache is now named for the NSPL it indexes, and the cache of 13 October 2026 is reused.
23 changes: 23 additions & 0 deletions docs/uk-chronicle-feed-repin.md
Original file line number Diff line number Diff line change
Expand Up @@ -503,3 +503,26 @@ input coverage manifest only their source digests. The charter-H2 fixture moves
contract hashes of the stages that read A3's care tab, A3 (f)'s UC carer element column and B3's
resource, and regenerates byte-identically. The high-value home stock's feed inputs pass on the
new pin, so it was not rebuilt.

The `4ce631f5` re-pin (microcosm#1524, the merge of PolicyEngine/chronicle#439 on top of
`81caed75`) adds ONS's dwellings by sector from the two balance sheets, its gross and net capital
stocks of dwellings and Census 2021 TS054 by MSOA: 66,230 rows, 2,160,233 in all, under the same
row contract. The merge adds no file to #439's head `86ae4d49` (the same tree); the artifact is
built from `4ce631f5`. Every vendored resource changes only its pin stamps, and the DESNZ
constituency resource keeps its 2,526 values, with new keys and input digests.

The same change rebuilds the high-value home stock, because the census tenure shares now sum
TS054's two social-rent rows (they kept only the last since microcosm#1240). Its private-sector
counts fall by about 10% to 12% (England's homes over £2 million from 193,201 to 169,605), and the
stock records its feed-inputs fingerprint on this feed (`8f9c40ee…`). So the national references
move only the values of the three regional high-value homes targets
(`microcosm.high_value_homes.over_*_by_region`; 1,710 active references, as before), and the
national compile-parity receipt moves their 28 rows. In the local references, ten authority cells
fall below the `hvcts_la_household_floor` of 400 homes and move from active to signed deferred
(27,157 active), and the local receipt moves 340 high-value homes rows and drops those ten. The
local census and the release input coverage manifest change only their digests. The charter-H2
fixture moves the `stage_contract_sha256` of 22 stages: the 19 that bind vendored resources and
the three property stages that bind the stock. The stock cells (microcosm#1524) read E46Y, MJF8,
MJF7 and TS054 by MSOA from this feed. The regional targets' values move, so the frozen scoring
register of the candidate evaluation (uk-candidate-eval) is due to be re-frozen before the next
national solve.
Loading
Loading