Skip to content

Let a dataset supply the State Pension split in its data year - #2977

Draft
MaxGhenis wants to merge 21 commits into
mainfrom
state-pension-split-stage1
Draft

MaxGhenis wants to merge 21 commits into
mainfrom
state-pension-split-stage1

Conversation

@MaxGhenis

@MaxGhenis MaxGhenis commented Nov 30, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes #2976

axiom: n/a: microsimulation data interface; the legislated State Pension rules do not change

What this adds

Two person inputs let a dataset such as Microcosm say how much of a reported State Pension is linked to the full rate. The model reads them only for the data year d: the dataset's first year or, in a simulation without a dataset, the year being calculated.

  • state_pension_flat_share (E1): the full-rate-linked part, as a share of the legislated full rate for the person's type in d
  • state_pension_addon_weekly_base (E2): the rest, in data-year pounds a week, linked to September CPI

Today the model pays a report as basic or new State Pension up to the legislated full rate for the person's type (the cap), and the rest as additional State Pension; this description calls that the cap split. Both inputs exclude the age addition. Where neither is supplied, their formulas return the cap split's pair (data_year_cap_split), and the cap is rate_by_type with current_law_state_pension() for the person's type in d, so a dataset writer can build the pair from both. The model uses the pair only when all of these hold:

  • both inputs are supplied for d itself (an input for any other year is ignored, and the model never checks whether it fits the report);
  • policyengine-core (Core) works out basic, new and additional State Pension for the period from the model's own formulas: none is stored for the period, as an input, a model value or a value cached without derived=True, and no reform redefines or abolishes one;
  • the model detects no data-year type or age cause (departure 10);
  • the person is over State Pension age in d, and their BASIC or NEW type in the period equals their type in d.

Then, in year y:

  • basic or new State Pension = E1 × the full rate in y × 52
  • additional State Pension = E2 × September CPI(y) / September CPI(d) × 52, from State Pension age in y (zero below it)

The cap split applies when neither input is supplied, the data-year type is NONE, the person's type in the period differs from their data-year type, or a row with an explicit BASIC or NEW type is under State Pension age in d. It also applies to everyone in a period for which a component is stored, redefined or abolished (a component override, departure 6), and to everyone in a simulation in which the model detects a data-year type or age cause (departure 10). When the model turns a supplied split off for either reason, it emits a StatePensionSplitIgnoredWarning once per simulation, data year and reason. In a period with a component override, the warning says that a component is stored, redefined or abolished; otherwise it names the first data-year cause the model detected. Under Python's default warning filter, a repeat of the same message from the same place later in the same process is not shown. An E2 below zero by no more than the float32 rounding tolerance is accepted and counts as zero. Later years then pay no additional State Pension, but in d the refit below can still pay one float32 step: £0.0009765625 a year for a NEW report of £221.20 a week with E1 = 1 and E2 = −£0.00001.

Data-year invariance

At current law and for reforms that start after d, state_pension, overlapping_state_pension, Carer's Allowance and Carer Support Payment in d equal their values without the inputs, bit for bit. Where the full rate in d is the legislated one, the add-on in d is the rest of the cap split's total, fitted so the float32 total equals it exactly:

  • Where the supplied flat part exceeds the total, it is lowered to the total. In 2024-25, a BASIC report of £100 a week with E1 = 0.5899706 and E2 = 0 passes the tolerance check; its float32 flat part, £5,200.0009765625, is lowered by two float32 steps to £5,200.
  • Where the flat part lies halfway between two float32 steps of the total, it is lowered by one of its own float32 steps and the add-on fitted again.
  • Where no float32 add-on reaches the total, the person keeps the cap split in d; later years use the supplied split.
  • Where the cap split's own add-on already brings the flat part to the total, the add-on is that one, so the cap split's own pair, supplied back, gives the cap split's components exactly in d, not only its total, and within float32 rounding in later years.

A total £0.0005 short of a Carer Support Payment threshold would otherwise pay the full Scottish Carer Supplement (test_a_supplied_split_never_pays_a_carer_supplement_the_cap_split_does_not).

Under a reform that sets the full rate in d, the flat part in d is E1 × 52 × the reformed rate, so the #2122 cases assert E1 × 52 × reformed rate + 52 × E2 in d. This holds for a dated basic rate reform (a reformed full rate of £200 a week for an 85-year-old with E1 = 0.5 and E2 = £30: basic £5,200, additional £1,560, State Pension £6,773 with the £13 age addition) and an undated new rate reform (a reformed full rate of £300 a week, E1 = 0.5, E2 = £10: new £7,800, additional £520, State Pension £8,320).

With no inputs

Each component is worked out on its own and reads only what it needs: basic and new State Pension read only their own type's rates and never September CPI, and a type's rate is read only where someone has that type. The cap split divides the float32 weekly report by a scalar rate, as main does, so it keeps main's float32 quotient (£90.05 a week of basic State Pension in 2024-25 pays £4,682.6005859375, not £4,682.60009765625).

A seeded grid compared main (e6909e8) with this branch at 7a9190128, both on Core 3.38.0: 240 synthetic dataset records from 2024 to 2033 (basic, new, additional, State Pension, overlap, type), 60-person synthetic situations in 2009, 2014, 2016, 2020, 2024 and 2026, one component per fresh simulation, a reform that neutralises each component, and each component cached without derived=True in 2024 and 2026. 165 of 168 arrays are identical, bit for bit, with no signed-zero differences. In the other 3, main raises TypeError and this branch returns values: new State Pension in 2009 and 2014 (zero, with no new State Pension type), and additional State Pension in 2009. The grid results describe 7a9190128. Later commits changed component storage lookup, cache handling and detection of data-year type or age changes. Outside the grid, a report of −0.0 gives +0.0 new State Pension to a person whose type is not NEW, where main gives −0.0.

Where neither input is supplied for d, the split reads neither the report nor the State Pension type rules, so the overlap runs main's lines and reads only the components: a report whose formula raises is never read (test_overlap_without_a_split_never_reads_the_report). Under a reform that neutralises additional State Pension, a £200 BASIC report overlaps its £8,814, as on main. Under one that abolishes it through gov.abolitions, the same report with a supplied half share pays and overlaps £8,814 too (test_an_abolished_component_keeps_the_cap_split), where it would otherwise pay half the basic pension and no additional pension.

Current-law rates

The legislated rates that bound the split, and the age addition that state_pension_reported_excluding_age_addition takes off the report, come from processed_parameters(), the shared processed current-law tree. A reformed simulation calculates State Pension during the July 2025 Universal Credit setup, before its baseline simulation is attached, and a scenario modifier can edit the system's own parameters, so neither the attached baseline nor parameters.baseline serves. A probe compared the parameter leaves (basic rate, new rate, age addition amount and age) in the attached baseline simulation's tree with processed_parameters(), for current law and five reforms (age addition, basic rate, dated new rate, single-day new rate, triple lock off), 2015 to 2032, with the new rate from 2016: 0 mismatches. Under no_economic_assumptions, the split is still checked against current law, then pays its share of the frozen rate: an 85-year-old reporting half the 2027 basic rate plus £30 a week, with E1 = 0.5 and E2 = £30, gets half the frozen rate plus £30 a week, where the cap split would pay the whole report as basic State Pension (test_the_split_is_checked_against_current_law_under_a_scenario).

Refusals

