Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Fifty-one UK register entries lapsing by 15 December 2026 are renewed with María's approval of 27 November 2026 (microcosm#1736). No build figure moves: each entry stays as it was in force, with a new approval and expiry.

- **The 25 uprating holds and the ORR rail-support measure exclusion lapsing by 15 December**, renewed to 27 January 2027.
- Their expiry clocks had failed the engine-free suite since 27 November, and the holds of 15 December would have failed it from 1 December.
- The ORR exclusion's expiry matches the holds' again.
- Two hold reasons now say that the editions they wait for had not reached Chronicle at the renewal: DfT BUS05's and ORR's for 2025-26, and SLC's final student support for 2025/26.
- **The local line's 22 gate-only target-fit sign-offs lapsing by 14 December** (11 national rows and 11 local cells), renewed for 28 days to 25 December 2026. Each now cites the current local release, `uk-local-candidate-f100-s42-20261123T075147Z-7081d968`, which still breaches it (microcosm#1301).
- **The Isles of Scilly and City of London support-floor exclusions and the census-households bound family**, renewed for three months to 27 February 2027. Their reviewed wording is unchanged.
19 changes: 19 additions & 0 deletions changelog.d/1717-lcfs-budget-and-mix.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
The LCFS consumption stage's imputed spending ran a quarter above its donor in the bottom income decile (microcosm#1717). Two fixes.

The donor's income predictors carry the frame's concepts. `employment_income` is `p008p`, normal gross wage or salary on the 13-week rule, where it was `b303p`, the pay last time paid. `self_employment_income` sums `p047p` and `p037p`, income from main and from subsidiary self-employment, where it was `b3262p`, the first subsidiary job's profit alone (LCF 2024-25 User Guide Volume F). The frame's predictors are gross pay and self-employment profit.

The spending is no longer drawn target by target, each target conditioned on the earlier random draws, which compounded the forests' pull to the middle at the bottom of the income range. The new `draw_budget_and_mix` operation draws each household's budget, total spending over the twelve COICOP divisions, from its neighbourhood in a forest fitted to the donors' log total spending, read between neighbouring donors' totals. Its mix comes from one donor drawn from a second forest's neighbourhood, fitted to the division shares with the predictors and log total spending as features. The household takes that donor's spending scaled to its budget: the divisions sum to the budget, each fuel, fare and energy part keeps the donor's share of its division, and the excise shares are the donor's own. The scaled basket stays inside the donor's range on every spend target the support clip bounds, so the clip changes nothing: a household whose donor's basket, scaled to its budget, would leave that range keeps its budget and takes a donor drawn afresh from the neighbours whose basket fits, and one none of whose neighbours fits takes the budget nearest its own that its donor's basket allows. Every draw reads uniforms keyed on the household id. The general tools are `forest_neighbourhoods`, `keyed_neighbour_donors` and `keyed_neighbour_quantiles` in `microcosm.fit.donors`; the `microcosm.fit` package itself is unchanged.

On the LCFS 2024-25 diaries, fitted on half the households to impute the other half over 12 splits, total spending in the bottom decile comes out at 0.97 of actual, and every other decile within 5%. The spread of spending among similar households is 1.05 of actual, and the correlations between divisions sit at their sampling floor. On the stage's own input, 0.5% of frame households share an exact basket with another: mixes repeat, at 34,953 frame households on 4,995 donors, and budgets do not.

