From 0943de73ef1b487ddd32b4a6020805d498bfd2fc Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Wed, 30 Sep 2026 07:54:42 -0400 Subject: [PATCH 01/40] Abolish working-age Housing Benefit from 1 July 2026 (NI 1 October 2026) SI 2025/1148 art 7, inserted by SI 2026/409, brings WRA 2012 s.33(1)(d) into force on 1 July 2026 for every Housing Benefit award not already terminated. It saves claimants within SI 2014/1230 reg 6A(2)-(5) (specified or temporary accommodation, pension age, protected mixed-age couples), income-related ESA appointee cases and prisoners until release. Northern Ireland: SR 2025/176 art 7, inserted by SR 2026/115, from 1 October 2026. gov.dwp.housing_benefit.working_age_awards_payable holds 1/0 per jurisdiction (great_britain, northern_ireland). PE-UK samples gov.* parameters at 30 April of each fiscal year, which would have left all of 2026-27 unaffected, so the parameter is day-weighted with fiscal_year_blend: 2026 takes 86/365 in GB and 178/365 in NI, and 0 from 2027. housing_benefit_payable_share is 1 for any benefit unit with a member over State Pension age and the country share otherwise; the continuing-award route needs it above 0 and the pre-cap award is scaled by it. Also make housing_benefit_eligible.yaml's boolean checks non-vacuous (margin 0, would_claim_uc false), and update the docs, programs.yaml and the take-up description. Co-Authored-By: Claude Opus 5.5 --- ...olish-working-age-housing-benefit.fixed.md | 1 + .../programs/gov/dwp/housing-benefit.ipynb | 16 +- .../gov/dwp/housing_benefit/takeup.yaml | 3 +- .../working_age_awards_payable.yaml | 40 +++ policyengine_uk/programs.yaml | 2 +- .../housing_benefit_eligible.yaml | 16 +- ...housing_benefit_working_age_abolition.yaml | 309 ++++++++++++++++++ ..._housing_benefit_pension_age_properties.py | 5 +- ...enefit_working_age_abolition_properties.py | 222 +++++++++++++ .../housing_benefit_eligible.py | 18 +- .../housing_benefit_payable_share.py | 43 +++ .../housing_benefit_pre_benefit_cap.py | 5 +- 12 files changed, 665 insertions(+), 15 deletions(-) create mode 100644 changelog.d/abolish-working-age-housing-benefit.fixed.md create mode 100644 policyengine_uk/parameters/gov/dwp/housing_benefit/working_age_awards_payable.yaml create mode 100644 policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_working_age_abolition.yaml create mode 100644 policyengine_uk/tests/test_housing_benefit_working_age_abolition_properties.py create mode 100644 policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_payable_share.py diff --git a/changelog.d/abolish-working-age-housing-benefit.fixed.md b/changelog.d/abolish-working-age-housing-benefit.fixed.md new file mode 100644 index 0000000000..d45d0ee235 --- /dev/null +++ b/changelog.d/abolish-working-age-housing-benefit.fixed.md @@ -0,0 +1 @@ +- Abolish working-age Housing Benefit awards outside specified and temporary accommodation from 1 July 2026 in Great Britain (SI 2025/1148 art. 7, inserted by SI 2026/409) and 1 October 2026 in Northern Ireland (SR 2025/176 art. 7, inserted by SR 2026/115). The new `gov.dwp.housing_benefit.working_age_awards_payable` parameter is day-weighted across each fiscal year, so 2026-27 pays a working-age continuing award for 86/365 of the year in Great Britain and 178/365 in Northern Ireland, and from 2027-28 there is none. Families with a member over State Pension age keep their awards (the pension-age and mixed-age savings). diff --git a/docs/book/programs/gov/dwp/housing-benefit.ipynb b/docs/book/programs/gov/dwp/housing-benefit.ipynb index 4f928b173d..cb21032538 100644 --- a/docs/book/programs/gov/dwp/housing-benefit.ipynb +++ b/docs/book/programs/gov/dwp/housing-benefit.ipynb @@ -7,7 +7,7 @@ "source": [ "# Housing Benefit\n", "\n", - "Housing Benefit is a means-tested DWP benefit that helps people on a low income with their rent. It is a legacy benefit that is being phased out: new working-age claimants are routed to the Universal Credit housing element instead, and a managed migration of the remaining HB caseload to UC is in progress. Housing Benefit continues to operate for two groups — pensioners and tenants of supported/temporary accommodation — and PolicyEngine models it alongside the UC housing element so reform analyses can move between the two systems cleanly.\n", + "Housing Benefit is a means-tested DWP benefit that helps people on a low income with their rent. It is a legacy benefit: new working-age claimants have been routed to the Universal Credit housing element for years, and the remaining working-age awards outside specified and temporary accommodation were abolished on 1 July 2026 in Great Britain and 1 October 2026 in Northern Ireland. Housing Benefit continues for pensioners, protected mixed-age couples and tenants of specified (supported) or temporary accommodation, and PolicyEngine models it alongside the UC housing element so reform analyses can move between the two systems cleanly.\n", "\n", "Parameters live in `policyengine_uk/parameters/gov/dwp/housing_benefit/` and the formulas in `policyengine_uk/variables/gov/dwp/housing_benefit/`." ] @@ -24,7 +24,19 @@ "- **Pension age**: every adult in the benunit has reached the qualifying age for State Pension Credit (State Pension age). New Housing Benefit claims are open to them ([SI 2014/1230 reg. 6A(4)](https://www.legislation.gov.uk/uksi/2014/1230/regulation/6A)), and Universal Credit is not, so neither a previous claim nor `would_claim_uc` matters.\n", "- **Continuing award**: any other benunit was **already claiming** Housing Benefit (proxied by a positive `housing_benefit_reported`) and is **not claiming Universal Credit**. Working-age and mixed-age families cannot make new claims; they claim the Universal Credit housing element instead. For mixed-age couples the reported award stands in for the saving for couples who were entitled to Housing Benefit or Pension Credit on 14 May 2019 ([SI 2019/37 art. 4](https://www.legislation.gov.uk/uksi/2019/37/article/4)).\n", "\n", - "The pension-age test counts the same benunit members as Universal Credit's working-age test, and the continuing-award route requires not claiming Universal Credit, so no benunit receives both. Working-age awards outside specified or temporary accommodation ended on 1 July 2026 in Great Britain ([SI 2025/1148 art. 7](https://www.legislation.gov.uk/uksi/2025/1148/article/7)); PolicyEngine does not yet model that. Claims for specified or temporary accommodation, which remain open at any age, are not modelled.\n", + "The pension-age test counts the same benunit members as Universal Credit's working-age test, and the continuing-award route requires not claiming Universal Credit, so no benunit receives both.\n", + "\n", + "### Abolition of working-age awards\n", + "\n", + "Working-age Housing Benefit awards outside specified or temporary accommodation were abolished from **1 July 2026** in Great Britain ([SI 2025/1148 art. 7](https://www.legislation.gov.uk/uksi/2025/1148/article/7), inserted by [SI 2026/409](https://www.legislation.gov.uk/uksi/2026/409/made)) and **1 October 2026** in Northern Ireland ([SR 2025/176 art. 7](https://www.legislation.gov.uk/nisr/2025/176/article/7), inserted by SR 2026/115). Claimants within [SI 2014/1230 reg. 6A(2)-(5)](https://www.legislation.gov.uk/uksi/2014/1230/regulation/6A) keep their awards: pension age, mixed-age couples protected since 14 May 2019, and specified or temporary accommodation. So do prisoners until their Universal Credit restriction ends and some income-related ESA claimants with an appointee.\n", + "\n", + "The dates live in `gov.dwp.housing_benefit.working_age_awards_payable` (`great_britain` and `northern_ireland`), with 1 while working-age awards are payable and 0 after. PolicyEngine UK evaluates a year's parameters as one value for the fiscal year starting 6 April. By default that value is the one in force on 30 April, which would have left the whole of 2026-27 unaffected. This parameter is instead day-weighted across the fiscal year (`fiscal_year_blend`), so 2026 (2026-27) takes the share of the year before the abolition: 86/365 in Great Britain (6 April to 30 June) and 178/365 in Northern Ireland (6 April to 30 September). From 2027 it is 0.\n", + "\n", + "`housing_benefit_payable_share` applies this per benunit. It is 1 for any benunit with a member over State Pension age, which stands in for the pension-age and protected mixed-age savings. In law a mixed-age couple is saved only if the older member claims under the pension-age rules and the couple has been entitled since 14 May 2019 ([SI 2019/37 art. 4](https://www.legislation.gov.uk/uksi/2019/37/article/4)), which the data cannot show. For other benunits it is the share for their country. A working-age continuing award stays eligible while the share is above 0, and `housing_benefit_pre_benefit_cap` pays the entitlement times the share. A working-age continuing award in 2026 is therefore paid for the part of the year before the abolition, and there is none from 2027.\n", + "\n", + "What happens to the families whose awards end is set by `would_claim_uc`, the Universal Credit take-up input. Families that claim Universal Credit already receive it instead of Housing Benefit in every year. Families that do not claim it lose Housing Benefit and receive no Universal Credit. In the Enhanced FRS that leaves too many former claimants with neither. DWP's Move to Universal Credit statistics show that 97% of households sent a migration notice while on Housing Benefit and another legacy benefit claimed Universal Credit (98% of those also on income-related ESA), and 75% of Housing Benefit-only households did. The dataset's take-up draw puts about 72% of working-age Housing Benefit reporters on Universal Credit. Transitional protection, which went only to households that claimed after a migration notice, is not modelled.\n", + "\n", + "The savings PolicyEngine cannot observe are not modelled: specified and temporary accommodation (open to new claims at any age, including alongside Universal Credit), prisoners, and the ESA appointee saving. The Enhanced FRS therefore has no working-age Housing Benefit from 2027. DWP's Spring 2026 forecast for Great Britain is £1.64bn of temporary-accommodation and £3.94bn of supported-accommodation Housing Benefit in 2026-27, across all ages.\n", "\n", "Take-up is handled by `would_claim_housing_benefit`, which is true for benunits that report Housing Benefit and, when no reported benefits are supplied (as in household calculations), for everyone. In the Enhanced FRS take-up therefore follows reported claims." ] diff --git a/policyengine_uk/parameters/gov/dwp/housing_benefit/takeup.yaml b/policyengine_uk/parameters/gov/dwp/housing_benefit/takeup.yaml index 26c847e978..c5d60a37c8 100644 --- a/policyengine_uk/parameters/gov/dwp/housing_benefit/takeup.yaml +++ b/policyengine_uk/parameters/gov/dwp/housing_benefit/takeup.yaml @@ -1,7 +1,8 @@ description: Share of eligible Housing Benefit recipients that participate. Not used by the model, which takes Housing Benefit take-up from reported claims in survey data and assumes full take-up in household calculations. Pension-age families can make new - claims; working-age families only continue existing awards. + claims; working-age families only continued existing awards, until those were + abolished on 1 July 2026 in Great Britain and 1 October 2026 in Northern Ireland. metadata: economy: false label: Housing benefit take-up rate diff --git a/policyengine_uk/parameters/gov/dwp/housing_benefit/working_age_awards_payable.yaml b/policyengine_uk/parameters/gov/dwp/housing_benefit/working_age_awards_payable.yaml new file mode 100644 index 0000000000..91c7ce942d --- /dev/null +++ b/policyengine_uk/parameters/gov/dwp/housing_benefit/working_age_awards_payable.yaml @@ -0,0 +1,40 @@ +description: Whether working-age Housing Benefit awards outside specified and temporary accommodation are still payable (1) or abolished (0). Housing Benefit was abolished for these awards from 1 July 2026 in Great Britain and 1 October 2026 in Northern Ireland; awards of claimants over the qualifying age for State Pension Credit, protected mixed-age couples and claimants in specified or temporary accommodation are saved. Each fiscal year takes the day-weighted average, which is the share of that year for which such awards stayed payable. +great_britain: + description: Whether working-age Housing Benefit awards outside specified and temporary accommodation are still payable in Great Britain. Section 33(1)(d) of the Welfare Reform Act 2012 came into force for them on 1 July 2026. + values: + 1988-04-01: 1 + 2026-07-01: 0 + metadata: + label: Working-age Housing Benefit awards payable, Great Britain + unit: /1 + period: year + fiscal_year_blend: true + reference: + - title: SI 2025/1148 art. 7 (inserted by SI 2026/409 art. 2(6)) + href: https://www.legislation.gov.uk/uksi/2025/1148/article/7 + - title: SI 2026/409, The Welfare Reform Act 2012 (Commencement No. 35) (Abolition of Benefits) (Amendment) Order 2026 + href: https://www.legislation.gov.uk/uksi/2026/409/made + - title: Welfare Reform Act 2012 s. 33(1)(d) + href: https://www.legislation.gov.uk/ukpga/2012/5/section/33 + - title: DWP HB circular A6/2026, closure of working age Housing Benefit + href: https://www.gov.uk/government/publications/housing-benefit-adjudication-circulars-2026/a62026-closure-of-working-age-housing-benefit +northern_ireland: + description: Whether working-age Housing Benefit awards outside specified and temporary accommodation are still payable in Northern Ireland. Article 39(1)(d) of the Welfare Reform (Northern Ireland) Order 2015 came into operation for them on 1 October 2026. + values: + 1988-04-01: 1 + 2026-10-01: 0 + metadata: + label: Working-age Housing Benefit awards payable, Northern Ireland + unit: /1 + period: year + fiscal_year_blend: true + reference: + - title: SR 2025/176 art. 7 (inserted by SR 2026/115) + href: https://www.legislation.gov.uk/nisr/2025/176/article/7 + - title: SR 2026/115 + href: https://www.legislation.gov.uk/nisr/2026/115/made + - title: Welfare Reform (Northern Ireland) Order 2015 art. 39(1)(d) + href: https://www.legislation.gov.uk/nisi/2015/2006/article/39 +metadata: + label: Working-age Housing Benefit awards payable + economy: false diff --git a/policyengine_uk/programs.yaml b/policyengine_uk/programs.yaml index f83e4acdd9..bb4a00ee85 100644 --- a/policyengine_uk/programs.yaml +++ b/policyengine_uk/programs.yaml @@ -227,7 +227,7 @@ programs: variable: housing_benefit parameter_prefix: gov.dwp.housing_benefit verified_start_year: 2022 - notes: Legacy benefit being replaced by Universal Credit + notes: Legacy benefit replaced by Universal Credit. Working-age awards were abolished on 1 July 2026 (GB) and 1 October 2026 (NI); pension-age and protected mixed-age awards continue. Specified and temporary accommodation awards, which continue at any age, are not modelled. - id: income_support name: Income Support diff --git a/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_eligible.yaml b/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_eligible.yaml index b00f14f60d..2c7a4d8488 100644 --- a/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_eligible.yaml +++ b/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_eligible.yaml @@ -1,39 +1,47 @@ +# Continuing-award route for a working-age family (age defaults to 40) in +# 2021, before working-age awards were abolished: a reported award, no +# Universal Credit claim, and social housing or the Local Housing Allowance. + - name: Social housing eligible period: 2021 - absolute_error_margin: 5 + absolute_error_margin: 0 input: in_social_housing: true housing_benefit_reported: 1 + would_claim_uc: false LHA_eligible: false output: housing_benefit_eligible: true - name: LHA eligible period: 2021 - absolute_error_margin: 5 + absolute_error_margin: 0 input: in_social_housing: false housing_benefit_reported: 1 + would_claim_uc: false LHA_eligible: true output: housing_benefit_eligible: true - name: Not already enrolled period: 2021 - absolute_error_margin: 5 + absolute_error_margin: 0 input: in_social_housing: false housing_benefit_reported: 0 + would_claim_uc: false LHA_eligible: true output: housing_benefit_eligible: false - name: Not eligible period: 2021 - absolute_error_margin: 5 + absolute_error_margin: 0 input: in_social_housing: false housing_benefit_reported: 1 + would_claim_uc: false LHA_eligible: false output: housing_benefit_eligible: false diff --git a/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_working_age_abolition.yaml b/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_working_age_abolition.yaml new file mode 100644 index 0000000000..d6790c9dd5 --- /dev/null +++ b/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_working_age_abolition.yaml @@ -0,0 +1,309 @@ +# Abolition of working-age Housing Benefit outside specified and temporary +# accommodation: 1 July 2026 in Great Britain (SI 2025/1148 art. 7, inserted +# by SI 2026/409) and 1 October 2026 in Northern Ireland (SR 2025/176 art. 7, +# inserted by SR 2026/115). Pension-age claimants and protected mixed-age +# couples keep their awards (art. 7(4)(a), SI 2014/1230 reg 6A(4)-(5)). +# +# Each fiscal year runs 6 April to 5 April (365 days in 2026-27). A GB award +# is payable for the 86 days from 6 April to 30 June 2026 and an NI award for +# the 178 days from 6 April to 30 September 2026, so the 2026 amount is the +# annual entitlement times 86/365 or 178/365. Every case below fixes +# housing_benefit_applicable_income at 0, so entitlement equals the £5,200 +# rent (£100 a week). + +- name: GB working-age continuing award is paid in full before the abolition year + period: 2025 + absolute_error_margin: 0.01 + input: + people: + claimant: + age: 40 + housing_benefit_reported: 1 + benunits: + benunit: + members: [claimant] + would_claim_uc: false + housing_benefit_applicable_income: 0 + households: + household: + members: [claimant] + rent: 5_200 + tenure_type: RENT_FROM_COUNCIL + region: LONDON + output: + housing_benefit_payable_share: 1 + housing_benefit_eligible: true + housing_benefit: 5_200 + +- name: GB working-age continuing award is paid until 30 June 2026 (86 of 365 days) + period: 2026 + absolute_error_margin: 0.01 + input: + people: + claimant: + age: 40 + housing_benefit_reported: 1 + benunits: + benunit: + members: [claimant] + would_claim_uc: false + housing_benefit_applicable_income: 0 + households: + household: + members: [claimant] + rent: 5_200 + tenure_type: RENT_FROM_COUNCIL + region: LONDON + output: + # 86 / 365 + housing_benefit_payable_share: 0.235616 + housing_benefit_eligible: true + housing_benefit_entitlement: 5_200 + # 5,200 * 86 / 365 + housing_benefit: 1_225.21 + +- name: GB working-age continuing award has ended by 2027 + period: 2027 + absolute_error_margin: 0.01 + input: + people: + claimant: + age: 40 + housing_benefit_reported: 1 + benunits: + benunit: + members: [claimant] + would_claim_uc: false + housing_benefit_applicable_income: 0 + households: + household: + members: [claimant] + rent: 5_200 + tenure_type: RENT_FROM_COUNCIL + region: LONDON + output: + housing_benefit_payable_share: 0 + housing_benefit_eligible: false + housing_benefit: 0 + universal_credit: 0 + +- name: Scotland follows the Great Britain date + period: 2026 + absolute_error_margin: 0.01 + input: + people: + claimant: + age: 40 + housing_benefit_reported: 1 + benunits: + benunit: + members: [claimant] + would_claim_uc: false + housing_benefit_applicable_income: 0 + households: + household: + members: [claimant] + rent: 5_200 + tenure_type: RENT_FROM_HA + region: SCOTLAND + output: + housing_benefit_payable_share: 0.235616 + housing_benefit: 1_225.21 + +- name: Wales follows the Great Britain date + period: 2026 + absolute_error_margin: 0.01 + input: + people: + claimant: + age: 40 + housing_benefit_reported: 1 + benunits: + benunit: + members: [claimant] + would_claim_uc: false + housing_benefit_applicable_income: 0 + households: + household: + members: [claimant] + rent: 5_200 + tenure_type: RENT_FROM_COUNCIL + region: WALES + output: + housing_benefit_payable_share: 0.235616 + housing_benefit: 1_225.21 + +- name: NI working-age continuing award is paid until 30 September 2026 (178 of 365 days) + period: 2026 + absolute_error_margin: 0.01 + input: + people: + claimant: + age: 40 + housing_benefit_reported: 1 + benunits: + benunit: + members: [claimant] + would_claim_uc: false + housing_benefit_applicable_income: 0 + households: + household: + members: [claimant] + rent: 5_200 + tenure_type: RENT_FROM_COUNCIL + region: NORTHERN_IRELAND + output: + # 178 / 365 + housing_benefit_payable_share: 0.487671 + housing_benefit_eligible: true + # 5,200 * 178 / 365 + housing_benefit: 2_535.89 + +- name: NI working-age continuing award has ended by 2027 + period: 2027 + absolute_error_margin: 0.01 + input: + people: + claimant: + age: 40 + housing_benefit_reported: 1 + benunits: + benunit: + members: [claimant] + would_claim_uc: false + housing_benefit_applicable_income: 0 + households: + household: + members: [claimant] + rent: 5_200 + tenure_type: RENT_FROM_COUNCIL + region: NORTHERN_IRELAND + output: + housing_benefit_payable_share: 0 + housing_benefit_eligible: false + housing_benefit: 0 + +- name: Working-age couple with a continuing award loses it from 2027 + period: 2027 + absolute_error_margin: 0.01 + input: + people: + claimant: + age: 45 + housing_benefit_reported: 1 + partner: + age: 43 + benunits: + benunit: + members: [claimant, partner] + would_claim_uc: false + housing_benefit_applicable_income: 0 + households: + household: + members: [claimant, partner] + rent: 5_200 + tenure_type: RENT_FROM_HA + region: NORTH_WEST + output: + housing_benefit_payable_share: 0 + housing_benefit_eligible: false + housing_benefit: 0 + +- name: Protected mixed-age couple keeps its award after the abolition + period: 2027 + absolute_error_margin: 0.01 + input: + people: + older: + age: 70 + housing_benefit_reported: 1 + younger: + age: 60 + benunits: + benunit: + members: [older, younger] + would_claim_uc: false + housing_benefit_applicable_income: 0 + households: + household: + members: [older, younger] + rent: 5_200 + tenure_type: RENT_FROM_COUNCIL + region: LONDON + output: + housing_benefit_payable_share: 1 + housing_benefit_eligible: true + housing_benefit: 5_200 + +- name: Pensioner with an 18 year old dependant keeps a continuing award after the abolition + period: 2027 + absolute_error_margin: 0.01 + input: + people: + claimant: + age: 70 + is_parent: true + housing_benefit_reported: 1 + dependant: + age: 18 + current_education: UPPER_SECONDARY + benunits: + benunit: + members: [claimant, dependant] + would_claim_uc: false + housing_benefit_applicable_income: 0 + households: + household: + members: [claimant, dependant] + rent: 5_200 + tenure_type: RENT_FROM_COUNCIL + region: LONDON + output: + housing_benefit_payable_share: 1 + housing_benefit_eligible: true + housing_benefit: 5_200 + +- name: Pension-age new claim is unaffected by the abolition + period: 2027 + absolute_error_margin: 0.01 + input: + people: + claimant: + age: 75 + benunits: + benunit: + members: [claimant] + housing_benefit_applicable_income: 0 + households: + household: + members: [claimant] + rent: 5_200 + tenure_type: RENT_FROM_COUNCIL + region: NORTHERN_IRELAND + output: + housing_benefit_payable_share: 1 + housing_benefit_eligible: true + housing_benefit: 5_200 + +- name: Working-age family claiming Universal Credit gets no Housing Benefit in any year + period: 2026 + absolute_error_margin: 0.01 + input: + people: + claimant: + age: 40 + housing_benefit_reported: 1 + benunits: + benunit: + members: [claimant] + would_claim_uc: true + housing_benefit_applicable_income: 0 + households: + household: + members: [claimant] + rent: 5_200 + tenure_type: RENT_FROM_COUNCIL + region: LONDON + output: + housing_benefit_eligible: false + housing_benefit: 0 diff --git a/policyengine_uk/tests/test_housing_benefit_pension_age_properties.py b/policyengine_uk/tests/test_housing_benefit_pension_age_properties.py index 37672b3c3d..92c6ffaaca 100644 --- a/policyengine_uk/tests/test_housing_benefit_pension_age_properties.py +++ b/policyengine_uk/tests/test_housing_benefit_pension_age_properties.py @@ -4,7 +4,10 @@ partner, has reached the qualifying age for State Pension Credit (SI 2014/1230 reg 6A(4)); Universal Credit is not available to them (Welfare Reform Act 2012 s.4(1)(b)). Other families keep Housing Benefit only while they continue an -existing award and do not claim Universal Credit. +existing award and do not claim Universal Credit. YEAR is 2026-27, when +working-age awards are still payable for part of the year, so eligibility +follows the same rule; test_housing_benefit_working_age_abolition_properties.py +covers the abolition itself. Invariants, for any generated population of families: diff --git a/policyengine_uk/tests/test_housing_benefit_working_age_abolition_properties.py b/policyengine_uk/tests/test_housing_benefit_working_age_abolition_properties.py new file mode 100644 index 0000000000..d6f6794859 --- /dev/null +++ b/policyengine_uk/tests/test_housing_benefit_working_age_abolition_properties.py @@ -0,0 +1,222 @@ +"""Property-based tests for the abolition of working-age Housing Benefit. + +Working-age Housing Benefit awards outside specified and temporary +accommodation were abolished from 1 July 2026 in Great Britain (SI 2025/1148 +art. 7, inserted by SI 2026/409) and 1 October 2026 in Northern Ireland +(SR 2025/176 art. 7, inserted by SR 2026/115). Claimants over the qualifying +age for State Pension Credit and protected mixed-age couples keep their awards +(art. 7(4)(a) and SI 2014/1230 reg 6A(4)-(5)). + +Invariants, for any generated population of families: + +1. Parameter: each fiscal year's working_age_awards_payable value equals the + share of 6 April to 5 April falling before the statutory date, counted + independently here from the two dates (1 before 2026-27, 0 after). +2. Bounds: 0 <= housing_benefit_payable_share <= 1, and it is 1 for every + family with a member over State Pension age. +3. Abolition: from 2027 no family without a member over State Pension age + receives Housing Benefit, in any country or claim mode. +4. Differential against the pre-abolition rule: with working-age awards kept + payable by a reform, Housing Benefit is what the continuing-award rule paid + before. Under current law, Housing Benefit before the benefit cap is + exactly that amount times the country's payable share for a family with no + member over State Pension age, and exactly the same amount for every other + family (the cap applies afterwards, so the final amount is compared by 5). +5. Monotonic: the abolition never raises anyone's Housing Benefit and never + changes Universal Credit (families on the continuing-award route do not + claim it). +6. Structural (unchanged): no family gets both Housing Benefit and Universal + Credit, and Housing Benefit stays within 0 and the rent. +""" + +import datetime + +import numpy as np +import pytest +from hypothesis import HealthCheck, given, settings +from hypothesis import strategies as st + +from policyengine_uk import CountryTaxBenefitSystem, Simulation + +PROPERTY_SETTINGS = settings( + max_examples=10, + deadline=None, + derandomize=True, + suppress_health_check=[HealthCheck.too_slow, HealthCheck.data_too_large], +) +ABOLITION_DATES = { + "great_britain": datetime.date(2026, 7, 1), + "northern_ireland": datetime.date(2026, 10, 1), +} +PARAMETER = "gov.dwp.housing_benefit.working_age_awards_payable" +KEEP_WORKING_AGE_AWARDS = { + f"{PARAMETER}.{jurisdiction}": {"2015-01-01.2040-12-31": 1} + for jurisdiction in ABOLITION_DATES +} +REGIONS = ["LONDON", "NORTH_EAST", "SCOTLAND", "WALES", "NORTHERN_IRELAND"] +TENURES = ["RENT_FROM_COUNCIL", "RENT_FROM_HA", "RENT_PRIVATELY", "OWNED_OUTRIGHT"] +# State Pension age is 66 until the rise to 67 phases in from 2026-27; 68 and +# over is unambiguously pension age and 60 and under unambiguously working age. +PENSION_AGE = st.integers(68, 100) +WORKING_AGE = st.integers(18, 60) +SHAPES = { + "single_pension": [("claimant", PENSION_AGE)], + "mixed_age": [("claimant", PENSION_AGE), ("partner", WORKING_AGE)], + "single_working": [("claimant", WORKING_AGE)], + "couple_working": [("claimant", WORKING_AGE), ("partner", WORKING_AGE)], + "pension_with_dependant": [ + ("claimant", PENSION_AGE), + ("dependant", st.integers(18, 19)), + ], +} +money = st.floats(0, 20_000, allow_nan=False, allow_infinity=False) + + +def fiscal_year_share_before(date, year): + """Share of the fiscal year starting 6 April `year` falling before `date`.""" + start = datetime.date(year, 4, 6) + end = datetime.date(year + 1, 4, 6) + before = (min(max(date, start), end) - start).days + return before / (end - start).days + + +@st.composite +def families(draw): + shape = draw(st.sampled_from(sorted(SHAPES))) + return dict( + shape=shape, + members=[(role, draw(age)) for role, age in SHAPES[shape]], + region=draw(st.sampled_from(REGIONS)), + tenure=draw(st.sampled_from(TENURES)), + rent=draw(money), + earnings=draw(st.one_of(st.just(0.0), money)), + savings=draw(st.one_of(st.just(0.0), st.floats(0, 20_000))), + would_claim_uc=draw(st.booleans()), + hb_reported=draw(st.sampled_from([0.0, 1.0])), + ) + + +def situation(units, year, claims_all): + people, benunits, households = {}, {}, {} + for i, unit in enumerate(units): + names = [] + for j, (role, age) in enumerate(unit["members"]): + name = f"p{i}_{j}" + person = {"age": {year: age}} + if role == "claimant": + person["employment_income"] = {year: unit["earnings"]} + person["is_parent"] = {year: unit["shape"] == "pension_with_dependant"} + if unit["hb_reported"]: + person["housing_benefit_reported"] = {year: unit["hb_reported"]} + if role == "dependant": + person["current_education"] = {year: "UPPER_SECONDARY"} + people[name] = person + names.append(name) + benunits[f"b{i}"] = { + "members": names, + "would_claim_uc": {year: unit["would_claim_uc"]}, + # claims_all_entitled_benefits sums reported benefits across the + # whole simulation, so set it per family. + "claims_all_entitled_benefits": {year: claims_all}, + } + households[f"h{i}"] = { + "members": names, + "region": {year: unit["region"]}, + "rent": {year: unit["rent"]}, + "tenure_type": {year: unit["tenure"]}, + "savings": {year: unit["savings"]}, + } + return {"people": people, "benunits": benunits, "households": households} + + +VARIABLES = [ + "housing_benefit", + "housing_benefit_pre_benefit_cap", + "housing_benefit_eligible", + "housing_benefit_payable_share", + "universal_credit", + "benunit_rent", +] + + +def calculate(units, year, claims_all, reform=None): + sim = Simulation(situation=situation(units, year, claims_all), reform=reform) + return {v: np.asarray(sim.calculate(v, year)) for v in VARIABLES} + + +def any_over_pension_age(unit): + return any(age >= 68 for _, age in unit["members"]) + + +def jurisdiction(unit): + return ( + "northern_ireland" if unit["region"] == "NORTHERN_IRELAND" else "great_britain" + ) + + +def check_structural(values): + hb = values["housing_benefit"] + assert np.all(hb >= 0) + assert np.all(hb <= values["benunit_rent"] + 0.01) + assert not np.any((hb > 0) & (values["universal_credit"] > 0)) + + +@pytest.mark.parametrize("year", range(2015, 2041)) +def test_payable_share_is_the_day_share_before_the_statutory_date(year): + parameter = ( + CountryTaxBenefitSystem() + .parameters(str(year)) + .gov.dwp.housing_benefit.working_age_awards_payable + ) + for name, date in ABOLITION_DATES.items(): + expected = fiscal_year_share_before(date, year) + assert getattr(parameter, name) == pytest.approx(expected, abs=1e-12) + + +def test_day_shares_match_the_hand_counted_days(): + # 6 April to 30 June 2026 is 86 days; 6 April to 30 September is 178. + assert fiscal_year_share_before(ABOLITION_DATES["great_britain"], 2026) == 86 / 365 + assert ( + fiscal_year_share_before(ABOLITION_DATES["northern_ireland"], 2026) == 178 / 365 + ) + + +@PROPERTY_SETTINGS +@given( + st.lists(families(), min_size=1, max_size=25), + st.sampled_from([2025, 2026, 2027, 2030]), + st.booleans(), +) +def test_abolition_matches_the_pre_abolition_rule_scaled_by_the_payable_share( + units, year, claims_all +): + current = calculate(units, year, claims_all) + kept = calculate(units, year, claims_all, reform=KEEP_WORKING_AGE_AWARDS) + check_structural(current) + check_structural(kept) + share = current["housing_benefit_payable_share"] + assert np.all((share >= 0) & (share <= 1)) + assert np.all(kept["housing_benefit_payable_share"] == 1) + pre_cap = "housing_benefit_pre_benefit_cap" + for i, unit in enumerate(units): + if any_over_pension_age(unit): + assert share[i] == 1, unit + expected_share = 1 + assert current["housing_benefit"][i] == pytest.approx( + kept["housing_benefit"][i], abs=0.01 + ), unit + else: + expected_share = fiscal_year_share_before( + ABOLITION_DATES[jurisdiction(unit)], year + ) + assert share[i] == pytest.approx(expected_share, abs=1e-9), unit + if year >= 2027: + assert current["housing_benefit"][i] == 0, unit + assert not current["housing_benefit_eligible"][i], unit + assert current[pre_cap][i] == pytest.approx( + kept[pre_cap][i] * expected_share, abs=0.01 + ), unit + assert current["housing_benefit"][i] <= kept["housing_benefit"][i] + 0.01 + assert current["universal_credit"][i] == pytest.approx( + kept["universal_credit"][i], abs=0.01 + ), unit diff --git a/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_eligible.py b/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_eligible.py index 9cab415763..60842f59cd 100644 --- a/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_eligible.py +++ b/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_eligible.py @@ -11,14 +11,18 @@ class housing_benefit_eligible(Variable): "can make a new claim; Universal Credit is not available to it. Any " "other family keeps Housing Benefit only while it continues an " "existing award (reported Housing Benefit) and does not claim " - "Universal Credit. Claims for specified or temporary accommodation " - "are not modelled." + "Universal Credit. Working-age awards ended on 1 July 2026 in Great " + "Britain and 1 October 2026 in Northern Ireland, so from then only " + "families with a member over State Pension age continue one. Claims " + "for specified or temporary accommodation are not modelled." ) definition_period = YEAR reference = ( "https://www.legislation.gov.uk/uksi/2014/1230/regulation/6A", "https://www.legislation.gov.uk/uksi/2014/1230/regulation/8", "https://www.legislation.gov.uk/uksi/2019/37/article/4", + "https://www.legislation.gov.uk/uksi/2025/1148/article/7", + "https://www.legislation.gov.uk/nisr/2025/176/article/7", "https://www.legislation.gov.uk/ukpga/2012/5/section/4", "https://www.legislation.gov.uk/nisr/2016/226/regulation/4A", ) @@ -42,11 +46,15 @@ def formula(benunit, period, parameters): # claim it (reg 8(2A)), so this route also rules out receiving # Universal Credit. For mixed-age couples the reported award stands # in for the SI 2019/37 art. 4 saving (reg 6A(5)). Working-age awards - # outside specified or temporary accommodation ended on 1 July 2026 - # in Great Britain (SI 2025/1148 art. 7); that is not modelled. + # outside specified or temporary accommodation were abolished from + # 1 July 2026 in Great Britain (SI 2025/1148 art. 7) and 1 October + # 2026 in Northern Ireland (SR 2025/176 art. 7); a family with no + # member over State Pension age continues one only for the part of + # the year before that date (housing_benefit_payable_share). already_claiming = add(benunit, period, ["housing_benefit_reported"]) > 0 claiming_uc = benunit("would_claim_uc", period) - continuing_award = already_claiming & ~claiming_uc + still_payable = benunit("housing_benefit_payable_share", period) > 0 + continuing_award = already_claiming & ~claiming_uc & still_payable social = benunit.any(person("in_social_housing", period)) lha_eligible = benunit("LHA_eligible", period) any_over_SP_age = benunit.any(sp_age) diff --git a/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_payable_share.py b/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_payable_share.py new file mode 100644 index 0000000000..6fb3deeffe --- /dev/null +++ b/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_payable_share.py @@ -0,0 +1,43 @@ +from policyengine_uk.model_api import * + + +class housing_benefit_payable_share(Variable): + value_type = float + entity = BenUnit + label = "Share of the year Housing Benefit is payable" + documentation = ( + "Share of the year for which this family's Housing Benefit award stays " + "payable. Working-age awards outside specified and temporary " + "accommodation were abolished from 1 July 2026 in Great Britain and " + "1 October 2026 in Northern Ireland, so for a family with no member " + "over State Pension age this is the share of the year before that " + "date. Families with a member over State Pension age keep their award " + "(the pension-age and mixed-age savings), so theirs is 1." + ) + definition_period = YEAR + unit = "/1" + reference = ( + "https://www.legislation.gov.uk/uksi/2025/1148/article/7", + "https://www.legislation.gov.uk/uksi/2014/1230/regulation/6A", + "https://www.legislation.gov.uk/nisr/2025/176/article/7", + ) + + def formula(benunit, period, parameters): + payable = parameters(period).gov.dwp.housing_benefit.working_age_awards_payable + country = benunit.household("country", period) + working_age_share = where( + country == country.possible_values.NORTHERN_IRELAND, + payable.northern_ireland, + payable.great_britain, + ) + # SI 2025/1148 art. 7(4)(a) saves claimants within SI 2014/1230 + # reg 6A(2)-(5). Reg 6A(4) (pension age) and 6A(5) (mixed-age couples + # saved by SI 2019/37 art. 4) are the savings the model can see: any + # member over State Pension age keeps the award running. In law a + # mixed-age couple is saved only if the older member claims under the + # pension-age regulations and the couple has been entitled since + # 14 May 2019, which the data cannot show. Specified and temporary + # accommodation (reg 6A(2)), prisoners (art. 7(2)) and the income- + # related ESA appointee saving (art. 7(4)(b)) have no inputs. + any_over_SP_age = benunit.any(benunit.members("is_SP_age", period)) + return where(any_over_SP_age, 1, working_age_share) diff --git a/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_pre_benefit_cap.py b/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_pre_benefit_cap.py index 5d54f3e83d..073c18810c 100644 --- a/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_pre_benefit_cap.py +++ b/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_pre_benefit_cap.py @@ -11,8 +11,11 @@ class housing_benefit_pre_benefit_cap(Variable): def formula(benunit, period, parameters): eligible = benunit("housing_benefit_eligible", period) would_claim = benunit("would_claim_housing_benefit", period) + # A working-age award abolished part-way through the year is paid + # for the part before the abolition date. + payable_share = benunit("housing_benefit_payable_share", period) return where( eligible & would_claim, - benunit("housing_benefit_entitlement", period), + benunit("housing_benefit_entitlement", period) * payable_share, 0, ) From 1a664216a72d2fea5974efb69bb9f9cc33288ba4 Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Wed, 30 Sep 2026 08:30:19 -0400 Subject: [PATCH 02/40] Test working-age continuing awards directly for each year and jurisdiction A mutation check showed the mixed-population differential missed two breakages (no proration; NI given the GB date), because random populations rarely hold a working-age continuing award in 2026. The new property test builds only those families, for 2025-2027 in GB and NI, and fails on both mutations. Also drop dataset-specific take-up shares from the docs page. Co-Authored-By: Claude Opus 5.5 --- .../programs/gov/dwp/housing-benefit.ipynb | 2 +- ...enefit_working_age_abolition_properties.py | 45 +++++++++++++++++++ 2 files changed, 46 insertions(+), 1 deletion(-) diff --git a/docs/book/programs/gov/dwp/housing-benefit.ipynb b/docs/book/programs/gov/dwp/housing-benefit.ipynb index cb21032538..ef6e4d149e 100644 --- a/docs/book/programs/gov/dwp/housing-benefit.ipynb +++ b/docs/book/programs/gov/dwp/housing-benefit.ipynb @@ -34,7 +34,7 @@ "\n", "`housing_benefit_payable_share` applies this per benunit. It is 1 for any benunit with a member over State Pension age, which stands in for the pension-age and protected mixed-age savings. In law a mixed-age couple is saved only if the older member claims under the pension-age rules and the couple has been entitled since 14 May 2019 ([SI 2019/37 art. 4](https://www.legislation.gov.uk/uksi/2019/37/article/4)), which the data cannot show. For other benunits it is the share for their country. A working-age continuing award stays eligible while the share is above 0, and `housing_benefit_pre_benefit_cap` pays the entitlement times the share. A working-age continuing award in 2026 is therefore paid for the part of the year before the abolition, and there is none from 2027.\n", "\n", - "What happens to the families whose awards end is set by `would_claim_uc`, the Universal Credit take-up input. Families that claim Universal Credit already receive it instead of Housing Benefit in every year. Families that do not claim it lose Housing Benefit and receive no Universal Credit. In the Enhanced FRS that leaves too many former claimants with neither. DWP's Move to Universal Credit statistics show that 97% of households sent a migration notice while on Housing Benefit and another legacy benefit claimed Universal Credit (98% of those also on income-related ESA), and 75% of Housing Benefit-only households did. The dataset's take-up draw puts about 72% of working-age Housing Benefit reporters on Universal Credit. Transitional protection, which went only to households that claimed after a migration notice, is not modelled.\n", + "What happens to the families whose awards end is set by `would_claim_uc`, the Universal Credit take-up input. Families that claim Universal Credit already receive it instead of Housing Benefit in every year. Families that do not claim it lose Housing Benefit and receive no Universal Credit. The Enhanced FRS take-up draw does not look at legacy receipt, so it leaves too many former claimants with neither. DWP's Move to Universal Credit statistics show that 97% of households sent a migration notice while on Housing Benefit and another legacy benefit claimed Universal Credit (98% of those also on income-related ESA), and 75% of Housing Benefit-only households did. Transitional protection, which went only to households that claimed after a migration notice, is not modelled.\n", "\n", "The savings PolicyEngine cannot observe are not modelled: specified and temporary accommodation (open to new claims at any age, including alongside Universal Credit), prisoners, and the ESA appointee saving. The Enhanced FRS therefore has no working-age Housing Benefit from 2027. DWP's Spring 2026 forecast for Great Britain is £1.64bn of temporary-accommodation and £3.94bn of supported-accommodation Housing Benefit in 2026-27, across all ages.\n", "\n", diff --git a/policyengine_uk/tests/test_housing_benefit_working_age_abolition_properties.py b/policyengine_uk/tests/test_housing_benefit_working_age_abolition_properties.py index d6f6794859..4337bef3d4 100644 --- a/policyengine_uk/tests/test_housing_benefit_working_age_abolition_properties.py +++ b/policyengine_uk/tests/test_housing_benefit_working_age_abolition_properties.py @@ -22,6 +22,8 @@ exactly that amount times the country's payable share for a family with no member over State Pension age, and exactly the same amount for every other family (the cap applies afterwards, so the final amount is compared by 5). + Mixed populations rarely hold a 2026 working-age continuing award, so a + targeted test builds only those, for each year and jurisdiction. 5. Monotonic: the abolition never raises anyone's Housing Benefit and never changes Universal Credit (families on the continuing-award route do not claim it). @@ -220,3 +222,46 @@ def test_abolition_matches_the_pre_abolition_rule_scaled_by_the_payable_share( assert current["universal_credit"][i] == pytest.approx( kept["universal_credit"][i], abs=0.01 ), unit + + +@st.composite +def working_age_continuing_awards(draw, region): + """A working-age family continuing an award: reported HB, no UC claim.""" + shape = draw(st.sampled_from(["single_working", "couple_working"])) + return dict( + shape=shape, + members=[(role, draw(age)) for role, age in SHAPES[shape]], + region=region, + tenure=draw(st.sampled_from(TENURES[:3])), + rent=draw(st.floats(1_000, 20_000, allow_nan=False, allow_infinity=False)), + earnings=draw(st.one_of(st.just(0.0), money)), + savings=draw(st.one_of(st.just(0.0), st.floats(0, 15_000))), + would_claim_uc=False, + hb_reported=1.0, + ) + + +@pytest.mark.parametrize("year", [2025, 2026, 2027]) +@pytest.mark.parametrize("region", ["LONDON", "NORTHERN_IRELAND"]) +@settings(PROPERTY_SETTINGS, max_examples=5) +@given(data=st.data()) +def test_working_age_continuing_award_is_paid_for_the_payable_share(year, region, data): + # Every family here continues an award, and the first has no earnings, so + # at least one has a positive entitlement in every example. + units = data.draw( + st.lists(working_age_continuing_awards(region), min_size=1, max_size=8) + ) + units[0]["earnings"] = 0.0 + current = calculate(units, year, claims_all=False) + kept = calculate(units, year, claims_all=False, reform=KEEP_WORKING_AGE_AWARDS) + pre_cap = "housing_benefit_pre_benefit_cap" + assert kept[pre_cap][0] > 0, units[0] + expected_share = fiscal_year_share_before( + ABOLITION_DATES[jurisdiction(units[0])], year + ) + assert np.allclose(current["housing_benefit_payable_share"], expected_share) + assert np.allclose(current[pre_cap], kept[pre_cap] * expected_share, atol=0.01) + assert np.all( + current["housing_benefit_eligible"] + == (kept["housing_benefit_eligible"] & (expected_share > 0)) + ) From cab0828970898f44b48f2aa767aae1d7c8166074 Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Wed, 30 Sep 2026 08:43:03 -0400 Subject: [PATCH 03/40] Mark Housing Benefit partial and note the unknown-country fallback Review follow-up: specified and temporary accommodation HB is not modelled, so programs.yaml lists Housing Benefit as partial. Comment that Great Britain's date applies to an unknown country, and use Stat-Xplore's own "Employment and Support Allowance" label in the docs. Co-Authored-By: Claude Opus 5.5 --- docs/book/programs/gov/dwp/housing-benefit.ipynb | 2 +- policyengine_uk/programs.yaml | 2 +- .../gov/dwp/housing_benefit/housing_benefit_payable_share.py | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/book/programs/gov/dwp/housing-benefit.ipynb b/docs/book/programs/gov/dwp/housing-benefit.ipynb index ef6e4d149e..f9c086e7d8 100644 --- a/docs/book/programs/gov/dwp/housing-benefit.ipynb +++ b/docs/book/programs/gov/dwp/housing-benefit.ipynb @@ -34,7 +34,7 @@ "\n", "`housing_benefit_payable_share` applies this per benunit. It is 1 for any benunit with a member over State Pension age, which stands in for the pension-age and protected mixed-age savings. In law a mixed-age couple is saved only if the older member claims under the pension-age rules and the couple has been entitled since 14 May 2019 ([SI 2019/37 art. 4](https://www.legislation.gov.uk/uksi/2019/37/article/4)), which the data cannot show. For other benunits it is the share for their country. A working-age continuing award stays eligible while the share is above 0, and `housing_benefit_pre_benefit_cap` pays the entitlement times the share. A working-age continuing award in 2026 is therefore paid for the part of the year before the abolition, and there is none from 2027.\n", "\n", - "What happens to the families whose awards end is set by `would_claim_uc`, the Universal Credit take-up input. Families that claim Universal Credit already receive it instead of Housing Benefit in every year. Families that do not claim it lose Housing Benefit and receive no Universal Credit. The Enhanced FRS take-up draw does not look at legacy receipt, so it leaves too many former claimants with neither. DWP's Move to Universal Credit statistics show that 97% of households sent a migration notice while on Housing Benefit and another legacy benefit claimed Universal Credit (98% of those also on income-related ESA), and 75% of Housing Benefit-only households did. Transitional protection, which went only to households that claimed after a migration notice, is not modelled.\n", + "What happens to the families whose awards end is set by `would_claim_uc`, the Universal Credit take-up input. Families that claim Universal Credit already receive it instead of Housing Benefit in every year. Families that do not claim it lose Housing Benefit and receive no Universal Credit. The Enhanced FRS take-up draw does not look at legacy receipt, so it leaves too many former claimants with neither. DWP's Move to Universal Credit statistics show that 97% of households sent a migration notice while on Housing Benefit and another legacy benefit claimed Universal Credit (98% of those also on Employment and Support Allowance), and 75% of Housing Benefit-only households did. Transitional protection, which went only to households that claimed after a migration notice, is not modelled.\n", "\n", "The savings PolicyEngine cannot observe are not modelled: specified and temporary accommodation (open to new claims at any age, including alongside Universal Credit), prisoners, and the ESA appointee saving. The Enhanced FRS therefore has no working-age Housing Benefit from 2027. DWP's Spring 2026 forecast for Great Britain is £1.64bn of temporary-accommodation and £3.94bn of supported-accommodation Housing Benefit in 2026-27, across all ages.\n", "\n", diff --git a/policyengine_uk/programs.yaml b/policyengine_uk/programs.yaml index bb4a00ee85..411da55735 100644 --- a/policyengine_uk/programs.yaml +++ b/policyengine_uk/programs.yaml @@ -222,7 +222,7 @@ programs: full_name: Housing Benefit category: Benefits agency: DWP - status: complete + status: partial coverage: UK variable: housing_benefit parameter_prefix: gov.dwp.housing_benefit diff --git a/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_payable_share.py b/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_payable_share.py index 6fb3deeffe..1da4a97ff1 100644 --- a/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_payable_share.py +++ b/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_payable_share.py @@ -25,6 +25,8 @@ class housing_benefit_payable_share(Variable): def formula(benunit, period, parameters): payable = parameters(period).gov.dwp.housing_benefit.working_age_awards_payable country = benunit.household("country", period) + # Great Britain's date applies everywhere but Northern Ireland, + # including an unknown country. working_age_share = where( country == country.possible_values.NORTHERN_IRELAND, payable.northern_ireland, From bd9272a88ee1198eacd2a2da9cb5abf30e4be01c Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Wed, 30 Sep 2026 08:46:28 -0400 Subject: [PATCH 04/40] Use lowercase parameter labels, per the model-structure convention Co-Authored-By: Claude Opus 5.5 --- .../gov/dwp/housing_benefit/working_age_awards_payable.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/policyengine_uk/parameters/gov/dwp/housing_benefit/working_age_awards_payable.yaml b/policyengine_uk/parameters/gov/dwp/housing_benefit/working_age_awards_payable.yaml index 91c7ce942d..916f4e4f3b 100644 --- a/policyengine_uk/parameters/gov/dwp/housing_benefit/working_age_awards_payable.yaml +++ b/policyengine_uk/parameters/gov/dwp/housing_benefit/working_age_awards_payable.yaml @@ -5,7 +5,7 @@ great_britain: 1988-04-01: 1 2026-07-01: 0 metadata: - label: Working-age Housing Benefit awards payable, Great Britain + label: Working-age housing benefit awards payable in Great Britain unit: /1 period: year fiscal_year_blend: true @@ -24,7 +24,7 @@ northern_ireland: 1988-04-01: 1 2026-10-01: 0 metadata: - label: Working-age Housing Benefit awards payable, Northern Ireland + label: Working-age housing benefit awards payable in Northern Ireland unit: /1 period: year fiscal_year_blend: true @@ -36,5 +36,5 @@ northern_ireland: - title: Welfare Reform (Northern Ireland) Order 2015 art. 39(1)(d) href: https://www.legislation.gov.uk/nisi/2015/2006/article/39 metadata: - label: Working-age Housing Benefit awards payable + label: Working-age housing benefit awards payable economy: false From 0d7df47d52a938e8dd58509721d616857e85c561 Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Fri, 2 Oct 2026 15:52:14 -0400 Subject: [PATCH 05/40] Keep Housing Benefit for specified or temporary accommodation after abolition Adds the benefit-unit input in_specified_or_temporary_accommodation (default False; SI 2025/1148 art 7 and TP Regs reg 6A(2), NI equivalents): such awards stay payable after 1 July 2026 (NI 1 October 2026), new claims remain open, and the UC housing costs element excludes that rent. Other saved classes (pension-age switchers, ESA(IR) appointees, restricted prisoners) are documented as not modelled. The parameter description now says how reforms dated inside a year are read. With the input absent every existing result is unchanged. Addresses Vahid's items 2-3 and the Codex P1 on bd9272a8. Item 1 (data migration onto UC) is held for Max (d837). Co-Authored-By: Claude Opus 5.5 --- ...olish-working-age-housing-benefit.added.md | 1 + .../programs/gov/dwp/housing-benefit.ipynb | 27 +- .../working_age_awards_payable.yaml | 14 +- policyengine_uk/programs.yaml | 2 +- ...housing_benefit_working_age_abolition.yaml | 240 ++++++++++++++++++ ..._housing_benefit_pension_age_properties.py | 16 +- ...enefit_working_age_abolition_properties.py | 156 +++++++++--- .../housing_benefit_eligible.py | 40 +-- .../housing_benefit_payable_share.py | 30 ++- ...in_specified_or_temporary_accommodation.py | 33 +++ .../uc_housing_costs_element.py | 19 +- 11 files changed, 506 insertions(+), 72 deletions(-) create mode 100644 changelog.d/abolish-working-age-housing-benefit.added.md create mode 100644 policyengine_uk/variables/gov/dwp/housing_benefit/in_specified_or_temporary_accommodation.py diff --git a/changelog.d/abolish-working-age-housing-benefit.added.md b/changelog.d/abolish-working-age-housing-benefit.added.md new file mode 100644 index 0000000000..e815895034 --- /dev/null +++ b/changelog.d/abolish-working-age-housing-benefit.added.md @@ -0,0 +1 @@ +- Added a specified or temporary accommodation input to preserve working-age Housing Benefit, permit new claims alongside Universal Credit and exclude the corresponding Universal Credit housing costs. diff --git a/docs/book/programs/gov/dwp/housing-benefit.ipynb b/docs/book/programs/gov/dwp/housing-benefit.ipynb index da87969bc8..8ba8479429 100644 --- a/docs/book/programs/gov/dwp/housing-benefit.ipynb +++ b/docs/book/programs/gov/dwp/housing-benefit.ipynb @@ -7,7 +7,7 @@ "source": [ "# Housing Benefit\n", "\n", - "Housing Benefit is a means-tested DWP benefit that helps people on a low income with their rent. It is a legacy benefit: new working-age claimants have been routed to the Universal Credit housing element for years, and the remaining working-age awards outside specified and temporary accommodation were abolished on 1 July 2026 in Great Britain and 1 October 2026 in Northern Ireland. Housing Benefit continues for pensioners, protected mixed-age couples and tenants of specified (supported) or temporary accommodation, and PolicyEngine models it alongside the UC housing element so reform analyses can move between the two systems cleanly.\n", + "Housing Benefit is a means-tested DWP benefit that helps people on a low income with their rent. It is a legacy benefit: most new working-age claimants use the Universal Credit housing element, and working-age awards were abolished on 1 July 2026 in Great Britain and 1 October 2026 in Northern Ireland, subject to statutory savings. Housing Benefit continues for pensioners, protected mixed-age couples, tenants of specified or temporary accommodation and other saved cases. PolicyEngine models the accommodation saving through an explicit input; its coverage of the saved cases and accommodation-specific award rules remains partial.\n", "\n", "Parameters live in `policyengine_uk/parameters/gov/dwp/housing_benefit/` and the formulas in `policyengine_uk/variables/gov/dwp/housing_benefit/`." ] @@ -19,24 +19,31 @@ "source": [ "## Eligibility\n", "\n", - "`housing_benefit_eligible` requires the benunit to be either in **social housing** or eligible for the **Local Housing Allowance** rate (broadly, private renters), with assessable capital at or below the working-age (or pension-age) capital limit, and to reach Housing Benefit by one of two routes:\n", + "`housing_benefit_eligible` requires the benunit to be either in **social housing** or eligible for the **Local Housing Allowance** rate (broadly, private renters), with assessable capital at or below the working-age (or pension-age) capital limit, and to reach Housing Benefit by one of three routes:\n", "\n", - "- **Pension age**: every adult in the benunit has reached the qualifying age for State Pension Credit (State Pension age). New Housing Benefit claims are open to them ([SI 2014/1230 reg. 6A(4)](https://www.legislation.gov.uk/uksi/2014/1230/regulation/6A)), and Universal Credit is not, so neither a previous claim nor `would_claim_uc` matters.\n", - "- **Continuing award**: any other benunit was **already claiming** Housing Benefit (proxied by a positive `housing_benefit_reported`) and is **not claiming Universal Credit**. Working-age and mixed-age families cannot make new claims; they claim the Universal Credit housing element instead. For mixed-age couples the reported award stands in for the saving for couples who were entitled to Housing Benefit or Pension Credit on 14 May 2019 ([SI 2019/37 art. 4](https://www.legislation.gov.uk/uksi/2019/37/article/4)).\n", + "- **Pension age**: every benunit member aged 18 or older has reached the qualifying age for State Pension Credit (State Pension age). This is the model's approximation of the claimant and partner age conditions in [SI 2014/1230 reg. 6A(4)](https://www.legislation.gov.uk/uksi/2014/1230/regulation/6A); neither a previous claim nor `would_claim_uc` is required on this route.\n", + "- **Specified or temporary accommodation**: `in_specified_or_temporary_accommodation` is a boolean benunit input, defaulting to `False`. When supplied as `True`, it permits new Housing Benefit claims without a reported previous award, under [SI 2014/1230 reg. 6A(2)](https://www.legislation.gov.uk/uksi/2014/1230/regulation/6A) and [SR 2016/226 reg. 4A(2)](https://www.legislation.gov.uk/nisr/2016/226/regulation/4A). The input refers to the statutory definitions: [GB specified accommodation](https://www.legislation.gov.uk/uksi/2013/376/schedule/1/paragraph/3A) and [temporary accommodation](https://www.legislation.gov.uk/uksi/2013/376/schedule/1/paragraph/3B), and their [NI specified](https://www.legislation.gov.uk/nisr/2016/216/schedule/1/paragraph/4) and [temporary](https://www.legislation.gov.uk/nisr/2016/216/schedule/1/paragraph/4A) equivalents. It is not inferred from tenure or a general supported-housing label.\n", + "- **Continuing award**: any other benunit was **already claiming** Housing Benefit (proxied by a positive `housing_benefit_reported`), is **not claiming Universal Credit**, and has a positive `housing_benefit_payable_share`. For mixed-age couples the reported award stands in for the saving for couples who were entitled to Housing Benefit or Pension Credit on 14 May 2019 ([SI 2019/37 art. 4](https://www.legislation.gov.uk/uksi/2019/37/article/4)).\n", "\n", - "The pension-age test counts the same benunit members as Universal Credit's working-age test, and the continuing-award route requires not claiming Universal Credit, so no benunit receives both.\n", + "The accommodation route permits Housing Benefit alongside Universal Credit: these Housing Benefit awards do not terminate on a UC claim ([SI 2014/1230 reg. 8(3)](https://www.legislation.gov.uk/uksi/2014/1230/regulation/8); [NI reg. 6(3)](https://www.legislation.gov.uk/nisr/2016/226/regulation/6)). When the input is `True`, PolicyEngine excludes the UC housing costs element, as the corresponding rent payments are excluded from UC housing costs ([SI 2013/376 Schedule 1 para. 3(h)-(i)](https://www.legislation.gov.uk/uksi/2013/376/schedule/1/paragraph/3); [NI Schedule 1 para. 3(e)-(ea)](https://www.legislation.gov.uk/nisr/2016/216/schedule/1/paragraph/3)). Existing rental, capital, entitlement and Housing Benefit take-up checks still apply. The input does not implement the special eligible-rent or benefit-cap treatment of these accommodation types.\n", "\n", "### Abolition of working-age awards\n", "\n", - "Working-age Housing Benefit awards outside specified or temporary accommodation were abolished from **1 July 2026** in Great Britain ([SI 2025/1148 art. 7](https://www.legislation.gov.uk/uksi/2025/1148/article/7), inserted by [SI 2026/409](https://www.legislation.gov.uk/uksi/2026/409/made)) and **1 October 2026** in Northern Ireland ([SR 2025/176 art. 7](https://www.legislation.gov.uk/nisr/2025/176/article/7), inserted by SR 2026/115). Claimants within [SI 2014/1230 reg. 6A(2)-(5)](https://www.legislation.gov.uk/uksi/2014/1230/regulation/6A) keep their awards: pension age, mixed-age couples protected since 14 May 2019, and specified or temporary accommodation. So do prisoners until their Universal Credit restriction ends and some income-related ESA claimants with an appointee.\n", + "Working-age Housing Benefit awards were abolished from **1 July 2026** in Great Britain ([SI 2025/1148 art. 7](https://www.legislation.gov.uk/uksi/2025/1148/article/7), inserted by [SI 2026/409](https://www.legislation.gov.uk/uksi/2026/409/made)) and **1 October 2026** in Northern Ireland ([SR 2025/176 art. 7](https://www.legislation.gov.uk/nisr/2025/176/article/7), inserted by [SR 2026/115](https://www.legislation.gov.uk/nisr/2026/115/made)), subject to these savings:\n", "\n", - "The dates live in `gov.dwp.housing_benefit.working_age_awards_payable` (`great_britain` and `northern_ireland`), with 1 while working-age awards are payable and 0 after. PolicyEngine UK evaluates a year's parameters as one value for the fiscal year starting 6 April. By default that value is the one in force on 30 April, which would have left the whole of 2026-27 unaffected. This parameter is instead day-weighted across the fiscal year (`fiscal_year_blend`), so 2026 (2026-27) takes the share of the year before the abolition: 86/365 in Great Britain (6 April to 30 June) and 178/365 in Northern Ireland (6 April to 30 September). From 2027 it is 0.\n", + "- Article 7(4)(a) saves the cases in [SI 2014/1230 reg. 6A(2)-(5)](https://www.legislation.gov.uk/uksi/2014/1230/regulation/6A) and [NI reg. 4A(2)-(5)](https://www.legislation.gov.uk/nisr/2016/226/regulation/4A): specified or temporary accommodation; the qualifying final UC assessment period when the claimant reaches Pension Credit age and the relevant Decisions and Appeals provision applies, with entitlement from reaching that age; pension-age single claimants, couples where both have reached that age and polygamous marriages where all have; and mixed-age couples whose 2019 saving remains effective.\n", + "- Article 7(4)(b) saves an award where the claimant was entitled to income-related ESA immediately before the abolition date and the article 3A(2) saving applies: an appointee was appointed immediately before that date, or the Secretary of State (NI: Department) determined in the preceding six months that an appointee was likely to be needed, whether or not one was appointed. Article 3A(3) still permits termination following a UC claim or failure to claim by the migration deadline.\n", + "- Article 7(2) delays abolition where, immediately before the abolition date, the claimant was prevented from receiving UC by regulation 19(1)(b) (prisoners) or (c) (serving a sentence of imprisonment while detained in hospital). The appointed abolition date is then the day after the last day that restriction applies; this is not a general saving for anyone who becomes a prisoner later.\n", "\n", - "`housing_benefit_payable_share` applies this per benunit. It is 1 for any benunit with a member over State Pension age, which stands in for the pension-age and protected mixed-age savings. In law a mixed-age couple is saved only if the older member claims under the pension-age rules and the couple has been entitled since 14 May 2019 ([SI 2019/37 art. 4](https://www.legislation.gov.uk/uksi/2019/37/article/4)), which the data cannot show. For other benunits it is the share for their country. A working-age continuing award stays eligible while the share is above 0, and `housing_benefit_pre_benefit_cap` pays the entitlement times the share. A working-age continuing award in 2026 is therefore paid for the part of the year before the abolition, and there is none from 2027.\n", + "The dates live in `gov.dwp.housing_benefit.working_age_awards_payable` (`great_britain` and `northern_ireland`), with 1 while working-age awards are payable and 0 after. PolicyEngine UK evaluates a year's parameters as one value for the fiscal year starting 6 April. By default that value is the one in force on 30 April, which would have left the whole of 2026-27 unaffected. This parameter is instead day-weighted across the fiscal year (`fiscal_year_blend`), so 2026 (2026-27) takes the share of the year before the abolition: 86/365 in Great Britain (6 April to 30 June) and 178/365 in Northern Ireland (6 April to 30 September). From 2027 it is 0. Annual formulas read the converted annual value at the start of the model year; later values do not switch a YEAR formula partway through that year.\n", "\n", - "What happens to the families whose awards end is set by `would_claim_uc`, the Universal Credit take-up input. Families that claim Universal Credit already receive it instead of Housing Benefit in every year. Families that do not claim it lose Housing Benefit and receive no Universal Credit. The Enhanced FRS take-up draw does not look at legacy receipt, so it leaves too many former claimants with neither. DWP's Move to Universal Credit statistics show that 97% of households sent a migration notice while on Housing Benefit and another legacy benefit claimed Universal Credit (98% of those also on Employment and Support Allowance), and 75% of Housing Benefit-only households did. Transitional protection, which went only to households that claimed after a migration notice, is not modelled.\n", + "`Simulation.apply_parameter_changes` applies reform dictionaries to raw parameters before fiscal-year conversion. A bare-year key such as `2026` covers the entire fiscal year and can set its share to 1. A date key such as `2026-07-01` is a one-day override that is then blended: setting GB to 1 for that date changes its 2026 share from 86/365 to 87/365. A range applies over its stated dates and is also blended. A dated change made directly to already-converted parameters after the model year's start is ignored by that year's annual formula; it is not the same as a reform dictionary.\n", "\n", - "The savings PolicyEngine cannot observe are not modelled: specified and temporary accommodation (open to new claims at any age, including alongside Universal Credit), prisoners, and the ESA appointee saving. The Enhanced FRS therefore has no working-age Housing Benefit from 2027. DWP's Spring 2026 forecast for Great Britain is £1.64bn of temporary-accommodation and £3.94bn of supported-accommodation Housing Benefit in 2026-27, across all ages.\n", + "`housing_benefit_payable_share` applies this per benunit. It is 1 when `in_specified_or_temporary_accommodation` is `True`, in every model year. It is also 1 for any benunit with a member over State Pension age, which stands in for the pension-age and protected mixed-age savings. In law a mixed-age couple is saved only if the older member claims under the pension-age rules and the couple's 2019 saving remains effective ([SI 2019/37 art. 4](https://www.legislation.gov.uk/uksi/2019/37/article/4)), which the data cannot show. For other benunits it is the share for their country. A working-age continuing award stays eligible while the share is above 0, and `housing_benefit_pre_benefit_cap` pays the entitlement times the share. An unprotected working-age continuing award in 2026 is therefore paid for the part of the year before the abolition, and there is none from 2027.\n", + "\n", + "What happens to the families whose awards end is set by `would_claim_uc`, the Universal Credit take-up input. Families without the accommodation input that claim Universal Credit already receive it instead of Housing Benefit in every year. Families that do not claim it lose Housing Benefit and receive no Universal Credit. The Enhanced FRS take-up draw does not look at legacy receipt, so it leaves too many former claimants with neither. DWP's Move to Universal Credit statistics show that 97% of households sent a migration notice while on Housing Benefit and another legacy benefit claimed Universal Credit (98% of those also on Employment and Support Allowance), and 75% of Housing Benefit-only households did. Transitional protection, which went only to households that claimed after a migration notice, is not modelled.\n", + "\n", + "No current dataset supplies `in_specified_or_temporary_accommodation`, so its default of `False` leaves existing dataset outputs unchanged. The other savings requiring histories or decisions remain unmodelled: the qualifying final UC assessment-period case, the ESA appointee or likely-needed-appointee determination, and the restricted prisoner cases. The pension-age and protected mixed-age routes remain approximations. The Enhanced FRS therefore still has no working-age Housing Benefit from 2027. Accommodation-specific eligible-rent and benefit-cap rules also remain gaps even when the accommodation input is supplied. DWP's Spring 2026 forecast for Great Britain is £1.64bn of temporary-accommodation and £3.94bn of supported-accommodation Housing Benefit in 2026-27, across all ages.\n", "\n", "Take-up is handled by `would_claim_housing_benefit`, which is true for benunits that report Housing Benefit and, when no reported benefits are supplied (as in household calculations), for everyone. In the Enhanced FRS take-up therefore follows reported claims." ] diff --git a/policyengine_uk/parameters/gov/dwp/housing_benefit/working_age_awards_payable.yaml b/policyengine_uk/parameters/gov/dwp/housing_benefit/working_age_awards_payable.yaml index 916f4e4f3b..492d2f921f 100644 --- a/policyengine_uk/parameters/gov/dwp/housing_benefit/working_age_awards_payable.yaml +++ b/policyengine_uk/parameters/gov/dwp/housing_benefit/working_age_awards_payable.yaml @@ -1,4 +1,16 @@ -description: Whether working-age Housing Benefit awards outside specified and temporary accommodation are still payable (1) or abolished (0). Housing Benefit was abolished for these awards from 1 July 2026 in Great Britain and 1 October 2026 in Northern Ireland; awards of claimants over the qualifying age for State Pension Credit, protected mixed-age couples and claimants in specified or temporary accommodation are saved. Each fiscal year takes the day-weighted average, which is the share of that year for which such awards stayed payable. +description: >- + Whether working-age Housing Benefit awards outside specified and temporary + accommodation are still payable (1) or abolished (0). Housing Benefit was + abolished for these awards from 1 July 2026 in Great Britain and 1 October + 2026 in Northern Ireland; statutory savings are described in + housing_benefit_payable_share. Annual formulas read parameters once, at the + start of the model year, after fiscal-year conversion. Parameters normally + sample 30 April, but these numeric flags use fiscal_year_blend to take the + day-weighted average from 6 April to 5 April. An in-year value applied after + that conversion is ignored for that model year. Simulation reform dictionaries + are applied before conversion: a date-only key overrides just one day and is + blended, while a bare year overrides the whole fiscal year. Use whole-year + values or a date range for annual reform scenarios. great_britain: description: Whether working-age Housing Benefit awards outside specified and temporary accommodation are still payable in Great Britain. Section 33(1)(d) of the Welfare Reform Act 2012 came into force for them on 1 July 2026. values: diff --git a/policyengine_uk/programs.yaml b/policyengine_uk/programs.yaml index b3d1f504ea..9a69b1832e 100644 --- a/policyengine_uk/programs.yaml +++ b/policyengine_uk/programs.yaml @@ -227,7 +227,7 @@ programs: variable: housing_benefit parameter_prefix: gov.dwp.housing_benefit verified_start_year: 2022 - notes: Legacy benefit replaced by Universal Credit. Working-age awards were abolished on 1 July 2026 (GB) and 1 October 2026 (NI); pension-age and protected mixed-age awards continue. Specified and temporary accommodation awards, which continue at any age, are not modelled. + notes: Legacy benefit replaced by Universal Credit. Working-age abolition applies from 1 July 2026 (GB) and 1 October 2026 (NI). An explicit specified-or-temporary-accommodation input preserves payable awards and new claims alongside UC without UC rent support; datasets do not supply it. Pension-age and protected mixed-age savings are approximated. Other historical savings and accommodation-specific eligible-rent and benefit-cap rules are not modelled. - id: income_support name: Income Support diff --git a/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_working_age_abolition.yaml b/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_working_age_abolition.yaml index d6790c9dd5..20d4c50240 100644 --- a/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_working_age_abolition.yaml +++ b/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_working_age_abolition.yaml @@ -73,6 +73,7 @@ benunits: benunit: members: [claimant] + in_specified_or_temporary_accommodation: false would_claim_uc: false housing_benefit_applicable_income: 0 households: @@ -170,6 +171,7 @@ benunits: benunit: members: [claimant] + in_specified_or_temporary_accommodation: false would_claim_uc: false housing_benefit_applicable_income: 0 households: @@ -307,3 +309,241 @@ output: housing_benefit_eligible: false housing_benefit: 0 + +- name: GB protected working-age continuing award is paid in full after abolition + period: 2027 + absolute_error_margin: 0.01 + input: + people: + claimant: + age: 40 + housing_benefit_reported: 1 + benunits: + benunit: + members: [claimant] + in_specified_or_temporary_accommodation: true + would_claim_uc: false + housing_benefit_applicable_income: 0 + households: + household: + members: [claimant] + rent: 5_200 + tenure_type: RENT_FROM_COUNCIL + region: LONDON + output: + housing_benefit_payable_share: 1 + housing_benefit_eligible: true + housing_benefit_entitlement: 5_200 + housing_benefit: 5_200 + +- name: NI protected working-age continuing award is paid in full after abolition + period: 2027 + absolute_error_margin: 0.01 + input: + people: + claimant: + age: 40 + housing_benefit_reported: 1 + benunits: + benunit: + members: [claimant] + in_specified_or_temporary_accommodation: true + would_claim_uc: false + housing_benefit_applicable_income: 0 + households: + household: + members: [claimant] + rent: 5_200 + tenure_type: RENT_FROM_COUNCIL + region: NORTHERN_IRELAND + output: + housing_benefit_payable_share: 1 + housing_benefit_eligible: true + housing_benefit_entitlement: 5_200 + housing_benefit: 5_200 + +- name: GB protected accommodation permits a working-age new claim after abolition + period: 2027 + absolute_error_margin: 0.01 + input: + people: + claimant: + age: 40 + benunits: + benunit: + members: [claimant] + in_specified_or_temporary_accommodation: true + claims_all_entitled_benefits: true + would_claim_uc: false + housing_benefit_applicable_income: 0 + households: + household: + members: [claimant] + rent: 5_200 + tenure_type: RENT_FROM_COUNCIL + region: LONDON + output: + housing_benefit_payable_share: 1 + housing_benefit_eligible: true + housing_benefit_entitlement: 5_200 + housing_benefit: 5_200 + +- name: NI protected accommodation permits a working-age new claim after abolition + period: 2027 + absolute_error_margin: 0.01 + input: + people: + claimant: + age: 40 + benunits: + benunit: + members: [claimant] + in_specified_or_temporary_accommodation: true + claims_all_entitled_benefits: true + would_claim_uc: false + housing_benefit_applicable_income: 0 + households: + household: + members: [claimant] + rent: 5_200 + tenure_type: RENT_FROM_COUNCIL + region: NORTHERN_IRELAND + output: + housing_benefit_payable_share: 1 + housing_benefit_eligible: true + housing_benefit_entitlement: 5_200 + housing_benefit: 5_200 + +- name: GB unprotected working-age new claim receives no award after abolition + period: 2027 + absolute_error_margin: 0.01 + input: + people: + claimant: + age: 40 + benunits: + benunit: + members: [claimant] + in_specified_or_temporary_accommodation: false + claims_all_entitled_benefits: true + would_claim_uc: false + housing_benefit_applicable_income: 0 + households: + household: + members: [claimant] + rent: 5_200 + tenure_type: RENT_FROM_COUNCIL + region: LONDON + output: + housing_benefit_payable_share: 0 + housing_benefit_eligible: false + housing_benefit: 0 + +- name: NI unprotected working-age new claim receives no award after abolition + period: 2027 + absolute_error_margin: 0.01 + input: + people: + claimant: + age: 40 + benunits: + benunit: + members: [claimant] + in_specified_or_temporary_accommodation: false + claims_all_entitled_benefits: true + would_claim_uc: false + housing_benefit_applicable_income: 0 + households: + household: + members: [claimant] + rent: 5_200 + tenure_type: RENT_FROM_COUNCIL + region: NORTHERN_IRELAND + output: + housing_benefit_payable_share: 0 + housing_benefit_eligible: false + housing_benefit: 0 + +- name: Protected accommodation still respects the working-age capital limit + period: 2027 + absolute_error_margin: 0.01 + input: + people: + claimant: + age: 40 + benunits: + benunit: + members: [claimant] + in_specified_or_temporary_accommodation: true + claims_all_entitled_benefits: true + would_claim_uc: false + housing_benefit_applicable_income: 0 + households: + household: + members: [claimant] + rent: 5_200 + savings: 20_000 + tenure_type: RENT_FROM_COUNCIL + region: LONDON + output: + housing_benefit_payable_share: 1 + housing_benefit_eligible: false + housing_benefit: 0 + +- name: GB protected accommodation receives Housing Benefit alongside non-housing UC + period: 2027 + absolute_error_margin: 0.01 + input: + people: + claimant: + age: 40 + housing_benefit_reported: 1 + benunits: + benunit: + members: [claimant] + in_specified_or_temporary_accommodation: true + would_claim_uc: true + housing_benefit_applicable_income: 0 + # Fix the non-housing allowance to isolate the rent-cost routing. + uc_standard_allowance: 5_000 + households: + household: + members: [claimant] + rent: 5_200 + tenure_type: RENT_FROM_COUNCIL + region: LONDON + output: + housing_benefit_payable_share: 1 + housing_benefit_eligible: true + housing_benefit: 5_200 + uc_housing_costs_element: 0 + universal_credit: 5_000 + +- name: NI protected accommodation receives Housing Benefit alongside non-housing UC + period: 2027 + absolute_error_margin: 0.01 + input: + people: + claimant: + age: 40 + housing_benefit_reported: 1 + benunits: + benunit: + members: [claimant] + in_specified_or_temporary_accommodation: true + would_claim_uc: true + housing_benefit_applicable_income: 0 + # Fix the non-housing allowance to isolate the rent-cost routing. + uc_standard_allowance: 5_000 + households: + household: + members: [claimant] + rent: 5_200 + tenure_type: RENT_FROM_COUNCIL + region: NORTHERN_IRELAND + output: + housing_benefit_payable_share: 1 + housing_benefit_eligible: true + housing_benefit: 5_200 + uc_housing_costs_element: 0 + universal_credit: 5_000 diff --git a/policyengine_uk/tests/test_housing_benefit_pension_age_properties.py b/policyengine_uk/tests/test_housing_benefit_pension_age_properties.py index 92c6ffaaca..602aba232b 100644 --- a/policyengine_uk/tests/test_housing_benefit_pension_age_properties.py +++ b/policyengine_uk/tests/test_housing_benefit_pension_age_properties.py @@ -1,9 +1,10 @@ """Property-based tests for who can claim Housing Benefit. -New Housing Benefit claims are barred except where the claimant, and any -partner, has reached the qualifying age for State Pension Credit (SI 2014/1230 -reg 6A(4)); Universal Credit is not available to them (Welfare Reform Act 2012 -s.4(1)(b)). Other families keep Housing Benefit only while they continue an +These tests omit the accommodation input, so its default False applies. +For this route, new Housing Benefit claims are barred except where the +claimant, and any partner, has reached the qualifying age for State Pension +Credit (SI 2014/1230 reg 6A(4)); the model approximates this with members aged +18 or over. Other families keep Housing Benefit only while they continue an existing award and do not claim Universal Credit. YEAR is 2026-27, when working-age awards are still payable for part of the year, so eligibility follows the same rule; test_housing_benefit_working_age_abolition_properties.py @@ -28,9 +29,10 @@ 5. Metamorphic: a wholly pension-age family's Housing Benefit is non-increasing in private pension income. -A pensioner with an 18 or 19 year old dependant counts as having a working-age -adult for Housing Benefit, Pension Credit and Universal Credit alike, so the -mutual exclusion holds for that shape too. +The model's HB age approximation counts an 18 or 19 year old dependant among +members aged 18 or over. UC uses its own claimant definition, so that HB +approximation does not establish UC eligibility. Accommodation protection and +the HB/non-housing-UC route are tested in the abolition property file. """ import numpy as np diff --git a/policyengine_uk/tests/test_housing_benefit_working_age_abolition_properties.py b/policyengine_uk/tests/test_housing_benefit_working_age_abolition_properties.py index 4337bef3d4..cd9e6a2216 100644 --- a/policyengine_uk/tests/test_housing_benefit_working_age_abolition_properties.py +++ b/policyengine_uk/tests/test_housing_benefit_working_age_abolition_properties.py @@ -13,22 +13,27 @@ share of 6 April to 5 April falling before the statutory date, counted independently here from the two dates (1 before 2026-27, 0 after). 2. Bounds: 0 <= housing_benefit_payable_share <= 1, and it is 1 for every - family with a member over State Pension age. -3. Abolition: from 2027 no family without a member over State Pension age - receives Housing Benefit, in any country or claim mode. + family with a member over State Pension age or the protected-accommodation + input, in every model year. +3. Abolition: from 2027 no family without a member over State Pension age or + the protected-accommodation input receives Housing Benefit, in any country + or claim mode. 4. Differential against the pre-abolition rule: with working-age awards kept payable by a reform, Housing Benefit is what the continuing-award rule paid before. Under current law, Housing Benefit before the benefit cap is exactly that amount times the country's payable share for a family with no - member over State Pension age, and exactly the same amount for every other - family (the cap applies afterwards, so the final amount is compared by 5). + member over State Pension age or protected-accommodation input, and exactly + the same amount for every other family (the cap applies afterwards, so the + final amount is compared by 5). Mixed populations rarely hold a 2026 working-age continuing award, so a targeted test builds only those, for each year and jurisdiction. 5. Monotonic: the abolition never raises anyone's Housing Benefit and never - changes Universal Credit (families on the continuing-award route do not - claim it). -6. Structural (unchanged): no family gets both Housing Benefit and Universal - Credit, and Housing Benefit stays within 0 and the rent. + changes Universal Credit. +6. Structural: only protected-accommodation families can get both Housing + Benefit and Universal Credit, their UC housing costs element is zero, + and Housing Benefit stays within 0 and the rent. +7. Default: omitting the protected-accommodation input produces the same + Housing Benefit and Universal Credit outputs as setting it to False. """ import datetime @@ -95,38 +100,47 @@ def families(draw): savings=draw(st.one_of(st.just(0.0), st.floats(0, 20_000))), would_claim_uc=draw(st.booleans()), hb_reported=draw(st.sampled_from([0.0, 1.0])), + in_specified_or_temporary_accommodation=draw(st.booleans()), ) def situation(units, year, claims_all): + years = [year] if isinstance(year, int) else list(year) + + def annual(value): + return {year: value for year in years} + people, benunits, households = {}, {}, {} for i, unit in enumerate(units): names = [] for j, (role, age) in enumerate(unit["members"]): name = f"p{i}_{j}" - person = {"age": {year: age}} + person = {"age": annual(age)} if role == "claimant": - person["employment_income"] = {year: unit["earnings"]} - person["is_parent"] = {year: unit["shape"] == "pension_with_dependant"} + person["employment_income"] = annual(unit["earnings"]) + person["is_parent"] = annual(unit["shape"] == "pension_with_dependant") if unit["hb_reported"]: - person["housing_benefit_reported"] = {year: unit["hb_reported"]} + person["housing_benefit_reported"] = annual(unit["hb_reported"]) if role == "dependant": - person["current_education"] = {year: "UPPER_SECONDARY"} + person["current_education"] = annual("UPPER_SECONDARY") people[name] = person names.append(name) benunits[f"b{i}"] = { "members": names, - "would_claim_uc": {year: unit["would_claim_uc"]}, + "would_claim_uc": annual(unit["would_claim_uc"]), + "in_specified_or_temporary_accommodation": annual( + unit["in_specified_or_temporary_accommodation"] + ), # claims_all_entitled_benefits sums reported benefits across the # whole simulation, so set it per family. - "claims_all_entitled_benefits": {year: claims_all}, + "claims_all_entitled_benefits": annual(claims_all), } households[f"h{i}"] = { "members": names, - "region": {year: unit["region"]}, - "rent": {year: unit["rent"]}, - "tenure_type": {year: unit["tenure"]}, - "savings": {year: unit["savings"]}, + "region": annual(unit["region"]), + "rent": annual(unit["rent"]), + "tenure_type": annual(unit["tenure"]), + "savings": annual(unit["savings"]), } return {"people": people, "benunits": benunits, "households": households} @@ -137,6 +151,7 @@ def situation(units, year, claims_all): "housing_benefit_eligible", "housing_benefit_payable_share", "universal_credit", + "uc_housing_costs_element", "benunit_rent", ] @@ -156,20 +171,30 @@ def jurisdiction(unit): ) -def check_structural(values): +def check_structural(values, units): hb = values["housing_benefit"] + protected = np.array( + [unit["in_specified_or_temporary_accommodation"] for unit in units] + ) assert np.all(hb >= 0) assert np.all(hb <= values["benunit_rent"] + 0.01) - assert not np.any((hb > 0) & (values["universal_credit"] > 0)) + assert not np.any((hb > 0) & (values["universal_credit"] > 0) & ~protected) + assert np.all(values["uc_housing_costs_element"][protected] == 0) + + +@pytest.fixture(scope="module") +def baseline_tax_benefit_system(): + """Share immutable baseline parameters across the annual-value checks.""" + return CountryTaxBenefitSystem() @pytest.mark.parametrize("year", range(2015, 2041)) -def test_payable_share_is_the_day_share_before_the_statutory_date(year): - parameter = ( - CountryTaxBenefitSystem() - .parameters(str(year)) - .gov.dwp.housing_benefit.working_age_awards_payable - ) +def test_payable_share_is_the_day_share_before_the_statutory_date( + year, baseline_tax_benefit_system +): + parameter = baseline_tax_benefit_system.parameters( + str(year) + ).gov.dwp.housing_benefit.working_age_awards_payable for name, date in ABOLITION_DATES.items(): expected = fiscal_year_share_before(date, year) assert getattr(parameter, name) == pytest.approx(expected, abs=1e-12) @@ -183,6 +208,35 @@ def test_day_shares_match_the_hand_counted_days(): ) +def test_dated_reform_is_blended_but_year_reform_covers_the_whole_fiscal_year(): + unit = dict( + shape="single_working", + members=[("claimant", 40)], + region="LONDON", + tenure="RENT_FROM_COUNCIL", + rent=5_200, + earnings=0, + savings=0, + would_claim_uc=False, + hb_reported=1, + in_specified_or_temporary_accommodation=False, + ) + parameter = f"{PARAMETER}.great_britain" + one_day = Simulation( + situation=situation([unit], 2026, claims_all=False), + reform={parameter: {"2026-07-01": 1}}, + ) + whole_year = Simulation( + situation=situation([unit], 2026, claims_all=False), + reform={parameter: {"2026": 1}}, + ) + # The single-date override adds one payable day to the baseline 86 days. + assert one_day.calculate("housing_benefit_payable_share", 2026)[0] == pytest.approx( + (86 + 1) / 365 + ) + assert whole_year.calculate("housing_benefit_payable_share", 2026)[0] == 1 + + @PROPERTY_SETTINGS @given( st.lists(families(), min_size=1, max_size=25), @@ -194,14 +248,17 @@ def test_abolition_matches_the_pre_abolition_rule_scaled_by_the_payable_share( ): current = calculate(units, year, claims_all) kept = calculate(units, year, claims_all, reform=KEEP_WORKING_AGE_AWARDS) - check_structural(current) - check_structural(kept) + check_structural(current, units) + check_structural(kept, units) share = current["housing_benefit_payable_share"] assert np.all((share >= 0) & (share <= 1)) assert np.all(kept["housing_benefit_payable_share"] == 1) pre_cap = "housing_benefit_pre_benefit_cap" for i, unit in enumerate(units): - if any_over_pension_age(unit): + if ( + any_over_pension_age(unit) + or unit["in_specified_or_temporary_accommodation"] + ): assert share[i] == 1, unit expected_share = 1 assert current["housing_benefit"][i] == pytest.approx( @@ -238,6 +295,7 @@ def working_age_continuing_awards(draw, region): savings=draw(st.one_of(st.just(0.0), st.floats(0, 15_000))), would_claim_uc=False, hb_reported=1.0, + in_specified_or_temporary_accommodation=False, ) @@ -265,3 +323,39 @@ def test_working_age_continuing_award_is_paid_for_the_payable_share(year, region current["housing_benefit_eligible"] == (kept["housing_benefit_eligible"] & (expected_share > 0)) ) + + +@pytest.mark.parametrize("region", ["LONDON", "NORTHERN_IRELAND"]) +@settings(PROPERTY_SETTINGS, max_examples=5) +@given(data=st.data()) +def test_protected_working_age_award_is_payable_in_full_in_every_year(region, data): + units = data.draw( + st.lists(working_age_continuing_awards(region), min_size=1, max_size=8) + ) + for unit in units: + unit["in_specified_or_temporary_accommodation"] = True + years = range(2015, 2041) + sim = Simulation(situation=situation(units, years, claims_all=False)) + for year in years: + share = sim.calculate("housing_benefit_payable_share", year) + assert np.all(share == 1), (year, region, units) + + +@settings(PROPERTY_SETTINGS, max_examples=5) +@given( + st.lists(families(), min_size=1, max_size=8), + st.sampled_from([2025, 2026, 2027, 2030]), + st.booleans(), +) +def test_omitted_accommodation_input_matches_explicit_false(units, year, claims_all): + for unit in units: + unit["in_specified_or_temporary_accommodation"] = False + explicit = calculate(units, year, claims_all) + omitted = situation(units, year, claims_all) + for benunit in omitted["benunits"].values(): + benunit.pop("in_specified_or_temporary_accommodation") + sim = Simulation(situation=omitted) + for variable in VARIABLES: + np.testing.assert_array_equal( + sim.calculate(variable, year), explicit[variable], err_msg=variable + ) diff --git a/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_eligible.py b/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_eligible.py index 60842f59cd..40f75db6a8 100644 --- a/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_eligible.py +++ b/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_eligible.py @@ -8,13 +8,19 @@ class housing_benefit_eligible(Variable): documentation = ( "Whether this family can receive Housing Benefit. A family in which " "every adult has reached the qualifying age for State Pension Credit " - "can make a new claim; Universal Credit is not available to it. Any " - "other family keeps Housing Benefit only while it continues an " - "existing award (reported Housing Benefit) and does not claim " - "Universal Credit. Working-age awards ended on 1 July 2026 in Great " + "can make a new claim; Universal Credit is not available to it. " + "in_specified_or_temporary_accommodation also opens the new-claim " + "route at any age, including alongside Universal Credit, and " + "preserves existing awards. Other families keep Housing Benefit " + "only while they continue an " + "existing award (reported Housing Benefit) and do not claim " + "Universal Credit. Unprotected working-age awards ended on 1 July 2026 in Great " "Britain and 1 October 2026 in Northern Ireland, so from then only " - "families with a member over State Pension age continue one. Claims " - "for specified or temporary accommodation are not modelled." + "families with a member over State Pension age or the accommodation " + "input continue one. Other unmodelled statutory savings are listed " + "in housing_benefit_payable_share's documentation. Rental, capital " + "and take-up rules still apply; accommodation-specific eligible rent " + "and benefit-cap rules are not modelled." ) definition_period = YEAR reference = ( @@ -30,15 +36,13 @@ class housing_benefit_eligible(Variable): def formula(benunit, period, parameters): person = benunit.members sp_age = person("is_SP_age", period) - # New claims are barred except where the claimant, and any partner, + # Apart from the accommodation exception, new claims are barred + # except where the claimant, and any partner, # has reached the qualifying age for State Pension Credit - # (SI 2014/1230 reg 6A(4); NI: SR 2016/226 reg 4A(4)). Every adult in - # the benefit unit stands in for the claimant and partner, as in - # is_uc_eligible and is_pension_credit_eligible, so a pensioner with - # an 18 or 19 year old dependant is routed to Universal Credit. - # Because is_uc_eligible needs a working-age adult, no family on this - # route receives Universal Credit; change the three together. - adult = person("is_adult", period) + # (SI 2014/1230 reg 6A(4); NI: SR 2016/226 reg 4A(4)). The current HB + # approximation counts members aged 18 or over, so an 18 or 19 year + # old dependant prevents this pension-age route. + adult = person("age", period) >= 18 adult_count = benunit.sum(adult) pension_age = (adult_count > 0) & (benunit.sum(adult & sp_age) == adult_count) # Working-age and mixed-age families (since 15 May 2019) claim @@ -55,6 +59,12 @@ def formula(benunit, period, parameters): claiming_uc = benunit("would_claim_uc", period) still_payable = benunit("housing_benefit_payable_share", period) > 0 continuing_award = already_claiming & ~claiming_uc & still_payable + # Reg 6A(2) permits new accommodation claims irrespective of UC; + # reg 8(3) preserves accommodation HB when UC is claimed. + # NI equivalents: SR 2016/226 regs 4A(2) and 6(3). + protected_accommodation = benunit( + "in_specified_or_temporary_accommodation", period + ) social = benunit.any(person("in_social_housing", period)) lha_eligible = benunit("LHA_eligible", period) any_over_SP_age = benunit.any(sp_age) @@ -66,7 +76,7 @@ def formula(benunit, period, parameters): hb_capital.working_age.limit, ) return ( - (pension_age | continuing_award) + (pension_age | continuing_award | protected_accommodation) & (social | lha_eligible) & (capital <= limit) ) diff --git a/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_payable_share.py b/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_payable_share.py index 1da4a97ff1..3e47058165 100644 --- a/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_payable_share.py +++ b/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_payable_share.py @@ -7,12 +7,26 @@ class housing_benefit_payable_share(Variable): label = "Share of the year Housing Benefit is payable" documentation = ( "Share of the year for which this family's Housing Benefit award stays " - "payable. Working-age awards outside specified and temporary " + "payable. Unprotected working-age awards outside specified and temporary " "accommodation were abolished from 1 July 2026 in Great Britain and " "1 October 2026 in Northern Ireland, so for a family with no member " "over State Pension age this is the share of the year before that " - "date. Families with a member over State Pension age keep their award " - "(the pension-age and mixed-age savings), so theirs is 1." + "date, unless in_specified_or_temporary_accommodation is True. " + "That input preserves a share of 1 in every year. Families with a " + "member over State Pension age also have a share of 1 (the model's " + "pension-age and protected mixed-age approximation). Other saved " + "working-age awards are not modelled: qualifying HB claims during the " + "final UC assessment period on reaching pension-credit age, with " + "entitlement from reaching that age and the relevant Decisions and " + "Appeals Schedule 1 paragraph 26 applying (reg 6A(3); NI reg 4A(3)); " + "income-related " + "ESA entitlement immediately before abolition with an appointee then, " + "or a determination in the preceding six months that one was likely " + "needed (art 7(4)(b) and 3A(2)); and the delayed termination for " + "claimants excluded from UC immediately before abolition under UC " + "reg 19(1)(b) or (c), until the day after the last day of that " + "exclusion (art 7(2)). These need award history, decisions or dates " + "which no inputs supply." ) definition_period = YEAR unit = "/1" @@ -39,7 +53,11 @@ def formula(benunit, period, parameters): # mixed-age couple is saved only if the older member claims under the # pension-age regulations and the couple has been entitled since # 14 May 2019, which the data cannot show. Specified and temporary - # accommodation (reg 6A(2)), prisoners (art. 7(2)) and the income- - # related ESA appointee saving (art. 7(4)(b)) have no inputs. + # accommodation is supplied explicitly under reg 6A(2) (NI reg 4A(2)). + # The other savings described in the variable documentation have no + # inputs for their history and date conditions. any_over_SP_age = benunit.any(benunit.members("is_SP_age", period)) - return where(any_over_SP_age, 1, working_age_share) + protected_accommodation = benunit( + "in_specified_or_temporary_accommodation", period + ) + return where(any_over_SP_age | protected_accommodation, 1, working_age_share) diff --git a/policyengine_uk/variables/gov/dwp/housing_benefit/in_specified_or_temporary_accommodation.py b/policyengine_uk/variables/gov/dwp/housing_benefit/in_specified_or_temporary_accommodation.py new file mode 100644 index 0000000000..ba5d006b60 --- /dev/null +++ b/policyengine_uk/variables/gov/dwp/housing_benefit/in_specified_or_temporary_accommodation.py @@ -0,0 +1,33 @@ +from policyengine_uk.model_api import * + + +class in_specified_or_temporary_accommodation(Variable): + value_type = bool + entity = BenUnit + label = "In specified or temporary accommodation for Housing Benefit" + documentation = ( + "Whether this family's housing falls within the statutory specified " + "or temporary accommodation definitions for Housing Benefit. GB " + "Universal Credit (Transitional Provisions) Regulations 2014 reg " + "6A(2), with the definitions in reg 2, refers to Universal Credit " + "Regulations 2013 Schedule 1 paragraphs 3A(2)-(5) and 3B. The NI " + "equivalents are Transitional Provisions Regulations 2016 regs 2 " + "and 4A(2), and Universal Credit Regulations 2016 Schedule 1 " + "paragraphs 4(2)-(5) and 4A. This is a supplied status, not inferred " + "from tenure or a generic supported-housing label. It protects " + "working-age awards from abolition and permits new Housing Benefit " + "claims, subject to the model's other entitlement and take-up rules. " + "It defaults to False when absent from household or dataset inputs." + ) + definition_period = YEAR + default_value = False + reference = ( + "https://www.legislation.gov.uk/uksi/2014/1230/regulation/6A/2", + "https://www.legislation.gov.uk/uksi/2014/1230/regulation/2", + "https://www.legislation.gov.uk/uksi/2013/376/schedule/1/paragraph/3A", + "https://www.legislation.gov.uk/uksi/2013/376/schedule/1/paragraph/3B", + "https://www.legislation.gov.uk/nisr/2016/226/regulation/4A/2", + "https://www.legislation.gov.uk/nisr/2016/226/regulation/2", + "https://www.legislation.gov.uk/nisr/2016/216/schedule/1/paragraph/4", + "https://www.legislation.gov.uk/nisr/2016/216/schedule/1/paragraph/4A", + ) diff --git a/policyengine_uk/variables/gov/dwp/universal_credit/housing_costs_element/uc_housing_costs_element.py b/policyengine_uk/variables/gov/dwp/universal_credit/housing_costs_element/uc_housing_costs_element.py index ac1fbaf119..e37b995a04 100644 --- a/policyengine_uk/variables/gov/dwp/universal_credit/housing_costs_element/uc_housing_costs_element.py +++ b/policyengine_uk/variables/gov/dwp/universal_credit/housing_costs_element/uc_housing_costs_element.py @@ -7,6 +7,16 @@ class uc_housing_costs_element(Variable): label = "Universal Credit housing costs element" definition_period = YEAR unit = GBP + documentation = ( + "Universal Credit support for rent, excluding payments for specified " + "or temporary accommodation when " + "in_specified_or_temporary_accommodation is supplied as True. " + "Those payments can instead be covered by Housing Benefit." + ) + reference = ( + "https://www.legislation.gov.uk/uksi/2013/376/schedule/1/paragraph/3", + "https://www.legislation.gov.uk/nisr/2016/216/schedule/1/paragraph/3", + ) def formula(benunit, period, parameters): tenure_type = benunit.value_from_first_person( @@ -28,4 +38,11 @@ def formula(benunit, period, parameters): default=0, ) non_dependent_deductions = benunit("uc_non_dep_deductions", period) - return max_(max_housing_costs - non_dependent_deductions, 0) + protected_accommodation = benunit( + "in_specified_or_temporary_accommodation", period + ) + return where( + protected_accommodation, + 0, + max_(max_housing_costs - non_dependent_deductions, 0), + ) From 450bc6e3faba351b8bc5725a8866347288305f94 Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Sat, 3 Oct 2026 17:25:07 -0400 Subject: [PATCH 06/40] Claim Universal Credit when working-age Housing Benefit is abolished Working-age Housing Benefit awards end on 1 July 2026 (NI 1 October 2026). The abolition now prompts the same claim as a legacy benefit closure (claims_uc_at_legacy_closure), at the rate datasets supply in would_claim_uc_at_legacy_closure (PolicyEngine/policyengine-uk-data#492). - A family that claims is on Universal Credit for the whole year of the abolition and loses its Housing Benefit continuing award; its claim also ends income-related ESA, Income Support and income-based JSA. - A family that does not claim keeps its award for the part of the year before abolition (housing_benefit_payable_share) and its other legacy awards; unlike a migration notice the abolition ends no other award. - Tests: the abolition cases about a continuing award now say the family does not claim at the abolition; new cases cover a claiming family in 2026 and 2027. Co-Authored-By: Claude Opus 5.5 --- .../housing_benefit_earnings_disregards.yaml | 3 ++ ...housing_benefit_working_age_abolition.yaml | 17 +++++++ .../claims_universal_credit.yaml | 48 ++++++++++++++++++- .../variables/gov/dwp/esa_income_eligible.py | 4 +- .../variables/gov/dwp/income_support.py | 4 +- .../variables/gov/dwp/jsa_income_eligible.py | 4 +- .../claims_uc_at_legacy_closure.py | 22 +++++++-- 7 files changed, 93 insertions(+), 9 deletions(-) diff --git a/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_earnings_disregards.yaml b/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_earnings_disregards.yaml index 9c7887b289..87a6f464dd 100644 --- a/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_earnings_disregards.yaml +++ b/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_earnings_disregards.yaml @@ -84,6 +84,9 @@ benunit: members: [person] would_claim_uc: false + # Does not claim Universal Credit when the award is abolished, so the + # award continues until then. + would_claim_uc_at_legacy_closure: false # Working age, so no Pension Credit; set so that no form of the # Guarantee Credit passport can apply. guarantee_credit: 0 diff --git a/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_working_age_abolition.yaml b/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_working_age_abolition.yaml index 20d4c50240..25066e91bd 100644 --- a/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_working_age_abolition.yaml +++ b/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_working_age_abolition.yaml @@ -23,6 +23,7 @@ benunit: members: [claimant] would_claim_uc: false + would_claim_uc_at_legacy_closure: false housing_benefit_applicable_income: 0 households: household: @@ -47,6 +48,7 @@ benunit: members: [claimant] would_claim_uc: false + would_claim_uc_at_legacy_closure: false housing_benefit_applicable_income: 0 households: household: @@ -75,6 +77,7 @@ members: [claimant] in_specified_or_temporary_accommodation: false would_claim_uc: false + would_claim_uc_at_legacy_closure: false housing_benefit_applicable_income: 0 households: household: @@ -100,6 +103,7 @@ benunit: members: [claimant] would_claim_uc: false + would_claim_uc_at_legacy_closure: false housing_benefit_applicable_income: 0 households: household: @@ -123,6 +127,7 @@ benunit: members: [claimant] would_claim_uc: false + would_claim_uc_at_legacy_closure: false housing_benefit_applicable_income: 0 households: household: @@ -146,6 +151,7 @@ benunit: members: [claimant] would_claim_uc: false + would_claim_uc_at_legacy_closure: false housing_benefit_applicable_income: 0 households: household: @@ -173,6 +179,7 @@ members: [claimant] in_specified_or_temporary_accommodation: false would_claim_uc: false + would_claim_uc_at_legacy_closure: false housing_benefit_applicable_income: 0 households: household: @@ -199,6 +206,7 @@ benunit: members: [claimant, partner] would_claim_uc: false + would_claim_uc_at_legacy_closure: false housing_benefit_applicable_income: 0 households: household: @@ -225,6 +233,7 @@ benunit: members: [older, younger] would_claim_uc: false + would_claim_uc_at_legacy_closure: false housing_benefit_applicable_income: 0 households: household: @@ -253,6 +262,7 @@ benunit: members: [claimant, dependant] would_claim_uc: false + would_claim_uc_at_legacy_closure: false housing_benefit_applicable_income: 0 households: household: @@ -323,6 +333,7 @@ members: [claimant] in_specified_or_temporary_accommodation: true would_claim_uc: false + would_claim_uc_at_legacy_closure: false housing_benefit_applicable_income: 0 households: household: @@ -349,6 +360,7 @@ members: [claimant] in_specified_or_temporary_accommodation: true would_claim_uc: false + would_claim_uc_at_legacy_closure: false housing_benefit_applicable_income: 0 households: household: @@ -375,6 +387,7 @@ in_specified_or_temporary_accommodation: true claims_all_entitled_benefits: true would_claim_uc: false + would_claim_uc_at_legacy_closure: false housing_benefit_applicable_income: 0 households: household: @@ -401,6 +414,7 @@ in_specified_or_temporary_accommodation: true claims_all_entitled_benefits: true would_claim_uc: false + would_claim_uc_at_legacy_closure: false housing_benefit_applicable_income: 0 households: household: @@ -427,6 +441,7 @@ in_specified_or_temporary_accommodation: false claims_all_entitled_benefits: true would_claim_uc: false + would_claim_uc_at_legacy_closure: false housing_benefit_applicable_income: 0 households: household: @@ -452,6 +467,7 @@ in_specified_or_temporary_accommodation: false claims_all_entitled_benefits: true would_claim_uc: false + would_claim_uc_at_legacy_closure: false housing_benefit_applicable_income: 0 households: household: @@ -477,6 +493,7 @@ in_specified_or_temporary_accommodation: true claims_all_entitled_benefits: true would_claim_uc: false + would_claim_uc_at_legacy_closure: false housing_benefit_applicable_income: 0 households: household: diff --git a/policyengine_uk/tests/policy/baseline/finance/benefit/family/universal_credit/claims_universal_credit.yaml b/policyengine_uk/tests/policy/baseline/finance/benefit/family/universal_credit/claims_universal_credit.yaml index f676b11370..a91eb38c44 100644 --- a/policyengine_uk/tests/policy/baseline/finance/benefit/family/universal_credit/claims_universal_credit.yaml +++ b/policyengine_uk/tests/policy/baseline/finance/benefit/family/universal_credit/claims_universal_credit.yaml @@ -81,7 +81,7 @@ housing_benefit: 0 universal_credit: 0 -- name: Housing Benefit alone has not closed, so a Housing Benefit family keeps its award +- name: A Housing Benefit family claims Universal Credit when working-age awards are abolished period: 2027 input: people: @@ -99,8 +99,54 @@ tenure_type: RENT_FROM_COUNCIL output: legacy_benefits_closed: false + claims_uc_at_legacy_closure: true + claims_universal_credit: true + housing_benefit_eligible: false + +- name: In the abolition year a claiming family gets Universal Credit for the year and no Housing Benefit + period: 2026 + input: + people: + adult: + age: 40 + housing_benefit_reported: 4_000 + esa_income_reported: 5_000 + benunits: + benunit: + members: [adult] + would_claim_uc: false + would_claim_uc_at_legacy_closure: true + households: + household: + members: [adult] + tenure_type: RENT_FROM_COUNCIL + output: + claims_universal_credit: true + housing_benefit: 0 + # The claim brings the abolition of income-related ESA into force. + esa_income: 0 + +- name: In the abolition year a family that does not claim keeps its Housing Benefit and income-related ESA + period: 2026 + input: + people: + adult: + age: 40 + housing_benefit_reported: 4_000 + esa_income_reported: 5_000 + benunits: + benunit: + members: [adult] + would_claim_uc: false + would_claim_uc_at_legacy_closure: false + households: + household: + members: [adult] + tenure_type: RENT_FROM_COUNCIL + output: claims_universal_credit: false housing_benefit_eligible: true + esa_income_eligible: true universal_credit: 0 - name: Income-related ESA continues before tax credits close diff --git a/policyengine_uk/variables/gov/dwp/esa_income_eligible.py b/policyengine_uk/variables/gov/dwp/esa_income_eligible.py index 299c81c1e5..e4b7c3b5f3 100644 --- a/policyengine_uk/variables/gov/dwp/esa_income_eligible.py +++ b/policyengine_uk/variables/gov/dwp/esa_income_eligible.py @@ -21,5 +21,7 @@ def formula(benunit, period, parameters): # 2012 s. 33(1)) into force for the claimant (see SI 2025/1148 # art. 3A(3)), and a family that does not claim loses the award at the # notice's deadline (SI 2014/1230 reg 46(1)(a)). - closed = benunit("legacy_benefits_closed", period) + closed = benunit("legacy_benefits_closed", period) | benunit( + "claims_uc_at_legacy_closure", period + ) return reported_award & ~closed & (capital <= ESA.capital.limit) diff --git a/policyengine_uk/variables/gov/dwp/income_support.py b/policyengine_uk/variables/gov/dwp/income_support.py index 1f9cd8ec94..79108824f9 100644 --- a/policyengine_uk/variables/gov/dwp/income_support.py +++ b/policyengine_uk/variables/gov/dwp/income_support.py @@ -15,5 +15,7 @@ def formula(benunit, period, parameters): # Once one of the family's legacy benefits has closed, DWP's # migration notice ends this award too: on a Universal Credit claim # (SI 2014/1230 reg 8(2A)) or at the notice's deadline (reg 46(1)(a)). - closed = benunit("legacy_benefits_closed", period) + closed = benunit("legacy_benefits_closed", period) | benunit( + "claims_uc_at_legacy_closure", period + ) return where(closed, 0, benunit("income_support_entitlement", period)) diff --git a/policyengine_uk/variables/gov/dwp/jsa_income_eligible.py b/policyengine_uk/variables/gov/dwp/jsa_income_eligible.py index 2a2e383e17..b7e6384c41 100644 --- a/policyengine_uk/variables/gov/dwp/jsa_income_eligible.py +++ b/policyengine_uk/variables/gov/dwp/jsa_income_eligible.py @@ -21,5 +21,7 @@ def formula(benunit, period, parameters): # 2012 s. 33(1)) into force for the claimant (see SI 2025/1148 # art. 3A(3)), and a family that does not claim loses the award at the # notice's deadline (SI 2014/1230 reg 46(1)(a)). - closed = benunit("legacy_benefits_closed", period) + closed = benunit("legacy_benefits_closed", period) | benunit( + "claims_uc_at_legacy_closure", period + ) return reported_award & ~closed & (capital <= JSA.capital.limit) diff --git a/policyengine_uk/variables/gov/dwp/universal_credit/claims_uc_at_legacy_closure.py b/policyengine_uk/variables/gov/dwp/universal_credit/claims_uc_at_legacy_closure.py index 2ee3f940cb..5f7352b818 100644 --- a/policyengine_uk/variables/gov/dwp/universal_credit/claims_uc_at_legacy_closure.py +++ b/policyengine_uk/variables/gov/dwp/universal_credit/claims_uc_at_legacy_closure.py @@ -7,13 +7,25 @@ class claims_uc_at_legacy_closure(Variable): label = "Claims Universal Credit when its legacy benefits close" documentation = ( "Whether this family claims Universal Credit because DWP moved it off " - "its legacy benefits (legacy_benefits_closed) and it would claim then " + "its legacy benefits (legacy_benefits_closed) or its working-age " + "Housing Benefit award was abolished, and it would claim then " "(would_claim_uc_at_legacy_closure)." ) definition_period = YEAR - reference = "https://www.legislation.gov.uk/uksi/2014/1230/regulation/44" + reference = ( + "https://www.legislation.gov.uk/uksi/2014/1230/regulation/44", + "https://www.legislation.gov.uk/uksi/2025/1148/article/7", + "https://www.legislation.gov.uk/nisr/2025/176/article/7", + ) def formula(benunit, period, parameters): - return benunit("legacy_benefits_closed", period) & benunit( - "would_claim_uc_at_legacy_closure", period - ) + # The working-age Housing Benefit abolition (SI 2025/1148 art. 7; NI: + # SR 2025/176 art. 7) also prompts a claim. Unlike a migration notice + # it ends no other award for a family that does not claim, which keeps + # its Housing Benefit for the part of the year before abolition + # (housing_benefit_payable_share). + housing_benefit_abolished = ( + add(benunit, period, ["housing_benefit_reported"]) > 0 + ) & (benunit("housing_benefit_payable_share", period) < 1) + closed = benunit("legacy_benefits_closed", period) | housing_benefit_abolished + return closed & benunit("would_claim_uc_at_legacy_closure", period) From 658715f36bb9920f875ec089095c51b0da49498f Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Sat, 3 Oct 2026 18:27:35 -0400 Subject: [PATCH 07/40] End IS, ESA and JSA on an abolition claim only for new claimants; test the abolition claim Co-Authored-By: Claude Opus 5.5 --- ..._housing_benefit_pension_age_properties.py | 4 ++ ...enefit_working_age_abolition_properties.py | 39 +++++++++++++++++++ .../variables/gov/dwp/esa_income_eligible.py | 8 +++- .../variables/gov/dwp/income_support.py | 8 +++- .../variables/gov/dwp/jsa_income_eligible.py | 8 +++- 5 files changed, 61 insertions(+), 6 deletions(-) diff --git a/policyengine_uk/tests/test_housing_benefit_pension_age_properties.py b/policyengine_uk/tests/test_housing_benefit_pension_age_properties.py index 2af438b44e..512739cd59 100644 --- a/policyengine_uk/tests/test_housing_benefit_pension_age_properties.py +++ b/policyengine_uk/tests/test_housing_benefit_pension_age_properties.py @@ -126,6 +126,10 @@ def situation(units, claims_all=None, flip_would_claim_uc=False, pension_bump=0. benunit = { "members": names, "would_claim_uc": {YEAR: unit["would_claim_uc"] ^ flip_would_claim_uc}, + # Working-age awards are abolished during 2026; these families do + # not claim Universal Credit at the abolition, so a continuing + # award runs until then. + "would_claim_uc_at_legacy_closure": {YEAR: False}, } # claims_all_entitled_benefits sums reported benefits across the whole # simulation, so set it per family whenever any family reports one. diff --git a/policyengine_uk/tests/test_housing_benefit_working_age_abolition_properties.py b/policyengine_uk/tests/test_housing_benefit_working_age_abolition_properties.py index dc61874c36..76163993ef 100644 --- a/policyengine_uk/tests/test_housing_benefit_working_age_abolition_properties.py +++ b/policyengine_uk/tests/test_housing_benefit_working_age_abolition_properties.py @@ -128,6 +128,12 @@ def annual(value): benunits[f"b{i}"] = { "members": names, "would_claim_uc": annual(unit["would_claim_uc"]), + # These properties are about the award of a family that does not + # claim Universal Credit when its award is abolished; the claim + # itself is tested in test_uc_legacy_closure_properties.py. + "would_claim_uc_at_legacy_closure": annual( + unit.get("claims_at_closure", False) + ), "in_specified_or_temporary_accommodation": annual( unit["in_specified_or_temporary_accommodation"] ), @@ -360,3 +366,36 @@ def test_omitted_accommodation_input_matches_explicit_false(units, year, claims_ np.testing.assert_array_equal( sim.calculate(variable, year), explicit[variable], err_msg=variable ) + + +@pytest.mark.parametrize("year", [2025, 2026, 2027]) +@pytest.mark.parametrize("region", ["LONDON", "NORTHERN_IRELAND"]) +@settings(PROPERTY_SETTINGS, max_examples=5) +@given(data=st.data()) +def test_a_family_claiming_at_the_abolition_moves_to_universal_credit( + year, region, data +): + # From the abolition year a working-age family that claims Universal + # Credit when its award is abolished gets no Housing Benefit and the + # Universal Credit it would get on any claim; before then nothing changes. + units = data.draw( + st.lists(working_age_continuing_awards(region), min_size=1, max_size=8) + ) + for unit in units: + unit["claims_at_closure"] = True + claiming = calculate(units, year, claims_all=False) + for unit in units: + unit["claims_at_closure"] = False + staying = calculate(units, year, claims_all=False) + for unit in units: + unit["would_claim_uc"] = True + anyway = calculate(units, year, claims_all=False) + if year < 2026: + for v in VARIABLES: + assert np.allclose(claiming[v], staying[v], atol=0.01), v + return + assert np.all(claiming["housing_benefit"] == 0) + assert np.allclose( + claiming["universal_credit"], anyway["universal_credit"], atol=0.01 + ) + assert np.all(staying["universal_credit"] == 0) diff --git a/policyengine_uk/variables/gov/dwp/esa_income_eligible.py b/policyengine_uk/variables/gov/dwp/esa_income_eligible.py index e4b7c3b5f3..e86dcc6e47 100644 --- a/policyengine_uk/variables/gov/dwp/esa_income_eligible.py +++ b/policyengine_uk/variables/gov/dwp/esa_income_eligible.py @@ -21,7 +21,11 @@ def formula(benunit, period, parameters): # 2012 s. 33(1)) into force for the claimant (see SI 2025/1148 # art. 3A(3)), and a family that does not claim loses the award at the # notice's deadline (SI 2014/1230 reg 46(1)(a)). - closed = benunit("legacy_benefits_closed", period) | benunit( - "claims_uc_at_legacy_closure", period + # A family that claims Universal Credit when its Housing Benefit is + # abolished ends this award by that claim too. A family already + # claiming Universal Credit is left to the overlap rules (#1914). + closed = benunit("legacy_benefits_closed", period) | ( + benunit("claims_uc_at_legacy_closure", period) + & ~benunit("would_claim_uc", period) ) return reported_award & ~closed & (capital <= ESA.capital.limit) diff --git a/policyengine_uk/variables/gov/dwp/income_support.py b/policyengine_uk/variables/gov/dwp/income_support.py index 79108824f9..b3d88a3397 100644 --- a/policyengine_uk/variables/gov/dwp/income_support.py +++ b/policyengine_uk/variables/gov/dwp/income_support.py @@ -15,7 +15,11 @@ def formula(benunit, period, parameters): # Once one of the family's legacy benefits has closed, DWP's # migration notice ends this award too: on a Universal Credit claim # (SI 2014/1230 reg 8(2A)) or at the notice's deadline (reg 46(1)(a)). - closed = benunit("legacy_benefits_closed", period) | benunit( - "claims_uc_at_legacy_closure", period + # A family that claims Universal Credit when its Housing Benefit is + # abolished ends this award by that claim too. A family already + # claiming Universal Credit is left to the overlap rules (#1914). + closed = benunit("legacy_benefits_closed", period) | ( + benunit("claims_uc_at_legacy_closure", period) + & ~benunit("would_claim_uc", period) ) return where(closed, 0, benunit("income_support_entitlement", period)) diff --git a/policyengine_uk/variables/gov/dwp/jsa_income_eligible.py b/policyengine_uk/variables/gov/dwp/jsa_income_eligible.py index b7e6384c41..ebcbda6926 100644 --- a/policyengine_uk/variables/gov/dwp/jsa_income_eligible.py +++ b/policyengine_uk/variables/gov/dwp/jsa_income_eligible.py @@ -21,7 +21,11 @@ def formula(benunit, period, parameters): # 2012 s. 33(1)) into force for the claimant (see SI 2025/1148 # art. 3A(3)), and a family that does not claim loses the award at the # notice's deadline (SI 2014/1230 reg 46(1)(a)). - closed = benunit("legacy_benefits_closed", period) | benunit( - "claims_uc_at_legacy_closure", period + # A family that claims Universal Credit when its Housing Benefit is + # abolished ends this award by that claim too. A family already + # claiming Universal Credit is left to the overlap rules (#1914). + closed = benunit("legacy_benefits_closed", period) | ( + benunit("claims_uc_at_legacy_closure", period) + & ~benunit("would_claim_uc", period) ) return reported_award & ~closed & (capital <= JSA.capital.limit) From c64d1421dbc58bbc966a9018f0aef407292fd418 Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Wed, 21 Oct 2026 21:38:49 -0400 Subject: [PATCH 08/40] Test that the abolition claim ends only the couple's legacy awards A family that claims Universal Credit when its working-age Housing Benefit is abolished ends the claimant's and partner's income-related ESA; an adult claiming in their own right keeps theirs (#2395), and a family that does not claim keeps both. Dropping the gate in person_legacy_benefits_closed fails it. Co-Authored-By: Claude Opus 5.5 --- ...enefit_working_age_abolition_properties.py | 62 +++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/policyengine_uk/tests/test_housing_benefit_working_age_abolition_properties.py b/policyengine_uk/tests/test_housing_benefit_working_age_abolition_properties.py index 76163993ef..60da15d5cf 100644 --- a/policyengine_uk/tests/test_housing_benefit_working_age_abolition_properties.py +++ b/policyengine_uk/tests/test_housing_benefit_working_age_abolition_properties.py @@ -399,3 +399,65 @@ def test_a_family_claiming_at_the_abolition_moves_to_universal_credit( claiming["universal_credit"], anyway["universal_credit"], atol=0.01 ) assert np.all(staying["universal_credit"] == 0) + + +@pytest.mark.parametrize("year", [2025, 2026, 2027]) +@pytest.mark.parametrize("claims", [True, False]) +def test_the_abolition_claim_ends_only_the_couples_legacy_awards(year, claims): + # A family that claims Universal Credit when its working-age Housing + # Benefit is abolished ends the claimant's and partner's income-related + # ESA by that claim. An adult claiming ESA in their own right is not part + # of that claim and keeps their award (#2395), and a family that does not + # claim keeps both. Before the abolition nothing changes. + members = { + "claimant": { + "age": 30, + "is_claimant_or_partner": True, + "housing_benefit_reported": 1, + "esa_income_reported": 5_000, + }, + "partner": {"age": 30, "is_claimant_or_partner": True}, + "outside": { + "age": 40, + "is_claimant_or_partner": False, + "current_education": "NOT_IN_EDUCATION", + "esa_income_reported": 5_000, + }, + } + situation = { + "people": { + name: {key: {year: value} for key, value in inputs.items()} + for name, inputs in members.items() + }, + "benunits": { + "unit": { + "members": list(members), + "would_claim_uc": {year: False}, + "would_claim_uc_at_legacy_closure": {year: claims}, + "esa_income_assessable_capital": {year: 0}, + } + }, + "households": { + "household": { + "members": list(members), + "region": {year: "LONDON"}, + "tenure_type": {year: "RENT_FROM_COUNCIL"}, + "rent": {year: 5_200}, + } + }, + } + sim = Simulation(situation=situation) + moved = claims and year >= 2026 + assert not sim.calculate("legacy_benefits_closed", year)[0] + assert bool(sim.calculate("claims_uc_at_legacy_closure", year)[0]) == moved + assert sim.calculate("person_legacy_benefits_closed", year).tolist() == [ + moved, + moved, + False, + ] + assert sim.calculate("claimant_or_partner_esa_income", year)[0] == ( + 0 if moved else 5_000 + ) + assert sim.calculate("is_on_income_related_esa", year).tolist()[2] + if moved: + assert sim.calculate("housing_benefit", year)[0] == 0 From 2d0e49417bfca53c2f8485900ada449a9f4ec360 Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Wed, 21 Oct 2026 23:16:33 -0400 Subject: [PATCH 09/40] Save only reg 6A(4)-(5) pension-age awards; pin main's 2026 legacy HB cases Vahid's round 3, item 3: the payable share kept every family with a member over State Pension age, including mixed-age couples without the SI 2019/37 art. 4 saving, which art. 7(4)(a) does not save. It now reads meets_pension_credit_age_conditions (reg 6A(4), and 6A(5) through the art. 4 saving). New YAML: an unsaved mixed-age couple (68 and 50) gets nothing in 2027; the saved couple's older member is 75, so born before 6 February 1954. Item 4: a capped joint HB/UC award (protected accommodation) is capped once: main's 75F specified-benefit exemption already lifts the HB cap for a UC recipient, and UC's cap counts HB as nil (reg 80(2A)); one YAML case checks it. Item 5: the documentation says the unmodelled savings end too early. Main's 2026 legacy HB cases now meet the abolition: the AFIP cap case (CI failure) and three unsaved mixed-age couples pin would_claim_uc_at_legacy_closure false and expect the 86/365 award. Co-Authored-By: Claude Opus 5.5 --- ...olish-working-age-housing-benefit.fixed.md | 2 +- .../programs/gov/dwp/housing-benefit.ipynb | 2 +- policyengine_uk/programs.yaml | 2 +- ...nefit_income_related_benefit_passport.yaml | 11 ++- .../housing_benefit_pension_age_claims.yaml | 4 + ...housing_benefit_working_age_abolition.yaml | 77 ++++++++++++++++++- .../benefit_cap_specified_benefits.yaml | 10 ++- .../dwp/pension_credit/mixed_age_couples.yaml | 4 +- ...enefit_working_age_abolition_properties.py | 26 +++---- .../housing_benefit_eligible.py | 9 ++- .../housing_benefit_payable_share.py | 38 +++++---- 11 files changed, 138 insertions(+), 47 deletions(-) diff --git a/changelog.d/abolish-working-age-housing-benefit.fixed.md b/changelog.d/abolish-working-age-housing-benefit.fixed.md index d45d0ee235..ec9f047b23 100644 --- a/changelog.d/abolish-working-age-housing-benefit.fixed.md +++ b/changelog.d/abolish-working-age-housing-benefit.fixed.md @@ -1 +1 @@ -- Abolish working-age Housing Benefit awards outside specified and temporary accommodation from 1 July 2026 in Great Britain (SI 2025/1148 art. 7, inserted by SI 2026/409) and 1 October 2026 in Northern Ireland (SR 2025/176 art. 7, inserted by SR 2026/115). The new `gov.dwp.housing_benefit.working_age_awards_payable` parameter is day-weighted across each fiscal year, so 2026-27 pays a working-age continuing award for 86/365 of the year in Great Britain and 178/365 in Northern Ireland, and from 2027-28 there is none. Families with a member over State Pension age keep their awards (the pension-age and mixed-age savings). +- Abolish working-age Housing Benefit awards outside specified and temporary accommodation from 1 July 2026 in Great Britain (SI 2025/1148 art. 7, inserted by SI 2026/409) and 1 October 2026 in Northern Ireland (SR 2025/176 art. 7, inserted by SR 2026/115). The new `gov.dwp.housing_benefit.working_age_awards_payable` parameter is day-weighted across each fiscal year, so 2026-27 pays a working-age continuing award for 86/365 of the year in Great Britain and 178/365 in Northern Ireland, and from 2027-28 there is none. Families meeting the Pension Credit age conditions keep their awards: a single claimant or both members of a couple over the qualifying age, and mixed-age couples with the SI 2019/37 art. 4 saving (SI 2014/1230 reg 6A(4)-(5)). A family whose award is abolished claims Universal Credit if `would_claim_uc_at_legacy_closure` is true, which ends the claimant's and partner's income-related ESA. diff --git a/docs/book/programs/gov/dwp/housing-benefit.ipynb b/docs/book/programs/gov/dwp/housing-benefit.ipynb index b7b0d283cb..f19a9c5f67 100644 --- a/docs/book/programs/gov/dwp/housing-benefit.ipynb +++ b/docs/book/programs/gov/dwp/housing-benefit.ipynb @@ -39,7 +39,7 @@ "\n", "In a `Simulation` reform dictionary, a bare-year key such as `2026` covers the entire fiscal year and can set its share to 1, and a date range applies over its stated dates. A key dated inside the year, such as `2026-07-01`, leaves that model year's share unchanged (86/365 for Great Britain in 2026), so use whole-year values or a range for annual reform scenarios.\n", "\n", - "`housing_benefit_payable_share` applies this per benunit. It is 1 when `in_specified_or_temporary_accommodation` is `True`, in every model year. It is also 1 for any benunit with a member over State Pension age, which stands in for the pension-age and protected mixed-age savings. In law a mixed-age couple is saved only if the older member claims under the pension-age rules and the couple's 2019 saving remains effective ([SI 2019/37 art. 4](https://www.legislation.gov.uk/uksi/2019/37/article/4)), which the data cannot show. For other benunits it is the share for their country. A working-age continuing award stays eligible while the share is above 0, and `housing_benefit_pre_benefit_cap` pays the entitlement times the share. An unprotected working-age continuing award in 2026 is therefore paid for the part of the year before the abolition, and there is none from 2027.\n", + "`housing_benefit_payable_share` applies this per benunit. It is 1 when `in_specified_or_temporary_accommodation` is `True`, in every model year. It is also 1 for a benunit meeting the Pension Credit age conditions (`meets_pension_credit_age_conditions`): a single claimant, or both members of a couple, over the qualifying age (reg 6A(4)), or a mixed-age couple with the 2019 saving ([SI 2019/37 art. 4](https://www.legislation.gov.uk/uksi/2019/37/article/4); reg 6A(5)), which the model infers from current receipt. A mixed-age couple without the saving loses its award like a working-age family. For other benunits it is the share for their country. A working-age continuing award stays eligible while the share is above 0, and `housing_benefit_pre_benefit_cap` pays the entitlement times the share. An unprotected working-age continuing award in 2026 is therefore paid for the part of the year before the abolition, and there is none from 2027.\n", "\n", "What happens to the families whose awards end is set by `would_claim_uc`, the Universal Credit take-up input. Families without the accommodation input that claim Universal Credit already receive it instead of Housing Benefit in every year. Families that do not claim it lose Housing Benefit and receive no Universal Credit. The Enhanced FRS take-up draw does not look at legacy receipt, so it leaves too many former claimants with neither. DWP's Move to Universal Credit statistics show that 97% of households sent a migration notice while on Housing Benefit and another legacy benefit claimed Universal Credit (98% of those also on Employment and Support Allowance), and 75% of Housing Benefit-only households did. Transitional protection, which went only to households that claimed after a migration notice, is not modelled.\n", "\n", diff --git a/policyengine_uk/programs.yaml b/policyengine_uk/programs.yaml index 9d6f93addb..743a097fb5 100644 --- a/policyengine_uk/programs.yaml +++ b/policyengine_uk/programs.yaml @@ -229,7 +229,7 @@ programs: variable: housing_benefit parameter_prefix: gov.dwp.housing_benefit verified_start_year: 2022 - notes: Legacy benefit replaced by Universal Credit. Working-age abolition applies from 1 July 2026 (GB) and 1 October 2026 (NI). An explicit specified-or-temporary-accommodation input preserves payable awards and new claims alongside UC without UC rent support; datasets do not supply it. Pension-age and protected mixed-age savings are approximated. Other historical savings and accommodation-specific eligible-rent and benefit-cap rules are not modelled. + notes: Legacy benefit replaced by Universal Credit. Working-age abolition applies from 1 July 2026 (GB) and 1 October 2026 (NI). An explicit specified-or-temporary-accommodation input preserves payable awards and new claims alongside UC without UC rent support; datasets do not supply it. The protected mixed-age saving is inferred from current receipt. Other historical savings and accommodation-specific eligible-rent and benefit-cap rules are not modelled. - id: income_support name: Income Support diff --git a/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_income_related_benefit_passport.yaml b/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_income_related_benefit_passport.yaml index 0fee7bed44..d49a7f5c4a 100644 --- a/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_income_related_benefit_passport.yaml +++ b/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_income_related_benefit_passport.yaml @@ -165,9 +165,10 @@ # SI 2006/214 reg 5(2) disapplies the pension-age ones), so Sch 5 para 4 and # Sch 6 para 5 disregard the State Pension and the savings. Guarantee Credit # is set to nil to show the result does not come from the Pension Credit - # passport. Members over State Pension age keep the award all year. The - # private pension would otherwise take the couple's income above their - # applicable amount. + # passport. The private pension would otherwise take the couple's income + # above their applicable amount. The couple has no SI 2019/37 art. 4 + # saving, so its working-age award ends on 1 July 2026 (SI 2025/1148 + # art. 7); not claiming Universal Credit, it is paid for 86/365 of 2026-27. period: 2026 absolute_error_margin: 0.01 input: @@ -183,6 +184,7 @@ benunit: members: [older, younger] would_claim_uc: false + would_claim_uc_at_legacy_closure: false guarantee_credit: 0 esa_income: 6_000 households: @@ -196,7 +198,8 @@ housing_benefit_assessable_capital: 0 housing_benefit_applicable_income: 0 housing_benefit_entitlement: 6_240 - housing_benefit: 6_240 + # 6,240 x 86/365. + housing_benefit: 1_470.25 - name: Mixed-age couple with contributory ESA only is not passported period: 2026 diff --git a/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_pension_age_claims.yaml b/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_pension_age_claims.yaml index 80544aada7..b5f06ab1c9 100644 --- a/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_pension_age_claims.yaml +++ b/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_pension_age_claims.yaml @@ -190,6 +190,9 @@ is_uc_eligible: true - name: Mixed-age couple with a continuing award keeps HB and gets no UC + # Without the SI 2019/37 art. 4 saving the award ends on 1 July 2026 (SI + # 2025/1148 art. 7); a couple that does not claim Universal Credit keeps it + # until then. period: 2026 absolute_error_margin: 0.01 input: @@ -204,6 +207,7 @@ benunit: members: [older, younger] would_claim_uc: false + would_claim_uc_at_legacy_closure: false households: household: members: [older, younger] diff --git a/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_working_age_abolition.yaml b/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_working_age_abolition.yaml index 25066e91bd..c71efae5bc 100644 --- a/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_working_age_abolition.yaml +++ b/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_working_age_abolition.yaml @@ -220,12 +220,15 @@ housing_benefit: 0 - name: Protected mixed-age couple keeps its award after the abolition + # The older member, 75 in 2027-28, had reached the qualifying age by 14 May + # 2019 and reports pension-age Housing Benefit, so the couple keeps the SI + # 2019/37 art. 4 saving (reg 6A(5)). period: 2027 absolute_error_margin: 0.01 input: people: older: - age: 70 + age: 75 housing_benefit_reported: 1 younger: age: 60 @@ -246,6 +249,37 @@ housing_benefit_eligible: true housing_benefit: 5_200 +- name: Mixed-age couple without the 2019 saving loses its award after the abolition + # The older member, 68 in 2027-28, reached the qualifying age after 14 May + # 2019, so the couple has no SI 2019/37 art. 4 saving and is outside reg + # 6A(4)-(5). Not claiming Universal Credit, it gets no award from 2027-28. + period: 2027 + absolute_error_margin: 0.01 + input: + people: + older: + age: 68 + housing_benefit_reported: 1 + younger: + age: 50 + benunits: + benunit: + members: [older, younger] + would_claim_uc: false + would_claim_uc_at_legacy_closure: false + housing_benefit_applicable_income: 0 + households: + household: + members: [older, younger] + rent: 5_200 + tenure_type: RENT_FROM_COUNCIL + region: LONDON + output: + meets_pension_credit_age_conditions: false + housing_benefit_payable_share: 0 + housing_benefit_eligible: false + housing_benefit: 0 + - name: Pensioner with an 18 year old dependant keeps a continuing award after the abolition period: 2027 absolute_error_margin: 0.01 @@ -564,3 +598,44 @@ housing_benefit: 5_200 uc_housing_costs_element: 0 universal_credit: 5_000 + +- name: A capped family keeping protected Housing Benefit alongside Universal Credit is capped once + # HB Regs 2006 reg 75F(1)(g): the Housing Benefit cap does not apply to a + # claimant receiving Universal Credit. UC Regs 2013 reg 80(2A): Universal + # Credit's cap counts that Housing Benefit as nil, so its reduction is + # 57,471.94 - 30,000 - 25,323 = 2,148.94. + period: 2027 + absolute_error_margin: 0.01 + input: + people: + parent: + age: 35 + partner: + age: 35 + child1: + age: 2 + child2: + age: 4 + child3: + age: 6 + child4: + age: 8 + benunits: + benunit: + members: [parent, partner, child1, child2, child3, child4] + would_claim_uc: true + in_specified_or_temporary_accommodation: true + households: + household: + members: [parent, partner, child1, child2, child3, child4] + rent: 30_000 + tenure_type: RENT_FROM_HA + region: LONDON + output: + is_housing_benefit_benefit_cap_exempt: true + housing_benefit_benefit_cap_reduction: 0 + housing_benefit: 30_000 + uc_housing_costs_element: 0 + benefit_cap_welfare_benefits: 57_471.94 + uc_benefit_cap: 25_323 + uc_benefit_cap_reduction: 2_148.94 diff --git a/policyengine_uk/tests/policy/baseline/gov/dwp/benefit_cap/benefit_cap_specified_benefits.yaml b/policyengine_uk/tests/policy/baseline/gov/dwp/benefit_cap/benefit_cap_specified_benefits.yaml index 082ac4d353..f0fcc73962 100644 --- a/policyengine_uk/tests/policy/baseline/gov/dwp/benefit_cap/benefit_cap_specified_benefits.yaml +++ b/policyengine_uk/tests/policy/baseline/gov/dwp/benefit_cap/benefit_cap_specified_benefits.yaml @@ -1154,7 +1154,9 @@ # or a young person for whom the claimant or the claimant's partner is # responsible". The same family on legacy Housing Benefit (an existing # award, no Universal Credit claim) is outside the cap, so its Housing - # Benefit is paid in full. + # Benefit is paid in full. Working-age awards end on 1 July 2026 (SI + # 2025/1148 art. 7); a family that does not claim Universal Credit then is + # paid for 86/365 of 2026-27. period: 2026 input: people: @@ -1173,6 +1175,7 @@ benunit: members: [parent, young_person, child1, child2] would_claim_uc: false + would_claim_uc_at_legacy_closure: false households: household: members: [parent, young_person, child1, child2] @@ -1184,8 +1187,9 @@ is_housing_benefit_benefit_cap_exempt_specified_benefit: true is_housing_benefit_benefit_cap_exempt: true housing_benefit_benefit_cap_reduction: 0 - housing_benefit_pre_benefit_cap: 30_000 - housing_benefit: 30_000 + # 30,000 x 86/365. + housing_benefit_pre_benefit_cap: 7_068.49 + housing_benefit: 7_068.49 absolute_error_margin: 1 - name: A 16-year-old out of education with armed forces independence payment does not lift the cap diff --git a/policyengine_uk/tests/policy/baseline/gov/dwp/pension_credit/mixed_age_couples.yaml b/policyengine_uk/tests/policy/baseline/gov/dwp/pension_credit/mixed_age_couples.yaml index 83e9f1ca82..a827b3d4d8 100644 --- a/policyengine_uk/tests/policy/baseline/gov/dwp/pension_credit/mixed_age_couples.yaml +++ b/policyengine_uk/tests/policy/baseline/gov/dwp/pension_credit/mixed_age_couples.yaml @@ -105,6 +105,7 @@ benunit: members: [older, younger] would_claim_uc: false + would_claim_uc_at_legacy_closure: false households: household: members: [older, younger] @@ -114,7 +115,8 @@ has_mixed_age_couple_pension_credit_saving: false is_pension_credit_eligible: false pension_credit: 0 - # continuing award route (TP reg 8(2A)), unchanged from main + # continuing award route (TP reg 8(2A)), until the working-age abolition + # on 1 July 2026 for a couple that does not claim Universal Credit housing_benefit_eligible: true - name: A UC award ends the saving (art. 4(2)) diff --git a/policyengine_uk/tests/test_housing_benefit_working_age_abolition_properties.py b/policyengine_uk/tests/test_housing_benefit_working_age_abolition_properties.py index 60da15d5cf..a9aed3348f 100644 --- a/policyengine_uk/tests/test_housing_benefit_working_age_abolition_properties.py +++ b/policyengine_uk/tests/test_housing_benefit_working_age_abolition_properties.py @@ -13,18 +13,16 @@ share of 6 April to 5 April falling before the statutory date, counted independently here from the two dates (1 before 2026-27, 0 after). 2. Bounds: 0 <= housing_benefit_payable_share <= 1, and it is 1 for every - family with a member over State Pension age or the protected-accommodation - input, in every model year. -3. Abolition: from 2027 no family without a member over State Pension age or - the protected-accommodation input receives Housing Benefit, in any country - or claim mode. + family meeting the Pension Credit age conditions (reg 6A(4)-(5)) or with + the protected-accommodation input, in every model year. +3. Abolition: from 2027 no other family receives Housing Benefit, in any + country or claim mode. 4. Differential against the pre-abolition rule: with working-age awards kept payable by a reform, Housing Benefit is what the continuing-award rule paid before. Under current law, Housing Benefit before the benefit cap is - exactly that amount times the country's payable share for a family with no - member over State Pension age or protected-accommodation input, and exactly - the same amount for every other family (the cap applies afterwards, so the - final amount is compared by 5). + exactly that amount times the country's payable share for a family outside + those savings, and exactly the same amount for every other family (the cap + applies afterwards, so the final amount is compared by 5). Mixed populations rarely hold a 2026 working-age continuing award, so a targeted test builds only those, for each year and jurisdiction. 5. Monotonic: the abolition never raises anyone's Housing Benefit and never @@ -152,6 +150,7 @@ def annual(value): VARIABLES = [ + "meets_pension_credit_age_conditions", "housing_benefit", "housing_benefit_pre_benefit_cap", "housing_benefit_eligible", @@ -167,10 +166,6 @@ def calculate(units, year, claims_all, reform=None): return {v: np.asarray(sim.calculate(v, year)) for v in VARIABLES} -def any_over_pension_age(unit): - return any(age >= 68 for _, age in unit["members"]) - - def jurisdiction(unit): return ( "northern_ireland" if unit["region"] == "NORTHERN_IRELAND" else "great_britain" @@ -262,8 +257,11 @@ def test_abolition_matches_the_pre_abolition_rule_scaled_by_the_payable_share( assert np.all(kept["housing_benefit_payable_share"] == 1) pre_cap = "housing_benefit_pre_benefit_cap" for i, unit in enumerate(units): + # Reg 6A(4)-(5) save a family meeting the Pension Credit age + # conditions, including a mixed-age couple with the SI 2019/37 + # art. 4 saving; reg 6A(2) saves the accommodation input. if ( - any_over_pension_age(unit) + current["meets_pension_credit_age_conditions"][i] or unit["in_specified_or_temporary_accommodation"] ): assert share[i] == 1, unit diff --git a/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_eligible.py b/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_eligible.py index 04367e57db..a9ba4bb3f5 100644 --- a/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_eligible.py +++ b/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_eligible.py @@ -18,8 +18,9 @@ class housing_benefit_eligible(Variable): "Benefit), do not claim Universal Credit and have not been moved off " "a closed legacy benefit (legacy_benefits_closed). Unprotected working-age " "awards ended on 1 July 2026 in Great Britain and 1 October 2026 in " - "Northern Ireland, so from then only families with a member over State " - "Pension age or the accommodation input continue one. Other unmodelled " + "Northern Ireland, so from then only families meeting the Pension " + "Credit age conditions or with the accommodation input continue one. " + "Other unmodelled " "statutory savings are listed in housing_benefit_payable_share's " "documentation. Rental, capital and take-up rules still apply; " "accommodation-specific eligible rent and benefit-cap rules are not " @@ -67,8 +68,8 @@ def formula(benunit, period, parameters): # rules out receiving Universal Credit. Working-age awards outside # specified or temporary accommodation were abolished from 1 July # 2026 in Great Britain (SI 2025/1148 art. 7) and 1 October 2026 in - # Northern Ireland (SR 2025/176 art. 7); a family with no member over - # State Pension age continues one only for the part of the year + # Northern Ireland (SR 2025/176 art. 7); a family outside the reg + # 6A(2)-(5) savings continues one only for the part of the year # before that date (housing_benefit_payable_share). already_claiming = add(benunit, period, ["housing_benefit_reported"]) > 0 claiming_uc = benunit("claims_universal_credit", period) diff --git a/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_payable_share.py b/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_payable_share.py index 3e47058165..d33141a7cc 100644 --- a/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_payable_share.py +++ b/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_payable_share.py @@ -9,13 +9,16 @@ class housing_benefit_payable_share(Variable): "Share of the year for which this family's Housing Benefit award stays " "payable. Unprotected working-age awards outside specified and temporary " "accommodation were abolished from 1 July 2026 in Great Britain and " - "1 October 2026 in Northern Ireland, so for a family with no member " - "over State Pension age this is the share of the year before that " + "1 October 2026 in Northern Ireland, so for a family outside the " + "pension-age savings this is the share of the year before that " "date, unless in_specified_or_temporary_accommodation is True. " - "That input preserves a share of 1 in every year. Families with a " - "member over State Pension age also have a share of 1 (the model's " - "pension-age and protected mixed-age approximation). Other saved " - "working-age awards are not modelled: qualifying HB claims during the " + "That input preserves a share of 1 in every year. A family meeting " + "the Pension Credit age conditions (meets_pension_credit_age_conditions: " + "a single claimant, or both members of a couple, over the qualifying " + "age, or a mixed-age couple with the SI 2019/37 art. 4 saving) also " + "has a share of 1; a mixed-age couple without the saving does not. " + "Other saved working-age awards are not modelled, so their awards " + "wrongly end on the abolition date: qualifying HB claims during the " "final UC assessment period on reaching pension-credit age, with " "entitlement from reaching that age and the relevant Decisions and " "Appeals Schedule 1 paragraph 26 applying (reg 6A(3); NI reg 4A(3)); " @@ -34,6 +37,7 @@ class housing_benefit_payable_share(Variable): "https://www.legislation.gov.uk/uksi/2025/1148/article/7", "https://www.legislation.gov.uk/uksi/2014/1230/regulation/6A", "https://www.legislation.gov.uk/nisr/2025/176/article/7", + "https://www.legislation.gov.uk/uksi/2019/37/article/4", ) def formula(benunit, period, parameters): @@ -47,17 +51,17 @@ def formula(benunit, period, parameters): payable.great_britain, ) # SI 2025/1148 art. 7(4)(a) saves claimants within SI 2014/1230 - # reg 6A(2)-(5). Reg 6A(4) (pension age) and 6A(5) (mixed-age couples - # saved by SI 2019/37 art. 4) are the savings the model can see: any - # member over State Pension age keeps the award running. In law a - # mixed-age couple is saved only if the older member claims under the - # pension-age regulations and the couple has been entitled since - # 14 May 2019, which the data cannot show. Specified and temporary - # accommodation is supplied explicitly under reg 6A(2) (NI reg 4A(2)). - # The other savings described in the variable documentation have no - # inputs for their history and date conditions. - any_over_SP_age = benunit.any(benunit.members("is_SP_age", period)) + # reg 6A(2)-(5) (NI: SR 2025/176 art. 7(4)(a), reg 4A(2)-(5)). + # Reg 6A(4) (a single claimant, or both members of a couple, over the + # qualifying age for State Pension Credit) and 6A(5) (a mixed-age + # couple saved by SI 2019/37 art. 4) are the Pension Credit age + # conditions; the art. 4 saving is inferred from current receipt + # (has_mixed_age_couple_pension_credit_saving). Specified and + # temporary accommodation is supplied explicitly under reg 6A(2) (NI + # reg 4A(2)). The other savings described in the variable + # documentation have no inputs for their history and date conditions. + pension_age_saving = benunit("meets_pension_credit_age_conditions", period) protected_accommodation = benunit( "in_specified_or_temporary_accommodation", period ) - return where(any_over_SP_age | protected_accommodation, 1, working_age_share) + return where(pension_age_saving | protected_accommodation, 1, working_age_share) From a55b884bd2349b4b1465d2e398336c4d0b9438eb Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Mon, 16 Nov 2026 09:33:36 -0500 Subject: [PATCH 10/40] End awards on the abolition claim through main's claim path only Vahid's round 4, item 2: reconcile this branch's award-ending edits with main's esa_income_report_closed path. On main, claims_universal_credit includes claims_uc_at_legacy_closure, and any claim ends the claimant's and partner's income-related ESA (esa_income_report_closed) and the continuing Housing Benefit award (housing_benefit_eligible). Income Support and income-based JSA stop paying from 1 April 2026 (gov.dwp.income_support.active, gov.dwp.JSA.income.active) and tax credits from 6 April 2025, before either abolition date. So the gates this branch added to income_support and person_legacy_benefits_closed (claims_uc_at_legacy_closure without would_claim_uc) ended income-related ESA a second way and ended nothing else under current law. Both files go back to main's version: the Housing Benefit abolition claim now ends the same awards as main's claim when the abolition of income-related ESA reaches an award, and leaves a family already claiming Universal Credit to the same rule. The owner-scope property test now reads esa_income_report_closed, checks that the claim is not DWP's move (person_legacy_benefits_closed stays false), and keeps income-related ESA payable by reform so that only the Housing Benefit abolition prompts the claim. Co-Authored-By: Claude Opus 5.5 --- ...enefit_working_age_abolition_properties.py | 25 +++++++++++++++---- .../variables/gov/dwp/income_support.py | 8 +----- .../person_legacy_benefits_closed.py | 20 ++------------- 3 files changed, 23 insertions(+), 30 deletions(-) diff --git a/policyengine_uk/tests/test_housing_benefit_working_age_abolition_properties.py b/policyengine_uk/tests/test_housing_benefit_working_age_abolition_properties.py index a9aed3348f..5450dda586 100644 --- a/policyengine_uk/tests/test_housing_benefit_working_age_abolition_properties.py +++ b/policyengine_uk/tests/test_housing_benefit_working_age_abolition_properties.py @@ -399,14 +399,27 @@ def test_a_family_claiming_at_the_abolition_moves_to_universal_credit( assert np.all(staying["universal_credit"] == 0) +# Keeps every income-related ESA award payable, so the only abolition that +# reaches the family in the test below is Housing Benefit's. +KEEP_ESA_INCOME_AWARDS = { + f"gov.dwp.ESA.income.awards_payable.{jurisdiction}": {"2015-01-01.2040-12-31": 1} + for jurisdiction in ABOLITION_DATES +} + + @pytest.mark.parametrize("year", [2025, 2026, 2027]) @pytest.mark.parametrize("claims", [True, False]) def test_the_abolition_claim_ends_only_the_couples_legacy_awards(year, claims): # A family that claims Universal Credit when its working-age Housing # Benefit is abolished ends the claimant's and partner's income-related - # ESA by that claim. An adult claiming ESA in their own right is not part - # of that claim and keeps their award (#2395), and a family that does not - # claim keeps both. Before the abolition nothing changes. + # ESA by that claim (esa_income_report_closed), as a claim when the + # abolition of income-related ESA reaches the award does. An adult + # claiming ESA in their own right is not part of that claim and keeps + # their award (#2395), and a family that does not claim keeps both. The + # claim is not DWP's move off legacy benefits. A reform keeps + # income-related ESA payable, so its own abolition neither prompts the + # claim nor ends the awards. Before the Housing Benefit abolition nothing + # changes. members = { "claimant": { "age": 30, @@ -444,11 +457,13 @@ def test_the_abolition_claim_ends_only_the_couples_legacy_awards(year, claims): } }, } - sim = Simulation(situation=situation) + sim = Simulation(situation=situation, reform=KEEP_ESA_INCOME_AWARDS) moved = claims and year >= 2026 assert not sim.calculate("legacy_benefits_closed", year)[0] + assert not sim.calculate("esa_income_abolition_reached", year)[0] assert bool(sim.calculate("claims_uc_at_legacy_closure", year)[0]) == moved - assert sim.calculate("person_legacy_benefits_closed", year).tolist() == [ + assert not sim.calculate("person_legacy_benefits_closed", year).any() + assert sim.calculate("esa_income_report_closed", year).tolist() == [ moved, moved, False, diff --git a/policyengine_uk/variables/gov/dwp/income_support.py b/policyengine_uk/variables/gov/dwp/income_support.py index b3d88a3397..1f9cd8ec94 100644 --- a/policyengine_uk/variables/gov/dwp/income_support.py +++ b/policyengine_uk/variables/gov/dwp/income_support.py @@ -15,11 +15,5 @@ def formula(benunit, period, parameters): # Once one of the family's legacy benefits has closed, DWP's # migration notice ends this award too: on a Universal Credit claim # (SI 2014/1230 reg 8(2A)) or at the notice's deadline (reg 46(1)(a)). - # A family that claims Universal Credit when its Housing Benefit is - # abolished ends this award by that claim too. A family already - # claiming Universal Credit is left to the overlap rules (#1914). - closed = benunit("legacy_benefits_closed", period) | ( - benunit("claims_uc_at_legacy_closure", period) - & ~benunit("would_claim_uc", period) - ) + closed = benunit("legacy_benefits_closed", period) return where(closed, 0, benunit("income_support_entitlement", period)) diff --git a/policyengine_uk/variables/gov/dwp/universal_credit/person_legacy_benefits_closed.py b/policyengine_uk/variables/gov/dwp/universal_credit/person_legacy_benefits_closed.py index 67b89b9de3..9a25d4e955 100644 --- a/policyengine_uk/variables/gov/dwp/universal_credit/person_legacy_benefits_closed.py +++ b/policyengine_uk/variables/gov/dwp/universal_credit/person_legacy_benefits_closed.py @@ -16,17 +16,12 @@ class person_legacy_benefits_closed(Variable): "their own claim's share (esa_income_payable_share). Their reports " "neither close nor shield the " "couple's award, and the couple's reports do not close theirs. No new " - "notice, deadline, run-on or legal relationship inference is made. " - "The claimant's and partner's awards also end when the family claims " - "Universal Credit because its working-age Housing Benefit was " - "abolished (claims_uc_at_legacy_closure without would_claim_uc)." + "notice, deadline, run-on or legal relationship inference is made." ) definition_period = YEAR reference = ( "https://www.legislation.gov.uk/uksi/2014/1230/regulation/44", "https://www.legislation.gov.uk/uksi/2014/1230/regulation/46", - "https://www.legislation.gov.uk/uksi/2014/1230/regulation/8", - "https://www.legislation.gov.uk/uksi/2025/1148/article/7", ) def formula(person, period, parameters): @@ -44,19 +39,8 @@ def reports(*variables): parameters(period).gov.dwp, esa_income_abolished, ) - benunit = person.benunit - # A family that claims Universal Credit when its working-age Housing - # Benefit is abolished (SI 2025/1148 art. 7) ends the claimant's and - # partner's other legacy awards by that claim, as a claim after a - # migration notice does. A family already claiming Universal Credit - # is left to the overlap rules (#1914), and a member claiming in - # their own right is not part of the family's claim. - couple_closed = benunit("legacy_benefits_closed", period) | ( - benunit("claims_uc_at_legacy_closure", period) - & ~benunit("would_claim_uc", period) - ) return where( person("is_claimant_or_partner", period), - couple_closed, + person.benunit("legacy_benefits_closed", period), own_closed, ) From 6a76cc043fd8f83e5ae26074d826d334cf6d120f Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Mon, 16 Nov 2026 10:11:25 -0500 Subject: [PATCH 11/40] Restate main's mixed-age and benefit-cap properties for the abolition year Vahid's round 4, item 1: two of main's property tests failed at 2d0e49417. test_mixed_age_couple_properties.py (P5): main has since pinned would_claim_uc_at_legacy_closure false for every drawn family, so the differential passes after the merge (both runs pay a 2026-27 continuing award for the payable share). P5 now says so, and the pin's comment names both abolitions. New P9: from 2026 a mixed-age couple's payable share is below 1 without the SI 2019/37 art. 4 saving and 1 with it, since SI 2025/1148 art. 7(4)(a) saves the couple only through reg 6A(5). A deterministic companion test takes one couple (67 and 26, reported Housing Benefit, 2026): without the saving and no claim it is paid 86/365 of its entitlement; claiming at the abolition it gets no Housing Benefit and the Universal Credit of any claim for the whole year (the model's claim convention); with the saving it keeps the whole award and makes no claim. test_benefit_cap_lha_scheme_split_properties.py: the legacy families (including the LCWRA and reg. 75D(2) floor examples) now pin would_claim_uc_at_legacy_closure false, so in 2026-27 they stay on Housing Benefit for the part of the year before 1 July 2026 instead of claiming Universal Credit at the abolition, and the examples still reach the cases they were written for. Co-Authored-By: Claude Opus 5.5 --- ...benefit_cap_lha_scheme_split_properties.py | 5 + .../tests/test_mixed_age_couple_properties.py | 97 ++++++++++++++++++- 2 files changed, 99 insertions(+), 3 deletions(-) diff --git a/policyengine_uk/tests/test_benefit_cap_lha_scheme_split_properties.py b/policyengine_uk/tests/test_benefit_cap_lha_scheme_split_properties.py index 88bca73799..c2c0d04f0b 100644 --- a/policyengine_uk/tests/test_benefit_cap_lha_scheme_split_properties.py +++ b/policyengine_uk/tests/test_benefit_cap_lha_scheme_split_properties.py @@ -596,6 +596,11 @@ def situation(population, year=PERIOD): if f["legacy"]: # A continuing Housing Benefit award (SI 2014/1230 reg. 8). people[f"claimant{i}"]["housing_benefit_reported"] = {year: 3_000.0} + # The family stays on legacy benefits when working-age Housing + # Benefit is abolished on 1 July 2026 (SI 2025/1148 art. 7), so + # in 2026-27 the award is paid for the 86/365 of the year before + # that date rather than ending on a Universal Credit claim. + benunit["would_claim_uc_at_legacy_closure"] = {year: False} households[f"h{i}"] = { "members": household_members, "rent": {year: f["rent"]}, diff --git a/policyengine_uk/tests/test_mixed_age_couple_properties.py b/policyengine_uk/tests/test_mixed_age_couple_properties.py index de8cee86b1..428be576f6 100644 --- a/policyengine_uk/tests/test_mixed_age_couple_properties.py +++ b/policyengine_uk/tests/test_mixed_age_couple_properties.py @@ -18,7 +18,13 @@ P5 Differential against the formulas before this change: units that are not mixed-age couples, and mixed-age couples without the saving from model year 2020, get the same Pension Credit, Housing Benefit, Universal - Credit and household net income. + Credit and household net income. The reference formulas read + would_claim_uc alone, so no family here claims Universal Credit when a + legacy award closes or is abolished. In model year 2026 both runs pay a + working-age continuing award, an unsaved mixed-age couple's included, + for the share of the year before the abolition of working-age Housing + Benefit (housing_benefit_payable_share), so P5 compares those part-year + awards. P6 From model year 2020, the saving never lowers Pension Credit or Housing Benefit and leaves Universal Credit at 0. P7 In model years 2018 and 2019 every mixed-age couple not reported on @@ -27,10 +33,17 @@ P8 The default saving is never set where the older member was born after 5 February 1954 (so had not reached the qualifying age by 14 May 2019), or where the couple reports Universal Credit. +P9 From model year 2026 the abolition of working-age Housing Benefit (SI + 2025/1148 art. 7) reaches a mixed-age couple's award without the saving + (payable share below 1) and not one with it (share 1): art. 7(4)(a) + saves the couple only through reg 6A(5), which needs the saving. + test_the_abolition_ends_only_an_unsaved_mixed_age_couples_award checks + one couple's awards with and without a Universal Credit claim then. """ import json +import pytest from hypothesis import HealthCheck, given, settings from hypothesis import strategies as st from policyengine_core.reforms import Reform @@ -189,8 +202,8 @@ def cases(draw): "would_claim_uc": draw(st.booleans()), "would_claim_pc": draw(st.booleans()), # The reference formulas read would_claim_uc alone, so no family - # here claims when the abolition of income-related ESA reaches - # the older member's award in 2026-27. + # here claims when the abolition of income-related ESA or of + # working-age Housing Benefit reaches its award in 2026-27. "would_claim_uc_at_legacy_closure": False, }, "household": { @@ -239,6 +252,7 @@ def get(variable): result["uc_eligible"] = bool(get("is_uc_eligible")) result["mixed"] = bool(get("is_mixed_age_couple")) result["saving"] = bool(get("has_mixed_age_couple_pension_credit_saving")) + result["payable_share"] = float(get("housing_benefit_payable_share")) return result @@ -276,6 +290,9 @@ def test_mixed_age_couple_invariants(case): assert on["pension_credit"] >= off["pension_credit"] - 0.01, context # P6 assert on["housing_benefit"] >= off["housing_benefit"] - 0.01, context assert on["universal_credit"] == 0, context + if case["year"] >= 2026: # P9 + assert off["payable_share"] < 1, context + assert on["payable_share"] == 1, context else: # P7: before the exclusion only a couple reported on UC stays on it. on_uc = case["people"]["older"]["universal_credit_reported"] > 0 @@ -288,3 +305,77 @@ def test_mixed_age_couple_invariants(case): # or before 5 February 1954 only if year - age is 1953 or earlier. assert case["year"] - older["age"] <= 1953, context assert older["universal_credit_reported"] == 0, context + + +# The share of 2026-27 before 1 July 2026 (SI 2025/1148 art. 7(3)): 6 April +# to 30 June. +GREAT_BRITAIN_SHARE_2026 = 86 / 365 + + +@pytest.mark.parametrize("saving", [False, True]) +def test_the_abolition_ends_only_an_unsaved_mixed_age_couples_award(saving): + # P9 for one couple (67 and 26) continuing a Housing Benefit award in + # 2026-27. Without the saving the abolition reaches the award: a couple + # that does not claim Universal Credit is paid for the part of the year + # before 1 July 2026, and one that claims then gets no Housing Benefit + # and the Universal Credit of any claim for the whole year, the model's + # annual claim convention. With the saving (reg 6A(5), through art. + # 7(4)(a)) the award continues for the whole year and prompts no claim. + year = 2026 + + def simulate(**benunit): + case = { + "year": year, + "shape": "mixed", + "people": { + "older": { + "age": 67, + "is_claimant_or_partner": True, + "state_pension": 9_000, + "housing_benefit_reported": 4_000, + }, + "younger": {"age": 26, "is_claimant_or_partner": True}, + }, + "benunit": { + "would_claim_uc": False, + "would_claim_pc": True, + "would_claim_uc_at_legacy_closure": False, + **benunit, + }, + "household": { + "tenure_type": "RENT_FROM_COUNCIL", + "rent": 6_240, + "savings": 0, + "region": "NORTH_WEST", + "brma": "CENTRAL_GREATER_MANCHESTER", + "council_tax": 1_500, + }, + } + simulation = Simulation(situation=situation(case)) + simulation.set_input( + "has_mixed_age_couple_pension_credit_saving", year, [saving] + ) + return lambda variable: float(simulation.calculate(variable, year)[0]) + + staying = simulate() + claiming = simulate(would_claim_uc_at_legacy_closure=True) + entitlement = staying("housing_benefit_entitlement") + assert entitlement > 0 + if saving: + for get in (staying, claiming): + assert get("housing_benefit_payable_share") == 1 + assert not get("claims_uc_at_legacy_closure") + assert close(get("housing_benefit_pre_benefit_cap"), entitlement) + assert get("universal_credit") == 0 + return + anyway = simulate(would_claim_uc=True) + assert close(staying("housing_benefit_payable_share"), GREAT_BRITAIN_SHARE_2026) + assert close( + staying("housing_benefit_pre_benefit_cap"), + entitlement * GREAT_BRITAIN_SHARE_2026, + ) + assert staying("universal_credit") == 0 + assert claiming("claims_uc_at_legacy_closure") + assert claiming("housing_benefit") == 0 + assert claiming("universal_credit") > 0 + assert close(claiming("universal_credit"), anyway("universal_credit")) From 0750b7a5f55c4d6feedfb1f1e91c22f0266e6c97 Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Mon, 16 Nov 2026 10:14:39 -0500 Subject: [PATCH 12/40] Expect main's 2027 Universal Credit in the capped-once case After the merge, the capped joint HB/UC family's welfare benefits in 2027 are 57,794.21, not 57,471.94, so Universal Credit's cap reduction is 57,794.21 - 30,000 - 25,323 = 2,471.21. An archive of origin/main (d3db7ac07) gives the same figures for this family, so the change comes from main's 2027 amounts, not this branch. The case still checks that the Housing Benefit cap doesn't apply (reg 75F(1)(g)) and Universal Credit's cap counts that Housing Benefit as nil (reg 80(2A)). Co-Authored-By: Claude Opus 5.5 --- .../housing_benefit_working_age_abolition.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_working_age_abolition.yaml b/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_working_age_abolition.yaml index c71efae5bc..eb3f03252e 100644 --- a/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_working_age_abolition.yaml +++ b/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_working_age_abolition.yaml @@ -603,7 +603,7 @@ # HB Regs 2006 reg 75F(1)(g): the Housing Benefit cap does not apply to a # claimant receiving Universal Credit. UC Regs 2013 reg 80(2A): Universal # Credit's cap counts that Housing Benefit as nil, so its reduction is - # 57,471.94 - 30,000 - 25,323 = 2,148.94. + # 57,794.21 - 30,000 - 25,323 = 2,471.21. period: 2027 absolute_error_margin: 0.01 input: @@ -636,6 +636,6 @@ housing_benefit_benefit_cap_reduction: 0 housing_benefit: 30_000 uc_housing_costs_element: 0 - benefit_cap_welfare_benefits: 57_471.94 + benefit_cap_welfare_benefits: 57_794.21 uc_benefit_cap: 25_323 - uc_benefit_cap_reduction: 2_148.94 + uc_benefit_cap_reduction: 2_471.21 From dcb0d868bd13a309a389f5b7e0f462309795ca0d Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Mon, 16 Nov 2026 10:15:06 -0500 Subject: [PATCH 13/40] Keep Housing Benefit for an appointee's income-related ESA claim Vahid's round 4, item 3. SI 2025/1148 art. 7(4)(b) (inserted by SI 2026/409 art. 2(6)) treats the 1 July 2026 abolition as not in force where, immediately before that date, the claimant is entitled to income-related ESA and the art. 3A(2) saving applies: an appointee under reg 57 of the Claims and Payments Regulations 2013 then, or a determination in the six months ending that day that one was likely needed. SR 2025/176 art. 7(4)(b) (inserted by SR 2026/115 art. 2(6)) does the same from 1 October 2026 with NI art. 3A(2). housing_benefit_payable_share is now 1 where the claimant or partner reports income-related ESA and has esa_income_appointee_saving, main's input for the art. 3A(2) saving. As esa_income_payable_share does, either member's saved report covers the family, since the model does not know which of them claims; an adult claiming ESA in their own right does not keep the family's award. It reads reports and the saving, not a calculated ESA award, which depends on the abolition claim. Entitlement immediately before the date is inferred from current receipt. The case leaves the "not modelled" list; the saving defaults to false, so dataset runs don't change. New YAML: a saved single claimant is paid in full in 2026 and makes no claim; without the saving the same family claims at the abolition; the saved award continues in 2027; a partner's saved claim keeps the couple's award; an outside adult's saved claim does not; NI from 1 October 2026. Co-Authored-By: Claude Opus 5.5 --- ...olish-working-age-housing-benefit.fixed.md | 2 +- .../programs/gov/dwp/housing-benefit.ipynb | 4 +- policyengine_uk/programs.yaml | 2 +- ...housing_benefit_working_age_abolition.yaml | 178 ++++++++++++++++++ .../housing_benefit_eligible.py | 7 +- .../housing_benefit_payable_share.py | 49 +++-- 6 files changed, 224 insertions(+), 18 deletions(-) diff --git a/changelog.d/abolish-working-age-housing-benefit.fixed.md b/changelog.d/abolish-working-age-housing-benefit.fixed.md index ec9f047b23..43b127adfb 100644 --- a/changelog.d/abolish-working-age-housing-benefit.fixed.md +++ b/changelog.d/abolish-working-age-housing-benefit.fixed.md @@ -1 +1 @@ -- Abolish working-age Housing Benefit awards outside specified and temporary accommodation from 1 July 2026 in Great Britain (SI 2025/1148 art. 7, inserted by SI 2026/409) and 1 October 2026 in Northern Ireland (SR 2025/176 art. 7, inserted by SR 2026/115). The new `gov.dwp.housing_benefit.working_age_awards_payable` parameter is day-weighted across each fiscal year, so 2026-27 pays a working-age continuing award for 86/365 of the year in Great Britain and 178/365 in Northern Ireland, and from 2027-28 there is none. Families meeting the Pension Credit age conditions keep their awards: a single claimant or both members of a couple over the qualifying age, and mixed-age couples with the SI 2019/37 art. 4 saving (SI 2014/1230 reg 6A(4)-(5)). A family whose award is abolished claims Universal Credit if `would_claim_uc_at_legacy_closure` is true, which ends the claimant's and partner's income-related ESA. +- Abolish working-age Housing Benefit awards outside specified and temporary accommodation from 1 July 2026 in Great Britain (SI 2025/1148 art. 7, inserted by SI 2026/409) and 1 October 2026 in Northern Ireland (SR 2025/176 art. 7, inserted by SR 2026/115). The new `gov.dwp.housing_benefit.working_age_awards_payable` parameter is day-weighted across each fiscal year, so 2026-27 pays a working-age continuing award for 86/365 of the year in Great Britain and 178/365 in Northern Ireland, and from 2027-28 there is none. Families meeting the Pension Credit age conditions keep their awards: a single claimant or both members of a couple over the qualifying age, and mixed-age couples with the SI 2019/37 art. 4 saving (SI 2014/1230 reg 6A(4)-(5)), and so do families whose claimant or partner reports an income-related ESA award that the appointee saving keeps (art. 7(4)(b), `esa_income_appointee_saving`). A family whose award is abolished claims Universal Credit if `would_claim_uc_at_legacy_closure` is true, which ends the claimant's and partner's income-related ESA. diff --git a/docs/book/programs/gov/dwp/housing-benefit.ipynb b/docs/book/programs/gov/dwp/housing-benefit.ipynb index 593e175b23..c90da110ae 100644 --- a/docs/book/programs/gov/dwp/housing-benefit.ipynb +++ b/docs/book/programs/gov/dwp/housing-benefit.ipynb @@ -41,11 +41,11 @@ "\n", "In a `Simulation` reform dictionary, a bare-year key such as `2026` covers the entire fiscal year and can set its share to 1, and a date range applies over its stated dates. A key dated inside the year, such as `2026-07-01`, leaves that model year's share unchanged (86/365 for Great Britain in 2026), so use whole-year values or a range for annual reform scenarios.\n", "\n", - "`housing_benefit_payable_share` applies this per benunit. It is 1 when `in_specified_or_temporary_accommodation` is `True`, in every model year. It is also 1 for a benunit meeting the Pension Credit age conditions (`meets_pension_credit_age_conditions`): a single claimant, or both members of a couple, over the qualifying age (reg 6A(4)), or a mixed-age couple with the 2019 saving ([SI 2019/37 art. 4](https://www.legislation.gov.uk/uksi/2019/37/article/4); reg 6A(5)), which the model infers from current receipt. A mixed-age couple without the saving loses its award like a working-age family. For other benunits it is the share for their country. A working-age continuing award stays eligible while the share is above 0, and `housing_benefit_pre_benefit_cap` pays the entitlement times the share. An unprotected working-age continuing award in 2026 is therefore paid for the part of the year before the abolition, and there is none from 2027.\n", + "`housing_benefit_payable_share` applies this per benunit. It is 1 when `in_specified_or_temporary_accommodation` is `True`, in every model year. It is also 1 for a benunit meeting the Pension Credit age conditions (`meets_pension_credit_age_conditions`): a single claimant, or both members of a couple, over the qualifying age (reg 6A(4)), or a mixed-age couple with the 2019 saving ([SI 2019/37 art. 4](https://www.legislation.gov.uk/uksi/2019/37/article/4); reg 6A(5)), which the model infers from current receipt. A mixed-age couple without the saving loses its award like a working-age family. It is 1, too, where the claimant or partner reports an income-related ESA award that the article 3A(2) appointee saving keeps (`esa_income_appointee_saving`; article 7(4)(b)). The model reads the report and the saving, so it infers entitlement immediately before the abolition date from current receipt, and an adult claiming ESA in their own right does not keep the family's award. For other benunits it is the share for their country. A working-age continuing award stays eligible while the share is above 0, and `housing_benefit_pre_benefit_cap` pays the entitlement times the share. An unprotected working-age continuing award in 2026 is therefore paid for the part of the year before the abolition, and there is none from 2027.\n", "\n", "What happens to the families whose awards end is set by `would_claim_uc`, the Universal Credit take-up input. Families without the accommodation input that claim Universal Credit already receive it instead of Housing Benefit in every year. Families that do not claim it lose Housing Benefit and receive no Universal Credit. The Enhanced FRS take-up draw does not look at legacy receipt, so it leaves too many former claimants with neither. DWP's Move to Universal Credit statistics show that 97% of households sent a migration notice while on Housing Benefit and another legacy benefit claimed Universal Credit (98% of those also on Employment and Support Allowance), and 75% of Housing Benefit-only households did. Transitional protection, which went only to households that claimed after a migration notice, is not modelled.\n", "\n", - "No current dataset supplies `in_specified_or_temporary_accommodation`, so its default of `False` leaves existing dataset outputs unchanged. The other savings requiring histories or decisions remain unmodelled: the qualifying final UC assessment-period case, the ESA appointee or likely-needed-appointee determination, and the restricted prisoner cases. The pension-age and protected mixed-age routes remain approximations. The Enhanced FRS therefore still has no working-age Housing Benefit from 2027. Accommodation-specific eligible-rent and benefit-cap rules also remain gaps even when the accommodation input is supplied. DWP's Spring 2026 forecast for Great Britain is £1.64bn of temporary-accommodation and £3.94bn of supported-accommodation Housing Benefit in 2026-27, across all ages.\n", + "No current dataset supplies `in_specified_or_temporary_accommodation` or `esa_income_appointee_saving`, so their defaults of `False` leave existing dataset outputs unchanged. The other savings requiring histories or decisions remain unmodelled: the qualifying final UC assessment-period case and the restricted prisoner cases. The pension-age and protected mixed-age routes remain approximations. The Enhanced FRS therefore still has no working-age Housing Benefit from 2027. Accommodation-specific eligible-rent and benefit-cap rules also remain gaps even when the accommodation input is supplied. DWP's Spring 2026 forecast for Great Britain is £1.64bn of temporary-accommodation and £3.94bn of supported-accommodation Housing Benefit in 2026-27, across all ages.\n", "\n", "**Guarantee Credit passport.** If the claimant or partner is in receipt of a guarantee credit (`in_receipt_of_guarantee_credit`: the benunit is eligible for Pension Credit, claims it, and its guarantee credit is positive, so the Pension Credit paid includes a guarantee credit), the whole of their capital and income is disregarded ([SI 2006/214 reg. 26](https://www.legislation.gov.uk/uksi/2006/214/regulation/26); Northern Ireland: [SR 2006/406 reg. 24](https://www.legislation.gov.uk/nisr/2006/406/regulation/24)). `housing_benefit_assessable_capital`, `housing_benefit_tariff_income` and `housing_benefit_applicable_income` are then zero, so the capital limit cannot bite and no income is tapered. A guarantee credit computed for a family that does not claim Pension Credit (`would_claim_pc`), or that PolicyEngine does not treat as eligible for it (`is_pension_credit_eligible`), does not count. The passport applies within the pension-age regulations (`housing_benefit_pension_age_regulations_apply`). `is_pension_credit_eligible` retains mixed-age couples covered by the [SI 2019/37 art. 4](https://www.legislation.gov.uk/uksi/2019/37/article/4) saving through `meets_pension_credit_age_conditions`; these couples keep the passport when they receive Guarantee Credit. When Pension Credit is frozen, receipt follows the baseline award, including its Guarantee Credit component. Savings Credit alone follows the separate assessment in [reg. 27](https://www.legislation.gov.uk/uksi/2006/214/regulation/27), including its capital limit, and does not give this passport.\n", "\n", diff --git a/policyengine_uk/programs.yaml b/policyengine_uk/programs.yaml index 7fc95966cb..2c7b8908fb 100644 --- a/policyengine_uk/programs.yaml +++ b/policyengine_uk/programs.yaml @@ -330,7 +330,7 @@ programs: budget: benefit parameter_prefix: gov.dwp.housing_benefit verified_start_year: 2022 - notes: Legacy benefit replaced by Universal Credit. Working-age abolition applies from 1 July 2026 (GB) and 1 October 2026 (NI). An explicit specified-or-temporary-accommodation input preserves payable awards and new claims alongside UC without UC rent support; datasets do not supply it. The protected mixed-age saving is inferred from current receipt. Other historical savings and accommodation-specific eligible-rent and benefit-cap rules are not modelled. + notes: Legacy benefit replaced by Universal Credit. Working-age abolition applies from 1 July 2026 (GB) and 1 October 2026 (NI). An explicit specified-or-temporary-accommodation input preserves payable awards and new claims alongside UC without UC rent support; datasets do not supply it. The protected mixed-age saving is inferred from current receipt. The income-related ESA appointee saving reads esa_income_appointee_saving, which datasets do not supply either. Other historical savings and accommodation-specific eligible-rent and benefit-cap rules are not modelled. - id: income_support name: Income Support diff --git a/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_working_age_abolition.yaml b/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_working_age_abolition.yaml index eb3f03252e..51d4c021a2 100644 --- a/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_working_age_abolition.yaml +++ b/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_working_age_abolition.yaml @@ -639,3 +639,181 @@ benefit_cap_welfare_benefits: 57_794.21 uc_benefit_cap: 25_323 uc_benefit_cap_reduction: 2_471.21 + +# Art. 7(4)(b) (NI: SR 2025/176 art. 7(4)(b)) saves an award where, +# immediately before the abolition date, the claimant is entitled to +# income-related ESA that the art. 3A(2) appointee saving keeps. The claimant +# and partner share one ESA claim, so either one's saved report keeps the +# family's award; an adult claiming ESA in their own right does not. + +- name: GB award with an appointee's income-related ESA is paid in full in 2026 and prompts no claim + period: 2026 + absolute_error_margin: 0.01 + input: + people: + claimant: + age: 40 + housing_benefit_reported: 1 + esa_income_reported: 5_000 + esa_income_appointee_saving: true + benunits: + benunit: + members: [claimant] + would_claim_uc: false + would_claim_uc_at_legacy_closure: true + housing_benefit_applicable_income: 0 + households: + household: + members: [claimant] + rent: 5_200 + tenure_type: RENT_FROM_COUNCIL + region: LONDON + output: + esa_income_payable_share: 1 + housing_benefit_payable_share: 1 + claims_uc_at_legacy_closure: false + housing_benefit_eligible: true + housing_benefit: 5_200 + +- name: Without the appointee saving the same family claims Universal Credit at the abolition + period: 2026 + absolute_error_margin: 0.0001 + input: + people: + claimant: + age: 40 + housing_benefit_reported: 1 + esa_income_reported: 5_000 + esa_income_appointee_saving: false + benunits: + benunit: + members: [claimant] + would_claim_uc: false + would_claim_uc_at_legacy_closure: true + housing_benefit_applicable_income: 0 + households: + household: + members: [claimant] + rent: 5_200 + tenure_type: RENT_FROM_COUNCIL + region: LONDON + output: + # 86 / 365 + housing_benefit_payable_share: 0.235616 + claims_uc_at_legacy_closure: true + housing_benefit_eligible: false + housing_benefit: 0 + +- name: GB award with an appointee's income-related ESA continues after the abolition year + period: 2027 + absolute_error_margin: 0.01 + input: + people: + claimant: + age: 40 + housing_benefit_reported: 1 + esa_income_reported: 5_000 + esa_income_appointee_saving: true + benunits: + benunit: + members: [claimant] + would_claim_uc: false + housing_benefit_applicable_income: 0 + households: + household: + members: [claimant] + rent: 5_200 + tenure_type: RENT_FROM_COUNCIL + region: LONDON + output: + housing_benefit_payable_share: 1 + legacy_benefits_closed: false + claims_uc_at_legacy_closure: false + housing_benefit: 5_200 + +- name: A partner's saved income-related ESA claim keeps the couple's award + period: 2026 + absolute_error_margin: 0.01 + input: + people: + claimant: + age: 40 + housing_benefit_reported: 1 + partner: + age: 40 + esa_income_reported: 5_000 + esa_income_appointee_saving: true + benunits: + benunit: + members: [claimant, partner] + would_claim_uc: false + would_claim_uc_at_legacy_closure: true + housing_benefit_applicable_income: 0 + households: + household: + members: [claimant, partner] + rent: 5_200 + tenure_type: RENT_FROM_COUNCIL + region: LONDON + output: + housing_benefit_payable_share: 1 + claims_uc_at_legacy_closure: false + housing_benefit: 5_200 + +- name: An adult's saved income-related ESA claim in their own right does not keep the family's award + period: 2026 + absolute_error_margin: 0.0001 + input: + people: + claimant: + age: 40 + is_claimant_or_partner: true + housing_benefit_reported: 1 + outside: + age: 30 + is_claimant_or_partner: false + current_education: NOT_IN_EDUCATION + esa_income_reported: 5_000 + esa_income_appointee_saving: true + benunits: + benunit: + members: [claimant, outside] + would_claim_uc: false + would_claim_uc_at_legacy_closure: false + households: + household: + members: [claimant, outside] + rent: 5_200 + tenure_type: RENT_FROM_COUNCIL + region: LONDON + output: + # The adult's own claim stays payable; the family's award does not. + esa_income_payable_share: [0.235616, 1] + housing_benefit_payable_share: 0.235616 + +- name: NI award with an appointee's income-related ESA is paid in full in 2026 + period: 2026 + absolute_error_margin: 0.01 + input: + people: + claimant: + age: 40 + housing_benefit_reported: 1 + esa_income_reported: 5_000 + esa_income_appointee_saving: true + benunits: + benunit: + members: [claimant] + would_claim_uc: false + would_claim_uc_at_legacy_closure: true + housing_benefit_applicable_income: 0 + households: + household: + members: [claimant] + rent: 5_200 + tenure_type: RENT_FROM_COUNCIL + region: NORTHERN_IRELAND + output: + housing_benefit_payable_share: 1 + claims_uc_at_legacy_closure: false + housing_benefit: 5_200 diff --git a/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_eligible.py b/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_eligible.py index ce82903ea0..436bac8432 100644 --- a/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_eligible.py +++ b/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_eligible.py @@ -42,8 +42,11 @@ class housing_benefit_eligible(Variable): "Universal Credit then claims it when the abolition reaches its award " "(claims_uc_at_legacy_closure), and the claim ends the award for the " "whole year. A family meeting the Pension Credit age conditions keeps " - "a share of 1 (art. 7(4)(a)). Other statutory savings are not " - "modelled; housing_benefit_payable_share lists them. " + "a share of 1 (art. 7(4)(a)), and so does one whose claimant or " + "partner reports an income-related ESA award that the appointee " + "saving keeps (esa_income_appointee_saving; art. 7(4)(b)). Other " + "statutory savings are not modelled; housing_benefit_payable_share " + "lists them. " "Accommodation-specific eligible rent and benefit-cap rules are not " "modelled." ) diff --git a/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_payable_share.py b/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_payable_share.py index d33141a7cc..9d8bd1f9f5 100644 --- a/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_payable_share.py +++ b/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_payable_share.py @@ -10,22 +10,32 @@ class housing_benefit_payable_share(Variable): "payable. Unprotected working-age awards outside specified and temporary " "accommodation were abolished from 1 July 2026 in Great Britain and " "1 October 2026 in Northern Ireland, so for a family outside the " - "pension-age savings this is the share of the year before that " - "date, unless in_specified_or_temporary_accommodation is True. " - "That input preserves a share of 1 in every year. A family meeting " + "modelled savings this is the share of the year before that date. " + "Three savings give a share of 1 in every year. " + "in_specified_or_temporary_accommodation is the first (reg 6A(2), " + "through art. 7(4)(a)). A family meeting " "the Pension Credit age conditions (meets_pension_credit_age_conditions: " "a single claimant, or both members of a couple, over the qualifying " - "age, or a mixed-age couple with the SI 2019/37 art. 4 saving) also " - "has a share of 1; a mixed-age couple without the saving does not. " + "age, or a mixed-age couple with the SI 2019/37 art. 4 saving; reg " + "6A(4) and (5), through art. 7(4)(a)) is the second; a mixed-age " + "couple without the saving does not keep its award. The third is a " + "family whose claimant or partner reports an income-related ESA award " + "that the art. 3A(2) appointee saving keeps (esa_income_appointee_saving; " + "art. 7(4)(b)). The claimant and partner share one income-related ESA " + "claim and the model doesn't know which of them claims Housing Benefit, " + "so either one's saved report keeps the family's award, as it keeps " + "the whole ESA claim (esa_income_payable_share). The model reads the " + "report, not a calculated award, so it infers the entitlement " + "immediately before the abolition date from current receipt. An adult " + "claiming ESA in their own right is not the Housing Benefit claimant " + "and does not keep the family's award. A Universal Credit claim still " + "ends a saved award (housing_benefit_eligible). " "Other saved working-age awards are not modelled, so their awards " "wrongly end on the abolition date: qualifying HB claims during the " "final UC assessment period on reaching pension-credit age, with " "entitlement from reaching that age and the relevant Decisions and " "Appeals Schedule 1 paragraph 26 applying (reg 6A(3); NI reg 4A(3)); " - "income-related " - "ESA entitlement immediately before abolition with an appointee then, " - "or a determination in the preceding six months that one was likely " - "needed (art 7(4)(b) and 3A(2)); and the delayed termination for " + "and the delayed termination for " "claimants excluded from UC immediately before abolition under UC " "reg 19(1)(b) or (c), until the day after the last day of that " "exclusion (art 7(2)). These need award history, decisions or dates " @@ -35,8 +45,10 @@ class housing_benefit_payable_share(Variable): unit = "/1" reference = ( "https://www.legislation.gov.uk/uksi/2025/1148/article/7", + "https://www.legislation.gov.uk/uksi/2025/1148/article/3A", "https://www.legislation.gov.uk/uksi/2014/1230/regulation/6A", "https://www.legislation.gov.uk/nisr/2025/176/article/7", + "https://www.legislation.gov.uk/nisr/2025/176/article/3A", "https://www.legislation.gov.uk/uksi/2019/37/article/4", ) @@ -58,10 +70,23 @@ def formula(benunit, period, parameters): # conditions; the art. 4 saving is inferred from current receipt # (has_mixed_age_couple_pension_credit_saving). Specified and # temporary accommodation is supplied explicitly under reg 6A(2) (NI - # reg 4A(2)). The other savings described in the variable - # documentation have no inputs for their history and date conditions. + # reg 4A(2)). pension_age_saving = benunit("meets_pension_credit_age_conditions", period) protected_accommodation = benunit( "in_specified_or_temporary_accommodation", period ) - return where(pension_age_saving | protected_accommodation, 1, working_age_share) + # Art. 7(4)(b) (NI: art. 7(4)(b)) saves an award where, immediately + # before the abolition date, the claimant is entitled to + # income-related ESA and the art. 3A(2) appointee saving applies. As + # esa_income_payable_share does, the model applies the claimant's or + # partner's saved report to the family. It reads reports and the + # saving, never a calculated ESA award, which itself depends on + # whether the family claims Universal Credit at the abolition. + person = benunit.members + esa_income_saving = benunit.any( + person("is_claimant_or_partner", period) + & (person("esa_income_reported", period) > 0) + & person("esa_income_appointee_saving", period) + ) + saved = pension_age_saving | protected_accommodation | esa_income_saving + return where(saved, 1, working_age_share) From 97204af305c86a4a0d7ac0fdb759fa1a0f2b3544 Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Mon, 16 Nov 2026 10:15:20 -0500 Subject: [PATCH 14/40] Describe the claim at abolition in the Housing Benefit notebook The notebook still said would_claim_uc alone decides what happens to a family whose award ends, and that a family that does not claim gets nothing. Since the branch added the claim at abolition, a family claims Universal Credit if would_claim_uc_at_legacy_closure is true, the claim ends its Housing Benefit and the couple's income-related ESA for the whole year, and a family that does not claim is paid for the part of 2026-27 before the abolition. The DWP Move to Universal Credit rates that follow are unchanged. Step 3 also said the eligibility rules do not yet model specified or temporary accommodation; since #2813 they do, so it now points to the input. Co-Authored-By: Claude Opus 5.5 --- docs/book/programs/gov/dwp/housing-benefit.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/book/programs/gov/dwp/housing-benefit.ipynb b/docs/book/programs/gov/dwp/housing-benefit.ipynb index c90da110ae..745bb1df5a 100644 --- a/docs/book/programs/gov/dwp/housing-benefit.ipynb +++ b/docs/book/programs/gov/dwp/housing-benefit.ipynb @@ -43,7 +43,7 @@ "\n", "`housing_benefit_payable_share` applies this per benunit. It is 1 when `in_specified_or_temporary_accommodation` is `True`, in every model year. It is also 1 for a benunit meeting the Pension Credit age conditions (`meets_pension_credit_age_conditions`): a single claimant, or both members of a couple, over the qualifying age (reg 6A(4)), or a mixed-age couple with the 2019 saving ([SI 2019/37 art. 4](https://www.legislation.gov.uk/uksi/2019/37/article/4); reg 6A(5)), which the model infers from current receipt. A mixed-age couple without the saving loses its award like a working-age family. It is 1, too, where the claimant or partner reports an income-related ESA award that the article 3A(2) appointee saving keeps (`esa_income_appointee_saving`; article 7(4)(b)). The model reads the report and the saving, so it infers entitlement immediately before the abolition date from current receipt, and an adult claiming ESA in their own right does not keep the family's award. For other benunits it is the share for their country. A working-age continuing award stays eligible while the share is above 0, and `housing_benefit_pre_benefit_cap` pays the entitlement times the share. An unprotected working-age continuing award in 2026 is therefore paid for the part of the year before the abolition, and there is none from 2027.\n", "\n", - "What happens to the families whose awards end is set by `would_claim_uc`, the Universal Credit take-up input. Families without the accommodation input that claim Universal Credit already receive it instead of Housing Benefit in every year. Families that do not claim it lose Housing Benefit and receive no Universal Credit. The Enhanced FRS take-up draw does not look at legacy receipt, so it leaves too many former claimants with neither. DWP's Move to Universal Credit statistics show that 97% of households sent a migration notice while on Housing Benefit and another legacy benefit claimed Universal Credit (98% of those also on Employment and Support Allowance), and 75% of Housing Benefit-only households did. Transitional protection, which went only to households that claimed after a migration notice, is not modelled.\n", + "A family whose award the abolition reaches claims Universal Credit if `would_claim_uc_at_legacy_closure` is true (`claims_uc_at_legacy_closure`), the same claim the model makes when DWP moves a family off another legacy benefit or the abolition of income-related ESA reaches its award. The claim ends the family's Housing Benefit and the claimant's and partner's income-related ESA, and Universal Credit is paid for the whole model year: the model does not split 2026-27 into Housing Benefit before the abolition date and Universal Credit after it. A family that does not claim keeps Housing Benefit for the part of 2026-27 before the abolition and gets none from 2027-28. A family that already claims Universal Credit (`would_claim_uc`) receives it instead of Housing Benefit in every year. `would_claim_uc_at_legacy_closure` defaults to true and no released dataset supplies it, so every unprotected working-age Housing Benefit recipient that doesn't already claim Universal Credit claims at the abolition, which is an upper bound. DWP's Move to Universal Credit statistics show that 97% of households sent a migration notice while on Housing Benefit and another legacy benefit claimed Universal Credit (98% of those also on Employment and Support Allowance), and 75% of Housing Benefit-only households did. Transitional protection, which went only to households that claimed after a migration notice, is not modelled.\n", "\n", "No current dataset supplies `in_specified_or_temporary_accommodation` or `esa_income_appointee_saving`, so their defaults of `False` leave existing dataset outputs unchanged. The other savings requiring histories or decisions remain unmodelled: the qualifying final UC assessment-period case and the restricted prisoner cases. The pension-age and protected mixed-age routes remain approximations. The Enhanced FRS therefore still has no working-age Housing Benefit from 2027. Accommodation-specific eligible-rent and benefit-cap rules also remain gaps even when the accommodation input is supplied. DWP's Spring 2026 forecast for Great Britain is £1.64bn of temporary-accommodation and £3.94bn of supported-accommodation Housing Benefit in 2026-27, across all ages.\n", "\n", @@ -64,7 +64,7 @@ "1. **Eligible rent**: the rent the benunit is liable for (`benunit_rent`). Where the Local Housing Allowance applies (`LHA_eligible`: renting, and no member in social housing), the eligible rent is the maximum rent (LHA), which is the LHA rate for the Housing Benefit category of dwelling (`housing_benefit_LHA_category`: the shared accommodation rate for a young individual with no non-dependant, or a claimant entitled to one bedroom who lacks exclusive use of self-contained accommodation, unless the severe disability premium applies, reg 13D(2)) or, where the rent is lower, the rent (`LHA_cap`; SI 2006/213 regs [12D(2)(a)](https://www.legislation.gov.uk/uksi/2006/213/regulation/12D) and [13D(5)](https://www.legislation.gov.uk/uksi/2006/213/regulation/13D)).\n", "2. **Applicable amount** (`housing_benefit_applicable_amount`): a personal allowance derived from the benunit's composition (single, couple, lone parent) and age, plus any disability/carer premiums. This is the \"minimum income\" the household needs before HB tapers begin.\n", "3. **Means test** (`housing_benefit_entitlement`): the appropriate maximum Housing Benefit is the eligible rent less `housing_benefit_non_dep_deductions` for any non-dependant adults living in the household ([reg. 70](https://www.legislation.gov.uk/uksi/2006/213/regulation/70)). Under reg 74 (SI 2006/214 reg 55), for a non-dependant aged 18 or over in remunerative work (16 hours a week or more) the council deducts the amount for the band containing their normal gross weekly income, counting a couple's joint income and including each band's lower edge; for one not in remunerative work it deducts the lowest amount. It makes one deduction for a couple, the higher. Councils make no deduction for full-time students, State Pension Credit recipients, or under-25s on Income Support, income-based JSA or Universal Credit without earned income, and none for any non-dependant if the claimant or partner is blind or receives Attendance Allowance, the DLA care component, the PIP daily living component or Armed Forces Independence Payment. The published `withdrawal_rate` (currently 0.65) of the benunit's `housing_benefit_applicable_income` in excess of the applicable amount is deducted from that maximum ([SSCBA 1992 s. 130(3)(b)](https://www.legislation.gov.uk/ukpga/1992/4/section/130), [reg. 71](https://www.legislation.gov.uk/uksi/2006/213/regulation/71)). Because the LHA caps the eligible rent, the taper comes off the LHA: a private tenant with rent above the LHA and income above the applicable amount receives the LHA less the taper, not the lower of the LHA and the rent less the taper. The pension-age regulations (SI 2006/214) have the same rules at regs 12D, 13D, 50 and 51, and the Northern Ireland regulations at SR 2006/405 regs 13C, 14D, 68 and 69 and SR 2006/406 regs 13C, 14D, 48 and 49. Applicable income counts earnings, pensions and benefits net of the income tax and National Insurance on them. Income derived from capital (rent from property, interest and dividends) is not income: regulation 46(4) of the Housing Benefit Regulations 2006 treats it as capital, and Schedule 5 paragraph 22 of the pension-age regulations disregards it. The capital counts instead through `housing_benefit_tariff_income` and the capital limit. Rent for letting part of the home is the exception: it counts, less £20 a week per occupier.\n", - " If the claimant or partner is on Universal Credit, Income Support, income-based Jobseeker's Allowance or income-related Employment and Support Allowance (`housing_benefit_on_passporting_benefit`), the whole of the family's earnings, other income and capital is disregarded ([SI 2006/213 Sch. 4 para. 12](https://www.legislation.gov.uk/uksi/2006/213/schedule/4/paragraph/12), [Sch. 5 para. 4](https://www.legislation.gov.uk/uksi/2006/213/schedule/5/paragraph/4) and [Sch. 6 para. 5](https://www.legislation.gov.uk/uksi/2006/213/schedule/6/paragraph/5); Northern Ireland: [SR 2006/405 Sch. 5 para. 12](https://www.legislation.gov.uk/nisr/2006/405/schedule/5/paragraph/12), [Sch. 6 para. 4](https://www.legislation.gov.uk/nisr/2006/405/schedule/6/paragraph/4) and [Sch. 7 para. 5](https://www.legislation.gov.uk/nisr/2006/405/schedule/7/paragraph/5)). `housing_benefit_applicable_income` and `housing_benefit_assessable_capital` are then zero, so the award is that maximum. This applies at any age: a mixed-age couple whose younger member is on one of these benefits is assessed under the working-age regulations ([SI 2006/213 reg. 5(1)(b)](https://www.legislation.gov.uk/uksi/2006/213/regulation/5)). Income Support, income-based Jobseeker's Allowance and income-related Employment and Support Allowance count when a positive amount is paid on the claimant's or partner's award (`in_receipt_of_income_support_jsa_ib_or_esa_ir`, which reads `claimant_or_partner_jsa_income` and `claimant_or_partner_esa_income`). Another member's own award, such as a non-dependant's, is payable to them and does not passport the claimant. A person is on Universal Credit on any day they are entitled to it, whether it is in payment or not ([reg. 2(3B)](https://www.legislation.gov.uk/uksi/2006/213/regulation/2)); PolicyEngine reads that as Universal Credit above nil before the benefit cap and deductions (`is_uc_entitled`), for a family that claims it, so the passport adds no circular dependency through the benefit cap. The universal credit limb applies from 28 October 2013 in Great Britain and 8 May 2018 in Northern Ireland (`gov.dwp.housing_benefit.means_test.universal_credit_passport`). It matters only where Housing Benefit is paid alongside Universal Credit, for specified or temporary accommodation, which the eligibility rules above do not yet model.\n", + " If the claimant or partner is on Universal Credit, Income Support, income-based Jobseeker's Allowance or income-related Employment and Support Allowance (`housing_benefit_on_passporting_benefit`), the whole of the family's earnings, other income and capital is disregarded ([SI 2006/213 Sch. 4 para. 12](https://www.legislation.gov.uk/uksi/2006/213/schedule/4/paragraph/12), [Sch. 5 para. 4](https://www.legislation.gov.uk/uksi/2006/213/schedule/5/paragraph/4) and [Sch. 6 para. 5](https://www.legislation.gov.uk/uksi/2006/213/schedule/6/paragraph/5); Northern Ireland: [SR 2006/405 Sch. 5 para. 12](https://www.legislation.gov.uk/nisr/2006/405/schedule/5/paragraph/12), [Sch. 6 para. 4](https://www.legislation.gov.uk/nisr/2006/405/schedule/6/paragraph/4) and [Sch. 7 para. 5](https://www.legislation.gov.uk/nisr/2006/405/schedule/7/paragraph/5)). `housing_benefit_applicable_income` and `housing_benefit_assessable_capital` are then zero, so the award is that maximum. This applies at any age: a mixed-age couple whose younger member is on one of these benefits is assessed under the working-age regulations ([SI 2006/213 reg. 5(1)(b)](https://www.legislation.gov.uk/uksi/2006/213/regulation/5)). Income Support, income-based Jobseeker's Allowance and income-related Employment and Support Allowance count when a positive amount is paid on the claimant's or partner's award (`in_receipt_of_income_support_jsa_ib_or_esa_ir`, which reads `claimant_or_partner_jsa_income` and `claimant_or_partner_esa_income`). Another member's own award, such as a non-dependant's, is payable to them and does not passport the claimant. A person is on Universal Credit on any day they are entitled to it, whether it is in payment or not ([reg. 2(3B)](https://www.legislation.gov.uk/uksi/2006/213/regulation/2)); PolicyEngine reads that as Universal Credit above nil before the benefit cap and deductions (`is_uc_entitled`), for a family that claims it, so the passport adds no circular dependency through the benefit cap. The universal credit limb applies from 28 October 2013 in Great Britain and 8 May 2018 in Northern Ireland (`gov.dwp.housing_benefit.means_test.universal_credit_passport`). It matters only where Housing Benefit is paid alongside Universal Credit, for specified or temporary accommodation (`in_specified_or_temporary_accommodation`, above).\n", "4. **Benefit cap** (`housing_benefit`): the post-means-test award is finally reduced by `housing_benefit_benefit_cap_reduction`, the excess of the family's welfare benefits over the Housing Benefit cap (`housing_benefit_benefit_cap`, SI 2006/213 reg 75CA), leaving at least 50 pence a week (reg 75D). The cap does not apply where the claimant or couple is entitled to working tax credit (reg 75E), the claimant or partner receives a benefit listed in reg 75F, or the claim is under the pension-age regulations (reg 5). Universal Credit has its own cap.\n", "\n", "The take-up gate (`would_claim_housing_benefit`) is applied inside `housing_benefit_pre_benefit_cap`." From bd0d7643c46bda21cdecbc803495f8e197aa7bc6 Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Mon, 16 Nov 2026 12:19:38 -0500 Subject: [PATCH 15/40] Expect the abolition in main's 2026 Housing Benefit cases Three of main's YAML files fail at this head because working-age Housing Benefit now ends on 1 July 2026 (SI 2025/1148 art. 7(3)). Each passes on an archive of main (d3db7ac07), so the change is this branch's. - LHA_other_families_children_and_additional_bedrooms: the renter (60) doesn't claim Universal Credit, so the 8,889.92 award is paid for 86 of the 365 days from 6 April 2026: 2,094.61. The full-year figure stays checked as housing_benefit_entitlement. - boarders_and_lodgers_non_dependants (3 cases): the head (60) would have claimed Universal Credit at the abolition, which ends the award. Pin would_claim_uc_at_legacy_closure false so the cases keep testing the Housing Benefit non-dependant deduction: 7,053.80 x 86 / 365 = 1,661.99. - uc_receiving_education Case 32: the abolition claim counts as a qualifying claim, and reg. 60 would then lift the education condition the case tests. Pin would_claim_uc_at_legacy_closure false. Co-Authored-By: Claude Opus 5.5 --- ...lies_children_and_additional_bedrooms.yaml | 12 ++++++--- .../boarders_and_lodgers_non_dependants.yaml | 27 ++++++++++++++++--- .../uc_receiving_education.yaml | 5 ++++ 3 files changed, 38 insertions(+), 6 deletions(-) diff --git a/policyengine_uk/tests/policy/baseline/finance/benefit/family/LHA_other_families_children_and_additional_bedrooms.yaml b/policyengine_uk/tests/policy/baseline/finance/benefit/family/LHA_other_families_children_and_additional_bedrooms.yaml index 75b512d66a..f2915f3c73 100644 --- a/policyengine_uk/tests/policy/baseline/finance/benefit/family/LHA_other_families_children_and_additional_bedrooms.yaml +++ b/policyengine_uk/tests/policy/baseline/finance/benefit/family/LHA_other_families_children_and_additional_bedrooms.yaml @@ -1303,7 +1303,12 @@ # (aged 25 or over, £95.55 a week), so no taper: 14,360.32 - 5,470.40 = # 8,889.92. At two bedrooms: 10,830.04 - 5,470.40 = 5,359.64, so the # placed child adds 3,530.28 (67.89 a week * 52). - housing_benefit: [8_889.92, 0] + housing_benefit_entitlement: [8_889.92, 0] + # The renter (60) is under the qualifying age for State Pension Credit, + # so the award is paid for the 86 of the 365 days from 6 April 2026 + # before working-age Housing Benefit is abolished on 1 July 2026 (SI + # 2025/1148 art. 7(3)): 8,889.92 * 86 / 365 = 2,094.61. + housing_benefit: [2_094.61, 0] - name: A non-dependant's child placed for adoption raises the renter's final Housing Benefit period: 2026 @@ -1339,9 +1344,10 @@ # adoption with the claimant or partner, so the renter has 3 bedrooms # and the daughter's own claim 2 (herself and the qualifying parent or # carer room). HB: 276.16 * 52 - 105.20 * 52 = 14,360.32 - 5,470.40 = - # 8,889.92. + # 8,889.92, paid for 86/365 of 2026-27 as in the foster case: 2,094.61. housing_benefit_LHA_allowed_bedrooms: [3, 2] - housing_benefit: [8_889.92, 0] + housing_benefit_entitlement: [8_889.92, 0] + housing_benefit: [2_094.61, 0] # The renter does not claim Universal Credit; "A non-dependant's child # placed for adoption" has the Universal Credit rooms, [3, 3]. diff --git a/policyengine_uk/tests/policy/baseline/gov/dwp/legacy_means_tests/boarders_and_lodgers_non_dependants.yaml b/policyengine_uk/tests/policy/baseline/gov/dwp/legacy_means_tests/boarders_and_lodgers_non_dependants.yaml index 9229550ecf..c8663fa9dc 100644 --- a/policyengine_uk/tests/policy/baseline/gov/dwp/legacy_means_tests/boarders_and_lodgers_non_dependants.yaml +++ b/policyengine_uk/tests/policy/baseline/gov/dwp/legacy_means_tests/boarders_and_lodgers_non_dependants.yaml @@ -103,6 +103,11 @@ householder_unit: members: [householder] would_claim_uc: false + # The head (60) is under the qualifying age for State Pension + # Credit, so the award ends when working-age Housing Benefit is + # abolished on 1 July 2026 (SI 2025/1148 art. 7(3)). The head + # doesn't claim Universal Credit then. + would_claim_uc_at_legacy_closure: false lodger_unit: members: [lodger, son] households: @@ -119,7 +124,9 @@ housing_benefit_non_dep_deductions: [3_346.20, 0] legacy_benefits_home_letting_income: [4_160, 0] housing_benefit_applicable_income: [4_160, 0] - housing_benefit: [7_053.80, 0] + # The award is paid for the 86 of the 365 days from 6 April 2026 before + # its abolition: 7,053.80 x 86 / 365 = 1,661.99. + housing_benefit: [1_661.99, 0] - name: A lodger's non-paying adult son is the householder's non-dependant for Universal Credit and CTR # The same household, with the household head claiming Universal Credit @@ -332,6 +339,11 @@ householder_unit: members: [householder] would_claim_uc: false + # The head (60) is under the qualifying age for State Pension + # Credit, so the award ends when working-age Housing Benefit is + # abolished on 1 July 2026 (SI 2025/1148 art. 7(3)). The head + # doesn't claim Universal Credit then. + would_claim_uc_at_legacy_closure: false lodger_unit: members: [mother, son] households: @@ -349,7 +361,9 @@ council_tax_reduction_individual_non_dep_deduction_eligible: [false, true, false] housing_benefit_non_dep_deductions: [3_346.20, 0] legacy_benefits_home_letting_income: [4_160, 0] - housing_benefit: [7_053.80, 0] + # The award is paid for the 86 of the 365 days from 6 April 2026 before + # its abolition: 7,053.80 x 86 / 365 = 1,661.99. + housing_benefit: [1_661.99, 0] - name: Rent entered for a member of the household head's benefit unit is not paid to the householder # The household head's partner has rent_paid_as_lodger set. The household @@ -539,6 +553,11 @@ householder_unit: members: [householder] would_claim_uc: false + # The head (60) is under the qualifying age for State Pension + # Credit, so the award ends when working-age Housing Benefit is + # abolished on 1 July 2026 (SI 2025/1148 art. 7(3)). The head + # doesn't claim Universal Credit then. + would_claim_uc_at_legacy_closure: false lodger_unit: members: [lodger, son] would_claim_uc: false @@ -552,7 +571,9 @@ is_non_dependant_of_household_head: [false, false, true] is_uc_non_dependant_of_household_head: [false, false, true] housing_benefit_non_dep_deductions: [3_346.20, 0] - housing_benefit: [7_053.80, 0] + # The award is paid for the 86 of the 365 days from 6 April 2026 before + # its abolition: 7,053.80 x 86 / 365 = 1,661.99. + housing_benefit: [1_661.99, 0] - name: A non-paying daughter's qualifying young person stays the householder's non-dependant for Universal Credit # London (Inner South East London), 2026-27. The household head (62) diff --git a/policyengine_uk/tests/policy/baseline/gov/dwp/universal_credit/uc_receiving_education.yaml b/policyengine_uk/tests/policy/baseline/gov/dwp/universal_credit/uc_receiving_education.yaml index bc1ed54e69..d2f72f5942 100644 --- a/policyengine_uk/tests/policy/baseline/gov/dwp/universal_credit/uc_receiving_education.yaml +++ b/policyengine_uk/tests/policy/baseline/gov/dwp/universal_credit/uc_receiving_education.yaml @@ -852,6 +852,11 @@ benunits: benunit: members: [person1] + # The claimant doesn't claim Universal Credit when working-age + # Housing Benefit is abolished on 1 July 2026 (SI 2025/1148 art. 7). + # The model treats such a claim as a qualifying claim, which reg. 60 + # would exempt from the education condition. + would_claim_uc_at_legacy_closure: false households: household: members: [person1] From 4340787247fc28647645df839402016b4f199f28 Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Mon, 16 Nov 2026 12:19:44 -0500 Subject: [PATCH 16/40] Say how the Housing Benefit abolition reaches the claim draw main's legacy_benefits_closed said Housing Benefit would join its list once the model ended working-age awards. It doesn't: the abolition prompts a claim through claims_uc_at_legacy_closure, and an award the family doesn't replace ends on its own (housing_benefit_payable_share) without moving the family. would_claim_uc_at_legacy_closure now names the abolition among the events it applies to. Co-Authored-By: Claude Opus 5.5 --- .../gov/dwp/universal_credit/legacy_benefits_closed.py | 8 ++++++-- .../universal_credit/would_claim_uc_at_legacy_closure.py | 4 +++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/policyengine_uk/variables/gov/dwp/universal_credit/legacy_benefits_closed.py b/policyengine_uk/variables/gov/dwp/universal_credit/legacy_benefits_closed.py index 32d68dfdc6..2cbec0e935 100644 --- a/policyengine_uk/variables/gov/dwp/universal_credit/legacy_benefits_closed.py +++ b/policyengine_uk/variables/gov/dwp/universal_credit/legacy_benefits_closed.py @@ -86,8 +86,12 @@ class legacy_benefits_closed(Variable): "it. The same Pension Credit and pension-age exceptions apply. In " "2026-27 a family whose award the abolition reaches can claim " "Universal Credit (claims_uc_at_legacy_closure) but is not moved. " - "Housing Benefit joins this list when the model ends its working-age " - "awards. Reports by other benefit-unit members do not close or " + "The abolition of working-age Housing Benefit (SI 2025/1148 art. 7; " + "SR 2025/176 art. 7) doesn't join this list: a family whose award it " + "reaches claims Universal Credit if it would " + "(claims_uc_at_legacy_closure), and otherwise the award ends on its " + "own (housing_benefit_payable_share) without moving the family. " + "Reports by other benefit-unit members do not close or " "shield this award. This annual proxy does not model actual notices, " "deadlines or run-on periods." ) diff --git a/policyengine_uk/variables/gov/dwp/universal_credit/would_claim_uc_at_legacy_closure.py b/policyengine_uk/variables/gov/dwp/universal_credit/would_claim_uc_at_legacy_closure.py index f8b12e7957..38a401424f 100644 --- a/policyengine_uk/variables/gov/dwp/universal_credit/would_claim_uc_at_legacy_closure.py +++ b/policyengine_uk/variables/gov/dwp/universal_credit/would_claim_uc_at_legacy_closure.py @@ -9,7 +9,9 @@ class would_claim_uc_at_legacy_closure(Variable): "Whether this family would claim Universal Credit once a legacy " "means-tested benefit it receives closes (legacy_benefits_closed), " "or once the abolition of income-related ESA reaches the claimant's " - "or partner's award (esa_income_abolition_reached, from 2026-27). " + "or partner's award (esa_income_abolition_reached, from 2026-27), " + "or once the abolition of working-age Housing Benefit reaches its " + "award (housing_benefit_payable_share below 1, from 2026-27). " "It does not affect years before the closure or the abolition, when " "would_claim_uc alone decides the Universal Credit claim. It " "defaults to True, like would_claim_uc, so a family whose data " From 3b414ad6dacc01ff5bbb52a7969b5e51f0f26f99 Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Mon, 16 Nov 2026 12:22:07 -0500 Subject: [PATCH 17/40] Let an abolished Housing Benefit award free the Tax-Free Childcare choice forgoes_universal_credit_for_tax_free_childcare held a family to its Universal Credit claim whenever it reported Housing Benefit, as an award the claim would end. From 2027-28 the abolition (SI 2025/1148 art. 7; SR 2025/176 art. 7) has already ended an unsaved working-age award, so the claim ends nothing. The report now counts only while some of the year is payable (housing_benefit_payable_share), as main does for income-related ESA. main's 2027 case of a Housing Benefit report keeping the claim moves to 2026, when the award is payable until 30 June. A new 2027 case has the abolished award forgone; it fails on the code before this commit. Co-Authored-By: Claude Opus 5.5 --- ...iversal_credit_for_tax_free_childcare.yaml | 25 ++++++++++++++++++- ...universal_credit_for_tax_free_childcare.py | 19 ++++++++++---- 2 files changed, 38 insertions(+), 6 deletions(-) diff --git a/policyengine_uk/tests/policy/baseline/finance/benefit/family/universal_credit/forgoes_universal_credit_for_tax_free_childcare.yaml b/policyengine_uk/tests/policy/baseline/finance/benefit/family/universal_credit/forgoes_universal_credit_for_tax_free_childcare.yaml index d375159eca..2b7c8eb130 100644 --- a/policyengine_uk/tests/policy/baseline/finance/benefit/family/universal_credit/forgoes_universal_credit_for_tax_free_childcare.yaml +++ b/policyengine_uk/tests/policy/baseline/finance/benefit/family/universal_credit/forgoes_universal_credit_for_tax_free_childcare.yaml @@ -45,7 +45,10 @@ universal_credit_pre_benefit_cap: 0 - name: A family whose claim would end a legacy award keeps its claim - period: 2027 + # Working-age Housing Benefit is payable until 30 June 2026 (SI 2025/1148 + # art. 7(3)), so in 2026-27 a claim still ends the award. From 2027-28 the + # abolition has ended it either way (below). + period: 2026 absolute_error_margin: 0.01 input: uc_maximum_amount: 21_993 @@ -54,9 +57,29 @@ housing_benefit_reported: 5_000 legacy_benefits_closed: false output: + # 6 April to 30 June 2026 is 86 of the 365 days of 2026-27. + housing_benefit_payable_share: 0.235616 forgoes_universal_credit_for_tax_free_childcare: false universal_credit_pre_benefit_cap: 1_993 +- name: A Housing Benefit award its abolition has ended ends either way, so the award is still forgone + # The claimant (40) is under the qualifying age for State Pension Credit, + # outside specified and temporary accommodation and has no saved + # income-related ESA, so no saving in SI 2025/1148 art. 7(4) keeps the + # award after 30 June 2026. + period: 2027 + absolute_error_margin: 0.01 + input: + uc_maximum_amount: 21_993 + uc_income_reduction: 20_000 + tax_free_childcare_without_universal_credit: 2_400 + housing_benefit_reported: 5_000 + legacy_benefits_closed: false + output: + housing_benefit_payable_share: 0 + forgoes_universal_credit_for_tax_free_childcare: true + universal_credit_pre_benefit_cap: 0 + - name: A legacy award DWP has closed ends either way, so the award is still forgone period: 2027 absolute_error_margin: 0.01 diff --git a/policyengine_uk/variables/gov/dwp/universal_credit/forgoes_universal_credit_for_tax_free_childcare.py b/policyengine_uk/variables/gov/dwp/universal_credit/forgoes_universal_credit_for_tax_free_childcare.py index 5adaacf861..1327d79a51 100644 --- a/policyengine_uk/variables/gov/dwp/universal_credit/forgoes_universal_credit_for_tax_free_childcare.py +++ b/policyengine_uk/variables/gov/dwp/universal_credit/forgoes_universal_credit_for_tax_free_childcare.py @@ -6,13 +6,14 @@ # Legacy awards a Universal Credit claim ends (SI 2014/1230 regs 8 and 46). # A family receiving one, until DWP closes it, keeps today's claim: not # claiming would keep that award as well as Tax-Free Childcare, which this -# comparison does not weigh. Income-related ESA counts only while some of -# the year is payable (esa_income_payable_share): its abolition ends the -# award whether or not the family claims (SI 2025/1148 art. 3A). +# comparison does not weigh. Income-related ESA and Housing Benefit count +# only while some of the year is payable (esa_income_payable_share, +# housing_benefit_payable_share): their abolition ends an unsaved award +# whether or not the family claims (SI 2025/1148 arts. 3A and 7; SR 2025/176 +# arts. 3A and 7). LEGACY_AWARDS = ( "child_tax_credit_reported", "working_tax_credit_reported", - "housing_benefit_reported", "income_support_reported", "jsa_income_reported", ) @@ -79,6 +80,14 @@ def formula(benunit, period, parameters): top_up = add(benunit, period, ["tax_free_childcare_without_universal_credit"]) esa_payable = person("esa_income_payable_share", period) > 0 esa_award = benunit.sum(person("esa_income_reported", period) * esa_payable) - legacy = (add(benunit, period, LEGACY_AWARDS) > 0) | (esa_award > 0) + housing_benefit_payable = benunit("housing_benefit_payable_share", period) > 0 + housing_benefit_award = ( + add(benunit, period, ["housing_benefit_reported"]) * housing_benefit_payable + ) + legacy = ( + (add(benunit, period, LEGACY_AWARDS) > 0) + | (esa_award > 0) + | (housing_benefit_award > 0) + ) keeps_no_legacy_award = ~legacy | benunit("legacy_benefits_closed", period) return keeps_no_legacy_award & (award > 0) & (top_up > award + scp_from_claim) From eeb9b79f70586ab32d52731840552d69dd1b242b Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Mon, 16 Nov 2026 12:24:21 -0500 Subject: [PATCH 18/40] State the migration-notice assumption behind the abolition claim uc_is_excepted_from_education_condition takes every claim at a legacy closure as a reg. 48 qualifying claim, so reg. 60 lifts the education condition. claims_uc_at_legacy_closure now also fires when the abolition of working-age Housing Benefit reaches an award, as it already did for income-related ESA. A qualifying claim needs a migration notice (SI 2014/1230 regs. 44(6) and 48); reg. 44(3C) to (3E) let a notice to these claimants take the abolition day as its deadline. The documentation now says the model assumes such a notice. Co-Authored-By: Claude Opus 5.5 --- .../uc_is_excepted_from_education_condition.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/policyengine_uk/variables/gov/dwp/universal_credit/uc_is_excepted_from_education_condition.py b/policyengine_uk/variables/gov/dwp/universal_credit/uc_is_excepted_from_education_condition.py index 209eddad27..4c75e56e5d 100644 --- a/policyengine_uk/variables/gov/dwp/universal_credit/uc_is_excepted_from_education_condition.py +++ b/policyengine_uk/variables/gov/dwp/universal_credit/uc_is_excepted_from_education_condition.py @@ -20,12 +20,19 @@ class uc_is_excepted_from_education_condition(Variable): "parent; (f) the member of a mixed-age couple who has reached the " "qualifying age for State Pension Credit; and reg. 60(1), a member of " "a family that claims Universal Credit when DWP moves it off its " - "legacy benefits (claims_uc_at_legacy_closure), which the model takes " + "legacy benefits, or when the abolition of income-related ESA or " + "working-age Housing Benefit reaches its award " + "(claims_uc_at_legacy_closure), which the model takes " "as the qualifying claim under reg. 48 of the 2014 Regulations, and who " "doesn't count " "as a qualifying young person for the condition " "(is_qualifying_young_person_for_uc_education, which applies reg. 28 " - "of the 2014 Regulations). The model needs no rule of its own for limb " + "of the 2014 Regulations). Reg. 48 needs a claim by a person DWP sent " + "a migration notice (reg. 44(6)). Reg. 44(3C) to (3E) let a notice to " + "an income-related ESA or Housing Benefit claimant set the abolition " + "day as its deadline; the model assumes a family whose award the " + "abolition reaches had such a notice. The model needs no rule of its " + "own for limb " "(e)(i): it places responsibility for a child on the benefit unit, so " "both members of the couple meet (c). Under (b), the decision maker " "must determine limited capability for work before the course starts. " @@ -62,6 +69,7 @@ class uc_is_excepted_from_education_condition(Variable): "https://www.legislation.gov.uk/uksi/2013/376/regulation/14", "https://www.legislation.gov.uk/uksi/2013/376/regulation/2", "https://www.legislation.gov.uk/uksi/2014/1230/regulation/28", + "https://www.legislation.gov.uk/uksi/2014/1230/regulation/44", "https://www.legislation.gov.uk/uksi/2014/1230/regulation/48", "https://www.legislation.gov.uk/uksi/2014/1230/regulation/60", "https://www.legislation.gov.uk/nisr/2016/216/regulation/14", From 4bc96ad53633e3679da6c807a1cf2c179859470e Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Mon, 16 Nov 2026 19:38:14 -0500 Subject: [PATCH 19/40] Let the cycle contracts name the Housing Benefit payable share Two of main's contract tests failed at eeb9b79f7 (test_computed_universal_credit_and_local_schemes and test_universal_credit_reads_no_calculated_housing_benefit): Universal Credit's trace now reads housing_benefit_payable_share. Both pass on main at d3db7ac07; the read is this PR's. claims_uc_at_legacy_closure reads the share for the claim at the abolition of working-age Housing Benefit, and forgoes_universal_credit_for_tax_free_childcare reads it for the Tax-Free Childcare choice. The share is the part of the year before the abolition date. A trace of it alone reads 27 variables, all reports, ages, the country, parameters and supplied savings (meets_pension_credit_age_conditions, in_specified_or_temporary_accommodation, esa_income_appointee_saving): no calculated Housing Benefit, Universal Credit or other award. So it adds no cycle and the contracts now allow that one variable, with a comment saying why. They still trace everything the share reads: a mutant share that reads housing_benefit_entitlement or housing_benefit_assessable_capital raises CycleError. Co-Authored-By: Claude Opus 5.5 --- .../test_non_dependant_cycle_contracts.py | 14 ++++++++++++-- ...test_non_dependant_deduction_properties.py | 19 +++++++++++++++---- 2 files changed, 27 insertions(+), 6 deletions(-) diff --git a/policyengine_uk/tests/test_non_dependant_cycle_contracts.py b/policyengine_uk/tests/test_non_dependant_cycle_contracts.py index cf158ec4d7..40d2a76006 100644 --- a/policyengine_uk/tests/test_non_dependant_cycle_contracts.py +++ b/policyengine_uk/tests/test_non_dependant_cycle_contracts.py @@ -461,8 +461,9 @@ def test_each_household_gets_its_results_alone(system, households): def test_computed_universal_credit_and_local_schemes(system): """With nothing supplied, Universal Credit's traced calculation reads no - Housing Benefit variable but the report of the award, and the national and - local Council Tax Reduction schemes then read Universal Credit.""" + Housing Benefit variable but the report of the award and its payable + share, and the national and local Council Tax Reduction schemes then read + Universal Credit.""" # Each local scheme's parameters start in 2026-27. year = 2026 template = situation("mixed", year=year, full_uc=True) @@ -498,11 +499,20 @@ def test_computed_universal_credit_and_local_schemes(system): assert universal_credit[0] > 0 assert "uc_maximum_amount" in names assert "housing_benefit_reported" in names + # The claim at the abolition of working-age Housing Benefit + # (claims_uc_at_legacy_closure) and the Tax-Free Childcare choice + # (forgoes_universal_credit_for_tax_free_childcare) read + # housing_benefit_payable_share, the share of the year before the + # abolition date. It reads reports, ages, the country and supplied + # savings, never a calculated award, so it adds no cycle. The trace + # includes everything it reads, so a calculated Housing Benefit variable + # read through it would still fail here. assert not { name for name in names if name.startswith("housing_benefit") and not name.startswith("housing_benefit_report") + and name != "housing_benefit_payable_share" } for name in [ "housing_benefit", diff --git a/policyengine_uk/tests/test_non_dependant_deduction_properties.py b/policyengine_uk/tests/test_non_dependant_deduction_properties.py index 5a172b2bad..6ba3c517cf 100644 --- a/policyengine_uk/tests/test_non_dependant_deduction_properties.py +++ b/policyengine_uk/tests/test_non_dependant_deduction_properties.py @@ -1147,8 +1147,13 @@ def award_households(households, awards=None, scaled=True): def test_universal_credit_reads_no_calculated_housing_benefit(): """Invariant 12: Universal Credit's traced calculation reads no Housing - Benefit variable but the reported award, so the deductions can read - universal_credit. Inputs that supply benefit_cap_welfare_benefits, a + Benefit variable but the reported award and its payable share, so the + deductions can read universal_credit. The payable share + (housing_benefit_payable_share), which the claim at the abolition of + working-age Housing Benefit reads, is the share of the year before the + abolition date: it reads reports, ages, the country and supplied + savings, never a calculated award, and the trace includes everything it + reads. Inputs that supply benefit_cap_welfare_benefits, a total that includes Housing Benefit, also supply housing_benefit_pre_benefit_cap or uc_benefit_cap_welfare_benefits, or the basket raises ValueError. Where they supply @@ -1163,7 +1168,8 @@ def test_universal_credit_reads_no_calculated_housing_benefit(): assert not [ name for name in read - if name.startswith("housing_benefit") and name != "housing_benefit_reported" + if name.startswith("housing_benefit") + and name not in ("housing_benefit_reported", "housing_benefit_payable_share") ], read for unit in situation["benunits"].values(): unit["benefit_cap_welfare_benefits"] = { @@ -1180,7 +1186,12 @@ def test_universal_credit_reads_no_calculated_housing_benefit(): name for name in read if name.startswith("housing_benefit") - and name not in ("housing_benefit_reported", "housing_benefit_pre_benefit_cap") + and name + not in ( + "housing_benefit_reported", + "housing_benefit_payable_share", + "housing_benefit_pre_benefit_cap", + ) ], read From c98c95c31764ddca57196dc5a3d959d74be982e9 Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Mon, 16 Nov 2026 19:49:41 -0500 Subject: [PATCH 20/40] Restate main's legacy-closure claim property for the Housing Benefit abolition test_closure_claims_and_the_end_of_legacy_awards failed at eeb9b79f7 on a 2026 mixed-age couple (86 and 47, no SI 2019/37 art. 4 saving) reporting Housing Benefit and Pension Credit: the model has it claim Universal Credit and the test expected no claim. The test passes on main at d3db7ac07, whose claim triggers are the closure and the ESA abolition only. The code is right and the expectation predates the abolition. SI 2025/1148 art. 7(3) (inserted by SI 2026/409 art. 2(6)) abolishes the remaining working-age awards from 1 July 2026, and art. 7(4)(a) saves only claimants within reg 6A(2) to (5) of SI 2014/1230. Reg 6A(4) needs both members of a couple over the qualifying age; reg 6A(5) needs an art. 4(1) saving, which the couple lacks. So the abolition reaches its award, and with would_claim_uc_at_legacy_closure it claims. Its Pension Credit report keeps it from the migration closure, as on main, but saves no Housing Benefit, and the model pays it no Pension Credit. Invariant 2 now adds the Housing Benefit abolition as a third claim trigger: from 2026 it reaches a family reporting Housing Benefit off the Pension Credit age conditions (no generated family is in specified or temporary accommodation or has the ESA appointee saving), and the test checks that housing_benefit_payable_share is below 1 for exactly the families off them. An explicit example pins the falsifying couple and a working-age claimant on Housing Benefit alone; it fails main's expectation. Invariant 5 had the same gap and could fail on another draw: the flag decides the abolition claim too, so it now counts that family as moved. Co-Authored-By: Claude Opus 5.5 --- .../test_uc_legacy_closure_properties.py | 107 ++++++++++++++++-- 1 file changed, 99 insertions(+), 8 deletions(-) diff --git a/policyengine_uk/tests/test_uc_legacy_closure_properties.py b/policyengine_uk/tests/test_uc_legacy_closure_properties.py index c7f6a1ba7f..6a9e852a68 100644 --- a/policyengine_uk/tests/test_uc_legacy_closure_properties.py +++ b/policyengine_uk/tests/test_uc_legacy_closure_properties.py @@ -4,7 +4,14 @@ from 1 April 2026. The abolition of income-related ESA reached every remaining award on 1 July 2026 (SI 2025/1148 art. 3A), so a family whose award it reaches can claim from 2026-27, and DWP moves it from 2027-28, when none of the -award is payable. DWP moved each family off its legacy benefits with a notice +award is payable. The abolition of working-age Housing Benefit reached the +remaining awards on 1 July 2026 (SI 2025/1148 art. 7(3)). Art. 7(4)(a) +saves a family within reg 6A(4) of SI 2014/1230 (wholly pension age) or +6A(5) (a mixed-age couple with the SI 2019/37 art. 4 saving), together the +Pension Credit age conditions, so a family off them that reports Housing +Benefit can claim from 2026-27. No generated family is in specified or +temporary accommodation (reg 6A(2)) or has the ESA appointee saving (art. +7(4)(b)). DWP moved each family off its legacy benefits with a notice covering all of them. A Universal Credit migration notice ends the awards on a claim (SI 2014/1230 reg 8) or at its deadline (reg 46). A tax credit closure notice sent families on Pension Credit, and families on Child Tax Credit but @@ -22,10 +29,13 @@ not on Pension Credit and is not wholly pension age. The ESA abolition reaches (esa_income_abolition_reached) a family reporting income-related ESA from 2026 under the same Pension Credit conditions. -2. Claim: claims_universal_credit is would_claim_uc, or the closure or the - abolition reaching the award with the closure claim flag; Universal Credit - is paid only to claiming families, and a claiming family gets no - income-related ESA. +2. Claim: claims_universal_credit is would_claim_uc, or the closure or + either abolition reaching the award with the closure claim flag; Universal + Credit is paid only to claiming families, and a claiming family gets no + income-related ESA. From 2026 the Housing Benefit abolition reaches a + family reporting Housing Benefit off the Pension Credit age conditions, + and housing_benefit_payable_share is below 1 for exactly the families off + them. 3. Migration ends every legacy award: a family moved off legacy benefits gets no tax credits, Income Support, income-related ESA or income-based JSA. It gets no Housing Benefit unless it keeps the pension-age route by not @@ -37,7 +47,7 @@ Housing Benefit. 5. Metamorphic, the flag is inert unless it decides a claim or age waiver: negating would_claim_uc_at_legacy_closure changes no benefit for a family neither - moved off legacy benefits nor reached by the ESA abolition, or for a + moved off legacy benefits nor reached by either abolition, or for a working-age one that would claim Universal Credit anyway and has a qualifying working-age claimant. In particular nothing changes in 2024, before @@ -106,6 +116,7 @@ OUTPUTS = BENEFITS + [ "legacy_benefits_closed", "esa_income_abolition_reached", + "housing_benefit_payable_share", "claims_universal_credit", "left_pension_route_at_legacy_closure", "meets_pension_credit_age_conditions", @@ -227,6 +238,23 @@ def expected_reached(unit, year, pension_age_route, mixed_age): ) +def housing_benefit_abolished(year, pension_age_route): + """From 2026-27 the abolition of working-age Housing Benefit (SI + 2025/1148 art. 7) reaches every family off the Pension Credit age + conditions: art. 7(4)(a) saves only reg 6A(4) (wholly pension age) and + 6A(5) (a mixed-age couple with the SI 2019/37 art. 4 saving), and no + generated family has the other savings.""" + return year >= 2026 and not pension_age_route + + +def expected_housing_benefit_reached(unit, year, pension_age_route): + """The abolition reaches a reported Housing Benefit award it does not + save.""" + return unit["reported"]["housing_benefit_reported"] > 0 and ( + housing_benefit_abolished(year, pension_age_route) + ) + + def has_working_age_claimant(unit): return any( role != "child" @@ -238,6 +266,51 @@ def has_working_age_claimant(unit): @PROPERTY_SETTINGS @given(st.lists(families(), min_size=1, max_size=25)) +@example( + [ + # The Housing Benefit abolition alone prompts each claim from 2026: a + # mixed-age couple without the saving, whose Pension Credit report + # keeps it from closure but saves no award (reg 6A(5)), and a + # working-age claimant on Housing Benefit only. + dict( + shape="mixed_age", + members=[("claimant", 86), ("partner", 47)], + reported={ + "child_tax_credit_reported": 2_000.0, + "working_tax_credit_reported": 6_000.0, + "housing_benefit_reported": 6_000.0, + "esa_income_reported": 0.0, + "income_support_reported": 6_000.0, + "jsa_income_reported": 2_000.0, + "pension_credit_reported": 6_000.0, + }, + saving=False, + tenure="RENT_FROM_COUNCIL", + rent=6_041.06, + earnings=8_000.0, + savings=5_000.0, + would_claim_uc=False, + claims_at_closure=True, + ineligible_partner=True, + ), + dict( + shape="single", + members=[("claimant", 30)], + reported={ + name: 4_000.0 if name == "housing_benefit_reported" else 0.0 + for name in LEGACY + }, + saving=False, + tenure="RENT_PRIVATELY", + rent=6_000.0, + earnings=0.0, + savings=0.0, + would_claim_uc=False, + claims_at_closure=True, + ineligible_partner=False, + ), + ] +) def test_closure_claims_and_the_end_of_legacy_awards(units): values = calculate(units) for year in YEARS: @@ -249,7 +322,15 @@ def test_closure_claims_and_the_end_of_legacy_awards(units): assert bool(v["legacy_benefits_closed"][i]) == closed, (year, unit) reached = expected_reached(unit, year, pension_age_route, mixed_age) assert bool(v["esa_income_abolition_reached"][i]) == reached, (year, unit) - moved = closed or reached + abolished = housing_benefit_abolished(year, pension_age_route) + assert bool(v["housing_benefit_payable_share"][i] < 1) == abolished, ( + year, + unit, + ) + housing_benefit_reached = expected_housing_benefit_reached( + unit, year, pension_age_route + ) + moved = closed or reached or housing_benefit_reached claims_at_closure = moved and unit["claims_at_closure"] claims = unit["would_claim_uc"] or claims_at_closure assert bool(v["claims_universal_credit"][i]) == claims, (year, unit) @@ -330,7 +411,17 @@ def test_the_closure_flag_only_decides_closure_claims(units): "working_tax_credit_reported" ] > 0 and not has_working_age_claimant(unit) closed = bool(drawn[year]["legacy_benefits_closed"][i]) - moved = closed or bool(drawn[year]["esa_income_abolition_reached"][i]) + # The Housing Benefit abolition reaches a reported award whose + # payable share is below 1, and the flag decides that claim too. + housing_benefit_reached = ( + unit["reported"]["housing_benefit_reported"] > 0 + and drawn[year]["housing_benefit_payable_share"][i] < 1 + ) + moved = ( + closed + or bool(drawn[year]["esa_income_abolition_reached"][i]) + or housing_benefit_reached + ) decides = moved and ( not unit["would_claim_uc"] or bool(drawn[year]["meets_pension_credit_age_conditions"][i]) From 82a46f2708aeaa7628d2bc6c569c29556220161b Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Mon, 16 Nov 2026 20:55:00 -0500 Subject: [PATCH 21/40] Pin the closure flag on the Housing Benefit abolition claim; correct the reg 60A comment The legacy-closure property's example now has a third family: a working-age single claimant reporting Housing Benefit only, with neither would_claim_uc nor the closure claim flag. Invariant 2 expects it to make no claim in 2026 and 2027, so a claim that ignores would_claim_uc_at_legacy_closure on the Housing Benefit abolition now fails this test as well as claims_universal_credit.yaml. The reg 60A comment in is_uc_eligible said a family reporting Pension Credit makes no closure claim. The legacy closure still moves no such family, but from 2026-27 the Housing Benefit abolition can prompt a claim from a mixed-age couple without the SI 2019/37 saving that reports Pension Credit (SI 2025/1148 art. 7(4)(a) does not save its award). On that claim reg 60A applies on reported Working Tax Credit, as on any closure claim, and reg_60a does not read the Pension Credit report. Comments only; no formula changes. Co-Authored-By: Claude Opus 5.5 --- .../test_uc_legacy_closure_properties.py | 26 ++++++++++++++++--- .../dwp/universal_credit/is_uc_eligible.py | 26 +++++++++++++------ 2 files changed, 40 insertions(+), 12 deletions(-) diff --git a/policyengine_uk/tests/test_uc_legacy_closure_properties.py b/policyengine_uk/tests/test_uc_legacy_closure_properties.py index 6a9e852a68..2e2dbd86fb 100644 --- a/policyengine_uk/tests/test_uc_legacy_closure_properties.py +++ b/policyengine_uk/tests/test_uc_legacy_closure_properties.py @@ -268,10 +268,12 @@ def has_working_age_claimant(unit): @given(st.lists(families(), min_size=1, max_size=25)) @example( [ - # The Housing Benefit abolition alone prompts each claim from 2026: a - # mixed-age couple without the saving, whose Pension Credit report - # keeps it from closure but saves no award (reg 6A(5)), and a - # working-age claimant on Housing Benefit only. + # The Housing Benefit abolition alone prompts the first two claims + # from 2026: a mixed-age couple without the saving, whose Pension + # Credit report keeps it from closure but saves no award (reg 6A(5)), + # and a working-age claimant on Housing Benefit only. The third + # family is the second without the closure claim flag, so it makes + # no claim: the flag decides the abolition claim too. dict( shape="mixed_age", members=[("claimant", 86), ("partner", 47)], @@ -309,6 +311,22 @@ def has_working_age_claimant(unit): claims_at_closure=True, ineligible_partner=False, ), + dict( + shape="single", + members=[("claimant", 30)], + reported={ + name: 4_000.0 if name == "housing_benefit_reported" else 0.0 + for name in LEGACY + }, + saving=False, + tenure="RENT_PRIVATELY", + rent=6_000.0, + earnings=0.0, + savings=0.0, + would_claim_uc=False, + claims_at_closure=False, + ineligible_partner=False, + ), ] ) def test_closure_claims_and_the_end_of_legacy_awards(units): diff --git a/policyengine_uk/variables/gov/dwp/universal_credit/is_uc_eligible.py b/policyengine_uk/variables/gov/dwp/universal_credit/is_uc_eligible.py index e063401496..2998507e63 100644 --- a/policyengine_uk/variables/gov/dwp/universal_credit/is_uc_eligible.py +++ b/policyengine_uk/variables/gov/dwp/universal_credit/is_uc_eligible.py @@ -96,20 +96,30 @@ def formula(benunit, period, parameters): # State Pension Credit. The model reads the year's reported receipt # instead. legacy_award_is_closed never closes the legacy awards of a # family whose claimant or partner reports Pension Credit - # (pension_credit_reported), so legacy_benefits_closed is false and it - # makes no closure claim. reg_60a reads reported Working Tax Credit, - # so a family whose Working Tax Credit tapered to nil, which reg + # (pension_credit_reported), so legacy_benefits_closed is false and + # the legacy closure prompts no claim. From 2026-27 the working-age + # Housing Benefit abolition can (claims_uc_at_legacy_closure): a + # mixed-age couple without the SI 2019/37 saving is off the Pension + # Credit age conditions (reg 6A(4) and (5)), so unless another + # modelled saving applies (reg 6A(2) accommodation, or art. 7(4)(b)) + # SI 2025/1148 art. 7(4)(a) does not save its Housing Benefit, and a + # report of Pension Credit does not stop the abolition prompting its + # claim. Reg 60A then applies on reported + # Working Tax Credit, as on any closure claim; reg_60a does not read + # the Pension Credit report. Because it reads the Working Tax Credit + # report, a family whose Working Tax Credit tapered to nil, which reg # 60A(2) also covers, is not modelled as a reg 60A migrant. - # Any other pension-age Working Tax Credit recipient can make the - # reg 60A claim, whether or not it would claim Pension Credit in the - # model (would_claim_pc). Except in prescribed cases, no one is + # Any pension-age Working Tax Credit recipient that makes a closure + # claim can use reg 60A, whether or not it would claim Pension Credit + # in the model (would_claim_pc). Except in prescribed cases, no one is # entitled to State Pension Credit without making, or being treated # as making, a claim (SSAA 1992 s.1(1) and (4)(ab)), so for a family # that has not claimed it this matches the regulation. Where the # report and the award differ, it does not: a family with an award it # does not report is treated as a reg 60A migrant, where the - # regulation refuses the waiver, and one reporting Pension Credit it - # is not awarded makes no closure claim. + # regulation refuses the waiver. The legacy closure does not move a + # family reporting Pension Credit it is not awarded, but the Housing + # Benefit abolition can, as above. # The formula reads the Working Tax Credit reports of the claimant and # partner only. A couple both aged 16 or over and in the UK must # claim a tax credit together (Tax Credits Act 2002 s.3(3)), and From a823a23c2b559fc806b8fb5c427b84e3ee25a23f Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Mon, 16 Nov 2026 22:37:05 -0500 Subject: [PATCH 22/40] Restrict the ESA Housing Benefit saving to the same claimant Article 7(4)(b) requires the Housing Benefit claimant personally to hold the saved ESA award. A couple's shared ESA assessment does not establish that identity. Use a supplied claimant-specific status, following the existing main-phase ESA input, instead of introducing a general HB claimant model. Without that status a couple is unsaved; a sole claimant's own positive saved report suffices. Reports and flags keep calculated ESA out of the UC claim dependency path. Document this conservative default and align eligibility, notebook and release-note descriptions. Add same-person, different-person, missing-status, missing-report, unsaved and single-claimant cases in GB and NI for 2026 and 2027. Retain every existing numerical expectation, explicitly identifying the HB claimant in the partner example. Narrowly permit the supplied status in cycle traces and assert that it has no formula. Co-Authored-By: GPT-6.1 Sol --- ...olish-working-age-housing-benefit.fixed.md | 2 +- .../programs/gov/dwp/housing-benefit.ipynb | 2 +- ...housing_benefit_working_age_abolition.yaml | 443 +++++++++++++++++- .../test_non_dependant_cycle_contracts.py | 11 +- ...test_non_dependant_deduction_properties.py | 14 +- ..._benefit_claimant_is_saved_esa_claimant.py | 30 ++ .../housing_benefit_eligible.py | 8 +- .../housing_benefit_payable_share.py | 42 +- 8 files changed, 526 insertions(+), 26 deletions(-) create mode 100644 policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_claimant_is_saved_esa_claimant.py diff --git a/changelog.d/abolish-working-age-housing-benefit.fixed.md b/changelog.d/abolish-working-age-housing-benefit.fixed.md index 43b127adfb..6c7e0c814f 100644 --- a/changelog.d/abolish-working-age-housing-benefit.fixed.md +++ b/changelog.d/abolish-working-age-housing-benefit.fixed.md @@ -1 +1 @@ -- Abolish working-age Housing Benefit awards outside specified and temporary accommodation from 1 July 2026 in Great Britain (SI 2025/1148 art. 7, inserted by SI 2026/409) and 1 October 2026 in Northern Ireland (SR 2025/176 art. 7, inserted by SR 2026/115). The new `gov.dwp.housing_benefit.working_age_awards_payable` parameter is day-weighted across each fiscal year, so 2026-27 pays a working-age continuing award for 86/365 of the year in Great Britain and 178/365 in Northern Ireland, and from 2027-28 there is none. Families meeting the Pension Credit age conditions keep their awards: a single claimant or both members of a couple over the qualifying age, and mixed-age couples with the SI 2019/37 art. 4 saving (SI 2014/1230 reg 6A(4)-(5)), and so do families whose claimant or partner reports an income-related ESA award that the appointee saving keeps (art. 7(4)(b), `esa_income_appointee_saving`). A family whose award is abolished claims Universal Credit if `would_claim_uc_at_legacy_closure` is true, which ends the claimant's and partner's income-related ESA. +- Abolish working-age Housing Benefit awards outside specified and temporary accommodation from 1 July 2026 in Great Britain (SI 2025/1148 art. 7, inserted by SI 2026/409) and 1 October 2026 in Northern Ireland (SR 2025/176 art. 7, inserted by SR 2026/115). The new `gov.dwp.housing_benefit.working_age_awards_payable` parameter is day-weighted across each fiscal year, so 2026-27 pays a working-age continuing award for 86/365 of the year in Great Britain and 178/365 in Northern Ireland, and from 2027-28 there is none. Families meeting the Pension Credit age conditions keep their awards: a single claimant or both members of a couple over the qualifying age, and mixed-age couples with the SI 2019/37 art. 4 saving (SI 2014/1230 reg 6A(4)-(5)), and so do families whose Housing Benefit claimant personally holds an income-related ESA award that the appointee saving keeps (art. 7(4)(b), `esa_income_appointee_saving`), requiring `housing_benefit_claimant_is_saved_esa_claimant` for couples. A family whose award is abolished claims Universal Credit if `would_claim_uc_at_legacy_closure` is true, which ends the claimant's and partner's income-related ESA. diff --git a/docs/book/programs/gov/dwp/housing-benefit.ipynb b/docs/book/programs/gov/dwp/housing-benefit.ipynb index 745bb1df5a..fb6852a587 100644 --- a/docs/book/programs/gov/dwp/housing-benefit.ipynb +++ b/docs/book/programs/gov/dwp/housing-benefit.ipynb @@ -41,7 +41,7 @@ "\n", "In a `Simulation` reform dictionary, a bare-year key such as `2026` covers the entire fiscal year and can set its share to 1, and a date range applies over its stated dates. A key dated inside the year, such as `2026-07-01`, leaves that model year's share unchanged (86/365 for Great Britain in 2026), so use whole-year values or a range for annual reform scenarios.\n", "\n", - "`housing_benefit_payable_share` applies this per benunit. It is 1 when `in_specified_or_temporary_accommodation` is `True`, in every model year. It is also 1 for a benunit meeting the Pension Credit age conditions (`meets_pension_credit_age_conditions`): a single claimant, or both members of a couple, over the qualifying age (reg 6A(4)), or a mixed-age couple with the 2019 saving ([SI 2019/37 art. 4](https://www.legislation.gov.uk/uksi/2019/37/article/4); reg 6A(5)), which the model infers from current receipt. A mixed-age couple without the saving loses its award like a working-age family. It is 1, too, where the claimant or partner reports an income-related ESA award that the article 3A(2) appointee saving keeps (`esa_income_appointee_saving`; article 7(4)(b)). The model reads the report and the saving, so it infers entitlement immediately before the abolition date from current receipt, and an adult claiming ESA in their own right does not keep the family's award. For other benunits it is the share for their country. A working-age continuing award stays eligible while the share is above 0, and `housing_benefit_pre_benefit_cap` pays the entitlement times the share. An unprotected working-age continuing award in 2026 is therefore paid for the part of the year before the abolition, and there is none from 2027.\n", + "`housing_benefit_payable_share` applies this per benunit. It is 1 when `in_specified_or_temporary_accommodation` is `True`, in every model year. It is also 1 for a benunit meeting the Pension Credit age conditions (`meets_pension_credit_age_conditions`): a single claimant, or both members of a couple, over the qualifying age (reg 6A(4)), or a mixed-age couple with the 2019 saving ([SI 2019/37 art. 4](https://www.legislation.gov.uk/uksi/2019/37/article/4); reg 6A(5)), which the model infers from current receipt. A mixed-age couple without the saving loses its award like a working-age family. It is 1, too, where the Housing Benefit claimant personally holds an income-related ESA award that the article 3A(2) appointee saving keeps (article 7(4)(b)). This requires a positive claimant/partner ESA report with `esa_income_appointee_saving` and, for a couple, supplied confirmation that its Housing Benefit claimant holds that saved ESA award (`housing_benefit_claimant_is_saved_esa_claimant`). That status defaults to `False`: an unidentified couple is unsaved. A sole claimant's own saved ESA report suffices. The model infers entitlement immediately before abolition from current receipt; an outside adult's own ESA award does not keep the family's award. For other benunits it is the share for their country. A working-age continuing award stays eligible while the share is above 0, and `housing_benefit_pre_benefit_cap` pays the entitlement times the share. An unprotected working-age continuing award in 2026 is therefore paid for the part of the year before the abolition, and there is none from 2027.\n", "\n", "A family whose award the abolition reaches claims Universal Credit if `would_claim_uc_at_legacy_closure` is true (`claims_uc_at_legacy_closure`), the same claim the model makes when DWP moves a family off another legacy benefit or the abolition of income-related ESA reaches its award. The claim ends the family's Housing Benefit and the claimant's and partner's income-related ESA, and Universal Credit is paid for the whole model year: the model does not split 2026-27 into Housing Benefit before the abolition date and Universal Credit after it. A family that does not claim keeps Housing Benefit for the part of 2026-27 before the abolition and gets none from 2027-28. A family that already claims Universal Credit (`would_claim_uc`) receives it instead of Housing Benefit in every year. `would_claim_uc_at_legacy_closure` defaults to true and no released dataset supplies it, so every unprotected working-age Housing Benefit recipient that doesn't already claim Universal Credit claims at the abolition, which is an upper bound. DWP's Move to Universal Credit statistics show that 97% of households sent a migration notice while on Housing Benefit and another legacy benefit claimed Universal Credit (98% of those also on Employment and Support Allowance), and 75% of Housing Benefit-only households did. Transitional protection, which went only to households that claimed after a migration notice, is not modelled.\n", "\n", diff --git a/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_working_age_abolition.yaml b/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_working_age_abolition.yaml index 51d4c021a2..ebe6aac4c0 100644 --- a/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_working_age_abolition.yaml +++ b/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_working_age_abolition.yaml @@ -731,7 +731,7 @@ claims_uc_at_legacy_closure: false housing_benefit: 5_200 -- name: A partner's saved income-related ESA claim keeps the couple's award +- name: A partner's saved ESA keeps Housing Benefit when that partner is its claimant period: 2026 absolute_error_margin: 0.01 input: @@ -746,6 +746,7 @@ benunits: benunit: members: [claimant, partner] + housing_benefit_claimant_is_saved_esa_claimant: true would_claim_uc: false would_claim_uc_at_legacy_closure: true housing_benefit_applicable_income: 0 @@ -817,3 +818,443 @@ housing_benefit_payable_share: 1 claims_uc_at_legacy_closure: false housing_benefit: 5_200 + +- name: GB ESA saving belongs to the Housing Benefit claimant in 2026 + period: 2026 + absolute_error_margin: 0.0001 + input: + people: + same_head: + age: 40 + is_claimant_or_partner: true + housing_benefit_reported: 1 + same_partner: + age: 40 + is_claimant_or_partner: true + esa_income_reported: 5_000 + esa_income_appointee_saving: true + different_head: + age: 40 + is_claimant_or_partner: true + housing_benefit_reported: 1 + different_partner: + age: 40 + is_claimant_or_partner: true + esa_income_reported: 5_000 + esa_income_appointee_saving: true + unspecified_head: + age: 40 + is_claimant_or_partner: true + housing_benefit_reported: 1 + unspecified_partner: + age: 40 + is_claimant_or_partner: true + esa_income_reported: 5_000 + esa_income_appointee_saving: true + unreported_head: + age: 40 + is_claimant_or_partner: true + housing_benefit_reported: 1 + unreported_partner: + age: 40 + is_claimant_or_partner: true + esa_income_reported: 0 + esa_income_appointee_saving: true + unsaved_head: + age: 40 + is_claimant_or_partner: true + housing_benefit_reported: 1 + unsaved_partner: + age: 40 + is_claimant_or_partner: true + esa_income_reported: 5_000 + esa_income_appointee_saving: false + single_head: + age: 40 + is_claimant_or_partner: true + housing_benefit_reported: 1 + esa_income_reported: 5_000 + esa_income_appointee_saving: true + benunits: + same: + members: [same_head, same_partner] + would_claim_uc: false + would_claim_uc_at_legacy_closure: true + housing_benefit_claimant_is_saved_esa_claimant: true + different: + members: [different_head, different_partner] + would_claim_uc: false + would_claim_uc_at_legacy_closure: true + housing_benefit_claimant_is_saved_esa_claimant: false + unspecified: + members: [unspecified_head, unspecified_partner] + would_claim_uc: false + would_claim_uc_at_legacy_closure: true + unreported: + members: [unreported_head, unreported_partner] + would_claim_uc: false + would_claim_uc_at_legacy_closure: true + housing_benefit_claimant_is_saved_esa_claimant: true + unsaved: + members: [unsaved_head, unsaved_partner] + would_claim_uc: false + would_claim_uc_at_legacy_closure: true + housing_benefit_claimant_is_saved_esa_claimant: true + single: + members: [single_head] + would_claim_uc: false + would_claim_uc_at_legacy_closure: true + households: + same: + members: [same_head, same_partner] + region: LONDON + different: + members: [different_head, different_partner] + region: LONDON + unspecified: + members: [unspecified_head, unspecified_partner] + region: LONDON + unreported: + members: [unreported_head, unreported_partner] + region: LONDON + unsaved: + members: [unsaved_head, unsaved_partner] + region: LONDON + single: + members: [single_head] + region: LONDON + output: + # The head's Housing Benefit report does not identify its legal claimant. + # Only the supplied same-person status or a sole saved claimant suffices. + housing_benefit_payable_share: [1, 0.235616, 0.235616, 0.235616, 0.235616, 1] + claims_uc_at_legacy_closure: [false, true, true, true, true, false] + +- name: NI ESA saving belongs to the Housing Benefit claimant in 2026 + period: 2026 + absolute_error_margin: 0.0001 + input: + people: + same_head: + age: 40 + is_claimant_or_partner: true + housing_benefit_reported: 1 + same_partner: + age: 40 + is_claimant_or_partner: true + esa_income_reported: 5_000 + esa_income_appointee_saving: true + different_head: + age: 40 + is_claimant_or_partner: true + housing_benefit_reported: 1 + different_partner: + age: 40 + is_claimant_or_partner: true + esa_income_reported: 5_000 + esa_income_appointee_saving: true + unspecified_head: + age: 40 + is_claimant_or_partner: true + housing_benefit_reported: 1 + unspecified_partner: + age: 40 + is_claimant_or_partner: true + esa_income_reported: 5_000 + esa_income_appointee_saving: true + unreported_head: + age: 40 + is_claimant_or_partner: true + housing_benefit_reported: 1 + unreported_partner: + age: 40 + is_claimant_or_partner: true + esa_income_reported: 0 + esa_income_appointee_saving: true + unsaved_head: + age: 40 + is_claimant_or_partner: true + housing_benefit_reported: 1 + unsaved_partner: + age: 40 + is_claimant_or_partner: true + esa_income_reported: 5_000 + esa_income_appointee_saving: false + single_head: + age: 40 + is_claimant_or_partner: true + housing_benefit_reported: 1 + esa_income_reported: 5_000 + esa_income_appointee_saving: true + benunits: + same: + members: [same_head, same_partner] + would_claim_uc: false + would_claim_uc_at_legacy_closure: true + housing_benefit_claimant_is_saved_esa_claimant: true + different: + members: [different_head, different_partner] + would_claim_uc: false + would_claim_uc_at_legacy_closure: true + housing_benefit_claimant_is_saved_esa_claimant: false + unspecified: + members: [unspecified_head, unspecified_partner] + would_claim_uc: false + would_claim_uc_at_legacy_closure: true + unreported: + members: [unreported_head, unreported_partner] + would_claim_uc: false + would_claim_uc_at_legacy_closure: true + housing_benefit_claimant_is_saved_esa_claimant: true + unsaved: + members: [unsaved_head, unsaved_partner] + would_claim_uc: false + would_claim_uc_at_legacy_closure: true + housing_benefit_claimant_is_saved_esa_claimant: true + single: + members: [single_head] + would_claim_uc: false + would_claim_uc_at_legacy_closure: true + households: + same: + members: [same_head, same_partner] + region: NORTHERN_IRELAND + different: + members: [different_head, different_partner] + region: NORTHERN_IRELAND + unspecified: + members: [unspecified_head, unspecified_partner] + region: NORTHERN_IRELAND + unreported: + members: [unreported_head, unreported_partner] + region: NORTHERN_IRELAND + unsaved: + members: [unsaved_head, unsaved_partner] + region: NORTHERN_IRELAND + single: + members: [single_head] + region: NORTHERN_IRELAND + output: + # The head's Housing Benefit report does not identify its legal claimant. + # Only the supplied same-person status or a sole saved claimant suffices. + housing_benefit_payable_share: [1, 0.487671, 0.487671, 0.487671, 0.487671, 1] + claims_uc_at_legacy_closure: [false, true, true, true, true, false] + +- name: GB ESA saving belongs to the Housing Benefit claimant in 2027 + period: 2027 + absolute_error_margin: 0.0001 + input: + people: + same_head: + age: 40 + is_claimant_or_partner: true + housing_benefit_reported: 1 + same_partner: + age: 40 + is_claimant_or_partner: true + esa_income_reported: 5_000 + esa_income_appointee_saving: true + different_head: + age: 40 + is_claimant_or_partner: true + housing_benefit_reported: 1 + different_partner: + age: 40 + is_claimant_or_partner: true + esa_income_reported: 5_000 + esa_income_appointee_saving: true + unspecified_head: + age: 40 + is_claimant_or_partner: true + housing_benefit_reported: 1 + unspecified_partner: + age: 40 + is_claimant_or_partner: true + esa_income_reported: 5_000 + esa_income_appointee_saving: true + unreported_head: + age: 40 + is_claimant_or_partner: true + housing_benefit_reported: 1 + unreported_partner: + age: 40 + is_claimant_or_partner: true + esa_income_reported: 0 + esa_income_appointee_saving: true + unsaved_head: + age: 40 + is_claimant_or_partner: true + housing_benefit_reported: 1 + unsaved_partner: + age: 40 + is_claimant_or_partner: true + esa_income_reported: 5_000 + esa_income_appointee_saving: false + single_head: + age: 40 + is_claimant_or_partner: true + housing_benefit_reported: 1 + esa_income_reported: 5_000 + esa_income_appointee_saving: true + benunits: + same: + members: [same_head, same_partner] + would_claim_uc: false + would_claim_uc_at_legacy_closure: true + housing_benefit_claimant_is_saved_esa_claimant: true + different: + members: [different_head, different_partner] + would_claim_uc: false + would_claim_uc_at_legacy_closure: true + housing_benefit_claimant_is_saved_esa_claimant: false + unspecified: + members: [unspecified_head, unspecified_partner] + would_claim_uc: false + would_claim_uc_at_legacy_closure: true + unreported: + members: [unreported_head, unreported_partner] + would_claim_uc: false + would_claim_uc_at_legacy_closure: true + housing_benefit_claimant_is_saved_esa_claimant: true + unsaved: + members: [unsaved_head, unsaved_partner] + would_claim_uc: false + would_claim_uc_at_legacy_closure: true + housing_benefit_claimant_is_saved_esa_claimant: true + single: + members: [single_head] + would_claim_uc: false + would_claim_uc_at_legacy_closure: true + households: + same: + members: [same_head, same_partner] + region: LONDON + different: + members: [different_head, different_partner] + region: LONDON + unspecified: + members: [unspecified_head, unspecified_partner] + region: LONDON + unreported: + members: [unreported_head, unreported_partner] + region: LONDON + unsaved: + members: [unsaved_head, unsaved_partner] + region: LONDON + single: + members: [single_head] + region: LONDON + output: + # The head's Housing Benefit report does not identify its legal claimant. + # Only the supplied same-person status or a sole saved claimant suffices. + housing_benefit_payable_share: [1, 0, 0, 0, 0, 1] + claims_uc_at_legacy_closure: [false, true, true, true, true, false] + +- name: NI ESA saving belongs to the Housing Benefit claimant in 2027 + period: 2027 + absolute_error_margin: 0.0001 + input: + people: + same_head: + age: 40 + is_claimant_or_partner: true + housing_benefit_reported: 1 + same_partner: + age: 40 + is_claimant_or_partner: true + esa_income_reported: 5_000 + esa_income_appointee_saving: true + different_head: + age: 40 + is_claimant_or_partner: true + housing_benefit_reported: 1 + different_partner: + age: 40 + is_claimant_or_partner: true + esa_income_reported: 5_000 + esa_income_appointee_saving: true + unspecified_head: + age: 40 + is_claimant_or_partner: true + housing_benefit_reported: 1 + unspecified_partner: + age: 40 + is_claimant_or_partner: true + esa_income_reported: 5_000 + esa_income_appointee_saving: true + unreported_head: + age: 40 + is_claimant_or_partner: true + housing_benefit_reported: 1 + unreported_partner: + age: 40 + is_claimant_or_partner: true + esa_income_reported: 0 + esa_income_appointee_saving: true + unsaved_head: + age: 40 + is_claimant_or_partner: true + housing_benefit_reported: 1 + unsaved_partner: + age: 40 + is_claimant_or_partner: true + esa_income_reported: 5_000 + esa_income_appointee_saving: false + single_head: + age: 40 + is_claimant_or_partner: true + housing_benefit_reported: 1 + esa_income_reported: 5_000 + esa_income_appointee_saving: true + benunits: + same: + members: [same_head, same_partner] + would_claim_uc: false + would_claim_uc_at_legacy_closure: true + housing_benefit_claimant_is_saved_esa_claimant: true + different: + members: [different_head, different_partner] + would_claim_uc: false + would_claim_uc_at_legacy_closure: true + housing_benefit_claimant_is_saved_esa_claimant: false + unspecified: + members: [unspecified_head, unspecified_partner] + would_claim_uc: false + would_claim_uc_at_legacy_closure: true + unreported: + members: [unreported_head, unreported_partner] + would_claim_uc: false + would_claim_uc_at_legacy_closure: true + housing_benefit_claimant_is_saved_esa_claimant: true + unsaved: + members: [unsaved_head, unsaved_partner] + would_claim_uc: false + would_claim_uc_at_legacy_closure: true + housing_benefit_claimant_is_saved_esa_claimant: true + single: + members: [single_head] + would_claim_uc: false + would_claim_uc_at_legacy_closure: true + households: + same: + members: [same_head, same_partner] + region: NORTHERN_IRELAND + different: + members: [different_head, different_partner] + region: NORTHERN_IRELAND + unspecified: + members: [unspecified_head, unspecified_partner] + region: NORTHERN_IRELAND + unreported: + members: [unreported_head, unreported_partner] + region: NORTHERN_IRELAND + unsaved: + members: [unsaved_head, unsaved_partner] + region: NORTHERN_IRELAND + single: + members: [single_head] + region: NORTHERN_IRELAND + output: + # The head's Housing Benefit report does not identify its legal claimant. + # Only the supplied same-person status or a sole saved claimant suffices. + housing_benefit_payable_share: [1, 0, 0, 0, 0, 1] + claims_uc_at_legacy_closure: [false, true, true, true, true, false] diff --git a/policyengine_uk/tests/test_non_dependant_cycle_contracts.py b/policyengine_uk/tests/test_non_dependant_cycle_contracts.py index 40d2a76006..d67ae0ca39 100644 --- a/policyengine_uk/tests/test_non_dependant_cycle_contracts.py +++ b/policyengine_uk/tests/test_non_dependant_cycle_contracts.py @@ -496,6 +496,11 @@ def test_computed_universal_credit_and_local_schemes(system): sim = make(system, data, year=year, trace=True) universal_credit = sim.calculate("universal_credit", year) names = traced_names(sim) + # The claimant-specific saving is a supplied status, never an ESA or HB + # award calculation. Keep that restriction alongside the trace contract. + assert not system.get_variable( + "housing_benefit_claimant_is_saved_esa_claimant" + ).formulas assert universal_credit[0] > 0 assert "uc_maximum_amount" in names assert "housing_benefit_reported" in names @@ -512,7 +517,11 @@ def test_computed_universal_credit_and_local_schemes(system): for name in names if name.startswith("housing_benefit") and not name.startswith("housing_benefit_report") - and name != "housing_benefit_payable_share" + and name + not in ( + "housing_benefit_payable_share", + "housing_benefit_claimant_is_saved_esa_claimant", + ) } for name in [ "housing_benefit", diff --git a/policyengine_uk/tests/test_non_dependant_deduction_properties.py b/policyengine_uk/tests/test_non_dependant_deduction_properties.py index 6ba3c517cf..6b22c66ec9 100644 --- a/policyengine_uk/tests/test_non_dependant_deduction_properties.py +++ b/policyengine_uk/tests/test_non_dependant_deduction_properties.py @@ -1147,7 +1147,8 @@ def award_households(households, awards=None, scaled=True): def test_universal_credit_reads_no_calculated_housing_benefit(): """Invariant 12: Universal Credit's traced calculation reads no Housing - Benefit variable but the reported award and its payable share, so the + Benefit variable but the reported award, its payable share and the + supplied claimant-specific ESA saving status, so the deductions can read universal_credit. The payable share (housing_benefit_payable_share), which the claim at the abolition of working-age Housing Benefit reads, is the share of the year before the @@ -1163,13 +1164,21 @@ def test_universal_credit_reads_no_calculated_housing_benefit(): situation = award_households([BAND_CROSSING], scaled=False) sim = core_simulation(situation, year, trace=True) sim.calculate("universal_credit", year) + assert not sim.tax_benefit_system.get_variable( + "housing_benefit_claimant_is_saved_esa_claimant" + ).formulas read = {key.split("<")[0] for key in sim.tracer.get_serialized_flat_trace()} assert "universal_credit" in read assert not [ name for name in read if name.startswith("housing_benefit") - and name not in ("housing_benefit_reported", "housing_benefit_payable_share") + and name + not in ( + "housing_benefit_reported", + "housing_benefit_payable_share", + "housing_benefit_claimant_is_saved_esa_claimant", + ) ], read for unit in situation["benunits"].values(): unit["benefit_cap_welfare_benefits"] = { @@ -1190,6 +1199,7 @@ def test_universal_credit_reads_no_calculated_housing_benefit(): not in ( "housing_benefit_reported", "housing_benefit_payable_share", + "housing_benefit_claimant_is_saved_esa_claimant", "housing_benefit_pre_benefit_cap", ) ], read diff --git a/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_claimant_is_saved_esa_claimant.py b/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_claimant_is_saved_esa_claimant.py new file mode 100644 index 0000000000..ca24bca63c --- /dev/null +++ b/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_claimant_is_saved_esa_claimant.py @@ -0,0 +1,30 @@ +from policyengine_uk.model_api import * + + +class housing_benefit_claimant_is_saved_esa_claimant(Variable): + value_type = bool + entity = BenUnit + label = "Housing Benefit claimant is the saved income-related ESA claimant" + definition_period = YEAR + default_value = False + documentation = ( + "Supplied confirmation that the Housing Benefit claimant personally " + "holds the income-related ESA award protected by the art. 3A(2) " + "appointee saving immediately before abolition (1 July 2026 in " + "Great Britain; 1 October 2026 in Northern Ireland). A partner's " + "entitlement alone does not satisfy art. 7(4)(b). The model otherwise " + "does not identify the Housing Benefit claimant; neither the benefit " + "unit head nor its Housing Benefit reporter establishes that identity. " + "Missing input defaults to false: housing_benefit_payable_share " + "applies no ESA saving to a couple without this confirmation. It " + "can infer the identity only for a sole claimant (exactly one " + "is_claimant_or_partner), whose own positive ESA report has the " + "appointee saving. In either case a positive claimant/partner ESA " + "report with esa_income_appointee_saving is required. No dataset " + "mapping is verified. This is a claimant-specific status, not a " + "calculation of ESA entitlement." + ) + reference = ( + "https://www.legislation.gov.uk/uksi/2025/1148/article/7", + "https://www.legislation.gov.uk/nisr/2025/176/article/7", + ) diff --git a/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_eligible.py b/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_eligible.py index 436bac8432..8dd924ad64 100644 --- a/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_eligible.py +++ b/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_eligible.py @@ -42,9 +42,11 @@ class housing_benefit_eligible(Variable): "Universal Credit then claims it when the abolition reaches its award " "(claims_uc_at_legacy_closure), and the claim ends the award for the " "whole year. A family meeting the Pension Credit age conditions keeps " - "a share of 1 (art. 7(4)(a)), and so does one whose claimant or " - "partner reports an income-related ESA award that the appointee " - "saving keeps (esa_income_appointee_saving; art. 7(4)(b)). Other " + "a share of 1 (art. 7(4)(a)), and so does one whose Housing Benefit " + "claimant personally holds a saved income-related ESA award " + "(art. 7(4)(b)). Couples must supply " + "housing_benefit_claimant_is_saved_esa_claimant; a sole claimant's " + "own positive report with esa_income_appointee_saving suffices. Other " "statutory savings are not modelled; housing_benefit_payable_share " "lists them. " "Accommodation-specific eligible rent and benefit-cap rules are not " diff --git a/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_payable_share.py b/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_payable_share.py index 9d8bd1f9f5..ff428bf4b9 100644 --- a/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_payable_share.py +++ b/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_payable_share.py @@ -19,16 +19,17 @@ class housing_benefit_payable_share(Variable): "age, or a mixed-age couple with the SI 2019/37 art. 4 saving; reg " "6A(4) and (5), through art. 7(4)(a)) is the second; a mixed-age " "couple without the saving does not keep its award. The third is a " - "family whose claimant or partner reports an income-related ESA award " - "that the art. 3A(2) appointee saving keeps (esa_income_appointee_saving; " - "art. 7(4)(b)). The claimant and partner share one income-related ESA " - "claim and the model doesn't know which of them claims Housing Benefit, " - "so either one's saved report keeps the family's award, as it keeps " - "the whole ESA claim (esa_income_payable_share). The model reads the " - "report, not a calculated award, so it infers the entitlement " - "immediately before the abolition date from current receipt. An adult " - "claiming ESA in their own right is not the Housing Benefit claimant " - "and does not keep the family's award. A Universal Credit claim still " + "family whose Housing Benefit claimant personally holds a saved " + "income-related ESA award (art. 7(4)(b)). A positive claimant/partner " + "ESA report with esa_income_appointee_saving is required, together " + "with housing_benefit_claimant_is_saved_esa_claimant for a couple. " + "That supplied status defaults to false: without it a couple is " + "unsaved, because the model does not identify its Housing Benefit " + "claimant. A sole claimant's own saved report suffices. The model " + "reads reports, not a calculated award, so it infers entitlement " + "immediately before abolition from current receipt. An outside " + "adult's saved report does not keep the family's award. " + "A Universal Credit claim still " "ends a saved award (housing_benefit_eligible). " "Other saved working-age awards are not modelled, so their awards " "wrongly end on the abolition date: qualifying HB claims during the " @@ -77,16 +78,23 @@ def formula(benunit, period, parameters): ) # Art. 7(4)(b) (NI: art. 7(4)(b)) saves an award where, immediately # before the abolition date, the claimant is entitled to - # income-related ESA and the art. 3A(2) appointee saving applies. As - # esa_income_payable_share does, the model applies the claimant's or - # partner's saved report to the family. It reads reports and the - # saving, never a calculated ESA award, which itself depends on - # whether the family claims Universal Credit at the abolition. + # income-related ESA and the art. 3A(2) appointee saving applies. + # Sharing an ESA assessment does not make its partner the HB claimant. + # Use a supplied claimant-specific status, like HB's main-phase ESA + # input, rather than inventing a general HB claimant identity. Missing + # status saves only a sole claimant with their own saved report. + # Read reports and flags, never calculated ESA: it depends on the UC + # claim that this share can itself trigger. person = benunit.members - esa_income_saving = benunit.any( - person("is_claimant_or_partner", period) + claimant_or_partner = person("is_claimant_or_partner", period) + saved_esa_report = benunit.any( + claimant_or_partner & (person("esa_income_reported", period) > 0) & person("esa_income_appointee_saving", period) ) + same_claimant = (benunit.sum(claimant_or_partner) == 1) | benunit( + "housing_benefit_claimant_is_saved_esa_claimant", period + ) + esa_income_saving = saved_esa_report & same_claimant saved = pension_age_saving | protected_accommodation | esa_income_saving return where(saved, 1, working_age_share) From 6f5de1074c6f31d1fd8df9e17dfa74ad81d4d184 Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Mon, 16 Nov 2026 22:41:26 -0500 Subject: [PATCH 23/40] Qualify closure documentation by migration, abolition and saving Migration can end legacy awards without a Universal Credit claim. Each abolition's part-year and post-2026 outcome applies only to an unsaved award it reaches, rather than every nonclaimant's ESA and Housing Benefit. Describe those paths separately, retain continuing saved awards, and state that accommodation Housing Benefit survives a Universal Credit claim whereas an ESA-saved continuing award ends. Correct the YAML explanatory comment to reflect claimant-specific entitlement as well. Co-Authored-By: GPT-6.1 Sol --- ...housing_benefit_working_age_abolition.yaml | 7 ++++--- .../housing_benefit_payable_share.py | 5 +++-- .../claims_uc_at_legacy_closure.py | 20 +++++++++++++------ 3 files changed, 21 insertions(+), 11 deletions(-) diff --git a/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_working_age_abolition.yaml b/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_working_age_abolition.yaml index ebe6aac4c0..fcd7ca2dc9 100644 --- a/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_working_age_abolition.yaml +++ b/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_working_age_abolition.yaml @@ -642,9 +642,10 @@ # Art. 7(4)(b) (NI: SR 2025/176 art. 7(4)(b)) saves an award where, # immediately before the abolition date, the claimant is entitled to -# income-related ESA that the art. 3A(2) appointee saving keeps. The claimant -# and partner share one ESA claim, so either one's saved report keeps the -# family's award; an adult claiming ESA in their own right does not. +# income-related ESA that the art. 3A(2) appointee saving keeps. A couple +# must supply confirmation that the saved ESA claimant also claims Housing +# Benefit; a sole claimant's own saved report suffices. An outside adult's +# saved report does not keep the family's award. - name: GB award with an appointee's income-related ESA is paid in full in 2026 and prompts no claim period: 2026 diff --git a/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_payable_share.py b/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_payable_share.py index ff428bf4b9..f2a2e860da 100644 --- a/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_payable_share.py +++ b/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_payable_share.py @@ -29,8 +29,9 @@ class housing_benefit_payable_share(Variable): "reads reports, not a calculated award, so it infers entitlement " "immediately before abolition from current receipt. An outside " "adult's saved report does not keep the family's award. " - "A Universal Credit claim still " - "ends a saved award (housing_benefit_eligible). " + "A Universal Credit claim ends an ESA-saved continuing award; " + "specified or temporary accommodation Housing Benefit survives the " + "claim (housing_benefit_eligible). " "Other saved working-age awards are not modelled, so their awards " "wrongly end on the abolition date: qualifying HB claims during the " "final UC assessment period on reaching pension-credit age, with " diff --git a/policyengine_uk/variables/gov/dwp/universal_credit/claims_uc_at_legacy_closure.py b/policyengine_uk/variables/gov/dwp/universal_credit/claims_uc_at_legacy_closure.py index ae44d31a3c..0e4d7d0ff9 100644 --- a/policyengine_uk/variables/gov/dwp/universal_credit/claims_uc_at_legacy_closure.py +++ b/policyengine_uk/variables/gov/dwp/universal_credit/claims_uc_at_legacy_closure.py @@ -17,12 +17,20 @@ class claims_uc_at_legacy_closure(Variable): "the income-related ESA award (esa_income_report_closed) and the " "Housing Benefit award (housing_benefit_eligible), except Housing " "Benefit for specified or temporary accommodation (SI 2014/1230 reg " - "8(3)). A family that does not claim keeps its income-related ESA and " - "its Housing Benefit for the part of 2026-27 before each abolition " - "reached it. From 2027-28 neither award is payable, and " - "legacy_benefits_closed moves a family whose income-related ESA has " - "ended. Housing Benefit for specified or temporary accommodation " - "continues." + "8(3)). Migration can end income-related ESA and a continuing " + "Housing Benefit award even without a Universal Credit claim. " + "For income-related ESA, an unsaved award reached by its abolition " + "is payable only for the part of 2026-27 before its abolition date " + "if the family does not claim Universal Credit and migration has " + "not already ended it; that award is not payable from 2027-28. " + "For Housing Benefit, an unsaved award reached by its abolition " + "similarly remains payable only before its abolition date in " + "2026-27 if the family does not claim Universal Credit and migration " + "has not already ended it; that award is not payable from 2027-28. " + "Housing Benefit abolition does not itself end other legacy awards. " + "Awards saved from their respective abolition can continue. " + "Housing Benefit for specified or temporary accommodation survives " + "migration and a Universal Credit claim." ) definition_period = YEAR reference = ( From c839f8cac685eff68847d54bf50ac8db4e039b71 Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Mon, 16 Nov 2026 22:43:13 -0500 Subject: [PATCH 24/40] Retain accommodation new claims in Housing Benefit take-up metadata The take-up description incorrectly limited working-age families to old awards and described abolition without its savings. Explicitly keep new specified and temporary accommodation claims and restrict the dated abolition statement to unsaved awards. Co-Authored-By: GPT-6.1 Sol --- .../parameters/gov/dwp/housing_benefit/takeup.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/policyengine_uk/parameters/gov/dwp/housing_benefit/takeup.yaml b/policyengine_uk/parameters/gov/dwp/housing_benefit/takeup.yaml index 5a8ddfe51e..aa35575aed 100644 --- a/policyengine_uk/parameters/gov/dwp/housing_benefit/takeup.yaml +++ b/policyengine_uk/parameters/gov/dwp/housing_benefit/takeup.yaml @@ -3,9 +3,10 @@ description: Share of eligible Housing Benefit recipients that participate. The true only for families that report Housing Benefit, the rule Council Tax Reduction also follows (PolicyEngine UK pull request 1831). Hand-entered households use reported Housing Benefit or their per-benefit-unit claims_all_entitled_benefits - flag. Direct take-up inputs override either default. Pension-age families can - make new claims; working-age families only continued existing awards, until those - were abolished on 1 July 2026 in Great Britain and 1 October 2026 in Northern + flag. Direct take-up inputs override either default. Pension-age families and + families in specified or temporary accommodation can make new claims. Other + working-age families can only continue existing awards; abolition reaches + unsaved awards on 1 July 2026 in Great Britain and 1 October 2026 in Northern Ireland. metadata: economy: false From e81bee4fb279dc5e276689cd2b6686ffe543b8cc Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Mon, 16 Nov 2026 22:46:02 -0500 Subject: [PATCH 25/40] Qualify part-year Housing Benefit by the family's UC claim The release note and notebook implied every continuing award gets the pre-abolition fraction. That fraction applies to an unsaved continuing award whose family does not claim Universal Credit; a claim ends the continuing award for the whole model year. State the condition explicitly in both places, editing only the notebook cell source string. Co-Authored-By: GPT-6.1 Sol --- changelog.d/abolish-working-age-housing-benefit.fixed.md | 2 +- docs/book/programs/gov/dwp/housing-benefit.ipynb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/changelog.d/abolish-working-age-housing-benefit.fixed.md b/changelog.d/abolish-working-age-housing-benefit.fixed.md index 6c7e0c814f..82048835ab 100644 --- a/changelog.d/abolish-working-age-housing-benefit.fixed.md +++ b/changelog.d/abolish-working-age-housing-benefit.fixed.md @@ -1 +1 @@ -- Abolish working-age Housing Benefit awards outside specified and temporary accommodation from 1 July 2026 in Great Britain (SI 2025/1148 art. 7, inserted by SI 2026/409) and 1 October 2026 in Northern Ireland (SR 2025/176 art. 7, inserted by SR 2026/115). The new `gov.dwp.housing_benefit.working_age_awards_payable` parameter is day-weighted across each fiscal year, so 2026-27 pays a working-age continuing award for 86/365 of the year in Great Britain and 178/365 in Northern Ireland, and from 2027-28 there is none. Families meeting the Pension Credit age conditions keep their awards: a single claimant or both members of a couple over the qualifying age, and mixed-age couples with the SI 2019/37 art. 4 saving (SI 2014/1230 reg 6A(4)-(5)), and so do families whose Housing Benefit claimant personally holds an income-related ESA award that the appointee saving keeps (art. 7(4)(b), `esa_income_appointee_saving`), requiring `housing_benefit_claimant_is_saved_esa_claimant` for couples. A family whose award is abolished claims Universal Credit if `would_claim_uc_at_legacy_closure` is true, which ends the claimant's and partner's income-related ESA. +- Abolish working-age Housing Benefit awards outside specified and temporary accommodation from 1 July 2026 in Great Britain (SI 2025/1148 art. 7, inserted by SI 2026/409) and 1 October 2026 in Northern Ireland (SR 2025/176 art. 7, inserted by SR 2026/115). The new `gov.dwp.housing_benefit.working_age_awards_payable` parameter is day-weighted across each fiscal year, so 2026-27 pays an unsaved continuing award whose family does not claim Universal Credit for 86/365 of the year in Great Britain and 178/365 in Northern Ireland, and from 2027-28 there is none. Families meeting the Pension Credit age conditions keep their awards: a single claimant or both members of a couple over the qualifying age, and mixed-age couples with the SI 2019/37 art. 4 saving (SI 2014/1230 reg 6A(4)-(5)), and so do families whose Housing Benefit claimant personally holds an income-related ESA award that the appointee saving keeps (art. 7(4)(b), `esa_income_appointee_saving`), requiring `housing_benefit_claimant_is_saved_esa_claimant` for couples. A family whose award is abolished claims Universal Credit if `would_claim_uc_at_legacy_closure` is true, which ends the claimant's and partner's income-related ESA. diff --git a/docs/book/programs/gov/dwp/housing-benefit.ipynb b/docs/book/programs/gov/dwp/housing-benefit.ipynb index fb6852a587..8c0a19038e 100644 --- a/docs/book/programs/gov/dwp/housing-benefit.ipynb +++ b/docs/book/programs/gov/dwp/housing-benefit.ipynb @@ -41,7 +41,7 @@ "\n", "In a `Simulation` reform dictionary, a bare-year key such as `2026` covers the entire fiscal year and can set its share to 1, and a date range applies over its stated dates. A key dated inside the year, such as `2026-07-01`, leaves that model year's share unchanged (86/365 for Great Britain in 2026), so use whole-year values or a range for annual reform scenarios.\n", "\n", - "`housing_benefit_payable_share` applies this per benunit. It is 1 when `in_specified_or_temporary_accommodation` is `True`, in every model year. It is also 1 for a benunit meeting the Pension Credit age conditions (`meets_pension_credit_age_conditions`): a single claimant, or both members of a couple, over the qualifying age (reg 6A(4)), or a mixed-age couple with the 2019 saving ([SI 2019/37 art. 4](https://www.legislation.gov.uk/uksi/2019/37/article/4); reg 6A(5)), which the model infers from current receipt. A mixed-age couple without the saving loses its award like a working-age family. It is 1, too, where the Housing Benefit claimant personally holds an income-related ESA award that the article 3A(2) appointee saving keeps (article 7(4)(b)). This requires a positive claimant/partner ESA report with `esa_income_appointee_saving` and, for a couple, supplied confirmation that its Housing Benefit claimant holds that saved ESA award (`housing_benefit_claimant_is_saved_esa_claimant`). That status defaults to `False`: an unidentified couple is unsaved. A sole claimant's own saved ESA report suffices. The model infers entitlement immediately before abolition from current receipt; an outside adult's own ESA award does not keep the family's award. For other benunits it is the share for their country. A working-age continuing award stays eligible while the share is above 0, and `housing_benefit_pre_benefit_cap` pays the entitlement times the share. An unprotected working-age continuing award in 2026 is therefore paid for the part of the year before the abolition, and there is none from 2027.\n", + "`housing_benefit_payable_share` applies this per benunit. It is 1 when `in_specified_or_temporary_accommodation` is `True`, in every model year. It is also 1 for a benunit meeting the Pension Credit age conditions (`meets_pension_credit_age_conditions`): a single claimant, or both members of a couple, over the qualifying age (reg 6A(4)), or a mixed-age couple with the 2019 saving ([SI 2019/37 art. 4](https://www.legislation.gov.uk/uksi/2019/37/article/4); reg 6A(5)), which the model infers from current receipt. A mixed-age couple without the saving loses its award like a working-age family. It is 1, too, where the Housing Benefit claimant personally holds an income-related ESA award that the article 3A(2) appointee saving keeps (article 7(4)(b)). This requires a positive claimant/partner ESA report with `esa_income_appointee_saving` and, for a couple, supplied confirmation that its Housing Benefit claimant holds that saved ESA award (`housing_benefit_claimant_is_saved_esa_claimant`). That status defaults to `False`: an unidentified couple is unsaved. A sole claimant's own saved ESA report suffices. The model infers entitlement immediately before abolition from current receipt; an outside adult's own ESA award does not keep the family's award. For other benunits it is the share for their country. A working-age continuing award stays eligible while the share is above 0, and `housing_benefit_pre_benefit_cap` pays the entitlement times the share. In 2026, an unsaved continuing award whose family does not claim Universal Credit is paid for the part of the year before the abolition, and there is none from 2027.\n", "\n", "A family whose award the abolition reaches claims Universal Credit if `would_claim_uc_at_legacy_closure` is true (`claims_uc_at_legacy_closure`), the same claim the model makes when DWP moves a family off another legacy benefit or the abolition of income-related ESA reaches its award. The claim ends the family's Housing Benefit and the claimant's and partner's income-related ESA, and Universal Credit is paid for the whole model year: the model does not split 2026-27 into Housing Benefit before the abolition date and Universal Credit after it. A family that does not claim keeps Housing Benefit for the part of 2026-27 before the abolition and gets none from 2027-28. A family that already claims Universal Credit (`would_claim_uc`) receives it instead of Housing Benefit in every year. `would_claim_uc_at_legacy_closure` defaults to true and no released dataset supplies it, so every unprotected working-age Housing Benefit recipient that doesn't already claim Universal Credit claims at the abolition, which is an upper bound. DWP's Move to Universal Credit statistics show that 97% of households sent a migration notice while on Housing Benefit and another legacy benefit claimed Universal Credit (98% of those also on Employment and Support Allowance), and 75% of Housing Benefit-only households did. Transitional protection, which went only to households that claimed after a migration notice, is not modelled.\n", "\n", From 8fc74b544ae90cac9cab6f678ef9970867c78d1a Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Mon, 16 Nov 2026 22:49:10 -0500 Subject: [PATCH 26/40] Describe the new accommodation saving in Towncrier fragments The accommodation input, new-claim route and Universal Credit housing cost exclusion already existed on main. Describe this PR's abolition saving instead of presenting those features as newly added. Remove the leading list marker from both fragments because Towncrier supplies it. Co-Authored-By: GPT-6.1 Sol --- changelog.d/abolish-working-age-housing-benefit.added.md | 2 +- changelog.d/abolish-working-age-housing-benefit.fixed.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/changelog.d/abolish-working-age-housing-benefit.added.md b/changelog.d/abolish-working-age-housing-benefit.added.md index e815895034..4ee27a334d 100644 --- a/changelog.d/abolish-working-age-housing-benefit.added.md +++ b/changelog.d/abolish-working-age-housing-benefit.added.md @@ -1 +1 @@ -- Added a specified or temporary accommodation input to preserve working-age Housing Benefit, permit new claims alongside Universal Credit and exclude the corresponding Universal Credit housing costs. +Preserve Housing Benefit in specified or temporary accommodation under the new working-age abolition saving (SI 2025/1148 art. 7(4)(a); SR 2025/176 art. 7(4)(a)). diff --git a/changelog.d/abolish-working-age-housing-benefit.fixed.md b/changelog.d/abolish-working-age-housing-benefit.fixed.md index 82048835ab..e743205b11 100644 --- a/changelog.d/abolish-working-age-housing-benefit.fixed.md +++ b/changelog.d/abolish-working-age-housing-benefit.fixed.md @@ -1 +1 @@ -- Abolish working-age Housing Benefit awards outside specified and temporary accommodation from 1 July 2026 in Great Britain (SI 2025/1148 art. 7, inserted by SI 2026/409) and 1 October 2026 in Northern Ireland (SR 2025/176 art. 7, inserted by SR 2026/115). The new `gov.dwp.housing_benefit.working_age_awards_payable` parameter is day-weighted across each fiscal year, so 2026-27 pays an unsaved continuing award whose family does not claim Universal Credit for 86/365 of the year in Great Britain and 178/365 in Northern Ireland, and from 2027-28 there is none. Families meeting the Pension Credit age conditions keep their awards: a single claimant or both members of a couple over the qualifying age, and mixed-age couples with the SI 2019/37 art. 4 saving (SI 2014/1230 reg 6A(4)-(5)), and so do families whose Housing Benefit claimant personally holds an income-related ESA award that the appointee saving keeps (art. 7(4)(b), `esa_income_appointee_saving`), requiring `housing_benefit_claimant_is_saved_esa_claimant` for couples. A family whose award is abolished claims Universal Credit if `would_claim_uc_at_legacy_closure` is true, which ends the claimant's and partner's income-related ESA. +Abolish working-age Housing Benefit awards outside specified and temporary accommodation from 1 July 2026 in Great Britain (SI 2025/1148 art. 7, inserted by SI 2026/409) and 1 October 2026 in Northern Ireland (SR 2025/176 art. 7, inserted by SR 2026/115). The new `gov.dwp.housing_benefit.working_age_awards_payable` parameter is day-weighted across each fiscal year, so 2026-27 pays an unsaved continuing award whose family does not claim Universal Credit for 86/365 of the year in Great Britain and 178/365 in Northern Ireland, and from 2027-28 there is none. Families meeting the Pension Credit age conditions keep their awards: a single claimant or both members of a couple over the qualifying age, and mixed-age couples with the SI 2019/37 art. 4 saving (SI 2014/1230 reg 6A(4)-(5)), and so do families whose Housing Benefit claimant personally holds an income-related ESA award that the appointee saving keeps (art. 7(4)(b), `esa_income_appointee_saving`), requiring `housing_benefit_claimant_is_saved_esa_claimant` for couples. A family whose award is abolished claims Universal Credit if `would_claim_uc_at_legacy_closure` is true, which ends the claimant's and partner's income-related ESA. From 4f2d94ffc2dc10b16e82f9d37e9602b291a57f25 Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Tue, 17 Nov 2026 01:51:11 -0500 Subject: [PATCH 27/40] Correct the Housing Benefit notebook's eligibility route count The eligibility text enumerates pension age, specified or temporary accommodation, and continuing awards. Say three routes to match that list. Change only the JSON cell source string and retain valid notebook JSON. Remove the serial-test scratch directory before this final step. Co-Authored-By: GPT-6.1 Sol --- docs/book/programs/gov/dwp/housing-benefit.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/book/programs/gov/dwp/housing-benefit.ipynb b/docs/book/programs/gov/dwp/housing-benefit.ipynb index 8c0a19038e..e0942939b1 100644 --- a/docs/book/programs/gov/dwp/housing-benefit.ipynb +++ b/docs/book/programs/gov/dwp/housing-benefit.ipynb @@ -19,7 +19,7 @@ "source": [ "## Eligibility\n", "\n", - "`housing_benefit_eligible` requires the benunit to be either in **social housing** or eligible for the **Local Housing Allowance** rate (broadly, private renters), with assessable capital at or below the working-age (or pension-age) capital limit, and to reach Housing Benefit by one of two routes:\n", + "`housing_benefit_eligible` requires the benunit to be either in **social housing** or eligible for the **Local Housing Allowance** rate (broadly, private renters), with assessable capital at or below the working-age (or pension-age) capital limit, and to reach Housing Benefit by one of three routes:\n", "\n", "- **Pension age**: the claimant and any partner have reached the qualifying age for State Pension Credit (State Pension age), or the family is a mixed-age couple that keeps the pension-age route: one entitled to Pension Credit or pension-age Housing Benefit on 14 May 2019 and ever since ([SI 2019/37 art. 4](https://www.legislation.gov.uk/uksi/2019/37/article/4)), or any mixed-age couple not reported on Universal Credit before 15 May 2019 (`meets_pension_credit_age_conditions`). New Housing Benefit claims are open to them ([SI 2014/1230 reg. 6A(4) and (5)](https://www.legislation.gov.uk/uksi/2014/1230/regulation/6A)), and Universal Credit is not, so neither a previous claim nor `would_claim_uc` matters.\n", "- **Specified or temporary accommodation**: `in_specified_or_temporary_accommodation` is a boolean benunit input, defaulting to `False`. When supplied as `True`, it permits new Housing Benefit claims without a reported previous award, under [SI 2014/1230 reg. 6A(2)](https://www.legislation.gov.uk/uksi/2014/1230/regulation/6A) and [SR 2016/226 reg. 4A(2)](https://www.legislation.gov.uk/nisr/2016/226/regulation/4A). The input refers to the statutory definitions: [GB specified accommodation](https://www.legislation.gov.uk/uksi/2013/376/schedule/1/paragraph/3A) and [temporary accommodation](https://www.legislation.gov.uk/uksi/2013/376/schedule/1/paragraph/3B), and their [NI specified](https://www.legislation.gov.uk/nisr/2016/216/schedule/1/paragraph/4) and [temporary](https://www.legislation.gov.uk/nisr/2016/216/schedule/1/paragraph/4A) equivalents. It is not inferred from tenure or a general supported-housing label.\n", From 77d94239badef2b5dc6053d46bdc93647ec01745 Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Tue, 17 Nov 2026 02:14:32 -0500 Subject: [PATCH 28/40] Identify the ESA-saved Housing Benefit claimant from the reports Art. 7(4)(b) saves an award only where the Housing Benefit claimant holds the saved income-related ESA award. This commit answers both round-2 P1 findings in one expression. The sole-claimant shortcut saved any family with exactly one is_claimant_or_partner. An unmarked adult in the benefit unit could report the Housing Benefit, and the marked claimant's saved ESA then kept it, even with the supplied status false. The false default also discarded couples whose Housing Benefit and saved ESA reports are on the same member. housing_benefit_payable_share now uses the Housing Benefit reporter as the claimant, as has_mixed_age_couple_pension_credit_saving does, counting reporters over every member as housing_benefit_eligible does. The saving applies when exactly one member reports Housing Benefit and has the saved report; when no member reports it and a sole claimant has the saved report; or when housing_benefit_claimant_is_saved_esa_claimant confirms the identity and a claimant or partner has it. Two reporters, a reporter without the saved report and an unconfirmed couple stay unsaved. The formula still reads only reports, flags and roles. New YAML cases cover GB and NI 2026-27 and GB 2027-28: the outside reporter, same reporter with no or false status, different reporters with no or true status, two reporters, and a sole claimant without a report. No existing expected value changed; the stale YAML comments, the input's documentation and the changelog fragment now describe the reporter rule. Co-Authored-By: Claude Opus 5.5 --- ...olish-working-age-housing-benefit.fixed.md | 2 +- ...housing_benefit_working_age_abolition.yaml | 428 +++++++++++++++++- ..._benefit_claimant_is_saved_esa_claimant.py | 27 +- .../housing_benefit_payable_share.py | 70 ++- 4 files changed, 486 insertions(+), 41 deletions(-) diff --git a/changelog.d/abolish-working-age-housing-benefit.fixed.md b/changelog.d/abolish-working-age-housing-benefit.fixed.md index e743205b11..c984316886 100644 --- a/changelog.d/abolish-working-age-housing-benefit.fixed.md +++ b/changelog.d/abolish-working-age-housing-benefit.fixed.md @@ -1 +1 @@ -Abolish working-age Housing Benefit awards outside specified and temporary accommodation from 1 July 2026 in Great Britain (SI 2025/1148 art. 7, inserted by SI 2026/409) and 1 October 2026 in Northern Ireland (SR 2025/176 art. 7, inserted by SR 2026/115). The new `gov.dwp.housing_benefit.working_age_awards_payable` parameter is day-weighted across each fiscal year, so 2026-27 pays an unsaved continuing award whose family does not claim Universal Credit for 86/365 of the year in Great Britain and 178/365 in Northern Ireland, and from 2027-28 there is none. Families meeting the Pension Credit age conditions keep their awards: a single claimant or both members of a couple over the qualifying age, and mixed-age couples with the SI 2019/37 art. 4 saving (SI 2014/1230 reg 6A(4)-(5)), and so do families whose Housing Benefit claimant personally holds an income-related ESA award that the appointee saving keeps (art. 7(4)(b), `esa_income_appointee_saving`), requiring `housing_benefit_claimant_is_saved_esa_claimant` for couples. A family whose award is abolished claims Universal Credit if `would_claim_uc_at_legacy_closure` is true, which ends the claimant's and partner's income-related ESA. +Abolish working-age Housing Benefit awards outside specified and temporary accommodation from 1 July 2026 in Great Britain (SI 2025/1148 art. 7, inserted by SI 2026/409) and 1 October 2026 in Northern Ireland (SR 2025/176 art. 7, inserted by SR 2026/115). The new `gov.dwp.housing_benefit.working_age_awards_payable` parameter is day-weighted across each fiscal year, so 2026-27 pays an unsaved continuing award whose family does not claim Universal Credit for 86/365 of the year in Great Britain and 178/365 in Northern Ireland, and from 2027-28 there is none. Families meeting the Pension Credit age conditions keep their awards: a single claimant or both members of a couple over the qualifying age, and mixed-age couples with the SI 2019/37 art. 4 saving (SI 2014/1230 reg 6A(4)-(5)), and so do families whose Housing Benefit claimant personally holds an income-related ESA award that the appointee saving keeps (art. 7(4)(b), `esa_income_appointee_saving`): the model takes the only member reporting Housing Benefit, or a sole claimant where no member reports it, as the Housing Benefit claimant, and `housing_benefit_claimant_is_saved_esa_claimant` can confirm the identity where the reports do not show it. A family whose award is abolished claims Universal Credit if `would_claim_uc_at_legacy_closure` is true, which ends the claimant's and partner's income-related ESA. diff --git a/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_working_age_abolition.yaml b/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_working_age_abolition.yaml index fcd7ca2dc9..713e21187e 100644 --- a/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_working_age_abolition.yaml +++ b/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_working_age_abolition.yaml @@ -642,10 +642,11 @@ # Art. 7(4)(b) (NI: SR 2025/176 art. 7(4)(b)) saves an award where, # immediately before the abolition date, the claimant is entitled to -# income-related ESA that the art. 3A(2) appointee saving keeps. A couple -# must supply confirmation that the saved ESA claimant also claims Housing -# Benefit; a sole claimant's own saved report suffices. An outside adult's -# saved report does not keep the family's award. +# income-related ESA that the art. 3A(2) appointee saving keeps. The claimant +# is the Housing Benefit claimant: the only member reporting Housing Benefit, +# a sole claimant when no member reports it, or the saved ESA claimant where +# housing_benefit_claimant_is_saved_esa_claimant confirms it. An outside +# adult's saved report does not keep the family's award. - name: GB award with an appointee's income-related ESA is paid in full in 2026 and prompts no claim period: 2026 @@ -925,8 +926,9 @@ members: [single_head] region: LONDON output: - # The head's Housing Benefit report does not identify its legal claimant. - # Only the supplied same-person status or a sole saved claimant suffices. + # Each couple's head reports Housing Benefit without the saved ESA, so only + # the supplied status, with a saved ESA report, keeps the award. The sole + # claimant reports both. housing_benefit_payable_share: [1, 0.235616, 0.235616, 0.235616, 0.235616, 1] claims_uc_at_legacy_closure: [false, true, true, true, true, false] @@ -1035,8 +1037,9 @@ members: [single_head] region: NORTHERN_IRELAND output: - # The head's Housing Benefit report does not identify its legal claimant. - # Only the supplied same-person status or a sole saved claimant suffices. + # Each couple's head reports Housing Benefit without the saved ESA, so only + # the supplied status, with a saved ESA report, keeps the award. The sole + # claimant reports both. housing_benefit_payable_share: [1, 0.487671, 0.487671, 0.487671, 0.487671, 1] claims_uc_at_legacy_closure: [false, true, true, true, true, false] @@ -1145,8 +1148,9 @@ members: [single_head] region: LONDON output: - # The head's Housing Benefit report does not identify its legal claimant. - # Only the supplied same-person status or a sole saved claimant suffices. + # Each couple's head reports Housing Benefit without the saved ESA, so only + # the supplied status, with a saved ESA report, keeps the award. The sole + # claimant reports both. housing_benefit_payable_share: [1, 0, 0, 0, 0, 1] claims_uc_at_legacy_closure: [false, true, true, true, true, false] @@ -1255,7 +1259,407 @@ members: [single_head] region: NORTHERN_IRELAND output: - # The head's Housing Benefit report does not identify its legal claimant. - # Only the supplied same-person status or a sole saved claimant suffices. + # Each couple's head reports Housing Benefit without the saved ESA, so only + # the supplied status, with a saved ESA report, keeps the award. The sole + # claimant reports both. housing_benefit_payable_share: [1, 0, 0, 0, 0, 1] claims_uc_at_legacy_closure: [false, true, true, true, true, false] + +- name: GB Housing Benefit reports identify the ESA-saved claimant in 2026 + # Without the supplied status, the only member reporting Housing Benefit + # is the Housing Benefit claimant. A sole claimant's saved ESA does not keep + # an award that another adult in the benefit unit reports, even with the + # status false. A couple keeps an award reported by the partner with the + # saved ESA, and a false status does not remove that identity. Reports on + # different members save only with the status true, and a second reporter + # leaves the claimant unidentified. A sole claimant with the saved report + # and no Housing Benefit report has no competing reporter. + period: 2026 + absolute_error_margin: 0.0001 + input: + people: + outside_reporter_claimant: + age: 40 + is_claimant_or_partner: true + esa_income_reported: 5_000 + esa_income_appointee_saving: true + outside_reporter_adult: + age: 30 + is_claimant_or_partner: false + current_education: NOT_IN_EDUCATION + housing_benefit_reported: 1 + same_reporter_head: + age: 40 + is_claimant_or_partner: true + same_reporter_partner: + age: 40 + is_claimant_or_partner: true + housing_benefit_reported: 1 + esa_income_reported: 5_000 + esa_income_appointee_saving: true + same_reporter_false_head: + age: 40 + is_claimant_or_partner: true + same_reporter_false_partner: + age: 40 + is_claimant_or_partner: true + housing_benefit_reported: 1 + esa_income_reported: 5_000 + esa_income_appointee_saving: true + different_reporter_head: + age: 40 + is_claimant_or_partner: true + housing_benefit_reported: 1 + different_reporter_partner: + age: 40 + is_claimant_or_partner: true + esa_income_reported: 5_000 + esa_income_appointee_saving: true + different_confirmed_head: + age: 40 + is_claimant_or_partner: true + housing_benefit_reported: 1 + different_confirmed_partner: + age: 40 + is_claimant_or_partner: true + esa_income_reported: 5_000 + esa_income_appointee_saving: true + two_reporters_head: + age: 40 + is_claimant_or_partner: true + housing_benefit_reported: 1 + esa_income_reported: 5_000 + esa_income_appointee_saving: true + two_reporters_partner: + age: 40 + is_claimant_or_partner: true + housing_benefit_reported: 1 + sole_unreported_claimant: + age: 40 + is_claimant_or_partner: true + esa_income_reported: 5_000 + esa_income_appointee_saving: true + benunits: + outside_reporter: + members: [outside_reporter_claimant, outside_reporter_adult] + would_claim_uc: false + would_claim_uc_at_legacy_closure: true + housing_benefit_claimant_is_saved_esa_claimant: false + same_reporter: + members: [same_reporter_head, same_reporter_partner] + would_claim_uc: false + would_claim_uc_at_legacy_closure: true + same_reporter_false: + members: [same_reporter_false_head, same_reporter_false_partner] + would_claim_uc: false + would_claim_uc_at_legacy_closure: true + housing_benefit_claimant_is_saved_esa_claimant: false + different_reporter: + members: [different_reporter_head, different_reporter_partner] + would_claim_uc: false + would_claim_uc_at_legacy_closure: true + different_confirmed: + members: [different_confirmed_head, different_confirmed_partner] + would_claim_uc: false + would_claim_uc_at_legacy_closure: true + housing_benefit_claimant_is_saved_esa_claimant: true + two_reporters: + members: [two_reporters_head, two_reporters_partner] + would_claim_uc: false + would_claim_uc_at_legacy_closure: true + sole_unreported: + members: [sole_unreported_claimant] + would_claim_uc: false + would_claim_uc_at_legacy_closure: true + households: + outside_reporter: + members: [outside_reporter_claimant, outside_reporter_adult] + region: LONDON + same_reporter: + members: [same_reporter_head, same_reporter_partner] + region: LONDON + same_reporter_false: + members: [same_reporter_false_head, same_reporter_false_partner] + region: LONDON + different_reporter: + members: [different_reporter_head, different_reporter_partner] + region: LONDON + different_confirmed: + members: [different_confirmed_head, different_confirmed_partner] + region: LONDON + two_reporters: + members: [two_reporters_head, two_reporters_partner] + region: LONDON + sole_unreported: + members: [sole_unreported_claimant] + region: LONDON + output: + housing_benefit_payable_share: [0.235616, 1, 1, 0.235616, 1, 0.235616, 1] + # Only a reported award the abolition reaches prompts the claim. + claims_uc_at_legacy_closure: [true, false, false, true, false, true, false] + +- name: NI Housing Benefit reports identify the ESA-saved claimant in 2026 + # Without the supplied status, the only member reporting Housing Benefit + # is the Housing Benefit claimant. A sole claimant's saved ESA does not keep + # an award that another adult in the benefit unit reports, even with the + # status false. A couple keeps an award reported by the partner with the + # saved ESA, and a false status does not remove that identity. Reports on + # different members save only with the status true, and a second reporter + # leaves the claimant unidentified. A sole claimant with the saved report + # and no Housing Benefit report has no competing reporter. + period: 2026 + absolute_error_margin: 0.0001 + input: + people: + outside_reporter_claimant: + age: 40 + is_claimant_or_partner: true + esa_income_reported: 5_000 + esa_income_appointee_saving: true + outside_reporter_adult: + age: 30 + is_claimant_or_partner: false + current_education: NOT_IN_EDUCATION + housing_benefit_reported: 1 + same_reporter_head: + age: 40 + is_claimant_or_partner: true + same_reporter_partner: + age: 40 + is_claimant_or_partner: true + housing_benefit_reported: 1 + esa_income_reported: 5_000 + esa_income_appointee_saving: true + same_reporter_false_head: + age: 40 + is_claimant_or_partner: true + same_reporter_false_partner: + age: 40 + is_claimant_or_partner: true + housing_benefit_reported: 1 + esa_income_reported: 5_000 + esa_income_appointee_saving: true + different_reporter_head: + age: 40 + is_claimant_or_partner: true + housing_benefit_reported: 1 + different_reporter_partner: + age: 40 + is_claimant_or_partner: true + esa_income_reported: 5_000 + esa_income_appointee_saving: true + different_confirmed_head: + age: 40 + is_claimant_or_partner: true + housing_benefit_reported: 1 + different_confirmed_partner: + age: 40 + is_claimant_or_partner: true + esa_income_reported: 5_000 + esa_income_appointee_saving: true + two_reporters_head: + age: 40 + is_claimant_or_partner: true + housing_benefit_reported: 1 + esa_income_reported: 5_000 + esa_income_appointee_saving: true + two_reporters_partner: + age: 40 + is_claimant_or_partner: true + housing_benefit_reported: 1 + sole_unreported_claimant: + age: 40 + is_claimant_or_partner: true + esa_income_reported: 5_000 + esa_income_appointee_saving: true + benunits: + outside_reporter: + members: [outside_reporter_claimant, outside_reporter_adult] + would_claim_uc: false + would_claim_uc_at_legacy_closure: true + housing_benefit_claimant_is_saved_esa_claimant: false + same_reporter: + members: [same_reporter_head, same_reporter_partner] + would_claim_uc: false + would_claim_uc_at_legacy_closure: true + same_reporter_false: + members: [same_reporter_false_head, same_reporter_false_partner] + would_claim_uc: false + would_claim_uc_at_legacy_closure: true + housing_benefit_claimant_is_saved_esa_claimant: false + different_reporter: + members: [different_reporter_head, different_reporter_partner] + would_claim_uc: false + would_claim_uc_at_legacy_closure: true + different_confirmed: + members: [different_confirmed_head, different_confirmed_partner] + would_claim_uc: false + would_claim_uc_at_legacy_closure: true + housing_benefit_claimant_is_saved_esa_claimant: true + two_reporters: + members: [two_reporters_head, two_reporters_partner] + would_claim_uc: false + would_claim_uc_at_legacy_closure: true + sole_unreported: + members: [sole_unreported_claimant] + would_claim_uc: false + would_claim_uc_at_legacy_closure: true + households: + outside_reporter: + members: [outside_reporter_claimant, outside_reporter_adult] + region: NORTHERN_IRELAND + same_reporter: + members: [same_reporter_head, same_reporter_partner] + region: NORTHERN_IRELAND + same_reporter_false: + members: [same_reporter_false_head, same_reporter_false_partner] + region: NORTHERN_IRELAND + different_reporter: + members: [different_reporter_head, different_reporter_partner] + region: NORTHERN_IRELAND + different_confirmed: + members: [different_confirmed_head, different_confirmed_partner] + region: NORTHERN_IRELAND + two_reporters: + members: [two_reporters_head, two_reporters_partner] + region: NORTHERN_IRELAND + sole_unreported: + members: [sole_unreported_claimant] + region: NORTHERN_IRELAND + output: + housing_benefit_payable_share: [0.487671, 1, 1, 0.487671, 1, 0.487671, 1] + # Only a reported award the abolition reaches prompts the claim. + claims_uc_at_legacy_closure: [true, false, false, true, false, true, false] + +- name: GB Housing Benefit reports identify the ESA-saved claimant in 2027 + # Without the supplied status, the only member reporting Housing Benefit + # is the Housing Benefit claimant. A sole claimant's saved ESA does not keep + # an award that another adult in the benefit unit reports, even with the + # status false. A couple keeps an award reported by the partner with the + # saved ESA, and a false status does not remove that identity. Reports on + # different members save only with the status true, and a second reporter + # leaves the claimant unidentified. A sole claimant with the saved report + # and no Housing Benefit report has no competing reporter. + period: 2027 + absolute_error_margin: 0.0001 + input: + people: + outside_reporter_claimant: + age: 40 + is_claimant_or_partner: true + esa_income_reported: 5_000 + esa_income_appointee_saving: true + outside_reporter_adult: + age: 30 + is_claimant_or_partner: false + current_education: NOT_IN_EDUCATION + housing_benefit_reported: 1 + same_reporter_head: + age: 40 + is_claimant_or_partner: true + same_reporter_partner: + age: 40 + is_claimant_or_partner: true + housing_benefit_reported: 1 + esa_income_reported: 5_000 + esa_income_appointee_saving: true + same_reporter_false_head: + age: 40 + is_claimant_or_partner: true + same_reporter_false_partner: + age: 40 + is_claimant_or_partner: true + housing_benefit_reported: 1 + esa_income_reported: 5_000 + esa_income_appointee_saving: true + different_reporter_head: + age: 40 + is_claimant_or_partner: true + housing_benefit_reported: 1 + different_reporter_partner: + age: 40 + is_claimant_or_partner: true + esa_income_reported: 5_000 + esa_income_appointee_saving: true + different_confirmed_head: + age: 40 + is_claimant_or_partner: true + housing_benefit_reported: 1 + different_confirmed_partner: + age: 40 + is_claimant_or_partner: true + esa_income_reported: 5_000 + esa_income_appointee_saving: true + two_reporters_head: + age: 40 + is_claimant_or_partner: true + housing_benefit_reported: 1 + esa_income_reported: 5_000 + esa_income_appointee_saving: true + two_reporters_partner: + age: 40 + is_claimant_or_partner: true + housing_benefit_reported: 1 + sole_unreported_claimant: + age: 40 + is_claimant_or_partner: true + esa_income_reported: 5_000 + esa_income_appointee_saving: true + benunits: + outside_reporter: + members: [outside_reporter_claimant, outside_reporter_adult] + would_claim_uc: false + would_claim_uc_at_legacy_closure: true + housing_benefit_claimant_is_saved_esa_claimant: false + same_reporter: + members: [same_reporter_head, same_reporter_partner] + would_claim_uc: false + would_claim_uc_at_legacy_closure: true + same_reporter_false: + members: [same_reporter_false_head, same_reporter_false_partner] + would_claim_uc: false + would_claim_uc_at_legacy_closure: true + housing_benefit_claimant_is_saved_esa_claimant: false + different_reporter: + members: [different_reporter_head, different_reporter_partner] + would_claim_uc: false + would_claim_uc_at_legacy_closure: true + different_confirmed: + members: [different_confirmed_head, different_confirmed_partner] + would_claim_uc: false + would_claim_uc_at_legacy_closure: true + housing_benefit_claimant_is_saved_esa_claimant: true + two_reporters: + members: [two_reporters_head, two_reporters_partner] + would_claim_uc: false + would_claim_uc_at_legacy_closure: true + sole_unreported: + members: [sole_unreported_claimant] + would_claim_uc: false + would_claim_uc_at_legacy_closure: true + households: + outside_reporter: + members: [outside_reporter_claimant, outside_reporter_adult] + region: LONDON + same_reporter: + members: [same_reporter_head, same_reporter_partner] + region: LONDON + same_reporter_false: + members: [same_reporter_false_head, same_reporter_false_partner] + region: LONDON + different_reporter: + members: [different_reporter_head, different_reporter_partner] + region: LONDON + different_confirmed: + members: [different_confirmed_head, different_confirmed_partner] + region: LONDON + two_reporters: + members: [two_reporters_head, two_reporters_partner] + region: LONDON + sole_unreported: + members: [sole_unreported_claimant] + region: LONDON + output: + housing_benefit_payable_share: [0, 1, 1, 0, 1, 0, 1] + # Only a reported award the abolition reaches prompts the claim. + claims_uc_at_legacy_closure: [true, false, false, true, false, true, false] diff --git a/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_claimant_is_saved_esa_claimant.py b/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_claimant_is_saved_esa_claimant.py index ca24bca63c..15b5e293bd 100644 --- a/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_claimant_is_saved_esa_claimant.py +++ b/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_claimant_is_saved_esa_claimant.py @@ -12,17 +12,22 @@ class housing_benefit_claimant_is_saved_esa_claimant(Variable): "holds the income-related ESA award protected by the art. 3A(2) " "appointee saving immediately before abolition (1 July 2026 in " "Great Britain; 1 October 2026 in Northern Ireland). A partner's " - "entitlement alone does not satisfy art. 7(4)(b). The model otherwise " - "does not identify the Housing Benefit claimant; neither the benefit " - "unit head nor its Housing Benefit reporter establishes that identity. " - "Missing input defaults to false: housing_benefit_payable_share " - "applies no ESA saving to a couple without this confirmation. It " - "can infer the identity only for a sole claimant (exactly one " - "is_claimant_or_partner), whose own positive ESA report has the " - "appointee saving. In either case a positive claimant/partner ESA " - "report with esa_income_appointee_saving is required. No dataset " - "mapping is verified. This is a claimant-specific status, not a " - "calculation of ESA entitlement." + "entitlement alone does not satisfy art. 7(4)(b). True confirms the " + "identity: housing_benefit_payable_share then saves the award when a " + "claimant or partner has a positive ESA report with " + "esa_income_appointee_saving. False, the default, leaves the " + "identity to the reports. The model uses the Housing Benefit " + "reporter as the Housing Benefit claimant, as " + "has_mixed_age_couple_pension_credit_saving does, so the saving " + "applies when exactly one member reports Housing Benefit and that " + "member is a claimant or partner with the saved ESA report, or, when " + "no member reports Housing Benefit, a sole claimant (exactly one " + "is_claimant_or_partner) has that report. False cannot remove an " + "identity the reports establish. Supply true where the reports do " + "not show it, for example a couple whose Housing Benefit and saved " + "ESA reports are on different members. No dataset mapping is " + "verified. This is a claimant-specific status, not a calculation of " + "ESA entitlement." ) reference = ( "https://www.legislation.gov.uk/uksi/2025/1148/article/7", diff --git a/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_payable_share.py b/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_payable_share.py index f2a2e860da..12d2018fba 100644 --- a/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_payable_share.py +++ b/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_payable_share.py @@ -20,15 +20,23 @@ class housing_benefit_payable_share(Variable): "6A(4) and (5), through art. 7(4)(a)) is the second; a mixed-age " "couple without the saving does not keep its award. The third is a " "family whose Housing Benefit claimant personally holds a saved " - "income-related ESA award (art. 7(4)(b)). A positive claimant/partner " - "ESA report with esa_income_appointee_saving is required, together " - "with housing_benefit_claimant_is_saved_esa_claimant for a couple. " - "That supplied status defaults to false: without it a couple is " - "unsaved, because the model does not identify its Housing Benefit " - "claimant. A sole claimant's own saved report suffices. The model " - "reads reports, not a calculated award, so it infers entitlement " - "immediately before abolition from current receipt. An outside " - "adult's saved report does not keep the family's award. " + "income-related ESA award (art. 7(4)(b)); a partner's award alone " + "does not save it. A saved award is a positive claimant/partner ESA " + "report with esa_income_appointee_saving. The model uses the Housing " + "Benefit reporter as the Housing Benefit claimant, as " + "has_mixed_age_couple_pension_credit_saving does. So the family is " + "saved when exactly one member reports Housing Benefit and that " + "member has the saved award; when no member reports Housing Benefit " + "and a sole claimant (exactly one is_claimant_or_partner) has it; or " + "when housing_benefit_claimant_is_saved_esa_claimant confirms the " + "identity and a claimant or partner has it. That supplied status " + "defaults to false, which leaves the identity to the reports; false " + "cannot remove an identity they establish. Without the confirmation, " + "a family with two Housing Benefit reporters, a reporter without the " + "saved award, or a couple with no Housing Benefit report is unsaved. " + "The model reads reports, not a calculated award, so it infers " + "entitlement immediately before abolition from current receipt. An " + "outside adult's saved report does not keep the family's award. " "A Universal Credit claim ends an ESA-saved continuing award; " "specified or temporary accommodation Housing Benefit survives the " "claim (housing_benefit_eligible). " @@ -80,22 +88,50 @@ def formula(benunit, period, parameters): # Art. 7(4)(b) (NI: art. 7(4)(b)) saves an award where, immediately # before the abolition date, the claimant is entitled to # income-related ESA and the art. 3A(2) appointee saving applies. - # Sharing an ESA assessment does not make its partner the HB claimant. - # Use a supplied claimant-specific status, like HB's main-phase ESA - # input, rather than inventing a general HB claimant identity. Missing - # status saves only a sole claimant with their own saved report. + # "The claimant" is the Housing Benefit claimant: a partner's saved + # award alone does not save it. A saved award is a claimant or + # partner's positive ESA report with the appointee saving. As in + # has_mixed_age_couple_pension_credit_saving, the Housing Benefit + # reporter is the Housing Benefit claimant. Reporters are counted + # over every member, as housing_benefit_eligible counts the award, + # so an adult outside the claimant/partner mask who reports Housing + # Benefit competes. The identity holds when: + # (a) exactly one member reports Housing Benefit and has the saved + # award; + # (b) no member reports Housing Benefit and the sole claimant + # (exactly one is_claimant_or_partner) has it. Without a report + # no reader of this share changes an amount (the continuing award, + # the abolition claim and the Tax-Free Childcare choice all need + # one), so this shows only in the share itself or through a + # supplied housing_benefit_eligible; or + # (c) housing_benefit_claimant_is_saved_esa_claimant confirms it and + # a claimant or partner has the saved award. + # True confirms the identity. False, the default, leaves it to the + # reports and cannot remove an identity they establish. Anything + # else (two reporters, a reporter without the saved award, a couple + # with neither a report nor the confirmation) is unsaved. # Read reports and flags, never calculated ESA: it depends on the UC # claim that this share can itself trigger. person = benunit.members claimant_or_partner = person("is_claimant_or_partner", period) - saved_esa_report = benunit.any( + saved_esa = ( claimant_or_partner & (person("esa_income_reported", period) > 0) & person("esa_income_appointee_saving", period) ) - same_claimant = (benunit.sum(claimant_or_partner) == 1) | benunit( - "housing_benefit_claimant_is_saved_esa_claimant", period + any_saved_esa = benunit.any(saved_esa) + hb_reporter = person("housing_benefit_reported", period) > 0 + hb_reporters = benunit.sum(hb_reporter) + reporter_saved = (hb_reporters == 1) & benunit.any(hb_reporter & saved_esa) + sole_claimant_saved = ( + (hb_reporters == 0) + & (benunit.sum(claimant_or_partner) == 1) + & any_saved_esa ) - esa_income_saving = saved_esa_report & same_claimant + confirmed = ( + benunit("housing_benefit_claimant_is_saved_esa_claimant", period) + & any_saved_esa + ) + esa_income_saving = reporter_saved | sole_claimant_saved | confirmed saved = pension_age_saving | protected_accommodation | esa_income_saving return where(saved, 1, working_age_share) From ee5e2a320fbed126dbe3009f5f15fe23b048a160 Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Tue, 17 Nov 2026 02:14:39 -0500 Subject: [PATCH 29/40] Describe the reporter rule for the ESA saving in eligibility docs The housing_benefit_eligible documentation and the Housing Benefit notebook still said a couple must supply housing_benefit_claimant_is_saved_esa_claimant. After the previous commit, the payable share also saves a couple whose only Housing Benefit reporter has the saved ESA report, so both now describe the reporter rule and the supplied confirmation. Only the docstring and the notebook cell's source string change; the notebook stays valid JSON. Co-Authored-By: Claude Opus 5.5 --- docs/book/programs/gov/dwp/housing-benefit.ipynb | 2 +- .../dwp/housing_benefit/housing_benefit_eligible.py | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/docs/book/programs/gov/dwp/housing-benefit.ipynb b/docs/book/programs/gov/dwp/housing-benefit.ipynb index e0942939b1..61f67aa53c 100644 --- a/docs/book/programs/gov/dwp/housing-benefit.ipynb +++ b/docs/book/programs/gov/dwp/housing-benefit.ipynb @@ -41,7 +41,7 @@ "\n", "In a `Simulation` reform dictionary, a bare-year key such as `2026` covers the entire fiscal year and can set its share to 1, and a date range applies over its stated dates. A key dated inside the year, such as `2026-07-01`, leaves that model year's share unchanged (86/365 for Great Britain in 2026), so use whole-year values or a range for annual reform scenarios.\n", "\n", - "`housing_benefit_payable_share` applies this per benunit. It is 1 when `in_specified_or_temporary_accommodation` is `True`, in every model year. It is also 1 for a benunit meeting the Pension Credit age conditions (`meets_pension_credit_age_conditions`): a single claimant, or both members of a couple, over the qualifying age (reg 6A(4)), or a mixed-age couple with the 2019 saving ([SI 2019/37 art. 4](https://www.legislation.gov.uk/uksi/2019/37/article/4); reg 6A(5)), which the model infers from current receipt. A mixed-age couple without the saving loses its award like a working-age family. It is 1, too, where the Housing Benefit claimant personally holds an income-related ESA award that the article 3A(2) appointee saving keeps (article 7(4)(b)). This requires a positive claimant/partner ESA report with `esa_income_appointee_saving` and, for a couple, supplied confirmation that its Housing Benefit claimant holds that saved ESA award (`housing_benefit_claimant_is_saved_esa_claimant`). That status defaults to `False`: an unidentified couple is unsaved. A sole claimant's own saved ESA report suffices. The model infers entitlement immediately before abolition from current receipt; an outside adult's own ESA award does not keep the family's award. For other benunits it is the share for their country. A working-age continuing award stays eligible while the share is above 0, and `housing_benefit_pre_benefit_cap` pays the entitlement times the share. In 2026, an unsaved continuing award whose family does not claim Universal Credit is paid for the part of the year before the abolition, and there is none from 2027.\n", + "`housing_benefit_payable_share` applies this per benunit. It is 1 when `in_specified_or_temporary_accommodation` is `True`, in every model year. It is also 1 for a benunit meeting the Pension Credit age conditions (`meets_pension_credit_age_conditions`): a single claimant, or both members of a couple, over the qualifying age (reg 6A(4)), or a mixed-age couple with the 2019 saving ([SI 2019/37 art. 4](https://www.legislation.gov.uk/uksi/2019/37/article/4); reg 6A(5)), which the model infers from current receipt. A mixed-age couple without the saving loses its award like a working-age family. It is 1, too, where the Housing Benefit claimant personally holds an income-related ESA award that the article 3A(2) appointee saving keeps (article 7(4)(b)). A saved award is a positive claimant/partner ESA report with `esa_income_appointee_saving`, and the model uses the Housing Benefit reporter as the Housing Benefit claimant, as `has_mixed_age_couple_pension_credit_saving` does. The award is saved when exactly one member reports Housing Benefit and that member has the saved award, when no member reports Housing Benefit and a sole claimant has it, or when `housing_benefit_claimant_is_saved_esa_claimant` confirms the identity and a claimant or partner has the saved award. That status defaults to `False`, which leaves the identity to the reports: a family with two Housing Benefit reporters, or whose reporter lacks the saved award, is unsaved without it. The model infers entitlement immediately before abolition from current receipt; an outside adult's own ESA award does not keep the family's award. For other benunits it is the share for their country. A working-age continuing award stays eligible while the share is above 0, and `housing_benefit_pre_benefit_cap` pays the entitlement times the share. In 2026, an unsaved continuing award whose family does not claim Universal Credit is paid for the part of the year before the abolition, and there is none from 2027.\n", "\n", "A family whose award the abolition reaches claims Universal Credit if `would_claim_uc_at_legacy_closure` is true (`claims_uc_at_legacy_closure`), the same claim the model makes when DWP moves a family off another legacy benefit or the abolition of income-related ESA reaches its award. The claim ends the family's Housing Benefit and the claimant's and partner's income-related ESA, and Universal Credit is paid for the whole model year: the model does not split 2026-27 into Housing Benefit before the abolition date and Universal Credit after it. A family that does not claim keeps Housing Benefit for the part of 2026-27 before the abolition and gets none from 2027-28. A family that already claims Universal Credit (`would_claim_uc`) receives it instead of Housing Benefit in every year. `would_claim_uc_at_legacy_closure` defaults to true and no released dataset supplies it, so every unprotected working-age Housing Benefit recipient that doesn't already claim Universal Credit claims at the abolition, which is an upper bound. DWP's Move to Universal Credit statistics show that 97% of households sent a migration notice while on Housing Benefit and another legacy benefit claimed Universal Credit (98% of those also on Employment and Support Allowance), and 75% of Housing Benefit-only households did. Transitional protection, which went only to households that claimed after a migration notice, is not modelled.\n", "\n", diff --git a/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_eligible.py b/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_eligible.py index 8dd924ad64..59df3c6b77 100644 --- a/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_eligible.py +++ b/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_eligible.py @@ -44,11 +44,12 @@ class housing_benefit_eligible(Variable): "whole year. A family meeting the Pension Credit age conditions keeps " "a share of 1 (art. 7(4)(a)), and so does one whose Housing Benefit " "claimant personally holds a saved income-related ESA award " - "(art. 7(4)(b)). Couples must supply " - "housing_benefit_claimant_is_saved_esa_claimant; a sole claimant's " - "own positive report with esa_income_appointee_saving suffices. Other " - "statutory savings are not modelled; housing_benefit_payable_share " - "lists them. " + "(art. 7(4)(b)). housing_benefit_payable_share takes the only member " + "reporting Housing Benefit, or a sole claimant where no member " + "reports it, as that claimant, and " + "housing_benefit_claimant_is_saved_esa_claimant can also confirm " + "the identity. Other statutory savings are not modelled; " + "housing_benefit_payable_share lists them. " "Accommodation-specific eligible rent and benefit-cap rules are not " "modelled." ) From 9d848a4f27dc280ef2c1ff923fe36f9ef8b0f7b2 Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Tue, 17 Nov 2026 02:39:44 -0500 Subject: [PATCH 30/40] Pin the claimant/partner mask on the ESA saving and say how to lift it A saved ESA report counts only on a claimant or partner, so an adult outside is_claimant_or_partner keeps no Housing Benefit award with saved ESA, even as the only reporter and with the supplied status true. The flag's documentation told users to supply true where the reports do not show the identity, without saying the status cannot reach such an adult. It now says so and points to supplying is_claimant_or_partner, as for a couple 20 or more years apart entered without roles. The share's documentation and a code comment say the same and why the mask stays: the Housing Benefit amount still treats that adult as a non-dependant. The reporter rule (77d94239b) left the mask and the no-report couple rule untested. New GB 2026 units pin both: an outside adult with saved ESA is unsaved as the only reporter (with and without the status), with the status while the claimant reports, and with no report; the same adult supplied as partner is saved; a couple with no report and no status is unsaved; and an age-gap couple with inferred roles is unsaved. Co-Authored-By: Claude Opus 5.5 --- ...housing_benefit_working_age_abolition.yaml | 145 ++++++++++++++++++ ..._benefit_claimant_is_saved_esa_claimant.py | 8 +- .../housing_benefit_payable_share.py | 10 +- 3 files changed, 161 insertions(+), 2 deletions(-) diff --git a/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_working_age_abolition.yaml b/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_working_age_abolition.yaml index 713e21187e..6ffb0c2c11 100644 --- a/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_working_age_abolition.yaml +++ b/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_working_age_abolition.yaml @@ -1663,3 +1663,148 @@ housing_benefit_payable_share: [0, 1, 1, 0, 1, 0, 1] # Only a reported award the abolition reaches prompts the claim. claims_uc_at_legacy_closure: [true, false, false, true, false, true, false] + +- name: GB outside adult's saved ESA and a couple without a report keep no award in 2026 + # A saved ESA report counts only on a claimant or partner. An adult outside + # is_claimant_or_partner holds the saved ESA: as the only Housing Benefit + # reporter, without and with the status true; with the status true while + # the marked claimant reports; and with no report. Supplying both members + # as claimant or partner makes the same adult the partner and the only + # reporter, which saves the award. A couple with no Housing Benefit report + # and no status is unsaved even when a partner holds the saved ESA. + period: 2026 + absolute_error_margin: 0.0001 + input: + people: + reporter_claimant: + age: 40 + is_claimant_or_partner: true + reporter_outside: + age: 30 + is_claimant_or_partner: false + current_education: NOT_IN_EDUCATION + housing_benefit_reported: 1 + esa_income_reported: 5_000 + esa_income_appointee_saving: true + reporter_confirmed_claimant: + age: 40 + is_claimant_or_partner: true + reporter_confirmed_outside: + age: 30 + is_claimant_or_partner: false + current_education: NOT_IN_EDUCATION + housing_benefit_reported: 1 + esa_income_reported: 5_000 + esa_income_appointee_saving: true + reporter_partner_claimant: + age: 40 + is_claimant_or_partner: true + reporter_partner_partner: + age: 30 + is_claimant_or_partner: true + current_education: NOT_IN_EDUCATION + housing_benefit_reported: 1 + esa_income_reported: 5_000 + esa_income_appointee_saving: true + confirmed_claimant: + age: 40 + is_claimant_or_partner: true + housing_benefit_reported: 1 + confirmed_outside: + age: 30 + is_claimant_or_partner: false + current_education: NOT_IN_EDUCATION + esa_income_reported: 5_000 + esa_income_appointee_saving: true + unreported_claimant: + age: 40 + is_claimant_or_partner: true + unreported_outside: + age: 30 + is_claimant_or_partner: false + current_education: NOT_IN_EDUCATION + esa_income_reported: 5_000 + esa_income_appointee_saving: true + couple_head: + age: 40 + is_claimant_or_partner: true + couple_partner: + age: 40 + is_claimant_or_partner: true + esa_income_reported: 5_000 + esa_income_appointee_saving: true + benunits: + reporter: + members: [reporter_claimant, reporter_outside] + would_claim_uc: false + reporter_confirmed: + members: [reporter_confirmed_claimant, reporter_confirmed_outside] + would_claim_uc: false + housing_benefit_claimant_is_saved_esa_claimant: true + reporter_partner: + members: [reporter_partner_claimant, reporter_partner_partner] + would_claim_uc: false + housing_benefit_claimant_is_saved_esa_claimant: true + confirmed: + members: [confirmed_claimant, confirmed_outside] + would_claim_uc: false + housing_benefit_claimant_is_saved_esa_claimant: true + unreported: + members: [unreported_claimant, unreported_outside] + would_claim_uc: false + couple: + members: [couple_head, couple_partner] + would_claim_uc: false + households: + reporter: + members: [reporter_claimant, reporter_outside] + region: LONDON + reporter_confirmed: + members: [reporter_confirmed_claimant, reporter_confirmed_outside] + region: LONDON + reporter_partner: + members: [reporter_partner_claimant, reporter_partner_partner] + region: LONDON + confirmed: + members: [confirmed_claimant, confirmed_outside] + region: LONDON + unreported: + members: [unreported_claimant, unreported_outside] + region: LONDON + couple: + members: [couple_head, couple_partner] + region: LONDON + output: + # 86 / 365 unless saved. + housing_benefit_payable_share: [0.235616, 0.235616, 1, 0.235616, 0.235616, 0.235616] + +- name: GB age-gap couple entered without roles keeps no ESA-saved award in 2026 + # is_claimant_or_partner presumes a member 20 or more years younger than + # the claimant to be their child, so the younger member's saved ESA does + # not count, even as the only Housing Benefit reporter with the status + # true. Supplying is_claimant_or_partner for both saves it (the + # reporter_partner unit above). + period: 2026 + absolute_error_margin: 0.0001 + input: + people: + elder: + age: 60 + younger: + age: 38 + current_education: NOT_IN_EDUCATION + housing_benefit_reported: 1 + esa_income_reported: 5_000 + esa_income_appointee_saving: true + benunits: + benunit: + members: [elder, younger] + would_claim_uc: false + housing_benefit_claimant_is_saved_esa_claimant: true + households: + household: + members: [elder, younger] + region: LONDON + output: + is_claimant_or_partner: [true, false] + housing_benefit_payable_share: 0.235616 diff --git a/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_claimant_is_saved_esa_claimant.py b/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_claimant_is_saved_esa_claimant.py index 15b5e293bd..38e5b08122 100644 --- a/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_claimant_is_saved_esa_claimant.py +++ b/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_claimant_is_saved_esa_claimant.py @@ -25,7 +25,13 @@ class housing_benefit_claimant_is_saved_esa_claimant(Variable): "is_claimant_or_partner) has that report. False cannot remove an " "identity the reports establish. Supply true where the reports do " "not show it, for example a couple whose Housing Benefit and saved " - "ESA reports are on different members. No dataset mapping is " + "ESA reports are on different members. A saved ESA report counts " + "only on a claimant or partner, so true cannot save an award whose " + "saved ESA is reported by a member outside is_claimant_or_partner, " + "such as the younger member of a couple 20 or more years apart " + "entered without roles, whom is_claimant_or_partner presumes to be " + "the claimant's child; supply is_claimant_or_partner for such a " + "couple. No dataset mapping is " "verified. This is a claimant-specific status, not a calculation of " "ESA entitlement." ) diff --git a/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_payable_share.py b/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_payable_share.py index 12d2018fba..4a8b430146 100644 --- a/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_payable_share.py +++ b/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_payable_share.py @@ -36,7 +36,10 @@ class housing_benefit_payable_share(Variable): "saved award, or a couple with no Housing Benefit report is unsaved. " "The model reads reports, not a calculated award, so it infers " "entitlement immediately before abolition from current receipt. An " - "outside adult's saved report does not keep the family's award. " + "outside adult's saved report does not keep the family's award, even " + "when that adult is the only Housing Benefit reporter, and the " + "supplied status cannot change this; supply is_claimant_or_partner " + "where that adult is in fact the partner. " "A Universal Credit claim ends an ESA-saved continuing award; " "specified or temporary accommodation Housing Benefit survives the " "claim (housing_benefit_eligible). " @@ -110,6 +113,11 @@ def formula(benunit, period, parameters): # reports and cannot remove an identity they establish. Anything # else (two reporters, a reporter without the saved award, a couple # with neither a report nor the confirmation) is unsaved. + # The saved award counts only on a claimant or partner, on every + # path. An outside adult who is the only reporter stays unsaved: the + # Housing Benefit amount still treats the marked member as the + # claimant and that adult as a non-dependant, so saving on the + # adult's award would mix two identities. # Read reports and flags, never calculated ESA: it depends on the UC # claim that this share can itself trigger. person = benunit.members From 168a9481d87a98e3e25d73be4b23c386ebc8a5fd Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Tue, 17 Nov 2026 02:55:20 -0500 Subject: [PATCH 31/40] Limit the reporter-rule wording to the path it describes The in-session verifiers of the reporter rule found the documentation stating "the model uses the Housing Benefit reporter as the Housing Benefit claimant" as always true, when it holds only where exactly one member reports Housing Benefit. The supplied status also overrides the reports rather than filling gaps, and the eligibility docstring and the changelog omitted that the saved award counts only on a claimant or partner. Reword the share's documentation and comment, the status's documentation, the eligibility docstring, the changelog fragment and the notebook cell to say so. No formula or expected value changes. Co-Authored-By: Claude Opus 5.5 --- ...olish-working-age-housing-benefit.fixed.md | 2 +- .../programs/gov/dwp/housing-benefit.ipynb | 2 +- ..._benefit_claimant_is_saved_esa_claimant.py | 21 +++++++++-------- .../housing_benefit_eligible.py | 6 ++--- .../housing_benefit_payable_share.py | 23 +++++++++++-------- 5 files changed, 30 insertions(+), 24 deletions(-) diff --git a/changelog.d/abolish-working-age-housing-benefit.fixed.md b/changelog.d/abolish-working-age-housing-benefit.fixed.md index c984316886..2a4c8d40d2 100644 --- a/changelog.d/abolish-working-age-housing-benefit.fixed.md +++ b/changelog.d/abolish-working-age-housing-benefit.fixed.md @@ -1 +1 @@ -Abolish working-age Housing Benefit awards outside specified and temporary accommodation from 1 July 2026 in Great Britain (SI 2025/1148 art. 7, inserted by SI 2026/409) and 1 October 2026 in Northern Ireland (SR 2025/176 art. 7, inserted by SR 2026/115). The new `gov.dwp.housing_benefit.working_age_awards_payable` parameter is day-weighted across each fiscal year, so 2026-27 pays an unsaved continuing award whose family does not claim Universal Credit for 86/365 of the year in Great Britain and 178/365 in Northern Ireland, and from 2027-28 there is none. Families meeting the Pension Credit age conditions keep their awards: a single claimant or both members of a couple over the qualifying age, and mixed-age couples with the SI 2019/37 art. 4 saving (SI 2014/1230 reg 6A(4)-(5)), and so do families whose Housing Benefit claimant personally holds an income-related ESA award that the appointee saving keeps (art. 7(4)(b), `esa_income_appointee_saving`): the model takes the only member reporting Housing Benefit, or a sole claimant where no member reports it, as the Housing Benefit claimant, and `housing_benefit_claimant_is_saved_esa_claimant` can confirm the identity where the reports do not show it. A family whose award is abolished claims Universal Credit if `would_claim_uc_at_legacy_closure` is true, which ends the claimant's and partner's income-related ESA. +Abolish working-age Housing Benefit awards outside specified and temporary accommodation from 1 July 2026 in Great Britain (SI 2025/1148 art. 7, inserted by SI 2026/409) and 1 October 2026 in Northern Ireland (SR 2025/176 art. 7, inserted by SR 2026/115). The new `gov.dwp.housing_benefit.working_age_awards_payable` parameter is day-weighted across each fiscal year, so 2026-27 pays an unsaved continuing award whose family does not claim Universal Credit for 86/365 of the year in Great Britain and 178/365 in Northern Ireland, and from 2027-28 there is none. Families meeting the Pension Credit age conditions keep their awards: a single claimant or both members of a couple over the qualifying age, and mixed-age couples with the SI 2019/37 art. 4 saving (SI 2014/1230 reg 6A(4)-(5)), and so do families whose Housing Benefit claimant personally holds an income-related ESA award that the appointee saving keeps (art. 7(4)(b), `esa_income_appointee_saving`): the model takes the only member reporting Housing Benefit, or a sole claimant where no member reports it, as the Housing Benefit claimant, counts the saved award only on a claimant or partner, and lets `housing_benefit_claimant_is_saved_esa_claimant` confirm the identity instead, overriding the reports. A family whose award is abolished claims Universal Credit if `would_claim_uc_at_legacy_closure` is true, which ends the claimant's and partner's income-related ESA. diff --git a/docs/book/programs/gov/dwp/housing-benefit.ipynb b/docs/book/programs/gov/dwp/housing-benefit.ipynb index 61f67aa53c..8a971dcbb9 100644 --- a/docs/book/programs/gov/dwp/housing-benefit.ipynb +++ b/docs/book/programs/gov/dwp/housing-benefit.ipynb @@ -41,7 +41,7 @@ "\n", "In a `Simulation` reform dictionary, a bare-year key such as `2026` covers the entire fiscal year and can set its share to 1, and a date range applies over its stated dates. A key dated inside the year, such as `2026-07-01`, leaves that model year's share unchanged (86/365 for Great Britain in 2026), so use whole-year values or a range for annual reform scenarios.\n", "\n", - "`housing_benefit_payable_share` applies this per benunit. It is 1 when `in_specified_or_temporary_accommodation` is `True`, in every model year. It is also 1 for a benunit meeting the Pension Credit age conditions (`meets_pension_credit_age_conditions`): a single claimant, or both members of a couple, over the qualifying age (reg 6A(4)), or a mixed-age couple with the 2019 saving ([SI 2019/37 art. 4](https://www.legislation.gov.uk/uksi/2019/37/article/4); reg 6A(5)), which the model infers from current receipt. A mixed-age couple without the saving loses its award like a working-age family. It is 1, too, where the Housing Benefit claimant personally holds an income-related ESA award that the article 3A(2) appointee saving keeps (article 7(4)(b)). A saved award is a positive claimant/partner ESA report with `esa_income_appointee_saving`, and the model uses the Housing Benefit reporter as the Housing Benefit claimant, as `has_mixed_age_couple_pension_credit_saving` does. The award is saved when exactly one member reports Housing Benefit and that member has the saved award, when no member reports Housing Benefit and a sole claimant has it, or when `housing_benefit_claimant_is_saved_esa_claimant` confirms the identity and a claimant or partner has the saved award. That status defaults to `False`, which leaves the identity to the reports: a family with two Housing Benefit reporters, or whose reporter lacks the saved award, is unsaved without it. The model infers entitlement immediately before abolition from current receipt; an outside adult's own ESA award does not keep the family's award. For other benunits it is the share for their country. A working-age continuing award stays eligible while the share is above 0, and `housing_benefit_pre_benefit_cap` pays the entitlement times the share. In 2026, an unsaved continuing award whose family does not claim Universal Credit is paid for the part of the year before the abolition, and there is none from 2027.\n", + "`housing_benefit_payable_share` applies this per benunit. It is 1 when `in_specified_or_temporary_accommodation` is `True`, in every model year. It is also 1 for a benunit meeting the Pension Credit age conditions (`meets_pension_credit_age_conditions`): a single claimant, or both members of a couple, over the qualifying age (reg 6A(4)), or a mixed-age couple with the 2019 saving ([SI 2019/37 art. 4](https://www.legislation.gov.uk/uksi/2019/37/article/4); reg 6A(5)), which the model infers from current receipt. A mixed-age couple without the saving loses its award like a working-age family. It is 1, too, where the Housing Benefit claimant personally holds an income-related ESA award that the article 3A(2) appointee saving keeps (article 7(4)(b)). A saved award is a positive claimant/partner ESA report with `esa_income_appointee_saving`, and where exactly one member reports Housing Benefit, the model takes that member as the Housing Benefit claimant, as `has_mixed_age_couple_pension_credit_saving` takes the reporter. The award is saved when exactly one member reports Housing Benefit and that member has the saved award, when no member reports Housing Benefit and a sole claimant has it, or when `housing_benefit_claimant_is_saved_esa_claimant` confirms the identity and a claimant or partner has the saved award, whoever reports Housing Benefit. That status defaults to `False`, which leaves the identity to the reports: a family with two Housing Benefit reporters, or whose reporter lacks the saved award, is unsaved without it. The model infers entitlement immediately before abolition from current receipt; an outside adult's own ESA award does not keep the family's award. For other benunits it is the share for their country. A working-age continuing award stays eligible while the share is above 0, and `housing_benefit_pre_benefit_cap` pays the entitlement times the share. In 2026, an unsaved continuing award whose family does not claim Universal Credit is paid for the part of the year before the abolition, and there is none from 2027.\n", "\n", "A family whose award the abolition reaches claims Universal Credit if `would_claim_uc_at_legacy_closure` is true (`claims_uc_at_legacy_closure`), the same claim the model makes when DWP moves a family off another legacy benefit or the abolition of income-related ESA reaches its award. The claim ends the family's Housing Benefit and the claimant's and partner's income-related ESA, and Universal Credit is paid for the whole model year: the model does not split 2026-27 into Housing Benefit before the abolition date and Universal Credit after it. A family that does not claim keeps Housing Benefit for the part of 2026-27 before the abolition and gets none from 2027-28. A family that already claims Universal Credit (`would_claim_uc`) receives it instead of Housing Benefit in every year. `would_claim_uc_at_legacy_closure` defaults to true and no released dataset supplies it, so every unprotected working-age Housing Benefit recipient that doesn't already claim Universal Credit claims at the abolition, which is an upper bound. DWP's Move to Universal Credit statistics show that 97% of households sent a migration notice while on Housing Benefit and another legacy benefit claimed Universal Credit (98% of those also on Employment and Support Allowance), and 75% of Housing Benefit-only households did. Transitional protection, which went only to households that claimed after a migration notice, is not modelled.\n", "\n", diff --git a/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_claimant_is_saved_esa_claimant.py b/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_claimant_is_saved_esa_claimant.py index 38e5b08122..bff9619631 100644 --- a/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_claimant_is_saved_esa_claimant.py +++ b/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_claimant_is_saved_esa_claimant.py @@ -16,16 +16,19 @@ class housing_benefit_claimant_is_saved_esa_claimant(Variable): "identity: housing_benefit_payable_share then saves the award when a " "claimant or partner has a positive ESA report with " "esa_income_appointee_saving. False, the default, leaves the " - "identity to the reports. The model uses the Housing Benefit " - "reporter as the Housing Benefit claimant, as " - "has_mixed_age_couple_pension_credit_saving does, so the saving " - "applies when exactly one member reports Housing Benefit and that " - "member is a claimant or partner with the saved ESA report, or, when " - "no member reports Housing Benefit, a sole claimant (exactly one " + "identity to the reports: the saving then applies when exactly one " + "member reports Housing Benefit and that member is a claimant or " + "partner with the saved ESA report (the model takes that reporter as " + "the Housing Benefit claimant, as " + "has_mixed_age_couple_pension_credit_saving takes the reporter), or, " + "when no member reports Housing Benefit, a sole claimant (exactly one " "is_claimant_or_partner) has that report. False cannot remove an " - "identity the reports establish. Supply true where the reports do " - "not show it, for example a couple whose Housing Benefit and saved " - "ESA reports are on different members. A saved ESA report counts " + "identity the reports establish. True overrides the reports: it saves " + "the award whenever a claimant or partner has the saved ESA report, " + "even where another member reports Housing Benefit. Supply it only " + "where the Housing Benefit claimant is known to hold the saved award, " + "for example a couple whose Housing Benefit and saved ESA reports are " + "on different members. A saved ESA report counts " "only on a claimant or partner, so true cannot save an award whose " "saved ESA is reported by a member outside is_claimant_or_partner, " "such as the younger member of a couple 20 or more years apart " diff --git a/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_eligible.py b/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_eligible.py index 59df3c6b77..d0071cc6af 100644 --- a/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_eligible.py +++ b/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_eligible.py @@ -46,9 +46,9 @@ class housing_benefit_eligible(Variable): "claimant personally holds a saved income-related ESA award " "(art. 7(4)(b)). housing_benefit_payable_share takes the only member " "reporting Housing Benefit, or a sole claimant where no member " - "reports it, as that claimant, and " - "housing_benefit_claimant_is_saved_esa_claimant can also confirm " - "the identity. Other statutory savings are not modelled; " + "reports it, as that claimant, and the saved award counts only on a " + "claimant or partner; housing_benefit_claimant_is_saved_esa_claimant " + "can instead confirm the identity. Other statutory savings are not modelled; " "housing_benefit_payable_share lists them. " "Accommodation-specific eligible rent and benefit-cap rules are not " "modelled." diff --git a/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_payable_share.py b/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_payable_share.py index 4a8b430146..002e62980a 100644 --- a/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_payable_share.py +++ b/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_payable_share.py @@ -22,14 +22,15 @@ class housing_benefit_payable_share(Variable): "family whose Housing Benefit claimant personally holds a saved " "income-related ESA award (art. 7(4)(b)); a partner's award alone " "does not save it. A saved award is a positive claimant/partner ESA " - "report with esa_income_appointee_saving. The model uses the Housing " - "Benefit reporter as the Housing Benefit claimant, as " - "has_mixed_age_couple_pension_credit_saving does. So the family is " - "saved when exactly one member reports Housing Benefit and that " - "member has the saved award; when no member reports Housing Benefit " + "report with esa_income_appointee_saving. Where exactly one member " + "reports Housing Benefit, the model takes that member as the Housing " + "Benefit claimant, as has_mixed_age_couple_pension_credit_saving takes " + "the reporter. So the family is saved when exactly one member reports " + "Housing Benefit and that member has the saved award; when no member reports Housing Benefit " "and a sole claimant (exactly one is_claimant_or_partner) has it; or " "when housing_benefit_claimant_is_saved_esa_claimant confirms the " - "identity and a claimant or partner has it. That supplied status " + "identity and a claimant or partner has it, whoever reports Housing " + "Benefit. That supplied status " "defaults to false, which leaves the identity to the reports; false " "cannot remove an identity they establish. Without the confirmation, " "a family with two Housing Benefit reporters, a reporter without the " @@ -93,9 +94,10 @@ def formula(benunit, period, parameters): # income-related ESA and the art. 3A(2) appointee saving applies. # "The claimant" is the Housing Benefit claimant: a partner's saved # award alone does not save it. A saved award is a claimant or - # partner's positive ESA report with the appointee saving. As in - # has_mixed_age_couple_pension_credit_saving, the Housing Benefit - # reporter is the Housing Benefit claimant. Reporters are counted + # partner's positive ESA report with the appointee saving. Path (a) + # takes the only Housing Benefit reporter as the Housing Benefit + # claimant, as has_mixed_age_couple_pension_credit_saving takes the + # reporter. Reporters are counted # over every member, as housing_benefit_eligible counts the award, # so an adult outside the claimant/partner mask who reports Housing # Benefit competes. The identity holds when: @@ -108,7 +110,8 @@ def formula(benunit, period, parameters): # one), so this shows only in the share itself or through a # supplied housing_benefit_eligible; or # (c) housing_benefit_claimant_is_saved_esa_claimant confirms it and - # a claimant or partner has the saved award. + # a claimant or partner has the saved award, whoever reports + # Housing Benefit. # True confirms the identity. False, the default, leaves it to the # reports and cannot remove an identity they establish. Anything # else (two reporters, a reporter without the saved award, a couple From e23b7c31bdc85bf5836ba1628a33bb4a21d9366b Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Tue, 17 Nov 2026 08:20:03 -0500 Subject: [PATCH 32/40] Keep the ESA saving when every Housing Benefit reporter holds it The round-3 review found that a couple in which both members report Housing Benefit and both hold a saved income-related ESA award lost the art. 7(4)(b) saving without the supplied status, because the reporter rule required exactly one reporter. Whichever of them claims Housing Benefit holds the saved award, so art. 7(4)(b) applies either way. Path (a) now saves the award when at least one member reports Housing Benefit and every reporter is a claimant or partner with the saved report. A reporter without the saved award, including an adult outside the claimant/partner mask, still blocks the saving, so the earlier counterexamples keep their expectations. Add the two-reporter couple in GB 2026, NI 2026 and GB 2027; the previous formula fails all three. Update the share's documentation and comment, the status's documentation, the eligibility docstring, the changelog fragment, the notebook cell and the YAML comments. No existing expected value changes. Co-Authored-By: Claude Opus 5.5 --- ...olish-working-age-housing-benefit.fixed.md | 2 +- .../programs/gov/dwp/housing-benefit.ipynb | 2 +- ...housing_benefit_working_age_abolition.yaml | 122 ++++++++++++++++-- ..._benefit_claimant_is_saved_esa_claimant.py | 10 +- .../housing_benefit_eligible.py | 8 +- .../housing_benefit_payable_share.py | 30 +++-- 6 files changed, 138 insertions(+), 36 deletions(-) diff --git a/changelog.d/abolish-working-age-housing-benefit.fixed.md b/changelog.d/abolish-working-age-housing-benefit.fixed.md index 2a4c8d40d2..c244b33539 100644 --- a/changelog.d/abolish-working-age-housing-benefit.fixed.md +++ b/changelog.d/abolish-working-age-housing-benefit.fixed.md @@ -1 +1 @@ -Abolish working-age Housing Benefit awards outside specified and temporary accommodation from 1 July 2026 in Great Britain (SI 2025/1148 art. 7, inserted by SI 2026/409) and 1 October 2026 in Northern Ireland (SR 2025/176 art. 7, inserted by SR 2026/115). The new `gov.dwp.housing_benefit.working_age_awards_payable` parameter is day-weighted across each fiscal year, so 2026-27 pays an unsaved continuing award whose family does not claim Universal Credit for 86/365 of the year in Great Britain and 178/365 in Northern Ireland, and from 2027-28 there is none. Families meeting the Pension Credit age conditions keep their awards: a single claimant or both members of a couple over the qualifying age, and mixed-age couples with the SI 2019/37 art. 4 saving (SI 2014/1230 reg 6A(4)-(5)), and so do families whose Housing Benefit claimant personally holds an income-related ESA award that the appointee saving keeps (art. 7(4)(b), `esa_income_appointee_saving`): the model takes the only member reporting Housing Benefit, or a sole claimant where no member reports it, as the Housing Benefit claimant, counts the saved award only on a claimant or partner, and lets `housing_benefit_claimant_is_saved_esa_claimant` confirm the identity instead, overriding the reports. A family whose award is abolished claims Universal Credit if `would_claim_uc_at_legacy_closure` is true, which ends the claimant's and partner's income-related ESA. +Abolish working-age Housing Benefit awards outside specified and temporary accommodation from 1 July 2026 in Great Britain (SI 2025/1148 art. 7, inserted by SI 2026/409) and 1 October 2026 in Northern Ireland (SR 2025/176 art. 7, inserted by SR 2026/115). The new `gov.dwp.housing_benefit.working_age_awards_payable` parameter is day-weighted across each fiscal year, so 2026-27 pays an unsaved continuing award whose family does not claim Universal Credit for 86/365 of the year in Great Britain and 178/365 in Northern Ireland, and from 2027-28 there is none. Families meeting the Pension Credit age conditions keep their awards: a single claimant or both members of a couple over the qualifying age, and mixed-age couples with the SI 2019/37 art. 4 saving (SI 2014/1230 reg 6A(4)-(5)), and so do families whose Housing Benefit claimant personally holds an income-related ESA award that the appointee saving keeps (art. 7(4)(b), `esa_income_appointee_saving`): the model takes the Housing Benefit claimant to be a member reporting Housing Benefit, so every reporter must hold the saved award, or a sole claimant where no member reports it; it counts the saved award only on a claimant or partner, and lets `housing_benefit_claimant_is_saved_esa_claimant` confirm the identity instead, overriding the reports. A family whose award is abolished claims Universal Credit if `would_claim_uc_at_legacy_closure` is true, which ends the claimant's and partner's income-related ESA. diff --git a/docs/book/programs/gov/dwp/housing-benefit.ipynb b/docs/book/programs/gov/dwp/housing-benefit.ipynb index 8a971dcbb9..46a82593b8 100644 --- a/docs/book/programs/gov/dwp/housing-benefit.ipynb +++ b/docs/book/programs/gov/dwp/housing-benefit.ipynb @@ -41,7 +41,7 @@ "\n", "In a `Simulation` reform dictionary, a bare-year key such as `2026` covers the entire fiscal year and can set its share to 1, and a date range applies over its stated dates. A key dated inside the year, such as `2026-07-01`, leaves that model year's share unchanged (86/365 for Great Britain in 2026), so use whole-year values or a range for annual reform scenarios.\n", "\n", - "`housing_benefit_payable_share` applies this per benunit. It is 1 when `in_specified_or_temporary_accommodation` is `True`, in every model year. It is also 1 for a benunit meeting the Pension Credit age conditions (`meets_pension_credit_age_conditions`): a single claimant, or both members of a couple, over the qualifying age (reg 6A(4)), or a mixed-age couple with the 2019 saving ([SI 2019/37 art. 4](https://www.legislation.gov.uk/uksi/2019/37/article/4); reg 6A(5)), which the model infers from current receipt. A mixed-age couple without the saving loses its award like a working-age family. It is 1, too, where the Housing Benefit claimant personally holds an income-related ESA award that the article 3A(2) appointee saving keeps (article 7(4)(b)). A saved award is a positive claimant/partner ESA report with `esa_income_appointee_saving`, and where exactly one member reports Housing Benefit, the model takes that member as the Housing Benefit claimant, as `has_mixed_age_couple_pension_credit_saving` takes the reporter. The award is saved when exactly one member reports Housing Benefit and that member has the saved award, when no member reports Housing Benefit and a sole claimant has it, or when `housing_benefit_claimant_is_saved_esa_claimant` confirms the identity and a claimant or partner has the saved award, whoever reports Housing Benefit. That status defaults to `False`, which leaves the identity to the reports: a family with two Housing Benefit reporters, or whose reporter lacks the saved award, is unsaved without it. The model infers entitlement immediately before abolition from current receipt; an outside adult's own ESA award does not keep the family's award. For other benunits it is the share for their country. A working-age continuing award stays eligible while the share is above 0, and `housing_benefit_pre_benefit_cap` pays the entitlement times the share. In 2026, an unsaved continuing award whose family does not claim Universal Credit is paid for the part of the year before the abolition, and there is none from 2027.\n", + "`housing_benefit_payable_share` applies this per benunit. It is 1 when `in_specified_or_temporary_accommodation` is `True`, in every model year. It is also 1 for a benunit meeting the Pension Credit age conditions (`meets_pension_credit_age_conditions`): a single claimant, or both members of a couple, over the qualifying age (reg 6A(4)), or a mixed-age couple with the 2019 saving ([SI 2019/37 art. 4](https://www.legislation.gov.uk/uksi/2019/37/article/4); reg 6A(5)), which the model infers from current receipt. A mixed-age couple without the saving loses its award like a working-age family. It is 1, too, where the Housing Benefit claimant personally holds an income-related ESA award that the article 3A(2) appointee saving keeps (article 7(4)(b)). A saved award is a positive claimant/partner ESA report with `esa_income_appointee_saving`, and the model takes the Housing Benefit claimant to be one of the members who report Housing Benefit, as `has_mixed_age_couple_pension_credit_saving` takes the reporter. The award is saved when every member who reports Housing Benefit has the saved award, when no member reports Housing Benefit and a sole claimant has it, or when `housing_benefit_claimant_is_saved_esa_claimant` confirms the identity and a claimant or partner has the saved award, whoever reports Housing Benefit. That status defaults to `False`, which leaves the identity to the reports: a family in which any Housing Benefit reporter lacks the saved award is unsaved without it. The model infers entitlement immediately before abolition from current receipt; an outside adult's own ESA award does not keep the family's award. For other benunits it is the share for their country. A working-age continuing award stays eligible while the share is above 0, and `housing_benefit_pre_benefit_cap` pays the entitlement times the share. In 2026, an unsaved continuing award whose family does not claim Universal Credit is paid for the part of the year before the abolition, and there is none from 2027.\n", "\n", "A family whose award the abolition reaches claims Universal Credit if `would_claim_uc_at_legacy_closure` is true (`claims_uc_at_legacy_closure`), the same claim the model makes when DWP moves a family off another legacy benefit or the abolition of income-related ESA reaches its award. The claim ends the family's Housing Benefit and the claimant's and partner's income-related ESA, and Universal Credit is paid for the whole model year: the model does not split 2026-27 into Housing Benefit before the abolition date and Universal Credit after it. A family that does not claim keeps Housing Benefit for the part of 2026-27 before the abolition and gets none from 2027-28. A family that already claims Universal Credit (`would_claim_uc`) receives it instead of Housing Benefit in every year. `would_claim_uc_at_legacy_closure` defaults to true and no released dataset supplies it, so every unprotected working-age Housing Benefit recipient that doesn't already claim Universal Credit claims at the abolition, which is an upper bound. DWP's Move to Universal Credit statistics show that 97% of households sent a migration notice while on Housing Benefit and another legacy benefit claimed Universal Credit (98% of those also on Employment and Support Allowance), and 75% of Housing Benefit-only households did. Transitional protection, which went only to households that claimed after a migration notice, is not modelled.\n", "\n", diff --git a/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_working_age_abolition.yaml b/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_working_age_abolition.yaml index 6ffb0c2c11..6c4460e820 100644 --- a/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_working_age_abolition.yaml +++ b/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_working_age_abolition.yaml @@ -643,8 +643,9 @@ # Art. 7(4)(b) (NI: SR 2025/176 art. 7(4)(b)) saves an award where, # immediately before the abolition date, the claimant is entitled to # income-related ESA that the art. 3A(2) appointee saving keeps. The claimant -# is the Housing Benefit claimant: the only member reporting Housing Benefit, -# a sole claimant when no member reports it, or the saved ESA claimant where +# is the Housing Benefit claimant: one of the members reporting Housing +# Benefit, so every reporter must hold the saved award; a sole claimant when +# no member reports it; or the saved ESA claimant where # housing_benefit_claimant_is_saved_esa_claimant confirms it. An outside # adult's saved report does not keep the family's award. @@ -1266,13 +1267,13 @@ claims_uc_at_legacy_closure: [false, true, true, true, true, false] - name: GB Housing Benefit reports identify the ESA-saved claimant in 2026 - # Without the supplied status, the only member reporting Housing Benefit - # is the Housing Benefit claimant. A sole claimant's saved ESA does not keep + # Without the supplied status, the Housing Benefit claimant is one of the + # members reporting Housing Benefit. A sole claimant's saved ESA does not keep # an award that another adult in the benefit unit reports, even with the # status false. A couple keeps an award reported by the partner with the # saved ESA, and a false status does not remove that identity. Reports on # different members save only with the status true, and a second reporter - # leaves the claimant unidentified. A sole claimant with the saved report + # without the saved award leaves the claimant unidentified. A sole claimant with the saved report # and no Housing Benefit report has no competing reporter. period: 2026 absolute_error_margin: 0.0001 @@ -1399,13 +1400,13 @@ claims_uc_at_legacy_closure: [true, false, false, true, false, true, false] - name: NI Housing Benefit reports identify the ESA-saved claimant in 2026 - # Without the supplied status, the only member reporting Housing Benefit - # is the Housing Benefit claimant. A sole claimant's saved ESA does not keep + # Without the supplied status, the Housing Benefit claimant is one of the + # members reporting Housing Benefit. A sole claimant's saved ESA does not keep # an award that another adult in the benefit unit reports, even with the # status false. A couple keeps an award reported by the partner with the # saved ESA, and a false status does not remove that identity. Reports on # different members save only with the status true, and a second reporter - # leaves the claimant unidentified. A sole claimant with the saved report + # without the saved award leaves the claimant unidentified. A sole claimant with the saved report # and no Housing Benefit report has no competing reporter. period: 2026 absolute_error_margin: 0.0001 @@ -1532,13 +1533,13 @@ claims_uc_at_legacy_closure: [true, false, false, true, false, true, false] - name: GB Housing Benefit reports identify the ESA-saved claimant in 2027 - # Without the supplied status, the only member reporting Housing Benefit - # is the Housing Benefit claimant. A sole claimant's saved ESA does not keep + # Without the supplied status, the Housing Benefit claimant is one of the + # members reporting Housing Benefit. A sole claimant's saved ESA does not keep # an award that another adult in the benefit unit reports, even with the # status false. A couple keeps an award reported by the partner with the # saved ESA, and a false status does not remove that identity. Reports on # different members save only with the status true, and a second reporter - # leaves the claimant unidentified. A sole claimant with the saved report + # without the saved award leaves the claimant unidentified. A sole claimant with the saved report # and no Housing Benefit report has no competing reporter. period: 2027 absolute_error_margin: 0.0001 @@ -1808,3 +1809,102 @@ output: is_claimant_or_partner: [true, false] housing_benefit_payable_share: 0.235616 + +- name: GB couple whose two Housing Benefit reporters both hold the saved ESA keeps the award in 2026 + # Both members of a couple report Housing Benefit and both hold a saved + # income-related ESA award. Whichever of them claims Housing Benefit holds + # the saved award, so art. 7(4)(b) keeps it without the supplied status. + period: 2026 + absolute_error_margin: 0.0001 + input: + people: + both_saved_head: + age: 40 + is_claimant_or_partner: true + housing_benefit_reported: 1 + esa_income_reported: 5_000 + esa_income_appointee_saving: true + both_saved_partner: + age: 40 + is_claimant_or_partner: true + housing_benefit_reported: 1 + esa_income_reported: 5_000 + esa_income_appointee_saving: true + benunits: + both_saved: + members: [both_saved_head, both_saved_partner] + would_claim_uc: false + would_claim_uc_at_legacy_closure: true + households: + both_saved: + members: [both_saved_head, both_saved_partner] + region: LONDON + output: + housing_benefit_payable_share: 1 + claims_uc_at_legacy_closure: false + +- name: NI couple whose two Housing Benefit reporters both hold the saved ESA keeps the award in 2026 + # Both members of a couple report Housing Benefit and both hold a saved + # income-related ESA award. Whichever of them claims Housing Benefit holds + # the saved award, so art. 7(4)(b) keeps it without the supplied status. + period: 2026 + absolute_error_margin: 0.0001 + input: + people: + both_saved_head: + age: 40 + is_claimant_or_partner: true + housing_benefit_reported: 1 + esa_income_reported: 5_000 + esa_income_appointee_saving: true + both_saved_partner: + age: 40 + is_claimant_or_partner: true + housing_benefit_reported: 1 + esa_income_reported: 5_000 + esa_income_appointee_saving: true + benunits: + both_saved: + members: [both_saved_head, both_saved_partner] + would_claim_uc: false + would_claim_uc_at_legacy_closure: true + households: + both_saved: + members: [both_saved_head, both_saved_partner] + region: NORTHERN_IRELAND + output: + housing_benefit_payable_share: 1 + claims_uc_at_legacy_closure: false + +- name: GB couple whose two Housing Benefit reporters both hold the saved ESA keeps the award in 2027 + # Both members of a couple report Housing Benefit and both hold a saved + # income-related ESA award. Whichever of them claims Housing Benefit holds + # the saved award, so art. 7(4)(b) keeps it without the supplied status. + period: 2027 + absolute_error_margin: 0.0001 + input: + people: + both_saved_head: + age: 40 + is_claimant_or_partner: true + housing_benefit_reported: 1 + esa_income_reported: 5_000 + esa_income_appointee_saving: true + both_saved_partner: + age: 40 + is_claimant_or_partner: true + housing_benefit_reported: 1 + esa_income_reported: 5_000 + esa_income_appointee_saving: true + benunits: + both_saved: + members: [both_saved_head, both_saved_partner] + would_claim_uc: false + would_claim_uc_at_legacy_closure: true + households: + both_saved: + members: [both_saved_head, both_saved_partner] + region: LONDON + output: + housing_benefit_payable_share: 1 + claims_uc_at_legacy_closure: false diff --git a/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_claimant_is_saved_esa_claimant.py b/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_claimant_is_saved_esa_claimant.py index bff9619631..eb70f1ee36 100644 --- a/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_claimant_is_saved_esa_claimant.py +++ b/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_claimant_is_saved_esa_claimant.py @@ -16,11 +16,11 @@ class housing_benefit_claimant_is_saved_esa_claimant(Variable): "identity: housing_benefit_payable_share then saves the award when a " "claimant or partner has a positive ESA report with " "esa_income_appointee_saving. False, the default, leaves the " - "identity to the reports: the saving then applies when exactly one " - "member reports Housing Benefit and that member is a claimant or " - "partner with the saved ESA report (the model takes that reporter as " - "the Housing Benefit claimant, as " - "has_mixed_age_couple_pension_credit_saving takes the reporter), or, " + "identity to the reports: the saving then applies when every member " + "who reports Housing Benefit is a claimant or partner with the saved " + "ESA report (the model takes the Housing Benefit claimant to be one of " + "those reporters, as has_mixed_age_couple_pension_credit_saving takes " + "the reporter), or, " "when no member reports Housing Benefit, a sole claimant (exactly one " "is_claimant_or_partner) has that report. False cannot remove an " "identity the reports establish. True overrides the reports: it saves " diff --git a/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_eligible.py b/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_eligible.py index d0071cc6af..28199c3cb4 100644 --- a/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_eligible.py +++ b/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_eligible.py @@ -44,10 +44,10 @@ class housing_benefit_eligible(Variable): "whole year. A family meeting the Pension Credit age conditions keeps " "a share of 1 (art. 7(4)(a)), and so does one whose Housing Benefit " "claimant personally holds a saved income-related ESA award " - "(art. 7(4)(b)). housing_benefit_payable_share takes the only member " - "reporting Housing Benefit, or a sole claimant where no member " - "reports it, as that claimant, and the saved award counts only on a " - "claimant or partner; housing_benefit_claimant_is_saved_esa_claimant " + "(art. 7(4)(b)). housing_benefit_payable_share takes that claimant to " + "be a member reporting Housing Benefit, so every reporter must hold " + "the saved award, or a sole claimant where no member reports it; the " + "saved award counts only on a claimant or partner; housing_benefit_claimant_is_saved_esa_claimant " "can instead confirm the identity. Other statutory savings are not modelled; " "housing_benefit_payable_share lists them. " "Accommodation-specific eligible rent and benefit-cap rules are not " diff --git a/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_payable_share.py b/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_payable_share.py index 002e62980a..7db4d9183a 100644 --- a/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_payable_share.py +++ b/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_payable_share.py @@ -22,19 +22,20 @@ class housing_benefit_payable_share(Variable): "family whose Housing Benefit claimant personally holds a saved " "income-related ESA award (art. 7(4)(b)); a partner's award alone " "does not save it. A saved award is a positive claimant/partner ESA " - "report with esa_income_appointee_saving. Where exactly one member " - "reports Housing Benefit, the model takes that member as the Housing " - "Benefit claimant, as has_mixed_age_couple_pension_credit_saving takes " - "the reporter. So the family is saved when exactly one member reports " - "Housing Benefit and that member has the saved award; when no member reports Housing Benefit " + "report with esa_income_appointee_saving. The model takes the Housing " + "Benefit claimant to be one of the members who report Housing Benefit, " + "as has_mixed_age_couple_pension_credit_saving takes the reporter. So " + "the family is saved when every member who reports Housing Benefit " + "has the saved award, so that whichever of them claims holds it; when " + "no member reports Housing Benefit " "and a sole claimant (exactly one is_claimant_or_partner) has it; or " "when housing_benefit_claimant_is_saved_esa_claimant confirms the " "identity and a claimant or partner has it, whoever reports Housing " "Benefit. That supplied status " "defaults to false, which leaves the identity to the reports; false " "cannot remove an identity they establish. Without the confirmation, " - "a family with two Housing Benefit reporters, a reporter without the " - "saved award, or a couple with no Housing Benefit report is unsaved. " + "a family in which any Housing Benefit reporter lacks the saved award, " + "or a couple with no Housing Benefit report, is unsaved. " "The model reads reports, not a calculated award, so it infers " "entitlement immediately before abolition from current receipt. An " "outside adult's saved report does not keep the family's award, even " @@ -95,14 +96,15 @@ def formula(benunit, period, parameters): # "The claimant" is the Housing Benefit claimant: a partner's saved # award alone does not save it. A saved award is a claimant or # partner's positive ESA report with the appointee saving. Path (a) - # takes the only Housing Benefit reporter as the Housing Benefit - # claimant, as has_mixed_age_couple_pension_credit_saving takes the - # reporter. Reporters are counted + # takes the Housing Benefit claimant to be one of the members who + # report Housing Benefit, as has_mixed_age_couple_pension_credit_saving + # takes the reporter. Reporters are counted # over every member, as housing_benefit_eligible counts the award, # so an adult outside the claimant/partner mask who reports Housing # Benefit competes. The identity holds when: - # (a) exactly one member reports Housing Benefit and has the saved - # award; + # (a) at least one member reports Housing Benefit and every member + # who reports it has the saved award, so whichever of them claims + # holds it; # (b) no member reports Housing Benefit and the sole claimant # (exactly one is_claimant_or_partner) has it. Without a report # no reader of this share changes an amount (the continuing award, @@ -114,7 +116,7 @@ def formula(benunit, period, parameters): # Housing Benefit. # True confirms the identity. False, the default, leaves it to the # reports and cannot remove an identity they establish. Anything - # else (two reporters, a reporter without the saved award, a couple + # else (a reporter without the saved award, a couple # with neither a report nor the confirmation) is unsaved. # The saved award counts only on a claimant or partner, on every # path. An outside adult who is the only reporter stays unsaved: the @@ -133,7 +135,7 @@ def formula(benunit, period, parameters): any_saved_esa = benunit.any(saved_esa) hb_reporter = person("housing_benefit_reported", period) > 0 hb_reporters = benunit.sum(hb_reporter) - reporter_saved = (hb_reporters == 1) & benunit.any(hb_reporter & saved_esa) + reporter_saved = (hb_reporters > 0) & ~benunit.any(hb_reporter & ~saved_esa) sole_claimant_saved = ( (hb_reporters == 0) & (benunit.sum(claimant_or_partner) == 1) From a562b10d7dfc7fe6c3d59b1fee4c13a15111f557 Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Tue, 17 Nov 2026 08:24:38 -0500 Subject: [PATCH 33/40] Test the both-saved ESA couple with the status false and a third reporter Round 4 asked for two cases on the every-reporter rule: a couple whose two Housing Benefit reporters both hold the saved income-related ESA keeps the award with housing_benefit_claimant_is_saved_esa_claimant false, and loses it when an adult outside the claimant/partner mask also reports Housing Benefit. Test-only; the abolition YAML passes 43 cases. Co-Authored-By: Claude Opus 5.5 --- ...housing_benefit_working_age_abolition.yaml | 71 +++++++++++++++++++ 1 file changed, 71 insertions(+) diff --git a/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_working_age_abolition.yaml b/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_working_age_abolition.yaml index 6c4460e820..6aeab45431 100644 --- a/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_working_age_abolition.yaml +++ b/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_working_age_abolition.yaml @@ -1908,3 +1908,74 @@ output: housing_benefit_payable_share: 1 claims_uc_at_legacy_closure: false + +- name: GB couple whose two Housing Benefit reporters both hold the saved ESA keeps the award with the status false in 2026 + # The supplied status false leaves the identity to the reports, so it + # cannot remove the saving when every Housing Benefit reporter holds the + # saved award. + period: 2026 + absolute_error_margin: 0.0001 + input: + people: + both_saved_head: + age: 40 + is_claimant_or_partner: true + housing_benefit_reported: 1 + esa_income_reported: 5_000 + esa_income_appointee_saving: true + both_saved_partner: + age: 40 + is_claimant_or_partner: true + housing_benefit_reported: 1 + esa_income_reported: 5_000 + esa_income_appointee_saving: true + benunits: + both_saved: + members: [both_saved_head, both_saved_partner] + would_claim_uc: false + would_claim_uc_at_legacy_closure: true + housing_benefit_claimant_is_saved_esa_claimant: false + households: + both_saved: + members: [both_saved_head, both_saved_partner] + region: LONDON + output: + housing_benefit_payable_share: 1 + claims_uc_at_legacy_closure: false + +- name: GB couple whose two Housing Benefit reporters both hold the saved ESA loses the award to a third reporter in 2026 + # An adult outside the claimant/partner mask who also reports Housing + # Benefit competes as a possible claimant without the saved award, so the + # reports no longer identify a saved claimant and the award is unsaved. + period: 2026 + absolute_error_margin: 0.0001 + input: + people: + both_saved_head: + age: 40 + is_claimant_or_partner: true + housing_benefit_reported: 1 + esa_income_reported: 5_000 + esa_income_appointee_saving: true + both_saved_partner: + age: 40 + is_claimant_or_partner: true + housing_benefit_reported: 1 + esa_income_reported: 5_000 + esa_income_appointee_saving: true + third_reporter: + age: 30 + is_claimant_or_partner: false + current_education: NOT_IN_EDUCATION + housing_benefit_reported: 1 + benunits: + both_saved: + members: [both_saved_head, both_saved_partner, third_reporter] + would_claim_uc: false + would_claim_uc_at_legacy_closure: true + households: + both_saved: + members: [both_saved_head, both_saved_partner, third_reporter] + region: LONDON + output: + housing_benefit_payable_share: 0.235616 From e5293a17375f896a6ba11a98de667f1a24e128d6 Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Wed, 18 Nov 2026 12:54:51 -0500 Subject: [PATCH 34/40] Pin #2845's cases to no claim when Housing Benefit is abolished #2845 wrote its 2026 cases on main, which has no abolition of working-age Housing Benefit. On #1910 a family whose award the abolition reaches claims Universal Credit by default (would_claim_uc_at_legacy_closure), and the model treats that claim as a qualifying claim (reg. 60 exempts it from the education condition). Comparing all 154 cases in #2845's nine YAML files on main 98381bf49 and the merged tree, the closure claim flips in 11. In 7 of them it changes what the case tests, so these now set the flag false, as #1910's own Case 32 does: - uc_receiving_education.yaml cases 31, 43, 45 and 47 ("the ordinary route") passed only through the migrated-student exception, and case 44 failed (is_uc_eligible 1, expected 0). - uc_qualifying_young_person_existing_benefits.yaml, "An 18-year-old claimant ... who reports Housing Benefit is not a qualifying young person", and council_tax_reduction_young_person.yaml case 14 set would_claim_uc false, yet the closure claim made the family claim Universal Credit (4,062.96); the first failed. One case keeps its flag and its amount changes: uc_qualifying_young_person_universal_credit_claim.yaml, "An 18-year-old claimant's own Housing Benefit report excludes them while they don't claim Universal Credit", now pays Housing Benefit until the abolition on 1 July 2026: 6,000 x 86/365 = 1,413.70. The other 4 flips change only uc_is_excepted_from_education_condition for a person no output depends on. Co-Authored-By: Claude Opus 5.5 --- ...ifying_young_person_existing_benefits.yaml | 9 ++++--- ...g_young_person_universal_credit_claim.yaml | 6 +++-- .../uc_receiving_education.yaml | 25 +++++++++++++++++++ .../council_tax_reduction_young_person.yaml | 3 +++ 4 files changed, 38 insertions(+), 5 deletions(-) diff --git a/policyengine_uk/tests/policy/baseline/finance/benefit/family/universal_credit/uc_qualifying_young_person_existing_benefits.yaml b/policyengine_uk/tests/policy/baseline/finance/benefit/family/universal_credit/uc_qualifying_young_person_existing_benefits.yaml index 8966b13925..d1914ebbc8 100644 --- a/policyengine_uk/tests/policy/baseline/finance/benefit/family/universal_credit/uc_qualifying_young_person_existing_benefits.yaml +++ b/policyengine_uk/tests/policy/baseline/finance/benefit/family/universal_credit/uc_qualifying_young_person_existing_benefits.yaml @@ -187,9 +187,11 @@ universal_credit: 5_098.80 - name: An 18-year-old claimant on a non-advanced course who reports Housing Benefit is not a qualifying young person. - # The claimant doesn't claim Universal Credit, so no claim ends their own - # Housing Benefit (uc_qualifying_young_person_universal_credit_claim.yaml - # covers a claim). They get no Universal Credit. + # The claimant doesn't claim Universal Credit, even when working-age + # Housing Benefit is abolished on 1 July 2026 (SI 2025/1148 art. 7), so no + # claim ends their own Housing Benefit + # (uc_qualifying_young_person_universal_credit_claim.yaml covers a claim). + # They get no Universal Credit. period: 2026 input: people: @@ -202,6 +204,7 @@ benunit: members: [claimant] would_claim_uc: false + would_claim_uc_at_legacy_closure: false households: household: members: [claimant] diff --git a/policyengine_uk/tests/policy/baseline/finance/benefit/family/universal_credit/uc_qualifying_young_person_universal_credit_claim.yaml b/policyengine_uk/tests/policy/baseline/finance/benefit/family/universal_credit/uc_qualifying_young_person_universal_credit_claim.yaml index f348fa21c5..6385cef30a 100644 --- a/policyengine_uk/tests/policy/baseline/finance/benefit/family/universal_credit/uc_qualifying_young_person_universal_credit_claim.yaml +++ b/policyengine_uk/tests/policy/baseline/finance/benefit/family/universal_credit/uc_qualifying_young_person_universal_credit_claim.yaml @@ -121,7 +121,9 @@ - name: An 18-year-old claimant's own Housing Benefit report excludes them while they don't claim Universal Credit. # The claimant rents from the council at £6,000 a year, has no income and # doesn't claim Universal Credit, so the model continues their Housing - # Benefit award at the full rent (6,000) and they're entitled to it. + # Benefit award at the full rent until working-age awards are abolished + # on 1 July 2026 (SI 2025/1148 art. 7): 86 of the year's 365 days, or + # 1,413.70, and they're entitled to it. period: 2026 absolute_error_margin: 0.01 input: @@ -144,7 +146,7 @@ rent: 6_000 output: housing_benefit_eligible: true - housing_benefit: 6_000 + housing_benefit: 1_413.70 is_qualifying_young_person_for_universal_credit: [false] universal_credit: 0 diff --git a/policyengine_uk/tests/policy/baseline/gov/dwp/universal_credit/uc_receiving_education.yaml b/policyengine_uk/tests/policy/baseline/gov/dwp/universal_credit/uc_receiving_education.yaml index 06fe675874..c3e0941f94 100644 --- a/policyengine_uk/tests/policy/baseline/gov/dwp/universal_credit/uc_receiving_education.yaml +++ b/policyengine_uk/tests/policy/baseline/gov/dwp/universal_credit/uc_receiving_education.yaml @@ -833,6 +833,11 @@ benunits: benunit: members: [person1] + # The claimant doesn't claim Universal Credit when working-age + # Housing Benefit is abolished on 1 July 2026 (SI 2025/1148 art. 7). + # The model treats such a claim as a qualifying claim, which reg. 60 + # would exempt from the education condition. + would_claim_uc_at_legacy_closure: false households: household: members: [person1] @@ -1295,6 +1300,11 @@ benunits: benunit: members: [person1] + # The claimant doesn't claim Universal Credit when working-age + # Housing Benefit is abolished on 1 October 2026 in Northern Ireland + # (SR 2025/176 art. 7). The model treats such a claim as a qualifying + # claim, which reg. 60 would exempt from the education condition. + would_claim_uc_at_legacy_closure: false households: household: members: [person1] @@ -1324,6 +1334,11 @@ benunits: benunit: members: [person1] + # The claimant doesn't claim Universal Credit when working-age + # Housing Benefit is abolished on 1 October 2026 in Northern Ireland + # (SR 2025/176 art. 7). The model treats such a claim as a qualifying + # claim, which reg. 60 would exempt from the education condition. + would_claim_uc_at_legacy_closure: false households: household: members: [person1] @@ -1350,6 +1365,11 @@ benunits: benunit: members: [person1] + # The claimant doesn't claim Universal Credit when working-age + # Housing Benefit is abolished on 1 July 2026 (SI 2025/1148 art. 7). + # The model treats such a claim as a qualifying claim, which reg. 60 + # would exempt from the education condition. + would_claim_uc_at_legacy_closure: false households: household: members: [person1] @@ -1407,6 +1427,11 @@ benunits: benunit: members: [person1] + # The claimant doesn't claim Universal Credit when working-age + # Housing Benefit is abolished on 1 October 2026 in Northern Ireland + # (SR 2025/176 art. 7). The model treats such a claim as a qualifying + # claim, which reg. 60 would exempt from the education condition. + would_claim_uc_at_legacy_closure: false households: household: members: [person1] diff --git a/policyengine_uk/tests/policy/baseline/gov/local_authorities/council_tax_reduction/council_tax_reduction_young_person.yaml b/policyengine_uk/tests/policy/baseline/gov/local_authorities/council_tax_reduction/council_tax_reduction_young_person.yaml index be10bc5ccb..549a3cc5bd 100644 --- a/policyengine_uk/tests/policy/baseline/gov/local_authorities/council_tax_reduction/council_tax_reduction_young_person.yaml +++ b/policyengine_uk/tests/policy/baseline/gov/local_authorities/council_tax_reduction/council_tax_reduction_young_person.yaml @@ -501,6 +501,9 @@ benunit: members: [claimant, student] would_claim_uc: false + # Nor does the family claim when working-age Housing Benefit is + # abolished on 1 July 2026 (SI 2025/1148 art. 7). + would_claim_uc_at_legacy_closure: false households: household: members: [claimant, student] From 1bfb461b0083bee464802bc9e5edd3559d391cae Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Wed, 18 Nov 2026 13:03:31 -0500 Subject: [PATCH 35/40] End the qualifying young person exclusion with the Housing Benefit award #2845 gates a Housing Benefit report's reg. 28 exclusion on housing_benefit_open, which knew no abolition date. Under #1910 an unsaved working-age award ends on 1 July 2026 (1 October 2026 in Northern Ireland) whether or not the family claims, yet from 2027 an 18-year-old who reported Housing Benefit and made no claim stayed excluded while the model paid them nothing (probe: 2027 and 2028, GB and NI, housing_benefit 0, is_qualifying_young_person false). The formula now also requires housing_benefit_payable_share > 0, or disable_simulated_benefits, as the income-related ESA gate already requires esa_income_payable_share. The share reads parameters, the country, reports, is_claimant_or_partner, input flags and the Pension Credit age conditions, and no Universal Credit variable, so it adds no cycle. The gate applies on the first day of a claim (at_claim_start) too, where is_qualifying_young_person_for_uc_education reads it. Both property oracles now read the ESA and Housing Benefit payable shares and draw 2027, and the receiving-education invariants run a fixed 2027 example in England and Northern Ireland (its 15 seeded draws missed the gap). New 2027 cases cover a claimant in GB and in Northern Ireland, a parent's young person, and a saved award in specified or temporary accommodation, which still excludes. Scotland's working-age Council Tax Reduction reads this definition, so from 2027 the same report no longer takes a young person out of the family there (council_tax_reduction_young_person.yaml case 17), and the changelog fragment says so. test_disable_simulated_benefits.py's unreformed expectation for a young person's Housing Benefit report becomes year >= 2027, as income-related ESA's already was; its reformed half covers the disable_simulated_benefits branch (dropping it fails two 2027 cases). Two comments that said the model had no closure date for Housing Benefit now name the payable shares. Co-Authored-By: Claude Opus 5.5 --- ...olish-working-age-housing-benefit.fixed.md | 2 +- ...ifying_young_person_existing_benefits.yaml | 114 +++++++++++++++++- .../council_tax_reduction_young_person.yaml | 36 ++++++ .../tests/test_disable_simulated_benefits.py | 10 +- ...ung_person_existing_benefits_properties.py | 19 ++- .../test_uc_receiving_education_properties.py | 48 +++++++- ...fying_young_person_for_universal_credit.py | 30 ++++- 7 files changed, 238 insertions(+), 21 deletions(-) diff --git a/changelog.d/abolish-working-age-housing-benefit.fixed.md b/changelog.d/abolish-working-age-housing-benefit.fixed.md index c244b33539..cd4af580e8 100644 --- a/changelog.d/abolish-working-age-housing-benefit.fixed.md +++ b/changelog.d/abolish-working-age-housing-benefit.fixed.md @@ -1 +1 @@ -Abolish working-age Housing Benefit awards outside specified and temporary accommodation from 1 July 2026 in Great Britain (SI 2025/1148 art. 7, inserted by SI 2026/409) and 1 October 2026 in Northern Ireland (SR 2025/176 art. 7, inserted by SR 2026/115). The new `gov.dwp.housing_benefit.working_age_awards_payable` parameter is day-weighted across each fiscal year, so 2026-27 pays an unsaved continuing award whose family does not claim Universal Credit for 86/365 of the year in Great Britain and 178/365 in Northern Ireland, and from 2027-28 there is none. Families meeting the Pension Credit age conditions keep their awards: a single claimant or both members of a couple over the qualifying age, and mixed-age couples with the SI 2019/37 art. 4 saving (SI 2014/1230 reg 6A(4)-(5)), and so do families whose Housing Benefit claimant personally holds an income-related ESA award that the appointee saving keeps (art. 7(4)(b), `esa_income_appointee_saving`): the model takes the Housing Benefit claimant to be a member reporting Housing Benefit, so every reporter must hold the saved award, or a sole claimant where no member reports it; it counts the saved award only on a claimant or partner, and lets `housing_benefit_claimant_is_saved_esa_claimant` confirm the identity instead, overriding the reports. A family whose award is abolished claims Universal Credit if `would_claim_uc_at_legacy_closure` is true, which ends the claimant's and partner's income-related ESA. +Abolish working-age Housing Benefit awards outside specified and temporary accommodation from 1 July 2026 in Great Britain (SI 2025/1148 art. 7, inserted by SI 2026/409) and 1 October 2026 in Northern Ireland (SR 2025/176 art. 7, inserted by SR 2026/115). The new `gov.dwp.housing_benefit.working_age_awards_payable` parameter is day-weighted across each fiscal year, so 2026-27 pays an unsaved continuing award whose family does not claim Universal Credit for 86/365 of the year in Great Britain and 178/365 in Northern Ireland, and from 2027-28 there is none. Families meeting the Pension Credit age conditions keep their awards: a single claimant or both members of a couple over the qualifying age, and mixed-age couples with the SI 2019/37 art. 4 saving (SI 2014/1230 reg 6A(4)-(5)), and so do families whose Housing Benefit claimant personally holds an income-related ESA award that the appointee saving keeps (art. 7(4)(b), `esa_income_appointee_saving`): the model takes the Housing Benefit claimant to be a member reporting Housing Benefit, so every reporter must hold the saved award, or a sole claimant where no member reports it; it counts the saved award only on a claimant or partner, and lets `housing_benefit_claimant_is_saved_esa_claimant` confirm the identity instead, overriding the reports. A family whose award is abolished claims Universal Credit if `would_claim_uc_at_legacy_closure` is true, which ends the claimant's and partner's income-related ESA. Once an award is abolished, a Housing Benefit report no longer keeps a young person out of the Universal Credit definition of a qualifying young person (SI 2014/1230 reg. 28), or out of the family for Scotland's working-age Council Tax Reduction, which reads that definition, since no Housing Benefit is payable on it (`housing_benefit_payable_share`). diff --git a/policyengine_uk/tests/policy/baseline/finance/benefit/family/universal_credit/uc_qualifying_young_person_existing_benefits.yaml b/policyengine_uk/tests/policy/baseline/finance/benefit/family/universal_credit/uc_qualifying_young_person_existing_benefits.yaml index d1914ebbc8..2d25c9cc4e 100644 --- a/policyengine_uk/tests/policy/baseline/finance/benefit/family/universal_credit/uc_qualifying_young_person_existing_benefits.yaml +++ b/policyengine_uk/tests/policy/baseline/finance/benefit/family/universal_credit/uc_qualifying_young_person_existing_benefits.yaml @@ -8,9 +8,11 @@ # the model's legacy closure, or for a claimant or partner the family's # Universal Credit claim, ends the award on it, and only if no reform # neutralises it. The model pays Income Support and income-based -# JSA until 31 March 2026 and tax credits until 5 April 2025, has no -# closure date for Housing Benefit, and pays an income-related ESA claim -# only while it stays payable (esa_income_payable_share). It also ends a +# JSA until 31 March 2026 and tax credits until 5 April 2025, and pays an +# income-related ESA claim and a Housing Benefit award only while each +# stays payable (esa_income_payable_share, housing_benefit_payable_share: +# working-age Housing Benefit outside its savings is abolished from 1 July +# 2026, or 1 October 2026 in Northern Ireland). It also ends a # person's legacy awards when its annual migration proxy closes them, and # the predicate follows that closure # (uc_qualifying_young_person_legacy_closure.yaml covers it). In these cases @@ -216,6 +218,112 @@ uc_child_element: 0 universal_credit: 0 +- name: After working-age Housing Benefit is abolished, the same report no longer excludes the claimant. + # SI 2025/1148 art. 7 ends the unsaved award from 1 July 2026, so in 2027 + # no Housing Benefit is payable (housing_benefit_payable_share) and the + # claimant isn't entitled to an existing benefit (SI 2014/1230 reg. 28). + period: 2027 + input: + people: + claimant: + age: 18 + current_education: POST_SECONDARY + is_claimant_or_partner: true + housing_benefit_reported: 6_000 + benunits: + benunit: + members: [claimant] + would_claim_uc: false + would_claim_uc_at_legacy_closure: false + households: + household: + members: [claimant] + region: NORTH_EAST + tenure_type: OWNED_OUTRIGHT + output: + housing_benefit_payable_share: 0 + is_qualifying_young_person_for_universal_credit: [true] + +- name: In Northern Ireland the same report no longer excludes the claimant once the abolition there has passed. + # SR 2025/176 art. 7 ends the unsaved award from 1 October 2026. + period: 2027 + input: + people: + claimant: + age: 18 + current_education: POST_SECONDARY + is_claimant_or_partner: true + housing_benefit_reported: 6_000 + benunits: + benunit: + members: [claimant] + would_claim_uc: false + would_claim_uc_at_legacy_closure: false + households: + household: + members: [claimant] + region: NORTHERN_IRELAND + tenure_type: OWNED_OUTRIGHT + output: + housing_benefit_payable_share: 0 + is_qualifying_young_person_for_universal_credit: [true] + +- name: A saved award in specified or temporary accommodation still excludes the claimant after the abolition. + # The abolition saves an award for specified or temporary accommodation + # (SI 2025/1148 art. 7(4)(a), SI 2014/1230 reg. 6A(2)), so in 2027 the + # award stays payable and the claimant is entitled to an existing benefit. + period: 2027 + input: + people: + claimant: + age: 18 + current_education: POST_SECONDARY + is_claimant_or_partner: true + housing_benefit_reported: 6_000 + benunits: + benunit: + members: [claimant] + would_claim_uc: false + would_claim_uc_at_legacy_closure: false + in_specified_or_temporary_accommodation: true + households: + household: + members: [claimant] + region: NORTH_EAST + tenure_type: OWNED_OUTRIGHT + output: + housing_benefit_payable_share: 1 + is_qualifying_young_person_for_universal_credit: [false] + +- name: After the abolition, a parent's young person whose own Housing Benefit report is unsaved is a qualifying young person. + # The abolition reaches the family's award, so in 2027 no Housing Benefit + # is payable on the young person's report (housing_benefit_payable_share) + # and reg. 28 no longer keeps them out of the definition. + period: 2027 + input: + people: + parent: + age: 45 + is_parent: true + is_claimant_or_partner: true + young_person: + age: 17 + current_education: POST_SECONDARY + is_claimant_or_partner: false + housing_benefit_reported: 3_000 + benunits: + benunit: + members: [parent, young_person] + households: + household: + members: [parent, young_person] + region: NORTH_EAST + tenure_type: OWNED_OUTRIGHT + output: + housing_benefit_payable_share: 0 + is_qualifying_young_person_for_universal_credit: [false, true] + is_child_or_qualifying_young_person_for_universal_credit: [false, true] + - name: A young person's own Income Support report after Income Support stops paying leaves the child element. # Income Support stops paying on 1 April 2026 (gov.dwp.income_support.active), so nobody is entitled to it in 2026. period: 2026 diff --git a/policyengine_uk/tests/policy/baseline/gov/local_authorities/council_tax_reduction/council_tax_reduction_young_person.yaml b/policyengine_uk/tests/policy/baseline/gov/local_authorities/council_tax_reduction/council_tax_reduction_young_person.yaml index 549a3cc5bd..19306f0986 100644 --- a/policyengine_uk/tests/policy/baseline/gov/local_authorities/council_tax_reduction/council_tax_reduction_young_person.yaml +++ b/policyengine_uk/tests/policy/baseline/gov/local_authorities/council_tax_reduction/council_tax_reduction_young_person.yaml @@ -594,3 +594,39 @@ council_tax_reduction_non_dep_deductions: 0 # 1_800 - 0.2 * (4_740 - 3_933.80). council_tax_reduction: 1_638.76 + +- name: Case 17, Scotland working age, case 14's 19-year-old in 2027 is a young person once working-age Housing Benefit is abolished. + # SI 2025/1148 art. 7 ends the family's unsaved Housing Benefit award from + # 1 July 2026, so in 2027 none is payable on the 19-year-old's report + # (housing_benefit_payable_share), they aren't entitled to an existing + # benefit (SI 2014/1230 reg. 28(b)), and the Scottish Ministers' reg. 5 + # reference counts them as a young person in the family. + period: 2027 + input: + people: + claimant: + age: 22 + is_claimant_or_partner: true + student: + age: 19 + is_claimant_or_partner: false + current_education: UPPER_SECONDARY + age_started_or_accepted_current_education_or_training: 17 + is_before_universal_credit_qualifying_young_person_terminal_date: true + housing_benefit_reported: 3_000 + benunits: + benunit: + members: [claimant, student] + would_claim_uc: false + would_claim_uc_at_legacy_closure: false + households: + household: + members: [claimant, student] + country: SCOTLAND + local_authority: CITY_OF_EDINBURGH + council_tax: 1_800 + output: + housing_benefit_payable_share: 0 + is_qualifying_young_person_under_universal_credit_regulation_5: [false, true] + is_qualifying_young_person_for_universal_credit: [false, true] + is_child_or_young_person_for_council_tax_reduction: [false, true] diff --git a/policyengine_uk/tests/test_disable_simulated_benefits.py b/policyengine_uk/tests/test_disable_simulated_benefits.py index 292a35cc03..10c0331a13 100644 --- a/policyengine_uk/tests/test_disable_simulated_benefits.py +++ b/policyengine_uk/tests/test_disable_simulated_benefits.py @@ -891,15 +891,17 @@ def test_a_young_person_on_a_benefit_the_reform_pays_is_no_qualifying_young_pers assert paid == [0, 3_000, 3_000, 3_000, 3_000, 3_000] assert reformed.calculate(predicate, year)[1::2].tolist() == [False] * 6 # Without the reform, the model stops paying tax credits from 2025 and - # Income Support and income-based JSA from 2026, and those reports - # exclude nobody. + # Income Support and income-based JSA from 2026, and the abolitions leave + # no unsaved income-related ESA or working-age Housing Benefit payable + # from 2027, and those reports exclude nobody. tax_credits_closed = year >= 2025 legacy_closed = year >= 2026 + abolished = year >= 2027 assert unreformed.calculate(predicate, year)[1::2].tolist() == [ legacy_closed, legacy_closed, - year >= 2027, - False, + abolished, + abolished, tax_credits_closed, tax_credits_closed, ] diff --git a/policyengine_uk/tests/test_uc_qualifying_young_person_existing_benefits_properties.py b/policyengine_uk/tests/test_uc_qualifying_young_person_existing_benefits_properties.py index 1561c2270d..507eae397d 100644 --- a/policyengine_uk/tests/test_uc_qualifying_young_person_existing_benefits_properties.py +++ b/policyengine_uk/tests/test_uc_qualifying_young_person_existing_benefits_properties.py @@ -61,7 +61,7 @@ EDUCATIONS = tuple(item.name for item in EducationType) NON_ADVANCED = ("UPPER_SECONDARY", "POST_SECONDARY") -YEARS = (2024, 2025, 2026) +YEARS = (2024, 2025, 2026, 2027) EXISTING_BENEFITS = ( "jsa_income_reported", "esa_income_reported", @@ -81,10 +81,13 @@ # The existing benefits the model pays in each year: tax credits until 5 April # 2025 (gov.dwp.tax_credits.active), Income Support and income-based JSA until # 31 March 2026 (gov.dwp.income_support.active, gov.dwp.JSA.income.active). +# Income-related ESA and Housing Benefit stay listed: their abolitions end +# each award by its payable share, which open_awards reads. PAYING = { 2024: set(EXISTING_BENEFITS), 2025: set(EXISTING_BENEFITS) - set(TAX_CREDITS), 2026: {"esa_income_reported", "housing_benefit_reported"}, + 2027: {"esa_income_reported", "housing_benefit_reported"}, } SETTINGS = settings( max_examples=25, @@ -365,7 +368,10 @@ def open_awards(sim, year, claim_limbs=True): claim_limbs, the family's Universal Credit claim leave the award on it open, person by person. The claim ends the claimant's and partner's own income-related ESA, Housing Benefit outside the Pension Credit age - conditions and Child Tax Credit, and nobody else's.""" + conditions and Child Tax Credit, and nobody else's. The abolitions end + an income-related ESA or Housing Benefit award in a year in which it is + not payable (esa_income_payable_share, housing_benefit_payable_share), + whether or not anyone claims.""" own_open = ~sim.calculate("person_legacy_benefits_closed", year) family_closed = sim.calculate("legacy_benefits_closed", year, map_to="person") pension_age = sim.calculate( @@ -376,11 +382,16 @@ def open_awards(sim, year, claim_limbs=True): claim_ends = sim.calculate( "claims_universal_credit", year, map_to="person" ) & sim.calculate("is_claimant_or_partner", year) + esa_payable = sim.calculate("esa_income_payable_share", year) > 0 + housing_benefit_payable = ( + sim.calculate("housing_benefit_payable_share", year, map_to="person") > 0 + ) return { "income_support_reported": own_open, "jsa_income_reported": own_open, - "esa_income_reported": own_open & ~claim_ends, - "housing_benefit_reported": pension_age | (~family_closed & ~claim_ends), + "esa_income_reported": own_open & ~claim_ends & esa_payable, + "housing_benefit_reported": (pension_age | (~family_closed & ~claim_ends)) + & housing_benefit_payable, "child_tax_credit_reported": ~family_closed & ~claim_ends, "working_tax_credit_reported": ~family_closed, } diff --git a/policyengine_uk/tests/test_uc_receiving_education_properties.py b/policyengine_uk/tests/test_uc_receiving_education_properties.py index a211977060..211c890900 100644 --- a/policyengine_uk/tests/test_uc_receiving_education_properties.py +++ b/policyengine_uk/tests/test_uc_receiving_education_properties.py @@ -98,7 +98,9 @@ ) # 2019: before the mixed-age couple exclusion of 15 May 2019 (parameters are # read at 30 April). 2021, 2024 and 2026 span the reg. 14(1)(b) versions. -YEARS = [2019, 2021, 2024, 2026] +# 2027 follows the abolitions of income-related ESA and working-age Housing +# Benefit. +YEARS = [2019, 2021, 2024, 2026, 2027] REGIONS = ["NORTH_EAST", "LONDON", "SCOTLAND", "NORTHERN_IRELAND"] EDUCATION = ["TERTIARY", "POST_SECONDARY", "NOT_IN_EDUCATION"] TAX_CREDITS = ["child_tax_credit_reported", "working_tax_credit_reported"] @@ -113,8 +115,9 @@ ] # Reg. 28 turns on entitlement, # so a report counts only in a year the model pays that benefit (the -# parameter, or None where the model has no closure date) and only if no -# reform neutralises one of its variables. +# parameter, or None where no parameter switches the benefit off; +# excluded_on_first_day reads the income-related ESA and Housing Benefit +# payable shares) and only if no reform neutralises one of its variables. REPORT_BENEFITS = { "jsa_income_reported": ("JSA.income.active", ["jsa_income"]), "esa_income_reported": (None, ["esa_income"]), @@ -297,6 +300,8 @@ def all_flags(case): VARIABLES = OUTPUTS + [ + "esa_income_payable_share", + "housing_benefit_payable_share", "is_uc_single_or_joint_claimant", "is_uc_assessed_claimant", "meets_uc_minimum_age_condition", @@ -373,6 +378,16 @@ def is_open(i, name): return False if name not in result["paying"]: return False + # The abolitions end an income-related ESA or Housing Benefit + # award in a year in which it is not payable. + if name == "esa_income_reported" and not ( + result["esa_income_payable_share"][i] > 0 + ): + return False + if name == "housing_benefit_reported" and not ( + result["housing_benefit_payable_share"][f] > 0 + ): + return False if name in OWN_CLOSURE: return not result["person_legacy_benefits_closed"][i] if name == "housing_benefit_reported": @@ -873,6 +888,32 @@ def no_loans_or_grants(i, values): ] +# 2027, after the abolition of working-age Housing Benefit (SI 2025/1148 art. +# 7; SR 2025/176 art. 7): an 18-year-old on a non-advanced full-time course +# whose family's unsaved award has ended, in England and Northern Ireland, so +# no Housing Benefit is payable on their report and reg. 28 no longer keeps +# them out of the definition. +ABOLITION_EXAMPLE = dict( + year=2027, + families=[ + single_family( + [ + person( + 18, + is_in_full_time_education=True, + current_education="POST_SECONDARY", + housing_benefit_reported=6_000, + ) + ], + region=region, + tenure_type="RENT_FROM_COUNCIL", + rent=6_000, + ) + for region in ["NORTH_EAST", "NORTHERN_IRELAND"] + ], +) + + @PROPERTY_SETTINGS @example(EXAMPLES[0]) @example(EXAMPLES[1]) @@ -881,6 +922,7 @@ def no_loans_or_grants(i, values): @example(CLAIM_EXAMPLES[0]) @example(CLAIM_EXAMPLES[1]) @example(CLAIM_EXAMPLES[2]) +@example(ABOLITION_EXAMPLE) @given(cases()) def test_education_condition_invariants(case): check(case) diff --git a/policyengine_uk/variables/gov/dwp/universal_credit/child_element/is_qualifying_young_person_for_universal_credit.py b/policyengine_uk/variables/gov/dwp/universal_credit/child_element/is_qualifying_young_person_for_universal_credit.py index c273af655a..0914b64719 100644 --- a/policyengine_uk/variables/gov/dwp/universal_credit/child_element/is_qualifying_young_person_for_universal_credit.py +++ b/policyengine_uk/variables/gov/dwp/universal_credit/child_element/is_qualifying_young_person_for_universal_credit.py @@ -25,11 +25,14 @@ class is_qualifying_young_person_for_universal_credit(Variable): "ESA only after their capital and work screens. The model pays Income " "Support, income-based JSA and tax credits only while " "gov.dwp.income_support.active, gov.dwp.JSA.income.active and " - "gov.dwp.tax_credits.active hold, has no closure date for Housing " - "Benefit, and pays an income-related ESA claim only while it stays " - "payable (esa_income_payable_share), so the formula reads its report " - "only then. The formula also reads the Income Support, income-based " - "JSA and tax credit reports while " + "gov.dwp.tax_credits.active hold, and pays an income-related ESA " + "claim and a Housing Benefit award only while each stays payable " + "(esa_income_payable_share and housing_benefit_payable_share: " + "working-age Housing Benefit outside its savings is abolished from " + "1 July 2026, or 1 October 2026 in Northern Ireland), so the formula " + "reads their reports only then. The formula also reads the Income " + "Support, income-based JSA, tax credit, income-related ESA and " + "Housing Benefit reports while " "gov.contrib.policyengine.disable_simulated_benefits is on. The reform " "that switch turns on pays them at their reported amounts in the " "dataset year and the nine years after it, and the formula still reads " @@ -219,7 +222,22 @@ def paying(active, *names): ) jsa_income_paying = paying(dwp.JSA.income.active, "jsa_income") & own_award_open esa_income_paying = paying(True, "esa_income") & esa_income_open - housing_benefit_paying = paying(True, "housing_benefit") & housing_benefit_open + # The abolition of working-age Housing Benefit (SI 2025/1148 art. 7; in + # Northern Ireland, SR 2025/176 art. 7) ends an unsaved award from 1 July + # 2026, or 1 October 2026 in Northern Ireland, whether or not the family + # claims, so nobody is entitled to it in a year in which the award is not + # payable (housing_benefit_payable_share), on the first day of a claim + # (at_claim_start) as on any other. That share reads parameters, the + # country, reports, is_claimant_or_partner, input flags and the Pension + # Credit age conditions, and no Universal Credit variable. The reform + # behind disable_simulated_benefits pays the report in every year, so + # while it is on the formula keeps it. + housing_benefit_payable = ( + person.benunit("housing_benefit_payable_share", period) > 0 + ) | paid_as_reported + housing_benefit_paying = ( + paying(True, "housing_benefit") & housing_benefit_open & housing_benefit_payable + ) child_tax_credit_paying = ( paying(dwp.tax_credits.active, "child_tax_credit", "tax_credits") & family_award_open From 0eec18a487e492b7f5b0216159568fe99387f737 Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Thu, 19 Nov 2026 02:24:08 +0000 Subject: [PATCH 36/40] Answer the delta review: course-gated reg. 60 cases, saved-award fixture, claim pins, reform holds the abolition claim - uc_receiving_education.yaml: the pin comments say the abolition claim is held off so each case tests the ordinary claim alone; cases 49 and 50 make that claim for a Northern Ireland rate-rebate-only family, unfunded (no reg. 61(1) protection, UC 0) and funded (protected, UC 4,062.96). - The saved-award fixture rents from the council at 6,000, so the calculated award passes its tenure screen; it asserts housing_benefit_eligible and housing_benefit. - The two universal-credit-claim cases hold would_claim_uc_at_legacy_closure false, so only would_claim_uc makes their claim. - disable_simulated_benefits holds claims_uc_at_legacy_closure in NOT_MOVED with the other closure inputs, so the reform moves no family; a new test covers a Housing Benefit-only tenant. - Docstrings and the changelog describe 2026-27 (a positive payable share still excludes), 2027-28 (an unsaved report no longer excludes) and the reform's ten-year horizon, and list Housing Benefit abolition among the closure routes. Co-Authored-By: Claude Opus 5.5 --- ...olish-working-age-housing-benefit.fixed.md | 2 +- .../disable_simulated_benefits.py | 11 ++- ...ifying_young_person_existing_benefits.yaml | 8 +- ...g_young_person_universal_credit_claim.yaml | 6 ++ .../uc_receiving_education.yaml | 99 ++++++++++++++++--- .../tests/test_disable_simulated_benefits.py | 32 ++++++ .../test_uc_receiving_education_properties.py | 10 +- ...fying_young_person_for_universal_credit.py | 15 ++- .../claims_universal_credit.py | 5 +- ...ualifying_young_person_for_uc_education.py | 7 +- 10 files changed, 165 insertions(+), 30 deletions(-) diff --git a/changelog.d/abolish-working-age-housing-benefit.fixed.md b/changelog.d/abolish-working-age-housing-benefit.fixed.md index cd4af580e8..c6472b1605 100644 --- a/changelog.d/abolish-working-age-housing-benefit.fixed.md +++ b/changelog.d/abolish-working-age-housing-benefit.fixed.md @@ -1 +1 @@ -Abolish working-age Housing Benefit awards outside specified and temporary accommodation from 1 July 2026 in Great Britain (SI 2025/1148 art. 7, inserted by SI 2026/409) and 1 October 2026 in Northern Ireland (SR 2025/176 art. 7, inserted by SR 2026/115). The new `gov.dwp.housing_benefit.working_age_awards_payable` parameter is day-weighted across each fiscal year, so 2026-27 pays an unsaved continuing award whose family does not claim Universal Credit for 86/365 of the year in Great Britain and 178/365 in Northern Ireland, and from 2027-28 there is none. Families meeting the Pension Credit age conditions keep their awards: a single claimant or both members of a couple over the qualifying age, and mixed-age couples with the SI 2019/37 art. 4 saving (SI 2014/1230 reg 6A(4)-(5)), and so do families whose Housing Benefit claimant personally holds an income-related ESA award that the appointee saving keeps (art. 7(4)(b), `esa_income_appointee_saving`): the model takes the Housing Benefit claimant to be a member reporting Housing Benefit, so every reporter must hold the saved award, or a sole claimant where no member reports it; it counts the saved award only on a claimant or partner, and lets `housing_benefit_claimant_is_saved_esa_claimant` confirm the identity instead, overriding the reports. A family whose award is abolished claims Universal Credit if `would_claim_uc_at_legacy_closure` is true, which ends the claimant's and partner's income-related ESA. Once an award is abolished, a Housing Benefit report no longer keeps a young person out of the Universal Credit definition of a qualifying young person (SI 2014/1230 reg. 28), or out of the family for Scotland's working-age Council Tax Reduction, which reads that definition, since no Housing Benefit is payable on it (`housing_benefit_payable_share`). +Abolish working-age Housing Benefit awards outside specified and temporary accommodation from 1 July 2026 in Great Britain (SI 2025/1148 art. 7, inserted by SI 2026/409) and 1 October 2026 in Northern Ireland (SR 2025/176 art. 7, inserted by SR 2026/115). The new `gov.dwp.housing_benefit.working_age_awards_payable` parameter is day-weighted across each fiscal year, so 2026-27 pays an unsaved continuing award whose family does not claim Universal Credit for 86/365 of the year in Great Britain and 178/365 in Northern Ireland, and from 2027-28 there is none. Families meeting the Pension Credit age conditions keep their awards: a single claimant or both members of a couple over the qualifying age, and mixed-age couples with the SI 2019/37 art. 4 saving (SI 2014/1230 reg 6A(4)-(5)), and so do families whose Housing Benefit claimant personally holds an income-related ESA award that the appointee saving keeps (art. 7(4)(b), `esa_income_appointee_saving`): the model takes the Housing Benefit claimant to be a member reporting Housing Benefit, so every reporter must hold the saved award, or a sole claimant where no member reports it; it counts the saved award only on a claimant or partner, and lets `housing_benefit_claimant_is_saved_esa_claimant` confirm the identity instead, overriding the reports. A family whose award is abolished claims Universal Credit if `would_claim_uc_at_legacy_closure` is true, which ends the claimant's and partner's income-related ESA. From 2027-28, when no Housing Benefit is payable on an unsaved award (`housing_benefit_payable_share` is 0), a Housing Benefit report no longer keeps a young person out of the Universal Credit definition of a qualifying young person (SI 2014/1230 reg. 28), or out of the family for Scotland's working-age Council Tax Reduction, which reads that definition. In 2026-27 the share is above 0, so an unsaved report still excludes for the year unless a Universal Credit claim ends it, and while `gov.contrib.policyengine.disable_simulated_benefits` is on the definition reads the report in every year. That reform also holds the claim the abolition prompts (`claims_uc_at_legacy_closure`), so it moves no family. diff --git a/policyengine_uk/reforms/policyengine/disable_simulated_benefits.py b/policyengine_uk/reforms/policyengine/disable_simulated_benefits.py index ebf302f7bd..1dc823cef4 100644 --- a/policyengine_uk/reforms/policyengine/disable_simulated_benefits.py +++ b/policyengine_uk/reforms/policyengine/disable_simulated_benefits.py @@ -62,7 +62,10 @@ # legacy awards, whether or not the family then claims Universal Credit, # unless DWP sent it to Pension Credit instead. The abolition of # income-related ESA reaching a family's award (esa_income_abolition_reached) -# likewise prompts a Universal Credit claim from 2026-27. The reform pays +# likewise prompts a Universal Credit claim from 2026-27, and so does the +# abolition of working-age Housing Benefit reaching an unsaved award, which +# claims_uc_at_legacy_closure reads from housing_benefit_payable_share +# directly. The reform pays # every listed benefit, the legacy ones and Universal Credit alike, at its # dataset-year report in every year, so it moves no family: it holds these # false for its years. The closure then ends none of the family's legacy @@ -79,12 +82,14 @@ # year: the abolition closes their report (esa_income_report_closed), but # _legacy_award_payee.own_report_is_paid uses the reform's held award to # determine their receipt status, as it does for the claimant and partner. -# Hold the family closure, each separate member's own closure, and the -# abolition's claim. +# Hold the family closure, each separate member's own closure, the +# income-related ESA abolition's reach, and the claim itself, which the +# Housing Benefit abolition prompts without either. NOT_MOVED = [ "legacy_benefits_closed", "person_legacy_benefits_closed", "esa_income_abolition_reached", + "claims_uc_at_legacy_closure", ] # The first year in which the model pays a carer in Scotland Carer Support diff --git a/policyengine_uk/tests/policy/baseline/finance/benefit/family/universal_credit/uc_qualifying_young_person_existing_benefits.yaml b/policyengine_uk/tests/policy/baseline/finance/benefit/family/universal_credit/uc_qualifying_young_person_existing_benefits.yaml index 2d25c9cc4e..9b51ec3941 100644 --- a/policyengine_uk/tests/policy/baseline/finance/benefit/family/universal_credit/uc_qualifying_young_person_existing_benefits.yaml +++ b/policyengine_uk/tests/policy/baseline/finance/benefit/family/universal_credit/uc_qualifying_young_person_existing_benefits.yaml @@ -272,7 +272,10 @@ # The abolition saves an award for specified or temporary accommodation # (SI 2025/1148 art. 7(4)(a), SI 2014/1230 reg. 6A(2)), so in 2027 the # award stays payable and the claimant is entitled to an existing benefit. + # They rent from the council and have no income, so the award meets their + # rent in full. period: 2027 + absolute_error_margin: 0.01 input: people: claimant: @@ -290,9 +293,12 @@ household: members: [claimant] region: NORTH_EAST - tenure_type: OWNED_OUTRIGHT + tenure_type: RENT_FROM_COUNCIL + rent: 6_000 output: housing_benefit_payable_share: 1 + housing_benefit_eligible: true + housing_benefit: 6_000 is_qualifying_young_person_for_universal_credit: [false] - name: After the abolition, a parent's young person whose own Housing Benefit report is unsaved is a qualifying young person. diff --git a/policyengine_uk/tests/policy/baseline/finance/benefit/family/universal_credit/uc_qualifying_young_person_universal_credit_claim.yaml b/policyengine_uk/tests/policy/baseline/finance/benefit/family/universal_credit/uc_qualifying_young_person_universal_credit_claim.yaml index 6385cef30a..cc11d0e153 100644 --- a/policyengine_uk/tests/policy/baseline/finance/benefit/family/universal_credit/uc_qualifying_young_person_universal_credit_claim.yaml +++ b/policyengine_uk/tests/policy/baseline/finance/benefit/family/universal_credit/uc_qualifying_young_person_universal_credit_claim.yaml @@ -106,6 +106,9 @@ benunit: members: [claimant] would_claim_uc: true + # Only would_claim_uc makes the claim: the abolition of working-age + # Housing Benefit (SI 2025/1148 art. 7) adds none. + would_claim_uc_at_legacy_closure: false households: household: members: [claimant] @@ -387,6 +390,9 @@ benunit: members: [parent, young_person] would_claim_uc: true + # Only would_claim_uc makes the claim: the abolition of working-age + # Housing Benefit (SI 2025/1148 art. 7) adds none. + would_claim_uc_at_legacy_closure: false households: household: members: [parent, young_person] diff --git a/policyengine_uk/tests/policy/baseline/gov/dwp/universal_credit/uc_receiving_education.yaml b/policyengine_uk/tests/policy/baseline/gov/dwp/universal_credit/uc_receiving_education.yaml index 6c497db954..b514ba04c5 100644 --- a/policyengine_uk/tests/policy/baseline/gov/dwp/universal_credit/uc_receiving_education.yaml +++ b/policyengine_uk/tests/policy/baseline/gov/dwp/universal_credit/uc_receiving_education.yaml @@ -834,9 +834,8 @@ benunit: members: [person1] # The claimant doesn't claim Universal Credit when working-age - # Housing Benefit is abolished on 1 July 2026 (SI 2025/1148 art. 7). - # The model treats such a claim as a qualifying claim, which reg. 60 - # would exempt from the education condition. + # Housing Benefit is abolished on 1 July 2026 (SI 2025/1148 art. 7), + # so the case tests the ordinary claim alone. would_claim_uc_at_legacy_closure: false households: household: @@ -865,9 +864,8 @@ benunit: members: [person1] # The claimant doesn't claim Universal Credit when working-age - # Housing Benefit is abolished on 1 July 2026 (SI 2025/1148 art. 7). - # The model treats such a claim as a qualifying claim, which reg. 60 - # would exempt from the education condition. + # Housing Benefit is abolished on 1 July 2026 (SI 2025/1148 art. 7), + # so the case tests the ordinary claim alone. would_claim_uc_at_legacy_closure: false households: household: @@ -1301,8 +1299,7 @@ members: [person1] # The claimant doesn't claim Universal Credit when working-age # Housing Benefit is abolished on 1 October 2026 in Northern Ireland - # (SR 2025/176 art. 7). The model treats such a claim as a qualifying - # claim, which reg. 60 would exempt from the education condition. + # (SR 2025/176 art. 7), so the case tests the ordinary claim alone. would_claim_uc_at_legacy_closure: false households: household: @@ -1335,8 +1332,8 @@ members: [person1] # The claimant doesn't claim Universal Credit when working-age # Housing Benefit is abolished on 1 October 2026 in Northern Ireland - # (SR 2025/176 art. 7). The model treats such a claim as a qualifying - # claim, which reg. 60 would exempt from the education condition. + # (SR 2025/176 art. 7), so the case tests the ordinary claim alone. + # Cases 49 and 50 make that claim. would_claim_uc_at_legacy_closure: false households: household: @@ -1365,9 +1362,8 @@ benunit: members: [person1] # The claimant doesn't claim Universal Credit when working-age - # Housing Benefit is abolished on 1 July 2026 (SI 2025/1148 art. 7). - # The model treats such a claim as a qualifying claim, which reg. 60 - # would exempt from the education condition. + # Housing Benefit is abolished on 1 July 2026 (SI 2025/1148 art. 7), + # so the case tests the ordinary claim alone. would_claim_uc_at_legacy_closure: false households: household: @@ -1428,8 +1424,7 @@ members: [person1] # The claimant doesn't claim Universal Credit when working-age # Housing Benefit is abolished on 1 October 2026 in Northern Ireland - # (SR 2025/176 art. 7). The model treats such a claim as a qualifying - # claim, which reg. 60 would exempt from the education condition. + # (SR 2025/176 art. 7), so the case tests the ordinary claim alone. would_claim_uc_at_legacy_closure: false households: household: @@ -1488,3 +1483,77 @@ meets_uc_education_condition: [false] is_uc_eligible: false universal_credit: 0 + +- name: Case 49, the 18-year-old of case 44 claims when the abolition reaches the rate rebate and gets no Universal Credit. + # The claimant of case 44 claims Universal Credit when working-age Housing + # Benefit is abolished on 1 October 2026 in Northern Ireland (SR 2025/176 + # art. 7; would_claim_uc_at_legacy_closure defaults to true), and the model + # treats that claim as a qualifying claim (SR 2016/226 reg. 49). On the + # migration day the rate rebate still existed, so reg. 29 kept them out of + # the definition, and the Universal Credit Regulations (Northern Ireland) + # 2016 reg. 12(2) doesn't cover their unfunded non-advanced course: they met + # the condition that day, so reg. 61(1) doesn't reach them. The claim ends + # the rate rebate the day before the award starts (reg. 6(2)), so from the + # first day they count as a qualifying young person and receive education, + # as in case 44, and get no Universal Credit. + period: 2026 + input: + people: + person1: + age: 18 + current_education: POST_SECONDARY + is_in_full_time_education: true + housing_benefit_reported: 6_000 + housing_benefit_report_is_rate_rebate_only: true + benunits: + benunit: + members: [person1] + households: + household: + members: [person1] + region: NORTHERN_IRELAND + tenure_type: OWNED_OUTRIGHT + output: + claims_uc_at_legacy_closure: true + is_qualifying_young_person_on_uc_migration_day: [false] + is_qualifying_young_person_for_uc_education: [true] + uc_receiving_education: [true] + uc_is_excepted_from_education_condition: [false] + meets_uc_education_condition: [false] + is_uc_eligible: false + universal_credit: 0 + +- name: Case 50, the 18-year-old of case 49 with maintenance funding keeps the award under SR 2016/226 reg. 61. + # As case 49, but a student loan or grant for maintenance brings the course + # within reg. 12(2)(b), so on the migration day the claimant failed the + # condition because of a course reg. 12(2) covers, and reg. 61(1) lifts it + # while they continue the course. No rent is due on the home the family + # owns, so the award is 12 assessment periods at the 2026 to 2027 rate for a + # single claimant under 25: 12 x £338.58 = £4,062.96. + period: 2026 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 18 + current_education: POST_SECONDARY + is_in_full_time_education: true + has_education_maintenance_funding: true + housing_benefit_reported: 6_000 + housing_benefit_report_is_rate_rebate_only: true + benunits: + benunit: + members: [person1] + households: + household: + members: [person1] + region: NORTHERN_IRELAND + tenure_type: OWNED_OUTRIGHT + output: + claims_uc_at_legacy_closure: true + is_qualifying_young_person_on_uc_migration_day: [false] + uc_receiving_education: [true] + uc_is_excepted_from_education_condition: [true] + meets_uc_education_condition: [true] + is_uc_eligible: true + universal_credit: 4_062.96 diff --git a/policyengine_uk/tests/test_disable_simulated_benefits.py b/policyengine_uk/tests/test_disable_simulated_benefits.py index 10c0331a13..9822db1413 100644 --- a/policyengine_uk/tests/test_disable_simulated_benefits.py +++ b/policyengine_uk/tests/test_disable_simulated_benefits.py @@ -363,6 +363,38 @@ def test_no_family_is_moved_off_its_legacy_benefits(reformed, unreformed, year): assert known_years(reformed, variable) == ten_years, variable +def test_the_housing_benefit_abolition_prompts_no_claim(): + """The abolition of working-age Housing Benefit (SI 2025/1148 art. 7) + reaches an unsaved award from 2026-27, and a family that would claim at + a closure (would_claim_uc_at_legacy_closure, true by default) then + claims Universal Credit, although it wouldn't claim otherwise. The + reform pays the reported Housing Benefit in each of its years, so it + holds that claim too, and the family claims nothing.""" + situation = { + "people": { + "tenant": { + "age": every_year(30), + "is_claimant_or_partner": every_year(True), + "current_education": every_year("NOT_IN_EDUCATION"), + "housing_benefit_reported": {DATASET_YEAR: 5_000}, + } + }, + "benunits": { + "family": {"members": ["tenant"], "would_claim_uc": every_year(False)} + }, + "households": { + "home": {"members": ["tenant"], "region": every_year("NORTH_EAST")} + }, + } + reformed = Simulation(situation=situation, scenario=REFORM) + unreformed = Simulation(situation=situation) + for year in YEARS[1:]: + for variable in ("claims_uc_at_legacy_closure", "claims_universal_credit"): + assert unreformed.calculate(variable, year).tolist() == [True], variable + assert reformed.calculate(variable, year).tolist() == [False], variable + assert reformed.calculate("housing_benefit", year).tolist() == [5_000] + + @pytest.mark.parametrize("year", YEARS) def test_each_person_is_on_their_own_award(reformed, year): on_esa = by_person(reformed, "is_on_income_related_esa", year) diff --git a/policyengine_uk/tests/test_uc_receiving_education_properties.py b/policyengine_uk/tests/test_uc_receiving_education_properties.py index c37ebd1784..5896e2ee7a 100644 --- a/policyengine_uk/tests/test_uc_receiving_education_properties.py +++ b/policyengine_uk/tests/test_uc_receiving_education_properties.py @@ -51,8 +51,11 @@ 7. Maintenance funding comes from the input: removing every student loan and education grant changes no one's receiving education and no output in OUTPUTS. -8. Reg. 28: a person who reports an existing benefit never counts as a - qualifying young person for the condition. +8. Reg. 28: a person whose existing benefit report is open on the first day + of the Universal Credit award, and payable that year + (esa_income_payable_share and housing_benefit_payable_share above 0, or + disable_simulated_benefits on), never counts as a qualifying young person + for the condition. A family in a household with other families can lose Universal Credit because of another family's student: when the household head's family cannot @@ -462,7 +465,8 @@ def reference(case, result): condition and without it. Reads from the model only the roles (who is a claimant), the age conditions, qualifying young person status before reg. 28 (the reg. 5 variable), the legacy closures, the family's claim, the - Pension Credit route, capital, responsibility for a child, limited + income-related ESA and Housing Benefit payable shares, the Pension + Credit route, capital, responsibility for a child, limited capability for work and the disability benefit amounts, which other rules settle. """ diff --git a/policyengine_uk/variables/gov/dwp/universal_credit/child_element/is_qualifying_young_person_for_universal_credit.py b/policyengine_uk/variables/gov/dwp/universal_credit/child_element/is_qualifying_young_person_for_universal_credit.py index 0914b64719..918dc3ca5e 100644 --- a/policyengine_uk/variables/gov/dwp/universal_credit/child_element/is_qualifying_young_person_for_universal_credit.py +++ b/policyengine_uk/variables/gov/dwp/universal_credit/child_element/is_qualifying_young_person_for_universal_credit.py @@ -30,7 +30,10 @@ class is_qualifying_young_person_for_universal_credit(Variable): "(esa_income_payable_share and housing_benefit_payable_share: " "working-age Housing Benefit outside its savings is abolished from " "1 July 2026, or 1 October 2026 in Northern Ireland), so the formula " - "reads their reports only then. The formula also reads the Income " + "reads their reports only then. Each share is a fraction of the year, " + "so an unsaved Housing Benefit report still excludes in 2026-27, " + "unless a Universal Credit claim ends it, and no longer excludes from " + "2027-28. The formula also reads the Income " "Support, income-based JSA, tax credit, income-related ESA and " "Housing Benefit reports while " "gov.contrib.policyengine.disable_simulated_benefits is on. The reform " @@ -229,9 +232,13 @@ def paying(active, *names): # payable (housing_benefit_payable_share), on the first day of a claim # (at_claim_start) as on any other. That share reads parameters, the # country, reports, is_claimant_or_partner, input flags and the Pension - # Credit age conditions, and no Universal Credit variable. The reform - # behind disable_simulated_benefits pays the report in every year, so - # while it is on the formula keeps it. + # Credit age conditions, and no Universal Credit variable. The share is + # a fraction of the year, so it is above 0 in 2026-27 and an unsaved + # report still excludes for that year unless a claim ends it; from + # 2027-28 it is 0 and the report no longer excludes. The reform behind + # disable_simulated_benefits pays the report in the dataset year and the + # nine after it, so while the switch is on the formula reads the report + # in every year, as it does the other reports. housing_benefit_payable = ( person.benunit("housing_benefit_payable_share", period) > 0 ) | paid_as_reported diff --git a/policyengine_uk/variables/gov/dwp/universal_credit/claims_universal_credit.py b/policyengine_uk/variables/gov/dwp/universal_credit/claims_universal_credit.py index 6e40134ddf..9ebe43b9c8 100644 --- a/policyengine_uk/variables/gov/dwp/universal_credit/claims_universal_credit.py +++ b/policyengine_uk/variables/gov/dwp/universal_credit/claims_universal_credit.py @@ -8,8 +8,9 @@ class claims_universal_credit(Variable): documentation = ( "Whether this family claims Universal Credit: it would claim it " "anyway (would_claim_uc), or it claims when DWP moves it off its " - "legacy benefits or the abolition of income-related ESA reaches its " - "award (claims_uc_at_legacy_closure). Universal Credit is " + "legacy benefits or the abolition of income-related ESA or of " + "working-age Housing Benefit reaches its award " + "(claims_uc_at_legacy_closure). Universal Credit is " "paid only to claiming families. A claim ends the family's Housing " "Benefit continuing award and Child Tax Credit, and the claimant's " "and partner's income-related ESA (esa_income_report_closed). Once " diff --git a/policyengine_uk/variables/gov/dwp/universal_credit/is_qualifying_young_person_for_uc_education.py b/policyengine_uk/variables/gov/dwp/universal_credit/is_qualifying_young_person_for_uc_education.py index cee52f742f..26a1d7db91 100644 --- a/policyengine_uk/variables/gov/dwp/universal_credit/is_qualifying_young_person_for_uc_education.py +++ b/policyengine_uk/variables/gov/dwp/universal_credit/is_qualifying_young_person_for_uc_education.py @@ -35,7 +35,12 @@ class is_qualifying_young_person_for_uc_education(Variable): "only from reported Universal Credit. The formula therefore leaves " "out the Housing Benefit and income-related ESA claim limbs that " "is_qualifying_young_person_for_universal_credit follows, and keeps " - "the Child Tax Credit one, the year gates and the legacy closures. A " + "the Child Tax Credit one, the year gates and the legacy closures. " + "The year gates include the income-related ESA and Housing Benefit " + "payable shares, so an unsaved Housing Benefit report still excludes " + "on the first day in 2026-27 and no longer does from 2027-28, and " + "while gov.contrib.policyengine.disable_simulated_benefits is on the " + "formula reads the reports in every year. A " "claimant whose Universal Credit comes to nil receives none, so after " "the run-on the law counts them as a qualifying young person again; " "the annual model keeps them outside the definition all year. A " From 026fd91fd06805b30d65fe0e32d11255bdec5e2e Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Thu, 19 Nov 2026 09:37:58 +0000 Subject: [PATCH 37/40] Answer review r10: the reform holds the claim, not the abolition; horizons and case 50's annual amount - disable_simulated_benefits: the comment says the reform holds the claim the Housing Benefit abolition prompts but not the abolition, so housing_benefit_pre_benefit_cap covers only 2026-27 before the abolition date and housing_benefit_eligible ends from 2027-28 while the reported Housing Benefit is paid; NOT_MOVED's comment says why the ESA reach is still held. - test_disable_simulated_benefits: asserts the reformed esa_income_abolition_reached is false, and its comment credits the claim's own hold. - The changelog gives the reform's horizon: the dataset year and the nine after it. - The receiving-education invariant 8 says the suite runs with disable_simulated_benefits off and where the switch is checked. - Case 50 says the annual model pays the whole of 2026-27 and counts no student income, so the case asserts the model's amount. Co-Authored-By: Claude Opus 5.5 --- ...bolish-working-age-housing-benefit.fixed.md | 2 +- .../policyengine/disable_simulated_benefits.py | 18 ++++++++++++------ .../uc_receiving_education.yaml | 9 +++++++-- .../tests/test_disable_simulated_benefits.py | 7 ++++++- .../test_uc_receiving_education_properties.py | 8 +++++--- 5 files changed, 31 insertions(+), 13 deletions(-) diff --git a/changelog.d/abolish-working-age-housing-benefit.fixed.md b/changelog.d/abolish-working-age-housing-benefit.fixed.md index c6472b1605..c4287c5a5f 100644 --- a/changelog.d/abolish-working-age-housing-benefit.fixed.md +++ b/changelog.d/abolish-working-age-housing-benefit.fixed.md @@ -1 +1 @@ -Abolish working-age Housing Benefit awards outside specified and temporary accommodation from 1 July 2026 in Great Britain (SI 2025/1148 art. 7, inserted by SI 2026/409) and 1 October 2026 in Northern Ireland (SR 2025/176 art. 7, inserted by SR 2026/115). The new `gov.dwp.housing_benefit.working_age_awards_payable` parameter is day-weighted across each fiscal year, so 2026-27 pays an unsaved continuing award whose family does not claim Universal Credit for 86/365 of the year in Great Britain and 178/365 in Northern Ireland, and from 2027-28 there is none. Families meeting the Pension Credit age conditions keep their awards: a single claimant or both members of a couple over the qualifying age, and mixed-age couples with the SI 2019/37 art. 4 saving (SI 2014/1230 reg 6A(4)-(5)), and so do families whose Housing Benefit claimant personally holds an income-related ESA award that the appointee saving keeps (art. 7(4)(b), `esa_income_appointee_saving`): the model takes the Housing Benefit claimant to be a member reporting Housing Benefit, so every reporter must hold the saved award, or a sole claimant where no member reports it; it counts the saved award only on a claimant or partner, and lets `housing_benefit_claimant_is_saved_esa_claimant` confirm the identity instead, overriding the reports. A family whose award is abolished claims Universal Credit if `would_claim_uc_at_legacy_closure` is true, which ends the claimant's and partner's income-related ESA. From 2027-28, when no Housing Benefit is payable on an unsaved award (`housing_benefit_payable_share` is 0), a Housing Benefit report no longer keeps a young person out of the Universal Credit definition of a qualifying young person (SI 2014/1230 reg. 28), or out of the family for Scotland's working-age Council Tax Reduction, which reads that definition. In 2026-27 the share is above 0, so an unsaved report still excludes for the year unless a Universal Credit claim ends it, and while `gov.contrib.policyengine.disable_simulated_benefits` is on the definition reads the report in every year. That reform also holds the claim the abolition prompts (`claims_uc_at_legacy_closure`), so it moves no family. +Abolish working-age Housing Benefit awards outside specified and temporary accommodation from 1 July 2026 in Great Britain (SI 2025/1148 art. 7, inserted by SI 2026/409) and 1 October 2026 in Northern Ireland (SR 2025/176 art. 7, inserted by SR 2026/115). The new `gov.dwp.housing_benefit.working_age_awards_payable` parameter is day-weighted across each fiscal year, so 2026-27 pays an unsaved continuing award whose family does not claim Universal Credit for 86/365 of the year in Great Britain and 178/365 in Northern Ireland, and from 2027-28 there is none. Families meeting the Pension Credit age conditions keep their awards: a single claimant or both members of a couple over the qualifying age, and mixed-age couples with the SI 2019/37 art. 4 saving (SI 2014/1230 reg 6A(4)-(5)), and so do families whose Housing Benefit claimant personally holds an income-related ESA award that the appointee saving keeps (art. 7(4)(b), `esa_income_appointee_saving`): the model takes the Housing Benefit claimant to be a member reporting Housing Benefit, so every reporter must hold the saved award, or a sole claimant where no member reports it; it counts the saved award only on a claimant or partner, and lets `housing_benefit_claimant_is_saved_esa_claimant` confirm the identity instead, overriding the reports. A family whose award is abolished claims Universal Credit if `would_claim_uc_at_legacy_closure` is true, which ends the claimant's and partner's income-related ESA. From 2027-28, when no Housing Benefit is payable on an unsaved award (`housing_benefit_payable_share` is 0), a Housing Benefit report no longer keeps a young person out of the Universal Credit definition of a qualifying young person (SI 2014/1230 reg. 28), or out of the family for Scotland's working-age Council Tax Reduction, which reads that definition. In 2026-27 the share is above 0, so an unsaved report still excludes for the year unless a Universal Credit claim ends it, and while `gov.contrib.policyengine.disable_simulated_benefits` is on the definition reads the report in every year. That reform also holds the claim the abolition prompts (`claims_uc_at_legacy_closure`) false in the dataset year and the nine years after it, so it moves no family in those years. diff --git a/policyengine_uk/reforms/policyengine/disable_simulated_benefits.py b/policyengine_uk/reforms/policyengine/disable_simulated_benefits.py index 1dc823cef4..d41043c362 100644 --- a/policyengine_uk/reforms/policyengine/disable_simulated_benefits.py +++ b/policyengine_uk/reforms/policyengine/disable_simulated_benefits.py @@ -62,17 +62,21 @@ # legacy awards, whether or not the family then claims Universal Credit, # unless DWP sent it to Pension Credit instead. The abolition of # income-related ESA reaching a family's award (esa_income_abolition_reached) -# likewise prompts a Universal Credit claim from 2026-27, and so does the -# abolition of working-age Housing Benefit reaching an unsaved award, which -# claims_uc_at_legacy_closure reads from housing_benefit_payable_share -# directly. The reform pays +# likewise prompts a Universal Credit claim from 2026-27. The reform pays # every listed benefit, the legacy ones and Universal Credit alike, at its # dataset-year report in every year, so it moves no family: it holds these # false for its years. The closure then ends none of the family's legacy # benefits (their eligibility and the "on" statuses read from it, and Housing # Benefit and tax credit eligibility), neither prompts a Universal Credit # claim (claims_uc_at_legacy_closure) and no family leaves the Pension Credit -# route. Only the closure is held: the model's other rules still apply, and +# route. The abolition of working-age Housing Benefit reaching an unsaved +# award also prompts a claim, which claims_uc_at_legacy_closure reads from +# housing_benefit_payable_share directly, so the reform holds the claim +# itself too. It doesn't hold the abolition: housing_benefit_payable_share +# still applies, so housing_benefit_pre_benefit_cap covers only the part of +# 2026-27 before the abolition date and housing_benefit_eligible ends from +# 2027-28, while the reform still pays the reported housing_benefit. Only the +# closure is held: the model's other rules still apply, and # the reform still pays the amounts reported. A family the model has claim # Universal Credit anyway (would_claim_uc) is still not eligible for Housing # Benefit or tax credits. An adult outside the couple who reports @@ -84,7 +88,9 @@ # determine their receipt status, as it does for the claimant and partner. # Hold the family closure, each separate member's own closure, the # income-related ESA abolition's reach, and the claim itself, which the -# Housing Benefit abolition prompts without either. +# Housing Benefit abolition prompts without either. The claim's hold already +# covers the reach's readers; holding the reach too keeps the variable itself +# false under the reform for any other reader. NOT_MOVED = [ "legacy_benefits_closed", "person_legacy_benefits_closed", diff --git a/policyengine_uk/tests/policy/baseline/gov/dwp/universal_credit/uc_receiving_education.yaml b/policyengine_uk/tests/policy/baseline/gov/dwp/universal_credit/uc_receiving_education.yaml index 5e78f48f46..cee7b4009e 100644 --- a/policyengine_uk/tests/policy/baseline/gov/dwp/universal_credit/uc_receiving_education.yaml +++ b/policyengine_uk/tests/policy/baseline/gov/dwp/universal_credit/uc_receiving_education.yaml @@ -1533,8 +1533,13 @@ # within reg. 12(2)(b), so on the migration day the claimant failed the # condition because of a course reg. 12(2) covers, and reg. 61(1) lifts it # while they continue the course. No rent is due on the home the family - # owns, so the award is 12 assessment periods at the 2026 to 2027 rate for a - # single claimant under 25: 12 x £338.58 = £4,062.96. + # owns. In law the award starts with the claim in about October 2026, after + # the rate rebate, and the Universal Credit Regulations (Northern Ireland) + # 2016 regs. 68 to 71 count the maintenance loan or grant as student income. + # The annual model pays the claim for the whole of 2026-27 and counts no + # student income, so we assert its amount: 12 assessment periods at the + # 2026 to 2027 rate for a single claimant under 25, 12 x £338.58 = + # £4,062.96. period: 2026 absolute_error_margin: 0.01 input: diff --git a/policyengine_uk/tests/test_disable_simulated_benefits.py b/policyengine_uk/tests/test_disable_simulated_benefits.py index 9822db1413..2a68c3489a 100644 --- a/policyengine_uk/tests/test_disable_simulated_benefits.py +++ b/policyengine_uk/tests/test_disable_simulated_benefits.py @@ -345,7 +345,9 @@ def test_no_family_is_moved_off_its_legacy_benefits(reformed, unreformed, year): ) # The abolition of income-related ESA reaches the claimant's own award # from 2026-27 (SI 2025/1148 art. 3A), which would prompt a Universal - # Credit claim; the reform holds that too, so it prompts no claim. + # Credit claim. The reform holds the reach and the claim itself + # (NOT_MOVED), the claim because the Housing Benefit abolition prompts it + # without either, so no family claims. reached = year > DATASET_YEAR assert by_family(unreformed, "esa_income_abolition_reached", year) == { "excluded_adult": False, @@ -355,6 +357,9 @@ def test_no_family_is_moved_off_its_legacy_benefits(reformed, unreformed, year): "own_esa_over_tariff": reached, "excluded_income_support": False, } + assert by_family(reformed, "esa_income_abolition_reached", year) == dict.fromkeys( + NAMES, False + ) assert by_family(reformed, "claims_uc_at_legacy_closure", year) == dict.fromkeys( NAMES, False ) diff --git a/policyengine_uk/tests/test_uc_receiving_education_properties.py b/policyengine_uk/tests/test_uc_receiving_education_properties.py index 5161002412..9ad855fb20 100644 --- a/policyengine_uk/tests/test_uc_receiving_education_properties.py +++ b/policyengine_uk/tests/test_uc_receiving_education_properties.py @@ -53,9 +53,11 @@ OUTPUTS. 8. Reg. 28: a person whose existing benefit report is open on the first day of the Universal Credit award, and payable that year - (esa_income_payable_share and housing_benefit_payable_share above 0, or - disable_simulated_benefits on), never counts as a qualifying young person - for the condition. + (esa_income_payable_share and housing_benefit_payable_share above 0), + never counts as a qualifying young person for the condition. The suite + runs with gov.contrib.policyengine.disable_simulated_benefits off. While + it is on, the model reads the reports in every year and leaves out the + claim limbs; test_disable_simulated_benefits.py checks that. A family in a household with other families can lose Universal Credit because of another family's student: when the household head's family cannot From 86530fe543479aa77cda82f805678f91a48013b4 Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Thu, 19 Nov 2026 09:48:14 +0000 Subject: [PATCH 38/40] Say the reform holds the claims as well as the closure disable_simulated_benefits' comment and docstring said only the closure is held; NOT_MOVED also holds the claims the closure and the abolitions prompt. Co-Authored-By: Claude Opus 5.5 --- .../reforms/policyengine/disable_simulated_benefits.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/policyengine_uk/reforms/policyengine/disable_simulated_benefits.py b/policyengine_uk/reforms/policyengine/disable_simulated_benefits.py index d41043c362..0fde51f617 100644 --- a/policyengine_uk/reforms/policyengine/disable_simulated_benefits.py +++ b/policyengine_uk/reforms/policyengine/disable_simulated_benefits.py @@ -76,8 +76,8 @@ # still applies, so housing_benefit_pre_benefit_cap covers only the part of # 2026-27 before the abolition date and housing_benefit_eligible ends from # 2027-28, while the reform still pays the reported housing_benefit. Only the -# closure is held: the model's other rules still apply, and -# the reform still pays the amounts reported. A family the model has claim +# closure and the claims it and the abolitions prompt are held: the model's +# other rules still apply, and the reform still pays the amounts reported. A family the model has claim # Universal Credit anyway (would_claim_uc) is still not eligible for Housing # Benefit or tax credits. An adult outside the couple who reports # income-based JSA is on it, as their own claim, only in the years the model @@ -140,8 +140,9 @@ class DisableSimulatedBenefits(Reform): No family is moved off its legacy benefits (NOT_MOVED): the reform pays them as reported in every year, after the dates - from which the model closes them included. Only the closure is - held; the model's other eligibility rules still apply. + from which the model closes them included. Only the closure and + the claims it and the abolitions prompt are held; the model's + other eligibility rules still apply. The reform reads what it uses when it is applied: the dataset year's reports, and who is the claimant or partner and where each From 0b344de7ea8d501288f776127591a2316e59a203 Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Fri, 20 Nov 2026 20:39:14 +0000 Subject: [PATCH 39/40] Qualify the 2026-27 exclusion, cite reg. 6(2)(b) in case 49, and tidy the reform comment - Both status docstrings, the formula comment and the changelog say that in 2026-27 an unsaved Housing Benefit report that is otherwise open still excludes, and that from 2027-28 it no longer does with gov.contrib.policyengine.disable_simulated_benefits off. - Case 49's claimant gets no Universal Credit, so the rate rebate ends the day before the date they would first have been entitled had they met the basic and financial conditions (SR 2016/226 reg. 6(2)(b)). - The reform comment states once what the reform pays, and its lines fit. Comments, documentation strings and the changelog only. Co-Authored-By: Claude Fable 5.2 --- .../abolish-working-age-housing-benefit.fixed.md | 2 +- .../policyengine/disable_simulated_benefits.py | 10 +++++----- .../universal_credit/uc_receiving_education.yaml | 7 ++++--- ...ualifying_young_person_for_universal_credit.py | 15 +++++++++------ ...is_qualifying_young_person_for_uc_education.py | 10 ++++++---- 5 files changed, 25 insertions(+), 19 deletions(-) diff --git a/changelog.d/abolish-working-age-housing-benefit.fixed.md b/changelog.d/abolish-working-age-housing-benefit.fixed.md index c4287c5a5f..136c9c59f9 100644 --- a/changelog.d/abolish-working-age-housing-benefit.fixed.md +++ b/changelog.d/abolish-working-age-housing-benefit.fixed.md @@ -1 +1 @@ -Abolish working-age Housing Benefit awards outside specified and temporary accommodation from 1 July 2026 in Great Britain (SI 2025/1148 art. 7, inserted by SI 2026/409) and 1 October 2026 in Northern Ireland (SR 2025/176 art. 7, inserted by SR 2026/115). The new `gov.dwp.housing_benefit.working_age_awards_payable` parameter is day-weighted across each fiscal year, so 2026-27 pays an unsaved continuing award whose family does not claim Universal Credit for 86/365 of the year in Great Britain and 178/365 in Northern Ireland, and from 2027-28 there is none. Families meeting the Pension Credit age conditions keep their awards: a single claimant or both members of a couple over the qualifying age, and mixed-age couples with the SI 2019/37 art. 4 saving (SI 2014/1230 reg 6A(4)-(5)), and so do families whose Housing Benefit claimant personally holds an income-related ESA award that the appointee saving keeps (art. 7(4)(b), `esa_income_appointee_saving`): the model takes the Housing Benefit claimant to be a member reporting Housing Benefit, so every reporter must hold the saved award, or a sole claimant where no member reports it; it counts the saved award only on a claimant or partner, and lets `housing_benefit_claimant_is_saved_esa_claimant` confirm the identity instead, overriding the reports. A family whose award is abolished claims Universal Credit if `would_claim_uc_at_legacy_closure` is true, which ends the claimant's and partner's income-related ESA. From 2027-28, when no Housing Benefit is payable on an unsaved award (`housing_benefit_payable_share` is 0), a Housing Benefit report no longer keeps a young person out of the Universal Credit definition of a qualifying young person (SI 2014/1230 reg. 28), or out of the family for Scotland's working-age Council Tax Reduction, which reads that definition. In 2026-27 the share is above 0, so an unsaved report still excludes for the year unless a Universal Credit claim ends it, and while `gov.contrib.policyengine.disable_simulated_benefits` is on the definition reads the report in every year. That reform also holds the claim the abolition prompts (`claims_uc_at_legacy_closure`) false in the dataset year and the nine years after it, so it moves no family in those years. +Abolish working-age Housing Benefit awards outside specified and temporary accommodation from 1 July 2026 in Great Britain (SI 2025/1148 art. 7, inserted by SI 2026/409) and 1 October 2026 in Northern Ireland (SR 2025/176 art. 7, inserted by SR 2026/115). The new `gov.dwp.housing_benefit.working_age_awards_payable` parameter is day-weighted across each fiscal year, so 2026-27 pays an unsaved continuing award whose family does not claim Universal Credit for 86/365 of the year in Great Britain and 178/365 in Northern Ireland, and from 2027-28 there is none. Families meeting the Pension Credit age conditions keep their awards: a single claimant or both members of a couple over the qualifying age, and mixed-age couples with the SI 2019/37 art. 4 saving (SI 2014/1230 reg 6A(4)-(5)), and so do families whose Housing Benefit claimant personally holds an income-related ESA award that the appointee saving keeps (art. 7(4)(b), `esa_income_appointee_saving`): the model takes the Housing Benefit claimant to be a member reporting Housing Benefit, so every reporter must hold the saved award, or a sole claimant where no member reports it; it counts the saved award only on a claimant or partner, and lets `housing_benefit_claimant_is_saved_esa_claimant` confirm the identity instead, overriding the reports. A family whose award is abolished claims Universal Credit if `would_claim_uc_at_legacy_closure` is true, which ends the claimant's and partner's income-related ESA. From 2027-28 no Housing Benefit is payable on an unsaved award (`housing_benefit_payable_share` is 0), so with `gov.contrib.policyengine.disable_simulated_benefits` off a Housing Benefit report no longer keeps a young person out of the Universal Credit definition of a qualifying young person (SI 2014/1230 reg. 28), or out of the family for Scotland's working-age Council Tax Reduction, which reads that definition. In 2026-27 the share is above 0, so an unsaved report that is otherwise open still excludes for the year (a Universal Credit claim ends it). While that switch is on, the definition reads the report in every year. That reform also holds the claim the abolition prompts (`claims_uc_at_legacy_closure`) false in the dataset year and the nine years after it, so it moves no family in those years. diff --git a/policyengine_uk/reforms/policyengine/disable_simulated_benefits.py b/policyengine_uk/reforms/policyengine/disable_simulated_benefits.py index 0fde51f617..42f63fcb04 100644 --- a/policyengine_uk/reforms/policyengine/disable_simulated_benefits.py +++ b/policyengine_uk/reforms/policyengine/disable_simulated_benefits.py @@ -75,11 +75,11 @@ # itself too. It doesn't hold the abolition: housing_benefit_payable_share # still applies, so housing_benefit_pre_benefit_cap covers only the part of # 2026-27 before the abolition date and housing_benefit_eligible ends from -# 2027-28, while the reform still pays the reported housing_benefit. Only the -# closure and the claims it and the abolitions prompt are held: the model's -# other rules still apply, and the reform still pays the amounts reported. A family the model has claim -# Universal Credit anyway (would_claim_uc) is still not eligible for Housing -# Benefit or tax credits. An adult outside the couple who reports +# 2027-28, while the reform still pays the reported housing_benefit. The reform +# holds only the closure and the claims it and the abolitions prompt: the +# model's other rules still apply. Ordinary UC claims (would_claim_uc) still +# enter the usual Housing Benefit and tax credit eligibility rules. An adult +# outside the couple who reports # income-based JSA is on it, as their own claim, only in the years the model # has the scheme open (gov.dwp.JSA.income.active: to 2025). One who reports # income-related ESA is on it in every year, as the reform pays it in every diff --git a/policyengine_uk/tests/policy/baseline/gov/dwp/universal_credit/uc_receiving_education.yaml b/policyengine_uk/tests/policy/baseline/gov/dwp/universal_credit/uc_receiving_education.yaml index 19dad1e4c3..4c493b3f71 100644 --- a/policyengine_uk/tests/policy/baseline/gov/dwp/universal_credit/uc_receiving_education.yaml +++ b/policyengine_uk/tests/policy/baseline/gov/dwp/universal_credit/uc_receiving_education.yaml @@ -1499,9 +1499,10 @@ # the definition, and the Universal Credit Regulations (Northern Ireland) # 2016 reg. 12(2) doesn't cover their unfunded non-advanced course: they met # the condition that day, so reg. 61(1) doesn't reach them. The claim ends - # the rate rebate the day before the award starts (reg. 6(2)), so from the - # first day they count as a qualifying young person and receive education, - # as in case 44, and get no Universal Credit. + # the rate rebate the day before the date they would first have been + # entitled had they met the basic and financial conditions (reg. 6(2)(b)). + # From that date they count as a qualifying young person and receive + # education, as in case 44, and get no Universal Credit. period: 2026 input: people: diff --git a/policyengine_uk/variables/gov/dwp/universal_credit/child_element/is_qualifying_young_person_for_universal_credit.py b/policyengine_uk/variables/gov/dwp/universal_credit/child_element/is_qualifying_young_person_for_universal_credit.py index 918dc3ca5e..680f0a9297 100644 --- a/policyengine_uk/variables/gov/dwp/universal_credit/child_element/is_qualifying_young_person_for_universal_credit.py +++ b/policyengine_uk/variables/gov/dwp/universal_credit/child_element/is_qualifying_young_person_for_universal_credit.py @@ -30,10 +30,12 @@ class is_qualifying_young_person_for_universal_credit(Variable): "(esa_income_payable_share and housing_benefit_payable_share: " "working-age Housing Benefit outside its savings is abolished from " "1 July 2026, or 1 October 2026 in Northern Ireland), so the formula " - "reads their reports only then. Each share is a fraction of the year, " - "so an unsaved Housing Benefit report still excludes in 2026-27, " - "unless a Universal Credit claim ends it, and no longer excludes from " - "2027-28. The formula also reads the Income " + "reads their reports only then. Each share is a fraction of the year. " + "Housing Benefit's is above 0 in 2026-27, so an unsaved report that " + "is otherwise open still excludes that year (a Universal Credit claim " + "ends it). From 2027-28 it is 0, so with " + "gov.contrib.policyengine.disable_simulated_benefits off the report " + "no longer excludes. The formula also reads the Income " "Support, income-based JSA, tax credit, income-related ESA and " "Housing Benefit reports while " "gov.contrib.policyengine.disable_simulated_benefits is on. The reform " @@ -234,8 +236,9 @@ def paying(active, *names): # country, reports, is_claimant_or_partner, input flags and the Pension # Credit age conditions, and no Universal Credit variable. The share is # a fraction of the year, so it is above 0 in 2026-27 and an unsaved - # report still excludes for that year unless a claim ends it; from - # 2027-28 it is 0 and the report no longer excludes. The reform behind + # report that is otherwise open still excludes for that year (a claim + # ends it); from 2027-28 it is 0 and, with the reform switch off, the + # report no longer excludes. The reform behind # disable_simulated_benefits pays the report in the dataset year and the # nine after it, so while the switch is on the formula reads the report # in every year, as it does the other reports. diff --git a/policyengine_uk/variables/gov/dwp/universal_credit/is_qualifying_young_person_for_uc_education.py b/policyengine_uk/variables/gov/dwp/universal_credit/is_qualifying_young_person_for_uc_education.py index 26a1d7db91..ff2fe282c6 100644 --- a/policyengine_uk/variables/gov/dwp/universal_credit/is_qualifying_young_person_for_uc_education.py +++ b/policyengine_uk/variables/gov/dwp/universal_credit/is_qualifying_young_person_for_uc_education.py @@ -37,10 +37,12 @@ class is_qualifying_young_person_for_uc_education(Variable): "is_qualifying_young_person_for_universal_credit follows, and keeps " "the Child Tax Credit one, the year gates and the legacy closures. " "The year gates include the income-related ESA and Housing Benefit " - "payable shares, so an unsaved Housing Benefit report still excludes " - "on the first day in 2026-27 and no longer does from 2027-28, and " - "while gov.contrib.policyengine.disable_simulated_benefits is on the " - "formula reads the reports in every year. A " + "payable shares. Housing Benefit's is above 0 in 2026-27, so an " + "unsaved report that is otherwise open still excludes on the first " + "day that year. From 2027-28 it is 0, so with " + "gov.contrib.policyengine.disable_simulated_benefits off the report " + "no longer excludes; while that switch is on the formula reads the " + "reports in every year. A " "claimant whose Universal Credit comes to nil receives none, so after " "the run-on the law counts them as a qualifying young person again; " "the annual model keeps them outside the definition all year. A " From 4cd3f146f4c84ecbccba9f7a72ed38af499f895a Mon Sep 17 00:00:00 2001 From: Max Ghenis Date: Wed, 25 Nov 2026 22:19:51 +0100 Subject: [PATCH 40/40] Test a caravan renter's award through the abolition years MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #2929's tenure test lets a private renter of a caravan, whose rent the LHA doesn't set, reach Housing Benefit, and this branch ends working-age awards from 1 July 2026. No case combined the two. A GB working-age caravan renter with a continuing award now gets 86/365 of a £5,200 entitlement in 2026 and no award in 2027. The 2026 case fails if the tenure test reads LHA_eligible again. Co-Authored-By: Claude Opus 5.5 --- ...housing_benefit_working_age_abolition.yaml | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_working_age_abolition.yaml b/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_working_age_abolition.yaml index 6aeab45431..c1ba283775 100644 --- a/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_working_age_abolition.yaml +++ b/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_working_age_abolition.yaml @@ -91,6 +91,67 @@ housing_benefit: 0 universal_credit: 0 +- name: GB working-age private renter of a caravan keeps a continuing award until 30 June 2026 + # The council determines no maximum rent (LHA) for a caravan (SI 2006/213 + # reg 13C(5)(d)(i)), so the tenure test reads the private tenancy, and the + # abolition reaches the award on the same date as any other. + period: 2026 + absolute_error_margin: 0.01 + input: + people: + claimant: + age: 40 + housing_benefit_reported: 1 + benunits: + benunit: + members: [claimant] + would_claim_uc: false + would_claim_uc_at_legacy_closure: false + housing_benefit_applicable_income: 0 + households: + household: + members: [claimant] + rent: 5_200 + tenure_type: RENT_PRIVATELY + accommodation_type: MOBILE + region: LONDON + output: + LHA_eligible: false + # 86 / 365 + housing_benefit_payable_share: 0.235616 + housing_benefit_eligible: true + housing_benefit_entitlement: 5_200 + # 5,200 * 86 / 365 + housing_benefit: 1_225.21 + +- name: GB working-age private renter of a caravan has no award by 2027 + period: 2027 + absolute_error_margin: 0.01 + input: + people: + claimant: + age: 40 + housing_benefit_reported: 1 + benunits: + benunit: + members: [claimant] + in_specified_or_temporary_accommodation: false + would_claim_uc: false + would_claim_uc_at_legacy_closure: false + housing_benefit_applicable_income: 0 + households: + household: + members: [claimant] + rent: 5_200 + tenure_type: RENT_PRIVATELY + accommodation_type: MOBILE + region: LONDON + output: + LHA_eligible: false + housing_benefit_payable_share: 0 + housing_benefit_eligible: false + housing_benefit: 0 + - name: Scotland follows the Great Britain date period: 2026 absolute_error_margin: 0.01