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..4ee27a334d --- /dev/null +++ b/changelog.d/abolish-working-age-housing-benefit.added.md @@ -0,0 +1 @@ +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 new file mode 100644 index 0000000000..136c9c59f9 --- /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 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/docs/book/programs/gov/dwp/housing-benefit.ipynb b/docs/book/programs/gov/dwp/housing-benefit.ipynb index 9c1467defa..c8b3a4644c 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: 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/`." ] @@ -23,17 +23,29 @@ "\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", - "- **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 families, and mixed-age couples without the saving, cannot make new claims; they claim the Universal Credit housing element instead.\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`. Working-age families, and mixed-age couples without the saving, cannot make new claims; they claim the Universal Credit housing element instead.\n", "\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", "Parliament abolished Housing Benefit in Welfare Reform Act 2012 s. 33(1)(d). Under [SI 2025/1148 art. 7](https://www.legislation.gov.uk/uksi/2025/1148/article/7), the abolition takes effect on 1 July 2026 for each award that hasn't already ended under SI 2014/1230 reg. 7(2), 8(2A) or 46(1)(a) and isn't due to end after a two week run-on (art. 7(1) and (3)), with these exceptions:\n", "\n", "- For a claimant whom the Universal Credit Regulations 2013 reg. 19(1)(b) or (c) (prisoners and others) bar from Universal Credit immediately before 1 July 2026, the award ends on the day after the bar last applies (art. 7(2)).\n", "- The award continues where the claimant's circumstances fall within [SI 2014/1230 reg. 6A(2) to (5)](https://www.legislation.gov.uk/uksi/2014/1230/regulation/6A): specified or temporary accommodation; a single claimant who has reached the qualifying age for State Pension Credit, or a couple or polygamous marriage in which every member has; a claim that reg. 6A(3) allows when a Universal Credit claimant reaches that age; or a mixed-age couple whose older member claims and keeps a saving under SI 2019/37 art. 4(1) (art. 7(4)(a)).\n", "- The award continues where, immediately before 1 July 2026, the claimant has an income-related Employment and Support Allowance award that [art. 3A(2)](https://www.legislation.gov.uk/uksi/2025/1148/article/3A) saves: at that time someone acts for the claimant as an appointee under reg. 57 of the Universal Credit, Personal Independence Payment, Jobseeker's Allowance and Employment and Support Allowance (Claims and Payments) Regulations 2013, or in the six months ending on that day the Secretary of State determined that the claimant would likely need one (art. 7(4)(b)).\n", "\n", - "PolicyEngine does not yet model the 1 July 2026 end date: no rule in the model ends a working-age family's continuing award on that date.\n", + "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), appoints **1 October 2026** on the same terms, with the savings in [SR 2016/226 reg. 4A(2) to (5)](https://www.legislation.gov.uk/nisr/2016/226/regulation/4A) and SR 2025/176 art. 3A(2). The Great Britain article was inserted by [SI 2026/409](https://www.legislation.gov.uk/uksi/2026/409/made).\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. 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", + "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 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", + "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/parameters/gov/dwp/housing_benefit/takeup.yaml b/policyengine_uk/parameters/gov/dwp/housing_benefit/takeup.yaml index 33bbd88ec5..aa35575aed 100644 --- a/policyengine_uk/parameters/gov/dwp/housing_benefit/takeup.yaml +++ b/policyengine_uk/parameters/gov/dwp/housing_benefit/takeup.yaml @@ -3,8 +3,11 @@ 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 continue existing awards. + 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 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..99f735cafe --- /dev/null +++ b/policyengine_uk/parameters/gov/dwp/housing_benefit/working_age_awards_payable.yaml @@ -0,0 +1,51 @@ +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. In a Simulation reform + dictionary a bare year overrides the whole fiscal year, while a key dated + inside the year (for example 2026-07-01) leaves that model year's value + unchanged. 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: + 1988-04-01: 1 + 2026-07-01: 0 + metadata: + label: Working-age housing benefit awards payable in 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 in 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 c80b24cbd1..2c7b8908fb 100644 --- a/policyengine_uk/programs.yaml +++ b/policyengine_uk/programs.yaml @@ -324,13 +324,13 @@ programs: full_name: Housing Benefit category: Benefits agency: DWP - status: complete + status: partial coverage: UK variable: housing_benefit budget: 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 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/reforms/policyengine/disable_simulated_benefits.py b/policyengine_uk/reforms/policyengine/disable_simulated_benefits.py index ebf302f7bd..42f63fcb04 100644 --- a/policyengine_uk/reforms/policyengine/disable_simulated_benefits.py +++ b/policyengine_uk/reforms/policyengine/disable_simulated_benefits.py @@ -69,22 +69,33 @@ # 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 -# 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 +# 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. 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 # 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. 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", "esa_income_abolition_reached", + "claims_uc_at_legacy_closure", ] # The first year in which the model pays a carer in Scotland Carer Support @@ -129,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 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/finance/benefit/family/housing_benefit/applicable_income/housing_benefit_specified_or_temporary_accommodation_disregard.yaml b/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/applicable_income/housing_benefit_specified_or_temporary_accommodation_disregard.yaml index 24476152ef..123ecf118a 100644 --- a/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/applicable_income/housing_benefit_specified_or_temporary_accommodation_disregard.yaml +++ b/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/applicable_income/housing_benefit_specified_or_temporary_accommodation_disregard.yaml @@ -791,6 +791,9 @@ benunit: members: [person] would_claim_uc: false + # Its award is abolished in 2027; it does not claim Universal Credit + # then, so it is not passported. + would_claim_uc_at_legacy_closure: false guarantee_credit: 0 housing_benefit_applicable_amount: 4_968.60 households: 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_eligible.yaml b/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_eligible.yaml index a8c822ba5d..59587fc0d6 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,8 +1,9 @@ -# In 2021 a working-age family (age defaults to 40) with a reported award and -# no Universal Credit claim keeps Housing Benefit on the continuing-award -# route if it rents, from a social landlord or privately. The next eight -# cases test that route. Private renters qualify whether or not the Local -# Housing Allowance sets their eligible rent (see lha_mobile_homes.yaml). +# In 2021, before working-age awards were abolished, a working-age family (age +# defaults to 40) with a reported award and no Universal Credit claim keeps +# Housing Benefit on the continuing-award route if it rents, from a social +# landlord or privately. The next eight cases test that route. Private renters +# qualify whether or not the Local Housing Allowance sets their eligible rent +# (see lha_mobile_homes.yaml). - name: Social housing eligible # The social housing flag alone opens the route, as it did when the formula 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 new file mode 100644 index 0000000000..c1ba283775 --- /dev/null +++ b/policyengine_uk/tests/policy/baseline/finance/benefit/family/housing_benefit/housing_benefit_working_age_abolition.yaml @@ -0,0 +1,2042 @@ +# 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 + would_claim_uc_at_legacy_closure: 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 + would_claim_uc_at_legacy_closure: 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] + 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_FROM_COUNCIL + region: LONDON + output: + housing_benefit_payable_share: 0 + housing_benefit_eligible: false + 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 + 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_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 + would_claim_uc_at_legacy_closure: 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 + would_claim_uc_at_legacy_closure: 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] + 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_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 + would_claim_uc_at_legacy_closure: 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 + # 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: 75 + housing_benefit_reported: 1 + younger: + age: 60 + 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: + housing_benefit_payable_share: 1 + 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 + 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 + would_claim_uc_at_legacy_closure: 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 + +- 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 + would_claim_uc_at_legacy_closure: 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 + would_claim_uc_at_legacy_closure: 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 + would_claim_uc_at_legacy_closure: 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 + would_claim_uc_at_legacy_closure: 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 + would_claim_uc_at_legacy_closure: 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 + would_claim_uc_at_legacy_closure: 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 + would_claim_uc_at_legacy_closure: 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 + +- 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,794.21 - 30,000 - 25,323 = 2,471.21. + 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_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 +# 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. + +- 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 ESA keeps Housing Benefit when that partner is its claimant + 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] + housing_benefit_claimant_is_saved_esa_claimant: true + 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 + +- 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: + # 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] + +- 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: + # 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] + +- 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: + # 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: 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: + # 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 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 + # 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 + 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 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 + # 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 + 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 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 + # 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 + 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] + +- 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 + +- 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 + +- 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 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 cfaa35b828..2bba017c62 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/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/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..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 @@ -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 @@ -187,9 +189,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 +206,7 @@ benunit: members: [claimant] would_claim_uc: false + would_claim_uc_at_legacy_closure: false households: household: members: [claimant] @@ -213,6 +218,118 @@ 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. + # 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: + 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: 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. + # 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/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..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] @@ -121,7 +124,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 +149,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 @@ -385,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/benefit_cap/benefit_cap_specified_benefits.yaml b/policyengine_uk/tests/policy/baseline/gov/dwp/benefit_cap/benefit_cap_specified_benefits.yaml index 75ad125eeb..9bb5ba9e1c 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 @@ -1156,7 +1156,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: @@ -1175,6 +1177,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] @@ -1186,8 +1189,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 lifts the Housing Benefit cap, not Universal Credit's 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/pension_credit/mixed_age_couples.yaml b/policyengine_uk/tests/policy/baseline/gov/dwp/pension_credit/mixed_age_couples.yaml index 2f47ac75d4..0a9e12140f 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 @@ -106,8 +106,9 @@ members: [older, younger] would_claim_uc: false # The couple does not claim Universal Credit when the abolition of - # income-related ESA reaches the award, so it keeps the continuing - # Housing Benefit award this case tests. + # income-related ESA or of working-age Housing Benefit reaches its + # awards, so it keeps the continuing Housing Benefit award this case + # tests. would_claim_uc_at_legacy_closure: false households: household: @@ -118,7 +119,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/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 bb32327918..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 @@ -833,6 +833,10 @@ 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), + # so the case tests the ordinary claim alone. + would_claim_uc_at_legacy_closure: false households: household: members: [person1] @@ -859,6 +863,10 @@ 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), + # so the case tests the ordinary claim alone. + would_claim_uc_at_legacy_closure: false households: household: members: [person1] @@ -1289,6 +1297,10 @@ 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), so the case tests the ordinary claim alone. + would_claim_uc_at_legacy_closure: false households: household: members: [person1] @@ -1318,6 +1330,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), so the case tests the ordinary claim alone. + # Cases 49 and 50 make that claim. + would_claim_uc_at_legacy_closure: false households: household: members: [person1] @@ -1344,6 +1361,10 @@ 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), + # so the case tests the ordinary claim alone. + would_claim_uc_at_legacy_closure: false households: household: members: [person1] @@ -1401,6 +1422,10 @@ 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), so the case tests the ordinary claim alone. + would_claim_uc_at_legacy_closure: false households: household: members: [person1] @@ -1464,3 +1489,83 @@ 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 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: + 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. 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: + 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/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..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 @@ -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] @@ -591,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_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_disable_simulated_benefits.py b/policyengine_uk/tests/test_disable_simulated_benefits.py index 292a35cc03..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 ) @@ -363,6 +368,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) @@ -891,15 +928,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_housing_benefit_pension_age_properties.py b/policyengine_uk/tests/test_housing_benefit_pension_age_properties.py index 46198253c1..d6e4fcc1c0 100644 --- a/policyengine_uk/tests/test_housing_benefit_pension_age_properties.py +++ b/policyengine_uk/tests/test_housing_benefit_pension_age_properties.py @@ -1,10 +1,14 @@ """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 -existing award and do not claim Universal Credit. +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 +covers the abolition itself. Invariants, for any generated population of families: @@ -31,6 +35,8 @@ Housing Benefit, Pension Credit and Universal Credit alike (the dependant is not a claimant or partner), so that family can claim Housing Benefit and not Universal Credit, and the mutual exclusion holds for that shape too. +Accommodation protection and the HB/non-housing-UC route are tested in the +abolition property file. Every member's is_claimant_or_partner is set from its generated role, as the FRS supplies it. Without that input an 18- or 19-year-old partner of a @@ -120,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 new file mode 100644 index 0000000000..5450dda586 --- /dev/null +++ b/policyengine_uk/tests/test_housing_benefit_working_age_abolition_properties.py @@ -0,0 +1,476 @@ +"""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 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 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 + 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 + +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])), + 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": annual(age)} + if role == "claimant": + person["employment_income"] = annual(unit["earnings"]) + person["is_parent"] = annual(unit["shape"] == "pension_with_dependant") + if unit["hb_reported"]: + person["housing_benefit_reported"] = annual(unit["hb_reported"]) + if role == "dependant": + person["current_education"] = annual("UPPER_SECONDARY") + people[name] = person + names.append(name) + 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"] + ), + # claims_all_entitled_benefits sums reported benefits across the + # whole simulation, so set it per family. + "claims_all_entitled_benefits": annual(claims_all), + } + households[f"h{i}"] = { + "members": names, + "region": annual(unit["region"]), + "rent": annual(unit["rent"]), + "tenure_type": annual(unit["tenure"]), + "savings": annual(unit["savings"]), + } + return {"people": people, "benunits": benunits, "households": households} + + +VARIABLES = [ + "meets_pension_credit_age_conditions", + "housing_benefit", + "housing_benefit_pre_benefit_cap", + "housing_benefit_eligible", + "housing_benefit_payable_share", + "universal_credit", + "uc_housing_costs_element", + "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 jurisdiction(unit): + return ( + "northern_ireland" if unit["region"] == "NORTHERN_IRELAND" else "great_britain" + ) + + +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) & ~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, 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) + + +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 + ) + + +def test_dated_reform_is_ignored_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}}, + ) + # A key dated inside the year leaves the model year's share at the + # baseline 86 days: it is not applied. + assert one_day.calculate("housing_benefit_payable_share", 2026)[0] == pytest.approx( + 86 / 365 + ) + assert whole_year.calculate("housing_benefit_payable_share", 2026)[0] == 1 + + +@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, 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): + # 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 ( + current["meets_pension_credit_age_conditions"][i] + or unit["in_specified_or_temporary_accommodation"] + ): + 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 + + +@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, + in_specified_or_temporary_accommodation=False, + ) + + +@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)) + ) + + +@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 + ) + + +@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) + + +# 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 (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, + "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, 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 not sim.calculate("person_legacy_benefits_closed", year).any() + assert sim.calculate("esa_income_report_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 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")) diff --git a/policyengine_uk/tests/test_non_dependant_cycle_contracts.py b/policyengine_uk/tests/test_non_dependant_cycle_contracts.py index cf158ec4d7..d67ae0ca39 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) @@ -495,14 +496,32 @@ 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 + # 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 + 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 5a172b2bad..6b22c66ec9 100644 --- a/policyengine_uk/tests/test_non_dependant_deduction_properties.py +++ b/policyengine_uk/tests/test_non_dependant_deduction_properties.py @@ -1147,8 +1147,14 @@ 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, 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 + 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 @@ -1158,12 +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 != "housing_benefit_reported" + if name.startswith("housing_benefit") + 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"] = { @@ -1180,7 +1195,13 @@ 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_claimant_is_saved_esa_claimant", + "housing_benefit_pre_benefit_cap", + ) ], read diff --git a/policyengine_uk/tests/test_uc_legacy_closure_properties.py b/policyengine_uk/tests/test_uc_legacy_closure_properties.py index c7f6a1ba7f..2e2dbd86fb 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,69 @@ 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 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)], + 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, + ), + 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): values = calculate(units) for year in YEARS: @@ -249,7 +340,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 +429,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]) 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 64c3c4d3c8..55808d75bd 100644 --- a/policyengine_uk/tests/test_uc_receiving_education_properties.py +++ b/policyengine_uk/tests/test_uc_receiving_education_properties.py @@ -51,8 +51,13 @@ 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), + 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 @@ -98,7 +103,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 +120,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 +305,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 +383,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": @@ -447,7 +467,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. """ @@ -913,6 +934,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]) @@ -921,6 +968,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/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..eb70f1ee36 --- /dev/null +++ b/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_claimant_is_saved_esa_claimant.py @@ -0,0 +1,44 @@ +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). 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 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 " + "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 " + "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." + ) + 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 e8e95df486..f76c3efd5d 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 @@ -35,9 +35,23 @@ class housing_benefit_eligible(Variable): "Secretary of State appointed 1 July 2026 for every " "other working-age award to end without a claim (SI 2025/1148 art. " "7), and the Department for Communities appointed 1 October 2026 in " - "Northern Ireland (SR 2025/176 art. 7). The model doesn't apply that " - "date, so it pays such an award for the whole of 2026-27 and keeps it " - "until the family claims or DWP moves it." + "Northern Ireland (SR 2025/176 art. 7). The model ends the continuing " + "award in the year its payable share (housing_benefit_payable_share) " + "reaches 0, from 2027-28, and housing_benefit_pre_benefit_cap pays it " + "for the share of 2026-27 before that date. A family that would claim " + "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 Housing Benefit " + "claimant personally holds a saved income-related ESA award " + "(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 " + "modelled." ) definition_period = YEAR reference = ( @@ -92,17 +106,18 @@ def formula(benunit, period, parameters): # appointed 1 July 2026 for the remaining working-age awards to end # without a claim (SI 2025/1148 art. 7; Northern Ireland: 1 October # 2026, SR 2025/176 art. 7), but not in specified or temporary - # accommodation (art. 7(4)(a), through reg 6A(2); NI reg 4A(2)). The - # model doesn't apply that date, so it pays such an award for the - # whole of 2026-27 and keeps it until the family claims or DWP moves - # it. + # accommodation (art. 7(4)(a), through reg 6A(2); NI reg 4A(2)). A + # family outside the modelled savings continues one only for the part + # of the year before that date (housing_benefit_payable_share), so + # the route closes once none of the year is payable. already_claiming = add(benunit, period, ["housing_benefit_reported"]) > 0 claiming_uc = benunit("claims_universal_credit", period) # Once another of the family's legacy benefits has closed, DWP's # migration notice ends this award even if the family does not claim # Universal Credit (reg 46(1)(a)). migrated = benunit("legacy_benefits_closed", period) - continuing_award = already_claiming & ~claiming_uc & ~migrated + still_payable = benunit("housing_benefit_payable_share", period) > 0 + continuing_award = already_claiming & ~claiming_uc & ~migrated & still_payable # Specified or temporary accommodation: the bar on new claims doesn't # apply (reg 6A(2); NI: SR 2016/226 reg 4A(2)), and an existing award # terminates neither on a Universal Credit claim (reg 8(3); NI reg 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..7db4d9183a --- /dev/null +++ b/policyengine_uk/variables/gov/dwp/housing_benefit/housing_benefit_payable_share.py @@ -0,0 +1,150 @@ +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. 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 " + "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; 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 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 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 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 " + "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). " + "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)); " + "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" + 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", + ) + + 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, + payable.great_britain, + ) + # SI 2025/1148 art. 7(4)(a) saves claimants within SI 2014/1230 + # 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)). + pension_age_saving = benunit("meets_pension_credit_age_conditions", period) + protected_accommodation = benunit( + "in_specified_or_temporary_accommodation", period + ) + # 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. + # "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 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) 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, + # 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, 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 (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 + claimant_or_partner = person("is_claimant_or_partner", period) + saved_esa = ( + claimant_or_partner + & (person("esa_income_reported", period) > 0) + & person("esa_income_appointee_saving", 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 > 0) & ~benunit.any(hb_reporter & ~saved_esa) + sole_claimant_saved = ( + (hb_reporters == 0) + & (benunit.sum(claimant_or_partner) == 1) + & any_saved_esa + ) + 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) 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, ) 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 index 17eac892b2..782ff4773e 100644 --- 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 @@ -14,7 +14,9 @@ class in_specified_or_temporary_accommodation(Variable): "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. The working-age " + "from tenure or a generic supported-housing label. It keeps a " + "working-age award payable after the abolition of working-age " + "Housing Benefit (housing_benefit_payable_share). The working-age " "Housing Benefit earnings disregard for specified or temporary " "accommodation (SI 2006/213 Sch 4 para 18; NI SR 2006/405 Sch 5 para " "18), which refers to the same paragraphs, reads it. Housing Benefit " 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..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 @@ -25,11 +25,19 @@ 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. 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 " "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 +227,27 @@ 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 share is + # a fraction of the year, so it is above 0 in 2026-27 and an unsaved + # 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. + 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 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 55f2d96385..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 @@ -7,28 +7,53 @@ 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), or because the " + "its legacy benefits (legacy_benefits_closed), because the " "abolition of income-related ESA has reached the claimant's or " - "partner's award (esa_income_abolition_reached, from 2026-27), and it " - "would claim then (would_claim_uc_at_legacy_closure). The claim ends " + "partner's award (esa_income_abolition_reached, from 2026-27), or " + "because the abolition of working-age Housing Benefit has reached its " + "award (it reports Housing Benefit and housing_benefit_payable_share " + "is below 1, from 2026-27), and it would claim then " + "(would_claim_uc_at_legacy_closure). The claim ends " "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 for the part of 2026-27 " - "before the abolition reached it, and its Housing Benefit until " - "legacy_benefits_closed moves it in 2027-28, or beyond that in " - "specified or temporary accommodation." + "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 = ( "https://www.legislation.gov.uk/uksi/2014/1230/regulation/44", "https://www.legislation.gov.uk/uksi/2025/1148/article/3A", "https://www.legislation.gov.uk/nisr/2025/176/article/3A", + "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): - moved = benunit("legacy_benefits_closed", period) | benunit( - "esa_income_abolition_reached", period + # The working-age Housing Benefit abolition (SI 2025/1148 art. 7; NI: + # SR 2025/176 art. 7) also prompts a claim, from the year it reaches + # a reported award that no modelled saving keeps. 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_abolition_reached = ( + add(benunit, period, ["housing_benefit_reported"]) > 0 + ) & (benunit("housing_benefit_payable_share", period) < 1) + moved = ( + benunit("legacy_benefits_closed", period) + | benunit("esa_income_abolition_reached", period) + | housing_benefit_abolition_reached ) return moved & benunit("would_claim_uc_at_legacy_closure", period) 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/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) 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..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 @@ -35,7 +35,14 @@ 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. 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 " 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 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/uc_is_excepted_from_education_condition.py b/policyengine_uk/variables/gov/dwp/universal_credit/uc_is_excepted_from_education_condition.py index 71b8d87e26..e7ef121d29 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 @@ -23,22 +23,28 @@ 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, who " "didn't count as a qualifying young person for the condition on the " "migration day (is_qualifying_young_person_on_uc_migration_day, which " "applies reg. 28 of the 2014 Regulations to the award the claim " "ended), and who undertakes a full-time course that reg. 12(2) of the " "2013 Regulations covers: advanced education, or a course with a " - "student loan or grant for their maintenance. Reg. 60(1) protects only " - "a person who fails the condition on the migration day because of such " - "a course, and only while they continue it; the model reads the " - "model year's course inputs for both, so a person who leaves the " - "course loses the protection that year, but a person who starts a " - "course reg. 12(2) covers after the migration day, or moves to " - "another such course, has it that year, which the law doesn't give. " - "A young person whom reg. 28 alone kept outside the definition on the " - "migration day, on a course reg. 12(2) doesn't cover, met the " + "student loan or grant for their maintenance. 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. Reg. " + "60(1) protects only a person who fails the condition on the migration " + "day because of such a course, and only while they continue it; the " + "model reads the model year's course inputs for both, so a person who " + "leaves the course loses the protection that year, but a person who " + "starts a course reg. 12(2) covers after the migration day, or moves " + "to another such course, has it that year, which the law doesn't " + "give. A young person whom reg. 28 alone kept outside the definition " + "on the migration day, on a course reg. 12(2) doesn't cover, met the " "condition that day, so reg. 60(1) doesn't reach them. Where the " "claim ends that existing benefit before the award starts (a tax " "credit, reg. 8(2) of the 2014 Regulations), they count as a " @@ -48,7 +54,8 @@ class uc_is_excepted_from_education_condition(Variable): "2019/1152 reg. 5), reg. 28 still excludes them that day, so they " "meet the condition, and reg. 5(5) of the 2013 Regulations then keeps " "them outside the definition while they receive Universal Credit " - "(is_qualifying_young_person_for_uc_education). The model needs no rule of " + "(is_qualifying_young_person_for_uc_education). 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 " @@ -79,8 +86,8 @@ class uc_is_excepted_from_education_condition(Variable): "and 12(1) of those Regulations in place of regs. 5 and 12(1A), and " "the same protection under reg. 61 of the Universal Credit " "(Transitional Provisions) Regulations (Northern Ireland) 2016, with " - "regs. 6, 29 and 49 of " - "those Regulations in place of regs. 8, 28 and 48: a claim ends a " + "regs. 6, 29, 45 and 49 of those Regulations in place of regs. 8, 28, " + "44 and 48: a claim ends a " "rate rebate before the award starts (reg. 6(2)), and a rent rebate " "or allowance runs on (reg. 6(2A)), as income-related ESA does under " "SR 2019/152 reg. 4 in place of SI 2019/1152 reg. 5. The model " @@ -95,6 +102,7 @@ class uc_is_excepted_from_education_condition(Variable): "https://www.legislation.gov.uk/uksi/2014/1230/regulation/8", "https://www.legislation.gov.uk/uksi/2019/1152/regulation/5", "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/49", "https://www.legislation.gov.uk/uksi/2014/1230/regulation/60", @@ -104,6 +112,7 @@ class uc_is_excepted_from_education_condition(Variable): "https://www.legislation.gov.uk/nisr/2016/226/regulation/6", "https://www.legislation.gov.uk/nisr/2019/152/regulation/4", "https://www.legislation.gov.uk/nisr/2016/226/regulation/29", + "https://www.legislation.gov.uk/nisr/2016/226/regulation/45", "https://www.legislation.gov.uk/nisr/2016/226/regulation/49", "https://www.legislation.gov.uk/nisr/2016/226/regulation/61", ) 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 "