A `decile_fit` receipt sets the frame's spending beside the donor's by income decile on every build. Each survey is ranked on its own equivalised predictor income, and the receipt gives aggregates with support bands, withholding any decile on fewer than three source households. It gives each figure against the donor as surveyed and against the donor reweighted, within each decile, to the frame's household mix of adults, children, cars and tenure. In that reweighting a category with fewer than three donor households joins another, a category the frame lacks gets no weight, and no household's weight moves more than five times either way. The report-only gate `uk_stage_lcfs_consumption_decile_fit` warns when a decile 1 to 9 leaves the reweighted donor's shape, its ratio over the pooled ratio of deciles 4 to 7, by more than 10%, so a difference between the two surveys' household mixes does not set it off. Given each household's mix donor, the receipt also gives the effective number of donors behind the frame's mixes in each decile and in each region's deciles, the number of distinct mixes to expect when cutting spending by such a group. A `budget_and_mix` receipt records the draw's range step on every build: the support band and shares of the households given a new donor and of those moved to another budget. The receipt's official reference is ONS Family Spending, financial year ending 2025 (workbook 1, Table 3.1E, by equivalised disposable income decile on the updated OECD-modified scale), vendored from the re-pinned Chronicle feed as `ons_family_spending_income_decile_facts.json`. For each decile, in total and by division, it sets the published weekly mean and its shape beside the frame's and the donor's own profiles, each decile's mean over its deciles 4 to 7.

A household with a negative income, a self-employment loss say, draws like any other: the forests read incomes as values, so it sorts with the donors at the bottom of every split on income.

Surfaces that move in lockstep:

- the sources manifest and its projection;
- a schema branch and the operation-kind allow-list;
- the stage's hash bindings, which now include `microcosm.fit.donors`, and the spine's seed key;
- the H2 fixture and the coverage manifest;
- the gate battery's registries and digests.
14 changes: 14 additions & 0 deletions changelog.d/1717-uk-feed-repin-e4d46c93.changed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
The UK Chronicle feed is re-pinned to e4d46c93, the merge of PolicyEngine/chronicle#450 into Chronicle main (2,160,837 rows; 15040ea5: 2,160,350), for the LCFS decile receipt's official reference (microcosm#1717). The merge commit's tree is the pull request head's (4e7d7746), merged onto an unmoved base, so the artifact was built from that head's bundle and carries the merge commit's identity.

**What it adds.** PolicyEngine/chronicle#450 adds ONS Family Spending, financial year ending 2025 (workbook 1, Tables 3.1E and A6), in 487 facts. They give mean weekly household expenditure by commodity group, with each decile's weighted households and sample size, by equivalised disposable income decile on both equivalence scales and by gross income decile.
- The LCFS stage reads two parts of it from the new vendored `ons_family_spending_income_decile_facts.json` (133 rows): Table 3.1E's deciles on the updated OECD-modified scale, and the all-households column.
- Chronicle main's other merges since 15040ea5 add no UK facts: #445 registers CenTax's childcare workbook raw-only, and #448's district packages are US.