Where the calculation reaches the split check (an input supplied for d, the components following the model's formulas, and no detected data-year type or age cause under departure 10), a supplied pair that does not fit the report raises a ValueError naming the input, row and data year, instead of being clipped: a non-finite value; a share outside zero to one, above the share the report covers, or nonzero for a NONE type; an add-on below zero by more than the tolerance; a nonzero split for a report that is zero excluding the age addition; or a pair that does not add up to the report excluding the age addition. Supplying one input for d without the other raises too. Where the calculation doesn't reach the check, as when the model turns the split off for a component override or a detected data-year cause, the pair is ignored and not checked. A non-finite input gets its own error whatever NumPy's error settings, including on a subnormal report. Separately, Core refuses a NaN in a dataset or in set_input when the value is loaded, in any year; that error names the input but no row or year.

Design choices beyond #2976

Elsewhere in this description, these numbered items are cited as departures (departure 1 to departure 12).

  1. state_pension_reported_excluding_age_addition reads the current-law age addition from processed_parameters() instead of the attached baseline simulation. The caps, the legislated full rates, come from there too. Their values are unchanged wherever main read an attached baseline, at current law and under the five reforms above. During the July 2025 Universal Credit setup, before the baseline is attached, main read the reformed simulation's own parameters, so a rate or age-addition reform moved the cap and the deduction there; this branch reads current law (departure 12).

  2. The exact refit in d, above. Where it keeps the cap split, it does so in d only.

  3. The cap split for an explicit BASIC or NEW type below State Pension age in d, since guarding the add-on by age but not the flat part would break data-year invariance for such a person.

  4. Both inputs are required together, for d itself, and a report that is zero once the age addition is taken off needs a zero split. Projected copies of the inputs are ignored only while the dataset's first year stays d: a projected year saved as a dataset of its own reads them as its pair, and raises where they don't fit that year's report.

  5. state_pension_addon_weekly_base is a stock (quantity_type = STOCK), so a monthly read is not divided by 12.

  6. Where Core would not sum the model's own components for a period, the split is off for that period and the overlap uses the components Core sums, as on main. That is where a component is stored for the period (an input, a model value, or a value cached without derived=True, which Core reads in place of the formula) or a reform redefines one (replaces_definition) or abolishes one (gov.abolitions, which Core checks before it reads a formula or a stored value). To find a stored component, the model follows Core's visible branches, reads memory before disk, and looks up the exact disk key for the requested period. The definition check compares every attribute Core calculates a component from, such as its formula for the period, default, defined_for, what it adds or subtracts, its definition period and quantity_type, and skips the descriptive ones (label, documentation, unit, reference, metadata and a few others). So a reform that changes only quantity_type turns the split off too, and the person gets the cap split. A dataset column for a component turns the split off for every record in every year that holds it, with a StatePensionSplitIgnoredWarning: a single-year dataset is projected to 2032, so from d to 2032. From 2033, where nothing is stored, the split applies again, so a pair that does not fit the report raises there, though nothing checked it through 2032 (run at 7a9190128: a column of the 2024-25 basic rate turned the split off from 2024 to 2032, and a valid pair gave the split from 2033 to 2036). Neither Microcosm nor policyengine-uk-data writes such a column today.

  7. basic_state_pension, new_state_pension and additional_state_pension join SUPPLIED_INPUT_VARIABLES, so stored_as_input can answer for them.

  8. The September CPI ratio is exactly one in d itself. This gives the same value wherever main works, and no component in d now needs September CPI. A year that starts in d on another day is not d: with the index doubled on 1 July 2024 alone, year:2024-07 pays a £200 BASIC report's add-on at twice its rate, £3,172, as main does.

  9. The check in 6 reads what is stored for the period instead of recording a dependency, which Core does not track. A formula that makes a branch and stores a component on it while the branch's parent is calculating could leave a component the parent calculated standing on the branch. No formula in policyengine-uk stores a State Pension component or a split input on a branch: the branches the model makes (marriage tax reforms, measurement branches, the Pension Credit income tax, ESA, tax credit and UC non-dependant branches, and the marginal tax rate branches) store other variables. Simulation.set_input from outside, with every ancestor idle, drops the calculated values before the next calculation, so a component set that way on a branch or a clone after a calculation gets the cap split. After raw holder writes or deletions, call simulation.reset_calculations() before calculating again. If such an edit changes whether the split applies, the next formula that checks the split can raise a cache-reset error. Public Simulation.delete_arrays() schedules a refresh before the next outermost calculation. Simulation.set_input also refreshes a branch before its next calculation when it stores a data-year type or age input there while the branch's parent is calculating. Where all three components are already cached, Core can calculate State Pension without rechecking whether the split applies.

  10. When the model detects a data-year type or age cause, it turns the split off for everyone, even when no row's type changes. The check covers redefinitions in d of state_pension_type, is_SP_age, months_since_state_pension_age, state_pension_age, is_male, age, date_of_birth, months_since_last_birthday and gender. In a simulation built from a dataset, it also covers person_id, person_weight and household_weight when Core reads no non-derived months_since_last_birthday for d on the simulation's branch. It compares the State Pension age timetable's active bracket structures, evaluated values and evaluation class in d, and the exact new State Pension start. In a simulation built from a dataset, it also checks inputs for d of the first eight variables written after the dataset loads through Simulation.set_input or Holder.set_input. It counts such an input only where Core reads it for d and can replay it. The check does not count dataset columns for those variables. The warning names the first cause the model detected. Three examples, each tested: an undated State Pension age of 90 (1,080 months) for men born before 6 December 1953 (Pensions Act 1995, Schedule 4, rule (1)), no new State Pension before 2101, and a redefined is_SP_age. Under each, the model pays what it pays without the inputs, in d, d + 1 and d + 6. The definition check compares an Enum by its members, since Core loads each variable file as a module of its own and its Enum classes differ from an import's. The new State Pension start now comes from one helper (new_state_pension_start), which the type formula and the check share.

    Drop both inputs to use the cap split. To keep the split, date an override of the existing male pension-age parameter to take effect after d, for example 2026-01-01.2100-12-31 for a 2024 data year. A scalar applies from 2023 in a reform dict and from 2000 through Reform.from_dict or parameter_changes. In a reform dict or parameter_changes, a bare year key such as "2026" covers fiscal year 2026 only; through Reform.from_dict, it applies from 1 January 2026 onwards. Only the reformed simulation turns the split off, so the reform's change from the baseline also holds the gap between the split and the cap split; the warning says so, and the inputs' docs give both remedies above. The model keeps the split for a 2024 or 2025 data year under a reform from 2026 (tested).

  11. When the model detects no cause, it still checks each pair against the row's data-year type: it raises a ValueError where a pair built for another type does not fit, and applies a pair that fits without a warning. An all-CPI pair (E1 = 0) can still fit when a different model version moves a row from BASIC to NEW or from NONE to BASIC or NEW, or when the row's type comes from a dataset column. In each year in which that row is over State Pension age and has its data-year type, the model pays the whole report as additional State Pension linked to September CPI. Build each pair with the model version that will read it, for the type that version gives the row in d. At 31cb7cb35, the model retyped a NONE row with no error or warning under an is_SP_age input for 2024 and under an is_male reform for 2015. When the model detects a cause, it uses the cap split and warns once per simulation and data year (departure 10). During construction, the July 2025 Universal Credit setup can calculate State Pension before a standard post-load modifier runs, so the model can refuse a pair that does not fit even where it would turn the split off once the modifier has run.

  12. With no inputs, the model differs from main in three ways (With no inputs, above). At 7a9190128 it returned values for the three arrays where main raises TypeError. A report of −0.0 gives +0.0 new State Pension to a person whose type is not NEW. And the caps and the age addition come from processed_parameters() where main read the attached baseline simulation, or the reformed simulation's own parameters during the July 2025 Universal Credit setup, before the baseline is attached (departure 1).

Open items

  • After a raw holder write or deletion, call simulation.reset_calculations() before calculating again (departure 9).
  • When the model detects an is_male redefinition, a tracked is_SP_age store or a State Pension age-scale evaluation change, it turns the supplied split off, and its warning names the cause. Where the model detects no cause, as when a row's type comes from a dataset column or a different policyengine-uk version, it still checks the pair: it raises a ValueError if the pair no longer fits and applies the pair without a warning if it still fits.
  • A reform that changes only a component's quantity_type turns the split off (departure 6). This errs toward the cap split.

Tests

policyengine_uk/tests/test_state_pension_legal_split.py covers:

  • data-year invariance, bit for bit, including clamped, zero and subnormal reports;
  • each component asked for alone against the full calculation in d;
  • the default split against main's arithmetic, exactly, through 2040;
  • the projection across the forecast boundary, retyped records and situations;
  • the legal-piece round trip (£84.75 basic, £30 SERPS, 25p age addition);
  • the dated and undated Undated State Pension rate reforms move State Pension the wrong way #2122 reforms, current law and a later-dated pension-age reform;
  • the three retyping reforms in departure 10, is_male with and without retyping, date_of_birth, a scale evaluation-mode change, changed and equal is_SP_age overwrites, and the birthday-storage cases for ID, weights, gender and months_since_last_birthday;
  • the split kept under two equivalent age timetable edits;
  • direct holder writes, a branch write during a parent calculation, age input replay and warnings on each simulation;
  • the constructor's standard scenario order, and a refusal during construction before a post-load modifier runs;
  • dataset eligibility and type columns, refused and accepted in separate tests;
  • the carer supplement threshold, the below-State-Pension-age fallback, and the period age guard on the add-on with a half share;
  • a stored component, a component cached without derived=True, a component set on a branch or a clone after a calculation, a reform that neutralises a component, one that abolishes it through gov.abolitions, a stored component's warning, given once and raised on each calculation under an error warnings filter, and inputs for other years;
  • with neither input, an overlap that never reads a report whose formula raises;
  • under no_economic_assumptions, a split that pays half the frozen rate plus its add-on, below the cap split;
  • a year that starts in d on another day, and a non-finite share on a subnormal report;
  • 2009 and 2014 situations, and the float32 quotient;
  • the refusals;
  • in test_supplied_inputs.py, every variable's calculation definition, alike in two systems;
  • a seeded round trip of the inputs' own defaults, and three Hypothesis properties, one of them on legal pieces drawn independently (a basic share of qualifying years over 30 beside additional pension; a new share over 35, with a protected payment only at the full rate): the share they imply is at most the cap split's, data-year totals do not move, and each piece comes back under its own uprating.

Test runs

The table below records historical runs at c3b7178ad.

Suite Core 3.34.9 (the uv.lock pin) Core 3.37.1
test_state_pension_legal_split.py 63 passed 63 passed
test_state_pension_components.py 33 passed 33 passed
test_state_pension_age.py 44 passed
test_supplied_inputs.py 72 passed
test_supplied_input_tightening.py 12 passed
test_state_pension_reported_weeks.py 11 passed
test_carer_support_payment.py 10 passed
test_carer_overlapping_benefits_properties.py 4 passed
test_uc_state_pension_properties.py 5 passed, 1 expected failure
test_state_pension_rate_rounding.py 36 passed
DWP YAML tests (tests/policy/baseline/gov/dwp) 1,063 passed
ESA income YAML tests 144 passed

Each of these changes, made one at a time on Core 3.34.9, failed the test written to catch it:

  • the abolition check never finds an abolition;
  • the split reads the report before checking that a pair is supplied;
  • the add-on is fitted without the exact refit (12 records' additional State Pension then differs between the supplied default split and the cap split in the last float32 digits, with the same totals);
  • the split never applies;
  • the warning's once-only flag is set before the warning is given;
  • the stored-component warning is removed;
  • the reform warning is removed;
  • the warning is given on every calculation.

The date-range remedy and the bare year key behave as departure 10 says on all three routes (a reform dict, parameter_changes and Reform.from_dict).

ab68e0142, the head, is one commit on 6680fd92f. With it, the model keeps the split under two equivalent age timetable edits, turns the split off for a type or age input written after loading through Holder.set_input, refreshes a branch that gets a type or age input through Simulation.set_input while its parent is calculating, and warns once on each simulation that calculates the affected split. The commit also updates the inputs' docs and the changelog. These runs used Python 3.13.5 and Core 3.34.9 (the uv.lock pin). The 12 selected tests are the new regressions and their controls:

Revision Tests Passed Failed Skipped Expected failures
6680fd92f test_state_pension_legal_split.py, 12 selected regressions and controls 7 5 0 0
ab68e0142 test_state_pension_legal_split.py, the same 12 12 0 0 0
ab68e0142 test_state_pension_legal_split.py 88 0 0 0
ab68e0142 test_state_pension_components.py 33 0 0 0
ab68e0142 test_state_pension_split_storage.py 11 0 0 0
ab68e0142 test_state_pension_age.py 44 0 0 0
ab68e0142 test_state_pension_reported_weeks.py 11 0 0 0
ab68e0142 test_state_pension_rate_rounding.py 36 0 0 0
ab68e0142 test_supplied_inputs.py 72 0 0 0
ab68e0142 test_supplied_input_tightening.py 12 0 0 0
ab68e0142 test_carer_support_payment.py 10 0 0 0
ab68e0142 test_carer_overlapping_benefits_properties.py 4 0 0 0
ab68e0142 test_uc_state_pension_properties.py 5 0 0 1
ab68e0142 All Python tests under policyengine_uk/tests 14,174 0 106 1
ab68e0142 All YAML tests under tests/policy (591 files) 6,887 0 0 0
ab68e0142 YAML tests in tests/policy/baseline 6,680 0 0 0
ab68e0142 DWP YAML tests (tests/policy/baseline/gov/dwp) 1,063 0 0 0
ab68e0142 ESA income YAML tests 144 0 0 0
ab68e0142 YAML tests in tests/policy/integration 63 0 0 0
ab68e0142 YAML tests in tests/policy/reforms 144 0 0 0

At ab68e0142, the 106 skips are 60 parameter cases in test_dwp_published_rates.py with no uprating or a series that ends before 2026-27, one test that needs the optional policyengine_bundles package, and 45 tests that need survey data. The expected failure is #1947.

Cost: with a pair set to the inputs' own defaults, a fresh simulation of the 240 grid records calculating State Pension from 2024 to 2032 took 0.88 times as long as without it (median of five runs in one process, the run without the pair first in each, at 7a9190128).

🤖 Generated with Claude Code

codex and others added 12 commits November 29, 2026 13:43
Add state_pension_flat_share (E1) and state_pension_addon_weekly_base
(E2), read only at the data year. While the period's pension type
matches the data-year type, basic or new State Pension pays E1 times
the period's full rate, and additional State Pension uprates E2 by
September CPI from the data year. A changed type, a NONE type at the
data year, or no supplied split keeps today's split at the legislated
full rate. The carer overlap keeps its share on that split, so a
supplied split moves no data-year Carer's Allowance or Carer Support
Payment. A supplied pair that does not add up to the report at the
legislated full rate raises an error instead of being clipped.
Cover data-year invariance of State Pension, the overlap, Carer's
Allowance and Carer Support Payment; the default against the starting
commit's formulas through 2040; projection of a single-year dataset
across the forecast boundary; re-typed and NONE-type records; the
52-week annualisation; refusal of infeasible inputs; an age-addition
reform; and Hypothesis properties for the pieces' rates, the exact sum
and monotonicity.
The split's cap and the age addition taken off the report both read
current law (#2122). A reformed simulation calculates State Pension
while the July 2025 Universal Credit setup runs, before its current-law
baseline simulation is attached, so reading that simulation's
parameters fell back to the reformed ones and the split check rejected
the supplied pieces. parameters.baseline, read at 30 April as the
fiscal-year conversion samples it, gives the same rates (checked for
six reforms, 2015 to 2032) and is there throughout construction.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e data year exact

Round 1 review fixes:
- Read current-law rates and the age addition from processed_parameters(), which no reform or scenario modifier changes and which exists while a reformed simulation is built.
- Use the supplied split only when both inputs are supplied for the data year (supplied_by), for a person over State Pension age then whose BASIC or NEW type is unchanged; everyone else keeps the cap split. One input without the other raises.
- In the data year, where the full rate is the legislated one, fit the add-on so the float32 total equals the cap split's exactly, nudging the flat part off a round-half-to-even tie. A total short of a carer benefit threshold would otherwise pay the Scottish Carer Supplement.
- Read each type's rate only when someone has the type, so a pre-2016 basic situation needs no new State Pension rate; the overlap reads the cap split the same way.
- Refuse non-finite inputs and a nonzero split for a zero report; make the add-on a stock; register both inputs.
- Tests for each finding, the legal-piece round trip, the #2122 reform cases and the projection levels.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…fits

The test supplies a value for every registered input. The person reports
no State Pension, and the model refuses a nonzero split for a zero
report, so both parts of the split are zero.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… where it holds

Review r2 found that a directly stored component could double the data-year
pension, that an input for an earlier year triggered a false refusal, and
that the default calculation had lost main's rounding and laziness.

- A split is used only when both inputs are supplied for the data year
  itself; inputs for any other year are ignored and never checked.
- Where basic, new or additional State Pension is stored for a year, all
  three take the cap split for that year and the overlap uses the stored
  components, as on main. The three components join SUPPLIED_INPUT_VARIABLES
  so stored_as_input can answer for them.
- Each component reads only its own type's rates, and only where someone has
  the type; basic and new never read September CPI, and the CPI ratio is
  exactly one in the data year. The cap split divides the float32 report by
  a scalar rate, which keeps main's float32 quotient.
- Nonfinite inputs get their named error whatever NumPy's error settings.
- Tests: an exact differential against main's arithmetic through 2040, exact
  data-year invariance including clamped, zero and subnormal reports, each
  component alone against the full calculation, the stored-component and
  other-year cases, the period age guard, an undated new State Pension
  reform with literal amounts, and a generated round trip of the inputs'
  own defaults.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…omponents

A supplied split keeps the State Pension a report gives only if Core sums
the three components the split gives. Core reads any value it did not
calculate in place of a formula, including one put_in_cache stores without
derived=True, and a reform can redefine a component. Then all three keep
the cap split, and the overlap uses the components Core sums.

One check (_split_in_use) now decides where the split applies, for each
component and for the overlap, so with no inputs the overlap runs main's
lines. A year that starts in the data year on another day is no longer
taken for the data year, and the weekly report ignores NumPy's error
settings so a nonfinite input still gets its named error.

Tests cover review round 3's cases: a cached component, a component set on
a branch or clone after a calculation, a neutralised component, a shifted
annual period, a subnormal report, the period age guard with a half share,
and generated legal pieces.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A reform in force in the data year that changes how State Pension age or
type is set there (an undated State Pension age change, no new State
Pension, or a redefined is_SP_age, state_pension_age,
months_since_state_pension_age or state_pension_type) checked a supplied
split against a type it was not built for and refused the dataset. The
split now gives way to the cap split for everyone under such a reform, as
before the split inputs existed. A reform that starts after the data year
keeps the split.

The new State Pension start moves to a shared helper so the type formula
and the check read it the same way, and the variables' docs say the data
year is the dataset's first year.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Core loads each variable file as a module of its own, so the simulation's
State Pension type Enum is a different class from the one an import of the
file gives. The definition check compared possible_values and default_value
by identity, so it read state_pension_type as redefined at current law and
turned a supplied split off everywhere. It now compares an Enum class by its
name and members and an Enum member by its name and value.

The tests that retype the data year now use reforms that do: a male State
Pension age of 1,080 months (the parameter is in months), and no new State
Pension before 2101 (a scalar applies from 2023, after the 2016 start). A
test checks the type rules follow current law without a reform, and another
that two systems define every variable alike. The split inputs' docs say to
start a State Pension age or type reform after the data year.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The legal-pieces property pins each record's type for the data year, and
the pin carries forward, but the add-on is paid only from State Pension
age in the period. A man held at 66 is below the State Pension age of 67
in 2030, so his add-on is zero there. The property now expects that.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…hing without inputs

- components_follow_formulas returns False where gov.abolitions abolishes a
  component, as Core does before it reads a formula, so a supplied split no
  longer pays half the basic pension beside a nil additional pension.
- The split checks that an input was supplied for the data year before it
  reads the report or the type rules, so a simulation without the inputs
  calculates the overlap as main does.
- The data-year refit keeps the cap split's own add-on where the supplied
  pair already reaches the total, so supplying the cap split's pair back
  gives its components exactly.
- The scenario test now checks a split that pays differently from the cap
  split under a frozen rate; the docs define the data year.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…t off

A reform in force in the data year that changes how State Pension age or
type is set there turns a supplied split off for everyone, so the reformed
simulation uses the cap split while its baseline uses the supplied one.
StatePensionSplitIgnoredWarning now says so, once per simulation, and names
the remedy: start the reform after the data year. The input docs and the
changelog name the warning and the abolition case.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Aggregate impact on certified data: pass

Base e6909e8de3 against head a78688b51d, both on enhanced_frs_2024_25.h5 (policyengine-uk-data 1.58.1, sha256 056e80fd8e91), fiscal years 2025-26 to 2031-32. Each year is a full microsimulation run on each side.

Checks: 0 broken by this change, 1 failing on both sides, 0 fixed. Moves flagged for review: 0 (thresholds in report_spec.yaml; a flag does not fail the job).

Workflow run and full report

Notes

  • In the years a figure from fewer than 10 records is suppressed (spending.disabled_students_allowance), every total containing it, and the decile incomes, are rebuilt from their other components, so no published total includes it. Those totals are marked †. A change is withheld where the two sides leave out different figures and can't be lined up.

Moves flagged for review

None.

Spending by benefit and service

Measure 2025-26 2026-27 2027-28 2028-29 2029-30 2030-31 2031-32
Disabled Students' Allowance suppressed suppressed suppressed suppressed suppressed suppressed suppressed

Caseloads

Measure 2025-26 2026-27 2027-28 2028-29 2029-30 2030-31 2031-32
Disabled Students' Allowance suppressed suppressed suppressed suppressed suppressed suppressed suppressed

Household net income by decile

No household's net income changes in any year.

No change in any year: receipts by tax head; government balance, each component counted once; model totals; household income totals; population; poverty rates; people in poverty; inequality; mean household net income in each side's own deciles; standard reform costings (change in gov_balance); standard reforms: change in each reform's target.

Checks failing on both base and head (1)
  • VAT excluding private school fees is never negative (sign:vat): 2025-26: 76 units below zero, a weighted £-52,314,332 in total; 2026-27: 76 units below zero, a weighted £-54,150,722 in total; 2027-28: 76 units below zero, a weighted £-56,043,426 in total
Counted-once check

The check raised each of 92 components by £1 per unit in 2026-27 and read every head of its totals household by household: its own head must rise by exactly £1, no other tax head may move, no other benefit may rise, and the model's own total must move by what its heads moved. A response that is not finite breaks every rule. The check measures a head that breaks a rule twice more: once holding every other head at its baseline value, and once holding every other head at its value after the first £1 while the component rises again. The head fails where either measurement still shows the response. The check cannot hold a head at a value that is not finite. In each unit where another head is not finite after the first £1, it holds that head at its baseline value, and the second measurement judges no household the unit belongs to. There a head fails wherever it first broke a rule, or wherever the check could not confirm whether its response contains the component. 0 failed and the check skipped 0.

  • widowed_parents_allowance: pension_credit responds only through other heads in fewer than 10 households (other heads that moved there: carers_allowance; gov_spending; not a failure)
  • widowed_parents_allowance: pension_credit responds only through other heads in fewer than 10 households (other heads that moved there: carers_allowance; household_benefits; not a failure)
Provenance
Side Commit Runtime Environment hash Partition hash Time
base main e6909e8de3 uk 2.180.2 (files ffa2a061bf53), core 3.34.9, py 3.13.18 aarch64 434edb3d6900 f5dab8526157 3076.14s
head #2977 merged into main a78688b51d uk 2.180.2 (files 63172ad2bb78), core 3.34.9, py 3.13.18 aarch64 434edb3d6900 f5dab8526157 3110.14s

Dataset: hf://policyengine/policyengine-uk-data-private/enhanced_frs_2024_25.h5@2526edbbb687a3b54dbb11272e5389e4b62d2ac2, sha256 056e80fd8e9151d78f432a25cde863340baee81304c6216a37fb575ce8563784 (verified on both sides), policyengine-uk-data 1.58.1.

Receipts by tax head: head levels
Measure (head) 2025-26 2026-27 2027-28 2028-29 2029-30 2030-31 2031-32
Final charge on cash interest in non-cash ISAs £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Lifetime ISA withdrawal charge £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Income tax £294.44bn £315.21bn £335.80bn £351.25bn £366.92bn £385.32bn £399.96bn
National Insurance (employee and self-employed) £51.70bn £54.14bn £56.13bn £57.73bn £59.76bn £61.64bn £63.51bn
National Insurance (employer) £148.71bn £155.37bn £160.88bn £165.09bn £172.06bn £177.36bn £182.57bn
Employer NI change borne by capital £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Employer NI change borne by consumers £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Capital gains tax £12.60bn £13.15bn £13.60bn £14.11bn £14.67bn £15.24bn £15.80bn
Student loan repayments £7.82bn £8.13bn £8.39bn £8.58bn £8.79bn £9.04bn £9.29bn
VAT excluding private school fees £242.22bn £249.47bn £258.67bn £264.86bn £270.95bn £277.04bn £283.21bn
Change in VAT from its baseline £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
VAT on private school fees £1.95bn £2.01bn £2.09bn £2.14bn £2.20bn £2.26bn £2.31bn
Change in private school VAT from its baseline £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Fuel duties £24.71bn £24.13bn £26.00bn £26.83bn £26.51bn £25.78bn £24.63bn
Alcohol duties £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Tobacco duties £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Vehicle excise duties £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Betting and gaming duties £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
TV licence fee £4.26bn £4.40bn £4.41bn £4.42bn £4.43bn £4.44bn £4.45bn
Council tax £49.21bn £52.16bn £54.89bn £57.95bn £61.16bn £64.47bn £67.91bn
High value council tax surcharge £0.00bn £0.00bn £0.00bn £0.48bn £0.49bn £0.50bn £0.51bn
Northern Ireland domestic rates £0.55bn £0.58bn £0.60bn £0.63bn £0.66bn £0.69bn £0.72bn
Business rates £34.68bn £36.20bn £38.00bn £39.46bn £42.27bn £43.25bn £44.29bn
Stamp duty land tax on the household's own purchases £6.88bn £7.32bn £7.66bn £8.06bn £8.47bn £8.91bn £9.35bn
Stamp duty land tax paid by companies £4.72bn £4.57bn £5.29bn £6.03bn £6.37bn £6.92bn £7.45bn
Land transaction tax (Wales) £0.07bn £0.08bn £0.08bn £0.09bn £0.10bn £0.10bn £0.11bn
Land and buildings transaction tax (Scotland) £0.31bn £0.32bn £0.33bn £0.35bn £0.36bn £0.38bn £0.40bn
Unspecified tax change borne by capital £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Unspecified tax change borne by consumers £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Wealth tax £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Wealth tax excluding the main residence £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Land value tax £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Carbon tax £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Spending by benefit and service: head levels
Measure (head) 2025-26 2026-27 2027-28 2028-29 2029-30 2030-31 2031-32
Lifetime ISA bonus £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
State Pension £121.68bn £125.92bn £126.72bn £129.48bn £132.98bn £136.65bn £140.41bn
Pension Credit £6.21bn £6.46bn £6.68bn £6.82bn £6.89bn £7.07bn £7.22bn
Winter Fuel Payment £1.86bn £1.85bn £1.79bn £1.77bn £1.78bn £1.78bn £1.78bn
Pension Age Winter Heating Payment (Scotland) £0.19bn £0.20bn £0.20bn £0.21bn £0.21bn £0.22bn £0.22bn
Universal Credit £75.71bn £81.81bn £84.29bn £86.34bn £87.51bn £89.06bn £89.70bn
Housing Benefit £8.57bn £8.52bn £8.85bn £9.06bn £9.29bn £9.57bn £9.84bn
Council Tax Reduction £2.19bn £2.32bn £2.44bn £2.58bn £2.72bn £2.87bn £3.02bn
Employment and Support Allowance (income-related) £0.79bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Employment and Support Allowance (contribution-based) £5.20bn £5.37bn £5.56bn £5.69bn £5.82bn £5.95bn £6.09bn
Jobseeker's Allowance (income-based) £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Jobseeker's Allowance (contribution-based) £0.29bn £0.30bn £0.31bn £0.31bn £0.32bn £0.33bn £0.34bn
Income Support £0.11bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Working Tax Credit £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Child Tax Credit £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Incapacity Benefit £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Personal Independence Payment £26.95bn £28.03bn £29.05bn £30.09bn £30.75bn £31.51bn £32.21bn
Disability Living Allowance £7.49bn £7.79bn £8.07bn £8.36bn £8.55bn £8.76bn £8.95bn
Attendance Allowance £8.68bn £9.03bn £9.36bn £9.69bn £9.90bn £10.15bn £10.38bn
Carer's Allowance £4.48bn £4.66bn £4.83bn £5.00bn £5.11bn £5.27bn £5.42bn
Carer Support Payment (Scotland) £0.31bn £0.32bn £0.33bn £0.34bn £0.35bn £0.36bn £0.37bn
Scottish Carer Supplement £0.00bn £0.04bn £0.04bn £0.05bn £0.05bn £0.05bn £0.05bn
Severe Disablement Allowance £0.03bn £0.03bn £0.03bn £0.03bn £0.03bn £0.03bn £0.03bn
Industrial Injuries Disablement Benefit £0.50bn £0.52bn £0.54bn £0.55bn £0.56bn £0.58bn £0.59bn
Armed Forces Compensation Scheme £0.61bn £0.63bn £0.65bn £0.66bn £0.68bn £0.69bn £0.71bn
War Widow's or Widower's Pension £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Child Benefit £16.20bn £16.82bn £17.39bn £18.01bn £18.40bn £18.84bn £19.26bn
Scottish Child Payment £0.49bn £0.52bn £0.53bn £0.55bn £0.56bn £0.57bn £0.56bn
Two Child Limit Payment (Scotland, counterfactual) £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Healthy Start vouchers £0.05bn £0.05bn £0.05bn £0.05bn £0.05bn £0.05bn £0.05bn
Maternity Allowance £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Statutory Maternity Pay £3.30bn £3.41bn £3.54bn £3.62bn £3.70bn £3.78bn £3.87bn
Statutory Paternity Pay £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Statutory Sick Pay £1.12bn £1.16bn £1.20bn £1.23bn £1.26bn £1.29bn £1.32bn
Sure Start Maternity Grant £0.01bn £0.01bn £0.01bn £0.01bn £0.01bn £0.01bn £0.01bn
Bereavement Support Payment £0.67bn £0.69bn £0.71bn £0.73bn £0.75bn £0.76bn £0.78bn
Widowed Parent's Allowance £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Tax-Free Childcare £0.56bn £0.57bn £0.57bn £0.58bn £0.60bn £0.61bn £0.59bn
Extended childcare entitlement £2.99bn £3.50bn £3.59bn £3.71bn £3.78bn £3.86bn £3.93bn
Universal childcare entitlement £2.06bn £2.22bn £2.29bn £2.37bn £2.43bn £2.48bn £2.53bn
Targeted childcare entitlement £0.50bn £0.51bn £0.52bn £0.54bn £0.55bn £0.57bn £0.56bn
Childcare Offer for Wales £0.26bn £0.28bn £0.28bn £0.29bn £0.30bn £0.31bn £0.32bn
Care to Learn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Childcare Grant £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Parents' Learning Allowance £0.20bn £0.20bn £0.20bn £0.20bn £0.20bn £0.20bn £0.20bn
Adult Dependants' Grant £0.06bn £0.06bn £0.04bn £0.04bn £0.04bn £0.04bn £0.04bn
Travel Grant £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Disabled Students' Allowance suppressed suppressed suppressed suppressed suppressed suppressed suppressed
16 to 19 Bursary Fund £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
NHS spending £203.89bn £204.30bn £204.56bn £204.91bn £205.34bn £205.85bn £206.35bn
State education spending £0.02bn £0.02bn £0.02bn £0.02bn £0.02bn £0.02bn £0.02bn
Transport subsidy spending £25.05bn £25.10bn £25.14bn £25.18bn £25.23bn £25.30bn £25.36bn
Cost-of-living support payment £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Energy Bills Rebate £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Household Energy Payment £0.00bn £2.11bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Energy Price Guarantee subsidy £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Basic income £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Disability basic income £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Other public spending budget change £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Caseloads: head levels
Measure (head) 2025-26 2026-27 2027-28 2028-29 2029-30 2030-31 2031-32
Lifetime ISA bonus 0k 0k 0k 0k 0k 0k 0k
State Pension 11,264k 11,145k 10,819k 10,700k 10,723k 10,750k 10,776k
Pension Credit 1,489k 1,484k 1,476k 1,454k 1,452k 1,457k 1,466k
Winter Fuel Payment 7,844k 7,783k 7,473k 7,375k 7,391k 7,409k 7,427k
Pension Age Winter Heating Payment (Scotland) 803k 802k 800k 797k 799k 801k 802k
Universal Credit 6,343k 6,419k 6,408k 6,369k 6,364k 6,343k 6,295k
Housing Benefit 1,249k 1,182k 1,181k 1,165k 1,164k 1,166k 1,168k
Council Tax Reduction 3,326k 3,344k 3,351k 3,364k 3,375k 3,388k 3,395k
Employment and Support Allowance (income-related) 71k 0k 0k 0k 0k 0k 0k
Employment and Support Allowance (contribution-based) 719k 720k 721k 722k 724k 726k 728k
Jobseeker's Allowance (income-based) 0k 0k 0k 0k 0k 0k 0k
Jobseeker's Allowance (contribution-based) 67k 67k 67k 67k 67k 68k 68k
Income Support 25k 0k 0k 0k 0k 0k 0k
Working Tax Credit 0k 0k 0k 0k 0k 0k 0k
Child Tax Credit 0k 0k 0k 0k 0k 0k 0k
Incapacity Benefit 0k 0k 0k 0k 0k 0k 0k
Personal Independence Payment 3,567k 3,575k 3,579k 3,585k 3,593k 3,602k 3,611k
Disability Living Allowance 1,291k 1,294k 1,296k 1,298k 1,300k 1,304k 1,307k
Attendance Allowance 1,695k 1,698k 1,700k 1,703k 1,707k 1,711k 1,715k
Carer's Allowance 1,034k 1,037k 1,038k 1,040k 1,042k 1,060k 1,062k
Carer Support Payment (Scotland) 71k 71k 71k 72k 72k 72k 72k
Scottish Carer Supplement 0k 71k 71k 72k 72k 72k 72k
Severe Disablement Allowance 4k 4k 4k 4k 4k 4k 4k
Industrial Injuries Disablement Benefit 137k 137k 137k 138k 138k 138k 139k
Armed Forces Compensation Scheme 93k 93k 94k 94k 94k 94k 94k
War Widow's or Widower's Pension 0k 0k 0k 0k 0k 0k 0k
Child Benefit 8,124k 8,121k 8,121k 8,131k 8,146k 8,162k 8,179k
Scottish Child Payment 351k 352k 352k 353k 350k 348k 337k
Two Child Limit Payment (Scotland, counterfactual) 0k 0k 0k 0k 0k 0k 0k
Healthy Start vouchers 200k 200k 200k 201k 201k 201k 202k
Maternity Allowance 0k 0k 0k 0k 0k 0k 0k
Statutory Maternity Pay 333k 333k 334k 334k 335k 336k 337k
Statutory Paternity Pay 0k 0k 0k 0k 0k 0k 0k
Statutory Sick Pay 181k 182k 182k 182k 182k 183k 183k
Sure Start Maternity Grant 26k 26k 26k 26k 26k 26k 26k
Bereavement Support Payment 98k 98k 98k 98k 98k 99k 99k
Widowed Parent's Allowance 0k 0k 0k 0k 0k 0k 0k
Tax-Free Childcare 1,043k 1,027k 1,014k 1,009k 1,011k 1,009k 993k
Extended childcare entitlement 795k 800k 796k 797k 798k 798k 792k
Universal childcare entitlement 1,071k 1,072k 1,072k 1,073k 1,076k 1,079k 1,074k
Targeted childcare entitlement 165k 156k 154k 154k 155k 155k 150k
Childcare Offer for Wales 39k 39k 39k 39k 39k 39k 39k
Care to Learn 0k 0k 0k 0k 0k 0k 0k
Childcare Grant 0k 0k 0k 0k 0k 0k 0k
Parents' Learning Allowance 98k 98k 98k 99k 99k 99k 99k
Adult Dependants' Grant 18k 18k 12k 12k 12k 12k 12k
Travel Grant 0k 0k 0k 0k 0k 0k 0k
Disabled Students' Allowance suppressed suppressed suppressed suppressed suppressed suppressed suppressed
16 to 19 Bursary Fund 0k 0k 0k 0k 0k 0k 0k
Cost-of-living support payment 0k 0k 0k 0k 0k 0k 0k
Energy Bills Rebate 0k 0k 0k 0k 0k 0k 0k
Household Energy Payment 0k 21,065k 0k 0k 0k 0k 0k
Energy Price Guarantee subsidy 0k 0k 0k 0k 0k 0k 0k
Basic income 0k 0k 0k 0k 0k 0k 0k
Disability basic income 0k 0k 0k 0k 0k 0k 0k
Government balance, each component counted once: head levels
Measure (head) 2025-26 2026-27 2027-28 2028-29 2029-30 2030-31 2031-32
Government receipts, each component once £884.82bn £927.25bn £972.82bn £1,008.07bn £1,046.18bn £1,083.32bn £1,116.48bn
Government spending £529.29bn † £545.33bn † £550.40bn † £559.11bn † £566.74bn † £575.46bn † £583.07bn †
Government balance, each receipt once £355.53bn † £381.92bn † £422.41bn † £448.95bn † £479.44bn † £507.86bn † £533.41bn †
Benefits in household_benefits but not in gov_spending £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn £0.00bn
Model totals: head levels
Measure (head) 2025-26 2026-27 2027-28 2028-29 2029-30 2030-31 2031-32
gov_tax £884.82bn £927.25bn £972.82bn £1,008.07bn £1,046.18bn £1,083.32bn £1,116.48bn
household_tax £491.95bn £520.39bn £551.18bn £575.98bn £600.96bn £626.66bn £648.39bn
pre_budget_change_household_tax £484.13bn £512.26bn £542.79bn £566.92bn £591.68bn £617.12bn £638.58bn
gov_spending £529.29bn † £545.33bn † £550.40bn † £559.11bn † £566.74bn † £575.46bn † £583.07bn †
household_benefits £529.29bn † £545.33bn † £550.40bn † £559.11bn † £566.74bn † £575.46bn † £583.07bn †
gov_balance £355.53bn † £381.92bn † £422.41bn † £448.95bn † £479.44bn † £507.86bn † £533.41bn †
Household income totals: head levels
Measure (head) 2025-26 2026-27 2027-28 2028-29 2029-30 2030-31 2031-32
Household market income £1,637.96bn £1,702.77bn £1,757.35bn £1,806.41bn £1,855.97bn £1,912.43bn £1,970.44bn
Household net income £1,636.63bn † £1,687.51bn † £1,715.12bn † £1,747.12bn † £1,778.28bn † £1,816.57bn † £1,859.19bn †
Household net income (HBAI definition) £1,449.51bn £1,499.52bn £1,530.52bn £1,564.80bn £1,597.47bn £1,635.15bn £1,676.12bn
Population: head levels
Measure (head) 2025-26 2026-27 2027-28 2028-29 2029-30 2030-31 2031-32
People 69,245k 69,383k 69,473k 69,592k 69,738k 69,912k 70,080k
Benefit units 35,110k 35,181k 35,226k 35,286k 35,360k 35,449k 35,534k
Households 31,046k 31,108k 31,149k 31,201k 31,267k 31,345k 31,420k
Poverty rates: head levels
Measure (head) 2025-26 2026-27 2027-28 2028-29 2029-30 2030-31 2031-32
Absolute poverty, before housing costs: everyone 16.2% 15.4% 16.3% 16.2% 16.4% 16.4% 16.5%
Absolute poverty, before housing costs: children 24.6% 21.8% 23.0% 22.7% 22.9% 23.0% 23.2%
Absolute poverty, before housing costs: working-age adults 14.0% 13.7% 14.6% 14.6% 14.7% 14.7% 14.9%
Absolute poverty, before housing costs: pensioners 13.7% 13.4% 14.0% 13.9% 14.0% 14.0% 13.9%
Absolute poverty, after housing costs: everyone 21.5% 21.0% 22.0% 22.5% 22.8% 23.0% 23.4%
Absolute poverty, after housing costs: children 33.1% 31.2% 32.1% 32.4% 32.8% 33.2% 34.0%
Absolute poverty, after housing costs: working-age adults 19.9% 19.8% 20.8% 21.5% 21.8% 22.0% 22.2%
Absolute poverty, after housing costs: pensioners 12.7% 12.4% 13.2% 13.2% 13.3% 13.4% 13.6%
Relative poverty, before housing costs: everyone 16.9% 15.9% 16.3% 16.2% 16.3% 16.2% 16.5%
Relative poverty, before housing costs: children 25.7% 22.6% 23.0% 22.7% 22.8% 22.6% 23.2%
Relative poverty, before housing costs: working-age adults 14.4% 14.0% 14.6% 14.6% 14.7% 14.6% 14.9%
Relative poverty, before housing costs: pensioners 14.5% 14.1% 14.0% 13.8% 13.8% 13.9% 13.9%
Relative poverty, after housing costs: everyone 21.4% 20.9% 21.2% 21.3% 21.3% 21.5% 21.7%
Relative poverty, after housing costs: children 32.9% 31.0% 31.1% 31.0% 31.0% 31.2% 31.7%
Relative poverty, after housing costs: working-age adults 19.8% 19.7% 20.2% 20.4% 20.4% 20.6% 20.8%
Relative poverty, after housing costs: pensioners 12.5% 12.4% 12.2% 11.8% 11.7% 11.8% 12.1%
People in poverty: head levels
Measure (head) 2025-26 2026-27 2027-28 2028-29 2029-30 2030-31 2031-32
Absolute poverty, before housing costs: everyone 11,246k 10,704k 11,333k 11,298k 11,407k 11,448k 11,584k
Absolute poverty, before housing costs: children 3,676k 3,270k 3,455k 3,406k 3,441k 3,463k 3,509k
Absolute poverty, before housing costs: working-age adults 5,947k 5,858k 6,277k 6,330k 6,387k 6,400k 6,490k
Absolute poverty, before housing costs: pensioners 1,624k 1,576k 1,602k 1,562k 1,579k 1,585k 1,584k
Absolute poverty, after housing costs: everyone 14,869k 14,565k 15,263k 15,690k 15,910k 16,094k 16,373k
Absolute poverty, after housing costs: children 4,940k 4,671k 4,814k 4,873k 4,931k 5,015k 5,145k
Absolute poverty, after housing costs: working-age adults 8,424k 8,435k 8,943k 9,324k 9,474k 9,559k 9,683k
Absolute poverty, after housing costs: pensioners 1,504k 1,460k 1,505k 1,493k 1,505k 1,520k 1,545k
Relative poverty, before housing costs: everyone 11,694k 11,032k 11,318k 11,297k 11,348k 11,350k 11,584k
Relative poverty, before housing costs: children 3,847k 3,389k 3,454k 3,406k 3,427k 3,414k 3,509k
Relative poverty, before housing costs: working-age adults 6,128k 5,990k 6,270k 6,330k 6,356k 6,359k 6,490k
Relative poverty, before housing costs: pensioners 1,719k 1,652k 1,594k 1,561k 1,565k 1,576k 1,584k
Relative poverty, after housing costs: everyone 14,800k 14,518k 14,756k 14,791k 14,867k 15,002k 15,214k
Relative poverty, after housing costs: children 4,916k 4,649k 4,661k 4,651k 4,673k 4,701k 4,796k
Relative poverty, after housing costs: working-age adults 8,396k 8,414k 8,699k 8,813k 8,870k 8,959k 9,049k
Relative poverty, after housing costs: pensioners 1,488k 1,455k 1,395k 1,326k 1,324k 1,342k 1,369k
Inequality: head levels
Measure (head) 2025-26 2026-27 2027-28 2028-29 2029-30 2030-31 2031-32
Gini coefficient, equivalised HBAI income before housing costs 0.3076 0.3049 0.3055 0.3054 0.3059 0.3064 0.3080
Mean household net income in each side's own deciles: head levels
Measure (head) 2025-26 2026-27 2027-28 2028-29 2029-30 2030-31 2031-32
Decile 1: mean household_net_income per household £17,748 † £17,980 † £17,927 † £18,181 † £18,318 † £18,538 † £18,742 †
Decile 2: mean household_net_income per household £28,029 † £29,037 † £28,754 † £28,997 † £29,258 † £29,676 † £30,171 †
Decile 3: mean household_net_income per household £34,252 † £35,426 † £36,069 † £36,548 † £37,157 † £37,774 † £38,103 †
Decile 4: mean household_net_income per household £38,926 † £40,769 † £41,716 † £42,763 † £43,387 † £44,167 † £44,499 †
Decile 5: mean household_net_income per household £43,346 † £45,603 † £46,054 † £47,001 † £47,755 † £48,626 † £50,309 †
Decile 6: mean household_net_income per household £47,933 † £49,175 † £50,879 † £52,032 † £52,922 † £53,942 † £54,719 †
Decile 7: mean household_net_income per household £55,672 † £56,650 † £57,493 † £57,674 † £58,791 † £59,706 † £61,106 †
Decile 8: mean household_net_income per household £68,786 † £70,811 † £71,870 † £73,483 † £73,890 † £75,325 † £77,181 †
Decile 9: mean household_net_income per household £78,891 † £81,011 † £80,860 † £82,646 † £85,464 † £86,940 † £89,508 †
Decile 10: mean household_net_income per household £116,864 † £120,162 † £124,545 † £126,420 † £125,756 † £128,269 † £130,694 †
Standard reform costings (change in gov_balance): head levels
Measure (head) 2025-26 2026-27 2027-28 2028-29 2029-30 2030-31 2031-32
Raise basic rate by 1pp £6.41bn £6.66bn £6.63bn £6.85bn £7.03bn £7.25bn £7.47bn
Raise higher rate by 1pp £3.61bn £3.87bn £4.00bn £4.22bn £4.44bn £4.71bn £4.83bn
Raise personal allowance by ~800GBP/year £-3.82bn £-3.93bn £-4.01bn £-4.05bn £-4.11bn £-4.24bn £-1.95bn
Raise child benefit by 25GBP/week per additional child £-1.99bn £-1.75bn £-1.55bn £-1.38bn £-1.30bn £-1.18bn £-1.07bn
Reduce Universal Credit taper rate to 20% £-20.83bn £-21.38bn £-21.81bn £-22.02bn £-22.37bn £-22.77bn £-22.96bn
Raise Class 1 main employee NICs rate to 10% £10.89bn £11.30bn £11.71bn £12.01bn £12.31bn £12.62bn £13.00bn
Raise VAT standard rate by 2pp £24.17bn £24.97bn £25.86bn £26.46bn £27.07bn £27.68bn £28.31bn
Raise additional rate by 3pp £2.90bn £3.15bn £3.22bn £3.41bn £3.61bn £3.85bn £4.14bn
Raise the Universal Credit standard allowance by 10% £-3.06bn £-3.23bn £-3.30bn £-3.40bn £-3.48bn £-3.53bn £-3.55bn
Raise the State Pension by 10% £-7.76bn £-7.99bn £-8.22bn £-8.44bn £-8.79bn £-8.52bn £-8.86bn
Standard reforms: change in each reform's target: head levels
Measure (head) 2025-26 2026-27 2027-28 2028-29 2029-30 2030-31 2031-32
Raise basic rate by 1pp: change in income_tax £6.55bn £6.86bn £6.79bn £7.00bn £7.20bn £7.44bn £7.66bn
Raise higher rate by 1pp: change in income_tax £3.61bn £3.92bn £4.01bn £4.23bn £4.45bn £4.72bn £4.84bn
Raise personal allowance by ~800GBP/year: change in income_tax £-3.94bn £-4.07bn £-4.14bn £-4.18bn £-4.22bn £-4.40bn £-1.76bn
Raise child benefit by 25GBP/week per additional child: change in child_benefit £2.33bn £2.14bn £1.95bn £1.76bn £1.65bn £1.52bn £1.40bn
Reduce Universal Credit taper rate to 20%: change in universal_credit £20.79bn £21.36bn £21.84bn £22.07bn £22.39bn £22.80bn £23.01bn
Raise Class 1 main employee NICs rate to 10%: change in national_insurance £11.15bn £11.63bn £12.00bn £12.29bn £12.61bn £12.94bn £13.31bn
Raise VAT standard rate by 2pp: change in vat £23.98bn £24.77bn £25.66bn £26.24bn £26.85bn £27.46bn £28.07bn
Raise additional rate by 3pp: change in income_tax £2.90bn £3.15bn £3.22bn £3.42bn £3.62bn £3.86bn £4.12bn
Raise the Universal Credit standard allowance by 10%: change in universal_credit £3.06bn £3.22bn £3.32bn £3.41bn £3.48bn £3.54bn £3.55bn
Raise the State Pension by 10%: change in state_pension £10.68bn £11.17bn £11.28bn £11.60bn £12.03bn £12.46bn £12.96bn

MaxGhenis and others added 4 commits November 29, 2026 20:48
Core applies a reform given as one value with no dates from 2000, so an
undated State Pension age or type reform is in force in the data year and
turns a supplied split off in the reformed simulation. The warning and both
inputs' docs now say so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…the reform dates

- StatePensionSplitIgnoredWarning now also fires, once per simulation, where
  a basic, new or additional State Pension stored for the period, or a
  reform that redefines or abolishes one, turns a supplied split off: a
  dataset column for a component does so in every year that holds it.
- A value given with no dates is in force from 2023 in a reform dict and
  from 2000 through Reform.from_dict or parameter_changes. The warning and
  both inputs' docs now say so, give a date-range remedy (a bare year key
  sets one fiscal year only), and ask for the inputs to be built with the
  version that reads them.
- The changelog lists the reforms that turn the split off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The warning and both input docs gave a d + 1 date range as the remedy,
which is untested, and said a bare year key sets one fiscal year, which
is wrong for Reform.from_dict. They now give the tested range
(2026-01-01.2100-12-31 for a 2024 data year), the bare-key reading on
each route, the causes the data-year check covers, and dropping both
inputs as the other remedy.

The warning was marked as given before it was issued, so under an
error warnings filter a second calculation returned the cap split with
no error. It is now marked after it is issued, and keyed on the cause
and data year. A test covers the error filter.

Refs #2976

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The component warning names the year it was raised for, but it fires
once per simulation and data year, so a later year with a stored,
redefined or abolished component stays silent. The message now says
so: every such year takes the split at the legislated full rate.

Refs #2976

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
codex and others added 5 commits November 30, 2026 07:01
Use Core storage precedence for component overrides, refresh calculations after input deletion, and explain data-year retyping in split refusals.

Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Schedule a refresh only when deletion removes a stored value, and prevent a nested calculation from reusing the earlier gross pension.

Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… causes

Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s the draw

Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…bles

Compare the active timetable and track visible pension type inputs from both input APIs. Refresh affected branch calculations and give each simulation its own warning record.

Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@juaristi22 juaristi22 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review at ab68e01424ce675e6f7cf10e66a5186ae2297356: COMPLETE — no findings or material evidence gaps in the changed scope.

Independent policy/source and code/test reviews checked the supplied data-year split, separate component uprating and age addition, reform/type/age gates, cache and storage behavior, and affected final pension and carer-benefit results. The DWP 2024–25 rates, 2026 uprating order, and age-addition provision support the reviewed component and data-year oracles. Later forecast tests verify the model's projection contract.

The scope retains a specific limitation: E1/E2 are uprating inputs, and the existing cap-share overlap inference remains an approximation. Additional pension and the age addition are excepted from statutory Carer's Allowance overlap (regulation 4, regulation 12). This review does not certify that inference as a reconstruction of legal basic/additional entitlement, including within-cap SERPS. The documented reset requirement for raw holder edits and bounded cause detection also remain interface limits. No new wrong final outcome was substantiated within the stated contract.

Hosted run 46685475596 checks a merge tree identical to this head on CPython 3.13.18/Core 3.34.9: 14,218 passed, 61 skipped, 2 xfailed; YAML 6,887 passed. Ten outcome-artifact digests and focused outcomes were independently verified, including 88 legal-split, 33 component, 11 storage, 10 carer-payment and four overlap-property tests. Counts overlap. Fourteen official originals and fourteen text derivatives passed integrity checks. Local model tests were not run because no matching environment was available; no dependencies were installed or private population runs performed. Author historical test/aggregate claims were not substituted for current-head evidence.

The PR remains a draft, so approval is deferred. Full reports, source evidence and result JSON are retained by the review monitor.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Let a dataset supply how much of a reported State Pension follows the full rate

3 participants