**What moves.** A line-by-line diff of the two artifacts finds every 15040ea5 row byte-identical and none dropped; the 487 new rows are #450's.
- **References and receipts:** the national references and both compile-parity receipts are byte-identical, so no compiled value moves.
- **Vendored resources:** every other one changes only its pin stamps. The DESNZ constituency resource keeps the same 2,526 values, with new keys and input digests.
- **Memberships:** the national membership changes only its feed identity. The local membership also moves the DESNZ cells' derived fact keys.
- **Local references:** they gain the hierarchy category `microcosm.centax_childcare_parents`, which microcosm#1399 declared after they were last generated. No local reference changes.
- **Digests:** the local census, the validation-level register and the release input coverage manifest change only their source digests.
- **H2 fixture:** it moves the stage contract hashes of the 21 stages that bind vendored resources.
- **Feed-input checks:** the high-value home stock and the conditioned atomic-area supports pass theirs on the new pin, so neither is rebuilt.
23 changes: 23 additions & 0 deletions docs/uk-chronicle-feed-repin.md
Original file line number Diff line number Diff line change
Expand Up @@ -539,3 +539,26 @@ the three property stages that bind the stock. The stock cells (microcosm#1524)
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.

The `e4d46c93` re-pin (microcosm#1717) is the merge of PolicyEngine/chronicle#450 into Chronicle
main. It adds ONS Family Spending, financial year ending 2025: mean weekly household expenditure
by commodity group, with each decile's weighted households and sample size, by equivalised disposable
income decile on both equivalence scales and by gross income decile. That is 487 rows, 2,160,837 in
all, under the same row contract. The merge commit's tree is the pull request head's (`4e7d7746`),
merged onto an unmoved base (`ece6bb29`), so the artifact was built from that head's bundle and carries
the merge commit's identity. It follows `15040ea5` (2,160,350 rows, PolicyEngine/chronicle#443),
whose rows are all byte-identical in it. Chronicle main's other merges since then add no UK facts: #445
registers CenTax's childcare workbook raw-only, and #448 is US. The new
`ons_family_spending_income_decile_facts.json` holds Table 3.1E's deciles on the updated OECD-modified
scale and all households (133 rows). It is the official reference the LCFS decile receipt reads, and
the country package declares it. Every other vendored resource changes only its pin stamps. The DESNZ
constituency resource keeps its 2,526 values, with new keys and input digests.

The national references and both compile-parity receipts are byte-identical. The national membership
changes only its feed identity. The local membership also moves the DESNZ cells' derived fact keys. The
local references gain the hierarchy category `microcosm.centax_childcare_parents`, which microcosm#1399
declared after they were last generated; no reference changes. The local census, the validation-level
register and the release input coverage manifest change only their source digests. The charter-H2
fixture moves the stage contract hashes of the 21 stages that bind vendored resources, and regenerates
byte-identically. The high-value home stock and the conditioned atomic-area supports pass their
feed-input checks on the new pin, so neither is rebuilt.
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@
"derive_weeks_unemployed",
"derive_wic_claim",
"disaggregate_aggregate_records",
"draw_budget_and_mix",
"draw_capital_gains_prior_from_banded_quantiles",
"draw_employer_pension_contributions_from_rate_bands",
"draw_spi_donor_ages_by_population",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8342,6 +8342,56 @@
}
}
},
{
"type": "object",
"additionalProperties": false,
"required": [
"kind",
"predictors",
"budget",
"targets",
"seed"
],
"properties": {
"kind": {
"const": "draw_budget_and_mix"
},
"predictors": {
"type": "array",
"items": {
"type": "string"
}
},
"budget": {
"type": "array",
"items": {
"type": "string"
}
},
"targets": {
"type": "array",
"items": {
"type": "string"
}
},
"categorical_predictors": {
"type": "array",
"items": {
"type": "string"
}
},
"weights": {
"type": "string"
},
"n_estimators": {
"type": "integer",
"minimum": 1
},
"seed": {
"type": "integer"
}
}
},
{
"type": "object",
"additionalProperties": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
},
"source_fact_feed": {
"source_repo": "PolicyEngine/chronicle",
"source_commit": "15040ea53a131ee09f713459554f5f22a4afc6bd",
"source_commit": "e4d46c93112f69da0c9cea5ce89a43bd8adf0cf9",
"build": "build-bundle --suite uk -> build-consumer-artifact",
"artifact_schema_version": "policyengine_ledger.consumer_artifact.v2",
"fact_row_count": 2160350,
"facts_sha256": "9fc0715e59c561ca3838cbd95fd24afbf85d5c8ad2d5316769db52cf23524b62",
"manifest_sha256": "4b05b3b637bec0ebcfbac0d358af0da8429f3d77b68ad0eba215036324c9198e"
"fact_row_count": 2160837,
"facts_sha256": "7a6a83b0396cce0662f7eadd1db343a6ab8793d2b74814c6bfcbc6ebe12f9297",
"manifest_sha256": "7488dbf86b546eafeacb2b560aeb09ca894353e7f25ee55efad614d62b660397"
},
"selections": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -465,9 +465,9 @@
"reason": "Measured on ORR table 7271's net operational government support from all sources, María's basis ruling of 2026-10-25 (microcosm#890 G, microcosm#736): table 7270's broad total adds enhancements and miscellaneous support, which are investment, not a subsidy any household's rail use carries. The frame's household rail subsidy (rail_subsidy_spending, the engine's rail_usage times gov.dft.rail.fare_index) sits below the row at design weights. Arm 2c of the policyengine-uk 2.151.0 bump (calibrate-only on arm 2's spine) bound it on table 7271: the row reached its target, but the weights concentrated past the release bound (uk_weight_ratio failed) and the effective sample size fell by about a tenth. So it stays held out of the objective as a measured diagnostic and is never fitted; rebind when the frame's rail use can reach it without that concentration.",
"tracking": "microcosm#1095",
"approved_by": "juaristi22",
"adjudication": "María's ruling of 2026-10-20 on the pre-Budget PR (microcosm#1278): hold the row out only if a national arm with it held out, run beside the calibration-period fix's arm (microcosm#1324), passes the gates and keeps the share of rows within 10 percent; otherwise keep it bound and label the distributional tables. The expiry, 2026-12-11, matches the uprating holds' renewal, after the Budget. Re-measured on 2026-10-24 on arm 2c of the policyengine-uk 2.151.0 bump: bound on table 7271 the row fails the weight-ratio gate. Her ruling of 2026-10-25 closed the basis question on table 7271 and kept the row held.",
"approved_on": "2026-10-20",
"expires_on": "2026-12-11"
"adjudication": "María's ruling of 2026-10-20 on the pre-Budget PR (microcosm#1278): hold the row out only if a national arm with it held out, run beside the calibration-period fix's arm (microcosm#1324), passes the gates and keeps the share of rows within 10 percent; otherwise keep it bound and label the distributional tables. The expiry, 2026-12-11, matches the uprating holds' renewal, after the Budget. Re-measured on 2026-10-24 on arm 2c of the policyengine-uk 2.151.0 bump: bound on table 7271 the row fails the weight-ratio gate. Her ruling of 2026-10-25 closed the basis question on table 7271 and kept the row held. Renewed on 2026-11-27 to 2027-01-27 by juaristi22 with the uprating holds (microcosm#1736): no build since 2026-10-24 has measured the row bound, so that measurement stands.",
"approved_on": "2026-11-27",
"expires_on": "2027-01-27"
},
{
"name": "slc.repayments.scotland_total",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
"country": "uk",
"scope": "uk_calibration",
"source_repo": "PolicyEngine/chronicle",
"source_commit": "15040ea53a131ee09f713459554f5f22a4afc6bd",
"source_commit": "e4d46c93112f69da0c9cea5ce89a43bd8adf0cf9",
"build": "build-bundle --suite uk -> build-consumer-artifact",
"artifact_schema_version": "policyengine_ledger.consumer_artifact.v2",
"consumer_fact_schema_versions": [
"chronicle.consumer_fact.v5"
],
"consumer_fact_schema_sha256": "acd33a091cd8d192be5d264e3e94c13e00afb6fd1972e57d4576ac55a54f6970",
"fact_row_count": 2160350,
"facts_sha256": "9fc0715e59c561ca3838cbd95fd24afbf85d5c8ad2d5316769db52cf23524b62",
"manifest_sha256": "4b05b3b637bec0ebcfbac0d358af0da8429f3d77b68ad0eba215036324c9198e"
"fact_row_count": 2160837,
"facts_sha256": "7a6a83b0396cce0662f7eadd1db343a6ab8793d2b74814c6bfcbc6ebe12f9297",
"manifest_sha256": "7488dbf86b546eafeacb2b560aeb09ca894353e7f25ee55efad614d62b660397"
}
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,11 @@
"kind": "legacy_json",
"schema_id": "legacy_json"
},
{
"path": "ons_family_spending_income_decile_facts.json",
"kind": "legacy_json",
"schema_id": "legacy_json"
},
{
"path": "desnz_road_fuel_by_vehicle.json",
"kind": "legacy_json",
Expand Down
Loading
Loading